@cyclone-ui/cli 0.6.12 → 0.6.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/{add-BHWAI1Pk.mjs → add-BO9sicre.mjs} +1 -1
  2. package/dist/add.mjs +1 -1
  3. package/dist/{analyze-a11y-4_v79IOk.mjs → analyze-a11y-C0_xJ68a.mjs} +1 -1
  4. package/dist/analyze-a11y.mjs +1 -1
  5. package/dist/bin.mjs +7 -7
  6. package/dist/{build-C3I6ZPWs.mjs → build-C219f-U4.mjs} +1 -1
  7. package/dist/build.mjs +1 -1
  8. package/dist/{changelog-vAawZ82i.mjs → changelog-D7Pj1d-6.mjs} +1 -1
  9. package/dist/changelog.mjs +15 -1
  10. package/dist/completions-bash-config.mjs +1 -1
  11. package/dist/completions-bash-script.mjs +1 -1
  12. package/dist/completions-fish-config.mjs +1 -1
  13. package/dist/completions-fish-script.mjs +1 -1
  14. package/dist/completions-powershell-config.mjs +1 -1
  15. package/dist/completions-powershell-script.mjs +1 -1
  16. package/dist/completions-zsh-config.mjs +1 -1
  17. package/dist/completions-zsh-script.mjs +1 -1
  18. package/dist/{config-DxzutsB0.mjs → config-BCSzLSa4.mjs} +1 -1
  19. package/dist/{config-Cjeys7Og.mjs → config-DUW81qVA.mjs} +1 -1
  20. package/dist/{config-DfWf3LDv.mjs → config-Dt1_5gd_.mjs} +1 -1
  21. package/dist/{config-UK_lz_pB.mjs → config-zK7GEtuI.mjs} +1 -1
  22. package/dist/{console-5K4_OYu1.mjs → console-CoX88Qw8.mjs} +1 -1
  23. package/dist/{create-tokens-CC63DFx_.mjs → create-tokens-DnyuLDUq.mjs} +1 -1
  24. package/dist/create-tokens.mjs +1 -1
  25. package/dist/{design-system-PC_D8J1P.mjs → design-system-CSIS3wXV.mjs} +1 -1
  26. package/dist/{diff-BzFnIvaf.mjs → diff-BvxQ_pPh.mjs} +1 -1
  27. package/dist/diff.mjs +1 -1
  28. package/dist/{docs-Cw5hsPf-.mjs → docs-Drqg-8iT.mjs} +1 -1
  29. package/dist/docs.mjs +1 -1
  30. package/dist/{guidelines-BUN7G8k4.mjs → guidelines-BioBIwoK.mjs} +1 -1
  31. package/dist/guidelines.mjs +1 -1
  32. package/dist/help.mjs +2 -2
  33. package/dist/{info-_dmGFjNB.mjs → info-CQWXwPbx.mjs} +1 -1
  34. package/dist/info.mjs +1 -1
  35. package/dist/{init-Dlcf30KM.mjs → init-Dl6gJpM5.mjs} +1 -1
  36. package/dist/init.mjs +1 -1
  37. package/dist/{list-components-DB2UX7p9.mjs → list-components-CvsFpf_K.mjs} +1 -1
  38. package/dist/list-components.mjs +1 -1
  39. package/dist/{list-fonts-C1oCeFda.mjs → list-fonts-Ce0dnvNt.mjs} +1 -1
  40. package/dist/list-fonts.mjs +1 -1
  41. package/dist/{list-icons-BZN-7pQ2.mjs → list-icons-Cc1yXA8W.mjs} +1 -1
  42. package/dist/list-icons.mjs +1 -1
  43. package/dist/{list-tokens-D_eV-PCQ.mjs → list-tokens-5-5H0j1d.mjs} +1 -1
  44. package/dist/list-tokens.mjs +1 -1
  45. package/dist/{mcp-DeRfsajF.mjs → mcp-ChXpEwWx.mjs} +1 -1
  46. package/dist/mcp.mjs +1 -1
  47. package/dist/{plan-1uiAvSpD.mjs → plan-CvJupXVE.mjs} +1 -1
  48. package/dist/plan.mjs +1 -1
  49. package/dist/{prompts-CTJeZrPY.mjs → prompts-bFke_NJI.mjs} +1 -1
  50. package/dist/{registry-vS3JccWM.mjs → registry-f26fn1W0.mjs} +1 -1
  51. package/dist/registry-validate.mjs +1 -1
  52. package/dist/{script-BylVDZpX.mjs → script-BYp3JkZA.mjs} +1 -1
  53. package/dist/{script-B0z5f_yq.mjs → script-CEbthWWk.mjs} +1 -1
  54. package/dist/{script-DuQpEu8-.mjs → script-CWA2YfkI.mjs} +1 -1
  55. package/dist/{script-BNVbH836.mjs → script-kCLhRSfR.mjs} +1 -1
  56. package/dist/{search-DJntGV04.mjs → search-C4twQm15.mjs} +1 -1
  57. package/dist/{search-components-C-KvNsTR.mjs → search-components-DUH_uWPf.mjs} +1 -1
  58. package/dist/search-components.mjs +1 -1
  59. package/dist/{search-fonts-BiGpgMDP.mjs → search-fonts-DJ3b4nWY.mjs} +1 -1
  60. package/dist/search-fonts.mjs +1 -1
  61. package/dist/{search-icons-UVucfhxH.mjs → search-icons-D60D53ID.mjs} +1 -1
  62. package/dist/search-icons.mjs +1 -1
  63. package/dist/{search-tokens-CFv1sXUo.mjs → search-tokens-B0mM-jau.mjs} +1 -1
  64. package/dist/search-tokens.mjs +1 -1
  65. package/dist/search.mjs +1 -1
  66. package/dist/{update-CttKdAgi.mjs → update-B4ENMzlX.mjs} +1 -1
  67. package/dist/{update-B2hMPCG0.mjs → update-C18mGf4L.mjs} +1 -1
  68. package/dist/update.mjs +1 -1
  69. package/dist/{validate-DjCYSX4G.mjs → validate-DLP65PTe.mjs} +1 -1
  70. package/dist/{view-DuHEwinZ.mjs → view-Dr6zOEXW.mjs} +1 -1
  71. package/dist/view.mjs +1 -1
  72. package/package.json +4 -4
package/dist/search.mjs CHANGED
@@ -1,3 +1,3 @@
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-5K4_OYu1.mjs";import{a as b}from"./prompts-CTJeZrPY.mjs";import{t as x}from"./update-CttKdAgi.mjs";import{i as S}from"./config-D4XQ3gm9.mjs";import{n as C}from"./registry-C95vaVW8.mjs";import{t as w}from"./search-DJntGV04.mjs";import{resolve as T}from"node:path";import{DEFAULT_REGISTRY_URL as E}from"@cyclone-ui/registry-api/client";import"@shell-shock/core";async function D(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.11`))+` `+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(`
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-CoX88Qw8.mjs";import{a as b}from"./prompts-bFke_NJI.mjs";import{t as x}from"./update-B4ENMzlX.mjs";import{i as S}from"./config-D4XQ3gm9.mjs";import{n as C}from"./registry-C95vaVW8.mjs";import{t as w}from"./search-C4twQm15.mjs";import{resolve as T}from"node:path";import{DEFAULT_REGISTRY_URL as E}from"@cyclone-ui/registry-api/client";import"@shell-shock/core";async function D(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.13`))+` `+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(`Search Registry`).length+2))/2),0))+_(u.banner.command.primary(`Search Registry`))+` `.repeat(Math.max(Math.ceil((h().columns-(v(`Search Registry`).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),p(_(u.banner.description.primary(`Search components in the Cyclone registry.`)),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 O(e){let t=T(e.cwd??process.cwd()),n=await S(t),i=await C(e.registry??n?.registry??E).components.list.query(),a=e.query?.toLowerCase(),o=Math.max(0,e.offset??0),s=Math.max(0,e.limit??100),c=i.filter(e=>!a||[e.name,e.description,...e.tags].join(` `).toLowerCase().includes(a)).slice(o,o+s);r(e.json?JSON.stringify(c,null,2):c.map(e=>`${e.name.padEnd(28)} ${e.version??`-`} ${e.description}`).join(`
3
3
  `))}async function k(t=c()){let r={...y()};for(let e=0;e<t.slice(0).length;e++){let n=t[e].length>3&&t[e].startsWith(`--`)?`--${t[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:t[e].length>2&&t[e].startsWith(`-`)?`-${t[e].slice(1).replaceAll(`-`,``)}`:t[e];if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`)/^--?(cwd)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?r.cwd=n.replace(/^--?(cwd)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):t.length>e+1&&(r.cwd=t[++e].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`query=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`query`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`query=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`query`)/^--?(query)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?r.query=n.replace(/^--?(query)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):t.length>e+1&&(r.query=t[++e].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`){if(/^--?(limit)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=Number(n.replace(/^--?(limit)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(e)||(r.limit=e)}else if(t.length>e+1){let n=Number(t[++e].trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(n)||(r.limit=n)}}else if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`offset=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`offset`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`offset=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`offset`){if(/^--?(offset)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=Number(n.replace(/^--?(offset)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(e)||(r.offset=e)}else if(t.length>e+1){let n=Number(t[++e].trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(n)||(r.offset=n)}}else if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`json=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`json`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`json=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`json`){if(/^--?(json)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=n.replace(/^--?(json)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();r.json=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else r.json=!0}else(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`registry=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`registry=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`)&&(/^--?(registry)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?r.registry=n.replace(/^--?(registry)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):t.length>e+1&&(r.registry=t[++e].trim().replace(/^("|')/,``).replace(/("|')$/,``)))}if(i(`quiet`)||(await D(),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.`))),!e){let e=[];r.limit&&Number.isNaN(r.limit)&&e.push(`Invalid numeric value provided for the "limit" option`),r.offset&&Number.isNaN(r.offset)&&e.push(`Invalid numeric value provided for the "offset" option`)}return r.help?w():f(`search`,[`search`],[r],O)}export{k as handler};
@@ -1 +1 @@
1
- import{A as e,D as t,J as n,P as r,S as i,U as a,W as o,d as s,f as c,g as l,i as u,l as d,o as f,q as p,u as m}from"./console-5K4_OYu1.mjs";import{i as h}from"./prompts-CTJeZrPY.mjs";import g from"node:os";import{join as _,resolve as v}from"node:path";import{existsSync as y}from"node:fs";import b from"node:process";import{mkdir as x,readFile as S,writeFile as C}from"node:fs/promises";const w=g.homedir(),T=g.tmpdir();async function E(e={}){let t=e.cwd??b.cwd(),n=v(t,`..`);for(;n!==t&&t!==w&&t!==T;){let r=_(t,`package.json`);if(y(r)){if(e.isDependencyRequired){let e=JSON.parse(await S(r,`utf8`));if(Object.keys(e.dependencies||{}).concat(Object.keys(e.devDependencies||{})).concat(Object.keys(e.peerDependencies||{})).concat(Object.keys(e.optionalDependencies||{})).some(e=>e===`@cyclone-ui/cli`||e.startsWith(`@cyclone-ui/cli@`)))return r}else return r}else t=n,n=v(t,`..`)}}function D(e={}){let t=e.cwd??b.cwd(),n=v(t,`..`);for(;n!==t&&t!==w&&t!==T;){let e=[`package-lock.json`,`npm-shrinkwrap.json`,`yarn.lock`,`pnpm-lock.yaml`,`pnpm-workspace.yaml`,`deno.lock`,`deno.json`,`deno.jsonc`,`bun.lock`,`bun.lockb`].find(e=>y(_(t,e)));if(e)return e;t=n,n=v(t,`..`)}}async function O(e={}){let t=b.env.npm_config_user_agent??``,n=b.env.npm_execpath??``;if(t.startsWith(`yarn`)||n.includes(`yarn`))return`yarn`;if(t.startsWith(`pnpm`)||n.includes(`pnpm`))return`pnpm`;if(t.startsWith(`bun`)||n.includes(`bun`)||b.versions.bun)return`bun`;{let t=D(e);if(t===`yarn.lock`)return`yarn`;if(t===`deno.lock`||t===`deno.json`||t===`deno.jsonc`)return`deno`;if(t===`pnpm-lock.yaml`||t===`pnpm-workspace.yaml`)return`pnpm`;if(t===`bun.lock`||t===`bun.lockb`)return`bun`;{let t=await E(e);if(t&&y(t)){let e=JSON.parse(await S(t,`utf8`));if(e.devEngines?.packageManager?.name&&typeof e.devEngines.packageManager.name==`string`&&[`npm`,`yarn`,`pnpm`,`deno`,`bun`].includes(e.devEngines.packageManager.name))return e.devEngines.packageManager.name;let n={...e.dependencies,...e.devDependencies,...e.peerDependencies,...e.optionalDependencies};if(Object.keys(n).some(e=>e===`yarn`||e.startsWith(`yarn@`)||e===`yarnpkg`||e.startsWith(`yarnpkg@`)))return`yarn`;if(Object.keys(n).some(e=>e===`bun`||e.startsWith(`bun@`)))return`bun`;if(Object.keys(n).some(e=>e===`pnpm`||e.startsWith(`pnpm@`)))return`pnpm`;if(Object.keys(n).some(e=>e===`deno`||e.startsWith(`deno@`)))return`deno`}return`npm`}}}async function k(e){let t=await fetch(`https://registry.npmjs.com/-/v1/search?text=${e}&size=1`).then(e=>e.json());if(t.objects&&t.objects.length>0&&t.objects[0].package&&t.objects[0].package.name===e)return t.objects[0].package}async function A(e=`@cyclone-ui/cli`){return(await k(e))?.version}async function j(e,t=b.cwd()){let n=await A(`@cyclone-ui/cli`)||`latest`;return e===`yarn`?[`upgrade`,`@cyclone-ui/cli@${n}`]:e===`pnpm`?[`update`,`@cyclone-ui/cli@${n}`]:e===`deno`?[`outdated`,`--update`,`@cyclone-ui/cli@${n}`]:e===`bun`?[`update`,`--save`,`@cyclone-ui/cli@${n}`]:[`update`,`--save`,`--bin-links`,`@cyclone-ui/cli@${n}`]}async function M(e={}){let t=await O(e),n=await j(t,e.cwd),i=``;await r(`${t}${p&&t!==`bun`?`.cmd`:``}`,[n.join(` `)],{...e,env:{...e.env,...t===`pnpm`?{npm_config_strict_peer_dependencies:!1}:null},stdout:t=>{e.stdout?.(t),i+=t},stderr:t=>{e.stderr?.(t)}})}async function N(e={}){if(!e.force&&!await P())return{latestVersion:`0.6.11`,currentVersion:`0.6.11`,isUpToDate:!0,isError:!1};try{let e=await k(`@cyclone-ui/cli`);return{latestVersion:e?.version||`0.6.11`,currentVersion:`0.6.11`,isUpToDate:!e||e.version===`0.6.11`,package:e,isError:!1}}catch(e){return{isError:!0,error:e instanceof Error?e:Error(String(e))}}}async function P(){if(!e||o||a.SKIP_UPDATE_CHECK)return!1;let t=_(n.data,`update-check.json`);if(y(t)){let e=JSON.parse(await S(t,`utf8`));if(!e.timestamp)return await F(),!0;if((/* @__PURE__ */ new Date()).getTime()-e.timestamp<1296e5)return!1}else return await F(),!0}async function F(){y(n.data)||await x(n.data,{recursive:!0}),await C(_(n.data,`update-check.json`),JSON.stringify({timestamp:(/* @__PURE__ */ new Date()).getTime()}),`utf8`)}async function I(){if(await P()){let e=u({message:`Checking for updates...`}).start(),n=await N({force:!0});if(n?.isError)e.error(`An error occurred while checking for Cyclone User Interface application updates. Please try again later - if the problem persists, please contact support.`),f(n.error);else if(n?.isUpToDate)e.success(`Currently running the latest version of Cyclone User Interface.`),t(``);else{e.stop(),s(`A new version of Cyclone User Interface is available: ${l(`v${n.currentVersion}`)} ${i.body.tertiary(`➜`)} ${d(`v${n.latestVersion}`)}${n.package?.date?i.body.tertiary(` (updated on ${n.package?.date})`):``}`);try{await M(),e.success(`Update successful! Please restart the application to apply the update.`),t(``),m(`The changelog for this release can be viewed by running the ${c(`cyclone-ui changelog`)} command.`),t(``),t(`Press any key to exit the application...`),await h();return}catch(t){e.error(`An error occurred while updating Cyclone User Interface to v${n.latestVersion}. Please try again later - if the problem persists, please contact support.`),f(t)}}}}export{I as t};
1
+ import{A as e,D as t,J as n,P as r,S as i,U as a,W as o,d as s,f as c,g as l,i as u,l as d,o as f,q as p,u as m}from"./console-CoX88Qw8.mjs";import{i as h}from"./prompts-bFke_NJI.mjs";import g from"node:os";import{join as _,resolve as v}from"node:path";import{existsSync as y}from"node:fs";import b from"node:process";import{mkdir as x,readFile as S,writeFile as C}from"node:fs/promises";const w=g.homedir(),T=g.tmpdir();async function E(e={}){let t=e.cwd??b.cwd(),n=v(t,`..`);for(;n!==t&&t!==w&&t!==T;){let r=_(t,`package.json`);if(y(r)){if(e.isDependencyRequired){let e=JSON.parse(await S(r,`utf8`));if(Object.keys(e.dependencies||{}).concat(Object.keys(e.devDependencies||{})).concat(Object.keys(e.peerDependencies||{})).concat(Object.keys(e.optionalDependencies||{})).some(e=>e===`@cyclone-ui/cli`||e.startsWith(`@cyclone-ui/cli@`)))return r}else return r}else t=n,n=v(t,`..`)}}function D(e={}){let t=e.cwd??b.cwd(),n=v(t,`..`);for(;n!==t&&t!==w&&t!==T;){let e=[`package-lock.json`,`npm-shrinkwrap.json`,`yarn.lock`,`pnpm-lock.yaml`,`pnpm-workspace.yaml`,`deno.lock`,`deno.json`,`deno.jsonc`,`bun.lock`,`bun.lockb`].find(e=>y(_(t,e)));if(e)return e;t=n,n=v(t,`..`)}}async function O(e={}){let t=b.env.npm_config_user_agent??``,n=b.env.npm_execpath??``;if(t.startsWith(`yarn`)||n.includes(`yarn`))return`yarn`;if(t.startsWith(`pnpm`)||n.includes(`pnpm`))return`pnpm`;if(t.startsWith(`bun`)||n.includes(`bun`)||b.versions.bun)return`bun`;{let t=D(e);if(t===`yarn.lock`)return`yarn`;if(t===`deno.lock`||t===`deno.json`||t===`deno.jsonc`)return`deno`;if(t===`pnpm-lock.yaml`||t===`pnpm-workspace.yaml`)return`pnpm`;if(t===`bun.lock`||t===`bun.lockb`)return`bun`;{let t=await E(e);if(t&&y(t)){let e=JSON.parse(await S(t,`utf8`));if(e.devEngines?.packageManager?.name&&typeof e.devEngines.packageManager.name==`string`&&[`npm`,`yarn`,`pnpm`,`deno`,`bun`].includes(e.devEngines.packageManager.name))return e.devEngines.packageManager.name;let n={...e.dependencies,...e.devDependencies,...e.peerDependencies,...e.optionalDependencies};if(Object.keys(n).some(e=>e===`yarn`||e.startsWith(`yarn@`)||e===`yarnpkg`||e.startsWith(`yarnpkg@`)))return`yarn`;if(Object.keys(n).some(e=>e===`bun`||e.startsWith(`bun@`)))return`bun`;if(Object.keys(n).some(e=>e===`pnpm`||e.startsWith(`pnpm@`)))return`pnpm`;if(Object.keys(n).some(e=>e===`deno`||e.startsWith(`deno@`)))return`deno`}return`npm`}}}async function k(e){let t=await fetch(`https://registry.npmjs.com/-/v1/search?text=${e}&size=1`).then(e=>e.json());if(t.objects&&t.objects.length>0&&t.objects[0].package&&t.objects[0].package.name===e)return t.objects[0].package}async function A(e=`@cyclone-ui/cli`){return(await k(e))?.version}async function j(e,t=b.cwd()){let n=await A(`@cyclone-ui/cli`)||`latest`;return e===`yarn`?[`upgrade`,`@cyclone-ui/cli@${n}`]:e===`pnpm`?[`update`,`@cyclone-ui/cli@${n}`]:e===`deno`?[`outdated`,`--update`,`@cyclone-ui/cli@${n}`]:e===`bun`?[`update`,`--save`,`@cyclone-ui/cli@${n}`]:[`update`,`--save`,`--bin-links`,`@cyclone-ui/cli@${n}`]}async function M(e={}){let t=await O(e),n=await j(t,e.cwd),i=``;await r(`${t}${p&&t!==`bun`?`.cmd`:``}`,[n.join(` `)],{...e,env:{...e.env,...t===`pnpm`?{npm_config_strict_peer_dependencies:!1}:null},stdout:t=>{e.stdout?.(t),i+=t},stderr:t=>{e.stderr?.(t)}})}async function N(e={}){if(!e.force&&!await P())return{latestVersion:`0.6.13`,currentVersion:`0.6.13`,isUpToDate:!0,isError:!1};try{let e=await k(`@cyclone-ui/cli`);return{latestVersion:e?.version||`0.6.13`,currentVersion:`0.6.13`,isUpToDate:!e||e.version===`0.6.13`,package:e,isError:!1}}catch(e){return{isError:!0,error:e instanceof Error?e:Error(String(e))}}}async function P(){if(!e||o||a.SKIP_UPDATE_CHECK)return!1;let t=_(n.data,`update-check.json`);if(y(t)){let e=JSON.parse(await S(t,`utf8`));if(!e.timestamp)return await F(),!0;if((/* @__PURE__ */ new Date()).getTime()-e.timestamp<1296e5)return!1}else return await F(),!0}async function F(){y(n.data)||await x(n.data,{recursive:!0}),await C(_(n.data,`update-check.json`),JSON.stringify({timestamp:(/* @__PURE__ */ new Date()).getTime()}),`utf8`)}async function I(){if(await P()){let e=u({message:`Checking for updates...`}).start(),n=await N({force:!0});if(n?.isError)e.error(`An error occurred while checking for Cyclone User Interface application updates. Please try again later - if the problem persists, please contact support.`),f(n.error);else if(n?.isUpToDate)e.success(`Currently running the latest version of Cyclone User Interface.`),t(``);else{e.stop(),s(`A new version of Cyclone User Interface is available: ${l(`v${n.currentVersion}`)} ${i.body.tertiary(`➜`)} ${d(`v${n.latestVersion}`)}${n.package?.date?i.body.tertiary(` (updated on ${n.package?.date})`):``}`);try{await M(),e.success(`Update successful! Please restart the application to apply the update.`),t(``),m(`The changelog for this release can be viewed by running the ${c(`cyclone-ui changelog`)} command.`),t(``),t(`Press any key to exit the application...`),await h();return}catch(t){e.error(`An error occurred while updating Cyclone User Interface to v${n.latestVersion}. Please try again later - if the problem persists, please contact support.`),f(t)}}}}export{I 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-5K4_OYu1.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(`update`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`upgrade`)} ${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(`--latest`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Whether to update to the latest version (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(`--version <version>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`A specific application version to update to (default: "latest").`),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 Update command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/update`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{o as t};
1
+ import{D as e,S as t,h as n,p as r,t as i,x as a}from"./console-CoX88Qw8.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(`update`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`upgrade`)} ${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(`--latest`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Whether to update to the latest version (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(`--version <version>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`A specific application version to update to (default: "latest").`),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 Update command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/update`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{o as t};
package/dist/update.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-5K4_OYu1.mjs";import{a as y}from"./prompts-CTJeZrPY.mjs";import{t as b}from"./update-CttKdAgi.mjs";import{t as x}from"./update-B2hMPCG0.mjs";async function S(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.11`))+` `+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(`
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-CoX88Qw8.mjs";import{a as y}from"./prompts-bFke_NJI.mjs";import{t as b}from"./update-B4ENMzlX.mjs";import{t as x}from"./update-C18mGf4L.mjs";async function S(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.13`))+` `+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-(_(`Update`).length+2))/2),0))+g(l.banner.command.primary(`Update`))+` `.repeat(Math.max(Math.ceil((m().columns-(_(`Update`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),f(g(l.banner.description.primary(`A command for checking and updating the version of the Cyclone User Interface command-line interface 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-(_(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 C(e){}async function w(e=s()){let t={...v(),latest:!1,version:`latest`};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(`latest=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`latest`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`latest=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`latest`){if(/^--?(latest)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(latest)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.latest=!!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.latest=!0}else(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`version=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`version`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`version=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`version`)&&(/^--?(version)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.version=r.replace(/^--?(version)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.version=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)))}return r(`quiet`)||(await S(),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(`update`,[`update`],[t],C)}export{w as handler};
@@ -1 +1 @@
1
- import{D as e,S as t,h as n,t as r,x as i}from"./console-5K4_OYu1.mjs";function a(){e(``),e(r(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`registry`)} ${t.usage.command(`validate`)} ${t.usage.args(`<registry>`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`registry`)} ${t.usage.command(`validate`)} ${t.usage.options(`[options]`)} ${t.usage.args(`<registry>`)}`),{padding:0}),e(``),e(r(t.heading.secondary(`Options:`))),i([[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--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 Validate Registry command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/registry/validate`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{a as t};
1
+ import{D as e,S as t,h as n,t as r,x as i}from"./console-CoX88Qw8.mjs";function a(){e(``),e(r(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`registry`)} ${t.usage.command(`validate`)} ${t.usage.args(`<registry>`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`registry`)} ${t.usage.command(`validate`)} ${t.usage.options(`[options]`)} ${t.usage.args(`<registry>`)}`),{padding:0}),e(``),e(r(t.heading.secondary(`Options:`))),i([[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--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 Validate Registry command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/registry/validate`)}${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-5K4_OYu1.mjs";function a(){e(``),e(r(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`view`)} ${t.usage.args(`<components...>`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`view`)} ${t.usage.options(`[options]`)} ${t.usage.args(`<components...>`)}`),{padding:0}),e(``),e(r(t.heading.secondary(`Options:`))),i([[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--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(`Registry API URL.`),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 View Registry Components command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/view`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{a as t};
1
+ import{D as e,S as t,h as n,t as r,x as i}from"./console-CoX88Qw8.mjs";function a(){e(``),e(r(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`view`)} ${t.usage.args(`<components...>`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`view`)} ${t.usage.options(`[options]`)} ${t.usage.args(`<components...>`)}`),{padding:0}),e(``),e(r(t.heading.secondary(`Options:`))),i([[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--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(`Registry API URL.`),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 View Registry Components command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/view`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{a as t};
package/dist/view.mjs CHANGED
@@ -1,3 +1,3 @@
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,c as m,j as h,k as g,m as _,n as v,t as y,y as b,z as x}from"./console-5K4_OYu1.mjs";import{a as S,r as C,t as w}from"./prompts-CTJeZrPY.mjs";import{t as T}from"./view-DuHEwinZ.mjs";import{t as E}from"./update-CttKdAgi.mjs";import{i as D}from"./config-D4XQ3gm9.mjs";import{n as O}from"./registry-C95vaVW8.mjs";import{resolve as k}from"node:path";import{DEFAULT_REGISTRY_URL as A}from"@cyclone-ui/registry-api/client";async function j(r=500){if(t().get(`is-banner-displayed`)||i(`no-banner`)||i(`hide-banner`)||h)return;t().set(`is-banner-displayed`,!0),n(``),n(v.banner.outline.primary(`┏`)+v.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+v.banner.outline.primary(`━`)+` `+y(u.banner.header.primary(`Cyclone CLI v0.6.11`))+` `+v.banner.outline.primary(`━`.repeat(Math.max(g().columns-33,0)))+v.banner.outline.primary(`┓`),{consoleFn:console.log});let a=Math.max(...S.map(e=>b(e).length))>Math.max(g().columns+30,20)?`Cyclone User Interface`:`\n${S.join(`
1
+ import{A as e,B as t,D as n,E as r,F as i,G as a,I as o,K as s,L as c,N as l,S as u,U as d,V as f,_ as p,c as m,j as h,k as g,m as _,n as v,t as y,y as b,z as x}from"./console-CoX88Qw8.mjs";import{a as S,r as C,t as w}from"./prompts-bFke_NJI.mjs";import{t as T}from"./view-Dr6zOEXW.mjs";import{t as E}from"./update-B4ENMzlX.mjs";import{i as D}from"./config-D4XQ3gm9.mjs";import{n as O}from"./registry-C95vaVW8.mjs";import{resolve as k}from"node:path";import{DEFAULT_REGISTRY_URL as A}from"@cyclone-ui/registry-api/client";async function j(r=500){if(t().get(`is-banner-displayed`)||i(`no-banner`)||i(`hide-banner`)||h)return;t().set(`is-banner-displayed`,!0),n(``),n(v.banner.outline.primary(`┏`)+v.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+v.banner.outline.primary(`━`)+` `+y(u.banner.header.primary(`Cyclone CLI v0.6.13`))+` `+v.banner.outline.primary(`━`.repeat(Math.max(g().columns-33,0)))+v.banner.outline.primary(`┓`),{consoleFn:console.log});let a=Math.max(...S.map(e=>b(e).length))>Math.max(g().columns+30,20)?`Cyclone User Interface`:`\n${S.join(`
2
2
  `)}\n`;p(a,Math.max(g().columns-30,20)).forEach(e=>{n(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((g().columns-(b(e).length+2))/2),0))+y(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((g().columns-(b(e).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((g().columns-(b(`View Registry Components`).length+2))/2),0))+y(u.banner.command.primary(`View Registry Components`))+` `.repeat(Math.max(Math.ceil((g().columns-(b(`View Registry Components`).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log}),p(y(u.banner.description.primary(`View component metadata and files from the registry.`)),Math.max(60>g().columns/2?g().columns-6:g().columns-30,20)).forEach(e=>{n(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((g().columns-(b(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((g().columns-(b(e).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(g().columns-2,0))+v.banner.outline.primary(`┃`),{consoleFn:console.log}),n(v.banner.outline.primary(`┗`)+v.banner.outline.primary(`━`.repeat(Math.max(g().columns-32,0)))+` `+y(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+v.banner.outline.primary(`━`.repeat(6))+v.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!o()&&await l(r)}async function M(e,t){let n=k(e.cwd??process.cwd()),i=await D(n),a=O(e.registry??i?.registry??A);r(JSON.stringify(await Promise.all(t.map(e=>a.components.get.query(e))),null,2))}async function N(t=c()){let r={...x()};for(let e=0;e<t.slice(0).length;e++){let n=t[e].length>3&&t[e].startsWith(`--`)?`--${t[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:t[e].length>2&&t[e].startsWith(`-`)?`-${t[e].slice(1).replaceAll(`-`,``)}`:t[e];n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`?/^--?(cwd)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?r.cwd=n.replace(/^--?(cwd)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):t.length>e+1&&(r.cwd=t[++e].trim().replace(/^("|')/,``).replace(/("|')$/,``)):(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`registry=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`registry=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`)&&(/^--?(registry)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?r.registry=n.replace(/^--?(registry)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):t.length>e+1&&(r.registry=t[++e].trim().replace(/^("|')/,``).replace(/("|')$/,``)))}let l=Math.max(0,t.slice(2).findIndex(e=>e.startsWith(`-`)&&/^(cwd|registry)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+2,p=l>2?2:Math.max(0,t.slice(l).findLastIndex(e=>e.startsWith(`-`)&&/^(cwd|registry)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+2,h=[];if(p+0<t.length&&p+0!==l&&(h=t.slice(p+0,(l>p?l:t.length)-1).join(` `).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)),i(`quiet`)||(await j(),await E()),!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.`))),!e){let e=[];h?h.length===0&&e.push(`No values were provided to the required "components" array positional argument`):e.push(`Missing required "components" positional argument`)}else if(!o()&&(!h||h.length===0)){if(n(``),!h){let e=await C({message:`Please provide a value for the ${_(`components`)} argument`,description:`Component names to view.`,validate(e){return!e||e.trim()===``?`A value must be provided for this argument`:null}});if(w(e))return;h=e}else if(h.length===0){let e=await C({message:`Please provide one or more values for the ${_(`components`)} argument (values are separated by a \",\" character)`,description:`Component names to view.`,validate(e){if(!e||e.trim()===``)return`A value must be provided for this argument`;if(e.split(`,`).map(e=>e.trim()).filter(Boolean).length===0)return`At least one value must be provided for this argument`}});if(w(e))return;h=e.split(`,`).map(e=>e.trim()).filter(Boolean)}n(``);let e=[];h?h.length===0&&e.push(`No values were provided to the required "components" array positional argument`):e.push(`Missing required "components" positional argument`),e.length>0&&(m(`The following validation failures were found while processing the user provided input, and must be corrected before the ${_(`View Registry Components`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
3
3
  `)}`),r.help=!0)}return r.help?T():f(`view`,[`view`],[r,h],M)}export{N as handler};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyclone-ui/cli",
3
- "version": "0.6.12",
3
+ "version": "0.6.14",
4
4
  "type": "module",
5
5
  "description": "🌀 A repository containing [Tamagui](https://github.com/tamagui/tamagui) based design components used by Storm Software. Like [shadcn/ui](https://github.com/shadcn-ui/ui), the components are copied into other repositories via the Cyclone CLI.",
6
6
  "repository": {
@@ -41,8 +41,8 @@
41
41
  "files": ["dist"],
42
42
  "keywords": ["cli", "cyclone-ui", "storm-software", "shell-shock"],
43
43
  "dependencies": {
44
- "@cyclone-ui/registry-api": "0.3.22",
45
- "@cyclone-ui/theme-builder": "0.0.12",
44
+ "@cyclone-ui/registry-api": "0.3.24",
45
+ "@cyclone-ui/theme-builder": "0.0.14",
46
46
  "@modelcontextprotocol/server": "^2.3.1",
47
47
  "@powerlines/plugin-env": "^0.16.423",
48
48
  "@razorwind/core": "^0.0.91",
@@ -98,5 +98,5 @@
98
98
  "./update": "./dist/update.mjs",
99
99
  "./view": "./dist/view.mjs"
100
100
  },
101
- "gitHead": "d42f9d830e122212d826366e3e4f6ace88962bdb"
101
+ "gitHead": "f847602b4e235b3733b9ab4bb4610c1eddfe5be5"
102
102
  }