@anthropic-ai/claude-agent-sdk 0.3.204 → 0.3.205

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,47 +1,47 @@
1
1
  {
2
- "version": "2.1.204",
3
- "commit": "51bd0ba270a17535ce551f0eff5d09553b44a9e1",
4
- "buildDate": "2026-07-07T23:24:03Z",
2
+ "version": "2.1.205",
3
+ "commit": "4cf2699a14277d4a8edf7e74442381071fc0cfd2",
4
+ "buildDate": "2026-07-08T17:46:21Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude",
8
- "checksum": "1677b67595b6251156d62600dc85d4070ec385b72dd0b07e73742a56030952c3",
9
- "size": 236961904
8
+ "checksum": "33e28624c5ae84f2bd7d2d8761e5d2e77997ba965cb11b6448de6b6e2c566f9c",
9
+ "size": 237437968
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "9ccea5f19ec0462f3b983ff3400a97adaf16a83c3dc36a69b916805f2bc8c829",
14
- "size": 246384080
13
+ "checksum": "4299a3f48551ef365f2d056f24d87e84b822c4c10b6acc46979446b7b5c60ceb",
14
+ "size": 246862928
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "c37256a8c3998b8675e8385f1ae4677d69bdff1e717c389296eec70e02e317ef",
19
- "size": 253344496
18
+ "checksum": "c1874c85bcd3a88b70439fd50ff5910b7e6ac5371c14dd49d4ccc2878a592d09",
19
+ "size": 253803248
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "c8ee1ea69154533c691a68f46abb645196fe7339d26e6fc204cc7f08220139d3",
24
- "size": 256535352
23
+ "checksum": "dd8734c0b6a503fe1d17425184e57b397c30bb0337a33f1470d9985febfe5b09",
24
+ "size": 257006392
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "d87a3b19f01bbf28d05e7ff7c449923fc520f2d64c4227373ccbf24dec6438f3",
29
- "size": 246592696
28
+ "checksum": "a8cd2a626d7d0b5fb3516164a4cf3b4acbbadb053a5b1b2a2462ccbd2ebf6bde",
29
+ "size": 247051448
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "b2d7a23342e315f8dd0d253b14f394bffb5ba04d434b7631c9837e38d99fde35",
34
- "size": 251224448
33
+ "checksum": "20018df16e75f4287c3bfb088e04019452cf262f66ee43041e285113c4e479d8",
34
+ "size": 251695488
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "e1d82bf346d99db3e611b75a4afc5fdf1530d8d8c546389cf45ac8250bce4af1",
39
- "size": 246707360
38
+ "checksum": "f09120889098672074e7c5166d5474da0c5482f2bec898b3510cacd9c1fefa42",
39
+ "size": 247162528
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "085f7d5c98dfec2681996cacbf6185d1439fdc7208087afa99c22c07132b9a56",
44
- "size": 241173664
43
+ "checksum": "9a86e5acbc584ab7c1b684f1cc1bf5c7bddd6afd4817c0d2c2113d15bfbff0a9",
44
+ "size": 241629344
45
45
  }
46
46
  }
47
47
  }
package/manifest.zst.json CHANGED
@@ -1,55 +1,55 @@
1
1
  {
2
- "version": "2.1.204",
3
- "commit": "51bd0ba270a17535ce551f0eff5d09553b44a9e1",
4
- "buildDate": "2026-07-07T23:25:43Z",
2
+ "version": "2.1.205",
3
+ "commit": "4cf2699a14277d4a8edf7e74442381071fc0cfd2",
4
+ "buildDate": "2026-07-08T17:48:20Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude.zst",
8
- "checksum": "1d4527d26b9cbc27b52428ec6877ed12ade6173bac0d04dd0fc9bae9cdbb4a32",
9
- "size": 48687311,
8
+ "checksum": "b1713d2279428d0c10acfa1731393ffa5cf30f3c5955ef172a6b13ae5af49023",
9
+ "size": 48757644,
10
10
  "bundle": {
11
- "checksum": "10635839917bd4975223bb7221e2f94bc4219ecba4ff83a9dafe1463a05820ef",
12
- "size": 48693339
11
+ "checksum": "14cf66d61f52fc0b1674912a62f823538b2692059f8eeecb579c054d7e813a21",
12
+ "size": 48749372
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "19043c1ddfef6fd794ed5b925ba74a75e539990d51700386f696587b80f088e5",
18
- "size": 53073836,
17
+ "checksum": "22c4e2db930e973ef11572b9972a1b6d58a7b49835c2e2107eca88b7b3746d38",
18
+ "size": 53154391,
19
19
  "bundle": {
20
- "checksum": "1e349acd3508480f5bc453e0eb67af926fa74f802efb62d47b994cda9efa9ac9",
21
- "size": 53076746
20
+ "checksum": "3f3a79ecf0da7a80e27fd58cd742c65daa5236e45c28e34127616409ba8410a5",
21
+ "size": 53153125
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "82f78aced693423886d93c7281fdf7bbd0dd2dd9e2232d9793ea0e80f32c782f",
27
- "size": 57767671
26
+ "checksum": "3e746e549d2c1f5e7ee68d84c5adecf6a54cba672ccce09ab982b839890673de",
27
+ "size": 57833829
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "51316279ed58bb1cb78e7932c58b96d39954833c074be0ba3503970b1646db06",
32
- "size": 59016642
31
+ "checksum": "b7f51e61f52b316499bfd3b60d8eb188bea835cd6d226c68ea63c9e78d94bbf8",
32
+ "size": 59080834
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "303032c7733b06d25db66507628dcd25c1dc8a27884215ee539c88cafdae171f",
37
- "size": 56440401
36
+ "checksum": "fcda3caf5d92259a27b7561ba8a0d98e3892d9738078508b94da13ed80ebaa17",
37
+ "size": 56501960
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "ad717cd837bf4110d8bbf30d7b7068b693c5620db6f7624f6e522ef56cd89154",
42
- "size": 57824202
41
+ "checksum": "6d5c482230c17f87dfca84b1792cbbe0be16e67cfd0bb059f32fab70652ce8f2",
42
+ "size": 57890693
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "779d7d102639728d426b38c9b47473d14bfbcb02c445d2d034a0d8ef4214305c",
47
- "size": 59136883
46
+ "checksum": "1b3fef8dd08568bd68f352111c879fcad444f16c527b242633066819855744d3",
47
+ "size": 59229824
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "bfeb8611403c789575cb5a231fb2adccb5ee3a5d361bc825966f1812d1b1721f",
52
- "size": 57178875
51
+ "checksum": "3210095a295804291820f2901293ce0a5cf51fcdf272c4b13054c8579c4aca28",
52
+ "size": 57260419
53
53
  }
54
54
  }
55
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-agent-sdk",
3
- "version": "0.3.204",
3
+ "version": "0.3.205",
4
4
  "main": "sdk.mjs",
5
5
  "types": "sdk.d.ts",
6
6
  "exports": {
@@ -57,14 +57,14 @@
57
57
  "zod": "^4.0.0"
58
58
  },
59
59
  "optionalDependencies": {
60
- "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.204",
61
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.204",
62
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.204",
63
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.204",
64
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.204",
65
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.204",
66
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.204",
67
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.204"
60
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.205",
61
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.205",
62
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.205",
63
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.205",
64
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.205",
65
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.205",
66
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.205",
67
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.205"
68
68
  },
69
69
  "files": [
70
70
  "sdk.mjs",
@@ -80,5 +80,5 @@
80
80
  "manifest.json",
81
81
  "manifest.zst.json"
82
82
  ],
83
- "claudeCodeVersion": "2.1.204"
83
+ "claudeCodeVersion": "2.1.205"
84
84
  }
package/sdk-tools.d.ts CHANGED
@@ -360,6 +360,7 @@ export type ArtifactOutput =
360
360
  };
361
361
  warnings?: string[];
362
362
  contract?: string;
363
+ updated?: boolean;
363
364
  }
364
365
  | {
365
366
  artifacts: {
@@ -518,7 +519,7 @@ export interface TaskOutputInput {
518
519
  }
519
520
  export interface ExitPlanModeInput {
520
521
  /**
521
- * Prompt-based permissions needed to implement the plan. These describe categories of actions rather than specific commands.
522
+ * Deprecated: no longer used.
522
523
  */
523
524
  allowedPrompts?: {
524
525
  /**
package/sdk.d.ts CHANGED
@@ -2235,9 +2235,13 @@ export declare interface Query extends AsyncGenerator<SDKMessage, void> {
2235
2235
  */
2236
2236
  /**
2237
2237
  * Interrupt the current query execution. The query will stop processing
2238
- * and return control to the caller.
2238
+ * and return control to the caller. On CLIs advertising the
2239
+ * `interrupt_receipt_v1` capability (system/init `capabilities`) the
2240
+ * resolved value is the interrupt receipt — `still_queued` uuids of async
2241
+ * user messages that WILL still run unless cancelled first. Older CLIs
2242
+ * resolve to `undefined`.
2239
2243
  */
2240
- interrupt(): Promise<void>;
2244
+ interrupt(): Promise<SDKControlInterruptResponse | undefined>;
2241
2245
  /**
2242
2246
  * Change the permission mode for the current session.
2243
2247
  * Only available in streaming input mode.
@@ -3391,6 +3395,16 @@ declare type SDKControlInterruptRequest = {
3391
3395
 
3392
3396
  };
3393
3397
 
3398
+ /**
3399
+ * Result of an interrupt operation. Advertised by the interrupt_receipt_v1 capability on system/init; older CLIs send an empty success response with no still_queued field.
3400
+ */
3401
+ export declare type SDKControlInterruptResponse = {
3402
+ /**
3403
+ * Uuids of async user messages that survive this interrupt: commands still in the queue, plus any batch already dequeued for the imminent turn but not yet reachable by the abort. These WILL run unless cancelled first. Cancellation granularity: uuids still in the queue are individually cancellable via cancel_async_message; once a batch is dequeued and coalesced into one turn, cancelling a NON-representative member uuid is a no-op (its content still runs), while cancelling the batch-representative uuid drops the WHOLE coalesced batch — in both cases the cancel response reports cancelled:false because the message was no longer in the queue. Coverage caveats: only uuid-STAMPED messages appear (a message enqueued without a uuid still runs but is never listed, so [] does not mean "nothing will run"); only main-thread messages are listed (subagent-addressed messages are out of scope); and the list may include internally-enqueued uuids the client never sent (cron triggers, auto-resume continuations) — ignore unknown uuids rather than treating them as an error. Ordering: on a clean interrupt this receipt is written before the interrupted turn result; a turn that crashes during interrupt handling emits its error result on a direct-write path that may precede the receipt. Snapshot is taken synchronously with abort processing — probing the queue after the interrupted result instead always loses the race against the drain loop, which starts the next queued turn immediately.
3404
+ */
3405
+ still_queued: string[];
3406
+ };
3407
+
3394
3408
  /**
3395
3409
  * Requests the worker's selectable model catalog. Fulfills the caps.modelCatalog capability: in a remote thin-client session the worker's provider, settings cascade, and enforcement policy decide which models the session can run, so the thin client must ask rather than read its own getModelOptions().
3396
3410
  */
@@ -3866,12 +3880,19 @@ export declare type SDKMessageOrigin = {
3866
3880
  } | {
3867
3881
  kind: 'peer';
3868
3882
  from: string;
3883
+ /**
3884
+ * Sender display name, normalized by the harness: Unicode control, format, surrogate, and line/paragraph-separator code points stripped (categories Cc/Cf/Cs/Zl/Zp — covers bidi controls, zero-width characters, and tag characters), trimmed, at most 64 code points (+ ellipsis, never splitting a surrogate pair). Sender-asserted display text (the addressable identity is `from`) — render it as reported speech, but no client-side character sanitization is needed. Absent when the wire is not exactly one harness-formed envelope and on messages from older senders.
3885
+ */
3869
3886
  name?: string;
3870
3887
 
3871
3888
  /**
3872
3889
  * Task id of the in-process background subagent that sent this message, stamped by the harness from the sending loop (never from tool input). Absent for cross-session peers.
3873
3890
  */
3874
3891
  senderTaskId?: string;
3892
+ /**
3893
+ * Decoded message body with the peer envelope stripped — byte-exact with what the model sees. Present only when the turn is exactly one harness-formed envelope (or an in-process agent message); render this instead of re-parsing the message text.
3894
+ */
3895
+ body?: string;
3875
3896
  } | {
3876
3897
  kind: 'task-notification';
3877
3898
  } | {
@@ -4251,6 +4272,10 @@ export declare type SDKSystemMessage = {
4251
4272
 
4252
4273
 
4253
4274
  fast_mode_state?: FastModeState;
4275
+ /**
4276
+ * Protocol capabilities this CLI supports, so SDK consumers can feature-detect instead of version-sniffing. Open set — ignore unknown values; check each capability for exactly the behavior you use. 'interrupt_receipt_v1' = the interrupt control_response success payload carries still_queued (uuids of async user messages that survive the interrupt). Absent on older CLIs.
4277
+ */
4278
+ capabilities?: string[];
4254
4279
 
4255
4280
 
4256
4281