@anthropic-ai/claude-code 2.1.170 → 2.1.172

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 +37 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-code",
3
- "version": "2.1.170",
3
+ "version": "2.1.172",
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.170",
25
- "@anthropic-ai/claude-code-darwin-x64": "2.1.170",
26
- "@anthropic-ai/claude-code-linux-x64": "2.1.170",
27
- "@anthropic-ai/claude-code-linux-arm64": "2.1.170",
28
- "@anthropic-ai/claude-code-linux-x64-musl": "2.1.170",
29
- "@anthropic-ai/claude-code-linux-arm64-musl": "2.1.170",
30
- "@anthropic-ai/claude-code-win32-x64": "2.1.170",
31
- "@anthropic-ai/claude-code-win32-arm64": "2.1.170"
24
+ "@anthropic-ai/claude-code-darwin-arm64": "2.1.172",
25
+ "@anthropic-ai/claude-code-darwin-x64": "2.1.172",
26
+ "@anthropic-ai/claude-code-linux-x64": "2.1.172",
27
+ "@anthropic-ai/claude-code-linux-arm64": "2.1.172",
28
+ "@anthropic-ai/claude-code-linux-x64-musl": "2.1.172",
29
+ "@anthropic-ai/claude-code-linux-arm64-musl": "2.1.172",
30
+ "@anthropic-ai/claude-code-win32-x64": "2.1.172",
31
+ "@anthropic-ai/claude-code-win32-arm64": "2.1.172"
32
32
  },
33
33
  "files": [
34
34
  "bin/claude.exe",
package/sdk-tools.d.ts CHANGED
@@ -39,7 +39,9 @@ export type ToolInputSchemas =
39
39
  | CronListInput
40
40
  | ScheduleWakeupInput
41
41
  | RemoteTriggerInput
42
+ | ShowOnboardingRolePickerInput
42
43
  | MonitorInput
44
+ | ArtifactInput
43
45
  | PushNotificationInput
44
46
  | EnterWorktreeInput
45
47
  | ExitWorktreeInput
@@ -68,7 +70,9 @@ export type ToolOutputSchemas =
68
70
  | TaskGetOutput
69
71
  | TaskUpdateOutput
70
72
  | TaskListOutput
73
+ | ArtifactOutput
71
74
  | RemoteTriggerOutput
75
+ | ShowOnboardingRolePickerOutput
72
76
  | ScheduleWakeupOutput
73
77
  | MonitorOutput
74
78
  | EnterPlanModeOutput
@@ -2348,6 +2352,7 @@ export interface RemoteTriggerInput {
2348
2352
  [k: string]: unknown;
2349
2353
  };
2350
2354
  }
2355
+ export interface ShowOnboardingRolePickerInput {}
2351
2356
  export interface MonitorInput {
2352
2357
  /**
2353
2358
  * Short human-readable description of what you are monitoring (shown in notifications).
@@ -2366,6 +2371,24 @@ export interface MonitorInput {
2366
2371
  */
2367
2372
  command: string;
2368
2373
  }
2374
+ export interface ArtifactInput {
2375
+ /**
2376
+ * Path to an .html or .md file to render. Use a short, distinctive basename — it is the fallback title if the HTML has no <title>.
2377
+ */
2378
+ file_path: string;
2379
+ /**
2380
+ * Browser-tab icon: one or two emoji (e.g. "📊"). No markup. Keep stable across redeploys; change only on a hard topic pivot.
2381
+ */
2382
+ favicon: string;
2383
+ /**
2384
+ * Short human-readable name for this version (e.g. "fixed-background"). Shown in the version picker instead of the raw version id.
2385
+ */
2386
+ label?: string;
2387
+ /**
2388
+ * Existing artifact URL to redeploy to. Pass when the user gives you a URL for an artifact not published in this session; omit for new artifacts or same-session redeploys. Must be an artifact the user owns.
2389
+ */
2390
+ url?: string;
2391
+ }
2369
2392
  export interface PushNotificationInput {
2370
2393
  /**
2371
2394
  * The notification body. Keep it under 200 characters; mobile OSes truncate.
@@ -2711,6 +2734,10 @@ export interface ReadMcpResourceOutput {
2711
2734
  */
2712
2735
  blobSavedTo?: string;
2713
2736
  }[];
2737
+ /**
2738
+ * Human-readable error when the server could not read the resource
2739
+ */
2740
+ error?: string;
2714
2741
  }
2715
2742
  export interface TodoWriteOutput {
2716
2743
  /**
@@ -3028,11 +3055,21 @@ export interface TaskListOutput {
3028
3055
  blockedBy: string[];
3029
3056
  }[];
3030
3057
  }
3058
+ export interface ArtifactOutput {
3059
+ url: string;
3060
+ path: string;
3061
+ title?: string;
3062
+ mcpDropped?: string;
3063
+ }
3031
3064
  export interface RemoteTriggerOutput {
3032
3065
  status: number;
3033
3066
  json: string;
3034
3067
  summary?: string;
3035
3068
  }
3069
+ export interface ShowOnboardingRolePickerOutput {
3070
+ role?: string;
3071
+ dismissed?: boolean;
3072
+ }
3036
3073
  export interface ScheduleWakeupOutput {
3037
3074
  /**
3038
3075
  * Epoch ms timestamp when the next wakeup will fire