UNPKG

flashbacker

Version:

Claude Code state management with session continuity and AI personas

40 lines 1.29 kB
/** * Shared utilities for conversation log analysis * Centralizes session detection and JSONL parsing to eliminate duplicates */ interface SessionSummary { sessionId: string; totalMessages: number; filteredMessages: string[]; truncationInfo: string; } interface SessionOptions { maxEntriesPerSession?: number; maxCharsPerSession?: number; maxCharsPerMessage?: number; } /** * Get the current session ID */ export declare function getCurrentSessionId(projectDir?: string): Promise<string>; /** * Get both current and previous session logs with intelligent filtering */ export declare function getDualSessionLogs(projectDir: string, options?: SessionOptions): Promise<{ currentSession: SessionSummary; previousSession: SessionSummary; }>; /** * Legacy function for backward compatibility - returns current session content only */ export declare function getLatestConversationLog(projectDir: string, maxEntries?: number): Promise<string>; /** * Get current session information - lightweight check using only session ID */ export declare function getCurrentSessionInfo(projectDir?: string): Promise<{ sessionId: string; projectDir: string; conversationAvailable: boolean; }>; export {}; //# sourceMappingURL=conversation-logs.d.ts.map