UNPKG

@akiojin/claude-worktree

Version:

Interactive Git worktree manager for Claude Code with graphical branch selection

60 lines 1.75 kB
/** * Claude Code conversation session information */ export interface ClaudeConversation { id: string; sessionId?: string; title: string; lastActivity: number; messageCount: number; projectPath: string; filePath: string; summary?: string; } /** * Message structure for conversation details */ export interface ClaudeMessage { role: 'user' | 'assistant'; content: string | Array<{ text: string; type?: string; }>; timestamp?: number; } /** * Detailed conversation with full message history */ export interface DetailedClaudeConversation extends ClaudeConversation { messages: ClaudeMessage[]; } /** * Claude Code history manager error */ export declare class ClaudeHistoryError extends Error { cause?: unknown | undefined; constructor(message: string, cause?: unknown | undefined); } /** * Check if Claude Code is configured on this system */ export declare function isClaudeHistoryAvailable(): Promise<boolean>; /** * Get detailed conversation with all messages */ export declare function getDetailedConversation(conversation: ClaudeConversation): Promise<DetailedClaudeConversation | null>; /** * Get all Claude Code conversations */ export declare function getAllClaudeConversations(): Promise<ClaudeConversation[]>; /** * Get conversations filtered by project/worktree path */ export declare function getConversationsForProject(worktreePath: string): Promise<ClaudeConversation[]>; /** * Launch Claude Code with a specific conversation */ export declare function launchClaudeWithConversation(worktreePath: string, conversation: ClaudeConversation, options?: { skipPermissions?: boolean; }): Promise<void>; //# sourceMappingURL=claude-history.d.ts.map