Skip to content

armgit / raea

Public Imported from GitHub
0

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.

raea cloud's box: with no agent named, Claude when it's installed (antigravity-acp sorts first and became the default on raea-1's refresh)

shinyobjectz4b2b39edd3ce
diff --git a/sdk/cloud/server/agents.ts b/sdk/cloud/server/agents.ts
index a32fbed7..d5814392 100644
--- a/sdk/cloud/server/agents.ts
+++ b/sdk/cloud/server/agents.ts
@@ -124,7 +124,8 @@ export function spawnFor(id?: string): Spawn {
const cmd = process.env.RAEA_AGENT_CMD
if (cmd && (!want || want === "custom")) return { id: "custom", version: "", command: sh(), args: ["-c", cmd], env: {} }
const all = installed()
- const s = want ? all.find((a) => a.id === want) : all[0]
+ // 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")
return s
}