react-ag-ui: adapter still depends on @ag-ui/client ^0.0.59 while the workspace moves to 1.0
Problem
@assistant-ui/[email protected] (current npm and main) declares
"@ag-ui/client": "^0.0.59" (packages/react-ag-ui/package.json:38).
#8507 moves examples/with-ag-ui and api-surface to "@ag-ui/client": "^1.0.0", but leaves the
adapter on ^0.0.59 (its packages/react-ag-ui/package.json hunk only bumps jsdom and
vitest). With that PR the lockfile resolves two copies of the client, @ag-ui/[email protected] for
packages/react-ag-ui and @ag-ui/[email protected] for the example and api-surface.
Any app on @ag-ui/client 1.0 gets the same split: the HttpAgent the app builds comes from 1.0,
while the adapter types and subscribes to it through 0.0.59. Today the only way out downstream is a
package-manager override that forces 1.0 under the adapter.
Proposal
Two PRs, so each can be reviewed and reverted on its own:
feat(react-ag-ui): run on @ag-ui/client 1.0— move the adapter to^1.0.0(complements #8507, which already covers the example andapi-surface). The 1.0 client expandsTEXT_MESSAGE_CHUNK/TOOL_CALL_CHUNKand upgradesTHINKING_*toREASONING_*before any subscriber sees them, so the adapter's handlers for those events become unreachable and go. A test drives a realHttpAgentover SSE to pin that a backend still emitting the legacy events renders the same.fix(react-ag-ui): keep a mid-run snapshot from splitting the turn and dropping its interrupt— a separate bug, stacked on (1) because its test drives the 1.0 client. It reproduces onmaintoday; details in that PR.
Questions
- Is moving the adapter to 1.0 wanted now, or would you rather do it inside #8507?
- Changeset type: I used
patchper CONTRIBUTING. The dependency range crosses a major of@ag-ui/client; tell me if you want something else.
Source: assistant-ui/assistant-ui