@anthropic-ai/claude-agent-sdk
0.3.330 · 20 Nov 2026SEE LICENSE IN README.md20.7M / weekRepositorynpmAtom feed
0.3.330 is the newest release of 0.3.x.
In short
1 new3 fixed5 changed
Release note
What's changed
Added optional
trigger,user_message_uuidandtimestampfields to theconversation_resetmessage so clients can tell what reset the conversation, match a /clear to its message, and show when the reset happenedFixed permission and dialog callbacks still being invoked for requests that arrived after
close()Fixed control requests issued after a query closed hanging or leaking, and permission prompts that could not be cancelled after a cancelled request was redelivered
Fixed
session_state_changedstaying atrequires_actionafter an overlapping permission prompt and sandbox network-access prompt were both answeredImproved SDK package size and load time:
sdk.mjsno longer bundles unused dependencies (1.47 MB → 0.97 MB)Improved startup time for
query()sessions with in-process MCP servers (createSdkMcpServer) by running their handshake inside the SDK;initializemay now wait up to 250 ms for themImproved SDK session start-up: the CLI now answers the host's initialize request before starting its background start-up work
Changed the
Settingstype'sattributionfield toboolean | {...}; TypeScript code that readsattribution.commitfrom returned settings needs a type narrowUpdated to parity with Claude Code v2.1.281
Update
npm install @anthropic-ai/claude-agent-sdk@0.3.281 # or yarn add @anthropic-ai/claude-agent-sdk@0.3.281 # or pnpm add @anthropic-ai/claude-agent-sdk@0.3.281 # or bun add @anthropic-ai/claude-agent-sdk@0.3.281
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.