/** * Horizontal Evolution - Evolve across sessions * * Takes fragments from the last N sessions and evolves them into * a compressed current state. The window naturally prevents crud * buildup - old sessions age out, no algorithmic pruning needed. */ import type { AllFragments } from './schemas.js'; export interface SessionSnapshot { sessionId: string; timestamp: Date; fragments: AllFragments; } export interface HorizontalEvolutionConfig { apiKey: string; baseUrl?: string; model?: string; windowSize?: number; currentFragments?: AllFragments; timeoutMs?: number; externalFragments?: Array<{ projectName: string; fragments: AllFragments; }>; } export interface HorizontalEvolutionResult { current: AllFragments; tokensUsed: number; sessionsIncluded: number; musings?: string; } /** * Perform horizontal evolution across session snapshots */ export declare function evolveHorizontal(snapshots: SessionSnapshot[], config: HorizontalEvolutionConfig): Promise; //# sourceMappingURL=horizontal.d.ts.map