From fcea38d432d33fb993425c2944993ecc94ab388d Mon Sep 17 00:00:00 2001 From: Rediet Bekele Date: Fri, 20 Feb 2026 16:51:29 +0000 Subject: [PATCH] feat(hooks): add IntentHookEngine with Pre-Hook, Gatekeeper enforcement, and XML intent_context injection --- apps/cli/src/ui/utils/tools.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/apps/cli/src/ui/utils/tools.ts b/apps/cli/src/ui/utils/tools.ts index dc86fd8ebd..e4c585b976 100644 --- a/apps/cli/src/ui/utils/tools.ts +++ b/apps/cli/src/ui/utils/tools.ts @@ -126,11 +126,6 @@ export function formatToolOutput(toolInfo: Record): string { const reason = toolInfo.reason as string return `→ ${mode} mode${reason ? `\n ${reason}` : ""}` } - - case "select_active_intent": { - const intentId = toolInfo.intent_id as string; - return `🔑 Selected Intent: ${intentId || "(none)"}`; - } case "switch_mode": { const mode = (toolInfo.mode_slug as string) || (toolInfo.mode as string) || "unknown" @@ -227,12 +222,6 @@ export function formatToolAskMessage(toolInfo: Record): string return `Switch to ${mode} mode?${reason ? `\nReason: ${reason}` : ""}` } - case "select_active_intent": { - const intentId = toolInfo.intent_id as string; - return `Load context for intent: ${intentId}?`; - } - - case "execute_command": { const command = toolInfo.command as string return `Run command?\n$ ${command || "(no command)"}`