Packages

@anthropic-ai/claude-agent-sdk

0.3.330 · 20 Nov 2026SEE LICENSE IN README.md20.7M / weekRepositorynpmAtom feed

Your version

0.3.304

19 Oct 2026Where it was published

0.3.330 is the newest release of 0.3.x.

In short

2 new2 fixed1 changed

Release note

What's changed

  • Added suspendSseStream(query) and resumeSseStream(query) to the browser SDK: close a query's event stream and reopen it later without ending the query

  • Added stable row ids to getContextUsage(), and, when the CLI answers on its own stdio, plugin ids, agent and skill file paths, and per-server MCP instruction token shares

  • Fixed startup() timing out while a SessionStart or Setup command hook was running when no initializeTimeoutMs is passed: up to 10 minutes of that time no longer counts toward the 60-second limit, and the timeout error now says what the process reported

  • Fixed startup() keeping every hook_progress message of a running SessionStart or Setup hook in memory until it resolved; it now keeps only the newest one for each hook

  • Updated to parity with Claude Code v2.1.304

Update

npm install @anthropic-ai/claude-agent-sdk@0.3.304
# or
yarn add @anthropic-ai/claude-agent-sdk@0.3.304
# or
pnpm add @anthropic-ai/claude-agent-sdk@0.3.304
# or
bun add @anthropic-ai/claude-agent-sdk@0.3.304

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.