/** * Forgen v1 — Session Bootstrap * * v1 설계의 세션 시작 흐름을 구현. * Authoritative: docs/plans/2026-04-03-forgen-lifecycle-design.md §6 * docs/plans/2026-04-03-forgen-component-interface-design.md §4 * * 흐름: * 1. Legacy 감지 → cutover 필요 시 backup + fresh onboarding * 2. Profile 로드 (없으면 onboarding 필요) * 3. Runtime capability 감지 * 4. Preset Manager가 SessionEffectiveState 합성 * 5. Rule Renderer가 자연어 규칙 세트 생성 */ import { type MismatchResult } from '../forge/mismatch-detector.js'; import type { SessionEffectiveState, Profile } from '../store/types.js'; export declare function ensureV1Directories(): void; export interface V1BootstrapResult { needsOnboarding: boolean; legacyBackupPath: string | null; /** * profile.json 이 존재했지만 parse/shape 오류로 사용 불가하여 v0.4.8 * 의 auto-repair 가 timestamp 백업으로 치워둔 경로. legacyBackupPath * 와 의미가 다름 (legacy = model_version 구 버전 cutover, corrupt = * 깨진 파일 격리). */ corruptProfileBackupPath: string | null; session: SessionEffectiveState | null; renderedRules: string | null; profile: Profile | null; mismatch: MismatchResult | null; } export declare function bootstrapV1Session(): V1BootstrapResult;