Type Alias ToolAuditEvent
ToolAuditEvent:
| { sideEffect?: string; toolName: string; type: "approval_required" }
| { toolName: string; type: "approval_granted" }
| { toolName: string; type: "approval_denied" }
| { toolName: string; type: "tool_start" }
| { resultBytes: number; toolName: string; type: "tool_success" }
| { error: string; toolName: string; type: "tool_error" }
| {
phase: "input" | "output";
reason: string;
toolName: string;
type: "guardrail_blocked";
}
| { toolName: string; type: "dry_run" }