@astryxdesign/cli 0.7.17-canary.gcfcba64 → 0.7.17-canary.gdc58f19
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 +2 -2
- package/api/build/_adapter.d.mts +23 -0
- package/api/build/_adapter.mjs +22 -0
- package/api/build/blocks/blocks.weights.json +1 -1
- package/api/build/build.doc.mjs +3 -3
- package/api/build/build.type.d.mts +3 -3
- package/api/build/build.type.mjs +4 -4
- package/api/build/kit/kind.d.mts +2 -1
- package/api/build/kit/kind.mjs +116 -9
- package/api/build/kit/kit.mjs +7 -5
- package/api/build/kit/rank.d.mts +6 -4
- package/api/build/kit/rank.mjs +73 -16
- package/api/build/kit/signals.d.mts +7 -1
- package/api/build/kit/signals.mjs +34 -12
- package/api/build/kit/start.d.mts +9 -6
- package/api/build/kit/start.mjs +55 -20
- package/api/build/kit/weights.d.mts +37 -4
- package/api/build/kit/weights.json +1 -1
- package/api/build/kit/weights.mjs +180 -66
- package/api/build/kit/words.d.mts +38 -0
- package/api/build/kit/words.mjs +152 -1
- package/api/build/tree.mjs +1 -1
- package/api/component/__fixtures__/resolutions/modules.txt +2 -2
- package/api/component/_adapter.d.mts +26 -2
- package/api/component/_adapter.mjs +135 -8
- package/api/component/component.mjs +14 -1
- package/api/component/list/list.mjs +2 -1
- package/api/discover/_adapter.d.mts +10 -0
- package/api/discover/_adapter.mjs +95 -1
- package/api/discover/detail/item/item.mjs +5 -0
- package/api/discover/discover.mjs +12 -3
- package/api/discover/discover.type.d.mts +16 -3
- package/api/discover/discover.type.mjs +13 -3
- package/api/discover/search/search.mjs +3 -2
- package/api/docs/_adapter.d.mts +52 -21
- package/api/docs/_adapter.mjs +232 -211
- package/api/docs/_entry-names-lazily.d.mts +22 -0
- package/api/docs/_entry-names-lazily.mjs +25 -0
- package/api/docs/_entry-names.d.mts +23 -0
- package/api/docs/_entry-names.mjs +105 -0
- package/api/doctor/_adapter.d.mts +27 -0
- package/api/doctor/_adapter.mjs +85 -5
- package/api/doctor/built-checks.mjs +2 -1
- package/api/doctor/doctor.d.mts +11 -0
- package/api/doctor/doctor.doc.mjs +1 -1
- package/api/doctor/doctor.mjs +48 -25
- package/api/doctor/theme-checks.d.mts +35 -3
- package/api/doctor/theme-checks.mjs +259 -15
- package/api/hook/_adapter.d.mts +10 -4
- package/api/hook/_adapter.mjs +41 -5
- package/api/hook/detail/detail.mjs +5 -2
- package/api/hook/detail/params/params.mjs +10 -3
- package/api/icon/_records.mjs +2 -1
- package/api/integration/add-helpers.mjs +10 -0
- package/api/integration/authoring-checks.mjs +11 -8
- package/api/integration/check/check.mjs +6 -1
- package/api/integration/pack-check.mjs +50 -3
- package/api/integration/validate-integration.d.mts +18 -6
- package/api/integration/validate-integration.mjs +112 -15
- package/api/integration/validate-integration.type.d.mts +13 -0
- package/api/integration/validate-integration.type.mjs +2 -1
- package/api/integration/validateIntegration.doc.mjs +1 -1
- package/api/render/_adapter.mjs +90 -17
- package/api/render/render.doc.mjs +1 -1
- package/api/render/render.type.d.mts +24 -2
- package/api/render/render.type.mjs +13 -2
- package/api/search/ORDERING.md +1 -1
- package/api/search/_adapter.d.mts +9 -0
- package/api/search/_adapter.mjs +85 -0
- package/api/search/_candidate-score.d.mts +9 -4
- package/api/search/_candidate-score.mjs +82 -14
- package/api/search/_gather-components.d.mts +3 -2
- package/api/search/_gather-components.mjs +12 -3
- package/api/search/_lexical.d.mts +14 -0
- package/api/search/_lexical.mjs +93 -11
- package/api/search/_result.d.mts +6 -4
- package/api/search/_result.mjs +4 -4
- package/api/search/search-index.mjs +7 -1
- package/api/template/_adapter.d.mts +16 -0
- package/api/template/_adapter.mjs +39 -2
- package/api/template/cdn/cdn.mjs +37 -8
- package/api/template/copy/copy.d.mts +6 -3
- package/api/template/copy/copy.mjs +82 -8
- package/api/template/template.doc.mjs +3 -3
- package/api/template/template.mjs +63 -11
- package/api/template/template.type.d.mts +1 -0
- package/api/template/template.type.mjs +2 -1
- package/api/theme/_adapter.d.mts +20 -1
- package/api/theme/_adapter.mjs +151 -13
- package/api/theme/_app-provider.d.mts +31 -0
- package/api/theme/_app-provider.mjs +135 -0
- package/api/theme/add/add.mjs +3 -1
- package/api/theme/build/build.d.mts +145 -8
- package/api/theme/build/build.mjs +1308 -315
- package/api/theme/build/core-interception.d.mts +10 -0
- package/api/theme/build/core-interception.mjs +10 -0
- package/api/theme/build/family.mjs +43 -14
- package/api/theme/build/font-warning.d.mts +106 -5
- package/api/theme/build/font-warning.mjs +390 -56
- package/api/theme/build/icon-imports.mjs +51 -9
- package/api/theme/build/null-values.d.mts +28 -0
- package/api/theme/build/null-values.mjs +209 -0
- package/api/theme/build/self-contained.d.mts +90 -0
- package/api/theme/build/self-contained.mjs +312 -0
- package/api/theme/build/style-keys.d.mts +75 -0
- package/api/theme/build/style-keys.mjs +487 -0
- package/api/theme/build/written-values.d.mts +35 -0
- package/api/theme/build/written-values.mjs +223 -0
- package/api/theme/list/list.mjs +17 -1
- package/api/theme/remove/remove.d.mts +2 -1
- package/api/theme/remove/remove.mjs +7 -3
- package/api/theme/theme.type.d.mts +68 -1
- package/api/theme/theme.type.mjs +32 -2
- package/api/theme/themeAdd.doc.mjs +1 -1
- package/api/theme/themeListAvailable.doc.mjs +1 -1
- package/api/theme/themeRemove.doc.mjs +8 -5
- package/api/theme-edit/_adapter.d.mts +74 -8
- package/api/theme-edit/_adapter.mjs +584 -196
- package/api/theme-edit/_catalog.d.mts +53 -3
- package/api/theme-edit/_catalog.mjs +167 -19
- package/api/theme-edit/_check.d.mts +151 -2
- package/api/theme-edit/_check.mjs +2732 -479
- package/api/theme-edit/_color.d.mts +17 -0
- package/api/theme-edit/_color.mjs +51 -1
- package/api/theme-edit/_compiler.d.mts +6 -1
- package/api/theme-edit/_compiler.mjs +210 -19
- package/api/theme-edit/_context.d.mts +110 -6
- package/api/theme-edit/_context.mjs +579 -100
- package/api/theme-edit/_css.d.mts +34 -0
- package/api/theme-edit/_css.mjs +103 -24
- package/api/theme-edit/_edit.d.mts +68 -13
- package/api/theme-edit/_edit.mjs +5104 -687
- package/api/theme-edit/_how-commands.d.mts +30 -1
- package/api/theme-edit/_how-commands.mjs +626 -35
- package/api/theme-edit/_how-question.d.mts +50 -9
- package/api/theme-edit/_how-question.mjs +8775 -970
- package/api/theme-edit/_how.d.mts +13 -2
- package/api/theme-edit/_how.mjs +225 -47
- package/api/theme-edit/_importers.d.mts +38 -0
- package/api/theme-edit/_importers.mjs +188 -0
- package/api/theme-edit/_name-rule.d.mts +11 -0
- package/api/theme-edit/_name-rule.mjs +12 -0
- package/api/theme-edit/_normal.d.mts +191 -14
- package/api/theme-edit/_normal.mjs +1191 -72
- package/api/theme-edit/_palette.d.mts +49 -0
- package/api/theme-edit/_palette.mjs +213 -44
- package/api/theme-edit/_part-words.d.mts +39 -0
- package/api/theme-edit/_part-words.mjs +173 -0
- package/api/theme-edit/_parts.d.mts +52 -4
- package/api/theme-edit/_parts.mjs +421 -50
- package/api/theme-edit/_preview-app.d.mts +8 -13
- package/api/theme-edit/_preview-app.mjs +1282 -649
- package/api/theme-edit/_preview.d.mts +150 -19
- package/api/theme-edit/_preview.mjs +771 -245
- package/api/theme-edit/_project.d.mts +61 -1
- package/api/theme-edit/_project.mjs +177 -6
- package/api/theme-edit/_settings.d.mts +571 -80
- package/api/theme-edit/_settings.mjs +4567 -776
- package/api/theme-edit/_tables.d.mts +43 -3
- package/api/theme-edit/_tables.mjs +250 -53
- package/api/theme-edit/_vet.d.mts +31 -0
- package/api/theme-edit/_vet.mjs +114 -8
- package/api/theme-edit/theme-edit.type.d.mts +42 -1
- package/api/theme-edit/theme-edit.type.mjs +18 -2
- package/api/theme-edit/themeEditHow.doc.mjs +1 -1
- package/api/theme-edit/themeEditNew.doc.d.mts +0 -1
- package/api/theme-edit/themeEditNew.doc.mjs +7 -4
- package/api/theme-edit/themeEditPreviewApp.doc.mjs +1 -1
- package/api/theme-edit/themeEditPreviewRemove.doc.mjs +2 -2
- package/api/upgrade/run/run.mjs +4 -3
- package/api/upgrade/upgrade.mjs +16 -1
- package/assets/codemods/integration-discovery.mjs +2 -1
- package/assets/codemods/integration-runner.mjs +1 -1
- package/assets/codemods/jscodeshift.d.ts +1 -1
- package/assets/codemods/parse.mjs +2 -2
- package/assets/codemods/run-codemod.mjs +71 -18
- package/assets/codemods/runner.mjs +1 -4
- package/assets/component-list.generated.json +1 -1
- package/assets/docs/author-a-theme.doc.mjs +1 -0
- package/assets/docs/theme.doc.dense.mjs +86 -7
- package/assets/docs/theme.doc.mjs +76 -2
- package/assets/docs/theme.doc.zh.mjs +61 -1
- package/assets/docs/tree/checks.doc.mjs +2 -2
- package/assets/docs/tree/document-the-theme.doc.mjs +1 -1
- package/assets/docs/tree/font-setup.doc.mjs +1 -1
- package/assets/docs/tree/fonts-and-assets.doc.mjs +1 -1
- package/assets/docs/tree/install-once.doc.mjs +1 -1
- package/assets/docs/tree/render-pages.doc.mjs +4 -4
- package/assets/docs/tree/share-a-page.doc.mjs +157 -0
- package/assets/docs/tree/write-good-templates.doc.mjs +1 -1
- package/assets/docs/use-a-theme.doc.mjs +1 -1
- package/assets/docs-routes.generated.json +1 -0
- package/assets/docs.generated.json +2 -2
- package/assets/search-catalog.generated.json +2 -0
- package/assets/self-audit.generated.json +1 -1
- package/assets/templates/blocks/components/ChatComposerInput/useChatPasteAsTokenHookUsage.doc.mjs +14 -0
- package/assets/templates/blocks/components/ChatComposerInput/useChatPasteAsTokenHookUsage.tsx +32 -0
- package/assets/templates/blocks/components/ChatComposerInput/useSpeechRecognitionHookUsage.doc.mjs +14 -0
- package/assets/templates/blocks/components/ChatComposerInput/useSpeechRecognitionHookUsage.tsx +43 -0
- package/assets/templates/blocks/components/Hooks/useContainerRevealHookUsage.tsx +2 -2
- package/assets/templates/components.generated.json +1 -1
- package/assets/templates/pages/ai-chat-landing/page.tsx +31 -4
- package/assets/templates/pages/ai-chat-landing/template.doc.mjs +3 -0
- package/assets/templates/pages/dashboard-alert-rail/page.tsx +1 -1
- package/assets/templates/pages/dashboard-cohort-funnel/page.tsx +1 -1
- package/assets/templates/pages/dashboard-comparison/page.tsx +2 -2
- package/assets/templates/pages/dashboard-progress/page.tsx +1 -1
- package/assets/templates/pages/detail-page/page.tsx +60 -7
- package/assets/templates/pages/documentation-technical/page.tsx +13 -13
- package/assets/templates/pages/editor/page.tsx +14 -2
- package/assets/templates/pages/file-explorer/page.tsx +9 -0
- package/assets/templates/pages/form-wizard-vertical/page.tsx +23 -3
- package/assets/templates/pages/ide/page.tsx +9 -0
- package/assets/templates/pages/kanban-board/page.tsx +12 -2
- package/assets/templates/pages/login-card/page.tsx +16 -0
- package/assets/templates/pages/login-split/page.tsx +19 -6
- package/assets/templates/pages/messaging-shell/template.doc.mjs +6 -0
- package/assets/templates/pages/payment-form/page.tsx +30 -4
- package/assets/templates/pages/product-detail/page.tsx +26 -2
- package/assets/templates/pages/settings-dialog/page.tsx +162 -12
- package/assets/templates/pages/shell-side-nav/page.tsx +11 -3
- package/assets/templates/pages/table-filter/page.tsx +9 -0
- package/assets/templates/pages/table-grouped/page.tsx +161 -133
- package/assets/templates/pages/table-page/page.tsx +14 -1
- package/assets/templates/pages/work-item-detail/page.tsx +47 -7
- package/assets/theme.template.ts +9 -2
- package/authoring/doctypes/_schema.d.mts +6 -6
- package/authoring/doctypes/component/categories.d.mts +37 -0
- package/authoring/doctypes/component/categories.mjs +54 -0
- package/authoring/integration/integration.doc.mjs +8 -0
- package/authoring/integration/schema.d.mts +24 -1
- package/authoring/integration/schema.mjs +126 -4
- package/authoring/integration/type.ts +14 -0
- package/clients/cli/build-id.generated.json +1 -1
- package/clients/cli/commands/component.mjs +86 -38
- package/clients/cli/commands/discover.mjs +70 -3
- package/clients/cli/commands/docs.mjs +41 -5
- package/clients/cli/commands/doctor.mjs +52 -2
- package/clients/cli/commands/experimental/render.mjs +10 -0
- package/clients/cli/commands/experimental/theme.mjs +1157 -139
- package/clients/cli/commands/experimental-theme-compile.doc.mjs +2 -2
- package/clients/cli/commands/experimental-theme-editor-how.doc.mjs +87 -1
- package/clients/cli/commands/experimental-theme-editor-new.doc.mjs +10 -3
- package/clients/cli/commands/experimental-theme-editor-set.doc.mjs +2 -2
- package/clients/cli/commands/experimental-theme-editor-show.doc.mjs +2 -2
- package/clients/cli/commands/experimental-theme-editor-undo.doc.mjs +2 -2
- package/clients/cli/commands/experimental-theme-preview-app.doc.mjs +2 -2
- package/clients/cli/commands/experimental-theme-preview-remove.doc.mjs +2 -2
- package/clients/cli/commands/experimental-theme-preview.doc.mjs +2 -1
- package/clients/cli/commands/experimental-theme-remove.doc.mjs +4 -4
- package/clients/cli/commands/experimental-theme.doc.mjs +5 -1
- package/clients/cli/commands/init.mjs +14 -6
- package/clients/cli/commands/template.doc.mjs +1 -1
- package/clients/cli/commands/template.mjs +11 -0
- package/clients/cli/commands/theme-add.doc.mjs +1 -1
- package/clients/cli/commands/theme-build.doc.mjs +8 -0
- package/clients/cli/commands/theme-list.doc.mjs +1 -1
- package/clients/cli/commands/theme-remove.doc.mjs +13 -5
- package/clients/cli/commands/theme.mjs +844 -559
- package/clients/cli/commands/upgrade.mjs +7 -3
- package/clients/cli/index.mjs +8 -18
- package/clients/cli/lib/cli-error.mjs +23 -1
- package/clients/cli/lib/json-shim.mjs +347 -32
- package/clients/cli/lib/manifest.mjs +3 -2
- package/clients/cli/lib/stray-option.mjs +478 -0
- package/clients/cli/lib/unknown-command.mjs +353 -0
- package/clients/cli/manifest.generated.json +1 -1
- package/foundation/agent-docs/agent-docs.mjs +1 -1
- package/foundation/config/project.d.mts +8 -0
- package/foundation/config/project.mjs +26 -29
- package/foundation/config/theme-build-header.d.mts +14 -0
- package/foundation/config/theme-build-header.mjs +14 -0
- package/foundation/config/theme-private-vars.d.mts +26 -2
- package/foundation/config/theme-private-vars.mjs +65 -5
- package/foundation/config/theme-state.d.mts +19 -2
- package/foundation/config/theme-state.mjs +93 -1
- package/foundation/discovery/cli-self-doc-names.d.mts +13 -0
- package/foundation/discovery/cli-self-doc-names.mjs +51 -0
- package/foundation/discovery/cli-self-docs.d.mts +0 -2
- package/foundation/discovery/cli-self-docs.mjs +2 -15
- package/foundation/discovery/component-discovery.mjs +8 -6
- package/foundation/discovery/copied-passages.mjs +2 -1
- package/foundation/discovery/core-component-docs.d.mts +29 -0
- package/foundation/discovery/core-component-docs.mjs +83 -0
- package/foundation/discovery/core-theme-facts.d.mts +70 -0
- package/foundation/discovery/core-theme-facts.mjs +384 -0
- package/foundation/discovery/doc-types.mjs +4 -3
- package/foundation/discovery/docs-discovery.d.mts +66 -9
- package/foundation/discovery/docs-discovery.mjs +126 -60
- package/foundation/discovery/entry-name-files.d.mts +72 -9
- package/foundation/discovery/entry-name-files.mjs +193 -103
- package/foundation/discovery/hook-discovery.d.mts +10 -0
- package/foundation/discovery/hook-discovery.mjs +79 -41
- package/foundation/discovery/icon-definition-discovery.mjs +2 -1
- package/foundation/discovery/icon-set-checks.mjs +2 -1
- package/foundation/discovery/icon-set-discovery.mjs +2 -1
- package/foundation/discovery/integration-component-views.d.mts +15 -0
- package/foundation/discovery/integration-component-views.mjs +91 -0
- package/foundation/discovery/integration-doc-files.mjs +2 -1
- package/foundation/discovery/module-exports.d.mts +26 -1
- package/foundation/discovery/module-exports.mjs +114 -40
- package/foundation/discovery/name-roots.d.mts +38 -0
- package/foundation/discovery/name-roots.mjs +108 -0
- package/foundation/discovery/next-routes.d.mts +48 -0
- package/foundation/discovery/next-routes.mjs +197 -0
- package/foundation/discovery/prop-drift.mjs +9 -9
- package/foundation/discovery/stored-search-catalog.d.mts +115 -0
- package/foundation/discovery/stored-search-catalog.mjs +297 -0
- package/foundation/discovery/stored-self-audit.mjs +2 -0
- package/foundation/discovery/template-adapter.d.mts +31 -63
- package/foundation/discovery/template-adapter.mjs +36 -209
- package/foundation/discovery/template-destination.d.mts +28 -0
- package/foundation/discovery/template-destination.mjs +106 -0
- package/foundation/discovery/template-icons.mjs +2 -1
- package/foundation/discovery/template-ids.d.mts +69 -0
- package/foundation/discovery/template-ids.mjs +199 -0
- package/foundation/discovery/theme-discovery.d.mts +12 -0
- package/foundation/discovery/theme-discovery.mjs +34 -4
- package/foundation/discovery/theme-imports.d.mts +10 -0
- package/foundation/discovery/theme-imports.mjs +18 -3
- package/foundation/discovery/theming-targets.d.mts +13 -5
- package/foundation/discovery/theming-targets.mjs +41 -47
- package/foundation/doc-compiler/generated-levels.d.mts +43 -0
- package/foundation/doc-compiler/generated-levels.mjs +72 -0
- package/foundation/doc-compiler/inputs.mjs +3 -2
- package/foundation/doc-compiler/literal-doc.d.mts +12 -0
- package/foundation/doc-compiler/literal-doc.mjs +322 -0
- package/foundation/doc-compiler/stored-docs.d.mts +7 -0
- package/foundation/doc-compiler/stored-docs.mjs +14 -1
- package/foundation/doc-compiler/tree.d.mts +4 -84
- package/foundation/doc-compiler/tree.mjs +4 -62
- package/foundation/env/semver.mjs +3 -1
- package/foundation/fonts/font-stylesheet.d.mts +61 -0
- package/foundation/fonts/font-stylesheet.mjs +207 -0
- package/foundation/fs/exact-codec.d.mts +12 -2
- package/foundation/fs/exact-codec.mjs +23 -6
- package/foundation/fs/file-protection.mjs +16 -5
- package/foundation/fs/gather-cache.d.mts +75 -2
- package/foundation/fs/gather-cache.mjs +574 -93
- package/foundation/fs/glob.d.mts +16 -0
- package/foundation/fs/glob.mjs +105 -0
- package/foundation/fs/kept-tree.d.mts +39 -15
- package/foundation/fs/kept-tree.mjs +155 -46
- package/foundation/fs/module-loader.d.mts +16 -1
- package/foundation/fs/module-loader.mjs +140 -9
- package/foundation/fs/path-safety.d.mts +34 -2
- package/foundation/fs/path-safety.mjs +170 -18
- package/foundation/fs/paths.d.mts +18 -0
- package/foundation/fs/paths.mjs +15 -2
- package/foundation/fs/read-record.d.mts +84 -7
- package/foundation/fs/read-record.mjs +333 -56
- package/foundation/fs/regular-file.d.mts +29 -0
- package/foundation/fs/regular-file.mjs +77 -0
- package/foundation/fs/stop-cleanup.d.mts +12 -0
- package/foundation/fs/stop-cleanup.mjs +66 -0
- package/foundation/integrations/contribution-inventory.mjs +4 -3
- package/foundation/integrations/integrations.d.mts +23 -1
- package/foundation/integrations/integrations.mjs +18 -1
- package/foundation/integrations/pack-state.d.mts +85 -0
- package/foundation/integrations/pack-state.mjs +509 -0
- package/foundation/integrations/public-imports.mjs +2 -1
- package/foundation/integrations/shipped-imports.d.mts +125 -0
- package/foundation/integrations/shipped-imports.mjs +530 -0
- package/foundation/integrations/validate-contributions.d.mts +0 -17
- package/foundation/integrations/validate-contributions.mjs +81 -290
- package/foundation/render/assets.mjs +52 -7
- package/foundation/render/charts.d.mts +78 -27
- package/foundation/render/charts.mjs +266 -90
- package/foundation/render/embedded-files.mjs +17 -4
- package/foundation/render/embedded-imports.d.mts +56 -3
- package/foundation/render/embedded-imports.mjs +205 -41
- package/foundation/render/file-header.d.mts +2 -2
- package/foundation/render/file-header.mjs +1 -1
- package/foundation/render/layers.d.mts +36 -0
- package/foundation/render/layers.mjs +255 -0
- package/foundation/render/markup-edits.d.mts +1 -1
- package/foundation/render/markup-edits.mjs +1 -1
- package/foundation/render/offline.d.mts +32 -0
- package/foundation/render/offline.mjs +56 -0
- package/foundation/render/page-worker.mjs +309 -9
- package/foundation/render/picture-chrome.d.mts +4 -0
- package/foundation/render/picture-chrome.mjs +204 -0
- package/foundation/render/picture-playwright.d.mts +4 -0
- package/foundation/render/picture-playwright.mjs +49 -0
- package/foundation/render/rebuild.mjs +2 -1
- package/foundation/render/render-page.d.mts +46 -4
- package/foundation/render/render-page.mjs +480 -107
- package/foundation/render/source-block.d.mts +6 -2
- package/foundation/render/source-block.mjs +31 -9
- package/foundation/render/ts-paths.d.mts +21 -5
- package/foundation/render/ts-paths.mjs +56 -15
- package/foundation/response/response-types.doc.mjs +5 -5
- package/foundation/runtime/css-tree.d.mts +11 -0
- package/foundation/runtime/css-tree.mjs +49 -0
- package/foundation/runtime/lazy-dependencies.d.mts +3 -1
- package/foundation/runtime/lazy-dependencies.mjs +20 -5
- package/foundation/suggest/name-index.d.mts +148 -0
- package/foundation/suggest/name-index.mjs +317 -0
- package/foundation/suggest/other-command.d.mts +140 -0
- package/foundation/suggest/other-command.mjs +756 -0
- package/foundation/text/compare-text.d.mts +14 -0
- package/foundation/text/compare-text.mjs +68 -0
- package/foundation/text/css-escape.d.mts +18 -0
- package/foundation/text/css-escape.mjs +35 -0
- package/foundation/text/entry-names.d.mts +14 -0
- package/foundation/text/entry-names.mjs +14 -0
- package/foundation/text/string-utils.d.mts +43 -4
- package/foundation/text/string-utils.mjs +102 -17
- package/foundation/text/suggest-order.d.mts +38 -4
- package/foundation/text/suggest-order.mjs +161 -5
- package/foundation/xle/browser.d.mts +2 -2
- package/foundation/xle/expand.mjs +2 -1
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -507,7 +507,7 @@ Every response has a `type` discriminant. The full set is below (generated from
|
|
|
507
507
|
| `template.list` | The effective discovered TemplateListEntry[] for pages and blocks. A winning replacement entry includes optional `replaces`, naming the Core id omitted from the default list. |
|
|
508
508
|
| `template.show` | The resolved template's source, exactly as a copy writes it, plus its description, kind, the component names it composes, and demoMediaReplaced (how many Astryx demo media references were replaced with placeholders for you to swap for your own media), and demoContentReplaced (how many Astryx docs-only demo content elements were replaced with a Text placeholder for your own content). |
|
|
509
509
|
| `template.skeleton` | A layout skeleton (structural tags with spatial annotations) plus the template's description and the components it composes. The envelope's package names the npm package that owns the template. |
|
|
510
|
-
| `template.copy` | A scaffold receipt: template id, output directory, written file name, file count, demoMediaReplaced (how many Astryx demo media references were replaced with placeholders), demoContentReplaced (how many Astryx docs-only demo content elements were replaced with a Text placeholder), notes (setup notes naming what the template needs that the project lacks — missing packages, missing StyleX compiler; empty when satisfied), missingPackages (external package names the template imports that are not in the project), and installCommand (a ready-to-run install command with the detected package manager and workspace version ranges; null when nothing is missing, or when several lockfiles leave the package manager undetermined). The envelope's package names the npm package that owns the template.
|
|
510
|
+
| `template.copy` | A scaffold receipt: template id, output directory (relative to the project; absolute for a scratch copy in the system temp folder), written file name, file count, givenPath (optional; the absolute path as given, present only when it was inside the project), demoMediaReplaced (how many Astryx demo media references were replaced with placeholders), demoContentReplaced (how many Astryx docs-only demo content elements were replaced with a Text placeholder), notes (setup notes naming what the template needs that the project lacks — missing packages, missing StyleX compiler; empty when satisfied), missingPackages (external package names the template imports that are not in the project), and installCommand (a ready-to-run install command with the detected package manager and workspace version ranges; null when nothing is missing, or when several lockfiles leave the package manager undetermined). The envelope's package names the npm package that owns the template. |
|
|
511
511
|
| `template.cdn` | A write receipt for the no-build-step CDN starter page: the path (relative to cwd), the Astryx version every CDN URL was pinned to, whether it was written, and the reason it was not. `exists` when a file was already there, which is a success. |
|
|
512
512
|
| `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 @astryxdesign/core, the only package that ships hooks. |
|
|
513
513
|
| `hook.detail` | One hook's full authored HookDoc. The envelope's package is @astryxdesign/core. |
|
|
@@ -515,7 +515,7 @@ Every response has a `type` discriminant. The full set is below (generated from
|
|
|
515
515
|
| `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), and notices (advisories about a correct theme, such as a named font it does not load). |
|
|
516
516
|
| `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, and, when any is stale or missing, code ERR_THEME_STALE. Writes nothing. |
|
|
517
517
|
| `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. |
|
|
518
|
-
| `theme.list` | Every bundled, installed package, and local theme as a ThemeListEntry[]. Each entry has slug, displayName, description, maintained,
|
|
518
|
+
| `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. |
|
|
519
519
|
| `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. |
|
|
520
520
|
| `theme.eject` | A local source-fork receipt with the resolved slug, displayName, source theme maintained flag, source-selector package, outputDir, source entry, exportName, and every file written, including the descriptor. The written local descriptor always uses maintained: false. |
|
|
521
521
|
| `theme.template` | A write receipt for the annotated theme template: the path (relative to cwd), whether it was written, and the reason it was not. `exists` when a file was already there, which is a success. |
|
package/api/build/_adapter.d.mts
CHANGED
|
@@ -13,12 +13,15 @@
|
|
|
13
13
|
* @property {string[]} keywords The ideas the page serves, as its own descriptor names them; empty when it declares none.
|
|
14
14
|
* @property {string} filePath Absolute path to the template source file on disk.
|
|
15
15
|
* @property {string[]} components The components its page composes, read from its source on first use; empty when the source cannot be read.
|
|
16
|
+
* @property {boolean} hidden The template's own `isHiddenFromOverview`: kept off the gallery, so never taken as the app shell.
|
|
16
17
|
*/
|
|
17
18
|
/**
|
|
18
19
|
* A component the project can use, as the ranker reads it.
|
|
19
20
|
* @typedef {object} ComponentWords
|
|
20
21
|
* @property {string} name The component's name, e.g. `DateRangeInput`.
|
|
21
22
|
* @property {string[]} keywords The keywords its own doc declares.
|
|
23
|
+
* @property {string} [category] The category its own doc files it under,
|
|
24
|
+
* e.g. `Table & List`.
|
|
22
25
|
*/
|
|
23
26
|
/**
|
|
24
27
|
* Every ready page template the project can scaffold, in discovery order. This
|
|
@@ -114,6 +117,17 @@ export function isWeightsFile(file: any): file is import("./kit/weights.mjs").We
|
|
|
114
117
|
* @returns {string[]} Setup notes (empty when the template needs nothing).
|
|
115
118
|
*/
|
|
116
119
|
export function templateSetupNotes(template: PageTemplate, cwd: string): string[];
|
|
120
|
+
/**
|
|
121
|
+
* Where a page template goes in the project where build ran, quoted for a
|
|
122
|
+
* printed command: the path `astryx template` names for it from the
|
|
123
|
+
* project's layout (in a Next app, the App Router folder). Null when that
|
|
124
|
+
* folder has no package.json, so no project layout is known.
|
|
125
|
+
*
|
|
126
|
+
* @param {string} id the template's own id
|
|
127
|
+
* @param {string} cwd the folder build ran in
|
|
128
|
+
* @returns {string | null}
|
|
129
|
+
*/
|
|
130
|
+
export function pageDestination(id: string, cwd: string): string | null;
|
|
117
131
|
/**
|
|
118
132
|
* The Core a build answers from: the project's, else the release's own,
|
|
119
133
|
* installed into the per-user cache first when needed (a network install
|
|
@@ -163,6 +177,10 @@ export type PageTemplate = {
|
|
|
163
177
|
* The components its page composes, read from its source on first use; empty when the source cannot be read.
|
|
164
178
|
*/
|
|
165
179
|
components: string[];
|
|
180
|
+
/**
|
|
181
|
+
* The template's own `isHiddenFromOverview`: kept off the gallery, so never taken as the app shell.
|
|
182
|
+
*/
|
|
183
|
+
hidden: boolean;
|
|
166
184
|
};
|
|
167
185
|
/**
|
|
168
186
|
* A component the project can use, as the ranker reads it.
|
|
@@ -176,6 +194,11 @@ export type ComponentWords = {
|
|
|
176
194
|
* The keywords its own doc declares.
|
|
177
195
|
*/
|
|
178
196
|
keywords: string[];
|
|
197
|
+
/**
|
|
198
|
+
* The category its own doc files it under,
|
|
199
|
+
* e.g. `Table & List`.
|
|
200
|
+
*/
|
|
201
|
+
category?: string | undefined;
|
|
179
202
|
};
|
|
180
203
|
/**
|
|
181
204
|
* A block the kit can name, as search names a block result.
|
package/api/build/_adapter.mjs
CHANGED
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
23
|
import fs from 'node:fs';
|
|
24
|
+
import path from 'node:path';
|
|
24
25
|
import {fileURLToPath} from 'node:url';
|
|
25
26
|
|
|
26
27
|
import {discoverTemplates} from '../template/template.mjs';
|
|
@@ -29,6 +30,8 @@ import {findCoreDir, requireCoreDir} from '../../foundation/fs/paths.mjs';
|
|
|
29
30
|
import {persistedDerived} from '../../foundation/fs/gather-cache.mjs';
|
|
30
31
|
import {analyzeTemplateNeeds} from '../../foundation/discovery/template-needs.mjs';
|
|
31
32
|
import {extractComponents} from '../../foundation/discovery/template-adapter.mjs';
|
|
33
|
+
import {templateDestination} from '../../foundation/discovery/template-destination.mjs';
|
|
34
|
+
import {quoteCommandArgument} from '../../foundation/env/package-manager.mjs';
|
|
32
35
|
import {isWordModel} from './kit/word-model.mjs';
|
|
33
36
|
|
|
34
37
|
/**
|
|
@@ -50,6 +53,7 @@ export {withListingCache} from '../../foundation/fs/listing-cache.mjs';
|
|
|
50
53
|
* @property {string[]} keywords The ideas the page serves, as its own descriptor names them; empty when it declares none.
|
|
51
54
|
* @property {string} filePath Absolute path to the template source file on disk.
|
|
52
55
|
* @property {string[]} components The components its page composes, read from its source on first use; empty when the source cannot be read.
|
|
56
|
+
* @property {boolean} hidden The template's own `isHiddenFromOverview`: kept off the gallery, so never taken as the app shell.
|
|
53
57
|
*/
|
|
54
58
|
|
|
55
59
|
/**
|
|
@@ -57,6 +61,8 @@ export {withListingCache} from '../../foundation/fs/listing-cache.mjs';
|
|
|
57
61
|
* @typedef {object} ComponentWords
|
|
58
62
|
* @property {string} name The component's name, e.g. `DateRangeInput`.
|
|
59
63
|
* @property {string[]} keywords The keywords its own doc declares.
|
|
64
|
+
* @property {string} [category] The category its own doc files it under,
|
|
65
|
+
* e.g. `Table & List`.
|
|
60
66
|
*/
|
|
61
67
|
|
|
62
68
|
/**
|
|
@@ -111,6 +117,7 @@ export async function loadTemplates(cwd) {
|
|
|
111
117
|
package: t.package ?? '@astryxdesign/core',
|
|
112
118
|
category: t.category || '',
|
|
113
119
|
keywords: t.keywords ?? [],
|
|
120
|
+
hidden: t.hidden === true,
|
|
114
121
|
filePath: t.filePath,
|
|
115
122
|
// The id `template()` resolves back to this entry: an active
|
|
116
123
|
// replacement owns the Core id it names, so that id selects it.
|
|
@@ -339,6 +346,21 @@ export function templateSetupNotes(template, cwd) {
|
|
|
339
346
|
}
|
|
340
347
|
}
|
|
341
348
|
|
|
349
|
+
/**
|
|
350
|
+
* Where a page template goes in the project where build ran, quoted for a
|
|
351
|
+
* printed command: the path `astryx template` names for it from the
|
|
352
|
+
* project's layout (in a Next app, the App Router folder). Null when that
|
|
353
|
+
* folder has no package.json, so no project layout is known.
|
|
354
|
+
*
|
|
355
|
+
* @param {string} id the template's own id
|
|
356
|
+
* @param {string} cwd the folder build ran in
|
|
357
|
+
* @returns {string | null}
|
|
358
|
+
*/
|
|
359
|
+
export function pageDestination(id, cwd) {
|
|
360
|
+
if (!fs.existsSync(path.join(cwd, 'package.json'))) return null;
|
|
361
|
+
return quoteCommandArgument(templateDestination(cwd, 'page', id));
|
|
362
|
+
}
|
|
363
|
+
|
|
342
364
|
/**
|
|
343
365
|
* The Core a build answers from: the project's, else the release's own,
|
|
344
366
|
* installed into the per-user cache first when needed (a network install
|