@wirecat/cli-base 0.103.0 → 0.104.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 +17 -0
- package/dist/standards/audit.js +13 -0
- package/dist/wcat/manifest.d.ts +23 -0
- package/dist/wcat/manifest.js +23 -0
- package/docs/standards/commands.md +2 -1
- package/package.json +1 -1
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.104.0 — 16.11.2026
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- **A manifest can say how Desktop opens a call or meeting the CLI saved.** `ManifestIdentity.meetingsProvider`,
|
|
16
|
+
cli-core's provider name on what the CLI saves (`"beeline"`), makes `cli-dev manifest` write `desktop.meetings`:
|
|
17
|
+
the provider and `[{profile}] meetings show {id}` and `meetings transcript {id}`, the same shape as Desktop's
|
|
18
|
+
catalog entries for Zoom and Asterisk. Without it a client's call from a tool added as an own tool cannot open. The
|
|
19
|
+
key is left out, not `null`, when the identity names no provider, so every other manifest stays as it is. WireCat
|
|
20
|
+
Desktop 0.6.8 and older refuse a manifest that has it, so release such a CLI after the Desktop that reads it. A
|
|
21
|
+
provider without both commands is refused.
|
|
22
|
+
|
|
23
|
+
- `PARITY_GROUPS` has a `crm` group: b24 and amo (amo-cli, for amoCRM and Kommo), compared on `deals`, `sync`,
|
|
24
|
+
`search`, `store`, `schedule` and `account`. amo is not on npm yet, so `cli-dev audit --family` skips it until it
|
|
25
|
+
is. `people`, `organizations`, `users`, `api` and `session` join once b24's release is on cli-core's shared people
|
|
26
|
+
and organizations commands.
|
|
27
|
+
|
|
11
28
|
## 0.103.0 — 15.11.2026
|
|
12
29
|
|
|
13
30
|
### Added
|
package/dist/standards/audit.js
CHANGED
|
@@ -152,6 +152,19 @@ export const PARITY_GROUPS = defineParityGroups([
|
|
|
152
152
|
covers: ["commands", "doctor", "skill", "mcp", "upgrade"],
|
|
153
153
|
differences: [...MEMO_HAS_NO_PROFILES, MEMO_DOCTOR_DEEP],
|
|
154
154
|
},
|
|
155
|
+
// The CRM CLIs on cli-core's shared CRM commands. amo-cli (amoCRM and Kommo) is not on npm yet, so `audit --family`
|
|
156
|
+
// skips it, as beeline. Only b24 has `leads` (amoCRM has no lead apart from a deal), `products` (amo leaves them for
|
|
157
|
+
// later) and `deals delete` (amoCRM's API v4 cannot delete a lead,
|
|
158
|
+
// https://www.amocrm.ru/developers/content/crm_platform/leads-api); a list of roots does not compare presence, so
|
|
159
|
+
// these need no difference. `people`, `organizations`, `users`, `api` and `session` join once b24's released tree
|
|
160
|
+
// is on cli-core's shared people and organizations commands: measured against b24 0.23.0 on 2026-11-16 they differ
|
|
161
|
+
// in options, outputs and summaries.
|
|
162
|
+
{
|
|
163
|
+
name: "crm",
|
|
164
|
+
members: ["b24", "amo"],
|
|
165
|
+
covers: ["deals", "sync", "search", "store", "schedule", "account"],
|
|
166
|
+
differences: [],
|
|
167
|
+
},
|
|
155
168
|
]);
|
|
156
169
|
const requiredRootSchema = v.strictObject({ path: v.pipe(v.array(segment), v.minLength(1)), meaning: text });
|
|
157
170
|
export const defineRequiredRoots = (input) => parseRegistry("required roots", v.array(requiredRootSchema), input, (roots) => duplicates(roots.map((root) => root.path.join(" "))).map((path) => `"${path}" is listed twice`));
|
package/dist/wcat/manifest.d.ts
CHANGED
|
@@ -77,6 +77,15 @@ declare const desktopSchema: v.StrictObjectSchema<{
|
|
|
77
77
|
readonly env: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "an upper-case environment prefix">]>;
|
|
78
78
|
}, undefined>;
|
|
79
79
|
readonly settings: v.NullSchema<undefined>;
|
|
80
|
+
/**
|
|
81
|
+
* How a client's call or a meeting this tool saved opens: Desktop finds the tool by `provider`. Left out, not `null`,
|
|
82
|
+
* when the tool records none, because Desktop 0.6.8 and older refuse a manifest with a key they do not read.
|
|
83
|
+
*/
|
|
84
|
+
readonly meetings: v.OptionalSchema<v.StrictObjectSchema<{
|
|
85
|
+
readonly provider: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a provider name">]>;
|
|
86
|
+
readonly show: 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>]>;
|
|
87
|
+
readonly transcript: 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>]>;
|
|
88
|
+
}, undefined>, undefined>;
|
|
80
89
|
}, undefined>;
|
|
81
90
|
export type ManifestDesktop = v.InferOutput<typeof desktopSchema>;
|
|
82
91
|
export declare const manifestSchema: v.StrictObjectSchema<{
|
|
@@ -163,6 +172,15 @@ export declare const manifestSchema: v.StrictObjectSchema<{
|
|
|
163
172
|
readonly env: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "an upper-case environment prefix">]>;
|
|
164
173
|
}, undefined>;
|
|
165
174
|
readonly settings: v.NullSchema<undefined>;
|
|
175
|
+
/**
|
|
176
|
+
* How a client's call or a meeting this tool saved opens: Desktop finds the tool by `provider`. Left out, not `null`,
|
|
177
|
+
* when the tool records none, because Desktop 0.6.8 and older refuse a manifest with a key they do not read.
|
|
178
|
+
*/
|
|
179
|
+
readonly meetings: v.OptionalSchema<v.StrictObjectSchema<{
|
|
180
|
+
readonly provider: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a provider name">]>;
|
|
181
|
+
readonly show: 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>]>;
|
|
182
|
+
readonly transcript: 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>]>;
|
|
183
|
+
}, undefined>, undefined>;
|
|
166
184
|
}, undefined>;
|
|
167
185
|
}, undefined>;
|
|
168
186
|
export type Manifest = v.InferOutput<typeof manifestSchema>;
|
|
@@ -181,6 +199,11 @@ export interface ManifestIdentity extends WcatTool {
|
|
|
181
199
|
signIn?: SignIn;
|
|
182
200
|
/** What `sync` copies, at most 40 characters: "contacts and deals". Required when the CLI has a sync command. */
|
|
183
201
|
syncs?: string;
|
|
202
|
+
/**
|
|
203
|
+
* cli-core's provider name on the meetings or calls this CLI saves (`MeetingSource.provider`): "beeline". Needs
|
|
204
|
+
* `meetings show` and `meetings transcript`; Desktop opens a client's call with them.
|
|
205
|
+
*/
|
|
206
|
+
meetingsProvider?: string;
|
|
184
207
|
/**
|
|
185
208
|
* Every host the CLI contacts, as `hostFetch` checks them: `["api.acme.example", "*.cdn.acme.example"]`; `[]` for
|
|
186
209
|
* none. Written to the manifest as `network.hosts`.
|
package/dist/wcat/manifest.js
CHANGED
|
@@ -74,6 +74,15 @@ const desktopSchema = v.strictObject({
|
|
|
74
74
|
env: v.pipe(v.string(), v.regex(/^[A-Z][A-Z0-9_]*$/, "an upper-case environment prefix")),
|
|
75
75
|
}),
|
|
76
76
|
settings: v.null(),
|
|
77
|
+
/**
|
|
78
|
+
* How a client's call or a meeting this tool saved opens: Desktop finds the tool by `provider`. Left out, not `null`,
|
|
79
|
+
* when the tool records none, because Desktop 0.6.8 and older refuse a manifest with a key they do not read.
|
|
80
|
+
*/
|
|
81
|
+
meetings: v.optional(v.strictObject({
|
|
82
|
+
provider: v.pipe(v.string(), v.regex(TOOL_NAME, "a provider name")),
|
|
83
|
+
show: words,
|
|
84
|
+
transcript: words,
|
|
85
|
+
})),
|
|
77
86
|
});
|
|
78
87
|
const hostSchema = v.pipe(v.string(), v.maxLength(253), v.regex(HOST_PATTERN, (issue) => `${JSON.stringify(issue.input)} is not a host: a lower-case hostname with no scheme, port or path, or one leading *. before two labels or more`));
|
|
79
88
|
const networkSchema = v.strictObject({
|
|
@@ -177,6 +186,19 @@ export const buildManifest = ({ identity, commands, pkg, skills }) => {
|
|
|
177
186
|
note: null,
|
|
178
187
|
}
|
|
179
188
|
: null;
|
|
189
|
+
if (identity.meetingsProvider && !has("meetings show", "meetings transcript"))
|
|
190
|
+
throw new ManifestError([
|
|
191
|
+
"meetingsProvider needs `meetings show` and `meetings transcript`: Desktop opens a call with them",
|
|
192
|
+
]);
|
|
193
|
+
const meetings = identity.meetingsProvider
|
|
194
|
+
? {
|
|
195
|
+
meetings: {
|
|
196
|
+
provider: identity.meetingsProvider,
|
|
197
|
+
show: [...profile, "meetings", "show", "{id}", "--no-record", "--json"],
|
|
198
|
+
transcript: [...profile, "meetings", "transcript", "{id}", "--no-record", "--json"],
|
|
199
|
+
},
|
|
200
|
+
}
|
|
201
|
+
: {};
|
|
180
202
|
const twice = identity.hosts?.filter((host, index) => identity.hosts?.indexOf(host) !== index) ?? [];
|
|
181
203
|
if (twice.length > 0)
|
|
182
204
|
throw new ManifestError(twice.map((host) => `hosts: ${host} is listed twice`));
|
|
@@ -256,6 +278,7 @@ export const buildManifest = ({ identity, commands, pkg, skills }) => {
|
|
|
256
278
|
storeReset: null,
|
|
257
279
|
storage: { app: identity.appName, env: identity.envPrefix },
|
|
258
280
|
settings: null,
|
|
281
|
+
...meetings,
|
|
259
282
|
},
|
|
260
283
|
};
|
|
261
284
|
const parsed = v.safeParse(manifestSchema, manifest);
|
|
@@ -381,7 +381,8 @@ The references, each for its own part:
|
|
|
381
381
|
### WC-CMD-29 · Answer `--wcat-describe`, and take no name WireCat reserves
|
|
382
382
|
|
|
383
383
|
A CLI ships `contracts/wirecat.json` (`wcat_manifest: 2`), written by `cli-dev manifest` from its command tree and
|
|
384
|
-
its identity, never by hand. The developer types only `tagline`, `signIn
|
|
384
|
+
its identity, never by hand. The developer types only `tagline`, `signIn`, with a sync
|
|
385
|
+
command `syncs`, and for saved calls or meetings `meetingsProvider`; the
|
|
385
386
|
commands, their `summary`, `effects` and `entity`, the fields of each entity a query covers, and every command word in
|
|
386
387
|
`desktop` are derived, and every word passes Desktop's plain-word rule. The hosts it contacts are typed too
|
|
387
388
|
([WC-CMD-32](#wc-cmd-32--declare-every-host-the-cli-contacts-and-reach-them-only-through-hostfetch)). The file holds nothing that changes per release (no version), and no MCP port: Desktop assigns one. With the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirecat/cli-base",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.104.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",
|