@anthropic-ai/claude-agent-sdk 0.3.190 → 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/bridge.mjs +71 -71
- package/browser-sdk.js +33 -33
- package/manifest.json +19 -19
- package/manifest.zst.json +23 -23
- package/package.json +10 -10
- package/sdk-tools.d.ts +13 -1
- package/sdk.d.ts +11 -19
- package/sdk.mjs +44 -43
package/manifest.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-06-
|
|
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": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "99fdfb552a5260e649aedd06c024d0a4105b09cefec0bf67d558e017ee66c400",
|
|
9
|
+
"size": 219856224
|
|
10
10
|
},
|
|
11
11
|
"darwin-x64": {
|
|
12
12
|
"binary": "claude",
|
|
13
|
-
"checksum": "
|
|
14
|
-
"size":
|
|
13
|
+
"checksum": "6e83aad5fc4fd459fd74539cda06d2279105eac2befc603d2fba6494974cb2a4",
|
|
14
|
+
"size": 229178416
|
|
15
15
|
},
|
|
16
16
|
"linux-arm64": {
|
|
17
17
|
"binary": "claude",
|
|
18
|
-
"checksum": "
|
|
19
|
-
"size":
|
|
18
|
+
"checksum": "1a31a7cbcfd784f8c073bfc8a0a1583fb6e93e60ef70b76d7fcf663ffed8949b",
|
|
19
|
+
"size": 236305136
|
|
20
20
|
},
|
|
21
21
|
"linux-x64": {
|
|
22
22
|
"binary": "claude",
|
|
23
|
-
"checksum": "
|
|
24
|
-
"size":
|
|
23
|
+
"checksum": "1038dba88bdf1b80941dc3e383e93b088325b00497329ac50da460c8786d5bee",
|
|
24
|
+
"size": 239438648
|
|
25
25
|
},
|
|
26
26
|
"linux-arm64-musl": {
|
|
27
27
|
"binary": "claude",
|
|
28
|
-
"checksum": "
|
|
29
|
-
"size":
|
|
28
|
+
"checksum": "7e5d3ac86e28dbd224f84d9349372b74bed39ad6392408df63356fd8a810c96e",
|
|
29
|
+
"size": 229553336
|
|
30
30
|
},
|
|
31
31
|
"linux-x64-musl": {
|
|
32
32
|
"binary": "claude",
|
|
33
|
-
"checksum": "
|
|
34
|
-
"size":
|
|
33
|
+
"checksum": "b80e0066fb208cbd50fe539ed9c03dadd24fcc058bb67774fd36a316bca396ad",
|
|
34
|
+
"size": 234123648
|
|
35
35
|
},
|
|
36
36
|
"win32-x64": {
|
|
37
37
|
"binary": "claude.exe",
|
|
38
|
-
"checksum": "
|
|
39
|
-
"size":
|
|
38
|
+
"checksum": "83397a6a029c7da663fb1ce27211e05174a3546d8b151e42451bf4590b8343d7",
|
|
39
|
+
"size": 230281888
|
|
40
40
|
},
|
|
41
41
|
"win32-arm64": {
|
|
42
42
|
"binary": "claude.exe",
|
|
43
|
-
"checksum": "
|
|
44
|
-
"size":
|
|
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.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-06-
|
|
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": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "1e0e43751a0c379346460f049bce96e575609b4e71d5962f4d2acf0b91c78fd9",
|
|
9
|
+
"size": 45457602,
|
|
10
10
|
"bundle": {
|
|
11
|
-
"checksum": "
|
|
12
|
-
"size":
|
|
11
|
+
"checksum": "2ab22c16cee6c72f85e69445225e57db046d46cb1568d8224321114a83792d33",
|
|
12
|
+
"size": 45461631
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"darwin-x64": {
|
|
16
16
|
"binary": "claude.zst",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "4bee8d449b6f68c1b360a446d43f4bcea0e4f03b89929b5db5a84ccbc3c3848e",
|
|
18
|
+
"size": 49724319,
|
|
19
19
|
"bundle": {
|
|
20
|
-
"checksum": "
|
|
21
|
-
"size":
|
|
20
|
+
"checksum": "6f0c567adf7319c4c8fc384ad734aa3cf78de5e7f8689475032714ab28d2ea08",
|
|
21
|
+
"size": 49726387
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"linux-arm64": {
|
|
25
25
|
"binary": "claude.zst",
|
|
26
|
-
"checksum": "
|
|
27
|
-
"size":
|
|
26
|
+
"checksum": "be5f54f9eaa0dca1daf8b8e0f8677343dca5096265cfe8643db19f4136daa659",
|
|
27
|
+
"size": 54566562
|
|
28
28
|
},
|
|
29
29
|
"linux-x64": {
|
|
30
30
|
"binary": "claude.zst",
|
|
31
|
-
"checksum": "
|
|
32
|
-
"size":
|
|
31
|
+
"checksum": "e230ba2f62780d101457f701b4427b714eb6d8bf9b3b2daa177216de9dce125f",
|
|
32
|
+
"size": 55814450
|
|
33
33
|
},
|
|
34
34
|
"linux-arm64-musl": {
|
|
35
35
|
"binary": "claude.zst",
|
|
36
|
-
"checksum": "
|
|
37
|
-
"size":
|
|
36
|
+
"checksum": "7892cc6f6e0bcff888b645b411cf727c032a6ac303e383251627883beff5a74e",
|
|
37
|
+
"size": 53232201
|
|
38
38
|
},
|
|
39
39
|
"linux-x64-musl": {
|
|
40
40
|
"binary": "claude.zst",
|
|
41
|
-
"checksum": "
|
|
42
|
-
"size":
|
|
41
|
+
"checksum": "0d755b201aec6523f32964b8411b5f8efe25f36050b190985633ab41bd4cb790",
|
|
42
|
+
"size": 54619464
|
|
43
43
|
},
|
|
44
44
|
"win32-x64": {
|
|
45
45
|
"binary": "claude.exe.zst",
|
|
46
|
-
"checksum": "
|
|
47
|
-
"size":
|
|
46
|
+
"checksum": "4c69daacf0d7f35b6649eac7578a4100e7179653636744293c2d59c3b913a60e",
|
|
47
|
+
"size": 55953341
|
|
48
48
|
},
|
|
49
49
|
"win32-arm64": {
|
|
50
50
|
"binary": "claude.exe.zst",
|
|
51
|
-
"checksum": "
|
|
52
|
-
"size":
|
|
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.
|
|
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.
|
|
61
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.
|
|
62
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.
|
|
63
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.
|
|
64
|
-
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.
|
|
65
|
-
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.
|
|
66
|
-
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.
|
|
67
|
-
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.
|
|
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.
|
|
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
|
-
*
|
|
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;
|