mepcli 1.3.2 → 2.0.0-beta.1

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 (291) hide show
  1. package/README.md +11 -2
  2. package/dist/{ansi.js → src/ansi.js} +17 -9
  3. package/dist/src/ansi.js.map +1 -0
  4. package/dist/{base.js → src/base.js} +82 -70
  5. package/dist/src/base.js.map +1 -0
  6. package/dist/{core.js → src/core.js} +266 -320
  7. package/dist/src/core.js.map +1 -0
  8. package/dist/src/data/countries.js +569 -0
  9. package/dist/src/data/countries.js.map +1 -0
  10. package/dist/src/data/licenses.js +480 -0
  11. package/dist/src/data/licenses.js.map +1 -0
  12. package/dist/{highlight.js → src/highlight.js} +77 -69
  13. package/dist/src/highlight.js.map +1 -0
  14. package/dist/src/index.js +66 -0
  15. package/dist/src/index.js.map +1 -0
  16. package/dist/{input.js → src/input.js} +47 -41
  17. package/dist/src/input.js.map +1 -0
  18. package/dist/src/pipeline.js +273 -0
  19. package/dist/src/pipeline.js.map +1 -0
  20. package/dist/{prompts → src/prompts}/autocomplete.js +58 -57
  21. package/dist/src/prompts/autocomplete.js.map +1 -0
  22. package/dist/{prompts → src/prompts}/box.js +86 -53
  23. package/dist/src/prompts/box.js.map +1 -0
  24. package/dist/{prompts → src/prompts}/breadcrumb-search.js +110 -98
  25. package/dist/src/prompts/breadcrumb-search.js.map +1 -0
  26. package/dist/{prompts → src/prompts}/breadcrumb.js +126 -121
  27. package/dist/src/prompts/breadcrumb.js.map +1 -0
  28. package/dist/{prompts → src/prompts}/byte.js +69 -52
  29. package/dist/src/prompts/byte.js.map +1 -0
  30. package/dist/{prompts → src/prompts}/calculator.js +79 -56
  31. package/dist/src/prompts/calculator.js.map +1 -0
  32. package/dist/{prompts → src/prompts}/calendar.js +167 -127
  33. package/dist/src/prompts/calendar.js.map +1 -0
  34. package/dist/{prompts → src/prompts}/checkbox.js +53 -49
  35. package/dist/src/prompts/checkbox.js.map +1 -0
  36. package/dist/{prompts → src/prompts}/code.js +88 -76
  37. package/dist/src/prompts/code.js.map +1 -0
  38. package/dist/{prompts → src/prompts}/color.js +68 -50
  39. package/dist/src/prompts/color.js.map +1 -0
  40. package/dist/{prompts → src/prompts}/confirm.js +22 -15
  41. package/dist/src/prompts/confirm.js.map +1 -0
  42. package/dist/{prompts → src/prompts}/connection-string.js +59 -36
  43. package/dist/src/prompts/connection-string.js.map +1 -0
  44. package/dist/{prompts → src/prompts}/cron.js +90 -59
  45. package/dist/src/prompts/cron.js.map +1 -0
  46. package/dist/src/prompts/curl-utils.js +71 -0
  47. package/dist/src/prompts/curl-utils.js.map +1 -0
  48. package/dist/{prompts → src/prompts}/curl.js +153 -132
  49. package/dist/src/prompts/curl.js.map +1 -0
  50. package/dist/{prompts → src/prompts}/data-inspector.js +96 -91
  51. package/dist/src/prompts/data-inspector.js.map +1 -0
  52. package/dist/{prompts → src/prompts}/date.js +64 -57
  53. package/dist/src/prompts/date.js.map +1 -0
  54. package/dist/{prompts → src/prompts}/dependency.js +84 -80
  55. package/dist/src/prompts/dependency.js.map +1 -0
  56. package/dist/{prompts → src/prompts}/dial.js +49 -35
  57. package/dist/src/prompts/dial.js.map +1 -0
  58. package/dist/src/prompts/diff.js +118 -0
  59. package/dist/src/prompts/diff.js.map +1 -0
  60. package/dist/{prompts → src/prompts}/draw.js +83 -80
  61. package/dist/src/prompts/draw.js.map +1 -0
  62. package/dist/src/prompts/editor.js +234 -0
  63. package/dist/src/prompts/editor.js.map +1 -0
  64. package/dist/{prompts → src/prompts}/emoji.js +80 -82
  65. package/dist/src/prompts/emoji.js.map +1 -0
  66. package/dist/{prompts → src/prompts}/exec.js +60 -46
  67. package/dist/src/prompts/exec.js.map +1 -0
  68. package/dist/src/prompts/file.js +217 -0
  69. package/dist/src/prompts/file.js.map +1 -0
  70. package/dist/{prompts → src/prompts}/form.js +63 -54
  71. package/dist/src/prompts/form.js.map +1 -0
  72. package/dist/{prompts → src/prompts}/fuzzy-multi-column.js +65 -53
  73. package/dist/src/prompts/fuzzy-multi-column.js.map +1 -0
  74. package/dist/{prompts → src/prompts}/fuzzy.js +66 -55
  75. package/dist/src/prompts/fuzzy.js.map +1 -0
  76. package/dist/src/prompts/gauge.js +137 -0
  77. package/dist/src/prompts/gauge.js.map +1 -0
  78. package/dist/{prompts → src/prompts}/grid.js +70 -57
  79. package/dist/src/prompts/grid.js.map +1 -0
  80. package/dist/{prompts → src/prompts}/heatmap.js +70 -64
  81. package/dist/src/prompts/heatmap.js.map +1 -0
  82. package/dist/{prompts → src/prompts}/ip.js +56 -36
  83. package/dist/src/prompts/ip.js.map +1 -0
  84. package/dist/{prompts → src/prompts}/kanban.js +63 -58
  85. package/dist/src/prompts/kanban.js.map +1 -0
  86. package/dist/src/prompts/keypress.js +54 -0
  87. package/dist/src/prompts/keypress.js.map +1 -0
  88. package/dist/src/prompts/license.js +144 -0
  89. package/dist/src/prompts/license.js.map +1 -0
  90. package/dist/{prompts → src/prompts}/list.js +46 -31
  91. package/dist/src/prompts/list.js.map +1 -0
  92. package/dist/{prompts → src/prompts}/map.js +93 -77
  93. package/dist/src/prompts/map.js.map +1 -0
  94. package/dist/{prompts → src/prompts}/match.js +91 -95
  95. package/dist/src/prompts/match.js.map +1 -0
  96. package/dist/{prompts → src/prompts}/miller.js +74 -67
  97. package/dist/src/prompts/miller.js.map +1 -0
  98. package/dist/{prompts → src/prompts}/multi-column-select.js +54 -44
  99. package/dist/src/prompts/multi-column-select.js.map +1 -0
  100. package/dist/{prompts → src/prompts}/multi-range.js +70 -52
  101. package/dist/src/prompts/multi-range.js.map +1 -0
  102. package/dist/{prompts → src/prompts}/multi-select.js +67 -58
  103. package/dist/src/prompts/multi-select.js.map +1 -0
  104. package/dist/{prompts → src/prompts}/number.js +51 -39
  105. package/dist/src/prompts/number.js.map +1 -0
  106. package/dist/{prompts → src/prompts}/otp.js +43 -27
  107. package/dist/src/prompts/otp.js.map +1 -0
  108. package/dist/{prompts → src/prompts}/pattern.js +74 -71
  109. package/dist/src/prompts/pattern.js.map +1 -0
  110. package/dist/{prompts → src/prompts}/phone.js +107 -118
  111. package/dist/src/prompts/phone.js.map +1 -0
  112. package/dist/src/prompts/quiz-select.js +114 -0
  113. package/dist/src/prompts/quiz-select.js.map +1 -0
  114. package/dist/src/prompts/quiz-text.js +98 -0
  115. package/dist/src/prompts/quiz-text.js.map +1 -0
  116. package/dist/{prompts → src/prompts}/range.js +85 -61
  117. package/dist/src/prompts/range.js.map +1 -0
  118. package/dist/{prompts → src/prompts}/rating.js +29 -24
  119. package/dist/src/prompts/rating.js.map +1 -0
  120. package/dist/{prompts → src/prompts}/regex.js +50 -36
  121. package/dist/src/prompts/regex.js.map +1 -0
  122. package/dist/{prompts → src/prompts}/region.js +62 -56
  123. package/dist/src/prompts/region.js.map +1 -0
  124. package/dist/{prompts → src/prompts}/schedule.js +82 -75
  125. package/dist/src/prompts/schedule.js.map +1 -0
  126. package/dist/{prompts → src/prompts}/scroll.js +61 -58
  127. package/dist/src/prompts/scroll.js.map +1 -0
  128. package/dist/src/prompts/seat.js +164 -0
  129. package/dist/src/prompts/seat.js.map +1 -0
  130. package/dist/{prompts → src/prompts}/select-range.js +58 -46
  131. package/dist/src/prompts/select-range.js.map +1 -0
  132. package/dist/{prompts → src/prompts}/select.js +65 -66
  133. package/dist/src/prompts/select.js.map +1 -0
  134. package/dist/{prompts → src/prompts}/semver.js +24 -13
  135. package/dist/src/prompts/semver.js.map +1 -0
  136. package/dist/src/prompts/shortcut.js +133 -0
  137. package/dist/src/prompts/shortcut.js.map +1 -0
  138. package/dist/{prompts → src/prompts}/slider.js +28 -23
  139. package/dist/src/prompts/slider.js.map +1 -0
  140. package/dist/src/prompts/slot.js +117 -0
  141. package/dist/src/prompts/slot.js.map +1 -0
  142. package/dist/{prompts → src/prompts}/snippet.js +82 -61
  143. package/dist/src/prompts/snippet.js.map +1 -0
  144. package/dist/{prompts → src/prompts}/sort-grid.js +64 -59
  145. package/dist/src/prompts/sort-grid.js.map +1 -0
  146. package/dist/{prompts → src/prompts}/sort.js +59 -49
  147. package/dist/src/prompts/sort.js.map +1 -0
  148. package/dist/src/prompts/spam.js +80 -0
  149. package/dist/src/prompts/spam.js.map +1 -0
  150. package/dist/{prompts → src/prompts}/spreadsheet.js +71 -70
  151. package/dist/src/prompts/spreadsheet.js.map +1 -0
  152. package/dist/{prompts → src/prompts}/table.js +52 -38
  153. package/dist/src/prompts/table.js.map +1 -0
  154. package/dist/{prompts → src/prompts}/text.js +74 -70
  155. package/dist/src/prompts/text.js.map +1 -0
  156. package/dist/{prompts → src/prompts}/time.js +105 -96
  157. package/dist/src/prompts/time.js.map +1 -0
  158. package/dist/src/prompts/toggle.js +53 -0
  159. package/dist/src/prompts/toggle.js.map +1 -0
  160. package/dist/{prompts → src/prompts}/transfer.js +71 -67
  161. package/dist/src/prompts/transfer.js.map +1 -0
  162. package/dist/{prompts → src/prompts}/tree-select.js +83 -86
  163. package/dist/src/prompts/tree-select.js.map +1 -0
  164. package/dist/{prompts → src/prompts}/tree.js +69 -67
  165. package/dist/src/prompts/tree.js.map +1 -0
  166. package/dist/src/prompts/wait.js +79 -0
  167. package/dist/src/prompts/wait.js.map +1 -0
  168. package/dist/src/spinner.js +105 -0
  169. package/dist/src/spinner.js.map +1 -0
  170. package/dist/{symbols.js → src/symbols.js} +32 -7
  171. package/dist/src/symbols.js.map +1 -0
  172. package/dist/{tasks.js → src/tasks.js} +104 -79
  173. package/dist/src/tasks.js.map +1 -0
  174. package/dist/src/theme.js +29 -0
  175. package/dist/src/theme.js.map +1 -0
  176. package/dist/src/types.js +8 -0
  177. package/dist/src/types.js.map +1 -0
  178. package/dist/{utils.js → src/utils.js} +196 -152
  179. package/dist/src/utils.js.map +1 -0
  180. package/package.json +16 -13
  181. package/dist/ansi.d.ts +0 -36
  182. package/dist/base.d.ts +0 -60
  183. package/dist/core.d.ts +0 -1072
  184. package/dist/data/countries.d.ts +0 -2
  185. package/dist/data/countries.js +0 -105
  186. package/dist/data/licenses.d.ts +0 -2
  187. package/dist/data/licenses.js +0 -109
  188. package/dist/highlight.d.ts +0 -7
  189. package/dist/index.d.ts +0 -48
  190. package/dist/index.js +0 -64
  191. package/dist/input.d.ts +0 -14
  192. package/dist/pipeline.d.ts +0 -39
  193. package/dist/pipeline.js +0 -54
  194. package/dist/prompts/autocomplete.d.ts +0 -22
  195. package/dist/prompts/box.d.ts +0 -21
  196. package/dist/prompts/breadcrumb-search.d.ts +0 -14
  197. package/dist/prompts/breadcrumb.d.ts +0 -32
  198. package/dist/prompts/byte.d.ts +0 -13
  199. package/dist/prompts/calculator.d.ts +0 -17
  200. package/dist/prompts/calendar.d.ts +0 -33
  201. package/dist/prompts/checkbox.d.ts +0 -13
  202. package/dist/prompts/code.d.ts +0 -19
  203. package/dist/prompts/color.d.ts +0 -14
  204. package/dist/prompts/confirm.d.ts +0 -8
  205. package/dist/prompts/connection-string.d.ts +0 -18
  206. package/dist/prompts/cron.d.ts +0 -13
  207. package/dist/prompts/curl-utils.d.ts +0 -25
  208. package/dist/prompts/curl-utils.js +0 -41
  209. package/dist/prompts/curl.d.ts +0 -41
  210. package/dist/prompts/data-inspector.d.ts +0 -22
  211. package/dist/prompts/date.d.ts +0 -12
  212. package/dist/prompts/dependency.d.ts +0 -16
  213. package/dist/prompts/dial.d.ts +0 -10
  214. package/dist/prompts/diff.d.ts +0 -10
  215. package/dist/prompts/diff.js +0 -101
  216. package/dist/prompts/draw.d.ts +0 -20
  217. package/dist/prompts/editor.d.ts +0 -14
  218. package/dist/prompts/editor.js +0 -203
  219. package/dist/prompts/emoji.d.ts +0 -18
  220. package/dist/prompts/exec.d.ts +0 -17
  221. package/dist/prompts/file.d.ts +0 -21
  222. package/dist/prompts/file.js +0 -210
  223. package/dist/prompts/form.d.ts +0 -18
  224. package/dist/prompts/fuzzy-multi-column.d.ts +0 -12
  225. package/dist/prompts/fuzzy.d.ts +0 -12
  226. package/dist/prompts/gauge.d.ts +0 -21
  227. package/dist/prompts/gauge.js +0 -130
  228. package/dist/prompts/grid.d.ts +0 -14
  229. package/dist/prompts/heatmap.d.ts +0 -13
  230. package/dist/prompts/ip.d.ts +0 -11
  231. package/dist/prompts/kanban.d.ts +0 -17
  232. package/dist/prompts/keypress.d.ts +0 -7
  233. package/dist/prompts/keypress.js +0 -55
  234. package/dist/prompts/license.d.ts +0 -9
  235. package/dist/prompts/license.js +0 -105
  236. package/dist/prompts/list.d.ts +0 -9
  237. package/dist/prompts/map.d.ts +0 -17
  238. package/dist/prompts/match.d.ts +0 -19
  239. package/dist/prompts/miller.d.ts +0 -15
  240. package/dist/prompts/multi-column-select.d.ts +0 -10
  241. package/dist/prompts/multi-range.d.ts +0 -9
  242. package/dist/prompts/multi-select.d.ts +0 -15
  243. package/dist/prompts/number.d.ts +0 -11
  244. package/dist/prompts/otp.d.ts +0 -10
  245. package/dist/prompts/pattern.d.ts +0 -22
  246. package/dist/prompts/phone.d.ts +0 -41
  247. package/dist/prompts/quiz-select.d.ts +0 -10
  248. package/dist/prompts/quiz-select.js +0 -104
  249. package/dist/prompts/quiz-text.d.ts +0 -11
  250. package/dist/prompts/quiz-text.js +0 -82
  251. package/dist/prompts/range.d.ts +0 -9
  252. package/dist/prompts/rating.d.ts +0 -8
  253. package/dist/prompts/regex.d.ts +0 -13
  254. package/dist/prompts/region.d.ts +0 -11
  255. package/dist/prompts/schedule.d.ts +0 -20
  256. package/dist/prompts/scroll.d.ts +0 -13
  257. package/dist/prompts/seat.d.ts +0 -17
  258. package/dist/prompts/seat.js +0 -165
  259. package/dist/prompts/select-range.d.ts +0 -8
  260. package/dist/prompts/select.d.ts +0 -15
  261. package/dist/prompts/semver.d.ts +0 -6
  262. package/dist/prompts/shortcut.d.ts +0 -9
  263. package/dist/prompts/shortcut.js +0 -135
  264. package/dist/prompts/slider.d.ts +0 -8
  265. package/dist/prompts/slot.d.ts +0 -16
  266. package/dist/prompts/slot.js +0 -107
  267. package/dist/prompts/snippet.d.ts +0 -19
  268. package/dist/prompts/sort-grid.d.ts +0 -16
  269. package/dist/prompts/sort.d.ts +0 -14
  270. package/dist/prompts/spam.d.ts +0 -17
  271. package/dist/prompts/spam.js +0 -62
  272. package/dist/prompts/spreadsheet.d.ts +0 -21
  273. package/dist/prompts/table.d.ts +0 -14
  274. package/dist/prompts/text.d.ts +0 -17
  275. package/dist/prompts/time.d.ts +0 -12
  276. package/dist/prompts/toggle.d.ts +0 -8
  277. package/dist/prompts/toggle.js +0 -47
  278. package/dist/prompts/transfer.d.ts +0 -18
  279. package/dist/prompts/tree-select.d.ts +0 -31
  280. package/dist/prompts/tree.d.ts +0 -20
  281. package/dist/prompts/wait.d.ts +0 -18
  282. package/dist/prompts/wait.js +0 -62
  283. package/dist/spinner.d.ts +0 -33
  284. package/dist/spinner.js +0 -89
  285. package/dist/symbols.d.ts +0 -33
  286. package/dist/tasks.d.ts +0 -57
  287. package/dist/theme.d.ts +0 -2
  288. package/dist/theme.js +0 -20
  289. package/dist/types.d.ts +0 -503
  290. package/dist/types.js +0 -5
  291. package/dist/utils.d.ts +0 -81
@@ -1,2 +0,0 @@
1
- export type CountryEntry = [string, string, string, string];
2
- export declare const COUNTRIES: CountryEntry[];
@@ -1,105 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.COUNTRIES = void 0;
4
- exports.COUNTRIES = [
5
- // --- Major & Original List ---
6
- ['US', 'United States', '1', '### ### ####'],
7
- ['GB', 'United Kingdom', '44', '#### ######'],
8
- ['VN', 'Vietnam', '84', '### #### ###'],
9
- ['JP', 'Japan', '81', '## #### ####'],
10
- ['CN', 'China', '86', '### #### ####'],
11
- ['IN', 'India', '91', '#### ######'],
12
- ['DE', 'Germany', '49', '#### #######'],
13
- ['FR', 'France', '33', '# ## ## ## ##'],
14
- ['RU', 'Russia', '7', '### ###-##-##'],
15
- ['BR', 'Brazil', '55', '## #####-####'],
16
- ['IT', 'Italy', '39', '### #######'],
17
- ['CA', 'Canada', '1', '### ### ####'],
18
- ['AU', 'Australia', '61', '# #### ####'],
19
- ['KR', 'South Korea', '82', '## #### ####'],
20
- ['ES', 'Spain', '34', '### ## ## ##'],
21
- ['ID', 'Indonesia', '62', '###-####-####'],
22
- ['MX', 'Mexico', '52', '## #### ####'],
23
- ['TR', 'Turkey', '90', '### ### ## ##'],
24
- ['NL', 'Netherlands', '31', '# ########'],
25
- ['SA', 'Saudi Arabia', '966', '# ### ####'],
26
- ['CH', 'Switzerland', '41', '## ### ## ##'],
27
- ['SE', 'Sweden', '46', '## ### ## ##'],
28
- ['BE', 'Belgium', '32', '### ## ## ##'],
29
- ['AT', 'Austria', '43', '#### #######'],
30
- ['PL', 'Poland', '48', '### ### ###'],
31
- ['AR', 'Argentina', '54', '# ## ####-####'],
32
- ['NO', 'Norway', '47', '### ## ###'],
33
- ['TW', 'Taiwan', '886', '### ### ###'],
34
- ['TH', 'Thailand', '66', '## ### ####'],
35
- ['MY', 'Malaysia', '60', '##-### ####'],
36
- ['SG', 'Singapore', '65', '#### ####'],
37
- ['ZA', 'South Africa', '27', '## ### ####'],
38
- ['HK', 'Hong Kong', '852', '#### ####'],
39
- ['PH', 'Philippines', '63', '### ### ####'],
40
- ['UA', 'Ukraine', '380', '## ### ## ##'],
41
- ['EG', 'Egypt', '20', '### ### ####'],
42
- ['PK', 'Pakistan', '92', '### #######'],
43
- ['IL', 'Israel', '972', '##-#######'],
44
- ['DK', 'Denmark', '45', '## ## ## ##'],
45
- ['FI', 'Finland', '358', '## ### ## ##'],
46
- ['NZ', 'New Zealand', '64', '## ### ####'],
47
- ['IE', 'Ireland', '353', '## #######'],
48
- ['PT', 'Portugal', '351', '### ### ###'],
49
- ['GR', 'Greece', '30', '### #######'],
50
- ['HU', 'Hungary', '36', '## ### ####'],
51
- ['CZ', 'Czech Republic', '420', '### ### ###'],
52
- ['RO', 'Romania', '40', '## ### ####'],
53
- ['CL', 'Chile', '56', '# #### ####'],
54
- ['CO', 'Colombia', '57', '### ### ####'],
55
- ['NG', 'Nigeria', '234', '### ### ####'],
56
- // --- Newly Added Countries ---
57
- // Southeast Asia Neighbors
58
- ['KH', 'Cambodia', '855', '## ### ###'],
59
- ['LA', 'Laos', '856', '## ## ####'],
60
- ['MM', 'Myanmar', '95', '## ### ###'],
61
- // South Asia
62
- ['BD', 'Bangladesh', '880', '####-######'],
63
- ['LK', 'Sri Lanka', '94', '## # ### ###'],
64
- ['NP', 'Nepal', '977', '##-######'],
65
- // Middle East
66
- ['AE', 'United Arab Emirates', '971', '## ### ####'],
67
- ['QA', 'Qatar', '974', '#### ####'],
68
- ['KW', 'Kuwait', '965', '#### ####'],
69
- ['BH', 'Bahrain', '973', '#### ####'],
70
- ['OM', 'Oman', '968', '#### ####'],
71
- ['JO', 'Jordan', '962', '# #### ####'],
72
- ['LB', 'Lebanon', '961', '## ######'],
73
- ['IR', 'Iran', '98', '### ### ####'],
74
- ['IQ', 'Iraq', '964', '### ### ####'],
75
- // Europe
76
- ['BG', 'Bulgaria', '359', '## ### ###'],
77
- ['HR', 'Croatia', '385', '## ### ####'],
78
- ['RS', 'Serbia', '381', '## #######'],
79
- ['SK', 'Slovakia', '421', '### ### ###'],
80
- ['SI', 'Slovenia', '386', '## ### ###'],
81
- ['EE', 'Estonia', '372', '#### ####'],
82
- ['LV', 'Latvia', '371', '## ### ###'],
83
- ['LT', 'Lithuania', '370', '### ## ###'],
84
- // Americas
85
- ['PE', 'Peru', '51', '### ### ###'],
86
- ['VE', 'Venezuela', '58', '###-#######'],
87
- ['EC', 'Ecuador', '593', '## ### ####'],
88
- ['UY', 'Uruguay', '598', '# ### ## ##'],
89
- ['PY', 'Paraguay', '595', '### ### ###'],
90
- ['CR', 'Costa Rica', '506', '#### ####'],
91
- ['PA', 'Panama', '507', '####-####'],
92
- ['DO', 'Dominican Republic', '1', '### ### ####'],
93
- // Africa
94
- ['MA', 'Morocco', '212', '##-####-###'],
95
- ['DZ', 'Algeria', '213', '## ## ## ##'],
96
- ['TN', 'Tunisia', '216', '## ### ###'],
97
- ['KE', 'Kenya', '254', '### ######'],
98
- ['GH', 'Ghana', '233', '## ### ####'],
99
- ['ET', 'Ethiopia', '251', '## ### ####'],
100
- ['UG', 'Uganda', '256', '### ######'],
101
- ['TZ', 'Tanzania', '255', '## ### ####'],
102
- // Central Asia
103
- ['KZ', 'Kazakhstan', '7', '### ###-##-##'], // Shares code with Russia
104
- ['UZ', 'Uzbekistan', '998', '## ### ## ##']
105
- ];
@@ -1,2 +0,0 @@
1
- import { License } from '../types';
2
- export declare const POPULAR_LICENSES: License[];
@@ -1,109 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.POPULAR_LICENSES = void 0;
4
- exports.POPULAR_LICENSES = [
5
- {
6
- id: 'MIT',
7
- name: 'MIT License',
8
- description: 'A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code.',
9
- permissions: ['Commercial use', 'Modification', 'Distribution', 'Private use'],
10
- conditions: ['License and copyright notice'],
11
- limitations: ['Liability', 'Warranty']
12
- },
13
- {
14
- id: 'Apache-2.0',
15
- name: 'Apache License 2.0',
16
- description: 'A permissive license whose main conditions require preservation of copyright and license notices. Contributors provide an express grant of patent rights. Licensed works, modifications, and larger works may be distributed under different terms.',
17
- permissions: ['Commercial use', 'Modification', 'Distribution', 'Patent use', 'Private use'],
18
- conditions: ['License and copyright notice', 'State changes'],
19
- limitations: ['Liability', 'Warranty', 'Trademark use']
20
- },
21
- {
22
- id: 'GPL-3.0',
23
- name: 'GNU General Public License v3.0',
24
- description: 'Permissions of this strong copyleft license are conditioned on making available complete source code of licensed works and modifications, which include larger works using a licensed work, under the same license. Copyright and license notices must be preserved.',
25
- permissions: ['Commercial use', 'Modification', 'Distribution', 'Patent use', 'Private use'],
26
- conditions: ['Disclose source', 'License and copyright notice', 'Same license', 'State changes'],
27
- limitations: ['Liability', 'Warranty']
28
- },
29
- {
30
- id: 'BSD-3-Clause',
31
- name: 'BSD 3-Clause "New" or "Revised" License',
32
- description: 'A permissive license similar to the BSD 2-Clause License, but with a 3rd clause that prohibits others from using the name of the project or its contributors to promote derived products without written consent.',
33
- permissions: ['Commercial use', 'Modification', 'Distribution', 'Private use'],
34
- conditions: ['License and copyright notice'],
35
- limitations: ['Liability', 'Warranty']
36
- },
37
- {
38
- id: 'ISC',
39
- name: 'ISC License',
40
- description: 'A permissive license that is functionally equivalent to the BSD 2-Clause and MIT licenses, but removing some language that is no longer necessary.',
41
- permissions: ['Commercial use', 'Modification', 'Distribution', 'Private use'],
42
- conditions: ['License and copyright notice'],
43
- limitations: ['Liability', 'Warranty']
44
- },
45
- {
46
- id: 'Unlicense',
47
- name: 'The Unlicense',
48
- description: 'A license with no conditions whatsoever which dedicates works to the public domain. Unlicensed works, modifications, and larger works may be distributed under different terms and without source code.',
49
- permissions: ['Commercial use', 'Modification', 'Distribution', 'Private use'],
50
- conditions: [],
51
- limitations: ['Liability', 'Warranty']
52
- },
53
- {
54
- id: 'BSD-2-Clause',
55
- name: 'BSD 2-Clause "Simplified" License',
56
- description: 'A permissive license that is similar to the MIT License, with conditions requiring preservation of copyright and license notices.',
57
- permissions: ['Commercial use', 'Modification', 'Distribution', 'Private use'],
58
- conditions: ['License and copyright notice'],
59
- limitations: ['Liability', 'Warranty']
60
- },
61
- {
62
- id: 'LGPL-3.0',
63
- name: 'GNU Lesser General Public License v3.0',
64
- description: 'A weak copyleft license permitting proprietary use. Requires preservation of copyright and license notices. Modifications of the library under the same license must be provided under the LGPL, but applications built on top may be licensed proprietary.',
65
- permissions: ['Commercial use', 'Modification', 'Distribution', 'Patent use', 'Private use'],
66
- conditions: ['Disclose source', 'License and copyright notice', 'Same license', 'State changes'],
67
- limitations: ['Liability', 'Warranty']
68
- },
69
- {
70
- id: 'AGPL-3.0',
71
- name: 'GNU Affero General Public License v3.0',
72
- description: 'A strong copyleft license that requires releasing source code when distributing the software over a network. Includes all conditions of GPL-3.0 plus a network use clause.',
73
- permissions: ['Commercial use', 'Modification', 'Distribution', 'Patent use', 'Private use'],
74
- conditions: ['Disclose source', 'License and copyright notice', 'Network use disclosure', 'Same license', 'State changes'],
75
- limitations: ['Liability', 'Warranty']
76
- },
77
- {
78
- id: 'MPL-2.0',
79
- name: 'Mozilla Public License 2.0',
80
- description: 'A copyleft license that is easy to comply with. You must make the source code for any of your modifications available under MPL-2.0, but you can combine the software with code under other licenses.',
81
- permissions: ['Commercial use', 'Modification', 'Distribution', 'Patent use', 'Private use'],
82
- conditions: ['Disclose source', 'License and copyright notice', 'Same license'],
83
- limitations: ['Liability', 'Warranty', 'Trademark use']
84
- },
85
- {
86
- id: 'EPL-2.0',
87
- name: 'Eclipse Public License 2.0',
88
- description: 'A copyleft license based on the Mozilla Public License, designed for programs and libraries. Modified code under the same license must be provided.',
89
- permissions: ['Commercial use', 'Modification', 'Distribution', 'Patent use', 'Private use'],
90
- conditions: ['Disclose source', 'License and copyright notice', 'Same license'],
91
- limitations: ['Liability', 'Warranty']
92
- },
93
- {
94
- id: 'CC0-1.0',
95
- name: 'Creative Commons Zero v1.0 Universal',
96
- description: 'A public domain dedication waiver that places works in the public domain. A work released under CC0 incurs no obligations and anyone may use the work in any way.',
97
- permissions: ['Commercial use', 'Modification', 'Distribution', 'Private use'],
98
- conditions: [],
99
- limitations: ['Liability', 'Warranty']
100
- },
101
- {
102
- id: 'WTFPL',
103
- name: 'Do What The F* You Want To Public License',
104
- description: 'An extremely permissive license that allows anyone to do whatever they want with the work with no restrictions whatsoever.',
105
- permissions: ['Commercial use', 'Modification', 'Distribution', 'Private use'],
106
- conditions: [],
107
- limitations: ['Liability', 'Warranty']
108
- }
109
- ];
@@ -1,7 +0,0 @@
1
- export declare function highlightJson(json: string): string;
2
- export declare function highlightEnv(env: string): string;
3
- export declare function highlightToml(toml: string): string;
4
- export declare function highlightCsv(csv: string): string;
5
- export declare function highlightShell(script: string): string;
6
- export declare function highlightProperties(props: string): string;
7
- export declare function highlight(code: string, language: string): string;
package/dist/index.d.ts DELETED
@@ -1,48 +0,0 @@
1
- /**
2
- * Mep (A Interactive CLI Prompt)
3
- * Export file
4
- */
5
- export * from './types';
6
- export * from './core';
7
- export * from './prompts/map';
8
- export * from './prompts/semver';
9
- export * from './prompts/ip';
10
- export * from './prompts/kanban';
11
- export * from './prompts/time';
12
- export * from './prompts/heatmap';
13
- export * from './prompts/byte';
14
- export * from './prompts/slot';
15
- export * from './prompts/gauge';
16
- export * from './prompts/calculator';
17
- export * from './prompts/emoji';
18
- export * from './prompts/match';
19
- export * from './prompts/diff';
20
- export * from './prompts/dial';
21
- export * from './prompts/draw';
22
- export * from './prompts/multi-column-select';
23
- export * from './prompts/fuzzy';
24
- export * from './prompts/miller';
25
- export * from './prompts/pattern';
26
- export * from './prompts/region';
27
- export * from './prompts/spreadsheet';
28
- export * from './prompts/scroll';
29
- export * from './prompts/breadcrumb';
30
- export * from './prompts/schedule';
31
- export * from './prompts/data-inspector';
32
- export * from './prompts/exec';
33
- export * from './prompts/shortcut';
34
- export * from './prompts/seat';
35
- export * from './prompts/select-range';
36
- export * from './prompts/sort-grid';
37
- export * from './prompts/dependency';
38
- export * from './prompts/license';
39
- export * from './prompts/regex';
40
- export * from './prompts/box';
41
- export * from './prompts/connection-string';
42
- export * from './prompts/curl';
43
- export * from './prompts/phone';
44
- export * from './prompts/fuzzy-multi-column';
45
- export * from './prompts/multi-range';
46
- export * from './prompts/breadcrumb-search';
47
- export * from './pipeline';
48
- export * from './tasks';
package/dist/index.js DELETED
@@ -1,64 +0,0 @@
1
- "use strict";
2
- /**
3
- * Mep (A Interactive CLI Prompt)
4
- * Export file
5
- */
6
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
- if (k2 === undefined) k2 = k;
8
- var desc = Object.getOwnPropertyDescriptor(m, k);
9
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10
- desc = { enumerable: true, get: function() { return m[k]; } };
11
- }
12
- Object.defineProperty(o, k2, desc);
13
- }) : (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- o[k2] = m[k];
16
- }));
17
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
18
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
19
- };
20
- Object.defineProperty(exports, "__esModule", { value: true });
21
- __exportStar(require("./types"), exports);
22
- __exportStar(require("./core"), exports);
23
- __exportStar(require("./prompts/map"), exports);
24
- __exportStar(require("./prompts/semver"), exports);
25
- __exportStar(require("./prompts/ip"), exports);
26
- __exportStar(require("./prompts/kanban"), exports);
27
- __exportStar(require("./prompts/time"), exports);
28
- __exportStar(require("./prompts/heatmap"), exports);
29
- __exportStar(require("./prompts/byte"), exports);
30
- __exportStar(require("./prompts/slot"), exports);
31
- __exportStar(require("./prompts/gauge"), exports);
32
- __exportStar(require("./prompts/calculator"), exports);
33
- __exportStar(require("./prompts/emoji"), exports);
34
- __exportStar(require("./prompts/match"), exports);
35
- __exportStar(require("./prompts/diff"), exports);
36
- __exportStar(require("./prompts/dial"), exports);
37
- __exportStar(require("./prompts/draw"), exports);
38
- __exportStar(require("./prompts/multi-column-select"), exports);
39
- __exportStar(require("./prompts/fuzzy"), exports);
40
- __exportStar(require("./prompts/miller"), exports);
41
- __exportStar(require("./prompts/pattern"), exports);
42
- __exportStar(require("./prompts/region"), exports);
43
- __exportStar(require("./prompts/spreadsheet"), exports);
44
- __exportStar(require("./prompts/scroll"), exports);
45
- __exportStar(require("./prompts/breadcrumb"), exports);
46
- __exportStar(require("./prompts/schedule"), exports);
47
- __exportStar(require("./prompts/data-inspector"), exports);
48
- __exportStar(require("./prompts/exec"), exports);
49
- __exportStar(require("./prompts/shortcut"), exports);
50
- __exportStar(require("./prompts/seat"), exports);
51
- __exportStar(require("./prompts/select-range"), exports);
52
- __exportStar(require("./prompts/sort-grid"), exports);
53
- __exportStar(require("./prompts/dependency"), exports);
54
- __exportStar(require("./prompts/license"), exports);
55
- __exportStar(require("./prompts/regex"), exports);
56
- __exportStar(require("./prompts/box"), exports);
57
- __exportStar(require("./prompts/connection-string"), exports);
58
- __exportStar(require("./prompts/curl"), exports);
59
- __exportStar(require("./prompts/phone"), exports);
60
- __exportStar(require("./prompts/fuzzy-multi-column"), exports);
61
- __exportStar(require("./prompts/multi-range"), exports);
62
- __exportStar(require("./prompts/breadcrumb-search"), exports);
63
- __exportStar(require("./pipeline"), exports);
64
- __exportStar(require("./tasks"), exports);
package/dist/input.d.ts DELETED
@@ -1,14 +0,0 @@
1
- import { EventEmitter } from 'events';
2
- export declare class InputParser extends EventEmitter {
3
- private buffer;
4
- private timeout;
5
- private state;
6
- constructor();
7
- /**
8
- * Feed data into the parser.
9
- */
10
- feed(data: Buffer): void;
11
- private processChar;
12
- private parseSGRMouse;
13
- private emitKey;
14
- }
@@ -1,39 +0,0 @@
1
- import { TaskRunner } from './tasks';
2
- export type PipelineAction<Ctx, T> = (context: Ctx, tasks?: TaskRunner) => Promise<T>;
3
- export type PipelineCondition<Ctx> = (context: Ctx) => boolean;
4
- export interface PipelineStep<Ctx> {
5
- name: keyof Ctx;
6
- action: PipelineAction<Ctx, any>;
7
- condition?: PipelineCondition<Ctx>;
8
- }
9
- /**
10
- * Pipeline (Workflow Engine)
11
- *
12
- * Implements a sequential workflow where steps are executed one by one,
13
- * accumulating results into a Context object.
14
- *
15
- * Philosophy: Enter-and-Forget (EAF), Zero-Dependency, Method Chaining.
16
- */
17
- export declare class Pipeline<Ctx extends Record<string, any> = Record<string, any>> {
18
- private steps;
19
- constructor();
20
- /**
21
- * Adds a step to the pipeline.
22
- * @param name The key in the context to store the result.
23
- * @param action The function to execute, returning a Promise (usually a Prompt).
24
- */
25
- step<K extends keyof Ctx>(name: K, action: PipelineAction<Ctx, Ctx[K]>): this;
26
- /**
27
- * Adds a conditional step to the pipeline.
28
- * @param condition A function that returns true if the step should run.
29
- * @param name The key in the context to store the result.
30
- * @param action The function to execute.
31
- */
32
- stepIf<K extends keyof Ctx>(condition: PipelineCondition<Ctx>, name: K, action: PipelineAction<Ctx, Ctx[K]>): this;
33
- /**
34
- * Executes the pipeline steps sequentially.
35
- * @param initialContext Optional initial context.
36
- * @param tasks Optional TaskRunner instance to pass to steps.
37
- */
38
- run(initialContext?: Partial<Ctx>, tasks?: TaskRunner): Promise<Ctx>;
39
- }
package/dist/pipeline.js DELETED
@@ -1,54 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Pipeline = void 0;
4
- /**
5
- * Pipeline (Workflow Engine)
6
- *
7
- * Implements a sequential workflow where steps are executed one by one,
8
- * accumulating results into a Context object.
9
- *
10
- * Philosophy: Enter-and-Forget (EAF), Zero-Dependency, Method Chaining.
11
- */
12
- class Pipeline {
13
- constructor() {
14
- this.steps = [];
15
- }
16
- /**
17
- * Adds a step to the pipeline.
18
- * @param name The key in the context to store the result.
19
- * @param action The function to execute, returning a Promise (usually a Prompt).
20
- */
21
- step(name, action) {
22
- this.steps.push({ name, action });
23
- return this;
24
- }
25
- /**
26
- * Adds a conditional step to the pipeline.
27
- * @param condition A function that returns true if the step should run.
28
- * @param name The key in the context to store the result.
29
- * @param action The function to execute.
30
- */
31
- stepIf(condition, name, action) {
32
- this.steps.push({ name, action, condition });
33
- return this;
34
- }
35
- /**
36
- * Executes the pipeline steps sequentially.
37
- * @param initialContext Optional initial context.
38
- * @param tasks Optional TaskRunner instance to pass to steps.
39
- */
40
- async run(initialContext = {}, tasks) {
41
- const context = { ...initialContext };
42
- for (const step of this.steps) {
43
- if (step.condition && !step.condition(context)) {
44
- continue;
45
- }
46
- // In EAF (Enter-And-Forget) philosophy, if a prompt fails or is cancelled,
47
- // the exception will propagate up and stop the pipeline.
48
- const result = await step.action(context, tasks);
49
- context[step.name] = result;
50
- }
51
- return context;
52
- }
53
- }
54
- exports.Pipeline = Pipeline;
@@ -1,22 +0,0 @@
1
- import { Prompt } from '../base';
2
- import { AutocompleteOptions, MouseEvent } from '../types';
3
- export declare class AutocompletePrompt<V> extends Prompt<V, AutocompleteOptions<V>> {
4
- private input;
5
- private choices;
6
- private selectedIndex;
7
- private loading;
8
- private debounceTimer?;
9
- private spinnerFrame;
10
- private spinnerTimer?;
11
- private scrollTop;
12
- private readonly pageSize;
13
- private hasSearched;
14
- constructor(options: AutocompleteOptions<V>);
15
- private search;
16
- private startSpinner;
17
- private stopSpinner;
18
- protected cleanup(): void;
19
- protected render(_firstRender: boolean): void;
20
- protected handleInput(char: string): void;
21
- protected handleMouse(event: MouseEvent): void;
22
- }
@@ -1,21 +0,0 @@
1
- import { Prompt } from '../base';
2
- import { BoxOptions, MouseEvent } from '../types';
3
- interface BoxValues {
4
- top: number;
5
- right: number;
6
- bottom: number;
7
- left: number;
8
- }
9
- export declare class BoxPrompt extends Prompt<BoxValues, BoxOptions> {
10
- private values;
11
- private focus;
12
- private inputBuffer;
13
- constructor(options: BoxOptions);
14
- private commitBuffer;
15
- private changeFocus;
16
- private increment;
17
- protected render(_firstRender: boolean): void;
18
- protected handleMouse(event: MouseEvent): void;
19
- protected handleInput(char: string, _key: Buffer): void;
20
- }
21
- export {};
@@ -1,14 +0,0 @@
1
- import { BreadcrumbPrompt } from './breadcrumb';
2
- import { BreadcrumbOptions, MouseEvent } from '../types';
3
- export declare class BreadcrumbSearchPrompt extends BreadcrumbPrompt {
4
- private isSearchMode;
5
- private searchBuffer;
6
- private filteredEntries;
7
- private searchCursor;
8
- constructor(options: BreadcrumbOptions);
9
- protected handleInput(char: string, key: Buffer): void;
10
- private updateSearchResults;
11
- protected handleMouse(event: MouseEvent): void;
12
- protected render(firstRender: boolean): void;
13
- private highlight;
14
- }
@@ -1,32 +0,0 @@
1
- import { Prompt } from '../base';
2
- import { BreadcrumbOptions, MouseEvent } from '../types';
3
- interface StackItem {
4
- path: string;
5
- cursor: number;
6
- scrollTop: number;
7
- }
8
- interface DirEntry {
9
- name: string;
10
- isDirectory: boolean;
11
- }
12
- export declare class BreadcrumbPrompt extends Prompt<string, BreadcrumbOptions> {
13
- protected stack: StackItem[];
14
- protected currentEntries: DirEntry[];
15
- protected cursor: number;
16
- protected scrollTop: number;
17
- protected root: string;
18
- protected currentPath: string;
19
- protected separator: string;
20
- protected showHidden: boolean;
21
- protected isLoading: boolean;
22
- protected error: string | null;
23
- protected readonly pageSize: number;
24
- constructor(options: BreadcrumbOptions);
25
- protected loadDirectory(dir: string): Promise<void>;
26
- protected drillDown(): Promise<void>;
27
- protected goUp(): Promise<void>;
28
- protected render(_firstRender: boolean): void;
29
- protected handleInput(char: string, _key: Buffer): void;
30
- protected handleMouse(_event: MouseEvent): void;
31
- }
32
- export {};
@@ -1,13 +0,0 @@
1
- import { Prompt } from '../base';
2
- import { ByteOptions, MouseEvent } from '../types';
3
- export declare class BytePrompt extends Prompt<number, ByteOptions> {
4
- private inputValue;
5
- private buffer;
6
- private unitIndex;
7
- private errorMsg;
8
- constructor(options: ByteOptions);
9
- protected render(_firstRender: boolean): void;
10
- protected handleInput(char: string): void;
11
- private formatBytes;
12
- protected handleMouse(event: MouseEvent): void;
13
- }
@@ -1,17 +0,0 @@
1
- import { Prompt } from '../base';
2
- import { CalculatorOptions } from '../types';
3
- export declare class CalculatorPrompt extends Prompt<number, CalculatorOptions> {
4
- protected errorMsg: string;
5
- protected cursor: number;
6
- protected hasTyped: boolean;
7
- protected segments: string[];
8
- protected lastLinesUp: number;
9
- protected previewValue: string;
10
- constructor(options: CalculatorOptions);
11
- private updatePreview;
12
- private evaluate;
13
- protected render(firstRender: boolean): void;
14
- private getVisualCursorPosition;
15
- protected cleanup(): void;
16
- protected handleInput(char: string): void;
17
- }
@@ -1,33 +0,0 @@
1
- import { Prompt } from '../base';
2
- import { CalendarOptions, MouseEvent } from '../types';
3
- type SingleSelection = Date;
4
- type RangeSelection = [Date, Date];
5
- type CalendarValue = SingleSelection | RangeSelection | SingleSelection[] | RangeSelection[];
6
- interface ExtendedCalendarOptions extends CalendarOptions {
7
- multiple?: boolean;
8
- }
9
- export declare class CalendarPrompt extends Prompt<CalendarValue, ExtendedCalendarOptions> {
10
- private cursor;
11
- private viewDate;
12
- private selections;
13
- private tempRangeStart;
14
- constructor(options: ExtendedCalendarOptions);
15
- private getDaysInMonth;
16
- private generateMonthGrid;
17
- private isSameDay;
18
- /**
19
- * Check if a date is part of any committed selection
20
- */
21
- private isSelected;
22
- /**
23
- * Visual feedback for the range currently being defined (before Enter is pressed the 2nd time)
24
- */
25
- private isInTempRange;
26
- protected render(_firstRender: boolean): void;
27
- private syncViewDate;
28
- private alignCursorToViewDate;
29
- private submitResult;
30
- protected handleInput(char: string, _key: any): void;
31
- protected handleMouse(event: MouseEvent): void;
32
- }
33
- export {};
@@ -1,13 +0,0 @@
1
- import { Prompt } from '../base';
2
- import { CheckboxOptions, MouseEvent } from '../types';
3
- export declare class CheckboxPrompt<V> extends Prompt<any[], CheckboxOptions<V>> {
4
- private selectedIndex;
5
- private checkedState;
6
- private errorMsg;
7
- private scrollTop;
8
- private readonly pageSize;
9
- constructor(options: CheckboxOptions<V>);
10
- protected render(_firstRender: boolean): void;
11
- protected handleInput(char: string): void;
12
- protected handleMouse(event: MouseEvent): void;
13
- }
@@ -1,19 +0,0 @@
1
- import { Prompt } from '../base';
2
- import { CodeOptions, MouseEvent } from '../types';
3
- export declare class CodePrompt extends Prompt<string, CodeOptions> {
4
- private tokens;
5
- private variableTokens;
6
- private values;
7
- private activeVarIndex;
8
- private cursor;
9
- private lastLinesUp;
10
- constructor(options: CodeOptions);
11
- private parseTemplate;
12
- protected cleanup(): void;
13
- protected render(firstRender: boolean): void;
14
- private appendSegment;
15
- protected handleInput(char: string, _key: Buffer): void;
16
- protected handleMouse(event: MouseEvent): void;
17
- private moveFocus;
18
- private submitCode;
19
- }