commit 0039ea69305c324e1ec292e76550c8217ae4e453
parent 52425e315c573c872ab4e787a9f6dcedff860e31
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Thu, 5 Nov 2026 09:56:32 -0500
umtool: a post's @handles typed inside the message are read -- only the run a reply opens with (X adds those) is dropped
speakableText dropped every @handle, so "its good advice @grok don't you agree?" was read without "@grok" and the lexicon's @grok -> "at grok" never matched. The leading run of handles goes; a handle inside the sentence stays in the script, and spokenRead says it "at <handle>" (sayHandles) after the lexicon has had its turn. Existing takes are untouched. (operator, 5 Nov: "The "@" mentions at the start are added by the UI but any in the middle of a message were typed by a person and should be read out")
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
7 files changed, 27 insertions(+), 6 deletions(-)
diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md
@@ -1,6 +1,7 @@
# Changelog
## [Unreleased]
+- **A post's @handles typed inside the message are read.** A read dropped every @handle, so "its good advice @grok don't you agree?" lost "@grok" and the lexicon's `@grok` -> "at grok" never applied. Only the run of handles a reply OPENS with (X adds those) is dropped now; a handle inside the sentence stays in the script and is said "at <handle>" (`sayHandles`), the lexicon's own spelling first. Existing takes are untouched; a re-read picks it up.
- **umtool: Play is one press from anywhere, a clip is added without its spec, and every page leads with its next step.** A cut or a take named anywhere now carries a Play that opens the newest take (at the item when there is one): the project's head on every tab (with Walk, + Add a clip and the status `latest <take> · <length> · rendered <day> · <n> open notes`), every Cut tab row, every take card, the take walk, `/jobs`' renders (with the mp4's local path and Copy), the Inbox's cards and the rail's Recent cuts; a cut of posts showed no Play at all. **+ Add a clip** finds the words in the recordings the cut draws on (or the archive, or a pasted link with a time), sets the in and out on the moment's cues, places it after a row (by date when the cut is in date order) and fetches its window through the editor; from the Cut tab, from Play at the playhead and from a take ("to this take only": `umtool timeline <p> --take <t> insert <spec> --after <id>`). **+ Add posts** is `posts reel` with a preview; **Reads and voices** edits the pronunciation lexicon and the voice map with Try it; also the redacted words, the slur filter and the cut's narration mix, and queues the cut-wide passes (every script, every missing read, context from captures, conversations) as queue steps. A take has **Check before render** (`lint --take`), **Check the joins**, **New draft from this take** and **Add items from another project** (with a preview); New take has **Save as a draft**; the post bench's **edits go to: take <t> only** writes the take's patch (`--in-take`) and its **Re-join the read** re-times, drops parts or URLs and raises the caps; the clip bench can **Fetch this window again**; the reel cut takes a finale, a file name and a dry run; the Deliver tab opens on **Output files**, absolute paths with Copy. The rest of each page sits under one **Options** / **Advanced** disclosure, its open state remembered per viewer; nothing was removed.
- **A report video renders 9:16 too: vertical shorts of clips, post reads and side posts, in one format.** `render.format: "vertical"` builds the same timeline 1080x1920 at its fps (no deck, header, QR or intro), and `umtool vertical <p> --take <t> --reel <r>` (or `umtool trailer … --vertical`) builds a short of a take's items without touching the cut: each clip cut again in its layout -- full (a 9:16 crop, big captions lit word by word, a source tag), framed (the whole picture in the middle third over a blurred enlargement, a hook from the cut's own titles above) or quote (the picture in the top 40 %, the line set large below, cited) -- and each post item drawn again in a portrait box (card, stack or media-first). A clip can carry a SIDE POST (`umtool set <p> <clip> side.item=… side.from=… side.to=…`): a post shown beside it while it plays, never read, the clip's sound running -- split or overlay in a vertical cut, a panel sliding in at the side in 16:9. Text keeps out of the platforms' buttons (top 8 %, bottom 20 %, right 12 %, knobs), the short is brought to -14 LUFS and said when it runs over 60 s; `--reframe` recomposes a finished 16:9 master instead (the footage box, the post's card over its attachment, the deck's date line), the cheapest for any cut. A clip's crop and layout are `umtool set … vertical.crop=… vertical.layout=…`; no `format` key and the 16:9 render is byte for byte what it was. umtool/docs/cli.md "Make a vertical short", knobs.md "Vertical shorts".
- **A take can carry items of other projects, and be edited without touching the project.** A cut assembled as a take of one project from the items of several (the mid cut: a take of the full cut, items from the full cut and a staging project) needed a script to clone the entries, hard-link their narration in and copy each re-read into the take's patch by hand. `umtool take <p> --id <t> --import-item <project>:<item>[,<item>…] [--after|--before <entry>]` now clones the items with their narration and its pick, hard-links every file they name into the take's project (another file already at a path: linked under `imports/<source>/` instead, never written over), places them, and is safe to run again (`updated`, or `unchanged` with no write). `posts set-item`, `roles`, `narrate`, `reread` and `fx` take `--in-take <take>`: the same edit lands in the take's patch with an undo point of the take's own (`umtool timeline <p> --take <t> undo`), the project's manifest untouched. `umtool take … --draft --from <take>` starts a draft from another take's patch, and `umtool lint <p> [--take <t>]` runs the build's lint on a take and checks that every file its items name is in the project. `posts narrate --thread` finds the editor's WORKER_TOKEN in `editor/.env` as umtool's other editor calls do. A cut whose posts carry the progress bar (`posts progress auto`) no longer fails its lint (`render.posts.progress is not a knob`), nor does one with the clock, panel, join, link-visit or branch-map knobs.
diff --git a/umtool/docs/cli.md b/umtool/docs/cli.md
@@ -95,7 +95,7 @@ Inbox cannot disagree about what is wrong with one.
| `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**) |
+| `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: a reply's leading @handles, links, emoji dropped -- a handle typed inside the message is kept and said "at <handle>", the lexicon first; `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**) |
| `posts narrate <project> <item> --take --thread [--parents 0\|all\|none\|<n>] [--skip-parent <id\|parent:i>]… [--no-quoted] [--no-linked] [--read-seen] [--voice-for <handle>=<voice>]… [--voice v] [--engine e] [--note "…"] [--force] [--no-hold] [--dry-run] [--json]` | a **THREAD READ** as one command ([knobs.md](knobs.md#pronunciation-and-voices-the-lexicon-the-voice-map-a-thread-read), `lib/report/postThreadRead.mjs`): the post it answers (`--parents all`: every ancestor; `<n>`: parents 0..n; `none`), the post it quotes and the posts it links to, then his words, in DATE order, each in its author's voice (`--voice-for`, then the project's voice map, `posts voices`; his own: the narrator's), the redaction, the slur filter (a beep is skipped: a joined read is not word-timed) and the lexicon (`posts say`) applied. A parent or quoted post the item before already shows is not read again (`--read-seen`: it is). Each part is synthesized ONCE by the editor's tts op into `narration/parts-cache/<sha1(voice\|text)>.wav` (the transcription lane held meanwhile, only if it was not; `--no-hold`: left alone), joined (0.8 s between pieces, 0.6 between paragraphs, 0.25 inside one) into `take-<n>.<engine>-thread.wav` with `take-<n>.parts.json`, saved with its parts' roles, its lexicon and how it was asked (`read`) and PICKED — one write (one undo point). `--dry-run`: the pieces, voices and parts (cached or not), nothing asked. Already up to date (same words and voices): nothing done, **exit 0** (`--force`: again). A part not synthesized: **exit 1** (the parts made stay cached; run it again); `--json` prints `{ok: false, error}` too. A usage error: **exit 2** |
| `posts say <project> [ls] [--item <id>]` · `add <word\|phrase> "<spoken>" [--case] [--item <id>] [--note "…"]` · `remove <word\|n> [--item <id>]` · `try "<text>" [--item <id>]` · `stale` `[--json]` | **THE PRONUNCIATION LEXICON** ([knobs.md](knobs.md#pronunciation-and-voices-the-lexicon-the-voice-map-a-thread-read)): `narration/lexicon.json` in the project, a word or phrase said differently in EVERY synthesized read (a script's `--take`, each piece of a thread read, the bench's re-take); the scripts and cards keep their words. Whole words, without case unless `--case`, a phrase across any spaces, regex characters literal; `--item` for one item's reads (it wins over the project's). A masked slur and a redacted word are never replaced. `add` of a word already listed changes what is said. `try` prints what a voice would be asked to say. `stale` lists every picked read that still says an entry the old way, with the command that re-reads it. A bad entry or an unknown item: **exit 2** |
| `posts voices <project> [ls] \| set <handle\|*> <voice> \| remove <handle\|*> [--json]` | **THE VOICE MAP** (`narration/voices.json`): the stock voice a thread read gives each author (`*`: everyone it does not name; default `leo` on Orpheus); `ls` lists the map and every author the cut's items carry with the voice each would get. A bad handle or voice: **exit 2** |
diff --git a/umtool/docs/report-video.md b/umtool/docs/report-video.md
@@ -591,7 +591,7 @@ seeking them forward every few frames (before 3 Nov a fast-forward skipped throu
**Scripts are the post, VERBATIM** (operator: "stick to the script! Only adjust
emotion"): `posts narrate <p> --all --draft-scripts` cleans them only to be spoken
-(@handles, links and emoji dropped; `plan(s)` → plans, `w/` → with, `&` → and; the
+(a reply's leading @handles -- X adds those -- links and emoji dropped; a handle typed inside the message is read, "at <handle>", the lexicon first; `plan(s)` → plans, `w/` → with, `&` → and; the
paragraphs kept). Emotion is Orpheus's tags. A shorter read is only ever the
operator's own edit.
diff --git a/umtool/report-to-video/post-narration.mjs b/umtool/report-to-video/post-narration.mjs
@@ -391,7 +391,8 @@ export function postNarrationFilters({ media, voice, out, sch, gainDb = 0, audio
/**
* The post's words AS A VOICE READS THEM -- verbatim (operator, 2 Nov: "stick
* to the script!"), cleaned only for pronunciation: a repost's "RT @x:",
- * @handles, links and emoji dropped; "plan(s)" read "plans", "w/" "with",
+ * the leading @handles of a reply, links and emoji dropped (a handle inside the sentence is kept and said "at …");
+ * "plan(s)" read "plans", "w/" "with",
* "&" "and"; the spacing tidied. Nothing is cut: a shorter read is only ever
* the operator's own edit.
*/
@@ -500,7 +501,10 @@ export function isOnlyUrls(text) {
export function speakableText(text) {
const clean = dropUrls(String(text ?? ""))
.replace(/^RT @[A-Za-z0-9_]+:\s*/, "")
- .replace(/(^|[\s(])@[A-Za-z0-9_]{1,30}\b/g, "$1")
+ // X's reply prefix -- the run of @handles a reply OPENS with -- is dropped; a handle inside the sentence is
+ // part of what he wrote ("its good advice @grok don't you agree?") and stays, for the lexicon and the voice
+ // (operator, 5 Nov: "the "@grok" in "@grok don't you agree" should be read out"; spokenRead says it "at …").
+ .replace(/^(?:[\s,]*@[A-Za-z0-9_]{1,30}\b)+[\s,:]*/, "")
.replace(/[\p{Extended_Pictographic}\u{1F1E6}-\u{1F1FF}\u{FE0F}\u{200D}\u{20E3}]/gu, "")
.replace(/\b(\w+)\(s\)/g, "$1s")
.replace(/(^|\s)w\/(?=\s|$)/gi, "$1with")
diff --git a/umtool/report-to-video/post-narration.test.mjs b/umtool/report-to-video/post-narration.test.mjs
@@ -236,6 +236,10 @@ test("SCRIPTS ARE THE POST, VERBATIM: cleaned for pronunciation only, never an e
assert.equal(d.words, 152);
assert.ok(d.script.endsWith("The end."));
assert.equal(draftScript("RT @someone: hello there").script, "hello there");
+ // A reply's leading @handles go; a handle inside the sentence is his words and stays (operator, 5 Nov: "@grok don't you agree").
+ assert.equal(speakableText("@grok @JustinInYT1 Its just advice, its good advice @grok don't you agree?"), "Its just advice, its good advice @grok don't you agree?");
+ assert.equal(speakableText("@a, @b_c: hi there"), "hi there");
+ assert.equal(speakableText("mail me at a@b.com"), "mail me at a@b.com");
});
test("LINKS ARE NEVER SPOKEN: X's link split over lines is put back together and dropped whole -- its \"…\" line too; a spelled-out link is still found", () => {
diff --git a/umtool/report-to-video/post-redact.mjs b/umtool/report-to-video/post-redact.mjs
@@ -342,6 +342,9 @@ export function slurEntry(entry, slurs) {
// What is SAID and what a line of text SHOWS, the redaction and the slur filter together.
// ---------------------------------------------------------------------------
+/** "@grok" -> "at grok", "@Some_One" -> "at Some One": a handle in the words, as a voice says it. */
+export const sayHandles = (text) => str(text).replace(/(^|[\s("'“])@([A-Za-z0-9_]{1,30})\b/g, (_, pre, h) => `${pre}at ${h.replace(/_+/g, " ").trim()}`);
+
/**
* The words a voice is asked to SAY for `text` (a post item's script): every
* redacted term left out, and each slur as the filter's voice has it -- skip,
@@ -370,7 +373,8 @@ export function spokenRead(text, entry, red, { voice = undefined } = {}) {
? applyLexicon(str(text), red.say, { item: str(entry?.id) || null, protect: [...(s ? slurMatches(str(text), s) : []), ...redactText(str(text), terms).spans] })
: { text: str(text), applied: [] };
const said = (r) => (lex.applied.length ? { ...r, lexicon: lex.applied } : r);
- const t = lex.text;
+ // A handle left inside the sentence (speakableText keeps those; the lexicon may have said it its own way) is said "at <handle>".
+ const t = sayHandles(lex.text);
const hits = s ? slurMatches(t, s) : [];
if (!hits.length) return said({ text: spokenWithout(t, terms), slurs: null });
const v = voice ?? s.voice;
diff --git a/umtool/report-to-video/post-redact.test.mjs b/umtool/report-to-video/post-redact.test.mjs
@@ -4,7 +4,7 @@
import assert from "node:assert/strict";
import { test } from "node:test";
import {
- REDACT_MARK, barsHtml, dropMarks, redactEntry, redactPattern, redactText, spokenWithout, termsFor, validatePostsMarkup, validatePostsRender,
+ REDACT_MARK, barsHtml, dropMarks, redactEntry, redactPattern, redactText, sayHandles, spokenRead, spokenWithout, termsFor, validatePostsMarkup, validatePostsRender,
} from "./post-redact.mjs";
import { postCardHtml, validatePostItems } from "./post-item.mjs";
@@ -110,3 +110,11 @@ test("with a word zoom: the redacted text keeps its card words (the zoom's indic
assert.ok(vpi({ timeline: [onName], render: { posts: { redact: NAME } } }).some((x) => x.includes("is a redacted word")));
assert.deepEqual(vpi({ timeline: [onName], render: {} }), []);
});
+
+test("a handle left inside the words is said \"at <handle>\"; the lexicon's own way wins", () => {
+ assert.equal(sayHandles("its good advice @grok don't you agree?"), "its good advice at grok don't you agree?");
+ assert.equal(sayHandles("ask @Some_One (or @x)"), "ask at Some One (or at x)");
+ assert.equal(sayHandles("a@b.com"), "a@b.com");
+ assert.equal(spokenRead("advice @grok don't you agree?", { id: "p-1" }, null).text, "advice at grok don't you agree?");
+ assert.equal(spokenRead("advice @grok ok", { id: "p-1" }, { say: [{ word: "@grok", say: "at Grok A I" }] }).text, "advice at Grok A I ok");
+});