@astryxdesign/cli 0.7.17-canary.g5e463b2 → 0.7.17-canary.g5f2aed9
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 +3 -3
- package/api/build/_adapter.d.mts +16 -0
- package/api/build/_adapter.mjs +20 -0
- package/api/build/blocks/blocks.weights.json +1 -1
- package/api/build/build.doc.mjs +2 -2
- package/api/build/build.type.d.mts +5 -1
- package/api/build/build.type.mjs +4 -3
- package/api/build/kit/kit.mjs +3 -3
- package/api/build/kit/rank.d.mts +2 -2
- package/api/build/kit/rank.mjs +7 -4
- package/api/build/kit/signals.d.mts +7 -1
- package/api/build/kit/signals.mjs +90 -26
- package/api/build/kit/start.d.mts +18 -4
- package/api/build/kit/start.mjs +64 -18
- package/api/build/kit/weights.d.mts +29 -4
- package/api/build/kit/weights.json +1 -1
- package/api/build/kit/weights.mjs +84 -18
- 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 +27 -2
- package/api/component/_adapter.mjs +136 -8
- package/api/component/component.mjs +14 -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/docs/_adapter.d.mts +52 -21
- package/api/docs/_adapter.mjs +230 -210
- 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 +79 -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 +284 -16
- 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/integration/add-helpers.mjs +10 -0
- package/api/integration/authoring-checks.mjs +5 -2
- 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 +110 -14
- 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/render.type.d.mts +1 -1
- package/api/render/render.type.mjs +1 -1
- package/api/search/ORDERING.md +1 -1
- package/api/search/_candidate-score.d.mts +9 -4
- package/api/search/_candidate-score.mjs +82 -14
- package/api/search/_lexical.d.mts +9 -0
- package/api/search/_lexical.mjs +85 -9
- package/api/swizzle/_adapter.mjs +15 -3
- 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 +149 -12
- 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 +91 -16
- package/api/theme/build/build.mjs +1417 -318
- package/api/theme/build/family.mjs +43 -14
- package/api/theme/build/font-warning.d.mts +93 -3
- package/api/theme/build/font-warning.mjs +363 -57
- package/api/theme/build/icon-imports.mjs +51 -9
- package/api/theme/build/input-fields.d.mts +95 -0
- package/api/theme/build/input-fields.mjs +544 -0
- package/api/theme/build/null-values.d.mts +30 -0
- package/api/theme/build/null-values.mjs +212 -0
- package/api/theme/build/self-contained.d.mts +90 -0
- package/api/theme/build/self-contained.mjs +312 -0
- package/api/theme/build/source-syntax.d.mts +11 -0
- package/api/theme/build/source-syntax.mjs +28 -0
- package/api/theme/build/style-keys.d.mts +72 -0
- package/api/theme/build/style-keys.mjs +589 -0
- package/api/theme/build/typography-values.d.mts +31 -0
- package/api/theme/build/typography-values.mjs +196 -0
- package/api/theme/build/written-values.d.mts +71 -0
- package/api/theme/build/written-values.mjs +433 -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/themeBuild.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 +29 -4
- package/api/theme-edit/_adapter.mjs +252 -60
- package/api/theme-edit/_catalog.d.mts +75 -3
- package/api/theme-edit/_catalog.mjs +320 -21
- package/api/theme-edit/_check.d.mts +147 -3
- package/api/theme-edit/_check.mjs +2253 -461
- package/api/theme-edit/_color.d.mts +16 -0
- package/api/theme-edit/_color.mjs +43 -1
- package/api/theme-edit/_compiler.d.mts +7 -2
- package/api/theme-edit/_compiler.mjs +322 -25
- package/api/theme-edit/_context.d.mts +108 -4
- package/api/theme-edit/_context.mjs +529 -74
- package/api/theme-edit/_css.d.mts +20 -0
- package/api/theme-edit/_css.mjs +78 -24
- package/api/theme-edit/_edit.d.mts +65 -4
- package/api/theme-edit/_edit.mjs +4313 -615
- package/api/theme-edit/_how-commands.d.mts +21 -0
- package/api/theme-edit/_how-commands.mjs +566 -22
- package/api/theme-edit/_how-question.d.mts +56 -2
- package/api/theme-edit/_how-question.mjs +9705 -804
- package/api/theme-edit/_how.d.mts +11 -1
- package/api/theme-edit/_how.mjs +227 -14
- package/api/theme-edit/_importers.d.mts +38 -0
- package/api/theme-edit/_importers.mjs +188 -0
- package/api/theme-edit/_missed.d.mts +54 -0
- package/api/theme-edit/_missed.mjs +655 -0
- package/api/theme-edit/_normal.d.mts +93 -19
- package/api/theme-edit/_normal.mjs +560 -68
- package/api/theme-edit/_palette.d.mts +77 -0
- package/api/theme-edit/_palette.mjs +329 -69
- package/api/theme-edit/_part-words.d.mts +8 -0
- package/api/theme-edit/_part-words.mjs +50 -3
- package/api/theme-edit/_parts.d.mts +61 -2
- package/api/theme-edit/_parts.mjs +519 -67
- package/api/theme-edit/_preview-app.d.mts +8 -13
- package/api/theme-edit/_preview-app.mjs +970 -539
- package/api/theme-edit/_preview.d.mts +106 -5
- package/api/theme-edit/_preview.mjs +595 -89
- package/api/theme-edit/_project.d.mts +38 -3
- package/api/theme-edit/_project.mjs +135 -8
- package/api/theme-edit/_settings.d.mts +566 -63
- package/api/theme-edit/_settings.mjs +4379 -769
- package/api/theme-edit/_tables.d.mts +43 -3
- package/api/theme-edit/_tables.mjs +242 -57
- package/api/theme-edit/_vet.d.mts +14 -1
- package/api/theme-edit/_vet.mjs +86 -12
- package/api/theme-edit/theme-edit.type.d.mts +50 -1
- package/api/theme-edit/theme-edit.type.mjs +20 -2
- package/api/theme-edit/themeEditPreviewApp.doc.mjs +1 -1
- package/api/upgrade/upgrade.mjs +16 -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/problems.doc.mjs +1 -1
- package/assets/docs/tree/render-pages.doc.mjs +2 -2
- 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 -2
- 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/components.generated.json +1 -1
- package/assets/templates/pages/access-denied/page.tsx +101 -0
- package/assets/templates/pages/access-denied/template.doc.mjs +24 -0
- 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/error-page/page.tsx +130 -0
- package/assets/templates/pages/error-page/template.doc.mjs +22 -0
- 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/ide/template.doc.mjs +1 -1
- package/assets/templates/pages/incident-console/page.tsx +128 -29
- package/assets/templates/pages/incident-console/template.doc.mjs +1 -1
- 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/page.tsx +409 -419
- package/assets/templates/pages/messaging-shell/template.doc.mjs +6 -6
- package/assets/templates/pages/not-found/page.tsx +124 -0
- package/assets/templates/pages/not-found/template.doc.mjs +30 -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/review-workspace/page.tsx +551 -0
- package/assets/templates/pages/review-workspace/template.doc.mjs +31 -0
- package/assets/templates/pages/run-console/page.tsx +945 -0
- package/assets/templates/pages/run-console/template.doc.mjs +27 -0
- 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/page.tsx +574 -61
- package/assets/templates/pages/table/template.doc.mjs +10 -0
- 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/welcome-portal/page.tsx +538 -0
- package/assets/templates/pages/welcome-portal/template.doc.mjs +38 -0
- package/assets/templates/pages/work-item-detail/page.tsx +47 -7
- package/assets/theme.template.ts +3 -2
- package/authoring/doctypes/_schema.d.mts +6 -6
- package/authoring/doctypes/template/type.ts +7 -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/bin/astryx.mjs +9 -3
- package/clients/cli/build-id.generated.json +1 -1
- package/clients/cli/commands/build.mjs +1 -0
- package/clients/cli/commands/component.mjs +85 -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/theme.mjs +1248 -210
- package/clients/cli/commands/experimental-theme-compile.doc.mjs +1 -1
- package/clients/cli/commands/experimental-theme-editor-new.doc.mjs +1 -1
- 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 +3 -3
- package/clients/cli/commands/experimental-theme-preview-app.doc.mjs +2 -2
- package/clients/cli/commands/experimental-theme-remove.doc.mjs +4 -4
- package/clients/cli/commands/init.mjs +14 -6
- package/clients/cli/commands/swizzle.doc.mjs +1 -1
- 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 +9 -1
- 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 +792 -661
- package/clients/cli/commands/upgrade.mjs +7 -3
- package/clients/cli/index.mjs +10 -19
- package/clients/cli/lib/cli-error.mjs +21 -0
- package/clients/cli/lib/json-shim.mjs +626 -14
- 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/clients/cli/run.mjs +26 -2
- 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/debug/event.d.mts +8 -2
- package/foundation/debug/event.mjs +6 -7
- package/foundation/debug/recorder.d.mts +8 -1
- package/foundation/debug/recorder.mjs +8 -2
- 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 +3 -2
- 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/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 +77 -40
- package/foundation/discovery/integration-component-views.d.mts +15 -0
- package/foundation/discovery/integration-component-views.mjs +91 -0
- 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/stored-self-audit.mjs +2 -0
- package/foundation/discovery/template-adapter.d.mts +31 -63
- package/foundation/discovery/template-adapter.mjs +33 -207
- package/foundation/discovery/template-destination.d.mts +28 -0
- package/foundation/discovery/template-destination.mjs +106 -0
- 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 +3 -0
- 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 +38 -45
- package/foundation/doc-compiler/generated-levels.d.mts +43 -0
- package/foundation/doc-compiler/generated-levels.mjs +72 -0
- 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/intl-defaults.d.mts +39 -0
- package/foundation/env/intl-defaults.mjs +150 -0
- package/foundation/env/intl-now.d.mts +21 -0
- package/foundation/env/intl-now.mjs +25 -0
- package/foundation/fonts/font-stylesheet.d.mts +30 -0
- package/foundation/fonts/font-stylesheet.mjs +102 -10
- package/foundation/fs/cache-eviction.d.mts +3 -1
- package/foundation/fs/cache-eviction.mjs +7 -1
- package/foundation/fs/exact-codec.d.mts +12 -2
- package/foundation/fs/exact-codec.mjs +23 -6
- package/foundation/fs/file-protection.mjs +12 -2
- package/foundation/fs/gather-cache.d.mts +44 -2
- package/foundation/fs/gather-cache.mjs +262 -74
- package/foundation/fs/glob.d.mts +16 -0
- package/foundation/fs/glob.mjs +105 -0
- package/foundation/fs/jiti-cache.mjs +14 -6
- package/foundation/fs/kept-tree.d.mts +39 -15
- package/foundation/fs/kept-tree.mjs +155 -46
- package/foundation/fs/loaded-files.d.mts +23 -0
- package/foundation/fs/loaded-files.mjs +62 -0
- package/foundation/fs/module-loader.d.mts +46 -8
- package/foundation/fs/module-loader.mjs +485 -39
- package/foundation/fs/path-safety.d.mts +34 -2
- package/foundation/fs/path-safety.mjs +170 -18
- package/foundation/fs/read-record.d.mts +79 -11
- package/foundation/fs/read-record.mjs +326 -57
- 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/fs/stylesheet-file.d.mts +37 -0
- package/foundation/fs/stylesheet-file.mjs +48 -0
- package/foundation/fs/theme-module-rejections.d.mts +32 -0
- package/foundation/fs/theme-module-rejections.mjs +82 -0
- 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/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 +319 -90
- package/foundation/render/css-cut.d.mts +14 -1
- package/foundation/render/css-cut.mjs +35 -2
- package/foundation/render/embedded-imports.d.mts +31 -0
- package/foundation/render/embedded-imports.mjs +165 -37
- package/foundation/render/layers.d.mts +57 -0
- package/foundation/render/layers.mjs +456 -0
- package/foundation/render/offline.d.mts +32 -0
- package/foundation/render/offline.mjs +56 -0
- package/foundation/render/page-worker.mjs +291 -9
- package/foundation/render/picture-chrome.mjs +22 -2
- package/foundation/render/picture-playwright.mjs +19 -3
- package/foundation/render/picture-window.d.mts +16 -0
- package/foundation/render/picture-window.mjs +13 -0
- package/foundation/render/render-page.d.mts +46 -4
- package/foundation/render/render-page.mjs +453 -98
- package/foundation/response/response-types.doc.mjs +6 -6
- package/foundation/runtime/css-tree.d.mts +24 -0
- package/foundation/runtime/css-tree.mjs +102 -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 +143 -0
- package/foundation/suggest/other-command.mjs +766 -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 +100 -16
- package/foundation/text/suggest-order.d.mts +38 -4
- package/foundation/text/suggest-order.mjs +159 -4
- package/foundation/xle/browser.d.mts +2 -2
- package/package.json +8 -7
package/README.md
CHANGED
|
@@ -499,7 +499,7 @@ Every response has a `type` discriminant. The full set is below (generated from
|
|
|
499
499
|
| `discover.search` | The echoed query plus every matching item and package across all packages, each with its kind and whether the project has it, even when only one matches; total is set when --limit cut the list. |
|
|
500
500
|
| `search` | The echoed query, `matchCount` (total matches, before `limit`), and results, a ranked SearchResultEntry[] bounded by `limit`: each {domain, name, package, score, reason, description, command} (package is the npm package that owns the result), plus import (components, hooks), title, parent (the command that opens the level above), and, for a hit on one section, section (docs), or displayName and kind (templates). The result for a deprecated component also carries deprecated {replacement, description}: the name of the component to use instead and the modernization route, from its doc. When a search with no `type` could not obtain @astryxdesign/core, `meta.partial` is {skipped, reason}: the domains it skipped (component, hook, template) and why. |
|
|
501
501
|
| `build.help` | The how-to-build-a-page playbook, emitted when no query is given: `playbook: true`, a title, the ordered steps (title, commands, optional returns), the on-system rules, and related lookups. Commands are bare subcommands for the caller to render with its own invocation. |
|
|
502
|
-
| `build.kit` | The template to start from and its kit: query, hasResults, matchCount (never a cap), directMatch, start {name, package, command, basis, reason, alternatives, ...} (the start and each alternative name the package that owns the template), pages (search's closest templates), blocks and domain as SearchResultEntry[] (each naming its package), frame and foundation (Core component names), and hint {reason, commands} when thin.
|
|
502
|
+
| `build.kit` | The template to start from and its kit: query, hasResults, matchCount (never a cap), directMatch, start {name, package, command, basis, reason, alternatives, ...} (the start and each alternative name the package that owns the template), pages (search's closest templates that build could start from), blocks and domain as SearchResultEntry[] (each naming its package), frame and foundation (Core component names), and hint {reason, commands} when thin. |
|
|
503
503
|
| `swizzle.list` | The names of swizzlable components discoverable from cwd's @astryxdesign/core. The envelope's package is @astryxdesign/core. |
|
|
504
504
|
| `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. |
|
|
505
505
|
| `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. |
|
|
@@ -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,6 +13,7 @@
|
|
|
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.
|
|
@@ -116,6 +117,17 @@ export function isWeightsFile(file: any): file is import("./kit/weights.mjs").We
|
|
|
116
117
|
* @returns {string[]} Setup notes (empty when the template needs nothing).
|
|
117
118
|
*/
|
|
118
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;
|
|
119
131
|
/**
|
|
120
132
|
* The Core a build answers from: the project's, else the release's own,
|
|
121
133
|
* installed into the per-user cache first when needed (a network install
|
|
@@ -165,6 +177,10 @@ export type PageTemplate = {
|
|
|
165
177
|
* The components its page composes, read from its source on first use; empty when the source cannot be read.
|
|
166
178
|
*/
|
|
167
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;
|
|
168
184
|
};
|
|
169
185
|
/**
|
|
170
186
|
* A component the project can use, as the ranker reads it.
|
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
|
/**
|
|
@@ -113,6 +117,7 @@ export async function loadTemplates(cwd) {
|
|
|
113
117
|
package: t.package ?? '@astryxdesign/core',
|
|
114
118
|
category: t.category || '',
|
|
115
119
|
keywords: t.keywords ?? [],
|
|
120
|
+
hidden: t.hidden === true,
|
|
116
121
|
filePath: t.filePath,
|
|
117
122
|
// The id `template()` resolves back to this entry: an active
|
|
118
123
|
// replacement owns the Core id it names, so that id selects it.
|
|
@@ -341,6 +346,21 @@ export function templateSetupNotes(template, cwd) {
|
|
|
341
346
|
}
|
|
342
347
|
}
|
|
343
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
|
+
|
|
344
364
|
/**
|
|
345
365
|
* The Core a build answers from: the project's, else the release's own,
|
|
346
366
|
* installed into the per-user cache first when needed (a network install
|