@cyclone-ui/cli 0.6.30 → 0.6.32
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 +17 -0
- package/dist/{add-Cv2eFMfn.mjs → add-DX5-1svj.mjs} +1 -1
- package/dist/{add-Dl1MlMm-.mjs → add-DlkkqXD5.mjs} +1 -1
- package/dist/add.mjs +2 -2
- package/dist/{analyze-a11y-D1RAGQ2R.mjs → analyze-a11y-CXICa01D.mjs} +1 -1
- package/dist/{analyze-a11y-fJFDqeMs.mjs → analyze-a11y-ClxD-Mmw.mjs} +1 -1
- package/dist/analyze-a11y.mjs +1 -1
- package/dist/bin.mjs +7 -7
- package/dist/{build-BdVxZXz1.mjs → build-COdBWpnM.mjs} +1 -1
- package/dist/{build-CM8y_35Z.mjs → build-DbfwsNSw.mjs} +1 -1
- package/dist/{build-tokens-CRkqAINr.mjs → build-tokens-BHvl-5A0.mjs} +1 -1
- package/dist/{build-tokens-Ct60cv3P.mjs → build-tokens-d73EVlcR.mjs} +1 -1
- package/dist/build-tokens.mjs +1 -1
- package/dist/build.mjs +1 -1
- package/dist/{changelog-BA48YmOu.mjs → changelog-CkQwoP96.mjs} +1 -1
- package/dist/{changelog-BGAOhPn2.mjs → changelog-CtzTBC6Y.mjs} +1 -1
- package/dist/changelog.mjs +19 -1
- package/dist/{command-D1ehhCHx.mjs → command-C8uGAzvR.mjs} +1 -1
- package/dist/{command-DmDG4xic.mjs → command-DPQVb2wG.mjs} +1 -1
- package/dist/completions-bash-config.mjs +1 -1
- package/dist/completions-bash-script.mjs +1 -1
- package/dist/completions-fish-config.mjs +1 -1
- package/dist/completions-fish-script.mjs +1 -1
- package/dist/completions-powershell-config.mjs +1 -1
- package/dist/completions-powershell-script.mjs +1 -1
- package/dist/completions-zsh-config.mjs +1 -1
- package/dist/completions-zsh-script.mjs +1 -1
- package/dist/{config-D7IVaJ5P.mjs → config-BiSIPsbA.mjs} +1 -1
- package/dist/{config-DYXfs2fJ.mjs → config-BuknDZ7a.mjs} +1 -1
- package/dist/{config-KuPXlUvU.mjs → config-C5yoiRiB.mjs} +1 -1
- package/dist/{config-EZps8tm1.mjs → config-Cs_JmzEv.mjs} +1 -1
- package/dist/{config-da5ZosEw.mjs → config-CzWANhfz.mjs} +1 -1
- package/dist/{config-CKIMLC8Q.mjs → config-DPG_g0jF.mjs} +1 -1
- package/dist/{config-By4OTDjw.mjs → config-DpkK8_wo.mjs} +1 -1
- package/dist/{config-cGeP0-jG.mjs → config-g4up_gub.mjs} +1 -1
- package/dist/{console-DU7vcGya.mjs → console-rZqGKzyI.mjs} +1 -1
- package/dist/{console-PzvWp82a.mjs → console-tp4B64iL.mjs} +1 -1
- package/dist/{design-system-CRLpKzu7.mjs → design-system-BLMZ73WE.mjs} +1 -1
- package/dist/{design-system-BtXhFE27.mjs → design-system-PQSmiwij.mjs} +1 -1
- package/dist/{diff-DFhSKwEO.mjs → diff-DfxsVkoN.mjs} +1 -1
- package/dist/{diff-DoKwBJdI.mjs → diff-xdMGLjjd.mjs} +1 -1
- package/dist/diff.mjs +1 -1
- package/dist/{docs-BTtDNAw8.mjs → docs-B7zWpYzr.mjs} +1 -1
- package/dist/{docs-WBMFvokp.mjs → docs-Chgcuzwn.mjs} +1 -1
- package/dist/docs.mjs +2 -2
- package/dist/{guidelines-DCghg--s.mjs → guidelines-_OkPKSpM.mjs} +1 -1
- package/dist/{guidelines-x5UWleIA.mjs → guidelines-iY5QYonK.mjs} +1 -1
- package/dist/guidelines.mjs +1 -1
- package/dist/help.mjs +1 -1
- package/dist/{info-B2jU90Gt.mjs → info-C08Ua-lY.mjs} +1 -1
- package/dist/{info-DNGJNJST.mjs → info-D7tg6Utb.mjs} +1 -1
- package/dist/info.mjs +2 -2
- package/dist/{init-BDl_xO4d.mjs → init-BDGpNmfi.mjs} +1 -1
- package/dist/{init-DFczDZ_p.mjs → init-CoAwpJ4a.mjs} +1 -1
- package/dist/init.mjs +2 -2
- package/dist/{list-components-C5KLimGW.mjs → list-components-DLrbamkZ.mjs} +1 -1
- package/dist/{list-components-miHI9P_s.mjs → list-components-cwXQ3JbJ.mjs} +1 -1
- package/dist/list-components.mjs +1 -1
- package/dist/{list-fonts-DZ8Yo1C3.mjs → list-fonts-BdDLPaFG.mjs} +1 -1
- package/dist/{list-fonts-DcY4LVRH.mjs → list-fonts-CFjKVVTc.mjs} +1 -1
- package/dist/list-fonts.mjs +1 -1
- package/dist/{list-icons-BHSE3_NL.mjs → list-icons-DgOrr2WV.mjs} +1 -1
- package/dist/{list-icons-DiJnNyax.mjs → list-icons-Du2iu_AB.mjs} +1 -1
- package/dist/list-icons.mjs +1 -1
- package/dist/{list-tokens-5_RQj78z.mjs → list-tokens-D84bxn0q.mjs} +1 -1
- package/dist/{list-tokens-CucMrLet.mjs → list-tokens-sxW-PC2v.mjs} +1 -1
- package/dist/list-tokens.mjs +1 -1
- package/dist/{mcp-BFR3E5Ly.mjs → mcp-C6hRKayN.mjs} +1 -1
- package/dist/{mcp-J22WL2BF.mjs → mcp-CBucwhvj.mjs} +1 -1
- package/dist/mcp.mjs +5 -5
- package/dist/{plan-Dfw5x0Mr.mjs → plan-B6nLG5YO.mjs} +1 -1
- package/dist/{plan-b9XSjOs_.mjs → plan-DfVH5iqK.mjs} +1 -1
- package/dist/plan.mjs +1 -1
- package/dist/{prompts-Dr7RVBAL.mjs → prompts-DHBjQc0T.mjs} +1 -1
- package/dist/{prompts-fzABFLHT.mjs → prompts-Dyg6u0Jq.mjs} +1 -1
- package/dist/registry-BZ0ToF-J.mjs +1 -0
- package/dist/registry-CRvAgoCG.mjs +1 -0
- package/dist/registry-validate.mjs +1 -1
- package/dist/{script-BKjmWS85.mjs → script-BGbU88uB.mjs} +1 -1
- package/dist/{script-CiQomfIe.mjs → script-CDkiaDHg.mjs} +1 -1
- package/dist/{script-Gp6uuwHB.mjs → script-CcTEaVtQ.mjs} +1 -1
- package/dist/{script-Dny3btn_.mjs → script-Cmkgezdm.mjs} +1 -1
- package/dist/{script-Ce26X9wl.mjs → script-Cre77q0v.mjs} +1 -1
- package/dist/{script-DLOmvpbo.mjs → script-Czl5lPZa.mjs} +1 -1
- package/dist/{script-Cz6d0jwU.mjs → script-DNqX_P7o.mjs} +1 -1
- package/dist/{script-qiChvBrH.mjs → script-DQMYVf5H.mjs} +1 -1
- package/dist/{search-B5ppqdZq.mjs → search-BaXhJnCl.mjs} +1 -1
- package/dist/{search-components-BrtInfS7.mjs → search-components-BmYeQnPj.mjs} +1 -1
- package/dist/{search-components-SYAq44MT.mjs → search-components-DDqJliTQ.mjs} +1 -1
- package/dist/search-components.mjs +1 -1
- package/dist/{search-fonts-CCnHsQgH.mjs → search-fonts-D4P9LE8t.mjs} +1 -1
- package/dist/{search-fonts-DohmZapO.mjs → search-fonts-EQDtHdvO.mjs} +1 -1
- package/dist/search-fonts.mjs +1 -1
- package/dist/{search-icons-B8tAv9XN.mjs → search-icons-BIgj6Bel.mjs} +1 -1
- package/dist/{search-icons-Dc6bSjaT.mjs → search-icons-FJ5qqEke.mjs} +1 -1
- package/dist/search-icons.mjs +1 -1
- package/dist/{search-CCbtLXUy.mjs → search-npq7jZQ4.mjs} +1 -1
- package/dist/{search-tokens-CfWT9xPK.mjs → search-tokens-267kp4Kn.mjs} +1 -1
- package/dist/{search-tokens-cebEGITo.mjs → search-tokens-BurCE0NL.mjs} +1 -1
- package/dist/search-tokens.mjs +1 -1
- package/dist/search.mjs +1 -1
- package/dist/{update-BCWnqdrR.mjs → update-B5jve-jV.mjs} +1 -1
- package/dist/{update-Bofys3N4.mjs → update-Ba7vuqtT.mjs} +1 -1
- package/dist/{update-C4BU83q-.mjs → update-BjiFij_9.mjs} +1 -1
- package/dist/{update-Dgy-tlS8.mjs → update-Dzn3fQuP.mjs} +1 -1
- package/dist/{update-components-AK8rHd-D.mjs → update-components-CSMhtHaW.mjs} +1 -1
- package/dist/{update-components-DoTZJ0P7.mjs → update-components-DsADXGcW.mjs} +1 -1
- package/dist/update-components.mjs +2 -2
- package/dist/update.mjs +1 -1
- package/dist/{validate-BBkq2oxt.mjs → validate-CBO4gAaf.mjs} +1 -1
- package/dist/{validate-BSIbF4uf.mjs → validate-DBkjdSDu.mjs} +1 -1
- package/dist/{view-ClFN7Gfo.mjs → view-CGOy0Xnv.mjs} +1 -1
- package/dist/{view-D57dM9cs.mjs → view-HnIrvSeH.mjs} +1 -1
- package/dist/view.mjs +2 -2
- package/package.json +4 -4
- package/dist/registry-BBiM9I7E.mjs +0 -1
- package/dist/registry-DLr8o6Tz.mjs +0 -1
package/README.md
CHANGED
|
@@ -149,6 +149,23 @@ the Cyclone CLI; no separate Tamagui CLI installation is required.
|
|
|
149
149
|
|
|
150
150
|
## Configuration
|
|
151
151
|
|
|
152
|
+
### Coding agent component protection
|
|
153
|
+
|
|
154
|
+
Coding agents must not change installed or added Cyclone UI component files unless
|
|
155
|
+
the user specifically instructs them to do so. `components.json` identifies the
|
|
156
|
+
configured component path and installed files. General feature, styling, or
|
|
157
|
+
application-fix requests do not authorize component edits, formatting, renames,
|
|
158
|
+
deletions, registry updates, or overwrites. Prefer supported props, composition,
|
|
159
|
+
application-owned wrappers, and theme configuration outside the installed files.
|
|
160
|
+
If changing a component is necessary, explain why and ask for specific instructions
|
|
161
|
+
first. Explicitly requested component additions or changes must remain scoped and
|
|
162
|
+
preserve unrelated installed files and local edits.
|
|
163
|
+
|
|
164
|
+
This guidance is included in the CLI's `guidelines` command (also exposed through
|
|
165
|
+
MCP), component command descriptions, and `info` output. `info --json` includes an
|
|
166
|
+
`agentInstructions` field. It is guidance for agents, not a filesystem write lock;
|
|
167
|
+
explicitly requested CLI operations remain available.
|
|
168
|
+
|
|
152
169
|
<!-- shell-shock:env -->
|
|
153
170
|
<!-- /shell-shock -->
|
|
154
171
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e,S as t,h as n,t as r,x as i}from"./console-
|
|
1
|
+
import{D as e,S as t,h as n,t as r,x as i}from"./console-tp4B64iL.mjs";function a(){e(``),e(r(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`add`)} ${t.usage.args(`<components...>`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`add`)} ${t.usage.options(`[options]`)} ${t.usage.args(`<components...>`)}`),{padding:0}),e(``),e(r(t.heading.secondary(`Options:`))),i([[{value:t.body.primary(`--all`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Add every available component.`),align:`left`,border:`none`}],[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:t.body.primary(`--diff`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the changes as a diff without writing files.`),align:`left`,border:`none`}],[{value:t.body.primary(`--dry-run`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Preview changes without writing files.`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--overwrite`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Overwrite existing files.`),align:`left`,border:`none`}],[{value:t.body.primary(`--path <path>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Override the configured component output path.`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--registry <registry>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Override the configured registry URL.`),align:`left`,border:`none`}],[{value:t.body.primary(`--rsc`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Override React Server Component support for this installation.`),align:`left`,border:`none`}],[{value:t.body.primary(`--silent`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Mute non-essential output.`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--view`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show resolved file contents without writing files.`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),e(``),e(t.body.tertiary(`More information can be found in the Add command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/add`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{a as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e,S as t,h as n,t as r,x as i}from"./console-
|
|
1
|
+
import{D as e,S as t,h as n,t as r,x as i}from"./console-rZqGKzyI.mjs";function a(){e(``),e(r(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`add`)} ${t.usage.args(`<components...>`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`add`)} ${t.usage.options(`[options]`)} ${t.usage.args(`<components...>`)}`),{padding:0}),e(``),e(r(t.heading.secondary(`Options:`))),i([[{value:t.body.primary(`--all`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Add every available component.`),align:`left`,border:`none`}],[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:t.body.primary(`--diff`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the changes as a diff without writing files.`),align:`left`,border:`none`}],[{value:t.body.primary(`--dry-run`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Preview changes without writing files.`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--overwrite`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Overwrite existing files.`),align:`left`,border:`none`}],[{value:t.body.primary(`--path <path>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Override the configured component output path.`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--registry <registry>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Override the configured registry URL.`),align:`left`,border:`none`}],[{value:t.body.primary(`--rsc`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Override React Server Component support for this installation.`),align:`left`,border:`none`}],[{value:t.body.primary(`--silent`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Mute non-essential output.`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--view`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show resolved file contents without writing files.`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),e(``),e(t.body.tertiary(`More information can be found in the Add command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/add`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{a as t};
|
package/dist/add.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as e}from"./prompts-
|
|
2
|
-
`)}\n`;m(o,Math.max(g().columns-30,20)).forEach(e=>{r(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((g().columns-(y(e).length+2))/2),0))+v(d.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((g().columns-(y(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((g().columns-(y(`Add`).length+2))/2),0))+v(d.banner.command.primary(`Add`))+` `.repeat(Math.max(Math.ceil((g().columns-(y(`Add`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),m(v(d.banner.description.primary(`Adds a new component to the project.`)),Math.max(60>g().columns/2?g().columns-6:g().columns-30,20)).forEach(e=>{r(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((g().columns-(y(e).length+2))/2),0))+d.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((g().columns-(y(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(g().columns-2,0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),r(_.banner.outline.primary(`┗`)+_.banner.outline.primary(`━`.repeat(Math.max(g().columns-32,0)))+` `+v(d.banner.footer.primary(`https://cyclone-ui.com`))+` `+_.banner.outline.primary(`━`.repeat(6))+_.banner.outline.primary(`┛`),{consoleFn:console.log}),r(``),t&&!s()&&await u(i)}async function j(e,t=[]){let n=k(e.cwd??process.cwd()),r=await D(n),a=O(e.registry??r.registry),o=e.all?(await a.components.list.query()).map(e=>e.name):t;if(o.length===0)throw Error(`Provide at least one component or use --all.`);let s=e.dryRun||e.diff||e.view,c=await w(a,r,o,{root:n,path:e.path,overwrite:e.overwrite,rsc:e.rsc,dryRun:s});e.diff?i(T(c,n)):e.view?i(c.files.map(e=>`// ${e.path}\n${e.content}`).join(`
|
|
1
|
+
import{a as e}from"./prompts-DHBjQc0T.mjs";import{A as t,B as n,D as r,E as i,F as a,G as o,I as s,K as c,L as l,N as u,S as d,U as f,V as p,_ as m,j as h,k as g,n as _,t as v,y,z as b}from"./console-rZqGKzyI.mjs";import{t as x}from"./add-DlkkqXD5.mjs";import{t as S}from"./update-B5jve-jV.mjs";import{i as C,n as w,r as T,t as E}from"./components-CFdP7ILK.mjs";import{a as D,u as O}from"./config-BwGb7RTa.mjs";import{resolve as k}from"node:path";async function A(i=500){if(n().get(`is-banner-displayed`)||a(`no-banner`)||a(`hide-banner`)||h)return;n().set(`is-banner-displayed`,!0),r(``),r(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+d.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+v(d.banner.header.primary(`Cyclone CLI v0.6.31`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(g().columns-33,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...e.map(e=>y(e).length))>Math.max(g().columns+30,20)?`Cyclone UI`:`\n${e.join(`
|
|
2
|
+
`)}\n`;m(o,Math.max(g().columns-30,20)).forEach(e=>{r(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((g().columns-(y(e).length+2))/2),0))+v(d.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((g().columns-(y(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((g().columns-(y(`Add`).length+2))/2),0))+v(d.banner.command.primary(`Add`))+` `.repeat(Math.max(Math.ceil((g().columns-(y(`Add`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),m(v(d.banner.description.primary(`Adds a new component to the project. Do not change installed or added Cyclone UI component files unless the user specifically instructs you to do so.`)),Math.max(60>g().columns/2?g().columns-6:g().columns-30,20)).forEach(e=>{r(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((g().columns-(y(e).length+2))/2),0))+d.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((g().columns-(y(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(g().columns-2,0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),r(_.banner.outline.primary(`┗`)+_.banner.outline.primary(`━`.repeat(Math.max(g().columns-32,0)))+` `+v(d.banner.footer.primary(`https://cyclone-ui.com`))+` `+_.banner.outline.primary(`━`.repeat(6))+_.banner.outline.primary(`┛`),{consoleFn:console.log}),r(``),t&&!s()&&await u(i)}async function j(e,t=[]){let n=k(e.cwd??process.cwd()),r=await D(n),a=O(e.registry??r.registry),o=e.all?(await a.components.list.query()).map(e=>e.name):t;if(o.length===0)throw Error(`Provide at least one component or use --all.`);let s=e.dryRun||e.diff||e.view,c=await w(a,r,o,{root:n,path:e.path,overwrite:e.overwrite,rsc:e.rsc,dryRun:s});e.diff?i(T(c,n)):e.view?i(c.files.map(e=>`// ${e.path}\n${e.content}`).join(`
|
|
3
3
|
|
|
4
4
|
`)):e.silent||i(C(c,n)),await E(r,c,{root:n,path:e.path,overwrite:e.overwrite,dryRun:s})}async function M(e=l()){let t={...b()};for(let n=0;n<e.slice(0).length;n++){let r=e[n].length>3&&e[n].startsWith(`--`)?`--${e[n].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[n].length>2&&e[n].startsWith(`-`)?`-${e[n].slice(1).replaceAll(`-`,``)}`:e[n];if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`)/^--?(cwd)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.cwd=r.replace(/^--?(cwd)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.cwd=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`overwrite=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`overwrite`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`overwrite=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`overwrite`){if(/^--?(overwrite)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(overwrite)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.overwrite=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.overwrite=!0}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`all=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`all`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`all=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`all`){if(/^--?(all)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(all)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.all=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.all=!0}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`path=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`path`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`path=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`path`)/^--?(path)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.path=r.replace(/^--?(path)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.path=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`dryrun=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`dryrun`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`dryrun=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`dryrun`){if(/^--?(dryrun)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(dryrun)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.dryRun=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.dryRun=!0}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`diff=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`diff`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`diff=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`diff`){if(/^--?(diff)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(diff)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.diff=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.diff=!0}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`view=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`view`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`view=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`view`){if(/^--?(view)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(view)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.view=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.view=!0}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`silent=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`silent`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`silent=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`silent`){if(/^--?(silent)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(silent)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.silent=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.silent=!0}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`registry=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`registry=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`)/^--?(registry)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.registry=r.replace(/^--?(registry)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.registry=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`rsc=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`rsc`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`rsc=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`rsc`){if(/^--?(rsc)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(rsc)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.rsc=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.rsc=!0}}let n=[];for(let t=3;t<e.length;t++)e[t].length>1&&e[t].startsWith(`-`)?!e[t].includes(`=`)&&/^(cwd|path|registry)$/.test(e[t].startsWith(`--`)?e[t].slice(2).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``):e[t].slice(1))&&t++:n.push(e[t]);let i=[];return n.length>0&&(i=n.slice(0,n.length-0).flatMap(e=>e.split(`,`)).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)),a(`quiet`)||(await A(),await S()),!s()&&!a(`quiet`)&&(r(``),(c||o||f.LOG_LEVEL===`debug`)&&r(d.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?x():p(`add`,[`add`],[t,i],j)}export{M as handler};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e,S as t,h as n,p as r,t as i,x as a}from"./console-
|
|
1
|
+
import{D as e,S as t,h as n,p as r,t as i,x as a}from"./console-tp4B64iL.mjs";function o(){e(`${i(t.heading.secondary(`Tags: `))} ${t.tags.designSystem?t.tags.designSystem(r(` Design System `)):t.tags.default(r(` Design System `))} ${t.tags.accessibility?t.tags.accessibility(r(` Accessibility `)):t.tags.default(r(` Accessibility `))}`,{padding:0}),e(``),e(i(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`analyze-a11y`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``),e(i(t.heading.secondary(`Options:`))),a([[{value:t.body.primary(`--code <code>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Source code of a React component or JSX snippet to analyze.`),align:`left`,border:`none`}],[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--component-name <component_name>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Optional label for the component under review.`),align:`left`,border:`none`}],[{value:t.body.primary(`--context <context>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Optional usage context (for example "in a form" or "modal").`),align:`left`,border:`none`}],[{value:t.body.primary(`--file <file>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Path to a source file to analyze (alternative to --code).`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--pattern-analysis`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Run regex-based heuristics (unlabeled buttons, missing alt, …) (default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),e(``),e(t.body.tertiary(`More information can be found in the Analyze Accessibility command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/analyze-a11y`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{o as t};
|
|
@@ -1 +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-rZqGKzyI.mjs";function o(){e(`${i(t.heading.secondary(`Tags: `))} ${t.tags.designSystem?t.tags.designSystem(r(` Design System `)):t.tags.default(r(` Design System `))} ${t.tags.accessibility?t.tags.accessibility(r(` Accessibility `)):t.tags.default(r(` Accessibility `))}`,{padding:0}),e(``),e(i(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`analyze-a11y`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``),e(i(t.heading.secondary(`Options:`))),a([[{value:t.body.primary(`--code <code>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Source code of a React component or JSX snippet to analyze.`),align:`left`,border:`none`}],[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--component-name <component_name>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Optional label for the component under review.`),align:`left`,border:`none`}],[{value:t.body.primary(`--context <context>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Optional usage context (for example "in a form" or "modal").`),align:`left`,border:`none`}],[{value:t.body.primary(`--file <file>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Path to a source file to analyze (alternative to --code).`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--pattern-analysis`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Run regex-based heuristics (unlabeled buttons, missing alt, …) (default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),e(``),e(t.body.tertiary(`More information can be found in the Analyze Accessibility command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/analyze-a11y`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{o as t};
|
package/dist/analyze-a11y.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./prompts-
|
|
1
|
+
import{a as e}from"./prompts-DHBjQc0T.mjs";import{A as t,B as n,D 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-rZqGKzyI.mjs";import{t as b}from"./analyze-a11y-ClxD-Mmw.mjs";import{t as x}from"./update-B5jve-jV.mjs";import{t as S}from"./design-system-BLMZ73WE.mjs";import{readFile as C}from"node:fs/promises";import{analyzeA11y as w}from"@razorwind/shell-shock/runtime";async function T(a=500){if(n().get(`is-banner-displayed`)||i(`no-banner`)||i(`hide-banner`)||m)return;n().set(`is-banner-displayed`,!0),r(``),r(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.31`))+` `+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-33,0)))+g.banner.outline.primary(`┓`),{consoleFn:console.log});let s=Math.max(...e.map(e=>v(e).length))>Math.max(h().columns+30,20)?`Cyclone UI`:`\n${e.join(`
|
|
2
2
|
`)}\n`;p(s,Math.max(h().columns-30,20)).forEach(e=>{r(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})}),r(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(`Analyze Accessibility`).length+2))/2),0))+_(u.banner.command.primary(`Analyze Accessibility`))+` `.repeat(Math.max(Math.ceil((h().columns-(v(`Analyze Accessibility`).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),p(_(u.banner.description.primary(`Analyze a React/JSX source string (or file) for likely accessibility issues and hard-coded colors, suggesting the nearest design tokens for each color.`)),Math.max(60>h().columns/2?h().columns-6:h().columns-30,20)).forEach(e=>{r(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})}),r(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(h().columns-2,0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),r(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}),r(``),t&&!o()&&await l(a)}function E(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function D(e){let t=e.code??(e.file?await C(e.file,`utf8`):void 0);t?E(w(S,t,{componentName:e.componentName,context:e.context,includePatternAnalysis:e.patternAnalysis!==!1})):(E({error:`Provide source code via --code or a path via --file.`}),process.exitCode=1)}async function O(e=c()){let t={...y(),patternAnalysis:!0};for(let n=0;n<e.slice(0).length;n++){let r=e[n].length>3&&e[n].startsWith(`--`)?`--${e[n].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[n].length>2&&e[n].startsWith(`-`)?`-${e[n].slice(1).replaceAll(`-`,``)}`:e[n];if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`code=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`code`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`code=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`code`)/^--?(code)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.code=r.replace(/^--?(code)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.code=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`file=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`file`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`file=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`file`)/^--?(file)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.file=r.replace(/^--?(file)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.file=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`componentname=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`componentname`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`componentname=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`componentname`)/^--?(componentname)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.componentName=r.replace(/^--?(componentname)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.componentName=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`context=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`context`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`context=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`context`)/^--?(context)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.context=r.replace(/^--?(context)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.context=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`patternanalysis=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`patternanalysis`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`patternanalysis=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`patternanalysis`){if(/^--?(patternanalysis)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(patternanalysis)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.patternAnalysis=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.patternAnalysis=!0}}return i(`quiet`)||(await T(),await x()),!o()&&!i(`quiet`)&&(r(``),(s||a||d.LOG_LEVEL===`debug`)&&r(u.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?b():f(`analyze-a11y`,[`analyze-a11y`],[t],D)}export{O as handler};
|
package/dist/bin.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import{a as e,n as t,o as n,r,t as i}from"./prompts-
|
|
4
|
-
`)}\n`;g(n,Math.max(y().columns-30,20)).forEach(e=>{s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(e).length+2))/2),0))+x(h.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((y().columns-(C(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(`Completions`).length+2))/2),0))+x(h.banner.command.primary(`Completions`))+` `.repeat(Math.max(Math.ceil((y().columns-(C(`Completions`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),g(x(h.banner.description.primary(`Commands for generating shell completion scripts for Cyclone User Interface.`)),Math.max(60>y().columns/2?y().columns-6:y().columns-30,20)).forEach(e=>{s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(e).length+2))/2),0))+h.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((y().columns-(C(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(y().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),s(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(y().columns-32,0)))+` `+x(h.banner.footer.primary(`https://cyclone-ui.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),s(``),a&&!u()&&await f(t)}async function M(t=500){if(o().get(`is-banner-displayed`)||c(`no-banner`)||c(`hide-banner`)||v)return;o().set(`is-banner-displayed`,!0),s(``),s(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+h.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+x(h.banner.header.primary(`Cyclone CLI v0.6.
|
|
5
|
-
`)}\n`;g(n,Math.max(y().columns-30,20)).forEach(e=>{s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(e).length+2))/2),0))+x(h.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((y().columns-(C(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(`Completions - Bash`).length+2))/2),0))+x(h.banner.command.primary(`Completions - Bash`))+` `.repeat(Math.max(Math.ceil((y().columns-(C(`Completions - Bash`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),g(x(h.banner.description.primary(`Commands to setup bash completions for the Cyclone User Interface command-line interface.`)),Math.max(60>y().columns/2?y().columns-6:y().columns-30,20)).forEach(e=>{s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(e).length+2))/2),0))+h.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((y().columns-(C(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(y().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),s(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(y().columns-32,0)))+` `+x(h.banner.footer.primary(`https://cyclone-ui.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),s(``),a&&!u()&&await f(t)}async function N(e=d()){let n=``;if(e.length>4&&e[4]&&(n=e[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-bash-script.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-bash-config.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=p(n,[`script`,`config`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(a&&!u()){await M();let a=await t({message:`Which command would you like to execute?`,options:[{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(cyclone-ui completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(cyclone-ui completions bash config)`,icon:`🖵`}]});if(i(a))return;let o={};for(let e of a.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await r({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(i(t))return;o[e]=t}a=a.map(e=>o[e]||e);let s=m();if(s&&(s.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...a,...e.slice(4)].filter(Boolean)),n=a[0],e=s.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-bash-script.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-bash-config.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=p(n,[`script`,`config`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return w()}async function P(t=500){if(o().get(`is-banner-displayed`)||c(`no-banner`)||c(`hide-banner`)||v)return;o().set(`is-banner-displayed`,!0),s(``),s(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+h.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+x(h.banner.header.primary(`Cyclone CLI v0.6.
|
|
6
|
-
`)}\n`;g(n,Math.max(y().columns-30,20)).forEach(e=>{s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(e).length+2))/2),0))+x(h.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((y().columns-(C(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(`Completions - Fish`).length+2))/2),0))+x(h.banner.command.primary(`Completions - Fish`))+` `.repeat(Math.max(Math.ceil((y().columns-(C(`Completions - Fish`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),g(x(h.banner.description.primary(`Commands to setup Fish completions for the Cyclone User Interface command-line interface.`)),Math.max(60>y().columns/2?y().columns-6:y().columns-30,20)).forEach(e=>{s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(e).length+2))/2),0))+h.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((y().columns-(C(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(y().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),s(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(y().columns-32,0)))+` `+x(h.banner.footer.primary(`https://cyclone-ui.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),s(``),a&&!u()&&await f(t)}async function F(e=d()){let n=``;if(e.length>4&&e[4]&&(n=e[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-fish-script.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-fish-config.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=p(n,[`script`,`config`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(a&&!u()){await P();let a=await t({message:`Which command would you like to execute?`,options:[{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(cyclone-ui completions fish script)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(cyclone-ui completions fish config)`,icon:`🖵`}]});if(i(a))return;let o={};for(let e of a.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await r({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(i(t))return;o[e]=t}a=a.map(e=>o[e]||e);let s=m();if(s&&(s.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...a,...e.slice(4)].filter(Boolean)),n=a[0],e=s.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-fish-script.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-fish-config.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=p(n,[`script`,`config`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return T()}async function I(t=500){if(o().get(`is-banner-displayed`)||c(`no-banner`)||c(`hide-banner`)||v)return;o().set(`is-banner-displayed`,!0),s(``),s(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+h.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+x(h.banner.header.primary(`Cyclone CLI v0.6.
|
|
7
|
-
`)}\n`;g(n,Math.max(y().columns-30,20)).forEach(e=>{s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(e).length+2))/2),0))+x(h.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((y().columns-(C(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(`Completions - PowerShell`).length+2))/2),0))+x(h.banner.command.primary(`Completions - PowerShell`))+` `.repeat(Math.max(Math.ceil((y().columns-(C(`Completions - PowerShell`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),g(x(h.banner.description.primary(`Commands to setup PowerShell completions for the Cyclone User Interface command-line interface.`)),Math.max(60>y().columns/2?y().columns-6:y().columns-30,20)).forEach(e=>{s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(e).length+2))/2),0))+h.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((y().columns-(C(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(y().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),s(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(y().columns-32,0)))+` `+x(h.banner.footer.primary(`https://cyclone-ui.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),s(``),a&&!u()&&await f(t)}async function L(e=d()){let n=``;if(e.length>4&&e[4]&&(n=e[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-powershell-script.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-powershell-config.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=p(n,[`script`,`config`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(a&&!u()){await I();let a=await t({message:`Which command would you like to execute?`,options:[{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(cyclone-ui completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cyclone-ui completions powershell config)`,icon:`🖵`}]});if(i(a))return;let o={};for(let e of a.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await r({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(i(t))return;o[e]=t}a=a.map(e=>o[e]||e);let s=m();if(s&&(s.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...a,...e.slice(4)].filter(Boolean)),n=a[0],e=s.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-powershell-script.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-powershell-config.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=p(n,[`script`,`config`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return O()}async function R(t=500){if(o().get(`is-banner-displayed`)||c(`no-banner`)||c(`hide-banner`)||v)return;o().set(`is-banner-displayed`,!0),s(``),s(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+h.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+x(h.banner.header.primary(`Cyclone CLI v0.6.
|
|
8
|
-
`)}\n`;g(n,Math.max(y().columns-30,20)).forEach(e=>{s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(e).length+2))/2),0))+x(h.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((y().columns-(C(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(`Completions - Zsh`).length+2))/2),0))+x(h.banner.command.primary(`Completions - Zsh`))+` `.repeat(Math.max(Math.ceil((y().columns-(C(`Completions - Zsh`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),g(x(h.banner.description.primary(`Commands to setup Zsh completions for the Cyclone User Interface command-line interface.`)),Math.max(60>y().columns/2?y().columns-6:y().columns-30,20)).forEach(e=>{s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(e).length+2))/2),0))+h.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((y().columns-(C(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(y().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),s(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(y().columns-32,0)))+` `+x(h.banner.footer.primary(`https://cyclone-ui.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),s(``),a&&!u()&&await f(t)}async function z(e=d()){let n=``;if(e.length>4&&e[4]&&(n=e[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-zsh-script.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-zsh-config.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=p(n,[`script`,`config`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(a&&!u()){await R();let a=await t({message:`Which command would you like to execute?`,options:[{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(cyclone-ui completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(cyclone-ui completions zsh config)`,icon:`🖵`}]});if(i(a))return;let o={};for(let e of a.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await r({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(i(t))return;o[e]=t}a=a.map(e=>o[e]||e);let s=m();if(s&&(s.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...a,...e.slice(4)].filter(Boolean)),n=a[0],e=s.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-zsh-script.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-zsh-config.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=p(n,[`script`,`config`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return E()}async function B(e=d()){let n=``;if(e.length>3&&e[3]&&(n=e[3]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`bash`)return N(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`zsh`)return z(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`powershell`)return L(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fish`)return F(e);if(n&&!n.startsWith(`-`)){let e=p(n,[`bash`,`zsh`,`powershell`,`fish`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(a&&!u()){await j();let a=await t({message:`Which command would you like to execute?`,options:[{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(cyclone-ui completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(cyclone-ui completions bash config)`,icon:`🖵`},{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(cyclone-ui completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(cyclone-ui completions zsh config)`,icon:`🖵`},{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(cyclone-ui completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cyclone-ui completions powershell config)`,icon:`🖵`},{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(cyclone-ui completions fish script)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(cyclone-ui completions fish config)`,icon:`🖵`}]});if(i(a))return;let o={};for(let e of a.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await r({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(i(t))return;o[e]=t}a=a.map(e=>o[e]||e);let s=m();if(s&&(s.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...a,...e.slice(3)].filter(Boolean)),n=a[0],e=s.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`bash`)return N(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`zsh`)return z(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`powershell`)return L(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fish`)return F(e);if(n&&!n.startsWith(`-`)){let e=p(n,[`bash`,`zsh`,`powershell`,`fish`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return D()}async function V(t=500){if(o().get(`is-banner-displayed`)||c(`no-banner`)||c(`hide-banner`)||v)return;o().set(`is-banner-displayed`,!0),s(``),s(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+h.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+x(h.banner.header.primary(`Cyclone CLI v0.6.
|
|
9
|
-
`)}\n`;g(n,Math.max(y().columns-30,20)).forEach(e=>{s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(e).length+2))/2),0))+x(h.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((y().columns-(C(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(`Registry Commands`).length+2))/2),0))+x(h.banner.command.primary(`Registry Commands`))+` `.repeat(Math.max(Math.ceil((y().columns-(C(`Registry Commands`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),g(x(h.banner.description.primary(`A collection of available Registry commands that are included in the Cyclone User Interface command-line application.`)),Math.max(60>y().columns/2?y().columns-6:y().columns-30,20)).forEach(e=>{s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(e).length+2))/2),0))+h.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((y().columns-(C(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(y().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),s(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(y().columns-32,0)))+` `+x(h.banner.footer.primary(`https://cyclone-ui.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),s(``),a&&!u()&&await f(t)}async function H(e=d()){let n=``;if(e.length>3&&e[3]&&(n=e[3]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`validate`)return(await import(`./registry-validate.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=p(n,[`validate`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(a&&!u()){await V();let a=await t({message:`Which command would you like to execute?`,options:[{value:[`registry`,`validate`],label:`Validate Registry`,description:`(cyclone-ui registry validate)`,icon:`✓`}]});if(i(a))return;let o={};for(let e of a.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await r({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(i(t))return;o[e]=t}a=a.map(e=>o[e]||e);let s=m();if(s&&(s.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...a,...e.slice(3)].filter(Boolean)),n=a[0],e=s.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`validate`)return(await import(`./registry-validate.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=p(n,[`validate`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return A()}let U=!1;const W=[],G=[];async function K(e={}){try{if(U)return;U=!0;let t=0;e.signal!==void 0&&e.signal>0||e.exception?t=128+(e.signal??1):(typeof process.exitCode==`number`||typeof process.exitCode==`string`)&&(t=process.exitCode),e.exception&&_({message:`A fatal error occured while running the application - please contact the Cyclone User Interface support team${e.exception&&typeof e.exception!=`symbol`?`: \n\n${typeof e.exception==`string`?e.exception:e.exception.message}`:`.`}`,...e.exception&&typeof e.exception==`object`?{stack:e.exception.stack}:{}});let n=(n=!1)=>{c(`quiet`)||S(`The Cyclone User Interface application exited ${e.exception?`early due to an exception`:`successfully`}${e.startDate?`. Total run time is ${Date.now()-e.startDate.getTime()>5e3?Math.floor((Date.now()-e.startDate.getTime())/1e3):Date.now()-e.startDate.getTime()} ${Date.now()-e.startDate.getTime()>5e3?`seconds`:`milliseconds`}`:``}...`),e.skipProcessExit||process.nextTick(()=>process.exit(t))};for(let e of G)e(t);if(!e.isSynchronous){let e=[],r=0;for(let[n,i]of W)r=Math.max(r,i),e.push(Promise.resolve(n(t)));let i=setTimeout(()=>{n(!0)},r);await Promise.all(e),clearTimeout(i)}n()}catch(t){_(`The exit process failed to complete${t?.message?` - ${t.message}`:``}. Please contact the Cyclone User Interface support team.`),e.skipProcessExit||process.nextTick(()=>process.exit(1))}}async function q(){if(c([`version`,`v`])){console.log(`0.6.29`);return}let e=d(),o=``;if(e.length>2&&e[2]&&(o=e[2]),!o.startsWith(`-`)){if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`view`)return(await import(`./view.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`updatecomponents`)return(await import(`./update-components.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`search`||o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`list`)return(await import(`./search.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`init`||o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`create`)return(await import(`./init.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`info`)return(await import(`./info.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`docs`)return(await import(`./docs.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`diff`)return(await import(`./diff.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`buildtokens`)return(await import(`./build-tokens.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`build`)return(await import(`./build.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`add`)return(await import(`./add.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`changelog`)return(await import(`./changelog.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completions`)return B(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`update`||o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`upgrade`)return(await import(`./update.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchtokens`)return(await import(`./search-tokens.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listtokens`)return(await import(`./list-tokens.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchcomponents`)return(await import(`./search-components.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listcomponents`)return(await import(`./list-components.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchicons`)return(await import(`./search-icons.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listicons`)return(await import(`./list-icons.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchfonts`)return(await import(`./search-fonts.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listfonts`)return(await import(`./list-fonts.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`plan`)return(await import(`./plan.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`guidelines`)return(await import(`./guidelines.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`analyzea11y`)return(await import(`./analyze-a11y.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`mcp`)return(await import(`./mcp.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`)return H(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`help`)return(await import(`./help.mjs`).then(e=>e.handler))(e);if(o&&!o.startsWith(`-`)){let e=p(o,/* @__PURE__ */ `view.update-components.search.list.init.create.info.docs.diff.build-tokens.build.add.changelog.completions.update.upgrade.search-tokens.list-tokens.search-components.list-components.search-icons.list-icons.search-fonts.list-fonts.plan.guidelines.analyze-a11y.mcp.registry.help`.split(`.`)).slice(0,3);_(`Unknown command: "${o}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(a&&!u()){await n();let a=await t({message:`Which command would you like to execute?`,options:[{value:[`view`],label:`View Registry Components`,description:`(cyclone-ui view)`,icon:`◉`},{value:[`update-components`],label:`Update Components`,description:`(cyclone-ui update-components)`,icon:`⟳`},{value:[`search`],label:`Search Registry`,description:`(cyclone-ui search)`,icon:`⌕`},{value:[`init`],label:`Initialize`,description:`(cyclone-ui init)`,icon:`🌀`},{value:[`info`],label:`Project Information`,description:`(cyclone-ui info)`,icon:`ⓘ`},{value:[`docs`],label:`Component Documentation`,description:`(cyclone-ui docs)`,icon:`🕮`},{value:[`diff`],label:`Diff Components`,description:`(cyclone-ui diff)`,icon:`±`},{value:[`build-tokens`],label:`Build Tokens`,description:`(cyclone-ui build-tokens)`,icon:`🏗`},{value:[`build`],label:`Build`,description:`(cyclone-ui build)`,icon:`🏗`},{value:[`add`],label:`Add`,description:`(cyclone-ui add)`,icon:`➕`},{value:[`changelog`],label:`Changelog`,description:`(cyclone-ui changelog)`,icon:`🗃`},{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(cyclone-ui completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(cyclone-ui completions bash config)`,icon:`🖵`},{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(cyclone-ui completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(cyclone-ui completions zsh config)`,icon:`🖵`},{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(cyclone-ui completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cyclone-ui completions powershell config)`,icon:`🖵`},{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(cyclone-ui completions fish script)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(cyclone-ui completions fish config)`,icon:`🖵`},{value:[`update`],label:`Update`,description:`(cyclone-ui update)`,icon:`🖒`},{value:[`search-tokens`],label:`Search Tokens`,description:`(cyclone-ui search-tokens)`,icon:`🎨`},{value:[`list-tokens`],label:`List Tokens`,description:`(cyclone-ui list-tokens)`,icon:`🎨`},{value:[`search-components`],label:`Search Components`,description:`(cyclone-ui search-components)`,icon:`🧩`},{value:[`list-components`],label:`List Components`,description:`(cyclone-ui list-components)`,icon:`🧩`},{value:[`search-icons`],label:`Search Icons`,description:`(cyclone-ui search-icons)`,icon:`🖼`},{value:[`list-icons`],label:`List Icons`,description:`(cyclone-ui list-icons)`,icon:`🖼`},{value:[`search-fonts`],label:`Search Fonts`,description:`(cyclone-ui search-fonts)`,icon:`🔤`},{value:[`list-fonts`],label:`List Fonts`,description:`(cyclone-ui list-fonts)`,icon:`🔤`},{value:[`plan`],label:`Plan`,description:`(cyclone-ui plan)`,icon:`🗺`},{value:[`guidelines`],label:`Guidelines`,description:`(cyclone-ui guidelines)`,icon:`📖`},{value:[`analyze-a11y`],label:`Analyze Accessibility`,description:`(cyclone-ui analyze-a11y)`,icon:`♿`},{value:[`mcp`],label:`MCP Server`,description:`(cyclone-ui mcp)`,icon:`🔌`},{value:[`registry`,`validate`],label:`Validate Registry`,description:`(cyclone-ui registry validate)`,icon:`✓`},{value:[`help`],label:`Help`,description:`(cyclone-ui help)`,icon:`🛈`}]});if(i(a))return;let s={};for(let e of a.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await r({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(i(t))return;s[e]=t}a=a.map(e=>s[e]||e);let c=m();if(c&&(c.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...a,...e.slice(2)].filter(Boolean)),o=a[0],e=c.inputArgs,!o.startsWith(`-`)){if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`view`)return(await import(`./view.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`updatecomponents`)return(await import(`./update-components.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`search`||o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`list`)return(await import(`./search.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`init`||o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`create`)return(await import(`./init.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`info`)return(await import(`./info.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`docs`)return(await import(`./docs.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`diff`)return(await import(`./diff.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`buildtokens`)return(await import(`./build-tokens.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`build`)return(await import(`./build.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`add`)return(await import(`./add.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`changelog`)return(await import(`./changelog.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completions`)return B(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`update`||o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`upgrade`)return(await import(`./update.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchtokens`)return(await import(`./search-tokens.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listtokens`)return(await import(`./list-tokens.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchcomponents`)return(await import(`./search-components.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listcomponents`)return(await import(`./list-components.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchicons`)return(await import(`./search-icons.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listicons`)return(await import(`./list-icons.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchfonts`)return(await import(`./search-fonts.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listfonts`)return(await import(`./list-fonts.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`plan`)return(await import(`./plan.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`guidelines`)return(await import(`./guidelines.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`analyzea11y`)return(await import(`./analyze-a11y.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`mcp`)return(await import(`./mcp.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`)return H(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`help`)return(await import(`./help.mjs`).then(e=>e.handler))(e);if(o&&!o.startsWith(`-`)){let e=p(o,/* @__PURE__ */ `view.update-components.search.list.init.create.info.docs.diff.build-tokens.build.add.changelog.completions.update.upgrade.search-tokens.list-tokens.search-components.list-components.search-icons.list-icons.search-fonts.list-fonts.plan.guidelines.analyze-a11y.mcp.registry.help`.split(`.`)).slice(0,3);_(`Unknown command: "${o}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return await n(0),k()}(async()=>{let e=/* @__PURE__ */ new Date;try{process.on(`exit`,()=>K({startDate:e,skipProcessExit:!0,isSynchronous:!0,signal:0})),process.on(`beforeExit`,()=>K({startDate:e,signal:0})),process.on(`message`,t=>{t===`shutdown`&&K({startDate:e,isSynchronous:!0,signal:-128})}),process.once(`SIGTERM`,()=>K({startDate:e,signal:15})),process.once(`SIGINT`,()=>K({startDate:e,signal:2})),process.once(`SIGUSR2`,()=>(S(`The application was terminated by the user`),K({startDate:e,signal:12}))),process.once(`SIGQUIT`,()=>(S(`The application was terminated by the user`),K({startDate:e,signal:12})));for(let t of[`unhandledRejection`,`uncaughtException`])process.on(t,n=>K({startDate:e,exception:n||/* @__PURE__ */ Error(`An ${t===`unhandledRejection`?`unhandled promise rejection`:`uncaught exception`} occurred during processing - the application is shutting down.`)}));await l(async()=>{let e=await q();e?.error&&_(e.error)})}catch(t){K({startDate:e,exception:t})}})();export{K as exit};
|
|
3
|
+
import{a as e,n as t,o as n,r,t as i}from"./prompts-DHBjQc0T.mjs";import{A as a,B as o,D as s,F as c,H as l,I as u,L as d,N as f,O as p,R as m,S as h,_ as g,c as _,j as v,k as y,n as b,t as x,w as S,y as C}from"./console-rZqGKzyI.mjs";import{a as w,i as T,n as E,o as D,r as O,s as k,t as A}from"./registry-BZ0ToF-J.mjs";async function j(t=500){if(o().get(`is-banner-displayed`)||c(`no-banner`)||c(`hide-banner`)||v)return;o().set(`is-banner-displayed`,!0),s(``),s(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+h.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+x(h.banner.header.primary(`Cyclone CLI v0.6.31`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(y().columns-33,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let n=Math.max(...e.map(e=>C(e).length))>Math.max(y().columns+30,20)?`Cyclone UI`:`\n${e.join(`
|
|
4
|
+
`)}\n`;g(n,Math.max(y().columns-30,20)).forEach(e=>{s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(e).length+2))/2),0))+x(h.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((y().columns-(C(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(`Completions`).length+2))/2),0))+x(h.banner.command.primary(`Completions`))+` `.repeat(Math.max(Math.ceil((y().columns-(C(`Completions`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),g(x(h.banner.description.primary(`Commands for generating shell completion scripts for Cyclone User Interface.`)),Math.max(60>y().columns/2?y().columns-6:y().columns-30,20)).forEach(e=>{s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(e).length+2))/2),0))+h.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((y().columns-(C(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(y().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),s(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(y().columns-32,0)))+` `+x(h.banner.footer.primary(`https://cyclone-ui.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),s(``),a&&!u()&&await f(t)}async function M(t=500){if(o().get(`is-banner-displayed`)||c(`no-banner`)||c(`hide-banner`)||v)return;o().set(`is-banner-displayed`,!0),s(``),s(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+h.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+x(h.banner.header.primary(`Cyclone CLI v0.6.31`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(y().columns-33,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let n=Math.max(...e.map(e=>C(e).length))>Math.max(y().columns+30,20)?`Cyclone UI`:`\n${e.join(`
|
|
5
|
+
`)}\n`;g(n,Math.max(y().columns-30,20)).forEach(e=>{s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(e).length+2))/2),0))+x(h.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((y().columns-(C(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(`Completions - Bash`).length+2))/2),0))+x(h.banner.command.primary(`Completions - Bash`))+` `.repeat(Math.max(Math.ceil((y().columns-(C(`Completions - Bash`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),g(x(h.banner.description.primary(`Commands to setup bash completions for the Cyclone User Interface command-line interface.`)),Math.max(60>y().columns/2?y().columns-6:y().columns-30,20)).forEach(e=>{s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(e).length+2))/2),0))+h.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((y().columns-(C(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(y().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),s(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(y().columns-32,0)))+` `+x(h.banner.footer.primary(`https://cyclone-ui.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),s(``),a&&!u()&&await f(t)}async function N(e=d()){let n=``;if(e.length>4&&e[4]&&(n=e[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-bash-script.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-bash-config.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=p(n,[`script`,`config`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(a&&!u()){await M();let a=await t({message:`Which command would you like to execute?`,options:[{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(cyclone-ui completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(cyclone-ui completions bash config)`,icon:`🖵`}]});if(i(a))return;let o={};for(let e of a.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await r({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(i(t))return;o[e]=t}a=a.map(e=>o[e]||e);let s=m();if(s&&(s.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...a,...e.slice(4)].filter(Boolean)),n=a[0],e=s.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-bash-script.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-bash-config.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=p(n,[`script`,`config`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return w()}async function P(t=500){if(o().get(`is-banner-displayed`)||c(`no-banner`)||c(`hide-banner`)||v)return;o().set(`is-banner-displayed`,!0),s(``),s(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+h.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+x(h.banner.header.primary(`Cyclone CLI v0.6.31`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(y().columns-33,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let n=Math.max(...e.map(e=>C(e).length))>Math.max(y().columns+30,20)?`Cyclone UI`:`\n${e.join(`
|
|
6
|
+
`)}\n`;g(n,Math.max(y().columns-30,20)).forEach(e=>{s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(e).length+2))/2),0))+x(h.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((y().columns-(C(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(`Completions - Fish`).length+2))/2),0))+x(h.banner.command.primary(`Completions - Fish`))+` `.repeat(Math.max(Math.ceil((y().columns-(C(`Completions - Fish`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),g(x(h.banner.description.primary(`Commands to setup Fish completions for the Cyclone User Interface command-line interface.`)),Math.max(60>y().columns/2?y().columns-6:y().columns-30,20)).forEach(e=>{s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(e).length+2))/2),0))+h.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((y().columns-(C(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(y().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),s(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(y().columns-32,0)))+` `+x(h.banner.footer.primary(`https://cyclone-ui.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),s(``),a&&!u()&&await f(t)}async function F(e=d()){let n=``;if(e.length>4&&e[4]&&(n=e[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-fish-script.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-fish-config.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=p(n,[`script`,`config`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(a&&!u()){await P();let a=await t({message:`Which command would you like to execute?`,options:[{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(cyclone-ui completions fish script)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(cyclone-ui completions fish config)`,icon:`🖵`}]});if(i(a))return;let o={};for(let e of a.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await r({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(i(t))return;o[e]=t}a=a.map(e=>o[e]||e);let s=m();if(s&&(s.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...a,...e.slice(4)].filter(Boolean)),n=a[0],e=s.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-fish-script.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-fish-config.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=p(n,[`script`,`config`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return T()}async function I(t=500){if(o().get(`is-banner-displayed`)||c(`no-banner`)||c(`hide-banner`)||v)return;o().set(`is-banner-displayed`,!0),s(``),s(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+h.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+x(h.banner.header.primary(`Cyclone CLI v0.6.31`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(y().columns-33,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let n=Math.max(...e.map(e=>C(e).length))>Math.max(y().columns+30,20)?`Cyclone UI`:`\n${e.join(`
|
|
7
|
+
`)}\n`;g(n,Math.max(y().columns-30,20)).forEach(e=>{s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(e).length+2))/2),0))+x(h.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((y().columns-(C(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(`Completions - PowerShell`).length+2))/2),0))+x(h.banner.command.primary(`Completions - PowerShell`))+` `.repeat(Math.max(Math.ceil((y().columns-(C(`Completions - PowerShell`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),g(x(h.banner.description.primary(`Commands to setup PowerShell completions for the Cyclone User Interface command-line interface.`)),Math.max(60>y().columns/2?y().columns-6:y().columns-30,20)).forEach(e=>{s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(e).length+2))/2),0))+h.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((y().columns-(C(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(y().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),s(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(y().columns-32,0)))+` `+x(h.banner.footer.primary(`https://cyclone-ui.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),s(``),a&&!u()&&await f(t)}async function L(e=d()){let n=``;if(e.length>4&&e[4]&&(n=e[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-powershell-script.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-powershell-config.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=p(n,[`script`,`config`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(a&&!u()){await I();let a=await t({message:`Which command would you like to execute?`,options:[{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(cyclone-ui completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cyclone-ui completions powershell config)`,icon:`🖵`}]});if(i(a))return;let o={};for(let e of a.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await r({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(i(t))return;o[e]=t}a=a.map(e=>o[e]||e);let s=m();if(s&&(s.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...a,...e.slice(4)].filter(Boolean)),n=a[0],e=s.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-powershell-script.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-powershell-config.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=p(n,[`script`,`config`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return O()}async function R(t=500){if(o().get(`is-banner-displayed`)||c(`no-banner`)||c(`hide-banner`)||v)return;o().set(`is-banner-displayed`,!0),s(``),s(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+h.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+x(h.banner.header.primary(`Cyclone CLI v0.6.31`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(y().columns-33,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let n=Math.max(...e.map(e=>C(e).length))>Math.max(y().columns+30,20)?`Cyclone UI`:`\n${e.join(`
|
|
8
|
+
`)}\n`;g(n,Math.max(y().columns-30,20)).forEach(e=>{s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(e).length+2))/2),0))+x(h.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((y().columns-(C(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(`Completions - Zsh`).length+2))/2),0))+x(h.banner.command.primary(`Completions - Zsh`))+` `.repeat(Math.max(Math.ceil((y().columns-(C(`Completions - Zsh`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),g(x(h.banner.description.primary(`Commands to setup Zsh completions for the Cyclone User Interface command-line interface.`)),Math.max(60>y().columns/2?y().columns-6:y().columns-30,20)).forEach(e=>{s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(e).length+2))/2),0))+h.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((y().columns-(C(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(y().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),s(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(y().columns-32,0)))+` `+x(h.banner.footer.primary(`https://cyclone-ui.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),s(``),a&&!u()&&await f(t)}async function z(e=d()){let n=``;if(e.length>4&&e[4]&&(n=e[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-zsh-script.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-zsh-config.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=p(n,[`script`,`config`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(a&&!u()){await R();let a=await t({message:`Which command would you like to execute?`,options:[{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(cyclone-ui completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(cyclone-ui completions zsh config)`,icon:`🖵`}]});if(i(a))return;let o={};for(let e of a.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await r({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(i(t))return;o[e]=t}a=a.map(e=>o[e]||e);let s=m();if(s&&(s.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...a,...e.slice(4)].filter(Boolean)),n=a[0],e=s.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-zsh-script.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-zsh-config.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=p(n,[`script`,`config`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return E()}async function B(e=d()){let n=``;if(e.length>3&&e[3]&&(n=e[3]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`bash`)return N(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`zsh`)return z(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`powershell`)return L(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fish`)return F(e);if(n&&!n.startsWith(`-`)){let e=p(n,[`bash`,`zsh`,`powershell`,`fish`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(a&&!u()){await j();let a=await t({message:`Which command would you like to execute?`,options:[{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(cyclone-ui completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(cyclone-ui completions bash config)`,icon:`🖵`},{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(cyclone-ui completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(cyclone-ui completions zsh config)`,icon:`🖵`},{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(cyclone-ui completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cyclone-ui completions powershell config)`,icon:`🖵`},{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(cyclone-ui completions fish script)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(cyclone-ui completions fish config)`,icon:`🖵`}]});if(i(a))return;let o={};for(let e of a.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await r({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(i(t))return;o[e]=t}a=a.map(e=>o[e]||e);let s=m();if(s&&(s.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...a,...e.slice(3)].filter(Boolean)),n=a[0],e=s.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`bash`)return N(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`zsh`)return z(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`powershell`)return L(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fish`)return F(e);if(n&&!n.startsWith(`-`)){let e=p(n,[`bash`,`zsh`,`powershell`,`fish`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return D()}async function V(t=500){if(o().get(`is-banner-displayed`)||c(`no-banner`)||c(`hide-banner`)||v)return;o().set(`is-banner-displayed`,!0),s(``),s(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+h.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+x(h.banner.header.primary(`Cyclone CLI v0.6.31`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(y().columns-33,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let n=Math.max(...e.map(e=>C(e).length))>Math.max(y().columns+30,20)?`Cyclone UI`:`\n${e.join(`
|
|
9
|
+
`)}\n`;g(n,Math.max(y().columns-30,20)).forEach(e=>{s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(e).length+2))/2),0))+x(h.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((y().columns-(C(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(`Registry Commands`).length+2))/2),0))+x(h.banner.command.primary(`Registry Commands`))+` `.repeat(Math.max(Math.ceil((y().columns-(C(`Registry Commands`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),g(x(h.banner.description.primary(`A collection of available Registry commands that are included in the Cyclone User Interface command-line application.`)),Math.max(60>y().columns/2?y().columns-6:y().columns-30,20)).forEach(e=>{s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(C(e).length+2))/2),0))+h.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((y().columns-(C(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(y().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),s(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(y().columns-32,0)))+` `+x(h.banner.footer.primary(`https://cyclone-ui.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),s(``),a&&!u()&&await f(t)}async function H(e=d()){let n=``;if(e.length>3&&e[3]&&(n=e[3]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`validate`)return(await import(`./registry-validate.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=p(n,[`validate`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(a&&!u()){await V();let a=await t({message:`Which command would you like to execute?`,options:[{value:[`registry`,`validate`],label:`Validate Registry`,description:`(cyclone-ui registry validate)`,icon:`✓`}]});if(i(a))return;let o={};for(let e of a.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await r({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(i(t))return;o[e]=t}a=a.map(e=>o[e]||e);let s=m();if(s&&(s.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...a,...e.slice(3)].filter(Boolean)),n=a[0],e=s.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`validate`)return(await import(`./registry-validate.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=p(n,[`validate`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return A()}let U=!1;const W=[],G=[];async function K(e={}){try{if(U)return;U=!0;let t=0;e.signal!==void 0&&e.signal>0||e.exception?t=128+(e.signal??1):(typeof process.exitCode==`number`||typeof process.exitCode==`string`)&&(t=process.exitCode),e.exception&&_({message:`A fatal error occured while running the application - please contact the Cyclone User Interface support team${e.exception&&typeof e.exception!=`symbol`?`: \n\n${typeof e.exception==`string`?e.exception:e.exception.message}`:`.`}`,...e.exception&&typeof e.exception==`object`?{stack:e.exception.stack}:{}});let n=(n=!1)=>{c(`quiet`)||S(`The Cyclone User Interface application exited ${e.exception?`early due to an exception`:`successfully`}${e.startDate?`. Total run time is ${Date.now()-e.startDate.getTime()>5e3?Math.floor((Date.now()-e.startDate.getTime())/1e3):Date.now()-e.startDate.getTime()} ${Date.now()-e.startDate.getTime()>5e3?`seconds`:`milliseconds`}`:``}...`),e.skipProcessExit||process.nextTick(()=>process.exit(t))};for(let e of G)e(t);if(!e.isSynchronous){let e=[],r=0;for(let[n,i]of W)r=Math.max(r,i),e.push(Promise.resolve(n(t)));let i=setTimeout(()=>{n(!0)},r);await Promise.all(e),clearTimeout(i)}n()}catch(t){_(`The exit process failed to complete${t?.message?` - ${t.message}`:``}. Please contact the Cyclone User Interface support team.`),e.skipProcessExit||process.nextTick(()=>process.exit(1))}}async function q(){if(c([`version`,`v`])){console.log(`0.6.31`);return}let e=d(),o=``;if(e.length>2&&e[2]&&(o=e[2]),!o.startsWith(`-`)){if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`view`)return(await import(`./view.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`updatecomponents`)return(await import(`./update-components.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`search`||o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`list`)return(await import(`./search.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`init`||o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`create`)return(await import(`./init.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`info`)return(await import(`./info.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`docs`)return(await import(`./docs.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`diff`)return(await import(`./diff.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`buildtokens`)return(await import(`./build-tokens.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`build`)return(await import(`./build.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`add`)return(await import(`./add.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`changelog`)return(await import(`./changelog.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completions`)return B(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`update`||o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`upgrade`)return(await import(`./update.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchtokens`)return(await import(`./search-tokens.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listtokens`)return(await import(`./list-tokens.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchcomponents`)return(await import(`./search-components.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listcomponents`)return(await import(`./list-components.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchicons`)return(await import(`./search-icons.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listicons`)return(await import(`./list-icons.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchfonts`)return(await import(`./search-fonts.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listfonts`)return(await import(`./list-fonts.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`plan`)return(await import(`./plan.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`guidelines`)return(await import(`./guidelines.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`analyzea11y`)return(await import(`./analyze-a11y.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`mcp`)return(await import(`./mcp.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`)return H(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`help`)return(await import(`./help.mjs`).then(e=>e.handler))(e);if(o&&!o.startsWith(`-`)){let e=p(o,/* @__PURE__ */ `view.update-components.search.list.init.create.info.docs.diff.build-tokens.build.add.changelog.completions.update.upgrade.search-tokens.list-tokens.search-components.list-components.search-icons.list-icons.search-fonts.list-fonts.plan.guidelines.analyze-a11y.mcp.registry.help`.split(`.`)).slice(0,3);_(`Unknown command: "${o}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(a&&!u()){await n();let a=await t({message:`Which command would you like to execute?`,options:[{value:[`view`],label:`View Registry Components`,description:`(cyclone-ui view)`,icon:`◉`},{value:[`update-components`],label:`Update Components`,description:`(cyclone-ui update-components)`,icon:`⟳`},{value:[`search`],label:`Search Registry`,description:`(cyclone-ui search)`,icon:`⌕`},{value:[`init`],label:`Initialize`,description:`(cyclone-ui init)`,icon:`🌀`},{value:[`info`],label:`Project Information`,description:`(cyclone-ui info)`,icon:`ⓘ`},{value:[`docs`],label:`Component Documentation`,description:`(cyclone-ui docs)`,icon:`🕮`},{value:[`diff`],label:`Diff Components`,description:`(cyclone-ui diff)`,icon:`±`},{value:[`build-tokens`],label:`Build Tokens`,description:`(cyclone-ui build-tokens)`,icon:`🏗`},{value:[`build`],label:`Build`,description:`(cyclone-ui build)`,icon:`🏗`},{value:[`add`],label:`Add`,description:`(cyclone-ui add)`,icon:`➕`},{value:[`changelog`],label:`Changelog`,description:`(cyclone-ui changelog)`,icon:`🗃`},{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(cyclone-ui completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(cyclone-ui completions bash config)`,icon:`🖵`},{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(cyclone-ui completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(cyclone-ui completions zsh config)`,icon:`🖵`},{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(cyclone-ui completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cyclone-ui completions powershell config)`,icon:`🖵`},{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(cyclone-ui completions fish script)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(cyclone-ui completions fish config)`,icon:`🖵`},{value:[`update`],label:`Update`,description:`(cyclone-ui update)`,icon:`🖒`},{value:[`search-tokens`],label:`Search Tokens`,description:`(cyclone-ui search-tokens)`,icon:`🎨`},{value:[`list-tokens`],label:`List Tokens`,description:`(cyclone-ui list-tokens)`,icon:`🎨`},{value:[`search-components`],label:`Search Components`,description:`(cyclone-ui search-components)`,icon:`🧩`},{value:[`list-components`],label:`List Components`,description:`(cyclone-ui list-components)`,icon:`🧩`},{value:[`search-icons`],label:`Search Icons`,description:`(cyclone-ui search-icons)`,icon:`🖼`},{value:[`list-icons`],label:`List Icons`,description:`(cyclone-ui list-icons)`,icon:`🖼`},{value:[`search-fonts`],label:`Search Fonts`,description:`(cyclone-ui search-fonts)`,icon:`🔤`},{value:[`list-fonts`],label:`List Fonts`,description:`(cyclone-ui list-fonts)`,icon:`🔤`},{value:[`plan`],label:`Plan`,description:`(cyclone-ui plan)`,icon:`🗺`},{value:[`guidelines`],label:`Guidelines`,description:`(cyclone-ui guidelines)`,icon:`📖`},{value:[`analyze-a11y`],label:`Analyze Accessibility`,description:`(cyclone-ui analyze-a11y)`,icon:`♿`},{value:[`mcp`],label:`MCP Server`,description:`(cyclone-ui mcp)`,icon:`🔌`},{value:[`registry`,`validate`],label:`Validate Registry`,description:`(cyclone-ui registry validate)`,icon:`✓`},{value:[`help`],label:`Help`,description:`(cyclone-ui help)`,icon:`🛈`}]});if(i(a))return;let s={};for(let e of a.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await r({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(i(t))return;s[e]=t}a=a.map(e=>s[e]||e);let c=m();if(c&&(c.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...a,...e.slice(2)].filter(Boolean)),o=a[0],e=c.inputArgs,!o.startsWith(`-`)){if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`view`)return(await import(`./view.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`updatecomponents`)return(await import(`./update-components.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`search`||o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`list`)return(await import(`./search.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`init`||o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`create`)return(await import(`./init.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`info`)return(await import(`./info.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`docs`)return(await import(`./docs.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`diff`)return(await import(`./diff.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`buildtokens`)return(await import(`./build-tokens.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`build`)return(await import(`./build.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`add`)return(await import(`./add.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`changelog`)return(await import(`./changelog.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completions`)return B(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`update`||o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`upgrade`)return(await import(`./update.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchtokens`)return(await import(`./search-tokens.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listtokens`)return(await import(`./list-tokens.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchcomponents`)return(await import(`./search-components.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listcomponents`)return(await import(`./list-components.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchicons`)return(await import(`./search-icons.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listicons`)return(await import(`./list-icons.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchfonts`)return(await import(`./search-fonts.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listfonts`)return(await import(`./list-fonts.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`plan`)return(await import(`./plan.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`guidelines`)return(await import(`./guidelines.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`analyzea11y`)return(await import(`./analyze-a11y.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`mcp`)return(await import(`./mcp.mjs`).then(e=>e.handler))(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`)return H(e);if(o.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`help`)return(await import(`./help.mjs`).then(e=>e.handler))(e);if(o&&!o.startsWith(`-`)){let e=p(o,/* @__PURE__ */ `view.update-components.search.list.init.create.info.docs.diff.build-tokens.build.add.changelog.completions.update.upgrade.search-tokens.list-tokens.search-components.list-components.search-icons.list-icons.search-fonts.list-fonts.plan.guidelines.analyze-a11y.mcp.registry.help`.split(`.`)).slice(0,3);_(`Unknown command: "${o}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return await n(0),k()}(async()=>{let e=/* @__PURE__ */ new Date;try{process.on(`exit`,()=>K({startDate:e,skipProcessExit:!0,isSynchronous:!0,signal:0})),process.on(`beforeExit`,()=>K({startDate:e,signal:0})),process.on(`message`,t=>{t===`shutdown`&&K({startDate:e,isSynchronous:!0,signal:-128})}),process.once(`SIGTERM`,()=>K({startDate:e,signal:15})),process.once(`SIGINT`,()=>K({startDate:e,signal:2})),process.once(`SIGUSR2`,()=>(S(`The application was terminated by the user`),K({startDate:e,signal:12}))),process.once(`SIGQUIT`,()=>(S(`The application was terminated by the user`),K({startDate:e,signal:12})));for(let t of[`unhandledRejection`,`uncaughtException`])process.on(t,n=>K({startDate:e,exception:n||/* @__PURE__ */ Error(`An ${t===`unhandledRejection`?`unhandled promise rejection`:`uncaught exception`} occurred during processing - the application is shutting down.`)}));await l(async()=>{let e=await q();e?.error&&_(e.error)})}catch(t){K({startDate:e,exception:t})}})();export{K as exit};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e,S as t,h as n,t as r,x as i}from"./console-
|
|
1
|
+
import{D as e,S as t,h as n,t as r,x as i}from"./console-rZqGKzyI.mjs";function a(){e(``),e(r(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`build`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``),e(r(t.heading.secondary(`Options:`))),i([[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--config <config>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Path to the Razorwind configuration file.`),align:`left`,border:`none`}],[{value:t.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--output <output>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Output path for the generated Tamagui config.`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--tokens <tokens>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Design token source path or glob.`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),e(``),e(t.body.tertiary(`More information can be found in the Build command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/build`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{a as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e,S as t,h as n,t as r,x as i}from"./console-
|
|
1
|
+
import{D as e,S as t,h as n,t as r,x as i}from"./console-tp4B64iL.mjs";function a(){e(``),e(r(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`build`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``),e(r(t.heading.secondary(`Options:`))),i([[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--config <config>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Path to the Razorwind configuration file.`),align:`left`,border:`none`}],[{value:t.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--output <output>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Output path for the generated Tamagui config.`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--tokens <tokens>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Design token source path or glob.`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),e(``),e(t.body.tertiary(`More information can be found in the Build command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/build`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{a as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e,S as t,h as n,t as r,x as i}from"./console-
|
|
1
|
+
import{D as e,S as t,h as n,t as r,x as i}from"./console-tp4B64iL.mjs";function a(){e(``),e(r(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`build-tokens`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``),e(r(t.heading.secondary(`Options:`))),i([[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--config <config>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Path to the Razorwind configuration file.`),align:`left`,border:`none`}],[{value:t.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--output <output>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Output path for the generated Tamagui config.`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--tokens <tokens>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary("Design token source path or glob (overrides the configured `tokensPath`)."),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),e(``),e(t.body.tertiary(`More information can be found in the Build Tokens command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/build-tokens`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{a as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e,S as t,h as n,t as r,x as i}from"./console-
|
|
1
|
+
import{D as e,S as t,h as n,t as r,x as i}from"./console-rZqGKzyI.mjs";function a(){e(``),e(r(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`build-tokens`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``),e(r(t.heading.secondary(`Options:`))),i([[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--config <config>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Path to the Razorwind configuration file.`),align:`left`,border:`none`}],[{value:t.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--output <output>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Output path for the generated Tamagui config.`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--tokens <tokens>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary("Design token source path or glob (overrides the configured `tokensPath`)."),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),e(``),e(t.body.tertiary(`More information can be found in the Build Tokens command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/build-tokens`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{a as t};
|
package/dist/build-tokens.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./prompts-
|
|
1
|
+
import{a as e}from"./prompts-DHBjQc0T.mjs";import{A as t,B as n,D 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-rZqGKzyI.mjs";import{t as b}from"./build-tokens-d73EVlcR.mjs";import{t as x}from"./update-B5jve-jV.mjs";import{t as S}from"./command-DPQVb2wG.mjs";async function C(a=500){if(n().get(`is-banner-displayed`)||i(`no-banner`)||i(`hide-banner`)||m)return;n().set(`is-banner-displayed`,!0),r(``),r(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.31`))+` `+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-33,0)))+g.banner.outline.primary(`┓`),{consoleFn:console.log});let s=Math.max(...e.map(e=>v(e).length))>Math.max(h().columns+30,20)?`Cyclone UI`:`\n${e.join(`
|
|
2
2
|
`)}\n`;p(s,Math.max(h().columns-30,20)).forEach(e=>{r(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})}),r(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(`Build Tokens`).length+2))/2),0))+_(u.banner.command.primary(`Build Tokens`))+` `.repeat(Math.max(Math.ceil((h().columns-(v(`Build Tokens`).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),p(_(u.banner.description.primary(`Generate a Tamagui config file from design tokens.`)),Math.max(60>h().columns/2?h().columns-6:h().columns-30,20)).forEach(e=>{r(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})}),r(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(h().columns-2,0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),r(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}),r(``),t&&!o()&&await l(a)}async function w(e=c()){let t={...y()};for(let n=0;n<e.slice(0).length;n++){let r=e[n].length>3&&e[n].startsWith(`--`)?`--${e[n].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[n].length>2&&e[n].startsWith(`-`)?`-${e[n].slice(1).replaceAll(`-`,``)}`:e[n];r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`?/^--?(cwd)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.cwd=r.replace(/^--?(cwd)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.cwd=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)):r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`config=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`config=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`?/^--?(config)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.config=r.replace(/^--?(config)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.config=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)):r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`tokens=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`tokens`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`tokens=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`tokens`?/^--?(tokens)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.tokens=r.replace(/^--?(tokens)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.tokens=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)):(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`output=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`output`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`output=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`output`)&&(/^--?(output)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.output=r.replace(/^--?(output)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.output=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)))}return i(`quiet`)||(await C(),await x()),!o()&&!i(`quiet`)&&(r(``),(s||a||d.LOG_LEVEL===`debug`)&&r(u.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?b():f(`build-tokens`,[`build-tokens`],[t],S)}export{w as handler};
|
package/dist/build.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./prompts-
|
|
1
|
+
import{a as e}from"./prompts-DHBjQc0T.mjs";import{A as t,B as n,D 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,b as m,j as h,k as g,n as _,t as v,y,z as b}from"./console-rZqGKzyI.mjs";import{t as x}from"./build-COdBWpnM.mjs";import{t as S}from"./update-B5jve-jV.mjs";import{t as C}from"./command-DPQVb2wG.mjs";import{resolve as w}from"node:path";async function T(a=500){if(n().get(`is-banner-displayed`)||i(`no-banner`)||i(`hide-banner`)||h)return;n().set(`is-banner-displayed`,!0),r(``),r(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+v(u.banner.header.primary(`Cyclone CLI v0.6.31`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(g().columns-33,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log});let s=Math.max(...e.map(e=>y(e).length))>Math.max(g().columns+30,20)?`Cyclone UI`:`\n${e.join(`
|
|
2
2
|
`)}\n`;p(s,Math.max(g().columns-30,20)).forEach(e=>{r(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((g().columns-(y(e).length+2))/2),0))+v(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((g().columns-(y(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((g().columns-(y(`Build`).length+2))/2),0))+v(u.banner.command.primary(`Build`))+` `.repeat(Math.max(Math.ceil((g().columns-(y(`Build`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),p(v(u.banner.description.primary(`Generate design tokens and build the resulting Tamagui config.`)),Math.max(60>g().columns/2?g().columns-6:g().columns-30,20)).forEach(e=>{r(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((g().columns-(y(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((g().columns-(y(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(g().columns-2,0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),r(_.banner.outline.primary(`┗`)+_.banner.outline.primary(`━`.repeat(Math.max(g().columns-32,0)))+` `+v(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+_.banner.outline.primary(`━`.repeat(6))+_.banner.outline.primary(`┛`),{consoleFn:console.log}),r(``),t&&!o()&&await l(a)}async function E(e){let t=w(e.cwd??process.cwd()),n=e.output??`tamagui.config.ts`;await C({...e,cwd:t,output:n});let{loadTamagui:r}=await import(`@tamagui/static/loadTamagui`);if(!(await r({root:t,config:w(t,n),outputCSS:w(t,`tamagui.generated.css`),components:[`@tamagui/core`],platform:`web`},!0))?.tamaguiConfig)throw Error(`Unable to build Tamagui config: ${w(t,n)}`);m(`Built Tamagui config and CSS.`)}async function D(e=c()){let t={...b()};for(let n=0;n<e.slice(0).length;n++){let r=e[n].length>3&&e[n].startsWith(`--`)?`--${e[n].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[n].length>2&&e[n].startsWith(`-`)?`-${e[n].slice(1).replaceAll(`-`,``)}`:e[n];r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`?/^--?(cwd)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.cwd=r.replace(/^--?(cwd)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.cwd=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)):r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`config=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`config=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`?/^--?(config)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.config=r.replace(/^--?(config)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.config=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)):r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`tokens=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`tokens`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`tokens=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`tokens`?/^--?(tokens)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.tokens=r.replace(/^--?(tokens)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.tokens=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)):(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`output=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`output`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`output=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`output`)&&(/^--?(output)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.output=r.replace(/^--?(output)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.output=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)))}return i(`quiet`)||(await T(),await S()),!o()&&!i(`quiet`)&&(r(``),(s||a||d.LOG_LEVEL===`debug`)&&r(u.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?x():f(`build`,[`build`],[t],E)}export{D as handler};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e,S as t,h as n,p as r,t as i,x as a}from"./console-
|
|
1
|
+
import{D as e,S as t,h as n,p as r,t as i,x as a}from"./console-tp4B64iL.mjs";function o(){e(`${i(t.heading.secondary(`Tags: `))} ${t.tags.utility?t.tags.utility(r(` Utility `)):t.tags.default(r(` Utility `))}`,{padding:0}),e(``),e(i(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`changelog`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``),e(i(t.heading.secondary(`Options:`))),a([[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),e(``),e(t.body.tertiary(`More information can be found in the Changelog command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/changelog`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{o as t};
|
|
@@ -1 +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-rZqGKzyI.mjs";function o(){e(`${i(t.heading.secondary(`Tags: `))} ${t.tags.utility?t.tags.utility(r(` Utility `)):t.tags.default(r(` Utility `))}`,{padding:0}),e(``),e(i(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`changelog`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``),e(i(t.heading.secondary(`Options:`))),a([[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),e(``),e(t.body.tertiary(`More information can be found in the Changelog command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/changelog`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{o as t};
|