npm / @cloudflare/computer
@cloudflare/computer
What changed in @cloudflare/computer 0.9 to 0.10, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-11.
10 breaking7 new APIs and options4 behavior and defaults1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@cloudflare/computer 0.1020 changes
Breaking changes 9
A backend without an explicit id now registers as
codemode; saved runs under the old default id are not resumed or returned by pending or getExec.Replaces
WorkerJavaScriptBackendand is imported from@cloudflare/computer/backends/codemode.Replaces the
WorkerJavaScriptBackendOptionstype.Tool-set exec options now use an object containing
backends,output, andmetadata; the old backend map andexecOutputshape is replaced.To disable the exec tool, configure
exec: { backends: {} }; an emptyexecobject now throws.The old backend name has no alias; update imports and construction to
CodemodeBackend.Traces now record the backend type as
codemode, regardless of its id.Now requires
execution: { id, metadata }, so code constructing host call contexts by hand must provide it.Now requires
metadata, so code constructing pending calls by hand must provide it.
New APIs and options 7
Adds values to
ctxonce per connection or run scope, and disposes them when that scope ends.Host module calls receive the run's id and metadata in
context.execution.Creates the experimental
codemode:browserhost module, letting isolate JavaScript drive an agents' Browser through the same browser functions asbrowserTool.Creates experimental host modules whose functions return objects with journaled methods and run-scoped context that can persist across pauses and restarts.
The exec tool can set metadata for each run through its
execoptions.Accepts string-record metadata for a run; host modules can read it through
context.executionwhile the run's code cannot.Lists run metadata with each waiting call.
Behavior and default changes 3
A host module call can return more than 4,096 values if the response fits the backend's byte limits.
Codemode modules can also take callbacks and return streams and live stubs in runs that do not replay.
Codemode modules can take and return Date, bigint, byte and typed arrays, Headers, and errors with their names and properties.
Fixes and other changes 1
Stops double-encoding non-ASCII bytes written by redirected byte-oriented commands.
@cloudflare/computer 0.92 changes
Breaking changes 1
Host and source modules for WorkerJavaScriptBackend that used the ws: prefix now use codemode: instead.
Behavior and default changes 1
Custom modules now support exporting objects as well as functions.