Add isolate backend - #30
Merged
aron-cf merged 1 commit intoJul 31, 2026
Merged
Conversation
aron-cf
commented
Jul 31, 2026
Contributor
- computer: forward exec id and timeoutMs across the stub
- computer: close the exec span when a remote caller kills
- computer: let a Worker reattach to a running command
- computer: release the event stream when a handle is dropped
- computer: keep kill out of a span someone else is closing
- computer, docs: Route execution through runtime
- computer, docs: Add isolate JavaScript backend
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.
| function proxyModule(capabilitiesImport: string, namespace: string, methods: string[]) { | ||
| return ` | ||
| import { call } from ${JSON.stringify(capabilitiesImport)}; | ||
| ${methods.map((method) => `export const ${method} = (...args) => call(${JSON.stringify(namespace)}, ${JSON.stringify(method)}, args);`).join("\n")} |
| function proxyModule(capabilitiesImport: string, namespace: string, methods: string[]) { | ||
| return ` | ||
| import { call } from ${JSON.stringify(capabilitiesImport)}; | ||
| ${methods.map((method) => `export const ${method} = (...args) => call(${JSON.stringify(namespace)}, ${JSON.stringify(method)}, args);`).join("\n")} |
commit: |
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.