@anthropic-ai/claude-agent-sdk 0.3.246 → 0.3.247

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,52 +1,51 @@
1
1
  {
2
- "version": "2.1.246",
3
- "commit": "1ba9d2211ae14e591bd1d60451c217c51f415e86",
4
- "buildDate": "2026-08-25T18:46:33Z",
2
+ "version": "2.1.247",
3
+ "commit": "89c726188daf6407b6b57bf67d312f2958e5b9f2",
4
+ "buildDate": "2026-08-26T06:08:58Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude",
8
- "checksum": "7b09f01cb76a38e0e3a7c47c5d698d382162a5ff26538fc778683770caf9218b",
9
- "size": 230824016
8
+ "checksum": "5086b9b64d8bb842e1f599cdd3767ab08c6b2266e462fcc5686ae4b019cca8f7",
9
+ "size": 233073008
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "336625850986371487de7ece776d583f36cc3b3bc7178fcfbde3656d010289fb",
14
- "size": 239710512
13
+ "checksum": "162e65d7bf8735dbcdc75b0122dbb126d5704a00e682bbdfc413749188a20cfd",
14
+ "size": 241972656
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "f98296e6e61c507589d1a973b262976b734700ec4e055cb64afdbf6d9a337db7",
19
- "size": 247389632
18
+ "checksum": "a68bb633f85e4a0e73465952ea624cf18992c3fa4db615feeb942ffad57d082a",
19
+ "size": 249617856
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "1a0a662dc1bb938eaec38545abce9a4a69113d7d7f7c5e1a553ea276617b906a",
24
- "size": 247905800
23
+ "checksum": "5fb321bf417ffc5cd4e3f36e7c9c7e029bf47aaa36d5621db979fcc5e6eabe15",
24
+ "size": 250162696
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "8f7d77a91b95dbeda31393463b2ac7d2b490c577486829b732ce1ac41a747034",
29
- "size": 240072248
28
+ "checksum": "7c776ebf17adf53a1a6c844356e9713c0a40826b563df6fd670bce00c3f768f8",
29
+ "size": 242300472
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "81de46c50d987b99d2a1b4f3b11f3acf8c6deb57bef2a41f8e770837ddcf52fb",
34
- "size": 241667960
33
+ "checksum": "8bb6b5b1c6c4f08f9c5047153425c32d5041180065537f3da78f6fadf42b40ee",
34
+ "size": 243924856
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "9f07f1ecaf26231fc2fac489e7c5214140d38fd14764938a2c8c46f31931d204",
39
- "size": 250948768
38
+ "checksum": "00e5be0a8b69893cad9259a1e8b80d59be8f3eb367d4a16c19f91bcd279423b7",
39
+ "size": 253204128
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "911036439b49e81c5801092764e803207fc56b4e690afadb743f51220c2f8201",
44
- "size": 242062496
43
+ "checksum": "a6b097f8cfb742f66cced452fc9260a6302637379813c06a4f4516aa2c4917f7",
44
+ "size": 244317344
45
45
  }
46
46
  },
47
47
  "sdkCompat": {
48
48
  "testedWrapperVersions": [
49
- "0.3.209",
50
49
  "0.3.210",
51
50
  "0.3.211",
52
51
  "0.3.212",
package/manifest.zst.json CHANGED
@@ -1,60 +1,59 @@
1
1
  {
2
- "version": "2.1.246",
3
- "commit": "1ba9d2211ae14e591bd1d60451c217c51f415e86",
4
- "buildDate": "2026-08-25T18:47:52Z",
2
+ "version": "2.1.247",
3
+ "commit": "89c726188daf6407b6b57bf67d312f2958e5b9f2",
4
+ "buildDate": "2026-08-26T06:10:18Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude.zst",
8
- "checksum": "1978b0b0167e7c077ae2536ed757a4dc22226540e3390bbc0884dc2ed3b9a0e3",
9
- "size": 68186320,
8
+ "checksum": "8ca071dbb165f818b1091d0756932aa7307d19a80c2db540b3e9c501c39bcf7a",
9
+ "size": 68851450,
10
10
  "bundle": {
11
- "checksum": "beec443ec1fc0f6989e5ddcf25b032cdccceb8ca76e86b4ce90808ce88aacc89",
12
- "size": 68190259
11
+ "checksum": "5298653b09fe0f382fd79f8fbe5a48d474b6df563665b40b160153ab156cd35f",
12
+ "size": 68850320
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "b6269818f05c61f86029a018c39ed0903a5d69ad0eed6c0f05df7a79dd10c6ae",
18
- "size": 72456477,
17
+ "checksum": "c739be8ab289e634bf8a8a2028a68284b32e4ac46e2ee4424227ef46133ee687",
18
+ "size": 73132830,
19
19
  "bundle": {
20
- "checksum": "0f2691f9212e25422ed694d2eb6890030f27d1574b46af7d92d8b239127d3cba",
21
- "size": 72465121
20
+ "checksum": "f413c2596ffc2b7cb188b581e7e5105b34dbca7a7d5147c2621f344b9197d89e",
21
+ "size": 73136601
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "68915f3c07ad0090466282d580df4f4a11b339cee26888ed25f9446bbbef5c91",
27
- "size": 77461718
26
+ "checksum": "8e0d209f53fbe56d6b3202015e2551195c98b3c1a945b4c0c0727a398df6c879",
27
+ "size": 78087034
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "7fb5cc4ea9eb02c777a4d6363907957253fec6ee79617d145a142fbcc7e8c438",
32
- "size": 78105392
31
+ "checksum": "5bff56908157f2dde2bd0577d282da70e0be7f49284a6e89975aa1246505054c",
32
+ "size": 78728740
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "74583317118d09d3a263593b18420e7c67cd49844f59cc6b403377b2bf27bbe6",
37
- "size": 75912733
36
+ "checksum": "7c09aa7ac6e4361d4c5cc2f05a2f8a46d8338b1f8f8477674205f35aaeb755ea",
37
+ "size": 76536663
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "8527572efb30d0e23a84f0871cc61d586f21400fcd3ca9e82f30c754bf6dfa10",
42
- "size": 76577839
41
+ "checksum": "55faf4b75c8d565be5912857ff8b3b20451d70cadcce427c332b51263ea64754",
42
+ "size": 77199333
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "4b49b5f1c4227009a57886d94f41fa887dafe0eaa4cb36252aed3954da663418",
47
- "size": 80499903
46
+ "checksum": "6762311bd9602259cf8e98bda35cb37f15b4c884e7032cf99a2c18984d02efb1",
47
+ "size": 81115442
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "d01182540877177cdf600be238069a11479f31b2fb4f76b736108b38e0e1ccd0",
52
- "size": 77290190
51
+ "checksum": "6b3b4e4ac6bfdf2515cb6cb7d0bc2640c7375d6bd4c9a5500e8bfdd9c0db3ddd",
52
+ "size": 77905662
53
53
  }
54
54
  },
55
55
  "sdkCompat": {
56
56
  "testedWrapperVersions": [
57
- "0.3.209",
58
57
  "0.3.210",
59
58
  "0.3.211",
60
59
  "0.3.212",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-agent-sdk",
3
- "version": "0.3.246",
3
+ "version": "0.3.247",
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.246",
61
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.246",
62
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.246",
63
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.246",
64
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.246",
65
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.246",
66
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.246",
67
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.246"
60
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.247",
61
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.247",
62
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.247",
63
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.247",
64
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.247",
65
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.247",
66
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.247",
67
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.247"
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.246"
83
+ "claudeCodeVersion": "2.1.247"
84
84
  }
package/sdk-tools.d.ts CHANGED
@@ -103,22 +103,6 @@ export type ToolOutputSchemas =
103
103
  export type AgentOutput =
104
104
  | {
105
105
  agentId: string;
106
- /**
107
- * @internal Count of leading harness-authored content blocks (hand-back provenance bookkeeping; not a stable consumer field)
108
- */
109
- harnessNoteCount?: number;
110
- /**
111
- * @internal Count of trailing harness-authored content blocks (hand-back provenance bookkeeping; not a stable consumer field)
112
- */
113
- harnessTailCount?: number;
114
- /**
115
- * @internal Fingerprint binding the harness section counts to the exact content they were computed against; a hook rewrite invalidates the counts rather than misplacing rewritten bytes
116
- */
117
- harnessSectionHash?: string;
118
- /**
119
- * @internal The handoff review was skipped because the provenance frame covers this delivery (tengu_auto_mode_config.classifyHandoff: false); the tool_result mapper MUST compose the frame when set, regardless of a fresh flag read
120
- */
121
- handoffReviewSkipped?: boolean;
122
106
  agentType?: string;
123
107
  content: {
124
108
  type: "text";
@@ -3237,7 +3221,7 @@ export interface BashOutput {
3237
3221
  */
3238
3222
  ghRateLimitHint?: string;
3239
3223
  /**
3240
- * @internal Structured classification of git/gh operations detected in this command (commit/push/merge/rebase/PR). Client-facing — lets clients render git activity without re-parsing stdout; not surfaced to the model.
3224
+ * Structured classification of git/gh operations detected in this command (commit/push/merge/rebase/PR). Client-facing — lets clients render git activity without re-parsing stdout; not surfaced to the model.
3241
3225
  */
3242
3226
  gitOperation?: {
3243
3227
  commit?: {
package/sdk.d.ts CHANGED
@@ -3154,7 +3154,7 @@ export declare type SDKAuthStatusMessage = {
3154
3154
  };
3155
3155
 
3156
3156
  /**
3157
- * The full set of live background tasks, emitted whenever membership changes (start, completion, kill, a foreground agent being backgrounded). A level signal, unlike the task_started/task_notification edge bookends: consumers that only need 'is background work running' should replace their set with each payload rather than pairing edges, so a missed bookend cannot wedge a stale running indicator. Ordering relative to the bookends for the same transition is unspecified (in practice the level precedes them) and the payload carries ids only, so do not correlate it with the edge stream. The level is per-process: nothing is emitted at startup, so consumers must reset to the empty set whenever the session's CLI process (re)starts and let the next membership change repopulate it. A host that re-initializes an already-running process (a repeated `initialize` control request, e.g. after reconnecting) is sent a snapshot of the current set right behind the success response to that request, even when it is empty, so it need not wait for a change; CLIs that predate this send nothing there.
3157
+ * The full set of live background tasks, emitted whenever membership changes (start, completion, kill, a foreground agent being backgrounded) or an entry's `ambient` flag flips. A level signal, unlike the task_started/task_notification edge bookends: consumers that only need 'is background work running' should replace their set with each payload rather than pairing edges, so a missed bookend cannot wedge a stale running indicator. Ordering relative to the bookends for the same transition is unspecified (in practice the level precedes them) and the payload carries ids only, so do not correlate it with the edge stream. The level is per-process: nothing is emitted at startup, so consumers must reset to the empty set whenever the session's CLI process (re)starts and let the next membership change repopulate it. A host that re-initializes an already-running process (a repeated `initialize` control request, e.g. after reconnecting) is sent a snapshot of the current set right behind the success response to that request, even when it is empty, so it need not wait for a change; CLIs that predate this send nothing there.
3158
3158
  */
3159
3159
  export declare type SDKBackgroundTasksChangedMessage = {
3160
3160
  type: 'system';
@@ -3166,6 +3166,10 @@ export declare type SDKBackgroundTasksChangedMessage = {
3166
3166
  task_id: string;
3167
3167
  task_type: string;
3168
3168
  description: string;
3169
+ /**
3170
+ * True for housekeeping tasks the CLI does not surface as user work (every skip_transcript task, plus auto-started live-update watchers); hosts should exclude them from activity indicators.
3171
+ */
3172
+ ambient?: boolean;
3169
3173
  }[];
3170
3174
  uuid: UUID;
3171
3175
  session_id: string;
@@ -4877,6 +4881,7 @@ export declare type SDKSystemMessage = {
4877
4881
 
4878
4882
 
4879
4883
 
4884
+
4880
4885
  uuid: UUID;
4881
4886
  session_id: string;
4882
4887
  };
@@ -4895,6 +4900,10 @@ export declare type SDKTaskNotificationMessage = {
4895
4900
  duration_ms: number;
4896
4901
  };
4897
4902
  skip_transcript?: boolean;
4903
+ /**
4904
+ * True for housekeeping tasks the CLI does not surface as user work (every skip_transcript task, plus auto-started live-update watchers); hosts should exclude them from activity indicators.
4905
+ */
4906
+ ambient?: boolean;
4898
4907
  uuid: UUID;
4899
4908
  session_id: string;
4900
4909
  };
@@ -4949,6 +4958,10 @@ export declare type SDKTaskStartedMessage = {
4949
4958
  * Ambient/housekeeping task. Consumers should hide this from the inline transcript; it may still appear in a tasks panel.
4950
4959
  */
4951
4960
  skip_transcript?: boolean;
4961
+ /**
4962
+ * True for housekeeping tasks the CLI does not surface as user work (every skip_transcript task, plus auto-started live-update watchers); hosts should exclude them from activity indicators.
4963
+ */
4964
+ ambient?: boolean;
4952
4965
  uuid: UUID;
4953
4966
  session_id: string;
4954
4967
  };
@@ -7469,11 +7482,22 @@ export declare interface Settings {
7469
7482
  verbs: string[];
7470
7483
  };
7471
7484
  /**
7472
- * Override spinner tips. tips: array of tip strings. excludeDefault: if true, only show custom tips (default: false).
7485
+ * Add your organization's own tips to the spinner tip rotation. tips: strings or {id, text, cooldownSessions?, priority?} objects; tipsFile: a JSON file of the same; label: prefix shown before your tips; excludeDefault: if true, only show your tips (default: false).
7473
7486
  */
7474
7487
  spinnerTipsOverride?: {
7475
7488
  excludeDefault?: boolean;
7476
- tips: string[];
7489
+ tips?: (string | {
7490
+ [k: string]: unknown;
7491
+ })[];
7492
+ /**
7493
+ * Absolute or ~/ local path to a JSON file holding an array of tips (same shapes as `tips`); honored from user, --settings and on-disk managed settings only. Read once per CLI process (restart to pick up edits).
7494
+ */
7495
+ tipsFile?: string;
7496
+ /**
7497
+ * Prefix shown before your tips in the spinner (default "Tip")
7498
+ */
7499
+ label?: string;
7500
+ [k: string]: unknown;
7477
7501
  };
7478
7502
  /**
7479
7503
  * Whether to disable syntax highlighting in diffs