feat(workflow): render a PRD's generated view on the plan approval card
agent.run gains views: the agent may return an OpenUI Lang view of its answer through an optional view tool, read as steps.<id>.view. human.approve stores it as the task's plan_view, and the approval card renders it with the dashboard's own components, falling back to the plan text when there is no view or it does not parse. The feasibility prd step uses it.
This commit is contained in:
1 parent
cae19ca42e
commit
54a78175b4
34 files changed
+1035
-153
No files matched your search
@@ -91,6 +91,8 @@ tasks:
|
||||
# Parallel UI checks must share one dependency install.
|
||||
run: once
|
||||
dir: ui
|
||||
env:
|
||||
OPENUI_TELEMETRY_DISABLED: "1"
|
||||
cmds:
|
||||
- npm ci --no-audit --no-fund
|
||||
|
||||
@@ -99,8 +101,17 @@ tasks:
|
||||
dir: ui
|
||||
deps: [ui:deps]
|
||||
cmds:
|
||||
- task: ui:prompt
|
||||
- npm run build
|
||||
|
||||
ui:prompt:
|
||||
desc: Generate the agent prompt for the dashboard's view components (committed; the Go build embeds it)
|
||||
deps: [ui:deps]
|
||||
env:
|
||||
OPENUI_TELEMETRY_DISABLED: "1"
|
||||
cmds:
|
||||
- node --experimental-strip-types ui/scripts/genui-prompt.ts internal/domain/genui/prompt.md
|
||||
|
||||
ui:check:
|
||||
desc: Rebuild the dashboard into a temporary directory and reject a stale ui/dist
|
||||
deps: [ui:deps]
|
||||
|
||||
Reference in new issue
Block a user