/** * 检查点系统 * 关键节点保存快照,支持回滚 */ import { Task, Phase } from '../types/index.js'; import type { Deliverable } from './deliverable.js'; export interface CheckpointDeliverableSnapshot extends Deliverable { snapshotPath: string; } export interface Checkpoint { id: string; name: string; createdAt: string; description?: string; tasks: Task[]; phases: Phase[]; gitCommit?: string; deliverables: CheckpointDeliverableSnapshot[]; } /** * 创建检查点 */ export declare function createCheckpoint(name: string, tasks: Task[], phases: Phase[], options?: { description?: string; gitCommit?: string; basePath?: string; }): Promise; /** * 列出所有检查点 */ export declare function listCheckpoints(basePath?: string): Promise; /** * 加载检查点 */ export declare function loadCheckpoint(checkpointId: string, basePath?: string): Promise; /** * 回滚到检查点 */ export declare function rollbackToCheckpoint(checkpointId: string, basePath?: string, options?: { restoreDeliverables?: boolean; }): Promise<{ tasks: Task[]; phases: Phase[]; deliverables?: Deliverable[]; } | null>; /** * 删除检查点 */ export declare function deleteCheckpoint(checkpointId: string, basePath?: string): Promise; /** * 自动在关键节点创建检查点 */ export declare function autoCheckpoint(tasks: Task[], phases: Phase[], basePath?: string): Promise; //# sourceMappingURL=checkpoint.d.ts.map