/** * codescan.ts — zero-setup fallback for when no graphify graph.json exists. * * graphify is an ACCELERATOR, not a requirement. When a graph is present we match * spec triggers against its extracted symbol nodes (richer, deduped, community- * aware). When it is absent, we still want `verify` and `reverse` to work — so we * scan the code directory directly and synthesize the same `GraphNode[]` shape * from declared symbol names (function / class / const / type / def …) found by a * light regex sweep. The downstream lexical matcher then behaves identically. * * This is deliberately simple: no parser, no AST, no deps. It will miss some * symbols a real parser would catch — which is exactly why graphify, when * available, is the better surface. The point is graceful degradation: something * useful with zero setup, something better with graphify. */ import type { GraphNode } from './graphify.js'; /** * Scan a code directory and synthesize GraphNode[] from declared symbol names — * the no-graphify fallback. Each declaration becomes one node whose `label` is * the symbol name and whose `source_file` is the relative path, so the existing * lexical matcher works unchanged. */ export declare function scanCodeAsNodes(codeDir: string): GraphNode[]; //# sourceMappingURL=codescan.d.ts.map