Refactor runtime execution for JavaScript backend - #27
Merged
Conversation
commit: |
scuffi
force-pushed
the
workspace-runtime-execution
branch
from
July 31, 2026 11:10
56d1d60 to
929e1d2
Compare
Replace the public shell execution surface with workspace.runtime and route command execution through stable backend IDs. The existing container and worker command backends keep the push/pull bracket while sharing one client, stub, and observation path. Document the runtime surface and update the examples to call workspace.runtime instead of workspace.shell.
Add a module backend that runs ECMAScript sources in Dynamic Workers with structured input, retained execution events, durable filesystem access, and host-owned git and artifact capabilities. Expose the backend on its own package subpath and cover it with unit and workerd integration tests.
aron-cf
force-pushed
the
workspace-runtime-execution
branch
from
July 31, 2026 12:07
929e1d2 to
6f9fb50
Compare
aron-cf
marked this pull request as ready for review
July 31, 2026 14:18
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.
Summary
workspace.shellexecution surface withworkspace.runtimecontainer-shellandisolate-shellbackendsisolate-javascriptbackend with durable modules, filesystem capabilities, lifecycle controls, and RPC projectionScope
This PR contains the runtime API and isolated backend only. The external Codemode adapter and example are stacked separately in #28. Existing release workflows, Docker policy, package publication, and unrelated example CI are unchanged.
Stack