@anthropic-ai/claude-code 2.1.270 → 2.1.271

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 +3 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-code",
3
- "version": "2.1.270",
3
+ "version": "2.1.271",
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.270",
25
- "@anthropic-ai/claude-code-darwin-x64": "2.1.270",
26
- "@anthropic-ai/claude-code-linux-x64": "2.1.270",
27
- "@anthropic-ai/claude-code-linux-arm64": "2.1.270",
28
- "@anthropic-ai/claude-code-linux-x64-musl": "2.1.270",
29
- "@anthropic-ai/claude-code-linux-arm64-musl": "2.1.270",
30
- "@anthropic-ai/claude-code-win32-x64": "2.1.270",
31
- "@anthropic-ai/claude-code-win32-arm64": "2.1.270"
24
+ "@anthropic-ai/claude-code-darwin-arm64": "2.1.271",
25
+ "@anthropic-ai/claude-code-darwin-x64": "2.1.271",
26
+ "@anthropic-ai/claude-code-linux-x64": "2.1.271",
27
+ "@anthropic-ai/claude-code-linux-arm64": "2.1.271",
28
+ "@anthropic-ai/claude-code-linux-x64-musl": "2.1.271",
29
+ "@anthropic-ai/claude-code-linux-arm64-musl": "2.1.271",
30
+ "@anthropic-ai/claude-code-win32-x64": "2.1.271",
31
+ "@anthropic-ai/claude-code-win32-arm64": "2.1.271"
32
32
  },
33
33
  "files": [
34
34
  "bin/claude.exe",
package/sdk-tools.d.ts CHANGED
@@ -2910,13 +2910,9 @@ export interface MonitorInput {
2910
2910
  */
2911
2911
  description: string;
2912
2912
  /**
2913
- * Kill the monitor after this deadline. Default 300000ms, max 3600000ms. Ignored when persistent is true.
2913
+ * Kill the monitor after this deadline. Default 300000ms. Deadlines above 1800000ms are capped to 1800000ms. You are notified at expiry and can re-arm.
2914
2914
  */
2915
2915
  timeout_ms: number;
2916
- /**
2917
- * Run for the lifetime of the session (no timeout). Use for session-length watches like PR monitoring or log tails. Stop with TaskStop.
2918
- */
2919
- persistent: boolean;
2920
2916
  /**
2921
2917
  * Shell command or script. Each stdout line is an event; exit ends the watch.
2922
2918
  */
@@ -3092,7 +3088,7 @@ export interface ProposeGoalInput {
3092
3088
  }
3093
3089
  export interface ArtifactInput {
3094
3090
  /**
3095
- * 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 shared with them, though a page published in this session's own Slack channel can come back in full as untrusted content) — see **To read an existing artifact's content**. 'watch', 'unwatch', and 'status' manage live-update subscriptions that notify a session when an artifact is republished elsewhere, and those aren't available in this session: 'watch' only reports that — no republish notification reaches this session — 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`. '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.
3091
+ * 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 shared with them, 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 that notify a session when an artifact is republished elsewhere, and those aren't available in this session: 'watch' only reports that — no republish notification reaches this session — 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`. '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.
3096
3092
  */
3097
3093
  action?:
3098
3094
  | "publish"
@@ -3151,7 +3147,7 @@ export interface ArtifactInput {
3151
3147
  */
3152
3148
  force?: boolean;
3153
3149
  /**
3154
- * read_asset: directory to save the file into (default: the working directory); the file is named by the asset id plus the extension for its type.
3150
+ * read_asset: directory to save into — default: this artifact’s folder in your scratchpad directory, where saving needs no approval and which you can Read from. read_asset names the file by the asset id plus the extension for its type; saving to any directory other than the default is an ordinary file save the user may be asked to approve.
3155
3151
  */
3156
3152
  out_dir?: string;
3157
3153
  /**