@anthropic-ai/claude-agent-sdk 0.3.289 → 0.3.291
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 +1 -0
- package/bridge.mjs +78 -77
- package/browser-sdk.js +62 -62
- package/core-fgc83rkd.mjs +33 -0
- package/core-ke40g9bw.mjs +40 -0
- package/core.mjs +14 -14
- package/manifest.json +20 -21
- package/manifest.zst.json +24 -25
- package/package.json +12 -12
- package/sdk-tools.d.ts +15 -0
- package/sdk.d.ts +17 -5
- package/sdk.mjs +73 -73
- package/core-8p15jxca.mjs +0 -40
- package/core-repw6452.mjs +0 -33
package/manifest.json
CHANGED
|
@@ -1,54 +1,53 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
2
|
+
"version": "2.1.291",
|
|
3
3
|
"manifestSignatureEnforcement": "flag",
|
|
4
|
-
"commit": "
|
|
5
|
-
"modsCommit": "
|
|
6
|
-
"buildDate": "2026-10-
|
|
4
|
+
"commit": "f7d32cfe47f735a7e70c5cce1ff6044b24692b4c",
|
|
5
|
+
"modsCommit": "2bfb629dfaff0c8318047a4beb93cf1dc5b58b18",
|
|
6
|
+
"buildDate": "2026-10-06T02:41:25Z",
|
|
7
7
|
"platforms": {
|
|
8
8
|
"darwin-arm64": {
|
|
9
9
|
"binary": "claude",
|
|
10
|
-
"checksum": "
|
|
11
|
-
"size":
|
|
10
|
+
"checksum": "9a1d2ed6bb4421e8fc80c892c0413f293be3ee50ae3d7dda1a7622197a056690",
|
|
11
|
+
"size": 233211568
|
|
12
12
|
},
|
|
13
13
|
"darwin-x64": {
|
|
14
14
|
"binary": "claude",
|
|
15
|
-
"checksum": "
|
|
16
|
-
"size":
|
|
15
|
+
"checksum": "223bf4de0e8f38cb254fc38f82fda09f9fcfd4e2aac62b59ef7e7f1960a45ddd",
|
|
16
|
+
"size": 241681792
|
|
17
17
|
},
|
|
18
18
|
"linux-arm64": {
|
|
19
19
|
"binary": "claude",
|
|
20
|
-
"checksum": "
|
|
21
|
-
"size":
|
|
20
|
+
"checksum": "c18473a04cc4f077435d5d9081f09ebea46e699eb2825cea64741c4bccb87647",
|
|
21
|
+
"size": 249028600
|
|
22
22
|
},
|
|
23
23
|
"linux-x64": {
|
|
24
24
|
"binary": "claude",
|
|
25
|
-
"checksum": "
|
|
26
|
-
"size":
|
|
25
|
+
"checksum": "078fad28d0297c9a25d306b635b2d8816c6839347520f29eb54ffea5d56142fb",
|
|
26
|
+
"size": 249642168
|
|
27
27
|
},
|
|
28
28
|
"linux-arm64-musl": {
|
|
29
29
|
"binary": "claude",
|
|
30
|
-
"checksum": "
|
|
31
|
-
"size":
|
|
30
|
+
"checksum": "582811002a94033fb27f1a307ab893a32ebac827b4ea1b20f72eb778ccf834ab",
|
|
31
|
+
"size": 241383232
|
|
32
32
|
},
|
|
33
33
|
"linux-x64-musl": {
|
|
34
34
|
"binary": "claude",
|
|
35
|
-
"checksum": "
|
|
36
|
-
"size":
|
|
35
|
+
"checksum": "e4b1fb39b56a6798063fa04912e838c01dd58dffeb238d6dcd31ad2d172e82c5",
|
|
36
|
+
"size": 243388504
|
|
37
37
|
},
|
|
38
38
|
"win32-x64": {
|
|
39
39
|
"binary": "claude.exe",
|
|
40
|
-
"checksum": "
|
|
41
|
-
"size":
|
|
40
|
+
"checksum": "70052a17e06561a4563597f79570e81ccc0772474c3c6ac522aa5ccc71773013",
|
|
41
|
+
"size": 253042848
|
|
42
42
|
},
|
|
43
43
|
"win32-arm64": {
|
|
44
44
|
"binary": "claude.exe",
|
|
45
|
-
"checksum": "
|
|
46
|
-
"size":
|
|
45
|
+
"checksum": "fb1b35e6d1a91e45478cc6bd4e5ae7138dd00c3f79df339b7ab1fbbbbaf69bc0",
|
|
46
|
+
"size": 240567968
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"sdkCompat": {
|
|
50
50
|
"testedWrapperVersions": [
|
|
51
|
-
"0.3.250",
|
|
52
51
|
"0.3.251",
|
|
53
52
|
"0.3.252",
|
|
54
53
|
"0.3.257",
|
package/manifest.zst.json
CHANGED
|
@@ -1,62 +1,61 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
2
|
+
"version": "2.1.291",
|
|
3
3
|
"manifestSignatureEnforcement": "flag",
|
|
4
|
-
"commit": "
|
|
5
|
-
"modsCommit": "
|
|
6
|
-
"buildDate": "2026-10-
|
|
4
|
+
"commit": "f7d32cfe47f735a7e70c5cce1ff6044b24692b4c",
|
|
5
|
+
"modsCommit": "2bfb629dfaff0c8318047a4beb93cf1dc5b58b18",
|
|
6
|
+
"buildDate": "2026-10-06T02:42:33Z",
|
|
7
7
|
"platforms": {
|
|
8
8
|
"darwin-arm64": {
|
|
9
9
|
"binary": "claude.zst",
|
|
10
|
-
"checksum": "
|
|
11
|
-
"size":
|
|
10
|
+
"checksum": "2f750a99ce662a1f5d586a88e1a13463c9e88ae9e55a492878a82e46685414f5",
|
|
11
|
+
"size": 77709814,
|
|
12
12
|
"bundle": {
|
|
13
|
-
"checksum": "
|
|
14
|
-
"size":
|
|
13
|
+
"checksum": "614337527cc1322f79021a909803906aace475a013b14cf2924012e6bb40a6bb",
|
|
14
|
+
"size": 77720906
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"darwin-x64": {
|
|
18
18
|
"binary": "claude.zst",
|
|
19
|
-
"checksum": "
|
|
20
|
-
"size":
|
|
19
|
+
"checksum": "91e8b3e811cbd1c95ce848e2e7067c686a5c27b98f3594b21c9de3159a2e73d0",
|
|
20
|
+
"size": 81924067,
|
|
21
21
|
"bundle": {
|
|
22
|
-
"checksum": "
|
|
23
|
-
"size":
|
|
22
|
+
"checksum": "8bef52ddf0dc51d08e1c3cb594671324edb9398da35c83d8a6bb84f6de6a5a0e",
|
|
23
|
+
"size": 81922297
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"linux-arm64": {
|
|
27
27
|
"binary": "claude.zst",
|
|
28
|
-
"checksum": "
|
|
29
|
-
"size":
|
|
28
|
+
"checksum": "1516c691c7ca10ca0a09d00160c006dfdb1f44263c928e6e4360363717de03f6",
|
|
29
|
+
"size": 86807536
|
|
30
30
|
},
|
|
31
31
|
"linux-x64": {
|
|
32
32
|
"binary": "claude.zst",
|
|
33
|
-
"checksum": "
|
|
34
|
-
"size":
|
|
33
|
+
"checksum": "659b2a4f57441eae2bad4e1ee67f93c26fe630863683463f48c7000ebeda8372",
|
|
34
|
+
"size": 87530446
|
|
35
35
|
},
|
|
36
36
|
"linux-arm64-musl": {
|
|
37
37
|
"binary": "claude.zst",
|
|
38
|
-
"checksum": "
|
|
39
|
-
"size":
|
|
38
|
+
"checksum": "1375f3eb6216e3135bc74246fc8302d3f717792a587196bfca52b78408c4df83",
|
|
39
|
+
"size": 85206110
|
|
40
40
|
},
|
|
41
41
|
"linux-x64-musl": {
|
|
42
42
|
"binary": "claude.zst",
|
|
43
|
-
"checksum": "
|
|
44
|
-
"size":
|
|
43
|
+
"checksum": "e3c4559aeed8bfbd665c769dabc04d6b6fa54ec704db80f36153b9272bd63236",
|
|
44
|
+
"size": 85976967
|
|
45
45
|
},
|
|
46
46
|
"win32-x64": {
|
|
47
47
|
"binary": "claude.exe.zst",
|
|
48
|
-
"checksum": "
|
|
49
|
-
"size":
|
|
48
|
+
"checksum": "693ddb8ce8ddaf9f1514c394d7997d2b6d02037e41960ff6864b83b0428b71fd",
|
|
49
|
+
"size": 89823809
|
|
50
50
|
},
|
|
51
51
|
"win32-arm64": {
|
|
52
52
|
"binary": "claude.exe.zst",
|
|
53
|
-
"checksum": "
|
|
54
|
-
"size":
|
|
53
|
+
"checksum": "661f032008df3727922f7087ef08900d4d5728a14544316d1e68ee43e74c339d",
|
|
54
|
+
"size": 86165279
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
"sdkCompat": {
|
|
58
58
|
"testedWrapperVersions": [
|
|
59
|
-
"0.3.250",
|
|
60
59
|
"0.3.251",
|
|
61
60
|
"0.3.252",
|
|
62
61
|
"0.3.257",
|
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.291",
|
|
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.291",
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.291",
|
|
66
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.291",
|
|
67
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.291",
|
|
68
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.291",
|
|
69
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.291",
|
|
70
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.291",
|
|
71
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.291"
|
|
72
72
|
},
|
|
73
73
|
"files": [
|
|
74
74
|
"sdk.mjs",
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
"extractFromBunfs.d.ts",
|
|
86
86
|
"manifest.json",
|
|
87
87
|
"manifest.zst.json",
|
|
88
|
-
"core-
|
|
89
|
-
"core-
|
|
88
|
+
"core-fgc83rkd.mjs",
|
|
89
|
+
"core-ke40g9bw.mjs"
|
|
90
90
|
],
|
|
91
|
-
"claudeCodeVersion": "2.1.
|
|
91
|
+
"claudeCodeVersion": "2.1.291"
|
|
92
92
|
}
|
package/sdk-tools.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export type ToolInputSchemas =
|
|
|
44
44
|
| ScheduleWakeupInput
|
|
45
45
|
| RemoteTriggerInput
|
|
46
46
|
| ShowOnboardingRolePickerInput
|
|
47
|
+
| OfferChromeSetupInput
|
|
47
48
|
| ReadNotificationsInput
|
|
48
49
|
| MonitorInput
|
|
49
50
|
| ProposeSkillsInput
|
|
@@ -84,6 +85,7 @@ export type ToolOutputSchemas =
|
|
|
84
85
|
| ArtifactOutput
|
|
85
86
|
| RemoteTriggerOutput
|
|
86
87
|
| ShowOnboardingRolePickerOutput
|
|
88
|
+
| OfferChromeSetupOutput
|
|
87
89
|
| ReadNotificationsOutput
|
|
88
90
|
| ScheduleWakeupOutput
|
|
89
91
|
| MonitorOutput
|
|
@@ -1097,6 +1099,10 @@ export interface WebFetchInput {
|
|
|
1097
1099
|
* The prompt to run on the fetched content
|
|
1098
1100
|
*/
|
|
1099
1101
|
prompt: string;
|
|
1102
|
+
/**
|
|
1103
|
+
* Character position in the page text to start reading from. Use it to read on through a page too long for one call, with the value the previous result gave.
|
|
1104
|
+
*/
|
|
1105
|
+
offset?: number;
|
|
1100
1106
|
}
|
|
1101
1107
|
export interface WebSearchInput {
|
|
1102
1108
|
/**
|
|
@@ -2946,6 +2952,12 @@ export interface RemoteTriggerInput {
|
|
|
2946
2952
|
};
|
|
2947
2953
|
}
|
|
2948
2954
|
export interface ShowOnboardingRolePickerInput {}
|
|
2955
|
+
export interface OfferChromeSetupInput {
|
|
2956
|
+
/**
|
|
2957
|
+
* A short phrase naming what the task needs the user's own browser for.
|
|
2958
|
+
*/
|
|
2959
|
+
reason?: string;
|
|
2960
|
+
}
|
|
2949
2961
|
export interface ReadNotificationsInput {}
|
|
2950
2962
|
export interface MonitorInput {
|
|
2951
2963
|
/**
|
|
@@ -4015,6 +4027,9 @@ export interface ShowOnboardingRolePickerOutput {
|
|
|
4015
4027
|
role?: string;
|
|
4016
4028
|
dismissed?: boolean;
|
|
4017
4029
|
}
|
|
4030
|
+
export interface OfferChromeSetupOutput {
|
|
4031
|
+
outcome: "connected" | "not_now" | "no_attempt_yet";
|
|
4032
|
+
}
|
|
4018
4033
|
export interface ReadNotificationsOutput {
|
|
4019
4034
|
notifications: {
|
|
4020
4035
|
/**
|
package/sdk.d.ts
CHANGED
|
@@ -3621,7 +3621,7 @@ export declare type SDKAssistantMessage = {
|
|
|
3621
3621
|
session_id: string;
|
|
3622
3622
|
request_id?: string;
|
|
3623
3623
|
/**
|
|
3624
|
-
* Client uuid of the user message this turn is answering (submitMessage options.uuid), stamped on an assistant message each time that send changes — the turn's FIRST top-level assistant message (which may carry only a thinking block, or be a synthetic API-error message), and then, for a turn started by a synthetic (meta) prompt, the first assistant message after each queued user message folded in mid-turn (the fold takes the echo over); with --include-partial-messages the turn's first non-ping stream event is stamped too, independently (see SDKPartialAssistantMessage), so the same uuid may appear on both — either binds the reply to the send it answers without waiting for the result; the server keeps the first stamp it sees per uuid. A turn started by a typed prompt keeps that uuid for its whole turn, so it stamps once per frame kind. A meta turn's own uuid is stamped only when the host vouches it is the client event's own (on a hosted session, the uuid the session server persisted: delivered content such as a Slack owner ping, a Slack-bot observation or a client-injected synthetic turn), never for a prompt the CLI minted itself — except that the boot-time rescue turn re-running a turn a worker restart interrupted mid-way stamps the interrupted turn's own last user prompt
|
|
3624
|
+
* Client uuid of the user message this turn is answering (submitMessage options.uuid), stamped on an assistant message each time that send changes — the turn's FIRST top-level assistant message (which may carry only a thinking block, or be a synthetic API-error message), and then, for a turn started by a synthetic (meta) prompt, the first assistant message after each queued user message folded in mid-turn (the fold takes the echo over); with --include-partial-messages the turn's first non-ping stream event is stamped too, independently (see SDKPartialAssistantMessage), so the same uuid may appear on both — either binds the reply to the send it answers without waiting for the result; the server keeps the first stamp it sees per uuid. A turn started by a typed prompt keeps that uuid for its whole turn, so it stamps once per frame kind. A meta turn's own uuid is stamped only when the host vouches it is the client event's own (on a hosted session, the uuid the session server persisted: delivered content such as a Slack owner ping, a Slack-bot observation or a client-injected synthetic turn), never for a prompt the CLI minted itself — except that a turn carrying resume_reason, such as the boot-time rescue turn re-running a turn a worker restart interrupted mid-way, stamps the interrupted turn's own last user prompt, the send it answers, where that can be vouched for (a turn that goes on from a permission answer or from in-flight tool calls may first re-send, unstamped, the assistant message that made those calls); either way a user message folded into a meta turn takes the echo over from it (the rescue turn absorbing messages sent while the session was down; a bot-observation turn absorbing a human's post), and the first reply frame of each kind after that fold carries the folded message's uuid — the first reply that message got. Wrapper-level sibling — never inside `message.content` — so it is not replayed to the model. Absent on every other frame of the turn, on subagent frames (parent_tool_use_id set), on turns that neither had a client uuid nor folded a user message in, and from older producers.
|
|
3625
3625
|
*/
|
|
3626
3626
|
user_message_uuid?: string;
|
|
3627
3627
|
/**
|
|
@@ -3629,7 +3629,7 @@ export declare type SDKAssistantMessage = {
|
|
|
3629
3629
|
*/
|
|
3630
3630
|
user_message_uuids?: string[];
|
|
3631
3631
|
/**
|
|
3632
|
-
* Why this frame's turn is the automatic re-run of
|
|
3632
|
+
* Why this frame's turn continues one that a worker restart interrupted. Such a turn is the automatic re-run of the interrupted turn (CLAUDE_CODE_RESUME_INTERRUPTED_TURN), or one that goes on from the answer to the permission prompt the new worker took over, or from that turn's tool calls still in flight. The value is the host's CLAUDE_CODE_RESUME_REASON when it set one (host_draining, checkpoint_restore, container_recreated, …), else 'interrupted_turn'. Stamped on the same reply frames as user_message_uuid (which on such a turn names the interrupted turn's own last user prompt), so a consumer can tell its first reply from the interrupted attempt's. Absent on every other turn (also one that goes on from the answer to any other permission prompt), on thinking_tokens frames, and from older producers.
|
|
3633
3633
|
*/
|
|
3634
3634
|
resume_reason?: string;
|
|
3635
3635
|
/**
|
|
@@ -4528,11 +4528,13 @@ declare type SDKControlInitializeRequest = {
|
|
|
4528
4528
|
* Dialog kinds (request_user_dialog `dialog_kind` values) this consumer's onUserDialog can actually render. The CLI treats ABSENCE as 'cannot display' and fails closed: without the kind declared here, a dialog-gated flow degrades to its no-dialog behavior (for 'refusal_fallback_prompt', the classic refusal error) instead of parking a dialog the consumer may mishandle. First-attached-client-wins on multi-client sessions; later initializes do not change it.
|
|
4529
4529
|
*/
|
|
4530
4530
|
supportedDialogKinds?: string[];
|
|
4531
|
+
|
|
4531
4532
|
/**
|
|
4532
4533
|
* Declares that this consumer renders a per-task stop control wired to the `stop_task` control request, so the user can stop an individual background task. When declared, an interrupt on an open-input (interactive stream-json) session spares running background agents/workflows (Stop only aborts the turn). Closed-input exception: a one-shot run (string prompt / -p closes stdin) still kills hold-back tasks at the held-result release regardless of the declaration — with stdin closed, a stop_task control could never be delivered, so the fail-closed kill stands. ABSENCE also fails closed: the interrupt kills background tasks, since the user would otherwise have no way to stop a runaway one. First-attached-client-wins on multi-client sessions; later initializes do not change it.
|
|
4533
4534
|
*/
|
|
4534
4535
|
perTaskStopAffordance?: boolean;
|
|
4535
4536
|
|
|
4537
|
+
|
|
4536
4538
|
/**
|
|
4537
4539
|
* Plugins to load for the session, in the same shape as the SDK `plugins` option: the stdin form of one --plugin-dir flag per entry (--plugin-dir-no-mcp when skipMcpDiscovery is set), so the launch command line does not grow with the plugin count. Loaded only by a CLI launched with --await-initialize, which reads this request during startup before any plugin work. Without that flag, on a repeated initialize, or over a remote session transport the field loads nothing; plugins_applied in the response reports whether the listed plugins are in fact loaded.
|
|
4538
4540
|
*/
|
|
@@ -4605,6 +4607,7 @@ declare type SDKControlInterruptRequest = {
|
|
|
4605
4607
|
cancel_queued?: boolean;
|
|
4606
4608
|
|
|
4607
4609
|
|
|
4610
|
+
|
|
4608
4611
|
};
|
|
4609
4612
|
|
|
4610
4613
|
/**
|
|
@@ -4616,6 +4619,7 @@ export declare type SDKControlInterruptResponse = {
|
|
|
4616
4619
|
*/
|
|
4617
4620
|
still_queued: string[];
|
|
4618
4621
|
|
|
4622
|
+
|
|
4619
4623
|
/**
|
|
4620
4624
|
* Present only when the request set cancel_queued:true — uuids of main-thread commands cancelled by this interrupt: every survivor that would otherwise have appeared under `still_queued`, including any uuid that was mid-fold at the interrupt instant (this request also aborts, so the fold never delivers it). Each listed uuid has been removed (queue-resident) or marked cancel-pending (the first-command prewait window, closed by the drain loop's backstop) and emits a terminal 'cancelled' lifecycle synchronously at the first such interrupt (a repeat interrupt over the same parked batch re-lists the uuid idempotently without re-emitting); none will run. Same coverage caveats as `still_queued` (uuid-stamped main-thread only; internally-enqueued uuids may appear). Advertised by the `interrupt_cancel_queued_v1` capability.
|
|
4621
4625
|
*/
|
|
@@ -5499,7 +5503,7 @@ export declare type SDKPartialAssistantMessage = {
|
|
|
5499
5503
|
*/
|
|
5500
5504
|
user_message_uuids?: string[];
|
|
5501
5505
|
/**
|
|
5502
|
-
* Why this frame's turn is the automatic re-run of
|
|
5506
|
+
* Why this frame's turn continues one that a worker restart interrupted. Such a turn is the automatic re-run of the interrupted turn (CLAUDE_CODE_RESUME_INTERRUPTED_TURN), or one that goes on from the answer to the permission prompt the new worker took over, or from that turn's tool calls still in flight. The value is the host's CLAUDE_CODE_RESUME_REASON when it set one (host_draining, checkpoint_restore, container_recreated, …), else 'interrupted_turn'. Stamped on the same reply frames as user_message_uuid (which on such a turn names the interrupted turn's own last user prompt), so a consumer can tell its first reply from the interrupted attempt's. Absent on every other turn (also one that goes on from the answer to any other permission prompt), on thinking_tokens frames, and from older producers.
|
|
5503
5507
|
*/
|
|
5504
5508
|
resume_reason?: string;
|
|
5505
5509
|
};
|
|
@@ -5708,7 +5712,7 @@ export declare type SDKResultError = {
|
|
|
5708
5712
|
*/
|
|
5709
5713
|
user_message_uuids?: string[];
|
|
5710
5714
|
/**
|
|
5711
|
-
* Why this turn
|
|
5715
|
+
* Why this turn continued one that a worker restart interrupted. Such a turn is the automatic re-run of the interrupted turn (CLAUDE_CODE_RESUME_INTERRUPTED_TURN), or one that goes on from the answer to the permission prompt the new worker took over, or from that turn's tool calls still in flight. The value is the host's CLAUDE_CODE_RESUME_REASON when it set one (host_draining, checkpoint_restore, container_recreated, …), else 'interrupted_turn'. Present on such a headless turn's result, success or error, with or without an echo (a turn whose opening user prompt could not be vouched for still carries the reason); absent on every other turn (also one that goes on from the answer to any other permission prompt), on the Remote Control bridge's per-turn synthetic results, and from older producers.
|
|
5712
5716
|
*/
|
|
5713
5717
|
resume_reason?: string;
|
|
5714
5718
|
terminal_reason?: TerminalReason;
|
|
@@ -5743,6 +5747,8 @@ export declare type SDKResultSuccess = {
|
|
|
5743
5747
|
|
|
5744
5748
|
|
|
5745
5749
|
|
|
5750
|
+
|
|
5751
|
+
|
|
5746
5752
|
user_message_uuid?: string;
|
|
5747
5753
|
user_message_uuids?: string[];
|
|
5748
5754
|
resume_reason?: string;
|
|
@@ -6289,6 +6295,7 @@ export declare type SDKUserMessage = {
|
|
|
6289
6295
|
|
|
6290
6296
|
|
|
6291
6297
|
|
|
6298
|
+
|
|
6292
6299
|
uuid?: UUID;
|
|
6293
6300
|
/**
|
|
6294
6301
|
* Content the user pasted into the prompt rather than typed: each entry a string or an array of content blocks. The CLI appends the text of each entry after the typed text, in order, and may wrap it in `<pasted_content>` tags. Blocks other than text are ignored; send images and documents in `message.content`.
|
|
@@ -6378,6 +6385,7 @@ export declare type SDKUserMessageReplay = {
|
|
|
6378
6385
|
|
|
6379
6386
|
|
|
6380
6387
|
|
|
6388
|
+
|
|
6381
6389
|
uuid: UUID;
|
|
6382
6390
|
session_id: string;
|
|
6383
6391
|
isReplay: true;
|
|
@@ -6906,7 +6914,7 @@ export declare interface Settings {
|
|
|
6906
6914
|
*/
|
|
6907
6915
|
disabledMcpjsonServers?: string[];
|
|
6908
6916
|
/**
|
|
6909
|
-
* When true in any settings source, claude.ai MCP cloud connectors are not auto-fetched or connected
|
|
6917
|
+
* When true in any settings source, claude.ai MCP cloud connectors are not auto-fetched or connected, and a claudeai-proxy server passed explicitly (e.g. via --mcp-config or the SDK mcpServers option) does not connect either. Any-source-true wins: a project can opt out, but a project-level false cannot override a user-level true.
|
|
6910
6918
|
*/
|
|
6911
6919
|
disableClaudeAiConnectors?: boolean;
|
|
6912
6920
|
/**
|
|
@@ -9221,6 +9229,10 @@ export declare interface Settings {
|
|
|
9221
9229
|
* Precompute the compaction summary in the background before it is needed. Only applies when auto-compact is on.
|
|
9222
9230
|
*/
|
|
9223
9231
|
precomputeCompactionEnabled?: boolean;
|
|
9232
|
+
/**
|
|
9233
|
+
* Set to false to stop Claude Code from compacting a long conversation while the session is idle. Setting it to true does not turn idle compaction on.
|
|
9234
|
+
*/
|
|
9235
|
+
idleCompaction?: boolean;
|
|
9224
9236
|
/**
|
|
9225
9237
|
* When safeguards flag a message, automatically switch to a different model to keep chatting. When off, your session will pause instead.
|
|
9226
9238
|
*/
|