Archilyzer · Source

archilyzer

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

commit 0a258cb87b6b423c55f41731382e2114bd809dd2
parent db88a46a46692025f68a7be568fa82d6a533efe9
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Wed,  4 Nov 2026 17:36:16 -0500

umtool docs: the progress bar, a long read sped up part by part, its caps yelled (report-video.md, knobs.md, cli.md)

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

Diffstat:
Mumtool/docs/cli.md | 3+++
Mumtool/docs/knobs.md | 15+++++++++++++++
Mumtool/docs/report-video.md | 71++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
3 files changed, 88 insertions(+), 1 deletion(-)

diff --git a/umtool/docs/cli.md b/umtool/docs/cli.md @@ -85,6 +85,9 @@ 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] [media.<i>.blur=on\|off] [media.<i>.blur.strength=1–10] [media.<i>.blur.label="…"\|off] [media.<i>.blur.boxes=x,y,w,h;…\|off] [quoted.paraphrase="…"\|off] [parent.<i>.paraphrase="…"\|off] [follow=on\|off\|auto] [follow.dim=<0.2-1>] [follow.ease=<s>] [thread.parent[.<i>]=auto\|full\|excerpt\|context\|carry\|hidden] [thread.quoted=…] [thread.carry=auto\|on\|off] [thread.reveal=on\|off] [thread.shrink=<0.3-1>] [thread.dim=<0.15-1>] [thread.seconds=<s>] [thread.pan=<s>] [thread=auto] [thread.group=<name>\|off] [thread.map=auto\|on\|off\|map\|label\|both] [panel=auto\|side\|top\|bottom] [media.add=<file>] [media.<i>=off] [parent.<i>=<json ref>\|@<file>\|off] [parent.<i>.media=<file>[,…]\|off] [link.add=<json ref>] [link.<i>=<json ref>\|off] [link.<i>.media=<file>\|off] [link.<i>.transcript="…"\|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. `follow=`: its read-follow ([knobs.md](knobs.md#read-follow-the-block-being-read-lit-the-card-panned-to-it)) -- `off`, `on`, `auto` (the cut's); `follow.dim=` / `follow.ease=` over the cut's. `thread.*`: its THREAD READ ([knobs.md](knobs.md#thread-reads-every-part-of-a-read-on-screen-while-it-is-said)) -- what each context post is on screen (`thread.parent.<i>` one parent, nearest first), the shrink, dim and their seconds, the pan's; `thread=auto` the cut's; a setting that would narrate a post the card hides is refused (**exit 1**). `media.<i>.blur…` CENSORS the attachment in the render (a real blur of the whole frame or of its boxes, labelled "Censored"; the file untouched; merged key by key, `blur=off` keeps the settings). THREAD SCENES ([knobs.md](knobs.md#thread-scenes-the-join-whole-threads-manual-threads-wide-attachments-context-media-link-visits-the-branch-map)): `parent.<i>=` an ancestor added / replaced / dropped (a whole-thread read), `parent.<i>.media=` its attachments, `media.add=` / `media.<i>=off` an attachment from a project file (measured), `link.add=` a post its words link to (a link visit) with its picture and transcript, `thread.group=` a manual thread, `thread.map=` the branch map, `panel=` where its attachments sit | | `posts reread <project> <item> [--without parent:0\|parent:1\|quoted[,…]] [--drop-parts 3,4] [--drop-urls] [--dry-run] [--json]` | a narrated read **re-joined without a piece**, no TTS ([knobs.md](knobs.md#thread-reads-every-part-of-a-read-on-screen-while-it-is-said), [report-video.md](report-video.md#thread-reads)): the picked take's kept parts cut out of its own file (ffmpeg) and joined with the read's pauses, measured, added as a derived take (`steps: [{op: "rejoin", drop}]`, its parts re-timed with their roles, its word timings moved, its slurs state kept) and picked — ONE write (one undo point). `--without` drops the parts that read the post it answers (`parent:0`), its parent (`parent:1`) or the quoted post; `--drop-parts` by number; `--drop-urls` the parts that are nothing but a link. Nothing to drop, every part dropped or a take read in one go: **exit 1**. `posts set-item … thread.parent.<i>=context\|hidden` (or `thread.quoted=…`) on a piece the take reads runs it first (`--no-reread`: refused, as before) | +| `posts reread <project> <item> --tempo-for "4-16=1.35,21-25=1.3" \| --tempo <x> --parts <runs> [--stretch atempo\|rubberband] [--dry-run] [--json]` | a narrated read's **parts re-timed**, no TTS ([knobs.md](knobs.md#thread-reads-every-part-of-a-read-on-screen-while-it-is-said), [report-video.md](report-video.md#a-long-read-sped-up-and-its-caps-yelled)): the parts named time-stretched (1–1.6, pitch kept), the rest untouched, joined with the read's pauses (each stretched part padded and trimmed to its length, sample-exact), its words scaled with their part, a derived take (`steps: [{op: "tempo", tempo, params: {stretch}}]`) picked in ONE write. A tempo is absolute: on a re-timed take it re-cuts from the take before. `posts set-item <p> <item> narration.tempo="4-16=1.35"` runs the same. A part outside the take, a tempo outside 1–1.6, nothing changed: **exit 1** | +| `posts reread <project> <item> --yell-caps [--yell-gain 5.5] [--yell-style raise\|shout\|loud] [--dry-run] [--json]` · `posts yell <project> --all \| <item …> [--yell-gain …] [--yell-style …] [--dry-run] [--json]` | a narrated read's **caps yelled**, no TTS ([report-video.md](report-video.md#a-long-read-sped-up-and-its-caps-yelled), `lib/report/postYell.mjs`): his ALL-CAPS words found in the take's word timings and raised (the lift measured, its loudness within 1 LU), acronyms and masked slurs left flat, a derived take (`steps: [{op: "yell", spans, params}]`) picked (one undo point per item). No word timings: **exit 1** naming `posts narrate --words`; `posts yell --dry-run` lists every item's caps, the flat ones and why, and which need word timings | +| `posts progress <project> [auto\|on\|off\|default] [--json]` | the cut's **progress bar** default (`render.posts.progress`, `updatePostProgressRender`; [report-video.md](report-video.md#the-progress-bar)); bare, which items draw it | | `timeline <project> threads [--json]` · `timeline <project> threads --write [--conversation <id>]` | **the cut's conversations** ([report-video.md](report-video.md#thread-reads), `post-conversation.mjs`): each tree of two post items or more — its root, its items' places, whether they play as one run (one scene) or are split by other entries, a reply placed before the post it answers, an item re-reading a post its run already read (with `posts set-item <p> <item> thread.parent.<i>=context`). `--write` gathers each (or the one holding `<id>`: its root, a post, an item, a `thread.group` name) at its first item's place in TREE order (a manual thread: in DATE order) — a post after what it answers, sibling branches by date, each depth first — in ONE write (one undo point); never across a section boundary (gathered within each section, and said) | | `posts roles <project> [<item> …] [--write] [--set <n>=<role>,…] [--json]` | a narrated read **piece by piece** ([knobs.md](knobs.md#thread-reads-every-part-of-a-read-on-screen-while-it-is-said), [report-video.md](report-video.md#thread-reads)): the text each part of the picked take reads -- `parent:<i>`, `quoted`, `post`, `media:<i>` -- stored or inferred, what the card shows for each, and the build's guard (a part read off a post the card hides is refused). `--write` stores the inferred roles on the picked takes' parts (one write; the import stores them for every new take); `<item> --set n=role,…` sets parts' roles by hand (`off`: inferred again); a part out of range or an unknown role is refused (**exit 1**) | | `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= pace=fast\|normal]` · `<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` (and its read-follow: `follow=on\|off`, `follow.dim=`, `follow.ease=`; its thread reads: `thread.parent=`, `thread.quoted=`, `thread.carry=`, `thread.reveal=`, `thread.shrink=`, `thread.dim=`, `thread.seconds=`, `thread.pan=`). Refused in the build's words (**exit 1**) | diff --git a/umtool/docs/knobs.md b/umtool/docs/knobs.md @@ -790,6 +790,19 @@ build's words (`clockErrors`, `validateClockRender`, `report-to-video/post-clock | one item's clock -- on (or `on: false`: not on this item though the cut's is) | post bench, the clock's row (**remove**) | `umtool posts fx <p> <item> add clock [--off]` · `remove <n>` | `fx: {add: {kind: "clock"}}` | | `rewind` `auto` (an earlier post rewinds) \| `on` (rewinds anyway) \| `off` (cuts straight to its time) | the clock's **rewind** | `umtool posts fx <p> <item> set <n> --rewind on\|off\|auto` | `fx: {set: <i>, patch: {rewind}}` | +## The progress bar (a long read's progress along its card's foot) + +`render.posts.progress` (the cut's default) and `progress` on a post item ([report-video.md](report-video.md#the-progress-bar)): +a thin bar along the card's foot that fills with the item's READ -- its real seconds, so a part read faster (a tempo +step) moves it faster and it never jumps -- ticked at each part's start. Refused in the build's words +(`progressErrors`, `validateProgressRender`, `report-to-video/post-progress.mjs`); in the segment key only for an item +that draws it. + +| Knob | In umtool | From a terminal | Route | +|---|---|---|---| +| the cut's bar -- `auto` (a read of 60 s or more, as the item plays it), `on`, `off` (absent: off) | — | `umtool posts progress <p> auto\|on\|off\|default` (`updatePostProgressRender`); bare: which items draw it | — | +| one item's -- `on`, `off`, `auto` (absent: the cut's) | Play and the post bench draw it | `umtool posts set-item <p> <item> progress=on\|off\|auto\|default` | `POST /api/report/post-item {project, op: "set", id, patch: {progress}, token}` | + ## A slam (a trailer-style title slam over a word as it is read) `fx: [{kind: "slam", text, match, …}]` on a post item ([report-video.md](report-video.md#a-slam): the shape, the @@ -871,6 +884,8 @@ gathers them). | `thread` on a post item — `{parent?, quoted?, carry?, reveal?, shrink?, dim?, seconds?, pan?}` over the cut's (`parent` one mode, or a list, nearest parent first) | post bench, **thread read**: the post it answers / its parent / the quoted post (the cut's, or a mode), **carry**, **shrink**, **dim**, **over**, **pan**; the guard's refusals listed before Save | `umtool posts set-item <p> <item> thread.parent=excerpt` · `thread.parent.1=hidden` · `thread.quoted=context` · `thread.carry=off` · `thread.shrink=0.5` … · `thread=auto` (the cut's) | `POST /api/report/post-item {project, op: "set", id, patch: {thread}, token}` (an object merges; `null` clears) | | a part's role — the text it reads: `parent:<i>`, `quoted`, `post`, `media:<i>` (stored, else inferred) | post bench, **thread read**: the read piece by piece (click one: the playhead at its start; `·` marks an inferred role) | `umtool posts roles <p> [<item> …]` (list, with the guard's verdict and the warnings: a link said aloud, a text cut short) · `--write` (store the inferred roles) · `<item> --set 3=parent:0,4=post` (`off`: inferred again) | — (`updatePostNarration {partRoles: {take, roles}}`) | | a read RE-JOINED without a piece (no TTS) — the picked take's kept parts cut from its own file and joined with the read's pauses: a derived take (`steps: [{op: "rejoin", drop}]`), picked | post bench, **thread read**: **Read without it** on a context piece the take reads | `umtool posts reread <p> <item> --without parent:0` (`parent:1`, `quoted`) · `--drop-parts 3,4` · `--drop-urls` · `--dry-run`; `umtool posts set-item <p> <item> thread.parent.0=context` re-joins first when the take reads it (the knob alone when it does not; `--no-reread`: refused) | `POST /api/report/post-narration {project, op: "reread", id, without: ["parent:0"], dropParts?, dropUrls?}` | +| a read's PARTS RE-TIMED (no TTS) — the parts named read at a tempo of 1–1.6 (pitch kept: ffmpeg `atempo`, or `rubberband`), the rest untouched, joined with the read's pauses; the words scaled with their part (read-follow, zooms, captions, slams, beeps keep their place); a derived take (`steps: [{op: "tempo", tempo: {"4-16": 1.35}, params: {stretch}}]`, each part's `tempo` stored), picked. A tempo is ABSOLUTE: on a re-timed take it re-cuts from the take before (each part stretched once) | — | `umtool posts reread <p> <item> --tempo-for "4-16=1.35,21-25=1.3"` · `--tempo 1.3 --parts 4-16,21-25` · `--stretch rubberband` · `--dry-run`; `umtool posts set-item <p> <item> narration.tempo="4-16=1.35"` (the same) | `POST /api/report/post-narration {project, op: "reread", id, tempo: "4-16=1.35", stretch?}` | +| a read's CAPS YELLED (no TTS) — the words he wrote in ALL CAPS (his post, or the piece a part reads) found in the take's word timings and raised: +5.5 dB measured over the spans, a presence lift, compressed, gently saturated, limited, 50 ms ramps; acronyms (`YELL_ACRONYMS`, any caps word with no vowel) and masked slurs left flat; timings kept; loudness within 1 LU of its source; a derived take (`steps: [{op: "yell", spans, params: {gain, style}}]`), picked. Needs the take's word timings (`posts narrate --words`) | — | `umtool posts reread <p> <item> --yell-caps [--yell-gain 5.5] [--yell-style raise\|shout\|loud] [--dry-run]` · the cut's: `umtool posts yell <p> --all \| <item …> [--dry-run]` (the dry run lists each item's caps, the ones left flat and why, and the items with no word timings) | `POST /api/report/post-narration {project, op: "reread", id, yell: true, yellGain?, yellStyle?}` | | the cut's conversations — one run is one scene; `threads --write` gathers each in tree order (a post after what it answers, sibling branches by date, never across a section) | — | `umtool timeline <p> threads [--json]` · `threads --write [--conversation <id>]` (one undo point) | — (`orderEntries`) | | a post item's `conversation` (the archive row's threadId) and `quoted.via: "link"` (a status link resolved to an archived post) | — | `umtool posts context <p> [--dry-run]` | — (`setPostItemsContext`) | diff --git a/umtool/docs/report-video.md b/umtool/docs/report-video.md @@ -810,6 +810,74 @@ stack card's, until its media phase); Play and the bench mount the same chip (`mountClock`, `setClockState`) from `clockPlan`, which needs the item before it (`playView` `postClock`; the bench's `before`). +### The progress bar + +A long read may draw a PROGRESS BAR (`report-to-video/post-progress.mjs`; operator, 4 Nov, a +6.5-minute post: "we might want a per-clip progress bar in the engine specifically for clips +like this"): a thin bar along the card's foot -- under its counts row, inside the card, inset +from its rounded corners -- that fills with the item's READ, with a subtle tick where each +part of the read starts. + +```jsonc +"render": { "posts": { "progress": "auto" } }, // the cut's default: auto | on | off (absent: off) +"progress": "on" // one item's (absent: the cut's) +``` + +`auto` draws it for a read of 60 s or more as the item plays it (its `rate` counted). It +fills over the read's REAL seconds -- from the narrator's first word to the last, linear -- +so a part read faster by a tempo step (below) moves it faster and it never jumps at a part's +edge; an item with no read fills over its own length. It fades in over 0.35 s as the read +starts and is gone in a stack card's media phase. Its place is judged over the read (its +start, middle and end: the place over fewest words, the words as seen, clipped to their +window) and short of the clock when that sits on its line; over a word anywhere it moves just +under the card's edge. Drawn OVER the card, never in it (`readInViewErrors` never counts it). +The render shoots its track and its fill once each on a clear page and lays them over the +card, the fill clipped at its leading edge frame by frame (`geq` on the frame's time: +`progressFilters`); Play and the bench mount the same bar (`mountProgress`, +`measureProgressPlace`, `setProgressState`) from `progressPlan` (`playView` `postProgress`). +In the segment key only for an item that draws it (`progress`: its plan and drawing version). +`umtool posts progress <p> auto|on|off|default`; one item's: `posts set-item <p> <item> +progress=on|off|auto|default`. + +### A long read sped up, and its caps yelled + +Two edits of a read that is already there -- no TTS, nothing re-synthesized -- each a DERIVED +take (`source: {kind: "take", from}`), picked in one write (one undo point), chained in either +order (`lib/report/postReread.mjs`, `lib/report/postYell.mjs`): + +- **Per-part tempo** (operator, 4 Nov: "This one is really long, what if we sped it up ... + and then slowing back down here on the juicy persecution complex paragraph"; "dynamic speed + over boring parts of a long message ... nothing too crazy"): `umtool posts reread <p> <item> + --tempo-for "4-16=1.35,21-25=1.3"` (or `--tempo 1.3 --parts 4-16,21-25`; `posts set-item + <p> <item> narration.tempo="…"`). Each part named is time-stretched to that tempo (1–1.6, + its pitch kept: ffmpeg `atempo`, `--stretch rubberband` the alternative), padded and trimmed + to its length so the parts after it land sample-exact; the others are untouched; all are + joined with the read's pauses. Its parts are re-timed (each stretched one's `tempo` + stored) and its word timings scaled with their part, so read-follow, word zooms, captions, + slams and slur beeps keep their place. `steps: [{op: "tempo", tempo: {"4-16": 1.35, + "21-25": 1.3}, params: {stretch}}]`. A tempo is ABSOLUTE (against the part's first read): + on a re-timed take it re-cuts from the take before it, so a part is stretched once, never + twice, and the parts it does not name keep the tempo they had (`1` sets one back). The cut's + `rate` still plays over the whole read: a part at 1.35 in a cut at 1.08 plays at 1.46. +- **The caps yelled** (operator, 4 Nov: "I feel like allcaps needs to be yelled more"): the + scripts are drafted with his ALL-CAPS words lowercased (a stock voice spells a caps word out + letter by letter), so the read said them flat. `umtool posts reread <p> <item> --yell-caps + [--yell-gain 5.5] [--yell-style raise|shout|loud]`, or the cut's `umtool posts yell <p> --all + | <item …>`: the words whose SOURCE word -- his post, or the piece a part reads (the post he + answers, the quote, a linked post: looked for only in the words that read it) -- is ALL CAPS + of two letters or more, found in the take's word timings (aligned like a word zoom's), and + raised over each run of them (spans padded, a run merged): louder by the lift MEASURED over + the spans (+5.5 dB), a presence lift (~3.2 kHz) and some body, compressed, a gentle tanh + saturation, limited under 0 dBFS, crossfaded in and out over 50 ms -- a voice raised, not + turned up. Left flat: acronyms and initialisms (`YELL_ACRONYMS`: FBI, DM, KF, TV, OK …; any + caps word with no vowel reads as letters) and a slur the cut masks (beeped anyway). The take's + loudness stays within 1 LU of its source (over it, the lift is lowered: an all-caps post + keeps the timbre, not the level); its length and its timings are the source's. + `steps: [{op: "yell", spans, params: {gain, style, trim?}}]`. It needs the take's word + timings (`umtool posts narrate <p> <item> --words`) and says so; `posts yell <p> --dry-run` + lists each item's caps, the ones left flat and why, and the items with no word timings. A + yell on a yelled take re-yells the take before it; one further up the chain is refused. + ### The pace `pace: "fast"` on a narrated post's narration (or `render.postNarration.pace`, the cut's) @@ -826,7 +894,8 @@ caption's text and knobs, the clock fx, the narration's `pace`, the item's id (a segment) -- and `postFxKeyFields` (`post-render.mjs`) APPENDS what the entry does not carry: `captionV` and `clockV` (the chip's and the clock's drawing, bumped when their look changes), `clock` (the plan: this post's time, the time it runs from -- the item before's, when that one is a clock item -- the mode, a forced rewind, -the zone) and `pace` (the gap knobs a cut-level pace resolved to). An item with none of these adds nothing, so +the zone), `pace` (the gap knobs a cut-level pace resolved to) and `progress` (the progress bar's plan and its +drawing version, only for an item that draws it). An item with none of these adds nothing, so its key is the one it had before they existed and a take `--from` an earlier one reuses its segment. A take `--from` another hard-links a post item's record (`.post.json`) and its combo pass's files (`.combo.json`, `.plain.mp4`) with its segment (`SEGMENT_FILE_SUFFIXES`), and a post item's files are no longer detached before