@outfitter/cli 0.1.0-rc.2 → 0.1.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/README.md +21 -32
- package/dist/actions.d.ts +12 -1
- package/dist/actions.js +170 -3
- package/dist/borders/index.d.ts +3 -0
- package/dist/borders/index.js +13 -0
- package/dist/box/index.d.ts +4 -0
- package/dist/box/index.js +13 -0
- package/dist/cli.js +1 -1
- package/dist/colors/index.d.ts +3 -0
- package/dist/colors/index.js +18 -0
- package/dist/command.d.ts +40 -3
- package/dist/command.js +45 -3
- package/dist/demo/index.d.ts +78 -0
- package/dist/demo/index.js +148 -0
- package/dist/demo/registry.d.ts +7 -0
- package/dist/demo/registry.js +28 -0
- package/dist/demo/renderers/borders.d.ts +7 -0
- package/dist/demo/renderers/borders.js +17 -0
- package/dist/demo/renderers/box.d.ts +7 -0
- package/dist/demo/renderers/box.js +18 -0
- package/dist/demo/renderers/colors.d.ts +7 -0
- package/dist/demo/renderers/colors.js +18 -0
- package/dist/demo/renderers/indicators.d.ts +7 -0
- package/dist/demo/renderers/indicators.js +17 -0
- package/dist/demo/renderers/list.d.ts +7 -0
- package/dist/demo/renderers/list.js +19 -0
- package/dist/demo/renderers/markdown.d.ts +7 -0
- package/dist/demo/renderers/markdown.js +18 -0
- package/dist/demo/renderers/progress.d.ts +7 -0
- package/dist/demo/renderers/progress.js +17 -0
- package/dist/demo/renderers/spinner.d.ts +7 -0
- package/dist/demo/renderers/spinner.js +19 -0
- package/dist/demo/renderers/table.d.ts +7 -0
- package/dist/demo/renderers/table.js +19 -0
- package/dist/demo/renderers/text.d.ts +7 -0
- package/dist/demo/renderers/text.js +16 -0
- package/dist/demo/renderers/tree.d.ts +7 -0
- package/dist/demo/renderers/tree.js +18 -0
- package/dist/demo/section.d.ts +5 -0
- package/dist/demo/section.js +23 -0
- package/dist/demo/templates.d.ts +4 -0
- package/dist/demo/templates.js +10 -0
- package/dist/demo/types.d.ts +3 -0
- package/dist/demo/types.js +8 -0
- package/dist/index.d.ts +5 -8
- package/dist/index.js +9 -43
- package/dist/input.d.ts +163 -2
- package/dist/input.js +425 -11
- package/dist/list/index.d.ts +3 -0
- package/dist/list/index.js +9 -0
- package/dist/output.js +1 -1
- package/dist/pagination.d.ts +62 -2
- package/dist/pagination.js +84 -6
- package/dist/preset/full.d.ts +14 -0
- package/dist/preset/full.js +41 -0
- package/dist/preset/standard.d.ts +11 -0
- package/dist/preset/standard.js +30 -0
- package/dist/prompt/confirm.d.ts +4 -0
- package/dist/prompt/confirm.js +9 -0
- package/dist/prompt/group.d.ts +4 -0
- package/dist/prompt/group.js +9 -0
- package/dist/prompt/index.d.ts +7 -0
- package/dist/prompt/index.js +32 -0
- package/dist/prompt/select.d.ts +4 -0
- package/dist/prompt/select.js +11 -0
- package/dist/prompt/text.d.ts +4 -0
- package/dist/prompt/text.js +11 -0
- package/dist/prompt/types.d.ts +3 -0
- package/dist/prompt/types.js +8 -0
- package/dist/prompt/validators.d.ts +2 -0
- package/dist/prompt/validators.js +8 -0
- package/dist/render/borders.d.ts +2 -0
- package/dist/render/borders.js +15 -0
- package/dist/render/box.d.ts +3 -0
- package/dist/render/box.js +23 -0
- package/dist/render/colors.d.ts +1 -1
- package/dist/render/colors.js +6 -3
- package/dist/render/date.js +1 -1
- package/dist/render/format-relative.js +1 -1
- package/dist/render/format.js +1 -1
- package/dist/render/heading.d.ts +3 -0
- package/dist/render/heading.js +14 -0
- package/dist/render/index.d.ts +26 -7
- package/dist/render/index.js +160 -26
- package/dist/render/indicators.d.ts +2 -0
- package/dist/render/indicators.js +14 -0
- package/dist/render/json.js +1 -1
- package/dist/render/layout.d.ts +5 -0
- package/dist/render/layout.js +25 -0
- package/dist/render/list.d.ts +2 -2
- package/dist/render/list.js +2 -2
- package/dist/render/markdown.js +4 -4
- package/dist/render/progress.js +1 -1
- package/dist/render/separator.d.ts +3 -0
- package/dist/render/separator.js +14 -0
- package/dist/render/shapes.js +10 -9
- package/dist/render/spinner.d.ts +2 -0
- package/dist/render/spinner.js +12 -0
- package/dist/render/stack.d.ts +3 -0
- package/dist/render/stack.js +38 -0
- package/dist/render/table.d.ts +2 -1
- package/dist/render/table.js +6 -5
- package/dist/render/text.d.ts +1 -1
- package/dist/render/text.js +7 -4
- package/dist/render/tree.d.ts +2 -2
- package/dist/render/tree.js +5 -3
- package/dist/render/types.d.ts +2 -0
- package/dist/render/types.js +1 -0
- package/dist/shared/@outfitter/cli-0ggcy7fa.js +20 -0
- package/dist/shared/@outfitter/cli-0psys2vm.js +7 -0
- package/dist/shared/@outfitter/cli-1bghjef6.js +352 -0
- package/dist/shared/@outfitter/cli-1kwbnt86.d.ts +45 -0
- package/dist/shared/@outfitter/cli-2g8bx1aq.d.ts +50 -0
- package/dist/shared/@outfitter/cli-34fqr7bp.js +37 -0
- package/dist/shared/@outfitter/cli-3b7ed3rm.d.ts +97 -0
- package/dist/shared/@outfitter/cli-3dxmmy4c.d.ts +20 -0
- package/dist/shared/@outfitter/cli-3f12z5kf.d.ts +83 -0
- package/dist/shared/@outfitter/cli-3t2zaenc.d.ts +59 -0
- package/dist/shared/@outfitter/{cli-dds0qqvm.d.ts → cli-4cb5g831.d.ts} +2 -0
- package/dist/shared/@outfitter/cli-4w2a1rfy.d.ts +23 -0
- package/dist/shared/@outfitter/cli-4x6pqnez.js +20 -0
- package/dist/shared/@outfitter/cli-671sxkhj.js +146 -0
- package/dist/shared/@outfitter/cli-6bztk73z.d.ts +51 -0
- package/dist/shared/@outfitter/cli-6fxffp8k.js +1 -0
- package/dist/shared/@outfitter/cli-6j9qynm8.js +118 -0
- package/dist/shared/@outfitter/cli-6m988kh0.d.ts +61 -0
- package/dist/shared/@outfitter/cli-74ba31gz.js +134 -0
- package/dist/shared/@outfitter/cli-7gnrb8cr.js +214 -0
- package/dist/shared/@outfitter/cli-7nm6edvh.d.ts +17 -0
- package/dist/shared/@outfitter/cli-85fg2vr5.js +123 -0
- package/dist/shared/@outfitter/cli-8a8xrzhy.js +20 -0
- package/dist/shared/@outfitter/cli-8bwaw3pz.js +7 -0
- package/dist/shared/@outfitter/cli-8rx4g3s5.d.ts +41 -0
- package/dist/shared/@outfitter/cli-8xsmsbbd.d.ts +223 -0
- package/dist/shared/@outfitter/cli-96b2p4td.d.ts +56 -0
- package/dist/shared/@outfitter/cli-9khk3cbq.d.ts +190 -0
- package/dist/shared/@outfitter/cli-9mtjjykw.js +67 -0
- package/dist/shared/@outfitter/{cli-ag0w4pk0.js → cli-9nbyj2bt.js} +60 -21
- package/dist/shared/@outfitter/{cli-azzk8a1d.js → cli-afhjqmg3.js} +7 -3
- package/dist/shared/@outfitter/cli-an9j0h80.js +117 -0
- package/dist/shared/@outfitter/cli-ay411nbr.js +122 -0
- package/dist/shared/@outfitter/cli-b0tzqgnf.d.ts +132 -0
- package/dist/shared/@outfitter/cli-b5c2k0d7.js +39 -0
- package/dist/shared/@outfitter/cli-b5epywry.js +1 -0
- package/dist/shared/@outfitter/cli-bcmcaz1b.js +23 -0
- package/dist/shared/@outfitter/cli-bf3vma4q.js +61 -0
- package/dist/shared/@outfitter/cli-cf1xexgn.d.ts +53 -0
- package/dist/shared/@outfitter/cli-cs45xd6q.js +59 -0
- package/dist/shared/@outfitter/cli-d7jpshq5.d.ts +128 -0
- package/dist/shared/@outfitter/{cli-jbj78ac5.js → cli-d9ad0rqj.js} +6 -1
- package/dist/shared/@outfitter/cli-daw296mv.js +61 -0
- package/dist/shared/@outfitter/cli-e5ms1y0x.d.ts +91 -0
- package/dist/shared/@outfitter/cli-e73v3qqy.d.ts +93 -0
- package/dist/shared/@outfitter/cli-en6zn6sj.js +1 -0
- package/dist/shared/@outfitter/cli-ep2cvtk8.js +48 -0
- package/dist/shared/@outfitter/cli-f75h8e94.js +7 -0
- package/dist/shared/@outfitter/cli-fakncnjp.d.ts +106 -0
- package/dist/shared/@outfitter/cli-feb5j90n.js +94 -0
- package/dist/shared/@outfitter/cli-h20jc0bs.d.ts +66 -0
- package/dist/shared/@outfitter/cli-hnpbqmc8.d.ts +328 -0
- package/dist/shared/@outfitter/cli-j4n8gaf3.js +95 -0
- package/dist/shared/@outfitter/cli-jejfypgf.js +85 -0
- package/dist/shared/@outfitter/{cli-wqc652mx.js → cli-jhcdwvpn.js} +8 -8
- package/dist/shared/@outfitter/{cli-v9mjsvjh.js → cli-jjemfdta.js} +13 -46
- package/dist/shared/@outfitter/cli-kc84wmch.js +267 -0
- package/dist/shared/@outfitter/cli-ktqme80d.js +7 -0
- package/dist/shared/@outfitter/cli-mq0jp15z.js +1 -0
- package/dist/shared/@outfitter/cli-mymyavvj.d.ts +26 -0
- package/dist/shared/@outfitter/cli-n17gt1dz.js +19 -0
- package/dist/shared/@outfitter/cli-n9dbh0hp.js +51 -0
- package/dist/shared/@outfitter/cli-nvvc92c8.js +128 -0
- package/dist/shared/@outfitter/cli-p1m5dhrs.js +169 -0
- package/dist/shared/@outfitter/cli-p38sfxyk.js +25 -0
- package/dist/shared/@outfitter/cli-p3dqm1vd.js +22 -0
- package/dist/shared/@outfitter/cli-p9j1phge.js +20 -0
- package/dist/shared/@outfitter/cli-pkxmzavm.js +62 -0
- package/dist/shared/@outfitter/cli-q8r6jarq.d.ts +24 -0
- package/dist/shared/@outfitter/{cli-2y3kxew8.d.ts → cli-qj83y5wj.d.ts} +22 -9
- package/dist/shared/@outfitter/cli-qjfc3j11.d.ts +112 -0
- package/dist/shared/@outfitter/cli-qp4cbhqr.js +70 -0
- package/dist/shared/@outfitter/cli-s0kkx9m1.d.ts +164 -0
- package/dist/shared/@outfitter/cli-snxj55n6.js +43 -0
- package/dist/shared/@outfitter/cli-swwxvjvm.d.ts +24 -0
- package/dist/shared/@outfitter/cli-sx67mmfx.d.ts +98 -0
- package/dist/shared/@outfitter/cli-tarpsa8a.js +30 -0
- package/dist/shared/@outfitter/cli-thvzhjd1.js +126 -0
- package/dist/shared/@outfitter/cli-tqewy503.d.ts +36 -0
- package/dist/shared/@outfitter/cli-tvw1xrdj.js +20 -0
- package/dist/shared/@outfitter/cli-v1tzwxkt.js +32 -0
- package/dist/shared/@outfitter/cli-vd60dj65.js +1 -0
- package/dist/shared/@outfitter/cli-vp88gxev.js +279 -0
- package/dist/shared/@outfitter/cli-vstbkzky.d.ts +74 -0
- package/dist/shared/@outfitter/cli-vtg0sqk2.d.ts +54 -0
- package/dist/shared/@outfitter/cli-w5y3xepp.js +20 -0
- package/dist/shared/@outfitter/cli-x4cavvc0.js +1 -0
- package/dist/shared/@outfitter/cli-xep6v2c0.js +52 -0
- package/dist/shared/@outfitter/cli-xg5y5fhk.js +86 -0
- package/dist/shared/@outfitter/{cli-n51t773m.d.ts → cli-xsaheemc.d.ts} +44 -4
- package/dist/shared/@outfitter/cli-xvqtqjxk.js +82 -0
- package/dist/shared/@outfitter/cli-y25tt8nc.d.ts +48 -0
- package/dist/streaming/ansi.d.ts +2 -0
- package/dist/streaming/ansi.js +8 -0
- package/dist/streaming/index.d.ts +4 -0
- package/dist/streaming/index.js +17 -0
- package/dist/streaming/spinner.d.ts +3 -0
- package/dist/streaming/spinner.js +10 -0
- package/dist/streaming/writer.d.ts +2 -0
- package/dist/streaming/writer.js +9 -0
- package/dist/table/index.d.ts +4 -0
- package/dist/table/index.js +13 -0
- package/dist/terminal/detection.js +5 -2
- package/dist/terminal/index.js +6 -2
- package/dist/theme/context.d.ts +9 -0
- package/dist/theme/context.js +14 -0
- package/dist/theme/create.d.ts +8 -0
- package/dist/theme/create.js +12 -0
- package/dist/theme/index.d.ts +17 -0
- package/dist/theme/index.js +42 -0
- package/dist/theme/presets/bold.d.ts +8 -0
- package/dist/theme/presets/bold.js +12 -0
- package/dist/theme/presets/default.d.ts +8 -0
- package/dist/theme/presets/default.js +11 -0
- package/dist/theme/presets/index.d.ts +12 -0
- package/dist/theme/presets/index.js +24 -0
- package/dist/theme/presets/minimal.d.ts +8 -0
- package/dist/theme/presets/minimal.js +12 -0
- package/dist/theme/presets/rounded.d.ts +8 -0
- package/dist/theme/presets/rounded.js +12 -0
- package/dist/theme/resolve.d.ts +8 -0
- package/dist/theme/resolve.js +11 -0
- package/dist/theme/types.d.ts +7 -0
- package/dist/theme/types.js +1 -0
- package/dist/tree/index.d.ts +3 -0
- package/dist/tree/index.js +11 -0
- package/dist/types.js +1 -1
- package/package.json +168 -54
- package/dist/shared/@outfitter/cli-2vs2gxa8.js +0 -429
- package/dist/shared/@outfitter/cli-2yq94zst.d.ts +0 -39
- package/dist/shared/@outfitter/cli-6xc869x1.js +0 -26
- package/dist/shared/@outfitter/cli-7km1e58p.js +0 -85
- package/dist/shared/@outfitter/cli-8r0bnyyx.js +0 -43
- package/dist/shared/@outfitter/cli-afecwfrn.d.ts +0 -13
- package/dist/shared/@outfitter/cli-bt423m6y.js +0 -4
- package/dist/shared/@outfitter/cli-d4fegbad.d.ts +0 -66
- package/dist/shared/@outfitter/cli-e0ecw3x1.js +0 -64
- package/dist/shared/@outfitter/cli-fheaaa6b.js +0 -25
- package/dist/shared/@outfitter/cli-j361wp3g.d.ts +0 -41
- package/dist/shared/@outfitter/cli-p0m2fc51.js +0 -172
- package/dist/shared/@outfitter/cli-tyajr8qa.d.ts +0 -63
- package/dist/shared/@outfitter/cli-zs6jy1am.d.ts +0 -164
package/dist/pagination.js
CHANGED
|
@@ -1,10 +1,88 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import"
|
|
2
|
+
import"./shared/@outfitter/cli-v1tzwxkt.js";
|
|
3
|
+
|
|
4
|
+
// packages/cli/src/pagination.ts
|
|
5
|
+
import fs from "fs";
|
|
6
|
+
import os from "os";
|
|
7
|
+
import path from "path";
|
|
8
|
+
var UNSAFE_PATH_PATTERN = /(?:^|[\\/])\.\.(?:[\\/]|$)|^[\\/]|^[a-zA-Z]:/;
|
|
9
|
+
function validatePathComponent(component, name) {
|
|
10
|
+
if (UNSAFE_PATH_PATTERN.test(component)) {
|
|
11
|
+
throw new Error(`Security: path traversal detected in ${name}`);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
function getDefaultStateHome() {
|
|
15
|
+
const home = os.homedir();
|
|
16
|
+
switch (process.platform) {
|
|
17
|
+
case "darwin":
|
|
18
|
+
return path.join(home, "Library", "Application Support");
|
|
19
|
+
case "win32":
|
|
20
|
+
return process.env["LOCALAPPDATA"] ?? path.join(home, "AppData", "Local");
|
|
21
|
+
default:
|
|
22
|
+
return path.join(home, ".local", "state");
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function getStatePath(options) {
|
|
26
|
+
validatePathComponent(options.command, "command");
|
|
27
|
+
validatePathComponent(options.toolName, "toolName");
|
|
28
|
+
if (options.context) {
|
|
29
|
+
validatePathComponent(options.context, "context");
|
|
30
|
+
}
|
|
31
|
+
const xdgState = process.env["XDG_STATE_HOME"] ?? getDefaultStateHome();
|
|
32
|
+
const parts = [xdgState, options.toolName, "cursors", options.command];
|
|
33
|
+
if (options.context) {
|
|
34
|
+
parts.push(options.context);
|
|
35
|
+
}
|
|
36
|
+
return path.join(...parts, "cursor.json");
|
|
37
|
+
}
|
|
38
|
+
function loadCursor(options) {
|
|
39
|
+
const statePath = getStatePath(options);
|
|
40
|
+
if (!fs.existsSync(statePath)) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
try {
|
|
44
|
+
const content = fs.readFileSync(statePath, "utf-8");
|
|
45
|
+
const parsed = JSON.parse(content);
|
|
46
|
+
if (typeof parsed !== "object" || parsed === null || typeof parsed["cursor"] !== "string") {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const state = parsed;
|
|
50
|
+
if (options.maxAgeMs !== undefined) {
|
|
51
|
+
if (typeof state.timestamp !== "number") {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
const ageMs = Date.now() - state.timestamp;
|
|
55
|
+
if (ageMs > options.maxAgeMs) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return state;
|
|
60
|
+
} catch {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
function saveCursor(cursor, options) {
|
|
65
|
+
const statePath = getStatePath(options);
|
|
66
|
+
const stateDir = path.dirname(statePath);
|
|
67
|
+
fs.mkdirSync(stateDir, { recursive: true });
|
|
68
|
+
const state = {
|
|
69
|
+
cursor,
|
|
70
|
+
command: options.command,
|
|
71
|
+
timestamp: Date.now(),
|
|
72
|
+
hasMore: options.hasMore ?? true,
|
|
73
|
+
...options.context && { context: options.context },
|
|
74
|
+
...options.total !== undefined && { total: options.total }
|
|
75
|
+
};
|
|
76
|
+
fs.writeFileSync(statePath, JSON.stringify(state), "utf-8");
|
|
77
|
+
}
|
|
78
|
+
function clearCursor(options) {
|
|
79
|
+
const statePath = getStatePath(options);
|
|
80
|
+
try {
|
|
81
|
+
if (fs.existsSync(statePath)) {
|
|
82
|
+
fs.unlinkSync(statePath);
|
|
83
|
+
}
|
|
84
|
+
} catch {}
|
|
85
|
+
}
|
|
8
86
|
export {
|
|
9
87
|
saveCursor,
|
|
10
88
|
loadCursor,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "../shared/@outfitter/cli-0v8vw1de";
|
|
2
|
+
import { renderTree } from "../shared/@outfitter/cli-3b7ed3rm";
|
|
3
|
+
import "../shared/@outfitter/cli-w7w7ta31";
|
|
4
|
+
import "../shared/@outfitter/cli-smckkdsq";
|
|
5
|
+
import "../shared/@outfitter/cli-zfqz333z";
|
|
6
|
+
import { BoxOptions, renderBox } from "../shared/@outfitter/cli-8xsmsbbd";
|
|
7
|
+
import "../shared/@outfitter/cli-mn8f7rh4";
|
|
8
|
+
import { TableOptions, renderTable } from "../shared/@outfitter/cli-qj83y5wj";
|
|
9
|
+
import "../shared/@outfitter/cli-yef5b9ds";
|
|
10
|
+
import { ListOptions, ListStyle, renderList } from "../shared/@outfitter/cli-b0tzqgnf";
|
|
11
|
+
import { BORDERS, BorderStyle, getBorderCharacters } from "../shared/@outfitter/cli-fakncnjp";
|
|
12
|
+
import "../shared/@outfitter/cli-qz47jk6d";
|
|
13
|
+
import { ANSI, Theme, Tokens, createTheme } from "../shared/@outfitter/cli-xsaheemc";
|
|
14
|
+
export { renderTree, renderTable, renderList, renderBox, getBorderCharacters, createTheme, Tokens, Theme, TableOptions, ListStyle, ListOptions, BoxOptions, BorderStyle, BORDERS, ANSI };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import"../shared/@outfitter/cli-b5epywry.js";
|
|
3
|
+
import"../shared/@outfitter/cli-ktqme80d.js";
|
|
4
|
+
import"../shared/@outfitter/cli-x4cavvc0.js";
|
|
5
|
+
import"../shared/@outfitter/cli-f75h8e94.js";
|
|
6
|
+
import"../shared/@outfitter/cli-mq0jp15z.js";
|
|
7
|
+
import"../shared/@outfitter/cli-en6zn6sj.js";
|
|
8
|
+
import {
|
|
9
|
+
renderTree
|
|
10
|
+
} from "../shared/@outfitter/cli-b5c2k0d7.js";
|
|
11
|
+
import {
|
|
12
|
+
renderList
|
|
13
|
+
} from "../shared/@outfitter/cli-xg5y5fhk.js";
|
|
14
|
+
import {
|
|
15
|
+
renderTable
|
|
16
|
+
} from "../shared/@outfitter/cli-an9j0h80.js";
|
|
17
|
+
import {
|
|
18
|
+
renderBox
|
|
19
|
+
} from "../shared/@outfitter/cli-vp88gxev.js";
|
|
20
|
+
import"../shared/@outfitter/cli-jjemfdta.js";
|
|
21
|
+
import {
|
|
22
|
+
BORDERS,
|
|
23
|
+
getBorderCharacters
|
|
24
|
+
} from "../shared/@outfitter/cli-85fg2vr5.js";
|
|
25
|
+
import"../shared/@outfitter/cli-0psys2vm.js";
|
|
26
|
+
import {
|
|
27
|
+
ANSI,
|
|
28
|
+
createTheme
|
|
29
|
+
} from "../shared/@outfitter/cli-9nbyj2bt.js";
|
|
30
|
+
import"../shared/@outfitter/cli-d9ad0rqj.js";
|
|
31
|
+
import"../shared/@outfitter/cli-v1tzwxkt.js";
|
|
32
|
+
export {
|
|
33
|
+
renderTree,
|
|
34
|
+
renderTable,
|
|
35
|
+
renderList,
|
|
36
|
+
renderBox,
|
|
37
|
+
getBorderCharacters,
|
|
38
|
+
createTheme,
|
|
39
|
+
BORDERS,
|
|
40
|
+
ANSI
|
|
41
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "../shared/@outfitter/cli-smckkdsq";
|
|
2
|
+
import "../shared/@outfitter/cli-zfqz333z";
|
|
3
|
+
import { BoxOptions, renderBox } from "../shared/@outfitter/cli-8xsmsbbd";
|
|
4
|
+
import "../shared/@outfitter/cli-mn8f7rh4";
|
|
5
|
+
import { TableOptions, renderTable } from "../shared/@outfitter/cli-qj83y5wj";
|
|
6
|
+
import "../shared/@outfitter/cli-yef5b9ds";
|
|
7
|
+
import { ListOptions, ListStyle, renderList } from "../shared/@outfitter/cli-b0tzqgnf";
|
|
8
|
+
import "../shared/@outfitter/cli-fakncnjp";
|
|
9
|
+
import "../shared/@outfitter/cli-qz47jk6d";
|
|
10
|
+
import { ANSI, Theme, Tokens, createTheme } from "../shared/@outfitter/cli-xsaheemc";
|
|
11
|
+
export { renderTable, renderList, renderBox, createTheme, Tokens, Theme, TableOptions, ListStyle, ListOptions, BoxOptions, ANSI };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import"../shared/@outfitter/cli-x4cavvc0.js";
|
|
3
|
+
import"../shared/@outfitter/cli-f75h8e94.js";
|
|
4
|
+
import"../shared/@outfitter/cli-mq0jp15z.js";
|
|
5
|
+
import"../shared/@outfitter/cli-en6zn6sj.js";
|
|
6
|
+
import {
|
|
7
|
+
renderList
|
|
8
|
+
} from "../shared/@outfitter/cli-xg5y5fhk.js";
|
|
9
|
+
import {
|
|
10
|
+
renderTable
|
|
11
|
+
} from "../shared/@outfitter/cli-an9j0h80.js";
|
|
12
|
+
import {
|
|
13
|
+
renderBox
|
|
14
|
+
} from "../shared/@outfitter/cli-vp88gxev.js";
|
|
15
|
+
import"../shared/@outfitter/cli-jjemfdta.js";
|
|
16
|
+
import"../shared/@outfitter/cli-85fg2vr5.js";
|
|
17
|
+
import"../shared/@outfitter/cli-0psys2vm.js";
|
|
18
|
+
import {
|
|
19
|
+
ANSI,
|
|
20
|
+
createTheme
|
|
21
|
+
} from "../shared/@outfitter/cli-9nbyj2bt.js";
|
|
22
|
+
import"../shared/@outfitter/cli-d9ad0rqj.js";
|
|
23
|
+
import"../shared/@outfitter/cli-v1tzwxkt.js";
|
|
24
|
+
export {
|
|
25
|
+
renderTable,
|
|
26
|
+
renderList,
|
|
27
|
+
renderBox,
|
|
28
|
+
createTheme,
|
|
29
|
+
ANSI
|
|
30
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { promptPassword, promptText } from "../shared/@outfitter/cli-8rx4g3s5";
|
|
2
|
+
import { promptConfirm } from "../shared/@outfitter/cli-4w2a1rfy";
|
|
3
|
+
import { PromptStep, promptGroup } from "../shared/@outfitter/cli-tqewy503";
|
|
4
|
+
import { promptMultiSelect, promptSelect } from "../shared/@outfitter/cli-y25tt8nc";
|
|
5
|
+
import { CancelledError, ConfirmPromptOptions, MultiSelectPromptOptions, PasswordPromptOptions, PromptResult, SelectPromptOptions, TextPromptOptions, createCancelledError } from "../shared/@outfitter/cli-3f12z5kf";
|
|
6
|
+
import { Validator, validators } from "../shared/@outfitter/cli-vstbkzky";
|
|
7
|
+
export { validators, promptText, promptSelect, promptPassword, promptMultiSelect, promptGroup, promptConfirm, createCancelledError, Validator, TextPromptOptions, SelectPromptOptions, PromptStep, PromptResult, PasswordPromptOptions, MultiSelectPromptOptions, ConfirmPromptOptions, CancelledError };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
promptPassword,
|
|
4
|
+
promptText
|
|
5
|
+
} from "../shared/@outfitter/cli-snxj55n6.js";
|
|
6
|
+
import {
|
|
7
|
+
promptConfirm
|
|
8
|
+
} from "../shared/@outfitter/cli-bcmcaz1b.js";
|
|
9
|
+
import {
|
|
10
|
+
promptGroup
|
|
11
|
+
} from "../shared/@outfitter/cli-4x6pqnez.js";
|
|
12
|
+
import {
|
|
13
|
+
promptMultiSelect,
|
|
14
|
+
promptSelect
|
|
15
|
+
} from "../shared/@outfitter/cli-bf3vma4q.js";
|
|
16
|
+
import {
|
|
17
|
+
createCancelledError
|
|
18
|
+
} from "../shared/@outfitter/cli-8bwaw3pz.js";
|
|
19
|
+
import {
|
|
20
|
+
validators
|
|
21
|
+
} from "../shared/@outfitter/cli-n17gt1dz.js";
|
|
22
|
+
import"../shared/@outfitter/cli-v1tzwxkt.js";
|
|
23
|
+
export {
|
|
24
|
+
validators,
|
|
25
|
+
promptText,
|
|
26
|
+
promptSelect,
|
|
27
|
+
promptPassword,
|
|
28
|
+
promptMultiSelect,
|
|
29
|
+
promptGroup,
|
|
30
|
+
promptConfirm,
|
|
31
|
+
createCancelledError
|
|
32
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { CancelledError, ConfirmPromptOptions, MultiSelectPromptOptions, PasswordPromptOptions, PromptResult, SelectPromptOptions, TextPromptOptions, createCancelledError } from "../shared/@outfitter/cli-3f12z5kf";
|
|
2
|
+
import "../shared/@outfitter/cli-vstbkzky";
|
|
3
|
+
export { createCancelledError, TextPromptOptions, SelectPromptOptions, PromptResult, PasswordPromptOptions, MultiSelectPromptOptions, ConfirmPromptOptions, CancelledError };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
BORDERS,
|
|
4
|
+
drawHorizontalLine,
|
|
5
|
+
getBorderCharacters,
|
|
6
|
+
init_borders
|
|
7
|
+
} from "../shared/@outfitter/cli-85fg2vr5.js";
|
|
8
|
+
import"../shared/@outfitter/cli-v1tzwxkt.js";
|
|
9
|
+
init_borders();
|
|
10
|
+
|
|
11
|
+
export {
|
|
12
|
+
getBorderCharacters,
|
|
13
|
+
drawHorizontalLine,
|
|
14
|
+
BORDERS
|
|
15
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Box, BoxAlign, BoxBorders, BoxContent, BoxOptions, BoxSpacing, NormalizedBorders, NormalizedSpacing, createBox, normalizeBorders, normalizeMargin, normalizePadding, renderBox } from "../shared/@outfitter/cli-8xsmsbbd";
|
|
2
|
+
import "../shared/@outfitter/cli-fakncnjp";
|
|
3
|
+
export { renderBox, normalizePadding, normalizeMargin, normalizeBorders, createBox, NormalizedSpacing, NormalizedBorders, BoxSpacing, BoxOptions, BoxContent, BoxBorders, BoxAlign, Box };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
createBox,
|
|
4
|
+
init_box,
|
|
5
|
+
normalizeBorders,
|
|
6
|
+
normalizeMargin,
|
|
7
|
+
normalizePadding,
|
|
8
|
+
renderBox
|
|
9
|
+
} from "../shared/@outfitter/cli-vp88gxev.js";
|
|
10
|
+
import"../shared/@outfitter/cli-jjemfdta.js";
|
|
11
|
+
import"../shared/@outfitter/cli-85fg2vr5.js";
|
|
12
|
+
import"../shared/@outfitter/cli-9nbyj2bt.js";
|
|
13
|
+
import"../shared/@outfitter/cli-d9ad0rqj.js";
|
|
14
|
+
import"../shared/@outfitter/cli-v1tzwxkt.js";
|
|
15
|
+
init_box();
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
renderBox,
|
|
19
|
+
normalizePadding,
|
|
20
|
+
normalizeMargin,
|
|
21
|
+
normalizeBorders,
|
|
22
|
+
createBox
|
|
23
|
+
};
|
package/dist/render/colors.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ANSI, ColorName, Theme, TokenOptions, Tokens, applyColor, createTheme, createTokens, resolveTokenColorEnabled } from "../shared/@outfitter/cli-
|
|
1
|
+
import { ANSI, ColorName, Theme, TokenOptions, Tokens, applyColor, createTheme, createTokens, resolveTokenColorEnabled } from "../shared/@outfitter/cli-xsaheemc";
|
|
2
2
|
export { resolveTokenColorEnabled, createTokens, createTheme, applyColor, Tokens, TokenOptions, Theme, ColorName, ANSI };
|
package/dist/render/colors.js
CHANGED
|
@@ -4,10 +4,13 @@ import {
|
|
|
4
4
|
applyColor,
|
|
5
5
|
createTheme,
|
|
6
6
|
createTokens,
|
|
7
|
+
init_colors,
|
|
7
8
|
resolveTokenColorEnabled
|
|
8
|
-
} from "../shared/@outfitter/cli-
|
|
9
|
-
import"../shared/@outfitter/cli-
|
|
10
|
-
import"../shared/@outfitter/cli-
|
|
9
|
+
} from "../shared/@outfitter/cli-9nbyj2bt.js";
|
|
10
|
+
import"../shared/@outfitter/cli-d9ad0rqj.js";
|
|
11
|
+
import"../shared/@outfitter/cli-v1tzwxkt.js";
|
|
12
|
+
init_colors();
|
|
13
|
+
|
|
11
14
|
export {
|
|
12
15
|
resolveTokenColorEnabled,
|
|
13
16
|
createTokens,
|
package/dist/render/date.js
CHANGED
package/dist/render/format.js
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
renderHeading
|
|
4
|
+
} from "../shared/@outfitter/cli-xvqtqjxk.js";
|
|
5
|
+
import"../shared/@outfitter/cli-671sxkhj.js";
|
|
6
|
+
import"../shared/@outfitter/cli-vp88gxev.js";
|
|
7
|
+
import"../shared/@outfitter/cli-jjemfdta.js";
|
|
8
|
+
import"../shared/@outfitter/cli-85fg2vr5.js";
|
|
9
|
+
import"../shared/@outfitter/cli-9nbyj2bt.js";
|
|
10
|
+
import"../shared/@outfitter/cli-d9ad0rqj.js";
|
|
11
|
+
import"../shared/@outfitter/cli-v1tzwxkt.js";
|
|
12
|
+
export {
|
|
13
|
+
renderHeading
|
|
14
|
+
};
|
package/dist/render/index.d.ts
CHANGED
|
@@ -1,13 +1,32 @@
|
|
|
1
|
-
import { renderTree } from "../shared/@outfitter/cli-j361wp3g";
|
|
2
|
-
import { ANSI_REGEX, getStringWidth, padText, pluralize, slugify, stripAnsi, truncateText, wrapText } from "../shared/@outfitter/cli-dds0qqvm";
|
|
3
|
-
import { ANSI, ColorName, Theme, TokenOptions, Tokens, applyColor, createTheme, createTokens, resolveTokenColorEnabled } from "../shared/@outfitter/cli-n51t773m";
|
|
4
|
-
import { ListItem, NestedListItem, renderList } from "../shared/@outfitter/cli-d4fegbad";
|
|
5
1
|
import { Collection, Hierarchy, KeyValue, RenderOptions, Resource, Shape, ShapeRenderer, TreeNode, clearRenderers, isCollection, isHierarchy, isKeyValue, isPlainObject, isResource, registerRenderer, render, treeNodeToRecord, unregisterRenderer } from "../shared/@outfitter/cli-evx7qcp1";
|
|
6
2
|
import { ProgressOptions, renderProgress } from "../shared/@outfitter/cli-7na6p4fs";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
3
|
+
import { ANSI_REGEX, getStringWidth, padText, pluralize, slugify, stripAnsi, truncateText, wrapText } from "../shared/@outfitter/cli-4cb5g831";
|
|
4
|
+
import { DividerStyle, SeparatorOptions, renderSeparator } from "../shared/@outfitter/cli-1kwbnt86";
|
|
9
5
|
import { formatRelative } from "../shared/@outfitter/cli-zx598p8q";
|
|
6
|
+
import { Alignment, HorizontalLayoutOptions, VerticalLayoutOptions, createLayoutContext, getBoxOverhead, getContentWidth, getTerminalWidth, joinHorizontal, joinVertical, resolveWidth } from "../shared/@outfitter/cli-9khk3cbq";
|
|
10
7
|
import { DateRange, endOfDay, parseDateRange, startOfDay } from "../shared/@outfitter/cli-a4q87517";
|
|
11
8
|
import { formatBytes, formatDuration } from "../shared/@outfitter/cli-cf2s94s1";
|
|
12
9
|
import { renderMarkdown } from "../shared/@outfitter/cli-c9knfqn5";
|
|
13
|
-
|
|
10
|
+
import { renderJson, renderText } from "../shared/@outfitter/cli-33e97cjs";
|
|
11
|
+
import "../shared/@outfitter/cli-m8vv6kd6";
|
|
12
|
+
import "../shared/@outfitter/cli-5ppp2a7c";
|
|
13
|
+
import { minimalTheme } from "../shared/@outfitter/cli-mymyavvj";
|
|
14
|
+
import { CreateVisualThemeOptions, createVisualTheme } from "../shared/@outfitter/cli-6m988kh0";
|
|
15
|
+
import { ThemedContextOptions, ThemedLayoutContext, createThemedContext, getContextTheme } from "../shared/@outfitter/cli-e73v3qqy";
|
|
16
|
+
import { resolveGlyph, resolveStateMarker } from "../shared/@outfitter/cli-3t2zaenc";
|
|
17
|
+
import { defaultTheme } from "../shared/@outfitter/cli-3dxmmy4c";
|
|
18
|
+
import { boldTheme } from "../shared/@outfitter/cli-q8r6jarq";
|
|
19
|
+
import { roundedTheme } from "../shared/@outfitter/cli-swwxvjvm";
|
|
20
|
+
import { GlyphPair, MarkerSpec, PartialVisualTheme, SemanticState, ThemeColors, ThemeSpacing, VisualTheme } from "../shared/@outfitter/cli-s0kkx9m1";
|
|
21
|
+
import { INDICATORS, IndicatorCategory, IndicatorSet, ProgressStyle, getIndicator, getProgressIndicator, isUnicodeSupported } from "../shared/@outfitter/cli-sx67mmfx";
|
|
22
|
+
import { BoxifyOptions, DEFAULT_STACK_THEME, DELIMITERS, DelimiterName, DelimiterSet, HStackOptions, ItemState, MarkerName, Renderable, StackBox, StackInput, StackItem, StackTheme, VStackMode, VStackOptions, boxify, createHStack, createVStack, getDelimiter, getMarker, hstack, isRenderable, unbox, vstack, vstackItem } from "../shared/@outfitter/cli-hnpbqmc8";
|
|
23
|
+
import { TREE_GUIDES, TreeGuideStyle, TreeOptions, renderTree } from "../shared/@outfitter/cli-3b7ed3rm";
|
|
24
|
+
import { Box, BoxAlign, BoxBorders, BoxContent, BoxOptions, BoxSpacing, NormalizedBorders, NormalizedSpacing, createBox, normalizeBorders, normalizeMargin, normalizePadding, renderBox } from "../shared/@outfitter/cli-8xsmsbbd";
|
|
25
|
+
import { TableOptions, renderTable } from "../shared/@outfitter/cli-qj83y5wj";
|
|
26
|
+
import { SPINNERS, SpinnerFrames, SpinnerStyle, getSpinnerFrame, renderSpinner } from "../shared/@outfitter/cli-e5ms1y0x";
|
|
27
|
+
import { ListItem, ListOptions, ListStyle, NestedListItem, renderList } from "../shared/@outfitter/cli-b0tzqgnf";
|
|
28
|
+
import { BORDERS, BorderCharacters, BorderStyle, LinePosition, drawHorizontalLine, getBorderCharacters } from "../shared/@outfitter/cli-fakncnjp";
|
|
29
|
+
import { CaseMode, HeadingOptions, HeadingWidthMode, SeparatorStyle, renderHeading } from "../shared/@outfitter/cli-6bztk73z";
|
|
30
|
+
import { LayoutContext, WidthMode } from "../shared/@outfitter/cli-2g8bx1aq";
|
|
31
|
+
import { ANSI, ColorName, Theme, TokenOptions, Tokens, applyColor, createTheme, createTokens, resolveTokenColorEnabled } from "../shared/@outfitter/cli-xsaheemc";
|
|
32
|
+
export { wrapText, vstackItem, vstack, unregisterRenderer, unbox, truncateText, treeNodeToRecord, stripAnsi, startOfDay, slugify, roundedTheme, resolveWidth, resolveTokenColorEnabled, resolveStateMarker, resolveGlyph, renderTree, renderText, renderTable, renderSpinner, renderSeparator, renderProgress, renderMarkdown, renderList, renderJson, renderHeading, renderBox, render, registerRenderer, pluralize, parseDateRange, padText, normalizePadding, normalizeMargin, normalizeBorders, minimalTheme, joinVertical, joinHorizontal, isUnicodeSupported, isResource, isRenderable, isPlainObject, isKeyValue, isHierarchy, isCollection, hstack, getTerminalWidth, getStringWidth, getSpinnerFrame, getProgressIndicator, getMarker, getIndicator, getDelimiter, getContextTheme, getContentWidth, getBoxOverhead, getBorderCharacters, formatRelative, formatDuration, formatBytes, endOfDay, drawHorizontalLine, defaultTheme, createVisualTheme, createVStack, createTokens, createThemedContext, createTheme, createLayoutContext, createHStack, createBox, clearRenderers, boxify, boldTheme, applyColor, WidthMode, VisualTheme, VerticalLayoutOptions, VStackOptions, VStackMode, TreeOptions, TreeNode, TreeGuideStyle, Tokens, TokenOptions, ThemedLayoutContext, ThemedContextOptions, ThemeSpacing, ThemeColors, Theme, TableOptions, TREE_GUIDES, StackTheme, StackItem, StackInput, StackBox, SpinnerStyle, SpinnerFrames, ShapeRenderer, Shape, SeparatorStyle, SeparatorOptions, SemanticState, SPINNERS, Resource, Renderable, RenderOptions, ProgressStyle, ProgressOptions, PartialVisualTheme, NormalizedSpacing, NormalizedBorders, NestedListItem, MarkerSpec, MarkerName, ListStyle, ListOptions, ListItem, LinePosition, LayoutContext, KeyValue, ItemState, IndicatorSet, IndicatorCategory, INDICATORS, HorizontalLayoutOptions, Hierarchy, HeadingWidthMode, HeadingOptions, HStackOptions, GlyphPair, DividerStyle, DelimiterSet, DelimiterName, DateRange, DELIMITERS, DEFAULT_STACK_THEME, CreateVisualThemeOptions, ColorName, Collection, CaseMode, BoxifyOptions, BoxSpacing, BoxOptions, BoxContent, BoxBorders, BoxAlign, Box, BorderStyle, BorderCharacters, BORDERS, Alignment, ANSI_REGEX, ANSI };
|