/** * peaks upgrade * CLI surface — Slice: 1.x → 2.0 umbrella + * Slice 3: --detect-1x flag. * * Per the "one-key completion" + "minimal-user-operation" tenets * (2026-06-11), the user's typical upgrade path is * `npm i -g peaks-cli@2.0` (the postinstall does the upgrade). * * The `peaks upgrade --to 2.0` CLI is the manual fallback for * when the postinstall is skipped (e.g. CI uses * `--ignore-scripts`). The umbrella orchestrates 7 sub-commands: * config-migrate / standards-migrate / memory-extract / * hooks-install / skill-sync / audit-verify + write-upgrade-record. * * The `--detect-1x` flag (added in slice 3) is a read-only * probe that the peaks-solo skill calls to gate the * AskUserQuestion that prompts the 1.x → 2.0 upgrade. The * probe returns the JSON envelope from the * 1x-detector-service; it does NOT modify any files. */ import { Command } from 'commander'; import { type ProgramIO } from '../cli-helpers.js'; export declare function registerUpgradeCommands(program: Command, io: ProgramIO): void;