@cyclone-ui/cli 0.6.15 → 0.6.16
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.
- package/dist/{add-QZOxYcRK.mjs → add-B0ksm56V.mjs} +1 -1
- package/dist/add.mjs +1 -1
- package/dist/{analyze-a11y-BU8faGzr.mjs → analyze-a11y-B5thFJfM.mjs} +1 -1
- package/dist/analyze-a11y.mjs +1 -1
- package/dist/bin.mjs +7 -7
- package/dist/{build-BMHh7SnK.mjs → build-C_aESc5i.mjs} +1 -1
- package/dist/{build-tokens-C_wzH90_.mjs → build-tokens-BpjJ5mnN.mjs} +1 -1
- package/dist/build-tokens.mjs +1 -1
- package/dist/build.mjs +1 -1
- package/dist/{changelog-Q5DymQRF.mjs → changelog-BsZJEJL6.mjs} +1 -1
- package/dist/changelog.mjs +15 -1
- package/dist/{command-DbeCTonF.mjs → command-BhPb4JYp.mjs} +1 -1
- package/dist/completions-bash-config.mjs +1 -1
- package/dist/completions-bash-script.mjs +1 -1
- package/dist/completions-fish-config.mjs +1 -1
- package/dist/completions-fish-script.mjs +1 -1
- package/dist/completions-powershell-config.mjs +1 -1
- package/dist/completions-powershell-script.mjs +1 -1
- package/dist/completions-zsh-config.mjs +1 -1
- package/dist/completions-zsh-script.mjs +1 -1
- package/dist/{config-6_J_XRsw.mjs → config-CFFzhlGS.mjs} +1 -1
- package/dist/{config-C09YwAnf.mjs → config-jtyFzBzm.mjs} +1 -1
- package/dist/{config-B169hbG3.mjs → config-mOfJXU_o.mjs} +1 -1
- package/dist/{config-YZotDfFJ.mjs → config-v8DJTE1c.mjs} +1 -1
- package/dist/{console-C3z2Y61E.mjs → console-C-VYSyVM.mjs} +1 -1
- package/dist/design-system-DG84XbEg.mjs +1 -0
- package/dist/{diff-BLZFm5eJ.mjs → diff-CqQszBvv.mjs} +1 -1
- package/dist/diff.mjs +1 -1
- package/dist/{docs-A44uCA1K.mjs → docs-D5n9rxM8.mjs} +1 -1
- package/dist/docs.mjs +1 -1
- package/dist/{guidelines-CfvgqEk7.mjs → guidelines-OOBQSlwZ.mjs} +1 -1
- package/dist/guidelines.mjs +1 -1
- package/dist/help.mjs +1 -1
- package/dist/{info-CMedDFnc.mjs → info-BjkftrRU.mjs} +1 -1
- package/dist/info.mjs +1 -1
- package/dist/{init-DBROV6sE.mjs → init-CUu2QknT.mjs} +1 -1
- package/dist/init.mjs +1 -1
- package/dist/{list-components-Dx-J-Dnq.mjs → list-components-IRTpYNCE.mjs} +1 -1
- package/dist/list-components.mjs +1 -1
- package/dist/{list-fonts-DBT1mrsH.mjs → list-fonts-CRi0tgR5.mjs} +1 -1
- package/dist/list-fonts.mjs +1 -1
- package/dist/{list-icons-C8xYxnqZ.mjs → list-icons-BrrLE7Jh.mjs} +1 -1
- package/dist/list-icons.mjs +1 -1
- package/dist/{list-tokens-BKFnTzsn.mjs → list-tokens-yl55li7s.mjs} +1 -1
- package/dist/list-tokens.mjs +1 -1
- package/dist/{mcp-B6D5petn.mjs → mcp-BRM1dBzs.mjs} +1 -1
- package/dist/mcp.mjs +1 -1
- package/dist/{plan-ZWeXBx16.mjs → plan-BKb6t-wy.mjs} +1 -1
- package/dist/plan.mjs +1 -1
- package/dist/{prompts-e3s_BIKU.mjs → prompts-B6y8eK2p.mjs} +1 -1
- package/dist/{registry-DnOTA6eC.mjs → registry-NV95_7f3.mjs} +1 -1
- package/dist/registry-validate.mjs +1 -1
- package/dist/{script-CkCsXZJK.mjs → script--CPG0xuH.mjs} +1 -1
- package/dist/{script-CI1NIrdw.mjs → script-B6Wm_unw.mjs} +1 -1
- package/dist/{script-CucYHbm0.mjs → script-DWRCS2bB.mjs} +1 -1
- package/dist/{script-B00X1Gka.mjs → script-c5pBOBy4.mjs} +1 -1
- package/dist/{search-components-CpFDPRfz.mjs → search-components-saXZIXJD.mjs} +1 -1
- package/dist/search-components.mjs +1 -1
- package/dist/{search-fonts-BbUV2DYZ.mjs → search-fonts-PugVumzj.mjs} +1 -1
- package/dist/search-fonts.mjs +1 -1
- package/dist/{search-icons-JbWNW9vv.mjs → search-icons-66_1s6h8.mjs} +1 -1
- package/dist/search-icons.mjs +1 -1
- package/dist/{search-tokens-Mwyu1sLi.mjs → search-tokens-fq5hvb1N.mjs} +1 -1
- package/dist/search-tokens.mjs +1 -1
- package/dist/{search-JStGlg5t.mjs → search-w8lOAZ3X.mjs} +1 -1
- package/dist/search.mjs +1 -1
- package/dist/{update-0bXYJiJj.mjs → update-BNLqoR6e.mjs} +1 -1
- package/dist/{update-wulHGaSU.mjs → update-BR-_G3Ro.mjs} +1 -1
- package/dist/update.mjs +1 -1
- package/dist/{validate-CqYKElXI.mjs → validate-CoXRpxq3.mjs} +1 -1
- package/dist/{view-BLGl-i0d.mjs → view-_4gMX5q7.mjs} +1 -1
- package/dist/view.mjs +1 -1
- package/package.json +4 -4
- package/dist/design-system-CNVVaZ1M.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e,S as t,h as n,t as r,x as i}from"./console-
|
|
1
|
+
import{D as e,S as t,h as n,t as r,x as i}from"./console-C-VYSyVM.mjs";function a(){e(``),e(r(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`add`)} ${t.usage.args(`<components...>`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`add`)} ${t.usage.options(`[options]`)} ${t.usage.args(`<components...>`)}`),{padding:0}),e(``),e(r(t.heading.secondary(`Options:`))),i([[{value:t.body.primary(`--all`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Add every available component.`),align:`left`,border:`none`}],[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:t.body.primary(`--diff`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the changes as a diff without writing files.`),align:`left`,border:`none`}],[{value:t.body.primary(`--dry-run`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Preview changes without writing files.`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--overwrite`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Overwrite existing files.`),align:`left`,border:`none`}],[{value:t.body.primary(`--path <path>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Override the configured component output path.`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--registry <registry>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Override the configured registry URL.`),align:`left`,border:`none`}],[{value:t.body.primary(`--rsc`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Override React Server Component support for this installation.`),align:`left`,border:`none`}],[{value:t.body.primary(`--silent`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Mute non-essential output.`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--view`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show resolved file contents without writing files.`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),e(``),e(t.body.tertiary(`More information can be found in the Add command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/add`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{a as t};
|
package/dist/add.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{A as e,B as t,D as n,E as r,F as i,G as a,I as o,K as s,L as c,N as l,S as u,U as d,V as f,_ as p,j as m,k as h,n as g,t as _,y as v,z as y}from"./console-
|
|
1
|
+
import{A as e,B as t,D as n,E as r,F as i,G as a,I as o,K as s,L as c,N as l,S as u,U as d,V as f,_ as p,j as m,k as h,n as g,t as _,y as v,z as y}from"./console-C-VYSyVM.mjs";import{a as b}from"./prompts-B6y8eK2p.mjs";import{t as x}from"./update-BR-_G3Ro.mjs";import{a as S,u as C}from"./config-DxsYsT40.mjs";import{i as w,n as T,r as E,t as D}from"./components-BeiahS2c.mjs";import{t as O}from"./add-B0ksm56V.mjs";import{resolve as k}from"node:path";async function A(r=500){if(t().get(`is-banner-displayed`)||i(`no-banner`)||i(`hide-banner`)||m)return;t().set(`is-banner-displayed`,!0),n(``),n(g.banner.outline.primary(`┏`)+g.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+g.banner.outline.primary(`━`)+` `+_(u.banner.header.primary(`Cyclone CLI v0.6.15`))+` `+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-33,0)))+g.banner.outline.primary(`┓`),{consoleFn:console.log});let a=Math.max(...b.map(e=>v(e).length))>Math.max(h().columns+30,20)?`Cyclone User Interface`:`\n${b.join(`
|
|
2
2
|
`)}\n`;p(a,Math.max(h().columns-30,20)).forEach(e=>{n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(e).length+2))/2),0))+_(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((h().columns-(v(e).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(`Add`).length+2))/2),0))+_(u.banner.command.primary(`Add`))+` `.repeat(Math.max(Math.ceil((h().columns-(v(`Add`).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),p(_(u.banner.description.primary(`Adds a new component to the project.`)),Math.max(60>h().columns/2?h().columns-6:h().columns-30,20)).forEach(e=>{n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((h().columns-(v(e).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(h().columns-2,0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),n(g.banner.outline.primary(`┗`)+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-32,0)))+` `+_(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+g.banner.outline.primary(`━`.repeat(6))+g.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!o()&&await l(r)}async function j(e,t=[]){let n=k(e.cwd??process.cwd()),i=await S(n),a=C(e.registry??i.registry),o=e.all?(await a.components.list.query()).map(e=>e.name):t;if(o.length===0)throw Error(`Provide at least one component or use --all.`);let s=e.dryRun||e.diff||e.view,c=await T(a,i,o,{root:n,path:e.path,overwrite:e.overwrite,rsc:e.rsc,dryRun:s});e.diff?r(E(c,n)):e.view?r(c.files.map(e=>`// ${e.path}\n${e.content}`).join(`
|
|
3
3
|
|
|
4
4
|
`)):e.silent||r(w(c,n)),await D(i,c,{root:n,path:e.path,overwrite:e.overwrite,dryRun:s})}async function M(e=c()){let t={...y()};for(let n=0;n<e.slice(0).length;n++){let r=e[n].length>3&&e[n].startsWith(`--`)?`--${e[n].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[n].length>2&&e[n].startsWith(`-`)?`-${e[n].slice(1).replaceAll(`-`,``)}`:e[n];if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`)/^--?(cwd)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.cwd=r.replace(/^--?(cwd)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.cwd=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`overwrite=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`overwrite`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`overwrite=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`overwrite`){if(/^--?(overwrite)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(overwrite)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.overwrite=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.overwrite=!0}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`all=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`all`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`all=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`all`){if(/^--?(all)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(all)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.all=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.all=!0}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`path=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`path`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`path=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`path`)/^--?(path)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.path=r.replace(/^--?(path)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.path=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`dryrun=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`dryrun`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`dryrun=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`dryrun`){if(/^--?(dryrun)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(dryrun)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.dryRun=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.dryRun=!0}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`diff=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`diff`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`diff=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`diff`){if(/^--?(diff)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(diff)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.diff=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.diff=!0}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`view=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`view`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`view=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`view`){if(/^--?(view)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(view)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.view=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.view=!0}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`silent=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`silent`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`silent=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`silent`){if(/^--?(silent)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(silent)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.silent=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.silent=!0}else 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}}let r=Math.max(0,e.slice(2).findIndex(e=>e.startsWith(`-`)&&/^(cwd|overwrite|all|path|dryrun|diff|view|silent|registry|rsc)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+2,l=r>2?2:Math.max(0,e.slice(r).findLastIndex(e=>e.startsWith(`-`)&&/^(cwd|overwrite|all|path|dryrun|diff|view|silent|registry|rsc)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+2,p=[];return l+0<e.length&&l+0!==r&&(p=e.slice(l+0,(r>l?r:e.length)-1).join(` `).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)),i(`quiet`)||(await A(),await x()),!o()&&!i(`quiet`)&&(n(``),(s||a||d.LOG_LEVEL===`debug`)&&n(u.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?O():f(`add`,[`add`],[t,p],j)}export{M as handler};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e,S as t,h as n,p as r,t as i,x as a}from"./console-
|
|
1
|
+
import{D as e,S as t,h as n,p as r,t as i,x as a}from"./console-C-VYSyVM.mjs";function o(){e(`${i(t.heading.secondary(`Tags: `))} ${t.tags.designSystem?t.tags.designSystem(r(` Design System `)):t.tags.default(r(` Design System `))} ${t.tags.accessibility?t.tags.accessibility(r(` Accessibility `)):t.tags.default(r(` Accessibility `))}`,{padding:0}),e(``),e(i(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`analyze-a11y`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``),e(i(t.heading.secondary(`Options:`))),a([[{value:t.body.primary(`--code <code>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Source code of a React component or JSX snippet to analyze.`),align:`left`,border:`none`}],[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--component-name <component_name>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Optional label for the component under review.`),align:`left`,border:`none`}],[{value:t.body.primary(`--context <context>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Optional usage context (for example "in a form" or "modal").`),align:`left`,border:`none`}],[{value:t.body.primary(`--file <file>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Path to a source file to analyze (alternative to --code).`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--pattern-analysis`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Run regex-based heuristics (unlabeled buttons, missing alt, …) (default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),e(``),e(t.body.tertiary(`More information can be found in the Analyze Accessibility command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/analyze-a11y`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{o as t};
|
package/dist/analyze-a11y.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-
|
|
1
|
+
import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-C-VYSyVM.mjs";import{a as y}from"./prompts-B6y8eK2p.mjs";import{t as b}from"./update-BR-_G3Ro.mjs";import{t as x}from"./design-system-DG84XbEg.mjs";import{t as S}from"./analyze-a11y-B5thFJfM.mjs";import{readFile as C}from"node:fs/promises";import{analyzeA11y as w}from"@razorwind/shell-shock/runtime";async function T(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.15`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
|
|
2
2
|
`)}\n`;f(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+g(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(`Analyze Accessibility`).length+2))/2),0))+g(l.banner.command.primary(`Analyze Accessibility`))+` `.repeat(Math.max(Math.ceil((m().columns-(_(`Analyze Accessibility`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),f(g(l.banner.description.primary(`Analyze a React/JSX source string (or file) for likely accessibility issues and hard-coded colors, suggesting the nearest design tokens for each color.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}function E(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function D(e){let t=e.code??(e.file?await C(e.file,`utf8`):void 0);t?E(w(x,t,{componentName:e.componentName,context:e.context,includePatternAnalysis:e.patternAnalysis!==!1})):(E({error:`Provide source code via --code or a path via --file.`}),process.exitCode=1)}async function O(e=s()){let t={...v(),patternAnalysis:!0};for(let n=0;n<e.slice(0).length;n++){let r=e[n].length>3&&e[n].startsWith(`--`)?`--${e[n].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[n].length>2&&e[n].startsWith(`-`)?`-${e[n].slice(1).replaceAll(`-`,``)}`:e[n];if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`code=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`code`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`code=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`code`)/^--?(code)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.code=r.replace(/^--?(code)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.code=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`file=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`file`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`file=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`file`)/^--?(file)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.file=r.replace(/^--?(file)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.file=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`componentname=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`componentname`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`componentname=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`componentname`)/^--?(componentname)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.componentName=r.replace(/^--?(componentname)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.componentName=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`context=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`context`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`context=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`context`)/^--?(context)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.context=r.replace(/^--?(context)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.context=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`patternanalysis=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`patternanalysis`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`patternanalysis=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`patternanalysis`){if(/^--?(patternanalysis)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(patternanalysis)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.patternAnalysis=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.patternAnalysis=!0}}return r(`quiet`)||(await T(),await b()),!a()&&!r(`quiet`)&&(n(``),(o||i||u.LOG_LEVEL===`debug`)&&n(l.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?S():d(`analyze-a11y`,[`analyze-a11y`],[t],D)}export{O as handler};
|
package/dist/bin.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import{A as e,B as t,D as n,F as r,H as i,I as a,L as o,N as s,O as c,R as l,S as u,_ as d,c as f,j as p,k as m,n as h,t as g,w as _,y as v}from"./console-
|
|
4
|
-
`)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions`).length+2))/2),0))+g(u.banner.command.primary(`Completions`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands for generating shell completion scripts for Cyclone User Interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function M(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.
|
|
5
|
-
`)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions - Bash`).length+2))/2),0))+g(u.banner.command.primary(`Completions - Bash`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions - Bash`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands to setup bash completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function N(t=o()){let n=``;if(t.length>4&&t[4]&&(n=t[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-bash-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-bash-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await M();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(cyclone-ui completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(cyclone-ui completions bash config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(4)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-bash-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-bash-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return w()}async function P(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.
|
|
6
|
-
`)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions - Fish`).length+2))/2),0))+g(u.banner.command.primary(`Completions - Fish`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions - Fish`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands to setup Fish completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function F(t=o()){let n=``;if(t.length>4&&t[4]&&(n=t[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-fish-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-fish-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await P();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(cyclone-ui completions fish script)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(cyclone-ui completions fish config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(4)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-fish-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-fish-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return T()}async function I(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.
|
|
7
|
-
`)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions - PowerShell`).length+2))/2),0))+g(u.banner.command.primary(`Completions - PowerShell`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions - PowerShell`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands to setup PowerShell completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function L(t=o()){let n=``;if(t.length>4&&t[4]&&(n=t[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-powershell-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-powershell-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await I();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(cyclone-ui completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cyclone-ui completions powershell config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(4)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-powershell-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-powershell-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return O()}async function R(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.
|
|
8
|
-
`)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions - Zsh`).length+2))/2),0))+g(u.banner.command.primary(`Completions - Zsh`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions - Zsh`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands to setup Zsh completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function z(t=o()){let n=``;if(t.length>4&&t[4]&&(n=t[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-zsh-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-zsh-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await R();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(cyclone-ui completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(cyclone-ui completions zsh config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(4)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-zsh-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-zsh-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return E()}async function B(t=o()){let n=``;if(t.length>3&&t[3]&&(n=t[3]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`bash`)return N(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`zsh`)return z(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`powershell`)return L(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fish`)return F(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`bash`,`zsh`,`powershell`,`fish`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await j();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(cyclone-ui completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(cyclone-ui completions bash config)`,icon:`🖵`},{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(cyclone-ui completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(cyclone-ui completions zsh config)`,icon:`🖵`},{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(cyclone-ui completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cyclone-ui completions powershell config)`,icon:`🖵`},{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(cyclone-ui completions fish script)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(cyclone-ui completions fish config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(3)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`bash`)return N(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`zsh`)return z(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`powershell`)return L(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fish`)return F(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`bash`,`zsh`,`powershell`,`fish`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return D()}async function V(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.
|
|
9
|
-
`)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Registry Commands`).length+2))/2),0))+g(u.banner.command.primary(`Registry Commands`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Registry Commands`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`A collection of available Registry commands that are included in the Cyclone User Interface command-line application.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function H(t=o()){let n=``;if(t.length>3&&t[3]&&(n=t[3]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`validate`)return(await import(`./registry-validate.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`validate`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await V();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`registry`,`validate`],label:`Validate Registry`,description:`(cyclone-ui registry validate)`,icon:`✓`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(3)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`validate`)return(await import(`./registry-validate.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`validate`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return A()}let U=!1;const W=[],G=[];async function K(e={}){try{if(U)return;U=!0;let t=0;e.signal!==void 0&&e.signal>0||e.exception?t=128+(e.signal??1):(typeof process.exitCode==`number`||typeof process.exitCode==`string`)&&(t=process.exitCode),e.exception&&f({message:`A fatal error occured while running the application - please contact the Cyclone User Interface support team${e.exception&&typeof e.exception!=`symbol`?`: \n\n${typeof e.exception==`string`?e.exception:e.exception.message}`:`.`}`,...e.exception&&typeof e.exception==`object`?{stack:e.exception.stack}:{}});let n=(n=!1)=>{r(`quiet`)||_(`The Cyclone User Interface application exited ${e.exception?`early due to an exception`:`successfully`}${e.startDate?`. Total run time is ${Date.now()-e.startDate.getTime()>5e3?Math.floor((Date.now()-e.startDate.getTime())/1e3):Date.now()-e.startDate.getTime()} ${Date.now()-e.startDate.getTime()>5e3?`seconds`:`milliseconds`}`:``}...`),e.skipProcessExit||process.nextTick(()=>process.exit(t))};for(let e of G)e(t);if(!e.isSynchronous){let e=[],r=0;for(let[n,i]of W)r=Math.max(r,i),e.push(Promise.resolve(n(t)));let i=setTimeout(()=>{n(!0)},r);await Promise.all(e),clearTimeout(i)}n()}catch(t){f(`The exit process failed to complete${t?.message?` - ${t.message}`:``}. Please contact the Cyclone User Interface support team.`),e.skipProcessExit||process.nextTick(()=>process.exit(1))}}async function q(){if(r([`version`,`v`])){console.log(`0.6.14`);return}let t=o(),n=``;if(t.length>2&&t[2]&&(n=t[2]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`view`)return(await import(`./view.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`search`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`list`)return(await import(`./search.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`init`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`create`)return(await import(`./init.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`info`)return(await import(`./info.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`docs`)return(await import(`./docs.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`diff`)return(await import(`./diff.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`buildtokens`)return(await import(`./build-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`build`)return(await import(`./build.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`add`)return(await import(`./add.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`changelog`)return(await import(`./changelog.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completions`)return B(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`update`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`upgrade`)return(await import(`./update.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchtokens`)return(await import(`./search-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listtokens`)return(await import(`./list-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchcomponents`)return(await import(`./search-components.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listcomponents`)return(await import(`./list-components.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchicons`)return(await import(`./search-icons.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listicons`)return(await import(`./list-icons.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchfonts`)return(await import(`./search-fonts.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listfonts`)return(await import(`./list-fonts.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`plan`)return(await import(`./plan.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`guidelines`)return(await import(`./guidelines.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`analyzea11y`)return(await import(`./analyze-a11y.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`mcp`)return(await import(`./mcp.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`)return H(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`help`)return(await import(`./help.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,/* @__PURE__ */ `view.search.list.init.create.info.docs.diff.build-tokens.build.add.changelog.completions.update.upgrade.search-tokens.list-tokens.search-components.list-components.search-icons.list-icons.search-fonts.list-fonts.plan.guidelines.analyze-a11y.mcp.registry.help`.split(`.`)).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await x();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`view`],label:`View Registry Components`,description:`(cyclone-ui view)`,icon:`◉`},{value:[`search`],label:`Search Registry`,description:`(cyclone-ui search)`,icon:`⌕`},{value:[`init`],label:`Initialize`,description:`(cyclone-ui init)`,icon:`🌀`},{value:[`info`],label:`Project Information`,description:`(cyclone-ui info)`,icon:`ⓘ`},{value:[`docs`],label:`Component Documentation`,description:`(cyclone-ui docs)`,icon:`🕮`},{value:[`diff`],label:`Diff Components`,description:`(cyclone-ui diff)`,icon:`±`},{value:[`build-tokens`],label:`Build Tokens`,description:`(cyclone-ui build-tokens)`,icon:`🏗`},{value:[`build`],label:`Build`,description:`(cyclone-ui build)`,icon:`🏗`},{value:[`add`],label:`Add`,description:`(cyclone-ui add)`,icon:`➕`},{value:[`changelog`],label:`Changelog`,description:`(cyclone-ui changelog)`,icon:`🗃`},{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(cyclone-ui completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(cyclone-ui completions bash config)`,icon:`🖵`},{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(cyclone-ui completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(cyclone-ui completions zsh config)`,icon:`🖵`},{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(cyclone-ui completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cyclone-ui completions powershell config)`,icon:`🖵`},{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(cyclone-ui completions fish script)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(cyclone-ui completions fish config)`,icon:`🖵`},{value:[`update`],label:`Update`,description:`(cyclone-ui update)`,icon:`🖒`},{value:[`search-tokens`],label:`Search Tokens`,description:`(cyclone-ui search-tokens)`,icon:`🎨`},{value:[`list-tokens`],label:`List Tokens`,description:`(cyclone-ui list-tokens)`,icon:`🎨`},{value:[`search-components`],label:`Search Components`,description:`(cyclone-ui search-components)`,icon:`🧩`},{value:[`list-components`],label:`List Components`,description:`(cyclone-ui list-components)`,icon:`🧩`},{value:[`search-icons`],label:`Search Icons`,description:`(cyclone-ui search-icons)`,icon:`🖼`},{value:[`list-icons`],label:`List Icons`,description:`(cyclone-ui list-icons)`,icon:`🖼`},{value:[`search-fonts`],label:`Search Fonts`,description:`(cyclone-ui search-fonts)`,icon:`🔤`},{value:[`list-fonts`],label:`List Fonts`,description:`(cyclone-ui list-fonts)`,icon:`🔤`},{value:[`plan`],label:`Plan`,description:`(cyclone-ui plan)`,icon:`🗺`},{value:[`guidelines`],label:`Guidelines`,description:`(cyclone-ui guidelines)`,icon:`📖`},{value:[`analyze-a11y`],label:`Analyze Accessibility`,description:`(cyclone-ui analyze-a11y)`,icon:`♿`},{value:[`mcp`],label:`MCP Server`,description:`(cyclone-ui mcp)`,icon:`🔌`},{value:[`registry`,`validate`],label:`Validate Registry`,description:`(cyclone-ui registry validate)`,icon:`✓`},{value:[`help`],label:`Help`,description:`(cyclone-ui help)`,icon:`🛈`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(2)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`view`)return(await import(`./view.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`search`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`list`)return(await import(`./search.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`init`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`create`)return(await import(`./init.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`info`)return(await import(`./info.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`docs`)return(await import(`./docs.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`diff`)return(await import(`./diff.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`buildtokens`)return(await import(`./build-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`build`)return(await import(`./build.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`add`)return(await import(`./add.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`changelog`)return(await import(`./changelog.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completions`)return B(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`update`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`upgrade`)return(await import(`./update.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchtokens`)return(await import(`./search-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listtokens`)return(await import(`./list-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchcomponents`)return(await import(`./search-components.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listcomponents`)return(await import(`./list-components.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchicons`)return(await import(`./search-icons.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listicons`)return(await import(`./list-icons.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchfonts`)return(await import(`./search-fonts.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listfonts`)return(await import(`./list-fonts.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`plan`)return(await import(`./plan.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`guidelines`)return(await import(`./guidelines.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`analyzea11y`)return(await import(`./analyze-a11y.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`mcp`)return(await import(`./mcp.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`)return H(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`help`)return(await import(`./help.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,/* @__PURE__ */ `view.search.list.init.create.info.docs.diff.build-tokens.build.add.changelog.completions.update.upgrade.search-tokens.list-tokens.search-components.list-components.search-icons.list-icons.search-fonts.list-fonts.plan.guidelines.analyze-a11y.mcp.registry.help`.split(`.`)).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return await x(0),k()}(async()=>{let e=/* @__PURE__ */ new Date;try{process.on(`exit`,()=>K({startDate:e,skipProcessExit:!0,isSynchronous:!0,signal:0})),process.on(`beforeExit`,()=>K({startDate:e,signal:0})),process.on(`message`,t=>{t===`shutdown`&&K({startDate:e,isSynchronous:!0,signal:-128})}),process.once(`SIGTERM`,()=>K({startDate:e,signal:15})),process.once(`SIGINT`,()=>K({startDate:e,signal:2})),process.once(`SIGUSR2`,()=>(_(`The application was terminated by the user`),K({startDate:e,signal:12}))),process.once(`SIGQUIT`,()=>(_(`The application was terminated by the user`),K({startDate:e,signal:12})));for(let t of[`unhandledRejection`,`uncaughtException`])process.on(t,n=>K({startDate:e,exception:n||/* @__PURE__ */ Error(`An ${t===`unhandledRejection`?`unhandled promise rejection`:`uncaught exception`} occurred during processing - the application is shutting down.`)}));await i(async()=>{let e=await q();e?.error&&f(e.error)})}catch(t){K({startDate:e,exception:t})}})();export{K as exit};
|
|
3
|
+
import{A as e,B as t,D as n,F as r,H as i,I as a,L as o,N as s,O as c,R as l,S as u,_ as d,c as f,j as p,k as m,n as h,t as g,w as _,y as v}from"./console-C-VYSyVM.mjs";import{a as y,n as b,o as x,r as S,t as C}from"./prompts-B6y8eK2p.mjs";import{a as w,i as T,n as E,o as D,r as O,s as k,t as A}from"./registry-NV95_7f3.mjs";async function j(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.15`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
|
|
4
|
+
`)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions`).length+2))/2),0))+g(u.banner.command.primary(`Completions`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands for generating shell completion scripts for Cyclone User Interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function M(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.15`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
|
|
5
|
+
`)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions - Bash`).length+2))/2),0))+g(u.banner.command.primary(`Completions - Bash`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions - Bash`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands to setup bash completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function N(t=o()){let n=``;if(t.length>4&&t[4]&&(n=t[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-bash-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-bash-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await M();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(cyclone-ui completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(cyclone-ui completions bash config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(4)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-bash-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-bash-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return w()}async function P(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.15`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
|
|
6
|
+
`)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions - Fish`).length+2))/2),0))+g(u.banner.command.primary(`Completions - Fish`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions - Fish`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands to setup Fish completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function F(t=o()){let n=``;if(t.length>4&&t[4]&&(n=t[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-fish-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-fish-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await P();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(cyclone-ui completions fish script)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(cyclone-ui completions fish config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(4)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-fish-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-fish-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return T()}async function I(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.15`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
|
|
7
|
+
`)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions - PowerShell`).length+2))/2),0))+g(u.banner.command.primary(`Completions - PowerShell`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions - PowerShell`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands to setup PowerShell completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function L(t=o()){let n=``;if(t.length>4&&t[4]&&(n=t[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-powershell-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-powershell-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await I();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(cyclone-ui completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cyclone-ui completions powershell config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(4)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-powershell-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-powershell-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return O()}async function R(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.15`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
|
|
8
|
+
`)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions - Zsh`).length+2))/2),0))+g(u.banner.command.primary(`Completions - Zsh`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions - Zsh`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands to setup Zsh completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function z(t=o()){let n=``;if(t.length>4&&t[4]&&(n=t[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-zsh-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-zsh-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await R();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(cyclone-ui completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(cyclone-ui completions zsh config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(4)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-zsh-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-zsh-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return E()}async function B(t=o()){let n=``;if(t.length>3&&t[3]&&(n=t[3]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`bash`)return N(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`zsh`)return z(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`powershell`)return L(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fish`)return F(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`bash`,`zsh`,`powershell`,`fish`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await j();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(cyclone-ui completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(cyclone-ui completions bash config)`,icon:`🖵`},{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(cyclone-ui completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(cyclone-ui completions zsh config)`,icon:`🖵`},{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(cyclone-ui completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cyclone-ui completions powershell config)`,icon:`🖵`},{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(cyclone-ui completions fish script)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(cyclone-ui completions fish config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(3)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`bash`)return N(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`zsh`)return z(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`powershell`)return L(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fish`)return F(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`bash`,`zsh`,`powershell`,`fish`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return D()}async function V(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.15`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
|
|
9
|
+
`)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Registry Commands`).length+2))/2),0))+g(u.banner.command.primary(`Registry Commands`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Registry Commands`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`A collection of available Registry commands that are included in the Cyclone User Interface command-line application.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function H(t=o()){let n=``;if(t.length>3&&t[3]&&(n=t[3]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`validate`)return(await import(`./registry-validate.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`validate`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await V();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`registry`,`validate`],label:`Validate Registry`,description:`(cyclone-ui registry validate)`,icon:`✓`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(3)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`validate`)return(await import(`./registry-validate.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`validate`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return A()}let U=!1;const W=[],G=[];async function K(e={}){try{if(U)return;U=!0;let t=0;e.signal!==void 0&&e.signal>0||e.exception?t=128+(e.signal??1):(typeof process.exitCode==`number`||typeof process.exitCode==`string`)&&(t=process.exitCode),e.exception&&f({message:`A fatal error occured while running the application - please contact the Cyclone User Interface support team${e.exception&&typeof e.exception!=`symbol`?`: \n\n${typeof e.exception==`string`?e.exception:e.exception.message}`:`.`}`,...e.exception&&typeof e.exception==`object`?{stack:e.exception.stack}:{}});let n=(n=!1)=>{r(`quiet`)||_(`The Cyclone User Interface application exited ${e.exception?`early due to an exception`:`successfully`}${e.startDate?`. Total run time is ${Date.now()-e.startDate.getTime()>5e3?Math.floor((Date.now()-e.startDate.getTime())/1e3):Date.now()-e.startDate.getTime()} ${Date.now()-e.startDate.getTime()>5e3?`seconds`:`milliseconds`}`:``}...`),e.skipProcessExit||process.nextTick(()=>process.exit(t))};for(let e of G)e(t);if(!e.isSynchronous){let e=[],r=0;for(let[n,i]of W)r=Math.max(r,i),e.push(Promise.resolve(n(t)));let i=setTimeout(()=>{n(!0)},r);await Promise.all(e),clearTimeout(i)}n()}catch(t){f(`The exit process failed to complete${t?.message?` - ${t.message}`:``}. Please contact the Cyclone User Interface support team.`),e.skipProcessExit||process.nextTick(()=>process.exit(1))}}async function q(){if(r([`version`,`v`])){console.log(`0.6.15`);return}let t=o(),n=``;if(t.length>2&&t[2]&&(n=t[2]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`view`)return(await import(`./view.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`search`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`list`)return(await import(`./search.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`init`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`create`)return(await import(`./init.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`info`)return(await import(`./info.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`docs`)return(await import(`./docs.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`diff`)return(await import(`./diff.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`buildtokens`)return(await import(`./build-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`build`)return(await import(`./build.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`add`)return(await import(`./add.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`changelog`)return(await import(`./changelog.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completions`)return B(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`update`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`upgrade`)return(await import(`./update.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchtokens`)return(await import(`./search-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listtokens`)return(await import(`./list-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchcomponents`)return(await import(`./search-components.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listcomponents`)return(await import(`./list-components.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchicons`)return(await import(`./search-icons.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listicons`)return(await import(`./list-icons.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchfonts`)return(await import(`./search-fonts.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listfonts`)return(await import(`./list-fonts.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`plan`)return(await import(`./plan.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`guidelines`)return(await import(`./guidelines.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`analyzea11y`)return(await import(`./analyze-a11y.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`mcp`)return(await import(`./mcp.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`)return H(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`help`)return(await import(`./help.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,/* @__PURE__ */ `view.search.list.init.create.info.docs.diff.build-tokens.build.add.changelog.completions.update.upgrade.search-tokens.list-tokens.search-components.list-components.search-icons.list-icons.search-fonts.list-fonts.plan.guidelines.analyze-a11y.mcp.registry.help`.split(`.`)).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await x();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`view`],label:`View Registry Components`,description:`(cyclone-ui view)`,icon:`◉`},{value:[`search`],label:`Search Registry`,description:`(cyclone-ui search)`,icon:`⌕`},{value:[`init`],label:`Initialize`,description:`(cyclone-ui init)`,icon:`🌀`},{value:[`info`],label:`Project Information`,description:`(cyclone-ui info)`,icon:`ⓘ`},{value:[`docs`],label:`Component Documentation`,description:`(cyclone-ui docs)`,icon:`🕮`},{value:[`diff`],label:`Diff Components`,description:`(cyclone-ui diff)`,icon:`±`},{value:[`build-tokens`],label:`Build Tokens`,description:`(cyclone-ui build-tokens)`,icon:`🏗`},{value:[`build`],label:`Build`,description:`(cyclone-ui build)`,icon:`🏗`},{value:[`add`],label:`Add`,description:`(cyclone-ui add)`,icon:`➕`},{value:[`changelog`],label:`Changelog`,description:`(cyclone-ui changelog)`,icon:`🗃`},{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(cyclone-ui completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(cyclone-ui completions bash config)`,icon:`🖵`},{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(cyclone-ui completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(cyclone-ui completions zsh config)`,icon:`🖵`},{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(cyclone-ui completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cyclone-ui completions powershell config)`,icon:`🖵`},{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(cyclone-ui completions fish script)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(cyclone-ui completions fish config)`,icon:`🖵`},{value:[`update`],label:`Update`,description:`(cyclone-ui update)`,icon:`🖒`},{value:[`search-tokens`],label:`Search Tokens`,description:`(cyclone-ui search-tokens)`,icon:`🎨`},{value:[`list-tokens`],label:`List Tokens`,description:`(cyclone-ui list-tokens)`,icon:`🎨`},{value:[`search-components`],label:`Search Components`,description:`(cyclone-ui search-components)`,icon:`🧩`},{value:[`list-components`],label:`List Components`,description:`(cyclone-ui list-components)`,icon:`🧩`},{value:[`search-icons`],label:`Search Icons`,description:`(cyclone-ui search-icons)`,icon:`🖼`},{value:[`list-icons`],label:`List Icons`,description:`(cyclone-ui list-icons)`,icon:`🖼`},{value:[`search-fonts`],label:`Search Fonts`,description:`(cyclone-ui search-fonts)`,icon:`🔤`},{value:[`list-fonts`],label:`List Fonts`,description:`(cyclone-ui list-fonts)`,icon:`🔤`},{value:[`plan`],label:`Plan`,description:`(cyclone-ui plan)`,icon:`🗺`},{value:[`guidelines`],label:`Guidelines`,description:`(cyclone-ui guidelines)`,icon:`📖`},{value:[`analyze-a11y`],label:`Analyze Accessibility`,description:`(cyclone-ui analyze-a11y)`,icon:`♿`},{value:[`mcp`],label:`MCP Server`,description:`(cyclone-ui mcp)`,icon:`🔌`},{value:[`registry`,`validate`],label:`Validate Registry`,description:`(cyclone-ui registry validate)`,icon:`✓`},{value:[`help`],label:`Help`,description:`(cyclone-ui help)`,icon:`🛈`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(2)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`view`)return(await import(`./view.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`search`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`list`)return(await import(`./search.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`init`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`create`)return(await import(`./init.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`info`)return(await import(`./info.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`docs`)return(await import(`./docs.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`diff`)return(await import(`./diff.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`buildtokens`)return(await import(`./build-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`build`)return(await import(`./build.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`add`)return(await import(`./add.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`changelog`)return(await import(`./changelog.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completions`)return B(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`update`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`upgrade`)return(await import(`./update.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchtokens`)return(await import(`./search-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listtokens`)return(await import(`./list-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchcomponents`)return(await import(`./search-components.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listcomponents`)return(await import(`./list-components.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchicons`)return(await import(`./search-icons.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listicons`)return(await import(`./list-icons.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchfonts`)return(await import(`./search-fonts.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listfonts`)return(await import(`./list-fonts.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`plan`)return(await import(`./plan.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`guidelines`)return(await import(`./guidelines.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`analyzea11y`)return(await import(`./analyze-a11y.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`mcp`)return(await import(`./mcp.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`)return H(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`help`)return(await import(`./help.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,/* @__PURE__ */ `view.search.list.init.create.info.docs.diff.build-tokens.build.add.changelog.completions.update.upgrade.search-tokens.list-tokens.search-components.list-components.search-icons.list-icons.search-fonts.list-fonts.plan.guidelines.analyze-a11y.mcp.registry.help`.split(`.`)).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return await x(0),k()}(async()=>{let e=/* @__PURE__ */ new Date;try{process.on(`exit`,()=>K({startDate:e,skipProcessExit:!0,isSynchronous:!0,signal:0})),process.on(`beforeExit`,()=>K({startDate:e,signal:0})),process.on(`message`,t=>{t===`shutdown`&&K({startDate:e,isSynchronous:!0,signal:-128})}),process.once(`SIGTERM`,()=>K({startDate:e,signal:15})),process.once(`SIGINT`,()=>K({startDate:e,signal:2})),process.once(`SIGUSR2`,()=>(_(`The application was terminated by the user`),K({startDate:e,signal:12}))),process.once(`SIGQUIT`,()=>(_(`The application was terminated by the user`),K({startDate:e,signal:12})));for(let t of[`unhandledRejection`,`uncaughtException`])process.on(t,n=>K({startDate:e,exception:n||/* @__PURE__ */ Error(`An ${t===`unhandledRejection`?`unhandled promise rejection`:`uncaught exception`} occurred during processing - the application is shutting down.`)}));await i(async()=>{let e=await q();e?.error&&f(e.error)})}catch(t){K({startDate:e,exception:t})}})();export{K as exit};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e,S as t,h as n,t as r,x as i}from"./console-
|
|
1
|
+
import{D as e,S as t,h as n,t as r,x as i}from"./console-C-VYSyVM.mjs";function a(){e(``),e(r(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`build`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``),e(r(t.heading.secondary(`Options:`))),i([[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--config <config>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Path to the Razorwind configuration file.`),align:`left`,border:`none`}],[{value:t.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--output <output>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Output path for the generated Tamagui config.`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--tokens <tokens>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Design token source path or glob.`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),e(``),e(t.body.tertiary(`More information can be found in the Build command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/build`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{a as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e,S as t,h as n,t as r,x as i}from"./console-
|
|
1
|
+
import{D as e,S as t,h as n,t as r,x as i}from"./console-C-VYSyVM.mjs";function a(){e(``),e(r(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`build-tokens`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``),e(r(t.heading.secondary(`Options:`))),i([[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--config <config>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Path to the Razorwind configuration file.`),align:`left`,border:`none`}],[{value:t.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--output <output>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Output path for the generated Tamagui config.`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--tokens <tokens>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary("Design token source path or glob (overrides the configured `tokensPath`)."),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),e(``),e(t.body.tertiary(`More information can be found in the Build Tokens command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/build-tokens`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{a as t};
|
package/dist/build-tokens.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-
|
|
1
|
+
import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-C-VYSyVM.mjs";import{a as y}from"./prompts-B6y8eK2p.mjs";import{t as b}from"./update-BR-_G3Ro.mjs";import{t as x}from"./build-tokens-BpjJ5mnN.mjs";import{t as S}from"./command-BhPb4JYp.mjs";async function C(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.15`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
|
|
2
2
|
`)}\n`;f(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+g(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(`Build Tokens`).length+2))/2),0))+g(l.banner.command.primary(`Build Tokens`))+` `.repeat(Math.max(Math.ceil((m().columns-(_(`Build Tokens`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),f(g(l.banner.description.primary(`Generate a Tamagui config file from design tokens.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}async function w(e=s()){let t={...v()};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(`config=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`config=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`?/^--?(config)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.config=r.replace(/^--?(config)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.config=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)):r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`tokens=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`tokens`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`tokens=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`tokens`?/^--?(tokens)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.tokens=r.replace(/^--?(tokens)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.tokens=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)):(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`output=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`output`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`output=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`output`)&&(/^--?(output)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.output=r.replace(/^--?(output)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.output=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)))}return r(`quiet`)||(await C(),await b()),!a()&&!r(`quiet`)&&(n(``),(o||i||u.LOG_LEVEL===`debug`)&&n(l.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?x():d(`build-tokens`,[`build-tokens`],[t],S)}export{w as handler};
|
package/dist/build.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,b as p,j as m,k as h,n as g,t as _,y as v,z as y}from"./console-
|
|
1
|
+
import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,b as p,j as m,k as h,n as g,t as _,y as v,z as y}from"./console-C-VYSyVM.mjs";import{a as b}from"./prompts-B6y8eK2p.mjs";import{t as x}from"./update-BR-_G3Ro.mjs";import{t as S}from"./command-BhPb4JYp.mjs";import{t as C}from"./build-C_aESc5i.mjs";import{resolve as w}from"node:path";async function T(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||m)return;t().set(`is-banner-displayed`,!0),n(``),n(g.banner.outline.primary(`┏`)+g.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+g.banner.outline.primary(`━`)+` `+_(l.banner.header.primary(`Cyclone CLI v0.6.15`))+` `+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-33,0)))+g.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...b.map(e=>v(e).length))>Math.max(h().columns+30,20)?`Cyclone User Interface`:`\n${b.join(`
|
|
2
2
|
`)}\n`;f(o,Math.max(h().columns-30,20)).forEach(e=>{n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(e).length+2))/2),0))+_(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((h().columns-(v(e).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(`Build`).length+2))/2),0))+_(l.banner.command.primary(`Build`))+` `.repeat(Math.max(Math.ceil((h().columns-(v(`Build`).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),f(_(l.banner.description.primary(`Generate design tokens and build the resulting Tamagui config.`)),Math.max(60>h().columns/2?h().columns-6:h().columns-30,20)).forEach(e=>{n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((h().columns-(v(e).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(h().columns-2,0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),n(g.banner.outline.primary(`┗`)+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-32,0)))+` `+_(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+g.banner.outline.primary(`━`.repeat(6))+g.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}async function E(e){let t=w(e.cwd??process.cwd()),n=e.output??`tamagui.config.ts`;await S({...e,cwd:t,output:n});let{loadTamagui:r}=await import(`@tamagui/static/loadTamagui`);if(!(await r({root:t,config:w(t,n),outputCSS:w(t,`tamagui.generated.css`),components:[`@tamagui/core`],platform:`web`},!0))?.tamaguiConfig)throw Error(`Unable to build Tamagui config: ${w(t,n)}`);p(`Built Tamagui config and CSS.`)}async function D(e=s()){let t={...y()};for(let n=0;n<e.slice(0).length;n++){let r=e[n].length>3&&e[n].startsWith(`--`)?`--${e[n].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[n].length>2&&e[n].startsWith(`-`)?`-${e[n].slice(1).replaceAll(`-`,``)}`:e[n];r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`?/^--?(cwd)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.cwd=r.replace(/^--?(cwd)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.cwd=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)):r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`config=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`config=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`?/^--?(config)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.config=r.replace(/^--?(config)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.config=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)):r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`tokens=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`tokens`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`tokens=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`tokens`?/^--?(tokens)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.tokens=r.replace(/^--?(tokens)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.tokens=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)):(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`output=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`output`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`output=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`output`)&&(/^--?(output)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.output=r.replace(/^--?(output)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.output=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)))}return r(`quiet`)||(await T(),await x()),!a()&&!r(`quiet`)&&(n(``),(o||i||u.LOG_LEVEL===`debug`)&&n(l.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?C():d(`build`,[`build`],[t],E)}export{D as handler};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e,S as t,h as n,p as r,t as i,x as a}from"./console-
|
|
1
|
+
import{D as e,S as t,h as n,p as r,t as i,x as a}from"./console-C-VYSyVM.mjs";function o(){e(`${i(t.heading.secondary(`Tags: `))} ${t.tags.utility?t.tags.utility(r(` Utility `)):t.tags.default(r(` Utility `))}`,{padding:0}),e(``),e(i(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`changelog`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``),e(i(t.heading.secondary(`Options:`))),a([[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),e(``),e(t.body.tertiary(`More information can be found in the Changelog command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/changelog`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{o as t};
|
package/dist/changelog.mjs
CHANGED
|
@@ -1,8 +1,22 @@
|
|
|
1
|
-
import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-
|
|
1
|
+
import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-C-VYSyVM.mjs";import{a as y}from"./prompts-B6y8eK2p.mjs";import{t as b}from"./update-BR-_G3Ro.mjs";import{t as x}from"./changelog-BsZJEJL6.mjs";import{bold as S,textColors as C}from"node:console";async function w(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.15`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
|
|
2
2
|
`)}\n`;f(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+g(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(`Changelog`).length+2))/2),0))+g(l.banner.command.primary(`Changelog`))+` `.repeat(Math.max(Math.ceil((m().columns-(_(`Changelog`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),f(g(l.banner.description.primary(`Display the Cyclone User Interface changelog.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}function T(){console.log(`${C.body.primary(`textColors.body.primary("[Image: Cyclone UI's logo banner]")`)}
|
|
3
3
|
|
|
4
4
|
${S(C.heading.primary(`Changelog for Cyclone UI - CLI`))}
|
|
5
5
|
|
|
6
|
+
${S(C.heading.secondary(`0.6.15 (10/22/2026)`))}
|
|
7
|
+
|
|
8
|
+
${S(C.heading.tertiary(`Bug Fixes`))}
|
|
9
|
+
|
|
10
|
+
${C.body.primary(`• tokens: Upgrade razorwind and generate config files (2d174005)
|
|
11
|
+
• cli: Resolve issue with commands (c893de68)
|
|
12
|
+
• monorepo: Update components to use use client directives as needed (5bc81ef8)
|
|
13
|
+
• tokens: Update token structure to better allow customizations (7f23eb61)`)}
|
|
14
|
+
|
|
15
|
+
${S(C.heading.tertiary(`Updated Dependencies`))}
|
|
16
|
+
|
|
17
|
+
${C.body.primary(`• Updated registry-api to v0.3.25
|
|
18
|
+
• Updated theme-builder to v0.0.15`)}
|
|
19
|
+
|
|
6
20
|
${S(C.heading.secondary(`0.6.14 (10/19/2026)`))}
|
|
7
21
|
|
|
8
22
|
${S(C.heading.tertiary(`Bug Fixes`))}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e,b as t}from"./console-
|
|
1
|
+
import{D as e,b as t}from"./console-C-VYSyVM.mjs";import{relative as n,resolve as r}from"node:path";import{generate as i}from"@cyclone-ui/theme-builder";import{generatePluginDocuments as a,isEmptyTokens as o,prepareSpec as s,resolveConfig as c,writeGeneratedDocuments as l}from"@razorwind/core";async function u(u){let d=r(u.cwd??process.cwd()),f=await c(d,{configFile:u.config,mode:`production`});u.tokens&&(f.tokensPath=u.tokens),f.plugins=[...f.plugins.filter(e=>!e.generate),i({outputPath:u.output??`tamagui.config.ts`})];let p=await s({cwd:d,options:f});if(o(p.tokens))throw Error("No design tokens found. Pass --tokens or set `tokensPath` in razorwind.config.ts.");let m=await l(await a(p,f),d);for(let t of m)e(n(d,t));t(`Generated ${m.length} files.`)}export{u as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-
|
|
1
|
+
import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-C-VYSyVM.mjs";import{a as y}from"./prompts-B6y8eK2p.mjs";import{t as b}from"./update-BR-_G3Ro.mjs";import{n as x,t as S}from"./shared-BqOLk4iK.mjs";import{t as C}from"./config-jtyFzBzm.mjs";import w from"node:os";import{join as T}from"node:path";import{readFile as E,writeFile as D}from"node:fs/promises";import{bold as O,help as k,inlineCode as A,success as j,warn as M,writeLine as N}from"node:console";async function P(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.15`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
|
|
2
2
|
`)}\n`;f(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+g(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(`Completions - Bash Configuration`).length+2))/2),0))+g(l.banner.command.primary(`Completions - Bash Configuration`))+` `.repeat(Math.max(Math.ceil((m().columns-(_(`Completions - Bash Configuration`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),f(g(l.banner.description.primary(`Update the current system's bash shell configuration to include completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}async function F(e={},t=`~/.bashrc`){if(e.display!==!0){let e=t.includes(`.`)?t:T(t,`.bashrc`);e.startsWith(`~`)&&(e=T(w.homedir(),e.replace(`~`,``)));let n=``;try{n=await E(e,`utf8`)}catch(t){if(typeof t==`object`&&t&&`code`in t&&t.code===`ENOENT`)M(`Configuration file ${O(e)} does not exist. It will be created when the completion script is written.`);else return{error:t}}await D(e,`${n}\n\n### Begin - Cyclone User Interface Shell Completions ###\n\n${S} \n\n### End - Cyclone User Interface Bash Completions ###`),j(`Cyclone User Interface shell completions have been applied to Bash configuration file at ${O(e)}. Please restart your terminal or run ${A(`source ${e}`)} for the changes to take effect.`)}else N(` ------------------------------------------------- `),N(``),N(`### Begin - Cyclone User Interface Bash Completions ###`),N(``),x.split(`
|
|
3
3
|
`).map(e=>N(e)),N(``),N(`### End - Cyclone User Interface Bash Completions ###`),N(``),N(` ------------------------------------------------- `),N(``),k(`To enable these completions, perform one of the following actions:
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-
|
|
1
|
+
import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-C-VYSyVM.mjs";import{a as y}from"./prompts-B6y8eK2p.mjs";import{t as b}from"./update-BR-_G3Ro.mjs";import{t as x}from"./script-DWRCS2bB.mjs";import{n as S,t as C}from"./shared-BqOLk4iK.mjs";import{writeFile as w}from"node:fs/promises";import{bold as T,help as E,success as D,writeLine as O}from"node:console";async function k(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.15`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
|
|
2
2
|
`)}\n`;f(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+g(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(`Completions - Bash Script`).length+2))/2),0))+g(l.banner.command.primary(`Completions - Bash Script`))+` `.repeat(Math.max(Math.ceil((m().columns-(_(`Completions - Bash Script`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),f(g(l.banner.description.primary(`Generate a bash completion script for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}async function A(e={},t=`./cyclone-ui-completions.bash`){if(e.display!==!0){let e=t.includes(`.`)?`${t}.bash`:t;await w(e,`# Bash script to add completions for Cyclone User Interface\n\n${C}`),D(`Cyclone User Interface Bash completion script has been generated at ${T(e)}.`)}else O(` ------------------------------------------------- `),O(``),O(`# Bash completion for Cyclone User Interface`),O(``),S.split(`
|
|
3
3
|
`).map(e=>O(e)),O(``),O(` ------------------------------------------------- `),O(``),E(`To enable these completions, perform one of the following actions:
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-
|
|
1
|
+
import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-C-VYSyVM.mjs";import{a as y}from"./prompts-B6y8eK2p.mjs";import{t as b}from"./update-BR-_G3Ro.mjs";import{n as x,t as S}from"./shared-eDwFqUvf.mjs";import{t as C}from"./config-mOfJXU_o.mjs";import w from"node:os";import{join as T}from"node:path";import{readFile as E,writeFile as D}from"node:fs/promises";import{bold as O,help as k,inlineCode as A,success as j,warn as M,writeLine as N}from"node:console";async function P(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.15`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
|
|
2
2
|
`)}\n`;f(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+g(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(`Completions - Fish Configuration`).length+2))/2),0))+g(l.banner.command.primary(`Completions - Fish Configuration`))+` `.repeat(Math.max(Math.ceil((m().columns-(_(`Completions - Fish Configuration`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),f(g(l.banner.description.primary(`Update the current system's Fish shell configuration to include completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}async function F(e={},t=`~/.config/fish/config.fish`){if(e.display!==!0){let e=t.includes(`.`)?t:T(t,`.config`,`fish`,`config.fish`);e.startsWith(`~`)&&(e=T(w.homedir(),e.replace(`~`,``)));let n=``;try{n=await E(e,`utf8`)}catch(t){if(typeof t==`object`&&t&&`code`in t&&t.code===`ENOENT`)M(`Configuration file ${O(e)} does not exist. It will be created when the completion script is written.`);else return{error:t}}await D(e,`${n}\n\n### Begin - Cyclone User Interface Fish Completions ###\n\n${S} \n\n### End - Cyclone User Interface Fish Completions ###`),j(`Cyclone User Interface shell completions have been applied to Fish configuration file at ${O(e)}. Please restart your terminal or run ${A(`source ${e}`)} for the changes to take effect.`)}else N(` ------------------------------------------------- `),N(``),N(`### Begin - Cyclone User Interface Fish Completions ###`),N(``),x.split(`
|
|
3
3
|
`).map(e=>N(e)),N(``),N(`### End - Cyclone User Interface Fish Completions ###`),N(``),N(` ------------------------------------------------- `),N(``),k(`To enable these completions, perform one of the following actions:
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-
|
|
1
|
+
import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-C-VYSyVM.mjs";import{a as y}from"./prompts-B6y8eK2p.mjs";import{t as b}from"./update-BR-_G3Ro.mjs";import{t as x}from"./script-B6Wm_unw.mjs";import{n as S,t as C}from"./shared-eDwFqUvf.mjs";import{writeFile as w}from"node:fs/promises";import{bold as T,help as E,success as D,writeLine as O}from"node:console";async function k(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.15`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
|
|
2
2
|
`)}\n`;f(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+g(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(`Completions - Fish Script`).length+2))/2),0))+g(l.banner.command.primary(`Completions - Fish Script`))+` `.repeat(Math.max(Math.ceil((m().columns-(_(`Completions - Fish Script`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),f(g(l.banner.description.primary(`Generate a Fish completion script for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}async function A(e={},t=`./cyclone-ui-completions.fish`){if(e.display!==!0){let e=t.includes(`.`)?`${t}.fish`:t;await w(e,`# Fish script to add completions for Cyclone User Interface\n\n${C}`),D(`Cyclone User Interface Fish completion script has been generated at ${T(e)}.`)}else O(` ------------------------------------------------- `),O(``),O(`# Fish completion for Cyclone User Interface`),O(``),S.split(`
|
|
3
3
|
`).map(e=>O(e)),O(``),O(` ------------------------------------------------- `),O(``),E(`To enable these completions, perform one of the following actions:
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,T as u,U as d,V as f,_ as p,b as m,f as h,j as g,k as _,n as v,t as y,u as b,y as x,z as S}from"./console-
|
|
1
|
+
import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,T as u,U as d,V as f,_ as p,b as m,f as h,j as g,k as _,n as v,t as y,u as b,y as x,z as S}from"./console-C-VYSyVM.mjs";import{a as C}from"./prompts-B6y8eK2p.mjs";import{t as w}from"./update-BR-_G3Ro.mjs";import{n as T,t as E}from"./shared-ZvR3sNKN.mjs";import{t as D}from"./config-CFFzhlGS.mjs";import O from"node:os";import{join as k}from"node:path";import{readFile as A,writeFile as j}from"node:fs/promises";async function M(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||g)return;t().set(`is-banner-displayed`,!0),n(``),n(v.banner.outline.primary(`┏`)+v.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+v.banner.outline.primary(`━`)+` `+y(l.banner.header.primary(`Cyclone CLI v0.6.15`))+` `+v.banner.outline.primary(`━`.repeat(Math.max(_().columns-33,0)))+v.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...C.map(e=>x(e).length))>Math.max(_().columns+30,20)?`Cyclone User Interface`:`\n${C.join(`
|
|
2
2
|
`)}\n`;p(o,Math.max(_().columns-30,20)).forEach(e=>{n(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((_().columns-(x(e).length+2))/2),0))+y(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((_().columns-(x(e).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((_().columns-(x(`Completions - PowerShell Configuration`).length+2))/2),0))+y(l.banner.command.primary(`Completions - PowerShell Configuration`))+` `.repeat(Math.max(Math.ceil((_().columns-(x(`Completions - PowerShell Configuration`).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log}),p(y(l.banner.description.primary(`Update the current system's PowerShell configuration to include completions for the Cyclone User Interface command-line interface.`)),Math.max(60>_().columns/2?_().columns-6:_().columns-30,20)).forEach(e=>{n(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((_().columns-(x(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((_().columns-(x(e).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(_().columns-2,0))+v.banner.outline.primary(`┃`),{consoleFn:console.log}),n(v.banner.outline.primary(`┗`)+v.banner.outline.primary(`━`.repeat(Math.max(_().columns-32,0)))+` `+y(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+v.banner.outline.primary(`━`.repeat(6))+v.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}async function N(e={},t=`~/.config/powershell/Microsoft.PowerShell_profile.ps1`){if(e.display!==!0){let e=t.includes(`.`)?t:k(t,`Microsoft.PowerShell_profile.ps1`);e.startsWith(`~`)&&(e=k(O.homedir(),e.replace(`~`,``)));let n=``;try{n=await A(e,`utf8`)}catch(t){if(typeof t==`object`&&t&&`code`in t&&t.code===`ENOENT`)u(`Configuration file ${y(e)} does not exist. It will be created when the completion script is written.`);else return{error:t}}await j(e,`${n}\n\n### Begin - Cyclone User Interface PowerShell Completions ###\n\n${E} \n\n### End - Cyclone User Interface PowerShell Completions ###`),m(`Cyclone User Interface shell completions have been applied to PowerShell configuration file at ${y(e)}. Please restart your terminal or run ${h(`source ${e}`)} for the changes to take effect.`)}else n(` ------------------------------------------------- `),n(``),n(`### Begin - Cyclone User Interface PowerShell Completions ###`),n(``),T.split(`
|
|
3
3
|
`).map(e=>n(e)),n(``),n(`### End - Cyclone User Interface PowerShell Completions ###`),n(``),n(` ------------------------------------------------- `),n(``),b(`To enable these completions, perform one of the following actions:
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-
|
|
1
|
+
import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-C-VYSyVM.mjs";import{a as y}from"./prompts-B6y8eK2p.mjs";import{t as b}from"./update-BR-_G3Ro.mjs";import{t as x}from"./script-c5pBOBy4.mjs";import{n as S,t as C}from"./shared-ZvR3sNKN.mjs";import{writeFile as w}from"node:fs/promises";import{bold as T,help as E,success as D,writeLine as O}from"node:console";async function k(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.15`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
|
|
2
2
|
`)}\n`;f(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+g(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(`Completions - PowerShell Script`).length+2))/2),0))+g(l.banner.command.primary(`Completions - PowerShell Script`))+` `.repeat(Math.max(Math.ceil((m().columns-(_(`Completions - PowerShell Script`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),f(g(l.banner.description.primary(`Generate a PowerShell completion script for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}async function A(e={},t=`./cyclone-ui-completions.ps1`){if(e.display!==!0){let e=t.includes(`.`)?`${t}.ps1`:t;await w(e,`# PowerShell script to add completions for Cyclone User Interface\n\n${C}`),D(`Cyclone User Interface PowerShell completion script has been generated at ${T(e)}.`)}else O(` ------------------------------------------------- `),O(``),O(`# PowerShell completions for Cyclone User Interface`),O(``),S.split(`
|
|
3
3
|
`).map(e=>O(e)),O(``),O(` ------------------------------------------------- `),O(``),E(`To enable these completions, perform one of the following actions:
|
|
4
4
|
|