cloudflare/agents @cloudflare/shell@0.4.0
cloudflare/agents
Captured source
source ↗@cloudflare/shell@0.4.0
Repository: cloudflare/agents
Tag: @cloudflare/shell@0.4.0
Published: 2026-06-12T16:46:12Z
Prerelease: no
Release notes:
Minor Changes
- #1656 `4c2d1a7` Thanks @cjol! - Add
StateConnector— thestate.*filesystem API as a codemode connector.
stateConnector(ctx, backend) (or new StateConnector(ctx, backend)) exposes every StateBackend method (readFile, writeFile, editFile, ls, find, grep, readJson, mergeJson, …) as connector tools for @cloudflare/codemode's durable runtime. Tools take a single object argument (state.writeFile({ path, content })), which the connector maps to the backend's positional parameters; pure reads are marked replay: "reexecute" so large file contents are never stored in the durable log. The legacy provider path (createStateToolProvider/stateTools) is unchanged and also accepts object-style arguments now, and the state.* type declarations and system prompt were updated to the object-argument convention.
Patch Changes
- Updated dependencies \[`b2b6762`, `4c2d1a7`, `4c2d1a7`]:
- @cloudflare/codemode@0.4.0
Notability
notability 2.0/10routine minor version bump of shell agent tool