@anthropic-ai/claude-agent-sdk 0.2.131 → 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.131",
3
- "commit": "c122cd1bd5247f2a4bde8bcaec712fb1dff247e8",
4
- "buildDate": "2026-05-06T06:18:01Z",
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": "cc6066b0db7bb423c75316366542f771a41923999a76a5771afad87dd65dceae",
9
- "size": 217349888
8
+ "checksum": "d38f34444911c86c73f32beb82821008b26be889fa0d0caf7085580cf5737e14",
9
+ "size": 204170768
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "a1bd2c782c3f961987d7d6456f75b3fa538cc425f1573908850afedcb038ca5f",
14
- "size": 218914128
13
+ "checksum": "b16758680c3bb1e0f8a867e31f9df84e8df2473b0693e811f0b29b465d2e64c3",
14
+ "size": 206672560
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "0919cdf512ca673b38230882b458801b78e9248eb472383631cfc12d8d0d55cf",
19
- "size": 249367104
18
+ "checksum": "dcc7275f9198317e073c329abe174827604a801e9bfb577a00d86efcf4f8167c",
19
+ "size": 229619336
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "9af15b9302ffde3fa83e3ea4a41cdd00158301cd8badc755567a8e9149f1c36c",
24
- "size": 249178752
23
+ "checksum": "d0ddf0aee6e4426a705719e5d4716e3ce3cb38f9a5fe06eb6d5ffcef6c98832a",
24
+ "size": 229701328
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "78ffce2cad108ef1ca3301fc34307277b8a98e4095344b091b84be1678bd6ebc",
29
- "size": 242092416
28
+ "checksum": "fd8370f93bb41b4018b7ec26f421368c25630e42129882e9c6ae6b719d595330",
29
+ "size": 222474072
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "f712c043f6df7552b95d30d256ebc4feb9c3a642f04b0e823719b524e3128939",
34
- "size": 243444096
33
+ "checksum": "9dedf83f3e367bcd306e80a47c06f70234e02e38846096f39d84a0131d7a5320",
34
+ "size": 224095280
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "49204d250c5fe1797f74bc68f305016e72b356b06fe7ff1f8a651f7ad6a0df8b",
39
- "size": 255085216
38
+ "checksum": "ba4c41963ed7d6567dfec0e7b252cdbc02f17a4f7c0a9e69ca2d7ccb9e94016e",
39
+ "size": 225659552
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "d1b1336200468b5e29a0e4cc8c1dfc5c79d01f11118d8594756243bb6102dc40",
44
- "size": 251148960
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.131",
3
- "commit": "c122cd1bd5247f2a4bde8bcaec712fb1dff247e8",
4
- "buildDate": "2026-05-06T06:24:18Z",
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": "b548092de9bca513348b766bcc3a975a4da7f12f91cd79bd03e9d763b7980a32",
9
- "size": 44927139,
8
+ "checksum": "9947312c65fdd4c632926099ef4b0baf4796d232bb183c2a24e529055ddf338f",
9
+ "size": 42353282,
10
10
  "bundle": {
11
- "checksum": "aa7e6b88856bd43a4aad9b1b716cb928ee1fac5293002283d6276b65ae193b0e",
12
- "size": 44930068
11
+ "checksum": "acdc148b07ca2d5d58d1ef0f7d9d1263fa9380b8368d00c48abd78a4fa998ad0",
12
+ "size": 42360716
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "60e9b87bf74b7283ef3c15e890bc0a52ee8b021c16d489989339fe9fed26d398",
18
- "size": 46624953,
17
+ "checksum": "907bcb38b96e7a0a141f299467550b9ead5ee8ec21b2e0943eca5ba291188ce0",
18
+ "size": 44266071,
19
19
  "bundle": {
20
- "checksum": "8110110c6c7c7119ff714940fc3521eea11e485e3dfdb1209c7b301155d72ca4",
21
- "size": 46628908
20
+ "checksum": "038c40341848d7808ae976373887e1f06ec0ef1522d7a21d6082693fdb3da4f2",
21
+ "size": 44263353
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "d1a9749375ae4b0f48e8736e95782ac8417a772e7031faf65aa19096a7a0f74f",
27
- "size": 54468169
26
+ "checksum": "38716ff150d6b551d1dbeb7bd27ca0d06ce3e836e6fce77af6c3ac13c2e18967",
27
+ "size": 50147780
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "c97f80e7b8daa2d865d58b8c48a6a60c605d97f1abce5bbea88d738db5c4e40e",
32
- "size": 55029869
31
+ "checksum": "2b3f2b28ba5142c87b740bbd3d587ebe1c1e051cace6f8326207bdc1205849fa",
32
+ "size": 50761829
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "74a584b30e50d6b83ed18254fe0a5cf28143c089b28d149655b655a220344ae4",
37
- "size": 53061718
36
+ "checksum": "b8fa2a77e0ab7a07f3cb91418c4e5edf99ef3291b762481aa14916301feba40d",
37
+ "size": 48774646
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "92d07fef73348f5b2ac6b1af4773ea2c01bf14b95c8aadb19b89385f16217d4d",
42
- "size": 53729600
41
+ "checksum": "0eb3c6bd29e5ce9eec973682e701de06663ca432b29b339903edeb12b853dea4",
42
+ "size": 49480595
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "df6987816a2ce72a4abff77ffb75f0161e54cc476bfcca31872d6a079a552b86",
47
- "size": 56098167
46
+ "checksum": "ebfd46c5664f381e6b9e2cae2b05ab446776ae160314474aec00f9372bd361af",
47
+ "size": 51506130
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "6d8700265a93999c5c6fc404b3a647da6955ca3d2d3cbd0a2a0598ae20d0c3cf",
52
- "size": 54237735
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.131",
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.131",
59
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.2.131",
60
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.2.131",
61
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.2.131",
62
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.2.131",
63
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.2.131",
64
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.2.131",
65
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.2.131"
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.131"
81
+ "claudeCodeVersion": "2.1.133"
82
82
  }
package/sdk-tools.d.ts CHANGED
@@ -324,7 +324,7 @@ export interface BashInput {
324
324
  */
325
325
  description?: string;
326
326
  /**
327
- * Set to true to run this command in the background. Use Read to read the output later.
327
+ * Set to true to run this command in the background.
328
328
  */
329
329
  run_in_background?: boolean;
330
330
  /**
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: {
@@ -2066,17 +2079,25 @@ export declare interface Query extends AsyncGenerator<SDKMessage, void> {
2066
2079
  setMaxThinkingTokens(maxThinkingTokens: number | null): Promise<void>;
2067
2080
  /**
2068
2081
  * Merge the provided settings into the flag settings layer, dynamically
2069
- * updating the active configuration. Top-level keys are shallow-merged
2070
- * across successive calls a second call with `{permissions: {...}}`
2071
- * replaces the entire `permissions` object from a prior call. The resulting
2072
- * flag settings are then deep-merged with file-based settings at read time.
2082
+ * updating the active configuration. Equivalent to the inline `settings`
2083
+ * option of `query()`, but applies mid-session. Flag settings sit above
2084
+ * user/project/local settings and below managed policy settings in the
2085
+ * precedence order.
2073
2086
  *
2074
- * Equivalent to passing an object to the `settings` option of `query()`,
2075
- * but applies mid-session. Only available in streaming input mode.
2087
+ * Successive calls shallow-merge top-level keys a second call with
2088
+ * `{permissions: {...}}` replaces the entire `permissions` object from a
2089
+ * prior call. Pass `null` for a key to clear it from the flag layer and
2090
+ * fall back to lower-precedence sources (`undefined` is dropped by JSON
2091
+ * serialization and has no effect).
2092
+ *
2093
+ * Only available in streaming input mode.
2076
2094
  *
2077
- * @param settings - A partial settings object to merge into the flag settings
2095
+ * @param settings - A partial settings object to merge into the flag settings.
2096
+ * Each top-level key also accepts `null` to clear it from the flag layer.
2078
2097
  */
2079
- applyFlagSettings(settings: Settings): Promise<void>;
2098
+ applyFlagSettings(settings: {
2099
+ [K in keyof Settings]?: Settings[K] | null;
2100
+ }): Promise<void>;
2080
2101
  /**
2081
2102
  * Get the full initialization result, including supported commands, models,
2082
2103
  * account info, and output style configuration.
@@ -2322,6 +2343,8 @@ declare const SandboxSettingsSchema: () => z.ZodObject<{
2322
2343
  command: z.ZodString;
2323
2344
  args: z.ZodOptional<z.ZodArray<z.ZodString>>;
2324
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>>>;
2325
2348
  }, z.core.$loose>;
2326
2349
 
2327
2350
  /**
@@ -3173,6 +3196,7 @@ export declare type SDKResultSuccess = {
3173
3196
  * V2 API - UNSTABLE
3174
3197
  * Session interface for multi-turn conversations.
3175
3198
  * Has methods, so not serializable.
3199
+ * @deprecated Use `query()` instead. The V2 session API will be removed in a future release.
3176
3200
  * @alpha
3177
3201
  */
3178
3202
  export declare interface SDKSession {
@@ -3241,6 +3265,7 @@ export declare type SDKSessionInfo = {
3241
3265
  /**
3242
3266
  * V2 API - UNSTABLE
3243
3267
  * Options for creating a session.
3268
+ * @deprecated Use `query()` instead. The V2 session API will be removed in a future release.
3244
3269
  * @alpha
3245
3270
  */
3246
3271
  export declare type SDKSessionOptions = {
@@ -4130,6 +4155,10 @@ export declare interface Settings {
4130
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.
4131
4156
  */
4132
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';
4133
4162
  };
4134
4163
  /**
4135
4164
  * Disable all hooks and statusLine execution
@@ -4203,7 +4232,7 @@ export declare interface Settings {
4203
4232
  command: string;
4204
4233
  };
4205
4234
  /**
4206
- * 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.
4207
4236
  */
4208
4237
  enabledPlugins?: {
4209
4238
  [k: string]: string[] | boolean | {
@@ -4769,6 +4798,10 @@ export declare interface Settings {
4769
4798
  * Force a specific login method: "claudeai" for Claude Pro/Max, "console" for Console billing
4770
4799
  */
4771
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';
4772
4805
  /**
4773
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.
4774
4807
  */
@@ -4872,6 +4905,14 @@ export declare interface Settings {
4872
4905
  command: string;
4873
4906
  args?: string[];
4874
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;
4875
4916
  [k: string]: unknown;
4876
4917
  };
4877
4918
  /**
@@ -5466,6 +5507,7 @@ export declare interface Transport {
5466
5507
  /**
5467
5508
  * V2 API - UNSTABLE
5468
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.
5469
5511
  * @alpha
5470
5512
  */
5471
5513
  export declare function unstable_v2_createSession(_options: SDKSessionOptions): SDKSession;
@@ -5473,6 +5515,7 @@ export declare function unstable_v2_createSession(_options: SDKSessionOptions):
5473
5515
  /**
5474
5516
  * V2 API - UNSTABLE
5475
5517
  * One-shot convenience function for single prompts.
5518
+ * @deprecated Use `query()` instead. The V2 session API will be removed in a future release.
5476
5519
  * @alpha
5477
5520
  *
5478
5521
  * @example
@@ -5487,6 +5530,7 @@ export declare function unstable_v2_prompt(_message: string, _options: SDKSessio
5487
5530
  /**
5488
5531
  * V2 API - UNSTABLE
5489
5532
  * Resume an existing session by ID.
5533
+ * @deprecated Use `query()` instead. The V2 session API will be removed in a future release.
5490
5534
  * @alpha
5491
5535
  */
5492
5536
  export declare function unstable_v2_resumeSession(_sessionId: string, _options: SDKSessionOptions): SDKSession;