feat(bootstrap): add tool_call hook to set vibes for tools
- registers hook to trigger vibe state based on tool name and input - enables working-vibes extension to respond to tool invocations Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
5102fa217e
commit
dfbe620c34
1 changed files with 4 additions and 0 deletions
|
|
@ -463,6 +463,10 @@ export function registerHooks(pi: ExtensionAPI): void {
|
|||
return payload;
|
||||
});
|
||||
|
||||
pi.on("tool_call", async (event, ctx: ExtensionContext) => {
|
||||
setVibeForTool(ctx, event.toolName, event.input);
|
||||
});
|
||||
|
||||
// Capability-aware model routing hook (ADR-004)
|
||||
// Extensions can override model selection by returning { modelId: "..." }
|
||||
// Return undefined to let the built-in capability scoring proceed.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue