@anthropic-ai/claude-code 2.1.201 → 2.1.203

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 +53 -25
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-code",
3
- "version": "2.1.201",
3
+ "version": "2.1.203",
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.201",
25
- "@anthropic-ai/claude-code-darwin-x64": "2.1.201",
26
- "@anthropic-ai/claude-code-linux-x64": "2.1.201",
27
- "@anthropic-ai/claude-code-linux-arm64": "2.1.201",
28
- "@anthropic-ai/claude-code-linux-x64-musl": "2.1.201",
29
- "@anthropic-ai/claude-code-linux-arm64-musl": "2.1.201",
30
- "@anthropic-ai/claude-code-win32-x64": "2.1.201",
31
- "@anthropic-ai/claude-code-win32-arm64": "2.1.201"
24
+ "@anthropic-ai/claude-code-darwin-arm64": "2.1.203",
25
+ "@anthropic-ai/claude-code-darwin-x64": "2.1.203",
26
+ "@anthropic-ai/claude-code-linux-x64": "2.1.203",
27
+ "@anthropic-ai/claude-code-linux-arm64": "2.1.203",
28
+ "@anthropic-ai/claude-code-linux-x64-musl": "2.1.203",
29
+ "@anthropic-ai/claude-code-linux-arm64-musl": "2.1.203",
30
+ "@anthropic-ai/claude-code-win32-x64": "2.1.203",
31
+ "@anthropic-ai/claude-code-win32-arm64": "2.1.203"
32
32
  },
33
33
  "files": [
34
34
  "bin/claude.exe",
package/sdk-tools.d.ts CHANGED
@@ -345,6 +345,30 @@ export type McpOutput =
345
345
  | {
346
346
  [k: string]: unknown;
347
347
  };
348
+ export type ArtifactOutput =
349
+ | {
350
+ url: string;
351
+ path: string;
352
+ title?: string;
353
+ version?: string;
354
+ capabilities?: unknown;
355
+ stored?: {
356
+ contract: string;
357
+ capabilities?: {
358
+ [k: string]: unknown;
359
+ };
360
+ };
361
+ warnings?: string[];
362
+ contract?: string;
363
+ }
364
+ | {
365
+ artifacts: {
366
+ title: string;
367
+ url: string;
368
+ updatedAt?: string;
369
+ }[];
370
+ truncated?: boolean;
371
+ };
348
372
  export type ProjectsOutput =
349
373
  | {
350
374
  method: "project_info";
@@ -399,6 +423,7 @@ export type ProjectsOutput =
399
423
  doc_uuid: string;
400
424
  replaced: boolean;
401
425
  present_to_user?: boolean;
426
+ local_path?: string;
402
427
  }
403
428
  | {
404
429
  method: "project_delete";
@@ -2518,17 +2543,21 @@ export interface CronDeleteInput {
2518
2543
  export interface CronListInput {}
2519
2544
  export interface ScheduleWakeupInput {
2520
2545
  /**
2521
- * Seconds from now to wake up. Clamped to [60, 3600] by the runtime.
2546
+ * Seconds from now to wake up. Clamped to [60, 3600] by the runtime. Required unless `stop` is true.
2522
2547
  */
2523
- delaySeconds: number;
2548
+ delaySeconds?: number;
2524
2549
  /**
2525
- * One short sentence explaining the chosen delay. Goes to telemetry and is shown to the user. Be specific.
2550
+ * One short sentence explaining the chosen delay. Goes to telemetry and is shown to the user. Be specific. Required unless `stop` is true.
2526
2551
  */
2527
- reason: string;
2552
+ reason?: string;
2528
2553
  /**
2529
- * The /loop input to fire on wake-up. Pass the same /loop input verbatim each turn so the next firing re-enters the skill and continues the loop. For autonomous /loop (no user prompt), pass the literal sentinel `<<autonomous-loop-dynamic>>` instead (the dynamic-pacing variant, not the CronCreate-mode `<<autonomous-loop>>`).
2554
+ * The /loop input to fire on wake-up. Pass the same /loop input verbatim each turn so the next firing re-enters the skill and continues the loop. For autonomous /loop (no user prompt), pass the literal sentinel `<<autonomous-loop-dynamic>>` instead (the dynamic-pacing variant, not the CronCreate-mode `<<autonomous-loop>>`). Required unless `stop` is true.
2530
2555
  */
2531
- prompt: string;
2556
+ prompt?: string;
2557
+ /**
2558
+ * Set to true to end the dynamic loop immediately instead of scheduling another wakeup. When true, all other fields are ignored and no further wakeups fire.
2559
+ */
2560
+ stop?: boolean;
2532
2561
  }
2533
2562
  export interface RemoteTriggerInput {
2534
2563
  action: "list" | "get" | "create" | "update" | "run";
@@ -2571,13 +2600,21 @@ export interface MonitorInput {
2571
2600
  }
2572
2601
  export interface ArtifactInput {
2573
2602
  /**
2574
- * 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>.
2603
+ * Omit (or 'publish') to publish file_path. 'list' enumerates the user's published artifacts; only `limit` may accompany it.
2575
2604
  */
2576
- file_path: string;
2605
+ action?: "publish" | "list";
2577
2606
  /**
2578
- * Browser-tab icon: one or two emoji (e.g. "📊"). No markup. Keep stable across redeploys; change only on a hard topic pivot.
2607
+ * Path to an .html or .md file to render. Required to publish (the default action). Use a short, distinctive basename it is the fallback title if the HTML has no <title>.
2579
2608
  */
2580
- favicon: string;
2609
+ file_path?: string;
2610
+ /**
2611
+ * Browser-tab icon: one or two emoji (e.g. "📊"). No markup. Required to publish. Keep stable across redeploys; change only on a hard topic pivot.
2612
+ */
2613
+ favicon?: string;
2614
+ /**
2615
+ * list only: maximum artifacts to return (default 25).
2616
+ */
2617
+ limit?: number;
2581
2618
  /**
2582
2619
  * One-sentence subtitle shown on the gallery card. Say what the page is or does.
2583
2620
  */
@@ -2587,7 +2624,7 @@ export interface ArtifactInput {
2587
2624
  */
2588
2625
  label?: string;
2589
2626
  /**
2590
- * 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.
2627
+ * 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.
2591
2628
  */
2592
2629
  url?: string;
2593
2630
  /**
@@ -2608,7 +2645,7 @@ export interface EnterWorktreeInput {
2608
2645
  */
2609
2646
  name?: string;
2610
2647
  /**
2611
- * Path to an existing worktree of the current repository to switch into instead of creating a new one. Must appear in `git worktree list` for the current repo. Mutually exclusive with `name`.
2648
+ * Path to an existing worktree to switch into instead of creating a new one. Must appear in `git worktree list` for the current repo — or, on first entry from the launch directory, for a repo nested inside it (multi-repo workspace). Mutually exclusive with `name`.
2612
2649
  */
2613
2650
  path?: string;
2614
2651
  }
@@ -3343,19 +3380,6 @@ export interface TaskListOutput {
3343
3380
  blockedBy: string[];
3344
3381
  }[];
3345
3382
  }
3346
- export interface ArtifactOutput {
3347
- url: string;
3348
- path: string;
3349
- title?: string;
3350
- version?: string;
3351
- capabilities?: unknown;
3352
- stored?: {
3353
- contract: string;
3354
- capabilities?: {
3355
- [k: string]: unknown;
3356
- };
3357
- };
3358
- }
3359
3383
  export interface RemoteTriggerOutput {
3360
3384
  status: number;
3361
3385
  json: string;
@@ -3378,6 +3402,10 @@ export interface ScheduleWakeupOutput {
3378
3402
  * True if the requested delaySeconds was outside [60, 3600]
3379
3403
  */
3380
3404
  wasClamped: boolean;
3405
+ /**
3406
+ * True when the model ended the loop via `stop: true`
3407
+ */
3408
+ stopped?: boolean;
3381
3409
  }
3382
3410
  export interface MonitorOutput {
3383
3411
  /**