@cyclone-ui/cli 0.0.0-stage → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +187 -0
- package/README.md +113 -2
- package/dist/add-DXaT7So9.mjs +1 -0
- package/dist/add.mjs +4 -0
- package/dist/analyze-a11y-DSQGGQW0.mjs +1 -0
- package/dist/analyze-a11y.mjs +2 -0
- package/dist/bin.mjs +9 -0
- package/dist/build-C5SQ7omP.mjs +1 -0
- package/dist/build.mjs +2 -0
- package/dist/completions-bash-config.mjs +6 -0
- package/dist/completions-bash-script.mjs +6 -0
- package/dist/completions-fish-config.mjs +6 -0
- package/dist/completions-fish-script.mjs +6 -0
- package/dist/completions-powershell-config.mjs +6 -0
- package/dist/completions-powershell-script.mjs +6 -0
- package/dist/completions-zsh-config.mjs +6 -0
- package/dist/completions-zsh-script.mjs +6 -0
- package/dist/components-CL5K9O-8.mjs +10 -0
- package/dist/config-4Rgq0kBY.mjs +1 -0
- package/dist/config-CcLxKgqv.mjs +1 -0
- package/dist/config-D4XQ3gm9.mjs +1 -0
- package/dist/config-DYtzUnW1.mjs +1 -0
- package/dist/config-DiyybDxS.mjs +1 -0
- package/dist/console-wWDh21MV.mjs +20 -0
- package/dist/create-tokens-BkSmDzsb.mjs +1 -0
- package/dist/create-tokens.mjs +2 -0
- package/dist/design-system-C6qKXe7_.mjs +1 -0
- package/dist/diff-BENt04nS.mjs +1 -0
- package/dist/diff.mjs +2 -0
- package/dist/docs-CV-tOshm.mjs +1 -0
- package/dist/docs.mjs +4 -0
- package/dist/guidelines-CaUBc0wB.mjs +1 -0
- package/dist/guidelines.mjs +2 -0
- package/dist/help.mjs +2 -0
- package/dist/info-Vg-ZDW4H.mjs +1 -0
- package/dist/info.mjs +2 -0
- package/dist/init-CTw6TmcL.mjs +1 -0
- package/dist/init.mjs +2 -0
- package/dist/list-components-CI9b0sg9.mjs +1 -0
- package/dist/list-components.mjs +2 -0
- package/dist/list-fonts-CtGQHoE_.mjs +1 -0
- package/dist/list-fonts.mjs +2 -0
- package/dist/list-icons-BNwuGwSr.mjs +1 -0
- package/dist/list-icons.mjs +2 -0
- package/dist/list-tokens-BSwZsUam.mjs +1 -0
- package/dist/list-tokens.mjs +2 -0
- package/dist/local-registry-pqsOERYj.mjs +1 -0
- package/dist/mcp-DleN2BRI.mjs +1 -0
- package/dist/mcp.mjs +48 -0
- package/dist/plan-BiklQTti.mjs +1 -0
- package/dist/plan.mjs +2 -0
- package/dist/prompts-zyeiNLLd.mjs +8 -0
- package/dist/registry-Bsa1pzvl.mjs +1 -0
- package/dist/registry-C95vaVW8.mjs +1 -0
- package/dist/registry-validate.mjs +2 -0
- package/dist/script-C089wQdt.mjs +1 -0
- package/dist/script-CIEAixHe.mjs +1 -0
- package/dist/script-CPF-jk49.mjs +1 -0
- package/dist/script-DUM1UD8_.mjs +1 -0
- package/dist/search-C78IX7wC.mjs +1 -0
- package/dist/search-components-Cv1FVd2d.mjs +1 -0
- package/dist/search-components.mjs +3 -0
- package/dist/search-fonts-S-_oxo-_.mjs +1 -0
- package/dist/search-fonts.mjs +3 -0
- package/dist/search-icons-9B6-pV_m.mjs +1 -0
- package/dist/search-icons.mjs +3 -0
- package/dist/search-tokens-ChSh44BL.mjs +1 -0
- package/dist/search-tokens.mjs +3 -0
- package/dist/search.mjs +3 -0
- package/dist/shared-BHWQIq8h.mjs +216 -0
- package/dist/shared-BgKqmf2q.mjs +103 -0
- package/dist/shared-Bs-4ebiC.mjs +249 -0
- package/dist/shared-DgLETJ0V.mjs +235 -0
- package/dist/update-BP6PyX8m.mjs +1 -0
- package/dist/update-DcG9HWj8.mjs +1 -0
- package/dist/update.mjs +2 -0
- package/dist/validate-BhYpRUOH.mjs +1 -0
- package/dist/view-DLb3I50K.mjs +1 -0
- package/dist/view.mjs +3 -0
- package/package.json +99 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,D as t,M as n,S as r,_ as i,f as a,h as o,p as s,t as c,u as l,x as u}from"./console-wWDh21MV.mjs";function d(){t(c(r.heading.secondary(`Common Options:`))),u([[{value:r.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:r.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:r.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:r.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.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:r.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.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:r.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.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:r.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:r.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.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:r.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:r.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:r.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:r.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.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`}]]),t(``),t(r.body.tertiary(`The following commands are available through the Cyclone User Interface command-line interface:`)),t(``),t(r.heading.primary((n?` ➕ `:``)+`${e(`Add`)}`)),t(``),t(r.body.tertiary(i(`Adds a new component to the project.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`add`)} ${r.usage.args(`<components...>`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`add`)} ${r.usage.options(`[options]`)} ${r.usage.args(`<components...>`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Options:`)),{padding:0}),u([[{value:r.body.primary(`--all`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Add every available component.`),align:`left`,border:`none`}],[{value:r.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:r.body.primary(`--diff`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Show the changes as a diff without writing files.`),align:`left`,border:`none`}],[{value:r.body.primary(`--dry-run`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Preview changes without writing files.`),align:`left`,border:`none`}],[{value:r.body.primary(`--overwrite`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Overwrite existing files.`),align:`left`,border:`none`}],[{value:r.body.primary(`--path <path>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Override the configured component output path.`),align:`left`,border:`none`}],[{value:r.body.primary(`--registry <registry>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Override the configured registry API URL.`),align:`left`,border:`none`}],[{value:r.body.primary(`--silent`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Mute non-essential output.`),align:`left`,border:`none`}],[{value:r.body.primary(`--view`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Show resolved file contents without writing files.`),align:`left`,border:`none`}]]),t(``),t(r.heading.primary((n?` ♿ `:``)+`${e(`Analyze Accessibility`)} - ${r.tags.designSystem?r.tags.designSystem(s(` Design System `)):r.tags.default(s(` Design System `))} ${r.tags.accessibility?r.tags.accessibility(s(` Accessibility `)):r.tags.default(s(` Accessibility `))}`)),t(``),t(r.body.tertiary(i(`Analyze a React/JSX source string (or file) for likely accessibility issues and hard-coded colors, suggesting the nearest design tokens for each color.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`analyze-a11y`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Options:`)),{padding:0}),u([[{value:r.body.primary(`--code <code>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Source code of a React component or JSX snippet to analyze.`),align:`left`,border:`none`}],[{value:r.body.primary(`--component-name <component_name>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Optional label for the component under review.`),align:`left`,border:`none`}],[{value:r.body.primary(`--context <context>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Optional usage context (for example "in a form" or "modal").`),align:`left`,border:`none`}],[{value:r.body.primary(`--file <file>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Path to a source file to analyze (alternative to --code).`),align:`left`,border:`none`}],[{value:r.body.primary(`--pattern-analysis`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Run regex-based heuristics (unlabeled buttons, missing alt, …) (default: true).`),align:`left`,border:`none`}]]),t(``),t(r.heading.primary((n?` 🏗 `:``)+`${e(`Build Registry`)}`)),t(``),t(r.body.tertiary(i(`Build registry item JSON files for distribution.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`build`)} ${r.usage.args(`<registry>`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`build`)} ${r.usage.options(`[options]`)} ${r.usage.args(`<registry>`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Options:`)),{padding:0}),u([[{value:r.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:r.body.primary(`--output <output>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Output directory.`),align:`left`,border:`none`}]]),t(``),t(r.heading.primary((n?` 🏗 `:``)+`${e(`Create Tokens`)}`)),t(``),t(r.body.tertiary(i(`Generate a Tamagui config file from design tokens.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`create-tokens`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Options:`)),{padding:0}),u([[{value:r.body.primary(`--config <config>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Path to the Razorwind configuration file.`),align:`left`,border:`none`}],[{value:r.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:r.body.primary(`--output <output>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Output path for the generated Tamagui config.`),align:`left`,border:`none`}],[{value:r.body.primary(`--tokens <tokens>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary("Design token source path or glob (overrides the configured `tokensPath`)."),align:`left`,border:`none`}]]),t(``),t(r.heading.primary((n?` ± `:``)+`${e(`Diff Components`)}`)),t(``),t(r.body.tertiary(i(`Compare installed components with the registry.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`diff`)} ${r.usage.args(`<components...>`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`diff`)} ${r.usage.options(`[options]`)} ${r.usage.args(`<components...>`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Options:`)),{padding:0}),u([[{value:r.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:r.body.primary(`--registry <registry>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Registry API URL.`),align:`left`,border:`none`}]]),t(``),t(r.heading.primary((n?` 🕮 `:``)+`${e(`Component Documentation`)}`)),t(``),t(r.body.tertiary(i(`Get documentation links for registry components.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`docs`)} ${r.usage.args(`<components...>`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`docs`)} ${r.usage.options(`[options]`)} ${r.usage.args(`<components...>`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Options:`)),{padding:0}),u([[{value:r.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:r.body.primary(`--json`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Output machine-readable JSON.`),align:`left`,border:`none`}],[{value:r.body.primary(`--registry <registry>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Registry API URL.`),align:`left`,border:`none`}]]),t(``),t(r.heading.primary((n?` 📖 `:``)+`${e(`Guidelines`)} - ${r.tags.designSystem?r.tags.designSystem(s(` Design System `)):r.tags.default(s(` Design System `))} ${r.tags.docs?r.tags.docs(s(` Docs `)):r.tags.default(s(` Docs `))}`)),t(``),t(r.body.tertiary(i(`Return design-system guidelines as Markdown: an overview of the token groups, one section per component (with usage examples), typography, the design-system style guidelines, and any bundled guideline documents. Pass --terms to search; omit for the full set.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`guidelines`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Options:`)),{padding:0}),u([[{value:r.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Maximum matches per term when searching (default: 1).`),align:`left`,border:`none`}],[{value:r.body.primary(`--terms <terms...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Search terms matched against guideline keywords, titles and body (fuzzy).`),align:`left`,border:`none`}]]),t(``),t(r.heading.primary((n?` ⓘ `:``)+`${e(`Project Information`)}`)),t(``),t(r.body.tertiary(i(`Show Cyclone UI project configuration and installed components.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`info`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Options:`)),{padding:0}),u([[{value:r.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:r.body.primary(`--json`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Output machine-readable JSON.`),align:`left`,border:`none`}]]),t(``),t(r.heading.primary((n?` 🌀 `:``)+`${e(`Initialize`)}`)),t(``),t(r.body.tertiary(i(`Initialize Cyclone UI in a project.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`init`)} ${r.usage.args(`<components...>`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`init`)} ${r.usage.options(`[options]`)} ${r.usage.args(`<components...>`)}`),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`create`)} ${r.usage.args(`<components...>`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`create`)} ${r.usage.options(`[options]`)} ${r.usage.args(`<components...>`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Options:`)),{padding:0}),u([[{value:r.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:r.body.primary(`--force`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Overwrite an existing Cyclone configuration.`),align:`left`,border:`none`}],[{value:r.body.primary(`--path <path>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Component output path, relative to the working directory.`),align:`left`,border:`none`}],[{value:r.body.primary(`--registry <registry>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Registry API URL.`),align:`left`,border:`none`}],[{value:r.body.primary(`--silent`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Mute non-essential output.`),align:`left`,border:`none`}]]),t(``),t(r.heading.primary((n?` 🧩 `:``)+`${e(`List Components`)} - ${r.tags.designSystem?r.tags.designSystem(s(` Design System `)):r.tags.default(s(` Design System `))} ${r.tags.components?r.tags.components(s(` Components `)):r.tags.default(s(` Components `))}`)),t(``),t(r.body.tertiary(i(`Return every design-system component record. Large output - prefer search-components for normal use.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`list-components`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(``),t(r.heading.primary((n?` 🔤 `:``)+`${e(`List Fonts`)} - ${r.tags.designSystem?r.tags.designSystem(s(` Design System `)):r.tags.default(s(` Design System `))} ${r.tags.fonts?r.tags.fonts(s(` Fonts `)):r.tags.default(s(` Fonts `))}`)),t(``),t(r.body.tertiary(i(`Return every design-system font record.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`list-fonts`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(``),t(r.heading.primary((n?` 🖼 `:``)+`${e(`List Icons`)} - ${r.tags.designSystem?r.tags.designSystem(s(` Design System `)):r.tags.default(s(` Design System `))} ${r.tags.icons?r.tags.icons(s(` Icons `)):r.tags.default(s(` Icons `))}`)),t(``),t(r.body.tertiary(i(`Return every design-system icon record. Large output - prefer search-icons for normal use.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`list-icons`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(``),t(r.heading.primary((n?` 🎨 `:``)+`${e(`List Tokens`)} - ${r.tags.designSystem?r.tags.designSystem(s(` Design System `)):r.tags.default(s(` Design System `))} ${r.tags.tokens?r.tags.tokens(s(` Tokens `)):r.tags.default(s(` Tokens `))}`)),t(``),t(r.body.tertiary(i(`Return every design token (name, value, type, description, CSS variable). Large output - prefer search-tokens for normal use.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`list-tokens`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(``),t(r.heading.primary((n?` 🗺 `:``)+`${e(`Plan`)} - ${r.tags.designSystem?r.tags.designSystem(s(` Design System `)):r.tags.default(s(` Design System `))}`)),t(``),t(r.body.tertiary(i(`Search tokens, icons, components and fonts in one call to plan what to build. Provide terms for at least one list.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`plan`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Options:`)),{padding:0}),u([[{value:r.body.primary(`--components <components...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Search terms for components.`),align:`left`,border:`none`}],[{value:r.body.primary(`--fonts <fonts...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Search terms for fonts.`),align:`left`,border:`none`}],[{value:r.body.primary(`--icons <icons...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Search terms for icons.`),align:`left`,border:`none`}],[{value:r.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Maximum matches per term for each list (default: 2).`),align:`left`,border:`none`}],[{value:r.body.primary(`--tokens <tokens...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Search terms for design tokens.`),align:`left`,border:`none`}]]),t(``),t(r.heading.primary(`${e(`Registry Commands`)}`)),t(``),t(r.body.tertiary(i(`A collection of available Registry commands that are included in the Cyclone User Interface command-line application.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`registry`)} ${r.usage.dynamic(`<command>`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Commands:`)),{padding:0}),u([[{value:r.body.primary(`validate`),align:`right`,border:`none`},{value:r.body.tertiary(`Validate a local registry manifest and its source files.`),align:`left`,border:`none`}]]),t(``),t(r.heading.primary((n?` ⌕ `:``)+`${e(`Search Registry`)}`)),t(``),t(r.body.tertiary(i(`Search components in the Cyclone registry.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`search`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`list`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Options:`)),{padding:0}),u([[{value:r.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:r.body.primary(`--json`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Output machine-readable JSON.`),align:`left`,border:`none`}],[{value:r.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Maximum number of results.`),align:`left`,border:`none`}],[{value:r.body.primary(`--offset <offset>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Number of results to skip.`),align:`left`,border:`none`}],[{value:r.body.primary(`--query <query>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Text to match against names, descriptions, and tags.`),align:`left`,border:`none`}],[{value:r.body.primary(`--registry <registry>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Registry API URL.`),align:`left`,border:`none`}]]),t(``),t(r.heading.primary((n?` 🧩 `:``)+`${e(`Search Components`)} - ${r.tags.designSystem?r.tags.designSystem(s(` Design System `)):r.tags.default(s(` Design System `))} ${r.tags.components?r.tags.components(s(` Components `)):r.tags.default(s(` Components `))}`)),t(``),t(r.body.tertiary(i(`Search design-system components by name, title, category, description and tags. Returns name, files, dependencies and usage examples for each match.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`search-components`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Options:`)),{padding:0}),u([[{value:r.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Maximum matches per term (default: 2).`),align:`left`,border:`none`}],[{value:r.body.primary(`--terms <terms...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`One or more search terms (fuzzy match).`),align:`left`,border:`none`}]]),t(``),t(r.heading.primary((n?` 🔤 `:``)+`${e(`Search Fonts`)} - ${r.tags.designSystem?r.tags.designSystem(s(` Design System `)):r.tags.default(s(` Design System `))} ${r.tags.fonts?r.tags.fonts(s(` Fonts `)):r.tags.default(s(` Fonts `))}`)),t(``),t(r.body.tertiary(i(`Search design-system fonts by name, family, role, tags and category. Returns the CSS font-family stack, weights and files for each match.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`search-fonts`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Options:`)),{padding:0}),u([[{value:r.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Maximum matches per term (default: 2).`),align:`left`,border:`none`}],[{value:r.body.primary(`--terms <terms...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`One or more search terms (fuzzy match).`),align:`left`,border:`none`}]]),t(``),t(r.heading.primary((n?` 🖼 `:``)+`${e(`Search Icons`)} - ${r.tags.designSystem?r.tags.designSystem(s(` Design System `)):r.tags.default(s(` Design System `))} ${r.tags.icons?r.tags.icons(s(` Icons `)):r.tags.default(s(` Icons `))}`)),t(``),t(r.body.tertiary(i(`Search design-system icons by name, title, aliases, tags and category. Returns name and asset files for each match.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`search-icons`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Options:`)),{padding:0}),u([[{value:r.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Maximum matches per term (default: 2).`),align:`left`,border:`none`}],[{value:r.body.primary(`--terms <terms...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`One or more search terms (fuzzy match).`),align:`left`,border:`none`}]]),t(``),t(r.heading.primary((n?` 🎨 `:``)+`${e(`Search Tokens`)} - ${r.tags.designSystem?r.tags.designSystem(s(` Design System `)):r.tags.default(s(` Design System `))} ${r.tags.tokens?r.tags.tokens(s(` Tokens `)):r.tags.default(s(` Tokens `))}`)),t(``),t(r.body.tertiary(i(`Search design tokens by name, path, description, type and value. Returns compact JSON records with name and value for each match; set --include-metadata for descriptions and CSS variables.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`search-tokens`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Options:`)),{padding:0}),u([[{value:r.body.primary(`--include-metadata`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Include type, description, hex value and CSS variable in each result (default: false).`),align:`left`,border:`none`}],[{value:r.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Maximum matches per term (default: 2).`),align:`left`,border:`none`}],[{value:r.body.primary(`--terms <terms...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`One or more search terms (fuzzy match). Example: ["spacing", "color.`),align:`left`,border:`none`}]]),t(``),t(r.heading.primary((n?` ◉ `:``)+`${e(`View Registry Components`)}`)),t(``),t(r.body.tertiary(i(`View component metadata and files from the registry.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`view`)} ${r.usage.args(`<components...>`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`view`)} ${r.usage.options(`[options]`)} ${r.usage.args(`<components...>`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Options:`)),{padding:0}),u([[{value:r.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`The working directory.`),align:`left`,border:`none`}],[{value:r.body.primary(`--registry <registry>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Registry API URL.`),align:`left`,border:`none`}]]),t(``),t(r.heading.primary((n?` 🖵 `:``)+`${e(`Completions`)} - ${r.tags.utility?r.tags.utility(s(` Utility `)):r.tags.default(s(` Utility `))}`)),t(``),t(r.body.tertiary(i(`Commands for generating shell completion scripts for Cyclone User Interface.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`completions`)} ${r.usage.dynamic(`<command>`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Commands:`)),{padding:0}),u([[{value:r.body.primary(`bash`),align:`right`,border:`none`},{value:r.body.tertiary(`Commands to setup bash completions for the Cyclone User Interface command-line interface.`),align:`left`,border:`none`}],[{value:r.body.primary(`fish`),align:`right`,border:`none`},{value:r.body.tertiary(`Commands to setup Fish completions for the Cyclone User Interface command-line interface.`),align:`left`,border:`none`}],[{value:r.body.primary(`powershell`),align:`right`,border:`none`},{value:r.body.tertiary(`Commands to setup PowerShell completions for the Cyclone User Interface command-line interface.`),align:`left`,border:`none`}],[{value:r.body.primary(`zsh`),align:`right`,border:`none`},{value:r.body.tertiary(`Commands to setup Zsh completions for the Cyclone User Interface command-line interface.`),align:`left`,border:`none`}]]),t(``),t(r.heading.primary((n?` 🛈 `:``)+`${e(`Help`)} - ${r.tags.utility?r.tags.utility(s(` Utility `)):r.tags.default(s(` Utility `))}`)),t(``),t(r.body.tertiary(i(`Display command usage details and other useful information to the user.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`help`)} ${r.usage.args(`<commands...>`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`help`)} ${r.usage.options(`[options]`)} ${r.usage.args(`<commands...>`)}`),{padding:0}),t(``),t(r.heading.primary((n?` 🔌 `:``)+`${e(`MCP Server`)} - ${r.tags.ai?r.tags.ai(s(` AI `)):r.tags.default(s(` AI `))} ${r.tags.utility?r.tags.utility(s(` Utility `)):r.tags.default(s(` Utility `))} ${r.tags.mcp?r.tags.mcp(s(` MCP `)):r.tags.default(s(` MCP `))}`)),t(``),t(r.body.tertiary(i(`Starts an MCP stdio server that exposes this Shell Shock application's commands as tools.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`mcp`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Options:`)),{padding:0}),u([[{value:r.body.primary(`--include-self`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Whether to expose the MCP command itself as a tool in the generated server (default: false).`),align:`left`,border:`none`}]]),t(``),t(r.heading.primary((n?` 🖒 `:``)+`${e(`Update`)} - ${r.tags.utility?r.tags.utility(s(` Utility `)):r.tags.default(s(` Utility `))}`)),t(``),t(r.body.tertiary(i(`A command for checking and updating the version of the Cyclone User Interface command-line interface application.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`update`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`upgrade`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Options:`)),{padding:0}),u([[{value:r.body.primary(`--latest`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Whether to update to the latest version (default: false).`),align:`left`,border:`none`}],[{value:r.body.primary(`--version <version>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`A specific application version to update to (default: "latest").`),align:`left`,border:`none`}]]),t(``),t(r.body.tertiary(`More information can be found in the Cyclone User Interface documentation at ${o(`https://docs.cyclone-ui.com/reference/cli`)}${r.body.tertiary(`.`)}`),{padding:0}),t(``),l(`Running a specific command with the help flag (via: ${a(`cyclone-ui <command> --help`)}) or the help command with the specific command as arguments (via: ${a(`cyclone-ui help <command>`)}) will provide additional information that is specific to that command.`),t(``)}function f(){t(`${c(r.heading.secondary(`Tags: `))} ${r.tags.utility?r.tags.utility(s(` Utility `)):r.tags.default(s(` Utility `))}`,{padding:0}),t(c(r.heading.secondary(`Common Options:`))),u([]),t(``),t(r.body.tertiary(`The following commands are available through the Cyclone User Interface command-line interface:`)),t(``),t(r.heading.primary((n?` 🖵 `:``)+`${e(`Completions - Bash`)} - ${r.tags.utility?r.tags.utility(s(` Utility `)):r.tags.default(s(` Utility `))}`)),t(``),t(r.body.tertiary(i(`Commands to setup bash completions for the Cyclone User Interface command-line interface.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`completions`)} ${r.usage.command(`bash`)} ${r.usage.dynamic(`<command>`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Commands:`)),{padding:0}),u([[{value:r.body.primary(`config`),align:`right`,border:`none`},{value:r.body.tertiary(`Update the current system's bash shell configuration to include completions for the Cyclone User Interface command-line interface.`),align:`left`,border:`none`}],[{value:r.body.primary(`script`),align:`right`,border:`none`},{value:r.body.tertiary(`Generate a bash completion script for the Cyclone User Interface command-line interface.`),align:`left`,border:`none`}]]),t(``),t(r.heading.primary((n?` 🖵 `:``)+`${e(`Completions - Fish`)} - ${r.tags.utility?r.tags.utility(s(` Utility `)):r.tags.default(s(` Utility `))}`)),t(``),t(r.body.tertiary(i(`Commands to setup Fish completions for the Cyclone User Interface command-line interface.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`completions`)} ${r.usage.command(`fish`)} ${r.usage.dynamic(`<command>`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Commands:`)),{padding:0}),u([[{value:r.body.primary(`config`),align:`right`,border:`none`},{value:r.body.tertiary(`Update the current system's Fish shell configuration to include completions for the Cyclone User Interface command-line interface.`),align:`left`,border:`none`}],[{value:r.body.primary(`script`),align:`right`,border:`none`},{value:r.body.tertiary(`Generate a Fish completion script for the Cyclone User Interface command-line interface.`),align:`left`,border:`none`}]]),t(``),t(r.heading.primary((n?` 🖵 `:``)+`${e(`Completions - PowerShell`)} - ${r.tags.utility?r.tags.utility(s(` Utility `)):r.tags.default(s(` Utility `))}`)),t(``),t(r.body.tertiary(i(`Commands to setup PowerShell completions for the Cyclone User Interface command-line interface.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`completions`)} ${r.usage.command(`powershell`)} ${r.usage.dynamic(`<command>`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Commands:`)),{padding:0}),u([[{value:r.body.primary(`config`),align:`right`,border:`none`},{value:r.body.tertiary(`Update the current system's PowerShell configuration to include completions for the Cyclone User Interface command-line interface.`),align:`left`,border:`none`}],[{value:r.body.primary(`script`),align:`right`,border:`none`},{value:r.body.tertiary(`Generate a PowerShell completion script for the Cyclone User Interface command-line interface.`),align:`left`,border:`none`}]]),t(``),t(r.heading.primary((n?` 🖵 `:``)+`${e(`Completions - Zsh`)} - ${r.tags.utility?r.tags.utility(s(` Utility `)):r.tags.default(s(` Utility `))}`)),t(``),t(r.body.tertiary(i(`Commands to setup Zsh completions for the Cyclone User Interface command-line interface.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`completions`)} ${r.usage.command(`zsh`)} ${r.usage.dynamic(`<command>`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Commands:`)),{padding:0}),u([[{value:r.body.primary(`config`),align:`right`,border:`none`},{value:r.body.tertiary(`Update the current system's Zsh shell configuration to include completions for the Cyclone User Interface command-line interface.`),align:`left`,border:`none`}],[{value:r.body.primary(`script`),align:`right`,border:`none`},{value:r.body.tertiary(`Generate a Zsh completion script for the Cyclone User Interface command-line interface.`),align:`left`,border:`none`}]]),t(``),t(r.body.tertiary(`More information can be found in the Completions command documentation at ${o(`https://docs.cyclone-ui.com/reference/cli/completions`)}${r.body.tertiary(`.`)}`),{padding:0}),t(``),l(`Running a specific command with the help flag (via: ${a(`cyclone-ui completions <command> --help`)}) or the help command with the specific command as arguments (via: ${a(`cyclone-ui completions help <command>`)}) will provide additional information that is specific to that command.`),t(``)}function p(){t(`${c(r.heading.secondary(`Tags: `))} ${r.tags.utility?r.tags.utility(s(` Utility `)):r.tags.default(s(` Utility `))}`,{padding:0}),t(c(r.heading.secondary(`Common Options:`))),u([]),t(``),t(r.body.tertiary(`The following commands are available through the Cyclone User Interface command-line interface:`)),t(``),t(r.heading.primary((n?` 🖵 `:``)+`${e(`Completions - Bash Configuration`)} - ${r.tags.utility?r.tags.utility(s(` Utility `)):r.tags.default(s(` Utility `))}`)),t(``),t(r.body.tertiary(i(`Update the current system's bash shell configuration to include completions for the Cyclone User Interface command-line interface.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`completions`)} ${r.usage.command(`bash`)} ${r.usage.command(`config`)} ${r.usage.args(`<path>`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`completions`)} ${r.usage.command(`bash`)} ${r.usage.command(`config`)} ${r.usage.options(`[options]`)} ${r.usage.args(`<path>`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Options:`)),{padding:0}),u([[{value:r.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Should the generated completion script be written to console output instead of an actual file on disk? (default: false).`),align:`left`,border:`none`}]]),t(``),t(r.heading.primary((n?` 🖵 `:``)+`${e(`Completions - Bash Script`)} - ${r.tags.utility?r.tags.utility(s(` Utility `)):r.tags.default(s(` Utility `))}`)),t(``),t(r.body.tertiary(i(`Generate a bash completion script for the Cyclone User Interface command-line interface.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`completions`)} ${r.usage.command(`bash`)} ${r.usage.command(`script`)} ${r.usage.args(`<path>`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`completions`)} ${r.usage.command(`bash`)} ${r.usage.command(`script`)} ${r.usage.options(`[options]`)} ${r.usage.args(`<path>`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Options:`)),{padding:0}),u([[{value:r.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Should the generated completion script be written to console output instead of an actual file on disk? (default: false).`),align:`left`,border:`none`}]]),t(``),t(r.body.tertiary(`More information can be found in the Completions - Bash command documentation at ${o(`https://docs.cyclone-ui.com/reference/cli/completions/bash`)}${r.body.tertiary(`.`)}`),{padding:0}),t(``),l(`Running a specific command with the help flag (via: ${a(`cyclone-ui completions bash <command> --help`)}) or the help command with the specific command as arguments (via: ${a(`cyclone-ui completions bash help <command>`)}) will provide additional information that is specific to that command.`),t(``)}function m(){t(`${c(r.heading.secondary(`Tags: `))} ${r.tags.utility?r.tags.utility(s(` Utility `)):r.tags.default(s(` Utility `))}`,{padding:0}),t(c(r.heading.secondary(`Common Options:`))),u([]),t(``),t(r.body.tertiary(`The following commands are available through the Cyclone User Interface command-line interface:`)),t(``),t(r.heading.primary((n?` 🖵 `:``)+`${e(`Completions - Fish Configuration`)} - ${r.tags.utility?r.tags.utility(s(` Utility `)):r.tags.default(s(` Utility `))}`)),t(``),t(r.body.tertiary(i(`Update the current system's Fish shell configuration to include completions for the Cyclone User Interface command-line interface.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`completions`)} ${r.usage.command(`fish`)} ${r.usage.command(`config`)} ${r.usage.args(`<path>`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`completions`)} ${r.usage.command(`fish`)} ${r.usage.command(`config`)} ${r.usage.options(`[options]`)} ${r.usage.args(`<path>`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Options:`)),{padding:0}),u([[{value:r.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Should the generated completion script be written to console output instead of an actual file on disk? (default: false).`),align:`left`,border:`none`}]]),t(``),t(r.heading.primary((n?` 🖵 `:``)+`${e(`Completions - Fish Script`)} - ${r.tags.utility?r.tags.utility(s(` Utility `)):r.tags.default(s(` Utility `))}`)),t(``),t(r.body.tertiary(i(`Generate a Fish completion script for the Cyclone User Interface command-line interface.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`completions`)} ${r.usage.command(`fish`)} ${r.usage.command(`script`)} ${r.usage.args(`<path>`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`completions`)} ${r.usage.command(`fish`)} ${r.usage.command(`script`)} ${r.usage.options(`[options]`)} ${r.usage.args(`<path>`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Options:`)),{padding:0}),u([[{value:r.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Should the generated completion script be written to console output instead of an actual file on disk? (default: false).`),align:`left`,border:`none`}]]),t(``),t(r.body.tertiary(`More information can be found in the Completions - Fish command documentation at ${o(`https://docs.cyclone-ui.com/reference/cli/completions/fish`)}${r.body.tertiary(`.`)}`),{padding:0}),t(``),l(`Running a specific command with the help flag (via: ${a(`cyclone-ui completions fish <command> --help`)}) or the help command with the specific command as arguments (via: ${a(`cyclone-ui completions fish help <command>`)}) will provide additional information that is specific to that command.`),t(``)}function h(){t(`${c(r.heading.secondary(`Tags: `))} ${r.tags.utility?r.tags.utility(s(` Utility `)):r.tags.default(s(` Utility `))}`,{padding:0}),t(c(r.heading.secondary(`Common Options:`))),u([]),t(``),t(r.body.tertiary(`The following commands are available through the Cyclone User Interface command-line interface:`)),t(``),t(r.heading.primary((n?` 🖵 `:``)+`${e(`Completions - PowerShell Configuration`)} - ${r.tags.utility?r.tags.utility(s(` Utility `)):r.tags.default(s(` Utility `))}`)),t(``),t(r.body.tertiary(i(`Update the current system's PowerShell configuration to include completions for the Cyclone User Interface command-line interface.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`completions`)} ${r.usage.command(`powershell`)} ${r.usage.command(`config`)} ${r.usage.args(`<path>`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`completions`)} ${r.usage.command(`powershell`)} ${r.usage.command(`config`)} ${r.usage.options(`[options]`)} ${r.usage.args(`<path>`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Options:`)),{padding:0}),u([[{value:r.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Should the generated completion script be written to console output instead of an actual file on disk? (default: false).`),align:`left`,border:`none`}]]),t(``),t(r.heading.primary((n?` 🖵 `:``)+`${e(`Completions - PowerShell Script`)} - ${r.tags.utility?r.tags.utility(s(` Utility `)):r.tags.default(s(` Utility `))}`)),t(``),t(r.body.tertiary(i(`Generate a PowerShell completion script for the Cyclone User Interface command-line interface.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`completions`)} ${r.usage.command(`powershell`)} ${r.usage.command(`script`)} ${r.usage.args(`<path>`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`completions`)} ${r.usage.command(`powershell`)} ${r.usage.command(`script`)} ${r.usage.options(`[options]`)} ${r.usage.args(`<path>`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Options:`)),{padding:0}),u([[{value:r.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Should the generated completion script be written to console output instead of an actual file on disk? (default: false).`),align:`left`,border:`none`}]]),t(``),t(r.body.tertiary(`More information can be found in the Completions - PowerShell command documentation at ${o(`https://docs.cyclone-ui.com/reference/cli/completions/powershell`)}${r.body.tertiary(`.`)}`),{padding:0}),t(``),l(`Running a specific command with the help flag (via: ${a(`cyclone-ui completions powershell <command> --help`)}) or the help command with the specific command as arguments (via: ${a(`cyclone-ui completions powershell help <command>`)}) will provide additional information that is specific to that command.`),t(``)}function g(){t(`${c(r.heading.secondary(`Tags: `))} ${r.tags.utility?r.tags.utility(s(` Utility `)):r.tags.default(s(` Utility `))}`,{padding:0}),t(c(r.heading.secondary(`Common Options:`))),u([]),t(``),t(r.body.tertiary(`The following commands are available through the Cyclone User Interface command-line interface:`)),t(``),t(r.heading.primary((n?` 🖵 `:``)+`${e(`Completions - Zsh Configuration`)} - ${r.tags.utility?r.tags.utility(s(` Utility `)):r.tags.default(s(` Utility `))}`)),t(``),t(r.body.tertiary(i(`Update the current system's Zsh shell configuration to include completions for the Cyclone User Interface command-line interface.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`completions`)} ${r.usage.command(`zsh`)} ${r.usage.command(`config`)} ${r.usage.args(`<path>`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`completions`)} ${r.usage.command(`zsh`)} ${r.usage.command(`config`)} ${r.usage.options(`[options]`)} ${r.usage.args(`<path>`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Options:`)),{padding:0}),u([[{value:r.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Should the generated completion script be written to console output instead of an actual file on disk? (default: false).`),align:`left`,border:`none`}]]),t(``),t(r.heading.primary((n?` 🖵 `:``)+`${e(`Completions - Zsh Script`)} - ${r.tags.utility?r.tags.utility(s(` Utility `)):r.tags.default(s(` Utility `))}`)),t(``),t(r.body.tertiary(i(`Generate a Zsh completion script for the Cyclone User Interface command-line interface.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`completions`)} ${r.usage.command(`zsh`)} ${r.usage.command(`script`)} ${r.usage.args(`<path>`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`completions`)} ${r.usage.command(`zsh`)} ${r.usage.command(`script`)} ${r.usage.options(`[options]`)} ${r.usage.args(`<path>`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Options:`)),{padding:0}),u([[{value:r.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Should the generated completion script be written to console output instead of an actual file on disk? (default: false).`),align:`left`,border:`none`}]]),t(``),t(r.body.tertiary(`More information can be found in the Completions - Zsh command documentation at ${o(`https://docs.cyclone-ui.com/reference/cli/completions/zsh`)}${r.body.tertiary(`.`)}`),{padding:0}),t(``),l(`Running a specific command with the help flag (via: ${a(`cyclone-ui completions zsh <command> --help`)}) or the help command with the specific command as arguments (via: ${a(`cyclone-ui completions zsh help <command>`)}) will provide additional information that is specific to that command.`),t(``)}function _(){t(c(r.heading.secondary(`Common Options:`))),u([]),t(``),t(r.body.tertiary(`The following commands are available through the Cyclone User Interface command-line interface:`)),t(``),t(r.heading.primary((n?` ✓ `:``)+`${e(`Validate Registry`)}`)),t(``),t(r.body.tertiary(i(`Validate a local registry manifest and its source files.`))),t(``),t(c(r.heading.secondary(`Usage:`)),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`registry`)} ${r.usage.command(`validate`)} ${r.usage.args(`<registry>`)} ${r.usage.options(`[options]`)}`),{padding:0}),t(r.body.secondary(`${r.usage.bin(`>_ cyclone-ui`)} ${r.usage.command(`registry`)} ${r.usage.command(`validate`)} ${r.usage.options(`[options]`)} ${r.usage.args(`<registry>`)}`),{padding:0}),t(``),t(c(r.heading.secondary(`Options:`)),{padding:0}),u([[{value:r.body.primary(`--cwd <cwd>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`The working directory.`),align:`left`,border:`none`}]]),t(``),t(r.body.tertiary(`More information can be found in the Registry Commands command documentation at ${o(`https://docs.cyclone-ui.com/reference/cli/registry`)}${r.body.tertiary(`.`)}`),{padding:0}),t(``),l(`Running a specific command with the help flag (via: ${a(`cyclone-ui registry <command> --help`)}) or the help command with the specific command as arguments (via: ${a(`cyclone-ui registry help <command>`)}) will provide additional information that is specific to that command.`),t(``)}export{p as a,m as i,g as n,f as o,h as r,d as s,_ as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createRegistryClient as e}from"@cyclone-ui/registry-api/client";function t(t){try{return e(new URL(t).toString().replace(/\/$/,``))}catch{throw Error(`Invalid registry URL: ${t}`)}}function n(e){return e.replace(/^@cyclone-ui\//,``)}export{t as n,n 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,b as p,j as m,k as h,n as g,t as _,y as v,z as y}from"./console-wWDh21MV.mjs";import{a as b}from"./prompts-zyeiNLLd.mjs";import{t as x}from"./update-BP6PyX8m.mjs";import{n as S}from"./local-registry-pqsOERYj.mjs";import{t as C}from"./validate-BhYpRUOH.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.1`))+` `+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-32,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(`Validate Registry`).length+2))/2),0))+_(l.banner.command.primary(`Validate Registry`))+` `.repeat(Math.max(Math.ceil((h().columns-(v(`Validate Registry`).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),f(_(l.banner.description.primary(`Validate a local registry manifest and its source files.`)),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,t=`registry.json`){let n=w(e.cwd??process.cwd()),r=await S(w(n,t));p(`Registry is valid (${r.items.length} items).`)}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(/("|')$/,``)))}let c=Math.max(0,e.slice(3).findIndex(e=>e.startsWith(`-`)&&/^(cwd)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+3,f=c>3?3:Math.max(0,e.slice(c).findLastIndex(e=>e.startsWith(`-`)&&/^(cwd)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+3,p=`registry.json`;return f+0<e.length&&f+0!==c&&(p=e[f+0]),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(`registry/validate`,[`registry`,`validate`],[t,p],E)}export{D as handler};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as e,S as t,h as n,p as r,t as i,x as a}from"./console-wWDh21MV.mjs";function o(){e(`${i(t.heading.secondary(`Tags: `))} ${t.tags.utility?t.tags.utility(r(` Utility `)):t.tags.default(r(` Utility `))}`,{padding:0}),e(``),e(i(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`completions`)} ${t.usage.command(`bash`)} ${t.usage.command(`script`)} ${t.usage.args(`<path>`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`completions`)} ${t.usage.command(`bash`)} ${t.usage.command(`script`)} ${t.usage.options(`[options]`)} ${t.usage.args(`<path>`)}`),{padding:0}),e(``),e(i(t.heading.secondary(`Options:`))),a([[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Should the generated completion script be written to console output instead of an actual file on disk? (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),e(``),e(t.body.tertiary(`More information can be found in the Completions - Bash Script command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/completions/bash/script`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as e,S as t,h as n,p as r,t as i,x as a}from"./console-wWDh21MV.mjs";function o(){e(`${i(t.heading.secondary(`Tags: `))} ${t.tags.utility?t.tags.utility(r(` Utility `)):t.tags.default(r(` Utility `))}`,{padding:0}),e(``),e(i(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`completions`)} ${t.usage.command(`powershell`)} ${t.usage.command(`script`)} ${t.usage.args(`<path>`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`completions`)} ${t.usage.command(`powershell`)} ${t.usage.command(`script`)} ${t.usage.options(`[options]`)} ${t.usage.args(`<path>`)}`),{padding:0}),e(``),e(i(t.heading.secondary(`Options:`))),a([[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Should the generated completion script be written to console output instead of an actual file on disk? (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),e(``),e(t.body.tertiary(`More information can be found in the Completions - PowerShell Script command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/completions/powershell/script`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as e,S as t,h as n,p as r,t as i,x as a}from"./console-wWDh21MV.mjs";function o(){e(`${i(t.heading.secondary(`Tags: `))} ${t.tags.utility?t.tags.utility(r(` Utility `)):t.tags.default(r(` Utility `))}`,{padding:0}),e(``),e(i(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`completions`)} ${t.usage.command(`zsh`)} ${t.usage.command(`script`)} ${t.usage.args(`<path>`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`completions`)} ${t.usage.command(`zsh`)} ${t.usage.command(`script`)} ${t.usage.options(`[options]`)} ${t.usage.args(`<path>`)}`),{padding:0}),e(``),e(i(t.heading.secondary(`Options:`))),a([[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Should the generated completion script be written to console output instead of an actual file on disk? (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),e(``),e(t.body.tertiary(`More information can be found in the Completions - Zsh Script command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/completions/zsh/script`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as e,S as t,h as n,p as r,t as i,x as a}from"./console-wWDh21MV.mjs";function o(){e(`${i(t.heading.secondary(`Tags: `))} ${t.tags.utility?t.tags.utility(r(` Utility `)):t.tags.default(r(` Utility `))}`,{padding:0}),e(``),e(i(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`completions`)} ${t.usage.command(`fish`)} ${t.usage.command(`script`)} ${t.usage.args(`<path>`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`completions`)} ${t.usage.command(`fish`)} ${t.usage.command(`script`)} ${t.usage.options(`[options]`)} ${t.usage.args(`<path>`)}`),{padding:0}),e(``),e(i(t.heading.secondary(`Options:`))),a([[{value:t.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force colored terminal output (env: CYCLONE_UI_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Should the generated completion script be written to console output instead of an actual file on disk? (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: CYCLONE_UI_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Force disable colored terminal output (env: CYCLONE_UI_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: CYCLONE_UI_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),e(``),e(t.body.tertiary(`More information can be found in the Completions - Fish Script command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/completions/fish/script`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as e,S as t,h as n,t as r,x as i}from"./console-wWDh21MV.mjs";function a(){e(``),e(r(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`search`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`list`)} ${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(`--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(`--json`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Output machine-readable JSON.`),align:`left`,border:`none`}],[{value:t.body.primary(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Maximum number of results.`),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(`--offset <offset>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Number of results to skip.`),align:`left`,border:`none`}],[{value:t.body.primary(`--query <query>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Text to match against names, descriptions, and tags.`),align:`left`,border:`none`}],[{value:t.body.primary(`--quiet`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Suppress command decorations and diagnostic messages (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`--registry <registry>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Registry API URL.`),align:`left`,border:`none`}],[{value:t.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Enable verbose output (env: CYCLONE_UI_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:t.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: CYCLONE_UI_YES, default: false).`),align:`left`,border:`none`}]]),e(``),e(t.body.tertiary(`More information can be found in the Search Registry command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/search`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{a as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as e,S as t,h as n,p as r,t as i,x as a}from"./console-wWDh21MV.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.components?t.tags.components(r(` Components `)):t.tags.default(r(` Components `))}`,{padding:0}),e(``),e(i(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`search-components`)} ${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(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Maximum matches per term (default: 2).`),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(`--terms <terms...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`One or more search terms (fuzzy match).`),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 Search Components command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/search-components`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{o as t};
|
|
@@ -0,0 +1,3 @@
|
|
|
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,c as p,j as m,k as h,m as g,n as _,t as v,y,z as b}from"./console-wWDh21MV.mjs";import{a as x,r as S,t as C}from"./prompts-zyeiNLLd.mjs";import{t as w}from"./update-BP6PyX8m.mjs";import{t as T}from"./design-system-C6qKXe7_.mjs";import{t as E}from"./search-components-Cv1FVd2d.mjs";import{isSearchError as D,searchComponents as O}from"@razorwind/shell-shock/runtime";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(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+v(l.banner.header.primary(`Cyclone CLI v0.6.1`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(h().columns-32,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...x.map(e=>y(e).length))>Math.max(h().columns+30,20)?`Cyclone User Interface`:`\n${x.join(`
|
|
2
|
+
`)}\n`;f(o,Math.max(h().columns-30,20)).forEach(e=>{n(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(y(e).length+2))/2),0))+v(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((h().columns-(y(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(y(`Search Components`).length+2))/2),0))+v(l.banner.command.primary(`Search Components`))+` `.repeat(Math.max(Math.ceil((h().columns-(y(`Search Components`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),f(v(l.banner.description.primary(`Search design-system components by name, title, category, description and tags. Returns name, files, dependencies and usage examples for each match.`)),Math.max(60>h().columns/2?h().columns-6:h().columns-30,20)).forEach(e=>{n(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(y(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((h().columns-(y(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(h().columns-2,0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),n(_.banner.outline.primary(`┗`)+_.banner.outline.primary(`━`.repeat(Math.max(h().columns-32,0)))+` `+v(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+_.banner.outline.primary(`━`.repeat(6))+_.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}function A(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function j(e){let t=O(T,{terms:e.terms??[],limit:e.limit});A(t),D(t)&&(process.exitCode=1)}async function M(t=s()){let c={...b(),terms:[],limit:2};for(let e=0;e<t.slice(0).length;e++){let n=t[e].length>3&&t[e].startsWith(`--`)?`--${t[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:t[e].length>2&&t[e].startsWith(`-`)?`-${t[e].slice(1).replaceAll(`-`,``)}`:t[e];if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`terms=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`terms`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`terms=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`terms`)c.terms??=[],/^--?(terms)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?c.terms.push(...n.replace(/^--?(terms)=/,``).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)):t.length>e+1&&c.terms.push(...t[++e].split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean));else if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`){if(/^--?(limit)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=Number(n.replace(/^--?(limit)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(e)||(c.limit=e)}else if(t.length>e+1){let n=Number(t[++e].trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(n)||(c.limit=n)}}}if(r(`quiet`)||(await k(),await w()),!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.`))),!e){let e=[];c.terms?c.terms.length===0&&e.push(`No values were provided to the required "terms" array option`):e.push(`Missing required "terms" option`),c.limit&&Number.isNaN(c.limit)&&e.push(`Invalid numeric value provided for the "limit" option`)}else if(!a()&&(!c.terms||c.terms.length===0)){if(n(``),!c.terms){let e=await S({message:`Please provide a value for the ${g(`terms`)} option`,description:`One or more search terms (fuzzy match). Example: ["button", "modal", "select"].`,validate(e){return!e||e.trim()===``?`A value must be provided for this option`:null}});if(C(e))return;c.terms=e}else if(c.terms.length===0){let e=await S({message:`Please provide one or more values for the ${g(`terms`)} option (values are separated by a \",\" character)`,description:`One or more search terms (fuzzy match). Example: ["button", "modal", "select"].`,validate(e){if(!e||e.trim()===``)return`A value must be provided for this option`;if(e.split(`,`).map(e=>e.trim()).filter(Boolean).length===0)return`At least one value must be provided for this option`}});if(C(e))return;c.terms=e.split(`,`).map(e=>e.trim()).filter(Boolean)}n(``);let e=[];c.terms?c.terms.length===0&&e.push(`No values were provided to the required "terms" array option`):e.push(`Missing required "terms" option`),c.limit&&Number.isNaN(c.limit)&&e.push(`Invalid numeric value provided for the "limit" option`),e.length>0&&(p(`The following validation failures were found while processing the user provided input, and must be corrected before the ${g(`Search Components`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
|
|
3
|
+
`)}`),c.help=!0)}return c.help?E():d(`search-components`,[`search-components`],[c],j)}export{M as handler};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as e,S as t,h as n,p as r,t as i,x as a}from"./console-wWDh21MV.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.fonts?t.tags.fonts(r(` Fonts `)):t.tags.default(r(` Fonts `))}`,{padding:0}),e(``),e(i(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`search-fonts`)} ${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(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Maximum matches per term (default: 2).`),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(`--terms <terms...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`One or more search terms (fuzzy match).`),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 Search Fonts command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/search-fonts`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{o as t};
|
|
@@ -0,0 +1,3 @@
|
|
|
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,c as p,j as m,k as h,m as g,n as _,t as v,y,z as b}from"./console-wWDh21MV.mjs";import{a as x,r as S,t as C}from"./prompts-zyeiNLLd.mjs";import{t as w}from"./update-BP6PyX8m.mjs";import{t as T}from"./design-system-C6qKXe7_.mjs";import{t as E}from"./search-fonts-S-_oxo-_.mjs";import{isSearchError as D,searchFonts as O}from"@razorwind/shell-shock/runtime";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(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+v(l.banner.header.primary(`Cyclone CLI v0.6.1`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(h().columns-32,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...x.map(e=>y(e).length))>Math.max(h().columns+30,20)?`Cyclone User Interface`:`\n${x.join(`
|
|
2
|
+
`)}\n`;f(o,Math.max(h().columns-30,20)).forEach(e=>{n(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(y(e).length+2))/2),0))+v(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((h().columns-(y(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(y(`Search Fonts`).length+2))/2),0))+v(l.banner.command.primary(`Search Fonts`))+` `.repeat(Math.max(Math.ceil((h().columns-(y(`Search Fonts`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),f(v(l.banner.description.primary(`Search design-system fonts by name, family, role, tags and category. Returns the CSS font-family stack, weights and files for each match.`)),Math.max(60>h().columns/2?h().columns-6:h().columns-30,20)).forEach(e=>{n(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(y(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((h().columns-(y(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(h().columns-2,0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),n(_.banner.outline.primary(`┗`)+_.banner.outline.primary(`━`.repeat(Math.max(h().columns-32,0)))+` `+v(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+_.banner.outline.primary(`━`.repeat(6))+_.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}function A(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function j(e){let t=O(T,{terms:e.terms??[],limit:e.limit});A(t),D(t)&&(process.exitCode=1)}async function M(t=s()){let c={...b(),terms:[],limit:2};for(let e=0;e<t.slice(0).length;e++){let n=t[e].length>3&&t[e].startsWith(`--`)?`--${t[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:t[e].length>2&&t[e].startsWith(`-`)?`-${t[e].slice(1).replaceAll(`-`,``)}`:t[e];if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`terms=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`terms`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`terms=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`terms`)c.terms??=[],/^--?(terms)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?c.terms.push(...n.replace(/^--?(terms)=/,``).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)):t.length>e+1&&c.terms.push(...t[++e].split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean));else if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`){if(/^--?(limit)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=Number(n.replace(/^--?(limit)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(e)||(c.limit=e)}else if(t.length>e+1){let n=Number(t[++e].trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(n)||(c.limit=n)}}}if(r(`quiet`)||(await k(),await w()),!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.`))),!e){let e=[];c.terms?c.terms.length===0&&e.push(`No values were provided to the required "terms" array option`):e.push(`Missing required "terms" option`),c.limit&&Number.isNaN(c.limit)&&e.push(`Invalid numeric value provided for the "limit" option`)}else if(!a()&&(!c.terms||c.terms.length===0)){if(n(``),!c.terms){let e=await S({message:`Please provide a value for the ${g(`terms`)} option`,description:`One or more search terms (fuzzy match). Example: ["heading", "mono", "inter"].`,validate(e){return!e||e.trim()===``?`A value must be provided for this option`:null}});if(C(e))return;c.terms=e}else if(c.terms.length===0){let e=await S({message:`Please provide one or more values for the ${g(`terms`)} option (values are separated by a \",\" character)`,description:`One or more search terms (fuzzy match). Example: ["heading", "mono", "inter"].`,validate(e){if(!e||e.trim()===``)return`A value must be provided for this option`;if(e.split(`,`).map(e=>e.trim()).filter(Boolean).length===0)return`At least one value must be provided for this option`}});if(C(e))return;c.terms=e.split(`,`).map(e=>e.trim()).filter(Boolean)}n(``);let e=[];c.terms?c.terms.length===0&&e.push(`No values were provided to the required "terms" array option`):e.push(`Missing required "terms" option`),c.limit&&Number.isNaN(c.limit)&&e.push(`Invalid numeric value provided for the "limit" option`),e.length>0&&(p(`The following validation failures were found while processing the user provided input, and must be corrected before the ${g(`Search Fonts`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
|
|
3
|
+
`)}`),c.help=!0)}return c.help?E():d(`search-fonts`,[`search-fonts`],[c],j)}export{M as handler};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as e,S as t,h as n,p as r,t as i,x as a}from"./console-wWDh21MV.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.icons?t.tags.icons(r(` Icons `)):t.tags.default(r(` Icons `))}`,{padding:0}),e(``),e(i(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`search-icons`)} ${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(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Maximum matches per term (default: 2).`),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(`--terms <terms...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`One or more search terms (fuzzy match).`),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 Search Icons command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/search-icons`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{o as t};
|
|
@@ -0,0 +1,3 @@
|
|
|
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,c as p,j as m,k as h,m as g,n as _,t as v,y,z as b}from"./console-wWDh21MV.mjs";import{a as x,r as S,t as C}from"./prompts-zyeiNLLd.mjs";import{t as w}from"./update-BP6PyX8m.mjs";import{t as T}from"./design-system-C6qKXe7_.mjs";import{t as E}from"./search-icons-9B6-pV_m.mjs";import{isSearchError as D,searchIcons as O}from"@razorwind/shell-shock/runtime";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(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+v(l.banner.header.primary(`Cyclone CLI v0.6.1`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(h().columns-32,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...x.map(e=>y(e).length))>Math.max(h().columns+30,20)?`Cyclone User Interface`:`\n${x.join(`
|
|
2
|
+
`)}\n`;f(o,Math.max(h().columns-30,20)).forEach(e=>{n(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(y(e).length+2))/2),0))+v(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((h().columns-(y(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(y(`Search Icons`).length+2))/2),0))+v(l.banner.command.primary(`Search Icons`))+` `.repeat(Math.max(Math.ceil((h().columns-(y(`Search Icons`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),f(v(l.banner.description.primary(`Search design-system icons by name, title, aliases, tags and category. Returns name and asset files for each match.`)),Math.max(60>h().columns/2?h().columns-6:h().columns-30,20)).forEach(e=>{n(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(y(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((h().columns-(y(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(h().columns-2,0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),n(_.banner.outline.primary(`┗`)+_.banner.outline.primary(`━`.repeat(Math.max(h().columns-32,0)))+` `+v(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+_.banner.outline.primary(`━`.repeat(6))+_.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}function A(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function j(e){let t=O(T,{terms:e.terms??[],limit:e.limit});A(t),D(t)&&(process.exitCode=1)}async function M(t=s()){let c={...b(),terms:[],limit:2};for(let e=0;e<t.slice(0).length;e++){let n=t[e].length>3&&t[e].startsWith(`--`)?`--${t[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:t[e].length>2&&t[e].startsWith(`-`)?`-${t[e].slice(1).replaceAll(`-`,``)}`:t[e];if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`terms=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`terms`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`terms=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`terms`)c.terms??=[],/^--?(terms)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?c.terms.push(...n.replace(/^--?(terms)=/,``).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)):t.length>e+1&&c.terms.push(...t[++e].split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean));else if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`){if(/^--?(limit)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=Number(n.replace(/^--?(limit)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(e)||(c.limit=e)}else if(t.length>e+1){let n=Number(t[++e].trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(n)||(c.limit=n)}}}if(r(`quiet`)||(await k(),await w()),!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.`))),!e){let e=[];c.terms?c.terms.length===0&&e.push(`No values were provided to the required "terms" array option`):e.push(`Missing required "terms" option`),c.limit&&Number.isNaN(c.limit)&&e.push(`Invalid numeric value provided for the "limit" option`)}else if(!a()&&(!c.terms||c.terms.length===0)){if(n(``),!c.terms){let e=await S({message:`Please provide a value for the ${g(`terms`)} option`,description:`One or more search terms (fuzzy match). Example: ["search", "folder", "user"].`,validate(e){return!e||e.trim()===``?`A value must be provided for this option`:null}});if(C(e))return;c.terms=e}else if(c.terms.length===0){let e=await S({message:`Please provide one or more values for the ${g(`terms`)} option (values are separated by a \",\" character)`,description:`One or more search terms (fuzzy match). Example: ["search", "folder", "user"].`,validate(e){if(!e||e.trim()===``)return`A value must be provided for this option`;if(e.split(`,`).map(e=>e.trim()).filter(Boolean).length===0)return`At least one value must be provided for this option`}});if(C(e))return;c.terms=e.split(`,`).map(e=>e.trim()).filter(Boolean)}n(``);let e=[];c.terms?c.terms.length===0&&e.push(`No values were provided to the required "terms" array option`):e.push(`Missing required "terms" option`),c.limit&&Number.isNaN(c.limit)&&e.push(`Invalid numeric value provided for the "limit" option`),e.length>0&&(p(`The following validation failures were found while processing the user provided input, and must be corrected before the ${g(`Search Icons`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
|
|
3
|
+
`)}`),c.help=!0)}return c.help?E():d(`search-icons`,[`search-icons`],[c],j)}export{M as handler};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as e,S as t,h as n,p as r,t as i,x as a}from"./console-wWDh21MV.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.tokens?t.tags.tokens(r(` Tokens `)):t.tags.default(r(` Tokens `))}`,{padding:0}),e(``),e(i(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`>_ cyclone-ui`)} ${t.usage.command(`search-tokens`)} ${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(`--include-metadata`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Include type, description, hex value and CSS variable in each result (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(`--limit <limit>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`Maximum matches per term (default: 2).`),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(`--terms <terms...>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:t.body.tertiary(`One or more search terms (fuzzy match). Example: ["spacing", "color.`),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 Search Tokens command documentation at ${n(`https://docs.cyclone-ui.com/reference/cli/search-tokens`)}${t.body.tertiary(`.`)}`),{padding:0}),e(``)}export{o as t};
|
|
@@ -0,0 +1,3 @@
|
|
|
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,c as p,j as m,k as h,m as g,n as _,t as v,y,z as b}from"./console-wWDh21MV.mjs";import{a as x,r as S,t as C}from"./prompts-zyeiNLLd.mjs";import{t as w}from"./update-BP6PyX8m.mjs";import{t as T}from"./search-tokens-ChSh44BL.mjs";import{t as E}from"./design-system-C6qKXe7_.mjs";import{isSearchError as D,searchTokens as O}from"@razorwind/shell-shock/runtime";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(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+v(l.banner.header.primary(`Cyclone CLI v0.6.1`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(h().columns-32,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log});let o=Math.max(...x.map(e=>y(e).length))>Math.max(h().columns+30,20)?`Cyclone User Interface`:`\n${x.join(`
|
|
2
|
+
`)}\n`;f(o,Math.max(h().columns-30,20)).forEach(e=>{n(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(y(e).length+2))/2),0))+v(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((h().columns-(y(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(y(`Search Tokens`).length+2))/2),0))+v(l.banner.command.primary(`Search Tokens`))+` `.repeat(Math.max(Math.ceil((h().columns-(y(`Search Tokens`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),f(v(l.banner.description.primary(`Search design tokens by name, path, description, type and value. Returns compact JSON records with name and value for each match; set --include-metadata for descriptions and CSS variables.`)),Math.max(60>h().columns/2?h().columns-6:h().columns-30,20)).forEach(e=>{n(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(y(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((h().columns-(y(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(h().columns-2,0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),n(_.banner.outline.primary(`┗`)+_.banner.outline.primary(`━`.repeat(Math.max(h().columns-32,0)))+` `+v(l.banner.footer.primary(`https://cyclone-ui.com`))+` `+_.banner.outline.primary(`━`.repeat(6))+_.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!a()&&await c(i)}function A(e){process.stdout.write(`${typeof e==`string`?e:JSON.stringify(e,null,2)}\n`)}async function j(e){let t=O(E,{terms:e.terms??[],limit:e.limit,includeMetadata:e.includeMetadata});A(t),D(t)&&(process.exitCode=1)}async function M(t=s()){let c={...b(),terms:[],limit:2,includeMetadata:!1};for(let e=0;e<t.slice(0).length;e++){let n=t[e].length>3&&t[e].startsWith(`--`)?`--${t[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:t[e].length>2&&t[e].startsWith(`-`)?`-${t[e].slice(1).replaceAll(`-`,``)}`:t[e];if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`terms=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`terms`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`terms=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`terms`)c.terms??=[],/^--?(terms)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?c.terms.push(...n.replace(/^--?(terms)=/,``).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)):t.length>e+1&&c.terms.push(...t[++e].split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean));else if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`){if(/^--?(limit)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=Number(n.replace(/^--?(limit)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(e)||(c.limit=e)}else if(t.length>e+1){let n=Number(t[++e].trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(n)||(c.limit=n)}}else if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`includemetadata=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`includemetadata`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`includemetadata=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`includemetadata`){if(/^--?(includemetadata)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=n.replace(/^--?(includemetadata)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();c.includeMetadata=!!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 c.includeMetadata=!0}}if(r(`quiet`)||(await k(),await w()),!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.`))),!e){let e=[];c.terms?c.terms.length===0&&e.push(`No values were provided to the required "terms" array option`):e.push(`Missing required "terms" option`),c.limit&&Number.isNaN(c.limit)&&e.push(`Invalid numeric value provided for the "limit" option`)}else if(!a()&&(!c.terms||c.terms.length===0)){if(n(``),!c.terms){let e=await S({message:`Please provide a value for the ${g(`terms`)} option`,description:`One or more search terms (fuzzy match). Example: ["spacing", "color.text", "background"].`,validate(e){return!e||e.trim()===``?`A value must be provided for this option`:null}});if(C(e))return;c.terms=e}else if(c.terms.length===0){let e=await S({message:`Please provide one or more values for the ${g(`terms`)} option (values are separated by a \",\" character)`,description:`One or more search terms (fuzzy match). Example: ["spacing", "color.text", "background"].`,validate(e){if(!e||e.trim()===``)return`A value must be provided for this option`;if(e.split(`,`).map(e=>e.trim()).filter(Boolean).length===0)return`At least one value must be provided for this option`}});if(C(e))return;c.terms=e.split(`,`).map(e=>e.trim()).filter(Boolean)}n(``);let e=[];c.terms?c.terms.length===0&&e.push(`No values were provided to the required "terms" array option`):e.push(`Missing required "terms" option`),c.limit&&Number.isNaN(c.limit)&&e.push(`Invalid numeric value provided for the "limit" option`),e.length>0&&(p(`The following validation failures were found while processing the user provided input, and must be corrected before the ${g(`Search Tokens`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
|
|
3
|
+
`)}`),c.help=!0)}return c.help?T():d(`search-tokens`,[`search-tokens`],[c],j)}export{M as handler};
|
package/dist/search.mjs
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{A as e,B as t,D as n,E as r,F as i,G as a,I as o,K as s,L as c,N as l,S as u,U as d,V as f,_ as p,j as m,k as h,n as g,t as _,y as v,z as y}from"./console-wWDh21MV.mjs";import{a as b}from"./prompts-zyeiNLLd.mjs";import{t as x}from"./update-BP6PyX8m.mjs";import{i as S}from"./config-D4XQ3gm9.mjs";import{n as C}from"./registry-C95vaVW8.mjs";import{t as w}from"./search-C78IX7wC.mjs";import{resolve as T}from"node:path";import{DEFAULT_REGISTRY_URL as E}from"@cyclone-ui/registry-api/client";import"@shell-shock/core";async function D(r=500){if(t().get(`is-banner-displayed`)||i(`no-banner`)||i(`hide-banner`)||m)return;t().set(`is-banner-displayed`,!0),n(``),n(g.banner.outline.primary(`┏`)+g.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+g.banner.outline.primary(`━`)+` `+_(u.banner.header.primary(`Cyclone CLI v0.6.1`))+` `+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-32,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(`Search Registry`).length+2))/2),0))+_(u.banner.command.primary(`Search Registry`))+` `.repeat(Math.max(Math.ceil((h().columns-(v(`Search Registry`).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),p(_(u.banner.description.primary(`Search components in the Cyclone registry.`)),Math.max(60>h().columns/2?h().columns-6:h().columns-30,20)).forEach(e=>{n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((h().columns-(v(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((h().columns-(v(e).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(h().columns-2,0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),n(g.banner.outline.primary(`┗`)+g.banner.outline.primary(`━`.repeat(Math.max(h().columns-32,0)))+` `+_(u.banner.footer.primary(`https://cyclone-ui.com`))+` `+g.banner.outline.primary(`━`.repeat(6))+g.banner.outline.primary(`┛`),{consoleFn:console.log}),n(``),e&&!o()&&await l(r)}async function O(e){let t=T(e.cwd??process.cwd()),n=await S(t),i=await C(e.registry??n?.registry??E).components.list.query(),a=e.query?.toLowerCase(),o=Math.max(0,e.offset??0),s=Math.max(0,e.limit??100),c=i.filter(e=>!a||[e.name,e.description,...e.tags].join(` `).toLowerCase().includes(a)).slice(o,o+s);r(e.json?JSON.stringify(c,null,2):c.map(e=>`${e.name.padEnd(28)} ${e.version??`-`} ${e.description}`).join(`
|
|
3
|
+
`))}async function k(t=c()){let r={...y()};for(let e=0;e<t.slice(0).length;e++){let n=t[e].length>3&&t[e].startsWith(`--`)?`--${t[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:t[e].length>2&&t[e].startsWith(`-`)?`-${t[e].slice(1).replaceAll(`-`,``)}`:t[e];if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`cwd=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`cwd`)/^--?(cwd)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?r.cwd=n.replace(/^--?(cwd)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):t.length>e+1&&(r.cwd=t[++e].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`query=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`query`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`query=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`query`)/^--?(query)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?r.query=n.replace(/^--?(query)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):t.length>e+1&&(r.query=t[++e].trim().replace(/^("|')/,``).replace(/("|')$/,``));else if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`limit=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`limit`){if(/^--?(limit)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=Number(n.replace(/^--?(limit)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(e)||(r.limit=e)}else if(t.length>e+1){let n=Number(t[++e].trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(n)||(r.limit=n)}}else if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`offset=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`offset`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`offset=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`offset`){if(/^--?(offset)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=Number(n.replace(/^--?(offset)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(e)||(r.offset=e)}else if(t.length>e+1){let n=Number(t[++e].trim().replace(/^("|')/,``).replace(/("|')$/,``));Number.isNaN(n)||(r.offset=n)}}else if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`json=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`json`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`json=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`json`){if(/^--?(json)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=n.replace(/^--?(json)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();r.json=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else r.json=!0}else(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`registry=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`registry=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`registry`)&&(/^--?(registry)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?r.registry=n.replace(/^--?(registry)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):t.length>e+1&&(r.registry=t[++e].trim().replace(/^("|')/,``).replace(/("|')$/,``)))}if(i(`quiet`)||(await D(),await x()),!o()&&!i(`quiet`)&&(n(``),(s||a||d.LOG_LEVEL===`debug`)&&n(u.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!e){let e=[];r.limit&&Number.isNaN(r.limit)&&e.push(`Invalid numeric value provided for the "limit" option`),r.offset&&Number.isNaN(r.offset)&&e.push(`Invalid numeric value provided for the "offset" option`)}return r.help?w():f(`search`,[`search`],[r],O)}export{k as handler};
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import{bold as e,cyan as t,cyanBright as n,dim as r,gray as i,green as a,greenBright as o,magenta as s,magentaBright as c,red as l,redBright as u,white as d}from"node:console";const f=`__cyclone_ui_debug() {
|
|
2
|
+
local file="$BASH_COMP_DEBUG_FILE"
|
|
3
|
+
if [[ -n \${file} ]]; then
|
|
4
|
+
echo "$*" >> "\${file}"
|
|
5
|
+
fi
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
_cyclone_ui() {
|
|
9
|
+
local shellCompDirectiveError=1
|
|
10
|
+
local shellCompDirectiveNoSpace=2
|
|
11
|
+
local shellCompDirectiveNoFileComp=4
|
|
12
|
+
local shellCompDirectiveFilterFileExt=8
|
|
13
|
+
local shellCompDirectiveFilterDirs=16
|
|
14
|
+
local shellCompDirectiveKeepOrder=32
|
|
15
|
+
|
|
16
|
+
local lastParam lastChar flagPrefix requestComp out directive comp lastComp noSpace keepOrder
|
|
17
|
+
local -a completions
|
|
18
|
+
|
|
19
|
+
__cyclone_ui_debug "
|
|
20
|
+
========= starting completion logic =========="
|
|
21
|
+
__cyclone_ui_debug "CURRENT: \${CURRENT}, words[*]: \${words[*]}"
|
|
22
|
+
|
|
23
|
+
# The user could have moved the cursor backwards on the command-line.
|
|
24
|
+
# We need to trigger completion from the $CURRENT location, so we need
|
|
25
|
+
# to truncate the command-line ($words) up to the $CURRENT location.
|
|
26
|
+
# (We cannot use $CURSOR as its value does not work when a command is an alias.)
|
|
27
|
+
words=( "\${=words[1,CURRENT]}" )
|
|
28
|
+
__cyclone_ui_debug "Truncated words[*]: \${words[*]},"
|
|
29
|
+
|
|
30
|
+
lastParam=\${words[-1]}
|
|
31
|
+
lastChar=\${lastParam[-1]}
|
|
32
|
+
__cyclone_ui_debug "lastParam: \${lastParam}, lastChar: \${lastChar}"
|
|
33
|
+
# For zsh, when completing a flag with an = (e.g., cyclone-ui -n=<TAB>)
|
|
34
|
+
# completions must be prefixed with the flag
|
|
35
|
+
setopt local_options BASH_REMATCH
|
|
36
|
+
if [[ "\${lastParam}" =~ '-.*=' ]]; then
|
|
37
|
+
# We are dealing with a flag with an =
|
|
38
|
+
flagPrefix="-P \${BASH_REMATCH}"
|
|
39
|
+
fi
|
|
40
|
+
|
|
41
|
+
# Prepare the command to obtain completions, ensuring arguments are quoted for eval
|
|
42
|
+
local -a args_to_quote=("\${(@)words[2,-1]}")
|
|
43
|
+
if [ "\${lastChar}" = "" ]; then
|
|
44
|
+
# If the last parameter is complete (there is a space following it)
|
|
45
|
+
# We add an extra empty parameter so we can indicate this to the go completion code.
|
|
46
|
+
__cyclone_ui_debug "Adding extra empty parameter"
|
|
47
|
+
args_to_quote+=("")
|
|
48
|
+
fi
|
|
49
|
+
|
|
50
|
+
# Use Zsh's (q) flag to quote each argument safely for eval
|
|
51
|
+
local quoted_args=("\${(@q)args_to_quote}")
|
|
52
|
+
|
|
53
|
+
# Join the main command and the quoted arguments into a single string for eval
|
|
54
|
+
requestComp="/nix/store/vhmrk3hh4nkaw62xmcl22961g64sn443-nodejs-slim-26.8.2/bin/node /home/runner/work/cyclone-ui/cyclone-ui/node_modules/.pnpm/nx@23.1.1_@swc-node+register@1.11.1_@swc+core@1.15.41_@swc+helpers@0.5.23__@swc+types@0_583c0237aac68dfd0de00ada7cc6c6ec/node_modules/nx/dist/bin/run-executor.js complete -- \${quoted_args[*]}"
|
|
55
|
+
|
|
56
|
+
__cyclone_ui_debug "About to call: eval \${requestComp}"
|
|
57
|
+
|
|
58
|
+
# Use eval to handle any environment variables and such
|
|
59
|
+
out=$(eval \${requestComp} 2>/dev/null)
|
|
60
|
+
__cyclone_ui_debug "completion output: \${out}"
|
|
61
|
+
|
|
62
|
+
# Extract the directive integer following a : from the last line
|
|
63
|
+
local lastLine
|
|
64
|
+
while IFS='
|
|
65
|
+
' read -r line; do
|
|
66
|
+
lastLine=\${line}
|
|
67
|
+
done < <(printf "%s
|
|
68
|
+
" "\${out[@]}")
|
|
69
|
+
__cyclone_ui_debug "last line: \${lastLine}"
|
|
70
|
+
|
|
71
|
+
if [ "\${lastLine[1]}" = : ]; then
|
|
72
|
+
directive=\${lastLine[2,-1]}
|
|
73
|
+
# Remove the directive including the : and the newline
|
|
74
|
+
local suffix
|
|
75
|
+
(( suffix=\${#lastLine}+2))
|
|
76
|
+
out=\${out[1,-$suffix]}
|
|
77
|
+
else
|
|
78
|
+
# There is no directive specified. Leave $out as is.
|
|
79
|
+
__cyclone_ui_debug "No directive found. Setting to default"
|
|
80
|
+
directive=0
|
|
81
|
+
fi
|
|
82
|
+
|
|
83
|
+
__cyclone_ui_debug "directive: \${directive}"
|
|
84
|
+
__cyclone_ui_debug "completions: \${out}"
|
|
85
|
+
__cyclone_ui_debug "flagPrefix: \${flagPrefix}"
|
|
86
|
+
|
|
87
|
+
if [ $((directive & shellCompDirectiveError)) -ne 0 ]; then
|
|
88
|
+
__cyclone_ui_debug "Completion received error. Ignoring completions."
|
|
89
|
+
return
|
|
90
|
+
fi
|
|
91
|
+
|
|
92
|
+
local activeHelpMarker="%"
|
|
93
|
+
local endIndex=\${#activeHelpMarker}
|
|
94
|
+
local startIndex=$((\${#activeHelpMarker}+1))
|
|
95
|
+
local hasActiveHelp=0
|
|
96
|
+
while IFS='
|
|
97
|
+
' read -r comp; do
|
|
98
|
+
# Check if this is an activeHelp statement (i.e., prefixed with $activeHelpMarker)
|
|
99
|
+
if [ "\${comp[1,$endIndex]}" = "$activeHelpMarker" ];then
|
|
100
|
+
__cyclone_ui_debug "ActiveHelp found: $comp"
|
|
101
|
+
comp="\${comp[$startIndex,-1]}"
|
|
102
|
+
if [ -n "$comp" ]; then
|
|
103
|
+
compadd -x "\${comp}"
|
|
104
|
+
__cyclone_ui_debug "ActiveHelp will need delimiter"
|
|
105
|
+
hasActiveHelp=1
|
|
106
|
+
fi
|
|
107
|
+
continue
|
|
108
|
+
fi
|
|
109
|
+
|
|
110
|
+
if [ -n "$comp" ]; then
|
|
111
|
+
# If requested, completions are returned with a description.
|
|
112
|
+
# The description is preceded by a TAB character.
|
|
113
|
+
# For zsh's _describe, we need to use a : instead of a TAB.
|
|
114
|
+
# We first need to escape any : as part of the completion itself.
|
|
115
|
+
comp=\${comp//:/:}
|
|
116
|
+
|
|
117
|
+
local tab="$(printf ' ')"
|
|
118
|
+
comp=\${comp//$tab/:}
|
|
119
|
+
|
|
120
|
+
__cyclone_ui_debug "Adding completion: \${comp}"
|
|
121
|
+
completions+=\${comp}
|
|
122
|
+
lastComp=$comp
|
|
123
|
+
fi
|
|
124
|
+
done < <(printf "%s
|
|
125
|
+
" "\${out[@]}")
|
|
126
|
+
|
|
127
|
+
# Add a delimiter after the activeHelp statements, but only if:
|
|
128
|
+
# - there are completions following the activeHelp statements, or
|
|
129
|
+
# - file completion will be performed (so there will be choices after the activeHelp)
|
|
130
|
+
if [ $hasActiveHelp -eq 1 ]; then
|
|
131
|
+
if [ \${#completions} -ne 0 ] || [ $((directive & shellCompDirectiveNoFileComp)) -eq 0 ]; then
|
|
132
|
+
__cyclone_ui_debug "Adding activeHelp delimiter"
|
|
133
|
+
compadd -x "--"
|
|
134
|
+
hasActiveHelp=0
|
|
135
|
+
fi
|
|
136
|
+
fi
|
|
137
|
+
|
|
138
|
+
if [ $((directive & shellCompDirectiveNoSpace)) -ne 0 ]; then
|
|
139
|
+
__cyclone_ui_debug "Activating nospace."
|
|
140
|
+
noSpace="-S ''"
|
|
141
|
+
fi
|
|
142
|
+
|
|
143
|
+
if [ $((directive & shellCompDirectiveKeepOrder)) -ne 0 ]; then
|
|
144
|
+
__cyclone_ui_debug "Activating keep order."
|
|
145
|
+
keepOrder="-V"
|
|
146
|
+
fi
|
|
147
|
+
|
|
148
|
+
if [ $((directive & shellCompDirectiveFilterFileExt)) -ne 0 ]; then
|
|
149
|
+
# File extension filtering
|
|
150
|
+
local filteringCmd
|
|
151
|
+
filteringCmd='_files'
|
|
152
|
+
for filter in \${completions[@]}; do
|
|
153
|
+
if [ \${filter[1]} != '*' ]; then
|
|
154
|
+
# zsh requires a glob pattern to do file filtering
|
|
155
|
+
filter="*.$filter"
|
|
156
|
+
fi
|
|
157
|
+
filteringCmd+=" -g $filter"
|
|
158
|
+
done
|
|
159
|
+
filteringCmd+=" \${flagPrefix}"
|
|
160
|
+
|
|
161
|
+
__cyclone_ui_debug "File filtering command: $filteringCmd"
|
|
162
|
+
_arguments '*:filename:'"$filteringCmd"
|
|
163
|
+
elif [ $((directive & shellCompDirectiveFilterDirs)) -ne 0 ]; then
|
|
164
|
+
# File completion for directories only
|
|
165
|
+
local subdir
|
|
166
|
+
subdir="\${completions[1]}"
|
|
167
|
+
if [ -n "$subdir" ]; then
|
|
168
|
+
__cyclone_ui_debug "Listing directories in $subdir"
|
|
169
|
+
pushd "\${subdir}" >/dev/null 2>&1
|
|
170
|
+
else
|
|
171
|
+
__cyclone_ui_debug "Listing directories in ."
|
|
172
|
+
fi
|
|
173
|
+
|
|
174
|
+
local result
|
|
175
|
+
_arguments '*:dirname:_files -/'" \${flagPrefix}"
|
|
176
|
+
result=$?
|
|
177
|
+
if [ -n "$subdir" ]; then
|
|
178
|
+
popd >/dev/null 2>&1
|
|
179
|
+
fi
|
|
180
|
+
return $result
|
|
181
|
+
else
|
|
182
|
+
__cyclone_ui_debug "Calling _describe"
|
|
183
|
+
if eval _describe $keepOrder "completions" completions -Q \${flagPrefix} \${noSpace}; then
|
|
184
|
+
__cyclone_ui_debug "_describe found some completions"
|
|
185
|
+
|
|
186
|
+
# Return the success of having called _describe
|
|
187
|
+
return 0
|
|
188
|
+
else
|
|
189
|
+
__cyclone_ui_debug "_describe did not find completions."
|
|
190
|
+
__cyclone_ui_debug "Checking if we should do file completion."
|
|
191
|
+
if [ $((directive & shellCompDirectiveNoFileComp)) -ne 0 ]; then
|
|
192
|
+
__cyclone_ui_debug "deactivating file completion"
|
|
193
|
+
|
|
194
|
+
# Return 0 to indicate completion is finished and prevent zsh from
|
|
195
|
+
# trying other completion algorithms (which could cause hanging).
|
|
196
|
+
# We use NoFileComp directive to explicitly disable file completion.
|
|
197
|
+
return 0
|
|
198
|
+
else
|
|
199
|
+
# Perform file completion
|
|
200
|
+
__cyclone_ui_debug "Activating file completion"
|
|
201
|
+
|
|
202
|
+
# We must return the result of this command, so it must be the
|
|
203
|
+
# last command, or else we must store its result to return it.
|
|
204
|
+
_arguments '*:filename:_files'" \${flagPrefix}"
|
|
205
|
+
fi
|
|
206
|
+
fi
|
|
207
|
+
fi
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
# don't run the completion function when being sourced or eval-ed
|
|
211
|
+
if [ "\${funcstack[1]}" = "_cyclone_ui" ]; then
|
|
212
|
+
_cyclone_ui
|
|
213
|
+
fi
|
|
214
|
+
`,p=f.split(`
|
|
215
|
+
`).map(f=>f.trim()?f.trim().startsWith(`#`)?`${r(f)}`:d(f).replaceAll(/(?<=\$(\{|\()).*(?=(\}\)))/g,a(`$&`)).replaceAll(/\".*\"/g,t(`$&`)).replaceAll(/(\[|\]|\(|\)|\||<|>|\$\(|\$?\{|\}|\+|=|;|:)/g,e(i(`$&`))).replaceAll(/(readonly|complete)\s+/g,a(`$&`)).replaceAll(/(?<=(readonly|complete)\s+)\w/g,e(o(`$&`))).replaceAll(/local\s+/g,l(`$&`)).replaceAll(/(?<=local\s+)\w/g,e(u(`$&`))).replaceAll(/(for|while)\s+/g,t(`$&`)).replaceAll(/(?<=for|while\s+)\w/g,e(n(`$&`))).replaceAll(/(return|if|fi|else|elif|then|done)\s+/g,a(`$&`)).replaceAll(/__\w/g,e(c(`$&`))).replaceAll(/(?<=\s)(-\w|--\w[\w-]*)(?=\s|$)/g,e(s(`$&`))):``).join(`
|
|
216
|
+
`);export{p as n,f as t};
|