@artifactshare/cli 0.16.0 → 0.17.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 +20 -0
- package/README.md +112 -2
- package/dist/index.js +1015 -360
- package/package.json +1 -1
- package/skills/artifactshare/SKILL.md +59 -0
- package/skills/artifactshare/artifactshare.mdc +59 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,26 @@ For user-facing announcements, see https://artifactshare.com/updates?product=cli
|
|
|
5
5
|
|
|
6
6
|
## Unreleased
|
|
7
7
|
|
|
8
|
+
## 0.17.0 - 2026-10-23
|
|
9
|
+
|
|
10
|
+
- Record invalid, duplicate or conflicting manifest file paths and malformed or mismatched project manifest identities as per-artifact failures and continue project downloads. Malformed single-download responses report service errors; failure hints name only verified, nonempty retained workspaces.
|
|
11
|
+
|
|
12
|
+
- Recheck each write operation’s recorded ancestry to detect nested directory redirects while avoiding unrelated trees.
|
|
13
|
+
|
|
14
|
+
- Check download manifest path conflicts without pairwise scans, preserve case-distinct paths on Linux, and return `output_exists` before inspecting an existing single-download tree without `--force`. New local files respect the umask; replaced init config and Git excludes preserve their permissions.
|
|
15
|
+
|
|
16
|
+
- Download validates ten-character lowercase alphanumeric artifact IDs before writes. Output parents may be links; their resolved directory identities are rechecked. Linked output roots, indexes, and listed artifact trees are rejected even with `--force`. Preflight includes unchanged artifacts but does not walk unrelated content. Ordinary network/content failures remain per-artifact; every boundary violation stops further publication. Successful replacements retain originals and previous indexes at reported recovery paths for manual cleanup. Artifact IDs with surrounding whitespace are rejected, not trimmed, including single-download targets; remove the whitespace before retrying. Share URLs use normal URL-to-ID resolution.
|
|
17
|
+
- Init atomically saves local defaults while preserving unknown keys. Linked config paths are refused; Git worktrees and unsafe exclude paths save config with actionable manual-exclude warnings.
|
|
18
|
+
- Upload aliases use the stored filename for kind and content type. Disappearing listed entries report `changed`; relative paths through files report `not_found`. Share and append help include all upload recovery reasons.
|
|
19
|
+
|
|
20
|
+
- Verify local upload boundaries for share, append, and update before authentication. Reject links and parent traversal, detect observed path replacements, and reuse verified content on authentication retries.
|
|
21
|
+
|
|
22
|
+
- Accept version-scoped execution URLs on artifactshareusercontent.com while preserving public share URLs and legacy URL-to-ID resolution. Artifact execution is isolated from app and link-viewer cookies.
|
|
23
|
+
|
|
24
|
+
- Show only authorized project destinations and enforce live placement permissions when uploads, moves, edits, and agent updates commit. Preserve existing contents and clean up uploads if destination access is revoked.
|
|
25
|
+
|
|
26
|
+
- Declare the optional `deleted_message_id` in the MCP `delete_comment` output schema to match existing deletion responses.
|
|
27
|
+
|
|
8
28
|
## 0.16.0 - 2026-10-20
|
|
9
29
|
|
|
10
30
|
- Paginate comments with first/latest-three windows, counts, older cursors and targeted reads. Enforce 500 stored messages per thread and 20 combined create/reply admissions per user/artifact per fixed UTC minute, with structured retry guidance.
|
package/README.md
CHANGED
|
@@ -6,6 +6,8 @@ The official CLI to open, share, and update files, folders, and static sites on
|
|
|
6
6
|
|
|
7
7
|
Artifact Share hosts AI-built reports, documents, and static sites so you can share them with teammates and clients. This CLI shares a single file or a whole folder (HTML, Markdown, exported SPAs, images included), updates versions, opens shared URLs for agents, reads content and comments back, and works the same for humans, terminal agents (Claude Code, Codex, Cursor Agent), and automation.
|
|
8
8
|
|
|
9
|
+
Targets accept artifact IDs, app share URLs, per-ID `artifactshare.link` viewer URLs, and `a-<id>--v-<hex-version>.artifactshareusercontent.com` or `l-<id>--v-<hex-version>.artifactshareusercontent.com` execution URLs. Legacy sandbox and link-content URLs still resolve to IDs through the API; they no longer serve file content. Public share URLs are unchanged.
|
|
10
|
+
|
|
9
11
|
## WebAssembly dashboards
|
|
10
12
|
|
|
11
13
|
Static sites can run WebAssembly and workers, such as DuckDB-WASM loaded from jsDelivr, and folder uploads accept `.wasm` and `.parquet`; extensions such as `parquet` load from `extensions.duckdb.org`, and the bundled skill describes the setup.
|
|
@@ -71,7 +73,7 @@ project's Slack channel must be reauthorized.
|
|
|
71
73
|
|
|
72
74
|
| Command | What it does |
|
|
73
75
|
| ------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
74
|
-
| `open <target>` | First command for agents opening a
|
|
76
|
+
| `open <target>` | First command for agents opening a share or artifactshareusercontent.com execution URL; ensures skills, then reads or suggests download |
|
|
75
77
|
| `share <path>` | Share a file or folder as a new shared file (`--project`, `--home`, `--visibility`, `--key`, link expiry options) |
|
|
76
78
|
| `update <target> <path>` | Add a new version to an existing file (ID or share URL); optional `--label` adds a version note |
|
|
77
79
|
| `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 |
|
|
@@ -82,7 +84,7 @@ project's Slack channel must be reauthorized.
|
|
|
82
84
|
| `artifacts get <target>` | Read a file's content and metadata back |
|
|
83
85
|
| `download <target>` | Save a file or a whole static site locally |
|
|
84
86
|
| `comments list / post / edit / resolve / reopen / delete <target>` | Read, write, edit, resolve, reopen, and permanently delete comments |
|
|
85
|
-
| `projects list / create / edit` | List
|
|
87
|
+
| `projects list / create / edit` | List eligible project destinations; create and edit projects and audience |
|
|
86
88
|
| `move <target>` | Move an existing file into a project or back home; `edit` is preferred for new automation |
|
|
87
89
|
| `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 |
|
|
88
90
|
| `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 |
|
|
@@ -172,6 +174,8 @@ dialog, and local annotations are not included in what is shared.
|
|
|
172
174
|
|
|
173
175
|
## Where shared files are delivered
|
|
174
176
|
|
|
177
|
+
Destination lists include only active projects you can post into. A private project permits its creator, a current workspace owner/admin on the team plan, or a verified contributor/manager. On free and plus, admin status alone does not permit placement in another member’s private project. Viewer access and individual artifact grants do not authorize placement. Agents and bots still require their fixed project and a verified contributor/manager grant for private projects; publisher credentials cannot select projects.
|
|
178
|
+
|
|
175
179
|
Posting to a project delivers to the audience defined by that project. With no destination, `share` posts to home. Choose the home audience by purpose:
|
|
176
180
|
|
|
177
181
|
```sh
|
|
@@ -371,3 +375,109 @@ refund. Edits, deletions, resolve/reopen and anchor reports consume nothing.
|
|
|
371
375
|
Mutation readback contains only the affected thread window and changed message.
|
|
372
376
|
`refresh_required: true` means the write committed but advisory readback failed:
|
|
373
377
|
read that thread by ID; do not replay the write automatically.
|
|
378
|
+
|
|
379
|
+
## Local upload boundaries
|
|
380
|
+
|
|
381
|
+
`share`, `append`, and `update` validate and read local content before credential
|
|
382
|
+
resolution or refresh, project lookup, or upload. Authentication retries reuse the
|
|
383
|
+
verified bytes; they do not reopen source paths. Append still accepts only a
|
|
384
|
+
nonempty UTF-8 file, and checks emptiness after the verified read.
|
|
385
|
+
|
|
386
|
+
Every literal `..` component is rejected, including absolute paths and Windows
|
|
387
|
+
separator or drive-relative forms. Pass a direct absolute path instead. Relative
|
|
388
|
+
paths stay within the physical current directory: each component is inspected
|
|
389
|
+
with `lstat`, links are rejected, and device/inode identity determines containment.
|
|
390
|
+
Case, Unicode normalization, trailing dot/space aliases, and a current directory
|
|
391
|
+
reached through an alias work when the filesystem resolves them to the same file.
|
|
392
|
+
Absolute paths (including Windows `C:report.html` and `D:report.html`, resolved by
|
|
393
|
+
the platform) trust their parents, but the selection itself must not be a link.
|
|
394
|
+
To select a link target, copy it into the selection or pass its absolute path.
|
|
395
|
+
|
|
396
|
+
Selected trees reject included symlinks, junctions, app execution aliases, dangling
|
|
397
|
+
links, and special files. Names starting with `.`, `__MACOSX`, `node_modules`,
|
|
398
|
+
`.git`, `.artifactshare`, `.turbo`, `.DS_Store`, `Thumbs.db`, and `desktop.ini` are
|
|
399
|
+
excluded before inspection. `build` and `dist` remain included. Remaining entries
|
|
400
|
+
are classified with `lstat`, not directory-entry link flags; cloud placeholders
|
|
401
|
+
serving their own content remain supported when stable identities are available.
|
|
402
|
+
Each included entry's physical parent must have the identity of the directory
|
|
403
|
+
it was reached from, catching redirects that `lstat` reports as ordinary
|
|
404
|
+
directories. Physical paths are resolved once per entry; repeated parent-chain
|
|
405
|
+
checks use `lstat` identities. This comparison uses device/inode identity, not
|
|
406
|
+
canonical path spelling. Absolute selections still trust their parent paths.
|
|
407
|
+
|
|
408
|
+
On POSIX, files are opened once with `O_NOFOLLOW` and `O_NONBLOCK` where available.
|
|
409
|
+
Nonblocking opens prevent a replacement FIFO from stalling before the handle
|
|
410
|
+
is checked to be a regular file. On Windows,
|
|
411
|
+
`lstat` link rejection and the same handle identity checks protect reads without
|
|
412
|
+
requiring POSIX no-follow support. Both compare handle device, inode, mode, and
|
|
413
|
+
size against the recorded file and recheck parent identities before/after entry
|
|
414
|
+
inspection, around opening, and after reading. Missing stable identities or an
|
|
415
|
+
available no-follow guarantee that cannot be provided fail closed. Device zero
|
|
416
|
+
alone is allowed. ctime and mtime are not compared: cloud hydration may change
|
|
417
|
+
ctime. Same-identity, same-size in-place edits are not detected. Node has no
|
|
418
|
+
directory-relative `openat`, so a transient swap-and-restore entirely between
|
|
419
|
+
checks cannot always be detected.
|
|
420
|
+
|
|
421
|
+
Boundary errors use `validation_failed`, name the offending `details.path`
|
|
422
|
+
(descendants are relative to the selection), and provide `details.reason`:
|
|
423
|
+
|
|
424
|
+
| Reason | Recovery |
|
|
425
|
+
| ----------------------- | ------------------------------------------------------------------------- |
|
|
426
|
+
| `parent_traversal` | Pass a direct absolute path without `..`. |
|
|
427
|
+
| `link` | Copy into the selection or pass the target by absolute path. |
|
|
428
|
+
| `outside_cwd` | Pass an absolute path. |
|
|
429
|
+
| `not_found` | Check the path. |
|
|
430
|
+
| `changed` | Retry after the selection stops changing (`retry_later`). |
|
|
431
|
+
| `unsupported_guarantee` | Use a filesystem providing the named stable identity/no-follow guarantee. |
|
|
432
|
+
| `invalid_type` | Select a regular file or directory. |
|
|
433
|
+
|
|
434
|
+
Other filesystem failures, including EACCES, EMFILE, EIO, and EPERM, use
|
|
435
|
+
`upload_read_failed` with `details.errno` and `retry_later`. Check availability and
|
|
436
|
+
permissions, then retry. Raw exceptions remain internal; errors never include
|
|
437
|
+
credentials or file contents. Empty included directories report
|
|
438
|
+
“Directory has no shareable files.”
|
|
439
|
+
|
|
440
|
+
### Local download and init writes
|
|
441
|
+
|
|
442
|
+
Download artifact IDs must match `^[a-z0-9]{10}$`. Invalid, duplicate, or
|
|
443
|
+
case-colliding IDs in any list page or previous `index.json` are fatal before
|
|
444
|
+
writes. Single-download targets and manifest identities must agree.
|
|
445
|
+
|
|
446
|
+
Output parents may be links; their resolved directory identities are rechecked.
|
|
447
|
+
Linked output roots, indexes, and listed artifact trees are refused,
|
|
448
|
+
even with `--force`. Recorded directory identities are checked again before
|
|
449
|
+
writes and cleanup. Project preflight inspects every listed artifact tree,
|
|
450
|
+
including unchanged versions, and `index.json`; unrelated content is not walked.
|
|
451
|
+
Network failures and invalid manifest paths, bodies, or identities are recorded per artifact. Every boundary
|
|
452
|
+
violation stops further publication, including later artifacts and the final index.
|
|
453
|
+
Artifact IDs with surrounding whitespace are rejected, not trimmed, including
|
|
454
|
+
single-download targets. Remove the whitespace before retrying. Share URLs use
|
|
455
|
+
the usual URL-to-ID resolution; list and index IDs are never normalized.
|
|
456
|
+
|
|
457
|
+
Replacements do not merge stale files. Staging and backups share one private
|
|
458
|
+
directory inside the output root for project downloads, or in its parent for
|
|
459
|
+
single downloads. This keeps project publication on the output filesystem.
|
|
460
|
+
Displaced originals and previous indexes
|
|
461
|
+
remain there after success and are reported in `data.backup_paths` and human
|
|
462
|
+
output. Inspect those paths before manual cleanup. Failed recovery also names
|
|
463
|
+
retained paths in the error. Cleanup removes only CLI-created temporary entries
|
|
464
|
+
and never removes a container holding originals. Files use exclusive creation
|
|
465
|
+
and indexes use temporary-file publication.
|
|
466
|
+
Manifest path conflict checks fold case on macOS and Windows; Linux keeps
|
|
467
|
+
case-distinct names. New downloaded files, config files, and Git excludes use
|
|
468
|
+
the default file mode masked by the umask. Replaced config and exclude files
|
|
469
|
+
preserve their existing permission bits.
|
|
470
|
+
Identity checks detect observed swaps at operation checkpoints; Node path-based
|
|
471
|
+
operations cannot guarantee atomic confinement against arbitrary concurrent changes.
|
|
472
|
+
|
|
473
|
+
`init --profile` / `init --project-id` preserve unknown local config keys and
|
|
474
|
+
refuse linked or changed `.artifactshare` / `config.local.json` paths. Only a
|
|
475
|
+
real repository `.git` directory without redirect metadata or linked `info` /
|
|
476
|
+
`exclude` is eligible for an exclude update. Worktrees and submodules still save
|
|
477
|
+
config and return `git_exclude_warning` with the path and exact line to add
|
|
478
|
+
manually. Running `init` without config arguments still installs user-scope skills.
|
|
479
|
+
|
|
480
|
+
Upload aliases use the stored filename for artifact kind, multipart name, and
|
|
481
|
+
content type. An enumerated entry disappearing is `changed` (retry); a relative
|
|
482
|
+
path through a regular file is `not_found` (correct the path). `share --help`
|
|
483
|
+
and `append --help` list all upload boundary reasons and fixes.
|