spawn/test
A eac5713ef0
refactor: deduplicate AWS/Fly agent setup into shared modules (#1700)
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>
2026-02-22 08:40:21 -08:00
..
fixtures refactor: convert fly/ cloud provider from bash to TypeScript (#1601) (#1602) 2026-02-21 10:41:34 -08:00
e2e.sh refactor: deduplicate AWS/Fly agent setup into shared modules (#1700) 2026-02-22 08:40:21 -08:00
macos-compat.sh fix: exclude echo -n from macos-compat MC002 rule to eliminate false positives (#1545) 2026-02-20 23:36:47 -05:00
mock-curl-script.sh fix: use openclaw curl installer to prevent fly ssh hang (#1640) 2026-02-21 15:58:05 -08:00
mock.sh feat: convert digitalocean/ cloud provider from Bash to TypeScript (#1690) 2026-02-22 06:43:05 -05:00
qa-dry-run.sh feat: E2E test harness, QA pipeline integration, macOS compat linter (#1425) 2026-02-17 20:41:07 -05:00
record.sh fix: pass response via env var in record.sh has_api_error (SC2259) (#1559) 2026-02-21 05:47:50 -05:00
run.sh fix: update test_source_detection for bun shim pattern (#1696) 2026-02-22 11:10:37 -05:00
test-sandbox.sh fix: enhance sandbox test to detect agent directory residue (#1417) 2026-02-17 12:52:24 -05:00
update-readme.py QA-Bot setup (#335) 2026-02-10 19:51:07 -08:00