@reliverse/rempts 1.7.52 → 1.7.53
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/bin/libs/animate/animate-mod.d.ts +14 -0
- package/bin/libs/animate/animate-mod.js +60 -0
- package/bin/libs/anykey/anykey-mod.d.ts +12 -0
- package/bin/libs/anykey/anykey-mod.js +125 -0
- package/bin/libs/cancel/cancel.d.ts +45 -0
- package/bin/libs/cancel/cancel.js +72 -0
- package/bin/libs/confirm/confirm-alias.d.ts +2 -0
- package/bin/libs/confirm/confirm-alias.js +2 -0
- package/bin/libs/confirm/confirm-mod.d.ts +5 -0
- package/bin/libs/confirm/confirm-mod.js +179 -0
- package/bin/libs/date/date.d.ts +2 -0
- package/bin/libs/date/date.js +214 -0
- package/bin/libs/editor/editor-mod.d.ts +25 -0
- package/bin/libs/editor/editor-mod.js +1133 -0
- package/bin/libs/figures/figures-mod.d.ts +461 -0
- package/bin/libs/figures/figures-mod.js +285 -0
- package/bin/libs/group/group-mod.d.ts +33 -0
- package/bin/libs/group/group-mod.js +89 -0
- package/bin/libs/input/input-alias.d.ts +5 -0
- package/bin/libs/input/input-alias.js +4 -0
- package/bin/libs/input/input-mod.d.ts +16 -0
- package/bin/libs/input/input-mod.js +372 -0
- package/bin/libs/intro/intro-alias.d.ts +3 -0
- package/bin/libs/intro/intro-alias.js +3 -0
- package/bin/libs/intro/intro-mod.d.ts +20 -0
- package/bin/libs/intro/intro-mod.js +77 -0
- package/bin/libs/launcher/command-runner.d.ts +31 -0
- package/bin/libs/launcher/command-runner.js +229 -0
- package/bin/libs/launcher/launcher-alias.d.ts +2 -0
- package/bin/libs/launcher/launcher-alias.js +2 -0
- package/bin/libs/launcher/launcher-mod.d.ts +66 -0
- package/bin/libs/launcher/launcher-mod.js +975 -0
- package/bin/libs/launcher/launcher-types.d.ts +176 -0
- package/bin/libs/launcher/launcher-types.js +0 -0
- package/bin/libs/log/log-alias.d.ts +1 -0
- package/bin/libs/log/log-alias.js +2 -0
- package/bin/libs/msg-fmt/colors.d.ts +30 -0
- package/bin/libs/msg-fmt/colors.js +42 -0
- package/bin/libs/msg-fmt/logger.d.ts +17 -0
- package/bin/libs/msg-fmt/logger.js +103 -0
- package/bin/libs/msg-fmt/mapping.d.ts +3 -0
- package/bin/libs/msg-fmt/mapping.js +41 -0
- package/bin/libs/msg-fmt/messages.d.ts +35 -0
- package/bin/libs/msg-fmt/messages.js +305 -0
- package/bin/libs/msg-fmt/terminal.d.ts +15 -0
- package/bin/libs/msg-fmt/terminal.js +60 -0
- package/bin/libs/msg-fmt/variants.d.ts +11 -0
- package/bin/libs/msg-fmt/variants.js +52 -0
- package/bin/libs/multiselect/multiselect-alias.d.ts +2 -0
- package/bin/libs/multiselect/multiselect-alias.js +2 -0
- package/bin/libs/multiselect/multiselect-prompt.d.ts +2 -0
- package/bin/libs/multiselect/multiselect-prompt.js +340 -0
- package/bin/libs/next-steps/next-steps.d.ts +13 -0
- package/bin/libs/next-steps/next-steps.js +24 -0
- package/bin/libs/number/number-mod.d.ts +28 -0
- package/bin/libs/number/number-mod.js +194 -0
- package/bin/libs/outro/outro-alias.d.ts +3 -0
- package/bin/libs/outro/outro-alias.js +3 -0
- package/bin/libs/outro/outro-mod.d.ts +8 -0
- package/bin/libs/outro/outro-mod.js +55 -0
- package/bin/libs/reliarg/reliarg-mod.d.ts +76 -0
- package/bin/libs/reliarg/reliarg-mod.js +276 -0
- package/bin/libs/results/results.d.ts +7 -0
- package/bin/libs/results/results.js +27 -0
- package/bin/libs/select/nummultiselect-prompt.d.ts +6 -0
- package/bin/libs/select/nummultiselect-prompt.js +101 -0
- package/bin/libs/select/numselect-prompt.d.ts +7 -0
- package/bin/libs/select/numselect-prompt.js +111 -0
- package/bin/libs/select/select-alias.d.ts +9 -0
- package/bin/libs/select/select-alias.js +9 -0
- package/bin/libs/select/select-prompt.d.ts +5 -0
- package/bin/libs/select/select-prompt.js +308 -0
- package/bin/libs/select/toggle-prompt.d.ts +5 -0
- package/bin/libs/select/toggle-prompt.js +207 -0
- package/bin/libs/spinner/spinner-alias.d.ts +2 -0
- package/bin/libs/spinner/spinner-alias.js +2 -0
- package/bin/libs/spinner/spinner-mod.d.ts +106 -0
- package/bin/libs/spinner/spinner-mod.js +255 -0
- package/bin/libs/task/progress.d.ts +2 -0
- package/bin/libs/task/progress.js +57 -0
- package/bin/libs/task/task-spin.d.ts +15 -0
- package/bin/libs/task/task-spin.js +106 -0
- package/bin/libs/utils/colorize.d.ts +2 -0
- package/bin/libs/utils/colorize.js +122 -0
- package/bin/libs/utils/errors.d.ts +1 -0
- package/bin/libs/utils/errors.js +17 -0
- package/bin/libs/utils/prevent.d.ts +8 -0
- package/bin/libs/utils/prevent.js +62 -0
- package/bin/libs/utils/prompt-end.d.ts +8 -0
- package/bin/libs/utils/prompt-end.js +34 -0
- package/bin/libs/utils/stream-text.d.ts +18 -0
- package/bin/libs/utils/stream-text.js +137 -0
- package/bin/libs/utils/system.d.ts +6 -0
- package/bin/libs/utils/system.js +7 -0
- package/bin/libs/utils/validate.d.ts +21 -0
- package/bin/libs/utils/validate.js +17 -0
- package/bin/libs/visual/visual-mod.d.ts +6 -0
- package/bin/libs/visual/visual-mod.js +13 -0
- package/bin/mod.d.ts +53 -0
- package/bin/mod.js +107 -0
- package/bin/types.d.ts +371 -0
- package/bin/types.js +0 -0
- package/package.json +34 -59
- package/dist-npm/bin/mod.d.mts +0 -1753
- package/dist-npm/bin/mod.mjs +0 -6779
package/bin/types.d.ts
ADDED
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
export type MsgType = "M_NULL" | "M_INFO_NULL" | "M_START" | "M_MIDDLE" | "M_GENERAL" | "M_GENERAL_NULL" | "M_INFO" | "M_ERROR" | "M_ERROR_NULL" | "M_END" | "M_NEWLINE" | "M_BAR";
|
|
2
|
+
export type TypographyName = "bold" | "strikethrough" | "underline" | "italic" | "none";
|
|
3
|
+
export type BorderColorName = "reset" | "inverse" | "dim" | "black" | "red" | "redBright" | "green" | "greenBright" | "yellow" | "yellowBright" | "blue" | "blueBright" | "magenta" | "magentaBright" | "cyan" | "cyanBright" | "bgCyan" | "bgCyanBright" | "white" | "gray";
|
|
4
|
+
export type ColorName = BorderColorName | "gradientGradient" | "rainbowGradient" | "cristalGradient" | "mindGradient" | "passionGradient" | "viceGradient" | "retroGradient" | "none";
|
|
5
|
+
type AnimationName = "rainbow" | "pulse" | "glitch" | "radar" | "neon" | "karaoke";
|
|
6
|
+
export type VariantName = "doubleBox" | "none";
|
|
7
|
+
export interface MsgConfig {
|
|
8
|
+
symbol: string;
|
|
9
|
+
prefix?: string;
|
|
10
|
+
color?: (text: string) => string;
|
|
11
|
+
newLineBefore?: boolean;
|
|
12
|
+
newLineAfter?: boolean;
|
|
13
|
+
suffix?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface PromptOptions {
|
|
16
|
+
schema?: any;
|
|
17
|
+
title?: string;
|
|
18
|
+
titleColor?: ColorName;
|
|
19
|
+
titleTypography?: TypographyName;
|
|
20
|
+
titleVariant?: VariantName;
|
|
21
|
+
titleAnimation?: AnimationName;
|
|
22
|
+
titleAnimationDelay?: number;
|
|
23
|
+
content?: string;
|
|
24
|
+
contentColor?: ColorName;
|
|
25
|
+
contentTypography?: TypographyName;
|
|
26
|
+
contentVariant?: VariantName;
|
|
27
|
+
hint?: string;
|
|
28
|
+
placeholder?: string;
|
|
29
|
+
validate?: (value: any) => boolean | string | undefined | Promise<boolean | string | undefined>;
|
|
30
|
+
defaultColor?: ColorName;
|
|
31
|
+
defaultTypography?: TypographyName;
|
|
32
|
+
choices?: ChoiceOptions[];
|
|
33
|
+
variantOptions?: {
|
|
34
|
+
box?: {
|
|
35
|
+
limit?: number;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
action?: () => Promise<void>;
|
|
39
|
+
border?: boolean;
|
|
40
|
+
borderColor?: BorderColorName;
|
|
41
|
+
additionalLinesToDelete?: number;
|
|
42
|
+
hintPlaceholderColor?: ColorName;
|
|
43
|
+
hints?: string[];
|
|
44
|
+
required?: boolean;
|
|
45
|
+
initial?: any[];
|
|
46
|
+
endTitle?: string;
|
|
47
|
+
endTitleColor?: ColorName;
|
|
48
|
+
horizontalLine?: boolean;
|
|
49
|
+
horizontalLineLength?: number;
|
|
50
|
+
symbol?: string;
|
|
51
|
+
customSymbol?: string;
|
|
52
|
+
}
|
|
53
|
+
interface ChoiceRequiredOptions {
|
|
54
|
+
id: string;
|
|
55
|
+
title: string;
|
|
56
|
+
}
|
|
57
|
+
interface ChoiceOptionalOptions {
|
|
58
|
+
description?: string;
|
|
59
|
+
titleTypography?: TypographyName;
|
|
60
|
+
action?: () => Promise<void>;
|
|
61
|
+
}
|
|
62
|
+
export type ChoiceOptions = ChoiceRequiredOptions & ChoiceOptionalOptions;
|
|
63
|
+
export interface SelectOption<T> {
|
|
64
|
+
value: T;
|
|
65
|
+
label: string;
|
|
66
|
+
hint?: string;
|
|
67
|
+
disabled?: boolean;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Standard terminal colors supported by most terminals
|
|
71
|
+
*/
|
|
72
|
+
export type StandardColor = "black" | "red" | "green" | "yellow" | "blue" | "magenta" | "cyan" | "white" | "gray";
|
|
73
|
+
/**
|
|
74
|
+
* All possible output colors including special colors
|
|
75
|
+
*/
|
|
76
|
+
export type OutputColor = StandardColor | "dim";
|
|
77
|
+
export interface EditorExitResult {
|
|
78
|
+
saved: boolean;
|
|
79
|
+
content: string | null;
|
|
80
|
+
filename: string | null;
|
|
81
|
+
}
|
|
82
|
+
export type MessageKind = "log" | "info" | "warn" | "error" | "success";
|
|
83
|
+
type VerboseKind = `${MessageKind}-verbose`;
|
|
84
|
+
export type AllKinds = MessageKind | VerboseKind;
|
|
85
|
+
export interface MessageConfig {
|
|
86
|
+
type: "M_INFO" | "M_ERROR";
|
|
87
|
+
titleColor?: "retroGradient" | "viceGradient" | "yellowBright";
|
|
88
|
+
titleTypography?: "bold";
|
|
89
|
+
contentColor?: "dim";
|
|
90
|
+
contentTypography?: "italic";
|
|
91
|
+
}
|
|
92
|
+
export interface StreamOptions {
|
|
93
|
+
delay?: number;
|
|
94
|
+
useSpinner?: boolean;
|
|
95
|
+
spinnerFrames?: string[];
|
|
96
|
+
spinnerDelay?: number;
|
|
97
|
+
}
|
|
98
|
+
export interface ProgressBarOptions {
|
|
99
|
+
total: number;
|
|
100
|
+
width?: number;
|
|
101
|
+
completeChar?: string;
|
|
102
|
+
incompleteChar?: string;
|
|
103
|
+
format?: string;
|
|
104
|
+
colorize?: boolean;
|
|
105
|
+
increment?: number;
|
|
106
|
+
desiredTotalTime?: number;
|
|
107
|
+
}
|
|
108
|
+
export interface ProgressBar {
|
|
109
|
+
update: (value: number) => Promise<void>;
|
|
110
|
+
increment: (amount?: number) => Promise<void>;
|
|
111
|
+
render: () => Promise<void>;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Union type for available prompt types.
|
|
115
|
+
*/
|
|
116
|
+
export type PromptType = "input" | "inputmasked" | "select" | "multiselect" | "nummultiselect" | "numselect" | "toggle" | "confirm" | "spinner" | "progressbar" | "results" | "nextsteps" | "animatedtext" | "date" | "end";
|
|
117
|
+
export interface ConfirmPromptOptions {
|
|
118
|
+
title?: string;
|
|
119
|
+
message?: string;
|
|
120
|
+
defaultValue?: boolean;
|
|
121
|
+
initialValue?: boolean;
|
|
122
|
+
content?: string;
|
|
123
|
+
titleColor?: ColorName;
|
|
124
|
+
titleTypography?: TypographyName;
|
|
125
|
+
titleVariant?: VariantName;
|
|
126
|
+
contentColor?: ColorName;
|
|
127
|
+
contentTypography?: TypographyName;
|
|
128
|
+
contentVariant?: VariantName;
|
|
129
|
+
borderColor?: BorderColorName;
|
|
130
|
+
hintPlaceholderColor?: ColorName;
|
|
131
|
+
variantOptions?: any;
|
|
132
|
+
action?: () => Promise<void>;
|
|
133
|
+
displayInstructions?: boolean;
|
|
134
|
+
debug?: boolean;
|
|
135
|
+
endTitle?: string;
|
|
136
|
+
endTitleColor?: ColorName;
|
|
137
|
+
border?: boolean;
|
|
138
|
+
terminalWidth?: number;
|
|
139
|
+
}
|
|
140
|
+
export interface StreamTextOptions {
|
|
141
|
+
/**
|
|
142
|
+
* Text to stream
|
|
143
|
+
*/
|
|
144
|
+
text: string;
|
|
145
|
+
/**
|
|
146
|
+
* Delay between each character in milliseconds
|
|
147
|
+
* @default 50
|
|
148
|
+
*/
|
|
149
|
+
delay?: number;
|
|
150
|
+
/**
|
|
151
|
+
* Whether to show cursor while streaming
|
|
152
|
+
* @default false
|
|
153
|
+
*/
|
|
154
|
+
showCursor?: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* Color to use for the text
|
|
157
|
+
* @default undefined (no color)
|
|
158
|
+
*/
|
|
159
|
+
color?: ColorName;
|
|
160
|
+
/**
|
|
161
|
+
* Whether to inject a newline at the end
|
|
162
|
+
* @default true
|
|
163
|
+
*/
|
|
164
|
+
newline?: boolean;
|
|
165
|
+
/**
|
|
166
|
+
* Whether to clear the line before streaming
|
|
167
|
+
* @default false
|
|
168
|
+
*/
|
|
169
|
+
clearLine?: boolean;
|
|
170
|
+
/**
|
|
171
|
+
* Callback function to update the spinner text
|
|
172
|
+
*/
|
|
173
|
+
onProgress?: (currentText: string) => void;
|
|
174
|
+
}
|
|
175
|
+
export interface PreventWrongTerminalSizeOptions {
|
|
176
|
+
isDev?: boolean;
|
|
177
|
+
shouldExit?: boolean;
|
|
178
|
+
minWidth?: number;
|
|
179
|
+
minHeight?: number;
|
|
180
|
+
sizeErrorDescription?: string;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* InputPromptOptions
|
|
184
|
+
*
|
|
185
|
+
* Extended options for handling user input prompts, including validation
|
|
186
|
+
* and UI styling. Inherits from PromptOptions.
|
|
187
|
+
*/
|
|
188
|
+
export type InputPromptOptions = {
|
|
189
|
+
border?: boolean;
|
|
190
|
+
borderColor?: BorderColorName;
|
|
191
|
+
content?: string;
|
|
192
|
+
contentColor?: ColorName;
|
|
193
|
+
contentTypography?: TypographyName;
|
|
194
|
+
contentVariant?: VariantName;
|
|
195
|
+
customSymbol?: string;
|
|
196
|
+
defaultValue?: string;
|
|
197
|
+
initialValue?: string;
|
|
198
|
+
endTitle?: string;
|
|
199
|
+
endTitleColor?: ColorName;
|
|
200
|
+
hardcoded?: {
|
|
201
|
+
userInput?: string;
|
|
202
|
+
errorMessage?: string;
|
|
203
|
+
showPlaceholder?: boolean;
|
|
204
|
+
};
|
|
205
|
+
hint?: string;
|
|
206
|
+
hintPlaceholderColor?: ColorName;
|
|
207
|
+
message?: string;
|
|
208
|
+
mode?: "plain" | "password";
|
|
209
|
+
mask?: string;
|
|
210
|
+
placeholder?: string;
|
|
211
|
+
schema?: any;
|
|
212
|
+
shouldStream?: boolean;
|
|
213
|
+
streamDelay?: number;
|
|
214
|
+
symbol?: SymbolName;
|
|
215
|
+
symbolColor?: ColorName;
|
|
216
|
+
title?: string;
|
|
217
|
+
titleColor?: ColorName;
|
|
218
|
+
titleTypography?: TypographyName;
|
|
219
|
+
titleVariant?: VariantName;
|
|
220
|
+
validate?: (value: string) => string | boolean | undefined | Promise<string | boolean | undefined>;
|
|
221
|
+
variantOptions?: unknown;
|
|
222
|
+
} & PromptOptions;
|
|
223
|
+
export interface RenderParams {
|
|
224
|
+
border: boolean;
|
|
225
|
+
borderColor?: BorderColorName;
|
|
226
|
+
content?: string;
|
|
227
|
+
contentColor?: ColorName;
|
|
228
|
+
contentTypography?: TypographyName;
|
|
229
|
+
contentVariant?: VariantName;
|
|
230
|
+
customSymbol?: string;
|
|
231
|
+
errorMessage: string;
|
|
232
|
+
hint?: string;
|
|
233
|
+
hintPlaceholderColor?: ColorName;
|
|
234
|
+
mask?: string;
|
|
235
|
+
placeholder?: string;
|
|
236
|
+
symbol?: SymbolName;
|
|
237
|
+
symbolColor?: ColorName;
|
|
238
|
+
title?: string;
|
|
239
|
+
titleColor?: ColorName;
|
|
240
|
+
titleTypography?: TypographyName;
|
|
241
|
+
titleVariant?: VariantName;
|
|
242
|
+
userInput: string;
|
|
243
|
+
isRerender?: boolean;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Known symbol names that will have IntelliSense support
|
|
247
|
+
*/
|
|
248
|
+
export type SymbolName = "pointer" | "start" | "middle" | "end" | "line" | "corner_top_right" | "step_active" | "step_error" | "log" | "success" | "info" | "warn" | "error";
|
|
249
|
+
export type Symbols = Record<SymbolName, string>;
|
|
250
|
+
export interface FmtMsgOptions {
|
|
251
|
+
type: MsgType;
|
|
252
|
+
title?: string;
|
|
253
|
+
titleAfterAnim?: string;
|
|
254
|
+
content?: string | undefined;
|
|
255
|
+
titleColor?: ColorName;
|
|
256
|
+
titleTypography?: TypographyName;
|
|
257
|
+
titleVariant?: VariantName;
|
|
258
|
+
contentColor?: ColorName;
|
|
259
|
+
contentTypography?: TypographyName;
|
|
260
|
+
contentVariant?: VariantName;
|
|
261
|
+
hint?: string;
|
|
262
|
+
hintPlaceholderColor?: ColorName;
|
|
263
|
+
hintTypography?: TypographyName;
|
|
264
|
+
border?: boolean;
|
|
265
|
+
borderColor?: ColorName;
|
|
266
|
+
dontRemoveBar?: boolean;
|
|
267
|
+
variantOptions?: {
|
|
268
|
+
box?: {
|
|
269
|
+
limit?: number;
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
errorMessage?: string;
|
|
273
|
+
addNewLineBefore?: boolean;
|
|
274
|
+
addNewLineAfter?: boolean;
|
|
275
|
+
placeholder?: string;
|
|
276
|
+
horizontalLine?: boolean;
|
|
277
|
+
horizontalLineLength?: number;
|
|
278
|
+
terminalWidth?: number;
|
|
279
|
+
instructions?: string;
|
|
280
|
+
wrapTitle?: boolean;
|
|
281
|
+
wrapContent?: boolean;
|
|
282
|
+
symbol?: SymbolName;
|
|
283
|
+
customSymbol?: string;
|
|
284
|
+
symbolColor?: ColorName;
|
|
285
|
+
noNewLine?: boolean;
|
|
286
|
+
}
|
|
287
|
+
export interface TogglePromptParams<T extends string> {
|
|
288
|
+
title?: string;
|
|
289
|
+
message?: string;
|
|
290
|
+
content?: string;
|
|
291
|
+
options?: [T, T];
|
|
292
|
+
defaultValue?: T;
|
|
293
|
+
initialValue?: T;
|
|
294
|
+
borderColor?: BorderColorName;
|
|
295
|
+
titleColor?: ColorName;
|
|
296
|
+
titleTypography?: TypographyName;
|
|
297
|
+
titleVariant?: VariantName;
|
|
298
|
+
contentColor?: ColorName;
|
|
299
|
+
contentTypography?: TypographyName;
|
|
300
|
+
border?: boolean;
|
|
301
|
+
endTitle?: string;
|
|
302
|
+
endTitleColor?: ColorName;
|
|
303
|
+
displayInstructions?: boolean;
|
|
304
|
+
debug?: boolean;
|
|
305
|
+
}
|
|
306
|
+
export interface SeparatorOption {
|
|
307
|
+
separator: true;
|
|
308
|
+
width?: number;
|
|
309
|
+
symbol?: SymbolName;
|
|
310
|
+
}
|
|
311
|
+
export interface SelectPromptParams<T extends string> {
|
|
312
|
+
title?: string;
|
|
313
|
+
message?: string;
|
|
314
|
+
content?: string;
|
|
315
|
+
options?: (SelectOption<T> | SeparatorOption)[];
|
|
316
|
+
optionsArray?: {
|
|
317
|
+
value: T;
|
|
318
|
+
label?: string;
|
|
319
|
+
hint?: string;
|
|
320
|
+
}[];
|
|
321
|
+
defaultValue?: T;
|
|
322
|
+
initialValue?: T;
|
|
323
|
+
required?: boolean;
|
|
324
|
+
borderColor?: BorderColorName;
|
|
325
|
+
titleColor?: ColorName;
|
|
326
|
+
titleTypography?: TypographyName;
|
|
327
|
+
titleVariant?: VariantName;
|
|
328
|
+
contentColor?: ColorName;
|
|
329
|
+
contentTypography?: TypographyName;
|
|
330
|
+
border?: boolean;
|
|
331
|
+
endTitle?: string;
|
|
332
|
+
endTitleColor?: ColorName;
|
|
333
|
+
debug?: boolean;
|
|
334
|
+
terminalWidth?: number;
|
|
335
|
+
displayInstructions?: boolean;
|
|
336
|
+
shouldStream?: boolean;
|
|
337
|
+
streamDelay?: number;
|
|
338
|
+
}
|
|
339
|
+
export interface MultiselectPromptParams<T extends string> {
|
|
340
|
+
title?: string;
|
|
341
|
+
message?: string;
|
|
342
|
+
content?: string;
|
|
343
|
+
options: (SelectOption<T> | SeparatorOption)[];
|
|
344
|
+
defaultValue?: T[];
|
|
345
|
+
initialValues?: T[];
|
|
346
|
+
borderColor?: BorderColorName;
|
|
347
|
+
titleColor?: ColorName;
|
|
348
|
+
titleTypography?: TypographyName;
|
|
349
|
+
titleVariant?: VariantName;
|
|
350
|
+
contentColor?: ColorName;
|
|
351
|
+
contentTypography?: TypographyName;
|
|
352
|
+
border?: boolean;
|
|
353
|
+
endTitle?: string;
|
|
354
|
+
endTitleColor?: ColorName;
|
|
355
|
+
debug?: boolean;
|
|
356
|
+
terminalWidth?: number;
|
|
357
|
+
displayInstructions?: boolean;
|
|
358
|
+
required?: boolean;
|
|
359
|
+
minSelect?: number;
|
|
360
|
+
maxSelect?: number;
|
|
361
|
+
selectAll?: boolean;
|
|
362
|
+
}
|
|
363
|
+
export type DatePromptOptions = PromptOptions & {
|
|
364
|
+
dateFormat: string;
|
|
365
|
+
dateKind: "birthday" | "other";
|
|
366
|
+
defaultValue?: string;
|
|
367
|
+
endTitle?: string;
|
|
368
|
+
endTitleColor?: ColorName;
|
|
369
|
+
border?: boolean;
|
|
370
|
+
};
|
|
371
|
+
export {};
|
package/bin/types.js
ADDED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,55 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@reliverse/rempts",
|
|
3
|
-
"author": "reliverse",
|
|
4
|
-
"version": "1.7.52",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"main": "./dist-npm/bin/mod.mjs",
|
|
8
|
-
"types": "./dist-npm/bin/mod.d.mts",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"types": "./dist-npm/bin/mod.d.mts",
|
|
12
|
-
"import": "./dist-npm/bin/mod.mjs",
|
|
13
|
-
"default": "./dist-npm/bin/mod.mjs"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"publishConfig": {
|
|
17
|
-
"access": "public"
|
|
18
|
-
},
|
|
19
|
-
"files": [
|
|
20
|
-
"package.json",
|
|
21
|
-
"README.md",
|
|
22
|
-
"LICENSE",
|
|
23
|
-
"dist-npm/bin/mod.d.mts",
|
|
24
|
-
"dist-npm/bin/mod.mjs"
|
|
25
|
-
],
|
|
26
|
-
"keywords": [
|
|
27
|
-
"reliverse",
|
|
28
|
-
"prompts",
|
|
29
|
-
"rempts",
|
|
30
|
-
"citty",
|
|
31
|
-
"cli",
|
|
32
|
-
"unjs",
|
|
33
|
-
"toolkit",
|
|
34
|
-
"cli-toolkit",
|
|
35
|
-
"cli-prompts"
|
|
36
|
-
],
|
|
37
|
-
"description": "@reliverse/rempts is a modern, type-safe toolkit for building delightful cli experiences. it's fast, flexible, and made for developer happiness. file-based commands keep things simple.",
|
|
38
|
-
"scripts": {
|
|
39
|
-
"dev": "bun example/cli.ts",
|
|
40
|
-
"pub": "bun unbuild && bun publish",
|
|
41
|
-
"dev:prompts": "bun example/prompts/mod.ts",
|
|
42
|
-
"dev:modern": "bun example/launcher/modern.ts",
|
|
43
|
-
"dev:classic": "bun example/launcher/classic.ts",
|
|
44
|
-
"latest": "bun update --latest && bun check",
|
|
45
|
-
"check": "tsc --noEmit && biome check --fix --unsafe",
|
|
46
|
-
"agg": "rse tools --tool agg --input src/libs/core/core-impl --out src/libs/core/core-main.ts --recursive --named --strip src/libs/core",
|
|
47
|
-
"tests": "bun test ./.tests"
|
|
48
|
-
},
|
|
49
2
|
"dependencies": {
|
|
50
3
|
"@figliolia/chalk-animation": "^1.0.4",
|
|
51
|
-
"@reliverse/relico": "^1.3.
|
|
52
|
-
"@reliverse/relinka": "^1.5.
|
|
4
|
+
"@reliverse/relico": "^1.3.7",
|
|
5
|
+
"@reliverse/relinka": "^1.5.9",
|
|
53
6
|
"@reliverse/runtime": "^1.0.3",
|
|
54
7
|
"ansi-escapes": "^7.0.0",
|
|
55
8
|
"cli-spinners": "^3.2.0",
|
|
@@ -63,15 +16,37 @@
|
|
|
63
16
|
"ts-regex-builder": "^1.8.2",
|
|
64
17
|
"wrap-ansi": "^9.0.0"
|
|
65
18
|
},
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"
|
|
75
|
-
"
|
|
19
|
+
"description": "@reliverse/rempts is a modern, type-safe toolkit for building delightful cli experiences. it's fast, flexible, and made for developer happiness. file-based commands keep things simple.",
|
|
20
|
+
"homepage": "https://docs.reliverse.org/cli",
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"name": "@reliverse/rempts",
|
|
23
|
+
"type": "module",
|
|
24
|
+
"version": "1.7.53",
|
|
25
|
+
"author": "reliverse",
|
|
26
|
+
"bugs": {
|
|
27
|
+
"email": "blefnk@gmail.com",
|
|
28
|
+
"url": "https://github.com/reliverse/rempts/issues"
|
|
29
|
+
},
|
|
30
|
+
"keywords": [
|
|
31
|
+
"reliverse"
|
|
32
|
+
],
|
|
33
|
+
"repository": {
|
|
34
|
+
"type": "git",
|
|
35
|
+
"url": "git+https://github.com/reliverse/rempts.git"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {},
|
|
38
|
+
"exports": {
|
|
39
|
+
".": "./bin/mod.js"
|
|
40
|
+
},
|
|
41
|
+
"files": [
|
|
42
|
+
"bin",
|
|
43
|
+
"package.json",
|
|
44
|
+
"README.md",
|
|
45
|
+
"LICENSE"
|
|
46
|
+
],
|
|
47
|
+
"main": "./bin/mod.js",
|
|
48
|
+
"module": "./bin/mod.js",
|
|
49
|
+
"publishConfig": {
|
|
50
|
+
"access": "public"
|
|
76
51
|
}
|
|
77
52
|
}
|