Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 1f61a6c37dbdb0d743654aca073062c405efc496
parent e142cad80a0e3453425fe4d8f3650284eed8c5e2
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Fri, 13 Nov 2026 21:55:27 -0500

clip kit: a draft take's short reads the project's fetched windows; the e2e spec waits on a failed step no longer

buildShort links the project's shared out (clips-raw, narration) into the take's out/
before a build, as takeMaker.mjs does for a made take: a draft take never rendered had
no window to cut from (e2e: the batch's builds refused with --skip-fetch). FACTS.md:
the clip kit's naming hazards.

Co-Authored-By: Claude <noreply@anthropic.com>

Diffstat:
Meditor/CHANGELOG.md | 2++
Mplans/FACTS.md | 8++++++++
Mumtool/e2e/clip-kit.spec.ts | 7++++---
Mumtool/lib/report/verticalCli.mjs | 6++++++
4 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -53,6 +53,8 @@ - It is a ⌘K form and runs as one queued job. `shorts-<take>` is a deliverable: `umtool storage deliverables` moves it with `clips/`. - `umtool vertical`'s form now offers `--landscape`. + - `umtool vertical` and `umtool shorts` now read the project's fetched windows for a draft take that was never + rendered, as a made take does. Before, such a take found no window unless the corpus had one. - **Clip windows can be asked for taller than 720, and the 720 window stays.** A `maxHeight` above 720 on fetch-windows, fetch-window or `fetch_clip` asks for a taller window, up to the new setting `clips.windowMaxHeight` (default 1080; a taller ask is held to it and the answer says so). With no `maxHeight` a diff --git a/plans/FACTS.md b/plans/FACTS.md @@ -137,6 +137,14 @@ source tree). (`DisplaySummary` records), documented in `common/lib/corpus.ts:35-36` and served by `common/components/summariesCache.ts`. Nothing to do with AI summaries. Use **`digest`**. +**The clip kit's names avoid four taken ones (lane clip-kit).** The channel promo a per-clip build ends on is +`render.promo` (`report-to-video/promo-card.mjs`), never "end card": outro.mjs's END CARD is the stacked vertical +deck's reel outro. A clip's payoff-first opening is `coldOpen`, never "hook": `render.vertical.hook` / `--hook` is the +title band. The per-clip zoom is `zooms`, never `zoom` (`fx.zoom`: a screenshot pushed in on), `punch` (`fx.punch`: the +words) or `punchIn` (`fx.punchIn`: the deck's snap). Hidden regions are `censor`, never `blur` (a clip's `blur`: the +whole picture, a TOS caption). And `shorts/` is the clip editor's Make a short (every mp4 there read as a clip's); +a batch of shorts is `shorts-<take>/`. + **"Workspace" means two things in umtool.** THE WORKSPACE (umtool redesign L7a, `umtool/components/projects/workspace/`) is a report video's one screen at its own address `/projects/<p>` (`workspaceHref`, `kinds.mjs` `opensWorkspace`): viewer, block strip, inspector. diff --git a/umtool/e2e/clip-kit.spec.ts b/umtool/e2e/clip-kit.spec.ts @@ -108,9 +108,10 @@ test("umtool shorts, as ⌘K runs it: each clip in both formats into shorts-kit/ expect(r.status()).toBe(202); const { queued, line } = (await r.json()) as { queued: { qid: string }; line: string }; expect(line).toBe(`node umtool/bin/umtool.mjs shorts ${PROJECT} --take kit --items r001,r002 --formats vertical,desktop --hook title`); - await expect - .poll(async () => ((await (await page.request.get(`/api/cli?qid=${queued.qid}`)).json()) as { step: { state: string } }).step.state, { timeout: 400_000, intervals: [2000] }) - .toBe("done"); + const stepOf = async () => (await (await page.request.get(`/api/cli?qid=${queued.qid}`)).json()) as { step: { state: string }; log: unknown }; + await expect.poll(async () => ["queued", "running"].includes((await stepOf()).step.state), { timeout: 400_000, intervals: [2000] }).toBe(false); + const step = await stepOf(); + expect(step.step.state, Array.isArray(step.log) ? step.log.slice(-20).join("\n") : String(step.log)).toBe("done"); const folder = path.join(DIR, "shorts-kit"); const batch = JSON.parse(readFileSync(path.join(folder, "batch.json"), "utf8")); expect(batch.kind).toBe("shorts-batch"); diff --git a/umtool/lib/report/verticalCli.mjs b/umtool/lib/report/verticalCli.mjs @@ -299,6 +299,12 @@ export async function buildShort(o, { reportsRoot = REPORTS_ROOT, say = () => {} return { dryRun: { project: r.project.id, take, name, layout: tag, wouldWrite: outFile, intro: introSpec ? (introSpec === true ? "the take's render.intro, else the default" : introSpec) : null, outro: outro ? { title: outro.title, text: outro.text, image: outro.image, seconds: outro.seconds } : null, pieces: plan.pieces, items: plan.timeline.map((e) => ({ id: e.id, type: e.type, start: e.start, end: e.end })) } }; } const started = Date.now(); + // The project's fetched windows (and narration) are the take's too, as a made take's are (takeMaker.mjs + // linkSharedOut): a draft take that was never rendered has no out/clips-raw of its own to cut from. + if (!reframe) { + await mkdir(outDir, { recursive: true }); + await (await import("./takeMaker.mjs")).linkSharedOut(dir, outDir); + } let made; if (reframe) { const RF = await import("umtool-report-to-video/reframe");