Repository navigation
chore: merge test to main - #197
Conversation
* Fix React Server Components CVE vulnerabilities (#194) Updated dependencies to fix Next.js and React CVE vulnerabilities. The fix-react2shell-next tool automatically updated the following packages to their secure versions: - next - react-server-dom-webpack - react-server-dom-parcel - react-server-dom-turbopack All package.json files have been scanned and vulnerable versions have been patched to the correct fixed versions based on the official React advisory. Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com> * feat: update POST /api/sandboxes to use command execution - Change request body from { prompt } to { command, args?, cwd? } - Add account snapshot support for creating sandboxes from snapshots - Update trigger payload to include command, args, cwd, sandboxId, accountId - Return runId in response from triggered task - Update tests to reflect new API structure Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix: use correct source parameter for snapshot in Sandbox.create The Vercel Sandbox SDK requires snapshotId to be passed via the source parameter with type: 'snapshot', not as a direct property. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * test: update triggerRunSandboxCommand tests to use command payload Update test payloads to match new API: command, args, cwd, sandboxId, accountId Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * refactor: use CreateSandboxParams from @vercel/sandbox SDK - Export CreateSandboxParams type extracted from Sandbox.create signature - Accept full SDK params instead of custom snapshotId option - Apply sensible defaults for timeout, resources, and runtime - Update handler to pass source object for snapshots - Add tests for new parameter combinations Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix: handle union type for CreateSandboxParams Use 'in' operator to check for runtime/resources properties since they don't exist on the snapshot variant of the union type. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix: simplify createSandbox to spread defaults before params Spread defaults first, then override with params. This avoids type conflicts between snapshot and base param variants. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix: handle trigger failure gracefully and always return response - Wrap triggerRunSandboxCommand in try-catch to prevent hanging - Return 200 with sandbox info even if trigger fails (runId omitted) - Update JSDoc to document new command/args/cwd request format - Update tests to reflect new graceful failure behavior Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * debug: add extensive logging to trace request flow Add console.log at each step to identify where the request is hanging: - Request received - Validation - Snapshot lookup - Sandbox creation - DB insert - Task trigger - Response building Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * chore: remove debug logging Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * refactor: rename selectAccountSnapshot.ts to selectAccountSnapshots.ts Follow the select[TableName].ts naming convention where the table name is account_snapshots (plural). Function name unchanged. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * refactor: rename function to selectAccountSnapshots and return array - Rename function from selectAccountSnapshot to selectAccountSnapshots - Remove .limit(1).single() to return full array - Update handler to get first element from array - Update tests with new function name and array return values Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * refactor: use Tables type from Supabase schema for account_snapshots - Regenerate types with supabase gen types to include account_snapshots table - Replace local AccountSnapshot interface with Tables<"account_snapshots"> - DRY: single source of truth for type definitions Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com> Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Braintrust eval reportCatalog Opportunity Analysis Evaluation (HEAD-1770154711)
Catalog Songs Count Evaluation (HEAD-1770154711)
First Week Album Sales Evaluation (HEAD-1770154711)
Memory & Storage Tools Evaluation (HEAD-1770154711)
Monthly Listeners Tracking Evaluation (HEAD-1770154711)
Search Web Tool Evaluation (HEAD-1770154711)
Social Scraping Evaluation (HEAD-1770154711)
Spotify Followers Evaluation (HEAD-1770154711)
Spotify Tools Evaluation (HEAD-1770154711)
TikTok Analytics Questions Evaluation (HEAD-1770154711)
|
Merge test branch changes to main