ci: Version Packages#792
Open
github-actions[bot] wants to merge 1 commit into
Open
Conversation
ab0273b to
b2c56cc
Compare
b2c56cc to
754d2d6
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/[email protected]
Minor Changes
#760
2cb0313- Add activity-agnostic observability to the media activities through the unified middleware system (#720).generateImage,generateVideo,generateAudio,generateSpeech, andgenerateTranscriptionnow accept amiddlewareoption takingGenerationMiddlewares — the base, activity-agnostic contract whose lifecycle hooks (onStart/onUsage/onFinish/onAbort/onError) receive aGenerationMiddlewareContext.ChatMiddlewareis a superset of this base, so a singleotelMiddleware()value satisfies both and can be passed tochat()and any media activity alike. Like chat middleware, hooks are awaited in order and propagate exceptions (a throwing hook surfaces, rather than being silently swallowed).otelMiddleware()(on the existing@tanstack/ai/middlewares/otelsubpath) now emits onegen_ai.*span per media call, tagged with the correctgen_ai.operation.name(image_generation,video_generation,audio_generation,text_to_speech,transcription), reusing the samegen_ai.usage.*attribute set as chat — now includingtanstack.ai.usage.units_billedfor unit-billed media. With aMeterit records thegen_ai.client.operation.durationhistogram per activity. An abandoned streaming-video consumer ends the span viaonAbort(statusERROR,tanstack.ai.completion.reason = cancelled) instead of leaking it. TheGenerationMiddlewaretypes are exported from the package root; theotelMiddlewarevalue stays on the subpath so importing@tanstack/ainever requires the optional@opentelemetry/apipeer.Patch Changes
#789
18e5f4d- fix: forward token usage on the structured-output fallback pathfallbackStructuredOutputStream— used bychat({ outputSchema, stream: true })whenever an adapter resolves the schema through the non-streaming
structuredOutput()rather than a native streaming or combined path (in practiceOllama, plus Anthropic and Gemini models that predate combined tools+schema
support) — wrapped
structuredOutput()but dropped theusagefrom its result.Consumers reading
RUN_FINISHED.usagesawundefined, and the engine'srunOnUsagemiddleware hook (gated onchunk.usage) never fired, socost-tracking and observability layers reported zero token counts on that path.
The synthesized
RUN_FINISHEDnow carries the adapter-reportedusage, matchingthe native streaming path. Adapters that don't report usage are unaffected (no
usagekey is emitted).Updated dependencies []:
@tanstack/[email protected]
Patch Changes
2cb0313,18e5f4d]:@tanstack/[email protected]
Patch Changes
2cb0313,18e5f4d]:@tanstack/[email protected]
Patch Changes
2cb0313,18e5f4d]:@tanstack/[email protected]
Patch Changes
2cb0313,18e5f4d]:@tanstack/[email protected]
Patch Changes
2cb0313,18e5f4d]:@tanstack/[email protected]
Patch Changes
2cb0313,18e5f4d]:@tanstack/[email protected]
Patch Changes
2cb0313,18e5f4d]:@tanstack/[email protected]
Patch Changes
2cb0313,18e5f4d]:@tanstack/[email protected]
Patch Changes
2cb0313,18e5f4d]:@tanstack/[email protected]
Patch Changes
2cb0313,18e5f4d]:@tanstack/[email protected]
Patch Changes
2cb0313,18e5f4d]:@tanstack/[email protected]
Patch Changes
2cb0313,18e5f4d]:@tanstack/[email protected]
Patch Changes
@tanstack/[email protected]
Patch Changes
@tanstack/[email protected]
Patch Changes
@tanstack/[email protected]
Patch Changes
2cb0313,18e5f4d]:@tanstack/[email protected]
Patch Changes
2cb0313,18e5f4d]:@tanstack/[email protected]
Patch Changes
2cb0313,18e5f4d]:@tanstack/[email protected]
Patch Changes
1047e40- Surface OpenRouter provider-reported cost on image generation usage, matchingthe existing text adapter behavior.
2cb0313,18e5f4d]:@tanstack/[email protected]
Patch Changes
2cb0313,18e5f4d]:@tanstack/[email protected]
Patch Changes
2cb0313,18e5f4d]:@tanstack/[email protected]
Patch Changes
2cb0313,18e5f4d]:@tanstack/[email protected]
Patch Changes
2cb0313,18e5f4d]:@tanstack/[email protected]
Patch Changes
2cb0313,18e5f4d]:@tanstack/[email protected]
Patch Changes
@tanstack/[email protected]
Patch Changes
2cb0313,18e5f4d]:@tanstack/[email protected]
Patch Changes
@tanstack/[email protected]
Patch Changes
@tanstack/[email protected]
Patch Changes