mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-18 06:20:35 +00:00
De-duplicate model ID resolution, env config building, and agent install logic that was copied between the fast-mode and sequential orchestration paths. Changes to these operations now only need to happen in one place. - resolveModelId(agentName, agent) — reads MODEL_ID / preferences / default - buildEnvConfig(agent, apiKey, modelId, betaFeatures, spawnId) — builds .spawnrc - installAgentWithRetry(cloud, agent, agentName, options, allowTarball) — tarball-first with retry The local-cloud tarball guard is preserved: fast path passes useTarball directly (already gated by cloudName !== "local"), sequential path passes cloudName !== "local" && useTarball. Agent: complexity-hunter Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| cli | ||
| shared | ||