@wirecat/cli-base 0.127.0 → 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,23 @@ 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
|
+
|
|
11
28
|
## 0.127.0 — 23.11.2026
|
|
12
29
|
|
|
13
30
|
### 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
|
];
|
|
@@ -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
|
[
|
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
|
? {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirecat/cli-base",
|
|
3
|
-
"version": "0.
|
|
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",
|