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:
ace-pm 2026-04-15 16:10:49 +02:00
parent 5102fa217e
commit dfbe620c34

View file

@ -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.