@noir-ai/cli 1.14.0 → 1.15.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 +2 -2
- package/dist/bin.d.ts +10 -3
- package/dist/bin.js +1240 -365
- package/dist/bin.js.map +1 -1
- package/dist/index.d.ts +39 -12
- package/dist/index.js +1258 -383
- package/dist/index.js.map +1 -1
- package/dist/{output-BNE9htEm.d.ts → output-2T2lGR7a.d.ts} +3 -3
- package/dist/tui/{chunk-6LO4LXEH.js → chunk-5KWETEMF.js} +1191 -352
- package/dist/tui/chunk-5KWETEMF.js.map +1 -0
- package/dist/tui/{chunk-ESZTOQEC.js → chunk-KETMM3BA.js} +25 -3
- package/dist/tui/chunk-KETMM3BA.js.map +1 -0
- package/dist/tui/{chunk-2RK6AFZQ.js → chunk-TPNJEN4B.js} +2 -2
- package/dist/tui/chunk-TPNJEN4B.js.map +1 -0
- package/dist/tui/{create-FD4E626Z.js → create-6KDIFPUL.js} +10 -6
- package/dist/tui/create-6KDIFPUL.js.map +1 -0
- package/dist/tui/index.js +994 -120
- package/dist/tui/index.js.map +1 -1
- package/dist/tui/{install-YGTUSLRO.js → install-KA35ONQP.js} +2 -2
- package/dist/tui/{sync-N633SQSS.js → sync-AII5WCRO.js} +8 -4
- package/dist/tui/sync-AII5WCRO.js.map +1 -0
- package/dist/tui/{update-LET5BWOU.js → update-XGKJ4KBR.js} +3 -3
- package/package.json +11 -11
- package/dist/tui/chunk-2RK6AFZQ.js.map +0 -1
- package/dist/tui/chunk-6LO4LXEH.js.map +0 -1
- package/dist/tui/chunk-ESZTOQEC.js.map +0 -1
- package/dist/tui/create-FD4E626Z.js.map +0 -1
- package/dist/tui/sync-N633SQSS.js.map +0 -1
- /package/dist/tui/{install-YGTUSLRO.js.map → install-KA35ONQP.js.map} +0 -0
- /package/dist/tui/{update-LET5BWOU.js.map → update-XGKJ4KBR.js.map} +0 -0
|
@@ -7,7 +7,7 @@ declare const EXIT: {
|
|
|
7
7
|
readonly CANCELLED: 5;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
|
-
* Application-level CLI error carrying
|
|
10
|
+
* Application-level CLI error carrying a contracted exit code. Thrown directly by
|
|
11
11
|
* bin.ts for legacy usage paths; `fail()` is the ergonomic throw helper.
|
|
12
12
|
* `inferExitCode` / `handleError` map it onto `process.exitCode`.
|
|
13
13
|
*/
|
|
@@ -34,14 +34,14 @@ interface CliOptions {
|
|
|
34
34
|
readonly noTips?: boolean;
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
|
-
* Write a diagnostic and throw a `CommanderError` carrying the
|
|
37
|
+
* Write a diagnostic and throw a `CommanderError` carrying the given exit code,
|
|
38
38
|
* so bin.ts's `exitOverride` + `handleError` surface it as `process.exitCode`
|
|
39
39
|
* without any mid-action `process.exit`. Under `--json` the message becomes a
|
|
40
40
|
* structured `{ok:false,error}` envelope on STDOUT; otherwise plain text on
|
|
41
41
|
* STDERR. Always throws (`never`).
|
|
42
42
|
*/
|
|
43
43
|
declare function fail(exitCode: number, message: string, opts?: CliOptions): never;
|
|
44
|
-
/** Map any thrown value onto the
|
|
44
|
+
/** Map any thrown value onto the CLI exit-code contract. */
|
|
45
45
|
declare function inferExitCode(err: unknown): number;
|
|
46
46
|
|
|
47
47
|
export { type CliOptions as C, EXIT as E, NoirCliError as N, fail as f, inferExitCode as i };
|