feat: switch sandbox file upload from multipart to blob URLs
Merged
SW
8mo ago+249+249+012345678901234567890123456789-160-160-012345678901234567890123456789
Summary
- Replace multipart form data with JSON body accepting file URLs (
{ url, name }) - API downloads from each URL, commits to GitHub, then deletes the temporary blob via
@vercel/blob - Bypasses Vercel's 4.5MB serverless function body size limit
- Uses Zod schema validation for request body
Test plan
- Verify file upload via blob URLs works end-to-end
- Verify blob cleanup after successful commit
- Verify partial failure handling (some files fail, others succeed)
- All 17 unit tests passing
š¤ Generated with Claude Code
Summary by CodeRabbit
Release Notes
-
New Features
- Added remote file download capability for sandbox operations.
-
Refactor
- File upload API now accepts JSON-formatted requests with remote file URLs instead of multipart form uploads.
- Temporary resources are automatically cleaned up after successful file processing.