@anthropic-ai/claude-agent-sdk 0.3.217 → 0.3.218
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 +39 -39
- package/browser-sdk.js +2 -2
- package/manifest.json +21 -20
- package/manifest.zst.json +25 -24
- package/package.json +10 -10
- package/sdk-tools.d.ts +1 -1
- package/sdk.d.ts +11 -3
- package/sdk.mjs +59 -59
package/manifest.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-07-
|
|
2
|
+
"version": "2.1.218",
|
|
3
|
+
"commit": "bce61b433bc397ce68686368abd12f545b0a013a",
|
|
4
|
+
"buildDate": "2026-07-22T18:42:19Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "71abaff59312c9a9b6a1d818365048b42e4e95cc521a823660eded3e0880d9b7",
|
|
9
|
+
"size": 255069680
|
|
10
10
|
},
|
|
11
11
|
"darwin-x64": {
|
|
12
12
|
"binary": "claude",
|
|
13
|
-
"checksum": "
|
|
14
|
-
"size":
|
|
13
|
+
"checksum": "9862b74a083e8a4ed572f99cbd4895185e0dd5a0a601affb0fb8e43d8d1f40e6",
|
|
14
|
+
"size": 264548368
|
|
15
15
|
},
|
|
16
16
|
"linux-arm64": {
|
|
17
17
|
"binary": "claude",
|
|
18
|
-
"checksum": "
|
|
19
|
-
"size":
|
|
18
|
+
"checksum": "295fd30481bd03b38450fdec2a6e25bb6472c2074f04b0c4a566cd5988f230bf",
|
|
19
|
+
"size": 269990816
|
|
20
20
|
},
|
|
21
21
|
"linux-x64": {
|
|
22
22
|
"binary": "claude",
|
|
23
|
-
"checksum": "
|
|
24
|
-
"size":
|
|
23
|
+
"checksum": "e12071751a9336b8af1012c103358ff04ac18f9aaff4a738cff7ba5cdfaf63f2",
|
|
24
|
+
"size": 273177584
|
|
25
25
|
},
|
|
26
26
|
"linux-arm64-musl": {
|
|
27
27
|
"binary": "claude",
|
|
28
|
-
"checksum": "
|
|
29
|
-
"size":
|
|
28
|
+
"checksum": "efcaae48f8f537a0e9a47b4317a5f8c184706c99ddd8ca0a9a21391e2a766ef8",
|
|
29
|
+
"size": 263239016
|
|
30
30
|
},
|
|
31
31
|
"linux-x64-musl": {
|
|
32
32
|
"binary": "claude",
|
|
33
|
-
"checksum": "
|
|
34
|
-
"size":
|
|
33
|
+
"checksum": "62986293277153f5db97404cf7e3e96de136f02c28f79ccd5c7bc99766224db4",
|
|
34
|
+
"size": 267801168
|
|
35
35
|
},
|
|
36
36
|
"win32-x64": {
|
|
37
37
|
"binary": "claude.exe",
|
|
38
|
-
"checksum": "
|
|
39
|
-
"size":
|
|
38
|
+
"checksum": "81fcf59bb7abb558aedc6f2361f4723b3d757d28e799962d88b18b4520df66ca",
|
|
39
|
+
"size": 263931552
|
|
40
40
|
},
|
|
41
41
|
"win32-arm64": {
|
|
42
42
|
"binary": "claude.exe",
|
|
43
|
-
"checksum": "
|
|
44
|
-
"size":
|
|
43
|
+
"checksum": "a7959fd87feb9557d56f4e5752f7ed1ddf405f3bea91b2571bf93af636efd193",
|
|
44
|
+
"size": 258307232
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"sdkCompat": {
|
|
@@ -67,7 +67,8 @@
|
|
|
67
67
|
"0.3.207",
|
|
68
68
|
"0.3.208",
|
|
69
69
|
"0.3.209",
|
|
70
|
-
"0.3.215"
|
|
70
|
+
"0.3.215",
|
|
71
|
+
"0.3.217"
|
|
71
72
|
],
|
|
72
73
|
"harnessSchema": 1
|
|
73
74
|
}
|
package/manifest.zst.json
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-07-
|
|
2
|
+
"version": "2.1.218",
|
|
3
|
+
"commit": "bce61b433bc397ce68686368abd12f545b0a013a",
|
|
4
|
+
"buildDate": "2026-07-22T18:44:19Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude.zst",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "e573c71d81c54347ebcbd6d7988f3798601e3150ea69e3beaa6252cd944fb0de",
|
|
9
|
+
"size": 52109964,
|
|
10
10
|
"bundle": {
|
|
11
|
-
"checksum": "
|
|
12
|
-
"size":
|
|
11
|
+
"checksum": "6521f8d9d917c4d7dc12318585721bdb60211c9fc1ca11bfc131af0ff420a853",
|
|
12
|
+
"size": 52131305
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"darwin-x64": {
|
|
16
16
|
"binary": "claude.zst",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "4566d7bc48fbceea9436d09d311c19bbd00c9a8328202c785c06cced00d0a4cf",
|
|
18
|
+
"size": 56653254,
|
|
19
19
|
"bundle": {
|
|
20
|
-
"checksum": "
|
|
21
|
-
"size":
|
|
20
|
+
"checksum": "9d627f5e45c3a9698824c284155dbf2aebb3da3bb0ecc35c198192d98c7eac90",
|
|
21
|
+
"size": 56657735
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"linux-arm64": {
|
|
25
25
|
"binary": "claude.zst",
|
|
26
|
-
"checksum": "
|
|
27
|
-
"size":
|
|
26
|
+
"checksum": "c3c149749fbe54d452f09865791450aad6f38350c73c1fcabcfc0b1f8705b5e9",
|
|
27
|
+
"size": 60992519
|
|
28
28
|
},
|
|
29
29
|
"linux-x64": {
|
|
30
30
|
"binary": "claude.zst",
|
|
31
|
-
"checksum": "
|
|
32
|
-
"size":
|
|
31
|
+
"checksum": "c9ae380f8787831bdd0659fe6022fb9dfa51c41a551673497c56b14c86f9b1cd",
|
|
32
|
+
"size": 62289374
|
|
33
33
|
},
|
|
34
34
|
"linux-arm64-musl": {
|
|
35
35
|
"binary": "claude.zst",
|
|
36
|
-
"checksum": "
|
|
37
|
-
"size":
|
|
36
|
+
"checksum": "1a1d5499fcdeddd2fc92bc3d0091003b60987293a770e9a7f9595a418f6c99d1",
|
|
37
|
+
"size": 59660082
|
|
38
38
|
},
|
|
39
39
|
"linux-x64-musl": {
|
|
40
40
|
"binary": "claude.zst",
|
|
41
|
-
"checksum": "
|
|
42
|
-
"size":
|
|
41
|
+
"checksum": "30a1e4f61f193dfaf50b65155fe815bb0c732429d1ca3f7ada511f6e51e1a972",
|
|
42
|
+
"size": 61061435
|
|
43
43
|
},
|
|
44
44
|
"win32-x64": {
|
|
45
45
|
"binary": "claude.exe.zst",
|
|
46
|
-
"checksum": "
|
|
47
|
-
"size":
|
|
46
|
+
"checksum": "fde8d0b1b194d72c49e08f04e03645ade5aa8cbf443644ef81d45a3f3b49c2b4",
|
|
47
|
+
"size": 62715087
|
|
48
48
|
},
|
|
49
49
|
"win32-arm64": {
|
|
50
50
|
"binary": "claude.exe.zst",
|
|
51
|
-
"checksum": "
|
|
52
|
-
"size":
|
|
51
|
+
"checksum": "02db299bd7109f40c3ad9cbaab8e02563802e4563eaa33e6065a1468c88819b3",
|
|
52
|
+
"size": 60749318
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"sdkCompat": {
|
|
@@ -75,7 +75,8 @@
|
|
|
75
75
|
"0.3.207",
|
|
76
76
|
"0.3.208",
|
|
77
77
|
"0.3.209",
|
|
78
|
-
"0.3.215"
|
|
78
|
+
"0.3.215",
|
|
79
|
+
"0.3.217"
|
|
79
80
|
],
|
|
80
81
|
"harnessSchema": 1
|
|
81
82
|
}
|
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.218",
|
|
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.218",
|
|
61
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.218",
|
|
62
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.218",
|
|
63
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.218",
|
|
64
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.218",
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.218",
|
|
66
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.218",
|
|
67
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.218"
|
|
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.218"
|
|
84
84
|
}
|
package/sdk-tools.d.ts
CHANGED
|
@@ -2864,7 +2864,7 @@ export interface ArtifactInput {
|
|
|
2864
2864
|
*/
|
|
2865
2865
|
url?: string;
|
|
2866
2866
|
/**
|
|
2867
|
-
*
|
|
2867
|
+
* Last-resort overwrite that DISCARDS another session's published version. On a 409 conflict the normal fix is to re-read the artifact, merge your edits on top of the newer content, and publish again — not force. Pass force:true only when the user explicitly wants to replace the other session's version. The tracked baseVersion is still sent; with force:true the server treats it as informational and overwrites. Omit (or false) so a concurrent write 409s instead of being silently clobbered.
|
|
2868
2868
|
*/
|
|
2869
2869
|
force?: boolean;
|
|
2870
2870
|
}
|
package/sdk.d.ts
CHANGED
|
@@ -1252,6 +1252,14 @@ export declare type ModelUsage = {
|
|
|
1252
1252
|
costUSD: number;
|
|
1253
1253
|
contextWindow: number;
|
|
1254
1254
|
maxOutputTokens: number;
|
|
1255
|
+
/**
|
|
1256
|
+
* Canonical model id used for the pricing lookup (e.g. 'claude-opus-4-7'). May differ from the raw model string this entry is keyed by (provider-specific ids, aliases).
|
|
1257
|
+
*/
|
|
1258
|
+
canonicalModel?: string;
|
|
1259
|
+
/**
|
|
1260
|
+
* API provider that served this model ('firstParty', 'bedrock', 'vertex', 'foundry', 'anthropicAws', 'anthropicGoogleCloud', 'mantle', 'gateway').
|
|
1261
|
+
*/
|
|
1262
|
+
provider?: string;
|
|
1255
1263
|
};
|
|
1256
1264
|
|
|
1257
1265
|
export declare type NonNullableUsage = {
|
|
@@ -4544,7 +4552,7 @@ export declare type SDKUserMessage = {
|
|
|
4544
4552
|
parent_tool_use_id: string | null;
|
|
4545
4553
|
isSynthetic?: boolean;
|
|
4546
4554
|
/**
|
|
4547
|
-
* 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
|
|
4555
|
+
* 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 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.
|
|
4548
4556
|
*/
|
|
4549
4557
|
tool_use_result?: unknown;
|
|
4550
4558
|
priority?: 'now' | 'next' | 'later';
|
|
@@ -4590,7 +4598,7 @@ export declare type SDKUserMessageReplay = {
|
|
|
4590
4598
|
parent_tool_use_id: string | null;
|
|
4591
4599
|
isSynthetic?: boolean;
|
|
4592
4600
|
/**
|
|
4593
|
-
* 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
|
|
4601
|
+
* 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 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.
|
|
4594
4602
|
*/
|
|
4595
4603
|
tool_use_result?: unknown;
|
|
4596
4604
|
priority?: 'now' | 'next' | 'later';
|
|
@@ -6513,7 +6521,7 @@ export declare interface Settings {
|
|
|
6513
6521
|
*/
|
|
6514
6522
|
showTurnDuration?: boolean;
|
|
6515
6523
|
/**
|
|
6516
|
-
* Stamp each
|
|
6524
|
+
* Stamp each message with its arrival time
|
|
6517
6525
|
*/
|
|
6518
6526
|
showMessageTimestamps?: boolean;
|
|
6519
6527
|
/**
|