@anthropic-ai/claude-agent-sdk 0.3.292 → 0.3.294

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/manifest.zst.json CHANGED
@@ -1,62 +1,61 @@
1
1
  {
2
- "version": "2.1.292",
2
+ "version": "2.1.294",
3
3
  "manifestSignatureEnforcement": "flag",
4
- "commit": "37832d0b7cad7b40bac7c82dff58629313913edf",
5
- "modsCommit": "8e60c4cac989c0e0cc6d2c49407a5c67f5a4a8e6",
6
- "buildDate": "2026-10-06T05:44:47Z",
4
+ "commit": "8f033c6ebe3d82a87f502e199307f38f5d55ccca",
5
+ "modsCommit": "765f236fe1bfcc678e0ec59af9170fb7d6771a3a",
6
+ "buildDate": "2026-10-08T03:12:37Z",
7
7
  "platforms": {
8
8
  "darwin-arm64": {
9
9
  "binary": "claude.zst",
10
- "checksum": "dfabaa49a309abe3229719ecfaf41d557c831168b2b642cf2c24e7ab0fc40291",
11
- "size": 78320219,
10
+ "checksum": "c6265c91743c97af8ad419de8500d5bade86c55691f20aa1c1f243a94381a95c",
11
+ "size": 78775624,
12
12
  "bundle": {
13
- "checksum": "29f45ff68babc471f404a9dbcd4ac9e380d8cdc0f0abdb4372227f0c7ee969b1",
14
- "size": 78334565
13
+ "checksum": "b5df7f07341efbf7ef85536697eb46835ef4b03da085a75914151c2a4a9c18dc",
14
+ "size": 78791815
15
15
  }
16
16
  },
17
17
  "darwin-x64": {
18
18
  "binary": "claude.zst",
19
- "checksum": "e05d438fc6fd2b2a955f4aa5520dae8dda26b148fa56fd12b3ce8d0cadf1a4ce",
20
- "size": 82549522,
19
+ "checksum": "9e1c21a62e8399297f5543403267b36eec6b56ee77ddd38c928efc27343498cf",
20
+ "size": 83008146,
21
21
  "bundle": {
22
- "checksum": "ded81c8b0a9cd7278993a4c8549798017bd1ccdf33e4f9e87ecd1eb4eda4e966",
23
- "size": 82552065
22
+ "checksum": "edaa5d01caec3003c403d90de37f7367577b86a03fac0c1672c78cb10bb53916",
23
+ "size": 83006981
24
24
  }
25
25
  },
26
26
  "linux-arm64": {
27
27
  "binary": "claude.zst",
28
- "checksum": "e5e4c92326001ce91eeed9cdf165faec2932459d6863a9e087e2649536a9220b",
29
- "size": 87405964
28
+ "checksum": "66c3ea3078271f9c9300f4f2dae3852d1df57aeb0be6cc15183b3eac6cc6a2d3",
29
+ "size": 87846884
30
30
  },
31
31
  "linux-x64": {
32
32
  "binary": "claude.zst",
33
- "checksum": "28509427a53a5c15bd94d022d39013cc4b867a8e6305497f48162dcf91576326",
34
- "size": 88133859
33
+ "checksum": "f65567ed6fbf9d4cb670819a9ed00cec415022f93043350b95513a39dbbb0b5f",
34
+ "size": 88583351
35
35
  },
36
36
  "linux-arm64-musl": {
37
37
  "binary": "claude.zst",
38
- "checksum": "d23939bd282dc1179756023edac02080b91e36c28d7ebd9b4ed360e8bd97fd12",
39
- "size": 85801900
38
+ "checksum": "7adc141d44e6cf9c1dd8a187a257fb5bd265437bc0385d75384948a72ccf5a02",
39
+ "size": 86257202
40
40
  },
41
41
  "linux-x64-musl": {
42
42
  "binary": "claude.zst",
43
- "checksum": "3d5c168338a902acb2fd717fe1a15af658df0da389e1e1aa0273358702fd6ce4",
44
- "size": 86587113
43
+ "checksum": "407c7075a7367d995f275677d40edea6580034179177ef0033dfac7621ae7f5b",
44
+ "size": 87011688
45
45
  },
46
46
  "win32-x64": {
47
47
  "binary": "claude.exe.zst",
48
- "checksum": "79f8686565d0b5abf02e19f0ae07d7de2a5ba2ed6837bc0711a7938dab8565b9",
49
- "size": 90444996
48
+ "checksum": "9d25b0be223ace8ead78c292684e9c81b40c5c95751aa9a3ff501f71b2080ec8",
49
+ "size": 90878325
50
50
  },
51
51
  "win32-arm64": {
52
52
  "binary": "claude.exe.zst",
53
- "checksum": "e2bfc2a02b4ddac855fe62598be44d50384d71cecbea53f71df62fabccc1b14a",
54
- "size": 86774574
53
+ "checksum": "31de433dd0da9b088f960b339370adff1e5c2636c84a77c2c3785bd60327583b",
54
+ "size": 87213872
55
55
  }
56
56
  },
57
57
  "sdkCompat": {
58
58
  "testedWrapperVersions": [
59
- "0.3.251",
60
59
  "0.3.252",
61
60
  "0.3.257",
62
61
  "0.3.258",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-agent-sdk",
3
- "version": "0.3.292",
3
+ "version": "0.3.294",
4
4
  "main": "sdk.mjs",
5
5
  "types": "sdk.d.ts",
6
6
  "exports": {
@@ -61,14 +61,14 @@
61
61
  "zod": "^4.0.0"
62
62
  },
63
63
  "optionalDependencies": {
64
- "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.292",
65
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.292",
66
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.292",
67
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.292",
68
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.292",
69
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.292",
70
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.292",
71
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.292"
64
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.294",
65
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.294",
66
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.294",
67
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.294",
68
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.294",
69
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.294",
70
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.294",
71
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.294"
72
72
  },
73
73
  "files": [
74
74
  "sdk.mjs",
@@ -85,8 +85,8 @@
85
85
  "extractFromBunfs.d.ts",
86
86
  "manifest.json",
87
87
  "manifest.zst.json",
88
- "core-95ey60bt.mjs",
89
- "core-czfq02x9.mjs"
88
+ "core-9fynjcde.mjs",
89
+ "core-z7m2ffy5.mjs"
90
90
  ],
91
- "claudeCodeVersion": "2.1.292"
91
+ "claudeCodeVersion": "2.1.294"
92
92
  }
package/sdk.d.ts CHANGED
@@ -3707,7 +3707,7 @@ export declare type SDKAuthStatusMessage = {
3707
3707
  };
3708
3708
 
3709
3709
  /**
3710
- * The full set of live background tasks, emitted whenever membership changes (start, completion, kill, a foreground agent being backgrounded) or an entry's `ambient` flag or `parent_task_id` changes. A level signal, unlike the task_started/task_notification edge bookends: consumers that only need 'is background work running' should replace their set with each payload rather than pairing edges, so a missed bookend cannot wedge a stale running indicator. Ordering relative to the bookends for the same transition is unspecified (in practice a task that starts in the background joins the level before its task_started, and a finishing task leaves it after its task_updated and task_notification) and the payload carries ids only, so do not correlate it with the edge stream. The level is per-process: nothing is emitted at startup, so consumers must reset to the empty set whenever the session's CLI process (re)starts and let the next membership change repopulate it. A host that re-initializes an already-running process (a repeated `initialize` control request, e.g. after reconnecting) is sent a snapshot of the current set right behind the success response to that request, even when it is empty, so it need not wait for a change; CLIs that predate this send nothing there.
3710
+ * The full set of live background tasks, emitted whenever membership changes (start, completion, kill, a foreground agent being backgrounded) or an entry's `ambient` flag or `parent_task_id` changes. A level signal, unlike the task_started/task_notification edge bookends: consumers that only need 'is background work running' should replace their set with each payload rather than pairing edges, so a missed bookend cannot wedge a stale running indicator. Ordering relative to the bookends for the same transition is unspecified (in practice a task that starts in the background joins the level before its task_started, and a finishing task leaves it after its task_updated and task_notification), so do not correlate it with the edge stream. The level is per-process: nothing is emitted at startup, so consumers must reset to the empty set whenever the session's CLI process (re)starts and let the next membership change repopulate it. A host that re-initializes an already-running process (a repeated `initialize` control request, e.g. after reconnecting) is sent a snapshot of the current set right behind the success response to that request, even when it is empty, so it need not wait for a change; CLIs that predate this send nothing there.
3711
3711
  */
3712
3712
  export declare type SDKBackgroundTasksChangedMessage = {
3713
3713
  type: 'system';
@@ -3722,6 +3722,10 @@ export declare type SDKBackgroundTasksChangedMessage = {
3722
3722
  */
3723
3723
  run_id?: string;
3724
3724
  task_type: string;
3725
+ /**
3726
+ * Agent type of a local_agent task, such as "general-purpose" or a custom agent's name; "main-session" for a backgrounded main session. Not set on other tasks.
3727
+ */
3728
+ subagent_type?: string;
3725
3729
  description: string;
3726
3730
  /**
3727
3731
  * task_id of the subagent (local_agent) task whose agent launched this subagent, shell, monitor or workflow task. Absent when the launcher is the main thread, has no task_id of its own (a teammate, an agent inside a workflow), or is no longer tracked. A resumed subagent keeps its original parent. The parent may be a foreground or already-ended task, so treat an unknown id as no parent.
@@ -3731,6 +3735,7 @@ export declare type SDKBackgroundTasksChangedMessage = {
3731
3735
  * True for tasks that are not activity (every skip_transcript task, plus every live-update watcher, requested or auto-started); hosts should exclude them from activity indicators.
3732
3736
  */
3733
3737
  ambient?: boolean;
3738
+
3734
3739
  }[];
3735
3740
  uuid: UUID;
3736
3741
  session_id: string;
@@ -5771,7 +5776,6 @@ export declare type SDKResultSuccess = {
5771
5776
 
5772
5777
 
5773
5778
 
5774
-
5775
5779
  user_message_uuid?: string;
5776
5780
  user_message_uuids?: string[];
5777
5781
  resume_reason?: string;
@@ -5915,9 +5919,9 @@ export declare type SDKSettingsParseError = {
5915
5919
  };
5916
5920
 
5917
5921
  /**
5918
- * Why Claude Code refused to start, so a host can offer the fix instead of a retry. org_pin_api_key_conflict: managed settings pin a first-party or Cloud gateway sign-in, and an Anthropic API key or auth token is configured instead. provider_not_allowed: managed settings list the API providers this machine may use (allowedProviders), and the session is set up for one that is not listed. org_verify_failed: the sign-in's organization could not be verified against the pin (network, or a revoked token). org_pin_mismatch: the sign-in belongs to an organization the pin does not allow. managed_settings_invalid: managed policy settings could not be read, the pin names no organization, or managed model settings (deniedModels, or an availableModels list matched exactly) block the default model and leave no allowed model to use instead. remote_settings_required_unavailable: managed settings the organization requires could not be loaded. gateway_signin_required: the Cloud gateway ended this sign-in. gateway_access_denied: the Cloud gateway refused managed settings for this account. proxy_invalid: a proxy setting is not a complete URL. temp_dir_unusable: the per-user temp directory is unsafe or could not be created. cwd_unavailable: the working directory was deleted, moved or cannot be read. shell_tool_missing: Windows has no shell tool: Git Bash is missing, and PowerShell is missing or turned off by CLAUDE_CODE_USE_POWERSHELL_TOOL. session_held_by_background: the conversation to resume or continue is running as a background session. worktree_resume_refused: the resume was refused because the session's worktree failed its safety checks or the resume was launched from inside it; errors says whether a re-run continues without the worktree. worktree_unverified: the session's worktree could not be verified right now; retrying may succeed. cli_version_too_old: this Claude Code version is below the minimum Anthropic requires. bypass_root: bypass permissions mode was requested while running as root.
5922
+ * Why Claude Code refused to start, so a host can offer the fix instead of a retry. org_pin_api_key_conflict: managed settings pin a first-party or Cloud gateway sign-in, and an Anthropic API key or auth token is configured instead. provider_not_allowed: managed settings list the API providers this machine may use (allowedProviders), and the session is set up for one that is not listed. org_verify_failed: the sign-in's organization could not be verified against the pin (network, or a revoked token). org_pin_mismatch: the sign-in belongs to an organization the pin does not allow. managed_settings_invalid: managed policy settings could not be read, the pin names no organization, or managed model settings (deniedModels, or an availableModels list matched exactly) block the default model and leave no allowed model to use instead. remote_settings_required_unavailable: managed settings the organization requires could not be loaded. gateway_signin_required: the Cloud gateway ended this sign-in. gateway_access_denied: the Cloud gateway refused managed settings for this account. proxy_invalid: a proxy setting is not a complete URL. temp_dir_unusable: the per-user temp directory is unsafe or could not be created. cwd_unavailable: the working directory was deleted, moved or cannot be read. shell_tool_missing: Windows has no shell tool: Git Bash is missing, and PowerShell is missing or turned off by CLAUDE_CODE_USE_POWERSHELL_TOOL. session_held_by_background: the conversation to resume or continue is running as a background session. worktree_resume_refused: the resume was refused because the session's worktree failed its safety checks or the resume was launched from inside it; errors says whether a re-run continues without the worktree. worktree_unverified: the session's worktree could not be verified right now; retrying may succeed. cli_version_too_old: this Claude Code version is below the minimum Anthropic requires. bypass_root: bypass permissions mode was requested while running as root. org_config_required_unavailable: the organization requires its policy limits and managed settings before a session starts, and they could not be loaded (network, proxy, or an Anthropic error); retrying may succeed. org_config_refused: the organization requires its policy limits and managed settings, and Anthropic refused them for this sign-in (expired or revoked session, or the organization does not allow Claude Code for this account); signing in again or an admin's change is the fix, not a retry.
5919
5923
  */
5920
- export declare type SDKStartupFailureReason = 'org_pin_api_key_conflict' | 'provider_not_allowed' | 'org_verify_failed' | 'org_pin_mismatch' | 'managed_settings_invalid' | 'remote_settings_required_unavailable' | 'gateway_signin_required' | 'gateway_access_denied' | 'proxy_invalid' | 'temp_dir_unusable' | 'cwd_unavailable' | 'shell_tool_missing' | 'session_held_by_background' | 'worktree_resume_refused' | 'worktree_unverified' | 'cli_version_too_old' | 'bypass_root';
5924
+ export declare type SDKStartupFailureReason = 'org_pin_api_key_conflict' | 'provider_not_allowed' | 'org_verify_failed' | 'org_pin_mismatch' | 'managed_settings_invalid' | 'remote_settings_required_unavailable' | 'gateway_signin_required' | 'gateway_access_denied' | 'proxy_invalid' | 'temp_dir_unusable' | 'cwd_unavailable' | 'shell_tool_missing' | 'session_held_by_background' | 'worktree_resume_refused' | 'worktree_unverified' | 'cli_version_too_old' | 'bypass_root' | 'org_config_required_unavailable' | 'org_config_refused';
5921
5925
 
5922
5926
  export declare type SDKStatus = 'compacting' | 'requesting' | null;
5923
5927
 
@@ -6104,6 +6108,7 @@ export declare type SDKTaskStartedMessage = {
6104
6108
  * Whether the task was registered in the background (true) or in the foreground with the spawning tool call blocking on it (false). A resumed subagent is always registered in the background. A later move to the background arrives as task_updated patch.is_backgrounded. Set for local_agent and local_bash tasks.
6105
6109
  */
6106
6110
  is_backgrounded?: boolean;
6111
+
6107
6112
  /**
6108
6113
  * Nesting depth of a spawned subagent (local_agent) task: 1 for a top-level spawn, N+1 when spawned from inside a depth-N agent. Not set on other tasks.
6109
6114
  */
@@ -6793,7 +6798,7 @@ export declare interface Settings {
6793
6798
  */
6794
6799
  desktopSessionCleanupPeriodDays?: number;
6795
6800
  /**
6796
- * Set to false to turn off syncing of the skills you have enabled on claude.ai. In your user settings (or managed settings): nothing more is downloaded, previously synced skills (~/.claude/skills/synced) can no longer be run, are hidden from every session started afterwards, and are moved to ~/.claude/skills/.trash at the next launch (deleted after cleanupPeriodDays; re-downloaded, not restored, if you re-enable). In .claude/settings.local.json or --settings: downloads stop and synced skills are blocked and hidden for sessions in that workspace or invocation only (nothing is moved). Not read from project settings (.claude/settings.json). Only false is honored — the feature is enabled server-side for your account, so setting true does not turn it on early. While it is on, synced skills are available in every session, re-synced every 10 minutes, and removed when you disable them on claude.ai. Only applies when signed in with your Claude account.
6801
+ * Set to false to turn off syncing of the skills you have enabled on claude.ai. In your user settings (or managed settings): nothing more is downloaded, previously synced skills (~/.claude/skills/synced) can no longer be run, are hidden from every session started afterwards, and are moved to ~/.claude/skills/.trash at the next launch (deleted after cleanupPeriodDays; re-downloaded, not restored, if you re-enable). In .claude/settings.local.json or --settings: downloads stop and synced skills are blocked and hidden for sessions in that workspace or invocation only (nothing is moved). Not read from project settings (.claude/settings.json). Only false is honored — the feature is enabled server-side for your account, so setting true does not turn it on early. While it is on, synced skills are available in every session, re-synced about every 10 minutes while a session is in use and a quarter as often otherwise, and removed when you disable them on claude.ai. Only applies when signed in with your Claude account.
6797
6802
  */
6798
6803
  syncClaudeAiSkills?: boolean;
6799
6804
  /**