@artifactshare/cli 0.23.0 → 0.24.0

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,26 @@
3
3
  All notable changes to `@artifactshare/cli` are documented here.
4
4
  For user-facing announcements, see https://artifactshare.com/updates?product=cli.
5
5
 
6
+ ## 0.24.0 - 2026-11-26
7
+
8
+ - Accept an id that begins with `-` wherever a command takes one positionally, such as `projects edit <id> --archive`. About one project id in 64 begins with a dash, and those ids were rejected as an unknown option. A mistyped option still fails as one.
9
+
10
+ - Update bundled skill guidance: shared HTML and folder shares now load font files from cdnjs and unpkg as well as jsDelivr, so icon and font packages served from those CDNs display. Update the bundled skill to version 70.
11
+
12
+ - Search artifact body text with `artifacts list --q`, owner/project/period filters, grouped counts and excerpts. Restricted credentials retain their read scope; empty searches suggest rephrasing.
13
+
14
+ - Let local Preview comments rewrite the wording. Clicking a heading or paragraph made only of text edits it right on the page (Enter adds, Esc cancels, Tab moves to an optional comment); keys typed there never reach the document's own handlers, and the page returns to its original text when editing ends. Other elements and selected text show the current wording in the editor, ready to change. `preview next` returns `rewrite: {original, proposed}` for the agent to apply, `preview history` keeps it, and the comment list shows before and after. The browser never writes the file. Update the bundled skill to version 68.
15
+
16
+ - Let local Preview comment on interactive documents: in comment mode Alt/Option+click operates the page while a plain click comments, with a hint beside the mode switch. Comments record the URL screen they were made on (`screen` on element and text anchors; `#/` and `#!/` route hashes and History API paths), show comments from other screens without attaching them to look-alike elements, return to a comment's screen when it is selected, mark an unrestorable screen as needing a check, and return to the current screen after a document update. Fix WebKit dropping annotation messages after a same-document hash change. Update the bundled skill to version 67.
17
+
18
+ - Keep local review history for Preview: each submitted batch saves its comments and anchors, the document when it was sent, and the document at each agent report, in the local previews directory with private file modes. `preview history <file>` lists batches and `--batch <id>` returns one in full, including after the preview stops. Agent `fixed`/`skipped` reports are kept as reports, not approval; documents over 2 MiB keep only revision and size. Nothing is uploaded. Update the bundled skill to version 66.
19
+
20
+ - Keep local Preview annotation drafts reachable during resizing and failed saves, preserve unconfirmed text after shutdown, and explain queued document updates. Stage all annotation mutations before atomic persistence, restore failure focus, improve share labels and offer snapshot retry. Reject ambiguous oversized element hash matches without deleting comments, preserve surrogate pairs in excerpts, and add a local canvas-background choice for transparent HTML. Update bundled Preview guidance to managed skill version 65.
21
+
22
+ - Clarify that publisher API version appends return a stable app viewer URL without exposing current visibility. Viewer authorization still applies.
23
+
24
+ - Workspace bot credentials can post to administrator-approved destination projects without reimport. `projects list` shows the approved destinations; `doctor` accepts a publishable approved secondary default and diagnoses archived or grant-revoked destinations while retaining the singular primary contract. Private-project reports must explicitly use project visibility. Update the bundled skill to version 64 with this guidance.
25
+
6
26
  ## 0.23.0 - 2026-11-09
7
27
 
8
28
  - `comments list` and comment readback include the PDF page a reader commented on. Such anchors keep `kind: "artifact"` and add `page_number` with `version_id` and `version_number` of the version it was posted on (null once deleted); released CLIs ignore the added fields. Agents cannot post page comments. Update the bundled skill to version 63 with this guidance.
package/LICENSE CHANGED
@@ -14,7 +14,7 @@ Copyright © 2026 TechTalk, Inc.
14
14
 
15
15
  ### 2. 許諾
16
16
 
17
- 本ライセンスの条件に従うことを条件として、本ソフトウェアを無償で使用、複製、改変、統合、公開、配布、サブライセンス、および販売し、また、本ソフトウェアを提供された者にこれらを許可する権利を、利用者に付与します。
17
+ 本ライセンスの条件に従う限り、利用者は、本ソフトウェアを無償で使用、複製、改変、統合、公開、配布、サブライセンス、および販売でき、また本ソフトウェアの提供を受けた者にも同様の行為を許可できます。
18
18
 
19
19
  ### 3. 表示の保持
20
20
 
@@ -24,27 +24,27 @@ Copyright © 2026 TechTalk, Inc.
24
24
 
25
25
  利用者および下流の受領者は、本ソフトウェアの機能そのものを主な価値とし、ライセンサーと直接競合するホスト型、マネージド型、SaaS、またはクラウドサービスとして、本ソフトウェア(改変版や派生版を含みます)を第三者へ提供してはなりません。第2条のサブライセンスまたは販売の許諾は、この制限を回避する権利を与えるものではありません。
26
26
 
27
- 次の利用は、この条項だけを理由として禁止されません。
27
+ 次の利用は、本条だけを理由として禁止されません。
28
28
 
29
- - 組織が自らの業務のために運用する self-hosting
30
- - ベンダーが単一の顧客専用環境を導入し、保守すること。ただし、そのベンダーが自ら複数の顧客向けに競合サービスを提供しない場合に限ります
29
+ - 組織が自らの業務のために運用するセルフホスト利用
30
+ - ベンダーが単一の顧客専用環境を導入・保守すること(ただし、そのベンダー自身が複数の顧客向けに競合サービスを提供しない場合に限ります)
31
31
  - Artifact Share の機能そのものが主な価値ではない別の製品またはサービスへの組み込み
32
32
 
33
33
  本条で制限される用途については、`support@artifactshare.com` へ商用ライセンスをお問い合わせください。
34
34
 
35
35
  ### 5. 名称および商標
36
36
 
37
- 本ライセンスは、Artifact Share の名称、ロゴ、サービスマークその他の商標に関する権利を付与しません。出所を事実に即して説明するため、または本ソフトウェアに同梱された未改変のブランド資産を本ソフトウェアとともに再配布するために必要な範囲でのみ、これらを使用できます。公式版、ライセンサーによる承認、提携、または後援があるとの誤認を招く使用はできません。
37
+ 本ライセンスは、Artifact Share の名称、ロゴ、サービスマークその他の商標に関する権利を付与しません。出所を事実に即して説明するため、または本ソフトウェアに同梱された未改変のブランド資産を本ソフトウェアとともに再配布するために必要な範囲でのみ、これらを使用できます。公式版であることや、ライセンサーによる承認、提携、または後援があるとの誤認を招く形では使用できません。
38
38
 
39
- ### 6. Proposal および Contribution
39
+ ### 6. 提案およびコントリビューション
40
40
 
41
- proposal その他の投稿物の著作権は投稿者に留保されます。投稿者は、ライセンサーおよび本ソフトウェアの maintainer に対し、投稿物を評価、採択、本ソフトウェアへ組み込み、改変、複製、公開、および配布するために必要な、全世界的、非独占的、無償かつサブライセンス可能な許諾を付与します。
41
+ 提案その他の投稿物の著作権は投稿者に留保されます。投稿者は、ライセンサーおよび本ソフトウェアのメンテナーに対し、投稿物を評価、採択、本ソフトウェアへ組み込み、改変、複製、公開、および配布するために必要な、全世界的、非独占的、無償かつサブライセンス可能な許諾を付与します。
42
42
 
43
- この条項は、現在 code contribution を募集するものではありません。将来 code contribution を受け付ける場合の許諾条件や contributor agreement は、別途定めます。
43
+ 本条は、現時点でコードの提供(コントリビューション)を募集するものではありません。将来これを受け付ける場合の許諾条件やコントリビューター契約は、別途定めます。
44
44
 
45
45
  ### 7. 終了
46
46
 
47
- 利用者が本ライセンスの条件に違反した場合、本ライセンスに基づく権利は終了します。違反を知ってから30日以内に違反をすべて是正した場合、権利は最初の違反について自動的に回復します。回復しない場合や違反が繰り返された場合に権利を回復するには、ライセンサーの書面による承諾が必要です。
47
+ 利用者が本ライセンスの条件に違反した場合、本ライセンスに基づく権利は終了します。初回の違反については、違反を知ってから 30 日以内にすべての違反を是正すれば、権利は自動的に回復します。期限内に是正されなかった場合や違反を繰り返した場合に権利を回復するには、ライセンサーの書面による承諾が必要です。
48
48
 
49
49
  ### 8. 無保証
50
50
 
package/README.md CHANGED
@@ -108,30 +108,30 @@ project's Slack channel must be reauthorized.
108
108
 
109
109
  ## Commands
110
110
 
111
- | Command | What it does |
112
- | ------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
113
- | `open <target>` | First command for agents opening a share or artifactshareusercontent.com execution URL; ensures skills, then reads or suggests download |
114
- | `share <path>` | Share an HTML, Markdown, PDF, or MP4 video file (up to 25 MiB; a `.pdf` must start with `%PDF-`, a `.mp4` needs an `ftyp` box) or a static-site folder; unspecified Home audiences use workspace when available, otherwise private (`--project`, `--home`, `--visibility`, `--key`, link expiry options) |
115
- | `update <target> <path>` | Add a new version to an existing file (ID or share URL); optional `--label` adds a version note |
116
- | `append <target> <path>` | Append a non-empty UTF-8 file without a separator: at Markdown source end or before `</body>` in HTML, falling back to source end; not for PDFs, videos, or static sites |
117
- | `edit <target>` | Change title, sharing, link expiry, explicit viewers, or project placement |
118
- | `delete <target>` | Permanently delete a file you shared |
119
- | `artifacts delete <target>` | Alias of delete; permanently delete a file you shared |
120
- | `resolve <value>` | Find files by URL, ID, title, or project name |
121
- | `artifacts get <target>` | Read file source or static-site metadata and version totals; PDFs and videos have no text source, so use download |
122
- | `artifacts versions <target>` | List retained versions and logical byte totals; continue with --cursor |
123
- | `download <target>` | Save a file (a PDF or video as its original `.pdf` or `.mp4` bytes) or a whole static site locally |
124
- | `comments list / post / edit / resolve / reopen / delete <target>` | Read, write, edit, resolve, reopen, and permanently delete comments |
125
- | `projects list / create / edit` | List eligible project destinations; create and edit projects and audience |
126
- | `move <target>` | Move an existing file into a project or back home; `edit` is preferred for new automation |
127
- | `preview <file>` (alias of `preview start`) | Serve a local Markdown or HTML file with the product viewer look for browser annotation; local only, no sign-in, nothing uploaded; PDFs and videos cannot be previewed |
128
- | `preview next` / `preview done` / `preview reply` / `preview stop` | Agent loop for a live preview: poll submitted annotation batches (oversized element text uses ownTextHash and a reader-only ownTextExcerpt above 16,000 UTF-16 code units), report fixed/skipped outcomes from stdin, reply into a thread, and stop the session |
129
- | `login` / `logout` / `whoami` | Sign in, revoke a device-login credential before removing it locally, and check who you are |
130
- | `doctor` | Diagnose token storage, auth, destination, network, and upload readiness — tells you the next command to run |
131
- | `changelog` | Show the installed version, this release's notes, and the public updates page |
132
- | `profiles list / use / import-token / delete` | Switch between local account profiles, import an issued token from stdin, and delete profile entries |
133
- | `init` | Set up this directory: detect Claude Code, Codex, or Cursor and install the full skill folder in user scope (migrating managed legacy Cursor project rules), then show next steps; or save defaults with `--profile` / `--project-id` |
134
- | `skills ensure / install / list / update / remove` | Install or update the bundled usage guide; shared directory aliases are handled once, unmanaged folders are skipped, protected links refused for mutations, and newer installed versions preserved unless forced; Claude user scope follows CLAUDE_CONFIG_DIR (blank values are unavailable) |
111
+ | Command | What it does |
112
+ | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
113
+ | `open <target>` | First command for agents opening a share or artifactshareusercontent.com execution URL; ensures skills, then reads or suggests download |
114
+ | `share <path>` | Share an HTML, Markdown, PDF, or MP4 video file (up to 25 MiB; a `.pdf` must start with `%PDF-`, a `.mp4` needs an `ftyp` box) or a static-site folder; unspecified Home audiences use workspace when available, otherwise private (`--project`, `--home`, `--visibility`, `--key`, link expiry options) |
115
+ | `update <target> <path>` | Add a new version to an existing file (ID or share URL); optional `--label` adds a version note |
116
+ | `append <target> <path>` | Append a non-empty UTF-8 file without a separator: at Markdown source end or before `</body>` in HTML, falling back to source end; not for PDFs, videos, or static sites |
117
+ | `edit <target>` | Change title, sharing, link expiry, explicit viewers, or project placement |
118
+ | `delete <target>` | Permanently delete a file you shared |
119
+ | `artifacts delete <target>` | Alias of delete; permanently delete a file you shared |
120
+ | `resolve <value>` | Find files by URL, ID, title, or project name |
121
+ | `artifacts get <target>` | Read file source or static-site metadata and version totals; PDFs and videos have no text source, so use download |
122
+ | `artifacts versions <target>` | List retained versions and logical byte totals; continue with --cursor |
123
+ | `download <target>` | Save a file (a PDF or video as its original `.pdf` or `.mp4` bytes) or a whole static site locally |
124
+ | `comments list / post / edit / resolve / reopen / delete <target>` | Read, write, edit, resolve, reopen, and permanently delete comments |
125
+ | `projects list / create / edit` | List eligible destinations, including all approved bot projects with the primary first; create and edit projects and audience |
126
+ | `move <target>` | Move an existing file into a project or back home; `edit` is preferred for new automation |
127
+ | `preview <file>` (alias of `preview start`) | Serve a local Markdown or HTML file with the product viewer look for browser annotation; local only, no sign-in, nothing uploaded; PDFs and videos cannot be previewed |
128
+ | `preview next` / `preview done` / `preview reply` / `preview history` / `preview stop` | Agent loop for a live preview: poll submitted annotation batches (oversized element text uses ownTextHash and a reader-only ownTextExcerpt above 16,000 UTF-16 code units), report fixed/skipped outcomes from stdin, reply into a thread, read local review history, and stop the session |
129
+ | `login` / `logout` / `whoami` | Sign in, revoke a device-login credential before removing it locally, and check who you are |
130
+ | `doctor` | Diagnose token storage, auth, destination, network, and upload readiness; bot diagnostics distinguish approved_project_ids from live publishable_project_ids while project_id remains the primary |
131
+ | `changelog` | Show the installed version, this release's notes, and the public updates page |
132
+ | `profiles list / use / import-token / delete` | Switch between local account profiles, import an issued token from stdin, and delete profile entries |
133
+ | `init` | Set up this directory: detect Claude Code, Codex, or Cursor and install the full skill folder in user scope (migrating managed legacy Cursor project rules), then show next steps; or save defaults with `--profile` / `--project-id` |
134
+ | `skills ensure / install / list / update / remove` | Install or update the bundled usage guide; shared directory aliases are handled once, unmanaged folders are skipped, protected links refused for mutations, and newer installed versions preserved unless forced; Claude user scope follows CLAUDE_CONFIG_DIR (blank values are unavailable) |
135
135
 
136
136
  Public command paths covered by this reference:
137
137
 
@@ -149,6 +149,42 @@ count.
149
149
 
150
150
  ## Local preview and annotation
151
151
 
152
+ A comment can also rewrite the wording. Click a heading or paragraph made only
153
+ of text and edit it right on the page: Enter adds, Esc cancels, and Tab moves
154
+ to an optional comment. Other elements and selected text show the current
155
+ wording in the editor, ready to change. The page returns to its original text
156
+ once editing ends. `preview next` returns the change as `rewrite: {original,
157
+ proposed}` for the agent to apply to the source file, and `preview history`
158
+ keeps it with the batch. The browser never writes the file itself.
159
+
160
+ Interactive documents stay usable in comment mode: Alt/Option+click operates
161
+ links, buttons, checkboxes and slide controls, and a plain click comments. Each
162
+ comment remembers the URL screen it was made on (a `#/` or `#!/` route hash, or
163
+ a History API path) as `screen`; plain fragments such as `#section` are not
164
+ screens. Comments from another
165
+ screen are shown as such instead of attaching to a similar element; selecting
166
+ one returns to its screen, and one whose screen can no longer be shown needs a
167
+ check without being offered for bulk discard. Screens that exist only in script
168
+ state, such as an open modal, are not tracked. Firefox ignores Alt+click on a
169
+ `<label>`; use the mode switch there. WebKit does not allow the History API in the opaque-origin sandbox.
170
+
171
+ The editor keeps its text and target during resizing and failed saves. Finish or
172
+ cancel the current entry before choosing another target or loading a queued
173
+ update. A failed operation can be retried; a lost acknowledgement does not prove
174
+ that nothing was saved. If Preview ends, copy any unconfirmed comment from the
175
+ surviving page before closing it, then use the displayed restart command.
176
+ Never-saved text is not restored from disk after restarting. Oversized element
177
+ anchors use UTF-8 SHA-256 with a pair-safe excerpt of at most 16,000 UTF-16 code
178
+ units. Candidates containing lone surrogates or U+FFFD cannot hash-attach,
179
+ including ambiguous legacy hashes; their comments remain stored and visible as
180
+ needs-check. Short raw-text and unambiguous legacy anchors remain supported.
181
+
182
+ For HTML with unreadable colors on a transparent canvas, the local **Document
183
+ background** control offers light (the default) and dark backgrounds. It changes
184
+ only the iframe background behind transparent content; authored backgrounds and
185
+ colors, browser theme/media detection, Markdown and the shared Web Viewer are
186
+ unchanged. It is a manual readability recovery, not automatic theme correction.
187
+
152
188
  `preview <file>` serves one local `.md` or `.html` file at a `127.0.0.1` URL
153
189
  with the same rendering as the product viewer. It is a local feature: it works
154
190
  without signing in, and previewing uploads nothing. In the browser, you select
@@ -210,9 +246,15 @@ thread state, and `preview stop` ends the session while keeping annotations
210
246
  saved on disk. Sharing a snapshot happens only from the page's own share
211
247
  dialog, and local annotations are not included in what is shared.
212
248
 
249
+ Each submitted batch is also kept as local review history: the comments and
250
+ anchors, the document when the batch was sent, and the document at each agent
251
+ report. `preview history <file>` lists batches and `--batch <id>` returns one
252
+ in full, also after the preview has stopped. `fixed` and `skipped` are the
253
+ agent's report, not a person's approval. History stays on this machine.
254
+
213
255
  ## Where shared files are delivered
214
256
 
215
- Destination lists include only active projects you can post into. A private project permits its creator, a current workspace owner/admin on the team plan, or a verified contributor/manager. On free and plus, admin status alone does not permit placement in another member’s private project. Viewer access and individual artifact grants do not authorize placement. Agents and bots still require their fixed project and a verified contributor/manager grant for private projects; publisher credentials cannot select projects.
257
+ Destination lists include only active projects you can post into. A private project permits its creator, a current workspace owner/admin on the team plan, or a verified contributor/manager. On free and plus, admin status alone does not permit placement in another member’s private project. Viewer access and individual artifact grants do not authorize placement. Human agents remain limited to their fixed approved project. Ordinary workspace bots may select any destination in their administrator-approved set. Both require a verified contributor/manager grant for private projects; publisher credentials cannot select projects.
216
258
 
217
259
  Posting to a project delivers to the audience defined by that project. With no destination, `share` posts to home. Choose the home audience by purpose:
218
260
 
@@ -227,7 +269,7 @@ Use `--scope repository` only for a policy agreed by all repository participants
227
269
 
228
270
  edit accepts --visibility private|workspace|project|link. Project visibility requires the artifact to be in a project after the edit; use --project-id <id> in the same request if needed. An explicit --visibility project at home (including --home) is refused without changes. Moving a project-visible artifact home makes it private only when project visibility is not explicitly requested.
229
271
 
230
- Owners can run `edit <target> --retain-versions 24 --json` to keep the latest 24 eligible published versions, or `--retain-versions all` to clear the limit. For files created by or assigned to a publisher client, this counts only published publisher versions (including earlier clients) and keeps every version people added, even when an unrestricted owner changes the setting. Other files keep counting all published versions. The current version is always kept. Setting or lowering the limit immediately deletes older eligible versions and releases their storage. The response includes `retain_versions` and `deleted_versions`. Owners can also change this setting in the file history panel, with confirmation before removing existing versions. Authorized viewers opening a version removed by retention see an explanation and a latest-version link (HTTP 410); unknown version IDs still return 404 for signed-in viewers. Clearing the limit never restores deleted content. Comments and surviving version numbers remain. Unrestricted owner credentials can edit retention; publisher credentials can edit only retention on artifacts their client created or was assigned through the API. Agent credentials cannot change retention. The edit API accepts the same setting as `retain_versions` (a positive integer or `null`) at `POST /api/cli/shareables/:id/edit`.
272
+ Owners can run `edit <target> --retain-versions 24 --json` to keep the latest 24 eligible published versions, or `--retain-versions all` to clear the limit. For files created by or assigned to a publisher client, this counts only published publisher versions (including earlier clients) and keeps every version people added, even when an unrestricted owner changes the setting. Other files keep counting all published versions. The current version is always kept. Setting or lowering the limit immediately deletes older eligible versions and releases their storage. The response includes `retain_versions` and `deleted_versions`. Owners can also change this setting in the file history panel, with confirmation before removing existing versions. Authorized history managers opening a version removed by retention see an explanation and a latest-version link (HTTP 410). Other signed-in readers receive the same 404 as for unknown versions; anonymous app-host requests use the normal link redirect for either ID. Clearing the limit never restores deleted content. Comments and surviving version numbers remain. Unrestricted owner credentials can edit retention; publisher credentials can edit only retention on artifacts their client created or was assigned through the API. Agent credentials cannot change retention. The edit API accepts the same setting as `retain_versions` (a positive integer or `null`) at `POST /api/cli/shareables/:id/edit`.
231
273
 
232
274
  Link sharing is available on every plan; Team workspaces can turn it off. A workspace policy may allow a finite expiry from 1 to 365 days or no expiration; the initial default is 30 days and the initial maximum is no limit. Share and edit results include the confirmed `link_expires_at` UTC timestamp or `null`. If a link command fails, use `link_sharing_plan_required` as a legacy code (no plan limit applies today), `link_sharing_disabled` to ask the workspace owner or a Team owner or admin to enable the workspace setting, or `link_expiry_invalid` to correct the timestamp or choose `--no-link-expiry` when allowed. Under the default thresholds, `link_publish_rate_limited` means the service observed 20 counted files before a publication in a Free workspace less than 14 days old during its rolling 24-hour window. A file counts once for its most recent change to link visibility, or for creation with link visibility while it remains link-shared. Share with specific people. `error.recovery` indicates `retry_later`; use `error.message` and `error.hint` for when to retry. Retry the link publication later instead of retrying immediately with unchanged input.
233
275
 
@@ -342,6 +384,8 @@ flags, MCP inputs, or bridge inputs for inheritance.
342
384
 
343
385
  ### Publisher device credentials (API only)
344
386
 
387
+ Publisher version appends return a stable app /a/:id shareUrl for HTML, Markdown and static sites, independent of current visibility. Opening it uses normal viewer authorization and host routing; human update URLs retain their existing visibility behavior.
388
+
345
389
  Versions added with publisher credentials are scheduled updates: content and live viewers refresh, but list order, feeds, unread indicators, and human update labels do not change. Browser history marks Scheduled update without exposing client names. API `updated_at` remains the actual mutation time; internal `activity_at` controls human activity ordering. Initial creation and versions published through other credentials keep their existing behavior.
346
390
 
347
391
  The device API accepts `preset: "publisher"` with a required `device_name`.
@@ -599,6 +643,21 @@ Use `artifacts get <id> --json` to check `data.visibility` and `data.title` for
599
643
 
600
644
  Run `artifacts versions <target> --json` for HTML, Markdown, or static sites. Each entry includes `version_id`, `created_at`, `size_bytes`, and `is_current`, plus available labels and creator metadata. Pages contain up to 50 entries, newest first. While `has_more` is true, pass `next_cursor` as `--cursor`; an invalid or wrong-artifact cursor requires restarting without it. Publication or pruning between pages is not a snapshot.
601
645
 
602
- For human and agent credentials, updated servers return `retain_versions` (null means unlimited), `version_count`, and `total_size_bytes` in `artifacts get` and every `artifacts list` row, and on history pages. Counts and byte totals cover versions the caller can list, independently of the history page or source `--version`. Static-site history and totals include only published versions with a publication timestamp for every caller, including owners. Publisher credentials do not receive `version_count` or `total_size_bytes` and cannot list artifacts or read history. Publisher-created static-site versions may have a null `creator`. Static-site bytes sum all files in each version, including inherited files. Reused files count in each version. These are logical bytes, not physical storage, billing, or proof of object cleanup. Publisher-managed histories may exceed the policy because human-created and current versions are protected. Combine list pages and compare `total_size_bytes` client-side to find the largest artifacts.
646
+ For human and agent credentials, updated servers return `retain_versions` (null means unlimited), `version_count`, and `total_size_bytes` in `artifacts get`, legacy `artifacts list` rows (without search filters), and history pages. Human search rows also include these fields; restricted agent and bot search rows omit all three. Counts and byte totals cover versions the caller can list, independently of the history page or source `--version`. Static-site history and totals include only published versions with a publication timestamp for every caller, including owners. Publisher credentials do not receive `version_count` or `total_size_bytes` and cannot list artifacts or read history. Publisher-created static-site versions may have a null `creator`. Static-site bytes sum all files in each version, including inherited files. Reused files count in each version. These are logical bytes, not physical storage, billing, or proof of object cleanup. Publisher-managed histories may exceed the policy because human-created and current versions are protected. Combine list pages and compare `total_size_bytes` client-side to find the largest artifacts.
603
647
 
604
648
  Static-site `artifacts get` now succeeds with metadata only, without `content` or `format`; `--include`, `--version`, and `--offset` remain unsupported for sites. Updated CLI get explicitly requests metadata. Released source-only clients retain unsupported-kind, so open still suggests download. Publisher credentials can read their scoped current metadata and, for sites, retain_versions, without version counts or total sizes but cannot list history or use `get --include versions`. Existing human/agent access rules apply; unreadable artifacts return `target_not_found` (API 404), with failure JSON on stderr, empty stdout, and exit 1. Shared viewers retain history access with creator email redaction. All shared flags and supported target URL forms work with `artifacts versions`.
649
+
650
+ ## Full-text search
651
+
652
+ Use `artifacts list --q <text>` (MCP: `list_artifacts` with `q`) to search body text and titles. `query` / `--query` matches titles only; combining it with full-text, owner, or period filters returns `validation_failed`. API `q: ""` browses discoverable files; the CLI requires nonblank `--q`, or omit it for owner/period browsing.
653
+
654
+ Filter by repeatable `--owner-user-ids` (MCP array `owner_user_ids`, user IDs, not email addresses), `--project-id` / `project_id`, or `--home` / empty `project_id`. Periods require `--date-field updated|viewed` (`date_field`) and either `--days 7|30|90` or ISO `--from` / `--to`. Date-only upper bounds include that UTC day; timestamp upper bounds are exclusive.
655
+
656
+ Search returns up to 50 grouped representatives per page, excerpts, `group_size` and `group_size_relation`, and `total` matching groups capped at 1000. `eq` means exact; `gte` means a lower bound. Group sizes count allowed matching documents with the same normalized title across the search, not just this page. Repeat normalized filters with `next_cursor`; restart without cursor after changing filters or credentials. Relative periods stay anchored to the first page.
657
+
658
+ Human CLI and MCP OAuth use person discovery. Restricted agents and bots search only its intersection with their readable project range; search omits their version/retention summaries. Publisher, bridge and bootstrap credentials cannot list/search. MCP OAuth does not accept bots.
659
+
660
+ Rephrase the query and search again before concluding that nothing exists.
661
+ A completed zero-result search succeeds with this `search_hint`; errors and capacity failures are not empty results. Retry with fewer or different words before concluding absence. For a query with two or more normalized terms and no matches for all terms, search automatically retries for any of the terms. No additional flag or OR syntax is needed. Results from this fallback carry the hint: "No documents matched all query terms. These results match any of the terms. Rephrase the query and search again." If search fails because search capacity was exceeded (the CLI reports `service_error` with `details.api_code` `search_capacity_exceeded`; the API answers HTTP 503), narrow the query or filters and search again; this error is not a zero-result search.
662
+
663
+ Full-text search shares 1,000 requests per authenticated actor per UTC day across all plans and clients. HTTP 429 and CLI JSON use `search_daily_limit_exceeded`; CLI `error.details.retry_at` is the exact UTC ISO reset, and `retry_after_seconds` mirrors HTTP `Retry-After`. Wait until reset before searching again. Title-only listing is unaffected.
package/dist/cli.d.ts CHANGED
@@ -1,9 +1,17 @@
1
- //#region src/cli.d.ts
2
- export declare function generateCliHelp(path: string[]): Promise<string>;
3
- export declare function runCli(argv: string[]): Promise<void>;
4
- export declare function commandOptionCatalog(): Map<string, Map<string, {
1
+ import "gunshi";
2
+ import "zod";
3
+ import "undici";
4
+ type Option = {
5
5
  name: string;
6
6
  boolean: boolean;
7
7
  spelling?: string;
8
- }>>;
9
- //#endregion
8
+ };
9
+ type Options = Map<string, Option>;
10
+ type CommandSpec = {
11
+ options: Options;
12
+ positionals: number;
13
+ };
14
+ export declare function generateCliHelp(path: string[]): Promise<string>;
15
+ export declare function runCli(argv: string[]): Promise<void>;
16
+ export declare function commandOptionCatalog(): Map<string, CommandSpec>;
17
+ export {};