/** * core/status-cache.ts — In-memory cache for session status snapshots. * * Stores parsed summaries with content hashing for change detection. * Shared across all sessions — any MCP client can read/write. * * Part of Session Orchestration (Phase 1, v0.7). */ export interface StatusSnapshot { sessionId: string; sessionName: string; /** When this snapshot was created */ timestamp: number; /** Busy/idle state */ state: "idle" | "busy" | "error" | "disconnected"; /** AI-parsed 1-2 sentence summary */ summary: string; /** Hash of the raw terminal content when summary was generated */ contentHash: string; /** When the terminal content was last probed */ lastProbeAt: number; } /** Hash terminal content for change detection */ export declare function hashContent(content: string): string; /** * StatusCache — in-memory cache of parsed session summaries. * * Lives in the daemon process, shared across all MCP clients. */ export declare class StatusCache { private cache; /** Store a parsed summary for a session */ set(sessionId: string, snapshot: StatusSnapshot): void; /** Get cached snapshot for a session */ get(sessionId: string): StatusSnapshot | undefined; /** Get all cached snapshots */ getAll(): StatusSnapshot[]; /** Check if content has changed since last probe */ hasChanged(sessionId: string, currentContentHash: string): boolean; /** Update just the probe timestamp (content unchanged) */ touch(sessionId: string): void; /** Remove a session from cache */ delete(sessionId: string): void; /** Clear entire cache */ clear(): void; /** Number of cached entries */ get size(): number; } /** Singleton cache instance for the daemon */ export declare const statusCache: StatusCache; //# sourceMappingURL=status-cache.d.ts.map