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

latest releases: v0.3.332, v0.3.331, v0.3.330...
7 months ago

What's changed

  • Added optional terminal_reason field to result messages, exposing why the query loop terminated (completed, aborted_tools, max_turns, blocking_limit, etc.)
  • Added 'auto' to the public PermissionMode type
  • Changed sandbox option to default failIfUnavailable to true when enabled: true is passed — query() will emit an error result and exit if sandbox dependencies are missing, instead of silently running unsandboxed. Set failIfUnavailable: false to allow graceful degradation.
  • Updated to parity with Claude Code v2.1.91

Update

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

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

NewReleases is sending notifications on new releases.