@anthropic-ai/claude-agent-sdk 0.2.138 → 0.2.140
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 +69 -69
- package/bridge.d.ts +2 -2
- package/bridge.mjs +55 -55
- package/browser-sdk.js +30 -30
- package/manifest.json +19 -19
- package/manifest.zst.json +23 -23
- package/package.json +10 -10
- package/sdk.d.ts +58 -49
- package/sdk.mjs +31 -31
package/manifest.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-05-
|
|
2
|
+
"version": "2.1.140",
|
|
3
|
+
"commit": "89b4b3854fac52fdb8f9970133c4afe00174b6b9",
|
|
4
|
+
"buildDate": "2026-05-12T18:36:21Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "087ce732fb79658cd3e828cc377291dc56835fc5318cd519123b0880a09149c0",
|
|
9
|
+
"size": 206069664
|
|
10
10
|
},
|
|
11
11
|
"darwin-x64": {
|
|
12
12
|
"binary": "claude",
|
|
13
|
-
"checksum": "
|
|
14
|
-
"size":
|
|
13
|
+
"checksum": "2616b1e775ec0520228cd99135d07ef99e4b93b4532a03ef019e0a8e81cc7729",
|
|
14
|
+
"size": 208583824
|
|
15
15
|
},
|
|
16
16
|
"linux-arm64": {
|
|
17
17
|
"binary": "claude",
|
|
18
|
-
"checksum": "
|
|
19
|
-
"size":
|
|
18
|
+
"checksum": "0ec6fc062e99aa95a6edbb5308a563262d27a0772b107d01d4fa61110fb44472",
|
|
19
|
+
"size": 231454344
|
|
20
20
|
},
|
|
21
21
|
"linux-x64": {
|
|
22
22
|
"binary": "claude",
|
|
23
|
-
"checksum": "
|
|
24
|
-
"size":
|
|
23
|
+
"checksum": "807a5d6ca063f5e03e4b7283934036a3122723b28c28e1a6978e98cf2d43d0b5",
|
|
24
|
+
"size": 231577296
|
|
25
25
|
},
|
|
26
26
|
"linux-arm64-musl": {
|
|
27
27
|
"binary": "claude",
|
|
28
|
-
"checksum": "
|
|
29
|
-
"size":
|
|
28
|
+
"checksum": "b840a07551c3e1baecff728eb6b9a849483be87bf1fdaed5da22d0b3427a88cf",
|
|
29
|
+
"size": 224309080
|
|
30
30
|
},
|
|
31
31
|
"linux-x64-musl": {
|
|
32
32
|
"binary": "claude",
|
|
33
|
-
"checksum": "
|
|
34
|
-
"size":
|
|
33
|
+
"checksum": "7db8946293de9ec11d2b02472f715f18ea9a346238d472605b5d9a4dc7bfd3f1",
|
|
34
|
+
"size": 225971248
|
|
35
35
|
},
|
|
36
36
|
"win32-x64": {
|
|
37
37
|
"binary": "claude.exe",
|
|
38
|
-
"checksum": "
|
|
39
|
-
"size":
|
|
38
|
+
"checksum": "fcfe90297861b1bcfa581d7db645ec8a71984baed3b1c44d28032650baa2617c",
|
|
39
|
+
"size": 227456160
|
|
40
40
|
},
|
|
41
41
|
"win32-arm64": {
|
|
42
42
|
"binary": "claude.exe",
|
|
43
|
-
"checksum": "
|
|
44
|
-
"size":
|
|
43
|
+
"checksum": "3f782467ec6e593a5e23522b678cf4268965e4ec6fe904e41729a12d64232c40",
|
|
44
|
+
"size": 223420576
|
|
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.140",
|
|
3
|
+
"commit": "89b4b3854fac52fdb8f9970133c4afe00174b6b9",
|
|
4
|
+
"buildDate": "2026-05-12T18:43:34Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude.zst",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "d9b6bdb0b8f271b344f19885179bcb0ef13fd66314607fdcfbe83cb85de77eb7",
|
|
9
|
+
"size": 42718061,
|
|
10
10
|
"bundle": {
|
|
11
|
-
"checksum": "
|
|
12
|
-
"size":
|
|
11
|
+
"checksum": "6742fbb491b6cef7feb8aaee8672a52dd9c158d3b3534282351a760f16fa9aa2",
|
|
12
|
+
"size": 42722106
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"darwin-x64": {
|
|
16
16
|
"binary": "claude.zst",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "91a7324c7163375a93995217ecfb814a49da83f82ef8ef6f0369fef6e0a2dee4",
|
|
18
|
+
"size": 44628262,
|
|
19
19
|
"bundle": {
|
|
20
|
-
"checksum": "
|
|
21
|
-
"size":
|
|
20
|
+
"checksum": "a6038ac7599463370aaf02a0deb89f1d063faab1c39203522828ea01af2f3952",
|
|
21
|
+
"size": 44635470
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"linux-arm64": {
|
|
25
25
|
"binary": "claude.zst",
|
|
26
|
-
"checksum": "
|
|
27
|
-
"size":
|
|
26
|
+
"checksum": "26bd23cebfe608abbb6a564e9bbee8b969805d2fec566640ec986922f4da050f",
|
|
27
|
+
"size": 50527860
|
|
28
28
|
},
|
|
29
29
|
"linux-x64": {
|
|
30
30
|
"binary": "claude.zst",
|
|
31
|
-
"checksum": "
|
|
32
|
-
"size":
|
|
31
|
+
"checksum": "e704d23a8b015a1156749f763f5eae8449a07fc01089923cf52483a9e811a9cc",
|
|
32
|
+
"size": 51130420
|
|
33
33
|
},
|
|
34
34
|
"linux-arm64-musl": {
|
|
35
35
|
"binary": "claude.zst",
|
|
36
|
-
"checksum": "
|
|
37
|
-
"size":
|
|
36
|
+
"checksum": "aea9f89cfdfca9268f598106b2cca98045495959552d0732f6dd42c7ac69c173",
|
|
37
|
+
"size": 49145878
|
|
38
38
|
},
|
|
39
39
|
"linux-x64-musl": {
|
|
40
40
|
"binary": "claude.zst",
|
|
41
|
-
"checksum": "
|
|
42
|
-
"size":
|
|
41
|
+
"checksum": "7a330e14ae68b55a69d6480db19027a0fc25bcd315053a82ff04dd369192a8fa",
|
|
42
|
+
"size": 49840553
|
|
43
43
|
},
|
|
44
44
|
"win32-x64": {
|
|
45
45
|
"binary": "claude.exe.zst",
|
|
46
|
-
"checksum": "
|
|
47
|
-
"size":
|
|
46
|
+
"checksum": "196bca09220a94b4e93ab654dd509ff87a02fc1eeedfa51a5dd710a9cb3d25dc",
|
|
47
|
+
"size": 51861421
|
|
48
48
|
},
|
|
49
49
|
"win32-arm64": {
|
|
50
50
|
"binary": "claude.exe.zst",
|
|
51
|
-
"checksum": "
|
|
52
|
-
"size":
|
|
51
|
+
"checksum": "8b9ed012b85c45aa4bef85e1db3eb2ccf60ed3d413eda6d90ac9f136947bcd33",
|
|
52
|
+
"size": 50151271
|
|
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.2.
|
|
3
|
+
"version": "0.2.140",
|
|
4
4
|
"main": "sdk.mjs",
|
|
5
5
|
"types": "sdk.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -55,14 +55,14 @@
|
|
|
55
55
|
"zod": "^4.0.0"
|
|
56
56
|
},
|
|
57
57
|
"optionalDependencies": {
|
|
58
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.2.
|
|
59
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.2.
|
|
60
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.2.
|
|
61
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.2.
|
|
62
|
-
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.2.
|
|
63
|
-
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.2.
|
|
64
|
-
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.2.
|
|
65
|
-
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.2.
|
|
58
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.2.140",
|
|
59
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.2.140",
|
|
60
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.2.140",
|
|
61
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.2.140",
|
|
62
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.2.140",
|
|
63
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.2.140",
|
|
64
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.2.140",
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.2.140"
|
|
66
66
|
},
|
|
67
67
|
"files": [
|
|
68
68
|
"sdk.mjs",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"manifest.json",
|
|
79
79
|
"manifest.zst.json"
|
|
80
80
|
],
|
|
81
|
-
"claudeCodeVersion": "2.1.
|
|
81
|
+
"claudeCodeVersion": "2.1.140"
|
|
82
82
|
}
|
package/sdk.d.ts
CHANGED
|
@@ -27,9 +27,9 @@ export declare type AccountInfo = {
|
|
|
27
27
|
tokenSource?: string;
|
|
28
28
|
apiKeySource?: string;
|
|
29
29
|
/**
|
|
30
|
-
* Active API backend. Anthropic OAuth login only applies when "firstParty"; for 3P providers the other fields are absent and auth is external (AWS creds, gcloud ADC, etc.).
|
|
30
|
+
* Active API backend. Anthropic OAuth login only applies when "firstParty"; for 3P providers the other fields are absent and auth is external (AWS creds, gcloud ADC, etc.). "gateway" means the CLI is authenticated against an enterprise gateway.
|
|
31
31
|
*/
|
|
32
|
-
apiProvider?: 'firstParty' | 'bedrock' | 'vertex' | 'foundry' | 'anthropicAws' | 'mantle';
|
|
32
|
+
apiProvider?: 'firstParty' | 'bedrock' | 'vertex' | 'foundry' | 'anthropicAws' | 'mantle' | 'gateway';
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
/**
|
|
@@ -344,9 +344,6 @@ declare namespace coreTypes {
|
|
|
344
344
|
PreCompactHookInput,
|
|
345
345
|
PreToolUseHookInput,
|
|
346
346
|
PreToolUseHookSpecificOutput,
|
|
347
|
-
PromptRequestOption,
|
|
348
|
-
PromptRequest,
|
|
349
|
-
PromptResponse,
|
|
350
347
|
RewindFilesResult,
|
|
351
348
|
SDKAPIRetryMessage,
|
|
352
349
|
SDKAssistantMessageError,
|
|
@@ -2007,47 +2004,6 @@ export declare type PreToolUseHookSpecificOutput = {
|
|
|
2007
2004
|
additionalContext?: string;
|
|
2008
2005
|
};
|
|
2009
2006
|
|
|
2010
|
-
export declare type PromptRequest = {
|
|
2011
|
-
/**
|
|
2012
|
-
* Request ID. Presence of this key marks the line as a prompt request.
|
|
2013
|
-
*/
|
|
2014
|
-
prompt: string;
|
|
2015
|
-
/**
|
|
2016
|
-
* The prompt message to display to the user
|
|
2017
|
-
*/
|
|
2018
|
-
message: string;
|
|
2019
|
-
/**
|
|
2020
|
-
* Available options for the user to choose from
|
|
2021
|
-
*/
|
|
2022
|
-
options: PromptRequestOption[];
|
|
2023
|
-
};
|
|
2024
|
-
|
|
2025
|
-
export declare type PromptRequestOption = {
|
|
2026
|
-
/**
|
|
2027
|
-
* Unique key for this option, returned in the response
|
|
2028
|
-
*/
|
|
2029
|
-
key: string;
|
|
2030
|
-
/**
|
|
2031
|
-
* Display text for this option
|
|
2032
|
-
*/
|
|
2033
|
-
label: string;
|
|
2034
|
-
/**
|
|
2035
|
-
* Optional description shown below the label
|
|
2036
|
-
*/
|
|
2037
|
-
description?: string;
|
|
2038
|
-
};
|
|
2039
|
-
|
|
2040
|
-
export declare type PromptResponse = {
|
|
2041
|
-
/**
|
|
2042
|
-
* The request ID from the corresponding prompt request
|
|
2043
|
-
*/
|
|
2044
|
-
prompt_response: string;
|
|
2045
|
-
/**
|
|
2046
|
-
* The key of the selected option
|
|
2047
|
-
*/
|
|
2048
|
-
selected: string;
|
|
2049
|
-
};
|
|
2050
|
-
|
|
2051
2007
|
/**
|
|
2052
2008
|
* Per-key provenance entry.
|
|
2053
2009
|
* @alpha
|
|
@@ -2269,6 +2225,19 @@ export declare interface Query extends AsyncGenerator<SDKMessage, void> {
|
|
|
2269
2225
|
* @param taskId - The task ID from task_notification events
|
|
2270
2226
|
*/
|
|
2271
2227
|
stopTask(taskId: string): Promise<void>;
|
|
2228
|
+
/**
|
|
2229
|
+
* Background in-flight foreground tasks (Bash commands and subagents).
|
|
2230
|
+
* With `toolUseId`, targets the single task started by that tool_use
|
|
2231
|
+
* block; without it, backgrounds all foreground tasks — equivalent to
|
|
2232
|
+
* pressing Ctrl+B in the terminal. Each blocking tool call returns
|
|
2233
|
+
* immediately with a "running in the background" tool_result and the
|
|
2234
|
+
* turn continues; the task keeps running and emits a task_notification
|
|
2235
|
+
* when it settles.
|
|
2236
|
+
* @param toolUseId - Optional tool_use block id to target a single task
|
|
2237
|
+
* @returns true when at least one task was backgrounded; false only
|
|
2238
|
+
* when `toolUseId` was given and it matched no foreground task
|
|
2239
|
+
*/
|
|
2240
|
+
backgroundTasks(toolUseId?: string): Promise<boolean>;
|
|
2272
2241
|
/**
|
|
2273
2242
|
* Close the query and terminate the underlying process.
|
|
2274
2243
|
* This forcefully ends the query, cleaning up all resources including
|
|
@@ -2424,6 +2393,10 @@ declare const SandboxNetworkConfigSchema: () => z.ZodOptional<z.ZodObject<{
|
|
|
2424
2393
|
allowMachLookup: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2425
2394
|
httpProxyPort: z.ZodOptional<z.ZodNumber>;
|
|
2426
2395
|
socksProxyPort: z.ZodOptional<z.ZodNumber>;
|
|
2396
|
+
tlsTerminate: z.ZodOptional<z.ZodObject<{
|
|
2397
|
+
caCertPath: z.ZodOptional<z.ZodString>;
|
|
2398
|
+
caKeyPath: z.ZodOptional<z.ZodString>;
|
|
2399
|
+
}, z.core.$strip>>;
|
|
2427
2400
|
}, z.core.$strip>>;
|
|
2428
2401
|
|
|
2429
2402
|
export declare type SandboxSettings = z.infer<ReturnType<typeof SandboxSettingsSchema>>;
|
|
@@ -2446,6 +2419,10 @@ declare const SandboxSettingsSchema: () => z.ZodObject<{
|
|
|
2446
2419
|
allowMachLookup: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2447
2420
|
httpProxyPort: z.ZodOptional<z.ZodNumber>;
|
|
2448
2421
|
socksProxyPort: z.ZodOptional<z.ZodNumber>;
|
|
2422
|
+
tlsTerminate: z.ZodOptional<z.ZodObject<{
|
|
2423
|
+
caCertPath: z.ZodOptional<z.ZodString>;
|
|
2424
|
+
caKeyPath: z.ZodOptional<z.ZodString>;
|
|
2425
|
+
}, z.core.$strip>>;
|
|
2449
2426
|
}, z.core.$strip>>;
|
|
2450
2427
|
filesystem: z.ZodOptional<z.ZodObject<{
|
|
2451
2428
|
allowWrite: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -2532,6 +2509,17 @@ declare type SDKControlApplyFlagSettingsRequest = {
|
|
|
2532
2509
|
settings: Record<string, unknown>;
|
|
2533
2510
|
};
|
|
2534
2511
|
|
|
2512
|
+
/**
|
|
2513
|
+
* Backgrounds in-flight foreground tasks (Bash commands and subagents). With tool_use_id, targets the single task started by that tool_use block; without it, backgrounds all foreground tasks — the control-request equivalent of pressing Ctrl+B in the terminal. Each blocking tool call returns immediately with a "running in the background" tool_result and the turn continues; the task keeps running and emits a task_notification when it settles.
|
|
2514
|
+
*/
|
|
2515
|
+
declare type SDKControlBackgroundTasksRequest = {
|
|
2516
|
+
subtype: 'background_tasks';
|
|
2517
|
+
/**
|
|
2518
|
+
* When set, backgrounds only the task whose originating tool_use block has this id. When omitted, backgrounds all foreground tasks (Ctrl+B semantics).
|
|
2519
|
+
*/
|
|
2520
|
+
tool_use_id?: string;
|
|
2521
|
+
};
|
|
2522
|
+
|
|
2535
2523
|
/**
|
|
2536
2524
|
* Drops a pending async user message from the command queue by uuid. No-op if already dequeued for execution.
|
|
2537
2525
|
*/
|
|
@@ -2902,7 +2890,7 @@ export declare type SDKControlRequest = {
|
|
|
2902
2890
|
request: SDKControlRequestInner;
|
|
2903
2891
|
};
|
|
2904
2892
|
|
|
2905
|
-
declare type SDKControlRequestInner = SDKControlInterruptRequest | SDKControlPermissionRequest | SDKControlInitializeRequest | SDKControlSetPermissionModeRequest | SDKControlSetModelRequest | SDKControlSetMaxThinkingTokensRequest | SDKControlRenameSessionRequest | SDKControlSetColorRequest | SDKControlMcpStatusRequest | SDKControlGetContextUsageRequest | SDKControlGetSessionCostRequest | SDKControlGetBinaryVersionRequest | SDKControlMcpCallRequest | SDKControlFileSuggestionsRequest | SDKHookCallbackRequest | SDKControlMcpMessageRequest | SDKControlRewindFilesRequest | SDKControlCancelAsyncMessageRequest | SDKControlReadFileRequest | SDKControlSeedReadStateRequest | SDKControlMcpSetServersRequest | SDKControlReloadPluginsRequest | SDKControlMcpReconnectRequest | SDKControlMcpToggleRequest | SDKControlChannelEnableRequest | SDKControlEndSessionRequest | SDKControlMcpAuthenticateRequest | SDKControlMcpClearAuthRequest | SDKControlMcpOAuthCallbackUrlRequest | SDKControlClaudeAuthenticateRequest | SDKControlClaudeOAuthCallbackRequest | SDKControlClaudeOAuthWaitForCompletionRequest | SDKControlRemoteControlRequest | SDKControlGenerateSessionTitleRequest | SDKControlSideQuestionRequest | SDKControlUltrareviewLaunchRequest | SDKControlMessageRatedRequest | SDKControlOAuthTokenRefreshRequest | SDKControlStopTaskRequest | SDKControlApplyFlagSettingsRequest | SDKControlGetSettingsRequest | SDKControlElicitationRequest | SDKControlRequestUserDialogRequest | SDKControlSubmitFeedbackRequest;
|
|
2893
|
+
declare type SDKControlRequestInner = SDKControlInterruptRequest | SDKControlPermissionRequest | SDKControlInitializeRequest | SDKControlSetPermissionModeRequest | SDKControlSetModelRequest | SDKControlSetMaxThinkingTokensRequest | SDKControlRenameSessionRequest | SDKControlSetColorRequest | SDKControlMcpStatusRequest | SDKControlGetContextUsageRequest | SDKControlGetSessionCostRequest | SDKControlGetBinaryVersionRequest | SDKControlMcpCallRequest | SDKControlFileSuggestionsRequest | SDKHookCallbackRequest | SDKControlMcpMessageRequest | SDKControlRewindFilesRequest | SDKControlCancelAsyncMessageRequest | SDKControlReadFileRequest | SDKControlSeedReadStateRequest | SDKControlMcpSetServersRequest | SDKControlReloadPluginsRequest | SDKControlMcpReconnectRequest | SDKControlMcpToggleRequest | SDKControlChannelEnableRequest | SDKControlEndSessionRequest | SDKControlMcpAuthenticateRequest | SDKControlMcpClearAuthRequest | SDKControlMcpOAuthCallbackUrlRequest | SDKControlClaudeAuthenticateRequest | SDKControlClaudeOAuthCallbackRequest | SDKControlClaudeOAuthWaitForCompletionRequest | SDKControlRemoteControlRequest | SDKControlGenerateSessionTitleRequest | SDKControlSideQuestionRequest | SDKControlUltrareviewLaunchRequest | SDKControlMessageRatedRequest | SDKControlOAuthTokenRefreshRequest | SDKControlStopTaskRequest | SDKControlBackgroundTasksRequest | SDKControlApplyFlagSettingsRequest | SDKControlGetSettingsRequest | SDKControlElicitationRequest | SDKControlRequestUserDialogRequest | SDKControlSubmitFeedbackRequest;
|
|
2906
2894
|
|
|
2907
2895
|
/**
|
|
2908
2896
|
* 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.
|
|
@@ -3557,6 +3545,7 @@ export declare type SDKSystemMessage = {
|
|
|
3557
3545
|
|
|
3558
3546
|
}[];
|
|
3559
3547
|
|
|
3548
|
+
|
|
3560
3549
|
fast_mode_state?: FastModeState;
|
|
3561
3550
|
|
|
3562
3551
|
|
|
@@ -4140,6 +4129,10 @@ export declare interface Settings {
|
|
|
4140
4129
|
* Shell command to execute
|
|
4141
4130
|
*/
|
|
4142
4131
|
command: string;
|
|
4132
|
+
/**
|
|
4133
|
+
* Argument list for exec form. When present, `command` is resolved as an executable and spawned directly with these arguments — no shell. Path placeholders like ${CLAUDE_PLUGIN_ROOT} are substituted per-element as plain strings, so paths with quotes, $, or backticks never reach a shell parser. When absent, `command` runs through a shell (bash on POSIX, PowerShell on Windows without Git Bash).
|
|
4134
|
+
*/
|
|
4135
|
+
args?: string[];
|
|
4143
4136
|
/**
|
|
4144
4137
|
* Permission rule syntax to filter when this hook runs (e.g., "Bash(git *)"). Only runs if the tool call matches the pattern. Avoids spawning hooks for non-matching commands.
|
|
4145
4138
|
*/
|
|
@@ -4191,6 +4184,10 @@ export declare interface Settings {
|
|
|
4191
4184
|
* Model to use for this prompt hook (e.g., "claude-sonnet-4-6"). If not specified, uses the default small fast model.
|
|
4192
4185
|
*/
|
|
4193
4186
|
model?: string;
|
|
4187
|
+
/**
|
|
4188
|
+
* Sets the continue value for the decision:"block" produced when ok is false. Default false (turn ends). Whether continue:true lets the turn proceed depends on the event's decision:"block" semantics. On PostToolUse, the reason is fed back to Claude and the turn continues.
|
|
4189
|
+
*/
|
|
4190
|
+
continueOnBlock?: boolean;
|
|
4194
4191
|
/**
|
|
4195
4192
|
* Custom status message to display in spinner while hook runs
|
|
4196
4193
|
*/
|
|
@@ -4323,9 +4320,9 @@ export declare interface Settings {
|
|
|
4323
4320
|
*/
|
|
4324
4321
|
disableAllHooks?: boolean;
|
|
4325
4322
|
/**
|
|
4326
|
-
* Disable
|
|
4323
|
+
* Disable agent view (`claude agents`, `--bg`, /background, the on-demand daemon). Typically set in managed settings. Equivalent to CLAUDE_CODE_DISABLE_AGENT_VIEW=1.
|
|
4327
4324
|
*/
|
|
4328
|
-
|
|
4325
|
+
disableAgentView?: boolean;
|
|
4329
4326
|
/**
|
|
4330
4327
|
* Disable Remote Control (claude.ai/code, `claude remote-control`, `--remote-control`/`--rc`, auto-start, and the in-session toggle). Typically set in managed settings.
|
|
4331
4328
|
*/
|
|
@@ -5024,6 +5021,13 @@ export declare interface Settings {
|
|
|
5024
5021
|
allowMachLookup?: string[];
|
|
5025
5022
|
httpProxyPort?: number;
|
|
5026
5023
|
socksProxyPort?: number;
|
|
5024
|
+
/**
|
|
5025
|
+
* [EXPERIMENTAL] Enable in-process TLS termination so the per-request filter can see HTTPS request bodies. Provide a CA cert+key, or omit both to have sandbox-runtime generate an ephemeral one for the session.
|
|
5026
|
+
*/
|
|
5027
|
+
tlsTerminate?: {
|
|
5028
|
+
caCertPath?: string;
|
|
5029
|
+
caKeyPath?: string;
|
|
5030
|
+
};
|
|
5027
5031
|
};
|
|
5028
5032
|
filesystem?: {
|
|
5029
5033
|
/**
|
|
@@ -5273,6 +5277,10 @@ export declare interface Settings {
|
|
|
5273
5277
|
*/
|
|
5274
5278
|
startDirectory?: string;
|
|
5275
5279
|
}[];
|
|
5280
|
+
/**
|
|
5281
|
+
* CLAUDE.md-style instructions injected as organization-managed memory. Only honored from managed/policy settings.
|
|
5282
|
+
*/
|
|
5283
|
+
claudeMd?: string;
|
|
5276
5284
|
/**
|
|
5277
5285
|
* Glob patterns or absolute paths of CLAUDE.md files to exclude from loading. Patterns are matched against absolute file paths using picomatch. Only applies to User, Project, and Local memory types (Managed/policy files cannot be excluded). Examples: "/home/user/monorepo/CLAUDE.md", "** /code/CLAUDE.md", "** /some-dir/.claude/rules/**"
|
|
5278
5286
|
*/
|
|
@@ -5524,6 +5532,7 @@ export declare type SyncHookJSONOutput = {
|
|
|
5524
5532
|
systemMessage?: string;
|
|
5525
5533
|
reason?: string;
|
|
5526
5534
|
|
|
5535
|
+
|
|
5527
5536
|
hookSpecificOutput?: PreToolUseHookSpecificOutput | UserPromptSubmitHookSpecificOutput | UserPromptExpansionHookSpecificOutput | SessionStartHookSpecificOutput | SetupHookSpecificOutput | SubagentStartHookSpecificOutput | PostToolUseHookSpecificOutput | PostToolUseFailureHookSpecificOutput | PostToolBatchHookSpecificOutput | PermissionDeniedHookSpecificOutput | NotificationHookSpecificOutput | PermissionRequestHookSpecificOutput | ElicitationHookSpecificOutput | ElicitationResultHookSpecificOutput | CwdChangedHookSpecificOutput | FileChangedHookSpecificOutput | WorktreeCreateHookSpecificOutput;
|
|
5528
5537
|
};
|
|
5529
5538
|
|