cliprobe 1.9.0 → 1.11.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/README.md +83 -7
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +26 -3050
- package/dist/index.d.ts +339 -0
- package/dist/index.js +108 -0
- package/dist/report-6mELXFtT.js +3308 -0
- package/package.json +11 -3
- package/schema.json +67 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cliprobe",
|
|
3
|
-
"version": "1.
|
|
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.",
|
|
3
|
+
"version": "1.11.0",
|
|
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, output cut short when a pipe is read slowly, 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": {
|
|
7
7
|
"cliprobe": "dist/cli.js"
|
|
@@ -11,9 +11,14 @@
|
|
|
11
11
|
"schema.json"
|
|
12
12
|
],
|
|
13
13
|
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"default": "./dist/index.js"
|
|
17
|
+
},
|
|
14
18
|
"./schema.json": "./schema.json",
|
|
15
19
|
"./package.json": "./package.json"
|
|
16
20
|
},
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
17
22
|
"scripts": {
|
|
18
23
|
"build": "tsdown",
|
|
19
24
|
"dev": "node src/cli/main.ts",
|
|
@@ -51,7 +56,10 @@
|
|
|
51
56
|
"stdin",
|
|
52
57
|
"hang",
|
|
53
58
|
"cursor",
|
|
54
|
-
"tui"
|
|
59
|
+
"tui",
|
|
60
|
+
"api",
|
|
61
|
+
"vitest",
|
|
62
|
+
"jest"
|
|
55
63
|
],
|
|
56
64
|
"author": {
|
|
57
65
|
"name": "Khaled Saeed",
|
package/schema.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://unpkg.com/cliprobe@1/schema.json",
|
|
4
4
|
"title": "cliprobe JSON report",
|
|
5
|
-
"description": "Output of cliprobe --format json, schemaVersion 1. Within 1.x, fields are only added, never removed, renamed or retyped.",
|
|
5
|
+
"description": "Output of cliprobe --format json and the report that probe() returns, schemaVersion 1. Within 1.x, fields are only added, never removed, renamed or retyped.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"required": ["tool", "schemaVersion", "version", "command", "checks", "summary", "results"],
|
|
8
8
|
"properties": {
|
|
@@ -74,6 +74,7 @@
|
|
|
74
74
|
"enum": [
|
|
75
75
|
"closed-pipe",
|
|
76
76
|
"write-error",
|
|
77
|
+
"slow-pipe",
|
|
77
78
|
"color",
|
|
78
79
|
"pipe-escapes",
|
|
79
80
|
"stdin",
|
|
@@ -181,6 +182,22 @@
|
|
|
181
182
|
}
|
|
182
183
|
}
|
|
183
184
|
},
|
|
185
|
+
{
|
|
186
|
+
"if": {
|
|
187
|
+
"properties": {
|
|
188
|
+
"check": {
|
|
189
|
+
"const": "slow-pipe"
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"then": {
|
|
194
|
+
"properties": {
|
|
195
|
+
"details": {
|
|
196
|
+
"$ref": "#/$defs/details.slow-pipe"
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
},
|
|
184
201
|
{
|
|
185
202
|
"if": {
|
|
186
203
|
"properties": {
|
|
@@ -423,6 +440,55 @@
|
|
|
423
440
|
}
|
|
424
441
|
}
|
|
425
442
|
},
|
|
443
|
+
"details.slow-pipe": {
|
|
444
|
+
"type": "object",
|
|
445
|
+
"description": "A run with stdout in a file, where no write waits, then a run with stdout in a pipe that nobody reads until the program exits or half a second passes.",
|
|
446
|
+
"required": ["baseline", "slow"],
|
|
447
|
+
"properties": {
|
|
448
|
+
"baseline": {
|
|
449
|
+
"type": "object",
|
|
450
|
+
"description": "The run into a file: all of the output.",
|
|
451
|
+
"required": ["exitCode", "signal", "stdoutBytes"],
|
|
452
|
+
"properties": {
|
|
453
|
+
"exitCode": {
|
|
454
|
+
"type": ["integer", "null"],
|
|
455
|
+
"description": "Exit code; null if it was killed by a signal or never ran."
|
|
456
|
+
},
|
|
457
|
+
"signal": {
|
|
458
|
+
"type": ["string", "null"],
|
|
459
|
+
"description": "Signal that ended it; null if it exited."
|
|
460
|
+
},
|
|
461
|
+
"stdoutBytes": {
|
|
462
|
+
"type": "integer",
|
|
463
|
+
"minimum": 0
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
"slow": {
|
|
468
|
+
"type": ["object", "null"],
|
|
469
|
+
"description": "The run into a slowly read pipe; null when it didn't run (no output, less than 64 KiB, more than 64 MiB, or a program that keeps running).",
|
|
470
|
+
"required": ["exitCode", "signal", "timedOut", "stdoutBytes"],
|
|
471
|
+
"properties": {
|
|
472
|
+
"exitCode": {
|
|
473
|
+
"type": ["integer", "null"],
|
|
474
|
+
"description": "Exit code; null if it was killed by a signal or never ran."
|
|
475
|
+
},
|
|
476
|
+
"signal": {
|
|
477
|
+
"type": ["string", "null"],
|
|
478
|
+
"description": "Signal that ended it; null if it exited."
|
|
479
|
+
},
|
|
480
|
+
"timedOut": {
|
|
481
|
+
"type": "boolean"
|
|
482
|
+
},
|
|
483
|
+
"stdoutBytes": {
|
|
484
|
+
"type": "integer",
|
|
485
|
+
"minimum": 0,
|
|
486
|
+
"description": "Bytes that arrived through the pipe; fewer than the baseline's when output was lost."
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
},
|
|
426
492
|
"details.color": {
|
|
427
493
|
"type": "object",
|
|
428
494
|
"description": "Runs into a pipe, under a terminal and under a terminal with NO_COLOR=1; null for a run that was not needed.",
|