Releases: anthropics/claude-agent-sdk-typescript
Releases · anthropics/claude-agent-sdk-typescript
v0.2.113
What's changed
- Changed the SDK to spawn a native Claude Code binary (via a per-platform optional dependency) instead of bundled JavaScript
- Added
sessionStoreoption (alpha) toquery()and session helpers for mirroring session transcripts to external storage, withSessionStore/SessionKey/SessionStoreEntrytypes,InMemorySessionStorereference implementation, andimportSessionToStore()for migrating existing sessions - Added
deleteSession()for removing a session from disk or aSessionStore - Added
SDKMirrorErrorMessage(subtype: 'mirror_error') to theSDKMessageunion — emitted when asessionStore.append()batch fails - Breaking:
options.envonce again replacesprocess.envfor the CLI subprocess instead of overlaying it. To add or override individual variables, passenv: { ...process.env, MY_VAR: "x" } - Added
titleoption toquery()— sets the session title and skips auto-generation - Added OpenTelemetry trace context propagation — the caller's active trace context is forwarded to the CLI subprocess so spans parent under your distributed trace
Update
npm install @anthropic-ai/claude-agent-sdk@0.2.113
# or
yarn add @anthropic-ai/claude-agent-sdk@0.2.113
# or
pnpm add @anthropic-ai/claude-agent-sdk@0.2.113
# or
bun add @anthropic-ai/claude-agent-sdk@0.2.113v0.2.112
What's changed
- Updated to parity with Claude Code v2.1.112
Update
npm install @anthropic-ai/claude-agent-sdk@0.2.112
# or
yarn add @anthropic-ai/claude-agent-sdk@0.2.112
# or
pnpm add @anthropic-ai/claude-agent-sdk@0.2.112
# or
bun add @anthropic-ai/claude-agent-sdk@0.2.112v0.2.111
What's changed
- Opus 4.7 is now available! This version of the SDK is required to use it.
mcp_set_serverscontrol request: remote (http/sse) server entries can now carry per-toolpermission_policyvalues, which are applied to the session's allow/deny rulesstartup()andWarmQueryare now part of the public TypeScript API- Changed
options.envto overlay the inheritedprocess.envinstead of replacing it
Update
npm install @anthropic-ai/claude-agent-sdk@0.2.111
# or
yarn add @anthropic-ai/claude-agent-sdk@0.2.111
# or
pnpm add @anthropic-ai/claude-agent-sdk@0.2.111
# or
bun add @anthropic-ai/claude-agent-sdk@0.2.111v0.2.110
What's changed
- Fixed
unstable_v2_createSessionnot respectingcwd,settingSources, andallowDangerouslySkipPermissionsoptions - Added optional
shouldQueryfield toSDKUserMessage— set tofalseto append a user message without triggering an assistant turn; fixedshouldQuery: falsemessages incorrectly triggering auto-title generation, prompt suggestions, andUserPromptSubmithooks - Auto session-title generation now respects
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFICandCLAUDE_CODE_DISABLE_TERMINAL_TITLE
Update
npm install @anthropic-ai/claude-agent-sdk@0.2.110
# or
yarn add @anthropic-ai/claude-agent-sdk@0.2.110
# or
pnpm add @anthropic-ai/claude-agent-sdk@0.2.110
# or
bun add @anthropic-ai/claude-agent-sdk@0.2.110v0.2.109
What's changed
- Updated to parity with Claude Code v2.1.109
Update
npm install @anthropic-ai/claude-agent-sdk@0.2.109
# or
yarn add @anthropic-ai/claude-agent-sdk@0.2.109
# or
pnpm add @anthropic-ai/claude-agent-sdk@0.2.109
# or
bun add @anthropic-ai/claude-agent-sdk@0.2.109v0.2.108
What's changed
SDKStatusnow includes'requesting'; whenincludePartialMessagesis enabled, a{type:'system', subtype:'status', status:'requesting'}message is emitted before each API request in the stream
Update
npm install @anthropic-ai/claude-agent-sdk@0.2.108
# or
yarn add @anthropic-ai/claude-agent-sdk@0.2.108
# or
pnpm add @anthropic-ai/claude-agent-sdk@0.2.108
# or
bun add @anthropic-ai/claude-agent-sdk@0.2.108v0.2.107
What's changed
- Updated to parity with Claude Code v2.1.107
Update
npm install @anthropic-ai/claude-agent-sdk@0.2.107
# or
yarn add @anthropic-ai/claude-agent-sdk@0.2.107
# or
pnpm add @anthropic-ai/claude-agent-sdk@0.2.107
# or
bun add @anthropic-ai/claude-agent-sdk@0.2.107v0.2.105
What's changed
- Added
system/memory_recallevent andmemory_pathsonsystem/initfor SDK renderers to surface memory operations - Fixed
error_max_structured_output_retriesbeing emitted when the final retry attempt succeeded, discarding valid structured output
Update
npm install @anthropic-ai/claude-agent-sdk@0.2.105
# or
yarn add @anthropic-ai/claude-agent-sdk@0.2.105
# or
pnpm add @anthropic-ai/claude-agent-sdk@0.2.105
# or
bun add @anthropic-ai/claude-agent-sdk@0.2.105v0.2.104
chore: Update CHANGELOG.md
v0.2.101
What's changed
- Security: bumped
@anthropic-ai/sdkto^0.81.0and@modelcontextprotocol/sdkto^1.29.0to resolve GHSA-5474-4w2j-mq4c and transitive hono advisories - Fixed resume-session temp directory leaking on Windows when subprocess file handles weren't released before cleanup, and on macOS/APFS when
await usingdisposal raced its own cleanup callback - Fixed
MaxListenersExceededWarningwhen running 11+ concurrentquery()calls
Update
npm install @anthropic-ai/claude-agent-sdk@0.2.101
# or
yarn add @anthropic-ai/claude-agent-sdk@0.2.101
# or
pnpm add @anthropic-ai/claude-agent-sdk@0.2.101
# or
bun add @anthropic-ai/claude-agent-sdk@0.2.101