diff --git a/.github/actions/run-vscode-e2e-test/action.yml b/.github/actions/run-vscode-e2e-test/action.yml index 1fcba5245..d9ac252af 100644 --- a/.github/actions/run-vscode-e2e-test/action.yml +++ b/.github/actions/run-vscode-e2e-test/action.yml @@ -1,25 +1,25 @@ -name: 'Run VS Code E2E Test' -description: 'Run a single VS Code E2E test with all required setup' +name: "Run VS Code E2E Test" +description: "Run a single VS Code E2E test with all required setup" inputs: test_file: - description: 'E2E test file to run' + description: "E2E test file to run" required: true command: - description: 'Command to run (e2e:ci:run or e2e:ci:run-yaml)' + description: "Command to run (e2e:ci:run or e2e:ci:run-yaml)" required: true ssh_key: - description: 'SSH private key for testing' + description: "SSH private key for testing" required: false ssh_host: - description: 'SSH host for testing' + description: "SSH host for testing" required: false is_fork: - description: 'Whether this is a fork (affects SSH tests)' + description: "Whether this is a fork (affects SSH tests)" required: false - default: 'false' + default: "false" runs: - using: 'composite' + using: "composite" steps: - uses: actions/setup-node@v4 with: @@ -58,6 +58,7 @@ runs: cd core npm ci cd ../extensions/vscode + npm ci npm run e2e:ci:download else cd core @@ -131,4 +132,4 @@ runs: uses: actions/upload-artifact@v4 with: name: e2e-logs-${{ steps.sanitize_filename.outputs.sanitized_test_file || 'unknown' }}-${{ inputs.command == 'e2e:ci:run-yaml' && 'yaml' || 'json' }} - path: extensions/vscode/e2e.log \ No newline at end of file + path: extensions/vscode/e2e.log diff --git a/.github/workflows/auto-fix-failed-tests.yml b/.github/workflows/auto-fix-failed-tests.yml new file mode 100644 index 000000000..e11676229 --- /dev/null +++ b/.github/workflows/auto-fix-failed-tests.yml @@ -0,0 +1,170 @@ +name: Auto Fix Failed Tests + +on: + workflow_run: + workflows: ["PR Checks", "CLI PR Checks"] + types: + - completed + +permissions: + contents: write + pull-requests: write + issues: write + actions: read + +jobs: + fix-failed-tests: + # Only run if the workflow failed + # DISABLED: Remove 'false && ' on the next line to enable auto-fixing + if: false && github.event.workflow_run.conclusion == 'failure' + runs-on: ubuntu-latest + + steps: + - name: Get workflow run details + id: workflow-details + uses: actions/github-script@v7 + with: + script: | + const workflowRun = context.payload.workflow_run; + const { data: jobs } = await github.rest.actions.listJobsForWorkflowRun({ + owner: context.repo.owner, + repo: context.repo.repo, + run_id: workflowRun.id + }); + + // Find all failed jobs since we're only monitoring specific test workflows + const failedJobs = jobs.jobs.filter(job => job.conclusion === 'failure'); + + if (failedJobs.length === 0) { + core.info('No failed jobs found'); + return null; + } + + core.setOutput('has_failed_tests', 'true'); + core.setOutput('workflow_name', workflowRun.name); + core.setOutput('workflow_run_id', workflowRun.id); + core.setOutput('head_branch', workflowRun.head_branch); + core.setOutput('head_sha', workflowRun.head_sha); + core.setOutput('failed_jobs', JSON.stringify(failedJobs.map(j => j.name))); + + return failedJobs; + + - name: Get job logs for failed tests + if: steps.workflow-details.outputs.has_failed_tests == 'true' + id: get-logs + uses: actions/github-script@v7 + with: + script: | + const workflowRunId = ${{ github.event.workflow_run.id }}; + const { data: jobs } = await github.rest.actions.listJobsForWorkflowRun({ + owner: context.repo.owner, + repo: context.repo.repo, + run_id: workflowRunId + }); + + let errorLogs = ''; + + for (const job of jobs.jobs) { + if (job.conclusion === 'failure') { + try { + const { data: logData } = await github.rest.actions.downloadJobLogsForWorkflowRun({ + owner: context.repo.owner, + repo: context.repo.repo, + job_id: job.id + }); + + errorLogs += `\n\n=== Job: ${job.name} ===\n`; + errorLogs += logData; + } catch (error) { + core.warning(`Could not fetch logs for job ${job.name}: ${error.message}`); + } + } + } + + // Store logs in environment file for next step + const fs = require('fs'); + fs.writeFileSync('/tmp/test_failure_logs.txt', errorLogs); + + core.setOutput('has_logs', errorLogs.length > 0 ? 'true' : 'false'); + + - name: Checkout repository + if: steps.workflow-details.outputs.has_failed_tests == 'true' + uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + fetch-depth: 0 + ref: ${{ steps.workflow-details.outputs.head_sha }} + + - name: Setup Node.js + if: steps.workflow-details.outputs.has_failed_tests == 'true' + uses: actions/setup-node@v5 + with: + node-version: "20" + + - name: Install Continue CLI globally + if: steps.workflow-details.outputs.has_failed_tests == 'true' + run: npm i -g @continuedev/cli + + - name: Start remote session to fix failed tests + if: steps.workflow-details.outputs.has_failed_tests == 'true' + id: remote-session + env: + CONTINUE_API_KEY: ${{ secrets.CONTINUE_API_KEY }} + run: | + # Create a detailed prompt for fixing the failed tests + cat > /tmp/fix_tests_prompt.txt << 'PROMPT_EOF' + 🔧 **Auto Test Fix Request** + + The following tests failed in workflow "${{ steps.workflow-details.outputs.workflow_name }}" (Run ID: ${{ steps.workflow-details.outputs.workflow_run_id }}): + + **Failed Jobs:** ${{ steps.workflow-details.outputs.failed_jobs }} + **Branch:** ${{ steps.workflow-details.outputs.head_branch }} + **Commit:** ${{ steps.workflow-details.outputs.head_sha }} + + **Your Task:** + 1. Analyze the test failure logs and error messages + 2. Identify the root cause of the test failures + 3. Fix the failing tests by updating the test code or the underlying implementation + 4. Ensure all tests pass after your changes + 5. Commit your fixes with a descriptive message + + **Test Failure Context:** + Please examine the repository structure, run the failing tests locally to understand the errors, and implement appropriate fixes. + + Focus on: + - Understanding what the tests are trying to validate + - Identifying why they're failing (code changes, environment issues, test logic errors) + - Making minimal, targeted fixes that address the root cause + - Ensuring the fixes don't break other functionality + + Please start by examining the failing tests and their error messages, then proceed with the necessary fixes. + PROMPT_EOF + + echo "Starting Continue CLI remote session for test fixes..." + echo "Prompt content:" + cat /tmp/fix_tests_prompt.txt + + # Start remote session and capture JSON output + SESSION_OUTPUT=$(cat /tmp/fix_tests_prompt.txt | cn remote -s --branch ${{ steps.workflow-details.outputs.head_branch }}) + echo "Raw session output: $SESSION_OUTPUT" + + # Extract URL from JSON output + SESSION_URL=$(echo "$SESSION_OUTPUT" | jq -r '.url // empty') + + if [ -z "$SESSION_URL" ] || [ "$SESSION_URL" = "null" ]; then + echo "Failed to extract session URL from output: $SESSION_OUTPUT" + exit 1 + fi + + echo "session_url=$SESSION_URL" >> $GITHUB_OUTPUT + echo "✅ Started remote session: $SESSION_URL" + + - name: Log session details + if: steps.workflow-details.outputs.has_failed_tests == 'true' + run: | + echo "✅ Successfully started auto-fix session for failed tests" + echo "Workflow: ${{ steps.workflow-details.outputs.workflow_name }}" + echo "Run ID: ${{ steps.workflow-details.outputs.workflow_run_id }}" + echo "Branch: ${{ steps.workflow-details.outputs.head_branch }}" + echo "Session URL: ${{ steps.remote-session.outputs.session_url }}" + echo "Failed jobs: ${{ steps.workflow-details.outputs.failed_jobs }}" diff --git a/.github/workflows/beta-release.yml b/.github/workflows/beta-release.yml index 6c1a7f517..a52daa05b 100644 --- a/.github/workflows/beta-release.yml +++ b/.github/workflows/beta-release.yml @@ -24,7 +24,7 @@ jobs: token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }} - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: 20 registry-url: "https://registry.npmjs.org" diff --git a/.github/workflows/cli-pr-checks.yml b/.github/workflows/cli-pr-checks.yml index 94987f57b..93922dd31 100644 --- a/.github/workflows/cli-pr-checks.yml +++ b/.github/workflows/cli-pr-checks.yml @@ -25,7 +25,7 @@ jobs: uses: actions/checkout@v5 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: 20 cache: "npm" @@ -67,7 +67,7 @@ jobs: uses: actions/checkout@v5 - name: Setup Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: ${{ matrix.node-version }} diff --git a/.github/workflows/compliance.yaml b/.github/workflows/compliance.yaml index 0e4a04e02..2a1819fa5 100644 --- a/.github/workflows/compliance.yaml +++ b/.github/workflows/compliance.yaml @@ -104,7 +104,7 @@ jobs: uses: actions/checkout@v5 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version-file: ".nvmrc" cache: "npm" diff --git a/.github/workflows/jetbrains-release.yaml b/.github/workflows/jetbrains-release.yaml index 23e434ff3..6ed9292b7 100644 --- a/.github/workflows/jetbrains-release.yaml +++ b/.github/workflows/jetbrains-release.yaml @@ -152,7 +152,7 @@ jobs: # # Setup Node.js - name: Use Node.js from .nvmrc - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version-file: ".nvmrc" @@ -370,7 +370,7 @@ jobs: # 2. Install npm dependencies - name: Use Node.js from .nvmrc - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version-file: ".nvmrc" diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 67dfc6c6c..8be01696a 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -70,7 +70,7 @@ jobs: with: fetch-depth: 0 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v5 with: node-version-file: ".nvmrc" diff --git a/.github/workflows/pr-checks.yaml b/.github/workflows/pr-checks.yaml index 1599f525e..12ac77caf 100644 --- a/.github/workflows/pr-checks.yaml +++ b/.github/workflows/pr-checks.yaml @@ -23,7 +23,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v5 with: node-version-file: ".nvmrc" @@ -224,7 +224,7 @@ jobs: test_file_matrix: ${{ steps.vscode-get-test-file-matrix.outputs.test_file_matrix }} steps: - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v5 with: node-version-file: ".nvmrc" @@ -342,7 +342,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v5 with: node-version: 20 diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 7e054eb59..fa24eb2bf 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -70,7 +70,7 @@ jobs: with: fetch-depth: 0 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v5 with: node-version-file: ".nvmrc" @@ -165,7 +165,7 @@ jobs: # 4. Create PR with version bump - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version-file: ".nvmrc" diff --git a/.github/workflows/respond-to-cubic.yaml b/.github/workflows/respond-to-cubic.yaml index 71717d114..cb607033c 100644 --- a/.github/workflows/respond-to-cubic.yaml +++ b/.github/workflows/respond-to-cubic.yaml @@ -69,7 +69,7 @@ jobs: - name: Setup Node.js if: steps.check-mention.outputs.contains_mention == 'true' - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: "20" @@ -164,7 +164,7 @@ jobs: - name: Setup Node.js if: steps.check-mention.outputs.contains_mention == 'true' - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: "20" @@ -175,7 +175,7 @@ jobs: - name: Get review context if: steps.check-mention.outputs.contains_mention == 'true' id: review-context - uses: actions/github-script@v7 + uses: actions/github-script@v8 with: script: | let reviewContext = ''; diff --git a/.github/workflows/reusable-release.yml b/.github/workflows/reusable-release.yml index 6dbd55817..5f243f6bc 100644 --- a/.github/workflows/reusable-release.yml +++ b/.github/workflows/reusable-release.yml @@ -55,7 +55,7 @@ jobs: uses: ./.github/actions/setup-packages - name: Use Node.js from .nvmrc - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version-file: ".nvmrc" diff --git a/.github/workflows/similar-issues.yml b/.github/workflows/similar-issues.yml index 4abf1cdd3..ce5d355b9 100644 --- a/.github/workflows/similar-issues.yml +++ b/.github/workflows/similar-issues.yml @@ -31,7 +31,7 @@ jobs: path: deja-view - name: Setup Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: "3.11" diff --git a/.github/workflows/stable-release.yml b/.github/workflows/stable-release.yml index 6c5dd209a..b97970da2 100644 --- a/.github/workflows/stable-release.yml +++ b/.github/workflows/stable-release.yml @@ -40,7 +40,7 @@ jobs: token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }} - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: 20 registry-url: "https://registry.npmjs.org" diff --git a/.github/workflows/stale-issue-helper.yaml b/.github/workflows/stale-issue-helper.yaml index 067f4c60f..1309cd624 100644 --- a/.github/workflows/stale-issue-helper.yaml +++ b/.github/workflows/stale-issue-helper.yaml @@ -10,7 +10,7 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: - - uses: actions/stale@v9 + - uses: actions/stale@v10 with: 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!" 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." diff --git a/.github/workflows/vscode-version-bump.yml b/.github/workflows/vscode-version-bump.yml index 961fa50ba..dbf258f35 100644 --- a/.github/workflows/vscode-version-bump.yml +++ b/.github/workflows/vscode-version-bump.yml @@ -21,7 +21,7 @@ jobs: gh auth login --with-token <<< "${{ github.token }}" - name: Use Node.js from .nvmrc - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version-file: ".nvmrc" diff --git a/core/config/ConfigHandler.ts b/core/config/ConfigHandler.ts index 2e7a65ca3..4127f2097 100644 --- a/core/config/ConfigHandler.ts +++ b/core/config/ConfigHandler.ts @@ -59,27 +59,17 @@ export class ConfigHandler { constructor( private readonly ide: IDE, - private ideSettingsPromise: Promise, private llmLogger: ILLMLogger, - sessionInfoPromise: Promise, + initialSessionInfoPromise: Promise, ) { - this.ide = ide; - this.ideSettingsPromise = ideSettingsPromise; - this.controlPlaneClient = new ControlPlaneClient( - sessionInfoPromise, - ideSettingsPromise, - this.ide.getIdeInfo(), + initialSessionInfoPromise, + this.ide, ); // This profile manager will always be available this.globalLocalProfileManager = new ProfileLifecycleManager( - new LocalProfileLoader( - ide, - ideSettingsPromise, - this.controlPlaneClient, - this.llmLogger, - ), + new LocalProfileLoader(ide, this.controlPlaneClient, this.llmLogger), this.ide, ); @@ -97,6 +87,7 @@ export class ConfigHandler { } private workspaceDirs: string[] | null = null; + async getWorkspaceId() { if (!this.workspaceDirs) { this.workspaceDirs = await this.ide.getWorkspaceDirs(); @@ -113,6 +104,13 @@ export class ConfigHandler { const signal = this.cascadeAbortController.signal; this.workspaceDirs = null; // forces workspace dirs reload + // Always update globalLocalProfileManager before recreating all the loaders + // during every cascadeInit so it holds the most recent controlPlaneClient. + this.globalLocalProfileManager = new ProfileLifecycleManager( + new LocalProfileLoader(this.ide, this.controlPlaneClient, this.llmLogger), + this.ide, + ); + try { const { orgs, errors } = await this.getOrgs(); @@ -248,7 +246,6 @@ export class ConfigHandler { versionSlug: assistant.configResult.config?.version ?? "latest", controlPlaneClient: this.controlPlaneClient, ide: this.ide, - ideSettingsPromise: this.ideSettingsPromise, llmLogger: this.llmLogger, rawYaml: assistant.rawYaml, orgScopeId: orgScopeId, @@ -369,7 +366,6 @@ export class ConfigHandler { const profiles = [...assistantFiles, ...agentFiles].map((assistant) => { return new LocalProfileLoader( this.ide, - this.ideSettingsPromise, this.controlPlaneClient, this.llmLogger, assistant, @@ -394,7 +390,6 @@ export class ConfigHandler { // Ide settings change: refresh session and cascade refresh from the top async updateIdeSettings(ideSettings: IdeSettings) { - this.ideSettingsPromise = Promise.resolve(ideSettings); this.abortCascade(); await this.cascadeInit("IDE settings update"); } @@ -432,8 +427,7 @@ export class ConfigHandler { if (reload) { this.controlPlaneClient = new ControlPlaneClient( Promise.resolve(sessionInfo), - this.ideSettingsPromise, - this.ide.getIdeInfo(), + this.ide, ); this.abortCascade(); await this.cascadeInit("Control plane session info update"); diff --git a/core/config/profile/LocalProfileLoader.ts b/core/config/profile/LocalProfileLoader.ts index e7a9608f1..9c5345fbd 100644 --- a/core/config/profile/LocalProfileLoader.ts +++ b/core/config/profile/LocalProfileLoader.ts @@ -1,7 +1,7 @@ import { ConfigResult, parseConfigYaml } from "@continuedev/config-yaml"; import { ControlPlaneClient } from "../../control-plane/client.js"; -import { ContinueConfig, IDE, IdeSettings, ILLMLogger } from "../../index.js"; +import { ContinueConfig, IDE, ILLMLogger } from "../../index.js"; import { ProfileDescription } from "../ProfileLifecycleManager.js"; import { getPrimaryConfigFilePath } from "../../util/paths.js"; @@ -15,7 +15,6 @@ export default class LocalProfileLoader implements IProfileLoader { constructor( private ide: IDE, - private ideSettingsPromise: Promise, private controlPlaneClient: ControlPlaneClient, private llmLogger: ILLMLogger, private overrideAssistantFile?: @@ -57,7 +56,6 @@ export default class LocalProfileLoader implements IProfileLoader { async doLoadConfig(): Promise> { const result = await doLoadConfig({ ide: this.ide, - ideSettingsPromise: this.ideSettingsPromise, controlPlaneClient: this.controlPlaneClient, llmLogger: this.llmLogger, profileId: this.description.id, diff --git a/core/config/profile/PlatformProfileLoader.ts b/core/config/profile/PlatformProfileLoader.ts index 01de0066d..0540d924a 100644 --- a/core/config/profile/PlatformProfileLoader.ts +++ b/core/config/profile/PlatformProfileLoader.ts @@ -2,7 +2,7 @@ import { AssistantUnrolled, ConfigResult } from "@continuedev/config-yaml"; import { ControlPlaneClient } from "../../control-plane/client.js"; import { getControlPlaneEnv } from "../../control-plane/env.js"; -import { ContinueConfig, IDE, IdeSettings, ILLMLogger } from "../../index.js"; +import { ContinueConfig, IDE, ILLMLogger } from "../../index.js"; import { ProfileDescription } from "../ProfileLifecycleManager.js"; import doLoadConfig from "./doLoadConfig.js"; @@ -28,7 +28,6 @@ export default class PlatformProfileLoader implements IProfileLoader { private readonly versionSlug: string; private readonly controlPlaneClient: ControlPlaneClient; private readonly ide: IDE; - private ideSettingsPromise: Promise; private llmLogger: ILLMLogger; readonly description: ProfileDescription; private readonly orgScopeId: string | null; @@ -41,7 +40,6 @@ export default class PlatformProfileLoader implements IProfileLoader { versionSlug, controlPlaneClient, ide, - ideSettingsPromise, llmLogger, description, orgScopeId, @@ -53,7 +51,6 @@ export default class PlatformProfileLoader implements IProfileLoader { versionSlug: string; controlPlaneClient: ControlPlaneClient; ide: IDE; - ideSettingsPromise: Promise; llmLogger: ILLMLogger; description: ProfileDescription; orgScopeId: string | null; @@ -65,7 +62,6 @@ export default class PlatformProfileLoader implements IProfileLoader { this.versionSlug = versionSlug; this.controlPlaneClient = controlPlaneClient; this.ide = ide; - this.ideSettingsPromise = ideSettingsPromise; this.llmLogger = llmLogger; this.description = description; this.orgScopeId = orgScopeId; @@ -79,7 +75,6 @@ export default class PlatformProfileLoader implements IProfileLoader { versionSlug, controlPlaneClient, ide, - ideSettingsPromise, llmLogger, rawYaml, orgScopeId, @@ -91,12 +86,11 @@ export default class PlatformProfileLoader implements IProfileLoader { versionSlug: string; controlPlaneClient: ControlPlaneClient; ide: IDE; - ideSettingsPromise: Promise; llmLogger: ILLMLogger; rawYaml: string; orgScopeId: string | null; }): Promise { - const controlPlaneEnv = await getControlPlaneEnv(ideSettingsPromise); + const controlPlaneEnv = await getControlPlaneEnv(ide.getIdeSettings()); const description: ProfileDescription = { id: `${ownerSlug}/${packageSlug}`, @@ -121,7 +115,6 @@ export default class PlatformProfileLoader implements IProfileLoader { versionSlug, controlPlaneClient, ide, - ideSettingsPromise, llmLogger, description, orgScopeId, @@ -139,7 +132,6 @@ export default class PlatformProfileLoader implements IProfileLoader { const results = await doLoadConfig({ ide: this.ide, - ideSettingsPromise: this.ideSettingsPromise, controlPlaneClient: this.controlPlaneClient, llmLogger: this.llmLogger, overrideConfigYaml: this.configResult.config, diff --git a/core/config/profile/doLoadConfig.ts b/core/config/profile/doLoadConfig.ts index fcb5f30bc..d0c268967 100644 --- a/core/config/profile/doLoadConfig.ts +++ b/core/config/profile/doLoadConfig.ts @@ -11,7 +11,6 @@ import { import { ContinueConfig, IDE, - IdeSettings, ILLMLogger, RuleWithSource, SerializedContinueConfig, @@ -70,7 +69,6 @@ async function loadRules(ide: IDE) { } export default async function doLoadConfig(options: { ide: IDE; - ideSettingsPromise: Promise; controlPlaneClient: ControlPlaneClient; llmLogger: ILLMLogger; overrideConfigJson?: SerializedContinueConfig; @@ -82,7 +80,6 @@ export default async function doLoadConfig(options: { }): Promise> { const { ide, - ideSettingsPromise, controlPlaneClient, llmLogger, overrideConfigJson, @@ -95,7 +92,7 @@ export default async function doLoadConfig(options: { const ideInfo = await ide.getIdeInfo(); const uniqueId = await ide.getUniqueId(); - const ideSettings = await ideSettingsPromise; + const ideSettings = await ide.getIdeSettings(); const workOsAccessToken = await controlPlaneClient.getAccessToken(); const isSignedIn = await controlPlaneClient.isSignedIn(); @@ -374,7 +371,7 @@ export default async function doLoadConfig(options: { const useOnPremProxy = controlPlane?.useContinueForTeamsProxy === false && controlPlane?.proxyUrl; - const env = await getControlPlaneEnv(ideSettingsPromise); + const env = await getControlPlaneEnv(Promise.resolve(ideSettings)); let controlPlaneProxyUrl: string = useOnPremProxy ? controlPlane?.proxyUrl : env.DEFAULT_CONTROL_PLANE_PROXY_URL; diff --git a/core/context/providers/_context-providers.vitest.ts b/core/context/providers/_context-providers.vitest.ts index bde33cec1..40020e700 100644 --- a/core/context/providers/_context-providers.vitest.ts +++ b/core/context/providers/_context-providers.vitest.ts @@ -28,11 +28,9 @@ async function getContextProviderExtras( ): Promise { setUpTestDir(); const ide = new FileSystemIde(TEST_DIR); - const ideSettingsPromise = ide.getIdeSettings(); const llmLogger = new LLMLogger(); const configHandler = new ConfigHandler( ide, - ideSettingsPromise, llmLogger, Promise.resolve(undefined), ); diff --git a/core/control-plane/client.ts b/core/control-plane/client.ts index 1f049e1fd..a8607386f 100644 --- a/core/control-plane/client.ts +++ b/core/control-plane/client.ts @@ -11,7 +11,7 @@ import { import fetch, { RequestInit, Response } from "node-fetch"; import { OrganizationDescription } from "../config/ProfileLifecycleManager.js"; -import { IdeInfo, IdeSettings, ModelDescription } from "../index.js"; +import { IDE, ModelDescription } from "../index.js"; import { Logger } from "../util/Logger.js"; import { ControlPlaneSessionInfo, isOnPremSession } from "./AuthTypes.js"; @@ -44,8 +44,7 @@ export const TRIAL_PROXY_URL = export class ControlPlaneClient { constructor( readonly sessionInfoPromise: Promise, - private readonly ideSettingsPromise: Promise, - private readonly ideInfoPromise: Promise, + private readonly ide: IDE, ) {} async resolveFQSNs( @@ -90,9 +89,9 @@ export class ControlPlaneClient { throw new Error("No access token"); } - const env = await getControlPlaneEnv(this.ideSettingsPromise); + const env = await getControlPlaneEnv(this.ide.getIdeSettings()); const url = new URL(path, env.CONTROL_PLANE_URL).toString(); - const ideInfo = await this.ideInfoPromise; + const ideInfo = await this.ide.getIdeInfo(); const resp = await fetch(url, { ...init, diff --git a/core/core.ts b/core/core.ts index 6d8738f20..30dcd7a41 100644 --- a/core/core.ts +++ b/core/core.ts @@ -138,7 +138,7 @@ export class Core { const ideInfoPromise = messenger.request("getIdeInfo", undefined); const ideSettingsPromise = messenger.request("getIdeSettings", undefined); - const sessionInfoPromise = messenger.request( + const initialSessionInfoPromise = messenger.request( "getControlPlaneSessionInfo", { silent: true, @@ -148,9 +148,8 @@ export class Core { this.configHandler = new ConfigHandler( this.ide, - ideSettingsPromise, this.llmLogger, - sessionInfoPromise, + initialSessionInfoPromise, ); this.docsService = DocsService.createSingleton( diff --git a/core/llm/llms/Ollama.ts b/core/llm/llms/Ollama.ts index d08bf7bc6..1d069ff71 100644 --- a/core/llm/llms/Ollama.ts +++ b/core/llm/llms/Ollama.ts @@ -150,7 +150,7 @@ class Ollama extends BaseLLM implements ModelInstaller { constructor(options: LLMOptions) { super(options); - if (options.isFromAutoDetect) { + if (options.model === "AUTODETECT") { return; } const headers: Record = { diff --git a/core/llm/llms/Scaleway.ts b/core/llm/llms/Scaleway.ts index 93fc599db..4f308dc0c 100644 --- a/core/llm/llms/Scaleway.ts +++ b/core/llm/llms/Scaleway.ts @@ -7,16 +7,23 @@ class Scaleway extends OpenAI { static providerName = "scaleway"; static defaultOptions: Partial = { apiBase: "https://api.scaleway.ai/v1/", - model: "qwen2.5-coder-32b-instruct", + model: "qwen3-coder-30b-a3b-instruct", useLegacyCompletionsEndpoint: false, }; private static MODEL_IDS: { [name: string]: string } = { "llama3.1-8b": "llama-3.1-8b-instruct", "llama3.3-70b": "llama-3.3-70b-instruct", + "pixtral-12b": "pixtral-12b-2409", "mistral-small3.1": "mistral-small-3.1-24b-instruct-2503", + "mistral-small3.2": "mistral-small-3.2-24b-instruct-2506", + "devstral-small": "devstral-small-2505", "deepseek-r1-distill-llama-70b": "deepseek-r1-distill-llama-70b", "qwen2.5-coder-32b": "qwen2.5-coder-32b-instruct", + "qwen3-coder-30b-a3b": "qwen3-coder-30b-a3b-instruct", + "qwen3-235b-a22b": "qwen3-235b-a22b-instruct-2507", + "gemma-3-27b": "gemma-3-27b-it", + "gpt-oss-120b": "gpt-oss-120b", }; protected _convertModelName(model: string) { diff --git a/core/test/fixtures.ts b/core/test/fixtures.ts index 0b98bb256..51c90d9ef 100644 --- a/core/test/fixtures.ts +++ b/core/test/fixtures.ts @@ -12,13 +12,11 @@ export const ideSettingsPromise = testIde.getIdeSettings(); export const testControlPlaneClient = new ControlPlaneClient( Promise.resolve(undefined), - ideSettingsPromise, - testIde.getIdeInfo(), + testIde, ); export const testConfigHandler = new ConfigHandler( testIde, - ideSettingsPromise, new LLMLogger(), Promise.resolve(undefined), ); diff --git a/core/tools/definitions/editFile.ts b/core/tools/definitions/editFile.ts index 1b12af8fb..b04c9196f 100644 --- a/core/tools/definitions/editFile.ts +++ b/core/tools/definitions/editFile.ts @@ -8,7 +8,7 @@ export interface EditToolArgs { } export const NO_PARALLEL_TOOL_CALLING_INTSRUCTION = - "Note this tool CANNOT be called in parallel with other tools."; + "This tool CANNOT be called in parallel with other tools."; const CHANGES_DESCRIPTION = "Any modifications to the file, showing only needed changes. Do NOT wrap this in a codeblock or write anything besides the code changes. In larger files, use brief language-appropriate placeholders for large unmodified sections, e.g. '// ... existing code ...'"; diff --git a/core/tools/definitions/multiEdit.ts b/core/tools/definitions/multiEdit.ts index 09a26be5b..913961737 100644 --- a/core/tools/definitions/multiEdit.ts +++ b/core/tools/definitions/multiEdit.ts @@ -1,6 +1,7 @@ import { Tool } from "../.."; import { BUILT_IN_GROUP_NAME, BuiltInToolNames } from "../builtIn"; import { NO_PARALLEL_TOOL_CALLING_INTSRUCTION } from "./editFile"; +import { singleFindAndReplaceTool } from "./singleFindAndReplace"; export interface EditOperation { old_string: string; @@ -24,60 +25,41 @@ export const multiEditTool: Tool = { isInstant: false, function: { name: BuiltInToolNames.MultiEdit, - description: `This is a tool for making multiple edits to a single file in one operation. It -is built on top of the single find and replace tool and allows you to perform multiple -find-and-replace operations efficiently. Prefer this tool over the single find and replace tool -when you need to make multiple edits to the same file. + 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. +Prefer this tool over the ${singleFindAndReplaceTool.function.name} tool when you need to make multiple edits to the same file. -Before using this tool: - -1. Use the read_file tool to understand the file's contents and context -2. Verify the directory path is correct - -To make multiple file edits, provide the following: - -1. filepath: The path to the file to modify (relative to the root of the workspace) +To make multiple edits to a file, provide the following: +1. filepath: The path to the file to modify, RELATIVE to the project/workspace root (verify the directory path is correct) 2. edits: An array of edit operations to perform, where each edit contains: - - old_string: The text to replace (must match the file contents exactly, including all whitespace and indentation) + - old_string: The text to replace (must match the old file contents exactly, including all whitespace/indentation) - new_string: The edited text to replace the old_string - replace_all: Replace all occurrences of old_string. This parameter is optional and defaults to false. IMPORTANT: - All edits are applied in sequence, in the order they are provided -- Each edit operates on the result of the previous edit -- All edits must be valid for the operation to succeed - if any edit fails, -none will be applied -- This tool is ideal when you need to make several changes to different parts -of the same file +- Each edit operates on the result of the previous edit, so plan your edits carefully to avoid conflicts between sequential operations +- Edits are atomic - all edits must be valid for the operation to succeed - if any edit fails, none will be applied +- This tool is ideal when you need to make several changes to different parts of the same file CRITICAL REQUIREMENTS: - -1. All edits follow the same requirements as the single find and replace tool -2. The edits are atomic - either all succeed or none are applied -3. Plan your edits carefully to avoid conflicts between sequential operations -4. ${NO_PARALLEL_TOOL_CALLING_INTSRUCTION} - -WARNING: - -- The tool will fail if edits.old_string doesn't match the file contents -exactly (including whitespace) -- The tool will fail if edits.old_string and edits.new_string are the same -- Since edits are applied in sequence, ensure that earlier edits don't affect -the text that later edits are trying to find - -When making edits: - +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. +2. ${NO_PARALLEL_TOOL_CALLING_INTSRUCTION} +3. When making edits: - Ensure all edits result in idiomatic, correct code - Do not leave the code in a broken state -- Only use emojis if the user explicitly requests it. Avoid adding emojis to -files unless asked. -- Use replace_all for replacing and renaming strings across the file. This -parameter is useful if you want to rename a variable for instance. +- Only use emojis if the user explicitly requests it. Avoid adding emojis to files unless asked +- 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 If you want to create a new file, use: -- A new file path +- A new file path, including new directory if needed - First edit: empty old_string and the new file's contents as new_string -- Subsequent edits are not allowed - there is no need since you are creating`, +- Subsequent edits are not allowed - there is no need since you are creating +- ALWAYS prefer editing existing files in the codebase. NEVER write new files unless explicitly required + +WARNINGS: +- If earlier edits affect the text that later edits are trying to find, files can become mangled +- The tool will fail if edits.old_string doesn't match the file contents exactly (including whitespace) +- The tool will fail if edits.old_string and edits.new_string are the same - they MUST be different`, parameters: { type: "object", required: ["filepath", "edits"], @@ -97,16 +79,18 @@ If you want to create a new file, use: properties: { old_string: { type: "string", - description: "The text to replace", + description: + "The text to replace (exact match including whitespace/indentation)", }, new_string: { type: "string", - description: "The text to replace it with", + description: + "The text to replace it with. MUST be different than old_string.", }, replace_all: { type: "boolean", description: - "Replace all occurrences of old_string (default false)", + "Replace all occurrences of old_string (default false) in the file", }, }, }, diff --git a/core/tools/definitions/singleFindAndReplace.ts b/core/tools/definitions/singleFindAndReplace.ts index a8a9fc15b..d0b172ad7 100644 --- a/core/tools/definitions/singleFindAndReplace.ts +++ b/core/tools/definitions/singleFindAndReplace.ts @@ -20,33 +20,18 @@ export const singleFindAndReplaceTool: Tool = { isInstant: false, function: { name: BuiltInToolNames.SingleFindAndReplace, - description: `Performs exact string replacements in files. - -Usage: - -- You must use your \`read_file\` tool at least once in the conversation before -editing. This tool will error if you attempt an edit without reading the file. - -- When editing text from read_file tool output, ensure you preserve the exact -indentation (tabs/spaces) as it appears AFTER the line number prefix. The line -number prefix format is: spaces + line number + tab. Everything after that tab -is the actual file content to match. Never include any part of the line number -prefix in the old_string or new_string. - -- ALWAYS prefer editing existing files in the codebase. NEVER write new files -unless explicitly required. - -- Only use emojis if the user explicitly requests it. Avoid adding emojis to -files unless asked. + description: `Performs exact string replacements in a file. +IMPORTANT: +- 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. - ${NO_PARALLEL_TOOL_CALLING_INTSRUCTION} +- When editing text from \`${BuiltInToolNames.ReadFile}\` tool output, ensure you preserve exact whitespace/indentation. +- Only use emojis if the user explicitly requests it. Avoid adding emojis to files unless asked. +- Use \`replace_all\` for replacing and renaming strings across the file. This parameter is useful if you want to rename a variable, for instance. -- 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\`. - -- Use \`replace_all\` for replacing and renaming strings across the file. This -parameter is useful if you want to rename a variable for instance.`, +WARNINGS: +- 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\`. +- The edit will likely fail if you have not recently used the \`${BuiltInToolNames.ReadFile}\` tool to view up-to-date file contents.`, parameters: { type: "object", required: ["filepath", "old_string", "new_string"], @@ -58,12 +43,13 @@ parameter is useful if you want to rename a variable for instance.`, }, old_string: { type: "string", - description: "The text to replace", + description: + "The text to replace - must be exact including whitespace/indentation", }, new_string: { type: "string", description: - "The text to replace it with (must be different from old_string)", + "The text to replace it with (MUST be different from old_string)", }, replace_all: { type: "boolean", diff --git a/docs/chat/how-to-use-it.mdx b/docs/chat/how-to-use-it.mdx index 3acf5f1b5..94257fdb7 100644 --- a/docs/chat/how-to-use-it.mdx +++ b/docs/chat/how-to-use-it.mdx @@ -2,7 +2,7 @@ title: "Chat" sidebarTitle: "How To Use AI Chat" icon: "circle-question" -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" +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" --- diff --git a/docs/customization/overview.mdx b/docs/customization/overview.mdx index 1889806d6..edbeeee16 100644 --- a/docs/customization/overview.mdx +++ b/docs/customization/overview.mdx @@ -1,6 +1,6 @@ --- title: "Customization Overview" -description: "Learn how to customize Continue with model providers, context providers, slash commands, and tools to create your perfect AI coding assistant" +description: "Learn how to customize Continue with model providers, context providers, slash commands, and tools to create your perfect AI coding agent" --- 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 @@ Slash commands allow you to easily add custom functionality to Continue. You can Unchain your LLM with the power of tools using [Agent](/features/agent/quick-start). Add custom tools using [MCP Servers](/customization/mcp-tools) -Whatever you choose, you'll probably start by editing your Assistant. +Whatever you choose, you'll probably start by editing your Agent. -## Edit Your Assistant +## Edit Your Agent -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. +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. -![configure an assistant](/images/customization/images/configure-continue-a5c8c79f3304c08353f3fc727aa5da7e.png) +![configure an agent](/images/customization/images/configure-continue-a5c8c79f3304c08353f3fc727aa5da7e.png) -## Manage Your Assistant +## Manage Your Agent -- See [Editing Hub Assistants](/hub/assistants/edit-an-assistant) for more details on managing your hub assistant -- See the [Config Deep Dive](/reference) for more details on configuring local assistants. +- See [Editing Hub Agents](/hub/agents/edit-an-agent) for more details on managing your hub agent +- See the [Config Deep Dive](/reference) for more details on configuring local agents. diff --git a/docs/customization/rules.mdx b/docs/customization/rules.mdx index 37ab76ff9..75dbfc811 100644 --- a/docs/customization/rules.mdx +++ b/docs/customization/rules.mdx @@ -1,18 +1,18 @@ --- title: "Rules" -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." +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." --- -Think of these as the guardrails for your AI coding assistants: +Think of these as the guardrails for your AI coding agents: - **Enforce company-specific coding standards** and security practices - **Implement quality checks** that match your engineering culture - **Create paved paths** for developers to follow organizational best practices -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. +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. ## How Rules Work -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. +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. 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 end of file diff --git a/docs/customize/deep-dives/configuration.mdx b/docs/customize/deep-dives/configuration.mdx index 4291dfbd8..7b3a302a9 100644 --- a/docs/customize/deep-dives/configuration.mdx +++ b/docs/customize/deep-dives/configuration.mdx @@ -1,26 +1,26 @@ --- -title: "How to Configure Continue Assistants" -description: Learn how to access and manage Continue assistant configurations through Hub or local YAML files +title: "How to Configure Continue Agents" +description: Learn how to access and manage Continue agent configurations through Hub or local YAML files keywords: [config, settings, customize] -sidebarTitle: "Assistant Configuration" +sidebarTitle: "Agent Configuration" --- -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. +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. -![configure an assistant](/images/configure-continue.png) +![configure an agent](/images/configure-continue.png) -## How to Manage Hub Assistants +## How to Manage Hub Agents -Hub Assistants can be managed in [the Hub](https://hub.continue.dev). See [Editing an Assistant](../../hub/assistants/edit-an-assistant.md) +Hub Agents can be managed in [the Hub](https://hub.continue.dev). See [Editing an Agent](../../hub/agents/edit-an-agent.md) -## How to Configure Local Assistants with YAML +## How to Configure Local Agents with YAML Local user-level configuration is stored and can be edited in your home directory in `config.yaml`: - `~/.continue/config.yaml` (MacOS / Linux) - `%USERPROFILE%\.continue\config.yaml` (Windows) -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`. +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`. ![local-config-open-steps](/images/local-config-open-steps.png) diff --git a/docs/customize/deep-dives/mcp.mdx b/docs/customize/deep-dives/mcp.mdx index 7b6230923..074448104 100644 --- a/docs/customize/deep-dives/mcp.mdx +++ b/docs/customize/deep-dives/mcp.mdx @@ -19,7 +19,7 @@ that can be set up with custom tools. Currently custom tools can be configured using the Model Context Protocol standard to unify prompts, context, and tool use. -MCP Servers can be added to hub Assistants using `mcpServers` blocks. You can +MCP Servers can be added to hub Agents using `mcpServers` blocks. You can explore available MCP server blocks [here](https://hub.continue.dev/explore/mcp). @@ -27,7 +27,7 @@ explore available MCP server blocks ## Quick Start: How to Set Up Your First MCP Server -Below is a quick example of setting up a new MCP server for use in your assistant: +Below is a quick example of setting up a new MCP server for use in your agent: 1. Create a folder called `.continue/mcpServers` at the top level of your workspace 2. Add a file called `playwright-mcp.yaml` to this folder. diff --git a/docs/customize/deep-dives/rules.mdx b/docs/customize/deep-dives/rules.mdx index 2f9411bc9..f2dd04166 100644 --- a/docs/customize/deep-dives/rules.mdx +++ b/docs/customize/deep-dives/rules.mdx @@ -42,7 +42,7 @@ Now test your rules by asking a question about a file in chat. ## How to Create Rules Blocks -Rules can be added locally using the "Add Rules" button while viewing the Local Assistant's rules. +Rules can be added locally using the "Add Rules" button while viewing the Local Agent's rules. ![add local rules button](/images/add-local-rules.png) @@ -53,7 +53,7 @@ For example, you can say "Create a rule for this", and a rule will be created fo -Rules can also be added to an Assistant on the Continue Hub. +Rules can also be added to an Agent on the Continue Hub. Explore available rules [here](https://hub.continue.dev), or [create your own](https://hub.continue.dev/new?type=block&blockType=rules) in the Hub. diff --git a/docs/customize/deep-dives/rules.mdx.backup b/docs/customize/deep-dives/rules.mdx.backup index 0971568a8..5338df40d 100644 --- a/docs/customize/deep-dives/rules.mdx.backup +++ b/docs/customize/deep-dives/rules.mdx.backup @@ -39,7 +39,7 @@ Now test your rules by asking a question about a file in chat. ## Creating `rules` blocks -Rules can be added locally using the "Add Rules" button while viewing the Local Assistant's rules. +Rules can be added locally using the "Add Rules" button while viewing the Local Agent's rules. ![add local rules button](/images/add-local-rules.png) @@ -49,7 +49,7 @@ Automatically create local rule blocks: When in Agent mode, you can prompt the a 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. -Rules can also be added to an Assistant on the Continue Hub. +Rules can also be added to an Agent on the Continue Hub. Explore available rules [here](https://hub.continue.dev), or [create your own](https://hub.continue.dev/new?type=block&blockType=rules) in the Hub. @@ -133,7 +133,7 @@ name: New rule Always give concise responses ``` -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`. +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`. ### Examples diff --git a/docs/customize/deep-dives/slash-commands.mdx b/docs/customize/deep-dives/slash-commands.mdx index 3f041ada2..ef11b0f8d 100644 --- a/docs/customize/deep-dives/slash-commands.mdx +++ b/docs/customize/deep-dives/slash-commands.mdx @@ -21,9 +21,9 @@ Slash commands can be combined with additional instructions, including highlight ## Ways to Create Slash Commands in Continue -### Assistant Prompt Blocks +### Agent Prompt Blocks -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). +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). ### Prompt Files diff --git a/docs/customize/model-roles.mdx b/docs/customize/model-roles.mdx index 8db06d857..7349ad539 100644 --- a/docs/customize/model-roles.mdx +++ b/docs/customize/model-roles.mdx @@ -2,7 +2,7 @@ title: "Model roles" sidebarTitle: Overview icon: "circle-info" -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" +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" --- diff --git a/docs/customize/model-roles/00-intro.mdx b/docs/customize/model-roles/00-intro.mdx index b82c9bd71..941ea0f4d 100644 --- a/docs/customize/model-roles/00-intro.mdx +++ b/docs/customize/model-roles/00-intro.mdx @@ -23,7 +23,7 @@ These roles can be specified for a `config.yaml` model block using `roles`. See ## Selecting model roles -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. +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. ![Settings Active Models Section](/images/settings-model-roles.png) diff --git a/docs/customize/model-roles/intro.mdx b/docs/customize/model-roles/intro.mdx index fdba06544..ccdd3a3b0 100644 --- a/docs/customize/model-roles/intro.mdx +++ b/docs/customize/model-roles/intro.mdx @@ -16,7 +16,7 @@ These roles can be specified for a `config.yaml` model block using `roles`. See ## Selecting model roles -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. +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. diff --git a/docs/docs.json b/docs/docs.json index fa9e1604d..979ebe4e2 100644 --- a/docs/docs.json +++ b/docs/docs.json @@ -179,13 +179,13 @@ "pages": [ "hub/introduction", { - "group": "Assistants", + "group": "agents", "icon": "robot", "pages": [ - "hub/assistants/intro", - "hub/assistants/use-an-assistant", - "hub/assistants/create-an-assistant", - "hub/assistants/edit-an-assistant" + "hub/agents/intro", + "hub/agents/use-an-agent", + "hub/agents/create-an-agent", + "hub/agents/edit-an-agent" ] }, { @@ -228,7 +228,7 @@ "group": "Guides", "pages": [ "guides/overview", - "guides/understanding-assistants", + "guides/understanding-agents", "guides/codebase-documentation-awareness", "guides/cli", "guides/continuous-ai", @@ -348,17 +348,13 @@ "source": "/hub/secrets", "destination": "/hub/secrets/secret-types" }, - { - "source": "/hub/assistants", - "destination": "/hub/assistants/intro" - }, { "source": "/hub/blocks", "destination": "/hub/blocks/intro" }, { "source": "/hub/agents/intro", - "destination": "/hub/assistants/intro" + "destination": "/hub/agents/intro" }, { "source": "/customize", @@ -1106,7 +1102,7 @@ }, { "source": "/troubleshooting#changes-to-assistants-not-showing-in-vs-code", - "destination": "/faqs#changes-to-assistants-not-showing-in-vs-code" + "destination": "/faqs#changes-to-agents-not-showing-in-vs-code" }, { "source": "/troubleshooting#i-installed-continue-but-dont-see-the-sidebar-window", @@ -1175,6 +1171,26 @@ { "source": "/features/edit/next-edit", "destination": "/features/autocomplete/next-edit" + }, + { + "source": "/hub/assistants/intro", + "destination": "/hub/agents/intro" + }, + { + "source": "/hub/assistants/use-an-assistant", + "destination": "/hub/agents/use-an-agent" + }, + { + "source": "/hub/assistants/create-an-assistant", + "destination": "/hub/agents/create-an-agent" + }, + { + "source": "/hub/assistants/edit-an-assistant", + "destination": "/hub/agents/edit-an-agent" + }, + { + "source": "/guides/understanding-assistants", + "destination": "/guides/understanding-agents" } ] } diff --git a/docs/faqs.mdx b/docs/faqs.mdx index 7836ef9d3..36b93ff77 100644 --- a/docs/faqs.mdx +++ b/docs/faqs.mdx @@ -48,15 +48,15 @@ If you are using VS Code and require requests to be made through a proxy, you ar 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). -## Changes to assistants not showing in VS Code +## Changes to agents not showing in VS Code -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: +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: 1. Open the command palette (`cmd/ctrl` + `shift` + `P`) 2. Type "Reload Window" 3. Select the reload option -This will restart VS Code and reload all extensions, which should make your assistant changes visible. +This will restart VS Code and reload all extensions, which should make your agent changes visible. ## I installed Continue, but don't see the sidebar window @@ -256,7 +256,7 @@ If you're getting parse errors with remote Ollama: 3. **Check URL format**: Ensure you're using `http://` not `https://` for local network addresses -## Local Assistant +## Local Agent ### Managing Local Secrets and Environment Variables @@ -318,7 +318,7 @@ If your API keys aren't being recognized: ### Using Model Addons Locally -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. +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. #### Requirements @@ -330,7 +330,7 @@ You can leverage model addons from the Continue Hub in your local assistant conf In your local `config.yaml`, reference model addons using the format `provider/model-name`: ```yaml -name: My Local Assistant +name: My Local Agent version: 0.0.1 schema: v1 models: @@ -344,7 +344,7 @@ models: You can combine hub model addons with local models: ```yaml -name: My Local Assistant +name: My Local Agent version: 0.0.1 schema: v1 models: diff --git a/docs/features/agent/how-to-customize.mdx b/docs/features/agent/how-to-customize.mdx index b26994906..1cf18bf31 100644 --- a/docs/features/agent/how-to-customize.mdx +++ b/docs/features/agent/how-to-customize.mdx @@ -6,7 +6,7 @@ sidebarTitle: "Customize Agent" ## How to Add Rules Blocks -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. +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. ## How to Customize System Messages @@ -18,14 +18,14 @@ models: provider: openai model: gpt-4o chatOptions: - baseSystemMessage: "You are a helpful coding assistant." - baseAgentSystemMessage: "You are a systematic coding assistant. Break down problems methodically." - basePlanSystemMessage: "You are a planning assistant. Create clear, actionable steps." + baseSystemMessage: "You are a helpful coding agent." + baseAgentSystemMessage: "You are a systematic coding agent. Break down problems methodically." + basePlanSystemMessage: "You are a planning agent. Create clear, actionable steps." ``` ## How to Add MCP Tools -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. +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. ## How to Configure Tool Policies diff --git a/docs/features/edit/how-to-customize.mdx b/docs/features/edit/how-to-customize.mdx index b200e2e67..f6925e764 100644 --- a/docs/features/edit/how-to-customize.mdx +++ b/docs/features/edit/how-to-customize.mdx @@ -6,7 +6,7 @@ sidebarTitle: "Customize Edit" ## How to Set Active Edit/Apply Model -You can configure particular models from your Assistant to be used for Edit and Apply requests. +You can configure particular models from your Agent to be used for Edit and Apply requests. 1. Click the 3 dots above the main input 2. Click the cube icon to expand the "Models" section diff --git a/docs/getting-started/extensions.mdx b/docs/getting-started/extensions.mdx index 1904b97bc..24db1064e 100644 --- a/docs/getting-started/extensions.mdx +++ b/docs/getting-started/extensions.mdx @@ -1,6 +1,6 @@ --- -title: "Understanding Assistants" +title: "Understanding Agents" description: "Continue offers two ways to configure your AI assistants" --- -This content has moved to our comprehensive guide: [Understanding Assistants: Hub vs Local Configuration](/guides/understanding-assistants) +This content has moved to our comprehensive guide: [Understanding Agents: Hub vs Local Configuration](/guides/understanding-assistants) diff --git a/docs/getting-started/install.mdx b/docs/getting-started/install.mdx index c76a6515b..739f88394 100644 --- a/docs/getting-started/install.mdx +++ b/docs/getting-started/install.mdx @@ -24,7 +24,7 @@ The Continue logo will appear on the left sidebar. For a better experience, move -[Sign in to the hub](https://auth.continue.dev/) to get started with your first assistant +[Sign in to the hub](https://auth.continue.dev/) to get started with your first agent @@ -54,7 +54,7 @@ Click `Install`, which will cause the Continue logo to show up on the right tool -[Sign in to the hub](https://auth.continue.dev/) to get started with your first assistant +[Sign in to the hub](https://auth.continue.dev/) to get started with your first agent @@ -68,6 +68,6 @@ Click `Install`, which will cause the Continue logo to show up on the right tool ## Signing in -Click "Get started" to sign in to the hub and start using assistants. +Click "Get started" to sign in to the hub and start using agents. ![Hub Onboarding in the Extension](/images/getting-started/images/hub-onboarding-card-81abd457b6d131c4b0aa89a5a6d647d3.png) diff --git a/docs/getting-started/overview.mdx b/docs/getting-started/overview.mdx index 18d8b67f3..a7c610a4b 100644 --- a/docs/getting-started/overview.mdx +++ b/docs/getting-started/overview.mdx @@ -57,6 +57,6 @@ description: "To quickly understand what you can do with Continue, check out eac -## AI Coding Assistants +## AI Coding Agents -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). +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). diff --git a/docs/getting-started/quick-start.mdx b/docs/getting-started/quick-start.mdx index f27899dd7..c27627465 100644 --- a/docs/getting-started/quick-start.mdx +++ b/docs/getting-started/quick-start.mdx @@ -247,12 +247,12 @@ Ready to master specific features? Check out these detailed guides: Discover [effective prompting techniques](/customize/deep-dives/prompts), [hub - v. local assistants](/guides/understanding-assistants), and [custom slash + v. local agents](/guides/understanding-agents), and [custom slash commands](/customize/deep-dives/slash-commands). - Explore [Hub Assistants](/hub/assistants/intro), [organization + Explore [Hub Agents](/hub/agents/intro), [organization management](/hub/governance/creating-an-org), and [sharing configurations](/hub/sharing). diff --git a/docs/guides/continuous-ai.mdx b/docs/guides/continuous-ai.mdx index c7280ef75..bd88c2228 100644 --- a/docs/guides/continuous-ai.mdx +++ b/docs/guides/continuous-ai.mdx @@ -123,8 +123,8 @@ Track how often you need to correct AI output. Lower intervention rates mean hig 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. - - 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. + + 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. @@ -203,5 +203,5 @@ Ready to amplify your development workflow with Continuous AI? Start with one si Check out our guides on [Continue CLI](/guides/cli) and [Understanding - Assistants](/guides/understanding-assistants). + Agents](/guides/understanding-agents). diff --git a/docs/guides/ollama-guide.mdx b/docs/guides/ollama-guide.mdx index e800c34c2..e3fa3516a 100644 --- a/docs/guides/ollama-guide.mdx +++ b/docs/guides/ollama-guide.mdx @@ -86,8 +86,8 @@ There are multiple ways to configure Ollama models in Continue: The easiest way is to use [pre-configured model blocks](/reference#local-blocks) from the Continue Hub in your local configuration: -```yaml title="~/.continue/assistants/My Local Assistant.yaml" -name: My Local Assistant +```yaml title="~/.continue/agents/My Local Agent.yaml" +name: My Local Agent version: 0.0.1 schema: v1 models: @@ -309,11 +309,11 @@ ollama pull deepseek-r1:32b #### Using Hub Blocks in Local Config **Problem**: Unclear how to use hub models locally -**Solution**: Create a local assistant file: +**Solution**: Create a local agent file: ```yaml -# ~/.continue/assistants/Local.yaml -name: Local Assistant +# ~/.continue/agents/Local.yaml +name: Local Agent version: 0.0.1 schema: v1 models: diff --git a/docs/guides/understanding-assistants.mdx b/docs/guides/understanding-agents.mdx similarity index 62% rename from docs/guides/understanding-assistants.mdx rename to docs/guides/understanding-agents.mdx index 4bc35693b..d03ce8758 100644 --- a/docs/guides/understanding-assistants.mdx +++ b/docs/guides/understanding-agents.mdx @@ -1,63 +1,63 @@ --- -title: "How to Understand Assistants: Hub vs Local Configuration" -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" +title: "How to Understand Agents: Hub vs Local Configuration" +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" --- 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. ## What Are the Two Paths to AI Assistance? -Continue provides two distinct ways to configure your AI assistant: +Continue provides two distinct ways to configure your AI agent: 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. -### How to Access Your Assistant Configuration +### How to Access Your Agent Configuration Before we dive into the specifics, let's understand how to access your configuration: 1. Open the Continue Chat sidebar by pressing cmd/ctrl + L (VS Code) or cmd/ctrl + J (JetBrains) -2. Click the Assistant selector above the main chat input -3. Hover over an assistant and click: - - `new window` icon for Hub assistants - - `gear` icon for Local assistants +2. Click the Agent selector above the main chat input +3. Hover over an agent and click: + - `new window` icon for Hub agents + - `gear` icon for Local agents -![configure an assistant](/images/configure-continue.png) +![configure an agent](/images/configure-continue.png) -## What Are Hub Assistants: The Managed Experience +## What Are Hub Agents: The Managed Experience -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. +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. -### Why Should You Choose Hub Assistants? +### Why Should You Choose Hub Agents? **The Power of Simplicity** -- **Instant Setup**: Browse the [assistant marketplace](https://hub.continue.dev/explore/assistants) and add any assistant to your account with a single click +- **Instant Setup**: Browse the [agent marketplace](https://hub.continue.dev) and add any agent to your account with a single click - **Web-Based Management**: Configure models, add secrets, and customize settings through an intuitive web interface—no JSON editing required - **Automatic Synchronization**: Make a change on the hub, and it reflects immediately across all your IDE instances -- **Team Collaboration**: Share custom assistants with your team, ensuring everyone uses the same optimized configurations +- **Team Collaboration**: Share custom agents with your team, ensuring everyone uses the same optimized configurations -![nextjs assistant](/images/nextjs-assistant.png) +![nextjs agent](/images/nextjs-assistant.png) -### How to Get Started with Hub Assistants +### How to Get Started with Hub Agents The journey from zero to AI-powered coding takes just four steps: -1. **Select Your Assistant**: Click the assistant selector in your IDE's Continue panel -2. **Explore or Create**: Browse community assistants or craft your own specialized helper +1. **Select Your Agent**: Click the agent selector in your IDE's Continue panel +2. **Explore or Create**: Browse community agents or craft your own specialized helper 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 4. **Sync and Code**: Click "Reload config" to pull your latest settings -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. +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. -### How to Manage Hub Assistants +### How to Manage Hub Agents -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). +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). -## What Are Local Assistants: The Power User's Choice +## What Are Local Agents: The Power User's Choice -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. +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. -### Why Should You Choose Local Assistants? +### Why Should You Choose Local Agents? **Complete Control and Privacy** @@ -66,7 +66,7 @@ Local Assistants put you in the driver's seat. Using a `config.yaml` file, you h - **Offline Capability**: Once configured, no internet connection needed (assuming you're using local models) - **Unlimited Customization**: Access every configuration option, experimental feature, and advanced setting -### How to Set Up Local Assistants +### How to Set Up Local Agents Local configuration lives in a single YAML file in your home directory: @@ -77,13 +77,13 @@ Local configuration lives in a single YAML file in your home directory: **Quick Access Method:** -1. Open the assistants dropdown in your IDE -2. Click the gear icon next to "Local Assistant" +1. Open the agents dropdown in your IDE +2. Click the gear icon next to "Local Agent" 3. The `config.yaml` file opens in your editor ![local-config-open-steps](/images/local-config-open-steps.png) -### The Local Assistant Experience +### The Local Agent Experience 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. @@ -93,9 +93,9 @@ For the complete configuration reference, see our [config.yaml documentation](/r ## How to Make the Right Choice -The decision between Hub and Local assistants often comes down to your specific needs and constraints. Here's a framework to help you decide: +The decision between Hub and Local agents often comes down to your specific needs and constraints. Here's a framework to help you decide: -### Choose Hub Assistants When You: +### Choose Hub Agents When You: **Value Convenience Over Control** @@ -106,7 +106,7 @@ The decision between Hub and Local assistants often comes down to your specific **Need Advanced Collaboration** -- Want to share custom assistants with teammates +- Want to share custom agents with teammates - Need centralized API key management - Require quick updates across your entire organization @@ -116,7 +116,7 @@ The decision between Hub and Local assistants often comes down to your specific - Want to experiment with different models and configurations - Prefer guided setup experiences -### Choose Local Assistants When You: +### Choose Local Agents When You: **Require Maximum Control** @@ -140,21 +140,21 @@ The decision between Hub and Local assistants often comes down to your specific Here's a secret: you don't have to choose just one. Many developers use both approaches: -- **Hub Assistants** for general development and experimentation -- **Local Assistants** for production work or client projects with specific requirements +- **Hub Agents** for general development and experimentation +- **Local Agents** for production work or client projects with specific requirements -You can switch between them seamlessly using the assistant selector in your IDE. +You can switch between them seamlessly using the agent selector in your IDE. ## Common Patterns and Best Practices -### For Hub Assistant Users +### For Hub Agent Users -1. **Start with Community Assistants**: Before creating your own, explore what others have built +1. **Start with Community Agents**: Before creating your own, explore what others have built 2. **Use Secrets Properly**: Never hardcode API keys—always use the User Secrets feature -3. **Create Specialized Assistants**: Make different assistants for different contexts (frontend, backend, DevOps) +3. **Create Specialized Agents**: Make different agents for different contexts (frontend, backend, DevOps) 4. **Share Liberally**: If you create something useful, share it with the community -### For Local Assistant Users +### For Local Agent Users 1. **Version Control Your Config**: Treat your `config.yaml` like code—commit it, review changes, and maintain history 2. **Use Environment Variables**: For sensitive data, reference environment variables instead of hardcoding values @@ -163,7 +163,7 @@ You can switch between them seamlessly using the assistant selector in your IDE. ## Troubleshooting and Tips -### Hub Assistant Issues +### Hub Agent Issues **Changes Not Reflecting?** @@ -171,12 +171,12 @@ You can switch between them seamlessly using the assistant selector in your IDE. - Check your internet connection - Ensure you're signed in to the correct account -**Assistant Not Available?** +**Agent Not Available?** - Verify it's added to your account on the hub - Check if it requires specific API keys -### Local Assistant Issues +### Local Agent Issues **Config Not Loading?** @@ -193,7 +193,7 @@ You can switch between them seamlessly using the assistant selector in your IDE. Now that you understand both configuration approaches, you're ready to dive deeper: -- **For Hub Users**: [Create Your First Assistant](/hub/assistants/create-an-assistant) +- **For Hub Users**: [Create Your First Agent](/hub/agents/create-an-agent) - **For Local Users**: [Explore the Config Reference](/reference) - **For Everyone**: [Discover Available Models](/customize/model-providers/overview) diff --git a/docs/hub/agents/create-an-agent.mdx b/docs/hub/agents/create-an-agent.mdx new file mode 100644 index 000000000..f518c48f5 --- /dev/null +++ b/docs/hub/agents/create-an-agent.mdx @@ -0,0 +1,34 @@ +--- +title: "How to Create an AI Agent" +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." +sidebarTitle: "Create an AI Agent" +--- + +## How to Create an AI Agent from Scratch + +To create an agent from scratch, select “New agent” in the top bar. + +![New agent button](/images/hub/assistants/images/assistant-new-button-16070e2cff9ce25ec9ebfeecb0e2f2b5.png) + +Choose a name, slug, description, and icon for your agent. + +The easiest way to create an agent is to click "Create agent" with the default configuration and then add / remove blocks using the sidebar. + +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. + +![New agent YAML](/images/hub/assistants/images/assistant-create-yaml-a991e5a81506f1c3ba611a664a50734c.png) + +## How to Remix an Agent + +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. + +By clicking the “remix” button, you’ll be taken to the “Create a remix” page. + +![Remix Agent Button](/images/hub/assistants/images/assistant-remix-button-728ececa73983140eeab42e33cc3903b.png) + +Once here, you’ll be able to + +1. add or remove blocks in YAML configuration +2. change the name, description, icon, etc. + +Clicking “Create agent” will make this agent available for use. diff --git a/docs/hub/agents/edit-an-agent.mdx b/docs/hub/agents/edit-an-agent.mdx new file mode 100644 index 000000000..d4f74fd5b --- /dev/null +++ b/docs/hub/agents/edit-an-agent.mdx @@ -0,0 +1,20 @@ +--- +title: "How to Edit an Agent" +description: "New versions of an agent can be created and published using the sidebar." +--- + +![Remix Agent Button](/images/hub/assistants/images/assistant-create-sidebar-608be49973f2a7723212adeb52dbcafb.png) + +First, select an agent from the dropdown at the top. + +While editing an agent, you can explore the hub and click "Add Block" from a block page to add it to your agent. + +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. + +To delete a block, click the trash icon. + +If a block you want to use does not exist yet, you can [create a new block](/hub/blocks/create-a-block). + +When you are done editing, click "Publish" to publish a new version of the agent. + +Click "Open VS Code" or "Open JetBrains" to open your IDE for using the agent. diff --git a/docs/hub/agents/intro.mdx b/docs/hub/agents/intro.mdx new file mode 100644 index 000000000..7747c8145 --- /dev/null +++ b/docs/hub/agents/intro.mdx @@ -0,0 +1,8 @@ +--- +title: "Introduction to Agents" +description: "Custom AI code agents are configurations of building blocks that enable a coding experience tailored to your specific use cases." +--- + +`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. + +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. diff --git a/docs/hub/agents/use-an-agent.mdx b/docs/hub/agents/use-an-agent.mdx new file mode 100644 index 000000000..afefad9a3 --- /dev/null +++ b/docs/hub/agents/use-an-agent.mdx @@ -0,0 +1,19 @@ +--- +title: "How to Use an Agent" +description: "Learn how to add, configure, and use an AI agent in Continue, including setting required inputs and selecting it in your IDE extension." +--- + +## Steps to Use an AI Agent in Continue + +Once you've found the agent you want to use on Continue Hub: + +1. Click “Add Agent” on its page +2. Add any required inputs (e.g. secrets like API keys) +3. Select “Save changes” in agent sidebar on the right hand side + +After saving, open your IDE extension and: + +- Select the agent from the **agent dropdown** in the Continue extension. +- Begin using it for chat, code generation, or other configured capabilities. + +![Extension Agent Selector](/images/hub/assistants/images/assistant-extension-select.png) diff --git a/docs/hub/assistants/create-an-assistant.mdx b/docs/hub/assistants/create-an-assistant.mdx deleted file mode 100644 index dd7ee9678..000000000 --- a/docs/hub/assistants/create-an-assistant.mdx +++ /dev/null @@ -1,34 +0,0 @@ ---- -title: "How to Create an AI Assistant" -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." -sidebarTitle: "Create an AI Assistant" ---- - -## How to Create an AI Assistant from Scratch - -To create an assistant from scratch, select “New assistant” in the top bar. - -![New assistant button](/images/hub/assistants/images/assistant-new-button-16070e2cff9ce25ec9ebfeecb0e2f2b5.png) - -Choose a name, slug, description, and icon for your assistant. - -The easiest way to create an assistant is to click "Create assistant" with the default configuration and then add / remove blocks using the sidebar. - -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. - -![New assistant YAML](/images/hub/assistants/images/assistant-create-yaml-a991e5a81506f1c3ba611a664a50734c.png) - -## How to Remix an Assistant - -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. - -By clicking the “remix” button, you’ll be taken to the “Create a remix” page. - -![Remix Assistant Button](/images/hub/assistants/images/assistant-remix-button-728ececa73983140eeab42e33cc3903b.png) - -Once here, you’ll be able to - -1. add or remove blocks in YAML configuration -2. change the name, description, icon, etc. - -Clicking “Create assistant” will make this assistant available for use. diff --git a/docs/hub/assistants/edit-an-assistant.mdx b/docs/hub/assistants/edit-an-assistant.mdx deleted file mode 100644 index 235b01358..000000000 --- a/docs/hub/assistants/edit-an-assistant.mdx +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: "How to Edit an Assistant" -description: "New versions of an assistant can be created and published using the sidebar." ---- - -![Remix Assistant Button](/images/hub/assistants/images/assistant-create-sidebar-608be49973f2a7723212adeb52dbcafb.png) - -First, select an assistant from the dropdown at the top. - -While editing an assistant, you can explore the hub and click "Add Block" from a block page to add it to your assistant. - -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. - -To delete a block, click the trash icon. - -If a block you want to use does not exist yet, you can [create a new block](/hub/blocks/create-a-block). - -When you are done editing, click "Publish" to publish a new version of the assistant. - -Click "Open VS Code" or "Open JetBrains" to open your IDE for using the assistant. diff --git a/docs/hub/assistants/intro.mdx b/docs/hub/assistants/intro.mdx deleted file mode 100644 index fd556b16a..000000000 --- a/docs/hub/assistants/intro.mdx +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: "Introduction to Assistants" -description: "Custom AI code assistants are configurations of building blocks that enable a coding experience tailored to your specific use cases." ---- - -`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. - -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. diff --git a/docs/hub/assistants/use-an-assistant.mdx b/docs/hub/assistants/use-an-assistant.mdx deleted file mode 100644 index f6d19b836..000000000 --- a/docs/hub/assistants/use-an-assistant.mdx +++ /dev/null @@ -1,19 +0,0 @@ ---- -title: "How to Use an Assistant" -description: "Learn how to add, configure, and use an AI assistant in Continue, including setting required inputs and selecting it in your IDE extension." ---- - -## Steps to Use an AI Assistant in Continue - -Once you've found the assistant you want to use on Continue Hub: - -1. Click “Add Assistant” on its page -2. Add any required inputs (e.g. secrets like API keys) -3. Select “Save changes” in assistant sidebar on the right hand side - -After saving, open your IDE extension and: - -- Select the assistant from the **assistant dropdown** in the Continue extension. -- Begin using it for chat, code generation, or other configured capabilities. - -![Extension Assistant Selector](/images/hub/assistants/images/assistant-extension-select.png) diff --git a/docs/hub/blocks/block-types.mdx b/docs/hub/blocks/block-types.mdx index f544885f9..461072d46 100644 --- a/docs/hub/blocks/block-types.mdx +++ b/docs/hub/blocks/block-types.mdx @@ -20,7 +20,7 @@ Learn more in the [MCP deep dive](/customize/deep-dives/mcp), and view [`mcpServ ## Rules -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. +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. Learn more in the [rules deep dive](/customize/deep-dives/rules), and view [`rules`](/reference#rules) in the YAML Reference for more details. diff --git a/docs/hub/blocks/create-a-block.mdx b/docs/hub/blocks/create-a-block.mdx index 2c5dc58fb..3b59267a8 100644 --- a/docs/hub/blocks/create-a-block.mdx +++ b/docs/hub/blocks/create-a-block.mdx @@ -12,7 +12,7 @@ By clicking the “remix” button, you’ll be taken to the “Create a remix ![Remix block button](/images/hub/blocks/images/block-remix-button-913beb80672662855acc7013561c78d0.png) -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. +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. ## How to Create a Block from Scratch @@ -26,4 +26,4 @@ After filling out information on the block, you will want to create a block foll ### Block Inputs -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. +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. diff --git a/docs/hub/blocks/intro.mdx b/docs/hub/blocks/intro.mdx index d4cc1c25c..7180b3f63 100644 --- a/docs/hub/blocks/intro.mdx +++ b/docs/hub/blocks/intro.mdx @@ -1,6 +1,6 @@ --- title: "Introduction" -description: "Blocks are the components you use to build a custom AI code assistant. These include Models, MCP Servers, Rules, and Prompts." +description: "Blocks are the components you use to build a custom AI code agent. These include Models, MCP Servers, Rules, and Prompts." --- -Blocks follow the [`config.yaml`](/reference) format. When combined with other blocks into a complete `config.yaml`, they form a custom AI code assistant. +Blocks follow the [`config.yaml`](/reference) format. When combined with other blocks into a complete `config.yaml`, they form a custom AI code agent. diff --git a/docs/hub/blocks/use-a-block.mdx b/docs/hub/blocks/use-a-block.mdx index 3971dbc63..ed5ff7cb3 100644 --- a/docs/hub/blocks/use-a-block.mdx +++ b/docs/hub/blocks/use-a-block.mdx @@ -1,12 +1,12 @@ --- title: "How to Use a Block" -description: "Learn how to use blocks in Continue Hub to enhance your AI code assistant." +description: "Learn how to use blocks in Continue Hub to enhance your AI code agent." --- -Blocks are used to build custom AI code assistants in Continue Hub. Learn more: +Blocks are used to build custom AI code agents in Continue Hub. Learn more: -- [Create an assistant](/hub/assistants/create-an-assistant) -- [Edit an assistant](/hub/assistants/edit-an-assistant) +- [Create an agent](/hub/agents/create-an-agent) +- [Edit an agent](/hub/agents/edit-an-agent) 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: diff --git a/docs/hub/governance/creating-an-org.mdx b/docs/hub/governance/creating-an-org.mdx index dfcb0665e..c0a021000 100644 --- a/docs/hub/governance/creating-an-org.mdx +++ b/docs/hub/governance/creating-an-org.mdx @@ -6,7 +6,7 @@ description: "To Create an Organization, click the organization selector in the ![create an org selector](/images/hub/governance/images/org-selector-4ea627afc7c0765633780920a0fbe16e.png) 1. Choose a name, which will be used as the display name for your organization throughout the hub -2. Add a slug, which will be used for your org URL and as the prefix to all organization blocks and assistant slugs +2. Add a slug, which will be used for your org URL and as the prefix to all organization blocks and agent slugs 3. Select an icon for your organization using the image uploader 4. Finally, add a Biography, which will be displayed on your org Home Page diff --git a/docs/hub/secrets/secret-types.mdx b/docs/hub/secrets/secret-types.mdx index b5f75de6a..ebf3d39ca 100644 --- a/docs/hub/secrets/secret-types.mdx +++ b/docs/hub/secrets/secret-types.mdx @@ -1,16 +1,16 @@ --- title: "Secret Types" -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." +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." --- ## User secrets -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`. +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`. 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. ## Org secrets -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). +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). 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. diff --git a/docs/hub/sharing.mdx b/docs/hub/sharing.mdx index d8de121a0..b429dbd9d 100644 --- a/docs/hub/sharing.mdx +++ b/docs/hub/sharing.mdx @@ -15,17 +15,17 @@ Share your custom assistants, blocks, and configurations with the Continue commu [Visit the Hub →](https://hub.continue.dev) -## Browse Assistants +## Browse Agents Explore assistants created by the community for specific use cases and workflows. -[Browse Assistants →](https://hub.continue.dev) +[Browse Agents →](https://hub.continue.dev) -## Using Assistants +## Using Agents Learn how to discover, install, and use community-created assistants in your projects. -[Learn About Assistants →](/hub/assistants/intro) +[Learn About Agents →](/hub/assistants/intro) --- diff --git a/docs/hub/source-control.mdx b/docs/hub/source-control.mdx index 5e863336b..ee0c410ec 100644 --- a/docs/hub/source-control.mdx +++ b/docs/hub/source-control.mdx @@ -1,6 +1,6 @@ --- title: "Source Control" -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 ." +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 ." --- ## Quickstart @@ -34,11 +34,11 @@ This is the only configuration necessary, but you can view the full list of opti ### 4. Commit and push -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. +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. -- `assistants/public` for public assistants -- `assistants/private` for private (visible only within your organization) assistants +- `assistants/public` for public agents +- `assistants/private` for private (visible only within your organization) agents - `blocks/public` for public blocks - `blocks/private` for private blocks -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). +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). diff --git a/docs/reference.mdx b/docs/reference.mdx index e67d5dad9..0024f5bff 100644 --- a/docs/reference.mdx +++ b/docs/reference.mdx @@ -1,43 +1,43 @@ --- title: "config.yaml Reference" -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." +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." --- ## Introduction -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 +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 -- [Continue Hub](https://hub.continue.dev/explore/assistants) - YAML is stored on the hub and automatically synced to the extension +- [Continue Hub](https://hub.continue.dev/explore/agents) - YAML is stored on the hub and automatically synced to the extension - Locally - - 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` - - in your workspace in a `/.continue/assistants` folder, with the same naming convention + - 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` + - in your workspace in a `/.continue/agents` folder, with the same naming convention Config YAML replaces `config.json`, which is deprecated. View the **[Migration Guide](/reference/yaml-migration)**. -An assistant is made up of: +An agent is made up of: -1. **Top level properties**, which specify the `name`, `version`, and `config.yaml` `schema` for the assistant -2. **Block lists**, which are composable arrays of coding assistant building blocks available to the assistant, such as models, docs, and context providers. +1. **Top level properties**, which specify the `name`, `version`, and `config.yaml` `schema` for the agent +2. **Block lists**, which are composable arrays of coding agent building blocks available to the agent, such as models, docs, and context providers. -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. +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. -Examples of blocks and assistants can be found on the [Continue hub](https://hub.continue.dev/explore/assistants). +Examples of blocks and agents can be found on the [Continue Hub](https://hub.continue.dev). -Assistants can either explicitly define blocks - see [Properties](#properties) below - or import and configure existing hub blocks. +Agents can either explicitly define blocks - see [Properties](#properties) below - or import and configure existing hub blocks. ### Using Blocks -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). +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). -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. +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. -For example, the following assistant imports an Anthropic model and defines an Ollama DeepSeek one. +For example, the following agent imports an Anthropic model and defines an Ollama DeepSeek one. -Assistant models section +Agent models section ```yaml name: Team Agent @@ -52,13 +52,13 @@ models: ### Local Blocks -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). +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). Place your YAML files in the following folders: -Assistants: +Agents: -- `.continue/assistants` - for assistants +- `.continue/agents` - for agents Blocks: @@ -100,7 +100,7 @@ models: Which can then be imported like this: ```yaml title="config.yaml" -name: myprofile/custom-assistant +name: myprofile/custom-agent version: 1.0.0 schema: v1 @@ -118,7 +118,7 @@ Note that hub secrets can be passed as inputs, using a similar mustache format: Block properties can be also be directly overriden using `override`. For example: ```yaml title="config.yaml" -name: myprofile/custom-assistant +name: myprofile/custom-agent version: 1.0.0 schema: v1 diff --git a/docs/reference/continue-mcp.mdx b/docs/reference/continue-mcp.mdx index bd7d7d3cf..882a662c8 100644 --- a/docs/reference/continue-mcp.mdx +++ b/docs/reference/continue-mcp.mdx @@ -45,7 +45,7 @@ What context providers are available in Continue? ### Customization ``` -How do I add custom rules to my assistant in Continue? +How do I add custom rules to my agent in Continue? ``` ## Troubleshooting diff --git a/docs/snippets/ModelRecommendations.jsx b/docs/snippets/ModelRecommendations.jsx index 76d930aba..a802e96b7 100644 --- a/docs/snippets/ModelRecommendations.jsx +++ b/docs/snippets/ModelRecommendations.jsx @@ -50,8 +50,8 @@ export const ModelRecommendations = ({ role = "all" }) => { "[Kimi K2 (1T)](https://hub.continue.dev/openrouter/kimi-k2)", "[gpt-oss (120B)](https://hub.continue.dev/openrouter/gpt-oss-120b)", "[gpt-oss (20B)](https://hub.continue.dev/ollama/gpt-oss-20b)", - "GLM 4.5 (355B)", - "GLM 4.5 Air (106B)", + "[GLM 4.5 (355B)](https://hub.continue.dev/openrouter/glm-4-5)", + "[GLM 4.5 Air (106B)](https://hub.continue.dev/openrouter/glm-4-5-air)", ], closed: [ "[Claude Opus 4.1](https://hub.continue.dev/anthropic/claude-4-1-opus)", @@ -83,7 +83,7 @@ export const ModelRecommendations = ({ role = "all" }) => { ], closed: [ "[Codestral](https://hub.continue.dev/mistral/codestral)", - "[Mercury Coder](https://hub.continue.dev/inceptionlabs/mercury-coder)", + "[Mercury Coder](https://hub.continue.dev/inception/mercury-coder)", ], notes: "Closed models are slightly better than open models", }, @@ -119,7 +119,7 @@ export const ModelRecommendations = ({ role = "all" }) => { next_edit: { open: ["[Instinct](https://hub.continue.dev/continuedev/instinct)"], closed: [ - "[Mercury Coder](https://hub.continue.dev/inceptionlabs/mercury-coder)", + "[Mercury Coder](https://hub.continue.dev/inception/mercury-coder)", ], notes: "Closed models are better than open models", }, diff --git a/extensions/cli/.github/workflows/respond-to-cubic-dev-ai.yml b/extensions/cli/.github/workflows/respond-to-cubic-dev-ai.yml deleted file mode 100644 index 5d3f40c56..000000000 --- a/extensions/cli/.github/workflows/respond-to-cubic-dev-ai.yml +++ /dev/null @@ -1,215 +0,0 @@ -name: Respond to @continuedev Comments - -on: - issue_comment: - types: [created] - pull_request_review_comment: - types: [created] - -permissions: - contents: write - pull-requests: write - issues: write - -jobs: - respond-to-comment: - # Only run on pull request comments - if: github.event_name == 'issue_comment' && github.event.issue.pull_request - runs-on: ubuntu-latest - - steps: - - name: Check if comment contains @continuedev - id: check-mention - run: | - if echo "${{ github.event.comment.body }}" | grep -q "@continuedev"; then - echo "contains_mention=true" >> $GITHUB_OUTPUT - else - echo "contains_mention=false" >> $GITHUB_OUTPUT - fi - - - name: Checkout PR branch - if: steps.check-mention.outputs.contains_mention == 'true' - uses: actions/checkout@v4 - with: - token: ${{ secrets.GITHUB_TOKEN }} - fetch-depth: 0 - - - name: Get PR information - if: steps.check-mention.outputs.contains_mention == 'true' - id: pr-info - uses: actions/github-script@v7 - with: - script: | - const { data: pr } = await github.rest.pulls.get({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.issue.number - }); - - core.setOutput('head_ref', pr.head.ref); - core.setOutput('head_sha', pr.head.sha); - return pr; - - - name: Checkout PR branch - if: steps.check-mention.outputs.contains_mention == 'true' - run: | - git checkout ${{ steps.pr-info.outputs.head_ref }} - - - name: Setup Node.js - if: steps.check-mention.outputs.contains_mention == 'true' - uses: actions/setup-node@v4 - with: - node-version: "20" - - - name: Install Continue CLI globally - if: steps.check-mention.outputs.contains_mention == 'true' - run: npm i -g @continuedev/cli - - - name: Start remote session - if: steps.check-mention.outputs.contains_mention == 'true' - id: remote-session - env: - CONTINUE_API_KEY: ${{ secrets.CONTINUE_API_KEY }} - run: | - # Create the prompt for remote session - PROMPT="Please help with the following request from @${{ github.event.comment.user.login }} on PR #${{ github.event.issue.number }}: - - ${{ github.event.comment.body }} - - Please analyze the current PR, understand the request, implement the necessary changes, and commit them to this branch." - - # Start remote session and capture JSON output - SESSION_OUTPUT=$(echo "$PROMPT" | cn remote -s --branch ${{ steps.pr-info.outputs.head_ref }}) - echo "Raw session output: $SESSION_OUTPUT" - - # Extract URL from JSON output - SESSION_URL=$(echo "$SESSION_OUTPUT" | jq -r '.url // empty') - - if [ -z "$SESSION_URL" ] || [ "$SESSION_URL" = "null" ]; then - echo "Failed to extract session URL from output: $SESSION_OUTPUT" - exit 1 - fi - - echo "session_url=$SESSION_URL" >> $GITHUB_OUTPUT - echo "✅ Started remote session: $SESSION_URL" - - - name: Comment with session URL - if: steps.check-mention.outputs.contains_mention == 'true' && steps.remote-session.outputs.session_url - uses: actions/github-script@v7 - with: - script: | - const commentBody = `I've started [a remote session](${{ steps.remote-session.outputs.session_url }}) to help with your request: - > ${{ github.event.comment.body }}`; - - await github.rest.issues.createComment({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.issue.number, - body: commentBody - }); - - - name: Log session details - if: steps.check-mention.outputs.contains_mention == 'true' - run: | - echo "✅ Successfully started remote session for comment from ${{ github.event.comment.user.login }} on PR #${{ github.event.issue.number }}" - echo "Session URL: ${{ steps.remote-session.outputs.session_url }}" - echo "Original comment: ${{ github.event.comment.body }}" - - respond-to-review-comment: - # Only run on pull request review comments - if: github.event_name == 'pull_request_review_comment' - runs-on: ubuntu-latest - - steps: - - name: Check if comment contains @continuedev - id: check-mention - run: | - if echo "${{ github.event.comment.body }}" | grep -q "@continuedev"; then - echo "contains_mention=true" >> $GITHUB_OUTPUT - else - echo "contains_mention=false" >> $GITHUB_OUTPUT - fi - - - name: Checkout PR branch - if: steps.check-mention.outputs.contains_mention == 'true' - uses: actions/checkout@v4 - with: - token: ${{ secrets.GITHUB_TOKEN }} - fetch-depth: 0 - ref: ${{ github.event.pull_request.head.ref }} - - - name: Setup Node.js - if: steps.check-mention.outputs.contains_mention == 'true' - uses: actions/setup-node@v4 - with: - node-version: "20" - - - name: Install Continue CLI globally - if: steps.check-mention.outputs.contains_mention == 'true' - run: npm i -g @continuedev/cli - - - name: Start remote session - if: steps.check-mention.outputs.contains_mention == 'true' - id: remote-session - env: - CONTINUE_API_KEY: ${{ secrets.CONTINUE_API_KEY }} - run: | - # Create a temporary file for the prompt to handle special characters and newlines properly - cat > /tmp/prompt.txt << 'PROMPT_EOF' - Please help with the following code review comment from @${{ github.event.comment.user.login }} on PR #${{ github.event.pull_request.number }}: - - **File:** ${{ github.event.comment.path }} - **Line:** ${{ github.event.comment.line || github.event.comment.original_line || 'N/A' }} - **Comment:** ${{ github.event.comment.body }} - - Please analyze the specific file and line mentioned, understand the review feedback, implement the necessary changes, and commit them to this branch. - PROMPT_EOF - - # Debug output - echo "PROMPT content:" - cat /tmp/prompt.txt - - # Start remote session and capture JSON output - echo "Starting cn with prompt..." - SESSION_OUTPUT=$(cat /tmp/prompt.txt | cn remote -s --branch ${{ github.event.pull_request.head.ref }}) - echo "Raw session output: $SESSION_OUTPUT" - - # Extract URL from JSON output - SESSION_URL=$(echo "$SESSION_OUTPUT" | jq -r '.url // empty') - - if [ -z "$SESSION_URL" ] || [ "$SESSION_URL" = "null" ]; then - echo "Failed to extract session URL from output: $SESSION_OUTPUT" - exit 1 - fi - - echo "session_url=$SESSION_URL" >> $GITHUB_OUTPUT - echo "✅ Started remote session: $SESSION_URL" - - - name: Comment with session URL - if: steps.check-mention.outputs.contains_mention == 'true' && steps.remote-session.outputs.session_url - uses: actions/github-script@v7 - with: - script: | - const commentBody = `I've started [a remote session](${{ steps.remote-session.outputs.session_url }}) to help with your request: - > ${{ github.event.comment.body }}`; - - const commentParams = { - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: ${{ github.event.pull_request.number }}, - body: commentBody, - commit_id: '${{ github.event.pull_request.head.sha }}', - path: '${{ github.event.comment.path }}', - in_reply_to: ${{ github.event.comment.id }} - }; - - await github.rest.pulls.createReviewComment(commentParams); - - - name: Log session details - if: steps.check-mention.outputs.contains_mention == 'true' - run: | - echo "✅ Successfully started remote session for review comment from ${{ github.event.comment.user.login }} on PR #${{ github.event.pull_request.number }}" - echo "Session URL: ${{ steps.remote-session.outputs.session_url }}" - echo "File: ${{ github.event.comment.path }}" - echo "Line: ${{ github.event.comment.line }}" - echo "Original comment: ${{ github.event.comment.body }}" diff --git a/extensions/cli/src/index.ts b/extensions/cli/src/index.ts index 784dbe09b..cd7f34704 100644 --- a/extensions/cli/src/index.ts +++ b/extensions/cli/src/index.ts @@ -47,6 +47,42 @@ export function setExitMessageCallback(callback: () => void) { exitMessageCallback = callback; } +// Sets up SIGINT handler that requires double Ctrl+C within 1 second to exit +export function enableSigintHandler() { + // Remove all existing SIGINT listeners first + process.removeAllListeners("SIGINT"); + + process.on("SIGINT", async () => { + const now = Date.now(); + const timeSinceLastCtrlC = now - lastCtrlCTime; + + if (timeSinceLastCtrlC <= 1000 && lastCtrlCTime !== 0) { + // Second Ctrl+C within 1 second - exit + showExitMessage = false; + if (tuiUnmount) { + tuiUnmount(); + } + await sentryService.flush(); + process.exit(0); + } else { + // First Ctrl+C or too much time elapsed - show exit message + lastCtrlCTime = now; + showExitMessage = true; + if (exitMessageCallback) { + exitMessageCallback(); + } + + // Hide message after 1 second + setTimeout(() => { + showExitMessage = false; + if (exitMessageCallback) { + exitMessageCallback(); + } + }, 1000); + } + }); +} + // Check if "ctrl+c to exit" message should be displayed export function shouldShowExitMessage(): boolean { return showExitMessage; @@ -294,41 +330,6 @@ try { process.exit(1); } -// Graceful shutdown with two-stage Ctrl+C exit - -// Remove all existing SIGINT listeners first -process.removeAllListeners("SIGINT"); - -process.on("SIGINT", async () => { - const now = Date.now(); - const timeSinceLastCtrlC = now - lastCtrlCTime; - - if (timeSinceLastCtrlC <= 1000 && lastCtrlCTime !== 0) { - // Second Ctrl+C within 1 second - exit - showExitMessage = false; - if (tuiUnmount) { - tuiUnmount(); - } - await sentryService.flush(); - process.exit(0); - } else { - // First Ctrl+C or too much time elapsed - show exit message - lastCtrlCTime = now; - showExitMessage = true; - if (exitMessageCallback) { - exitMessageCallback(); - } - - // Hide message after 1 second - setTimeout(() => { - showExitMessage = false; - if (exitMessageCallback) { - exitMessageCallback(); - } - }, 1000); - } -}); - process.on("SIGTERM", async () => { await sentryService.flush(); process.exit(0); diff --git a/extensions/cli/src/infoScreen.ts b/extensions/cli/src/infoScreen.ts new file mode 100644 index 000000000..2a95bf363 --- /dev/null +++ b/extensions/cli/src/infoScreen.ts @@ -0,0 +1,136 @@ +import { execSync } from "child_process"; + +import chalk from "chalk"; + +import { + isAuthenticated, + isAuthenticatedConfig, + loadAuthConfig, +} from "./auth/workos.js"; +import { services } from "./services/index.js"; +import { getCurrentSession, getSessionFilePath } from "./session.js"; +import { posthogService } from "./telemetry/posthogService.js"; +import { logger } from "./util/logger.js"; +import { getVersion } from "./version.js"; + +export async function handleInfoSlashCommand() { + posthogService.capture("useSlashCommand", { name: "info" }); + + const infoLines = []; + + // Version and working directory info + const version = getVersion(); + const cwd = process.cwd(); + + infoLines.push( + chalk.white("CLI Information:"), + ` Version: ${chalk.green(version)}`, + ` Working Directory: ${chalk.blue(cwd)}`, + ); + + // Auth info + if (isAuthenticated()) { + const config = loadAuthConfig(); + if (config && isAuthenticatedConfig(config)) { + const email = config.userEmail || config.userId; + const orgId = config.organizationId; + infoLines.push( + "", + chalk.white("Authentication:"), + ` Email: ${chalk.green(email)}`, + ` Org ID: ${chalk.cyan(orgId)}`, + ); + } else { + infoLines.push( + "", + chalk.white("Authentication:"), + ` ${chalk.yellow("Authenticated via environment variable")}`, + ); + } + } else { + infoLines.push( + "", + chalk.white("Authentication:"), + ` ${chalk.red("Not logged in")}`, + ); + } + + // Config info + try { + const configState = services.config.getState(); + infoLines.push("", chalk.white("Configuration:")); + if (configState.config) { + infoLines.push(` ${chalk.gray(`Using ${configState.config?.name}`)}`); + } else { + infoLines.push(` ${chalk.red(`Config not found`)}`); + } + if (configState.configPath) { + infoLines.push(` Path: ${chalk.blue(configState.configPath)}`); + } + + // Add current model info + try { + const modelInfo = services.model?.getModelInfo(); + if (modelInfo) { + infoLines.push(` Model: ${chalk.cyan(modelInfo.name)}`); + } else { + infoLines.push(` Model: ${chalk.red("Not available")}`); + } + } catch { + infoLines.push(` Model: ${chalk.red("Error retrieving model info")}`); + } + } catch { + infoLines.push( + "", + chalk.white("Configuration:"), + ` ${chalk.red("Configuration service not available")}`, + ); + } + + // Session info + infoLines.push("", chalk.white("Session:")); + try { + const currentSession = getCurrentSession(); + const sessionFilePath = getSessionFilePath(); + infoLines.push( + ` Title: ${chalk.green(currentSession.title)}`, + ` ID: ${chalk.gray(currentSession.sessionId)}`, + ` File: ${chalk.blue(sessionFilePath)}`, + ); + } catch { + infoLines.push(` ${chalk.red("Session not available")}`); + } + + // Runtime diagnostic info + const nodePath = process.execPath; + const invokedPath = process.argv[1]; + + // Get npm version + let npmVersion = "unknown"; + try { + npmVersion = execSync("npm --version", { + encoding: "utf8", + timeout: 5000, + stdio: ["pipe", "pipe", "ignore"], + }).trim(); + } catch (error) { + // If npm command fails, fallback to "unknown" + logger.warn("Failed to get npm version:", error); + } + + // Diagnostic info + infoLines.push( + "", + chalk.white("Diagnostic Info"), + ` Currently running: npm-global (${chalk.green(npmVersion)})`, + ` Path: ${chalk.blue(nodePath)}`, + ` Invoked: ${chalk.blue(invokedPath)}`, + ); + + // TODO add global settings like auto update etc. + + return { + exit: false, + output: infoLines.join("\n"), + }; +} diff --git a/extensions/cli/src/slashCommands.test.ts b/extensions/cli/src/slashCommands.test.ts index 83514dac3..d2fa5c9af 100644 --- a/extensions/cli/src/slashCommands.test.ts +++ b/extensions/cli/src/slashCommands.test.ts @@ -217,7 +217,7 @@ describe("slashCommands", () => { expect(result).toBeDefined(); expect(result?.output).toContain("Authentication:"); expect(result?.output).toContain("test@example.com"); - expect(result?.output).toContain("(no org)"); + expect(result?.output).toContain("test-org-id"); expect(result?.output).toContain("Configuration:"); expect(result?.output).toContain("/custom/config.yaml"); expect(result?.exit).toBe(false); diff --git a/extensions/cli/src/slashCommands.ts b/extensions/cli/src/slashCommands.ts index 509ce8f61..548db22f2 100644 --- a/extensions/cli/src/slashCommands.ts +++ b/extensions/cli/src/slashCommands.ts @@ -7,11 +7,11 @@ import { loadAuthConfig, } from "./auth/workos.js"; import { getAllSlashCommands } from "./commands/commands.js"; +import { handleInfoSlashCommand } from "./infoScreen.js"; import { reloadService, SERVICE_NAMES, services } from "./services/index.js"; -import { getCurrentSession, getSessionFilePath } from "./session.js"; +import { getCurrentSession } from "./session.js"; import { posthogService } from "./telemetry/posthogService.js"; import { SlashCommandResult } from "./ui/hooks/useChat.types.js"; -import { getVersion } from "./version.js"; type CommandHandler = ( args: string[], @@ -115,93 +115,6 @@ function handleWhoami() { } } -async function handleInfo() { - posthogService.capture("useSlashCommand", { name: "info" }); - - const infoLines = []; - - // Version and working directory info - const version = getVersion(); - const cwd = process.cwd(); - - infoLines.push(chalk.white("CLI Information:")); - infoLines.push(` Version: ${chalk.green(version)}`); - infoLines.push(` Working Directory: ${chalk.blue(cwd)}`); - - // Auth info - if (isAuthenticated()) { - const config = loadAuthConfig(); - if (config && isAuthenticatedConfig(config)) { - const email = config.userEmail || config.userId; - const org = "(no org)"; // Organization info not available in AuthenticatedConfig - infoLines.push(""); - infoLines.push(chalk.white("Authentication:")); - infoLines.push(` Email: ${chalk.green(email)}`); - infoLines.push(` Organization: ${chalk.cyan(org)}`); - } else { - infoLines.push(""); - infoLines.push(chalk.white("Authentication:")); - infoLines.push( - ` ${chalk.yellow("Authenticated via environment variable")}`, - ); - } - } else { - infoLines.push(""); - infoLines.push(chalk.white("Authentication:")); - infoLines.push(` ${chalk.red("Not logged in")}`); - } - - // Config info - try { - const configState = services.config.getState(); - infoLines.push(""); - infoLines.push(chalk.white("Configuration:")); - if (configState.config) { - infoLines.push(` ${chalk.gray(`Using ${configState.config?.name}`)}`); - } else { - infoLines.push(` ${chalk.red(`Config not found`)}`); - } - if (configState.configPath) { - infoLines.push(` Path: ${chalk.blue(configState.configPath)}`); - } - - // Add current model info - try { - const modelInfo = services.model?.getModelInfo(); - if (modelInfo) { - infoLines.push(` Model: ${chalk.cyan(modelInfo.name)}`); - } else { - infoLines.push(` Model: ${chalk.red("Not available")}`); - } - } catch { - infoLines.push(` Model: ${chalk.red("Error retrieving model info")}`); - } - } catch { - infoLines.push(""); - infoLines.push(chalk.white("Configuration:")); - infoLines.push(` ${chalk.red("Configuration service not available")}`); - } - - // Session info - infoLines.push(""); - infoLines.push(chalk.white("Session:")); - try { - const currentSession = getCurrentSession(); - infoLines.push(` Title: ${chalk.green(currentSession.title)}`); - infoLines.push(` ID: ${chalk.gray(currentSession.sessionId)}`); - - const sessionFilePath = getSessionFilePath(); - infoLines.push(` File: ${chalk.blue(sessionFilePath)}`); - } catch { - infoLines.push(` ${chalk.red("Session not available")}`); - } - - return { - exit: false, - output: infoLines.join("\n"), - }; -} - async function handleFork() { posthogService.capture("useSlashCommand", { name: "fork" }); @@ -247,7 +160,7 @@ const commandHandlers: Record = { login: handleLogin, logout: handleLogout, whoami: handleWhoami, - info: handleInfo, + info: handleInfoSlashCommand, model: () => ({ openModelSelector: true }), compact: () => { posthogService.capture("useSlashCommand", { name: "compact" }); diff --git a/extensions/cli/src/systemMessage.ts b/extensions/cli/src/systemMessage.ts index 3c1e1fcde..c9e8920fe 100644 --- a/extensions/cli/src/systemMessage.ts +++ b/extensions/cli/src/systemMessage.ts @@ -176,6 +176,13 @@ export async function constructSystemMessage( if (currentMode === "plan") { systemMessage += '\nYou 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.\n'; + } else { + // TODO - make including this coauthor commit configurable + systemMessage += `\nWhen creating commits using any CLI or tool, include the following in the commit message: +Generated with [Continue](https://continue.dev) + +Co-Authored-By: Continue +\n`; } // In headless mode, add instructions to be concise and only provide final answers diff --git a/extensions/cli/src/telemetry/posthogService.ts b/extensions/cli/src/telemetry/posthogService.ts index 22c2beb0f..0dd5691b5 100644 --- a/extensions/cli/src/telemetry/posthogService.ts +++ b/extensions/cli/src/telemetry/posthogService.ts @@ -1,3 +1,4 @@ +import dns from "dns/promises"; import os from "node:os"; import node_machine_id from "node-machine-id"; @@ -15,13 +16,36 @@ export class PosthogService { this.uniqueId = this.getEventUserId(); } + private _hasInternetConnection: boolean | undefined = undefined; + private async hasInternetConnection() { + const refetchConnection = async () => { + try { + await dns.lookup("app.posthog.com"); + this._hasInternetConnection = true; + } catch { + this._hasInternetConnection = false; + } + }; + + if (typeof this._hasInternetConnection !== "undefined") { + void refetchConnection(); // check in background if connection became available + return this._hasInternetConnection; + } + + await refetchConnection(); + return this._hasInternetConnection; + } + get isEnabled() { return process.env.CONTINUE_CLI_ENABLE_TELEMETRY !== "0"; } private _client: PostHogType | undefined; private async getClient() { - if (this.isEnabled) { + if (!(await this.hasInternetConnection())) { + this._client = undefined; + logger.warn("No internet connection, skipping telemetry"); + } else if (this.isEnabled) { if (!this._client) { const { PostHog } = await import("posthog-node"); this._client = new PostHog( @@ -30,6 +54,7 @@ export class PosthogService { host: "https://app.posthog.com", }, ); + logger.debug("Initialized telemetry"); } } else { this._client = undefined; @@ -83,7 +108,13 @@ export class PosthogService { try { const client = await this.getClient(); if (client) { - await client.shutdown(); + // Set a timeout for shutdown to prevent hanging + const shutdownPromise = client.shutdown(); + const timeoutPromise = new Promise((_, reject) => + setTimeout(() => reject(new Error("Shutdown timeout")), 5000), + ); + + await Promise.race([shutdownPromise, timeoutPromise]); } } catch (e) { logger.debug(`Failed to shutdown PostHog client: ${e}`); diff --git a/extensions/cli/src/tools/edit.test.ts b/extensions/cli/src/tools/edit.test.ts index d3b0764b9..03c58c4ed 100644 --- a/extensions/cli/src/tools/edit.test.ts +++ b/extensions/cli/src/tools/edit.test.ts @@ -1,8 +1,9 @@ import * as fs from "fs"; -import { describe, it, expect, beforeEach, afterEach, vi } from "vitest"; +import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; -import { editTool, markFileAsRead, readFilesSet } from "./edit.js"; +import { editTool } from "./edit.js"; +import { markFileAsRead, readFilesSet } from "./readFile.js"; // Mock the dependencies vi.mock("../telemetry/telemetryService.js"); @@ -21,6 +22,7 @@ vi.mock("fs", async () => { readFileSync: vi.fn(), writeFileSync: vi.fn(), unlinkSync: vi.fn(), + realpathSync: vi.fn(), }; }); @@ -34,6 +36,7 @@ describe("editTool", () => { vi.mocked(fs.existsSync).mockReturnValue(true); vi.mocked(fs.readFileSync).mockReturnValue(originalContent); vi.mocked(fs.writeFileSync).mockImplementation(() => {}); + vi.mocked(fs.realpathSync).mockImplementation((path) => path.toString()); }); afterEach(() => { @@ -126,7 +129,7 @@ describe("editTool", () => { const result = await editTool.preprocess!(args); expect(result.args).toEqual({ - file_path: testFilePath, + resolvedPath: testFilePath, newContent: "Hi there\nThis is a test file\nGoodbye world", oldContent: originalContent, }); @@ -163,7 +166,7 @@ describe("editTool", () => { it("should successfully write file and return success message", async () => { const newContent = "Hi there\nThis is a test file\nGoodbye world"; const args = { - file_path: testFilePath, + resolvedPath: testFilePath, newContent, oldContent: originalContent, }; @@ -186,7 +189,7 @@ describe("editTool", () => { }); const args = { - file_path: testFilePath, + resolvedPath: testFilePath, newContent: "new content", oldContent: originalContent, }; diff --git a/extensions/cli/src/tools/edit.ts b/extensions/cli/src/tools/edit.ts index a7b31ca10..545d14269 100644 --- a/extensions/cli/src/tools/edit.ts +++ b/extensions/cli/src/tools/edit.ts @@ -8,6 +8,7 @@ import { getLanguageFromFilePath, } from "../telemetry/utils.js"; +import { readFilesSet, readFileTool } from "./readFile.js"; import { Tool } from "./types.js"; import { generateDiff } from "./writeFile.js"; @@ -18,40 +19,23 @@ export interface EditArgs { replace_all?: boolean; } -// Track files that have been read in the current session -export const readFilesSet = new Set(); - export const editTool: Tool = { name: "Edit", displayName: "Edit", readonly: false, isBuiltIn: true, - description: `Performs exact string replacements in files. + description: `Performs exact string replacements in a file. +USAGE: +- ALWAYS use the \`${readFileTool.name}\` tool just before making edits, to understand the file's up-to-date contents and context. +- When editing text from ${readFileTool.name} tool output, ensure you preserve exact whitespace/indentation. +- Always prefer editing existing files in the codebase. NEVER write new files unless explicitly required. +- Only use emojis if the user explicitly requests it. Avoid adding emojis to files unless asked. +- Use \`replace_all\` for replacing and renaming strings across the file. This parameter is useful if you want to rename a variable, for instance. -Usage: - -- You must use your \`Read\` tool at least once in the conversation before -editing. This tool will error if you attempt an edit without reading the file. - -- When editing text from Read tool output, ensure you preserve the exact -indentation (tabs/spaces) as it appears AFTER the line number prefix. The line -number prefix format is: spaces + line number + tab. Everything after that tab -is the actual file content to match. Never include any part of the line number -prefix in the old_string or new_string. - -- ALWAYS prefer editing existing files in the codebase. NEVER write new files -unless explicitly required. - -- Only use emojis if the user explicitly requests it. Avoid adding emojis to -files unless asked. - -- 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\`. - -- Use \`replace_all\` for replacing and renaming strings across the file. This -parameter is useful if you want to rename a variable for instance.`, +WARNINGS: +- 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\`. +- The edit will FAIL if you have not recently used the \`${readFileTool.name}\` tool to view up-to-date file contents.`, parameters: { file_path: { type: "string", @@ -60,13 +44,14 @@ parameter is useful if you want to rename a variable for instance.`, }, old_string: { type: "string", - description: "The text to replace", + description: + "The text to replace - must be exact including whitespace/indentation", required: true, }, new_string: { type: "string", description: - "The text to replace it with (must be different from old_string)", + "The text to replace it with (MUST be different from old_string)", required: true, }, replace_all: { @@ -82,18 +67,12 @@ parameter is useful if you want to rename a variable for instance.`, new_string, replace_all = false, } = args as EditArgs; - throwIfFileIsSecurityConcern(file_path); - // Check if file has been read - if (!readFilesSet.has(file_path)) { - throw new Error( - `You must use the Read tool to read ${file_path} before editing it.`, - ); - } // Validate arguments if (!file_path) { throw new Error("file_path is required"); } + if (!old_string) { throw new Error("old_string is required"); } @@ -104,13 +83,24 @@ parameter is useful if you want to rename a variable for instance.`, throw new Error("old_string and new_string must be different"); } + const resolvedPath = fs.realpathSync(file_path); + + // Check if file has been read + if (!readFilesSet.has(resolvedPath)) { + throw new Error( + `You must use the ${readFileTool.name} tool to read ${file_path} before editing it.`, + ); + } + + throwIfFileIsSecurityConcern(resolvedPath); + // Check if file exists - if (!fs.existsSync(file_path)) { + if (!fs.existsSync(resolvedPath)) { throw new Error(`File ${file_path} does not exist`); } // Read current file content - const oldContent = fs.readFileSync(file_path, "utf-8"); + const oldContent = fs.readFileSync(resolvedPath, "utf-8"); // Check if old_string exists in the file if (!oldContent.includes(old_string)) { @@ -134,11 +124,11 @@ parameter is useful if you want to rename a variable for instance.`, } // Generate diff for preview - const diff = generateDiff(oldContent, newContent, file_path); + const diff = generateDiff(oldContent, newContent, resolvedPath); return { args: { - file_path, + resolvedPath, newContent, oldContent, }, @@ -155,19 +145,19 @@ parameter is useful if you want to rename a variable for instance.`, }; }, run: async (args: { - file_path: string; + resolvedPath: string; newContent: string; oldContent: string; }) => { try { - fs.writeFileSync(args.file_path, args.newContent, "utf-8"); + fs.writeFileSync(args.resolvedPath, args.newContent, "utf-8"); // Get lines for telemetry const { added, removed } = calculateLinesOfCodeDiff( args.oldContent, args.newContent, ); - const language = getLanguageFromFilePath(args.file_path); + const language = getLanguageFromFilePath(args.resolvedPath); if (added > 0) { telemetryService.recordLinesOfCodeModified("added", added, language); @@ -184,21 +174,16 @@ parameter is useful if you want to rename a variable for instance.`, const diff = generateDiff( args.oldContent, args.newContent, - args.file_path, + args.resolvedPath, ); - return `Successfully edited ${args.file_path}\nDiff:\n${diff}`; + return `Successfully edited ${args.resolvedPath}\nDiff:\n${diff}`; } catch (error) { throw new Error( - `Error: failed to edit ${args.file_path}: ${ + `Error: failed to edit ${args.resolvedPath}: ${ error instanceof Error ? error.message : String(error) }`, ); } }, }; - -// Function to mark a file as read (to be called from the read tool) -export function markFileAsRead(filePath: string) { - readFilesSet.add(filePath); -} diff --git a/extensions/cli/src/tools/multiEdit.test.ts b/extensions/cli/src/tools/multiEdit.test.ts index 408084652..597cab767 100644 --- a/extensions/cli/src/tools/multiEdit.test.ts +++ b/extensions/cli/src/tools/multiEdit.test.ts @@ -1,9 +1,10 @@ import * as fs from "fs"; import * as path from "path"; -import { describe, it, expect, beforeEach, afterEach, vi } from "vitest"; +import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; -import { multiEditTool, markFileAsRead } from "./multiEdit.js"; +import { multiEditTool } from "./multiEdit.js"; +import { markFileAsRead } from "./readFile.js"; // Mock the dependencies vi.mock("../telemetry/telemetryService.js"); @@ -22,6 +23,7 @@ vi.mock("fs", async () => { readFileSync: vi.fn(), writeFileSync: vi.fn(), unlinkSync: vi.fn(), + realpathSync: vi.fn(), }; }); @@ -35,6 +37,7 @@ describe("multiEditTool", () => { vi.mocked(fs.existsSync).mockReturnValue(true); vi.mocked(fs.readFileSync).mockReturnValue(originalContent); vi.mocked(fs.writeFileSync).mockImplementation(() => {}); + vi.mocked(fs.realpathSync).mockImplementation((path) => path.toString()); }); afterEach(() => { diff --git a/extensions/cli/src/tools/multiEdit.ts b/extensions/cli/src/tools/multiEdit.ts index b0ec1cb26..2164c6742 100644 --- a/extensions/cli/src/tools/multiEdit.ts +++ b/extensions/cli/src/tools/multiEdit.ts @@ -9,12 +9,11 @@ import { getLanguageFromFilePath, } from "../telemetry/utils.js"; -import { markFileAsRead, readFilesSet } from "./edit.js"; +import { editTool } from "./edit.js"; +import { readFilesSet, readFileTool } from "./readFile.js"; import { Tool } from "./types.js"; import { generateDiff } from "./writeFile.js"; -export { markFileAsRead }; - export interface EditOperation { old_string: string; new_string: string; @@ -26,15 +25,10 @@ export interface MultiEditArgs { edits: EditOperation[]; } -// Function to check if file has been read (shared with edit tool) -function hasFileBeenRead(filePath: string): boolean { - return readFilesSet.has(filePath); -} - // Helper functions for multiEdit validation function validateMultiEditArgs(args: any): { original_path: string; - file_path: string; + resolved_path: string; edits: EditOperation[]; } { const { file_path, edits } = args as MultiEditArgs; @@ -53,7 +47,9 @@ function validateMultiEditArgs(args: any): { ? file_path : path.resolve(process.cwd(), file_path); - return { original_path: file_path, file_path: absolutePath, edits }; + const resolvedPath = fs.realpathSync(absolutePath); + + return { original_path: file_path, resolved_path: resolvedPath, edits }; } function validateEdits(edits: EditOperation[]): void { @@ -74,26 +70,25 @@ function validateEdits(edits: EditOperation[]): void { } function validateFileAccess( - original_path: string, - file_path: string, + resolvedPath: string, isCreatingNewFile: boolean, ): void { if (isCreatingNewFile) { // For new file creation, check if parent directory exists - const parentDir = path.dirname(file_path); + const parentDir = path.dirname(resolvedPath); if (parentDir && !fs.existsSync(parentDir)) { throw new Error(`Parent directory does not exist: ${parentDir}`); } } else { // For existing files, check if file has been read // Check with the original path first, then with absolute path - if (!hasFileBeenRead(original_path) && !hasFileBeenRead(file_path)) { + if (!readFilesSet.has(resolvedPath)) { throw new Error( - `You must use the Read tool to read ${original_path} before editing it.`, + `You must use the ${readFileTool.name} tool to read ${resolvedPath} before editing it.`, ); } - if (!fs.existsSync(file_path)) { - throw new Error(`File ${file_path} does not exist`); + if (!fs.existsSync(resolvedPath)) { + throw new Error(`File ${resolvedPath} does not exist`); } } } @@ -138,87 +133,42 @@ export const multiEditTool: Tool = { displayName: "MultiEdit", readonly: false, isBuiltIn: true, - description: `This is a tool for making multiple edits to a single file in one operation. It -is built on top of the Edit tool and allows you to perform multiple -find-and-replace operations efficiently. Prefer this tool over the Edit tool -when you need to make multiple edits to the same file. - - -Before using this tool: - - -1. Use the Read tool to understand the file's contents and context - -2. Verify the directory path is correct - - -To make multiple file edits, provide the following: - -1. file_path: The absolute path to the file to modify (must be absolute, not -relative) + 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. +Prefer this tool over the ${editTool.name} tool when you need to make multiple edits to the same file. +To make multiple edits to a file, provide the following: +1. file_path: The absolute path to the file to modify (must be absolute, not relative) 2. edits: An array of edit operations to perform, where each edit contains: - - old_string: The text to replace (must match the file contents exactly, including all whitespace and indentation) + - old_string: The text to replace (must match the file contents exactly, including all whitespace/indentation) - new_string: The edited text to replace the old_string - replace_all: Replace all occurences of old_string. This parameter is optional and defaults to false. IMPORTANT: - - All edits are applied in sequence, in the order they are provided - -- Each edit operates on the result of the previous edit - -- All edits must be valid for the operation to succeed - if any edit fails, -none will be applied - -- This tool is ideal when you need to make several changes to different parts -of the same file - -- For Jupyter notebooks (.ipynb files), use the NotebookEdit instead - +- Each edit operates on the result of the previous edit, so plan your edits carefully to avoid conflicts between sequential operations +- Edits are atomic - all edits must be valid for the operation to succeed - if any edit fails, none will be applied +- This tool is ideal when you need to make several changes to different parts of the same file CRITICAL REQUIREMENTS: - -1. All edits follow the same requirements as the single Edit tool - -2. The edits are atomic - either all succeed or none are applied - -3. Plan your edits carefully to avoid conflicts between sequential operations - - -WARNING: - -- The tool will fail if edits.old_string doesn't match the file contents -exactly (including whitespace) - -- The tool will fail if edits.old_string and edits.new_string are the same - -- Since edits are applied in sequence, ensure that earlier edits don't affect -the text that later edits are trying to find - - -When making edits: - +1. ALWAYS use the ${readFileTool.name} tool just before making edits, to understand the file's up-to-date contents and context +2. When making edits: - Ensure all edits result in idiomatic, correct code - - Do not leave the code in a broken state - - Always use absolute file paths (starting with /) - -- Only use emojis if the user explicitly requests it. Avoid adding emojis to -files unless asked. - -- Use replace_all for replacing and renaming strings across the file. This -parameter is useful if you want to rename a variable for instance. - +- Only use emojis if the user explicitly requests it. Avoid adding emojis to files unless asked. +- Use replace_all for replacing and renaming strings across the file. This parameter is useful if you want to rename a variable for instance. If you want to create a new file, use: - -- A new file path, including dir name if needed - +- A new file path, including new directory if needed - First edit: empty old_string and the new file's contents as new_string +- Subsequent edits: normal edit operations on the created content +- ALWAYS prefer editing existing files in the codebase. NEVER write new files unless explicitly required -- Subsequent edits: normal edit operations on the created content`, +WARNINGS: +- If earlier edits affect the text that later edits are trying to find, files can become mangled +- The tool will fail if edits.old_string doesn't match the file contents exactly (including whitespace) +- The tool will fail if edits.old_string and edits.new_string are the same - they MUST be different +- The tool will fail if you have not used the ${readFileTool.name} tool to read the file in this session`, parameters: { file_path: { type: "string", @@ -237,9 +187,9 @@ If you want to create a new file, use: }, preprocess: async (args) => { // Validate and extract arguments - const { original_path, file_path, edits } = validateMultiEditArgs(args); + const { resolved_path, edits } = validateMultiEditArgs(args); - throwIfFileIsSecurityConcern(file_path); + throwIfFileIsSecurityConcern(resolved_path); // Validate each edit operation validateEdits(edits); @@ -248,12 +198,12 @@ If you want to create a new file, use: const isCreatingNewFile = edits[0].old_string === ""; // Validate file access - validateFileAccess(original_path, file_path, isCreatingNewFile); + validateFileAccess(resolved_path, isCreatingNewFile); // Read current file content (or start with empty for new files) let currentContent = ""; if (!isCreatingNewFile) { - currentContent = fs.readFileSync(file_path, "utf-8"); + currentContent = fs.readFileSync(resolved_path, "utf-8"); } const originalContent = currentContent; @@ -266,11 +216,11 @@ If you want to create a new file, use: } // Generate diff for preview - const diff = generateDiff(originalContent, newContent, file_path); + const diff = generateDiff(originalContent, newContent, resolved_path); return { args: { - file_path, + file_path: resolved_path, newContent, originalContent, isCreatingNewFile, @@ -279,7 +229,7 @@ If you want to create a new file, use: preview: [ { type: "text", - content: `Will apply ${edits.length} edit${edits.length === 1 ? "" : "s"} to ${isCreatingNewFile ? "create" : "modify"} ${file_path}:`, + content: `Will apply ${edits.length} edit${edits.length === 1 ? "" : "s"} to ${isCreatingNewFile ? "create" : "modify"} ${resolved_path}:`, }, { type: "diff", diff --git a/extensions/cli/src/tools/readFile.ts b/extensions/cli/src/tools/readFile.ts index bca811696..9f270ae30 100644 --- a/extensions/cli/src/tools/readFile.ts +++ b/extensions/cli/src/tools/readFile.ts @@ -2,10 +2,15 @@ import * as fs from "fs"; import { throwIfFileIsSecurityConcern } from "core/indexing/ignore.js"; -import { markFileAsRead } from "./edit.js"; import { formatToolArgument } from "./formatters.js"; import { Tool } from "./types.js"; +// Track files that have been read in the current session +export const readFilesSet = new Set(); +export function markFileAsRead(filePath: string) { + readFilesSet.add(filePath); +} + export const readFileTool: Tool = { name: "Read", displayName: "Read", @@ -20,13 +25,17 @@ export const readFileTool: Tool = { readonly: true, isBuiltIn: true, preprocess: async (args) => { - throwIfFileIsSecurityConcern(args.filepath); + let { filepath } = args; + if (filepath.startsWith("./")) { + filepath = filepath.slice(2); + } + throwIfFileIsSecurityConcern(filepath); return { args, preview: [ { type: "text", - content: `Will read ${formatToolArgument(args.filepath)}`, + content: `Will read ${formatToolArgument(filepath)}`, }, ], }; @@ -41,9 +50,10 @@ export const readFileTool: Tool = { if (!fs.existsSync(filepath)) { return `Error: File does not exist: ${filepath}`; } - const content = fs.readFileSync(filepath, "utf-8"); + const realPath = fs.realpathSync(filepath); + const content = fs.readFileSync(realPath, "utf-8"); // Mark this file as read for the edit tool - markFileAsRead(filepath); + markFileAsRead(realPath); const lines = content.split("\n"); if (lines.length > 5000) { diff --git a/extensions/cli/src/ui/UserInput.tsx b/extensions/cli/src/ui/UserInput.tsx index e0a60dac6..910257523 100644 --- a/extensions/cli/src/ui/UserInput.tsx +++ b/extensions/cli/src/ui/UserInput.tsx @@ -801,7 +801,7 @@ const UserInput: React.FC = ({ color={showBashMode ? "yellow" : isRemoteMode ? "cyan" : "blue"} bold > - {showBashMode ? "$" : isRemoteMode ? "◉" : "●"} + {showBashMode ? "$ " : isRemoteMode ? "◉ " : "● "} {renderInputText()} diff --git a/extensions/cli/src/ui/components/StaticChatContent.tsx b/extensions/cli/src/ui/components/StaticChatContent.tsx index 0261b14d8..4c1c9f133 100644 --- a/extensions/cli/src/ui/components/StaticChatContent.tsx +++ b/extensions/cli/src/ui/components/StaticChatContent.tsx @@ -74,14 +74,12 @@ export const StaticChatContent: React.FC = ({ }, [chatHistory]); // Split chat history into stable and pending items - // Only put items in pending if they contain tool calls with "calling" status - // Everything else goes into static content + // The last two items may have pending tool calls const { staticItems, pendingItems } = React.useMemo(() => { - const items: React.ReactElement[] = []; - // Add intro message as first item if it should be shown + const staticItems: React.ReactElement[] = []; if (showIntroMessage) { - items.push( + staticItems.push( = ({ ); } - // Helper function to check if an item has pending tool calls - const hasPendingToolCalls = (item: ChatHistoryItem): boolean => { - return !!( - item.toolCallStates && - item.toolCallStates.some( - (toolState) => - toolState.status === "calling" || - toolState.status === "generating" || - toolState.status === "generated", - ) - ); - }; - - // Find the first message with pending tool calls from the end - let pendingStartIndex = filteredChatHistory.length; - for (let i = filteredChatHistory.length - 1; i >= 0; i--) { - if (hasPendingToolCalls(filteredChatHistory[i])) { - pendingStartIndex = i; - // If there's a message after this one, include it too as it might be related - if (i + 1 < filteredChatHistory.length) { - // Keep the pending start index as is, so we include the next message - } - break; - } - } - - const stableHistory = filteredChatHistory.slice(0, pendingStartIndex); - const pendingHistory = filteredChatHistory.slice(pendingStartIndex); + const PENDING_ITEMS_COUNT = 2; + const stableCount = Math.max( + 0, + filteredChatHistory.length - PENDING_ITEMS_COUNT, + ); + const stableHistory = filteredChatHistory.slice(0, stableCount); + const pendingHistory = filteredChatHistory.slice(stableCount); // Add stable messages to static items stableHistory.forEach((item, index) => { - items.push(renderMessage(item, index)); + staticItems.push(renderMessage(item, index)); }); // Pending items will be rendered dynamically outside Static - const pendingElements = pendingHistory.map((item, index) => - renderMessage(item, pendingStartIndex + index), + const pendingItems = pendingHistory.map((item, index) => + renderMessage(item, stableCount + index), ); return { - staticItems: items, - pendingItems: pendingElements, + staticItems, + pendingItems, }; }, [ showIntroMessage, diff --git a/extensions/cli/src/ui/hooks/useChat.clear.test.ts b/extensions/cli/src/ui/hooks/useChat.clear.test.ts index 1c0a7341e..7056a62b6 100644 --- a/extensions/cli/src/ui/hooks/useChat.clear.test.ts +++ b/extensions/cli/src/ui/hooks/useChat.clear.test.ts @@ -15,7 +15,6 @@ vi.mock("../../session.js", () => ({ describe("useChat clear command", () => { let mockSetChatHistory: ReturnType; - let mockExit: ReturnType; let mockOnClear: ReturnType; beforeEach(() => { @@ -23,7 +22,6 @@ describe("useChat clear command", () => { vi.clearAllMocks(); mockSetChatHistory = vi.fn(); - mockExit = vi.fn(); mockOnClear = vi.fn(); }); @@ -44,7 +42,6 @@ describe("useChat clear command", () => { result, chatHistory, setChatHistory: mockSetChatHistory, - exit: mockExit, onShowConfigSelector: vi.fn(), onClear: mockOnClear, }); @@ -91,7 +88,6 @@ describe("useChat clear command", () => { result, chatHistory, setChatHistory: mockSetChatHistory, - exit: mockExit, onShowConfigSelector: vi.fn(), // onClear is not provided }); @@ -127,7 +123,6 @@ describe("useChat clear command", () => { result, chatHistory, setChatHistory: mockSetChatHistory, - exit: mockExit, onShowConfigSelector: vi.fn(), onClear: mockOnClear, }); @@ -149,7 +144,6 @@ describe("useChat clear command", () => { result, chatHistory, setChatHistory: mockSetChatHistory, - exit: mockExit, onShowConfigSelector: vi.fn(), onClear: mockOnClear, }); diff --git a/extensions/cli/src/ui/hooks/useChat.helpers.ts b/extensions/cli/src/ui/hooks/useChat.helpers.ts index 17aa450fb..1c289e5c7 100644 --- a/extensions/cli/src/ui/hooks/useChat.helpers.ts +++ b/extensions/cli/src/ui/hooks/useChat.helpers.ts @@ -46,7 +46,6 @@ interface ProcessSlashCommandResultOptions { result: SlashCommandResult; chatHistory: ChatHistoryItem[]; setChatHistory: React.Dispatch>; - exit: () => void; onShowConfigSelector: () => void; onShowModelSelector?: () => void; onShowMCPSelector?: () => void; @@ -61,7 +60,6 @@ export function processSlashCommandResult({ result, chatHistory, setChatHistory, - exit, onShowConfigSelector, onShowModelSelector, onShowMCPSelector, @@ -69,8 +67,7 @@ export function processSlashCommandResult({ onClear, }: ProcessSlashCommandResultOptions): string | null { if (result.exit) { - exit(); - return null; + process.exit(0); } if (result.openMcpSelector) { diff --git a/extensions/cli/src/ui/hooks/useChat.ts b/extensions/cli/src/ui/hooks/useChat.ts index c2f1e0130..9b9cc5871 100644 --- a/extensions/cli/src/ui/hooks/useChat.ts +++ b/extensions/cli/src/ui/hooks/useChat.ts @@ -370,7 +370,6 @@ export function useChat({ result: commandResult, chatHistory, setChatHistory, - exit, onShowConfigSelector, onShowModelSelector, onShowMCPSelector, diff --git a/extensions/cli/src/ui/hooks/useUserInput.ts b/extensions/cli/src/ui/hooks/useUserInput.ts index b8a48cd04..c5945bbf3 100644 --- a/extensions/cli/src/ui/hooks/useUserInput.ts +++ b/extensions/cli/src/ui/hooks/useUserInput.ts @@ -76,7 +76,7 @@ export function handleControlKeys(options: ControlKeysOptions): boolean { // Handle Ctrl+D to exit if (key.ctrl && input === "d") { exit(); - return true; + process.exit(0); } // Handle Ctrl+L to refresh screen (clear terminal artifacts) diff --git a/extensions/cli/src/ui/index.ts b/extensions/cli/src/ui/index.ts index e9333155f..9f5a3ec9e 100644 --- a/extensions/cli/src/ui/index.ts +++ b/extensions/cli/src/ui/index.ts @@ -1,7 +1,7 @@ import { render, RenderOptions } from "ink"; import React from "react"; -import { setTUIUnmount } from "../index.js"; +import { enableSigintHandler, setTUIUnmount } from "../index.js"; import { PermissionMode } from "../permissions/types.js"; import { initializeServices } from "../services/index.js"; import { ServiceContainerProvider } from "../services/ServiceContainerContext.js"; @@ -79,6 +79,9 @@ export async function startTUIChat( // Register unmount function with main process for two-stage Ctrl+C exit setTUIUnmount(unmount); + // Enable the two-stage SIGINT handler for TUI mode + enableSigintHandler(); + return { unmount }; } diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/browser/ContinueBrowser.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/browser/ContinueBrowser.kt index 00c82fe29..5b4f862c0 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/browser/ContinueBrowser.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/browser/ContinueBrowser.kt @@ -1,28 +1,29 @@ package com.github.continuedev.continueintellijextension.browser import com.github.continuedev.continueintellijextension.constants.MessageTypes -import com.github.continuedev.continueintellijextension.services.ContinueExtensionSettings import com.github.continuedev.continueintellijextension.services.ContinuePluginService import com.github.continuedev.continueintellijextension.utils.uuid import com.google.gson.Gson +import com.intellij.openapi.Disposable import com.intellij.openapi.components.service import com.intellij.openapi.diagnostic.Logger import com.intellij.openapi.project.Project +import com.intellij.openapi.util.Disposer import com.intellij.ui.jcef.* import org.cef.CefApp import org.cef.browser.CefBrowser import org.cef.handler.CefLoadHandlerAdapter import javax.swing.JComponent -class ContinueBrowser(private val project: Project) { +class ContinueBrowser(private val project: Project): Disposable { private val log = Logger.getInstance(ContinueBrowser::class.java.simpleName) private val browser: JBCefBrowser = JBCefBrowser.createBuilder().setOffScreenRendering(true).build() + private val myJSQueryOpenInBrowser = JBCefJSQuery.create(browser as JBCefBrowserBase) init { CefApp.getInstance().registerSchemeHandlerFactory("http", "continue", CustomSchemeHandlerFactory()) browser.jbCefClient.setProperty(JBCefClient.Properties.JS_QUERY_POOL_SIZE, 200) - val myJSQueryOpenInBrowser = JBCefJSQuery.create(browser as JBCefBrowserBase) myJSQueryOpenInBrowser.addHandler { msg: String? -> val json = Gson().fromJson(msg, BrowserMessage::class.java) val messageType = json.messageType @@ -100,6 +101,11 @@ class ContinueBrowser(private val project: Project) { browser.cefBrowser.executeJavaScript(script, getGuiUrl(), 0) } + override fun dispose() { + Disposer.dispose(myJSQueryOpenInBrowser) + Disposer.dispose(browser) + } + // todo: remove and use types.Message private data class BrowserMessage( val messageType: String, diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/browser/ContinueBrowserService.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/browser/ContinueBrowserService.kt index 2bc7334a5..155d9ffe8 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/browser/ContinueBrowserService.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/browser/ContinueBrowserService.kt @@ -1,22 +1,32 @@ package com.github.continuedev.continueintellijextension.browser +import com.intellij.openapi.Disposable import com.intellij.openapi.components.Service import com.intellij.openapi.components.service import com.intellij.openapi.project.Project +import com.intellij.openapi.util.Disposer import com.intellij.ui.jcef.JBCefApp @Service(Service.Level.PROJECT) -class ContinueBrowserService(project: Project) { +class ContinueBrowserService(project: Project): Disposable { private val browser: ContinueBrowser? = if (JBCefApp.isSupported()) ContinueBrowser(project) else null + override fun dispose() { + if (browser != null) + Disposer.dispose(browser) + } + companion object { - fun Project.getBrowser() = - service().browser + fun Project.getBrowser(): ContinueBrowser? { + if (isDisposed) + return null + return service().browser + } } } diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt index f5a9a9000..15d131f92 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt @@ -37,7 +37,6 @@ class MessageTypes { "applyToFile", "getControlPlaneSessionInfo", "logoutOfControlPlane", - "getTerminalContents", "showToast", "openUrl", "isWorkspaceRemote", diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index d876c83d8..a0fa56130 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "1.3.2", + "version": "1.3.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "1.3.2", + "version": "1.3.3", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "file:../../packages/config-types", @@ -63,7 +63,7 @@ "devDependencies": { "@biomejs/biome": "1.6.4", "@nestjs/common": "^11.0.16", - "@openapitools/openapi-generator-cli": "^2.20.0", + "@openapitools/openapi-generator-cli": "^2.23.1", "@types/chai": "^5.0.1", "@types/cors": "^2.8.17", "@types/express": "^4.17.21", @@ -108,6 +108,7 @@ "@continuedev/fetch": "file:../packages/fetch", "@continuedev/llm-info": "file:../packages/llm-info", "@continuedev/openai-adapters": "file:../packages/openai-adapters", + "@continuedev/terminal-security": "file:../packages/terminal-security", "@modelcontextprotocol/sdk": "^1.12.0", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.1.1", @@ -745,6 +746,17 @@ "node": ">=14.21.3" } }, + "node_modules/@borewit/text-codec": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@borewit/text-codec/-/text-codec-0.1.1.tgz", + "integrity": "sha512-5L/uBxmjaCIX5h8Z+uu+kA9BQLkc/Wl06UGR5ajNRxu+/XjonB5i8JpgFMrPj3LXTCPA0pv8yxUvbUi+QthGGA==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, "node_modules/@continuedev/config-types": { "resolved": "../../packages/config-types", "link": true @@ -1303,6 +1315,29 @@ "deprecated": "Use @eslint/object-schema instead", "dev": true }, + "node_modules/@isaacs/balanced-match": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/balanced-match/-/balanced-match-4.0.1.tgz", + "integrity": "sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/@isaacs/brace-expansion": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.0.tgz", + "integrity": "sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@isaacs/balanced-match": "^4.0.1" + }, + "engines": { + "node": "20 || >=22" + } + }, "node_modules/@isaacs/cliui": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", @@ -1527,9 +1562,9 @@ "integrity": "sha512-/cPZD907UNz55yrc/ud4wDgQKtU1TvkD9jeqZWG6J4IMmZkp6zgjkQcKA8UvpkZlcpPHvc8J17sGzLFbP/LUYg==" }, "node_modules/@nestjs/axios": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@nestjs/axios/-/axios-4.0.0.tgz", - "integrity": "sha512-1cB+Jyltu/uUPNQrpUimRHEQHrnQrpLzVj6dU3dgn6iDDDdahr10TgHFGTmw5VuJ9GzKZsCLDL78VSwJAs/9JQ==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@nestjs/axios/-/axios-4.0.1.tgz", + "integrity": "sha512-68pFJgu+/AZbWkGu65Z3r55bTsCPlgyKaV4BSG8yUAD72q1PPuyVRgUwFv6BxdnibTUHlyxm06FmYWNC+bjN7A==", "dev": true, "license": "MIT", "peerDependencies": { @@ -1539,13 +1574,13 @@ } }, "node_modules/@nestjs/common": { - "version": "11.1.1", - "resolved": "https://registry.npmjs.org/@nestjs/common/-/common-11.1.1.tgz", - "integrity": "sha512-crzp+1qeZ5EGL0nFTPy9NrVMAaUWewV5AwtQyv6SQ9yQPXwRl9W9hm1pt0nAtUu5QbYMbSuo7lYcF81EjM+nCA==", + "version": "11.1.6", + "resolved": "https://registry.npmjs.org/@nestjs/common/-/common-11.1.6.tgz", + "integrity": "sha512-krKwLLcFmeuKDqngG2N/RuZHCs2ycsKcxWIDgcm7i1lf3sQ0iG03ci+DsP/r3FcT/eJDFsIHnKtNta2LIi7PzQ==", "dev": true, "license": "MIT", "dependencies": { - "file-type": "20.5.0", + "file-type": "21.0.0", "iterare": "1.2.1", "load-esm": "1.0.2", "tslib": "2.8.1", @@ -1571,9 +1606,9 @@ } }, "node_modules/@nestjs/core": { - "version": "11.1.1", - "resolved": "https://registry.npmjs.org/@nestjs/core/-/core-11.1.1.tgz", - "integrity": "sha512-UFoUAgLKFT+RwHTANJdr0dF7p0qS9QjkaUPjg8aafnjM/qxxxrUVDB49nVvyMlk+Hr1+vvcNaOHbWWQBxoZcHA==", + "version": "11.1.6", + "resolved": "https://registry.npmjs.org/@nestjs/core/-/core-11.1.6.tgz", + "integrity": "sha512-siWX7UDgErisW18VTeJA+x+/tpNZrJewjTBsRPF3JVxuWRuAB1kRoiJcxHgln8Lb5UY9NdvklITR84DUEXD0Cg==", "dev": true, "hasInstallScript": true, "license": "MIT", @@ -1804,27 +1839,26 @@ } }, "node_modules/@openapitools/openapi-generator-cli": { - "version": "2.20.2", - "resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.20.2.tgz", - "integrity": "sha512-dNFwQcQu6+rmEWSJj4KUx468+p6Co7nfpVgi5QEfVhzKj7wBytz9GEhCN2qmVgtg3ZX8H6nxbXI8cjh7hAxAqg==", + "version": "2.23.1", + "resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.23.1.tgz", + "integrity": "sha512-Kd5EZqzbcIXf6KRlpUrheHMzQNRHsJWzAGrm4ncWCNhnQl+Mh6TsFcqq+hIetgiFCknWBH6cZ2f37SxPxaon4w==", "dev": true, "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { - "@nestjs/axios": "4.0.0", - "@nestjs/common": "11.1.1", - "@nestjs/core": "11.1.1", + "@nestjs/axios": "4.0.1", + "@nestjs/common": "11.1.6", + "@nestjs/core": "11.1.6", "@nuxtjs/opencollective": "0.3.2", - "axios": "1.9.0", + "axios": "1.11.0", "chalk": "4.1.2", "commander": "8.3.0", "compare-versions": "4.1.4", - "concurrently": "6.5.1", + "concurrently": "9.2.1", "console.table": "0.10.0", - "fs-extra": "11.3.0", - "glob": "9.3.5", - "inquirer": "8.2.6", - "lodash": "4.17.21", + "fs-extra": "11.3.1", + "glob": "11.0.3", + "inquirer": "8.2.7", "proxy-agent": "6.5.0", "reflect-metadata": "0.2.2", "rxjs": "7.8.2", @@ -1841,19 +1875,10 @@ "url": "https://opencollective.com/openapi_generator" } }, - "node_modules/@openapitools/openapi-generator-cli/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, "node_modules/@openapitools/openapi-generator-cli/node_modules/fs-extra": { - "version": "11.3.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.0.tgz", - "integrity": "sha512-Z4XaCL6dUDHfP/jT25jJKMmtxvuwbkrD1vNSMFlo9lNLY2c5FHYSQgHPRZUjAB26TpDEoW9HCOgplrdbaPV/ew==", + "version": "11.3.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.1.tgz", + "integrity": "sha512-eXvGGwZ5CL17ZSwHWd3bbgk7UUpF6IFHtP57NYYakPvHOs8GDgDe5KJI36jIJzDkJ6eJjuzRA8eBQb6SkKue0g==", "dev": true, "license": "MIT", "dependencies": { @@ -1866,45 +1891,86 @@ } }, "node_modules/@openapitools/openapi-generator-cli/node_modules/glob": { - "version": "9.3.5", - "resolved": "https://registry.npmjs.org/glob/-/glob-9.3.5.tgz", - "integrity": "sha512-e1LleDykUz2Iu+MTYdkSsuWX8lvAjAcs0Xef0lNIu0S2wOAzuTxCJtcd9S3cijlwYF18EsU3rzb8jPVobxDh9Q==", + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.3.tgz", + "integrity": "sha512-2Nim7dha1KVkaiF4q6Dj+ngPPMdfvLJEOpZk/jKiUAkqKebpGAWQXAq9z1xu9HKu5lWfqw/FASuccEjyznjPaA==", "dev": true, + "license": "ISC", "dependencies": { - "fs.realpath": "^1.0.0", - "minimatch": "^8.0.2", - "minipass": "^4.2.4", - "path-scurry": "^1.6.1" + "foreground-child": "^3.3.1", + "jackspeak": "^4.1.1", + "minimatch": "^10.0.3", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^2.0.0" + }, + "bin": { + "glob": "dist/esm/bin.mjs" }, "engines": { - "node": ">=16 || 14 >=14.17" + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/jackspeak": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.1.1.tgz", + "integrity": "sha512-zptv57P3GpL+O0I7VdMJNBZCu+BPHVQUk55Ft8/QCJjTVxrnJHuVuX/0Bl2A6/+2oyR/ZMEuFKwmzqqZ/U5nPQ==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": "20 || >=22" }, "funding": { "url": "https://github.com/sponsors/isaacs" } }, "node_modules/@openapitools/openapi-generator-cli/node_modules/minimatch": { - "version": "8.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-8.0.4.tgz", - "integrity": "sha512-W0Wvr9HyFXZRGIDgCicunpQ299OKXs9RgZfaukz4qAW/pJhcpUfupc9c+OObPOFueNy8VSrZgEmDtk6Kh4WzDA==", + "version": "10.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.3.tgz", + "integrity": "sha512-IPZ167aShDZZUMdRk66cyQAW3qr0WzbHkPdMYa8bzZhlHhO3jALbKdxcaak7W9FfT2rZNpQuUu4Od7ILEpXSaw==", "dev": true, + "license": "ISC", "dependencies": { - "brace-expansion": "^2.0.1" + "@isaacs/brace-expansion": "^5.0.0" }, "engines": { - "node": ">=16 || 14 >=14.17" + "node": "20 || >=22" }, "funding": { "url": "https://github.com/sponsors/isaacs" } }, "node_modules/@openapitools/openapi-generator-cli/node_modules/minipass": { - "version": "4.2.8", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.2.8.tgz", - "integrity": "sha512-fNzuVyifolSLFL4NzpF+wEF4qrgqaaKX0haXPQEdQ7NKAN+WecoKMHV09YcuL/DHxrUsYQOK3MiuDf7Ip2OXfQ==", + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", "dev": true, + "license": "ISC", "engines": { - "node": ">=8" + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/path-scurry": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.0.tgz", + "integrity": "sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, "node_modules/@pkgjs/parseargs": { @@ -3496,6 +3562,7 @@ "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", "dev": true, + "license": "MIT", "dependencies": { "type-fest": "^0.21.3" }, @@ -3511,6 +3578,7 @@ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", "dev": true, + "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=10" }, @@ -3730,13 +3798,13 @@ "integrity": "sha512-lHe62zvbTB5eEABUVi/AwVh0ZKY9rMMDhmm+eeyuuUQbQ3+J+fONVQOZyj+DdrvD4BY33uYniyRJ4UJIaSKAfw==" }, "node_modules/axios": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.9.0.tgz", - "integrity": "sha512-re4CqKTJaURpzbLHtIi6XpDv20/CnpXOtjRY5/CU32L8gU8ek9UIivcfvSWvmKEngmVbrUtPpdDwWDWL7DNHvg==", + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.11.0.tgz", + "integrity": "sha512-1Lx3WLFQWm3ooKDYZD1eXmoGO9fxYQjrycfHFC8P0sCfQVXyROp0p9PFWBehewBOdCwHc+f/b8I0fMto5eSfwA==", "license": "MIT", "dependencies": { "follow-redirects": "^1.15.6", - "form-data": "^4.0.0", + "form-data": "^4.0.4", "proxy-from-env": "^1.1.0" } }, @@ -4174,6 +4242,19 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/call-me-maybe": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.2.tgz", @@ -4280,10 +4361,11 @@ } }, "node_modules/chardet": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", - "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", - "dev": true + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/chardet/-/chardet-2.1.0.tgz", + "integrity": "sha512-bNFETTG/pM5ryzQ9Ad0lJOTa6HWD/YsScAR3EnCPZRPlQh77JocYktSHOUHelyhm8IARL+o4c4F1bP5KVOjiRA==", + "dev": true, + "license": "MIT" }, "node_modules/check-error": { "version": "1.0.3", @@ -4455,6 +4537,7 @@ "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz", "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==", "dev": true, + "license": "ISC", "engines": { "node": ">= 10" } @@ -4846,69 +4929,28 @@ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" }, "node_modules/concurrently": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/concurrently/-/concurrently-6.5.1.tgz", - "integrity": "sha512-FlSwNpGjWQfRwPLXvJ/OgysbBxPkWpiVjy1042b0U7on7S7qwwMIILRj7WTN1mTgqa582bG6NFuScOoh6Zgdag==", + "version": "9.2.1", + "resolved": "https://registry.npmjs.org/concurrently/-/concurrently-9.2.1.tgz", + "integrity": "sha512-fsfrO0MxV64Znoy8/l1vVIjjHa29SZyyqPgQBwhiDcaW8wJc2W3XWVOGx4M3oJBnv/zdUZIIp1gDeS98GzP8Ng==", "dev": true, + "license": "MIT", "dependencies": { - "chalk": "^4.1.0", - "date-fns": "^2.16.1", - "lodash": "^4.17.21", - "rxjs": "^6.6.3", - "spawn-command": "^0.0.2-1", - "supports-color": "^8.1.0", - "tree-kill": "^1.2.2", - "yargs": "^16.2.0" + "chalk": "4.1.2", + "rxjs": "7.8.2", + "shell-quote": "1.8.3", + "supports-color": "8.1.1", + "tree-kill": "1.2.2", + "yargs": "17.7.2" }, "bin": { - "concurrently": "bin/concurrently.js" + "conc": "dist/bin/concurrently.js", + "concurrently": "dist/bin/concurrently.js" }, "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/concurrently/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/concurrently/node_modules/cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "dev": true, - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, - "node_modules/concurrently/node_modules/rxjs": { - "version": "6.6.7", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", - "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", - "dev": true, - "dependencies": { - "tslib": "^1.9.0" + "node": ">=18" }, - "engines": { - "npm": ">=2.0.0" - } - }, - "node_modules/concurrently/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" + "funding": { + "url": "https://github.com/open-cli-tools/concurrently?sponsor=1" } }, "node_modules/concurrently/node_modules/supports-color": { @@ -4916,6 +4958,7 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -4926,47 +4969,6 @@ "url": "https://github.com/chalk/supports-color?sponsor=1" } }, - "node_modules/concurrently/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - }, - "node_modules/concurrently/node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/concurrently/node_modules/yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", - "dev": true, - "dependencies": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/consola": { "version": "3.4.2", "resolved": "https://registry.npmjs.org/consola/-/consola-3.4.2.tgz", @@ -5057,9 +5059,10 @@ } }, "node_modules/cross-spawn": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.5.tgz", - "integrity": "sha512-ZVJrKKYunU38/76t0RMOulHOnUcbU9GbpWKAOZ0mhjr7CX6FVrH+4FrAapSOekrgFQ3f/8gwMEuIft0aKq6Hug==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "license": "MIT", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -5168,22 +5171,6 @@ "node": ">=18" } }, - "node_modules/date-fns": { - "version": "2.30.0", - "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz", - "integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==", - "dev": true, - "dependencies": { - "@babel/runtime": "^7.21.0" - }, - "engines": { - "node": ">=0.11" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/date-fns" - } - }, "node_modules/dbinfoz": { "version": "0.14.0", "resolved": "https://registry.npmjs.org/dbinfoz/-/dbinfoz-0.14.0.tgz", @@ -5515,6 +5502,20 @@ "react": ">=16.12.0" } }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/duplexer2": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", @@ -5673,12 +5674,10 @@ "integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==" }, "node_modules/es-define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", - "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", - "dependencies": { - "get-intrinsic": "^1.2.4" - }, + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", "engines": { "node": ">= 0.4" } @@ -5697,6 +5696,33 @@ "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==", "license": "MIT" }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/es5-ext": { "version": "0.10.64", "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.64.tgz", @@ -6257,44 +6283,6 @@ "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" }, - "node_modules/external-editor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", - "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", - "dev": true, - "dependencies": { - "chardet": "^0.7.0", - "iconv-lite": "^0.4.24", - "tmp": "^0.0.33" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/external-editor/node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/external-editor/node_modules/tmp": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", - "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", - "dev": true, - "dependencies": { - "os-tmpdir": "~1.0.2" - }, - "engines": { - "node": ">=0.6.0" - } - }, "node_modules/extsprintf": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", @@ -6402,6 +6390,7 @@ "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", "dev": true, + "license": "MIT", "dependencies": { "escape-string-regexp": "^1.0.5" }, @@ -6417,6 +6406,7 @@ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.8.0" } @@ -6434,19 +6424,19 @@ } }, "node_modules/file-type": { - "version": "20.5.0", - "resolved": "https://registry.npmjs.org/file-type/-/file-type-20.5.0.tgz", - "integrity": "sha512-BfHZtG/l9iMm4Ecianu7P8HRD2tBHLtjXinm4X62XBOYzi7CYA7jyqfJzOvXHqzVrVPYqBo2/GvbARMaaJkKVg==", + "version": "21.0.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-21.0.0.tgz", + "integrity": "sha512-ek5xNX2YBYlXhiUXui3D/BXa3LdqPmoLJ7rqEx2bKJ7EAUEfmXgW0Das7Dc6Nr9MvqaOnIqiPV0mZk/r/UpNAg==", "dev": true, "license": "MIT", "dependencies": { - "@tokenizer/inflate": "^0.2.6", - "strtok3": "^10.2.0", + "@tokenizer/inflate": "^0.2.7", + "strtok3": "^10.2.2", "token-types": "^6.0.0", "uint8array-extras": "^1.4.0" }, "engines": { - "node": ">=18" + "node": ">=20" }, "funding": { "url": "https://github.com/sindresorhus/file-type?sponsor=1" @@ -6635,11 +6625,12 @@ } }, "node_modules/foreground-child": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0.tgz", - "integrity": "sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", + "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", + "license": "ISC", "dependencies": { - "cross-spawn": "^7.0.0", + "cross-spawn": "^7.0.6", "signal-exit": "^4.0.1" }, "engines": { @@ -6669,12 +6660,15 @@ } }, "node_modules/form-data": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz", - "integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz", + "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==", + "license": "MIT", "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", "mime-types": "^2.1.12" }, "engines": { @@ -6840,15 +6834,21 @@ } }, "node_modules/get-intrinsic": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", - "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "hasown": "^2.0.0" + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -6857,6 +6857,19 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/get-stdin": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-8.0.0.tgz", @@ -7003,11 +7016,12 @@ } }, "node_modules/gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "dependencies": { - "get-intrinsic": "^1.1.3" + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -7108,10 +7122,11 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/has-proto": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", - "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -7119,10 +7134,14 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, "engines": { "node": ">= 0.4" }, @@ -7509,16 +7528,17 @@ "integrity": "sha512-7NXolsK4CAS5+xvdj5OMMbI962hU/wvwoxk+LWR9Ek9bVtyuuYScDN6eS0rUm6TxApFpw7CX1o4uJzcd4AyD3Q==" }, "node_modules/inquirer": { - "version": "8.2.6", - "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.6.tgz", - "integrity": "sha512-M1WuAmb7pn9zdFRtQYk26ZBoY043Sse0wVDdk4Bppr+JOXyQYybdtvK+l9wUibhtjdjvtoiNy8tk+EgsYIUqKg==", + "version": "8.2.7", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.7.tgz", + "integrity": "sha512-UjOaSel/iddGZJ5xP/Eixh6dY1XghiBw4XK13rCCIJcJfyhhoul/7KhLLUGtebEj6GDYM6Vnx/mVsjx2L/mFIA==", "dev": true, + "license": "MIT", "dependencies": { + "@inquirer/external-editor": "^1.0.0", "ansi-escapes": "^4.2.1", "chalk": "^4.1.1", "cli-cursor": "^3.1.0", "cli-width": "^3.0.0", - "external-editor": "^3.0.3", "figures": "^3.0.0", "lodash": "^4.17.21", "mute-stream": "0.0.8", @@ -7534,11 +7554,46 @@ "node": ">=12.0.0" } }, + "node_modules/inquirer/node_modules/@inquirer/external-editor": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@inquirer/external-editor/-/external-editor-1.0.1.tgz", + "integrity": "sha512-Oau4yL24d2B5IL4ma4UpbQigkVhzPDXLoqy1ggK4gnHg/stmkffJE4oOXHXF3uz0UEpywG68KcyXsyYpA1Re/Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "chardet": "^2.1.0", + "iconv-lite": "^0.6.3" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/inquirer/node_modules/@types/node": { + "version": "24.3.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.3.1.tgz", + "integrity": "sha512-3vXmQDXy+woz+gnrTvuvNrPzekOi+Ds0ReMxw0LzBiK3a+1k0kQn9f2NWk+lgD4rJehFUmYy2gMhJ2ZI+7YP9g==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "undici-types": "~7.10.0" + } + }, "node_modules/inquirer/node_modules/ansi-regex": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -7548,6 +7603,7 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, + "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -7555,6 +7611,15 @@ "node": ">=8" } }, + "node_modules/inquirer/node_modules/undici-types": { + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.10.0.tgz", + "integrity": "sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true + }, "node_modules/ip-address": { "version": "9.0.5", "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz", @@ -8586,6 +8651,15 @@ "url": "https://github.com/fb55/entities?sponsor=1" } }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, "node_modules/mdast-util-definitions": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/mdast-util-definitions/-/mdast-util-definitions-5.1.2.tgz", @@ -10246,15 +10320,6 @@ "node": ">=8" } }, - "node_modules/os-tmpdir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/ovsx": { "version": "0.8.4", "resolved": "https://registry.npmjs.org/ovsx/-/ovsx-0.8.4.tgz", @@ -10596,20 +10661,6 @@ "node": "*" } }, - "node_modules/peek-readable": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/peek-readable/-/peek-readable-7.0.0.tgz", - "integrity": "sha512-nri2TO5JE3/mRryik9LlHFT53cgHfRK0Lt0BAZQXku/AW3E6XLt2GaY8siWi7dvW/m1z0ecn+J+bpDa9ZN3IsQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/Borewit" - } - }, "node_modules/pend": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", @@ -11799,6 +11850,7 @@ "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.12.0" } @@ -12082,6 +12134,19 @@ "node": ">=8" } }, + "node_modules/shell-quote": { + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.3.tgz", + "integrity": "sha512-ObmnIF4hXNg1BqhnHmgbDETF8dLPCggZWBjkQfhZpbszZnYur5DUljTcCHii5LC3J5E0yeO/1LIMyH+UvHQgyw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/side-channel": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", @@ -12259,12 +12324,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/spawn-command": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/spawn-command/-/spawn-command-0.0.2.tgz", - "integrity": "sha512-zC8zGoGkmc8J9ndvml8Xksr1Amk9qBujgbF0JAIWO7kXr43w0h/0GJNM/Vustixu+YE8N/MTrQ7N31FvHUACxQ==", - "dev": true - }, "node_modules/split2": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", @@ -12552,14 +12611,13 @@ "license": "MIT" }, "node_modules/strtok3": { - "version": "10.2.2", - "resolved": "https://registry.npmjs.org/strtok3/-/strtok3-10.2.2.tgz", - "integrity": "sha512-Xt18+h4s7Z8xyZ0tmBoRmzxcop97R4BAh+dXouUDCYn+Em+1P3qpkUfI5ueWLT8ynC5hZ+q4iPEmGG1urvQGBg==", + "version": "10.3.4", + "resolved": "https://registry.npmjs.org/strtok3/-/strtok3-10.3.4.tgz", + "integrity": "sha512-KIy5nylvC5le1OdaaoCJ07L+8iQzJHGH6pWDuzS+d07Cu7n1MZ2x26P8ZKIWfbK02+XIL8Mp4RkWeqdUCrDMfg==", "dev": true, "license": "MIT", "dependencies": { - "@tokenizer/token": "^0.3.0", - "peek-readable": "^7.0.0" + "@tokenizer/token": "^0.3.0" }, "engines": { "node": ">=18" @@ -13157,7 +13215,8 @@ "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/timers-ext": { "version": "0.1.8", @@ -13254,10 +13313,11 @@ } }, "node_modules/tmp": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.3.tgz", - "integrity": "sha512-nZD7m9iCPC5g0pYmcaxogYKggSfLsdxl8of3Q/oIbqCqLLIO9IAF0GWjX1z9NZRHPiXv8Wex4yDCaZsgEw0Y8w==", + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.5.tgz", + "integrity": "sha512-voyz6MApa1rQGUxT3E+BK7/ROe8itEx7vD8/HEvt4xwXucvQ5G5oeEiHkmHZJuBO21RpOf+YYm9MOivj709jow==", "dev": true, + "license": "MIT", "engines": { "node": ">=14.14" } @@ -13288,12 +13348,13 @@ } }, "node_modules/token-types": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/token-types/-/token-types-6.0.0.tgz", - "integrity": "sha512-lbDrTLVsHhOMljPscd0yitpozq7Ga2M5Cvez5AjGg8GASBjtt6iERCAJ93yommPmz62fb45oFIXHEZ3u9bfJEA==", + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/token-types/-/token-types-6.1.1.tgz", + "integrity": "sha512-kh9LVIWH5CnL63Ipf0jhlBIy0UsrMj/NJDfpsy1SqOXlLKEVyXXYrnFxFT1yOOYVGBSApeVnjPw/sBz5BfEjAQ==", "dev": true, "license": "MIT", "dependencies": { + "@borewit/text-codec": "^0.1.0", "@tokenizer/token": "^0.3.0", "ieee754": "^1.2.1" }, @@ -13343,6 +13404,7 @@ "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz", "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==", "dev": true, + "license": "MIT", "bin": { "tree-kill": "cli.js" } @@ -13545,9 +13607,9 @@ } }, "node_modules/uint8array-extras": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/uint8array-extras/-/uint8array-extras-1.4.0.tgz", - "integrity": "sha512-ZPtzy0hu4cZjv3z5NW9gfKnNLjoz4y6uv4HlelAjDK7sY/xOkKZv9xK/WQpcsBB3jEybChz9DPC2U/+cusjJVQ==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/uint8array-extras/-/uint8array-extras-1.5.0.tgz", + "integrity": "sha512-rvKSBiC5zqCCiDZ9kAOszZcDvdAHwwIKJG33Ykj43OKcWsnmcBRL09YTU4nOeHZ8Y2a7l1MgTd08SBe9A8Qj6A==", "dev": true, "license": "MIT", "engines": { @@ -16509,6 +16571,7 @@ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -16559,6 +16622,7 @@ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -16568,6 +16632,7 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, + "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -16692,15 +16757,6 @@ "node": ">=12" } }, - "node_modules/yargs-parser": { - "version": "20.2.9", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", - "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/yargs-unparser": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 6e9c5b01a..a9beb535a 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -699,7 +699,7 @@ "devDependencies": { "@biomejs/biome": "1.6.4", "@nestjs/common": "^11.0.16", - "@openapitools/openapi-generator-cli": "^2.20.0", + "@openapitools/openapi-generator-cli": "^2.23.1", "@types/chai": "^5.0.1", "@types/cors": "^2.8.17", "@types/express": "^4.17.21", diff --git a/gui/src/components/mainInput/TipTapEditor/TipTapEditor.tsx b/gui/src/components/mainInput/TipTapEditor/TipTapEditor.tsx index 944caa051..82a934f41 100644 --- a/gui/src/components/mainInput/TipTapEditor/TipTapEditor.tsx +++ b/gui/src/components/mainInput/TipTapEditor/TipTapEditor.tsx @@ -204,6 +204,7 @@ export function TipTapEditor(props: TipTapEditorProps) { setShowDragOverMsg(true); }} onDrop={(event) => { + setShowDragOverMsg(false); if ( !defaultModel || !modelSupportsImages( @@ -215,7 +216,6 @@ export function TipTapEditor(props: TipTapEditorProps) { ) { return; } - setShowDragOverMsg(false); let file = event.dataTransfer.files[0]; void handleImageFile(ideMessenger, file).then((result) => { if (!editor) { diff --git a/gui/src/pages/AddNewModel/configs/models.ts b/gui/src/pages/AddNewModel/configs/models.ts index be50ef6f5..9ae8e4142 100644 --- a/gui/src/pages/AddNewModel/configs/models.ts +++ b/gui/src/pages/AddNewModel/configs/models.ts @@ -1184,42 +1184,27 @@ export const models: { [key: string]: ModelPackage } = { icon: "openai.png", isOpenSource: false, }, - claude35Sonnet: { - title: "Claude 3.5 Sonnet", + claude4Sonnet: { + title: "Claude 4 Sonnet", description: - "Anthropic's most intelligent model, but much less expensive than Claude 3 Opus", + "The most intelligent model in the Claude 4 series. Costing lesser than Claude 4 Opus.", params: { - model: "claude-3-5-sonnet-latest", + model: "claude-4-sonnet-latest", contextLength: 200_000, - title: "Claude 3.5 Sonnet", + title: "Claude 4 Sonnet", apiKey: "", }, providerOptions: ["anthropic", "askSage"], icon: "anthropic.png", isOpenSource: false, }, - claude3Opus: { - title: "Claude 3 Opus", - description: - "The most capable model in the Claude 3 series, beating GPT-4 on many benchmarks", + claude41Opus: { + title: "Claude 4.1 Opus", + description: "The most capable model in the Claude 4 series", params: { - model: "claude-3-opus-20240229", + model: "claude-opus-4-1-20250805", contextLength: 200_000, - title: "Claude 3 Opus", - apiKey: "", - }, - providerOptions: ["anthropic", "askSage"], - icon: "anthropic.png", - isOpenSource: false, - }, - claude3Sonnet: { - title: "Claude 3 Sonnet", - description: - "The second most capable model in the Claude 3 series: ideal balance of intelligence and speed", - params: { - model: "claude-3-sonnet-20240229", - contextLength: 200_000, - title: "Claude 3 Sonnet", + title: "Claude 4.1 Opus", apiKey: "", }, providerOptions: ["anthropic", "askSage"], diff --git a/gui/src/pages/AddNewModel/configs/providers.ts b/gui/src/pages/AddNewModel/configs/providers.ts index 2128be8c2..e7b6d1bf0 100644 --- a/gui/src/pages/AddNewModel/configs/providers.ts +++ b/gui/src/pages/AddNewModel/configs/providers.ts @@ -107,12 +107,7 @@ export const providers: Partial> = { defaultValue: 100000, }, ], - packages: [ - models.claude35Sonnet, - models.claude3Opus, - models.claude3Sonnet, - models.claude35Haiku, - ], + packages: [models.claude4Sonnet, models.claude41Opus, models.claude35Haiku], apiKeyUrl: "https://console.anthropic.com/account/keys", }, moonshot: { diff --git a/gui/src/pages/gui/Chat.tsx b/gui/src/pages/gui/Chat.tsx index 383b87357..4be689dae 100644 --- a/gui/src/pages/gui/Chat.tsx +++ b/gui/src/pages/gui/Chat.tsx @@ -288,19 +288,17 @@ export function Chat() { if (message.role === "user") { return ( -
- - sendInput(editorState, modifiers, index) - } - isLastUserInput={isLastUserInput(index)} - isMainInput={false} - editorState={editorState} - contextItems={contextItems} - appliedRules={appliedRules} - inputId={message.id} - /> -
+ + sendInput(editorState, modifiers, index) + } + isLastUserInput={isLastUserInput(index)} + isMainInput={false} + editorState={editorState} + contextItems={contextItems} + appliedRules={appliedRules} + inputId={message.id} + /> ); } diff --git a/packages/continue-sdk/python/api/docs/DefaultApi.md b/packages/continue-sdk/python/api/docs/DefaultApi.md index a67d68477..e3b6e6a55 100644 --- a/packages/continue-sdk/python/api/docs/DefaultApi.md +++ b/packages/continue-sdk/python/api/docs/DefaultApi.md @@ -4,12 +4,12 @@ All URIs are relative to *https://api.continue.dev* | Method | HTTP request | Description | | ---------------------------------------------------------------------------------- | ---------------------------------------------------- | ------------------------------------------------- | -| [**get_assistant**](DefaultApi.md#get_assistant) | **GET** /ide/get-assistant/{ownerSlug}/{packageSlug} | Get a specific assistant by slug | +| [**get_assistant**](DefaultApi.md#get_assistant) | **GET** /ide/get-assistant/{ownerSlug}/{packageSlug} | Get a specific agent by slug | | [**get_free_trial_status**](DefaultApi.md#get_free_trial_status) | **GET** /ide/free-trial-status | Get free trial status for user | | [**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 | | [**get_policy**](DefaultApi.md#get_policy) | **GET** /ide/policy | Get organization policy | -| [**list_assistant_full_slugs**](DefaultApi.md#list_assistant_full_slugs) | **GET** /ide/list-assistant-full-slugs | List assistant full slugs (currently returns 429) | -| [**list_assistants**](DefaultApi.md#list_assistants) | **GET** /ide/list-assistants | List assistants for IDE | +| [**list_assistant_full_slugs**](DefaultApi.md#list_assistant_full_slugs) | **GET** /ide/list-assistant-full-slugs | List agent full slugs (currently returns 429) | +| [**list_assistants**](DefaultApi.md#list_assistants) | **GET** /ide/list-assistants | List agents for IDE | | [**list_organizations**](DefaultApi.md#list_organizations) | **GET** /ide/list-organizations | List organizations for user | | [**sync_secrets**](DefaultApi.md#sync_secrets) | **POST** /ide/sync-secrets | Synchronize secrets for user | @@ -17,10 +17,10 @@ All URIs are relative to *https://api.continue.dev* > GetAssistant200Response get_assistant(owner_slug, package_slug, always_use_proxy=always_use_proxy, organization_id=organization_id) -Get a specific assistant by slug +Get a specific agent by slug -Returns a single assistant configuration by its owner and package slug. -This endpoint is useful when you need to retrieve or refresh a specific assistant +Returns a single agent configuration by its owner and package slug. +This endpoint is useful when you need to retrieve or refresh a specific agent without fetching the entire list. ### Example @@ -53,13 +53,13 @@ configuration = openapi_client.Configuration( with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openapi_client.DefaultApi(api_client) - owner_slug = 'owner_slug_example' # str | Slug of the user or organization that owns the assistant - package_slug = 'package_slug_example' # str | Slug of the assistant package + owner_slug = 'owner_slug_example' # str | Slug of the user or organization that owns the agent + package_slug = 'package_slug_example' # str | Slug of the agent package always_use_proxy = 'always_use_proxy_example' # str | Whether to always use the Continue-managed proxy for model requests (optional) - organization_id = 'organization_id_example' # str | ID of the organization to scope assistants to. If not provided, personal assistants are returned. (optional) + organization_id = 'organization_id_example' # str | ID of the organization to scope agents to. If not provided, personal agents are returned. (optional) try: - # Get a specific assistant by slug + # Get a specific agent by slug api_response = api_instance.get_assistant(owner_slug, package_slug, always_use_proxy=always_use_proxy, organization_id=organization_id) print("The response of DefaultApi->get_assistant:\n") pprint(api_response) @@ -71,10 +71,10 @@ with openapi_client.ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | -------------------- | ------- | ------------------------------------------------------------------------------------------------- | ---------- | -| **owner_slug** | **str** | Slug of the user or organization that owns the assistant | -| **package_slug** | **str** | Slug of the assistant package | +| **owner_slug** | **str** | Slug of the user or organization that owns the agent | +| **package_slug** | **str** | Slug of the agent package | | **always_use_proxy** | **str** | Whether to always use the Continue-managed proxy for model requests | [optional] | -| **organization_id** | **str** | ID of the organization to scope assistants to. If not provided, personal assistants are returned. | [optional] | +| **organization_id** | **str** | ID of the organization to scope agents to. If not provided, personal agents are returned. | [optional] | ### Return type @@ -93,10 +93,10 @@ with openapi_client.ApiClient(configuration) as api_client: | Status code | Description | Response headers | | ----------- | ------------------------------------------------- | ---------------- | -| **200** | Successfully retrieved assistant | - | +| **200** | Successfully retrieved agent | - | | **401** | Unauthorized - Authentication failed | - | | **403** | Forbidden - Assistant not allowed in organization | - | -| **404** | User or assistant not found | - | +| **404** | User or agent not found | - | [[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) @@ -335,10 +335,10 @@ This endpoint does not need any parameter. > list_assistant_full_slugs() -List assistant full slugs (currently returns 429) +List agent full slugs (currently returns 429) This endpoint is temporarily disabled and returns a 429 status code -to prevent constant refreshes of the full assistant list until a +to prevent constant refreshes of the full agent list until a fixed client version can be deployed. ### Example @@ -372,7 +372,7 @@ with openapi_client.ApiClient(configuration) as api_client: api_instance = openapi_client.DefaultApi(api_client) try: - # List assistant full slugs (currently returns 429) + # List agent full slugs (currently returns 429) api_instance.list_assistant_full_slugs() except Exception as e: print("Exception when calling DefaultApi->list_assistant_full_slugs: %s\n" % e) @@ -407,12 +407,12 @@ void (empty response body) > List[ListAssistants200ResponseInner] list_assistants(always_use_proxy=always_use_proxy, organization_id=organization_id) -List assistants for IDE +List agents for IDE -Returns a complete list of assistants available to the user, with their full configurations, +Returns a complete list of agents available to the user, with their full configurations, icons, and other metadata needed by the IDE to display and use them. -This endpoint performs a full refresh of the list of assistants, including unrolling +This endpoint performs a full refresh of the list of agents, including unrolling configurations and resolving secrets. ### Example @@ -446,10 +446,10 @@ with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openapi_client.DefaultApi(api_client) always_use_proxy = 'always_use_proxy_example' # str | Whether to always use the Continue-managed proxy for model requests (optional) - organization_id = 'organization_id_example' # str | ID of the organization to scope assistants to. If not provided, personal assistants are returned. (optional) + organization_id = 'organization_id_example' # str | ID of the organization to scope agents to. If not provided, personal agents are returned. (optional) try: - # List assistants for IDE + # List agents for IDE api_response = api_instance.list_assistants(always_use_proxy=always_use_proxy, organization_id=organization_id) print("The response of DefaultApi->list_assistants:\n") pprint(api_response) @@ -462,7 +462,7 @@ with openapi_client.ApiClient(configuration) as api_client: | Name | Type | Description | Notes | | -------------------- | ------- | ------------------------------------------------------------------------------------------------- | ---------- | | **always_use_proxy** | **str** | Whether to always use the Continue-managed proxy for model requests | [optional] | -| **organization_id** | **str** | ID of the organization to scope assistants to. If not provided, personal assistants are returned. | [optional] | +| **organization_id** | **str** | ID of the organization to scope agents to. If not provided, personal agents are returned. | [optional] | ### Return type @@ -481,7 +481,7 @@ with openapi_client.ApiClient(configuration) as api_client: | Status code | Description | Response headers | | ----------- | ------------------------------------ | ---------------- | -| **200** | Successfully retrieved assistants | - | +| **200** | Successfully retrieved agents | - | | **401** | Unauthorized - Authentication failed | - | | **404** | User not found | - | diff --git a/packages/continue-sdk/python/api/docs/GetAssistant200Response.md b/packages/continue-sdk/python/api/docs/GetAssistant200Response.md index 860762403..6c1ad61e1 100644 --- a/packages/continue-sdk/python/api/docs/GetAssistant200Response.md +++ b/packages/continue-sdk/python/api/docs/GetAssistant200Response.md @@ -5,12 +5,12 @@ | Name | Type | Description | Notes | | --------------------- | ----------------------------------------------------------------------------------------------- | --------------------------------------------------------- | ---------- | | **config_result** | [**ListAssistants200ResponseInnerConfigResult**](ListAssistants200ResponseInnerConfigResult.md) | | -| **owner_slug** | **str** | Slug of the user or organization that owns the assistant | -| **package_slug** | **str** | Slug of the assistant package | -| **icon_url** | **str** | Pre-signed URL for the assistant's icon | [optional] | +| **owner_slug** | **str** | Slug of the user or organization that owns the agent | +| **package_slug** | **str** | Slug of the agent package | +| **icon_url** | **str** | Pre-signed URL for the agent's icon | [optional] | | **on_prem_proxy_url** | **str** | URL of the on-premises proxy if the organization uses one | [optional] | | **use_on_prem_proxy** | **bool** | Whether the organization uses an on-premises proxy | [optional] | -| **raw_yaml** | **str** | Raw YAML configuration of the assistant | [optional] | +| **raw_yaml** | **str** | Raw YAML configuration of the agent | [optional] | ## Example diff --git a/packages/continue-sdk/python/api/docs/ListAssistants200ResponseInner.md b/packages/continue-sdk/python/api/docs/ListAssistants200ResponseInner.md index 1fe63505b..53b5ed81e 100644 --- a/packages/continue-sdk/python/api/docs/ListAssistants200ResponseInner.md +++ b/packages/continue-sdk/python/api/docs/ListAssistants200ResponseInner.md @@ -5,12 +5,12 @@ | Name | Type | Description | Notes | | --------------------- | ----------------------------------------------------------------------------------------------- | --------------------------------------------------------- | ---------- | | **config_result** | [**ListAssistants200ResponseInnerConfigResult**](ListAssistants200ResponseInnerConfigResult.md) | | -| **owner_slug** | **str** | Slug of the user or organization that owns the assistant | -| **package_slug** | **str** | Slug of the assistant package | -| **icon_url** | **str** | Pre-signed URL for the assistant's icon | [optional] | +| **owner_slug** | **str** | Slug of the user or organization that owns the agent | +| **package_slug** | **str** | Slug of the agent package | +| **icon_url** | **str** | Pre-signed URL for the agent's icon | [optional] | | **on_prem_proxy_url** | **str** | URL of the on-premises proxy if the organization uses one | [optional] | | **use_on_prem_proxy** | **bool** | Whether the organization uses an on-premises proxy | [optional] | -| **raw_yaml** | **str** | Raw YAML configuration of the assistant | [optional] | +| **raw_yaml** | **str** | Raw YAML configuration of the agent | [optional] | ## Example diff --git a/packages/continue-sdk/python/api/docs/ListAssistants200ResponseInnerConfigResult.md b/packages/continue-sdk/python/api/docs/ListAssistants200ResponseInnerConfigResult.md index e12781d04..a09dc5038 100644 --- a/packages/continue-sdk/python/api/docs/ListAssistants200ResponseInnerConfigResult.md +++ b/packages/continue-sdk/python/api/docs/ListAssistants200ResponseInnerConfigResult.md @@ -4,7 +4,7 @@ | Name | Type | Description | Notes | | --------------------------- | ------------- | ----------------------------------------------------- | ---------- | -| **config** | **object** | The unrolled assistant configuration | +| **config** | **object** | The unrolled agent configuration | | **config_load_interrupted** | **bool** | Whether the configuration loading was interrupted | | **errors** | **List[str]** | Any errors that occurred during configuration loading | [optional] | diff --git a/packages/openai-adapters/src/apis/Anthropic.ts b/packages/openai-adapters/src/apis/Anthropic.ts index e44dfe2a0..617e8e6f4 100644 --- a/packages/openai-adapters/src/apis/Anthropic.ts +++ b/packages/openai-adapters/src/apis/Anthropic.ts @@ -174,13 +174,19 @@ export class AnthropicApi implements BaseLlmApi { } return part; } + const dataUrl = + (part as OpenAI.Chat.Completions.ChatCompletionContentPartImage) + ?.image_url?.url || ""; + // Extract media type from data URL (ex. "data:image/png;base64,..." -> "image/png") + const mediaTypeMatch = dataUrl.match(/^data:([^;]+);base64,/); + const mediaType = mediaTypeMatch ? mediaTypeMatch[1] : "image/jpeg"; + return { type: "image", source: { type: "base64", - media_type: "image/jpeg", - // @ts-ignore - data: part.image_url.url.split(",")[1], + media_type: mediaType, + data: dataUrl.split(",")[1], }, }; }) diff --git a/packages/terminal-security/package-lock.json b/packages/terminal-security/package-lock.json index 0d4f62419..62d1f9b79 100644 --- a/packages/terminal-security/package-lock.json +++ b/packages/terminal-security/package-lock.json @@ -15,13 +15,13 @@ "@types/node": "^20.11.19", "@types/shell-quote": "^1.7.5", "typescript": "^5.5.2", - "vitest": "^1.6.0" + "vitest": "^3.2.4" } }, "node_modules/@esbuild/aix-ppc64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", - "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==", + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.9.tgz", + "integrity": "sha512-OaGtL73Jck6pBKjNIe24BnFE6agGl+6KxDtTfHhy1HmhthfKouEcOhqpSL64K4/0WCtbKFLOdzD/44cJ4k9opA==", "cpu": [ "ppc64" ], @@ -32,13 +32,13 @@ "aix" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/android-arm": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz", - "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==", + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.9.tgz", + "integrity": "sha512-5WNI1DaMtxQ7t7B6xa572XMXpHAaI/9Hnhk8lcxF4zVN4xstUgTlvuGDorBguKEnZO70qwEcLpfifMLoxiPqHQ==", "cpu": [ "arm" ], @@ -49,13 +49,13 @@ "android" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/android-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", - "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==", + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.9.tgz", + "integrity": "sha512-IDrddSmpSv51ftWslJMvl3Q2ZT98fUSL2/rlUXuVqRXHCs5EUF1/f+jbjF5+NG9UffUDMCiTyh8iec7u8RlTLg==", "cpu": [ "arm64" ], @@ -66,13 +66,13 @@ "android" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/android-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz", - "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==", + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.9.tgz", + "integrity": "sha512-I853iMZ1hWZdNllhVZKm34f4wErd4lMyeV7BLzEExGEIZYsOzqDWDf+y082izYUE8gtJnYHdeDpN/6tUdwvfiw==", "cpu": [ "x64" ], @@ -83,13 +83,13 @@ "android" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/darwin-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", - "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==", + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.9.tgz", + "integrity": "sha512-XIpIDMAjOELi/9PB30vEbVMs3GV1v2zkkPnuyRRURbhqjyzIINwj+nbQATh4H9GxUgH1kFsEyQMxwiLFKUS6Rg==", "cpu": [ "arm64" ], @@ -100,13 +100,13 @@ "darwin" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/darwin-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz", - "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==", + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.9.tgz", + "integrity": "sha512-jhHfBzjYTA1IQu8VyrjCX4ApJDnH+ez+IYVEoJHeqJm9VhG9Dh2BYaJritkYK3vMaXrf7Ogr/0MQ8/MeIefsPQ==", "cpu": [ "x64" ], @@ -117,13 +117,13 @@ "darwin" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/freebsd-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz", - "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==", + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.9.tgz", + "integrity": "sha512-z93DmbnY6fX9+KdD4Ue/H6sYs+bhFQJNCPZsi4XWJoYblUqT06MQUdBCpcSfuiN72AbqeBFu5LVQTjfXDE2A6Q==", "cpu": [ "arm64" ], @@ -134,13 +134,13 @@ "freebsd" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/freebsd-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz", - "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==", + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.9.tgz", + "integrity": "sha512-mrKX6H/vOyo5v71YfXWJxLVxgy1kyt1MQaD8wZJgJfG4gq4DpQGpgTB74e5yBeQdyMTbgxp0YtNj7NuHN0PoZg==", "cpu": [ "x64" ], @@ -151,13 +151,13 @@ "freebsd" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-arm": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz", - "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==", + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.9.tgz", + "integrity": "sha512-HBU2Xv78SMgaydBmdor38lg8YDnFKSARg1Q6AT0/y2ezUAKiZvc211RDFHlEZRFNRVhcMamiToo7bDx3VEOYQw==", "cpu": [ "arm" ], @@ -168,13 +168,13 @@ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz", - "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==", + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.9.tgz", + "integrity": "sha512-BlB7bIcLT3G26urh5Dmse7fiLmLXnRlopw4s8DalgZ8ef79Jj4aUcYbk90g8iCa2467HX8SAIidbL7gsqXHdRw==", "cpu": [ "arm64" ], @@ -185,13 +185,13 @@ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-ia32": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz", - "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==", + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.9.tgz", + "integrity": "sha512-e7S3MOJPZGp2QW6AK6+Ly81rC7oOSerQ+P8L0ta4FhVi+/j/v2yZzx5CqqDaWjtPFfYz21Vi1S0auHrap3Ma3A==", "cpu": [ "ia32" ], @@ -202,13 +202,13 @@ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-loong64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz", - "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==", + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.9.tgz", + "integrity": "sha512-Sbe10Bnn0oUAB2AalYztvGcK+o6YFFA/9829PhOCUS9vkJElXGdphz0A3DbMdP8gmKkqPmPcMJmJOrI3VYB1JQ==", "cpu": [ "loong64" ], @@ -219,13 +219,13 @@ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-mips64el": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz", - "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==", + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.9.tgz", + "integrity": "sha512-YcM5br0mVyZw2jcQeLIkhWtKPeVfAerES5PvOzaDxVtIyZ2NUBZKNLjC5z3/fUlDgT6w89VsxP2qzNipOaaDyA==", "cpu": [ "mips64el" ], @@ -236,13 +236,13 @@ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-ppc64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz", - "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==", + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.9.tgz", + "integrity": "sha512-++0HQvasdo20JytyDpFvQtNrEsAgNG2CY1CLMwGXfFTKGBGQT3bOeLSYE2l1fYdvML5KUuwn9Z8L1EWe2tzs1w==", "cpu": [ "ppc64" ], @@ -253,13 +253,13 @@ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-riscv64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz", - "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==", + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.9.tgz", + "integrity": "sha512-uNIBa279Y3fkjV+2cUjx36xkx7eSjb8IvnL01eXUKXez/CBHNRw5ekCGMPM0BcmqBxBcdgUWuUXmVWwm4CH9kg==", "cpu": [ "riscv64" ], @@ -270,13 +270,13 @@ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-s390x": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz", - "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==", + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.9.tgz", + "integrity": "sha512-Mfiphvp3MjC/lctb+7D287Xw1DGzqJPb/J2aHHcHxflUo+8tmN/6d4k6I2yFR7BVo5/g7x2Monq4+Yew0EHRIA==", "cpu": [ "s390x" ], @@ -287,13 +287,13 @@ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", - "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==", + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.9.tgz", + "integrity": "sha512-iSwByxzRe48YVkmpbgoxVzn76BXjlYFXC7NvLYq+b+kDjyyk30J0JY47DIn8z1MO3K0oSl9fZoRmZPQI4Hklzg==", "cpu": [ "x64" ], @@ -304,13 +304,30 @@ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.9.tgz", + "integrity": "sha512-9jNJl6FqaUG+COdQMjSCGW4QiMHH88xWbvZ+kRVblZsWrkXlABuGdFJ1E9L7HK+T0Yqd4akKNa/lO0+jDxQD4Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" } }, "node_modules/@esbuild/netbsd-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", - "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==", + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.9.tgz", + "integrity": "sha512-RLLdkflmqRG8KanPGOU7Rpg829ZHu8nFy5Pqdi9U01VYtG9Y0zOG6Vr2z4/S+/3zIyOxiK6cCeYNWOFR9QP87g==", "cpu": [ "x64" ], @@ -321,13 +338,30 @@ "netbsd" ], "engines": { - "node": ">=12" + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.9.tgz", + "integrity": "sha512-YaFBlPGeDasft5IIM+CQAhJAqS3St3nJzDEgsgFixcfZeyGPCd6eJBWzke5piZuZ7CtL656eOSYKk4Ls2C0FRQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" } }, "node_modules/@esbuild/openbsd-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz", - "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==", + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.9.tgz", + "integrity": "sha512-1MkgTCuvMGWuqVtAvkpkXFmtL8XhWy+j4jaSO2wxfJtilVCi0ZE37b8uOdMItIHz4I6z1bWWtEX4CJwcKYLcuA==", "cpu": [ "x64" ], @@ -338,13 +372,30 @@ "openbsd" ], "engines": { - "node": ">=12" + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.9.tgz", + "integrity": "sha512-4Xd0xNiMVXKh6Fa7HEJQbrpP3m3DDn43jKxMjxLLRjWnRsfxjORYJlXPO4JNcXtOyfajXorRKY9NkOpTHptErg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" } }, "node_modules/@esbuild/sunos-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz", - "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==", + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.9.tgz", + "integrity": "sha512-WjH4s6hzo00nNezhp3wFIAfmGZ8U7KtrJNlFMRKxiI9mxEK1scOMAaa9i4crUtu+tBr+0IN6JCuAcSBJZfnphw==", "cpu": [ "x64" ], @@ -355,13 +406,13 @@ "sunos" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/win32-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz", - "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==", + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.9.tgz", + "integrity": "sha512-mGFrVJHmZiRqmP8xFOc6b84/7xa5y5YvR1x8djzXpJBSv/UsNK6aqec+6JDjConTgvvQefdGhFDAs2DLAds6gQ==", "cpu": [ "arm64" ], @@ -372,13 +423,13 @@ "win32" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/win32-ia32": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz", - "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==", + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.9.tgz", + "integrity": "sha512-b33gLVU2k11nVx1OhX3C8QQP6UHQK4ZtN56oFWvVXvz2VkDoe6fbG8TOgHFxEvqeqohmRnIHe5A1+HADk4OQww==", "cpu": [ "ia32" ], @@ -389,13 +440,13 @@ "win32" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/win32-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", - "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==", + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.9.tgz", + "integrity": "sha512-PPOl1mi6lpLNQxnGoyAfschAodRFYXJ+9fs6WHXz7CSWKbOqiMZsubC+BQsVKuul+3vKLuwTHsS2c2y9EoKwxQ==", "cpu": [ "x64" ], @@ -406,20 +457,7 @@ "win32" ], "engines": { - "node": ">=12" - } - }, - "node_modules/@jest/schemas": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", - "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@sinclair/typebox": "^0.27.8" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=18" } }, "node_modules/@jridgewell/sourcemap-codec": { @@ -723,10 +761,20 @@ "win32" ] }, - "node_modules/@sinclair/typebox": { - "version": "0.27.8", - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", - "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", + "node_modules/@types/chai": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.2.tgz", + "integrity": "sha512-8kB30R7Hwqf40JPiKhVzodJs2Qc1ZJ5zuT3uzw5Hq/dhNCl3G3l83jfpdI1e20BP348+fV7VIL/+FxaXkqBmWg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/deep-eql": "*" + } + }, + "node_modules/@types/deep-eql": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz", + "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==", "dev": true, "license": "MIT" }, @@ -755,126 +803,128 @@ "license": "MIT" }, "node_modules/@vitest/expect": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-1.6.1.tgz", - "integrity": "sha512-jXL+9+ZNIJKruofqXuuTClf44eSpcHlgj3CiuNihUF3Ioujtmc0zIa3UJOW5RjDK1YLBJZnWBlPuqhYycLioog==", + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-3.2.4.tgz", + "integrity": "sha512-Io0yyORnB6sikFlt8QW5K7slY4OjqNX9jmJQ02QDda8lyM6B5oNgVWoSoKPac8/kgnCUzuHQKrSLtu/uOqqrig==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/spy": "1.6.1", - "@vitest/utils": "1.6.1", - "chai": "^4.3.10" + "@types/chai": "^5.2.2", + "@vitest/spy": "3.2.4", + "@vitest/utils": "3.2.4", + "chai": "^5.2.0", + "tinyrainbow": "^2.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/mocker": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-3.2.4.tgz", + "integrity": "sha512-46ryTE9RZO/rfDd7pEqFl7etuyzekzEhUbTW3BvmeO/BcCMEgq59BKhek3dXDWgAj4oMK6OZi+vRr1wPW6qjEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/spy": "3.2.4", + "estree-walker": "^3.0.3", + "magic-string": "^0.30.17" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "msw": "^2.4.9", + "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0" + }, + "peerDependenciesMeta": { + "msw": { + "optional": true + }, + "vite": { + "optional": true + } + } + }, + "node_modules/@vitest/pretty-format": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-3.2.4.tgz", + "integrity": "sha512-IVNZik8IVRJRTr9fxlitMKeJeXFFFN0JaB9PHPGQ8NKQbGpfjlTx9zO4RefN8gp7eqjNy8nyK3NZmBzOPeIxtA==", + "dev": true, + "license": "MIT", + "dependencies": { + "tinyrainbow": "^2.0.0" }, "funding": { "url": "https://opencollective.com/vitest" } }, "node_modules/@vitest/runner": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-1.6.1.tgz", - "integrity": "sha512-3nSnYXkVkf3mXFfE7vVyPmi3Sazhb/2cfZGGs0JRzFsPFvAMBEcrweV1V1GsrstdXeKCTXlJbvnQwGWgEIHmOA==", + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-3.2.4.tgz", + "integrity": "sha512-oukfKT9Mk41LreEW09vt45f8wx7DordoWUZMYdY/cyAk7w5TWkTRCNZYF7sX7n2wB7jyGAl74OxgwhPgKaqDMQ==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/utils": "1.6.1", - "p-limit": "^5.0.0", - "pathe": "^1.1.1" + "@vitest/utils": "3.2.4", + "pathe": "^2.0.3", + "strip-literal": "^3.0.0" }, "funding": { "url": "https://opencollective.com/vitest" } }, "node_modules/@vitest/snapshot": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-1.6.1.tgz", - "integrity": "sha512-WvidQuWAzU2p95u8GAKlRMqMyN1yOJkGHnx3M1PL9Raf7AQ1kwLKg04ADlCa3+OXUZE7BceOhVZiuWAbzCKcUQ==", + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-3.2.4.tgz", + "integrity": "sha512-dEYtS7qQP2CjU27QBC5oUOxLE/v5eLkGqPE0ZKEIDGMs4vKWe7IjgLOeauHsR0D5YuuycGRO5oSRXnwnmA78fQ==", "dev": true, "license": "MIT", "dependencies": { - "magic-string": "^0.30.5", - "pathe": "^1.1.1", - "pretty-format": "^29.7.0" + "@vitest/pretty-format": "3.2.4", + "magic-string": "^0.30.17", + "pathe": "^2.0.3" }, "funding": { "url": "https://opencollective.com/vitest" } }, "node_modules/@vitest/spy": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-1.6.1.tgz", - "integrity": "sha512-MGcMmpGkZebsMZhbQKkAf9CX5zGvjkBTqf8Zx3ApYWXr3wG+QvEu2eXWfnIIWYSJExIp4V9FCKDEeygzkYrXMw==", + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-3.2.4.tgz", + "integrity": "sha512-vAfasCOe6AIK70iP5UD11Ac4siNUNJ9i/9PZ3NKx07sG6sUxeag1LWdNrMWeKKYBLlzuK+Gn65Yd5nyL6ds+nw==", "dev": true, "license": "MIT", "dependencies": { - "tinyspy": "^2.2.0" + "tinyspy": "^4.0.3" }, "funding": { "url": "https://opencollective.com/vitest" } }, "node_modules/@vitest/utils": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-1.6.1.tgz", - "integrity": "sha512-jOrrUvXM4Av9ZWiG1EajNto0u96kWAhJ1LmPmJhXXQx/32MecEKd10pOLYgS2BQx1TgkGhloPU1ArDW2vvaY6g==", + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-3.2.4.tgz", + "integrity": "sha512-fB2V0JFrQSMsCo9HiSq3Ezpdv4iYaXRG1Sx8edX3MwxfyNn83mKiGzOcH+Fkxt4MHxr3y42fQi1oeAInqgX2QA==", "dev": true, "license": "MIT", "dependencies": { - "diff-sequences": "^29.6.3", - "estree-walker": "^3.0.3", - "loupe": "^2.3.7", - "pretty-format": "^29.7.0" + "@vitest/pretty-format": "3.2.4", + "loupe": "^3.1.4", + "tinyrainbow": "^2.0.0" }, "funding": { "url": "https://opencollective.com/vitest" } }, - "node_modules/acorn": { - "version": "8.15.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", - "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", - "dev": true, - "license": "MIT", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-walk": { - "version": "8.3.4", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz", - "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==", - "dev": true, - "license": "MIT", - "dependencies": { - "acorn": "^8.11.0" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, "node_modules/assertion-error": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", - "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", + "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", "dev": true, "license": "MIT", "engines": { - "node": "*" + "node": ">=12" } }, "node_modules/cac": { @@ -888,57 +938,30 @@ } }, "node_modules/chai": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/chai/-/chai-4.5.0.tgz", - "integrity": "sha512-RITGBfijLkBddZvnn8jdqoTypxvqbOLYQkGGxXzeFjVHvudaPw0HNFD9x928/eUwYWd2dPCugVqspGALTZZQKw==", + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/chai/-/chai-5.3.3.tgz", + "integrity": "sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==", "dev": true, "license": "MIT", "dependencies": { - "assertion-error": "^1.1.0", - "check-error": "^1.0.3", - "deep-eql": "^4.1.3", - "get-func-name": "^2.0.2", - "loupe": "^2.3.6", - "pathval": "^1.1.1", - "type-detect": "^4.1.0" + "assertion-error": "^2.0.1", + "check-error": "^2.1.1", + "deep-eql": "^5.0.1", + "loupe": "^3.1.0", + "pathval": "^2.0.0" }, "engines": { - "node": ">=4" + "node": ">=18" } }, "node_modules/check-error": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.3.tgz", - "integrity": "sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.1.tgz", + "integrity": "sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==", "dev": true, "license": "MIT", - "dependencies": { - "get-func-name": "^2.0.2" - }, "engines": { - "node": "*" - } - }, - "node_modules/confbox": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.8.tgz", - "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==", - "dev": true, - "license": "MIT" - }, - "node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" + "node": ">= 16" } }, "node_modules/debug": { @@ -960,32 +983,26 @@ } }, "node_modules/deep-eql": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.4.tgz", - "integrity": "sha512-SUwdGfqdKOwxCPeVYjwSyRpJ7Z+fhpwIAtmCUdZIWZ/YP5R9WAsyuSgpLVDi9bjWoN2LXHNss/dk3urXtdQxGg==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz", + "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==", "dev": true, "license": "MIT", - "dependencies": { - "type-detect": "^4.0.0" - }, "engines": { "node": ">=6" } }, - "node_modules/diff-sequences": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", - "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", + "node_modules/es-module-lexer": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz", + "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==", "dev": true, - "license": "MIT", - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } + "license": "MIT" }, "node_modules/esbuild": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz", - "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==", + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.9.tgz", + "integrity": "sha512-CRbODhYyQx3qp7ZEwzxOk4JBqmD/seJrzPa/cGjY1VtIn5E09Oi9/dB4JwctnfZ8Q8iT7rioVv5k/FNT/uf54g==", "dev": true, "hasInstallScript": true, "license": "MIT", @@ -993,32 +1010,35 @@ "esbuild": "bin/esbuild" }, "engines": { - "node": ">=12" + "node": ">=18" }, "optionalDependencies": { - "@esbuild/aix-ppc64": "0.21.5", - "@esbuild/android-arm": "0.21.5", - "@esbuild/android-arm64": "0.21.5", - "@esbuild/android-x64": "0.21.5", - "@esbuild/darwin-arm64": "0.21.5", - "@esbuild/darwin-x64": "0.21.5", - "@esbuild/freebsd-arm64": "0.21.5", - "@esbuild/freebsd-x64": "0.21.5", - "@esbuild/linux-arm": "0.21.5", - "@esbuild/linux-arm64": "0.21.5", - "@esbuild/linux-ia32": "0.21.5", - "@esbuild/linux-loong64": "0.21.5", - "@esbuild/linux-mips64el": "0.21.5", - "@esbuild/linux-ppc64": "0.21.5", - "@esbuild/linux-riscv64": "0.21.5", - "@esbuild/linux-s390x": "0.21.5", - "@esbuild/linux-x64": "0.21.5", - "@esbuild/netbsd-x64": "0.21.5", - "@esbuild/openbsd-x64": "0.21.5", - "@esbuild/sunos-x64": "0.21.5", - "@esbuild/win32-arm64": "0.21.5", - "@esbuild/win32-ia32": "0.21.5", - "@esbuild/win32-x64": "0.21.5" + "@esbuild/aix-ppc64": "0.25.9", + "@esbuild/android-arm": "0.25.9", + "@esbuild/android-arm64": "0.25.9", + "@esbuild/android-x64": "0.25.9", + "@esbuild/darwin-arm64": "0.25.9", + "@esbuild/darwin-x64": "0.25.9", + "@esbuild/freebsd-arm64": "0.25.9", + "@esbuild/freebsd-x64": "0.25.9", + "@esbuild/linux-arm": "0.25.9", + "@esbuild/linux-arm64": "0.25.9", + "@esbuild/linux-ia32": "0.25.9", + "@esbuild/linux-loong64": "0.25.9", + "@esbuild/linux-mips64el": "0.25.9", + "@esbuild/linux-ppc64": "0.25.9", + "@esbuild/linux-riscv64": "0.25.9", + "@esbuild/linux-s390x": "0.25.9", + "@esbuild/linux-x64": "0.25.9", + "@esbuild/netbsd-arm64": "0.25.9", + "@esbuild/netbsd-x64": "0.25.9", + "@esbuild/openbsd-arm64": "0.25.9", + "@esbuild/openbsd-x64": "0.25.9", + "@esbuild/openharmony-arm64": "0.25.9", + "@esbuild/sunos-x64": "0.25.9", + "@esbuild/win32-arm64": "0.25.9", + "@esbuild/win32-ia32": "0.25.9", + "@esbuild/win32-x64": "0.25.9" } }, "node_modules/estree-walker": { @@ -1031,28 +1051,32 @@ "@types/estree": "^1.0.0" } }, - "node_modules/execa": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz", - "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==", + "node_modules/expect-type": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.2.2.tgz", + "integrity": "sha512-JhFGDVJ7tmDJItKhYgJCGLOWjuK9vPxiXoUFLwLDc99NlmklilbiQJwoctZtt13+xMw91MCk/REan6MWHqDjyA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", "dev": true, "license": "MIT", - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^8.0.1", - "human-signals": "^5.0.0", - "is-stream": "^3.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^5.1.0", - "onetime": "^6.0.0", - "signal-exit": "^4.1.0", - "strip-final-newline": "^3.0.0" - }, "engines": { - "node": ">=16.17" + "node": ">=12.0.0" }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } } }, "node_modules/fsevents": { @@ -1070,59 +1094,6 @@ "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, - "node_modules/get-func-name": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", - "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": "*" - } - }, - "node_modules/get-stream": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz", - "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/human-signals": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz", - "integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=16.17.0" - } - }, - "node_modules/is-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", - "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true, - "license": "ISC" - }, "node_modules/js-tokens": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-9.0.1.tgz", @@ -1130,32 +1101,12 @@ "dev": true, "license": "MIT" }, - "node_modules/local-pkg": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-0.5.1.tgz", - "integrity": "sha512-9rrA30MRRP3gBD3HTGnC6cDFpaE1kVDWxWgqWJUN0RvDNAo+Nz/9GxB+nHOH0ifbVFy0hSA1V6vFDvnx54lTEQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "mlly": "^1.7.3", - "pkg-types": "^1.2.1" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/antfu" - } - }, "node_modules/loupe": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz", - "integrity": "sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==", + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.2.1.tgz", + "integrity": "sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==", "dev": true, - "license": "MIT", - "dependencies": { - "get-func-name": "^2.0.1" - } + "license": "MIT" }, "node_modules/magic-string": { "version": "0.30.18", @@ -1167,46 +1118,6 @@ "@jridgewell/sourcemap-codec": "^1.5.5" } }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true, - "license": "MIT" - }, - "node_modules/mimic-fn": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", - "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/mlly": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.8.0.tgz", - "integrity": "sha512-l8D9ODSRWLe2KHJSifWGwBqpTZXIXTeo8mlKjY+E2HAakaTeNpqAyBZ8GSqLzHgw4XmHmC8whvpjJNMbFZN7/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "acorn": "^8.15.0", - "pathe": "^2.0.3", - "pkg-types": "^1.3.1", - "ufo": "^1.6.1" - } - }, - "node_modules/mlly/node_modules/pathe": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", - "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", - "dev": true, - "license": "MIT" - }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", @@ -1233,92 +1144,21 @@ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, - "node_modules/npm-run-path": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz", - "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^4.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/npm-run-path/node_modules/path-key": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", - "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/onetime": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", - "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "mimic-fn": "^4.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-limit": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-5.0.0.tgz", - "integrity": "sha512-/Eaoq+QyLSiXQ4lyYV23f14mZRQcXnxfHrN0vCai+ak9G0pp9iEQukIIZq5NccEvwRB8PUnZT0KsOoDCINS1qQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "yocto-queue": "^1.0.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/pathe": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz", - "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", "dev": true, "license": "MIT" }, "node_modules/pathval": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", - "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.1.tgz", + "integrity": "sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==", "dev": true, "license": "MIT", "engines": { - "node": "*" + "node": ">= 14.16" } }, "node_modules/picocolors": { @@ -1328,25 +1168,19 @@ "dev": true, "license": "ISC" }, - "node_modules/pkg-types": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.3.1.tgz", - "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==", + "node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", - "dependencies": { - "confbox": "^0.1.8", - "mlly": "^1.7.4", - "pathe": "^2.0.1" + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/pkg-types/node_modules/pathe": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", - "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", - "dev": true, - "license": "MIT" - }, "node_modules/postcss": { "version": "8.5.6", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz", @@ -1376,28 +1210,6 @@ "node": "^10 || ^12 || >=14" } }, - "node_modules/pretty-format": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", - "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/schemas": "^29.6.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/react-is": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", - "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", - "dev": true, - "license": "MIT" - }, "node_modules/rollup": { "version": "4.50.0", "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.50.0.tgz", @@ -1439,29 +1251,6 @@ "fsevents": "~2.3.2" } }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/shell-quote": { "version": "1.8.3", "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.3.tgz", @@ -1481,19 +1270,6 @@ "dev": true, "license": "ISC" }, - "node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/source-map-js": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", @@ -1518,23 +1294,10 @@ "dev": true, "license": "MIT" }, - "node_modules/strip-final-newline": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", - "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/strip-literal": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-2.1.1.tgz", - "integrity": "sha512-631UJ6O00eNGfMiWG78ck80dfBab8X6IVFB51jZK5Icd7XAs60Z5y7QdSd/wGIklnWvRbUNloVzhOKKmutxQ6Q==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-3.0.0.tgz", + "integrity": "sha512-TcccoMhJOM3OebGhSBEmp3UZ2SfDMZUEBdRA/9ynfLi8yYajyWX3JiXArcJt4Umh4vISpspkQIY8ZZoCqjbviA==", "dev": true, "license": "MIT", "dependencies": { @@ -1551,10 +1314,44 @@ "dev": true, "license": "MIT" }, + "node_modules/tinyexec": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz", + "integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/tinyglobby": { + "version": "0.2.14", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.14.tgz", + "integrity": "sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.4.4", + "picomatch": "^4.0.2" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, "node_modules/tinypool": { - "version": "0.8.4", - "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-0.8.4.tgz", - "integrity": "sha512-i11VH5gS6IFeLY3gMBQ00/MmLncVP7JLXOw1vlgkytLmJK7QnEr7NXf0LBdxfmNPAeyetukOk0bOYrJrFGjYJQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.1.1.tgz", + "integrity": "sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.0.0 || >=20.0.0" + } + }, + "node_modules/tinyrainbow": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-2.0.0.tgz", + "integrity": "sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==", "dev": true, "license": "MIT", "engines": { @@ -1562,25 +1359,15 @@ } }, "node_modules/tinyspy": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-2.2.1.tgz", - "integrity": "sha512-KYad6Vy5VDWV4GH3fjpseMQ/XU2BhIYP7Vzd0LG44qRWm/Yt2WCOTicFdvmgo6gWaqooMQCawTtILVQJupKu7A==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-4.0.3.tgz", + "integrity": "sha512-t2T/WLB2WRgZ9EpE4jgPJ9w+i66UZfDc8wHh0xrwiRNN+UwH98GIJkTeZqX9rg0i0ptwzqW+uYeIF0T4F8LR7A==", "dev": true, "license": "MIT", "engines": { "node": ">=14.0.0" } }, - "node_modules/type-detect": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.1.0.tgz", - "integrity": "sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, "node_modules/typescript": { "version": "5.9.2", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.2.tgz", @@ -1595,13 +1382,6 @@ "node": ">=14.17" } }, - "node_modules/ufo": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.1.tgz", - "integrity": "sha512-9a4/uxlTWJ4+a5i0ooc1rU7C7YOw3wT+UGqdeNNHWnOF9qcMBgLRS+4IYUqbczewFx4mLEig6gawh7X6mFlEkA==", - "dev": true, - "license": "MIT" - }, "node_modules/undici-types": { "version": "6.21.0", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", @@ -1610,21 +1390,24 @@ "license": "MIT" }, "node_modules/vite": { - "version": "5.4.19", - "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.19.tgz", - "integrity": "sha512-qO3aKv3HoQC8QKiNSTuUM1l9o/XX3+c+VTgLHbJWHZGeTPVAg2XwazI9UWzoxjIJCGCV2zU60uqMzjeLZuULqA==", + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.1.4.tgz", + "integrity": "sha512-X5QFK4SGynAeeIt+A7ZWnApdUyHYm+pzv/8/A57LqSGcI88U6R6ipOs3uCesdc6yl7nl+zNO0t8LmqAdXcQihw==", "dev": true, "license": "MIT", "dependencies": { - "esbuild": "^0.21.3", - "postcss": "^8.4.43", - "rollup": "^4.20.0" + "esbuild": "^0.25.0", + "fdir": "^6.5.0", + "picomatch": "^4.0.3", + "postcss": "^8.5.6", + "rollup": "^4.43.0", + "tinyglobby": "^0.2.14" }, "bin": { "vite": "bin/vite.js" }, "engines": { - "node": "^18.0.0 || >=20.0.0" + "node": "^20.19.0 || >=22.12.0" }, "funding": { "url": "https://github.com/vitejs/vite?sponsor=1" @@ -1633,19 +1416,25 @@ "fsevents": "~2.3.3" }, "peerDependencies": { - "@types/node": "^18.0.0 || >=20.0.0", - "less": "*", + "@types/node": "^20.19.0 || >=22.12.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", "lightningcss": "^1.21.0", - "sass": "*", - "sass-embedded": "*", - "stylus": "*", - "sugarss": "*", - "terser": "^5.4.0" + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" }, "peerDependenciesMeta": { "@types/node": { "optional": true }, + "jiti": { + "optional": true + }, "less": { "optional": true }, @@ -1666,74 +1455,84 @@ }, "terser": { "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true } } }, "node_modules/vite-node": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-1.6.1.tgz", - "integrity": "sha512-YAXkfvGtuTzwWbDSACdJSg4A4DZiAqckWe90Zapc/sEX3XvHcw1NdurM/6od8J207tSDqNbSsgdCacBgvJKFuA==", + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-3.2.4.tgz", + "integrity": "sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==", "dev": true, "license": "MIT", "dependencies": { "cac": "^6.7.14", - "debug": "^4.3.4", - "pathe": "^1.1.1", - "picocolors": "^1.0.0", - "vite": "^5.0.0" + "debug": "^4.4.1", + "es-module-lexer": "^1.7.0", + "pathe": "^2.0.3", + "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0" }, "bin": { "vite-node": "vite-node.mjs" }, "engines": { - "node": "^18.0.0 || >=20.0.0" + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" }, "funding": { "url": "https://opencollective.com/vitest" } }, "node_modules/vitest": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-1.6.1.tgz", - "integrity": "sha512-Ljb1cnSJSivGN0LqXd/zmDbWEM0RNNg2t1QW/XUhYl/qPqyu7CsqeWtqQXHVaJsecLPuDoak2oJcZN2QoRIOag==", + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-3.2.4.tgz", + "integrity": "sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/expect": "1.6.1", - "@vitest/runner": "1.6.1", - "@vitest/snapshot": "1.6.1", - "@vitest/spy": "1.6.1", - "@vitest/utils": "1.6.1", - "acorn-walk": "^8.3.2", - "chai": "^4.3.10", - "debug": "^4.3.4", - "execa": "^8.0.1", - "local-pkg": "^0.5.0", - "magic-string": "^0.30.5", - "pathe": "^1.1.1", - "picocolors": "^1.0.0", - "std-env": "^3.5.0", - "strip-literal": "^2.0.0", - "tinybench": "^2.5.1", - "tinypool": "^0.8.3", - "vite": "^5.0.0", - "vite-node": "1.6.1", - "why-is-node-running": "^2.2.2" + "@types/chai": "^5.2.2", + "@vitest/expect": "3.2.4", + "@vitest/mocker": "3.2.4", + "@vitest/pretty-format": "^3.2.4", + "@vitest/runner": "3.2.4", + "@vitest/snapshot": "3.2.4", + "@vitest/spy": "3.2.4", + "@vitest/utils": "3.2.4", + "chai": "^5.2.0", + "debug": "^4.4.1", + "expect-type": "^1.2.1", + "magic-string": "^0.30.17", + "pathe": "^2.0.3", + "picomatch": "^4.0.2", + "std-env": "^3.9.0", + "tinybench": "^2.9.0", + "tinyexec": "^0.3.2", + "tinyglobby": "^0.2.14", + "tinypool": "^1.1.1", + "tinyrainbow": "^2.0.0", + "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0", + "vite-node": "3.2.4", + "why-is-node-running": "^2.3.0" }, "bin": { "vitest": "vitest.mjs" }, "engines": { - "node": "^18.0.0 || >=20.0.0" + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" }, "funding": { "url": "https://opencollective.com/vitest" }, "peerDependencies": { "@edge-runtime/vm": "*", - "@types/node": "^18.0.0 || >=20.0.0", - "@vitest/browser": "1.6.1", - "@vitest/ui": "1.6.1", + "@types/debug": "^4.1.12", + "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", + "@vitest/browser": "3.2.4", + "@vitest/ui": "3.2.4", "happy-dom": "*", "jsdom": "*" }, @@ -1741,6 +1540,9 @@ "@edge-runtime/vm": { "optional": true }, + "@types/debug": { + "optional": true + }, "@types/node": { "optional": true }, @@ -1758,22 +1560,6 @@ } } }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, "node_modules/why-is-node-running": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz", @@ -1790,19 +1576,6 @@ "engines": { "node": ">=8" } - }, - "node_modules/yocto-queue": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.2.1.tgz", - "integrity": "sha512-AyeEbWOu/TAXdxlV9wmGcR0+yh2j3vYPGOECcIj2S7MkrLyC7ne+oye2BKTItt0ii2PHk4cDy+95+LshzbXnGg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } } } } diff --git a/packages/terminal-security/package.json b/packages/terminal-security/package.json index 67c7c2aa6..459560acf 100644 --- a/packages/terminal-security/package.json +++ b/packages/terminal-security/package.json @@ -17,7 +17,7 @@ "@types/node": "^20.11.19", "@types/shell-quote": "^1.7.5", "typescript": "^5.5.2", - "vitest": "^1.6.0" + "vitest": "^3.2.4" }, "dependencies": { "shell-quote": "^1.8.1" diff --git a/scripts/build-packages.js b/scripts/build-packages.js index c8401edd4..837d91926 100644 --- a/scripts/build-packages.js +++ b/scripts/build-packages.js @@ -34,6 +34,7 @@ function runCommand(command, cwd, packageName) { } else { console.error(`❌ ${packageName}: ${command} failed with code ${code}`); console.error(`stderr: ${stderr}`); + console.error(`stdout: ${stdout}`); reject( new Error(`${packageName} failed: ${command} (exit code ${code})`), );