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

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.181",
3
+ "commit": "2b2bfc5e247206570d67de054241eda0855ea395",
4
+ "buildDate": "2026-06-17T17:18:34Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude",
8
- "checksum": "af2a2d0cb99b0e8b094bc5dbe114ed2d5b2d27ba440987ef6f2f209da9954253",
9
- "size": 226082208
8
+ "checksum": "c4d833b04606cef9b6eab3ad255ed2e1448f87dea2bc00ff5acf77b57df6e94d",
9
+ "size": 215193056
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "a0ad60761294bd208eda6cb0fd8e896c64397c8d317546a696c5e627782ec8cb",
14
- "size": 228600496
13
+ "checksum": "353798bcdc49a52a666645370e1c48a84fe837d93bf9d954c19338dca7260ddd",
14
+ "size": 222731776
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "25d2eba2351df153f872a8e19289f5042a26b430cd446564bd92a0dec5d681cd",
19
- "size": 251311752
18
+ "checksum": "1393f993533e08d5c96245504750a7fcfe37490a5f44eec35b0beac3d709dab9",
19
+ "size": 230143712
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "6d8422de5ac8ac2077b20e2a6307083f85609aaf45f8c783ec2f7d71e8781e70",
24
- "size": 251418320
23
+ "checksum": "35ffd4e9d9a86395d0ba4e05f8b23bf098bfeab95e97deacd6537909d1324e9c",
24
+ "size": 232830760
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "8273ab58b79a6324fa8d56361cd394a4ffa5d30f28be3abecaafb2596d7ae2ee",
29
- "size": 244166488
28
+ "checksum": "ac8f1955a235cf7fc5d77abdfd8eeb5a0fc6d94b4c573f433bf5b715e3f0013e",
29
+ "size": 223523016
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "891b13f5aa5a798c209b13ce9c556c9a9162b6ad574eea97b223c80e4ee1d9dd",
34
- "size": 245828656
33
+ "checksum": "46fbaf3f004a8d187939fbf680f3e37770566a3761c09e5c2bd6094f22056d14",
34
+ "size": 227814800
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "1025f57fb260a3adac9517eb643c78c67e756c1ef5514d9ad8c57d5d784f8be3",
39
- "size": 246756512
38
+ "checksum": "ee197c25b55c6c85de573015e5e8b81509ae787101da5149c769b82ad8ace7c6",
39
+ "size": 224356512
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "0320d4b49e3d434fcf94cf1a73e4d7e95df831a22c2c94d2a0cd471a59a27eac",
44
- "size": 242721440
43
+ "checksum": "877388d05cbcc0ad19518a25076975dba9a2bb67dd56900b7567021571222f96",
44
+ "size": 219019424
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.181",
3
+ "commit": "2b2bfc5e247206570d67de054241eda0855ea395",
4
+ "buildDate": "2026-06-17T17:20:15Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude.zst",
8
- "checksum": "0b972344d45eaaca03ee97ad4e9963980eca91e31310ee428a3931669a823464",
9
- "size": 46352958,
8
+ "checksum": "a830533fc987f328aadf7fe15d0ba02b16d8e16d5ede2c6210b6b013f827eebd",
9
+ "size": 45298472,
10
10
  "bundle": {
11
- "checksum": "9d5b4b66ec066edca81d0c7eac1f65b7dbc654bed330e3f52373972a6b7c4271",
12
- "size": 46370792
11
+ "checksum": "beaf49b780ff90c5a78d664ad55a7d611fc95cbb037e6f53fb73a1743bdce92b",
12
+ "size": 45300527
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "474846474046bd6bd664f80346e0d18a290c55ff28f05150c90bc638f3dbbe80",
18
- "size": 48290154,
17
+ "checksum": "630ad3ec03112e81abddea132ea2bc9c09b16d454229af15e0e019679eb3ae93",
18
+ "size": 48210950,
19
19
  "bundle": {
20
- "checksum": "800f84e0c090281eac66235b4e3cd1e81ff458347a09709bc3e1ff9b4471791e",
21
- "size": 48284086
20
+ "checksum": "d5018fde58dc9f08f61ca7816c05771eedcfcd7a67f2976a85b5c8381772c4db",
21
+ "size": 48211024
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "1479bf5cdd7a08922d1e71083dcccb7b0a0e16a98c1202a33cbc8ee6b3959e8f",
27
- "size": 53997819
26
+ "checksum": "8aa76af21e9043630c6dbba661384c19986fa7a8957381efb865275d859cfff7",
27
+ "size": 53092926
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "bdb140e87aa5d14a818eb4a50c67792aff6d0910a176473264754486cd358f2a",
32
- "size": 54628944
31
+ "checksum": "e371b41ac163b1e15d0231c04cd682a642d841440c1e1254e1429d1f57910ed0",
32
+ "size": 54321750
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "4f0b144cb06c7acaf186358568e307f8f7de76f0aaacedf7e957917f7bd1c47b",
37
- "size": 52621265
36
+ "checksum": "edf9f800634163c91f70b2024bb315fa3d347731b19f89f7b5fc9b28178ff35f",
37
+ "size": 51808428
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "a733d2a5681f96d5f2c5e491f2deb5056737af1aa5190fff96eb51c2fb67c0ca",
42
- "size": 53336408
41
+ "checksum": "17bd5fc6524ec04749fb2f8baa0bd77f384e29b908bcba079c4d203a57f4bf40",
42
+ "size": 53115330
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "59f98538ec990decdb4ed62c40ff96b4a578797ac86eface25a0a28dc39f01f2",
47
- "size": 55360867
46
+ "checksum": "caf35bf9db1dfe84537c705a8a5e303b5f4cf7124f330717cd37b17b13598faa",
47
+ "size": 54580011
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "d5faa2e6d3904bc0afcd8e5f07cb04be68d2b48f0c74fb3dc0817fc0fe1c7b93",
52
- "size": 53615666
51
+ "checksum": "29f73d3c8de583e509146ab78f955798d3a8d55ca4050a37e209236eb052c435",
52
+ "size": 52616734
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.181",
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.181",
61
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.181",
62
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.181",
63
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.181",
64
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.181",
65
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.181",
66
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.181",
67
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.181"
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.181"
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
  */
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;
@@ -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;
@@ -5761,6 +5707,10 @@ export declare interface Settings {
5761
5707
  * 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
5708
  */
5763
5709
  enableWeakerNetworkIsolation?: boolean;
5710
+ /**
5711
+ * 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
5712
+ */
5713
+ allowAppleEvents?: boolean;
5764
5714
  excludedCommands?: string[];
5765
5715
  /**
5766
5716
  * Custom ripgrep configuration for bundled ripgrep support