@reliverse/rempts 1.7.52 → 1.7.54

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.
Files changed (105) hide show
  1. package/bin/libs/animate/animate-mod.d.ts +14 -0
  2. package/bin/libs/animate/animate-mod.js +60 -0
  3. package/bin/libs/anykey/anykey-mod.d.ts +12 -0
  4. package/bin/libs/anykey/anykey-mod.js +125 -0
  5. package/bin/libs/cancel/cancel.d.ts +45 -0
  6. package/bin/libs/cancel/cancel.js +72 -0
  7. package/bin/libs/confirm/confirm-alias.d.ts +2 -0
  8. package/bin/libs/confirm/confirm-alias.js +2 -0
  9. package/bin/libs/confirm/confirm-mod.d.ts +5 -0
  10. package/bin/libs/confirm/confirm-mod.js +179 -0
  11. package/bin/libs/date/date.d.ts +2 -0
  12. package/bin/libs/date/date.js +214 -0
  13. package/bin/libs/editor/editor-mod.d.ts +25 -0
  14. package/bin/libs/editor/editor-mod.js +1133 -0
  15. package/bin/libs/figures/figures-mod.d.ts +461 -0
  16. package/bin/libs/figures/figures-mod.js +285 -0
  17. package/bin/libs/group/group-mod.d.ts +33 -0
  18. package/bin/libs/group/group-mod.js +89 -0
  19. package/bin/libs/input/input-alias.d.ts +5 -0
  20. package/bin/libs/input/input-alias.js +4 -0
  21. package/bin/libs/input/input-mod.d.ts +16 -0
  22. package/bin/libs/input/input-mod.js +372 -0
  23. package/bin/libs/intro/intro-alias.d.ts +3 -0
  24. package/bin/libs/intro/intro-alias.js +3 -0
  25. package/bin/libs/intro/intro-mod.d.ts +20 -0
  26. package/bin/libs/intro/intro-mod.js +77 -0
  27. package/bin/libs/launcher/command-runner.d.ts +31 -0
  28. package/bin/libs/launcher/command-runner.js +229 -0
  29. package/bin/libs/launcher/launcher-alias.d.ts +2 -0
  30. package/bin/libs/launcher/launcher-alias.js +2 -0
  31. package/bin/libs/launcher/launcher-mod.d.ts +66 -0
  32. package/bin/libs/launcher/launcher-mod.js +983 -0
  33. package/bin/libs/launcher/launcher-types.d.ts +176 -0
  34. package/bin/libs/launcher/launcher-types.js +0 -0
  35. package/bin/libs/log/log-alias.d.ts +1 -0
  36. package/bin/libs/log/log-alias.js +2 -0
  37. package/bin/libs/msg-fmt/colors.d.ts +30 -0
  38. package/bin/libs/msg-fmt/colors.js +42 -0
  39. package/bin/libs/msg-fmt/logger.d.ts +17 -0
  40. package/bin/libs/msg-fmt/logger.js +103 -0
  41. package/bin/libs/msg-fmt/mapping.d.ts +3 -0
  42. package/bin/libs/msg-fmt/mapping.js +41 -0
  43. package/bin/libs/msg-fmt/messages.d.ts +35 -0
  44. package/bin/libs/msg-fmt/messages.js +305 -0
  45. package/bin/libs/msg-fmt/terminal.d.ts +15 -0
  46. package/bin/libs/msg-fmt/terminal.js +60 -0
  47. package/bin/libs/msg-fmt/variants.d.ts +11 -0
  48. package/bin/libs/msg-fmt/variants.js +52 -0
  49. package/bin/libs/multiselect/multiselect-alias.d.ts +2 -0
  50. package/bin/libs/multiselect/multiselect-alias.js +2 -0
  51. package/bin/libs/multiselect/multiselect-prompt.d.ts +2 -0
  52. package/bin/libs/multiselect/multiselect-prompt.js +340 -0
  53. package/bin/libs/next-steps/next-steps.d.ts +13 -0
  54. package/bin/libs/next-steps/next-steps.js +24 -0
  55. package/bin/libs/number/number-mod.d.ts +28 -0
  56. package/bin/libs/number/number-mod.js +194 -0
  57. package/bin/libs/outro/outro-alias.d.ts +3 -0
  58. package/bin/libs/outro/outro-alias.js +3 -0
  59. package/bin/libs/outro/outro-mod.d.ts +8 -0
  60. package/bin/libs/outro/outro-mod.js +55 -0
  61. package/bin/libs/reliarg/reliarg-mod.d.ts +76 -0
  62. package/bin/libs/reliarg/reliarg-mod.js +276 -0
  63. package/bin/libs/results/results.d.ts +7 -0
  64. package/bin/libs/results/results.js +27 -0
  65. package/bin/libs/select/nummultiselect-prompt.d.ts +6 -0
  66. package/bin/libs/select/nummultiselect-prompt.js +101 -0
  67. package/bin/libs/select/numselect-prompt.d.ts +7 -0
  68. package/bin/libs/select/numselect-prompt.js +111 -0
  69. package/bin/libs/select/select-alias.d.ts +9 -0
  70. package/bin/libs/select/select-alias.js +9 -0
  71. package/bin/libs/select/select-prompt.d.ts +5 -0
  72. package/bin/libs/select/select-prompt.js +308 -0
  73. package/bin/libs/select/toggle-prompt.d.ts +5 -0
  74. package/bin/libs/select/toggle-prompt.js +207 -0
  75. package/bin/libs/spinner/spinner-alias.d.ts +2 -0
  76. package/bin/libs/spinner/spinner-alias.js +2 -0
  77. package/bin/libs/spinner/spinner-mod.d.ts +106 -0
  78. package/bin/libs/spinner/spinner-mod.js +255 -0
  79. package/bin/libs/task/progress.d.ts +2 -0
  80. package/bin/libs/task/progress.js +57 -0
  81. package/bin/libs/task/task-spin.d.ts +15 -0
  82. package/bin/libs/task/task-spin.js +106 -0
  83. package/bin/libs/utils/colorize.d.ts +2 -0
  84. package/bin/libs/utils/colorize.js +122 -0
  85. package/bin/libs/utils/errors.d.ts +1 -0
  86. package/bin/libs/utils/errors.js +17 -0
  87. package/bin/libs/utils/prevent.d.ts +8 -0
  88. package/bin/libs/utils/prevent.js +62 -0
  89. package/bin/libs/utils/prompt-end.d.ts +8 -0
  90. package/bin/libs/utils/prompt-end.js +34 -0
  91. package/bin/libs/utils/stream-text.d.ts +18 -0
  92. package/bin/libs/utils/stream-text.js +138 -0
  93. package/bin/libs/utils/system.d.ts +6 -0
  94. package/bin/libs/utils/system.js +7 -0
  95. package/bin/libs/utils/validate.d.ts +21 -0
  96. package/bin/libs/utils/validate.js +17 -0
  97. package/bin/libs/visual/visual-mod.d.ts +6 -0
  98. package/bin/libs/visual/visual-mod.js +13 -0
  99. package/bin/mod.d.ts +53 -0
  100. package/bin/mod.js +107 -0
  101. package/bin/types.d.ts +371 -0
  102. package/bin/types.js +0 -0
  103. package/package.json +34 -59
  104. package/dist-npm/bin/mod.d.mts +0 -1753
  105. package/dist-npm/bin/mod.mjs +0 -6779
@@ -0,0 +1,34 @@
1
+ import { re } from "@reliverse/relico";
2
+ import { relinka } from "@reliverse/relinka";
3
+ import { msg, symbols } from "../msg-fmt/messages.js";
4
+ import { getExactTerminalWidth } from "../msg-fmt/terminal.js";
5
+ export async function completePrompt(prompt, isCtrlC, _endTitle = "", _endTitleColor = "dim", _titleTypography = "none", _titleVariant, _border = true, borderColor = "dim", action, value) {
6
+ if (action && value) {
7
+ await action();
8
+ }
9
+ if (prompt === "input") {
10
+ renderEndLineInput();
11
+ return value ?? false;
12
+ }
13
+ if (isCtrlC) {
14
+ renderEndLine();
15
+ } else {
16
+ msg({
17
+ type: "M_BAR",
18
+ borderColor
19
+ });
20
+ }
21
+ return value ?? false;
22
+ }
23
+ export function renderEndLine() {
24
+ const lineLength = getExactTerminalWidth() - 6;
25
+ relinka("null", re.dim(symbols.middle));
26
+ relinka("null", re.dim(`${symbols.end}${symbols.line.repeat(lineLength)}\u22B1`));
27
+ relinka("null", "");
28
+ }
29
+ export function renderEndLineInput() {
30
+ const lineLength = getExactTerminalWidth() - 6;
31
+ relinka("null", "");
32
+ relinka("null", re.dim(`${symbols.end}${symbols.line.repeat(lineLength)}\u22B1`));
33
+ relinka("null", "");
34
+ }
@@ -0,0 +1,18 @@
1
+ import type { BorderColorName, StreamTextOptions } from "../../types";
2
+ /**
3
+ * Simulates streaming text output in the console, character by character
4
+ */
5
+ export declare function streamText({ text, delay, showCursor, color, newline, clearLine, onProgress, }: StreamTextOptions): Promise<void>;
6
+ /**
7
+ * Simulates streaming text output in a message box
8
+ */
9
+ export declare function streamTextBox({ text, delay, color, borderColor, }: Omit<StreamTextOptions, "showCursor" | "newline" | "clearLine"> & {
10
+ borderColor?: BorderColorName;
11
+ }): Promise<void>;
12
+ /**
13
+ * Simulates streaming text output with a loading spinner using ora
14
+ */
15
+ export declare function streamTextWithSpinner({ text, delay, color, spinnerFrames, spinnerDelay, }: StreamTextOptions & {
16
+ spinnerFrames?: string[];
17
+ spinnerDelay?: number;
18
+ }): Promise<void>;
@@ -0,0 +1,138 @@
1
+ import { stdout } from "node:process";
2
+ import { re } from "@reliverse/relico";
3
+ import ora from "ora";
4
+ import { cursor } from "sisteransi";
5
+ import terminalSize from "terminal-size";
6
+ import wrapAnsi from "wrap-ansi";
7
+ import { toBaseColor } from "../msg-fmt/colors.js";
8
+ import { colorMap } from "../msg-fmt/mapping.js";
9
+ import { msg } from "../msg-fmt/messages.js";
10
+ function getTerminalWidth() {
11
+ return terminalSize().columns;
12
+ }
13
+ let isStartOfLine = true;
14
+ let isFirstLine = true;
15
+ function stripAnsi(text) {
16
+ return text.replace(/\x1b\[[0-9;]*[a-zA-Z]/g, "");
17
+ }
18
+ function extractAnsi(text) {
19
+ return text.match(/\x1b\[[0-9;]*[a-zA-Z]/g) || [];
20
+ }
21
+ function wrapWithBar(text, isFirst, color) {
22
+ const prefix = isFirst ? re.green("\u25C6") : re.dim("\u2502");
23
+ const ansiCodes = extractAnsi(text);
24
+ const cleanText = stripAnsi(text);
25
+ const coloredText = color ? colorMap[color](cleanText) : re.dim(cleanText);
26
+ const finalText = ansiCodes.length > 0 ? ansiCodes.join("") + coloredText : coloredText;
27
+ return `${prefix} ${finalText}`;
28
+ }
29
+ function wrapText(text) {
30
+ const width = getTerminalWidth();
31
+ return wrapAnsi(text, width - 4, { hard: false, trim: true });
32
+ }
33
+ export async function streamText({
34
+ text,
35
+ delay = 50,
36
+ showCursor = false,
37
+ color,
38
+ newline = true,
39
+ clearLine = false,
40
+ onProgress
41
+ }) {
42
+ if (!showCursor) {
43
+ stdout.write(cursor.hide);
44
+ }
45
+ if (clearLine) {
46
+ stdout.write("\r\x1B[K");
47
+ }
48
+ const wrappedText = wrapText(text);
49
+ isFirstLine = true;
50
+ let buffer = "";
51
+ for (const char of wrappedText) {
52
+ if (char === "\n") {
53
+ if (buffer) {
54
+ const output = isStartOfLine ? wrapWithBar(buffer, isFirstLine, color) : color ? colorMap[color](buffer) : re.dim(buffer);
55
+ stdout.write(output);
56
+ buffer = "";
57
+ }
58
+ stdout.write(char);
59
+ isStartOfLine = true;
60
+ isFirstLine = false;
61
+ continue;
62
+ }
63
+ buffer += char;
64
+ if (!char.includes("\x1B[") && buffer) {
65
+ const output = isStartOfLine ? wrapWithBar(buffer, isFirstLine, color) : color ? colorMap[color](buffer) : re.dim(buffer);
66
+ stdout.write(output);
67
+ await new Promise((resolve) => setTimeout(resolve, delay));
68
+ isStartOfLine = false;
69
+ buffer = "";
70
+ if (onProgress) {
71
+ onProgress(output);
72
+ }
73
+ }
74
+ }
75
+ if (buffer) {
76
+ const output = isStartOfLine ? wrapWithBar(buffer, isFirstLine, color) : color ? colorMap[color](buffer) : re.dim(buffer);
77
+ stdout.write(output);
78
+ if (onProgress) {
79
+ onProgress(output);
80
+ }
81
+ }
82
+ if (newline) {
83
+ stdout.write("\n");
84
+ }
85
+ if (!showCursor) {
86
+ stdout.write(cursor.show);
87
+ }
88
+ }
89
+ export async function streamTextBox({
90
+ text,
91
+ delay = 50,
92
+ color,
93
+ borderColor = "dim"
94
+ }) {
95
+ stdout.write(cursor.hide);
96
+ msg({
97
+ type: "M_START",
98
+ title: "",
99
+ borderColor
100
+ });
101
+ await streamText({
102
+ text,
103
+ delay,
104
+ showCursor: false,
105
+ ...color !== void 0 && { color },
106
+ newline: false,
107
+ clearLine: false
108
+ });
109
+ msg({
110
+ type: "M_END",
111
+ borderColor
112
+ });
113
+ stdout.write(cursor.show);
114
+ }
115
+ export async function streamTextWithSpinner({
116
+ text,
117
+ delay = 50,
118
+ color = "cyan",
119
+ spinnerFrames,
120
+ spinnerDelay
121
+ }) {
122
+ let currentText = "";
123
+ const baseColor = toBaseColor(color);
124
+ const spinner = ora({
125
+ text: currentText,
126
+ ...baseColor !== void 0 && { color: baseColor },
127
+ spinner: spinnerFrames ? {
128
+ frames: spinnerFrames,
129
+ ...spinnerDelay !== void 0 && { interval: spinnerDelay }
130
+ } : "dots"
131
+ }).start();
132
+ for (const char of text) {
133
+ currentText += char;
134
+ spinner.text = color ? colorMap[color](currentText) : currentText;
135
+ await new Promise((resolve) => setTimeout(resolve, delay));
136
+ }
137
+ spinner.stop();
138
+ }
@@ -0,0 +1,6 @@
1
+ export declare const pm: import("@reliverse/runtime").PkgManagerInfo;
2
+ export declare const reliversePrompts: {
3
+ name: string;
4
+ version: string;
5
+ description: string;
6
+ };
@@ -0,0 +1,7 @@
1
+ import { getUserPkgManager } from "@reliverse/runtime";
2
+ export const pm = await getUserPkgManager();
3
+ export const reliversePrompts = {
4
+ name: "@reliverse/rempts",
5
+ version: "1.6.0",
6
+ description: "@reliverse/rempts is a powerful library that enables seamless, typesafe, and resilient prompts for command-line applications. Crafted with simplicity and elegance, it provides developers with an intuitive and robust way to build interactive CLIs."
7
+ };
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Checks if the terminal is interactive
3
+ */
4
+ export declare function isTerminalInteractive(input?: NodeJS.ReadStream & {
5
+ fd: 0;
6
+ }): boolean;
7
+ /**
8
+ * Validates a name against allowed characters
9
+ */
10
+ interface ValidationResult {
11
+ isValid: boolean;
12
+ message?: string;
13
+ }
14
+ export declare function isValidName(name: string): ValidationResult;
15
+ /**
16
+ * Cleans up project name from config by removing scope and invalid characters.
17
+ * For paths with multiple segments (e.g. "@org/subpath/cli"), takes the last segment.
18
+ * This also ensures complex cases (e.g. "@some@weird/path/the-name!" returns "the-name").
19
+ */
20
+ export declare function normalizeName(name: string): string;
21
+ export {};
@@ -0,0 +1,17 @@
1
+ export function isTerminalInteractive(input = process.stdin) {
2
+ return Boolean(input.isTTY);
3
+ }
4
+ export function isValidName(name) {
5
+ if (!/^[a-zA-Z0-9-]+$/.test(name)) {
6
+ return {
7
+ isValid: false,
8
+ message: "Project name can only contain latin letters, numbers and hyphens"
9
+ };
10
+ }
11
+ return { isValid: true };
12
+ }
13
+ export function normalizeName(name) {
14
+ const segments = name.split("/");
15
+ const lastSegment = segments[segments.length - 1] ?? name;
16
+ return lastSegment.replace(/[^a-zA-Z0-9-]/g, "");
17
+ }
@@ -0,0 +1,6 @@
1
+ import { type Fonts } from "figlet";
2
+ export declare function createAsciiArt({ message, font, clearConsole, }: {
3
+ message: string;
4
+ font?: Fonts;
5
+ clearConsole?: boolean;
6
+ }): Promise<void>;
@@ -0,0 +1,13 @@
1
+ import { relinka } from "@reliverse/relinka";
2
+ import figlet from "figlet";
3
+ export async function createAsciiArt({
4
+ message,
5
+ font = "Standard",
6
+ clearConsole = false
7
+ }) {
8
+ if (clearConsole) {
9
+ relinka("clear", "");
10
+ }
11
+ const asciiArt = figlet.textSync(message, { font });
12
+ relinka("log", asciiArt);
13
+ }
package/bin/mod.d.ts ADDED
@@ -0,0 +1,53 @@
1
+ export { animateText, animationMap } from "./libs/animate/animate-mod";
2
+ export { anykeyPrompt } from "./libs/anykey/anykey-mod";
3
+ export type { CancelValue } from "./libs/cancel/cancel";
4
+ export { block, CANCEL, cancel, createCancel, getColumns, isCancel, isWindows, setRawMode, } from "./libs/cancel/cancel";
5
+ export { confirm } from "./libs/confirm/confirm-alias";
6
+ export { confirmPrompt } from "./libs/confirm/confirm-mod";
7
+ export { datePrompt } from "./libs/date/date";
8
+ export { startEditor } from "./libs/editor/editor-mod";
9
+ export { fallbackSymbols, figures, mainSymbols, } from "./libs/figures/figures-mod";
10
+ export type { GroupContext, GroupOptions, GroupStep, GroupSteps, } from "./libs/group/group-mod";
11
+ export { createMultiStep, createStep, group } from "./libs/group/group-mod";
12
+ export { input, password, text } from "./libs/input/input-alias";
13
+ export { inputPrompt } from "./libs/input/input-mod";
14
+ export { intro, startPrompt } from "./libs/intro/intro-alias";
15
+ export { introPrompt } from "./libs/intro/intro-mod";
16
+ export type { CallCmdOptions } from "./libs/launcher/command-runner";
17
+ export { callCmd } from "./libs/launcher/command-runner";
18
+ export { runMain } from "./libs/launcher/launcher-alias";
19
+ export { createCli, defineArgs, defineCommand, showUsage, } from "./libs/launcher/launcher-mod";
20
+ export type { ArgDefinition, ArgDefinitions, ArrayArgDefinition, BaseArgDefinition, BaseArgProps, BooleanArgDefinition, Command, CommandContext, CommandHook, CommandMeta, CommandRun, CommandSpec, CommandsMap, DefineCommandOptions, EmptyArgs, FileBasedOptions, InferArgTypes, NumberArgDefinition, PositionalArgDefinition, StringArgDefinition, } from "./libs/launcher/launcher-types";
21
+ export { log } from "./libs/log/log-alias";
22
+ export { toBaseColor, toSolidColor } from "./libs/msg-fmt/colors";
23
+ export { relinkaAsyncByRemptsDeprecated, relinkaByRemptsDeprecated, throwError, } from "./libs/msg-fmt/logger";
24
+ export { colorMap, typographyMap } from "./libs/msg-fmt/mapping";
25
+ export { bar, fmt, msg, msgUndo, msgUndoAll, printLineBar, symbols, } from "./libs/msg-fmt/messages";
26
+ export { breakLines, countLines, deleteLastLine, deleteLastLines, getExactTerminalWidth, getTerminalHeight, getTerminalWidth, removeCursor, restoreCursor, } from "./libs/msg-fmt/terminal";
27
+ export { applyVariant, isValidVariant, variantMap, } from "./libs/msg-fmt/variants";
28
+ export { multiselect } from "./libs/multiselect/multiselect-alias";
29
+ export { multiselectPrompt } from "./libs/multiselect/multiselect-prompt";
30
+ export { nextStepsPrompt } from "./libs/next-steps/next-steps";
31
+ export { numberPrompt } from "./libs/number/number-mod";
32
+ export { endPrompt, outro } from "./libs/outro/outro-alias";
33
+ export { outroPrompt } from "./libs/outro/outro-mod";
34
+ export type { ResultsType } from "./libs/results/results";
35
+ export { resultPrompt } from "./libs/results/results";
36
+ export { numMultiSelectPrompt } from "./libs/select/nummultiselect-prompt";
37
+ export { numSelectPrompt } from "./libs/select/numselect-prompt";
38
+ export { select, selectSimple } from "./libs/select/select-alias";
39
+ export { selectPrompt } from "./libs/select/select-prompt";
40
+ export { togglePrompt } from "./libs/select/toggle-prompt";
41
+ export { spinner } from "./libs/spinner/spinner-alias";
42
+ export { useSpinner } from "./libs/spinner/spinner-mod";
43
+ export { taskProgressPrompt } from "./libs/task/progress";
44
+ export { taskSpinPrompt } from "./libs/task/task-spin";
45
+ export { colorize } from "./libs/utils/colorize";
46
+ export { errorHandler } from "./libs/utils/errors";
47
+ export { preventUnsupportedTTY, preventWindowsHomeDirRoot, preventWrongTerminalSize, } from "./libs/utils/prevent";
48
+ export { completePrompt, renderEndLine, renderEndLineInput, } from "./libs/utils/prompt-end";
49
+ export { streamText, streamTextBox, streamTextWithSpinner, } from "./libs/utils/stream-text";
50
+ export { pm, reliversePrompts } from "./libs/utils/system";
51
+ export { isTerminalInteractive, isValidName, normalizeName, } from "./libs/utils/validate";
52
+ export { createAsciiArt } from "./libs/visual/visual-mod";
53
+ export type { AllKinds, BorderColorName, ChoiceOptions, ColorName, ConfirmPromptOptions, DatePromptOptions, EditorExitResult, FmtMsgOptions, InputPromptOptions, MessageConfig, MessageKind, MsgConfig, MsgType, MultiselectPromptParams, OutputColor, PreventWrongTerminalSizeOptions, ProgressBar, ProgressBarOptions, PromptOptions, PromptType, RenderParams, SelectOption, SelectPromptParams, SeparatorOption, StandardColor, StreamOptions, StreamTextOptions, SymbolName, Symbols, TogglePromptParams, TypographyName, VariantName, } from "./types";
package/bin/mod.js ADDED
@@ -0,0 +1,107 @@
1
+ export { animateText, animationMap } from "./libs/animate/animate-mod.js";
2
+ export { anykeyPrompt } from "./libs/anykey/anykey-mod.js";
3
+ export {
4
+ block,
5
+ CANCEL,
6
+ cancel,
7
+ createCancel,
8
+ getColumns,
9
+ isCancel,
10
+ isWindows,
11
+ setRawMode
12
+ } from "./libs/cancel/cancel.js";
13
+ export { confirm } from "./libs/confirm/confirm-alias.js";
14
+ export { confirmPrompt } from "./libs/confirm/confirm-mod.js";
15
+ export { datePrompt } from "./libs/date/date.js";
16
+ export { startEditor } from "./libs/editor/editor-mod.js";
17
+ export {
18
+ fallbackSymbols,
19
+ figures,
20
+ mainSymbols
21
+ } from "./libs/figures/figures-mod.js";
22
+ export { createMultiStep, createStep, group } from "./libs/group/group-mod.js";
23
+ export { input, password, text } from "./libs/input/input-alias.js";
24
+ export { inputPrompt } from "./libs/input/input-mod.js";
25
+ export { intro, startPrompt } from "./libs/intro/intro-alias.js";
26
+ export { introPrompt } from "./libs/intro/intro-mod.js";
27
+ export { callCmd } from "./libs/launcher/command-runner.js";
28
+ export { runMain } from "./libs/launcher/launcher-alias.js";
29
+ export {
30
+ createCli,
31
+ defineArgs,
32
+ defineCommand,
33
+ showUsage
34
+ } from "./libs/launcher/launcher-mod.js";
35
+ export { log } from "./libs/log/log-alias.js";
36
+ export { toBaseColor, toSolidColor } from "./libs/msg-fmt/colors.js";
37
+ export {
38
+ relinkaAsyncByRemptsDeprecated,
39
+ relinkaByRemptsDeprecated,
40
+ throwError
41
+ } from "./libs/msg-fmt/logger.js";
42
+ export { colorMap, typographyMap } from "./libs/msg-fmt/mapping.js";
43
+ export {
44
+ bar,
45
+ fmt,
46
+ msg,
47
+ msgUndo,
48
+ msgUndoAll,
49
+ printLineBar,
50
+ symbols
51
+ } from "./libs/msg-fmt/messages.js";
52
+ export {
53
+ breakLines,
54
+ countLines,
55
+ deleteLastLine,
56
+ deleteLastLines,
57
+ getExactTerminalWidth,
58
+ getTerminalHeight,
59
+ getTerminalWidth,
60
+ removeCursor,
61
+ restoreCursor
62
+ } from "./libs/msg-fmt/terminal.js";
63
+ export {
64
+ applyVariant,
65
+ isValidVariant,
66
+ variantMap
67
+ } from "./libs/msg-fmt/variants.js";
68
+ export { multiselect } from "./libs/multiselect/multiselect-alias.js";
69
+ export { multiselectPrompt } from "./libs/multiselect/multiselect-prompt.js";
70
+ export { nextStepsPrompt } from "./libs/next-steps/next-steps.js";
71
+ export { numberPrompt } from "./libs/number/number-mod.js";
72
+ export { endPrompt, outro } from "./libs/outro/outro-alias.js";
73
+ export { outroPrompt } from "./libs/outro/outro-mod.js";
74
+ export { resultPrompt } from "./libs/results/results.js";
75
+ export { numMultiSelectPrompt } from "./libs/select/nummultiselect-prompt.js";
76
+ export { numSelectPrompt } from "./libs/select/numselect-prompt.js";
77
+ export { select, selectSimple } from "./libs/select/select-alias.js";
78
+ export { selectPrompt } from "./libs/select/select-prompt.js";
79
+ export { togglePrompt } from "./libs/select/toggle-prompt.js";
80
+ export { spinner } from "./libs/spinner/spinner-alias.js";
81
+ export { useSpinner } from "./libs/spinner/spinner-mod.js";
82
+ export { taskProgressPrompt } from "./libs/task/progress.js";
83
+ export { taskSpinPrompt } from "./libs/task/task-spin.js";
84
+ export { colorize } from "./libs/utils/colorize.js";
85
+ export { errorHandler } from "./libs/utils/errors.js";
86
+ export {
87
+ preventUnsupportedTTY,
88
+ preventWindowsHomeDirRoot,
89
+ preventWrongTerminalSize
90
+ } from "./libs/utils/prevent.js";
91
+ export {
92
+ completePrompt,
93
+ renderEndLine,
94
+ renderEndLineInput
95
+ } from "./libs/utils/prompt-end.js";
96
+ export {
97
+ streamText,
98
+ streamTextBox,
99
+ streamTextWithSpinner
100
+ } from "./libs/utils/stream-text.js";
101
+ export { pm, reliversePrompts } from "./libs/utils/system.js";
102
+ export {
103
+ isTerminalInteractive,
104
+ isValidName,
105
+ normalizeName
106
+ } from "./libs/utils/validate.js";
107
+ export { createAsciiArt } from "./libs/visual/visual-mod.js";