/** * Session Resume Service - Smart session continuation with suggestions */ import type { Session, SessionCommand } from '../types/session.types.js'; import { SessionStore } from '../session/store.js'; export interface SessionAnalysis { lastCommand: null | SessionCommand; nextSuggestions: string[]; session: Session; status: 'blocked' | 'complete' | 'ready' | 'review' | 'testing'; statusMessage: string; } export declare class SessionResumeService { private sessionStore; private readonly workflowMap; constructor(sessionStore?: SessionStore); /** * Get the last active session */ getLastActiveSession(): Promise; /** * Analyse session status and determine next steps */ analyzeSession(session: Session): SessionAnalysis; /** * Create analysis for new sessions */ private createNewSessionAnalysis; /** * Create analysis for failed commands */ private createFailedCommandAnalysis; /** * Create workflow-based analysis */ private createWorkflowAnalysis; /** * Determine workflow status based on command history */ private determineWorkflowStatus; /** * Check if session is ready to commit */ private isReadyToCommit; /** * Create default workflow analysis using workflow map */ private createDefaultWorkflowAnalysis; /** * Get unique suggestions limited to top 5 */ private getUniqueSuggestions; /** * Prompt user to resume session with suggestions */ promptResume(sessionId?: string): Promise; /** * Format age (relative time) */ private formatAge; /** * Get status with color */ private getStatusColor; /** * Get command description */ private getCommandDescription; } //# sourceMappingURL=session-resume.d.ts.map