@anthropic-ai/claude-agent-sdk 0.3.228 → 0.3.231

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,54 +1,51 @@
1
1
  {
2
- "version": "2.1.228",
3
- "commit": "4a2077e9c39676b5c335919018dda18f476a7f70",
4
- "buildDate": "2026-08-11T01:54:41Z",
2
+ "version": "2.1.231",
3
+ "commit": "bbff368ec698dbfacfcc9caae5eca91c30f299c3",
4
+ "buildDate": "2026-08-13T07:40:50Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude",
8
- "checksum": "43484b1352cef03a08346f36ef0437755b1aad646ab9313ce187857b794b7247",
9
- "size": 289298144
8
+ "checksum": "ba790279cab6ef77b713864d4bf5f764fcea87d3a3eb7591a41f741e45212b5c",
9
+ "size": 294720528
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "7852f1ae0efb64d46d77a57d8852daddc4a6ffb58aeda6267bd3f3428adc09b3",
14
- "size": 298977312
13
+ "checksum": "7c7c6179f55c985409af4c31603d19b9b64af4759d016f86b99bfbdb29042a90",
14
+ "size": 303439136
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "2664006219497bf7021ac43156519cd42eda64ceb2a66f434ecab83e7831f942",
19
- "size": 305118136
18
+ "checksum": "4ee7c484b11dece6521aa2173a19ea913428c1c78599186d62559d2d2aef4e32",
19
+ "size": 308795592
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "d535985e6941a3eb00179ccd7f52ceb0c6623a0305a518ebc4e6514f84a94c99",
24
- "size": 308521992
23
+ "checksum": "47a01daebf794f6c86c13d1875ad6e5be0627029ad8600731161f24018ecde5b",
24
+ "size": 311175440
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "1b8034fb30c90ea7471d6403bc610cb5173b7dedab3a92e89f6a91430c481876",
29
- "size": 298431848
28
+ "checksum": "86ed7da9b24c031a1556bebd39cc85222464b302cdc6daf5ea3a0d67232cdd3a",
29
+ "size": 302202424
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "0285be21af52692e5d1ea2199171b45fc85d9ca62fb4a2d9f2c244c2bbca8de7",
34
- "size": 303129168
33
+ "checksum": "48f84557c5d783197ef1773e7657eb0a94f97912f7a2acdfc03e1eb8cef770cd",
34
+ "size": 305483520
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "841efce70b048ae03c752f79000cb6be5c2c2c4d0478f3eaaa762494ade9daf5",
39
- "size": 296308896
38
+ "checksum": "99dbf97ef1b03ca94db818977bfc0970889bb5bbe6e981405a55f225d0fbf603",
39
+ "size": 307186848
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "e1d23400b3eef8f7b2ddde782ce4d3153aa88b5397d0f42813b8abbe0b47cbcd",
44
- "size": 290981024
43
+ "checksum": "31ccb25750b09fbeb052a3e82d100b7c1c1119e017fd130fad0a878b99b43547",
44
+ "size": 296566432
45
45
  }
46
46
  },
47
47
  "sdkCompat": {
48
48
  "testedWrapperVersions": [
49
- "0.3.187",
50
- "0.3.190",
51
- "0.3.191",
52
49
  "0.3.195",
53
50
  "0.3.196",
54
51
  "0.3.197",
@@ -75,7 +72,8 @@
75
72
  "0.3.220",
76
73
  "0.3.221",
77
74
  "0.3.222",
78
- "0.3.226"
75
+ "0.3.226",
76
+ "0.3.227"
79
77
  ],
80
78
  "harnessSchema": 1
81
79
  }
package/manifest.zst.json CHANGED
@@ -1,62 +1,55 @@
1
1
  {
2
- "version": "2.1.228",
3
- "commit": "4a2077e9c39676b5c335919018dda18f476a7f70",
4
- "buildDate": "2026-08-11T01:56:29Z",
2
+ "version": "2.1.231",
3
+ "commit": "bbff368ec698dbfacfcc9caae5eca91c30f299c3",
4
+ "buildDate": "2026-08-13T07:43:07Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude.zst",
8
- "checksum": "21df99480ffce8781bd357d6f3f2844b03a81ac3f71727ffd1d3e0d6cc765bbf",
9
- "size": 57935761,
10
- "bundle": {
11
- "checksum": "95d8bc5a12b9c21564c55709295a1d8de9a7532bcd2e7dc031b33a6f8eceee4d",
12
- "size": 57935873
13
- }
8
+ "checksum": "f7df2e7a5e10c6b30eb74f433499d0b61b637e6fba06a439bc3ad70d98e9651b",
9
+ "size": 59228076
14
10
  },
15
11
  "darwin-x64": {
16
12
  "binary": "claude.zst",
17
- "checksum": "5266fd1abe8b8cea84c1a4f859a0adeffd23beb99b8d85b1539ca2449a3df008",
18
- "size": 62783370,
13
+ "checksum": "caab938e4b7fb42b40d3be0506582095f5d8afaf58789d3724eb43f2b11d4033",
14
+ "size": 63693914,
19
15
  "bundle": {
20
- "checksum": "b8ae6943413bf0051dc36ba247b8fc93bca1627788ee943dd8551cfcf3a87a3f",
21
- "size": 62791085
16
+ "checksum": "0eb8bb732c8550b7b3ede230be5fb7d5d2311e424ed5a3623654688ab14666a0",
17
+ "size": 63702294
22
18
  }
23
19
  },
24
20
  "linux-arm64": {
25
21
  "binary": "claude.zst",
26
- "checksum": "271ec60acbb9b5a2aa7ed0377efe5b59bc5f886abcb18641a9e658326e9b62c4",
27
- "size": 67104530
22
+ "checksum": "0023f965cb19be1ef0a1a1c471f92a33ba34937ea65ddcafeea4191251b685a0",
23
+ "size": 67583072
28
24
  },
29
25
  "linux-x64": {
30
26
  "binary": "claude.zst",
31
- "checksum": "7d8f14807313c7e49391def5437e8d0114ac8e6bbe37d69de19b6a820721e78f",
32
- "size": 68448270
27
+ "checksum": "be9a0c67734346d860cc8b06844137fc1a7dffc4e6a582e93c2f2f4101d3d565",
28
+ "size": 68585026
33
29
  },
34
30
  "linux-arm64-musl": {
35
31
  "binary": "claude.zst",
36
- "checksum": "4fdea2b6f3a078db41fdd4683e7662fe6fd546a678e0f6d7d8085c73a8b466b3",
37
- "size": 65900011
32
+ "checksum": "5bfebf97a91e0925ff26d04c207bfa3e395b5ace1ccb86c8848ee83122b88586",
33
+ "size": 66269166
38
34
  },
39
35
  "linux-x64-musl": {
40
36
  "binary": "claude.zst",
41
- "checksum": "4be5575eaae712ee5a3215104837bc24b92856454e14fa00c3e3fa8e13da085a",
42
- "size": 67280962
37
+ "checksum": "ea631084499480479a5e281b1fc523075c90ad37d16342c707d4593cb8e07ca3",
38
+ "size": 67330424
43
39
  },
44
40
  "win32-x64": {
45
41
  "binary": "claude.exe.zst",
46
- "checksum": "9dfbd1c18bab440bd92f1aac6080e81b20ef37b9042b64b0dd9ce73961abdca8",
47
- "size": 68451362
42
+ "checksum": "b85ac7e2906f997d9e3eb1ea0ca90c757fd5923865eb9ea3273beabff3893f28",
43
+ "size": 71049103
48
44
  },
49
45
  "win32-arm64": {
50
46
  "binary": "claude.exe.zst",
51
- "checksum": "135dc669e2edbe2edab2d262316fd07e0fff0b554547050d08091c412ee2e8e7",
52
- "size": 66489564
47
+ "checksum": "9d607b7c10fa947c66411b23e48affbe6f3a0719136457a17d66e1e13b012d64",
48
+ "size": 67761881
53
49
  }
54
50
  },
55
51
  "sdkCompat": {
56
52
  "testedWrapperVersions": [
57
- "0.3.187",
58
- "0.3.190",
59
- "0.3.191",
60
53
  "0.3.195",
61
54
  "0.3.196",
62
55
  "0.3.197",
@@ -83,7 +76,8 @@
83
76
  "0.3.220",
84
77
  "0.3.221",
85
78
  "0.3.222",
86
- "0.3.226"
79
+ "0.3.226",
80
+ "0.3.227"
87
81
  ],
88
82
  "harnessSchema": 1
89
83
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-agent-sdk",
3
- "version": "0.3.228",
3
+ "version": "0.3.231",
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.228",
61
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.228",
62
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.228",
63
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.228",
64
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.228",
65
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.228",
66
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.228",
67
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.228"
60
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.231",
61
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.231",
62
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.231",
63
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.231",
64
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.231",
65
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.231",
66
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.231",
67
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.231"
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.228"
83
+ "claudeCodeVersion": "2.1.231"
84
84
  }
package/sdk-tools.d.ts CHANGED
@@ -46,6 +46,7 @@ export type ToolInputSchemas =
46
46
  | ScheduleWakeupInput
47
47
  | RemoteTriggerInput
48
48
  | ShowOnboardingRolePickerInput
49
+ | ReadNotificationsInput
49
50
  | MonitorInput
50
51
  | ProposeSkillsInput
51
52
  | ProposeGoalInput
@@ -85,6 +86,7 @@ export type ToolOutputSchemas =
85
86
  | ArtifactOutput
86
87
  | RemoteTriggerOutput
87
88
  | ShowOnboardingRolePickerOutput
89
+ | ReadNotificationsOutput
88
90
  | ScheduleWakeupOutput
89
91
  | MonitorOutput
90
92
  | ProposeSkillsOutput
@@ -2687,6 +2689,7 @@ export interface RemoteTriggerInput {
2687
2689
  };
2688
2690
  }
2689
2691
  export interface ShowOnboardingRolePickerInput {}
2692
+ export interface ReadNotificationsInput {}
2690
2693
  export interface MonitorInput {
2691
2694
  /**
2692
2695
  * Short human-readable description of what you are monitoring (shown in notifications).
@@ -3695,6 +3698,30 @@ export interface ShowOnboardingRolePickerOutput {
3695
3698
  role?: string;
3696
3699
  dismissed?: boolean;
3697
3700
  }
3701
+ export interface ReadNotificationsOutput {
3702
+ notifications: {
3703
+ /**
3704
+ * Server-assigned stable id — the dedup key across redeliveries.
3705
+ */
3706
+ notification_id: string;
3707
+ /**
3708
+ * Server-attested source token: "github_webhook" | "trigger_fire" | "mcp_send_message" (open set; unknown well-formed tokens pass through verbatim, off-grammar values coerce to "unknown").
3709
+ */
3710
+ origin: string;
3711
+ /**
3712
+ * RFC3339 timestamp of when the backend queued it.
3713
+ */
3714
+ queued_at: string;
3715
+ /**
3716
+ * Verbatim notification body.
3717
+ */
3718
+ content: string;
3719
+ }[];
3720
+ /**
3721
+ * Notifications still queued after this drain (drains are size-budgeted); call the tool again to read them.
3722
+ */
3723
+ remaining: number;
3724
+ }
3698
3725
  export interface ScheduleWakeupOutput {
3699
3726
  /**
3700
3727
  * Epoch ms timestamp when the next wakeup will fire
package/sdk.d.ts CHANGED
@@ -4617,6 +4617,10 @@ export declare type SDKSystemMessage = {
4617
4617
  */
4618
4618
  permissionMode: PermissionMode;
4619
4619
  slash_commands: string[];
4620
+ /**
4621
+ * Subset of slash_commands whose UX is bound to the local terminal (e.g. exit, statusline). Phone/remote UIs should hide these from command menus; desktop surfaces may keep them. Present only when non-empty; absent on CLIs that predate the field, and on sessions where no advertised command carries the tag.
4622
+ */
4623
+ terminal_slash_commands?: string[];
4620
4624
  output_style: string;
4621
4625
  skills: string[];
4622
4626
  plugins: {
@@ -4634,7 +4638,7 @@ export declare type SDKSystemMessage = {
4634
4638
  fast_mode_state?: FastModeState;
4635
4639
  fast_mode_disabled_reason?: FastModeDisabledReason;
4636
4640
  /**
4637
- * Protocol capabilities this CLI supports, so SDK consumers can feature-detect instead of version-sniffing. Open set — ignore unknown values; check each capability for exactly the behavior you use. 'interrupt_receipt_v1' = the interrupt control_response success payload carries still_queued (uuids of async user messages that survive the interrupt). 'interrupt_cancel_queued_v1' = the interrupt control_request honors cancel_queued:true (queued and pending-dispatch commands are cancelled alongside the abort, listed on the response's cancelled field; still_queued is always empty — including any uuid that was mid-fold at the interrupt instant, since this request also aborts and the fold never delivers it). Absent on older CLIs.
4641
+ * Protocol capabilities this CLI supports, so SDK consumers can feature-detect instead of version-sniffing. Open set — ignore unknown values; check each capability for exactly the behavior you use. 'interrupt_receipt_v1' = the interrupt control_response success payload carries still_queued (uuids of async user messages that survive the interrupt). 'interrupt_cancel_queued_v1' = the interrupt control_request honors cancel_queued:true (queued and pending-dispatch commands are cancelled alongside the abort, listed on the response's cancelled field; still_queued is always empty — including any uuid that was mid-fold at the interrupt instant, since this request also aborts and the fold never delivers it). 'queued_notifications' = the CLI accepts inbound queued_notification stream messages and drains them via ReadNotifications (the CCR backend reads this from the persisted init event to decide whether it may send them). Absent on older CLIs.
4638
4642
  */
4639
4643
  capabilities?: string[];
4640
4644
 
@@ -5254,6 +5258,7 @@ export declare interface Settings {
5254
5258
  * 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.
5255
5259
  */
5256
5260
  sessionUrl?: boolean;
5261
+ [k: string]: unknown;
5257
5262
  };
5258
5263
  /**
5259
5264
  * Deprecated: Use attribution instead. Whether to include Claude's co-authored by attribution in commits and PRs (defaults to true)
@@ -5912,6 +5917,20 @@ export declare interface Settings {
5912
5917
  * SHA-256 digest of the archive. When set, every download is verified against it and the install is refused on mismatch. It also serves as the version identity when neither plugin.json nor the marketplace entry declares a `version`. Recommended. Note the update signal is the version string (plugin.json version, else the entry version, else this digest) — changing only the digest while a version is declared does not trigger an update.
5913
5918
  */
5914
5919
  sha256?: string;
5920
+ } | {
5921
+ source: 'command';
5922
+ /**
5923
+ * Shell command that prints the absolute path of the plugin directory on stdout (exactly one line) and exits 0. It must leave a complete plugin in that directory before exiting; the directory is copied into the plugin cache, so the printed path may change between runs (it is re-resolved on every install and update, and once per session in the background). Runs through the platform shell (sh on macOS/Linux, cmd.exe on Windows) from the user's home directory with Claude Code's subprocess environment.
5924
+ */
5925
+ command: string;
5926
+ /**
5927
+ * Seconds to wait for the command before giving up (default: 60)
5928
+ */
5929
+ timeout?: number;
5930
+ /**
5931
+ * copy (default): the printed directory is copied into the plugin cache and content-hashed, so it may be deleted afterwards. link: the cache entry links to the printed directory in place (no copy, no size limit; macOS/Linux) — for large exports; the directory must then stay valid while Claude Code runs, and a different printed path is what signals new content.
5932
+ */
5933
+ mode?: 'copy' | 'link';
5915
5934
  } | {
5916
5935
  source: 'unsupported';
5917
5936
  error?: string;
@@ -6123,6 +6142,20 @@ export declare interface Settings {
6123
6142
  * SHA-256 digest of the archive. When set, every download is verified against it and the install is refused on mismatch. It also serves as the version identity when neither plugin.json nor the marketplace entry declares a `version`. Recommended. Note the update signal is the version string (plugin.json version, else the entry version, else this digest) — changing only the digest while a version is declared does not trigger an update.
6124
6143
  */
6125
6144
  sha256?: string;
6145
+ } | {
6146
+ source: 'command';
6147
+ /**
6148
+ * Shell command that prints the absolute path of the plugin directory on stdout (exactly one line) and exits 0. It must leave a complete plugin in that directory before exiting; the directory is copied into the plugin cache, so the printed path may change between runs (it is re-resolved on every install and update, and once per session in the background). Runs through the platform shell (sh on macOS/Linux, cmd.exe on Windows) from the user's home directory with Claude Code's subprocess environment.
6149
+ */
6150
+ command: string;
6151
+ /**
6152
+ * Seconds to wait for the command before giving up (default: 60)
6153
+ */
6154
+ timeout?: number;
6155
+ /**
6156
+ * copy (default): the printed directory is copied into the plugin cache and content-hashed, so it may be deleted afterwards. link: the cache entry links to the printed directory in place (no copy, no size limit; macOS/Linux) — for large exports; the directory must then stay valid while Claude Code runs, and a different printed path is what signals new content.
6157
+ */
6158
+ mode?: 'copy' | 'link';
6126
6159
  } | {
6127
6160
  source: 'unsupported';
6128
6161
  error?: string;
@@ -6324,6 +6357,20 @@ export declare interface Settings {
6324
6357
  * SHA-256 digest of the archive. When set, every download is verified against it and the install is refused on mismatch. It also serves as the version identity when neither plugin.json nor the marketplace entry declares a `version`. Recommended. Note the update signal is the version string (plugin.json version, else the entry version, else this digest) — changing only the digest while a version is declared does not trigger an update.
6325
6358
  */
6326
6359
  sha256?: string;
6360
+ } | {
6361
+ source: 'command';
6362
+ /**
6363
+ * Shell command that prints the absolute path of the plugin directory on stdout (exactly one line) and exits 0. It must leave a complete plugin in that directory before exiting; the directory is copied into the plugin cache, so the printed path may change between runs (it is re-resolved on every install and update, and once per session in the background). Runs through the platform shell (sh on macOS/Linux, cmd.exe on Windows) from the user's home directory with Claude Code's subprocess environment.
6364
+ */
6365
+ command: string;
6366
+ /**
6367
+ * Seconds to wait for the command before giving up (default: 60)
6368
+ */
6369
+ timeout?: number;
6370
+ /**
6371
+ * copy (default): the printed directory is copied into the plugin cache and content-hashed, so it may be deleted afterwards. link: the cache entry links to the printed directory in place (no copy, no size limit; macOS/Linux) — for large exports; the directory must then stay valid while Claude Code runs, and a different printed path is what signals new content.
6372
+ */
6373
+ mode?: 'copy' | 'link';
6327
6374
  } | {
6328
6375
  source: 'unsupported';
6329
6376
  error?: string;
@@ -6347,6 +6394,10 @@ export declare interface Settings {
6347
6394
  url?: string;
6348
6395
  };
6349
6396
  })[];
6397
+ /**
6398
+ * Controls the `command` plugin source, whose plugin directory is produced by running a marketplace-declared command on this machine. true: command-sourced plugins are never installed, updated, or re-resolved (the command never runs). false: explicitly allowed. Unset: follows allowManagedHooksOnly — an org that restricts hook execution to managed settings gets command sources disabled too. Only honored from managed settings.
6399
+ */
6400
+ disableCommandPluginSources?: boolean;
6350
6401
  /**
6351
6402
  * When true (and set in managed settings), rejects the --plugin-dir, --plugin-url, --agents, and non-sdk --mcp-config CLI flags at startup. Closes the CLI-flag bypass of strictKnownMarketplaces. Pair with allowedMcpServers for per-server MCP control; this setting does not gate other MCP entry points (SDK setMcpServers, claude mcp add, .mcp.json). Also blocks surfaces that spawn the CLI with these flags internally (see settings documentation). Only honored from managed settings; ignored in user/project/local settings.
6352
6403
  */