@cometix/claude-code 2.1.284 → 2.1.286

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 +23 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cometix/claude-code",
3
- "version": "2.1.284",
3
+ "version": "2.1.286",
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.284",
35
- "@cometix/claude-code-darwin-x64": "2.1.284",
36
- "@cometix/claude-code-linux-arm64": "2.1.284",
37
- "@cometix/claude-code-linux-x64": "2.1.284",
38
- "@cometix/claude-code-linux-arm64-musl": "2.1.284",
39
- "@cometix/claude-code-linux-x64-musl": "2.1.284",
40
- "@cometix/claude-code-win32-arm64": "2.1.284",
41
- "@cometix/claude-code-win32-x64": "2.1.284",
42
- "@cometix/claude-code-android-arm64": "2.1.284",
34
+ "@cometix/claude-code-darwin-arm64": "2.1.286",
35
+ "@cometix/claude-code-darwin-x64": "2.1.286",
36
+ "@cometix/claude-code-linux-arm64": "2.1.286",
37
+ "@cometix/claude-code-linux-x64": "2.1.286",
38
+ "@cometix/claude-code-linux-arm64-musl": "2.1.286",
39
+ "@cometix/claude-code-linux-x64-musl": "2.1.286",
40
+ "@cometix/claude-code-win32-arm64": "2.1.286",
41
+ "@cometix/claude-code-win32-x64": "2.1.286",
42
+ "@cometix/claude-code-android-arm64": "2.1.286",
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
@@ -131,6 +131,7 @@ export type AgentOutput =
131
131
  output_tokens_details?: {
132
132
  thinking_tokens?: number | null;
133
133
  } | null;
134
+ fallback_credit?: unknown;
134
135
  };
135
136
  toolStats?: {
136
137
  readCount: number;
@@ -451,6 +452,7 @@ export type ArtifactOutput =
451
452
  seq?: number;
452
453
  unchanged?: true;
453
454
  liveSubscription?: string;
455
+ pinned?: boolean;
454
456
  }
455
457
  | {
456
458
  artifacts: {
@@ -461,8 +463,10 @@ export type ArtifactOutput =
461
463
  rel?: "mine" | "shared";
462
464
  external?: true;
463
465
  role?: "editor" | "commenter" | "reader" | "viewer";
466
+ pinned?: boolean;
464
467
  }[];
465
468
  truncated?: boolean;
469
+ pins_enabled?: boolean;
466
470
  scope?: "shared" | "all";
467
471
  external_listed?: true;
468
472
  }
@@ -474,6 +478,7 @@ export type ArtifactOutput =
474
478
  codeText: string;
475
479
  result: string;
476
480
  durationMs: number;
481
+ title?: string;
477
482
  };
478
483
  artifactRead?: {
479
484
  slug: string;
@@ -662,6 +667,14 @@ export type ArtifactOutput =
662
667
  id: string;
663
668
  deleted: boolean;
664
669
  };
670
+ }
671
+ | {
672
+ pin: {
673
+ action: "pin" | "unpin";
674
+ url: string;
675
+ pinned: boolean;
676
+ title?: string;
677
+ };
665
678
  };
666
679
  export type ProjectsOutput =
667
680
  | {
@@ -791,7 +804,7 @@ export interface BashInput {
791
804
  */
792
805
  command: string;
793
806
  /**
794
- * Optional timeout in milliseconds (max 600000)
807
+ * Optional timeout in milliseconds (max 600000 for a foreground command)
795
808
  */
796
809
  timeout?: number;
797
810
  /**
@@ -811,7 +824,7 @@ export interface BashInput {
811
824
  */
812
825
  description?: string;
813
826
  /**
814
- * Set to true to run this command in the background.
827
+ * Set to true to run this command in the background. With it, `timeout` limits how long the command may run in the background before it is stopped (default 1800000 ms, max 7200000 ms).
815
828
  */
816
829
  run_in_background?: boolean;
817
830
  /**
@@ -3118,7 +3131,7 @@ export interface ProposeGoalInput {
3118
3131
  }
3119
3132
  export interface ArtifactInput {
3120
3133
  /**
3121
- * 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.
3134
+ * 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.
3122
3135
  */
3123
3136
  action?:
3124
3137
  | "publish"
@@ -3131,7 +3144,9 @@ export interface ArtifactInput {
3131
3144
  | "upload_asset"
3132
3145
  | "list_assets"
3133
3146
  | "read_asset"
3134
- | "delete_asset";
3147
+ | "delete_asset"
3148
+ | "pin"
3149
+ | "unpin";
3135
3150
  /**
3136
3151
  * Path to the .html file to render. Required to publish (the default action). Use a short, distinctive basename — it is the last-resort title when the HTML has no <title> and no `title` parameter is given. For 'upload_asset', the local image, video, PDF, font, stylesheet (CSS), script (JS), or text (CSV, Markdown, JSON, plain text) file to upload.
3137
3152
  */
@@ -3176,6 +3191,10 @@ export interface ArtifactInput {
3176
3191
  * Last-resort overwrite that DISCARDS the newer published version's page — another session's publish, or someone's save from a page that can publish new versions of itself. On a conflict the fix is to merge your changes onto the newer content (handed to you in the rejection, or re-read) and publish again — not force. Pass force:true only when the user has explicitly said to discard that specific version; never to get past a conflict on your own judgment. The tracked baseVersion is still sent; with force:true the server treats it as informational and overwrites, unless it refuses force over a version saved from inside the page. Omit (or false) so a concurrent write conflicts instead of being silently clobbered.
3177
3192
  */
3178
3193
  force?: boolean;
3194
+ /**
3195
+ * publish only: true also pins the published artifact to the user's claude.ai sidebar once it is published — pass it only when the user asked for that; a pin that fails never fails the publish (the result says so).
3196
+ */
3197
+ pin?: boolean;
3179
3198
  /**
3180
3199
  * 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.
3181
3200
  */