/** * One-shot 1.x → 2.0 config migration. * * Runs on every load, but only ever reports `changed: true` when it actually * rewrote something, so callers persist the file at most once. Composes the * `limits` migration (limits-migrator.ts) so a config makes exactly one pass. * * What it does: * - limits.maxActiveIncrements → limits.activeIncrements (advisory), legacy * limit keys dropped [limits-migrator] * - testing.defaultTestMode → testing.mode * testing.coverageTargets → testing.coverage * testing.{defaultCoverageTarget,tddEnforcement,playwright} dropped * - hooks.*.sync_living_docs → livingDocs: 'onDone' | false * - planning.deepInterview.{enabled,enforcement} or 'warn'/'strict' → 'off' | 'critical' | 'deep' * - sync.mode dropped (the queued event queue is gone) * - dead 1.x keys deleted outright (see DEAD_KEYS) * * Deleted keys are recorded in `.specweave/state/config-migration-2.json` so a * user can see what was dropped without digging through git history. * * @module core/config/migrate-to-2 */ /** * 1.x keys with no reader in 2.0. Removed without replacement. * * `banner` appears both as a top-level object and as a `hooks` sub-key in 1.x * configs; both are dropped because the UserPromptSubmit banner hook is gone. */ export declare const DEAD_KEYS: readonly ["contextBudget", "quality", "cache", "deduplication", "archiving", "apiDocs", "statusLine", "incrementAssist", "billing", "translation", "language", "documentation", "reflect", "pluginAutoLoad", "banner", "grill", "codeReview", "qualityGates", "skillGen"]; export interface MigrationNote { migratedAt: string; from: string; to: string; removedKeys: string[]; renamedKeys: string[]; } export interface MigrateResult { /** True when the raw config object was modified and should be rewritten. */ changed: boolean; /** Top-level (or dotted) keys deleted by this pass. */ removedKeys: string[]; /** `old → new` descriptions of every rename this pass performed. */ renamedKeys: string[]; } /** * Migrate a raw parsed config object in place. * * Idempotent: running it twice on the same object reports `changed: false` * the second time. */ export declare function migrateTo2(config: Record): MigrateResult; /** Build the note written to `.specweave/state/config-migration-2.json`. */ export declare function buildMigrationNote(result: MigrateResult, fromVersion: string): MigrationNote; /** * Top-level keys present in `config` that 2.0 does not know about. * Used for the single warning line printed on load. */ export declare function unknownKeys(config: Record, known: readonly string[]): string[]; //# sourceMappingURL=migrate-to-2.d.ts.map