@crewx/cli 0.9.0-rc.106 → 0.9.0-rc.107
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/main.js +11 -1
- package/package.json +13 -13
package/dist/main.js
CHANGED
|
@@ -366,9 +366,19 @@ Global Options:
|
|
|
366
366
|
--version, -v Show version
|
|
367
367
|
`.trim());
|
|
368
368
|
}
|
|
369
|
+
function getProcessExitCode(error) {
|
|
370
|
+
if (error instanceof parse_common_flags_1.UnknownOptionError)
|
|
371
|
+
return 2;
|
|
372
|
+
if (typeof error === 'object' && error !== null && 'exitCode' in error) {
|
|
373
|
+
const exitCode = error.exitCode;
|
|
374
|
+
if (typeof exitCode === 'number')
|
|
375
|
+
return exitCode;
|
|
376
|
+
}
|
|
377
|
+
return 1;
|
|
378
|
+
}
|
|
369
379
|
const emitState = (0, emit_trailer_1.createDelegationEmitState)();
|
|
370
380
|
main(emitState).catch((err) => {
|
|
371
381
|
console.error(err instanceof Error ? err.message : String(err));
|
|
372
382
|
(0, emit_trailer_1.emitDelegationResult)({ command: process.argv[2], isError: true, state: emitState });
|
|
373
|
-
process.exit(err
|
|
383
|
+
process.exit(getProcessExitCode(err));
|
|
374
384
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crewx/cli",
|
|
3
|
-
"version": "0.9.0-rc.
|
|
3
|
+
"version": "0.9.0-rc.107",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20.19.0"
|
|
@@ -25,19 +25,19 @@
|
|
|
25
25
|
"better-sqlite3": "*",
|
|
26
26
|
"dotenv": "17.2.3",
|
|
27
27
|
"isomorphic-git": "1.37.1",
|
|
28
|
-
"@crewx/
|
|
29
|
-
"@crewx/
|
|
30
|
-
"@crewx/
|
|
31
|
-
"@crewx/
|
|
32
|
-
"@crewx/
|
|
33
|
-
"@crewx/wbs": "0.1.10-rc.
|
|
34
|
-
"@crewx/
|
|
35
|
-
"@crewx/
|
|
36
|
-
"@crewx/wi": "0.1.10-rc.
|
|
28
|
+
"@crewx/sdk": "0.9.0-rc.107",
|
|
29
|
+
"@crewx/memory": "0.1.23-rc.124",
|
|
30
|
+
"@crewx/knowledge-core": "0.1.17-rc.117",
|
|
31
|
+
"@crewx/doc": "0.1.9-rc.100",
|
|
32
|
+
"@crewx/search": "0.1.10-rc.103",
|
|
33
|
+
"@crewx/wbs": "0.1.10-rc.133",
|
|
34
|
+
"@crewx/cron": "0.1.10-rc.142",
|
|
35
|
+
"@crewx/workflow": "0.3.22-rc.153",
|
|
36
|
+
"@crewx/wi": "0.1.10-rc.127",
|
|
37
37
|
"@crewx/skill": "0.1.20",
|
|
38
|
-
"@crewx/chromex": "0.1.0-rc.
|
|
39
|
-
"@crewx/notify": "0.1.0-rc.
|
|
40
|
-
"@crewx/shared": "0.0.6"
|
|
38
|
+
"@crewx/chromex": "0.1.0-rc.140",
|
|
39
|
+
"@crewx/notify": "0.1.0-rc.78",
|
|
40
|
+
"@crewx/shared": "0.0.6-rc.22"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/better-sqlite3": "*",
|