/** * Forgen v1 — Core Harness (prepareHarness entry point) * * v1 설계: v1-bootstrap 기반 세션 오케스트레이션. * philosophy/scope/pack 의존 제거. Profile + Preset Manager + Rule Renderer. * * Module Structure: * - Lines 1-50: Imports, utility helpers * - Lines 50-120: Rule file injection, gitignore, compound memory * - Lines 120+: prepareHarness — main orchestration */ import type { RuntimeHost } from './types.js'; import { rollbackSettings } from './settings-lock.js'; import { type V1BootstrapResult } from './v1-bootstrap.js'; export interface V1HarnessContext { cwd: string; inTmux: boolean; v1: V1BootstrapResult; runtime: RuntimeHost; } /** 최초 실행 여부: ~/.forgen/ 디렉토리가 없으면 true */ export declare function isFirstRun(): boolean; export { rollbackSettings }; interface PrepareHarnessOptions { runtime?: RuntimeHost; } export declare function prepareHarness(cwd: string, options?: PrepareHarnessOptions): Promise;