bc-code-intelligence-mcp
Version:
BC Code Intelligence MCP Server - Complete Specialist Bundle with AI-driven expert consultation, seamless handoffs, and context-preserving workflows
30 lines • 1.33 kB
TypeScript
/**
* File-Based Session Storage
*
* Provides persistent session storage using JSON files in a configurable directory.
* Supports both local user directories and shared team/company directories.
*/
import { SessionStorage, SessionStorageConfig, SpecialistSession, SessionSummary } from '../../types/session-types.js';
export declare class FileSessionStorage implements SessionStorage {
private config;
private sessionDirectory;
private initialized;
constructor(config?: SessionStorageConfig);
private getSessionDirectory;
private ensureInitialized;
private getSessionFilePath;
private writeSessionFile;
private readSessionFile;
createSession(session: SpecialistSession): Promise<void>;
getSession(sessionId: string): Promise<SpecialistSession | null>;
updateSession(session: SpecialistSession): Promise<void>;
deleteSession(sessionId: string): Promise<void>;
getUserSessions(userId: string): Promise<SessionSummary[]>;
getActiveSessions(userId: string): Promise<SessionSummary[]>;
getSpecialistSessions(specialistId: string): Promise<SessionSummary[]>;
private getSessions;
private sessionToSummary;
cleanupExpiredSessions(): Promise<number>;
getUserSessionCount(userId: string): Promise<number>;
}
//# sourceMappingURL=file-storage.d.ts.map