/** * `specweave glossary check`: drift between GLOSSARY.md and the code. * * - avoided-word: a word a term lists under Avoid appears as a whole word or * identifier segment in a tracked code file (`PurchaseItem`, `purchase_id`, * `submit(purchase)`, a `purchases` table, a UI string). Markdown and text files * and comment lines are skipped, so prose stays quiet. * - missing-pointer: a backticked path under Data or Code is not in the project, a * route (`POST /orders`) or identifier (`Order.id`: each part) is found nowhere in * the tracked files. * - avoid-is-a-term: one term avoids a word another term is named after. * * Read-only and offline; it shells out to `git grep` only. * * @module core/glossary/check */ export type GlossaryFindingKind = 'avoided-word' | 'missing-pointer' | 'avoid-is-a-term'; export interface GlossaryFinding { kind: GlossaryFindingKind; term: string; /** Where the term is defined, `GLOSSARY.md:12`. */ at: string; word?: string; /** For avoided-word: `src/cart.ts:14`. */ file?: string; line?: number; identifier?: string; pointer?: string; level?: string; } export interface GlossaryCheckResult { files: string[]; terms: number; findings: GlossaryFinding[]; /** avoided-word hits not listed because of the per-word cap. */ truncated: number; } /** `PurchaseItem` → [purchase, item]; `line_items` → [line, items]. */ export declare function segments(token: string): string[]; /** Does `token` contain the avoided word (its segments, in order)? */ export declare function tokenUsesWord(token: string, word: string[]): boolean; export declare function checkGlossary(root: string): GlossaryCheckResult; export declare function describeFinding(f: GlossaryFinding): string; //# sourceMappingURL=check.d.ts.map