@anthropic-ai/claude-agent-sdk 0.3.187 → 0.3.191

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.187",
3
- "commit": "6a53320fad5541a68d79e4b6c53677df77b98e33",
4
- "buildDate": "2026-06-23T17:07:42Z",
2
+ "version": "2.1.191",
3
+ "commit": "397db5e73d569118815b8037ca9ff2483a06bbfe",
4
+ "buildDate": "2026-06-24T11:32:23Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude",
8
- "checksum": "a59a16ba4922adab7a145728f215d042184d349f5f7e72cddb7fc114250a4ce3",
9
- "size": 215994048
8
+ "checksum": "99fdfb552a5260e649aedd06c024d0a4105b09cefec0bf67d558e017ee66c400",
9
+ "size": 219856224
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "7f57b6935b4246d03cb7acee90dc22153083483a267da589c5c920dd04744c36",
14
- "size": 224795776
13
+ "checksum": "6e83aad5fc4fd459fd74539cda06d2279105eac2befc603d2fba6494974cb2a4",
14
+ "size": 229178416
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "b49be8a5e565bf2d45b50d2de62017b25462131acc9425d2fdb98b8f29c9dce2",
19
- "size": 232240864
18
+ "checksum": "1a31a7cbcfd784f8c073bfc8a0a1583fb6e93e60ef70b76d7fcf663ffed8949b",
19
+ "size": 236305136
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "bb02fcb33626f8c599d10d8bee38585d4cf8d4225c3b497869dee7454e7bf361",
24
- "size": 234874664
23
+ "checksum": "1038dba88bdf1b80941dc3e383e93b088325b00497329ac50da460c8786d5bee",
24
+ "size": 239438648
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "972fc2e0bc8104edb593ce7723d4414c0ed8e4df6d90ad26ae48097b1d910478",
29
- "size": 225620168
28
+ "checksum": "7e5d3ac86e28dbd224f84d9349372b74bed39ad6392408df63356fd8a810c96e",
29
+ "size": 229553336
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "c5a783d13aac71d42324f2e9dcd395c266bd5774951faf0d94855c737024bee3",
34
- "size": 229858704
33
+ "checksum": "b80e0066fb208cbd50fe539ed9c03dadd24fcc058bb67774fd36a316bca396ad",
34
+ "size": 234123648
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "24964d08c5100bac6071352e5837101b333de1c1afefd2b8b0e7a60db6c0ef5c",
39
- "size": 226329760
38
+ "checksum": "83397a6a029c7da663fb1ce27211e05174a3546d8b151e42451bf4590b8343d7",
39
+ "size": 230281888
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "04124c0ba09ece85a856de652e84386094c372f002ff767a94d4a43ecf776f96",
44
- "size": 220992160
43
+ "checksum": "ec8c342e835ee8891ef2c6d0eb9ac460f2d5e6a668788c8a03faa3451748c275",
44
+ "size": 224756384
45
45
  }
46
46
  }
47
47
  }
package/manifest.zst.json CHANGED
@@ -1,55 +1,55 @@
1
1
  {
2
- "version": "2.1.187",
3
- "commit": "6a53320fad5541a68d79e4b6c53677df77b98e33",
4
- "buildDate": "2026-06-23T17:09:24Z",
2
+ "version": "2.1.191",
3
+ "commit": "397db5e73d569118815b8037ca9ff2483a06bbfe",
4
+ "buildDate": "2026-06-24T11:34:13Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude.zst",
8
- "checksum": "658417c6e9f5d76f407ee1bb04220fa6dd02333b1f8ce50bf1a7340efec64f61",
9
- "size": 44489766,
8
+ "checksum": "1e0e43751a0c379346460f049bce96e575609b4e71d5962f4d2acf0b91c78fd9",
9
+ "size": 45457602,
10
10
  "bundle": {
11
- "checksum": "2c83be71c9f40ed86a806574ae5ef3aa99aff9735a8aaec65922d495e1e148d7",
12
- "size": 44493483
11
+ "checksum": "2ab22c16cee6c72f85e69445225e57db046d46cb1568d8224321114a83792d33",
12
+ "size": 45461631
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "9d52d2b3c1c85c83dbb9fc81be4c73f2bd2d1c09b44e5c8924c9233f4a16b3e0",
18
- "size": 48636051,
17
+ "checksum": "4bee8d449b6f68c1b360a446d43f4bcea0e4f03b89929b5db5a84ccbc3c3848e",
18
+ "size": 49724319,
19
19
  "bundle": {
20
- "checksum": "43f31b4d6b04a5bf8fbe8a9b200cbf592e5e8f74616d86dd2bb3cf94dd7b1fe4",
21
- "size": 48631278
20
+ "checksum": "6f0c567adf7319c4c8fc384ad734aa3cf78de5e7f8689475032714ab28d2ea08",
21
+ "size": 49726387
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "dc5f7e6752374a06fb74fb222ad76d02af72acfe40c53365440b4a4b936ab890",
27
- "size": 53511490
26
+ "checksum": "be5f54f9eaa0dca1daf8b8e0f8677343dca5096265cfe8643db19f4136daa659",
27
+ "size": 54566562
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "a209a9ed0af46b40691c271eceb69a7a8ba1d6e97e6899dc6cc93977751bcf86",
32
- "size": 54745022
31
+ "checksum": "e230ba2f62780d101457f701b4427b714eb6d8bf9b3b2daa177216de9dce125f",
32
+ "size": 55814450
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "7a9e8659ab4edace5b364c102a5bfc0ddd4fc2ba48b83e30b5564d77c0b93da1",
37
- "size": 52225691
36
+ "checksum": "7892cc6f6e0bcff888b645b411cf727c032a6ac303e383251627883beff5a74e",
37
+ "size": 53232201
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "5ee81053b67a0418a6035b814b689cc6158054757e503643d182892ac64d2920",
42
- "size": 53549455
41
+ "checksum": "0d755b201aec6523f32964b8411b5f8efe25f36050b190985633ab41bd4cb790",
42
+ "size": 54619464
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "d3574e6f0e5d901724d3843e1d6dc0f1c6ddc1e14dbd30e733a582fc03698c43",
47
- "size": 54983558
46
+ "checksum": "4c69daacf0d7f35b6649eac7578a4100e7179653636744293c2d59c3b913a60e",
47
+ "size": 55953341
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "81830e155993db5f756f6f29f58bad01c6b72473033534f43941739d2527fbe5",
52
- "size": 53030291
51
+ "checksum": "308f78035eb81be6c7948858e61bc1f89869b84cc65ec877c36b0301e30a253f",
52
+ "size": 53992570
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.187",
3
+ "version": "0.3.191",
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.187",
61
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.187",
62
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.187",
63
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.187",
64
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.187",
65
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.187",
66
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.187",
67
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.187"
60
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.191",
61
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.191",
62
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.191",
63
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.191",
64
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.191",
65
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.191",
66
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.191",
67
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.191"
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.187"
83
+ "claudeCodeVersion": "2.1.191"
84
84
  }
package/sdk-tools.d.ts CHANGED
@@ -2776,7 +2776,7 @@ export interface GlobOutput {
2776
2776
  */
2777
2777
  durationMs: number;
2778
2778
  /**
2779
- * Total number of files found
2779
+ * Number of file paths returned (after any truncation)
2780
2780
  */
2781
2781
  numFiles: number;
2782
2782
  /**
@@ -2787,6 +2787,14 @@ export interface GlobOutput {
2787
2787
  * Whether results were truncated (limited to 100 files)
2788
2788
  */
2789
2789
  truncated: boolean;
2790
+ /**
2791
+ * Total number of matching files before truncation. A lower bound when countIsComplete is false. Absent on results persisted by CLI versions predating this field.
2792
+ */
2793
+ totalMatches?: number;
2794
+ /**
2795
+ * Whether totalMatches is the exact total (true) or a floor because the underlying search truncated its own output (false). Absent on results persisted by CLI versions predating this field.
2796
+ */
2797
+ countIsComplete?: boolean;
2790
2798
  }
2791
2799
  export interface GrepOutput {
2792
2800
  mode?: "content" | "files_with_matches" | "count";
@@ -2821,6 +2829,10 @@ export interface NotebookEditOutput {
2821
2829
  * The new source code that was written to the cell
2822
2830
  */
2823
2831
  new_source: string;
2832
+ /**
2833
+ * The previous cell source (replace/delete only). Enables cell-relative diff rendering without re-reading the notebook.
2834
+ */
2835
+ old_source?: string;
2824
2836
  /**
2825
2837
  * The ID of the cell that was edited
2826
2838
  */
package/sdk.d.ts CHANGED
@@ -916,6 +916,17 @@ export declare type ListSessionsOptions = {
916
916
  * Only applies when reading from the local filesystem.
917
917
  */
918
918
  includeWorktrees?: boolean;
919
+ /**
920
+ * Include programmatic/headless sessions (SDK entrypoints `sdk-cli`,
921
+ * `sdk-ts`, `sdk-py`) and daemon/daemon-worker sessions. Defaults to
922
+ * `true` for backward compatibility — SDK consumers enumerating their
923
+ * own sessions see them. IDE session pickers pass `false` for parity
924
+ * with terminal `/resume`.
925
+ *
926
+ * Only applies when reading from the local filesystem; ignored when
927
+ * `sessionStore` is provided.
928
+ */
929
+ includeProgrammatic?: boolean;
919
930
  /**
920
931
  * When provided, list sessions from this store instead of the local
921
932
  * filesystem. Requires `store.listSessions` to be defined.
@@ -2570,25 +2581,6 @@ export declare type RewindFilesResult = {
2570
2581
 
2571
2582
  export declare type SandboxCredentialsConfig = NonNullable<z.infer<ReturnType<typeof SandboxCredentialsConfigSchema>>>;
2572
2583
 
2573
- /**
2574
- * Credentials configuration schema for sandbox.
2575
- *
2576
- * Declares credential sources (files/directories and environment variables)
2577
- * to protect. Every entry carries `mode: 'deny'`: file paths are denied for
2578
- * reads inside the sandbox, environment variables are unset in sandboxed
2579
- * commands.
2580
- *
2581
- * Only explicitly declared sources are affected — sandbox-runtime ships no
2582
- * built-in credential deny list, so entries here are the complete set of
2583
- * credential restrictions applied to sandboxed commands.
2584
- *
2585
- * Mode is `deny`-only — no `mask`. Claude Code hands this config to
2586
- * sandbox-runtime programmatically, bypassing sandbox-runtime's own Zod
2587
- * validation, and on that path unsupported modes are silently ignored rather
2588
- * than rejected. This schema must be the gate that rejects modes
2589
- * sandbox-runtime can't enforce yet; widen the mode (e.g. `mask`) only once
2590
- * a sandbox-runtime version that enforces it ships.
2591
- */
2592
2584
  declare const SandboxCredentialsConfigSchema: () => z.ZodOptional<z.ZodObject<{
2593
2585
  files: z.ZodOptional<z.ZodArray<z.ZodObject<{
2594
2586
  path: z.ZodString;
@@ -3075,6 +3067,17 @@ export declare type SDKControlGetUsageResponse = {
3075
3067
  */
3076
3068
  resets_at: string | null;
3077
3069
  } | null;
3070
+ /**
3071
+ * Per-model weekly windows from the server limits[] array, filtered by the overage-included-models allowlist. Additive — present only when the server emits them.
3072
+ */
3073
+ model_scoped?: {
3074
+ /**
3075
+ * Server-supplied label for the model bucket (e.g. 'Fable').
3076
+ */
3077
+ display_name: string;
3078
+ utilization: number | null;
3079
+ resets_at: string | null;
3080
+ }[];
3078
3081
  extra_usage?: {
3079
3082
  is_enabled: boolean;
3080
3083
  monthly_limit: number | null;
@@ -3882,7 +3885,7 @@ export declare type SDKRateLimitEvent = {
3882
3885
  export declare type SDKRateLimitInfo = {
3883
3886
  status: 'allowed' | 'allowed_warning' | 'rejected';
3884
3887
  resetsAt?: number;
3885
- rateLimitType?: 'five_hour' | 'seven_day' | 'seven_day_opus' | 'seven_day_sonnet' | 'overage';
3888
+ rateLimitType?: 'five_hour' | 'seven_day' | 'seven_day_opus' | 'seven_day_sonnet' | 'seven_day_overage_included' | 'overage';
3886
3889
  utilization?: number;
3887
3890
  overageStatus?: 'allowed' | 'allowed_warning' | 'rejected';
3888
3891
  overageResetsAt?: number;