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 cloud: a render's output outside the project goes back as .raea-cloud-out-N-NAME at the project's top, not inside a .raea-cloud-out folder. The folder is never sent to the farm, and a still's writer (unlike a video's encoder) doesn't make one, so every PNG made outside the project failed with "no frame was written" (11-25, StreetTalk's storyboards: raea render board.html -o out/board.png). Checked through the farm: an HTML storyboard to PNG, written and moved into place; test/units.ts updated.
shinyobjectz7db0e7e14940
diff --git a/sdk/cloud/server/offload.ts b/sdk/cloud/server/offload.tsindex d43f1e5f..7f8c11c1 100644--- a/sdk/cloud/server/offload.ts+++ b/sdk/cloud/server/offload.ts@@ -7,7 +7,7 @@// 2. `raea render` runs there with the same arguments, its paths made relative to that folder, and prints here as// it comes;// 3. the files it made or changed land back here: an output path outside the folder (-o /tmp/x.mp4) is written-// there under .raea-cloud-out and moved to its place after.+// there as .raea-cloud-out-N-NAME at its top and moved to its place after.// In a raea repo, with this box signed in, the project's media goes by hash instead (media.ts, CR23): the farm fetches// it from R2, and the media the render makes goes to R2 from the farm, here only as pointer files.//@@ -75,7 +75,9 @@ export function plan(args: string[], cwd: string, root?: string): Plan | stringconst abs = path.resolve(cwd, a)if (inside(r, abs)) out.push(path.relative(r, abs) || ".")else if (WRITES.has(flag)) {- const rel = path.join(".raea-cloud-out", `${moves.length}-${path.basename(abs)}`)+ // a file at the top of the project, not in a folder: the folder isn't sent, and a still's writer (unlike a video's+ // encoder) doesn't make one, so a PNG made outside the project was never written (11-25, StreetTalk's storyboards)+ const rel = `.raea-cloud-out-${moves.length}-${path.basename(abs)}`moves.push({ from: rel, to: abs })out.push(rel)} else return `${a} is outside the project sent to the GPU (${r})`@@ -95,7 +97,7 @@ async function main() {try {// kits/ (raea-game-kit) is a link into the box's shared cache, hundreds of MB, that the farm can't follow: a// composition uses copies of the kit files it needs in its own folder (11-21: the dangling link hung farm jobs)- const excludes = (process.env.RAEA_CLOUD_GPU_EXCLUDE ?? "./.git ./out/* ./.raea-cloud-out ./kits").split(/\s+/).filter(Boolean)+ const excludes = (process.env.RAEA_CLOUD_GPU_EXCLUDE ?? "./.git ./out/* ./.raea-cloud-out ./.raea-cloud-out-* ./kits").split(/\s+/).filter(Boolean)// zstd with GNU tar (the image's); gzip with another tar (a Mac's), whose zstd needs a program of its ownconst gnu = spawnSync("tar", ["--version"], { encoding: "utf8" }).stdout?.includes("GNU")const sent = path.join(tmp, "in.tar")@@ -162,6 +164,7 @@ async function main() {}}rmSync(path.join(p.root, ".raea-cloud-out"), { recursive: true, force: true })+ for (const m of p.moves) rmSync(path.join(p.root, m.from), { force: true })if (finish) {const bytes = await finish()say(`its media (${(bytes / 1e6).toFixed(1)} MB) went from the farm to R2; here it's pointers (git lfs pull PATH brings one here)`)diff --git a/sdk/cloud/test/units.ts b/sdk/cloud/test/units.tsindex 0932170b..aaff179d 100644--- a/sdk/cloud/test/units.ts+++ b/sdk/cloud/test/units.ts@@ -57,11 +57,11 @@ try {args: ["render", "scenes/edit.tsx", "-o", "out/x.mp4", "--frames", "30"],moves: [],})- // an output outside the project is written under .raea-cloud-out and moved after+ // an output outside the project is written at its top as .raea-cloud-out-N-NAME (no folder to make) and moved afterconst p = plan(["render", "scenes/edit.tsx", "-o", "/tmp/x.mp4", "--words", "words.json"], proj)assert.ok(typeof p !== "string")- assert.deepEqual(p.args, ["render", "scenes/edit.tsx", "-o", ".raea-cloud-out/0-x.mp4", "--words", "words.json"])- assert.deepEqual(p.moves, [{ from: ".raea-cloud-out/0-x.mp4", to: "/tmp/x.mp4" }])+ assert.deepEqual(p.args, ["render", "scenes/edit.tsx", "-o", ".raea-cloud-out-0-x.mp4", "--words", "words.json"])+ assert.deepEqual(p.moves, [{ from: ".raea-cloud-out-0-x.mp4", to: "/tmp/x.mp4" }])// an input outside the project can't goassert.match(plan(["render", "scenes/edit.tsx", "-o", "x.mp4", "--words", "../elsewhere.json"], proj) as string, /outside the project/)// no composition: nothing to send