@artifactshare/cli 0.18.0 → 0.19.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 CHANGED
@@ -5,6 +5,10 @@ For user-facing announcements, see https://artifactshare.com/updates?product=cli
5
5
 
6
6
  ## Unreleased
7
7
 
8
+ ## 0.19.0 - 2026-10-25
9
+
10
+ - Reject unknown command options locally with spelling hints, explain numeric `--expected-version` mistakes, and report unsupported Node.js versions before loading command dependencies.
11
+
8
12
  ## 0.18.0 - 2026-10-23
9
13
 
10
14
  - Isolate local preview artifacts with a scripts-only sandbox and a permanent notice about unavailable localStorage, IndexedDB and same-origin features. Validate reporter observations with bounded schemas, document capabilities and replay checks; anchor verdicts affect display only. Local preview and share-dialog HTTP session authentication remains deferred, so local clients knowing the ports still have access.
package/README.md CHANGED
@@ -50,6 +50,17 @@ Pass `--expected-version <version-id>` to reject an update when another version
50
50
  became current first. Project-scoped agent profiles must pass it to `update`
51
51
  and to repeat `share --key` updates; initial key creation does not require it.
52
52
  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`.
53
+
54
+ Unknown options fail locally with `unknown_option` before authentication, requests,
55
+ or writes. Correct `details.option`; the hint suggests a nearby option when one
56
+ exists. Use the selected command’s `--help` to see accepted options.
57
+ A digits-only `--expected-version` fails with `invalid_expected_version`: pass a
58
+ version id from `data.version.id` in the previous share or update output, or
59
+ `data.version_id` from `artifacts get <target> --json` for a single-file artifact.
60
+ Both errors have `recovery.kind: change_input` and are agent-recoverable.
61
+ `unsupported_node_version` requires upgrading Node.js to 22.19.0 or newer;
62
+ it reports the current version and uses `recovery.kind: ask_human` with
63
+ `agent_recoverable: false` and `requires_human: true`.
53
64
  A signed-in external human whose verified email is explicitly granted on an
54
65
  artifact can also update it when the artifact workspace allows external
55
66
  posting. Link access alone does not grant update access.
package/dist/cli.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ //#region src/cli.d.ts
2
+ export declare function generateCliHelp(path: string[]): Promise<string>;
3
+ export declare function runCli(argv: string[]): Promise<void>;
4
+ export declare function commandOptionCatalog(): Map<string, Map<string, {
5
+ name: string;
6
+ boolean: boolean;
7
+ spelling?: string;
8
+ }>>;
9
+ //#endregion