feat(workflow): approve a PRD as one structured document

The prd step returns the PRD as structured fields and human.approve takes
them as its document. The plan text every surface reads and the approval
card's layout are both rendered from that one document, so what the human
approves is what the implement workflow is handed. Replaces the separately
generated OpenUI view, which could drift from the plan.
This commit is contained in:
sam committed 2026-10-25 16:53:17 +11:00
1 parent 7a03e003a1
commit d699b9afba
37 files changed
+509 -1021

No files matched your search

-14
View File
@@ -1,14 +0,0 @@
// Writes the agent prompt for the dashboard's view components to the path
// given, from the same schemas the renderer uses.
import { writeFileSync } from "node:fs";
import { viewLibrary, viewPromptOptions } from "../src/genui/view-library.ts";
const out = process.argv[2];
if (!out) throw new Error("usage: genui-prompt.ts <output path>");
const r = null;
const library = viewLibrary({
Stack: r, Section: r, Columns: r, Heading: r, Text: r, Callout: r, Facts: r,
Fact: r, Files: r, File: r, Checklist: r, Table: r, Code: r,
});
writeFileSync(out, library.prompt(viewPromptOptions).trim() + "\n");