build(deps): ag-ui-protocol 1.0.0, whose state delta is typed - #164
Merged
Merged
Conversation
1.0.0 types `StateDeltaEvent.delta` as JSON Patch models rather than a
list of anything, so `delta[0]["value"]` is now `delta[0].value`. Nothing
in the package builds an event differently: `agui_events` still emits
plain `{"op", "path", "value"}` dicts and pydantic validates them into
`AddOperation` and `RemoveOperation` on the way in. Only the tests, which
read the operations back, had to change.
The encoded SSE is byte-identical across the bump, deltas included, so no
client changes: `js/agent-ui` and anything consuming the event stream see
exactly what they saw before.
The floor rises to 1.0.0 rather than spanning both shapes. A test written
against the models fails on 0.1.x and vice versa, so a range covering both
is a range we cannot test.
1.0.0 also drops the `Thinking*` events and `MetadataMixin`, none of which
this package used, and adds content parts, subagent identity and
`RunFinishedCancelledOutcome`.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
1.0.0 types
StateDeltaEvent.deltaas JSON Patch models rather than a list of anything, sodelta[0]["value"]is nowdelta[0].value. Nothing in the package builds an event differently:agui_eventsstill emits plain{"op", "path", "value"}dicts and pydantic validates them intoAddOperationandRemoveOperationon the way in. Only the tests, which read the operations back, had to change.The encoded SSE is byte-identical across the bump, deltas included, so no client changes:
js/agent-uiand anything consuming the event stream see exactly what they saw before.The floor rises to 1.0.0 rather than spanning both shapes. A test written against the models fails on 0.1.x and vice versa, so a range covering both is a range we cannot test.
1.0.0 also drops the
Thinking*events andMetadataMixin, none of which this package used, and adds content parts, subagent identity andRunFinishedCancelledOutcome.Supersedes #161, which kept a
>=0.1.19floor and left the five test reads unchanged.🤖 Generated with Claude Code