Archilyzer · Source

archilyzer

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

commit d3570dfa78485916b83474ab04bc03fb4d3ef9b8
parent 894db7f963cace8ede03472f7221bc7c773cbf08
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Mon, 26 Oct 2026 07:22:17 -0400

Docs: takes' out/<slug>.mp4 and window basis, timeline insert's convention, clip-no-cues fix; changelog

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Meditor/CHANGELOG.md | 1+
Mumtool/docs/cli.md | 2+-
Mumtool/docs/inbox.md | 2+-
Mumtool/docs/knobs.md | 3++-
Mumtool/docs/report-video.md | 17++++++++++++++---
5 files changed, 19 insertions(+), 6 deletions(-)

diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## [Unreleased] +- **An assistant can finish a report video from umtool's command line without hand fixes.** `umtool variants <project> --take <take>` now makes the delivery ladder (master, 1080p, 720p, fit24) of a finished take, and so does the Deliver tab's **Make variants** with a take picked. A take used to be refused with "has no build to make variants of" because its render was moved to `takes/<take>/preview.mp4`; the take maker now also leaves it in the take's `out/` under the build's name (a hard link, so no extra disk), and a take made before this is encoded from its `preview.mp4`. `umtool timeline <project> insert` writes a clip the way the rest of the cut is written: in a cut with the on-screen deck, `--title` sets the deck's title (`onscreen.title`; `--stream-title` sets the stream's), a cut whose deck titles are dates gets `--date` as one in the same format (`9 Dec 2024`), the clip takes the section of the clip it goes after unless `--section N` says otherwise, and `--lock` and `--lock-end` lock its edges. `umtool check` now says how to fix a clip with no cue file: `pnpm ops build-cues --json '{"slug":"<channel>","ids":["<video>"]}' --wait` when the video is in the archive, and the Rumble two-ids check when it is not. A take of part of a cut says in its log what timed the window: the last build's schedule, or the clips' own lengths when there is no schedule or it does not time clips inserted since the build. - **An interrupted catch-up no longer sends a finished forum thread back through its whole history.** When an editor restart cut a thread's catch-up short, the next run saw the page the catch-up still owed as a hole in the history, marked the history unfinished and re-read every held page below it (on 2026-10-26 it re-read 150 pages of the Ethan Klein thread before it was stopped; left alone, every sync would have gone on doing it). The page an unfinished catch-up owes is now its own, and the history stays complete. Needs a restart of the editor. - **A take of part of a cut (`--at`) now shows the clips its own changes add.** The window is timed against the project's cut so every take of a group covers the same clips, and a clip only the take adds (a montage line, an extra beat) was never in it: the Huck cut's pitch-count take rendered seven of its eight pitches. A clip the take adds right after one the window covers now renders with it. Needs a restart of umtool for takes made from the app (the `umtool take` command has it now). - **An assistant can now change a report video's timeline, find a clip's scene cuts, and add a post from the archive, all from the command line.** `umtool timeline <project>` lists the cut (index, id, type, video, start–end, date and title) and does what the Cut tab's timeline does: `insert --after <id> <channel>/<video>@<start>-<end>` with `--title`, `--date`, `--quote` and `--cite`, `move <id> --to <index>`, `remove`, `duplicate`, `post`, `post-remove`, `teaser` and `undo`. It goes through the same writers as the page, so each change saves an undo point first, is refused when the build would refuse it, and leaves an edit note on a generated manifest. A bad `--date` is refused before anything is written. `umtool scenes <project> <clip>` prints where the picture cuts and where it goes black in the clip's fetched window, in the recording's own seconds, for setting a blur's from and to or a trim: the Huck dog clip is black 250.49–251.09 and cuts at 251.09. It fetches nothing. `umtool posts add <project> <channel>/<postId>` makes a post card from the posts archive (its words, date, link, handle and screenshot, with `--attach <clip>` and `--flag`) and copies the capture into the project's `posts-media/`. A post with no screenshot is refused, and the message names the `pnpm ops capture-posts` to run first. diff --git a/umtool/docs/cli.md b/umtool/docs/cli.md @@ -52,7 +52,7 @@ Inbox cannot disagree about what is wrong with one. | `phrases "<phrase>" ["<phrase>" …] --channels a,b [--prefer c] [--exclude RE] [--words \| --regex] [--samples N] [--no-cache] [--json \| --full]` | the phrase finder's search ([tools.md](tools.md#the-phrase-finder-toolsphrases)): every phrase in one pass, each with its count once folded, by year, the preferred channel's share or Rumble's, speaker changes, sample contexts. Plain words become a tolerant pattern unless the phrase holds a regular expression's characters. `--json` the numbers, `--full` every instance; `--spec FILE --out FILE --progress` is the page's job form. **Exit 1** on a bad phrase | | `voice-match <project> [--reference auto\|rulings\|recordings] [--reference-video <channel>/<id> …] [--reference-channel <slug> …] [--instances FILE] [--span phrase\|cut] [--pad S] [--likely X --unlikely Y] [--out FILE] [--dry] [--json] [--progress ndjson]` | who is speaking, per montage clip: a local speaker-similarity score (TitaNet-small) against the host's voice → `<project>/voice-match.json` (the Cut tab's **Score the voices**); `--instances` also scores a phrase scan's instances not in the manifest; `--dry` prints the plan ([report-video.md](report-video.md#who-is-speaking-the-voice-match)) | | `clips analyze <project> [--from <channel>/<id>] [--rescan] [--no-laughs] [--no-voices] [params] [--words FILE] [--progress ndjson] [--json]` · `clips propose <project> [--from <channel>/<id>] [--host N] [params] [--words FILE] [--dry] [--json]` · `clips show <project> [--json]` · `clips segments <project> [--json]` | the **clip finder** on a long recording ([report-video.md](report-video.md#highlights-the-clip-finder)): `analyze` runs the laugh scan (CED-mini) and a voice centroid per speaker on the recording's sound (cached in `<project>/scans/`), then proposes; `propose` proposes again from what is there (after a role flip, a param change, new words); `show` prints the speakers, laughs and the cut. Params `--target S` (600) `--laugh-min X` (0.25) `--merge-gap S` (6) `--setup-max S` (20) `--clip-max S` (75) and the scope `--scope FROM:TO` (either side may be empty; `all` clears it) or `--from S --to S` with numbers (a `--from` that is a `<channel>/<id>` names the recording), kept in `reactions.json`; `--host N` is your word on the host, kept. `--keep-cut` proposes without touching the cut (nothing moved, removed or added; the proposals are listed). **`--scope auto`** reads the narrated video auto-scope finds in the speaker turns (`--segment sN` names one, else the longest); `segments` lists them. A chat replay beside the recording (`live_chat.cues.json`) adds chat-burst moments and the log names the chat's lag. A channel on no site gets each clip linked to its platform page (`citeUrl`). A clip you edited, ruled, locked or added is never moved. **Exit 2** with no `diarization.json` (the message names the `archilyzer diarize backfill` to run) | -| `timeline <project> [ls] [--json]` · `timeline <project> insert --after <id\|-> <channel>/<video>@<start>-<end> [--id ID] [--title T] [--date YYYY-MM-DD] [--quote Q] [--cite S] [--cite-url U]` · `timeline <project> move <id> --to <index>` · `remove <id>` · `duplicate <id>` (`--at <index>` names one of an id's twins) · `post <json\|@file>` · `post-remove <id>` · `teaser <id> <patch-json\|@file>` · `undo` | the **structure** of the cut (the Cut tab's timeline, the On-screen section's teasers and posts) through the writers `POST /api/report/timeline` runs: `ls` prints index, id, type, video, start–end, date and title (`--json` adds the token and the posts); an insert's attribution is a second write through `window`'s writer, its date checked before anything is written. Every write snapshots the manifest first (`revisions/…-auto-before-<op>`), is refused only for what it breaks in the build's own words (**exit 1**), and on a generated manifest leaves an `edit` note ([report-video.md](report-video.md#structural-edits)) | +| `timeline <project> [ls] [--json]` · `timeline <project> insert --after <id\|-> <channel>/<video>@<start>-<end> [--id ID] [--section N] [--lock] [--lock-end] [--title T] [--stream-title T] [--date YYYY-MM-DD] [--quote Q] [--cite S] [--cite-url U]` · `timeline <project> move <id> --to <index>` · `remove <id>` · `duplicate <id>` (`--at <index>` names one of an id's twins) · `post <json\|@file>` · `post-remove <id>` · `teaser <id> <patch-json\|@file>` · `undo` | the **structure** of the cut (the Cut tab's timeline, the On-screen section's teasers and posts) through the writers `POST /api/report/timeline` runs: `ls` prints index, id, type, video, start–end, date and title (`--json` adds the token and the posts); an insert's attribution is a second write through `window`'s writer, its date checked before anything is written; it is written in the manifest's own convention — under the deck `--title` is the deck's title (`onscreen.title`, `--stream-title` the stream's), a cut whose deck titles are dates gets `--date` as one in their format, and the clip takes the section of the clip it goes after (`--section N` names another) and, from the same recording, its deck title and its citation link. Every write snapshots the manifest first (`revisions/…-auto-before-<op>`), is refused only for what it breaks in the build's own words (**exit 1**), and on a generated manifest leaves an `edit` note ([report-video.md](report-video.md#structural-edits)) | | `scenes <project> <clip> [--black-min 0.05] [--threshold 8] [--pix-th 0.10] [--pad 30 \| --from S --to S] [--json]` | the picture's **scene cuts** (ffmpeg `scdet`, score ≥ threshold) and **black spans** (`blackdetect`) in the clip's fetched window, in SOURCE seconds — for `blur.from`/`blur.to` and trims ([knobs.md](knobs.md#a-clips-picture-blurred)). The window is the one the build would cut from (the project's `out/clips-raw`, the editor's `channels/<slug>/data/<id>/clips/`, a saved source); the extent ± `--pad` inside it is scanned. Nothing is fetched: **exit 1** with no window on disk (`fetch` first) | | `posts add <project> <archive-channel>/<postId> [--attach <clipId>] [--flag F] [--author A] [--id ID] [--dry-run] [--json]` | a **post card** from the corpus's posts archive (`channels/<slug>/posts/*.jsonl`): its words, date, link and handle; id `x-<postId>` (`bsky-`, `post-`); the author an earlier post by the same handle carries in the cut, else the archive's. Its capture (`posts-media/<postId>/`: `shot.png`, `capture.json`, the post's pictures) is copied to the project's `posts-media/<slug>/<postId>/` — or used where it is, when that folder links the channel's captures; never copied through a link anywhere else. Then `upsertPost` (a post with the id is replaced, its `attachTo` kept). **Exit 1** with no screenshot, naming the `pnpm ops capture-posts` to run | diff --git a/umtool/docs/inbox.md b/umtool/docs/inbox.md @@ -60,7 +60,7 @@ on (`decisionTab`, `songTabOfSection`). | kind | severity | trigger | action | |---|---|---|---| | `manifest-invalid` | blocking | a `localhost`/private `siteOrigin`; a missing one only when a QR the cut draws is built from it (its count and first ids named — lint.mjs `originQrsOf`); missing `channelSlug`, duplicate ids, `section` out of range | Fix the manifest | -| `clip-no-cues` | blocking | no `transcript.cues.json` — the build dies there | Fix the cue source | +| `clip-no-cues` | blocking | no `transcript.cues.json` — the build dies there; the why names the fix: `pnpm ops build-cues --json '{"slug":"<channel>","ids":["<video>"]}' --wait` when the video is in the corpus, the Rumble two-ids check when it is not | Fix the cue source | | `clip-unfetchable` | blocking | the last preflight says the source is gone | Replace the source | | `clip-unchecked` | info | the last preflight could not ask: the platform refused a probe (403, 429, a bot check), so it and the platform's other sources were left `unchecked` | Re-check later | | `clip-mid-sentence` | open | the cut lands inside a cue that does not close a sentence, and `lockEnd` is unset | Trim to the sentence | diff --git a/umtool/docs/knobs.md b/umtool/docs/knobs.md @@ -280,7 +280,8 @@ Then the cut: the Build tab's **final** preset (a full build, about an hour for | each clip's sound against its picture (`<out>/sourced/sync.json`, written by the build); past one frame flagged | Deliver, **sync**: each clip links to its Audio box | `umtool variants <p> --list` | same `GET` | The files: `<out>/<slug>.<name>.mp4` and `<out>/variants.json`; `<out>` is the project's `out/`, or -`takes/<t>/out/`. A flagged clip is fixed with its `audio.offset` (the sign: a clip whose sound is early, a +`takes/<t>/out/`. A take's build is its `out/<slug>.mp4` (the take maker leaves its render there, a hard link of +`preview.mp4`); a take with only its `preview.mp4` is encoded from that (`--source`). A flagged clip is fixed with its `audio.offset` (the sign: a clip whose sound is early, a negative lag, needs a positive offset), then a build. ## Reading them back diff --git a/umtool/docs/report-video.md b/umtool/docs/report-video.md @@ -800,6 +800,8 @@ takes/<id>/take.json id (== dir, [a-z0-9-]), group, order, label, kind reference|similar|different, preview; optional summary, changes[], seconds, builtAt takes/<id>/preview.mp4 whatever `preview` names, inside the take dir +takes/<id>/out/<slug>.mp4 the take maker's render again, a hard link of preview.mp4 + (what `umtool variants --take` and Deliver encode) takes/verdicts.json { "<id>": { verdict: like|maybe|no|null, note, at, picked?: true } } ``` @@ -862,8 +864,15 @@ A take (`lib/report/takeMaker.mjs`): A **window** renders the entries [at, at + dur] touches — timed by the project's `out/sourced/schedule.json` when it names every entry, else by each entry's own length (a clip's cut, else `seconds`, else 4 s) — as a cut of its own, so every take of a group made with - one window covers the same entries; -4. moves the render to `takes/<id>/preview.mp4` and writes take.json — only then; a take that + one window covers the same entries. A schedule built before clips were inserted does not name + them, so a cut edited since its last build is timed by the lengths; the take's log says which + (`the window covers 3 entries (…), timed by the manifest's own lengths (estimates): + out/sourced/schedule.json is older than the manifest and does not time c41 — rebuild the cut + for exact times`), and take.json's `entries.basis` records it; +4. moves the render to `takes/<id>/preview.mp4`, leaves it in `takes/<id>/out/<slug>.mp4` too as + a hard link (so `umtool variants <p> --take <id>` and Deliver's **Make variants** make the take's + ladder; a take made before that, or whose `out/` is on another filesystem, is encoded from its + preview.mp4), and writes take.json — only then; a take that fails leaves no take.json (a work dir the listing ignores), and a failed **Rebuild** leaves the old take whole. @@ -1570,7 +1579,9 @@ one per op every two minutes). **Undo** restores the newest such snapshot byte f byte (the current state is kept as `undo-saved`). From a terminal, `umtool timeline <p>` is the same: `ls`, `insert --after <id|-> <channel>/<video>@<start>-<end>` -(with `--title`, `--date`, `--quote`, `--cite` written through the window writer), `move <id> --to <index>`, +(with `--title`, `--date`, `--quote`, `--cite` written through the window writer, in the manifest's convention: +under the deck `--title` is `onscreen.title` and a cut of dated deck titles gets `--date` as one; `--section N`, +`--lock`, `--lock-end`; the section, else the clip before's), `move <id> --to <index>`, `remove`, `duplicate`, `post`, `post-remove`, `teaser`, `undo` — each reading the token just before its write ([cli.md](cli.md)). `umtool posts add <p> <channel>/<postId>` makes the post from the archive and its capture.