@outfitter/cli 0.3.0 → 0.4.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.
Files changed (260) hide show
  1. package/README.md +23 -4
  2. package/dist/actions.js +0 -2
  3. package/dist/cli.d.ts +1 -1
  4. package/dist/cli.js +1 -2
  5. package/dist/{render → colors}/colors.d.ts +1 -1
  6. package/dist/{render → colors}/colors.js +2 -6
  7. package/dist/colors/index.d.ts +1 -1
  8. package/dist/colors/index.js +3 -4
  9. package/dist/command.d.ts +1 -1
  10. package/dist/command.js +1 -2
  11. package/dist/index.d.ts +3 -3
  12. package/dist/index.js +3 -4
  13. package/dist/input.d.ts +3 -26
  14. package/dist/input.js +1 -31
  15. package/dist/output.d.ts +2 -2
  16. package/dist/output.js +0 -1
  17. package/dist/pagination.d.ts +1 -1
  18. package/dist/pagination.js +0 -2
  19. package/dist/shared/@outfitter/{cli-ttt7r0j7.d.ts → cli-02kyvj7h.d.ts} +2 -13
  20. package/dist/shared/@outfitter/{cli-e6yv2764.d.ts → cli-f79bwzsp.d.ts} +1 -1
  21. package/dist/shared/@outfitter/{cli-d9ad0rqj.js → cli-jbj78ac5.js} +1 -6
  22. package/dist/shared/@outfitter/{cli-5g6rkv3d.js → cli-rk9zagkm.js} +24 -32
  23. package/dist/shared/@outfitter/{cli-4h4rpdra.js → cli-zahqsaby.js} +32 -10
  24. package/dist/terminal/detection.js +1 -5
  25. package/dist/terminal/index.js +1 -6
  26. package/dist/{shared/@outfitter/cli-4cb5g831.d.ts → text.d.ts} +1 -1
  27. package/dist/{shared/@outfitter/cli-mwxsh3sr.js → text.js} +15 -14
  28. package/dist/types.d.ts +2 -2
  29. package/dist/types.js +0 -2
  30. package/package.json +35 -213
  31. package/dist/borders/index.d.ts +0 -3
  32. package/dist/borders/index.js +0 -13
  33. package/dist/box/index.d.ts +0 -4
  34. package/dist/box/index.js +0 -13
  35. package/dist/demo/index.d.ts +0 -78
  36. package/dist/demo/index.js +0 -148
  37. package/dist/demo/registry.d.ts +0 -7
  38. package/dist/demo/registry.js +0 -28
  39. package/dist/demo/renderers/borders.d.ts +0 -7
  40. package/dist/demo/renderers/borders.js +0 -17
  41. package/dist/demo/renderers/box.d.ts +0 -7
  42. package/dist/demo/renderers/box.js +0 -18
  43. package/dist/demo/renderers/colors.d.ts +0 -7
  44. package/dist/demo/renderers/colors.js +0 -18
  45. package/dist/demo/renderers/indicators.d.ts +0 -7
  46. package/dist/demo/renderers/indicators.js +0 -17
  47. package/dist/demo/renderers/list.d.ts +0 -7
  48. package/dist/demo/renderers/list.js +0 -19
  49. package/dist/demo/renderers/markdown.d.ts +0 -7
  50. package/dist/demo/renderers/markdown.js +0 -18
  51. package/dist/demo/renderers/progress.d.ts +0 -7
  52. package/dist/demo/renderers/progress.js +0 -17
  53. package/dist/demo/renderers/spinner.d.ts +0 -7
  54. package/dist/demo/renderers/spinner.js +0 -19
  55. package/dist/demo/renderers/table.d.ts +0 -7
  56. package/dist/demo/renderers/table.js +0 -19
  57. package/dist/demo/renderers/text.d.ts +0 -7
  58. package/dist/demo/renderers/text.js +0 -16
  59. package/dist/demo/renderers/tree.d.ts +0 -7
  60. package/dist/demo/renderers/tree.js +0 -18
  61. package/dist/demo/section.d.ts +0 -5
  62. package/dist/demo/section.js +0 -23
  63. package/dist/demo/templates.d.ts +0 -4
  64. package/dist/demo/templates.js +0 -10
  65. package/dist/demo/types.d.ts +0 -3
  66. package/dist/demo/types.js +0 -8
  67. package/dist/list/index.d.ts +0 -3
  68. package/dist/list/index.js +0 -9
  69. package/dist/preset/full.d.ts +0 -14
  70. package/dist/preset/full.js +0 -41
  71. package/dist/preset/standard.d.ts +0 -11
  72. package/dist/preset/standard.js +0 -30
  73. package/dist/prompt/confirm.d.ts +0 -4
  74. package/dist/prompt/confirm.js +0 -9
  75. package/dist/prompt/group.d.ts +0 -4
  76. package/dist/prompt/group.js +0 -9
  77. package/dist/prompt/index.d.ts +0 -7
  78. package/dist/prompt/index.js +0 -32
  79. package/dist/prompt/select.d.ts +0 -4
  80. package/dist/prompt/select.js +0 -11
  81. package/dist/prompt/text.d.ts +0 -4
  82. package/dist/prompt/text.js +0 -11
  83. package/dist/prompt/types.d.ts +0 -3
  84. package/dist/prompt/types.js +0 -8
  85. package/dist/prompt/validators.d.ts +0 -2
  86. package/dist/prompt/validators.js +0 -8
  87. package/dist/render/borders.d.ts +0 -2
  88. package/dist/render/borders.js +0 -15
  89. package/dist/render/box.d.ts +0 -3
  90. package/dist/render/box.js +0 -23
  91. package/dist/render/date.d.ts +0 -2
  92. package/dist/render/date.js +0 -12
  93. package/dist/render/format-relative.d.ts +0 -2
  94. package/dist/render/format-relative.js +0 -8
  95. package/dist/render/format.d.ts +0 -2
  96. package/dist/render/format.js +0 -10
  97. package/dist/render/heading.d.ts +0 -3
  98. package/dist/render/heading.js +0 -14
  99. package/dist/render/index.d.ts +0 -32
  100. package/dist/render/index.js +0 -235
  101. package/dist/render/indicators.d.ts +0 -2
  102. package/dist/render/indicators.js +0 -16
  103. package/dist/render/json.d.ts +0 -2
  104. package/dist/render/json.js +0 -10
  105. package/dist/render/layout.d.ts +0 -5
  106. package/dist/render/layout.js +0 -25
  107. package/dist/render/list.d.ts +0 -2
  108. package/dist/render/list.js +0 -8
  109. package/dist/render/markdown.d.ts +0 -2
  110. package/dist/render/markdown.js +0 -10
  111. package/dist/render/progress.d.ts +0 -2
  112. package/dist/render/progress.js +0 -8
  113. package/dist/render/separator.d.ts +0 -3
  114. package/dist/render/separator.js +0 -14
  115. package/dist/render/shapes.d.ts +0 -2
  116. package/dist/render/shapes.js +0 -35
  117. package/dist/render/spinner.d.ts +0 -2
  118. package/dist/render/spinner.js +0 -12
  119. package/dist/render/stack.d.ts +0 -3
  120. package/dist/render/stack.js +0 -38
  121. package/dist/render/table.d.ts +0 -3
  122. package/dist/render/table.js +0 -12
  123. package/dist/render/text.d.ts +0 -2
  124. package/dist/render/text.js +0 -27
  125. package/dist/render/tree.d.ts +0 -2
  126. package/dist/render/tree.js +0 -10
  127. package/dist/render/types.d.ts +0 -2
  128. package/dist/shared/@outfitter/cli-0djg8q91.js +0 -7
  129. package/dist/shared/@outfitter/cli-0w242qtv.d.ts +0 -48
  130. package/dist/shared/@outfitter/cli-1g8tt31a.d.ts +0 -119
  131. package/dist/shared/@outfitter/cli-1kwbnt86.d.ts +0 -45
  132. package/dist/shared/@outfitter/cli-1sb3xvnw.js +0 -95
  133. package/dist/shared/@outfitter/cli-1vy0vtga.js +0 -135
  134. package/dist/shared/@outfitter/cli-2g8bx1aq.d.ts +0 -50
  135. package/dist/shared/@outfitter/cli-33e97cjs.d.ts +0 -42
  136. package/dist/shared/@outfitter/cli-3b7ed3rm.d.ts +0 -97
  137. package/dist/shared/@outfitter/cli-3hk2xf3c.js +0 -82
  138. package/dist/shared/@outfitter/cli-3hp8qwx3.js +0 -11
  139. package/dist/shared/@outfitter/cli-47yw5h6a.js +0 -7
  140. package/dist/shared/@outfitter/cli-4b6tbp68.d.ts +0 -36
  141. package/dist/shared/@outfitter/cli-4fcz51qa.js +0 -70
  142. package/dist/shared/@outfitter/cli-4x6pqnez.js +0 -20
  143. package/dist/shared/@outfitter/cli-4zk2y4a2.d.ts +0 -61
  144. package/dist/shared/@outfitter/cli-60b5xh1r.js +0 -20
  145. package/dist/shared/@outfitter/cli-6bztk73z.d.ts +0 -51
  146. package/dist/shared/@outfitter/cli-6fxffp8k.js +0 -1
  147. package/dist/shared/@outfitter/cli-6hg0sg2d.d.ts +0 -93
  148. package/dist/shared/@outfitter/cli-6r3m2knf.js +0 -62
  149. package/dist/shared/@outfitter/cli-6ty1nvws.js +0 -179
  150. package/dist/shared/@outfitter/cli-7n610r63.js +0 -20
  151. package/dist/shared/@outfitter/cli-7na6p4fs.d.ts +0 -59
  152. package/dist/shared/@outfitter/cli-83jwvj1t.d.ts +0 -17
  153. package/dist/shared/@outfitter/cli-85fg2vr5.js +0 -123
  154. package/dist/shared/@outfitter/cli-8bwaw3pz.js +0 -7
  155. package/dist/shared/@outfitter/cli-8hngbjyr.d.ts +0 -164
  156. package/dist/shared/@outfitter/cli-8j5k6mr3.js +0 -71
  157. package/dist/shared/@outfitter/cli-8xsmsbbd.d.ts +0 -223
  158. package/dist/shared/@outfitter/cli-914d47mt.js +0 -20
  159. package/dist/shared/@outfitter/cli-9bcm4zhf.d.ts +0 -87
  160. package/dist/shared/@outfitter/cli-9khk3cbq.d.ts +0 -190
  161. package/dist/shared/@outfitter/cli-a4q87517.d.ts +0 -64
  162. package/dist/shared/@outfitter/cli-aem6v4c8.js +0 -146
  163. package/dist/shared/@outfitter/cli-b0tzqgnf.d.ts +0 -132
  164. package/dist/shared/@outfitter/cli-b5c2k0d7.js +0 -39
  165. package/dist/shared/@outfitter/cli-b5epywry.js +0 -1
  166. package/dist/shared/@outfitter/cli-bc17qeh2.js +0 -19
  167. package/dist/shared/@outfitter/cli-bcmcaz1b.js +0 -23
  168. package/dist/shared/@outfitter/cli-bv09nme3.d.ts +0 -56
  169. package/dist/shared/@outfitter/cli-c6pbxpw0.d.ts +0 -112
  170. package/dist/shared/@outfitter/cli-c8fqdaes.js +0 -117
  171. package/dist/shared/@outfitter/cli-c8q4f71g.js +0 -144
  172. package/dist/shared/@outfitter/cli-c9knfqn5.d.ts +0 -30
  173. package/dist/shared/@outfitter/cli-cf1xexgn.d.ts +0 -53
  174. package/dist/shared/@outfitter/cli-cf2s94s1.d.ts +0 -42
  175. package/dist/shared/@outfitter/cli-cwgj6mcs.js +0 -214
  176. package/dist/shared/@outfitter/cli-d8ahdd9d.js +0 -272
  177. package/dist/shared/@outfitter/cli-dbyteh27.d.ts +0 -24
  178. package/dist/shared/@outfitter/cli-e5ms1y0x.d.ts +0 -91
  179. package/dist/shared/@outfitter/cli-en6zn6sj.js +0 -1
  180. package/dist/shared/@outfitter/cli-evx7qcp1.d.ts +0 -300
  181. package/dist/shared/@outfitter/cli-f6fsaayd.js +0 -94
  182. package/dist/shared/@outfitter/cli-fakncnjp.d.ts +0 -106
  183. package/dist/shared/@outfitter/cli-ffa0jwb7.js +0 -122
  184. package/dist/shared/@outfitter/cli-h20jc0bs.d.ts +0 -66
  185. package/dist/shared/@outfitter/cli-h3jz0bxz.js +0 -48
  186. package/dist/shared/@outfitter/cli-h4wpzb3f.js +0 -67
  187. package/dist/shared/@outfitter/cli-hda6mc28.js +0 -126
  188. package/dist/shared/@outfitter/cli-hnpbqmc8.d.ts +0 -328
  189. package/dist/shared/@outfitter/cli-j19a91ck.js +0 -30
  190. package/dist/shared/@outfitter/cli-jejfypgf.js +0 -85
  191. package/dist/shared/@outfitter/cli-jp0k3qd9.js +0 -279
  192. package/dist/shared/@outfitter/cli-k76e7173.js +0 -128
  193. package/dist/shared/@outfitter/cli-kc3ffp1v.d.ts +0 -23
  194. package/dist/shared/@outfitter/cli-kk5hnndk.d.ts +0 -128
  195. package/dist/shared/@outfitter/cli-ktqme80d.js +0 -7
  196. package/dist/shared/@outfitter/cli-mq0jp15z.js +0 -1
  197. package/dist/shared/@outfitter/cli-n0c33vba.js +0 -25
  198. package/dist/shared/@outfitter/cli-n17gt1dz.js +0 -19
  199. package/dist/shared/@outfitter/cli-n9dbh0hp.js +0 -51
  200. package/dist/shared/@outfitter/cli-ndem6tz8.js +0 -63
  201. package/dist/shared/@outfitter/cli-nj4nqy1h.d.ts +0 -24
  202. package/dist/shared/@outfitter/cli-nkns8p4r.js +0 -61
  203. package/dist/shared/@outfitter/cli-p3dqm1vd.js +0 -22
  204. package/dist/shared/@outfitter/cli-pndwprz8.js +0 -118
  205. package/dist/shared/@outfitter/cli-pvrwv6rb.js +0 -352
  206. package/dist/shared/@outfitter/cli-py02m79x.d.ts +0 -20
  207. package/dist/shared/@outfitter/cli-qj83y5wj.d.ts +0 -71
  208. package/dist/shared/@outfitter/cli-regjbef6.d.ts +0 -26
  209. package/dist/shared/@outfitter/cli-s1tx5kha.d.ts +0 -59
  210. package/dist/shared/@outfitter/cli-sam2sq50.js +0 -37
  211. package/dist/shared/@outfitter/cli-snxj55n6.js +0 -43
  212. package/dist/shared/@outfitter/cli-symyxb0z.js +0 -20
  213. package/dist/shared/@outfitter/cli-tvw1xrdj.js +0 -20
  214. package/dist/shared/@outfitter/cli-v1tzwxkt.js +0 -32
  215. package/dist/shared/@outfitter/cli-vd60dj65.js +0 -1
  216. package/dist/shared/@outfitter/cli-vfcrskfj.d.ts +0 -41
  217. package/dist/shared/@outfitter/cli-vstbkzky.d.ts +0 -74
  218. package/dist/shared/@outfitter/cli-vtg0sqk2.d.ts +0 -54
  219. package/dist/shared/@outfitter/cli-x4cavvc0.js +0 -1
  220. package/dist/shared/@outfitter/cli-xep6v2c0.js +0 -52
  221. package/dist/shared/@outfitter/cli-xg5y5fhk.js +0 -86
  222. package/dist/shared/@outfitter/cli-y7k1t81k.js +0 -30
  223. package/dist/shared/@outfitter/cli-yfyzy95c.js +0 -67
  224. package/dist/shared/@outfitter/cli-z78mkrc7.js +0 -59
  225. package/dist/shared/@outfitter/cli-znc47004.js +0 -134
  226. package/dist/shared/@outfitter/cli-zx598p8q.d.ts +0 -26
  227. package/dist/streaming/ansi.d.ts +0 -2
  228. package/dist/streaming/ansi.js +0 -8
  229. package/dist/streaming/index.d.ts +0 -4
  230. package/dist/streaming/index.js +0 -17
  231. package/dist/streaming/spinner.d.ts +0 -3
  232. package/dist/streaming/spinner.js +0 -10
  233. package/dist/streaming/writer.d.ts +0 -2
  234. package/dist/streaming/writer.js +0 -9
  235. package/dist/table/index.d.ts +0 -4
  236. package/dist/table/index.js +0 -13
  237. package/dist/theme/context.d.ts +0 -9
  238. package/dist/theme/context.js +0 -14
  239. package/dist/theme/create.d.ts +0 -8
  240. package/dist/theme/create.js +0 -12
  241. package/dist/theme/index.d.ts +0 -17
  242. package/dist/theme/index.js +0 -42
  243. package/dist/theme/presets/bold.d.ts +0 -8
  244. package/dist/theme/presets/bold.js +0 -12
  245. package/dist/theme/presets/default.d.ts +0 -8
  246. package/dist/theme/presets/default.js +0 -11
  247. package/dist/theme/presets/index.d.ts +0 -12
  248. package/dist/theme/presets/index.js +0 -24
  249. package/dist/theme/presets/minimal.d.ts +0 -8
  250. package/dist/theme/presets/minimal.js +0 -12
  251. package/dist/theme/presets/rounded.d.ts +0 -8
  252. package/dist/theme/presets/rounded.js +0 -12
  253. package/dist/theme/resolve.d.ts +0 -8
  254. package/dist/theme/resolve.js +0 -11
  255. package/dist/theme/types.d.ts +0 -7
  256. package/dist/theme/types.js +0 -1
  257. package/dist/tree/index.d.ts +0 -3
  258. package/dist/tree/index.js +0 -11
  259. /package/dist/shared/@outfitter/{cli-ykxn7rb2.d.ts → cli-xppg982q.d.ts} +0 -0
  260. /package/dist/{render/types.js → shared/@outfitter/cli-zw75pdk8.js} +0 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@outfitter/cli",
3
3
  "description": "Typed CLI runtime with terminal detection, rendering, output contracts, and input parsing",
4
- "version": "0.3.0",
4
+ "version": "0.4.0",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
@@ -9,58 +9,47 @@
9
9
  "module": "./dist/index.js",
10
10
  "types": "./dist/index.d.ts",
11
11
  "exports": {
12
- "./output": {
13
- "import": {
14
- "types": "./dist/output.d.ts",
15
- "default": "./dist/output.js"
16
- }
17
- },
18
- "./demo": {
19
- "import": {
20
- "types": "./dist/demo/index.d.ts",
21
- "default": "./dist/demo/index.js"
22
- }
23
- },
24
- "./borders": {
12
+ ".": {
25
13
  "import": {
26
- "types": "./dist/borders/index.d.ts",
27
- "default": "./dist/borders/index.js"
14
+ "types": "./dist/index.d.ts",
15
+ "default": "./dist/index.js"
28
16
  }
29
17
  },
30
- "./preset/full": {
18
+ "./actions": {
31
19
  "import": {
32
- "types": "./dist/preset/full.d.ts",
33
- "default": "./dist/preset/full.js"
20
+ "types": "./dist/actions.d.ts",
21
+ "default": "./dist/actions.js"
34
22
  }
35
23
  },
36
- "./preset/standard": {
24
+ "./colors": {
37
25
  "import": {
38
- "types": "./dist/preset/standard.d.ts",
39
- "default": "./dist/preset/standard.js"
26
+ "types": "./dist/colors/index.d.ts",
27
+ "default": "./dist/colors/index.js"
40
28
  }
41
29
  },
42
- "./box": {
30
+ "./command": {
43
31
  "import": {
44
- "types": "./dist/box/index.d.ts",
45
- "default": "./dist/box/index.js"
32
+ "types": "./dist/command.d.ts",
33
+ "default": "./dist/command.js"
46
34
  }
47
35
  },
48
- "./tree": {
36
+ "./input": {
49
37
  "import": {
50
- "types": "./dist/tree/index.d.ts",
51
- "default": "./dist/tree/index.js"
38
+ "types": "./dist/input.d.ts",
39
+ "default": "./dist/input.js"
52
40
  }
53
41
  },
54
- "./demo/section": {
42
+ "./output": {
55
43
  "import": {
56
- "types": "./dist/demo/section.d.ts",
57
- "default": "./dist/demo/section.js"
44
+ "types": "./dist/output.d.ts",
45
+ "default": "./dist/output.js"
58
46
  }
59
47
  },
60
- "./render": {
48
+ "./package.json": "./package.json",
49
+ "./pagination": {
61
50
  "import": {
62
- "types": "./dist/render/index.d.ts",
63
- "default": "./dist/render/index.js"
51
+ "types": "./dist/pagination.d.ts",
52
+ "default": "./dist/pagination.js"
64
53
  }
65
54
  },
66
55
  "./terminal": {
@@ -75,160 +64,10 @@
75
64
  "default": "./dist/terminal/detection.js"
76
65
  }
77
66
  },
78
- "./prompt/text": {
79
- "import": {
80
- "types": "./dist/prompt/text.d.ts",
81
- "default": "./dist/prompt/text.js"
82
- }
83
- },
84
- "./prompt/types": {
85
- "import": {
86
- "types": "./dist/prompt/types.d.ts",
87
- "default": "./dist/prompt/types.js"
88
- }
89
- },
90
- "./prompt/validators": {
91
- "import": {
92
- "types": "./dist/prompt/validators.d.ts",
93
- "default": "./dist/prompt/validators.js"
94
- }
95
- },
96
- "./prompt": {
97
- "import": {
98
- "types": "./dist/prompt/index.d.ts",
99
- "default": "./dist/prompt/index.js"
100
- }
101
- },
102
- "./streaming/spinner": {
103
- "import": {
104
- "types": "./dist/streaming/spinner.d.ts",
105
- "default": "./dist/streaming/spinner.js"
106
- }
107
- },
108
- "./streaming/ansi": {
67
+ "./text": {
109
68
  "import": {
110
- "types": "./dist/streaming/ansi.d.ts",
111
- "default": "./dist/streaming/ansi.js"
112
- }
113
- },
114
- "./streaming/writer": {
115
- "import": {
116
- "types": "./dist/streaming/writer.d.ts",
117
- "default": "./dist/streaming/writer.js"
118
- }
119
- },
120
- "./streaming": {
121
- "import": {
122
- "types": "./dist/streaming/index.d.ts",
123
- "default": "./dist/streaming/index.js"
124
- }
125
- },
126
- "./theme/presets/rounded": {
127
- "import": {
128
- "types": "./dist/theme/presets/rounded.d.ts",
129
- "default": "./dist/theme/presets/rounded.js"
130
- }
131
- },
132
- "./theme/presets/bold": {
133
- "import": {
134
- "types": "./dist/theme/presets/bold.d.ts",
135
- "default": "./dist/theme/presets/bold.js"
136
- }
137
- },
138
- "./theme/presets/minimal": {
139
- "import": {
140
- "types": "./dist/theme/presets/minimal.d.ts",
141
- "default": "./dist/theme/presets/minimal.js"
142
- }
143
- },
144
- "./theme/presets/default": {
145
- "import": {
146
- "types": "./dist/theme/presets/default.d.ts",
147
- "default": "./dist/theme/presets/default.js"
148
- }
149
- },
150
- "./theme/presets": {
151
- "import": {
152
- "types": "./dist/theme/presets/index.d.ts",
153
- "default": "./dist/theme/presets/index.js"
154
- }
155
- },
156
- "./prompt/confirm": {
157
- "import": {
158
- "types": "./dist/prompt/confirm.d.ts",
159
- "default": "./dist/prompt/confirm.js"
160
- }
161
- },
162
- "./prompt/select": {
163
- "import": {
164
- "types": "./dist/prompt/select.d.ts",
165
- "default": "./dist/prompt/select.js"
166
- }
167
- },
168
- "./prompt/group": {
169
- "import": {
170
- "types": "./dist/prompt/group.d.ts",
171
- "default": "./dist/prompt/group.js"
172
- }
173
- },
174
- "./list": {
175
- "import": {
176
- "types": "./dist/list/index.d.ts",
177
- "default": "./dist/list/index.js"
178
- }
179
- },
180
- "./colors": {
181
- "import": {
182
- "types": "./dist/colors/index.d.ts",
183
- "default": "./dist/colors/index.js"
184
- }
185
- },
186
- "./table": {
187
- "import": {
188
- "types": "./dist/table/index.d.ts",
189
- "default": "./dist/table/index.js"
190
- }
191
- },
192
- "./theme/context": {
193
- "import": {
194
- "types": "./dist/theme/context.d.ts",
195
- "default": "./dist/theme/context.js"
196
- }
197
- },
198
- "./theme/types": {
199
- "import": {
200
- "types": "./dist/theme/types.d.ts",
201
- "default": "./dist/theme/types.js"
202
- }
203
- },
204
- "./theme": {
205
- "import": {
206
- "types": "./dist/theme/index.d.ts",
207
- "default": "./dist/theme/index.js"
208
- }
209
- },
210
- "./theme/create": {
211
- "import": {
212
- "types": "./dist/theme/create.d.ts",
213
- "default": "./dist/theme/create.js"
214
- }
215
- },
216
- "./theme/resolve": {
217
- "import": {
218
- "types": "./dist/theme/resolve.d.ts",
219
- "default": "./dist/theme/resolve.js"
220
- }
221
- },
222
- "./pagination": {
223
- "import": {
224
- "types": "./dist/pagination.d.ts",
225
- "default": "./dist/pagination.js"
226
- }
227
- },
228
- "./input": {
229
- "import": {
230
- "types": "./dist/input.d.ts",
231
- "default": "./dist/input.js"
69
+ "types": "./dist/text.d.ts",
70
+ "default": "./dist/text.js"
232
71
  }
233
72
  },
234
73
  "./types": {
@@ -236,26 +75,7 @@
236
75
  "types": "./dist/types.d.ts",
237
76
  "default": "./dist/types.js"
238
77
  }
239
- },
240
- "./actions": {
241
- "import": {
242
- "types": "./dist/actions.d.ts",
243
- "default": "./dist/actions.js"
244
- }
245
- },
246
- ".": {
247
- "import": {
248
- "types": "./dist/index.d.ts",
249
- "default": "./dist/index.js"
250
- }
251
- },
252
- "./command": {
253
- "import": {
254
- "types": "./dist/command.d.ts",
255
- "default": "./dist/command.js"
256
- }
257
- },
258
- "./package.json": "./package.json"
78
+ }
259
79
  },
260
80
  "sideEffects": false,
261
81
  "scripts": {
@@ -269,20 +89,22 @@
269
89
  },
270
90
  "dependencies": {
271
91
  "@clack/prompts": "^0.11.0",
272
- "@outfitter/config": "0.3.0",
273
- "@outfitter/contracts": "0.2.0",
274
- "@outfitter/types": "0.2.0",
275
92
  "better-result": "^2.5.1",
276
93
  "commander": "^14.0.2"
277
94
  },
95
+ "peerDependencies": {
96
+ "@outfitter/config": ">=0.3.0",
97
+ "@outfitter/contracts": ">=0.2.0",
98
+ "@outfitter/types": ">=0.2.0",
99
+ "zod": "^4.3.5"
100
+ },
278
101
  "devDependencies": {
102
+ "@outfitter/config": "0.3.1",
103
+ "@outfitter/contracts": "0.3.0",
279
104
  "@types/bun": "^1.3.7",
280
105
  "@types/node": "^25.0.10",
281
106
  "typescript": "^5.9.3"
282
107
  },
283
- "peerDependencies": {
284
- "zod": "^4.3.5"
285
- },
286
108
  "engines": {
287
109
  "bun": ">=1.3.7"
288
110
  },
@@ -1,3 +0,0 @@
1
- import "../shared/@outfitter/cli-w7w7ta31";
2
- import { BORDERS, BorderCharacters, BorderStyle, LinePosition, drawHorizontalLine, getBorderCharacters } from "../shared/@outfitter/cli-fakncnjp";
3
- export { getBorderCharacters, drawHorizontalLine, LinePosition, BorderStyle, BorderCharacters, BORDERS };
@@ -1,13 +0,0 @@
1
- // @bun
2
- import"../shared/@outfitter/cli-ktqme80d.js";
3
- import {
4
- BORDERS,
5
- drawHorizontalLine,
6
- getBorderCharacters
7
- } from "../shared/@outfitter/cli-85fg2vr5.js";
8
- import"../shared/@outfitter/cli-v1tzwxkt.js";
9
- export {
10
- getBorderCharacters,
11
- drawHorizontalLine,
12
- BORDERS
13
- };
@@ -1,4 +0,0 @@
1
- import "../shared/@outfitter/cli-zfqz333z";
2
- import { BoxAlign, BoxOptions, renderBox } from "../shared/@outfitter/cli-8xsmsbbd";
3
- import "../shared/@outfitter/cli-fakncnjp";
4
- export { renderBox, BoxOptions, BoxAlign };
package/dist/box/index.js DELETED
@@ -1,13 +0,0 @@
1
- // @bun
2
- import"../shared/@outfitter/cli-0djg8q91.js";
3
- import {
4
- renderBox
5
- } from "../shared/@outfitter/cli-jp0k3qd9.js";
6
- import"../shared/@outfitter/cli-mwxsh3sr.js";
7
- import"../shared/@outfitter/cli-85fg2vr5.js";
8
- import"../shared/@outfitter/cli-5g6rkv3d.js";
9
- import"../shared/@outfitter/cli-d9ad0rqj.js";
10
- import"../shared/@outfitter/cli-v1tzwxkt.js";
11
- export {
12
- renderBox
13
- };
@@ -1,78 +0,0 @@
1
- import { BORDER_STYLE_META, LIST_STYLE_META, PRIMITIVE_META, SPINNER_STYLE_META, THEME_METHOD_META, getBorderStyles, getListStyles, getPrimitiveIds, getSpinnerStyles, getThemeMethodsByCategory } from "../shared/@outfitter/cli-bv09nme3";
2
- import "../shared/@outfitter/cli-e5ms1y0x";
3
- import "../shared/@outfitter/cli-b0tzqgnf";
4
- import "../shared/@outfitter/cli-fakncnjp";
5
- import { SectionOptions, SubsectionOptions, codeBlock, demoContent, demoSection, demoSubsection, description } from "../shared/@outfitter/cli-kk5hnndk";
6
- import "../shared/@outfitter/cli-6bztk73z";
7
- import "../shared/@outfitter/cli-2g8bx1aq";
8
- import { DEFAULT_EXAMPLES, getExample } from "../shared/@outfitter/cli-83jwvj1t";
9
- import { DemoConfig, DemoRegistryEntry, DemoRenderer, ExampleTexts, PrimitiveId, PrimitiveMeta, ThemeMethodCategory, ThemeMethodMeta, VariantMeta, isPrimitiveId } from "../shared/@outfitter/cli-c6pbxpw0";
10
- import "../shared/@outfitter/cli-ykxn7rb2";
11
- /**
12
- * Renders a demo for a specific primitive.
13
- *
14
- * @param id - The primitive to demo
15
- * @param config - Optional configuration for customization
16
- * @returns Formatted demo output string
17
- *
18
- * @example
19
- * ```typescript
20
- * // Default examples
21
- * console.log(renderDemo("colors"));
22
- *
23
- * // Custom examples
24
- * console.log(renderDemo("colors", {
25
- * examples: { success: "Build completed" }
26
- * }));
27
- *
28
- * // No code examples
29
- * console.log(renderDemo("table", { showCode: false }));
30
- * ```
31
- */
32
- declare function renderDemo(id: PrimitiveId, config?: DemoConfig): string;
33
- /**
34
- * Renders demos for all primitives.
35
- *
36
- * @param config - Optional configuration applied to all demos
37
- * @returns Combined output from all demos, separated by blank lines
38
- *
39
- * @example
40
- * ```typescript
41
- * console.log(renderAllDemos());
42
- *
43
- * // With custom config
44
- * console.log(renderAllDemos({
45
- * showCode: false,
46
- * showDescriptions: true,
47
- * }));
48
- * ```
49
- */
50
- declare function renderAllDemos(config?: DemoConfig): string;
51
- /**
52
- * Gets metadata for a specific primitive.
53
- *
54
- * @param id - The primitive ID
55
- * @returns Primitive metadata including name, description, and import example
56
- *
57
- * @example
58
- * ```typescript
59
- * const meta = getPrimitive("colors");
60
- * console.log(meta.name); // "Colors"
61
- * console.log(meta.importExample); // 'import { createTheme } from "@outfitter/cli/render";'
62
- * ```
63
- */
64
- declare function getPrimitive(id: PrimitiveId): PrimitiveMeta;
65
- /**
66
- * Gets all primitives with their metadata.
67
- *
68
- * @returns Array of all primitive metadata
69
- */
70
- declare function getAllPrimitives(): PrimitiveMeta[];
71
- /**
72
- * Gets a registry entry with both metadata and renderer.
73
- *
74
- * @param id - The primitive ID
75
- * @returns Registry entry with meta and render function
76
- */
77
- declare function getDemoEntry(id: PrimitiveId): DemoRegistryEntry;
78
- export { renderDemo, renderAllDemos, isPrimitiveId, getThemeMethodsByCategory, getSpinnerStyles, getPrimitiveIds, getPrimitive, getListStyles, getExample, getDemoEntry, getBorderStyles, getAllPrimitives, description, demoSubsection, demoSection, demoContent, codeBlock, VariantMeta, ThemeMethodMeta, ThemeMethodCategory, THEME_METHOD_META, SubsectionOptions, SectionOptions, SPINNER_STYLE_META, PrimitiveMeta, PrimitiveId, PRIMITIVE_META, LIST_STYLE_META, ExampleTexts, DemoRenderer, DemoRegistryEntry, DemoConfig, DEFAULT_EXAMPLES, BORDER_STYLE_META };
@@ -1,148 +0,0 @@
1
- // @bun
2
- import {
3
- renderTreeDemo
4
- } from "../shared/@outfitter/cli-ffa0jwb7.js";
5
- import"../shared/@outfitter/cli-b5c2k0d7.js";
6
- import {
7
- renderTextDemo
8
- } from "../shared/@outfitter/cli-k76e7173.js";
9
- import {
10
- renderSpinnerDemo
11
- } from "../shared/@outfitter/cli-h4wpzb3f.js";
12
- import"../shared/@outfitter/cli-n9dbh0hp.js";
13
- import {
14
- renderColorsDemo
15
- } from "../shared/@outfitter/cli-znc47004.js";
16
- import {
17
- renderListDemo
18
- } from "../shared/@outfitter/cli-hda6mc28.js";
19
- import"../shared/@outfitter/cli-xg5y5fhk.js";
20
- import {
21
- renderIndicatorsDemo
22
- } from "../shared/@outfitter/cli-pndwprz8.js";
23
- import"../shared/@outfitter/cli-6ty1nvws.js";
24
- import {
25
- renderProgressDemo
26
- } from "../shared/@outfitter/cli-nkns8p4r.js";
27
- import"../shared/@outfitter/cli-bc17qeh2.js";
28
- import {
29
- renderTableDemo
30
- } from "../shared/@outfitter/cli-f6fsaayd.js";
31
- import"../shared/@outfitter/cli-c8fqdaes.js";
32
- import {
33
- isPrimitiveId
34
- } from "../shared/@outfitter/cli-tvw1xrdj.js";
35
- import {
36
- renderBordersDemo
37
- } from "../shared/@outfitter/cli-6r3m2knf.js";
38
- import {
39
- renderMarkdownDemo
40
- } from "../shared/@outfitter/cli-4fcz51qa.js";
41
- import"../shared/@outfitter/cli-ndem6tz8.js";
42
- import {
43
- renderBoxDemo
44
- } from "../shared/@outfitter/cli-cwgj6mcs.js";
45
- import {
46
- BORDER_STYLE_META,
47
- LIST_STYLE_META,
48
- PRIMITIVE_META,
49
- SPINNER_STYLE_META,
50
- THEME_METHOD_META,
51
- getBorderStyles,
52
- getListStyles,
53
- getPrimitiveIds,
54
- getPrimitiveMeta,
55
- getSpinnerStyles,
56
- getThemeMethodsByCategory
57
- } from "../shared/@outfitter/cli-d8ahdd9d.js";
58
- import {
59
- DEFAULT_EXAMPLES,
60
- getExample
61
- } from "../shared/@outfitter/cli-xep6v2c0.js";
62
- import {
63
- codeBlock,
64
- demoContent,
65
- demoSection,
66
- demoSubsection,
67
- description
68
- } from "../shared/@outfitter/cli-sam2sq50.js";
69
- import"../shared/@outfitter/cli-3hk2xf3c.js";
70
- import"../shared/@outfitter/cli-aem6v4c8.js";
71
- import"../shared/@outfitter/cli-jp0k3qd9.js";
72
- import"../shared/@outfitter/cli-mwxsh3sr.js";
73
- import"../shared/@outfitter/cli-85fg2vr5.js";
74
- import {
75
- createTheme,
76
- init_colors
77
- } from "../shared/@outfitter/cli-5g6rkv3d.js";
78
- import"../shared/@outfitter/cli-d9ad0rqj.js";
79
- import"../shared/@outfitter/cli-v1tzwxkt.js";
80
-
81
- // packages/cli/src/demo/index.ts
82
- init_colors();
83
- var DEMO_RENDERERS = {
84
- colors: renderColorsDemo,
85
- borders: renderBordersDemo,
86
- spinner: renderSpinnerDemo,
87
- list: renderListDemo,
88
- box: renderBoxDemo,
89
- table: renderTableDemo,
90
- progress: renderProgressDemo,
91
- tree: renderTreeDemo,
92
- text: renderTextDemo,
93
- markdown: renderMarkdownDemo,
94
- indicators: renderIndicatorsDemo
95
- };
96
- function renderDemo(id, config = {}) {
97
- const renderer = DEMO_RENDERERS[id];
98
- const theme = createTheme();
99
- return renderer(config, theme);
100
- }
101
- function renderAllDemos(config = {}) {
102
- const theme = createTheme();
103
- const outputs = [];
104
- for (const id of getPrimitiveIds()) {
105
- const renderer = DEMO_RENDERERS[id];
106
- outputs.push(renderer(config, theme));
107
- outputs.push("");
108
- }
109
- return outputs.join(`
110
- `).trimEnd();
111
- }
112
- function getPrimitive(id) {
113
- return getPrimitiveMeta(id);
114
- }
115
- function getAllPrimitives() {
116
- return getPrimitiveIds().map((id) => PRIMITIVE_META[id]);
117
- }
118
- function getDemoEntry(id) {
119
- return {
120
- meta: getPrimitiveMeta(id),
121
- render: DEMO_RENDERERS[id]
122
- };
123
- }
124
- export {
125
- renderDemo,
126
- renderAllDemos,
127
- isPrimitiveId,
128
- getThemeMethodsByCategory,
129
- getSpinnerStyles,
130
- getPrimitiveIds,
131
- getPrimitive,
132
- getListStyles,
133
- getExample,
134
- getDemoEntry,
135
- getBorderStyles,
136
- getAllPrimitives,
137
- description,
138
- demoSubsection,
139
- demoSection,
140
- demoContent,
141
- codeBlock,
142
- THEME_METHOD_META,
143
- SPINNER_STYLE_META,
144
- PRIMITIVE_META,
145
- LIST_STYLE_META,
146
- DEFAULT_EXAMPLES,
147
- BORDER_STYLE_META
148
- };
@@ -1,7 +0,0 @@
1
- import { BORDER_STYLE_META, LIST_STYLE_META, PRIMITIVE_META, SPINNER_STYLE_META, THEME_METHOD_META, getBorderStyles, getListStyles, getPrimitiveIds, getPrimitiveMeta, getSpinnerStyles, getThemeMethodsByCategory } from "../shared/@outfitter/cli-bv09nme3";
2
- import "../shared/@outfitter/cli-e5ms1y0x";
3
- import "../shared/@outfitter/cli-b0tzqgnf";
4
- import "../shared/@outfitter/cli-fakncnjp";
5
- import "../shared/@outfitter/cli-c6pbxpw0";
6
- import "../shared/@outfitter/cli-ykxn7rb2";
7
- export { getThemeMethodsByCategory, getSpinnerStyles, getPrimitiveMeta, getPrimitiveIds, getListStyles, getBorderStyles, THEME_METHOD_META, SPINNER_STYLE_META, PRIMITIVE_META, LIST_STYLE_META, BORDER_STYLE_META };
@@ -1,28 +0,0 @@
1
- // @bun
2
- import {
3
- BORDER_STYLE_META,
4
- LIST_STYLE_META,
5
- PRIMITIVE_META,
6
- SPINNER_STYLE_META,
7
- THEME_METHOD_META,
8
- getBorderStyles,
9
- getListStyles,
10
- getPrimitiveIds,
11
- getPrimitiveMeta,
12
- getSpinnerStyles,
13
- getThemeMethodsByCategory
14
- } from "../shared/@outfitter/cli-d8ahdd9d.js";
15
- import"../shared/@outfitter/cli-v1tzwxkt.js";
16
- export {
17
- getThemeMethodsByCategory,
18
- getSpinnerStyles,
19
- getPrimitiveMeta,
20
- getPrimitiveIds,
21
- getListStyles,
22
- getBorderStyles,
23
- THEME_METHOD_META,
24
- SPINNER_STYLE_META,
25
- PRIMITIVE_META,
26
- LIST_STYLE_META,
27
- BORDER_STYLE_META
28
- };
@@ -1,7 +0,0 @@
1
- import { DemoConfig } from "../../shared/@outfitter/cli-c6pbxpw0";
2
- import { Theme } from "../../shared/@outfitter/cli-ykxn7rb2";
3
- /**
4
- * Renders the borders demo section.
5
- */
6
- declare function renderBordersDemo(config: DemoConfig, theme: Theme): string;
7
- export { renderBordersDemo };
@@ -1,17 +0,0 @@
1
- // @bun
2
- import {
3
- renderBordersDemo
4
- } from "../../shared/@outfitter/cli-6r3m2knf.js";
5
- import"../../shared/@outfitter/cli-d8ahdd9d.js";
6
- import"../../shared/@outfitter/cli-sam2sq50.js";
7
- import"../../shared/@outfitter/cli-3hk2xf3c.js";
8
- import"../../shared/@outfitter/cli-aem6v4c8.js";
9
- import"../../shared/@outfitter/cli-jp0k3qd9.js";
10
- import"../../shared/@outfitter/cli-mwxsh3sr.js";
11
- import"../../shared/@outfitter/cli-85fg2vr5.js";
12
- import"../../shared/@outfitter/cli-5g6rkv3d.js";
13
- import"../../shared/@outfitter/cli-d9ad0rqj.js";
14
- import"../../shared/@outfitter/cli-v1tzwxkt.js";
15
- export {
16
- renderBordersDemo
17
- };
@@ -1,7 +0,0 @@
1
- import { DemoConfig } from "../../shared/@outfitter/cli-c6pbxpw0";
2
- import { Theme } from "../../shared/@outfitter/cli-ykxn7rb2";
3
- /**
4
- * Renders the box demo section.
5
- */
6
- declare function renderBoxDemo(config: DemoConfig, theme: Theme): string;
7
- export { renderBoxDemo };
@@ -1,18 +0,0 @@
1
- // @bun
2
- import {
3
- renderBoxDemo
4
- } from "../../shared/@outfitter/cli-cwgj6mcs.js";
5
- import"../../shared/@outfitter/cli-d8ahdd9d.js";
6
- import"../../shared/@outfitter/cli-xep6v2c0.js";
7
- import"../../shared/@outfitter/cli-sam2sq50.js";
8
- import"../../shared/@outfitter/cli-3hk2xf3c.js";
9
- import"../../shared/@outfitter/cli-aem6v4c8.js";
10
- import"../../shared/@outfitter/cli-jp0k3qd9.js";
11
- import"../../shared/@outfitter/cli-mwxsh3sr.js";
12
- import"../../shared/@outfitter/cli-85fg2vr5.js";
13
- import"../../shared/@outfitter/cli-5g6rkv3d.js";
14
- import"../../shared/@outfitter/cli-d9ad0rqj.js";
15
- import"../../shared/@outfitter/cli-v1tzwxkt.js";
16
- export {
17
- renderBoxDemo
18
- };
@@ -1,7 +0,0 @@
1
- import { DemoConfig } from "../../shared/@outfitter/cli-c6pbxpw0";
2
- import { Theme } from "../../shared/@outfitter/cli-ykxn7rb2";
3
- /**
4
- * Renders the colors demo section.
5
- */
6
- declare function renderColorsDemo(config: DemoConfig, theme: Theme): string;
7
- export { renderColorsDemo };