@wirecat/cli-core 0.713.0 → 0.714.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,19 @@ 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.714.0 — 19.11.2026
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- **The file mirror's default hints use the WireCat vocabulary.** A guard stop or a full drive names
|
|
13
|
+
`--replace` and `--ignore <path>`, which `cli-dev lint` accepts, instead of `--allow-replacements <count>` and
|
|
14
|
+
`--exclude <glob>`.
|
|
15
|
+
- **A second secret saves to the file when the keyring does not answer.** `ProfileTokenStore#writeSecret` read the
|
|
16
|
+
profile's old entry first, and since cli-base 0.108 that read throws `keyring.unreachable` when the keyring fails
|
|
17
|
+
and the file has no entry. So `setup apply` of a profile with two passwords (pbx: the database and SFTP or SSH)
|
|
18
|
+
failed on a computer with no keyring, where it used to save to the private file. That read now counts as no old
|
|
19
|
+
entry, as `write` has done since 0.685.0.
|
|
20
|
+
|
|
8
21
|
## 0.713.0 — 19.11.2026
|
|
9
22
|
|
|
10
23
|
### Added
|
|
@@ -117,7 +117,7 @@ export class ProfileTokenStore {
|
|
|
117
117
|
/** A named secret, kept in the profile's one entry beside its token; where the entry is now when not given. */
|
|
118
118
|
writeSecret(profile, name, secret, storage) {
|
|
119
119
|
checkName(name);
|
|
120
|
-
const found = this.#
|
|
120
|
+
const found = this.#storedUnlessUnreachable(profile);
|
|
121
121
|
const held = unpack(found?.secret);
|
|
122
122
|
const where = storage ?? (found?.source === "file" ? "file" : "keyring");
|
|
123
123
|
return this.#put(profile, { ...held, secrets: { ...held.secrets, [name]: secret } }, where);
|
|
@@ -144,12 +144,15 @@ export class ProfileTokenStore {
|
|
|
144
144
|
}
|
|
145
145
|
/** A sign-in must still land, in the file, when the keyring does not answer; what the keyring held stays there. */
|
|
146
146
|
#heldUnlessUnreachable(profile) {
|
|
147
|
+
return unpack(this.#storedUnlessUnreachable(profile)?.secret);
|
|
148
|
+
}
|
|
149
|
+
#storedUnlessUnreachable(profile) {
|
|
147
150
|
try {
|
|
148
|
-
return this.#
|
|
151
|
+
return this.#stored.read(accountOf(profile));
|
|
149
152
|
}
|
|
150
153
|
catch (error) {
|
|
151
154
|
if (isCliError(error) && error.details.reason === "keyring.unreachable")
|
|
152
|
-
return
|
|
155
|
+
return undefined;
|
|
153
156
|
throw error;
|
|
154
157
|
}
|
|
155
158
|
}
|
|
@@ -69,9 +69,9 @@ export interface MirrorHints {
|
|
|
69
69
|
sync: string;
|
|
70
70
|
/** How a sync allows deletions: `--allow-deletions <count>`. */
|
|
71
71
|
allowDeletions: string;
|
|
72
|
-
/** How a sync allows replacements: `--
|
|
72
|
+
/** How a sync allows replacements: `--replace`, the vocabulary's overwrite switch. */
|
|
73
73
|
allowReplacements: string;
|
|
74
|
-
/** How to
|
|
74
|
+
/** How to leave a folder out: `ydisk work mirrors update <id> --ignore <path>`. */
|
|
75
75
|
exclude: string;
|
|
76
76
|
}
|
|
77
77
|
export interface FileStep {
|
|
@@ -11,8 +11,8 @@ const HINTS = {
|
|
|
11
11
|
repin: "--repin",
|
|
12
12
|
sync: "sync",
|
|
13
13
|
allowDeletions: "--allow-deletions <count>",
|
|
14
|
-
allowReplacements: "--
|
|
15
|
-
exclude: "--
|
|
14
|
+
allowReplacements: "--replace",
|
|
15
|
+
exclude: "--ignore <path>",
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
18
|
* A run that would delete more than `MAX_DELETIONS` files, or replace more than `MAX_REPLACEMENTS` existing files on
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirecat/cli-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.714.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",
|