#!/usr/bin/env node import { CortexStore } from '../db/store.js'; /** * Every action the bridge accepts, as a runtime VALUE. * * A bare union exists only at compile time, and this function's dispatch is a * chain of `if`s with no exhaustive `switch` and no `never` guard — so a new * member without its branch compiles cleanly and falls through to the reflex * path. That trap has now been hit twice (`dispatch-pre` in Story 5.2, * `subagent-stop` here), and each time the only thing standing between it and * production was a hand-written per-action test somebody remembered to add. * Deriving the type FROM the array lets one test iterate every member, so the * third instance is caught by a test nobody has to remember to write. */ export declare const HOOK_ACTIONS: readonly ["post", "reflect-prompt", "reflect-pre", "reflect-edit", "reflect-cmd", "reflect-agent", "dispatch-pre", "subagent-start", "subagent-stop", "guard-memory", "end-of-turn"]; export type HookAction = (typeof HOOK_ACTIONS)[number]; export interface HookRuntimeOptions { sessionId?: string; stateDir?: string; requireEngagement?: boolean; } export declare function handleHookPayload(store: CortexStore, action: HookAction, rawPayload: string, cwd: string, options?: HookRuntimeOptions): string; //# sourceMappingURL=hook-entry.d.ts.map