@anthropic-ai/claude-agent-sdk 0.3.177 → 0.3.178

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.177",
3
- "commit": "6fae7a072b111776fc95ca221caac31b7439eb25",
4
- "buildDate": "2026-06-13T00:29:44Z",
2
+ "version": "2.1.178",
3
+ "commit": "d4d9538afb0f5ebb2a4dffa3552619fdfd3e0363",
4
+ "buildDate": "2026-06-15T18:05:42Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude",
8
- "checksum": "eb0730351be2f02b482b1855870f5877489085aac86b0c4c1db4e458d9e40ed9",
9
- "size": 225124512
8
+ "checksum": "473495d0c15d6616cd0870480db5eb8aa0402fe4f8ead3277a1b521e94110309",
9
+ "size": 226032672
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "fcdc6c6679d4e1e3a0a3812f24e8b08ab73156732072c2ca5ee6248bee8313bd",
14
- "size": 227642800
13
+ "checksum": "e6c5f5eec2b4d18f6234c3ba500e285f07a2e5ffb4c67d4ba0494c28c70dfe79",
14
+ "size": 228550960
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "baf3926dc166215772f959e367da9784ff4c75157aaafe4524fdc79ebff984b1",
19
- "size": 250394248
18
+ "checksum": "8e57484f5c08093117cfe6225529f8977877eea04bb3463f4e228aa7438349b3",
19
+ "size": 251246216
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "ff41753634b20c869ef6a32a20863521b33d4186ac0d6a49379ab48a48395ee7",
24
- "size": 250480336
23
+ "checksum": "17ed1a983a49404c4673de286419a8fd6617c92440a2e0f789bcc413a3b14de1",
24
+ "size": 251373264
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "bc756f27912d993d632a5f86be9a0364fc3c1373d146a367e46c8d01d3ca1620",
29
- "size": 243248984
28
+ "checksum": "51c555612c463eb317dcc15b47deadd5da68f51f4b8497a6647e211e22e00291",
29
+ "size": 244100952
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "4884b1512bf2863a85f1717eee58840b05d558568f817be71b1a116a430f4a96",
34
- "size": 244890672
33
+ "checksum": "3565ee891227a613183ffdf89702e00475db21a677bc9e2e9142d9a39a208126",
34
+ "size": 245783600
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "408ddf27d45fc6b6516843c0513072bc0f474d7bface60ae8bbbc633bef9feb2",
39
- "size": 245856928
38
+ "checksum": "8e82516a82511cb321f3aabe696e5fa6a318c43c2a74d657b867d70adf5e699b",
39
+ "size": 246715552
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "89652ac1f73ccc3fe039a1d388af81af82608af1cac7a32b5ebc2189b8ae2d62",
44
- "size": 241821856
43
+ "checksum": "502020474d33e83e40ff214ca1400a83bd412296c21e0e842aba29338b70bda5",
44
+ "size": 242679456
45
45
  }
46
46
  }
47
47
  }
package/manifest.zst.json CHANGED
@@ -1,55 +1,55 @@
1
1
  {
2
- "version": "2.1.177",
3
- "commit": "6fae7a072b111776fc95ca221caac31b7439eb25",
4
- "buildDate": "2026-06-13T00:31:36Z",
2
+ "version": "2.1.178",
3
+ "commit": "d4d9538afb0f5ebb2a4dffa3552619fdfd3e0363",
4
+ "buildDate": "2026-06-15T18:07:29Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude.zst",
8
- "checksum": "f1c731cc88d5b5cdcfd9cc2cd51afb38a45bbcf43af461c70d5b026010f8a77e",
9
- "size": 46204400,
8
+ "checksum": "6560cb13e048238848b4d48dd61614dbf8ed0ca419e13c400f9f9d85f3a8c699",
9
+ "size": 46360061,
10
10
  "bundle": {
11
- "checksum": "d02621db6a942e67854ebcf5fa6c2c8bb2343ae65df4bccde873a9fba7bd02b9",
12
- "size": 46212410
11
+ "checksum": "c191f68f1ffb0b76977ad8cd01de42c116e2026fdd1da60fbfdc85a37f23821d",
12
+ "size": 46364993
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "ab4e4611fb47874a6ce2ae688ab3d880f3d41fb56db9b3a4c232c4909aa4736c",
18
- "size": 48119421,
17
+ "checksum": "e5c04409b47478ce5fdb05782e2308828e5c0f2229bb1f9f33aea63af607ef5a",
18
+ "size": 48286014,
19
19
  "bundle": {
20
- "checksum": "9eb17621405b8d760dc54a82d9a2ad111898d76f1df4f2ac1d9302c92ff98b37",
21
- "size": 48108659
20
+ "checksum": "c521aea7a63579efc205f35e654b771a38629244375e557d5f3d82b9811d8fd0",
21
+ "size": 48280277
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "f585026d3322bb08a52adc8bfed4fa8c589b7c6f32aca3d3a48870da6cea1f4c",
27
- "size": 53850962
26
+ "checksum": "73c57058bebb2dd560dfe78ab1aa7e41e7b46ee5b36e2eb626ba7944a5ded8d9",
27
+ "size": 53973887
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "cb3f46365c201f8503d8cc8cb299b7ee4bf122dcf7105dcb94f823fa3dbe2256",
32
- "size": 54468422
31
+ "checksum": "9d91eb23ea330a71a905776b16eab636d93a8a30c5d0bbd68e6b17a09a15fea4",
32
+ "size": 54684423
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "b6fab61f525493535002be567f42ead4705fbc7c8c7c1976eeb24d584d6e60ca",
37
- "size": 52463140
36
+ "checksum": "2bfc7d043ed89cb1501c84fa16510a73cc92536929745d30751930dd89dd47e1",
37
+ "size": 52627737
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "f3c662a21e8f5e82184a95ff670c098e0b31095b62f712503c02b7668d0aa8bb",
42
- "size": 53174580
41
+ "checksum": "8ec4637f6f4b7b22c7f9b949f1fb92f1d849cefc40c77e4f5e824fe5048118c3",
42
+ "size": 53328052
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "d70811095a330af0a459965080a631e3ad2901690f20e1e2524d2f2ed48808be",
47
- "size": 55187366
46
+ "checksum": "9ce49cfacfa12aa48801cbc9ec7608a82e7fea8a57ac6910efd79001c9621c16",
47
+ "size": 55372610
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "0fb3d2b8577149d4972caf02ec48e1a0c2357d8efcc901508c03c089fbc33d7d",
52
- "size": 53457755
51
+ "checksum": "43a2ab1412fda4d236b2cbb08efb75273c7746b3357472c05833f8b5080c41b9",
52
+ "size": 53609096
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.177",
3
+ "version": "0.3.178",
4
4
  "main": "sdk.mjs",
5
5
  "types": "sdk.d.ts",
6
6
  "exports": {
@@ -61,14 +61,14 @@
61
61
  "zod": "^4.0.0"
62
62
  },
63
63
  "optionalDependencies": {
64
- "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.177",
65
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.177",
66
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.177",
67
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.177",
68
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.177",
69
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.177",
70
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.177",
71
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.177"
64
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.178",
65
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.178",
66
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.178",
67
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.178",
68
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.178",
69
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.178",
70
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.178",
71
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.178"
72
72
  },
73
73
  "files": [
74
74
  "sdk.mjs",
@@ -86,5 +86,5 @@
86
86
  "manifest.json",
87
87
  "manifest.zst.json"
88
88
  ],
89
- "claudeCodeVersion": "2.1.177"
89
+ "claudeCodeVersion": "2.1.178"
90
90
  }
package/sdk-tools.d.ts CHANGED
@@ -149,6 +149,29 @@ export type AgentOutput =
149
149
  * Whether the calling agent has Read/Bash tools to check progress
150
150
  */
151
151
  canReadOutputFile?: boolean;
152
+ }
153
+ | {
154
+ status: "remote_launched";
155
+ /**
156
+ * The ID of the remote agent task
157
+ */
158
+ taskId: string;
159
+ /**
160
+ * The URL of the cloud session
161
+ */
162
+ sessionUrl: string;
163
+ /**
164
+ * The description of the task
165
+ */
166
+ description: string;
167
+ /**
168
+ * The prompt for the agent
169
+ */
170
+ prompt: string;
171
+ /**
172
+ * Path to the output file for checking agent progress
173
+ */
174
+ outputFile: string;
152
175
  };
153
176
  export type FileReadOutput =
154
177
  | {
@@ -409,7 +432,7 @@ export interface AgentInput {
409
432
  */
410
433
  name?: string;
411
434
  /**
412
- * Team name for spawning. Uses current team context if omitted.
435
+ * Deprecated; ignored. The session has a single implicit team.
413
436
  */
414
437
  team_name?: string;
415
438
  /**
@@ -417,9 +440,9 @@ export interface AgentInput {
417
440
  */
418
441
  mode?: "acceptEdits" | "auto" | "bypassPermissions" | "default" | "dontAsk" | "plan" | "bubble";
419
442
  /**
420
- * Isolation mode. "worktree" creates a temporary git worktree so the agent works on an isolated copy of the repo.
443
+ * Isolation mode. "worktree" creates a temporary git worktree so the agent works on an isolated copy of the repo. "remote" launches the agent in a remote cloud environment (always runs in background; availability is gated).
421
444
  */
422
- isolation?: "worktree";
445
+ isolation?: "worktree" | "remote";
423
446
  }
424
447
  export interface BashInput {
425
448
  /**
package/sdk.d.ts CHANGED
@@ -45,7 +45,7 @@ export declare type AgentDefinition = {
45
45
  */
46
46
  tools?: string[];
47
47
  /**
48
- * Array of tool names to explicitly disallow for this agent
48
+ * Array of tool names to explicitly disallow for this agent. MCP server-level specs (mcp__server, mcp__server__*, mcp__*) remove every tool from the named server (or all MCP tools).
49
49
  */
50
50
  disallowedTools?: string[];
51
51
  /**
@@ -408,6 +408,7 @@ declare namespace coreTypes {
408
408
  SDKHookProgressMessage,
409
409
  SDKHookResponseMessage,
410
410
  SDKHookStartedMessage,
411
+ SDKInformationalMessage,
411
412
  SDKLocalCommandOutputMessage,
412
413
  SDKMemoryRecallMessage,
413
414
  SDKMessageOrigin,
@@ -440,6 +441,7 @@ declare namespace coreTypes {
440
441
  SDKToolUseSummaryMessage,
441
442
  SDKUserMessageReplay,
442
443
  SDKUserMessage,
444
+ SDKWorkerShuttingDownMessage,
443
445
  SdkBeta,
444
446
  SdkPluginConfig,
445
447
  SessionCronSummary,
@@ -2277,8 +2279,14 @@ export declare interface Query extends AsyncGenerator<SDKMessage, void> {
2277
2279
  * `thinking: { type: 'enabled', budgetTokens: N }`.
2278
2280
  *
2279
2281
  * @param maxThinkingTokens - Maximum tokens for thinking, or null to clear the limit
2282
+ * @param thinkingDisplay - Optional thinking display mode for the rest of
2283
+ * the session: a value replaces the session display mode, `null` clears it
2284
+ * back to the API default, and when omitted the display mode from session
2285
+ * start (`thinking.display` / `--thinking-display`) is kept — note a
2286
+ * session started with thinking disabled has none, so re-enabling thinking
2287
+ * without this param yields the API's default display.
2280
2288
  */
2281
- setMaxThinkingTokens(maxThinkingTokens: number | null): Promise<void>;
2289
+ setMaxThinkingTokens(maxThinkingTokens: number | null, thinkingDisplay?: 'summarized' | 'omitted' | null): Promise<void>;
2282
2290
  /**
2283
2291
  * Merge the provided settings into the flag settings layer, dynamically
2284
2292
  * updating the active configuration. Equivalent to the inline `settings`
@@ -3474,11 +3482,12 @@ declare type SDKControlSetColorRequest = {
3474
3482
  };
3475
3483
 
3476
3484
  /**
3477
- * Sets the maximum number of thinking tokens for extended thinking.
3485
+ * Sets the maximum number of thinking tokens for extended thinking. thinking_display optionally sets the thinking display mode for the rest of the session: a value replaces the session display mode, null clears it back to the API default, and when omitted the display mode from session start (--thinking-display) is kept.
3478
3486
  */
3479
3487
  declare type SDKControlSetMaxThinkingTokensRequest = {
3480
3488
  subtype: 'set_max_thinking_tokens';
3481
3489
  max_thinking_tokens: number | null;
3490
+ thinking_display?: ('summarized' | 'omitted') | null;
3482
3491
  };
3483
3492
 
3484
3493
  /**
@@ -3600,6 +3609,29 @@ export declare type SDKHookStartedMessage = {
3600
3609
  session_id: string;
3601
3610
  };
3602
3611
 
3612
+ /**
3613
+ * Generic text banner emitted by the loop — non-error status lines, hook feedback (e.g. a UserPromptSubmit hook's block reason), slash-command output. Hosts render `content` as plaintext at the given level.
3614
+ */
3615
+ export declare type SDKInformationalMessage = {
3616
+ type: 'system';
3617
+ subtype: 'informational';
3618
+ content: string;
3619
+ /**
3620
+ * Render level. 'info' shows only in transcript mode; 'notice' renders in inactive gray; 'suggestion' and 'warning' are more prominent.
3621
+ */
3622
+ level: 'info' | 'notice' | 'suggestion' | 'warning';
3623
+ /**
3624
+ * Dedupes progress messages for the same tool use.
3625
+ */
3626
+ tool_use_id?: string;
3627
+ /**
3628
+ * When true, execution stops after this message (e.g. a Stop hook denied continuation).
3629
+ */
3630
+ prevent_continuation?: boolean;
3631
+ uuid: UUID;
3632
+ session_id: string;
3633
+ };
3634
+
3603
3635
  /**
3604
3636
  * Keep-alive message to maintain WebSocket connection.
3605
3637
  */
@@ -3657,7 +3689,7 @@ export declare type SDKMemoryRecallMessage = {
3657
3689
  session_id: string;
3658
3690
  };
3659
3691
 
3660
- export declare type SDKMessage = SDKAssistantMessage | SDKUserMessage | SDKUserMessageReplay | SDKResultMessage | SDKSystemMessage | SDKPartialAssistantMessage | SDKCompactBoundaryMessage | SDKStatusMessage | SDKAPIRetryMessage | SDKModelRefusalFallbackMessage | SDKLocalCommandOutputMessage | SDKHookStartedMessage | SDKHookProgressMessage | SDKHookResponseMessage | SDKPluginInstallMessage | SDKToolProgressMessage | SDKAuthStatusMessage | SDKTaskNotificationMessage | SDKTaskStartedMessage | SDKTaskUpdatedMessage | SDKTaskProgressMessage | SDKThinkingTokensMessage | SDKSessionStateChangedMessage | SDKCommandsChangedMessage | SDKNotificationMessage | SDKFilesPersistedEvent | SDKToolUseSummaryMessage | SDKMemoryRecallMessage | SDKRateLimitEvent | SDKElicitationCompleteMessage | SDKPermissionDeniedMessage | SDKPromptSuggestionMessage | SDKMirrorErrorMessage;
3692
+ export declare type SDKMessage = SDKAssistantMessage | SDKUserMessage | SDKUserMessageReplay | SDKResultMessage | SDKSystemMessage | SDKPartialAssistantMessage | SDKCompactBoundaryMessage | SDKStatusMessage | SDKAPIRetryMessage | SDKModelRefusalFallbackMessage | SDKLocalCommandOutputMessage | SDKHookStartedMessage | SDKHookProgressMessage | SDKHookResponseMessage | SDKPluginInstallMessage | SDKToolProgressMessage | SDKAuthStatusMessage | SDKTaskNotificationMessage | SDKTaskStartedMessage | SDKTaskUpdatedMessage | SDKTaskProgressMessage | SDKThinkingTokensMessage | SDKSessionStateChangedMessage | SDKWorkerShuttingDownMessage | SDKCommandsChangedMessage | SDKNotificationMessage | SDKFilesPersistedEvent | SDKToolUseSummaryMessage | SDKMemoryRecallMessage | SDKRateLimitEvent | SDKElicitationCompleteMessage | SDKPermissionDeniedMessage | SDKPromptSuggestionMessage | SDKMirrorErrorMessage | SDKInformationalMessage;
3661
3693
 
3662
3694
  /**
3663
3695
  * Provenance of a user-role message (peer session, team lead, channel). Absent or `human` means keyboard input from the user.
@@ -3672,6 +3704,10 @@ export declare type SDKMessageOrigin = {
3672
3704
  from: string;
3673
3705
  name?: string;
3674
3706
 
3707
+ /**
3708
+ * Task id of the in-process background subagent that sent this message, stamped by the harness from the sending loop (never from tool input). Absent for cross-session peers.
3709
+ */
3710
+ senderTaskId?: string;
3675
3711
  } | {
3676
3712
  kind: 'task-notification';
3677
3713
  } | {
@@ -4219,6 +4255,20 @@ export declare type SDKUserMessageReplay = {
4219
4255
  file_attachments?: unknown[];
4220
4256
  };
4221
4257
 
4258
+ /**
4259
+ * Emitted by the bridge on opt-in graceful worker teardown (only when the teardown caller supplied a reason), before the heartbeat stops, so remote clients can show why the worker went away instead of waiting for heartbeat timeout. Absence is NOT a dead-host signal: handoffs (/update, /teleport, respawn), auto-disable, mode transitions, and internal fatal-error paths emit nothing by design. A dead host (battery, OOM, kill -9) never reaches teardown and never sends this either. NOTE: this event lands in the durable per-session event stream — a session that is later resumed may carry historical instances mid-stream. Clients MUST treat it as a live-tail signal only (honored when no further activity follows), not a one-shot session-lifetime fact. CC-2656.
4260
+ */
4261
+ export declare type SDKWorkerShuttingDownMessage = {
4262
+ type: 'system';
4263
+ subtype: 'worker_shutting_down';
4264
+ /**
4265
+ * Short snake_case reason set by the host CLI (not user input), e.g. 'host_exit', 'remote_control_disabled'.
4266
+ */
4267
+ reason: string;
4268
+ uuid: UUID;
4269
+ session_id: string;
4270
+ };
4271
+
4222
4272
  export declare type SessionCronSummary = {
4223
4273
  id: string;
4224
4274
  /**
@@ -6290,6 +6340,9 @@ export declare type TaskCompletedHookInput = BaseHookInput & {
6290
6340
  task_subject: string;
6291
6341
  task_description?: string;
6292
6342
  teammate_name?: string;
6343
+ /**
6344
+ * @deprecated Sessions have a single implicit team; this carries the session-derived team name and will be removed in a future release.
6345
+ */
6293
6346
  team_name?: string;
6294
6347
  };
6295
6348
 
@@ -6299,12 +6352,18 @@ export declare type TaskCreatedHookInput = BaseHookInput & {
6299
6352
  task_subject: string;
6300
6353
  task_description?: string;
6301
6354
  teammate_name?: string;
6355
+ /**
6356
+ * @deprecated Sessions have a single implicit team; this carries the session-derived team name and will be removed in a future release.
6357
+ */
6302
6358
  team_name?: string;
6303
6359
  };
6304
6360
 
6305
6361
  export declare type TeammateIdleHookInput = BaseHookInput & {
6306
6362
  hook_event_name: 'TeammateIdle';
6307
6363
  teammate_name: string;
6364
+ /**
6365
+ * @deprecated Sessions have a single implicit team; this carries the session-derived team name and will be removed in a future release.
6366
+ */
6308
6367
  team_name: string;
6309
6368
  };
6310
6369