@wirecat/cli-base 0.127.0 → 0.129.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 +33 -0
- package/dist/standards/flags-content.d.ts +1 -1
- package/dist/standards/flags-content.js +22 -1
- package/dist/standards/flags-knowledge.js +14 -0
- package/dist/standards/vocabulary.js +7 -0
- package/dist/wcat/manifest.d.ts +10 -0
- package/dist/wcat/manifest.js +15 -2
- package/docs/standards/accounts.md +1 -1
- package/docs/standards/commands.md +6 -4
- package/docs/standards/output.md +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,39 @@ 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.129.0 — 23.11.2026
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- **A change log's words in the vocabulary.** The view `changes` (what a sync changed in the local copy since a time),
|
|
16
|
+
and the flags `--since <time>` (from this time on, a time or a duration ago) and `--event <events>` (only these kinds
|
|
17
|
+
of event). cli-core's shared `changes` command, which every documents CLI mounts with `documents history`, then
|
|
18
|
+
passes `cli-dev lint` with no override.
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- **The standards say what the family audit does: a new cross-CLI difference fails the pull request.** commands.md,
|
|
23
|
+
output.md and accounts.md said `same-flag-meaning`, `required-root` and `same-path-contract` run weekly and do not
|
|
24
|
+
block. `cli-dev audit` has failed a pull request on a new one since it was added (#112, `AUDIT_BLOCKS`), unless the
|
|
25
|
+
CLI's `--differences` file names it with a reason.
|
|
26
|
+
|
|
27
|
+
## 0.128.0 — 23.11.2026
|
|
28
|
+
|
|
29
|
+
### Added
|
|
30
|
+
|
|
31
|
+
- **The manifest names `signIn.setupFrom` when the CLI has cli-core's setup flow.** WireCat Desktop draws a tool's own
|
|
32
|
+
guided sign-in (`setup show`) only when the tool's catalog entry names `signIn.setupFrom`. A tool added from its
|
|
33
|
+
manifest could not name it, so Desktop showed its plain form instead of the flow. `cli-dev manifest` now writes
|
|
34
|
+
`setupFrom: "0.0.0"` when the CLI has `setup show`, `setup apply` and `setup run` and declares `signIn`. Run
|
|
35
|
+
`pnpm generate` after the bump; nothing else changes. See [the reference](docs/REFERENCE.md).
|
|
36
|
+
- **A workspace's words in the vocabulary** ([#693](https://github.com/WireCatLabs/cli-base/issues/693)). The nouns
|
|
37
|
+
`databases` (a source's databases, each a set of rows with typed properties) and `rows` (the records of such a
|
|
38
|
+
database). The verb `reply` (answer in a comment thread at the source). The flags `--from-template <template>` (start
|
|
39
|
+
a new page from one of the source's page templates), `--cover <link>` (a page's cover image, by an https link) and
|
|
40
|
+
`--allow-deleting-content` (let an update delete the child pages its new text leaves out). notion-cli no longer needs
|
|
41
|
+
an override for these words. drive-cli's `comments reply` override goes stale at its next bump and comes out then.
|
|
42
|
+
`get` stays an old name for `show`, and a list without a query is still `list-without-query`.
|
|
43
|
+
|
|
11
44
|
## 0.127.0 — 23.11.2026
|
|
12
45
|
|
|
13
46
|
### Added
|
|
@@ -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
|
];
|
|
@@ -55,4 +55,18 @@ export const KNOWLEDGE_FLAGS = [
|
|
|
55
55
|
type: "string",
|
|
56
56
|
meaning: "every stored thing a search with this query finds, in its query language; the command acts on each",
|
|
57
57
|
},
|
|
58
|
+
{
|
|
59
|
+
name: "--since",
|
|
60
|
+
value: "<time>",
|
|
61
|
+
role: "target",
|
|
62
|
+
type: "time",
|
|
63
|
+
meaning: "from this time on: a time, or a duration ago such as 1d",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: "--event",
|
|
67
|
+
value: "<events>",
|
|
68
|
+
role: "target",
|
|
69
|
+
type: "list",
|
|
70
|
+
meaning: "only these kinds of event, comma separated; the command lists them",
|
|
71
|
+
},
|
|
58
72
|
];
|
|
@@ -174,6 +174,7 @@ const verbs = [
|
|
|
174
174
|
"look at a source before taking anything from it: a chat link without joining, a mailbox without importing",
|
|
175
175
|
],
|
|
176
176
|
["send", "send a message"],
|
|
177
|
+
["reply", "answer in a comment thread at the source, under the comment that started it"],
|
|
177
178
|
["call", "call one provider API method by its own name, generated from the provider's method list"],
|
|
178
179
|
["edit", "change a sent message"],
|
|
179
180
|
["forward", "send an existing message on to another chat"],
|
|
@@ -310,6 +311,11 @@ const collections = [
|
|
|
310
311
|
["relationships", "confirmed or suggested links between people, organizations and projects"],
|
|
311
312
|
["roles", "the parts a person plays in a relationship, built in or the owner's own"],
|
|
312
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"],
|
|
313
319
|
["files", "files in the source, such as Google Drive, read and changed there"],
|
|
314
320
|
["mirrors", "saved pairings of a local folder and a folder in the source, which sync keeps the same both ways"],
|
|
315
321
|
[
|
|
@@ -385,6 +391,7 @@ const views = [
|
|
|
385
391
|
["stats", "a thing's own numbers, such as a post's views, as read at each sync"],
|
|
386
392
|
["logs", "the log of a running process"],
|
|
387
393
|
["events", "what happened in a thing over time"],
|
|
394
|
+
["changes", "what a sync changed in the local copy since a time: added, changed, deleted or no longer visible"],
|
|
388
395
|
["scheduled", "what is scheduled to happen"],
|
|
389
396
|
["context", "what surrounds one thing"],
|
|
390
397
|
["path", "where a thing is on this machine"],
|
package/dist/wcat/manifest.d.ts
CHANGED
|
@@ -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>]>;
|
package/dist/wcat/manifest.js
CHANGED
|
@@ -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(
|
|
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
|
-
? {
|
|
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
|
? {
|
|
@@ -132,7 +132,7 @@ the config allows.
|
|
|
132
132
|
- **Why:** an agent that learned a flag in one CLI must not be surprised by it in another.
|
|
133
133
|
- **Enforced by:** `flag-two-meanings` · `flag-synonym` · `option-role` · `same-flag-meaning`.
|
|
134
134
|
- **Example:** `memo search messages "invoice" --source telegram,max`.
|
|
135
|
-
- **Exceptions:**
|
|
135
|
+
- **Exceptions:** none.
|
|
136
136
|
- **Applies to:** all CLIs. **Since:** cli-base 0.41.0. **Rulings:** none.
|
|
137
137
|
|
|
138
138
|
### WC-ACCT-9 · A read across accounts covers all of them and says which it read
|
|
@@ -73,7 +73,8 @@ per profile, and only `defaults` is filled.
|
|
|
73
73
|
### WC-CMD-5 · Give every CLI the required root commands
|
|
74
74
|
|
|
75
75
|
- **Why:** agents and the cross-CLI audit start from the same entry points in every CLI.
|
|
76
|
-
- **Enforced by:** `required-root` (
|
|
76
|
+
- **Enforced by:** `required-root` (the family audit: a new difference fails the pull request unless the CLI's
|
|
77
|
+
differences file names it).
|
|
77
78
|
- **Example:** `commands`, `doctor`, `skill show`, `skill install`, `mcp`, `upgrade`.
|
|
78
79
|
- **Exceptions:** none.
|
|
79
80
|
- **Applies to:** all CLIs. **Since:** cli-base 0.41.0. **Rulings:** none.
|
|
@@ -124,8 +125,8 @@ per profile, and only `defaults` is filled.
|
|
|
124
125
|
### WC-CMD-10 · Use a vocabulary flag for its meaning, and give one flag one kind of value everywhere
|
|
125
126
|
|
|
126
127
|
- **Why:** `--limit` must mean "how many items" in every command of every CLI.
|
|
127
|
-
- **Enforced by:** `flag-synonym` · `flag-two-meanings` · `same-flag-meaning`
|
|
128
|
-
request
|
|
128
|
+
- **Enforced by:** `flag-synonym` · `flag-two-meanings` · `same-flag-meaning`
|
|
129
|
+
(the family audit: a new difference fails the pull request unless the CLI's differences file names it).
|
|
129
130
|
- **Example:** `--limit <n>`, never `--max`, `--take` or `--count`. `--cursor <cursor>`, never `--offset`. How big
|
|
130
131
|
the answer is: `--limit`, `--page` and `--page-size`; a count of pages is never a paging option. How much work a
|
|
131
132
|
command may do is a `budget` option: `--max-pages <pages>` caps the pages a sync reads from the source, and
|
|
@@ -308,7 +309,8 @@ store or files without reading the service first (`remote: "none"`, `local: "wri
|
|
|
308
309
|
### WC-CMD-25 · Give a shared command and a shared option the same sentence in every CLI of its group
|
|
309
310
|
|
|
310
311
|
- **Why:** they are one command, so they read as one.
|
|
311
|
-
- **Enforced by:** `same-path-contract` (
|
|
312
|
+
- **Enforced by:** `same-path-contract` (the family audit: a new difference fails the pull request unless the CLI's
|
|
313
|
+
differences file names it).
|
|
312
314
|
- **Example:** the shared factory in cli-core writes the description. A CLI changes it only to name its messenger.
|
|
313
315
|
- **Exceptions:** a sentence may differ where it names something the messenger's own way. The option catalogue in
|
|
314
316
|
cli-core says why.
|
package/docs/standards/output.md
CHANGED
|
@@ -141,8 +141,8 @@ JSON Schema 2020-12.
|
|
|
141
141
|
### WC-OUT-11 · Give a shared command the same answer shape in every CLI of its group
|
|
142
142
|
|
|
143
143
|
- **Why:** an agent that reads one CLI's answer can read the other's.
|
|
144
|
-
- **Enforced by:** `same-path-contract`
|
|
145
|
-
|
|
144
|
+
- **Enforced by:** `same-path-contract` · `same-entity-schema` (the family audit, which reads
|
|
145
|
+
every CLI's schemas; a new difference fails the pull request unless the CLI's differences file names it).
|
|
146
146
|
- **Example:** what only one messenger knows goes under `provider_metadata`, never as a top-level field one CLI has and
|
|
147
147
|
the other lacks.
|
|
148
148
|
- **Exceptions:** none.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirecat/cli-base",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.129.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",
|