Repository navigation
feat(sandbox-adapter): add Freestyle provider - #356
Merged
Merged
Conversation
|
This PR was not deployed automatically as @eersnington does not have access to the Railway project. In order to get automatic PR deploys, please add @eersnington to your workspace on Railway. |
Add @rivet-dev/sandbox-adapter/freestyle. Each Actor gets one Freestyle VM, paused while the Actor sleeps and deleted when it is destroyed. Commands run through a Python bridge in a PTY session, so output streams and abort and timeout kill the command's process group.
eersnington
force-pushed
the
feat/sandbox-adapter-freestyle
branch
from
October 14, 2026 00:57
1e36cbd to
ca6042a
Compare
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 Freestyle sandbox provider at
@rivet-dev/sandbox-adapter/freestyle. Ironworks keeps its own copy of this provider; it can import this one after the release.Lifecycle
vms.create(create).createcan be a function of the Actor context.vm.start()if the VM is not running. A missing VM returnsundefined, so a new one is created.vm.pause()vms.delete()Commands
vm.execcannot stream output or stop a command.execopens a PTY session that runs a Python bridge:The VM image must include Python 3.
freestyle/ubuntu*snapshots do.Changes from the Ironworks copy
timeoutMs: 0times out at once0means no timeout, asSandboxExecOptionsdocumentsnew Freestyle()runs when the provider is defineddaytonaProvidercwdcwddefaults to/workspace, so Pi builds tools before the VM connectsclienttakesFreestyleOptionsclienttakes aFreestyleinstance, likedaytonaProviderPackage and docs
freestyle@^0.2.16is an optional peer dependency.scripts/test-packed.mjschecks thatdist/freestyle.jsis packed.examples/docs/sandboxes/freestyle.ts.