Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openrouter/spawn",
"version": "0.26.2",
"version": "0.26.3",
"type": "module",
"bin": {
"spawn": "cli.js"
Expand Down
9 changes: 8 additions & 1 deletion packages/cli/src/shared/orchestrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,14 @@ async function postInstall(
}

// Spawn CLI + skill injection (recursive spawn)
if (enabledSteps?.has("spawn") && cloud.cloudName !== "local") {
// The "spawn" step is defaultOn when --beta recursive is active, so it should
// run when no explicit steps are selected (!enabledSteps) AND the beta flag is set.
const betaFeaturesPost = new Set((process.env.SPAWN_BETA ?? "").split(",").filter(Boolean));
if (
cloud.cloudName !== "local" &&
betaFeaturesPost.has("recursive") &&
(!enabledSteps || enabledSteps.has("spawn"))
) {
await installSpawnCli(cloud.runner);
await delegateCloudCredentials(cloud.runner, cloud.cloudName);
await injectSpawnSkill(cloud.runner, agentName);
Expand Down
Loading