/**
 * Hook handler types for CLI delegation model.
 *
 * All hook handlers share this contract:
 * - Read JSON from stdin (HookInput)
 * - Return JSON to stdout (HookResult)
 * - Never throw — errors become safe fallback responses
 *
 * @module core/hooks/handlers/types
 */
/** Map of event types to their safe fallback responses */
export const SAFE_DEFAULTS = {
    'user-prompt-submit': { decision: 'approve' },
    'pre-tool-use': { continue: true },
    // Compaction / turn-end must never be blocked by a handoff failure.
    'pre-compact': { continue: true },
    'stop': { continue: true },
};
/** Get safe default response for an event type */
export function getSafeDefault(eventType) {
    return SAFE_DEFAULTS[eventType] ?? { continue: true };
}
//# sourceMappingURL=types.js.map