Conversation
Add Volume class with create, list, get_info, and destroy operations to both TypeScript and Python SDKs. Support volumeMounts in sandbox creation via generated API client. Implements volume CRUD endpoints from updated OpenAPI spec. Co-Authored-By: Claude Haiku 4.5 <[email protected]>
🦋 Changeset detectedLatest commit: 06083b0 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
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".
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
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
Introduces new storage APIs and modifies sandbox creation request/response shapes (
volumeMounts), which could impact compatibility and runtime behavior if the server/API contract differs from expectations.Overview
Adds Volumes API support to both TypeScript and Python SDKs, including CRUD plus file/dir operations (read/write, list, stat, mkdir, remove, metadata updates) backed by newly generated OpenAPI endpoints/schemas for
/volumes/*.Extends sandbox creation and sandbox info payloads to support
volumeMounts, and introduces new/updated API shapes such asSandboxLogsv2 (with deprecation notice on the old logs endpoint) and a sandbox snapshot creation endpoint.Includes SDK surface/export updates (e.g., new
VolumeErrorin JS, newVolume/AsyncVolumeexports in Python), test coverage for volume operations in JS, and codegen/tag updates plus dependency bump (msw).Written by Cursor Bugbot for commit 06083b0. This will update automatically on new commits. Configure here.