@anthropic-ai/claude-agent-sdk 0.3.167 → 0.3.169
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 +123 -120
- package/bridge.mjs +65 -65
- package/browser-sdk.d.ts +37 -4
- package/browser-sdk.js +36 -32
- package/manifest.json +19 -19
- package/manifest.zst.json +23 -23
- package/package.json +10 -10
- package/sdk-tools.d.ts +1 -1
- package/sdk.d.ts +257 -7
- package/sdk.mjs +57 -57
package/manifest.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-06-
|
|
2
|
+
"version": "2.1.169",
|
|
3
|
+
"commit": "eb44edf196b8a320135d5a27a3cfba37773ce0cd",
|
|
4
|
+
"buildDate": "2026-06-08T03:29:19Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "86d8b820ad7eed50e50a130706d3dc5ef70696f91194de1b3897a842182afe3a",
|
|
9
|
+
"size": 221921184
|
|
10
10
|
},
|
|
11
11
|
"darwin-x64": {
|
|
12
12
|
"binary": "claude",
|
|
13
|
-
"checksum": "
|
|
14
|
-
"size":
|
|
13
|
+
"checksum": "6d8d510c715b899307b7d29a1062d43e62c99370c55330dac3ec1851a2fbf7c8",
|
|
14
|
+
"size": 224435344
|
|
15
15
|
},
|
|
16
16
|
"linux-arm64": {
|
|
17
17
|
"binary": "claude",
|
|
18
|
-
"checksum": "
|
|
19
|
-
"size":
|
|
18
|
+
"checksum": "341072395844b2b6d2846d8d61d551752b12a44433c920d0cc7fe6e7b5692a9b",
|
|
19
|
+
"size": 247182984
|
|
20
20
|
},
|
|
21
21
|
"linux-x64": {
|
|
22
22
|
"binary": "claude",
|
|
23
|
-
"checksum": "
|
|
24
|
-
"size":
|
|
23
|
+
"checksum": "cf066bf360cbf7b51abeb8cb230012fc0f2fed4253b2ce305de48ccd6d49a39c",
|
|
24
|
+
"size": 247297744
|
|
25
25
|
},
|
|
26
26
|
"linux-arm64-musl": {
|
|
27
27
|
"binary": "claude",
|
|
28
|
-
"checksum": "
|
|
29
|
-
"size":
|
|
28
|
+
"checksum": "75a3cde99622b8315eacaa148905715da38f1e3359f950ec9348336579e8cb25",
|
|
29
|
+
"size": 240037720
|
|
30
30
|
},
|
|
31
31
|
"linux-x64-musl": {
|
|
32
32
|
"binary": "claude",
|
|
33
|
-
"checksum": "
|
|
34
|
-
"size":
|
|
33
|
+
"checksum": "bd6fe38a55103d2c5bb8254a193a13829f18834e1c4a2739ac54d35770c79b5f",
|
|
34
|
+
"size": 241691696
|
|
35
35
|
},
|
|
36
36
|
"win32-x64": {
|
|
37
37
|
"binary": "claude.exe",
|
|
38
|
-
"checksum": "
|
|
39
|
-
"size":
|
|
38
|
+
"checksum": "b4b4bbedc86c6b4ad617f4e5fe59f299c9909d068b25b6916c5f6701451cdf12",
|
|
39
|
+
"size": 242764960
|
|
40
40
|
},
|
|
41
41
|
"win32-arm64": {
|
|
42
42
|
"binary": "claude.exe",
|
|
43
|
-
"checksum": "
|
|
44
|
-
"size":
|
|
43
|
+
"checksum": "29360b804dba89eae9927c6161b3d35023a349119b6e5086377f29bed77e89ff",
|
|
44
|
+
"size": 238729888
|
|
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.169",
|
|
3
|
+
"commit": "eb44edf196b8a320135d5a27a3cfba37773ce0cd",
|
|
4
|
+
"buildDate": "2026-06-08T03:31:02Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude.zst",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "fa5f68ad6243bfb59659ccffb9764e918d8d999abbe7cba6f3513d5c5b585e0b",
|
|
9
|
+
"size": 45588498,
|
|
10
10
|
"bundle": {
|
|
11
|
-
"checksum": "
|
|
12
|
-
"size":
|
|
11
|
+
"checksum": "4320c7b4c1663fcb1175dcac9719e450d58e4caf053443db10150006923c140d",
|
|
12
|
+
"size": 45584839
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"darwin-x64": {
|
|
16
16
|
"binary": "claude.zst",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "1c26144457e43516e04180c473a78b3619423fac0977579be6259422793e20a3",
|
|
18
|
+
"size": 47529757,
|
|
19
19
|
"bundle": {
|
|
20
|
-
"checksum": "
|
|
21
|
-
"size":
|
|
20
|
+
"checksum": "179a62a62ef550a45f7f3cd0e6ada8d553a0dc69ddccc6487714c7f1aa9f1477",
|
|
21
|
+
"size": 47538891
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"linux-arm64": {
|
|
25
25
|
"binary": "claude.zst",
|
|
26
|
-
"checksum": "
|
|
27
|
-
"size":
|
|
26
|
+
"checksum": "2449ac49a90fb6ec698c8349df9e9e4ed66fa5e499f051a25e707ba016d41186",
|
|
27
|
+
"size": 53264356
|
|
28
28
|
},
|
|
29
29
|
"linux-x64": {
|
|
30
30
|
"binary": "claude.zst",
|
|
31
|
-
"checksum": "
|
|
32
|
-
"size":
|
|
31
|
+
"checksum": "267841db28454f9d9b84fce19c90e0997bc5c82f523c0817e70bd39a74716aba",
|
|
32
|
+
"size": 53883389
|
|
33
33
|
},
|
|
34
34
|
"linux-arm64-musl": {
|
|
35
35
|
"binary": "claude.zst",
|
|
36
|
-
"checksum": "
|
|
37
|
-
"size":
|
|
36
|
+
"checksum": "7571613991d774a90178dc2e839846ba695c510fe9f3e2893c073abc69bf3473",
|
|
37
|
+
"size": 51895594
|
|
38
38
|
},
|
|
39
39
|
"linux-x64-musl": {
|
|
40
40
|
"binary": "claude.zst",
|
|
41
|
-
"checksum": "
|
|
42
|
-
"size":
|
|
41
|
+
"checksum": "4c30837e6a594cfa3ef85030509b6e0ca3e99b273fb1fb642721a829dbe0c7c8",
|
|
42
|
+
"size": 52605126
|
|
43
43
|
},
|
|
44
44
|
"win32-x64": {
|
|
45
45
|
"binary": "claude.exe.zst",
|
|
46
|
-
"checksum": "
|
|
47
|
-
"size":
|
|
46
|
+
"checksum": "688e6b3a9fa0efd3a5e6902b5fa55cc6c2b0df258c05185291e1944bfbeaab43",
|
|
47
|
+
"size": 54621429
|
|
48
48
|
},
|
|
49
49
|
"win32-arm64": {
|
|
50
50
|
"binary": "claude.exe.zst",
|
|
51
|
-
"checksum": "
|
|
52
|
-
"size":
|
|
51
|
+
"checksum": "8f9b77e0b85133ca0899556b31ac5767e4a0e7f0479f4c36d5f4b7d56443c871",
|
|
52
|
+
"size": 52884497
|
|
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.169",
|
|
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.169",
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.169",
|
|
66
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.169",
|
|
67
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.169",
|
|
68
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.169",
|
|
69
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.169",
|
|
70
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.169",
|
|
71
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.169"
|
|
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.169"
|
|
90
90
|
}
|
package/sdk-tools.d.ts
CHANGED
|
@@ -3137,7 +3137,7 @@ export interface WorkflowOutput {
|
|
|
3137
3137
|
*/
|
|
3138
3138
|
sessionUrl?: string;
|
|
3139
3139
|
/**
|
|
3140
|
-
* Non-blocking heads-up (e.g. local git state diverges from the pushed branch the
|
|
3140
|
+
* Non-blocking heads-up (e.g. local git state diverges from the pushed branch the cloud session will clone)
|
|
3141
3141
|
*/
|
|
3142
3142
|
warning?: string;
|
|
3143
3143
|
/**
|
package/sdk.d.ts
CHANGED
|
@@ -298,6 +298,10 @@ declare type ControlErrorResponse = {
|
|
|
298
298
|
* Permission requests still awaiting a response. Sent on the `initialize` response so a client joining an already-initialized session learns about in-flight prompts.
|
|
299
299
|
*/
|
|
300
300
|
pending_permission_requests?: SDKControlRequest[];
|
|
301
|
+
/**
|
|
302
|
+
* request_user_dialog requests still awaiting a response. Sent on the `initialize` response (sibling of pending_permission_requests) so a client joining an already-initialized session can re-arm in-flight dialogs. Receivers must tolerate the same request_id also arriving as a live or replayed control_request frame and render it once.
|
|
303
|
+
*/
|
|
304
|
+
pending_user_dialog_requests?: SDKControlRequest[];
|
|
301
305
|
};
|
|
302
306
|
|
|
303
307
|
declare type ControlResponse = {
|
|
@@ -308,6 +312,10 @@ declare type ControlResponse = {
|
|
|
308
312
|
* Permission requests still awaiting a response. Sent on the `initialize` response so a client joining an already-initialized session learns about in-flight prompts.
|
|
309
313
|
*/
|
|
310
314
|
pending_permission_requests?: SDKControlRequest[];
|
|
315
|
+
/**
|
|
316
|
+
* request_user_dialog requests still awaiting a response. Sent on the `initialize` response (sibling of pending_permission_requests) so a client joining an already-initialized session can re-arm in-flight dialogs. Receivers must tolerate the same request_id also arriving as a live or replayed control_request frame and render it once.
|
|
317
|
+
*/
|
|
318
|
+
pending_user_dialog_requests?: SDKControlRequest[];
|
|
311
319
|
};
|
|
312
320
|
|
|
313
321
|
declare namespace coreTypes {
|
|
@@ -1223,6 +1231,7 @@ export declare type ModelInfo = {
|
|
|
1223
1231
|
* Whether this model supports auto mode
|
|
1224
1232
|
*/
|
|
1225
1233
|
supportsAutoMode?: boolean;
|
|
1234
|
+
|
|
1226
1235
|
};
|
|
1227
1236
|
|
|
1228
1237
|
export declare type ModelUsage = {
|
|
@@ -1500,11 +1509,16 @@ export declare type Options = {
|
|
|
1500
1509
|
* dialogs the CLI asks the host to render. Each `dialogKind` defines its
|
|
1501
1510
|
* own payload and result shape.
|
|
1502
1511
|
*
|
|
1503
|
-
*
|
|
1504
|
-
*
|
|
1505
|
-
*
|
|
1512
|
+
* When the host answers `{behavior: 'cancelled'}` — the required answer
|
|
1513
|
+
* for an unrecognized `dialogKind` — the CLI applies the dialog's default
|
|
1514
|
+
* behavior. If the callback is not provided at all, the SDK sends no
|
|
1515
|
+
* answer: on a multi-client session another attached client may be the
|
|
1516
|
+
* declared renderer, and an auto-reply from this one would settle the
|
|
1517
|
+
* dialog out from under it. An unanswered dialog is bounded by the CLI's
|
|
1518
|
+
* park deadline.
|
|
1506
1519
|
*/
|
|
1507
1520
|
onUserDialog?: OnUserDialog;
|
|
1521
|
+
|
|
1508
1522
|
/**
|
|
1509
1523
|
* When false, disables session persistence to disk. Sessions will not be
|
|
1510
1524
|
* saved to ~/.claude/projects/ and cannot be resumed later. Useful for
|
|
@@ -2296,6 +2310,20 @@ export declare interface Query extends AsyncGenerator<SDKMessage, void> {
|
|
|
2296
2310
|
* @returns Context usage breakdown including token counts per category and total usage
|
|
2297
2311
|
*/
|
|
2298
2312
|
getContextUsage(): Promise<SDKControlGetContextUsageResponse>;
|
|
2313
|
+
/**
|
|
2314
|
+
* Get the structured data behind the `/usage` command: session cost and
|
|
2315
|
+
* token usage totals plus claude.ai plan rate-limit utilization windows
|
|
2316
|
+
* (5-hour, 7-day, per-model) when available. `rate_limits_available` is
|
|
2317
|
+
* false (and `rate_limits` null) for API key, Bedrock, Vertex, and other
|
|
2318
|
+
* sessions where plan limits do not apply.
|
|
2319
|
+
*
|
|
2320
|
+
* EXPERIMENTAL: this API is unstable and may change or be removed in any
|
|
2321
|
+
* release without notice — do not rely on it yet. The method name will
|
|
2322
|
+
* change when the API is stabilized.
|
|
2323
|
+
*
|
|
2324
|
+
* @returns Structured session cost/usage data and plan rate-limit utilization
|
|
2325
|
+
*/
|
|
2326
|
+
usage_EXPERIMENTAL_MAY_CHANGE_DO_NOT_RELY_ON_THIS_API_YET(): Promise<SDKControlGetUsageResponse>;
|
|
2299
2327
|
/**
|
|
2300
2328
|
* Read a file from the session's filesystem for the remote sidebar
|
|
2301
2329
|
* viewer. Path is resolved against cwd and gated by the same
|
|
@@ -2647,6 +2675,7 @@ export declare type SDKAssistantMessage = {
|
|
|
2647
2675
|
uuid: UUID;
|
|
2648
2676
|
session_id: string;
|
|
2649
2677
|
request_id?: string;
|
|
2678
|
+
|
|
2650
2679
|
/**
|
|
2651
2680
|
* Subagent type that produced this message.
|
|
2652
2681
|
*/
|
|
@@ -2702,6 +2731,10 @@ export declare type SDKCompactBoundaryMessage = {
|
|
|
2702
2731
|
pre_tokens: number;
|
|
2703
2732
|
post_tokens?: number;
|
|
2704
2733
|
duration_ms?: number;
|
|
2734
|
+
|
|
2735
|
+
|
|
2736
|
+
|
|
2737
|
+
|
|
2705
2738
|
/**
|
|
2706
2739
|
* Relink info for messagesToKeep. Loaders splice the preserved segment at anchor_uuid (summary for suffix-preserving, boundary for prefix-preserving partial compact) so resume includes preserved content. Unset when compaction summarizes everything (no messagesToKeep).
|
|
2707
2740
|
*/
|
|
@@ -2716,8 +2749,10 @@ export declare type SDKCompactBoundaryMessage = {
|
|
|
2716
2749
|
preserved_messages?: {
|
|
2717
2750
|
anchor_uuid: UUID;
|
|
2718
2751
|
uuids: UUID[];
|
|
2752
|
+
|
|
2719
2753
|
};
|
|
2720
2754
|
};
|
|
2755
|
+
|
|
2721
2756
|
uuid: UUID;
|
|
2722
2757
|
session_id: string;
|
|
2723
2758
|
};
|
|
@@ -2913,6 +2948,215 @@ declare type SDKControlGetSettingsRequest = {
|
|
|
2913
2948
|
subtype: 'get_settings';
|
|
2914
2949
|
};
|
|
2915
2950
|
|
|
2951
|
+
/**
|
|
2952
|
+
* Requests the structured /usage data: session cost/usage totals plus claude.ai plan rate-limit utilization when available. Experimental — the response shape may change.
|
|
2953
|
+
*/
|
|
2954
|
+
declare type SDKControlGetUsageRequest = {
|
|
2955
|
+
subtype: 'get_usage';
|
|
2956
|
+
};
|
|
2957
|
+
|
|
2958
|
+
/**
|
|
2959
|
+
* Structured /usage data: session cost/usage totals plus claude.ai plan rate-limit utilization. Experimental — the shape may change.
|
|
2960
|
+
*/
|
|
2961
|
+
export declare type SDKControlGetUsageResponse = {
|
|
2962
|
+
/**
|
|
2963
|
+
* Cost and usage accumulated by the current session.
|
|
2964
|
+
*/
|
|
2965
|
+
session: {
|
|
2966
|
+
total_cost_usd: number;
|
|
2967
|
+
total_api_duration_ms: number;
|
|
2968
|
+
total_duration_ms: number;
|
|
2969
|
+
total_lines_added: number;
|
|
2970
|
+
total_lines_removed: number;
|
|
2971
|
+
model_usage: Record<string, coreTypes.ModelUsage>;
|
|
2972
|
+
};
|
|
2973
|
+
/**
|
|
2974
|
+
* Claude.ai subscription type ('pro', 'max', 'team', 'enterprise') or null for API key / 3P provider sessions.
|
|
2975
|
+
*/
|
|
2976
|
+
subscription_type: string | null;
|
|
2977
|
+
/**
|
|
2978
|
+
* False when plan rate limits do not apply (API key, Bedrock, Vertex, or missing profile scope) — rate_limits will be null.
|
|
2979
|
+
*/
|
|
2980
|
+
rate_limits_available: boolean;
|
|
2981
|
+
/**
|
|
2982
|
+
* Plan rate-limit utilization windows from the claude.ai usage endpoint, or null when unavailable.
|
|
2983
|
+
*/
|
|
2984
|
+
rate_limits: {
|
|
2985
|
+
five_hour?: {
|
|
2986
|
+
/**
|
|
2987
|
+
* Percentage of the window used, 0-100.
|
|
2988
|
+
*/
|
|
2989
|
+
utilization: number | null;
|
|
2990
|
+
/**
|
|
2991
|
+
* ISO 8601 timestamp when the window resets.
|
|
2992
|
+
*/
|
|
2993
|
+
resets_at: string | null;
|
|
2994
|
+
} | null;
|
|
2995
|
+
seven_day?: {
|
|
2996
|
+
/**
|
|
2997
|
+
* Percentage of the window used, 0-100.
|
|
2998
|
+
*/
|
|
2999
|
+
utilization: number | null;
|
|
3000
|
+
/**
|
|
3001
|
+
* ISO 8601 timestamp when the window resets.
|
|
3002
|
+
*/
|
|
3003
|
+
resets_at: string | null;
|
|
3004
|
+
} | null;
|
|
3005
|
+
seven_day_oauth_apps?: {
|
|
3006
|
+
/**
|
|
3007
|
+
* Percentage of the window used, 0-100.
|
|
3008
|
+
*/
|
|
3009
|
+
utilization: number | null;
|
|
3010
|
+
/**
|
|
3011
|
+
* ISO 8601 timestamp when the window resets.
|
|
3012
|
+
*/
|
|
3013
|
+
resets_at: string | null;
|
|
3014
|
+
} | null;
|
|
3015
|
+
seven_day_opus?: {
|
|
3016
|
+
/**
|
|
3017
|
+
* Percentage of the window used, 0-100.
|
|
3018
|
+
*/
|
|
3019
|
+
utilization: number | null;
|
|
3020
|
+
/**
|
|
3021
|
+
* ISO 8601 timestamp when the window resets.
|
|
3022
|
+
*/
|
|
3023
|
+
resets_at: string | null;
|
|
3024
|
+
} | null;
|
|
3025
|
+
seven_day_sonnet?: {
|
|
3026
|
+
/**
|
|
3027
|
+
* Percentage of the window used, 0-100.
|
|
3028
|
+
*/
|
|
3029
|
+
utilization: number | null;
|
|
3030
|
+
/**
|
|
3031
|
+
* ISO 8601 timestamp when the window resets.
|
|
3032
|
+
*/
|
|
3033
|
+
resets_at: string | null;
|
|
3034
|
+
} | null;
|
|
3035
|
+
extra_usage?: {
|
|
3036
|
+
is_enabled: boolean;
|
|
3037
|
+
monthly_limit: number | null;
|
|
3038
|
+
used_credits: number | null;
|
|
3039
|
+
utilization: number | null;
|
|
3040
|
+
currency?: string | null;
|
|
3041
|
+
} | null;
|
|
3042
|
+
} | null;
|
|
3043
|
+
/**
|
|
3044
|
+
* What's contributing to limits usage, from a scan of local transcripts on this machine (the same data the /usage dialog renders): behavioral characteristics plus per-skill/agent/plugin/MCP-server attribution. Approximate, excludes other devices and claude.ai. Null for non-claude.ai-subscriber sessions (mirrors the dialog) or when the scan fails.
|
|
3045
|
+
*/
|
|
3046
|
+
behaviors: {
|
|
3047
|
+
/**
|
|
3048
|
+
* Last 24 hours.
|
|
3049
|
+
*/
|
|
3050
|
+
day: {
|
|
3051
|
+
/**
|
|
3052
|
+
* API requests found in local transcripts for this window.
|
|
3053
|
+
*/
|
|
3054
|
+
request_count: number;
|
|
3055
|
+
/**
|
|
3056
|
+
* Distinct sessions observed in this window.
|
|
3057
|
+
*/
|
|
3058
|
+
session_count: number;
|
|
3059
|
+
/**
|
|
3060
|
+
* Behavioral characteristics of local usage. Categories overlap — this is not a partition, so percentages do not sum to 100.
|
|
3061
|
+
*/
|
|
3062
|
+
behaviors: {
|
|
3063
|
+
key: 'cache_miss' | 'long_context' | 'subagent_heavy' | 'high_parallel' | 'cron';
|
|
3064
|
+
/**
|
|
3065
|
+
* Share of the weighted local usage attributed to this behavior, 0-100.
|
|
3066
|
+
*/
|
|
3067
|
+
pct: number;
|
|
3068
|
+
/**
|
|
3069
|
+
* Requests in this window exhibiting the behavior.
|
|
3070
|
+
*/
|
|
3071
|
+
count: number;
|
|
3072
|
+
}[];
|
|
3073
|
+
agents: {
|
|
3074
|
+
name: string;
|
|
3075
|
+
/**
|
|
3076
|
+
* Share of the weighted local usage attributed to this item, 0-100.
|
|
3077
|
+
*/
|
|
3078
|
+
pct: number;
|
|
3079
|
+
}[];
|
|
3080
|
+
skills: {
|
|
3081
|
+
name: string;
|
|
3082
|
+
/**
|
|
3083
|
+
* Share of the weighted local usage attributed to this item, 0-100.
|
|
3084
|
+
*/
|
|
3085
|
+
pct: number;
|
|
3086
|
+
}[];
|
|
3087
|
+
plugins: {
|
|
3088
|
+
name: string;
|
|
3089
|
+
/**
|
|
3090
|
+
* Share of the weighted local usage attributed to this item, 0-100.
|
|
3091
|
+
*/
|
|
3092
|
+
pct: number;
|
|
3093
|
+
}[];
|
|
3094
|
+
mcp_servers: {
|
|
3095
|
+
name: string;
|
|
3096
|
+
/**
|
|
3097
|
+
* Share of the weighted local usage attributed to this item, 0-100.
|
|
3098
|
+
*/
|
|
3099
|
+
pct: number;
|
|
3100
|
+
}[];
|
|
3101
|
+
};
|
|
3102
|
+
/**
|
|
3103
|
+
* Last 7 days.
|
|
3104
|
+
*/
|
|
3105
|
+
week: {
|
|
3106
|
+
/**
|
|
3107
|
+
* API requests found in local transcripts for this window.
|
|
3108
|
+
*/
|
|
3109
|
+
request_count: number;
|
|
3110
|
+
/**
|
|
3111
|
+
* Distinct sessions observed in this window.
|
|
3112
|
+
*/
|
|
3113
|
+
session_count: number;
|
|
3114
|
+
/**
|
|
3115
|
+
* Behavioral characteristics of local usage. Categories overlap — this is not a partition, so percentages do not sum to 100.
|
|
3116
|
+
*/
|
|
3117
|
+
behaviors: {
|
|
3118
|
+
key: 'cache_miss' | 'long_context' | 'subagent_heavy' | 'high_parallel' | 'cron';
|
|
3119
|
+
/**
|
|
3120
|
+
* Share of the weighted local usage attributed to this behavior, 0-100.
|
|
3121
|
+
*/
|
|
3122
|
+
pct: number;
|
|
3123
|
+
/**
|
|
3124
|
+
* Requests in this window exhibiting the behavior.
|
|
3125
|
+
*/
|
|
3126
|
+
count: number;
|
|
3127
|
+
}[];
|
|
3128
|
+
agents: {
|
|
3129
|
+
name: string;
|
|
3130
|
+
/**
|
|
3131
|
+
* Share of the weighted local usage attributed to this item, 0-100.
|
|
3132
|
+
*/
|
|
3133
|
+
pct: number;
|
|
3134
|
+
}[];
|
|
3135
|
+
skills: {
|
|
3136
|
+
name: string;
|
|
3137
|
+
/**
|
|
3138
|
+
* Share of the weighted local usage attributed to this item, 0-100.
|
|
3139
|
+
*/
|
|
3140
|
+
pct: number;
|
|
3141
|
+
}[];
|
|
3142
|
+
plugins: {
|
|
3143
|
+
name: string;
|
|
3144
|
+
/**
|
|
3145
|
+
* Share of the weighted local usage attributed to this item, 0-100.
|
|
3146
|
+
*/
|
|
3147
|
+
pct: number;
|
|
3148
|
+
}[];
|
|
3149
|
+
mcp_servers: {
|
|
3150
|
+
name: string;
|
|
3151
|
+
/**
|
|
3152
|
+
* Share of the weighted local usage attributed to this item, 0-100.
|
|
3153
|
+
*/
|
|
3154
|
+
pct: number;
|
|
3155
|
+
}[];
|
|
3156
|
+
};
|
|
3157
|
+
} | null;
|
|
3158
|
+
};
|
|
3159
|
+
|
|
2916
3160
|
/**
|
|
2917
3161
|
* Initializes the SDK session with hooks, MCP servers, and agent configuration.
|
|
2918
3162
|
*/
|
|
@@ -2949,6 +3193,7 @@ declare type SDKControlInitializeRequest = {
|
|
|
2949
3193
|
promptSuggestions?: boolean;
|
|
2950
3194
|
agentProgressSummaries?: boolean;
|
|
2951
3195
|
forwardSubagentText?: boolean;
|
|
3196
|
+
|
|
2952
3197
|
};
|
|
2953
3198
|
|
|
2954
3199
|
/**
|
|
@@ -2960,6 +3205,7 @@ export declare type SDKControlInitializeResponse = {
|
|
|
2960
3205
|
output_style: string;
|
|
2961
3206
|
available_output_styles: string[];
|
|
2962
3207
|
models: coreTypes.ModelInfo[];
|
|
3208
|
+
|
|
2963
3209
|
/**
|
|
2964
3210
|
* Information about the logged in user's account.
|
|
2965
3211
|
*/
|
|
@@ -3141,7 +3387,7 @@ export declare type SDKControlRequest = {
|
|
|
3141
3387
|
request: SDKControlRequestInner;
|
|
3142
3388
|
};
|
|
3143
3389
|
|
|
3144
|
-
declare type SDKControlRequestInner = SDKControlInterruptRequest | SDKControlPermissionRequest | SDKControlInitializeRequest | SDKControlSetPermissionModeRequest | SDKControlSetModelRequest | SDKControlSetMaxThinkingTokensRequest | SDKControlRenameSessionRequest | SDKControlSetColorRequest | SDKControlMcpStatusRequest | SDKControlGetContextUsageRequest | SDKControlGetSessionCostRequest | SDKControlGetBinaryVersionRequest | SDKControlMcpCallRequest | SDKControlFileSuggestionsRequest | SDKHookCallbackRequest | SDKControlMcpMessageRequest | SDKControlRewindFilesRequest | SDKControlCancelAsyncMessageRequest | SDKControlReadFileRequest | SDKControlSeedReadStateRequest | SDKControlMcpSetServersRequest | SDKControlRegisterRepoRootRequest | SDKControlReloadPluginsRequest | SDKControlReloadSkillsRequest | SDKControlMcpReconnectRequest | SDKControlMcpToggleRequest | SDKControlChannelEnableRequest | SDKControlEndSessionRequest | SDKControlMcpAuthenticateRequest | SDKControlMcpClearAuthRequest | SDKControlMcpOAuthCallbackUrlRequest | SDKControlClaudeAuthenticateRequest | SDKControlClaudeOAuthCallbackRequest | SDKControlClaudeOAuthWaitForCompletionRequest | SDKControlRemoteControlRequest | SDKControlGenerateSessionTitleRequest | SDKControlSideQuestionRequest | SDKControlUltrareviewLaunchRequest | SDKControlStageFileRequest | SDKControlMessageRatedRequest | SDKControlOAuthTokenRefreshRequest | SDKControlHostAuthTokenRefreshRequest | SDKControlStopTaskRequest | SDKControlBackgroundTasksRequest | SDKControlApplyFlagSettingsRequest | SDKControlGetSettingsRequest | SDKControlElicitationRequest | SDKControlRequestUserDialogRequest | SDKControlSubmitFeedbackRequest;
|
|
3390
|
+
declare type SDKControlRequestInner = SDKControlInterruptRequest | SDKControlPermissionRequest | SDKControlInitializeRequest | SDKControlSetPermissionModeRequest | SDKControlSetModelRequest | SDKControlSetMaxThinkingTokensRequest | SDKControlRenameSessionRequest | SDKControlSetColorRequest | SDKControlMcpStatusRequest | SDKControlGetContextUsageRequest | SDKControlGetSessionCostRequest | SDKControlGetUsageRequest | SDKControlGetBinaryVersionRequest | SDKControlMcpCallRequest | SDKControlFileSuggestionsRequest | SDKHookCallbackRequest | SDKControlMcpMessageRequest | SDKControlRewindFilesRequest | SDKControlCancelAsyncMessageRequest | SDKControlReadFileRequest | SDKControlSeedReadStateRequest | SDKControlMcpSetServersRequest | SDKControlRegisterRepoRootRequest | SDKControlReloadPluginsRequest | SDKControlReloadSkillsRequest | SDKControlMcpReconnectRequest | SDKControlMcpToggleRequest | SDKControlChannelEnableRequest | SDKControlEndSessionRequest | SDKControlMcpAuthenticateRequest | SDKControlMcpClearAuthRequest | SDKControlMcpOAuthCallbackUrlRequest | SDKControlClaudeAuthenticateRequest | SDKControlClaudeOAuthCallbackRequest | SDKControlClaudeOAuthWaitForCompletionRequest | SDKControlRemoteControlRequest | SDKControlGenerateSessionTitleRequest | SDKControlSideQuestionRequest | SDKControlUltrareviewLaunchRequest | SDKControlStageFileRequest | SDKControlMessageRatedRequest | SDKControlOAuthTokenRefreshRequest | SDKControlHostAuthTokenRefreshRequest | SDKControlStopTaskRequest | SDKControlBackgroundTasksRequest | SDKControlApplyFlagSettingsRequest | SDKControlGetSettingsRequest | SDKControlElicitationRequest | SDKControlRequestUserDialogRequest | SDKControlSubmitFeedbackRequest;
|
|
3145
3391
|
|
|
3146
3392
|
/**
|
|
3147
3393
|
* Requests the SDK consumer to render a tool-driven blocking dialog and return the user choice. Used by tools that previously rendered Ink JSX via setToolJSX with an onDone callback.
|
|
@@ -4307,6 +4553,10 @@ export declare interface Settings {
|
|
|
4307
4553
|
skillOverrides?: {
|
|
4308
4554
|
[k: string]: 'on' | 'name-only' | 'user-invocable-only' | 'off';
|
|
4309
4555
|
};
|
|
4556
|
+
/**
|
|
4557
|
+
* Disable the skills and workflows that ship with Claude Code: bundled skills and workflows are removed entirely; built-in slash commands stay typable but are hidden from the model. Plugins, .claude/skills/, and .claude/commands/ are unaffected. Equivalent to CLAUDE_CODE_DISABLE_BUNDLED_SKILLS=1.
|
|
4558
|
+
*/
|
|
4559
|
+
disableBundledSkills?: boolean;
|
|
4310
4560
|
/**
|
|
4311
4561
|
* Enterprise allowlist of MCP servers that can be used. Applies to all scopes including enterprise servers from managed-mcp.json. If undefined, all servers are allowed. If empty array, no servers are allowed. Denylist takes precedence - if a server is on both lists, it is denied.
|
|
4312
4562
|
*/
|
|
@@ -5237,7 +5487,7 @@ export declare interface Settings {
|
|
|
5237
5487
|
};
|
|
5238
5488
|
})[];
|
|
5239
5489
|
/**
|
|
5240
|
-
* Marketplace names whose plugins may surface as contextual install suggestions (relevance-based tips)
|
|
5490
|
+
* Marketplace names whose plugins may surface as contextual install suggestions (relevance-based tips). No marketplace-declared suggestions surface without this allowlist; the built-in first-party frontend-design tip is unaffected. Only honored when set in managed settings (policy scope); the key is ignored in user, project, and local settings. A name only takes effect when the marketplace is registered on the machine AND its registered source is also declared in managed settings, either as the extraKnownMarketplaces entry for that name or as an entry of strictKnownMarketplaces. A marketplace registered from a different source under an allowlisted name is ignored. The official marketplace is exempt from the source requirement: allowlisting its name alone suffices, since that name can only register from the official Anthropic source.
|
|
5241
5491
|
*/
|
|
5242
5492
|
pluginSuggestionMarketplaces?: string[];
|
|
5243
5493
|
/**
|
|
@@ -5466,11 +5716,11 @@ export declare interface Settings {
|
|
|
5466
5716
|
};
|
|
5467
5717
|
};
|
|
5468
5718
|
/**
|
|
5469
|
-
*
|
|
5719
|
+
* Cloud session configuration
|
|
5470
5720
|
*/
|
|
5471
5721
|
remote?: {
|
|
5472
5722
|
/**
|
|
5473
|
-
* Default environment ID to use for
|
|
5723
|
+
* Default environment ID to use for cloud sessions
|
|
5474
5724
|
*/
|
|
5475
5725
|
defaultEnvironmentId?: string;
|
|
5476
5726
|
};
|