import { BaseIngestor } from './base-ingestor'; import { Dimension } from '../core/multi-db-manager'; import { MultiDbManager } from '../core/multi-db-manager'; /** * Ingests ADRs from docs/adr/*.md (W-Dimension) */ export declare class AdrIngestor implements BaseIngestor { private dbManager; constructor(dbManager: MultiDbManager); getDimension(): Dimension; ingestFull(workspaceRoot: string, pluginId: string, docsPath: string): Promise; ingestIncremental(workspaceRoot: string, pluginId: string, docsPath: string): Promise; /** * Ingests a single ADR file. */ private ingestAdrFile; /** * Recursively finds all ADR files (.md) in the given directory and subdirectories. * * @param adrDir The ADR directory to search * @returns Array of full file paths to ADR files */ private findAdrFilesRecursively; /** * Extracts ADR number from file name (e.g., "020-api-doc-tiefe.md" -> "020"). */ private extractAdrNumber; /** * Extracts title from ADR content (first # heading). */ private extractTitle; /** * Extracts file path references from ADR content. * Looks for patterns like `src/path/file.ts`, `5d-database-plugin/src/path/file.ts`, or `[file.ts](src/path/file.ts)`. * Normalizes paths to match database format by checking which format exists in the database. */ private extractFileMappings; /** * Normalizes a file path to match database format. * Checks if file exists with/without plugin prefix and returns the correct format. */ private normalizeFilePath; /** * Computes SHA256 hash of content. */ private computeContentHash; } //# sourceMappingURL=adr-ingestor.d.ts.map