@anthropic-ai/claude-code 2.1.226 → 2.1.228

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.
Files changed (2) hide show
  1. package/package.json +9 -9
  2. package/sdk-tools.d.ts +43 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-code",
3
- "version": "2.1.226",
3
+ "version": "2.1.228",
4
4
  "bin": {
5
5
  "claude": "bin/claude.exe"
6
6
  },
@@ -21,14 +21,14 @@
21
21
  },
22
22
  "dependencies": {},
23
23
  "optionalDependencies": {
24
- "@anthropic-ai/claude-code-darwin-arm64": "2.1.226",
25
- "@anthropic-ai/claude-code-darwin-x64": "2.1.226",
26
- "@anthropic-ai/claude-code-linux-x64": "2.1.226",
27
- "@anthropic-ai/claude-code-linux-arm64": "2.1.226",
28
- "@anthropic-ai/claude-code-linux-x64-musl": "2.1.226",
29
- "@anthropic-ai/claude-code-linux-arm64-musl": "2.1.226",
30
- "@anthropic-ai/claude-code-win32-x64": "2.1.226",
31
- "@anthropic-ai/claude-code-win32-arm64": "2.1.226"
24
+ "@anthropic-ai/claude-code-darwin-arm64": "2.1.228",
25
+ "@anthropic-ai/claude-code-darwin-x64": "2.1.228",
26
+ "@anthropic-ai/claude-code-linux-x64": "2.1.228",
27
+ "@anthropic-ai/claude-code-linux-arm64": "2.1.228",
28
+ "@anthropic-ai/claude-code-linux-x64-musl": "2.1.228",
29
+ "@anthropic-ai/claude-code-linux-arm64-musl": "2.1.228",
30
+ "@anthropic-ai/claude-code-win32-x64": "2.1.228",
31
+ "@anthropic-ai/claude-code-win32-arm64": "2.1.228"
32
32
  },
33
33
  "files": [
34
34
  "bin/claude.exe",
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
@@ -127,6 +129,9 @@ export type AgentOutput =
127
129
  inference_geo?: string | null;
128
130
  speed?: string | null;
129
131
  iterations?: unknown;
132
+ output_tokens_details?: {
133
+ thinking_tokens?: number | null;
134
+ } | null;
130
135
  };
131
136
  toolStats?: {
132
137
  readCount: number;
@@ -499,7 +504,7 @@ export interface AgentInput {
499
504
  */
500
505
  model?: "sonnet" | "opus" | "haiku" | "fable";
501
506
  /**
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.
507
+ * 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
508
  */
504
509
  run_in_background?: boolean;
505
510
  /**
@@ -2661,11 +2666,19 @@ export interface ScheduleWakeupInput {
2661
2666
  stop?: boolean;
2662
2667
  }
2663
2668
  export interface RemoteTriggerInput {
2664
- action: "list" | "get" | "create" | "update" | "run" | "create_webhook_trigger";
2669
+ action: "list" | "get" | "create" | "update" | "run" | "create_webhook_trigger" | "list_runs" | "get_run_log";
2665
2670
  /**
2666
- * Required for get, update, and run
2671
+ * Required for get, update, run, and list_runs
2667
2672
  */
2668
2673
  trigger_id?: string;
2674
+ /**
2675
+ * Required for get_run_log: a run session id (cse_… or session_…, from list_runs)
2676
+ */
2677
+ session_id?: string;
2678
+ /**
2679
+ * next_cursor from a previous list_runs or get_run_log page
2680
+ */
2681
+ cursor?: string;
2669
2682
  /**
2670
2683
  * Required for create and update; optional for run
2671
2684
  */
@@ -2850,6 +2863,16 @@ export interface ProposeSkillsInput {
2850
2863
  }
2851
2864
  ];
2852
2865
  }
2866
+ export interface ProposeGoalInput {
2867
+ /**
2868
+ * 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.
2869
+ */
2870
+ condition: string;
2871
+ /**
2872
+ * 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.
2873
+ */
2874
+ ask_user?: boolean;
2875
+ }
2853
2876
  export interface ArtifactInput {
2854
2877
  /**
2855
2878
  * 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 +2895,7 @@ export interface ArtifactInput {
2872
2895
  */
2873
2896
  scope?: "mine" | "shared" | "all";
2874
2897
  /**
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.
2898
+ * Title for the artifact — the name shown in the browser tab and gallery. A short, distinctive noun-phrase name — not a generic label, a summary, or a name with an appended explainer. 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
2899
  */
2877
2900
  title?: string;
2878
2901
  /**
@@ -2884,7 +2907,7 @@ export interface ArtifactInput {
2884
2907
  */
2885
2908
  label?: string;
2886
2909
  /**
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.
2910
+ * 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
2911
  */
2889
2912
  url?: string;
2890
2913
  /**
@@ -2956,6 +2979,10 @@ export interface BashOutput {
2956
2979
  * Model-facing note that the session cwd was not changed by a backgrounded command containing a directory-change builtin (cd/pushd/popd/chdir)
2957
2980
  */
2958
2981
  backgroundCwdHint?: string;
2982
+ /**
2983
+ * 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)
2984
+ */
2985
+ backgroundEndsWithFinalResponse?: true;
2959
2986
  /**
2960
2987
  * Flag to indicate if sandbox mode was overridden
2961
2988
  */
@@ -2995,6 +3022,7 @@ export interface BashOutput {
2995
3022
  commit?: {
2996
3023
  sha: string;
2997
3024
  kind: "committed" | "amended" | "cherry-picked";
3025
+ branch?: string;
2998
3026
  };
2999
3027
  push?: {
3000
3028
  branch: string;
@@ -3709,6 +3737,16 @@ export interface ProposeSkillsOutput {
3709
3737
  */
3710
3738
  proposalCount: number;
3711
3739
  }
3740
+ export interface ProposeGoalOutput {
3741
+ /**
3742
+ * The condition shown to the user for approval, or set directly when ask_user was false
3743
+ */
3744
+ condition: string;
3745
+ /**
3746
+ * Whether the user was asked for approval (true) or the goal was set directly (false)
3747
+ */
3748
+ askUser: boolean;
3749
+ }
3712
3750
  export interface EnterPlanModeOutput {
3713
3751
  /**
3714
3752
  * Confirmation that plan mode was entered