@anthropic-ai/claude-agent-sdk 0.3.193 → 0.3.196
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 +64 -64
- package/browser-sdk.js +16 -16
- package/manifest.json +19 -19
- package/manifest.zst.json +23 -23
- package/package.json +10 -10
- package/sdk-tools.d.ts +90 -1
- package/sdk.d.ts +27 -0
- package/sdk.mjs +49 -48
package/manifest.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-06-
|
|
2
|
+
"version": "2.1.196",
|
|
3
|
+
"commit": "a4ca500badcac68511fb5f04303e32e4360f3dfb",
|
|
4
|
+
"buildDate": "2026-06-29T01:55:28Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "6fc6e61ab7582c2bf241225ff90d9f79e91d69380cb9589fc9dedd3a30070f5a",
|
|
9
|
+
"size": 225782608
|
|
10
10
|
},
|
|
11
11
|
"darwin-x64": {
|
|
12
12
|
"binary": "claude",
|
|
13
|
-
"checksum": "
|
|
14
|
-
"size":
|
|
13
|
+
"checksum": "32c74d66e27b9ca77aea638fc46cb11c90470bd0d294b2a981065da8896d1ee0",
|
|
14
|
+
"size": 235139408
|
|
15
15
|
},
|
|
16
16
|
"linux-arm64": {
|
|
17
17
|
"binary": "claude",
|
|
18
|
-
"checksum": "
|
|
19
|
-
"size":
|
|
18
|
+
"checksum": "05aa9189d335d1e921ca9608acd699193e661559aff56704456ce5bda6fd4dd8",
|
|
19
|
+
"size": 242203376
|
|
20
20
|
},
|
|
21
21
|
"linux-x64": {
|
|
22
22
|
"binary": "claude",
|
|
23
|
-
"checksum": "
|
|
24
|
-
"size":
|
|
23
|
+
"checksum": "eb933c6dd5534db89b83ba09009d5c0932bd1395f7e3bb0f34ba37eec37bbade",
|
|
24
|
+
"size": 245373752
|
|
25
25
|
},
|
|
26
26
|
"linux-arm64-musl": {
|
|
27
27
|
"binary": "claude",
|
|
28
|
-
"checksum": "
|
|
29
|
-
"size":
|
|
28
|
+
"checksum": "0591ff8e1378d3773c85456d0c812bf79b333cac2d06396cd076ecfc75022ba4",
|
|
29
|
+
"size": 235451576
|
|
30
30
|
},
|
|
31
31
|
"linux-x64-musl": {
|
|
32
32
|
"binary": "claude",
|
|
33
|
-
"checksum": "
|
|
34
|
-
"size":
|
|
33
|
+
"checksum": "fa7e93303ea5eda7defce9f70f360c1f951b06f9f36b03296baffbade512049f",
|
|
34
|
+
"size": 240058752
|
|
35
35
|
},
|
|
36
36
|
"win32-x64": {
|
|
37
37
|
"binary": "claude.exe",
|
|
38
|
-
"checksum": "
|
|
39
|
-
"size":
|
|
38
|
+
"checksum": "180d7b279455e8b89d4353a5146447be2f80b80fb0db14bdc6dd9cb98c0aef09",
|
|
39
|
+
"size": 235977376
|
|
40
40
|
},
|
|
41
41
|
"win32-arm64": {
|
|
42
42
|
"binary": "claude.exe",
|
|
43
|
-
"checksum": "
|
|
44
|
-
"size":
|
|
43
|
+
"checksum": "882ed64ae93385067bff7b1e1d1975898f1cbca739dff322e0e370cd2db3e6ed",
|
|
44
|
+
"size": 230444704
|
|
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.196",
|
|
3
|
+
"commit": "a4ca500badcac68511fb5f04303e32e4360f3dfb",
|
|
4
|
+
"buildDate": "2026-06-29T01:57:03Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude.zst",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "10fed08630de5ee96d282bd46468c8846fe2efcf912ffb7081b6100b82bb1b41",
|
|
9
|
+
"size": 46562853,
|
|
10
10
|
"bundle": {
|
|
11
|
-
"checksum": "
|
|
12
|
-
"size":
|
|
11
|
+
"checksum": "17bb23e00ade792182c1b1b77007ab76de6eb6aea6f297a44a0b1d4634aa62c7",
|
|
12
|
+
"size": 46573556
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"darwin-x64": {
|
|
16
16
|
"binary": "claude.zst",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "bff7cdb27a7020d6b21fbe5d4d4d41f59531172c7927f9599e533bf342dd9fb4",
|
|
18
|
+
"size": 50891667,
|
|
19
19
|
"bundle": {
|
|
20
|
-
"checksum": "
|
|
21
|
-
"size":
|
|
20
|
+
"checksum": "b7738d70a60a7097dfcc35b54bc13030671339790b6b9fa90c5d31ac4d9ed486",
|
|
21
|
+
"size": 50896401
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"linux-arm64": {
|
|
25
25
|
"binary": "claude.zst",
|
|
26
|
-
"checksum": "
|
|
27
|
-
"size":
|
|
26
|
+
"checksum": "6be5c69d32441ee7ee5d75c61816c3011422de98d9584b0cde45daa2bb4c675f",
|
|
27
|
+
"size": 55673912
|
|
28
28
|
},
|
|
29
29
|
"linux-x64": {
|
|
30
30
|
"binary": "claude.zst",
|
|
31
|
-
"checksum": "
|
|
32
|
-
"size":
|
|
31
|
+
"checksum": "8d9b31a9309541e63e201d64f04ced4b4603b4c91bf579645c1f95f56fca737c",
|
|
32
|
+
"size": 56938352
|
|
33
33
|
},
|
|
34
34
|
"linux-arm64-musl": {
|
|
35
35
|
"binary": "claude.zst",
|
|
36
|
-
"checksum": "
|
|
37
|
-
"size":
|
|
36
|
+
"checksum": "1f2fcfc247efba1c882451de9c51c399c7e1fc3910c575660a543d43c6b8d92e",
|
|
37
|
+
"size": 54346444
|
|
38
38
|
},
|
|
39
39
|
"linux-x64-musl": {
|
|
40
40
|
"binary": "claude.zst",
|
|
41
|
-
"checksum": "
|
|
42
|
-
"size":
|
|
41
|
+
"checksum": "d0108bfbd32283b7ecafdd13f6433d525fd4741264bdfb921314dffec3a7ea83",
|
|
42
|
+
"size": 55731691
|
|
43
43
|
},
|
|
44
44
|
"win32-x64": {
|
|
45
45
|
"binary": "claude.exe.zst",
|
|
46
|
-
"checksum": "
|
|
47
|
-
"size":
|
|
46
|
+
"checksum": "6a5543df854f30efe169b2e2f5609f4dd6b85db8eaba0e2a65ef335ac0e96998",
|
|
47
|
+
"size": 57049291
|
|
48
48
|
},
|
|
49
49
|
"win32-arm64": {
|
|
50
50
|
"binary": "claude.exe.zst",
|
|
51
|
-
"checksum": "
|
|
52
|
-
"size":
|
|
51
|
+
"checksum": "5adb89a3270336fc9598cf4b5b2ab4cebf48b41f8fdaa45fdaa2a5578c33f45d",
|
|
52
|
+
"size": 55081320
|
|
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.196",
|
|
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.196",
|
|
61
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.196",
|
|
62
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.196",
|
|
63
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.196",
|
|
64
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.196",
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.196",
|
|
66
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.196",
|
|
67
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.196"
|
|
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.196"
|
|
84
84
|
}
|
package/sdk-tools.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export type ToolInputSchemas =
|
|
|
24
24
|
| NotebookEditInput
|
|
25
25
|
| ReadMcpResourceDirInput
|
|
26
26
|
| ReadMcpResourceInput
|
|
27
|
+
| ReportFindingsInput
|
|
27
28
|
| TodoWriteInput
|
|
28
29
|
| WebFetchInput
|
|
29
30
|
| WebSearchInput
|
|
@@ -63,6 +64,7 @@ export type ToolOutputSchemas =
|
|
|
63
64
|
| NotebookEditOutput
|
|
64
65
|
| ReadMcpResourceDirOutput
|
|
65
66
|
| ReadMcpResourceOutput
|
|
67
|
+
| ReportFindingsOutput
|
|
66
68
|
| TodoWriteOutput
|
|
67
69
|
| WebFetchOutput
|
|
68
70
|
| WebSearchOutput
|
|
@@ -687,6 +689,43 @@ export interface ReadMcpResourceInput {
|
|
|
687
689
|
*/
|
|
688
690
|
uri: string;
|
|
689
691
|
}
|
|
692
|
+
export interface ReportFindingsInput {
|
|
693
|
+
/**
|
|
694
|
+
* Effort level the review ran at
|
|
695
|
+
*/
|
|
696
|
+
level?: "low" | "medium" | "high" | "xhigh" | "max";
|
|
697
|
+
/**
|
|
698
|
+
* Verified findings, most-severe first; empty if none survived
|
|
699
|
+
*
|
|
700
|
+
* @maxItems 32
|
|
701
|
+
*/
|
|
702
|
+
findings: {
|
|
703
|
+
/**
|
|
704
|
+
* Repo-relative path of the file the finding is in
|
|
705
|
+
*/
|
|
706
|
+
file: string;
|
|
707
|
+
/**
|
|
708
|
+
* 1-indexed line the finding anchors to
|
|
709
|
+
*/
|
|
710
|
+
line?: number;
|
|
711
|
+
/**
|
|
712
|
+
* One-sentence statement of the defect
|
|
713
|
+
*/
|
|
714
|
+
summary: string;
|
|
715
|
+
/**
|
|
716
|
+
* Concrete inputs/state → wrong output/crash
|
|
717
|
+
*/
|
|
718
|
+
failure_scenario: string;
|
|
719
|
+
/**
|
|
720
|
+
* Set when a verify pass ran; absent on inline-only reviews
|
|
721
|
+
*/
|
|
722
|
+
verdict?: "CONFIRMED" | "PLAUSIBLE";
|
|
723
|
+
/**
|
|
724
|
+
* Set ONLY when re-reporting after applying fixes: what happened to this finding
|
|
725
|
+
*/
|
|
726
|
+
outcome?: "fixed" | "skipped" | "no_change_needed";
|
|
727
|
+
}[];
|
|
728
|
+
}
|
|
690
729
|
export interface TodoWriteInput {
|
|
691
730
|
/**
|
|
692
731
|
* The updated todo list
|
|
@@ -2508,7 +2547,14 @@ export interface MonitorInput {
|
|
|
2508
2547
|
/**
|
|
2509
2548
|
* Shell command or script. Each stdout line is an event; exit ends the watch.
|
|
2510
2549
|
*/
|
|
2511
|
-
command
|
|
2550
|
+
command?: string;
|
|
2551
|
+
/**
|
|
2552
|
+
* 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.
|
|
2553
|
+
*/
|
|
2554
|
+
ws?: {
|
|
2555
|
+
url: string;
|
|
2556
|
+
protocols?: string[];
|
|
2557
|
+
};
|
|
2512
2558
|
}
|
|
2513
2559
|
export interface ArtifactInput {
|
|
2514
2560
|
/**
|
|
@@ -2519,6 +2565,10 @@ export interface ArtifactInput {
|
|
|
2519
2565
|
* Browser-tab icon: one or two emoji (e.g. "📊"). No markup. Keep stable across redeploys; change only on a hard topic pivot.
|
|
2520
2566
|
*/
|
|
2521
2567
|
favicon: string;
|
|
2568
|
+
/**
|
|
2569
|
+
* One-sentence subtitle shown on the gallery card. Say what the page is or does.
|
|
2570
|
+
*/
|
|
2571
|
+
description?: string;
|
|
2522
2572
|
/**
|
|
2523
2573
|
* Short human-readable name for this version, max 60 chars (e.g. "fixed-background"). Shown in the version picker. Not a description — keep it to a few words.
|
|
2524
2574
|
*/
|
|
@@ -2913,6 +2963,45 @@ export interface ReadMcpResourceOutput {
|
|
|
2913
2963
|
*/
|
|
2914
2964
|
error?: string;
|
|
2915
2965
|
}
|
|
2966
|
+
export interface ReportFindingsOutput {
|
|
2967
|
+
/**
|
|
2968
|
+
* Number of findings reported
|
|
2969
|
+
*/
|
|
2970
|
+
count: number;
|
|
2971
|
+
/**
|
|
2972
|
+
* Effort level the review ran at
|
|
2973
|
+
*/
|
|
2974
|
+
level?: "low" | "medium" | "high" | "xhigh" | "max";
|
|
2975
|
+
/**
|
|
2976
|
+
* Echoed for the result body
|
|
2977
|
+
*/
|
|
2978
|
+
findings: {
|
|
2979
|
+
/**
|
|
2980
|
+
* Repo-relative path of the file the finding is in
|
|
2981
|
+
*/
|
|
2982
|
+
file: string;
|
|
2983
|
+
/**
|
|
2984
|
+
* 1-indexed line the finding anchors to
|
|
2985
|
+
*/
|
|
2986
|
+
line?: number;
|
|
2987
|
+
/**
|
|
2988
|
+
* One-sentence statement of the defect
|
|
2989
|
+
*/
|
|
2990
|
+
summary: string;
|
|
2991
|
+
/**
|
|
2992
|
+
* Concrete inputs/state → wrong output/crash
|
|
2993
|
+
*/
|
|
2994
|
+
failure_scenario: string;
|
|
2995
|
+
/**
|
|
2996
|
+
* Set when a verify pass ran; absent on inline-only reviews
|
|
2997
|
+
*/
|
|
2998
|
+
verdict?: "CONFIRMED" | "PLAUSIBLE";
|
|
2999
|
+
/**
|
|
3000
|
+
* Set ONLY when re-reporting after applying fixes: what happened to this finding
|
|
3001
|
+
*/
|
|
3002
|
+
outcome?: "fixed" | "skipped" | "no_change_needed";
|
|
3003
|
+
}[];
|
|
3004
|
+
}
|
|
2916
3005
|
export interface TodoWriteOutput {
|
|
2917
3006
|
/**
|
|
2918
3007
|
* The todo list before the update
|
package/sdk.d.ts
CHANGED
|
@@ -157,6 +157,10 @@ export declare type BaseHookInput = {
|
|
|
157
157
|
session_id: string;
|
|
158
158
|
transcript_path: string;
|
|
159
159
|
cwd: string;
|
|
160
|
+
/**
|
|
161
|
+
* UUID correlating a user prompt with all subsequent events until the next prompt. Same value emitted on OpenTelemetry events as the `prompt.id` attribute, so hook output can be joined to OTel events at prompt grain. Absent until the first user input of the process lifetime.
|
|
162
|
+
*/
|
|
163
|
+
prompt_id?: string;
|
|
160
164
|
permission_mode?: string;
|
|
161
165
|
/**
|
|
162
166
|
* Subagent identifier. Present only when the hook fires from within a subagent (e.g., a tool called by an AgentTool worker). Absent for the main thread, even in --agent sessions. Use this field (not agent_type) to distinguish subagent calls from main-thread calls.
|
|
@@ -2287,6 +2291,23 @@ export declare interface Query extends AsyncGenerator<SDKMessage, void> {
|
|
|
2287
2291
|
* @returns The complete initialization response
|
|
2288
2292
|
*/
|
|
2289
2293
|
initializationResult(): Promise<SDKControlInitializeResponse>;
|
|
2294
|
+
/**
|
|
2295
|
+
* Re-send the `initialize` control request to an already-running CLI.
|
|
2296
|
+
*
|
|
2297
|
+
* Use this after a transport gap (e.g. reattaching to a daemon whose
|
|
2298
|
+
* ring buffer evicted frames during a disconnect): the CLI's response
|
|
2299
|
+
* carries any `can_use_tool` / `request_user_dialog` control requests
|
|
2300
|
+
* the loop is still blocked on, and the SDK redelivers them to
|
|
2301
|
+
* `canUseTool` / `onUserDialog`. In-flight request_ids are deduped
|
|
2302
|
+
* SDK-side, but callbacks should be idempotent per request_id since a
|
|
2303
|
+
* request whose response was lost in the gap will be dispatched again.
|
|
2304
|
+
*
|
|
2305
|
+
* Unlike {@link Query.initializationResult}, this always sends a fresh request
|
|
2306
|
+
* rather than returning the cached first-connect result.
|
|
2307
|
+
*
|
|
2308
|
+
* @returns A fresh initialization response
|
|
2309
|
+
*/
|
|
2310
|
+
reinitialize(): Promise<SDKControlInitializeResponse>;
|
|
2290
2311
|
/**
|
|
2291
2312
|
* Get the list of available skills for the current session.
|
|
2292
2313
|
*
|
|
@@ -2766,6 +2787,7 @@ export declare type SDKCompactBoundaryMessage = {
|
|
|
2766
2787
|
trigger: 'manual' | 'auto';
|
|
2767
2788
|
pre_tokens: number;
|
|
2768
2789
|
post_tokens?: number;
|
|
2790
|
+
|
|
2769
2791
|
duration_ms?: number;
|
|
2770
2792
|
|
|
2771
2793
|
|
|
@@ -4995,6 +5017,10 @@ export declare interface Settings {
|
|
|
4995
5017
|
* Disable the Artifact tool (also via CLAUDE_CODE_DISABLE_ARTIFACT).
|
|
4996
5018
|
*/
|
|
4997
5019
|
disableArtifact?: boolean;
|
|
5020
|
+
/**
|
|
5021
|
+
* Enable or disable the Artifact tool for this user. Unset = default by plan once the feature is available.
|
|
5022
|
+
*/
|
|
5023
|
+
enableArtifact?: boolean;
|
|
4998
5024
|
/**
|
|
4999
5025
|
* Enable or disable the Workflows feature for this user. Unset = default by plan once the feature is available.
|
|
5000
5026
|
*/
|
|
@@ -6022,6 +6048,7 @@ export declare interface Settings {
|
|
|
6022
6048
|
prefersReducedMotion?: boolean;
|
|
6023
6049
|
|
|
6024
6050
|
|
|
6051
|
+
|
|
6025
6052
|
/**
|
|
6026
6053
|
* Enable auto-memory for this project. When false, Claude will not read from or write to the auto-memory directory.
|
|
6027
6054
|
*/
|