Version Packages#1943
Merged
Merged
Conversation
github-actions
Bot
force-pushed
the
changeset-release/main
branch
9 times, most recently
from
July 21, 2026 15:44
9a3815d to
b16df08
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
July 22, 2026 15:56
b16df08 to
c18a8e8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
agents@0.18.0
Minor Changes
#1860
f5b1dd8Thanks @mattzcarey! - Group SDK-managed initialization, startup, chat interactions, turns, and durable submissions into semantic phases. Storage-heavy setup, hydration, recovery, request persistence, and response persistence each receive a named bucket, keeping inference and tool spans visible without discarding lower-level Durable Object SQLite spans. Each span records agent identity, storage phase, a stable marker for UI grouping, and operation-specific metadata. No-op on runtimes without thetracingAPI.#1860
f5b1dd8Thanks @mattzcarey! - Addagents/observability/aiwithwrapAISDKfor AI SDK v6 andcreateAISDKTelemetryfor AI SDK v7. Both project Cloudflare-nativeinvoke_agent {agent},chat {model}, andexecute_tool {tool}spans using scalar OpenTelemetry GenAI attributes, including request settings, token usage, finish reasons, tool-call IDs, model-call time to first chunk, bounded AI SDK v6 approval lifecycle spans, and conditional AI Gateway log references. Payload storage is opt-in:storeMessageswrites OTel-schema input/output message arrays tochat({ role, parts }, canonical text/reasoning/tool parts, and outputfinish_reason; oldest messages are dropped past the budget while protecting the first two), andstoreToolswrites arguments/results toexecute_tool. The flags themselves are never emitted as span attributes. Schemas, request headers, provider options, and raw errors remain excluded.Patch Changes
#1959
a3cbed1Thanks @mattzcarey! - Cache MCP JSON Schema conversion for the current catalog on each live connection, and let Think agents skip direct MCP AI-tool exposure when those tools are exposed through Code Mode or another mechanism outside Think's automatic tool set.#1963
3ce98ffThanks @mattzcarey! - Reconcile staleuseAgentChatserver-streaming state after an errored client reconnects.Reconnect probes now include correlation IDs, and
STREAM_RESUME_NONEdistinguishes globally idle agents from active continuations owned by another connection. The hook clears fallback streaming state only for a correlated idle response. Reconnect opens are retained while a prior resume or status transition settles, in-flight handshakes are retransmitted on replacement sockets, and all AI SDK resume entry points share one serialization gate.#1944
fff4131Thanks @cjol! - Make theagents/viteturndownstub fail with a diagnostic error when app code calls it directly, and document thestubTurndown: falseopt-out for applications that useturndownthemselves.#1926
6861933Thanks @mattzcarey! - Verify MCP OAuth callback state before changing a connection. Forged, expired, and replayed callbacks no longer disrupt the genuine authorization flow, andaddMcpServer()refreshes auth URLs whose embedded state has expired.#1924
c19d58aThanks @mattzcarey! - Harden MCP connection recovery: honor retry budgets for resolved connection failures, finish in-flight restore work before stable-id migration, and close connections replaced by the legacyconnect()path.#1923
33e59c4Thanks @mattzcarey! - Recover streamable HTTP connections when a server rejects a persisted session with HTTP 404. The client clears the stale session from memory and storage, initializes a new session, and rediscovers capabilities once.@cloudflare/think@0.14.0
Minor Changes
f5b1dd8Thanks @mattzcarey! - Think agents emit Cloudflare-native traces out of the box with no tracing setup beyond enabling Worker traces. Named lifecycle and storage-phase spans group Durable Object internals around startup, request persistence, turn preparation, inference, result persistence, recovery, alarms, and durable submissions. Every inference call produces aninvoke_agent {agent class}span withchat {model}andexecute_tool {tool}children. Think supplies durable identity and turn metadata. Payload storage remains off by default; agents can setstoreMessagesfor OTel-schema model messages ({ role, parts }, canonical tool parts, and outputfinish_reason) onchatandstoreToolsfor tool arguments/results onexecute_tool. These flags configure the wrapper and are never emitted as metadata or attributes. Model streams are finalized on early exit, and durable submissions run from their awaited alarm invocation so spans do not outlive invocation boundaries.Patch Changes
#1860
f5b1dd8Thanks @mattzcarey! - Group SDK-managed initialization, startup, chat interactions, turns, and durable submissions into semantic phases. Storage-heavy setup, hydration, recovery, request persistence, and response persistence each receive a named bucket, keeping inference and tool spans visible without discarding lower-level Durable Object SQLite spans. Each span records agent identity, storage phase, a stable marker for UI grouping, and operation-specific metadata. No-op on runtimes without thetracingAPI.#1959
a3cbed1Thanks @mattzcarey! - Cache MCP JSON Schema conversion for the current catalog on each live connection, and let Think agents skip direct MCP AI-tool exposure when those tools are exposed through Code Mode or another mechanism outside Think's automatic tool set.#1963
3ce98ffThanks @mattzcarey! - Reconcile staleuseAgentChatserver-streaming state after an errored client reconnects.Reconnect probes now include correlation IDs, and
STREAM_RESUME_NONEdistinguishes globally idle agents from active continuations owned by another connection. The hook clears fallback streaming state only for a correlated idle response. Reconnect opens are retained while a prior resume or status transition settles, in-flight handshakes are retransmitted on replacement sockets, and all AI SDK resume entry points share one serialization gate.#1937
ed9f42bThanks @cjol! - Forward routing props through the ThinkonStartlifecycle wrapper.#1860
f5b1dd8Thanks @mattzcarey! - Run durable submissions only from their awaited scheduled drain, preventing model work and tracing spans from outliving the short submission-acceptance invocation.#1949
32e7390Thanks @cjol! - Warn whengetSkills()makes an overriddengetSystemPrompt()fallback-only and document using Session context blocks for always-on instructions.@cloudflare/ai-chat@0.9.4
Patch Changes
#1860
f5b1dd8Thanks @mattzcarey! - Group SDK-managed initialization, startup, chat interactions, turns, and durable submissions into semantic phases. Storage-heavy setup, hydration, recovery, request persistence, and response persistence each receive a named bucket, keeping inference and tool spans visible without discarding lower-level Durable Object SQLite spans. Each span records agent identity, storage phase, a stable marker for UI grouping, and operation-specific metadata. No-op on runtimes without thetracingAPI.#1963
3ce98ffThanks @mattzcarey! - Reconcile staleuseAgentChatserver-streaming state after an errored client reconnects.Reconnect probes now include correlation IDs, and
STREAM_RESUME_NONEdistinguishes globally idle agents from active continuations owned by another connection. The hook clears fallback streaming state only for a correlated idle response. Reconnect opens are retained while a prior resume or status transition settles, in-flight handshakes are retransmitted on replacement sockets, and all AI SDK resume entry points share one serialization gate.@cloudflare/codemode@0.4.4
Patch Changes
80ad8deThanks @mattzcarey! - Add framework-neutralexecute,search, anddescribemethods to the durable Code Mode runtime handle so MCP servers and other non-AI-SDK hosts can invoke execution and discovery directly. Search and describe results now identify methods that require approval.@cloudflare/shell@0.4.2
Patch Changes
8ecdb61Thanks @mattzcarey! - fix(shell): replace LIKE pattern matching with primary-key range scans inWorkspace.rm({ recursive: true })and theglobprefilter. D1 can reject the previousLIKE ? ESCAPE ?queries withD1_ERROR: LIKE or GLOB pattern too complex: SQLITE_ERROR; the range predicate (path >= '{dir}/' AND path < '{dir}0') avoids that limit, scans thepathindex directly, and needs no escaping of%/_in path names.@cloudflare/voice@0.3.5
Patch Changes
219d59bThanks @cjol! - Add AssemblyAI and ElevenLabs streaming STT providers for the voice pipeline.@cloudflare/worker-bundler@0.2.2
Patch Changes
365ced3Thanks @agent-think! - fix: eliminate polynomial-time ReDoS in import/export matching. TheimportExportRegexinrewriteImportsand the regex fallback inparseImportsmatched the import clause with[\w*{}\s,]+followed by\s+, letting both quantifiers consume the same whitespace and backtrack catastrophically on near-match inputs (import+ 10k spaces took ~175s). Clauses are now matched as non-whitespace tokens separated by whitespace and bounded at the next import/export keyword, eliminating both overlapping backtracking and repeated suffix scans while preserving valid imports.@cloudflare/agent-think@0.0.2
Patch Changes
f5b1dd8,f5b1dd8,a3cbed1,3ce98ff,ed9f42b,fff4131,6861933,c19d58a,33e59c4,f5b1dd8,f5b1dd8,32e7390]:@cloudflare/voice-assemblyai@0.0.2
Patch Changes
219d59bThanks @cjol! - Add AssemblyAI and ElevenLabs streaming STT providers for the voice pipeline.@cloudflare/voice-elevenlabs@0.0.2
Patch Changes
219d59bThanks @cjol! - Add AssemblyAI and ElevenLabs streaming STT providers for the voice pipeline.