@anthropic-ai/claude-agent-sdk 0.3.142 → 0.3.143

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.142",
3
- "commit": "880324aad10dc75b18dbac2782d9dfee7cbb1578",
4
- "buildDate": "2026-05-14T16:45:24Z",
2
+ "version": "2.1.143",
3
+ "commit": "cfb8132e4c3551e2773f41a1900efd1cc93637db",
4
+ "buildDate": "2026-05-15T17:47:13Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude",
8
- "checksum": "772021afa051160b97e04d379738df84d4cacd311e8c199a325fb013b3eaa448",
9
- "size": 207126432
8
+ "checksum": "2701c6cfd68483f8faf0316a1ba6481a1455a90645ada179f0c48d8c36d722ef",
9
+ "size": 207605280
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "d00bc6fb38d0837ce811cc862a3b6822795b33dbce8361703b1e5e903bd240fd",
14
- "size": 209640592
13
+ "checksum": "bc8ff4ce02b765a033808fb596f9522306cbe5c50d21344ed8752c08966f362c",
14
+ "size": 210119440
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "767b13fc28763ca9d663b00f90e501f134b356f1b72dcf0eea59b7e3bed86411",
19
- "size": 232502920
18
+ "checksum": "32e8edc4a5c3c41d18607c75d1b8e7bec643330c03e266be46ac3b41a446c4eb",
19
+ "size": 232961672
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "1249a1dadfe2d48f320bd4e1b657a1a0d82435da76deb11ce509822407cf24ec",
24
- "size": 232625872
23
+ "checksum": "f75fdc3ff9d9cd494b86192f9e349b5c5c6d3970ed4d5cd5c7b330c5a2b1dcc4",
24
+ "size": 233088720
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "43834a6c50954deb6ddb1b49937d15ccae71fbdb3d370e26a461e12c50c122ba",
29
- "size": 225357656
28
+ "checksum": "e68903ec56ddd5560bb0820c96c8f7a4193e7eab6236ede56cb2e05f450ce44f",
29
+ "size": 225816408
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "c645dc32d250a54bb8399630f0ffa88b4ee44ba8e6461e33ed95b2f64f836ea9",
34
- "size": 227019824
33
+ "checksum": "e4cb8588ed6e38f9920bdaa2611263d4a0b0d11300f1d23945df234fdf5e278a",
34
+ "size": 227482672
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "0778b1c607ee3282ba8ea3f0c684edb05f597454cc0d21386a84576b5434b1c7",
39
- "size": 228456096
38
+ "checksum": "e480244f2a4660fe76ed32442c1e3e2edda8fb5433417e73faba39f0e7f69eb6",
39
+ "size": 228902560
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "95a966b0729f9f7c28c68df3d63e7f5ac6ac72abab209392800e9a40292f3bfc",
44
- "size": 224420000
43
+ "checksum": "5cbad78d2f316fedd0d621289aae558aaf259b404d0a46e0e49662ef3b397986",
44
+ "size": 224866976
45
45
  }
46
46
  }
47
47
  }
package/manifest.zst.json CHANGED
@@ -1,55 +1,55 @@
1
1
  {
2
- "version": "2.1.142",
3
- "commit": "880324aad10dc75b18dbac2782d9dfee7cbb1578",
4
- "buildDate": "2026-05-14T16:52:01Z",
2
+ "version": "2.1.143",
3
+ "commit": "cfb8132e4c3551e2773f41a1900efd1cc93637db",
4
+ "buildDate": "2026-05-15T17:54:02Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude.zst",
8
- "checksum": "0f691f77c8f4d1e7a13813c10d8de3f611c486a24fb8a2f33470b785064f8718",
9
- "size": 42921902,
8
+ "checksum": "de2803764796c6b908c203b330c4aa152be67291b85afb11777a9705b9f3133a",
9
+ "size": 42998050,
10
10
  "bundle": {
11
- "checksum": "9e0823cd0d41df7bfa8d3f0864f3c8bb52cc4787aa495c0088afbcc8c7261058",
12
- "size": 42924662
11
+ "checksum": "ed3695422acd6338ab038aa0964b00c98d6e2cd0b17bb5b482d5f66082294038",
12
+ "size": 43008215
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "958d1a9d396a23819ef413c94510619499b3ab04cc4968a6cea7c334999272ea",
18
- "size": 44836769,
17
+ "checksum": "e0c65fc323f611df3d5093f8f21494a6f811f39de7f28bf93b552902f1fe9abf",
18
+ "size": 44914712,
19
19
  "bundle": {
20
- "checksum": "f3dd24e6cc318032c795fe12c4f259de64a70b58409c187cc231e39f65453595",
21
- "size": 44841630
20
+ "checksum": "f89d54e92a526eab1c1441ad716941c8c20462809d692ae5a03d29fc475913e6",
21
+ "size": 44916790
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "75c7af4adb9bbd7b48b407d005cdad790a6ecb00e7e6b6de6c2b0c4acafcf81f",
27
- "size": 50714165
26
+ "checksum": "81e45b0efc7cf75298912cbcf953d366f1937c7573fbc3457508cb9022c21bb1",
27
+ "size": 50768400
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "7a9f89138613c26b815054bf009a086ed76f1c8c8265484090072d900f10d278",
32
- "size": 51328541
31
+ "checksum": "6cbd2d23d9b6f8e06f8a1614f5212d13ae3b1c748b6b59df90157575b3e4f8a1",
32
+ "size": 51405057
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "76acedae2ff83dc06e5dc38066bd0fa42ca76c18a9aabb8e63742c01a07f5dfd",
37
- "size": 49338045
36
+ "checksum": "53b68f1d98c2e24c100f5fc7e873cad7f0470af69c751cd5917460402277fb2f",
37
+ "size": 49422676
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "e6425d37a4cc099cfd1b1b13298c0f2067302decfd8542d0c12c5eb5df435ac6",
42
- "size": 50052852
41
+ "checksum": "fe24a7fa385ade60594375ec9fada75060bf028d6562b84461f4dd1b13abc521",
42
+ "size": 50119926
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "1183b899719c41f41f3f57fb8580e50845ee645c1878e29744138b8e459d897e",
47
- "size": 52050022
46
+ "checksum": "f1070448e53ffdd83f65b2773bffa2e1136d462e2f3be72cff0f4effd0611ac4",
47
+ "size": 52123091
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "ca544b53e4fb45d12bd30f214de6ee85859ec9f89c7e14942bdcfb4a1db576f4",
52
- "size": 50320973
51
+ "checksum": "967b9e021cdc470d10478e5ff8cfe93624337a7475478658954f275489d28adb",
52
+ "size": 50393488
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.142",
3
+ "version": "0.3.143",
4
4
  "main": "sdk.mjs",
5
5
  "types": "sdk.d.ts",
6
6
  "exports": {
@@ -47,22 +47,20 @@
47
47
  "automation",
48
48
  "code-generation"
49
49
  ],
50
- "dependencies": {
51
- "@anthropic-ai/sdk": "^0.93.0",
52
- "@modelcontextprotocol/sdk": "^1.29.0"
53
- },
54
50
  "peerDependencies": {
51
+ "@anthropic-ai/sdk": ">=0.93.0",
52
+ "@modelcontextprotocol/sdk": "^1.29.0",
55
53
  "zod": "^4.0.0"
56
54
  },
57
55
  "optionalDependencies": {
58
- "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.142",
59
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.142",
60
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.142",
61
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.142",
62
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.142",
63
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.142",
64
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.142",
65
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.142"
56
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.143",
57
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.143",
58
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.143",
59
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.143",
60
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.143",
61
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.143",
62
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.143",
63
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.143"
66
64
  },
67
65
  "files": [
68
66
  "sdk.mjs",
@@ -78,5 +76,5 @@
78
76
  "manifest.json",
79
77
  "manifest.zst.json"
80
78
  ],
81
- "claudeCodeVersion": "2.1.142"
79
+ "claudeCodeVersion": "2.1.143"
82
80
  }
package/sdk.d.ts CHANGED
@@ -957,6 +957,7 @@ export declare type McpHttpServerConfig = {
957
957
  * When true, all tools from this server are always included in the prompt and never deferred behind tool search. Equivalent to setting defer_loading: false on the API. Default: tools are deferred when tool search is enabled. As a side effect this also blocks startup until the server is connected (capped at the standard 5s connect timeout) even though MCP startup is otherwise non-blocking by default, since the tools must be present when the turn-1 prompt is built.
958
958
  */
959
959
  alwaysLoad?: boolean;
960
+
960
961
  };
961
962
 
962
963
  export declare type McpSdkServerConfig = {
@@ -1062,6 +1063,7 @@ export declare type McpSSEServerConfig = {
1062
1063
  * When true, all tools from this server are always included in the prompt and never deferred behind tool search. Equivalent to setting defer_loading: false on the API. Default: tools are deferred when tool search is enabled. As a side effect this also blocks startup until the server is connected (capped at the standard 5s connect timeout) even though MCP startup is otherwise non-blocking by default, since the tools must be present when the turn-1 prompt is built.
1063
1064
  */
1064
1065
  alwaysLoad?: boolean;
1066
+
1065
1067
  };
1066
1068
 
1067
1069
  export declare type McpStdioServerConfig = {
@@ -1073,6 +1075,7 @@ export declare type McpStdioServerConfig = {
1073
1075
  * When true, all tools from this server are always included in the prompt and never deferred behind tool search. Equivalent to setting defer_loading: false on the API. Default: tools are deferred when tool search is enabled. As a side effect this also blocks startup until the server is connected (capped at the standard 5s connect timeout) even though MCP startup is otherwise non-blocking by default, since the tools must be present when the turn-1 prompt is built.
1074
1076
  */
1075
1077
  alwaysLoad?: boolean;
1078
+
1076
1079
  };
1077
1080
 
1078
1081
  /**
@@ -3569,7 +3572,7 @@ export declare type SDKTaskUpdatedMessage = {
3569
3572
  * Wire-safe subset of TaskState fields that changed. Excludes abortController, messages, result. Clients merge into their local task map.
3570
3573
  */
3571
3574
  patch: {
3572
- status?: 'pending' | 'running' | 'completed' | 'failed' | 'killed';
3575
+ status?: 'pending' | 'running' | 'completed' | 'failed' | 'killed' | 'paused';
3573
3576
  description?: string;
3574
3577
  end_time?: number;
3575
3578
  total_paused_ms?: number;
@@ -4274,6 +4277,10 @@ export declare interface Settings {
4274
4277
  * 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.
4275
4278
  */
4276
4279
  baseRef?: 'fresh' | 'head';
4280
+ /**
4281
+ * Isolation mode for background sessions in this repo. 'worktree' (default) blocks Edit/Write in the main checkout until EnterWorktree is called. 'none' lets background jobs edit the working copy directly.
4282
+ */
4283
+ bgIsolation?: 'worktree' | 'none';
4277
4284
  };
4278
4285
  /**
4279
4286
  * Disable all hooks and statusLine execution