/** * Knowledge seeding from static analysis — the graph half of `aidlc discover` * (design D4: one discover command, shared scanner). * * Maps the project onto entities/relationships: modules (directories with * index files, per workspace package), dependencies (each package.json), * endpoints (Express/Fastify route regex, best-effort), and one convention * entity per detected convention — which is what lets the ideation gate's * "≥1 convention" criterion pass from auto-discovery alone (KG Req 8.1–8.3). * * All facts get confidence 0.6 and author "auto-discovery". Static analysis * only — no build, no execution. * * @module */ import type { Entity } from './types.js'; import type { ScanResult } from '../discover/scanner.js'; export interface SeedInput { entities: Array & { id: string; type: string; name: string; }>; relationships: Array<{ from: string; to: string; type: string; metadata?: Record; }>; } /** * Derive knowledge entities and relationships from a scanned project. * * @param projectRoot - Absolute project root. * @param scan - Result of `scanCodebase` (conventions reused as entities). */ export declare function seedFromScan(projectRoot: string, scan: ScanResult): SeedInput; /** * True when a description is empty or still one discovery wrote, so discovery may * replace it. Recognised by form, not author: `knowledge update` edits the text of * an `auto-discovery` entity without changing its author * (discover-clobbers-knowledge/AC-1, AC-2, AC-3). */ export declare function isDiscoveryPlaceholder(entity: Pick): boolean; //# sourceMappingURL=seed.d.ts.map