@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.
Files changed (233) hide show
  1. package/README.md +1 -1
  2. package/api/build/_adapter.d.mts +5 -0
  3. package/api/build/_adapter.mjs +2 -0
  4. package/api/build/blocks/blocks.weights.json +1 -1
  5. package/api/build/kit/rank.d.mts +2 -2
  6. package/api/build/kit/rank.mjs +7 -4
  7. package/api/build/kit/signals.d.mts +7 -1
  8. package/api/build/kit/signals.mjs +21 -10
  9. package/api/build/kit/start.mjs +2 -1
  10. package/api/build/kit/weights.mjs +17 -9
  11. package/api/build/kit/words.d.mts +38 -0
  12. package/api/build/kit/words.mjs +152 -1
  13. package/api/build/tree.mjs +1 -1
  14. package/api/component/__fixtures__/resolutions/modules.txt +1 -1
  15. package/api/component/_adapter.d.mts +17 -0
  16. package/api/component/_adapter.mjs +50 -0
  17. package/api/component/component.mjs +13 -1
  18. package/api/discover/_adapter.d.mts +10 -0
  19. package/api/discover/_adapter.mjs +95 -1
  20. package/api/discover/detail/item/item.mjs +5 -0
  21. package/api/discover/discover.type.d.mts +16 -3
  22. package/api/discover/discover.type.mjs +13 -3
  23. package/api/docs/_adapter.d.mts +52 -21
  24. package/api/docs/_adapter.mjs +230 -210
  25. package/api/docs/_entry-names-lazily.d.mts +22 -0
  26. package/api/docs/_entry-names-lazily.mjs +25 -0
  27. package/api/docs/_entry-names.d.mts +23 -0
  28. package/api/docs/_entry-names.mjs +105 -0
  29. package/api/doctor/_adapter.d.mts +8 -0
  30. package/api/doctor/_adapter.mjs +36 -0
  31. package/api/doctor/doctor.doc.mjs +1 -1
  32. package/api/doctor/doctor.mjs +2 -2
  33. package/api/doctor/theme-checks.mjs +28 -1
  34. package/api/hook/_adapter.d.mts +10 -4
  35. package/api/hook/_adapter.mjs +41 -5
  36. package/api/hook/detail/detail.mjs +5 -2
  37. package/api/hook/detail/params/params.mjs +10 -3
  38. package/api/integration/authoring-checks.mjs +5 -2
  39. package/api/integration/pack-check.mjs +16 -1
  40. package/api/integration/validate-integration.d.mts +18 -6
  41. package/api/integration/validate-integration.mjs +96 -9
  42. package/api/integration/validate-integration.type.d.mts +9 -0
  43. package/api/integration/validate-integration.type.mjs +1 -1
  44. package/api/integration/validateIntegration.doc.mjs +1 -1
  45. package/api/render/render.type.d.mts +1 -1
  46. package/api/render/render.type.mjs +1 -1
  47. package/api/template/_adapter.d.mts +16 -0
  48. package/api/template/_adapter.mjs +39 -2
  49. package/api/template/cdn/cdn.mjs +37 -8
  50. package/api/template/copy/copy.d.mts +6 -3
  51. package/api/template/copy/copy.mjs +42 -8
  52. package/api/template/template.doc.mjs +3 -3
  53. package/api/template/template.mjs +25 -9
  54. package/api/template/template.type.d.mts +1 -0
  55. package/api/template/template.type.mjs +1 -0
  56. package/api/theme/_adapter.d.mts +2 -1
  57. package/api/theme/_adapter.mjs +106 -12
  58. package/api/theme/build/build.d.mts +72 -6
  59. package/api/theme/build/build.mjs +303 -117
  60. package/api/theme/build/core-interception.d.mts +10 -0
  61. package/api/theme/build/core-interception.mjs +10 -0
  62. package/api/theme/build/font-warning.d.mts +59 -5
  63. package/api/theme/build/font-warning.mjs +282 -61
  64. package/api/theme/build/icon-imports.mjs +51 -9
  65. package/api/theme/remove/remove.d.mts +2 -1
  66. package/api/theme/remove/remove.mjs +3 -2
  67. package/api/theme/theme.type.d.mts +6 -0
  68. package/api/theme/theme.type.mjs +5 -1
  69. package/api/theme/themeRemove.doc.mjs +8 -5
  70. package/api/theme-edit/_adapter.d.mts +54 -4
  71. package/api/theme-edit/_adapter.mjs +313 -69
  72. package/api/theme-edit/_catalog.d.mts +20 -2
  73. package/api/theme-edit/_catalog.mjs +50 -10
  74. package/api/theme-edit/_check.d.mts +56 -2
  75. package/api/theme-edit/_check.mjs +1281 -356
  76. package/api/theme-edit/_color.d.mts +8 -0
  77. package/api/theme-edit/_color.mjs +12 -1
  78. package/api/theme-edit/_compiler.d.mts +1 -0
  79. package/api/theme-edit/_compiler.mjs +124 -15
  80. package/api/theme-edit/_context.d.mts +48 -1
  81. package/api/theme-edit/_context.mjs +294 -32
  82. package/api/theme-edit/_css.d.mts +7 -0
  83. package/api/theme-edit/_css.mjs +41 -13
  84. package/api/theme-edit/_edit.d.mts +38 -2
  85. package/api/theme-edit/_edit.mjs +2241 -398
  86. package/api/theme-edit/_how-commands.d.mts +7 -1
  87. package/api/theme-edit/_how-commands.mjs +143 -14
  88. package/api/theme-edit/_how-question.d.mts +0 -7
  89. package/api/theme-edit/_how-question.mjs +3081 -584
  90. package/api/theme-edit/_how.d.mts +2 -1
  91. package/api/theme-edit/_how.mjs +100 -15
  92. package/api/theme-edit/_importers.d.mts +38 -0
  93. package/api/theme-edit/_importers.mjs +188 -0
  94. package/api/theme-edit/_normal.d.mts +67 -19
  95. package/api/theme-edit/_normal.mjs +379 -90
  96. package/api/theme-edit/_palette.d.mts +20 -0
  97. package/api/theme-edit/_palette.mjs +39 -1
  98. package/api/theme-edit/_part-words.d.mts +31 -0
  99. package/api/theme-edit/_part-words.mjs +126 -0
  100. package/api/theme-edit/_parts.d.mts +29 -2
  101. package/api/theme-edit/_parts.mjs +149 -40
  102. package/api/theme-edit/_preview-app.d.mts +0 -12
  103. package/api/theme-edit/_preview-app.mjs +463 -306
  104. package/api/theme-edit/_preview.d.mts +36 -5
  105. package/api/theme-edit/_preview.mjs +194 -40
  106. package/api/theme-edit/_project.d.mts +61 -1
  107. package/api/theme-edit/_project.mjs +177 -6
  108. package/api/theme-edit/_settings.d.mts +271 -78
  109. package/api/theme-edit/_settings.mjs +1743 -756
  110. package/api/theme-edit/_tables.d.mts +29 -3
  111. package/api/theme-edit/_tables.mjs +178 -52
  112. package/api/theme-edit/_vet.d.mts +14 -1
  113. package/api/theme-edit/_vet.mjs +86 -12
  114. package/api/theme-edit/theme-edit.type.d.mts +7 -1
  115. package/api/theme-edit/theme-edit.type.mjs +2 -2
  116. package/api/theme-edit/themeEditPreviewApp.doc.mjs +1 -1
  117. package/assets/component-list.generated.json +1 -1
  118. package/assets/docs/theme.doc.dense.mjs +76 -7
  119. package/assets/docs/theme.doc.mjs +59 -2
  120. package/assets/docs/theme.doc.zh.mjs +51 -1
  121. package/assets/docs/tree/checks.doc.mjs +1 -1
  122. package/assets/docs/tree/document-the-theme.doc.mjs +1 -1
  123. package/assets/docs/tree/font-setup.doc.mjs +1 -1
  124. package/assets/docs/tree/fonts-and-assets.doc.mjs +1 -1
  125. package/assets/docs/tree/render-pages.doc.mjs +2 -2
  126. package/assets/docs/tree/share-a-page.doc.mjs +157 -0
  127. package/assets/docs/use-a-theme.doc.mjs +1 -1
  128. package/assets/docs-routes.generated.json +1 -0
  129. package/assets/docs.generated.json +2 -2
  130. package/assets/search-catalog.generated.json +2 -2
  131. package/assets/self-audit.generated.json +1 -1
  132. package/assets/templates/blocks/components/ChatComposerInput/useSpeechRecognitionHookUsage.doc.mjs +14 -0
  133. package/assets/templates/blocks/components/ChatComposerInput/useSpeechRecognitionHookUsage.tsx +43 -0
  134. package/assets/templates/components.generated.json +1 -1
  135. package/assets/templates/pages/ai-chat-landing/template.doc.mjs +3 -0
  136. package/assets/theme.template.ts +3 -2
  137. package/authoring/doctypes/_schema.d.mts +6 -6
  138. package/clients/cli/build-id.generated.json +1 -1
  139. package/clients/cli/commands/discover.mjs +70 -3
  140. package/clients/cli/commands/docs.mjs +41 -5
  141. package/clients/cli/commands/doctor.mjs +10 -0
  142. package/clients/cli/commands/experimental/theme.mjs +588 -115
  143. package/clients/cli/commands/experimental-theme-compile.doc.mjs +1 -1
  144. package/clients/cli/commands/experimental-theme-editor-set.doc.mjs +2 -2
  145. package/clients/cli/commands/experimental-theme-editor-show.doc.mjs +1 -1
  146. package/clients/cli/commands/experimental-theme-editor-undo.doc.mjs +2 -2
  147. package/clients/cli/commands/experimental-theme-preview-app.doc.mjs +2 -2
  148. package/clients/cli/commands/experimental-theme-remove.doc.mjs +4 -4
  149. package/clients/cli/commands/template.doc.mjs +1 -1
  150. package/clients/cli/commands/template.mjs +11 -0
  151. package/clients/cli/commands/theme-remove.doc.mjs +13 -5
  152. package/clients/cli/commands/theme.mjs +726 -569
  153. package/clients/cli/lib/json-shim.mjs +59 -4
  154. package/clients/cli/manifest.generated.json +1 -1
  155. package/foundation/agent-docs/agent-docs.mjs +1 -1
  156. package/foundation/config/project.d.mts +8 -0
  157. package/foundation/config/project.mjs +26 -29
  158. package/foundation/config/theme-state.d.mts +19 -2
  159. package/foundation/config/theme-state.mjs +93 -1
  160. package/foundation/discovery/cli-self-doc-names.d.mts +13 -0
  161. package/foundation/discovery/cli-self-doc-names.mjs +51 -0
  162. package/foundation/discovery/cli-self-docs.d.mts +0 -2
  163. package/foundation/discovery/cli-self-docs.mjs +2 -15
  164. package/foundation/discovery/component-discovery.mjs +3 -2
  165. package/foundation/discovery/core-component-docs.d.mts +29 -0
  166. package/foundation/discovery/core-component-docs.mjs +83 -0
  167. package/foundation/discovery/docs-discovery.d.mts +66 -9
  168. package/foundation/discovery/docs-discovery.mjs +126 -60
  169. package/foundation/discovery/entry-name-files.d.mts +78 -9
  170. package/foundation/discovery/entry-name-files.mjs +194 -103
  171. package/foundation/discovery/module-exports.d.mts +14 -1
  172. package/foundation/discovery/module-exports.mjs +62 -14
  173. package/foundation/discovery/name-roots.d.mts +38 -0
  174. package/foundation/discovery/name-roots.mjs +108 -0
  175. package/foundation/discovery/stored-self-audit.mjs +2 -0
  176. package/foundation/discovery/template-adapter.d.mts +31 -63
  177. package/foundation/discovery/template-adapter.mjs +33 -207
  178. package/foundation/discovery/template-ids.d.mts +69 -0
  179. package/foundation/discovery/template-ids.mjs +199 -0
  180. package/foundation/discovery/theme-discovery.mjs +28 -2
  181. package/foundation/discovery/theming-targets.d.mts +6 -5
  182. package/foundation/discovery/theming-targets.mjs +28 -45
  183. package/foundation/doc-compiler/generated-levels.d.mts +43 -0
  184. package/foundation/doc-compiler/generated-levels.mjs +72 -0
  185. package/foundation/doc-compiler/literal-doc.d.mts +12 -0
  186. package/foundation/doc-compiler/literal-doc.mjs +322 -0
  187. package/foundation/doc-compiler/stored-docs.d.mts +7 -0
  188. package/foundation/doc-compiler/stored-docs.mjs +14 -1
  189. package/foundation/doc-compiler/tree.d.mts +4 -84
  190. package/foundation/doc-compiler/tree.mjs +4 -62
  191. package/foundation/fonts/font-stylesheet.d.mts +7 -0
  192. package/foundation/fonts/font-stylesheet.mjs +34 -3
  193. package/foundation/fs/exact-codec.d.mts +12 -2
  194. package/foundation/fs/exact-codec.mjs +23 -6
  195. package/foundation/fs/gather-cache.d.mts +34 -2
  196. package/foundation/fs/gather-cache.mjs +184 -58
  197. package/foundation/fs/glob.d.mts +16 -0
  198. package/foundation/fs/glob.mjs +105 -0
  199. package/foundation/fs/kept-tree.d.mts +34 -14
  200. package/foundation/fs/kept-tree.mjs +122 -38
  201. package/foundation/fs/path-safety.d.mts +11 -2
  202. package/foundation/fs/path-safety.mjs +108 -18
  203. package/foundation/fs/stop-cleanup.d.mts +12 -0
  204. package/foundation/fs/stop-cleanup.mjs +66 -0
  205. package/foundation/integrations/pack-state.d.mts +75 -0
  206. package/foundation/integrations/pack-state.mjs +298 -0
  207. package/foundation/integrations/shipped-imports.d.mts +122 -0
  208. package/foundation/integrations/shipped-imports.mjs +497 -0
  209. package/foundation/integrations/validate-contributions.d.mts +0 -17
  210. package/foundation/integrations/validate-contributions.mjs +6 -260
  211. package/foundation/render/assets.mjs +40 -6
  212. package/foundation/render/charts.d.mts +78 -27
  213. package/foundation/render/charts.mjs +266 -90
  214. package/foundation/render/embedded-imports.d.mts +31 -0
  215. package/foundation/render/embedded-imports.mjs +66 -14
  216. package/foundation/render/offline.d.mts +32 -0
  217. package/foundation/render/offline.mjs +56 -0
  218. package/foundation/render/page-worker.mjs +83 -8
  219. package/foundation/render/picture-chrome.mjs +7 -0
  220. package/foundation/render/picture-playwright.mjs +13 -1
  221. package/foundation/render/render-page.d.mts +33 -2
  222. package/foundation/render/render-page.mjs +412 -94
  223. package/foundation/response/response-types.doc.mjs +1 -1
  224. package/foundation/suggest/name-index.d.mts +148 -0
  225. package/foundation/suggest/name-index.mjs +317 -0
  226. package/foundation/suggest/other-command.d.mts +106 -0
  227. package/foundation/suggest/other-command.mjs +656 -0
  228. package/foundation/text/css-escape.d.mts +18 -0
  229. package/foundation/text/css-escape.mjs +35 -0
  230. package/foundation/text/suggest-order.d.mts +19 -0
  231. package/foundation/text/suggest-order.mjs +61 -0
  232. package/foundation/xle/browser.d.mts +2 -2
  233. 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. |
@@ -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.
@@ -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.