cliprobe 1.1.0 → 1.1.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.
Files changed (2) hide show
  1. package/README.md +20 -18
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -27,51 +27,53 @@
27
27
  ---
28
28
 
29
29
  ```sh
30
- npx cliprobe -- esbuild
30
+ npx cliprobe -- tsx
31
31
  ```
32
32
 
33
33
  ```
34
- cliprobe 1.0.0: closed-pipe, color, pipe-escapes, stdin, ctrl-c, sigterm, restore, control-chars checks for esbuild
34
+ cliprobe 1.1.0: closed-pipe, color, pipe-escapes, stdin, ctrl-c, sigterm, restore, control-chars checks for tsx
35
35
 
36
36
  closed-pipe
37
- FAIL esbuild --version crashed when stdout was closed (exit 0 -> 1)
38
- Error: Command failed: .../esbuild --version (at node_modules/esbuild/bin/esbuild:222:28)
39
- FAIL esbuild --help crashed when stdout was closed (exit 0 -> 1)
40
- Error: Command failed: .../esbuild --help (at node_modules/esbuild/bin/esbuild:222:28)
37
+ FAIL tsx --version crashed when stdout was closed (exit 0 -> 1)
38
+ Error: write EPIPE (at node_modules/tsx/dist/cli.mjs:53:36962)
39
+ PASS tsx --help exited quietly
41
40
 
42
41
  color
43
- PASS esbuild --version no color in a pipe or in a terminal
44
- PASS esbuild --help colors only in a terminal, and NO_COLOR turns it off
42
+ PASS tsx --version no color in a pipe or in a terminal
43
+ FAIL tsx --help printed color codes into a pipe
44
+ stdout line 5: \x1b[1mUsage:\x1b[22m
45
45
 
46
46
  pipe-escapes
47
- PASS esbuild --version no cursor, erase, hyperlink, title or redraw codes in a pipe
48
- PASS esbuild --help no cursor, erase, hyperlink, title or redraw codes in a pipe
47
+ PASS tsx --version no cursor, erase, hyperlink, title or redraw codes in a pipe
48
+ PASS tsx --help no cursor, erase, hyperlink, title or redraw codes in a pipe
49
49
 
50
50
  stdin
51
- PASS esbuild --version finished without waiting for stdin
52
- PASS esbuild --help finished without waiting for stdin
51
+ PASS tsx --version finished without waiting for stdin
52
+ PASS tsx --help finished without waiting for stdin
53
53
 
54
54
  ctrl-c
55
- SKIP esbuild needs probe args that keep it running, such as a watch or serve command, or --bare
55
+ SKIP tsx needs probe args that keep it running, such as a watch or serve command, or --bare
56
56
 
57
57
  sigterm
58
- SKIP esbuild needs probe args that keep it running, such as a watch or serve command, or --bare
58
+ SKIP tsx needs probe args that keep it running, such as a watch or serve command, or --bare
59
59
 
60
60
  restore
61
- PASS esbuild --version left no terminal mode switched on when it exited
62
- PASS esbuild --help left no terminal mode switched on when it exited
61
+ PASS tsx --version left no terminal mode switched on when it exited
62
+ PASS tsx --help left no terminal mode switched on when it exited
63
63
 
64
64
  control-chars
65
- SKIP esbuild no {fixture} in the arguments; put it where the command takes a path, e.g. ls {fixture}
65
+ SKIP tsx no {fixture} in the arguments; put it where the command takes a path, e.g. ls {fixture}
66
66
 
67
67
  2 failed, 0 warned, 8 passed, 3 skipped
68
68
  ```
69
69
 
70
+ <sub>tsx 4.23.15, run offline in a container in November 2026.</sub>
71
+
70
72
  ## Why cliprobe?
71
73
 
72
74
  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.
73
75
 
74
- 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`. 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/`.)
76
+ 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 browserslist have fixed it; the other seven still crashed when re-checked at their November 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/`.)
75
77
 
76
78
  The other checks cover the rest of what goes wrong between a program and the thing reading it: 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.
77
79
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cliprobe",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Black-box test any command-line program for terminal-edge bugs: crashes on a closed pipe (| head), 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": {