@astryxdesign/cli 0.7.18 → 0.7.19-canary.g8cf5aa3

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.
@@ -255,7 +255,7 @@ const ITEMS: LibraryItem[] = [
255
255
  id: '27',
256
256
  name: 'Skeleton',
257
257
  description:
258
- 'Placeholder shimmer for loading states matching content shapes.',
258
+ 'Pulsing placeholder for loading states matching content shapes.',
259
259
  category: 'Data',
260
260
  type: 'Utility',
261
261
  imageUrl: '/template-assets/moody-lifestyle-horizontal-2.png',
@@ -1 +1 @@
1
- {"id":"c617068220978f9df2ff31835833653d7b151cf6d617a9fd4ee27ded844ece6e"}
1
+ {"id":"a1c122c506b5dda9fcdaccf97ec429492dcebbf6524250dd91cb67e234f90737"}
@@ -1 +1 @@
1
- {"name":"astryx","version":"0.7.18","apiVersion":1,"description":"Design system CLI — components, themes, and tooling\n\nMaking or changing a theme? Read astryx docs author-a-theme.","globalOptions":[{"flag":"-V, --version","description":"output the version number","type":"boolean"},{"flag":"--zh","description":"Simplified Chinese for component reads and for docs topics that have a translation (English otherwise)","type":"boolean"},{"flag":"--dense","description":"Token-efficient dense text for component <Name> and docs <topic> reads","type":"boolean"},{"flag":"--lang <locale>","description":"Language or format for component and docs reads: en (default), zh (as --zh), or dense (as --dense)","type":"enum","choices":["en","zh","dense"]},{"flag":"--detail <level>","description":"Detail level for component, hook, and docs tree reads (e.g. docs cli/commands/build), and for theme build reports. Lists default to brief, and a component read to compact; theme build prints one line per built theme unless full, which adds the install example and font recipe","type":"enum","choices":["full","compact","brief"],"default":"full"},{"flag":"--base <package>","description":"The base library this run reads: @astryxdesign/core, or an installed package whose integration manifest declares base. Default: in an integration package, the base it is or builds on; else the project's Core; else its one installed base; else Core","type":"string"},{"flag":"--json","description":"Output as typed JSON. Success envelope: { apiVersion, type, package?, data, meta? }. Error envelope: { apiVersion, error, code, suggestions? }.","type":"boolean"}],"commands":[{"name":"blog","description":"Read the Astryx blog from the published feed","arguments":[{"name":"slug","required":false,"variadic":false,"description":""}],"options":[],"json":true,"available":true,"responseTypes":["blog.list","blog.detail"],"examples":["astryx blog","astryx blog introducing-astryx --json"],"exitCodes":[{"code":0,"when":"success"},{"code":1,"when":"unknown slug, or the feed or a post cannot be fetched"}],"outsideProject":"same"},{"name":"build","description":"Build a page: the template to start from, or the workflow playbook (no query)","arguments":[{"name":"query","required":false,"variadic":false,"description":""}],"options":[{"flag":"--type <domain>","description":"Filter the kit to one domain (component|hook|doc|template|theme); doc and theme give an empty kit","type":"string","available":true},{"flag":"--limit <n>","description":"Max candidates to draw from (default 60)","type":"string","available":true},{"flag":"--verbose","description":"Verbose output (every block and component, full descriptions, import paths and match reason)","type":"boolean","available":true}],"json":true,"available":true,"responseTypes":["build.help","build.kit"],"examples":["astryx build","astryx build \"analytics dashboard\" --json"],"exitCodes":[{"code":0,"when":"success (including zero matches)"},{"code":1,"when":"invalid --type, a --limit that is not a positive integer, or a query when @astryxdesign/core cannot be found (the playbook needs no core)"}],"outsideProject":"same"},{"name":"component","description":"List components or print component docs","arguments":[{"name":"names","required":false,"variadic":true,"description":"One or more exact selectors. Use Name, package/Name, @scope/package/Name, or @scope/package@version/Name. Two or more return one ordered batch. At most 100 selectors are accepted."}],"options":[{"flag":"--list","description":"List every component (the same as giving no name)","type":"boolean","available":true},{"flag":"--category <category>","description":"List one component group, e.g. --category Layout or --category Avatar (an unknown group lists the valid ones)","type":"string","available":true},{"flag":"--props","description":"Print only the props list","type":"boolean","available":true},{"flag":"--source","description":"Print component source code","type":"boolean","available":true},{"flag":"--showcase","description":"Print showcase source code","type":"boolean","available":true},{"flag":"--blocks","description":"List example blocks: showcase, examples, and related","type":"boolean","available":true},{"flag":"--package <name>","description":"Scope lookup to an external package (e.g. @acme/xds-widgets). Use @astryxdesign/core to select an original replaced by an integration component.","type":"string","available":true}],"json":true,"available":true,"responseTypes":["component.list","component.batch","component.detail","component.detail.props","component.detail.source","component.detail.showcase","component.detail.blocks"],"examples":["astryx component --list","astryx component Button Badge Text","astryx component Button --props --json","astryx component SideNav --package @astryxdesign/core"],"exitCodes":[{"code":0,"when":"success"},{"code":1,"when":"unknown component, category, or package; more than 100 selectors; any batch row is unresolved; or @astryxdesign/core cannot be resolved"}],"outsideProject":"same"},{"name":"discover","description":"Browse and search integrations: the ones you have and the ones you could add","arguments":[{"name":"query","required":false,"variadic":true,"description":""}],"options":[{"flag":"--components","description":"In the package list, print every component, and every other item, of each package instead of the first 10 and a \"+N more\" count. No effect on --json output or on a package, component, or search query.","type":"boolean","available":true},{"flag":"--type <kind>","description":"Only one kind: component, template, doc, theme, codemod, or agent-doc. In the list, only packages that add it; in a search, only items of that kind.","type":"string","available":true},{"flag":"--installed","description":"Only what this project has. Cannot be set with --available.","type":"boolean","available":true},{"flag":"--available","description":"Only what this project could add. Cannot be set with --installed.","type":"boolean","available":true},{"flag":"--limit <n>","description":"Max number of search results, a positive integer (default 20).","type":"string","available":true}],"json":true,"available":true,"responseTypes":["discover.list","discover.detail","discover.detail.doc","discover.item","discover.search"],"examples":["astryx discover","astryx discover --components","astryx discover --type theme","astryx discover @acme/ui","astryx discover @acme/ui@2.1.0","astryx discover dashboard --type template --available"],"exitCodes":[{"code":0,"when":"success"},{"code":1,"when":"unknown package, version, component, or item; a malformed doc; an invalid --type or --limit; --installed with --available; or a blank query when packages are discovered"}],"outsideProject":"same"},{"name":"docs","description":"Print reference docs","arguments":[{"name":"topic","required":false,"variadic":false,"description":""},{"name":"section","required":false,"variadic":false,"description":""}],"options":[{"flag":"--list","description":"List every topic (the same as giving no topic)","type":"boolean","available":true},{"flag":"--index","description":"List the topic's sections and their keys instead of printing the topic","type":"boolean","available":true},{"flag":"--full","description":"Print the whole topic, even one whose whole text is over 16 KB, which otherwise lists its sections (`--json` returns the whole topic unless --index). Cannot be set with --index","type":"boolean","available":true},{"flag":"--depth <levels>","description":"How many levels of the docs tree to read below a namespace: 0 for the namespace alone, 1 for its children (what a read without --depth shows), all for everything below it. On the topic list, where a namespace otherwise lists alone, it names the docs below each one by the route that opens them, one line each. With it on a namespace read, --detail sets how much of each doc below shows: brief (one line each, the default), compact (with its sections), or full; the topic list is one line per doc whatever the detail","type":"string","available":true}],"json":true,"available":true,"responseTypes":["docs.list","docs.detail","docs.index","docs.detail.section","docs.node","docs.skills","docs.skill"],"examples":["astryx docs","astryx docs --list","astryx docs theme","astryx docs theme --index","astryx docs spacing --json","astryx docs theme quick-start","astryx docs cli","astryx docs cli --depth all","astryx docs --depth all","astryx docs authoring --depth all --detail full","astryx docs cli/api/functions/search","astryx docs authoring/quick-start","astryx docs skills","astryx docs skills/astryx"],"exitCodes":[{"code":0,"when":"success"},{"code":1,"when":"unknown topic or route, a section that matches no section or more than one, a --depth that is not a number of levels or all, or --list given a topic or section"}],"outsideProject":"same"},{"name":"doctor","description":"Diagnose Astryx projects and integration packages","arguments":[],"options":[{"flag":"--built <path>","description":"Also check a finished build before you deliver it: a project folder, a build output folder, or one built HTML file. Fails when it does not use Astryx at all, and warns with each raw element, icon or custom style in its source.","type":"string","available":true}],"json":true,"available":true,"responseTypes":["doctor"],"examples":["astryx doctor","astryx doctor --json","astryx doctor --built dist","astryx doctor integration validate @acme/widgets","astryx doctor integration templates @acme/widgets","astryx doctor integration components @acme/widgets","astryx doctor integration docs @acme/widgets"],"exitCodes":[{"code":0,"when":"no checks failed (warnings are allowed)"},{"code":1,"when":"one or more checks failed"}],"outsideProject":"own","subcommands":[{"name":"doctor integration","description":"Check an integration package while authoring it","arguments":[],"options":[],"json":false,"available":true,"examples":["astryx doctor integration validate","astryx doctor integration templates","astryx doctor integration components","astryx doctor integration docs"],"exitCodes":[{"code":0,"when":"help is shown or the selected check has no errors"},{"code":1,"when":"the selected check reports an error"}],"subcommands":[{"name":"doctor integration components","description":"Check integration component names, replacements, and documented props","arguments":[{"name":"package","required":false,"variadic":false,"description":"Installed integration package name; omit to check the package in the current directory."}],"options":[],"json":true,"available":true,"responseTypes":["integration.component-conflicts"],"examples":["astryx doctor integration components","astryx doctor integration components @acme/widgets --json"],"exitCodes":[{"code":0,"when":"the check completed; component name conflicts, replaces findings for a package without the CLI range, props that differ from the code, and links that name no doc are warnings"},{"code":1,"when":"the integration is invalid, Core cannot be resolved, or a package that declares the CLI range has an invalid replaces"}],"outsideProject":"same"},{"name":"doctor integration docs","description":"Check an integration's docs: the docs tree they add, every link, and overlaps with Core topics","arguments":[{"name":"package","required":false,"variadic":false,"description":"Installed integration package name; omit to check the package in the current directory."}],"options":[],"json":true,"available":true,"responseTypes":["integration.doc-conflicts"],"examples":["astryx doctor integration docs","astryx doctor integration docs @acme/widgets --json"],"exitCodes":[{"code":0,"when":"all Core overlaps are explicitly declared or no overlap exists"},{"code":1,"when":"an overlap is accidental, a doc is invalid, a namespace or placement fails, or a reference block cannot include what it names. A link that names no doc is a warning, and does not change the exit code"}],"outsideProject":"same"},{"name":"doctor integration templates","description":"Validate integration template replacements and Core id overlaps","arguments":[{"name":"package","required":false,"variadic":false,"description":"Installed integration package name; omit to check the package in the current directory."}],"options":[],"json":true,"available":true,"responseTypes":["integration.template-conflicts"],"examples":["astryx doctor integration templates","astryx doctor integration templates @acme/widgets --json"],"exitCodes":[{"code":0,"when":"replacement declarations are valid; undeclared id conflicts are warnings"},{"code":1,"when":"the integration, a template, or a replacement declaration is invalid"}],"outsideProject":"same"},{"name":"doctor integration validate","description":"Validate an integration manifest and its contributions","arguments":[{"name":"package","required":false,"variadic":false,"description":"Installed integration package name; omit to validate the package in the current directory."}],"options":[],"json":true,"available":true,"responseTypes":["integration.validate"],"examples":["astryx doctor integration validate","astryx doctor integration validate @acme/widgets --json"],"exitCodes":[{"code":0,"when":"no error-severity issues (warnings, including doc type findings, are allowed)"},{"code":1,"when":"one or more error-severity issues"}],"outsideProject":"own"}]}]},{"name":"experimental","description":"[experimental] Try features that may change in a patch release: icon sets, one self-contained HTML file from a page built with Astryx components (not for other pages)","arguments":[],"options":[],"json":false,"available":true,"examples":["astryx experimental","astryx experimental icon delete","astryx experimental export page.tsx"],"exitCodes":[{"code":0,"when":"help is shown or a subcommand succeeds"},{"code":1,"when":"an unknown subcommand or a subcommand failure"}],"subcommands":[{"name":"experimental export","description":"[experimental] Export a page built with Astryx components as one self-contained HTML file, or turn one back into a page","arguments":[{"name":"file","required":false,"variadic":false,"description":""}],"options":[{"flag":"--out <file>","description":"Where to write: an .html file, or with --reverse a page module (default: page.tsx gives page.html beside it; with --reverse, page.html comes back into a new folder page-restored/). A relative path stays inside the current folder; when rendering, an absolute path may name any folder, and the render still never replaces a file it did not write","type":"string","available":true},{"flag":"--reverse","description":"Turn a rendered HTML file back into a page module, as experimental import does","type":"boolean","requires":["render.reverse"],"available":true},{"flag":"--title <text>","description":"The page's title (default: its first top-level heading, else the file name)","type":"string","available":true},{"flag":"--pictures","description":"Also take pictures of the written file to check how it looks, not to send: a phone in light and dark, and a desktop window, after the page’s script ran, with a browser already on the machine (the project’s Playwright, else Chrome or Chromium); with no browser, it says why and the file stands as written","type":"boolean","available":true},{"flag":"--overwrite","description":"With --reverse, replace the page module if it already exists (never a protected file; the files it imports always go into a new folder)","type":"boolean","available":true}],"json":true,"requires":["render.page"],"available":true,"responseTypes":["render.page","render.reverse"],"examples":["astryx docs cli/experimental/share-a-page","astryx experimental export src/app/page.tsx --out page.html","astryx experimental import page.html --out page.tsx","astryx --json experimental export page.tsx"],"exitCodes":[{"code":0,"when":"the file was written (warnings included)"},{"code":1,"when":"no file, a wrong extension, a missing file, a page that does not compile, has no default export, imports a package that is not installed, reads a browser API while rendering, throws, crashes Node, or takes over 60 seconds, or has a script that cannot be built for the browser (a module that needs Node); a page that uses no Astryx components or styles; a relative --out, or with --reverse any file to write, outside the current folder; an absolute --out that is a symbolic link; with --reverse, an existing output without --overwrite, a damaged embedded source, a file in a newer render format than this CLI reads, or HTML that is not an Astryx page"}],"outsideProject":"same"},{"name":"experimental icon","description":"[experimental] Find an icon by meaning, or build an icon set from a library (guide: astryx docs cli/experimental/icon-sets)","arguments":[{"name":"query","required":false,"variadic":true,"description":""}],"options":[{"flag":"--list","description":"List the installed icon sets and do nothing else; a query is refused","type":"boolean","available":true},{"flag":"--set <name>","description":"Search one set, by name or <package>/<set>; with --definitions, the set to check the meanings against","type":"string","available":true},{"flag":"--limit <n>","description":"Max number of matches, a positive integer (default 10)","type":"string","available":true},{"flag":"--definitions","description":"Every Astryx icon meaning, one line each: name, built in or not, how many bundled templates use it, whether the set maps it (--set, else the project's main set, else the package's only set), description, words","type":"boolean","available":true},{"flag":"--all-icons","description":"With --set and no words: every icon of that set, one line each (id, words, meanings)","type":"boolean","available":true}],"json":true,"available":true,"responseTypes":["icon.search","icon.detail","icon.definitions","icon.setIcons","icon.list"],"examples":["astryx experimental icon delete","astryx experimental icon outline/trash","astryx experimental icon --list --json","astryx experimental icon --set outline --all-icons","astryx experimental icon arrow --set outline --limit 3"],"exitCodes":[{"code":0,"when":"success (including zero matches)"},{"code":1,"when":"no query and no --list, a query with --list, a --limit that is not a positive integer, or a set or icon that is not installed"}],"outsideProject":"same","subcommands":[{"name":"experimental icon add","description":"[experimental] Add one icon you chose from a library to your icon set","arguments":[{"name":"export","required":false,"variadic":false,"description":""}],"options":[{"flag":"--from <module>","description":"The module the icon is exported from: a package, a subpath, or a ./ path to a file inside this package","type":"string","available":true},{"flag":"--definition <name>","description":"Map the icon to this icon meaning","type":"string","available":true},{"flag":"--new-definition <name>","description":"Add your set's own icon meaning, named in camelCase (aiHelper) or kebab-case (ai-helper), then map the icon to it; needs --description and --words","type":"string","available":true},{"flag":"--description <text>","description":"With --new-definition: what the icon is for","type":"string","available":true},{"flag":"--words <list>","description":"With --new-definition: comma-separated words people search for","type":"string","available":true},{"flag":"--default","description":"The module's default export is the icon; your set's module must re-export it under <export>","type":"boolean","available":true},{"flag":"--variant <name>","description":"Add the export as this variant of an existing icon: one of the set's declared variants, such as solid","type":"string","available":true},{"flag":"--all","description":"With --variant and --from, and no export: add that variant for every icon whose id the module exports, in one run","type":"boolean","available":true},{"flag":"--id <id>","description":"The icon's id, instead of the one its name gives","type":"string","available":true},{"flag":"--set <name>","description":"The set to edit, when the package ships several","type":"string","available":true}],"json":true,"available":true,"responseTypes":["icon.add","icon.addVariants","icon.definitionMatches","icon.search"],"examples":["astryx experimental icon add Bin --from @acme/glyph-library","astryx experimental icon add Bin --from @acme/glyph-library --definition delete","astryx experimental icon add --variant solid --from @heroicons/react/24/solid --all","astryx experimental icon add Dice5 --from @acme/glyph-library --new-definition random --description 'Pick something at random.' --words dice,shuffle,chance","astryx experimental icon add Bin --from @acme/glyph-library/solid --id bin --variant solid"],"exitCodes":[{"code":0,"when":"the icon is added, already present, or the matching meanings are listed, or, typed alone, an icon (or, with no icon set installed, an icon meaning) matches its whole name: it answers that search (`icon.search`) and writes nothing"},{"code":1,"when":"the export is missing or is data, the icon meaning is unknown, the id is taken, or the variant is not one the set declares"}],"outsideProject":"refuse"},{"name":"experimental icon map","description":"[experimental] Map an icon meaning to an icon of your set","arguments":[{"name":"definition","required":false,"variadic":false,"description":""},{"name":"icon","required":false,"variadic":false,"description":""}],"options":[{"flag":"--set <name>","description":"The set to edit, when the package ships several","type":"string","available":true},{"flag":"--remove","description":"Remove the meaning's entry; takes no icon","type":"boolean","available":true},{"flag":"--pairs <list>","description":"Many entries in one write: <definition>=<icon> pairs, comma-separated; checked together, all or none; an existing entry is replaced","type":"string","available":true}],"json":true,"available":true,"responseTypes":["icon.mapMany","icon.map","icon.search"],"examples":["astryx experimental icon map delete trash","astryx experimental icon map --pairs close=x-mark,error=x-circle,search=magnifying-glass","astryx experimental icon map delete --remove"],"exitCodes":[{"code":0,"when":"the entry is written, removed, or already as asked, or, typed alone, an icon (or, with no icon set installed, an icon meaning) matches its whole name: it answers that search (`icon.search`) and writes nothing"},{"code":1,"when":"the icon meaning is unknown, the set has no such icon, or no set is found"}],"outsideProject":"refuse"},{"name":"experimental icon new-definition","description":"[experimental] Add your icon set's own icon meaning","arguments":[{"name":"name","required":true,"variadic":false,"description":"The meaning's name, in camelCase (rocketLaunch) or kebab-case (rocket-launch)"}],"options":[{"flag":"--dry-run","description":"Validate and show planned writes without changing files","type":"boolean","available":true},{"flag":"--set <name>","description":"The icon set to add it to, when the package ships several","type":"string","available":true},{"flag":"--description <text>","description":"One sentence on what an icon with this meaning is for","type":"string","available":true},{"flag":"--words <list>","description":"Comma-separated words people search for","type":"string","available":true},{"flag":"--icon <id>","description":"Also map it to this icon of the set (its `map` entry)","type":"string","available":true}],"json":true,"available":true,"responseTypes":["icon.newDefinition","icon.search"],"examples":["astryx experimental icon new-definition random --description 'Pick something at random.' --words dice,shuffle,chance --icon dice-5"],"exitCodes":[{"code":0,"when":"the icon meaning is written or the dry run succeeds, or, typed alone, an icon (or, with no icon set installed, an icon meaning) matches its whole name: it answers that search (`icon.search`) and writes nothing"},{"code":1,"when":"the name is invalid or taken, the description or words are missing, or the set or icon is not found"}],"outsideProject":"refuse"},{"name":"experimental icon new-set","description":"[experimental] Start an icon set in your integration package","arguments":[{"name":"name","required":true,"variadic":false,"description":"The set name, in lowercase kebab-case (outline)"}],"options":[{"flag":"--dry-run","description":"Validate and show planned writes without changing files","type":"boolean","available":true},{"flag":"--from <module>","description":"A module whose every icon component the set wraps (a package, a subpath, or a ./ path); run again to refresh","type":"string","available":true},{"flag":"--exclude <names>","description":"With --from: comma-separated export names of the library that are not icons","type":"string","available":true},{"flag":"--adapter <module>#<export>","description":"A function in your package that turns one icon export that is not a component (an icon data object, an SVG string) into one, as ./<path>#<export>; it is declared in the set's data file, and with --from every data export of the library becomes an icon through it","type":"string","available":true},{"flag":"--variants <list>","description":"Comma-separated variants the set supplies, such as outline,solid","type":"string","available":true},{"flag":"--default-variant <variant>","description":"With --variants: the variant each icon's own export draws. When omitted: in a library whose export names carry look words, the look the icons draw (the library's usual default for a new set), which --variants must list; otherwise the set's current default, which --variants must list when the set has icons, else, on a set without icons, the first variant. A set with icons changes it only with --from, and only in a library whose export names carry look words","type":"string","available":true},{"flag":"--display-name <text>","description":"The set's display name (the name in title case when omitted)","type":"string","available":true},{"flag":"--description <text>","description":"The set's one-line description","type":"string","available":true}],"json":true,"available":true,"responseTypes":["icon.newSet","icon.search"],"examples":["astryx experimental icon new-set outline","astryx experimental icon new-set outline --from @acme/glyph-library","astryx experimental icon new-set heroicons --from @heroicons/react/24/outline --variants outline,solid --default-variant outline","astryx experimental icon new-set outline --dry-run --json"],"exitCodes":[{"code":0,"when":"the set is written or the dry run succeeds, or, typed alone, an icon (or, with no icon set installed, an icon meaning) matches its whole name: it answers that search (`icon.search`) and writes nothing"},{"code":1,"when":"the name, options, package, or target files are invalid or conflict"}],"outsideProject":"refuse"},{"name":"experimental icon use","description":"[experimental] Choose the project's main icon set, backups, and look","arguments":[{"name":"set","required":true,"variadic":false,"description":""}],"options":[{"flag":"--backup <set...>","description":"Backup sets, by name or `<package>/<set>`, in the order a copied template tries them after the main set.","type":"string","available":true},{"flag":"--variant <variant>","description":"The look every icon draws, such as `outline` or `filled`: one of the main set's variants. Leave it out to remove `experimental.iconVariant`, so each set draws its default look.","type":"string","available":true}],"json":true,"available":true,"responseTypes":["icon.use","icon.search"],"examples":["astryx experimental icon use outline","astryx experimental icon use outline --backup @acme/brand-icons/brand","astryx experimental icon use brand --variant filled","astryx experimental icon use @acme/icons/outline"],"exitCodes":[{"code":0,"when":"experimental.iconSet (and experimental.iconVariant) is written, or already names the sets and the look, or, typed alone, an icon (or, with no icon set installed, an icon meaning) matches its whole name: it answers that search (`icon.search`) and writes nothing"},{"code":1,"when":"a set is not installed, two packages ship it, a set is named twice, the main set declares no variant `--variant` names, the config cannot be updated (not a static object literal, or it spreads another object, which you then edit by hand), or the config is protected (a symbolic link, or marked generated, vendored, or ignored: `ERR_CODEMOD_PROTECTED`, naming the declaration)"}],"outsideProject":"refuse"}]},{"name":"experimental import","description":"[experimental] Turn an HTML file that experimental export wrote back into its page","arguments":[{"name":"file","required":false,"variadic":false,"description":""}],"options":[{"flag":"--out <file>","description":"Where to write the page module (default: page.html comes back into a new folder page-restored/); it stays inside the current folder","type":"string","available":true},{"flag":"--overwrite","description":"Replace the page module if it already exists (never a protected file; the files it imports always go into a new folder)","type":"boolean","available":true}],"json":true,"requires":["render.reverse"],"available":true,"responseTypes":["render.page","render.reverse"],"examples":["astryx experimental import page.html --out page.tsx","astryx --json experimental import page.html"],"exitCodes":[{"code":0,"when":"the page was written"},{"code":1,"when":"no file, a wrong extension, a missing file, any file to write outside the current folder, an existing output without --overwrite, a damaged embedded source, a file in a newer render format than this CLI reads, or HTML that is not an Astryx page"}],"outsideProject":"same"}]},{"name":"gap-report","description":"Report a missing component or feature to the package that owns it","arguments":[{"name":"component","required":false,"variadic":false,"description":"Component or design-system area the gap is about, up to 120 characters. Required unless --list-categories is set."}],"options":[{"flag":"--category <category>","description":"Gap category (run --list-categories for values). Required unless --list-categories is set.","type":"string","available":true},{"flag":"--reason <reason>","description":"What capability was missing or difficult, up to 2000 characters. Required unless --list-categories is set.","type":"string","available":true},{"flag":"--additional-context <text>","description":"Optional additional context, up to 8000 characters","type":"string","available":true},{"flag":"--package <pkg>","description":"Package that owns the gap: @astryxdesign/core or a loaded integration. Overrides automatic routing, which picks the integration whose component replaces the named Core component, else the one package that provides it, else Core; needed when more than one package provides the component","type":"string","available":true},{"flag":"--confirm-public","description":"Allow public delivery: public handlers run, and a GitHub issues URL gets an issue filed with your gh login","type":"boolean","available":true},{"flag":"--to <package>","description":"Send the report only to this loaded integration's issues URL, as the person chose; the destinations the output lists are the choices","type":"string","available":true},{"flag":"--list-categories","description":"List valid report categories, and the destinations when there is more than one, without filing; the component and the other gap-report options are refused with ERR_INVALID_ARGUMENT","type":"boolean","available":true}],"json":true,"available":true,"responseTypes":["gap-report.categories","gap-report.file"],"examples":["astryx gap-report --list-categories","astryx gap-report Button --category missing_variant --reason 'Need a compact size'","astryx gap-report Button --category missing_variant --reason 'Need a compact size' --to @acme/widgets"],"exitCodes":[{"code":0,"when":"filed, routed-only, confirmation required, skipped, or categories listed"},{"code":1,"when":"failed or partial delivery, invalid input, or ambiguous routing"}],"outsideProject":"same"},{"name":"hook","description":"List hooks or print hook docs","arguments":[{"name":"name","required":false,"variadic":false,"description":""}],"options":[{"flag":"--list","description":"List all hooks grouped by category","type":"boolean","available":true},{"flag":"--category <category>","description":"List hooks in a specific category","type":"string","available":true},{"flag":"--params","description":"Print only the parameters table","type":"boolean","available":true}],"json":true,"available":true,"responseTypes":["hook.list","hook.detail","hook.detail.params"],"examples":["astryx hook --list","astryx hook useFocusTrap --json"],"exitCodes":[{"code":0,"when":"success"},{"code":1,"when":"unknown hook or category, or @astryxdesign/core cannot be resolved"}],"outsideProject":"same"},{"name":"init","description":"Initialize the design system in your project","arguments":[],"options":[{"flag":"--features <list>","description":"Comma-separated features: agents (agent docs), theme (writes theme.template.ts), template (prints the page-building commands; writes no file). An unknown feature exits 1 with ERR_UNKNOWN_FEATURE. Refused with --all or --remove","type":"string","available":true},{"flag":"--all","description":"Install all features (agents, theme, template); refused with --features. Prints their guidance instead of the getting-started steps","type":"boolean","available":true},{"flag":"--to <places>","description":"Where the Astryx skill goes, a comma list: agents-md (default), skills, user (same as --user), or a folder path. Saved, so later runs keep each place current (a deleted copy in a folder outside the project stays deleted); moving off a place removes the skill there. Which to pick: `astryx docs cli/skill-places`","type":"string","available":true},{"flag":"--once","description":"With --to, a copy saved nowhere, so init and upgrade never refresh it; doctor still reports one in the project skills folders beside the AGENTS.md block as a second copy. Refused without --to, with user, and for agents-md or a place already saved","type":"boolean","available":true},{"flag":"--remove","description":"Remove the skill from the project's saved places (with --to, the places named) and drop them from what is saved; without --to, or with agents-md, also the block from AGENTS.md, CLAUDE.md, .claude/CLAUDE.md, GEMINI.md, .cursorrules, .hermes.md and HERMES.md at the project root (where init writes them) and in this folder. A skill file you edited is kept; folders saved for this computer stay unless --to names them. --features, --all, --agent, --agent-docs-path and --once are refused","type":"boolean","available":true},{"flag":"--remove-agents","description":"The same as --remove","type":"boolean","available":true},{"flag":"--user","description":"Write the computer-level agent skill (~/.agents/skills/astryx/SKILL.md, linked into the skill folders of other agents) instead of setting up this folder; with --remove, remove it and turn it off. --features, --all, --agent and --agent-docs-path are refused","type":"boolean","available":true},{"flag":"--agent <tool>","description":"Which agent files get the block: claude (the Claude Code file), cursor (.cursorrules, else AGENTS.md), codex and muse (AGENTS.md), hermes (.hermes.md or HERMES.md, else AGENTS.md), all (every existing agent file; GEMINI.md keeps its import of AGENTS.md). An unknown tool exits 1 with ERR_UNKNOWN_AGENT. Used only when agent docs are installed; --agent-docs-path takes precedence","type":"string","available":true},{"flag":"--agent-docs-path <path...>","description":"Write the block to these files instead, inside the project; takes precedence over --agent. A path outside the project writes no agent docs and exits 1. Used only when agent docs are installed","type":"string","available":true}],"json":true,"available":true,"responseTypes":["init.run","init.remove","init.user"],"examples":["astryx init","astryx init --all","astryx init --json","astryx init --to skills","astryx init --to user","astryx init --to ./bundle --once","astryx init --remove","astryx init --remove --to user"],"exitCodes":[{"code":0,"when":"success, including agent docs left unwritten in a soft case (such as the home folder, or a file that resolves outside the project), reported as docsError with a note"},{"code":1,"when":"an unknown --agent (ERR_UNKNOWN_AGENT) or feature, an --agent-docs-path outside the project, or options that cannot be combined (ERR_INVALID_ARGUMENT); at the project root, an agent file 0.7.1 also wrote there that resolves outside the project (ERR_PATH_TRAVERSAL, nothing written); with --user, a folder of the computer-level agent text the user cannot write (ERR_WRITE_FAILED)"}],"outsideProject":"own"},{"name":"integration","description":"Author and verify an Astryx integration package","arguments":[],"options":[],"json":false,"available":true,"examples":["astryx integration add component AcmeWidget","astryx integration check --strict","astryx integration verify"],"exitCodes":[{"code":0,"when":"help is shown or a subcommand succeeds"},{"code":1,"when":"an unknown subcommand is provided"}],"subcommands":[{"name":"integration add","description":"Add one working contribution to an integration package","arguments":[{"name":"kind","required":true,"variadic":false,"description":"component, doc, template, codemod, agent-doc, or theme","requires":{"theme":["themes.scaffold"]}},{"name":"name","required":true,"variadic":false,"description":"Contribution name: PascalCase for component (AcmeWidget); lowercase kebab-case for template, codemod, and theme (account-card); letters, digits, _ and - for doc; the literal guidance line for agent-doc"}],"options":[{"flag":"--dry-run","description":"Validate and show planned writes without changing files","type":"boolean","available":true},{"flag":"--type <type>","description":"Template type: page (default) or block; only valid for template","type":"string","available":true},{"flag":"--replaces <topic>","description":"Existing doc topic this one replaces (letters, digits, _ and -); only valid for doc and not with --extends","type":"string","available":true},{"flag":"--extends <topic>","description":"Existing doc topic this one extends (letters, digits, _ and -); only valid for doc and not with --replaces","type":"string","available":true},{"flag":"--parent <namespace>","description":"Namespace of this package to place the doc in, as a guide in its `guides` slot; writes the namespace doc when it is missing, and declares the CLI that reads it as an optional `@astryxdesign/cli` peer. Only valid for doc, and not with --replaces or --extends","type":"string","available":true},{"flag":"--from <theme>","description":"Existing theme slug to fork as a starting point instead of a blank scaffold; the new theme copies the base and has no link back, and package.json `dependencies` gains the npm packages the copied files import (other than Core and React). Only valid for theme","type":"string","available":true},{"flag":"--to <version>","description":"Exact semver of the @astryxdesign/core version whose upgrade runs the codemod (e.g. 0.7.0); required for codemod and only valid there","type":"string","available":true}],"json":true,"available":true,"responseTypes":["integration.add"],"examples":["astryx integration add component AcmeWidget --dry-run --json","astryx integration add component AcmeWidget","astryx integration add doc deploying","astryx integration add template acme-dashboard","astryx integration add template account-card --type block","astryx integration add doc acme-getting-started --replaces getting-started","astryx integration add doc acme-theming --extends theme","astryx integration add doc releasing --parent acme","astryx integration add codemod rename-widget --to 1.2.0","astryx integration add agent-doc 'Run acme verify before finishing.'","astryx integration add theme ocean","astryx integration add theme ocean --from neutral"],"exitCodes":[{"code":0,"when":"the contribution is written or the dry run succeeds"},{"code":1,"when":"the kind, name, options, package, or target files are invalid or conflict"}],"outsideProject":"refuse"},{"name":"integration check","description":"The CI check for an integration package's own build: every source check, run in continuous integration or a typecheck script, against the package in the current folder","arguments":[],"options":[{"flag":"--strict","description":"Also exit 1 on any warning and on any check that did not run. A new check or failure code joins only in a minor release, named in the release notes; until then, a malformed `cliCommand` or `installGuidance` is reported as a note (`invalid_cli_command`, `invalid_install_guidance`) that fails nothing.","type":"boolean","available":true},{"flag":"--next","description":"Also count the findings the next minor release turns into warnings (the notes marked `next`) as warnings now, so `--strict --next` fails on them. Run it to fix them ahead of the release; every run says how many there are.","type":"boolean","available":true}],"json":true,"available":true,"responseTypes":["integration.check"],"examples":["integration check --strict","integration check","integration check --strict --next","integration check --strict --json","integration verify"],"exitCodes":[{"code":0,"when":"no check fails on its own; with --strict, also no warning, and every check ran"},{"code":1,"when":"a check fails on its own (an error); with --strict, also any warning, or a check that did not run"}],"outsideProject":"own"},{"name":"integration pack","description":"Deprecated: the old name of `integration verify`","arguments":[],"options":[{"flag":"--check","description":"Run the check. Required, as before.","type":"boolean","available":true}],"json":true,"available":true,"responseTypes":["integration.pack-check"],"examples":["astryx integration pack --check"],"exitCodes":[{"code":0,"when":"the packed package exposes the same valid contributions"},{"code":1,"when":"--check is omitted or the tarball is incomplete or invalid"}],"outsideProject":"own"},{"name":"integration verify","description":"Check the package the way npm will publish it, before you publish","arguments":[],"options":[],"json":true,"available":true,"responseTypes":["integration.pack-check"],"examples":["astryx integration verify","astryx integration verify --json"],"exitCodes":[{"code":0,"when":"the packed package exposes the same valid contributions"},{"code":1,"when":"the tarball is incomplete or invalid"}],"outsideProject":"own"}]},{"name":"manifest","description":"Print the full CLI capability manifest (use with --json)","arguments":[],"options":[],"json":true,"available":true,"responseTypes":["manifest"],"examples":["astryx manifest --json","astryx --json"],"exitCodes":[{"code":0,"when":"success"},{"code":1,"when":"the manifest cannot be generated"}],"outsideProject":"same"},{"name":"mcp","description":"For AI tools that cannot run commands: serve every astryx command as an MCP tool, over stdio","arguments":[],"options":[{"flag":"--docs-only","description":"Serve only the commands that read the docs (search, build, component, hook, docs, template, discover, theme list and theme targets), one message at a time, without the inputs that name a folder, a file to write or a package to read","type":"boolean","available":true}],"json":false,"available":true,"examples":["astryx mcp","astryx mcp --docs-only"],"exitCodes":[{"code":0,"when":"the client closed the connection"},{"code":1,"when":"--json was given, or the tools could not be read from the CLI"}],"outsideProject":"same"},{"name":"search","description":"Search components, hooks, docs, templates, and themes in one ranked list","arguments":[{"name":"query","required":true,"variadic":true,"description":""}],"options":[{"flag":"--type <domain>","description":"Filter to one domain (component|hook|doc|template|theme)","type":"string","available":true},{"flag":"--limit <n>","description":"Max number of results, a positive integer (default 20)","type":"string","available":true},{"flag":"--verbose","description":"Also print each result's score and match reason, and its whole description","type":"boolean","available":true}],"json":true,"available":true,"responseTypes":["search"],"examples":["astryx search button","astryx search dark mode --type doc","astryx search \"data table\" --type template --json","astryx search warm --type theme"],"exitCodes":[{"code":0,"when":"success (including zero matches)"},{"code":1,"when":"invalid --type, a --limit that is not a positive integer, or --type component, hook, or template where @astryxdesign/core cannot be found"}],"outsideProject":"same"},{"name":"swizzle","description":"Copy component source for customization","arguments":[{"name":"component","required":false,"variadic":false,"description":""}],"options":[{"flag":"--output <dir>","description":"Output directory","type":"string","default":"./components/astryx","available":true},{"flag":"--package <pkg>","description":"Scope to a specific owning package. Use @astryxdesign/core to copy an original replaced by an integration component","type":"string","available":true},{"flag":"--list","description":"List the swizzlable Core components, including any that an integration component replaces","type":"boolean","available":true},{"flag":"-f, --overwrite","description":"Replace the component's existing files. Without it, existing files fail the command with ERR_FILE_EXISTS and nothing is written. A helper an earlier swizzle wrote is reused when it is the same and is never replaced by a copy that carries it: a different one stays, and this copy writes its own under a version-suffixed name. Swizzling the component whose folder holds that helper counts it as one of that component's own files. A changed private attribute owner module, or a style module it imports, fails the command without --overwrite and is replaced with it","type":"boolean","available":true}],"json":true,"available":true,"responseTypes":["swizzle.list","swizzle.copy"],"examples":["astryx swizzle --list","astryx swizzle Button","astryx swizzle SideNav --package @astryxdesign/core"],"exitCodes":[{"code":0,"when":"success"},{"code":1,"when":"unknown or ambiguous component, no source on disk, a path escape, or existing files without --overwrite"}],"outsideProject":"refuse"},{"name":"template","description":"List, show, or scaffold page and block templates","arguments":[{"name":"name","required":false,"variadic":false,"description":"Template id (see --list). Omit it to list the templates."},{"name":"path","required":false,"variadic":false,"description":"Where to scaffold the template, inside the project root: a relative path, or an absolute path inside the project, which is written as its relative path. An absolute path in the system temp folder (such as /tmp/dashboard) takes a scratch copy, outside the project. Any other path outside the project is refused. A path that starts with ~/ names the home folder, as a shell reads it, and follows the same rules. A path that ends in .tsx, .ts, .jsx, .js, .mjs, .cjs, .css, .scss, .json, .md or .html is the file to write; any other path is a directory, which receives page.tsx for a page template or the block's own file name for a block. Omit it to print the source."}],"options":[{"flag":"--list","description":"List available templates (narrow with --type and --package) and do nothing else: <name>, <path>, --skeleton and --overwrite are refused","type":"boolean","available":true},{"flag":"--type <type>","description":"Filter by template type: page or block","type":"string","available":true},{"flag":"--package <pkg>","description":"Narrow to templates from a specific package. Use @astryxdesign/core to select an original hidden by an integration replacement.","type":"string","available":true},{"flag":"--skeleton","description":"Show layout skeleton with spatial annotations (padding, gap, nesting) instead of the source. Needs <name>. It writes nothing, so <path> and --overwrite are refused with ERR_INVALID_ARGUMENT","type":"boolean","requires":["templates.skeleton"],"available":true},{"flag":"--cdn [path]","description":"Write the no-build-step CDN starter page and do nothing else: <name>, --list, --skeleton, --type and --package are refused. The page goes to the --cdn value, else to <path>, else cdn.template.html, and that path is always the file itself; a path that starts with ~/ names the home folder. A value right after --cdn (anything not starting with -) is taken as that path","type":"string","requires":["templates.standalonePage"],"available":true},{"flag":"-f, --overwrite","description":"Replace an existing target file. Without it an existing file is refused (ERR_FILE_EXISTS) and an existing CDN page is left as is","type":"boolean","available":true}],"json":true,"available":true,"responseTypes":["template.list","template.show","template.skeleton","template.copy","template.cdn"],"examples":["astryx template --json","astryx --json template --list --package @astryxdesign/core","astryx template dashboard ./src/app","astryx template shell-side-nav ./src/app --package @astryxdesign/core","astryx template --cdn","astryx template --cdn public/demo.html"],"exitCodes":[{"code":0,"when":"success, including a CDN page left untouched because it already exists"},{"code":1,"when":"unknown or ambiguous template, no source, a path escape, an existing target without --overwrite, or --list with a type outside page or block or a package that provides no templates"}],"outsideProject":"same"},{"name":"theme","description":"Add, switch, build, and author themes","arguments":[],"options":[],"json":false,"available":true,"examples":["astryx theme list","astryx theme add ocean","astryx theme use ocean","astryx theme eject ocean","astryx theme palette generate palette.config.json","astryx theme targets"],"exitCodes":[{"code":0,"when":"help is shown or a subcommand succeeds"},{"code":1,"when":"an unknown subcommand or a subcommand failure"}],"subcommands":[{"name":"theme add","description":"Add a built theme to the app. To copy a theme's source as an editable fork, run `theme eject <slug> [path] [--overwrite]`.","arguments":[{"name":"slug","required":false,"variadic":false,"description":""}],"options":[{"flag":"--list","description":"List available themes","type":"boolean","available":true},{"flag":"--import","description":"Compatibility no-op; the built theme is added with or without this flag","type":"boolean","available":true},{"flag":"--package <package>","description":"Select the package that owns the theme","type":"string","available":true}],"json":true,"requires":["themes.appModule"],"available":true,"responseTypes":["theme.app","theme.list"],"examples":["astryx theme add ocean","astryx theme add ./ocean-theme.tgz","astryx theme add ocean --package @acme/themes"],"exitCodes":[{"code":0,"when":"the theme is listed or added"},{"code":1,"when":"the theme, its built imports, its record, a shared theme's source or name, or the option combination is invalid"}],"outsideProject":"own"},{"name":"theme build","description":"Compile standalone themes or one keyed theme family","arguments":[{"name":"files","required":true,"variadic":true,"description":""}],"options":[{"flag":"--family","description":"Build the selected extension family into one keyed CSS, JS, and declaration set, written beside the family root theme file, which must be inside the working directory to build (ERR_PATH_TRAVERSAL); --check only reads, so it compares outputs anywhere. The selected themes form one extends tree with one root: the base of every other member is selected, and the root may extend a theme the family does not select (such as an installed theme package), which its outputs carry as its standalone build does; a member whose base is missing is refused naming that base (ERR_THEME_INVALID). Requires --family-key; refused with --out or --watch (ERR_THEME_INVALID)","type":"boolean","available":true},{"flag":"--family-key <key>","description":"Lower-kebab filename stem required with --family and refused without it; must differ from every member name (ERR_THEME_INVALID)","type":"string","available":true},{"flag":"-o, --out <path>","description":"Output CSS file path, relative or absolute; the .js and .d.ts are written beside it (default: <theme name>.css next to the source). A folder, or a path ending in /, writes <theme name>.css into it. The path should end in .css: a TypeScript declaration file (.d.ts) or a stylesheet source map (.css.map) is refused with the .css path to give (ERR_INVALID_ARGUMENT), and nothing is written; any other name still builds, with a warning naming the .css path meant. A build never replaces the theme source (ERR_THEME_INVALID). Beside the source and at a path --out names, it replaces its own earlier outputs (beside the source, those of the CLI before it was named Astryx too), and the output of another theme source with a warning that names both sources; any other existing file, such as your own brand.css beside brand.ts, fails with ERR_FILE_EXISTS naming it, and nothing is written: build with --out, or move or rename the file. Into a folder the theme editor made (folder <slug>/ holds <slug>.settings.json), a source outside that folder builds there too, with a warning; to keep the editor folder to its own theme, build beside the source, or pass an --out outside it. A build writes only inside the working directory, the defaults beside the source too (ERR_PATH_TRAVERSAL); --check writes nothing, so it compares outputs anywhere and refuses only a relative path that escapes the working directory. Single theme only: refused with more than one file or with --family (ERR_THEME_INVALID)","type":"string","available":true},{"flag":"--icons-specifier <specifier>","description":"Override the icon-registry import in the generated JS module, for example ./icons.mjs; the build then does not compile the registry (default: a TypeScript or JSX registry's compiled copy in <name>.modules/, or a plain JavaScript registry's own path). With --family it applies to every member's icon import","type":"string","available":true},{"flag":"-w, --watch","description":"Rebuild automatically when the theme source, or a local file it imports, changes (Ctrl-C to stop). Refused with --check, --family, or --json (ERR_THEME_INVALID)","type":"boolean","available":true},{"flag":"-c, --check","description":"Verify the committed outputs match the source without writing; exit non-zero if stale. Composes with --family and several files; refused with --watch (ERR_THEME_INVALID)","type":"boolean","available":true}],"json":true,"requires":["themes.compile"],"available":true,"responseTypes":["theme.build","theme.build.check","theme.build.batch"],"examples":["astryx theme build ./src/themes/ocean.ts --out ./dist/ocean.css","astryx theme build --family ./themes/ocean.mjs ./themes/ocean-calm.mjs --family-key ocean-family","astryx theme build ./src/themes/*.ts","astryx theme build ./src/themes/ocean.ts --check","astryx theme build ./src/themes/ocean.ts --icons-specifier ./icons.mjs"],"exitCodes":[{"code":0,"when":"the theme builds, or --check finds the outputs up to date"},{"code":1,"when":"a build or validation error (an error envelope), or --check finds stale or missing outputs (the check result, with upToDate false, the stale files and code ERR_THEME_STALE)"}],"outsideProject":"same"},{"name":"theme eject","description":"Fork a theme as editable local source","arguments":[{"name":"slug","required":true,"variadic":false,"description":""},{"name":"path","required":false,"variadic":false,"description":""}],"options":[{"flag":"-f, --overwrite","description":"Replace the existing files of an earlier fork of the same theme. Without it, an existing file fails with ERR_FILE_EXISTS and nothing is written","type":"boolean","available":true},{"flag":"--package <package>","description":"Select the package that owns the theme","type":"string","available":true}],"json":true,"available":true,"responseTypes":["theme.eject"],"examples":["astryx theme eject ocean","astryx theme eject ocean src/themes/my-ocean --package @acme/themes"],"exitCodes":[{"code":0,"when":"all source and descriptor files are written"},{"code":1,"when":"the theme is unknown or ambiguous, a path escapes, a source file is missing, a destination exists, or the folder holds another theme"}],"outsideProject":"same"},{"name":"theme list","description":"List themes available to add","arguments":[],"options":[{"flag":"--package <package>","description":"Show only themes owned by this package","type":"string","available":true}],"json":true,"available":true,"responseTypes":["theme.list"],"examples":["astryx theme list --json","astryx theme list --package @acme/themes"],"exitCodes":[{"code":0,"when":"success"},{"code":1,"when":"a bundled or installed theme descriptor cannot be read, or the generated theme module exists and its record cannot be read"}],"outsideProject":"same"},{"name":"theme palette","description":"Create and work with theme-owned color palettes","arguments":[],"options":[],"json":false,"available":true,"examples":["astryx theme palette generate palette.config.json"],"exitCodes":[{"code":0,"when":"help is shown or a subcommand succeeds"},{"code":1,"when":"an unknown subcommand is provided"}],"subcommands":[{"name":"theme palette generate","description":"Generate an OKLCH palette candidate for human review","arguments":[{"name":"config","required":true,"variadic":false,"description":""}],"options":[{"flag":"-o, --out <path>","description":"Write a candidate TypeScript or JSON file and a sibling receipt","type":"string","available":true},{"flag":"--preview <path>","description":"Write a self-contained HTML preview page; the path must end in .html","type":"string","available":true},{"flag":"-f, --overwrite","description":"Replace existing candidate, receipt, and preview files. Without it, if any of them exists, nothing is written","type":"boolean","available":true}],"json":true,"available":true,"responseTypes":["theme.palette.generate"],"examples":["astryx theme palette generate themes/ocean/palette.config.json","astryx theme palette generate themes/ocean/palette.config.json --out themes/ocean/tokens/ocean.palette.ts","astryx theme palette generate themes/ocean/palette.config.json --out themes/ocean/tokens/ocean.palette.ts --preview themes/ocean/tokens/ocean.palette.html"],"exitCodes":[{"code":0,"when":"a candidate is produced or existing output is left untouched"},{"code":1,"when":"the request is invalid or output cannot be written safely"}],"outsideProject":"same"}]},{"name":"theme remove","description":"Remove a theme from the app","arguments":[{"name":"slug","required":true,"variadic":false,"description":""}],"options":[],"json":true,"requires":["themes.appModule"],"available":true,"responseTypes":["theme.app"],"examples":["astryx theme remove ocean"],"exitCodes":[{"code":0,"when":"the module is regenerated without the theme; or, for the only added theme, the module is removed and the lines the app root must drop are printed"},{"code":1,"when":"the theme is not added; it is the default and other themes are still added (choose another default with theme use first); it is the only added theme and its module has changes the CLI did not write; or state is invalid"}],"outsideProject":"refuse"},{"name":"theme targets","description":"List the component theming targets a theme can override","arguments":[{"name":"filter","required":false,"variadic":false,"description":""}],"options":[],"json":true,"requires":["themes.targets"],"available":true,"responseTypes":["theme.targets"],"examples":["astryx theme targets","astryx theme targets Switch","astryx theme targets thumb","astryx --json theme targets"],"exitCodes":[{"code":0,"when":"success"},{"code":1,"when":"a filter matches no target, or core cannot be resolved"}],"outsideProject":"same"},{"name":"theme template","description":"Write the annotated theme template into your project","arguments":[{"name":"path","required":false,"variadic":false,"description":""}],"options":[{"flag":"-f, --overwrite","description":"Replace an existing copy of the template or theme source file. Any other .ts file, such as util.ts, or a file in a folder the theme editor made, fails with ERR_FILE_EXISTS and is left as it was. A path that is not .ts, such as package.json, fails with ERR_INVALID_ARGUMENT, with or without --overwrite","type":"boolean","available":true}],"json":true,"requires":["themes.template"],"available":true,"responseTypes":["theme.template"],"examples":["astryx theme template","astryx theme template src/themes/starter.ts"],"exitCodes":[{"code":0,"when":"success, including when an existing file was left untouched"},{"code":1,"when":"the target path escapes the project, is blank, a folder or not a .ts file, --overwrite names a file that is not a theme template or source, or the file cannot be written"}],"outsideProject":"same"},{"name":"theme use","description":"Choose the app default from its added themes","arguments":[{"name":"slug","required":true,"variadic":false,"description":""}],"options":[],"json":true,"requires":["themes.appModule"],"available":true,"responseTypes":["theme.app"],"examples":["astryx theme use ocean"],"exitCodes":[{"code":0,"when":"the module is regenerated with the selected default"},{"code":1,"when":"the theme is not added or state is invalid"}],"outsideProject":"refuse"}]},{"name":"upgrade","description":"Update your code after upgrading Astryx, and refresh ShadCN-copied components","arguments":[],"options":[{"flag":"--from <version>","description":"Previous version before the dependency upgrade; required unless --list or --registry is set. The target is the installed version of the run's active base: @astryxdesign/core, or legacy @xds/core when @astryxdesign/core is not installed, in a run on Core; the base's package in a run on another base, which runs no Core codemod and checks no copied composition","type":"string","available":true},{"flag":"--apply","description":"Write changes to disk; without it, the run is a dry run","type":"boolean","default":false,"available":true},{"flag":"--force","description":"Run codemods even if --from is newer than the installed version","type":"boolean","default":false,"available":true},{"flag":"--codemod <name>","description":"Run only the named codemod. Optional codemods run only when named here; a normal run skips them. Also skips the check of ShadCN-copied compositions. An unknown name exits 1 with ERR_UNKNOWN_CODEMOD when the version range has codemods","type":"string","available":true},{"flag":"--skip-codemod <name...>","description":"Exclude named codemods (repeatable). Re-run past a failed codemod by skipping it.","type":"string","available":true},{"flag":"--integration <package>","description":"Explicit integration specifier (repeatable). Resolved beneath node_modules; absolute paths and `.` or `..` segments are rejected.","type":"string","default":[],"available":true},{"flag":"--path <dir>","description":"Source directory to scan, relative to where you run the command, however you spell it. Without --path, the project's src folder, from any folder in the project","type":"string","default":"./src at the project root","available":true},{"flag":"--install-deps","description":"Install jscodeshift when it is missing. Without it, a missing jscodeshift fails the command with ERR_DEP_MISSING","type":"boolean","default":false,"available":true},{"flag":"--registry","description":"Only update ShadCN-copied compositions from their install receipts: unchanged files are updated, edits that do not overlap are merged, and conflicts are left untouched; --from is not required. Combining it with --list, --from, --force, --codemod, --skip-codemod, --integration or --install-deps exits 1 with ERR_INVALID_ARGUMENT","type":"boolean","default":false,"available":true},{"flag":"--list","description":"List available codemods and do nothing else. Every other flag is refused, as is --registry (exit 1)","type":"boolean","default":false,"available":true}],"json":true,"available":true,"responseTypes":["upgrade.list","upgrade.registry","upgrade.status","upgrade.run"],"examples":["astryx upgrade --list --json","astryx upgrade --registry --apply","astryx upgrade --from 0.1.0 --apply"],"exitCodes":[{"code":0,"when":"success, including complete dry-run previews and runs whose only findings are manual migrations"},{"code":1,"when":"missing or invalid --from, --registry with --list or a migration flag, a --path escape, no installed @astryxdesign/core (or legacy @xds/core) in a run on Core, or no installed active base in a run on another base, jscodeshift missing and not installed by --install-deps, an astryx.config that fails validation and that no pending config codemod repairs, an unreadable or invalid protection declaration, a protected file that still requires a codemod change, a generated file that must be regenerated, an unknown codemod, a codemod or post-codemod hook failure, or unresolved registry items"}],"outsideProject":"own"}],"jsonSupported":["blog","build","component","discover","docs","doctor","doctor integration components","doctor integration docs","doctor integration templates","doctor integration validate","experimental export","experimental icon","experimental icon add","experimental icon map","experimental icon new-definition","experimental icon new-set","experimental icon use","experimental import","gap-report","hook","init","integration add","integration check","integration pack","integration verify","manifest","search","swizzle","template","theme add","theme build","theme eject","theme list","theme palette generate","theme remove","theme targets","theme template","theme use","upgrade"],"globalMode":{"docs":"astryx docs global","summary":"In a folder that belongs to a project, the project's own CLI answers: this copy hands the run to it. In a project with no CLI of its own, and outside any project, this copy answers. A copy installed for the computer checks the registry for a newer release once a day in the background, and keeps one agent skill file in the home folder."},"base":{"name":"@astryxdesign/core","version":"0.7.18","steps":["themes.targets","themes.compile","themes.appModule","themes.template","themes.scaffold","themes.checks","templates.skeleton","templates.standalonePage","render.page","render.reverse","icons.appModule","setup.guide"]},"responseTypes":{"blog":["blog.list","blog.detail"],"build":["build.help","build.kit"],"component":["component.list","component.batch","component.detail","component.detail.props","component.detail.source","component.detail.showcase","component.detail.blocks"],"discover":["discover.list","discover.detail","discover.detail.doc","discover.item","discover.search"],"docs":["docs.list","docs.detail","docs.index","docs.detail.section","docs.node","docs.skills","docs.skill"],"doctor":["doctor"],"doctor integration components":["integration.component-conflicts"],"doctor integration docs":["integration.doc-conflicts"],"doctor integration templates":["integration.template-conflicts"],"doctor integration validate":["integration.validate"],"experimental export":["render.page","render.reverse"],"experimental icon":["icon.search","icon.detail","icon.definitions","icon.setIcons","icon.list"],"experimental icon add":["icon.add","icon.addVariants","icon.definitionMatches","icon.search"],"experimental icon map":["icon.mapMany","icon.map","icon.search"],"experimental icon new-definition":["icon.newDefinition","icon.search"],"experimental icon new-set":["icon.newSet","icon.search"],"experimental icon use":["icon.use","icon.search"],"experimental import":["render.page","render.reverse"],"gap-report":["gap-report.categories","gap-report.file"],"hook":["hook.list","hook.detail","hook.detail.params"],"init":["init.run","init.remove","init.user"],"integration add":["integration.add"],"integration check":["integration.check"],"integration pack":["integration.pack-check"],"integration verify":["integration.pack-check"],"manifest":["manifest"],"search":["search"],"swizzle":["swizzle.list","swizzle.copy"],"template":["template.list","template.show","template.skeleton","template.copy","template.cdn"],"theme add":["theme.app","theme.list"],"theme build":["theme.build","theme.build.check","theme.build.batch"],"theme eject":["theme.eject"],"theme list":["theme.list"],"theme palette generate":["theme.palette.generate"],"theme remove":["theme.app"],"theme targets":["theme.targets"],"theme template":["theme.template"],"theme use":["theme.app"],"upgrade":["upgrade.list","upgrade.registry","upgrade.status","upgrade.run"]}}
1
+ {"name":"astryx","version":"0.7.19-canary.g8cf5aa3","apiVersion":1,"description":"Design system CLI — components, themes, and tooling\n\nMaking or changing a theme? Read astryx docs author-a-theme.","globalOptions":[{"flag":"-V, --version","description":"output the version number","type":"boolean"},{"flag":"--zh","description":"Simplified Chinese for component reads and for docs topics that have a translation (English otherwise)","type":"boolean"},{"flag":"--dense","description":"Token-efficient dense text for component <Name> and docs <topic> reads","type":"boolean"},{"flag":"--lang <locale>","description":"Language or format for component and docs reads: en (default), zh (as --zh), or dense (as --dense)","type":"enum","choices":["en","zh","dense"]},{"flag":"--detail <level>","description":"Detail level for component, hook, and docs tree reads (e.g. docs cli/commands/build), and for theme build reports. Lists default to brief, and a component read to compact; theme build prints one line per built theme unless full, which adds the install example and font recipe","type":"enum","choices":["full","compact","brief"],"default":"full"},{"flag":"--base <package>","description":"The base library this run reads: @astryxdesign/core, or an installed package whose integration manifest declares base. Default: in an integration package, the base it is or builds on; else the project's Core; else its one installed base; else Core","type":"string"},{"flag":"--json","description":"Output as typed JSON. Success envelope: { apiVersion, type, package?, data, meta? }. Error envelope: { apiVersion, error, code, suggestions? }.","type":"boolean"}],"commands":[{"name":"blog","description":"Read the Astryx blog from the published feed","arguments":[{"name":"slug","required":false,"variadic":false,"description":""}],"options":[],"json":true,"available":true,"responseTypes":["blog.list","blog.detail"],"examples":["astryx blog","astryx blog introducing-astryx --json"],"exitCodes":[{"code":0,"when":"success"},{"code":1,"when":"unknown slug, or the feed or a post cannot be fetched"}],"outsideProject":"same"},{"name":"build","description":"Build a page: the template to start from, or the workflow playbook (no query)","arguments":[{"name":"query","required":false,"variadic":false,"description":""}],"options":[{"flag":"--type <domain>","description":"Filter the kit to one domain (component|hook|doc|template|theme); doc and theme give an empty kit","type":"string","available":true},{"flag":"--limit <n>","description":"Max candidates to draw from (default 60)","type":"string","available":true},{"flag":"--verbose","description":"Verbose output (every block and component, full descriptions, import paths and match reason)","type":"boolean","available":true}],"json":true,"available":true,"responseTypes":["build.help","build.kit"],"examples":["astryx build","astryx build \"analytics dashboard\" --json"],"exitCodes":[{"code":0,"when":"success (including zero matches)"},{"code":1,"when":"invalid --type, a --limit that is not a positive integer, or a query when @astryxdesign/core cannot be found (the playbook needs no core)"}],"outsideProject":"same"},{"name":"component","description":"List components or print component docs","arguments":[{"name":"names","required":false,"variadic":true,"description":"One or more exact selectors. Use Name, package/Name, @scope/package/Name, or @scope/package@version/Name. Two or more return one ordered batch. At most 100 selectors are accepted."}],"options":[{"flag":"--list","description":"List every component (the same as giving no name)","type":"boolean","available":true},{"flag":"--category <category>","description":"List one component group, e.g. --category Layout or --category Avatar (an unknown group lists the valid ones)","type":"string","available":true},{"flag":"--props","description":"Print only the props list","type":"boolean","available":true},{"flag":"--source","description":"Print component source code","type":"boolean","available":true},{"flag":"--showcase","description":"Print showcase source code","type":"boolean","available":true},{"flag":"--blocks","description":"List example blocks: showcase, examples, and related","type":"boolean","available":true},{"flag":"--package <name>","description":"Scope lookup to an external package (e.g. @acme/xds-widgets). Use @astryxdesign/core to select an original replaced by an integration component.","type":"string","available":true}],"json":true,"available":true,"responseTypes":["component.list","component.batch","component.detail","component.detail.props","component.detail.source","component.detail.showcase","component.detail.blocks"],"examples":["astryx component --list","astryx component Button Badge Text","astryx component Button --props --json","astryx component SideNav --package @astryxdesign/core"],"exitCodes":[{"code":0,"when":"success"},{"code":1,"when":"unknown component, category, or package; more than 100 selectors; any batch row is unresolved; or @astryxdesign/core cannot be resolved"}],"outsideProject":"same"},{"name":"discover","description":"Browse and search integrations: the ones you have and the ones you could add","arguments":[{"name":"query","required":false,"variadic":true,"description":""}],"options":[{"flag":"--components","description":"In the package list, print every component, and every other item, of each package instead of the first 10 and a \"+N more\" count. No effect on --json output or on a package, component, or search query.","type":"boolean","available":true},{"flag":"--type <kind>","description":"Only one kind: component, template, doc, theme, codemod, or agent-doc. In the list, only packages that add it; in a search, only items of that kind.","type":"string","available":true},{"flag":"--installed","description":"Only what this project has. Cannot be set with --available.","type":"boolean","available":true},{"flag":"--available","description":"Only what this project could add. Cannot be set with --installed.","type":"boolean","available":true},{"flag":"--limit <n>","description":"Max number of search results, a positive integer (default 20).","type":"string","available":true}],"json":true,"available":true,"responseTypes":["discover.list","discover.detail","discover.detail.doc","discover.item","discover.search"],"examples":["astryx discover","astryx discover --components","astryx discover --type theme","astryx discover @acme/ui","astryx discover @acme/ui@2.1.0","astryx discover dashboard --type template --available"],"exitCodes":[{"code":0,"when":"success"},{"code":1,"when":"unknown package, version, component, or item; a malformed doc; an invalid --type or --limit; --installed with --available; or a blank query when packages are discovered"}],"outsideProject":"same"},{"name":"docs","description":"Print reference docs","arguments":[{"name":"topic","required":false,"variadic":false,"description":""},{"name":"section","required":false,"variadic":false,"description":""}],"options":[{"flag":"--list","description":"List every topic (the same as giving no topic)","type":"boolean","available":true},{"flag":"--index","description":"List the topic's sections and their keys instead of printing the topic","type":"boolean","available":true},{"flag":"--full","description":"Print the whole topic, even one whose whole text is over 16 KB, which otherwise lists its sections (`--json` returns the whole topic unless --index). Cannot be set with --index","type":"boolean","available":true},{"flag":"--depth <levels>","description":"How many levels of the docs tree to read below a namespace: 0 for the namespace alone, 1 for its children (what a read without --depth shows), all for everything below it. On the topic list, where a namespace otherwise lists alone, it names the docs below each one by the route that opens them, one line each. With it on a namespace read, --detail sets how much of each doc below shows: brief (one line each, the default), compact (with its sections), or full; the topic list is one line per doc whatever the detail","type":"string","available":true}],"json":true,"available":true,"responseTypes":["docs.list","docs.detail","docs.index","docs.detail.section","docs.node","docs.skills","docs.skill"],"examples":["astryx docs","astryx docs --list","astryx docs theme","astryx docs theme --index","astryx docs spacing --json","astryx docs theme quick-start","astryx docs cli","astryx docs cli --depth all","astryx docs --depth all","astryx docs authoring --depth all --detail full","astryx docs cli/api/functions/search","astryx docs authoring/quick-start","astryx docs skills","astryx docs skills/astryx"],"exitCodes":[{"code":0,"when":"success"},{"code":1,"when":"unknown topic or route, a section that matches no section or more than one, a --depth that is not a number of levels or all, or --list given a topic or section"}],"outsideProject":"same"},{"name":"doctor","description":"Diagnose Astryx projects and integration packages","arguments":[],"options":[{"flag":"--built <path>","description":"Also check a finished build before you deliver it: a project folder, a build output folder, or one built HTML file. Fails when it does not use Astryx at all, and warns with each raw element, icon or custom style in its source.","type":"string","available":true}],"json":true,"available":true,"responseTypes":["doctor"],"examples":["astryx doctor","astryx doctor --json","astryx doctor --built dist","astryx doctor integration validate @acme/widgets","astryx doctor integration templates @acme/widgets","astryx doctor integration components @acme/widgets","astryx doctor integration docs @acme/widgets"],"exitCodes":[{"code":0,"when":"no checks failed (warnings are allowed)"},{"code":1,"when":"one or more checks failed"}],"outsideProject":"own","subcommands":[{"name":"doctor integration","description":"Check an integration package while authoring it","arguments":[],"options":[],"json":false,"available":true,"examples":["astryx doctor integration validate","astryx doctor integration templates","astryx doctor integration components","astryx doctor integration docs"],"exitCodes":[{"code":0,"when":"help is shown or the selected check has no errors"},{"code":1,"when":"the selected check reports an error"}],"subcommands":[{"name":"doctor integration components","description":"Check integration component names, replacements, and documented props","arguments":[{"name":"package","required":false,"variadic":false,"description":"Installed integration package name; omit to check the package in the current directory."}],"options":[],"json":true,"available":true,"responseTypes":["integration.component-conflicts"],"examples":["astryx doctor integration components","astryx doctor integration components @acme/widgets --json"],"exitCodes":[{"code":0,"when":"the check completed; component name conflicts, replaces findings for a package without the CLI range, props that differ from the code, and links that name no doc are warnings"},{"code":1,"when":"the integration is invalid, Core cannot be resolved, or a package that declares the CLI range has an invalid replaces"}],"outsideProject":"same"},{"name":"doctor integration docs","description":"Check an integration's docs: the docs tree they add, every link, and overlaps with Core topics","arguments":[{"name":"package","required":false,"variadic":false,"description":"Installed integration package name; omit to check the package in the current directory."}],"options":[],"json":true,"available":true,"responseTypes":["integration.doc-conflicts"],"examples":["astryx doctor integration docs","astryx doctor integration docs @acme/widgets --json"],"exitCodes":[{"code":0,"when":"all Core overlaps are explicitly declared or no overlap exists"},{"code":1,"when":"an overlap is accidental, a doc is invalid, a namespace or placement fails, or a reference block cannot include what it names. A link that names no doc is a warning, and does not change the exit code"}],"outsideProject":"same"},{"name":"doctor integration templates","description":"Validate integration template replacements and Core id overlaps","arguments":[{"name":"package","required":false,"variadic":false,"description":"Installed integration package name; omit to check the package in the current directory."}],"options":[],"json":true,"available":true,"responseTypes":["integration.template-conflicts"],"examples":["astryx doctor integration templates","astryx doctor integration templates @acme/widgets --json"],"exitCodes":[{"code":0,"when":"replacement declarations are valid; undeclared id conflicts are warnings"},{"code":1,"when":"the integration, a template, or a replacement declaration is invalid"}],"outsideProject":"same"},{"name":"doctor integration validate","description":"Validate an integration manifest and its contributions","arguments":[{"name":"package","required":false,"variadic":false,"description":"Installed integration package name; omit to validate the package in the current directory."}],"options":[],"json":true,"available":true,"responseTypes":["integration.validate"],"examples":["astryx doctor integration validate","astryx doctor integration validate @acme/widgets --json"],"exitCodes":[{"code":0,"when":"no error-severity issues (warnings, including doc type findings, are allowed)"},{"code":1,"when":"one or more error-severity issues"}],"outsideProject":"own"}]}]},{"name":"experimental","description":"[experimental] Try features that may change in a patch release: icon sets, one self-contained HTML file from a page built with Astryx components (not for other pages)","arguments":[],"options":[],"json":false,"available":true,"examples":["astryx experimental","astryx experimental icon delete","astryx experimental export page.tsx"],"exitCodes":[{"code":0,"when":"help is shown or a subcommand succeeds"},{"code":1,"when":"an unknown subcommand or a subcommand failure"}],"subcommands":[{"name":"experimental export","description":"[experimental] Export a page built with Astryx components as one self-contained HTML file, or turn one back into a page","arguments":[{"name":"file","required":false,"variadic":false,"description":""}],"options":[{"flag":"--out <file>","description":"Where to write: an .html file, or with --reverse a page module (default: page.tsx gives page.html beside it; with --reverse, page.html comes back into a new folder page-restored/). A relative path stays inside the current folder; when rendering, an absolute path may name any folder, and the render still never replaces a file it did not write","type":"string","available":true},{"flag":"--reverse","description":"Turn a rendered HTML file back into a page module, as experimental import does","type":"boolean","requires":["render.reverse"],"available":true},{"flag":"--title <text>","description":"The page's title (default: its first top-level heading, else the file name)","type":"string","available":true},{"flag":"--pictures","description":"Also take pictures of the written file to check how it looks, not to send: a phone in light and dark, and a desktop window, after the page’s script ran, with a browser already on the machine (the project’s Playwright, else Chrome or Chromium); with no browser, it says why and the file stands as written","type":"boolean","available":true},{"flag":"--overwrite","description":"With --reverse, replace the page module if it already exists (never a protected file; the files it imports always go into a new folder)","type":"boolean","available":true}],"json":true,"requires":["render.page"],"available":true,"responseTypes":["render.page","render.reverse"],"examples":["astryx docs cli/experimental/share-a-page","astryx experimental export src/app/page.tsx --out page.html","astryx experimental import page.html --out page.tsx","astryx --json experimental export page.tsx"],"exitCodes":[{"code":0,"when":"the file was written (warnings included)"},{"code":1,"when":"no file, a wrong extension, a missing file, a page that does not compile, has no default export, imports a package that is not installed, reads a browser API while rendering, throws, crashes Node, or takes over 60 seconds, or has a script that cannot be built for the browser (a module that needs Node); a page that uses no Astryx components or styles; a relative --out, or with --reverse any file to write, outside the current folder; an absolute --out that is a symbolic link; with --reverse, an existing output without --overwrite, a damaged embedded source, a file in a newer render format than this CLI reads, or HTML that is not an Astryx page"}],"outsideProject":"same"},{"name":"experimental icon","description":"[experimental] Find an icon by meaning, or build an icon set from a library (guide: astryx docs cli/experimental/icon-sets)","arguments":[{"name":"query","required":false,"variadic":true,"description":""}],"options":[{"flag":"--list","description":"List the installed icon sets and do nothing else; a query is refused","type":"boolean","available":true},{"flag":"--set <name>","description":"Search one set, by name or <package>/<set>; with --definitions, the set to check the meanings against","type":"string","available":true},{"flag":"--limit <n>","description":"Max number of matches, a positive integer (default 10)","type":"string","available":true},{"flag":"--definitions","description":"Every Astryx icon meaning, one line each: name, built in or not, how many bundled templates use it, whether the set maps it (--set, else the project's main set, else the package's only set), description, words","type":"boolean","available":true},{"flag":"--all-icons","description":"With --set and no words: every icon of that set, one line each (id, words, meanings)","type":"boolean","available":true}],"json":true,"available":true,"responseTypes":["icon.search","icon.detail","icon.definitions","icon.setIcons","icon.list"],"examples":["astryx experimental icon delete","astryx experimental icon outline/trash","astryx experimental icon --list --json","astryx experimental icon --set outline --all-icons","astryx experimental icon arrow --set outline --limit 3"],"exitCodes":[{"code":0,"when":"success (including zero matches)"},{"code":1,"when":"no query and no --list, a query with --list, a --limit that is not a positive integer, or a set or icon that is not installed"}],"outsideProject":"same","subcommands":[{"name":"experimental icon add","description":"[experimental] Add one icon you chose from a library to your icon set","arguments":[{"name":"export","required":false,"variadic":false,"description":""}],"options":[{"flag":"--from <module>","description":"The module the icon is exported from: a package, a subpath, or a ./ path to a file inside this package","type":"string","available":true},{"flag":"--definition <name>","description":"Map the icon to this icon meaning","type":"string","available":true},{"flag":"--new-definition <name>","description":"Add your set's own icon meaning, named in camelCase (aiHelper) or kebab-case (ai-helper), then map the icon to it; needs --description and --words","type":"string","available":true},{"flag":"--description <text>","description":"With --new-definition: what the icon is for","type":"string","available":true},{"flag":"--words <list>","description":"With --new-definition: comma-separated words people search for","type":"string","available":true},{"flag":"--default","description":"The module's default export is the icon; your set's module must re-export it under <export>","type":"boolean","available":true},{"flag":"--variant <name>","description":"Add the export as this variant of an existing icon: one of the set's declared variants, such as solid","type":"string","available":true},{"flag":"--all","description":"With --variant and --from, and no export: add that variant for every icon whose id the module exports, in one run","type":"boolean","available":true},{"flag":"--id <id>","description":"The icon's id, instead of the one its name gives","type":"string","available":true},{"flag":"--set <name>","description":"The set to edit, when the package ships several","type":"string","available":true}],"json":true,"available":true,"responseTypes":["icon.add","icon.addVariants","icon.definitionMatches","icon.search"],"examples":["astryx experimental icon add Bin --from @acme/glyph-library","astryx experimental icon add Bin --from @acme/glyph-library --definition delete","astryx experimental icon add --variant solid --from @heroicons/react/24/solid --all","astryx experimental icon add Dice5 --from @acme/glyph-library --new-definition random --description 'Pick something at random.' --words dice,shuffle,chance","astryx experimental icon add Bin --from @acme/glyph-library/solid --id bin --variant solid"],"exitCodes":[{"code":0,"when":"the icon is added, already present, or the matching meanings are listed, or, typed alone, an icon (or, with no icon set installed, an icon meaning) matches its whole name: it answers that search (`icon.search`) and writes nothing"},{"code":1,"when":"the export is missing or is data, the icon meaning is unknown, the id is taken, or the variant is not one the set declares"}],"outsideProject":"refuse"},{"name":"experimental icon map","description":"[experimental] Map an icon meaning to an icon of your set","arguments":[{"name":"definition","required":false,"variadic":false,"description":""},{"name":"icon","required":false,"variadic":false,"description":""}],"options":[{"flag":"--set <name>","description":"The set to edit, when the package ships several","type":"string","available":true},{"flag":"--remove","description":"Remove the meaning's entry; takes no icon","type":"boolean","available":true},{"flag":"--pairs <list>","description":"Many entries in one write: <definition>=<icon> pairs, comma-separated; checked together, all or none; an existing entry is replaced","type":"string","available":true}],"json":true,"available":true,"responseTypes":["icon.mapMany","icon.map","icon.search"],"examples":["astryx experimental icon map delete trash","astryx experimental icon map --pairs close=x-mark,error=x-circle,search=magnifying-glass","astryx experimental icon map delete --remove"],"exitCodes":[{"code":0,"when":"the entry is written, removed, or already as asked, or, typed alone, an icon (or, with no icon set installed, an icon meaning) matches its whole name: it answers that search (`icon.search`) and writes nothing"},{"code":1,"when":"the icon meaning is unknown, the set has no such icon, or no set is found"}],"outsideProject":"refuse"},{"name":"experimental icon new-definition","description":"[experimental] Add your icon set's own icon meaning","arguments":[{"name":"name","required":true,"variadic":false,"description":"The meaning's name, in camelCase (rocketLaunch) or kebab-case (rocket-launch)"}],"options":[{"flag":"--dry-run","description":"Validate and show planned writes without changing files","type":"boolean","available":true},{"flag":"--set <name>","description":"The icon set to add it to, when the package ships several","type":"string","available":true},{"flag":"--description <text>","description":"One sentence on what an icon with this meaning is for","type":"string","available":true},{"flag":"--words <list>","description":"Comma-separated words people search for","type":"string","available":true},{"flag":"--icon <id>","description":"Also map it to this icon of the set (its `map` entry)","type":"string","available":true}],"json":true,"available":true,"responseTypes":["icon.newDefinition","icon.search"],"examples":["astryx experimental icon new-definition random --description 'Pick something at random.' --words dice,shuffle,chance --icon dice-5"],"exitCodes":[{"code":0,"when":"the icon meaning is written or the dry run succeeds, or, typed alone, an icon (or, with no icon set installed, an icon meaning) matches its whole name: it answers that search (`icon.search`) and writes nothing"},{"code":1,"when":"the name is invalid or taken, the description or words are missing, or the set or icon is not found"}],"outsideProject":"refuse"},{"name":"experimental icon new-set","description":"[experimental] Start an icon set in your integration package","arguments":[{"name":"name","required":true,"variadic":false,"description":"The set name, in lowercase kebab-case (outline)"}],"options":[{"flag":"--dry-run","description":"Validate and show planned writes without changing files","type":"boolean","available":true},{"flag":"--from <module>","description":"A module whose every icon component the set wraps (a package, a subpath, or a ./ path); run again to refresh","type":"string","available":true},{"flag":"--exclude <names>","description":"With --from: comma-separated export names of the library that are not icons","type":"string","available":true},{"flag":"--adapter <module>#<export>","description":"A function in your package that turns one icon export that is not a component (an icon data object, an SVG string) into one, as ./<path>#<export>; it is declared in the set's data file, and with --from every data export of the library becomes an icon through it","type":"string","available":true},{"flag":"--variants <list>","description":"Comma-separated variants the set supplies, such as outline,solid","type":"string","available":true},{"flag":"--default-variant <variant>","description":"With --variants: the variant each icon's own export draws. When omitted: in a library whose export names carry look words, the look the icons draw (the library's usual default for a new set), which --variants must list; otherwise the set's current default, which --variants must list when the set has icons, else, on a set without icons, the first variant. A set with icons changes it only with --from, and only in a library whose export names carry look words","type":"string","available":true},{"flag":"--display-name <text>","description":"The set's display name (the name in title case when omitted)","type":"string","available":true},{"flag":"--description <text>","description":"The set's one-line description","type":"string","available":true}],"json":true,"available":true,"responseTypes":["icon.newSet","icon.search"],"examples":["astryx experimental icon new-set outline","astryx experimental icon new-set outline --from @acme/glyph-library","astryx experimental icon new-set heroicons --from @heroicons/react/24/outline --variants outline,solid --default-variant outline","astryx experimental icon new-set outline --dry-run --json"],"exitCodes":[{"code":0,"when":"the set is written or the dry run succeeds, or, typed alone, an icon (or, with no icon set installed, an icon meaning) matches its whole name: it answers that search (`icon.search`) and writes nothing"},{"code":1,"when":"the name, options, package, or target files are invalid or conflict"}],"outsideProject":"refuse"},{"name":"experimental icon use","description":"[experimental] Choose the project's main icon set, backups, and look","arguments":[{"name":"set","required":true,"variadic":false,"description":""}],"options":[{"flag":"--backup <set...>","description":"Backup sets, by name or `<package>/<set>`, in the order a copied template tries them after the main set.","type":"string","available":true},{"flag":"--variant <variant>","description":"The look every icon draws, such as `outline` or `filled`: one of the main set's variants. Leave it out to remove `experimental.iconVariant`, so each set draws its default look.","type":"string","available":true}],"json":true,"available":true,"responseTypes":["icon.use","icon.search"],"examples":["astryx experimental icon use outline","astryx experimental icon use outline --backup @acme/brand-icons/brand","astryx experimental icon use brand --variant filled","astryx experimental icon use @acme/icons/outline"],"exitCodes":[{"code":0,"when":"experimental.iconSet (and experimental.iconVariant) is written, or already names the sets and the look, or, typed alone, an icon (or, with no icon set installed, an icon meaning) matches its whole name: it answers that search (`icon.search`) and writes nothing"},{"code":1,"when":"a set is not installed, two packages ship it, a set is named twice, the main set declares no variant `--variant` names, the config cannot be updated (not a static object literal, or it spreads another object, which you then edit by hand), or the config is protected (a symbolic link, or marked generated, vendored, or ignored: `ERR_CODEMOD_PROTECTED`, naming the declaration)"}],"outsideProject":"refuse"}]},{"name":"experimental import","description":"[experimental] Turn an HTML file that experimental export wrote back into its page","arguments":[{"name":"file","required":false,"variadic":false,"description":""}],"options":[{"flag":"--out <file>","description":"Where to write the page module (default: page.html comes back into a new folder page-restored/); it stays inside the current folder","type":"string","available":true},{"flag":"--overwrite","description":"Replace the page module if it already exists (never a protected file; the files it imports always go into a new folder)","type":"boolean","available":true}],"json":true,"requires":["render.reverse"],"available":true,"responseTypes":["render.page","render.reverse"],"examples":["astryx experimental import page.html --out page.tsx","astryx --json experimental import page.html"],"exitCodes":[{"code":0,"when":"the page was written"},{"code":1,"when":"no file, a wrong extension, a missing file, any file to write outside the current folder, an existing output without --overwrite, a damaged embedded source, a file in a newer render format than this CLI reads, or HTML that is not an Astryx page"}],"outsideProject":"same"}]},{"name":"gap-report","description":"Report a missing component or feature to the package that owns it","arguments":[{"name":"component","required":false,"variadic":false,"description":"Component or design-system area the gap is about, up to 120 characters. Required unless --list-categories is set."}],"options":[{"flag":"--category <category>","description":"Gap category (run --list-categories for values). Required unless --list-categories is set.","type":"string","available":true},{"flag":"--reason <reason>","description":"What capability was missing or difficult, up to 2000 characters. Required unless --list-categories is set.","type":"string","available":true},{"flag":"--additional-context <text>","description":"Optional additional context, up to 8000 characters","type":"string","available":true},{"flag":"--package <pkg>","description":"Package that owns the gap: @astryxdesign/core or a loaded integration. Overrides automatic routing, which picks the integration whose component replaces the named Core component, else the one package that provides it, else Core; needed when more than one package provides the component","type":"string","available":true},{"flag":"--confirm-public","description":"Allow public delivery: public handlers run, and a GitHub issues URL gets an issue filed with your gh login","type":"boolean","available":true},{"flag":"--to <package>","description":"Send the report only to this loaded integration's issues URL, as the person chose; the destinations the output lists are the choices","type":"string","available":true},{"flag":"--list-categories","description":"List valid report categories, and the destinations when there is more than one, without filing; the component and the other gap-report options are refused with ERR_INVALID_ARGUMENT","type":"boolean","available":true}],"json":true,"available":true,"responseTypes":["gap-report.categories","gap-report.file"],"examples":["astryx gap-report --list-categories","astryx gap-report Button --category missing_variant --reason 'Need a compact size'","astryx gap-report Button --category missing_variant --reason 'Need a compact size' --to @acme/widgets"],"exitCodes":[{"code":0,"when":"filed, routed-only, confirmation required, skipped, or categories listed"},{"code":1,"when":"failed or partial delivery, invalid input, or ambiguous routing"}],"outsideProject":"same"},{"name":"hook","description":"List hooks or print hook docs","arguments":[{"name":"name","required":false,"variadic":false,"description":""}],"options":[{"flag":"--list","description":"List all hooks grouped by category","type":"boolean","available":true},{"flag":"--category <category>","description":"List hooks in a specific category","type":"string","available":true},{"flag":"--params","description":"Print only the parameters table","type":"boolean","available":true}],"json":true,"available":true,"responseTypes":["hook.list","hook.detail","hook.detail.params"],"examples":["astryx hook --list","astryx hook useFocusTrap --json"],"exitCodes":[{"code":0,"when":"success"},{"code":1,"when":"unknown hook or category, or @astryxdesign/core cannot be resolved"}],"outsideProject":"same"},{"name":"init","description":"Initialize the design system in your project","arguments":[],"options":[{"flag":"--features <list>","description":"Comma-separated features: agents (agent docs), theme (writes theme.template.ts), template (prints the page-building commands; writes no file). An unknown feature exits 1 with ERR_UNKNOWN_FEATURE. Refused with --all or --remove","type":"string","available":true},{"flag":"--all","description":"Install all features (agents, theme, template); refused with --features. Prints their guidance instead of the getting-started steps","type":"boolean","available":true},{"flag":"--to <places>","description":"Where the Astryx skill goes, a comma list: agents-md (default), skills, user (same as --user), or a folder path. Saved, so later runs keep each place current (a deleted copy in a folder outside the project stays deleted); moving off a place removes the skill there. Which to pick: `astryx docs cli/skill-places`","type":"string","available":true},{"flag":"--once","description":"With --to, a copy saved nowhere, so init and upgrade never refresh it; doctor still reports one in the project skills folders beside the AGENTS.md block as a second copy. Refused without --to, with user, and for agents-md or a place already saved","type":"boolean","available":true},{"flag":"--remove","description":"Remove the skill from the project's saved places (with --to, the places named) and drop them from what is saved; without --to, or with agents-md, also the block from AGENTS.md, CLAUDE.md, .claude/CLAUDE.md, GEMINI.md, .cursorrules, .hermes.md and HERMES.md at the project root (where init writes them) and in this folder. A skill file you edited is kept; folders saved for this computer stay unless --to names them. --features, --all, --agent, --agent-docs-path and --once are refused","type":"boolean","available":true},{"flag":"--remove-agents","description":"The same as --remove","type":"boolean","available":true},{"flag":"--user","description":"Write the computer-level agent skill (~/.agents/skills/astryx/SKILL.md, linked into the skill folders of other agents) instead of setting up this folder; with --remove, remove it and turn it off. --features, --all, --agent and --agent-docs-path are refused","type":"boolean","available":true},{"flag":"--agent <tool>","description":"Which agent files get the block: claude (the Claude Code file), cursor (.cursorrules, else AGENTS.md), codex and muse (AGENTS.md), hermes (.hermes.md or HERMES.md, else AGENTS.md), all (every existing agent file; GEMINI.md keeps its import of AGENTS.md). An unknown tool exits 1 with ERR_UNKNOWN_AGENT. Used only when agent docs are installed; --agent-docs-path takes precedence","type":"string","available":true},{"flag":"--agent-docs-path <path...>","description":"Write the block to these files instead, inside the project; takes precedence over --agent. A path outside the project writes no agent docs and exits 1. Used only when agent docs are installed","type":"string","available":true}],"json":true,"available":true,"responseTypes":["init.run","init.remove","init.user"],"examples":["astryx init","astryx init --all","astryx init --json","astryx init --to skills","astryx init --to user","astryx init --to ./bundle --once","astryx init --remove","astryx init --remove --to user"],"exitCodes":[{"code":0,"when":"success, including agent docs left unwritten in a soft case (such as the home folder, or a file that resolves outside the project), reported as docsError with a note"},{"code":1,"when":"an unknown --agent (ERR_UNKNOWN_AGENT) or feature, an --agent-docs-path outside the project, or options that cannot be combined (ERR_INVALID_ARGUMENT); at the project root, an agent file 0.7.1 also wrote there that resolves outside the project (ERR_PATH_TRAVERSAL, nothing written); with --user, a folder of the computer-level agent text the user cannot write (ERR_WRITE_FAILED)"}],"outsideProject":"own"},{"name":"integration","description":"Author and verify an Astryx integration package","arguments":[],"options":[],"json":false,"available":true,"examples":["astryx integration add component AcmeWidget","astryx integration check --strict","astryx integration verify"],"exitCodes":[{"code":0,"when":"help is shown or a subcommand succeeds"},{"code":1,"when":"an unknown subcommand is provided"}],"subcommands":[{"name":"integration add","description":"Add one working contribution to an integration package","arguments":[{"name":"kind","required":true,"variadic":false,"description":"component, doc, template, codemod, agent-doc, or theme","requires":{"theme":["themes.scaffold"]}},{"name":"name","required":true,"variadic":false,"description":"Contribution name: PascalCase for component (AcmeWidget); lowercase kebab-case for template, codemod, and theme (account-card); letters, digits, _ and - for doc; the literal guidance line for agent-doc"}],"options":[{"flag":"--dry-run","description":"Validate and show planned writes without changing files","type":"boolean","available":true},{"flag":"--type <type>","description":"Template type: page (default) or block; only valid for template","type":"string","available":true},{"flag":"--replaces <topic>","description":"Existing doc topic this one replaces (letters, digits, _ and -); only valid for doc and not with --extends","type":"string","available":true},{"flag":"--extends <topic>","description":"Existing doc topic this one extends (letters, digits, _ and -); only valid for doc and not with --replaces","type":"string","available":true},{"flag":"--parent <namespace>","description":"Namespace of this package to place the doc in, as a guide in its `guides` slot; writes the namespace doc when it is missing, and declares the CLI that reads it as an optional `@astryxdesign/cli` peer. Only valid for doc, and not with --replaces or --extends","type":"string","available":true},{"flag":"--from <theme>","description":"Existing theme slug to fork as a starting point instead of a blank scaffold; the new theme copies the base and has no link back, and package.json `dependencies` gains the npm packages the copied files import (other than Core and React). Only valid for theme","type":"string","available":true},{"flag":"--to <version>","description":"Exact semver of the @astryxdesign/core version whose upgrade runs the codemod (e.g. 0.7.0); required for codemod and only valid there","type":"string","available":true}],"json":true,"available":true,"responseTypes":["integration.add"],"examples":["astryx integration add component AcmeWidget --dry-run --json","astryx integration add component AcmeWidget","astryx integration add doc deploying","astryx integration add template acme-dashboard","astryx integration add template account-card --type block","astryx integration add doc acme-getting-started --replaces getting-started","astryx integration add doc acme-theming --extends theme","astryx integration add doc releasing --parent acme","astryx integration add codemod rename-widget --to 1.2.0","astryx integration add agent-doc 'Run acme verify before finishing.'","astryx integration add theme ocean","astryx integration add theme ocean --from neutral"],"exitCodes":[{"code":0,"when":"the contribution is written or the dry run succeeds"},{"code":1,"when":"the kind, name, options, package, or target files are invalid or conflict"}],"outsideProject":"refuse"},{"name":"integration check","description":"The CI check for an integration package's own build: every source check, run in continuous integration or a typecheck script, against the package in the current folder","arguments":[],"options":[{"flag":"--strict","description":"Also exit 1 on any warning and on any check that did not run. A new check or failure code joins only in a minor release, named in the release notes; until then, a malformed `cliCommand` or `installGuidance` is reported as a note (`invalid_cli_command`, `invalid_install_guidance`) that fails nothing.","type":"boolean","available":true},{"flag":"--next","description":"Also count the findings the next minor release turns into warnings (the notes marked `next`) as warnings now, so `--strict --next` fails on them. Run it to fix them ahead of the release; every run says how many there are.","type":"boolean","available":true}],"json":true,"available":true,"responseTypes":["integration.check"],"examples":["integration check --strict","integration check","integration check --strict --next","integration check --strict --json","integration verify"],"exitCodes":[{"code":0,"when":"no check fails on its own; with --strict, also no warning, and every check ran"},{"code":1,"when":"a check fails on its own (an error); with --strict, also any warning, or a check that did not run"}],"outsideProject":"own"},{"name":"integration pack","description":"Deprecated: the old name of `integration verify`","arguments":[],"options":[{"flag":"--check","description":"Run the check. Required, as before.","type":"boolean","available":true}],"json":true,"available":true,"responseTypes":["integration.pack-check"],"examples":["astryx integration pack --check"],"exitCodes":[{"code":0,"when":"the packed package exposes the same valid contributions"},{"code":1,"when":"--check is omitted or the tarball is incomplete or invalid"}],"outsideProject":"own"},{"name":"integration verify","description":"Check the package the way npm will publish it, before you publish","arguments":[],"options":[],"json":true,"available":true,"responseTypes":["integration.pack-check"],"examples":["astryx integration verify","astryx integration verify --json"],"exitCodes":[{"code":0,"when":"the packed package exposes the same valid contributions"},{"code":1,"when":"the tarball is incomplete or invalid"}],"outsideProject":"own"}]},{"name":"manifest","description":"Print the full CLI capability manifest (use with --json)","arguments":[],"options":[],"json":true,"available":true,"responseTypes":["manifest"],"examples":["astryx manifest --json","astryx --json"],"exitCodes":[{"code":0,"when":"success"},{"code":1,"when":"the manifest cannot be generated"}],"outsideProject":"same"},{"name":"mcp","description":"For AI tools that cannot run commands: serve every astryx command as an MCP tool, over stdio","arguments":[],"options":[{"flag":"--docs-only","description":"Serve only the commands that read the docs (search, build, component, hook, docs, template, discover, theme list and theme targets), one message at a time, without the inputs that name a folder, a file to write or a package to read","type":"boolean","available":true}],"json":false,"available":true,"examples":["astryx mcp","astryx mcp --docs-only"],"exitCodes":[{"code":0,"when":"the client closed the connection"},{"code":1,"when":"--json was given, or the tools could not be read from the CLI"}],"outsideProject":"same"},{"name":"search","description":"Search components, hooks, docs, templates, and themes in one ranked list","arguments":[{"name":"query","required":true,"variadic":true,"description":""}],"options":[{"flag":"--type <domain>","description":"Filter to one domain (component|hook|doc|template|theme)","type":"string","available":true},{"flag":"--limit <n>","description":"Max number of results, a positive integer (default 20)","type":"string","available":true},{"flag":"--verbose","description":"Also print each result's score and match reason, and its whole description","type":"boolean","available":true}],"json":true,"available":true,"responseTypes":["search"],"examples":["astryx search button","astryx search dark mode --type doc","astryx search \"data table\" --type template --json","astryx search warm --type theme"],"exitCodes":[{"code":0,"when":"success (including zero matches)"},{"code":1,"when":"invalid --type, a --limit that is not a positive integer, or --type component, hook, or template where @astryxdesign/core cannot be found"}],"outsideProject":"same"},{"name":"swizzle","description":"Copy component source for customization","arguments":[{"name":"component","required":false,"variadic":false,"description":""}],"options":[{"flag":"--output <dir>","description":"Output directory","type":"string","default":"./components/astryx","available":true},{"flag":"--package <pkg>","description":"Scope to a specific owning package. Use @astryxdesign/core to copy an original replaced by an integration component","type":"string","available":true},{"flag":"--list","description":"List the swizzlable Core components, including any that an integration component replaces","type":"boolean","available":true},{"flag":"-f, --overwrite","description":"Replace the component's existing files. Without it, existing files fail the command with ERR_FILE_EXISTS and nothing is written. A helper an earlier swizzle wrote is reused when it is the same and is never replaced by a copy that carries it: a different one stays, and this copy writes its own under a version-suffixed name. Swizzling the component whose folder holds that helper counts it as one of that component's own files. A changed private attribute owner module, or a style module it imports, fails the command without --overwrite and is replaced with it","type":"boolean","available":true}],"json":true,"available":true,"responseTypes":["swizzle.list","swizzle.copy"],"examples":["astryx swizzle --list","astryx swizzle Button","astryx swizzle SideNav --package @astryxdesign/core"],"exitCodes":[{"code":0,"when":"success"},{"code":1,"when":"unknown or ambiguous component, no source on disk, a path escape, or existing files without --overwrite"}],"outsideProject":"refuse"},{"name":"template","description":"List, show, or scaffold page and block templates","arguments":[{"name":"name","required":false,"variadic":false,"description":"Template id (see --list). Omit it to list the templates."},{"name":"path","required":false,"variadic":false,"description":"Where to scaffold the template, inside the project root: a relative path, or an absolute path inside the project, which is written as its relative path. An absolute path in the system temp folder (such as /tmp/dashboard) takes a scratch copy, outside the project. Any other path outside the project is refused. A path that starts with ~/ names the home folder, as a shell reads it, and follows the same rules. A path that ends in .tsx, .ts, .jsx, .js, .mjs, .cjs, .css, .scss, .json, .md or .html is the file to write; any other path is a directory, which receives page.tsx for a page template or the block's own file name for a block. Omit it to print the source."}],"options":[{"flag":"--list","description":"List available templates (narrow with --type and --package) and do nothing else: <name>, <path>, --skeleton and --overwrite are refused","type":"boolean","available":true},{"flag":"--type <type>","description":"Filter by template type: page or block","type":"string","available":true},{"flag":"--package <pkg>","description":"Narrow to templates from a specific package. Use @astryxdesign/core to select an original hidden by an integration replacement.","type":"string","available":true},{"flag":"--skeleton","description":"Show layout skeleton with spatial annotations (padding, gap, nesting) instead of the source. Needs <name>. It writes nothing, so <path> and --overwrite are refused with ERR_INVALID_ARGUMENT","type":"boolean","requires":["templates.skeleton"],"available":true},{"flag":"--cdn [path]","description":"Write the no-build-step CDN starter page and do nothing else: <name>, --list, --skeleton, --type and --package are refused. The page goes to the --cdn value, else to <path>, else cdn.template.html, and that path is always the file itself; a path that starts with ~/ names the home folder. A value right after --cdn (anything not starting with -) is taken as that path","type":"string","requires":["templates.standalonePage"],"available":true},{"flag":"-f, --overwrite","description":"Replace an existing target file. Without it an existing file is refused (ERR_FILE_EXISTS) and an existing CDN page is left as is","type":"boolean","available":true}],"json":true,"available":true,"responseTypes":["template.list","template.show","template.skeleton","template.copy","template.cdn"],"examples":["astryx template --json","astryx --json template --list --package @astryxdesign/core","astryx template dashboard ./src/app","astryx template shell-side-nav ./src/app --package @astryxdesign/core","astryx template --cdn","astryx template --cdn public/demo.html"],"exitCodes":[{"code":0,"when":"success, including a CDN page left untouched because it already exists"},{"code":1,"when":"unknown or ambiguous template, no source, a path escape, an existing target without --overwrite, or --list with a type outside page or block or a package that provides no templates"}],"outsideProject":"same"},{"name":"theme","description":"Add, switch, build, and author themes","arguments":[],"options":[],"json":false,"available":true,"examples":["astryx theme list","astryx theme add ocean","astryx theme use ocean","astryx theme eject ocean","astryx theme palette generate palette.config.json","astryx theme targets"],"exitCodes":[{"code":0,"when":"help is shown or a subcommand succeeds"},{"code":1,"when":"an unknown subcommand or a subcommand failure"}],"subcommands":[{"name":"theme add","description":"Add a built theme to the app. To copy a theme's source as an editable fork, run `theme eject <slug> [path] [--overwrite]`.","arguments":[{"name":"slug","required":false,"variadic":false,"description":""}],"options":[{"flag":"--list","description":"List available themes","type":"boolean","available":true},{"flag":"--import","description":"Compatibility no-op; the built theme is added with or without this flag","type":"boolean","available":true},{"flag":"--package <package>","description":"Select the package that owns the theme","type":"string","available":true}],"json":true,"requires":["themes.appModule"],"available":true,"responseTypes":["theme.app","theme.list"],"examples":["astryx theme add ocean","astryx theme add ./ocean-theme.tgz","astryx theme add ocean --package @acme/themes"],"exitCodes":[{"code":0,"when":"the theme is listed or added"},{"code":1,"when":"the theme, its built imports, its record, a shared theme's source or name, or the option combination is invalid"}],"outsideProject":"own"},{"name":"theme build","description":"Compile standalone themes or one keyed theme family","arguments":[{"name":"files","required":true,"variadic":true,"description":""}],"options":[{"flag":"--family","description":"Build the selected extension family into one keyed CSS, JS, and declaration set, written beside the family root theme file, which must be inside the working directory to build (ERR_PATH_TRAVERSAL); --check only reads, so it compares outputs anywhere. The selected themes form one extends tree with one root: the base of every other member is selected, and the root may extend a theme the family does not select (such as an installed theme package), which its outputs carry as its standalone build does; a member whose base is missing is refused naming that base (ERR_THEME_INVALID). Requires --family-key; refused with --out or --watch (ERR_THEME_INVALID)","type":"boolean","available":true},{"flag":"--family-key <key>","description":"Lower-kebab filename stem required with --family and refused without it; must differ from every member name (ERR_THEME_INVALID)","type":"string","available":true},{"flag":"-o, --out <path>","description":"Output CSS file path, relative or absolute; the .js and .d.ts are written beside it (default: <theme name>.css next to the source). A folder, or a path ending in /, writes <theme name>.css into it. The path should end in .css: a TypeScript declaration file (.d.ts) or a stylesheet source map (.css.map) is refused with the .css path to give (ERR_INVALID_ARGUMENT), and nothing is written; any other name still builds, with a warning naming the .css path meant. A build never replaces the theme source (ERR_THEME_INVALID). Beside the source and at a path --out names, it replaces its own earlier outputs (beside the source, those of the CLI before it was named Astryx too), and the output of another theme source with a warning that names both sources; any other existing file, such as your own brand.css beside brand.ts, fails with ERR_FILE_EXISTS naming it, and nothing is written: build with --out, or move or rename the file. Into a folder the theme editor made (folder <slug>/ holds <slug>.settings.json), a source outside that folder builds there too, with a warning; to keep the editor folder to its own theme, build beside the source, or pass an --out outside it. A build writes only inside the working directory, the defaults beside the source too (ERR_PATH_TRAVERSAL); --check writes nothing, so it compares outputs anywhere and refuses only a relative path that escapes the working directory. Single theme only: refused with more than one file or with --family (ERR_THEME_INVALID)","type":"string","available":true},{"flag":"--icons-specifier <specifier>","description":"Override the icon-registry import in the generated JS module, for example ./icons.mjs; the build then does not compile the registry (default: a TypeScript or JSX registry's compiled copy in <name>.modules/, or a plain JavaScript registry's own path). With --family it applies to every member's icon import","type":"string","available":true},{"flag":"-w, --watch","description":"Rebuild automatically when the theme source, or a local file it imports, changes (Ctrl-C to stop). Refused with --check, --family, or --json (ERR_THEME_INVALID)","type":"boolean","available":true},{"flag":"-c, --check","description":"Verify the committed outputs match the source without writing; exit non-zero if stale. Composes with --family and several files; refused with --watch (ERR_THEME_INVALID)","type":"boolean","available":true}],"json":true,"requires":["themes.compile"],"available":true,"responseTypes":["theme.build","theme.build.check","theme.build.batch"],"examples":["astryx theme build ./src/themes/ocean.ts --out ./dist/ocean.css","astryx theme build --family ./themes/ocean.mjs ./themes/ocean-calm.mjs --family-key ocean-family","astryx theme build ./src/themes/*.ts","astryx theme build ./src/themes/ocean.ts --check","astryx theme build ./src/themes/ocean.ts --icons-specifier ./icons.mjs"],"exitCodes":[{"code":0,"when":"the theme builds, or --check finds the outputs up to date"},{"code":1,"when":"a build or validation error (an error envelope), or --check finds stale or missing outputs (the check result, with upToDate false, the stale files and code ERR_THEME_STALE)"}],"outsideProject":"same"},{"name":"theme eject","description":"Fork a theme as editable local source","arguments":[{"name":"slug","required":true,"variadic":false,"description":""},{"name":"path","required":false,"variadic":false,"description":""}],"options":[{"flag":"-f, --overwrite","description":"Replace the existing files of an earlier fork of the same theme. Without it, an existing file fails with ERR_FILE_EXISTS and nothing is written","type":"boolean","available":true},{"flag":"--package <package>","description":"Select the package that owns the theme","type":"string","available":true}],"json":true,"available":true,"responseTypes":["theme.eject"],"examples":["astryx theme eject ocean","astryx theme eject ocean src/themes/my-ocean --package @acme/themes"],"exitCodes":[{"code":0,"when":"all source and descriptor files are written"},{"code":1,"when":"the theme is unknown or ambiguous, a path escapes, a source file is missing, a destination exists, or the folder holds another theme"}],"outsideProject":"same"},{"name":"theme list","description":"List themes available to add","arguments":[],"options":[{"flag":"--package <package>","description":"Show only themes owned by this package","type":"string","available":true}],"json":true,"available":true,"responseTypes":["theme.list"],"examples":["astryx theme list --json","astryx theme list --package @acme/themes"],"exitCodes":[{"code":0,"when":"success"},{"code":1,"when":"a bundled or installed theme descriptor cannot be read, or the generated theme module exists and its record cannot be read"}],"outsideProject":"same"},{"name":"theme palette","description":"Create and work with theme-owned color palettes","arguments":[],"options":[],"json":false,"available":true,"examples":["astryx theme palette generate palette.config.json"],"exitCodes":[{"code":0,"when":"help is shown or a subcommand succeeds"},{"code":1,"when":"an unknown subcommand is provided"}],"subcommands":[{"name":"theme palette generate","description":"Generate an OKLCH palette candidate for human review","arguments":[{"name":"config","required":true,"variadic":false,"description":""}],"options":[{"flag":"-o, --out <path>","description":"Write a candidate TypeScript or JSON file and a sibling receipt","type":"string","available":true},{"flag":"--preview <path>","description":"Write a self-contained HTML preview page; the path must end in .html","type":"string","available":true},{"flag":"-f, --overwrite","description":"Replace existing candidate, receipt, and preview files. Without it, if any of them exists, nothing is written","type":"boolean","available":true}],"json":true,"available":true,"responseTypes":["theme.palette.generate"],"examples":["astryx theme palette generate themes/ocean/palette.config.json","astryx theme palette generate themes/ocean/palette.config.json --out themes/ocean/tokens/ocean.palette.ts","astryx theme palette generate themes/ocean/palette.config.json --out themes/ocean/tokens/ocean.palette.ts --preview themes/ocean/tokens/ocean.palette.html"],"exitCodes":[{"code":0,"when":"a candidate is produced or existing output is left untouched"},{"code":1,"when":"the request is invalid or output cannot be written safely"}],"outsideProject":"same"}]},{"name":"theme remove","description":"Remove a theme from the app","arguments":[{"name":"slug","required":true,"variadic":false,"description":""}],"options":[],"json":true,"requires":["themes.appModule"],"available":true,"responseTypes":["theme.app"],"examples":["astryx theme remove ocean"],"exitCodes":[{"code":0,"when":"the module is regenerated without the theme; or, for the only added theme, the module is removed and the lines the app root must drop are printed"},{"code":1,"when":"the theme is not added; it is the default and other themes are still added (choose another default with theme use first); it is the only added theme and its module has changes the CLI did not write; or state is invalid"}],"outsideProject":"refuse"},{"name":"theme targets","description":"List the component theming targets a theme can override","arguments":[{"name":"filter","required":false,"variadic":false,"description":""}],"options":[],"json":true,"requires":["themes.targets"],"available":true,"responseTypes":["theme.targets"],"examples":["astryx theme targets","astryx theme targets Switch","astryx theme targets thumb","astryx --json theme targets"],"exitCodes":[{"code":0,"when":"success"},{"code":1,"when":"a filter matches no target, or core cannot be resolved"}],"outsideProject":"same"},{"name":"theme template","description":"Write the annotated theme template into your project","arguments":[{"name":"path","required":false,"variadic":false,"description":""}],"options":[{"flag":"-f, --overwrite","description":"Replace an existing copy of the template or theme source file. Any other .ts file, such as util.ts, or a file in a folder the theme editor made, fails with ERR_FILE_EXISTS and is left as it was. A path that is not .ts, such as package.json, fails with ERR_INVALID_ARGUMENT, with or without --overwrite","type":"boolean","available":true}],"json":true,"requires":["themes.template"],"available":true,"responseTypes":["theme.template"],"examples":["astryx theme template","astryx theme template src/themes/starter.ts"],"exitCodes":[{"code":0,"when":"success, including when an existing file was left untouched"},{"code":1,"when":"the target path escapes the project, is blank, a folder or not a .ts file, --overwrite names a file that is not a theme template or source, or the file cannot be written"}],"outsideProject":"same"},{"name":"theme use","description":"Choose the app default from its added themes","arguments":[{"name":"slug","required":true,"variadic":false,"description":""}],"options":[],"json":true,"requires":["themes.appModule"],"available":true,"responseTypes":["theme.app"],"examples":["astryx theme use ocean"],"exitCodes":[{"code":0,"when":"the module is regenerated with the selected default"},{"code":1,"when":"the theme is not added or state is invalid"}],"outsideProject":"refuse"}]},{"name":"upgrade","description":"Update your code after upgrading Astryx, and refresh ShadCN-copied components","arguments":[],"options":[{"flag":"--from <version>","description":"Previous version before the dependency upgrade; required unless --list or --registry is set. The target is the installed version of the run's active base: @astryxdesign/core, or legacy @xds/core when @astryxdesign/core is not installed, in a run on Core; the base's package in a run on another base, which runs no Core codemod and checks no copied composition","type":"string","available":true},{"flag":"--apply","description":"Write changes to disk; without it, the run is a dry run","type":"boolean","default":false,"available":true},{"flag":"--force","description":"Run codemods even if --from is newer than the installed version","type":"boolean","default":false,"available":true},{"flag":"--codemod <name>","description":"Run only the named codemod. Optional codemods run only when named here; a normal run skips them. Also skips the check of ShadCN-copied compositions. An unknown name exits 1 with ERR_UNKNOWN_CODEMOD when the version range has codemods","type":"string","available":true},{"flag":"--skip-codemod <name...>","description":"Exclude named codemods (repeatable). Re-run past a failed codemod by skipping it.","type":"string","available":true},{"flag":"--integration <package>","description":"Explicit integration specifier (repeatable). Resolved beneath node_modules; absolute paths and `.` or `..` segments are rejected.","type":"string","default":[],"available":true},{"flag":"--path <dir>","description":"Source directory to scan, relative to where you run the command, however you spell it. Without --path, the project's src folder, from any folder in the project","type":"string","default":"./src at the project root","available":true},{"flag":"--install-deps","description":"Install jscodeshift when it is missing. Without it, a missing jscodeshift fails the command with ERR_DEP_MISSING","type":"boolean","default":false,"available":true},{"flag":"--registry","description":"Only update ShadCN-copied compositions from their install receipts: unchanged files are updated, edits that do not overlap are merged, and conflicts are left untouched; --from is not required. Combining it with --list, --from, --force, --codemod, --skip-codemod, --integration or --install-deps exits 1 with ERR_INVALID_ARGUMENT","type":"boolean","default":false,"available":true},{"flag":"--list","description":"List available codemods and do nothing else. Every other flag is refused, as is --registry (exit 1)","type":"boolean","default":false,"available":true}],"json":true,"available":true,"responseTypes":["upgrade.list","upgrade.registry","upgrade.status","upgrade.run"],"examples":["astryx upgrade --list --json","astryx upgrade --registry --apply","astryx upgrade --from 0.1.0 --apply"],"exitCodes":[{"code":0,"when":"success, including complete dry-run previews and runs whose only findings are manual migrations"},{"code":1,"when":"missing or invalid --from, --registry with --list or a migration flag, a --path escape, no installed @astryxdesign/core (or legacy @xds/core) in a run on Core, or no installed active base in a run on another base, jscodeshift missing and not installed by --install-deps, an astryx.config that fails validation and that no pending config codemod repairs, an unreadable or invalid protection declaration, a protected file that still requires a codemod change, a generated file that must be regenerated, an unknown codemod, a codemod or post-codemod hook failure, or unresolved registry items"}],"outsideProject":"own"}],"jsonSupported":["blog","build","component","discover","docs","doctor","doctor integration components","doctor integration docs","doctor integration templates","doctor integration validate","experimental export","experimental icon","experimental icon add","experimental icon map","experimental icon new-definition","experimental icon new-set","experimental icon use","experimental import","gap-report","hook","init","integration add","integration check","integration pack","integration verify","manifest","search","swizzle","template","theme add","theme build","theme eject","theme list","theme palette generate","theme remove","theme targets","theme template","theme use","upgrade"],"globalMode":{"docs":"astryx docs global","summary":"In a folder that belongs to a project, the project's own CLI answers: this copy hands the run to it. In a project with no CLI of its own, and outside any project, this copy answers. A copy installed for the computer checks the registry for a newer release once a day in the background, and keeps one agent skill file in the home folder."},"base":{"name":"@astryxdesign/core","version":"0.7.19-canary.g8cf5aa3","steps":["themes.targets","themes.compile","themes.appModule","themes.template","themes.scaffold","themes.checks","templates.skeleton","templates.standalonePage","render.page","render.reverse","icons.appModule","setup.guide"]},"responseTypes":{"blog":["blog.list","blog.detail"],"build":["build.help","build.kit"],"component":["component.list","component.batch","component.detail","component.detail.props","component.detail.source","component.detail.showcase","component.detail.blocks"],"discover":["discover.list","discover.detail","discover.detail.doc","discover.item","discover.search"],"docs":["docs.list","docs.detail","docs.index","docs.detail.section","docs.node","docs.skills","docs.skill"],"doctor":["doctor"],"doctor integration components":["integration.component-conflicts"],"doctor integration docs":["integration.doc-conflicts"],"doctor integration templates":["integration.template-conflicts"],"doctor integration validate":["integration.validate"],"experimental export":["render.page","render.reverse"],"experimental icon":["icon.search","icon.detail","icon.definitions","icon.setIcons","icon.list"],"experimental icon add":["icon.add","icon.addVariants","icon.definitionMatches","icon.search"],"experimental icon map":["icon.mapMany","icon.map","icon.search"],"experimental icon new-definition":["icon.newDefinition","icon.search"],"experimental icon new-set":["icon.newSet","icon.search"],"experimental icon use":["icon.use","icon.search"],"experimental import":["render.page","render.reverse"],"gap-report":["gap-report.categories","gap-report.file"],"hook":["hook.list","hook.detail","hook.detail.params"],"init":["init.run","init.remove","init.user"],"integration add":["integration.add"],"integration check":["integration.check"],"integration pack":["integration.pack-check"],"integration verify":["integration.pack-check"],"manifest":["manifest"],"search":["search"],"swizzle":["swizzle.list","swizzle.copy"],"template":["template.list","template.show","template.skeleton","template.copy","template.cdn"],"theme add":["theme.app","theme.list"],"theme build":["theme.build","theme.build.check","theme.build.batch"],"theme eject":["theme.eject"],"theme list":["theme.list"],"theme palette generate":["theme.palette.generate"],"theme remove":["theme.app"],"theme targets":["theme.targets"],"theme template":["theme.template"],"theme use":["theme.app"],"upgrade":["upgrade.list","upgrade.registry","upgrade.status","upgrade.run"]}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/cli",
3
- "version": "0.7.18",
3
+ "version": "0.7.19-canary.g8cf5aa3",
4
4
  "displayName": "CLI",
5
5
  "description": "The Astryx CLI: scaffold projects, browse templates, generate themes, and get agent-ready docs from the command line.",
6
6
  "author": "Meta Open Source",
@@ -130,7 +130,7 @@
130
130
  "zod": "^4.6.7"
131
131
  },
132
132
  "peerDependencies": {
133
- "@astryxdesign/core": "*"
133
+ "@astryxdesign/core": "0.7.19-canary.g8cf5aa3"
134
134
  },
135
135
  "peerDependenciesMeta": {
136
136
  "@astryxdesign/core": {
@@ -138,11 +138,11 @@
138
138
  }
139
139
  },
140
140
  "devDependencies": {
141
- "@astryxdesign/charts": "*",
142
- "@astryxdesign/core": "*",
143
- "@astryxdesign/lab": "*",
144
- "@astryxdesign/theme-neutral": "*",
145
- "@astryxdesign/template-icons": "*",
141
+ "@astryxdesign/charts": "0.7.19-canary.g8cf5aa3",
142
+ "@astryxdesign/core": "0.7.19-canary.g8cf5aa3",
143
+ "@astryxdesign/lab": "0.7.19-canary.g8cf5aa3",
144
+ "@astryxdesign/theme-neutral": "0.7.19-canary.g8cf5aa3",
145
+ "@astryxdesign/template-icons": "0.7.19-canary.g8cf5aa3",
146
146
  "@heroicons/react": "^2.2.0",
147
147
  "@stylexjs/stylex": "^0.19.1",
148
148
  "@types/babel__core": "^7.20.5",