@artifactshare/cli 0.14.0 → 0.15.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artifactshare/cli",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "description": "Upload and share HTML, Markdown, folders, and static sites from terminals, AI agents, automation, and CI.",
5
5
  "homepage": "https://artifactshare.com/connect",
6
6
  "repository": {
@@ -4,7 +4,7 @@ description: Share, publish, upload, host, update, open, or read back existing f
4
4
  ---
5
5
 
6
6
  <!-- artifactshare-skill
7
- version: 40
7
+ version: 41
8
8
  managed: true
9
9
  -->
10
10
 
@@ -246,6 +246,8 @@ npm exec --yes --package=@artifactshare/cli -- artifactshare comments post <arti
246
246
  npm exec --yes --package=@artifactshare/cli -- artifactshare comments post <artifact-id-or-url> --body '<text>' --agent 'Claude' --json
247
247
  ```
248
248
 
249
+ Quoted comments are resolved in the viewer using the exact quote and surrounding context, never the nearest repeated words. `--quote-before` and `--quote-after` accept up to 400 characters per side; preserve spaces next to the quote. Creation does not search the artifact. Optional `anchor.position_state` is `unchecked` until that version is viewed, then `attached` or `needs-check`. Only `attached` maps to `anchor.state: attached`; both other states map to `orphaned`. Older responses may omit `position_state`. Local preview uses the same strict resolution on every reload and preserves the original quote when its position needs checking.
250
+
249
251
  - `--reply-to <thread-id>` replies to an existing thread from `comments list`.
250
252
  - `--quote <text>` anchors a new thread to the quoted text. Copy the text from
251
253
  `artifacts get` so it matches exactly. When the same text appears more than
@@ -279,6 +281,12 @@ npm exec --yes --package=@artifactshare/cli -- artifactshare edit <artifact-id-o
279
281
  npm exec --yes --package=@artifactshare/cli -- artifactshare delete <artifact-id-or-url> --json
280
282
  ```
281
283
 
284
+ - Owners with unrestricted credentials can set `edit <target> --retain-versions N`
285
+ to keep the latest N published versions, or `--retain-versions all` to keep all
286
+ future versions. Setting or lowering retention immediately deletes older
287
+ versions; the response reports `retain_versions` and `deleted_versions`.
288
+ Deleted version links return 404, while comments and surviving version numbers
289
+ remain. Agent-preset credentials cannot change retention.
282
290
  - `edit` changes title, visibility, explicit viewers, or project placement
283
291
  without adding a new version.
284
292
  - Set `--visibility link` with `--link-expires-at <RFC3339 UTC>` for a finite
@@ -4,7 +4,7 @@ alwaysApply: false
4
4
  ---
5
5
 
6
6
  <!-- artifactshare-skill
7
- version: 40
7
+ version: 41
8
8
  managed: true
9
9
  -->
10
10
 
@@ -70,6 +70,8 @@ contain `$`, spaces, `*`, or `?`; use single quotes such as
70
70
  - Fetch every document in a project with `download --project-id <id> --output <dir> --json`. Each artifact lands in `<dir>/<artifactId>/` and `<dir>/index.json` maps ids to titles, owners, and statuses. The listing includes other members' artifacts you can view; `spa` and `workspace_app` artifacts are skipped. Pass `--force` to replace previously downloaded artifact directories. A partial failure prints `ok: true` with the failure list on stdout and exits 1 — check both `index.json` and the exit code. Re-running against the same `<dir>` is an incremental sync: artifacts whose version is unchanged are reported as `unchanged` and not fetched again.
71
71
  - Find artifact IDs with `artifacts list --json`; filter with `--project-id <id>`, `--home`, or `--query <text>`. With `--project-id`, the list includes other members' artifacts you can view (with `owner_email`); when `has_more` is true, continue with `--cursor <next_cursor>`. Resolve titles, project names, and URLs to IDs with `resolve <value> --json`.
72
72
  - Comment with `comments post <target> --body '<text>' --json`. Reply with `--reply-to <thread-id>`. Anchor to quoted text with `--quote '<text>'`; add `--quote-before`/`--quote-after` to disambiguate. Declare the posting agent with `--agent '<name>'` (e.g. `Claude`); omit for no badge. `comments list` returns an `agent` field on agent-posted messages.
73
+ Quoted comments are resolved in the viewer using the exact quote and surrounding context, never the nearest repeated words. `--quote-before` and `--quote-after` accept up to 400 characters per side; preserve spaces next to the quote. Creation does not search the artifact. Optional `anchor.position_state` is `unchecked` until that version is viewed, then `attached` or `needs-check`. Only `attached` maps to `anchor.state: attached`; both other states map to `orphaned`. Older responses may omit `position_state`. Local preview uses the same strict resolution on every reload and preserves the original quote when its position needs checking.
74
+
73
75
  - Edit, resolve, reopen, and delete comments with `comments edit`, `comments resolve`, `comments reopen`, and `comments delete` using IDs from `comments list`. Comment deletion cannot be undone; omit `--message-id` from `comments delete` only when the user wants the whole thread deleted.
74
76
  - Change post-share settings with `edit <target>`: `--title`, `--visibility private|workspace|link`, `--link-expires-at <RFC3339 UTC>`, `--no-link-expiry`, `--grant-email`, `--revoke-email`, `--project-id`, `--home`. The expiry options are mutually exclusive; omit both to preserve an existing link expiry. Moving a `project` visibility file home makes it `private`. `move` remains for placement-only automation; prefer `edit`.
75
77
  - For link errors, `link_sharing_plan_required` is a legacy code (Free can use link sharing now),
@@ -123,3 +125,5 @@ version menu and full history show the label as plain text.
123
125
  `GET /api/shareables/:id/versions` remains a current-version lookup.
124
126
  Labels are update-only: initial uploads, `share --key`, `append`, preview,
125
127
  bridge publishing, and MCP update inputs do not accept them.
128
+
129
+ Owners with unrestricted credentials can use `edit <target> --retain-versions N` to keep the latest N versions, or `--retain-versions all` to clear the limit. Setting or lowering retention prunes older published versions immediately; the response includes `retain_versions` and `deleted_versions`. Comments and surviving version numbers remain. Agent-preset credentials cannot change retention.