/** * Temporal Narrative Generator * * Produces multi-resolution narratives from episodes and semantic notes: * - day: detailed events (~400 tokens) * - week: key decisions and progress (~800 tokens) * - month: high-level arc (~1200 tokens) * - quarter: strategic 3-month arc (~2000 tokens) * - half_year: bird's-eye 6-month arc (~2500 tokens) * * These narratives replace raw note dumps in bootstrap and give the agent * coherent temporal awareness across long-running sessions. */ import type { Database } from "./schema.js"; import type { NarrativeResolution } from "./narrative-types.js"; export declare function getPeriodBounds(db: Database, threadId: number, resolution: NarrativeResolution): { start: string; end: string; }; /** * Generate all temporal narratives for a thread, respecting cooldowns. * Returns narratives that were generated or already cached. */ export declare function runNarrativeGeneration(db: Database, threadId: number, options?: { force?: boolean; }): Promise<{ generated: NarrativeResolution[]; cached: NarrativeResolution[]; errors: string[]; }>; /** * Get the latest narratives for bootstrap injection. * Returns available narratives without triggering generation. */ export declare function getNarrativesForBootstrap(db: Database, threadId: number): Record; //# sourceMappingURL=narrative.d.ts.map