Commit graph

150 commits

Author SHA1 Message Date
Aditya Mitra
6e0045e204
feat: support gemini through ai sdk (#10671)
* add support for gemini in ai sdk

* support thought signature conversion

* capture extra_content in assistasnt tool calls

* fix: update vercelStreamConverter tests for tool-call chunk emission

The tool-call case now returns a chunk (for Gemini thoughtSignature
support) instead of null, so tests need to expect the new behavior.

---------

Co-authored-by: Nate Sesti <33237525+sestinj@users.noreply.github.com>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2026-03-24 17:14:19 -07:00
Aditya Mitra
65c02eabb4
feat(cli): invokable skills and import any skill (#11113)
* list all skills using /skills slash command

* make skills slash command invokable

* load the skill using skills tool

* make skills tool allowed by default

* add /import-skills slash command

* Update extensions/cli/src/tools/skills.ts

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

* fix stale in use effect

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2026-03-24 13:45:09 -07:00
uinstinct
9ae00f592b move QuizService to services folder 2026-02-27 09:41:47 +05:30
uinstinct
35725099c1 remove allowCustomAnswer
- also refine the prompt
2026-02-26 12:16:10 +05:30
uinstinct
bd5a4cad9d refine prompt 2026-02-26 12:04:00 +05:30
uinstinct
6d082f2ff7 add quiz service 2026-02-26 11:50:47 +05:30
uinstinct
489aa49663 add quiz tool 2026-02-26 11:40:05 +05:30
Nate
87a0464416 fix: break circular dependency causing test failures
ToolPermissionService imported ALL_BUILT_IN_TOOLS from allBuiltIns.ts,
which imports runTerminalCommand.ts, which imports services/index.ts,
which imports ToolPermissionService.ts - creating a circular dependency.

This caused "ToolPermissionService is not a constructor" errors in tests
because the module wasn't fully initialized when services/index.ts tried
to instantiate it.

Fix: Extract a lightweight builtInToolNames.ts with just the string names
(no heavy imports) and use that in ToolPermissionService instead. Also add
a vitest resolve alias for "src/" paths to match tsconfig baseUrl.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 13:11:03 -08:00
Nate
fab480f495 style: fix prettier formatting in checkBackgroundJob.ts
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 12:36:53 -08:00
Nate
1313806901 fix: address TypeScript errors and review comments
- Add missing import for backgroundJobService in services/index.ts
- Add explicit type annotation for BackgroundJob parameter in checkBackgroundJob.ts
- Fix stale closure in JobsSelector useEffect by adding viewMode/selectedJob to deps
- Truncate stdout when moving command to background to prevent context overflow
- Detach stdout/stderr listeners after backgrounding to prevent memory growth
- Use setEncoding('utf8') on streams to prevent multi-byte character corruption

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 12:35:05 -08:00
uinstinct
1d2cba889c rename background job manager to background job service 2026-02-09 19:13:05 +05:30
uinstinct
001e553722 refactor backgroundsignalmanger 2026-02-09 19:08:24 +05:30
uinstinct
a87d44cf52 show terminal output during streaming 2026-02-09 17:52:25 +05:30
uinstinct
149a27c988 show ctrl+b to move to background 2026-02-06 19:19:12 +05:30
uinstinct
561f85e95c move process to background
with ctrl+b
2026-02-06 18:36:45 +05:30
uinstinct
5a479ca427 added checkBackgroundJob tool 2026-02-06 18:26:09 +05:30
shanevcantwell
d80845c403
feat: add tool prompt override support in .continuerc.json (#9314)
* feat: add tool prompt overrides support in YAML model config

Adds per-model tool prompt overrides under chatOptions in YAML config:

```yaml
models:
  - name: my-model
    chatOptions:
      toolPromptOverrides:
        run_terminal_command:
          description: "Custom description"
        view_diff:
          disabled: true
```

This replaces the JSON-only implementation with YAML-only support as
requested by maintainers. The JSON implementation is preserved on the
`feature/tool-prompt-overrides-json` branch for reference.

Changes:
- Add toolOverrideSchema to chatOptionsSchema (packages/config-yaml)
- Add ToolOverride interface and toolPromptOverrides to LLMOptions (core)
- Store and apply overrides in BaseLLM.streamChat()
- Add applyToolOverrides utility with comprehensive tests

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

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

* feat(cli): add tool prompt overrides support for CLI parity

Apply toolPromptOverrides from YAML model config in CLI,
ensuring feature parity with VS Code extension.

- Add applyChatCompletionToolOverrides helper for CLI tool format
- Apply overrides in streamChatResponse before LLM calls
- Support description changes and disabling tools
- Add unit tests for override logic

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

* chore: package lock update

* ci: retrigger after hub 502

* refactor: rename toolPromptOverrides to toolOverrides

- Rename property across core, config-yaml, and CLI
- Consolidate ToolOverride type to extend ToolOverrideConfig from
  config-yaml instead of duplicating 7 fields
- Inline record-to-array conversion to match file patterns

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

* chore: retrigger CI (clean run)

* chore: revert gui package-lock to main

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

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2026-02-02 21:55:21 -08:00
Dallin Romney
62235c10bf
Merge pull request #9810 from uinstinct/cli-terminal-wsl
feat(cli): detect wsl and spawn appropriate shell
2026-01-25 21:53:31 -08:00
Nate
b65f44027a fix: Replace console.debug with logger in exit tool
Addresses code review feedback to use shared logger instead of console.debug
2026-01-25 16:07:54 -08:00
Nate
65a1e1500b fix: Set isComplete metadata when agents finish execution
Fixes issue where agent sessions stay stuck in "running" state forever
because the isComplete metadata field is never set.

Changes:
- Status tool now calls updateAgentMetadata({ isComplete: true }) when
  status is "DONE" or "FAILED"
- reportFailure tool now marks agent as complete before reporting failure
- exit tool now marks agent as complete before exiting
- Added debug logging to track inactivity timeout progress and lastActivity
  updates

This ensures the UI can properly detect when an agent has finished and
display the correct state instead of showing "running" indefinitely.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-25 15:47:56 -08:00
uinstinct
a9ae4205e1 feat(cli): detect wsl and spawn appropriate shell 2026-01-23 11:56:56 +05:30
Nate Sesti
29aa68275e
Merge pull request #9567 from continuedev/dallin/compaction-fixes-2 2026-01-22 13:15:07 -08:00
Dallin Romney
c0a930919f fix: linting issue mising parallel count 2026-01-22 11:21:30 -08:00
Dallin Romney
f1527e761c chore: remove error message part explaining env vars 2026-01-21 17:54:56 -08:00
Dallin Romney
1d8aa4b1e4 test: fix tests for change from 20k to 15k autocompaction buffer 2026-01-21 17:42:48 -08:00
Dallin Romney
c754289118 feat: proportional output truncation for read and bash 2026-01-21 17:37:17 -08:00
uinstinct
a3b085c7c7 add tests for skill.ts 2026-01-20 13:41:25 +05:30
uinstinct
62a287894c add tests for loadMarkdownSkill 2026-01-20 13:34:44 +05:30
uinstinct
3ab5b5992b feat(cli): agent skills 2026-01-20 13:25:56 +05:30
Dallin Romney
59826dad6c Merge branch 'main' of https://github.com/continuedev/continue into dallin/compaction-fixes-2 2026-01-15 18:53:00 -08:00
Dallin Romney
963d1ebfc6 merge: main 2026-01-15 14:00:36 -08:00
Nate Sesti
4110496b22
Merge pull request #9128 from uinstinct/sub-agents
feat: subagents
2026-01-14 20:38:00 -08:00
Dallin Romney
998cb76a71 fix: tool permissions for MCP and bash in headless 2026-01-14 18:57:11 -08:00
Dallin Romney
d87dd573ef feat: error for large files with informative message rather than truncating 2026-01-14 16:23:15 -08:00
Dallin Romney
d7b91f884c fix: tests and cubic feedback 2026-01-09 16:07:33 -08:00
Dallin Romney
5d7327f8e0 chore: update read file truncation limit to 25k tokens ish 2026-01-09 16:01:07 -08:00
Dallin Romney
34537d926f feat: CLI tool truncation and docs 2026-01-09 15:57:28 -08:00
Dallin Romney
613ffb8ca9 fix: context length fixes, truncation, etc 2026-01-09 14:28:59 -08:00
uinstinct
72da793664 skip dynamic imports 2026-01-09 16:20:58 +05:30
uinstinct
d55a13894f decouple allbuiltins and subagent tool meta 2026-01-09 16:16:01 +05:30
uinstinct
c2d928d483 fix subagent tests 2026-01-08 21:44:08 +05:30
uinstinct
2b347b6760 use dynamic to prevent cyclical dependency 2026-01-08 21:39:12 +05:30
uinstinct
3fbb428f3f add subagent tests 2026-01-08 20:25:18 +05:30
uinstinct
eb77a589b4 use subagent tool meta instead of calling the func 2026-01-08 20:17:47 +05:30
uinstinct
66fe98fe7d try to fix import issues for tests 2026-01-08 19:22:03 +05:30
uinstinct
25b08e0870 fix gitaiintegration test 2026-01-08 18:28:46 +05:30
uinstinct
fc5e22f5ad fix cyclical import 2026-01-08 18:16:23 +05:30
uinstinct
3bdac8d1ce move subagent behind beta 2026-01-07 20:37:43 +05:30
uinstinct
d510de946b remove builtintoolnames 2026-01-07 20:11:18 +05:30
uinstinct
27ac8cc23b include model roles subagent 2026-01-07 18:24:28 +05:30