@anthropic-ai/claude-agent-sdk 0.3.185 → 0.3.187
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bridge.d.ts +8 -1
- package/bridge.mjs +61 -61
- package/browser-sdk.js +33 -33
- package/manifest.json +19 -19
- package/manifest.zst.json +23 -23
- package/package.json +10 -10
- package/sdk-tools.d.ts +39 -17
- package/sdk.d.ts +99 -4
- package/sdk.mjs +55 -55
package/manifest.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-06-
|
|
2
|
+
"version": "2.1.187",
|
|
3
|
+
"commit": "6a53320fad5541a68d79e4b6c53677df77b98e33",
|
|
4
|
+
"buildDate": "2026-06-23T17:07:42Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "a59a16ba4922adab7a145728f215d042184d349f5f7e72cddb7fc114250a4ce3",
|
|
9
|
+
"size": 215994048
|
|
10
10
|
},
|
|
11
11
|
"darwin-x64": {
|
|
12
12
|
"binary": "claude",
|
|
13
|
-
"checksum": "
|
|
14
|
-
"size":
|
|
13
|
+
"checksum": "7f57b6935b4246d03cb7acee90dc22153083483a267da589c5c920dd04744c36",
|
|
14
|
+
"size": 224795776
|
|
15
15
|
},
|
|
16
16
|
"linux-arm64": {
|
|
17
17
|
"binary": "claude",
|
|
18
|
-
"checksum": "
|
|
19
|
-
"size":
|
|
18
|
+
"checksum": "b49be8a5e565bf2d45b50d2de62017b25462131acc9425d2fdb98b8f29c9dce2",
|
|
19
|
+
"size": 232240864
|
|
20
20
|
},
|
|
21
21
|
"linux-x64": {
|
|
22
22
|
"binary": "claude",
|
|
23
|
-
"checksum": "
|
|
24
|
-
"size":
|
|
23
|
+
"checksum": "bb02fcb33626f8c599d10d8bee38585d4cf8d4225c3b497869dee7454e7bf361",
|
|
24
|
+
"size": 234874664
|
|
25
25
|
},
|
|
26
26
|
"linux-arm64-musl": {
|
|
27
27
|
"binary": "claude",
|
|
28
|
-
"checksum": "
|
|
29
|
-
"size":
|
|
28
|
+
"checksum": "972fc2e0bc8104edb593ce7723d4414c0ed8e4df6d90ad26ae48097b1d910478",
|
|
29
|
+
"size": 225620168
|
|
30
30
|
},
|
|
31
31
|
"linux-x64-musl": {
|
|
32
32
|
"binary": "claude",
|
|
33
|
-
"checksum": "
|
|
34
|
-
"size":
|
|
33
|
+
"checksum": "c5a783d13aac71d42324f2e9dcd395c266bd5774951faf0d94855c737024bee3",
|
|
34
|
+
"size": 229858704
|
|
35
35
|
},
|
|
36
36
|
"win32-x64": {
|
|
37
37
|
"binary": "claude.exe",
|
|
38
|
-
"checksum": "
|
|
39
|
-
"size":
|
|
38
|
+
"checksum": "24964d08c5100bac6071352e5837101b333de1c1afefd2b8b0e7a60db6c0ef5c",
|
|
39
|
+
"size": 226329760
|
|
40
40
|
},
|
|
41
41
|
"win32-arm64": {
|
|
42
42
|
"binary": "claude.exe",
|
|
43
|
-
"checksum": "
|
|
44
|
-
"size":
|
|
43
|
+
"checksum": "04124c0ba09ece85a856de652e84386094c372f002ff767a94d4a43ecf776f96",
|
|
44
|
+
"size": 220992160
|
|
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.187",
|
|
3
|
+
"commit": "6a53320fad5541a68d79e4b6c53677df77b98e33",
|
|
4
|
+
"buildDate": "2026-06-23T17:09:24Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude.zst",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "658417c6e9f5d76f407ee1bb04220fa6dd02333b1f8ce50bf1a7340efec64f61",
|
|
9
|
+
"size": 44489766,
|
|
10
10
|
"bundle": {
|
|
11
|
-
"checksum": "
|
|
12
|
-
"size":
|
|
11
|
+
"checksum": "2c83be71c9f40ed86a806574ae5ef3aa99aff9735a8aaec65922d495e1e148d7",
|
|
12
|
+
"size": 44493483
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"darwin-x64": {
|
|
16
16
|
"binary": "claude.zst",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "9d52d2b3c1c85c83dbb9fc81be4c73f2bd2d1c09b44e5c8924c9233f4a16b3e0",
|
|
18
|
+
"size": 48636051,
|
|
19
19
|
"bundle": {
|
|
20
|
-
"checksum": "
|
|
21
|
-
"size":
|
|
20
|
+
"checksum": "43f31b4d6b04a5bf8fbe8a9b200cbf592e5e8f74616d86dd2bb3cf94dd7b1fe4",
|
|
21
|
+
"size": 48631278
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"linux-arm64": {
|
|
25
25
|
"binary": "claude.zst",
|
|
26
|
-
"checksum": "
|
|
27
|
-
"size":
|
|
26
|
+
"checksum": "dc5f7e6752374a06fb74fb222ad76d02af72acfe40c53365440b4a4b936ab890",
|
|
27
|
+
"size": 53511490
|
|
28
28
|
},
|
|
29
29
|
"linux-x64": {
|
|
30
30
|
"binary": "claude.zst",
|
|
31
|
-
"checksum": "
|
|
32
|
-
"size":
|
|
31
|
+
"checksum": "a209a9ed0af46b40691c271eceb69a7a8ba1d6e97e6899dc6cc93977751bcf86",
|
|
32
|
+
"size": 54745022
|
|
33
33
|
},
|
|
34
34
|
"linux-arm64-musl": {
|
|
35
35
|
"binary": "claude.zst",
|
|
36
|
-
"checksum": "
|
|
37
|
-
"size":
|
|
36
|
+
"checksum": "7a9e8659ab4edace5b364c102a5bfc0ddd4fc2ba48b83e30b5564d77c0b93da1",
|
|
37
|
+
"size": 52225691
|
|
38
38
|
},
|
|
39
39
|
"linux-x64-musl": {
|
|
40
40
|
"binary": "claude.zst",
|
|
41
|
-
"checksum": "
|
|
42
|
-
"size":
|
|
41
|
+
"checksum": "5ee81053b67a0418a6035b814b689cc6158054757e503643d182892ac64d2920",
|
|
42
|
+
"size": 53549455
|
|
43
43
|
},
|
|
44
44
|
"win32-x64": {
|
|
45
45
|
"binary": "claude.exe.zst",
|
|
46
|
-
"checksum": "
|
|
47
|
-
"size":
|
|
46
|
+
"checksum": "d3574e6f0e5d901724d3843e1d6dc0f1c6ddc1e14dbd30e733a582fc03698c43",
|
|
47
|
+
"size": 54983558
|
|
48
48
|
},
|
|
49
49
|
"win32-arm64": {
|
|
50
50
|
"binary": "claude.exe.zst",
|
|
51
|
-
"checksum": "
|
|
52
|
-
"size":
|
|
51
|
+
"checksum": "81830e155993db5f756f6f29f58bad01c6b72473033534f43941739d2527fbe5",
|
|
52
|
+
"size": 53030291
|
|
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.187",
|
|
4
4
|
"main": "sdk.mjs",
|
|
5
5
|
"types": "sdk.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
"zod": "^4.0.0"
|
|
58
58
|
},
|
|
59
59
|
"optionalDependencies": {
|
|
60
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.
|
|
61
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.
|
|
62
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.
|
|
63
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.
|
|
64
|
-
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.
|
|
65
|
-
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.
|
|
66
|
-
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.
|
|
67
|
-
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.
|
|
60
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.187",
|
|
61
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.187",
|
|
62
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.187",
|
|
63
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.187",
|
|
64
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.187",
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.187",
|
|
66
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.187",
|
|
67
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.187"
|
|
68
68
|
},
|
|
69
69
|
"files": [
|
|
70
70
|
"sdk.mjs",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"manifest.json",
|
|
81
81
|
"manifest.zst.json"
|
|
82
82
|
],
|
|
83
|
-
"claudeCodeVersion": "2.1.
|
|
83
|
+
"claudeCodeVersion": "2.1.187"
|
|
84
84
|
}
|
package/sdk-tools.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export type ToolInputSchemas =
|
|
|
22
22
|
| ListMcpResourcesInput
|
|
23
23
|
| McpInput
|
|
24
24
|
| NotebookEditInput
|
|
25
|
+
| ReadMcpResourceDirInput
|
|
25
26
|
| ReadMcpResourceInput
|
|
26
27
|
| TodoWriteInput
|
|
27
28
|
| WebFetchInput
|
|
@@ -60,6 +61,7 @@ export type ToolOutputSchemas =
|
|
|
60
61
|
| ListMcpResourcesOutput
|
|
61
62
|
| McpOutput
|
|
62
63
|
| NotebookEditOutput
|
|
64
|
+
| ReadMcpResourceDirOutput
|
|
63
65
|
| ReadMcpResourceOutput
|
|
64
66
|
| TodoWriteOutput
|
|
65
67
|
| WebFetchOutput
|
|
@@ -665,6 +667,16 @@ export interface NotebookEditInput {
|
|
|
665
667
|
*/
|
|
666
668
|
edit_mode?: "replace" | "insert" | "delete";
|
|
667
669
|
}
|
|
670
|
+
export interface ReadMcpResourceDirInput {
|
|
671
|
+
/**
|
|
672
|
+
* The MCP server name
|
|
673
|
+
*/
|
|
674
|
+
server: string;
|
|
675
|
+
/**
|
|
676
|
+
* The directory resource URI to list
|
|
677
|
+
*/
|
|
678
|
+
uri: string;
|
|
679
|
+
}
|
|
668
680
|
export interface ReadMcpResourceInput {
|
|
669
681
|
/**
|
|
670
682
|
* The MCP server name
|
|
@@ -2515,6 +2527,10 @@ export interface ArtifactInput {
|
|
|
2515
2527
|
* Existing artifact URL to redeploy to. Pass when the user gives you a URL for an artifact not published in this session; omit for new artifacts or same-session redeploys. Must be an artifact the user owns.
|
|
2516
2528
|
*/
|
|
2517
2529
|
url?: string;
|
|
2530
|
+
/**
|
|
2531
|
+
* Overwrite without a conflict check. Use only after a 409 when you have reconciled with the other session's version and intend to replace it. Omit (or false) to send baseVersion so a concurrent write 409s instead of being silently clobbered.
|
|
2532
|
+
*/
|
|
2533
|
+
force?: boolean;
|
|
2518
2534
|
}
|
|
2519
2535
|
export interface PushNotificationInput {
|
|
2520
2536
|
/**
|
|
@@ -2838,6 +2854,29 @@ export interface NotebookEditOutput {
|
|
|
2838
2854
|
*/
|
|
2839
2855
|
updated_file: string;
|
|
2840
2856
|
}
|
|
2857
|
+
export interface ReadMcpResourceDirOutput {
|
|
2858
|
+
/**
|
|
2859
|
+
* Direct children of the directory resource. Subdirectories appear with mimeType "inode/directory".
|
|
2860
|
+
*/
|
|
2861
|
+
resources: {
|
|
2862
|
+
/**
|
|
2863
|
+
* Child resource URI
|
|
2864
|
+
*/
|
|
2865
|
+
uri: string;
|
|
2866
|
+
/**
|
|
2867
|
+
* Child resource name
|
|
2868
|
+
*/
|
|
2869
|
+
name: string;
|
|
2870
|
+
/**
|
|
2871
|
+
* Child MIME type
|
|
2872
|
+
*/
|
|
2873
|
+
mimeType?: string;
|
|
2874
|
+
}[];
|
|
2875
|
+
/**
|
|
2876
|
+
* Human-readable error when the server could not list the directory
|
|
2877
|
+
*/
|
|
2878
|
+
error?: string;
|
|
2879
|
+
}
|
|
2841
2880
|
export interface ReadMcpResourceOutput {
|
|
2842
2881
|
contents: {
|
|
2843
2882
|
/**
|
|
@@ -2861,23 +2900,6 @@ export interface ReadMcpResourceOutput {
|
|
|
2861
2900
|
* Human-readable error when the server could not read the resource
|
|
2862
2901
|
*/
|
|
2863
2902
|
error?: string;
|
|
2864
|
-
/**
|
|
2865
|
-
* Direct children when the URI is a directory resource (SEP-2640 resources/directory/read). Subdirectories appear with mimeType "inode/directory".
|
|
2866
|
-
*/
|
|
2867
|
-
resources?: {
|
|
2868
|
-
/**
|
|
2869
|
-
* Child resource URI
|
|
2870
|
-
*/
|
|
2871
|
-
uri: string;
|
|
2872
|
-
/**
|
|
2873
|
-
* Child resource name
|
|
2874
|
-
*/
|
|
2875
|
-
name: string;
|
|
2876
|
-
/**
|
|
2877
|
-
* Child MIME type
|
|
2878
|
-
*/
|
|
2879
|
-
mimeType?: string;
|
|
2880
|
-
}[];
|
|
2881
2903
|
}
|
|
2882
2904
|
export interface TodoWriteOutput {
|
|
2883
2905
|
/**
|
package/sdk.d.ts
CHANGED
|
@@ -270,6 +270,7 @@ declare type ControlResponse = {
|
|
|
270
270
|
|
|
271
271
|
declare namespace coreTypes {
|
|
272
272
|
export {
|
|
273
|
+
SandboxCredentialsConfig,
|
|
273
274
|
SandboxFilesystemConfig,
|
|
274
275
|
SandboxIgnoreViolations,
|
|
275
276
|
SandboxNetworkConfig,
|
|
@@ -2197,6 +2198,25 @@ export declare interface Query extends AsyncGenerator<SDKMessage, void> {
|
|
|
2197
2198
|
* @param mode - The new permission mode to set
|
|
2198
2199
|
*/
|
|
2199
2200
|
setPermissionMode(mode: PermissionMode): Promise<void>;
|
|
2201
|
+
/**
|
|
2202
|
+
* Pin (or clear, with mode:null) a per-MCP-server permission-mode
|
|
2203
|
+
* override. Tighten-only: only 'default' | 'auto' | null are accepted;
|
|
2204
|
+
* the override applies only when the session mode would already
|
|
2205
|
+
* auto-allow (bypassPermissions/auto), so it can never widen privilege.
|
|
2206
|
+
* Only available in streaming input mode.
|
|
2207
|
+
*
|
|
2208
|
+
* @param serverName - The MCP server name (must match the name the server
|
|
2209
|
+
* was registered under)
|
|
2210
|
+
* @param mode - 'default' to force per-action prompts, 'auto' to route
|
|
2211
|
+
* through the auto-mode classifier, or null to clear the override
|
|
2212
|
+
* @returns An object with an optional `warning` — set when `serverName`
|
|
2213
|
+
* does not match any currently known MCP server. For a set, the
|
|
2214
|
+
* override is stored regardless and applies once a server with that
|
|
2215
|
+
* exact name connects; the warning is informational (typo detection).
|
|
2216
|
+
*/
|
|
2217
|
+
setMcpPermissionModeOverride(serverName: string, mode: 'default' | 'auto' | null): Promise<{
|
|
2218
|
+
warning?: string;
|
|
2219
|
+
}>;
|
|
2200
2220
|
/**
|
|
2201
2221
|
* Change the model used for subsequent responses.
|
|
2202
2222
|
* Only available in streaming input mode.
|
|
@@ -2548,6 +2568,38 @@ export declare type RewindFilesResult = {
|
|
|
2548
2568
|
deletions?: number;
|
|
2549
2569
|
};
|
|
2550
2570
|
|
|
2571
|
+
export declare type SandboxCredentialsConfig = NonNullable<z.infer<ReturnType<typeof SandboxCredentialsConfigSchema>>>;
|
|
2572
|
+
|
|
2573
|
+
/**
|
|
2574
|
+
* Credentials configuration schema for sandbox.
|
|
2575
|
+
*
|
|
2576
|
+
* Declares credential sources (files/directories and environment variables)
|
|
2577
|
+
* to protect. Every entry carries `mode: 'deny'`: file paths are denied for
|
|
2578
|
+
* reads inside the sandbox, environment variables are unset in sandboxed
|
|
2579
|
+
* commands.
|
|
2580
|
+
*
|
|
2581
|
+
* Only explicitly declared sources are affected — sandbox-runtime ships no
|
|
2582
|
+
* built-in credential deny list, so entries here are the complete set of
|
|
2583
|
+
* credential restrictions applied to sandboxed commands.
|
|
2584
|
+
*
|
|
2585
|
+
* Mode is `deny`-only — no `mask`. Claude Code hands this config to
|
|
2586
|
+
* sandbox-runtime programmatically, bypassing sandbox-runtime's own Zod
|
|
2587
|
+
* validation, and on that path unsupported modes are silently ignored rather
|
|
2588
|
+
* than rejected. This schema must be the gate that rejects modes
|
|
2589
|
+
* sandbox-runtime can't enforce yet; widen the mode (e.g. `mask`) only once
|
|
2590
|
+
* a sandbox-runtime version that enforces it ships.
|
|
2591
|
+
*/
|
|
2592
|
+
declare const SandboxCredentialsConfigSchema: () => z.ZodOptional<z.ZodObject<{
|
|
2593
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2594
|
+
path: z.ZodString;
|
|
2595
|
+
mode: z.ZodLiteral<"deny">;
|
|
2596
|
+
}, z.core.$strip>>>;
|
|
2597
|
+
envVars: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2598
|
+
name: z.ZodString;
|
|
2599
|
+
mode: z.ZodLiteral<"deny">;
|
|
2600
|
+
}, z.core.$strip>>>;
|
|
2601
|
+
}, z.core.$strip>>;
|
|
2602
|
+
|
|
2551
2603
|
export declare type SandboxFilesystemConfig = NonNullable<z.infer<ReturnType<typeof SandboxFilesystemConfigSchema>>>;
|
|
2552
2604
|
|
|
2553
2605
|
/**
|
|
@@ -2616,6 +2668,16 @@ declare const SandboxSettingsSchema: () => z.ZodObject<{
|
|
|
2616
2668
|
allowRead: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2617
2669
|
allowManagedReadPathsOnly: z.ZodOptional<z.ZodBoolean>;
|
|
2618
2670
|
}, z.core.$strip>>;
|
|
2671
|
+
credentials: z.ZodOptional<z.ZodObject<{
|
|
2672
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2673
|
+
path: z.ZodString;
|
|
2674
|
+
mode: z.ZodLiteral<"deny">;
|
|
2675
|
+
}, z.core.$strip>>>;
|
|
2676
|
+
envVars: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2677
|
+
name: z.ZodString;
|
|
2678
|
+
mode: z.ZodLiteral<"deny">;
|
|
2679
|
+
}, z.core.$strip>>>;
|
|
2680
|
+
}, z.core.$strip>>;
|
|
2619
2681
|
ignoreViolations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
2620
2682
|
enableWeakerNestedSandbox: z.ZodOptional<z.ZodBoolean>;
|
|
2621
2683
|
enableWeakerNetworkIsolation: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3374,7 +3436,7 @@ export declare type SDKControlRequest = {
|
|
|
3374
3436
|
request: SDKControlRequestInner;
|
|
3375
3437
|
};
|
|
3376
3438
|
|
|
3377
|
-
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 | SDKControlSetMcpPermissionModeOverrideRequest | SDKControlChannelEnableRequest | SDKControlEndSessionRequest | SDKControlMcpAuthenticateRequest | SDKControlMcpClearAuthRequest | SDKControlMcpOAuthCallbackUrlRequest | SDKControlClaudeAuthenticateRequest | SDKControlClaudeOAuthCallbackRequest | SDKControlClaudeOAuthWaitForCompletionRequest | SDKControlRemoteControlRequest | SDKControlGenerateSessionTitleRequest | SDKControlSideQuestionRequest | SDKControlUltrareviewLaunchRequest | SDKControlStageFileRequest | SDKControlMessageRatedRequest | SDKControlOAuthTokenRefreshRequest | SDKControlHostAuthTokenRefreshRequest | SDKControlStopTaskRequest | SDKControlBackgroundTasksRequest | SDKControlApplyFlagSettingsRequest | SDKControlGetSettingsRequest | SDKControlElicitationRequest | SDKControlRequestUserDialogRequest | SDKControlSubmitFeedbackRequest;
|
|
3439
|
+
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 | SDKControlSetMcpPermissionModeOverrideRequest | SDKControlRewindConversationRequest | SDKControlChannelEnableRequest | SDKControlEndSessionRequest | SDKControlMcpAuthenticateRequest | SDKControlMcpClearAuthRequest | SDKControlMcpOAuthCallbackUrlRequest | SDKControlClaudeAuthenticateRequest | SDKControlClaudeOAuthCallbackRequest | SDKControlClaudeOAuthWaitForCompletionRequest | SDKControlRemoteControlRequest | SDKControlGenerateSessionTitleRequest | SDKControlSideQuestionRequest | SDKControlUltrareviewLaunchRequest | SDKControlStageFileRequest | SDKControlAddDirectoryRequest | SDKControlMessageRatedRequest | SDKControlOAuthTokenRefreshRequest | SDKControlHostAuthTokenRefreshRequest | SDKControlStopTaskRequest | SDKControlBackgroundTasksRequest | SDKControlApplyFlagSettingsRequest | SDKControlGetSettingsRequest | SDKControlElicitationRequest | SDKControlRequestUserDialogRequest | SDKControlSubmitFeedbackRequest;
|
|
3378
3440
|
|
|
3379
3441
|
/**
|
|
3380
3442
|
* 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.
|
|
@@ -3829,6 +3891,7 @@ export declare type SDKRateLimitInfo = {
|
|
|
3829
3891
|
overageInUse?: boolean;
|
|
3830
3892
|
surpassedThreshold?: number;
|
|
3831
3893
|
|
|
3894
|
+
|
|
3832
3895
|
errorCode?: 'credits_required';
|
|
3833
3896
|
canUserPurchaseCredits?: boolean;
|
|
3834
3897
|
hasChargeableSavedPaymentMethod?: boolean;
|
|
@@ -4924,6 +4987,10 @@ export declare interface Settings {
|
|
|
4924
4987
|
* Default shell for input-box ! commands. Defaults to 'bash' on all platforms (no Windows auto-flip).
|
|
4925
4988
|
*/
|
|
4926
4989
|
defaultShell?: 'bash' | 'powershell';
|
|
4990
|
+
/**
|
|
4991
|
+
* Whether Claude responds after an input-box ! bash command runs. Set to false to add the command output to context without a response. Default: true.
|
|
4992
|
+
*/
|
|
4993
|
+
respondToBashCommands?: boolean;
|
|
4927
4994
|
/**
|
|
4928
4995
|
* When true (and set in managed settings), only hooks from managed settings run. User, project, and local hooks are ignored.
|
|
4929
4996
|
*/
|
|
@@ -5707,6 +5774,34 @@ export declare interface Settings {
|
|
|
5707
5774
|
*/
|
|
5708
5775
|
allowManagedReadPathsOnly?: boolean;
|
|
5709
5776
|
};
|
|
5777
|
+
credentials?: {
|
|
5778
|
+
/**
|
|
5779
|
+
* Credential files or directories to protect. `deny` blocks reads inside the sandbox.
|
|
5780
|
+
*/
|
|
5781
|
+
files?: {
|
|
5782
|
+
/**
|
|
5783
|
+
* Path to a credential file or directory. Same resolution as sandbox.filesystem.* paths: absolute, ~ expanded, or relative to the settings file root (project root for project settings, ~/.claude for user settings).
|
|
5784
|
+
*/
|
|
5785
|
+
path: string;
|
|
5786
|
+
/**
|
|
5787
|
+
* Access mode for this path. Only `deny` is supported.
|
|
5788
|
+
*/
|
|
5789
|
+
mode: 'deny';
|
|
5790
|
+
}[];
|
|
5791
|
+
/**
|
|
5792
|
+
* Environment variables to protect. `deny` unsets the variable for sandboxed commands.
|
|
5793
|
+
*/
|
|
5794
|
+
envVars?: {
|
|
5795
|
+
/**
|
|
5796
|
+
* Environment variable name.
|
|
5797
|
+
*/
|
|
5798
|
+
name: string;
|
|
5799
|
+
/**
|
|
5800
|
+
* Access mode for this environment variable. Only `deny` is supported.
|
|
5801
|
+
*/
|
|
5802
|
+
mode: 'deny';
|
|
5803
|
+
}[];
|
|
5804
|
+
};
|
|
5710
5805
|
ignoreViolations?: {
|
|
5711
5806
|
[k: string]: string[];
|
|
5712
5807
|
};
|
|
@@ -6017,9 +6112,9 @@ export declare interface Settings {
|
|
|
6017
6112
|
*/
|
|
6018
6113
|
todoFeatureEnabled?: boolean;
|
|
6019
6114
|
/**
|
|
6020
|
-
* How spawned teammates execute (tmux, in-process, auto)
|
|
6115
|
+
* How spawned teammates execute (tmux, iterm2, in-process, auto)
|
|
6021
6116
|
*/
|
|
6022
|
-
teammateMode?: 'auto' | 'tmux' | 'in-process';
|
|
6117
|
+
teammateMode?: 'auto' | 'tmux' | 'iterm2' | 'in-process';
|
|
6023
6118
|
/**
|
|
6024
6119
|
* Start Remote Control bridge automatically each session
|
|
6025
6120
|
*/
|
|
@@ -6330,7 +6425,7 @@ export declare type TeammateIdleHookInput = BaseHookInput & {
|
|
|
6330
6425
|
/**
|
|
6331
6426
|
* Why the query loop terminated. Unset when the loop was bypassed (local slash command) or interrupted externally (budget/retry limits checked between yields).
|
|
6332
6427
|
*/
|
|
6333
|
-
export declare type TerminalReason = 'blocking_limit' | 'rapid_refill_breaker' | 'prompt_too_long' | 'image_error' | 'model_error' | 'aborted_streaming' | 'aborted_tools' | 'stop_hook_prevented' | 'hook_stopped' | 'tool_deferred' | 'max_turns' | 'completed';
|
|
6428
|
+
export declare type TerminalReason = 'blocking_limit' | 'rapid_refill_breaker' | 'prompt_too_long' | 'image_error' | 'model_error' | 'aborted_streaming' | 'aborted_tools' | 'stop_hook_prevented' | 'hook_stopped' | 'tool_deferred' | 'max_turns' | 'background_requested' | 'completed';
|
|
6334
6429
|
|
|
6335
6430
|
/**
|
|
6336
6431
|
* Claude decides when and how much to think (Opus 4.6+).
|