/** * Work continuation hook: checks if there's an active plan with remaining tasks * and returns a continuation prompt to keep the executor going. */ /** * Marker embedded in continuation prompts so that `chat.message` can distinguish * continuation-injected messages from user-initiated messages. * When a user message arrives WITHOUT this marker (and is not a /start-work command), * the plugin auto-pauses work to prevent the infinite continuation loop. */ export declare const CONTINUATION_MARKER = ""; /** Maximum consecutive continuations without progress before auto-pausing */ export declare const MAX_STALE_CONTINUATIONS = 3; export interface ContinuationInput { sessionId: string; directory: string; } export interface ContinuationResult { /** Continuation prompt to inject, or null if no active work / plan complete */ continuationPrompt: string | null; /** Agent to restore before injecting continuation, when needed */ switchAgent?: string | null; } /** * Check if there's active work that should continue. * Returns a continuation prompt if the plan has remaining tasks, null otherwise. */ export declare function checkContinuation(input: ContinuationInput): ContinuationResult;