Commit graph

5725 commits

Author SHA1 Message Date
Nate
ca702415e6 Refactor metadata updates to track completion state and changes 2025-12-23 21:39:44 -05:00
Nate
635aa42811 fix circular dependency 2025-12-23 13:19:42 -05:00
Nate
d31d6b6fc4 Handle unhandled errors by exiting with non-zero code 2025-12-23 13:00:23 -05:00
Nate
53a9fa4cb3 fix: add missing hub mock rejection in test
Add mockLoadPackageFromHub.mockRejectedValue() to test that verifies
file reading failure for markdown paths. Without this, the hub would
succeed and the file reading code wouldn't be exercised.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 15:34:38 -05:00
Nate
4c0c53257b fix: fix lint error and update tests for markdown-only fallback
- Remove unused variable 'e' in catch block
- Update tests to use .md extensions for file path loading tests
- Add test for non-markdown paths throwing errors

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 15:29:23 -05:00
Dallin Romney
d93b4321a5 fix: don't fallback to relative path if not markdown file 2025-12-22 10:47:28 -08:00
Dallin Romney
e3a4f77e9f
Merge pull request #9083 from svarlamov/feat/cli-git-ai-integration
feat: Continue CLI Git AI integration for tracking AI-authored code
2025-12-15 19:55:48 -08:00
Dallin Romney
121988335c
Merge pull request #9111 from continuedev/snyk-upgrade-8e3d5e462b3584de0b8d109421a2aa54
[Snyk] Upgrade mocha from 11.7.1 to 11.7.5
2025-12-15 17:05:43 -08:00
Dallin Romney
5231a7e81d
Merge pull request #9085 from rossigee/fix/overzealous-security-pattern
fix: overzealous 'token' and 'credential' security regexps
2025-12-15 16:58:27 -08:00
BekahHW
13e9f2977a
Merge pull request #8962 from continuedev/add-integration-docs
Add PostHog, Atlassian, and Netlify integration documentation
2025-12-15 13:53:28 -05:00
continue[bot]
ba750e4f78 Fix flaky slash command test on Windows
The test was timing out on Windows CI due to slower rendering.
Increased the timeout from 2000ms to 5000ms and interval from 50ms to 100ms
to give more time for the UI to render the /title command.

Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <noreply@continue.dev>
Co-authored-by: nate <nate@continue.dev>
2025-12-10 23:20:29 +00:00
continue[bot]
1cca84815e Update package-lock.json for mocha 11.7.5
This updates the lockfile to match the package.json change from mocha
11.7.1 to 11.7.5, fixing the CI build failure.

Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <noreply@continue.dev>
Co-authored-by: nate <nate@continue.dev>
2025-12-10 23:07:41 +00:00
Nate Sesti
51c5a0b9f2
Merge pull request #9099 from continuedev/nate/vercel-ai-sdk
Nate/vercel ai sdk
2025-12-10 15:05:24 -08:00
snyk-bot
c65d6dfb9a
fix: upgrade mocha from 11.7.1 to 11.7.5
Snyk has created this PR to upgrade mocha from 11.7.1 to 11.7.5.

See this package in npm:
mocha

See this project in Snyk:
https://app.snyk.io/org/continue-dev-inc.-default/project/7ff64b12-9373-49d8-a6a5-70de1609223c?utm_source=github&utm_medium=referral&page=upgrade-pr
2025-12-10 23:03:38 +00:00
continue[bot]
99c988a8a5 Apply same security pattern fix to IntelliJ implementation
Remove credentials.* and token.* patterns from IntelliJ security ignore
list to match the TypeScript core changes. This ensures consistent behavior
across both IDE extensions.

Co-authored-by: nate <nate@continue.dev>
2025-12-11 03:16:59 +07:00
Dallin Romney
ff5d166c83
Merge pull request #9080 from continuedev/snyk-upgrade-df9d51333968970981e8f6c9cf4d7377
[Snyk] Upgrade @tiptap/extension-image from 2.26.1 to 2.27.1
2025-12-10 10:40:04 -08:00
Patrick Erichsen
291f8f5dd2
fix: ensure cross-target LanceDB binaries are correctly copied (#9100)
* fix: install lancedb binary for cross-target builds

* chore: add temporary darwin build workflow

* chore: remove temporary darwin workflow

* fix: prettier formatting in prepackage.js

Co-authored-by: nate <nate@continue.dev>

* fix: ensure cross-target LanceDB binaries copied

* fix: retain target lancedb binary in vsix

* Update prepackage.js

* fix: install LanceDB packages sequentially in binary build

The previous code ran installAndCopyNodeModules in parallel for all
targets, but they all write to node_modules/@lancedb. This caused
race conditions where files could be partially written or empty.

Changed to sequential installation to prevent file corruption.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* chore: add diagnostic logging for lancedb copy

* chore: add detailed diagnostics to install-copy-nodemodule

* fix: remove cached lancedb before fresh copy

ncp's clobber option doesn't reliably overwrite cached files.
Delete destination directory before copying to ensure fresh install.

* chore: clean up diagnostic code, keep fix for cached lancedb

Root cause: ncp doesn't reliably overwrite cached files.
Fix: Remove destination directory before copying fresh lancedb binaries.

---------

Co-authored-by: continue[bot] <continue[bot]@users.noreply.github.com>
Co-authored-by: nate <nate@continue.dev>
Co-authored-by: Claude <noreply@anthropic.com>
2025-12-10 10:39:42 -08:00
Nate Sesti
961499e1c7
Merge pull request #9096 from claserken/nes-latest-diff-fix
Fix nextedit user edit tracking to include latest and very first diffs
2025-12-09 17:49:57 -08:00
Nate
536bc769ea vercel ai sdk, feature-flagged by env var 2025-12-10 00:46:22 +00:00
continue[bot]
2ae2f80af6 fix: refactor handleToolCalls to use options object to satisfy max-params lint rule
- Grouped function parameters into HandleToolCallsOptions interface
- Reduced parameter count from 6 to 1 (options object)
- Updated call site in streamChatResponse.ts to use new signature

Co-authored-by: nate <nate@continue.dev>
2025-12-09 22:59:03 +00:00
Nate
7f9ef3694d feat: capture and attach usage metadata to assistant messages
Add per-message cost tracking by capturing usage data from LLM API
responses and attaching it to assistant messages when saved to session.

- Update addAssistantMessage to accept usage parameter
- Modify handleToolCalls to pass usage to message creation
- Enhance processStreamingResponse to return usage with model and cost
- Calculate cost in cents and include model name in usage metadata

This enables the control plane cost analysis page to display accurate
per-message costs without client-side token estimation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-09 14:36:24 -08:00
Kenan Hasanaliyev
14d935ddcb
Merge branch 'continuedev:main' into nes-latest-diff-fix 2025-12-09 13:37:16 -08:00
Sasha Varlamov
f3668adba9 fix formatting 2025-12-09 11:51:41 -05:00
Sasha Varlamov
8114909af4 add tests, fix lints 2025-12-09 11:47:23 -05:00
Sasha Varlamov
32d3368ea7 tidy git ai integration 2025-12-09 11:47:22 -05:00
Sasha Varlamov
d4fd449906 clean up imports in git ai integration service 2025-12-09 11:47:22 -05:00
Sasha Varlamov
b587fe7d13 fix lints 2025-12-09 11:47:22 -05:00
Sasha Varlamov
7b2beb5f04 initial git ai integration 2025-12-09 11:47:20 -05:00
continue[bot]
887410e5b2 fix: resolve lint issues in vscode extension files
- Fix import order in VsCodeIde.ts (util/util before util/vscode)
- Fix negated conditions to use early returns
- Add void operator to unhandled promise calls
- Improve code clarity by using positive conditionals

These lint issues were introduced in PR #9077 and are unrelated to the
@tiptap/extension-image upgrade in this PR.

Generated with [Continue](https://continue.dev)

Co-authored-by: nate <nate@continue.dev>
2025-12-09 08:38:14 +00:00
Nate
cd538eb230 update tool description 2025-12-08 22:24:30 -08:00
Nate
b5da44ddd6 fix(cli): resolve circular dependency in uploadArtifact tool
The uploadArtifact tool was importing services at the module level,
creating a circular dependency:
services/index.ts -> ToolPermissionService -> allBuiltIns -> uploadArtifact -> services/index.ts

This caused ToolPermissionService to be undefined when instantiated,
resulting in "ToolPermissionService is not a constructor" errors
in all ToolPermissionService tests.

The fix moves the services import inside the run() function where
it's actually used, breaking the circular dependency while
maintaining the same functionality.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-08 20:32:14 -08:00
continue[bot]
3875a472fc Fix ToolPermissionService mock to avoid constructor error
Replaces 'vi.mocked(new ToolPermissionService())' with a plain mock object
containing the necessary methods. This fixes the 'ToolPermissionService is
not a constructor' error that was causing all tests to fail.

Also adds getState method to artifactUpload mock for completeness.

Co-authored-by: nate <nate@continue.dev>
2025-12-09 00:51:45 +00:00
continue[bot]
f02a8bc8eb Move betaUploadArtifactTool to BaseCommandOptions
Fixes TypeScript error: 'Property betaUploadArtifactTool does not exist on type BaseCommandOptions'

ServiceInitOptions.options is typed as BaseCommandOptions, so betaUploadArtifactTool
needs to be in BaseCommandOptions rather than ExtendedCommandOptions.

Co-authored-by: nate <nate@continue.dev>
2025-12-09 00:43:08 +00:00
continue[bot]
5920c66ea3 Add artifactUpload service to test mocks
- Adds artifactUpload mock to services object with uploadArtifact and uploadArtifacts methods
- Adds ARTIFACT_UPLOAD to SERVICE_NAMES mock

This ensures tests that import services or SERVICE_NAMES don't fail due to missing mock definitions.

Co-authored-by: nate <nate@continue.dev>
2025-12-09 00:33:38 +00:00
continue[bot]
7123eef807 Fix ArtifactUploadService to extend BaseService
- Makes ArtifactUploadService extend BaseService<ArtifactUploadServiceState>
- Implements doInitialize() instead of initialize()
- Uses currentState instead of private state field
- Removes custom setState method in favor of BaseService's setState

This aligns the service with the architecture pattern used by other services
in the CLI (UpdateService, ConfigService, etc.)

Co-authored-by: nate <nate@continue.dev>
2025-12-09 00:21:34 +00:00
Nate
85a4a69ebe Add artifact upload feature to CLI for agent sessions 2025-12-08 16:01:13 -08:00
Dallin Romney
efc0a720ca
Merge pull request #9061 from Broco98/fix/intelliJ-keymap-concurrency
fix(intellij): Prevent ConcurrentModificationException in keymap access
2025-12-08 10:47:49 -08:00
Patrick Erichsen
9e65f82131
Fix/lancedb cross target (#9033)
* fix: install lancedb binary for cross-target builds

* chore: add temporary darwin build workflow

* chore: remove temporary darwin workflow

* fix: prettier formatting in prepackage.js

Co-authored-by: nate <nate@continue.dev>

* fix: ensure cross-target LanceDB binaries copied

* fix: retain target lancedb binary in vsix

* Update prepackage.js

---------

Co-authored-by: continue[bot] <continue[bot]@users.noreply.github.com>
Co-authored-by: nate <nate@continue.dev>
2025-12-08 10:42:08 -08:00
Dallin Romney
684b5381fc
Merge pull request #9052 from beDmitry/exthost_stuck_for_js_ts_bugfix
fix: issue 3753 for .js and .ts file types
2025-12-08 10:41:30 -08:00
BekahHW
87c12eb3ee Fix link to agents in the hub 2025-12-08 11:22:43 -05:00
김효연
5d1cd00103 fix(intellij): Prevent ConcurrentModificationException in keymap access 2025-12-08 15:39:24 +09:00
continue[bot]
00b665f089 fix(cli): use logger.info instead of console.log for consistency
Replace console.log with logger.info for initial prompt messages to
maintain consistency with codebase logging practices.

Co-authored-by: nate <nate@continue.dev>
2025-12-07 19:15:08 +00:00
Nate
2e2fc51082 feat(cli): prevent initial prompt replay on devbox resume 2025-12-07 11:10:53 -08:00
Nate
09deed45dd feat(cli): add session ID support for serve command to persist chat history 2025-12-07 10:10:53 -08:00
beDmitry
cb4db878b8 fix: make tree-sitter lookup in .js and .ts files pick up only last preceding comment before code block 2025-12-06 09:42:53 -05:00
Nate Sesti
15651c93f8
Merge pull request #9034 from continuedev/nate/track-session-cost-and-usage
Add comprehensive cost tracking with OpenAI pricing and session usage display
2025-12-05 19:59:57 -08:00
Nate
1929275938 update tool prompt 2025-12-05 18:08:45 -08:00
Nate
2441b0fecc Add configurable timeout parameter to runTerminalCommand tool 2025-12-05 18:07:50 -08:00
continue[bot]
5c50e911d2 fix: Initialize usage field in createSession and startNewSession
Ensures all new sessions have the usage tracking structure initialized
to prevent undefined field errors.

Co-authored-by: nate <nate@continue.dev>
2025-12-06 01:52:23 +00:00
continue[bot]
dd053ba124 test: Update session tests to include usage field
Added usage field expectations to session creation tests to match
the new session structure that includes cost tracking.

Co-authored-by: nate <nate@continue.dev>
2025-12-06 01:05:27 +00:00