cliprobe 1.8.0 → 1.8.1
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/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -78,7 +78,7 @@ control-chars
|
|
|
78
78
|
|
|
79
79
|
When a program's output goes into a reader that stops early (`| head`, `grep -q`, a closed agent pipe), its next write to stdout fails. A well-behaved program exits quietly. Many Node.js CLIs instead crash with `Error: write EPIPE`, a stack trace, and exit code 1. That breaks scripts running under `set -o pipefail` and confuses agents that read stderr.
|
|
80
80
|
|
|
81
|
-
In a census of the 100 most-downloaded npm packages that ship a command (119 commands, run offline in a throwaway container), **9 crashed this way every time**: esbuild, browserslist, update-browserslist-db, autoprefixer, husky, tsconfck, ts-jest, rolldown, and tsx on `--version`. Since then esbuild and
|
|
81
|
+
In a census of the 100 most-downloaded npm packages that ship a command (119 commands, run offline in a throwaway container), **9 crashed this way every time**: esbuild, browserslist, update-browserslist-db, autoprefixer, husky, tsconfck, ts-jest, rolldown, and tsx on `--version`. Since then esbuild, browserslist and autoprefixer have fixed it; the other six still crash at their December 2026 versions. The best-known existing CLI auditor rated the first 8 as passing its SIGPIPE check. The same census found two commands that print color codes into a pipe (`giget --help`, `tsx --help`), five whose `--help` or `--version` waits for stdin (he, cssesc, ansi-html, webpack and webpack-dev-server), and no false failures: every `FAIL` reproduced by hand. (A census of `--help` and `--version` can't exercise ctrl-c, sigterm or control-chars, which need a command that keeps running or takes a path; their fixtures and real-tool tests are in `test/`.) The census is repeatable: [`census/`](https://github.com/KhaledSaeed18/cliprobe/tree/main/census) pins the packages, runs them offline with one command, and keeps [the latest results](https://github.com/KhaledSaeed18/cliprobe/blob/main/census/results/top-100.md).
|
|
82
82
|
|
|
83
83
|
The other checks cover the rest of what goes wrong between a program and the thing reading it: output lost on a full disk while the program exits 0, color codes leaking into logs and agent transcripts, Ctrl-C that is ignored or ends in a stack trace, child processes left running after `kill` or `docker stop`, a terminal left with a hidden cursor or no line wrapping after Ctrl-C, and file names that can send escape sequences to your terminal.
|
|
84
84
|
|
|
@@ -327,7 +327,7 @@ cliprobe runs the command twice: once normally, then with stdout set to `/dev/fu
|
|
|
327
327
|
| `WARN` | Exited 0 though its output was lost, crashed with a stack trace, or hung |
|
|
328
328
|
| `SKIP` | Wrote nothing to stdout for this invocation (or before the timeout), or the system has no `/dev/full` (macOS) |
|
|
329
329
|
|
|
330
|
-
The check is new in 1.7 and only warns
|
|
330
|
+
The check is new in 1.7 and only warns. The December 2026 census shows why it should stay that way for now: of the 157 `--help` and `--version` runs of the top 100 npm commands that print something, 138 warned. 119 exited 0 with their output lost, among them esbuild, eslint, prettier and `tsc`, and 19 crashed with a stack trace; only 19, such as pnpm and uuid, reported the error and exited non-zero. Every one checked by hand was real (`esbuild --version > /dev/full; echo $?` prints 0), so the warning is true, but a check that most tools would fail is not one to gate a build on yet. It runs on Linux only, since macOS has no `/dev/full`; run it in CI on a Linux runner, or in a container.
|
|
331
331
|
|
|
332
332
|
### color
|
|
333
333
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cliprobe",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.1",
|
|
4
4
|
"description": "Black-box test any command-line program for terminal-edge bugs: crashes on a closed pipe (| head), output lost on a full disk while exiting 0, color and control codes leaking into pipes, hangs waiting on stdin, broken Ctrl-C handling, child processes left running after SIGTERM, a terminal left broken after Ctrl-C, and control characters from file names reaching your terminal.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|