@anthropic-ai/claude-agent-sdk 0.3.193 → 0.3.195

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.193",
3
- "commit": "a1938d2a07a2e4fecbef4eeac813221929e97d22",
4
- "buildDate": "2026-06-25T18:25:46Z",
2
+ "version": "2.1.195",
3
+ "commit": "4603aa3f2ea164bd0974f82eb413ae7acc99a7ee",
4
+ "buildDate": "2026-06-26T01:56:37Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude",
8
- "checksum": "f7513a30385ad9019c237226fd6ec46508b3062ebefca8aedbe397d111a818ff",
9
- "size": 222248240
8
+ "checksum": "8b45adad93f336ab95f33e714494b19fd3377a494eb05c122c8677bc895876ad",
9
+ "size": 224682640
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "cba5c3bdca8ab5f8e7590406702d418f6114d9b39f48f16876680e881abf1ee8",
14
- "size": 230317808
13
+ "checksum": "7eb8716e6d6e6a278d13158793529336290837fca457facfec656f1b1a287c60",
14
+ "size": 234066032
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "39454ce62e795eeb4871a81f6453cda96e926e2db9a4dd41d0ec1b60b0153448",
19
- "size": 237419248
18
+ "checksum": "b02279999058dc80a0e1c5d39463d1545a178615492f84139aac8d61214a7e9a",
19
+ "size": 241154800
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "c9f04d929f18bd9a101f3897f27de4e1e0f15ebe8400d4aaf02983d73dd66b1d",
24
- "size": 240556856
23
+ "checksum": "8323e70125063147a4478b957745d835a87e5e72ffd25b838ea9a841c03e6a37",
24
+ "size": 244276024
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "658bbae05441c2d3792f9870a5001a1dfa7a62956abffc151aed7cae0adf9f7d",
29
- "size": 230667448
28
+ "checksum": "52713b5f7690764b3b4742807b1a6fab24ce5e01dabf82964b97f519e8f9e7fe",
29
+ "size": 234403000
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "b37861314ace243d8425ebce503c657c5d9f76af361f9bd8ca3bd34b2e71474a",
34
- "size": 235258240
33
+ "checksum": "63a2b3291369ff85e970c0cfd3767bb48065071ec12fb2d0055387ccde511541",
34
+ "size": 238977408
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "ffea22269bf66ce778ce845ea0c15cb5b21d39be82601a065c3eca6f7368da3e",
39
- "size": 231359136
38
+ "checksum": "3ef7fb7b16e169739640fe2903ee7011cff8b43d2dbb15f9badc9b11cfad18a3",
39
+ "size": 234930336
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "0bea15edaf5791220c646f9066bda84397a73053d88f225c7622c7a2ab45ff59",
44
- "size": 225839264
43
+ "checksum": "038fb49213c0ac828b5a8a1f31cf510753d7e7891e9ae4596673a602cff251f5",
44
+ "size": 229410464
45
45
  }
46
46
  }
47
47
  }
package/manifest.zst.json CHANGED
@@ -1,55 +1,55 @@
1
1
  {
2
- "version": "2.1.193",
3
- "commit": "a1938d2a07a2e4fecbef4eeac813221929e97d22",
4
- "buildDate": "2026-06-25T18:27:30Z",
2
+ "version": "2.1.195",
3
+ "commit": "4603aa3f2ea164bd0974f82eb413ae7acc99a7ee",
4
+ "buildDate": "2026-06-26T01:58:22Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude.zst",
8
- "checksum": "4a2ec55b60034283b5fa69f428e8f988ba34900df492570efa9d0b95ea8b2371",
9
- "size": 46939034,
8
+ "checksum": "edd737e0b727d846b333abea409fe41b288d93a61b57c9436ba5936a95777524",
9
+ "size": 46324238,
10
10
  "bundle": {
11
- "checksum": "b22dd015e35d7be690ab9bdb9881729f1193f7895cfe26537987b40d92abfef1",
12
- "size": 46942638
11
+ "checksum": "dadeba60923e54e98dc5a1a391be77839fb7f23bf1e66d69988daa951caf5e57",
12
+ "size": 46316695
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "03786846ce6be30dd8eacb4258802742d16ec380826b2f200c818a0dc24f974a",
18
- "size": 49963257,
17
+ "checksum": "d2b1b1ca02bf3f15d90e63c645c12e854cd9b860bc134278b9f5be2ccdc9ad51",
18
+ "size": 50621837,
19
19
  "bundle": {
20
- "checksum": "b65bc8bf45d0778e4bfd30fb3f4ad9ba9fe04467ee42b032fd11a1bda0bbb5ef",
21
- "size": 49966826
20
+ "checksum": "42b85b75f832b0e1ab2c2e27e7f7bdc3f7d754f26a9b09aee1ab8a3ca641ead8",
21
+ "size": 50626429
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "78e004c0239710b557cc94c16b3bfd68901890ee615f065269940ec45344b230",
27
- "size": 54766727
26
+ "checksum": "92790e9ac5e82011b13603fdc6cbd169f4404a7294dba096bfd53d4d148418ea",
27
+ "size": 55414570
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "f19d7c97b3f7a6042db6bd7c161f2cd79c9a989c561babc2aa9aba607d60b6c4",
32
- "size": 56010978
31
+ "checksum": "502eb0186d3f2af31fc1eff3a89d440ce682cb941a09ab9f95828635e2e6cdcf",
32
+ "size": 56663286
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "439690d551c0d5208f621fabb5bbf7692d28917c97c75fe2422c108d7f567cfd",
37
- "size": 53446704
36
+ "checksum": "6d318ddec8dc6bbab324ae0b70231160721f608c837a92a449c24359db87971a",
37
+ "size": 54087314
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "3ad75f2b78602007b48e78b8e44fbd93cc3a08f7426874f4848a93d03f117f6d",
42
- "size": 54812412
41
+ "checksum": "9ea3130f98bcdfa9651ce487c415787928e5392568b391628be2da4aa62f0ba2",
42
+ "size": 55471929
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "cd30d76348ef9d0af52d4b15bc72abc9d73e31ca8da5d3650cbb18cfdd767cd2",
47
- "size": 56154427
46
+ "checksum": "b1d4cfecfb3c5c617cf0c4f52406cee1f7f5c7c39ad73009c92e351066ca52f1",
47
+ "size": 56797947
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "3ab354ba3f088c1629fcb34beb2c71b99a27ea951a471d22567213136b8ae541",
52
- "size": 54174949
51
+ "checksum": "7ada1c6de7e4111a7bc128389f96f013af57997f39efb46d35759ed5ce2e5ab6",
52
+ "size": 54835024
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.193",
3
+ "version": "0.3.195",
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.193",
61
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.193",
62
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.193",
63
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.193",
64
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.193",
65
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.193",
66
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.193",
67
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.193"
60
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.195",
61
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.195",
62
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.195",
63
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.195",
64
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.195",
65
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.195",
66
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.195",
67
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.195"
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.193"
83
+ "claudeCodeVersion": "2.1.195"
84
84
  }
package/sdk-tools.d.ts CHANGED
@@ -2508,7 +2508,14 @@ export interface MonitorInput {
2508
2508
  /**
2509
2509
  * Shell command or script. Each stdout line is an event; exit ends the watch.
2510
2510
  */
2511
- command: string;
2511
+ command?: string;
2512
+ /**
2513
+ * WebSocket to open. Each text frame is an event; binary frames are reported as a placeholder line. Socket close ends the watch. Cannot be combined with command.
2514
+ */
2515
+ ws?: {
2516
+ url: string;
2517
+ protocols?: string[];
2518
+ };
2512
2519
  }
2513
2520
  export interface ArtifactInput {
2514
2521
  /**
package/sdk.d.ts CHANGED
@@ -2287,6 +2287,23 @@ export declare interface Query extends AsyncGenerator<SDKMessage, void> {
2287
2287
  * @returns The complete initialization response
2288
2288
  */
2289
2289
  initializationResult(): Promise<SDKControlInitializeResponse>;
2290
+ /**
2291
+ * Re-send the `initialize` control request to an already-running CLI.
2292
+ *
2293
+ * Use this after a transport gap (e.g. reattaching to a daemon whose
2294
+ * ring buffer evicted frames during a disconnect): the CLI's response
2295
+ * carries any `can_use_tool` / `request_user_dialog` control requests
2296
+ * the loop is still blocked on, and the SDK redelivers them to
2297
+ * `canUseTool` / `onUserDialog`. In-flight request_ids are deduped
2298
+ * SDK-side, but callbacks should be idempotent per request_id since a
2299
+ * request whose response was lost in the gap will be dispatched again.
2300
+ *
2301
+ * Unlike {@link Query.initializationResult}, this always sends a fresh request
2302
+ * rather than returning the cached first-connect result.
2303
+ *
2304
+ * @returns A fresh initialization response
2305
+ */
2306
+ reinitialize(): Promise<SDKControlInitializeResponse>;
2290
2307
  /**
2291
2308
  * Get the list of available skills for the current session.
2292
2309
  *