@anthropic-ai/claude-code 2.1.248 → 2.1.251

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 +9 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-code",
3
- "version": "2.1.248",
3
+ "version": "2.1.251",
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.248",
25
- "@anthropic-ai/claude-code-darwin-x64": "2.1.248",
26
- "@anthropic-ai/claude-code-linux-x64": "2.1.248",
27
- "@anthropic-ai/claude-code-linux-arm64": "2.1.248",
28
- "@anthropic-ai/claude-code-linux-x64-musl": "2.1.248",
29
- "@anthropic-ai/claude-code-linux-arm64-musl": "2.1.248",
30
- "@anthropic-ai/claude-code-win32-x64": "2.1.248",
31
- "@anthropic-ai/claude-code-win32-arm64": "2.1.248"
24
+ "@anthropic-ai/claude-code-darwin-arm64": "2.1.251",
25
+ "@anthropic-ai/claude-code-darwin-x64": "2.1.251",
26
+ "@anthropic-ai/claude-code-linux-x64": "2.1.251",
27
+ "@anthropic-ai/claude-code-linux-arm64": "2.1.251",
28
+ "@anthropic-ai/claude-code-linux-x64-musl": "2.1.251",
29
+ "@anthropic-ai/claude-code-linux-arm64-musl": "2.1.251",
30
+ "@anthropic-ai/claude-code-win32-x64": "2.1.251",
31
+ "@anthropic-ai/claude-code-win32-arm64": "2.1.251"
32
32
  },
33
33
  "files": [
34
34
  "bin/claude.exe",
package/sdk-tools.d.ts CHANGED
@@ -435,13 +435,17 @@ export type ArtifactOutput =
435
435
  capabilities?: unknown;
436
436
  stored?: {
437
437
  contract: string;
438
+ preferredContract?: string;
438
439
  capabilities?: {
439
440
  [k: string]: unknown;
440
441
  };
442
+ carried?: boolean;
443
+ read?: string;
441
444
  };
442
445
  warnings?: string[];
443
446
  contract?: string;
444
447
  updated?: boolean;
448
+ audience?: string;
445
449
  liveSubscription?: string;
446
450
  }
447
451
  | {
@@ -665,7 +669,7 @@ export interface AgentInput {
665
669
  */
666
670
  subagent_type?: string;
667
671
  /**
668
- * Optional model override for this agent. Takes precedence over the agent definition's model frontmatter. If omitted, uses the agent definition's model, or inherits from the parent. Ignored for subagent_type: "fork" — forks always inherit the parent model.
672
+ * Optional model override for this agent. Takes precedence over the agent definition's model frontmatter and the configured default subagent model. If omitted, uses the agent definition's model, else the default (inherits from the parent unless a default subagent model is configured). Ignored for subagent_type: "fork" — forks always inherit the parent model.
669
673
  */
670
674
  model?: "sonnet" | "opus" | "haiku" | "fable";
671
675
  /**
@@ -3086,6 +3090,10 @@ export interface ArtifactInput {
3086
3090
  * Short human-readable name for this version, max 60 chars (e.g. "fixed-background"). Shown in the version picker. Not a description — keep it to a few words.
3087
3091
  */
3088
3092
  label?: string;
3093
+ /**
3094
+ * publish only: what changed in this version — a few sentences on what is new or reworked, shown beside `label` in the version picker. Optional; leave it out when nothing is worth noting.
3095
+ */
3096
+ note?: string;
3089
3097
  /**
3090
3098
  * 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. For 'read' and the other url-addressed actions: the artifact to act on.
3091
3099
  */