@reliverse/rempts 1.6.0
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/LICENSE +21 -0
- package/README.md +408 -0
- package/bin/core-impl/anykey/anykey-mod.d.ts +12 -0
- package/bin/core-impl/anykey/anykey-mod.js +125 -0
- package/bin/core-impl/date/date.d.ts +2 -0
- package/bin/core-impl/date/date.js +236 -0
- package/bin/core-impl/editor/editor-mod.d.ts +25 -0
- package/bin/core-impl/editor/editor-mod.js +897 -0
- package/bin/core-impl/figures/figures-mod.d.ts +462 -0
- package/bin/core-impl/figures/figures-mod.js +286 -0
- package/bin/core-impl/figures/figures.test.d.ts +1 -0
- package/bin/core-impl/figures/figures.test.js +474 -0
- package/bin/core-impl/input/confirm-prompt.d.ts +5 -0
- package/bin/core-impl/input/confirm-prompt.js +173 -0
- package/bin/core-impl/input/input-prompt.d.ts +16 -0
- package/bin/core-impl/input/input-prompt.js +370 -0
- package/bin/core-impl/launcher/deprecated/_parser.ts.txt +167 -0
- package/bin/core-impl/launcher/deprecated/_utils.ts.txt +41 -0
- package/bin/core-impl/launcher/deprecated/args.ts.txt +108 -0
- package/bin/core-impl/launcher/deprecated/command.ts.txt +95 -0
- package/bin/core-impl/launcher/deprecated/launcher-mod.ts.txt +50 -0
- package/bin/core-impl/launcher/deprecated/usage.ts.txt +157 -0
- package/bin/core-impl/launcher/launcher-mod.d.ts +87 -0
- package/bin/core-impl/launcher/launcher-mod.js +364 -0
- package/bin/core-impl/msg-fmt/colors.d.ts +30 -0
- package/bin/core-impl/msg-fmt/colors.js +42 -0
- package/bin/core-impl/msg-fmt/logger.d.ts +17 -0
- package/bin/core-impl/msg-fmt/logger.js +106 -0
- package/bin/core-impl/msg-fmt/mapping.d.ts +3 -0
- package/bin/core-impl/msg-fmt/mapping.js +49 -0
- package/bin/core-impl/msg-fmt/messages.d.ts +35 -0
- package/bin/core-impl/msg-fmt/messages.js +316 -0
- package/bin/core-impl/msg-fmt/terminal.d.ts +15 -0
- package/bin/core-impl/msg-fmt/terminal.js +60 -0
- package/bin/core-impl/msg-fmt/variants.d.ts +11 -0
- package/bin/core-impl/msg-fmt/variants.js +52 -0
- package/bin/core-impl/next-steps/next-steps.d.ts +14 -0
- package/bin/core-impl/next-steps/next-steps.js +24 -0
- package/bin/core-impl/number/number-mod.d.ts +28 -0
- package/bin/core-impl/number/number-mod.js +197 -0
- package/bin/core-impl/results/results.d.ts +7 -0
- package/bin/core-impl/results/results.js +27 -0
- package/bin/core-impl/select/multiselect-prompt.d.ts +2 -0
- package/bin/core-impl/select/multiselect-prompt.js +342 -0
- package/bin/core-impl/select/nummultiselect-prompt.d.ts +6 -0
- package/bin/core-impl/select/nummultiselect-prompt.js +105 -0
- package/bin/core-impl/select/numselect-prompt.d.ts +7 -0
- package/bin/core-impl/select/numselect-prompt.js +115 -0
- package/bin/core-impl/select/select-prompt.d.ts +33 -0
- package/bin/core-impl/select/select-prompt.js +303 -0
- package/bin/core-impl/select/toggle-prompt.d.ts +5 -0
- package/bin/core-impl/select/toggle-prompt.js +209 -0
- package/bin/core-impl/st-end/end.d.ts +2 -0
- package/bin/core-impl/st-end/end.js +42 -0
- package/bin/core-impl/st-end/start.d.ts +17 -0
- package/bin/core-impl/st-end/start.js +67 -0
- package/bin/core-impl/task/progress.d.ts +2 -0
- package/bin/core-impl/task/progress.js +57 -0
- package/bin/core-impl/task/spinner.d.ts +15 -0
- package/bin/core-impl/task/spinner.js +110 -0
- package/bin/core-impl/utils/colorize.d.ts +2 -0
- package/bin/core-impl/utils/colorize.js +135 -0
- package/bin/core-impl/utils/errors.d.ts +1 -0
- package/bin/core-impl/utils/errors.js +17 -0
- package/bin/core-impl/utils/prevent.d.ts +8 -0
- package/bin/core-impl/utils/prevent.js +65 -0
- package/bin/core-impl/utils/prompt-end.d.ts +8 -0
- package/bin/core-impl/utils/prompt-end.js +34 -0
- package/bin/core-impl/utils/stream-text.d.ts +18 -0
- package/bin/core-impl/utils/stream-text.js +136 -0
- package/bin/core-impl/utils/system.d.ts +6 -0
- package/bin/core-impl/utils/system.js +7 -0
- package/bin/core-impl/utils/validate.d.ts +21 -0
- package/bin/core-impl/utils/validate.js +17 -0
- package/bin/core-impl/visual/animate/animate.d.ts +14 -0
- package/bin/core-impl/visual/animate/animate.js +65 -0
- package/bin/core-impl/visual/ascii-art/ascii-art.d.ts +6 -0
- package/bin/core-impl/visual/ascii-art/ascii-art.js +13 -0
- package/bin/core-types.d.ts +334 -0
- package/bin/core-types.js +0 -0
- package/bin/main.d.ts +36 -0
- package/bin/main.js +86 -0
- package/package.json +58 -0
package/bin/main.js
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export { anykeyPrompt } from "./core-impl/anykey/anykey-mod.js";
|
|
2
|
+
export { datePrompt } from "./core-impl/date/date.js";
|
|
3
|
+
export { startEditor } from "./core-impl/editor/editor-mod.js";
|
|
4
|
+
export {
|
|
5
|
+
mainSymbols,
|
|
6
|
+
fallbackSymbols
|
|
7
|
+
} from "./core-impl/figures/figures-mod.js";
|
|
8
|
+
export { confirmPrompt } from "./core-impl/input/confirm-prompt.js";
|
|
9
|
+
export { inputPrompt } from "./core-impl/input/input-prompt.js";
|
|
10
|
+
export {
|
|
11
|
+
defineCommand,
|
|
12
|
+
showUsage,
|
|
13
|
+
runMain
|
|
14
|
+
} from "./core-impl/launcher/launcher-mod.js";
|
|
15
|
+
export { toBaseColor, toSolidColor } from "./core-impl/msg-fmt/colors.js";
|
|
16
|
+
export {
|
|
17
|
+
relinkaByRemptsDeprecated,
|
|
18
|
+
relinkaAsyncByRemptsDeprecated,
|
|
19
|
+
throwError
|
|
20
|
+
} from "./core-impl/msg-fmt/logger.js";
|
|
21
|
+
export { colorMap, typographyMap } from "./core-impl/msg-fmt/mapping.js";
|
|
22
|
+
export {
|
|
23
|
+
symbols,
|
|
24
|
+
bar,
|
|
25
|
+
fmt,
|
|
26
|
+
msg,
|
|
27
|
+
msgUndo,
|
|
28
|
+
msgUndoAll,
|
|
29
|
+
printLineBar
|
|
30
|
+
} from "./core-impl/msg-fmt/messages.js";
|
|
31
|
+
export {
|
|
32
|
+
getTerminalHeight,
|
|
33
|
+
getExactTerminalWidth,
|
|
34
|
+
getTerminalWidth,
|
|
35
|
+
breakLines,
|
|
36
|
+
removeCursor,
|
|
37
|
+
restoreCursor,
|
|
38
|
+
deleteLastLine,
|
|
39
|
+
deleteLastLines,
|
|
40
|
+
countLines
|
|
41
|
+
} from "./core-impl/msg-fmt/terminal.js";
|
|
42
|
+
export {
|
|
43
|
+
variantMap,
|
|
44
|
+
isValidVariant,
|
|
45
|
+
applyVariant
|
|
46
|
+
} from "./core-impl/msg-fmt/variants.js";
|
|
47
|
+
export { nextStepsPrompt } from "./core-impl/next-steps/next-steps.js";
|
|
48
|
+
export { numberPrompt } from "./core-impl/number/number-mod.js";
|
|
49
|
+
export { resultPrompt } from "./core-impl/results/results.js";
|
|
50
|
+
export { multiselectPrompt } from "./core-impl/select/multiselect-prompt.js";
|
|
51
|
+
export { numMultiSelectPrompt } from "./core-impl/select/nummultiselect-prompt.js";
|
|
52
|
+
export { numSelectPrompt } from "./core-impl/select/numselect-prompt.js";
|
|
53
|
+
export { selectPrompt } from "./core-impl/select/select-prompt.js";
|
|
54
|
+
export { togglePrompt } from "./core-impl/select/toggle-prompt.js";
|
|
55
|
+
export { endPrompt } from "./core-impl/st-end/end.js";
|
|
56
|
+
export { startPrompt } from "./core-impl/st-end/start.js";
|
|
57
|
+
export { progressTaskPrompt } from "./core-impl/task/progress.js";
|
|
58
|
+
export { spinnerTaskPrompt } from "./core-impl/task/spinner.js";
|
|
59
|
+
export { colorize } from "./core-impl/utils/colorize.js";
|
|
60
|
+
export { errorHandler } from "./core-impl/utils/errors.js";
|
|
61
|
+
export {
|
|
62
|
+
preventUnsupportedTTY,
|
|
63
|
+
preventWindowsHomeDirRoot,
|
|
64
|
+
preventWrongTerminalSize
|
|
65
|
+
} from "./core-impl/utils/prevent.js";
|
|
66
|
+
export {
|
|
67
|
+
completePrompt,
|
|
68
|
+
renderEndLine,
|
|
69
|
+
renderEndLineInput
|
|
70
|
+
} from "./core-impl/utils/prompt-end.js";
|
|
71
|
+
export {
|
|
72
|
+
streamText,
|
|
73
|
+
streamTextBox,
|
|
74
|
+
streamTextWithSpinner
|
|
75
|
+
} from "./core-impl/utils/stream-text.js";
|
|
76
|
+
export { pm, reliversePrompts } from "./core-impl/utils/system.js";
|
|
77
|
+
export {
|
|
78
|
+
isTerminalInteractive,
|
|
79
|
+
isValidName,
|
|
80
|
+
normalizeName
|
|
81
|
+
} from "./core-impl/utils/validate.js";
|
|
82
|
+
export {
|
|
83
|
+
animationMap,
|
|
84
|
+
animateText
|
|
85
|
+
} from "./core-impl/visual/animate/animate.js";
|
|
86
|
+
export { createAsciiArt } from "./core-impl/visual/ascii-art/ascii-art.js";
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "@reliverse/prompts is your modern, type-safe toolkit for building delightful CLI experiences. It's fast, flexible, and built with developer joy in mind. Forget the clutter — this is how CLI should feel.",
|
|
3
|
+
"license": "MIT",
|
|
4
|
+
"name": "@reliverse/rempts",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"version": "1.6.0",
|
|
7
|
+
"author": "reliverse",
|
|
8
|
+
"bugs": {
|
|
9
|
+
"email": "blefnk@gmail.com",
|
|
10
|
+
"url": "https://github.com/reliverse/rempts-cli/issues"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"reliverse",
|
|
14
|
+
"prompts"
|
|
15
|
+
],
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/reliverse/rempts-cli.git"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@figliolia/chalk-animation": "^1.0.4",
|
|
22
|
+
"@reliverse/reliarg": "^1.0.2",
|
|
23
|
+
"@reliverse/relico": "^1.1.0",
|
|
24
|
+
"@reliverse/relinka": "^1.3.8",
|
|
25
|
+
"@reliverse/runtime": "^1.0.3",
|
|
26
|
+
"ansi-escapes": "^7.0.0",
|
|
27
|
+
"c12": "^3.0.3",
|
|
28
|
+
"cli-spinners": "^3.2.0",
|
|
29
|
+
"detect-package-manager": "^3.0.2",
|
|
30
|
+
"figlet": "^1.8.0",
|
|
31
|
+
"fs-extra": "^11.3.0",
|
|
32
|
+
"gradient-string": "^3.0.0",
|
|
33
|
+
"log-update": "^6.1.0",
|
|
34
|
+
"node-emoji": "^2.2.0",
|
|
35
|
+
"ora": "^8.2.0",
|
|
36
|
+
"pathe": "^2.0.3",
|
|
37
|
+
"sisteransi": "^1.0.5",
|
|
38
|
+
"terminal-kit": "^3.1.2",
|
|
39
|
+
"terminal-size": "^4.0.0",
|
|
40
|
+
"ts-regex-builder": "^1.8.2",
|
|
41
|
+
"wrap-ansi": "^9.0.0"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {},
|
|
44
|
+
"exports": {
|
|
45
|
+
".": "./bin/main.js"
|
|
46
|
+
},
|
|
47
|
+
"files": [
|
|
48
|
+
"bin",
|
|
49
|
+
"package.json",
|
|
50
|
+
"README.md",
|
|
51
|
+
"LICENSE"
|
|
52
|
+
],
|
|
53
|
+
"main": "./bin/main.js",
|
|
54
|
+
"module": "./bin/main.js",
|
|
55
|
+
"publishConfig": {
|
|
56
|
+
"access": "public"
|
|
57
|
+
}
|
|
58
|
+
}
|