@noir-ai/cli 1.3.0-beta.5 → 1.4.0-beta.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.
- package/dist/bin.d.ts +30 -2
- package/dist/bin.js +870 -583
- package/dist/bin.js.map +1 -1
- package/dist/chunk-A5W2E3X2.js +33 -0
- package/dist/chunk-A5W2E3X2.js.map +1 -0
- package/dist/{chunk-J2Y3BOVK.js → chunk-SVFQGAOF.js} +32 -8
- package/dist/chunk-SVFQGAOF.js.map +1 -0
- package/dist/{chunk-3QMQXBII.js → chunk-YES5UCU5.js} +648 -40
- package/dist/chunk-YES5UCU5.js.map +1 -0
- package/dist/{create-VK7JX6IB.js → create-7ERBL42K.js} +31 -7
- package/dist/create-7ERBL42K.js.map +1 -0
- package/dist/index.d.ts +9 -2
- package/dist/index.js +5 -4
- package/dist/{output-De3lKbZq.d.ts → output-BNE9htEm.d.ts} +9 -0
- package/dist/sync-SCAF6Z5H.js +82 -0
- package/dist/sync-SCAF6Z5H.js.map +1 -0
- package/dist/tui/chunk-OMF7XZMN.js +99 -0
- package/dist/tui/chunk-OMF7XZMN.js.map +1 -0
- package/dist/tui/chunk-YNEBQJXA.js +1243 -0
- package/dist/tui/chunk-YNEBQJXA.js.map +1 -0
- package/dist/tui/create-U2YJH5QC.js +72 -0
- package/dist/tui/create-U2YJH5QC.js.map +1 -0
- package/dist/tui/index.js +2253 -0
- package/dist/tui/index.js.map +1 -0
- package/dist/tui/sync-VYRXCGK4.js +81 -0
- package/dist/tui/sync-VYRXCGK4.js.map +1 -0
- package/package.json +15 -11
- package/dist/chunk-3QMQXBII.js.map +0 -1
- package/dist/chunk-J2Y3BOVK.js.map +0 -1
- package/dist/chunk-OF4OO5W6.js +0 -190
- package/dist/chunk-OF4OO5W6.js.map +0 -1
- package/dist/create-VK7JX6IB.js.map +0 -1
- package/dist/sync-7XFGCRJN.js +0 -55
- package/dist/sync-7XFGCRJN.js.map +0 -1
package/dist/bin.d.ts
CHANGED
|
@@ -1,6 +1,34 @@
|
|
|
1
1
|
import { Command } from 'commander';
|
|
2
|
-
|
|
2
|
+
import { C as CliOptions } from './output-BNE9htEm.js';
|
|
3
|
+
export { E as EXIT, N as NoirCliError, f as fail, i as inferExitCode } from './output-BNE9htEm.js';
|
|
3
4
|
|
|
5
|
+
/** One entry in the {@link DEPRECATIONS} registry. */
|
|
6
|
+
interface DeprecationEntry {
|
|
7
|
+
/** Old command form as a path prefix, e.g. `['legacy-status']` or
|
|
8
|
+
* `['context','legacy']`. Matched against the dispatched command's path
|
|
9
|
+
* (program name `noir` stripped). */
|
|
10
|
+
readonly oldArgv: readonly string[];
|
|
11
|
+
/** Replacement command form, e.g. `['status']`. Shown in the redirect hint. */
|
|
12
|
+
readonly newArgv: readonly string[];
|
|
13
|
+
/** Version the deprecation started in, e.g. `'1.4.0'`. */
|
|
14
|
+
readonly since: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Deprecation registry. **Empty today** — no `noir` command is deprecated.
|
|
18
|
+
* When adding an entry, also update `docs/deprecation.md` (and, if the old
|
|
19
|
+
* form still routes, add a redirect). {@link emitDeprecationHintsFor} scans
|
|
20
|
+
* this on every dispatch and emits one `tip()` per match; `--no-tips` /
|
|
21
|
+
* `--json` suppress the hint (see {@link tip}).
|
|
22
|
+
*/
|
|
23
|
+
declare const DEPRECATIONS: DeprecationEntry[];
|
|
24
|
+
/**
|
|
25
|
+
* Emit one redirect hint per matching {@link DEPRECATIONS} entry for the
|
|
26
|
+
* dispatched command. Respects `--no-tips` and `--json` via {@link tip} (a CI
|
|
27
|
+
* run's stderr stays quiet and its stdout envelope stays pristine). Exported so
|
|
28
|
+
* tests can drive it with a temporarily-populated registry without going
|
|
29
|
+
* through commander.
|
|
30
|
+
*/
|
|
31
|
+
declare function emitDeprecationHintsFor(cmd: Command, opts: CliOptions): void;
|
|
4
32
|
declare function createProgram(): Command;
|
|
5
33
|
/** Singleton program used by the bin entry (`run`) and re-exported for convenience. */
|
|
6
34
|
declare const program: Command;
|
|
@@ -11,4 +39,4 @@ declare const program: Command;
|
|
|
11
39
|
*/
|
|
12
40
|
declare function run(argv?: readonly string[]): Promise<number>;
|
|
13
41
|
|
|
14
|
-
export { createProgram, program, run };
|
|
42
|
+
export { DEPRECATIONS, type DeprecationEntry, createProgram, emitDeprecationHintsFor, program, run };
|