/** * Session Continuation — Nonstop When Tasks Remain * * Inspired by oh-my-openagent's start-work-continuation (nonstop). * Checks for pending/in-progress tasks on compaction and injects a * continuation directive so the agent auto-continues instead of stopping. * * 0-risk: all operations are wrapped, failures return empty/null. */ export interface ContinuationState { /** Whether we've injected continuation in this compaction cycle */ injected: boolean; /** Mark as injected */ markInjected: () => void; /** Reset for next cycle */ reset: () => void; } export declare function createContinuationState(): ContinuationState; export interface PendingTaskInfo { folder: string; name: string; status: string; summary?: string; } /** * Get pending/in_progress tasks for the active feature. * Uses the hive-core services directly. */ export declare function getPendingTaskCount(directory: string): { feature: string | null; pending: PendingTaskInfo[]; nextTask: PendingTaskInfo | null; }; /** * Build a continuation context block for injection into compaction. */ export declare function buildContinuationContext(feature: string, pending: PendingTaskInfo[], nextTask: PendingTaskInfo | null): string | null;