@anthropic-ai/claude-agent-sdk 0.3.206 → 0.3.208
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.d.ts +41 -3
- package/bridge.mjs +77 -77
- package/browser-sdk.js +32 -32
- package/manifest.json +41 -19
- package/manifest.zst.json +45 -23
- package/package.json +10 -10
- package/sdk-tools.d.ts +11 -2
- package/sdk.d.ts +18 -5
- package/sdk.mjs +61 -61
package/manifest.json
CHANGED
|
@@ -1,47 +1,69 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-07-
|
|
2
|
+
"version": "2.1.208",
|
|
3
|
+
"commit": "1ee05a7fb989fe19c9aed959c5762daf14ca2ffb",
|
|
4
|
+
"buildDate": "2026-07-13T20:37:45Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "051c7f28871b158132ac03a6140f2f2ab4046b18ecc4f7a91a2ac4d54774551e",
|
|
9
|
+
"size": 240245936
|
|
10
10
|
},
|
|
11
11
|
"darwin-x64": {
|
|
12
12
|
"binary": "claude",
|
|
13
|
-
"checksum": "
|
|
14
|
-
"size":
|
|
13
|
+
"checksum": "804ea81cb1e2b5f883c2490fc668fd19ce185e37b9b9991f5832d38dc62e2ff4",
|
|
14
|
+
"size": 249754128
|
|
15
15
|
},
|
|
16
16
|
"linux-arm64": {
|
|
17
17
|
"binary": "claude",
|
|
18
|
-
"checksum": "
|
|
19
|
-
"size":
|
|
18
|
+
"checksum": "81e5dd48377bfd3cb733820e4e23f2294c925cba1e52dbeada69f46929f0c4a6",
|
|
19
|
+
"size": 256686832
|
|
20
20
|
},
|
|
21
21
|
"linux-x64": {
|
|
22
22
|
"binary": "claude",
|
|
23
|
-
"checksum": "
|
|
24
|
-
"size":
|
|
23
|
+
"checksum": "125372839bc827ca24dd72382627b291fbca615408d732fe3291bc16723ce7f3",
|
|
24
|
+
"size": 259820344
|
|
25
25
|
},
|
|
26
26
|
"linux-arm64-musl": {
|
|
27
27
|
"binary": "claude",
|
|
28
|
-
"checksum": "
|
|
29
|
-
"size":
|
|
28
|
+
"checksum": "7dbc2aafb229adfa1f92828f4eb947797e1682f99d61426e9a905e5d9187aa05",
|
|
29
|
+
"size": 249935032
|
|
30
30
|
},
|
|
31
31
|
"linux-x64-musl": {
|
|
32
32
|
"binary": "claude",
|
|
33
|
-
"checksum": "
|
|
34
|
-
"size":
|
|
33
|
+
"checksum": "2740ca0ecb0160b5ab107883b8040be0d3434a52a3f45685b481509a788e7583",
|
|
34
|
+
"size": 254480768
|
|
35
35
|
},
|
|
36
36
|
"win32-x64": {
|
|
37
37
|
"binary": "claude.exe",
|
|
38
|
-
"checksum": "
|
|
39
|
-
"size":
|
|
38
|
+
"checksum": "629e8a370f81c749d1b0d773e14ce2d92096b70be42fd64a93aff55ab6155d74",
|
|
39
|
+
"size": 251177632
|
|
40
40
|
},
|
|
41
41
|
"win32-arm64": {
|
|
42
42
|
"binary": "claude.exe",
|
|
43
|
-
"checksum": "
|
|
44
|
-
"size":
|
|
43
|
+
"checksum": "6ce020558d53c993646d923c350719f585ee6fffcd88d32408c5e4481d0a9bd7",
|
|
44
|
+
"size": 245527200
|
|
45
45
|
}
|
|
46
|
+
},
|
|
47
|
+
"sdkCompat": {
|
|
48
|
+
"testedWrapperVersions": [
|
|
49
|
+
"0.3.181",
|
|
50
|
+
"0.3.182",
|
|
51
|
+
"0.3.183",
|
|
52
|
+
"0.3.185",
|
|
53
|
+
"0.3.186",
|
|
54
|
+
"0.3.187",
|
|
55
|
+
"0.3.190",
|
|
56
|
+
"0.3.191",
|
|
57
|
+
"0.3.195",
|
|
58
|
+
"0.3.196",
|
|
59
|
+
"0.3.197",
|
|
60
|
+
"0.3.198",
|
|
61
|
+
"0.3.201",
|
|
62
|
+
"0.3.202",
|
|
63
|
+
"0.3.204",
|
|
64
|
+
"0.3.205",
|
|
65
|
+
"0.3.207"
|
|
66
|
+
],
|
|
67
|
+
"harnessSchema": 1
|
|
46
68
|
}
|
|
47
69
|
}
|
package/manifest.zst.json
CHANGED
|
@@ -1,55 +1,77 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-07-
|
|
2
|
+
"version": "2.1.208",
|
|
3
|
+
"commit": "1ee05a7fb989fe19c9aed959c5762daf14ca2ffb",
|
|
4
|
+
"buildDate": "2026-07-13T20:39:36Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude.zst",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "b220d6bb4516024dab068317ce21d498b62b19b354730ebb81ba49f5866574ec",
|
|
9
|
+
"size": 49565873,
|
|
10
10
|
"bundle": {
|
|
11
|
-
"checksum": "
|
|
12
|
-
"size":
|
|
11
|
+
"checksum": "d7ce2a03069b7ded0988c1deebcdfcf25b7c63357a98f2e3884ecf1b992510b6",
|
|
12
|
+
"size": 49569854
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"darwin-x64": {
|
|
16
16
|
"binary": "claude.zst",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "07d2a301f0ef29939aee05d7591494664a73b21bb85d8613e0f1223a8652ced7",
|
|
18
|
+
"size": 54015986,
|
|
19
19
|
"bundle": {
|
|
20
|
-
"checksum": "
|
|
21
|
-
"size":
|
|
20
|
+
"checksum": "a6034ffaf810ee9dc10f08a2e0396b106c4df9fa9999017ea03eb0e3ec3e8e3a",
|
|
21
|
+
"size": 54021305
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"linux-arm64": {
|
|
25
25
|
"binary": "claude.zst",
|
|
26
|
-
"checksum": "
|
|
27
|
-
"size":
|
|
26
|
+
"checksum": "6f8c4b8ba2d2dbec060f9ca4ce98ba693eda22b3db14fd00708c2759d4d115f7",
|
|
27
|
+
"size": 58629933
|
|
28
28
|
},
|
|
29
29
|
"linux-x64": {
|
|
30
30
|
"binary": "claude.zst",
|
|
31
|
-
"checksum": "
|
|
32
|
-
"size":
|
|
31
|
+
"checksum": "a8c707e2f018248cf0127eba5ec5634d3c0681d0d313762876c09ff0c2301e86",
|
|
32
|
+
"size": 59938110
|
|
33
33
|
},
|
|
34
34
|
"linux-arm64-musl": {
|
|
35
35
|
"binary": "claude.zst",
|
|
36
|
-
"checksum": "
|
|
37
|
-
"size":
|
|
36
|
+
"checksum": "7fe926d8cbb794cc9e250bb55af4c3dcb1aa7c81f070002e3ae75984ad149350",
|
|
37
|
+
"size": 57348271
|
|
38
38
|
},
|
|
39
39
|
"linux-x64-musl": {
|
|
40
40
|
"binary": "claude.zst",
|
|
41
|
-
"checksum": "
|
|
42
|
-
"size":
|
|
41
|
+
"checksum": "e9bafb2e112a7445e7f37503569d9860311095423a72299b0c9464dc59963e85",
|
|
42
|
+
"size": 58724333
|
|
43
43
|
},
|
|
44
44
|
"win32-x64": {
|
|
45
45
|
"binary": "claude.exe.zst",
|
|
46
|
-
"checksum": "
|
|
47
|
-
"size":
|
|
46
|
+
"checksum": "4d6b9b426e94963691908b3a98c96a36ee13570fac19bf8e44532e663aaf1ab1",
|
|
47
|
+
"size": 60323765
|
|
48
48
|
},
|
|
49
49
|
"win32-arm64": {
|
|
50
50
|
"binary": "claude.exe.zst",
|
|
51
|
-
"checksum": "
|
|
52
|
-
"size":
|
|
51
|
+
"checksum": "7e1f02ccda540039e9b39cd95e5fa2c5d0d72063b9ca2e89301f9b862d5382cd",
|
|
52
|
+
"size": 58291430
|
|
53
53
|
}
|
|
54
|
+
},
|
|
55
|
+
"sdkCompat": {
|
|
56
|
+
"testedWrapperVersions": [
|
|
57
|
+
"0.3.181",
|
|
58
|
+
"0.3.182",
|
|
59
|
+
"0.3.183",
|
|
60
|
+
"0.3.185",
|
|
61
|
+
"0.3.186",
|
|
62
|
+
"0.3.187",
|
|
63
|
+
"0.3.190",
|
|
64
|
+
"0.3.191",
|
|
65
|
+
"0.3.195",
|
|
66
|
+
"0.3.196",
|
|
67
|
+
"0.3.197",
|
|
68
|
+
"0.3.198",
|
|
69
|
+
"0.3.201",
|
|
70
|
+
"0.3.202",
|
|
71
|
+
"0.3.204",
|
|
72
|
+
"0.3.205",
|
|
73
|
+
"0.3.207"
|
|
74
|
+
],
|
|
75
|
+
"harnessSchema": 1
|
|
54
76
|
}
|
|
55
77
|
}
|
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.208",
|
|
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.208",
|
|
61
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.208",
|
|
62
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.208",
|
|
63
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.208",
|
|
64
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.208",
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.208",
|
|
66
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.208",
|
|
67
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.208"
|
|
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.208"
|
|
84
84
|
}
|
package/sdk-tools.d.ts
CHANGED
|
@@ -97,6 +97,7 @@ export type AgentOutput =
|
|
|
97
97
|
content: {
|
|
98
98
|
type: "text";
|
|
99
99
|
text: string;
|
|
100
|
+
citations?: unknown[] | null;
|
|
100
101
|
}[];
|
|
101
102
|
resolvedModel?: string;
|
|
102
103
|
totalToolUseCount: number;
|
|
@@ -111,11 +112,14 @@ export type AgentOutput =
|
|
|
111
112
|
web_search_requests: number;
|
|
112
113
|
web_fetch_requests: number;
|
|
113
114
|
} | null;
|
|
114
|
-
service_tier:
|
|
115
|
+
service_tier: string | null;
|
|
115
116
|
cache_creation: {
|
|
116
117
|
ephemeral_1h_input_tokens: number;
|
|
117
118
|
ephemeral_5m_input_tokens: number;
|
|
118
119
|
} | null;
|
|
120
|
+
inference_geo?: string | null;
|
|
121
|
+
speed?: string | null;
|
|
122
|
+
iterations?: unknown;
|
|
119
123
|
};
|
|
120
124
|
toolStats?: {
|
|
121
125
|
readCount: number;
|
|
@@ -125,12 +129,16 @@ export type AgentOutput =
|
|
|
125
129
|
linesAdded: number;
|
|
126
130
|
linesRemoved: number;
|
|
127
131
|
otherToolCount: number;
|
|
132
|
+
frameCount?: number;
|
|
128
133
|
};
|
|
129
134
|
status: "completed";
|
|
130
135
|
prompt: string;
|
|
136
|
+
worktreePath?: string;
|
|
137
|
+
worktreeBranch?: string;
|
|
131
138
|
}
|
|
132
139
|
| {
|
|
133
140
|
status: "async_launched";
|
|
141
|
+
isAsync?: true;
|
|
134
142
|
/**
|
|
135
143
|
* The ID of the async agent
|
|
136
144
|
*/
|
|
@@ -2904,6 +2912,7 @@ export interface GrepOutput {
|
|
|
2904
2912
|
content?: string;
|
|
2905
2913
|
numLines?: number;
|
|
2906
2914
|
numMatches?: number;
|
|
2915
|
+
totalFiles?: number;
|
|
2907
2916
|
appliedLimit?: number;
|
|
2908
2917
|
appliedOffset?: number;
|
|
2909
2918
|
}
|
|
@@ -3102,7 +3111,7 @@ export interface WebFetchOutput {
|
|
|
3102
3111
|
url: string;
|
|
3103
3112
|
artifactRead?: {
|
|
3104
3113
|
slug: string;
|
|
3105
|
-
ver
|
|
3114
|
+
ver?: string;
|
|
3106
3115
|
};
|
|
3107
3116
|
}
|
|
3108
3117
|
export interface WebSearchOutput {
|
package/sdk.d.ts
CHANGED
|
@@ -462,7 +462,8 @@ declare namespace coreTypes {
|
|
|
462
462
|
* Creates an MCP server instance that can be used with the SDK transport.
|
|
463
463
|
* This allows SDK users to define custom tools that run in the same process.
|
|
464
464
|
*
|
|
465
|
-
*
|
|
465
|
+
* Tool calls are bounded by the MCP tool-call timeout — the MCP_TOOL_TIMEOUT
|
|
466
|
+
* env var (ms), effectively unbounded by default.
|
|
466
467
|
*/
|
|
467
468
|
export declare function createSdkMcpServer(_options: CreateSdkMcpServerOptions): McpSdkServerConfigWithInstance;
|
|
468
469
|
|
|
@@ -3688,11 +3689,11 @@ declare type SDKControlSetColorRequest = {
|
|
|
3688
3689
|
};
|
|
3689
3690
|
|
|
3690
3691
|
/**
|
|
3691
|
-
* Sets the maximum number of thinking tokens for extended thinking. thinking_display optionally sets the thinking display mode for the rest of the session: a value replaces the session display mode, null clears it back to the API default, and when omitted the display mode from session start (--thinking-display) is kept.
|
|
3692
|
+
* Sets the maximum number of thinking tokens for extended thinking. When max_thinking_tokens is omitted or null, thinking resets to the session default: any mid-session budget override is cleared (back to the spawn-time budget, if one was set), and thinking stays off for sessions that have it disabled. thinking_display optionally sets the thinking display mode for the rest of the session: a value replaces the session display mode, null clears it back to the API default, and when omitted the display mode from session start (--thinking-display) is kept.
|
|
3692
3693
|
*/
|
|
3693
3694
|
declare type SDKControlSetMaxThinkingTokensRequest = {
|
|
3694
3695
|
subtype: 'set_max_thinking_tokens';
|
|
3695
|
-
max_thinking_tokens
|
|
3696
|
+
max_thinking_tokens?: number | null;
|
|
3696
3697
|
thinking_display?: ('summarized' | 'omitted') | null;
|
|
3697
3698
|
};
|
|
3698
3699
|
|
|
@@ -3994,7 +3995,7 @@ export declare type SDKModelRefusalFallbackMessage = {
|
|
|
3994
3995
|
};
|
|
3995
3996
|
|
|
3996
3997
|
/**
|
|
3997
|
-
* Emitted when the model ends the stream with stop_reason "refusal" and no retry runs: no fallback model is configured, or per-category routing declined the retry (the refusal category has no fallback map entry). The structured counterpart to detecting stop_reason "refusal" on the assistant error frame. Not emitted when the retry ran or the user declined the retry dialog (model_refusal_fallback covers the retry case). Absent from older CLIs.
|
|
3998
|
+
* Emitted when the model ends the stream with stop_reason "refusal" and no retry runs: no fallback model is configured, or per-category routing declined the retry (the mapped fallback target is unresolvable, or CLAUDE_CODE_REFUSAL_FALLBACK_CATCH_ALL is explicitly disabled and the refusal category has no fallback map entry). The structured counterpart to detecting stop_reason "refusal" on the assistant error frame. Not emitted when the retry ran or the user declined the retry dialog (model_refusal_fallback covers the retry case). Absent from older CLIs.
|
|
3998
3999
|
*/
|
|
3999
4000
|
export declare type SDKModelRefusalNoFallbackMessage = {
|
|
4000
4001
|
type: 'system';
|
|
@@ -4441,6 +4442,9 @@ export declare type SDKUserMessage = {
|
|
|
4441
4442
|
message: MessageParam;
|
|
4442
4443
|
parent_tool_use_id: string | null;
|
|
4443
4444
|
isSynthetic?: boolean;
|
|
4445
|
+
/**
|
|
4446
|
+
* Structured tool output — the tool's full Output object, not the string content sent to the model. The shape is per-tool, keyed by the matching tool_use block's name (see the *Output types in toolTypes); MCP and dynamic tools carry their own shapes, so the field stays unknown-typed. For the Agent/Task tool the completed shape is AgentToolCompletedOutput: the subagent's final report without the model-directed agentId/usage trailer, plus run totals — render from it instead of parsing the tool_result text.
|
|
4447
|
+
*/
|
|
4444
4448
|
tool_use_result?: unknown;
|
|
4445
4449
|
priority?: 'now' | 'next' | 'later';
|
|
4446
4450
|
origin?: SDKMessageOrigin;
|
|
@@ -4483,6 +4487,9 @@ export declare type SDKUserMessageReplay = {
|
|
|
4483
4487
|
message: MessageParam;
|
|
4484
4488
|
parent_tool_use_id: string | null;
|
|
4485
4489
|
isSynthetic?: boolean;
|
|
4490
|
+
/**
|
|
4491
|
+
* Structured tool output — the tool's full Output object, not the string content sent to the model. The shape is per-tool, keyed by the matching tool_use block's name (see the *Output types in toolTypes); MCP and dynamic tools carry their own shapes, so the field stays unknown-typed. For the Agent/Task tool the completed shape is AgentToolCompletedOutput: the subagent's final report without the model-directed agentId/usage trailer, plus run totals — render from it instead of parsing the tool_result text.
|
|
4492
|
+
*/
|
|
4486
4493
|
tool_use_result?: unknown;
|
|
4487
4494
|
priority?: 'now' | 'next' | 'later';
|
|
4488
4495
|
origin?: SDKMessageOrigin;
|
|
@@ -6346,6 +6353,12 @@ export declare interface Settings {
|
|
|
6346
6353
|
* Key binding mode for the prompt input
|
|
6347
6354
|
*/
|
|
6348
6355
|
editorMode?: 'normal' | 'vim';
|
|
6356
|
+
/**
|
|
6357
|
+
* Vim INSERT-mode key-sequence remaps, e.g. {"jj": "<Esc>"}. Each key is exactly two printable characters typed in sequence; "<Esc>" (return to NORMAL mode) is the only supported target. Applies when editorMode is "vim".
|
|
6358
|
+
*/
|
|
6359
|
+
vimInsertModeRemaps?: {
|
|
6360
|
+
[k: string]: unknown;
|
|
6361
|
+
};
|
|
6349
6362
|
/**
|
|
6350
6363
|
* Show full tool output instead of truncated summaries
|
|
6351
6364
|
*/
|
|
@@ -6353,7 +6366,7 @@ export declare interface Settings {
|
|
|
6353
6366
|
/**
|
|
6354
6367
|
* Preferred OS notification channel
|
|
6355
6368
|
*/
|
|
6356
|
-
preferredNotifChannel?: 'auto' | 'iterm2' | '
|
|
6369
|
+
preferredNotifChannel?: 'auto' | 'iterm2' | 'terminal_bell' | 'iterm2_with_bell' | 'kitty' | 'ghostty' | 'notifications_disabled';
|
|
6357
6370
|
/**
|
|
6358
6371
|
* Automatically compact conversation when context fills
|
|
6359
6372
|
*/
|