claude-sesh
Version:
Session explorer for Claude Code - find, search, and resume all your past sessions
38 lines • 1.25 kB
TypeScript
export interface SessionBookmark {
sessionId: string;
starred: boolean;
tags: string[];
note: string;
createdAt: Date;
updatedAt: Date;
}
export interface BookmarksData {
version: number;
bookmarks: Record<string, SessionBookmark>;
}
declare class BookmarksService {
private dataDir;
private filePath;
private data;
constructor();
private loadData;
private saveData;
private getOrCreateBookmark;
getBookmark(sessionId: string): SessionBookmark | null;
getAllBookmarks(): SessionBookmark[];
getStarredSessions(): SessionBookmark[];
toggleStar(sessionId: string): boolean;
setStar(sessionId: string, starred: boolean): void;
addTag(sessionId: string, tag: string): string[];
removeTag(sessionId: string, tag: string): string[];
setTags(sessionId: string, tags: string[]): string[];
setNote(sessionId: string, note: string): void;
getNote(sessionId: string): string;
getAllTags(): string[];
getSessionsByTag(tag: string): string[];
deleteBookmark(sessionId: string): void;
cleanup(existingSessionIds: Set<string>): number;
}
export declare const bookmarksService: BookmarksService;
export {};
//# sourceMappingURL=bookmarks.d.ts.map