@wirecat/cli-base 0.50.1 → 0.50.3
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 +23 -0
- package/README.md +1 -0
- package/dist/standards/flags-what.js +90 -0
- package/dist/standards/vocabulary.js +37 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,29 @@ 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.50.3 — 23.10.2026
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- **The vocabulary has `press` and `app` for a messenger's bot buttons.** Verb `press` (press a button under a bot's
|
|
16
|
+
message; the bot sees who pressed it), the owner's word for it (2026-10-23), and view `app` (a bot's mini app: the
|
|
17
|
+
address that opens it). tg and max mount `messages press` and `chats app`, so `unknown-verb` stops reporting them;
|
|
18
|
+
a CLI whose baseline lists them sees "stale baseline entry" and removes the lines.
|
|
19
|
+
|
|
20
|
+
## 0.50.2 — 23.10.2026
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- **The vocabulary has the words a messenger's bot commands use.** Verbs `answer`, `action` and `watch`; views `me`
|
|
25
|
+
and `between`; resources `callbacks`, `webhooks`, `templates`, `media` and the singular `auth`; flags `--secret`
|
|
26
|
+
(which secret beside a bot token to keep) and `--store-token`. The owner approved them for the shared bot commands
|
|
27
|
+
tg, max and wa mount, so `unknown-verb`, `unknown-resource` and `option-role` stop reporting those commands. A CLI
|
|
28
|
+
whose baseline lists them sees "stale baseline entry" and removes the lines.
|
|
29
|
+
|
|
30
|
+
- The messenger vocabulary names sign-in sessions, cached metadata, conversations, analysis work and statistics views precisely. Decryption and retry keep distinct meanings; model categories and alternate spellings still use existing words in command migrations.
|
|
31
|
+
|
|
32
|
+
- The flag vocabulary distinguishes analysis and embedding providers, recorded-consent identities, tag ownership claims, stored-answer models and saved reply-template policies. It also declares the disappearing-message duration, admin-only chat settings, photo removal and sticker-file input with explicit roles.
|
|
33
|
+
|
|
11
34
|
## 0.50.1 — 23.10.2026
|
|
12
35
|
|
|
13
36
|
### Fixed
|
package/README.md
CHANGED
|
@@ -26,6 +26,7 @@ the command tree as data — the parts every CLI needs and nobody should write t
|
|
|
26
26
|
| [Conventions](docs/dev/CONVENTIONS.md) | How code here is written |
|
|
27
27
|
| [Standards handbook](docs/standards/README.md) | The rules every WireCat CLI follows, one page per area (a skeleton for now) |
|
|
28
28
|
| [CLI standard](https://github.com/WireCatLabs/cli-core/blob/main/docs/dev/STANDARD.md) | The rules every WireCat CLI follows; this package holds them as data |
|
|
29
|
+
| [Roadmap](docs/roadmap.md) | What is being built next for developers on this package |
|
|
29
30
|
| [Changelog](CHANGELOG.md) | What each version changed, and what may break callers |
|
|
30
31
|
|
|
31
32
|
## What it is
|
|
@@ -1,4 +1,80 @@
|
|
|
1
1
|
export const WHAT_FLAGS = [
|
|
2
|
+
{
|
|
3
|
+
name: "--analysis-provider",
|
|
4
|
+
value: "<provider>",
|
|
5
|
+
role: "mode",
|
|
6
|
+
type: "choice",
|
|
7
|
+
meaning: "who analyses the selected text: the calling agent or a configured model service",
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
name: "--embedding-provider",
|
|
11
|
+
value: "<provider>",
|
|
12
|
+
role: "mode",
|
|
13
|
+
type: "choice",
|
|
14
|
+
meaning: "who computes embeddings: a local model or a configured remote model service",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: "--consent-provider",
|
|
18
|
+
value: "<identity>",
|
|
19
|
+
role: "target",
|
|
20
|
+
type: "string",
|
|
21
|
+
meaning: "the exact model-service identity whose recorded consent is being removed",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: "--claim",
|
|
25
|
+
value: "<claim>",
|
|
26
|
+
role: "target",
|
|
27
|
+
type: "choice",
|
|
28
|
+
meaning: "the ownership claim to remove from a tag: manual or auto",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: "--answer-model",
|
|
32
|
+
value: "<model>",
|
|
33
|
+
role: "target",
|
|
34
|
+
type: "string",
|
|
35
|
+
meaning: "remove only stored analysis answers made by this model; does not run a model",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: "--template-mode",
|
|
39
|
+
value: "<mode>",
|
|
40
|
+
role: "value",
|
|
41
|
+
type: "choice",
|
|
42
|
+
meaning: "the saved reply template's policy: fill-only or may-reword",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: "--disappear-after",
|
|
46
|
+
value: "<duration|off>",
|
|
47
|
+
role: "value",
|
|
48
|
+
type: "duration",
|
|
49
|
+
meaning: "how long a new chat message is kept after sending; off keeps messages",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: "--only-admins-edit-info",
|
|
53
|
+
value: "<on|off>",
|
|
54
|
+
role: "value",
|
|
55
|
+
type: "choice",
|
|
56
|
+
meaning: "only admins may change the chat's name, photo and description",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: "--only-admins-send",
|
|
60
|
+
value: "<on|off>",
|
|
61
|
+
role: "value",
|
|
62
|
+
type: "choice",
|
|
63
|
+
meaning: "only admins may send messages to the chat",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: "--remove-photo",
|
|
67
|
+
role: "value",
|
|
68
|
+
type: "switch",
|
|
69
|
+
meaning: "remove the chat's photo; not with a replacement photo",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "--sticker-file",
|
|
73
|
+
value: "<file>",
|
|
74
|
+
role: "value",
|
|
75
|
+
type: "path",
|
|
76
|
+
meaning: "a local sticker file to send as a message",
|
|
77
|
+
},
|
|
2
78
|
{
|
|
3
79
|
name: "--target-store",
|
|
4
80
|
value: "<file>",
|
|
@@ -316,6 +392,20 @@ export const WHAT_FLAGS = [
|
|
|
316
392
|
type: "string",
|
|
317
393
|
meaning: "what it acts on, as a reference: msg:, chat:, person:, task:, …",
|
|
318
394
|
},
|
|
395
|
+
{
|
|
396
|
+
name: "--secret",
|
|
397
|
+
value: "<name>",
|
|
398
|
+
role: "target",
|
|
399
|
+
type: "choice",
|
|
400
|
+
meaning: "which secret beside a bot's token to keep, typed at a hidden prompt; never the secret itself",
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
name: "--store-token",
|
|
404
|
+
value: "<profile>",
|
|
405
|
+
role: "action",
|
|
406
|
+
type: "string",
|
|
407
|
+
meaning: "keep a token an operation returns only in this bot profile's keyring; never print it",
|
|
408
|
+
},
|
|
319
409
|
{ name: "--task", value: "<id>", role: "target", type: "id", meaning: "a task, by id" },
|
|
320
410
|
{ name: "--to", value: "<chat>", role: "target", type: "id", meaning: "the chat it goes to" },
|
|
321
411
|
{ name: "--topic", value: "<id>", role: "target", type: "id", meaning: "the forum topic, in a chat that has topics" },
|
|
@@ -152,6 +152,10 @@ const verbs = [
|
|
|
152
152
|
["star", "mark a message so the owner finds it again; only the owner sees the star"],
|
|
153
153
|
["unstar", "take the owner's star off a message"],
|
|
154
154
|
["vote", "answer a poll"],
|
|
155
|
+
["answer", "reply to a button someone pressed under a bot's message"],
|
|
156
|
+
["press", "press a button under a bot's message; the bot sees who pressed it"],
|
|
157
|
+
["action", "show what a bot is doing in a chat, such as typing, for a few seconds"],
|
|
158
|
+
["watch", "follow new events as they come, and keep them"],
|
|
155
159
|
["close", "close a thing that stays: a poll, a task"],
|
|
156
160
|
["join", "join a chat"],
|
|
157
161
|
["leave", "leave a chat"],
|
|
@@ -176,6 +180,8 @@ const verbs = [
|
|
|
176
180
|
["unmerge", "undo a merge"],
|
|
177
181
|
["defer", "leave a decision undecided, for the owner"],
|
|
178
182
|
["embed", "compute the vectors a meaning search reads, for what is stored and has none"],
|
|
183
|
+
["decrypt", "write an unencrypted copy of a file sealed by the tool, using the supplied password"],
|
|
184
|
+
["retry", "start a fresh attempt at partial or failed work, retaining the previous attempt"],
|
|
179
185
|
];
|
|
180
186
|
const replaces = {
|
|
181
187
|
list: ["ls"],
|
|
@@ -237,6 +243,23 @@ const collections = [
|
|
|
237
243
|
["mentions", "phones, e-mail addresses, links and documents found in stored text, each where it was written"],
|
|
238
244
|
["images", "pictures in stored messages, searched by what they show"],
|
|
239
245
|
["duplicates", "pairs of things that may be one, each waiting for a decision"],
|
|
246
|
+
["sessions", "devices and applications signed in to an account"],
|
|
247
|
+
["folders", "named groupings of chats or source files"],
|
|
248
|
+
["links", "stored or source-provided connections between selected things"],
|
|
249
|
+
["requests", "requests waiting for an explicit decision"],
|
|
250
|
+
["rules", "saved rules the owner applies to selected things"],
|
|
251
|
+
["conversations", "derived stretches of chat messages grouped by topic"],
|
|
252
|
+
["batches", "bounded work packets submitted or waiting for processing"],
|
|
253
|
+
["consents", "recorded permission to process selected data with a specified service"],
|
|
254
|
+
["embeddings", "vectors computed from stored content for similarity search"],
|
|
255
|
+
["reports", "saved reports about selected data or a tool's state"],
|
|
256
|
+
["keys", "credentials for a selected external service"],
|
|
257
|
+
["counters", "stored observations of source counts, with their freshness"],
|
|
258
|
+
["gaps", "ranges a source could contain that the local store does not hold"],
|
|
259
|
+
["callbacks", "button presses a bot received and may answer"],
|
|
260
|
+
["webhooks", "addresses a messenger pushes a bot's updates to"],
|
|
261
|
+
["templates", "messages a business has approved in advance, the only kind some messengers deliver late"],
|
|
262
|
+
["media", "files people sent, held by the messenger under an id"],
|
|
240
263
|
];
|
|
241
264
|
const singulars = [
|
|
242
265
|
["session", "this tool's login"],
|
|
@@ -251,6 +274,8 @@ const singulars = [
|
|
|
251
274
|
["vocabulary", "the owner's catalogue of canonical names, with their aliases"],
|
|
252
275
|
["api", "the source's own API, one command per operation"],
|
|
253
276
|
["privacy", "who may find, see, call or add the account"],
|
|
277
|
+
["metadata", "a profile's cached source attributes"],
|
|
278
|
+
["auth", "the credentials a bot profile uses: its token and the secrets beside it"],
|
|
254
279
|
];
|
|
255
280
|
const views = [
|
|
256
281
|
["tree", "the parent and child hierarchy of stored sources"],
|
|
@@ -270,6 +295,18 @@ const views = [
|
|
|
270
295
|
["categories", "the categories a thing takes, with what each means"],
|
|
271
296
|
["domains", "the internet domains links point to, most linked first"],
|
|
272
297
|
["places", "the street addresses confirmed as places, most mentioned first"],
|
|
298
|
+
["comments", "replies attached to a selected source item"],
|
|
299
|
+
["links", "links held for a selected thing"],
|
|
300
|
+
["voters", "people whose recorded votes are visible for a selected poll"],
|
|
301
|
+
["charts", "time series drawn from selected statistics, optionally rendered to a file"],
|
|
302
|
+
["newcomers", "members observed joining during the selected time window"],
|
|
303
|
+
["retention", "whether members of a selected cohort remain or return over time"],
|
|
304
|
+
["responses", "observed replies between participants and the time taken to answer"],
|
|
305
|
+
["discussion", "source posts compared by known views and observed discussion replies"],
|
|
306
|
+
["unanswered", "questions without an observed qualifying answer"],
|
|
307
|
+
["me", "the account a profile's token belongs to"],
|
|
308
|
+
["between", "the messages between two given messages of one chat"],
|
|
309
|
+
["app", "a bot's mini app: the address that opens it, signed in as the owner"],
|
|
273
310
|
];
|
|
274
311
|
const roots = [
|
|
275
312
|
["batch", "run bounded explicitly registered reads with independent correlated answers"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirecat/cli-base",
|
|
3
|
-
"version": "0.50.
|
|
3
|
+
"version": "0.50.3",
|
|
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",
|