/** * Ingestion functions for RCASD phase markdown and loose agent-output markdown * into 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 entries skipped (due to duplication or errors). */ skipped: number; } /** * Type for Drizzle ORM SQLite database instance. */ type NodeSQLiteDatabase = Awaited>; /** * Ingest RCASD phase directories into pipeline_manifest. * * Reads `.cleo/rcasd///*.md` files and inserts each as a * pipeline_manifest row with: * - task_id: extracted from parent directory name * - type: mapped from phase directory name per §3.4 * - content: full file contents * - source_file: relative path from project root * - metadata_json: {phase, rcasd_origin: true, ...} * * Uses INSERT OR IGNORE on content_hash for idempotency. * * @param projectRoot - absolute path to project root * @param db - Drizzle ORM database instance * @returns {ingested, skipped} */ export declare function ingestRcasdDirectories(projectRoot: string, db: NodeSQLiteDatabase): Promise; /** * Ingest loose agent-output markdown files into pipeline_manifest. * * Reads `.cleo/agent-outputs/*.md` (maxdepth=1, no subdirectory recursion) and * inserts each as a pipeline_manifest row with: * - task_id: extracted from filename using T\d+ pattern, or null * - type: inferred from filename per §4.3 and overrides * - content: full file contents * - source_file: relative path: `.cleo/agent-outputs/` * - metadata_json: {loose_origin: true, original_filename, ...} * * Uses INSERT OR IGNORE on content_hash for idempotency. * * @param projectRoot - absolute path to project root * @param db - Drizzle ORM database instance * @returns {ingested, skipped} */ export declare function ingestLooseAgentOutputs(projectRoot: string, db: NodeSQLiteDatabase): Promise; export {}; //# sourceMappingURL=manifest-ingestion.d.ts.map