Commit graph

818 commits

Author SHA1 Message Date
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
6182a3ffa0 restore toolpermissionservice changes 2026-01-08 18:12:19 +05:30
uinstinct
3bdac8d1ce move subagent behind beta 2026-01-07 20:37:43 +05:30
uinstinct
8e0212268d cleanup listener after execution 2026-01-07 20:18:54 +05:30
uinstinct
d510de946b remove builtintoolnames 2026-01-07 20:11:18 +05:30
uinstinct
8381812d92 allow escaping of subagent tool using event emit 2026-01-07 19:50:09 +05:30
uinstinct
27ac8cc23b include model roles subagent 2026-01-07 18:24:28 +05:30
uinstinct
5abe556ddc pass modelstate to read subagents 2026-01-07 11:02:13 +05:30
uinstinct
b427287e89 Merge branch 'main' into sub-agents 2026-01-06 18:31:11 +05:30
Dallin Romney
b24adaaf83
Merge pull request #9270 from continuedev/dallin/relative-path-fallback-cli
fix: re-throw hub error for non-markdown hub slugs
2026-01-05 14:30:08 -05:00
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
f644c8873e fix: re-throw hub error for non-markdown hub slugs
When hub loading fails for a path that looks like a hub slug (owner/agent)
and is NOT a markdown file, re-throw the hub error instead of showing
"Not a markdown file". This preserves the actual error from the hub
(e.g., network error, auth error, not found) instead of a confusing
generic message.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 16:45:48 -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
uinstinct
08465a6400 add subagent in model roles 2025-12-19 21:27:36 +05:30
uinstinct
70d5be8095 rename builtInAgents to get-agents 2025-12-19 20:22:56 +05:30
uinstinct
53becf10ad remove debug statements 2025-12-19 20:20:43 +05:30
uinstinct
0cc7a16f24 get subagents from config 2025-12-19 13:39:34 +05:30
uinstinct
85eb24913c wip: use the first found apply model for subagent 2025-12-18 20:31:10 +05:30
uinstinct
bcdf0120b1 Merge branch 'main' into sub-agents 2025-12-18 19:22:15 +05:30
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
continue[bot]
2003128f08 fix: correct import order in ToolPermissionService
Move BUILT_IN_TOOL_NAMES import to proper position according to eslint
import/order rules.

Co-authored-by: nate <nate@continue.dev>
2025-12-15 04:20:14 +00:00
continue[bot]
26bef77a88 fix: correct built-in tool names list
Update BUILT_IN_TOOL_NAMES to match the actual tools in allBuiltIns.ts,
including UploadArtifact which was missing. Remove incorrect tool names
that don't exist.

Co-authored-by: nate <nate@continue.dev>
2025-12-15 04:16:11 +00:00
continue[bot]
6a5f80b0fc fix: break circular dependency by extracting tool names
Create builtInToolNames.ts with just the tool name constants to avoid
importing the actual tool implementations. This breaks the circular
dependency chain: ToolPermissionService -> allBuiltIns -> subagent ->
executor -> services -> ToolPermissionService.

Co-authored-by: nate <nate@continue.dev>
2025-12-15 04:08:38 +00:00
continue[bot]
87fd9b67df fix: resolve circular dependency in subagent executor
Move services import to lazy evaluation inside executeSubAgent function
to avoid circular dependency. Pass services as parameter to
buildAgentSystemMessage helper function.

Co-authored-by: nate <nate@continue.dev>
2025-12-15 04:01:04 +00:00
continue[bot]
1c448c479d fix: resolve circular dependency in subagent tool
Move services import to lazy evaluation inside the run function to avoid
circular dependency between ToolPermissionService -> allBuiltIns -> subagent -> services -> ToolPermissionService.

This fixes the 'ToolPermissionService is not a constructor' error in tests.

Co-authored-by: nate <nate@continue.dev>
2025-12-15 03:50:39 +00:00
uinstinct
c2af5a9f1f allow all tools inside subagents 2025-12-11 19:21:40 +05:30
uinstinct
1a06d69297 refactor subagent namings 2025-12-11 13:40:02 +05:30
uinstinct
675378f1a3 rename subagent_type to subagent_name 2025-12-11 13:31:19 +05:30
uinstinct
a78be7c411 support streaming into tool call output 2025-12-11 13:27:46 +05:30
uinstinct
32af25fc99 feat: subagents 2025-12-11 13:17:29 +05:30
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
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
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
Nate
cd538eb230 update tool description 2025-12-08 22:24:30 -08:00