@cyclone-ui/cli 0.6.100 → 0.6.101

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 (77) hide show
  1. package/dist/{add-LQbQ-yc6.mjs → add-D4XbbxvU.mjs} +1 -1
  2. package/dist/add.mjs +1 -1
  3. package/dist/{analyze-a11y-CiJY0F5v.mjs → analyze-a11y-cPhZWhty.mjs} +1 -1
  4. package/dist/analyze-a11y.mjs +1 -1
  5. package/dist/bin.mjs +7 -7
  6. package/dist/{build-CoXRNUmI.mjs → build-DTGtPXcl.mjs} +1 -1
  7. package/dist/{build-tokens-B9MOcSXo.mjs → build-tokens-CtQQTluE.mjs} +1 -1
  8. package/dist/build-tokens.mjs +1 -1
  9. package/dist/build.mjs +1 -1
  10. package/dist/{changelog-BiGv3Kng.mjs → changelog-B3DY6nyl.mjs} +1 -1
  11. package/dist/changelog.mjs +8 -1
  12. package/dist/{command-Bv0_gjWC.mjs → command-wcLAvjYt.mjs} +1 -1
  13. package/dist/completions-bash-config.mjs +1 -1
  14. package/dist/completions-bash-script.mjs +1 -1
  15. package/dist/completions-fish-config.mjs +1 -1
  16. package/dist/completions-fish-script.mjs +1 -1
  17. package/dist/completions-powershell-config.mjs +1 -1
  18. package/dist/completions-powershell-script.mjs +1 -1
  19. package/dist/completions-zsh-config.mjs +1 -1
  20. package/dist/completions-zsh-script.mjs +1 -1
  21. package/dist/{config-BpD9DlWJ.mjs → config-BtmOYd0g.mjs} +1 -1
  22. package/dist/{config-Bq03vHFT.mjs → config-CTx8Hl5D.mjs} +1 -1
  23. package/dist/{config-pmniqNzP.mjs → config-KwPF5Bj-.mjs} +1 -1
  24. package/dist/{config-D4xfEa0y.mjs → config-tW2I2MOT.mjs} +1 -1
  25. package/dist/{console-Buk8asv7.mjs → console-DpDNENnS.mjs} +1 -1
  26. package/dist/{design-system-CbDQZnHU.mjs → design-system-DDbXeMUQ.mjs} +1 -1
  27. package/dist/{diff-BvjMl5eS.mjs → diff-Bo5VR7LR.mjs} +1 -1
  28. package/dist/diff.mjs +1 -1
  29. package/dist/{docs-CeSZX5UC.mjs → docs-D3MABHgB.mjs} +1 -1
  30. package/dist/docs.mjs +1 -1
  31. package/dist/{gc-DQIhmX4-.mjs → gc-CXCYlD-w.mjs} +1 -1
  32. package/dist/gc.mjs +1 -1
  33. package/dist/{guidelines-DfccgW0D.mjs → guidelines-DTDnkVJ5.mjs} +1 -1
  34. package/dist/guidelines.mjs +1 -1
  35. package/dist/help.mjs +1 -1
  36. package/dist/{info-BpYmglhB.mjs → info-D7PeBLXT.mjs} +1 -1
  37. package/dist/info.mjs +1 -1
  38. package/dist/{init-DcEqZ7SN.mjs → init-D_JYKNhz.mjs} +1 -1
  39. package/dist/init.mjs +1 -1
  40. package/dist/{list-components-DdXzGxVU.mjs → list-components-y6nMXS8U.mjs} +1 -1
  41. package/dist/list-components.mjs +1 -1
  42. package/dist/{list-fonts-DFiwWskq.mjs → list-fonts-Dqy68TEz.mjs} +1 -1
  43. package/dist/list-fonts.mjs +1 -1
  44. package/dist/{list-icons-C1S5dHLP.mjs → list-icons-XgKAoWp2.mjs} +1 -1
  45. package/dist/list-icons.mjs +1 -1
  46. package/dist/{list-tokens-GB61Lkgo.mjs → list-tokens-Bc4Eg_JQ.mjs} +1 -1
  47. package/dist/list-tokens.mjs +1 -1
  48. package/dist/{mcp-jgopt_Rd.mjs → mcp-CmeGo4sS.mjs} +1 -1
  49. package/dist/mcp.mjs +1 -1
  50. package/dist/{plan-DWfe_jWm.mjs → plan-CqS9QlLY.mjs} +1 -1
  51. package/dist/plan.mjs +1 -1
  52. package/dist/{prompts-B5-ag1Dw.mjs → prompts-D9o68s9o.mjs} +1 -1
  53. package/dist/{registry-O5mHHHOD.mjs → registry-C1Eq32lw.mjs} +1 -1
  54. package/dist/registry-validate.mjs +1 -1
  55. package/dist/{script-DyBxlq3G.mjs → script-BC0dpzvX.mjs} +1 -1
  56. package/dist/{script-DTEROw7u.mjs → script-C23DXPu1.mjs} +1 -1
  57. package/dist/{script-Cwv4S6o-.mjs → script-CoUVXp0f.mjs} +1 -1
  58. package/dist/{script-DJmqLfc9.mjs → script-D6U0RKqC.mjs} +1 -1
  59. package/dist/{search-BrWPZkQ9.mjs → search-DC1R4tV7.mjs} +1 -1
  60. package/dist/{search-components-BHBdpCJl.mjs → search-components-D3ODBTq5.mjs} +1 -1
  61. package/dist/search-components.mjs +1 -1
  62. package/dist/{search-fonts-Dgc7YKFp.mjs → search-fonts-DW6U08XZ.mjs} +1 -1
  63. package/dist/search-fonts.mjs +1 -1
  64. package/dist/{search-icons-BqIgqwmx.mjs → search-icons-BJZL6VyZ.mjs} +1 -1
  65. package/dist/search-icons.mjs +1 -1
  66. package/dist/{search-tokens-B236EzSC.mjs → search-tokens-CNOKY3mJ.mjs} +1 -1
  67. package/dist/search-tokens.mjs +1 -1
  68. package/dist/search.mjs +1 -1
  69. package/dist/{update-oUpx2nD5.mjs → update-JnpP5AxG.mjs} +1 -1
  70. package/dist/{update-components-B0meXuqI.mjs → update-components-BMvg2A6v.mjs} +1 -1
  71. package/dist/update-components.mjs +1 -1
  72. package/dist/{update-DwQwTKWR.mjs → update-wnCU1em6.mjs} +1 -1
  73. package/dist/update.mjs +1 -1
  74. package/dist/{validate-D9Xt1y17.mjs → validate-hpkyjKpT.mjs} +1 -1
  75. package/dist/{view-DyaGzex5.mjs → view-DldZjBLM.mjs} +1 -1
  76. package/dist/view.mjs +1 -1
  77. package/package.json +4 -4
@@ -1 +1 @@
1
- import{C as e,_ as t,k as n,t as r,w as i}from"./console-Buk8asv7.mjs";function a(){n(``),n(r(i.heading.secondary(`Usage:`))),n(i.body.secondary(`${i.usage.bin(`>_ cyclone-ui`)} ${i.usage.command(`diff`)} ${i.usage.args(`<components...>`)} ${i.usage.options(`[options]`)}`),{padding:0}),n(i.body.secondary(`${i.usage.bin(`>_ cyclone-ui`)} ${i.usage.command(`diff`)} ${i.usage.options(`[options]`)} ${i.usage.args(`<components...>`)}`),{padding:0}),n(``),n(r(i.heading.secondary(`Options:`))),e([[{value:i.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:i.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--registry <registry>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Registry URL.`),align:`left`,border:`none`}],[{value:i.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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`}]]),n(``),n(i.body.tertiary(`More information can be found in the Diff Components command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/diff`)}${i.body.tertiary(`.`)}`),{padding:0}),n(``)}export{a as t};
1
+ import{C as e,_ as t,k as n,t as r,w as i}from"./console-DpDNENnS.mjs";function a(){n(``),n(r(i.heading.secondary(`Usage:`))),n(i.body.secondary(`${i.usage.bin(`>_ cyclone-ui`)} ${i.usage.command(`diff`)} ${i.usage.args(`<components...>`)} ${i.usage.options(`[options]`)}`),{padding:0}),n(i.body.secondary(`${i.usage.bin(`>_ cyclone-ui`)} ${i.usage.command(`diff`)} ${i.usage.options(`[options]`)} ${i.usage.args(`<components...>`)}`),{padding:0}),n(``),n(r(i.heading.secondary(`Options:`))),e([[{value:i.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:i.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--registry <registry>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Registry URL.`),align:`left`,border:`none`}],[{value:i.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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`}]]),n(``),n(i.body.tertiary(`More information can be found in the Diff Components command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/diff`)}${i.body.tertiary(`.`)}`),{padding:0}),n(``)}export{a as t};
package/dist/diff.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{a as e}from"./prompts-B5-ag1Dw.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,O as c,R as l,U as u,V as d,j as f,k as p,n as m,q as h,t as g,w as _,x as v,y,z as b}from"./console-Buk8asv7.mjs";import{t as x}from"./diff-BvjMl5eS.mjs";import{t as S}from"./update-DwQwTKWR.mjs";import{i as C,r as w}from"./components-PhAQb7LE.mjs";import{a as T,u as E}from"./config-BwGb7RTa.mjs";import{resolve as D}from"node:path";async function O(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),p(``),p(m.banner.outline.primary(`┏`)+m.banner.outline.primary(`━`.repeat(6))+` `+_.banner.header.primary(`⬤`)+` `+m.banner.outline.primary(`━`)+` `+g(_.banner.header.primary(`Cyclone CLI v0.6.99`))+` `+m.banner.outline.primary(`━`.repeat(Math.max(f().columns-33,0)))+m.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>v(e).length))>Math.max(f().columns+30,20)?`Cyclone UI`:`\n${e.join(`
1
+ import{a as e}from"./prompts-D9o68s9o.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,O as c,R as l,U as u,V as d,j as f,k as p,n as m,q as h,t as g,w as _,x as v,y,z as b}from"./console-DpDNENnS.mjs";import{t as x}from"./diff-Bo5VR7LR.mjs";import{t as S}from"./update-wnCU1em6.mjs";import{i as C,r as w}from"./components-PhAQb7LE.mjs";import{a as T,u as E}from"./config-BwGb7RTa.mjs";import{resolve as D}from"node:path";async function O(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),p(``),p(m.banner.outline.primary(`┏`)+m.banner.outline.primary(`━`.repeat(6))+` `+_.banner.header.primary(`⬤`)+` `+m.banner.outline.primary(`━`)+` `+g(_.banner.header.primary(`Cyclone CLI v0.6.100`))+` `+m.banner.outline.primary(`━`.repeat(Math.max(f().columns-34,0)))+m.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>v(e).length))>Math.max(f().columns+30,20)?`Cyclone UI`:`\n${e.join(`
2
2
  `)}\n`;y(i,Math.max(f().columns-30,20)).forEach(e=>{p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(e).length+2))/2),0))+g(_.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((f().columns-(v(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(`Diff Components`).length+2))/2),0))+g(_.banner.command.primary(`Diff Components`))+` `.repeat(Math.max(Math.ceil((f().columns-(v(`Diff Components`).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),y(g(_.banner.description.primary(`Compare installed components with the registry.`)),Math.max(60>f().columns/2?f().columns-6:f().columns-30,20)).forEach(e=>{p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(e).length+2))/2),0))+_.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((f().columns-(v(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(f().columns-2,0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),p(m.banner.outline.primary(`┗`)+m.banner.outline.primary(`━`.repeat(Math.max(f().columns-32,0)))+` `+g(_.banner.footer.primary(`https://cyclone-ui.com`))+` `+m.banner.outline.primary(`━`.repeat(6))+m.banner.outline.primary(`┛`),{consoleFn:console.log}),p(``),o&&!l()&&await t(n)}async function k(e,t=[]){let n=D(e.cwd??process.cwd()),r=await T(n),i=t.length>0?t:Object.keys(r.components);if(i.length===0)throw Error(`No installed components to compare.`);let a=await w(E(e.registry??r.registry),r,i,{root:n,overwrite:!0,dryRun:!0});c(C(a,n))}async function A(e=b()){let t={...d()};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(`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=[];for(let t=3;t<e.length;t++)e[t].length>1&&e[t].startsWith(`-`)?!e[t].includes(`=`)&&/^(cwd|registry)$/.test(e[t].startsWith(`--`)?e[t].slice(2).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``):e[t].slice(1))&&t++:r.push(e[t]);let o=[];return r.length>0&&(o=r.slice(0,r.length-0).flatMap(e=>e.split(`,`)).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)),a(`quiet`)||(await O(),await S()),!l()&&!a(`quiet`)&&(p(``),(i||h||n.LOG_LEVEL===`debug`)&&p(_.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?x():u(`diff`,[`diff`],[t,o],k)}export{A as handler};
@@ -1 +1 @@
1
- import{C as e,_ as t,k as n,t as r,w as i}from"./console-Buk8asv7.mjs";function a(){n(``),n(r(i.heading.secondary(`Usage:`))),n(i.body.secondary(`${i.usage.bin(`>_ cyclone-ui`)} ${i.usage.command(`docs`)} ${i.usage.args(`<components...>`)} ${i.usage.options(`[options]`)}`),{padding:0}),n(i.body.secondary(`${i.usage.bin(`>_ cyclone-ui`)} ${i.usage.command(`docs`)} ${i.usage.options(`[options]`)} ${i.usage.args(`<components...>`)}`),{padding:0}),n(``),n(r(i.heading.secondary(`Options:`))),e([[{value:i.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:i.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--json`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Output machine-readable JSON.`),align:`left`,border:`none`}],[{value:i.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--registry <registry>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Registry URL.`),align:`left`,border:`none`}],[{value:i.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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`}]]),n(``),n(i.body.tertiary(`More information can be found in the Component Documentation command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/docs`)}${i.body.tertiary(`.`)}`),{padding:0}),n(``)}export{a as t};
1
+ import{C as e,_ as t,k as n,t as r,w as i}from"./console-DpDNENnS.mjs";function a(){n(``),n(r(i.heading.secondary(`Usage:`))),n(i.body.secondary(`${i.usage.bin(`>_ cyclone-ui`)} ${i.usage.command(`docs`)} ${i.usage.args(`<components...>`)} ${i.usage.options(`[options]`)}`),{padding:0}),n(i.body.secondary(`${i.usage.bin(`>_ cyclone-ui`)} ${i.usage.command(`docs`)} ${i.usage.options(`[options]`)} ${i.usage.args(`<components...>`)}`),{padding:0}),n(``),n(r(i.heading.secondary(`Options:`))),e([[{value:i.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:i.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--json`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Output machine-readable JSON.`),align:`left`,border:`none`}],[{value:i.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--registry <registry>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Registry URL.`),align:`left`,border:`none`}],[{value:i.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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`}]]),n(``),n(i.body.tertiary(`More information can be found in the Component Documentation command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/docs`)}${i.body.tertiary(`.`)}`),{padding:0}),n(``)}export{a as t};
package/dist/docs.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import{a as e,r as t,t as n}from"./prompts-B5-ag1Dw.mjs";import{F as r,G as i,H as a,J as o,L as s,M as c,N as l,O as u,R as d,U as f,V as p,g as m,j as h,k as g,l as _,n as v,q as y,t as b,w as x,x as S,y as C,z as w}from"./console-Buk8asv7.mjs";import{t as T}from"./docs-CeSZX5UC.mjs";import{t as E}from"./update-DwQwTKWR.mjs";import{i as D,l as O,u as k}from"./config-BwGb7RTa.mjs";import{resolve as A}from"node:path";async function j(t=500){if(a().get(`is-banner-displayed`)||s(`no-banner`)||s(`hide-banner`)||l)return;a().set(`is-banner-displayed`,!0),g(``),g(v.banner.outline.primary(`┏`)+v.banner.outline.primary(`━`.repeat(6))+` `+x.banner.header.primary(`⬤`)+` `+v.banner.outline.primary(`━`)+` `+b(x.banner.header.primary(`Cyclone CLI v0.6.99`))+` `+v.banner.outline.primary(`━`.repeat(Math.max(h().columns-33,0)))+v.banner.outline.primary(`┓`),{consoleFn:console.log});let n=Math.max(...e.map(e=>S(e).length))>Math.max(h().columns+30,20)?`Cyclone UI`:`\n${e.join(`
1
+ import{a as e,r as t,t as n}from"./prompts-D9o68s9o.mjs";import{F as r,G as i,H as a,J as o,L as s,M as c,N as l,O as u,R as d,U as f,V as p,g as m,j as h,k as g,l as _,n as v,q as y,t as b,w as x,x as S,y as C,z as w}from"./console-DpDNENnS.mjs";import{t as T}from"./docs-D3MABHgB.mjs";import{t as E}from"./update-wnCU1em6.mjs";import{i as D,l as O,u as k}from"./config-BwGb7RTa.mjs";import{resolve as A}from"node:path";async function j(t=500){if(a().get(`is-banner-displayed`)||s(`no-banner`)||s(`hide-banner`)||l)return;a().set(`is-banner-displayed`,!0),g(``),g(v.banner.outline.primary(`┏`)+v.banner.outline.primary(`━`.repeat(6))+` `+x.banner.header.primary(`⬤`)+` `+v.banner.outline.primary(`━`)+` `+b(x.banner.header.primary(`Cyclone CLI v0.6.100`))+` `+v.banner.outline.primary(`━`.repeat(Math.max(h().columns-34,0)))+v.banner.outline.primary(`┓`),{consoleFn:console.log});let n=Math.max(...e.map(e=>S(e).length))>Math.max(h().columns+30,20)?`Cyclone UI`:`\n${e.join(`
2
2
  `)}\n`;C(n,Math.max(h().columns-30,20)).forEach(e=>{g(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(S(e).length+2))/2),0))+b(x.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((h().columns-(S(e).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log})}),g(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(S(`Component Documentation`).length+2))/2),0))+b(x.banner.command.primary(`Component Documentation`))+` `.repeat(Math.max(Math.ceil((h().columns-(S(`Component Documentation`).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log}),C(b(x.banner.description.primary(`Get documentation links for registry components. Do not change installed or added Cyclone UI component files unless the user specifically instructs you to do so.`)),Math.max(60>h().columns/2?h().columns-6:h().columns-30,20)).forEach(e=>{g(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(S(e).length+2))/2),0))+x.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((h().columns-(S(e).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log})}),g(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(h().columns-2,0))+v.banner.outline.primary(`┃`),{consoleFn:console.log}),g(v.banner.outline.primary(`┗`)+v.banner.outline.primary(`━`.repeat(Math.max(h().columns-32,0)))+` `+b(x.banner.footer.primary(`https://cyclone-ui.com`))+` `+v.banner.outline.primary(`━`.repeat(6))+v.banner.outline.primary(`┛`),{consoleFn:console.log}),g(``),c&&!d()&&await r(t)}async function M(e,t){let n=A(e.cwd??process.cwd()),r=await D(n),i=k(e.registry??r?.registry??`https://public.storm-cdn.com/cyclone-ui/registry`),a=await Promise.all(t.map(async e=>{let t=await i.components.get.query(e),n=O(t.name);return{name:t.name,description:t.description,url:`https://docs.stormsoftware.com/projects/cyclone-ui/components/${n}`}}));u(e.json?JSON.stringify(a,null,2):a.map(e=>`${e.name}: ${e.url}`).join(`
3
3
  `))}async function N(e=w()){let r={...p()};for(let t=0;t<e.slice(0).length;t++){let n=e[t].length>3&&e[t].startsWith(`--`)?`--${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`-${e[t].slice(1).replaceAll(`-`,``)}`:e[t];if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`)/^--?(cwd)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?r.cwd=n.replace(/^--?(cwd)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>t+1&&(r.cwd=e[++t].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`registry=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`registry=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`)/^--?(registry)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?r.registry=n.replace(/^--?(registry)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>t+1&&(r.registry=e[++t].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`json=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`json`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`json=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`json`){if(/^--?(json)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=n.replace(/^--?(json)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();r.json=!!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 r.json=!0}}let a=[];for(let t=3;t<e.length;t++)e[t].length>1&&e[t].startsWith(`-`)?!e[t].includes(`=`)&&/^(cwd|registry)$/.test(e[t].startsWith(`--`)?e[t].slice(2).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``):e[t].slice(1))&&t++:a.push(e[t]);let l=[];if(a.length>0&&(l=a.slice(0,a.length-0).flatMap(e=>e.split(`,`)).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)),s(`quiet`)||(await j(),await E()),!d()&&!s(`quiet`)&&(g(``),(o||y||i.LOG_LEVEL===`debug`)&&g(x.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!c){let e=[];l?l.length===0&&e.push(`No values were provided to the required "components" array positional argument`):e.push(`Missing required "components" positional argument`)}else if(!d()&&(!l||l.length===0)){if(g(``),!l){let e=await t({message:`Please provide a value for the ${m(`components`)} argument`,description:`Component names to document.`,validate(e){return!e||e.trim()===``?`A value must be provided for this argument`:null}});if(n(e))return;l=e}else if(l.length===0){let e=await t({message:`Please provide one or more values for the ${m(`components`)} argument (values are separated by a \",\" character)`,description:`Component names to document.`,validate(e){if(!e||e.trim()===``)return`A value must be provided for this argument`;if(e.split(`,`).map(e=>e.trim()).filter(Boolean).length===0)return`At least one value must be provided for this argument`}});if(n(e))return;l=e.split(`,`).map(e=>e.trim()).filter(Boolean)}g(``);let e=[];l?l.length===0&&e.push(`No values were provided to the required "components" array positional argument`):e.push(`Missing required "components" positional argument`),e.length>0&&(_(`The following validation failures were found while processing the user provided input, and must be corrected before the ${m(`Component Documentation`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
4
4
  `)}`),r.help=!0)}return r.help?T():f(`docs`,[`docs`],[r,l],M)}export{N as handler};
@@ -1 +1 @@
1
- import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-Buk8asv7.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.utility?a.tags.utility(n(` Utility `)):a.tags.default(n(` Utility `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`gc`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`garbage-collection`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:a.body.primary(`--dry-run`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Preview deletions and any reinstall without changing files.`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--registry <registry>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Override the registry URL used when reinstalling components.`),align:`left`,border:`none`}],[{value:a.body.primary(`--silent`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Mute non-essential output.`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the Garbage Collection command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/gc`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
1
+ import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-DpDNENnS.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.utility?a.tags.utility(n(` Utility `)):a.tags.default(n(` Utility `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`gc`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`garbage-collection`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:a.body.primary(`--dry-run`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Preview deletions and any reinstall without changing files.`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--registry <registry>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Override the registry URL used when reinstalling components.`),align:`left`,border:`none`}],[{value:a.body.primary(`--silent`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Mute non-essential output.`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the Garbage Collection command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/gc`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
package/dist/gc.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import{a as e}from"./prompts-B5-ag1Dw.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,O as c,R as l,U as u,V as d,j as f,k as p,n as m,q as h,t as g,w as _,x as v,y,z as b}from"./console-Buk8asv7.mjs";import{t as x}from"./gc-DQIhmX4-.mjs";import{t as S}from"./update-DwQwTKWR.mjs";import{a as C,l as w,o as T,u as E}from"./config-BwGb7RTa.mjs";import{a as D,r as O,t as k}from"./components-PhAQb7LE.mjs";import{dirname as A,relative as j,resolve as M,sep as N}from"node:path";import{lstat as P,mkdir as F,readdir as I,rm as L}from"node:fs/promises";async function R(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),p(``),p(m.banner.outline.primary(`┏`)+m.banner.outline.primary(`━`.repeat(6))+` `+_.banner.header.primary(`⬤`)+` `+m.banner.outline.primary(`━`)+` `+g(_.banner.header.primary(`Cyclone CLI v0.6.99`))+` `+m.banner.outline.primary(`━`.repeat(Math.max(f().columns-33,0)))+m.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>v(e).length))>Math.max(f().columns+30,20)?`Cyclone UI`:`\n${e.join(`
1
+ import{a as e}from"./prompts-D9o68s9o.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,O as c,R as l,U as u,V as d,j as f,k as p,n as m,q as h,t as g,w as _,x as v,y,z as b}from"./console-DpDNENnS.mjs";import{t as x}from"./gc-CXCYlD-w.mjs";import{t as S}from"./update-wnCU1em6.mjs";import{a as C,l as w,o as T,u as E}from"./config-BwGb7RTa.mjs";import{a as D,r as O,t as k}from"./components-PhAQb7LE.mjs";import{dirname as A,relative as j,resolve as M,sep as N}from"node:path";import{lstat as P,mkdir as F,readdir as I,rm as L}from"node:fs/promises";async function R(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),p(``),p(m.banner.outline.primary(`┏`)+m.banner.outline.primary(`━`.repeat(6))+` `+_.banner.header.primary(`⬤`)+` `+m.banner.outline.primary(`━`)+` `+g(_.banner.header.primary(`Cyclone CLI v0.6.100`))+` `+m.banner.outline.primary(`━`.repeat(Math.max(f().columns-34,0)))+m.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>v(e).length))>Math.max(f().columns+30,20)?`Cyclone UI`:`\n${e.join(`
2
2
  `)}\n`;y(i,Math.max(f().columns-30,20)).forEach(e=>{p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(e).length+2))/2),0))+g(_.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((f().columns-(v(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(`Garbage Collection`).length+2))/2),0))+g(_.banner.command.primary(`Garbage Collection`))+` `.repeat(Math.max(Math.ceil((f().columns-(v(`Garbage Collection`).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),y(g(_.banner.description.primary(`Remove files and empty folders not tracked in components.json from the configured components directory. If file tracking is incomplete, clear the directory and reinstall all installed components from the registry, overwriting local edits. Use --dry-run to preview. Do not change installed or added Cyclone UI component files unless the user specifically instructs you to do so.`)),Math.max(60>f().columns/2?f().columns-6:f().columns-30,20)).forEach(e=>{p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(e).length+2))/2),0))+_.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((f().columns-(v(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(f().columns-2,0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),p(m.banner.outline.primary(`┗`)+m.banner.outline.primary(`━`.repeat(Math.max(f().columns-32,0)))+` `+g(_.banner.footer.primary(`https://cyclone-ui.com`))+` `+m.banner.outline.primary(`━`.repeat(6))+m.banner.outline.primary(`┛`),{consoleFn:console.log}),p(``),o&&!l()&&await t(n)}async function z(e){try{return await P(e)}catch(e){if(e.code===`ENOENT`)return null;throw e}}async function B(e,t){let n=j(e,t).split(N).filter(Boolean),r=e;for(let e of n){r=M(r,e);let t=await z(r);if(t?.isSymbolicLink())throw Error(`Refusing to clean through a symbolic link: ${r}`);if(t&&!t.isDirectory())throw Error(`Expected a components directory: ${r}`)}}async function V(e){if(!await z(e))return[];let t=[];for(let n of await I(e,{withFileTypes:!0})){let r=M(e,n.name);n.isDirectory()&&t.push(...await V(r)),t.push({path:r,directory:n.isDirectory(),symlink:n.isSymbolicLink()})}return t}async function H(e,t){let{root:n,dryRun:r,report:i}=t,a=T(n,e.path);if(a===M(n))throw Error(`Refusing to clean the project root as a components directory.`);await B(n,a);let o=await V(a),s=new Set(o.filter(e=>!e.directory&&!e.symlink).map(e=>e.path)),c=/* @__PURE__ */ new Set,l=!0;for(let[t,r]of Object.entries(e.components)){let e=w(t);if(!/^[a-z0-9][\w.-]*$/i.test(e))throw Error(`Invalid installed component name: ${t}`);let i=T(a,e),o=r?.files;if(!Array.isArray(o)||o.length===0)l=!1;else for(let e of o){if(typeof e!=`string`){l=!1;continue}let t=M(n,e);t.startsWith(`${i}${N}`)&&s.has(t)||(l=!1),c.add(t)}}if(!l){let o=await O(E(t.registry??e.registry),e,Object.keys(e.components),{root:n,overwrite:!0,dryRun:!0,readExisting:!1});if(i(`Reinstall ${j(n,a)}: installed file tracking is incomplete. Local edits will be overwritten.\n${D(o,n)}`),r)return;await L(a,{recursive:!0,force:!0}),await F(a,{recursive:!0}),await k(e,o,{root:n,overwrite:!0});return}let u=/* @__PURE__ */ new Set;for(let e of c){let t=A(e);for(;t!==a;)u.add(t),t=A(t)}let d=o.filter(e=>e.directory?!u.has(e.path):!c.has(e.path));if(i(d.length?d.map(e=>`remove ${j(n,e.path)}`).join(`
3
3
  `):`No unused component files found.`),!r)for(let e of d)await L(e.path,{recursive:e.directory,force:!0})}async function U(e){let t=M(e.cwd??process.cwd());await H(await C(t),{root:t,dryRun:e.dryRun,registry:e.registry,report:t=>{e.silent||c(t)}})}async function W(e=b()){let t={...d()};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(`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(`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(/("|')$/,``)))}return a(`quiet`)||(await R(),await S()),!l()&&!a(`quiet`)&&(p(``),(i||h||n.LOG_LEVEL===`debug`)&&p(_.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?x():u(`gc`,[`gc`],[t],U)}export{W as handler};
@@ -1 +1 @@
1
- import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-Buk8asv7.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.docs?a.tags.docs(n(` Docs `)):a.tags.default(n(` Docs `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`guidelines`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Maximum matches per term when searching (default: 1).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--terms <terms...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms matched against guideline keywords, titles and body (fuzzy).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the Guidelines command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/guidelines`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
1
+ import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-DpDNENnS.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.docs?a.tags.docs(n(` Docs `)):a.tags.default(n(` Docs `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`guidelines`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Maximum matches per term when searching (default: 1).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--terms <terms...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms matched against guideline keywords, titles and body (fuzzy).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the Guidelines command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/guidelines`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
@@ -1,2 +1,2 @@
1
- import{a as e}from"./prompts-B5-ag1Dw.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,R as c,U as l,V as u,j as d,k as f,n as p,q as m,t as h,w as g,x as _,y as v,z as y}from"./console-Buk8asv7.mjs";import{t as b}from"./guidelines-DfccgW0D.mjs";import{t as x}from"./update-DwQwTKWR.mjs";import{t as S}from"./design-system-CbDQZnHU.mjs";import{getGuidelines as C}from"@razorwind/shell-shock/runtime";async function w(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),f(``),f(p.banner.outline.primary(`┏`)+p.banner.outline.primary(`━`.repeat(6))+` `+g.banner.header.primary(`⬤`)+` `+p.banner.outline.primary(`━`)+` `+h(g.banner.header.primary(`Cyclone CLI v0.6.99`))+` `+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-33,0)))+p.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>_(e).length))>Math.max(d().columns+30,20)?`Cyclone UI`:`\n${e.join(`
1
+ import{a as e}from"./prompts-D9o68s9o.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,R as c,U as l,V as u,j as d,k as f,n as p,q as m,t as h,w as g,x as _,y as v,z as y}from"./console-DpDNENnS.mjs";import{t as b}from"./guidelines-DTDnkVJ5.mjs";import{t as x}from"./update-wnCU1em6.mjs";import{t as S}from"./design-system-DDbXeMUQ.mjs";import{getGuidelines as C}from"@razorwind/shell-shock/runtime";async function w(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),f(``),f(p.banner.outline.primary(`┏`)+p.banner.outline.primary(`━`.repeat(6))+` `+g.banner.header.primary(`⬤`)+` `+p.banner.outline.primary(`━`)+` `+h(g.banner.header.primary(`Cyclone CLI v0.6.100`))+` `+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-34,0)))+p.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>_(e).length))>Math.max(d().columns+30,20)?`Cyclone UI`:`\n${e.join(`
2
2
  `)}\n`;v(i,Math.max(d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+h(g.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(`Guidelines`).length+2))/2),0))+h(g.banner.command.primary(`Guidelines`))+` `.repeat(Math.max(Math.ceil((d().columns-(_(`Guidelines`).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),v(h(g.banner.description.primary(`Return design-system guidelines as Markdown: an overview of the token groups, one section per component (with usage examples), typography, the design-system style guidelines, and any bundled guideline documents. Pass --terms to search; omit for the full set.`)),Math.max(60>d().columns/2?d().columns-6:d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+g.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(d().columns-2,0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),f(p.banner.outline.primary(`┗`)+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-32,0)))+` `+h(g.banner.footer.primary(`https://cyclone-ui.com`))+` `+p.banner.outline.primary(`━`.repeat(6))+p.banner.outline.primary(`┛`),{consoleFn:console.log}),f(``),o&&!c()&&await t(n)}function T(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function E(e){T(C(S,{terms:e.terms,limit:e.limit}))}async function D(e=y()){let t={...u(),terms:[],limit:1};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(`terms=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`terms`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`terms=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`terms`)t.terms??=[],/^--?(terms)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.terms.push(...r.replace(/^--?(terms)=/,``).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)):e.length>n+1&&t.terms.push(...e[++n].split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`){if(/^--?(limit)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=Number(r.replace(/^--?(limit)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(e)||(t.limit=e)}else if(e.length>n+1){let r=Number(e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(r)||(t.limit=r)}}}return a(`quiet`)||(await w(),await x()),!c()&&!a(`quiet`)&&(f(``),(i||m||n.LOG_LEVEL===`debug`)&&f(g.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),o||t.limit&&Number.isNaN(t.limit)&&[].push(`Invalid numeric value provided for the "limit" option`),t.help?b():l(`guidelines`,[`guidelines`],[t],E)}export{D as handler};
package/dist/help.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{a as e}from"./prompts-B5-ag1Dw.mjs";import{C as t,F as n,G as r,H as i,J as ee,L as a,M as o,N as s,R as c,U as te,V as l,_ as u,h as d,j as f,k as p,n as m,q as h,t as g,w as _,x as v,y,z as b}from"./console-Buk8asv7.mjs";import{t as x}from"./update-DwQwTKWR.mjs";import{a as S,i as C,n as w,o as T,r as E,s as D,t as O}from"./registry-O5mHHHOD.mjs";import{t as k}from"./add-LQbQ-yc6.mjs";import{t as A}from"./analyze-a11y-CiJY0F5v.mjs";import{t as j}from"./build-CoXRNUmI.mjs";import{t as M}from"./build-tokens-B9MOcSXo.mjs";import{t as N}from"./changelog-BiGv3Kng.mjs";import{t as P}from"./config-BpD9DlWJ.mjs";import{t as F}from"./script-DTEROw7u.mjs";import{t as I}from"./config-pmniqNzP.mjs";import{t as L}from"./script-DJmqLfc9.mjs";import{t as R}from"./config-Bq03vHFT.mjs";import{t as ne}from"./script-DyBxlq3G.mjs";import{t as z}from"./config-D4xfEa0y.mjs";import{t as B}from"./script-Cwv4S6o-.mjs";import{t as V}from"./diff-BvjMl5eS.mjs";import{t as H}from"./docs-CeSZX5UC.mjs";import{t as U}from"./gc-DQIhmX4-.mjs";import{t as W}from"./guidelines-DfccgW0D.mjs";import{t as G}from"./info-BpYmglhB.mjs";import{t as K}from"./init-DcEqZ7SN.mjs";import{t as q}from"./list-components-DdXzGxVU.mjs";import{t as J}from"./list-fonts-DFiwWskq.mjs";import{t as Y}from"./list-icons-C1S5dHLP.mjs";import{t as X}from"./list-tokens-GB61Lkgo.mjs";import{t as Z}from"./mcp-jgopt_Rd.mjs";import{t as re}from"./plan-DWfe_jWm.mjs";import{t as ie}from"./validate-D9Xt1y17.mjs";import{t as ae}from"./search-BrWPZkQ9.mjs";import{t as oe}from"./search-components-BHBdpCJl.mjs";import{t as se}from"./search-fonts-Dgc7YKFp.mjs";import{t as Q}from"./search-icons-BqIgqwmx.mjs";import{t as ce}from"./search-tokens-B236EzSC.mjs";import{t as le}from"./update-oUpx2nD5.mjs";import{t as ue}from"./update-components-B0meXuqI.mjs";import{t as de}from"./view-DyaGzex5.mjs";async function fe(t=500){if(i().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;i().set(`is-banner-displayed`,!0),p(``),p(m.banner.outline.primary(`┏`)+m.banner.outline.primary(`━`.repeat(6))+` `+_.banner.header.primary(`⬤`)+` `+m.banner.outline.primary(`━`)+` `+g(_.banner.header.primary(`Cyclone CLI v0.6.99`))+` `+m.banner.outline.primary(`━`.repeat(Math.max(f().columns-33,0)))+m.banner.outline.primary(`┓`),{consoleFn:console.log});let r=Math.max(...e.map(e=>v(e).length))>Math.max(f().columns+30,20)?`Cyclone UI`:`\n${e.join(`
1
+ import{a as e}from"./prompts-D9o68s9o.mjs";import{C as t,F as n,G as r,H as i,J as ee,L as a,M as o,N as s,R as c,U as te,V as l,_ as u,h as d,j as f,k as p,n as m,q as h,t as g,w as _,x as v,y,z as b}from"./console-DpDNENnS.mjs";import{t as x}from"./update-wnCU1em6.mjs";import{a as S,i as C,n as w,o as T,r as E,s as D,t as O}from"./registry-C1Eq32lw.mjs";import{t as k}from"./add-D4XbbxvU.mjs";import{t as A}from"./analyze-a11y-cPhZWhty.mjs";import{t as j}from"./build-DTGtPXcl.mjs";import{t as M}from"./build-tokens-CtQQTluE.mjs";import{t as N}from"./changelog-B3DY6nyl.mjs";import{t as P}from"./config-BtmOYd0g.mjs";import{t as F}from"./script-C23DXPu1.mjs";import{t as I}from"./config-KwPF5Bj-.mjs";import{t as L}from"./script-D6U0RKqC.mjs";import{t as R}from"./config-CTx8Hl5D.mjs";import{t as ne}from"./script-BC0dpzvX.mjs";import{t as z}from"./config-tW2I2MOT.mjs";import{t as B}from"./script-CoUVXp0f.mjs";import{t as V}from"./diff-Bo5VR7LR.mjs";import{t as H}from"./docs-D3MABHgB.mjs";import{t as U}from"./gc-CXCYlD-w.mjs";import{t as W}from"./guidelines-DTDnkVJ5.mjs";import{t as G}from"./info-D7PeBLXT.mjs";import{t as K}from"./init-D_JYKNhz.mjs";import{t as q}from"./list-components-y6nMXS8U.mjs";import{t as J}from"./list-fonts-Dqy68TEz.mjs";import{t as Y}from"./list-icons-XgKAoWp2.mjs";import{t as X}from"./list-tokens-Bc4Eg_JQ.mjs";import{t as Z}from"./mcp-CmeGo4sS.mjs";import{t as re}from"./plan-CqS9QlLY.mjs";import{t as ie}from"./validate-hpkyjKpT.mjs";import{t as ae}from"./search-DC1R4tV7.mjs";import{t as oe}from"./search-components-D3ODBTq5.mjs";import{t as se}from"./search-fonts-DW6U08XZ.mjs";import{t as Q}from"./search-icons-BJZL6VyZ.mjs";import{t as ce}from"./search-tokens-CNOKY3mJ.mjs";import{t as le}from"./update-JnpP5AxG.mjs";import{t as ue}from"./update-components-BMvg2A6v.mjs";import{t as de}from"./view-DldZjBLM.mjs";async function fe(t=500){if(i().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;i().set(`is-banner-displayed`,!0),p(``),p(m.banner.outline.primary(`┏`)+m.banner.outline.primary(`━`.repeat(6))+` `+_.banner.header.primary(`⬤`)+` `+m.banner.outline.primary(`━`)+` `+g(_.banner.header.primary(`Cyclone CLI v0.6.100`))+` `+m.banner.outline.primary(`━`.repeat(Math.max(f().columns-34,0)))+m.banner.outline.primary(`┓`),{consoleFn:console.log});let r=Math.max(...e.map(e=>v(e).length))>Math.max(f().columns+30,20)?`Cyclone UI`:`\n${e.join(`
2
2
  `)}\n`;y(r,Math.max(f().columns-30,20)).forEach(e=>{p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(e).length+2))/2),0))+g(_.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((f().columns-(v(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(`Help`).length+2))/2),0))+g(_.banner.command.primary(`Help`))+` `.repeat(Math.max(Math.ceil((f().columns-(v(`Help`).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),y(g(_.banner.description.primary(`Display command usage details and other useful information to the user.`)),Math.max(60>f().columns/2?f().columns-6:f().columns-30,20)).forEach(e=>{p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(e).length+2))/2),0))+_.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((f().columns-(v(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(f().columns-2,0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),p(m.banner.outline.primary(`┗`)+m.banner.outline.primary(`━`.repeat(Math.max(f().columns-32,0)))+` `+g(_.banner.footer.primary(`https://cyclone-ui.com`))+` `+m.banner.outline.primary(`━`.repeat(6))+m.banner.outline.primary(`┛`),{consoleFn:console.log}),p(``),o&&!c()&&await n(t)}function $(){p(`${g(_.heading.secondary(`Tags: `))} ${_.tags.utility?_.tags.utility(d(` Utility `)):_.tags.default(d(` Utility `))}`,{padding:0}),p(``),p(g(_.heading.secondary(`Usage:`))),p(_.body.secondary(`${_.usage.bin(`>_ cyclone-ui`)} ${_.usage.command(`help`)} ${_.usage.args(`<commands...>`)} ${_.usage.options(`[options]`)}`),{padding:0}),p(_.body.secondary(`${_.usage.bin(`>_ cyclone-ui`)} ${_.usage.command(`help`)} ${_.usage.options(`[options]`)} ${_.usage.args(`<commands...>`)}`),{padding:0}),p(``),p(g(_.heading.secondary(`Options:`))),t([[{value:_.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:_.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:_.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:_.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:_.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:_.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:_.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:_.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:_.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:_.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:_.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:_.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:_.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:_.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:_.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:_.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:_.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:_.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:_.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:_.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:_.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:_.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:_.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:_.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`}]]),p(``),p(_.body.tertiary(`More information can be found in the Help command documentation at ${u(`https://docs.cyclone-ui.com/reference/cli/help`)}${_.body.tertiary(`.`)}`),{padding:0}),p(``)}async function pe(e=[]){e.join(`/`).toLowerCase()===`add`?k():e.join(`/`).toLowerCase()===`analyze-a11y`?A():e.join(`/`).toLowerCase()===`build`?j():e.join(`/`).toLowerCase()===`build-tokens`?M():e.join(`/`).toLowerCase()===`changelog`?N():e.join(`/`).toLowerCase()===`completions`?T():e.join(`/`).toLowerCase()===`completions/bash`?S():e.join(`/`).toLowerCase()===`completions/bash/config`?P():e.join(`/`).toLowerCase()===`completions/bash/script`?F():e.join(`/`).toLowerCase()===`completions/fish`?C():e.join(`/`).toLowerCase()===`completions/fish/config`?I():e.join(`/`).toLowerCase()===`completions/fish/script`?L():e.join(`/`).toLowerCase()===`completions/powershell`?E():e.join(`/`).toLowerCase()===`completions/powershell/config`?R():e.join(`/`).toLowerCase()===`completions/powershell/script`?ne():e.join(`/`).toLowerCase()===`completions/zsh`?w():e.join(`/`).toLowerCase()===`completions/zsh/config`?z():e.join(`/`).toLowerCase()===`completions/zsh/script`?B():e.join(`/`).toLowerCase()===`diff`?V():e.join(`/`).toLowerCase()===`docs`?H():e.join(`/`).toLowerCase()===`gc`?U():e.join(`/`).toLowerCase()===`guidelines`?W():e.join(`/`).toLowerCase()===`help`?$():e.join(`/`).toLowerCase()===`info`?G():e.join(`/`).toLowerCase()===`init`?K():e.join(`/`).toLowerCase()===`list-components`?q():e.join(`/`).toLowerCase()===`list-fonts`?J():e.join(`/`).toLowerCase()===`list-icons`?Y():e.join(`/`).toLowerCase()===`list-tokens`?X():e.join(`/`).toLowerCase()===`mcp`?Z():e.join(`/`).toLowerCase()===`plan`?re():e.join(`/`).toLowerCase()===`registry`?O():e.join(`/`).toLowerCase()===`registry/validate`?ie():e.join(`/`).toLowerCase()===`search`?ae():e.join(`/`).toLowerCase()===`search-components`?oe():e.join(`/`).toLowerCase()===`search-fonts`?se():e.join(`/`).toLowerCase()===`search-icons`?Q():e.join(`/`).toLowerCase()===`search-tokens`?ce():e.join(`/`).toLowerCase()===`update`?le():e.join(`/`).toLowerCase()===`update-components`?ue():e.join(`/`).toLowerCase()===`view`?de():D()}async function me(e=b()){let t={...l()};for(let t=0;t<e.slice(0).length;t++)e[t].length>3&&e[t].startsWith(`--`)?`${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`${e[t].slice(1).replaceAll(`-`,``)}`:e[t];let n=[];for(let t=3;t<e.length;t++)e[t].length>1&&e[t].startsWith(`-`)||n.push(e[t]);let i=[];return n.length>0&&(i=n.slice(0,n.length-0).flatMap(e=>e.split(`,`)).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)),a(`quiet`)||(await fe(),await x()),!c()&&!a(`quiet`)&&(p(``),(ee||h||r.LOG_LEVEL===`debug`)&&p(_.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?$():te(`help`,[`help`],[i],pe)}export{me as handler};
@@ -1 +1 @@
1
- import{C as e,_ as t,k as n,t as r,w as i}from"./console-Buk8asv7.mjs";function a(){n(``),n(r(i.heading.secondary(`Usage:`))),n(i.body.secondary(`${i.usage.bin(`>_ cyclone-ui`)} ${i.usage.command(`info`)} ${i.usage.options(`[options]`)}`),{padding:0}),n(``),n(r(i.heading.secondary(`Options:`))),e([[{value:i.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:i.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--json`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Output machine-readable JSON.`),align:`left`,border:`none`}],[{value:i.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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`}]]),n(``),n(i.body.tertiary(`More information can be found in the Project Information command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/info`)}${i.body.tertiary(`.`)}`),{padding:0}),n(``)}export{a as t};
1
+ import{C as e,_ as t,k as n,t as r,w as i}from"./console-DpDNENnS.mjs";function a(){n(``),n(r(i.heading.secondary(`Usage:`))),n(i.body.secondary(`${i.usage.bin(`>_ cyclone-ui`)} ${i.usage.command(`info`)} ${i.usage.options(`[options]`)}`),{padding:0}),n(``),n(r(i.heading.secondary(`Options:`))),e([[{value:i.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:i.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--json`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Output machine-readable JSON.`),align:`left`,border:`none`}],[{value:i.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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`}]]),n(``),n(i.body.tertiary(`More information can be found in the Project Information command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/info`)}${i.body.tertiary(`.`)}`),{padding:0}),n(``)}export{a as t};
package/dist/info.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{a as e}from"./prompts-B5-ag1Dw.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,O as c,R as l,U as u,V as d,j as f,k as p,n as m,q as h,t as g,w as _,x as v,y,z as b}from"./console-Buk8asv7.mjs";import{t as x}from"./info-BpYmglhB.mjs";import{t as S}from"./update-DwQwTKWR.mjs";import{i as C,t as w}from"./config-BwGb7RTa.mjs";import{resolve as T}from"node:path";async function E(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),p(``),p(m.banner.outline.primary(`┏`)+m.banner.outline.primary(`━`.repeat(6))+` `+_.banner.header.primary(`⬤`)+` `+m.banner.outline.primary(`━`)+` `+g(_.banner.header.primary(`Cyclone CLI v0.6.99`))+` `+m.banner.outline.primary(`━`.repeat(Math.max(f().columns-33,0)))+m.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>v(e).length))>Math.max(f().columns+30,20)?`Cyclone UI`:`\n${e.join(`
1
+ import{a as e}from"./prompts-D9o68s9o.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,O as c,R as l,U as u,V as d,j as f,k as p,n as m,q as h,t as g,w as _,x as v,y,z as b}from"./console-DpDNENnS.mjs";import{t as x}from"./info-D7PeBLXT.mjs";import{t as S}from"./update-wnCU1em6.mjs";import{i as C,t as w}from"./config-BwGb7RTa.mjs";import{resolve as T}from"node:path";async function E(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),p(``),p(m.banner.outline.primary(`┏`)+m.banner.outline.primary(`━`.repeat(6))+` `+_.banner.header.primary(`⬤`)+` `+m.banner.outline.primary(`━`)+` `+g(_.banner.header.primary(`Cyclone CLI v0.6.100`))+` `+m.banner.outline.primary(`━`.repeat(Math.max(f().columns-34,0)))+m.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>v(e).length))>Math.max(f().columns+30,20)?`Cyclone UI`:`\n${e.join(`
2
2
  `)}\n`;y(i,Math.max(f().columns-30,20)).forEach(e=>{p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(e).length+2))/2),0))+g(_.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((f().columns-(v(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(`Project Information`).length+2))/2),0))+g(_.banner.command.primary(`Project Information`))+` `.repeat(Math.max(Math.ceil((f().columns-(v(`Project Information`).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),y(g(_.banner.description.primary(`Show Cyclone UI project configuration and installed components.`)),Math.max(60>f().columns/2?f().columns-6:f().columns-30,20)).forEach(e=>{p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(e).length+2))/2),0))+_.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((f().columns-(v(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(f().columns-2,0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),p(m.banner.outline.primary(`┗`)+m.banner.outline.primary(`━`.repeat(Math.max(f().columns-32,0)))+` `+g(_.banner.footer.primary(`https://cyclone-ui.com`))+` `+m.banner.outline.primary(`━`.repeat(6))+m.banner.outline.primary(`┛`),{consoleFn:console.log}),p(``),o&&!l()&&await t(n)}async function D(e){let t=T(e.cwd??process.cwd()),n=await C(t),r={root:t,configFile:n?T(t,w):null,registry:n?.registry??null,style:n?n.style??`tamagui`:null,componentPath:n?T(t,n.path):null,components:n?.components??{},agentInstructions:`Do not change installed or added Cyclone UI component files unless the user specifically instructs you to do so. Use components.json to identify the configured component path and installed files; copied source is not permission to edit it. This includes fixes, refactors, formatting, renaming, deleting, and registry updates or overwrites (including add --overwrite, update-components, and forced initialization). A request to build a feature, style a page, or fix an application does not authorize component changes. Prefer supported props, composition, application-owned wrappers, and theme configuration outside the installed components. If a component change is necessary, explain why and ask for specific instructions before changing it. When the user explicitly requests a component addition or change, keep it scoped and preserve unrelated installed files and local edits.`};e.json?c(JSON.stringify(r,null,2)):(p(`Project: ${r.root}`),p(`Configuration: ${r.configFile??`not initialized`}`),p(`Agent instructions: ${r.agentInstructions}`),n&&(p(`Registry: ${n.registry}`),p(`Style: ${r.style}`),p(`Components: ${Object.keys(n.components).join(`, `)||`none`}`)))}async function O(e=b()){let t={...d()};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(`json=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`json`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`json=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`json`){if(/^--?(json)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(json)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.json=!!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.json=!0}}return a(`quiet`)||(await E(),await S()),!l()&&!a(`quiet`)&&(p(``),(i||h||n.LOG_LEVEL===`debug`)&&p(_.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?x():u(`info`,[`info`],[t],D)}export{O as handler};
@@ -1 +1 @@
1
- import{C as e,_ as t,k as n,t as r,w as i}from"./console-Buk8asv7.mjs";function a(){n(``),n(r(i.heading.secondary(`Usage:`))),n(i.body.secondary(`${i.usage.bin(`>_ cyclone-ui`)} ${i.usage.command(`init`)} ${i.usage.args(`<components...>`)} ${i.usage.options(`[options]`)}`),{padding:0}),n(i.body.secondary(`${i.usage.bin(`>_ cyclone-ui`)} ${i.usage.command(`init`)} ${i.usage.options(`[options]`)} ${i.usage.args(`<components...>`)}`),{padding:0}),n(i.body.secondary(`${i.usage.bin(`>_ cyclone-ui`)} ${i.usage.command(`create`)} ${i.usage.args(`<components...>`)} ${i.usage.options(`[options]`)}`),{padding:0}),n(i.body.secondary(`${i.usage.bin(`>_ cyclone-ui`)} ${i.usage.command(`create`)} ${i.usage.options(`[options]`)} ${i.usage.args(`<components...>`)}`),{padding:0}),n(``),n(r(i.heading.secondary(`Options:`))),e([[{value:i.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--css <css>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary("The app stylesheet that imports `tailwindcss`, relative to the working directory. With the `tailwind` style, the Cyclone UI Tailwind theme is imported there."),align:`left`,border:`none`}],[{value:i.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:i.body.primary(`--force`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Overwrite an existing Cyclone configuration.`),align:`left`,border:`none`}],[{value:i.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--path <path>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Component output path, relative to the working directory.`),align:`left`,border:`none`}],[{value:i.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--registry <registry>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Registry URL.`),align:`left`,border:`none`}],[{value:i.body.primary(`--rsc`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Enable React Server Component support in components.`),align:`left`,border:`none`}],[{value:i.body.primary(`--silent`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Mute non-essential output.`),align:`left`,border:`none`}],[{value:i.body.primary(`--style <tamagui|tailwind>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary("Component styling: Tamagui style props, or `@tamagui/tailwind` class names where a component provides them."),align:`left`,border:`none`}],[{value:i.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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`}]]),n(``),n(i.body.tertiary(`More information can be found in the Initialize command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/init`)}${i.body.tertiary(`.`)}`),{padding:0}),n(``)}export{a as t};
1
+ import{C as e,_ as t,k as n,t as r,w as i}from"./console-DpDNENnS.mjs";function a(){n(``),n(r(i.heading.secondary(`Usage:`))),n(i.body.secondary(`${i.usage.bin(`>_ cyclone-ui`)} ${i.usage.command(`init`)} ${i.usage.args(`<components...>`)} ${i.usage.options(`[options]`)}`),{padding:0}),n(i.body.secondary(`${i.usage.bin(`>_ cyclone-ui`)} ${i.usage.command(`init`)} ${i.usage.options(`[options]`)} ${i.usage.args(`<components...>`)}`),{padding:0}),n(i.body.secondary(`${i.usage.bin(`>_ cyclone-ui`)} ${i.usage.command(`create`)} ${i.usage.args(`<components...>`)} ${i.usage.options(`[options]`)}`),{padding:0}),n(i.body.secondary(`${i.usage.bin(`>_ cyclone-ui`)} ${i.usage.command(`create`)} ${i.usage.options(`[options]`)} ${i.usage.args(`<components...>`)}`),{padding:0}),n(``),n(r(i.heading.secondary(`Options:`))),e([[{value:i.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--css <css>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary("The app stylesheet that imports `tailwindcss`, relative to the working directory. With the `tailwind` style, the Cyclone UI Tailwind theme is imported there."),align:`left`,border:`none`}],[{value:i.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:i.body.primary(`--force`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Overwrite an existing Cyclone configuration.`),align:`left`,border:`none`}],[{value:i.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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:i.body.primary(`--path <path>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Component output path, relative to the working directory.`),align:`left`,border:`none`}],[{value:i.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`--registry <registry>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Registry URL.`),align:`left`,border:`none`}],[{value:i.body.primary(`--rsc`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Enable React Server Component support in components.`),align:`left`,border:`none`}],[{value:i.body.primary(`--silent`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Mute non-essential output.`),align:`left`,border:`none`}],[{value:i.body.primary(`--style <tamagui|tailwind>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary("Component styling: Tamagui style props, or `@tamagui/tailwind` class names where a component provides them."),align:`left`,border:`none`}],[{value:i.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:i.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:i.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`}]]),n(``),n(i.body.tertiary(`More information can be found in the Initialize command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/init`)}${i.body.tertiary(`.`)}`),{padding:0}),n(``)}export{a as t};
package/dist/init.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{a as e}from"./prompts-B5-ag1Dw.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,R as c,S as l,U as u,V as d,j as f,k as p,n as m,q as h,t as g,w as _,x as v,y,z as b}from"./console-Buk8asv7.mjs";import{t as x}from"./init-DcEqZ7SN.mjs";import{t as S}from"./update-DwQwTKWR.mjs";import{r as C,t as w}from"./components-PhAQb7LE.mjs";import{n as T,o as E,r as D,s as O,t as k,u as A}from"./config-BwGb7RTa.mjs";import{dirname as j,join as M,relative as N,resolve as P,sep as F}from"node:path";import{mkdir as I,readFile as L,writeFile as R}from"node:fs/promises";async function z(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),p(``),p(m.banner.outline.primary(`┏`)+m.banner.outline.primary(`━`.repeat(6))+` `+_.banner.header.primary(`⬤`)+` `+m.banner.outline.primary(`━`)+` `+g(_.banner.header.primary(`Cyclone CLI v0.6.99`))+` `+m.banner.outline.primary(`━`.repeat(Math.max(f().columns-33,0)))+m.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>v(e).length))>Math.max(f().columns+30,20)?`Cyclone UI`:`\n${e.join(`
1
+ import{a as e}from"./prompts-D9o68s9o.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,R as c,S as l,U as u,V as d,j as f,k as p,n as m,q as h,t as g,w as _,x as v,y,z as b}from"./console-DpDNENnS.mjs";import{t as x}from"./init-D_JYKNhz.mjs";import{t as S}from"./update-wnCU1em6.mjs";import{r as C,t as w}from"./components-PhAQb7LE.mjs";import{n as T,o as E,r as D,s as O,t as k,u as A}from"./config-BwGb7RTa.mjs";import{dirname as j,join as M,relative as N,resolve as P,sep as F}from"node:path";import{mkdir as I,readFile as L,writeFile as R}from"node:fs/promises";async function z(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),p(``),p(m.banner.outline.primary(`┏`)+m.banner.outline.primary(`━`.repeat(6))+` `+_.banner.header.primary(`⬤`)+` `+m.banner.outline.primary(`━`)+` `+g(_.banner.header.primary(`Cyclone CLI v0.6.100`))+` `+m.banner.outline.primary(`━`.repeat(Math.max(f().columns-34,0)))+m.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>v(e).length))>Math.max(f().columns+30,20)?`Cyclone UI`:`\n${e.join(`
2
2
  `)}\n`;y(i,Math.max(f().columns-30,20)).forEach(e=>{p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(e).length+2))/2),0))+g(_.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((f().columns-(v(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(`Initialize`).length+2))/2),0))+g(_.banner.command.primary(`Initialize`))+` `.repeat(Math.max(Math.ceil((f().columns-(v(`Initialize`).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),y(g(_.banner.description.primary(`Initialize Cyclone UI in a project. Do not change installed or added Cyclone UI component files unless the user specifically instructs you to do so.`)),Math.max(60>f().columns/2?f().columns-6:f().columns-30,20)).forEach(e=>{p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((f().columns-(v(e).length+2))/2),0))+_.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((f().columns-(v(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),p(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(f().columns-2,0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),p(m.banner.outline.primary(`┗`)+m.banner.outline.primary(`━`.repeat(Math.max(f().columns-32,0)))+` `+g(_.banner.footer.primary(`https://cyclone-ui.com`))+` `+m.banner.outline.primary(`━`.repeat(6))+m.banner.outline.primary(`┛`),{consoleFn:console.log}),p(``),o&&!c()&&await t(n)}const B=[`src/index.css`,`src/main.css`,`src/app.css`,`src/styles.css`,`src/globals.css`,`src/app/globals.css`,`app/globals.css`,`styles/globals.css`],V=e=>[`ts`,`mts`,`js`,`mjs`].map(t=>`${e}.config.${t}`),H=/^[ \t]*@import\s+["']tailwindcss["'][^;\n]*;?/mu;async function U(e,t){for(let n of t)if(await D(P(e,n)))return n}function W(e,t){let n=RegExp(`\\b${t}\\s*\\(`,`u`).exec(e);if(!n)return;let r=[],i=n.index+n[0].length,a=0;for(let t=i;t<e.length;t++){let n=e[t];if(n===`"`||n===`'`||n==="`")for(;++t<e.length&&e[t]!==n;)e[t]===`\\`&&t++;else if(`([{`.includes(n))a++;else if(a>0&&`)]}`.includes(n))a--;else if(a===0&&(n===`,`||n===`)`)){if(e.slice(i,t).trim()&&r.push({start:i,end:t}),n===`)`)return{args:r,close:t};i=t+1}}}function G(e,t,n){let r=W(e,t);if(!r)return;if(/\btailwind\s*:/u.test(e))return e;let i=r.args[n];if(i){let t=e.slice(i.start,i.end),n=t.indexOf(`{`);if(n===-1||t.slice(0,n).trim())return;let r=i.start+n+1,a=!e.slice(r,i.end).replace(/[\s}]/gu,``);return`${e.slice(0,r)}${a?` tailwind: true `:` tailwind: true,`}${e.slice(a?e.indexOf(`}`,r):r)}`}let a=[...Array.from({length:n-r.args.length},()=>`{}`),`{ tailwind: true }`].join(`, `),o=r.args.at(-1);return o?`${e.slice(0,o.end)}, ${a}${e.slice(o.end)}`:`${e.slice(0,r.close)}${a}${e.slice(r.close)}`}async function K(e,t){let n=[],r=[],i=!1;for(let[t,a,o,s]of[[V(`vite`),`cycloneUI`,0,`cycloneUI({ tailwind: true })`],[V(`next`),`withCycloneUI`,1,`withCycloneUI(nextConfig, { tailwind: true })`]]){let c=await U(e,[...t]);if(!c)continue;let l=P(e,c),u=await L(l,`utf8`),d=G(u,a,o);d===void 0?r.push(`Turn on Tailwind support in ${c}: ${s}.`):(i||=/\btokens\s*:/u.test(u),d!==u&&(await R(l,d,`utf8`),n.push(c)))}let a=t??await U(e,B),o=a&&E(e,a),s=i?N(j(o??e),M(e,`.cyclone-ui/tailwind.css`)).split(F).join(`/`).replace(/^(?!\.)/u,`./`):`@cyclone-ui/tokens/tailwind.css`,c=`@import "${s}"; before @import "tailwindcss";`,l=o&&await D(o)?await L(o,`utf8`):void 0;if(l===void 0)r.push(`Add ${c} to the app stylesheet.`);else if(!l.includes(s)){let e=H.exec(l);e?(await R(o,`${l.slice(0,e.index)}@import "${s}";\n${l.slice(e.index)}`,`utf8`),n.push(a)):r.push(`${a} doesn't import Tailwind CSS v4. Set up Tailwind (https://tailwindcss.com/docs/installation), then add ${c}`)}return{updated:n,todo:r}}async function q(e,t=[]){let n=P(e.cwd??process.cwd()),r=P(n,k);if(await D(r)&&!e.force)throw Error(`${k} already exists. Re-run with --force to replace it.`);let i=T({registry:e.registry,path:e.path,rsc:e.rsc,style:e.style});if(await I(E(n,i.path),{recursive:!0}),t.length>0){let r=await C(A(i.registry),i,t,{root:n,overwrite:e.force});await w(i,r,{root:n,overwrite:e.force})}else await O(n,i);let a=i.style===`tailwind`?await K(n,e.css):void 0;if(!e.silent){l(`Initialized Cyclone UI in ${n}.`);for(let e of a?.updated??[])p(`Set up Tailwind CSS in ${e}.`);for(let e of a?.todo??[])p(`To do: ${e}`)}}async function J(e=b()){let t={...d()};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(`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(`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(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`rsc=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`rsc`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`rsc=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`rsc`){if(/^--?(rsc)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(rsc)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.rsc=!!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.rsc=!0}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`style=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`style`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`style=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`style`)/^--?(style)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.style=r.replace(/^--?(style)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.style=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`css=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`css`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`css=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`css`)/^--?(css)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.css=r.replace(/^--?(css)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.css=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`force=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`force`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`force=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`force`){if(/^--?(force)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(force)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.force=!!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.force=!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}}let r=[];for(let t=3;t<e.length;t++)e[t].length>1&&e[t].startsWith(`-`)?!e[t].includes(`=`)&&/^(cwd|path|registry|style|css)$/.test(e[t].startsWith(`--`)?e[t].slice(2).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``):e[t].slice(1))&&t++:r.push(e[t]);let s=[];return r.length>0&&(s=r.slice(0,r.length-0).flatMap(e=>e.split(`,`)).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)),a(`quiet`)||(await z(),await S()),!c()&&!a(`quiet`)&&(p(``),(i||h||n.LOG_LEVEL===`debug`)&&p(_.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),o||[`tamagui`,`tailwind`].includes(t.style)||[].push(`Invalid value provided for the \"style\" option - valid values include: tamagui and tailwind; provided: ${t.style}`),t.help?x():u(`init`,[`init`],[t,s],q)}export{J as handler};
@@ -1 +1 @@
1
- import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-Buk8asv7.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.components?a.tags.components(n(` Components `)):a.tags.default(n(` Components `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`list-components`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the List Components command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/list-components`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
1
+ import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-DpDNENnS.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.components?a.tags.components(n(` Components `)):a.tags.default(n(` Components `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`list-components`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the List Components command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/list-components`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
@@ -1,2 +1,2 @@
1
- import{a as e}from"./prompts-B5-ag1Dw.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,R as c,U as l,V as u,j as d,k as f,n as p,q as m,t as h,w as g,x as _,y as v,z as y}from"./console-Buk8asv7.mjs";import{t as b}from"./list-components-DdXzGxVU.mjs";import{t as x}from"./update-DwQwTKWR.mjs";import{t as S}from"./design-system-CbDQZnHU.mjs";import{listComponents as C}from"@razorwind/shell-shock/runtime";async function w(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),f(``),f(p.banner.outline.primary(`┏`)+p.banner.outline.primary(`━`.repeat(6))+` `+g.banner.header.primary(`⬤`)+` `+p.banner.outline.primary(`━`)+` `+h(g.banner.header.primary(`Cyclone CLI v0.6.99`))+` `+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-33,0)))+p.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>_(e).length))>Math.max(d().columns+30,20)?`Cyclone UI`:`\n${e.join(`
1
+ import{a as e}from"./prompts-D9o68s9o.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,R as c,U as l,V as u,j as d,k as f,n as p,q as m,t as h,w as g,x as _,y as v,z as y}from"./console-DpDNENnS.mjs";import{t as b}from"./list-components-y6nMXS8U.mjs";import{t as x}from"./update-wnCU1em6.mjs";import{t as S}from"./design-system-DDbXeMUQ.mjs";import{listComponents as C}from"@razorwind/shell-shock/runtime";async function w(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),f(``),f(p.banner.outline.primary(`┏`)+p.banner.outline.primary(`━`.repeat(6))+` `+g.banner.header.primary(`⬤`)+` `+p.banner.outline.primary(`━`)+` `+h(g.banner.header.primary(`Cyclone CLI v0.6.100`))+` `+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-34,0)))+p.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>_(e).length))>Math.max(d().columns+30,20)?`Cyclone UI`:`\n${e.join(`
2
2
  `)}\n`;v(i,Math.max(d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+h(g.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(`List Components`).length+2))/2),0))+h(g.banner.command.primary(`List Components`))+` `.repeat(Math.max(Math.ceil((d().columns-(_(`List Components`).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),v(h(g.banner.description.primary(`Return every design-system component record. Large output - prefer search-components for normal use.`)),Math.max(60>d().columns/2?d().columns-6:d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+g.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(d().columns-2,0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),f(p.banner.outline.primary(`┗`)+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-32,0)))+` `+h(g.banner.footer.primary(`https://cyclone-ui.com`))+` `+p.banner.outline.primary(`━`.repeat(6))+p.banner.outline.primary(`┛`),{consoleFn:console.log}),f(``),o&&!c()&&await t(n)}function T(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function E(){T(C(S))}async function D(e=y()){let t={...u()};for(let t=0;t<e.slice(0).length;t++)e[t].length>3&&e[t].startsWith(`--`)?`${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`${e[t].slice(1).replaceAll(`-`,``)}`:e[t];return a(`quiet`)||(await w(),await x()),!c()&&!a(`quiet`)&&(f(``),(i||m||n.LOG_LEVEL===`debug`)&&f(g.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?b():l(`list-components`,[`list-components`],[],E)}export{D as handler};
@@ -1 +1 @@
1
- import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-Buk8asv7.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.fonts?a.tags.fonts(n(` Fonts `)):a.tags.default(n(` Fonts `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`list-fonts`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the List Fonts command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/list-fonts`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
1
+ import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-DpDNENnS.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.fonts?a.tags.fonts(n(` Fonts `)):a.tags.default(n(` Fonts `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`list-fonts`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the List Fonts command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/list-fonts`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
@@ -1,2 +1,2 @@
1
- import{a as e}from"./prompts-B5-ag1Dw.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,R as c,U as l,V as u,j as d,k as f,n as p,q as m,t as h,w as g,x as _,y as v,z as y}from"./console-Buk8asv7.mjs";import{t as b}from"./list-fonts-DFiwWskq.mjs";import{t as x}from"./update-DwQwTKWR.mjs";import{t as S}from"./design-system-CbDQZnHU.mjs";import{listFonts as C}from"@razorwind/shell-shock/runtime";async function w(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),f(``),f(p.banner.outline.primary(`┏`)+p.banner.outline.primary(`━`.repeat(6))+` `+g.banner.header.primary(`⬤`)+` `+p.banner.outline.primary(`━`)+` `+h(g.banner.header.primary(`Cyclone CLI v0.6.99`))+` `+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-33,0)))+p.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>_(e).length))>Math.max(d().columns+30,20)?`Cyclone UI`:`\n${e.join(`
1
+ import{a as e}from"./prompts-D9o68s9o.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,R as c,U as l,V as u,j as d,k as f,n as p,q as m,t as h,w as g,x as _,y as v,z as y}from"./console-DpDNENnS.mjs";import{t as b}from"./list-fonts-Dqy68TEz.mjs";import{t as x}from"./update-wnCU1em6.mjs";import{t as S}from"./design-system-DDbXeMUQ.mjs";import{listFonts as C}from"@razorwind/shell-shock/runtime";async function w(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),f(``),f(p.banner.outline.primary(`┏`)+p.banner.outline.primary(`━`.repeat(6))+` `+g.banner.header.primary(`⬤`)+` `+p.banner.outline.primary(`━`)+` `+h(g.banner.header.primary(`Cyclone CLI v0.6.100`))+` `+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-34,0)))+p.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>_(e).length))>Math.max(d().columns+30,20)?`Cyclone UI`:`\n${e.join(`
2
2
  `)}\n`;v(i,Math.max(d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+h(g.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(`List Fonts`).length+2))/2),0))+h(g.banner.command.primary(`List Fonts`))+` `.repeat(Math.max(Math.ceil((d().columns-(_(`List Fonts`).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),v(h(g.banner.description.primary(`Return every design-system font record.`)),Math.max(60>d().columns/2?d().columns-6:d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+g.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(d().columns-2,0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),f(p.banner.outline.primary(`┗`)+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-32,0)))+` `+h(g.banner.footer.primary(`https://cyclone-ui.com`))+` `+p.banner.outline.primary(`━`.repeat(6))+p.banner.outline.primary(`┛`),{consoleFn:console.log}),f(``),o&&!c()&&await t(n)}function T(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function E(){T(C(S))}async function D(e=y()){let t={...u()};for(let t=0;t<e.slice(0).length;t++)e[t].length>3&&e[t].startsWith(`--`)?`${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`${e[t].slice(1).replaceAll(`-`,``)}`:e[t];return a(`quiet`)||(await w(),await x()),!c()&&!a(`quiet`)&&(f(``),(i||m||n.LOG_LEVEL===`debug`)&&f(g.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?b():l(`list-fonts`,[`list-fonts`],[],E)}export{D as handler};
@@ -1 +1 @@
1
- import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-Buk8asv7.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.icons?a.tags.icons(n(` Icons `)):a.tags.default(n(` Icons `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`list-icons`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the List Icons command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/list-icons`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
1
+ import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-DpDNENnS.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.icons?a.tags.icons(n(` Icons `)):a.tags.default(n(` Icons `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`list-icons`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the List Icons command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/list-icons`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
@@ -1,2 +1,2 @@
1
- import{a as e}from"./prompts-B5-ag1Dw.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,R as c,U as l,V as u,j as d,k as f,n as p,q as m,t as h,w as g,x as _,y as v,z as y}from"./console-Buk8asv7.mjs";import{t as b}from"./list-icons-C1S5dHLP.mjs";import{t as x}from"./update-DwQwTKWR.mjs";import{t as S}from"./design-system-CbDQZnHU.mjs";import{listIcons as C}from"@razorwind/shell-shock/runtime";async function w(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),f(``),f(p.banner.outline.primary(`┏`)+p.banner.outline.primary(`━`.repeat(6))+` `+g.banner.header.primary(`⬤`)+` `+p.banner.outline.primary(`━`)+` `+h(g.banner.header.primary(`Cyclone CLI v0.6.99`))+` `+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-33,0)))+p.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>_(e).length))>Math.max(d().columns+30,20)?`Cyclone UI`:`\n${e.join(`
1
+ import{a as e}from"./prompts-D9o68s9o.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,R as c,U as l,V as u,j as d,k as f,n as p,q as m,t as h,w as g,x as _,y as v,z as y}from"./console-DpDNENnS.mjs";import{t as b}from"./list-icons-XgKAoWp2.mjs";import{t as x}from"./update-wnCU1em6.mjs";import{t as S}from"./design-system-DDbXeMUQ.mjs";import{listIcons as C}from"@razorwind/shell-shock/runtime";async function w(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),f(``),f(p.banner.outline.primary(`┏`)+p.banner.outline.primary(`━`.repeat(6))+` `+g.banner.header.primary(`⬤`)+` `+p.banner.outline.primary(`━`)+` `+h(g.banner.header.primary(`Cyclone CLI v0.6.100`))+` `+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-34,0)))+p.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>_(e).length))>Math.max(d().columns+30,20)?`Cyclone UI`:`\n${e.join(`
2
2
  `)}\n`;v(i,Math.max(d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+h(g.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(`List Icons`).length+2))/2),0))+h(g.banner.command.primary(`List Icons`))+` `.repeat(Math.max(Math.ceil((d().columns-(_(`List Icons`).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),v(h(g.banner.description.primary(`Return every design-system icon record. Large output - prefer search-icons for normal use.`)),Math.max(60>d().columns/2?d().columns-6:d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+g.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(d().columns-2,0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),f(p.banner.outline.primary(`┗`)+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-32,0)))+` `+h(g.banner.footer.primary(`https://cyclone-ui.com`))+` `+p.banner.outline.primary(`━`.repeat(6))+p.banner.outline.primary(`┛`),{consoleFn:console.log}),f(``),o&&!c()&&await t(n)}function T(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function E(){T(C(S))}async function D(e=y()){let t={...u()};for(let t=0;t<e.slice(0).length;t++)e[t].length>3&&e[t].startsWith(`--`)?`${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`${e[t].slice(1).replaceAll(`-`,``)}`:e[t];return a(`quiet`)||(await w(),await x()),!c()&&!a(`quiet`)&&(f(``),(i||m||n.LOG_LEVEL===`debug`)&&f(g.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?b():l(`list-icons`,[`list-icons`],[],E)}export{D as handler};
@@ -1 +1 @@
1
- import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-Buk8asv7.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.tokens?a.tags.tokens(n(` Tokens `)):a.tags.default(n(` Tokens `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`list-tokens`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the List Tokens command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/list-tokens`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
1
+ import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-DpDNENnS.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))} ${a.tags.tokens?a.tags.tokens(n(` Tokens `)):a.tags.default(n(` Tokens `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`list-tokens`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the List Tokens command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/list-tokens`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
@@ -1,2 +1,2 @@
1
- import{a as e}from"./prompts-B5-ag1Dw.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,R as c,U as l,V as u,j as d,k as f,n as p,q as m,t as h,w as g,x as _,y as v,z as y}from"./console-Buk8asv7.mjs";import{t as b}from"./list-tokens-GB61Lkgo.mjs";import{t as x}from"./update-DwQwTKWR.mjs";import{t as S}from"./design-system-CbDQZnHU.mjs";import{listTokens as C}from"@razorwind/shell-shock/runtime";async function w(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),f(``),f(p.banner.outline.primary(`┏`)+p.banner.outline.primary(`━`.repeat(6))+` `+g.banner.header.primary(`⬤`)+` `+p.banner.outline.primary(`━`)+` `+h(g.banner.header.primary(`Cyclone CLI v0.6.99`))+` `+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-33,0)))+p.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>_(e).length))>Math.max(d().columns+30,20)?`Cyclone UI`:`\n${e.join(`
1
+ import{a as e}from"./prompts-D9o68s9o.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,R as c,U as l,V as u,j as d,k as f,n as p,q as m,t as h,w as g,x as _,y as v,z as y}from"./console-DpDNENnS.mjs";import{t as b}from"./list-tokens-Bc4Eg_JQ.mjs";import{t as x}from"./update-wnCU1em6.mjs";import{t as S}from"./design-system-DDbXeMUQ.mjs";import{listTokens as C}from"@razorwind/shell-shock/runtime";async function w(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),f(``),f(p.banner.outline.primary(`┏`)+p.banner.outline.primary(`━`.repeat(6))+` `+g.banner.header.primary(`⬤`)+` `+p.banner.outline.primary(`━`)+` `+h(g.banner.header.primary(`Cyclone CLI v0.6.100`))+` `+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-34,0)))+p.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>_(e).length))>Math.max(d().columns+30,20)?`Cyclone UI`:`\n${e.join(`
2
2
  `)}\n`;v(i,Math.max(d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+h(g.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(`List Tokens`).length+2))/2),0))+h(g.banner.command.primary(`List Tokens`))+` `.repeat(Math.max(Math.ceil((d().columns-(_(`List Tokens`).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),v(h(g.banner.description.primary(`Return every design token (name, value, type, description, CSS variable). Large output - prefer search-tokens for normal use.`)),Math.max(60>d().columns/2?d().columns-6:d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+g.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(d().columns-2,0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),f(p.banner.outline.primary(`┗`)+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-32,0)))+` `+h(g.banner.footer.primary(`https://cyclone-ui.com`))+` `+p.banner.outline.primary(`━`.repeat(6))+p.banner.outline.primary(`┛`),{consoleFn:console.log}),f(``),o&&!c()&&await t(n)}function T(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function E(){T(C(S))}async function D(e=y()){let t={...u()};for(let t=0;t<e.slice(0).length;t++)e[t].length>3&&e[t].startsWith(`--`)?`${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`${e[t].slice(1).replaceAll(`-`,``)}`:e[t];return a(`quiet`)||(await w(),await x()),!c()&&!a(`quiet`)&&(f(``),(i||m||n.LOG_LEVEL===`debug`)&&f(g.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?b():l(`list-tokens`,[`list-tokens`],[],E)}export{D as handler};
@@ -1 +1 @@
1
- import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-Buk8asv7.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.ai?a.tags.ai(n(` AI `)):a.tags.default(n(` AI `))} ${a.tags.utility?a.tags.utility(n(` Utility `)):a.tags.default(n(` Utility `))} ${a.tags.mcp?a.tags.mcp(n(` MCP `)):a.tags.default(n(` MCP `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`mcp`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--include-self`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Whether to expose the MCP command itself as a tool in the generated server (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the MCP Server command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/mcp`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
1
+ import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-DpDNENnS.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.ai?a.tags.ai(n(` AI `)):a.tags.default(n(` AI `))} ${a.tags.utility?a.tags.utility(n(` Utility `)):a.tags.default(n(` Utility `))} ${a.tags.mcp?a.tags.mcp(n(` MCP `)):a.tags.default(n(` MCP `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`mcp`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--include-self`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Whether to expose the MCP command itself as a tool in the generated server (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the MCP Server command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/mcp`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
package/dist/mcp.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import{t as e}from"./mcp-jgopt_Rd.mjs";import{I as t,U as n,V as r,z as i}from"./console-Buk8asv7.mjs";import{McpServer as a}from"@modelcontextprotocol/server";import{StdioServerTransport as o}from"@modelcontextprotocol/server/stdio";import{defineMetadata as s,defineOptions as c}from"@shell-shock/core";import{z as l}from"zod/v4";const u=[{id:`add`,name:`add`,path:`add`,segments:[`add`],title:`Add`,description:`Adds a new component to the project. Do not change installed or added Cyclone UI component files unless the user specifically instructs you to do so.
1
+ import{t as e}from"./mcp-CmeGo4sS.mjs";import{I as t,U as n,V as r,z as i}from"./console-DpDNENnS.mjs";import{McpServer as a}from"@modelcontextprotocol/server";import{StdioServerTransport as o}from"@modelcontextprotocol/server/stdio";import{defineMetadata as s,defineOptions as c}from"@shell-shock/core";import{z as l}from"zod/v4";const u=[{id:`add`,name:`add`,path:`add`,segments:[`add`],title:`Add`,description:`Adds a new component to the project. Do not change installed or added Cyclone UI component files unless the user specifically instructs you to do so.
2
2
  Options: --cwd (string), --overwrite (boolean), --all (boolean), --path (string), --dry-run (boolean), --diff (boolean), --view (boolean), --silent (boolean), --registry (string), --rsc (boolean)
3
3
  Args: components:string[]`,toolName:`add`,options:[{name:`cwd`,title:`Current Working Directory`,description:`The working directory.`,type:`string`,required:!1,variadic:!1},{name:`overwrite`,title:`Overwrite`,description:`Overwrite existing files.`,type:`boolean`,required:!1,variadic:!1},{name:`all`,title:`All`,description:`Add every available component.`,type:`boolean`,required:!1,variadic:!1},{name:`path`,title:`Path`,description:`Override the configured component output path.`,type:`string`,required:!1,variadic:!1},{name:`dryRun`,title:`Dry Run`,description:`Preview changes without writing files.`,type:`boolean`,required:!1,variadic:!1},{name:`diff`,title:`Diff`,description:`Show the changes as a diff without writing files.`,type:`boolean`,required:!1,variadic:!1},{name:`view`,title:`View`,description:`Show resolved file contents without writing files.`,type:`boolean`,required:!1,variadic:!1},{name:`silent`,title:`Silent`,description:`Mute non-essential output.`,type:`boolean`,required:!1,variadic:!1},{name:`registry`,title:`Registry`,description:`Override the configured registry URL.`,type:`string`,required:!1,variadic:!1},{name:`rsc`,title:`React Server Components`,description:`Override React Server Component support for this installation.`,type:`boolean`,required:!1,variadic:!1}],args:[{name:`components`,title:`Components`,description:"Component names to add; `email` adds every React Email component.",type:`string`,required:!1,variadic:!0}]},{id:`analyze-a11y`,name:`analyze-a11y`,path:`analyze-a11y`,segments:[`analyze-a11y`],title:`Analyze Accessibility`,description:`Analyze a React/JSX source string (or file) for likely accessibility issues and hard-coded colors, suggesting the nearest design tokens for each color.
4
4
  Options: --code (string), --file (string), --component-name (string), --context (string), --pattern-analysis (boolean)`,toolName:`analyze-a11y`,options:[{name:`code`,title:`Code`,description:`Source code of a React component or JSX snippet to analyze.`,type:`string`,required:!1,variadic:!1},{name:`file`,title:`File`,description:`Path to a source file to analyze (alternative to --code).`,type:`string`,required:!1,variadic:!1},{name:`componentName`,title:`Component Name`,description:`Optional label for the component under review.`,type:`string`,required:!1,variadic:!1},{name:`context`,title:`Context`,description:`Optional usage context (for example "in a form" or "modal").`,type:`string`,required:!1,variadic:!1},{name:`patternAnalysis`,title:`Pattern Analysis`,description:`Run regex-based heuristics (unlabeled buttons, missing alt, …).`,type:`boolean`,required:!1,variadic:!1}],args:[]},{id:`build`,name:`build`,path:`build`,segments:[`build`],title:`Build`,description:`Generate design tokens and build the resulting Tamagui config.
@@ -1 +1 @@
1
- import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-Buk8asv7.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`plan`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--components <components...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for components.`),align:`left`,border:`none`}],[{value:a.body.primary(`--fonts <fonts...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for fonts.`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--icons <icons...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for icons.`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Maximum matches per term for each list (default: 2).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--tokens <tokens...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for design tokens.`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the Plan command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/plan`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
1
+ import{C as e,_ as t,h as n,k as r,t as i,w as a}from"./console-DpDNENnS.mjs";function o(){r(`${i(a.heading.secondary(`Tags: `))} ${a.tags.designSystem?a.tags.designSystem(n(` Design System `)):a.tags.default(n(` Design System `))}`,{padding:0}),r(``),r(i(a.heading.secondary(`Usage:`))),r(a.body.secondary(`${a.usage.bin(`>_ cyclone-ui`)} ${a.usage.command(`plan`)} ${a.usage.options(`[options]`)}`),{padding:0}),r(``),r(i(a.heading.secondary(`Options:`))),e([[{value:a.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--components <components...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for components.`),align:`left`,border:`none`}],[{value:a.body.primary(`--fonts <fonts...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for fonts.`),align:`left`,border:`none`}],[{value:a.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--icons <icons...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for icons.`),align:`left`,border:`none`}],[{value:a.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Maximum matches per term for each list (default: 2).`),align:`left`,border:`none`}],[{value:a.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`--tokens <tokens...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Search terms for design tokens.`),align:`left`,border:`none`}],[{value:a.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:a.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:a.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),r(``),r(a.body.tertiary(`More information can be found in the Plan command documentation at ${t(`https://docs.cyclone-ui.com/reference/cli/plan`)}${a.body.tertiary(`.`)}`),{padding:0}),r(``)}export{o as t};
package/dist/plan.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{a as e}from"./prompts-B5-ag1Dw.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,R as c,U as l,V as u,j as d,k as f,n as p,q as m,t as h,w as g,x as _,y as v,z as y}from"./console-Buk8asv7.mjs";import{t as b}from"./plan-DWfe_jWm.mjs";import{t as x}from"./update-DwQwTKWR.mjs";import{t as S}from"./design-system-CbDQZnHU.mjs";import{isSearchError as C,plan as w}from"@razorwind/shell-shock/runtime";async function T(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),f(``),f(p.banner.outline.primary(`┏`)+p.banner.outline.primary(`━`.repeat(6))+` `+g.banner.header.primary(`⬤`)+` `+p.banner.outline.primary(`━`)+` `+h(g.banner.header.primary(`Cyclone CLI v0.6.99`))+` `+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-33,0)))+p.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>_(e).length))>Math.max(d().columns+30,20)?`Cyclone UI`:`\n${e.join(`
1
+ import{a as e}from"./prompts-D9o68s9o.mjs";import{F as t,G as n,H as r,J as i,L as a,M as o,N as s,R as c,U as l,V as u,j as d,k as f,n as p,q as m,t as h,w as g,x as _,y as v,z as y}from"./console-DpDNENnS.mjs";import{t as b}from"./plan-CqS9QlLY.mjs";import{t as x}from"./update-wnCU1em6.mjs";import{t as S}from"./design-system-DDbXeMUQ.mjs";import{isSearchError as C,plan as w}from"@razorwind/shell-shock/runtime";async function T(n=500){if(r().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||s)return;r().set(`is-banner-displayed`,!0),f(``),f(p.banner.outline.primary(`┏`)+p.banner.outline.primary(`━`.repeat(6))+` `+g.banner.header.primary(`⬤`)+` `+p.banner.outline.primary(`━`)+` `+h(g.banner.header.primary(`Cyclone CLI v0.6.100`))+` `+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-34,0)))+p.banner.outline.primary(`┓`),{consoleFn:console.log});let i=Math.max(...e.map(e=>_(e).length))>Math.max(d().columns+30,20)?`Cyclone UI`:`\n${e.join(`
2
2
  `)}\n`;v(i,Math.max(d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+h(g.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(`Plan`).length+2))/2),0))+h(g.banner.command.primary(`Plan`))+` `.repeat(Math.max(Math.ceil((d().columns-(_(`Plan`).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),v(h(g.banner.description.primary(`Search tokens, icons, components and fonts in one call to plan what to build. Provide terms for at least one list.`)),Math.max(60>d().columns/2?d().columns-6:d().columns-30,20)).forEach(e=>{f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(_(e).length+2))/2),0))+g.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((d().columns-(_(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),f(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(d().columns-2,0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),f(p.banner.outline.primary(`┗`)+p.banner.outline.primary(`━`.repeat(Math.max(d().columns-32,0)))+` `+h(g.banner.footer.primary(`https://cyclone-ui.com`))+` `+p.banner.outline.primary(`━`.repeat(6))+p.banner.outline.primary(`┛`),{consoleFn:console.log}),f(``),o&&!c()&&await t(n)}function E(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function D(e){let t=w(S,{tokens:e.tokens,icons:e.icons,components:e.components,fonts:e.fonts,limit:e.limit});E(t),C(t)&&(process.exitCode=1)}async function O(e=y()){let t={...u(),tokens:[],icons:[],components:[],fonts:[],limit:2};for(let n=0;n<e.slice(0).length;n++){let r=e[n].length>3&&e[n].startsWith(`--`)?`--${e[n].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[n].length>2&&e[n].startsWith(`-`)?`-${e[n].slice(1).replaceAll(`-`,``)}`:e[n];if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`tokens=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`tokens`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`tokens=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`tokens`)t.tokens??=[],/^--?(tokens)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.tokens.push(...r.replace(/^--?(tokens)=/,``).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)):e.length>n+1&&t.tokens.push(...e[++n].split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`icons=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`icons`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`icons=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`icons`)t.icons??=[],/^--?(icons)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.icons.push(...r.replace(/^--?(icons)=/,``).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)):e.length>n+1&&t.icons.push(...e[++n].split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`components=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`components`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`components=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`components`)t.components??=[],/^--?(components)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.components.push(...r.replace(/^--?(components)=/,``).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)):e.length>n+1&&t.components.push(...e[++n].split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`fonts=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fonts`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`fonts=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fonts`)t.fonts??=[],/^--?(fonts)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.fonts.push(...r.replace(/^--?(fonts)=/,``).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)):e.length>n+1&&t.fonts.push(...e[++n].split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`){if(/^--?(limit)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=Number(r.replace(/^--?(limit)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(e)||(t.limit=e)}else if(e.length>n+1){let r=Number(e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(r)||(t.limit=r)}}}return a(`quiet`)||(await T(),await x()),!c()&&!a(`quiet`)&&(f(``),(i||m||n.LOG_LEVEL===`debug`)&&f(g.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),o||t.limit&&Number.isNaN(t.limit)&&[].push(`Invalid numeric value provided for the "limit" option`),t.help?b():l(`plan`,[`plan`],[t],D)}export{O as handler};