/** * Canonical event schema — minimal field extraction from Claude and Cursor hook payloads. * * No normalization happens here. Raw tool_name, tool_input, and the full raw_event * are forwarded to the backend, which owns all agent-specific canonicalization and * rule evaluation (see tool_call_audit/classification/enrich.py). * * The only client-side work is: * - agent detection (to set agent_identity) * - session_id / tool_use_id extraction (needed for auth and dedup) * - user_prompt extraction (requires reading local files the backend cannot access) */ export interface CanonicalHookInput { agent: "claude" | "cursor" | "unknown"; hook_event_name: string; tool_name: string; tool_input: Record; tool_use_id?: string | null; session_id?: string | null; cwd?: string | null; model?: string | null; user_prompt?: string | null; raw_event: Record; } export declare function normalizeToCanonical(raw: Record): CanonicalHookInput; //# sourceMappingURL=canonical.d.ts.map