anthropics/claude-agent-sdk-typescript v0.3.142
anthropics/claude-agent-sdk-typescript
Captured source
source ↗GH
Source ↗published May 14, 2026seen Jun 26captured 3whttp 200method plain
v0.3.142
Repository: anthropics/claude-agent-sdk-typescript
Tag: v0.3.142
Published: 2026-05-14T22:55:05Z
Prerelease: no
Release notes:
What's changed
- Breaking: Removed the v2 session API (
unstable_v2_createSession,unstable_v2_resumeSession,unstable_v2_prompt,SDKSession,SDKSessionOptions), deprecated since 0.2.133. Usequery()— pass anAsyncIterablefor multi-turn, oroptions.resumeto continue a session. - Breaking: MCP servers now connect in the background by default; sessions start immediately and slow servers report
status: "pending"ininituntil ready. SetMCP_CONNECTION_NONBLOCKING=0to restore the old behavior of waiting up to 5s before the first query, or mark a serveralwaysLoad: trueto require it in turn 1. - Breaking: Headless and SDK sessions now use Task tools (
TaskCreate/TaskUpdate/TaskGet/TaskList) instead ofTodoWrite, deprecated since 0.2.136. Tool consumers should accumulate by task ID instead of replacing a snapshot list. - Surfaced
request_id,subagent_type, andtask_descriptionon SDK message types and task system events - Headless
--sdk-urlsessions now exit non-zero with a stderr diagnostic when the remote transport closes permanently (401/403/404 or WS permanent close), instead of silently exiting 0
Update
npm install @anthropic-ai/claude-agent-sdk@0.3.142 # or yarn add @anthropic-ai/claude-agent-sdk@0.3.142 # or pnpm add @anthropic-ai/claude-agent-sdk@0.3.142 # or bun add @anthropic-ai/claude-agent-sdk@0.3.142