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

one hour ago

What's changed

  • Added duration_ms to task_notification for shell commands: how long the command ran
  • Added consumer_terms_review_in_terminal and consumer_terms_accept_on_web to startup_failure_reason, for a start that ends because the updated Consumer Terms wait for an answer
  • Added old_cell_type to NotebookEdit tool results for replace and delete operations
  • Added tool_use_result to a subagent's PushNotification result message, and to its WebFetch result message when the fetch got no page
  • Added resume_target_not_found to startup_failure_reason, for the result Claude Code writes when --resume finds no conversation to load
  • Fixed SYSTEM_PROMPT_DYNAMIC_BOUNDARY being ignored on Bedrock, Agent Platform, Foundry, gateways or with experimental betas off: the text above it gets a cache breakpoint. The text sent is unchanged
  • Fixed the browser SDK's WebSocket transport leaving a pending write and a connection behind when closed or aborted before it connected
  • Fixed a tool call to an in-process MCP server ending early when the server sent a request of its own with the same id
  • Changed auto-compact's per-model default to near 400K on most current 1M models (rolling out; on now with third-party providers); to keep 1M, set a model's autoCompactWindow under modelSettings
  • Changed SlashCommand rows in commands lists: a command whose display name runs another command (no row if it is hidden) or can't be sent as a slash command is now listed under its own name
  • Updated to parity with Claude Code v2.1.334

Update

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

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

NewReleases is sending notifications on new releases.