unstale

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

@unstale/cli 0.2.9 on npm

@agentclientprotocol/sdk 210 changes

Breaking changes 5

  • Default v1 imports expose only stable-feature schemas; use this subpath for unstable v1 features.

    2.0.0release notes

  • 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.

    2.0.0release notes

  • Compiled tests, fixtures, and examples are no longer published.

    2.0.0release notes

  • The unversioned JSON schema export is removed; use the versioned schema/v1 or schema/v2 exports.

    2.0.0release notes

  • The supported Zod floor is enforced.

    2.0.0release notes

Performance 1

  • Zod is imported as a namespace so bundlers can tree-shake it.

    2.0.0release notes

Behavior and default changes 1

  • Default experimental v2 imports expose only stable-feature schemas; use this subpath for unstable v2 features.

    2.0.0release notes

Fixes and other changes 3

  • HTTP POST failures are isolated to their request scope.

    2.0.2release notes

  • SSE streams now handle CR line endings.

    2.0.2release notes

  • Session stream conflicts are isolated from the shared transport.

    2.0.1release notes