@wirecat/cli-core 0.741.0 → 0.742.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 +8 -0
- package/dist/kit/run-scope.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,14 @@ 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.742.0 — 24.11.2026
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- **`runScopeCases` gives a recorded command 15 s to end against the answering fake**, in place of 2 s. The case
|
|
13
|
+
checks that the command ends inside core's run, not how fast; a whole sync on a loaded machine took over 2 s, so a
|
|
14
|
+
CLI's local `bin/release` failed on it while CI passed. The silent case keeps its 2 s after `--timeout`.
|
|
15
|
+
|
|
8
16
|
## 0.741.0 — 24.11.2026
|
|
9
17
|
|
|
10
18
|
### Fixed
|
package/dist/kit/run-scope.js
CHANGED
|
@@ -8,6 +8,8 @@ import { findRun, runsDirFor } from "../runs/run.js";
|
|
|
8
8
|
/** A `fetch` that never settles, not even on abort: only the run's own deadline can end the command. */
|
|
9
9
|
export const neverAnswers = (() => new Promise(() => { }));
|
|
10
10
|
const GRACE_MS = 2000;
|
|
11
|
+
// Only that the command ends, not how fast: a whole sync on a loaded machine took 2.2–11 s.
|
|
12
|
+
const ANSWERED_MS = 15_000;
|
|
11
13
|
/** Commander keeps it private; a group with an action of its own, as `doctor` beside `doctor reports`, runs too. */
|
|
12
14
|
const acts = (command) => command._actionHandler != null;
|
|
13
15
|
const remoteCommands = (program, path = []) => program.commands.flatMap((command) => {
|
|
@@ -71,7 +73,7 @@ export const runScopeCases = (options) => {
|
|
|
71
73
|
const recordedCase = (path, words) => ({
|
|
72
74
|
name: `${path} runs in a recorded run named after it`,
|
|
73
75
|
run: async () => {
|
|
74
|
-
const ran = await within(
|
|
76
|
+
const ran = await within(ANSWERED_MS, `${path} did not end against the answering fake`, (async () => cli(["--record", ...machine(words)], options.answering()))());
|
|
75
77
|
assert.equal(ran.code, 0, `${path} must succeed against the answering fake; it exited ${ran.code}: ${ran.err}`);
|
|
76
78
|
const runId = parsed(ran.out)?.meta?.run_id;
|
|
77
79
|
assert.equal(typeof runId, "string", `${path} answered without meta.run_id`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirecat/cli-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.742.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",
|