Open
Conversation
d020d86 to
8120d00
Compare
8120d00 to
25c3b3d
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.10.1
Patch Changes
#1278
8c7caabThanks @threepointone! - Think now owns the inference loop with lifecycle hooks at every stage.Breaking:
onChatMessage(),assembleContext(), andgetMaxSteps()are removed. Use lifecycle hooks and themaxStepsproperty instead. If you need full custom inference, extendAgentdirectly.New lifecycle hooks:
beforeTurn,beforeToolCall,afterToolCall,onStepFinish,onChunk— fire on every turn from all entry paths (WebSocket,chat(),saveMessages, auto-continuation).beforeTurn(ctx)receives the assembled system prompt, messages, tools, and model. Return aTurnConfigto override any part — model, system prompt, messages, tools, activeTools, toolChoice, maxSteps, providerOptions.maxStepsis now a property (default 10) instead of a method. Override per-turn viaTurnConfig.maxSteps.MCP tools auto-merged — no need to manually merge
this.mcp.getAITools()ingetTools().Dynamic context blocks:
Session.addContext()andSession.removeContext()allow adding/removing context blocks after session initialization (e.g., from extensions).Extension manifest expanded with
context(namespaced context block declarations) andhooksfields.@cloudflare/ai-chat@0.4.1
Patch Changes
22da9b1Thanks @threepointone! - WidenuseAgentChatagent prop type to accept both typed and untypeduseAgentconnections. Previously,useAgent<MyAgent>()results could not be passed touseAgentChatdue to incompatiblecalltypes. The agent prop now uses a structural type matching only the fieldsuseAgentChatactually uses.@cloudflare/think@0.2.1
Patch Changes
#1275
37b2ce3Thanks @threepointone! - Add built-in workspace to Think. Every Think instance now hasthis.workspacebacked by the DO's SQLite storage, and workspace tools (read, write, edit, list, find, grep, delete) are automatically merged into every chat turn. Overrideworkspaceto add R2 spillover for large files.@cloudflare/shellis now a required peer dependency.#1278
8c7caabThanks @threepointone! - Think now owns the inference loop with lifecycle hooks at every stage.Breaking:
onChatMessage(),assembleContext(), andgetMaxSteps()are removed. Use lifecycle hooks and themaxStepsproperty instead. If you need full custom inference, extendAgentdirectly.New lifecycle hooks:
beforeTurn,beforeToolCall,afterToolCall,onStepFinish,onChunk— fire on every turn from all entry paths (WebSocket,chat(),saveMessages, auto-continuation).beforeTurn(ctx)receives the assembled system prompt, messages, tools, and model. Return aTurnConfigto override any part — model, system prompt, messages, tools, activeTools, toolChoice, maxSteps, providerOptions.maxStepsis now a property (default 10) instead of a method. Override per-turn viaTurnConfig.maxSteps.MCP tools auto-merged — no need to manually merge
this.mcp.getAITools()ingetTools().Dynamic context blocks:
Session.addContext()andSession.removeContext()allow adding/removing context blocks after session initialization (e.g., from extensions).Extension manifest expanded with
context(namespaced context block declarations) andhooksfields.