@oscharko-dev/test-intelligence 0.0.1-beta.0 → 0.1.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/cli.d.cts ADDED
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Command-line entry point for `@oscharko-dev/test-intelligence`.
4
+ *
5
+ * Dispatches the flat operator command surface that the standalone product
6
+ * exposes. Each command owns its argument parser, sink, and exit-code
7
+ * semantics; this module is a thin router that selects the handler, prints
8
+ * help, and converts handler-thrown operator errors into a sanitized
9
+ * `error: <message>` line on stderr with exit code 1.
10
+ */
11
+ interface CommandSink {
12
+ readonly stdout: (chunk: string) => void;
13
+ readonly stderr: (chunk: string) => void;
14
+ }
15
+ /**
16
+ * Top-level help text shown for `test-intelligence --help`, `-h`, `help`,
17
+ * and when invoked with no arguments. Lists every command in stable groups
18
+ * so operators can scan it without secondary lookups.
19
+ */
20
+ declare const TEST_INTELLIGENCE_TOP_LEVEL_HELP: string;
21
+ /**
22
+ * Dispatch a single CLI invocation to the matching command handler.
23
+ *
24
+ * Returns the exit code the host process should adopt. Operator errors are
25
+ * caught per-command and converted to exit code 1; other errors propagate to
26
+ * the caller so that crashes surface a stack trace under
27
+ * `--unhandled-rejection` mode.
28
+ */
29
+ declare const runCli: (argv: ReadonlyArray<string>, sink?: CommandSink) => Promise<number>;
30
+
31
+ export { TEST_INTELLIGENCE_TOP_LEVEL_HELP, runCli };
package/dist/cli.d.ts ADDED
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Command-line entry point for `@oscharko-dev/test-intelligence`.
4
+ *
5
+ * Dispatches the flat operator command surface that the standalone product
6
+ * exposes. Each command owns its argument parser, sink, and exit-code
7
+ * semantics; this module is a thin router that selects the handler, prints
8
+ * help, and converts handler-thrown operator errors into a sanitized
9
+ * `error: <message>` line on stderr with exit code 1.
10
+ */
11
+ interface CommandSink {
12
+ readonly stdout: (chunk: string) => void;
13
+ readonly stderr: (chunk: string) => void;
14
+ }
15
+ /**
16
+ * Top-level help text shown for `test-intelligence --help`, `-h`, `help`,
17
+ * and when invoked with no arguments. Lists every command in stable groups
18
+ * so operators can scan it without secondary lookups.
19
+ */
20
+ declare const TEST_INTELLIGENCE_TOP_LEVEL_HELP: string;
21
+ /**
22
+ * Dispatch a single CLI invocation to the matching command handler.
23
+ *
24
+ * Returns the exit code the host process should adopt. Operator errors are
25
+ * caught per-command and converted to exit code 1; other errors propagate to
26
+ * the caller so that crashes surface a stack trace under
27
+ * `--unhandled-rejection` mode.
28
+ */
29
+ declare const runCli: (argv: ReadonlyArray<string>, sink?: CommandSink) => Promise<number>;
30
+
31
+ export { TEST_INTELLIGENCE_TOP_LEVEL_HELP, runCli };