@kaynooo/cli-wait 0.6.1 → 0.7.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/dist/cli.js +1 -1
- package/dist/slot-cli.js +1 -1
- package/package.json +3 -2
package/dist/cli.js
CHANGED
|
@@ -1052,7 +1052,7 @@ function reportThrown(prefix, error, redact = (text) => text, json = false) {
|
|
|
1052
1052
|
const help = error instanceof UsageError ? `run ${prefix} --help for its options` : undefined;
|
|
1053
1053
|
const named = error instanceof Error && !(error instanceof Exit) && error.name !== "Error" ? `${error.name}: ${error.message}` : undefined;
|
|
1054
1054
|
const cause = error instanceof Error && error.cause instanceof Error ? redact(error.cause.message) : undefined;
|
|
1055
|
-
if (error instanceof
|
|
1055
|
+
if (error instanceof Exit && error.code === 2)
|
|
1056
1056
|
noteUsageError(error.message);
|
|
1057
1057
|
const report = json ? printJsonError : (message, hint, causeText) => printError(prefix, message, hint, causeText);
|
|
1058
1058
|
report(redact(named ?? (error instanceof Error ? error.message : String(error))), error instanceof Exit ? error.hint ?? help : undefined, cause);
|
package/dist/slot-cli.js
CHANGED
|
@@ -1051,7 +1051,7 @@ function reportThrown(prefix, error, redact = (text) => text, json = false) {
|
|
|
1051
1051
|
const help = error instanceof UsageError ? `run ${prefix} --help for its options` : undefined;
|
|
1052
1052
|
const named = error instanceof Error && !(error instanceof Exit) && error.name !== "Error" ? `${error.name}: ${error.message}` : undefined;
|
|
1053
1053
|
const cause = error instanceof Error && error.cause instanceof Error ? redact(error.cause.message) : undefined;
|
|
1054
|
-
if (error instanceof
|
|
1054
|
+
if (error instanceof Exit && error.code === 2)
|
|
1055
1055
|
noteUsageError(error.message);
|
|
1056
1056
|
const report = json ? printJsonError : (message, hint, causeText) => printError(prefix, message, hint, causeText);
|
|
1057
1057
|
report(redact(named ?? (error instanceof Error ? error.message : String(error))), error instanceof Exit ? error.hint ?? help : undefined, cause);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaynooo/cli-wait",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.7.0",
|
|
5
5
|
"description": "waitfor and slot: waits for a log line, a listening port or a URL answering, and queues heavy commands behind machine-wide slots and named locks, for Claude Code, instead of sleep and polling loops.",
|
|
6
6
|
"author": "Kaynooo <contact@kaynooo.fr>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -34,9 +34,10 @@
|
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "$npm_execpath build src/cli.ts src/slot-cli.ts --target bun --outdir dist",
|
|
37
|
+
"slot": "$npm_execpath src/slot-cli.ts",
|
|
37
38
|
"waitfor": "$npm_execpath src/cli.ts"
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|
|
40
|
-
"@kaynooo/cli-kit": "0.21.
|
|
41
|
+
"@kaynooo/cli-kit": "0.21.1"
|
|
41
42
|
}
|
|
42
43
|
}
|