#!/usr/bin/env node /** * Forgen — Session Recovery Hook * * Claude Code SessionStart 훅으로 등록. * 이전 세션에서 활성화된 지속 모드(ralph, autopilot, ultrawork)의 * 상태를 복구하여 작업을 자동 재개합니다. */ export interface Checkpoint { sessionId: string; mode: string; modifiedFiles: string[]; lastToolCall: string; toolCallCount: number; timestamp: string; cwd: string; } /** 체크포인트 저장 */ export declare function saveCheckpoint(data: Checkpoint): void; /** 체크포인트 로드 */ export declare function loadCheckpoint(sessionId: string): Checkpoint | null; /** 오래된 체크포인트 삭제 */ export declare function cleanStaleCheckpoints(maxAgeMs?: number): number; export declare function resolveSessionStartContext(rawInput: string): { sessionId: string; cwd: string; };