@anythingai/cli 0.1.1 → 0.1.3

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 ADDED
@@ -0,0 +1,29 @@
1
+ # Changelog
2
+
3
+ All notable changes to `@anythingai/cli` are documented here.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ### Changed
11
+
12
+ - **Breaking:** `--env` now accepts only lowercase values (`development`,
13
+ `preview`, `production`). The uppercase forms (`DEVELOPMENT`, `PREVIEW`,
14
+ `PRODUCTION`) that 0.0.x silently accepted no longer validate — pass the
15
+ lowercase form instead.
16
+
17
+ ### Fixed
18
+
19
+ - `--json` failures now write the error envelope to stdout (was stderr), so
20
+ `anything … --json | jq` receives the payload on failure as well as success.
21
+ - Strict-mode (argument-validation) error envelopes no longer leak positional
22
+ values into `command`; the field is now the canonical command path (e.g.
23
+ `orgs get`, `members invite`), keeping IDs and emails out of the envelope.
24
+ - Silenced the yargs `"version" is a reserved word` warning emitted by
25
+ `anything update` / `anything update --check`.
26
+ - `domains add` now rejects RFC 2606 reserved TLDs (`.invalid`, `.example`,
27
+ `.test`, `.localhost`) before the network round-trip.
28
+ - Deployment-failure `buildLogs` are now emitted as an array of lines
29
+ (`string[]`) in the JSON envelope instead of one newline-joined string.
package/README.md CHANGED
@@ -95,10 +95,14 @@ Update the CLI in place to the latest published version:
95
95
 
96
96
  ```bash
97
97
  anything update # install the latest version if one exists
98
+ anything update 0.0.3 # install a specific published version (may be a downgrade)
98
99
  anything update --check # report whether a newer version is available
99
100
  anything update --dry-run # print the install command without running it
100
101
  ```
101
102
 
103
+ Passing a version that was never published fails with a clear message naming
104
+ the latest available version.
105
+
102
106
  `update` detects how the CLI was installed (npm, pnpm, yarn, or bun) and runs
103
107
  the matching global-install command for you.
104
108