Skip to content

chore: merge test to main - #197

Merged
sweetmantech merged 2 commits into
mainfrom
test
Feb 3, 2026
Merged

sweetmantech merged 2 commits into
mainfrom
test

Conversation

@sweetmantech

Copy link
Copy Markdown
Contributor

Merge test branch changes to main

* 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>
@vercel

vercel Bot commented Feb 3, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
recoup-api Ready Ready Preview Feb 3, 2026 9:39pm

@coderabbitai

coderabbitai Bot commented Feb 3, 2026 •

Copy link
Copy Markdown

Warning

Rate limit exceeded

@sweetmantech has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 22 minutes and 50 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch test

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

github-actions Bot commented Feb 3, 2026 •

Copy link
Copy Markdown

Braintrust eval report

Catalog Opportunity Analysis Evaluation (HEAD-1770154711)

Score Average Improvements Regressions
Catalog_availability 0% (+0pp) - -
Llm_calls 0 (+0) - -
Tool_calls 0 (+0) - -
Errors 0 (+0) - -
Llm_errors 0 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 0tok (+0tok) - -
Prompt_cached_tokens 0tok (+0tok) - -
Prompt_cache_creation_tokens 0tok (+0tok) - -
Completion_tokens 0tok (+0tok) - -
Completion_reasoning_tokens 0tok (+0tok) - -
Total_tokens 0tok (+0tok) - -
Duration 45.23s (+1.58s) 3 🟢 2 🔴

Catalog Songs Count Evaluation (HEAD-1770154711)

Score Average Improvements Regressions
Llm_calls 4 (+0) - -
Tool_calls 0 (+0) - -
Errors 3 (+0) - -
Llm_errors 1 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 0tok (+0tok) - -
Prompt_cached_tokens 0tok (+0tok) - -
Prompt_cache_creation_tokens 0tok (+0tok) - -
Completion_tokens 0tok (+0tok) - -
Completion_reasoning_tokens 0tok (+0tok) - -
Total_tokens 0tok (+0tok) - -
Duration 15.79s (-0.47s) 1 🟢 2 🔴

First Week Album Sales Evaluation (HEAD-1770154711)

Score Average Improvements Regressions
Llm_calls 1 (+0) - -
Tool_calls 0 (+0) - -
Errors 1 (+0) - -
Llm_errors 0 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 0tok (+0tok) - -
Prompt_cached_tokens 0tok (+0tok) - -
Prompt_cache_creation_tokens 0tok (+0tok) - -
Completion_tokens 0tok (+0tok) - -
Completion_reasoning_tokens 0tok (+0tok) - -
Total_tokens 0tok (+0tok) - -
Duration 20.26s (+4.35s) 1 🟢 3 🔴

Memory & Storage Tools Evaluation (HEAD-1770154711)

Score Average Improvements Regressions
Tools_called 0% (+0pp) - -
Llm_calls 0 (+0) - -
Tool_calls 0 (+0) - -
Errors 0 (+0) - -
Llm_errors 0 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 0tok (+0tok) - -
Prompt_cached_tokens 0tok (+0tok) - -
Prompt_cache_creation_tokens 0tok (+0tok) - -
Completion_tokens 0tok (+0tok) - -
Completion_reasoning_tokens 0tok (+0tok) - -
Total_tokens 0tok (+0tok) - -
Duration 20.56s (-0.47s) 1 🟢 -

Monthly Listeners Tracking Evaluation (HEAD-1770154711)

Score Average Improvements Regressions
Llm_calls 2 (+0) - -
Tool_calls 0 (+0) - -
Errors 2 (+0) - -
Llm_errors 1 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 0tok (+0tok) - -
Prompt_cached_tokens 0tok (+0tok) - -
Prompt_cache_creation_tokens 0tok (+0tok) - -
Completion_tokens 0tok (+0tok) - -
Completion_reasoning_tokens 0tok (+0tok) - -
Total_tokens 0tok (+0tok) - -
Duration 15.9s (+2.72s) 2 🟢 3 🔴

Search Web Tool Evaluation (HEAD-1770154711)

Score Average Improvements Regressions
Llm_calls 3 (+0) - -
Tool_calls 0 (+0) - -
Errors 2 (+0) - -
Llm_errors 1 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 0tok (+0tok) - -
Prompt_cached_tokens 0tok (+0tok) - -
Prompt_cache_creation_tokens 0tok (+0tok) - -
Completion_tokens 0tok (+0tok) - -
Completion_reasoning_tokens 0tok (+0tok) - -
Total_tokens 0tok (+0tok) - -
Duration 34.43s (+0.39s) 6 🟢 5 🔴

Social Scraping Evaluation (HEAD-1770154711)

Score Average Improvements Regressions
Tools_called 0% (+0pp) - -
Llm_calls 0 (+0) - -
Tool_calls 0 (+0) - -
Errors 0 (+0) - -
Llm_errors 0 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 0tok (+0tok) - -
Prompt_cached_tokens 0tok (+0tok) - -
Prompt_cache_creation_tokens 0tok (+0tok) - -
Completion_tokens 0tok (+0tok) - -
Completion_reasoning_tokens 0tok (+0tok) - -
Total_tokens 0tok (+0tok) - -
Duration 33.76s (-1.99s) 4 🟢 2 🔴

Spotify Followers Evaluation (HEAD-1770154711)

Score Average Improvements Regressions
Llm_calls 3 (+0) - -
Tool_calls 0 (+0) - -
Errors 3 (+0) - -
Llm_errors 2 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 0tok (+0tok) - -
Prompt_cached_tokens 0tok (+0tok) - -
Prompt_cache_creation_tokens 0tok (+0tok) - -
Completion_tokens 0tok (+0tok) - -
Completion_reasoning_tokens 0tok (+0tok) - -
Total_tokens 0tok (+0tok) - -
Duration 17.31s (-1.07s) 3 🟢 2 🔴

Spotify Tools Evaluation (HEAD-1770154711)

Score Average Improvements Regressions
Tools_called 0% (+0pp) - -
Llm_calls 0 (+0) - -
Tool_calls 0 (+0) - -
Errors 0 (+0) - -
Llm_errors 0 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 0tok (+0tok) - -
Prompt_cached_tokens 0tok (+0tok) - -
Prompt_cache_creation_tokens 0tok (+0tok) - -
Completion_tokens 0tok (+0tok) - -
Completion_reasoning_tokens 0tok (+0tok) - -
Total_tokens 0tok (+0tok) - -
Duration 52.46s (+12.2s) - 2 🔴

TikTok Analytics Questions Evaluation (HEAD-1770154711)

Score Average Improvements Regressions
Question_answered 0% (+0pp) - -
Llm_calls 0 (+0) - -
Tool_calls 0 (+0) - -
Errors 0 (+0) - -
Llm_errors 0 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 0tok (+0tok) - -
Prompt_cached_tokens 0tok (+0tok) - -
Prompt_cache_creation_tokens 0tok (+0tok) - -
Completion_tokens 0tok (+0tok) - -
Completion_reasoning_tokens 0tok (+0tok) - -
Total_tokens 0tok (+0tok) - -
Duration 14.77s (-0.15s) 1 🟢 1 🔴

@sweetmantech
sweetmantech merged commit b84e8df into main Feb 3, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Preview — 9cc29302 Deployed Feb 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant