@anthropic-ai/claude-agent-sdk 0.3.225 → 0.3.227

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,53 +1,51 @@
1
1
  {
2
- "version": "2.1.225",
3
- "commit": "d4b76e8c52c2391af51b60cc71a513246c40a129",
4
- "buildDate": "2026-08-07T20:01:17Z",
2
+ "version": "2.1.227",
3
+ "commit": "5ecc7d5389d8b682652d0ea32eadd3e0eb537ee8",
4
+ "buildDate": "2026-08-10T19:04:57Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude",
8
- "checksum": "08d6e85dd2b80883bb8da93cbeae3dc79b4704d6b84a05d614bf1ff4a5155b69",
9
- "size": 279661952
8
+ "checksum": "7432511ba3be818e01f23f6eef8630d214a8b618451e188c3c7d61a987eef6c7",
9
+ "size": 285046400
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "0065d7155f83a3a5b0e0153ca3b70ad902b33dc06747c8b4e4d0bad58c6e0ec5",
14
- "size": 289284768
13
+ "checksum": "14484fb9a0480b6b638230685a7d9a248a5339b384a162e0df127e4a4a07249b",
14
+ "size": 294700704
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "209d4279c0a3dbb48bee6017d99430269ec6aba59cd8735b1fda0f9664139a45",
19
- "size": 294566840
18
+ "checksum": "db47335532cbcab67a4b3ab16d8f3f77976bf85d53c7d79f8296538aa22bfce6",
19
+ "size": 300923832
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "0a3be8d18cb0f5357d38ce2d588601753a60b44cc9c622579ed8b8405dee231e",
24
- "size": 297831432
23
+ "checksum": "6832dc3f1797b890b71116e5f2dbbf9a83fd3d0498c235b4b0f9cd0e6e499ad6",
24
+ "size": 304282632
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "9189e2776d4120288b85a6682d2b26910daa4e937baa48bd75afb3fe3115291e",
29
- "size": 287880552
28
+ "checksum": "8284d20a5d61e71502e69836b1598ba03f688f4d8de6c22105055fbf0af118f6",
29
+ "size": 294237544
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "ae2258be1a2d4eeef291514195af5b50a55801cc0561347c3873c4df5c9646f8",
34
- "size": 292438608
33
+ "checksum": "da7b62210da0000c09c7c29b217e166ccc66dad4c79c9e2bc8d52fc7b66f590d",
34
+ "size": 298885712
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "234a59d6ea4262bb4af65d28acf19d795906295d11249750161875fbede3576d",
39
- "size": 287053472
38
+ "checksum": "a5d8bcc6549cf99a2ea35451f8034a12f0db919e63334477c72d42fc8e0d5c09",
39
+ "size": 292227232
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "1152d683ed9ae20d7140ddc2db04d48e5f16ed214e2b07a8bc95c363c7e63bff",
44
- "size": 281726112
43
+ "checksum": "68935d2c971ad417e90f1d5bb503c8773b218c7f7049fe35e502f0180232ff18",
44
+ "size": 286900384
45
45
  }
46
46
  },
47
47
  "sdkCompat": {
48
48
  "testedWrapperVersions": [
49
- "0.3.185",
50
- "0.3.186",
51
49
  "0.3.187",
52
50
  "0.3.190",
53
51
  "0.3.191",
@@ -73,9 +71,11 @@
73
71
  "0.3.216",
74
72
  "0.3.217",
75
73
  "0.3.218",
74
+ "0.3.219",
76
75
  "0.3.220",
77
76
  "0.3.221",
78
- "0.3.222"
77
+ "0.3.222",
78
+ "0.3.226"
79
79
  ],
80
80
  "harnessSchema": 1
81
81
  }
package/manifest.zst.json CHANGED
@@ -1,61 +1,59 @@
1
1
  {
2
- "version": "2.1.225",
3
- "commit": "d4b76e8c52c2391af51b60cc71a513246c40a129",
4
- "buildDate": "2026-08-07T20:03:23Z",
2
+ "version": "2.1.227",
3
+ "commit": "5ecc7d5389d8b682652d0ea32eadd3e0eb537ee8",
4
+ "buildDate": "2026-08-10T19:07:09Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude.zst",
8
- "checksum": "7cef5c083019c8ed8e58505c8987388fca2b97cbd3b156b6be77d3a3b8ae10eb",
9
- "size": 55963833,
8
+ "checksum": "256afdff806d28d027008c351f83986f11b7751fff1e44a52f66480361831542",
9
+ "size": 56884882,
10
10
  "bundle": {
11
- "checksum": "11f2aa153892c0c72b42de714f8b83b5fb65f969649f3c9f594e89d6845245c1",
12
- "size": 55954834
11
+ "checksum": "3b86d1a8f29a404dca144faf0ba1d155ef12f24c08606080a6c7eb85143ca117",
12
+ "size": 56888900
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "3d2774dc46981cf10056bd7dd5adfce9a001d7ad6e46088f90c0e4846071f39e",
18
- "size": 60638677,
17
+ "checksum": "d4299135b0596df5ed10bbf4930995c2a9f0b660c405d119dac783141e9d5778",
18
+ "size": 61653275,
19
19
  "bundle": {
20
- "checksum": "3333a5d1127541eecc8ec0273ee2dd238b35443faa90ba1969276083e6243482",
21
- "size": 60635363
20
+ "checksum": "933dd4335d3db811d863c86b7b2a22d38519d14a46efbbfe207330c5355e15d1",
21
+ "size": 61647726
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "15907252edb6577bda10482e2aa1677928aa243e823ccb6577c5158bbae7f272",
27
- "size": 64830045
26
+ "checksum": "7bc21154bf75a98bb7a2ae6b47f7d2ea8b75e86ef749749519af1fda5a73c7b9",
27
+ "size": 66000031
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "56f6febbbda34e715dcecdc5ad9a2ef8b65f678e735675881f84ecb0ca79a610",
32
- "size": 66133582
31
+ "checksum": "5eebaa5625c306f6c5737b86f6e64f3fa5657269fd8434aea9c00803f97d1547",
32
+ "size": 67310589
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "cc449538fb17e65223c531fdd4b319078c8ed3067356a5df48b64672697eb0fc",
37
- "size": 63542121
36
+ "checksum": "d5300c37aa78600838387fa9b61ed9c5b47d5277706dd832372fe7d9ea24dd0a",
37
+ "size": 64750207
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "74a5cc57c143ef730e284c5b4351bdb26da2f3436be54835a4e3acea29cb3377",
42
- "size": 64976182
41
+ "checksum": "86f3903699da0a604bbaf04d977794207f1a4c2a63b3e2729a6abe342a7a095c",
42
+ "size": 66159367
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "0e62dd09aeccceefade7dee10c2d390718e38da4f61258fe8313d9e687afa67e",
47
- "size": 66322446
46
+ "checksum": "3c0328fc224b2c2e433d144f1c4817a9d92006d97fa747a191f973873cb1cfd3",
47
+ "size": 67271619
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "0dbe13b41228e85c14d9dc6f47b42eeaaaa027d77ce669f4ae9ac01a724a5812",
52
- "size": 64477363
51
+ "checksum": "9850e3fd889489166614e360f9aea02d679062971cbbe489a652bffe8a8bb40c",
52
+ "size": 65421569
53
53
  }
54
54
  },
55
55
  "sdkCompat": {
56
56
  "testedWrapperVersions": [
57
- "0.3.185",
58
- "0.3.186",
59
57
  "0.3.187",
60
58
  "0.3.190",
61
59
  "0.3.191",
@@ -81,9 +79,11 @@
81
79
  "0.3.216",
82
80
  "0.3.217",
83
81
  "0.3.218",
82
+ "0.3.219",
84
83
  "0.3.220",
85
84
  "0.3.221",
86
- "0.3.222"
85
+ "0.3.222",
86
+ "0.3.226"
87
87
  ],
88
88
  "harnessSchema": 1
89
89
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-agent-sdk",
3
- "version": "0.3.225",
3
+ "version": "0.3.227",
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.225",
61
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.225",
62
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.225",
63
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.225",
64
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.225",
65
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.225",
66
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.225",
67
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.225"
60
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.227",
61
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.227",
62
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.227",
63
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.227",
64
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.227",
65
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.227",
66
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.227",
67
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.227"
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.225"
83
+ "claudeCodeVersion": "2.1.227"
84
84
  }
package/sdk-tools.d.ts CHANGED
@@ -48,6 +48,7 @@ export type ToolInputSchemas =
48
48
  | ShowOnboardingRolePickerInput
49
49
  | MonitorInput
50
50
  | ProposeSkillsInput
51
+ | ProposeGoalInput
51
52
  | ArtifactInput
52
53
  | PushNotificationInput
53
54
  | EnterWorktreeInput
@@ -87,6 +88,7 @@ export type ToolOutputSchemas =
87
88
  | ScheduleWakeupOutput
88
89
  | MonitorOutput
89
90
  | ProposeSkillsOutput
91
+ | ProposeGoalOutput
90
92
  | EnterPlanModeOutput
91
93
  | REPLOutput
92
94
  | WorkflowOutput
@@ -499,7 +501,7 @@ export interface AgentInput {
499
501
  */
500
502
  model?: "sonnet" | "opus" | "haiku" | "fable";
501
503
  /**
502
- * Agents run in the background by default; you will be notified when one completes. Set to false to run this agent synchronously when you need its result before continuing.
504
+ * Agents run in the background by default; you will be notified when one completes. Set to false only when your very next action depends on this agent's result and nothing else could usefully happen while it runs — otherwise leave it in the background so the user can hand you other work.
503
505
  */
504
506
  run_in_background?: boolean;
505
507
  /**
@@ -2661,11 +2663,19 @@ export interface ScheduleWakeupInput {
2661
2663
  stop?: boolean;
2662
2664
  }
2663
2665
  export interface RemoteTriggerInput {
2664
- action: "list" | "get" | "create" | "update" | "run" | "create_webhook_trigger";
2666
+ action: "list" | "get" | "create" | "update" | "run" | "create_webhook_trigger" | "list_runs" | "get_run_log";
2665
2667
  /**
2666
- * Required for get, update, and run
2668
+ * Required for get, update, run, and list_runs
2667
2669
  */
2668
2670
  trigger_id?: string;
2671
+ /**
2672
+ * Required for get_run_log: a run session id (cse_… or session_…, from list_runs)
2673
+ */
2674
+ session_id?: string;
2675
+ /**
2676
+ * next_cursor from a previous list_runs or get_run_log page
2677
+ */
2678
+ cursor?: string;
2669
2679
  /**
2670
2680
  * Required for create and update; optional for run
2671
2681
  */
@@ -2850,6 +2860,16 @@ export interface ProposeSkillsInput {
2850
2860
  }
2851
2861
  ];
2852
2862
  }
2863
+ export interface ProposeGoalInput {
2864
+ /**
2865
+ * The completion condition to propose, written so a separate evaluator can verify it from the conversation (e.g. "all tests in test/auth pass (bun test exits 0)"). At most 500 characters — the user must be able to read the whole condition in the approval dialog.
2866
+ */
2867
+ condition: string;
2868
+ /**
2869
+ * Whether to ask the user for approval before the goal is set. Defaults to true — an approval dialog is shown. Set false ONLY when the user's own words in this conversation stated this outcome as what they want; the goal is then set directly, with a visible notice in the transcript, and the user can clear it with /goal clear.
2870
+ */
2871
+ ask_user?: boolean;
2872
+ }
2853
2873
  export interface ArtifactInput {
2854
2874
  /**
2855
2875
  * Omit (or 'publish') to publish file_path. 'list' enumerates artifacts — the user's own by default, see `scope`; only `limit` and `scope` may accompany it.
@@ -2872,7 +2892,7 @@ export interface ArtifactInput {
2872
2892
  */
2873
2893
  scope?: "mine" | "shared" | "all";
2874
2894
  /**
2875
- * Title for the artifact — the name shown in the browser tab and gallery. Prefer a <title> tag in the HTML itself; this parameter fills in only when the file lacks one and never overrides the tag. HTML publishes only — Markdown pages keep their filename identity. Content always comes from file_path — there is no inline content parameter.
2895
+ * Title for the artifact — the name shown in the browser tab and gallery. Prefer a <title> tag at the top of the HTML itself; this parameter fills in only when the file lacks one in the first 8KB of the file, and never overrides the tag. HTML publishes only — Markdown pages keep their filename identity. Content always comes from file_path — there is no inline content parameter.
2876
2896
  */
2877
2897
  title?: string;
2878
2898
  /**
@@ -2884,7 +2904,7 @@ export interface ArtifactInput {
2884
2904
  */
2885
2905
  label?: string;
2886
2906
  /**
2887
- * Existing artifact URL to update in place. Pass whenever the user wants to update an artifact this conversation did not publish — "update my artifact", "keep the same link", a pasted artifact URL — and find the URL with action: "list" if you don't have it; without this, a conversation that didn't publish the artifact always mints a new URL. Omit for new artifacts and same-conversation redeploys. Must be an artifact the user owns.
2907
+ * Existing artifact URL to update in place. Pass whenever the user wants to update an artifact this conversation did not publish — "update my artifact", "keep the same link", a pasted artifact URL — and find the URL with action: "list" or ask the user for the link if you don't have it; without this, the publish creates a separate artifact instead of updating the existing one. Omit for new artifacts and same-conversation redeploys. Must be an artifact the user owns.
2888
2908
  */
2889
2909
  url?: string;
2890
2910
  /**
@@ -2956,6 +2976,10 @@ export interface BashOutput {
2956
2976
  * Model-facing note that the session cwd was not changed by a backgrounded command containing a directory-change builtin (cd/pushd/popd/chdir)
2957
2977
  */
2958
2978
  backgroundCwdHint?: string;
2979
+ /**
2980
+ * True when this backgrounded command is owned by a synchronous subagent and is therefore terminated when that agent gives its final response; absent when the command survives (main loop, async subagents)
2981
+ */
2982
+ backgroundEndsWithFinalResponse?: true;
2959
2983
  /**
2960
2984
  * Flag to indicate if sandbox mode was overridden
2961
2985
  */
@@ -2995,6 +3019,7 @@ export interface BashOutput {
2995
3019
  commit?: {
2996
3020
  sha: string;
2997
3021
  kind: "committed" | "amended" | "cherry-picked";
3022
+ branch?: string;
2998
3023
  };
2999
3024
  push?: {
3000
3025
  branch: string;
@@ -3709,6 +3734,16 @@ export interface ProposeSkillsOutput {
3709
3734
  */
3710
3735
  proposalCount: number;
3711
3736
  }
3737
+ export interface ProposeGoalOutput {
3738
+ /**
3739
+ * The condition shown to the user for approval, or set directly when ask_user was false
3740
+ */
3741
+ condition: string;
3742
+ /**
3743
+ * Whether the user was asked for approval (true) or the goal was set directly (false)
3744
+ */
3745
+ askUser: boolean;
3746
+ }
3712
3747
  export interface EnterPlanModeOutput {
3713
3748
  /**
3714
3749
  * Confirmation that plan mode was entered
package/sdk.d.ts CHANGED
@@ -6322,7 +6322,10 @@ export declare interface Settings {
6322
6322
  * Force a specific login method: "claudeai" for Claude Pro/Max, "console" for Console billing, "gateway" for the Cloud gateway OIDC device flow
6323
6323
  */
6324
6324
  forceLoginMethod?: 'claudeai' | 'console' | 'gateway';
6325
-
6325
+ /**
6326
+ * Cloud gateway URL to pre-fill and auto-connect to during login, alongside forceLoginMethod: "gateway". Honored only from admin-controlled managed settings (MDM / managed-settings.json / policy helper); ignored in user, project, and remote-delivered settings.
6327
+ */
6328
+ forceLoginGatewayUrl?: string;
6326
6329
  /**
6327
6330
  * Controls whether the SDK parent tier (Options.managedSettings / --managed-settings) layers under this admin tier. "first-wins" (default): parent is dropped — admin tiers are the only policy source. "merge": parent's restrictive-only-filtered settings union under the admin winner. Has no effect when no admin tier exists (parent applies as the sole policy tier, still filtered restrictive-only).
6328
6331
  */
@@ -6656,6 +6659,7 @@ export declare interface Settings {
6656
6659
  * Name of an agent (built-in or custom) to use for the main thread. Applies the agent's system prompt, tool restrictions, and model.
6657
6660
  */
6658
6661
  agent?: string;
6662
+
6659
6663
  /**
6660
6664
  * Company announcements to display at startup (one will be randomly selected if multiple are provided)
6661
6665
  */