npm / @agentclientprotocol/sdk
@agentclientprotocol/sdk
What changed in @agentclientprotocol/sdk 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-28.
5 breaking1 performance1 behavior and defaults3 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@agentclientprotocol/sdk 210 changes
Breaking changes 5
Default v1 imports expose only stable-feature schemas; use this subpath for unstable v1 features.
AgentSideConnection, ClientSideConnection, Agent, Client, LegacyAgentFactory, createLegacyAgent, their extension aliases, and the connector helper have been removed. Use agent()/client() apps and peer-context request()/notify() calls.
Compiled tests, fixtures, and examples are no longer published.
The unversioned JSON schema export is removed; use the versioned schema/v1 or schema/v2 exports.
The supported Zod floor is enforced.
Performance 1
Zod is imported as a namespace so bundlers can tree-shake it.
Behavior and default changes 1
Default experimental v2 imports expose only stable-feature schemas; use this subpath for unstable v2 features.
Fixes and other changes 3
HTTP POST failures are isolated to their request scope.
SSE streams now handle CR line endings.
Session stream conflicts are isolated from the shared transport.