UNPKG

claude-sesh

Version:

Session explorer for Claude Code - find, search, and resume all your past sessions

40 lines 1.77 kB
import type { ClaudeMessage, ParsedSession, TodoItem, StatsCache, DailyActivity, HeatmapData, CommandHistoryEntry, PlanFile, Leaderboard, TimelineData } from '../types/index.js'; export declare function formatModelName(model: string): string; export declare class SessionParser { private sessionCache; private cacheTimestamp; private cacheTTL; private isCacheValid; private rebuildCache; getProjectFolders(): string[]; getProjects(): string[]; getSessionFiles(projectFolder: string): string[]; parseSessionFile(filePath: string): ParsedSession | null; private aggregateSession; getAllSessions(limit?: number): ParsedSession[]; getProjectSessions(projectPath: string, limit?: number): ParsedSession[]; getSession(sessionId: string): ParsedSession | null; getRawMessages(sessionId: string): ClaudeMessage[]; getSessionTodos(sessionId: string): TodoItem[]; getResumableSessions(limit?: number): Array<ParsedSession & { resumeReason: string; resumeScore: number; }>; buildResumeContext(sessionId: string, enrichedData?: { summary?: string; keyDecisions?: string[]; problemsSolved?: string[]; knowledgeGained?: string[]; }): string | null; getStatsCache(): StatsCache | null; getDailyActivity(): DailyActivity[]; getHeatmapData(weeks?: number): HeatmapData; getCommandHistory(limit?: number): CommandHistoryEntry[]; getPlanFiles(): PlanFile[]; getLeaderboard(type: Leaderboard['type'], limit?: number): Leaderboard; getTimelineData(days?: number): TimelineData; getSessionsByDate(dateStr: string): ParsedSession[]; } export declare const parser: SessionParser; export default parser; //# sourceMappingURL=parser.d.ts.map