mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-11 13:20:05 +00:00
Extract ~800 lines of duplicated agent helpers and orchestration logic from aws/agents.ts and fly/agents.ts into shared modules: - shared/agent-setup.ts: CloudRunner interface, installAgent, uploadConfigFile, installClaudeCode, setupClaudeCodeConfig, GitHub auth, config helpers, createAgents(), resolveAgent() - shared/orchestrate.ts: CloudOrchestrator interface + 12-step runOrchestration() pipeline - shared/agents.ts: AgentConfig type + generateEnvConfig (single source) Each cloud becomes a thin wrapper (~25-60 lines) that constructs a CloudRunner/CloudOrchestrator from its provider-specific functions. Also fixes pre-existing test breakage (aws.test.ts imported renamed exports LIGHTSAIL_BUNDLES/BundleTier → BUNDLES/Bundle) and removes dead aws/lib/common.sh reference from test/e2e.sh. Co-authored-by: lab <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
24 lines
595 B
JSON
24 lines
595 B
JSON
{
|
|
"name": "@openrouter/spawn",
|
|
"version": "0.6.2",
|
|
"type": "module",
|
|
"bin": {
|
|
"spawn": "cli.js"
|
|
},
|
|
"scripts": {
|
|
"dev": "bun run src/index.ts",
|
|
"build": "bun build src/index.ts --outfile cli.js --target bun --minify --packages bundle",
|
|
"compile": "bun build src/index.ts --compile --outfile spawn",
|
|
"lint": "biome lint src/",
|
|
"test": "bun test",
|
|
"test:watch": "bun test --watch"
|
|
},
|
|
"dependencies": {
|
|
"@clack/prompts": "^1.0.0",
|
|
"picocolors": "^1.1.1"
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "^2.4.3",
|
|
"@types/bun": "^1.3.8"
|
|
}
|
|
}
|