Skip to content

chore(deps): Bump @anthropic-ai/claude-agent-sdk from 0.2.81 to 0.2.87 in the anthropic-deps group#430

Merged
sjnims merged 1 commit intomainfrom
dependabot/npm_and_yarn/anthropic-deps-1f8d83e20e
Mar 31, 2026
Merged

chore(deps): Bump @anthropic-ai/claude-agent-sdk from 0.2.81 to 0.2.87 in the anthropic-deps group#430
sjnims merged 1 commit intomainfrom
dependabot/npm_and_yarn/anthropic-deps-1f8d83e20e

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Mar 30, 2026

Bumps the anthropic-deps group with 1 update: @anthropic-ai/claude-agent-sdk.

Updates @anthropic-ai/claude-agent-sdk from 0.2.81 to 0.2.87

Release notes

Sourced from @​anthropic-ai/claude-agent-sdk's releases.

v0.2.87

What's changed

  • Updated to parity with Claude Code v2.1.87

Update

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

v0.2.86

What's changed

  • Added getContextUsage() control method to retrieve a breakdown of context window usage by category
  • Made session_id optional in SDKUserMessage type — callers no longer need to provide a session ID when sending user messages, as the SDK assigns one automatically
  • Fixed TypeScript types resolving to any by adding @anthropic-ai/sdk and @modelcontextprotocol/sdk as dependencies
  • Updated to parity with Claude Code v2.1.86

Update

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

v0.2.85

What's changed

  • Added reloadPlugins() SDK method to reload plugins and receive refreshed commands, agents, and MCP server status
  • Fixed PreToolUse hooks with permissionDecision: "ask" being ignored in SDK mode
  • Updated to parity with Claude Code v2.1.85

Update

npm install @anthropic-ai/claude-agent-sdk@0.2.85
# or
yarn add @anthropic-ai/claude-agent-sdk@0.2.85
</tr></table> 

... (truncated)

Changelog

Sourced from @​anthropic-ai/claude-agent-sdk's changelog.

0.2.87

  • Updated to parity with Claude Code v2.1.87

0.2.86

  • Added getContextUsage() control method to retrieve a breakdown of context window usage by category
  • Made session_id optional in SDKUserMessage type — callers no longer need to provide a session ID when sending user messages, as the SDK assigns one automatically
  • Fixed TypeScript types resolving to any by adding @anthropic-ai/sdk and @modelcontextprotocol/sdk as dependencies
  • Updated to parity with Claude Code v2.1.86

0.2.85

  • Added reloadPlugins() SDK method to reload plugins and receive refreshed commands, agents, and MCP server status
  • Fixed PreToolUse hooks with permissionDecision: "ask" being ignored in SDK mode
  • Updated to parity with Claude Code v2.1.85

0.2.84

  • Added taskBudget option for API-side token budget awareness, allowing the model to pace tool use within a token limit
  • Added enableChannel() method and capabilities field on McpServerStatus for SDK-driven MCP channel activation
  • Exported EffortLevel type ('low' | 'medium' | 'high' | 'max') for consumers to reference effort values directly
  • Fixed showing "[Request interrupted by user]" for errors that were not caused by user interruption
  • Updated to parity with Claude Code v2.1.84

0.2.83

  • Added seed_read_state control subtype to seed readFileState with {path, mtime} so Edit works after the originating Read was removed from context
  • Changed session_state_changed events to opt-in: set CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS=1 to receive them
  • Updated to parity with Claude Code v2.1.83

0.2.82

  • Updated to parity with Claude Code v2.1.82
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

@dependabot dependabot bot requested a review from sjnims as a code owner March 30, 2026 14:08
@dependabot dependabot bot added dependencies Pull requests that update a dependency file npm Pull requests that update npm dependencies labels Mar 30, 2026
@sjnims
Copy link
Copy Markdown
Owner

sjnims commented Mar 31, 2026

@dependabot rebase

Bumps the anthropic-deps group with 1 update: [@anthropic-ai/claude-agent-sdk](https://github.com/anthropics/claude-agent-sdk-typescript).


Updates `@anthropic-ai/claude-agent-sdk` from 0.2.81 to 0.2.87
- [Release notes](https://github.com/anthropics/claude-agent-sdk-typescript/releases)
- [Changelog](https://github.com/anthropics/claude-agent-sdk-typescript/blob/main/CHANGELOG.md)
- [Commits](anthropics/claude-agent-sdk-typescript@v0.2.81...v0.2.87)

---
updated-dependencies:
- dependency-name: "@anthropic-ai/claude-agent-sdk"
  dependency-version: 0.2.87
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: anthropic-deps
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/anthropic-deps-1f8d83e20e branch from 4b83404 to 5fa9555 Compare March 31, 2026 02:23
@sjnims sjnims merged commit c29e25a into main Mar 31, 2026
10 of 12 checks passed
@sjnims sjnims deleted the dependabot/npm_and_yarn/anthropic-deps-1f8d83e20e branch March 31, 2026 02:25
@claude
Copy link
Copy Markdown
Contributor

claude bot commented Mar 31, 2026

CI Failure Analysis: CI

Run: #23777494038 | Commit: c29e25a

Summary

Two jobs failed: Test (coverage file copy error) and Dead Code Check (unused exported types detected by Knip). The test suite itself passed, but Vitest crashed during coverage collection due to a recursive copy (coveragecoverage/coverage). The dead code check found 3 unused exported types in sdk-client.ts.

Failures Found

Job File Line Issue
Test vitest.config / CI setup EINVAL: cannot copy /…/coverage to a subdirectory of self /…/coverage/coverage — coverage output directory is being recursively copied into itself
Dead Code Check src/stages/3-execution/sdk-client.ts 51 Unused exported type PermissionMode
Dead Code Check src/stages/3-execution/sdk-client.ts 72 Unused exported type SDKResultSuccess
Dead Code Check src/stages/3-execution/sdk-client.ts 72 Unused exported type SDKResultError

How to Fix

Test — Coverage copy error:
The Vitest coverage reportsDirectory (likely ./coverage) is being copied into itself, possibly by a CI step that copies artifacts. Check the CI workflow for a step that copies/moves the coverage directory and ensure it doesn't target a subdirectory of coverage. Alternatively, verify that the reportsDirectory in vitest.config.ts is not set to a path that overlaps with a copy destination.

Dead Code Check — Unused exports:
Remove or mark as internal the 3 unused exported types in src/stages/3-execution/sdk-client.ts:

// Either remove the exports:
// - PermissionMode (line 51)
// - SDKResultSuccess (line 72) 
// - SDKResultError (line 72)
// Or if they are part of the public API, add them to knip.json's ignoreDependencies/ignoreExportsUsedInFile config

Knip configuration hints:
The knip.json ignore entries for dist/**, coverage/**, and node_modules/** are unnecessary (Knip ignores these by default) and can be removed.


Analyzed by Claude

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file npm Pull requests that update npm dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant