import { existsSync, mkdirSync, renameSync } from "node:fs"; import { dirname, resolve } from "node:path"; import { milestoneDir, milestoneLabel, sliceDirFor, sliceLabelFor, tffPath, type Milestone, type Slice, } from "@tff/core"; /** * Repo-relative archive root: .tff/archive * * Buckets are created lazily under this root by the FS helpers below * (.tff/archive/{milestones,quick,debug}/