@anthropic-ai/claude-code 2.1.225 → 2.1.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.
Files changed (2) hide show
  1. package/package.json +9 -9
  2. package/sdk-tools.d.ts +40 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-code",
3
- "version": "2.1.225",
3
+ "version": "2.1.227",
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.225",
25
- "@anthropic-ai/claude-code-darwin-x64": "2.1.225",
26
- "@anthropic-ai/claude-code-linux-x64": "2.1.225",
27
- "@anthropic-ai/claude-code-linux-arm64": "2.1.225",
28
- "@anthropic-ai/claude-code-linux-x64-musl": "2.1.225",
29
- "@anthropic-ai/claude-code-linux-arm64-musl": "2.1.225",
30
- "@anthropic-ai/claude-code-win32-x64": "2.1.225",
31
- "@anthropic-ai/claude-code-win32-arm64": "2.1.225"
24
+ "@anthropic-ai/claude-code-darwin-arm64": "2.1.227",
25
+ "@anthropic-ai/claude-code-darwin-x64": "2.1.227",
26
+ "@anthropic-ai/claude-code-linux-x64": "2.1.227",
27
+ "@anthropic-ai/claude-code-linux-arm64": "2.1.227",
28
+ "@anthropic-ai/claude-code-linux-x64-musl": "2.1.227",
29
+ "@anthropic-ai/claude-code-linux-arm64-musl": "2.1.227",
30
+ "@anthropic-ai/claude-code-win32-x64": "2.1.227",
31
+ "@anthropic-ai/claude-code-win32-arm64": "2.1.227"
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
@@ -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