@reliverse/rempts 1.7.44 → 1.7.45
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/README.md +1 -1
- package/dist-npm/bin/mod.d.mts +2333 -0
- package/dist-npm/bin/mod.mjs +8236 -0
- package/package.json +84 -42
- package/bin/libs/animate/animate-mod.d.ts +0 -14
- package/bin/libs/animate/animate-mod.js +0 -62
- package/bin/libs/anykey/anykey-mod.d.ts +0 -12
- package/bin/libs/anykey/anykey-mod.js +0 -125
- package/bin/libs/cancel/cancel.d.ts +0 -45
- package/bin/libs/cancel/cancel.js +0 -72
- package/bin/libs/confirm/confirm-alias.d.ts +0 -2
- package/bin/libs/confirm/confirm-alias.js +0 -2
- package/bin/libs/confirm/confirm-mod.d.ts +0 -5
- package/bin/libs/confirm/confirm-mod.js +0 -179
- package/bin/libs/date/date.d.ts +0 -2
- package/bin/libs/date/date.js +0 -236
- package/bin/libs/editor/editor-mod.d.ts +0 -25
- package/bin/libs/editor/editor-mod.js +0 -897
- package/bin/libs/figures/figures-mod.d.ts +0 -461
- package/bin/libs/figures/figures-mod.js +0 -285
- package/bin/libs/group/group-mod.d.ts +0 -33
- package/bin/libs/group/group-mod.js +0 -93
- package/bin/libs/input/input-alias.d.ts +0 -5
- package/bin/libs/input/input-alias.js +0 -4
- package/bin/libs/input/input-mod.d.ts +0 -16
- package/bin/libs/input/input-mod.js +0 -372
- package/bin/libs/intro/intro-alias.d.ts +0 -2
- package/bin/libs/intro/intro-alias.js +0 -3
- package/bin/libs/intro/intro-mod.d.ts +0 -20
- package/bin/libs/intro/intro-mod.js +0 -81
- package/bin/libs/launcher/command-runner.d.ts +0 -18
- package/bin/libs/launcher/command-runner.js +0 -79
- package/bin/libs/launcher/command-typed.d.ts +0 -16
- package/bin/libs/launcher/command-typed.js +0 -60
- package/bin/libs/launcher/launcher-alias.d.ts +0 -2
- package/bin/libs/launcher/launcher-alias.js +0 -2
- package/bin/libs/launcher/launcher-mod.d.ts +0 -162
- package/bin/libs/launcher/launcher-mod.js +0 -1222
- package/bin/libs/launcher/launcher-types.d.ts +0 -159
- package/bin/libs/launcher/launcher-types.js +0 -0
- package/bin/libs/launcher/trpc-orpc-support/completions.d.ts +0 -4
- package/bin/libs/launcher/trpc-orpc-support/completions.js +0 -45
- package/bin/libs/launcher/trpc-orpc-support/errors.d.ts +0 -11
- package/bin/libs/launcher/trpc-orpc-support/errors.js +0 -10
- package/bin/libs/launcher/trpc-orpc-support/index.d.ts +0 -34
- package/bin/libs/launcher/trpc-orpc-support/index.js +0 -641
- package/bin/libs/launcher/trpc-orpc-support/json-schema.d.ts +0 -17
- package/bin/libs/launcher/trpc-orpc-support/json-schema.js +0 -168
- package/bin/libs/launcher/trpc-orpc-support/json.d.ts +0 -44
- package/bin/libs/launcher/trpc-orpc-support/json.js +0 -41
- package/bin/libs/launcher/trpc-orpc-support/logging.d.ts +0 -11
- package/bin/libs/launcher/trpc-orpc-support/logging.js +0 -26
- package/bin/libs/launcher/trpc-orpc-support/parse-procedure.d.ts +0 -2
- package/bin/libs/launcher/trpc-orpc-support/parse-procedure.js +0 -486
- package/bin/libs/launcher/trpc-orpc-support/prompts.d.ts +0 -18
- package/bin/libs/launcher/trpc-orpc-support/prompts.js +0 -534
- package/bin/libs/launcher/trpc-orpc-support/standard-schema/contract.d.ts +0 -53
- package/bin/libs/launcher/trpc-orpc-support/standard-schema/contract.js +0 -0
- package/bin/libs/launcher/trpc-orpc-support/standard-schema/errors.d.ts +0 -9
- package/bin/libs/launcher/trpc-orpc-support/standard-schema/errors.js +0 -47
- package/bin/libs/launcher/trpc-orpc-support/standard-schema/utils.d.ts +0 -3
- package/bin/libs/launcher/trpc-orpc-support/standard-schema/utils.js +0 -6
- package/bin/libs/launcher/trpc-orpc-support/trpc-compat.d.ts +0 -71
- package/bin/libs/launcher/trpc-orpc-support/trpc-compat.js +0 -11
- package/bin/libs/launcher/trpc-orpc-support/types.d.ts +0 -276
- package/bin/libs/launcher/trpc-orpc-support/types.js +0 -0
- package/bin/libs/launcher/trpc-orpc-support/util.d.ts +0 -9
- package/bin/libs/launcher/trpc-orpc-support/util.js +0 -9
- package/bin/libs/log/log-alias.d.ts +0 -1
- package/bin/libs/log/log-alias.js +0 -2
- package/bin/libs/msg-fmt/colors.d.ts +0 -30
- package/bin/libs/msg-fmt/colors.js +0 -42
- package/bin/libs/msg-fmt/logger.d.ts +0 -17
- package/bin/libs/msg-fmt/logger.js +0 -103
- package/bin/libs/msg-fmt/mapping.d.ts +0 -3
- package/bin/libs/msg-fmt/mapping.js +0 -49
- package/bin/libs/msg-fmt/messages.d.ts +0 -35
- package/bin/libs/msg-fmt/messages.js +0 -319
- package/bin/libs/msg-fmt/terminal.d.ts +0 -15
- package/bin/libs/msg-fmt/terminal.js +0 -60
- package/bin/libs/msg-fmt/variants.d.ts +0 -11
- package/bin/libs/msg-fmt/variants.js +0 -52
- package/bin/libs/multiselect/multiselect-alias.d.ts +0 -2
- package/bin/libs/multiselect/multiselect-alias.js +0 -2
- package/bin/libs/multiselect/multiselect-prompt.d.ts +0 -2
- package/bin/libs/multiselect/multiselect-prompt.js +0 -348
- package/bin/libs/next-steps/next-steps.d.ts +0 -14
- package/bin/libs/next-steps/next-steps.js +0 -24
- package/bin/libs/number/number-mod.d.ts +0 -28
- package/bin/libs/number/number-mod.js +0 -194
- package/bin/libs/outro/outro-alias.d.ts +0 -2
- package/bin/libs/outro/outro-alias.js +0 -3
- package/bin/libs/outro/outro-mod.d.ts +0 -8
- package/bin/libs/outro/outro-mod.js +0 -55
- package/bin/libs/results/results.d.ts +0 -7
- package/bin/libs/results/results.js +0 -27
- package/bin/libs/select/nummultiselect-prompt.d.ts +0 -6
- package/bin/libs/select/nummultiselect-prompt.js +0 -105
- package/bin/libs/select/numselect-prompt.d.ts +0 -7
- package/bin/libs/select/numselect-prompt.js +0 -115
- package/bin/libs/select/select-alias.d.ts +0 -9
- package/bin/libs/select/select-alias.js +0 -9
- package/bin/libs/select/select-prompt.d.ts +0 -5
- package/bin/libs/select/select-prompt.js +0 -314
- package/bin/libs/select/toggle-prompt.d.ts +0 -5
- package/bin/libs/select/toggle-prompt.js +0 -209
- package/bin/libs/spinner/spinner-alias.d.ts +0 -1
- package/bin/libs/spinner/spinner-alias.js +0 -2
- package/bin/libs/spinner/spinner-mod.d.ts +0 -106
- package/bin/libs/spinner/spinner-mod.js +0 -265
- package/bin/libs/task/progress.d.ts +0 -2
- package/bin/libs/task/progress.js +0 -57
- package/bin/libs/task/task-spin.d.ts +0 -15
- package/bin/libs/task/task-spin.js +0 -110
- package/bin/libs/utils/colorize.d.ts +0 -2
- package/bin/libs/utils/colorize.js +0 -135
- package/bin/libs/utils/errors.d.ts +0 -1
- package/bin/libs/utils/errors.js +0 -17
- package/bin/libs/utils/prevent.d.ts +0 -8
- package/bin/libs/utils/prevent.js +0 -65
- package/bin/libs/utils/prompt-end.d.ts +0 -8
- package/bin/libs/utils/prompt-end.js +0 -34
- package/bin/libs/utils/stream-text.d.ts +0 -18
- package/bin/libs/utils/stream-text.js +0 -136
- package/bin/libs/utils/system.d.ts +0 -6
- package/bin/libs/utils/system.js +0 -7
- package/bin/libs/utils/validate.d.ts +0 -21
- package/bin/libs/utils/validate.js +0 -17
- package/bin/libs/visual/visual-mod.d.ts +0 -6
- package/bin/libs/visual/visual-mod.js +0 -13
- package/bin/mod.d.ts +0 -69
- package/bin/mod.js +0 -159
- package/bin/types.d.ts +0 -371
- package/bin/types.js +0 -0
package/bin/mod.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
export { animationMap, animateText } from "./libs/animate/animate-mod.js";
|
|
2
|
-
export { anykeyPrompt } from "./libs/anykey/anykey-mod.js";
|
|
3
|
-
export type { CancelValue } from "./libs/cancel/cancel.js";
|
|
4
|
-
export { CANCEL, isWindows, setRawMode, getColumns, block, isCancel, cancel, createCancel, } from "./libs/cancel/cancel.js";
|
|
5
|
-
export { confirm } from "./libs/confirm/confirm-alias.js";
|
|
6
|
-
export { confirmPrompt } from "./libs/confirm/confirm-mod.js";
|
|
7
|
-
export { datePrompt } from "./libs/date/date.js";
|
|
8
|
-
export { startEditor } from "./libs/editor/editor-mod.js";
|
|
9
|
-
export { mainSymbols, fallbackSymbols, figures, } from "./libs/figures/figures-mod.js";
|
|
10
|
-
export type { GroupOptions, GroupContext, GroupStep, GroupSteps, } from "./libs/group/group-mod.js";
|
|
11
|
-
export { group, createStep, createMultiStep } from "./libs/group/group-mod.js";
|
|
12
|
-
export { input, text, password } from "./libs/input/input-alias.js";
|
|
13
|
-
export { inputPrompt } from "./libs/input/input-mod.js";
|
|
14
|
-
export { startPrompt, intro } from "./libs/intro/intro-alias.js";
|
|
15
|
-
export { introPrompt } from "./libs/intro/intro-mod.js";
|
|
16
|
-
export { loadCommand } from "./libs/launcher/command-runner.js";
|
|
17
|
-
export { argsToStringArray, createCallCmd, createGetTypedCmd, callCmdImpl, getTypedCmdImpl, } from "./libs/launcher/command-typed.js";
|
|
18
|
-
export { runMain } from "./libs/launcher/launcher-alias.js";
|
|
19
|
-
export { defineCommand, showUsage, createCli, defineArgs, runCmdWithSubcommands, runCmd, } from "./libs/launcher/launcher-mod.js";
|
|
20
|
-
export type { EmptyArgs, BaseArgProps, BaseArgDefinition, PositionalArgDefinition, BooleanArgDefinition, StringArgDefinition, NumberArgDefinition, ArrayArgDefinition, ArgDefinition, ArgDefinitions, CommandMeta, CommandSpec, CommandsMap, CommandContext, CommandRun, CommandHook, DefineCommandOptions, Command, InferArgTypes, FileBasedOptions, } from "./libs/launcher/launcher-types.js";
|
|
21
|
-
export { addCompletions } from "./libs/launcher/trpc-orpc-support/completions.js";
|
|
22
|
-
export { CliValidationError, FailedToExitError, } from "./libs/launcher/trpc-orpc-support/errors.js";
|
|
23
|
-
export { TrpcCommand, parseRouter, createRpcCli, z, } from "./libs/launcher/trpc-orpc-support/index.js";
|
|
24
|
-
export { flattenedProperties, incompatiblePropertyPairs, getDescription, getSchemaTypes, getEnumChoices, } from "./libs/launcher/trpc-orpc-support/json-schema.js";
|
|
25
|
-
export type { CommandJSON } from "./libs/launcher/trpc-orpc-support/json.js";
|
|
26
|
-
export { commandToJSON } from "./libs/launcher/trpc-orpc-support/json.js";
|
|
27
|
-
export { lineByLineLogger, lineByLineConsoleLogger, } from "./libs/launcher/trpc-orpc-support/logging.js";
|
|
28
|
-
export { parseProcedureInputs } from "./libs/launcher/trpc-orpc-support/parse-procedure.js";
|
|
29
|
-
export { createShadowCommand, promptify, } from "./libs/launcher/trpc-orpc-support/prompts.js";
|
|
30
|
-
export type { StandardSchemaV1, StandardSchemaV1Props, StandardSchemaV1Result, StandardSchemaV1SuccessResult, StandardSchemaV1FailureResult, StandardSchemaV1Issue, StandardSchemaV1PathSegment, StandardSchemaV1Types, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, } from "./libs/launcher/trpc-orpc-support/standard-schema/contract.js";
|
|
31
|
-
export { prettifyStandardSchemaError, toDotPath, StandardSchemaV1Error, } from "./libs/launcher/trpc-orpc-support/standard-schema/errors.js";
|
|
32
|
-
export { looksLikeStandardSchemaFailure, looksLikeStandardSchema, } from "./libs/launcher/trpc-orpc-support/standard-schema/utils.js";
|
|
33
|
-
export type { Trpc11RouterLike, Trpc11ProcedureRecordLike, Trpc11ProcedureLike, Trpc10RouterLike, Trpc10ProcedureLike, OrpcProcedureLike, OrpcRouterLike, CreateCallerFactoryLike, AnyRouter, AnyProcedure, inferRouterContext, } from "./libs/launcher/trpc-orpc-support/trpc-compat.js";
|
|
34
|
-
export { isTrpc11Procedure, isTrpc11Router, isOrpcRouter, } from "./libs/launcher/trpc-orpc-support/trpc-compat.js";
|
|
35
|
-
export type { TrpcCliParams, TrpcServerModuleLike, TrpcCliMeta, ParsedProcedure, Result, Log, Logger, OmeletteInstanceLike, InquirerPromptOptions, InquirerPromptsLike, PromptsLike, EnquirerLike, ClackPromptsLike, Promptable, TrpcCliRunParams, CommanderProgramLike, TrpcCli, Dependencies, PromptContext, Prompter, } from "./libs/launcher/trpc-orpc-support/types.js";
|
|
36
|
-
export { looksLikeInstanceof } from "./libs/launcher/trpc-orpc-support/util.js";
|
|
37
|
-
export { log } from "./libs/log/log-alias.js";
|
|
38
|
-
export { toBaseColor, toSolidColor } from "./libs/msg-fmt/colors.js";
|
|
39
|
-
export { relinkaByRemptsDeprecated, relinkaAsyncByRemptsDeprecated, throwError, } from "./libs/msg-fmt/logger.js";
|
|
40
|
-
export { colorMap, typographyMap } from "./libs/msg-fmt/mapping.js";
|
|
41
|
-
export { symbols, bar, fmt, msg, msgUndo, msgUndoAll, printLineBar, } from "./libs/msg-fmt/messages.js";
|
|
42
|
-
export { getTerminalHeight, getExactTerminalWidth, getTerminalWidth, breakLines, removeCursor, restoreCursor, deleteLastLine, deleteLastLines, countLines, } from "./libs/msg-fmt/terminal.js";
|
|
43
|
-
export { variantMap, isValidVariant, applyVariant, } from "./libs/msg-fmt/variants.js";
|
|
44
|
-
export { multiselect } from "./libs/multiselect/multiselect-alias.js";
|
|
45
|
-
export { multiselectPrompt } from "./libs/multiselect/multiselect-prompt.js";
|
|
46
|
-
export { nextStepsPrompt } from "./libs/next-steps/next-steps.js";
|
|
47
|
-
export { numberPrompt } from "./libs/number/number-mod.js";
|
|
48
|
-
export { endPrompt, outro } from "./libs/outro/outro-alias.js";
|
|
49
|
-
export { outroPrompt } from "./libs/outro/outro-mod.js";
|
|
50
|
-
export type { ResultsType } from "./libs/results/results.js";
|
|
51
|
-
export { resultPrompt } from "./libs/results/results.js";
|
|
52
|
-
export { numMultiSelectPrompt } from "./libs/select/nummultiselect-prompt.js";
|
|
53
|
-
export { numSelectPrompt } from "./libs/select/numselect-prompt.js";
|
|
54
|
-
export { select, selectSimple } from "./libs/select/select-alias.js";
|
|
55
|
-
export { selectPrompt } from "./libs/select/select-prompt.js";
|
|
56
|
-
export { togglePrompt } from "./libs/select/toggle-prompt.js";
|
|
57
|
-
export { spinner } from "./libs/spinner/spinner-alias.js";
|
|
58
|
-
export { useSpinner } from "./libs/spinner/spinner-mod.js";
|
|
59
|
-
export { taskProgressPrompt } from "./libs/task/progress.js";
|
|
60
|
-
export { taskSpinPrompt } from "./libs/task/task-spin.js";
|
|
61
|
-
export { colorize } from "./libs/utils/colorize.js";
|
|
62
|
-
export { errorHandler } from "./libs/utils/errors.js";
|
|
63
|
-
export { preventUnsupportedTTY, preventWindowsHomeDirRoot, preventWrongTerminalSize, } from "./libs/utils/prevent.js";
|
|
64
|
-
export { completePrompt, renderEndLine, renderEndLineInput, } from "./libs/utils/prompt-end.js";
|
|
65
|
-
export { streamText, streamTextBox, streamTextWithSpinner, } from "./libs/utils/stream-text.js";
|
|
66
|
-
export { pm, reliversePrompts } from "./libs/utils/system.js";
|
|
67
|
-
export { isTerminalInteractive, isValidName, normalizeName, } from "./libs/utils/validate.js";
|
|
68
|
-
export { createAsciiArt } from "./libs/visual/visual-mod.js";
|
|
69
|
-
export type { MsgType, TypographyName, BorderColorName, ColorName, VariantName, MsgConfig, PromptOptions, ChoiceOptions, SelectOption, StandardColor, OutputColor, EditorExitResult, MessageKind, AllKinds, MessageConfig, StreamOptions, ProgressBarOptions, ProgressBar, PromptType, ConfirmPromptOptions, StreamTextOptions, PreventWrongTerminalSizeOptions, InputPromptOptions, RenderParams, SymbolName, Symbols, FmtMsgOptions, TogglePromptParams, SeparatorOption, SelectPromptParams, MultiselectPromptParams, DatePromptOptions, } from "./types.js";
|
package/bin/mod.js
DELETED
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
export { animationMap, animateText } from "./libs/animate/animate-mod.js";
|
|
2
|
-
export { anykeyPrompt } from "./libs/anykey/anykey-mod.js";
|
|
3
|
-
export {
|
|
4
|
-
CANCEL,
|
|
5
|
-
isWindows,
|
|
6
|
-
setRawMode,
|
|
7
|
-
getColumns,
|
|
8
|
-
block,
|
|
9
|
-
isCancel,
|
|
10
|
-
cancel,
|
|
11
|
-
createCancel
|
|
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
|
-
mainSymbols,
|
|
19
|
-
fallbackSymbols,
|
|
20
|
-
figures
|
|
21
|
-
} from "./libs/figures/figures-mod.js";
|
|
22
|
-
export { group, createStep, createMultiStep } from "./libs/group/group-mod.js";
|
|
23
|
-
export { input, text, password } from "./libs/input/input-alias.js";
|
|
24
|
-
export { inputPrompt } from "./libs/input/input-mod.js";
|
|
25
|
-
export { startPrompt, intro } from "./libs/intro/intro-alias.js";
|
|
26
|
-
export { introPrompt } from "./libs/intro/intro-mod.js";
|
|
27
|
-
export { loadCommand } from "./libs/launcher/command-runner.js";
|
|
28
|
-
export {
|
|
29
|
-
argsToStringArray,
|
|
30
|
-
createCallCmd,
|
|
31
|
-
createGetTypedCmd,
|
|
32
|
-
callCmdImpl,
|
|
33
|
-
getTypedCmdImpl
|
|
34
|
-
} from "./libs/launcher/command-typed.js";
|
|
35
|
-
export { runMain } from "./libs/launcher/launcher-alias.js";
|
|
36
|
-
export {
|
|
37
|
-
defineCommand,
|
|
38
|
-
showUsage,
|
|
39
|
-
createCli,
|
|
40
|
-
defineArgs,
|
|
41
|
-
runCmdWithSubcommands,
|
|
42
|
-
runCmd
|
|
43
|
-
} from "./libs/launcher/launcher-mod.js";
|
|
44
|
-
export { addCompletions } from "./libs/launcher/trpc-orpc-support/completions.js";
|
|
45
|
-
export {
|
|
46
|
-
CliValidationError,
|
|
47
|
-
FailedToExitError
|
|
48
|
-
} from "./libs/launcher/trpc-orpc-support/errors.js";
|
|
49
|
-
export {
|
|
50
|
-
TrpcCommand,
|
|
51
|
-
parseRouter,
|
|
52
|
-
createRpcCli,
|
|
53
|
-
z
|
|
54
|
-
} from "./libs/launcher/trpc-orpc-support/index.js";
|
|
55
|
-
export {
|
|
56
|
-
flattenedProperties,
|
|
57
|
-
incompatiblePropertyPairs,
|
|
58
|
-
getDescription,
|
|
59
|
-
getSchemaTypes,
|
|
60
|
-
getEnumChoices
|
|
61
|
-
} from "./libs/launcher/trpc-orpc-support/json-schema.js";
|
|
62
|
-
export { commandToJSON } from "./libs/launcher/trpc-orpc-support/json.js";
|
|
63
|
-
export {
|
|
64
|
-
lineByLineLogger,
|
|
65
|
-
lineByLineConsoleLogger
|
|
66
|
-
} from "./libs/launcher/trpc-orpc-support/logging.js";
|
|
67
|
-
export { parseProcedureInputs } from "./libs/launcher/trpc-orpc-support/parse-procedure.js";
|
|
68
|
-
export {
|
|
69
|
-
createShadowCommand,
|
|
70
|
-
promptify
|
|
71
|
-
} from "./libs/launcher/trpc-orpc-support/prompts.js";
|
|
72
|
-
export {
|
|
73
|
-
prettifyStandardSchemaError,
|
|
74
|
-
toDotPath,
|
|
75
|
-
StandardSchemaV1Error
|
|
76
|
-
} from "./libs/launcher/trpc-orpc-support/standard-schema/errors.js";
|
|
77
|
-
export {
|
|
78
|
-
looksLikeStandardSchemaFailure,
|
|
79
|
-
looksLikeStandardSchema
|
|
80
|
-
} from "./libs/launcher/trpc-orpc-support/standard-schema/utils.js";
|
|
81
|
-
export {
|
|
82
|
-
isTrpc11Procedure,
|
|
83
|
-
isTrpc11Router,
|
|
84
|
-
isOrpcRouter
|
|
85
|
-
} from "./libs/launcher/trpc-orpc-support/trpc-compat.js";
|
|
86
|
-
export { looksLikeInstanceof } from "./libs/launcher/trpc-orpc-support/util.js";
|
|
87
|
-
export { log } from "./libs/log/log-alias.js";
|
|
88
|
-
export { toBaseColor, toSolidColor } from "./libs/msg-fmt/colors.js";
|
|
89
|
-
export {
|
|
90
|
-
relinkaByRemptsDeprecated,
|
|
91
|
-
relinkaAsyncByRemptsDeprecated,
|
|
92
|
-
throwError
|
|
93
|
-
} from "./libs/msg-fmt/logger.js";
|
|
94
|
-
export { colorMap, typographyMap } from "./libs/msg-fmt/mapping.js";
|
|
95
|
-
export {
|
|
96
|
-
symbols,
|
|
97
|
-
bar,
|
|
98
|
-
fmt,
|
|
99
|
-
msg,
|
|
100
|
-
msgUndo,
|
|
101
|
-
msgUndoAll,
|
|
102
|
-
printLineBar
|
|
103
|
-
} from "./libs/msg-fmt/messages.js";
|
|
104
|
-
export {
|
|
105
|
-
getTerminalHeight,
|
|
106
|
-
getExactTerminalWidth,
|
|
107
|
-
getTerminalWidth,
|
|
108
|
-
breakLines,
|
|
109
|
-
removeCursor,
|
|
110
|
-
restoreCursor,
|
|
111
|
-
deleteLastLine,
|
|
112
|
-
deleteLastLines,
|
|
113
|
-
countLines
|
|
114
|
-
} from "./libs/msg-fmt/terminal.js";
|
|
115
|
-
export {
|
|
116
|
-
variantMap,
|
|
117
|
-
isValidVariant,
|
|
118
|
-
applyVariant
|
|
119
|
-
} from "./libs/msg-fmt/variants.js";
|
|
120
|
-
export { multiselect } from "./libs/multiselect/multiselect-alias.js";
|
|
121
|
-
export { multiselectPrompt } from "./libs/multiselect/multiselect-prompt.js";
|
|
122
|
-
export { nextStepsPrompt } from "./libs/next-steps/next-steps.js";
|
|
123
|
-
export { numberPrompt } from "./libs/number/number-mod.js";
|
|
124
|
-
export { endPrompt, outro } from "./libs/outro/outro-alias.js";
|
|
125
|
-
export { outroPrompt } from "./libs/outro/outro-mod.js";
|
|
126
|
-
export { resultPrompt } from "./libs/results/results.js";
|
|
127
|
-
export { numMultiSelectPrompt } from "./libs/select/nummultiselect-prompt.js";
|
|
128
|
-
export { numSelectPrompt } from "./libs/select/numselect-prompt.js";
|
|
129
|
-
export { select, selectSimple } from "./libs/select/select-alias.js";
|
|
130
|
-
export { selectPrompt } from "./libs/select/select-prompt.js";
|
|
131
|
-
export { togglePrompt } from "./libs/select/toggle-prompt.js";
|
|
132
|
-
export { spinner } from "./libs/spinner/spinner-alias.js";
|
|
133
|
-
export { useSpinner } from "./libs/spinner/spinner-mod.js";
|
|
134
|
-
export { taskProgressPrompt } from "./libs/task/progress.js";
|
|
135
|
-
export { taskSpinPrompt } from "./libs/task/task-spin.js";
|
|
136
|
-
export { colorize } from "./libs/utils/colorize.js";
|
|
137
|
-
export { errorHandler } from "./libs/utils/errors.js";
|
|
138
|
-
export {
|
|
139
|
-
preventUnsupportedTTY,
|
|
140
|
-
preventWindowsHomeDirRoot,
|
|
141
|
-
preventWrongTerminalSize
|
|
142
|
-
} from "./libs/utils/prevent.js";
|
|
143
|
-
export {
|
|
144
|
-
completePrompt,
|
|
145
|
-
renderEndLine,
|
|
146
|
-
renderEndLineInput
|
|
147
|
-
} from "./libs/utils/prompt-end.js";
|
|
148
|
-
export {
|
|
149
|
-
streamText,
|
|
150
|
-
streamTextBox,
|
|
151
|
-
streamTextWithSpinner
|
|
152
|
-
} from "./libs/utils/stream-text.js";
|
|
153
|
-
export { pm, reliversePrompts } from "./libs/utils/system.js";
|
|
154
|
-
export {
|
|
155
|
-
isTerminalInteractive,
|
|
156
|
-
isValidName,
|
|
157
|
-
normalizeName
|
|
158
|
-
} from "./libs/utils/validate.js";
|
|
159
|
-
export { createAsciiArt } from "./libs/visual/visual-mod.js";
|
package/bin/types.d.ts
DELETED
|
@@ -1,371 +0,0 @@
|
|
|
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
DELETED
|
File without changes
|