/** * Persistence Engine * * Ensures tasks execute to completion with automatic recovery and retry. */ export interface PersistenceConfig { maxRetries: number; retryDelayMs: number; autoRecover: boolean; confirmCompletion: boolean; } export interface ExecutionProgress { skill: string; phase: string; status: 'running' | 'paused' | 'completed' | 'failed'; progress: number; attempts: number; lastError?: string; startedAt: string; } /** * Initialize persistence engine with recovery */ export declare function initializePersistence(cwd: string, config?: Partial): void; /** * Ensure workflow continues execution */ export declare function ensureExecution(skill: string, cwd: string, config?: Partial): Promise; /** * Mark workflow as requiring continuation */ export declare function requireContinuation(skill: string, cwd: string): void; /** * Check if any workflow requires continuation */ export declare function getContinuationStatus(cwd: string): { skill: string; phase: string; progress: number; } | null; /** * Wait for workflow completion with polling */ export declare function waitForCompletion(skill: string, cwd: string, timeoutMs?: number): Promise; /** * Get persistence status for HUD */ export declare function getPersistenceStatus(cwd: string): string; //# sourceMappingURL=persistence.d.ts.map