@anthropic-ai/claude-agent-sdk 0.2.132 → 0.2.133

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.132",
3
- "commit": "f9c2aef1b03555fabbb4ec60302d6750f2ff689e",
4
- "buildDate": "2026-05-06T18:03:54Z",
2
+ "version": "2.1.133",
3
+ "commit": "cba57ffec4f5d5c279b5f66ea9d7a2544fa410ec",
4
+ "buildDate": "2026-05-07T18:34:30Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude",
8
- "checksum": "2ce6b9007f38f5caf0d116ae35d59f1a6d40e902ae7f9f19aca6ec483697b764",
9
- "size": 217993856
8
+ "checksum": "d38f34444911c86c73f32beb82821008b26be889fa0d0caf7085580cf5737e14",
9
+ "size": 204170768
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "1953f50853eda4c374dfd558f1cf62a13a99c814aae73b42a07d3d9a49fe727b",
14
- "size": 219558096
13
+ "checksum": "b16758680c3bb1e0f8a867e31f9df84e8df2473b0693e811f0b29b465d2e64c3",
14
+ "size": 206672560
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "27266669eda5ae6115837e06230973f565f99b0f25c09ad86aeed404c3f7f947",
19
- "size": 250022464
18
+ "checksum": "dcc7275f9198317e073c329abe174827604a801e9bfb577a00d86efcf4f8167c",
19
+ "size": 229619336
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "623086f65cfd9c3aff0c8a5125087f8aea3100aa92bf3f0533b2bea5e5d69e8d",
24
- "size": 249817728
23
+ "checksum": "d0ddf0aee6e4426a705719e5d4716e3ce3cb38f9a5fe06eb6d5ffcef6c98832a",
24
+ "size": 229701328
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "66e4db284e68e8d3c522959dc86a09a73ec305322aeae725f49ecc94d777e410",
29
- "size": 242747776
28
+ "checksum": "fd8370f93bb41b4018b7ec26f421368c25630e42129882e9c6ae6b719d595330",
29
+ "size": 222474072
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "18c00ed381d3714c6abcc25f52b81f0dfb33ac62b06bb32f91a88147ccbd7036",
34
- "size": 244083072
33
+ "checksum": "9dedf83f3e367bcd306e80a47c06f70234e02e38846096f39d84a0131d7a5320",
34
+ "size": 224095280
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "9e24fc289828968ce3411fafaee42d4484d3e34b63e873358ede4395aceb1b33",
39
- "size": 255705248
38
+ "checksum": "ba4c41963ed7d6567dfec0e7b252cdbc02f17a4f7c0a9e69ca2d7ccb9e94016e",
39
+ "size": 225659552
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "c05c66f8064c1cab16c99a973e885b60de87b51756b20cc21c4a2ded3102956c",
44
- "size": 251768480
43
+ "checksum": "389d5e7bc9d4bf3f1909c60be63fccc93cc824d7c691638418a5904ce675afbd",
44
+ "size": 221617824
45
45
  }
46
46
  }
47
47
  }
package/manifest.zst.json CHANGED
@@ -1,55 +1,55 @@
1
1
  {
2
- "version": "2.1.132",
3
- "commit": "f9c2aef1b03555fabbb4ec60302d6750f2ff689e",
4
- "buildDate": "2026-05-06T18:11:38Z",
2
+ "version": "2.1.133",
3
+ "commit": "cba57ffec4f5d5c279b5f66ea9d7a2544fa410ec",
4
+ "buildDate": "2026-05-07T18:41:25Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude.zst",
8
- "checksum": "5422eaefb4d76be8018343a09c5078b7c8e1686fab8563150b87f631cbbcfd18",
9
- "size": 45060457,
8
+ "checksum": "9947312c65fdd4c632926099ef4b0baf4796d232bb183c2a24e529055ddf338f",
9
+ "size": 42353282,
10
10
  "bundle": {
11
- "checksum": "663b92a0eb3212b31bac05f9cbd8a9eabd8d15bfdc6c2986cb1a75f58e40f0ee",
12
- "size": 45059097
11
+ "checksum": "acdc148b07ca2d5d58d1ef0f7d9d1263fa9380b8368d00c48abd78a4fa998ad0",
12
+ "size": 42360716
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "27c4874ed7e268b548f07ceb8579a68e16ab8bccd18211a29d03193d8e43ef18",
18
- "size": 46743220,
17
+ "checksum": "907bcb38b96e7a0a141f299467550b9ead5ee8ec21b2e0943eca5ba291188ce0",
18
+ "size": 44266071,
19
19
  "bundle": {
20
- "checksum": "f608b0fefb8e110227c390f2c834d419dc90c69ef7043673cba486c2e962c06d",
21
- "size": 46751975
20
+ "checksum": "038c40341848d7808ae976373887e1f06ec0ef1522d7a21d6082693fdb3da4f2",
21
+ "size": 44263353
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "f4be8ca67b1904fdc8c2c4966f793fbfe21664cc9a573697acc913472e2320b8",
27
- "size": 54588370
26
+ "checksum": "38716ff150d6b551d1dbeb7bd27ca0d06ce3e836e6fce77af6c3ac13c2e18967",
27
+ "size": 50147780
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "356c9f384ac5709e9746b4e41f1ec61fdbe23c7db3537ba344865daa3f015ad0",
32
- "size": 55149283
31
+ "checksum": "2b3f2b28ba5142c87b740bbd3d587ebe1c1e051cace6f8326207bdc1205849fa",
32
+ "size": 50761829
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "9328f6dd18941a540e3dfabe4af9718083e6a6a0638e5829e54302c8c2f965f6",
37
- "size": 53198818
36
+ "checksum": "b8fa2a77e0ab7a07f3cb91418c4e5edf99ef3291b762481aa14916301feba40d",
37
+ "size": 48774646
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "ed78a44d686688c3c30c5202062e55c5646af71b231c43c674dbc4038ed6aa25",
42
- "size": 53843396
41
+ "checksum": "0eb3c6bd29e5ce9eec973682e701de06663ca432b29b339903edeb12b853dea4",
42
+ "size": 49480595
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "05c3dd4c6d4161857c9035586f4a2bb494fef161b4bf1a22bdd1f4b62f3dd8e7",
47
- "size": 56222893
46
+ "checksum": "ebfd46c5664f381e6b9e2cae2b05ab446776ae160314474aec00f9372bd361af",
47
+ "size": 51506130
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "3118e3e150f6e35dab429030473ccd3e33dc58582d244c19e546b14b999d863d",
52
- "size": 54342426
51
+ "checksum": "22bddc1a6f82e2b3be2c2a85540f802b698ebe5c51076bac924966ad2b358ab6",
52
+ "size": 49773273
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.132",
3
+ "version": "0.2.133",
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.132",
59
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.2.132",
60
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.2.132",
61
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.2.132",
62
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.2.132",
63
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.2.132",
64
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.2.132",
65
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.2.132"
58
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.2.133",
59
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.2.133",
60
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.2.133",
61
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.2.133",
62
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.2.133",
63
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.2.133",
64
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.2.133",
65
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.2.133"
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.132"
81
+ "claudeCodeVersion": "2.1.133"
82
82
  }
package/sdk.d.ts CHANGED
@@ -41,7 +41,7 @@ export declare type AgentDefinition = {
41
41
  */
42
42
  description: string;
43
43
  /**
44
- * Array of allowed tool names. If omitted, inherits all tools from parent
44
+ * Array of allowed tool names. If omitted, inherits all tools from parent. Note: passing 'Skill' here is deprecated — use the `skills` field instead.
45
45
  */
46
46
  tools?: string[];
47
47
  /**
@@ -133,6 +133,15 @@ export declare type BaseHookInput = {
133
133
  * Agent type name (e.g., "general-purpose", "code-reviewer"). Present when the hook fires from within a subagent (alongside agent_id), or on the main thread of a session started with --agent (without agent_id).
134
134
  */
135
135
  agent_type?: string;
136
+ /**
137
+ * Reasoning effort applied to the current turn. Same shape as StatusLineCommandInput.effort. Present for hooks that fire within a tool-use context (PreToolUse, PostToolUse, Stop, SubagentStop, etc.) on a model that supports the effort parameter; absent for session-lifecycle hooks and models without effort support.
138
+ */
139
+ effort?: {
140
+ /**
141
+ * Active effort level for the current turn (e.g., "low", "medium", "high", "xhigh", "max"), after any silent downgrade for the selected model. Also exposed to hook commands and Bash as the CLAUDE_EFFORT env var.
142
+ */
143
+ level: string;
144
+ };
136
145
  };
137
146
 
138
147
  export declare type BaseOutputFormat = {
@@ -1185,6 +1194,8 @@ export declare type Options = {
1185
1194
  * List of tool names that are auto-allowed without prompting for permission.
1186
1195
  * These tools will execute automatically without asking the user for approval.
1187
1196
  * To restrict which tools are available, use the `tools` option instead.
1197
+ *
1198
+ * Note: passing `'Skill'` here is deprecated — use the `skills` option instead.
1188
1199
  */
1189
1200
  allowedTools?: string[];
1190
1201
  /**
@@ -1614,19 +1625,21 @@ export declare type Options = {
1614
1625
  */
1615
1626
  settings?: string | Settings;
1616
1627
  /**
1617
- * Policy-tier settings supplied by the spawning parent process. Merged into
1618
- * the managed-settings layer below IT-controlled sources (server / MDM /
1619
- * managed-settings.json) but above HKCU. Honors policy-only keys such as
1620
- * `sandbox.network.allowManagedDomainsOnly`.
1628
+ * Policy-tier settings supplied by the spawning parent process. When an
1629
+ * IT-controlled managed-settings tier (server / MDM / managed-settings.json)
1630
+ * exists on the user's machine, these are **dropped by default** — they only
1631
+ * layer in if that admin opts in via `parentSettingsBehavior: 'merge'` in
1632
+ * their managed settings. Even when opted in, the value is filtered
1633
+ * restrictive-only: permissive arrays (`permissions.allow`,
1634
+ * `additionalDirectories`, `allowedMcpServers`, …) that would widen an
1635
+ * existing admin lock are silently dropped. With no admin tier present,
1636
+ * these apply as the sole policy tier (still filtered restrictive-only —
1637
+ * non-allowlisted keys are dropped regardless).
1621
1638
  *
1622
1639
  * Intended for embedding applications (e.g. desktop apps) that derive
1623
1640
  * lockdown settings from their own enterprise configuration and need to
1624
1641
  * enforce them on the spawned subprocess without writing root-owned files.
1625
1642
  *
1626
- * Unlike `settings`, this option is loaded into the managed (policy) layer
1627
- * rather than the user-controlled flag layer, so user/project settings
1628
- * cannot widen restrictions set here.
1629
- *
1630
1643
  * @example
1631
1644
  * ```typescript
1632
1645
  * managedSettings: {
@@ -2330,6 +2343,8 @@ declare const SandboxSettingsSchema: () => z.ZodObject<{
2330
2343
  command: z.ZodString;
2331
2344
  args: z.ZodOptional<z.ZodArray<z.ZodString>>;
2332
2345
  }, z.core.$strip>>;
2346
+ bwrapPath: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>>>;
2347
+ socatPath: z.ZodCatch<z.ZodOptional<z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>>>;
2333
2348
  }, z.core.$loose>;
2334
2349
 
2335
2350
  /**
@@ -3181,6 +3196,7 @@ export declare type SDKResultSuccess = {
3181
3196
  * V2 API - UNSTABLE
3182
3197
  * Session interface for multi-turn conversations.
3183
3198
  * Has methods, so not serializable.
3199
+ * @deprecated Use `query()` instead. The V2 session API will be removed in a future release.
3184
3200
  * @alpha
3185
3201
  */
3186
3202
  export declare interface SDKSession {
@@ -3249,6 +3265,7 @@ export declare type SDKSessionInfo = {
3249
3265
  /**
3250
3266
  * V2 API - UNSTABLE
3251
3267
  * Options for creating a session.
3268
+ * @deprecated Use `query()` instead. The V2 session API will be removed in a future release.
3252
3269
  * @alpha
3253
3270
  */
3254
3271
  export declare type SDKSessionOptions = {
@@ -4138,6 +4155,10 @@ export declare interface Settings {
4138
4155
  * Directories to include when creating worktrees, via git sparse-checkout (cone mode). Dramatically faster in large monorepos — only the listed paths are written to disk.
4139
4156
  */
4140
4157
  sparsePaths?: string[];
4158
+ /**
4159
+ * Which ref new worktrees branch from. 'fresh' (default) branches from origin/<default-branch> for a clean tree. 'head' branches from your current local HEAD so unpushed commits and feature-branch state are present. Applies to --worktree, EnterWorktree, and agent isolation.
4160
+ */
4161
+ baseRef?: 'fresh' | 'head';
4141
4162
  };
4142
4163
  /**
4143
4164
  * Disable all hooks and statusLine execution
@@ -4211,7 +4232,7 @@ export declare interface Settings {
4211
4232
  command: string;
4212
4233
  };
4213
4234
  /**
4214
- * Enabled plugins using plugin-id\@marketplace-id format. Example: { "formatter\@anthropic-tools": true }. Also supports extended format with version constraints.
4235
+ * Enabled plugins using plugin-id\@marketplace-id format. Example: { "formatter\@anthropic-tools": true }. Also supports extended format with version constraints. Settings precedence is user < project < local < flag < policy, so to disable a plugin that project settings enable, set it to false in .claude/settings.local.json — setting false in ~/.claude/settings.json is overridden by the project.
4215
4236
  */
4216
4237
  enabledPlugins?: {
4217
4238
  [k: string]: string[] | boolean | {
@@ -4777,6 +4798,10 @@ export declare interface Settings {
4777
4798
  * Force a specific login method: "claudeai" for Claude Pro/Max, "console" for Console billing
4778
4799
  */
4779
4800
  forceLoginMethod?: 'claudeai' | 'console';
4801
+ /**
4802
+ * Controls whether the SDK parent tier (Options.managedSettings / --managed-settings) layers under this admin tier. "first-wins" (default): parent is dropped — admin tiers are the only policy source. "merge": parent's restrictive-only-filtered settings union under the admin winner. Has no effect when no admin tier exists (parent applies as the sole policy tier, still filtered restrictive-only).
4803
+ */
4804
+ parentSettingsBehavior?: 'first-wins' | 'merge';
4780
4805
  /**
4781
4806
  * Organization UUID to require for OAuth login. Accepts a single UUID string or an array of UUIDs (any one is permitted). When set in managed settings, login fails if the authenticated account does not belong to a listed organization.
4782
4807
  */
@@ -4880,6 +4905,14 @@ export declare interface Settings {
4880
4905
  command: string;
4881
4906
  args?: string[];
4882
4907
  };
4908
+ /**
4909
+ * Linux/WSL only: Absolute path to the bwrap (bubblewrap) binary. Overrides auto-detection via PATH. Only honored from admin-controlled managed settings.
4910
+ */
4911
+ bwrapPath?: string;
4912
+ /**
4913
+ * Linux/WSL only: Absolute path to the socat binary used for the sandbox network proxy. Overrides auto-detection via PATH. Only honored from admin-controlled managed settings.
4914
+ */
4915
+ socatPath?: string;
4883
4916
  [k: string]: unknown;
4884
4917
  };
4885
4918
  /**
@@ -5474,6 +5507,7 @@ export declare interface Transport {
5474
5507
  /**
5475
5508
  * V2 API - UNSTABLE
5476
5509
  * Create a persistent session for multi-turn conversations.
5510
+ * @deprecated Use `query()` instead. The V2 session API will be removed in a future release.
5477
5511
  * @alpha
5478
5512
  */
5479
5513
  export declare function unstable_v2_createSession(_options: SDKSessionOptions): SDKSession;
@@ -5481,6 +5515,7 @@ export declare function unstable_v2_createSession(_options: SDKSessionOptions):
5481
5515
  /**
5482
5516
  * V2 API - UNSTABLE
5483
5517
  * One-shot convenience function for single prompts.
5518
+ * @deprecated Use `query()` instead. The V2 session API will be removed in a future release.
5484
5519
  * @alpha
5485
5520
  *
5486
5521
  * @example
@@ -5495,6 +5530,7 @@ export declare function unstable_v2_prompt(_message: string, _options: SDKSessio
5495
5530
  /**
5496
5531
  * V2 API - UNSTABLE
5497
5532
  * Resume an existing session by ID.
5533
+ * @deprecated Use `query()` instead. The V2 session API will be removed in a future release.
5498
5534
  * @alpha
5499
5535
  */
5500
5536
  export declare function unstable_v2_resumeSession(_sessionId: string, _options: SDKSessionOptions): SDKSession;