// An iteration's video project on disk (release 27, S5): where it is, its // manifest and report, a snapshot before a write, and a new project seeded // from its parent's (the stopgap's revise.py video). // // Projects live off the corpus disk under the generation settings' projects // root (D1): `projectOf(root, id, n)`, recorded in the iteration as // `projectDir`. The manifest is written whole, through a temp and a rename. import { copyFile, link, mkdir, readdir, readFile, rename, stat, writeFile } from "node:fs/promises"; import path from "node:path"; import { projectOf, type Iteration } from "../../iterations"; import type { VideoManifest } from "../videoOps"; import { tmpPathFor } from "yt-dlp-transcript-common/lib/atomicFile.mjs"; export const MANIFEST_NAME = "video.manifest.json"; // umtool's snapshots (umtool/lib/report/snapshots.mjs): `revisions/-