@anthropic-ai/claude-code 2.1.311 → 2.1.314

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 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-code",
3
- "version": "2.1.311",
3
+ "version": "2.1.314",
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.311",
25
- "@anthropic-ai/claude-code-darwin-x64": "2.1.311",
26
- "@anthropic-ai/claude-code-linux-x64": "2.1.311",
27
- "@anthropic-ai/claude-code-linux-arm64": "2.1.311",
28
- "@anthropic-ai/claude-code-linux-x64-musl": "2.1.311",
29
- "@anthropic-ai/claude-code-linux-arm64-musl": "2.1.311",
30
- "@anthropic-ai/claude-code-win32-x64": "2.1.311",
31
- "@anthropic-ai/claude-code-win32-arm64": "2.1.311"
24
+ "@anthropic-ai/claude-code-darwin-arm64": "2.1.314",
25
+ "@anthropic-ai/claude-code-darwin-x64": "2.1.314",
26
+ "@anthropic-ai/claude-code-linux-x64": "2.1.314",
27
+ "@anthropic-ai/claude-code-linux-arm64": "2.1.314",
28
+ "@anthropic-ai/claude-code-linux-x64-musl": "2.1.314",
29
+ "@anthropic-ai/claude-code-linux-arm64-musl": "2.1.314",
30
+ "@anthropic-ai/claude-code-win32-x64": "2.1.314",
31
+ "@anthropic-ai/claude-code-win32-arm64": "2.1.314"
32
32
  },
33
33
  "files": [
34
34
  "bin/claude.exe",
package/sdk-tools.d.ts CHANGED
@@ -467,6 +467,7 @@ export type ArtifactOutput =
467
467
  rel?: "mine" | "shared";
468
468
  external?: true;
469
469
  role?: "editor" | "commenter" | "reader" | "viewer";
470
+ outsidersMayHaveWritten?: true;
470
471
  pinned?: boolean;
471
472
  }[];
472
473
  truncated?: boolean;
@@ -3322,6 +3323,10 @@ export interface BashOutput {
3322
3323
  * True when this backgrounded command is terminated at its caller's final response, so no completion notification can follow (a synchronous subagent's command, or a headless session that takes no further input and is not waiting for background commands); absent when the command survives
3323
3324
  */
3324
3325
  backgroundEndsWithFinalResponse?: true;
3326
+ /**
3327
+ * True when the subagent that owns this backgrounded command parks for its end and is woken by it
3328
+ */
3329
+ backgroundWakesOwner?: true;
3325
3330
  /**
3326
3331
  * Flag to indicate if sandbox mode was overridden
3327
3332
  */
@@ -3978,6 +3983,10 @@ export interface AskUserQuestionOutput {
3978
3983
  * Free-text notes the user added to their selection.
3979
3984
  */
3980
3985
  notes?: string;
3986
+ /**
3987
+ * How the question went unanswered: 'skipped' (the user skipped it), 'replied_in_chat' (the user sent a chat message instead), or 'dismissed' (the user closed the card). The model does not see this field; put the text it should read in `answers`. Absent when the question was answered, and also when the answering client did not report it (in a session that does not advertise ask_user_question_unanswered_v1, from an older client, or in an older transcript): then only the text in `answers` says how it ended. Treat any other value as absent.
3988
+ */
3989
+ unanswered?: "skipped" | "replied_in_chat" | "dismissed";
3981
3990
  };
3982
3991
  };
3983
3992
  /**