@cyclone-ui/cli 0.6.7 → 0.6.8

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 (73) hide show
  1. package/dist/{add-EZPG36jY.mjs → add-C7xs8ga1.mjs} +1 -1
  2. package/dist/add.mjs +1 -1
  3. package/dist/{analyze-a11y-B_wtRrsb.mjs → analyze-a11y-B-z4ZceR.mjs} +1 -1
  4. package/dist/analyze-a11y.mjs +1 -1
  5. package/dist/bin.mjs +7 -7
  6. package/dist/{build-DjpkjDN9.mjs → build--rZLk8sK.mjs} +1 -1
  7. package/dist/build.mjs +1 -1
  8. package/dist/{changelog-cdMYhqC0.mjs → changelog-2-b0wiro.mjs} +1 -1
  9. package/dist/changelog.mjs +8 -1
  10. package/dist/completions-bash-config.mjs +1 -1
  11. package/dist/completions-bash-script.mjs +1 -1
  12. package/dist/completions-fish-config.mjs +1 -1
  13. package/dist/completions-fish-script.mjs +1 -1
  14. package/dist/completions-powershell-config.mjs +1 -1
  15. package/dist/completions-powershell-script.mjs +1 -1
  16. package/dist/completions-zsh-config.mjs +1 -1
  17. package/dist/completions-zsh-script.mjs +1 -1
  18. package/dist/{config-LbchzPcu.mjs → config-BUAzFE7e.mjs} +1 -1
  19. package/dist/{config-zidXG3wb.mjs → config-C-02c2Hu.mjs} +1 -1
  20. package/dist/{config-CKm7ZRaa.mjs → config-DGm2nVnx.mjs} +1 -1
  21. package/dist/{config-BSDNcMeQ.mjs → config-Zcx6Dt6D.mjs} +1 -1
  22. package/dist/{console---4Wg5BT.mjs → console-C1e2R5_C.mjs} +1 -1
  23. package/dist/{create-tokens-DL51DC9w.mjs → create-tokens-CzozxWs0.mjs} +1 -1
  24. package/dist/create-tokens.mjs +1 -1
  25. package/dist/design-system-D_9RQMxe.mjs +1 -0
  26. package/dist/{diff-35ihK9zS.mjs → diff-D7FbUre7.mjs} +1 -1
  27. package/dist/diff.mjs +1 -1
  28. package/dist/{docs-C31c53yf.mjs → docs-MvroB8dy.mjs} +1 -1
  29. package/dist/docs.mjs +1 -1
  30. package/dist/{guidelines-PRTlprFp.mjs → guidelines-DnWI5CL9.mjs} +1 -1
  31. package/dist/guidelines.mjs +1 -1
  32. package/dist/help.mjs +1 -1
  33. package/dist/{info-DyQAD6qn.mjs → info-Cvn52o6Z.mjs} +1 -1
  34. package/dist/info.mjs +1 -1
  35. package/dist/{init-DJRiXnuv.mjs → init-Buu8Es0q.mjs} +1 -1
  36. package/dist/init.mjs +1 -1
  37. package/dist/{list-components-B6PwFPrL.mjs → list-components-BnHVwhrE.mjs} +1 -1
  38. package/dist/list-components.mjs +1 -1
  39. package/dist/{list-fonts-D_SJ8Ps5.mjs → list-fonts-DxTPFwIq.mjs} +1 -1
  40. package/dist/list-fonts.mjs +1 -1
  41. package/dist/{list-icons-Dv0X2ICO.mjs → list-icons-BpoiUbj8.mjs} +1 -1
  42. package/dist/list-icons.mjs +1 -1
  43. package/dist/{list-tokens-BfyDyn5X.mjs → list-tokens-DrZKmrHX.mjs} +1 -1
  44. package/dist/list-tokens.mjs +1 -1
  45. package/dist/{mcp-DJv5Cwz3.mjs → mcp-Dhd0BwRK.mjs} +1 -1
  46. package/dist/mcp.mjs +1 -1
  47. package/dist/{plan-DSl1WU8P.mjs → plan-DkJJYJYi.mjs} +1 -1
  48. package/dist/plan.mjs +1 -1
  49. package/dist/{prompts-ClJNk2wq.mjs → prompts-DNUEdt_q.mjs} +1 -1
  50. package/dist/{registry-AEeg4s_y.mjs → registry-BqMCMG74.mjs} +1 -1
  51. package/dist/registry-validate.mjs +1 -1
  52. package/dist/{script-B5c2RcFH.mjs → script-CH1syTWr.mjs} +1 -1
  53. package/dist/{script-B3x8_j_g.mjs → script-CblrVZQo.mjs} +1 -1
  54. package/dist/{script-pXC2XdU6.mjs → script-DVVGXQK8.mjs} +1 -1
  55. package/dist/{script-BJyXXD6q.mjs → script-vTW7sqH6.mjs} +1 -1
  56. package/dist/{search-BIx17BFK.mjs → search-CMysZst7.mjs} +1 -1
  57. package/dist/{search-components-DfEsvR4k.mjs → search-components-ILiIT_w4.mjs} +1 -1
  58. package/dist/search-components.mjs +1 -1
  59. package/dist/{search-fonts-JFPm0AB0.mjs → search-fonts-DcjT30cd.mjs} +1 -1
  60. package/dist/search-fonts.mjs +1 -1
  61. package/dist/{search-icons-BvUwM5-z.mjs → search-icons-BHU72umf.mjs} +1 -1
  62. package/dist/search-icons.mjs +1 -1
  63. package/dist/{search-tokens-0w0N5g6_.mjs → search-tokens-DMEml5i8.mjs} +1 -1
  64. package/dist/search-tokens.mjs +1 -1
  65. package/dist/search.mjs +1 -1
  66. package/dist/{update-CRau55-B.mjs → update-Mhw-b_Ey.mjs} +1 -1
  67. package/dist/{update-DePHve-o.mjs → update-OQpH8dIx.mjs} +1 -1
  68. package/dist/update.mjs +1 -1
  69. package/dist/{validate-B2ZJJjCs.mjs → validate-DmjyDhL9.mjs} +1 -1
  70. package/dist/{view-BpUHLT1a.mjs → view-CIxh_45-.mjs} +1 -1
  71. package/dist/view.mjs +1 -1
  72. package/package.json +4 -4
  73. package/dist/design-system-kTSgsdu4.mjs +0 -1
@@ -1 +1 @@
1
- import{D as e,S as t,h as n,t as r,x as i}from"./console---4Wg5BT.mjs";function a(){e(``),e(r(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`add`)} ${t.usage.args(`<components...>`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`add`)} ${t.usage.options(`[options]`)} ${t.usage.args(`<components...>`)}`),{padding:0}),e(``),e(r(t.heading.secondary(`Options:`))),i([[{value:t.body.primary(`--all`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Add every available component.`),align:`left`,border:`none`}],[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:t.body.primary(`--diff`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the changes as a diff without writing files.`),align:`left`,border:`none`}],[{value:t.body.primary(`--dry-run`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Preview changes without writing files.`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--overwrite`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Overwrite existing files.`),align:`left`,border:`none`}],[{value:t.body.primary(`--path <path>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Override the configured component output path.`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--registry <registry>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Override the configured registry API URL.`),align:`left`,border:`none`}],[{value:t.body.primary(`--silent`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Mute non-essential output.`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--view`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show resolved file contents without writing files.`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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`}]]),e(``),e(t.body.tertiary(`More information can be found in the Add command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/add`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{a as t};
1
+ import{D as e,S as t,h as n,t as r,x as i}from"./console-C1e2R5_C.mjs";function a(){e(``),e(r(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`add`)} ${t.usage.args(`<components...>`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`add`)} ${t.usage.options(`[options]`)} ${t.usage.args(`<components...>`)}`),{padding:0}),e(``),e(r(t.heading.secondary(`Options:`))),i([[{value:t.body.primary(`--all`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Add every available component.`),align:`left`,border:`none`}],[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:t.body.primary(`--diff`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the changes as a diff without writing files.`),align:`left`,border:`none`}],[{value:t.body.primary(`--dry-run`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Preview changes without writing files.`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--overwrite`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Overwrite existing files.`),align:`left`,border:`none`}],[{value:t.body.primary(`--path <path>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Override the configured component output path.`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--registry <registry>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Override the configured registry API URL.`),align:`left`,border:`none`}],[{value:t.body.primary(`--silent`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Mute non-essential output.`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--view`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show resolved file contents without writing files.`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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`}]]),e(``),e(t.body.tertiary(`More information can be found in the Add command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/add`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{a as t};
package/dist/add.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import{A as e,B as t,D as n,E 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---4Wg5BT.mjs";import{a as b}from"./prompts-ClJNk2wq.mjs";import{t as x}from"./update-DePHve-o.mjs";import{a as S}from"./config-D4XQ3gm9.mjs";import{n as C}from"./registry-C95vaVW8.mjs";import{i as w,n as T,r as E,t as D}from"./components-CL5K9O-8.mjs";import{t as O}from"./add-EZPG36jY.mjs";import{resolve as k}from"node:path";async function A(r=500){if(t().get(`is-banner-displayed`)||i(`no-banner`)||i(`hide-banner`)||m)return;t().set(`is-banner-displayed`,!0),n(``),n(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.6`))+` `+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-32,0)))+g.banner.outline.primary(`┓`),{consoleFn:console.log});let a=Math.max(...b.map(e=>v(e).length))>Math.max(h().columns+30,20)?`Cyclone User Interface`:`\n${b.join(`
1
+ import{A as e,B as t,D as n,E 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-C1e2R5_C.mjs";import{a as b}from"./prompts-DNUEdt_q.mjs";import{t as x}from"./update-OQpH8dIx.mjs";import{a as S}from"./config-D4XQ3gm9.mjs";import{n as C}from"./registry-C95vaVW8.mjs";import{i as w,n as T,r as E,t as D}from"./components-CL5K9O-8.mjs";import{t as O}from"./add-C7xs8ga1.mjs";import{resolve as k}from"node:path";async function A(r=500){if(t().get(`is-banner-displayed`)||i(`no-banner`)||i(`hide-banner`)||m)return;t().set(`is-banner-displayed`,!0),n(``),n(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.7`))+` `+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-32,0)))+g.banner.outline.primary(`┓`),{consoleFn:console.log});let a=Math.max(...b.map(e=>v(e).length))>Math.max(h().columns+30,20)?`Cyclone User Interface`:`\n${b.join(`
2
2
  `)}\n`;p(a,Math.max(h().columns-30,20)).forEach(e=>{n(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})}),n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(`Add`).length+2))/2),0))+_(u.banner.command.primary(`Add`))+` `.repeat(Math.max(Math.ceil((h().columns-(v(`Add`).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),p(_(u.banner.description.primary(`Adds a new component to the project.`)),Math.max(60>h().columns/2?h().columns-6:h().columns-30,20)).forEach(e=>{n(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})}),n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(h().columns-2,0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),n(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}),n(``),e&&!o()&&await l(r)}async function j(e,t=[]){let n=k(e.cwd??process.cwd()),i=await S(n),a=C(e.registry??i.registry),o=e.all?(await a.components.list.query()).map(e=>e.name):t;if(o.length===0)throw Error(`Provide at least one component or use --all.`);let s=e.dryRun||e.diff||e.view,c=await T(a,i,o,{root:n,path:e.path,overwrite:e.overwrite,dryRun:s});e.diff?r(E(c,n)):e.view?r(c.files.map(e=>`// ${e.path}\n${e.content}`).join(`
3
3
 
4
4
  `)):e.silent||r(w(c,n)),await D(i,c,{root:n,path:e.path,overwrite:e.overwrite,dryRun:s})}async function M(e=c()){let t={...y()};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(`cwd=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`)/^--?(cwd)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.cwd=r.replace(/^--?(cwd)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.cwd=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`overwrite=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`overwrite`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`overwrite=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`overwrite`){if(/^--?(overwrite)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(overwrite)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.overwrite=!!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 t.overwrite=!0}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`all=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`all`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`all=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`all`){if(/^--?(all)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(all)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.all=!!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 t.all=!0}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`path=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`path`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`path=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`path`)/^--?(path)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.path=r.replace(/^--?(path)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.path=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`dryrun=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`dryrun`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`dryrun=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`dryrun`){if(/^--?(dryrun)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(dryrun)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.dryRun=!!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 t.dryRun=!0}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`diff=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`diff`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`diff=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`diff`){if(/^--?(diff)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(diff)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.diff=!!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 t.diff=!0}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`view=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`view`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`view=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`view`){if(/^--?(view)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(view)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.view=!!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 t.view=!0}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`silent=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`silent`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`silent=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`silent`){if(/^--?(silent)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(silent)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.silent=!!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 t.silent=!0}else(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`registry=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`registry=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`)&&(/^--?(registry)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.registry=r.replace(/^--?(registry)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.registry=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)))}let r=Math.max(0,e.slice(2).findIndex(e=>e.startsWith(`-`)&&/^(cwd|overwrite|all|path|dryrun|diff|view|silent|registry)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+2,l=r>2?2:Math.max(0,e.slice(r).findLastIndex(e=>e.startsWith(`-`)&&/^(cwd|overwrite|all|path|dryrun|diff|view|silent|registry)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+2,p=[];return l+0<e.length&&l+0!==r&&(p=e.slice(l+0,(r>l?r:e.length)-1).join(` `).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)),i(`quiet`)||(await A(),await x()),!o()&&!i(`quiet`)&&(n(``),(s||a||d.LOG_LEVEL===`debug`)&&n(u.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?O():f(`add`,[`add`],[t,p],j)}export{M as handler};
@@ -1 +1 @@
1
- import{D as e,S as t,h as n,p as r,t as i,x as a}from"./console---4Wg5BT.mjs";function o(){e(`${i(t.heading.secondary(`Tags: `))} ${t.tags.designSystem?t.tags.designSystem(r(` Design System `)):t.tags.default(r(` Design System `))} ${t.tags.accessibility?t.tags.accessibility(r(` Accessibility `)):t.tags.default(r(` Accessibility `))}`,{padding:0}),e(``),e(i(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`analyze-a11y`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``),e(i(t.heading.secondary(`Options:`))),a([[{value:t.body.primary(`--code <code>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Source code of a React component or JSX snippet to analyze.`),align:`left`,border:`none`}],[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--component-name <component_name>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Optional label for the component under review.`),align:`left`,border:`none`}],[{value:t.body.primary(`--context <context>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Optional usage context (for example "in a form" or "modal").`),align:`left`,border:`none`}],[{value:t.body.primary(`--file <file>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Path to a source file to analyze (alternative to --code).`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--pattern-analysis`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Run regex-based heuristics (unlabeled buttons, missing alt, …) (default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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`}]]),e(``),e(t.body.tertiary(`More information can be found in the Analyze Accessibility command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/analyze-a11y`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{o as t};
1
+ import{D as e,S as t,h as n,p as r,t as i,x as a}from"./console-C1e2R5_C.mjs";function o(){e(`${i(t.heading.secondary(`Tags: `))} ${t.tags.designSystem?t.tags.designSystem(r(` Design System `)):t.tags.default(r(` Design System `))} ${t.tags.accessibility?t.tags.accessibility(r(` Accessibility `)):t.tags.default(r(` Accessibility `))}`,{padding:0}),e(``),e(i(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`analyze-a11y`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``),e(i(t.heading.secondary(`Options:`))),a([[{value:t.body.primary(`--code <code>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Source code of a React component or JSX snippet to analyze.`),align:`left`,border:`none`}],[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--component-name <component_name>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Optional label for the component under review.`),align:`left`,border:`none`}],[{value:t.body.primary(`--context <context>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Optional usage context (for example "in a form" or "modal").`),align:`left`,border:`none`}],[{value:t.body.primary(`--file <file>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Path to a source file to analyze (alternative to --code).`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--pattern-analysis`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Run regex-based heuristics (unlabeled buttons, missing alt, …) (default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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`}]]),e(``),e(t.body.tertiary(`More information can be found in the Analyze Accessibility command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/analyze-a11y`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{o as t};
@@ -1,2 +1,2 @@
1
- import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console---4Wg5BT.mjs";import{a as y}from"./prompts-ClJNk2wq.mjs";import{t as b}from"./update-DePHve-o.mjs";import{t as x}from"./design-system-kTSgsdu4.mjs";import{t as S}from"./analyze-a11y-B_wtRrsb.mjs";import{readFile as C}from"node:fs/promises";import{analyzeA11y as w}from"@razorwind/shell-shock/runtime";async function T(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.6`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
1
+ import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-C1e2R5_C.mjs";import{a as y}from"./prompts-DNUEdt_q.mjs";import{t as b}from"./update-OQpH8dIx.mjs";import{t as x}from"./design-system-D_9RQMxe.mjs";import{t as S}from"./analyze-a11y-B-z4ZceR.mjs";import{readFile as C}from"node:fs/promises";import{analyzeA11y as w}from"@razorwind/shell-shock/runtime";async function T(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.7`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
2
2
  `)}\n`;f(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+g(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(`Analyze Accessibility`).length+2))/2),0))+g(l.banner.command.primary(`Analyze Accessibility`))+` `.repeat(Math.max(Math.ceil((m().columns-(_(`Analyze Accessibility`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),f(g(l.banner.description.primary(`Analyze a React/JSX source string (or file) for likely accessibility issues and hard-coded colors, suggesting the nearest design tokens for each color.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}function E(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function D(e){let t=e.code??(e.file?await C(e.file,`utf8`):void 0);t?E(w(x,t,{componentName:e.componentName,context:e.context,includePatternAnalysis:e.patternAnalysis!==!1})):(E({error:`Provide source code via --code or a path via --file.`}),process.exitCode=1)}async function O(e=s()){let t={...v(),patternAnalysis:!0};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(`code=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`code`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`code=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`code`)/^--?(code)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.code=r.replace(/^--?(code)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.code=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`file=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`file`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`file=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`file`)/^--?(file)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.file=r.replace(/^--?(file)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.file=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`componentname=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`componentname`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`componentname=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`componentname`)/^--?(componentname)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.componentName=r.replace(/^--?(componentname)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.componentName=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`context=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`context`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`context=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`context`)/^--?(context)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.context=r.replace(/^--?(context)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.context=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`patternanalysis=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`patternanalysis`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`patternanalysis=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`patternanalysis`){if(/^--?(patternanalysis)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(patternanalysis)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.patternAnalysis=!!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 t.patternAnalysis=!0}}return r(`quiet`)||(await T(),await b()),!a()&&!r(`quiet`)&&(n(``),(o||i||u.LOG_LEVEL===`debug`)&&n(l.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?S():d(`analyze-a11y`,[`analyze-a11y`],[t],D)}export{O as handler};
package/dist/bin.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import{A as e,B as t,D as n,F as r,H as i,I as a,L as o,N as s,O as c,R as l,S as u,_ as d,c as f,j as p,k as m,n as h,t as g,w as _,y as v}from"./console---4Wg5BT.mjs";import{a as y,n as b,o as x,r as S,t as C}from"./prompts-ClJNk2wq.mjs";import{a as w,i as T,n as E,o as D,r as O,s as k,t as A}from"./registry-AEeg4s_y.mjs";async function j(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.6`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
4
- `)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions`).length+2))/2),0))+g(u.banner.command.primary(`Completions`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands for generating shell completion scripts for Cyclone User Interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function M(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.6`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
5
- `)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions - Bash`).length+2))/2),0))+g(u.banner.command.primary(`Completions - Bash`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions - Bash`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands to setup bash completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function N(t=o()){let n=``;if(t.length>4&&t[4]&&(n=t[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-bash-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-bash-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await M();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(cyclone-ui completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(cyclone-ui completions bash config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(4)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-bash-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-bash-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return w()}async function P(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.6`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
6
- `)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions - Fish`).length+2))/2),0))+g(u.banner.command.primary(`Completions - Fish`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions - Fish`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands to setup Fish completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function F(t=o()){let n=``;if(t.length>4&&t[4]&&(n=t[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-fish-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-fish-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await P();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(cyclone-ui completions fish script)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(cyclone-ui completions fish config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(4)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-fish-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-fish-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return T()}async function I(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.6`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
7
- `)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions - PowerShell`).length+2))/2),0))+g(u.banner.command.primary(`Completions - PowerShell`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions - PowerShell`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands to setup PowerShell completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function L(t=o()){let n=``;if(t.length>4&&t[4]&&(n=t[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-powershell-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-powershell-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await I();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(cyclone-ui completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cyclone-ui completions powershell config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(4)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-powershell-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-powershell-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return O()}async function R(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.6`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
8
- `)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions - Zsh`).length+2))/2),0))+g(u.banner.command.primary(`Completions - Zsh`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions - Zsh`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands to setup Zsh completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function z(t=o()){let n=``;if(t.length>4&&t[4]&&(n=t[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-zsh-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-zsh-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await R();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(cyclone-ui completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(cyclone-ui completions zsh config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(4)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-zsh-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-zsh-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return E()}async function B(t=o()){let n=``;if(t.length>3&&t[3]&&(n=t[3]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`bash`)return N(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`zsh`)return z(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`powershell`)return L(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fish`)return F(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`bash`,`zsh`,`powershell`,`fish`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await j();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(cyclone-ui completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(cyclone-ui completions bash config)`,icon:`🖵`},{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(cyclone-ui completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(cyclone-ui completions zsh config)`,icon:`🖵`},{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(cyclone-ui completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cyclone-ui completions powershell config)`,icon:`🖵`},{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(cyclone-ui completions fish script)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(cyclone-ui completions fish config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(3)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`bash`)return N(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`zsh`)return z(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`powershell`)return L(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fish`)return F(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`bash`,`zsh`,`powershell`,`fish`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return D()}async function V(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.6`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
9
- `)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Registry Commands`).length+2))/2),0))+g(u.banner.command.primary(`Registry Commands`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Registry Commands`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`A collection of available Registry commands that are included in the Cyclone User Interface command-line application.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function H(t=o()){let n=``;if(t.length>3&&t[3]&&(n=t[3]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`validate`)return(await import(`./registry-validate.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`validate`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await V();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`registry`,`validate`],label:`Validate Registry`,description:`(cyclone-ui registry validate)`,icon:`✓`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(3)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`validate`)return(await import(`./registry-validate.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`validate`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return A()}let U=!1;const W=[],G=[];async function K(e={}){try{if(U)return;U=!0;let t=0;e.signal!==void 0&&e.signal>0||e.exception?t=128+(e.signal??1):(typeof process.exitCode==`number`||typeof process.exitCode==`string`)&&(t=process.exitCode),e.exception&&f({message:`A fatal error occured while running the application - please contact the Cyclone User Interface support team${e.exception&&typeof e.exception!=`symbol`?`: \n\n${typeof e.exception==`string`?e.exception:e.exception.message}`:`.`}`,...e.exception&&typeof e.exception==`object`?{stack:e.exception.stack}:{}});let n=(n=!1)=>{r(`quiet`)||_(`The Cyclone User Interface application exited ${e.exception?`early due to an exception`:`successfully`}${e.startDate?`. Total run time is ${Date.now()-e.startDate.getTime()>5e3?Math.floor((Date.now()-e.startDate.getTime())/1e3):Date.now()-e.startDate.getTime()} ${Date.now()-e.startDate.getTime()>5e3?`seconds`:`milliseconds`}`:``}...`),e.skipProcessExit||process.nextTick(()=>process.exit(t))};for(let e of G)e(t);if(!e.isSynchronous){let e=[],r=0;for(let[n,i]of W)r=Math.max(r,i),e.push(Promise.resolve(n(t)));let i=setTimeout(()=>{n(!0)},r);await Promise.all(e),clearTimeout(i)}n()}catch(t){f(`The exit process failed to complete${t?.message?` - ${t.message}`:``}. Please contact the Cyclone User Interface support team.`),e.skipProcessExit||process.nextTick(()=>process.exit(1))}}async function q(){if(r([`version`,`v`])){console.log(`0.6.6`);return}let t=o(),n=``;if(t.length>2&&t[2]&&(n=t[2]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`view`)return(await import(`./view.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`search`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`list`)return(await import(`./search.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`init`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`create`)return(await import(`./init.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`info`)return(await import(`./info.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`docs`)return(await import(`./docs.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`diff`)return(await import(`./diff.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`createtokens`)return(await import(`./create-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`build`)return(await import(`./build.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`add`)return(await import(`./add.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`changelog`)return(await import(`./changelog.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completions`)return B(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`update`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`upgrade`)return(await import(`./update.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchtokens`)return(await import(`./search-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listtokens`)return(await import(`./list-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchcomponents`)return(await import(`./search-components.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listcomponents`)return(await import(`./list-components.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchicons`)return(await import(`./search-icons.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listicons`)return(await import(`./list-icons.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchfonts`)return(await import(`./search-fonts.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listfonts`)return(await import(`./list-fonts.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`plan`)return(await import(`./plan.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`guidelines`)return(await import(`./guidelines.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`analyzea11y`)return(await import(`./analyze-a11y.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`mcp`)return(await import(`./mcp.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`)return H(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`help`)return(await import(`./help.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,/* @__PURE__ */ `view.search.list.init.create.info.docs.diff.create-tokens.build.add.changelog.completions.update.upgrade.search-tokens.list-tokens.search-components.list-components.search-icons.list-icons.search-fonts.list-fonts.plan.guidelines.analyze-a11y.mcp.registry.help`.split(`.`)).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await x();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`view`],label:`View Registry Components`,description:`(cyclone-ui view)`,icon:`◉`},{value:[`search`],label:`Search Registry`,description:`(cyclone-ui search)`,icon:`⌕`},{value:[`init`],label:`Initialize`,description:`(cyclone-ui init)`,icon:`🌀`},{value:[`info`],label:`Project Information`,description:`(cyclone-ui info)`,icon:`ⓘ`},{value:[`docs`],label:`Component Documentation`,description:`(cyclone-ui docs)`,icon:`🕮`},{value:[`diff`],label:`Diff Components`,description:`(cyclone-ui diff)`,icon:`±`},{value:[`create-tokens`],label:`Create Tokens`,description:`(cyclone-ui create-tokens)`,icon:`🏗`},{value:[`build`],label:`Build Registry`,description:`(cyclone-ui build)`,icon:`🏗`},{value:[`add`],label:`Add`,description:`(cyclone-ui add)`,icon:`➕`},{value:[`changelog`],label:`Changelog`,description:`(cyclone-ui changelog)`,icon:`🗃`},{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(cyclone-ui completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(cyclone-ui completions bash config)`,icon:`🖵`},{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(cyclone-ui completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(cyclone-ui completions zsh config)`,icon:`🖵`},{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(cyclone-ui completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cyclone-ui completions powershell config)`,icon:`🖵`},{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(cyclone-ui completions fish script)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(cyclone-ui completions fish config)`,icon:`🖵`},{value:[`update`],label:`Update`,description:`(cyclone-ui update)`,icon:`🖒`},{value:[`search-tokens`],label:`Search Tokens`,description:`(cyclone-ui search-tokens)`,icon:`🎨`},{value:[`list-tokens`],label:`List Tokens`,description:`(cyclone-ui list-tokens)`,icon:`🎨`},{value:[`search-components`],label:`Search Components`,description:`(cyclone-ui search-components)`,icon:`🧩`},{value:[`list-components`],label:`List Components`,description:`(cyclone-ui list-components)`,icon:`🧩`},{value:[`search-icons`],label:`Search Icons`,description:`(cyclone-ui search-icons)`,icon:`🖼`},{value:[`list-icons`],label:`List Icons`,description:`(cyclone-ui list-icons)`,icon:`🖼`},{value:[`search-fonts`],label:`Search Fonts`,description:`(cyclone-ui search-fonts)`,icon:`🔤`},{value:[`list-fonts`],label:`List Fonts`,description:`(cyclone-ui list-fonts)`,icon:`🔤`},{value:[`plan`],label:`Plan`,description:`(cyclone-ui plan)`,icon:`🗺`},{value:[`guidelines`],label:`Guidelines`,description:`(cyclone-ui guidelines)`,icon:`📖`},{value:[`analyze-a11y`],label:`Analyze Accessibility`,description:`(cyclone-ui analyze-a11y)`,icon:`♿`},{value:[`mcp`],label:`MCP Server`,description:`(cyclone-ui mcp)`,icon:`🔌`},{value:[`registry`,`validate`],label:`Validate Registry`,description:`(cyclone-ui registry validate)`,icon:`✓`},{value:[`help`],label:`Help`,description:`(cyclone-ui help)`,icon:`🛈`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(2)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`view`)return(await import(`./view.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`search`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`list`)return(await import(`./search.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`init`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`create`)return(await import(`./init.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`info`)return(await import(`./info.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`docs`)return(await import(`./docs.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`diff`)return(await import(`./diff.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`createtokens`)return(await import(`./create-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`build`)return(await import(`./build.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`add`)return(await import(`./add.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`changelog`)return(await import(`./changelog.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completions`)return B(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`update`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`upgrade`)return(await import(`./update.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchtokens`)return(await import(`./search-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listtokens`)return(await import(`./list-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchcomponents`)return(await import(`./search-components.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listcomponents`)return(await import(`./list-components.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchicons`)return(await import(`./search-icons.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listicons`)return(await import(`./list-icons.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchfonts`)return(await import(`./search-fonts.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listfonts`)return(await import(`./list-fonts.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`plan`)return(await import(`./plan.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`guidelines`)return(await import(`./guidelines.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`analyzea11y`)return(await import(`./analyze-a11y.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`mcp`)return(await import(`./mcp.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`)return H(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`help`)return(await import(`./help.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,/* @__PURE__ */ `view.search.list.init.create.info.docs.diff.create-tokens.build.add.changelog.completions.update.upgrade.search-tokens.list-tokens.search-components.list-components.search-icons.list-icons.search-fonts.list-fonts.plan.guidelines.analyze-a11y.mcp.registry.help`.split(`.`)).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return await x(0),k()}(async()=>{let e=/* @__PURE__ */ new Date;try{process.on(`exit`,()=>K({startDate:e,skipProcessExit:!0,isSynchronous:!0,signal:0})),process.on(`beforeExit`,()=>K({startDate:e,signal:0})),process.on(`message`,t=>{t===`shutdown`&&K({startDate:e,isSynchronous:!0,signal:-128})}),process.once(`SIGTERM`,()=>K({startDate:e,signal:15})),process.once(`SIGINT`,()=>K({startDate:e,signal:2})),process.once(`SIGUSR2`,()=>(_(`The application was terminated by the user`),K({startDate:e,signal:12}))),process.once(`SIGQUIT`,()=>(_(`The application was terminated by the user`),K({startDate:e,signal:12})));for(let t of[`unhandledRejection`,`uncaughtException`])process.on(t,n=>K({startDate:e,exception:n||/* @__PURE__ */ Error(`An ${t===`unhandledRejection`?`unhandled promise rejection`:`uncaught exception`} occurred during processing - the application is shutting down.`)}));await i(async()=>{let e=await q();e?.error&&f(e.error)})}catch(t){K({startDate:e,exception:t})}})();export{K as exit};
3
+ import{A as e,B as t,D as n,F as r,H as i,I as a,L as o,N as s,O as c,R as l,S as u,_ as d,c as f,j as p,k as m,n as h,t as g,w as _,y as v}from"./console-C1e2R5_C.mjs";import{a as y,n as b,o as x,r as S,t as C}from"./prompts-DNUEdt_q.mjs";import{a as w,i as T,n as E,o as D,r as O,s as k,t as A}from"./registry-BqMCMG74.mjs";async function j(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.7`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
4
+ `)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions`).length+2))/2),0))+g(u.banner.command.primary(`Completions`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands for generating shell completion scripts for Cyclone User Interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function M(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.7`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
5
+ `)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions - Bash`).length+2))/2),0))+g(u.banner.command.primary(`Completions - Bash`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions - Bash`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands to setup bash completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function N(t=o()){let n=``;if(t.length>4&&t[4]&&(n=t[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-bash-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-bash-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await M();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(cyclone-ui completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(cyclone-ui completions bash config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(4)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-bash-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-bash-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return w()}async function P(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.7`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
6
+ `)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions - Fish`).length+2))/2),0))+g(u.banner.command.primary(`Completions - Fish`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions - Fish`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands to setup Fish completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function F(t=o()){let n=``;if(t.length>4&&t[4]&&(n=t[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-fish-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-fish-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await P();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(cyclone-ui completions fish script)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(cyclone-ui completions fish config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(4)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-fish-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-fish-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return T()}async function I(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.7`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
7
+ `)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions - PowerShell`).length+2))/2),0))+g(u.banner.command.primary(`Completions - PowerShell`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions - PowerShell`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands to setup PowerShell completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function L(t=o()){let n=``;if(t.length>4&&t[4]&&(n=t[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-powershell-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-powershell-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await I();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(cyclone-ui completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cyclone-ui completions powershell config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(4)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-powershell-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-powershell-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return O()}async function R(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.7`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
8
+ `)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions - Zsh`).length+2))/2),0))+g(u.banner.command.primary(`Completions - Zsh`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions - Zsh`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands to setup Zsh completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function z(t=o()){let n=``;if(t.length>4&&t[4]&&(n=t[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-zsh-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-zsh-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await R();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(cyclone-ui completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(cyclone-ui completions zsh config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(4)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-zsh-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-zsh-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return E()}async function B(t=o()){let n=``;if(t.length>3&&t[3]&&(n=t[3]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`bash`)return N(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`zsh`)return z(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`powershell`)return L(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fish`)return F(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`bash`,`zsh`,`powershell`,`fish`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await j();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(cyclone-ui completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(cyclone-ui completions bash config)`,icon:`🖵`},{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(cyclone-ui completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(cyclone-ui completions zsh config)`,icon:`🖵`},{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(cyclone-ui completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cyclone-ui completions powershell config)`,icon:`🖵`},{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(cyclone-ui completions fish script)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(cyclone-ui completions fish config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(3)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`bash`)return N(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`zsh`)return z(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`powershell`)return L(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fish`)return F(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`bash`,`zsh`,`powershell`,`fish`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return D()}async function V(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.7`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
9
+ `)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Registry Commands`).length+2))/2),0))+g(u.banner.command.primary(`Registry Commands`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Registry Commands`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`A collection of available Registry commands that are included in the Cyclone User Interface command-line application.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function H(t=o()){let n=``;if(t.length>3&&t[3]&&(n=t[3]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`validate`)return(await import(`./registry-validate.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`validate`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await V();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`registry`,`validate`],label:`Validate Registry`,description:`(cyclone-ui registry validate)`,icon:`✓`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(3)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`validate`)return(await import(`./registry-validate.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`validate`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return A()}let U=!1;const W=[],G=[];async function K(e={}){try{if(U)return;U=!0;let t=0;e.signal!==void 0&&e.signal>0||e.exception?t=128+(e.signal??1):(typeof process.exitCode==`number`||typeof process.exitCode==`string`)&&(t=process.exitCode),e.exception&&f({message:`A fatal error occured while running the application - please contact the Cyclone User Interface support team${e.exception&&typeof e.exception!=`symbol`?`: \n\n${typeof e.exception==`string`?e.exception:e.exception.message}`:`.`}`,...e.exception&&typeof e.exception==`object`?{stack:e.exception.stack}:{}});let n=(n=!1)=>{r(`quiet`)||_(`The Cyclone User Interface application exited ${e.exception?`early due to an exception`:`successfully`}${e.startDate?`. Total run time is ${Date.now()-e.startDate.getTime()>5e3?Math.floor((Date.now()-e.startDate.getTime())/1e3):Date.now()-e.startDate.getTime()} ${Date.now()-e.startDate.getTime()>5e3?`seconds`:`milliseconds`}`:``}...`),e.skipProcessExit||process.nextTick(()=>process.exit(t))};for(let e of G)e(t);if(!e.isSynchronous){let e=[],r=0;for(let[n,i]of W)r=Math.max(r,i),e.push(Promise.resolve(n(t)));let i=setTimeout(()=>{n(!0)},r);await Promise.all(e),clearTimeout(i)}n()}catch(t){f(`The exit process failed to complete${t?.message?` - ${t.message}`:``}. Please contact the Cyclone User Interface support team.`),e.skipProcessExit||process.nextTick(()=>process.exit(1))}}async function q(){if(r([`version`,`v`])){console.log(`0.6.7`);return}let t=o(),n=``;if(t.length>2&&t[2]&&(n=t[2]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`view`)return(await import(`./view.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`search`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`list`)return(await import(`./search.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`init`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`create`)return(await import(`./init.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`info`)return(await import(`./info.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`docs`)return(await import(`./docs.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`diff`)return(await import(`./diff.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`createtokens`)return(await import(`./create-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`build`)return(await import(`./build.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`add`)return(await import(`./add.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`changelog`)return(await import(`./changelog.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completions`)return B(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`update`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`upgrade`)return(await import(`./update.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchtokens`)return(await import(`./search-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listtokens`)return(await import(`./list-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchcomponents`)return(await import(`./search-components.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listcomponents`)return(await import(`./list-components.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchicons`)return(await import(`./search-icons.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listicons`)return(await import(`./list-icons.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchfonts`)return(await import(`./search-fonts.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listfonts`)return(await import(`./list-fonts.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`plan`)return(await import(`./plan.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`guidelines`)return(await import(`./guidelines.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`analyzea11y`)return(await import(`./analyze-a11y.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`mcp`)return(await import(`./mcp.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`)return H(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`help`)return(await import(`./help.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,/* @__PURE__ */ `view.search.list.init.create.info.docs.diff.create-tokens.build.add.changelog.completions.update.upgrade.search-tokens.list-tokens.search-components.list-components.search-icons.list-icons.search-fonts.list-fonts.plan.guidelines.analyze-a11y.mcp.registry.help`.split(`.`)).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await x();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`view`],label:`View Registry Components`,description:`(cyclone-ui view)`,icon:`◉`},{value:[`search`],label:`Search Registry`,description:`(cyclone-ui search)`,icon:`⌕`},{value:[`init`],label:`Initialize`,description:`(cyclone-ui init)`,icon:`🌀`},{value:[`info`],label:`Project Information`,description:`(cyclone-ui info)`,icon:`ⓘ`},{value:[`docs`],label:`Component Documentation`,description:`(cyclone-ui docs)`,icon:`🕮`},{value:[`diff`],label:`Diff Components`,description:`(cyclone-ui diff)`,icon:`±`},{value:[`create-tokens`],label:`Create Tokens`,description:`(cyclone-ui create-tokens)`,icon:`🏗`},{value:[`build`],label:`Build Registry`,description:`(cyclone-ui build)`,icon:`🏗`},{value:[`add`],label:`Add`,description:`(cyclone-ui add)`,icon:`➕`},{value:[`changelog`],label:`Changelog`,description:`(cyclone-ui changelog)`,icon:`🗃`},{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(cyclone-ui completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(cyclone-ui completions bash config)`,icon:`🖵`},{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(cyclone-ui completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(cyclone-ui completions zsh config)`,icon:`🖵`},{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(cyclone-ui completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cyclone-ui completions powershell config)`,icon:`🖵`},{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(cyclone-ui completions fish script)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(cyclone-ui completions fish config)`,icon:`🖵`},{value:[`update`],label:`Update`,description:`(cyclone-ui update)`,icon:`🖒`},{value:[`search-tokens`],label:`Search Tokens`,description:`(cyclone-ui search-tokens)`,icon:`🎨`},{value:[`list-tokens`],label:`List Tokens`,description:`(cyclone-ui list-tokens)`,icon:`🎨`},{value:[`search-components`],label:`Search Components`,description:`(cyclone-ui search-components)`,icon:`🧩`},{value:[`list-components`],label:`List Components`,description:`(cyclone-ui list-components)`,icon:`🧩`},{value:[`search-icons`],label:`Search Icons`,description:`(cyclone-ui search-icons)`,icon:`🖼`},{value:[`list-icons`],label:`List Icons`,description:`(cyclone-ui list-icons)`,icon:`🖼`},{value:[`search-fonts`],label:`Search Fonts`,description:`(cyclone-ui search-fonts)`,icon:`🔤`},{value:[`list-fonts`],label:`List Fonts`,description:`(cyclone-ui list-fonts)`,icon:`🔤`},{value:[`plan`],label:`Plan`,description:`(cyclone-ui plan)`,icon:`🗺`},{value:[`guidelines`],label:`Guidelines`,description:`(cyclone-ui guidelines)`,icon:`📖`},{value:[`analyze-a11y`],label:`Analyze Accessibility`,description:`(cyclone-ui analyze-a11y)`,icon:`♿`},{value:[`mcp`],label:`MCP Server`,description:`(cyclone-ui mcp)`,icon:`🔌`},{value:[`registry`,`validate`],label:`Validate Registry`,description:`(cyclone-ui registry validate)`,icon:`✓`},{value:[`help`],label:`Help`,description:`(cyclone-ui help)`,icon:`🛈`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(2)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`view`)return(await import(`./view.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`search`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`list`)return(await import(`./search.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`init`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`create`)return(await import(`./init.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`info`)return(await import(`./info.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`docs`)return(await import(`./docs.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`diff`)return(await import(`./diff.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`createtokens`)return(await import(`./create-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`build`)return(await import(`./build.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`add`)return(await import(`./add.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`changelog`)return(await import(`./changelog.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completions`)return B(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`update`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`upgrade`)return(await import(`./update.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchtokens`)return(await import(`./search-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listtokens`)return(await import(`./list-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchcomponents`)return(await import(`./search-components.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listcomponents`)return(await import(`./list-components.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchicons`)return(await import(`./search-icons.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listicons`)return(await import(`./list-icons.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchfonts`)return(await import(`./search-fonts.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listfonts`)return(await import(`./list-fonts.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`plan`)return(await import(`./plan.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`guidelines`)return(await import(`./guidelines.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`analyzea11y`)return(await import(`./analyze-a11y.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`mcp`)return(await import(`./mcp.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`)return H(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`help`)return(await import(`./help.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,/* @__PURE__ */ `view.search.list.init.create.info.docs.diff.create-tokens.build.add.changelog.completions.update.upgrade.search-tokens.list-tokens.search-components.list-components.search-icons.list-icons.search-fonts.list-fonts.plan.guidelines.analyze-a11y.mcp.registry.help`.split(`.`)).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return await x(0),k()}(async()=>{let e=/* @__PURE__ */ new Date;try{process.on(`exit`,()=>K({startDate:e,skipProcessExit:!0,isSynchronous:!0,signal:0})),process.on(`beforeExit`,()=>K({startDate:e,signal:0})),process.on(`message`,t=>{t===`shutdown`&&K({startDate:e,isSynchronous:!0,signal:-128})}),process.once(`SIGTERM`,()=>K({startDate:e,signal:15})),process.once(`SIGINT`,()=>K({startDate:e,signal:2})),process.once(`SIGUSR2`,()=>(_(`The application was terminated by the user`),K({startDate:e,signal:12}))),process.once(`SIGQUIT`,()=>(_(`The application was terminated by the user`),K({startDate:e,signal:12})));for(let t of[`unhandledRejection`,`uncaughtException`])process.on(t,n=>K({startDate:e,exception:n||/* @__PURE__ */ Error(`An ${t===`unhandledRejection`?`unhandled promise rejection`:`uncaught exception`} occurred during processing - the application is shutting down.`)}));await i(async()=>{let e=await q();e?.error&&f(e.error)})}catch(t){K({startDate:e,exception:t})}})();export{K as exit};
@@ -1 +1 @@
1
- import{D as e,S as t,h as n,t as r,x as i}from"./console---4Wg5BT.mjs";function a(){e(``),e(r(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`build`)} ${t.usage.args(`<registry>`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`build`)} ${t.usage.options(`[options]`)} ${t.usage.args(`<registry>`)}`),{padding:0}),e(``),e(r(t.heading.secondary(`Options:`))),i([[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--output <output>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Output directory.`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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`}]]),e(``),e(t.body.tertiary(`More information can be found in the Build Registry command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/build`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{a as t};
1
+ import{D as e,S as t,h as n,t as r,x as i}from"./console-C1e2R5_C.mjs";function a(){e(``),e(r(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`build`)} ${t.usage.args(`<registry>`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`build`)} ${t.usage.options(`[options]`)} ${t.usage.args(`<registry>`)}`),{padding:0}),e(``),e(r(t.heading.secondary(`Options:`))),i([[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--output <output>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Output directory.`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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`}]]),e(``),e(t.body.tertiary(`More information can be found in the Build Registry command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/build`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{a as t};
package/dist/build.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,b as p,j as m,k as h,n as g,t as _,y as v,z as y}from"./console---4Wg5BT.mjs";import{a as b}from"./prompts-ClJNk2wq.mjs";import{t as x}from"./update-DePHve-o.mjs";import{t as S}from"./build-DjpkjDN9.mjs";import{n as C,t as w}from"./local-registry-pqsOERYj.mjs";import{dirname as T,resolve as E}from"node:path";import{mkdir as D,writeFile as O}from"node:fs/promises";async function k(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||m)return;t().set(`is-banner-displayed`,!0),n(``),n(g.banner.outline.primary(`┏`)+g.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+g.banner.outline.primary(`━`)+` `+_(l.banner.header.primary(`Cyclone CLI v0.6.6`))+` `+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-32,0)))+g.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...b.map(e=>v(e).length))>Math.max(h().columns+30,20)?`Cyclone User Interface`:`\n${b.join(`
1
+ import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,b as p,j as m,k as h,n as g,t as _,y as v,z as y}from"./console-C1e2R5_C.mjs";import{a as b}from"./prompts-DNUEdt_q.mjs";import{t as x}from"./update-OQpH8dIx.mjs";import{t as S}from"./build--rZLk8sK.mjs";import{n as C,t as w}from"./local-registry-pqsOERYj.mjs";import{dirname as T,resolve as E}from"node:path";import{mkdir as D,writeFile as O}from"node:fs/promises";async function k(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||m)return;t().set(`is-banner-displayed`,!0),n(``),n(g.banner.outline.primary(`┏`)+g.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+g.banner.outline.primary(`━`)+` `+_(l.banner.header.primary(`Cyclone CLI v0.6.7`))+` `+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-32,0)))+g.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...b.map(e=>v(e).length))>Math.max(h().columns+30,20)?`Cyclone User Interface`:`\n${b.join(`
2
2
  `)}\n`;f(o,Math.max(h().columns-30,20)).forEach(e=>{n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(e).length+2))/2),0))+_(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((h().columns-(v(e).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(`Build Registry`).length+2))/2),0))+_(l.banner.command.primary(`Build Registry`))+` `.repeat(Math.max(Math.ceil((h().columns-(v(`Build Registry`).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),f(_(l.banner.description.primary(`Build registry item JSON files for distribution.`)),Math.max(60>h().columns/2?h().columns-6:h().columns-30,20)).forEach(e=>{n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((h().columns-(v(e).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(h().columns-2,0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),n(g.banner.outline.primary(`┗`)+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-32,0)))+` `+_(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+g.banner.outline.primary(`━`.repeat(6))+g.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}async function A(e,t=`registry.json`){let n=E(e.cwd??process.cwd()),r=await C(E(n,t)),i=await w(n,r,e.output??`public/r`);for(let e of i)await D(T(e.path),{recursive:!0}),await O(e.path,e.content,`utf8`);p(`Built ${i.length} registry items.`)}async function j(e=s()){let t={...y()};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];r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`?/^--?(cwd)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.cwd=r.replace(/^--?(cwd)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.cwd=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)):(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`output=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`output`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`output=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`output`)&&(/^--?(output)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.output=r.replace(/^--?(output)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.output=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)))}let c=Math.max(0,e.slice(2).findIndex(e=>e.startsWith(`-`)&&/^(cwd|output)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+2,f=c>2?2:Math.max(0,e.slice(c).findLastIndex(e=>e.startsWith(`-`)&&/^(cwd|output)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+2,p=`registry.json`;return f+0<e.length&&f+0!==c&&(p=e[f+0]),r(`quiet`)||(await k(),await x()),!a()&&!r(`quiet`)&&(n(``),(o||i||u.LOG_LEVEL===`debug`)&&n(l.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?S():d(`build`,[`build`],[t,p],A)}export{j as handler};
@@ -1 +1 @@
1
- import{D as e,S as t,h as n,p as r,t as i,x as a}from"./console---4Wg5BT.mjs";function o(){e(`${i(t.heading.secondary(`Tags: `))} ${t.tags.utility?t.tags.utility(r(` Utility `)):t.tags.default(r(` Utility `))}`,{padding:0}),e(``),e(i(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`changelog`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``),e(i(t.heading.secondary(`Options:`))),a([[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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`}]]),e(``),e(t.body.tertiary(`More information can be found in the Changelog command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/changelog`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{o as t};
1
+ import{D as e,S as t,h as n,p as r,t as i,x as a}from"./console-C1e2R5_C.mjs";function o(){e(`${i(t.heading.secondary(`Tags: `))} ${t.tags.utility?t.tags.utility(r(` Utility `)):t.tags.default(r(` Utility `))}`,{padding:0}),e(``),e(i(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`changelog`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``),e(i(t.heading.secondary(`Options:`))),a([[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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`}]]),e(``),e(t.body.tertiary(`More information can be found in the Changelog command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/changelog`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{o as t};
@@ -1,8 +1,15 @@
1
- import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console---4Wg5BT.mjs";import{a as y}from"./prompts-ClJNk2wq.mjs";import{t as b}from"./update-DePHve-o.mjs";import{t as x}from"./changelog-cdMYhqC0.mjs";import{bold as S,textColors as C}from"node:console";async function w(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.6`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
1
+ import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-C1e2R5_C.mjs";import{a as y}from"./prompts-DNUEdt_q.mjs";import{t as b}from"./update-OQpH8dIx.mjs";import{t as x}from"./changelog-2-b0wiro.mjs";import{bold as S,textColors as C}from"node:console";async function w(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.7`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
2
2
  `)}\n`;f(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+g(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(`Changelog`).length+2))/2),0))+g(l.banner.command.primary(`Changelog`))+` `.repeat(Math.max(Math.ceil((m().columns-(_(`Changelog`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),f(g(l.banner.description.primary(`Display the Cyclone User Interface changelog.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}function T(){console.log(`${C.body.primary(`textColors.body.primary("[Image: Cyclone UI's logo banner]")`)}
3
3
 
4
4
  ${S(C.heading.primary(`Changelog for Cyclone UI - CLI`))}
5
5
 
6
+ ${S(C.heading.secondary(`0.6.7 (10/14/2026)`))}
7
+
8
+ ${S(C.heading.tertiary(`Updated Dependencies`))}
9
+
10
+ ${C.body.primary(`• Updated registry-api to v0.3.17
11
+ • Updated theme-builder to v0.0.7`)}
12
+
6
13
  ${S(C.heading.secondary(`0.6.6 (10/13/2026)`))}
7
14
 
8
15
  ${S(C.heading.tertiary(`Bug Fixes`))}
@@ -1,4 +1,4 @@
1
- import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console---4Wg5BT.mjs";import{a as y}from"./prompts-ClJNk2wq.mjs";import{t as b}from"./update-DePHve-o.mjs";import{n as x,t as S}from"./shared-D9ldclKX.mjs";import{t as C}from"./config-zidXG3wb.mjs";import w from"node:os";import{join as T}from"node:path";import{readFile as E,writeFile as D}from"node:fs/promises";import{bold as O,help as k,inlineCode as A,success as j,warn as M,writeLine as N}from"node:console";async function P(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.6`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
1
+ import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-C1e2R5_C.mjs";import{a as y}from"./prompts-DNUEdt_q.mjs";import{t as b}from"./update-OQpH8dIx.mjs";import{n as x,t as S}from"./shared-D9ldclKX.mjs";import{t as C}from"./config-C-02c2Hu.mjs";import w from"node:os";import{join as T}from"node:path";import{readFile as E,writeFile as D}from"node:fs/promises";import{bold as O,help as k,inlineCode as A,success as j,warn as M,writeLine as N}from"node:console";async function P(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.7`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
2
2
  `)}\n`;f(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+g(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(`Completions - Bash Configuration`).length+2))/2),0))+g(l.banner.command.primary(`Completions - Bash Configuration`))+` `.repeat(Math.max(Math.ceil((m().columns-(_(`Completions - Bash Configuration`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),f(g(l.banner.description.primary(`Update the current system's bash shell configuration to include completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}async function F(e={},t=`~/.bashrc`){if(e.display!==!0){let e=t.includes(`.`)?t:T(t,`.bashrc`);e.startsWith(`~`)&&(e=T(w.homedir(),e.replace(`~`,``)));let n=``;try{n=await E(e,`utf8`)}catch(t){if(typeof t==`object`&&t&&`code`in t&&t.code===`ENOENT`)M(`Configuration file ${O(e)} does not exist. It will be created when the completion script is written.`);else return{error:t}}await D(e,`${n}\n\n### Begin - Cyclone User Interface Shell Completions ###\n\n${S} \n\n### End - Cyclone User Interface Bash Completions ###`),j(`Cyclone User Interface shell completions have been applied to Bash configuration file at ${O(e)}. Please restart your terminal or run ${A(`source ${e}`)} for the changes to take effect.`)}else N(` ------------------------------------------------- `),N(``),N(`### Begin - Cyclone User Interface Bash Completions ###`),N(``),x.split(`
3
3
  `).map(e=>N(e)),N(``),N(`### End - Cyclone User Interface Bash Completions ###`),N(``),N(` ------------------------------------------------- `),N(``),k(`To enable these completions, perform one of the following actions:
4
4
 
@@ -1,4 +1,4 @@
1
- import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console---4Wg5BT.mjs";import{a as y}from"./prompts-ClJNk2wq.mjs";import{t as b}from"./update-DePHve-o.mjs";import{t as x}from"./script-B3x8_j_g.mjs";import{n as S,t as C}from"./shared-D9ldclKX.mjs";import{writeFile as w}from"node:fs/promises";import{bold as T,help as E,success as D,writeLine as O}from"node:console";async function k(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.6`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
1
+ import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-C1e2R5_C.mjs";import{a as y}from"./prompts-DNUEdt_q.mjs";import{t as b}from"./update-OQpH8dIx.mjs";import{t as x}from"./script-CblrVZQo.mjs";import{n as S,t as C}from"./shared-D9ldclKX.mjs";import{writeFile as w}from"node:fs/promises";import{bold as T,help as E,success as D,writeLine as O}from"node:console";async function k(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.7`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
2
2
  `)}\n`;f(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+g(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(`Completions - Bash Script`).length+2))/2),0))+g(l.banner.command.primary(`Completions - Bash Script`))+` `.repeat(Math.max(Math.ceil((m().columns-(_(`Completions - Bash Script`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),f(g(l.banner.description.primary(`Generate a bash completion script for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}async function A(e={},t=`./cyclone-ui-completions.bash`){if(e.display!==!0){let e=t.includes(`.`)?`${t}.bash`:t;await w(e,`# Bash script to add completions for Cyclone User Interface\n\n${C}`),D(`Cyclone User Interface Bash completion script has been generated at ${T(e)}.`)}else O(` ------------------------------------------------- `),O(``),O(`# Bash completion for Cyclone User Interface`),O(``),S.split(`
3
3
  `).map(e=>O(e)),O(``),O(` ------------------------------------------------- `),O(``),E(`To enable these completions, perform one of the following actions:
4
4
 
@@ -1,4 +1,4 @@
1
- import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console---4Wg5BT.mjs";import{a as y}from"./prompts-ClJNk2wq.mjs";import{t as b}from"./update-DePHve-o.mjs";import{n as x,t as S}from"./shared-BhQNB9wT.mjs";import{t as C}from"./config-BSDNcMeQ.mjs";import w from"node:os";import{join as T}from"node:path";import{readFile as E,writeFile as D}from"node:fs/promises";import{bold as O,help as k,inlineCode as A,success as j,warn as M,writeLine as N}from"node:console";async function P(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.6`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
1
+ import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-C1e2R5_C.mjs";import{a as y}from"./prompts-DNUEdt_q.mjs";import{t as b}from"./update-OQpH8dIx.mjs";import{n as x,t as S}from"./shared-BhQNB9wT.mjs";import{t as C}from"./config-Zcx6Dt6D.mjs";import w from"node:os";import{join as T}from"node:path";import{readFile as E,writeFile as D}from"node:fs/promises";import{bold as O,help as k,inlineCode as A,success as j,warn as M,writeLine as N}from"node:console";async function P(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.7`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
2
2
  `)}\n`;f(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+g(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(`Completions - Fish Configuration`).length+2))/2),0))+g(l.banner.command.primary(`Completions - Fish Configuration`))+` `.repeat(Math.max(Math.ceil((m().columns-(_(`Completions - Fish Configuration`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),f(g(l.banner.description.primary(`Update the current system's Fish shell configuration to include completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}async function F(e={},t=`~/.config/fish/config.fish`){if(e.display!==!0){let e=t.includes(`.`)?t:T(t,`.config`,`fish`,`config.fish`);e.startsWith(`~`)&&(e=T(w.homedir(),e.replace(`~`,``)));let n=``;try{n=await E(e,`utf8`)}catch(t){if(typeof t==`object`&&t&&`code`in t&&t.code===`ENOENT`)M(`Configuration file ${O(e)} does not exist. It will be created when the completion script is written.`);else return{error:t}}await D(e,`${n}\n\n### Begin - Cyclone User Interface Fish Completions ###\n\n${S} \n\n### End - Cyclone User Interface Fish Completions ###`),j(`Cyclone User Interface shell completions have been applied to Fish configuration file at ${O(e)}. Please restart your terminal or run ${A(`source ${e}`)} for the changes to take effect.`)}else N(` ------------------------------------------------- `),N(``),N(`### Begin - Cyclone User Interface Fish Completions ###`),N(``),x.split(`
3
3
  `).map(e=>N(e)),N(``),N(`### End - Cyclone User Interface Fish Completions ###`),N(``),N(` ------------------------------------------------- `),N(``),k(`To enable these completions, perform one of the following actions:
4
4
 
@@ -1,4 +1,4 @@
1
- import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console---4Wg5BT.mjs";import{a as y}from"./prompts-ClJNk2wq.mjs";import{t as b}from"./update-DePHve-o.mjs";import{t as x}from"./script-B5c2RcFH.mjs";import{n as S,t as C}from"./shared-BhQNB9wT.mjs";import{writeFile as w}from"node:fs/promises";import{bold as T,help as E,success as D,writeLine as O}from"node:console";async function k(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.6`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
1
+ import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-C1e2R5_C.mjs";import{a as y}from"./prompts-DNUEdt_q.mjs";import{t as b}from"./update-OQpH8dIx.mjs";import{t as x}from"./script-CH1syTWr.mjs";import{n as S,t as C}from"./shared-BhQNB9wT.mjs";import{writeFile as w}from"node:fs/promises";import{bold as T,help as E,success as D,writeLine as O}from"node:console";async function k(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.7`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
2
2
  `)}\n`;f(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+g(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(`Completions - Fish Script`).length+2))/2),0))+g(l.banner.command.primary(`Completions - Fish Script`))+` `.repeat(Math.max(Math.ceil((m().columns-(_(`Completions - Fish Script`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),f(g(l.banner.description.primary(`Generate a Fish completion script for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}async function A(e={},t=`./cyclone-ui-completions.fish`){if(e.display!==!0){let e=t.includes(`.`)?`${t}.fish`:t;await w(e,`# Fish script to add completions for Cyclone User Interface\n\n${C}`),D(`Cyclone User Interface Fish completion script has been generated at ${T(e)}.`)}else O(` ------------------------------------------------- `),O(``),O(`# Fish completion for Cyclone User Interface`),O(``),S.split(`
3
3
  `).map(e=>O(e)),O(``),O(` ------------------------------------------------- `),O(``),E(`To enable these completions, perform one of the following actions:
4
4
 
@@ -1,4 +1,4 @@
1
- import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,T as u,U as d,V as f,_ as p,b as m,f as h,j as g,k as _,n as v,t as y,u as b,y as x,z as S}from"./console---4Wg5BT.mjs";import{a as C}from"./prompts-ClJNk2wq.mjs";import{t as w}from"./update-DePHve-o.mjs";import{n as T,t as E}from"./shared-BCaMzguv.mjs";import{t as D}from"./config-CKm7ZRaa.mjs";import O from"node:os";import{join as k}from"node:path";import{readFile as A,writeFile as j}from"node:fs/promises";async function M(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||g)return;t().set(`is-banner-displayed`,!0),n(``),n(v.banner.outline.primary(`┏`)+v.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+v.banner.outline.primary(`━`)+` `+y(l.banner.header.primary(`Cyclone CLI v0.6.6`))+` `+v.banner.outline.primary(`━`.repeat(Math.max(_().columns-32,0)))+v.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...C.map(e=>x(e).length))>Math.max(_().columns+30,20)?`Cyclone User Interface`:`\n${C.join(`
1
+ import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,T as u,U as d,V as f,_ as p,b as m,f as h,j as g,k as _,n as v,t as y,u as b,y as x,z as S}from"./console-C1e2R5_C.mjs";import{a as C}from"./prompts-DNUEdt_q.mjs";import{t as w}from"./update-OQpH8dIx.mjs";import{n as T,t as E}from"./shared-BCaMzguv.mjs";import{t as D}from"./config-DGm2nVnx.mjs";import O from"node:os";import{join as k}from"node:path";import{readFile as A,writeFile as j}from"node:fs/promises";async function M(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||g)return;t().set(`is-banner-displayed`,!0),n(``),n(v.banner.outline.primary(`┏`)+v.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+v.banner.outline.primary(`━`)+` `+y(l.banner.header.primary(`Cyclone CLI v0.6.7`))+` `+v.banner.outline.primary(`━`.repeat(Math.max(_().columns-32,0)))+v.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...C.map(e=>x(e).length))>Math.max(_().columns+30,20)?`Cyclone User Interface`:`\n${C.join(`
2
2
  `)}\n`;p(o,Math.max(_().columns-30,20)).forEach(e=>{n(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((_().columns-(x(e).length+2))/2),0))+y(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((_().columns-(x(e).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((_().columns-(x(`Completions - PowerShell Configuration`).length+2))/2),0))+y(l.banner.command.primary(`Completions - PowerShell Configuration`))+` `.repeat(Math.max(Math.ceil((_().columns-(x(`Completions - PowerShell Configuration`).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log}),p(y(l.banner.description.primary(`Update the current system's PowerShell configuration to include completions for the Cyclone User Interface command-line interface.`)),Math.max(60>_().columns/2?_().columns-6:_().columns-30,20)).forEach(e=>{n(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((_().columns-(x(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((_().columns-(x(e).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(_().columns-2,0))+v.banner.outline.primary(`┃`),{consoleFn:console.log}),n(v.banner.outline.primary(`┗`)+v.banner.outline.primary(`━`.repeat(Math.max(_().columns-32,0)))+` `+y(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+v.banner.outline.primary(`━`.repeat(6))+v.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}async function N(e={},t=`~/.config/powershell/Microsoft.PowerShell_profile.ps1`){if(e.display!==!0){let e=t.includes(`.`)?t:k(t,`Microsoft.PowerShell_profile.ps1`);e.startsWith(`~`)&&(e=k(O.homedir(),e.replace(`~`,``)));let n=``;try{n=await A(e,`utf8`)}catch(t){if(typeof t==`object`&&t&&`code`in t&&t.code===`ENOENT`)u(`Configuration file ${y(e)} does not exist. It will be created when the completion script is written.`);else return{error:t}}await j(e,`${n}\n\n### Begin - Cyclone User Interface PowerShell Completions ###\n\n${E} \n\n### End - Cyclone User Interface PowerShell Completions ###`),m(`Cyclone User Interface shell completions have been applied to PowerShell configuration file at ${y(e)}. Please restart your terminal or run ${h(`source ${e}`)} for the changes to take effect.`)}else n(` ------------------------------------------------- `),n(``),n(`### Begin - Cyclone User Interface PowerShell Completions ###`),n(``),T.split(`
3
3
  `).map(e=>n(e)),n(``),n(`### End - Cyclone User Interface PowerShell Completions ###`),n(``),n(` ------------------------------------------------- `),n(``),b(`To enable these completions, perform one of the following actions:
4
4
 
@@ -1,4 +1,4 @@
1
- import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console---4Wg5BT.mjs";import{a as y}from"./prompts-ClJNk2wq.mjs";import{t as b}from"./update-DePHve-o.mjs";import{t as x}from"./script-pXC2XdU6.mjs";import{n as S,t as C}from"./shared-BCaMzguv.mjs";import{writeFile as w}from"node:fs/promises";import{bold as T,help as E,success as D,writeLine as O}from"node:console";async function k(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.6`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
1
+ import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-C1e2R5_C.mjs";import{a as y}from"./prompts-DNUEdt_q.mjs";import{t as b}from"./update-OQpH8dIx.mjs";import{t as x}from"./script-DVVGXQK8.mjs";import{n as S,t as C}from"./shared-BCaMzguv.mjs";import{writeFile as w}from"node:fs/promises";import{bold as T,help as E,success as D,writeLine as O}from"node:console";async function k(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.7`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
2
2
  `)}\n`;f(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+g(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(`Completions - PowerShell Script`).length+2))/2),0))+g(l.banner.command.primary(`Completions - PowerShell Script`))+` `.repeat(Math.max(Math.ceil((m().columns-(_(`Completions - PowerShell Script`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),f(g(l.banner.description.primary(`Generate a PowerShell completion script for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}async function A(e={},t=`./cyclone-ui-completions.ps1`){if(e.display!==!0){let e=t.includes(`.`)?`${t}.ps1`:t;await w(e,`# PowerShell script to add completions for Cyclone User Interface\n\n${C}`),D(`Cyclone User Interface PowerShell completion script has been generated at ${T(e)}.`)}else O(` ------------------------------------------------- `),O(``),O(`# PowerShell completions for Cyclone User Interface`),O(``),S.split(`
3
3
  `).map(e=>O(e)),O(``),O(` ------------------------------------------------- `),O(``),E(`To enable these completions, perform one of the following actions:
4
4
 
@@ -1,4 +1,4 @@
1
- import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console---4Wg5BT.mjs";import{a as y}from"./prompts-ClJNk2wq.mjs";import{t as b}from"./update-DePHve-o.mjs";import{n as x,t as S}from"./shared-BFtHZGV7.mjs";import{t as C}from"./config-LbchzPcu.mjs";import w from"node:os";import{join as T}from"node:path";import{readFile as E,writeFile as D}from"node:fs/promises";import{bold as O,help as k,inlineCode as A,success as j,warn as M,writeLine as N}from"node:console";async function P(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.6`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
1
+ import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-C1e2R5_C.mjs";import{a as y}from"./prompts-DNUEdt_q.mjs";import{t as b}from"./update-OQpH8dIx.mjs";import{n as x,t as S}from"./shared-BFtHZGV7.mjs";import{t as C}from"./config-BUAzFE7e.mjs";import w from"node:os";import{join as T}from"node:path";import{readFile as E,writeFile as D}from"node:fs/promises";import{bold as O,help as k,inlineCode as A,success as j,warn as M,writeLine as N}from"node:console";async function P(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.7`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
2
2
  `)}\n`;f(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+g(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(`Completions - Zsh Configuration`).length+2))/2),0))+g(l.banner.command.primary(`Completions - Zsh Configuration`))+` `.repeat(Math.max(Math.ceil((m().columns-(_(`Completions - Zsh Configuration`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),f(g(l.banner.description.primary(`Update the current system's Zsh shell configuration to include completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}async function F(e={},t=`~/.zshrc`){if(e.display!==!0){let e=t.includes(`.`)?t:T(t,`.zshrc`);e.startsWith(`~`)&&(e=T(w.homedir(),e.replace(`~`,``)));let n=``;try{n=await E(e,`utf8`)}catch(t){if(typeof t==`object`&&t&&`code`in t&&t.code===`ENOENT`)M(`Configuration file ${O(e)} does not exist. It will be created when the completion script is written.`);else return{error:t}}await D(e,`${n}\n\n### Begin - Cyclone User Interface Shell Completions ###\n\n${S} \n\n### End - Cyclone User Interface Zsh Completions ###`),j(`Cyclone User Interface shell completions have been applied to Zsh configuration file at ${O(e)}. Please restart your terminal or run ${A(`source ${e}`)} for the changes to take effect.`)}else N(` ------------------------------------------------- `),N(``),N(`### Begin - Cyclone User Interface Zsh Completions ###`),N(``),x.split(`
3
3
  `).map(e=>N(e)),N(``),N(`### End - Cyclone User Interface Zsh Completions ###`),N(``),N(` ------------------------------------------------- `),N(``),k(`To enable these completions, perform one of the following actions:
4
4
 
@@ -1,4 +1,4 @@
1
- import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console---4Wg5BT.mjs";import{a as y}from"./prompts-ClJNk2wq.mjs";import{t as b}from"./update-DePHve-o.mjs";import{t as x}from"./script-BJyXXD6q.mjs";import{n as S,t as C}from"./shared-BFtHZGV7.mjs";import{writeFile as w}from"node:fs/promises";import{bold as T,help as E,success as D,writeLine as O}from"node:console";async function k(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.6`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
1
+ import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-C1e2R5_C.mjs";import{a as y}from"./prompts-DNUEdt_q.mjs";import{t as b}from"./update-OQpH8dIx.mjs";import{t as x}from"./script-vTW7sqH6.mjs";import{n as S,t as C}from"./shared-BFtHZGV7.mjs";import{writeFile as w}from"node:fs/promises";import{bold as T,help as E,success as D,writeLine as O}from"node:console";async function k(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.7`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
2
2
  `)}\n`;f(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+g(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(`Completions - Zsh Script`).length+2))/2),0))+g(l.banner.command.primary(`Completions - Zsh Script`))+` `.repeat(Math.max(Math.ceil((m().columns-(_(`Completions - Zsh Script`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),f(g(l.banner.description.primary(`Generate a Zsh completion script for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}async function A(e={},t=`cyclone-ui-completions.zsh`){if(e.display!==!0){let e=t.includes(`.`)?`${t}.zsh`:t;await w(e,`# Zsh script to add completions for Cyclone User Interface\n\n${C}`),D(`Cyclone User Interface Zsh completion script has been generated at ${T(e)}.`)}else O(` ------------------------------------------------- `),O(``),O(`#compdef cyclone-ui `),O(`#compdef _cyclone_ui cyclone-ui`),O(``),O(`# Zsh completion for Cyclone User Interface`),O(``),S.split(`
3
3
  `).map(e=>O(e)),O(``),O(` ------------------------------------------------- `),O(``),E(`To enable these completions, perform one of the following actions:
4
4
 
@@ -1 +1 @@
1
- import{D as e,S as t,h as n,p as r,t as i,x as a}from"./console---4Wg5BT.mjs";function o(){e(`${i(t.heading.secondary(`Tags: `))} ${t.tags.utility?t.tags.utility(r(` Utility `)):t.tags.default(r(` Utility `))}`,{padding:0}),e(``),e(i(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`completions`)} ${t.usage.command(`zsh`)} ${t.usage.command(`config`)} ${t.usage.args(`<path>`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`completions`)} ${t.usage.command(`zsh`)} ${t.usage.command(`config`)} ${t.usage.options(`[options]`)} ${t.usage.args(`<path>`)}`),{padding:0}),e(``),e(i(t.heading.secondary(`Options:`))),a([[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Should the generated completion script be written to console output instead of an actual file on disk? (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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`}]]),e(``),e(t.body.tertiary(`More information can be found in the Completions - Zsh Configuration command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/completions/zsh/config`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{o as t};
1
+ import{D as e,S as t,h as n,p as r,t as i,x as a}from"./console-C1e2R5_C.mjs";function o(){e(`${i(t.heading.secondary(`Tags: `))} ${t.tags.utility?t.tags.utility(r(` Utility `)):t.tags.default(r(` Utility `))}`,{padding:0}),e(``),e(i(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`completions`)} ${t.usage.command(`zsh`)} ${t.usage.command(`config`)} ${t.usage.args(`<path>`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`completions`)} ${t.usage.command(`zsh`)} ${t.usage.command(`config`)} ${t.usage.options(`[options]`)} ${t.usage.args(`<path>`)}`),{padding:0}),e(``),e(i(t.heading.secondary(`Options:`))),a([[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Should the generated completion script be written to console output instead of an actual file on disk? (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.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`}]]),e(``),e(t.body.tertiary(`More information can be found in the Completions - Zsh Configuration command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/completions/zsh/config`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{o as t};