Packages

@anthropic-ai/claude-agent-sdk

0.3.330 · 20 Nov 2026SEE LICENSE IN README.md20.7M / weekRepositorynpmAtom feed

Upgrading @anthropic-ai/claude-agent-sdk From 0.3.267 to 0.3.268

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 0.3.267Newest 0.x, Latest0.3.330
  1. 0.3.267yours
  2. 0.3.268target
0
changes to make
0
advisories fixed
6
new
0
fixes

Release by release

  1. 0.3.268

    10 Sep 20266 new
    • New

      Added result_index to result messages: the result's position in delivery order within the run, from 0

    • New

      Added local_command to the result message of a turn that ran a slash command without entering the model loop, carrying the command's name

    • New

      Added hold_on_cache_impact to the reload_plugins control request (Query.reloadPlugins({ holdOnCacheImpact: true })): holds a reload that would invalidate the session's prompt cache

    • New

      Added resume_reason to assistant, stream-event and result messages, set only on the automatic re-run of a turn a host restart interrupted

    • New

      Added kind (used, free, buffer, deferred) to each category in the get_context_usage control response, matching the /context result's context_usage rows

    • New

      Added optional defaultToNo and suppressAlwaysAllowRule hints to canUseTool options: the prompt should open on its decline option, or offer no persistent "always allow" choice

5 other lines we could not sort, mostly version bumps
  • Changed setModel() to confirm a model id the CLI doesn't know locally with the API the first time a session uses it, instead of refusing it as unrecognized

    0.3.268
  • Changed user_message_uuid on the automatic re-run of an interrupted turn to name that turn's last user prompt

    0.3.268
  • Changed the initialize success response to always include pending_permission_requests (empty when nothing is pending), so clients can tell that apart from an older CLI

    0.3.268
  • Changed the task-tracking tools (TaskCreate/Get/Update/List, TodoWrite) to be default tools only on Claude 3.x, Opus 4.0–4.7, Sonnet 4.0–4.6 and Haiku 4.5; elsewhere list them in tools/allowedTools

    0.3.268
  • Updated to parity with Claude Code v2.1.268

    0.3.268

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.