@anthropic-ai/claude-agent-sdk 0.3.305 → 0.3.307

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.305",
2
+ "version": "2.1.307",
3
3
  "manifestSignatureEnforcement": "flag",
4
- "commit": "6e723756d1226ddc2a4fefe5586e02bcc6a0501f",
5
- "buildDate": "2026-10-20T18:24:45Z",
4
+ "commit": "b208bbbc9ae5dc87a1a0a7f964be47e27a0543ab",
5
+ "buildDate": "2026-10-21T20:07:02Z",
6
6
  "platforms": {
7
7
  "darwin-arm64": {
8
8
  "binary": "claude",
9
- "checksum": "ea3ea3c08d2a9634a4651e687fcf900d410c489bce2b00f22bd7352b91ba704f",
10
- "size": 272984176
9
+ "checksum": "5b113a7752119470f1da419cb0e608af3361cae25b614216b13022093958fb2a",
10
+ "size": 274428784
11
11
  },
12
12
  "darwin-x64": {
13
13
  "binary": "claude",
14
- "checksum": "af7ad8d6d8b1e49059988f6657d91bb8b9feac127bf8bec005c4c27d0093f153",
15
- "size": 284167840
14
+ "checksum": "f569c691f072acf92d3e11ca46c8de34a267157f3c80f3a3e6b5267478f52dfe",
15
+ "size": 285620896
16
16
  },
17
17
  "linux-arm64": {
18
18
  "binary": "claude",
19
- "checksum": "5265a60217e667b75e126e887b49ac0f168ad8bb13c605c3e3df528519876dc0",
20
- "size": 290447544
19
+ "checksum": "1c67968ab8410c9644e2f4867167a0dab1a8c6c9de9cc83fe78449e5ae8a3633",
20
+ "size": 291889336
21
21
  },
22
22
  "linux-x64": {
23
23
  "binary": "claude",
24
- "checksum": "86cb722ab68348877dba7971e4d0c659919e05e6228c05e006e83da320e656ef",
25
- "size": 290532720
24
+ "checksum": "6021eb72d20d0682b720bdc63acd2a5cd2270895d1f10d9ca2a88cbfa7b9dd0e",
25
+ "size": 291974512
26
26
  },
27
27
  "linux-arm64-musl": {
28
28
  "binary": "claude",
29
- "checksum": "7fc83af6edf609219dd6412ae2c9a592a1903b912baf61779adc5b41159af333",
30
- "size": 282608984
29
+ "checksum": "31324c33dca077a5edb54a5eb8dec711d34c18c59966c52311489a6d71649907",
30
+ "size": 284050776
31
31
  },
32
32
  "linux-x64-musl": {
33
33
  "binary": "claude",
34
- "checksum": "9c517d738c8bd608c0ea97f12ad20655a5f28470c99181d626cba370c1dbddba",
35
- "size": 284192368
34
+ "checksum": "cb89e2aad16a971a0ee7367cbb1810083b67428598fdb76e8e4b460b7ee7a1bf",
35
+ "size": 285630064
36
36
  },
37
37
  "win32-x64": {
38
38
  "binary": "claude.exe",
39
- "checksum": "0ce7a3942cdd0c89b3e32173362b713aea9e8c24e1219976bad3984e8efadfd1",
40
- "size": 295628448
39
+ "checksum": "9537b37daacedc5a21f0f35e04d4fa6759c0bd969ddf2e56052810f63b27c918",
40
+ "size": 297079456
41
41
  },
42
42
  "win32-arm64": {
43
43
  "binary": "claude.exe",
44
- "checksum": "16f5e4ece22ab453298403d38f065b6eb83c465ed07ae8e6fa7a2025e0e4fbe2",
45
- "size": 279823008
44
+ "checksum": "75293206f795325fbef0ead9d6cfd97e50b19cac9b7af75696d8a9619171e3ea",
45
+ "size": 281273504
46
46
  }
47
47
  },
48
48
  "sdkCompat": {
49
49
  "testedWrapperVersions": [
50
- "0.3.272",
51
50
  "0.3.273",
52
51
  "0.3.274",
53
52
  "0.3.275",
@@ -76,7 +75,8 @@
76
75
  "0.3.301",
77
76
  "0.3.302",
78
77
  "0.3.303",
79
- "0.3.304"
78
+ "0.3.304",
79
+ "0.3.305"
80
80
  ],
81
81
  "harnessSchema": 1
82
82
  }
package/manifest.zst.json CHANGED
@@ -1,61 +1,60 @@
1
1
  {
2
- "version": "2.1.305",
2
+ "version": "2.1.307",
3
3
  "manifestSignatureEnforcement": "flag",
4
- "commit": "6e723756d1226ddc2a4fefe5586e02bcc6a0501f",
5
- "buildDate": "2026-10-20T18:26:25Z",
4
+ "commit": "b208bbbc9ae5dc87a1a0a7f964be47e27a0543ab",
5
+ "buildDate": "2026-10-21T20:08:45Z",
6
6
  "platforms": {
7
7
  "darwin-arm64": {
8
8
  "binary": "claude.zst",
9
- "checksum": "1dddc458ce8aacc49677b37c97efbba37a1b8f12bb3cbaf26388a47fbda4a6a9",
10
- "size": 92225972,
9
+ "checksum": "c1db200f9efacada14c923952d0c322dc9c0d40ce04fe4da5dc63c0d709c7b69",
10
+ "size": 92716037,
11
11
  "bundle": {
12
- "checksum": "f5b6a20ff4823fc0485f3edb0ac4b5b2bd681eb8865318918b8ff403e5ab19c9",
13
- "size": 92219351
12
+ "checksum": "5463eea87c4bf480ebf4654aef7caeb4102a86f7ea424975ed206e36f84b808f",
13
+ "size": 92724310
14
14
  }
15
15
  },
16
16
  "darwin-x64": {
17
17
  "binary": "claude.zst",
18
- "checksum": "5ea2f243cbd5f7821a5502abb973ee236cea93d342137b5ce1828a10030eacdd",
19
- "size": 97602705,
18
+ "checksum": "d622c6b8052f392850121db7992fc0536efb41c077503b7c673d611074ba8642",
19
+ "size": 98099753,
20
20
  "bundle": {
21
- "checksum": "34ecf434b86ae2d5b2644abfae7a7a1682eaa00f711c618017a75e096b635819",
22
- "size": 97597227
21
+ "checksum": "f0eca963fa93bd1c0188453ca2516739100c4040de6b91847b9833f47814b3bb",
22
+ "size": 98107586
23
23
  }
24
24
  },
25
25
  "linux-arm64": {
26
26
  "binary": "claude.zst",
27
- "checksum": "2823ad5678a72913e8b2f747e4a82fc6b157cb4896e13b8abafc07fbe278446b",
28
- "size": 101510529
27
+ "checksum": "4bcc6b9a2461cb5e02f2b8cf6f1b2ca4abeae334d2917bb1f9d1deacc54474aa",
28
+ "size": 101995322
29
29
  },
30
30
  "linux-x64": {
31
31
  "binary": "claude.zst",
32
- "checksum": "45cfa7d4f6244024a3b1f0a1e6806afa254013f8065e8ea9ba937d7d696a26a3",
33
- "size": 102476450
32
+ "checksum": "3dcae6ae2d87b75c22ca2f957c6266dbcbf351beabbbb58fa61f4145a1198075",
33
+ "size": 102978767
34
34
  },
35
35
  "linux-arm64-musl": {
36
36
  "binary": "claude.zst",
37
- "checksum": "bddf5553e8857e3322d8a64df1ea6c2d0f601e9b9b4cf5034f94fb4c1d7aa722",
38
- "size": 99865148
37
+ "checksum": "80cfcca501f1ac05436abbd2f35414898992f97afbe9181d9a5d0787f556fd2b",
38
+ "size": 100346509
39
39
  },
40
40
  "linux-x64-musl": {
41
41
  "binary": "claude.zst",
42
- "checksum": "60e88b5ab52e05e8391a156c6c580dc26957fe372f9816f3d46e5378f3efd4e9",
43
- "size": 100893284
42
+ "checksum": "4d36df0a600d68a9e15f6d285e8e6a70322dc9b490db6932488cbbbbb3336433",
43
+ "size": 101391955
44
44
  },
45
45
  "win32-x64": {
46
46
  "binary": "claude.exe.zst",
47
- "checksum": "344d107ee9f9104263abed67c78adde0152da9031bb64128fa29cf96986ad134",
48
- "size": 105764570
47
+ "checksum": "7cb3ef7c497dce6ef7de069c5e0bb314c22e9f2947776a31d156b146daccfd3a",
48
+ "size": 106263804
49
49
  },
50
50
  "win32-arm64": {
51
51
  "binary": "claude.exe.zst",
52
- "checksum": "451ec407bf94b5470dbc98e20266d85c1fdcdb15a11fa74f1263528b0cbde719",
53
- "size": 101001199
52
+ "checksum": "b726b532f5fc94bf76af5ec1663e61fc39dc2278f1db827e55a716c8c43e0aa4",
53
+ "size": 101476081
54
54
  }
55
55
  },
56
56
  "sdkCompat": {
57
57
  "testedWrapperVersions": [
58
- "0.3.272",
59
58
  "0.3.273",
60
59
  "0.3.274",
61
60
  "0.3.275",
@@ -84,7 +83,8 @@
84
83
  "0.3.301",
85
84
  "0.3.302",
86
85
  "0.3.303",
87
- "0.3.304"
86
+ "0.3.304",
87
+ "0.3.305"
88
88
  ],
89
89
  "harnessSchema": 1
90
90
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-agent-sdk",
3
- "version": "0.3.305",
3
+ "version": "0.3.307",
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.305",
65
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.305",
66
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.305",
67
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.305",
68
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.305",
69
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.305",
70
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.305",
71
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.305"
64
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.307",
65
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.307",
66
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.307",
67
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.307",
68
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.307",
69
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.307",
70
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.307",
71
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.307"
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-3z5ypevg.mjs",
89
- "core-be3nes5v.mjs",
90
- "core-cpeswmq9.mjs",
91
- "core-thy7v25j.mjs"
88
+ "core-3qt252mw.mjs",
89
+ "core-dk3ky68t.mjs",
90
+ "core-magja67b.mjs",
91
+ "core-s632fyaa.mjs"
92
92
  ],
93
- "claudeCodeVersion": "2.1.305"
93
+ "claudeCodeVersion": "2.1.307"
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
  */