spawn/test
A 2ef621cc69
refactor: convert fly/ cloud provider from bash to TypeScript (#1601) (#1602)
Replace fly/lib/common.sh (741 lines of bash) with a TypeScript
implementation using Bun runtime. The fly/ provider was the most
complex bash code in the project — recent fixes (#1597, #1599, #1600)
highlight the pain of debugging HTTP calls, JSON parsing, and multi-step
auth flows in shell.

New TypeScript modules:
- fly/lib/ui.ts — logging, prompts, validation (zero deps)
- fly/lib/fly.ts — API client (fetch), auth chain, org listing, provisioning
- fly/lib/oauth.ts — OpenRouter OAuth via Bun.serve(), key management
- fly/lib/agents.ts — typed agent configs for all 6 agents
- fly/main.ts — orchestrator entry point

Agent .sh files become thin shims (~30 lines) that install bun if needed,
download TS sources for curl|bash execution, and delegate to main.ts.

Test coverage:
- 44 TypeScript unit tests (bun test) for pure logic
- 4 fly failure-mode tests (mock.sh) for error scenarios
- All existing test suites pass (110 run.sh, 76 mock.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-21 10:41:34 -08:00
..
fixtures refactor: convert fly/ cloud provider from bash to TypeScript (#1601) (#1602) 2026-02-21 10:41:34 -08:00
e2e.sh feat: remove OVH cloud and make featured_cloud an array (#1474) 2026-02-19 11:06:27 -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: hide cloud API tokens from process argument list (#1519) 2026-02-20 12:51:55 +00:00
mock.sh refactor: convert fly/ cloud provider from bash to TypeScript (#1601) (#1602) 2026-02-21 10:41:34 -08: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: report temp file leaks in _assert_no_temp_leaks test assertion (#1558) 2026-02-21 04:45:09 -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