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

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.181",
3
- "commit": "2b2bfc5e247206570d67de054241eda0855ea395",
4
- "buildDate": "2026-06-17T17:18:34Z",
2
+ "version": "2.1.183",
3
+ "commit": "9d251abdbce0c0a6190d290add83634e0ab481f6",
4
+ "buildDate": "2026-06-18T23:12:17Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude",
8
- "checksum": "c4d833b04606cef9b6eab3ad255ed2e1448f87dea2bc00ff5acf77b57df6e94d",
9
- "size": 215193056
8
+ "checksum": "6218efccd06194ea0bc381121bf03040a027a04d991eaed886da02a00449ad0f",
9
+ "size": 215952608
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "353798bcdc49a52a666645370e1c48a84fe837d93bf9d954c19338dca7260ddd",
14
- "size": 222731776
13
+ "checksum": "c70248f96b5831ff86ac169ab53c87ec5480f91ae386783da11004875c2ad1b7",
14
+ "size": 223491328
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "1393f993533e08d5c96245504750a7fcfe37490a5f44eec35b0beac3d709dab9",
19
- "size": 230143712
18
+ "checksum": "260a6e43fe9c6fd8800317581982ff50e4f4401d02ef625faa4df723bb9710b3",
19
+ "size": 230930144
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "35ffd4e9d9a86395d0ba4e05f8b23bf098bfeab95e97deacd6537909d1324e9c",
24
- "size": 232830760
23
+ "checksum": "df3b409c5b25299df52c5ee81f64811dbdcb2e18c1beefe7f733c326f0a8cdce",
24
+ "size": 233584424
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "ac8f1955a235cf7fc5d77abdfd8eeb5a0fc6d94b4c573f433bf5b715e3f0013e",
29
- "size": 223523016
28
+ "checksum": "6f5a9fc9b3abbd4b13495b2bf7e6b81eb735ec4eb48b766474ee1ff44e5b0e6b",
29
+ "size": 224309448
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "46fbaf3f004a8d187939fbf680f3e37770566a3761c09e5c2bd6094f22056d14",
34
- "size": 227814800
33
+ "checksum": "45cc1ce016560d368c31ea8cfb9069799160883787dac31f8961d64ebf84ac06",
34
+ "size": 228568464
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "ee197c25b55c6c85de573015e5e8b81509ae787101da5149c769b82ad8ace7c6",
39
- "size": 224356512
38
+ "checksum": "ba6e71d0e39b33c42a519bd10fc6d79b04d62cedcc918b3991ff863462261eb0",
39
+ "size": 225108640
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "877388d05cbcc0ad19518a25076975dba9a2bb67dd56900b7567021571222f96",
44
- "size": 219019424
43
+ "checksum": "0d75484e247f8e30062d143b49f97f317d3347d98d61e1f7285b72e29cd2b8d8",
44
+ "size": 219771552
45
45
  }
46
46
  }
47
47
  }
package/manifest.zst.json CHANGED
@@ -1,55 +1,55 @@
1
1
  {
2
- "version": "2.1.181",
3
- "commit": "2b2bfc5e247206570d67de054241eda0855ea395",
4
- "buildDate": "2026-06-17T17:20:15Z",
2
+ "version": "2.1.183",
3
+ "commit": "9d251abdbce0c0a6190d290add83634e0ab481f6",
4
+ "buildDate": "2026-06-18T23:14:00Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude.zst",
8
- "checksum": "a830533fc987f328aadf7fe15d0ba02b16d8e16d5ede2c6210b6b013f827eebd",
9
- "size": 45298472,
8
+ "checksum": "b56fd5ad3cf9207287b420303e7c0aedf2b5b22a09cd85ab7bf82910834bd0a8",
9
+ "size": 45418564,
10
10
  "bundle": {
11
- "checksum": "beaf49b780ff90c5a78d664ad55a7d611fc95cbb037e6f53fb73a1743bdce92b",
12
- "size": 45300527
11
+ "checksum": "26d8c626328f7ee7849036002b360895b147ea5a9ba818344d36c8fcccb7745c",
12
+ "size": 45422017
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "630ad3ec03112e81abddea132ea2bc9c09b16d454229af15e0e019679eb3ae93",
18
- "size": 48210950,
17
+ "checksum": "a658723cf4b9276bd95ed641591afc267468b21ad9e7cf72329000c75bc46abf",
18
+ "size": 48310808,
19
19
  "bundle": {
20
- "checksum": "d5018fde58dc9f08f61ca7816c05771eedcfcd7a67f2976a85b5c8381772c4db",
21
- "size": 48211024
20
+ "checksum": "820ffe5eb6580e354d35c66ea02d8315ebe3d7dbfcdaa5ded6666088a2b4ed78",
21
+ "size": 48316126
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "8aa76af21e9043630c6dbba661384c19986fa7a8957381efb865275d859cfff7",
27
- "size": 53092926
26
+ "checksum": "6ef906b32d73d87d879fd2109e5023563be653077048a6e51de4d78286a1ddba",
27
+ "size": 53221350
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "e371b41ac163b1e15d0231c04cd682a642d841440c1e1254e1429d1f57910ed0",
32
- "size": 54321750
31
+ "checksum": "6b19b65fe3119815f1750ab5d67b5d0690a770ab2edb1e37523b39824e344590",
32
+ "size": 54432383
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "edf9f800634163c91f70b2024bb315fa3d347731b19f89f7b5fc9b28178ff35f",
37
- "size": 51808428
36
+ "checksum": "e105196660b31e4cc9bc54fdf61b21aca57c774b124628947d1abfd2a95fcf92",
37
+ "size": 51936964
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "17bd5fc6524ec04749fb2f8baa0bd77f384e29b908bcba079c4d203a57f4bf40",
42
- "size": 53115330
41
+ "checksum": "9fb295eb0c434a50d2f55c93af49766287d5a28c9ab5adf1e2638e2a361f3e8f",
42
+ "size": 53241974
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "caf35bf9db1dfe84537c705a8a5e303b5f4cf7124f330717cd37b17b13598faa",
47
- "size": 54580011
46
+ "checksum": "30bffcb555628fe22c41e3f4fa8f8bca7e947f635fa298c642d0c9a1d1da20bc",
47
+ "size": 54673765
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "29f73d3c8de583e509146ab78f955798d3a8d55ca4050a37e209236eb052c435",
52
- "size": 52616734
51
+ "checksum": "dcf1d1e0ce50f2fd1c7fda492198ae8a1e9d63f620c2968b3766c8451d3c37a7",
52
+ "size": 52724650
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.181",
3
+ "version": "0.3.183",
4
4
  "main": "sdk.mjs",
5
5
  "types": "sdk.d.ts",
6
6
  "exports": {
@@ -57,14 +57,14 @@
57
57
  "zod": "^4.0.0"
58
58
  },
59
59
  "optionalDependencies": {
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"
60
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.183",
61
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.183",
62
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.183",
63
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.183",
64
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.183",
65
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.183",
66
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.183",
67
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.183"
68
68
  },
69
69
  "files": [
70
70
  "sdk.mjs",
@@ -80,5 +80,5 @@
80
80
  "manifest.json",
81
81
  "manifest.zst.json"
82
82
  ],
83
- "claudeCodeVersion": "2.1.181"
83
+ "claudeCodeVersion": "2.1.183"
84
84
  }
package/sdk-tools.d.ts CHANGED
@@ -2861,6 +2861,23 @@ export interface ReadMcpResourceOutput {
2861
2861
  * Human-readable error when the server could not read the resource
2862
2862
  */
2863
2863
  error?: string;
2864
+ /**
2865
+ * Direct children when the URI is a directory resource (SEP-2640 resources/directory/read). Subdirectories appear with mimeType "inode/directory".
2866
+ */
2867
+ resources?: {
2868
+ /**
2869
+ * Child resource URI
2870
+ */
2871
+ uri: string;
2872
+ /**
2873
+ * Child resource name
2874
+ */
2875
+ name: string;
2876
+ /**
2877
+ * Child MIME type
2878
+ */
2879
+ mimeType?: string;
2880
+ }[];
2864
2881
  }
2865
2882
  export interface TodoWriteOutput {
2866
2883
  /**
package/sdk.d.ts CHANGED
@@ -3374,7 +3374,7 @@ export declare type SDKControlRequest = {
3374
3374
  request: SDKControlRequestInner;
3375
3375
  };
3376
3376
 
3377
- declare type SDKControlRequestInner = SDKControlInterruptRequest | SDKControlPermissionRequest | SDKControlInitializeRequest | SDKControlSetPermissionModeRequest | SDKControlSetModelRequest | SDKControlSetMaxThinkingTokensRequest | SDKControlRenameSessionRequest | SDKControlSetColorRequest | SDKControlMcpStatusRequest | SDKControlGetContextUsageRequest | SDKControlGetSessionCostRequest | SDKControlGetUsageRequest | SDKControlGetBinaryVersionRequest | SDKControlMcpCallRequest | SDKControlFileSuggestionsRequest | SDKHookCallbackRequest | SDKControlMcpMessageRequest | SDKControlRewindFilesRequest | SDKControlCancelAsyncMessageRequest | SDKControlReadFileRequest | SDKControlSeedReadStateRequest | SDKControlMcpSetServersRequest | SDKControlRegisterRepoRootRequest | SDKControlReloadPluginsRequest | SDKControlReloadSkillsRequest | SDKControlMcpReconnectRequest | SDKControlMcpToggleRequest | SDKControlChannelEnableRequest | SDKControlEndSessionRequest | SDKControlMcpAuthenticateRequest | SDKControlMcpClearAuthRequest | SDKControlMcpOAuthCallbackUrlRequest | SDKControlClaudeAuthenticateRequest | SDKControlClaudeOAuthCallbackRequest | SDKControlClaudeOAuthWaitForCompletionRequest | SDKControlRemoteControlRequest | SDKControlGenerateSessionTitleRequest | SDKControlSideQuestionRequest | SDKControlUltrareviewLaunchRequest | SDKControlStageFileRequest | SDKControlMessageRatedRequest | SDKControlOAuthTokenRefreshRequest | SDKControlHostAuthTokenRefreshRequest | SDKControlStopTaskRequest | SDKControlBackgroundTasksRequest | SDKControlApplyFlagSettingsRequest | SDKControlGetSettingsRequest | SDKControlElicitationRequest | SDKControlRequestUserDialogRequest | SDKControlSubmitFeedbackRequest;
3377
+ declare type SDKControlRequestInner = SDKControlInterruptRequest | SDKControlPermissionRequest | SDKControlInitializeRequest | SDKControlSetPermissionModeRequest | SDKControlSetModelRequest | SDKControlSetMaxThinkingTokensRequest | SDKControlRenameSessionRequest | SDKControlSetColorRequest | SDKControlMcpStatusRequest | SDKControlGetContextUsageRequest | SDKControlGetSessionCostRequest | SDKControlGetUsageRequest | SDKControlGetBinaryVersionRequest | SDKControlMcpCallRequest | SDKControlFileSuggestionsRequest | SDKHookCallbackRequest | SDKControlMcpMessageRequest | SDKControlRewindFilesRequest | SDKControlCancelAsyncMessageRequest | SDKControlReadFileRequest | SDKControlSeedReadStateRequest | SDKControlMcpSetServersRequest | SDKControlRegisterRepoRootRequest | SDKControlReloadPluginsRequest | SDKControlReloadSkillsRequest | SDKControlMcpReconnectRequest | SDKControlMcpToggleRequest | SDKControlSetMcpPermissionModeOverrideRequest | SDKControlChannelEnableRequest | SDKControlEndSessionRequest | SDKControlMcpAuthenticateRequest | SDKControlMcpClearAuthRequest | SDKControlMcpOAuthCallbackUrlRequest | SDKControlClaudeAuthenticateRequest | SDKControlClaudeOAuthCallbackRequest | SDKControlClaudeOAuthWaitForCompletionRequest | SDKControlRemoteControlRequest | SDKControlGenerateSessionTitleRequest | SDKControlSideQuestionRequest | SDKControlUltrareviewLaunchRequest | SDKControlStageFileRequest | SDKControlMessageRatedRequest | SDKControlOAuthTokenRefreshRequest | SDKControlHostAuthTokenRefreshRequest | SDKControlStopTaskRequest | SDKControlBackgroundTasksRequest | SDKControlApplyFlagSettingsRequest | SDKControlGetSettingsRequest | SDKControlElicitationRequest | SDKControlRequestUserDialogRequest | SDKControlSubmitFeedbackRequest;
3378
3378
 
3379
3379
  /**
3380
3380
  * Requests the SDK consumer to render a tool-driven blocking dialog and return the user choice. Used by tools that previously rendered Ink JSX via setToolJSX with an onDone callback.
@@ -4548,6 +4548,10 @@ export declare interface Settings {
4548
4548
  * Attribution text for pull request descriptions. Empty string hides attribution.
4549
4549
  */
4550
4550
  pr?: string;
4551
+ /**
4552
+ * Whether to append the claude.ai session link to commits and PRs created from web or Remote Control sessions (default: true). Set to false to omit the Claude-Session trailer and PR-body link.
4553
+ */
4554
+ sessionUrl?: boolean;
4551
4555
  };
4552
4556
  /**
4553
4557
  * Deprecated: Use attribution instead. Whether to include Claude's co-authored by attribution in commits and PRs (defaults to true)
@@ -4621,6 +4625,10 @@ export declare interface Settings {
4621
4625
  * List of rejected MCP servers from .mcp.json
4622
4626
  */
4623
4627
  disabledMcpjsonServers?: string[];
4628
+ /**
4629
+ * When true in any settings source, claude.ai MCP cloud connectors are not auto-fetched or connected. Only gates auto-fetched connectors — a claudeai-proxy server passed explicitly (e.g. via --mcp-config or the SDK mcpServers option) still follows the normal MCP config trust flow. Any-source-true wins: a project can opt out, but a project-level false cannot override a user-level true.
4630
+ */
4631
+ disableClaudeAiConnectors?: boolean;
4624
4632
  /**
4625
4633
  * Per-skill listing overrides keyed by skill name. "name-only" lists the skill without its description; "user-invocable-only" hides it from the model but keeps /name; "off" hides it from both. Absent = on.
4626
4634
  */
@@ -6407,6 +6415,14 @@ export declare interface Transport {
6407
6415
  * End the input stream
6408
6416
  */
6409
6417
  endInput(): void;
6418
+ /**
6419
+ * Await the underlying subprocess's exit. Only meaningful for
6420
+ * subprocess-backed transports (ProcessTransport); WebSocket / SSE /
6421
+ * in-process transports leave this undefined. Query.performCleanup()
6422
+ * awaits it (bounded) so .return() / asyncDispose don't resolve while
6423
+ * the child is still draining the stdin EOF that close() just sent.
6424
+ */
6425
+ waitForExit?(): Promise<void>;
6410
6426
  /**
6411
6427
  * Optional Disposable support. All built-in transports implement this
6412
6428
  * (delegating to close()), so `using transport = new ProcessTransport(...)`