@anthropic-ai/claude-agent-sdk 0.3.179 → 0.3.182

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/manifest.json CHANGED
@@ -1,47 +1,47 @@
1
1
  {
2
- "version": "2.1.179",
3
- "commit": "8c865e06ae1320b1c9b005bdeb6f6589ada9d0b3",
4
- "buildDate": "2026-06-16T02:06:40Z",
2
+ "version": "2.1.182",
3
+ "commit": "ed24c5b4db5072b486eaedf8cb0577afc9d2cee5",
4
+ "buildDate": "2026-06-18T21:18:18Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude",
8
- "checksum": "af2a2d0cb99b0e8b094bc5dbe114ed2d5b2d27ba440987ef6f2f209da9954253",
9
- "size": 226082208
8
+ "checksum": "e3b2ba65c9be83e7d0d82074b0e1604d2d2acbd2e1fe70134434d54217198532",
9
+ "size": 216332384
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "a0ad60761294bd208eda6cb0fd8e896c64397c8d317546a696c5e627782ec8cb",
14
- "size": 228600496
13
+ "checksum": "b32e9cdb148a1f7d11c4dca301bcab4ce464da889517b67b8b032ea7e3274296",
14
+ "size": 223871104
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "25d2eba2351df153f872a8e19289f5042a26b430cd446564bd92a0dec5d681cd",
19
- "size": 251311752
18
+ "checksum": "28ca8384bb40f92f218f010d676c86ec9cfd6f06b0736831ecc87d68042fc342",
19
+ "size": 231323360
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "6d8422de5ac8ac2077b20e2a6307083f85609aaf45f8c783ec2f7d71e8781e70",
24
- "size": 251418320
23
+ "checksum": "3ebca0c3c6d52634e43a423a2c8f18b26e51ad1efbbdfe3c04bdf8a3a41a3b42",
24
+ "size": 233965352
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "8273ab58b79a6324fa8d56361cd394a4ffa5d30f28be3abecaafb2596d7ae2ee",
29
- "size": 244166488
28
+ "checksum": "724e22a33d2191e6ed48ef4490e90087116bb8362a1318b3c83cb827ba38a57e",
29
+ "size": 224702664
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "891b13f5aa5a798c209b13ce9c556c9a9162b6ad574eea97b223c80e4ee1d9dd",
34
- "size": 245828656
33
+ "checksum": "691e2a47a8d6a59130120e87d90d587a3a024c659f36d68bc11efc947195d147",
34
+ "size": 228949392
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "1025f57fb260a3adac9517eb643c78c67e756c1ef5514d9ad8c57d5d784f8be3",
39
- "size": 246756512
38
+ "checksum": "1a5b97f817894954654f4a86e322175ca0ebdc2036f44ee92bdc9be9a8d769ab",
39
+ "size": 225474720
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "0320d4b49e3d434fcf94cf1a73e4d7e95df831a22c2c94d2a0cd471a59a27eac",
44
- "size": 242721440
43
+ "checksum": "2ca67c518f81916a3ff35bf7d09fadae8cc4396fc96b5ba0f9d9dd0253f52a10",
44
+ "size": 220137632
45
45
  }
46
46
  }
47
47
  }
package/manifest.zst.json CHANGED
@@ -1,55 +1,55 @@
1
1
  {
2
- "version": "2.1.179",
3
- "commit": "8c865e06ae1320b1c9b005bdeb6f6589ada9d0b3",
4
- "buildDate": "2026-06-16T02:08:27Z",
2
+ "version": "2.1.182",
3
+ "commit": "ed24c5b4db5072b486eaedf8cb0577afc9d2cee5",
4
+ "buildDate": "2026-06-18T21:19:57Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude.zst",
8
- "checksum": "0b972344d45eaaca03ee97ad4e9963980eca91e31310ee428a3931669a823464",
9
- "size": 46352958,
8
+ "checksum": "57cf42a1536d2968025b21b10c5335369aab73792d13d2c50c3148f99b4d3f1c",
9
+ "size": 45483700,
10
10
  "bundle": {
11
- "checksum": "9d5b4b66ec066edca81d0c7eac1f65b7dbc654bed330e3f52373972a6b7c4271",
12
- "size": 46370792
11
+ "checksum": "6382576750a73caf3d44038bfdb7a1e871336d4b672b0cc1020e1c0f9afd4ffc",
12
+ "size": 45485631
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "474846474046bd6bd664f80346e0d18a290c55ff28f05150c90bc638f3dbbe80",
18
- "size": 48290154,
17
+ "checksum": "68efdc6841b9af3f87dc97dd9a0cdf11f71326d795c20b40bc2e28870c16d0e5",
18
+ "size": 48377158,
19
19
  "bundle": {
20
- "checksum": "800f84e0c090281eac66235b4e3cd1e81ff458347a09709bc3e1ff9b4471791e",
21
- "size": 48284086
20
+ "checksum": "dd24f18226d836efe8037858be9e02b941591bf4554641df66a0ac17476cb166",
21
+ "size": 48377203
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "1479bf5cdd7a08922d1e71083dcccb7b0a0e16a98c1202a33cbc8ee6b3959e8f",
27
- "size": 53997819
26
+ "checksum": "2c6baed016a49da027a6bf8a8fa2c02dd273b1cf253453957b54a9ab9e0c4af9",
27
+ "size": 53286436
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "bdb140e87aa5d14a818eb4a50c67792aff6d0910a176473264754486cd358f2a",
32
- "size": 54628944
31
+ "checksum": "2060ee5ea2b553e4fc56cd701ee172429981782494eca4b1b4ffc8d6f64e2a9e",
32
+ "size": 54514220
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "4f0b144cb06c7acaf186358568e307f8f7de76f0aaacedf7e957917f7bd1c47b",
37
- "size": 52621265
36
+ "checksum": "8f02659ba2e80899f07e199b201cc005fe7e4d97fc664f1b33ad673025eafebb",
37
+ "size": 52003584
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "a733d2a5681f96d5f2c5e491f2deb5056737af1aa5190fff96eb51c2fb67c0ca",
42
- "size": 53336408
41
+ "checksum": "192aaadb8c72b04357599483f921be0df324efb9a90fd37be053e29b8c4c9d08",
42
+ "size": 53321848
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "59f98538ec990decdb4ed62c40ff96b4a578797ac86eface25a0a28dc39f01f2",
47
- "size": 55360867
46
+ "checksum": "fd1ad607a21af5da3fae1be9fea53e03ada6019309d6820e2f7adf830ecc1db9",
47
+ "size": 54745971
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "d5faa2e6d3904bc0afcd8e5f07cb04be68d2b48f0c74fb3dc0817fc0fe1c7b93",
52
- "size": 53615666
51
+ "checksum": "e66084f13b4320ba7c920f020b2d1139e0de366647aad01a27324749887f05b0",
52
+ "size": 52777466
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.179",
3
+ "version": "0.3.182",
4
4
  "main": "sdk.mjs",
5
5
  "types": "sdk.d.ts",
6
6
  "exports": {
@@ -20,10 +20,6 @@
20
20
  "types": "./bridge.d.ts",
21
21
  "default": "./bridge.mjs"
22
22
  },
23
- "./assistant": {
24
- "types": "./assistant.d.ts",
25
- "default": "./assistant.mjs"
26
- },
27
23
  "./sdk-tools": {
28
24
  "types": "./sdk-tools.d.ts"
29
25
  },
@@ -61,14 +57,14 @@
61
57
  "zod": "^4.0.0"
62
58
  },
63
59
  "optionalDependencies": {
64
- "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.179",
65
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.179",
66
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.179",
67
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.179",
68
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.179",
69
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.179",
70
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.179",
71
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.179"
60
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.182",
61
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.182",
62
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.182",
63
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.182",
64
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.182",
65
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.182",
66
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.182",
67
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.182"
72
68
  },
73
69
  "files": [
74
70
  "sdk.mjs",
@@ -77,8 +73,6 @@
77
73
  "agentSdkTypes.d.ts",
78
74
  "bridge.mjs",
79
75
  "bridge.d.ts",
80
- "assistant.mjs",
81
- "assistant.d.ts",
82
76
  "browser-sdk.js",
83
77
  "browser-sdk.d.ts",
84
78
  "extractFromBunfs.js",
@@ -86,5 +80,5 @@
86
80
  "manifest.json",
87
81
  "manifest.zst.json"
88
82
  ],
89
- "claudeCodeVersion": "2.1.179"
83
+ "claudeCodeVersion": "2.1.182"
90
84
  }
package/sdk-tools.d.ts CHANGED
@@ -2572,10 +2572,6 @@ export interface BashOutput {
2572
2572
  * True if the user manually backgrounded the command with Ctrl+B
2573
2573
  */
2574
2574
  backgroundedByUser?: boolean;
2575
- /**
2576
- * True if assistant-mode auto-backgrounded a long-running blocking command
2577
- */
2578
- assistantAutoBackgrounded?: boolean;
2579
2575
  /**
2580
2576
  * Flag to indicate if sandbox mode was overridden
2581
2577
  */
@@ -2865,6 +2861,23 @@ export interface ReadMcpResourceOutput {
2865
2861
  * Human-readable error when the server could not read the resource
2866
2862
  */
2867
2863
  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
+ }[];
2868
2881
  }
2869
2882
  export interface TodoWriteOutput {
2870
2883
  /**
package/sdk.d.ts CHANGED
@@ -240,56 +240,6 @@ export declare type ConfigChangeHookInput = BaseHookInput & {
240
240
  */
241
241
  export declare type ConfigScope = 'local' | 'user' | 'project';
242
242
 
243
- /**
244
- * Structured failure from connectRemoteControl.
245
- * @alpha
246
- */
247
- export declare type ConnectRemoteControlError = {
248
- kind: 'conflict' | 'auth' | 'network' | 'unknown';
249
- detail: string;
250
- };
251
-
252
- /**
253
- * Options for connectRemoteControl.
254
- * @alpha
255
- */
256
- export declare type ConnectRemoteControlOptions = {
257
- dir: string;
258
- /** Override directory sent to backend for env registration. */
259
- registrationDir?: string;
260
- name?: string;
261
- workerType?: string;
262
- branch?: string;
263
- gitRepoUrl?: string | null;
264
- getAccessToken: () => string | undefined;
265
- baseUrl: string;
266
- orgUUID: string;
267
- model: string;
268
- /** Reuse env+session across restarts (reads bridge-pointer.json). */
269
- perpetual?: boolean;
270
- /** SSE high-water mark so reconnect sends from_sequence_num. */
271
- initialSSESequenceNum?: number;
272
- /** Called on 401; return true after refreshing token to retry. */
273
- onAuth401?: (staleAccessToken: string) => Promise<boolean>;
274
- /** Called on 409 conflict; return 'takeover' to deregister + retry. */
275
- onConflict?: (detail: {
276
- machineName: string;
277
- message: string;
278
- }) => Promise<'takeover' | 'abort'>;
279
- };
280
-
281
- /**
282
- * Discriminated result from connectRemoteControl.
283
- * @alpha
284
- */
285
- export declare type ConnectRemoteControlResult = {
286
- ok: true;
287
- handle: RemoteControlHandle;
288
- } | {
289
- ok: false;
290
- error: ConnectRemoteControlError;
291
- };
292
-
293
243
  declare type ControlErrorResponse = {
294
244
  subtype: 'error';
295
245
  request_id: string;
@@ -867,15 +817,6 @@ export declare type ImportSessionToStoreOptions = {
867
817
  batchSize?: number;
868
818
  };
869
819
 
870
- /**
871
- * A user message typed on claude.ai, extracted from the bridge WS.
872
- * @alpha
873
- */
874
- export declare type InboundPrompt = {
875
- content: string | unknown[];
876
- uuid?: string;
877
- };
878
-
879
820
  export declare type InferShape<T extends AnyZodRawShape> = {
880
821
  [K in keyof T]: T[K] extends {
881
822
  _output: infer O;
@@ -1744,7 +1685,6 @@ export declare type Options = {
1744
1685
 
1745
1686
 
1746
1687
 
1747
-
1748
1688
  /**
1749
1689
  * Enable prompt suggestions. When true, the agent emits a `prompt_suggestion`
1750
1690
  * message after each turn with a predicted next user prompt.
@@ -2679,6 +2619,7 @@ declare const SandboxSettingsSchema: () => z.ZodObject<{
2679
2619
  ignoreViolations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
2680
2620
  enableWeakerNestedSandbox: z.ZodOptional<z.ZodBoolean>;
2681
2621
  enableWeakerNetworkIsolation: z.ZodOptional<z.ZodBoolean>;
2622
+ allowAppleEvents: z.ZodOptional<z.ZodBoolean>;
2682
2623
  excludedCommands: z.ZodOptional<z.ZodArray<z.ZodString>>;
2683
2624
  ripgrep: z.ZodOptional<z.ZodObject<{
2684
2625
  command: z.ZodString;
@@ -3433,7 +3374,7 @@ export declare type SDKControlRequest = {
3433
3374
  request: SDKControlRequestInner;
3434
3375
  };
3435
3376
 
3436
- 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;
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;
3437
3378
 
3438
3379
  /**
3439
3380
  * 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.
@@ -3745,11 +3686,11 @@ export declare type SDKModelRefusalFallbackMessage = {
3745
3686
  fallback_model: string;
3746
3687
  request_id: string | null;
3747
3688
  /**
3748
- * stop_details.category from the refused API response ("cyber", "bio", ). Open string — new categories ship on the wire ahead of schema updates. null when the response carried no category (normal, not an error). Absent when emitted by an older CLI.
3689
+ * The refusal category ('cyber', 'bio', …): stop_details.category from the refused API response (client lane), or the fallback block's server-gated trigger.category (server lane). Open string — new categories ship on the wire ahead of schema updates. null when neither source carried a category (normal, not an error). Absent when emitted by an older CLI.
3749
3690
  */
3750
3691
  api_refusal_category?: string | null;
3751
3692
  /**
3752
- * stop_details.explanation from the refused API response. Unstable human prose — display only, never parse. null/absent under the same rules as api_refusal_category.
3693
+ * stop_details.explanation from the refused API response (client lane only — the server-lane trigger carries no explanation). Unstable human prose — display only, never parse. null/absent when the response carried none, and always null on server-lane banners.
3753
3694
  */
3754
3695
  api_refusal_explanation?: string | null;
3755
3696
  /**
@@ -3887,6 +3828,10 @@ export declare type SDKRateLimitInfo = {
3887
3828
  isUsingOverage?: boolean;
3888
3829
  overageInUse?: boolean;
3889
3830
  surpassedThreshold?: number;
3831
+
3832
+ errorCode?: 'credits_required';
3833
+ canUserPurchaseCredits?: boolean;
3834
+ hasChargeableSavedPaymentMethod?: boolean;
3890
3835
  };
3891
3836
 
3892
3837
  export declare type SDKResultError = {
@@ -3921,6 +3866,7 @@ export declare type SDKResultSuccess = {
3921
3866
  time_to_request_ms?: number;
3922
3867
  time_to_request_from_spawn_ms?: number;
3923
3868
  warm_spare_claimed?: boolean;
3869
+ time_origin_ms?: number;
3924
3870
  is_error: boolean;
3925
3871
  api_error_status?: number | null;
3926
3872
  num_turns: number;
@@ -4602,6 +4548,10 @@ export declare interface Settings {
4602
4548
  * Attribution text for pull request descriptions. Empty string hides attribution.
4603
4549
  */
4604
4550
  pr?: string;
4551
+ /**
4552
+ * Whether to append the claude.ai session link to commits and PRs created from web or Remote Control sessions (default: true). Set to false to omit the Claude-Session trailer and PR-body link.
4553
+ */
4554
+ sessionUrl?: boolean;
4605
4555
  };
4606
4556
  /**
4607
4557
  * Deprecated: Use attribution instead. Whether to include Claude's co-authored by attribution in commits and PRs (defaults to true)
@@ -4675,6 +4625,10 @@ export declare interface Settings {
4675
4625
  * List of rejected MCP servers from .mcp.json
4676
4626
  */
4677
4627
  disabledMcpjsonServers?: string[];
4628
+ /**
4629
+ * When true in any settings source, claude.ai MCP cloud connectors are not auto-fetched or connected. Only gates auto-fetched connectors — a claudeai-proxy server passed explicitly (e.g. via --mcp-config or the SDK mcpServers option) still follows the normal MCP config trust flow. Any-source-true wins: a project can opt out, but a project-level false cannot override a user-level true.
4630
+ */
4631
+ disableClaudeAiConnectors?: boolean;
4678
4632
  /**
4679
4633
  * Per-skill listing overrides keyed by skill name. "name-only" lists the skill without its description; "user-invocable-only" hides it from the model but keeps /name; "off" hides it from both. Absent = on.
4680
4634
  */
@@ -5761,6 +5715,10 @@ export declare interface Settings {
5761
5715
  * macOS only: Allow access to com.apple.trustd.agent in the sandbox. Needed for Go-based CLI tools (gh, gcloud, terraform, etc.) to verify TLS certificates when using httpProxyPort with a MITM proxy and custom CA. **Reduces security** — opens a potential data exfiltration vector through the trustd service. Default: false
5762
5716
  */
5763
5717
  enableWeakerNetworkIsolation?: boolean;
5718
+ /**
5719
+ * macOS only: Allow sandboxed commands to send Apple Events (and look up the appleeventsd Mach service). Needed for `open`, `osascript`, and browser-based auth flows that open URLs. **Removes code-execution isolation** — sandboxed commands can launch other applications unsandboxed with no user prompt, and can script running apps (e.g. Terminal) subject to the user's per-app TCC automation consent. Only honored from user, managed/policy, or CLI (--settings) settings — project settings (.claude/settings.json and .claude/settings.local.json) are ignored. Default: false
5720
+ */
5721
+ allowAppleEvents?: boolean;
5764
5722
  excludedCommands?: string[];
5765
5723
  /**
5766
5724
  * Custom ripgrep configuration for bundled ripgrep support
@@ -6457,6 +6415,14 @@ export declare interface Transport {
6457
6415
  * End the input stream
6458
6416
  */
6459
6417
  endInput(): void;
6418
+ /**
6419
+ * Await the underlying subprocess's exit. Only meaningful for
6420
+ * subprocess-backed transports (ProcessTransport); WebSocket / SSE /
6421
+ * in-process transports leave this undefined. Query.performCleanup()
6422
+ * awaits it (bounded) so .return() / asyncDispose don't resolve while
6423
+ * the child is still draining the stdin EOF that close() just sent.
6424
+ */
6425
+ waitForExit?(): Promise<void>;
6460
6426
  /**
6461
6427
  * Optional Disposable support. All built-in transports implement this
6462
6428
  * (delegating to close()), so `using transport = new ProcessTransport(...)`