/** * Claude Code Session Discovery * * Scans the Claude Code data directory to find resumable sessions. * Sessions are stored in ~/.claude/projects/{encoded-path}/sessions-index.json */ /** * A single session entry from Claude Code's sessions-index.json */ export interface ClaudeCodeSessionEntry { sessionId: string; fullPath: string; fileMtime: number; firstPrompt: string; summary: string; messageCount: number; created: string; modified: string; gitBranch?: string; projectPath: string; isSidechain?: boolean; } /** * Session entry formatted for the mobile app */ export interface ClaudeCodeSessionResponse { id: string; summary: string; firstPrompt: string; messageCount: number; projectPath: string; projectName: string; gitBranch?: string; createdAt: string; modifiedAt: string; } /** * Options for listing sessions */ export interface ListSessionsOptions { /** Maximum number of sessions to return (default: 20) */ limit?: number; /** Filter to sessions from a specific project path */ projectPath?: string; /** Search term to filter sessions by summary or first prompt */ search?: string; } /** * List all resumable Claude Code sessions across all projects */ export declare function listClaudeCodeSessions(options?: ListSessionsOptions): ClaudeCodeSessionResponse[]; /** * Get the distinct project paths that have Claude Code sessions */ export declare function listClaudeCodeProjects(): string[]; //# sourceMappingURL=claude-sessions.d.ts.map