/** * Prompt-artifact copy for `contextatlas init` (v0.7 Step 2.3.a.0 — * Path-γ Read-tool refactor substrate). * * At init time, copies the canonical prompt artifacts shipped in the * contextatlas package (`dist/extraction/prompt.md` + * `dist/generation/prompt.md`, generated at build time from the .ts * source-of-truth) into the user repo's `.contextatlas/prompts/` * directory. Claude Code skills (`/index-atlas`, `/generate-adrs`) * load these via Read tool against a predictable cwd-relative path. * * Source artifacts (in the contextatlas package): * - `/dist/extraction/prompt.md` ← EXTRACTION_PROMPT * - `/dist/generation/prompt.md` ← GENERATE_ADRS_PROMPT * * Destination artifacts (in the user repo): * - `/.contextatlas/prompts/extraction.md` * - `/.contextatlas/prompts/generate-adrs.md` * * The copy is idempotent (overwrites existing files). Package version * upgrades should re-run `contextatlas init` to refresh artifacts; * doctor warns on artifact staleness (separate check). * * Per CLAUDE.md frozen-prompt invariant (v0.7 amendment): the prompt * substrate value is canonical (.ts source); the load mechanism * evolves (build-time .md → init-time copy → Read-tool consumption). */ export interface PromptArtifactCopyResult { /** Absolute path to user-repo `.contextatlas/prompts/extraction.md`. */ readonly extractionMdPath: string; /** Absolute path to user-repo `.contextatlas/prompts/generate-adrs.md`. */ readonly generateAdrsMdPath: string; /** True when `.contextatlas/prompts/` line was appended to .gitignore. */ readonly gitignoreUpdated: boolean; /** * True when no `.gitignore` was found at configRoot — init does NOT * create one to avoid surprising users; informational only. */ readonly gitignoreMissing: boolean; } /** * Copy prompt artifacts from the contextatlas package's `dist/` into * the user repo's `.contextatlas/prompts/` directory and stamp the * user repo's `.gitignore` with the `.contextatlas/prompts/` entry * if a `.gitignore` exists. * * Test seam: `packageDistRootOverride` lets unit tests point at a * fixture directory instead of resolving from import.meta.url. */ export declare function copyPromptArtifacts(opts: { readonly configRoot: string; readonly packageDistRootOverride?: string; }): PromptArtifactCopyResult; //# sourceMappingURL=prompt-artifact-copy.d.ts.map