@anthropic-ai/claude-agent-sdk 0.3.286 → 0.3.287
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 +80 -80
- package/browser-sdk.js +47 -47
- package/core-kgfyd2t2.mjs +33 -0
- package/core-q38rzykt.mjs +40 -0
- package/core.mjs +15 -15
- package/manifest.json +20 -21
- package/manifest.zst.json +24 -25
- package/package.json +12 -12
- package/sdk.d.ts +48 -11
- package/sdk.mjs +52 -52
- package/core-5c9xf7pv.mjs +0 -40
- package/core-y9rc2t7d.mjs +0 -33
package/manifest.json
CHANGED
|
@@ -1,54 +1,53 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
2
|
+
"version": "2.1.287",
|
|
3
3
|
"manifestSignatureEnforcement": "flag",
|
|
4
|
-
"commit": "
|
|
5
|
-
"modsCommit": "
|
|
6
|
-
"buildDate": "2026-
|
|
4
|
+
"commit": "3c446a1b98aceb99a6cdee0f84a8bea42f4a8937",
|
|
5
|
+
"modsCommit": "6160717d8994f236ab381cf534fc1cde5347c12f",
|
|
6
|
+
"buildDate": "2026-10-01T16:26:16Z",
|
|
7
7
|
"platforms": {
|
|
8
8
|
"darwin-arm64": {
|
|
9
9
|
"binary": "claude",
|
|
10
|
-
"checksum": "
|
|
11
|
-
"size":
|
|
10
|
+
"checksum": "6eab8333fe2121553100d8f40bfada384a3e989b94f947e18ba6677a6fcb41ea",
|
|
11
|
+
"size": 227827120
|
|
12
12
|
},
|
|
13
13
|
"darwin-x64": {
|
|
14
14
|
"binary": "claude",
|
|
15
|
-
"checksum": "
|
|
16
|
-
"size":
|
|
15
|
+
"checksum": "f1863213e4f55aaadc2e6ee617f934ada29930e5de4c5e5f8f9e34a0d594fdd7",
|
|
16
|
+
"size": 236282368
|
|
17
17
|
},
|
|
18
18
|
"linux-arm64": {
|
|
19
19
|
"binary": "claude",
|
|
20
|
-
"checksum": "
|
|
21
|
-
"size":
|
|
20
|
+
"checksum": "e4daf793d1e74fb0d9874dd09e98690bbfd7be515f78a87fd05b9e2b4bb33b03",
|
|
21
|
+
"size": 243720184
|
|
22
22
|
},
|
|
23
23
|
"linux-x64": {
|
|
24
24
|
"binary": "claude",
|
|
25
|
-
"checksum": "
|
|
26
|
-
"size":
|
|
25
|
+
"checksum": "3920489a5109cff5786a1a392c25277408ff22bc796d5edb9c16a60e5a1718f0",
|
|
26
|
+
"size": 244317368
|
|
27
27
|
},
|
|
28
28
|
"linux-arm64-musl": {
|
|
29
29
|
"binary": "claude",
|
|
30
|
-
"checksum": "
|
|
31
|
-
"size":
|
|
30
|
+
"checksum": "83d95a9fa28b1fadd8c012fda873aed8f8998e23dfabe6dd4efd05bcdd7383ba",
|
|
31
|
+
"size": 236009280
|
|
32
32
|
},
|
|
33
33
|
"linux-x64-musl": {
|
|
34
34
|
"binary": "claude",
|
|
35
|
-
"checksum": "
|
|
36
|
-
"size":
|
|
35
|
+
"checksum": "ba22ce4b5744c6016e3076ccbd692a059fc4e9f1592f21361859a73938f4e722",
|
|
36
|
+
"size": 238063704
|
|
37
37
|
},
|
|
38
38
|
"win32-x64": {
|
|
39
39
|
"binary": "claude.exe",
|
|
40
|
-
"checksum": "
|
|
41
|
-
"size":
|
|
40
|
+
"checksum": "6d5be51f0edfe3429cd1a9885950db31c1e59eb9a2c9a30a47e64179d2ff98b4",
|
|
41
|
+
"size": 247736480
|
|
42
42
|
},
|
|
43
43
|
"win32-arm64": {
|
|
44
44
|
"binary": "claude.exe",
|
|
45
|
-
"checksum": "
|
|
46
|
-
"size":
|
|
45
|
+
"checksum": "11438981154e99af8f9aeabe193871c92b8b550b35354686a140fc056f1bfe54",
|
|
46
|
+
"size": 235259040
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"sdkCompat": {
|
|
50
50
|
"testedWrapperVersions": [
|
|
51
|
-
"0.3.246",
|
|
52
51
|
"0.3.247",
|
|
53
52
|
"0.3.248",
|
|
54
53
|
"0.3.250",
|
package/manifest.zst.json
CHANGED
|
@@ -1,62 +1,61 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
2
|
+
"version": "2.1.287",
|
|
3
3
|
"manifestSignatureEnforcement": "flag",
|
|
4
|
-
"commit": "
|
|
5
|
-
"modsCommit": "
|
|
6
|
-
"buildDate": "2026-
|
|
4
|
+
"commit": "3c446a1b98aceb99a6cdee0f84a8bea42f4a8937",
|
|
5
|
+
"modsCommit": "6160717d8994f236ab381cf534fc1cde5347c12f",
|
|
6
|
+
"buildDate": "2026-10-01T16:27:39Z",
|
|
7
7
|
"platforms": {
|
|
8
8
|
"darwin-arm64": {
|
|
9
9
|
"binary": "claude.zst",
|
|
10
|
-
"checksum": "
|
|
11
|
-
"size":
|
|
10
|
+
"checksum": "2701dac04e02acbea7d7584fc35e04adddf6f24021d321e3ba7eb95994edcf96",
|
|
11
|
+
"size": 75949326,
|
|
12
12
|
"bundle": {
|
|
13
|
-
"checksum": "
|
|
14
|
-
"size":
|
|
13
|
+
"checksum": "8939dd3a906fd909614c651595ba3636e5620cb1aafcf99d3d5ecd9b6b86c693",
|
|
14
|
+
"size": 75962691
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"darwin-x64": {
|
|
18
18
|
"binary": "claude.zst",
|
|
19
|
-
"checksum": "
|
|
20
|
-
"size":
|
|
19
|
+
"checksum": "e4c6177a49a726d1a65dadf2fb08cdde0232a37a60017668246ab9246fcf11ad",
|
|
20
|
+
"size": 80136583,
|
|
21
21
|
"bundle": {
|
|
22
|
-
"checksum": "
|
|
23
|
-
"size":
|
|
22
|
+
"checksum": "dc23e02cbacb6762d4033998e76e182459e7a539ea698eebe267207563def62d",
|
|
23
|
+
"size": 80141664
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"linux-arm64": {
|
|
27
27
|
"binary": "claude.zst",
|
|
28
|
-
"checksum": "
|
|
29
|
-
"size":
|
|
28
|
+
"checksum": "f95d466d03381abe9effcbcfe8408704262eb8861af3a1fc20b8e0563c1f770b",
|
|
29
|
+
"size": 85057873
|
|
30
30
|
},
|
|
31
31
|
"linux-x64": {
|
|
32
32
|
"binary": "claude.zst",
|
|
33
|
-
"checksum": "
|
|
34
|
-
"size":
|
|
33
|
+
"checksum": "add364007462fe694a95aa68c78bdf7a71b1ddf687f80dda603f58cc80cde574",
|
|
34
|
+
"size": 85795355
|
|
35
35
|
},
|
|
36
36
|
"linux-arm64-musl": {
|
|
37
37
|
"binary": "claude.zst",
|
|
38
|
-
"checksum": "
|
|
39
|
-
"size":
|
|
38
|
+
"checksum": "b277e35a54c5c3f891791276b1b5ca8959ab89c45e2123906f26c3b0c489c80a",
|
|
39
|
+
"size": 83460752
|
|
40
40
|
},
|
|
41
41
|
"linux-x64-musl": {
|
|
42
42
|
"binary": "claude.zst",
|
|
43
|
-
"checksum": "
|
|
44
|
-
"size":
|
|
43
|
+
"checksum": "43f30b92560d69d1942dc7e9e4772a9c24f99cda2d71a1dc46b6033398d47a01",
|
|
44
|
+
"size": 84231480
|
|
45
45
|
},
|
|
46
46
|
"win32-x64": {
|
|
47
47
|
"binary": "claude.exe.zst",
|
|
48
|
-
"checksum": "
|
|
49
|
-
"size":
|
|
48
|
+
"checksum": "0d03949c88db791ddee203b61c1cfbd69bf84214facc17dcfcd0c0987f6c27de",
|
|
49
|
+
"size": 88089498
|
|
50
50
|
},
|
|
51
51
|
"win32-arm64": {
|
|
52
52
|
"binary": "claude.exe.zst",
|
|
53
|
-
"checksum": "
|
|
54
|
-
"size":
|
|
53
|
+
"checksum": "bd8a2ec0abb532aea9e4f6a70177193cd7e06e4f4803d63fe75ac15442160dca",
|
|
54
|
+
"size": 84412071
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
"sdkCompat": {
|
|
58
58
|
"testedWrapperVersions": [
|
|
59
|
-
"0.3.246",
|
|
60
59
|
"0.3.247",
|
|
61
60
|
"0.3.248",
|
|
62
61
|
"0.3.250",
|
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.287",
|
|
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.287",
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.287",
|
|
66
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.287",
|
|
67
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.287",
|
|
68
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.287",
|
|
69
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.287",
|
|
70
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.287",
|
|
71
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.287"
|
|
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-kgfyd2t2.mjs",
|
|
89
|
+
"core-q38rzykt.mjs"
|
|
90
90
|
],
|
|
91
|
-
"claudeCodeVersion": "2.1.
|
|
91
|
+
"claudeCodeVersion": "2.1.287"
|
|
92
92
|
}
|
package/sdk.d.ts
CHANGED
|
@@ -1184,7 +1184,7 @@ export declare type McpHttpServerConfig = {
|
|
|
1184
1184
|
timeout?: number;
|
|
1185
1185
|
|
|
1186
1186
|
/**
|
|
1187
|
-
* When true, all tools from this server are always included in the prompt and never deferred behind tool search, except a tool the server itself lists with _meta anthropic/alwaysLoad set to false. Equivalent to setting defer_loading: false on the API. Default: tools are deferred when tool search is enabled. As a side effect
|
|
1187
|
+
* When true, all tools from this server are always included in the prompt and never deferred behind tool search, except a tool the server itself lists with _meta anthropic/alwaysLoad set to false. Equivalent to setting defer_loading: false on the API. When false, all tools from this server are deferred behind tool search. Default: tools are deferred when tool search is enabled. As a side effect, true also blocks startup until the server is connected (capped at the standard 5s connect timeout) even though MCP startup is otherwise non-blocking by default, since the tools must be present when the turn-1 prompt is built.
|
|
1188
1188
|
*/
|
|
1189
1189
|
alwaysLoad?: boolean;
|
|
1190
1190
|
|
|
@@ -1323,7 +1323,7 @@ export declare type McpSSEServerConfig = {
|
|
|
1323
1323
|
timeout?: number;
|
|
1324
1324
|
|
|
1325
1325
|
/**
|
|
1326
|
-
* When true, all tools from this server are always included in the prompt and never deferred behind tool search, except a tool the server itself lists with _meta anthropic/alwaysLoad set to false. Equivalent to setting defer_loading: false on the API. Default: tools are deferred when tool search is enabled. As a side effect
|
|
1326
|
+
* When true, all tools from this server are always included in the prompt and never deferred behind tool search, except a tool the server itself lists with _meta anthropic/alwaysLoad set to false. Equivalent to setting defer_loading: false on the API. When false, all tools from this server are deferred behind tool search. Default: tools are deferred when tool search is enabled. As a side effect, true also blocks startup until the server is connected (capped at the standard 5s connect timeout) even though MCP startup is otherwise non-blocking by default, since the tools must be present when the turn-1 prompt is built.
|
|
1327
1327
|
*/
|
|
1328
1328
|
alwaysLoad?: boolean;
|
|
1329
1329
|
|
|
@@ -1339,7 +1339,7 @@ export declare type McpStdioServerConfig = {
|
|
|
1339
1339
|
*/
|
|
1340
1340
|
timeout?: number;
|
|
1341
1341
|
/**
|
|
1342
|
-
* When true, all tools from this server are always included in the prompt and never deferred behind tool search, except a tool the server itself lists with _meta anthropic/alwaysLoad set to false. Equivalent to setting defer_loading: false on the API. Default: tools are deferred when tool search is enabled. As a side effect
|
|
1342
|
+
* When true, all tools from this server are always included in the prompt and never deferred behind tool search, except a tool the server itself lists with _meta anthropic/alwaysLoad set to false. Equivalent to setting defer_loading: false on the API. When false, all tools from this server are deferred behind tool search. Default: tools are deferred when tool search is enabled. As a side effect, true also blocks startup until the server is connected (capped at the standard 5s connect timeout) even though MCP startup is otherwise non-blocking by default, since the tools must be present when the turn-1 prompt is built.
|
|
1343
1343
|
*/
|
|
1344
1344
|
alwaysLoad?: boolean;
|
|
1345
1345
|
|
|
@@ -3653,6 +3653,7 @@ export declare type SDKAssistantMessage = {
|
|
|
3653
3653
|
|
|
3654
3654
|
|
|
3655
3655
|
|
|
3656
|
+
|
|
3656
3657
|
/**
|
|
3657
3658
|
* ISO timestamp of when this content block finished on the originating process. One API assistant turn may produce several assistant messages sharing a message.id, each with its own timestamp. Uses the originating host's clock, so it's for display only; do not order messages by this field. Older emitters omit it; consumers should fall back to receive time.
|
|
3658
3659
|
*/
|
|
@@ -4202,6 +4203,35 @@ declare type SDKControlGetSettingsRequest = {
|
|
|
4202
4203
|
subtype: 'get_settings';
|
|
4203
4204
|
};
|
|
4204
4205
|
|
|
4206
|
+
/**
|
|
4207
|
+
* Reads the end of one background shell or Monitor task's output: at most the last 8 KiB the command wrote, the same tail the terminal's /tasks detail view reads. Read-only and no model turn; a host polls it while the task runs, and can read it once more after the task ends. The output is whatever the command printed, escape sequences included: render it as plain text. Refused for a task_id that is neither a shell or Monitor task of this session nor shaped like one (an ended task's id whose file is gone reads as empty), and on a lane that redacts what it persists (a Remote Control bridge worker, a tenant worker).
|
|
4208
|
+
*/
|
|
4209
|
+
declare type SDKControlGetTaskOutputRequest = {
|
|
4210
|
+
subtype: 'get_task_output';
|
|
4211
|
+
/**
|
|
4212
|
+
* A shell or Monitor task of this session, running or ended: the task_id from task_started or background_tasks_changed.
|
|
4213
|
+
*/
|
|
4214
|
+
task_id: string;
|
|
4215
|
+
};
|
|
4216
|
+
|
|
4217
|
+
/**
|
|
4218
|
+
* Success payload answering get_task_output.
|
|
4219
|
+
*/
|
|
4220
|
+
declare type SDKControlGetTaskOutputResponse = {
|
|
4221
|
+
/**
|
|
4222
|
+
* The end of the output, decoded as UTF-8; empty when the command has written nothing yet.
|
|
4223
|
+
*/
|
|
4224
|
+
output: string;
|
|
4225
|
+
/**
|
|
4226
|
+
* The size of the whole output in bytes.
|
|
4227
|
+
*/
|
|
4228
|
+
total_bytes: number;
|
|
4229
|
+
/**
|
|
4230
|
+
* Whether output holds only the end of a longer output (the last 8 KiB).
|
|
4231
|
+
*/
|
|
4232
|
+
truncated: boolean;
|
|
4233
|
+
};
|
|
4234
|
+
|
|
4205
4235
|
/**
|
|
4206
4236
|
* Requests the structured /usage data: session cost/usage totals plus claude.ai plan rate-limit utilization when available. Experimental — the response shape may change.
|
|
4207
4237
|
*/
|
|
@@ -4558,6 +4588,7 @@ export declare type SDKControlInitializeResponse = {
|
|
|
4558
4588
|
|
|
4559
4589
|
|
|
4560
4590
|
|
|
4591
|
+
|
|
4561
4592
|
};
|
|
4562
4593
|
|
|
4563
4594
|
/**
|
|
@@ -4570,6 +4601,8 @@ declare type SDKControlInterruptRequest = {
|
|
|
4570
4601
|
* When true, the interrupt also cancels every uuid-stamped main-thread command still in the queue or already dequeued for the imminent turn but not yet reachable by the abort (the first-command prewait window) — the same set the response would otherwise list under `still_queued`. Each is closed with a terminal 'cancelled' lifecycle and listed on the response's `cancelled` field. `still_queued` is then empty, except that a client driving a hosted session lists there what it can no longer recall (a send already in flight to that session, or the first prompt the session was created with) and, when the session's own sweep then cancels one of those or a send it had already delivered, follows up with a command_lifecycle 'cancelled' frame for it. (The isFoldInFlight guard cancel_async_message uses does not apply here: this request also aborts the running turn, so a fold-in-flight uuid is never delivered and is swept with the rest. A fold-in-flight uuid's queued_command attachment may already appear in the aborted turn's transcript if the abort landed after the fold's attachment yield — pre-existing leave-queued semantics; it never runs as its own turn.) Uuid-less commands (task notifications) still in the queue are also dequeued but cannot be listed; a uuid-less command already in the prewait window is unreachable by either cancel leg — the first-command prewait latch covers it (this request latches exactly like a plain interrupt; see still_queued): its turn starts aborted. When false or absent, queued commands survive the interrupt and are listed under `still_queued` — the interrupt_receipt_v1 contract is unchanged. A Stop-means-stop-everything client (a remote UI's Stop button) sets this true so one round-trip halts the session; a wrapper that wants per-uuid control leaves it false and follows up with cancel_async_message. Advertised by the `interrupt_cancel_queued_v1` capability on system/init; older CLIs ignore the field and behave as if false.
|
|
4571
4602
|
*/
|
|
4572
4603
|
cancel_queued?: boolean;
|
|
4604
|
+
|
|
4605
|
+
|
|
4573
4606
|
};
|
|
4574
4607
|
|
|
4575
4608
|
/**
|
|
@@ -4580,6 +4613,7 @@ export declare type SDKControlInterruptResponse = {
|
|
|
4580
4613
|
* Uuids of async user messages that survive this interrupt: commands still in the queue, plus any batch already dequeued for the imminent turn but not yet reachable by the abort. An interrupt — plain or cancel_queued:true — that lands during the FIRST-command prewait window (before the first turn of the session has armed a controller) is additionally LATCHED, scoped to the user-intent work pending at that instant — the batch already dequeued and parked for the imminent turn, plus the user-intent main-thread commands then in the queue (the work this list enumerates): the first turn to arm that carries any of that doomed work starts already aborted, exactly once, so the listed prewait batch is delivered into an immediately-aborted turn, its frames and result flowing through the normal abort path, instead of running to completion. A turn carrying none of it arms live and leaves the latch waiting: a system delivery turn (for example a replayed host event), or a prompt enqueued after the interrupt — post-interrupt work is never coalesced with the doomed work and never dies to the latch, so the Stop kills exactly what this receipt listed. The latch is released when the doomed work is retired without arming: if a parked prewait batch is entirely cancelled, the latch is released even when other queued commands remain (those arm and run normally); with nothing parked, it is released once none of the doomed commands remains queued — work enqueued after the interrupt neither holds it up nor is aborted by it. Survivors that ride any later turn run normally. These WILL run (subject to that latch) unless cancelled first (or unless the request set cancel_queued:true, in which case every uuid-stamped survivor this process holds is removed, emitted a terminal `cancelled` synchronously, and listed under `cancelled` instead — leaving here only what a client driving a hosted session can no longer recall: a send already in flight to that session, or the first prompt the session was created with; a send that client still holds on its own machine behind a send gate (it waits there until that session is ready to take it) has not gone out, so it is withdrawn and listed under `cancelled` like a queued one, and cancel_async_message can withdraw it too, while a plain interrupt leaves it held and lists it here). Cancellation granularity: uuids still in the queue are individually cancellable via cancel_async_message; once a batch is dequeued and coalesced into one turn, cancelling a NON-representative member uuid is a no-op (its content still runs), while cancelling the batch-representative uuid drops the WHOLE coalesced batch — in both cases the cancel response reports cancelled:false because the message was no longer in the queue. Coverage caveats: only uuid-STAMPED messages appear (a message enqueued without a uuid still runs but is never listed, so [] does not mean "nothing will run"); only main-thread messages are listed (subagent-addressed messages are out of scope); and the list may include internally-enqueued uuids the client never sent (cron triggers, auto-resume continuations) — ignore unknown uuids rather than treating them as an error. Ordering: on a clean interrupt this receipt is written before the interrupted turn result; a turn that crashes during interrupt handling emits its error result on a direct-write path that may precede the receipt. Snapshot is taken synchronously with abort processing — probing the queue after the interrupted result instead always loses the race against the drain loop, which starts the next queued turn immediately.
|
|
4581
4614
|
*/
|
|
4582
4615
|
still_queued: string[];
|
|
4616
|
+
|
|
4583
4617
|
/**
|
|
4584
4618
|
* 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.
|
|
4585
4619
|
*/
|
|
@@ -4951,7 +4985,7 @@ export declare type SDKControlRequest = {
|
|
|
4951
4985
|
|
|
4952
4986
|
};
|
|
4953
4987
|
|
|
4954
|
-
declare type SDKControlRequestInner = SDKControlInterruptRequest | SDKControlPermissionRequest | SDKControlInitializeRequest | SDKControlSetPermissionModeRequest | SDKControlSetModelRequest | SDKControlSetMaxThinkingTokensRequest | SDKControlRenameSessionRequest | SDKControlSetColorRequest | SDKControlMcpStatusRequest | SDKControlGetContextUsageRequest | SDKControlGetSessionCostRequest | SDKControlListModelsRequest | SDKControlGetUsageRequest | SDKControlGetBinaryVersionRequest | SDKControlMcpCallRequest | SDKControlFileSuggestionsRequest | SDKHookCallbackRequest | SDKControlMcpMessageRequest | SDKControlRewindFilesRequest | SDKControlCancelAsyncMessageRequest | SDKControlReadFileRequest | SDKControlSeedReadStateRequest | SDKControlMcpSetServersRequest | SDKControlRegisterRepoRootRequest | SDKControlReloadPluginsRequest | SDKControlReloadSkillsRequest | SDKControlReloadOutputStylesRequest | SDKControlMcpReconnectRequest | SDKControlMcpToggleRequest | SDKControlStopTaskRequest | SDKControlBackgroundTasksRequest | SDKControlApplyFlagSettingsRequest | SDKControlGetSettingsRequest | SDKControlGetHooksListingRequest | SDKControlUpdateSettingsRequest | SDKControlElicitationRequest | SDKControlRequestUserDialogRequest | SDKControlListPermissionRulesRequest | SDKControlMcpReadResourceRequest;
|
|
4988
|
+
declare type SDKControlRequestInner = SDKControlInterruptRequest | SDKControlPermissionRequest | SDKControlInitializeRequest | SDKControlSetPermissionModeRequest | SDKControlSetModelRequest | SDKControlSetMaxThinkingTokensRequest | SDKControlRenameSessionRequest | SDKControlSetColorRequest | SDKControlMcpStatusRequest | SDKControlGetContextUsageRequest | SDKControlGetSessionCostRequest | SDKControlListModelsRequest | SDKControlGetUsageRequest | SDKControlGetBinaryVersionRequest | SDKControlMcpCallRequest | SDKControlFileSuggestionsRequest | SDKHookCallbackRequest | SDKControlMcpMessageRequest | SDKControlRewindFilesRequest | SDKControlCancelAsyncMessageRequest | SDKControlReadFileRequest | SDKControlSeedReadStateRequest | SDKControlMcpSetServersRequest | SDKControlRegisterRepoRootRequest | SDKControlReloadPluginsRequest | SDKControlReloadSkillsRequest | SDKControlReloadOutputStylesRequest | SDKControlMcpReconnectRequest | SDKControlMcpToggleRequest | SDKControlStopTaskRequest | SDKControlBackgroundTasksRequest | SDKControlGetTaskOutputRequest | SDKControlApplyFlagSettingsRequest | SDKControlGetSettingsRequest | SDKControlGetHooksListingRequest | SDKControlUpdateSettingsRequest | SDKControlElicitationRequest | SDKControlRequestUserDialogRequest | SDKControlListPermissionRulesRequest | SDKControlMcpReadResourceRequest;
|
|
4955
4989
|
|
|
4956
4990
|
/**
|
|
4957
4991
|
* Progress for a long-running client-originated control_request (currently only side_question), correlated by request_id. status 'started' means the worker accepted the request and launched the work; 'api_retry' carries the same retry counters as SDKAPIRetryMessage and is present only for that status.
|
|
@@ -5701,6 +5735,7 @@ export declare type SDKResultSuccess = {
|
|
|
5701
5735
|
|
|
5702
5736
|
|
|
5703
5737
|
|
|
5738
|
+
|
|
5704
5739
|
user_message_uuid?: string;
|
|
5705
5740
|
user_message_uuids?: string[];
|
|
5706
5741
|
resume_reason?: string;
|
|
@@ -5721,6 +5756,8 @@ export declare type SDKResultSuccess = {
|
|
|
5721
5756
|
|
|
5722
5757
|
|
|
5723
5758
|
first_text_post_ms?: number;
|
|
5759
|
+
first_text_post_queue_wait_ms?: number;
|
|
5760
|
+
first_text_post_queued_behind?: 'durable_post' | 'ephemeral_post' | 'retry_backoff' | 'hold' | 'none';
|
|
5724
5761
|
first_text_post_wall_ms?: number;
|
|
5725
5762
|
time_to_request_from_spawn_ms?: number;
|
|
5726
5763
|
warm_spare_claimed?: boolean;
|
|
@@ -6185,7 +6222,7 @@ export declare type SDKUserMessage = {
|
|
|
6185
6222
|
parent_tool_use_id: string | null;
|
|
6186
6223
|
isSynthetic?: boolean;
|
|
6187
6224
|
/**
|
|
6188
|
-
* 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.
|
|
6225
|
+
* 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. A call that stepped aside for a message the user sent (today a WebFetch or WebSearch call) carries `{ detachedToolCall: true }` in place of its Output: the call is still running, and its result reaches the model in a later turn.
|
|
6189
6226
|
*/
|
|
6190
6227
|
tool_use_result?: unknown;
|
|
6191
6228
|
priority?: 'now' | 'next' | 'later';
|
|
@@ -6274,7 +6311,7 @@ export declare type SDKUserMessageReplay = {
|
|
|
6274
6311
|
parent_tool_use_id: string | null;
|
|
6275
6312
|
isSynthetic?: boolean;
|
|
6276
6313
|
/**
|
|
6277
|
-
* 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.
|
|
6314
|
+
* 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. A call that stepped aside for a message the user sent (today a WebFetch or WebSearch call) carries `{ detachedToolCall: true }` in place of its Output: the call is still running, and its result reaches the model in a later turn.
|
|
6278
6315
|
*/
|
|
6279
6316
|
tool_use_result?: unknown;
|
|
6280
6317
|
priority?: 'now' | 'next' | 'later';
|
|
@@ -7474,7 +7511,7 @@ export declare interface Settings {
|
|
|
7474
7511
|
*/
|
|
7475
7512
|
url: string;
|
|
7476
7513
|
/**
|
|
7477
|
-
* Subdirectory within the repo containing the plugin (e.g., "tools/claude-plugin").
|
|
7514
|
+
* Subdirectory within the repo containing the plugin (e.g., "tools/claude-plugin"). Checked out sparsely — over https or ssh as a partial clone (--filter=tree:0) — to minimize bandwidth for monorepos.
|
|
7478
7515
|
*/
|
|
7479
7516
|
path: string;
|
|
7480
7517
|
/**
|
|
@@ -7726,7 +7763,7 @@ export declare interface Settings {
|
|
|
7726
7763
|
*/
|
|
7727
7764
|
url: string;
|
|
7728
7765
|
/**
|
|
7729
|
-
* Subdirectory within the repo containing the plugin (e.g., "tools/claude-plugin").
|
|
7766
|
+
* Subdirectory within the repo containing the plugin (e.g., "tools/claude-plugin"). Checked out sparsely — over https or ssh as a partial clone (--filter=tree:0) — to minimize bandwidth for monorepos.
|
|
7730
7767
|
*/
|
|
7731
7768
|
path: string;
|
|
7732
7769
|
/**
|
|
@@ -7973,7 +8010,7 @@ export declare interface Settings {
|
|
|
7973
8010
|
*/
|
|
7974
8011
|
url: string;
|
|
7975
8012
|
/**
|
|
7976
|
-
* Subdirectory within the repo containing the plugin (e.g., "tools/claude-plugin").
|
|
8013
|
+
* Subdirectory within the repo containing the plugin (e.g., "tools/claude-plugin"). Checked out sparsely — over https or ssh as a partial clone (--filter=tree:0) — to minimize bandwidth for monorepos.
|
|
7977
8014
|
*/
|
|
7978
8015
|
path: string;
|
|
7979
8016
|
/**
|
|
@@ -8210,7 +8247,7 @@ export declare interface Settings {
|
|
|
8210
8247
|
*/
|
|
8211
8248
|
url: string;
|
|
8212
8249
|
/**
|
|
8213
|
-
* Subdirectory within the repo containing the plugin (e.g., "tools/claude-plugin").
|
|
8250
|
+
* Subdirectory within the repo containing the plugin (e.g., "tools/claude-plugin"). Checked out sparsely — over https or ssh as a partial clone (--filter=tree:0) — to minimize bandwidth for monorepos.
|
|
8214
8251
|
*/
|
|
8215
8252
|
path: string;
|
|
8216
8253
|
/**
|
|
@@ -8447,7 +8484,7 @@ export declare interface Settings {
|
|
|
8447
8484
|
*/
|
|
8448
8485
|
url: string;
|
|
8449
8486
|
/**
|
|
8450
|
-
* Subdirectory within the repo containing the plugin (e.g., "tools/claude-plugin").
|
|
8487
|
+
* Subdirectory within the repo containing the plugin (e.g., "tools/claude-plugin"). Checked out sparsely — over https or ssh as a partial clone (--filter=tree:0) — to minimize bandwidth for monorepos.
|
|
8451
8488
|
*/
|
|
8452
8489
|
path: string;
|
|
8453
8490
|
/**
|