feat: daytona - #20
Open
echarles wants to merge 3 commits into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
This PR introduces a new daytona sandbox variant (DaytonaSandbox) that runs code inside Daytona cloud sandboxes via a stateful interpreter (preserving Python state across calls), and wires it through the library鈥檚 provider/manager/CLI layers with corresponding docs and examples.
Changes:
- Add
DaytonaSandboximplementation (stateful interpreter execution, contexts, network/resources mapping, filesystem integration). - Add Daytona management support (
get_manager("daytona")CRUD) and provider registration, plus CLI support. - Add extensive unit tests and update docs/examples/README/changelog to document and demonstrate the new variant.
Reviewed changes
Copilot reviewed 25 out of 25 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/test_manage.py | Extends manageable-variants test to include daytona. |
| tests/test_daytona.py | Adds comprehensive Daytona variant unit tests (interpreter behavior, config mapping, manager/provider registration). |
| README.md | Adds daytona to canonical variant list. |
| pyproject.toml | Adds optional dependency extra daytona and includes it in all. |
| examples/repl/Makefile | Adds Daytona REPL targets (CPU/GPU). |
| examples/repl/daytona_sandbox_example.py | New interactive REPL example for Daytona. |
| examples/README.md | Documents running the Daytona examples. |
| examples/exec/Makefile | Adds Daytona exec targets (CPU/GPU). |
| examples/exec/daytona_sandbox_example.py | New one-shot execution example for Daytona (state persistence, files, GPU probe, error path). |
| docs/docs/sandboxes/index.mdx | Adds Daytona to sandbox variant list and table. |
| docs/docs/sandboxes/daytona.mdx | New Daytona variant documentation page. |
| docs/docs/sandboxes/datalayer.mdx | Shifts sidebar position to make room for Daytona. |
| docs/docs/installation/index.mdx | Documents installing code-sandboxes[daytona] and Daytona env vars. |
| docs/docs/index.mdx | Adds Daytona to the main variants overview table. |
| docs/docs/examples/index.mdx | Adds Daytona example section and make daytona instructions. |
| docs/docs/cli/management.mdx | Documents Daytona manager usage and variant list output. |
| docs/docs/cli/index.mdx | Adds Daytona to CLI supported variants and GPU help text. |
| code_sandboxes/providers.py | Registers a Daytona provider with requirements and environments. |
| code_sandboxes/models.py | Adds SandboxVariant.DAYTONA. |
| code_sandboxes/manage.py | Implements DaytonaSandboxManager and registers it in manager lookup. |
| code_sandboxes/daytona_sandbox.py | New DaytonaSandbox implementation (interpreter-based execution, contexts, resource/network mapping, filesystem optimization). |
| code_sandboxes/cli.py | Adds daytona to supported variants and GPU passthrough. |
| code_sandboxes/base.py | Adds daytona to Sandbox.create() and Sandbox.list_environments() dispatch. |
| code_sandboxes/init.py | Exposes DaytonaSandbox in package exports/docs. |
| CHANGELOG.md | Documents the new daytona variant and manager support. |
馃挕 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.
No description provided.