@artifactshare/cli 0.13.3 → 0.14.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 +14 -0
- package/README.md +41 -3
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1259 -705
- package/package.json +12 -10
- package/skills/artifactshare/SKILL.md +55 -7
- package/skills/artifactshare/artifactshare.mdc +48 -7
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,20 @@ For user-facing announcements, see https://artifactshare.com/updates?product=cli
|
|
|
5
5
|
|
|
6
6
|
## Unreleased
|
|
7
7
|
|
|
8
|
+
## 0.14.0 - 2026-09-30
|
|
9
|
+
|
|
10
|
+
- Include the Viewer version number in update JSON at `data.version.number`, with or without a label; retain compatibility with older servers.
|
|
11
|
+
|
|
12
|
+
- Return the normalized, stored label in update success JSON at `data.version.label`, or `null` when omitted.
|
|
13
|
+
|
|
14
|
+
- Add optional `update --label` notes to version history, with shared Unicode validation and API support.
|
|
15
|
+
|
|
16
|
+
- Return recoverable `expected_version_required` for agent updates missing
|
|
17
|
+
`--expected-version`, and document using the previous successful share or update
|
|
18
|
+
output’s `data.version.id` in CLI help, guides, and bundled instructions.
|
|
19
|
+
|
|
20
|
+
- Accept `artifacts delete` as an alias of `delete`, with the same options and output.
|
|
21
|
+
|
|
8
22
|
## 0.13.3 - 2026-09-02
|
|
9
23
|
|
|
10
24
|
- Allow workspace members to update, rename, and move artifacts they can view,
|
package/README.md
CHANGED
|
@@ -43,6 +43,10 @@ runs add versions to the same file.
|
|
|
43
43
|
Pass `--expected-version <version-id>` to reject an update when another version
|
|
44
44
|
became current first. Project-scoped agent profiles must pass it to `update`
|
|
45
45
|
and to repeat `share --key` updates; initial key creation does not require it.
|
|
46
|
+
After `login --preset agent`, updates require `--expected-version <version-id>` using `data.version.id` from the previous successful `share` or `update` output. If omitted, `expected_version_required` reports `recovery.kind: change_input`; retry with that value. `artifacts get` instead returns the current version as `data.version_id`.
|
|
47
|
+
A signed-in external human whose verified email is explicitly granted on an
|
|
48
|
+
artifact can also update it when the artifact workspace allows external
|
|
49
|
+
posting. Link access alone does not grant update access.
|
|
46
50
|
|
|
47
51
|
## Authentication
|
|
48
52
|
|
|
@@ -65,10 +69,11 @@ project's Slack channel must be reauthorized.
|
|
|
65
69
|
| ------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
66
70
|
| `open <target>` | First command for agents opening a shared URL; ensures skills, then reads or suggests download |
|
|
67
71
|
| `share <path>` | Share a file or folder as a new shared file (`--project`, `--home`, `--visibility`, `--key`, link expiry options) |
|
|
68
|
-
| `update <target> <path>` | Add a new version to an existing file (ID or share URL)
|
|
72
|
+
| `update <target> <path>` | Add a new version to an existing file (ID or share URL); optional `--label` adds a version note |
|
|
69
73
|
| `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 |
|
|
70
74
|
| `edit <target>` | Change title, sharing, link expiry, explicit viewers, or project placement |
|
|
71
75
|
| `delete <target>` | Permanently delete a file you shared |
|
|
76
|
+
| `artifacts delete <target>` | Alias of delete; permanently delete a file you shared |
|
|
72
77
|
| `resolve <value>` | Find files by URL, ID, title, or project name |
|
|
73
78
|
| `artifacts get <target>` | Read a file's content and metadata back |
|
|
74
79
|
| `download <target>` | Save a file or a whole static site locally |
|
|
@@ -86,7 +91,9 @@ project's Slack channel must be reauthorized.
|
|
|
86
91
|
|
|
87
92
|
Public command paths covered by this reference:
|
|
88
93
|
|
|
89
|
-
`append`, `artifacts`, `artifacts get`, `artifacts list`, `changelog`, `comments`, `comments delete`, `comments edit`, `comments list`, `comments post`, `comments reopen`, `comments resolve`, `config`, `config get`, `config set`, `config unset`, `delete`, `doctor`, `download`, `edit`, `init`, `login`, `logout`, `move`, `open`, `preview`, `preview done`, `preview next`, `preview reply`, `preview start`, `preview stop`, `profiles`, `profiles delete`, `profiles import-token`, `profiles list`, `profiles use`, `projects`, `projects create`, `projects edit`, `projects list`, `resolve`, `share`, `skills`, `skills ensure`, `skills install`, `skills list`, `skills remove`, `skills update`, `update`, `whoami`.
|
|
94
|
+
`append`, `artifacts`, `artifacts delete`, `artifacts get`, `artifacts list`, `changelog`, `comments`, `comments delete`, `comments edit`, `comments list`, `comments post`, `comments reopen`, `comments resolve`, `config`, `config get`, `config set`, `config unset`, `delete`, `doctor`, `download`, `edit`, `init`, `login`, `logout`, `move`, `open`, `preview`, `preview done`, `preview next`, `preview reply`, `preview start`, `preview stop`, `profiles`, `profiles delete`, `profiles import-token`, `profiles list`, `profiles use`, `projects`, `projects create`, `projects edit`, `projects list`, `resolve`, `share`, `skills`, `skills ensure`, `skills install`, `skills list`, `skills remove`, `skills update`, `update`, `whoami`.
|
|
95
|
+
|
|
96
|
+
`artifacts delete <artifact-id-or-url>` is an alias of top-level `delete`, with the same options and output. Both paths use JSON `command: "delete"` and schema version `2`.
|
|
90
97
|
|
|
91
98
|
Saved credentials use macOS Keychain, Linux Secret Service, or Windows
|
|
92
99
|
Credential Manager. If no native store is available, the explicit
|
|
@@ -172,7 +179,7 @@ npm exec --yes --package=@artifactshare/cli -- artifactshare config get home_aud
|
|
|
172
179
|
|
|
173
180
|
Use `--scope repository` only for a policy agreed by all repository participants, and pass `--visibility private|workspace|link` for a one-time home override. For link sharing, pass exactly one of `--link-expires-at <RFC3339 UTC>` or `--no-link-expiry`; omit both to use the workspace default. For project creation, pass `projects create <name> --visibility private|workspace`; persistent project defaults are documented in `projects create --help`. Pass `--no-slack-notify` to suppress the project Slack notification for one post.
|
|
174
181
|
|
|
175
|
-
Link sharing is available on
|
|
182
|
+
Link sharing is available on every plan; Team workspaces can turn it off. A workspace policy may allow a finite expiry from 1 to 365 days or no expiration; the initial default is 30 days and the initial maximum is no limit. Share and edit results include the confirmed `link_expires_at` UTC timestamp or `null`. If a link command fails, use `link_sharing_plan_required` as a legacy code (no plan limit applies today), `link_sharing_disabled` to ask the workspace owner or a Team owner or admin to enable the workspace setting, or `link_expiry_invalid` to correct the timestamp or choose `--no-link-expiry` when allowed. Under the default thresholds, `link_publish_rate_limited` means the service observed 20 counted files before a publication in a Free workspace less than 14 days old during its rolling 24-hour window. A file counts once for its most recent change to link visibility, or for creation with link visibility while it remains link-shared. Share with specific people. `error.recovery` indicates `retry_later`; use `error.message` and `error.hint` for when to retry. Retry the link publication later instead of retrying immediately with unchanged input.
|
|
176
183
|
|
|
177
184
|
For the complete settings reference, `home_audience` is the canonical home key. `default_artifact_visibility` remains a compatibility alias, and `default_project_visibility` is the advanced default for `projects create`. User and repository settings are resolved with repository taking precedence, followed by user and product default `workspace`; home also checks the compatibility alias at each scope. Use `config get home_audience --scope effective --json` to confirm the resolved audience. Keyless `config get --json` returns only `home_audience`; pass an explicit key to read either other setting. These settings only affect new home posts and project creation; update, edit, Web, and MCP defaults are unchanged.
|
|
178
185
|
|
|
@@ -215,3 +222,34 @@ Quote paths and free-form text before passing them through a shell. Artifact Sha
|
|
|
215
222
|
## License
|
|
216
223
|
|
|
217
224
|
The npm package through version 0.9.0 is licensed under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). From version 0.10.0 onward, `@artifactshare/cli` is covered by the [source-available license](LICENSE). Version 0.10.0 was intentionally not published; version 0.10.1 is the first npm release under the new license.
|
|
225
|
+
|
|
226
|
+
### Version labels
|
|
227
|
+
|
|
228
|
+
Successful update API responses include `number`, a positive integer matching the
|
|
229
|
+
Viewer’s `v{number}` for the created version. CLI JSON exposes it as
|
|
230
|
+
`data.version.number`, with or without a label. Older server responses may omit
|
|
231
|
+
`number`; the CLI accepts them and omits `data.version.number`.
|
|
232
|
+
|
|
233
|
+
The optional `--label <label>` option on `artifactshare update <target> <path>`
|
|
234
|
+
attaches an immutable note to the new version of an HTML file, Markdown file, or static-site
|
|
235
|
+
bundle. Labels are normalized to Unicode NFC, then leading and trailing Unicode
|
|
236
|
+
space separators (Zs) are trimmed. Internal spacing and case are preserved.
|
|
237
|
+
The result must contain 1–80 Unicode code points (not bytes or UTF-16 units).
|
|
238
|
+
Letters, marks, numbers, punctuation, symbols, space separators, and U+200D
|
|
239
|
+
(joined emoji) are allowed. Empty values, tabs, newlines, controls, bidi formatting
|
|
240
|
+
controls, and unpaired surrogates are rejected; labels are never truncated.
|
|
241
|
+
CLI validation happens before authentication or upload. For a value beginning
|
|
242
|
+
with a known flag, use `--label=--text` to pass it explicitly.
|
|
243
|
+
|
|
244
|
+
The update API accepts one optional `label` query parameter on
|
|
245
|
+
`POST /api/shareables/:id/versions`, including `artifact_kind=static_site` uploads.
|
|
246
|
+
Invalid or repeated labels return HTTP 400 `validation-failed` before upload work.
|
|
247
|
+
Omission stores NULL and never inherits a prior label. Successful update API responses include `label`, and CLI JSON includes
|
|
248
|
+
`data.version.label`: the normalized, stored label or `null` when omitted.
|
|
249
|
+
Existing unlabeled rows are unchanged. Authorized history at
|
|
250
|
+
`GET /api/cli/artifacts/:id?include=versions` includes `label` only when present;
|
|
251
|
+
`artifacts get <target> --include versions --json` preserves it. The viewer's
|
|
252
|
+
version menu and full history show the label as plain text.
|
|
253
|
+
`GET /api/shareables/:id/versions` remains a current-version lookup.
|
|
254
|
+
Labels are update-only: initial uploads, `share --key`, `append`, preview,
|
|
255
|
+
bridge publishing, and MCP update inputs do not accept them.
|
package/dist/index.d.ts
CHANGED