/** List all solutions with status summary */ export declare function listSolutions(): void; /** Inspect a single saved entry in detail */ export declare function inspectSolution(name: string): void; /** Remove a saved entry by name */ export declare function removeSolution(name: string): void; /** * Retire solutions whose names match extractors that have been removed * from the compound pipeline. Retired solutions are excluded from the * index (see `solution-index.ts:142`) so they stop being surfaced in * MCP search and hook injection, but the file stays on disk for * audit / undo purposes. * * M-3 (2026-04-09): the C4 extractor cleanup left orphaned files in * users' `~/.forgen/me/solutions/` directories. Without this migration, * files like `recurring-task-pattern.md` (which had injected=113 on * the author's own machine at fix time) continue to pollute matching * results until the user manually deletes them. */ export declare function cleanStaleSolutions(): void; /** Retag all solutions using improved extractTags */ export declare function retagSolutions(): void; /** Result of a rollback operation — used by tests and callers that need counts. */ export interface RollbackCliResult { archived: string[]; archiveDir: string | null; skipped: string[]; errors: string[]; dryRun: boolean; } /** * Rollback auto-extracted solutions created since a given date. * * Invariant (2026-04-20, feedback_core_loop_invariant): * rollback은 **archive 이동**만 수행한다. `fs.unlinkSync`로 솔루션 파일을 * 영구 삭제하지 않는다. 실수로 rollback을 실행해도 `~/.forgen/lab/archived/ * rollback-{ts}/`에서 복구할 수 있어야 한다. (과거 `unlinkSync` 경로는 * time-bounded rollback이 "되돌리기 불가 영구 삭제"로 동작하던 버그였다.) * * 필터 기준: * - category === 'solution'만 대상 (rule은 제외) * - reflected > 0 OR sessions > 0인 것은 유지 (사용된 솔루션 보호) * - created >= since 인 것만 대상 * * dryRun=true면 아무 파일도 건드리지 않고 대상 목록만 반환. */ export declare function rollbackSolutions(sinceDate: string, opts?: { dryRun?: boolean; }): RollbackCliResult;