Skip to content

Version Packages#1572

Merged
threepointone merged 1 commit into
mainfrom
changeset-release/main
May 21, 2026
Merged

Version Packages#1572
threepointone merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented May 21, 2026

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.13.2

Patch Changes

  • #1570 4f14b9c Thanks @threepointone! - Add agents/chat-sdk, a Chat SDK StateAdapter backed by Agents sub-agents.

    This new package entrypoint exports:

    • createChatSdkState(), a convenience factory for Chat SDK state.
    • ChatSdkStateAdapter, the concrete adapter implementation.
    • ChatSdkStateAgent, the default sub-agent used for durable Chat SDK state.
    • defaultThreadShard() and defaultKeyShard(), the default sharding helpers used by the adapter.

    The adapter stores Chat SDK subscriptions, concurrency locks, pending queues, generic cache entries, callback metadata, thread and channel state, persisted message history, and transcript lists in Durable Object SQLite. State is sharded through parent.subAgent() so a messenger ingress Agent can keep Chat SDK infrastructure state inside child facets instead of requiring a separate top-level Durable Object binding for every state shard.

    createChatSdkState() now works with the default ChatSdkStateAgent class when it is re-exported from the Worker entrypoint. It also defaults parent from getCurrentAgent() when called inside an Agent lifecycle method or request handler, so the common setup is:

    export { ChatSdkStateAgent } from "agents/chat-sdk";
    
    const chat = new Chat({
      adapters,
      state: createChatSdkState(),
    });

    Applications that need custom state behavior can still pass a custom agent subclass and explicit parent.

    This also documents the sub-agent configuration model more clearly: production Workers should export facet classes, but facet-only child classes do not belong in new_sqlite_classes unless they are also used as top-level Durable Objects. Test wrangler configs may still include facet classes as test-only Durable Object bindings for @cloudflare/vitest-pool-workers compatibility, while keeping them out of new_sqlite_classes.

@cloudflare/think@0.7.2

Patch Changes

  • #1570 4f14b9c Thanks @threepointone! - Broadcast message updates from programmatic Think.chat() turns and clearMessages() so connected useAgentChat clients stay in sync without reconnecting.

Open in Devin Review

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@threepointone threepointone merged commit 5beeeb4 into main May 21, 2026
@threepointone threepointone deleted the changeset-release/main branch May 21, 2026 09:37
threepointone pushed a commit that referenced this pull request May 21, 2026
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

1 participant