/** * Project continuity completeness check for session tracker. * * Ensures project-continuity.json contains ALL known sessions by walking * the session-tracker directory tree. Extracted from index.ts to satisfy * the ≤500 LOC gate (GA-4). * * @module session-tracker/project-continuity */ import type { ProjectIndexWriter } from "./persistence/project-index-writer.js"; /** * Dependencies injected by SessionTracker for project continuity operations. */ export interface ProjectContinuityDeps { /** Project index writer for addSession calls. */ projectIndexWriter: ProjectIndexWriter; /** Absolute path to the project root. */ projectRoot: string; } /** * Ensures project-continuity.json contains ALL known sessions. * * Walks the session-tracker directory tree and checks that every session * (main .md files AND child .json files) is registered in the project index. * Missing entries are added. This fixes CP-ST-02's AC-08 requirement. * * Best-effort: individual failures are silently skipped. * * Usage: * ```typescript * const checker = new ProjectContinuityChecker({ projectIndexWriter, projectRoot }) * await checker.ensureCompleteness() * ``` */ export declare class ProjectContinuityChecker { private readonly projectIndexWriter; private readonly projectRoot; /** * @param deps - Injected dependencies. */ constructor(deps: ProjectContinuityDeps); /** * Walks the session-tracker directory and registers any missing sessions. * * For each valid session directory: * 1. Registers the main session if not already in the index. * 2. Scans for child `.json` files and registers each child session. * * Silently skips invalid or unreadable entries. */ ensureCompleteness(): Promise; } //# sourceMappingURL=project-continuity.d.ts.map