@artifactshare/cli 0.19.1 → 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 +10 -1
- package/README.md +34 -24
- package/dist/cli.js +683 -114
- package/package.json +1 -1
- package/skills/artifactshare/SKILL.md +86 -607
- package/skills/artifactshare/references/authentication-profiles-skills.md +72 -0
- package/skills/artifactshare/references/comments.md +64 -0
- package/skills/artifactshare/references/local-write-recovery.md +35 -0
- package/skills/artifactshare/references/organize-settings.md +109 -0
- package/skills/artifactshare/references/preview.md +155 -0
- package/skills/artifactshare/references/rest-api-only.md +76 -0
- package/skills/artifactshare/references/static-sites.md +39 -0
- package/skills/artifactshare/references/upload-path-safety.md +18 -0
- package/skills/artifactshare/references/version-labels.md +30 -0
- package/skills/artifactshare/artifactshare.mdc +0 -351
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,16 @@
|
|
|
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
|
-
##
|
|
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
|
+
|
|
13
|
+
## 0.19.2 - 2026-10-26
|
|
14
|
+
|
|
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.
|
|
7
16
|
|
|
8
17
|
## 0.19.1 - 2026-10-26
|
|
9
18
|
|
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
|
|
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, 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
|
|
|
@@ -224,6 +224,8 @@ npm exec --yes --package=@artifactshare/cli -- artifactshare open <artifact-id-o
|
|
|
224
224
|
|
|
225
225
|
This installs or updates the local skill first, then reads single-file artifacts. Static sites and multi-file artifacts return a `download` next command.
|
|
226
226
|
|
|
227
|
+
Claude Code user skills use CLAUDE_CONFIG_DIR when set, otherwise ~/.claude. Relative values resolve against the CLI working directory without tilde expansion; surrounding spaces are preserved. Empty or whitespace-only values disable Claude user-scope writes: automatic setup skips them. Mutations explicitly selecting --tool claude --scope user fail with validation_failed. With --tool claude and no --scope, skills update and skills remove process the project target and report the user target as skipped. Set CLAUDE_CONFIG_DIR to a non-empty path or unset it to use ~/.claude. skills list and doctor report unavailable targets with path: null and the recovery hint. When CLAUDE_CONFIG_DIR is set to a nonblank value, an existing resolved root also detects Claude Code for automatic setup. Old ~/.claude skills are left untouched; project scope, Codex and Cursor paths are unchanged. The skill file is `<root>/skills/artifactshare/SKILL.md`. The variable must reach the CLI process; settings confined to another launcher are not visible.
|
|
228
|
+
|
|
227
229
|
To target a specific tool manually, use `skills install --tool <codex|claude|cursor> [--scope project|user]`; project scope is opt-in for team commits. `skills ensure --tool auto` is the same user-scope detection `init` and `open` use (omit `--scope` or pass `--scope user`; `--scope project` fails). Regular successful commands also update outdated managed user-scope Codex, Claude Code, and Cursor skills when they are already installed, but do not create a missing Cursor user-scope skill.
|
|
228
230
|
|
|
229
231
|
Comment deletion is permanent. Use `comments delete <target> --thread-id <id> --message-id <id> --json` for one message, or omit `--message-id` only when deleting the whole thread.
|
|
@@ -498,3 +500,11 @@ and `append --help` list all upload boundary reasons and fixes.
|
|
|
498
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.
|
|
499
501
|
|
|
500
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.
|