@astryxdesign/cli 0.7.17-canary.gf4fa366 → 0.7.17-canary.gf672a82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -27
- package/api/component/component.d.mts +1 -1
- package/api/component/component.mjs +4 -4
- package/api/discover/_adapter.d.mts +13 -2
- package/api/discover/_adapter.mjs +38 -30
- package/api/discover/_catalog-view.d.mts +15 -0
- package/api/discover/_catalog-view.mjs +20 -0
- package/api/discover/_icon-set-coverage.d.mts +22 -0
- package/api/discover/_icon-set-coverage.mjs +32 -0
- package/api/discover/detail/detail.d.mts +3 -1
- package/api/discover/detail/detail.mjs +11 -4
- package/api/discover/detail/item/item.d.mts +11 -1
- package/api/discover/detail/item/item.mjs +29 -8
- package/api/discover/discover.d.mts +12 -0
- package/api/discover/discover.mjs +72 -16
- package/api/discover/discover.type.d.mts +23 -3
- package/api/discover/discover.type.mjs +14 -3
- package/api/discover/search/search.mjs +3 -0
- package/api/docs/_adapter.d.mts +29 -1
- package/api/docs/_adapter.mjs +83 -9
- package/api/doctor/_adapter.d.mts +22 -0
- package/api/doctor/_adapter.mjs +83 -0
- package/api/doctor/built-checks.mjs +6 -1
- package/api/doctor/doctor.d.mts +37 -2
- package/api/doctor/doctor.doc.mjs +1 -1
- package/api/doctor/doctor.mjs +153 -10
- package/api/doctor/doctor.type.d.mts +4 -0
- package/api/doctor/doctor.type.mjs +1 -0
- package/api/doctor/theme-checks.d.mts +1 -1
- package/api/doctor/theme-checks.mjs +91 -2
- package/api/error.d.mts +12 -1
- package/api/error.mjs +18 -6
- package/api/icon/_adapter.d.mts +10 -1
- package/api/icon/_adapter.mjs +19 -1
- package/api/icon/_authoring.mjs +21 -7
- package/api/icon/icon.doc.mjs +1 -1
- package/api/icon/list/list.mjs +4 -5
- package/api/icon/search/search.d.mts +5 -3
- package/api/icon/search/search.mjs +16 -6
- package/api/init/_adapter.d.mts +69 -0
- package/api/init/_adapter.mjs +262 -13
- package/api/init/init.doc.mjs +16 -3
- package/api/init/init.mjs +66 -4
- package/api/init/init.type.d.mts +39 -2
- package/api/init/init.type.mjs +18 -2
- package/api/init/run/run.d.mts +34 -2
- package/api/init/run/run.mjs +341 -32
- package/api/integration/pack-check.d.mts +2 -1
- package/api/integration/pack-check.mjs +10 -18
- package/api/integration/validate-integration.mjs +20 -1
- package/api/integration/validateIntegration.doc.mjs +1 -1
- package/api/render/_adapter.mjs +139 -40
- package/api/render/render.doc.d.mts +1 -1
- package/api/render/render.doc.mjs +5 -5
- package/api/render/render.mjs +11 -11
- package/api/render/render.type.d.mts +34 -10
- package/api/render/render.type.mjs +17 -13
- package/api/search/ORDERING.md +1 -1
- package/api/search/_adapter.d.mts +21 -0
- package/api/search/_adapter.mjs +56 -4
- package/api/search/_candidate-score.d.mts +9 -4
- package/api/search/_candidate-score.mjs +59 -13
- package/api/search/_cards.json +4 -1
- package/api/search/_gather-templates.mjs +6 -0
- package/api/search/_icons.d.mts +50 -0
- package/api/search/_icons.mjs +85 -0
- package/api/search/_lexical.d.mts +9 -1
- package/api/search/_lexical.mjs +185 -11
- package/api/search/_named-keywords.d.mts +4 -2
- package/api/search/_named-keywords.mjs +22 -13
- package/api/search/_order.mjs +7 -3
- package/api/search/_result.d.mts +7 -0
- package/api/search/_result.mjs +8 -0
- package/api/search/_score.d.mts +20 -6
- package/api/search/_score.mjs +93 -14
- package/api/search/_titles.d.mts +14 -0
- package/api/search/_titles.mjs +16 -3
- package/api/search/_words.d.mts +8 -0
- package/api/search/_words.mjs +19 -0
- package/api/search/search-index.mjs +5 -2
- package/api/search/search.d.mts +3 -1
- package/api/search/search.mjs +66 -25
- package/api/search/search.type.d.mts +53 -0
- package/api/search/search.type.mjs +33 -0
- package/api/swizzle/_adapter.d.mts +1 -1
- package/api/swizzle/_adapter.mjs +1 -5
- package/api/swizzle/_moduleGraph.d.mts +0 -6
- package/api/swizzle/_moduleGraph.mjs +0 -12
- package/api/swizzle/copy/copy.mjs +1 -1
- package/api/template/_adapter.d.mts +24 -0
- package/api/template/_adapter.mjs +122 -2
- package/api/template/copy/copy.d.mts +9 -2
- package/api/template/copy/copy.mjs +6 -1
- package/api/template/show/show.d.mts +10 -3
- package/api/template/show/show.mjs +13 -3
- package/api/template/template.doc.mjs +2 -2
- package/api/template/template.mjs +20 -4
- package/api/template/template.type.d.mts +2 -0
- package/api/template/template.type.mjs +3 -1
- package/api/theme/_adapter.d.mts +27 -2
- package/api/theme/_adapter.mjs +675 -15
- package/api/theme/_shared-source.d.mts +33 -0
- package/api/theme/_shared-source.mjs +348 -0
- package/api/theme/add/add.d.mts +3 -0
- package/api/theme/add/add.mjs +21 -4
- package/api/theme/build/build.d.mts +57 -20
- package/api/theme/build/build.mjs +314 -142
- package/api/theme/build/import-specifier.d.mts +14 -0
- package/api/theme/build/import-specifier.mjs +36 -0
- package/api/theme/build/null-values.d.mts +22 -0
- package/api/theme/build/null-values.mjs +110 -21
- package/api/theme/build/self-contained.mjs +32 -11
- package/api/theme/build/setting-effects.d.mts +199 -0
- package/api/theme/build/setting-effects.mjs +957 -0
- package/api/theme/build/theme-object.d.mts +47 -0
- package/api/theme/build/theme-object.mjs +144 -0
- package/api/theme/theme.d.mts +25 -4
- package/api/theme/theme.mjs +55 -5
- package/api/theme/theme.type.d.mts +64 -0
- package/api/theme/theme.type.mjs +32 -3
- package/api/theme/themeAdd.doc.mjs +3 -2
- package/api/theme/themeBuild.doc.mjs +2 -2
- package/api/theme/themeRemove.doc.mjs +1 -1
- package/api/theme/themeTargets.doc.mjs +1 -1
- package/api/theme-edit/_catalog.mjs +1 -1
- package/api/theme-edit/_context.d.mts +2 -1
- package/api/theme-edit/_context.mjs +12 -1
- package/api/theme-edit/_css.d.mts +3 -16
- package/api/theme-edit/_css.mjs +8 -42
- package/api/theme-edit/_edit.mjs +160 -12
- package/api/theme-edit/_how-question.mjs +134 -1
- package/api/theme-edit/_missed.d.mts +2 -1
- package/api/theme-edit/_missed.mjs +20 -1
- package/api/theme-edit/_palette.d.mts +0 -9
- package/api/theme-edit/_palette.mjs +0 -18
- package/api/theme-edit/_part-words.mjs +8 -0
- package/api/theme-edit/_parts.d.mts +4 -0
- package/api/theme-edit/_parts.mjs +37 -4
- package/api/theme-edit/_project.d.mts +4 -0
- package/api/theme-edit/_project.mjs +8 -1
- package/api/theme-edit/_settings.d.mts +1 -1
- package/api/theme-edit/_settings.mjs +4 -8
- package/api/theme-edit/theme-edit.type.d.mts +6 -1
- package/api/theme-edit/theme-edit.type.mjs +2 -1
- package/api/upgrade/upgrade.mjs +1 -1
- package/assets/codemods/transforms/next/index.mjs +8 -0
- package/assets/codemods/transforms/next/preserve-chat-radius.mjs +515 -0
- package/assets/component-list.generated.json +1 -1
- package/assets/docs/author-a-theme.doc.mjs +3 -3
- package/assets/docs/getting-started.doc.mjs +1 -1
- package/assets/docs/principles.doc.dense.mjs +1 -1
- package/assets/docs/principles.doc.mjs +1 -1
- package/assets/docs/principles.doc.zh.mjs +1 -1
- package/assets/docs/tree/checks.doc.mjs +1 -1
- package/assets/docs/tree/{render-pages.doc.mjs → export-pages.doc.mjs} +10 -9
- package/assets/docs/tree/icon-sets.doc.mjs +66 -7
- package/assets/docs/tree/layout.doc.mjs +16 -5
- package/assets/docs/tree/responsive.doc.mjs +2 -2
- package/assets/docs/tree/share-a-page.doc.mjs +6 -6
- package/assets/docs/tree/tokens-radius.doc.mjs +1 -1
- package/assets/docs/tree/tokens.doc.mjs +32 -0
- package/assets/docs/working-with-ai.doc.mjs +3 -3
- package/assets/docs-routes.generated.json +1 -1
- package/assets/docs.generated.json +2 -2
- package/assets/search-catalog.generated.json +2 -2
- package/assets/self-audit.generated.json +1 -1
- package/assets/templates/blocks/components/Step/StepContent.tsx +1 -1
- package/assets/templates/blocks/components/Step/StepShowcase.tsx +1 -1
- package/assets/templates/blocks/components/Stepper/StepperCustomContent.tsx +18 -14
- package/assets/templates/blocks/components/Stepper/StepperOnTrackHorizontal.tsx +1 -1
- package/assets/templates/blocks/components/Table/TableInCard.tsx +1 -1
- package/assets/templates/blocks/components/Table/TableShowcase.tsx +1 -1
- package/assets/templates/blocks/components/Toolbar/ToolbarCardHeader.tsx +2 -1
- package/assets/templates/blocks/components/Toolbar/ToolbarSizes.tsx +1 -1
- package/assets/templates/blocks/components/Toolbar/ToolbarThreeSlot.tsx +2 -1
- package/assets/templates/blocks/components/TopNav/TopNavShowcase.tsx +1 -1
- package/assets/templates/blocks/components/TopNavItem/TopNavItemShowcase.tsx +1 -1
- package/assets/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuBasic.tsx +1 -1
- package/assets/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuShowcase.tsx +1 -1
- package/assets/templates/blocks/components/TopNavMenu/TopNavMenuBasic.tsx +1 -1
- package/assets/templates/blocks/components/TopNavMenu/TopNavMenuShowcase.tsx +1 -1
- package/assets/templates/components.generated.json +1 -1
- package/assets/templates/pages/checkout-wizard/page.tsx +9 -1
- package/assets/templates/pages/course-detail/page.tsx +2 -2
- package/assets/templates/pages/dashboard/page.tsx +7 -5
- package/assets/templates/pages/dashboard-alert-rail/page.tsx +2 -2
- package/assets/templates/pages/dashboard-comparison/page.tsx +5 -3
- package/assets/templates/pages/dashboard-composition/page.tsx +6 -3
- package/assets/templates/pages/dashboard-progress/page.tsx +89 -96
- package/assets/templates/pages/dashboard-scorecard/page.tsx +32 -23
- package/assets/templates/pages/form-wizard-inline/page.tsx +6 -4
- package/assets/templates/pages/kanban-board/page.tsx +2 -9
- package/assets/templates/pages/kanban-board/template.doc.mjs +0 -1
- package/assets/templates/pages/library/page.tsx +1 -1
- package/assets/templates/pages/payment-form/page.tsx +27 -4
- package/assets/templates/pages/product-detail/page.tsx +1 -1
- package/assets/templates/pages/product-gallery/page.tsx +1 -1
- package/assets/templates/pages/settings/page.tsx +3 -3
- package/assets/templates/pages/shell-nav/page.tsx +27 -15
- package/assets/templates/pages/shell-side-nav/page.tsx +10 -9
- package/assets/templates/pages/side-gallery/page.tsx +4 -1
- package/assets/templates/themes/butter/butterTheme.ts +9 -1
- package/assets/templates/themes/chocolate/chocolateTheme.ts +10 -6
- package/assets/templates/themes/gothic/gothicTheme.ts +2 -0
- package/assets/templates/themes/matcha/matchaTheme.ts +7 -2
- package/assets/templates/themes/neutral/neutralTheme.ts +2 -0
- package/assets/templates/themes/stone/stoneTheme.ts +2 -0
- package/assets/templates/themes/y2k/y2kTheme.ts +3 -0
- package/assets/theme.template.ts +8 -7
- package/authoring/config/config.doc.mjs +8 -1
- package/authoring/config/parse.mjs +15 -0
- package/authoring/config/skill-places.d.mts +23 -0
- package/authoring/config/skill-places.mjs +35 -0
- package/authoring/config/type.ts +15 -0
- package/authoring/discover/parse.d.mts +2 -1
- package/authoring/discover/parse.mjs +24 -3
- package/authoring/discover/type.ts +9 -2
- package/authoring/doctypes/_schema.d.mts +4 -0
- package/authoring/doctypes/_schema.mjs +13 -0
- package/authoring/doctypes/base/type.ts +13 -0
- package/authoring/doctypes/command/command.doc.mjs +6 -0
- package/authoring/doctypes/command/type.ts +7 -0
- package/authoring/doctypes/component/component.doc.mjs +1 -1
- package/clients/cli/build-id.generated.json +1 -1
- package/clients/cli/commands/component.doc.mjs +3 -1
- package/clients/cli/commands/component.mjs +7 -3
- package/clients/cli/commands/discover.mjs +86 -6
- package/clients/cli/commands/docs.mjs +22 -16
- package/clients/cli/commands/doctor.mjs +16 -3
- package/clients/cli/commands/experimental/export.mjs +64 -0
- package/clients/cli/commands/experimental/icon.mjs +7 -4
- package/clients/cli/commands/experimental/import.mjs +70 -0
- package/clients/cli/commands/experimental/index.mjs +92 -6
- package/clients/cli/commands/experimental/render-output.mjs +196 -0
- package/clients/cli/commands/experimental/theme.mjs +34 -13
- package/clients/cli/commands/{experimental-render.doc.mjs → experimental-export.doc.mjs} +10 -10
- package/clients/cli/commands/experimental-import.doc.mjs +53 -0
- package/clients/cli/commands/experimental-theme-add.doc.mjs +1 -1
- package/clients/cli/commands/experimental-theme.doc.mjs +1 -1
- package/clients/cli/commands/experimental.doc.mjs +4 -4
- package/clients/cli/commands/init.doc.mjs +13 -3
- package/clients/cli/commands/mcp.doc.mjs +5 -1
- package/clients/cli/commands/search.mjs +27 -0
- package/clients/cli/commands/template.doc.mjs +12 -3
- package/clients/cli/commands/template.mjs +18 -0
- package/clients/cli/commands/theme-add.doc.mjs +6 -2
- package/clients/cli/commands/theme-remove.doc.mjs +1 -1
- package/clients/cli/commands/theme-targets.doc.mjs +1 -1
- package/clients/cli/commands/theme.mjs +74 -3
- package/clients/cli/commands.generated.json +1 -1
- package/clients/cli/index.mjs +20 -27
- package/clients/cli/lib/cli-error.mjs +1 -6
- package/clients/cli/lib/component-format.mjs +121 -69
- package/clients/cli/lib/define-command.mjs +10 -0
- package/clients/cli/lib/hook-format.mjs +14 -11
- package/clients/cli/lib/renamed-commands.mjs +21 -0
- package/clients/cli/lib/stray-option.mjs +53 -1
- package/clients/cli/lib/unknown-command.mjs +84 -6
- package/clients/cli/manifest.generated.json +1 -1
- package/clients/cli/run.mjs +27 -0
- package/foundation/agent-docs/agent-doc-state.d.mts +20 -2
- package/foundation/agent-docs/agent-doc-state.mjs +71 -4
- package/foundation/agent-docs/agent-docs.d.mts +12 -2
- package/foundation/agent-docs/agent-docs.mjs +16 -1
- package/foundation/agent-docs/computer-agent-text.d.mts +5 -14
- package/foundation/agent-docs/computer-agent-text.mjs +60 -155
- package/foundation/agent-docs/managed-skill-file.d.mts +103 -0
- package/foundation/agent-docs/managed-skill-file.mjs +193 -0
- package/foundation/agent-docs/skill-place-files.d.mts +12 -0
- package/foundation/agent-docs/skill-place-files.mjs +38 -0
- package/foundation/agent-docs/skill-places.d.mts +115 -0
- package/foundation/agent-docs/skill-places.mjs +322 -0
- package/foundation/config/config-path.d.mts +2 -2
- package/foundation/config/config-path.mjs +5 -6
- package/foundation/config/config-writer.d.mts +5 -1
- package/foundation/config/config-writer.mjs +20 -4
- package/foundation/config/theme-state.d.mts +13 -0
- package/foundation/config/theme-state.mjs +28 -0
- package/foundation/discovery/cli-self-docs.mjs +16 -2
- package/foundation/discovery/command-pointers.d.mts +21 -4
- package/foundation/discovery/command-pointers.mjs +25 -4
- package/foundation/discovery/component-discovery.mjs +59 -15
- package/foundation/discovery/icon-definition-discovery.d.mts +11 -0
- package/foundation/discovery/icon-definition-discovery.mjs +16 -0
- package/foundation/discovery/icon-ranking.d.mts +96 -2
- package/foundation/discovery/icon-ranking.mjs +242 -66
- package/foundation/discovery/icon-set-discovery.d.mts +20 -0
- package/foundation/discovery/icon-set-discovery.mjs +42 -16
- package/foundation/discovery/icon-set-writer.mjs +73 -3
- package/foundation/discovery/module-exports.mjs +2 -9
- package/foundation/discovery/runner-allowlist.d.mts +1 -1
- package/foundation/discovery/runner-allowlist.mjs +1 -1
- package/foundation/discovery/template-adapter.d.mts +26 -0
- package/foundation/discovery/template-adapter.mjs +98 -1
- package/foundation/discovery/template-needs.mjs +3 -3
- package/foundation/doc-compiler/read.d.mts +1 -1
- package/foundation/doc-compiler/stored-docs.d.mts +14 -3
- package/foundation/doc-compiler/stored-docs.mjs +12 -6
- package/foundation/env/package-manager.d.mts +8 -0
- package/foundation/env/package-manager.mjs +20 -2
- package/foundation/env/user-dirs.d.mts +14 -0
- package/foundation/env/user-dirs.mjs +34 -1
- package/foundation/env/user-settings.d.mts +15 -0
- package/foundation/env/user-settings.mjs +56 -2
- package/foundation/fs/cache-eviction.d.mts +7 -5
- package/foundation/fs/cache-eviction.mjs +20 -13
- package/foundation/fs/empty-folder.d.mts +12 -0
- package/foundation/fs/empty-folder.mjs +30 -0
- package/foundation/fs/gather-cache.d.mts +12 -6
- package/foundation/fs/gather-cache.mjs +144 -57
- package/foundation/fs/import-url.d.mts +7 -5
- package/foundation/fs/import-url.mjs +7 -5
- package/foundation/fs/jiti-cache.d.mts +47 -26
- package/foundation/fs/jiti-cache.mjs +222 -130
- package/foundation/fs/loaded-files.d.mts +15 -1
- package/foundation/fs/loaded-files.mjs +40 -3
- package/foundation/fs/relative-specifier.d.mts +10 -0
- package/foundation/fs/relative-specifier.mjs +28 -0
- package/foundation/integrations/computer-integrations.mjs +5 -6
- package/foundation/integrations/icon-features.d.mts +1 -1
- package/foundation/integrations/icon-features.mjs +1 -1
- package/foundation/integrations/integrations.d.mts +3 -1
- package/foundation/integrations/integrations.mjs +3 -2
- package/foundation/integrations/may-have-integrations.mjs +7 -6
- package/foundation/integrations/provider-resolution.mjs +19 -2
- package/foundation/release/agent-text-worker.mjs +32 -1
- package/foundation/release/choose.d.mts +2 -1
- package/foundation/release/choose.mjs +24 -3
- package/foundation/release/global-state.mjs +10 -2
- package/foundation/render/assets.mjs +1 -1
- package/foundation/render/component-map.mjs +1 -1
- package/foundation/render/css-cut.mjs +1 -1
- package/foundation/render/embedded-files.d.mts +24 -1
- package/foundation/render/embedded-files.mjs +41 -4
- package/foundation/render/embedded-imports.d.mts +33 -5
- package/foundation/render/embedded-imports.mjs +113 -34
- package/foundation/render/esbuild-dependency.mjs +1 -1
- package/foundation/render/file-header.d.mts +7 -2
- package/foundation/render/file-header.mjs +14 -6
- package/foundation/render/html-reader.d.mts +5 -4
- package/foundation/render/html-reader.mjs +6 -5
- package/foundation/render/markup-edits.mjs +1 -1
- package/foundation/render/page-host.mjs +1 -1
- package/foundation/render/page-worker.mjs +65 -7
- package/foundation/render/rebuild.mjs +2 -2
- package/foundation/render/render-page.d.mts +16 -3
- package/foundation/render/render-page.mjs +227 -41
- package/foundation/render/source-block.d.mts +8 -0
- package/foundation/render/source-block.mjs +6 -2
- package/foundation/render/ts-paths.d.mts +7 -1
- package/foundation/render/ts-paths.mjs +19 -2
- package/foundation/response/error-codes.doc.mjs +11 -11
- package/foundation/response/error-codes.mjs +4 -4
- package/foundation/response/json.d.mts +0 -15
- package/foundation/response/json.mjs +1 -51
- package/foundation/response/response-types.doc.mjs +7 -7
- package/foundation/runtime/css-tree.d.mts +16 -0
- package/foundation/runtime/css-tree.mjs +44 -2
- package/foundation/runtime/lazy-dependencies.d.mts +1 -0
- package/foundation/runtime/lazy-dependencies.mjs +10 -3
- package/foundation/runtime/package-root.d.mts +17 -0
- package/foundation/runtime/package-root.mjs +28 -0
- package/foundation/text/definition-coverage.d.mts +21 -0
- package/foundation/text/definition-coverage.mjs +20 -0
- package/foundation/text/icon-set-next.d.mts +11 -10
- package/foundation/text/icon-set-next.mjs +19 -11
- package/foundation/text/suggest-order.d.mts +10 -4
- package/foundation/text/suggest-order.mjs +20 -13
- package/package.json +6 -6
- package/clients/cli/commands/experimental/render.mjs +0 -169
package/README.md
CHANGED
|
@@ -98,25 +98,25 @@ Every run reads one base: Core, or an installed integration whose manifest decla
|
|
|
98
98
|
|
|
99
99
|
<!-- BEGIN GENERATED: commands -->
|
|
100
100
|
|
|
101
|
-
| Command | Description
|
|
102
|
-
| -------------- |
|
|
103
|
-
| `blog` | Read the Astryx blog from the published feed
|
|
104
|
-
| `build` | Build a page: the template to start from, or the workflow playbook (no query)
|
|
105
|
-
| `component` | List components or print component docs
|
|
106
|
-
| `discover` | Browse and search integrations: the ones you have and the ones you could add
|
|
107
|
-
| `docs` | Print reference docs
|
|
108
|
-
| `doctor` | Diagnose Astryx projects and integration packages
|
|
109
|
-
| `experimental` | [experimental] Try features that may change in a patch release: icon sets, page
|
|
110
|
-
| `gap-report` | Report a missing component or feature to the package that owns it
|
|
111
|
-
| `hook` | List hooks or print hook docs
|
|
112
|
-
| `init` | Initialize the design system in your project
|
|
113
|
-
| `integration` | Author and verify an Astryx integration package
|
|
114
|
-
| `mcp` | For AI tools that cannot run commands: serve every astryx command as an MCP tool, over stdio
|
|
115
|
-
| `search` | Search components, hooks, docs, templates, and themes in one ranked list
|
|
116
|
-
| `swizzle` | Copy component source for customization
|
|
117
|
-
| `template` | List, show, or scaffold page and block templates
|
|
118
|
-
| `theme` | Add, switch, build, and author themes (to make or change one, use experimental theme editor)
|
|
119
|
-
| `upgrade` | Update your code after upgrading Astryx, and refresh ShadCN-copied components
|
|
101
|
+
| Command | Description | Outside a project |
|
|
102
|
+
| -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- |
|
|
103
|
+
| `blog` | Read the Astryx blog from the published feed | `same` |
|
|
104
|
+
| `build` | Build a page: the template to start from, or the workflow playbook (no query) | `same` |
|
|
105
|
+
| `component` | List components or print component docs | `same` |
|
|
106
|
+
| `discover` | Browse and search integrations: the ones you have and the ones you could add | `same` |
|
|
107
|
+
| `docs` | Print reference docs | `same` |
|
|
108
|
+
| `doctor` | Diagnose Astryx projects and integration packages | `own` |
|
|
109
|
+
| `experimental` | [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), checked theme editing | by subcommand |
|
|
110
|
+
| `gap-report` | Report a missing component or feature to the package that owns it | `same` |
|
|
111
|
+
| `hook` | List hooks or print hook docs | `same` |
|
|
112
|
+
| `init` | Initialize the design system in your project | `own` |
|
|
113
|
+
| `integration` | Author and verify an Astryx integration package | by subcommand |
|
|
114
|
+
| `mcp` | For AI tools that cannot run commands: serve every astryx command as an MCP tool, over stdio | `same` |
|
|
115
|
+
| `search` | Search components, hooks, docs, templates, and themes in one ranked list | `same` |
|
|
116
|
+
| `swizzle` | Copy component source for customization | `refuse` |
|
|
117
|
+
| `template` | List, show, or scaffold page and block templates | `same` |
|
|
118
|
+
| `theme` | Add, switch, build, and author themes (to make or change one, use experimental theme editor) | by subcommand |
|
|
119
|
+
| `upgrade` | Update your code after upgrading Astryx, and refresh ShadCN-copied components | `own` |
|
|
120
120
|
|
|
121
121
|
<!-- END GENERATED: commands -->
|
|
122
122
|
<!-- Generated by scripts/generate-cli-readme.mjs from `astryx manifest`. Run `pnpm -F @astryxdesign/cli readme`. -->
|
|
@@ -126,7 +126,7 @@ Every run reads one base: Core, or an installed integration whose manifest decla
|
|
|
126
126
|
`--json` works with every command listed in `jsonSupported` (`astryx manifest --json`), which is every command except the bare groups such as `astryx theme`. The other four change only the reads named here; other commands ignore them:
|
|
127
127
|
|
|
128
128
|
- `--json`: Output as typed JSON envelope: `{ apiVersion, type, package?, data, meta? }` (errors: `{ apiVersion, error, code, suggestions? }`)
|
|
129
|
-
- `--detail <level>`: Detail level for `component`, `hook`, and docs tree reads (such as `astryx docs cli/commands/build`), increasing in size: `brief` (names only, default for lists) < `compact` (names + 1-line descriptions) < `full` (full docs per entry).
|
|
129
|
+
- `--detail <level>`: Detail level for `component`, `hook`, and docs tree reads (such as `astryx docs cli/commands/build`), increasing in size: `brief` (names only, default for lists) < `compact` (names + 1-line descriptions) < `full` (full docs per entry). A component read (`astryx component <Name>`) defaults to `compact`, a short answer that ends with the `--detail full` command; hook and docs reads default to `full`.
|
|
130
130
|
- `--zh`: Simplified Chinese for component reads and for docs topics that have a translation (English otherwise)
|
|
131
131
|
- `--dense`: Token-efficient dense text for `astryx component <Name>` and `astryx docs <topic>`
|
|
132
132
|
- `--lang <locale>`: Language or format for component and docs reads: `en` (default), `zh` (as `--zh`), or `dense` (as `--dense`)
|
|
@@ -510,16 +510,16 @@ Every response has a `type` discriminant. The full set is below (generated from
|
|
|
510
510
|
| `swizzle.copy` | An eject receipt: component name, owning package, output directory, files-copied count, the copied file names (relative to the component folder; owner modules copied beside it start with ../), whether any file uses StyleX, and, when the owner has an issues URL, feedback ({issuesUrl, ghCommand?}): where to report the gap that led to swizzling. The envelope's package names the same owning package. |
|
|
511
511
|
| `gap-report.categories` | The fixed gap category values and human-readable labels; when a loaded integration names its own issues URL, meta.destinations lists every destination ({to, default, issuesUrl}) and meta.ask tells an agent to ask the person. |
|
|
512
512
|
| `gap-report.file` | An aggregate receipt: overall status, the selected package, issuesUrl (or null), deliveries in handler order, each {handlerType: project \| integration \| fallback, handler, audience, status, url, message}, and filedCount/routedOnlyCount totals; without --to, when a loaded integration names its own issues URL, destinations and ask as on gap-report.categories. |
|
|
513
|
-
| `template.list` | The effective
|
|
514
|
-
| `template.show` | The
|
|
515
|
-
| `template.skeleton` | A layout skeleton (structural tags with spatial annotations)
|
|
516
|
-
| `template.copy` | A scaffold receipt: template id,
|
|
517
|
-
| `template.cdn` | A write receipt for the no-build
|
|
513
|
+
| `template.list` | The effective TemplateListEntry[] for pages and blocks; a replacement carries `replaces`, the Core id it hides from the default list. |
|
|
514
|
+
| `template.show` | The template's source, as a copy writes it, with its description, kind, components (a sorted summary, without common ones such as Text), componentsToRead (what it renders, in the form `astryx component` takes, in first-use order), demoMediaReplaced and demoContentReplaced (demo media and content replaced with placeholders), and isReady (false when its doc says so). |
|
|
515
|
+
| `template.skeleton` | A layout skeleton (structural tags with spatial annotations) with the template's description, components, and isReady. |
|
|
516
|
+
| `template.copy` | A scaffold receipt: template id, outputDir (absolute for a scratch copy), fileName, filesCopied, givenPath (the absolute path given, only when inside the project), demoMediaReplaced, demoContentReplaced, notes (what the project lacks, such as missing packages or a StyleX compiler; empty when nothing), missingPackages, installCommand (null when nothing is missing, the package manager is undetermined, or no package.json holds the folder), installGuidance (how an integration adds them, used instead of installCommand), components (what it renders, in the form `astryx component` takes, in first-use order), and isReady. |
|
|
517
|
+
| `template.cdn` | A write receipt for the no-build CDN starter page: path (relative to cwd), the Astryx version its CDN URLs pin, written, and reason (`exists`, a success, when a file was already there). |
|
|
518
518
|
| `hook.list` | The hook catalog grouped by category: `detail` (the level: names \| compact \| full) and `components`, the grouped map of hook names, brief entries, or a full HookDoc per entry. The envelope's package is the run's active base: @astryxdesign/core in a run on Core. |
|
|
519
519
|
| `hook.detail` | One hook's full authored HookDoc. The envelope's package is @astryxdesign/core. |
|
|
520
520
|
| `hook.detail.params` | Just one hook's parameters table (HookParamDoc[]). The envelope's package is @astryxdesign/core. |
|
|
521
|
-
| `theme.build` | A theme build receipt: name, tokenCount and componentCount (override counts), sizeKB, the written outputs {css, cssDts, js, dts, and variantsDts when applicable}, warnings (defects to fix),
|
|
522
|
-
| `theme.build.check` | The --check receipt: theme name, an upToDate flag, the stale outputs (each {path, reason: missing \| outdated}), the full list of checked paths,
|
|
521
|
+
| `theme.build` | A theme build receipt: name, tokenCount and componentCount (override counts), sizeKB, the written outputs {css, cssDts, js, dts, and variantsDts when applicable}, warnings (defects to fix), notices (advisories about a correct theme, such as a named font it does not load), and settingIssues (the page-rule settings the browser does not show as written, also among the warnings; their fields are in the themeBuild doc). A --family build whose root extends a theme the family does not select adds base {theme, package (the installed package it comes from, or null for a local base: a file of the project or a theme defined in the file of the root), export (the name the root imports it by, or null for a theme defined in the file of the root)}: a requirement of the outputs. |
|
|
522
|
+
| `theme.build.check` | The --check receipt: theme name, an upToDate flag, the stale outputs (each {path, reason: missing \| outdated}), the full list of checked paths, when any is stale or missing, code ERR_THEME_STALE, and settingIssues as on the build receipt when any. Writes nothing. |
|
|
523
523
|
| `theme.build.batch` | Several themes built in one invocation: `count` plus one {file, receipt} per theme in argument order, where receipt is that theme's theme.build (or theme.build.check) envelope, or null when it produced no CSS. |
|
|
524
524
|
| `theme.list` | Every bundled, installed package, and local theme as a ThemeListEntry[]. Each entry has slug, displayName, description, maintained, package (the package that provides it, or the local root), source, added, and default fields, plus owner (the package the app imports the built theme from, such as the bundled theme package @astryxdesign/theme-<slug>, or the local root) and installed (whether that owner is installed). Optional meta.unmigratedCopies names earlier descriptor-less copies, their missing descriptor, and the upgrade command; those copies are not data entries. |
|
|
525
525
|
| `theme.app` | The app theme record after add, remove, or use. It includes every added theme and its built imports, the default slug, generated module path, and the command change. After add, the envelope package names the npm package that owns the added theme; a local theme has none. |
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* @param {boolean} [options.source]
|
|
13
13
|
* @param {boolean} [options.showcase]
|
|
14
14
|
* @param {boolean} [options.blocks]
|
|
15
|
-
* @param {'full'|'compact'|'brief'} [options.detail] -
|
|
15
|
+
* @param {'full'|'compact'|'brief'} [options.detail] - The level of a list view's entries; defaults to 'brief' for list views (list/category/no name) and 'full' otherwise. A named component's JSON is the same at every level; only the CLI's text projection (default 'compact' for a component read) depends on it.
|
|
16
16
|
* @param {string} [options.lang]
|
|
17
17
|
* @param {boolean} [options.zh]
|
|
18
18
|
* @param {boolean} [options.dense]
|
|
@@ -250,7 +250,7 @@ async function componentBatch(selectors, options, coreDir) {
|
|
|
250
250
|
* @param {boolean} [options.source]
|
|
251
251
|
* @param {boolean} [options.showcase]
|
|
252
252
|
* @param {boolean} [options.blocks]
|
|
253
|
-
* @param {'full'|'compact'|'brief'} [options.detail] -
|
|
253
|
+
* @param {'full'|'compact'|'brief'} [options.detail] - The level of a list view's entries; defaults to 'brief' for list views (list/category/no name) and 'full' otherwise. A named component's JSON is the same at every level; only the CLI's text projection (default 'compact' for a component read) depends on it.
|
|
254
254
|
* @param {string} [options.lang]
|
|
255
255
|
* @param {boolean} [options.zh]
|
|
256
256
|
* @param {boolean} [options.dense]
|
|
@@ -306,9 +306,9 @@ async function componentRead(name, options = {}) {
|
|
|
306
306
|
const selectorList = Array.isArray(name) ? name : null;
|
|
307
307
|
const noName = selectorList == null && !name;
|
|
308
308
|
|
|
309
|
-
//
|
|
310
|
-
//
|
|
311
|
-
//
|
|
309
|
+
// List-style views (--list, --category, or no name) default to 'brief'
|
|
310
|
+
// (scannable name lists). A named read returns the same JSON at every
|
|
311
|
+
// level; the CLI picks its text level (see commands/component.mjs).
|
|
312
312
|
// An explicit array remains a batch even when it is empty or a caller also
|
|
313
313
|
// passes a list-only option.
|
|
314
314
|
const isListView =
|
|
@@ -148,13 +148,13 @@ export function callSources(project: Project | undefined, request?: {
|
|
|
148
148
|
official?: OfficialList;
|
|
149
149
|
}): Promise<CatalogResult>;
|
|
150
150
|
/**
|
|
151
|
-
* The item kinds
|
|
151
|
+
* The item kinds `--type` takes in the project at the working directory, or
|
|
152
152
|
* the stable kinds when it cannot be read.
|
|
153
153
|
* @returns {Promise<readonly string[]>}
|
|
154
154
|
*/
|
|
155
155
|
export function loadReadKinds(): Promise<readonly string[]>;
|
|
156
156
|
/**
|
|
157
|
-
* The item kinds
|
|
157
|
+
* The item kinds `--type` takes in this project: every stable kind, and the
|
|
158
158
|
* experimental ones where icon features are on.
|
|
159
159
|
* @param {Project | undefined} project
|
|
160
160
|
* @returns {readonly string[]}
|
|
@@ -265,6 +265,17 @@ export function loadValidatedDoc(result: ComponentResolution, { lang, zh }: {
|
|
|
265
265
|
* @returns {Promise<AstryxError>}
|
|
266
266
|
*/
|
|
267
267
|
export function withCoreMatch(err: AstryxError, query: string, cwd: string): Promise<AstryxError>;
|
|
268
|
+
/**
|
|
269
|
+
* How many of the icon definitions this CLI ships a set's definitions cover,
|
|
270
|
+
* of how many: the coverage `experimental icon --list` reports as
|
|
271
|
+
* `coverage.astryx`.
|
|
272
|
+
* @param {string[]} definitions
|
|
273
|
+
* @returns {{mapped: number, total: number}}
|
|
274
|
+
*/
|
|
275
|
+
export function iconSetCoverage(definitions: string[]): {
|
|
276
|
+
mapped: number;
|
|
277
|
+
total: number;
|
|
278
|
+
};
|
|
268
279
|
/** The name the official list goes by, as a source and on each of its entries. */
|
|
269
280
|
export const OFFICIAL_SOURCE_NAME: "Astryx";
|
|
270
281
|
/** The official list, generated from the repository when the CLI is built. */
|