@cyclone-ui/cli 0.6.14 → 0.6.15
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/README.md +58 -13
- package/dist/{add-BO9sicre.mjs → add-QZOxYcRK.mjs} +1 -1
- package/dist/add.mjs +3 -3
- package/dist/{analyze-a11y-C0_xJ68a.mjs → analyze-a11y-BU8faGzr.mjs} +1 -1
- package/dist/analyze-a11y.mjs +1 -1
- package/dist/bin.mjs +7 -7
- package/dist/build-BMHh7SnK.mjs +1 -0
- package/dist/build-tokens-C_wzH90_.mjs +1 -0
- package/dist/build-tokens.mjs +2 -0
- package/dist/build.mjs +2 -2
- package/dist/{changelog-D7Pj1d-6.mjs → changelog-Q5DymQRF.mjs} +1 -1
- package/dist/changelog.mjs +12 -1
- package/dist/command-DbeCTonF.mjs +1 -0
- 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/components-BeiahS2c.mjs +10 -0
- package/dist/{config-Dt1_5gd_.mjs → config-6_J_XRsw.mjs} +1 -1
- package/dist/{config-BCSzLSa4.mjs → config-B169hbG3.mjs} +1 -1
- package/dist/{config-zK7GEtuI.mjs → config-C09YwAnf.mjs} +1 -1
- package/dist/config-DxsYsT40.mjs +1 -0
- package/dist/{config-DUW81qVA.mjs → config-YZotDfFJ.mjs} +1 -1
- package/dist/{console-CoX88Qw8.mjs → console-C3z2Y61E.mjs} +2 -2
- package/dist/design-system-CNVVaZ1M.mjs +1 -0
- package/dist/{diff-BvxQ_pPh.mjs → diff-BLZFm5eJ.mjs} +1 -1
- package/dist/diff.mjs +1 -1
- package/dist/{docs-Drqg-8iT.mjs → docs-A44uCA1K.mjs} +1 -1
- package/dist/docs.mjs +4 -4
- package/dist/{guidelines-BioBIwoK.mjs → guidelines-CfvgqEk7.mjs} +1 -1
- package/dist/guidelines.mjs +1 -1
- package/dist/help.mjs +2 -2
- package/dist/{info-CQWXwPbx.mjs → info-CMedDFnc.mjs} +1 -1
- package/dist/info.mjs +1 -1
- package/dist/{init-Dl6gJpM5.mjs → init-DBROV6sE.mjs} +1 -1
- package/dist/init.mjs +2 -2
- package/dist/{list-components-CvsFpf_K.mjs → list-components-Dx-J-Dnq.mjs} +1 -1
- package/dist/list-components.mjs +1 -1
- package/dist/{list-fonts-Ce0dnvNt.mjs → list-fonts-DBT1mrsH.mjs} +1 -1
- package/dist/list-fonts.mjs +1 -1
- package/dist/{list-icons-Cc1yXA8W.mjs → list-icons-C8xYxnqZ.mjs} +1 -1
- package/dist/list-icons.mjs +1 -1
- package/dist/{list-tokens-5-5H0j1d.mjs → list-tokens-BKFnTzsn.mjs} +1 -1
- package/dist/list-tokens.mjs +1 -1
- package/dist/{mcp-ChXpEwWx.mjs → mcp-B6D5petn.mjs} +1 -1
- package/dist/mcp.mjs +13 -14
- package/dist/{plan-CvJupXVE.mjs → plan-ZWeXBx16.mjs} +1 -1
- package/dist/plan.mjs +1 -1
- package/dist/{prompts-bFke_NJI.mjs → prompts-e3s_BIKU.mjs} +2 -2
- package/dist/registry-DnOTA6eC.mjs +1 -0
- package/dist/registry-validate.mjs +2 -2
- package/dist/{script-kCLhRSfR.mjs → script-B00X1Gka.mjs} +1 -1
- package/dist/{script-CWA2YfkI.mjs → script-CI1NIrdw.mjs} +1 -1
- package/dist/{script-BYp3JkZA.mjs → script-CkCsXZJK.mjs} +1 -1
- package/dist/{script-CEbthWWk.mjs → script-CucYHbm0.mjs} +1 -1
- package/dist/{search-C4twQm15.mjs → search-JStGlg5t.mjs} +1 -1
- package/dist/{search-components-DUH_uWPf.mjs → search-components-CpFDPRfz.mjs} +1 -1
- package/dist/search-components.mjs +1 -1
- package/dist/{search-fonts-DJ3b4nWY.mjs → search-fonts-BbUV2DYZ.mjs} +1 -1
- package/dist/search-fonts.mjs +1 -1
- package/dist/{search-icons-D60D53ID.mjs → search-icons-JbWNW9vv.mjs} +1 -1
- package/dist/search-icons.mjs +1 -1
- package/dist/{search-tokens-B0mM-jau.mjs → search-tokens-Mwyu1sLi.mjs} +1 -1
- package/dist/search-tokens.mjs +1 -1
- package/dist/search.mjs +3 -3
- package/dist/{update-C18mGf4L.mjs → update-0bXYJiJj.mjs} +1 -1
- package/dist/{update-B4ENMzlX.mjs → update-wulHGaSU.mjs} +1 -1
- package/dist/update.mjs +1 -1
- package/dist/{validate-DLP65PTe.mjs → validate-CqYKElXI.mjs} +1 -1
- package/dist/{view-Dr6zOEXW.mjs → view-BLGl-i0d.mjs} +1 -1
- package/dist/view.mjs +3 -3
- package/package.json +11 -9
- package/dist/build-C219f-U4.mjs +0 -1
- package/dist/components-CL5K9O-8.mjs +0 -10
- package/dist/config-D4XQ3gm9.mjs +0 -1
- package/dist/create-tokens-DnyuLDUq.mjs +0 -1
- package/dist/create-tokens.mjs +0 -2
- package/dist/design-system-CSIS3wXV.mjs +0 -1
- package/dist/local-registry-pqsOERYj.mjs +0 -1
- package/dist/registry-C95vaVW8.mjs +0 -1
- package/dist/registry-f26fn1W0.mjs +0 -1
|
@@ -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-C3z2Y61E.mjs";import{a as y}from"./prompts-e3s_BIKU.mjs";import{t as b}from"./update-wulHGaSU.mjs";import{t as x}from"./script-CucYHbm0.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.14`))+` `+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-C3z2Y61E.mjs";import{a as y}from"./prompts-e3s_BIKU.mjs";import{t as b}from"./update-wulHGaSU.mjs";import{n as x,t as S}from"./shared-eDwFqUvf.mjs";import{t as C}from"./config-B169hbG3.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.14`))+` `+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-C3z2Y61E.mjs";import{a as y}from"./prompts-e3s_BIKU.mjs";import{t as b}from"./update-wulHGaSU.mjs";import{t as x}from"./script-CI1NIrdw.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.14`))+` `+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-C3z2Y61E.mjs";import{a as C}from"./prompts-e3s_BIKU.mjs";import{t as w}from"./update-wulHGaSU.mjs";import{n as T,t as E}from"./shared-ZvR3sNKN.mjs";import{t as D}from"./config-6_J_XRsw.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.14`))+` `+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-C3z2Y61E.mjs";import{a as y}from"./prompts-e3s_BIKU.mjs";import{t as b}from"./update-wulHGaSU.mjs";import{t as x}from"./script-B00X1Gka.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.14`))+` `+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
|
|
|
@@ -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-C3z2Y61E.mjs";import{a as y}from"./prompts-e3s_BIKU.mjs";import{t as b}from"./update-wulHGaSU.mjs";import{n as x,t as S}from"./shared-B-w0WVoR.mjs";import{t as C}from"./config-YZotDfFJ.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.14`))+` `+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 - Zsh Configuration`).length+2))/2),0))+g(l.banner.command.primary(`Completions - Zsh Configuration`))+` `.repeat(Math.max(Math.ceil((m().columns-(_(`Completions - Zsh Configuration`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),f(g(l.banner.description.primary(`Update the current system's Zsh shell configuration to include completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}async function F(e={},t=`~/.zshrc`){if(e.display!==!0){let e=t.includes(`.`)?t:T(t,`.zshrc`);e.startsWith(`~`)&&(e=T(w.homedir(),e.replace(`~`,``)));let n=``;try{n=await E(e,`utf8`)}catch(t){if(typeof t==`object`&&t&&`code`in t&&t.code===`ENOENT`)M(`Configuration file ${O(e)} does not exist. It will be created when the completion script is written.`);else return{error:t}}await D(e,`${n}\n\n### Begin - Cyclone User Interface Shell Completions ###\n\n${S} \n\n### End - Cyclone User Interface Zsh Completions ###`),j(`Cyclone User Interface shell completions have been applied to Zsh configuration file at ${O(e)}. Please restart your terminal or run ${A(`source ${e}`)} for the changes to take effect.`)}else N(` ------------------------------------------------- `),N(``),N(`### Begin - Cyclone User Interface Zsh Completions ###`),N(``),x.split(`
|
|
3
3
|
`).map(e=>N(e)),N(``),N(`### End - Cyclone User Interface Zsh Completions ###`),N(``),N(` ------------------------------------------------- `),N(``),k(`To enable these completions, perform one of the following actions:
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-
|
|
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-C3z2Y61E.mjs";import{a as y}from"./prompts-e3s_BIKU.mjs";import{t as b}from"./update-wulHGaSU.mjs";import{t as x}from"./script-CkCsXZJK.mjs";import{n as S,t as C}from"./shared-B-w0WVoR.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.14`))+` `+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 - Zsh Script`).length+2))/2),0))+g(l.banner.command.primary(`Completions - Zsh Script`))+` `.repeat(Math.max(Math.ceil((m().columns-(_(`Completions - Zsh Script`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),f(g(l.banner.description.primary(`Generate a Zsh completion script for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}async function A(e={},t=`cyclone-ui-completions.zsh`){if(e.display!==!0){let e=t.includes(`.`)?`${t}.zsh`:t;await w(e,`# Zsh script to add completions for Cyclone User Interface\n\n${C}`),D(`Cyclone User Interface Zsh completion script has been generated at ${T(e)}.`)}else O(` ------------------------------------------------- `),O(``),O(`#compdef cyclone-ui `),O(`#compdef _cyclone_ui cyclone-ui`),O(``),O(`# Zsh completion for Cyclone User Interface`),O(``),S.split(`
|
|
3
3
|
`).map(e=>O(e)),O(``),O(` ------------------------------------------------- `),O(``),E(`To enable these completions, perform one of the following actions:
|
|
4
4
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{l as e,o as t,r as n,s as r}from"./config-DxsYsT40.mjs";import{dirname as i,relative as a,resolve as o}from"node:path";import{mkdir as s,readFile as c,writeFile as l}from"node:fs/promises";async function u(e,t,n){if(n!==!1||!/\.[cm]?[jt]sx?$/.test(e)||/\.d\.[cm]?ts$/.test(e))return t;let r=await import(`typescript`),i=r.createSourceFile(e,t,r.ScriptTarget.Latest),a=[];for(let e of i.statements){if(!r.isExpressionStatement(e)||!r.isStringLiteral(e.expression))break;e.expression.text===`use client`&&(a.push({start:e.expression.getStart(i),end:e.expression.end}),t[e.end-1]===`;`&&a.push({start:e.end-1,end:e.end}))}for(let{start:e,end:n}of a.reverse())t=t.slice(0,e)+t.slice(n);return t}async function d(e,t,n,r,s){if(!/\.[cm]?[jt]sx?$/.test(e))return t;let{default:c}=await import(`typescript`),l=c.createSourceFile(e,t,c.ScriptTarget.Latest),u=[],d=e=>{if(!c.isStringLiteralLike(e))return;let t=/^@cyclone-ui\/([^/]+)(\/.*)?$/.exec(e.text);if(!t||!s.has(t[1]))return;let d=t[2]??``,f=o(r,t[1],`.${d}`),p=a(i(n),f).replaceAll(`\\`,`/`);p.startsWith(`.`)||(p=`./${p}`),u.push({start:e.getStart(l)+1,end:e.getEnd()-1,value:p})},f=e=>{c.isImportDeclaration(e)||c.isExportDeclaration(e)?e.moduleSpecifier&&d(e.moduleSpecifier):c.isCallExpression(e)&&(e.expression.kind===c.SyntaxKind.ImportKeyword||c.isIdentifier(e.expression)&&e.expression.text===`require`)?e.arguments.length===1&&d(e.arguments[0]):c.isImportTypeNode(e)&&c.isLiteralTypeNode(e.argument)&&d(e.argument.literal),c.forEachChild(e,f)};f(l);for(let e of u.sort((e,t)=>t.start-e.start))t=t.slice(0,e.start)+e.value+t.slice(e.end);return t}async function f(t,n){let r=/* @__PURE__ */ new Map,i=/* @__PURE__ */ new Set,a=async n=>{let o=e(n);if(r.has(o))return;if(i.has(o))throw Error(`Circular component dependency detected at \"${o}\"`);i.add(o);let s=await t.components.get.query(o);for(let e of s.internalDependencies)await a(e);i.delete(o),r.set(o,s)};for(let e of n)await a(e);return[...r.values()]}async function p(r,i,o,s){let l=await f(r,o),p=t(s.root,s.path??i.path),m=new Set(l.map(t=>e(t.name))),h=[];for(let r of l){let o=e(r.name);if(!/^[a-z0-9][a-z0-9._-]*$/i.test(o))throw Error(`Invalid component name received: ${r.name}`);for(let e of r.files){let r=t(p,o),l=t(r,e.name),f=await u(e.name,e.content,s.rsc??i.rsc),g=await d(e.name,f,l,p,m),_=await n(l)?await c(l,`utf8`):null,v=_===null?`create`:_===g?`unchanged`:`overwrite`;if(v===`overwrite`&&!s.overwrite&&!s.dryRun)throw Error(`${a(s.root,l)} already exists. Re-run with --overwrite to replace it.`);h.push({component:o,path:l,content:g,previousContent:_,status:v})}}return{components:l,files:h}}async function m(t,n,o){if(!o.dryRun){for(let e of n.files)e.status!==`unchanged`&&(await s(i(e.path),{recursive:!0}),await l(e.path,e.content,`utf8`));for(let r of n.components){let i=e(r.name);t.components[i]={version:r.version,files:n.files.filter(e=>e.component===i).map(e=>a(o.root,e.path))}}await h(o.root,n.components),await r(o.root,t)}}async function h(t,r){let i=o(t,`package.json`);if(!await n(i))return;let a=JSON.parse(await c(i,`utf8`)),s=new Set(r.flatMap(t=>[t.name,`@cyclone-ui/${e(t.name)}`])),u=Object.assign({},...r.map(e=>e.dependencies)),d=Object.assign({},...r.map(e=>e.devDependencies));a.dependencies??={},a.devDependencies??={};for(let[e,t]of Object.entries(u))s.has(e)||a.dependencies[e]||a.devDependencies[e]||(a.dependencies[e]=g(t));for(let[e,t]of Object.entries(d))s.has(e)||a.dependencies[e]||a.devDependencies[e]||(a.devDependencies[e]=g(t));await l(i,`${JSON.stringify(a,null,2)}\n`,`utf8`)}function g(e){return e.startsWith(`catalog:`)||e.startsWith(`workspace:`)?`latest`:e}function _(e,t){return e.files.map(e=>`${e.status.padEnd(9)} ${a(t,e.path)}`).join(`
|
|
2
|
+
`)}function v(e,t){let n=e.files.filter(e=>e.status!==`unchanged`);return n.length===0?`No differences found.`:n.map(e=>{let n=`--- ${e.previousContent===null?`/dev/null`:a(t,e.path)}\n+++ ${a(t,e.path)}`;return e.previousContent===null?`${n}\n${e.content.split(`
|
|
3
|
+
`).map(e=>`+${e}`).join(`
|
|
4
|
+
`)}`:`${n}\n${e.previousContent.split(`
|
|
5
|
+
`).map(e=>`-${e}`).join(`
|
|
6
|
+
`)}\n${e.content.split(`
|
|
7
|
+
`).map(e=>`+${e}`).join(`
|
|
8
|
+
`)}`}).join(`
|
|
9
|
+
|
|
10
|
+
`)}export{_ as i,p as n,v as r,m as t};
|
|
@@ -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-C3z2Y61E.mjs";function o(){e(`${i(t.heading.secondary(`Tags: `))} ${t.tags.utility?t.tags.utility(r(` Utility `)):t.tags.default(r(` Utility `))}`,{padding:0}),e(``),e(i(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`completions`)} ${t.usage.command(`powershell`)} ${t.usage.command(`config`)} ${t.usage.args(`<path>`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`completions`)} ${t.usage.command(`powershell`)} ${t.usage.command(`config`)} ${t.usage.options(`[options]`)} ${t.usage.args(`<path>`)}`),{padding:0}),e(``),e(i(t.heading.secondary(`Options:`))),a([[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Should the generated completion script be written to console output instead of an actual file on disk? (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),e(``),e(t.body.tertiary(`More information can be found in the Completions - PowerShell Configuration command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/completions/powershell/config`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{o as t};
|
|
@@ -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-C3z2Y61E.mjs";function o(){e(`${i(t.heading.secondary(`Tags: `))} ${t.tags.utility?t.tags.utility(r(` Utility `)):t.tags.default(r(` Utility `))}`,{padding:0}),e(``),e(i(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`completions`)} ${t.usage.command(`fish`)} ${t.usage.command(`config`)} ${t.usage.args(`<path>`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`completions`)} ${t.usage.command(`fish`)} ${t.usage.command(`config`)} ${t.usage.options(`[options]`)} ${t.usage.args(`<path>`)}`),{padding:0}),e(``),e(i(t.heading.secondary(`Options:`))),a([[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Should the generated completion script be written to console output instead of an actual file on disk? (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),e(``),e(t.body.tertiary(`More information can be found in the Completions - Fish Configuration command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/completions/fish/config`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{o as t};
|
|
@@ -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-C3z2Y61E.mjs";function o(){e(`${i(t.heading.secondary(`Tags: `))} ${t.tags.utility?t.tags.utility(r(` Utility `)):t.tags.default(r(` Utility `))}`,{padding:0}),e(``),e(i(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`completions`)} ${t.usage.command(`bash`)} ${t.usage.command(`config`)} ${t.usage.args(`<path>`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`completions`)} ${t.usage.command(`bash`)} ${t.usage.command(`config`)} ${t.usage.options(`[options]`)} ${t.usage.args(`<path>`)}`),{padding:0}),e(``),e(i(t.heading.secondary(`Options:`))),a([[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Should the generated completion script be written to console output instead of an actual file on disk? (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),e(``),e(t.body.tertiary(`More information can be found in the Completions - Bash Configuration command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/completions/bash/config`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{dirname as e,isAbsolute as t,relative as n,resolve as r}from"node:path";import{access as i,mkdir as a,readFile as o,writeFile as s}from"node:fs/promises";import{createRegistryClient as c}from"@cyclone-ui/registry-api/client";const l=`https://public.storm-cdn.com/cyclone-ui/registry`;function u(e){if(!e||typeof e!=`object`||Array.isArray(e))throw Error(`Invalid registry JSON object`);return e}function d(e){if(e===void 0)return[];if(!Array.isArray(e)||e.some(e=>typeof e!=`string`))throw Error(`Invalid registry dependency or tags array`);return e}function f(e){let t=u(e);if(typeof t.name!=`string`)throw Error(`Registry item is missing a name`);return m(t.name),{name:t.name,version:typeof t.version==`string`?t.version:void 0,release:typeof t.release==`string`?t.release:`latest`,description:typeof t.description==`string`?t.description:``,tags:d(t.tags)}}function p(e){return Object.fromEntries(d(e).map(e=>{let t=e.lastIndexOf(`@`),n=t>0?e.slice(0,t):e,r=t>0?e.slice(t+1):`latest`;if(!/^(?:@[\w.-]+\/)?[\w.-]+$/.test(n)||!r||/^(?:catalog|workspace|link):/.test(r))throw Error(`Invalid published dependency: ${e}`);return[n,r]}))}function m(e){let t=g(e);if(!/^[a-z0-9][\w.-]*$/i.test(t))throw Error(`Invalid component name: ${e}`);return t}function h(e){let t;try{if(t=new URL(e),![`http:`,`https:`].includes(t.protocol))throw Error(`Unsupported registry protocol`)}catch{throw Error(`Invalid registry URL: ${e}`)}if(/\/api\/?$/.test(t.pathname))return c(t.toString().replace(/\/$/,``));t.pathname=`${t.pathname.replace(/\/registry\.json$/,``).replace(/\/$/,``)}/`,t.search=``,t.hash=``;let n=async e=>{let n=new URL(e,t),r=await fetch(n,{signal:AbortSignal.timeout(3e4),cache:`no-cache`});if(!r.ok)throw Error(`Registry request failed (${r.status}): ${n.toString()}`);return r.json()};return{components:{list:{query:async()=>{let e=u(await n(`registry.json`));if(!Array.isArray(e.items))throw Error(`Registry catalog must contain an items array`);return e.items.map(f)}},get:{query:async e=>{let t=m(e),r=u(await n(`components/${t}.json`)),i=f(r);if(m(i.name)!==t)throw Error(`Registry returned the wrong component for ${t}`);if(!Array.isArray(r.files))throw Error(`Registry component ${t} is missing its files`);return{...i,dependencies:p(r.dependencies),devDependencies:p(r.devDependencies),internalDependencies:d(r.registryDependencies).map(m),files:r.files.map(e=>{let n=u(e);if(typeof n.path!=`string`||typeof n.content!=`string`)throw Error(`Registry component ${t} has a file without a path or content`);return{name:n.path,content:n.content}})}}}}}}function g(e){return e.replace(/^@cyclone-ui\//,``)}const _=`components.json`;function v(e={}){return{registry:e.registry??`https://public.storm-cdn.com/cyclone-ui/registry`,path:e.path??`components`,...e.rsc===void 0?{}:{rsc:e.rsc},components:{}}}async function y(e){try{return await i(e),!0}catch{return!1}}async function b(e){let t=r(e,_);if(!await y(t))return null;let n=JSON.parse(await o(t,`utf8`));if(!n||typeof n!=`object`||!(`registry`in n)||typeof n.registry!=`string`||!(`path`in n)||typeof n.path!=`string`||`rsc`in n&&typeof n.rsc!=`boolean`||!(`components`in n)||!n.components||typeof n.components!=`object`||Array.isArray(n.components))throw Error(`${_} exists but is not a Cyclone UI configuration file`);return n}async function x(e){let t=await b(e);if(!t)throw Error(`No ${_} found. Run \"cyclone init\" first.`);return t}async function S(t,n){let i=r(t,_);await a(e(i),{recursive:!0}),await s(i,`${JSON.stringify(n,null,2)}\n`,`utf8`)}function C(e,i){let a=r(e),o=r(a,i),s=n(a,o);if(s.startsWith(`..`)||t(s))throw Error(`Refusing to write outside the project: ${i}`);return o}export{x as a,l as c,b as i,g as l,v as n,C as o,y as r,S as s,_ as t,h as u};
|
|
@@ -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-C3z2Y61E.mjs";function o(){e(`${i(t.heading.secondary(`Tags: `))} ${t.tags.utility?t.tags.utility(r(` Utility `)):t.tags.default(r(` Utility `))}`,{padding:0}),e(``),e(i(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`completions`)} ${t.usage.command(`zsh`)} ${t.usage.command(`config`)} ${t.usage.args(`<path>`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`completions`)} ${t.usage.command(`zsh`)} ${t.usage.command(`config`)} ${t.usage.options(`[options]`)} ${t.usage.args(`<path>`)}`),{padding:0}),e(``),e(i(t.heading.secondary(`Options:`))),a([[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Should the generated completion script be written to console output instead of an actual file on disk? (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),e(``),e(t.body.tertiary(`More information can be found in the Completions - Zsh Configuration command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/completions/zsh/config`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{o as t};
|