/** * Persistent Mode Hook * * Unified handler for persistent work modes: ultrawork, ralph-loop, and todo-continuation. * This hook intercepts Stop events and enforces work continuation based on: * 1. Active ultrawork mode with pending todos * 2. Active ralph-loop with incomplete promise * 3. Any pending todos (general enforcement) * * Priority order: Ralph Loop > Ultrawork > Todo Continuation */ export interface PersistentModeResult { /** Whether to block the stop event */ shouldBlock: boolean; /** Message to inject into context */ message: string; /** Which mode triggered the block */ mode: 'ralph-loop' | 'ultrawork' | 'todo-continuation' | 'none'; /** Additional metadata */ metadata?: { todoCount?: number; iteration?: number; maxIterations?: number; reinforcementCount?: number; }; } /** * Main persistent mode checker * Checks all persistent modes in priority order and returns appropriate action */ export declare function checkPersistentModes(sessionId?: string, directory?: string): Promise; /** * Create hook output for Claude Code */ export declare function createHookOutput(result: PersistentModeResult): { continue: boolean; reason?: string; message?: string; }; //# sourceMappingURL=index.d.ts.map