@wirecat/cli-base 0.126.1 → 0.128.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,52 @@ 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.128.0 — 23.11.2026
12
+
13
+ ### Added
14
+
15
+ - **The manifest names `signIn.setupFrom` when the CLI has cli-core's setup flow.** WireCat Desktop draws a tool's own
16
+ guided sign-in (`setup show`) only when the tool's catalog entry names `signIn.setupFrom`. A tool added from its
17
+ manifest could not name it, so Desktop showed its plain form instead of the flow. `cli-dev manifest` now writes
18
+ `setupFrom: "0.0.0"` when the CLI has `setup show`, `setup apply` and `setup run` and declares `signIn`. Run
19
+ `pnpm generate` after the bump; nothing else changes. See [the reference](docs/REFERENCE.md).
20
+ - **A workspace's words in the vocabulary** ([#693](https://github.com/WireCatLabs/cli-base/issues/693)). The nouns
21
+ `databases` (a source's databases, each a set of rows with typed properties) and `rows` (the records of such a
22
+ database). The verb `reply` (answer in a comment thread at the source). The flags `--from-template <template>` (start
23
+ a new page from one of the source's page templates), `--cover <link>` (a page's cover image, by an https link) and
24
+ `--allow-deleting-content` (let an update delete the child pages its new text leaves out). notion-cli no longer needs
25
+ an override for these words. drive-cli's `comments reply` override goes stale at its next bump and comes out then.
26
+ `get` stays an old name for `show`, and a list without a query is still `list-without-query`.
27
+
28
+ ## 0.127.0 — 23.11.2026
29
+
30
+ ### Added
31
+
32
+ - **A file mirror's words in the vocabulary.** The nouns `mirrors` (saved pairs of a local folder and a folder in the
33
+ source) and `conflicts` (files a mirror's sync could not merge). The flags `--keep <side>` (settle a conflict with
34
+ local, the remote by its own name, or both), `--allow-deletions <count>` and `--allow-replacements <count>` (how far
35
+ this run may go when the mirror's guard stops it) and `--repin` (a replaced folder is the mirror's folder now). cli-core
36
+ mounts `mirrors conflicts list|show|resolve` under ydisk and drive, and the command lint no longer needs an override
37
+ for these words. A replacement count is `--allow-replacements <count>`, not `--replace <n>`: `--replace` stays a
38
+ switch, so a CLI that still names the count `--replace` gets `flag-two-meanings`. A `mirrors conflicts list` without
39
+ a query is still `list-without-query`: WC-CMD-20 has one exception, `session list`.
40
+
41
+ ### Changed — may break callers
42
+
43
+ - **WC-CMD-33 keeps no alias for an old flat `api` key.** A config that still names `api.contacts-list` after the
44
+ command moved to `api contacts list` is refused, with a message that names the new key, instead of being checked
45
+ beside it. WC-CMD-8 has no exception again. cli-core makes the refusal; a CLI that grouped its `api` lists the moved
46
+ keys in its release notes.
47
+
48
+ ### Fixed
49
+
50
+ - **`cli-dev audit --family` compares a CLI with hubspot-cli and attio-cli too.** Both are on npm, but the family's
51
+ package list did not name them, so a CRM CLI's audit skipped them. The monthly table in
52
+ [CI](docs/standards/ci.md#wc-ci-9--run-full-validation-and-release-security-on-the-first-day-of-each-month-without-publishing)
53
+ also lists attio-cli's minute, 02:36 UTC, so `new` no longer offers it to another CLI.
54
+ - **The monthly table lists slack-cli's minute, 03:19 UTC.** `new` gave slack-cli linear-cli's 03:16, which
55
+ `cli-dev repo-check` refused.
56
+
11
57
  ## 0.126.1 — 21.11.2026
12
58
 
13
59
  ### Fixed
@@ -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))]
@@ -1,3 +1,3 @@
1
1
  import type { VocabularyFlag } from "./vocabulary.js";
2
- /** Posts and pages on a site or blog the owner publishes. */
2
+ /** Posts and pages on a site or blog the owner publishes, and pages in a workspace such as Notion. */
3
3
  export declare const CONTENT_FLAGS: VocabularyFlag[];
@@ -1,4 +1,4 @@
1
- /** Posts and pages on a site or blog the owner publishes. */
1
+ /** Posts and pages on a site or blog the owner publishes, and pages in a workspace such as Notion. */
2
2
  export const CONTENT_FLAGS = [
3
3
  { name: "--slug", value: "<slug>", role: "value", type: "string", meaning: "the last part of its web address" },
4
4
  {
@@ -14,4 +14,25 @@ export const CONTENT_FLAGS = [
14
14
  type: "switch",
15
15
  meaning: "write the new text over a body the tool cannot fully read back, losing what it could not show",
16
16
  },
17
+ {
18
+ name: "--from-template",
19
+ value: "<template>",
20
+ role: "value",
21
+ type: "string",
22
+ meaning: "start the new page from one of the source's page templates, by name or id; not a message --template",
23
+ },
24
+ {
25
+ name: "--cover",
26
+ value: "<link>",
27
+ role: "value",
28
+ type: "string",
29
+ meaning: "the page's cover image, by an https link, or none to take it away; a local image file is --photo",
30
+ },
31
+ {
32
+ name: "--allow-deleting-content",
33
+ role: "mode",
34
+ type: "switch",
35
+ meaning: "let an update delete the child pages and databases its new text leaves out; the source keeps them in its " +
36
+ "trash, unlike --allow-delete",
37
+ },
17
38
  ];
@@ -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";
@@ -173,6 +174,7 @@ const verbs = [
173
174
  "look at a source before taking anything from it: a chat link without joining, a mailbox without importing",
174
175
  ],
175
176
  ["send", "send a message"],
177
+ ["reply", "answer in a comment thread at the source, under the comment that started it"],
176
178
  ["call", "call one provider API method by its own name, generated from the provider's method list"],
177
179
  ["edit", "change a sent message"],
178
180
  ["forward", "send an existing message on to another chat"],
@@ -309,7 +311,17 @@ const collections = [
309
311
  ["relationships", "confirmed or suggested links between people, organizations and projects"],
310
312
  ["roles", "the parts a person plays in a relationship, built in or the owner's own"],
311
313
  ["sheets", "remote spreadsheets and their cell ranges, read or changed through a provider"],
314
+ [
315
+ "databases",
316
+ "a source's databases, such as Notion's, each a set of rows with typed properties; the local store's are tables",
317
+ ],
318
+ ["rows", "the records of a database at the source, each with typed values; an order's or an invoice's are lines"],
312
319
  ["files", "files in the source, such as Google Drive, read and changed there"],
320
+ ["mirrors", "saved pairings of a local folder and a folder in the source, which sync keeps the same both ways"],
321
+ [
322
+ "conflicts",
323
+ "files a mirror's sync found changed on both sides and could not merge, each waiting for a side or a final file",
324
+ ],
313
325
  ["comments", "comments people left on a thing in the source: a channel post or a file"],
314
326
  ["meetings", "stored meetings, from Zoom or another provider"],
315
327
  ["calls", "phone calls a phone system recorded, stored as meetings with their transcripts"],
@@ -453,5 +465,6 @@ export const VOCABULARY = defineVocabulary({
453
465
  ...SCHEDULE_FLAGS,
454
466
  ...CONTENT_FLAGS,
455
467
  ...SEARCH_FLAGS,
468
+ ...MIRROR_FLAGS,
456
469
  ],
457
470
  });
@@ -85,6 +85,11 @@ declare const desktopSchema: v.StrictObjectSchema<{
85
85
  site?: "--site" | undefined;
86
86
  login?: "--login" | undefined;
87
87
  }[], 1, undefined>]>, undefined>;
88
+ /**
89
+ * Desktop asks `setup show` only from this version on. The manifest ships inside the version it describes, so that
90
+ * version always has the flow.
91
+ */
92
+ readonly setupFrom: v.OptionalSchema<v.LiteralSchema<"0.0.0", undefined>, undefined>;
88
93
  }, undefined>, undefined>;
89
94
  readonly skill: v.NullableSchema<v.StrictObjectSchema<{
90
95
  readonly status: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100, "a command word is at most 100 characters">, v.RegexAction<string, (issue: v.RegexIssue<string>) => string>]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
@@ -214,6 +219,11 @@ export declare const manifestSchema: v.StrictObjectSchema<{
214
219
  site?: "--site" | undefined;
215
220
  login?: "--login" | undefined;
216
221
  }[], 1, undefined>]>, undefined>;
222
+ /**
223
+ * Desktop asks `setup show` only from this version on. The manifest ships inside the version it describes, so that
224
+ * version always has the flow.
225
+ */
226
+ readonly setupFrom: v.OptionalSchema<v.LiteralSchema<"0.0.0", undefined>, undefined>;
217
227
  }, undefined>, undefined>;
218
228
  readonly skill: v.NullableSchema<v.StrictObjectSchema<{
219
229
  readonly status: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100, "a command word is at most 100 characters">, v.RegexAction<string, (issue: v.RegexIssue<string>) => string>]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
@@ -60,6 +60,14 @@ const signInSchema = v.strictObject({
60
60
  /** Left out when the CLI signs in only at a terminal, so the manifest of every other CLI stays as it was. */
61
61
  methods: v.optional(v.pipe(v.array(signInMethodSchema), v.minLength(1))),
62
62
  });
63
+ const desktopSignInSchema = v.strictObject({
64
+ ...signInSchema.entries,
65
+ /**
66
+ * Desktop asks `setup show` only from this version on. The manifest ships inside the version it describes, so that
67
+ * version always has the flow.
68
+ */
69
+ setupFrom: v.optional(v.literal("0.0.0")),
70
+ });
63
71
  /** Exactly the keys of a Desktop catalog entry that the tool itself knows; `null` when unused. */
64
72
  const desktopSchema = v.strictObject({
65
73
  tagline: line(55),
@@ -68,7 +76,7 @@ const desktopSchema = v.strictObject({
68
76
  runs: v.nullable(v.strictObject({ list: words, show: words })),
69
77
  search: v.null(),
70
78
  setup: v.nullable(words),
71
- signIn: v.nullable(signInSchema),
79
+ signIn: v.nullable(desktopSignInSchema),
72
80
  skill: v.nullable(v.strictObject({ status: words, install: words, show: words })),
73
81
  /** Desktop gives an own tool a free port of its own and fills `{port}`. */
74
82
  mcpServer: v.nullable(v.strictObject({
@@ -345,7 +353,12 @@ export const buildManifest = ({ identity, commands, pkg, skills }) => {
345
353
  search: null,
346
354
  setup: setupPath ? [...profile, ...setupPath.split(" ")] : null,
347
355
  signIn: identity.signIn
348
- ? { gives: identity.signIn.gives, asks: identity.signIn.asks, ...(methods ? { methods } : {}) }
356
+ ? {
357
+ gives: identity.signIn.gives,
358
+ asks: identity.signIn.asks,
359
+ ...(methods ? { methods } : {}),
360
+ ...(has("setup show", "setup apply", "setup run") ? { setupFrom: "0.0.0" } : {}),
361
+ }
349
362
  : null,
350
363
  skill: skills && has("skill status", "skill install", "skill show")
351
364
  ? {
@@ -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.1",
3
+ "version": "0.128.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",