/** * Reference-context walker for the generate-adrs feature. * * Walks a user-configured reference-context path (per Travis Step * 2.1.a SECOND substantive reframe: reference context as PROMPT INPUT * rather than direct extraction substrate) using Scope γ' multi- * format substrate from Step 2.1.a (`src/utils/adr-enumeration.ts` + * `src/parsing/rst-parser.ts`). * * Output is concatenated into the GENERATE_ADRS_PROMPT input after * the codebase inventory. The LLM reasons over both inputs and * generates canonical ContextAtlas-format ADRs per the prompt * template. * * Per Lock 1 (v0.7 Step 2.2.a.2): γ user-configurable scope is the * primary inclusion mechanism. User narrows scope via the path they * pass to `--reference-context`. Token-counting + soft-warning at * 500k tokens is implemented in `cost-estimator.ts` (caller-side); * this walker just builds the text. */ export interface ReferenceContextOptions { /** Absolute path to the user-provided reference-context root. */ referenceContextPath: string; } /** * Build the reference-context text representation. Returns an empty * string if no matching ADR files exist at the path — caller should * treat empty output as "no reference context to include" and skip * the reference-context section in the prompt entirely. * * The walker honors Scope γ' multi-format conventions (.md + .rst; * Nygard / ADR-NN / Date naming; recursive depth-2). Non-conforming * filenames at the reference root are skipped — same substrate * contract as state-detection + extraction (FO-2 fix from Step * 2.1.a). */ export declare function buildReferenceContext(options: ReferenceContextOptions): string; //# sourceMappingURL=reference-context-walker.d.ts.map