Archilyzer · Source

archilyzer

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

commit 9870719b90e3cbf0a3f0fc324e1c4de93b8917f8
parent c8b92b167bcb18b58849c7fc43382f3d8413bc1d
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Wed, 14 Oct 2026 10:50:13 -0400

umtool: the chain's progress over all its steps; the bench specs open their pages through the href builders (P4b)

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

Diffstat:
Mumtool/components/articles/ChainPanel.tsx | 4++--
Mumtool/e2e/claim-bench.spec.ts | 3++-
Mumtool/e2e/clip-bench.spec.ts | 4++--
Mumtool/e2e/draft-review.spec.ts | 4++--
Mumtool/e2e/media-surfaces.spec.ts | 2+-
Mumtool/e2e/onscreen.spec.ts | 2+-
Mumtool/e2e/takes.spec.ts | 4++--
7 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/umtool/components/articles/ChainPanel.tsx b/umtool/components/articles/ChainPanel.tsx @@ -117,14 +117,14 @@ export default function ChainPanel({ state={running ? "running" : (job?.state ?? "pending")} status={ running - ? `step ${(job?.stepIndex ?? 0) + 1}/${job?.of}: ${job?.label}` + ? `running: ${job?.label}` : job ? `last run ${job.state}${job.error ? `: ${job.error}` : ""}` : chain.resumeAt ? `not run ยท starts at ${chain.resumeAt}` : "every step done" } - meter={running && job ? { fraction: job.of ? done / job.of : null, text: `${done}/${job.of} steps` } : null} + meter={running && steps.length ? { fraction: done / steps.length, text: `${done}/${steps.length} steps` } : null} spend={job ? spendFromLog(job.log) : null} steps={steps} stepColumns diff --git a/umtool/e2e/claim-bench.spec.ts b/umtool/e2e/claim-bench.spec.ts @@ -2,6 +2,7 @@ import { test, expect } from "@playwright/test"; import { readFileSync } from "node:fs"; import path from "node:path"; import { fileURLToPath } from "node:url"; +import * as urls from "./urls"; // --------------------------------------------------------------------------- // The claim bench, and the two decision kinds that drive it. @@ -22,7 +23,7 @@ const UMTOOL = path.join(HERE, ".."); const FIXTURE = path.join(UMTOOL, ".e2e-song"); const PROJECT = "reports/bench-fixture"; const MANIFEST = path.join(FIXTURE, "reports", "bench-fixture", "video.manifest.json"); -const claimPage = (id: string) => `/browse/${PROJECT}/claim/${id}`; +const claimPage = (id: string) => urls.claimBenchHref(PROJECT, id); type Claim = { id: string; diff --git a/umtool/e2e/clip-bench.spec.ts b/umtool/e2e/clip-bench.spec.ts @@ -41,8 +41,8 @@ const PROJECT = "reports/bench-fixture"; // walk-fixture in make-fixture.mjs. const WALK = "reports/walk-fixture"; const MANIFEST = path.join(FIXTURE, "reports", "bench-fixture", "video.manifest.json"); -const bench = (clip: string) => `/browse/${PROJECT}/clip/${clip}`; -const walkBench = (clip: string) => `/browse/${WALK}/clip/${clip}`; +const bench = (clip: string) => urls.clipBenchHref(PROJECT, clip); +const walkBench = (clip: string) => urls.clipBenchHref(WALK, clip); const readClipIn = (project: string, id: string) => { const file = path.join(FIXTURE, ...project.split("/"), "video.manifest.json"); diff --git a/umtool/e2e/draft-review.spec.ts b/umtool/e2e/draft-review.spec.ts @@ -88,7 +88,7 @@ test("the review page: every drafted field, the narration's badge, and Use this // Approve the narration here; the narration page shows who drafted it, and its state. await k01.locator('[data-draft-action="approve"]').click(); await expect(k01).toHaveAttribute("data-state", "approved"); - await page.goto(`/browse/${PROJECT}/narration`); + await page.goto(urls.narrationHref(PROJECT)); const card = page.locator('[data-narration-card="k01"]'); await expect(card.locator("[data-narration-drafted]")).toHaveText("drafted by qwen3:8b"); await expect(card).toHaveAttribute("data-state", "approved"); @@ -115,7 +115,7 @@ test("a final build refuses an unapproved draft, and builds once it is approved" expect(JSON.stringify(refused)).toContain("timeline c02: its on-screen text (drafted by qwen3:8b) is not approved"); expect(existsSync(path.join(BUILD_DIR, "out", "draft-review-build-fixture.mp4"))).toBe(false); - await page.goto(`/browse/${BUILD_PROJECT}/review`); + await page.goto(urls.reviewHref(BUILD_PROJECT)); const row = page.locator('[data-draft-row="onscreen/c02/onscreen"]'); await row.locator('[data-draft-action="approve"]').click(); await expect(row).toHaveAttribute("data-state", "approved"); diff --git a/umtool/e2e/media-surfaces.spec.ts b/umtool/e2e/media-surfaces.spec.ts @@ -34,7 +34,7 @@ const asked = () => test.beforeAll(async ({ playwright }) => { test.setTimeout(WARM_TIMEOUT); - await warm(playwright, [`/browse/${PROJECT}`, `/api/articles/draft?project=${encodeURIComponent(PROJECT)}`, "/api/articles/policy", `/articles/${ARTICLE}?tab=iterations`]); + await warm(playwright, [urls.section(PROJECT, "drafts"), urls.section(`gen-projects/${ARTICLE}/i2`, "drafts"), `/api/articles/draft?project=${encodeURIComponent(PROJECT)}`, "/api/articles/policy", `/articles/${ARTICLE}?tab=iterations`]); }); test("Draft with <model> per section: the job followed, the badge, the last run, an alternative and Use this", async ({ page }) => { diff --git a/umtool/e2e/onscreen.spec.ts b/umtool/e2e/onscreen.spec.ts @@ -333,7 +333,7 @@ test("the clip bench's on-screen fields preview live and save through the window }) => { await putChrome(request, PROJECT, DECK_ON); await putOnscreen(request, PROJECT, { c01: null }); - await page.goto(`/browse/${PROJECT}/clip/c01`); + await page.goto(urls.clipBenchHref(PROJECT, "c01")); await expect(page.getByTestId("bench-onscreen")).toHaveAttribute("data-deck-on", "1"); await expect(page.getByTestId("bench-deck-strip")).toHaveAttribute("data-deck-ready", "1", { timeout: 30_000 }); diff --git a/umtool/e2e/takes.spec.ts b/umtool/e2e/takes.spec.ts @@ -16,10 +16,10 @@ import * as urls from "./urls"; const HERE = path.dirname(fileURLToPath(import.meta.url)); const PROJECT_DIR = path.join(HERE, "..", ".e2e-song", "reports", "takes-fixture"); const VERDICTS = path.join(PROJECT_DIR, "takes", "verdicts.json"); -const PAGE = "/projects/reports/takes-fixture/takes"; +const PAGE = urls.takesHref("reports/takes-fixture"); test("a project with no takes/ says so, and its page has no takes link", async ({ page }) => { - const res = await page.goto("/browse/reports/report-fixture/takes"); + const res = await page.goto(urls.takesHref("reports/report-fixture")); expect(res?.status()).toBe(200); await expect(page.locator("[data-takes-empty]")).toContainText("No takes yet");