@anthropic-ai/claude-agent-sdk 0.3.306 → 0.3.308

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.json CHANGED
@@ -1,53 +1,52 @@
1
1
  {
2
- "version": "2.1.306",
2
+ "version": "2.1.308",
3
3
  "manifestSignatureEnforcement": "flag",
4
- "commit": "01ae8327ca9931db91a0802d6e8e377419dd44e6",
5
- "buildDate": "2026-10-21T01:32:56Z",
4
+ "commit": "320f66eb8f834be58a10c98283ebef19e3640c37",
5
+ "buildDate": "2026-10-22T03:48:37Z",
6
6
  "platforms": {
7
7
  "darwin-arm64": {
8
8
  "binary": "claude",
9
- "checksum": "b5d795b7760032d79954b55a9cd1876dcf3a8dc9608fd6bb9f618593f69fd44b",
10
- "size": 272984176
9
+ "checksum": "ca923c86ac84b30574a82331a05b6e066c27477a926ceaffe46a845a33e4dd37",
10
+ "size": 274675680
11
11
  },
12
12
  "darwin-x64": {
13
13
  "binary": "claude",
14
- "checksum": "fc273f4caaeb11189bfed82251496728cf1e650563cb9b5f70d91ec6bec42c17",
15
- "size": 284167840
14
+ "checksum": "9a0bc140f5fb06e6366624d770371ef290e6731d1e84c4def5daf4df946d1b59",
15
+ "size": 285902384
16
16
  },
17
17
  "linux-arm64": {
18
18
  "binary": "claude",
19
- "checksum": "77d257d5e8b8730ec61d5a4992a8eb65550aaf9589f464988aa1a9684338d801",
20
- "size": 290447544
19
+ "checksum": "fdd22e6cbb734d580f5664c48df4294eeec850218ff07f186f9af30426396ee1",
20
+ "size": 292085944
21
21
  },
22
22
  "linux-x64": {
23
23
  "binary": "claude",
24
- "checksum": "520bc6c1f40af466bd03a278b5ae1af1a2938bc7de5b9e5cb15526da20d71cfe",
25
- "size": 290532720
24
+ "checksum": "356733f185fa988e6bf3aa9a555269fdd167982a2e2a80d3c8a78037bb92ad58",
25
+ "size": 292232560
26
26
  },
27
27
  "linux-arm64-musl": {
28
28
  "binary": "claude",
29
- "checksum": "cfd2e1ee88ed3d5653dffedccb6bdd3c9c1ec8718b7f9f9e1a4fcbcd2ab72e1f",
30
- "size": 282608984
29
+ "checksum": "b820bec20177aa09875515cf5ffadb445ecf814ec7c8ed51ba2f86c3090a692d",
30
+ "size": 284313472
31
31
  },
32
32
  "linux-x64-musl": {
33
33
  "binary": "claude",
34
- "checksum": "a0d3de9061d31ce3d4bea75fbe52a99764ef2eb7a68feaf6f5438d3f3a2091d9",
35
- "size": 284192368
34
+ "checksum": "45cc10091e10ca658daa691e879058ba1d4752218c63577d1c7d54b0c7dc9a68",
35
+ "size": 285896848
36
36
  },
37
37
  "win32-x64": {
38
38
  "binary": "claude.exe",
39
- "checksum": "f6bc9de38f507c36c9a3bb0085a59a27e32156e2208252bf1707c4e3ef309114",
40
- "size": 295628960
39
+ "checksum": "c9796ba22a9221586b36371b36f5b66198d66eb4badf6a4cf4a5f7b07becea53",
40
+ "size": 297376928
41
41
  },
42
42
  "win32-arm64": {
43
43
  "binary": "claude.exe",
44
- "checksum": "4f0c6c80521987a4c649a31e9e51e40ea5736f5dc5089a7b0e5a375aadfcb16e",
45
- "size": 279824032
44
+ "checksum": "35b5af5dde46a775ccd5a4d15760913c6088cf7292e1b15f0b09b1fd3f93bfd2",
45
+ "size": 281453216
46
46
  }
47
47
  },
48
48
  "sdkCompat": {
49
49
  "testedWrapperVersions": [
50
- "0.3.273",
51
50
  "0.3.274",
52
51
  "0.3.275",
53
52
  "0.3.276",
package/manifest.zst.json CHANGED
@@ -1,61 +1,60 @@
1
1
  {
2
- "version": "2.1.306",
2
+ "version": "2.1.308",
3
3
  "manifestSignatureEnforcement": "flag",
4
- "commit": "01ae8327ca9931db91a0802d6e8e377419dd44e6",
5
- "buildDate": "2026-10-21T01:34:20Z",
4
+ "commit": "320f66eb8f834be58a10c98283ebef19e3640c37",
5
+ "buildDate": "2026-10-22T03:50:00Z",
6
6
  "platforms": {
7
7
  "darwin-arm64": {
8
8
  "binary": "claude.zst",
9
- "checksum": "5716c3679354804b7cf338de9a9c49941e53c2f3264181851f98959d7a74dd2e",
10
- "size": 92227028,
9
+ "checksum": "e4d214226582e2f52eafa3de4b2f55469677974e49e6e96376aad740c37d2557",
10
+ "size": 92822156,
11
11
  "bundle": {
12
- "checksum": "ddf9e2f17afc54c1a76d4dde4fdd43c52465e7784cc31929cd34950ea3ab6a55",
13
- "size": 92223341
12
+ "checksum": "a93ded4b1b47515ff4ce671f79070a5398c47b62c13298a01067334a53f65764",
13
+ "size": 92821576
14
14
  }
15
15
  },
16
16
  "darwin-x64": {
17
17
  "binary": "claude.zst",
18
- "checksum": "e436143d59c1daa4a14201437ba8bbea01ba8567f1fc76368735221156a7c7af",
19
- "size": 97603863,
18
+ "checksum": "540f89af5ad8e2048390719961739939d59d64a0f3b01af1a158cb1be6f412ae",
19
+ "size": 98219435,
20
20
  "bundle": {
21
- "checksum": "0d4c2a03d7fece0d5056bcf4a75f3c7773e6934c52a888a9563beae2403dfa18",
22
- "size": 97598348
21
+ "checksum": "21d7adb424d30f022ab6094c19b54fc2c991a98a780bc05597c69f6fc44bd1da",
22
+ "size": 98232302
23
23
  }
24
24
  },
25
25
  "linux-arm64": {
26
26
  "binary": "claude.zst",
27
- "checksum": "0af97e326ddc5260d40d50192f5b46a17237aabd90f8768c3ee38111975ff2d7",
28
- "size": 101510822
27
+ "checksum": "6f872ce2362e3485abbd7dcb921514e3319ebe36c2efabb7193f128ed337d8d4",
28
+ "size": 102117787
29
29
  },
30
30
  "linux-x64": {
31
31
  "binary": "claude.zst",
32
- "checksum": "e5a0284d14ae555ef208c6d2987e29f298cb3bb69a7497c9f24217980233acd3",
33
- "size": 102479145
32
+ "checksum": "f8b3641a8d3664420bde0153433e03fd3fad5351a1a12cf6f798ed86c52c9ea9",
33
+ "size": 103095977
34
34
  },
35
35
  "linux-arm64-musl": {
36
36
  "binary": "claude.zst",
37
- "checksum": "316e694b2dea6e0502db3ff595448492d271e9814d78ec1c0fb8e05e18d40b80",
38
- "size": 99865566
37
+ "checksum": "855a21751041185dbd5d73386e5a9e454f0ce434a8a4b23cb2ca66add70b5427",
38
+ "size": 100464884
39
39
  },
40
40
  "linux-x64-musl": {
41
41
  "binary": "claude.zst",
42
- "checksum": "ee11a8e707490ed7daf66f8e7d18bf29eaa6adb79a83e025e66e1e377df9efc1",
43
- "size": 100891610
42
+ "checksum": "0c66f9a325b6c5c308272fd087c0f0994e6ebc081e64a4a51fcbcfbbfb484c37",
43
+ "size": 101509546
44
44
  },
45
45
  "win32-x64": {
46
46
  "binary": "claude.exe.zst",
47
- "checksum": "85e3413cd24d8cd2f85989a1a036359d95aed8eda79996ba5b4ed9c3e69549d0",
48
- "size": 105764835
47
+ "checksum": "c17a819afb40d41ed558bacd5c432b52efdd004fe98068e6b47e77f540156bb9",
48
+ "size": 106384354
49
49
  },
50
50
  "win32-arm64": {
51
51
  "binary": "claude.exe.zst",
52
- "checksum": "d09b903089029892058b6479e7146af612c70602b3496c0a7c6acebc55eeece7",
53
- "size": 101002089
52
+ "checksum": "23655dab55802075e1652adb7117354424998ac4a9acca678ac2bf8903c79310",
53
+ "size": 101582794
54
54
  }
55
55
  },
56
56
  "sdkCompat": {
57
57
  "testedWrapperVersions": [
58
- "0.3.273",
59
58
  "0.3.274",
60
59
  "0.3.275",
61
60
  "0.3.276",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-agent-sdk",
3
- "version": "0.3.306",
3
+ "version": "0.3.308",
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.306",
65
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.306",
66
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.306",
67
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.306",
68
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.306",
69
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.306",
70
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.306",
71
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.306"
64
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.308",
65
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.308",
66
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.308",
67
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.308",
68
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.308",
69
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.308",
70
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.308",
71
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.308"
72
72
  },
73
73
  "files": [
74
74
  "sdk.mjs",
@@ -85,10 +85,10 @@
85
85
  "extractFromBunfs.d.ts",
86
86
  "manifest.json",
87
87
  "manifest.zst.json",
88
- "core-50f20fv8.mjs",
89
- "core-mh5qmqqf.mjs",
90
- "core-p79weg14.mjs",
91
- "core-x5tcx9zy.mjs"
88
+ "core-36zyfan5.mjs",
89
+ "core-5682eevd.mjs",
90
+ "core-nne0e2ds.mjs",
91
+ "core-xpxe8nzb.mjs"
92
92
  ],
93
- "claudeCodeVersion": "2.1.306"
93
+ "claudeCodeVersion": "2.1.308"
94
94
  }
package/sdk.d.ts CHANGED
@@ -405,6 +405,7 @@ declare type ControlErrorResponse = {
405
405
  */
406
406
  error: string;
407
407
 
408
+
408
409
  /**
409
410
  * can_use_tool requests this CLI process has issued and not yet resolved, so a client joining an already-initialized session learns about in-flight prompts. Always present (possibly empty) on a success `initialize` response from Claude Code v2.1.268 or later; earlier versions could omit it, so treat absence as an older CLI rather than as "nothing pending". A prompt inherited from a previous worker of the same session can remain answerable without appearing here and without a control_cancel_request; session_state "requires_action" on the same reply signals one the CLI is holding, but not every inherited prompt is signalled.
410
411
  */
@@ -3116,6 +3117,7 @@ export declare interface Query extends AsyncGenerator<SDKMessage, void> {
3116
3117
 
3117
3118
 
3118
3119
 
3120
+
3119
3121
  /**
3120
3122
  * Read a file from the session's filesystem for the remote sidebar
3121
3123
  * viewer. Path is resolved against cwd and gated by the same
@@ -4817,6 +4819,7 @@ export declare type SDKControlInterruptResponse = {
4817
4819
  still_queued: string[];
4818
4820
 
4819
4821
 
4822
+
4820
4823
  /**
4821
4824
  * Present only when the request set cancel_queued:true — uuids of main-thread commands cancelled by this interrupt: every survivor that would otherwise have appeared under `still_queued`, including any uuid that was mid-fold at the interrupt instant (this request also aborts, so the fold never delivers it). Each listed uuid has been removed (queue-resident) or marked cancel-pending (the first-command prewait window, closed by the drain loop's backstop) and emits a terminal 'cancelled' lifecycle synchronously at the first such interrupt (a repeat interrupt over the same parked batch re-lists the uuid idempotently without re-emitting); none will run. Where one of them is the re-run of an interrupted turn that also answered for other client messages whose re-sent copies had been set aside for it, those messages' uuids are listed behind the commands' too: they were in no queue and never under `still_queued`, each has its terminal 'cancelled' lifecycle, and a repeat interrupt does not list them again. Same coverage caveats as `still_queued` (uuid-stamped main-thread only; internally-enqueued uuids may appear). Advertised by the `interrupt_cancel_queued_v1` capability.
4822
4825
  */
@@ -5901,6 +5904,7 @@ export declare type SDKRateLimitInfo = {
5901
5904
  canUserPurchaseCredits?: boolean;
5902
5905
  hasChargeableSavedPaymentMethod?: boolean;
5903
5906
 
5907
+
5904
5908
  };
5905
5909
 
5906
5910
  export declare type SDKResultError = {
@@ -6514,6 +6518,7 @@ export declare type SDKUserMessage = {
6514
6518
  */
6515
6519
  tool_use_result?: unknown;
6516
6520
  priority?: 'now' | 'next' | 'later';
6521
+
6517
6522
  origin?: SDKMessageOrigin;
6518
6523
 
6519
6524
 
@@ -6610,6 +6615,7 @@ export declare type SDKUserMessageReplay = {
6610
6615
  */
6611
6616
  tool_use_result?: unknown;
6612
6617
  priority?: 'now' | 'next' | 'later';
6618
+
6613
6619
  origin?: SDKMessageOrigin;
6614
6620
 
6615
6621
 
@@ -9145,7 +9151,7 @@ export declare interface Settings {
9145
9151
  */
9146
9152
  enableWeakerNestedSandbox?: boolean;
9147
9153
  /**
9148
- * Linux/WSL only: Let sandboxed commands create user namespaces of their own, which the sandbox refuses by default. Needed by tools that sandbox themselves that way, such as Chromium's and Electron's sandbox, rootless podman or buildah, a nested bubblewrap, and `unshare`. **Removes code-execution isolation** — in any folder a hostile command may write, it can then bypass filesystem.denyWrite, filesystem.denyRead, credentials.files entries and the paths the sandbox always write-protects (such as .claude/settings.json, git hooks and git config), and so plant code that later runs outside the sandbox; while autoAllowBashIfSandboxed is on, the command that plants it needs no approval. Default: false. Only honored from user, managed/policy, or CLI (--settings) settings — true from project settings (.claude/settings.json and .claude/settings.local.json) is ignored (false there still applies).
9154
+ * Linux/WSL only: Let sandboxed commands create user namespaces of their own, which the sandbox refuses by default. Needed by tools that sandbox themselves that way, such as Chromium's and Electron's sandbox, a nested bubblewrap, and `unshare`. **Removes code-execution isolation** — in any folder a hostile command may write, it can then bypass filesystem.denyWrite, filesystem.denyRead, credentials.files entries and the paths the sandbox always write-protects (such as .claude/settings.json, git hooks and git config), and so plant code that later runs outside the sandbox; while autoAllowBashIfSandboxed is on, the command that plants it needs no approval. Default: false. Only honored from user, managed/policy, or CLI (--settings) settings — true from project settings (.claude/settings.json and .claude/settings.local.json) is ignored (false there still applies).
9149
9155
  */
9150
9156
  allowNestedUserNamespaces?: boolean;
9151
9157
  /**
@@ -9490,6 +9496,10 @@ export declare interface Settings {
9490
9496
  */
9491
9497
  startDirectory?: string;
9492
9498
  }[];
9499
+ /**
9500
+ * SSH connections in Claude Desktop on macOS and Linux whose host comes from a command. A list of entries, each with `id`, `name` and `command`, and optionally `sshIdentityFile` and `startDirectory`. When you ask Desktop to create or replace an entry's host, it runs `command` on this computer: a program name or absolute path, followed by plain arguments. There is no shell, so quotes, pipes, variables and a leading `~` do not work. The command must print only the host on standard output: `host` or `user\@host` on one line, or a JSON object with `sshHost` and, optionally, `sshPort` and `startDirectory`. Desktop reads this key only from user settings and from this computer's managed settings. Claude Code itself does not use it.
9501
+ */
9502
+ sshHostCommands?: unknown[];
9493
9503
  /**
9494
9504
  * CLAUDE.md-style instructions injected as organization-managed memory. Only honored from managed/policy settings.
9495
9505
  */