@anthropic-ai/claude-agent-sdk 0.3.234 → 0.3.236
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 +73 -73
- package/browser-sdk.js +36 -36
- package/manifest.json +19 -21
- package/manifest.zst.json +23 -25
- package/package.json +10 -10
- package/sdk-tools.d.ts +15 -4
- package/sdk.d.ts +31 -2
- package/sdk.mjs +74 -74
package/manifest.json
CHANGED
|
@@ -1,53 +1,51 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-08-
|
|
2
|
+
"version": "2.1.236",
|
|
3
|
+
"commit": "82959839e9405dd642b4e3eaa6ef4101bf285fee",
|
|
4
|
+
"buildDate": "2026-08-19T16:49:51Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "6bc4ba992d2786cbf0237c4453ca53c1fdf0c3b3d83ffa0025c0d8190ed27848",
|
|
9
|
+
"size": 317044624
|
|
10
10
|
},
|
|
11
11
|
"darwin-x64": {
|
|
12
12
|
"binary": "claude",
|
|
13
|
-
"checksum": "
|
|
14
|
-
"size":
|
|
13
|
+
"checksum": "3ce6a8e016fcae45ad3f2dc78f1980600d3908c302355396a0d6bc17b5d43333",
|
|
14
|
+
"size": 325726960
|
|
15
15
|
},
|
|
16
16
|
"linux-arm64": {
|
|
17
17
|
"binary": "claude",
|
|
18
|
-
"checksum": "
|
|
19
|
-
"size":
|
|
18
|
+
"checksum": "c38d37deaf1643083326c48a6acc0afb09dada126e6bda77ef1a4410ae60ca12",
|
|
19
|
+
"size": 331798760
|
|
20
20
|
},
|
|
21
21
|
"linux-x64": {
|
|
22
22
|
"binary": "claude",
|
|
23
|
-
"checksum": "
|
|
24
|
-
"size":
|
|
23
|
+
"checksum": "6c8818fa22187aa555c242be4abbacc44d6b71a32ac9631ee7b2b5d12f51f752",
|
|
24
|
+
"size": 334645552
|
|
25
25
|
},
|
|
26
26
|
"linux-arm64-musl": {
|
|
27
27
|
"binary": "claude",
|
|
28
|
-
"checksum": "
|
|
29
|
-
"size":
|
|
28
|
+
"checksum": "56fe9241267b0187538a9cf7dafa0df12d94fd27789fa7207a59c2a0b4121b8f",
|
|
29
|
+
"size": 324943640
|
|
30
30
|
},
|
|
31
31
|
"linux-x64-musl": {
|
|
32
32
|
"binary": "claude",
|
|
33
|
-
"checksum": "
|
|
34
|
-
"size":
|
|
33
|
+
"checksum": "979acf4877fa3dca24d6d15043022b5005cc8502fdb4c68992dd91651af31731",
|
|
34
|
+
"size": 328769504
|
|
35
35
|
},
|
|
36
36
|
"win32-x64": {
|
|
37
37
|
"binary": "claude.exe",
|
|
38
|
-
"checksum": "
|
|
39
|
-
"size":
|
|
38
|
+
"checksum": "647e736f20c9ff0553c754624cbf8a6dcac196e8595509d8f63dce8bbe818757",
|
|
39
|
+
"size": 330097824
|
|
40
40
|
},
|
|
41
41
|
"win32-arm64": {
|
|
42
42
|
"binary": "claude.exe",
|
|
43
|
-
"checksum": "
|
|
44
|
-
"size":
|
|
43
|
+
"checksum": "95726b1cb3bd6541a695e4d3ee00716b4e1e5157cdef0a3cbce614d5cc140e9d",
|
|
44
|
+
"size": 317997728
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"sdkCompat": {
|
|
48
48
|
"testedWrapperVersions": [
|
|
49
|
-
"0.3.196",
|
|
50
|
-
"0.3.197",
|
|
51
49
|
"0.3.198",
|
|
52
50
|
"0.3.199",
|
|
53
51
|
"0.3.200",
|
package/manifest.zst.json
CHANGED
|
@@ -1,61 +1,59 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-08-
|
|
2
|
+
"version": "2.1.236",
|
|
3
|
+
"commit": "82959839e9405dd642b4e3eaa6ef4101bf285fee",
|
|
4
|
+
"buildDate": "2026-08-19T16:52:17Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude.zst",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "2a36013e5d16f39ab372317f2a78fb90a66fe363a9489ce9d55cc1a22871e30e",
|
|
9
|
+
"size": 63375100,
|
|
10
10
|
"bundle": {
|
|
11
|
-
"checksum": "
|
|
12
|
-
"size":
|
|
11
|
+
"checksum": "fa2acd9865513c216648bbeb7bd8132ca362b24b8833b9a6727b7ed6991d8b79",
|
|
12
|
+
"size": 63368478
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"darwin-x64": {
|
|
16
16
|
"binary": "claude.zst",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "d9792583dfcbad6a75030fe7ad7aad95767ff9cda2e2daaa1f4d843c5e2b4285",
|
|
18
|
+
"size": 68033390,
|
|
19
19
|
"bundle": {
|
|
20
|
-
"checksum": "
|
|
21
|
-
"size":
|
|
20
|
+
"checksum": "d6ebae7a8f672889bdbfb23279657edb11cd7bd0022ba6a041c00781e01e318d",
|
|
21
|
+
"size": 68033703
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"linux-arm64": {
|
|
25
25
|
"binary": "claude.zst",
|
|
26
|
-
"checksum": "
|
|
27
|
-
"size":
|
|
26
|
+
"checksum": "78bf0f46b9349c28150a308fbf9a25ebd1de412052cb5a0b317437c375aefbb0",
|
|
27
|
+
"size": 72310411
|
|
28
28
|
},
|
|
29
29
|
"linux-x64": {
|
|
30
30
|
"binary": "claude.zst",
|
|
31
|
-
"checksum": "
|
|
32
|
-
"size":
|
|
31
|
+
"checksum": "944815ef17d3ee89b04d352bc68217835d45fa32b7906adbe223153159f8411d",
|
|
32
|
+
"size": 73511767
|
|
33
33
|
},
|
|
34
34
|
"linux-arm64-musl": {
|
|
35
35
|
"binary": "claude.zst",
|
|
36
|
-
"checksum": "
|
|
37
|
-
"size":
|
|
36
|
+
"checksum": "cadb7751ff700503bcd45d5cf960b5902d7b0d9719cd3b7e8e1af3997ca7f5f8",
|
|
37
|
+
"size": 70879003
|
|
38
38
|
},
|
|
39
39
|
"linux-x64-musl": {
|
|
40
40
|
"binary": "claude.zst",
|
|
41
|
-
"checksum": "
|
|
42
|
-
"size":
|
|
41
|
+
"checksum": "a62354366445d6ea49c30fa44a51ce523c4cae22c5742284416127949f081f03",
|
|
42
|
+
"size": 72013109
|
|
43
43
|
},
|
|
44
44
|
"win32-x64": {
|
|
45
45
|
"binary": "claude.exe.zst",
|
|
46
|
-
"checksum": "
|
|
47
|
-
"size":
|
|
46
|
+
"checksum": "d5b1d5853ce26a6bb2e0bcc85afa780edc27c0a3eb4ecc1de8c3bb9b83d30d34",
|
|
47
|
+
"size": 75849923
|
|
48
48
|
},
|
|
49
49
|
"win32-arm64": {
|
|
50
50
|
"binary": "claude.exe.zst",
|
|
51
|
-
"checksum": "
|
|
52
|
-
"size":
|
|
51
|
+
"checksum": "e45b3d379bc0ad2dd4432adbb3549b3d5f0a4b98cb099731ed142e618db19acb",
|
|
52
|
+
"size": 72271473
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"sdkCompat": {
|
|
56
56
|
"testedWrapperVersions": [
|
|
57
|
-
"0.3.196",
|
|
58
|
-
"0.3.197",
|
|
59
57
|
"0.3.198",
|
|
60
58
|
"0.3.199",
|
|
61
59
|
"0.3.200",
|
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.236",
|
|
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.236",
|
|
61
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.236",
|
|
62
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.236",
|
|
63
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.236",
|
|
64
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.236",
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.236",
|
|
66
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.236",
|
|
67
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.236"
|
|
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.236"
|
|
84
84
|
}
|
package/sdk-tools.d.ts
CHANGED
|
@@ -401,6 +401,7 @@ export type ArtifactOutput =
|
|
|
401
401
|
| {
|
|
402
402
|
url: string;
|
|
403
403
|
path: string;
|
|
404
|
+
artifact_id?: string;
|
|
404
405
|
title?: string;
|
|
405
406
|
version?: string;
|
|
406
407
|
capabilities?: unknown;
|
|
@@ -2966,17 +2967,27 @@ export interface ArtifactInput {
|
|
|
2966
2967
|
*/
|
|
2967
2968
|
force?: boolean;
|
|
2968
2969
|
/**
|
|
2969
|
-
* read_asset
|
|
2970
|
+
* read_asset: directory to save the file into (default: the working directory); the file is named by the asset id plus the extension for its type.
|
|
2970
2971
|
*/
|
|
2971
|
-
|
|
2972
|
+
out_dir?: string;
|
|
2972
2973
|
/**
|
|
2973
|
-
* read_asset
|
|
2974
|
+
* read_asset and delete_asset: the asset's id (32 hex characters), from a list_assets or upload_asset result.
|
|
2974
2975
|
*/
|
|
2975
|
-
|
|
2976
|
+
asset_id?: string;
|
|
2976
2977
|
/**
|
|
2977
2978
|
* list_assets only: the `next` value from a previous list_assets result, to continue that listing.
|
|
2978
2979
|
*/
|
|
2979
2980
|
after?: string;
|
|
2981
|
+
/**
|
|
2982
|
+
* Runtime capabilities this page declares, as {name: config}. The control plane is the authority on valid names and config shapes. An empty object clears any previously stored declaration; omit the field on a redeploy to carry the stored declaration forward unchanged. Before declaring any capability, load the `artifact-capabilities` skill for the current contract and per-capability guidance.
|
|
2983
|
+
*/
|
|
2984
|
+
capabilities?: {
|
|
2985
|
+
[k: string]: unknown;
|
|
2986
|
+
};
|
|
2987
|
+
/**
|
|
2988
|
+
* The artifact's runtime version. Omit to keep its current version (the default); 'latest' to upgrade; a specific version to pin or roll back. Changing it changes how the published page behaves — pass only when the author explicitly intends the change, never as a side effect of editing.
|
|
2989
|
+
*/
|
|
2990
|
+
contract?: "latest" | string;
|
|
2980
2991
|
}
|
|
2981
2992
|
export interface PushNotificationInput {
|
|
2982
2993
|
/**
|
package/sdk.d.ts
CHANGED
|
@@ -1299,7 +1299,7 @@ export declare type ModelUsage = {
|
|
|
1299
1299
|
*/
|
|
1300
1300
|
canonicalModel?: string;
|
|
1301
1301
|
/**
|
|
1302
|
-
* API provider that served this model ('firstParty', 'bedrock', 'vertex', 'foundry', 'anthropicAws', '
|
|
1302
|
+
* API provider that served this model (e.g. 'firstParty', 'bedrock', 'vertex', 'foundry', 'anthropicAws', 'mantle', 'gateway').
|
|
1303
1303
|
*/
|
|
1304
1304
|
provider?: string;
|
|
1305
1305
|
};
|
|
@@ -2330,6 +2330,10 @@ export declare type PostToolUseHookInput = BaseHookInput & {
|
|
|
2330
2330
|
export declare type PostToolUseHookSpecificOutput = {
|
|
2331
2331
|
hookEventName: 'PostToolUse';
|
|
2332
2332
|
additionalContext?: string;
|
|
2333
|
+
/**
|
|
2334
|
+
* Host-asserted context shown to the auto-mode permission classifier alongside this tool call's result. In the live session the classifier may weigh a user statement relayed here as user intent (it can satisfy a consent bar a user turn would satisfy, never a hard boundary); values restored from saved session state are treated as unverified context only. Relay discipline is the host's obligation: put ONLY genuine user statements in intent-bearing positions — never tool output or model text dressed as one. Capped at 2000 UTF-16 code units, a budget shared across all hooks that contribute to one call (surrogate-pair-safe; emoji and other astral characters count as two). Honored on synchronous hook responses only: an async hook's late response arrives after the result message is frozen and this field in it is silently ignored. Security note: do not copy untrusted tool output or third-party text into it blindly — content placed here reaches the permission classifier with host-application framing. Applies only to calls the classifier transcript shows: read-only lookups the transcript omits (file reads, searches), inner REPL calls, and remote-engine shells produce no per-result line, and context attached to them is silently unused. Not a delivery channel: it is bound to a single call id and sized for a short assertion, not for relaying messages or events. Rewrite integrity: if this assertion describes output you are rewriting, return it in the SAME hook result as the rewrite — it is then dropped automatically if your rewrite is rejected or superseded by a later hook's rewrite; assertions returned without a rewrite are never invalidated by other hooks' rewrites, so a non-rewriting hook should assert only what holds regardless of other hooks' rewrites — hosts that need an assertion bound to exact output bytes should make it in the hook that produces those bytes. (Do NOT return an identity rewrite just to pair an assertion: hooks run in parallel on the ORIGINAL output, so an identity rewrite competes last-write-wins with sibling rewrites and can clobber a real redaction.)
|
|
2335
|
+
*/
|
|
2336
|
+
classifierContext?: string;
|
|
2333
2337
|
/**
|
|
2334
2338
|
* Replaces the tool output before it is sent to the model
|
|
2335
2339
|
*/
|
|
@@ -3095,9 +3099,10 @@ export declare type SDKAssistantMessage = {
|
|
|
3095
3099
|
|
|
3096
3100
|
|
|
3097
3101
|
|
|
3102
|
+
|
|
3098
3103
|
};
|
|
3099
3104
|
|
|
3100
|
-
export declare type SDKAssistantMessageError = 'authentication_failed' | 'oauth_org_not_allowed' | 'billing_error' | 'rate_limit' | 'overloaded' | 'invalid_request' | 'model_not_found' | 'server_error' | 'unknown' | 'max_output_tokens';
|
|
3105
|
+
export declare type SDKAssistantMessageError = 'authentication_failed' | 'oauth_org_not_allowed' | 'account_on_hold' | 'billing_error' | 'rate_limit' | 'overloaded' | 'invalid_request' | 'model_not_found' | 'server_error' | 'unknown' | 'max_output_tokens';
|
|
3101
3106
|
|
|
3102
3107
|
export declare type SDKAuthStatusMessage = {
|
|
3103
3108
|
type: 'auth_status';
|
|
@@ -4184,6 +4189,8 @@ declare type SDKHookCallbackRequest = {
|
|
|
4184
4189
|
callback_id: string;
|
|
4185
4190
|
input: coreTypes.HookInput;
|
|
4186
4191
|
tool_use_id?: string;
|
|
4192
|
+
|
|
4193
|
+
|
|
4187
4194
|
};
|
|
4188
4195
|
|
|
4189
4196
|
export declare type SDKHookProgressMessage = {
|
|
@@ -7267,6 +7274,28 @@ export declare interface Settings {
|
|
|
7267
7274
|
* Whether to disable syntax highlighting in diffs
|
|
7268
7275
|
*/
|
|
7269
7276
|
syntaxHighlightingDisabled?: boolean;
|
|
7277
|
+
/**
|
|
7278
|
+
* Underline misspelled words in the prompt input as you type, using an installed aspell, hunspell or ispell (off unless "enabled" is true; does nothing if none is installed). Read from user, flag and managed settings only (the whole block from the highest-precedence of those applies); ignored in project .claude/settings.json and .claude/settings.local.json.
|
|
7279
|
+
*/
|
|
7280
|
+
spellcheck?: {
|
|
7281
|
+
/**
|
|
7282
|
+
* Turn on spell checking of the prompt input (default: false)
|
|
7283
|
+
*/
|
|
7284
|
+
enabled?: boolean;
|
|
7285
|
+
/**
|
|
7286
|
+
* Which spell checker to run: "aspell", "hunspell", "ispell", or "auto" (default) for the first of those found on PATH
|
|
7287
|
+
*/
|
|
7288
|
+
checker?: string;
|
|
7289
|
+
/**
|
|
7290
|
+
* Dictionary to use, passed to the checker as-is (aspell --lang, hunspell -d, ispell -d), e.g. "en_GB"; names are checker-specific (letters, digits and _ - . , only). Default: the checker's own default
|
|
7291
|
+
*/
|
|
7292
|
+
language?: string;
|
|
7293
|
+
/**
|
|
7294
|
+
* Color of misspelled words (they are also underlined): a terminal color name such as "red" or "magenta", "#rrggbb", "rgb(r,g,b)", "ansi256(n)" or "ansi:<name>". Default: the theme's error color
|
|
7295
|
+
*/
|
|
7296
|
+
color?: string;
|
|
7297
|
+
[k: string]: unknown;
|
|
7298
|
+
};
|
|
7270
7299
|
/**
|
|
7271
7300
|
* Whether /rename updates the terminal tab title (defaults to true). Set to false to keep auto-generated topic titles.
|
|
7272
7301
|
*/
|