Archilyzer · Source

archilyzer

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

commit c6d103d0a514a76b4df26bdf91b28a955b166b98
parent e0b3cab1e620ba6ad82d0c01bc86f5169c78a456
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Tue,  3 Nov 2026 14:04:17 -0500

umtool: the word zoom's docs (knobs.md, cli.md, report-video.md) and --lint refuses a zoom with no time, as the build does

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

Diffstat:
Mumtool/docs/cli.md | 1+
Mumtool/docs/knobs.md | 16++++++++++++++++
Mumtool/docs/report-video.md | 50++++++++++++++++++++++++++++++++++++++++++++++++++
Mumtool/report-to-video/lint.mjs | 3+++
4 files changed, 70 insertions(+), 0 deletions(-)

diff --git a/umtool/docs/cli.md b/umtool/docs/cli.md @@ -84,6 +84,7 @@ Inbox cannot disagree about what is wrong with one. | `posts reel <project> --channel <slug> [--channel <slug> …] [--since YYYY-MM-DD] [--until YYYY-MM-DD] [--own] [--with-media] [--replies include\|only\|exclude] [--order chrono\|reverse] [--limit N] [--after <id\|->] [--dry-run] [--json]` | **POST ITEMS** ([report-video.md](report-video.md#post-items-a-post-as-an-entry-of-the-cut)): each archived post an entry of the cut -- its card drawn from the archive row (snapshotted), its attachments copied into `posts-media/` and played in it. The channels are read as one archive, merged in time order, de-duplicated by post id (`--channel ObviousRises-x --channel ObviousRises-x-replies`); `--own` the accounts' own posts (their config's `socialHandle`, no reposts); `--with-media` only posts whose capture holds an attachment; `--replies` keeps, keeps only or drops replies (a reply carries the posts it answers from the archive, else the capture's thread shot, else a "Replying to" line; the quoted post and the parent the archive lacks come from the capture's `context`, as `posts context` fills them). A post the cut already plays (by its id, a repost's original, a repost of it) is skipped, so a **re-run adds only what is new**; the rest goes in in ONE write (one undo point: `timeline <p> undo`), at the end unless `--after` | | `posts set-item <project> <item> [hold=<s>\|off] [layout=sequence\|grid] [redact=on\|off\|auto] [fit=read[:<linger>]] [media.<i>.start=<s>] [media.<i>.end=<s>] [media.<i>.trim=off] [media.<i>.mute=on\|off] [media.<i>.crop=x,y,w,h\|off] [media.<i>.push=on\|off] [quoted.paraphrase="…"\|off] [parent.<i>.paraphrase="…"\|off] [--json]` | a **post item's knobs** (the post bench's writer, `updatePostItem`; [knobs.md](knobs.md#a-post-item-a-post-as-an-entry-of-the-cut)): `<item>` is its id or the post's id; refused in the build's words. `quoted.paraphrase` / `parent.<i>.paraphrase`: your retelling of a long context post (≤ 600 characters), drawn in place of its words with a "paraphrased" label (its text kept); `off` or empty clears it | | `posts narrate <project> --import [--dry-run] [--json]` · `--list` · `<item> [--script "…"] [--pick <n>] [--approve\|--unapprove] [--off\|--on] [lead= tail= ramp= linger= clip=read\|full wet= lowpass= duck=on\|off short=hold\|loop attach=under\|after lufs=]` · `<item> --take [--note "…"] [--voice v] [--engine e] [--speed s] [--script "…"]` · `<item> --derive <n> --op enhance\|convert [--engine e] [--voice v]` · `<item> --delete <n>` · `--all --draft-scripts [--force]` · `--all --take [--limit N]` · `--cut <k=v>…` | a **narrated post item** ([report-video.md](report-video.md#narrated-post-items), [knobs.md](knobs.md#a-narrated-post-item)): `--import` reads `narration/posts/index.json` (`[{id, entry, script, takes: [{file, engine, voice, seconds}], pick}]`, and a take's `take-<n>.parts.json`) into the cut in ONE write, measuring each take (length, loudness); a re-run adds only takes not there. `--take` asks the EDITOR for a new take (`POST /api/ops/tts`, its `out` the next `narration/posts/<postId>/take-<n>.<engine>-<voice>.wav`; a job, waited for; `ARCHILYZER_EDITOR_URL`, `WORKER_TOKEN`) and picks it, its `--note` kept with it; `--pick <n>` is the take's number as `--list` shows it. `--derive <n>` makes a NEW take from take n through the editor's `voice-enhance` / `voice-convert` op (a stock synthetic voice; "not installed" until the editor has the engine), the original kept; `--delete <n>` moves a take's file to the post's `.trash/`. A new script or pick takes the approval away. `--all --draft-scripts` writes every post's words as its script, VERBATIM (cleaned only to be spoken: @handles, links, emoji dropped; `plan(s)` → plans, `w/` → with, `&` → and; paragraphs kept). `--cut` sets `render.postNarration`. Refused in the build's words (**exit 1**) | +| `posts fx <project> <item> [ls]` · `add word-zoom --match "…" [--target post\|quoted\|parent:<i>] [--occurrence n] [--at s] [--scale s] [--hold s] [--lead s] [--ease out\|inOut\|snap] [--highlight #rrggbb\|off]` · `set <n> [those flags; default clears one]` · `remove <n>` · `posts narrate <project> <item> --words [--worker <id>]` | a post item's **word zoom** ([report-video.md](report-video.md#a-word-zoom), [knobs.md](knobs.md#a-word-zoom-a-post-items-card-pushed-in-on-a-word-as-it-is-read)): the card pushed in on a word as it is read, a highlight under it, then back out -- through `updatePostFx`, refused in the build's words (a match not in the words, a knob out of bounds; **exit 1**). Its time is `--at`, else the word's start in the picked take's word timings; `ls` prints each zoom's time and where it came from. An un-narrated post's `add` fills `at` with the reading estimate. `--words` asks the EDITOR's transcribe op (`words: true`, a job per take or per part file; `ARCHILYZER_EDITOR_URL`, `WORKER_TOKEN`) and keeps the words heard, aligned to the script, on the take (`takes[i].words`) | | `posts fit <project> [--all \| <item> …] [--linger <s>] [--dry-run] [--json]` · `posts set-item <project> <item> fit=read[:<linger>]` | narrated posts' video attachments cut to their **best part** for the read (lead + take + tail + linger): a scored scan of the sound (loudness, its peaks), the speech (a transcript) and the scene cuts, the start snapped to a pause or a cut, recorded with why (`narration.window`) -- ONE write; each post's old and new length printed. A video no longer than the read is left as it is | | `posts avatar <project> [<handle> <image-file> \| <handle> off] [--json]` · `posts avatars <project> [--dry-run] [--json]` | the **authors' pictures** (`postAvatars`): `avatar` copies a picture into `posts-media/_avatars/` for every card that draws that handle (manual; never replaced by the archive's), `off` clears it, no handle lists them; `avatars` copies the archive's (the channels' `posts-media/_avatars/avatars.json`, capture-posts') for every author the cut's cards draw unblurred that it has none of. A blurred author never shows one | | `posts context <project> [--dry-run] [--json]` | every **post item's context from its capture** (`postContext.mjs`): the post it quotes and the post it answers, as its page showed them (`capture.json`'s `context`, read by the editor's `capture-posts` -- `"contextOnly": true` reads it alone), filled where the archive row lacks them -- `quoted` where the entry has none (or a named one with no words, the same post), `parents` where it has none (a thread shot stays on the entry; the card draws the parents). What the archive gave is never replaced. ONE write for every entry (`setPostItemsContext`: one undo point, refused whole in the build's words); a re-run with nothing new writes nothing. A post whose capture read no context is listed with the call that reads it (`pnpm ops capture-posts --json '{"slug":…,"ids":[…],"contextOnly":true}' --wait`). The card's blur of other authors is unchanged ([report-video.md](report-video.md#post-items-a-post-as-an-entry-of-the-cut)) | diff --git a/umtool/docs/knobs.md b/umtool/docs/knobs.md @@ -693,6 +693,22 @@ the shape, the mix, recordings, parts, the best part). One writer for a post's n none, approved) and links the next post to record; **N** / **P** walk the cut's posts, **Space** plays the item as the render will (the take over the muffled attachment). +## A word zoom (a post item's card pushed in on a word as it is read) + +`fx: [{kind: "word-zoom", match, …}]` on a post item ([report-video.md](report-video.md#a-word-zoom): the shape, the +time, the curve, the render). One writer, `updatePostFx` (`lib/report/manifest.mjs`), refused in the build's words +(`validatePostFx`, `report-to-video/word-zoom.mjs`): unknown keys, a match not in the target's words, a knob out of +its bounds. Its bench is the post bench's **word zoom** block; Play the cut zooms the card live on the same curve. + +| Knob | In umtool | From a terminal | Route | +|---|---|---|---| +| a word zoom — `match` (the word or phrase as the card shows it; case and edge punctuation aside), `occurrence` (its n-th time, default 1), `target` (`post` default, `quoted`, `parent:<i>`) | post bench, **word zoom**: click a word (shift-click another: a phrase), **Zoom here** (match and occurrence filled) | `umtool posts fx <p> <item> add word-zoom --match "barbecue" [--occurrence n] [--target quoted]` | `POST /api/report/post-item {project, op: "fx", id, fx: {add: {kind: "word-zoom", match, …}}, token}` | +| `at` — its moment, item seconds (0–600); absent: the matched word's start in the picked take's word timings, on the item's clock (lead + start ÷ the read's `rate`). An un-narrated post needs it (**Zoom here** and `add` fill the reading estimate: 1 s + 3 words a second) | the zoom's **−0.1** / **+0.1**, **at playhead**, **from the words** (clears it) | `umtool posts fx <p> <item> set <n> --at 4.2` (`--at default`: from the words) | `fx: {set: <i>, patch: {at}}` (`null` clears) | +| `scale` 1.2–4 (default 2), `lead` 0–3 s in before the word (0.5), `hold` 0–10 s on it (1.2), `ease` `out`\|`inOut`\|`snap` (`inOut`), `highlight` a colour `#rrggbb` (`#ffd84d`, drawn at 42% under the words with a solid underline) or `false` | the zoom's **scale**, **lead**, **hold**, **ease**, **highlight** (and its colour); the way back out is 0.4 s on the same ease | `set <n> --scale 2.5 --lead 0.3 --hold 1.5 --ease snap --highlight off` (`default` clears one) | `fx: {set: <i>, patch: {…}}` | +| remove one | the zoom's **remove** | `umtool posts fx <p> <item> remove <n>` (1 = the first, as `ls` shows) | `fx: {remove: <i>}` | +| list them, each with its time and where it came from | the block's rows; the plan strip and the read lane mark each from its lead-in to back out | `umtool posts fx <p> <item> [ls] [--json]` | — | +| `narration.takes[i].words` — the take's WORD TIMINGS, `[{w, start, end}]` per script word (take seconds): the editor's `transcribe` op (`words: true`; parakeet keeps word times) on the take -- or each of its parts' files, at their starts -- the words heard aligned to its script, fuzzy and in order (a typo read as the word it means still pairs; a word not heard is placed between its neighbours) | post bench, **Get word timings** (a job on the editor; the block says when the take is timed) | `umtool posts narrate <p> <item> --words [--worker <id>]` | `POST {op: "take-words", id, worker?}` → `{jobs}` · `GET ?project&id&takeWords=<job>,…` keeps them when done | + ## The source backlog (Sources · Prioritize · Re-sweep when complete) The Overview tab's **sources** line (`components/projects/report/SourceBacklog.tsx`, `lib/report/sourceBacklog.*`): for each diff --git a/umtool/docs/report-video.md b/umtool/docs/report-video.md @@ -659,6 +659,56 @@ post's insert and `umtool posts avatars <p>`, or set by hand with `umtool posts <p> <handle> <image>` (never replaced by the archive's). Every card that draws that author unblurred shows it — the render, Play and the bench; a redacted author never. +### A word zoom + +A post item's card may PUSH IN ON A WORD as it is read (`report-to-video/word-zoom.mjs`; +operator, 3 Nov: "zoom in on the "barbecue" typo when it's being read out and make that +effect a standard thing we can use and tune in the UI"), a highlight under it, then back +out: + +```jsonc +"fx": [{ + "kind": "word-zoom", + "match": "barbecue", // the word or phrase as the card shows it (case and edge punctuation aside) + "target": "post", // whose words: "post" (default), "quoted", "parent:<i>" (a paraphrase's, when it has one) + "occurrence": 1, // its n-th time in that text + "at": 4.2, // item seconds; absent: from the take's word timings + "lead": 0.5, "hold": 1.2, // in over lead before the word, held on it (then 0.4 s back out) + "scale": 2, // 1.2–4 + "ease": "inOut", // "out" | "inOut" | "snap" + "highlight": "#ffd84d" // or false +}] +``` + +**When**: `at` when it is set (a nudge wins); else the matched word's start in the +picked take, on the item's clock — the read's lead + start ÷ its `rate`. The take's +WORD TIMINGS (`narration.takes[i].words`, `[{w, start, end}]` per script word) come +from `umtool posts narrate <p> <item> --words` or the bench's **Get word timings**: +the editor's `transcribe` op (`words: true`; parakeet keeps word times) on the take — +or on each of its parts' files, offset by their starts — the words heard aligned to +the script, fuzzy and in order, so a typo read as the word it means still pairs and +a word not heard is placed between its neighbours. The card's words are aligned to +the script the same way (the script drops handles and links). An un-narrated post +has no read: its zoom needs `at`, and the build (and `--lint`) refuse a zoom with +no time, naming the command that gives it one; two zooms of a post up at once, or +one starting after the post ends, are refused too. + +**The curve** (one function for the render and Play): progress 0 → 1 over +[t − lead, t] on the ease, 1 for `hold`, back to 0 over 0.4 s; the zoom is +1 + (scale − 1)·progress, and the window is the card's region at 1/zoom of its size, +moving so the word's box is centred (clamped inside the region) at full zoom. + +**The render**: the card page wraps every word in a span (`data-w="post:<i>"`); the +build loads the page at 2–4× (crisp when pushed in), measures the card (inset by its +corner: the REGION) and the words' box — refusing a word cut off the card — and +shoots the region plain and with the highlight under the words. ffmpeg's `zoompan` +crops and scales the region toward the word frame by frame on the item's second, the +highlight fading in over the lead and out with the zoom, laid over the card's region +only while it is up and before the attachments: the attachments are never covered. +**Play** measures the same spans in its card page and transforms the card's contents +about the same window; the post bench's **word zoom** block makes and tunes them +([knobs.md](knobs.md#a-word-zoom-a-post-items-card-pushed-in-on-a-word-as-it-is-read)). + ## The on-screen deck (`render.chrome`) Its knobs — the stamp's moment and count per clip, the stamp's look and words, the markers, a clip's sync and diff --git a/umtool/report-to-video/lint.mjs b/umtool/report-to-video/lint.mjs @@ -85,6 +85,7 @@ import { validateClipAudioEntries } from "./clip-audio.mjs"; import { validateClipBlurEntries } from "./clip-blur.mjs"; import { validateGapEntries } from "./gaps.mjs"; import { postItemFiles, validatePostItems } from "./post-item.mjs"; +import { wordZoomTimes } from "./word-zoom.mjs"; import { postAvatarFiles, validatePostAvatars } from "./post-avatars.mjs"; import { validatePostNarrationRender } from "./post-narration.mjs"; import { validateFinaleEntries } from "./finale.mjs"; @@ -325,6 +326,8 @@ export function validatorErrors(whole) { ...validateGapEntries(whole), // A post as a timeline item (post-item.mjs): its archived words, its attachments, its hold. ...validatePostItems(whole), + // A post item's word zooms each need a time: `at`, or its take's word timings (the build refuses the same). + ...(whole.timeline ?? []).filter((e) => e?.type === "post" && Array.isArray(e.fx)).flatMap((e) => wordZoomTimes(e, whole.render).filter((t) => t.error).map((t) => String(t.error))), ...validatePostAvatars(whole), // A narrated post item's mix (post-narration.mjs): the cut's knobs. ...validatePostNarrationRender(whole.render),