Archilyzer · Source

archilyzer

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

commit 25a7e7b067c1989dd783691c96c4aba18365a67c
parent ae296c98706d0d91e5f6de6e5e3a95d347b09dfc
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Tue,  3 Nov 2026 17:20:39 -0500

umtool: `umtool posts attach` -- a post item with no attachment whose capture holds one (captured after it went in) gets its media copied in and measured as posts reel would have made it, nothing else of the entry changed, one write; posts repeats now names it instead of a remove + re-insert (on mr-obvious-unhinged the brother post and the 1 Nov reply carry no attachment, so the GIF's 3x combo only shows once they are attached); the bench's combo checkbox follows a click at once

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

Diffstat:
Mumtool/bin/umtool.mjs | 2++
Mumtool/docs/cli.md | 3++-
Mumtool/docs/knobs.md | 3++-
Mumtool/docs/report-video.md | 6++++--
Mumtool/lib/report/manifest.mjs | 28++++++++++++++++++++++++++++
Mumtool/lib/report/postComboCli.mjs | 90++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------
Mumtool/lib/report/postComboCli.test.mjs | 31++++++++++++++++++++++++++++++-
Mumtool/lib/report/postsCli.mjs | 3++-
8 files changed, 153 insertions(+), 13 deletions(-)

diff --git a/umtool/bin/umtool.mjs b/umtool/bin/umtool.mjs @@ -117,6 +117,7 @@ // avatar <project> <handle> <image> | avatars <project> the authors' pictures // redact <project> ls | add "<term>" [--substring] | remove <n> words blanked from what is published // repeats <project> [--match id|file|audio] · combo <project> [<item>] k=v|off the combo counter +// attach <project> [<item>…|--all] a capture's media onto post items that carry none // umtool candidates <project> [ls | import <sweep.md> | add <json>] proposed clips for the Cut tab's Candidates panel import process from "node:process"; import { @@ -1042,6 +1043,7 @@ function usage() { " what is published (a bar on the card, left out of a synthesized read); the data never rewritten", " umtool posts repeats <project> [--match id|file|audio] [--json] the attachments played more than once (the combo counter)", " umtool posts combo <project> [k=v …] · <item> off|on|k=v … the combo badge's knobs (the cut's, one item's)", + " umtool posts attach <project> [<item> … | --all] [--dry-run] a capture's media onto post items that carry none", " umtool candidates <project> [ls] [--all] [--json] | import <sweep.md> [--dry-run] | add <json|@file>", " the candidates inbox: a sweep's or an agent's proposed clips -> <project>/candidates.json;", " Insert into a section or a group, and Not this, are the Cut tab's Candidates panel's", diff --git a/umtool/docs/cli.md b/umtool/docs/cli.md @@ -89,7 +89,8 @@ Inbox cannot disagree about what is wrong with one. | `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 redact <project> ls \| add "<term>" [--substring] [--note "…"] \| remove <n> [--json]` | **REDACTED WORDS** ([knobs.md](knobs.md#redacted-words-blanked-from-what-is-published)): the project's list (`render.posts.redact`, `updatePostRedact`) of words or phrases blanked from everything the cut publishes -- a solid bar on the rendered card, left out of a synthesized read, a post's chapter line and an attachment's captions; matched without case, as whole words (`--substring`: inside words too), a phrase across any spaces or punctuation. The posts' words and the scripts are never rewritten. `ls` numbers the terms as `remove` takes them, and counts the corpus's (`transcripts/redactions.json`) and the posts marked up in the cut's channels (`posts-markup.json`). A term already listed is refused (**exit 1**) | | `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)) | -| `posts repeats <project> [--match id\|file\|audio] [--json]` | the **combo counter**'s repeats ([report-video.md](report-video.md#the-combo-counter)): every attachment the cut's post items play more than once -- the same X media id (the capture's url), else the same file (the capture's sha256 when its bytes agree, else hashed; cached by path, size and mtime), else (`--match audio`) the same sound (fpcalc, else a coarse ffmpeg hash) -- its posts in the cut's ORDER with their dates, the tier that matched and the badge each draws (`×2` from the second use, `(×n)` counted but not drawn); a post whose CAPTURE holds the same file but whose entry carries no attachment is listed too, `NOT ATTACHED`, with the `timeline remove` + `insert post:<channel>/<postId>` that makes it again from the archive (the entry's own edits not kept). Reads only | +| `posts repeats <project> [--match id\|file\|audio] [--json]` | the **combo counter**'s repeats ([report-video.md](report-video.md#the-combo-counter)): every attachment the cut's post items play more than once -- the same X media id (the capture's url), else the same file (the capture's sha256 when its bytes agree, else hashed; cached by path, size and mtime), else (`--match audio`) the same sound (fpcalc, else a coarse ffmpeg hash) -- its posts in the cut's ORDER with their dates, the tier that matched and the badge each draws (`×2` from the second use, `(×n)` counted but not drawn); a post whose CAPTURE holds the same file but whose entry carries no attachment is listed too, `NOT ATTACHED`, with the `posts attach` that brings it in. Reads only | +| `posts attach <project> [<item> … \| --all] [--dry-run] [--json]` | a post item with **no attachment whose capture holds one** (captured after it went in -- `posts repeats` marks them `NOT ATTACHED`): the capture's media (its own channel's `posts-media/<postId>/`, else any channel the cut's posts come from) copied into the project's `posts-media/<slug>/<postId>/` and measured, set as the entry's `media` as `posts reel` would have made it -- nothing else of the entry changes (its paraphrases, narration, knobs kept); an item that has an attachment is never touched. ONE write (one undo point: `timeline <p> undo`), refused whole in the build's words | | `posts combo <project> [on=on\|off] [label=L] [position=top-right\|top-left\|bottom-right\|bottom-left\|center] [color=#rrggbb] [scale=0.4-2.5] [sfx=off\|hit\|coin] [minCount=2-20] [match=id\|file\|audio] [--json]` · `posts combo <project> <item> off\|on\|auto\|label=…\|position=…\|color=…\|scale=…\|sfx=… [--json]` | the **combo badge's knobs** ([knobs.md](knobs.md#the-combo-counter)): the cut's (`render.posts.combo`, `updatePostComboRender`; no knobs prints them; `k=` the default again) or one post item's (`combo`, `updatePostCombo`): `off` draws no badge on it -- it still counts -- `on`/`auto` the cut's again. Refused in the build's words (**exit 1**) | | `new <slug> --from-posts <channel> [--channel <more>…] [--since D] [--until D] [--own] [--with-media] [--replies …] [--order …] [--limit N]` | a **posts reel**: the scaffold with the deck on (no `siteOrigin`: each post's QR opens the post, `deck.qr.links: "original"`), then `posts reel` with the same filters | | `timeline <project> insert (--after <id\|-> \| --to-section N \| --group G) post:<channel>/<postId> [--id ID]` | **one post item** among the cut's entries, made as `posts reel` makes one | diff --git a/umtool/docs/knobs.md b/umtool/docs/knobs.md @@ -772,7 +772,8 @@ in the build's words (`validatePostCombos`). `k=` (empty) takes the default (the | | In umtool | From a terminal | Route | |---|---|---|---| -| the repeats: each attachment played more than once, its posts in the cut's order with their dates, the tier that matched (`X media id`, `same file`, `same sound`) and the badge each draws; a post whose capture holds the same file but whose entry carries none, marked, with the `timeline remove` + `insert post:` that makes it again from the archive (its own edits not kept) | the post bench's **combo** block (this item's group) | `umtool posts repeats <p> [--match id\|file\|audio] [--json]` | `GET /api/report/post-combo?project` | +| the repeats: each attachment played more than once, its posts in the cut's order with their dates, the tier that matched (`X media id`, `same file`, `same sound`) and the badge each draws; a post whose capture holds the same file but whose entry carries none, marked | the post bench's **combo** block (this item's group) | `umtool posts repeats <p> [--match id\|file\|audio] [--json]` | `GET /api/report/post-combo?project` | +| attach what a capture holds to a post item that carries none (captured after it went in): its media copied in and set, nothing else of the entry changed; then it plays and counts | — | `umtool posts attach <p> <item>… \| --all [--dry-run]` | — | | the badge on the item's clock | Play the cut, the post bench (the player) | the build: `segments/<id>.mp4` (the plain one `<id>.plain.mp4`, the record `<id>.combo.json`) | — | ## The source backlog (Sources · Prioritize · Re-sweep when complete) diff --git a/umtool/docs/report-video.md b/umtool/docs/report-video.md @@ -812,8 +812,10 @@ it back. `segments/<id>.combo.json` records what it was laid from. `umtool posts repeats <p>` lists every repeated attachment with its posts in the cut's order, their dates, the tier that matched and the badge each draws — and a post whose CAPTURE holds the same file while its entry carries no attachment (captured after it -went in: it draws nothing and does not count until it plays the attachment), with how -to make it again from the archive. +went in: it draws nothing and does not count until it plays the attachment). +`umtool posts attach <p> <item>… | --all` brings such a capture's media in -- copied +and measured as `posts reel` would have made it, nothing else of the entry changed -- +and from then it plays and counts. ## The on-screen deck (`render.chrome`) diff --git a/umtool/lib/report/manifest.mjs b/umtool/lib/report/manifest.mjs @@ -2522,6 +2522,34 @@ export async function updatePostComboRender(dir, patch, { token = null } = {}) { }); } +/** + * ATTACH A CAPTURE's MEDIA to post items that carry none (`umtool posts + * attach`): `patches` is `{ <id>: media[] }`, each list already copied into + * the project; an item that has an attachment by now is left as it is. One + * write (one undo point), refused whole in the build's words. + * + * @param {string} dir + * @param {Record<string, Array<Record<string, any>>>} patches + * @param {{ token?: string | null }} [opts] + */ +export async function attachPostMedia(dir, patches, { token = null } = {}) { + if (!isObj(patches) || !Object.keys(patches).length) throw new Error("nothing to attach"); + return structural(dir, "post-attach", token, (m) => { + const ids = []; + for (const [id, media] of Object.entries(patches)) { + const e = m.timeline[entryIndex(m.timeline, id)]; + if (e?.type !== "post") throw new Error(`${id} is a ${e?.type ?? "?"} entry, not a post item`); + if (Array.isArray(e.media) && e.media.length) continue; + if (!Array.isArray(media) || !media.length) continue; + e.media = structuredClone(media); + const errors = validatePostItem(e); + if (errors.length) throw new StructureRefused(errors); + ids.push(id); + } + return { ids }; + }); +} + // ---- the authors' pictures (report-to-video/post-avatars.mjs) -------------- /** diff --git a/umtool/lib/report/postComboCli.mjs b/umtool/lib/report/postComboCli.mjs @@ -17,7 +17,10 @@ import { COMBO_DEFAULTS, COMBO_ITEM_KEYS, comboKnobs, repeatGroups } from "umtoo import { captureOnlyMedia, projectCombos } from "umtool-report-to-video/post-combo-prints"; import { channelsDirFor, readManifest } from "../projects/report.mjs"; import { withEditNotes } from "./edit-guard.mjs"; -import { manifestToken, updatePostCombo, updatePostComboRender } from "./manifest.mjs"; +import { copyFile, mkdir, realpath, stat } from "node:fs/promises"; +import path from "node:path"; +import { attachPostMedia, manifestToken, updatePostCombo, updatePostComboRender } from "./manifest.mjs"; +import { mediaKindOf, probeMediaFile } from "./postReel.mjs"; export class ComboError extends Error {} @@ -32,6 +35,9 @@ export const REPEATS_USAGE = [ " the cut's badge (render.posts.combo; k= back to the default); no knobs prints them.", " umtool posts combo <project> <item> off|on|auto [label=…] [position=…] [color=…] [scale=…] [sfx=…] [--json]", " one post item's: off draws no badge on it (it still counts), on/auto the cut's again; its own label, …", + " umtool posts attach <project> [<item> … | --all] [--dry-run] [--json]", + " a post item with no attachment whose capture holds one (captured after it went in): its media copied in and", + " set, as posts reel would have made it -- nothing else of the entry changes. One write (one undo point).", ].join("\n"); const OFF = new Set(["off", "no", "false", "0"]); @@ -115,6 +121,68 @@ export async function repeatsView(project, { match = null, cacheDir = undefined, const TIER_WORDS = { "media-id": "X media id", sha256: "same file", audio: "same sound" }; const MATCH_WORDS = { id: "the X media id", file: "the X media id, then the file's bytes", audio: "the X media id, the bytes, then the sound" }; +/** Copy a capture's file into the project (never through a link out of it); the same size already there is left. */ +async function copyIn(projectDir, from, rel) { + const to = path.join(projectDir, ...rel.split("/")); + const [a, b] = await Promise.all([stat(from).catch(() => null), stat(to).catch(() => null)]); + if (a && b && a.size === b.size) return; + await mkdir(path.dirname(to), { recursive: true }); + const [real, proj] = await Promise.all([realpath(path.dirname(to)), realpath(projectDir)]); + if (real !== proj && !real.startsWith(proj + path.sep)) throw new Error(`${path.dirname(rel)} leads out of the project (a link) — not copying through it`); + await copyFile(from, to); +} + +/** + * ATTACH WHAT THE CAPTURES HOLD (`umtool posts attach`): each post item with no + * attachment whose capture has one (captured after it went in) gets its media + * as `posts reel` would have made it -- the files copied into the project's + * posts-media/, measured -- and nothing else of the entry changes (its + * paraphrases, narration, knobs kept). One write. `ids` narrows it. + * + * @param {{ id: string, dir: string }} project + * @param {{ ids?: string[] | null, dryRun?: boolean, channelsDir?: string | null }} [o] + */ +export async function attachFromCaptures(project, { ids = null, dryRun = false, channelsDir = null } = {}) { + const manifest = await readManifest(project.dir); + if (!manifest) throw new ComboError(`${project.id} has no manifest`); + const corpus = channelsDir ?? channelsDirFor(project.dir, manifest); + const captured = await captureOnlyMedia(manifest, { channelsDir: corpus }); + const tl = Array.isArray(manifest.timeline) ? manifest.timeline : []; + const want = ids ? ids.map((r) => tl.find((e) => e?.type === "post" && (e.id === r || String(e.post ?? "").split("/")[1] === r))?.id ?? r) : null; + if (want) for (const id of want) if (!tl.some((e) => e?.id === id && e.type === "post")) throw new ComboError(`no post item ${id} in ${project.id}`); + const patches = {}; + const plan = []; + for (const [id, list] of Object.entries(captured)) { + if (want && !want.includes(id)) continue; + const postId = String(tl.find((e) => e?.id === id)?.post ?? "").split("/")[1]; + const media = []; + for (const m of list) { + const from = path.join(corpus, m.slug, "posts-media", postId, m.name); + if (!(await stat(from).catch(() => null))) continue; + const rel = `posts-media/${m.slug}/${postId}/${m.name}`; + const probe = await probeMediaFile(from); + const kind = mediaKindOf(m.name, m.url, probe); + const item = { + src: rel, kind, + ...(probe.width ? { width: probe.width } : {}), + ...(probe.height ? { height: probe.height } : {}), + ...(kind !== "image" && probe.seconds ? { seconds: probe.seconds } : {}), + ...(kind === "video" ? { audio: probe.audio === true } : {}), + }; + // A timed attachment that could not be measured cannot be planned. + if (kind !== "image" && !Number.isFinite(item.seconds)) continue; + media.push({ item, from }); + } + if (!media.length) continue; + patches[id] = media.map((x) => x.item); + plan.push({ id, media: media.map((x) => ({ src: x.item.src, kind: x.item.kind, from: x.from })) }); + } + if (dryRun || !plan.length) return { dryRun, attached: plan, result: null, editNotes: null }; + for (const p of plan) for (const m of p.media) await copyIn(project.dir, m.from, m.src); + const { result, editNotes } = await withEditNotes(project, async () => attachPostMedia(project.dir, patches, { token: await manifestToken(project.dir) })); + return { dryRun, attached: plan.filter((p) => result.ids.includes(p.id)), result, editNotes }; +} + /** The repeats view as lines. */ export function repeatsLines(v) { const out = []; @@ -132,12 +200,8 @@ export function repeatsLines(v) { } const missing = v.groups.flatMap((g) => g.members.filter((m) => !m.attached)); if (missing.length) { - out.push(` ${missing.length} post(s) above carry no attachment in the cut (captured after they went in); each counts once it plays it.`); - out.push(` To make one again from the archive (its words, its capture -- the entry's own edits are NOT kept):`); - for (const m of missing) { - const postId = String(m.post ?? "").split("/")[1] ?? ""; - out.push(` umtool timeline ${v.project} remove ${m.id} && umtool timeline ${v.project} insert --after ${m.after} post:${m.captureSlug}/${postId} --id ${m.id}`); - } + out.push(` ${missing.length} post(s) above carry no attachment in the cut (captured after they went in); each counts once it plays it:`); + out.push(` umtool posts attach ${v.project} ${missing.map((m) => m.id).join(" ")} (their capture's media, nothing else of the entry changed)`); } return out; } @@ -165,6 +229,18 @@ async function comboRun(verb, words, flags, { root, json, out, err }) { return 2; } const project = await projectOf(projectArg, root); + if (verb === "attach") { + const items = rest.filter((w) => !w.startsWith("--")); + if (!items.length && !flags.has("--all")) throw new ComboError("name the items to attach, or --all"); + const r = await attachFromCaptures(project, { ids: items.length ? items : null, dryRun: flags.has("--dry-run") }); + if (json) out(JSON.stringify({ ok: true, ...r, result: r.result ? { ids: r.result.ids, snapshot: r.result.snapshot, token: r.result.token } : null }, null, 2)); + else { + out(`${r.dryRun ? "would attach" : "attached"} the capture's media to ${r.attached.length} post item(s) in ${project.id}`); + for (const a of r.attached) out(` ${a.id} ${a.media.map((m) => `${m.kind} ${m.src}`).join(", ")}`); + if (r.result?.snapshot?.rel && !r.result.snapshot.skipped) out(` undo point: ${r.result.snapshot.rel} (umtool timeline ${project.id} undo)`); + } + return 0; + } if (verb === "repeats") { const m = flags.get("--match"); if (m !== undefined && !["id", "file", "audio"].includes(String(m))) throw new ComboError("--match takes id, file or audio"); diff --git a/umtool/lib/report/postComboCli.test.mjs b/umtool/lib/report/postComboCli.test.mjs @@ -60,7 +60,7 @@ test("posts repeats: the attachment's posts in the cut's order, the badges they assert.match(r.out, /1 attachment\(s\) played more than once/); assert.match(r.out, /×3\s+p-5/); assert.match(r.out, /NOT ATTACHED: its capture obv-x-replies\/posts-media\/3\/3_1\.mp4/); - assert.match(r.out, /insert --after p-2 post:obv-x-replies\/3 --id p-3/); + assert.match(r.out, /umtool posts attach rep p-3/); const j = JSON.parse((await run(["repeats", "rep", "--json", "--match", "id"])).out); assert.equal(j.match, "id"); assert.equal(j.groups.length, 0, "the GIF's ids differ: by id alone, no repeat"); @@ -96,3 +96,32 @@ test("posts combo: an item's badge off (it still counts) and back; the cut's kno r = await run(["combo", "knobs"]); assert.match(r.out, /label=COMBO/); }); + +test("posts attach: the capture's media onto the item that carries none, nothing else of it changed; then it counts", async () => { + const p = await project("att"); + // A real GIF in the corpus capture (it must measure), the same bytes as the cut's p-1/p-2. + const { execFileSync } = await import("node:child_process"); + const { createHash } = await import("node:crypto"); + const capDir = path.join(CH, "obv-x-replies", "posts-media", "3"); + const gif = path.join(capDir, "3_1.mp4"); + execFileSync("ffmpeg", ["-v", "error", "-y", "-f", "lavfi", "-i", "testsrc=size=160x90:rate=10:duration=1", "-c:v", "libx264", "-pix_fmt", "yuv420p", "-an", gif]); + const body = await readFile(gif); + for (const id of ["1", "2"]) await writeFile(path.join(p.dir, "posts-media", "obv-x", id, `${id}_1.mp4`), body); + await writeFile(path.join(capDir, "capture.json"), JSON.stringify({ media: [{ name: "3_1.mp4", bytes: body.length, sha256: createHash("sha256").update(body).digest("hex"), url: "https://video.twimg.com/tweet_video/C.mp4" }] })); + const m0 = await manifest(p); + m0.timeline.find((e) => e.id === "p-3").quoted = { text: "kept", paraphrase: "kept too" }; + await writeFile(path.join(p.dir, "video.manifest.json"), JSON.stringify(m0, null, 2)); + const dry = JSON.parse((await run(["attach", "att", "--all", "--dry-run", "--json"])).out); + assert.deepEqual(dry.attached.map((a) => a.id), ["p-3"]); + assert.equal((await manifest(p)).timeline.find((e) => e.id === "p-3").media, undefined, "a dry run writes nothing"); + const r = await run(["attach", "att", "p-3"]); + assert.equal(r.code, 0, r.err); + assert.match(r.out, /attached the capture's media to 1 post item/); + const e = (await manifest(p)).timeline.find((x) => x.id === "p-3"); + assert.equal(e.media[0].src, "posts-media/obv-x-replies/3/3_1.mp4"); + assert.equal(e.media[0].kind, "gif", "a tweet_video is a GIF X serves as a silent mp4"); + assert.deepEqual(e.quoted, { text: "kept", paraphrase: "kept too" }); + const v = await repeatsView(p); + assert.deepEqual(v.groups[0].members.map((m) => `${m.id}:${m.attached ? m.badge : "-"}`), ["p-1:1", "p-2:2", "p-3:3", "p-5:4"]); + assert.equal((await run(["attach", "att"])).code, 2, "names the items, or --all"); +}); diff --git a/umtool/lib/report/postsCli.mjs b/umtool/lib/report/postsCli.mjs @@ -93,6 +93,7 @@ export const POSTS_USAGE = [ " none is listed with the call that reads it: pnpm ops capture-posts --json '{\"slug\":…,\"ids\":[…],\"contextOnly\":true}'.", " umtool posts repeats <project> [--match id|file|audio] [--json] the attachments played more than once (the combo counter)", " umtool posts combo <project> [k=v …] · <item> off|on|k=v … the combo badge's knobs (umtool posts repeats --help)", + " umtool posts attach <project> [<item> … | --all] [--dry-run] a capture's media onto items that carry none", ].join("\n"); const VALUED = new Set(["--attach", "--flag", "--author", "--id", "--crop", "--since", "--until", "--replies", "--order", "--limit", "--after", "--script", "--note", "--voice", "--engine", "--speed", "--pick", "--linger", "--derive", "--op", "--delete", "--match", "--target", "--occurrence", "--at", "--scale", "--hold", "--lead", "--ease", "--highlight", "--worker"]); @@ -400,7 +401,7 @@ export async function postsCommand(args, { root = REPORTS_ROOT, out = (s) => con if (verb === "avatars" && projectArg && !flags.has("--help")) return await avatarsCommand(projectArg, { root, json, dryRun, out }); if (verb === "context" && projectArg && !flags.has("--help")) return await contextCommand(projectArg, { root, json, dryRun, out }); // The combo counter (postComboCli.mjs): the attachments played more than once, the badge's knobs. - if (verb === "repeats" || verb === "combo") return await (await import("./postComboCli.mjs")).comboCommand(verb, words.slice(1), flags, { root, json, out, err }); + if (verb === "repeats" || verb === "combo" || verb === "attach") return await (await import("./postComboCli.mjs")).comboCommand(verb, words.slice(1), flags, { root, json, out, err }); if ((verb !== "add" && verb !== "set") || !projectArg || !ref || flags.has("--help")) { err(POSTS_USAGE); return 2;