/** * Session-tracker enrichment helpers for continuity records. * * P41-C: All 5 readers now prefer session-tracker data over old files. * These helpers merge gap fields (lifecycle, pendingNotifications, * compactionCheckpoint) from child session-tracker records into the * in-memory SessionContinuityRecord before use. * * Key constraints: * - Does NOT import continuity/index.ts (prevents circular dependency) * - Does NOT import features/session-tracker/persistence/ * - Does NOT mutate originals (returns new objects) * - Never throws (internal try-catch returns original record) * - Not exported from continuity/index.ts — imported directly by consumers * * @module task-management/continuity/continuity-reader */ import type { SessionContinuityRecord } from "../../shared/types.js"; /** * Enhances a single continuity record with session-tracker data. * * Tries to resolve the session via session-tracker. If the resolved record is * a child (delegated session) and carries any of the 3 enrichment fields * (lifecycle, pendingNotifications, compactionCheckpoint), they are merged * into the returned record. Otherwise returns the original. * * @param record - The continuity record to enrich. * @param projectRoot - Optional project root. When undefined, returns the * original record unchanged (no enrichment). * @returns A new enriched record, or the original if no enrichment occurred. */ export declare function enrichContinuityWithTracker(record: SessionContinuityRecord, projectRoot?: string): Promise; /** * Enhances a list of continuity records with session-tracker data. * * Runs all enrichments in parallel via Promise.all for efficiency. * * @param records - Array of continuity records to enrich. * @param projectRoot - Optional project root. When undefined, returns the * original list unchanged. * @returns Array of enriched records (or originals if no enrichment needed). */ export declare function enrichContinuityListWithTracker(records: SessionContinuityRecord[], projectRoot?: string): Promise; //# sourceMappingURL=continuity-reader.d.ts.map