@reliverse/rempts 1.7.0 → 1.7.2
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 +346 -105
- package/bin/components/launcher/deprecated/launcher-mod.ts.txt +1 -1
- package/bin/components/launcher/deprecated/usage.ts.txt +1 -1
- package/bin/components/launcher/launcher-mod.d.ts +75 -7
- package/bin/components/launcher/launcher-mod.js +226 -126
- package/bin/components/msg-fmt/messages.js +6 -3
- package/bin/components/select/multiselect-prompt.js +1 -1
- package/bin/components/select/select-prompt.js +1 -1
- package/bin/components/select/toggle-prompt.js +1 -1
- package/bin/components/st-end/start.js +2 -2
- package/bin/components/visual/ascii-art/ascii-art.js +1 -1
- package/bin/mod.d.ts +1 -1
- package/bin/types.d.ts +1 -1
- package/bin/utils/prompt-end.js +8 -8
- package/package.json +5 -5
package/bin/mod.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { startEditor } from "./components/editor/editor-mod.js";
|
|
|
4
4
|
export { mainSymbols, fallbackSymbols, } from "./components/figures/figures-mod.js";
|
|
5
5
|
export { confirmPrompt } from "./components/input/confirm-prompt.js";
|
|
6
6
|
export { inputPrompt } from "./components/input/input-prompt.js";
|
|
7
|
-
export type { ArgDefinition, ArgDefinitions,
|
|
7
|
+
export type { ArgDefinition, ArgDefinitions, CommandsMap, Command, InferArgTypes, FileBasedCmdsOptions, } from "./components/launcher/launcher-mod.js";
|
|
8
8
|
export { defineCommand, defineArgs, showUsage, runMain, } from "./components/launcher/launcher-mod.js";
|
|
9
9
|
export { toBaseColor, toSolidColor } from "./components/msg-fmt/colors.js";
|
|
10
10
|
export { relinkaByRemptsDeprecated, relinkaAsyncByRemptsDeprecated, throwError, } from "./components/msg-fmt/logger.js";
|
package/bin/types.d.ts
CHANGED
|
@@ -241,7 +241,7 @@ export type RenderParams = {
|
|
|
241
241
|
/**
|
|
242
242
|
* Known symbol names that will have IntelliSense support
|
|
243
243
|
*/
|
|
244
|
-
export type SymbolName = "pointer" | "start" | "middle" | "end" | "line" | "corner_top_right" | "step_active" | "step_error" | "
|
|
244
|
+
export type SymbolName = "pointer" | "start" | "middle" | "end" | "line" | "corner_top_right" | "step_active" | "step_error" | "log" | "success" | "info" | "warn" | "error";
|
|
245
245
|
export type Symbols = Record<SymbolName, string>;
|
|
246
246
|
export type FmtMsgOptions = {
|
|
247
247
|
type: MsgType;
|
package/bin/utils/prompt-end.js
CHANGED
|
@@ -21,14 +21,14 @@ export async function completePrompt(prompt, isCtrlC, _endTitle = "", _endTitleC
|
|
|
21
21
|
return value ?? false;
|
|
22
22
|
}
|
|
23
23
|
export function renderEndLine() {
|
|
24
|
-
const lineLength = getExactTerminalWidth() -
|
|
25
|
-
relinka("
|
|
26
|
-
relinka("
|
|
27
|
-
relinka("
|
|
24
|
+
const lineLength = getExactTerminalWidth() - 6;
|
|
25
|
+
relinka("null", re.dim(symbols.middle));
|
|
26
|
+
relinka("null", re.dim(`${symbols.end}${symbols.line.repeat(lineLength)}\u22B1`));
|
|
27
|
+
relinka("null", "");
|
|
28
28
|
}
|
|
29
29
|
export function renderEndLineInput() {
|
|
30
|
-
const lineLength = getExactTerminalWidth() -
|
|
31
|
-
relinka("
|
|
32
|
-
relinka("
|
|
33
|
-
relinka("
|
|
30
|
+
const lineLength = getExactTerminalWidth() - 6;
|
|
31
|
+
relinka("null", "");
|
|
32
|
+
relinka("null", re.dim(`${symbols.end}${symbols.line.repeat(lineLength)}\u22B1`));
|
|
33
|
+
relinka("null", "");
|
|
34
34
|
}
|
package/package.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"dependencies": {
|
|
3
3
|
"@figliolia/chalk-animation": "^1.0.4",
|
|
4
4
|
"@reliverse/reliarg": "^1.0.3",
|
|
5
|
-
"@reliverse/relico": "^1.1.
|
|
6
|
-
"@reliverse/relinka": "^1.4.
|
|
5
|
+
"@reliverse/relico": "^1.1.2",
|
|
6
|
+
"@reliverse/relinka": "^1.4.5",
|
|
7
7
|
"@reliverse/runtime": "^1.0.3",
|
|
8
8
|
"ansi-escapes": "^7.0.0",
|
|
9
9
|
"c12": "^3.0.3",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"name": "@reliverse/rempts",
|
|
30
30
|
"type": "module",
|
|
31
|
-
"version": "1.7.
|
|
31
|
+
"version": "1.7.2",
|
|
32
32
|
"author": "reliverse",
|
|
33
33
|
"bugs": {
|
|
34
34
|
"email": "blefnk@gmail.com",
|
|
@@ -51,14 +51,14 @@
|
|
|
51
51
|
"@types/bun": "^1.2.13",
|
|
52
52
|
"@types/figlet": "^1.7.0",
|
|
53
53
|
"@types/fs-extra": "^11.0.4",
|
|
54
|
-
"@types/node": "^22.15.
|
|
54
|
+
"@types/node": "^22.15.18",
|
|
55
55
|
"@types/terminal-kit": "^2.5.7",
|
|
56
56
|
"@types/wrap-ansi": "^8.1.0",
|
|
57
57
|
"eslint": "^9.26.0",
|
|
58
58
|
"eslint-plugin-no-relative-import-paths": "^1.6.1",
|
|
59
59
|
"eslint-plugin-perfectionist": "^4.13.0",
|
|
60
60
|
"jiti": "^2.4.2",
|
|
61
|
-
"knip": "^5.
|
|
61
|
+
"knip": "^5.56.0",
|
|
62
62
|
"typescript": "^5.8.3",
|
|
63
63
|
"typescript-eslint": "^8.32.1",
|
|
64
64
|
"vitest": "^3.1.3"
|