mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-28 11:59:29 +00:00
feat: gate tarball install behind --beta=tarball flag (#2482)
* feat: gate tarball install behind --beta=tarball flag Tarball install is not yet reliable enough to be the default. Move it behind an opt-in --beta=tarball flag so users can test it explicitly while live install remains the default path. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat: support multiple --beta flags (repeatable) Parse all --beta flags from args in a loop, collecting them into a comma-separated SPAWN_BETA env var. Consumers check for their feature with Set.has() so multiple beta features can be active simultaneously. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * refactor: replace for(;;) loop with extractAllFlagValues helper Cleaner approach: a dedicated helper mutates args in place and returns all values for a repeatable flag, replacing the infinite loop pattern. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: lab <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
e127308af6
commit
9a1dad7fcb
5 changed files with 64 additions and 5 deletions
|
|
@ -153,7 +153,8 @@ export async function runOrchestration(
|
|||
logInfo("Snapshot boot — skipping agent install");
|
||||
} else {
|
||||
let installedFromTarball = false;
|
||||
if (cloud.cloudName !== "local" && !agent.skipTarball) {
|
||||
const betaFeatures = new Set((process.env.SPAWN_BETA ?? "").split(",").filter(Boolean));
|
||||
if (cloud.cloudName !== "local" && !agent.skipTarball && betaFeatures.has("tarball")) {
|
||||
const tarball = options?.tryTarball ?? tryTarballInstall;
|
||||
installedFromTarball = await tarball(cloud.runner, agentName);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue