feat: add POST /api/sandboxes/setup endpoint
Merged
SW
9mo ago+386+386+012345678901234567890123456789-0-0-0123456789
Summary
- New
POST /api/sandboxes/setupendpoint that triggers thesetup-sandboxbackground task - Creates personal sandbox, provisions GitHub repo, takes snapshot, and shuts down
- Supports optional
account_idoverride for organization API keys - Full TDD with 10 tests across 3 test files (trigger wrapper, validation, handler)
Test plan
-
pnpm testā all 10 new tests pass -
pnpm buildā production build succeeds -
pnpm lintā no new lint errors - Manual test: call endpoint with valid API key, verify Trigger.dev task is triggered
š¤ Generated with Claude Code