@artifactshare/cli 0.20.0 → 0.20.2
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 +16 -0
- package/README.md +33 -25
- package/dist/cli.js +675 -117
- package/package.json +1 -1
- package/skills/artifactshare/SKILL.md +2 -2
- package/skills/artifactshare/references/authentication-profiles-skills.md +9 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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.2 - 2026-10-28
|
|
7
|
+
|
|
8
|
+
- Preserve newer managed skills during install unless force explicitly requests a downgrade.
|
|
9
|
+
- Skip unmanaged folders with protected-path links during update and removal (`skipped_unmanaged`), without reading their referents or reporting a list/doctor conflict.
|
|
10
|
+
- Preserve user-added skill links and report them in list/doctor; isolate protected-link conflicts so other selected targets finish.
|
|
11
|
+
- Never recommend downgrading newer installed skills; require explicit force and describe the downgrade.
|
|
12
|
+
- Clarify Japanese interrupted-update cleanup guidance and skill JSON partial failures.
|
|
13
|
+
|
|
14
|
+
## 0.20.1 - 2026-10-28
|
|
15
|
+
|
|
16
|
+
- 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.
|
|
17
|
+
- 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.
|
|
18
|
+
- 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.
|
|
19
|
+
- Preserve edits to retained managed files during normal updates; explicit `skills update --force` can replace those edits. User additions remain protected.
|
|
20
|
+
- Clarify bundled setup guidance for shared skill folder links and edited files, and bump the skill marker version so existing installations update automatically.
|
|
21
|
+
|
|
6
22
|
## 0.20.0 - 2026-10-28
|
|
7
23
|
|
|
8
24
|
- Shorten the bundled skill entrypoint and load task-specific details from directly linked references.
|
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 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
|
|
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, 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) |
|
|
108
108
|
|
|
109
109
|
Public command paths covered by this reference:
|
|
110
110
|
|
|
@@ -501,10 +501,18 @@ Local HTML and Markdown previews run scripts inside a frame with `sandbox="allow
|
|
|
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
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
|
|
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
505
|
|
|
506
|
-
Writes stage files
|
|
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
507
|
|
|
508
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
509
|
|
|
510
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. User-added links outside bundled, manifest-listed, pending-intent-listed and reserved CLI paths are ignored without following them; doctor and skills list report their sorted folder-relative paths in `user_links`. For managed folders and forced installs, links at protected paths, including SKILL.md, references and CLI metadata, are refused even with force. Folders without ownership records or a managed skill or legacy rule remain unmanaged: update and remove report `skipped_unmanaged`, even with SKILL.md or references links. List and doctor report them as unmanaged without reading link referents. Replace the named link with a regular file or directory or remove it 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, ignored user links and their containing directory.
|
|
513
|
+
|
|
514
|
+
Without tool filters, update/remove continue healthy targets after a conflict. Partial failures keep the `ok: true` stdout envelope with `data.targets`, report `action: "failed"`, `code: "skill_update_conflict"` and `hint` for the failed target, and exit with status 1. Explicit unsafe target selections retain the `ok: false` error envelope.
|
|
515
|
+
|
|
516
|
+
When a newer CLI installed the managed version, list/doctor report `update_available: false` and a `hint` containing "A newer CLI installed", with no update recommendation. Unforced skills install and skills update preserve the entire target, including temporary files and legacy rules. Explicit `--force` permits a downgrade, reported with both versions in `hint`; `--dry-run --force` reports the same intent without writing. Protected links and newer pending intents still refuse force.
|
|
517
|
+
|
|
518
|
+
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 except newer installed versions skipped by skills install or skills update. 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.
|