Skip to content

[skills] Sync offload-to-sandbox with current docs - #466

Merged
molebox merged 2 commits into
mainfrom
eve-drift/offload-to-sandbox
Nov 26, 2026
Merged

molebox merged 2 commits into
mainfrom
eve-drift/offload-to-sandbox

Conversation

@vercel-gh-bot-2

Copy link
Copy Markdown
Contributor
  • sandbox read / sandbox write argument shape. The skill's examples passed one name:path argument: sandbox read ... "${name}:/vercel/sandbox/cand/package.json" and sandbox write ... --mode 755 "${name}:/vercel/sandbox/check.sh". The standalone CLI takes the sandbox name and the file path as two separate positionals. The name:path form only applies to copy. The examples now use "$name" /vercel/sandbox/cand/package.json and "$name" /vercel/sandbox/check.sh. Source: https://raw.githubusercontent.com/vercel/sandbox/main/packages/sandbox/CHANGELOG.md (4.12.0 entry; no last_updated): "Add sandbox read <name> <path> (alias cat) and sandbox write <name> <path> to read a sandbox file to stdout and write stdin to a sandbox file". The published sandbox@5.0.0 (dist/read-*.mjs, dist/write-*.mjs) and packages/sandbox/src/commands/{read,write}.ts confirm this: read and write each declare a sandbox positional and a path positional, and write's help example is sandbox write my-sandbox /vercel/sandbox/hello.js. The docs CLI reference (https://vercel.com/docs/sandbox/sdk/cli) does not document read/write yet.

Verification

run_plugin_checks: build, typecheck, validate and test all pass (1364 tests). An earlier full run hit a timeout in inject-claude-md > a knowledge update saved with CRLF line endings or a BOM.... That test runs close to its 5000 ms limit on a clean main too (4.8–5.0 s when run alone), so it is timing-flaky and unrelated to this change.

Test updates

None. tests/offload-to-sandbox-skill.test.ts uses name:path strings only as bash-pattern matching fixtures. They don't pin the syntax, so they were left alone.

Not changed

  • metadata.docs still cites https://vercel.com/docs/sandbox/cli-reference, which now redirects to https://vercel.com/docs/sandbox/sdk/cli. It is the same product's page, so the frontmatter stays as it is.
  • The bundled-CLI caveats (Sandbox CLI 4.4.0 in vercel) still hold: packages/cli/package.json on vercel/vercel main pins "sandbox": "4.4.0".
  • Pricing and plan limits (Hobby 4 vCPUs / 45 minutes, Pro/Enterprise 24 hours, concurrency, snapshot storage) match https://vercel.com/docs/sandbox/pricing (last_updated 2026-09-10).

Opened automatically by the vercel-plugin drift agent. Review before merge.

<!-- vercel-plugin-drift-agent -->

@molebox molebox left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sent from Rich's agents review

Verified the drift commit 18c8d82 against shipped code. Both changed lines hold. No fix commits.

  • sandbox read <name> <path> and sandbox write [--mode] <name> <path> take two positionals: vercel/sandbox@5b36ea2:packages/sandbox/src/commands/read.ts:15-19 and write.ts:20-30. The --help output of the published sandbox@4.12.0 and sandbox@5.0.0 agrees.
  • The old name:path form fails with "No value provided for path" on sandbox@4.12.0 and 5.0.0. It existed only between vercel/sandbox#380 and #442 and never shipped: 4.12.0 is the first release with read and write, and it contains both changes. #378 here was written in that window, so this does not undo a deliberate edit.
  • copy keeps name:path (cp.ts:61-68), so the untouched copy examples are right. skills/vercel-sandbox/SKILL.md already uses the two-argument form.
  • Body note: "Sandbox CLI 4.4.0 in vercel still holds" follows vercel/vercel main, which is at CLI 65.4.0. The published vercel 65.10.0 through 67.0.0 bundle sandbox 4.11.1 and return the remote exit status (@vercel/cli-support@67.0.0/dist/commands-core.js).
  • Follow-up for the next drift pass, not this PR: SKILL.md lines 324 and 423 state the "exec exits 0" caveat without a version.

Gated head f2c82c8 (this branch merged with main de79bff): bun run build:all leaves no diff; typecheck, validate and bun test pass; CI build-and-test passes on it.

@molebox
molebox merged commit 42b1d36 into main Nov 26, 2026
5 checks passed
@molebox
molebox deleted the eve-drift/offload-to-sandbox branch November 26, 2026 11:28
@molebox molebox mentioned this pull request Nov 26, 2026
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