ai-debug-local-mcp
Version:
🎯 ENHANCED AI GUIDANCE v4.1.2: Dramatically improved tool descriptions help AI users choose the right tools instead of 'close enough' options. Ultra-fast keyboard automation (10x speed), universal recording, multi-ecosystem debugging support, and compreh
52 lines • 1.58 kB
TypeScript
/**
* Persistent Storage for Session Registry
*
* Provides filesystem-based persistence for debugging sessions so they survive
* across STDIO server restarts. Critical for STDIO mode where each call
* creates a fresh server instance.
*/
import { ProjectSession } from './types';
export interface PersistedSessionData {
sessions: Record<string, ProjectSession>;
workingDirToSession: Record<string, string>;
lastUpdated: number;
version: string;
}
export declare class PersistentSessionStorage {
private storageFile;
private lockFile;
private readonly version;
constructor(storageDirectory?: string);
/**
* Load sessions from persistent storage
*/
loadSessions(): Promise<{
sessions: Map<string, ProjectSession>;
workingDirToSession: Map<string, string>;
}>;
/**
* Save sessions to persistent storage
*/
saveSessions(sessions: Map<string, ProjectSession>, workingDirToSession: Map<string, string>): Promise<void>;
/**
* Clean up old sessions from storage
*/
cleanupOldSessions(maxAgeMs?: number): Promise<number>;
/**
* Get storage statistics
*/
getStorageStats(): Promise<{
fileExists: boolean;
fileSizeBytes: number;
sessionCount: number;
lastUpdated: Date | null;
}>;
/**
* Remove all persistent sessions (nuclear option)
*/
clearAllSessions(): Promise<void>;
private ensureStorageDirectory;
private acquireLock;
private removeLock;
}
//# sourceMappingURL=persistent-storage.d.ts.map