refactor(core): replace deferred tool option with codemode (#36560)

This commit is contained in:
Aiden Cline
2026-07-12 21:21:07 -05:00
committed by GitHub
parent a4b91d33d9
commit 64ca9b8d77
27 changed files with 88 additions and 251 deletions
+4 -3
View File
@@ -315,11 +315,12 @@ export default Plugin.define({
Unsupported characters in tool and group names are normalized to underscores.
The resulting exposed key must begin with a letter and contain at most 64
letters, digits, underscores, or hyphens. Set `options` on the declaration to
configure registration with `{ group, deferred }`:
configure registration with `{ group, codemode }`:
- `group` prefixes and groups the exposed tool name.
- `deferred: true` makes the tool available through the deferred `execute`
tool instead of exposing it directly.
- `codemode` defaults to `true` and makes the tool available through the
`execute` CodeMode tool. Set `codemode: false` to expose it directly to the
provider.
The executor receives a second context argument containing `sessionID`,
`agent`, `assistantMessageID`, and `toolCallID`.