@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artifactshare/cli",
3
- "version": "0.20.0",
3
+ "version": "0.20.2",
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: 48
7
+ version: 50
8
8
  managed: true
9
9
  -->
10
10
 
@@ -236,7 +236,7 @@ access, expiry, retention, deletion, or persistent defaults. Delete only on expl
236
236
  ## Skills and profiles
237
237
 
238
238
  `skills ensure --tool auto --json` prepares user-scope skills;
239
- `skills update --json` updates managed installations. Project installation is opt-in.
239
+ `skills update --json` updates managed installations, preserving versions installed by a newer CLI unless `--force` explicitly requests a downgrade. User-added links are ignored; protected-path links are refused. Project installation is opt-in.
240
240
  `profiles list --json` shows saved profiles; `profiles use <name> --json` switches
241
241
  selection. Use `logout --profile <name> --json` to revoke a device-login credential.
242
242
  The authentication, profiles and skills reference above covers tools, scopes, storage,
@@ -67,6 +67,14 @@ npm exec --yes --package=@artifactshare/cli -- artifactshare skills list --json
67
67
  - `skills ensure --tool auto` accepts omitted `--scope` or `--scope user`;
68
68
  `--scope project` fails with `validation_failed`. Project-scope skills are
69
69
  opt-in via `skills install --tool <tool> --scope project`.
70
- - `skills update` updates installed managed skills to the bundled version.
70
+ - `skills update` updates installed managed skills to the bundled version. Edits to owned files require `skills update --force`; additions are preserved.
71
71
  - `--force` overwrites an unmanaged file on install.
72
72
  - Run `skills --help` for all subcommands.
73
+
74
+ 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.
75
+
76
+ 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.
77
+
78
+ 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.
79
+
80
+ 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.