Skip to content

feat(cli): support VM sandbox creation and file transfers - #6

Merged
pokgak merged 2 commits into
mainfrom
feat/vm-sandbox-files
Sep 17, 2026
Merged

pokgak merged 2 commits into
mainfrom
feat/vm-sandbox-files

Conversation

@farhan-helmy

@farhan-helmy farhan-helmy commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Approved accounts can now request VM sandboxes with bxc sandbox start WORKSPACE_ID --vm --idempotency-key KEY, upload binary fixtures, and download complete results. Creation returns the receipt (including pending state); status checks readiness. Requests never automatically retry or allocate replacements.

  • Add --name and reusable creation keys, pending/expired VM status types, 8 MiB uploads, and cursor-based downloads that validate byte ranges and never overwrite local files.
  • Bound create/upload requests to 30 seconds and downloads to five minutes. Discard partial downloads on stale cursors, expiry, malformed responses, or other failures.
  • Bundle the CLI/API VM guide, update the agent skill, and prepare release 0.4.0. Add packaged VM/file smoke coverage to the Node compatibility matrix.

Validation: 36 Bun tests; typecheck, lint, build and npm pack; packaged VM creation/binary transfer smoke tests on Node 20.20.2, 22.23.2, and 24.21.0; skill validation; shell/JSON documentation checks; unpublished-version/release validation.

Live VM execution has not been tested. Beta approval and a compatible server are still required. SSH work in #4 is independent and is not included here. Landing documentation PR requires CLI 0.4.0 to be released before publication.

pokgak
pokgak previously approved these changes Sep 14, 2026
farhan-helmy and others added 2 commits September 17, 2026 04:18
Co-authored-by: Aiman Ismail <m.aimanismail@gmail.com>
Rework `bxc sandbox start` for the new public API default where an
omitted vmSandbox selects the VM runtime:

- start() gains gvisor input; vm+gvisor and vm+cpu are rejected (VM
  profile is fixed), and vmSandbox:false is sent only for gvisor while
  an omitted runtime relies on the server default
- --no-wait keeps the synchronous receipt; otherwise a pending create
  polls inspect (3s interval, 180s bound), exiting 1 on expired or
  timeout with a status hint
- --cpu now implies --gvisor so the flag stays meaningful
- docs, CHANGELOG, and skill reflect the default VM runtime, the wait
  behavior, and the fixed VM profile
- smoke script covers defaulted and explicit --vm creates end to end

Co-authored-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-01a078f3-2e16-705d-b19c-14fb386c65ad
Co-authored-by: Aiman Ismail <m.aimanismail@gmail.com>
@pokgak
pokgak force-pushed the feat/vm-sandbox-files branch from 7352b31 to 7482cff Compare September 17, 2026 04:29
@pokgak
pokgak merged commit 8012803 into main Sep 17, 2026
5 checks passed
@pokgak
pokgak deleted the feat/vm-sandbox-files branch September 17, 2026 05:28
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.

3 participants