feat: openui report library

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
ahmed mohammed
2026-09-22 07:54:52 +03:00
co-authored by Claude Opus 4.7
parent d8caa8e6db
commit 396b0edd9e
2 changed files with 138 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
import test from "node:test";
import assert from "node:assert/strict";
const { library, reportPromptOptions } = await import("../lib/report-ui.ts");
test("the prompt advertises every component and the root", () => {
const p = library.prompt(reportPromptOptions);
for (const n of ["Report", "Headline", "VerdictBlock", "MetricGrid", "Findings", "OptionTable",
"StepList", "SqlBlock", "ScoreBar", "Callout"]) assert.ok(p.includes(n), `missing ${n}`);
assert.match(p, /root/i);
assert.match(p, /never invent/i);
});