@cloudflare/computer
0.6.0 · 20 Oct 2026MIT159.2k / weekRepositoryHomepagenpmAtom feed
Latest releases
- 0.6.x · latest line
0.6.0
20 Oct 2026- deprecated
Workspace, its filesystem, the worker-javascript backend, mounts, agent tools, Git, Assets, and Artifacts are now stable;LegacyContainerBackendis deprecated in favor ofContainerBackend; the container and worker-shell backends,ws:container, sync, andcomputerdstay experimental. getWorkspace()now returns a lazy client immediately which resolves on the first call.useThinkand the Think compatibility methods are removed;@cloudflare/think0.21 and later take aWorkspaceas it is.WorkerJavaScriptBackendkeeps its Durable Object alive while executions run, and adds amaxCpuMsoption.
Minor Changes
getWorkspace()now returns a lazy client immediately which resolves on the first call.useThinkand the Think compatibility methods are removed;@cloudflare/think0.21 and later take aWorkspaceas it is.WorkerJavaScriptBackendkeeps its Durable Object alive while executions run, and adds amaxCpuMsoption.just-bashis now an optional peer dependency and should be installed manually when using@cloudflare/computer/backends/worker-shell.
Patch Changes
getWorkspace()accepts any Durable Object stub whose class has__getWorkspaceStub(), without a cast.WorkspaceProxyandWorkspaceServiceProxywake their host Durable Object by name, soctx.id.namesurvives a wake caused by a container or Dynamic Worker callback.WorkspaceRef,WorkspaceProxyPropsandWorkspaceServiceProxyPropsaccept an optionalname, filled in fromctx.id.namewhen the backend runs in the host object itself.- deprecated
Workspace, its filesystem, the worker-javascript backend, mounts, agent tools, Git, Assets, and Artifacts are now stable;LegacyContainerBackendis deprecated in favor ofContainerBackend; the container and worker-shell backends,ws:container, sync, andcomputerdstay experimental.
- 0.5.x · maintenance
0.5.1
13 Oct 2026Add
forAISDKTools()in@cloudflare/computer/tools/ai-sdkto serve an AI SDK tool set to isolate JavaScript asws:tools; seews:toolsdocumentation.The
edittool bounds its diff withmaxDiffLinesandmaxDiffBytesand reportsdiffTruncated; seeedittool documentation.Fix issue when creating a host module with no functions in the JavaScriptWorkerBackend; see host module documentation.
Patch Changes
Add
forAISDKTools()in@cloudflare/computer/tools/ai-sdkto serve an AI SDK tool set to isolate JavaScript asws:tools; seews:toolsdocumentation.The
edittool bounds its diff withmaxDiffLinesandmaxDiffBytesand reportsdiffTruncated; seeedittool documentation.Fix issue when creating a host module with no functions in the JavaScriptWorkerBackend; see host module documentation.
The
exectool'sinputis an object rather than any JSON value; seeexectool documentation.The
exectool parses aninputobject sent as a string of JSON; seeexectool documentation.Tool sets take
execOutput: { maxLines, maxBytes }for theexectool's output limits; see tool option documentation.Host module factories receive the Workspace's assets client as
host.assets; see host module documentation.WorkerJavaScriptBackendnow lazily reads each host module's description; see module documentation.Mounts can now declare a
versionto support schema migrations; see mount version documentation.createPiToolsresults carry each tool's own output asdetails; see pi documentation.Add
ws:toolsto provide the JavaScript worker backend programmatic access to tools; seews:toolsdocumentation.The
greptool'sincludeandexclude, and thefindtool'sexclude, take one glob or a list; seegreptool documentation.Add
@cloudflare/computer/tools/core, which exportsdefineExecwithout an agent library; see tool documentation.Tool sets take
rootto confine the file tools to one directory; see root documentation.Add
WorkerBundle, a read-only mount that copies files from the deployed bundle or an imported file tree; see mount documentation.Add
@cloudflare/computer/vitewith acomputerBundle()plugin that bundles a directory into a Vite-built worker forWorkerBundle; see mount documentation.ws:artifactsaddscreateTokenandsharefor minting git tokens and clone URLs; seews:artifactsdocumentation.Add
ws:assetsso isolate JavaScript can publish a Workspace file to a time-limited URL; seews:assetsdocumentation.createContainerModule({ maxOutputLines })limits eachws:containerstream by lines as well as bytes; seews:containerdocumentation.createContainerModule({ prelude })runs shell text such asset -o pipefailbefore eachws:containercommand; seews:containerdocumentation.ws:containernow keeps the end of each stream for a Workspace withoutput: false; seews:containerdocumentation.ws:toolslists the tools code can import in its description; seews:toolsdocumentation.
0.5.0
9 Oct 2026createAIToolsmoves to@cloudflare/computer/tools/ai-sdk; see tool wiring documentation.The
execoption (nowExecBackendOptions) has been refactored to useruntime.backends(); see tool option documentation.The
exectool shows the lastmaxLines(2000) lines ormaxBytesof each stream with a pointer to the full output on disk; seeexectool documentation.
Minor Changes
createAIToolsmoves to@cloudflare/computer/tools/ai-sdk; see tool wiring documentation.The
execoption (nowExecBackendOptions) has been refactored to useruntime.backends(); see tool option documentation.The
exectool shows the lastmaxLines(2000) lines ormaxBytesof each stream with a pointer to the full output on disk; seeexectool documentation.ws:gitandws:artifactsare no longer installed by default: addcreateGitModule()andcreateArtifactsModule(); seews:gitdocumentation.Remove
WorkerJavaScriptBackend'smaxConcurrentExecutionsoption, leaving the platform's own limit on concurrent Dynamic Workers; see execution limit documentation.Consolidate
trustedModuleswithmodulesinWorkerJavaScriptBackend; see module documentation.runtime.execresults keep only the last 2000 lines or 64 KiB of each stream and save the full output to a Workspace file, configured withnew Workspace({ output })or turned off withoutput: false; see long output documentation.Fix an issue in
JavaScriptWorkerBackendwhere a source module could import a Workspace file; see source module documentation.
Patch Changes
JavaScriptWorkerBackend now supports absolute imports e.g.
/workspace/lib/util.js; see import documentation.Improve
WorkerShellBackendandContainerBackendtool descriptions including egress information; seeexectool documentation.Add
runtime.backends()toWorkspaceClientallowing tools to be created from workspace stubs; see tool wiring documentation.The
exectool now tells the model to put module code in anexport default async function (input)shape.The
exectool only documentsbackendandinputwhen needed; seeexectool documentation.A cyclic argument to a
node:fsor host module call fails with a "must be acyclic" error; see execution limit documentation.Isolate JavaScript modules now need a default export, and fail before running without one.
Isolate JavaScript code can now import Node.js built-ins such as
node:path,node:crypto, andnode:zlib.The JavaScript backend now creates its root directory (
/workspace) if the Workspace doesn't have one.The JavaScriptWorkerBackend now strips non-serializable return values matching JSON.stringify(); see isolate JavaScript documentation.
Isolate JavaScript runs now fail on I/O at module scope or an unhandled rejection, instead of completing silently, with no output.
JavaScriptWorkerBackendnow uses native RPC formodulesbindings; see execution limit documentation.Imports of
ws:*and other configured modules work whencompatibilityFlagsincludesnew_module_registry; see module documentation.Tools built from a remote
getWorkspace()client of a Workspace without an assets publisher no longer offer apublishtool; see tool wiring documentation.Add
workspace.runtime.backends(), which lists each backend's id, protocol, whether it is callable, and its description for a model, including the modules aWorkerJavaScriptBackendcan import; see backend routing documentation.Each
JavaScriptWorkerBackendnow only stores each module once, so a large bundle counts once; see module documentation.A DO's
ctx.storagecan now be passed to a Workspace without casting.Workspace filesystem errors no longer repeat the path.
Add
ws:containerso isolate JavaScript can run shell commands in the Workspace'sContainerBackend; seews:containerdocumentation.ws:git'scliaccepts a leading-C <path>as its working directory; seews:gitdocumentation.
- 0.4.x · maintenance
0.4.1
5 Oct 2026Add
ignoretoContainerBackend: glob patterns, such as**/node_modulesand!/vendor/node_modules, for paths the container keeps on its own disk instead of syncing.
0.4.0
2 Oct 2026Rename the platform-scheduled container backend to
LegacyContainerBackend; see container backend documentation.Add Workspace tool sets for pi (
createPiToolsfrom@cloudflare/computer/tools/pi-ai) and TanStack AI (createTanStackToolsfrom@cloudflare/computer/tools/tanstack-ai); see the tool interface docs.Keep configured paths local to the container instead of syncing them with the Durable Object using
ContainerBackend.ignore; see local-only path documentation.
Minor Changes
Rename the platform-scheduled container backend to
LegacyContainerBackend; see container backend documentation.Add Workspace tool sets for pi (
createPiToolsfrom@cloudflare/computer/tools/pi-ai) and TanStack AI (createTanStackToolsfrom@cloudflare/computer/tools/tanstack-ai); see the tool interface docs.
Patch Changes
Keep configured paths local to the container instead of syncing them with the Durable Object using
ContainerBackend.ignore; see local-only path documentation.Add
ContainerBackendfor durable-object-scheduled containers; see container backend documentation.Expand
ws:gitwith full-history clones by default and additionalcat-file,log, and command-specifichelpoptions; see Git interface documentation.
Dependency tracking · free for 3 projects
Know when your own dependencies move
@cloudflare/computer published 13 releases in the last 12 months. Inlinr folds the routine ones into a line and keeps the few that need you.
Advisories reach you
An email when a critical or high advisory affects a project, before the next install.
Upgrades checked first
Peer ranges, Node, ESM-only and types changes read before you bump.
Only what matters
Majors and breaking notes stay; patches and sibling bumps fold into one line.
Registry facts last checked 22 Oct 2026. Releases and advisories last read 22 Oct 2026.