@wirecat/cli-base 0.126.0 → 0.127.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
@@ -8,6 +8,45 @@ 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.127.0 — 23.11.2026
12
+
13
+ ### Added
14
+
15
+ - **A file mirror's words in the vocabulary.** The nouns `mirrors` (saved pairs of a local folder and a folder in the
16
+ source) and `conflicts` (files a mirror's sync could not merge). The flags `--keep <side>` (settle a conflict with
17
+ local, the remote by its own name, or both), `--allow-deletions <count>` and `--allow-replacements <count>` (how far
18
+ this run may go when the mirror's guard stops it) and `--repin` (a replaced folder is the mirror's folder now). cli-core
19
+ mounts `mirrors conflicts list|show|resolve` under ydisk and drive, and the command lint no longer needs an override
20
+ for these words. A replacement count is `--allow-replacements <count>`, not `--replace <n>`: `--replace` stays a
21
+ switch, so a CLI that still names the count `--replace` gets `flag-two-meanings`. A `mirrors conflicts list` without
22
+ a query is still `list-without-query`: WC-CMD-20 has one exception, `session list`.
23
+
24
+ ### Changed — may break callers
25
+
26
+ - **WC-CMD-33 keeps no alias for an old flat `api` key.** A config that still names `api.contacts-list` after the
27
+ command moved to `api contacts list` is refused, with a message that names the new key, instead of being checked
28
+ beside it. WC-CMD-8 has no exception again. cli-core makes the refusal; a CLI that grouped its `api` lists the moved
29
+ keys in its release notes.
30
+
31
+ ### Fixed
32
+
33
+ - **`cli-dev audit --family` compares a CLI with hubspot-cli and attio-cli too.** Both are on npm, but the family's
34
+ package list did not name them, so a CRM CLI's audit skipped them. The monthly table in
35
+ [CI](docs/standards/ci.md#wc-ci-9--run-full-validation-and-release-security-on-the-first-day-of-each-month-without-publishing)
36
+ also lists attio-cli's minute, 02:36 UTC, so `new` no longer offers it to another CLI.
37
+ - **The monthly table lists slack-cli's minute, 03:19 UTC.** `new` gave slack-cli linear-cli's 03:16, which
38
+ `cli-dev repo-check` refused.
39
+
40
+ ## 0.126.1 — 21.11.2026
41
+
42
+ ### Fixed
43
+
44
+ - **A CLI on cli-core 0.717.0 or later passes `cli-dev audit --family` again.** cli-core 0.715 and 0.716 named an
45
+ unknown profile twice, `account-remove.unknown-profile` and `account-rename.unknown-profile`, and the CLIs published
46
+ on them still do. The audit blamed every CLI that has the first name, including the one being released, so each
47
+ release needed its own exception. It is now a shared difference, reviewed after 2026-12-10, when the family has
48
+ moved to `profile.unknown`.
49
+
11
50
  ## 0.126.0 — 21.11.2026
12
51
 
13
52
  ### Added
@@ -12,6 +12,8 @@ const PACKAGES = new Map([
12
12
  ["ydisk", "@wirecat/yandex-disk-cli"],
13
13
  ["wordpress", "@wirecat/wordpress-cli"],
14
14
  ["linear", "@wirecat/linear-cli"],
15
+ ["hubspot", "@wirecat/hubspot-cli"],
16
+ ["attio", "@wirecat/attio-cli"],
15
17
  ]);
16
18
  /** Every other CLI of the parity groups that npm has, by name. */
17
19
  export const familyPackages = (groups, own) => new Map([...new Set(groups.flatMap((group) => group.members))]
@@ -130,6 +130,12 @@ const FAMILY_SINCE_0_98 = [
130
130
  review(ENTITY, "entity product", "b24's CRM product and memo's differ (measured 2026-11-13)"),
131
131
  review(REASON, "reason ai.address-refused=model.address-refused", "one failure under two names; cli-core 0.650.0 keeps one"),
132
132
  review(REASON, "reason profile.unknown: code", "b24 gives it not_found, drive validation_error (measured 2026-11-13)"),
133
+ {
134
+ rule: REASON,
135
+ target: "reason account-remove.unknown-profile=account-rename.unknown-profile",
136
+ reason: "one failure under two names in cli-core 0.715–0.716; 0.717.0 gives account rename profile.unknown",
137
+ review_after: "2026-12-10",
138
+ },
133
139
  ];
134
140
  export const PARITY_GROUPS = defineParityGroups([
135
141
  { name: "messengers", members: ["tg", "max"], covers: "tree", differences: MESSENGERS_SINCE_0_98 },
@@ -0,0 +1,3 @@
1
+ import type { VocabularyFlag } from "./vocabulary.js";
2
+ /** How a file mirror's run settles what both sides changed, and how far its guard lets it go. */
3
+ export declare const MIRROR_FLAGS: VocabularyFlag[];
@@ -0,0 +1,31 @@
1
+ /** How a file mirror's run settles what both sides changed, and how far its guard lets it go. */
2
+ export const MIRROR_FLAGS = [
3
+ {
4
+ name: "--keep",
5
+ value: "<side>",
6
+ role: "mode",
7
+ type: "choice",
8
+ meaning: "settle a conflict with one side: local, the remote by its own name (disk, drive), or both, the other kept " +
9
+ "as a conflict copy",
10
+ },
11
+ {
12
+ name: "--allow-deletions",
13
+ value: "<count>",
14
+ role: "mode",
15
+ type: "count",
16
+ meaning: "let this run delete up to this many files when the mirror's guard stops it; owner only",
17
+ },
18
+ {
19
+ name: "--allow-replacements",
20
+ value: "<count>",
21
+ role: "mode",
22
+ type: "count",
23
+ meaning: "let this run overwrite up to this many existing files when the mirror's guard stops it; owner only",
24
+ },
25
+ {
26
+ name: "--repin",
27
+ role: "mode",
28
+ type: "switch",
29
+ meaning: "accept that a replaced local or remote folder is the mirror's folder now, and sync it; owner only",
30
+ },
31
+ ];
@@ -6,6 +6,7 @@ import { CRM_FLAGS } from "./flags-crm.js";
6
6
  import { HOW_FLAGS } from "./flags-how.js";
7
7
  import { KNOWLEDGE_FLAGS } from "./flags-knowledge.js";
8
8
  import { MAIL_FLAGS } from "./flags-mail.js";
9
+ import { MIRROR_FLAGS } from "./flags-mirror.js";
9
10
  import { PRIVACY_FLAGS } from "./flags-privacy.js";
10
11
  import { SCHEDULE_FLAGS } from "./flags-schedule.js";
11
12
  import { SEARCH_FLAGS } from "./flags-search.js";
@@ -310,6 +311,11 @@ const collections = [
310
311
  ["roles", "the parts a person plays in a relationship, built in or the owner's own"],
311
312
  ["sheets", "remote spreadsheets and their cell ranges, read or changed through a provider"],
312
313
  ["files", "files in the source, such as Google Drive, read and changed there"],
314
+ ["mirrors", "saved pairings of a local folder and a folder in the source, which sync keeps the same both ways"],
315
+ [
316
+ "conflicts",
317
+ "files a mirror's sync found changed on both sides and could not merge, each waiting for a side or a final file",
318
+ ],
313
319
  ["comments", "comments people left on a thing in the source: a channel post or a file"],
314
320
  ["meetings", "stored meetings, from Zoom or another provider"],
315
321
  ["calls", "phone calls a phone system recorded, stored as meetings with their transcripts"],
@@ -453,5 +459,6 @@ export const VOCABULARY = defineVocabulary({
453
459
  ...SCHEDULE_FLAGS,
454
460
  ...CONTENT_FLAGS,
455
461
  ...SEARCH_FLAGS,
462
+ ...MIRROR_FLAGS,
456
463
  ],
457
464
  });
@@ -176,6 +176,7 @@ its prompt in cli-template says so from cli-template 0.8.0. A CLI on an older te
176
176
  | 02:27 | gcal-cli |
177
177
  | 02:31 | cli-memo |
178
178
  | 02:34 | bitrix24-cli |
179
+ | 02:36 | attio-cli |
179
180
  | 02:38 | cli-core |
180
181
  | 02:41 | mail-cli |
181
182
  | 02:45 | drive-cli |
@@ -191,6 +192,7 @@ its prompt in cli-template says so from cli-template 0.8.0. A CLI on an older te
191
192
  | 03:13 | zoom-cli |
192
193
  | 03:16 | linear-cli |
193
194
  | 03:17 | wordpress-cli |
195
+ | 03:19 | slack-cli |
194
196
  | 03:20 | cli-docs |
195
197
 
196
198
  - **Exceptions:** cli-core also builds and probes its native packages in their own workflows, after the window:
@@ -106,11 +106,8 @@ per profile, and only `defaults` is filled.
106
106
  - **Enforced by:** review only.
107
107
  - **Example:** the release notes give the old and the new path under "Changed — may break callers". Help, completion,
108
108
  generated pages, the skill, MCP names and permission keys move in the same change.
109
- - **Exceptions:** the old flat permission key of a generated `api` command that moved into a subgroup stays an alias
110
- that only tightens
111
- ([WC-CMD-33](#wc-cmd-33--group-a-generated-api-by-resource-api-group-command)); the old command path still stops
112
- working.
113
- - **Applies to:** all CLIs. **Since:** cli-base 0.41.0. **Rulings:** NEED-417.
109
+ - **Exceptions:** none.
110
+ - **Applies to:** all CLIs. **Since:** cli-base 0.41.0. **Rulings:** NEED-417, NEED-2759.
114
111
 
115
112
  ### WC-CMD-9 · Answer the naming questions in the pull request before you build a new command
116
113
 
@@ -515,16 +512,17 @@ one operation, stay directly under `api`.
515
512
  refuses a group that would shadow the group's own commands, a group named like a command, and two operations on one
516
513
  path.
517
514
  - **Example:** `api.contacts: deny` stops every `api contacts` command; `api.contacts.delete` is the delete's own key.
518
- A profile that still names the old flat key `api.contacts-list` keeps that hold: cli-core checks it beside
519
- `api.contacts.list` on every call, from the command line and over MCP, and warns to rename it. Its `deny`, `ask` or
520
- `readonly` (on a write) applies; its `allow` lifts nothing. The old path `api contacts-list` is gone
521
- ([WC-CMD-8](#wc-cmd-8--keep-no-aliases-a-renamed-path-stops-working-in-the-release-that-renames-it)): the release
522
- that groups a CLI's `api` lists the move under "Changed — may break callers" and raises the minor version.
523
- `api show` takes the new path, the old name or the operation id; `api list` prints the path and the group.
515
+ The old path `api contacts-list` and its key are gone
516
+ ([WC-CMD-8](#wc-cmd-8--keep-no-aliases-a-renamed-path-stops-working-in-the-release-that-renames-it)). A config that
517
+ still names `api.contacts-list` is refused like any unknown key, every command and `mcp serve` alike, and the
518
+ refusal names the key to rename it to: "its command moved, so rename it to permissions.api.contacts.list". The
519
+ release that groups a CLI's `api` lists the moved paths and keys under "Changed — may break callers" and raises the
520
+ minor version. `api show` takes the quoted path (`api show "contacts list"`), the old name or the operation id;
521
+ `api list` prints the path and the group.
524
522
  - **Exceptions:** a manifest generated without `names.groups` stays flat. gcal and drive keep their own
525
523
  `api.<service>.<resource>.<method>` keys, and the messenger CLIs' `bot api` stays flat, until each is moved.
526
524
  - **Applies to:** every CLI with a generated `api` group, from its next regeneration. **Since:** the release after
527
- cli-base 0.120.0, with the cli-core release that mounts groups. **Rulings:** NEED-2754.
525
+ cli-base 0.120.0, with the cli-core release that mounts groups. **Rulings:** NEED-2754, NEED-2759.
528
526
 
529
527
  ## Sources
530
528
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wirecat/cli-base",
3
- "version": "0.126.0",
3
+ "version": "0.127.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",