@anthropic-ai/claude-code 2.1.316 → 2.1.317

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 +15 -14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-code",
3
- "version": "2.1.316",
3
+ "version": "2.1.317",
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.316",
25
- "@anthropic-ai/claude-code-darwin-x64": "2.1.316",
26
- "@anthropic-ai/claude-code-linux-x64": "2.1.316",
27
- "@anthropic-ai/claude-code-linux-arm64": "2.1.316",
28
- "@anthropic-ai/claude-code-linux-x64-musl": "2.1.316",
29
- "@anthropic-ai/claude-code-linux-arm64-musl": "2.1.316",
30
- "@anthropic-ai/claude-code-win32-x64": "2.1.316",
31
- "@anthropic-ai/claude-code-win32-arm64": "2.1.316"
24
+ "@anthropic-ai/claude-code-darwin-arm64": "2.1.317",
25
+ "@anthropic-ai/claude-code-darwin-x64": "2.1.317",
26
+ "@anthropic-ai/claude-code-linux-x64": "2.1.317",
27
+ "@anthropic-ai/claude-code-linux-arm64": "2.1.317",
28
+ "@anthropic-ai/claude-code-linux-x64-musl": "2.1.317",
29
+ "@anthropic-ai/claude-code-linux-arm64-musl": "2.1.317",
30
+ "@anthropic-ai/claude-code-win32-x64": "2.1.317",
31
+ "@anthropic-ai/claude-code-win32-arm64": "2.1.317"
32
32
  },
33
33
  "files": [
34
34
  "bin/claude.exe",
package/sdk-tools.d.ts CHANGED
@@ -352,19 +352,6 @@ export type FileReadOutput =
352
352
  */
353
353
  error?: string;
354
354
  }[];
355
- }
356
- | {
357
- type: "file_unchanged";
358
- file: {
359
- /**
360
- * The path to the file
361
- */
362
- filePath: string;
363
- };
364
- /**
365
- * Set when the dedup matched a startup-seeded entry (CLAUDE.md / nested memory) rather than a prior Read tool_result
366
- */
367
- source?: "seeded";
368
355
  };
369
356
  export type ListMcpResourcesOutput = {
370
357
  /**
@@ -473,6 +460,7 @@ export type ArtifactOutput =
473
460
  truncated?: boolean;
474
461
  total?: number;
475
462
  total_at_least?: true;
463
+ next_page_token?: string;
476
464
  pins_enabled?: boolean;
477
465
  scope?: "shared" | "all";
478
466
  external_listed?: true;
@@ -3161,7 +3149,7 @@ export interface ProposeGoalInput {
3161
3149
  }
3162
3150
  export interface ArtifactInput {
3163
3151
  /**
3164
- * Omit (or 'publish') to publish file_path. 'list' enumerates artifacts — the user's own by default, see `scope`; only `limit` and `scope` may accompany it. 'read' returns the content of the published artifact at `url` (raw HTML for the user's own; an isolated summary, steered by the optional `prompt`, for one someone else owns, though a page published in this session's own Slack channel can come back in full as untrusted content) — see **Calls**. 'watch', 'unwatch', and 'status' manage live-update subscriptions through which a session keeps track of new versions of an artifact published elsewhere, and those aren't available in this session: 'watch' only reports that — this session does not keep track of new versions — and 'status' lists this session's artifact watches (pass `url` to check one). 'upload_asset' adds one local media, PDF, font, or text file to an existing artifact — pass `url` and `file_path` (or `file_paths` for several in one call). 'list_assets' lists the files in an artifact's asset store (pass `url`; `after` continues a listing), 'read_asset' saves one of them to a local file named by its id (pass `url` and `asset_id`, optionally `out_dir`), and 'delete_asset' permanently removes one (pass `url` and `asset_id`). See **Artifact assets** above. 'pin' adds the artifact at `url` to the user's pinned list in their claude.ai sidebar and 'unpin' removes it (nothing else may accompany either) — private to the user, reversible, and no change to who can see the artifact.
3152
+ * Omit (or 'publish') to publish file_path. 'list' enumerates artifacts — the user's own by default, see `scope`; only `limit`, `scope` and `page_token` may accompany it. 'read' returns the content of the published artifact at `url` (raw HTML for the user's own; an isolated summary, steered by the optional `prompt`, for one someone else owns, though a page published in this session's own Slack channel can come back in full as untrusted content) — see **Calls**. 'watch', 'unwatch', and 'status' manage live-update subscriptions through which a session keeps track of new versions of an artifact published elsewhere, and those aren't available in this session: 'watch' only reports that — this session does not keep track of new versions — and 'status' lists this session's artifact watches (pass `url` to check one). 'upload_asset' adds one local media, PDF, font, or text file to an existing artifact — pass `url` and `file_path` (or `file_paths` for several in one call). 'list_assets' lists the files in an artifact's asset store (pass `url`; `after` continues a listing), 'read_asset' saves one of them to a local file named by its id (pass `url` and `asset_id`, optionally `out_dir`), and 'delete_asset' permanently removes one (pass `url` and `asset_id`). See **Artifact assets** above. 'pin' adds the artifact at `url` to the user's pinned list in their claude.ai sidebar and 'unpin' removes it (nothing else may accompany either) — private to the user, reversible, and no change to who can see the artifact.
3165
3153
  */
3166
3154
  action?:
3167
3155
  | "publish"
@@ -3193,6 +3181,10 @@ export interface ArtifactInput {
3193
3181
  * list only: maximum artifacts to return (default 25).
3194
3182
  */
3195
3183
  limit?: number;
3184
+ /**
3185
+ * list only: the `next_page_token` a listing of the same scope gave, to list the artifacts after it.
3186
+ */
3187
+ page_token?: string;
3196
3188
  /**
3197
3189
  * list only: 'mine' (default) lists artifacts the user owns; 'shared' lists artifacts other people shared with the user; 'all' lists both. Rows are labeled (mine)/(shared) whenever scope is not 'mine'.
3198
3190
  */
@@ -3544,6 +3536,10 @@ export interface GlobOutput {
3544
3536
  * Whether totalMatches is the exact total (true) or a floor because the underlying search truncated its own output (false). Absent on results persisted by CLI versions predating this field.
3545
3537
  */
3546
3538
  countIsComplete?: boolean;
3539
+ /**
3540
+ * True when the time limit stopped the search after these paths were read, so more matches may exist. Absent otherwise.
3541
+ */
3542
+ timedOut?: boolean;
3547
3543
  }
3548
3544
  export interface GrepOutput {
3549
3545
  mode?: "content" | "files_with_matches" | "count";
@@ -3556,6 +3552,7 @@ export interface GrepOutput {
3556
3552
  totalLines?: number;
3557
3553
  appliedLimit?: number;
3558
3554
  appliedOffset?: number;
3555
+ timedOut?: boolean;
3559
3556
  }
3560
3557
  export interface TaskStopOutput {
3561
3558
  /**
@@ -4017,6 +4014,10 @@ export interface TaskCreateOutput {
4017
4014
  task: {
4018
4015
  id: string;
4019
4016
  subject: string;
4017
+ /**
4018
+ * The task's description as saved. It can differ from the tool_use input if Claude Code corrects a malformed call or a PreToolUse hook changes the input. Absent in results from older Claude Code versions.
4019
+ */
4020
+ description?: string;
4020
4021
  };
4021
4022
  }
4022
4023
  export interface TaskGetOutput {