@anthropic-ai/claude-agent-sdk 0.3.170 → 0.3.172
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/assistant.mjs +118 -118
- package/bridge.mjs +60 -60
- package/browser-sdk.js +30 -30
- package/manifest.json +19 -19
- package/manifest.zst.json +23 -23
- package/package.json +10 -10
- package/sdk-tools.d.ts +37 -0
- package/sdk.d.ts +9 -0
- package/sdk.mjs +39 -39
package/manifest.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-06-
|
|
2
|
+
"version": "2.1.172",
|
|
3
|
+
"commit": "1b719ca2781a2dccc4a769b66bc35b4a60509ad7",
|
|
4
|
+
"buildDate": "2026-06-10T16:38:17Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "3c31f345575bf6f261c7e19981f6491bb93eeb0ffb499e95033610a7184831ce",
|
|
9
|
+
"size": 223390752
|
|
10
10
|
},
|
|
11
11
|
"darwin-x64": {
|
|
12
12
|
"binary": "claude",
|
|
13
|
-
"checksum": "
|
|
14
|
-
"size":
|
|
13
|
+
"checksum": "c507f98750c5230e4247f7eadff38e4db04c006904f85379e31c5d5e82e1c384",
|
|
14
|
+
"size": 225892528
|
|
15
15
|
},
|
|
16
16
|
"linux-arm64": {
|
|
17
17
|
"binary": "claude",
|
|
18
|
-
"checksum": "
|
|
19
|
-
"size":
|
|
18
|
+
"checksum": "4ef0d735bd4180c3bffc381f6dc38df979229a8637d294be751c6043d93d12e1",
|
|
19
|
+
"size": 248624776
|
|
20
20
|
},
|
|
21
21
|
"linux-x64": {
|
|
22
22
|
"binary": "claude",
|
|
23
|
-
"checksum": "
|
|
24
|
-
"size":
|
|
23
|
+
"checksum": "c0915dd1691d569aeebc7978b12e029718323685ec0dd4b5c6a453108d6be1f7",
|
|
24
|
+
"size": 248743632
|
|
25
25
|
},
|
|
26
26
|
"linux-arm64-musl": {
|
|
27
27
|
"binary": "claude",
|
|
28
|
-
"checksum": "
|
|
29
|
-
"size":
|
|
28
|
+
"checksum": "6b10aad4270348175206bd2475f82ef3c56007dfb55d7b90f1950dfa8fb9eb40",
|
|
29
|
+
"size": 241479512
|
|
30
30
|
},
|
|
31
31
|
"linux-x64-musl": {
|
|
32
32
|
"binary": "claude",
|
|
33
|
-
"checksum": "
|
|
34
|
-
"size":
|
|
33
|
+
"checksum": "58f2c60711f95e51d86d1af5b915cbdd0458710f1830b7c26d59b78f1ad1f861",
|
|
34
|
+
"size": 243153968
|
|
35
35
|
},
|
|
36
36
|
"win32-x64": {
|
|
37
37
|
"binary": "claude.exe",
|
|
38
|
-
"checksum": "
|
|
39
|
-
"size":
|
|
38
|
+
"checksum": "07132ca4bbef551c92c1ae6ca0220a5e523092c9fa9cf402f65f428450687455",
|
|
39
|
+
"size": 244181152
|
|
40
40
|
},
|
|
41
41
|
"win32-arm64": {
|
|
42
42
|
"binary": "claude.exe",
|
|
43
|
-
"checksum": "
|
|
44
|
-
"size":
|
|
43
|
+
"checksum": "1e3e165c03de2af83c1e3516b73890b56e9785a2382338adcc28f41918bf4d2f",
|
|
44
|
+
"size": 240146080
|
|
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.172",
|
|
3
|
+
"commit": "1b719ca2781a2dccc4a769b66bc35b4a60509ad7",
|
|
4
|
+
"buildDate": "2026-06-10T16:40:02Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude.zst",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "759bbc3536d1a718cac24dfdd08a368bc63b64f64d199e64b354d101a4542050",
|
|
9
|
+
"size": 45892652,
|
|
10
10
|
"bundle": {
|
|
11
|
-
"checksum": "
|
|
12
|
-
"size":
|
|
11
|
+
"checksum": "8ed897263049f1dc5d7eff8b70bd2a08cdd459a07e11702a9a51fa68e4b44130",
|
|
12
|
+
"size": 45888336
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"darwin-x64": {
|
|
16
16
|
"binary": "claude.zst",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "f8207869e2d8969e4df23d59a0ba619c9b782ba647622e5567ddd9daf3c68996",
|
|
18
|
+
"size": 47796942,
|
|
19
19
|
"bundle": {
|
|
20
|
-
"checksum": "
|
|
21
|
-
"size":
|
|
20
|
+
"checksum": "f63edc2de24311b5baad57225f354a62622b611e3ccb009c9a4928ab1973be4b",
|
|
21
|
+
"size": 47794444
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"linux-arm64": {
|
|
25
25
|
"binary": "claude.zst",
|
|
26
|
-
"checksum": "
|
|
27
|
-
"size":
|
|
26
|
+
"checksum": "bfb5b7972cd5b6e8409e3f1dd259f2bb56ccbd3faa78420c030d9c1bd2c589b2",
|
|
27
|
+
"size": 53537540
|
|
28
28
|
},
|
|
29
29
|
"linux-x64": {
|
|
30
30
|
"binary": "claude.zst",
|
|
31
|
-
"checksum": "
|
|
32
|
-
"size":
|
|
31
|
+
"checksum": "cccc4486cb1c536918c1f54ff8509524633380f741253b00e29ce0db67fc1003",
|
|
32
|
+
"size": 54221669
|
|
33
33
|
},
|
|
34
34
|
"linux-arm64-musl": {
|
|
35
35
|
"binary": "claude.zst",
|
|
36
|
-
"checksum": "
|
|
37
|
-
"size":
|
|
36
|
+
"checksum": "e3e80acadc3d75733ebfdd196e3fa8d6d189ec938a28b6cb361a99a1b49beec5",
|
|
37
|
+
"size": 52160799
|
|
38
38
|
},
|
|
39
39
|
"linux-x64-musl": {
|
|
40
40
|
"binary": "claude.zst",
|
|
41
|
-
"checksum": "
|
|
42
|
-
"size":
|
|
41
|
+
"checksum": "f88dba6370ab59cf918806dfae856e52c53595fca27072b78ee2a5757219dae3",
|
|
42
|
+
"size": 52864871
|
|
43
43
|
},
|
|
44
44
|
"win32-x64": {
|
|
45
45
|
"binary": "claude.exe.zst",
|
|
46
|
-
"checksum": "
|
|
47
|
-
"size":
|
|
46
|
+
"checksum": "94297aa5ba27fcc918e5401b6894b9690a6671c35224f8eafb6915de4271d7ec",
|
|
47
|
+
"size": 54883060
|
|
48
48
|
},
|
|
49
49
|
"win32-arm64": {
|
|
50
50
|
"binary": "claude.exe.zst",
|
|
51
|
-
"checksum": "
|
|
52
|
-
"size":
|
|
51
|
+
"checksum": "e10be49737ca3feab22bd88ecfb017f32eb06978e8237daebbce8f84f79a2eb3",
|
|
52
|
+
"size": 53155326
|
|
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.172",
|
|
4
4
|
"main": "sdk.mjs",
|
|
5
5
|
"types": "sdk.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -61,14 +61,14 @@
|
|
|
61
61
|
"zod": "^4.0.0"
|
|
62
62
|
},
|
|
63
63
|
"optionalDependencies": {
|
|
64
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.
|
|
65
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.
|
|
66
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.
|
|
67
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.
|
|
68
|
-
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.
|
|
69
|
-
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.
|
|
70
|
-
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.
|
|
71
|
-
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.
|
|
64
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.172",
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.172",
|
|
66
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.172",
|
|
67
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.172",
|
|
68
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.172",
|
|
69
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.172",
|
|
70
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.172",
|
|
71
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.172"
|
|
72
72
|
},
|
|
73
73
|
"files": [
|
|
74
74
|
"sdk.mjs",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"manifest.json",
|
|
87
87
|
"manifest.zst.json"
|
|
88
88
|
],
|
|
89
|
-
"claudeCodeVersion": "2.1.
|
|
89
|
+
"claudeCodeVersion": "2.1.172"
|
|
90
90
|
}
|
package/sdk-tools.d.ts
CHANGED
|
@@ -39,7 +39,9 @@ export type ToolInputSchemas =
|
|
|
39
39
|
| CronListInput
|
|
40
40
|
| ScheduleWakeupInput
|
|
41
41
|
| RemoteTriggerInput
|
|
42
|
+
| ShowOnboardingRolePickerInput
|
|
42
43
|
| MonitorInput
|
|
44
|
+
| ArtifactInput
|
|
43
45
|
| PushNotificationInput
|
|
44
46
|
| EnterWorktreeInput
|
|
45
47
|
| ExitWorktreeInput
|
|
@@ -68,7 +70,9 @@ export type ToolOutputSchemas =
|
|
|
68
70
|
| TaskGetOutput
|
|
69
71
|
| TaskUpdateOutput
|
|
70
72
|
| TaskListOutput
|
|
73
|
+
| ArtifactOutput
|
|
71
74
|
| RemoteTriggerOutput
|
|
75
|
+
| ShowOnboardingRolePickerOutput
|
|
72
76
|
| ScheduleWakeupOutput
|
|
73
77
|
| MonitorOutput
|
|
74
78
|
| EnterPlanModeOutput
|
|
@@ -2348,6 +2352,7 @@ export interface RemoteTriggerInput {
|
|
|
2348
2352
|
[k: string]: unknown;
|
|
2349
2353
|
};
|
|
2350
2354
|
}
|
|
2355
|
+
export interface ShowOnboardingRolePickerInput {}
|
|
2351
2356
|
export interface MonitorInput {
|
|
2352
2357
|
/**
|
|
2353
2358
|
* Short human-readable description of what you are monitoring (shown in notifications).
|
|
@@ -2366,6 +2371,24 @@ export interface MonitorInput {
|
|
|
2366
2371
|
*/
|
|
2367
2372
|
command: string;
|
|
2368
2373
|
}
|
|
2374
|
+
export interface ArtifactInput {
|
|
2375
|
+
/**
|
|
2376
|
+
* Path to an .html or .md file to render. Use a short, distinctive basename — it is the fallback title if the HTML has no <title>.
|
|
2377
|
+
*/
|
|
2378
|
+
file_path: string;
|
|
2379
|
+
/**
|
|
2380
|
+
* Browser-tab icon: one or two emoji (e.g. "📊"). No markup. Keep stable across redeploys; change only on a hard topic pivot.
|
|
2381
|
+
*/
|
|
2382
|
+
favicon: string;
|
|
2383
|
+
/**
|
|
2384
|
+
* Short human-readable name for this version (e.g. "fixed-background"). Shown in the version picker instead of the raw version id.
|
|
2385
|
+
*/
|
|
2386
|
+
label?: string;
|
|
2387
|
+
/**
|
|
2388
|
+
* Existing artifact URL to redeploy to. Pass when the user gives you a URL for an artifact not published in this session; omit for new artifacts or same-session redeploys. Must be an artifact the user owns.
|
|
2389
|
+
*/
|
|
2390
|
+
url?: string;
|
|
2391
|
+
}
|
|
2369
2392
|
export interface PushNotificationInput {
|
|
2370
2393
|
/**
|
|
2371
2394
|
* The notification body. Keep it under 200 characters; mobile OSes truncate.
|
|
@@ -2711,6 +2734,10 @@ export interface ReadMcpResourceOutput {
|
|
|
2711
2734
|
*/
|
|
2712
2735
|
blobSavedTo?: string;
|
|
2713
2736
|
}[];
|
|
2737
|
+
/**
|
|
2738
|
+
* Human-readable error when the server could not read the resource
|
|
2739
|
+
*/
|
|
2740
|
+
error?: string;
|
|
2714
2741
|
}
|
|
2715
2742
|
export interface TodoWriteOutput {
|
|
2716
2743
|
/**
|
|
@@ -3028,11 +3055,21 @@ export interface TaskListOutput {
|
|
|
3028
3055
|
blockedBy: string[];
|
|
3029
3056
|
}[];
|
|
3030
3057
|
}
|
|
3058
|
+
export interface ArtifactOutput {
|
|
3059
|
+
url: string;
|
|
3060
|
+
path: string;
|
|
3061
|
+
title?: string;
|
|
3062
|
+
mcpDropped?: string;
|
|
3063
|
+
}
|
|
3031
3064
|
export interface RemoteTriggerOutput {
|
|
3032
3065
|
status: number;
|
|
3033
3066
|
json: string;
|
|
3034
3067
|
summary?: string;
|
|
3035
3068
|
}
|
|
3069
|
+
export interface ShowOnboardingRolePickerOutput {
|
|
3070
|
+
role?: string;
|
|
3071
|
+
dismissed?: boolean;
|
|
3072
|
+
}
|
|
3036
3073
|
export interface ScheduleWakeupOutput {
|
|
3037
3074
|
/**
|
|
3038
3075
|
* Epoch ms timestamp when the next wakeup will fire
|
package/sdk.d.ts
CHANGED
|
@@ -3248,6 +3248,7 @@ export declare type SDKControlInitializeResponse = {
|
|
|
3248
3248
|
*/
|
|
3249
3249
|
declare type SDKControlInterruptRequest = {
|
|
3250
3250
|
subtype: 'interrupt';
|
|
3251
|
+
|
|
3251
3252
|
};
|
|
3252
3253
|
|
|
3253
3254
|
/**
|
|
@@ -3784,6 +3785,10 @@ export declare type SdkPluginConfig = {
|
|
|
3784
3785
|
* Absolute or relative path to the plugin directory
|
|
3785
3786
|
*/
|
|
3786
3787
|
path: string;
|
|
3788
|
+
/**
|
|
3789
|
+
* When true, the engine loads skills/hooks/agents/commands from this plugin but does NOT read its .mcp.json or manifest mcpServers. Use when the SDK host owns this plugin's MCP connections.
|
|
3790
|
+
*/
|
|
3791
|
+
skipMcpDiscovery?: boolean;
|
|
3787
3792
|
};
|
|
3788
3793
|
|
|
3789
3794
|
/**
|
|
@@ -4879,6 +4884,10 @@ export declare interface Settings {
|
|
|
4879
4884
|
* Disable the Workflows feature (also via CLAUDE_CODE_DISABLE_WORKFLOWS).
|
|
4880
4885
|
*/
|
|
4881
4886
|
disableWorkflows?: boolean;
|
|
4887
|
+
/**
|
|
4888
|
+
* Disable the Artifact tool (also via CLAUDE_CODE_DISABLE_ARTIFACT).
|
|
4889
|
+
*/
|
|
4890
|
+
disableArtifact?: boolean;
|
|
4882
4891
|
/**
|
|
4883
4892
|
* Enable or disable the Workflows feature for this user. Unset = default by plan once the feature is available.
|
|
4884
4893
|
*/
|