@anthropic-ai/claude-code 2.1.227 → 2.1.229

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 +31 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-code",
3
- "version": "2.1.227",
3
+ "version": "2.1.229",
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.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"
24
+ "@anthropic-ai/claude-code-darwin-arm64": "2.1.229",
25
+ "@anthropic-ai/claude-code-darwin-x64": "2.1.229",
26
+ "@anthropic-ai/claude-code-linux-x64": "2.1.229",
27
+ "@anthropic-ai/claude-code-linux-arm64": "2.1.229",
28
+ "@anthropic-ai/claude-code-linux-x64-musl": "2.1.229",
29
+ "@anthropic-ai/claude-code-linux-arm64-musl": "2.1.229",
30
+ "@anthropic-ai/claude-code-win32-x64": "2.1.229",
31
+ "@anthropic-ai/claude-code-win32-arm64": "2.1.229"
32
32
  },
33
33
  "files": [
34
34
  "bin/claude.exe",
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
@@ -129,6 +131,9 @@ export type AgentOutput =
129
131
  inference_geo?: string | null;
130
132
  speed?: string | null;
131
133
  iterations?: unknown;
134
+ output_tokens_details?: {
135
+ thinking_tokens?: number | null;
136
+ } | null;
132
137
  };
133
138
  toolStats?: {
134
139
  readCount: number;
@@ -2684,6 +2689,7 @@ export interface RemoteTriggerInput {
2684
2689
  };
2685
2690
  }
2686
2691
  export interface ShowOnboardingRolePickerInput {}
2692
+ export interface ReadNotificationsInput {}
2687
2693
  export interface MonitorInput {
2688
2694
  /**
2689
2695
  * Short human-readable description of what you are monitoring (shown in notifications).
@@ -2892,7 +2898,7 @@ export interface ArtifactInput {
2892
2898
  */
2893
2899
  scope?: "mine" | "shared" | "all";
2894
2900
  /**
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.
2901
+ * 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.
2896
2902
  */
2897
2903
  title?: string;
2898
2904
  /**
@@ -3692,6 +3698,30 @@ export interface ShowOnboardingRolePickerOutput {
3692
3698
  role?: string;
3693
3699
  dismissed?: boolean;
3694
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
+ }
3695
3725
  export interface ScheduleWakeupOutput {
3696
3726
  /**
3697
3727
  * Epoch ms timestamp when the next wakeup will fire