/** * On-disk one-shot 1.x → 2.0 migration of `.specweave/config.json`. * * `ConfigManager.read()` migrates whatever it happens to load, but the two * commands the docs tell an upgrading user to run (`specweave update`, then * `specweave doctor`) never went through it, so a 1.x config survived the * documented upgrade untouched. This is the shared, command-facing entry point: * it rewrites config.json in place, records the dropped/renamed keys in * `.specweave/state/config-migration-2.json`, and is a no-op on a second run. * * @module core/config/migrate-config-file */ /** * Default autonomous-run settings added to configs predating `auto` (1.0.131+). * Part of the 2.0 config shape, so it is added during the same single pass. */ export declare const DEFAULT_AUTO_CONFIG: { enabled: boolean; maxIterations: number; maxRetries: number; requireTests: boolean; requireValidation: boolean; requireJudgeLLM: boolean; }; export interface ConfigFileMigrationResult { /** False when there is no config.json, or it could not be parsed. */ ran: boolean; /** True when config.json was rewritten by this call. */ changed: boolean; /** Keys deleted outright. */ removedKeys: string[]; /** `old → new` rename descriptions. */ renamedKeys: string[]; /** Missing 2.0 sections filled in (currently only `auto`). */ sectionsAdded: string[]; /** Path of the note written, when one was written. */ notePath?: string; } /** * Migrate `/.specweave/config.json` to the 2.0 shape. * * Idempotent: a second call on an already-migrated file reports * `changed: false` and rewrites nothing. * * @param projectRoot - Project root containing `.specweave/` * @param options.dryRun - Report what would change without writing */ export declare function migrateConfigFile(projectRoot: string, options?: { dryRun?: boolean; }): ConfigFileMigrationResult; //# sourceMappingURL=migrate-config-file.d.ts.map