Skip to content

build(deps): ag-ui-protocol 1.0.0, whose state delta is typed - #164

Merged
ciaransweet merged 1 commit into
mainfrom
chore/ag-ui-protocol-1.0
Sep 23, 2026
Merged

ciaransweet merged 1 commit into
mainfrom
chore/ag-ui-protocol-1.0

Conversation

@ciaransweet

Copy link
Copy Markdown
Contributor

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.

Supersedes #161, which kept a >=0.1.19 floor and left the five test reads unchanged.

🤖 Generated with Claude Code

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>
@ciaransweet ciaransweet added the dependencies Pull requests that update a dependency file label Sep 23, 2026
@ciaransweet
ciaransweet merged commit 47e3175 into main Sep 23, 2026
4 checks passed
@ciaransweet
ciaransweet deleted the chore/ag-ui-protocol-1.0 branch September 23, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant