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's box runs an agent only when it's named, by the request (?agent=) or the box's RAEA_AGENT: no default from whichever is installed first (it had made antigravity-acp the default on raea-1), so a run is never on a model nobody picked. With neither, the socket is refused and says which agents are installed
shinyobjectze435bff43e55
diff --git a/sdk/cloud/README.md b/sdk/cloud/README.mdindex 2721fa7c..bb6de997 100644--- a/sdk/cloud/README.md+++ b/sdk/cloud/README.md@@ -32,7 +32,7 @@ curl -H "authorization: Bearer $RAEA_CLOUD_TOKEN" localhost:8080/v1/health`AGENTS` takes any ids the [ACP registry](https://cdn.agentclientprotocol.com/registry/v1/latest/registry.json)lists, several at once: `kimi-code`, `claude-acp`, `codex-acp`, `gemini`, `opencode`, `goose`, ... Each is installedfrom its registry entry (npm at the registry's version, or its Linux archive checked by sha256), and raea's skill is-installed for it on every start. `RAEA_AGENT` picks the default; a socket can name another (`?agent=`).+installed for it on every start. A socket names its agent (`?agent=`); `RAEA_AGENT` names one for sockets that don't. With neither, there is no agent: the box never picks one itself.`RAEA_AGENT_CMD` runs an agent the registry doesn't list, by its command line.Signing the agent in:diff --git a/sdk/cloud/server/agents.ts b/sdk/cloud/server/agents.tsindex d5814392..92fd186f 100644--- a/sdk/cloud/server/agents.ts+++ b/sdk/cloud/server/agents.ts@@ -124,9 +124,12 @@ export function spawnFor(id?: string): Spawn {const cmd = process.env.RAEA_AGENT_CMDif (cmd && (!want || want === "custom")) return { id: "custom", version: "", command: sh(), args: ["-c", cmd], env: {} }const all = installed()- // with none named, Claude when it's there (11-24: antigravity-acp sorts first and would have become the default)- const s = want ? all.find((a) => a.id === want) : (all.find((a) => a.id === "claude-acp") ?? all[0])- if (!s) throw new Error(want ? `${want} isn't installed in this image (installed: ${all.map((a) => a.id).join(", ") || "none"})` : "no agent is installed: build with AGENTS=..., or set RAEA_AGENT_CMD")+ // no default (11-24, Shane): an agent runs only when it's named, by the request (?agent=) or the box's RAEA_AGENT,+ // never whichever is installed first, so a run is never on a model nobody picked+ const ids = all.map((a) => a.id).join(", ") || "none"+ if (!want) throw new Error(`no agent named: pass ?agent=ID, or set RAEA_AGENT on the box (installed: ${ids})`)+ const s = all.find((a) => a.id === want)+ if (!s) throw new Error(`${want} isn't installed in this image (installed: ${ids})`)return s}diff --git a/sdk/cloud/src/index.ts b/sdk/cloud/src/index.tsindex e6c45f47..913c289a 100644--- a/sdk/cloud/src/index.ts+++ b/sdk/cloud/src/index.ts@@ -5,7 +5,7 @@// await cloud.health() // {raea, agent, agents, workspace}// await cloud.write("card/edit.tsx", source) // into the workspace// await cloud.run(["render", "edit.tsx", "-o", "card.mp4"], { cwd: "card" })-// const s = await cloud.session() // the default agent, over ACP+// const s = await cloud.session() // the agent RAEA_AGENT names, over ACP// await s.prompt("Make card/edit.tsx a 3 s title card that says hello", (u) => console.log(u.sessionUpdate))// const mp4 = await cloud.read("card/card.mp4")// s.close()@@ -220,7 +220,7 @@ export class RaeaCloud {return this.fetch(`/v1/login${agent ? `?agent=${encodeURIComponent(agent)}` : ""}`).then((r) => r.json())}- /** An ACP session with an agent in the workspace (the default agent unless one is named). */+ /** An ACP session with an agent in the workspace (the one named, else the one the box's RAEA_AGENT names; with neither, the box refuses). */async session(o: { agent?: string; cwd?: string; onPermission?: (p: Permission) => string | Promise<string> } = {}): Promise<Session> {const work = (this.ws ??= this.health().then((h) => h.workspace))const q = new URLSearchParams({ token: this.token, ...(o.agent ? { agent: o.agent } : {}) })