mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-12 23:01:21 +00:00
feat(hooks): add IntentHookEngine with Pre-Hook, Gatekeeper enforcement, and XML intent_context injection
This commit is contained in:
parent
9587081ab1
commit
fcea38d432
1 changed files with 0 additions and 11 deletions
|
|
@ -126,11 +126,6 @@ export function formatToolOutput(toolInfo: Record<string, unknown>): 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, unknown>): 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)"}`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue