ci: Version Packages#670
Open
github-actions[bot] wants to merge 1 commit into
Open
Conversation
dcf7204 to
a5c7e8e
Compare
a5c7e8e to
f23c052
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
@tanstack/ai@0.24.0
Minor Changes
#666
c1ae8b9- feat: support multimodal (image) tool resultsTools may now return an
Array<ContentPart>(e.g. a text part plus an image part) and have it transmitted to the model as structured multimodal tool output instead of aJSON.stringify'd blob. This unblocks use cases like returning a screenshot from a tool so the model can see it (issue #363).ContentPartis passed through unchanged; strings and all other return values are serialized exactly as before, so there are no breaking changes.function_call_output.output,tool_resultcontent blocks, andfunctionResponse.partsrespectively). Providers on the Chat Completions path (Groq, Ollama, Grok, OpenRouter chat) fall back to stringifying, which their APIs require.TOOL_CALL_RESULT.content,TOOL_CALL_END.result) remain string-only per the spec; the multimodal array travels on the tool message itself.#673
a452ae8- Populate AG-UIrawEventonRUN_ERRORevents with the provider's structured error body.Previously, when a streaming chat call failed the
RUN_ERRORevent carried only anopaque
{ message, code }headline (e.g."Provider returned error"), and no adapterpopulated AG-UI's purpose-built
rawEventfield — so the upstream provider detail wasunrecoverable.
Adapters now forward the provider's structured error body (e.g. an SDK
APIError'sparsed
.errorresponse body, or OpenRouter's mid-streamchunk.error) asrawEventon the
RUN_ERRORevent. The newtoRunErrorRawEventhelper extracts only knownprovider-body fields — never the raw SDK exception object, which can carry request
metadata such as auth headers. The
{ message, code }contract oftoRunErrorPayloadis unchanged.
The error surfaced to consumers via the
ChatClient/useChaterror(and theonErrorcallback) now also carriescodeandrawEventwhen present, so the upstreamcause is recoverable in application code.
#628
8036b50- Add typed runtime context for tools and middleware.Tools and middleware can now declare the runtime context shape they require, and
chat(),ChatClient, and the frameworkuseChat/createChathooks inferthe merged requirement and type-check the
contextoption you pass against it.Runtime context is request-local application state for tool and middleware
implementations (authenticated users, database clients, tenancy, feature flags,
loggers, browser services). It is never sent to the model and is distinct from
the AG-UI
RunAgentInput.contextprotocol field.Untyped tools and middleware continue to receive
unknowncontext and do notforce a
contextoption. Client tools receive client-local context viaChatClient/useChat; useforwardedPropsto hand serializable client datato the server and map it into server context explicitly. See the new Runtime
Context guide for details.
Behavior change: tool output validation now also runs when a tool returns
undefinedornull. Previously these values bypassedoutputSchemavalidation entirely; now the schema decides whether they are valid, so a tool
whose schema forbids
undefined/nullsurfaces a validation error(
output-error) instead of silently passing. Tools whose schema permitsnull/undefined(e.g. nullable or void outputs) are unaffected.Patch Changes
@tanstack/ai-anthropic@0.12.0
Minor Changes
#666
c1ae8b9- feat: support multimodal (image) tool resultsTools may now return an
Array<ContentPart>(e.g. a text part plus an image part) and have it transmitted to the model as structured multimodal tool output instead of aJSON.stringify'd blob. This unblocks use cases like returning a screenshot from a tool so the model can see it (issue #363).ContentPartis passed through unchanged; strings and all other return values are serialized exactly as before, so there are no breaking changes.function_call_output.output,tool_resultcontent blocks, andfunctionResponse.partsrespectively). Providers on the Chat Completions path (Groq, Ollama, Grok, OpenRouter chat) fall back to stringifying, which their APIs require.TOOL_CALL_RESULT.content,TOOL_CALL_END.result) remain string-only per the spec; the multimodal array travels on the tool message itself.#673
a452ae8- Populate AG-UIrawEventonRUN_ERRORevents with the provider's structured error body.Previously, when a streaming chat call failed the
RUN_ERRORevent carried only anopaque
{ message, code }headline (e.g."Provider returned error"), and no adapterpopulated AG-UI's purpose-built
rawEventfield — so the upstream provider detail wasunrecoverable.
Adapters now forward the provider's structured error body (e.g. an SDK
APIError'sparsed
.errorresponse body, or OpenRouter's mid-streamchunk.error) asrawEventon the
RUN_ERRORevent. The newtoRunErrorRawEventhelper extracts only knownprovider-body fields — never the raw SDK exception object, which can carry request
metadata such as auth headers. The
{ message, code }contract oftoRunErrorPayloadis unchanged.
The error surfaced to consumers via the
ChatClient/useChaterror(and theonErrorcallback) now also carriescodeandrawEventwhen present, so the upstreamcause is recoverable in application code.
Patch Changes
c1ae8b9,a452ae8,8036b50]:@tanstack/ai-client@0.15.0
Minor Changes
#666
c1ae8b9- feat: support multimodal (image) tool resultsTools may now return an
Array<ContentPart>(e.g. a text part plus an image part) and have it transmitted to the model as structured multimodal tool output instead of aJSON.stringify'd blob. This unblocks use cases like returning a screenshot from a tool so the model can see it (issue #363).ContentPartis passed through unchanged; strings and all other return values are serialized exactly as before, so there are no breaking changes.function_call_output.output,tool_resultcontent blocks, andfunctionResponse.partsrespectively). Providers on the Chat Completions path (Groq, Ollama, Grok, OpenRouter chat) fall back to stringifying, which their APIs require.TOOL_CALL_RESULT.content,TOOL_CALL_END.result) remain string-only per the spec; the multimodal array travels on the tool message itself.#628
8036b50- Add typed runtime context for tools and middleware.Tools and middleware can now declare the runtime context shape they require, and
chat(),ChatClient, and the frameworkuseChat/createChathooks inferthe merged requirement and type-check the
contextoption you pass against it.Runtime context is request-local application state for tool and middleware
implementations (authenticated users, database clients, tenancy, feature flags,
loggers, browser services). It is never sent to the model and is distinct from
the AG-UI
RunAgentInput.contextprotocol field.Untyped tools and middleware continue to receive
unknowncontext and do notforce a
contextoption. Client tools receive client-local context viaChatClient/useChat; useforwardedPropsto hand serializable client datato the server and map it into server context explicitly. See the new Runtime
Context guide for details.
Behavior change: tool output validation now also runs when a tool returns
undefinedornull. Previously these values bypassedoutputSchemavalidation entirely; now the schema decides whether they are valid, so a tool
whose schema forbids
undefined/nullsurfaces a validation error(
output-error) instead of silently passing. Tools whose schema permitsnull/undefined(e.g. nullable or void outputs) are unaffected.Patch Changes
c1ae8b9,a452ae8,8036b50]:@tanstack/ai-code-mode@0.2.0
Minor Changes
#628
8036b50- Add typed runtime context for tools and middleware.Tools and middleware can now declare the runtime context shape they require, and
chat(),ChatClient, and the frameworkuseChat/createChathooks inferthe merged requirement and type-check the
contextoption you pass against it.Runtime context is request-local application state for tool and middleware
implementations (authenticated users, database clients, tenancy, feature flags,
loggers, browser services). It is never sent to the model and is distinct from
the AG-UI
RunAgentInput.contextprotocol field.Untyped tools and middleware continue to receive
unknowncontext and do notforce a
contextoption. Client tools receive client-local context viaChatClient/useChat; useforwardedPropsto hand serializable client datato the server and map it into server context explicitly. See the new Runtime
Context guide for details.
Behavior change: tool output validation now also runs when a tool returns
undefinedornull. Previously these values bypassedoutputSchemavalidation entirely; now the schema decides whether they are valid, so a tool
whose schema forbids
undefined/nullsurfaces a validation error(
output-error) instead of silently passing. Tools whose schema permitsnull/undefined(e.g. nullable or void outputs) are unaffected.Patch Changes
c1ae8b9,a452ae8,8036b50]:@tanstack/ai-code-mode-skills@0.2.0
Minor Changes
#628
8036b50- Add typed runtime context for tools and middleware.Tools and middleware can now declare the runtime context shape they require, and
chat(),ChatClient, and the frameworkuseChat/createChathooks inferthe merged requirement and type-check the
contextoption you pass against it.Runtime context is request-local application state for tool and middleware
implementations (authenticated users, database clients, tenancy, feature flags,
loggers, browser services). It is never sent to the model and is distinct from
the AG-UI
RunAgentInput.contextprotocol field.Untyped tools and middleware continue to receive
unknowncontext and do notforce a
contextoption. Client tools receive client-local context viaChatClient/useChat; useforwardedPropsto hand serializable client datato the server and map it into server context explicitly. See the new Runtime
Context guide for details.
Behavior change: tool output validation now also runs when a tool returns
undefinedornull. Previously these values bypassedoutputSchemavalidation entirely; now the schema decides whether they are valid, so a tool
whose schema forbids
undefined/nullsurfaces a validation error(
output-error) instead of silently passing. Tools whose schema permitsnull/undefined(e.g. nullable or void outputs) are unaffected.Patch Changes
c1ae8b9,a452ae8,8036b50]:@tanstack/ai-gemini@0.13.0
Minor Changes
#666
c1ae8b9- feat: support multimodal (image) tool resultsTools may now return an
Array<ContentPart>(e.g. a text part plus an image part) and have it transmitted to the model as structured multimodal tool output instead of aJSON.stringify'd blob. This unblocks use cases like returning a screenshot from a tool so the model can see it (issue #363).ContentPartis passed through unchanged; strings and all other return values are serialized exactly as before, so there are no breaking changes.function_call_output.output,tool_resultcontent blocks, andfunctionResponse.partsrespectively). Providers on the Chat Completions path (Groq, Ollama, Grok, OpenRouter chat) fall back to stringifying, which their APIs require.TOOL_CALL_RESULT.content,TOOL_CALL_END.result) remain string-only per the spec; the multimodal array travels on the tool message itself.#673
a452ae8- Populate AG-UIrawEventonRUN_ERRORevents with the provider's structured error body.Previously, when a streaming chat call failed the
RUN_ERRORevent carried only anopaque
{ message, code }headline (e.g."Provider returned error"), and no adapterpopulated AG-UI's purpose-built
rawEventfield — so the upstream provider detail wasunrecoverable.
Adapters now forward the provider's structured error body (e.g. an SDK
APIError'sparsed
.errorresponse body, or OpenRouter's mid-streamchunk.error) asrawEventon the
RUN_ERRORevent. The newtoRunErrorRawEventhelper extracts only knownprovider-body fields — never the raw SDK exception object, which can carry request
metadata such as auth headers. The
{ message, code }contract oftoRunErrorPayloadis unchanged.
The error surfaced to consumers via the
ChatClient/useChaterror(and theonErrorcallback) now also carriescodeandrawEventwhen present, so the upstreamcause is recoverable in application code.
Patch Changes
c1ae8b9,a452ae8,8036b50]:@tanstack/ai-openrouter@0.11.0
Minor Changes
#673
a452ae8- Populate AG-UIrawEventonRUN_ERRORevents with the provider's structured error body.Previously, when a streaming chat call failed the
RUN_ERRORevent carried only anopaque
{ message, code }headline (e.g."Provider returned error"), and no adapterpopulated AG-UI's purpose-built
rawEventfield — so the upstream provider detail wasunrecoverable.
Adapters now forward the provider's structured error body (e.g. an SDK
APIError'sparsed
.errorresponse body, or OpenRouter's mid-streamchunk.error) asrawEventon the
RUN_ERRORevent. The newtoRunErrorRawEventhelper extracts only knownprovider-body fields — never the raw SDK exception object, which can carry request
metadata such as auth headers. The
{ message, code }contract oftoRunErrorPayloadis unchanged.
The error surfaced to consumers via the
ChatClient/useChaterror(and theonErrorcallback) now also carriescodeandrawEventwhen present, so the upstreamcause is recoverable in application code.
Patch Changes
c1ae8b9,a452ae8,8036b50]:@tanstack/ai-preact@0.8.0
Minor Changes
#628
8036b50- Add typed runtime context for tools and middleware.Tools and middleware can now declare the runtime context shape they require, and
chat(),ChatClient, and the frameworkuseChat/createChathooks inferthe merged requirement and type-check the
contextoption you pass against it.Runtime context is request-local application state for tool and middleware
implementations (authenticated users, database clients, tenancy, feature flags,
loggers, browser services). It is never sent to the model and is distinct from
the AG-UI
RunAgentInput.contextprotocol field.Untyped tools and middleware continue to receive
unknowncontext and do notforce a
contextoption. Client tools receive client-local context viaChatClient/useChat; useforwardedPropsto hand serializable client datato the server and map it into server context explicitly. See the new Runtime
Context guide for details.
Behavior change: tool output validation now also runs when a tool returns
undefinedornull. Previously these values bypassedoutputSchemavalidation entirely; now the schema decides whether they are valid, so a tool
whose schema forbids
undefined/nullsurfaces a validation error(
output-error) instead of silently passing. Tools whose schema permitsnull/undefined(e.g. nullable or void outputs) are unaffected.Patch Changes
c1ae8b9,a452ae8,8036b50]:@tanstack/ai-react@0.14.0
Minor Changes
#628
8036b50- Add typed runtime context for tools and middleware.Tools and middleware can now declare the runtime context shape they require, and
chat(),ChatClient, and the frameworkuseChat/createChathooks inferthe merged requirement and type-check the
contextoption you pass against it.Runtime context is request-local application state for tool and middleware
implementations (authenticated users, database clients, tenancy, feature flags,
loggers, browser services). It is never sent to the model and is distinct from
the AG-UI
RunAgentInput.contextprotocol field.Untyped tools and middleware continue to receive
unknowncontext and do notforce a
contextoption. Client tools receive client-local context viaChatClient/useChat; useforwardedPropsto hand serializable client datato the server and map it into server context explicitly. See the new Runtime
Context guide for details.
Behavior change: tool output validation now also runs when a tool returns
undefinedornull. Previously these values bypassedoutputSchemavalidation entirely; now the schema decides whether they are valid, so a tool
whose schema forbids
undefined/nullsurfaces a validation error(
output-error) instead of silently passing. Tools whose schema permitsnull/undefined(e.g. nullable or void outputs) are unaffected.Patch Changes
c1ae8b9,a452ae8,8036b50]:@tanstack/ai-solid@0.12.0
Minor Changes
#628
8036b50- Add typed runtime context for tools and middleware.Tools and middleware can now declare the runtime context shape they require, and
chat(),ChatClient, and the frameworkuseChat/createChathooks inferthe merged requirement and type-check the
contextoption you pass against it.Runtime context is request-local application state for tool and middleware
implementations (authenticated users, database clients, tenancy, feature flags,
loggers, browser services). It is never sent to the model and is distinct from
the AG-UI
RunAgentInput.contextprotocol field.Untyped tools and middleware continue to receive
unknowncontext and do notforce a
contextoption. Client tools receive client-local context viaChatClient/useChat; useforwardedPropsto hand serializable client datato the server and map it into server context explicitly. See the new Runtime
Context guide for details.
Behavior change: tool output validation now also runs when a tool returns
undefinedornull. Previously these values bypassedoutputSchemavalidation entirely; now the schema decides whether they are valid, so a tool
whose schema forbids
undefined/nullsurfaces a validation error(
output-error) instead of silently passing. Tools whose schema permitsnull/undefined(e.g. nullable or void outputs) are unaffected.Patch Changes
c1ae8b9,a452ae8,8036b50]:@tanstack/ai-svelte@0.12.0
Minor Changes
#628
8036b50- Add typed runtime context for tools and middleware.Tools and middleware can now declare the runtime context shape they require, and
chat(),ChatClient, and the frameworkuseChat/createChathooks inferthe merged requirement and type-check the
contextoption you pass against it.Runtime context is request-local application state for tool and middleware
implementations (authenticated users, database clients, tenancy, feature flags,
loggers, browser services). It is never sent to the model and is distinct from
the AG-UI
RunAgentInput.contextprotocol field.Untyped tools and middleware continue to receive
unknowncontext and do notforce a
contextoption. Client tools receive client-local context viaChatClient/useChat; useforwardedPropsto hand serializable client datato the server and map it into server context explicitly. See the new Runtime
Context guide for details.
Behavior change: tool output validation now also runs when a tool returns
undefinedornull. Previously these values bypassedoutputSchemavalidation entirely; now the schema decides whether they are valid, so a tool
whose schema forbids
undefined/nullsurfaces a validation error(
output-error) instead of silently passing. Tools whose schema permitsnull/undefined(e.g. nullable or void outputs) are unaffected.Patch Changes
c1ae8b9,a452ae8,8036b50]:@tanstack/ai-vue@0.12.0
Minor Changes
#628
8036b50- Add typed runtime context for tools and middleware.Tools and middleware can now declare the runtime context shape they require, and
chat(),ChatClient, and the frameworkuseChat/createChathooks inferthe merged requirement and type-check the
contextoption you pass against it.Runtime context is request-local application state for tool and middleware
implementations (authenticated users, database clients, tenancy, feature flags,
loggers, browser services). It is never sent to the model and is distinct from
the AG-UI
RunAgentInput.contextprotocol field.Untyped tools and middleware continue to receive
unknowncontext and do notforce a
contextoption. Client tools receive client-local context viaChatClient/useChat; useforwardedPropsto hand serializable client datato the server and map it into server context explicitly. See the new Runtime
Context guide for details.
Behavior change: tool output validation now also runs when a tool returns
undefinedornull. Previously these values bypassedoutputSchemavalidation entirely; now the schema decides whether they are valid, so a tool
whose schema forbids
undefined/nullsurfaces a validation error(
output-error) instead of silently passing. Tools whose schema permitsnull/undefined(e.g. nullable or void outputs) are unaffected.Patch Changes
c1ae8b9,a452ae8,8036b50]:@tanstack/openai-base@0.5.0
Minor Changes
#666
c1ae8b9- feat: support multimodal (image) tool resultsTools may now return an
Array<ContentPart>(e.g. a text part plus an image part) and have it transmitted to the model as structured multimodal tool output instead of aJSON.stringify'd blob. This unblocks use cases like returning a screenshot from a tool so the model can see it (issue #363).ContentPartis passed through unchanged; strings and all other return values are serialized exactly as before, so there are no breaking changes.function_call_output.output,tool_resultcontent blocks, andfunctionResponse.partsrespectively). Providers on the Chat Completions path (Groq, Ollama, Grok, OpenRouter chat) fall back to stringifying, which their APIs require.TOOL_CALL_RESULT.content,TOOL_CALL_END.result) remain string-only per the spec; the multimodal array travels on the tool message itself.#673
a452ae8- Populate AG-UIrawEventonRUN_ERRORevents with the provider's structured error body.Previously, when a streaming chat call failed the
RUN_ERRORevent carried only anopaque
{ message, code }headline (e.g."Provider returned error"), and no adapterpopulated AG-UI's purpose-built
rawEventfield — so the upstream provider detail wasunrecoverable.
Adapters now forward the provider's structured error body (e.g. an SDK
APIError'sparsed
.errorresponse body, or OpenRouter's mid-streamchunk.error) asrawEventon the
RUN_ERRORevent. The newtoRunErrorRawEventhelper extracts only knownprovider-body fields — never the raw SDK exception object, which can carry request
metadata such as auth headers. The
{ message, code }contract oftoRunErrorPayloadis unchanged.
The error surfaced to consumers via the
ChatClient/useChaterror(and theonErrorcallback) now also carriescodeandrawEventwhen present, so the upstreamcause is recoverable in application code.
Patch Changes
c1ae8b9,a452ae8,8036b50]:@tanstack/ai-devtools-core@0.4.3
Patch Changes
c1ae8b9,a452ae8,8036b50]:@tanstack/ai-elevenlabs@0.2.15
Patch Changes
c1ae8b9,a452ae8,8036b50]:@tanstack/ai-event-client@0.4.3
Patch Changes
c1ae8b9,a452ae8,8036b50]:@tanstack/ai-fal@0.7.18
Patch Changes
c1ae8b9,a452ae8,8036b50]:@tanstack/ai-grok@0.9.2
Patch Changes
c1ae8b9,a452ae8,8036b50]:@tanstack/ai-groq@0.2.9
Patch Changes
c1ae8b9,a452ae8,8036b50]:@tanstack/ai-isolate-cloudflare@0.2.16
Patch Changes
8036b50]:@tanstack/ai-isolate-node@0.1.25
Patch Changes
8036b50]:@tanstack/ai-isolate-quickjs@0.1.25
Patch Changes
8036b50]:@tanstack/ai-ollama@0.6.24
Patch Changes
c1ae8b9,a452ae8,8036b50]:@tanstack/ai-openai@0.10.5
Patch Changes
c1ae8b9,a452ae8,8036b50]:@tanstack/ai-react-ui@0.8.5
Patch Changes
c1ae8b9,8036b50]:@tanstack/ai-solid-ui@0.7.5
Patch Changes
c1ae8b9,8036b50]:@tanstack/ai-vue-ui@0.2.9
Patch Changes
8036b50]:@tanstack/preact-ai-devtools@0.1.46
Patch Changes
@tanstack/react-ai-devtools@0.2.46
Patch Changes
@tanstack/solid-ai-devtools@0.2.46
Patch Changes