Archilyzer · Source

archilyzer

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

commit b065b1f1a60528790b51863b4f9e3a429503bb0a
parent 41a5e75c6f176ae008e4b2e7e9d0b07df6f9711e
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Thu,  5 Nov 2026 10:33:27 -0500

umtool docs and tests: picture-only posts -- knobs.md's section and rows, cli.md's set-item knobs, report-video.md, the editor changelog's [Unreleased] bullet, and an e2e spec (the GIF's beat in its card, never in the slot; a picture-only item; the bench's knob)

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

Diffstat:
Meditor/CHANGELOG.md | 1+
Mumtool/docs/cli.md | 2+-
Mumtool/docs/knobs.md | 30++++++++++++++++++++++++++++--
Mumtool/docs/report-video.md | 27+++++++++++++++++++++++++++
Aumtool/e2e/picture-replies.spec.ts | 124+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 181 insertions(+), 3 deletions(-)

diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## [Unreleased] +- **A reply that is only a picture is drawn as its message, and a long post on a card alone keeps large text.** A post whose words are only @mentions and links with an attachment (an "@ObviousRises" and a GIF, a reply that is a screenshot of another post) is now picture-only in a report video: its picture is drawn inside its own card where its words would be, at the card's width, with the mention drawn small as a reply-to line, never in the side slot. The GIF that showed beside Mr. Obvious's reply while he was being read now has its own beat first: shown alone in its card for its own length (an image for 2 s, between 1.5 and 4 s), then the read. The read's start moves and the take is not re-made, so word zooms, captions, slams and beeps stay on their words. The render plays the GIF over its place in the card, Play plays it in the card, and the post bench has a **picture-only** block with an auto, on or off setting for the item and for each post it answers or quotes (`umtool posts set-item <p> <item> pictureOnly=on|off|auto`, `parent.<i>.pictureOnly=`, `quoted.pictureOnly=`). `render.posts.pictureReply` sets the beat's length or turns the rule off. A long post on a card alone is now drawn at a reading size and scrolled with the read, where it used to shrink to read-follow's minimum to fit (operator, 5 Nov: "bigger text for the novel"). Posts that are not picture-only, and posts whose words fit their card, render exactly as before. - **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 @@ -87,7 +87,7 @@ Inbox cannot disagree about what is wrong with one. | `posts set <project> <post> thread=on\|off [hide=on\|off] [attach=<clipId>\|auto] [crop=<px>\|off] [--json]` | the Posts table's writer (`updatePosts`, `PUT /api/report/posts`) from a terminal: `<post>` is the manifest's id (`x-<postId>`) or the bare `<postId>`; `thread=on` draws a reply with the post it answers above it (`shot-thread.png` beside its `shot`, taken by `capture-posts` `"thread": true`; its own shot while there is none), `off` removes the key.; `crop=<px>` the post's own crop of its screenshot (`shotMaxHeight`, 120–1080: its top that tall, never panned; `off` removes it) ([knobs.md](knobs.md#add-post-a-post-card-from-play-the-cut)). Refused in the build's words (a post with no `shot`, an `attach` that is not a clip) — **exit 1** | | `posts add <project> <archive-channel>/<postId> [--attach <clipId>] [--flag F] [--author A] [--id ID] [--thread] [--crop <px>] [--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. `--thread`: the entry gets `thread: true` (a reply drawn with the post it answers; `shot-thread.png` is copied with the rest, and with none yet it prints the `"thread": true` capture to run). `--crop <px>`: the post's own crop (`shotMaxHeight`). A post that quotes another, reposts one or carries media is added with a `WARNING:` line (`--json`: `warnings`) — its screenshot shows them, by the post's own data. Play the cut's **Add post** runs this same write ([knobs.md](knobs.md#add-post-a-post-card-from-play-the-cut)) | | `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>.enter=post\|item] [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; `media.<i>.enter=` when its own attachment comes in -- with his own post's read (`post`, the default: a parent or a quote read first shows none of it) or with the item (`item`) | +| `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>.enter=post\|item] [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] [pictureOnly=on\|off\|auto] [parent.<i>.pictureOnly=on\|off\|auto] [quoted.pictureOnly=on\|off\|auto] [--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; `media.<i>.enter=` when its own attachment comes in -- with his own post's read (`post`, the default: a parent or a quote read first shows none of it) or with the item (`item`). `pictureOnly=` a PICTURE-ONLY post ([knobs.md](knobs.md#picture-only-posts-a-reply-that-is-its-picture)): its attachment drawn in its own card where its words would be, never in the slot, a context post that is one given its own beat before the read -- `auto` (a post of only @mentions and links with an attachment), `on`, `off`; `parent.<i>.pictureOnly=` / `quoted.pictureOnly=` for those | | `posts set-item \| roles \| narrate \| reread \| fx <project> … --in-take <take>` (set-item, roles, reread, fx: `--take <take>` too) | **a take-scoped edit** (`takeScope.mjs`): the same command, on a TAKE of the project -- its manifest read as the take's (the project's now with the take's patches), every write landing in `takes/<take>/take.json`'s patch with an undo point of the take's own (`timeline <p> --take <take> undo`). The project's manifest, and any project the take's items were imported from, are untouched; a new read (`narrate --take`, `--thread`, `reread`) lands in the project's `narration/` under a take number no file or entry has. A writer not routed to the take refuses and writes nothing. `--json`: the command's own object plus `take {id, edits, revisions, undo}`. narrate's own `--take` is "make a new read": `narrate … --take <a take's id>` is refused (exit 2) naming `--in-take`. **Exit 1** when the take is not there or is rendering ([take-scoped edits](#edit-a-take-not-the-project-items-from-other-projects-and-take-scoped-edits)) | | `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** | diff --git a/umtool/docs/knobs.md b/umtool/docs/knobs.md @@ -974,16 +974,42 @@ card route and the build draw the same states. | `render.posts.join` — the join between items of one run: `{on, seconds}` (default on, 0.6 s, 0.2–2); the read starts after it | — | (the manifest's `render.posts.join`) | — | | `join` on a post item — `false`: a cut; `{seconds}` its own | — | (the manifest) | `POST /api/report/post-item {op: "set", patch}` | | `parents[i]` — an ancestor added (i = the next index), replaced or dropped, nearest first, up to 8: `{id, author, handle, date, text, media?, paraphrase?}` | — | `umtool posts set-item <p> <item> 'parent.1={"id":"…","handle":"…","author":"…","date":"…","text":"…"}'` · `parent.1=@ref.json` · `parent.1=off` | `POST /api/report/post-item {op: "set", patch: {parents: {"1": {ref}}}}` | -| `parents[i].media` — a context post's attachments, shown in the slot while it is on screen (project files, measured) | — | `umtool posts set-item <p> <item> parent.0.media=posts-media/…/1.mp4[,…]` · `=off` | same, `{parents: {"0": {media: [...]}}}` | +| `parents[i].media` — a context post's attachments, shown in the slot while it is on screen (project files, measured); a picture-only one's are drawn in its card ([Picture-only posts](#picture-only-posts-a-reply-that-is-its-picture)) | — | `umtool posts set-item <p> <item> parent.0.media=posts-media/…/1.mp4[,…]` · `=off` | same, `{parents: {"0": {media: [...]}}}` | | `media` from a project file — added (kind, size, length measured) or removed | — | `umtool posts set-item <p> <item> media.add=posts-media/…` · `media.1=off` | same, `{mediaAdd: [...]}` · `{media: {"1": null}}` | | `links[]` — a post its words link to that the card draws (a link visit), its picture and the words read off it (`transcript`, role `linked:<i>`) | — | `umtool posts set-item <p> <item> 'link.add={…}'` · `link.0.media=<file>` · `link.0.transcript="…"` · `link.0=off` | same, `{linksAdd: [...]}` · `{links: {"0": {...}}}` | | `thread.group` — a MANUAL THREAD: consecutive items of one group are one scene, in timeline order | — | `umtool posts set-item <p> <item> thread.group=jiggle` (`off`) · `umtool timeline <p> threads --write --conversation jiggle` (gathered in date order) | same, `{thread: {group}}` | | `render.posts.panel` — a wide attachment's layout: `{wide, place}` (default 2.0, `top`; `bottom`; `side`: never) | — | (the manifest) | — | -| `panel` on a post item — `side`, `top`, `bottom` (absent: the cut's rule) | — | `umtool posts set-item <p> <item> panel=top` (`auto`) | same, `{panel}` | +| `panel` on a post item — `side`, `top`, `bottom` (absent: the cut's rule); a picture-only item has no slot: its picture is in its card ([Picture-only posts](#picture-only-posts-a-reply-that-is-its-picture)) | — | `umtool posts set-item <p> <item> panel=top` (`auto`) | same, `{panel}` | | `render.posts.linkVisit` — `{on, hold}` (default on, 1.4 s: a post read earlier lit again that long) · `linkVisit: false` on an item | — | (the manifest) | — | | `render.posts.threadMap` — the branch map: `{on, style}` (default on, `both`; `map`, `label`) · `thread.map` on an item: `false`, `true`, a style | — | `umtool posts set-item <p> <item> thread.map=off` (`label`, `map`, `both`, `auto`) | same, `{thread: {map}}` | | a post item made by hand (no archive holds it) | — | `umtool timeline <p> insert --after <id> 'post-json:{"post":"<chan>/<id>","author":…,"handle":…,"date":…,"text":…,"media":["posts-media/…"]}'` (or `post-json:@file.json`) | — | +## Picture-only posts (a reply that is its picture) + +A post whose words are only @mentions and links -- "@ObviousRises" and a GIF -- says what it says with its picture +([report-video.md](report-video.md#picture-only-posts); `report-to-video/post-picture.mjs`). Such a post -- an item, a +post it answers, the post it quotes -- is drawn as its message: its attachment INSIDE its own card where its words would +be (the card's width, its aspect and crop kept; a GIF or a video playing there), its mention-only words small as X's +reply-to line; never in the side slot, never while another post's read plays. In a thread read, a picture-only context +post the read does not read gets its own BEAT before the read: lit and shown alone, then the read -- the read's start +moved (the take never re-made: word zooms, captions, slams and beeps stay on their words), his own attachment entering +with his words. A picture-only item not narrated lasts its beat. The build plays a GIF over its still while its card is +at full size and still (`<id>.post.json`'s notes say when); Play plays it in the card; the post bench's **picture-only** +block says which of the item's posts are and sets the knob. A picture-only post standing BETWEEN two read pieces has no +beat (it is drawn in its card and gives way with the piece after it). The rule's beat is part of the item's length +everywhere (the schedule, the bench, Play, the build); a parent carried in from the item before (`thread.carry`) is that +item's, and has none. + +| Knob | In umtool | From a terminal | Route | +|---|---|---|---| +| `pictureOnly` on a post item -- `true`: picture-only (it needs an attachment) · `false`: never · absent: the rule (its words only @mentions and links, and an attachment) | post bench, **picture-only**: his post's row (auto / picture-only / not) | `umtool posts set-item <p> <item> pictureOnly=on` (`off`, `auto`) | `POST /api/report/post-item {project, op: "set", id, patch: {pictureOnly: true \| false \| null}, token}` | +| `parents[i].pictureOnly`, `quoted.pictureOnly` -- the same for a context post | post bench, **picture-only**: its row | `umtool posts set-item <p> <item> parent.0.pictureOnly=on` · `quoted.pictureOnly=off` (`auto`) | same, `patch: {parents: {"0": {pictureOnly}}, quoted: {pictureOnly}}` | +| `render.posts.pictureReply` -- the cut's rule: `{on, image, min, max}` (default `on: true`; a beat is a GIF's or a video's own length, an image `image` = 2 s, clamped to `min`–`max` = 1.5–4 s); `on: false` turns the rule off (a post's own `pictureOnly: true` still wins) | — | (the manifest) | — | + +A LONG READ on a card alone (no attachment, or a picture-only one in the card): words that do not fit the card at any +size are drawn at a reading size (`POST_LONG_READ_SIZE`, 36 px of a 1080 frame) and panned by read-follow -- never +shrunk to fit; beside an attachment they keep read-follow's minimum (28 px). + ## The combo counter A post item that plays an attachment an earlier post item of the cut already played gets a fighting-game badge, diff --git a/umtool/docs/report-video.md b/umtool/docs/report-video.md @@ -1295,6 +1295,33 @@ kept only as a picture) -- `post`, `author`, `handle`, `date`, `text`, `media` ( its avatar `posts avatar <p> <handle> <file>`; refused as the build would. **An attachment from a file**: `posts set-item … media.add=<file>` (kind and size measured), `media.<i>=off`. +### Picture-only posts + +A post whose words are only @mentions and links, with an attachment -- "@ObviousRises" and a GIF, a reply that is a +screenshot of somebody else's post -- says what it says WITH its picture (operator, 5 Nov, the Mr. Obvious mid cut at +26:53: the "It's time to stop" GIF "shows while Obvious is speaking rather than it being a picture-only response like +the MW post, we need to handle this because it's a standard type of post"). `report-to-video/post-picture.mjs` decides +it (`isPictureOnly`: the post's own `pictureOnly`, else the rule) and the card draws it as its message: + +- **in its own card**: its first attachment where its words would be, at the card's (or the tile's) width, its aspect + and crop kept, at most about 60 % of the card tall ("+N" when it carries more); its mention-only words drawn small, as + X's reply-to line. Never in the side slot (`slotMediaOf`, `panelSchedule` skip it), so never beside another post's + read. An image is drawn by the page (a censored one blurred whole); a GIF's or a video's first frame is the page's + still, and the build lays the file over that place, looped and silent, wherever the card is at full size and still + (`measurePics`, from the frames read-follow shoots), fading back to the still as the card moves on; +- **its own beat** (`post-thread.mjs pictureBeats`): a picture-only parent or quoted post the read does not read, + standing before the read's first piece, is a piece of its own -- revealed, lit and shown alone (a GIF's or a video's + own length, an image 2 s, clamped to 1.5–4 s: `render.posts.pictureReply`), shrinking as the read comes in. The read + is never re-made: postItemPlan moves its START by the beats (as it does for a join), so every word zoom, caption, slam + and beep stays on its word; the item is the beats longer; his own attachment enters with his words; +- **an item** that is picture-only has no slot (a card alone, its picture in it); not narrated, it lasts its beat; + narrated (a read of the words on the picture), the read's length, as any item. + +One standing between two read pieces has no beat (drawn in its card, it gives way with the piece after it); a parent +carried in from the item before is that item's (no beat). `render.posts.pictureReply.on: false` restores the old +drawing (a chip, the picture in the slot) for every post that does not say `pictureOnly: true`. + + ### The combo counter When a post item's attachment is one an EARLIER post item of the cut already played — diff --git a/umtool/e2e/picture-replies.spec.ts b/umtool/e2e/picture-replies.spec.ts @@ -0,0 +1,124 @@ +import { test, expect, type Page } from "@playwright/test"; +import { copyFileSync, existsSync, readFileSync, rmSync, writeFileSync } from "node:fs"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; +import * as urls from "./urls"; + +// --------------------------------------------------------------------------- +// PICTURE-ONLY POSTS (report-to-video/post-picture.mjs; knobs.md, "Picture-only posts"; operator, 5 Nov, the Mr. +// Obvious mid cut at 26:53: "the "It's time to stop" gif shows while Obvious is speaking rather than it being a +// picture-only response like the MW post, we need to handle this because it's a standard type of post"): +// - a reply's parent that is only "@him" and a GIF has its own beat before the reply's read: lit, alone, its GIF +// drawn IN ITS CARD (the page plays it) -- never in the slot -- and the reply's read after it, the GIF's card +// small and dim, still never in the slot; +// - an item that is only "@him" and a picture is a card alone, its picture inside it where its words would be; +// - the post bench says which posts are picture-only and sets the knob. +// Fixture: e2e/fixtures/post-narration-fixture.mjs's items, rewritten here. +// +// PICTURE_REPLIES_SHOTS=<dir> screenshots there +// --------------------------------------------------------------------------- + +const HERE = path.dirname(fileURLToPath(import.meta.url)); +const REPORTS = path.join(HERE, "..", ".e2e-song", "reports"); +const DIR = path.join(REPORTS, "post-narration-fixture"); +const MANIFEST = path.join(DIR, "video.manifest.json"); +const PROJECT = "reports/post-narration-fixture"; +const SHOTS = process.env.PICTURE_REPLIES_SHOTS ?? null; + +const REPLY = "Then do not antagonize me, that is something the whole community needs to learn about me."; +const GIF = { src: "posts-media/narrchan-x/11/11_1.mp4", kind: "gif", width: 320, height: 180, seconds: 2.5 }; + +function takeOf(text: string) { + const seconds = Math.round((text.split(/\s+/).length / 3) * 100) / 100; + return { file: "narration/posts/11/take-1.orpheus-zac.wav", engine: "orpheus", voice: "zac", seconds, script: text, parts: [{ n: 1, para: 0, text, start: 0, seconds, role: "post" }] }; +} + +test.beforeAll(() => { + if (!existsSync(`${MANIFEST}.pristine`)) copyFileSync(MANIFEST, `${MANIFEST}.pristine`); +}); +test.beforeEach(() => { + test.setTimeout(120_000); + copyFileSync(`${MANIFEST}.pristine`, MANIFEST); + rmSync(path.join(DIR, "revisions"), { recursive: true, force: true }); + rmSync(path.join(DIR, "notes.json"), { force: true }); + const m = JSON.parse(readFileSync(MANIFEST, "utf8")); + const byId = (id: string) => m.timeline.find((x: { id: string }) => x.id === id); + // His reply to a post that is only "@narrsubject" and a GIF. + const reply = { ...structuredClone(byId("p-12")), id: "p-41", post: "narrchan-x/41", text: REPLY, date: "2026-10-30T07:00:00.000Z", narration: { script: REPLY, takes: [takeOf(REPLY)], pick: 0 } }; + delete reply.media; + reply.parents = [{ id: "40", author: "Furri", handle: "furri_m", date: "2026-10-30T06:58:00.000Z", text: "@narrsubject", media: [GIF] }]; + // A reply of somebody else's that is only "@narrsubject" and a picture. + const pic = { ...structuredClone(byId("p-12")), id: "p-42", post: "othchan-x/42", author: "Kir", handle: "kir_v", text: "@narrsubject", date: "2026-10-30T08:00:00.000Z", media: [{ src: "posts-media/narrchan-x/12/12_2.png", kind: "image", width: 320, height: 180 }], panel: "side" }; + m.timeline = [reply, pic, byId("p-13")]; + writeFileSync(MANIFEST, JSON.stringify(m, null, 2) + "\n"); +}); + +async function playAt(page: Page, id: string, at: number) { + await page.goto(urls.playHref(PROJECT, { bare: true, clip: id, at })); + const player = page.locator(`[data-post-play="${id}"]`); + await expect(player).toBeVisible({ timeout: 15_000 }); + const frame = page.frameLocator('[data-post-card-frame="read"]'); + await expect(frame.locator("body")).toHaveAttribute("data-post-ready", "1", { timeout: 15_000 }); + await expect.poll(async () => Math.abs(Number(await player.getAttribute("data-post-s")) - at)).toBeLessThan(0.3); + return { player, frame }; +} + +const opacityOf = (frame: ReturnType<Page["frameLocator"]>, sel: string) => frame.locator(sel).evaluate((el) => { + let op = 1; + for (let e: Element | null = el; e; e = e.parentElement) op *= Number(getComputedStyle(e).opacity); + return op; +}); + +test("A PICTURE-ONLY PARENT has its own beat before his read: its GIF in its own card, alone and lit -- then his read, the GIF's card small and dim, never a GIF in the slot", async ({ page }) => { + await page.setViewportSize({ width: 1366, height: 1000 }); + { + const { player, frame } = await playAt(page, "p-41", 1); + await expect(player).toHaveAttribute("data-post-pics", "parent:0"); + await expect(player).toHaveAttribute("data-post-beat", "parent:0"); + // Drawn IN the parent's card (the page plays it), where its words would be -- its mention small. + await expect(frame.locator('[data-thread-tile="parent:0"] [data-post-pic="parent:0"] video')).toHaveCount(1); + await expect(frame.locator('[data-thread-tile="parent:0"] .pmen')).toContainText("@narrsubject"); + await expect(frame.locator("[data-thread-media]")).toHaveCount(0); + // Never over the slot. + await expect(page.locator('[data-post-panel="parent:0"]')).toHaveCount(0); + await expect(frame.locator("[data-post-slot]")).toHaveCount(0); + expect(await opacityOf(frame, '[data-thread-tile="parent:0"]')).toBeGreaterThan(0.95); + const pic = await frame.locator('[data-post-pic="parent:0"]').boundingBox(); + expect(pic && pic.width > 300 && Math.abs(pic.width / pic.height - 16 / 9) < 0.05, "at the tile's width, its aspect kept").toBe(true); + if (SHOTS) await page.screenshot({ path: path.join(SHOTS, "picture-beat.png") }); + } + { + // His read: after the beat (2.5 s) and the lead. + const { player, frame } = await playAt(page, "p-41", 5); + await expect(player).not.toHaveAttribute("data-post-beat", /./); + await expect(page.locator('[data-post-panel="parent:0"]')).toHaveCount(0); + await expect.poll(async () => opacityOf(frame, '[data-thread-tile="parent:0"]')).toBeLessThan(0.7); + expect(await opacityOf(frame, '[data-thread-tile="post"]')).toBeGreaterThan(0.95); + if (SHOTS) await page.screenshot({ path: path.join(SHOTS, "picture-read.png") }); + } +}); + +test("A PICTURE-ONLY ITEM is a card alone, its picture inside it where its words would be -- no slot, whatever its panel says", async ({ page }) => { + await page.setViewportSize({ width: 1366, height: 1000 }); + const { player, frame } = await playAt(page, "p-42", 0.5); + await expect(player).toHaveAttribute("data-post-layout", "text"); + await expect(player).toHaveAttribute("data-post-pics", "post"); + await expect(frame.locator('[data-post-card] [data-post-pic="post"] img')).toHaveCount(1); + await expect(frame.locator("[data-post-slot]")).toHaveCount(0); + const pic = await frame.locator('[data-post-pic="post"]').boundingBox(); + const card = await frame.locator("[data-post-card]").boundingBox(); + expect(pic && card && pic.width > card.width * 0.8, "the card's width").toBe(true); + if (SHOTS) await page.screenshot({ path: path.join(SHOTS, "picture-item.png") }); +}); + +test("THE POST BENCH's picture-only block: the parent picture-only by the rule, the knob turns it off and Save writes it", async ({ page }) => { + await page.setViewportSize({ width: 1500, height: 1100 }); + await page.goto(urls.postBenchHref(PROJECT, "p-41")); + const row = page.locator('[data-post-bench-picture-row="parent.0"]'); + await expect(row).toHaveAttribute("data-picture-only", "1", { timeout: 15_000 }); + await expect(row).toContainText("its beat 2.5 s before the read"); + await page.locator('[data-post-bench-picture-knob="parent.0"]').selectOption("off"); + await expect(row).toHaveAttribute("data-picture-only", "0"); + await page.locator("[data-post-bench-save]").click(); + await expect.poll(() => JSON.parse(readFileSync(MANIFEST, "utf8")).timeline.find((e: { id: string }) => e.id === "p-41").parents[0].pictureOnly).toBe(false); +});