@velum-labs/routekit-cli-ui 0.18.6 → 1.0.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/index.d.ts CHANGED
@@ -1,20 +1,20 @@
1
1
  import type { Presenter } from "./presenter.js";
2
- export * from "./theme.js";
3
- export * from "./runtime.js";
4
2
  export * from "./format.js";
5
- export * from "./presenter.js";
6
- export { PlainPresenter, renderErrorPanelLines, renderKeyValueLines, renderTableLines } from "./plain.js";
7
- export { InkPresenter, mountInk, settleInk } from "./ink/presenter.js";
8
- export { select, multiselect, confirm, text, fuzzySelect, autocompleteText, BACK, done, note } from "./prompt.js";
9
- export type { SelectOption, Back } from "./prompt.js";
10
- export { fuzzyFilter, fuzzyMatch } from "./fuzzy.js";
11
3
  export type { FuzzyMatch, FuzzyResult } from "./fuzzy.js";
12
- export { runWizard } from "./wizard.js";
4
+ export { fuzzyFilter, fuzzyMatch } from "./fuzzy.js";
5
+ export { InkPresenter, mountInk, settleInk } from "./ink/presenter.js";
6
+ export { PlainPresenter, renderErrorPanelLines, renderKeyValueLines, renderTableLines } from "./plain.js";
7
+ export * from "./presenter.js";
8
+ export type { Back, SelectOption } from "./prompt.js";
9
+ export { autocompleteText, BACK, confirm, done, fuzzySelect, multiselect, note, select, text } from "./prompt.js";
10
+ export * from "./runtime.js";
11
+ export * from "./theme.js";
13
12
  export type { WizardStep } from "./wizard.js";
13
+ export { runWizard } from "./wizard.js";
14
14
  /**
15
15
  * The presenter for this invocation: Ink when attached to an interactive TTY,
16
- * plain line logs otherwise. `forceNonInteractive()` (the `--json` /
17
- * `--no-input` flags) flips this to plain for the rest of the process.
16
+ * plain line logs otherwise. Callers that own non-interactive modes pass
17
+ * `interactive: false` for that invocation rather than mutating process state.
18
18
  */
19
19
  export declare function createPresenter(options?: {
20
20
  interactive?: boolean;
package/dist/index.js CHANGED
@@ -9,19 +9,19 @@
9
9
  import { InkPresenter } from "./ink/presenter.js";
10
10
  import { PlainPresenter } from "./plain.js";
11
11
  import { isInteractive } from "./runtime.js";
12
- export * from "./theme.js";
13
- export * from "./runtime.js";
14
12
  export * from "./format.js";
15
- export * from "./presenter.js";
16
- export { PlainPresenter, renderErrorPanelLines, renderKeyValueLines, renderTableLines } from "./plain.js";
17
- export { InkPresenter, mountInk, settleInk } from "./ink/presenter.js";
18
- export { select, multiselect, confirm, text, fuzzySelect, autocompleteText, BACK, done, note } from "./prompt.js";
19
13
  export { fuzzyFilter, fuzzyMatch } from "./fuzzy.js";
14
+ export { InkPresenter, mountInk, settleInk } from "./ink/presenter.js";
15
+ export { PlainPresenter, renderErrorPanelLines, renderKeyValueLines, renderTableLines } from "./plain.js";
16
+ export * from "./presenter.js";
17
+ export { autocompleteText, BACK, confirm, done, fuzzySelect, multiselect, note, select, text } from "./prompt.js";
18
+ export * from "./runtime.js";
19
+ export * from "./theme.js";
20
20
  export { runWizard } from "./wizard.js";
21
21
  /**
22
22
  * The presenter for this invocation: Ink when attached to an interactive TTY,
23
- * plain line logs otherwise. `forceNonInteractive()` (the `--json` /
24
- * `--no-input` flags) flips this to plain for the rest of the process.
23
+ * plain line logs otherwise. Callers that own non-interactive modes pass
24
+ * `interactive: false` for that invocation rather than mutating process state.
25
25
  */
26
26
  export function createPresenter(options = {}) {
27
27
  const interactive = options.interactive ?? isInteractive();
package/dist/runtime.d.ts CHANGED
@@ -8,12 +8,6 @@
8
8
  export declare function isCI(): boolean;
9
9
  /** The stream all UI is written to (stderr; stdout is reserved for tool output). */
10
10
  export declare function uiStream(): NodeJS.WriteStream;
11
- /**
12
- * Force non-interactive mode for the rest of the process (the `--no-input` /
13
- * `--json` global flags). Also exports `ROUTEKIT_NO_TUI=1` so spawned children
14
- * inherit the same posture.
15
- */
16
- export declare function forceNonInteractive(): void;
17
11
  /** True when we should render rich, animated UI to `stream`. */
18
12
  export declare function isInteractive(stream?: NodeJS.WriteStream): boolean;
19
13
  /** True when we can read interactive keypresses (raw mode) from stdin. */
package/dist/runtime.js CHANGED
@@ -19,20 +19,8 @@ export function isCI() {
19
19
  export function uiStream() {
20
20
  return process.stderr;
21
21
  }
22
- let forcedNonInteractive = false;
23
- /**
24
- * Force non-interactive mode for the rest of the process (the `--no-input` /
25
- * `--json` global flags). Also exports `ROUTEKIT_NO_TUI=1` so spawned children
26
- * inherit the same posture.
27
- */
28
- export function forceNonInteractive() {
29
- forcedNonInteractive = true;
30
- process.env.ROUTEKIT_NO_TUI = "1";
31
- }
32
22
  /** True when we should render rich, animated UI to `stream`. */
33
23
  export function isInteractive(stream = uiStream()) {
34
- if (forcedNonInteractive)
35
- return false;
36
24
  if (process.env.ROUTEKIT_NO_TUI === "1")
37
25
  return false;
38
26
  if (isCI())
@@ -41,7 +29,5 @@ export function isInteractive(stream = uiStream()) {
41
29
  }
42
30
  /** True when we can read interactive keypresses (raw mode) from stdin. */
43
31
  export function canPromptInteractively() {
44
- if (forcedNonInteractive)
45
- return false;
46
32
  return Boolean(process.stdin.isTTY) && !isCI() && process.env.ROUTEKIT_NO_TUI !== "1";
47
33
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@velum-labs/routekit-cli-ui",
3
3
  "private": false,
4
- "version": "0.18.6",
4
+ "version": "1.0.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/velum-labs/routekit.git",