/** * /dream — consolidation. Distills accumulated session logs into the * curated workspace MEMORY.md (deduplicated, organized), then archives * the consumed logs. Auto-gated: runs only when enough time and sessions * have accumulated, with a cross-process lock so concurrent sessions * can't double-dream. */ import type { ModelClient } from '../agent/llm.js'; export declare const DREAM_MIN_HOURS = 4; export declare const DREAM_MIN_SESSIONS = 3; export declare function dreamGatesPass(workDir: string, now?: number): boolean; export interface DreamResult { consolidated: boolean; logsConsumed: number; reason?: string; } export declare function runDream(opts: { client: ModelClient; model: string; workDir: string; signal?: AbortSignal; /** Skip the time/count gates (explicit /dream command). */ force?: boolean; }): Promise;