@anthropic-ai/claude-agent-sdk 0.3.209 → 0.3.210
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 +68 -68
- package/browser-sdk.js +7 -7
- package/manifest.json +21 -20
- package/manifest.zst.json +25 -24
- package/package.json +10 -10
- package/sdk-tools.d.ts +21 -2
- package/sdk.d.ts +18 -3
- package/sdk.mjs +43 -43
package/manifest.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-07-
|
|
2
|
+
"version": "2.1.210",
|
|
3
|
+
"commit": "88e9fbf39bf4efa5bca44549b7fd9461628657e6",
|
|
4
|
+
"buildDate": "2026-07-14T15:12:31Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "1b471d62d1117482689d75447f5e050c640da717a5a3c91e6c13792450f8c662",
|
|
9
|
+
"size": 241509968
|
|
10
10
|
},
|
|
11
11
|
"darwin-x64": {
|
|
12
12
|
"binary": "claude",
|
|
13
|
-
"checksum": "
|
|
14
|
-
"size":
|
|
13
|
+
"checksum": "892f2c878050d8829e67119328dd9768345fba18a58c169212b70597c9175c40",
|
|
14
|
+
"size": 251025552
|
|
15
15
|
},
|
|
16
16
|
"linux-arm64": {
|
|
17
17
|
"binary": "claude",
|
|
18
|
-
"checksum": "
|
|
19
|
-
"size":
|
|
18
|
+
"checksum": "84feb193c1d91f3b5eba836ed47c0e4dee953195abba950917c3e101eff174e8",
|
|
19
|
+
"size": 257932016
|
|
20
20
|
},
|
|
21
21
|
"linux-x64": {
|
|
22
22
|
"binary": "claude",
|
|
23
|
-
"checksum": "
|
|
24
|
-
"size":
|
|
23
|
+
"checksum": "e7d2ceb53ed4c2ced1fe7fc1c6331c98dc5f7b4c9b2722d9c5fa3dd5dff6f719",
|
|
24
|
+
"size": 261081912
|
|
25
25
|
},
|
|
26
26
|
"linux-arm64-musl": {
|
|
27
27
|
"binary": "claude",
|
|
28
|
-
"checksum": "
|
|
29
|
-
"size":
|
|
28
|
+
"checksum": "17f617e24a05533cea8a344f44f0a25b6fb20ee467500601c3cd8392064ec528",
|
|
29
|
+
"size": 251180216
|
|
30
30
|
},
|
|
31
31
|
"linux-x64-musl": {
|
|
32
32
|
"binary": "claude",
|
|
33
|
-
"checksum": "
|
|
34
|
-
"size":
|
|
33
|
+
"checksum": "03012f856faa1a9409d9add13936794f168e530c9746c8a099dec6ce8415c32b",
|
|
34
|
+
"size": 255742336
|
|
35
35
|
},
|
|
36
36
|
"win32-x64": {
|
|
37
37
|
"binary": "claude.exe",
|
|
38
|
-
"checksum": "
|
|
39
|
-
"size":
|
|
38
|
+
"checksum": "29aa99c436f0d4125780691123b756176d83b59cc7d492304cd4694292d3f04f",
|
|
39
|
+
"size": 252385952
|
|
40
40
|
},
|
|
41
41
|
"win32-arm64": {
|
|
42
42
|
"binary": "claude.exe",
|
|
43
|
-
"checksum": "
|
|
44
|
-
"size":
|
|
43
|
+
"checksum": "4a603da0a33d49478e55938898ddd06c4ec5d1ec7f443d92dd4352665faaef05",
|
|
44
|
+
"size": 246736544
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"sdkCompat": {
|
|
@@ -63,7 +63,8 @@
|
|
|
63
63
|
"0.3.204",
|
|
64
64
|
"0.3.205",
|
|
65
65
|
"0.3.207",
|
|
66
|
-
"0.3.208"
|
|
66
|
+
"0.3.208",
|
|
67
|
+
"0.3.209"
|
|
67
68
|
],
|
|
68
69
|
"harnessSchema": 1
|
|
69
70
|
}
|
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.210",
|
|
3
|
+
"commit": "88e9fbf39bf4efa5bca44549b7fd9461628657e6",
|
|
4
|
+
"buildDate": "2026-07-14T15:14:20Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude.zst",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "b2b98bc9d82c166f423eadb1c79a0287bf68975cbdb9fd4edb0c4a2c7605ea8b",
|
|
9
|
+
"size": 49753745,
|
|
10
10
|
"bundle": {
|
|
11
|
-
"checksum": "
|
|
12
|
-
"size":
|
|
11
|
+
"checksum": "daedd5c953c84f0ecf9f67c6bd505a5cebb11c6fb2c58380bd42a903e574cf1e",
|
|
12
|
+
"size": 49743844
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"darwin-x64": {
|
|
16
16
|
"binary": "claude.zst",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "379c3df41bd6b3262e88467f91d156bb6b6f5d4c29628726d1961fc4fd968fb3",
|
|
18
|
+
"size": 54192491,
|
|
19
19
|
"bundle": {
|
|
20
|
-
"checksum": "
|
|
21
|
-
"size":
|
|
20
|
+
"checksum": "19af46b5eff6d8505e33dff623f67ba58a1e4d98e352eda948161c0f9eafb38a",
|
|
21
|
+
"size": 54195518
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"linux-arm64": {
|
|
25
25
|
"binary": "claude.zst",
|
|
26
|
-
"checksum": "
|
|
27
|
-
"size":
|
|
26
|
+
"checksum": "7056a3eed6c5a2bb6dfad0613c55227a66acc0c9022eb3ab615f9b77b13ddef0",
|
|
27
|
+
"size": 58807309
|
|
28
28
|
},
|
|
29
29
|
"linux-x64": {
|
|
30
30
|
"binary": "claude.zst",
|
|
31
|
-
"checksum": "
|
|
32
|
-
"size":
|
|
31
|
+
"checksum": "4b487e778a705e992dee0056fb96f106b1417f543162b69ada6666c46404754a",
|
|
32
|
+
"size": 60117820
|
|
33
33
|
},
|
|
34
34
|
"linux-arm64-musl": {
|
|
35
35
|
"binary": "claude.zst",
|
|
36
|
-
"checksum": "
|
|
37
|
-
"size":
|
|
36
|
+
"checksum": "0eaea6f2b355654b11baaed0c1a04c2686ac893c6ee79c366c74c486425655d5",
|
|
37
|
+
"size": 57495755
|
|
38
38
|
},
|
|
39
39
|
"linux-x64-musl": {
|
|
40
40
|
"binary": "claude.zst",
|
|
41
|
-
"checksum": "
|
|
42
|
-
"size":
|
|
41
|
+
"checksum": "ff54075fd3b54c97cb7817f6e583877e8fd153620ed850fdd490d7438fdcc8ab",
|
|
42
|
+
"size": 58895822
|
|
43
43
|
},
|
|
44
44
|
"win32-x64": {
|
|
45
45
|
"binary": "claude.exe.zst",
|
|
46
|
-
"checksum": "
|
|
47
|
-
"size":
|
|
46
|
+
"checksum": "e41bb10241c11ff3cf42fe8ac53c1f923821d5f37de341c8995597baa7cb2535",
|
|
47
|
+
"size": 60475271
|
|
48
48
|
},
|
|
49
49
|
"win32-arm64": {
|
|
50
50
|
"binary": "claude.exe.zst",
|
|
51
|
-
"checksum": "
|
|
52
|
-
"size":
|
|
51
|
+
"checksum": "26f138ebc4077cfefbd6ba1eb91b41e6f63d4cc1e8049c90cc1f81d2e8caf4c5",
|
|
52
|
+
"size": 58469872
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"sdkCompat": {
|
|
@@ -71,7 +71,8 @@
|
|
|
71
71
|
"0.3.204",
|
|
72
72
|
"0.3.205",
|
|
73
73
|
"0.3.207",
|
|
74
|
-
"0.3.208"
|
|
74
|
+
"0.3.208",
|
|
75
|
+
"0.3.209"
|
|
75
76
|
],
|
|
76
77
|
"harnessSchema": 1
|
|
77
78
|
}
|
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.210",
|
|
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.210",
|
|
61
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.210",
|
|
62
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.210",
|
|
63
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.210",
|
|
64
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.210",
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.210",
|
|
66
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.210",
|
|
67
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.210"
|
|
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.210"
|
|
84
84
|
}
|
package/sdk-tools.d.ts
CHANGED
|
@@ -375,8 +375,10 @@ export type ArtifactOutput =
|
|
|
375
375
|
title: string;
|
|
376
376
|
url: string;
|
|
377
377
|
updatedAt?: string;
|
|
378
|
+
rel?: "mine" | "shared";
|
|
378
379
|
}[];
|
|
379
380
|
truncated?: boolean;
|
|
381
|
+
scope?: "shared" | "all";
|
|
380
382
|
};
|
|
381
383
|
export type ProjectsOutput =
|
|
382
384
|
| {
|
|
@@ -2609,11 +2611,11 @@ export interface MonitorInput {
|
|
|
2609
2611
|
}
|
|
2610
2612
|
export interface ArtifactInput {
|
|
2611
2613
|
/**
|
|
2612
|
-
* Omit (or 'publish') to publish file_path. 'list' enumerates the user's
|
|
2614
|
+
* Omit (or 'publish') to publish file_path. 'list' enumerates artifacts — the user's own by default, see `scope`; only `limit` and `scope` may accompany it.
|
|
2613
2615
|
*/
|
|
2614
2616
|
action?: "publish" | "list";
|
|
2615
2617
|
/**
|
|
2616
|
-
* Path to an .html or .md file to render. Required to publish (the default action). Use a short, distinctive basename — it is the
|
|
2618
|
+
* Path to an .html or .md file to render. Required to publish (the default action). Use a short, distinctive basename — it is the last-resort title when the HTML has no <title> and no `title` parameter is given.
|
|
2617
2619
|
*/
|
|
2618
2620
|
file_path?: string;
|
|
2619
2621
|
/**
|
|
@@ -2624,6 +2626,14 @@ export interface ArtifactInput {
|
|
|
2624
2626
|
* list only: maximum artifacts to return (default 25).
|
|
2625
2627
|
*/
|
|
2626
2628
|
limit?: number;
|
|
2629
|
+
/**
|
|
2630
|
+
* list only: 'mine' (default) lists artifacts the user owns — the only ones the update flow can target; 'shared' lists artifacts other people shared with the user (read-only); 'all' lists both. Rows are labeled (mine)/(shared) whenever scope is not 'mine'.
|
|
2631
|
+
*/
|
|
2632
|
+
scope?: "mine" | "shared" | "all";
|
|
2633
|
+
/**
|
|
2634
|
+
* Title for the artifact — the name shown in the browser tab and gallery. Prefer a <title> tag in the HTML itself; this parameter fills in only when the file lacks one and never overrides the tag. HTML publishes only — Markdown pages keep their filename identity. Content always comes from file_path — there is no inline content parameter.
|
|
2635
|
+
*/
|
|
2636
|
+
title?: string;
|
|
2627
2637
|
/**
|
|
2628
2638
|
* One-sentence subtitle shown on the gallery card. Say what the page is or does.
|
|
2629
2639
|
*/
|
|
@@ -2697,6 +2707,14 @@ export interface BashOutput {
|
|
|
2697
2707
|
* True if the user manually backgrounded the command with Ctrl+B
|
|
2698
2708
|
*/
|
|
2699
2709
|
backgroundedByUser?: boolean;
|
|
2710
|
+
/**
|
|
2711
|
+
* Set when the command hit its timeout and was auto-backgrounded; the timeout value in ms
|
|
2712
|
+
*/
|
|
2713
|
+
timedOutAfterMs?: number;
|
|
2714
|
+
/**
|
|
2715
|
+
* Model-facing note that the session cwd was not changed by a backgrounded command containing a directory-change builtin (cd/pushd/popd/chdir)
|
|
2716
|
+
*/
|
|
2717
|
+
backgroundCwdHint?: string;
|
|
2700
2718
|
/**
|
|
2701
2719
|
* Flag to indicate if sandbox mode was overridden
|
|
2702
2720
|
*/
|
|
@@ -2913,6 +2931,7 @@ export interface GrepOutput {
|
|
|
2913
2931
|
numLines?: number;
|
|
2914
2932
|
numMatches?: number;
|
|
2915
2933
|
totalFiles?: number;
|
|
2934
|
+
totalLines?: number;
|
|
2916
2935
|
appliedLimit?: number;
|
|
2917
2936
|
appliedOffset?: number;
|
|
2918
2937
|
}
|
package/sdk.d.ts
CHANGED
|
@@ -2483,9 +2483,16 @@ export declare interface Query extends AsyncGenerator<SDKMessage, void> {
|
|
|
2483
2483
|
* are managed by the CLI subprocess.
|
|
2484
2484
|
*
|
|
2485
2485
|
* Note: This only affects servers added dynamically via this method or the SDK.
|
|
2486
|
-
* Servers configured via settings files are not affected.
|
|
2486
|
+
* Servers configured via settings files are not affected. Servers introduced
|
|
2487
|
+
* by plugins are also exempt: they are managed by the plugin system, so
|
|
2488
|
+
* omitting them from the payload does NOT remove them — they keep running
|
|
2489
|
+
* (unless enterprise policy denies the server) and are simply absent from
|
|
2490
|
+
* the result's `removed` list. In particular, `setMcpServers({})` no longer
|
|
2491
|
+
* guarantees a session has zero dynamic MCP surface when plugins are
|
|
2492
|
+
* loaded. Naming a plugin server explicitly in the payload still replaces
|
|
2493
|
+
* it (ownership is preserved CLI-side).
|
|
2487
2494
|
*
|
|
2488
|
-
* @param servers - Record of server name to configuration. Pass an empty object to remove all dynamic servers.
|
|
2495
|
+
* @param servers - Record of server name to configuration. Pass an empty object to remove all dynamic servers (except plugin-owned ones, which are retained).
|
|
2489
2496
|
* @returns Information about which servers were added, removed, and any connection errors
|
|
2490
2497
|
*/
|
|
2491
2498
|
setMcpServers(servers: Record<string, McpServerConfig>): Promise<McpSetServersResult>;
|
|
@@ -3909,7 +3916,7 @@ export declare type SDKMemoryRecallMessage = {
|
|
|
3909
3916
|
export declare type SDKMessage = SDKAssistantMessage | SDKUserMessage | SDKUserMessageReplay | SDKResultMessage | SDKSystemMessage | SDKPartialAssistantMessage | SDKCompactBoundaryMessage | SDKStatusMessage | SDKAPIRetryMessage | SDKControlRequestProgressMessage | SDKModelRefusalFallbackMessage | SDKModelRefusalNoFallbackMessage | SDKLocalCommandOutputMessage | SDKHookStartedMessage | SDKHookProgressMessage | SDKHookResponseMessage | SDKPluginInstallMessage | SDKToolProgressMessage | SDKAuthStatusMessage | SDKTaskNotificationMessage | SDKTaskStartedMessage | SDKTaskUpdatedMessage | SDKTaskProgressMessage | SDKBackgroundTasksChangedMessage | SDKThinkingTokensMessage | SDKSessionStateChangedMessage | SDKWorkerShuttingDownMessage | SDKCommandsChangedMessage | SDKNotificationMessage | SDKFilesPersistedEvent | SDKToolUseSummaryMessage | SDKMemoryRecallMessage | SDKRateLimitEvent | SDKElicitationCompleteMessage | SDKPermissionDeniedMessage | SDKPromptSuggestionMessage | SDKMirrorErrorMessage | SDKInformationalMessage | SDKConversationResetMessage;
|
|
3910
3917
|
|
|
3911
3918
|
/**
|
|
3912
|
-
* Provenance of a user-role message (peer session, team lead, channel).
|
|
3919
|
+
* Provenance of a user-role message (peer session, team lead, channel). A host wrapping keyboard input must stamp {kind:'human'} explicitly — absent origin is treated as unattributed and fails closed at strict isHuman() trust gates.
|
|
3913
3920
|
*/
|
|
3914
3921
|
export declare type SDKMessageOrigin = {
|
|
3915
3922
|
kind: 'human';
|
|
@@ -4816,6 +4823,10 @@ export declare interface Settings {
|
|
|
4816
4823
|
* Command to refresh GCP authentication (e.g., gcloud auth application-default login)
|
|
4817
4824
|
*/
|
|
4818
4825
|
gcpAuthRefresh?: string;
|
|
4826
|
+
/**
|
|
4827
|
+
* Corporate launcher argv prefix for the background-agent supervisor, the sessions and workers it hosts, and the other covered background processes listed in the Claude Code corporate-launcher documentation. Equivalent to the CLAUDE_CODE_PROCESS_WRAPPER environment variable, which takes precedence when set. Honored from managed settings, a --settings/SDK-supplied settings file, and user settings, in that precedence order; project and local settings are ignored.
|
|
4828
|
+
*/
|
|
4829
|
+
processWrapper?: string;
|
|
4819
4830
|
/**
|
|
4820
4831
|
* Executable that computes managed settings at startup. Honored only from admin-controlled policy sources.
|
|
4821
4832
|
*/
|
|
@@ -6877,6 +6888,10 @@ export declare type UserPromptExpansionHookSpecificOutput = {
|
|
|
6877
6888
|
export declare type UserPromptSubmitHookInput = BaseHookInput & {
|
|
6878
6889
|
hook_event_name: 'UserPromptSubmit';
|
|
6879
6890
|
prompt: string;
|
|
6891
|
+
/**
|
|
6892
|
+
* Who authored/injected the prompt: `user` = submitted from the interactive composer, `sdk` = non-interactive entrypoint (`-p` / Agent SDK), `loop_wakeup` = dynamic /loop wakeup, `schedule_wakeup` = scheduled-task fire (CronCreate/routine), `system` = other machine-injected turns (peer/channel messages, task notifications, auto-continuation). Currently only set for Anthropic-internal sessions while the field is trialed; external payloads omit it.
|
|
6893
|
+
*/
|
|
6894
|
+
source?: 'user' | 'sdk' | 'system' | 'loop_wakeup' | 'schedule_wakeup';
|
|
6880
6895
|
session_title?: string;
|
|
6881
6896
|
};
|
|
6882
6897
|
|