@wirecat/cli-core 0.418.0 → 0.419.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
@@ -7,6 +7,12 @@ shape of this file.
7
7
 
8
8
  ## Unreleased
9
9
 
10
+ ## 0.419.0 — 25.10.2026
11
+
12
+ ### Fixed
13
+
14
+ - **`cli-core-parity` reads a large piped program again.** `<cli> commands --json | cli-core-parity <cli>` stopped with `EAGAIN: resource temporarily unavailable, read` once the program was larger than the pipe buffer and the writer was still writing: a module it loads makes a piped stdin non-blocking, and the tool read stdin with a call that cannot wait for more. It now reads stdin as a stream to the end.
15
+
10
16
  ## 0.418.0 — 25.10.2026
11
17
 
12
18
  ### Added
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { readFileSync } from "node:fs";
3
+ import { text } from "node:stream/consumers";
3
4
  import { parityProblems } from "./manifest.js";
4
5
  import { pageProblems } from "./pages.js";
5
6
  import { wordingProblems } from "./wording.js";
@@ -30,7 +31,8 @@ if (cli === "wording" && flag !== undefined && pages.length > 0) {
30
31
  }
31
32
  if (!manifest.clis.includes(cli) || (flag !== undefined && (flag !== "--pages" || pages.length === 0)))
32
33
  usage();
33
- const program = JSON.parse(readFileSync(0, "utf8"));
34
+ // Loading node:process makes a piped stdin non-blocking, so readFileSync(0) throws EAGAIN on a large pipe.
35
+ const program = JSON.parse(await text(process.stdin));
34
36
  if (flag === "--pages") {
35
37
  const problems = pages.flatMap((page) => pageProblems(readFileSync(page, "utf8"), cli, manifest, program).map((found) => `${page}: ${found} — no such option, and the parity manifest plans none for ${cli}`));
36
38
  for (const problem of problems)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wirecat/cli-core",
3
- "version": "0.418.0",
3
+ "version": "0.419.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",