@alter-ai/cli 0.7.3 → 0.9.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.
Files changed (4) hide show
  1. package/README.md +5 -2
  2. package/dist/cli.d.ts +14 -5
  3. package/dist/cli.js +21818 -18733
  4. package/package.json +18 -15
package/README.md CHANGED
@@ -14,8 +14,11 @@ alter --version
14
14
  ## Sign in
15
15
 
16
16
  ```bash
17
- alter auth login # interactive browser flow
18
- ALTER_PAT=alter_pat_... alter apps list # headless / CI
17
+ alter auth login # interactive browser flow
18
+ alter auth login --token-stdin # pre-minted PAT; prompts, input hidden
19
+
20
+ # CI: configure a masked ALTER_PAT secret in the provider, then run normally
21
+ alter apps list
19
22
  ```
20
23
 
21
24
  ## Commands
package/dist/cli.d.ts CHANGED
@@ -62,11 +62,20 @@
62
62
  *
63
63
  * Scope: this pre-parser ONLY touches argv when the ``self-update``
64
64
  * subcommand is present. Every other subcommand sees argv verbatim.
65
- * The rewrite handles both ``--version <value>`` (space form) and
66
- * ``--version=<value>`` (equals form). A bare ``--version`` without a
67
- * follow-up value is LEFT ALONE — that's the legitimate "print CLI
68
- * version" invocation, and rewriting it to ``--to`` (which requires a
69
- * value) would surface a confusing error.
65
+ * The rewrite handles every form the legacy flag was typed in:
66
+ * ``--version <value>`` (space), ``--version=<value>`` (equals), and
67
+ * bare ``--version`` with no value.
68
+ *
69
+ * The bare form used to be left alone so Commander's program-wide
70
+ * ``-V/--version`` would service it as a "print CLI version" request.
71
+ * It no longer can: ``buildProgram`` confines each command's option
72
+ * scan to its own argv, so a flag typed after ``self-update`` belongs
73
+ * to ``self-update`` — which is what ``gh``, ``git``, ``docker``, and
74
+ * ``kubectl`` all do with a post-subcommand ``--version``. Rewriting
75
+ * the bare form keeps the deprecation path pointing operators at
76
+ * ``--to`` (``option '--to <version>' argument missing``) instead of
77
+ * dead-ending them on ``unknown option '--version'``. The CLI's own
78
+ * version stays one token away, at ``alter --version``.
70
79
  *
71
80
  * Returns the (possibly rewritten) argv array. Pure function modulo
72
81
  * the stderr write on rewrite; safe to call on every CLI startup.