π¦ New version release - #492
Merged
Merged
Conversation
brentrager
force-pushed
the
changeset-release/main
branch
from
August 18, 2026 23:36
8d62645 to
8749bc0
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
@smooai/smooth-operator@1.54.2
Patch Changes
3da620b: Emit usage provenance, cost provenance, and the gateway response id on the turn span.
Closes a hole in the previous release. That change gated
gen_ai.usage.input_tokensonprompt_tokens > 0, which worked only against the streaming estimator β the one that hardcodes prompt tokens to zero. Core has a second estimator on the non-streaming path that derives prompt tokens from the request JSON length, so it produces a plausible non-zero count. The old gate published that invented number as a measurement; a test restoring it prints the invented372.Now reads
AgentEvent::Completed.usage_estimated(core 1.10) instead of inferring provenance from the value. A flag carries the fact; a heuristic guesses at it, and this is the second bug today caused by inferring provenance from a plausible-looking number.Adds:
gen_ai.usage.cost_sourceβgatewayorestimated, set alongsidecost_usd. Without it a billable figure is indistinguishable from a guess against a local price table, which matters on a metered SKU.gen_ai.response.idβ the gateway'schatcmpl-β¦, previously discarded at deserialization on all four LLM paths. It joinsLiteLLM_SpendLogs.request_id, whose row carries the gateway's authoritative dollars and real token counts β so it matters most exactly when the counts on the span are absent.Requires core 1.10; the wire protocol is unchanged (the flags are telemetry-only, pinned by a key-count assertion).
@smooai/smooth-operator-web-chat-example@0.0.96
Patch Changes