// `umtool take` and `umtool takes` (release 33): the take maker from a // terminal. The app's Takes page runs these same commands as jobs, so what a // button does and what an agent types cannot drift apart. // // umtool take --id --label "" [--group G] [--kind K] [--summary S] // [--style NAME] [--patch FILE | --patch-json JSON | --set path=value …] // [--effect NAME] [--at S --dur S | --full] [--quick] [--force] [--progress ndjson] // [--from TAKE] [--keep-frames] [--priority] // umtool take --id --rebuild made again from its own take.json // --priority: render mode for the take's lifetime (renderMode.mjs) — every // other heavy job waits for this render, the editor's transcription and // download lanes are held, and both are let go at its end, failure or signal. // umtool takes effects [--json] the effect presets this cut offers (report-to-video/fx.mjs) // umtool takes make [--recipe FILE] [--only ID,ID] [--force] [--progress ndjson] // umtool takes make --all-styles [--group G] [--at S --dur S | --full] [--force] // umtool takes styles [--json] // umtool takes pick [--anyway] [--json] // umtool takes save [--label L] · open · freeze […|--all] [--apply] import { mkdir, readFile, writeFile } from "node:fs/promises"; import path from "node:path"; import { REPORTS_ROOT, resolveProject } from "../projects/core.mjs"; import { kindMakesTakes } from "../projects/kinds.mjs"; import { ensureWriteDir } from "./storage.mjs"; import { ALL_STYLES_RECIPE, DEFAULT_WINDOW, RECIPE_FILE, TakeStale, allStylesRecipe, draftTake, loadMontageStyles, makeTake, makeTakes, patchFromSets, pickTake, } from "./takeMaker.mjs"; import { TAKE_FILE, takesDirOf } from "./takes.mjs"; import { fxPresetsFor } from "umtool-report-to-video/fx"; import { withTakePriority } from "./renderMode.mjs"; import { mergePatch } from "umtool-report-to-video/montage-styles"; export const TAKE_USAGE = [ "usage: umtool take --id --label \"