@cometix/claude-code 2.1.274 → 2.1.275

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 +10 -10
  2. package/sdk-tools.d.ts +70 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cometix/claude-code",
3
- "version": "2.1.274",
3
+ "version": "2.1.275",
4
4
  "bin": {
5
5
  "claude": "cli.js"
6
6
  },
@@ -31,15 +31,15 @@
31
31
  "smol-toml": "^1.8.0"
32
32
  },
33
33
  "optionalDependencies": {
34
- "@cometix/claude-code-darwin-arm64": "2.1.274",
35
- "@cometix/claude-code-darwin-x64": "2.1.274",
36
- "@cometix/claude-code-linux-arm64": "2.1.274",
37
- "@cometix/claude-code-linux-x64": "2.1.274",
38
- "@cometix/claude-code-linux-arm64-musl": "2.1.274",
39
- "@cometix/claude-code-linux-x64-musl": "2.1.274",
40
- "@cometix/claude-code-win32-arm64": "2.1.274",
41
- "@cometix/claude-code-win32-x64": "2.1.274",
42
- "@cometix/claude-code-android-arm64": "2.1.274",
34
+ "@cometix/claude-code-darwin-arm64": "2.1.275",
35
+ "@cometix/claude-code-darwin-x64": "2.1.275",
36
+ "@cometix/claude-code-linux-arm64": "2.1.275",
37
+ "@cometix/claude-code-linux-x64": "2.1.275",
38
+ "@cometix/claude-code-linux-arm64-musl": "2.1.275",
39
+ "@cometix/claude-code-linux-x64-musl": "2.1.275",
40
+ "@cometix/claude-code-win32-arm64": "2.1.275",
41
+ "@cometix/claude-code-win32-x64": "2.1.275",
42
+ "@cometix/claude-code-android-arm64": "2.1.275",
43
43
  "@img/sharp-darwin-arm64": "0.34.5",
44
44
  "@img/sharp-darwin-x64": "0.34.5",
45
45
  "@img/sharp-linux-arm": "0.34.5",
package/sdk-tools.d.ts CHANGED
@@ -447,6 +447,9 @@ export type ArtifactOutput =
447
447
  publishesResetAt?: number;
448
448
  contract?: string;
449
449
  updated?: boolean;
450
+ icon?: string;
451
+ faviconSent?: true;
452
+ iconDropped?: true;
450
453
  audience?: string;
451
454
  seq?: number;
452
455
  unchanged?: true;
@@ -459,9 +462,12 @@ export type ArtifactOutput =
459
462
  favicon?: string;
460
463
  updatedAt?: string;
461
464
  rel?: "mine" | "shared";
465
+ external?: true;
466
+ role?: "editor" | "commenter" | "reader" | "viewer";
462
467
  }[];
463
468
  truncated?: boolean;
464
469
  scope?: "shared" | "all";
470
+ external_listed?: true;
465
471
  }
466
472
  | {
467
473
  read: {
@@ -561,6 +567,58 @@ export type ArtifactOutput =
561
567
  file_name: string;
562
568
  };
563
569
  }
570
+ | {
571
+ written?: {
572
+ url: string;
573
+ };
574
+ asset_uploads: {
575
+ url: string;
576
+ /**
577
+ * @minItems 1
578
+ * @maxItems 25
579
+ */
580
+ results: [
581
+ (
582
+ | {
583
+ file_path: string;
584
+ status: "uploaded";
585
+ id: string;
586
+ url: string;
587
+ size_bytes: number;
588
+ content_type: string;
589
+ sha256?: string;
590
+ file_name: string;
591
+ }
592
+ | {
593
+ file_path: string;
594
+ status: "failed" | "not_attempted";
595
+ reason: string;
596
+ message: string;
597
+ may_be_stored?: true;
598
+ }
599
+ ),
600
+ ...(
601
+ | {
602
+ file_path: string;
603
+ status: "uploaded";
604
+ id: string;
605
+ url: string;
606
+ size_bytes: number;
607
+ content_type: string;
608
+ sha256?: string;
609
+ file_name: string;
610
+ }
611
+ | {
612
+ file_path: string;
613
+ status: "failed" | "not_attempted";
614
+ reason: string;
615
+ message: string;
616
+ may_be_stored?: true;
617
+ }
618
+ )[]
619
+ ];
620
+ };
621
+ }
564
622
  | {
565
623
  asset_list: {
566
624
  url: string;
@@ -3091,7 +3149,7 @@ export interface ProposeGoalInput {
3091
3149
  }
3092
3150
  export interface ArtifactInput {
3093
3151
  /**
3094
- * 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 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`. '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.
3152
+ * 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.
3095
3153
  */
3096
3154
  action?:
3097
3155
  | "publish"
@@ -3110,11 +3168,11 @@ export interface ArtifactInput {
3110
3168
  */
3111
3169
  file_path?: string;
3112
3170
  /**
3113
- * The artifact's emoji: one or two emoji (e.g. "📊"). No markup. Required on a page's first publish; omit on a redeploy (same file path this session, or `url`) to keep the artifact's emoji — pass a new one only when the user asks.
3171
+ * Deprecated; omit it. Use `icon`.
3114
3172
  */
3115
3173
  favicon?: string;
3116
3174
  /**
3117
- * Optional. One short generic word for the artifact's tab icon, such as chart, calendar, recipe, code or map — a plain signifier, not a product or brand name. Omit when republishing to keep the current icon.
3175
+ * One short generic word for the artifact's browser-tab icon, such as chart, calendar, recipe, code or map — a plain signifier, not a product or brand name. Include it on every page's first publish; omit when republishing to keep the current icon, and pass a new one only when the user asks.
3118
3176
  */
3119
3177
  icon?: string;
3120
3178
  /**
@@ -3122,7 +3180,7 @@ export interface ArtifactInput {
3122
3180
  */
3123
3181
  limit?: number;
3124
3182
  /**
3125
- * list only: 'mine' (default) lists artifacts the user owns — the only ones the update flow can target; 'shared' lists artifacts other people shared with the user (read-only); 'all' lists both. Rows are labeled (mine)/(shared) whenever scope is not 'mine'.
3183
+ * 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'.
3126
3184
  */
3127
3185
  scope?: "mine" | "shared" | "all";
3128
3186
  /**
@@ -3138,7 +3196,7 @@ export interface ArtifactInput {
3138
3196
  */
3139
3197
  label?: string;
3140
3198
  /**
3141
- * 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.
3199
+ * 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 or was given edit access to (a read of it says "writer"). For 'read' and the other url-addressed actions: the artifact to act on.
3142
3200
  */
3143
3201
  url?: string;
3144
3202
  /**
@@ -3153,6 +3211,13 @@ export interface ArtifactInput {
3153
3211
  * 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.
3154
3212
  */
3155
3213
  out_dir?: string;
3214
+ /**
3215
+ * upload_asset: several local image, video, PDF, font, stylesheet or script files in place of `file_path`, up to 25 in one call, all into the artifact that `url` names; one approval covers the call, and the result lists each file's id and url, or why it was not uploaded. A CSV, Markdown, JSON or plain-text file, a symbolic or hard link, and a file outside the working directory each go in a call of their own with `file_path`.
3216
+ *
3217
+ * @minItems 1
3218
+ * @maxItems 25
3219
+ */
3220
+ file_paths?: [string, ...string[]];
3156
3221
  /**
3157
3222
  * read_asset and delete_asset: the asset's id (32 hex characters), from a list_assets or upload_asset result.
3158
3223
  */
@@ -4071,10 +4136,6 @@ export interface REPLOutput {
4071
4136
  * True on an async-dispatch receipt or refusal: the script was handed to the async dispatcher (queued — outcome arrives later as a poll event — or refused at the queue cap), so this Output carries no execution output and resume replay must skip the block
4072
4137
  */
4073
4138
  asyncDispatched?: boolean;
4074
- /**
4075
- * Names of tools registered during this execution
4076
- */
4077
- registeredTools?: string[];
4078
4139
  /**
4079
4140
  * Images returned by inner Read calls — surfaced as image content blocks
4080
4141
  */