// 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 "); 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");