@wirecat/cli-base 0.126.1 → 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 +29 -0
- package/dist/dev/family.js +2 -0
- package/dist/standards/flags-mirror.d.ts +3 -0
- package/dist/standards/flags-mirror.js +31 -0
- package/dist/standards/vocabulary.js +7 -0
- package/docs/standards/ci.md +2 -0
- package/docs/standards/commands.md +10 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,35 @@ 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
|
+
|
|
11
40
|
## 0.126.1 — 21.11.2026
|
|
12
41
|
|
|
13
42
|
### Fixed
|
package/dist/dev/family.js
CHANGED
|
@@ -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))]
|
|
@@ -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
|
});
|
package/docs/standards/ci.md
CHANGED
|
@@ -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:**
|
|
110
|
-
|
|
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
|
-
|
|
519
|
-
|
|
520
|
-
`
|
|
521
|
-
|
|
522
|
-
that groups a CLI's `api` lists the
|
|
523
|
-
`api show` takes the
|
|
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.
|
|
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",
|