github anthropics/claude-agent-sdk-typescript v0.3.304

latest releases: v0.3.337, v0.3.336, v0.3.335...
one month ago

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

Don't miss a new claude-agent-sdk-typescript release

NewReleases is sending notifications on new releases.