Archilyzer · Source

archilyzer

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

commit f890fff8a03bdf5e1cd27f2cb1d26fa6fc29eadd
parent 9f9d80720c7a5e22c5b1fb9d2b493bbeb601df48
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Tue, 10 Nov 2026 13:47:59 -0500

umtool: ⌘K's Copy as CLI line for a shaped verb (`timeline <project> insert`, `posts fx <project> <item> <op>`, `ledger <project> add`) named the project after the verb's words -- formVerbs() left `shape` out, so the page built a line the server never runs (L8a)

The server built the right argv from the full row; only the line shown and copied was wrong. formVerbs() now
carries each row's shape, and verbs.test.mjs asserts every form row builds the same argv from the page's list
as from the registry.

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

Diffstat:
Mumtool/lib/cli/verbs.mjs | 3+++
Mumtool/lib/cli/verbs.test.mjs | 6++++++
2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/umtool/lib/cli/verbs.mjs b/umtool/lib/cli/verbs.mjs @@ -496,6 +496,9 @@ export function formVerbs() { queue: !!r.queue, confirm: r.confirm ?? null, args: r.args, + // Where the words and positionals go (`timeline <project> insert`): the page's Copy as CLI line is built with + // it, as the server's argv is -- without it the line named the project after the verb's words. + ...(r.shape ? { shape: r.shape } : {}), ...(r.blocks ? { blocks: r.blocks, fromBlock: r.fromBlock ?? {} } : {}), ...(r.nav ? { nav: r.nav } : {}), })); diff --git a/umtool/lib/cli/verbs.test.mjs b/umtool/lib/cli/verbs.test.mjs @@ -115,6 +115,12 @@ test("every row is a form or says why it is not, and its args make sense", () => } assert.ok(formVerbs().every((r) => !("usage" in r) && !("reason" in r)), "the page's list carries no prose"); assert.equal(formVerbs().length, VERBS.filter((r) => r.ui === "form").length); + // The page builds its Copy as CLI line from these rows: the same argv the server builds from the registry's. + const sample = { project: "reports/p", id: "c01", "--to": "2", "--after": "c01", item: "p-5", op: "ls", settings: "a=1", ruling: "keep", clip: "c01", marker: "m1", gid: "g1", n: "1", span: "1-2", second: "3" }; + for (const r of formVerbs()) { + const vals = Object.fromEntries(r.args.filter((a) => a.name in sample).map((a) => [a.name, sample[a.name]])); + assert.deepEqual(buildArgv(r, vals), buildArgv(verbRow(r.verb), vals), `\`${r.verb}\`: the page's line is the command that runs`); + } }); test("cli.md's generated section is current (node umtool/lib/cli/docs.mjs rewrites it)", () => {