commit 56a608b6a7ad1ce5948764f883a7d1c4d0bbbecd
parent a0732b20c03a073f1bc83428b385b2d1f256075a
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Mon, 19 Oct 2026 17:19:05 -0400
umtool: clip labels in the Generation chip; the scaffold names its own kind (clipsNew no longer spells it)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
5 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/umtool/e2e/create.spec.ts b/umtool/e2e/create.spec.ts
@@ -78,7 +78,7 @@ test("the lines, grouped Research · Article · Video · Song; the policy chip l
await expect(line(page, "video-report")).toContainText(/ · \d+ found/);
const chip = page.locator("[data-policy-chip]");
await expect(chip).toHaveAttribute("data-policy-chip", "balanced");
- await expect(chip).toHaveText("Generation: balanced · Claude Code: sweeps · API: report revisions, research, frames · local: video revisions, drafts, verdicts");
+ await expect(chip).toHaveText("Generation: balanced · Claude Code: sweeps · API: report revisions, research, frames · local: video revisions, drafts, verdicts, clip labels");
await expect(chip).toHaveAttribute("href", urls.generationPolicyHref());
const rail = page.locator("[data-app-rail]");
await expect(rail.locator("[data-rail-create]")).toHaveAttribute("aria-current", "page");
diff --git a/umtool/e2e/settings.spec.ts b/umtool/e2e/settings.spec.ts
@@ -50,7 +50,7 @@ test("/settings lists generation and system; both light Settings", async ({ page
test("generation: presets write their routes, a route alone makes it custom, caps are the editor's to refuse; the key is a file", async ({ page }) => {
await page.goto(urls.generationPolicyHref());
await expect(page.locator("[data-policy-summary]")).toHaveText(
- "Generation: balanced · Claude Code: sweeps · API: report revisions, research, frames · local: video revisions, drafts, verdicts",
+ "Generation: balanced · Claude Code: sweeps · API: report revisions, research, frames · local: video revisions, drafts, verdicts, clip labels",
);
const policy = page.getByRole("region", { name: "generation policy" });
await expect(policy).toHaveAttribute("data-policy-preset", "balanced");
diff --git a/umtool/lib/create/policy.mjs b/umtool/lib/create/policy.mjs
@@ -28,6 +28,7 @@ const TASK_WORD = {
threads: "threads drafts",
youtube: "YouTube drafts",
social: "social post drafts",
+ "clips-suggest": "clip labels",
};
/**
diff --git a/umtool/lib/projects/scaffold.mjs b/umtool/lib/projects/scaffold.mjs
@@ -539,6 +539,7 @@ export async function scaffoldReportVideo({ root, slug, title, from = null, site
return {
dir,
+ kind: "report-video",
id: slug,
title: finalTitle,
from: src,
diff --git a/umtool/lib/report/clipsNew.mjs b/umtool/lib/report/clipsNew.mjs
@@ -173,7 +173,7 @@ export async function planClipsNew(body, { reportsRoot = REPORTS_ROOT, channelsD
const msg = e instanceof Error ? e.message : String(e);
throw new ClipsNewError(msg, /already exists/.test(msg) ? 409 : 400);
}
- project = { id: r.id, dir: r.dir, kind: "report-video" };
+ project = { id: r.id, dir: r.dir, kind: r.kind };
created = true;
notes.push(...r.notes);
if (req.wordsPath) {