Cronus UI

v0.7.6
io.github.pedrogbraz/cronus-ui Checked 1 day ago Published 2 months ago

Search, install, compose, add-page, and theme Cronus UI from the live registry.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_components List Cronus UI components

List the installable Cronus UI components (registry items of type 'registry:ui'). Returns each component's name, a readable title, its npm and registry dependencies, and the `npx cronus-ui add <name>` command to install it.

list_blocks List Cronus UI blocks

List the installable Cronus UI blocks (registry items of type 'registry:block') — larger, composed sections such as hero, pricing, login, and dashboard. Returns each block's name, title, dependencies, and its `npx cronus-ui add <name>` install command.

list_catalog List the tagged Cronus UI catalog

Return compact Hydra-ready cards for every component, block, variant, and template: name, short description, design style, palette, motion, intents, and the install command. No source files — cheap on tokens. Filter with `kind`. Use `match_catalog` to pick the best item for a prompt (login + smooth animation, etc.).

ParameterTypeDescription
kindstringRestrict to component, block, variant, or template cards.

match_catalog Match Cronus UI catalog tags

Two-query catalog match for low-context agents. Pass a free-text `query` (e.g. 'login page with smooth animation') and/or structured filters (`intent`, `motion`, `style`, `palette`). Returns `pick` (the recommended combination), `intent` hits, `motion` hits, and ranked `matches`. Cards carry description, design style, palette, motion, and intents — not source. Fetch source with `get_component` only after picking a name.

ParameterTypeDescription
intentstringUse-case intent: login, signup, pricing, dashboard, chart, form, …
kindstringRestrict to component, block, variant, or template.
limitintegerMax hits per list. Default 8.
motionstringMotion: none, snappy, smooth, cinematic.
palettestringPalette: semantic (follows theme), aurora, neutral, midnight, sunset, emerald.
querystringNatural-language request, e.g. 'login page with smooth animation'. Intent and motion are inferred from the text when those fields are omitted.
stylestringDesign style: default, editorial, operational, glass, brutalist.

search_registry Search the Cronus UI registry

Fuzzy-search Cronus UI components and blocks by name (case-insensitive substring match). Use this to find the right item before fetching its source with `get_component`.

ParameterTypeDescription
query *stringSearch text matched against component and block names, e.g. 'button' or 'card'.

get_design_context Get Cronus UI DESIGN.md taste

Return the Cronus UI visual taste file (DESIGN.md) for a theme × look. Use this before generating UI so the agent follows Aurora/Neutral dual identity, one primary CTA, hairline elevation, and look rules. compact fits a system prompt; extended is the repo file. Does not modify the project.

ParameterTypeDescription
formatstringcompact (~prompt) or extended (full DESIGN.md). Default extended.
lookstringMaterial: default, brutalist, or glass. Orthogonal to theme.
themestringPalette: aurora (generated product), neutral (docs chrome), midnight, sunset, emerald.

get_component Get a Cronus UI component or block

Fetch the full detail for a single Cronus UI component or block by name: its source file(s) (path + content), its npm `dependencies`, its `registryDependencies` (other registry items it needs), and the `npx cronus-ui add <name>` install command. Works for both components and blocks.

ParameterTypeDescription
name *stringThe exact registry item name, e.g. 'button', 'data-table', or 'pricing'.

get_install_command Build a Cronus UI install command

Build the `npx cronus-ui add ...` command for one or more components/blocks. The CLI resolves and installs each item's registry dependencies automatically. This only returns the command string — to actually install, use `install_component`.

ParameterTypeDescription
names *arrayOne or more registry item names to install, e.g. ['button', 'card', 'dialog'].

install_component Install Cronus UI components into the project

MODIFIES THE FILESYSTEM. Install one or more Cronus UI components/blocks into the current project by running the version-pinned `cronus-ui add` CLI at the detected project root (nearest directory with cronus-ui.json, else package.json). It writes the component source files, pulls in their registry dependencies, and installs their npm packages with the project's package manager. Use this — not a shell command — whenever the user asks to add/install a Cronus UI component or block. Existing files are skipped unless `overwrite` is true (overwrite discards local edits to those files). Requires…

ParameterTypeDescription
names *arrayRegistry item names to install, e.g. ['button', 'card'] or ['pricing']. Registry dependencies are resolved automatically.
overwritebooleanOverwrite files that already exist in the project (destroys local edits to those files). Default: existing files are skipped.
skipInstallbooleanWrite the source files but skip the package-manager install of npm dependencies; the result then lists them as pending.

upgrade_components Upgrade installed Cronus UI components and composed pages

MODIFIES THE FILESYSTEM. Upgrade installed Cronus UI components and composed pages/layouts to the current registry release by running the version-pinned `cronus-ui upgrade` CLI at the detected project root. 3-way merge of installed items AND composed pages/layouts so local edits survive. Prefer this over install_component overwrite and over compose --overwrite. dryRun first is recommended. Defaults to `--all` when `names` is omitted (the usual "pull latest" request). Pass `manifest` for custom compose apps. Requires a project initialised with `npx cronus-ui init`.

ParameterTypeDescription
allbooleanUpgrade every installed component and composed pages/layouts (`--all`). Default when `names` is empty. Set false only when passing `names`.
dryRunbooleanPreview the per-file plan (fast-forward / merge / conflict) without writing.
manifeststringPath to the compose manifest file (`--manifest`). Required when the app was composed from a custom `--manifest` whose name collides with a bundled template (or is not a bundled template).
namesarrayRegistry item names to upgrade, e.g. ['button', 'card']. Omit (and leave `all` unset or true) to upgrade every installed component and composed pages/layouts. Named upgrades do not touch pages.
yesbooleanPass `-y`: write conflict markers and confirmed overwrites without asking. Unlike compose_app, this does not default to true.

apply_theme Apply a Cronus UI theme to the project

MODIFIES THE FILESYSTEM. Apply a theme built in the Cronus UI Create Studio to the current project by running the version-pinned `cronus-ui theme add` CLI at the detected project root. It updates the app layout's theme attributes, writes the theme override block into the global stylesheet (replacing any previous one), and records the theme in cronus-ui.json. Use this when the user provides a Create Studio permalink or an exported theme JSON file and wants it applied. Set `dryRun` to preview the changes without writing anything.

ParameterTypeDescription
source *stringThe theme to apply: a Create Studio permalink URL, a bare `c=` payload, or a path to an exported theme JSON file.
dryRunbooleanPreview what would change without writing any files.

compose_app Compose a Cronus UI app from a template

MODIFIES THE FILESYSTEM. Generate a full multi-page app from a validated Cronus UI template (saas, store, landing, landing-*, mail, chat, finance) by running the version-pinned `cronus-ui compose` CLI at the detected project root. Prefer this over hand-writing pages: it installs the template's blocks, writes route files that only stack those blocks in <main>, and records the app in cronus-ui.json. Use when the user wants a full product, not a single primitive. Set `dryRun` to preview without writing. Requires a project initialised with `npx cronus-ui init` — this does not scaffold a new app…

ParameterTypeDescription
template *stringBundled app template (saas, store, landing, landing-*, mail, chat, finance).
brandstringBrand wordmark baked into chrome/hero. Ignored when empty.
dryRunbooleanPreview the validated plan without writing any files.
overwritebooleanOverwrite files that already exist (`--overwrite`).
skipInstallbooleanWrite the files but skip the package-manager install of npm dependencies.
variantarrayBlock variant selections as slug=id tokens, e.g. ['login=split']. Each becomes `--variant <token>`.
yesbooleanPass `-y` (non-interactive). Defaults to true so agents never hang.

add_page Add a page to a composed Cronus UI app

MODIFIES THE FILESYSTEM. Grow an already-composed app by one page: install the named blocks, write a generated page that stacks them in <main>, and update the chrome nav + composed record. Runs the version-pinned `cronus-ui add-page` CLI at the detected project root. Use after `compose_app` when the user wants a new route. Set `dryRun` to preview without writing. Pass `app` (`--app`) when the project has more than one composed app. Pass `manifest` when the app was composed from a custom `--manifest`.

ParameterTypeDescription
blocks *stringComma-separated block slugs to stack, e.g. 'pricing,cta'. Variant syntax 'login=split' is allowed.
route *stringRoute to add, starting with '/', e.g. '/pricing'.
appstringComposed app key (`--app`). Required when the project has more than one composed app.
chromestringChrome group for the page (default: the app's first group).
dryRunbooleanPreview the plan without writing any files.
manifeststringPath to the compose manifest file (`--manifest`). Required when the app was composed from a custom `--manifest` whose name collides with a bundled template (or is not a bundled template).
navstringNav label; adds the page to the chrome nav.
overwritebooleanReplace the page if the route already exists (`--overwrite`).
skipInstallbooleanWrite the files but skip the package-manager install of npm dependencies.
titlestringPage <title> (default: title-cased route).

set_theme Set the Cronus UI theme preset

MODIFIES THE FILESYSTEM. Switch the baked-in Cronus UI theme preset (and optionally the color mode) by running the version-pinned `cronus-ui theme set` CLI at the detected project root. Use this for aurora / neutral / midnight / sunset / emerald. For Create Studio permalinks or exported JSON, use `apply_theme` instead.

ParameterTypeDescription
name *stringBaked-in preset: 'aurora', 'neutral', 'midnight', 'sunset', or 'emerald'.
modestringColor mode to pin ('dark' or 'light'). Omitting leaves the current mode.