@cyclone-ui/cli 0.6.13 → 0.6.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/README.md +58 -13
  2. package/dist/{add-T2BOJKd6.mjs → add-QZOxYcRK.mjs} +1 -1
  3. package/dist/add.mjs +3 -3
  4. package/dist/{analyze-a11y-DYcSuyig.mjs → analyze-a11y-BU8faGzr.mjs} +1 -1
  5. package/dist/analyze-a11y.mjs +1 -1
  6. package/dist/bin.mjs +7 -7
  7. package/dist/build-BMHh7SnK.mjs +1 -0
  8. package/dist/build-tokens-C_wzH90_.mjs +1 -0
  9. package/dist/build-tokens.mjs +2 -0
  10. package/dist/build.mjs +2 -2
  11. package/dist/{changelog-BGtHdCgl.mjs → changelog-Q5DymQRF.mjs} +1 -1
  12. package/dist/changelog.mjs +19 -1
  13. package/dist/command-DbeCTonF.mjs +1 -0
  14. package/dist/completions-bash-config.mjs +1 -1
  15. package/dist/completions-bash-script.mjs +1 -1
  16. package/dist/completions-fish-config.mjs +1 -1
  17. package/dist/completions-fish-script.mjs +1 -1
  18. package/dist/completions-powershell-config.mjs +1 -1
  19. package/dist/completions-powershell-script.mjs +1 -1
  20. package/dist/completions-zsh-config.mjs +1 -1
  21. package/dist/completions-zsh-script.mjs +1 -1
  22. package/dist/components-BeiahS2c.mjs +10 -0
  23. package/dist/{config-DQyq6GTx.mjs → config-6_J_XRsw.mjs} +1 -1
  24. package/dist/{config-Cc9l_V8p.mjs → config-B169hbG3.mjs} +1 -1
  25. package/dist/{config-vcV8I7FW.mjs → config-C09YwAnf.mjs} +1 -1
  26. package/dist/config-DxsYsT40.mjs +1 -0
  27. package/dist/{config-Bnd1h0RQ.mjs → config-YZotDfFJ.mjs} +1 -1
  28. package/dist/{console-ByH4Pf9W.mjs → console-C3z2Y61E.mjs} +2 -2
  29. package/dist/design-system-CNVVaZ1M.mjs +1 -0
  30. package/dist/{diff-CvRV7PpF.mjs → diff-BLZFm5eJ.mjs} +1 -1
  31. package/dist/diff.mjs +1 -1
  32. package/dist/{docs-BXB2yiA1.mjs → docs-A44uCA1K.mjs} +1 -1
  33. package/dist/docs.mjs +4 -4
  34. package/dist/{guidelines-CPEObmMp.mjs → guidelines-CfvgqEk7.mjs} +1 -1
  35. package/dist/guidelines.mjs +1 -1
  36. package/dist/help.mjs +2 -2
  37. package/dist/{info-wf_47mGy.mjs → info-CMedDFnc.mjs} +1 -1
  38. package/dist/info.mjs +2 -2
  39. package/dist/{init-C17CGlol.mjs → init-DBROV6sE.mjs} +1 -1
  40. package/dist/init.mjs +2 -2
  41. package/dist/{list-components-VX8zmUJZ.mjs → list-components-Dx-J-Dnq.mjs} +1 -1
  42. package/dist/list-components.mjs +1 -1
  43. package/dist/{list-fonts-VPPrs-qQ.mjs → list-fonts-DBT1mrsH.mjs} +1 -1
  44. package/dist/list-fonts.mjs +1 -1
  45. package/dist/{list-icons-BC8rUUQe.mjs → list-icons-C8xYxnqZ.mjs} +1 -1
  46. package/dist/list-icons.mjs +1 -1
  47. package/dist/{list-tokens-D-OoOV7t.mjs → list-tokens-BKFnTzsn.mjs} +1 -1
  48. package/dist/list-tokens.mjs +1 -1
  49. package/dist/{mcp-qtp0cOng.mjs → mcp-B6D5petn.mjs} +1 -1
  50. package/dist/mcp.mjs +13 -14
  51. package/dist/{plan-D6YWwKYr.mjs → plan-ZWeXBx16.mjs} +1 -1
  52. package/dist/plan.mjs +1 -1
  53. package/dist/{prompts-CeL3sX1m.mjs → prompts-e3s_BIKU.mjs} +2 -2
  54. package/dist/registry-DnOTA6eC.mjs +1 -0
  55. package/dist/registry-validate.mjs +2 -2
  56. package/dist/{script-mVvsI7iD.mjs → script-B00X1Gka.mjs} +1 -1
  57. package/dist/{script-DmlUXaDQ.mjs → script-CI1NIrdw.mjs} +1 -1
  58. package/dist/{script-8WhThN9H.mjs → script-CkCsXZJK.mjs} +1 -1
  59. package/dist/{script-DePWvmjM.mjs → script-CucYHbm0.mjs} +1 -1
  60. package/dist/{search-DNykj-SL.mjs → search-JStGlg5t.mjs} +1 -1
  61. package/dist/{search-components-CNnKD6xI.mjs → search-components-CpFDPRfz.mjs} +1 -1
  62. package/dist/search-components.mjs +1 -1
  63. package/dist/{search-fonts-Cl7S1JuD.mjs → search-fonts-BbUV2DYZ.mjs} +1 -1
  64. package/dist/search-fonts.mjs +1 -1
  65. package/dist/{search-icons-De3n8IMy.mjs → search-icons-JbWNW9vv.mjs} +1 -1
  66. package/dist/search-icons.mjs +1 -1
  67. package/dist/{search-tokens-0Kdz_Gm-.mjs → search-tokens-Mwyu1sLi.mjs} +1 -1
  68. package/dist/search-tokens.mjs +1 -1
  69. package/dist/search.mjs +3 -3
  70. package/dist/{update-C8kOAAHB.mjs → update-0bXYJiJj.mjs} +1 -1
  71. package/dist/{update-COr10C5g.mjs → update-wulHGaSU.mjs} +1 -1
  72. package/dist/update.mjs +1 -1
  73. package/dist/{validate-Dw2b2Z2O.mjs → validate-CqYKElXI.mjs} +1 -1
  74. package/dist/{view-BUkG22YG.mjs → view-BLGl-i0d.mjs} +1 -1
  75. package/dist/view.mjs +3 -3
  76. package/package.json +11 -9
  77. package/dist/build-BLHSieJf.mjs +0 -1
  78. package/dist/components-CL5K9O-8.mjs +0 -10
  79. package/dist/config-D4XQ3gm9.mjs +0 -1
  80. package/dist/create-tokens-jBEvGFEz.mjs +0 -1
  81. package/dist/create-tokens.mjs +0 -2
  82. package/dist/design-system-B7MzO5_9.mjs +0 -1
  83. package/dist/local-registry-pqsOERYj.mjs +0 -1
  84. package/dist/registry-C95vaVW8.mjs +0 -1
  85. package/dist/registry-nLy1sUFb.mjs +0 -1
package/README.md CHANGED
@@ -50,39 +50,84 @@ yarn add @cyclone-ui/cli
50
50
  <!-- shell-shock:commands -->
51
51
  <!-- /shell-shock -->
52
52
 
53
- The Cyclone CLI follows the registry workflow used by the shadcn CLI while
54
- retrieving components through the typed Cyclone Registry API.
53
+ The Cyclone CLI downloads component source from the public R2 registry at
54
+ `https://public.storm-cdn.com/cyclone-ui/registry`, following the copy-and-own
55
+ workflow used by shadcn/ui. The bucket serves a `registry.json` catalog and
56
+ self-contained `components/<name>.json` files; no Worker API is required.
55
57
 
56
58
  ```bash
57
59
  # Create components.json and the local component directory.
58
- cyclone init
60
+ cyclone-ui init
59
61
 
60
62
  # Browse the registry. `list` is an alias for `search`.
61
- cyclone search --query button
63
+ cyclone-ui search --query button
62
64
 
63
65
  # Inspect or install registry components.
64
- cyclone view button
65
- cyclone add button
66
+ cyclone-ui view button
67
+ cyclone-ui add button
66
68
 
67
69
  # Preview an installation or compare installed files with the registry.
68
- cyclone add button --dry-run
69
- cyclone diff button
70
+ cyclone-ui add button --dry-run
71
+ cyclone-ui diff button
70
72
 
71
73
  # Inspect the current project configuration.
72
- cyclone info
74
+ cyclone-ui info
73
75
 
74
- # Validate and build a distributable shadcn-format registry.
75
- cyclone registry validate registry.json
76
- cyclone build registry.json --output public/r
76
+ # Generate a Tamagui config from design tokens, then compile it and its CSS.
77
+ cyclone-ui build --config razorwind.config.ts --output tamagui.config.ts
78
+
79
+ # Generate only the config, without compiling it.
80
+ cyclone-ui build-tokens --config razorwind.config.ts
81
+
82
+ # Validate a shadcn-format registry.
83
+ cyclone-ui registry validate registry.json
77
84
  ```
78
85
 
79
- `init` writes a `components.json` file containing the registry API URL, output
86
+ `init` writes a `components.json` file containing the public registry URL, output
80
87
  path, and installed component manifest. `add` resolves internal component
81
88
  dependencies, refuses to overwrite changed files unless `--overwrite` is
82
89
  provided, updates package dependencies, and records the installed version and
83
90
  files. Registry file paths are constrained to the configured component
84
91
  directory.
85
92
 
93
+ In a second repository, use the installed `cyclone-ui` executable:
94
+
95
+ ```bash
96
+ pnpm exec cyclone-ui init --path src/components/ui
97
+ pnpm exec cyclone-ui add button
98
+ pnpm install
99
+ ```
100
+
101
+ Component dependencies are copied recursively. Imports between copied components
102
+ become relative imports, including subpath imports from nested files. Other
103
+ packages, including `@cyclone-ui/helpers` and `@cyclone-ui/state`, are added to
104
+ `package.json` with published version ranges. Existing dependency declarations
105
+ are preserved. Run your package manager to install newly added dependencies.
106
+
107
+ To use another public registry, pass `--registry <url>` to `init`, or change
108
+ `registry` in `components.json`. A URL ending in `/registry.json` is also accepted.
109
+ For a prerelease channel use the registry's `/tags/<tag>` URL. Explicit legacy
110
+ Worker registry URLs ending in `/api` continue to use the typed API client.
111
+
112
+ For a Next.js App Router project, enable React Server Component support with
113
+ `cyclone-ui init --rsc`, or add `"rsc": true` to your existing `components.json`.
114
+ This preserves registry directives, matching shadcn's RSC-enabled behavior.
115
+ Registry authors are responsible for supplying `"use client"` directives on
116
+ client-only components, hooks, and helpers. The CLI does not infer client
117
+ boundaries or add directives to unmarked files.
118
+
119
+ Set `"rsc": false` to remove module-level `"use client"` directives from installed
120
+ JavaScript and TypeScript files, following shadcn's RSC opt-out behavior.
121
+ Server/cache directives, function bodies, comments, and non-script files remain
122
+ unchanged. Omitting `rsc` preserves registry contents without transformation.
123
+ The `add` command also accepts `--rsc` to override the project setting for that
124
+ installation. Previews and diffs use the same transformed contents as writes.
125
+
126
+ `build` accepts the same `--cwd`, `--config`, `--tokens`, and `--output` options
127
+ as `build-tokens`. It compiles the generated config into `.tamagui/` and writes
128
+ `tamagui.generated.css` in the working directory. The compiler is included with
129
+ the Cyclone CLI; no separate Tamagui CLI installation is required.
130
+
86
131
  ## Configuration
87
132
 
88
133
  <!-- shell-shock:env -->
@@ -1 +1 @@
1
- import{D as e,S as t,h as n,t as r,x as i}from"./console-ByH4Pf9W.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 API URL.`),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
+ import{D as e,S as t,h as n,t as r,x as i}from"./console-C3z2Y61E.mjs";function a(){e(``),e(r(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`add`)} ${t.usage.args(`<components...>`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`add`)} ${t.usage.options(`[options]`)} ${t.usage.args(`<components...>`)}`),{padding:0}),e(``),e(r(t.heading.secondary(`Options:`))),i([[{value:t.body.primary(`--all`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Add every available component.`),align:`left`,border:`none`}],[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:t.body.primary(`--diff`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the changes as a diff without writing files.`),align:`left`,border:`none`}],[{value:t.body.primary(`--dry-run`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Preview changes without writing files.`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--overwrite`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Overwrite existing files.`),align:`left`,border:`none`}],[{value:t.body.primary(`--path <path>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Override the configured component output path.`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--registry <registry>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Override the configured registry URL.`),align:`left`,border:`none`}],[{value:t.body.primary(`--rsc`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Override React Server Component support for this installation.`),align:`left`,border:`none`}],[{value:t.body.primary(`--silent`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Mute non-essential output.`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--view`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show resolved file contents without writing files.`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),e(``),e(t.body.tertiary(`More information can be found in the Add command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/add`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{a as t};
package/dist/add.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import{A as e,B as t,D as n,E as r,F as i,G as a,I as o,K as s,L as c,N as l,S as u,U as d,V as f,_ as p,j as m,k as h,n as g,t as _,y as v,z as y}from"./console-ByH4Pf9W.mjs";import{a as b}from"./prompts-CeL3sX1m.mjs";import{t as x}from"./update-COr10C5g.mjs";import{a as S}from"./config-D4XQ3gm9.mjs";import{n as C}from"./registry-C95vaVW8.mjs";import{i as w,n as T,r as E,t as D}from"./components-CL5K9O-8.mjs";import{t as O}from"./add-T2BOJKd6.mjs";import{resolve as k}from"node:path";async function A(r=500){if(t().get(`is-banner-displayed`)||i(`no-banner`)||i(`hide-banner`)||m)return;t().set(`is-banner-displayed`,!0),n(``),n(g.banner.outline.primary(`┏`)+g.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+g.banner.outline.primary(`━`)+` `+_(u.banner.header.primary(`Cyclone CLI v0.6.12`))+` `+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-33,0)))+g.banner.outline.primary(`┓`),{consoleFn:console.log});let a=Math.max(...b.map(e=>v(e).length))>Math.max(h().columns+30,20)?`Cyclone User Interface`:`\n${b.join(`
2
- `)}\n`;p(a,Math.max(h().columns-30,20)).forEach(e=>{n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(e).length+2))/2),0))+_(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((h().columns-(v(e).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(`Add`).length+2))/2),0))+_(u.banner.command.primary(`Add`))+` `.repeat(Math.max(Math.ceil((h().columns-(v(`Add`).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),p(_(u.banner.description.primary(`Adds a new component to the project.`)),Math.max(60>h().columns/2?h().columns-6:h().columns-30,20)).forEach(e=>{n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((h().columns-(v(e).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(h().columns-2,0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),n(g.banner.outline.primary(`┗`)+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-32,0)))+` `+_(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+g.banner.outline.primary(`━`.repeat(6))+g.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!o()&&await l(r)}async function j(e,t=[]){let n=k(e.cwd??process.cwd()),i=await S(n),a=C(e.registry??i.registry),o=e.all?(await a.components.list.query()).map(e=>e.name):t;if(o.length===0)throw Error(`Provide at least one component or use --all.`);let s=e.dryRun||e.diff||e.view,c=await T(a,i,o,{root:n,path:e.path,overwrite:e.overwrite,dryRun:s});e.diff?r(E(c,n)):e.view?r(c.files.map(e=>`// ${e.path}\n${e.content}`).join(`
1
+ import{A as e,B as t,D as n,E as r,F as i,G as a,I as o,K as s,L as c,N as l,S as u,U as d,V as f,_ as p,j as m,k as h,n as g,t as _,y as v,z as y}from"./console-C3z2Y61E.mjs";import{a as b}from"./prompts-e3s_BIKU.mjs";import{t as x}from"./update-wulHGaSU.mjs";import{a as S,u as C}from"./config-DxsYsT40.mjs";import{i as w,n as T,r as E,t as D}from"./components-BeiahS2c.mjs";import{t as O}from"./add-QZOxYcRK.mjs";import{resolve as k}from"node:path";async function A(r=500){if(t().get(`is-banner-displayed`)||i(`no-banner`)||i(`hide-banner`)||m)return;t().set(`is-banner-displayed`,!0),n(``),n(g.banner.outline.primary(`┏`)+g.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+g.banner.outline.primary(`━`)+` `+_(u.banner.header.primary(`Cyclone CLI v0.6.14`))+` `+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-33,0)))+g.banner.outline.primary(`┓`),{consoleFn:console.log});let a=Math.max(...b.map(e=>v(e).length))>Math.max(h().columns+30,20)?`Cyclone User Interface`:`\n${b.join(`
2
+ `)}\n`;p(a,Math.max(h().columns-30,20)).forEach(e=>{n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(e).length+2))/2),0))+_(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((h().columns-(v(e).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(`Add`).length+2))/2),0))+_(u.banner.command.primary(`Add`))+` `.repeat(Math.max(Math.ceil((h().columns-(v(`Add`).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),p(_(u.banner.description.primary(`Adds a new component to the project.`)),Math.max(60>h().columns/2?h().columns-6:h().columns-30,20)).forEach(e=>{n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((h().columns-(v(e).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(h().columns-2,0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),n(g.banner.outline.primary(`┗`)+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-32,0)))+` `+_(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+g.banner.outline.primary(`━`.repeat(6))+g.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!o()&&await l(r)}async function j(e,t=[]){let n=k(e.cwd??process.cwd()),i=await S(n),a=C(e.registry??i.registry),o=e.all?(await a.components.list.query()).map(e=>e.name):t;if(o.length===0)throw Error(`Provide at least one component or use --all.`);let s=e.dryRun||e.diff||e.view,c=await T(a,i,o,{root:n,path:e.path,overwrite:e.overwrite,rsc:e.rsc,dryRun:s});e.diff?r(E(c,n)):e.view?r(c.files.map(e=>`// ${e.path}\n${e.content}`).join(`
3
3
 
4
- `)):e.silent||r(w(c,n)),await D(i,c,{root:n,path:e.path,overwrite:e.overwrite,dryRun:s})}async function M(e=c()){let t={...y()};for(let n=0;n<e.slice(0).length;n++){let r=e[n].length>3&&e[n].startsWith(`--`)?`--${e[n].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[n].length>2&&e[n].startsWith(`-`)?`-${e[n].slice(1).replaceAll(`-`,``)}`:e[n];if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`)/^--?(cwd)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.cwd=r.replace(/^--?(cwd)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.cwd=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`overwrite=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`overwrite`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`overwrite=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`overwrite`){if(/^--?(overwrite)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(overwrite)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.overwrite=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.overwrite=!0}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`all=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`all`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`all=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`all`){if(/^--?(all)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(all)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.all=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.all=!0}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`path=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`path`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`path=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`path`)/^--?(path)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.path=r.replace(/^--?(path)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.path=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`dryrun=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`dryrun`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`dryrun=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`dryrun`){if(/^--?(dryrun)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(dryrun)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.dryRun=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.dryRun=!0}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`diff=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`diff`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`diff=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`diff`){if(/^--?(diff)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(diff)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.diff=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.diff=!0}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`view=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`view`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`view=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`view`){if(/^--?(view)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(view)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.view=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.view=!0}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`silent=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`silent`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`silent=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`silent`){if(/^--?(silent)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(silent)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.silent=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.silent=!0}else(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`registry=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`registry=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`)&&(/^--?(registry)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.registry=r.replace(/^--?(registry)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.registry=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)))}let r=Math.max(0,e.slice(2).findIndex(e=>e.startsWith(`-`)&&/^(cwd|overwrite|all|path|dryrun|diff|view|silent|registry)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+2,l=r>2?2:Math.max(0,e.slice(r).findLastIndex(e=>e.startsWith(`-`)&&/^(cwd|overwrite|all|path|dryrun|diff|view|silent|registry)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+2,p=[];return l+0<e.length&&l+0!==r&&(p=e.slice(l+0,(r>l?r:e.length)-1).join(` `).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)),i(`quiet`)||(await A(),await x()),!o()&&!i(`quiet`)&&(n(``),(s||a||d.LOG_LEVEL===`debug`)&&n(u.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?O():f(`add`,[`add`],[t,p],j)}export{M as handler};
4
+ `)):e.silent||r(w(c,n)),await D(i,c,{root:n,path:e.path,overwrite:e.overwrite,dryRun:s})}async function M(e=c()){let t={...y()};for(let n=0;n<e.slice(0).length;n++){let r=e[n].length>3&&e[n].startsWith(`--`)?`--${e[n].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[n].length>2&&e[n].startsWith(`-`)?`-${e[n].slice(1).replaceAll(`-`,``)}`:e[n];if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`)/^--?(cwd)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.cwd=r.replace(/^--?(cwd)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.cwd=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`overwrite=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`overwrite`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`overwrite=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`overwrite`){if(/^--?(overwrite)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(overwrite)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.overwrite=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.overwrite=!0}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`all=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`all`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`all=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`all`){if(/^--?(all)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(all)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.all=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.all=!0}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`path=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`path`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`path=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`path`)/^--?(path)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.path=r.replace(/^--?(path)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.path=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`dryrun=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`dryrun`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`dryrun=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`dryrun`){if(/^--?(dryrun)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(dryrun)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.dryRun=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.dryRun=!0}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`diff=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`diff`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`diff=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`diff`){if(/^--?(diff)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(diff)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.diff=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.diff=!0}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`view=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`view`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`view=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`view`){if(/^--?(view)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(view)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.view=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.view=!0}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`silent=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`silent`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`silent=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`silent`){if(/^--?(silent)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(silent)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.silent=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.silent=!0}else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`registry=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`registry=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`)/^--?(registry)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.registry=r.replace(/^--?(registry)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.registry=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`rsc=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`rsc`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`rsc=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`rsc`){if(/^--?(rsc)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(rsc)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.rsc=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.rsc=!0}}let r=Math.max(0,e.slice(2).findIndex(e=>e.startsWith(`-`)&&/^(cwd|overwrite|all|path|dryrun|diff|view|silent|registry|rsc)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+2,l=r>2?2:Math.max(0,e.slice(r).findLastIndex(e=>e.startsWith(`-`)&&/^(cwd|overwrite|all|path|dryrun|diff|view|silent|registry|rsc)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+2,p=[];return l+0<e.length&&l+0!==r&&(p=e.slice(l+0,(r>l?r:e.length)-1).join(` `).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)),i(`quiet`)||(await A(),await x()),!o()&&!i(`quiet`)&&(n(``),(s||a||d.LOG_LEVEL===`debug`)&&n(u.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?O():f(`add`,[`add`],[t,p],j)}export{M as handler};
@@ -1 +1 @@
1
- import{D as e,S as t,h as n,p as r,t as i,x as a}from"./console-ByH4Pf9W.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
+ import{D as e,S as t,h as n,p as r,t as i,x as a}from"./console-C3z2Y61E.mjs";function o(){e(`${i(t.heading.secondary(`Tags: `))} ${t.tags.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,2 +1,2 @@
1
- import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-ByH4Pf9W.mjs";import{a as y}from"./prompts-CeL3sX1m.mjs";import{t as b}from"./update-COr10C5g.mjs";import{t as x}from"./design-system-B7MzO5_9.mjs";import{t as S}from"./analyze-a11y-DYcSuyig.mjs";import{readFile as C}from"node:fs/promises";import{analyzeA11y as w}from"@razorwind/shell-shock/runtime";async function T(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.12`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
1
+ import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-C3z2Y61E.mjs";import{a as y}from"./prompts-e3s_BIKU.mjs";import{t as b}from"./update-wulHGaSU.mjs";import{t as x}from"./design-system-CNVVaZ1M.mjs";import{t as S}from"./analyze-a11y-BU8faGzr.mjs";import{readFile as C}from"node:fs/promises";import{analyzeA11y as w}from"@razorwind/shell-shock/runtime";async function T(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.14`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
2
2
  `)}\n`;f(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+g(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(`Analyze Accessibility`).length+2))/2),0))+g(l.banner.command.primary(`Analyze Accessibility`))+` `.repeat(Math.max(Math.ceil((m().columns-(_(`Analyze Accessibility`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),f(g(l.banner.description.primary(`Analyze a React/JSX source string (or file) for likely accessibility issues and hard-coded colors, suggesting the nearest design tokens for each color.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}function E(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function D(e){let t=e.code??(e.file?await C(e.file,`utf8`):void 0);t?E(w(x,t,{componentName:e.componentName,context:e.context,includePatternAnalysis:e.patternAnalysis!==!1})):(E({error:`Provide source code via --code or a path via --file.`}),process.exitCode=1)}async function O(e=s()){let t={...v(),patternAnalysis:!0};for(let n=0;n<e.slice(0).length;n++){let r=e[n].length>3&&e[n].startsWith(`--`)?`--${e[n].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[n].length>2&&e[n].startsWith(`-`)?`-${e[n].slice(1).replaceAll(`-`,``)}`:e[n];if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`code=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`code`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`code=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`code`)/^--?(code)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.code=r.replace(/^--?(code)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.code=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`file=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`file`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`file=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`file`)/^--?(file)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.file=r.replace(/^--?(file)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.file=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`componentname=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`componentname`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`componentname=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`componentname`)/^--?(componentname)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.componentName=r.replace(/^--?(componentname)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.componentName=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`context=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`context`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`context=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`context`)/^--?(context)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.context=r.replace(/^--?(context)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.context=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`patternanalysis=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`patternanalysis`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`patternanalysis=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`patternanalysis`){if(/^--?(patternanalysis)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(patternanalysis)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();t.patternAnalysis=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else t.patternAnalysis=!0}}return r(`quiet`)||(await T(),await b()),!a()&&!r(`quiet`)&&(n(``),(o||i||u.LOG_LEVEL===`debug`)&&n(l.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?S():d(`analyze-a11y`,[`analyze-a11y`],[t],D)}export{O as handler};
package/dist/bin.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import{A as e,B as t,D as n,F as r,H as i,I as a,L as o,N as s,O as c,R as l,S as u,_ as d,c as f,j as p,k as m,n as h,t as g,w as _,y as v}from"./console-ByH4Pf9W.mjs";import{a as y,n as b,o as x,r as S,t as C}from"./prompts-CeL3sX1m.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-nLy1sUFb.mjs";async function j(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.12`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
4
- `)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions`).length+2))/2),0))+g(u.banner.command.primary(`Completions`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands for generating shell completion scripts for Cyclone User Interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function M(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.12`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
5
- `)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions - Bash`).length+2))/2),0))+g(u.banner.command.primary(`Completions - Bash`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions - Bash`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands to setup bash completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function N(t=o()){let n=``;if(t.length>4&&t[4]&&(n=t[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-bash-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-bash-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await M();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(cyclone-ui completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(cyclone-ui completions bash config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(4)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-bash-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-bash-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return w()}async function P(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.12`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
6
- `)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions - Fish`).length+2))/2),0))+g(u.banner.command.primary(`Completions - Fish`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions - Fish`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands to setup Fish completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function F(t=o()){let n=``;if(t.length>4&&t[4]&&(n=t[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-fish-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-fish-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await P();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(cyclone-ui completions fish script)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(cyclone-ui completions fish config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(4)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-fish-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-fish-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return T()}async function I(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.12`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
7
- `)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions - PowerShell`).length+2))/2),0))+g(u.banner.command.primary(`Completions - PowerShell`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions - PowerShell`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands to setup PowerShell completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function L(t=o()){let n=``;if(t.length>4&&t[4]&&(n=t[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-powershell-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-powershell-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await I();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(cyclone-ui completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cyclone-ui completions powershell config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(4)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-powershell-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-powershell-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return O()}async function R(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.12`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
8
- `)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions - Zsh`).length+2))/2),0))+g(u.banner.command.primary(`Completions - Zsh`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions - Zsh`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands to setup Zsh completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function z(t=o()){let n=``;if(t.length>4&&t[4]&&(n=t[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-zsh-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-zsh-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await R();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(cyclone-ui completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(cyclone-ui completions zsh config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(4)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-zsh-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-zsh-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return E()}async function B(t=o()){let n=``;if(t.length>3&&t[3]&&(n=t[3]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`bash`)return N(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`zsh`)return z(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`powershell`)return L(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fish`)return F(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`bash`,`zsh`,`powershell`,`fish`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await j();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(cyclone-ui completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(cyclone-ui completions bash config)`,icon:`🖵`},{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(cyclone-ui completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(cyclone-ui completions zsh config)`,icon:`🖵`},{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(cyclone-ui completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cyclone-ui completions powershell config)`,icon:`🖵`},{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(cyclone-ui completions fish script)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(cyclone-ui completions fish config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(3)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`bash`)return N(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`zsh`)return z(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`powershell`)return L(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fish`)return F(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`bash`,`zsh`,`powershell`,`fish`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return D()}async function V(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.12`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
9
- `)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Registry Commands`).length+2))/2),0))+g(u.banner.command.primary(`Registry Commands`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Registry Commands`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`A collection of available Registry commands that are included in the Cyclone User Interface command-line application.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function H(t=o()){let n=``;if(t.length>3&&t[3]&&(n=t[3]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`validate`)return(await import(`./registry-validate.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`validate`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await V();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`registry`,`validate`],label:`Validate Registry`,description:`(cyclone-ui registry validate)`,icon:`✓`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(3)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`validate`)return(await import(`./registry-validate.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`validate`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return A()}let U=!1;const W=[],G=[];async function K(e={}){try{if(U)return;U=!0;let t=0;e.signal!==void 0&&e.signal>0||e.exception?t=128+(e.signal??1):(typeof process.exitCode==`number`||typeof process.exitCode==`string`)&&(t=process.exitCode),e.exception&&f({message:`A fatal error occured while running the application - please contact the Cyclone User Interface support team${e.exception&&typeof e.exception!=`symbol`?`: \n\n${typeof e.exception==`string`?e.exception:e.exception.message}`:`.`}`,...e.exception&&typeof e.exception==`object`?{stack:e.exception.stack}:{}});let n=(n=!1)=>{r(`quiet`)||_(`The Cyclone User Interface application exited ${e.exception?`early due to an exception`:`successfully`}${e.startDate?`. Total run time is ${Date.now()-e.startDate.getTime()>5e3?Math.floor((Date.now()-e.startDate.getTime())/1e3):Date.now()-e.startDate.getTime()} ${Date.now()-e.startDate.getTime()>5e3?`seconds`:`milliseconds`}`:``}...`),e.skipProcessExit||process.nextTick(()=>process.exit(t))};for(let e of G)e(t);if(!e.isSynchronous){let e=[],r=0;for(let[n,i]of W)r=Math.max(r,i),e.push(Promise.resolve(n(t)));let i=setTimeout(()=>{n(!0)},r);await Promise.all(e),clearTimeout(i)}n()}catch(t){f(`The exit process failed to complete${t?.message?` - ${t.message}`:``}. Please contact the Cyclone User Interface support team.`),e.skipProcessExit||process.nextTick(()=>process.exit(1))}}async function q(){if(r([`version`,`v`])){console.log(`0.6.12`);return}let t=o(),n=``;if(t.length>2&&t[2]&&(n=t[2]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`info`)return(await import(`./info.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`init`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`create`)return(await import(`./init.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`docs`)return(await import(`./docs.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`diff`)return(await import(`./diff.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`createtokens`)return(await import(`./create-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`build`)return(await import(`./build.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`add`)return(await import(`./add.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`search`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`list`)return(await import(`./search.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`view`)return(await import(`./view.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`changelog`)return(await import(`./changelog.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completions`)return B(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`update`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`upgrade`)return(await import(`./update.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchtokens`)return(await import(`./search-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listtokens`)return(await import(`./list-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchcomponents`)return(await import(`./search-components.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listcomponents`)return(await import(`./list-components.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchicons`)return(await import(`./search-icons.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listicons`)return(await import(`./list-icons.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchfonts`)return(await import(`./search-fonts.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listfonts`)return(await import(`./list-fonts.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`plan`)return(await import(`./plan.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`guidelines`)return(await import(`./guidelines.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`analyzea11y`)return(await import(`./analyze-a11y.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`mcp`)return(await import(`./mcp.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`)return H(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`help`)return(await import(`./help.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,/* @__PURE__ */ `info.init.create.docs.diff.create-tokens.build.add.search.list.view.changelog.completions.update.upgrade.search-tokens.list-tokens.search-components.list-components.search-icons.list-icons.search-fonts.list-fonts.plan.guidelines.analyze-a11y.mcp.registry.help`.split(`.`)).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await x();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`info`],label:`Project Information`,description:`(cyclone-ui info)`,icon:`ⓘ`},{value:[`init`],label:`Initialize`,description:`(cyclone-ui init)`,icon:`🌀`},{value:[`docs`],label:`Component Documentation`,description:`(cyclone-ui docs)`,icon:`🕮`},{value:[`diff`],label:`Diff Components`,description:`(cyclone-ui diff)`,icon:`±`},{value:[`create-tokens`],label:`Create Tokens`,description:`(cyclone-ui create-tokens)`,icon:`🏗`},{value:[`build`],label:`Build Registry`,description:`(cyclone-ui build)`,icon:`🏗`},{value:[`add`],label:`Add`,description:`(cyclone-ui add)`,icon:`➕`},{value:[`search`],label:`Search Registry`,description:`(cyclone-ui search)`,icon:`⌕`},{value:[`view`],label:`View Registry Components`,description:`(cyclone-ui view)`,icon:`◉`},{value:[`changelog`],label:`Changelog`,description:`(cyclone-ui changelog)`,icon:`🗃`},{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(cyclone-ui completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(cyclone-ui completions bash config)`,icon:`🖵`},{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(cyclone-ui completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(cyclone-ui completions zsh config)`,icon:`🖵`},{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(cyclone-ui completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cyclone-ui completions powershell config)`,icon:`🖵`},{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(cyclone-ui completions fish script)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(cyclone-ui completions fish config)`,icon:`🖵`},{value:[`update`],label:`Update`,description:`(cyclone-ui update)`,icon:`🖒`},{value:[`search-tokens`],label:`Search Tokens`,description:`(cyclone-ui search-tokens)`,icon:`🎨`},{value:[`list-tokens`],label:`List Tokens`,description:`(cyclone-ui list-tokens)`,icon:`🎨`},{value:[`search-components`],label:`Search Components`,description:`(cyclone-ui search-components)`,icon:`🧩`},{value:[`list-components`],label:`List Components`,description:`(cyclone-ui list-components)`,icon:`🧩`},{value:[`search-icons`],label:`Search Icons`,description:`(cyclone-ui search-icons)`,icon:`🖼`},{value:[`list-icons`],label:`List Icons`,description:`(cyclone-ui list-icons)`,icon:`🖼`},{value:[`search-fonts`],label:`Search Fonts`,description:`(cyclone-ui search-fonts)`,icon:`🔤`},{value:[`list-fonts`],label:`List Fonts`,description:`(cyclone-ui list-fonts)`,icon:`🔤`},{value:[`plan`],label:`Plan`,description:`(cyclone-ui plan)`,icon:`🗺`},{value:[`guidelines`],label:`Guidelines`,description:`(cyclone-ui guidelines)`,icon:`📖`},{value:[`analyze-a11y`],label:`Analyze Accessibility`,description:`(cyclone-ui analyze-a11y)`,icon:`♿`},{value:[`mcp`],label:`MCP Server`,description:`(cyclone-ui mcp)`,icon:`🔌`},{value:[`registry`,`validate`],label:`Validate Registry`,description:`(cyclone-ui registry validate)`,icon:`✓`},{value:[`help`],label:`Help`,description:`(cyclone-ui help)`,icon:`🛈`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(2)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`info`)return(await import(`./info.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`init`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`create`)return(await import(`./init.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`docs`)return(await import(`./docs.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`diff`)return(await import(`./diff.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`createtokens`)return(await import(`./create-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`build`)return(await import(`./build.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`add`)return(await import(`./add.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`search`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`list`)return(await import(`./search.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`view`)return(await import(`./view.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`changelog`)return(await import(`./changelog.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completions`)return B(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`update`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`upgrade`)return(await import(`./update.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchtokens`)return(await import(`./search-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listtokens`)return(await import(`./list-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchcomponents`)return(await import(`./search-components.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listcomponents`)return(await import(`./list-components.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchicons`)return(await import(`./search-icons.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listicons`)return(await import(`./list-icons.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchfonts`)return(await import(`./search-fonts.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listfonts`)return(await import(`./list-fonts.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`plan`)return(await import(`./plan.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`guidelines`)return(await import(`./guidelines.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`analyzea11y`)return(await import(`./analyze-a11y.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`mcp`)return(await import(`./mcp.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`)return H(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`help`)return(await import(`./help.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,/* @__PURE__ */ `info.init.create.docs.diff.create-tokens.build.add.search.list.view.changelog.completions.update.upgrade.search-tokens.list-tokens.search-components.list-components.search-icons.list-icons.search-fonts.list-fonts.plan.guidelines.analyze-a11y.mcp.registry.help`.split(`.`)).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return await x(0),k()}(async()=>{let e=/* @__PURE__ */ new Date;try{process.on(`exit`,()=>K({startDate:e,skipProcessExit:!0,isSynchronous:!0,signal:0})),process.on(`beforeExit`,()=>K({startDate:e,signal:0})),process.on(`message`,t=>{t===`shutdown`&&K({startDate:e,isSynchronous:!0,signal:-128})}),process.once(`SIGTERM`,()=>K({startDate:e,signal:15})),process.once(`SIGINT`,()=>K({startDate:e,signal:2})),process.once(`SIGUSR2`,()=>(_(`The application was terminated by the user`),K({startDate:e,signal:12}))),process.once(`SIGQUIT`,()=>(_(`The application was terminated by the user`),K({startDate:e,signal:12})));for(let t of[`unhandledRejection`,`uncaughtException`])process.on(t,n=>K({startDate:e,exception:n||/* @__PURE__ */ Error(`An ${t===`unhandledRejection`?`unhandled promise rejection`:`uncaught exception`} occurred during processing - the application is shutting down.`)}));await i(async()=>{let e=await q();e?.error&&f(e.error)})}catch(t){K({startDate:e,exception:t})}})();export{K as exit};
3
+ import{A as e,B as t,D as n,F as r,H as i,I as a,L as o,N as s,O as c,R as l,S as u,_ as d,c as f,j as p,k as m,n as h,t as g,w as _,y as v}from"./console-C3z2Y61E.mjs";import{a as y,n as b,o as x,r as S,t as C}from"./prompts-e3s_BIKU.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-DnOTA6eC.mjs";async function j(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.14`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
4
+ `)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions`).length+2))/2),0))+g(u.banner.command.primary(`Completions`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands for generating shell completion scripts for Cyclone User Interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function M(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.14`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
5
+ `)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions - Bash`).length+2))/2),0))+g(u.banner.command.primary(`Completions - Bash`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions - Bash`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands to setup bash completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function N(t=o()){let n=``;if(t.length>4&&t[4]&&(n=t[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-bash-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-bash-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await M();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(cyclone-ui completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(cyclone-ui completions bash config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(4)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-bash-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-bash-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return w()}async function P(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.14`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
6
+ `)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions - Fish`).length+2))/2),0))+g(u.banner.command.primary(`Completions - Fish`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions - Fish`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands to setup Fish completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function F(t=o()){let n=``;if(t.length>4&&t[4]&&(n=t[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-fish-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-fish-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await P();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(cyclone-ui completions fish script)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(cyclone-ui completions fish config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(4)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-fish-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-fish-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return T()}async function I(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.14`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
7
+ `)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions - PowerShell`).length+2))/2),0))+g(u.banner.command.primary(`Completions - PowerShell`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions - PowerShell`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands to setup PowerShell completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function L(t=o()){let n=``;if(t.length>4&&t[4]&&(n=t[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-powershell-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-powershell-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await I();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(cyclone-ui completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cyclone-ui completions powershell config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(4)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-powershell-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-powershell-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return O()}async function R(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.14`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
8
+ `)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Completions - Zsh`).length+2))/2),0))+g(u.banner.command.primary(`Completions - Zsh`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Completions - Zsh`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`Commands to setup Zsh completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function z(t=o()){let n=``;if(t.length>4&&t[4]&&(n=t[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-zsh-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-zsh-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await R();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(cyclone-ui completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(cyclone-ui completions zsh config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(4)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-zsh-script.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-zsh-config.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`script`,`config`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return E()}async function B(t=o()){let n=``;if(t.length>3&&t[3]&&(n=t[3]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`bash`)return N(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`zsh`)return z(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`powershell`)return L(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fish`)return F(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`bash`,`zsh`,`powershell`,`fish`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await j();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(cyclone-ui completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(cyclone-ui completions bash config)`,icon:`🖵`},{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(cyclone-ui completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(cyclone-ui completions zsh config)`,icon:`🖵`},{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(cyclone-ui completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cyclone-ui completions powershell config)`,icon:`🖵`},{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(cyclone-ui completions fish script)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(cyclone-ui completions fish config)`,icon:`🖵`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(3)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`bash`)return N(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`zsh`)return z(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`powershell`)return L(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fish`)return F(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`bash`,`zsh`,`powershell`,`fish`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return D()}async function V(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(u.banner.header.primary(`Cyclone CLI v0.6.14`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>v(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
9
+ `)}\n`;d(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+g(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(`Registry Commands`).length+2))/2),0))+g(u.banner.command.primary(`Registry Commands`))+` `.repeat(Math.max(Math.ceil((m().columns-(v(`Registry Commands`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),d(g(u.banner.description.primary(`A collection of available Registry commands that are included in the Cyclone User Interface command-line application.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(v(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await s(i)}async function H(t=o()){let n=``;if(t.length>3&&t[3]&&(n=t[3]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`validate`)return(await import(`./registry-validate.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`validate`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await V();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`registry`,`validate`],label:`Validate Registry`,description:`(cyclone-ui registry validate)`,icon:`✓`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(3)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`validate`)return(await import(`./registry-validate.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,[`validate`]).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return A()}let U=!1;const W=[],G=[];async function K(e={}){try{if(U)return;U=!0;let t=0;e.signal!==void 0&&e.signal>0||e.exception?t=128+(e.signal??1):(typeof process.exitCode==`number`||typeof process.exitCode==`string`)&&(t=process.exitCode),e.exception&&f({message:`A fatal error occured while running the application - please contact the Cyclone User Interface support team${e.exception&&typeof e.exception!=`symbol`?`: \n\n${typeof e.exception==`string`?e.exception:e.exception.message}`:`.`}`,...e.exception&&typeof e.exception==`object`?{stack:e.exception.stack}:{}});let n=(n=!1)=>{r(`quiet`)||_(`The Cyclone User Interface application exited ${e.exception?`early due to an exception`:`successfully`}${e.startDate?`. Total run time is ${Date.now()-e.startDate.getTime()>5e3?Math.floor((Date.now()-e.startDate.getTime())/1e3):Date.now()-e.startDate.getTime()} ${Date.now()-e.startDate.getTime()>5e3?`seconds`:`milliseconds`}`:``}...`),e.skipProcessExit||process.nextTick(()=>process.exit(t))};for(let e of G)e(t);if(!e.isSynchronous){let e=[],r=0;for(let[n,i]of W)r=Math.max(r,i),e.push(Promise.resolve(n(t)));let i=setTimeout(()=>{n(!0)},r);await Promise.all(e),clearTimeout(i)}n()}catch(t){f(`The exit process failed to complete${t?.message?` - ${t.message}`:``}. Please contact the Cyclone User Interface support team.`),e.skipProcessExit||process.nextTick(()=>process.exit(1))}}async function q(){if(r([`version`,`v`])){console.log(`0.6.14`);return}let t=o(),n=``;if(t.length>2&&t[2]&&(n=t[2]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`view`)return(await import(`./view.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`search`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`list`)return(await import(`./search.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`init`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`create`)return(await import(`./init.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`info`)return(await import(`./info.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`docs`)return(await import(`./docs.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`diff`)return(await import(`./diff.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`buildtokens`)return(await import(`./build-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`build`)return(await import(`./build.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`add`)return(await import(`./add.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`changelog`)return(await import(`./changelog.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completions`)return B(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`update`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`upgrade`)return(await import(`./update.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchtokens`)return(await import(`./search-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listtokens`)return(await import(`./list-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchcomponents`)return(await import(`./search-components.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listcomponents`)return(await import(`./list-components.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchicons`)return(await import(`./search-icons.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listicons`)return(await import(`./list-icons.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchfonts`)return(await import(`./search-fonts.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listfonts`)return(await import(`./list-fonts.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`plan`)return(await import(`./plan.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`guidelines`)return(await import(`./guidelines.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`analyzea11y`)return(await import(`./analyze-a11y.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`mcp`)return(await import(`./mcp.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`)return H(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`help`)return(await import(`./help.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,/* @__PURE__ */ `view.search.list.init.create.info.docs.diff.build-tokens.build.add.changelog.completions.update.upgrade.search-tokens.list-tokens.search-components.list-components.search-icons.list-icons.search-fonts.list-fonts.plan.guidelines.analyze-a11y.mcp.registry.help`.split(`.`)).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!a()){await x();let e=await b({message:`Which command would you like to execute?`,options:[{value:[`view`],label:`View Registry Components`,description:`(cyclone-ui view)`,icon:`◉`},{value:[`search`],label:`Search Registry`,description:`(cyclone-ui search)`,icon:`⌕`},{value:[`init`],label:`Initialize`,description:`(cyclone-ui init)`,icon:`🌀`},{value:[`info`],label:`Project Information`,description:`(cyclone-ui info)`,icon:`ⓘ`},{value:[`docs`],label:`Component Documentation`,description:`(cyclone-ui docs)`,icon:`🕮`},{value:[`diff`],label:`Diff Components`,description:`(cyclone-ui diff)`,icon:`±`},{value:[`build-tokens`],label:`Build Tokens`,description:`(cyclone-ui build-tokens)`,icon:`🏗`},{value:[`build`],label:`Build`,description:`(cyclone-ui build)`,icon:`🏗`},{value:[`add`],label:`Add`,description:`(cyclone-ui add)`,icon:`➕`},{value:[`changelog`],label:`Changelog`,description:`(cyclone-ui changelog)`,icon:`🗃`},{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(cyclone-ui completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(cyclone-ui completions bash config)`,icon:`🖵`},{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(cyclone-ui completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(cyclone-ui completions zsh config)`,icon:`🖵`},{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(cyclone-ui completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cyclone-ui completions powershell config)`,icon:`🖵`},{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(cyclone-ui completions fish script)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(cyclone-ui completions fish config)`,icon:`🖵`},{value:[`update`],label:`Update`,description:`(cyclone-ui update)`,icon:`🖒`},{value:[`search-tokens`],label:`Search Tokens`,description:`(cyclone-ui search-tokens)`,icon:`🎨`},{value:[`list-tokens`],label:`List Tokens`,description:`(cyclone-ui list-tokens)`,icon:`🎨`},{value:[`search-components`],label:`Search Components`,description:`(cyclone-ui search-components)`,icon:`🧩`},{value:[`list-components`],label:`List Components`,description:`(cyclone-ui list-components)`,icon:`🧩`},{value:[`search-icons`],label:`Search Icons`,description:`(cyclone-ui search-icons)`,icon:`🖼`},{value:[`list-icons`],label:`List Icons`,description:`(cyclone-ui list-icons)`,icon:`🖼`},{value:[`search-fonts`],label:`Search Fonts`,description:`(cyclone-ui search-fonts)`,icon:`🔤`},{value:[`list-fonts`],label:`List Fonts`,description:`(cyclone-ui list-fonts)`,icon:`🔤`},{value:[`plan`],label:`Plan`,description:`(cyclone-ui plan)`,icon:`🗺`},{value:[`guidelines`],label:`Guidelines`,description:`(cyclone-ui guidelines)`,icon:`📖`},{value:[`analyze-a11y`],label:`Analyze Accessibility`,description:`(cyclone-ui analyze-a11y)`,icon:`♿`},{value:[`mcp`],label:`MCP Server`,description:`(cyclone-ui mcp)`,icon:`🔌`},{value:[`registry`,`validate`],label:`Validate Registry`,description:`(cyclone-ui registry validate)`,icon:`✓`},{value:[`help`],label:`Help`,description:`(cyclone-ui help)`,icon:`🛈`}]});if(C(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;r[t]=e}e=e.map(e=>r[e]||e);let i=l();if(i&&(i.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(2)].filter(Boolean)),n=e[0],t=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`view`)return(await import(`./view.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`search`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`list`)return(await import(`./search.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`init`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`create`)return(await import(`./init.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`info`)return(await import(`./info.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`docs`)return(await import(`./docs.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`diff`)return(await import(`./diff.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`buildtokens`)return(await import(`./build-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`build`)return(await import(`./build.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`add`)return(await import(`./add.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`changelog`)return(await import(`./changelog.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completions`)return B(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`update`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`upgrade`)return(await import(`./update.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchtokens`)return(await import(`./search-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listtokens`)return(await import(`./list-tokens.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchcomponents`)return(await import(`./search-components.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listcomponents`)return(await import(`./list-components.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchicons`)return(await import(`./search-icons.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listicons`)return(await import(`./list-icons.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`searchfonts`)return(await import(`./search-fonts.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`listfonts`)return(await import(`./list-fonts.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`plan`)return(await import(`./plan.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`guidelines`)return(await import(`./guidelines.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`analyzea11y`)return(await import(`./analyze-a11y.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`mcp`)return(await import(`./mcp.mjs`).then(e=>e.handler))(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`)return H(t);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`help`)return(await import(`./help.mjs`).then(e=>e.handler))(t);if(n&&!n.startsWith(`-`)){let e=c(n,/* @__PURE__ */ `view.search.list.init.create.info.docs.diff.build-tokens.build.add.changelog.completions.update.upgrade.search-tokens.list-tokens.search-components.list-components.search-icons.list-icons.search-fonts.list-fonts.plan.guidelines.analyze-a11y.mcp.registry.help`.split(`.`)).slice(0,3);f(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return await x(0),k()}(async()=>{let e=/* @__PURE__ */ new Date;try{process.on(`exit`,()=>K({startDate:e,skipProcessExit:!0,isSynchronous:!0,signal:0})),process.on(`beforeExit`,()=>K({startDate:e,signal:0})),process.on(`message`,t=>{t===`shutdown`&&K({startDate:e,isSynchronous:!0,signal:-128})}),process.once(`SIGTERM`,()=>K({startDate:e,signal:15})),process.once(`SIGINT`,()=>K({startDate:e,signal:2})),process.once(`SIGUSR2`,()=>(_(`The application was terminated by the user`),K({startDate:e,signal:12}))),process.once(`SIGQUIT`,()=>(_(`The application was terminated by the user`),K({startDate:e,signal:12})));for(let t of[`unhandledRejection`,`uncaughtException`])process.on(t,n=>K({startDate:e,exception:n||/* @__PURE__ */ Error(`An ${t===`unhandledRejection`?`unhandled promise rejection`:`uncaught exception`} occurred during processing - the application is shutting down.`)}));await i(async()=>{let e=await q();e?.error&&f(e.error)})}catch(t){K({startDate:e,exception:t})}})();export{K as exit};
@@ -0,0 +1 @@
1
+ import{D as e,S as t,h as n,t as r,x as i}from"./console-C3z2Y61E.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};
@@ -0,0 +1 @@
1
+ import{D as e,S as t,h as n,t as r,x as i}from"./console-C3z2Y61E.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};
@@ -0,0 +1,2 @@
1
+ import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-C3z2Y61E.mjs";import{a as y}from"./prompts-e3s_BIKU.mjs";import{t as b}from"./update-wulHGaSU.mjs";import{t as x}from"./build-tokens-C_wzH90_.mjs";import{t as S}from"./command-DbeCTonF.mjs";async function C(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.14`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
2
+ `)}\n`;f(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+g(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(`Build Tokens`).length+2))/2),0))+g(l.banner.command.primary(`Build Tokens`))+` `.repeat(Math.max(Math.ceil((m().columns-(_(`Build Tokens`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),f(g(l.banner.description.primary(`Generate a Tamagui config file from design tokens.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}async function w(e=s()){let t={...v()};for(let n=0;n<e.slice(0).length;n++){let r=e[n].length>3&&e[n].startsWith(`--`)?`--${e[n].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[n].length>2&&e[n].startsWith(`-`)?`-${e[n].slice(1).replaceAll(`-`,``)}`:e[n];r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`?/^--?(cwd)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.cwd=r.replace(/^--?(cwd)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.cwd=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)):r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`config=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`config=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`?/^--?(config)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.config=r.replace(/^--?(config)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.config=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)):r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`tokens=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`tokens`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`tokens=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`tokens`?/^--?(tokens)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.tokens=r.replace(/^--?(tokens)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.tokens=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)):(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`output=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`output`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`output=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`output`)&&(/^--?(output)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.output=r.replace(/^--?(output)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.output=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)))}return r(`quiet`)||(await C(),await b()),!a()&&!r(`quiet`)&&(n(``),(o||i||u.LOG_LEVEL===`debug`)&&n(l.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?x():d(`build-tokens`,[`build-tokens`],[t],S)}export{w as handler};
package/dist/build.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,b as p,j as m,k as h,n as g,t as _,y as v,z as y}from"./console-ByH4Pf9W.mjs";import{a as b}from"./prompts-CeL3sX1m.mjs";import{t as x}from"./update-COr10C5g.mjs";import{t as S}from"./build-BLHSieJf.mjs";import{n as C,t as w}from"./local-registry-pqsOERYj.mjs";import{dirname as T,resolve as E}from"node:path";import{mkdir as D,writeFile as O}from"node:fs/promises";async function k(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||m)return;t().set(`is-banner-displayed`,!0),n(``),n(g.banner.outline.primary(`┏`)+g.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+g.banner.outline.primary(`━`)+` `+_(l.banner.header.primary(`Cyclone CLI v0.6.12`))+` `+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-33,0)))+g.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...b.map(e=>v(e).length))>Math.max(h().columns+30,20)?`Cyclone User Interface`:`\n${b.join(`
2
- `)}\n`;f(o,Math.max(h().columns-30,20)).forEach(e=>{n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(e).length+2))/2),0))+_(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((h().columns-(v(e).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(`Build Registry`).length+2))/2),0))+_(l.banner.command.primary(`Build Registry`))+` `.repeat(Math.max(Math.ceil((h().columns-(v(`Build Registry`).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),f(_(l.banner.description.primary(`Build registry item JSON files for distribution.`)),Math.max(60>h().columns/2?h().columns-6:h().columns-30,20)).forEach(e=>{n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((h().columns-(v(e).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(h().columns-2,0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),n(g.banner.outline.primary(`┗`)+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-32,0)))+` `+_(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+g.banner.outline.primary(`━`.repeat(6))+g.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}async function A(e,t=`registry.json`){let n=E(e.cwd??process.cwd()),r=await C(E(n,t)),i=await w(n,r,e.output??`public/r`);for(let e of i)await D(T(e.path),{recursive:!0}),await O(e.path,e.content,`utf8`);p(`Built ${i.length} registry items.`)}async function j(e=s()){let t={...y()};for(let n=0;n<e.slice(0).length;n++){let r=e[n].length>3&&e[n].startsWith(`--`)?`--${e[n].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[n].length>2&&e[n].startsWith(`-`)?`-${e[n].slice(1).replaceAll(`-`,``)}`:e[n];r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`?/^--?(cwd)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.cwd=r.replace(/^--?(cwd)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.cwd=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)):(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`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(/("|')$/,``)))}let c=Math.max(0,e.slice(2).findIndex(e=>e.startsWith(`-`)&&/^(cwd|output)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+2,f=c>2?2:Math.max(0,e.slice(c).findLastIndex(e=>e.startsWith(`-`)&&/^(cwd|output)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+2,p=`registry.json`;return f+0<e.length&&f+0!==c&&(p=e[f+0]),r(`quiet`)||(await k(),await x()),!a()&&!r(`quiet`)&&(n(``),(o||i||u.LOG_LEVEL===`debug`)&&n(l.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?S():d(`build`,[`build`],[t,p],A)}export{j as handler};
1
+ import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,b as p,j as m,k as h,n as g,t as _,y as v,z as y}from"./console-C3z2Y61E.mjs";import{a as b}from"./prompts-e3s_BIKU.mjs";import{t as x}from"./update-wulHGaSU.mjs";import{t as S}from"./command-DbeCTonF.mjs";import{t as C}from"./build-BMHh7SnK.mjs";import{resolve as w}from"node:path";async function T(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||m)return;t().set(`is-banner-displayed`,!0),n(``),n(g.banner.outline.primary(`┏`)+g.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+g.banner.outline.primary(`━`)+` `+_(l.banner.header.primary(`Cyclone CLI v0.6.14`))+` `+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-33,0)))+g.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...b.map(e=>v(e).length))>Math.max(h().columns+30,20)?`Cyclone User Interface`:`\n${b.join(`
2
+ `)}\n`;f(o,Math.max(h().columns-30,20)).forEach(e=>{n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(e).length+2))/2),0))+_(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((h().columns-(v(e).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(`Build`).length+2))/2),0))+_(l.banner.command.primary(`Build`))+` `.repeat(Math.max(Math.ceil((h().columns-(v(`Build`).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),f(_(l.banner.description.primary(`Generate design tokens and build the resulting Tamagui config.`)),Math.max(60>h().columns/2?h().columns-6:h().columns-30,20)).forEach(e=>{n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((h().columns-(v(e).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(h().columns-2,0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),n(g.banner.outline.primary(`┗`)+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-32,0)))+` `+_(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+g.banner.outline.primary(`━`.repeat(6))+g.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}async function E(e){let t=w(e.cwd??process.cwd()),n=e.output??`tamagui.config.ts`;await S({...e,cwd:t,output:n});let{loadTamagui:r}=await import(`@tamagui/static/loadTamagui`);if(!(await r({root:t,config:w(t,n),outputCSS:w(t,`tamagui.generated.css`),components:[`@tamagui/core`],platform:`web`},!0))?.tamaguiConfig)throw Error(`Unable to build Tamagui config: ${w(t,n)}`);p(`Built Tamagui config and CSS.`)}async function D(e=s()){let t={...y()};for(let n=0;n<e.slice(0).length;n++){let r=e[n].length>3&&e[n].startsWith(`--`)?`--${e[n].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[n].length>2&&e[n].startsWith(`-`)?`-${e[n].slice(1).replaceAll(`-`,``)}`:e[n];r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`?/^--?(cwd)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.cwd=r.replace(/^--?(cwd)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.cwd=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)):r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`config=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`config=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`?/^--?(config)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.config=r.replace(/^--?(config)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.config=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)):r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`tokens=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`tokens`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`tokens=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`tokens`?/^--?(tokens)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.tokens=r.replace(/^--?(tokens)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.tokens=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)):(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`output=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`output`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`output=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`output`)&&(/^--?(output)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?t.output=r.replace(/^--?(output)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):e.length>n+1&&(t.output=e[++n].trim().replace(/^("|')/,``).replace(/("|')$/,``)))}return r(`quiet`)||(await T(),await x()),!a()&&!r(`quiet`)&&(n(``),(o||i||u.LOG_LEVEL===`debug`)&&n(l.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),t.help?C():d(`build`,[`build`],[t],E)}export{D as handler};
@@ -1 +1 @@
1
- import{D as e,S as t,h as n,p as r,t as i,x as a}from"./console-ByH4Pf9W.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
+ import{D as e,S as t,h as n,p as r,t as i,x as a}from"./console-C3z2Y61E.mjs";function o(){e(`${i(t.heading.secondary(`Tags: `))} ${t.tags.utility?t.tags.utility(r(` Utility `)):t.tags.default(r(` Utility `))}`,{padding:0}),e(``),e(i(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`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,8 +1,26 @@
1
- import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-ByH4Pf9W.mjs";import{a as y}from"./prompts-CeL3sX1m.mjs";import{t as b}from"./update-COr10C5g.mjs";import{t as x}from"./changelog-BGtHdCgl.mjs";import{bold as S,textColors as C}from"node:console";async function w(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.12`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
1
+ import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-C3z2Y61E.mjs";import{a as y}from"./prompts-e3s_BIKU.mjs";import{t as b}from"./update-wulHGaSU.mjs";import{t as x}from"./changelog-Q5DymQRF.mjs";import{bold as S,textColors as C}from"node:console";async function w(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.14`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
2
2
  `)}\n`;f(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+g(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(`Changelog`).length+2))/2),0))+g(l.banner.command.primary(`Changelog`))+` `.repeat(Math.max(Math.ceil((m().columns-(_(`Changelog`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),f(g(l.banner.description.primary(`Display the Cyclone User Interface changelog.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}function T(){console.log(`${C.body.primary(`textColors.body.primary("[Image: Cyclone UI's logo banner]")`)}
3
3
 
4
4
  ${S(C.heading.primary(`Changelog for Cyclone UI - CLI`))}
5
5
 
6
+ ${S(C.heading.secondary(`0.6.14 (10/19/2026)`))}
7
+
8
+ ${S(C.heading.tertiary(`Bug Fixes`))}
9
+
10
+ ${C.body.primary(`• monorepo: Resolve maps tile build issue and storybook theme reference (cac26891)`)}
11
+
12
+ ${S(C.heading.tertiary(`Updated Dependencies`))}
13
+
14
+ ${C.body.primary(`• Updated registry-api to v0.3.24
15
+ • Updated theme-builder to v0.0.14`)}
16
+
17
+ ${S(C.heading.secondary(`0.6.13 (10/19/2026)`))}
18
+
19
+ ${S(C.heading.tertiary(`Updated Dependencies`))}
20
+
21
+ ${C.body.primary(`• Updated registry-api to v0.3.23
22
+ • Updated theme-builder to v0.0.13`)}
23
+
6
24
  ${S(C.heading.secondary(`0.6.12 (10/18/2026)`))}
7
25
 
8
26
  ${S(C.heading.tertiary(`Updated Dependencies`))}
@@ -0,0 +1 @@
1
+ import{D as e,b as t}from"./console-C3z2Y61E.mjs";import{relative as n,resolve as r}from"node:path";import{generate as i}from"@cyclone-ui/theme-builder";import{generatePluginDocuments as a,isEmptyTokens as o,prepareSpec as s,resolveConfig as c,writeGeneratedDocuments as l}from"@razorwind/core";async function u(u){let d=r(u.cwd??process.cwd()),f=await c(d,{configFile:u.config,mode:`production`});u.tokens&&(f.tokensPath=u.tokens),f.plugins=[...f.plugins.filter(e=>!e.generate),i({outputPath:u.output??`tamagui.config.ts`})];let p=await s({cwd:d,options:f});if(o(p.tokens))throw Error("No design tokens found. Pass --tokens or set `tokensPath` in razorwind.config.ts.");let m=await l(await a(p,f),d);for(let t of m)e(n(d,t));t(`Generated ${m.length} files.`)}export{u as t};
@@ -1,4 +1,4 @@
1
- import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-ByH4Pf9W.mjs";import{a as y}from"./prompts-CeL3sX1m.mjs";import{t as b}from"./update-COr10C5g.mjs";import{n as x,t as S}from"./shared-BqOLk4iK.mjs";import{t as C}from"./config-vcV8I7FW.mjs";import w from"node:os";import{join as T}from"node:path";import{readFile as E,writeFile as D}from"node:fs/promises";import{bold as O,help as k,inlineCode as A,success as j,warn as M,writeLine as N}from"node:console";async function P(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.12`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
1
+ import{A as e,B as t,D as n,F as r,G as i,I as a,K as o,L as s,N as c,S as l,U as u,V as d,_ as f,j as p,k as m,n as h,t as g,y as _,z as v}from"./console-C3z2Y61E.mjs";import{a as y}from"./prompts-e3s_BIKU.mjs";import{t as b}from"./update-wulHGaSU.mjs";import{n as x,t as S}from"./shared-BqOLk4iK.mjs";import{t as C}from"./config-C09YwAnf.mjs";import w from"node:os";import{join as T}from"node:path";import{readFile as E,writeFile as D}from"node:fs/promises";import{bold as O,help as k,inlineCode as A,success as j,warn as M,writeLine as N}from"node:console";async function P(i=500){if(t().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||p)return;t().set(`is-banner-displayed`,!0),n(``),n(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+g(l.banner.header.primary(`Cyclone CLI v0.6.14`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-33,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...y.map(e=>_(e).length))>Math.max(m().columns+30,20)?`Cyclone User Interface`:`\n${y.join(`
2
2
  `)}\n`;f(o,Math.max(m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+g(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(`Completions - Bash Configuration`).length+2))/2),0))+g(l.banner.command.primary(`Completions - Bash Configuration`))+` `.repeat(Math.max(Math.ceil((m().columns-(_(`Completions - Bash Configuration`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),f(g(l.banner.description.primary(`Update the current system's bash shell configuration to include completions for the Cyclone User Interface command-line interface.`)),Math.max(60>m().columns/2?m().columns-6:m().columns-30,20)).forEach(e=>{n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((m().columns-(_(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((m().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(m().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(m().columns-32,0)))+` `+g(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}async function F(e={},t=`~/.bashrc`){if(e.display!==!0){let e=t.includes(`.`)?t:T(t,`.bashrc`);e.startsWith(`~`)&&(e=T(w.homedir(),e.replace(`~`,``)));let n=``;try{n=await E(e,`utf8`)}catch(t){if(typeof t==`object`&&t&&`code`in t&&t.code===`ENOENT`)M(`Configuration file ${O(e)} does not exist. It will be created when the completion script is written.`);else return{error:t}}await D(e,`${n}\n\n### Begin - Cyclone User Interface Shell Completions ###\n\n${S} \n\n### End - Cyclone User Interface Bash Completions ###`),j(`Cyclone User Interface shell completions have been applied to Bash configuration file at ${O(e)}. Please restart your terminal or run ${A(`source ${e}`)} for the changes to take effect.`)}else N(` ------------------------------------------------- `),N(``),N(`### Begin - Cyclone User Interface Bash Completions ###`),N(``),x.split(`
3
3
  `).map(e=>N(e)),N(``),N(`### End - Cyclone User Interface Bash Completions ###`),N(``),N(` ------------------------------------------------- `),N(``),k(`To enable these completions, perform one of the following actions:
4
4