Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.
TypeScript 3dagent-skillsai-agentsai-videobevyclaude-codegame-enginegpulinuxmacosmotion-designmotion-graphicsreactrusttypescriptvideo-editingvideo-renderingwgpuwindows
raea show --on ITEM --working ID / --done ID [--note LINE] [--sub NAME]: an outside session marks the person's edit comments as tasks in the raea app (POST /host/task); FILE --replaces ITEM --done ID settles them with that version; docs/review.feature R3; the show page's flags (Shane 11-09)
shinyobjectza7e5b6c1d118
diff --git a/docs/manual/reference/cli/show.md b/docs/manual/reference/cli/show.mdindex 37690665..045539f1 100644--- a/docs/manual/reference/cli/show.md+++ b/docs/manual/reference/cli/show.md@@ -16,10 +16,16 @@ the command prints. Without the app on this Mac, the files open in the Mac's ownposted. While the app is installed, an agent shows renders, stills, sheets and questions this way, never in Previewor a browser.+The person's edit comments are tasks they watch. The inbox line that carries them gives each one's id; `--on ITEM+--working ID` marks one as being worked (with `--sub NAME` when a subagent has it), and `--done ID` marks it settled,+or, with files and `--replaces`, settled by that version. Done stays in view, checked, until the person resolves it.+```shraea show out/look-1.png out/look-2.png out/look-3.png --ask "Which of these three?"raea show out/cut.mp4 --replaces i-show-2f9craea show --question "Warmer or cooler grade?" --choice Warmer --choice Cooler+raea show --on i-show-2f9c --working c-3 --sub "grade pass"+raea show out/cut-v2.mp4 --replaces i-show-2f9c --done c-3 --done c-4 --note "Warmer grade, title held a beat longer"```<!-- generated:begin by tools/manual-ref/cli.ts from `raea help --json`; edit only the flag descriptions -->@@ -27,7 +33,7 @@ raea show --question "Warmer or cooler grade?" --choice Warmer --choice Cooler## Usage```sh-raea show FILE... [--title T] [--ask LINE] [--project P] [--replaces ITEM] [--as NAME] [--role ROLE] [--inbox NAME] | raea show --question Q --choice A --choice B [STILL...] (shown in the raea app as an item the person can use and answer, the window brought up on it: stills (several, a storyboard), a video, a sound, a NAME.script.ts or .md, a .tsx (an interactive artifact; a project's composition opens in its editor), or a question; what they send comes to ~/.raea/inbox/INBOX.jsonl; never open media in Preview while the app is installed)+raea show FILE... [--title T] [--ask LINE] [--project P] [--replaces ITEM] [--as NAME] [--role ROLE] [--inbox NAME] | raea show --question Q --choice A --choice B [STILL...] | raea show --on ITEM [--working ID] [--done ID] [--note LINE] [--sub NAME] (shown in the raea app as an item the person can use and answer, the window brought up on it: stills (several, a storyboard), a video, a sound, a NAME.script.ts or .md, a .tsx (an interactive artifact; a project's composition opens in its editor), or a question; what they send comes to ~/.raea/inbox/INBOX.jsonl; their edit comments are tasks: --working ID as you start one, --done ID when it's settled, or with the version that settles it, FILE --replaces ITEM --done ID; never open media in Preview while the app is installed)```Needs the raea app's host running on this machine; then waits for a person's click in the raea app (to answer). Takes any number of arguments besides its flags.@@ -39,11 +45,16 @@ Needs the raea app's host running on this machine; then waits for a person's cli| `--as` | `NAME` | Who's showing it, as the feed names them (your harness's name when left out: Claude Code, Codex, Gemini). || `--ask` | `LINE` | What you want from the person, shown with the item. || `--choice` | `A` | With `--question`: one answer to pick; give it once per answer. Stills given instead are the choices. |+| `--done` | `ID` | Marks the person's edit comment done (give it once per comment), on the item named by `--on`, or with files on the item they `--replaces`. || `--inbox` | `NAME` | The inbox the answers go to, `~/.raea/inbox/NAME.jsonl` (one per session when left out). |+| `--note` | `LINE` | With `--done`: a line for the person on what settled it, shown under the comment. |+| `--on` | `ITEM` | The item whose edit comments `--working` and `--done` mark; nothing is shown. || `--project` | `P` | The project to post to: its id, title or `Workspace/project`. The project this folder is in when left out. || `--question` | `Q` | Ask the person this, with `--choice` answers or stills to pick from. || `--replaces` | `ITEM` | The item this is the next version of, so the feed shows it as that item's new version. || `--role` | `ROLE` | With `--as`: the role shown beside the name. |+| `--sub` | `NAME` | With `--working` or `--done`: the subagent on those comments, shown beside your name when several split them. || `--title` | `T` | The item's title in the feed. |+| `--working` | `ID` | Marks the person's edit comment as being worked (give it once per comment), on the item named by `--on`. |<!-- generated:end -->diff --git a/docs/review.feature b/docs/review.featureindex ce84d1ae..046af054 100644--- a/docs/review.feature+++ b/docs/review.feature@@ -125,3 +125,43 @@ Feature: Reviewing a video in raea's player: comments written on the picture, evScenario: R2f. A video without layers says how to get themGiven a raea render exported without layersThen Select is disabled and its tooltip says "Rendered without layers: export again with Selectable layers on"++ Rule: R3. Sent edits are tasks: the agent marks each working and done, and the person sees who's on which (app and CLI)+ # Shane 11-09: "can you also make edit comments become tasks that can be when i return to comments the agent shoudl+ # makr complete too. not sure hwo that works but that feedbakc is helpful for the ui to see what comment the agent or+ # an agent is working if multiple subagents and which are done"+ # Status 11-09: built in raea-feed (src/model/tasks.ts, taskChange.ts, detail/blocks/TaskBadge.tsx, Review.tsx,+ # Inline.tsx, host/tasks.ts; feed tool comment_task, feed_post answers) and the CLI (raea show --on). e2e smoke+ # "sent edits are tasks" passes; vitest tasks.test.ts, host/tasks.test.ts.++ Background:+ Given an item an agent made, in raea (over ACP) or from outside it (raea show), with edit comments on it++ Scenario: R3a. A sent edit is a task to do+ When I send the edits+ Then each sent comment shows "Sent to <agent> · to do", in the rail and in its pin's thread on the picture+ And the agent gets each comment's id with its words and place: in its turn's prompt over ACP, in the inbox line+ (`comments`, and `tasks` saying how to mark them) from outside raea++ Scenario: R3b. The agent marks the ones it's on, naming the subagent working each+ When the agent marks comments working: the comment_task tool over ACP, or `raea show --on ITEM --working ID+ [--sub NAME]` from outside raea+ Then each shows "<agent> · <subagent> is on it" with a pulse, and the rail's tally above the list says how many+ are being worked and by whom, how many are done and how many are still to do+ And an outside session's marks reach the open app within two seconds (the page asks the host while any of that+ item's sent edits isn't done)++ Scenario: R3c. Done stays in view, checked, until I resolve it+ When the agent marks comments done: comment_task done, feed_post with `answers`, or `raea show --on ITEM --done ID+ [--note LINE]` (or `raea show FILE --replaces ITEM --done ID...` with the version that settles them)+ Then each shows "Done by <agent>" with the version that settled it, and the agent's line under its words+ And it isn't resolved for me: Resolve is mine++ Scenario: R3d. Not done sends it back+ Given a comment the agent marked done+ When I press Not done+ Then it's an edit again, unsent, counted in the bar's edits to send, with no task on it++ Scenario: R3e. A wrong id is refused with the ones there are+ When the agent marks an id that isn't on the item, or a comment I haven't sent+ Then nothing changes and the refusal names the item's comment ids, or says the person hasn't asked for it yetdiff --git a/engine/cli/src/cli.rs b/engine/cli/src/cli.rsindex a9c0cfff..dca3f39a 100644--- a/engine/cli/src/cli.rs+++ b/engine/cli/src/cli.rs@@ -127,7 +127,7 @@ pub fn run(args: &[String]) -> R<String> {IN_HELP.set(was);// `raea library` (engine/cli/src/library.ts) and `raea show` (show.ts: in the raea app, not Preview, Shane 11-09), under render's usagelet usage = format!("{usage}\n raea library [new NAME [--cloud] | add LIBRARY PATH | files LIBRARY | tag SHA TAGS | status | scan ...] | raea library search \"WORDS\" [--library LIBRARY] [--kind KIND] [--limit N] [--sound] (the person's libraries in the raea app: folders and drives indexed on this machine, searched by meaning; a folder an agent adds waits for the person's yes)");- let usage = format!("{usage}\n raea show FILE... [--title T] [--ask LINE] [--project P] [--replaces ITEM] [--as NAME] [--role ROLE] [--inbox NAME] | raea show --question Q --choice A --choice B [STILL...] (shown in the raea app as an item the person can use and answer, the window brought up on it: stills (several, a storyboard), a video, a sound, a NAME.script.ts or .md, a .tsx (an interactive artifact; a project's composition opens in its editor), or a question; what they send comes to ~/.raea/inbox/INBOX.jsonl; never open media in Preview while the app is installed)");+ let usage = format!("{usage}\n raea show FILE... [--title T] [--ask LINE] [--project P] [--replaces ITEM] [--as NAME] [--role ROLE] [--inbox NAME] | raea show --question Q --choice A --choice B [STILL...] | raea show --on ITEM [--working ID] [--done ID] [--note LINE] [--sub NAME] (shown in the raea app as an item the person can use and answer, the window brought up on it: stills (several, a storyboard), a video, a sound, a NAME.script.ts or .md, a .tsx (an interactive artifact; a project's composition opens in its editor), or a question; what they send comes to ~/.raea/inbox/INBOX.jsonl; their edit comments are tasks: --working ID as you start one, --done ID when it's settled, or with the version that settles it, FILE --replaces ITEM --done ID; never open media in Preview while the app is installed)");// a workspace's files and specs (docs/projects.feature), listed under render's usage like librarylet usage = format!("{usage}\n raea spec FILE.ts [--as brief|script|taste|plan|controller] (a spec's default export as JSON, checked against its schema: brief.ts, script.ts, taste.ts, plan.ts, controllers/ID.ts)\n raea workspace init [NAME] [--layout LAYOUT] | raea workspace adopt DIR [--name NAME] | raea workspace [--json] (a workspace: a git repo of projects and controllers under raea.root, ~/Studio unless git config says)\n raea project new NAME [--storage inline|submodule] | raea project split NAME [--remote URL] | raea project join NAME | raea project [--json] (a project in the workspace: its folder, brief.ts, media/, out/; split and join keep its history)\n raea controller ls [--json] | raea controller get PATH [--json] | raea controller set PATH VALUE [--project] [--by NAME] | raea controller write FILE.ts [--by NAME] | raea controller rm ID [--by NAME] (the workspace's controllers, controllers/ID.ts; PATH is controller.group.field; every change a commit)\n raea check EDIT.tsx --quick [--shape S] [--platform P] [--taste T] [-o check.json] (three stills of a composition checked for text: clipped, cramped, safe areas, sizes; about a second)\n raea hook [claude|codex|gemini|kimi] (every agent's tool hooks, which raea skills install adds: before a shell command, media opened in the Mac's viewer while the raea app is installed is stopped once for raea show (the same command again goes through); after a save, the quick check on a composition)\n raea next [DIR] (the two or three useful next steps for the project, from its brief, compositions, renders and checks)\n raea doctor [--fix] [DIR] (what doesn't match this raea: old brief files, an older workspace format, an agent's skill from another version)\n raea app run|check|bundle APP.tsx [--target web|native] [--size WxH] [--script steps.json] [--png DIR] [-o App.app] (a TSX app on @raea/ui: its window, the headless check, a Mac app; web is Blitz on Bevy, native is Rune; the app's `export const app` sets the target, web when it doesn't; raea rune ... is --target native)\n {}\n {}", skill::USAGE, tools::blender::USAGE);let (export_game, scene, physics, splat) = (raea_app_game::USAGE, export::SCENE_USAGE, motion::physics::USAGE, tools::splat::USAGE);diff --git a/engine/cli/src/native.ts b/engine/cli/src/native.tsindex 4fac89bd..ee265db8 100644--- a/engine/cli/src/native.ts+++ b/engine/cli/src/native.ts@@ -439,6 +439,18 @@ function harness(): { name: string; pid: number } | undefined {return undefined;}+/** `raea show --on ITEM --working ID` and `--done ID` (show.ts): the person's comments marked on their item by the raea+ * app's host (apps/app host/tasks.ts), which the window shows as who's on each and which are done. */+function task(a: Record<string, unknown>): unknown {+ const at = appHost();+ if (!at) throw new Error("the raea app isn't running here: open it, then mark the comments again");+ try {+ return postHost(at, "/host/task", a);+ } catch (e) {+ throw new Error(String((e as Error).message).replace(/^raea show: /, ""));+ }+}+/** An op of the feed host's libraries (apps/app host/library/service.ts): POST <the app's host>/host/library. */function library(a: Record<string, unknown>): unknown {const at = appHost();@@ -462,6 +474,8 @@ const host: Host = (op, a) => {return show(a);case "harness":return harness();+ case "task":+ return task(a);default:throw new Error(`raea: this step (${op}) isn't in the native raea yet`);}diff --git a/engine/cli/src/show.ts b/engine/cli/src/show.tsindex 1a63ef97..405a61e6 100644--- a/engine/cli/src/show.ts+++ b/engine/cli/src/show.ts@@ -14,9 +14,13 @@ raea show --question "Which look?" (--choice A --choice B ... | STILL.png STILL.FILE: stills (several make a storyboard), a video, a sound, a NAME.script.ts or .md, or a .tsx (an interactiveartifact; one of the project's compositions opens in its editor). P: the project's id, title or Workspace/project;else the one this folder is in. Who's showing it: --as NAME [--role ROLE] [--inbox NAME], else your harness's.+raea show --on ITEM --working ID... | --done ID... [--note LINE] [--sub NAME]+raea show FILE... --replaces ITEM --done ID...+ The person's edit comments are tasks they watch: mark each working as you start it and done when it's settled+ (the version that settles them, with --replaces); --sub names a subagent when several split them.`;-const WITH_VALUE = new Set(["--title", "--ask", "--project", "--replaces", "--as", "--role", "--inbox", "--question", "--choice"]);+const WITH_VALUE = new Set(["--title", "--ask", "--project", "--replaces", "--as", "--role", "--inbox", "--question", "--choice", "--on", "--working", "--done", "--note", "--sub"]);/** The harness an agent runs in, named as the feed shows it, from the program that started this command (native.ts* walks up its parents): any harness, not only the ones that mark their shells. */@@ -46,11 +50,12 @@ export function parseShow(args: string[], cwd: string) {const i = args.lastIndexOf(name);return i >= 0 ? args[i + 1] : undefined;};- const choices = args.flatMap((a, i) => (a === "--choice" && args[i + 1] !== undefined ? [args[i + 1]] : []));+ const many = (name: string) => args.flatMap((a, i) => (a === name && args[i + 1] !== undefined ? [args[i + 1]] : []));+ const choices = many("--choice");const unknown = args.find((a, i) => a.startsWith("--") && !WITH_VALUE.has(a) && !WITH_VALUE.has(args[i - 1] ?? ""));if (unknown) throw new Error(`no ${unknown} here\n${SHOW_USAGE}`);const files = args.filter((a, i) => !a.startsWith("--") && !WITH_VALUE.has(args[i - 1] ?? "")).map((f) => (f.startsWith("/") ? f : `${cwd.replace(/\/$/, "")}/${f}`));- return { files, choices, title: one("--title"), ask: one("--ask"), project: one("--project"), replaces: one("--replaces"), question: one("--question"), as: one("--as"), role: one("--role"), inbox: one("--inbox") };+ return { files, choices, title: one("--title"), ask: one("--ask"), project: one("--project"), replaces: one("--replaces"), question: one("--question"), as: one("--as"), role: one("--role"), inbox: one("--inbox"), on: one("--on"), working: many("--working"), done: many("--done"), note: one("--note"), sub: one("--sub") };}export function showVerb(ask: Ask, args: string[], cwd: string, env: Record<string, string | undefined>): string {@@ -64,6 +69,19 @@ export function showVerb(ask: Ask, args: string[], cwd: string, env: Record<stri}};const by = posterOf(env, a.as, a.role, a.inbox, cwd, a.as && a.inbox ? undefined : parent());+ // the person's edit comments as tasks (docs/review.feature R3): marked working or done on their item, or done by+ // the version shown with --replaces+ const mark = (item: string, comments: string[], state: "working" | "done", version?: string) =>+ ask("task", { item, comments, state, by, sub: a.sub, note: state === "done" ? a.note : undefined, version }) as { item: string; comments: string[] };+ const said = (m: { item: string; comments: string[] }, state: string) => `Marked ${m.comments.join(", ")} ${state} on ${m.item}: the person sees ${a.sub ? `${by.name} · ${a.sub}` : by.name} ${state === "working" ? "on them" : "finished them"}.`;+ if (!a.files.length && !a.question && (a.working.length || a.done.length)) {+ const item = a.on ?? a.replaces;+ if (!item) throw new Error(`which item the comments are on: --on ITEM\n${SHOW_USAGE}`);+ const out = [...(a.working.length ? [said(mark(item, a.working, "working"), "working")] : []), ...(a.done.length ? [said(mark(item, a.done, "done"), "done")] : [])];+ return `${out.join("\n")}\n`;+ }+ if (a.working.length) throw new Error(`--working marks comments without showing anything: raea show --on ITEM --working ID\n${SHOW_USAGE}`);+ if (a.done.length && !a.replaces) throw new Error(`--done with files settles comments on the item they replace: add --replaces ITEM\n${SHOW_USAGE}`);const r = ask("show", { files: a.files, title: a.title, ask: a.ask, question: a.question, choices: a.choices, project: a.project, replaces: a.replaces, cwd, by }) as| { opened: string[] }| { kind: "item" | "composition"; id: string; type: string; title: string; project: string; workspace: string; inbox: string };@@ -71,8 +89,18 @@ export function showVerb(ask: Ask, args: string[], cwd: string, env: Record<striconst home = env.HOME ?? "";const inbox = home && r.inbox.startsWith(home) ? `~${r.inbox.slice(home.length)}` : r.inbox;if (r.kind === "composition") return `Opened ${r.title} in the raea app's composition editor (project ${r.project}, ${r.workspace}): the person plays it and changes it there, and their changes save into its file.\n`;+ // the version is posted by now: a marking the host refuses is said with it, not thrown over it+ const settle = (item: string) => {+ try {+ return said(mark(item, a.done, "done", r.id), "done");+ } catch (e) {+ return `Not marked done: ${(e as Error).message.replace(/^raea show: /, "")} (mark them with raea show --on ${item} --done ID).`;+ }+ };+ const settled = a.done.length && a.replaces ? [settle(a.replaces)] : [];return [`Shown in the raea app: "${r.title}" (${r.type}, item ${r.id}, project ${r.project} in ${r.workspace}); the window is on it.`,+ ...settled,`What the person sends on it (notes, edits, picks, answers, results) comes to ${inbox}, one JSON line each. Follow it (tail -n0 -F ${inbox}, or your harness's monitor) and answer each; a next version is raea show --replaces ${r.id} FILE.`,"",].join("\n");