@astryxdesign/cli 0.7.17-canary.g6ecaa86 → 0.7.17-canary.g8d68f1b
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 +1 -1
- package/api/build/_adapter.d.mts +5 -0
- package/api/build/_adapter.mjs +2 -0
- package/api/build/blocks/blocks.weights.json +1 -1
- 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 +21 -10
- package/api/build/kit/start.mjs +2 -1
- package/api/build/kit/weights.mjs +17 -9
- 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 +1 -1
- package/api/component/_adapter.d.mts +17 -0
- package/api/component/_adapter.mjs +50 -0
- package/api/component/component.mjs +13 -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.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 +8 -0
- package/api/doctor/_adapter.mjs +36 -0
- package/api/doctor/doctor.doc.mjs +1 -1
- package/api/doctor/doctor.mjs +2 -2
- package/api/doctor/theme-checks.mjs +28 -1
- 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/authoring-checks.mjs +5 -2
- package/api/integration/pack-check.mjs +16 -1
- package/api/integration/validate-integration.d.mts +18 -6
- package/api/integration/validate-integration.mjs +96 -9
- package/api/integration/validate-integration.type.d.mts +9 -0
- package/api/integration/validate-integration.type.mjs +1 -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/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 +42 -8
- package/api/template/template.doc.mjs +3 -3
- package/api/template/template.mjs +25 -9
- package/api/template/template.type.d.mts +1 -0
- package/api/template/template.type.mjs +1 -0
- package/api/theme/_adapter.d.mts +2 -1
- package/api/theme/_adapter.mjs +106 -12
- package/api/theme/build/build.d.mts +72 -6
- package/api/theme/build/build.mjs +303 -117
- package/api/theme/build/core-interception.d.mts +10 -0
- package/api/theme/build/core-interception.mjs +10 -0
- package/api/theme/build/font-warning.d.mts +59 -5
- package/api/theme/build/font-warning.mjs +282 -61
- package/api/theme/build/icon-imports.mjs +51 -9
- package/api/theme/remove/remove.d.mts +2 -1
- package/api/theme/remove/remove.mjs +3 -2
- package/api/theme/theme.type.d.mts +6 -0
- package/api/theme/theme.type.mjs +5 -1
- package/api/theme/themeRemove.doc.mjs +8 -5
- package/api/theme-edit/_adapter.d.mts +54 -4
- package/api/theme-edit/_adapter.mjs +313 -69
- package/api/theme-edit/_catalog.d.mts +20 -2
- package/api/theme-edit/_catalog.mjs +50 -10
- package/api/theme-edit/_check.d.mts +56 -2
- package/api/theme-edit/_check.mjs +1281 -356
- package/api/theme-edit/_color.d.mts +8 -0
- package/api/theme-edit/_color.mjs +12 -1
- package/api/theme-edit/_compiler.d.mts +1 -0
- package/api/theme-edit/_compiler.mjs +124 -15
- package/api/theme-edit/_context.d.mts +48 -1
- package/api/theme-edit/_context.mjs +294 -32
- package/api/theme-edit/_css.d.mts +7 -0
- package/api/theme-edit/_css.mjs +41 -13
- package/api/theme-edit/_edit.d.mts +38 -2
- package/api/theme-edit/_edit.mjs +2241 -398
- package/api/theme-edit/_how-commands.d.mts +7 -1
- package/api/theme-edit/_how-commands.mjs +143 -14
- package/api/theme-edit/_how-question.d.mts +0 -7
- package/api/theme-edit/_how-question.mjs +3081 -584
- package/api/theme-edit/_how.d.mts +2 -1
- package/api/theme-edit/_how.mjs +100 -15
- package/api/theme-edit/_importers.d.mts +38 -0
- package/api/theme-edit/_importers.mjs +188 -0
- package/api/theme-edit/_normal.d.mts +67 -19
- package/api/theme-edit/_normal.mjs +379 -90
- package/api/theme-edit/_palette.d.mts +20 -0
- package/api/theme-edit/_palette.mjs +39 -1
- package/api/theme-edit/_part-words.d.mts +31 -0
- package/api/theme-edit/_part-words.mjs +126 -0
- package/api/theme-edit/_parts.d.mts +29 -2
- package/api/theme-edit/_parts.mjs +149 -40
- package/api/theme-edit/_preview-app.d.mts +0 -12
- package/api/theme-edit/_preview-app.mjs +463 -306
- package/api/theme-edit/_preview.d.mts +36 -5
- package/api/theme-edit/_preview.mjs +194 -40
- package/api/theme-edit/_project.d.mts +61 -1
- package/api/theme-edit/_project.mjs +177 -6
- package/api/theme-edit/_settings.d.mts +271 -78
- package/api/theme-edit/_settings.mjs +1743 -756
- package/api/theme-edit/_tables.d.mts +29 -3
- package/api/theme-edit/_tables.mjs +178 -52
- 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 +7 -1
- package/api/theme-edit/theme-edit.type.mjs +2 -2
- package/api/theme-edit/themeEditPreviewApp.doc.mjs +1 -1
- package/assets/component-list.generated.json +1 -1
- package/assets/docs/theme.doc.dense.mjs +76 -7
- package/assets/docs/theme.doc.mjs +59 -2
- package/assets/docs/theme.doc.zh.mjs +51 -1
- package/assets/docs/tree/checks.doc.mjs +1 -1
- 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/render-pages.doc.mjs +2 -2
- package/assets/docs/tree/share-a-page.doc.mjs +157 -0
- 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/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/ai-chat-landing/template.doc.mjs +3 -0
- package/assets/theme.template.ts +3 -2
- package/authoring/doctypes/_schema.d.mts +6 -6
- package/clients/cli/build-id.generated.json +1 -1
- package/clients/cli/commands/discover.mjs +70 -3
- package/clients/cli/commands/docs.mjs +41 -5
- package/clients/cli/commands/doctor.mjs +10 -0
- package/clients/cli/commands/experimental/theme.mjs +588 -115
- package/clients/cli/commands/experimental-theme-compile.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 +1 -1
- 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-remove.doc.mjs +4 -4
- package/clients/cli/commands/template.doc.mjs +1 -1
- package/clients/cli/commands/template.mjs +11 -0
- package/clients/cli/commands/theme-remove.doc.mjs +13 -5
- package/clients/cli/commands/theme.mjs +726 -569
- package/clients/cli/lib/json-shim.mjs +59 -4
- 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-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 +3 -2
- package/foundation/discovery/core-component-docs.d.mts +29 -0
- package/foundation/discovery/core-component-docs.mjs +83 -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 +78 -9
- package/foundation/discovery/entry-name-files.mjs +194 -103
- package/foundation/discovery/module-exports.d.mts +14 -1
- package/foundation/discovery/module-exports.mjs +62 -14
- package/foundation/discovery/name-roots.d.mts +38 -0
- package/foundation/discovery/name-roots.mjs +108 -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-ids.d.mts +69 -0
- package/foundation/discovery/template-ids.mjs +199 -0
- package/foundation/discovery/theme-discovery.mjs +28 -2
- package/foundation/discovery/theming-targets.d.mts +6 -5
- package/foundation/discovery/theming-targets.mjs +28 -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/fonts/font-stylesheet.d.mts +7 -0
- package/foundation/fonts/font-stylesheet.mjs +34 -3
- package/foundation/fs/exact-codec.d.mts +12 -2
- package/foundation/fs/exact-codec.mjs +23 -6
- package/foundation/fs/gather-cache.d.mts +34 -2
- package/foundation/fs/gather-cache.mjs +184 -58
- package/foundation/fs/glob.d.mts +16 -0
- package/foundation/fs/glob.mjs +105 -0
- package/foundation/fs/kept-tree.d.mts +34 -14
- package/foundation/fs/kept-tree.mjs +122 -38
- package/foundation/fs/path-safety.d.mts +11 -2
- package/foundation/fs/path-safety.mjs +108 -18
- package/foundation/fs/stop-cleanup.d.mts +12 -0
- package/foundation/fs/stop-cleanup.mjs +66 -0
- package/foundation/integrations/pack-state.d.mts +75 -0
- package/foundation/integrations/pack-state.mjs +298 -0
- package/foundation/integrations/shipped-imports.d.mts +122 -0
- package/foundation/integrations/shipped-imports.mjs +497 -0
- package/foundation/integrations/validate-contributions.d.mts +0 -17
- package/foundation/integrations/validate-contributions.mjs +6 -260
- package/foundation/render/assets.mjs +40 -6
- package/foundation/render/charts.d.mts +78 -27
- package/foundation/render/charts.mjs +266 -90
- package/foundation/render/embedded-imports.d.mts +31 -0
- package/foundation/render/embedded-imports.mjs +66 -14
- package/foundation/render/offline.d.mts +32 -0
- package/foundation/render/offline.mjs +56 -0
- package/foundation/render/page-worker.mjs +83 -8
- package/foundation/render/picture-chrome.mjs +7 -0
- package/foundation/render/picture-playwright.mjs +13 -1
- package/foundation/render/render-page.d.mts +33 -2
- package/foundation/render/render-page.mjs +412 -94
- package/foundation/response/response-types.doc.mjs +1 -1
- package/foundation/suggest/name-index.d.mts +148 -0
- package/foundation/suggest/name-index.mjs +317 -0
- package/foundation/suggest/other-command.d.mts +106 -0
- package/foundation/suggest/other-command.mjs +656 -0
- package/foundation/text/css-escape.d.mts +18 -0
- package/foundation/text/css-escape.mjs +35 -0
- package/foundation/text/suggest-order.d.mts +19 -0
- package/foundation/text/suggest-order.mjs +61 -0
- package/foundation/xle/browser.d.mts +2 -2
- package/package.json +6 -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, 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. |
|
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.
|
|
@@ -165,6 +166,10 @@ export type PageTemplate = {
|
|
|
165
166
|
* The components its page composes, read from its source on first use; empty when the source cannot be read.
|
|
166
167
|
*/
|
|
167
168
|
components: string[];
|
|
169
|
+
/**
|
|
170
|
+
* The template's own `isHiddenFromOverview`: kept off the gallery, so never taken as the app shell.
|
|
171
|
+
*/
|
|
172
|
+
hidden: boolean;
|
|
168
173
|
};
|
|
169
174
|
/**
|
|
170
175
|
* A component the project can use, as the ranker reads it.
|
package/api/build/_adapter.mjs
CHANGED
|
@@ -50,6 +50,7 @@ export {withListingCache} from '../../foundation/fs/listing-cache.mjs';
|
|
|
50
50
|
* @property {string[]} keywords The ideas the page serves, as its own descriptor names them; empty when it declares none.
|
|
51
51
|
* @property {string} filePath Absolute path to the template source file on disk.
|
|
52
52
|
* @property {string[]} components The components its page composes, read from its source on first use; empty when the source cannot be read.
|
|
53
|
+
* @property {boolean} hidden The template's own `isHiddenFromOverview`: kept off the gallery, so never taken as the app shell.
|
|
53
54
|
*/
|
|
54
55
|
|
|
55
56
|
/**
|
|
@@ -113,6 +114,7 @@ export async function loadTemplates(cwd) {
|
|
|
113
114
|
package: t.package ?? '@astryxdesign/core',
|
|
114
115
|
category: t.category || '',
|
|
115
116
|
keywords: t.keywords ?? [],
|
|
117
|
+
hidden: t.hidden === true,
|
|
116
118
|
filePath: t.filePath,
|
|
117
119
|
// The id `template()` resolves back to this entry: an active
|
|
118
120
|
// replacement owns the Core id it names, so that id selects it.
|