/** * Config scaffold writer for `contextatlas init` per v0.6 Step 4.2 * (Stream A pipeline assembly per Q4.0.5 lock + Q4.2.1-Q4.2.5 sub- * adjudications); revised at v0.7 Step 1.4b per Path-3 entry-point- * determined architecture (ADR-02 v0.7 Step 1.4b amendment). * * Pure-function `buildConfigScaffold` produces YAML string; * idempotent `writeConfigScaffold` checks existence before writing. * * Architecture field deprecated at v0.7+ per Path-3 reframe; scaffold * no longer writes the field (extraction path determined by * invocation context — CLI = Anthropic API direct; /index-atlas * Claude Code skill = subscription-bounded). Legacy v0.6 user * configs with architecture field set continue parsing cleanly with * stderr deprecation warning emission at parser layer per Q1.0.8 * lock; field removed at v0.8+. */ import type { LanguageCode } from "../types.js"; export type ConfigScaffoldResult = { readonly status: "created"; readonly path: string; } | { readonly status: "preserved"; readonly path: string; }; export interface ConfigScaffoldOptions { readonly configRoot: string; readonly languages: readonly LanguageCode[]; /** * When true, write `observability: { enabled: true }` into the * scaffold per v0.6 Step 6.2 / Q6.0.4 hybrid wiring. The flag IS * the consent signal per ADR-20 cohort observability contract. * Default false (section absent → observability disabled). */ readonly observe?: boolean; } /** * Build YAML scaffold string. Pure function (no I/O); inputs come * from runner. * * Header comment surfaces provenance ("generated by `contextatlas * init`") + DESIGN.md cross-reference per Point 4 lock at Step 4.2 * surface review (cohort UX provenance + schema documentation * pointer). */ export declare function buildConfigScaffold(opts: { readonly languages: readonly LanguageCode[]; readonly observe?: boolean; }): string; /** * Write scaffold to repo root, preserving existing config per Q4.0.12 * idempotent skip-when-present lock. Returns result enum describing * what happened. */ export declare function writeConfigScaffold(opts: ConfigScaffoldOptions): ConfigScaffoldResult; //# sourceMappingURL=config-scaffold.d.ts.map