@reliverse/rempts 1.7.29 → 1.7.31
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 +141 -29
- package/bin/{components/animate/animate.js → libs/animate/animate-mod.js} +1 -4
- package/bin/{components → libs}/anykey/anykey-mod.js +2 -2
- package/bin/libs/confirm/confirm-alias.d.ts +1 -0
- package/bin/libs/confirm/confirm-alias.js +2 -0
- package/bin/{components/confirm/confirm-prompt.js → libs/confirm/confirm-mod.js} +1 -1
- package/bin/{components → libs}/editor/editor-mod.js +8 -8
- package/bin/{components → libs}/figures/figures-mod.d.ts +2 -3
- package/bin/{components → libs}/figures/figures-mod.js +1 -2
- package/bin/libs/input/input-alias.d.ts +4 -0
- package/bin/libs/input/input-alias.js +4 -0
- package/bin/{components/input/input-prompt.js → libs/input/input-mod.js} +2 -2
- package/bin/libs/intro/intro-alias.d.ts +2 -0
- package/bin/libs/intro/intro-alias.js +3 -0
- package/bin/{components/intro/intro-start.js → libs/intro/intro-mod.js} +3 -3
- 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 +114 -0
- package/bin/{components → libs}/launcher/launcher-mod.js +355 -191
- package/bin/{components → libs}/launcher/launcher-types.d.ts +1 -1
- package/bin/libs/launcher/trpc-orpc-support/completions.d.ts +4 -0
- package/bin/libs/launcher/trpc-orpc-support/completions.js +45 -0
- package/bin/libs/launcher/trpc-orpc-support/errors.d.ts +11 -0
- package/bin/libs/launcher/trpc-orpc-support/errors.js +10 -0
- package/bin/libs/launcher/trpc-orpc-support/index.d.ts +34 -0
- package/bin/libs/launcher/trpc-orpc-support/index.js +641 -0
- package/bin/libs/launcher/trpc-orpc-support/json-schema.d.ts +17 -0
- package/bin/libs/launcher/trpc-orpc-support/json-schema.js +168 -0
- package/bin/libs/launcher/trpc-orpc-support/json.d.ts +44 -0
- package/bin/libs/launcher/trpc-orpc-support/json.js +41 -0
- package/bin/libs/launcher/trpc-orpc-support/logging.d.ts +11 -0
- package/bin/libs/launcher/trpc-orpc-support/logging.js +26 -0
- package/bin/libs/launcher/trpc-orpc-support/parse-procedure.d.ts +2 -0
- package/bin/libs/launcher/trpc-orpc-support/parse-procedure.js +486 -0
- package/bin/libs/launcher/trpc-orpc-support/prompts.d.ts +18 -0
- package/bin/libs/launcher/trpc-orpc-support/prompts.js +534 -0
- package/bin/libs/launcher/trpc-orpc-support/standard-schema/contract.d.ts +53 -0
- 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 +9 -0
- package/bin/libs/launcher/trpc-orpc-support/standard-schema/errors.js +47 -0
- package/bin/libs/launcher/trpc-orpc-support/standard-schema/utils.d.ts +3 -0
- package/bin/libs/launcher/trpc-orpc-support/standard-schema/utils.js +6 -0
- package/bin/libs/launcher/trpc-orpc-support/trpc-compat.d.ts +71 -0
- package/bin/libs/launcher/trpc-orpc-support/trpc-compat.js +11 -0
- package/bin/libs/launcher/trpc-orpc-support/types.d.ts +276 -0
- package/bin/libs/launcher/trpc-orpc-support/types.js +0 -0
- package/bin/libs/launcher/trpc-orpc-support/util.d.ts +9 -0
- package/bin/libs/launcher/trpc-orpc-support/util.js +9 -0
- package/bin/{components → libs}/msg-fmt/logger.js +1 -1
- package/bin/libs/multiselect/multiselect-alias.d.ts +1 -0
- package/bin/libs/multiselect/multiselect-alias.js +2 -0
- package/bin/{components/select → libs/multiselect}/multiselect-prompt.js +1 -1
- package/bin/{components → libs}/number/number-mod.js +1 -4
- package/bin/libs/outro/outro-alias.d.ts +2 -0
- package/bin/libs/outro/outro-alias.js +3 -0
- package/bin/{components/outro/outro-end.js → libs/outro/outro-mod.js} +2 -2
- package/bin/libs/select/aliases-alias.d.ts +1 -0
- package/bin/libs/select/aliases-alias.js +2 -0
- package/bin/{components → libs}/select/select-prompt.js +2 -2
- package/bin/{components → libs}/select/toggle-prompt.js +1 -1
- package/bin/libs/spinner/spinner-alias.d.ts +1 -0
- package/bin/libs/spinner/spinner-alias.js +2 -0
- package/bin/{components → libs}/spinner/spinner-mod.js +3 -1
- package/bin/{components → libs}/task/task-spin.js +1 -1
- package/bin/{utils → libs/utils}/colorize.d.ts +1 -1
- package/bin/{utils → libs/utils}/prevent.d.ts +1 -1
- package/bin/{utils → libs/utils}/prevent.js +2 -2
- package/bin/{utils → libs/utils}/prompt-end.d.ts +1 -1
- package/bin/{utils → libs/utils}/prompt-end.js +2 -2
- package/bin/{utils → libs/utils}/stream-text.d.ts +1 -1
- package/bin/{utils → libs/utils}/stream-text.js +2 -2
- package/bin/mod.d.ts +66 -41
- package/bin/mod.js +102 -66
- package/package.json +17 -2
- package/bin/components/aliases/aliases-mod.d.ts +0 -11
- package/bin/components/aliases/aliases-mod.js +0 -16
- package/bin/components/launcher/launcher-mod.d.ts +0 -52
- /package/bin/{components/animate/animate.d.ts → libs/animate/animate-mod.d.ts} +0 -0
- /package/bin/{components → libs}/anykey/anykey-mod.d.ts +0 -0
- /package/bin/{components → libs}/cancel/cancel.d.ts +0 -0
- /package/bin/{components → libs}/cancel/cancel.js +0 -0
- /package/bin/{components/confirm/confirm-prompt.d.ts → libs/confirm/confirm-mod.d.ts} +0 -0
- /package/bin/{components → libs}/date/date.d.ts +0 -0
- /package/bin/{components → libs}/date/date.js +0 -0
- /package/bin/{components → libs}/editor/editor-mod.d.ts +0 -0
- /package/bin/{components/input/input-prompt.d.ts → libs/input/input-mod.d.ts} +0 -0
- /package/bin/{components/intro/intro-start.d.ts → libs/intro/intro-mod.d.ts} +0 -0
- /package/bin/{components → libs}/launcher/launcher-types.js +0 -0
- /package/bin/{components → libs}/launcher/run-command.d.ts +0 -0
- /package/bin/{components → libs}/launcher/run-command.js +0 -0
- /package/bin/{components/log/log.d.ts → libs/log/log-alias.d.ts} +0 -0
- /package/bin/{components/log/log.js → libs/log/log-alias.js} +0 -0
- /package/bin/{components → libs}/msg-fmt/colors.d.ts +0 -0
- /package/bin/{components → libs}/msg-fmt/colors.js +0 -0
- /package/bin/{components → libs}/msg-fmt/logger.d.ts +0 -0
- /package/bin/{components → libs}/msg-fmt/mapping.d.ts +0 -0
- /package/bin/{components → libs}/msg-fmt/mapping.js +0 -0
- /package/bin/{components → libs}/msg-fmt/messages.d.ts +0 -0
- /package/bin/{components → libs}/msg-fmt/messages.js +0 -0
- /package/bin/{components → libs}/msg-fmt/terminal.d.ts +0 -0
- /package/bin/{components → libs}/msg-fmt/terminal.js +0 -0
- /package/bin/{components → libs}/msg-fmt/variants.d.ts +0 -0
- /package/bin/{components → libs}/msg-fmt/variants.js +0 -0
- /package/bin/{components/select → libs/multiselect}/multiselect-prompt.d.ts +0 -0
- /package/bin/{components → libs}/next-steps/next-steps.d.ts +0 -0
- /package/bin/{components → libs}/next-steps/next-steps.js +0 -0
- /package/bin/{components → libs}/number/number-mod.d.ts +0 -0
- /package/bin/{components/outro/outro-end.d.ts → libs/outro/outro-mod.d.ts} +0 -0
- /package/bin/{components → libs}/results/results.d.ts +0 -0
- /package/bin/{components → libs}/results/results.js +0 -0
- /package/bin/{components → libs}/select/nummultiselect-prompt.d.ts +0 -0
- /package/bin/{components → libs}/select/nummultiselect-prompt.js +0 -0
- /package/bin/{components → libs}/select/numselect-prompt.d.ts +0 -0
- /package/bin/{components → libs}/select/numselect-prompt.js +0 -0
- /package/bin/{components → libs}/select/select-prompt.d.ts +0 -0
- /package/bin/{components → libs}/select/toggle-prompt.d.ts +0 -0
- /package/bin/{components → libs}/spinner/spinner-mod.d.ts +0 -0
- /package/bin/{components → libs}/task/progress.d.ts +0 -0
- /package/bin/{components → libs}/task/progress.js +0 -0
- /package/bin/{components → libs}/task/task-spin.d.ts +0 -0
- /package/bin/{utils → libs/utils}/colorize.js +0 -0
- /package/bin/{utils → libs/utils}/errors.d.ts +0 -0
- /package/bin/{utils → libs/utils}/errors.js +0 -0
- /package/bin/{utils → libs/utils}/system.d.ts +0 -0
- /package/bin/{utils → libs/utils}/system.js +0 -0
- /package/bin/{utils → libs/utils}/validate.d.ts +0 -0
- /package/bin/{utils → libs/utils}/validate.js +0 -0
- /package/bin/{components/ascii-art/ascii-art.d.ts → libs/visual/visual-mod.d.ts} +0 -0
- /package/bin/{components/ascii-art/ascii-art.js → libs/visual/visual-mod.js} +0 -0
package/bin/mod.d.ts
CHANGED
|
@@ -1,41 +1,66 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
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 { input, text, password } from "./libs/input/input-alias.js";
|
|
11
|
+
export { inputPrompt } from "./libs/input/input-mod.js";
|
|
12
|
+
export { startPrompt, intro } from "./libs/intro/intro-alias.js";
|
|
13
|
+
export { introPrompt } from "./libs/intro/intro-mod.js";
|
|
14
|
+
export { runMain } from "./libs/launcher/launcher-alias.js";
|
|
15
|
+
export { defineCommand, showUsage, createCli, defineArgs, runCmd, } from "./libs/launcher/launcher-mod.js";
|
|
16
|
+
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";
|
|
17
|
+
export { loadCommand } from "./libs/launcher/run-command.js";
|
|
18
|
+
export { addCompletions } from "./libs/launcher/trpc-orpc-support/completions.js";
|
|
19
|
+
export { CliValidationError, FailedToExitError, } from "./libs/launcher/trpc-orpc-support/errors.js";
|
|
20
|
+
export { TrpcCommand, parseRouter, createRpcCli, z, } from "./libs/launcher/trpc-orpc-support/index.js";
|
|
21
|
+
export { flattenedProperties, incompatiblePropertyPairs, getDescription, getSchemaTypes, getEnumChoices, } from "./libs/launcher/trpc-orpc-support/json-schema.js";
|
|
22
|
+
export type { CommandJSON } from "./libs/launcher/trpc-orpc-support/json.js";
|
|
23
|
+
export { commandToJSON } from "./libs/launcher/trpc-orpc-support/json.js";
|
|
24
|
+
export { lineByLineLogger, lineByLineConsoleLogger, } from "./libs/launcher/trpc-orpc-support/logging.js";
|
|
25
|
+
export { parseProcedureInputs } from "./libs/launcher/trpc-orpc-support/parse-procedure.js";
|
|
26
|
+
export { createShadowCommand, promptify, } from "./libs/launcher/trpc-orpc-support/prompts.js";
|
|
27
|
+
export type { StandardSchemaV1, StandardSchemaV1Props, StandardSchemaV1Result, StandardSchemaV1SuccessResult, StandardSchemaV1FailureResult, StandardSchemaV1Issue, StandardSchemaV1PathSegment, StandardSchemaV1Types, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, } from "./libs/launcher/trpc-orpc-support/standard-schema/contract.js";
|
|
28
|
+
export { prettifyStandardSchemaError, toDotPath, StandardSchemaV1Error, } from "./libs/launcher/trpc-orpc-support/standard-schema/errors.js";
|
|
29
|
+
export { looksLikeStandardSchemaFailure, looksLikeStandardSchema, } from "./libs/launcher/trpc-orpc-support/standard-schema/utils.js";
|
|
30
|
+
export type { Trpc11RouterLike, Trpc11ProcedureRecordLike, Trpc11ProcedureLike, Trpc10RouterLike, Trpc10ProcedureLike, OrpcProcedureLike, OrpcRouterLike, CreateCallerFactoryLike, AnyRouter, AnyProcedure, inferRouterContext, } from "./libs/launcher/trpc-orpc-support/trpc-compat.js";
|
|
31
|
+
export { isTrpc11Procedure, isTrpc11Router, isOrpcRouter, } from "./libs/launcher/trpc-orpc-support/trpc-compat.js";
|
|
32
|
+
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";
|
|
33
|
+
export { looksLikeInstanceof } from "./libs/launcher/trpc-orpc-support/util.js";
|
|
34
|
+
export { log } from "./libs/log/log-alias.js";
|
|
35
|
+
export { toBaseColor, toSolidColor } from "./libs/msg-fmt/colors.js";
|
|
36
|
+
export { relinkaByRemptsDeprecated, relinkaAsyncByRemptsDeprecated, throwError, } from "./libs/msg-fmt/logger.js";
|
|
37
|
+
export { colorMap, typographyMap } from "./libs/msg-fmt/mapping.js";
|
|
38
|
+
export { symbols, bar, fmt, msg, msgUndo, msgUndoAll, printLineBar, } from "./libs/msg-fmt/messages.js";
|
|
39
|
+
export { getTerminalHeight, getExactTerminalWidth, getTerminalWidth, breakLines, removeCursor, restoreCursor, deleteLastLine, deleteLastLines, countLines, } from "./libs/msg-fmt/terminal.js";
|
|
40
|
+
export { variantMap, isValidVariant, applyVariant, } from "./libs/msg-fmt/variants.js";
|
|
41
|
+
export { multiselect } from "./libs/multiselect/multiselect-alias.js";
|
|
42
|
+
export { multiselectPrompt } from "./libs/multiselect/multiselect-prompt.js";
|
|
43
|
+
export { nextStepsPrompt } from "./libs/next-steps/next-steps.js";
|
|
44
|
+
export { numberPrompt } from "./libs/number/number-mod.js";
|
|
45
|
+
export { endPrompt, outro } from "./libs/outro/outro-alias.js";
|
|
46
|
+
export { outroPrompt } from "./libs/outro/outro-mod.js";
|
|
47
|
+
export type { ResultsType } from "./libs/results/results.js";
|
|
48
|
+
export { resultPrompt } from "./libs/results/results.js";
|
|
49
|
+
export { select } from "./libs/select/aliases-alias.js";
|
|
50
|
+
export { numMultiSelectPrompt } from "./libs/select/nummultiselect-prompt.js";
|
|
51
|
+
export { numSelectPrompt } from "./libs/select/numselect-prompt.js";
|
|
52
|
+
export { selectPrompt } from "./libs/select/select-prompt.js";
|
|
53
|
+
export { togglePrompt } from "./libs/select/toggle-prompt.js";
|
|
54
|
+
export { spinner } from "./libs/spinner/spinner-alias.js";
|
|
55
|
+
export { useSpinner } from "./libs/spinner/spinner-mod.js";
|
|
56
|
+
export { taskProgressPrompt } from "./libs/task/progress.js";
|
|
57
|
+
export { taskSpinPrompt } from "./libs/task/task-spin.js";
|
|
58
|
+
export { colorize } from "./libs/utils/colorize.js";
|
|
59
|
+
export { errorHandler } from "./libs/utils/errors.js";
|
|
60
|
+
export { preventUnsupportedTTY, preventWindowsHomeDirRoot, preventWrongTerminalSize, } from "./libs/utils/prevent.js";
|
|
61
|
+
export { completePrompt, renderEndLine, renderEndLineInput, } from "./libs/utils/prompt-end.js";
|
|
62
|
+
export { streamText, streamTextBox, streamTextWithSpinner, } from "./libs/utils/stream-text.js";
|
|
63
|
+
export { pm, reliversePrompts } from "./libs/utils/system.js";
|
|
64
|
+
export { isTerminalInteractive, isValidName, normalizeName, } from "./libs/utils/validate.js";
|
|
65
|
+
export { createAsciiArt } from "./libs/visual/visual-mod.js";
|
|
66
|
+
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, MultiselectPromptParams, DatePromptOptions, } from "./types.js";
|
package/bin/mod.js
CHANGED
|
@@ -1,28 +1,88 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
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";
|
|
4
17
|
export {
|
|
5
18
|
mainSymbols,
|
|
6
|
-
fallbackSymbols
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export {
|
|
10
|
-
export
|
|
19
|
+
fallbackSymbols,
|
|
20
|
+
figures
|
|
21
|
+
} from "./libs/figures/figures-mod.js";
|
|
22
|
+
export { input, text, password } from "./libs/input/input-alias.js";
|
|
23
|
+
export { inputPrompt } from "./libs/input/input-mod.js";
|
|
24
|
+
export { startPrompt, intro } from "./libs/intro/intro-alias.js";
|
|
25
|
+
export { introPrompt } from "./libs/intro/intro-mod.js";
|
|
26
|
+
export { runMain } from "./libs/launcher/launcher-alias.js";
|
|
11
27
|
export {
|
|
12
28
|
defineCommand,
|
|
13
|
-
defineArgs,
|
|
14
29
|
showUsage,
|
|
15
|
-
|
|
30
|
+
createCli,
|
|
31
|
+
defineArgs,
|
|
16
32
|
runCmd
|
|
17
|
-
} from "./
|
|
18
|
-
export { loadCommand } from "./
|
|
19
|
-
export {
|
|
33
|
+
} from "./libs/launcher/launcher-mod.js";
|
|
34
|
+
export { loadCommand } from "./libs/launcher/run-command.js";
|
|
35
|
+
export { addCompletions } from "./libs/launcher/trpc-orpc-support/completions.js";
|
|
36
|
+
export {
|
|
37
|
+
CliValidationError,
|
|
38
|
+
FailedToExitError
|
|
39
|
+
} from "./libs/launcher/trpc-orpc-support/errors.js";
|
|
40
|
+
export {
|
|
41
|
+
TrpcCommand,
|
|
42
|
+
parseRouter,
|
|
43
|
+
createRpcCli,
|
|
44
|
+
z
|
|
45
|
+
} from "./libs/launcher/trpc-orpc-support/index.js";
|
|
46
|
+
export {
|
|
47
|
+
flattenedProperties,
|
|
48
|
+
incompatiblePropertyPairs,
|
|
49
|
+
getDescription,
|
|
50
|
+
getSchemaTypes,
|
|
51
|
+
getEnumChoices
|
|
52
|
+
} from "./libs/launcher/trpc-orpc-support/json-schema.js";
|
|
53
|
+
export { commandToJSON } from "./libs/launcher/trpc-orpc-support/json.js";
|
|
54
|
+
export {
|
|
55
|
+
lineByLineLogger,
|
|
56
|
+
lineByLineConsoleLogger
|
|
57
|
+
} from "./libs/launcher/trpc-orpc-support/logging.js";
|
|
58
|
+
export { parseProcedureInputs } from "./libs/launcher/trpc-orpc-support/parse-procedure.js";
|
|
59
|
+
export {
|
|
60
|
+
createShadowCommand,
|
|
61
|
+
promptify
|
|
62
|
+
} from "./libs/launcher/trpc-orpc-support/prompts.js";
|
|
63
|
+
export {
|
|
64
|
+
prettifyStandardSchemaError,
|
|
65
|
+
toDotPath,
|
|
66
|
+
StandardSchemaV1Error
|
|
67
|
+
} from "./libs/launcher/trpc-orpc-support/standard-schema/errors.js";
|
|
68
|
+
export {
|
|
69
|
+
looksLikeStandardSchemaFailure,
|
|
70
|
+
looksLikeStandardSchema
|
|
71
|
+
} from "./libs/launcher/trpc-orpc-support/standard-schema/utils.js";
|
|
72
|
+
export {
|
|
73
|
+
isTrpc11Procedure,
|
|
74
|
+
isTrpc11Router,
|
|
75
|
+
isOrpcRouter
|
|
76
|
+
} from "./libs/launcher/trpc-orpc-support/trpc-compat.js";
|
|
77
|
+
export { looksLikeInstanceof } from "./libs/launcher/trpc-orpc-support/util.js";
|
|
78
|
+
export { log } from "./libs/log/log-alias.js";
|
|
79
|
+
export { toBaseColor, toSolidColor } from "./libs/msg-fmt/colors.js";
|
|
20
80
|
export {
|
|
21
81
|
relinkaByRemptsDeprecated,
|
|
22
82
|
relinkaAsyncByRemptsDeprecated,
|
|
23
83
|
throwError
|
|
24
|
-
} from "./
|
|
25
|
-
export { colorMap, typographyMap } from "./
|
|
84
|
+
} from "./libs/msg-fmt/logger.js";
|
|
85
|
+
export { colorMap, typographyMap } from "./libs/msg-fmt/mapping.js";
|
|
26
86
|
export {
|
|
27
87
|
symbols,
|
|
28
88
|
bar,
|
|
@@ -31,7 +91,7 @@ export {
|
|
|
31
91
|
msgUndo,
|
|
32
92
|
msgUndoAll,
|
|
33
93
|
printLineBar
|
|
34
|
-
} from "./
|
|
94
|
+
} from "./libs/msg-fmt/messages.js";
|
|
35
95
|
export {
|
|
36
96
|
getTerminalHeight,
|
|
37
97
|
getExactTerminalWidth,
|
|
@@ -42,73 +102,49 @@ export {
|
|
|
42
102
|
deleteLastLine,
|
|
43
103
|
deleteLastLines,
|
|
44
104
|
countLines
|
|
45
|
-
} from "./
|
|
105
|
+
} from "./libs/msg-fmt/terminal.js";
|
|
46
106
|
export {
|
|
47
107
|
variantMap,
|
|
48
108
|
isValidVariant,
|
|
49
109
|
applyVariant
|
|
50
|
-
} from "./
|
|
51
|
-
export {
|
|
52
|
-
export {
|
|
53
|
-
export {
|
|
54
|
-
export {
|
|
55
|
-
export {
|
|
56
|
-
export {
|
|
57
|
-
export {
|
|
58
|
-
export {
|
|
59
|
-
export {
|
|
60
|
-
export {
|
|
61
|
-
export {
|
|
62
|
-
export {
|
|
63
|
-
export {
|
|
64
|
-
export {
|
|
110
|
+
} from "./libs/msg-fmt/variants.js";
|
|
111
|
+
export { multiselect } from "./libs/multiselect/multiselect-alias.js";
|
|
112
|
+
export { multiselectPrompt } from "./libs/multiselect/multiselect-prompt.js";
|
|
113
|
+
export { nextStepsPrompt } from "./libs/next-steps/next-steps.js";
|
|
114
|
+
export { numberPrompt } from "./libs/number/number-mod.js";
|
|
115
|
+
export { endPrompt, outro } from "./libs/outro/outro-alias.js";
|
|
116
|
+
export { outroPrompt } from "./libs/outro/outro-mod.js";
|
|
117
|
+
export { resultPrompt } from "./libs/results/results.js";
|
|
118
|
+
export { select } from "./libs/select/aliases-alias.js";
|
|
119
|
+
export { numMultiSelectPrompt } from "./libs/select/nummultiselect-prompt.js";
|
|
120
|
+
export { numSelectPrompt } from "./libs/select/numselect-prompt.js";
|
|
121
|
+
export { selectPrompt } from "./libs/select/select-prompt.js";
|
|
122
|
+
export { togglePrompt } from "./libs/select/toggle-prompt.js";
|
|
123
|
+
export { spinner } from "./libs/spinner/spinner-alias.js";
|
|
124
|
+
export { useSpinner } from "./libs/spinner/spinner-mod.js";
|
|
125
|
+
export { taskProgressPrompt } from "./libs/task/progress.js";
|
|
126
|
+
export { taskSpinPrompt } from "./libs/task/task-spin.js";
|
|
127
|
+
export { colorize } from "./libs/utils/colorize.js";
|
|
128
|
+
export { errorHandler } from "./libs/utils/errors.js";
|
|
65
129
|
export {
|
|
66
130
|
preventUnsupportedTTY,
|
|
67
131
|
preventWindowsHomeDirRoot,
|
|
68
132
|
preventWrongTerminalSize
|
|
69
|
-
} from "./utils/prevent.js";
|
|
133
|
+
} from "./libs/utils/prevent.js";
|
|
70
134
|
export {
|
|
71
135
|
completePrompt,
|
|
72
136
|
renderEndLine,
|
|
73
137
|
renderEndLineInput
|
|
74
|
-
} from "./utils/prompt-end.js";
|
|
138
|
+
} from "./libs/utils/prompt-end.js";
|
|
75
139
|
export {
|
|
76
140
|
streamText,
|
|
77
141
|
streamTextBox,
|
|
78
142
|
streamTextWithSpinner
|
|
79
|
-
} from "./utils/stream-text.js";
|
|
80
|
-
export { pm, reliversePrompts } from "./utils/system.js";
|
|
143
|
+
} from "./libs/utils/stream-text.js";
|
|
144
|
+
export { pm, reliversePrompts } from "./libs/utils/system.js";
|
|
81
145
|
export {
|
|
82
146
|
isTerminalInteractive,
|
|
83
147
|
isValidName,
|
|
84
148
|
normalizeName
|
|
85
|
-
} from "./utils/validate.js";
|
|
86
|
-
export {
|
|
87
|
-
animationMap,
|
|
88
|
-
animateText
|
|
89
|
-
} from "./components/animate/animate.js";
|
|
90
|
-
export { createAsciiArt } from "./components/ascii-art/ascii-art.js";
|
|
91
|
-
export { useSpinner } from "./components/spinner/spinner-mod.js";
|
|
92
|
-
export { log } from "./components/log/log.js";
|
|
93
|
-
export {
|
|
94
|
-
cancel,
|
|
95
|
-
isCancel,
|
|
96
|
-
createCancel,
|
|
97
|
-
CANCEL,
|
|
98
|
-
block,
|
|
99
|
-
setRawMode,
|
|
100
|
-
getColumns,
|
|
101
|
-
isWindows
|
|
102
|
-
} from "./components/cancel/cancel.js";
|
|
103
|
-
export {
|
|
104
|
-
password,
|
|
105
|
-
input,
|
|
106
|
-
text,
|
|
107
|
-
multiselect,
|
|
108
|
-
select,
|
|
109
|
-
startPrompt,
|
|
110
|
-
intro,
|
|
111
|
-
endPrompt,
|
|
112
|
-
outro,
|
|
113
|
-
spinner
|
|
114
|
-
} from "./components/aliases/aliases-mod.js";
|
|
149
|
+
} from "./libs/utils/validate.js";
|
|
150
|
+
export { createAsciiArt } from "./libs/visual/visual-mod.js";
|
package/package.json
CHANGED
|
@@ -1,35 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
+
"@clack/prompts": "^0.11.0",
|
|
3
4
|
"@figliolia/chalk-animation": "^1.0.4",
|
|
5
|
+
"@inquirer/prompts": "^7.5.3",
|
|
6
|
+
"@orpc/server": "^1.5.2",
|
|
4
7
|
"@reliverse/pathkit": "^1.3.4",
|
|
5
8
|
"@reliverse/reliarg": "^1.0.3",
|
|
6
9
|
"@reliverse/relico": "^1.1.2",
|
|
7
10
|
"@reliverse/relifso": "^1.4.5",
|
|
8
11
|
"@reliverse/relinka": "^1.4.7",
|
|
9
12
|
"@reliverse/runtime": "^1.0.3",
|
|
13
|
+
"@trpc/server": "^11.4.2",
|
|
10
14
|
"ansi-escapes": "^7.0.0",
|
|
15
|
+
"arktype": "^2.1.20",
|
|
11
16
|
"c12": "^3.0.4",
|
|
12
17
|
"cli-spinners": "^3.2.0",
|
|
18
|
+
"commander": "^14.0.0",
|
|
13
19
|
"detect-package-manager": "^3.0.2",
|
|
20
|
+
"effect": "^3.16.8",
|
|
21
|
+
"enquirer": "^2.4.1",
|
|
14
22
|
"figlet": "^1.8.1",
|
|
15
23
|
"gradient-string": "^3.0.0",
|
|
16
24
|
"jiti": "^2.4.2",
|
|
25
|
+
"json-schema": "^0.4.0",
|
|
17
26
|
"log-update": "^6.1.0",
|
|
18
27
|
"node-emoji": "^2.2.0",
|
|
28
|
+
"omelette": "^0.4.17",
|
|
19
29
|
"ora": "^8.2.0",
|
|
20
30
|
"pkg-types": "^2.1.0",
|
|
31
|
+
"prompts": "^2.4.2",
|
|
21
32
|
"sisteransi": "^1.0.5",
|
|
22
33
|
"terminal-kit": "^3.1.2",
|
|
23
34
|
"terminal-size": "^4.0.0",
|
|
24
35
|
"ts-regex-builder": "^1.8.2",
|
|
25
|
-
"
|
|
36
|
+
"tsx": "^4.20.3",
|
|
37
|
+
"valibot": "^1.1.0",
|
|
38
|
+
"wrap-ansi": "^9.0.0",
|
|
39
|
+
"zod": "^3.25.67",
|
|
40
|
+
"zod-to-json-schema": "^3.24.5"
|
|
26
41
|
},
|
|
27
42
|
"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.",
|
|
28
43
|
"homepage": "https://docs.reliverse.org",
|
|
29
44
|
"license": "MIT",
|
|
30
45
|
"name": "@reliverse/rempts",
|
|
31
46
|
"type": "module",
|
|
32
|
-
"version": "1.7.
|
|
47
|
+
"version": "1.7.31",
|
|
33
48
|
"author": "reliverse",
|
|
34
49
|
"bugs": {
|
|
35
50
|
"email": "blefnk@gmail.com",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { InputPromptOptions } from "../../types.js";
|
|
2
|
-
export declare const password: (options: Omit<InputPromptOptions, "mode">) => any;
|
|
3
|
-
export declare const multiselect: any;
|
|
4
|
-
export declare const select: any;
|
|
5
|
-
export declare const input: any;
|
|
6
|
-
export declare const text: any;
|
|
7
|
-
export declare const startPrompt: any;
|
|
8
|
-
export declare const intro: any;
|
|
9
|
-
export declare const endPrompt: any;
|
|
10
|
-
export declare const outro: any;
|
|
11
|
-
export declare const spinner: any;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { inputPrompt } from "../input/input-prompt.js";
|
|
2
|
-
import { introPrompt } from "../intro/intro-start.js";
|
|
3
|
-
import { outroPrompt } from "../outro/outro-end.js";
|
|
4
|
-
import { multiselectPrompt } from "../select/multiselect-prompt.js";
|
|
5
|
-
import { selectPrompt } from "../select/select-prompt.js";
|
|
6
|
-
import { useSpinner } from "../spinner/spinner-mod.js";
|
|
7
|
-
export const password = (options) => inputPrompt({ ...options, mode: "password" });
|
|
8
|
-
export const multiselect = multiselectPrompt;
|
|
9
|
-
export const select = selectPrompt;
|
|
10
|
-
export const input = inputPrompt;
|
|
11
|
-
export const text = inputPrompt;
|
|
12
|
-
export const startPrompt = introPrompt;
|
|
13
|
-
export const intro = introPrompt;
|
|
14
|
-
export const endPrompt = outroPrompt;
|
|
15
|
-
export const outro = outroPrompt;
|
|
16
|
-
export const spinner = useSpinner;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { ReliArgParserOptions } from "@reliverse/reliarg";
|
|
2
|
-
import type { ArgDefinitions, Command, DefineCommandOptions, EmptyArgs, FileBasedCmdsOptions } from "./launcher-types.js";
|
|
3
|
-
/**
|
|
4
|
-
* Defines a command with metadata, argument definitions,
|
|
5
|
-
* an execution function, and (optional) subCommands.
|
|
6
|
-
*/
|
|
7
|
-
export declare function defineCommand<A extends ArgDefinitions = EmptyArgs>(options: DefineCommandOptions<A>): Command<A>;
|
|
8
|
-
/**
|
|
9
|
-
* Show usage for a given command.
|
|
10
|
-
*/
|
|
11
|
-
export declare function showUsage<A extends ArgDefinitions>(command: Command<A>, parserOptions?: ReliArgParserOptions & {
|
|
12
|
-
fileBasedCmds?: FileBasedCmdsOptions;
|
|
13
|
-
autoExit?: boolean;
|
|
14
|
-
metaSettings?: {
|
|
15
|
-
showDescriptionOnMain?: boolean;
|
|
16
|
-
};
|
|
17
|
-
_fileBasedCurrentDir?: string;
|
|
18
|
-
_fileBasedPathSegments?: string[];
|
|
19
|
-
_isSubcommand?: boolean;
|
|
20
|
-
}): Promise<void>;
|
|
21
|
-
/**
|
|
22
|
-
* Primary entry point to run a command. This function supports:
|
|
23
|
-
*
|
|
24
|
-
* - File-based Commands: scanning for commands within a given commands root.
|
|
25
|
-
* - Commands defined within the command object.
|
|
26
|
-
* - Standard flags like --help, --version, and --debug.
|
|
27
|
-
*
|
|
28
|
-
* This function passes along remaining arguments to command runners to ensure
|
|
29
|
-
* consistent parsing.
|
|
30
|
-
*/
|
|
31
|
-
export declare function runMain<A extends ArgDefinitions = EmptyArgs>(command: Command<A>, parserOptions?: ReliArgParserOptions & {
|
|
32
|
-
fileBasedCmds?: FileBasedCmdsOptions;
|
|
33
|
-
autoExit?: boolean;
|
|
34
|
-
metaSettings?: {
|
|
35
|
-
showDescriptionOnMain?: boolean;
|
|
36
|
-
};
|
|
37
|
-
}): Promise<void>;
|
|
38
|
-
/**
|
|
39
|
-
* Helper to define argument definitions with improved type inference
|
|
40
|
-
* for IntelliSense and validation for array defaults against options.
|
|
41
|
-
*/
|
|
42
|
-
export declare function defineArgs<A extends ArgDefinitions>(args: A): A;
|
|
43
|
-
/**
|
|
44
|
-
* Programmatically run a command's run() handler with parsed arguments.
|
|
45
|
-
* Does not handle subcommands, file-based commands, or global hooks.
|
|
46
|
-
* Suitable for use in demos, tests, or programmatic invocation.
|
|
47
|
-
*
|
|
48
|
-
* @param command The command definition (from defineCommand)
|
|
49
|
-
* @param argv The argv array to parse (default: [])
|
|
50
|
-
* @param parserOptions Optional reliArgParser options
|
|
51
|
-
*/
|
|
52
|
-
export declare function runCmd<A extends ArgDefinitions = EmptyArgs>(command: Command<A>, argv?: string[], parserOptions?: ReliArgParserOptions): Promise<void>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|