@outfitter/cli 0.1.0-rc.1 → 0.1.0-rc.3

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.
Files changed (266) hide show
  1. package/README.md +21 -32
  2. package/dist/actions.js +1 -1
  3. package/dist/borders/index.d.ts +3 -0
  4. package/dist/borders/index.js +13 -0
  5. package/dist/box/index.d.ts +4 -0
  6. package/dist/box/index.js +13 -0
  7. package/dist/cli.d.ts +2 -103
  8. package/dist/cli.js +4 -51
  9. package/dist/colors/index.d.ts +3 -0
  10. package/dist/colors/index.js +18 -0
  11. package/dist/command.d.ts +3 -37
  12. package/dist/command.js +5 -1
  13. package/dist/demo/index.d.ts +78 -0
  14. package/dist/demo/index.js +148 -0
  15. package/dist/demo/registry.d.ts +7 -0
  16. package/dist/demo/registry.js +28 -0
  17. package/dist/demo/renderers/borders.d.ts +7 -0
  18. package/dist/demo/renderers/borders.js +17 -0
  19. package/dist/demo/renderers/box.d.ts +7 -0
  20. package/dist/demo/renderers/box.js +18 -0
  21. package/dist/demo/renderers/colors.d.ts +7 -0
  22. package/dist/demo/renderers/colors.js +18 -0
  23. package/dist/demo/renderers/indicators.d.ts +7 -0
  24. package/dist/demo/renderers/indicators.js +17 -0
  25. package/dist/demo/renderers/list.d.ts +7 -0
  26. package/dist/demo/renderers/list.js +19 -0
  27. package/dist/demo/renderers/markdown.d.ts +7 -0
  28. package/dist/demo/renderers/markdown.js +18 -0
  29. package/dist/demo/renderers/progress.d.ts +7 -0
  30. package/dist/demo/renderers/progress.js +17 -0
  31. package/dist/demo/renderers/spinner.d.ts +7 -0
  32. package/dist/demo/renderers/spinner.js +19 -0
  33. package/dist/demo/renderers/table.d.ts +7 -0
  34. package/dist/demo/renderers/table.js +19 -0
  35. package/dist/demo/renderers/text.d.ts +7 -0
  36. package/dist/demo/renderers/text.js +16 -0
  37. package/dist/demo/renderers/tree.d.ts +7 -0
  38. package/dist/demo/renderers/tree.js +18 -0
  39. package/dist/demo/section.d.ts +5 -0
  40. package/dist/demo/section.js +23 -0
  41. package/dist/demo/templates.d.ts +4 -0
  42. package/dist/demo/templates.js +10 -0
  43. package/dist/demo/types.d.ts +3 -0
  44. package/dist/demo/types.js +8 -0
  45. package/dist/index.d.ts +5 -607
  46. package/dist/index.js +10 -44
  47. package/dist/input.d.ts +9 -123
  48. package/dist/input.js +2 -3
  49. package/dist/list/index.d.ts +3 -0
  50. package/dist/list/index.js +9 -0
  51. package/dist/output.d.ts +2 -68
  52. package/dist/output.js +4 -150
  53. package/dist/pagination.d.ts +1 -34
  54. package/dist/pagination.js +1 -1
  55. package/dist/preset/full.d.ts +14 -0
  56. package/dist/preset/full.js +41 -0
  57. package/dist/preset/standard.d.ts +11 -0
  58. package/dist/preset/standard.js +30 -0
  59. package/dist/prompt/confirm.d.ts +4 -0
  60. package/dist/prompt/confirm.js +9 -0
  61. package/dist/prompt/group.d.ts +4 -0
  62. package/dist/prompt/group.js +9 -0
  63. package/dist/prompt/index.d.ts +7 -0
  64. package/dist/prompt/index.js +32 -0
  65. package/dist/prompt/select.d.ts +4 -0
  66. package/dist/prompt/select.js +11 -0
  67. package/dist/prompt/text.d.ts +4 -0
  68. package/dist/prompt/text.js +11 -0
  69. package/dist/prompt/types.d.ts +3 -0
  70. package/dist/prompt/types.js +8 -0
  71. package/dist/prompt/validators.d.ts +2 -0
  72. package/dist/prompt/validators.js +8 -0
  73. package/dist/render/borders.d.ts +2 -0
  74. package/dist/render/borders.js +15 -0
  75. package/dist/render/box.d.ts +3 -0
  76. package/dist/render/box.js +23 -0
  77. package/dist/render/colors.d.ts +2 -0
  78. package/dist/render/colors.js +20 -0
  79. package/dist/render/date.d.ts +2 -0
  80. package/dist/render/date.js +12 -0
  81. package/dist/render/format-relative.d.ts +2 -0
  82. package/dist/render/format-relative.js +8 -0
  83. package/dist/render/format.d.ts +2 -0
  84. package/dist/render/format.js +10 -0
  85. package/dist/render/heading.d.ts +3 -0
  86. package/dist/render/heading.js +14 -0
  87. package/dist/render/index.d.ts +32 -0
  88. package/dist/render/index.js +235 -0
  89. package/dist/render/indicators.d.ts +2 -0
  90. package/dist/render/indicators.js +14 -0
  91. package/dist/render/json.d.ts +2 -0
  92. package/dist/render/json.js +10 -0
  93. package/dist/render/layout.d.ts +5 -0
  94. package/dist/render/layout.js +25 -0
  95. package/dist/render/list.d.ts +2 -0
  96. package/dist/render/list.js +8 -0
  97. package/dist/render/markdown.d.ts +2 -0
  98. package/dist/render/markdown.js +10 -0
  99. package/dist/render/progress.d.ts +2 -0
  100. package/dist/render/progress.js +8 -0
  101. package/dist/render/separator.d.ts +3 -0
  102. package/dist/render/separator.js +14 -0
  103. package/dist/render/shapes.d.ts +2 -0
  104. package/dist/render/shapes.js +35 -0
  105. package/dist/render/spinner.d.ts +2 -0
  106. package/dist/render/spinner.js +12 -0
  107. package/dist/render/stack.d.ts +3 -0
  108. package/dist/render/stack.js +38 -0
  109. package/dist/render/table.d.ts +3 -0
  110. package/dist/render/table.js +12 -0
  111. package/dist/render/text.d.ts +2 -0
  112. package/dist/render/text.js +27 -0
  113. package/dist/render/tree.d.ts +2 -0
  114. package/dist/render/tree.js +10 -0
  115. package/dist/render/types.d.ts +2 -0
  116. package/dist/render/types.js +1 -0
  117. package/dist/shared/@outfitter/cli-0ggcy7fa.js +20 -0
  118. package/dist/shared/@outfitter/cli-0psys2vm.js +7 -0
  119. package/dist/shared/@outfitter/cli-1bghjef6.js +352 -0
  120. package/dist/shared/@outfitter/cli-1kwbnt86.d.ts +45 -0
  121. package/dist/shared/@outfitter/cli-2g8bx1aq.d.ts +50 -0
  122. package/dist/shared/@outfitter/cli-33e97cjs.d.ts +42 -0
  123. package/dist/shared/@outfitter/cli-34fqr7bp.js +37 -0
  124. package/dist/shared/@outfitter/cli-3b7ed3rm.d.ts +97 -0
  125. package/dist/shared/@outfitter/cli-3dxmmy4c.d.ts +20 -0
  126. package/dist/shared/@outfitter/cli-3f12z5kf.d.ts +83 -0
  127. package/dist/shared/@outfitter/cli-3hp8qwx3.js +11 -0
  128. package/dist/shared/@outfitter/cli-3t2zaenc.d.ts +59 -0
  129. package/dist/shared/@outfitter/cli-4cb5g831.d.ts +147 -0
  130. package/dist/shared/@outfitter/cli-4w2a1rfy.d.ts +23 -0
  131. package/dist/shared/@outfitter/cli-4x6pqnez.js +20 -0
  132. package/dist/shared/@outfitter/cli-671sxkhj.js +146 -0
  133. package/dist/shared/@outfitter/cli-6bztk73z.d.ts +51 -0
  134. package/dist/shared/@outfitter/cli-6fxffp8k.js +1 -0
  135. package/dist/shared/@outfitter/cli-6j9qynm8.js +118 -0
  136. package/dist/shared/@outfitter/cli-6m988kh0.d.ts +61 -0
  137. package/dist/shared/@outfitter/cli-72kg550t.d.ts +53 -0
  138. package/dist/shared/@outfitter/cli-74ba31gz.js +134 -0
  139. package/dist/shared/@outfitter/cli-7gnrb8cr.js +214 -0
  140. package/dist/shared/@outfitter/cli-7na6p4fs.d.ts +59 -0
  141. package/dist/shared/@outfitter/cli-7nm6edvh.d.ts +17 -0
  142. package/dist/shared/@outfitter/cli-85fg2vr5.js +123 -0
  143. package/dist/shared/@outfitter/cli-8a8xrzhy.js +20 -0
  144. package/dist/shared/@outfitter/cli-8aa1vhdn.d.ts +119 -0
  145. package/dist/shared/@outfitter/cli-8bwaw3pz.js +7 -0
  146. package/dist/shared/@outfitter/cli-8j5k6mr3.js +71 -0
  147. package/dist/shared/@outfitter/cli-8rx4g3s5.d.ts +41 -0
  148. package/dist/shared/@outfitter/cli-8xsmsbbd.d.ts +223 -0
  149. package/dist/shared/@outfitter/cli-96b2p4td.d.ts +56 -0
  150. package/dist/shared/@outfitter/cli-9khk3cbq.d.ts +190 -0
  151. package/dist/shared/@outfitter/cli-9mtjjykw.js +67 -0
  152. package/dist/shared/@outfitter/cli-9nbyj2bt.js +128 -0
  153. package/dist/shared/@outfitter/cli-a4q87517.d.ts +64 -0
  154. package/dist/shared/@outfitter/cli-afhjqmg3.js +63 -0
  155. package/dist/shared/@outfitter/cli-an9j0h80.js +117 -0
  156. package/dist/shared/@outfitter/cli-ay411nbr.js +122 -0
  157. package/dist/shared/@outfitter/cli-b0tzqgnf.d.ts +132 -0
  158. package/dist/shared/@outfitter/cli-b5c2k0d7.js +39 -0
  159. package/dist/shared/@outfitter/cli-b5epywry.js +1 -0
  160. package/dist/shared/@outfitter/cli-bc17qeh2.js +19 -0
  161. package/dist/shared/@outfitter/cli-bcmcaz1b.js +23 -0
  162. package/dist/shared/@outfitter/cli-bf3vma4q.js +61 -0
  163. package/dist/shared/@outfitter/cli-c8q4f71g.js +144 -0
  164. package/dist/shared/@outfitter/cli-c9knfqn5.d.ts +30 -0
  165. package/dist/shared/@outfitter/cli-cf1xexgn.d.ts +53 -0
  166. package/dist/shared/@outfitter/cli-cf2s94s1.d.ts +42 -0
  167. package/dist/shared/@outfitter/cli-cs45xd6q.js +59 -0
  168. package/dist/shared/@outfitter/cli-d7jpshq5.d.ts +128 -0
  169. package/dist/shared/@outfitter/cli-d9ad0rqj.js +75 -0
  170. package/dist/shared/@outfitter/cli-daw296mv.js +61 -0
  171. package/dist/shared/@outfitter/cli-e5ms1y0x.d.ts +91 -0
  172. package/dist/shared/@outfitter/cli-e73v3qqy.d.ts +93 -0
  173. package/dist/shared/@outfitter/cli-efy6jfcj.js +52 -0
  174. package/dist/shared/@outfitter/cli-en6zn6sj.js +1 -0
  175. package/dist/shared/@outfitter/cli-ep2cvtk8.js +48 -0
  176. package/dist/shared/@outfitter/cli-evx7qcp1.d.ts +300 -0
  177. package/dist/shared/@outfitter/cli-f75h8e94.js +7 -0
  178. package/dist/shared/@outfitter/cli-fakncnjp.d.ts +106 -0
  179. package/dist/shared/@outfitter/cli-feb5j90n.js +94 -0
  180. package/dist/shared/@outfitter/cli-h20jc0bs.d.ts +66 -0
  181. package/dist/shared/@outfitter/cli-hnpbqmc8.d.ts +328 -0
  182. package/dist/shared/@outfitter/cli-j19a91ck.js +30 -0
  183. package/dist/shared/@outfitter/cli-j4n8gaf3.js +95 -0
  184. package/dist/shared/@outfitter/cli-jejfypgf.js +85 -0
  185. package/dist/shared/@outfitter/cli-jhcdwvpn.js +135 -0
  186. package/dist/shared/@outfitter/cli-jjemfdta.js +85 -0
  187. package/dist/shared/@outfitter/cli-kc84wmch.js +267 -0
  188. package/dist/shared/@outfitter/cli-ktqme80d.js +7 -0
  189. package/dist/shared/@outfitter/cli-mhamvbty.d.ts +34 -0
  190. package/dist/shared/@outfitter/cli-mq0jp15z.js +1 -0
  191. package/dist/shared/@outfitter/cli-mymyavvj.d.ts +26 -0
  192. package/dist/shared/@outfitter/cli-n17gt1dz.js +19 -0
  193. package/dist/shared/@outfitter/cli-n9dbh0hp.js +51 -0
  194. package/dist/shared/@outfitter/cli-nvvc92c8.js +128 -0
  195. package/dist/shared/@outfitter/cli-p1m5dhrs.js +169 -0
  196. package/dist/shared/@outfitter/cli-p38sfxyk.js +25 -0
  197. package/dist/shared/@outfitter/cli-p3dqm1vd.js +22 -0
  198. package/dist/shared/@outfitter/cli-p9j1phge.js +20 -0
  199. package/dist/shared/@outfitter/cli-pkxmzavm.js +62 -0
  200. package/dist/shared/@outfitter/cli-q8r6jarq.d.ts +24 -0
  201. package/dist/shared/@outfitter/cli-qj83y5wj.d.ts +71 -0
  202. package/dist/shared/@outfitter/cli-qjfc3j11.d.ts +112 -0
  203. package/dist/shared/@outfitter/cli-qp4cbhqr.js +70 -0
  204. package/dist/shared/@outfitter/cli-s0kkx9m1.d.ts +164 -0
  205. package/dist/shared/@outfitter/cli-snxj55n6.js +43 -0
  206. package/dist/shared/@outfitter/cli-swwxvjvm.d.ts +24 -0
  207. package/dist/shared/@outfitter/cli-sx67mmfx.d.ts +98 -0
  208. package/dist/shared/@outfitter/cli-tarpsa8a.js +30 -0
  209. package/dist/shared/@outfitter/cli-thvzhjd1.js +126 -0
  210. package/dist/shared/@outfitter/cli-tqewy503.d.ts +36 -0
  211. package/dist/shared/@outfitter/cli-ttt7r0j7.d.ts +253 -0
  212. package/dist/shared/@outfitter/cli-tvw1xrdj.js +20 -0
  213. package/dist/shared/@outfitter/cli-v1tzwxkt.js +32 -0
  214. package/dist/shared/@outfitter/cli-vd60dj65.js +1 -0
  215. package/dist/shared/@outfitter/cli-vp88gxev.js +279 -0
  216. package/dist/shared/@outfitter/cli-vstbkzky.d.ts +74 -0
  217. package/dist/shared/@outfitter/cli-vtg0sqk2.d.ts +54 -0
  218. package/dist/shared/@outfitter/cli-w5y3xepp.js +20 -0
  219. package/dist/shared/@outfitter/cli-x4cavvc0.js +1 -0
  220. package/dist/shared/@outfitter/cli-xep6v2c0.js +52 -0
  221. package/dist/shared/@outfitter/cli-xg5y5fhk.js +86 -0
  222. package/dist/shared/@outfitter/cli-xsaheemc.d.ts +248 -0
  223. package/dist/shared/@outfitter/cli-xvqtqjxk.js +82 -0
  224. package/dist/shared/@outfitter/cli-y25tt8nc.d.ts +48 -0
  225. package/dist/shared/@outfitter/cli-zact3325.js +152 -0
  226. package/dist/shared/@outfitter/cli-zx598p8q.d.ts +26 -0
  227. package/dist/streaming/ansi.d.ts +2 -0
  228. package/dist/streaming/ansi.js +8 -0
  229. package/dist/streaming/index.d.ts +4 -0
  230. package/dist/streaming/index.js +17 -0
  231. package/dist/streaming/spinner.d.ts +3 -0
  232. package/dist/streaming/spinner.js +10 -0
  233. package/dist/streaming/writer.d.ts +2 -0
  234. package/dist/streaming/writer.js +9 -0
  235. package/dist/table/index.d.ts +4 -0
  236. package/dist/table/index.js +13 -0
  237. package/dist/terminal/detection.d.ts +2 -0
  238. package/dist/terminal/detection.js +23 -0
  239. package/dist/terminal/index.d.ts +2 -0
  240. package/dist/terminal/index.js +24 -0
  241. package/dist/theme/context.d.ts +9 -0
  242. package/dist/theme/context.js +14 -0
  243. package/dist/theme/create.d.ts +8 -0
  244. package/dist/theme/create.js +12 -0
  245. package/dist/theme/index.d.ts +17 -0
  246. package/dist/theme/index.js +42 -0
  247. package/dist/theme/presets/bold.d.ts +8 -0
  248. package/dist/theme/presets/bold.js +12 -0
  249. package/dist/theme/presets/default.d.ts +8 -0
  250. package/dist/theme/presets/default.js +11 -0
  251. package/dist/theme/presets/index.d.ts +12 -0
  252. package/dist/theme/presets/index.js +24 -0
  253. package/dist/theme/presets/minimal.d.ts +8 -0
  254. package/dist/theme/presets/minimal.js +12 -0
  255. package/dist/theme/presets/rounded.d.ts +8 -0
  256. package/dist/theme/presets/rounded.js +12 -0
  257. package/dist/theme/resolve.d.ts +8 -0
  258. package/dist/theme/resolve.js +11 -0
  259. package/dist/theme/types.d.ts +7 -0
  260. package/dist/theme/types.js +1 -0
  261. package/dist/tree/index.d.ts +3 -0
  262. package/dist/tree/index.js +11 -0
  263. package/dist/types.d.ts +1 -252
  264. package/dist/types.js +1 -1
  265. package/package.json +228 -20
  266. package/dist/shared/@outfitter/cli-4yy82cmp.js +0 -20
@@ -0,0 +1,152 @@
1
+ // @bun
2
+ // packages/cli/src/output.ts
3
+ import {
4
+ safeStringify as contractsSafeStringify,
5
+ exitCodeMap
6
+ } from "@outfitter/contracts";
7
+ var DEFAULT_EXIT_CODE = 1;
8
+ function writeWithBackpressure(stream, data) {
9
+ return new Promise((resolve, reject) => {
10
+ const canContinue = stream.write(data, (error) => {
11
+ if (error)
12
+ reject(error);
13
+ });
14
+ if (canContinue) {
15
+ resolve();
16
+ } else {
17
+ stream.once("drain", () => resolve());
18
+ stream.once("error", reject);
19
+ }
20
+ });
21
+ }
22
+ function detectMode(options) {
23
+ if (options?.mode) {
24
+ return options.mode;
25
+ }
26
+ const envJsonl = process.env["OUTFITTER_JSONL"];
27
+ const envJson = process.env["OUTFITTER_JSON"];
28
+ if (envJsonl === "1")
29
+ return "jsonl";
30
+ if (envJson === "1")
31
+ return "json";
32
+ if (envJsonl === "0" || envJson === "0")
33
+ return "human";
34
+ return process.stdout.isTTY ? "human" : "json";
35
+ }
36
+ function isValidCategory(category) {
37
+ return category in exitCodeMap;
38
+ }
39
+ function safeStringify(value, pretty) {
40
+ const wrappedValue = value === undefined ? null : value;
41
+ return contractsSafeStringify(wrappedValue, pretty ? 2 : undefined);
42
+ }
43
+ function formatHuman(data) {
44
+ if (data === null || data === undefined) {
45
+ return "";
46
+ }
47
+ if (typeof data === "string") {
48
+ return data;
49
+ }
50
+ if (typeof data === "number" || typeof data === "boolean") {
51
+ return String(data);
52
+ }
53
+ if (Array.isArray(data)) {
54
+ return data.map((item) => formatHuman(item)).join(`
55
+ `);
56
+ }
57
+ if (typeof data === "object") {
58
+ const lines = [];
59
+ for (const [key, value] of Object.entries(data)) {
60
+ lines.push(`${key}: ${formatHuman(value)}`);
61
+ }
62
+ return lines.join(`
63
+ `);
64
+ }
65
+ return String(data);
66
+ }
67
+ function getErrorProperties(error) {
68
+ const errorObj = error;
69
+ return {
70
+ _tag: errorObj._tag,
71
+ category: errorObj.category,
72
+ context: errorObj.context
73
+ };
74
+ }
75
+ function getExitCode(error) {
76
+ const { category } = getErrorProperties(error);
77
+ if (category !== undefined && isValidCategory(category)) {
78
+ return exitCodeMap[category];
79
+ }
80
+ return DEFAULT_EXIT_CODE;
81
+ }
82
+ function serializeErrorToJson(error) {
83
+ const { _tag, category, context } = getErrorProperties(error);
84
+ const result = {
85
+ message: error.message
86
+ };
87
+ if (_tag !== undefined) {
88
+ result._tag = _tag;
89
+ }
90
+ if (category !== undefined) {
91
+ result.category = category;
92
+ }
93
+ if (context !== undefined) {
94
+ result.context = context;
95
+ }
96
+ return JSON.stringify(result);
97
+ }
98
+ function formatErrorHuman(error) {
99
+ const { _tag } = getErrorProperties(error);
100
+ if (_tag) {
101
+ return `${_tag}: ${error.message}`;
102
+ }
103
+ return error.message;
104
+ }
105
+ async function output(data, options) {
106
+ const mode = detectMode(options);
107
+ const stream = options?.stream ?? process.stdout;
108
+ let outputText;
109
+ switch (mode) {
110
+ case "json": {
111
+ const jsonData = data === undefined ? null : data;
112
+ outputText = safeStringify(jsonData, options?.pretty);
113
+ break;
114
+ }
115
+ case "jsonl": {
116
+ if (Array.isArray(data)) {
117
+ if (data.length === 0) {
118
+ outputText = "";
119
+ } else {
120
+ outputText = data.map((item) => safeStringify(item)).join(`
121
+ `);
122
+ }
123
+ } else {
124
+ outputText = safeStringify(data);
125
+ }
126
+ break;
127
+ }
128
+ default: {
129
+ outputText = formatHuman(data);
130
+ break;
131
+ }
132
+ }
133
+ if (outputText) {
134
+ await writeWithBackpressure(stream, `${outputText}
135
+ `);
136
+ }
137
+ }
138
+ function exitWithError(error, options) {
139
+ const exitCode = getExitCode(error);
140
+ const mode = detectMode(options);
141
+ const isJsonMode = mode === "json" || mode === "jsonl";
142
+ if (isJsonMode) {
143
+ process.stderr.write(`${serializeErrorToJson(error)}
144
+ `);
145
+ } else {
146
+ process.stderr.write(`${formatErrorHuman(error)}
147
+ `);
148
+ }
149
+ process.exit(exitCode);
150
+ }
151
+
152
+ export { output, exitWithError };
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Date and time formatting utilities.
3
+ *
4
+ * Provides human-friendly relative time formatting.
5
+ *
6
+ * @packageDocumentation
7
+ */
8
+ /**
9
+ * Formats a date as a human-friendly relative time string.
10
+ *
11
+ * Converts timestamps to natural language like "just now", "5 minutes ago",
12
+ * "yesterday", or "in 3 hours". Handles both past and future dates.
13
+ *
14
+ * @param date - Date to format (Date object, timestamp number, or ISO string)
15
+ * @returns Human-friendly relative time string
16
+ *
17
+ * @example
18
+ * ```typescript
19
+ * formatRelative(new Date()) // "just now"
20
+ * formatRelative(Date.now() - 30000) // "30 seconds ago"
21
+ * formatRelative(Date.now() - 3600000) // "1 hour ago"
22
+ * formatRelative(Date.now() + 300000) // "in 5 minutes"
23
+ * ```
24
+ */
25
+ declare function formatRelative(date: Date | number | string): string;
26
+ export { formatRelative };
@@ -0,0 +1,2 @@
1
+ import { ANSI } from "../shared/@outfitter/cli-vtg0sqk2";
2
+ export { ANSI };
@@ -0,0 +1,8 @@
1
+ // @bun
2
+ import {
3
+ ANSI
4
+ } from "../shared/@outfitter/cli-p3dqm1vd.js";
5
+ import"../shared/@outfitter/cli-v1tzwxkt.js";
6
+ export {
7
+ ANSI
8
+ };
@@ -0,0 +1,4 @@
1
+ import { Spinner, SpinnerOptions, SpinnerStyle, createSpinner } from "../shared/@outfitter/cli-h20jc0bs";
2
+ import { StreamWriter, StreamWriterOptions, WritableStream, createStreamWriter } from "../shared/@outfitter/cli-cf1xexgn";
3
+ import { ANSI } from "../shared/@outfitter/cli-vtg0sqk2";
4
+ export { createStreamWriter, createSpinner, WritableStream, StreamWriterOptions, StreamWriter, SpinnerStyle, SpinnerOptions, Spinner, ANSI };
@@ -0,0 +1,17 @@
1
+ // @bun
2
+ import {
3
+ createStreamWriter
4
+ } from "../shared/@outfitter/cli-jejfypgf.js";
5
+ import {
6
+ createSpinner
7
+ } from "../shared/@outfitter/cli-j4n8gaf3.js";
8
+ import {
9
+ ANSI
10
+ } from "../shared/@outfitter/cli-p3dqm1vd.js";
11
+ import"../shared/@outfitter/cli-p1m5dhrs.js";
12
+ import"../shared/@outfitter/cli-v1tzwxkt.js";
13
+ export {
14
+ createStreamWriter,
15
+ createSpinner,
16
+ ANSI
17
+ };
@@ -0,0 +1,3 @@
1
+ import { Spinner, SpinnerOptions, SpinnerStyle, createSpinner } from "../shared/@outfitter/cli-h20jc0bs";
2
+ import "../shared/@outfitter/cli-cf1xexgn";
3
+ export { createSpinner, SpinnerStyle, SpinnerOptions, Spinner };
@@ -0,0 +1,10 @@
1
+ // @bun
2
+ import {
3
+ createSpinner
4
+ } from "../shared/@outfitter/cli-j4n8gaf3.js";
5
+ import"../shared/@outfitter/cli-p3dqm1vd.js";
6
+ import"../shared/@outfitter/cli-p1m5dhrs.js";
7
+ import"../shared/@outfitter/cli-v1tzwxkt.js";
8
+ export {
9
+ createSpinner
10
+ };
@@ -0,0 +1,2 @@
1
+ import { StreamWriter, StreamWriterOptions, WritableStream, createStreamWriter } from "../shared/@outfitter/cli-cf1xexgn";
2
+ export { createStreamWriter, WritableStream, StreamWriterOptions, StreamWriter };
@@ -0,0 +1,9 @@
1
+ // @bun
2
+ import {
3
+ createStreamWriter
4
+ } from "../shared/@outfitter/cli-jejfypgf.js";
5
+ import"../shared/@outfitter/cli-p3dqm1vd.js";
6
+ import"../shared/@outfitter/cli-v1tzwxkt.js";
7
+ export {
8
+ createStreamWriter
9
+ };
@@ -0,0 +1,4 @@
1
+ import "../shared/@outfitter/cli-mn8f7rh4";
2
+ import { TableOptions, renderTable } from "../shared/@outfitter/cli-qj83y5wj";
3
+ import "../shared/@outfitter/cli-fakncnjp";
4
+ export { renderTable, TableOptions };
@@ -0,0 +1,13 @@
1
+ // @bun
2
+ import"../shared/@outfitter/cli-mq0jp15z.js";
3
+ import {
4
+ renderTable
5
+ } from "../shared/@outfitter/cli-an9j0h80.js";
6
+ import"../shared/@outfitter/cli-jjemfdta.js";
7
+ import"../shared/@outfitter/cli-85fg2vr5.js";
8
+ import"../shared/@outfitter/cli-9nbyj2bt.js";
9
+ import"../shared/@outfitter/cli-d9ad0rqj.js";
10
+ import"../shared/@outfitter/cli-v1tzwxkt.js";
11
+ export {
12
+ renderTable
13
+ };
@@ -0,0 +1,2 @@
1
+ import { TerminalOptions, getEnvValue, getTerminalWidth, hasNoColorEnv, isInteractive, resolveColorEnv, resolveForceColorEnv, supportsColor } from "../shared/@outfitter/cli-8aa1vhdn";
2
+ export { supportsColor, resolveForceColorEnv, resolveColorEnv, isInteractive, hasNoColorEnv, getTerminalWidth, getEnvValue, TerminalOptions };
@@ -0,0 +1,23 @@
1
+ // @bun
2
+ import {
3
+ getEnvValue,
4
+ getTerminalWidth,
5
+ hasNoColorEnv,
6
+ init_detection,
7
+ isInteractive,
8
+ resolveColorEnv,
9
+ resolveForceColorEnv,
10
+ supportsColor
11
+ } from "../shared/@outfitter/cli-d9ad0rqj.js";
12
+ import"../shared/@outfitter/cli-v1tzwxkt.js";
13
+ init_detection();
14
+
15
+ export {
16
+ supportsColor,
17
+ resolveForceColorEnv,
18
+ resolveColorEnv,
19
+ isInteractive,
20
+ hasNoColorEnv,
21
+ getTerminalWidth,
22
+ getEnvValue
23
+ };
@@ -0,0 +1,2 @@
1
+ import { TerminalOptions, getEnvValue, getTerminalWidth, hasNoColorEnv, isInteractive, resolveColorEnv, resolveForceColorEnv, supportsColor } from "../shared/@outfitter/cli-8aa1vhdn";
2
+ export { supportsColor, resolveForceColorEnv, resolveColorEnv, isInteractive, hasNoColorEnv, getTerminalWidth, getEnvValue, TerminalOptions };
@@ -0,0 +1,24 @@
1
+ // @bun
2
+ import {
3
+ getEnvValue,
4
+ getTerminalWidth,
5
+ hasNoColorEnv,
6
+ init_detection,
7
+ isInteractive,
8
+ resolveColorEnv,
9
+ resolveForceColorEnv,
10
+ supportsColor
11
+ } from "../shared/@outfitter/cli-d9ad0rqj.js";
12
+ import"../shared/@outfitter/cli-v1tzwxkt.js";
13
+
14
+ // packages/cli/src/terminal/index.ts
15
+ init_detection();
16
+ export {
17
+ supportsColor,
18
+ resolveForceColorEnv,
19
+ resolveColorEnv,
20
+ isInteractive,
21
+ hasNoColorEnv,
22
+ getTerminalWidth,
23
+ getEnvValue
24
+ };
@@ -0,0 +1,9 @@
1
+ import { ThemedContextOptions, ThemedLayoutContext, createThemedContext, getContextTheme } from "../shared/@outfitter/cli-e73v3qqy";
2
+ import "../shared/@outfitter/cli-s0kkx9m1";
3
+ import "../shared/@outfitter/cli-sx67mmfx";
4
+ import "../shared/@outfitter/cli-hnpbqmc8";
5
+ import "../shared/@outfitter/cli-3b7ed3rm";
6
+ import "../shared/@outfitter/cli-e5ms1y0x";
7
+ import "../shared/@outfitter/cli-fakncnjp";
8
+ import "../shared/@outfitter/cli-2g8bx1aq";
9
+ export { getContextTheme, createThemedContext, ThemedLayoutContext, ThemedContextOptions };
@@ -0,0 +1,14 @@
1
+ // @bun
2
+ import {
3
+ createThemedContext,
4
+ getContextTheme
5
+ } from "../shared/@outfitter/cli-p9j1phge.js";
6
+ import"../shared/@outfitter/cli-cs45xd6q.js";
7
+ import"../shared/@outfitter/cli-85fg2vr5.js";
8
+ import"../shared/@outfitter/cli-9nbyj2bt.js";
9
+ import"../shared/@outfitter/cli-d9ad0rqj.js";
10
+ import"../shared/@outfitter/cli-v1tzwxkt.js";
11
+ export {
12
+ getContextTheme,
13
+ createThemedContext
14
+ };
@@ -0,0 +1,8 @@
1
+ import { CreateVisualThemeOptions, createVisualTheme } from "../shared/@outfitter/cli-6m988kh0";
2
+ import "../shared/@outfitter/cli-s0kkx9m1";
3
+ import "../shared/@outfitter/cli-sx67mmfx";
4
+ import "../shared/@outfitter/cli-hnpbqmc8";
5
+ import "../shared/@outfitter/cli-3b7ed3rm";
6
+ import "../shared/@outfitter/cli-e5ms1y0x";
7
+ import "../shared/@outfitter/cli-fakncnjp";
8
+ export { createVisualTheme, CreateVisualThemeOptions };
@@ -0,0 +1,12 @@
1
+ // @bun
2
+ import {
3
+ createVisualTheme
4
+ } from "../shared/@outfitter/cli-ep2cvtk8.js";
5
+ import"../shared/@outfitter/cli-cs45xd6q.js";
6
+ import"../shared/@outfitter/cli-85fg2vr5.js";
7
+ import"../shared/@outfitter/cli-9nbyj2bt.js";
8
+ import"../shared/@outfitter/cli-d9ad0rqj.js";
9
+ import"../shared/@outfitter/cli-v1tzwxkt.js";
10
+ export {
11
+ createVisualTheme
12
+ };
@@ -0,0 +1,17 @@
1
+ import "../shared/@outfitter/cli-m8vv6kd6";
2
+ import "../shared/@outfitter/cli-5ppp2a7c";
3
+ import { minimalTheme } from "../shared/@outfitter/cli-mymyavvj";
4
+ import { CreateVisualThemeOptions, createVisualTheme } from "../shared/@outfitter/cli-6m988kh0";
5
+ import { ThemedContextOptions, ThemedLayoutContext, createThemedContext, getContextTheme } from "../shared/@outfitter/cli-e73v3qqy";
6
+ import { resolveGlyph, resolveStateMarker } from "../shared/@outfitter/cli-3t2zaenc";
7
+ import { defaultTheme } from "../shared/@outfitter/cli-3dxmmy4c";
8
+ import { boldTheme } from "../shared/@outfitter/cli-q8r6jarq";
9
+ import { roundedTheme } from "../shared/@outfitter/cli-swwxvjvm";
10
+ import { GlyphPair, MarkerSpec, PartialVisualTheme, SemanticState, ThemeColors, ThemeSpacing, VisualTheme } from "../shared/@outfitter/cli-s0kkx9m1";
11
+ import "../shared/@outfitter/cli-sx67mmfx";
12
+ import "../shared/@outfitter/cli-hnpbqmc8";
13
+ import "../shared/@outfitter/cli-3b7ed3rm";
14
+ import "../shared/@outfitter/cli-e5ms1y0x";
15
+ import "../shared/@outfitter/cli-fakncnjp";
16
+ import "../shared/@outfitter/cli-2g8bx1aq";
17
+ export { roundedTheme, resolveStateMarker, resolveGlyph, minimalTheme, getContextTheme, defaultTheme, createVisualTheme, createThemedContext, boldTheme, VisualTheme, ThemedLayoutContext, ThemedContextOptions, ThemeSpacing, ThemeColors, SemanticState, PartialVisualTheme, MarkerSpec, GlyphPair, CreateVisualThemeOptions };
@@ -0,0 +1,42 @@
1
+ // @bun
2
+ import"../shared/@outfitter/cli-6fxffp8k.js";
3
+ import"../shared/@outfitter/cli-vd60dj65.js";
4
+ import {
5
+ minimalTheme
6
+ } from "../shared/@outfitter/cli-tarpsa8a.js";
7
+ import {
8
+ createVisualTheme
9
+ } from "../shared/@outfitter/cli-ep2cvtk8.js";
10
+ import {
11
+ createThemedContext,
12
+ getContextTheme
13
+ } from "../shared/@outfitter/cli-p9j1phge.js";
14
+ import {
15
+ resolveGlyph,
16
+ resolveStateMarker
17
+ } from "../shared/@outfitter/cli-0ggcy7fa.js";
18
+ import {
19
+ boldTheme
20
+ } from "../shared/@outfitter/cli-8a8xrzhy.js";
21
+ import {
22
+ roundedTheme
23
+ } from "../shared/@outfitter/cli-w5y3xepp.js";
24
+ import {
25
+ defaultTheme
26
+ } from "../shared/@outfitter/cli-cs45xd6q.js";
27
+ import"../shared/@outfitter/cli-p1m5dhrs.js";
28
+ import"../shared/@outfitter/cli-85fg2vr5.js";
29
+ import"../shared/@outfitter/cli-9nbyj2bt.js";
30
+ import"../shared/@outfitter/cli-d9ad0rqj.js";
31
+ import"../shared/@outfitter/cli-v1tzwxkt.js";
32
+ export {
33
+ roundedTheme,
34
+ resolveStateMarker,
35
+ resolveGlyph,
36
+ minimalTheme,
37
+ getContextTheme,
38
+ defaultTheme,
39
+ createVisualTheme,
40
+ createThemedContext,
41
+ boldTheme
42
+ };
@@ -0,0 +1,8 @@
1
+ import { boldTheme } from "../../shared/@outfitter/cli-q8r6jarq";
2
+ import "../../shared/@outfitter/cli-s0kkx9m1";
3
+ import "../../shared/@outfitter/cli-sx67mmfx";
4
+ import "../../shared/@outfitter/cli-hnpbqmc8";
5
+ import "../../shared/@outfitter/cli-3b7ed3rm";
6
+ import "../../shared/@outfitter/cli-e5ms1y0x";
7
+ import "../../shared/@outfitter/cli-fakncnjp";
8
+ export { boldTheme };
@@ -0,0 +1,12 @@
1
+ // @bun
2
+ import {
3
+ boldTheme
4
+ } from "../../shared/@outfitter/cli-8a8xrzhy.js";
5
+ import"../../shared/@outfitter/cli-cs45xd6q.js";
6
+ import"../../shared/@outfitter/cli-85fg2vr5.js";
7
+ import"../../shared/@outfitter/cli-9nbyj2bt.js";
8
+ import"../../shared/@outfitter/cli-d9ad0rqj.js";
9
+ import"../../shared/@outfitter/cli-v1tzwxkt.js";
10
+ export {
11
+ boldTheme
12
+ };
@@ -0,0 +1,8 @@
1
+ import { defaultTheme } from "../../shared/@outfitter/cli-3dxmmy4c";
2
+ import "../../shared/@outfitter/cli-s0kkx9m1";
3
+ import "../../shared/@outfitter/cli-sx67mmfx";
4
+ import "../../shared/@outfitter/cli-hnpbqmc8";
5
+ import "../../shared/@outfitter/cli-3b7ed3rm";
6
+ import "../../shared/@outfitter/cli-e5ms1y0x";
7
+ import "../../shared/@outfitter/cli-fakncnjp";
8
+ export { defaultTheme };
@@ -0,0 +1,11 @@
1
+ // @bun
2
+ import {
3
+ defaultTheme
4
+ } from "../../shared/@outfitter/cli-cs45xd6q.js";
5
+ import"../../shared/@outfitter/cli-85fg2vr5.js";
6
+ import"../../shared/@outfitter/cli-9nbyj2bt.js";
7
+ import"../../shared/@outfitter/cli-d9ad0rqj.js";
8
+ import"../../shared/@outfitter/cli-v1tzwxkt.js";
9
+ export {
10
+ defaultTheme
11
+ };
@@ -0,0 +1,12 @@
1
+ import "../../shared/@outfitter/cli-5ppp2a7c";
2
+ import { minimalTheme } from "../../shared/@outfitter/cli-mymyavvj";
3
+ import { defaultTheme } from "../../shared/@outfitter/cli-3dxmmy4c";
4
+ import { boldTheme } from "../../shared/@outfitter/cli-q8r6jarq";
5
+ import { roundedTheme } from "../../shared/@outfitter/cli-swwxvjvm";
6
+ import "../../shared/@outfitter/cli-s0kkx9m1";
7
+ import "../../shared/@outfitter/cli-sx67mmfx";
8
+ import "../../shared/@outfitter/cli-hnpbqmc8";
9
+ import "../../shared/@outfitter/cli-3b7ed3rm";
10
+ import "../../shared/@outfitter/cli-e5ms1y0x";
11
+ import "../../shared/@outfitter/cli-fakncnjp";
12
+ export { roundedTheme, minimalTheme, defaultTheme, boldTheme };
@@ -0,0 +1,24 @@
1
+ // @bun
2
+ import"../../shared/@outfitter/cli-vd60dj65.js";
3
+ import {
4
+ minimalTheme
5
+ } from "../../shared/@outfitter/cli-tarpsa8a.js";
6
+ import {
7
+ boldTheme
8
+ } from "../../shared/@outfitter/cli-8a8xrzhy.js";
9
+ import {
10
+ roundedTheme
11
+ } from "../../shared/@outfitter/cli-w5y3xepp.js";
12
+ import {
13
+ defaultTheme
14
+ } from "../../shared/@outfitter/cli-cs45xd6q.js";
15
+ import"../../shared/@outfitter/cli-85fg2vr5.js";
16
+ import"../../shared/@outfitter/cli-9nbyj2bt.js";
17
+ import"../../shared/@outfitter/cli-d9ad0rqj.js";
18
+ import"../../shared/@outfitter/cli-v1tzwxkt.js";
19
+ export {
20
+ roundedTheme,
21
+ minimalTheme,
22
+ defaultTheme,
23
+ boldTheme
24
+ };
@@ -0,0 +1,8 @@
1
+ import { minimalTheme } from "../../shared/@outfitter/cli-mymyavvj";
2
+ import "../../shared/@outfitter/cli-s0kkx9m1";
3
+ import "../../shared/@outfitter/cli-sx67mmfx";
4
+ import "../../shared/@outfitter/cli-hnpbqmc8";
5
+ import "../../shared/@outfitter/cli-3b7ed3rm";
6
+ import "../../shared/@outfitter/cli-e5ms1y0x";
7
+ import "../../shared/@outfitter/cli-fakncnjp";
8
+ export { minimalTheme };
@@ -0,0 +1,12 @@
1
+ // @bun
2
+ import {
3
+ minimalTheme
4
+ } from "../../shared/@outfitter/cli-tarpsa8a.js";
5
+ import"../../shared/@outfitter/cli-cs45xd6q.js";
6
+ import"../../shared/@outfitter/cli-85fg2vr5.js";
7
+ import"../../shared/@outfitter/cli-9nbyj2bt.js";
8
+ import"../../shared/@outfitter/cli-d9ad0rqj.js";
9
+ import"../../shared/@outfitter/cli-v1tzwxkt.js";
10
+ export {
11
+ minimalTheme
12
+ };
@@ -0,0 +1,8 @@
1
+ import { roundedTheme } from "../../shared/@outfitter/cli-swwxvjvm";
2
+ import "../../shared/@outfitter/cli-s0kkx9m1";
3
+ import "../../shared/@outfitter/cli-sx67mmfx";
4
+ import "../../shared/@outfitter/cli-hnpbqmc8";
5
+ import "../../shared/@outfitter/cli-3b7ed3rm";
6
+ import "../../shared/@outfitter/cli-e5ms1y0x";
7
+ import "../../shared/@outfitter/cli-fakncnjp";
8
+ export { roundedTheme };
@@ -0,0 +1,12 @@
1
+ // @bun
2
+ import {
3
+ roundedTheme
4
+ } from "../../shared/@outfitter/cli-w5y3xepp.js";
5
+ import"../../shared/@outfitter/cli-cs45xd6q.js";
6
+ import"../../shared/@outfitter/cli-85fg2vr5.js";
7
+ import"../../shared/@outfitter/cli-9nbyj2bt.js";
8
+ import"../../shared/@outfitter/cli-d9ad0rqj.js";
9
+ import"../../shared/@outfitter/cli-v1tzwxkt.js";
10
+ export {
11
+ roundedTheme
12
+ };
@@ -0,0 +1,8 @@
1
+ import { resolveGlyph, resolveStateMarker } from "../shared/@outfitter/cli-3t2zaenc";
2
+ import "../shared/@outfitter/cli-s0kkx9m1";
3
+ import "../shared/@outfitter/cli-sx67mmfx";
4
+ import "../shared/@outfitter/cli-hnpbqmc8";
5
+ import "../shared/@outfitter/cli-3b7ed3rm";
6
+ import "../shared/@outfitter/cli-e5ms1y0x";
7
+ import "../shared/@outfitter/cli-fakncnjp";
8
+ export { resolveStateMarker, resolveGlyph };
@@ -0,0 +1,11 @@
1
+ // @bun
2
+ import {
3
+ resolveGlyph,
4
+ resolveStateMarker
5
+ } from "../shared/@outfitter/cli-0ggcy7fa.js";
6
+ import"../shared/@outfitter/cli-p1m5dhrs.js";
7
+ import"../shared/@outfitter/cli-v1tzwxkt.js";
8
+ export {
9
+ resolveStateMarker,
10
+ resolveGlyph
11
+ };
@@ -0,0 +1,7 @@
1
+ import { GlyphPair, MarkerSpec, PartialVisualTheme, SemanticState, ThemeColors, ThemeSpacing, VisualTheme } from "../shared/@outfitter/cli-s0kkx9m1";
2
+ import "../shared/@outfitter/cli-sx67mmfx";
3
+ import "../shared/@outfitter/cli-hnpbqmc8";
4
+ import "../shared/@outfitter/cli-3b7ed3rm";
5
+ import "../shared/@outfitter/cli-e5ms1y0x";
6
+ import "../shared/@outfitter/cli-fakncnjp";
7
+ export { VisualTheme, ThemeSpacing, ThemeColors, SemanticState, PartialVisualTheme, MarkerSpec, GlyphPair };
@@ -0,0 +1 @@
1
+ // @bun
@@ -0,0 +1,3 @@
1
+ import "../shared/@outfitter/cli-0v8vw1de";
2
+ import { TREE_GUIDES, TreeGuideStyle, TreeOptions, renderTree } from "../shared/@outfitter/cli-3b7ed3rm";
3
+ export { renderTree, TreeOptions, TreeGuideStyle, TREE_GUIDES };
@@ -0,0 +1,11 @@
1
+ // @bun
2
+ import"../shared/@outfitter/cli-b5epywry.js";
3
+ import {
4
+ TREE_GUIDES,
5
+ renderTree
6
+ } from "../shared/@outfitter/cli-b5c2k0d7.js";
7
+ import"../shared/@outfitter/cli-v1tzwxkt.js";
8
+ export {
9
+ renderTree,
10
+ TREE_GUIDES
11
+ };