@wirecat/cli-base 0.89.0 → 0.90.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 +13 -0
- package/dist/dev/lint.js +2 -1
- package/docs/standards/architecture.md +3 -2
- package/docs/standards/commands.md +5 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,19 @@ Versions before 0.8.0 are in the [git tags](https://github.com/WireCatLabs/cli-b
|
|
|
8
8
|
Every entry says what changed as a caller sees it, why, and what to watch for — the rules are
|
|
9
9
|
[`docs/dev/CONVENTIONS.md`](docs/dev/CONVENTIONS.md#the-changelog).
|
|
10
10
|
|
|
11
|
+
## 0.90.0 — 08.11.2026
|
|
12
|
+
|
|
13
|
+
### Changed — may break callers
|
|
14
|
+
|
|
15
|
+
- **`list-without-query` no longer reports `session list`.** That command lists every profile on the computer, so it
|
|
16
|
+
takes no query by design. A CLI that carries a lint override for `session list` now fails with "stale override":
|
|
17
|
+
delete that override when it moves to this version.
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- **The handbook lets the identity in `src/identity.ts` keep its URLs inline.** The rule that a fixed value lives in
|
|
22
|
+
`constants.json` now says the CLI's own docs or homepage URL in its identity is not such a value.
|
|
23
|
+
|
|
11
24
|
## 0.89.0 — 08.11.2026
|
|
12
25
|
|
|
13
26
|
### Added
|
package/dist/dev/lint.js
CHANGED
|
@@ -350,7 +350,8 @@ const CHECKS = {
|
|
|
350
350
|
.map(({ target, option }) => ({ target, message: `${longName(option.flags)} has no role in the vocabulary` }));
|
|
351
351
|
},
|
|
352
352
|
"list-without-query": (document) => handwrittenLeaves(document)
|
|
353
|
-
|
|
353
|
+
// WC-CMD-20's one exception: WC-ACCT-12 has session list show every profile, so it takes no query.
|
|
354
|
+
.filter((command) => command.name === "list" && command.query === undefined && label(command) !== "session list")
|
|
354
355
|
.map((command) => ({
|
|
355
356
|
target: label(command),
|
|
356
357
|
message: "list declares no query",
|
|
@@ -272,8 +272,9 @@ never a constant scattered through the source, and never a file CI writes from a
|
|
|
272
272
|
- **Enforced by:** review only.
|
|
273
273
|
- **Example:** cli-core's `constants.json` holds the WireCat Google desktop app's `google.app.client_id`; drive and
|
|
274
274
|
gcal read it through cli-core instead of each keeping a copy. The owner's own choices stay in `config.json`.
|
|
275
|
-
- **Exceptions:**
|
|
276
|
-
|
|
275
|
+
- **Exceptions:** the identity in `src/identity.ts`, such as the `docs` URL of the CLI's own page, stays inline
|
|
276
|
+
there: it is the CLI's name and address, not a setting another layer reads.
|
|
277
|
+
- **Applies to:** cli-base, cli-core and every CLI. **Since:** cli-base 0.76.0. **Rulings:** NEED-2448.
|
|
277
278
|
|
|
278
279
|
## Sources
|
|
279
280
|
|
|
@@ -259,8 +259,11 @@ store or files without reading the service first (`remote: "none"`, `local: "wri
|
|
|
259
259
|
- **Example:** `tasks list state:open priority>1`. The list takes `[query...]` last. The fields come from the entity's
|
|
260
260
|
Valibot schema through `queryFieldsOf`, and every field example and default term parses and validates. The list
|
|
261
261
|
filters where its data lives, in the store or at the provider, never in memory.
|
|
262
|
-
- **Exceptions:**
|
|
263
|
-
-
|
|
262
|
+
- **Exceptions:** `<cli> session list` takes no query: it lists every profile on this computer
|
|
263
|
+
([WC-ACCT-12](accounts.md#wc-acct-12--sign-in-is-session-start-status-and-end-and-session-list-names-the-profiles)),
|
|
264
|
+
and a filter would let a caller read one profile as the only one. `list-without-query` skips it, so a CLI needs no
|
|
265
|
+
override.
|
|
266
|
+
- **Applies to:** all CLIs. **Since:** cli-base 0.41.0. **Rulings:** NEED-2447.
|
|
264
267
|
|
|
265
268
|
### WC-CMD-21 · Set `mcp: false` on a command, group or option that MCP servers must not offer
|
|
266
269
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirecat/cli-base",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.90.0",
|
|
4
4
|
"description": "The parts every command line tool needs: output modes, terminal rendering, error model, exit codes, credentials, clocks",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Viacheslav Ptsarev",
|