@astryxdesign/cli 0.7.17-canary.gf4fa366 → 0.7.17-canary.gf672a82

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