Elffuss BraidHub

kikocis/continue public

Merge branch 'main' of https://github.com/continuedev/continue into continue-1758764445879
Changeset9612e1530b69e302f067ff2981ec3ca5c8ab7874e966727c16f83c647eca1abe
AuthorDallin Romney <dallinromney@gmail.com> · 2025-09-25 16:15 -07:00
CommitterDallin Romney <dallinromney@gmail.com> · 2025-09-25 16:15 -07:00
Parents76a3b5039c4e, 116c58af1e5f

Browse the files at this changeset

33 files changed

deleted .github/workflows/respond-to-cubic.yaml +0 −302
@@ -1,302 +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- # Create a temporary file to safely handle comment body with special characters
25- cat > /tmp/comment.txt << 'COMMENT_EOF'
26- ${{ github.event.comment.body }}
27- COMMENT_EOF
28-
29- if grep -q "@continuedev" /tmp/comment.txt; then
30- echo "contains_mention=true" >> $GITHUB_OUTPUT
31- else
32- echo "contains_mention=false" >> $GITHUB_OUTPUT
33- fi
34-
35- - name: Add eyes reaction to comment
36- if: steps.check-mention.outputs.contains_mention == 'true'
37- uses: actions/github-script@v8
38- with:
39- script: |
40- await github.rest.reactions.createForIssueComment({
41- owner: context.repo.owner,
42- repo: context.repo.repo,
43- comment_id: ${{ github.event.comment.id }},
44- content: 'eyes'
45- });
46-
47- - name: Checkout PR branch
48- if: steps.check-mention.outputs.contains_mention == 'true'
49- uses: actions/checkout@v5
50- with:
51- token: ${{ secrets.GITHUB_TOKEN }}
52- fetch-depth: 0
53-
54- - name: Get PR information
55- if: steps.check-mention.outputs.contains_mention == 'true'
56- id: pr-info
57- uses: actions/github-script@v8
58- with:
59- script: |
60- const { data: pr } = await github.rest.pulls.get({
61- owner: context.repo.owner,
62- repo: context.repo.repo,
63- pull_number: context.issue.number
64- });
65-
66- core.setOutput('head_ref', pr.head.ref);
67- core.setOutput('head_sha', pr.head.sha);
68- return pr;
69-
70- - name: Checkout PR branch
71- if: steps.check-mention.outputs.contains_mention == 'true'
72- run: |
73- git checkout ${{ steps.pr-info.outputs.head_ref }}
74-
75- - name: Setup Node.js
76- if: steps.check-mention.outputs.contains_mention == 'true'
77- uses: actions/setup-node@v5
78- with:
79- node-version: "20"
80-
81- - name: Install Continue CLI globally
82- if: steps.check-mention.outputs.contains_mention == 'true'
83- run: npm i -g @continuedev/cli
84-
85- - name: Start remote session
86- if: steps.check-mention.outputs.contains_mention == 'true'
87- id: remote-session
88- env:
89- CONTINUE_API_KEY: ${{ secrets.CONTINUE_API_KEY }}
90- run: |
91- # Create a temporary file for the prompt to handle special characters and newlines properly
92- cat > /tmp/prompt.txt << 'PROMPT_EOF'
93- Please help with the following request from @${{ github.event.comment.user.login }} on PR #${{ github.event.issue.number }}:
94-
95- ${{ github.event.comment.body }}
96-
97- Please analyze the current PR, understand the request, implement the necessary changes, and commit them to this branch.
98- PROMPT_EOF
99-
100- # Debug output
101- echo "PROMPT content:"
102- cat /tmp/prompt.txt
103-
104- # Start remote session and capture JSON output
105- echo "Starting cn with prompt..."
106- SESSION_OUTPUT=$(cat /tmp/prompt.txt | cn remote -s --config continuedev/address-code-review --branch ${{ steps.pr-info.outputs.head_ref }})
107- echo "Raw session output: $SESSION_OUTPUT"
108-
109- # Extract URL from JSON output
110- SESSION_URL=$(echo "$SESSION_OUTPUT" | jq -r '.url // empty')
111-
112- if [ -z "$SESSION_URL" ] || [ "$SESSION_URL" = "null" ]; then
113- echo "Failed to extract session URL from output: $SESSION_OUTPUT"
114- exit 1
115- fi
116-
117- echo "session_url=$SESSION_URL" >> $GITHUB_OUTPUT
118- echo "✅ Started remote session: $SESSION_URL"
119-
120- - name: Comment with session URL
121- if: steps.check-mention.outputs.contains_mention == 'true' && steps.remote-session.outputs.session_url
122- uses: actions/github-script@v8
123- env:
124- ORIGINAL_COMMENT: ${{ github.event.comment.body }}
125- with:
126- script: |
127- const sessionUrl = '${{ steps.remote-session.outputs.session_url }}';
128- const originalComment = process.env.ORIGINAL_COMMENT;
129- const commentBody = "I've started [a remote session](" + sessionUrl + ") to help with your request:\n> " + originalComment;
130-
131- await github.rest.issues.createComment({
132- owner: context.repo.owner,
133- repo: context.repo.repo,
134- issue_number: context.issue.number,
135- body: commentBody
136- });
137-
138- - name: Log session details
139- if: steps.check-mention.outputs.contains_mention == 'true'
140- run: |
141- echo "✅ Successfully started remote session for comment from ${{ github.event.comment.user.login }} on PR #${{ github.event.issue.number }}"
142- echo "Session URL: ${{ steps.remote-session.outputs.session_url }}"
143- echo "Original comment:"
144- cat /tmp/comment.txt
145-
146- respond-to-review-comment:
147- # Only run on pull request review comments
148- if: github.event_name == 'pull_request_review_comment'
149- runs-on: ubuntu-latest
150-
151- steps:
152- - name: Check if comment contains @continuedev
153- id: check-mention
154- run: |
155- # Create a temporary file to safely handle comment body with special characters
156- cat > /tmp/review_comment.txt << 'COMMENT_EOF'
157- ${{ github.event.comment.body }}
158- COMMENT_EOF
159-
160- if grep -q "@continuedev" /tmp/review_comment.txt; then
161- echo "contains_mention=true" >> $GITHUB_OUTPUT
162- else
163- echo "contains_mention=false" >> $GITHUB_OUTPUT
164- fi
165-
166- - name: Add eyes reaction to comment
167- if: steps.check-mention.outputs.contains_mention == 'true'
168- uses: actions/github-script@v8
169- with:
170- script: |
171- await github.rest.reactions.createForPullRequestReviewComment({
172- owner: context.repo.owner,
173- repo: context.repo.repo,
174- comment_id: ${{ github.event.comment.id }},
175- content: 'eyes'
176- });
177-
178- - name: Checkout PR branch
179- if: steps.check-mention.outputs.contains_mention == 'true'
180- uses: actions/checkout@v5
181- with:
182- token: ${{ secrets.GITHUB_TOKEN }}
183- fetch-depth: 0
184- ref: ${{ github.event.pull_request.head.ref }}
185-
186- - name: Setup Node.js
187- if: steps.check-mention.outputs.contains_mention == 'true'
188- uses: actions/setup-node@v5
189- with:
190- node-version: "20"
191-
192- - name: Install Continue CLI globally
193- if: steps.check-mention.outputs.contains_mention == 'true'
194- run: npm i -g @continuedev/cli
195-
196- - name: Get review context
197- if: steps.check-mention.outputs.contains_mention == 'true'
198- id: review-context
199- uses: actions/github-script@v8
200- with:
201- script: |
202- let reviewContext = '';
203-
204- // Check if this comment is a reply to another review comment
205- if (context.payload.comment.in_reply_to_id) {
206- try {
207- const { data: originalComment } = await github.rest.pulls.getReviewComment({
208- owner: context.repo.owner,
209- repo: context.repo.repo,
210- comment_id: context.payload.comment.in_reply_to_id
211- });
212-
213- reviewContext = `**Original review comment by @${originalComment.user.login}:**
214- ${originalComment.body}
215-
216- **Reply by @${{ github.event.comment.user.login }}:**
217- ${{ github.event.comment.body }}`;
218- } catch (error) {
219- console.log('Could not fetch original comment, using current comment only');
220- reviewContext = `**Review comment by @${{ github.event.comment.user.login }}:**
221- ${{ github.event.comment.body }}`;
222- }
223- } else {
224- reviewContext = `**Review comment by @${{ github.event.comment.user.login }}:**
225- ${{ github.event.comment.body }}`;
226- }
227-
228- core.setOutput('context', reviewContext);
229-
230- - name: Start remote session
231- if: steps.check-mention.outputs.contains_mention == 'true'
232- id: remote-session
233- env:
234- CONTINUE_API_KEY: ${{ secrets.CONTINUE_API_KEY }}
235- run: |
236- # Debug: Echo the branch we're starting the session on
237- echo "Starting remote session on branch: ${{ github.event.pull_request.head.ref }}"
238-
239- # Create a temporary file for the prompt to handle special characters and newlines properly
240- cat > /tmp/prompt.txt << 'PROMPT_EOF'
241- Please help with the following code review discussion from PR #${{ github.event.pull_request.number }}:
242-
243- **File:** ${{ github.event.comment.path }}
244- **Line:** ${{ github.event.comment.line || github.event.comment.original_line || 'N/A' }}
245-
246- ${{ steps.review-context.outputs.context }}
247-
248- 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.
249- PROMPT_EOF
250-
251- # Debug output
252- echo "PROMPT content:"
253- cat /tmp/prompt.txt
254-
255- # Start remote session and capture JSON output
256- echo "Starting cn with prompt..."
257- SESSION_OUTPUT=$(cat /tmp/prompt.txt | cn remote -s --config continuedev/address-code-review --branch ${{ github.event.pull_request.head.ref }})
258- echo "Raw session output: $SESSION_OUTPUT"
259-
260- # Extract URL from JSON output
261- SESSION_URL=$(echo "$SESSION_OUTPUT" | jq -r '.url // empty')
262-
263- if [ -z "$SESSION_URL" ] || [ "$SESSION_URL" = "null" ]; then
264- echo "Failed to extract session URL from output: $SESSION_OUTPUT"
265- exit 1
266- fi
267-
268- echo "session_url=$SESSION_URL" >> $GITHUB_OUTPUT
269- echo "✅ Started remote session: $SESSION_URL"
270-
271- - name: Comment with session URL
272- if: steps.check-mention.outputs.contains_mention == 'true' && steps.remote-session.outputs.session_url
273- uses: actions/github-script@v8
274- env:
275- ORIGINAL_COMMENT: ${{ github.event.comment.body }}
276- with:
277- script: |
278- const sessionUrl = '${{ steps.remote-session.outputs.session_url }}';
279- const originalComment = process.env.ORIGINAL_COMMENT;
280- const commentBody = "I've started [a remote session](" + sessionUrl + ") to help with your request:\n> " + originalComment;
281-
282- const commentParams = {
283- owner: context.repo.owner,
284- repo: context.repo.repo,
285- pull_number: ${{ github.event.pull_request.number }},
286- body: commentBody,
287- commit_id: '${{ github.event.pull_request.head.sha }}',
288- path: '${{ github.event.comment.path }}',
289- in_reply_to: ${{ github.event.comment.id }}
290- };
291-
292- await github.rest.pulls.createReviewComment(commentParams);
293-
294- - name: Log session details
295- if: steps.check-mention.outputs.contains_mention == 'true'
296- run: |
297- echo "✅ Successfully started remote session for review comment from ${{ github.event.comment.user.login }} on PR #${{ github.event.pull_request.number }}"
298- echo "Session URL: ${{ steps.remote-session.outputs.session_url }}"
299- echo "File: ${{ github.event.comment.path }}"
300- echo "Line: ${{ github.event.comment.line }}"
301- echo "Original comment:"
302- cat /tmp/review_comment.txt
added .husky/pre-commit +1 −0
@@ -0,0 +1,1 @@
1+npx lint-staged --no-install
modified .prettierignore +6 −1
@@ -11,9 +11,13 @@
1111 extensions/vscode/bin
1212 extensions/vscode/build
1313 extensions/vscode/out
14+extensions/vscode/textmate-syntaxes
1415 extensions/vscode/gui
1516 extensions/vscode/e2e/.test-extensions
1617 extensions/vscode/e2e/test-continue
18+extensions/vscode/e2e/_output
19+extensions/vscode/e2e/storage
20+extensions/vscode/e2e/vsix
1721 extensions/vscode/models
1822 extensions/intellij/src/main/resources
1923 gui/dist
@@ -26,4 +30,5 @@
2630 core/vendor
2731 coverage
2832 # e2e
29-packages/continue-sdk
No newline at the end of the file
33+packages/continue-sdk
34+.conductor
No newline at the end of the file
modified core/config/markdown/utils.ts +10 −4
@@ -4,6 +4,15 @@
44 } from "@continuedev/config-yaml";
55 import { joinPathsToUri } from "../../util/uri";
66
7+function createRelativeRuleFilePathParts(ruleName: string): string[] {
8+ const safeRuleName = sanitizeRuleName(ruleName);
9+ return [".continue", "rules", `${safeRuleName}.${RULE_FILE_EXTENSION}`];
10+}
11+
12+export function createRelativeRuleFilePath(ruleName: string): string {
13+ return createRelativeRuleFilePathParts(ruleName).join("/");
14+}
15+
716 /**
817 * Creates the file path for a rule in the workspace .continue/rules directory
918 */
@@ -11,11 +20,8 @@
1120 workspaceDir: string,
1221 ruleName: string,
1322 ): string {
14- const safeRuleName = sanitizeRuleName(ruleName);
1523 return joinPathsToUri(
1624 workspaceDir,
17- ".continue",
18- "rules",
19- `${safeRuleName}.${RULE_FILE_EXTENSION}`,
25+ ...createRelativeRuleFilePathParts(ruleName),
2026 );
2127 }
modified core/llm/index.ts +1 −1
@@ -213,7 +213,7 @@
213213 this.providerName === "continue-proxy"
214214 ? this.model?.split("/").pop() || this.model
215215 : this.model;
216- const llmInfo = findLlmInfo(modelSearchString);
216+ const llmInfo = findLlmInfo(modelSearchString, this.underlyingProviderName);
217217
218218 const templateType =
219219 options.template ?? autodetectTemplateType(options.model);
modified core/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 docs/cli/install.mdx +134 −0
@@ -0,0 +1,134 @@
1+---
2+title: "Install Continue CLI"
3+description: "Get Continue CLI installed and configured for command-line AI coding assistance and automation"
4+sidebarTitle: "Install"
5+---
6+
7+<Info>
8+ Make sure you have [Node.js 18 or higher
9+ installed](https://nodejs.org/en/download/).
10+</Info>
11+
12+## Installation
13+
14+Install Continue CLI globally using npm:
15+
16+```bash
17+npm i -g @continuedev/cli
18+```
19+
20+## Two Ways to Use Continue CLI
21+
22+<Info>
23+ **Quick Overview**: Continue CLI works in two modes - TUI for interactive
24+ conversations or headless for automated commands.
25+</Info>
26+
27+<Tabs>
28+<Tab title="TUI Mode">
29+**Interactive development sessions**
30+
31+Start a conversation with AI in your terminal:
32+
33+```bash
34+cn
35+> @src/app.js Generate unit tests for this component
36+```
37+
38+Perfect for exploration, debugging, and iterative development.
39+
40+</Tab>
41+
42+<Tab title="Headless Mode">
43+**Automation and scripting**
44+
45+Single commands that return results:
46+
47+```bash
48+cn -p "Generate a commit message for current changes"
49+cn -p "Review the last 5 commits for issues"
50+```
51+
52+Perfect for CI/CD, git hooks, and automated workflows.
53+
54+</Tab>
55+</Tabs>
56+
57+## Setup
58+
59+<Tabs>
60+<Tab title="cn TUI Mode">
61+
62+For interactive development and exploration:
63+
64+<Steps>
65+<Step title="Login to Continue CLI">
66+```bash
67+cn login
68+```
69+This will open your browser to authenticate with Continue Hub.
70+</Step>
71+
72+<Step title="Test TUI Mode">
73+Start an interactive session:
74+```bash
75+cn
76+```
77+
78+Try asking a question:
79+
80+```
81+> Tell me about the CLI
82+```
83+
84+</Step>
85+</Steps>
86+</Tab>
87+<Tab title="cn Headless Mode">
88+
89+For automation workflows and scripting:
90+
91+<Steps>
92+<Step title="Get API Key for Automation">
93+For automation workflows, get an API key:
94+1. Visit [Continue Hub API Keys](https://hub.continue.dev/settings/api-keys)
95+2. Click **"+ New API Key"**
96+3. Copy the API key immediately (you won't see it again!)
97+4. Login using your Continue account
98+</Step>
99+
100+<Step title="Add Secrets for Workflows">
101+Store secure credentials for CLI workflows:
102+1. Visit [Continue Hub Secrets](https://hub.continue.dev/settings/secrets)
103+2. Add your API keys and sensitive data
104+3. Reference in configurations with `${{ secrets.SECRET_NAME }}`
105+</Step>
106+
107+<Step title="Test Headless Mode">
108+Try headless mode for automation:
109+```bash
110+cn -p "Generate a conventional commit message for the current git changes"
111+```
112+</Step>
113+</Steps>
114+</Tab>
115+</Tabs>
116+
117+## What's Next?
118+
119+<CardGroup cols={2}>
120+<Card title="Quick Start Guide" icon="rocket" href="/cli/quick-start">
121+ Learn basic usage with practical examples
122+</Card>
123+
124+<Card title="Create your first workflow" icon="gear" href="/guides/posthog-github-continuous-ai">
125+ Build automated workflows with Continue CLI
126+</Card>
127+</CardGroup>
128+
129+## Getting Help
130+
131+If you encounter issues:
132+
133+- Ask for help in [our discussions](https://github.com/continuedev/continue/discussions)
134+- Report bugs on [GitHub](https://github.com/continuedev/continue)
added docs/cli/overview.mdx +228 −0
@@ -0,0 +1,228 @@
1+---
2+title: "Continue CLI (cn) Overview"
3+description: "Command-line interface for automated coding tasks, scripting, and headless development workflows with Continue's AI coding capabilities"
4+sidebarTitle: "Overview"
5+---
6+
7+<Frame>
8+ <img src="/images/cn-demo.gif" />
9+</Frame>
10+
11+**Continue enables developers to ship faster with Continuous AI.**
12+
13+<Tip>
14+ Build features from descriptions. Debug and fix issues. Navigate any codebase.
15+ Automate tedious tasks.
16+</Tip>
17+
18+## Get started in 30 seconds
19+
20+Prerequisites:
21+
22+- [Node.js 18 or newer](https://nodejs.org/en/download/)
23+- A [Continue Hub](https://hub.continue.dev) account (recommended) or local configuration
24+
25+```bash npm
26+# Install Continue CLI
27+npm install -g @continuedev/cli
28+
29+# Navigate to your project
30+
31+cd your-awesome-project
32+
33+# Start coding with Continue
34+
35+cn
36+
37+# You'll be prompted to set up on first use
38+
39+```
40+
41+That's it! You're ready to start automating with Continue CLI.
42+
43+[Continue with CLI Quickstart →](/cli/quick-start)
44+
45+## Two Ways to Use Continue CLI
46+
47+Continue CLI offers two distinct modes designed for different workflows:
48+
49+### TUI Mode: Interactive Development
50+
51+**Perfect for exploration, debugging, and iterating on AI workflows**
52+
53+```bash
54+cn
55+> @src/components/UserProfile.js Review this component for security issues
56+> Generate comprehensive unit tests
57+> Suggest performance improvements
58+```
59+
60+- **Interactive conversations** with your codebase
61+- **Iterate and refine** prompts and approaches
62+- **Explore and understand** complex codebases
63+- **Perfect for experimentation** and learning
64+
65+### Headless Mode: Production Automation
66+
67+**Perfect for CI/CD, automation, and reliable workflows**
68+
69+```bash
70+cn -p "Generate a conventional commit message for staged changes"
71+cn -p "Review pull request changes for security vulnerabilities"
72+cn -p "Update documentation based on recent code changes"
73+```
74+
75+- **Single-command execution** for automation
76+- **Reliable, repeatable results** for production use
77+- **CI/CD and pipeline integration**
78+- **Git hooks and automated workflows**
79+
80+### Development Workflow: TUI → Headless
81+
82+<Tip>
83+ **Pro Tip**: Start in TUI mode to iterate on your AI agent and prompts. Once
84+ you have a workflow that works reliably, deploy it as a Continuous AI
85+ automation.
86+</Tip>
87+
88+1. **Experiment in TUI mode** to perfect your prompts and agent configuration
89+2. **Test different approaches** interactively until you get consistent results
90+3. **Convert successful workflows** to automated Continuous AI commands
91+4. **Deploy in production** with confidence in your proven approach
92+
93+## Why developers love Continue CLI
94+
95+- **Works in your terminal**: Not another chat window. Not another IDE. Continue CLI meets you where you already work, with the tools you already love.
96+- **Takes action**: Continue CLI can directly edit files, run commands, and create commits. Need more? Check out our [MCPs](/customize/deep-dives/mcp).
97+- **Automate tasks**: Create issues from PostHog data, automatically assign labels to issues, and more. Do all this in a single command from your developer machines, or automatically in CI.
98+- **Flexible development flow**: Start interactive, then automate proven workflows.
99+
100+## Key Capabilities
101+
102+### Context Engineering
103+
104+- Use `@` to reference files and provide context
105+- Use `/` to run slash commands for specific tasks
106+- Access the same context providers as IDE extensions
107+
108+### Tool Integration
109+
110+- File editing and creation
111+- Terminal command execution
112+- Codebase understanding and analysis
113+- Git integration
114+- Web search and documentation access
115+
116+### Model Flexibility
117+
118+- Switch between models with `/model` command
119+- Use any model configured in your `config.yaml`
120+- Access Continue Hub models and configurations
121+
122+## Continue Hub Integration
123+
124+Continue CLI integrates seamlessly with [Continue Hub](https://hub.continue.dev) for:
125+
126+### API Access
127+
128+Get an API key for automation workflows:
129+
130+1. Visit [Continue Hub API Keys](https://hub.continue.dev/settings/api-keys)
131+2. Create a new API key
132+3. Use with `cn login` or in your automation scripts
133+
134+### Secrets Management
135+
136+Store secure credentials for CLI workflows:
137+
138+1. Visit [Continue Hub Secrets](https://hub.continue.dev/settings/secrets)
139+2. Add your API keys and sensitive data
140+3. Reference in configurations with `${{ secrets.SECRET_NAME }}`
141+
142+### Configuration Sync
143+
144+- Cloud-managed configurations automatically sync
145+- Share configurations across team members
146+- Version control for your AI workflows
147+
148+## Common Use Cases
149+
150+### TUI Mode Examples
151+
152+**Interactive development and exploration:**
153+
154+<CodeGroup>
155+```bash Codebase Exploration
156+# Start interactive session
157+cn
158+> @src/components Find all unused React components
159+> /explain How does authentication work in this codebase?
160+> @auth/ What security patterns are used here?
161+```
162+
163+```bash Iterative Debugging
164+# Debug issues interactively
165+cn
166+> @tests/auth.test.js This test is failing, help me understand why
167+> @src/auth/middleware.js Let's examine this middleware
168+> /debug What could be causing the timeout error?
169+```
170+
171+```bash Workflow Development
172+# Develop and test automation workflows
173+cn
174+> @package.json @CHANGELOG.md Generate a release notes template
175+> # Test and refine the approach
176+> # Once working, convert to: cn -p "Generate release notes"
177+```
178+
179+</CodeGroup>
180+
181+### Headless Mode Examples
182+
183+**Production automation and scripting:**
184+
185+<CodeGroup>
186+```bash Git Automation
187+# Generate commit messages
188+cn -p "Generate a conventional commit message for the current changes"
189+
190+# Code review automation
191+
192+cn -p "Review the current git changes for bugs and suggest improvements"
193+
194+````
195+
196+```bash CI/CD Integration
197+# In your pipeline scripts
198+cn -p "Analyze test failures and suggest fixes"
199+
200+# Automated documentation updates
201+cn -p "@README.md Update this documentation based on recent changes"
202+````
203+
204+```bash Issue Management
205+# Create GitHub issues from PostHog data
206+cn -p "@posthog-data.json Create GitHub issues for UX problems found in this session data"
207+
208+# Automated security audits
209+cn -p "Scan the codebase for potential security vulnerabilities"
210+```
211+
212+</CodeGroup>
213+
214+## Next steps
215+
216+<CardGroup cols={3}>
217+ <Card title="CLI Quickstart" href="/cli/quick-start">
218+ Learn basic commands and common workflows
219+ </Card>
220+
221+<Card title="Installation Guide" href="/cli/install">
222+ Install Continue CLI and set up your environment
223+</Card>
224+
225+ <Card title="CLI Workflows" href="/guides/overview#continuous-ai">
226+ Task-specific tutorials and examples
227+ </Card>
228+</CardGroup>
added docs/cli/quick-start.mdx +176 −0
@@ -0,0 +1,176 @@
1+---
2+title: "Continue CLI Quick Start"
3+description: "Get hands-on experience with Continue CLI through practical examples and common use cases"
4+sidebarTitle: "Quick Start"
5+---
6+
7+Get hands-on experience with Continue CLI through practical development workflows.
8+
9+<Tabs>
10+ <Tab title="TUI Mode">
11+ TUI Mode (`cn` command) is for **large development tasks** that require
12+ agentic workflows with human oversight. Perfect for complex refactors,
13+ feature implementation, or one-off automation tasks that need monitoring and
14+ iteration.
15+ </Tab>
16+ <Tab title="Headless Mode">
17+ Headless Mode (`-p` flag) is for **reliable, repeatable tasks** that no
18+ longer need constant supervision. Perfect for CI/CD pipelines, git hooks,
19+ and automated workflows you've already tested and refined.
20+ </Tab>
21+</Tabs>
22+
23+## TUI Mode: Large Development Tasks
24+
25+Make sure you have [Continue CLI installed](/cli/install) and are in a project directory.
26+
27+### Example: Implementing a New Feature
28+
29+```bash
30+# Navigate to your project directory
31+cd your-awesome-project
32+
33+# Start TUI Mode for complex development work
34+cn
35+```
36+
37+**Example workflow for adding authentication:**
38+
39+```
40+> I need to add JWT authentication to this Express app. Let me start by showing you the current structure.
41+
42+> @src/app.js @package.json Here's my current setup. Can you implement JWT auth with middleware, login/register routes, and user model?
43+
44+> [Agent analyzes codebase and implements auth system]
45+> [You review changes, test, and provide feedback]
46+> [Agent iterates based on your input until the feature is complete]
47+```
48+
49+### Example: Complex Refactoring
50+
51+```bash
52+cn
53+```
54+
55+**Refactoring a monolithic component:**
56+
57+```
58+> @src/components/Dashboard.jsx This component is 800 lines and does too much. Help me break it into smaller, reusable components.
59+
60+> [Agent analyzes component structure]
61+> [Proposes component breakdown strategy]
62+> [You approve approach]
63+> [Agent implements the refactor with proper props and state management]
64+> [You test and request adjustments]
65+```
66+
67+### When to Use TUI Mode
68+
69+✅ **Large development tasks** that need oversight
70+✅ **Complex refactors** requiring multiple steps
71+✅ **New feature implementation** with unknowns
72+✅ **One-off automation tasks** you haven't done before
73+✅ **Debugging complex issues** that need exploration
74+
75+## Headless Mode: Automated Workflows
76+
77+Once you've refined a workflow in TUI Mode, convert it to Continuous AI for automation.
78+
79+### Example: From REPL → Continuous AI
80+
81+**Step 1: Develop in TUI Mode**
82+
83+```bash
84+cn
85+> @package.json @CHANGELOG.md Generate release notes for version 2.1.0
86+> [Test and refine the prompt until it works perfectly]
87+```
88+
89+**Step 2: Convert to Continuous AI**
90+
91+```bash
92+# Now use the refined workflow in automation
93+cn -p "Generate release notes for the current version based on package.json and recent commits"
94+```
95+
96+### Common Continuous AI Workflows
97+
98+```bash
99+# Git automation
100+cn -p "Generate a conventional commit message for staged changes"
101+cn -p "Review the last 3 commits for potential issues"
102+
103+# Code quality
104+cn -p "Fix all TypeScript errors in the src/ directory"
105+cn -p "Update outdated dependencies and fix breaking changes"
106+
107+# Documentation
108+cn -p "@README.md Update documentation based on recent changes"
109+cn -p "Generate API documentation from JSDoc comments"
110+
111+# CI/CD integration
112+cn -p "Analyze test failures and create GitHub issue with findings"
113+cn -p "Update version numbers and create release branch"
114+```
115+
116+### When to Use Headless Mode
117+
118+✅ **Proven workflows** you've tested in TUI Mode
119+✅ **Repetitive tasks** that no longer need oversight
120+✅ **CI/CD automation** in pipelines
121+✅ **Git hooks** for automated checks
122+✅ **Scheduled tasks** that run unattended
123+
124+### Available Slash Commands
125+
126+Common slash commands available in CLI:
127+
128+- `/clear` - Clear the chat history
129+- `/compact` - Summarize chat history into a compact form
130+- `/config` - Switch configuration or organization
131+- `/exit` - Exit the chat
132+- `/fork` - Start a forked chat session from the current history
133+- `/help` - Show help message
134+- `/info` - Show session information
135+- `/init` - Create an AGENTS.md file
136+- `/login` - Authenticate with your account
137+- `/logout` - Sign out of your current session
138+- `/mcp` - Manage MCP server connections
139+- `/model` - Switch between available chat models
140+- `/resume` - Resume a previous chat session
141+- `/whoami` - Check who you're currently logged in as
142+
143+<Info>Use `/help` to see all available commands.</Info>
144+
145+## The Development Workflow
146+
147+<Info>
148+ **Recommended Approach**: Start complex tasks in TUI Mode to iterate and
149+ refine your approach. Once you have a reliable workflow, convert it to
150+ Headless Mode for automation.
151+</Info>
152+
153+### Workflow Pattern
154+
155+1. **🔬 Experiment in TUI Mode**
156+
157+ - Try complex development tasks with human oversight
158+ - Iterate on prompts and approaches until they work reliably
159+ - Test edge cases and refine the agent's behavior
160+
161+2. **⚡ Automate with Continuous AI**
162+ - Convert proven REPL workflows to single commands
163+ - Deploy in CI/CD, git hooks, or scheduled tasks
164+ - Run with confidence knowing the approach is tested
165+
166+## Next Steps
167+
168+<CardGroup cols={2}>
169+ <Card title="Create Your First Workflow" href="/guides/posthog-github-continuous-ai">
170+ Build an automated PostHog to GitHub issues workflow
171+ </Card>
172+
173+ <Card title="Continuous AI Guide" href="/guides/continuous-ai">
174+ Learn to build and deploy AI-powered development workflows
175+ </Card>
176+</CardGroup>
modified docs/docs.json +5 −0
@@ -23,6 +23,11 @@
2323 "getting-started/quick-start"
2424 ]
2525 },
26+ {
27+ "group": "CLI",
28+ "icon": "terminal",
29+ "pages": ["cli/overview", "cli/install", "cli/quick-start"]
30+ },
2631 {
2732 "group": "Features",
2833 "icon": "star",
modified docs/images/cn-demo.gif +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 docs/index.mdx +117 −24
@@ -1,55 +1,148 @@
11 ---
2-title: "Introduction"
2+title: "Welcome to Continue"
33 icon: book-open
4-description: "Continue is an open source platform for building AI-powered coding assistants with customizable components for chat, autocomplete, edit, and agent workflows in VS Code and JetBrains IDEs"
4+description: "Practice Continuous AI with an open-source CLI, open-source IDE extensions, and a Hub for custom AI coding agents"
55 ---
66
77 <Frame>
88 <img src="/images/intro-0c302b9c15b890c251b1ad04586c880f.png" />
99 </Frame>
1010
11-**Continue enables developers to ship faster with Continuous AI.**
11+<Note>
12+ **Build faster with AI across your IDE, terminal, and CI/CD pipelines with
13+ Continue.**
14+</Note>
1215
13-**You can use Continue to build and run custom agents across your IDE, terminal, and CI.**
16+## Continue CLI
1417
15-1. Get started with Continue in [VS Code](https://marketplace.visualstudio.com/items?itemName=Continue.continue) or [JetBrains](https://plugins.jetbrains.com/plugin/22707-continue-extension) extensions
18+<Info>Terminal-native AI coding assistance with TUI and headless modes.</Info>
1619
17-2. Try out [Continue CLI (cn)](https://docs.continue.dev/guides/cli) and give us feedback
20+<CodeGroup>
1821
19-3. Discover models, rules, and MCP tools on [Continue Hub](https://hub.continue.dev/)
22+ ```bash npm
23+ npm install -g @continuedev/cli
24+ ```
25+
26+ ```bash yarn
27+ yarn global add @continuedev/cli
28+ ```
29+
30+ ```bash pnpm
31+ pnpm add -g @continuedev/cli
32+ ```
33+
34+</CodeGroup>
2035
2136 <CardGroup cols={2}>
2237 <Card
23- title="Agent"
24- icon="robot"
25- href="/features/agent/quick-start"
26- horizontal
38+ title="TUI Mode"
39+ icon="terminal"
40+ href="/cli/overview#tui-mode%3A-interactive-development"
2741 >
28- to work on development tasks together with AI
42+ Interactive terminal interface for development workflows
43+ <br />
44+ <sub>• Automate builds & refactoring</sub>
45+ <br />
46+ <sub>• Pre-commit hooks & scripted fixes</sub>
47+ <br />
48+ <sub>• Terminal-first development</sub>
2949 </Card>
3050 <Card
31- title="Chat"
32- icon="messages"
33- href="/features/chat/quick-start"
34- horizontal
51+ title="Headless Mode"
52+ icon="server"
53+ href="/cli/overview#headless-mode%3A-production-automation"
54+ >
55+ Automated AI coding for CI/CD and server environments
56+ <br />
57+ <sub>• Run in CI/CD pipelines</sub>
58+ <br />
59+ <sub>• Batch processing & bulk operations</sub>
60+ <br />
61+ <sub>• Server & container deployments</sub>
62+ </Card>
63+</CardGroup>
64+
65+## IDE Extensions
66+
67+<Info>
68+ **Complement your CLI workflow** - Rich editor integrations for interactive
69+ development.
70+</Info>
71+
72+<CardGroup cols={2}>
73+ <Card
74+ title="VS Code"
75+ icon="code"
76+ href="https://marketplace.visualstudio.com/items?itemName=Continue.continue"
3577 >
36- to ask general questions and clarify code sections
78+ Install from VS Code Marketplace
79+ <br />
80+ <sub>Real-time coding assistance and refactoring</sub>
3781 </Card>
3882 <Card
39- title="Edit"
40- icon="pen-to-square"
41- href="/features/edit/quick-start"
42- horizontal
83+ title="JetBrains"
84+ icon="jet-fighter"
85+ href="https://plugins.jetbrains.com/plugin/22707-continue-extension"
4386 >
44- to modify a code section without leaving your current file
87+ Install from JetBrains Plugin Repository
88+ <br />
89+ <sub>Autocomplete and multi-file edits</sub>
90+ </Card>
91+</CardGroup>
92+
93+## Core Features
94+
95+<CardGroup cols={2}>
96+ <Card title="Agent" icon="robot" href="/features/agent/quick-start">
97+ Multi-step workflows and complex task automation
98+ </Card>
99+ <Card title="Chat" icon="messages" href="/features/chat/quick-start">
100+ Ask questions and explore your codebase
101+ </Card>
102+ <Card title="Edit" icon="pen-to-square" href="/features/edit/quick-start">
103+ In-place code editing without breaking flow
45104 </Card>
46105 <Card
47106 title="Autocomplete"
48107 icon="sparkles"
49108 href="/features/autocomplete/quick-start"
50- horizontal
51109 >
52- to receive inline code suggestions as you type
110+ Inline AI suggestions as you type
111+ </Card>
112+</CardGroup>
113+
114+## Configuration
115+
116+<CardGroup cols={3}>
117+ <Card title="Models" icon="brain" href="/customization/models">
118+ Connect your preferred AI models
119+ </Card>
120+ <Card title="Rules" icon="shield" href="/customization/rules">
121+ Configure AI behavior and constraints
122+ </Card>
123+ <Card title="MCPs" icon="wrench" href="/customization/mcp-tools">
124+ Extend functionality with MCP tools
53125 </Card>
126+</CardGroup>
54127
128+## Resources
129+
130+<CardGroup cols={3}>
131+ <Card title="Continue Hub" icon="globe" href="https://hub.continue.dev/">
132+ Community models, rules, and tools
133+ </Card>
134+ <Card
135+ title="GitHub Discussions"
136+ icon="comments"
137+ href="https://github.com/continuedev/continue/discussions"
138+ >
139+ Get help from the community
140+ </Card>
141+ <Card
142+ title="CLI Examples"
143+ icon="code-branch"
144+ href="/guides/overview#continuous-ai"
145+ >
146+ TUI and headless workflow examples
147+ </Card>
55148 </CardGroup>
modified extensions/cli/src/commands/init.ts +20 −2
@@ -1,9 +1,11 @@
11 import { type AssistantConfig } from "@continuedev/sdk";
2+import { createRelativeRuleFilePath } from "core/config/markdown/utils.js";
23
34 import { SlashCommandResult } from "../ui/hooks/useChat.types.js";
45
56 function createInitPrompt(): string {
6- return `Please analyze this repository and create a comprehensive AGENTS.md file. Use your available tools to understand the project structure, read important files like README.md, package.json, requirements.txt, and other configuration files to understand the technology stack and setup.
7+ const relativeRuleFilepath = createRelativeRuleFilePath("review");
8+ return `Please analyze this repository and create a comprehensive AGENTS.md file, along with a custom slash command. Use your available tools to understand the project structure, read important files like README.md, package.json, requirements.txt, and other configuration files to understand the technology stack and setup.
79
810 Create an AGENTS.md file with the following structure:
911
@@ -30,7 +32,23 @@
3032 - Development environment setup
3133 - Lint and format commands
3234
33-Please create the AGENTS.md file using the Write tool after analyzing the repository. Focus on providing actionable information that would help both AI agents and human developers understand and work effectively with this codebase. Keep the file concise but informational.`;
35+Additionally, create a slash command file at ${relativeRuleFilepath} with the following structure:
36+
37+\`\`\`md
38+---
39+invokable: true
40+---
41+
42+Review this code for potential issues, including:
43+
44+<insert custom things to look for based on the repository details you find>
45+
46+Provide specific, actionable feedback for improvements.
47+\`\`\`
48+
49+This slash command will be invokable using /review and will provide instructions for code review tasks common to this repository.
50+
51+Please create both the AGENTS.md file and the .continue/rules/review.md file using the Write tool after analyzing the repository. Focus on providing actionable information that would help both AI agents and human developers understand and work effectively with this codebase. Keep the files concise but informational.`;
3452 }
3553
3654 export async function handleInit(
added extensions/cli/src/ui/components/ChecklistDisplay.test.tsx +63 −0
@@ -0,0 +1,63 @@
1+import { render } from "ink-testing-library";
2+import React from "react";
3+
4+import { ChecklistDisplay } from "./ChecklistDisplay.js";
5+
6+describe("ChecklistDisplay", () => {
7+ it("should highlight the first incomplete item", () => {
8+ const content = `Task list status:
9+- [x] Completed task
10+- [ ] First incomplete task
11+- [ ] Second incomplete task`;
12+
13+ const { lastFrame } = render(<ChecklistDisplay content={content} />);
14+ const output = lastFrame();
15+
16+ // The output should contain the checkbox symbols and text
17+ expect(output).toContain("✓");
18+ expect(output).toContain("○");
19+ expect(output).toContain("Completed task");
20+ expect(output).toContain("First incomplete task");
21+ expect(output).toContain("Second incomplete task");
22+ });
23+
24+ it("should handle empty checklist", () => {
25+ const content = "Task list status:";
26+
27+ const { lastFrame } = render(<ChecklistDisplay content={content} />);
28+ const output = lastFrame();
29+
30+ expect(output).toBeDefined();
31+ });
32+
33+ it("should handle all completed tasks", () => {
34+ const content = `Task list status:
35+- [x] Completed task 1
36+- [x] Completed task 2`;
37+
38+ const { lastFrame } = render(<ChecklistDisplay content={content} />);
39+ const output = lastFrame();
40+
41+ expect(output).toContain("✓");
42+ expect(output).toContain("Completed task 1");
43+ expect(output).toContain("Completed task 2");
44+ });
45+
46+ it("should handle mixed content with headers", () => {
47+ const content = `Task list status:
48+## Important Tasks
49+- [x] Done task
50+- [ ] Todo task
51+
52+## Other Tasks
53+- [ ] Another todo`;
54+
55+ const { lastFrame } = render(<ChecklistDisplay content={content} />);
56+ const output = lastFrame();
57+
58+ expect(output).toContain("Important Tasks");
59+ expect(output).toContain("Other Tasks");
60+ expect(output).toContain("✓");
61+ expect(output).toContain("○");
62+ });
63+});
modified extensions/cli/src/ui/components/ChecklistDisplay.tsx +16 −1
@@ -13,6 +13,17 @@
1313 }) => {
1414 const lines = content.split("\n");
1515
16+ // Find the index of the first incomplete checkbox item
17+ let firstIncompleteIndex = -1;
18+ for (let i = 0; i < lines.length; i++) {
19+ const line = lines[i];
20+ const checkboxMatch = line.match(/^(\s*)-\s*\[([ x])\]\s*(.*)$/);
21+ if (checkboxMatch && checkboxMatch[2] === " ") {
22+ firstIncompleteIndex = i;
23+ break;
24+ }
25+ }
26+
1627 return (
1728 <Box flexDirection="column" paddingLeft={2}>
1829 {lines.map((line, index) => {
@@ -25,6 +36,7 @@
2536 if (checkboxMatch) {
2637 const [, indent, status, taskText] = checkboxMatch;
2738 const isCompleted = status === "x";
39+ const isFirstIncomplete = index === firstIncompleteIndex;
2840
2941 return (
3042 <Box key={index}>
@@ -34,8 +46,11 @@
3446 </Text>
3547 <Text> </Text>
3648 <Text
37- color={isCompleted ? "gray" : "white"}
49+ color={
50+ isCompleted ? "gray" : isFirstIncomplete ? "cyan" : "white"
51+ }
3852 strikethrough={isCompleted}
53+ bold={isFirstIncomplete}
3954 >
4055 {taskText}
4156 </Text>
modified extensions/intellij/gradle.properties +1 −1
@@ -1,5 +1,5 @@
11 pluginGroup=com.github.continuedev.continueintellijextension
2-pluginVersion=1.0.45
2+pluginVersion=1.0.46
33 platformVersion=2024.1
44 kotlin.stdlib.default.dependency=false
55 org.gradle.configuration-cache=true
modified extensions/vscode/package.json +1 −1
@@ -2,7 +2,7 @@
22 "name": "continue",
33 "icon": "media/icon.png",
44 "author": "Continue Dev, Inc",
5- "version": "1.3.12",
5+ "version": "1.3.13",
66 "repository": {
77 "type": "git",
88 "url": "https://github.com/continuedev/continue"
modified gui/src/components/AssistantAndOrgListbox/SelectedAssistantButton.tsx +1 −3
@@ -48,9 +48,7 @@
4848 ) : (
4949 <>
5050 <AssistantIcon assistant={selectedProfile} size={iconSize} />
51- <span
52- className={`select-none truncate text-xs ${isSidebar && "hidden md:block"}`}
53- >
51+ <span className={`xs:line-clamp-1 hidden select-none text-xs`}>
5452 {selectedProfile.title}
5553 </span>
5654 </>
modified gui/src/components/AssistantAndOrgListbox/index.tsx +1 −1
@@ -150,7 +150,7 @@
150150 />
151151 <Transition>
152152 <ListboxOptions
153- className="max-h-32 -translate-x-1.5 overflow-y-auto pb-0"
153+ className="max-h-32 scale-x-[97%] overflow-y-auto pb-0"
154154 style={{ zIndex: 200 }}
155155 >
156156 <div className="flex items-center justify-between px-1.5 py-1">
modified gui/src/components/StyledMarkdownPreview/MermaidBlock.tsx +1 −1
@@ -141,7 +141,7 @@
141141 {!!error ? (
142142 <div className="text-error whitespace-pre text-sm">{error}</div>
143143 ) : (
144- <div className="relative">
144+ <div className="mermaid relative">
145145 <div className="absolute right-0 z-10 m-2 flex items-center gap-x-1">
146146 <ToolTip content={"Zoom In"}>
147147 <MagnifyingGlassPlusIcon
modified gui/src/components/StyledMarkdownPreview/index.tsx +20 −0
@@ -84,6 +84,26 @@
8484 font-family: var(--vscode-editor-font-family);
8585 }
8686
87+ ul ul,
88+ ul ol,
89+ ol ul,
90+ ol ol {
91+ padding-left: 1.5em;
92+ margin-top: 1em;
93+ }
94+
95+ li {
96+ margin-bottom: 0.8em;
97+ }
98+ li:last-child {
99+ margin-bottom: 0;
100+ }
101+
102+ ul,
103+ ol {
104+ padding-left: 2em;
105+ }
106+
87107 code:not(pre > code) {
88108 font-family: var(--vscode-editor-font-family);
89109 }
modified gui/src/components/StyledMarkdownPreview/markdown.css +3 −0
@@ -1038,3 +1038,6 @@
10381038 .token.entity {
10391039 cursor: help;
10401040 }
1041+.mermaid foreignObject {
1042+ width: 100%;
1043+}
modified gui/src/components/mainInput/InputToolbar.tsx +0 −1
@@ -56,7 +56,6 @@
5656 const hasReasoningEnabled = useAppSelector(
5757 (store) => store.session.hasReasoningEnabled,
5858 );
59-
6059 const isEnterDisabled =
6160 props.disabled || (isInEdit && codeToEdit.length === 0);
6261
modified gui/src/components/mainInput/Lump/LumpToolbar/BlockSettingsTopToolbar.tsx +1 −1
@@ -105,7 +105,7 @@
105105 };
106106
107107 return (
108- <div className="flex flex-1 items-center justify-between gap-1.5">
108+ <div className="flex flex-1 items-center justify-between gap-3">
109109 <div className="flex items-center gap-1">
110110 {shouldShowError && (
111111 <ToolTip delayShow={700} content="View configuration errors">
modified gui/src/components/ui/Button.tsx +1 −1
@@ -40,7 +40,7 @@
4040 className={cn(
4141 "cursor-pointer transition-all duration-200",
4242 "hover:enabled:cursor-pointer",
43- "disabled:text-description-muted disabled:pointer-events-none disabled:opacity-50",
43+ "disabled:cursor-not-allowed disabled:opacity-50",
4444 buttonVariants[variant],
4545 isIcon
4646 ? iconButtonSizes[size]
modified gui/src/pages/gui/StreamError.tsx +2 −8
@@ -290,10 +290,7 @@
290290 <GhostButton
291291 className="flex flex-row items-center gap-2 rounded px-3 py-1.5"
292292 onClick={() => {
293- ideMessenger.post("controlPlane/openUrl", {
294- path: GITHUB_LINK,
295- orgSlug: undefined,
296- });
293+ ideMessenger.post("openUrl", GITHUB_LINK);
297294 }}
298295 >
299296 <GithubIcon className="h-5 w-5" />
@@ -302,10 +299,7 @@
302299 <GhostButton
303300 className="flex flex-row items-center gap-2 rounded px-3 py-1.5"
304301 onClick={() => {
305- ideMessenger.post("controlPlane/openUrl", {
306- path: DISCORD_LINK,
307- orgSlug: undefined,
308- });
302+ ideMessenger.post("openUrl", DISCORD_LINK);
309303 }}
310304 >
311305 <DiscordIcon className="h-5 w-5" />
modified gui/src/pages/gui/ToolCallDiv/SimpleToolCallUI.tsx +5 −0
@@ -7,6 +7,7 @@
77 import { IdeMessengerContext } from "../../../context/IdeMessenger";
88 import { ToggleWithIcon } from "./ToggleWithIcon";
99 import { ToolCallStatusMessage } from "./ToolCallStatusMessage";
10+import { ToolTruncateHistoryIcon } from "./ToolTruncateHistoryIcon";
1011 import { toolCallStateToContextItems } from "./utils";
1112
1213 interface SimpleToolCallUIProps {
@@ -61,6 +62,10 @@
6162 />
6263 <ToolCallStatusMessage tool={tool} toolCallState={toolCallState} />
6364 </div>
65+
66+ {!!toolCallState.output?.length && (
67+ <ToolTruncateHistoryIcon historyIndex={historyIndex} />
68+ )}
6469 </div>
6570
6671 {isToggleable && (
modified gui/src/pages/gui/ToolCallDiv/ToolCallDisplay.tsx +5 −1
@@ -1,5 +1,6 @@
11 import { Tool, ToolCallState } from "core";
22 import { ToolCallStatusMessage } from "./ToolCallStatusMessage";
3+import { ToolTruncateHistoryIcon } from "./ToolTruncateHistoryIcon";
34
45 interface ToolCallDisplayProps {
56 children: React.ReactNode;
@@ -19,7 +20,7 @@
1920 return (
2021 <div className="flex flex-col justify-center px-4">
2122 <div className="mb-2 flex flex-col">
22- <div className="flex flex-row items-center justify-between gap-1.5">
23+ <div className="flex flex-row items-start justify-between gap-1.5">
2324 <div className="flex min-w-0 flex-row items-center gap-2">
2425 <div className="mt-[1px] h-4 w-4 flex-shrink-0 font-semibold">
2526 {icon}
@@ -29,6 +30,9 @@
2930 )}
3031 <ToolCallStatusMessage tool={tool} toolCallState={toolCallState} />
3132 </div>
33+ {!!toolCallState.output?.length && (
34+ <ToolTruncateHistoryIcon historyIndex={historyIndex} />
35+ )}
3236 </div>
3337 </div>
3438 <div>{children}</div>
modified gui/src/pages/gui/ToolCallDiv/ToolCallStatusMessage.tsx +1 −1
@@ -53,7 +53,7 @@
5353
5454 return (
5555 <div
56- className="text-description line-clamp-4 min-w-0 break-all"
56+ className="text-description line-clamp-4 min-w-0 break-words"
5757 data-testid="tool-call-title"
5858 >
5959 {`Continue ${intro} ${message}`}
modified gui/src/pages/gui/ToolCallDiv/ToolTruncateHistoryIcon.tsx +2 −1
@@ -21,7 +21,8 @@
2121 const { mainEditor } = useMainEditor();
2222
2323 if (historyIndex === lastMessageIndex) {
24- return null;
24+ // filler so doesn't jump in
25+ return <div className="h-3 w-3" />;
2526 }
2627
2728 return (
modified package-lock.json +750 −7
@@ -9,6 +9,8 @@
99 "@typescript-eslint/parser": "^7.8.0",
1010 "concurrently": "^9.1.2",
1111 "eslint-plugin-import": "^2.29.1",
12+ "husky": "^9.1.7",
13+ "lint-staged": "^15.5.2",
1214 "prettier": "^3.3.3",
1315 "prettier-plugin-tailwindcss": "^0.6.8",
1416 "typescript": "^5.6.3"
@@ -385,6 +387,22 @@
385387 "url": "https://github.com/sponsors/epoberezkin"
386388 }
387389 },
390+ "node_modules/ansi-escapes": {
391+ "version": "7.1.1",
392+ "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-7.1.1.tgz",
393+ "integrity": "sha512-Zhl0ErHcSRUaVfGUeUdDuLgpkEo8KIFjB4Y9uAc46ScOpdDiU1Dbyplh7qWJeJ/ZHpbyMSM26+X3BySgnIz40Q==",
394+ "dev": true,
395+ "license": "MIT",
396+ "dependencies": {
397+ "environment": "^1.0.0"
398+ },
399+ "engines": {
400+ "node": ">=18"
401+ },
402+ "funding": {
403+ "url": "https://github.com/sponsors/sindresorhus"
404+ }
405+ },
388406 "node_modules/ansi-regex": {
389407 "version": "5.0.1",
390408 "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
@@ -698,6 +716,93 @@
698716 "node": ">=8"
699717 }
700718 },
719+ "node_modules/cli-cursor": {
720+ "version": "5.0.0",
721+ "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-5.0.0.tgz",
722+ "integrity": "sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==",
723+ "dev": true,
724+ "license": "MIT",
725+ "dependencies": {
726+ "restore-cursor": "^5.0.0"
727+ },
728+ "engines": {
729+ "node": ">=18"
730+ },
731+ "funding": {
732+ "url": "https://github.com/sponsors/sindresorhus"
733+ }
734+ },
735+ "node_modules/cli-truncate": {
736+ "version": "4.0.0",
737+ "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-4.0.0.tgz",
738+ "integrity": "sha512-nPdaFdQ0h/GEigbPClz11D0v/ZJEwxmeVZGeMo3Z5StPtUTkA9o1lD6QwoirYiSDzbcwn2XcjwmCp68W1IS4TA==",
739+ "dev": true,
740+ "license": "MIT",
741+ "dependencies": {
742+ "slice-ansi": "^5.0.0",
743+ "string-width": "^7.0.0"
744+ },
745+ "engines": {
746+ "node": ">=18"
747+ },
748+ "funding": {
749+ "url": "https://github.com/sponsors/sindresorhus"
750+ }
751+ },
752+ "node_modules/cli-truncate/node_modules/ansi-regex": {
753+ "version": "6.2.2",
754+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",
755+ "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",
756+ "dev": true,
757+ "license": "MIT",
758+ "engines": {
759+ "node": ">=12"
760+ },
761+ "funding": {
762+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"
763+ }
764+ },
765+ "node_modules/cli-truncate/node_modules/emoji-regex": {
766+ "version": "10.5.0",
767+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.5.0.tgz",
768+ "integrity": "sha512-lb49vf1Xzfx080OKA0o6l8DQQpV+6Vg95zyCJX9VB/BqKYlhG7N4wgROUUHRA+ZPUefLnteQOad7z1kT2bV7bg==",
769+ "dev": true,
770+ "license": "MIT"
771+ },
772+ "node_modules/cli-truncate/node_modules/string-width": {
773+ "version": "7.2.0",
774+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",
775+ "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",
776+ "dev": true,
777+ "license": "MIT",
778+ "dependencies": {
779+ "emoji-regex": "^10.3.0",
780+ "get-east-asian-width": "^1.0.0",
781+ "strip-ansi": "^7.1.0"
782+ },
783+ "engines": {
784+ "node": ">=18"
785+ },
786+ "funding": {
787+ "url": "https://github.com/sponsors/sindresorhus"
788+ }
789+ },
790+ "node_modules/cli-truncate/node_modules/strip-ansi": {
791+ "version": "7.1.2",
792+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz",
793+ "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==",
794+ "dev": true,
795+ "license": "MIT",
796+ "dependencies": {
797+ "ansi-regex": "^6.0.1"
798+ },
799+ "engines": {
800+ "node": ">=12"
801+ },
802+ "funding": {
803+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"
804+ }
805+ },
701806 "node_modules/cliui": {
702807 "version": "8.0.1",
703808 "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
@@ -733,6 +838,23 @@
733838 "dev": true,
734839 "license": "MIT"
735840 },
841+ "node_modules/colorette": {
842+ "version": "2.0.20",
843+ "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz",
844+ "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==",
845+ "dev": true,
846+ "license": "MIT"
847+ },
848+ "node_modules/commander": {
849+ "version": "13.1.0",
850+ "resolved": "https://registry.npmjs.org/commander/-/commander-13.1.0.tgz",
851+ "integrity": "sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==",
852+ "dev": true,
853+ "license": "MIT",
854+ "engines": {
855+ "node": ">=18"
856+ }
857+ },
736858 "node_modules/concat-map": {
737859 "version": "0.0.1",
738860 "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
@@ -772,7 +894,6 @@
772894 "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
773895 "dev": true,
774896 "license": "MIT",
775- "peer": true,
776897 "dependencies": {
777898 "path-key": "^3.1.0",
778899 "shebang-command": "^2.0.0",
@@ -947,6 +1068,19 @@
9471068 "dev": true,
9481069 "license": "MIT"
9491070 },
1071+ "node_modules/environment": {
1072+ "version": "1.1.0",
1073+ "resolved": "https://registry.npmjs.org/environment/-/environment-1.1.0.tgz",
1074+ "integrity": "sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==",
1075+ "dev": true,
1076+ "license": "MIT",
1077+ "engines": {
1078+ "node": ">=18"
1079+ },
1080+ "funding": {
1081+ "url": "https://github.com/sponsors/sindresorhus"
1082+ }
1083+ },
9501084 "node_modules/es-abstract": {
9511085 "version": "1.24.0",
9521086 "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.0.tgz",
@@ -1444,6 +1578,37 @@
14441578 "node": ">=0.10.0"
14451579 }
14461580 },
1581+ "node_modules/eventemitter3": {
1582+ "version": "5.0.1",
1583+ "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz",
1584+ "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==",
1585+ "dev": true,
1586+ "license": "MIT"
1587+ },
1588+ "node_modules/execa": {
1589+ "version": "8.0.1",
1590+ "resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz",
1591+ "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==",
1592+ "dev": true,
1593+ "license": "MIT",
1594+ "dependencies": {
1595+ "cross-spawn": "^7.0.3",
1596+ "get-stream": "^8.0.1",
1597+ "human-signals": "^5.0.0",
1598+ "is-stream": "^3.0.0",
1599+ "merge-stream": "^2.0.0",
1600+ "npm-run-path": "^5.1.0",
1601+ "onetime": "^6.0.0",
1602+ "signal-exit": "^4.1.0",
1603+ "strip-final-newline": "^3.0.0"
1604+ },
1605+ "engines": {
1606+ "node": ">=16.17"
1607+ },
1608+ "funding": {
1609+ "url": "https://github.com/sindresorhus/execa?sponsor=1"
1610+ }
1611+ },
14471612 "node_modules/fast-deep-equal": {
14481613 "version": "3.1.3",
14491614 "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
@@ -1652,6 +1817,19 @@
16521817 "node": "6.* || 8.* || >= 10.*"
16531818 }
16541819 },
1820+ "node_modules/get-east-asian-width": {
1821+ "version": "1.4.0",
1822+ "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.4.0.tgz",
1823+ "integrity": "sha512-QZjmEOC+IT1uk6Rx0sX22V6uHWVwbdbxf1faPqJ1QhLdGgsRGCZoyaQBm/piRdJy/D2um6hM1UP7ZEeQ4EkP+Q==",
1824+ "dev": true,
1825+ "license": "MIT",
1826+ "engines": {
1827+ "node": ">=18"
1828+ },
1829+ "funding": {
1830+ "url": "https://github.com/sponsors/sindresorhus"
1831+ }
1832+ },
16551833 "node_modules/get-intrinsic": {
16561834 "version": "1.3.0",
16571835 "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
@@ -1691,6 +1869,19 @@
16911869 "node": ">= 0.4"
16921870 }
16931871 },
1872+ "node_modules/get-stream": {
1873+ "version": "8.0.1",
1874+ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz",
1875+ "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==",
1876+ "dev": true,
1877+ "license": "MIT",
1878+ "engines": {
1879+ "node": ">=16"
1880+ },
1881+ "funding": {
1882+ "url": "https://github.com/sponsors/sindresorhus"
1883+ }
1884+ },
16941885 "node_modules/get-symbol-description": {
16951886 "version": "1.1.0",
16961887 "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz",
@@ -1942,6 +2133,32 @@
19422133 "node": ">= 0.4"
19432134 }
19442135 },
2136+ "node_modules/human-signals": {
2137+ "version": "5.0.0",
2138+ "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz",
2139+ "integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==",
2140+ "dev": true,
2141+ "license": "Apache-2.0",
2142+ "engines": {
2143+ "node": ">=16.17.0"
2144+ }
2145+ },
2146+ "node_modules/husky": {
2147+ "version": "9.1.7",
2148+ "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.7.tgz",
2149+ "integrity": "sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==",
2150+ "dev": true,
2151+ "license": "MIT",
2152+ "bin": {
2153+ "husky": "bin.js"
2154+ },
2155+ "engines": {
2156+ "node": ">=18"
2157+ },
2158+ "funding": {
2159+ "url": "https://github.com/sponsors/typicode"
2160+ }
2161+ },
19452162 "node_modules/ignore": {
19462163 "version": "5.3.2",
19472164 "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
@@ -2332,6 +2549,19 @@
23322549 "url": "https://github.com/sponsors/ljharb"
23332550 }
23342551 },
2552+ "node_modules/is-stream": {
2553+ "version": "3.0.0",
2554+ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz",
2555+ "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==",
2556+ "dev": true,
2557+ "license": "MIT",
2558+ "engines": {
2559+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
2560+ },
2561+ "funding": {
2562+ "url": "https://github.com/sponsors/sindresorhus"
2563+ }
2564+ },
23352565 "node_modules/is-string": {
23362566 "version": "1.1.1",
23372567 "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz",
@@ -2441,8 +2671,7 @@
24412671 "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
24422672 "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
24432673 "dev": true,
2444- "license": "ISC",
2445- "peer": true
2674+ "license": "ISC"
24462675 },
24472676 "node_modules/js-yaml": {
24482677 "version": "4.1.0",
@@ -2521,6 +2750,163 @@
25212750 "node": ">= 0.8.0"
25222751 }
25232752 },
2753+ "node_modules/lilconfig": {
2754+ "version": "3.1.3",
2755+ "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz",
2756+ "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==",
2757+ "dev": true,
2758+ "license": "MIT",
2759+ "engines": {
2760+ "node": ">=14"
2761+ },
2762+ "funding": {
2763+ "url": "https://github.com/sponsors/antonk52"
2764+ }
2765+ },
2766+ "node_modules/lint-staged": {
2767+ "version": "15.5.2",
2768+ "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-15.5.2.tgz",
2769+ "integrity": "sha512-YUSOLq9VeRNAo/CTaVmhGDKG+LBtA8KF1X4K5+ykMSwWST1vDxJRB2kv2COgLb1fvpCo+A/y9A0G0znNVmdx4w==",
2770+ "dev": true,
2771+ "license": "MIT",
2772+ "dependencies": {
2773+ "chalk": "^5.4.1",
2774+ "commander": "^13.1.0",
2775+ "debug": "^4.4.0",
2776+ "execa": "^8.0.1",
2777+ "lilconfig": "^3.1.3",
2778+ "listr2": "^8.2.5",
2779+ "micromatch": "^4.0.8",
2780+ "pidtree": "^0.6.0",
2781+ "string-argv": "^0.3.2",
2782+ "yaml": "^2.7.0"
2783+ },
2784+ "bin": {
2785+ "lint-staged": "bin/lint-staged.js"
2786+ },
2787+ "engines": {
2788+ "node": ">=18.12.0"
2789+ },
2790+ "funding": {
2791+ "url": "https://opencollective.com/lint-staged"
2792+ }
2793+ },
2794+ "node_modules/lint-staged/node_modules/chalk": {
2795+ "version": "5.6.2",
2796+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.6.2.tgz",
2797+ "integrity": "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==",
2798+ "dev": true,
2799+ "license": "MIT",
2800+ "engines": {
2801+ "node": "^12.17.0 || ^14.13 || >=16.0.0"
2802+ },
2803+ "funding": {
2804+ "url": "https://github.com/chalk/chalk?sponsor=1"
2805+ }
2806+ },
2807+ "node_modules/listr2": {
2808+ "version": "8.3.3",
2809+ "resolved": "https://registry.npmjs.org/listr2/-/listr2-8.3.3.tgz",
2810+ "integrity": "sha512-LWzX2KsqcB1wqQ4AHgYb4RsDXauQiqhjLk+6hjbaeHG4zpjjVAB6wC/gz6X0l+Du1cN3pUB5ZlrvTbhGSNnUQQ==",
2811+ "dev": true,
2812+ "license": "MIT",
2813+ "dependencies": {
2814+ "cli-truncate": "^4.0.0",
2815+ "colorette": "^2.0.20",
2816+ "eventemitter3": "^5.0.1",
2817+ "log-update": "^6.1.0",
2818+ "rfdc": "^1.4.1",
2819+ "wrap-ansi": "^9.0.0"
2820+ },
2821+ "engines": {
2822+ "node": ">=18.0.0"
2823+ }
2824+ },
2825+ "node_modules/listr2/node_modules/ansi-regex": {
2826+ "version": "6.2.2",
2827+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",
2828+ "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",
2829+ "dev": true,
2830+ "license": "MIT",
2831+ "engines": {
2832+ "node": ">=12"
2833+ },
2834+ "funding": {
2835+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"
2836+ }
2837+ },
2838+ "node_modules/listr2/node_modules/ansi-styles": {
2839+ "version": "6.2.3",
2840+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",
2841+ "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",
2842+ "dev": true,
2843+ "license": "MIT",
2844+ "engines": {
2845+ "node": ">=12"
2846+ },
2847+ "funding": {
2848+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
2849+ }
2850+ },
2851+ "node_modules/listr2/node_modules/emoji-regex": {
2852+ "version": "10.5.0",
2853+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.5.0.tgz",
2854+ "integrity": "sha512-lb49vf1Xzfx080OKA0o6l8DQQpV+6Vg95zyCJX9VB/BqKYlhG7N4wgROUUHRA+ZPUefLnteQOad7z1kT2bV7bg==",
2855+ "dev": true,
2856+ "license": "MIT"
2857+ },
2858+ "node_modules/listr2/node_modules/string-width": {
2859+ "version": "7.2.0",
2860+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",
2861+ "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",
2862+ "dev": true,
2863+ "license": "MIT",
2864+ "dependencies": {
2865+ "emoji-regex": "^10.3.0",
2866+ "get-east-asian-width": "^1.0.0",
2867+ "strip-ansi": "^7.1.0"
2868+ },
2869+ "engines": {
2870+ "node": ">=18"
2871+ },
2872+ "funding": {
2873+ "url": "https://github.com/sponsors/sindresorhus"
2874+ }
2875+ },
2876+ "node_modules/listr2/node_modules/strip-ansi": {
2877+ "version": "7.1.2",
2878+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz",
2879+ "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==",
2880+ "dev": true,
2881+ "license": "MIT",
2882+ "dependencies": {
2883+ "ansi-regex": "^6.0.1"
2884+ },
2885+ "engines": {
2886+ "node": ">=12"
2887+ },
2888+ "funding": {
2889+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"
2890+ }
2891+ },
2892+ "node_modules/listr2/node_modules/wrap-ansi": {
2893+ "version": "9.0.2",
2894+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz",
2895+ "integrity": "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==",
2896+ "dev": true,
2897+ "license": "MIT",
2898+ "dependencies": {
2899+ "ansi-styles": "^6.2.1",
2900+ "string-width": "^7.0.0",
2901+ "strip-ansi": "^7.1.0"
2902+ },
2903+ "engines": {
2904+ "node": ">=18"
2905+ },
2906+ "funding": {
2907+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
2908+ }
2909+ },
25242910 "node_modules/locate-path": {
25252911 "version": "6.0.0",
25262912 "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
@@ -2553,6 +2939,144 @@
25532939 "license": "MIT",
25542940 "peer": true
25552941 },
2942+ "node_modules/log-update": {
2943+ "version": "6.1.0",
2944+ "resolved": "https://registry.npmjs.org/log-update/-/log-update-6.1.0.tgz",
2945+ "integrity": "sha512-9ie8ItPR6tjY5uYJh8K/Zrv/RMZ5VOlOWvtZdEHYSTFKZfIBPQa9tOAEeAWhd+AnIneLJ22w5fjOYtoutpWq5w==",
2946+ "dev": true,
2947+ "license": "MIT",
2948+ "dependencies": {
2949+ "ansi-escapes": "^7.0.0",
2950+ "cli-cursor": "^5.0.0",
2951+ "slice-ansi": "^7.1.0",
2952+ "strip-ansi": "^7.1.0",
2953+ "wrap-ansi": "^9.0.0"
2954+ },
2955+ "engines": {
2956+ "node": ">=18"
2957+ },
2958+ "funding": {
2959+ "url": "https://github.com/sponsors/sindresorhus"
2960+ }
2961+ },
2962+ "node_modules/log-update/node_modules/ansi-regex": {
2963+ "version": "6.2.2",
2964+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",
2965+ "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",
2966+ "dev": true,
2967+ "license": "MIT",
2968+ "engines": {
2969+ "node": ">=12"
2970+ },
2971+ "funding": {
2972+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"
2973+ }
2974+ },
2975+ "node_modules/log-update/node_modules/ansi-styles": {
2976+ "version": "6.2.3",
2977+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",
2978+ "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",
2979+ "dev": true,
2980+ "license": "MIT",
2981+ "engines": {
2982+ "node": ">=12"
2983+ },
2984+ "funding": {
2985+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
2986+ }
2987+ },
2988+ "node_modules/log-update/node_modules/emoji-regex": {
2989+ "version": "10.5.0",
2990+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.5.0.tgz",
2991+ "integrity": "sha512-lb49vf1Xzfx080OKA0o6l8DQQpV+6Vg95zyCJX9VB/BqKYlhG7N4wgROUUHRA+ZPUefLnteQOad7z1kT2bV7bg==",
2992+ "dev": true,
2993+ "license": "MIT"
2994+ },
2995+ "node_modules/log-update/node_modules/is-fullwidth-code-point": {
2996+ "version": "5.1.0",
2997+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-5.1.0.tgz",
2998+ "integrity": "sha512-5XHYaSyiqADb4RnZ1Bdad6cPp8Toise4TzEjcOYDHZkTCbKgiUl7WTUCpNWHuxmDt91wnsZBc9xinNzopv3JMQ==",
2999+ "dev": true,
3000+ "license": "MIT",
3001+ "dependencies": {
3002+ "get-east-asian-width": "^1.3.1"
3003+ },
3004+ "engines": {
3005+ "node": ">=18"
3006+ },
3007+ "funding": {
3008+ "url": "https://github.com/sponsors/sindresorhus"
3009+ }
3010+ },
3011+ "node_modules/log-update/node_modules/slice-ansi": {
3012+ "version": "7.1.2",
3013+ "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-7.1.2.tgz",
3014+ "integrity": "sha512-iOBWFgUX7caIZiuutICxVgX1SdxwAVFFKwt1EvMYYec/NWO5meOJ6K5uQxhrYBdQJne4KxiqZc+KptFOWFSI9w==",
3015+ "dev": true,
3016+ "license": "MIT",
3017+ "dependencies": {
3018+ "ansi-styles": "^6.2.1",
3019+ "is-fullwidth-code-point": "^5.0.0"
3020+ },
3021+ "engines": {
3022+ "node": ">=18"
3023+ },
3024+ "funding": {
3025+ "url": "https://github.com/chalk/slice-ansi?sponsor=1"
3026+ }
3027+ },
3028+ "node_modules/log-update/node_modules/string-width": {
3029+ "version": "7.2.0",
3030+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",
3031+ "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",
3032+ "dev": true,
3033+ "license": "MIT",
3034+ "dependencies": {
3035+ "emoji-regex": "^10.3.0",
3036+ "get-east-asian-width": "^1.0.0",
3037+ "strip-ansi": "^7.1.0"
3038+ },
3039+ "engines": {
3040+ "node": ">=18"
3041+ },
3042+ "funding": {
3043+ "url": "https://github.com/sponsors/sindresorhus"
3044+ }
3045+ },
3046+ "node_modules/log-update/node_modules/strip-ansi": {
3047+ "version": "7.1.2",
3048+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz",
3049+ "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==",
3050+ "dev": true,
3051+ "license": "MIT",
3052+ "dependencies": {
3053+ "ansi-regex": "^6.0.1"
3054+ },
3055+ "engines": {
3056+ "node": ">=12"
3057+ },
3058+ "funding": {
3059+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"
3060+ }
3061+ },
3062+ "node_modules/log-update/node_modules/wrap-ansi": {
3063+ "version": "9.0.2",
3064+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz",
3065+ "integrity": "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==",
3066+ "dev": true,
3067+ "license": "MIT",
3068+ "dependencies": {
3069+ "ansi-styles": "^6.2.1",
3070+ "string-width": "^7.0.0",
3071+ "strip-ansi": "^7.1.0"
3072+ },
3073+ "engines": {
3074+ "node": ">=18"
3075+ },
3076+ "funding": {
3077+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
3078+ }
3079+ },
25563080 "node_modules/math-intrinsics": {
25573081 "version": "1.1.0",
25583082 "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
@@ -2563,6 +3087,13 @@
25633087 "node": ">= 0.4"
25643088 }
25653089 },
3090+ "node_modules/merge-stream": {
3091+ "version": "2.0.0",
3092+ "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",
3093+ "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",
3094+ "dev": true,
3095+ "license": "MIT"
3096+ },
25663097 "node_modules/merge2": {
25673098 "version": "1.4.1",
25683099 "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",
@@ -2587,6 +3118,32 @@
25873118 "node": ">=8.6"
25883119 }
25893120 },
3121+ "node_modules/mimic-fn": {
3122+ "version": "4.0.0",
3123+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz",
3124+ "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==",
3125+ "dev": true,
3126+ "license": "MIT",
3127+ "engines": {
3128+ "node": ">=12"
3129+ },
3130+ "funding": {
3131+ "url": "https://github.com/sponsors/sindresorhus"
3132+ }
3133+ },
3134+ "node_modules/mimic-function": {
3135+ "version": "5.0.1",
3136+ "resolved": "https://registry.npmjs.org/mimic-function/-/mimic-function-5.0.1.tgz",
3137+ "integrity": "sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==",
3138+ "dev": true,
3139+ "license": "MIT",
3140+ "engines": {
3141+ "node": ">=18"
3142+ },
3143+ "funding": {
3144+ "url": "https://github.com/sponsors/sindresorhus"
3145+ }
3146+ },
25903147 "node_modules/minimatch": {
25913148 "version": "9.0.5",
25923149 "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
@@ -2628,6 +3185,35 @@
26283185 "license": "MIT",
26293186 "peer": true
26303187 },
3188+ "node_modules/npm-run-path": {
3189+ "version": "5.3.0",
3190+ "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz",
3191+ "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==",
3192+ "dev": true,
3193+ "license": "MIT",
3194+ "dependencies": {
3195+ "path-key": "^4.0.0"
3196+ },
3197+ "engines": {
3198+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
3199+ },
3200+ "funding": {
3201+ "url": "https://github.com/sponsors/sindresorhus"
3202+ }
3203+ },
3204+ "node_modules/npm-run-path/node_modules/path-key": {
3205+ "version": "4.0.0",
3206+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz",
3207+ "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==",
3208+ "dev": true,
3209+ "license": "MIT",
3210+ "engines": {
3211+ "node": ">=12"
3212+ },
3213+ "funding": {
3214+ "url": "https://github.com/sponsors/sindresorhus"
3215+ }
3216+ },
26313217 "node_modules/object-inspect": {
26323218 "version": "1.13.4",
26333219 "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
@@ -2736,6 +3322,22 @@
27363322 "wrappy": "1"
27373323 }
27383324 },
3325+ "node_modules/onetime": {
3326+ "version": "6.0.0",
3327+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz",
3328+ "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==",
3329+ "dev": true,
3330+ "license": "MIT",
3331+ "dependencies": {
3332+ "mimic-fn": "^4.0.0"
3333+ },
3334+ "engines": {
3335+ "node": ">=12"
3336+ },
3337+ "funding": {
3338+ "url": "https://github.com/sponsors/sindresorhus"
3339+ }
3340+ },
27393341 "node_modules/optionator": {
27403342 "version": "0.9.4",
27413343 "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",
@@ -2849,7 +3451,6 @@
28493451 "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
28503452 "dev": true,
28513453 "license": "MIT",
2852- "peer": true,
28533454 "engines": {
28543455 "node": ">=8"
28553456 }
@@ -2884,6 +3485,19 @@
28843485 "url": "https://github.com/sponsors/jonschlinkert"
28853486 }
28863487 },
3488+ "node_modules/pidtree": {
3489+ "version": "0.6.0",
3490+ "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.6.0.tgz",
3491+ "integrity": "sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==",
3492+ "dev": true,
3493+ "license": "MIT",
3494+ "bin": {
3495+ "pidtree": "bin/pidtree.js"
3496+ },
3497+ "engines": {
3498+ "node": ">=0.10"
3499+ }
3500+ },
28873501 "node_modules/possible-typed-array-names": {
28883502 "version": "1.1.0",
28893503 "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz",
@@ -3118,6 +3732,39 @@
31183732 "node": ">=4"
31193733 }
31203734 },
3735+ "node_modules/restore-cursor": {
3736+ "version": "5.1.0",
3737+ "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-5.1.0.tgz",
3738+ "integrity": "sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==",
3739+ "dev": true,
3740+ "license": "MIT",
3741+ "dependencies": {
3742+ "onetime": "^7.0.0",
3743+ "signal-exit": "^4.1.0"
3744+ },
3745+ "engines": {
3746+ "node": ">=18"
3747+ },
3748+ "funding": {
3749+ "url": "https://github.com/sponsors/sindresorhus"
3750+ }
3751+ },
3752+ "node_modules/restore-cursor/node_modules/onetime": {
3753+ "version": "7.0.0",
3754+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-7.0.0.tgz",
3755+ "integrity": "sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==",
3756+ "dev": true,
3757+ "license": "MIT",
3758+ "dependencies": {
3759+ "mimic-function": "^5.0.0"
3760+ },
3761+ "engines": {
3762+ "node": ">=18"
3763+ },
3764+ "funding": {
3765+ "url": "https://github.com/sponsors/sindresorhus"
3766+ }
3767+ },
31213768 "node_modules/reusify": {
31223769 "version": "1.1.0",
31233770 "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",
@@ -3129,6 +3776,13 @@
31293776 "node": ">=0.10.0"
31303777 }
31313778 },
3779+ "node_modules/rfdc": {
3780+ "version": "1.4.1",
3781+ "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz",
3782+ "integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==",
3783+ "dev": true,
3784+ "license": "MIT"
3785+ },
31323786 "node_modules/rimraf": {
31333787 "version": "3.0.2",
31343788 "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
@@ -3304,7 +3958,6 @@
33043958 "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
33053959 "dev": true,
33063960 "license": "MIT",
3307- "peer": true,
33083961 "dependencies": {
33093962 "shebang-regex": "^3.0.0"
33103963 },
@@ -3318,7 +3971,6 @@
33183971 "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
33193972 "dev": true,
33203973 "license": "MIT",
3321- "peer": true,
33223974 "engines": {
33233975 "node": ">=8"
33243976 }
@@ -3412,6 +4064,19 @@
34124064 "url": "https://github.com/sponsors/ljharb"
34134065 }
34144066 },
4067+ "node_modules/signal-exit": {
4068+ "version": "4.1.0",
4069+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",
4070+ "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",
4071+ "dev": true,
4072+ "license": "ISC",
4073+ "engines": {
4074+ "node": ">=14"
4075+ },
4076+ "funding": {
4077+ "url": "https://github.com/sponsors/isaacs"
4078+ }
4079+ },
34154080 "node_modules/slash": {
34164081 "version": "3.0.0",
34174082 "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
@@ -3422,6 +4087,49 @@
34224087 "node": ">=8"
34234088 }
34244089 },
4090+ "node_modules/slice-ansi": {
4091+ "version": "5.0.0",
4092+ "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-5.0.0.tgz",
4093+ "integrity": "sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==",
4094+ "dev": true,
4095+ "license": "MIT",
4096+ "dependencies": {
4097+ "ansi-styles": "^6.0.0",
4098+ "is-fullwidth-code-point": "^4.0.0"
4099+ },
4100+ "engines": {
4101+ "node": ">=12"
4102+ },
4103+ "funding": {
4104+ "url": "https://github.com/chalk/slice-ansi?sponsor=1"
4105+ }
4106+ },
4107+ "node_modules/slice-ansi/node_modules/ansi-styles": {
4108+ "version": "6.2.3",
4109+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",
4110+ "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",
4111+ "dev": true,
4112+ "license": "MIT",
4113+ "engines": {
4114+ "node": ">=12"
4115+ },
4116+ "funding": {
4117+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
4118+ }
4119+ },
4120+ "node_modules/slice-ansi/node_modules/is-fullwidth-code-point": {
4121+ "version": "4.0.0",
4122+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz",
4123+ "integrity": "sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==",
4124+ "dev": true,
4125+ "license": "MIT",
4126+ "engines": {
4127+ "node": ">=12"
4128+ },
4129+ "funding": {
4130+ "url": "https://github.com/sponsors/sindresorhus"
4131+ }
4132+ },
34254133 "node_modules/stop-iteration-iterator": {
34264134 "version": "1.1.0",
34274135 "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.1.0.tgz",
@@ -3436,6 +4144,16 @@
34364144 "node": ">= 0.4"
34374145 }
34384146 },
4147+ "node_modules/string-argv": {
4148+ "version": "0.3.2",
4149+ "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz",
4150+ "integrity": "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==",
4151+ "dev": true,
4152+ "license": "MIT",
4153+ "engines": {
4154+ "node": ">=0.6.19"
4155+ }
4156+ },
34394157 "node_modules/string-width": {
34404158 "version": "4.2.3",
34414159 "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
@@ -3533,6 +4251,19 @@
35334251 "node": ">=4"
35344252 }
35354253 },
4254+ "node_modules/strip-final-newline": {
4255+ "version": "3.0.0",
4256+ "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz",
4257+ "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==",
4258+ "dev": true,
4259+ "license": "MIT",
4260+ "engines": {
4261+ "node": ">=12"
4262+ },
4263+ "funding": {
4264+ "url": "https://github.com/sponsors/sindresorhus"
4265+ }
4266+ },
35364267 "node_modules/strip-json-comments": {
35374268 "version": "3.1.1",
35384269 "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
@@ -3796,7 +4527,6 @@
37964527 "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
37974528 "dev": true,
37984529 "license": "ISC",
3799- "peer": true,
38004530 "dependencies": {
38014531 "isexe": "^2.0.0"
38024532 },
@@ -3943,6 +4673,19 @@
39434673 "node": ">=10"
39444674 }
39454675 },
4676+ "node_modules/yaml": {
4677+ "version": "2.8.1",
4678+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.1.tgz",
4679+ "integrity": "sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw==",
4680+ "dev": true,
4681+ "license": "ISC",
4682+ "bin": {
4683+ "yaml": "bin.mjs"
4684+ },
4685+ "engines": {
4686+ "node": ">= 14.6"
4687+ }
4688+ },
39464689 "node_modules/yargs": {
39474690 "version": "17.7.2",
39484691 "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
modified package.json +7 −1
@@ -7,12 +7,18 @@
77 "tsc:watch:core": "tsc --project core/tsconfig.json --watch --noEmit --pretty",
88 "tsc:watch:binary": "tsc --project binary/tsconfig.json --watch --noEmit --pretty",
99 "format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,css,md}\" --ignore-path .gitignore --ignore-path .prettierignore",
10- "format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,json,css,md}\" --ignore-path .gitignore --ignore-path .prettierignore"
10+ "format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,json,css,md}\" --ignore-path .gitignore --ignore-path .prettierignore",
11+ "prepare": "husky"
12+ },
13+ "lint-staged": {
14+ "*.{js,jsx,ts,tsx,json,css,md}": "prettier --write"
1115 },
1216 "devDependencies": {
1317 "@typescript-eslint/parser": "^7.8.0",
1418 "concurrently": "^9.1.2",
1519 "eslint-plugin-import": "^2.29.1",
20+ "husky": "^9.1.7",
21+ "lint-staged": "^15.5.2",
1622 "prettier": "^3.3.3",
1723 "prettier-plugin-tailwindcss": "^0.6.8",
1824 "typescript": "^5.6.3"
modified packages/llm-info/src/index.ts +21 −5
@@ -10,7 +10,7 @@
1010 import { Vllm } from "./providers/vllm.js";
1111 import { Voyage } from "./providers/voyage.js";
1212 import { xAI } from "./providers/xAI.js";
13-import { LlmInfo, ModelProvider, UseCase } from "./types.js";
13+import { LlmInfoWithProvider, ModelProvider, UseCase } from "./types.js";
1414
1515 export const allModelProviders: ModelProvider[] = [
1616 OpenAi,
@@ -27,16 +27,32 @@
2727 xAI,
2828 ];
2929
30-export const allLlms: LlmInfo[] = allModelProviders.flatMap((provider) =>
31- provider.models.map((model) => ({ ...model, provider: provider.id })),
30+export const allLlms: LlmInfoWithProvider[] = allModelProviders.flatMap(
31+ (provider) =>
32+ provider.models.map((model) => ({ ...model, provider: provider.id })),
3233 );
3334
34-export function findLlmInfo(model: string): LlmInfo | undefined {
35+export function findLlmInfo(
36+ model: string,
37+ preferProviderId?: string,
38+): LlmInfoWithProvider | undefined {
39+ if (preferProviderId) {
40+ const provider = allModelProviders.find((p) => p.id === preferProviderId);
41+ const info = provider?.models.find((llm) =>
42+ llm.regex ? llm.regex.test(model) : llm.model === model,
43+ );
44+ if (info) {
45+ return {
46+ ...info,
47+ provider: preferProviderId,
48+ };
49+ }
50+ }
3551 return allLlms.find((llm) =>
3652 llm.regex ? llm.regex.test(model) : llm.model === model,
3753 );
3854 }
3955
40-export function getAllRecommendedFor(useCase: UseCase): LlmInfo[] {
56+export function getAllRecommendedFor(useCase: UseCase): LlmInfoWithProvider[] {
4157 return allLlms.filter((llm) => llm.recommendedFor?.includes(useCase));
4258 }