/** * Ingestion functions for RCASD phase markdown and loose agent-output markdown * into the canonical docs_pipeline_manifest table. * * @task T1099 * @epic T1093 — MANIFEST/RCASD Architecture Unification * @spec T1096 */ /** * Result of an ingestion operation. */ export interface IngestionResult { /** Number of entries successfully ingested. */ ingested: number; /** Number of identical persisted entries skipped. */ skipped: number; } /** * Type for Drizzle ORM SQLite database instance. */ type NodeSQLiteDatabase = Awaited>; /** * Ingest RCASD phase markdown into the selected project's canonical manifest. * * @remarks * Reads `.cleo/rcasd///*.md` without rewriting source content. * The entire prepared batch commits atomically. Only identical persisted payloads * are skipped; changed identities and legacy evidence require explicit repair. * @param projectRoot - Explicit project directory owning the input and database. * @param db - Caller-owned canonical task-domain database for that project. * @returns Counts of inserted and identical existing entries. * @throws If source reads, database ownership, history checks, or writes fail. * @example * ```ts * const result = await ingestRcasdDirectories(projectRoot, db); * ``` */ export declare function ingestRcasdDirectories(projectRoot: string, db: NodeSQLiteDatabase): Promise; /** * Ingest top-level agent-output markdown into the canonical manifest atomically. * * @remarks * Reads `.cleo/agent-outputs/*.md` without descending into subdirectories. * Preserves original content, source path, timestamp, and filename-derived metadata. * Missing input directories are empty inputs; read and write failures propagate. * @param projectRoot - Explicit project directory owning the input and database. * @param db - Caller-owned canonical task-domain database for that project. * @returns Counts of inserted and identical existing entries. * @throws If source reads, database ownership, history checks, or writes fail. * @example * ```ts * const result = await ingestLooseAgentOutputs(projectRoot, db); * ``` */ export declare function ingestLooseAgentOutputs(projectRoot: string, db: NodeSQLiteDatabase): Promise; export {}; //# sourceMappingURL=manifest-ingestion.d.ts.map