@artifactshare/cli 0.19.2 → 0.20.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,13 @@
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.20.0 - 2026-10-28
7
+
8
+ - Shorten the bundled skill entrypoint and load task-specific details from directly linked references.
9
+ - Install and manage complete skill folders, including nested references, for Claude Code, Codex and Cursor at both scopes.
10
+ - Track owned files in a manifest, preserve user additions, repair same-version drift, and expose folder diagnostics in list and doctor JSON.
11
+ - Migrate managed project Cursor rules to `.cursor/skills/artifactshare/`; preserve user-owned rules with recovery guidance.
12
+
6
13
  ## 0.19.2 - 2026-10-26
7
14
 
8
15
  - Respect `CLAUDE_CONFIG_DIR` for Claude Code user skills, including automatic detection and updates. Blank settings skip automatic writes and report recovery guidance in diagnostics.
package/README.md CHANGED
@@ -82,29 +82,29 @@ project's Slack channel must be reauthorized.
82
82
 
83
83
  ## Commands
84
84
 
85
- | Command | What it does |
86
- | ------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
87
- | `open <target>` | First command for agents opening a share or artifactshareusercontent.com execution URL; ensures skills, then reads or suggests download |
88
- | `share <path>` | Share a file or folder as a new shared file (`--project`, `--home`, `--visibility`, `--key`, link expiry options) |
89
- | `update <target> <path>` | Add a new version to an existing file (ID or share URL); optional `--label` adds a version note |
90
- | `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 |
91
- | `edit <target>` | Change title, sharing, link expiry, explicit viewers, or project placement |
92
- | `delete <target>` | Permanently delete a file you shared |
93
- | `artifacts delete <target>` | Alias of delete; permanently delete a file you shared |
94
- | `resolve <value>` | Find files by URL, ID, title, or project name |
95
- | `artifacts get <target>` | Read a file's content and metadata back |
96
- | `download <target>` | Save a file or a whole static site locally |
97
- | `comments list / post / edit / resolve / reopen / delete <target>` | Read, write, edit, resolve, reopen, and permanently delete comments |
98
- | `projects list / create / edit` | List eligible project destinations; create and edit projects and audience |
99
- | `move <target>` | Move an existing file into a project or back home; `edit` is preferred for new automation |
100
- | `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 |
101
- | `preview next` / `preview done` / `preview reply` / `preview stop` | Agent loop for a live preview: poll submitted annotation batches, report fixed/skipped outcomes from stdin, reply into a thread, and stop the session |
102
- | `login` / `logout` / `whoami` | Sign in, revoke a device-login credential before removing it locally, and check who you are |
103
- | `doctor` | Diagnose token storage, auth, destination, network, and upload readiness — tells you the next command to run |
104
- | `changelog` | Show the installed version, this release's notes, and the public updates page |
105
- | `profiles list / use / import-token / delete` | Switch between local account profiles, import an issued token from stdin, and delete profile entries |
106
- | `init` | Set up this directory: detect Claude Code, Codex, or Cursor and install the skill in user scope, then show next steps; or save defaults with `--profile` / `--project-id` |
107
- | `skills ensure / install / list / update / remove` | Install or update the bundled usage guide in your AI agent's skills; Claude user scope follows CLAUDE_CONFIG_DIR (blank values are unavailable) |
85
+ | Command | What it does |
86
+ | ------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
87
+ | `open <target>` | First command for agents opening a share or artifactshareusercontent.com execution URL; ensures skills, then reads or suggests download |
88
+ | `share <path>` | Share a file or folder as a new shared file (`--project`, `--home`, `--visibility`, `--key`, link expiry options) |
89
+ | `update <target> <path>` | Add a new version to an existing file (ID or share URL); optional `--label` adds a version note |
90
+ | `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 |
91
+ | `edit <target>` | Change title, sharing, link expiry, explicit viewers, or project placement |
92
+ | `delete <target>` | Permanently delete a file you shared |
93
+ | `artifacts delete <target>` | Alias of delete; permanently delete a file you shared |
94
+ | `resolve <value>` | Find files by URL, ID, title, or project name |
95
+ | `artifacts get <target>` | Read a file's content and metadata back |
96
+ | `download <target>` | Save a file or a whole static site locally |
97
+ | `comments list / post / edit / resolve / reopen / delete <target>` | Read, write, edit, resolve, reopen, and permanently delete comments |
98
+ | `projects list / create / edit` | List eligible project destinations; create and edit projects and audience |
99
+ | `move <target>` | Move an existing file into a project or back home; `edit` is preferred for new automation |
100
+ | `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 |
101
+ | `preview next` / `preview done` / `preview reply` / `preview stop` | Agent loop for a live preview: poll submitted annotation batches, report fixed/skipped outcomes from stdin, reply into a thread, and stop the session |
102
+ | `login` / `logout` / `whoami` | Sign in, revoke a device-login credential before removing it locally, and check who you are |
103
+ | `doctor` | Diagnose token storage, auth, destination, network, and upload readiness — tells you the next command to run |
104
+ | `changelog` | Show the installed version, this release's notes, and the public updates page |
105
+ | `profiles list / use / import-token / delete` | Switch between local account profiles, import an issued token from stdin, and delete profile entries |
106
+ | `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` |
107
+ | `skills ensure / install / list / update / remove` | Install or update the bundled usage guide in your AI agent's skills; Claude user scope follows CLAUDE_CONFIG_DIR (blank values are unavailable) |
108
108
 
109
109
  Public command paths covered by this reference:
110
110
 
@@ -214,7 +214,7 @@ For first-time setup in a project, start here:
214
214
  npm exec --yes --package=@artifactshare/cli -- artifactshare init --json
215
215
  ```
216
216
 
217
- `init` detects Claude Code, Codex, or Cursor in the working directory (and Claude Code at its resolved user root when CLAUDE_CONFIG_DIR is nonblank), installs or updates the bundled skill in user scope, and reports the next steps (sign in, then share). With no agent detected, it installs user-scope Codex, Claude Code, and Cursor skills. Cursor project scope is not auto-installed; use `skills install --tool cursor --scope project`. Existing project-scope skills are not modified. Add `--dry-run` to preview without writing.
217
+ `init` detects Claude Code, Codex, or Cursor in the working directory (and Claude Code at its resolved user root when CLAUDE_CONFIG_DIR is nonblank), installs or updates the bundled skill in user scope, and reports the next steps (sign in, then share). With no agent detected, it installs user-scope Codex, Claude Code, and Cursor skills. Cursor project scope is not auto-installed; use `skills install --tool cursor --scope project`. Existing project-scope skills are not modified, except managed legacy Cursor rules migrate to .cursor/skills/artifactshare/. Add `--dry-run` to preview without writing.
218
218
 
219
219
  When an agent receives an Artifact Share URL instead, start with `open`:
220
220
 
@@ -500,3 +500,11 @@ and `append --help` list all upload boundary reasons and fixes.
500
500
  Local HTML and Markdown previews run scripts inside a frame with `sandbox="allow-scripts"`. Preview isolation cannot be disabled. `localStorage`, IndexedDB, and other same-origin features are unavailable; the review shell always shows this restriction. Reporter observations are bounded, document-scoped display data. Saving or submitting feedback requires an explicit action in the review shell.
501
501
 
502
502
  Local preview and share-dialog HTTP routes still lack per-session authentication. Loopback binding, Host checks and fixed mutation headers do not authenticate other local clients. Do not treat knowledge of the local port as an access-control boundary. Session authentication and private browser launchers are deferred; the existing ready `url` and `--no-open` behavior are unchanged.
503
+
504
+ Skills are installed as folders: `.claude/skills/artifactshare/`, `.agents/skills/artifactshare/`, and `.cursor/skills/artifactshare/` at project or user scope (Claude user scope honors CLAUDE_CONFIG_DIR). Each folder contains SKILL.md and the bundled references tree. `.artifactshare-managed.json` records owned paths and SHA-256 hashes. Updates repair missing or differing owned files, retire previously owned files, and preserve user additions. Unowned path collisions require explicit `skills install --force`; `skills update --force` never takes over an unmanaged entry. Invalid ownership metadata requires inspection before reinstalling.
505
+
506
+ Writes stage files beside their destinations, replace references, retire owned files, commit the manifest, then replace SKILL.md last. Readers may briefly see mixed references during this bounded operation. Interrupted manifest/version mismatches are conflicts. Removal deletes only owned files and prunes empty directories.
507
+
508
+ `skills list --json` and `doctor --json` retain entry-file `path` and add `folder_path`, `complete`, `current`, `older_version`, sorted `missing_files`, `different_files`, `modified_files`, and `ownership_manifest` (valid/absent/invalid). Missing/different paths compare the current bundle; modified paths compare installed manifest hashes. Complete means every bundled file is regular. Current also requires matching managed version, bytes, and a valid manifest. Missing folders report all bundled paths missing; unavailable targets have null folder paths, false booleans and empty arrays. Unverified ownership has an empty modified list. Existing update_available retains version comparison semantics.
509
+
510
+ Project Cursor targets also report `legacy_rule` with path, present, managed, coexistence and hint. Managed `.cursor/rules/artifactshare.mdc` files migrate only after the skill folder succeeds, including during automatic setup/update. This is the only project-scope automatic migration; a user-owned rule never authorizes installation. User-owned rules remain with inspection/manual-removal guidance. Actions add folder_path and optional legacy_rule action (removed/would_remove/kept_unmanaged/remove_failed). Dry runs do not write; failed cleanup includes retry guidance. Project removal handles both managed forms.