/** * Forgen v1 — Legacy Detector * * ~/.compound/ 5D profile 감지, backup, cutover 분기. * Authoritative spec: * docs/plans/2026-04-03-forgen-lifecycle-design.md §12 * docs/plans/2026-04-03-forgen-data-model-storage-spec.md §11 * * cutover 순서: * 1. ~/.compound/me/forge-profile.json 존재 여부 확인 * 2. 5D schema인지 검사 * 3. legacy면 backup (forge-profile.legacy-.json) * 4. 새 profile은 ~/.forgen/me/forge-profile.json에 생성 → fresh onboarding */ export interface LegacyCheckResult { found: boolean; isLegacy: boolean; backupPath: string | null; } /** * ~/.compound/me/forge-profile.json이 5D legacy인지 확인. */ export declare function checkLegacyProfile(): LegacyCheckResult; /** * legacy profile을 backup. * ~/.compound/me/forge-profile.legacy-.json으로 복사. */ export declare function backupLegacyProfile(): string | null; /** * legacy cutover 전체 실행. * 반환: backup 경로 (legacy가 아니면 null) */ export declare function runLegacyCutover(): string | null;