Skip to content

Add isolate backend - #30

Merged
aron-cf merged 1 commit into
workspace-runtime-executionfrom
workspace-javascript-backend
Jul 31, 2026
Merged

Add isolate backend#30
aron-cf merged 1 commit into
workspace-runtime-executionfrom
workspace-javascript-backend

Conversation

@aron-cf

@aron-cf aron-cf commented Jul 31, 2026

Copy link
Copy Markdown
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.
@aron-cf
aron-cf changed the base branch from main to workspace-runtime-execution July 31, 2026 12:08
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")}
@pkg-pr-new

pkg-pr-new Bot commented Jul 31, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/cloudflare/computer/@cloudflare/computer@30

commit: bcab35d

@aron-cf
aron-cf merged commit bcab35d into main Jul 31, 2026
11 checks passed
@aron-cf
aron-cf deleted the workspace-javascript-backend branch July 31, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants