// src/engine/code-scanner/index.ts — Public API for SPEC-441 code reality checker
export { extractKeywords, toSymbolVariants } from './keyword-extractor.js';
export { scanLayers } from './layer-scanner.js';
export { scoreGap } from './gap-scorer.js';
import { extractKeywords, toSymbolVariants } from './keyword-extractor.js';
import { scanLayers } from './layer-scanner.js';
import { scoreGap } from './gap-scorer.js';
/**
 * Run the full code reality check for a spec in a project.
 * Returns a GapScore describing how much of the spec is already in code.
 */
export async function checkCodeReality(projectPath, specTitle, specDescription) {
    const keywords = extractKeywords(specTitle, specDescription);
    const variants = toSymbolVariants(keywords);
    const layers = await scanLayers(projectPath, keywords, variants);
    return scoreGap(layers);
}
//# sourceMappingURL=index.js.map