@wirecat/cli-core 0.716.0 → 0.717.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
|
@@ -5,6 +5,28 @@ Notable changes to `@wirecat/cli-core` (`@wirecat/cli-messaging` up to 0.261.0,
|
|
|
5
5
|
minor version may break callers, and says how under "Changed — may break callers". `pnpm docs:check` checks the
|
|
6
6
|
shape of this file.
|
|
7
7
|
|
|
8
|
+
## 0.717.0 — 21.11.2026
|
|
9
|
+
|
|
10
|
+
### Changed — may break callers
|
|
11
|
+
|
|
12
|
+
- **`account rename` of a profile that is not here fails with `profile.unknown`.** It had its own reason,
|
|
13
|
+
`account-rename.unknown-profile`, with the same code and message as `account remove`'s, and the family audit
|
|
14
|
+
counts one failure under two names as a new finding, which blocked `cli-dev audit --family` of every CLI on
|
|
15
|
+
cli-core. `profile.unknown` is what the rest of the tool gives for a profile that is not here, with the same
|
|
16
|
+
`details.profiles`; `account remove` keeps `account-remove.unknown-profile`, which WireCat Desktop matches. An
|
|
17
|
+
agent that matched `account-rename.unknown-profile` matches `profile.unknown` instead.
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- **`session` help names the sign-in the CLI keeps,** as its prompt does: "application password" for a WordPress
|
|
22
|
+
CLI, "API token" when the CLI names none, "password" for a sign-in with `--login`. It said "token" for all.
|
|
23
|
+
A CLI's generated command pages change with it at its next bump.
|
|
24
|
+
- **`api` help names what the commands were made from.** `serviceApiCommand` takes `spec`, such as
|
|
25
|
+
"its index at /wp-json"; left out, it is still "its OpenAPI document", or "its GraphQL schema" when every
|
|
26
|
+
operation is GraphQL.
|
|
27
|
+
- **whatsapp-cli is off the parity known-broken list.** whatsapp-cli#418 adopted cli-core 0.714.0 and names the
|
|
28
|
+
scheduled-message methods WhatsApp never has, so a release fails again when whatsapp-cli breaks. The list is empty.
|
|
29
|
+
|
|
8
30
|
## 0.716.0 — 21.11.2026
|
|
9
31
|
|
|
10
32
|
### Added
|
|
@@ -65,7 +65,7 @@ export const accountRenameCommand = (app, renaming, options = {}) => annotate(ne
|
|
|
65
65
|
const next = usableProfileName(wanted);
|
|
66
66
|
const known = (name) => settings.profilesHere.includes(name) || existsSync(accountFileFor(app, name, env));
|
|
67
67
|
if (!known(profile))
|
|
68
|
-
throw new CliError("not_found", `no profile ${profile} on this computer — ${settings.profilesHere.join(", ") || "there is none"}`, { reason: "
|
|
68
|
+
throw new CliError("not_found", `no profile ${profile} on this computer — ${settings.profilesHere.join(", ") || "there is none"}`, { reason: "profile.unknown", profiles: settings.profilesHere });
|
|
69
69
|
if (next === profile)
|
|
70
70
|
throw new CliError("validation_error", `${profile} already has that name`);
|
|
71
71
|
if (known(next) || (settings.botProfiles ?? []).includes(next))
|
|
@@ -30,6 +30,11 @@ export interface ServiceApiOptions extends ServiceApiPermissionsInput {
|
|
|
30
30
|
service: string;
|
|
31
31
|
/** In place of the manifest's first server. */
|
|
32
32
|
baseUrl?: string;
|
|
33
|
+
/**
|
|
34
|
+
* What the operations were made from, for the group's help: "its index at /wp-json". Left out, "its OpenAPI
|
|
35
|
+
* document", or "its GraphQL schema" when every operation is GraphQL.
|
|
36
|
+
*/
|
|
37
|
+
spec?: string;
|
|
33
38
|
/**
|
|
34
39
|
* The values of the server's free variables for this run, such as `{ site }` from the profile's sign-in
|
|
35
40
|
* (`recalledSite`). Read only when a call is sent, so `api list` and `api show` work before sign-in.
|
package/dist/cli/service-api.js
CHANGED
|
@@ -416,8 +416,8 @@ export const serviceApiCommand = (options) => {
|
|
|
416
416
|
renderAnswer(this, outputFor(this), itemOf({ operation, ...options.shown, ...(schema ? { request_schema: schema } : {}) }));
|
|
417
417
|
});
|
|
418
418
|
const graphql = operations.length > 0 && operations.every((one) => one.binding.kind === "graphql");
|
|
419
|
-
const described = graphql ? "GraphQL schema" : "OpenAPI document";
|
|
420
|
-
const group = annotate(new Command("api"), { effects: NO_EFFECTS }).description(`the raw ${options.service} API, one command per operation of
|
|
419
|
+
const described = options.spec ?? (graphql ? "its GraphQL schema" : "its OpenAPI document");
|
|
420
|
+
const group = annotate(new Command("api"), { effects: NO_EFFECTS }).description(`the raw ${options.service} API, one command per operation of ${described}`);
|
|
421
421
|
group.addCommand(list).addCommand(show);
|
|
422
422
|
for (const child of [...generated.commands])
|
|
423
423
|
group.addCommand(child);
|
|
@@ -163,7 +163,7 @@ export const tokenSessionCommand = (options) => {
|
|
|
163
163
|
renderAnswer(this, outputFor(this), listOf("session list", { items, limit: Math.max(1, items.length), has_more: false }));
|
|
164
164
|
});
|
|
165
165
|
return annotate(new Command("session"), { effects: LOCAL_READ })
|
|
166
|
-
.description(`keep this profile's ${service}
|
|
166
|
+
.description(`keep this profile's ${service} ${word} in the OS keyring`)
|
|
167
167
|
.addCommand(start)
|
|
168
168
|
.addCommand(status)
|
|
169
169
|
.addCommand(end)
|
package/dist/errors/reasons.js
CHANGED
|
@@ -57,7 +57,6 @@ const SIGN_IN = [
|
|
|
57
57
|
"configuration_error",
|
|
58
58
|
"the tool named a folder of its own outside the home folder",
|
|
59
59
|
],
|
|
60
|
-
["account-rename.unknown-profile", "not_found", "no profile by this name on this computer"],
|
|
61
60
|
["account-rename.taken", "conflict", "the new name, or a file or keyring entry under it, already exists"],
|
|
62
61
|
["account-rename.busy", "conflict", "a serve, a background service, a schedule or a sync uses this profile"],
|
|
63
62
|
["account-rename.bot", "conflict", "the profile is also a bot profile, which keeps its name"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirecat/cli-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.717.0",
|
|
4
4
|
"description": "The messenger-neutral half of a messaging CLI: domain model, message locators, rendering, name resolution, the SQLite seam, the command skeleton and shared read commands, the send guard, run records and the message store",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Viacheslav Ptsarev",
|