@artifactshare/cli 0.19.2 → 0.20.1
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 +15 -0
- package/README.md +36 -24
- package/dist/cli.js +957 -128
- package/package.json +1 -1
- package/skills/artifactshare/SKILL.md +86 -610
- package/skills/artifactshare/references/authentication-profiles-skills.md +76 -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 -352
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,21 @@
|
|
|
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.1 - 2026-10-28
|
|
7
|
+
|
|
8
|
+
- Support skill folder and ancestor directory symlinks, deduplicate shared destinations, and expose selected aliases and resolved folder paths in JSON. Internal file and directory links remain refused, including SKILL.md.
|
|
9
|
+
- Prefer sibling staging for skill writes, falling back to private staging inside the skill folder when permissions or filesystem boundaries require it. Clean reserved debris only after ten minutes, including on no-op updates. Preserve configured links on removal and roll back failed writes.
|
|
10
|
+
- Skip absent skills beneath dangling ancestor links without blocking other targets. Recommend force updates for managed edits, and show repair hints without force commands for unsafe links or layouts.
|
|
11
|
+
- Preserve edits to retained managed files during normal updates; explicit `skills update --force` can replace those edits. User additions remain protected.
|
|
12
|
+
- Clarify bundled setup guidance for shared skill folder links and edited files, and bump the skill marker version so existing installations update automatically.
|
|
13
|
+
|
|
14
|
+
## 0.20.0 - 2026-10-28
|
|
15
|
+
|
|
16
|
+
- Shorten the bundled skill entrypoint and load task-specific details from directly linked references.
|
|
17
|
+
- Install and manage complete skill folders, including nested references, for Claude Code, Codex and Cursor at both scopes.
|
|
18
|
+
- Track owned files in a manifest, preserve user additions, repair same-version drift, and expose folder diagnostics in list and doctor JSON.
|
|
19
|
+
- Migrate managed project Cursor rules to `.cursor/skills/artifactshare/`; preserve user-owned rules with recovery guidance.
|
|
20
|
+
|
|
6
21
|
## 0.19.2 - 2026-10-26
|
|
7
22
|
|
|
8
23
|
- 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
|
|
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; shared directory aliases are handled once, internal links are refused; 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,15 @@ 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 owned files and retire unchanged owned files. User additions and hash-detected edits, including retained bundled paths, are preserved unless an explicit force operation authorizes replacement. Use `skills update --force` to replace edited managed files. 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 in a private directory, 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.
|
|
511
|
+
|
|
512
|
+
Skill folders and their configured ancestors may be directory symlinks. The CLI resolves the folder with realpath and handles each shared destination once, in Codex, Claude, Cursor order (project before user); the first selected alias supplies the legacy fields. JSON target rows include `aliases` (tool, scope, path, folder_path) and `resolved_folder_path`. Explicit filters include only selected aliases. Internal links, including SKILL.md, references and the manifest, are refused even with force. Restore dangling links to a directory; preserve edits and replace internal links with ordinary content before retrying. A missing skill beneath a dangling ancestor is reported as not installed, with the broken ancestor path, and does not block other targets. Link and layout conflicts provide repair hints without a force command. Removal preserves configured links and their destination directory.
|
|
513
|
+
|
|
514
|
+
Writes prefer a private sibling `.artifactshare-staging-<uuid>` directory. If the parent is not writable or a commit crosses filesystems, the CLI stages inside the skill folder instead and still commits files by rename. Real install, update, ensure and automatic updates clean reserved staging directories and exact UUID-shaped `.artifactshare-<uuid>.tmp` regular files only when their modification times are more than ten minutes old before checking conflicts, including no-op selections. Diagnostics and dry runs never clean files. Unrelated names and symlink referents are never deleted. Failed writes roll back committed paths and remove staging; interrupted processes leave debris for the next mutation.
|