Skip to content

Refactor runtime execution for JavaScript backend - #27

Merged
aron-cf merged 2 commits into
mainfrom
workspace-runtime-execution
Jul 31, 2026
Merged

Refactor runtime execution for JavaScript backend#27
aron-cf merged 2 commits into
mainfrom
workspace-runtime-execution

Conversation

@scuffi

@scuffi scuffi commented Jul 31, 2026

Copy link
Copy Markdown

Summary

  • replace the public workspace.shell execution surface with workspace.runtime
  • route command execution through container-shell and isolate-shell backends
  • add the isolate-javascript backend with durable modules, filesystem capabilities, lifecycle controls, and RPC projection
  • preserve Think and local/remote client compatibility

Scope

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

  1. Refactor runtime execution for JavaScript backend #27 — runtime API and isolated JavaScript backend
  2. Add external Codemode runtime adapter example #28 — external Codemode adapter and example

Comment thread packages/computer/src/backends/javascript/module-graph.ts Fixed
Comment thread packages/computer/src/backends/javascript/module-graph.ts Fixed
@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@27

commit: bcab35d

aron-cf added 2 commits July 31, 2026 12:01
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
aron-cf force-pushed the workspace-runtime-execution branch from 929e1d2 to 6f9fb50 Compare July 31, 2026 12:07
@aron-cf aron-cf changed the title Implement isolated javascript execution backend Refactor runtime execution for JavaScript backend Jul 31, 2026
@aron-cf
aron-cf marked this pull request as ready for review July 31, 2026 14:18
@aron-cf
aron-cf merged commit f1cf132 into main Jul 31, 2026
20 checks passed
@aron-cf
aron-cf deleted the workspace-runtime-execution branch July 31, 2026 14:19
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.

3 participants