@cyclone-ui/cli 0.6.36 → 0.6.38

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 (230) hide show
  1. package/README.md +1 -0
  2. package/dist/add-BLNaALNz.mjs +1 -0
  3. package/dist/add-D0qXnGtV.mjs +1 -0
  4. package/dist/add-dtahr5zD.mjs +1 -0
  5. package/dist/add.mjs +3 -3
  6. package/dist/analyze-a11y-BLCCCaXF.mjs +1 -0
  7. package/dist/analyze-a11y-C39lm9xv.mjs +1 -0
  8. package/dist/analyze-a11y-DHoSneG7.mjs +1 -0
  9. package/dist/analyze-a11y.mjs +2 -2
  10. package/dist/bin.mjs +7 -7
  11. package/dist/build-BnV_C1SX.mjs +1 -0
  12. package/dist/build-CSeZFzLJ.mjs +1 -0
  13. package/dist/build-DppdHYXB.mjs +1 -0
  14. package/dist/build-tokens-BFIABCJI.mjs +1 -0
  15. package/dist/build-tokens-CPK4kQNy.mjs +1 -0
  16. package/dist/build-tokens-HB0qWV-a.mjs +1 -0
  17. package/dist/build-tokens.mjs +2 -2
  18. package/dist/build.mjs +2 -2
  19. package/dist/changelog-CWwSSRS4.mjs +1 -0
  20. package/dist/changelog-CnCnm7_C.mjs +1 -0
  21. package/dist/changelog-DnE4bOeX.mjs +1 -0
  22. package/dist/changelog.mjs +26 -3
  23. package/dist/{command-B2SbUjVS.mjs → command-BA7vap05.mjs} +1 -1
  24. package/dist/{command-Jvz5yaUv.mjs → command-CHdq6ZW4.mjs} +1 -1
  25. package/dist/command-CX9cXFJ3.mjs +1 -0
  26. package/dist/completions-bash-config.mjs +3 -3
  27. package/dist/completions-bash-script.mjs +3 -3
  28. package/dist/completions-fish-config.mjs +3 -3
  29. package/dist/completions-fish-script.mjs +3 -3
  30. package/dist/completions-powershell-config.mjs +4 -4
  31. package/dist/completions-powershell-script.mjs +3 -3
  32. package/dist/completions-zsh-config.mjs +3 -3
  33. package/dist/completions-zsh-script.mjs +3 -3
  34. package/dist/{components-CFdP7ILK.mjs → components-BjJGs9z0.mjs} +6 -3
  35. package/dist/config-BTux__sI.mjs +1 -0
  36. package/dist/config-BbElesIz.mjs +1 -0
  37. package/dist/config-CSazedLa.mjs +1 -0
  38. package/dist/config-CZ2T2PCE.mjs +1 -0
  39. package/dist/config-Cl6dfkCB.mjs +1 -0
  40. package/dist/config-DER7hEJQ.mjs +1 -0
  41. package/dist/config-DHWrxF0A.mjs +1 -0
  42. package/dist/config-DJgn4-he.mjs +1 -0
  43. package/dist/config-DKpXvEfo.mjs +1 -0
  44. package/dist/config-DrJTZc-2.mjs +1 -0
  45. package/dist/config-KCVywALb.mjs +1 -0
  46. package/dist/config-PH2dTKXd.mjs +1 -0
  47. package/dist/console-BG2EVggr.mjs +20 -0
  48. package/dist/console-DGNAF461.mjs +20 -0
  49. package/dist/console-DXSok16X.mjs +20 -0
  50. package/dist/design-system-BRMKnOY4.mjs +1 -0
  51. package/dist/design-system-CMhrHu0l.mjs +1 -0
  52. package/dist/diff-BDQlMK9z.mjs +1 -0
  53. package/dist/diff-CxcRHbKv.mjs +1 -0
  54. package/dist/diff-kRpygLDd.mjs +1 -0
  55. package/dist/diff.mjs +2 -2
  56. package/dist/docs-B-Ta2zNH.mjs +1 -0
  57. package/dist/docs-D5RwvXda.mjs +1 -0
  58. package/dist/docs-Nlws9t4-.mjs +1 -0
  59. package/dist/docs.mjs +4 -4
  60. package/dist/guidelines-C_HmdWgh.mjs +1 -0
  61. package/dist/guidelines-DzTwdCZs.mjs +1 -0
  62. package/dist/guidelines-Nw146vYI.mjs +1 -0
  63. package/dist/guidelines.mjs +2 -2
  64. package/dist/help.mjs +2 -2
  65. package/dist/info-B7rq-D5F.mjs +1 -0
  66. package/dist/info-C-7nB9qk.mjs +1 -0
  67. package/dist/info-vY_faXax.mjs +1 -0
  68. package/dist/info.mjs +2 -2
  69. package/dist/init-BoYvygzF.mjs +1 -0
  70. package/dist/init-CWR6CxNP.mjs +1 -0
  71. package/dist/init-DifQyQmo.mjs +1 -0
  72. package/dist/init.mjs +2 -2
  73. package/dist/list-components-C6E-nd1i.mjs +1 -0
  74. package/dist/list-components-CJb4BLtB.mjs +1 -0
  75. package/dist/list-components-D45Vkt77.mjs +1 -0
  76. package/dist/list-components.mjs +2 -2
  77. package/dist/list-fonts-CftHyYc2.mjs +1 -0
  78. package/dist/list-fonts-CkGGI8HC.mjs +1 -0
  79. package/dist/list-fonts-D6s9EHQA.mjs +1 -0
  80. package/dist/list-fonts.mjs +2 -2
  81. package/dist/list-icons-7MsFD5Jv.mjs +1 -0
  82. package/dist/list-icons-C9BHK_lq.mjs +1 -0
  83. package/dist/list-icons-b3Zy4ujc.mjs +1 -0
  84. package/dist/list-icons.mjs +2 -2
  85. package/dist/list-tokens-D1S6Ag_e.mjs +1 -0
  86. package/dist/list-tokens-Dj86JMgW.mjs +1 -0
  87. package/dist/list-tokens-GmRD6-aO.mjs +1 -0
  88. package/dist/list-tokens.mjs +2 -2
  89. package/dist/mcp-BV4fDSCI.mjs +1 -0
  90. package/dist/mcp-CbTlQYKv.mjs +1 -0
  91. package/dist/mcp-Dw21FhRy.mjs +1 -0
  92. package/dist/mcp.mjs +3 -3
  93. package/dist/plan-DAXi1Y66.mjs +1 -0
  94. package/dist/plan-DPeKShkV.mjs +1 -0
  95. package/dist/plan-I3TfEzVO.mjs +1 -0
  96. package/dist/plan.mjs +2 -2
  97. package/dist/{prompts-Dh18Wzeg.mjs → prompts-B59oTrpv.mjs} +7 -7
  98. package/dist/{prompts-Dp0c33-g.mjs → prompts-BB5v6p8S.mjs} +7 -7
  99. package/dist/prompts-BUnOLZ4_.mjs +8 -0
  100. package/dist/registry-ChXT96Cd.mjs +1 -0
  101. package/dist/registry-DmvHv99A.mjs +1 -0
  102. package/dist/registry-validate.mjs +2 -2
  103. package/dist/registry-x1BV7ks7.mjs +1 -0
  104. package/dist/script-BTc1ehuU.mjs +1 -0
  105. package/dist/script-C1zSvaCP.mjs +1 -0
  106. package/dist/script-C6RLFheH.mjs +1 -0
  107. package/dist/script-CBHWScq2.mjs +1 -0
  108. package/dist/script-CNivhkJP.mjs +1 -0
  109. package/dist/script-Cnazo9Jr.mjs +1 -0
  110. package/dist/script-Csyyc-fD.mjs +1 -0
  111. package/dist/script-DIsiuGFg.mjs +1 -0
  112. package/dist/script-DU9AKIXS.mjs +1 -0
  113. package/dist/script-DulFbPqU.mjs +1 -0
  114. package/dist/script-Dzw3DVyp.mjs +1 -0
  115. package/dist/script-enlRO7HD.mjs +1 -0
  116. package/dist/search-BWmI3FxW.mjs +1 -0
  117. package/dist/search-C0_vEXGT.mjs +1 -0
  118. package/dist/search-COqEKQo2.mjs +1 -0
  119. package/dist/search-components-Bh3vhFs9.mjs +1 -0
  120. package/dist/search-components-DASGcQ7K.mjs +1 -0
  121. package/dist/search-components-DSb8vYQz.mjs +1 -0
  122. package/dist/search-components.mjs +3 -3
  123. package/dist/search-fonts-9ty_I03P.mjs +1 -0
  124. package/dist/search-fonts-CKcxoxJV.mjs +1 -0
  125. package/dist/search-fonts-DQ-548gG.mjs +1 -0
  126. package/dist/search-fonts.mjs +3 -3
  127. package/dist/search-icons-BBExPBE0.mjs +1 -0
  128. package/dist/search-icons-S63EoqpV.mjs +1 -0
  129. package/dist/search-icons-quNLUNMX.mjs +1 -0
  130. package/dist/search-icons.mjs +3 -3
  131. package/dist/search-tokens-B-nGMPpN.mjs +1 -0
  132. package/dist/search-tokens-CASvDiKy.mjs +1 -0
  133. package/dist/search-tokens-De6LVQSt.mjs +1 -0
  134. package/dist/search-tokens.mjs +3 -3
  135. package/dist/search.mjs +3 -3
  136. package/dist/{shared-B01B7HZo.mjs → shared-BCmx3ks8.mjs} +1 -1
  137. package/dist/{shared-CfFt4FBW.mjs → shared-BRbecwa0.mjs} +1 -1
  138. package/dist/{shared-BMXeqIu2.mjs → shared-DEx8Ven-.mjs} +1 -1
  139. package/dist/{shared-BeUHT06u.mjs → shared-Lsfc3QHb.mjs} +1 -1
  140. package/dist/{update-BczVHZp1.mjs → update-B4cKHtuQ.mjs} +1 -1
  141. package/dist/update-BHMDU_HF.mjs +1 -0
  142. package/dist/update-BzZdw_V5.mjs +1 -0
  143. package/dist/update-CDzDmM2F.mjs +1 -0
  144. package/dist/{update-DwTv5sRw.mjs → update-D7-18xQ2.mjs} +1 -1
  145. package/dist/update-bbGkAGBo.mjs +1 -0
  146. package/dist/update-components-CWMiHVo_.mjs +1 -0
  147. package/dist/update-components-Cx22vmsy.mjs +1 -0
  148. package/dist/update-components-Dcm6CRip.mjs +1 -0
  149. package/dist/update-components.mjs +2 -3
  150. package/dist/update.mjs +2 -2
  151. package/dist/validate-BadvfF1-.mjs +1 -0
  152. package/dist/validate-CaReYixd.mjs +1 -0
  153. package/dist/validate-Cbi-nP21.mjs +1 -0
  154. package/dist/view-CxQlLRxI.mjs +1 -0
  155. package/dist/view-DiGuA3SK.mjs +1 -0
  156. package/dist/view-ZJyuDjZE.mjs +1 -0
  157. package/dist/view.mjs +3 -3
  158. package/package.json +12 -12
  159. package/dist/add-C2xF2Sq5.mjs +0 -1
  160. package/dist/add-DsShSrME.mjs +0 -1
  161. package/dist/analyze-a11y-DBgpGvZw.mjs +0 -1
  162. package/dist/analyze-a11y-YTfjp6Aw.mjs +0 -1
  163. package/dist/build-C3HMq9hS.mjs +0 -1
  164. package/dist/build-UPASihyj.mjs +0 -1
  165. package/dist/build-tokens-BukuLfYH.mjs +0 -1
  166. package/dist/build-tokens-Cg-_UlKv.mjs +0 -1
  167. package/dist/changelog-BnxDo4sx.mjs +0 -1
  168. package/dist/changelog-zKZvqBzs.mjs +0 -1
  169. package/dist/config-5_NbavHA.mjs +0 -1
  170. package/dist/config-BR5ovk99.mjs +0 -1
  171. package/dist/config-BeefYc4I.mjs +0 -1
  172. package/dist/config-BhzqEFWn.mjs +0 -1
  173. package/dist/config-D-ID5mbE.mjs +0 -1
  174. package/dist/config-Di0oL-KR.mjs +0 -1
  175. package/dist/config-TUp4tYGU.mjs +0 -1
  176. package/dist/config-V_9fO7js.mjs +0 -1
  177. package/dist/console-DlVpDtPd.mjs +0 -20
  178. package/dist/console-jhBiCyg4.mjs +0 -20
  179. package/dist/design-system-BUwABhzT.mjs +0 -1
  180. package/dist/design-system-D7yuYQTi.mjs +0 -1
  181. package/dist/diff-D-f93c-t.mjs +0 -1
  182. package/dist/diff-DS2r5YUe.mjs +0 -1
  183. package/dist/docs-B9F5KnvW.mjs +0 -1
  184. package/dist/docs-DsVrY4zz.mjs +0 -1
  185. package/dist/guidelines-CTHx_Sq0.mjs +0 -1
  186. package/dist/guidelines-zN3N-a3z.mjs +0 -1
  187. package/dist/info-Bzb9voWA.mjs +0 -1
  188. package/dist/info-CtSOtSRL.mjs +0 -1
  189. package/dist/init-B9ghNX6s.mjs +0 -1
  190. package/dist/init-e2_KPmyd.mjs +0 -1
  191. package/dist/list-components-BXiCAzwy.mjs +0 -1
  192. package/dist/list-components-CG0jXWdW.mjs +0 -1
  193. package/dist/list-fonts-A9u-L2ls.mjs +0 -1
  194. package/dist/list-fonts-CFH8WebG.mjs +0 -1
  195. package/dist/list-icons-Bu7_TPZH.mjs +0 -1
  196. package/dist/list-icons-CTL83Uc4.mjs +0 -1
  197. package/dist/list-tokens-7VJs0ReT.mjs +0 -1
  198. package/dist/list-tokens-CnLUsmLg.mjs +0 -1
  199. package/dist/mcp-DzbnCWyF.mjs +0 -1
  200. package/dist/mcp-wXYnVXxD.mjs +0 -1
  201. package/dist/plan-B_qrGSVW.mjs +0 -1
  202. package/dist/plan-CoBUPwzE.mjs +0 -1
  203. package/dist/registry-BQ4PgFAC.mjs +0 -1
  204. package/dist/registry-DnK33vvN.mjs +0 -1
  205. package/dist/script-BB10qB7i.mjs +0 -1
  206. package/dist/script-BWlJdIJB.mjs +0 -1
  207. package/dist/script-B_OLavqA.mjs +0 -1
  208. package/dist/script-BbW8uP96.mjs +0 -1
  209. package/dist/script-CTa95Vtv.mjs +0 -1
  210. package/dist/script-CmVl8kuX.mjs +0 -1
  211. package/dist/script-Cr0mQjg8.mjs +0 -1
  212. package/dist/script-DzDpNau4.mjs +0 -1
  213. package/dist/search-BDaJOStB.mjs +0 -1
  214. package/dist/search-Ck15PSf9.mjs +0 -1
  215. package/dist/search-components-DA4de9E4.mjs +0 -1
  216. package/dist/search-components-WXVIPL7f.mjs +0 -1
  217. package/dist/search-fonts-A9Zv8diR.mjs +0 -1
  218. package/dist/search-fonts-C3U7wK3j.mjs +0 -1
  219. package/dist/search-icons-CBH8XPBu.mjs +0 -1
  220. package/dist/search-icons-D397xbtv.mjs +0 -1
  221. package/dist/search-tokens-7FtwbgAH.mjs +0 -1
  222. package/dist/search-tokens-DNOkK7qa.mjs +0 -1
  223. package/dist/update-BC6SfwET.mjs +0 -1
  224. package/dist/update-BMxb39Yy.mjs +0 -1
  225. package/dist/update-components-CAqsSduH.mjs +0 -1
  226. package/dist/update-components-uE-7boTv.mjs +0 -1
  227. package/dist/validate-CdEuI52j.mjs +0 -1
  228. package/dist/validate-DefFBmlT.mjs +0 -1
  229. package/dist/view-Clp-wvn4.mjs +0 -1
  230. package/dist/view-Usr2jxN3.mjs +0 -1
@@ -1,2 +1,2 @@
1
- import{a as e}from"./prompts-Dh18Wzeg.mjs";import{A as t,B as n,D as r,F as i,G as a,I as o,K as s,L as c,N as l,S as u,U as d,V as f,_ as p,j as m,k as h,n as g,t as _,y as v,z as y}from"./console-DlVpDtPd.mjs";import{t as b}from"./list-fonts-A9u-L2ls.mjs";import{t as x}from"./update-BczVHZp1.mjs";import{t as S}from"./design-system-D7yuYQTi.mjs";import{listFonts as C}from"@razorwind/shell-shock/runtime";async function w(a=500){if(n().get(`is-banner-displayed`)||i(`no-banner`)||i(`hide-banner`)||m)return;n().set(`is-banner-displayed`,!0),r(``),r(g.banner.outline.primary(`┏`)+g.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+g.banner.outline.primary(`━`)+` `+_(u.banner.header.primary(`Cyclone CLI v0.6.35`))+` `+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-33,0)))+g.banner.outline.primary(`┓`),{consoleFn:console.log});let s=Math.max(...e.map(e=>v(e).length))>Math.max(h().columns+30,20)?`Cyclone UI`:`\n${e.join(`
2
- `)}\n`;p(s,Math.max(h().columns-30,20)).forEach(e=>{r(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(e).length+2))/2),0))+_(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((h().columns-(v(e).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(`List Fonts`).length+2))/2),0))+_(u.banner.command.primary(`List Fonts`))+` `.repeat(Math.max(Math.ceil((h().columns-(v(`List Fonts`).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),p(_(u.banner.description.primary(`Return every design-system font record.`)),Math.max(60>h().columns/2?h().columns-6:h().columns-30,20)).forEach(e=>{r(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((h().columns-(v(e).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(h().columns-2,0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),r(g.banner.outline.primary(`┗`)+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-32,0)))+` `+_(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+g.banner.outline.primary(`━`.repeat(6))+g.banner.outline.primary(`┛`),{consoleFn:console.log}),r(``),t&&!o()&&await l(a)}function T(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function E(){T(C(S))}async function D(e=c()){let t={...y()};for(let t=0;t<e.slice(0).length;t++)e[t].length>3&&e[t].startsWith(`--`)?`${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`${e[t].slice(1).replaceAll(`-`,``)}`:e[t];return i(`quiet`)||(await w(),await x()),!o()&&!i(`quiet`)&&(r(``),(s||a||d.LOG_LEVEL===`debug`)&&r(u.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?b():f(`list-fonts`,[`list-fonts`],[],E)}export{D as handler};
1
+ import{a as e}from"./prompts-BB5v6p8S.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,R as c,U as l,V as u,j as d,k as f,n as p,q as m,t as h,w as g,x as _,y as v,z as y}from"./console-DXSok16X.mjs";import{t as b}from"./list-fonts-CftHyYc2.mjs";import{t as x}from"./update-B4cKHtuQ.mjs";import{t as S}from"./design-system-BRMKnOY4.mjs";import{listFonts as C}from"@razorwind/shell-shock/runtime";async function w(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),f(``),f(p.banner.outline.primary(`┏`)+p.banner.outline.primary(`━`.repeat(6))+` `+g.banner.header.primary(`⬤`)+` `+p.banner.outline.primary(`━`)+` `+h(g.banner.header.primary(`Cyclone CLI v0.6.37`))+` `+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-33,0)))+p.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>_(e).length))>Math.max(d().columns+30,20)?`Cyclone UI`:`\n${e.join(`
2
+ `)}\n`;v(i,Math.max(d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+h(g.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(`List Fonts`).length+2))/2),0))+h(g.banner.command.primary(`List Fonts`))+` `.repeat(Math.max(Math.ceil((d().columns-(_(`List Fonts`).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),v(h(g.banner.description.primary(`Return every design-system font record.`)),Math.max(60>d().columns/2?d().columns-6:d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+g.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(d().columns-2,0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),f(p.banner.outline.primary(`┗`)+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-32,0)))+` `+h(g.banner.footer.primary(`https://cyclone-ui.com`))+` `+p.banner.outline.primary(`━`.repeat(6))+p.banner.outline.primary(`┛`),{consoleFn:console.log}),f(``),o&&!c()&&await t(n)}function T(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function E(){T(C(S))}async function D(e=y()){let t={...u()};for(let t=0;t<e.slice(0).length;t++)e[t].length>3&&e[t].startsWith(`--`)?`${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`${e[t].slice(1).replaceAll(`-`,``)}`:e[t];return a(`quiet`)||(await w(),await x()),!c()&&!a(`quiet`)&&(f(``),(i||m||n.LOG_LEVEL===`debug`)&&f(g.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?b():l(`list-fonts`,[`list-fonts`],[],E)}export{D as handler};
@@ -0,0 +1 @@
1
+ import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-DXSok16X.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.icons?a.tags.icons(n(` Icons `)):a.tags.default(n(` Icons `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`list-icons`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the List Icons command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/list-icons`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
@@ -0,0 +1 @@
1
+ import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-DGNAF461.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.icons?a.tags.icons(n(` Icons `)):a.tags.default(n(` Icons `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`list-icons`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the List Icons command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/list-icons`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
@@ -0,0 +1 @@
1
+ import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-BG2EVggr.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.icons?a.tags.icons(n(` Icons `)):a.tags.default(n(` Icons `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`list-icons`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the List Icons command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/list-icons`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
@@ -1,2 +1,2 @@
1
- import{a as e}from"./prompts-Dh18Wzeg.mjs";import{A as t,B as n,D as r,F as i,G as a,I as o,K as s,L as c,N as l,S as u,U as d,V as f,_ as p,j as m,k as h,n as g,t as _,y as v,z as y}from"./console-DlVpDtPd.mjs";import{t as b}from"./list-icons-CTL83Uc4.mjs";import{t as x}from"./update-BczVHZp1.mjs";import{t as S}from"./design-system-D7yuYQTi.mjs";import{listIcons as C}from"@razorwind/shell-shock/runtime";async function w(a=500){if(n().get(`is-banner-displayed`)||i(`no-banner`)||i(`hide-banner`)||m)return;n().set(`is-banner-displayed`,!0),r(``),r(g.banner.outline.primary(`┏`)+g.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+g.banner.outline.primary(`━`)+` `+_(u.banner.header.primary(`Cyclone CLI v0.6.35`))+` `+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-33,0)))+g.banner.outline.primary(`┓`),{consoleFn:console.log});let s=Math.max(...e.map(e=>v(e).length))>Math.max(h().columns+30,20)?`Cyclone UI`:`\n${e.join(`
2
- `)}\n`;p(s,Math.max(h().columns-30,20)).forEach(e=>{r(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(e).length+2))/2),0))+_(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((h().columns-(v(e).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(`List Icons`).length+2))/2),0))+_(u.banner.command.primary(`List Icons`))+` `.repeat(Math.max(Math.ceil((h().columns-(v(`List Icons`).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),p(_(u.banner.description.primary(`Return every design-system icon record. Large output - prefer search-icons for normal use.`)),Math.max(60>h().columns/2?h().columns-6:h().columns-30,20)).forEach(e=>{r(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((h().columns-(v(e).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(h().columns-2,0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),r(g.banner.outline.primary(`┗`)+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-32,0)))+` `+_(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+g.banner.outline.primary(`━`.repeat(6))+g.banner.outline.primary(`┛`),{consoleFn:console.log}),r(``),t&&!o()&&await l(a)}function T(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function E(){T(C(S))}async function D(e=c()){let t={...y()};for(let t=0;t<e.slice(0).length;t++)e[t].length>3&&e[t].startsWith(`--`)?`${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`${e[t].slice(1).replaceAll(`-`,``)}`:e[t];return i(`quiet`)||(await w(),await x()),!o()&&!i(`quiet`)&&(r(``),(s||a||d.LOG_LEVEL===`debug`)&&r(u.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?b():f(`list-icons`,[`list-icons`],[],E)}export{D as handler};
1
+ import{a as e}from"./prompts-BB5v6p8S.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,R as c,U as l,V as u,j as d,k as f,n as p,q as m,t as h,w as g,x as _,y as v,z as y}from"./console-DXSok16X.mjs";import{t as b}from"./list-icons-7MsFD5Jv.mjs";import{t as x}from"./update-B4cKHtuQ.mjs";import{t as S}from"./design-system-BRMKnOY4.mjs";import{listIcons as C}from"@razorwind/shell-shock/runtime";async function w(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),f(``),f(p.banner.outline.primary(`┏`)+p.banner.outline.primary(`━`.repeat(6))+` `+g.banner.header.primary(`⬤`)+` `+p.banner.outline.primary(`━`)+` `+h(g.banner.header.primary(`Cyclone CLI v0.6.37`))+` `+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-33,0)))+p.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>_(e).length))>Math.max(d().columns+30,20)?`Cyclone UI`:`\n${e.join(`
2
+ `)}\n`;v(i,Math.max(d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+h(g.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(`List Icons`).length+2))/2),0))+h(g.banner.command.primary(`List Icons`))+` `.repeat(Math.max(Math.ceil((d().columns-(_(`List Icons`).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),v(h(g.banner.description.primary(`Return every design-system icon record. Large output - prefer search-icons for normal use.`)),Math.max(60>d().columns/2?d().columns-6:d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+g.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(d().columns-2,0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),f(p.banner.outline.primary(`┗`)+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-32,0)))+` `+h(g.banner.footer.primary(`https://cyclone-ui.com`))+` `+p.banner.outline.primary(`━`.repeat(6))+p.banner.outline.primary(`┛`),{consoleFn:console.log}),f(``),o&&!c()&&await t(n)}function T(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function E(){T(C(S))}async function D(e=y()){let t={...u()};for(let t=0;t<e.slice(0).length;t++)e[t].length>3&&e[t].startsWith(`--`)?`${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`${e[t].slice(1).replaceAll(`-`,``)}`:e[t];return a(`quiet`)||(await w(),await x()),!c()&&!a(`quiet`)&&(f(``),(i||m||n.LOG_LEVEL===`debug`)&&f(g.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?b():l(`list-icons`,[`list-icons`],[],E)}export{D as handler};
@@ -0,0 +1 @@
1
+ import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-DXSok16X.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.tokens?a.tags.tokens(n(` Tokens `)):a.tags.default(n(` Tokens `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`list-tokens`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the List Tokens command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/list-tokens`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
@@ -0,0 +1 @@
1
+ import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-BG2EVggr.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.tokens?a.tags.tokens(n(` Tokens `)):a.tags.default(n(` Tokens `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`list-tokens`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the List Tokens command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/list-tokens`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
@@ -0,0 +1 @@
1
+ import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-DGNAF461.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.tokens?a.tags.tokens(n(` Tokens `)):a.tags.default(n(` Tokens `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`list-tokens`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the List Tokens command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/list-tokens`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
@@ -1,2 +1,2 @@
1
- import{a as e}from"./prompts-Dh18Wzeg.mjs";import{A as t,B as n,D as r,F as i,G as a,I as o,K as s,L as c,N as l,S as u,U as d,V as f,_ as p,j as m,k as h,n as g,t as _,y as v,z as y}from"./console-DlVpDtPd.mjs";import{t as b}from"./list-tokens-CnLUsmLg.mjs";import{t as x}from"./update-BczVHZp1.mjs";import{t as S}from"./design-system-D7yuYQTi.mjs";import{listTokens as C}from"@razorwind/shell-shock/runtime";async function w(a=500){if(n().get(`is-banner-displayed`)||i(`no-banner`)||i(`hide-banner`)||m)return;n().set(`is-banner-displayed`,!0),r(``),r(g.banner.outline.primary(`┏`)+g.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+g.banner.outline.primary(`━`)+` `+_(u.banner.header.primary(`Cyclone CLI v0.6.35`))+` `+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-33,0)))+g.banner.outline.primary(`┓`),{consoleFn:console.log});let s=Math.max(...e.map(e=>v(e).length))>Math.max(h().columns+30,20)?`Cyclone UI`:`\n${e.join(`
2
- `)}\n`;p(s,Math.max(h().columns-30,20)).forEach(e=>{r(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(e).length+2))/2),0))+_(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((h().columns-(v(e).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(`List Tokens`).length+2))/2),0))+_(u.banner.command.primary(`List Tokens`))+` `.repeat(Math.max(Math.ceil((h().columns-(v(`List Tokens`).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),p(_(u.banner.description.primary(`Return every design token (name, value, type, description, CSS variable). Large output - prefer search-tokens for normal use.`)),Math.max(60>h().columns/2?h().columns-6:h().columns-30,20)).forEach(e=>{r(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((h().columns-(v(e).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(h().columns-2,0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),r(g.banner.outline.primary(`┗`)+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-32,0)))+` `+_(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+g.banner.outline.primary(`━`.repeat(6))+g.banner.outline.primary(`┛`),{consoleFn:console.log}),r(``),t&&!o()&&await l(a)}function T(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function E(){T(C(S))}async function D(e=c()){let t={...y()};for(let t=0;t<e.slice(0).length;t++)e[t].length>3&&e[t].startsWith(`--`)?`${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`${e[t].slice(1).replaceAll(`-`,``)}`:e[t];return i(`quiet`)||(await w(),await x()),!o()&&!i(`quiet`)&&(r(``),(s||a||d.LOG_LEVEL===`debug`)&&r(u.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?b():f(`list-tokens`,[`list-tokens`],[],E)}export{D as handler};
1
+ import{a as e}from"./prompts-BB5v6p8S.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,R as c,U as l,V as u,j as d,k as f,n as p,q as m,t as h,w as g,x as _,y as v,z as y}from"./console-DXSok16X.mjs";import{t as b}from"./list-tokens-D1S6Ag_e.mjs";import{t as x}from"./update-B4cKHtuQ.mjs";import{t as S}from"./design-system-BRMKnOY4.mjs";import{listTokens as C}from"@razorwind/shell-shock/runtime";async function w(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),f(``),f(p.banner.outline.primary(`┏`)+p.banner.outline.primary(`━`.repeat(6))+` `+g.banner.header.primary(`⬤`)+` `+p.banner.outline.primary(`━`)+` `+h(g.banner.header.primary(`Cyclone CLI v0.6.37`))+` `+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-33,0)))+p.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>_(e).length))>Math.max(d().columns+30,20)?`Cyclone UI`:`\n${e.join(`
2
+ `)}\n`;v(i,Math.max(d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+h(g.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(`List Tokens`).length+2))/2),0))+h(g.banner.command.primary(`List Tokens`))+` `.repeat(Math.max(Math.ceil((d().columns-(_(`List Tokens`).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),v(h(g.banner.description.primary(`Return every design token (name, value, type, description, CSS variable). Large output - prefer search-tokens for normal use.`)),Math.max(60>d().columns/2?d().columns-6:d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+g.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(d().columns-2,0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),f(p.banner.outline.primary(`┗`)+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-32,0)))+` `+h(g.banner.footer.primary(`https://cyclone-ui.com`))+` `+p.banner.outline.primary(`━`.repeat(6))+p.banner.outline.primary(`┛`),{consoleFn:console.log}),f(``),o&&!c()&&await t(n)}function T(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function E(){T(C(S))}async function D(e=y()){let t={...u()};for(let t=0;t<e.slice(0).length;t++)e[t].length>3&&e[t].startsWith(`--`)?`${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`${e[t].slice(1).replaceAll(`-`,``)}`:e[t];return a(`quiet`)||(await w(),await x()),!c()&&!a(`quiet`)&&(f(``),(i||m||n.LOG_LEVEL===`debug`)&&f(g.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?b():l(`list-tokens`,[`list-tokens`],[],E)}export{D as handler};
@@ -0,0 +1 @@
1
+ import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-DXSok16X.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.ai?a.tags.ai(n(` AI `)):a.tags.default(n(` AI `))} ${a.tags.utility?a.tags.utility(n(` Utility `)):a.tags.default(n(` Utility `))} ${a.tags.mcp?a.tags.mcp(n(` MCP `)):a.tags.default(n(` MCP `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`mcp`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--include-self`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Whether to expose the MCP command itself as a tool in the generated server (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the MCP Server command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/mcp`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
@@ -0,0 +1 @@
1
+ import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-DGNAF461.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.ai?a.tags.ai(n(` AI `)):a.tags.default(n(` AI `))} ${a.tags.utility?a.tags.utility(n(` Utility `)):a.tags.default(n(` Utility `))} ${a.tags.mcp?a.tags.mcp(n(` MCP `)):a.tags.default(n(` MCP `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`mcp`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--include-self`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Whether to expose the MCP command itself as a tool in the generated server (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the MCP Server command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/mcp`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
@@ -0,0 +1 @@
1
+ import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-BG2EVggr.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.ai?a.tags.ai(n(` AI `)):a.tags.default(n(` AI `))} ${a.tags.utility?a.tags.utility(n(` Utility `)):a.tags.default(n(` Utility `))} ${a.tags.mcp?a.tags.mcp(n(` MCP `)):a.tags.default(n(` MCP `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`mcp`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--include-self`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Whether to expose the MCP command itself as a tool in the generated server (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the MCP Server command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/mcp`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
package/dist/mcp.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import{t as e}from"./mcp-wXYnVXxD.mjs";import{L as t,P as n,V as r,z as i}from"./console-DlVpDtPd.mjs";import{defineMetadata as a,defineOptions as o}from"@shell-shock/core";import{McpServer as s}from"@modelcontextprotocol/server";import{StdioServerTransport as c}from"@modelcontextprotocol/server/stdio";import{z as l}from"zod/v4";const u=[{id:`add`,name:`add`,path:`add`,segments:[`add`],title:`Add`,description:`Adds a new component to the project. Do not change installed or added Cyclone UI component files unless the user specifically instructs you to do so.
1
+ import{t as e}from"./mcp-BV4fDSCI.mjs";import{I as t,U as n,V as r,z as i}from"./console-DXSok16X.mjs";import{defineMetadata as a,defineOptions as o}from"@shell-shock/core";import{McpServer as s}from"@modelcontextprotocol/server";import{StdioServerTransport as c}from"@modelcontextprotocol/server/stdio";import{z as l}from"zod/v4";const u=[{id:`add`,name:`add`,path:`add`,segments:[`add`],title:`Add`,description:`Adds a new component to the project. Do not change installed or added Cyclone UI component files unless the user specifically instructs you to do so.
2
2
  Options: --cwd (string), --overwrite (boolean), --all (boolean), --path (string), --dry-run (boolean), --diff (boolean), --view (boolean), --silent (boolean), --registry (string), --rsc (boolean)
3
3
  Args: components:string[]`,toolName:`add`,options:[{name:`cwd`,title:`Current Working Directory`,description:`The working directory.`,type:`string`,required:!1,variadic:!1},{name:`overwrite`,title:`Overwrite`,description:`Overwrite existing files.`,type:`boolean`,required:!1,variadic:!1},{name:`all`,title:`All`,description:`Add every available component.`,type:`boolean`,required:!1,variadic:!1},{name:`path`,title:`Path`,description:`Override the configured component output path.`,type:`string`,required:!1,variadic:!1},{name:`dryRun`,title:`Dry Run`,description:`Preview changes without writing files.`,type:`boolean`,required:!1,variadic:!1},{name:`diff`,title:`Diff`,description:`Show the changes as a diff without writing files.`,type:`boolean`,required:!1,variadic:!1},{name:`view`,title:`View`,description:`Show resolved file contents without writing files.`,type:`boolean`,required:!1,variadic:!1},{name:`silent`,title:`Silent`,description:`Mute non-essential output.`,type:`boolean`,required:!1,variadic:!1},{name:`registry`,title:`Registry`,description:`Override the configured registry URL.`,type:`string`,required:!1,variadic:!1},{name:`rsc`,title:`React Server Components`,description:`Override React Server Component support for this installation.`,type:`boolean`,required:!1,variadic:!1}],args:[{name:`components`,title:`Components`,description:"Component names to add; `email` adds every React Email component.",type:`string`,required:!1,variadic:!0}]},{id:`analyze-a11y`,name:`analyze-a11y`,path:`analyze-a11y`,segments:[`analyze-a11y`],title:`Analyze Accessibility`,description:`Analyze a React/JSX source string (or file) for likely accessibility issues and hard-coded colors, suggesting the nearest design tokens for each color.
4
4
  Options: --code (string), --file (string), --component-name (string), --context (string), --pattern-analysis (boolean)`,toolName:`analyze-a11y`,options:[{name:`code`,title:`Code`,description:`Source code of a React component or JSX snippet to analyze.`,type:`string`,required:!1,variadic:!1},{name:`file`,title:`File`,description:`Path to a source file to analyze (alternative to --code).`,type:`string`,required:!1,variadic:!1},{name:`componentName`,title:`Component Name`,description:`Optional label for the component under review.`,type:`string`,required:!1,variadic:!1},{name:`context`,title:`Context`,description:`Optional usage context (for example "in a form" or "modal").`,type:`string`,required:!1,variadic:!1},{name:`patternAnalysis`,title:`Pattern Analysis`,description:`Run regex-based heuristics (unlabeled buttons, missing alt, …).`,type:`boolean`,required:!1,variadic:!1}],args:[]},{id:`build`,name:`build`,path:`build`,segments:[`build`],title:`Build`,description:`Generate design tokens and build the resulting Tamagui config.
@@ -45,5 +45,5 @@ Options: --latest (boolean), --version (string)`,toolName:`update`,options:[{nam
45
45
  Options: --cwd (string), --dry-run (boolean), --diff (boolean), --silent (boolean), --registry (string)
46
46
  Args: components:string[]`,toolName:`update-components`,options:[{name:`cwd`,title:`Current Working Directory`,description:`The working directory.`,type:`string`,required:!1,variadic:!1},{name:`dryRun`,title:`Dry Run`,description:`Preview changes without writing files.`,type:`boolean`,required:!1,variadic:!1},{name:`diff`,title:`Diff`,description:`Show the changes as a diff without writing files.`,type:`boolean`,required:!1,variadic:!1},{name:`silent`,title:`Silent`,description:`Mute non-essential output.`,type:`boolean`,required:!1,variadic:!1},{name:`registry`,title:`Registry`,description:`Override the configured registry URL.`,type:`string`,required:!1,variadic:!1}],args:[{name:`components`,title:`Components`,description:`Installed component names to update; defaults to every installed component.`,type:`string`,required:!1,variadic:!0}]},{id:`view`,name:`view`,path:`view`,segments:[`view`],title:`View Registry Components`,description:`View component metadata and files from the registry. Do not change installed or added Cyclone UI component files unless the user specifically instructs you to do so.
47
47
  Options: --cwd (string), --registry (string)
48
- Args: components:string (required)[]`,toolName:`view`,options:[{name:`cwd`,title:`Current Working Directory`,description:`The working directory.`,type:`string`,required:!1,variadic:!1},{name:`registry`,title:`Registry`,description:`Registry URL.`,type:`string`,required:!1,variadic:!1}],args:[{name:`components`,title:`Components`,description:`Component names to view.`,type:`string`,required:!0,variadic:!0}]}];a({title:`MCP Server`,description:`Starts an MCP stdio server that exposes this Shell Shock application's commands as tools.`,icon:`🔌`,tags:[`Utility`,`MCP`]}),o({includeSelf:{type:`boolean`,title:`Include MCP Command`,description:`Whether to expose the MCP command itself as a tool in the generated server.`,default:!1,required:!1,variadic:!1}});function d(e){return e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).replace(/[^a-z0-9-]/gi,`-`).replace(/-{2,}/g,`-`).replace(/^-+|-+$/g,``).toLowerCase()}function f(e){let t=[];for(let[n,r]of Object.entries(e??{})){if(!/^[a-zA-Z0-9_-]+$/.test(n))continue;let e=d(n);if(e&&r!=null){if(typeof r==`boolean`)t.push(r?`--`+e:`--no-`+e);else if(Array.isArray(r))for(let n of r)n!=null&&t.push(`--`+e,String(n));else t.push(`--`+e,String(r))}}return t}async function p(e){let t=/* @__PURE__ */ new Map,r=/* @__PURE__ */ new Set,i=e.includeSelf===!0;for(let e of u){if(!i&&e.path===`mcp`)continue;let n=e.toolName;if(r.has(n)){let e=2;for(;r.has(n+`_`+String(e));)e+=1;n=n+`_`+String(e)}r.add(n),t.set(n,e)}let a=new s({name:`cyclone-ui-shell-shock`,version:`1.0.0`});for(let[e,r]of t.entries())a.registerTool(e,{title:r.title,description:r.description,inputSchema:l.object({options:l.record(l.unknown()).optional(),args:l.array(l.string()).optional(),cwd:l.string().optional(),timeoutMs:l.number().int().positive().optional()})},async e=>{let t=[...r.segments,...f(e.options??{}),`--no-banner`,`--quiet`,...e.args??[]],i=process.argv.length>=2?[process.argv[0],process.argv[1],...t]:[`mcp`,...t],a=await n(i,{cwd:e.cwd,timeoutMs:e.timeoutMs??3e5}),o=(a.code??0)!==0,s=[a.stdout,o?a.stderr:``].filter(Boolean).join(`
49
- `).trim();return{isError:o,content:[{type:`text`,text:s.length>0?s:o?`Command failed with exit code `+String(a.code??1)+`.`:`Command completed successfully.`}]}});await a.connect(new c)}async function m(n=t()){let a={...i(),includeSelf:!1};for(let e=0;e<n.slice(0).length;e++){let t=n[e].length>3&&n[e].startsWith(`--`)?`--${n[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:n[e].length>2&&n[e].startsWith(`-`)?`-${n[e].slice(1).replaceAll(`-`,``)}`:n[e];if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`includeself=`)||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`includeself`||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`includeself=`)||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`includeself`){if(/^--?(includeself)=/.test(`-`+t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=t.replace(/^--?(includeself)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();a.includeSelf=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else a.includeSelf=!0}}return a.help?e():r(`mcp`,[`mcp`],[a],p)}export{m as handler};
48
+ Args: components:string (required)[]`,toolName:`view`,options:[{name:`cwd`,title:`Current Working Directory`,description:`The working directory.`,type:`string`,required:!1,variadic:!1},{name:`registry`,title:`Registry`,description:`Registry URL.`,type:`string`,required:!1,variadic:!1}],args:[{name:`components`,title:`Components`,description:`Component names to view.`,type:`string`,required:!0,variadic:!0}]}];a({title:`MCP Server`,description:`Starts an MCP stdio server that exposes this Shell Shock application's commands as tools.`,icon:`🔌`,tags:[`Utility`,`MCP`]}),o({includeSelf:{type:`boolean`,title:`Include MCP Command`,description:`Whether to expose the MCP command itself as a tool in the generated server.`,default:!1,required:!1,variadic:!1}});function d(e){return e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).replace(/[^a-z0-9-]/gi,`-`).replace(/-{2,}/g,`-`).replace(/^-+|-+$/g,``).toLowerCase()}function f(e){let t=[];for(let[n,r]of Object.entries(e??{})){if(!/^[a-zA-Z0-9_-]+$/.test(n))continue;let e=d(n);if(e&&r!=null){if(typeof r==`boolean`)t.push(r?`--`+e:`--no-`+e);else if(Array.isArray(r))for(let n of r)n!=null&&t.push(`--`+e,String(n));else t.push(`--`+e,String(r))}}return t}async function p(e){let n=/* @__PURE__ */ new Map,r=/* @__PURE__ */ new Set,i=e.includeSelf===!0;for(let e of u){if(!i&&e.path===`mcp`)continue;let t=e.toolName;if(r.has(t)){let e=2;for(;r.has(t+`_`+String(e));)e+=1;t=t+`_`+String(e)}r.add(t),n.set(t,e)}let a=new s({name:`cyclone-ui-shell-shock`,version:`1.0.0`});for(let[e,r]of n.entries())a.registerTool(e,{title:r.title,description:r.description,inputSchema:l.object({options:l.record(l.unknown()).optional(),args:l.array(l.string()).optional(),cwd:l.string().optional(),timeoutMs:l.number().int().positive().optional()})},async e=>{let n=[...r.segments,...f(e.options??{}),`--no-banner`,`--quiet`,...e.args??[]],i=process.argv.length>=2?[process.argv[0],process.argv[1],...n]:[`mcp`,...n],a=await t(i,{cwd:e.cwd,timeoutMs:e.timeoutMs??3e5}),o=(a.code??0)!==0,s=[a.stdout,o?a.stderr:``].filter(Boolean).join(`
49
+ `).trim();return{isError:o,content:[{type:`text`,text:s.length>0?s:o?`Command failed with exit code `+String(a.code??1)+`.`:`Command completed successfully.`}]}});await a.connect(new c)}async function m(t=i()){let a={...r(),includeSelf:!1};for(let e=0;e<t.slice(0).length;e++){let n=t[e].length>3&&t[e].startsWith(`--`)?`--${t[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:t[e].length>2&&t[e].startsWith(`-`)?`-${t[e].slice(1).replaceAll(`-`,``)}`:t[e];if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`includeself=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`includeself`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`includeself=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`includeself`){if(/^--?(includeself)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=n.replace(/^--?(includeself)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();a.includeSelf=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else a.includeSelf=!0}}return a.help?e():n(`mcp`,[`mcp`],[a],p)}export{m as handler};
@@ -0,0 +1 @@
1
+ import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-BG2EVggr.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`plan`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--components <components...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for components.`),align:`left`,border:`none`}],[{value:a.body.primary(`--fonts <fonts...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for fonts.`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--icons <icons...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for icons.`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Maximum matches per term for each list (default: 2).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--tokens <tokens...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for design tokens.`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the Plan command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/plan`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
@@ -0,0 +1 @@
1
+ import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-DGNAF461.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`plan`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--components <components...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for components.`),align:`left`,border:`none`}],[{value:a.body.primary(`--fonts <fonts...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for fonts.`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--icons <icons...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for icons.`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Maximum matches per term for each list (default: 2).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--tokens <tokens...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for design tokens.`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the Plan command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/plan`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
@@ -0,0 +1 @@
1
+ import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-DXSok16X.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`plan`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--components <components...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for components.`),align:`left`,border:`none`}],[{value:a.body.primary(`--fonts <fonts...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for fonts.`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--icons <icons...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for icons.`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Maximum matches per term for each list (default: 2).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--tokens <tokens...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for design tokens.`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the Plan command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/plan`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
package/dist/plan.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{a as e}from"./prompts-Dh18Wzeg.mjs";import{A as t,B as n,D as r,F as i,G as a,I as o,K as s,L as c,N as l,S as u,U as d,V as f,_ as p,j as m,k as h,n as g,t as _,y as v,z as y}from"./console-DlVpDtPd.mjs";import{t as b}from"./plan-B_qrGSVW.mjs";import{t as x}from"./update-BczVHZp1.mjs";import{t as S}from"./design-system-D7yuYQTi.mjs";import{isSearchError as C,plan as w}from"@razorwind/shell-shock/runtime";async function T(a=500){if(n().get(`is-banner-displayed`)||i(`no-banner`)||i(`hide-banner`)||m)return;n().set(`is-banner-displayed`,!0),r(``),r(g.banner.outline.primary(`┏`)+g.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+g.banner.outline.primary(`━`)+` `+_(u.banner.header.primary(`Cyclone CLI v0.6.35`))+` `+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-33,0)))+g.banner.outline.primary(`┓`),{consoleFn:console.log});let s=Math.max(...e.map(e=>v(e).length))>Math.max(h().columns+30,20)?`Cyclone UI`:`\n${e.join(`
2
- `)}\n`;p(s,Math.max(h().columns-30,20)).forEach(e=>{r(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(e).length+2))/2),0))+_(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((h().columns-(v(e).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(`Plan`).length+2))/2),0))+_(u.banner.command.primary(`Plan`))+` `.repeat(Math.max(Math.ceil((h().columns-(v(`Plan`).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),p(_(u.banner.description.primary(`Search tokens, icons, components and fonts in one call to plan what to build. Provide terms for at least one list.`)),Math.max(60>h().columns/2?h().columns-6:h().columns-30,20)).forEach(e=>{r(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((h().columns-(v(e).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(h().columns-2,0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),r(g.banner.outline.primary(`┗`)+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-32,0)))+` `+_(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+g.banner.outline.primary(`━`.repeat(6))+g.banner.outline.primary(`┛`),{consoleFn:console.log}),r(``),t&&!o()&&await l(a)}function E(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function D(e){let t=w(S,{tokens:e.tokens,icons:e.icons,components:e.components,fonts:e.fonts,limit:e.limit});E(t),C(t)&&(process.exitCode=1)}async function O(e=c()){let n={...y(),tokens:[],icons:[],components:[],fonts:[],limit:2};for(let t=0;t<e.slice(0).length;t++){let r=e[t].length>3&&e[t].startsWith(`--`)?`--${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`-${e[t].slice(1).replaceAll(`-`,``)}`:e[t];if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`tokens=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`tokens`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`tokens=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`tokens`)n.tokens??=[],/^--?(tokens)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?n.tokens.push(...r.replace(/^--?(tokens)=/,``).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)):e.length>t+1&&n.tokens.push(...e[++t].split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`icons=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`icons`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`icons=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`icons`)n.icons??=[],/^--?(icons)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?n.icons.push(...r.replace(/^--?(icons)=/,``).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)):e.length>t+1&&n.icons.push(...e[++t].split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`components=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`components`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`components=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`components`)n.components??=[],/^--?(components)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?n.components.push(...r.replace(/^--?(components)=/,``).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)):e.length>t+1&&n.components.push(...e[++t].split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`fonts=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fonts`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`fonts=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fonts`)n.fonts??=[],/^--?(fonts)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?n.fonts.push(...r.replace(/^--?(fonts)=/,``).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)):e.length>t+1&&n.fonts.push(...e[++t].split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`){if(/^--?(limit)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=Number(r.replace(/^--?(limit)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(e)||(n.limit=e)}else if(e.length>t+1){let r=Number(e[++t].trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(r)||(n.limit=r)}}}return i(`quiet`)||(await T(),await x()),!o()&&!i(`quiet`)&&(r(``),(s||a||d.LOG_LEVEL===`debug`)&&r(u.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t||n.limit&&Number.isNaN(n.limit)&&[].push(`Invalid numeric value provided for the "limit" option`),n.help?b():f(`plan`,[`plan`],[n],D)}export{O as handler};
1
+ import{a as e}from"./prompts-BB5v6p8S.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,R as c,U as l,V as u,j as d,k as f,n as p,q as m,t as h,w as g,x as _,y as v,z as y}from"./console-DXSok16X.mjs";import{t as b}from"./plan-I3TfEzVO.mjs";import{t as x}from"./update-B4cKHtuQ.mjs";import{t as S}from"./design-system-BRMKnOY4.mjs";import{isSearchError as C,plan as w}from"@razorwind/shell-shock/runtime";async function T(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),f(``),f(p.banner.outline.primary(`┏`)+p.banner.outline.primary(`━`.repeat(6))+` `+g.banner.header.primary(`⬤`)+` `+p.banner.outline.primary(`━`)+` `+h(g.banner.header.primary(`Cyclone CLI v0.6.37`))+` `+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-33,0)))+p.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>_(e).length))>Math.max(d().columns+30,20)?`Cyclone UI`:`\n${e.join(`
2
+ `)}\n`;v(i,Math.max(d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+h(g.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(`Plan`).length+2))/2),0))+h(g.banner.command.primary(`Plan`))+` `.repeat(Math.max(Math.ceil((d().columns-(_(`Plan`).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),v(h(g.banner.description.primary(`Search tokens, icons, components and fonts in one call to plan what to build. Provide terms for at least one list.`)),Math.max(60>d().columns/2?d().columns-6:d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+g.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(d().columns-2,0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),f(p.banner.outline.primary(`┗`)+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-32,0)))+` `+h(g.banner.footer.primary(`https://cyclone-ui.com`))+` `+p.banner.outline.primary(`━`.repeat(6))+p.banner.outline.primary(`┛`),{consoleFn:console.log}),f(``),o&&!c()&&await t(n)}function E(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function D(e){let t=w(S,{tokens:e.tokens,icons:e.icons,components:e.components,fonts:e.fonts,limit:e.limit});E(t),C(t)&&(process.exitCode=1)}async function O(e=y()){let t={...u(),tokens:[],icons:[],components:[],fonts:[],limit:2};for(let n=0;n<e.slice(0).length;n++){let r=e[n].length>3&&e[n].startsWith(`--`)?`--${e[n].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[n].length>2&&e[n].startsWith(`-`)?`-${e[n].slice(1).replaceAll(`-`,``)}`:e[n];if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`tokens=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`tokens`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`tokens=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`tokens`)t.tokens??=[],/^--?(tokens)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.tokens.push(...r.replace(/^--?(tokens)=/,``).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)):e.length>n+1&&t.tokens.push(...e[++n].split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`icons=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`icons`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`icons=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`icons`)t.icons??=[],/^--?(icons)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.icons.push(...r.replace(/^--?(icons)=/,``).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)):e.length>n+1&&t.icons.push(...e[++n].split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`components=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`components`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`components=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`components`)t.components??=[],/^--?(components)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.components.push(...r.replace(/^--?(components)=/,``).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)):e.length>n+1&&t.components.push(...e[++n].split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`fonts=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fonts`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`fonts=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fonts`)t.fonts??=[],/^--?(fonts)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.fonts.push(...r.replace(/^--?(fonts)=/,``).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)):e.length>n+1&&t.fonts.push(...e[++n].split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`){if(/^--?(limit)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=Number(r.replace(/^--?(limit)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(e)||(t.limit=e)}else if(e.length>n+1){let r=Number(e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(r)||(t.limit=r)}}}return a(`quiet`)||(await T(),await x()),!c()&&!a(`quiet`)&&(f(``),(i||m||n.LOG_LEVEL===`debug`)&&f(g.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),o||t.limit&&Number.isNaN(t.limit)&&[].push(`Invalid numeric value provided for the "limit" option`),t.help?b():l(`plan`,[`plan`],[t],D)}export{O as handler};
@@ -1,8 +1,8 @@
1
- import{A as e,B as t,C as n,D as r,F as i,I as a,N as o,S as s,_ as c,a as l,j as u,k as d,m as f,n as p,q as m,r as h,s as g,t as _,v,y}from"./console-DlVpDtPd.mjs";import b from"node:events";import{createInterface as x,emitKeypressEvents as S}from"node:readline";const C=[`▄█████ ▄▄ ▄▄ ▄▄▄▄ ▄▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ██ ██ ██ `,`██ ▀███▀ ██▀▀▀ ██ ██▀██ ███▄██ ██▄▄ ██ ██ ██ `,`▀█████ █ ▀████ ██▄▄▄ ▀███▀ ██ ▀██ ██▄▄▄ ▀████▀ ██ `];async function w(n=500){if(t().get(`is-banner-displayed`)||i(`no-banner`)||i(`hide-banner`)||u)return;t().set(`is-banner-displayed`,!0),r(``),r(p.banner.outline.primary(`┏`)+p.banner.outline.primary(`━`.repeat(6))+` `+s.banner.header.primary(`⬤`)+` `+p.banner.outline.primary(`━`)+` `+_(s.banner.header.primary(`Cyclone CLI v0.6.35`))+` `+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-33,0)))+p.banner.outline.primary(`┓`),{consoleFn:console.log});let l=Math.max(...C.map(e=>y(e).length))>Math.max(d().columns+30,20)?`Cyclone UI`:`\n${C.join(`
2
- `)}\n`;c(l,Math.max(d().columns-30,20)).forEach(e=>{r(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(y(e).length+2))/2),0))+_(s.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((d().columns-(y(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),c(_(s.banner.description.primary(`🌀 Tamagui based design components used by Storm Software. Like shadcn/ui, the components are copied into other repositories via the Cyclone CLI.`)),Math.max(60>d().columns/2?d().columns-6:d().columns-30,20)).forEach(e=>{r(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(y(e).length+2))/2),0))+s.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((d().columns-(y(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(d().columns-2,0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),r(p.banner.outline.primary(`┗`)+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-32,0)))+` `+_(s.banner.footer.primary(`https://cyclone-ui.com`))+` `+p.banner.outline.primary(`━`.repeat(6))+p.banner.outline.primary(`┛`),{consoleFn:console.log}),r(``),e&&!a()&&await o(n)}function T(e){return e}var E=class extends b{config;#e;#t;#n=!1;#r=!1;#i=!1;input=process.stdin;output=process.stdout;message=``;description=``;errorMessage=null;defaultErrorMessage=`An invalid value was provided`;isSubmitted=!1;isCancelled=!1;isInitial=!0;consoleOutput=``;consoleStatus=``;displayValue=``;validate=()=>!0;parse=e=>e;format=e=>String(e);mask=T;maskCompleted=this.mask;cursor=0;cursorHidden=!1;constructor(e){super(),this.config=e,e.input&&(this.input=e.input),e.output&&(this.output=e.output),e.defaultErrorMessage&&(this.defaultErrorMessage=e.defaultErrorMessage),e.description&&(this.description=e.description),e.validate&&(this.validate=e.validate),e.parse&&(this.parse=e.parse.bind(this)),e.format&&(this.format=e.format.bind(this)),e.maskCompleted&&(this.maskCompleted=e.maskCompleted),e.mask&&(this.mask=e.mask),e.timeout!==void 0&&!Number.isNaN(e.timeout)&&setTimeout(()=>{this.isCompleted||this.cancel()},e.timeout),this.message=e.message,this.#e=x({input:this.input,escapeCodeTimeout:50}),S(this.input,this.#e),this.input.isTTY&&this.input.setRawMode(!0),this.input.on(`keypress`,this.keypress.bind(this))}[Symbol.dispose](){this.close()}get value(){return this.#t||this.initialValue}get isError(){return!!this.errorMessage}get isSelect(){return!1}get isCompleted(){return this.isCancelled||this.isSubmitted}get isPlaceholder(){return this.displayValue===this.format(this.initialValue)&&!this.#r||!this.#n}get status(){return this.isSubmitted?``:` \n ${f(this.isError?s.prompt.description.error(c(this.errorMessage,`3/4`).join(`
3
- `)):this.isCancelled?s.prompt.description.cancelled(c(`Input was cancelled by user`,`3/4`).join(`
4
- `)):this.description?s.prompt.description.active(c(this.description,`3/4`).join(`
5
- `)):``)}`}get isCursorAtStart(){return this.cursor<=0||this.isPlaceholder&&this.cursor<=1}get isCursorAtEnd(){return this.cursor>=this.displayValue.length||this.isPlaceholder&&this.cursor>=this.displayValue.length-1}changeValue(e){let t=this.value,n=e;n=e===void 0||e===``?this.initialValue:e,this.displayValue=this.mask(this.format(n)),this.#t=n,!this.#r&&this.#t!==this.initialValue&&(this.#r=!0),this.onChange(t),setTimeout(()=>{Promise.resolve(this.checkValidations(n)).then(()=>this.sync())},0),this.sync()}sync(){this.emit(`state`,{value:this.value,errorMessage:this.errorMessage,isError:this.isError,isSubmitted:this.isSubmitted,isCancelled:this.isCancelled,isCompleted:this.isCompleted}),this.render()}bell(){this.output.write(`\x07`)}onRender(){return this.isPlaceholder?s.prompt.input.disabled(this.displayValue):this.isError?s.prompt.input.error(this.displayValue):this.isSubmitted?s.prompt.input.submitted(this.maskCompleted(this.displayValue)):this.isCancelled?s.prompt.input.cancelled(this.maskCompleted(this.displayValue)):_(s.prompt.input.active(this.displayValue))}onChange(e){}onKeyPress(e,t){let n=this.getAction(t);n?typeof this[n]==`function`&&this[n](t):this.bell()}async close(){this.#i||=(this.output.write(l.show),this.input.removeListener(`keypress`,this.keypress),this.input.isTTY&&this.input.setRawMode(!1),this.#e.close(),this.emit(this.isSubmitted?`submit`:`cancel`,this.value),!0)}async checkValidations(e){let t=await this.validate(e);this.errorMessage=typeof t==`string`?t:typeof t==`boolean`?t?null:this.defaultErrorMessage:null}getAction(e){if(e.meta&&e.name!==`escape`)return!1;let t;return e.ctrl&&(e.name===`a`&&(t=`first`),e.name===`c`&&(t=`cancel`),e.name===`d`&&(t=`cancel`),e.name===`e`&&(t=`last`),e.name===`g`&&(t=`reset`)),e.name===`return`&&(t=`submit`),e.name===`enter`&&(t=`submit`),e.name===`backspace`&&(t=`backspace`),e.name===`delete`&&(t=`delete`),e.name===`cancel`&&(t=`cancel`),e.name===`escape`&&(t=`cancel`),e.name===`tab`&&(t=`next`),e.name===`pagedown`&&(t=`nextPage`),e.name===`pageup`&&(t=`prevPage`),e.name===`home`&&(t=`home`),e.name===`end`&&(t=`end`),e.name===`up`&&(t=`up`),e.name===`down`&&(t=`down`),e.name===`right`&&(t=`right`),e.name===`left`&&(t=`left`),t||!1}moveCursor(e){this.cursor+e<0?this.cursor=0:this.cursor+e>this.displayValue.length?this.cursor=this.displayValue.length:this.cursor+=e}backspace(){if(this.isCursorAtStart||this.displayValue===``)return this.bell();let e=this.isCursorAtEnd&&this.displayValue.length===this.cursor;this.changeValue(this.parse(`${this.displayValue.slice(0,this.cursor-1)}${this.displayValue.slice(this.cursor)}`)),this.moveCursor(e?-1:-2),this.sync()}delete(){if(this.isCursorAtEnd)return this.bell();this.changeValue(this.parse(`${this.displayValue.slice(0,this.cursor)}${this.displayValue.slice(this.cursor+1)}`)),this.isCursorAtStart||this.moveCursor(-1),this.sync()}reset(){this.changeValue(this.initialValue),this.cursor=0,this.errorMessage=null,this.isCancelled=!1,this.isSubmitted=!1,this.sync()}cancel(){this.errorMessage=null,this.isCancelled=!0,this.isSubmitted=!1,this.sync(),this.output.write(`
1
+ import{F as e,H as t,L as n,M as r,N as i,R as a,T as o,Y as s,a as c,b as l,c as u,g as d,j as f,k as p,n as m,r as h,t as g,w as _,x as v,y}from"./console-BG2EVggr.mjs";import b from"node:events";import{createInterface as x,emitKeypressEvents as S}from"node:readline";const C=[`▄█████ ▄▄ ▄▄ ▄▄▄▄ ▄▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ██ ██ ██ `,`██ ▀███▀ ██▀▀▀ ██ ██▀██ ███▄██ ██▄▄ ██ ██ ██ `,`▀█████ █ ▀████ ██▄▄▄ ▀███▀ ██ ▀██ ██▄▄▄ ▀████▀ ██ `];async function w(o=500){if(t().get(`is-banner-displayed`)||n(`no-banner`)||n(`hide-banner`)||i)return;t().set(`is-banner-displayed`,!0),p(``),p(m.banner.outline.primary(`┏`)+m.banner.outline.primary(`━`.repeat(6))+` `+_.banner.header.primary(`⬤`)+` `+m.banner.outline.primary(`━`)+` `+g(_.banner.header.primary(`Cyclone CLI v0.6.37`))+` `+m.banner.outline.primary(`━`.repeat(Math.max(f().columns-33,0)))+m.banner.outline.primary(`┓`),{consoleFn:console.log});let s=Math.max(...C.map(e=>v(e).length))>Math.max(f().columns+30,20)?`Cyclone UI`:`\n${C.join(`
2
+ `)}\n`;y(s,Math.max(f().columns-30,20)).forEach(e=>{p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(e).length+2))/2),0))+g(_.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((f().columns-(v(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),y(g(_.banner.description.primary(`🌀 Tamagui based design components used by Storm Software. Like shadcn/ui, the components are copied into other repositories via the Cyclone CLI.`)),Math.max(60>f().columns/2?f().columns-6:f().columns-30,20)).forEach(e=>{p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(e).length+2))/2),0))+_.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((f().columns-(v(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(f().columns-2,0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),p(m.banner.outline.primary(`┗`)+m.banner.outline.primary(`━`.repeat(Math.max(f().columns-32,0)))+` `+g(_.banner.footer.primary(`https://cyclone-ui.com`))+` `+m.banner.outline.primary(`━`.repeat(6))+m.banner.outline.primary(`┛`),{consoleFn:console.log}),p(``),r&&!a()&&await e(o)}function T(e){return e}var E=class extends b{config;#e;#t;#n=!1;#r=!1;#i=!1;input=process.stdin;output=process.stdout;message=``;description=``;errorMessage=null;defaultErrorMessage=`An invalid value was provided`;isSubmitted=!1;isCancelled=!1;isInitial=!0;consoleOutput=``;consoleStatus=``;displayValue=``;validate=()=>!0;parse=e=>e;format=e=>String(e);mask=T;maskCompleted=this.mask;cursor=0;cursorHidden=!1;constructor(e){super(),this.config=e,e.input&&(this.input=e.input),e.output&&(this.output=e.output),e.defaultErrorMessage&&(this.defaultErrorMessage=e.defaultErrorMessage),e.description&&(this.description=e.description),e.validate&&(this.validate=e.validate),e.parse&&(this.parse=e.parse.bind(this)),e.format&&(this.format=e.format.bind(this)),e.maskCompleted&&(this.maskCompleted=e.maskCompleted),e.mask&&(this.mask=e.mask),e.timeout!==void 0&&!Number.isNaN(e.timeout)&&setTimeout(()=>{this.isCompleted||this.cancel()},e.timeout),this.message=e.message,this.#e=x({input:this.input,escapeCodeTimeout:50}),S(this.input,this.#e),this.input.isTTY&&this.input.setRawMode(!0),this.input.on(`keypress`,this.keypress.bind(this))}[Symbol.dispose](){this.close()}get value(){return this.#t||this.initialValue}get isError(){return!!this.errorMessage}get isSelect(){return!1}get isCompleted(){return this.isCancelled||this.isSubmitted}get isPlaceholder(){return this.displayValue===this.format(this.initialValue)&&!this.#r||!this.#n}get status(){return this.isSubmitted?``:` \n ${d(this.isError?_.prompt.description.error(y(this.errorMessage,`3/4`).join(`
3
+ `)):this.isCancelled?_.prompt.description.cancelled(y(`Input was cancelled by user`,`3/4`).join(`
4
+ `)):this.description?_.prompt.description.active(y(this.description,`3/4`).join(`
5
+ `)):``)}`}get isCursorAtStart(){return this.cursor<=0||this.isPlaceholder&&this.cursor<=1}get isCursorAtEnd(){return this.cursor>=this.displayValue.length||this.isPlaceholder&&this.cursor>=this.displayValue.length-1}changeValue(e){let t=this.value,n=e;n=e===void 0||e===``?this.initialValue:e,this.displayValue=this.mask(this.format(n)),this.#t=n,!this.#r&&this.#t!==this.initialValue&&(this.#r=!0),this.onChange(t),setTimeout(()=>{Promise.resolve(this.checkValidations(n)).then(()=>this.sync())},0),this.sync()}sync(){this.emit(`state`,{value:this.value,errorMessage:this.errorMessage,isError:this.isError,isSubmitted:this.isSubmitted,isCancelled:this.isCancelled,isCompleted:this.isCompleted}),this.render()}bell(){this.output.write(`\x07`)}onRender(){return this.isPlaceholder?_.prompt.input.disabled(this.displayValue):this.isError?_.prompt.input.error(this.displayValue):this.isSubmitted?_.prompt.input.submitted(this.maskCompleted(this.displayValue)):this.isCancelled?_.prompt.input.cancelled(this.maskCompleted(this.displayValue)):g(_.prompt.input.active(this.displayValue))}onChange(e){}onKeyPress(e,t){let n=this.getAction(t);n?typeof this[n]==`function`&&this[n](t):this.bell()}async close(){this.#i||=(this.output.write(c.show),this.input.removeListener(`keypress`,this.keypress),this.input.isTTY&&this.input.setRawMode(!1),this.#e.close(),this.emit(this.isSubmitted?`submit`:`cancel`,this.value),!0)}async checkValidations(e){let t=await this.validate(e);this.errorMessage=typeof t==`string`?t:typeof t==`boolean`?t?null:this.defaultErrorMessage:null}getAction(e){if(e.meta&&e.name!==`escape`)return!1;let t;return e.ctrl&&(e.name===`a`&&(t=`first`),e.name===`c`&&(t=`cancel`),e.name===`d`&&(t=`cancel`),e.name===`e`&&(t=`last`),e.name===`g`&&(t=`reset`)),e.name===`return`&&(t=`submit`),e.name===`enter`&&(t=`submit`),e.name===`backspace`&&(t=`backspace`),e.name===`delete`&&(t=`delete`),e.name===`cancel`&&(t=`cancel`),e.name===`escape`&&(t=`cancel`),e.name===`tab`&&(t=`next`),e.name===`pagedown`&&(t=`nextPage`),e.name===`pageup`&&(t=`prevPage`),e.name===`home`&&(t=`home`),e.name===`end`&&(t=`end`),e.name===`up`&&(t=`up`),e.name===`down`&&(t=`down`),e.name===`right`&&(t=`right`),e.name===`left`&&(t=`left`),t||!1}moveCursor(e){this.cursor+e<0?this.cursor=0:this.cursor+e>this.displayValue.length?this.cursor=this.displayValue.length:this.cursor+=e}backspace(){if(this.isCursorAtStart||this.displayValue===``)return this.bell();let e=this.isCursorAtEnd&&this.displayValue.length===this.cursor;this.changeValue(this.parse(`${this.displayValue.slice(0,this.cursor-1)}${this.displayValue.slice(this.cursor)}`)),this.moveCursor(e?-1:-2),this.sync()}delete(){if(this.isCursorAtEnd)return this.bell();this.changeValue(this.parse(`${this.displayValue.slice(0,this.cursor)}${this.displayValue.slice(this.cursor+1)}`)),this.isCursorAtStart||this.moveCursor(-1),this.sync()}reset(){this.changeValue(this.initialValue),this.cursor=0,this.errorMessage=null,this.isCancelled=!1,this.isSubmitted=!1,this.sync()}cancel(){this.errorMessage=null,this.isCancelled=!0,this.isSubmitted=!1,this.sync(),this.output.write(`
6
6
  `),this.close()}async submit(){this.cursor=this.displayValue.length,await this.checkValidations(this.value),this.isError?(this.sync(),this.bell()):(this.isSubmitted=!0,this.isCancelled=!1,this.sync(),this.output.write(`
7
- `),this.close())}render(){if(this.#i)return;let e=setTimeout(()=>{throw Error(`Rendering Timeout: Prompt render took too long, this is likely due to a long-running operation being performed during the render phase. Please ensure that any operations performed during rendering are optimized and do not block the event loop to prevent this error.`)},1e3);try{this.isInitial?this.cursorHidden&&this.output.write(l.hide):(this.consoleStatus&&this.output.write(l.down(y(this.consoleStatus).split(/\r?\n/).map(e=>Math.ceil(e.length/this.output.columns)).reduce((e,t)=>e+t)-1)+h(this.consoleStatus,this.output.columns)),this.output.write(h(this.consoleOutput,this.output.columns))),this.consoleOutput=` ${this.isSubmitted?s.prompt.icon.submitted(`✔`):this.isCancelled?s.prompt.icon.cancelled(`🛇`):this.isError?s.prompt.icon.error(`✘`):s.prompt.icon.active(`✱`)} ${this.isCompleted?s.prompt.message.submitted(this.message):_(s.prompt.message.active(this.message))} ${p.app.divider.tertiary(this.isCompleted?m?`...`:`…`:m?`»`:`›`)} `,this.consoleOutput+=this.onRender(),this.isInitial&&=!1,this.output.write(g.line+l.to(0)+this.consoleOutput+(this.status?l.save+this.status+l.restore+l.move(this.displayValue.length-(this.displayValue.length-this.cursor)-this.displayValue.length,0):l.save)),this.consoleStatus=this.status}finally{clearTimeout(e)}}keypress(e,t){if(!this.#i)return this.#n||=!0,this.onKeyPress(e,t)}};const D=Symbol(`shell-shock:prompts:cancel`);function O(e){return e===D}var k=class extends E{#e=!1;initialValue=``;constructor(e){super(e),e.initialValue&&(this.initialValue=e.initialValue),this.initialValue&&this.changeValue(this.initialValue),this.cursor=0,this.sync(),this.last()}onKeyPress(e,t){let n=this.getAction(t);if(n&&typeof this[n]==`function`)return this[n]();if(!e||e.length===0)return this.bell();this.changeValue(`${this.displayValue.slice(0,this.cursor)}${e}${this.displayValue.slice(this.cursor)}`),this.sync()}onChange(e){this.#e=!1,this.cursor=this.displayValue.slice(0,this.cursor).length+1}reset(){this.cursor=Number(!!this.initialValue),super.reset()}async checkValidations(){await super.checkValidations(this.value),this.#e=this.isError}next(){this.changeValue(this.initialValue),this.cursor=this.displayValue.length,this.sync()}first(){this.cursor=0,this.sync()}last(){this.cursor=this.displayValue.length,this.sync()}left(){if(this.cursor<=0)return this.bell();this.moveCursor(-1),this.sync()}right(){if(this.cursor>=this.displayValue.length)return this.bell();this.moveCursor(1),this.sync()}onRender(){return this.isPlaceholder?s.prompt.input.disabled(this.displayValue):this.#e?s.prompt.input.error(this.displayValue):this.isSubmitted?s.prompt.input.submitted(this.displayValue):this.isCancelled?s.prompt.input.cancelled(this.displayValue):_(s.prompt.input.active(this.displayValue))}};function A(e){return new Promise((t,n)=>{let r=new k(e);r.on(`state`,t=>e.onState?.(t)),r.on(`submit`,e=>t(e)),r.on(`cancel`,e=>t(D))})}var j=class extends E{initialValue;optionsPerPage=8;options=[];cursorHidden=!0;constructor(e){super(e),this.initialValue=e.initialValue?e.initialValue:void 0,this.options=e.options.map((e,t)=>{let n={};if(typeof e==`string`)n={label:e,value:e,selected:!1,disabled:!1};else if(typeof e==`object`)n=e;else throw Error(`Invalid option provided to SelectPrompt at index #${t}`);return{label:String(n.value)||``,...n,description:n.description,selected:!!n.selected||this.initialValue!==void 0&&n.value===this.initialValue,disabled:!!n.disabled}}).sort((e,t)=>e.label.localeCompare(t.label)).map((e,t)=>({...e,index:t}));let t=this.options.findIndex(e=>e.selected);t>-1&&(this.cursor=t,this.options[this.cursor]&&(this.initialValue=this.options[this.cursor].value)),this.initialValue===void 0&&this.options.length>0&&this.options[0]&&(this.initialValue=this.options[0].value),e.optionsPerPage&&(this.optionsPerPage=e.optionsPerPage),this.sync()}get selectedOption(){return this.options.find(e=>e.value===this.value)??null}getAction(e){let t=super.getAction(e);return t||(e.name===`j`&&(t=`down`),e.name===`k`&&(t=`up`)),t||!1}reset(){this.moveCursor(0),super.reset()}async submit(){this.selectedOption?.disabled?this.bell():await super.submit()}next(){this.moveCursor((this.cursor+1)%this.options.length),this.sync()}moveCursor(e){this.cursor=e,this.changeValue(this.options[e].value),this.sync()}first(){this.moveCursor(0),this.sync()}last(){this.moveCursor(this.options.length-1),this.sync()}first_2(){this.cursor=0,this.sync()}up(){this.cursor===0?this.moveCursor(this.options.length-1):this.moveCursor(this.cursor-1),this.sync()}down(){this.cursor===this.options.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.sync()}onRender(){let e=Math.max(...this.options.map(e=>e.label?.length||0))+2,t=Math.max(Math.min(this.options.length-this.optionsPerPage,this.cursor-Math.floor(this.optionsPerPage/2)),0),r=Math.min(t+this.optionsPerPage,this.options.length),i=``;if(this.isCompleted)this.displayValue=this.selectedOption?.label||String(this.value),i+=super.onRender();else{i+=`
8
- `;for(let a=t;a<r;a++)i+=`${this.options[a].disabled?this.cursor===a?_(s.prompt.input.disabled(`>`)):a===t?p.app.divider.tertiary(`↑`):a===r-1?p.app.divider.tertiary(`↓`):` `:this.cursor===a?_(s.prompt.input.active(`>`)):a===t?p.app.divider.tertiary(`↑`):a===r-1?p.app.divider.tertiary(`↓`):` `} ${this.options[a].disabled?this.cursor===a?_(s.prompt.input.disabled(this.options[a].icon?n(`${this.options[a].icon} `):``)):v(s.prompt.input.disabled(this.options[a].icon?`${this.options[a].icon} `:``)):this.cursor===a?_(s.prompt.input.active(this.options[a].icon?n(`${this.options[a].icon} `):``)):s.prompt.input.inactive(this.options[a].icon?`${this.options[a].icon} `:``)}${this.options[a].disabled?this.cursor===a?_(n(s.prompt.input.disabled(this.options[a].label))):v(s.prompt.input.disabled(this.options[a].label)):this.cursor===a?_(n(s.prompt.input.active(this.options[a].label))):s.prompt.input.inactive(this.options[a].label)} ${` `.repeat(Math.max(0,e-this.options[a].label.length-(this.options[a].icon?this.options[a].icon.length+1:0)))}${this.options[a].description&&this.cursor===a?f(s.prompt.description.active(this.options[a].description)):``} \n`}return i}};function M(e){return new Promise((t,n)=>{let r=new j(e);r.on(`state`,t=>e.onState?.(t)),r.on(`submit`,e=>t(e)),r.on(`cancel`,e=>t(D))})}function N(e=72e5){return process.stdin.setRawMode(!0),new Promise(t=>process.stdin.once(`data`,()=>{e>=0&&setTimeout(()=>{process.stdin.setRawMode(!1),t(void 0)},e),process.stdin.setRawMode(!1),t(void 0)}))}export{C as a,N as i,M as n,w as o,A as r,O as t};
7
+ `),this.close())}render(){if(this.#i)return;let e=setTimeout(()=>{throw Error(`Rendering Timeout: Prompt render took too long, this is likely due to a long-running operation being performed during the render phase. Please ensure that any operations performed during rendering are optimized and do not block the event loop to prevent this error.`)},1e3);try{this.isInitial?this.cursorHidden&&this.output.write(c.hide):(this.consoleStatus&&this.output.write(c.down(v(this.consoleStatus).split(/\r?\n/).map(e=>Math.ceil(e.length/this.output.columns)).reduce((e,t)=>e+t)-1)+h(this.consoleStatus,this.output.columns)),this.output.write(h(this.consoleOutput,this.output.columns))),this.consoleOutput=` ${this.isSubmitted?_.prompt.icon.submitted(`✔`):this.isCancelled?_.prompt.icon.cancelled(`🛇`):this.isError?_.prompt.icon.error(`✘`):_.prompt.icon.active(`✱`)} ${this.isCompleted?_.prompt.message.submitted(this.message):g(_.prompt.message.active(this.message))} ${m.app.divider.tertiary(this.isCompleted?s?`...`:`…`:s?`»`:`›`)} `,this.consoleOutput+=this.onRender(),this.isInitial&&=!1,this.output.write(u.line+c.to(0)+this.consoleOutput+(this.status?c.save+this.status+c.restore+c.move(this.displayValue.length-(this.displayValue.length-this.cursor)-this.displayValue.length,0):c.save)),this.consoleStatus=this.status}finally{clearTimeout(e)}}keypress(e,t){if(!this.#i)return this.#n||=!0,this.onKeyPress(e,t)}};const D=Symbol(`shell-shock:prompts:cancel`);function O(e){return e===D}var k=class extends E{#e=!1;initialValue=``;constructor(e){super(e),e.initialValue&&(this.initialValue=e.initialValue),this.initialValue&&this.changeValue(this.initialValue),this.cursor=0,this.sync(),this.last()}onKeyPress(e,t){let n=this.getAction(t);if(n&&typeof this[n]==`function`)return this[n]();if(!e||e.length===0)return this.bell();this.changeValue(`${this.displayValue.slice(0,this.cursor)}${e}${this.displayValue.slice(this.cursor)}`),this.sync()}onChange(e){this.#e=!1,this.cursor=this.displayValue.slice(0,this.cursor).length+1}reset(){this.cursor=Number(!!this.initialValue),super.reset()}async checkValidations(){await super.checkValidations(this.value),this.#e=this.isError}next(){this.changeValue(this.initialValue),this.cursor=this.displayValue.length,this.sync()}first(){this.cursor=0,this.sync()}last(){this.cursor=this.displayValue.length,this.sync()}left(){if(this.cursor<=0)return this.bell();this.moveCursor(-1),this.sync()}right(){if(this.cursor>=this.displayValue.length)return this.bell();this.moveCursor(1),this.sync()}onRender(){return this.isPlaceholder?_.prompt.input.disabled(this.displayValue):this.#e?_.prompt.input.error(this.displayValue):this.isSubmitted?_.prompt.input.submitted(this.displayValue):this.isCancelled?_.prompt.input.cancelled(this.displayValue):g(_.prompt.input.active(this.displayValue))}};function A(e){return new Promise((t,n)=>{let r=new k(e);r.on(`state`,t=>e.onState?.(t)),r.on(`submit`,e=>t(e)),r.on(`cancel`,e=>t(D))})}var j=class extends E{initialValue;optionsPerPage=8;options=[];cursorHidden=!0;constructor(e){super(e),this.initialValue=e.initialValue?e.initialValue:void 0,this.options=e.options.map((e,t)=>{let n={};if(typeof e==`string`)n={label:e,value:e,selected:!1,disabled:!1};else if(typeof e==`object`)n=e;else throw Error(`Invalid option provided to SelectPrompt at index #${t}`);return{label:String(n.value)||``,...n,description:n.description,selected:!!n.selected||this.initialValue!==void 0&&n.value===this.initialValue,disabled:!!n.disabled}}).sort((e,t)=>e.label.localeCompare(t.label)).map((e,t)=>({...e,index:t}));let t=this.options.findIndex(e=>e.selected);t>-1&&(this.cursor=t,this.options[this.cursor]&&(this.initialValue=this.options[this.cursor].value)),this.initialValue===void 0&&this.options.length>0&&this.options[0]&&(this.initialValue=this.options[0].value),e.optionsPerPage&&(this.optionsPerPage=e.optionsPerPage),this.sync()}get selectedOption(){return this.options.find(e=>e.value===this.value)??null}getAction(e){let t=super.getAction(e);return t||(e.name===`j`&&(t=`down`),e.name===`k`&&(t=`up`)),t||!1}reset(){this.moveCursor(0),super.reset()}async submit(){this.selectedOption?.disabled?this.bell():await super.submit()}next(){this.moveCursor((this.cursor+1)%this.options.length),this.sync()}moveCursor(e){this.cursor=e,this.changeValue(this.options[e].value),this.sync()}first(){this.moveCursor(0),this.sync()}last(){this.moveCursor(this.options.length-1),this.sync()}first_2(){this.cursor=0,this.sync()}up(){this.cursor===0?this.moveCursor(this.options.length-1):this.moveCursor(this.cursor-1),this.sync()}down(){this.cursor===this.options.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.sync()}onRender(){let e=Math.max(...this.options.map(e=>e.label?.length||0))+2,t=Math.max(Math.min(this.options.length-this.optionsPerPage,this.cursor-Math.floor(this.optionsPerPage/2)),0),n=Math.min(t+this.optionsPerPage,this.options.length),r=``;if(this.isCompleted)this.displayValue=this.selectedOption?.label||String(this.value),r+=super.onRender();else{r+=`
8
+ `;for(let i=t;i<n;i++)r+=`${this.options[i].disabled?this.cursor===i?g(_.prompt.input.disabled(`>`)):i===t?m.app.divider.tertiary(`↑`):i===n-1?m.app.divider.tertiary(`↓`):` `:this.cursor===i?g(_.prompt.input.active(`>`)):i===t?m.app.divider.tertiary(`↑`):i===n-1?m.app.divider.tertiary(`↓`):` `} ${this.options[i].disabled?this.cursor===i?g(_.prompt.input.disabled(this.options[i].icon?o(`${this.options[i].icon} `):``)):l(_.prompt.input.disabled(this.options[i].icon?`${this.options[i].icon} `:``)):this.cursor===i?g(_.prompt.input.active(this.options[i].icon?o(`${this.options[i].icon} `):``)):_.prompt.input.inactive(this.options[i].icon?`${this.options[i].icon} `:``)}${this.options[i].disabled?this.cursor===i?g(o(_.prompt.input.disabled(this.options[i].label))):l(_.prompt.input.disabled(this.options[i].label)):this.cursor===i?g(o(_.prompt.input.active(this.options[i].label))):_.prompt.input.inactive(this.options[i].label)} ${` `.repeat(Math.max(0,e-this.options[i].label.length-(this.options[i].icon?this.options[i].icon.length+1:0)))}${this.options[i].description&&this.cursor===i?d(_.prompt.description.active(this.options[i].description)):``} \n`}return r}};function M(e){return new Promise((t,n)=>{let r=new j(e);r.on(`state`,t=>e.onState?.(t)),r.on(`submit`,e=>t(e)),r.on(`cancel`,e=>t(D))})}function N(e=72e5){return process.stdin.setRawMode(!0),new Promise(t=>process.stdin.once(`data`,()=>{e>=0&&setTimeout(()=>{process.stdin.setRawMode(!1),t(void 0)},e),process.stdin.setRawMode(!1),t(void 0)}))}export{C as a,N as i,M as n,w as o,A as r,O as t};
@@ -1,8 +1,8 @@
1
- import{A as e,B as t,C as n,D as r,F as i,I as a,N as o,S as s,_ as c,a as l,j as u,k as d,m as f,n as p,q as m,r as h,s as g,t as _,v,y}from"./console-jhBiCyg4.mjs";import b from"node:events";import{createInterface as x,emitKeypressEvents as S}from"node:readline";const C=[`▄█████ ▄▄ ▄▄ ▄▄▄▄ ▄▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ██ ██ ██ `,`██ ▀███▀ ██▀▀▀ ██ ██▀██ ███▄██ ██▄▄ ██ ██ ██ `,`▀█████ █ ▀████ ██▄▄▄ ▀███▀ ██ ▀██ ██▄▄▄ ▀████▀ ██ `];async function w(n=500){if(t().get(`is-banner-displayed`)||i(`no-banner`)||i(`hide-banner`)||u)return;t().set(`is-banner-displayed`,!0),r(``),r(p.banner.outline.primary(`┏`)+p.banner.outline.primary(`━`.repeat(6))+` `+s.banner.header.primary(`⬤`)+` `+p.banner.outline.primary(`━`)+` `+_(s.banner.header.primary(`Cyclone CLI v0.6.35`))+` `+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-33,0)))+p.banner.outline.primary(`┓`),{consoleFn:console.log});let l=Math.max(...C.map(e=>y(e).length))>Math.max(d().columns+30,20)?`Cyclone UI`:`\n${C.join(`
2
- `)}\n`;c(l,Math.max(d().columns-30,20)).forEach(e=>{r(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(y(e).length+2))/2),0))+_(s.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((d().columns-(y(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),c(_(s.banner.description.primary(`🌀 Tamagui based design components used by Storm Software. Like shadcn/ui, the components are copied into other repositories via the Cyclone CLI.`)),Math.max(60>d().columns/2?d().columns-6:d().columns-30,20)).forEach(e=>{r(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(y(e).length+2))/2),0))+s.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((d().columns-(y(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(d().columns-2,0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),r(p.banner.outline.primary(`┗`)+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-32,0)))+` `+_(s.banner.footer.primary(`https://cyclone-ui.com`))+` `+p.banner.outline.primary(`━`.repeat(6))+p.banner.outline.primary(`┛`),{consoleFn:console.log}),r(``),e&&!a()&&await o(n)}function T(e){return e}var E=class extends b{config;#e;#t;#n=!1;#r=!1;#i=!1;input=process.stdin;output=process.stdout;message=``;description=``;errorMessage=null;defaultErrorMessage=`An invalid value was provided`;isSubmitted=!1;isCancelled=!1;isInitial=!0;consoleOutput=``;consoleStatus=``;displayValue=``;validate=()=>!0;parse=e=>e;format=e=>String(e);mask=T;maskCompleted=this.mask;cursor=0;cursorHidden=!1;constructor(e){super(),this.config=e,e.input&&(this.input=e.input),e.output&&(this.output=e.output),e.defaultErrorMessage&&(this.defaultErrorMessage=e.defaultErrorMessage),e.description&&(this.description=e.description),e.validate&&(this.validate=e.validate),e.parse&&(this.parse=e.parse.bind(this)),e.format&&(this.format=e.format.bind(this)),e.maskCompleted&&(this.maskCompleted=e.maskCompleted),e.mask&&(this.mask=e.mask),e.timeout!==void 0&&!Number.isNaN(e.timeout)&&setTimeout(()=>{this.isCompleted||this.cancel()},e.timeout),this.message=e.message,this.#e=x({input:this.input,escapeCodeTimeout:50}),S(this.input,this.#e),this.input.isTTY&&this.input.setRawMode(!0),this.input.on(`keypress`,this.keypress.bind(this))}[Symbol.dispose](){this.close()}get value(){return this.#t||this.initialValue}get isError(){return!!this.errorMessage}get isSelect(){return!1}get isCompleted(){return this.isCancelled||this.isSubmitted}get isPlaceholder(){return this.displayValue===this.format(this.initialValue)&&!this.#r||!this.#n}get status(){return this.isSubmitted?``:` \n ${f(this.isError?s.prompt.description.error(c(this.errorMessage,`3/4`).join(`
3
- `)):this.isCancelled?s.prompt.description.cancelled(c(`Input was cancelled by user`,`3/4`).join(`
4
- `)):this.description?s.prompt.description.active(c(this.description,`3/4`).join(`
5
- `)):``)}`}get isCursorAtStart(){return this.cursor<=0||this.isPlaceholder&&this.cursor<=1}get isCursorAtEnd(){return this.cursor>=this.displayValue.length||this.isPlaceholder&&this.cursor>=this.displayValue.length-1}changeValue(e){let t=this.value,n=e;n=e===void 0||e===``?this.initialValue:e,this.displayValue=this.mask(this.format(n)),this.#t=n,!this.#r&&this.#t!==this.initialValue&&(this.#r=!0),this.onChange(t),setTimeout(()=>{Promise.resolve(this.checkValidations(n)).then(()=>this.sync())},0),this.sync()}sync(){this.emit(`state`,{value:this.value,errorMessage:this.errorMessage,isError:this.isError,isSubmitted:this.isSubmitted,isCancelled:this.isCancelled,isCompleted:this.isCompleted}),this.render()}bell(){this.output.write(`\x07`)}onRender(){return this.isPlaceholder?s.prompt.input.disabled(this.displayValue):this.isError?s.prompt.input.error(this.displayValue):this.isSubmitted?s.prompt.input.submitted(this.maskCompleted(this.displayValue)):this.isCancelled?s.prompt.input.cancelled(this.maskCompleted(this.displayValue)):_(s.prompt.input.active(this.displayValue))}onChange(e){}onKeyPress(e,t){let n=this.getAction(t);n?typeof this[n]==`function`&&this[n](t):this.bell()}async close(){this.#i||=(this.output.write(l.show),this.input.removeListener(`keypress`,this.keypress),this.input.isTTY&&this.input.setRawMode(!1),this.#e.close(),this.emit(this.isSubmitted?`submit`:`cancel`,this.value),!0)}async checkValidations(e){let t=await this.validate(e);this.errorMessage=typeof t==`string`?t:typeof t==`boolean`?t?null:this.defaultErrorMessage:null}getAction(e){if(e.meta&&e.name!==`escape`)return!1;let t;return e.ctrl&&(e.name===`a`&&(t=`first`),e.name===`c`&&(t=`cancel`),e.name===`d`&&(t=`cancel`),e.name===`e`&&(t=`last`),e.name===`g`&&(t=`reset`)),e.name===`return`&&(t=`submit`),e.name===`enter`&&(t=`submit`),e.name===`backspace`&&(t=`backspace`),e.name===`delete`&&(t=`delete`),e.name===`cancel`&&(t=`cancel`),e.name===`escape`&&(t=`cancel`),e.name===`tab`&&(t=`next`),e.name===`pagedown`&&(t=`nextPage`),e.name===`pageup`&&(t=`prevPage`),e.name===`home`&&(t=`home`),e.name===`end`&&(t=`end`),e.name===`up`&&(t=`up`),e.name===`down`&&(t=`down`),e.name===`right`&&(t=`right`),e.name===`left`&&(t=`left`),t||!1}moveCursor(e){this.cursor+e<0?this.cursor=0:this.cursor+e>this.displayValue.length?this.cursor=this.displayValue.length:this.cursor+=e}backspace(){if(this.isCursorAtStart||this.displayValue===``)return this.bell();let e=this.isCursorAtEnd&&this.displayValue.length===this.cursor;this.changeValue(this.parse(`${this.displayValue.slice(0,this.cursor-1)}${this.displayValue.slice(this.cursor)}`)),this.moveCursor(e?-1:-2),this.sync()}delete(){if(this.isCursorAtEnd)return this.bell();this.changeValue(this.parse(`${this.displayValue.slice(0,this.cursor)}${this.displayValue.slice(this.cursor+1)}`)),this.isCursorAtStart||this.moveCursor(-1),this.sync()}reset(){this.changeValue(this.initialValue),this.cursor=0,this.errorMessage=null,this.isCancelled=!1,this.isSubmitted=!1,this.sync()}cancel(){this.errorMessage=null,this.isCancelled=!0,this.isSubmitted=!1,this.sync(),this.output.write(`
1
+ import{F as e,H as t,L as n,M as r,N as i,R as a,T as o,Y as s,a as c,b as l,c as u,g as d,j as f,k as p,n as m,r as h,t as g,w as _,x as v,y}from"./console-DXSok16X.mjs";import b from"node:events";import{createInterface as x,emitKeypressEvents as S}from"node:readline";const C=[`▄█████ ▄▄ ▄▄ ▄▄▄▄ ▄▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ██ ██ ██ `,`██ ▀███▀ ██▀▀▀ ██ ██▀██ ███▄██ ██▄▄ ██ ██ ██ `,`▀█████ █ ▀████ ██▄▄▄ ▀███▀ ██ ▀██ ██▄▄▄ ▀████▀ ██ `];async function w(o=500){if(t().get(`is-banner-displayed`)||n(`no-banner`)||n(`hide-banner`)||i)return;t().set(`is-banner-displayed`,!0),p(``),p(m.banner.outline.primary(`┏`)+m.banner.outline.primary(`━`.repeat(6))+` `+_.banner.header.primary(`⬤`)+` `+m.banner.outline.primary(`━`)+` `+g(_.banner.header.primary(`Cyclone CLI v0.6.37`))+` `+m.banner.outline.primary(`━`.repeat(Math.max(f().columns-33,0)))+m.banner.outline.primary(`┓`),{consoleFn:console.log});let s=Math.max(...C.map(e=>v(e).length))>Math.max(f().columns+30,20)?`Cyclone UI`:`\n${C.join(`
2
+ `)}\n`;y(s,Math.max(f().columns-30,20)).forEach(e=>{p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(e).length+2))/2),0))+g(_.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((f().columns-(v(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),y(g(_.banner.description.primary(`🌀 Tamagui based design components used by Storm Software. Like shadcn/ui, the components are copied into other repositories via the Cyclone CLI.`)),Math.max(60>f().columns/2?f().columns-6:f().columns-30,20)).forEach(e=>{p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(e).length+2))/2),0))+_.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((f().columns-(v(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(f().columns-2,0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),p(m.banner.outline.primary(`┗`)+m.banner.outline.primary(`━`.repeat(Math.max(f().columns-32,0)))+` `+g(_.banner.footer.primary(`https://cyclone-ui.com`))+` `+m.banner.outline.primary(`━`.repeat(6))+m.banner.outline.primary(`┛`),{consoleFn:console.log}),p(``),r&&!a()&&await e(o)}function T(e){return e}var E=class extends b{config;#e;#t;#n=!1;#r=!1;#i=!1;input=process.stdin;output=process.stdout;message=``;description=``;errorMessage=null;defaultErrorMessage=`An invalid value was provided`;isSubmitted=!1;isCancelled=!1;isInitial=!0;consoleOutput=``;consoleStatus=``;displayValue=``;validate=()=>!0;parse=e=>e;format=e=>String(e);mask=T;maskCompleted=this.mask;cursor=0;cursorHidden=!1;constructor(e){super(),this.config=e,e.input&&(this.input=e.input),e.output&&(this.output=e.output),e.defaultErrorMessage&&(this.defaultErrorMessage=e.defaultErrorMessage),e.description&&(this.description=e.description),e.validate&&(this.validate=e.validate),e.parse&&(this.parse=e.parse.bind(this)),e.format&&(this.format=e.format.bind(this)),e.maskCompleted&&(this.maskCompleted=e.maskCompleted),e.mask&&(this.mask=e.mask),e.timeout!==void 0&&!Number.isNaN(e.timeout)&&setTimeout(()=>{this.isCompleted||this.cancel()},e.timeout),this.message=e.message,this.#e=x({input:this.input,escapeCodeTimeout:50}),S(this.input,this.#e),this.input.isTTY&&this.input.setRawMode(!0),this.input.on(`keypress`,this.keypress.bind(this))}[Symbol.dispose](){this.close()}get value(){return this.#t||this.initialValue}get isError(){return!!this.errorMessage}get isSelect(){return!1}get isCompleted(){return this.isCancelled||this.isSubmitted}get isPlaceholder(){return this.displayValue===this.format(this.initialValue)&&!this.#r||!this.#n}get status(){return this.isSubmitted?``:` \n ${d(this.isError?_.prompt.description.error(y(this.errorMessage,`3/4`).join(`
3
+ `)):this.isCancelled?_.prompt.description.cancelled(y(`Input was cancelled by user`,`3/4`).join(`
4
+ `)):this.description?_.prompt.description.active(y(this.description,`3/4`).join(`
5
+ `)):``)}`}get isCursorAtStart(){return this.cursor<=0||this.isPlaceholder&&this.cursor<=1}get isCursorAtEnd(){return this.cursor>=this.displayValue.length||this.isPlaceholder&&this.cursor>=this.displayValue.length-1}changeValue(e){let t=this.value,n=e;n=e===void 0||e===``?this.initialValue:e,this.displayValue=this.mask(this.format(n)),this.#t=n,!this.#r&&this.#t!==this.initialValue&&(this.#r=!0),this.onChange(t),setTimeout(()=>{Promise.resolve(this.checkValidations(n)).then(()=>this.sync())},0),this.sync()}sync(){this.emit(`state`,{value:this.value,errorMessage:this.errorMessage,isError:this.isError,isSubmitted:this.isSubmitted,isCancelled:this.isCancelled,isCompleted:this.isCompleted}),this.render()}bell(){this.output.write(`\x07`)}onRender(){return this.isPlaceholder?_.prompt.input.disabled(this.displayValue):this.isError?_.prompt.input.error(this.displayValue):this.isSubmitted?_.prompt.input.submitted(this.maskCompleted(this.displayValue)):this.isCancelled?_.prompt.input.cancelled(this.maskCompleted(this.displayValue)):g(_.prompt.input.active(this.displayValue))}onChange(e){}onKeyPress(e,t){let n=this.getAction(t);n?typeof this[n]==`function`&&this[n](t):this.bell()}async close(){this.#i||=(this.output.write(c.show),this.input.removeListener(`keypress`,this.keypress),this.input.isTTY&&this.input.setRawMode(!1),this.#e.close(),this.emit(this.isSubmitted?`submit`:`cancel`,this.value),!0)}async checkValidations(e){let t=await this.validate(e);this.errorMessage=typeof t==`string`?t:typeof t==`boolean`?t?null:this.defaultErrorMessage:null}getAction(e){if(e.meta&&e.name!==`escape`)return!1;let t;return e.ctrl&&(e.name===`a`&&(t=`first`),e.name===`c`&&(t=`cancel`),e.name===`d`&&(t=`cancel`),e.name===`e`&&(t=`last`),e.name===`g`&&(t=`reset`)),e.name===`return`&&(t=`submit`),e.name===`enter`&&(t=`submit`),e.name===`backspace`&&(t=`backspace`),e.name===`delete`&&(t=`delete`),e.name===`cancel`&&(t=`cancel`),e.name===`escape`&&(t=`cancel`),e.name===`tab`&&(t=`next`),e.name===`pagedown`&&(t=`nextPage`),e.name===`pageup`&&(t=`prevPage`),e.name===`home`&&(t=`home`),e.name===`end`&&(t=`end`),e.name===`up`&&(t=`up`),e.name===`down`&&(t=`down`),e.name===`right`&&(t=`right`),e.name===`left`&&(t=`left`),t||!1}moveCursor(e){this.cursor+e<0?this.cursor=0:this.cursor+e>this.displayValue.length?this.cursor=this.displayValue.length:this.cursor+=e}backspace(){if(this.isCursorAtStart||this.displayValue===``)return this.bell();let e=this.isCursorAtEnd&&this.displayValue.length===this.cursor;this.changeValue(this.parse(`${this.displayValue.slice(0,this.cursor-1)}${this.displayValue.slice(this.cursor)}`)),this.moveCursor(e?-1:-2),this.sync()}delete(){if(this.isCursorAtEnd)return this.bell();this.changeValue(this.parse(`${this.displayValue.slice(0,this.cursor)}${this.displayValue.slice(this.cursor+1)}`)),this.isCursorAtStart||this.moveCursor(-1),this.sync()}reset(){this.changeValue(this.initialValue),this.cursor=0,this.errorMessage=null,this.isCancelled=!1,this.isSubmitted=!1,this.sync()}cancel(){this.errorMessage=null,this.isCancelled=!0,this.isSubmitted=!1,this.sync(),this.output.write(`
6
6
  `),this.close()}async submit(){this.cursor=this.displayValue.length,await this.checkValidations(this.value),this.isError?(this.sync(),this.bell()):(this.isSubmitted=!0,this.isCancelled=!1,this.sync(),this.output.write(`
7
- `),this.close())}render(){if(this.#i)return;let e=setTimeout(()=>{throw Error(`Rendering Timeout: Prompt render took too long, this is likely due to a long-running operation being performed during the render phase. Please ensure that any operations performed during rendering are optimized and do not block the event loop to prevent this error.`)},1e3);try{this.isInitial?this.cursorHidden&&this.output.write(l.hide):(this.consoleStatus&&this.output.write(l.down(y(this.consoleStatus).split(/\r?\n/).map(e=>Math.ceil(e.length/this.output.columns)).reduce((e,t)=>e+t)-1)+h(this.consoleStatus,this.output.columns)),this.output.write(h(this.consoleOutput,this.output.columns))),this.consoleOutput=` ${this.isSubmitted?s.prompt.icon.submitted(`✔`):this.isCancelled?s.prompt.icon.cancelled(`🛇`):this.isError?s.prompt.icon.error(`✘`):s.prompt.icon.active(`✱`)} ${this.isCompleted?s.prompt.message.submitted(this.message):_(s.prompt.message.active(this.message))} ${p.app.divider.tertiary(this.isCompleted?m?`...`:`…`:m?`»`:`›`)} `,this.consoleOutput+=this.onRender(),this.isInitial&&=!1,this.output.write(g.line+l.to(0)+this.consoleOutput+(this.status?l.save+this.status+l.restore+l.move(this.displayValue.length-(this.displayValue.length-this.cursor)-this.displayValue.length,0):l.save)),this.consoleStatus=this.status}finally{clearTimeout(e)}}keypress(e,t){if(!this.#i)return this.#n||=!0,this.onKeyPress(e,t)}};const D=Symbol(`shell-shock:prompts:cancel`);function O(e){return e===D}var k=class extends E{#e=!1;initialValue=``;constructor(e){super(e),e.initialValue&&(this.initialValue=e.initialValue),this.initialValue&&this.changeValue(this.initialValue),this.cursor=0,this.sync(),this.last()}onKeyPress(e,t){let n=this.getAction(t);if(n&&typeof this[n]==`function`)return this[n]();if(!e||e.length===0)return this.bell();this.changeValue(`${this.displayValue.slice(0,this.cursor)}${e}${this.displayValue.slice(this.cursor)}`),this.sync()}onChange(e){this.#e=!1,this.cursor=this.displayValue.slice(0,this.cursor).length+1}reset(){this.cursor=Number(!!this.initialValue),super.reset()}async checkValidations(){await super.checkValidations(this.value),this.#e=this.isError}next(){this.changeValue(this.initialValue),this.cursor=this.displayValue.length,this.sync()}first(){this.cursor=0,this.sync()}last(){this.cursor=this.displayValue.length,this.sync()}left(){if(this.cursor<=0)return this.bell();this.moveCursor(-1),this.sync()}right(){if(this.cursor>=this.displayValue.length)return this.bell();this.moveCursor(1),this.sync()}onRender(){return this.isPlaceholder?s.prompt.input.disabled(this.displayValue):this.#e?s.prompt.input.error(this.displayValue):this.isSubmitted?s.prompt.input.submitted(this.displayValue):this.isCancelled?s.prompt.input.cancelled(this.displayValue):_(s.prompt.input.active(this.displayValue))}};function A(e){return new Promise((t,n)=>{let r=new k(e);r.on(`state`,t=>e.onState?.(t)),r.on(`submit`,e=>t(e)),r.on(`cancel`,e=>t(D))})}var j=class extends E{initialValue;optionsPerPage=8;options=[];cursorHidden=!0;constructor(e){super(e),this.initialValue=e.initialValue?e.initialValue:void 0,this.options=e.options.map((e,t)=>{let n={};if(typeof e==`string`)n={label:e,value:e,selected:!1,disabled:!1};else if(typeof e==`object`)n=e;else throw Error(`Invalid option provided to SelectPrompt at index #${t}`);return{label:String(n.value)||``,...n,description:n.description,selected:!!n.selected||this.initialValue!==void 0&&n.value===this.initialValue,disabled:!!n.disabled}}).sort((e,t)=>e.label.localeCompare(t.label)).map((e,t)=>({...e,index:t}));let t=this.options.findIndex(e=>e.selected);t>-1&&(this.cursor=t,this.options[this.cursor]&&(this.initialValue=this.options[this.cursor].value)),this.initialValue===void 0&&this.options.length>0&&this.options[0]&&(this.initialValue=this.options[0].value),e.optionsPerPage&&(this.optionsPerPage=e.optionsPerPage),this.sync()}get selectedOption(){return this.options.find(e=>e.value===this.value)??null}getAction(e){let t=super.getAction(e);return t||(e.name===`j`&&(t=`down`),e.name===`k`&&(t=`up`)),t||!1}reset(){this.moveCursor(0),super.reset()}async submit(){this.selectedOption?.disabled?this.bell():await super.submit()}next(){this.moveCursor((this.cursor+1)%this.options.length),this.sync()}moveCursor(e){this.cursor=e,this.changeValue(this.options[e].value),this.sync()}first(){this.moveCursor(0),this.sync()}last(){this.moveCursor(this.options.length-1),this.sync()}first_2(){this.cursor=0,this.sync()}up(){this.cursor===0?this.moveCursor(this.options.length-1):this.moveCursor(this.cursor-1),this.sync()}down(){this.cursor===this.options.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.sync()}onRender(){let e=Math.max(...this.options.map(e=>e.label?.length||0))+2,t=Math.max(Math.min(this.options.length-this.optionsPerPage,this.cursor-Math.floor(this.optionsPerPage/2)),0),r=Math.min(t+this.optionsPerPage,this.options.length),i=``;if(this.isCompleted)this.displayValue=this.selectedOption?.label||String(this.value),i+=super.onRender();else{i+=`
8
- `;for(let a=t;a<r;a++)i+=`${this.options[a].disabled?this.cursor===a?_(s.prompt.input.disabled(`>`)):a===t?p.app.divider.tertiary(`↑`):a===r-1?p.app.divider.tertiary(`↓`):` `:this.cursor===a?_(s.prompt.input.active(`>`)):a===t?p.app.divider.tertiary(`↑`):a===r-1?p.app.divider.tertiary(`↓`):` `} ${this.options[a].disabled?this.cursor===a?_(s.prompt.input.disabled(this.options[a].icon?n(`${this.options[a].icon} `):``)):v(s.prompt.input.disabled(this.options[a].icon?`${this.options[a].icon} `:``)):this.cursor===a?_(s.prompt.input.active(this.options[a].icon?n(`${this.options[a].icon} `):``)):s.prompt.input.inactive(this.options[a].icon?`${this.options[a].icon} `:``)}${this.options[a].disabled?this.cursor===a?_(n(s.prompt.input.disabled(this.options[a].label))):v(s.prompt.input.disabled(this.options[a].label)):this.cursor===a?_(n(s.prompt.input.active(this.options[a].label))):s.prompt.input.inactive(this.options[a].label)} ${` `.repeat(Math.max(0,e-this.options[a].label.length-(this.options[a].icon?this.options[a].icon.length+1:0)))}${this.options[a].description&&this.cursor===a?f(s.prompt.description.active(this.options[a].description)):``} \n`}return i}};function M(e){return new Promise((t,n)=>{let r=new j(e);r.on(`state`,t=>e.onState?.(t)),r.on(`submit`,e=>t(e)),r.on(`cancel`,e=>t(D))})}function N(e=72e5){return process.stdin.setRawMode(!0),new Promise(t=>process.stdin.once(`data`,()=>{e>=0&&setTimeout(()=>{process.stdin.setRawMode(!1),t(void 0)},e),process.stdin.setRawMode(!1),t(void 0)}))}export{C as a,N as i,M as n,w as o,A as r,O as t};
7
+ `),this.close())}render(){if(this.#i)return;let e=setTimeout(()=>{throw Error(`Rendering Timeout: Prompt render took too long, this is likely due to a long-running operation being performed during the render phase. Please ensure that any operations performed during rendering are optimized and do not block the event loop to prevent this error.`)},1e3);try{this.isInitial?this.cursorHidden&&this.output.write(c.hide):(this.consoleStatus&&this.output.write(c.down(v(this.consoleStatus).split(/\r?\n/).map(e=>Math.ceil(e.length/this.output.columns)).reduce((e,t)=>e+t)-1)+h(this.consoleStatus,this.output.columns)),this.output.write(h(this.consoleOutput,this.output.columns))),this.consoleOutput=` ${this.isSubmitted?_.prompt.icon.submitted(`✔`):this.isCancelled?_.prompt.icon.cancelled(`🛇`):this.isError?_.prompt.icon.error(`✘`):_.prompt.icon.active(`✱`)} ${this.isCompleted?_.prompt.message.submitted(this.message):g(_.prompt.message.active(this.message))} ${m.app.divider.tertiary(this.isCompleted?s?`...`:`…`:s?`»`:`›`)} `,this.consoleOutput+=this.onRender(),this.isInitial&&=!1,this.output.write(u.line+c.to(0)+this.consoleOutput+(this.status?c.save+this.status+c.restore+c.move(this.displayValue.length-(this.displayValue.length-this.cursor)-this.displayValue.length,0):c.save)),this.consoleStatus=this.status}finally{clearTimeout(e)}}keypress(e,t){if(!this.#i)return this.#n||=!0,this.onKeyPress(e,t)}};const D=Symbol(`shell-shock:prompts:cancel`);function O(e){return e===D}var k=class extends E{#e=!1;initialValue=``;constructor(e){super(e),e.initialValue&&(this.initialValue=e.initialValue),this.initialValue&&this.changeValue(this.initialValue),this.cursor=0,this.sync(),this.last()}onKeyPress(e,t){let n=this.getAction(t);if(n&&typeof this[n]==`function`)return this[n]();if(!e||e.length===0)return this.bell();this.changeValue(`${this.displayValue.slice(0,this.cursor)}${e}${this.displayValue.slice(this.cursor)}`),this.sync()}onChange(e){this.#e=!1,this.cursor=this.displayValue.slice(0,this.cursor).length+1}reset(){this.cursor=Number(!!this.initialValue),super.reset()}async checkValidations(){await super.checkValidations(this.value),this.#e=this.isError}next(){this.changeValue(this.initialValue),this.cursor=this.displayValue.length,this.sync()}first(){this.cursor=0,this.sync()}last(){this.cursor=this.displayValue.length,this.sync()}left(){if(this.cursor<=0)return this.bell();this.moveCursor(-1),this.sync()}right(){if(this.cursor>=this.displayValue.length)return this.bell();this.moveCursor(1),this.sync()}onRender(){return this.isPlaceholder?_.prompt.input.disabled(this.displayValue):this.#e?_.prompt.input.error(this.displayValue):this.isSubmitted?_.prompt.input.submitted(this.displayValue):this.isCancelled?_.prompt.input.cancelled(this.displayValue):g(_.prompt.input.active(this.displayValue))}};function A(e){return new Promise((t,n)=>{let r=new k(e);r.on(`state`,t=>e.onState?.(t)),r.on(`submit`,e=>t(e)),r.on(`cancel`,e=>t(D))})}var j=class extends E{initialValue;optionsPerPage=8;options=[];cursorHidden=!0;constructor(e){super(e),this.initialValue=e.initialValue?e.initialValue:void 0,this.options=e.options.map((e,t)=>{let n={};if(typeof e==`string`)n={label:e,value:e,selected:!1,disabled:!1};else if(typeof e==`object`)n=e;else throw Error(`Invalid option provided to SelectPrompt at index #${t}`);return{label:String(n.value)||``,...n,description:n.description,selected:!!n.selected||this.initialValue!==void 0&&n.value===this.initialValue,disabled:!!n.disabled}}).sort((e,t)=>e.label.localeCompare(t.label)).map((e,t)=>({...e,index:t}));let t=this.options.findIndex(e=>e.selected);t>-1&&(this.cursor=t,this.options[this.cursor]&&(this.initialValue=this.options[this.cursor].value)),this.initialValue===void 0&&this.options.length>0&&this.options[0]&&(this.initialValue=this.options[0].value),e.optionsPerPage&&(this.optionsPerPage=e.optionsPerPage),this.sync()}get selectedOption(){return this.options.find(e=>e.value===this.value)??null}getAction(e){let t=super.getAction(e);return t||(e.name===`j`&&(t=`down`),e.name===`k`&&(t=`up`)),t||!1}reset(){this.moveCursor(0),super.reset()}async submit(){this.selectedOption?.disabled?this.bell():await super.submit()}next(){this.moveCursor((this.cursor+1)%this.options.length),this.sync()}moveCursor(e){this.cursor=e,this.changeValue(this.options[e].value),this.sync()}first(){this.moveCursor(0),this.sync()}last(){this.moveCursor(this.options.length-1),this.sync()}first_2(){this.cursor=0,this.sync()}up(){this.cursor===0?this.moveCursor(this.options.length-1):this.moveCursor(this.cursor-1),this.sync()}down(){this.cursor===this.options.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.sync()}onRender(){let e=Math.max(...this.options.map(e=>e.label?.length||0))+2,t=Math.max(Math.min(this.options.length-this.optionsPerPage,this.cursor-Math.floor(this.optionsPerPage/2)),0),n=Math.min(t+this.optionsPerPage,this.options.length),r=``;if(this.isCompleted)this.displayValue=this.selectedOption?.label||String(this.value),r+=super.onRender();else{r+=`
8
+ `;for(let i=t;i<n;i++)r+=`${this.options[i].disabled?this.cursor===i?g(_.prompt.input.disabled(`>`)):i===t?m.app.divider.tertiary(`↑`):i===n-1?m.app.divider.tertiary(`↓`):` `:this.cursor===i?g(_.prompt.input.active(`>`)):i===t?m.app.divider.tertiary(`↑`):i===n-1?m.app.divider.tertiary(`↓`):` `} ${this.options[i].disabled?this.cursor===i?g(_.prompt.input.disabled(this.options[i].icon?o(`${this.options[i].icon} `):``)):l(_.prompt.input.disabled(this.options[i].icon?`${this.options[i].icon} `:``)):this.cursor===i?g(_.prompt.input.active(this.options[i].icon?o(`${this.options[i].icon} `):``)):_.prompt.input.inactive(this.options[i].icon?`${this.options[i].icon} `:``)}${this.options[i].disabled?this.cursor===i?g(o(_.prompt.input.disabled(this.options[i].label))):l(_.prompt.input.disabled(this.options[i].label)):this.cursor===i?g(o(_.prompt.input.active(this.options[i].label))):_.prompt.input.inactive(this.options[i].label)} ${` `.repeat(Math.max(0,e-this.options[i].label.length-(this.options[i].icon?this.options[i].icon.length+1:0)))}${this.options[i].description&&this.cursor===i?d(_.prompt.description.active(this.options[i].description)):``} \n`}return r}};function M(e){return new Promise((t,n)=>{let r=new j(e);r.on(`state`,t=>e.onState?.(t)),r.on(`submit`,e=>t(e)),r.on(`cancel`,e=>t(D))})}function N(e=72e5){return process.stdin.setRawMode(!0),new Promise(t=>process.stdin.once(`data`,()=>{e>=0&&setTimeout(()=>{process.stdin.setRawMode(!1),t(void 0)},e),process.stdin.setRawMode(!1),t(void 0)}))}export{C as a,N as i,M as n,w as o,A as r,O as t};
@@ -0,0 +1,8 @@
1
+ import{F as e,H as t,L as n,M as r,N as i,R as a,T as o,Y as s,a as c,b as l,c as u,g as d,j as f,k as p,n as m,r as h,t as g,w as _,x as v,y}from"./console-DGNAF461.mjs";import b from"node:events";import{createInterface as x,emitKeypressEvents as S}from"node:readline";const C=[`▄█████ ▄▄ ▄▄ ▄▄▄▄ ▄▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ██ ██ ██ `,`██ ▀███▀ ██▀▀▀ ██ ██▀██ ███▄██ ██▄▄ ██ ██ ██ `,`▀█████ █ ▀████ ██▄▄▄ ▀███▀ ██ ▀██ ██▄▄▄ ▀████▀ ██ `];async function w(o=500){if(t().get(`is-banner-displayed`)||n(`no-banner`)||n(`hide-banner`)||i)return;t().set(`is-banner-displayed`,!0),p(``),p(m.banner.outline.primary(`┏`)+m.banner.outline.primary(`━`.repeat(6))+` `+_.banner.header.primary(`⬤`)+` `+m.banner.outline.primary(`━`)+` `+g(_.banner.header.primary(`Cyclone CLI v0.6.37`))+` `+m.banner.outline.primary(`━`.repeat(Math.max(f().columns-33,0)))+m.banner.outline.primary(`┓`),{consoleFn:console.log});let s=Math.max(...C.map(e=>v(e).length))>Math.max(f().columns+30,20)?`Cyclone UI`:`\n${C.join(`
2
+ `)}\n`;y(s,Math.max(f().columns-30,20)).forEach(e=>{p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(e).length+2))/2),0))+g(_.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((f().columns-(v(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),y(g(_.banner.description.primary(`🌀 Tamagui based design components used by Storm Software. Like shadcn/ui, the components are copied into other repositories via the Cyclone CLI.`)),Math.max(60>f().columns/2?f().columns-6:f().columns-30,20)).forEach(e=>{p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(e).length+2))/2),0))+_.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((f().columns-(v(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(f().columns-2,0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),p(m.banner.outline.primary(`┗`)+m.banner.outline.primary(`━`.repeat(Math.max(f().columns-32,0)))+` `+g(_.banner.footer.primary(`https://cyclone-ui.com`))+` `+m.banner.outline.primary(`━`.repeat(6))+m.banner.outline.primary(`┛`),{consoleFn:console.log}),p(``),r&&!a()&&await e(o)}function T(e){return e}var E=class extends b{config;#e;#t;#n=!1;#r=!1;#i=!1;input=process.stdin;output=process.stdout;message=``;description=``;errorMessage=null;defaultErrorMessage=`An invalid value was provided`;isSubmitted=!1;isCancelled=!1;isInitial=!0;consoleOutput=``;consoleStatus=``;displayValue=``;validate=()=>!0;parse=e=>e;format=e=>String(e);mask=T;maskCompleted=this.mask;cursor=0;cursorHidden=!1;constructor(e){super(),this.config=e,e.input&&(this.input=e.input),e.output&&(this.output=e.output),e.defaultErrorMessage&&(this.defaultErrorMessage=e.defaultErrorMessage),e.description&&(this.description=e.description),e.validate&&(this.validate=e.validate),e.parse&&(this.parse=e.parse.bind(this)),e.format&&(this.format=e.format.bind(this)),e.maskCompleted&&(this.maskCompleted=e.maskCompleted),e.mask&&(this.mask=e.mask),e.timeout!==void 0&&!Number.isNaN(e.timeout)&&setTimeout(()=>{this.isCompleted||this.cancel()},e.timeout),this.message=e.message,this.#e=x({input:this.input,escapeCodeTimeout:50}),S(this.input,this.#e),this.input.isTTY&&this.input.setRawMode(!0),this.input.on(`keypress`,this.keypress.bind(this))}[Symbol.dispose](){this.close()}get value(){return this.#t||this.initialValue}get isError(){return!!this.errorMessage}get isSelect(){return!1}get isCompleted(){return this.isCancelled||this.isSubmitted}get isPlaceholder(){return this.displayValue===this.format(this.initialValue)&&!this.#r||!this.#n}get status(){return this.isSubmitted?``:` \n ${d(this.isError?_.prompt.description.error(y(this.errorMessage,`3/4`).join(`
3
+ `)):this.isCancelled?_.prompt.description.cancelled(y(`Input was cancelled by user`,`3/4`).join(`
4
+ `)):this.description?_.prompt.description.active(y(this.description,`3/4`).join(`
5
+ `)):``)}`}get isCursorAtStart(){return this.cursor<=0||this.isPlaceholder&&this.cursor<=1}get isCursorAtEnd(){return this.cursor>=this.displayValue.length||this.isPlaceholder&&this.cursor>=this.displayValue.length-1}changeValue(e){let t=this.value,n=e;n=e===void 0||e===``?this.initialValue:e,this.displayValue=this.mask(this.format(n)),this.#t=n,!this.#r&&this.#t!==this.initialValue&&(this.#r=!0),this.onChange(t),setTimeout(()=>{Promise.resolve(this.checkValidations(n)).then(()=>this.sync())},0),this.sync()}sync(){this.emit(`state`,{value:this.value,errorMessage:this.errorMessage,isError:this.isError,isSubmitted:this.isSubmitted,isCancelled:this.isCancelled,isCompleted:this.isCompleted}),this.render()}bell(){this.output.write(`\x07`)}onRender(){return this.isPlaceholder?_.prompt.input.disabled(this.displayValue):this.isError?_.prompt.input.error(this.displayValue):this.isSubmitted?_.prompt.input.submitted(this.maskCompleted(this.displayValue)):this.isCancelled?_.prompt.input.cancelled(this.maskCompleted(this.displayValue)):g(_.prompt.input.active(this.displayValue))}onChange(e){}onKeyPress(e,t){let n=this.getAction(t);n?typeof this[n]==`function`&&this[n](t):this.bell()}async close(){this.#i||=(this.output.write(c.show),this.input.removeListener(`keypress`,this.keypress),this.input.isTTY&&this.input.setRawMode(!1),this.#e.close(),this.emit(this.isSubmitted?`submit`:`cancel`,this.value),!0)}async checkValidations(e){let t=await this.validate(e);this.errorMessage=typeof t==`string`?t:typeof t==`boolean`?t?null:this.defaultErrorMessage:null}getAction(e){if(e.meta&&e.name!==`escape`)return!1;let t;return e.ctrl&&(e.name===`a`&&(t=`first`),e.name===`c`&&(t=`cancel`),e.name===`d`&&(t=`cancel`),e.name===`e`&&(t=`last`),e.name===`g`&&(t=`reset`)),e.name===`return`&&(t=`submit`),e.name===`enter`&&(t=`submit`),e.name===`backspace`&&(t=`backspace`),e.name===`delete`&&(t=`delete`),e.name===`cancel`&&(t=`cancel`),e.name===`escape`&&(t=`cancel`),e.name===`tab`&&(t=`next`),e.name===`pagedown`&&(t=`nextPage`),e.name===`pageup`&&(t=`prevPage`),e.name===`home`&&(t=`home`),e.name===`end`&&(t=`end`),e.name===`up`&&(t=`up`),e.name===`down`&&(t=`down`),e.name===`right`&&(t=`right`),e.name===`left`&&(t=`left`),t||!1}moveCursor(e){this.cursor+e<0?this.cursor=0:this.cursor+e>this.displayValue.length?this.cursor=this.displayValue.length:this.cursor+=e}backspace(){if(this.isCursorAtStart||this.displayValue===``)return this.bell();let e=this.isCursorAtEnd&&this.displayValue.length===this.cursor;this.changeValue(this.parse(`${this.displayValue.slice(0,this.cursor-1)}${this.displayValue.slice(this.cursor)}`)),this.moveCursor(e?-1:-2),this.sync()}delete(){if(this.isCursorAtEnd)return this.bell();this.changeValue(this.parse(`${this.displayValue.slice(0,this.cursor)}${this.displayValue.slice(this.cursor+1)}`)),this.isCursorAtStart||this.moveCursor(-1),this.sync()}reset(){this.changeValue(this.initialValue),this.cursor=0,this.errorMessage=null,this.isCancelled=!1,this.isSubmitted=!1,this.sync()}cancel(){this.errorMessage=null,this.isCancelled=!0,this.isSubmitted=!1,this.sync(),this.output.write(`
6
+ `),this.close()}async submit(){this.cursor=this.displayValue.length,await this.checkValidations(this.value),this.isError?(this.sync(),this.bell()):(this.isSubmitted=!0,this.isCancelled=!1,this.sync(),this.output.write(`
7
+ `),this.close())}render(){if(this.#i)return;let e=setTimeout(()=>{throw Error(`Rendering Timeout: Prompt render took too long, this is likely due to a long-running operation being performed during the render phase. Please ensure that any operations performed during rendering are optimized and do not block the event loop to prevent this error.`)},1e3);try{this.isInitial?this.cursorHidden&&this.output.write(c.hide):(this.consoleStatus&&this.output.write(c.down(v(this.consoleStatus).split(/\r?\n/).map(e=>Math.ceil(e.length/this.output.columns)).reduce((e,t)=>e+t)-1)+h(this.consoleStatus,this.output.columns)),this.output.write(h(this.consoleOutput,this.output.columns))),this.consoleOutput=` ${this.isSubmitted?_.prompt.icon.submitted(`✔`):this.isCancelled?_.prompt.icon.cancelled(`🛇`):this.isError?_.prompt.icon.error(`✘`):_.prompt.icon.active(`✱`)} ${this.isCompleted?_.prompt.message.submitted(this.message):g(_.prompt.message.active(this.message))} ${m.app.divider.tertiary(this.isCompleted?s?`...`:`…`:s?`»`:`›`)} `,this.consoleOutput+=this.onRender(),this.isInitial&&=!1,this.output.write(u.line+c.to(0)+this.consoleOutput+(this.status?c.save+this.status+c.restore+c.move(this.displayValue.length-(this.displayValue.length-this.cursor)-this.displayValue.length,0):c.save)),this.consoleStatus=this.status}finally{clearTimeout(e)}}keypress(e,t){if(!this.#i)return this.#n||=!0,this.onKeyPress(e,t)}};const D=Symbol(`shell-shock:prompts:cancel`);function O(e){return e===D}var k=class extends E{#e=!1;initialValue=``;constructor(e){super(e),e.initialValue&&(this.initialValue=e.initialValue),this.initialValue&&this.changeValue(this.initialValue),this.cursor=0,this.sync(),this.last()}onKeyPress(e,t){let n=this.getAction(t);if(n&&typeof this[n]==`function`)return this[n]();if(!e||e.length===0)return this.bell();this.changeValue(`${this.displayValue.slice(0,this.cursor)}${e}${this.displayValue.slice(this.cursor)}`),this.sync()}onChange(e){this.#e=!1,this.cursor=this.displayValue.slice(0,this.cursor).length+1}reset(){this.cursor=Number(!!this.initialValue),super.reset()}async checkValidations(){await super.checkValidations(this.value),this.#e=this.isError}next(){this.changeValue(this.initialValue),this.cursor=this.displayValue.length,this.sync()}first(){this.cursor=0,this.sync()}last(){this.cursor=this.displayValue.length,this.sync()}left(){if(this.cursor<=0)return this.bell();this.moveCursor(-1),this.sync()}right(){if(this.cursor>=this.displayValue.length)return this.bell();this.moveCursor(1),this.sync()}onRender(){return this.isPlaceholder?_.prompt.input.disabled(this.displayValue):this.#e?_.prompt.input.error(this.displayValue):this.isSubmitted?_.prompt.input.submitted(this.displayValue):this.isCancelled?_.prompt.input.cancelled(this.displayValue):g(_.prompt.input.active(this.displayValue))}};function A(e){return new Promise((t,n)=>{let r=new k(e);r.on(`state`,t=>e.onState?.(t)),r.on(`submit`,e=>t(e)),r.on(`cancel`,e=>t(D))})}var j=class extends E{initialValue;optionsPerPage=8;options=[];cursorHidden=!0;constructor(e){super(e),this.initialValue=e.initialValue?e.initialValue:void 0,this.options=e.options.map((e,t)=>{let n={};if(typeof e==`string`)n={label:e,value:e,selected:!1,disabled:!1};else if(typeof e==`object`)n=e;else throw Error(`Invalid option provided to SelectPrompt at index #${t}`);return{label:String(n.value)||``,...n,description:n.description,selected:!!n.selected||this.initialValue!==void 0&&n.value===this.initialValue,disabled:!!n.disabled}}).sort((e,t)=>e.label.localeCompare(t.label)).map((e,t)=>({...e,index:t}));let t=this.options.findIndex(e=>e.selected);t>-1&&(this.cursor=t,this.options[this.cursor]&&(this.initialValue=this.options[this.cursor].value)),this.initialValue===void 0&&this.options.length>0&&this.options[0]&&(this.initialValue=this.options[0].value),e.optionsPerPage&&(this.optionsPerPage=e.optionsPerPage),this.sync()}get selectedOption(){return this.options.find(e=>e.value===this.value)??null}getAction(e){let t=super.getAction(e);return t||(e.name===`j`&&(t=`down`),e.name===`k`&&(t=`up`)),t||!1}reset(){this.moveCursor(0),super.reset()}async submit(){this.selectedOption?.disabled?this.bell():await super.submit()}next(){this.moveCursor((this.cursor+1)%this.options.length),this.sync()}moveCursor(e){this.cursor=e,this.changeValue(this.options[e].value),this.sync()}first(){this.moveCursor(0),this.sync()}last(){this.moveCursor(this.options.length-1),this.sync()}first_2(){this.cursor=0,this.sync()}up(){this.cursor===0?this.moveCursor(this.options.length-1):this.moveCursor(this.cursor-1),this.sync()}down(){this.cursor===this.options.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.sync()}onRender(){let e=Math.max(...this.options.map(e=>e.label?.length||0))+2,t=Math.max(Math.min(this.options.length-this.optionsPerPage,this.cursor-Math.floor(this.optionsPerPage/2)),0),n=Math.min(t+this.optionsPerPage,this.options.length),r=``;if(this.isCompleted)this.displayValue=this.selectedOption?.label||String(this.value),r+=super.onRender();else{r+=`
8
+ `;for(let i=t;i<n;i++)r+=`${this.options[i].disabled?this.cursor===i?g(_.prompt.input.disabled(`>`)):i===t?m.app.divider.tertiary(`↑`):i===n-1?m.app.divider.tertiary(`↓`):` `:this.cursor===i?g(_.prompt.input.active(`>`)):i===t?m.app.divider.tertiary(`↑`):i===n-1?m.app.divider.tertiary(`↓`):` `} ${this.options[i].disabled?this.cursor===i?g(_.prompt.input.disabled(this.options[i].icon?o(`${this.options[i].icon} `):``)):l(_.prompt.input.disabled(this.options[i].icon?`${this.options[i].icon} `:``)):this.cursor===i?g(_.prompt.input.active(this.options[i].icon?o(`${this.options[i].icon} `):``)):_.prompt.input.inactive(this.options[i].icon?`${this.options[i].icon} `:``)}${this.options[i].disabled?this.cursor===i?g(o(_.prompt.input.disabled(this.options[i].label))):l(_.prompt.input.disabled(this.options[i].label)):this.cursor===i?g(o(_.prompt.input.active(this.options[i].label))):_.prompt.input.inactive(this.options[i].label)} ${` `.repeat(Math.max(0,e-this.options[i].label.length-(this.options[i].icon?this.options[i].icon.length+1:0)))}${this.options[i].description&&this.cursor===i?d(_.prompt.description.active(this.options[i].description)):``} \n`}return r}};function M(e){return new Promise((t,n)=>{let r=new j(e);r.on(`state`,t=>e.onState?.(t)),r.on(`submit`,e=>t(e)),r.on(`cancel`,e=>t(D))})}function N(e=72e5){return process.stdin.setRawMode(!0),new Promise(t=>process.stdin.once(`data`,()=>{e>=0&&setTimeout(()=>{process.stdin.setRawMode(!1),t(void 0)},e),process.stdin.setRawMode(!1),t(void 0)}))}export{C as a,N as i,M as n,w as o,A as r,O as t};