@anthropic-ai/claude-agent-sdk 0.3.150 → 0.3.153
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 +90 -90
- package/bridge.mjs +62 -62
- package/browser-sdk.js +8 -8
- package/manifest.json +19 -19
- package/manifest.zst.json +23 -23
- package/package.json +10 -10
- package/sdk-tools.d.ts +8 -0
- package/sdk.d.ts +117 -8
- package/sdk.mjs +34 -34
package/manifest.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-05-
|
|
2
|
+
"version": "2.1.153",
|
|
3
|
+
"commit": "6cfd211761f355dcebba152b66399d0416e445d2",
|
|
4
|
+
"buildDate": "2026-05-27T20:11:39Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "449d9c89d7a63b1d427d912a7bd6e6f23f9a7b363866697c9fa9a0012546b254",
|
|
9
|
+
"size": 214457760
|
|
10
10
|
},
|
|
11
11
|
"darwin-x64": {
|
|
12
12
|
"binary": "claude",
|
|
13
|
-
"checksum": "
|
|
14
|
-
"size":
|
|
13
|
+
"checksum": "4b90521c64b728caabe221737ce8a83d362ef0852eee7d789f014f7ff73ce97b",
|
|
14
|
+
"size": 216971920
|
|
15
15
|
},
|
|
16
16
|
"linux-arm64": {
|
|
17
17
|
"binary": "claude",
|
|
18
|
-
"checksum": "
|
|
19
|
-
"size":
|
|
18
|
+
"checksum": "6277fbbea72228a069e4719fc3e5fa36f16749247a2321c520dae93e83e92d9c",
|
|
19
|
+
"size": 239777416
|
|
20
20
|
},
|
|
21
21
|
"linux-x64": {
|
|
22
22
|
"binary": "claude",
|
|
23
|
-
"checksum": "
|
|
24
|
-
"size":
|
|
23
|
+
"checksum": "214f603f31942162dac9a65f18d43b3ac646ae215240fad481c4aad6c60f2e38",
|
|
24
|
+
"size": 239896272
|
|
25
25
|
},
|
|
26
26
|
"linux-arm64-musl": {
|
|
27
27
|
"binary": "claude",
|
|
28
|
-
"checksum": "
|
|
29
|
-
"size":
|
|
28
|
+
"checksum": "5071eceaedd2d4d6b085faa46e1a60befad432176a9ec39fd10c004564381308",
|
|
29
|
+
"size": 232632152
|
|
30
30
|
},
|
|
31
31
|
"linux-x64-musl": {
|
|
32
32
|
"binary": "claude",
|
|
33
|
-
"checksum": "
|
|
34
|
-
"size":
|
|
33
|
+
"checksum": "fb2b406b244466db17b48e2864ec7c90b852ef3f404bbb1d9c9bf914efee39d1",
|
|
34
|
+
"size": 234290224
|
|
35
35
|
},
|
|
36
36
|
"win32-x64": {
|
|
37
37
|
"binary": "claude.exe",
|
|
38
|
-
"checksum": "
|
|
39
|
-
"size":
|
|
38
|
+
"checksum": "8bda00dba0e8b44e67966a07ee32cf23032f7ebb90e77d4f82ab2e39b1118623",
|
|
39
|
+
"size": 235564192
|
|
40
40
|
},
|
|
41
41
|
"win32-arm64": {
|
|
42
42
|
"binary": "claude.exe",
|
|
43
|
-
"checksum": "
|
|
44
|
-
"size":
|
|
43
|
+
"checksum": "240240e32f10bc7d4124c1c5603313e243cabaae80e174e2c6eb27f5b1e1ebe9",
|
|
44
|
+
"size": 231529120
|
|
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-05-
|
|
2
|
+
"version": "2.1.153",
|
|
3
|
+
"commit": "6cfd211761f355dcebba152b66399d0416e445d2",
|
|
4
|
+
"buildDate": "2026-05-27T20:18:33Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude.zst",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "16af1a1864280dc72058420aaa95ad871548ab4a642e80e5b185fdf52afe4434",
|
|
9
|
+
"size": 44258200,
|
|
10
10
|
"bundle": {
|
|
11
|
-
"checksum": "
|
|
12
|
-
"size":
|
|
11
|
+
"checksum": "d398b4cbe9da8b4525afc51c7b765f3804e44306450f90f0d15fa0481a7ceb49",
|
|
12
|
+
"size": 44260085
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"darwin-x64": {
|
|
16
16
|
"binary": "claude.zst",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "7ca60a8ff63defa35ce2cddb66035833145b491eb76f093bd538b853be9bce8c",
|
|
18
|
+
"size": 46169639,
|
|
19
19
|
"bundle": {
|
|
20
|
-
"checksum": "
|
|
21
|
-
"size":
|
|
20
|
+
"checksum": "15066bce318fbc9d9c0602bcfb9a02dce7fb3d6d97705c226e40b918724fdafc",
|
|
21
|
+
"size": 46177081
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"linux-arm64": {
|
|
25
25
|
"binary": "claude.zst",
|
|
26
|
-
"checksum": "
|
|
27
|
-
"size":
|
|
26
|
+
"checksum": "89413e37f65e673474d9f1d941d4e282ebee6e9ee0403343acb8e4eb467f96d9",
|
|
27
|
+
"size": 51971265
|
|
28
28
|
},
|
|
29
29
|
"linux-x64": {
|
|
30
30
|
"binary": "claude.zst",
|
|
31
|
-
"checksum": "
|
|
32
|
-
"size":
|
|
31
|
+
"checksum": "2dde7ff04ce2c89dbf05f07508c9e98f306d3d137f7f95c68988a061582a15be",
|
|
32
|
+
"size": 52597782
|
|
33
33
|
},
|
|
34
34
|
"linux-arm64-musl": {
|
|
35
35
|
"binary": "claude.zst",
|
|
36
|
-
"checksum": "
|
|
37
|
-
"size":
|
|
36
|
+
"checksum": "27faa2760bbd26ed92fb396d68c98dd945745be9b7518f452906a8bf9d49c6f9",
|
|
37
|
+
"size": 50590686
|
|
38
38
|
},
|
|
39
39
|
"linux-x64-musl": {
|
|
40
40
|
"binary": "claude.zst",
|
|
41
|
-
"checksum": "
|
|
42
|
-
"size":
|
|
41
|
+
"checksum": "81b4309249da7748cfbd0c71575f4c3529ace87ac8517dd8b1589b7b684d79a1",
|
|
42
|
+
"size": 51288054
|
|
43
43
|
},
|
|
44
44
|
"win32-x64": {
|
|
45
45
|
"binary": "claude.exe.zst",
|
|
46
|
-
"checksum": "
|
|
47
|
-
"size":
|
|
46
|
+
"checksum": "2ad9e38724ed36008708785dce9866ee64a4f352abbfff593482bddf9b587d3b",
|
|
47
|
+
"size": 53313137
|
|
48
48
|
},
|
|
49
49
|
"win32-arm64": {
|
|
50
50
|
"binary": "claude.exe.zst",
|
|
51
|
-
"checksum": "
|
|
52
|
-
"size":
|
|
51
|
+
"checksum": "30c5585b84fb8df3b762cdae64d5354dc57354d5286ff88416b7f35ad973444b",
|
|
52
|
+
"size": 51597586
|
|
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.153",
|
|
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.153",
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.153",
|
|
66
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.153",
|
|
67
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.153",
|
|
68
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.153",
|
|
69
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.153",
|
|
70
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.153",
|
|
71
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.153"
|
|
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.153"
|
|
90
90
|
}
|
package/sdk-tools.d.ts
CHANGED
|
@@ -2273,6 +2273,14 @@ export interface WorkflowInput {
|
|
|
2273
2273
|
* Name of a predefined workflow (built-in or from .claude/workflows/). Resolves to a self-contained script.
|
|
2274
2274
|
*/
|
|
2275
2275
|
name?: string;
|
|
2276
|
+
/**
|
|
2277
|
+
* Ignored — set the workflow description in the script's `meta` block.
|
|
2278
|
+
*/
|
|
2279
|
+
description?: string;
|
|
2280
|
+
/**
|
|
2281
|
+
* Ignored — set the workflow title in the script's `meta` block.
|
|
2282
|
+
*/
|
|
2283
|
+
title?: string;
|
|
2276
2284
|
/**
|
|
2277
2285
|
* Optional input value exposed to the script as the global `args`. Use for parameterized named workflows (e.g. a research question).
|
|
2278
2286
|
*/
|
package/sdk.d.ts
CHANGED
|
@@ -350,6 +350,8 @@ declare namespace coreTypes {
|
|
|
350
350
|
McpServerToolPolicy,
|
|
351
351
|
McpSetServersResult,
|
|
352
352
|
McpStdioServerConfig,
|
|
353
|
+
MessageDisplayHookInput,
|
|
354
|
+
MessageDisplayHookSpecificOutput,
|
|
353
355
|
ModelInfo,
|
|
354
356
|
ModelUsage,
|
|
355
357
|
NotificationHookInput,
|
|
@@ -416,6 +418,7 @@ declare namespace coreTypes {
|
|
|
416
418
|
SDKTaskProgressMessage,
|
|
417
419
|
SDKTaskStartedMessage,
|
|
418
420
|
SDKTaskUpdatedMessage,
|
|
421
|
+
SDKThinkingTokensMessage,
|
|
419
422
|
SDKToolProgressMessage,
|
|
420
423
|
SDKToolUseSummaryMessage,
|
|
421
424
|
SDKUserMessageReplay,
|
|
@@ -777,7 +780,7 @@ export declare type GetSubagentMessagesOptions = {
|
|
|
777
780
|
sessionStore?: SessionStore;
|
|
778
781
|
};
|
|
779
782
|
|
|
780
|
-
export declare const HOOK_EVENTS: readonly ["PreToolUse", "PostToolUse", "PostToolUseFailure", "PostToolBatch", "Notification", "UserPromptSubmit", "UserPromptExpansion", "SessionStart", "SessionEnd", "Stop", "StopFailure", "SubagentStart", "SubagentStop", "PreCompact", "PostCompact", "PermissionRequest", "PermissionDenied", "Setup", "TeammateIdle", "TaskCreated", "TaskCompleted", "Elicitation", "ElicitationResult", "ConfigChange", "WorktreeCreate", "WorktreeRemove", "InstructionsLoaded", "CwdChanged", "FileChanged"];
|
|
783
|
+
export declare const HOOK_EVENTS: readonly ["PreToolUse", "PostToolUse", "PostToolUseFailure", "PostToolBatch", "Notification", "UserPromptSubmit", "UserPromptExpansion", "SessionStart", "SessionEnd", "Stop", "StopFailure", "SubagentStart", "SubagentStop", "PreCompact", "PostCompact", "PermissionRequest", "PermissionDenied", "Setup", "TeammateIdle", "TaskCreated", "TaskCompleted", "Elicitation", "ElicitationResult", "ConfigChange", "WorktreeCreate", "WorktreeRemove", "InstructionsLoaded", "CwdChanged", "FileChanged", "MessageDisplay"];
|
|
781
784
|
|
|
782
785
|
/**
|
|
783
786
|
* Hook callback function for responding to events during execution.
|
|
@@ -796,9 +799,9 @@ export declare interface HookCallbackMatcher {
|
|
|
796
799
|
timeout?: number;
|
|
797
800
|
}
|
|
798
801
|
|
|
799
|
-
export declare type HookEvent = 'PreToolUse' | 'PostToolUse' | 'PostToolUseFailure' | 'PostToolBatch' | 'Notification' | 'UserPromptSubmit' | 'UserPromptExpansion' | 'SessionStart' | 'SessionEnd' | 'Stop' | 'StopFailure' | 'SubagentStart' | 'SubagentStop' | 'PreCompact' | 'PostCompact' | 'PermissionRequest' | 'PermissionDenied' | 'Setup' | 'TeammateIdle' | 'TaskCreated' | 'TaskCompleted' | 'Elicitation' | 'ElicitationResult' | 'ConfigChange' | 'WorktreeCreate' | 'WorktreeRemove' | 'InstructionsLoaded' | 'CwdChanged' | 'FileChanged';
|
|
802
|
+
export declare type HookEvent = 'PreToolUse' | 'PostToolUse' | 'PostToolUseFailure' | 'PostToolBatch' | 'Notification' | 'UserPromptSubmit' | 'UserPromptExpansion' | 'SessionStart' | 'SessionEnd' | 'Stop' | 'StopFailure' | 'SubagentStart' | 'SubagentStop' | 'PreCompact' | 'PostCompact' | 'PermissionRequest' | 'PermissionDenied' | 'Setup' | 'TeammateIdle' | 'TaskCreated' | 'TaskCompleted' | 'Elicitation' | 'ElicitationResult' | 'ConfigChange' | 'WorktreeCreate' | 'WorktreeRemove' | 'InstructionsLoaded' | 'CwdChanged' | 'FileChanged' | 'MessageDisplay';
|
|
800
803
|
|
|
801
|
-
export declare type HookInput = PreToolUseHookInput | PostToolUseHookInput | PostToolUseFailureHookInput | PostToolBatchHookInput | PermissionDeniedHookInput | NotificationHookInput | UserPromptSubmitHookInput | UserPromptExpansionHookInput | SessionStartHookInput | SessionEndHookInput | StopHookInput | StopFailureHookInput | SubagentStartHookInput | SubagentStopHookInput | PreCompactHookInput | PostCompactHookInput | PermissionRequestHookInput | SetupHookInput | TeammateIdleHookInput | TaskCreatedHookInput | TaskCompletedHookInput | ElicitationHookInput | ElicitationResultHookInput | ConfigChangeHookInput | InstructionsLoadedHookInput | WorktreeCreateHookInput | WorktreeRemoveHookInput | CwdChangedHookInput | FileChangedHookInput;
|
|
804
|
+
export declare type HookInput = PreToolUseHookInput | PostToolUseHookInput | PostToolUseFailureHookInput | PostToolBatchHookInput | PermissionDeniedHookInput | NotificationHookInput | UserPromptSubmitHookInput | UserPromptExpansionHookInput | SessionStartHookInput | SessionEndHookInput | StopHookInput | StopFailureHookInput | SubagentStartHookInput | SubagentStopHookInput | PreCompactHookInput | PostCompactHookInput | PermissionRequestHookInput | SetupHookInput | TeammateIdleHookInput | TaskCreatedHookInput | TaskCompletedHookInput | ElicitationHookInput | ElicitationResultHookInput | ConfigChangeHookInput | InstructionsLoadedHookInput | WorktreeCreateHookInput | WorktreeRemoveHookInput | CwdChangedHookInput | FileChangedHookInput | MessageDisplayHookInput;
|
|
802
805
|
|
|
803
806
|
export declare type HookJSONOutput = AsyncHookJSONOutput | SyncHookJSONOutput;
|
|
804
807
|
|
|
@@ -1136,6 +1139,44 @@ export declare type McpStdioServerConfig = {
|
|
|
1136
1139
|
|
|
1137
1140
|
};
|
|
1138
1141
|
|
|
1142
|
+
/**
|
|
1143
|
+
* Hook input for the MessageDisplay event. Fired with each batch of newly completed lines while an assistant message streams. Display-only: the stored message and what the model sees are untouched.
|
|
1144
|
+
*/
|
|
1145
|
+
export declare type MessageDisplayHookInput = BaseHookInput & {
|
|
1146
|
+
hook_event_name: 'MessageDisplay';
|
|
1147
|
+
/**
|
|
1148
|
+
* UUID of the current turn.
|
|
1149
|
+
*/
|
|
1150
|
+
turn_id: string;
|
|
1151
|
+
/**
|
|
1152
|
+
* UUID of the assistant message being displayed. Stable across every flush of the same message. Not the API msg_… id.
|
|
1153
|
+
*/
|
|
1154
|
+
message_id: string;
|
|
1155
|
+
/**
|
|
1156
|
+
* Zero-based index of this delta within the message. Increments by one per flush.
|
|
1157
|
+
*/
|
|
1158
|
+
index: number;
|
|
1159
|
+
/**
|
|
1160
|
+
* True on the message's last flush. Exactly one flush per message has it.
|
|
1161
|
+
*/
|
|
1162
|
+
final: boolean;
|
|
1163
|
+
/**
|
|
1164
|
+
* The newly completed lines since the prior flush. Always whole lines, except on the final flush which may end mid-line. The delta of the final flush is empty when the message ends on a newline; treat final as the end-of-message signal regardless.
|
|
1165
|
+
*/
|
|
1166
|
+
delta: string;
|
|
1167
|
+
};
|
|
1168
|
+
|
|
1169
|
+
/**
|
|
1170
|
+
* Hook-specific output for the MessageDisplay event. Display-only: replaces the delta on screen without changing the stored message.
|
|
1171
|
+
*/
|
|
1172
|
+
export declare type MessageDisplayHookSpecificOutput = {
|
|
1173
|
+
hookEventName: 'MessageDisplay';
|
|
1174
|
+
/**
|
|
1175
|
+
* Text displayed in place of the delta. Omit (or return the delta unchanged) to display the original.
|
|
1176
|
+
*/
|
|
1177
|
+
displayContent?: string;
|
|
1178
|
+
};
|
|
1179
|
+
|
|
1139
1180
|
/**
|
|
1140
1181
|
* Information about an available model.
|
|
1141
1182
|
*/
|
|
@@ -1801,8 +1842,11 @@ export declare type Options = {
|
|
|
1801
1842
|
*/
|
|
1802
1843
|
stderr?: (data: string) => void;
|
|
1803
1844
|
/**
|
|
1804
|
-
*
|
|
1805
|
-
*
|
|
1845
|
+
* Only use MCP servers passed via the `mcpServers` option (and servers
|
|
1846
|
+
* declared by explicitly-passed agent definitions in `agents`), ignoring
|
|
1847
|
+
* all other MCP configurations: project `.mcp.json`, user settings,
|
|
1848
|
+
* plugins, and on-disk agent frontmatter — including subagent frontmatter
|
|
1849
|
+
* MCP. Maps to the CLI `--strict-mcp-config` flag.
|
|
1806
1850
|
*/
|
|
1807
1851
|
strictMcpConfig?: boolean;
|
|
1808
1852
|
/**
|
|
@@ -2569,6 +2613,19 @@ export declare type SDKAssistantMessage = {
|
|
|
2569
2613
|
* Description of the subagent task that produced this message.
|
|
2570
2614
|
*/
|
|
2571
2615
|
task_description?: string;
|
|
2616
|
+
|
|
2617
|
+
|
|
2618
|
+
|
|
2619
|
+
|
|
2620
|
+
|
|
2621
|
+
|
|
2622
|
+
|
|
2623
|
+
|
|
2624
|
+
|
|
2625
|
+
|
|
2626
|
+
|
|
2627
|
+
|
|
2628
|
+
|
|
2572
2629
|
};
|
|
2573
2630
|
|
|
2574
2631
|
export declare type SDKAssistantMessageError = 'authentication_failed' | 'oauth_org_not_allowed' | 'billing_error' | 'rate_limit' | 'invalid_request' | 'model_not_found' | 'server_error' | 'unknown' | 'max_output_tokens';
|
|
@@ -3238,7 +3295,7 @@ export declare type SDKMemoryRecallMessage = {
|
|
|
3238
3295
|
session_id: string;
|
|
3239
3296
|
};
|
|
3240
3297
|
|
|
3241
|
-
export declare type SDKMessage = SDKAssistantMessage | SDKUserMessage | SDKUserMessageReplay | SDKResultMessage | SDKSystemMessage | SDKPartialAssistantMessage | SDKCompactBoundaryMessage | SDKStatusMessage | SDKAPIRetryMessage | SDKLocalCommandOutputMessage | SDKHookStartedMessage | SDKHookProgressMessage | SDKHookResponseMessage | SDKPluginInstallMessage | SDKToolProgressMessage | SDKAuthStatusMessage | SDKTaskNotificationMessage | SDKTaskStartedMessage | SDKTaskUpdatedMessage | SDKTaskProgressMessage | SDKSessionStateChangedMessage | SDKNotificationMessage | SDKFilesPersistedEvent | SDKToolUseSummaryMessage | SDKMemoryRecallMessage | SDKRateLimitEvent | SDKElicitationCompleteMessage | SDKPermissionDeniedMessage | SDKPromptSuggestionMessage | SDKMirrorErrorMessage;
|
|
3298
|
+
export declare type SDKMessage = SDKAssistantMessage | SDKUserMessage | SDKUserMessageReplay | SDKResultMessage | SDKSystemMessage | SDKPartialAssistantMessage | SDKCompactBoundaryMessage | SDKStatusMessage | SDKAPIRetryMessage | SDKLocalCommandOutputMessage | SDKHookStartedMessage | SDKHookProgressMessage | SDKHookResponseMessage | SDKPluginInstallMessage | SDKToolProgressMessage | SDKAuthStatusMessage | SDKTaskNotificationMessage | SDKTaskStartedMessage | SDKTaskUpdatedMessage | SDKTaskProgressMessage | SDKThinkingTokensMessage | SDKSessionStateChangedMessage | SDKNotificationMessage | SDKFilesPersistedEvent | SDKToolUseSummaryMessage | SDKMemoryRecallMessage | SDKRateLimitEvent | SDKElicitationCompleteMessage | SDKPermissionDeniedMessage | SDKPromptSuggestionMessage | SDKMirrorErrorMessage;
|
|
3242
3299
|
|
|
3243
3300
|
/**
|
|
3244
3301
|
* Provenance of a user-role message (peer session, team lead, channel). Absent or `human` means keyboard input from the user.
|
|
@@ -3650,6 +3707,18 @@ export declare type SDKTaskUpdatedMessage = {
|
|
|
3650
3707
|
session_id: string;
|
|
3651
3708
|
};
|
|
3652
3709
|
|
|
3710
|
+
/**
|
|
3711
|
+
* Live thinking-token estimate, digested from thinking_delta.estimated_tokens during the redacted-thinking phase (where the API otherwise streams only pings). estimated_tokens is the running total for the current thinking block; estimated_tokens_delta is the increment carried by this frame. Approximate progress for spinners/pills, not the authoritative billed output_tokens.
|
|
3712
|
+
*/
|
|
3713
|
+
export declare type SDKThinkingTokensMessage = {
|
|
3714
|
+
type: 'system';
|
|
3715
|
+
subtype: 'thinking_tokens';
|
|
3716
|
+
estimated_tokens: number;
|
|
3717
|
+
estimated_tokens_delta: number;
|
|
3718
|
+
uuid: UUID;
|
|
3719
|
+
session_id: string;
|
|
3720
|
+
};
|
|
3721
|
+
|
|
3653
3722
|
export declare type SDKToolProgressMessage = {
|
|
3654
3723
|
type: 'tool_progress';
|
|
3655
3724
|
tool_use_id: string;
|
|
@@ -3796,13 +3865,19 @@ export declare type SessionStartHookInput = BaseHookInput & {
|
|
|
3796
3865
|
source: 'startup' | 'resume' | 'clear' | 'compact';
|
|
3797
3866
|
agent_type?: string;
|
|
3798
3867
|
model?: string;
|
|
3868
|
+
session_title?: string;
|
|
3799
3869
|
};
|
|
3800
3870
|
|
|
3801
3871
|
export declare type SessionStartHookSpecificOutput = {
|
|
3802
3872
|
hookEventName: 'SessionStart';
|
|
3803
3873
|
additionalContext?: string;
|
|
3804
3874
|
initialUserMessage?: string;
|
|
3875
|
+
sessionTitle?: string;
|
|
3805
3876
|
watchPaths?: string[];
|
|
3877
|
+
/**
|
|
3878
|
+
* Re-scan skill and command directories after SessionStart hooks complete, so skills installed by the hook are available in the same session
|
|
3879
|
+
*/
|
|
3880
|
+
reloadSkills?: boolean;
|
|
3806
3881
|
};
|
|
3807
3882
|
|
|
3808
3883
|
/**
|
|
@@ -4379,6 +4454,11 @@ export declare interface Settings {
|
|
|
4379
4454
|
* Disable Remote Control (claude.ai/code, `claude remote-control`, `--remote-control`/`--rc`, auto-start, and the in-session toggle). Typically set in managed settings.
|
|
4380
4455
|
*/
|
|
4381
4456
|
disableRemoteControl?: boolean;
|
|
4457
|
+
|
|
4458
|
+
/**
|
|
4459
|
+
* Enable or disable the Workflows feature for this user. Unset = default by plan once the feature is available.
|
|
4460
|
+
*/
|
|
4461
|
+
enableWorkflows?: boolean;
|
|
4382
4462
|
/**
|
|
4383
4463
|
* Disable inline shell execution in skills and custom slash commands from user, project, or plugin sources. Commands are replaced with a placeholder instead of being run.
|
|
4384
4464
|
*/
|
|
@@ -4488,6 +4568,10 @@ export declare interface Settings {
|
|
|
4488
4568
|
* Directories to include via git sparse-checkout (cone mode). Use for monorepos where the marketplace lives in a subdirectory. Example: [".claude-plugin", "plugins"]. If omitted, the full repository is cloned.
|
|
4489
4569
|
*/
|
|
4490
4570
|
sparsePaths?: string[];
|
|
4571
|
+
/**
|
|
4572
|
+
* Skip Git LFS smudge during clone and update (sets GIT_LFS_SKIP_SMUDGE=1) so LFS pointer files stay as pointers instead of downloading their content. Use for marketplaces hosted in repos with large LFS objects.
|
|
4573
|
+
*/
|
|
4574
|
+
skipLfs?: boolean;
|
|
4491
4575
|
} | {
|
|
4492
4576
|
source: 'git';
|
|
4493
4577
|
/**
|
|
@@ -4506,6 +4590,10 @@ export declare interface Settings {
|
|
|
4506
4590
|
* Directories to include via git sparse-checkout (cone mode). Use for monorepos where the marketplace lives in a subdirectory. Example: [".claude-plugin", "plugins"]. If omitted, the full repository is cloned.
|
|
4507
4591
|
*/
|
|
4508
4592
|
sparsePaths?: string[];
|
|
4593
|
+
/**
|
|
4594
|
+
* Skip Git LFS smudge during clone and update (sets GIT_LFS_SKIP_SMUDGE=1) so LFS pointer files stay as pointers instead of downloading their content. Use for marketplaces hosted in repos with large LFS objects.
|
|
4595
|
+
*/
|
|
4596
|
+
skipLfs?: boolean;
|
|
4509
4597
|
} | {
|
|
4510
4598
|
source: 'npm';
|
|
4511
4599
|
/**
|
|
@@ -4680,6 +4768,10 @@ export declare interface Settings {
|
|
|
4680
4768
|
* Directories to include via git sparse-checkout (cone mode). Use for monorepos where the marketplace lives in a subdirectory. Example: [".claude-plugin", "plugins"]. If omitted, the full repository is cloned.
|
|
4681
4769
|
*/
|
|
4682
4770
|
sparsePaths?: string[];
|
|
4771
|
+
/**
|
|
4772
|
+
* Skip Git LFS smudge during clone and update (sets GIT_LFS_SKIP_SMUDGE=1) so LFS pointer files stay as pointers instead of downloading their content. Use for marketplaces hosted in repos with large LFS objects.
|
|
4773
|
+
*/
|
|
4774
|
+
skipLfs?: boolean;
|
|
4683
4775
|
} | {
|
|
4684
4776
|
source: 'git';
|
|
4685
4777
|
/**
|
|
@@ -4698,6 +4790,10 @@ export declare interface Settings {
|
|
|
4698
4790
|
* Directories to include via git sparse-checkout (cone mode). Use for monorepos where the marketplace lives in a subdirectory. Example: [".claude-plugin", "plugins"]. If omitted, the full repository is cloned.
|
|
4699
4791
|
*/
|
|
4700
4792
|
sparsePaths?: string[];
|
|
4793
|
+
/**
|
|
4794
|
+
* Skip Git LFS smudge during clone and update (sets GIT_LFS_SKIP_SMUDGE=1) so LFS pointer files stay as pointers instead of downloading their content. Use for marketplaces hosted in repos with large LFS objects.
|
|
4795
|
+
*/
|
|
4796
|
+
skipLfs?: boolean;
|
|
4701
4797
|
} | {
|
|
4702
4798
|
source: 'npm';
|
|
4703
4799
|
/**
|
|
@@ -4862,6 +4958,10 @@ export declare interface Settings {
|
|
|
4862
4958
|
* Directories to include via git sparse-checkout (cone mode). Use for monorepos where the marketplace lives in a subdirectory. Example: [".claude-plugin", "plugins"]. If omitted, the full repository is cloned.
|
|
4863
4959
|
*/
|
|
4864
4960
|
sparsePaths?: string[];
|
|
4961
|
+
/**
|
|
4962
|
+
* Skip Git LFS smudge during clone and update (sets GIT_LFS_SKIP_SMUDGE=1) so LFS pointer files stay as pointers instead of downloading their content. Use for marketplaces hosted in repos with large LFS objects.
|
|
4963
|
+
*/
|
|
4964
|
+
skipLfs?: boolean;
|
|
4865
4965
|
} | {
|
|
4866
4966
|
source: 'git';
|
|
4867
4967
|
/**
|
|
@@ -4880,6 +4980,10 @@ export declare interface Settings {
|
|
|
4880
4980
|
* Directories to include via git sparse-checkout (cone mode). Use for monorepos where the marketplace lives in a subdirectory. Example: [".claude-plugin", "plugins"]. If omitted, the full repository is cloned.
|
|
4881
4981
|
*/
|
|
4882
4982
|
sparsePaths?: string[];
|
|
4983
|
+
/**
|
|
4984
|
+
* Skip Git LFS smudge during clone and update (sets GIT_LFS_SKIP_SMUDGE=1) so LFS pointer files stay as pointers instead of downloading their content. Use for marketplaces hosted in repos with large LFS objects.
|
|
4985
|
+
*/
|
|
4986
|
+
skipLfs?: boolean;
|
|
4883
4987
|
} | {
|
|
4884
4988
|
source: 'npm';
|
|
4885
4989
|
/**
|
|
@@ -5011,6 +5115,10 @@ export declare interface Settings {
|
|
|
5011
5115
|
url?: string;
|
|
5012
5116
|
};
|
|
5013
5117
|
})[];
|
|
5118
|
+
/**
|
|
5119
|
+
* Marketplace names whose plugins may surface as contextual install suggestions (relevance-based tips), in addition to the official marketplace. 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.
|
|
5120
|
+
*/
|
|
5121
|
+
pluginSuggestionMarketplaces?: string[];
|
|
5014
5122
|
/**
|
|
5015
5123
|
* Force a specific login method: "claudeai" for Claude Pro/Max, "console" for Console billing
|
|
5016
5124
|
*/
|
|
@@ -5299,13 +5407,14 @@ export declare interface Settings {
|
|
|
5299
5407
|
*/
|
|
5300
5408
|
autoDreamEnabled?: boolean;
|
|
5301
5409
|
/**
|
|
5302
|
-
*
|
|
5410
|
+
* Request API-side thinking summaries and show them in the conversation and in the transcript view (ctrl+o). Set explicitly to override the default for your install.
|
|
5303
5411
|
*/
|
|
5304
5412
|
showThinkingSummaries?: boolean;
|
|
5305
5413
|
/**
|
|
5306
5414
|
* Whether the user has accepted the bypass permissions mode dialog
|
|
5307
5415
|
*/
|
|
5308
5416
|
skipDangerousModePermissionPrompt?: boolean;
|
|
5417
|
+
|
|
5309
5418
|
/**
|
|
5310
5419
|
* Disable auto mode
|
|
5311
5420
|
*/
|
|
@@ -5636,7 +5745,7 @@ export declare type SyncHookJSONOutput = {
|
|
|
5636
5745
|
reason?: string;
|
|
5637
5746
|
|
|
5638
5747
|
|
|
5639
|
-
hookSpecificOutput?: PreToolUseHookSpecificOutput | UserPromptSubmitHookSpecificOutput | UserPromptExpansionHookSpecificOutput | SessionStartHookSpecificOutput | SetupHookSpecificOutput | SubagentStartHookSpecificOutput | PostToolUseHookSpecificOutput | PostToolUseFailureHookSpecificOutput | PostToolBatchHookSpecificOutput | PermissionDeniedHookSpecificOutput | NotificationHookSpecificOutput | PermissionRequestHookSpecificOutput | ElicitationHookSpecificOutput | ElicitationResultHookSpecificOutput | CwdChangedHookSpecificOutput | FileChangedHookSpecificOutput | WorktreeCreateHookSpecificOutput;
|
|
5748
|
+
hookSpecificOutput?: PreToolUseHookSpecificOutput | UserPromptSubmitHookSpecificOutput | UserPromptExpansionHookSpecificOutput | SessionStartHookSpecificOutput | SetupHookSpecificOutput | SubagentStartHookSpecificOutput | PostToolUseHookSpecificOutput | PostToolUseFailureHookSpecificOutput | PostToolBatchHookSpecificOutput | PermissionDeniedHookSpecificOutput | NotificationHookSpecificOutput | PermissionRequestHookSpecificOutput | ElicitationHookSpecificOutput | ElicitationResultHookSpecificOutput | CwdChangedHookSpecificOutput | FileChangedHookSpecificOutput | WorktreeCreateHookSpecificOutput | MessageDisplayHookSpecificOutput;
|
|
5640
5749
|
};
|
|
5641
5750
|
|
|
5642
5751
|
/**
|