feat: add Superserve sandbox backend#1
Draft
meAmitPatil wants to merge 5 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Superserve-backed (https://superserve.ai) sandbox client and session under
agents.extensions.sandbox.superserve, alongside the existing E2B / Modal / Daytona / Vercel / Cloudflare / Blaxel / Runloop backends.The client wraps
superserve.AsyncSandboxand implements the fullBaseSandboxClient/BaseSandboxSessioncontract: manifest materialization viaFiles.write, exec viaCommands.run(sync and streaming), pause-on-exit shutdown, resume by sandbox id, and a tar-over-exec workspace round-trip forpersist_workspace/hydrate_workspace. Adds thesuperserveextra inpyproject.toml, conditional re-exports underagents.extensions.sandbox, 21 unit tests, an example runner with a pause/resume snapshot pre-flight, and a README section underexamples/sandbox/extensions/.PTY, cloud bucket mounts, and exposed ports are not surfaced in this PR —
supports_pty()returnsFalse, no mount strategy is exported, and_resolve_exposed_portraisesExposedPortUnavailableError. They will follow once the underlying backend exposes them.