feat: add Volume CRUD operations to SDKs#1126
Conversation
🦋 Changeset detectedLatest commit: fbe8d16 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
@djeebus no need to review, it's a draft |
019d887 to
e11378c
Compare
Package ArtifactsBuilt from a045db3. Download artifacts from this workflow run. JS SDK ( npm install ./e2b-2.16.1-mishushakov-volume-crud-sdk.0.tgzCLI ( npm install ./e2b-cli-2.9.1-mishushakov-volume-crud-sdk.0.tgzPython SDK ( pip install ./e2b-2.17.0+mishushakov.volume.crud.sdk-py3-none-any.whl |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8ae99f53cf
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Simplify handle_api_exception usage in read_file (both sync and async) to use direct `raise` instead of storing in a variable and checking. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Update Python SDK tests to match current API URL defaults
(api.{domain} instead of volumecontent.{domain}, localhost:8080
instead of localhost:3000 for debug mode).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
caabe40 to
fbe8d16
Compare
PR SummaryMedium Risk Overview Extends sandbox creation/listing in both JS and Python to accept/return Written by Cursor Bugbot for commit fbe8d16. This will update automatically on new commits. Configure here. |
Summary
Add Volume CRUD operations to both TypeScript and Python SDKs. Volumes are persistent storage that can be mounted to sandboxes. Includes create, list, get_info, and destroy methods. Sandbox creation now supports volumeMounts parameter.
Usage Examples
TypeScript
Python (async)
Python (sync)
Testing
Note
Medium Risk
Adds new volume-management and volume-content APIs plus sandbox
volumeMounts/volume_mountswiring, which introduces new network calls and token handling paths. Risk is moderate due to the size of generated client changes and expanded surface area, but it’s largely additive.Overview
Adds Volumes support across the TypeScript and Python SDKs, including new
Volume/AsyncVolumeAPIs for creating, listing, fetching, and destroying volumes, plus volume content operations (dir listing, metadata updates, upload/download, and delete) via a dedicated volume-content OpenAPI client.Extends sandbox creation options to accept
volumeMounts(JS) /volume_mounts(Python) and plumbs these through to the sandbox create request and returnedSandboxInfo. Also updates generated API schemas (new/volumesendpoints; log query now supportslevel/search) and adds SDK tests/fixtures for volume behavior, along with codegen script updates and a changeset for minor version bumps.Written by Cursor Bugbot for commit caabe40. This will update automatically on new commits. Configure here.