@astryxdesign/cli 0.7.3 → 0.7.4-canary.1a31622

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 (733) hide show
  1. package/README.md +81 -80
  2. package/api/component/_adapter.mjs +4 -3
  3. package/api/component/component.mjs +13 -6
  4. package/api/component/doc-links.test.mjs +33 -0
  5. package/api/discover/_adapter.d.mts +49 -1
  6. package/api/discover/_adapter.mjs +139 -18
  7. package/api/discover/_catalog-view.d.mts +2 -0
  8. package/api/discover/_catalog-view.mjs +1 -0
  9. package/api/discover/_catalog-view.test.mjs +1 -0
  10. package/api/discover/detail/detail.mjs +1 -0
  11. package/api/discover/detail/detail.test.mjs +3 -0
  12. package/api/discover/detail/doc/doc.mjs +5 -1
  13. package/api/discover/detail/doc/doc.test.mjs +1 -0
  14. package/api/discover/detail/item/item.mjs +33 -0
  15. package/api/discover/detail/item/item.test.mjs +2 -0
  16. package/api/discover/discover.doc.mjs +4 -4
  17. package/api/discover/discover.mjs +26 -8
  18. package/api/discover/discover.type.d.mts +45 -0
  19. package/api/discover/discover.type.mjs +20 -1
  20. package/api/discover/list/list.test.mjs +2 -0
  21. package/api/discover/search/search.d.mts +3 -2
  22. package/api/discover/search/search.mjs +26 -7
  23. package/api/discover/search/search.test.mjs +67 -0
  24. package/api/docs/_adapter.d.mts +80 -0
  25. package/api/docs/_adapter.mjs +285 -15
  26. package/api/docs/detail/detail.mjs +8 -0
  27. package/api/docs/docOverlays.test.mjs +2 -1
  28. package/api/docs/docs.d.mts +16 -6
  29. package/api/docs/docs.doc.mjs +1 -1
  30. package/api/docs/docs.mjs +55 -6
  31. package/api/docs/docs.type.d.mts +38 -2
  32. package/api/docs/docs.type.mjs +17 -3
  33. package/api/docs/guide-route-targets.test.mjs +1002 -0
  34. package/api/docs/index/index.mjs +9 -0
  35. package/api/docs/integration-tree.test.mjs +22 -0
  36. package/api/docs/integrationDocs.test.mjs +85 -0
  37. package/api/docs/list/list.mjs +7 -1
  38. package/api/docs/node/node.mjs +29 -4
  39. package/api/docs/reference-blocks.test.mjs +1 -1
  40. package/api/doctor/_adapter.d.mts +40 -0
  41. package/api/doctor/_adapter.mjs +171 -1
  42. package/api/doctor/built-checks.d.mts +85 -0
  43. package/api/doctor/built-checks.mjs +837 -0
  44. package/api/doctor/built-checks.test.mjs +531 -0
  45. package/api/doctor/doctor.d.mts +40 -7
  46. package/api/doctor/doctor.doc.mjs +11 -1
  47. package/api/doctor/doctor.mjs +127 -14
  48. package/api/doctor/doctor.test.mjs +7 -3
  49. package/api/doctor/doctor.type.d.mts +6 -0
  50. package/api/doctor/doctor.type.mjs +3 -0
  51. package/api/doctor/icon-sets.test.mjs +111 -0
  52. package/api/hook/list/list.d.mts +1 -1
  53. package/api/icon/_adapter.d.mts +54 -0
  54. package/api/icon/_adapter.mjs +173 -0
  55. package/api/icon/_authoring.d.mts +42 -0
  56. package/api/icon/_authoring.mjs +628 -0
  57. package/api/icon/_options.d.mts +15 -0
  58. package/api/icon/_options.mjs +41 -0
  59. package/api/icon/_records.d.mts +47 -0
  60. package/api/icon/_records.mjs +69 -0
  61. package/api/icon/add/add.d.mts +14 -0
  62. package/api/icon/add/add.mjs +416 -0
  63. package/api/icon/detail/detail.d.mts +12 -0
  64. package/api/icon/detail/detail.mjs +88 -0
  65. package/api/icon/error-codes.test.mjs +334 -0
  66. package/api/icon/experimental-markers.test.mjs +93 -0
  67. package/api/icon/icon.d.mts +16 -0
  68. package/api/icon/icon.doc.d.mts +9 -0
  69. package/api/icon/icon.doc.mjs +91 -0
  70. package/api/icon/icon.mjs +96 -0
  71. package/api/icon/icon.test.mjs +374 -0
  72. package/api/icon/icon.type.d.mts +430 -0
  73. package/api/icon/icon.type.mjs +290 -0
  74. package/api/icon/iconAdd.doc.d.mts +6 -0
  75. package/api/icon/iconAdd.doc.mjs +146 -0
  76. package/api/icon/iconMap.doc.d.mts +6 -0
  77. package/api/icon/iconMap.doc.mjs +92 -0
  78. package/api/icon/iconNewDefinition.doc.d.mts +5 -0
  79. package/api/icon/iconNewDefinition.doc.mjs +101 -0
  80. package/api/icon/iconNewSet.doc.d.mts +5 -0
  81. package/api/icon/iconNewSet.doc.mjs +103 -0
  82. package/api/icon/iconUse.doc.d.mts +6 -0
  83. package/api/icon/iconUse.doc.mjs +70 -0
  84. package/api/icon/list/list.d.mts +11 -0
  85. package/api/icon/list/list.mjs +64 -0
  86. package/api/icon/map/map.d.mts +14 -0
  87. package/api/icon/map/map.mjs +122 -0
  88. package/api/icon/new-definition/new-definition.d.mts +12 -0
  89. package/api/icon/new-definition/new-definition.mjs +32 -0
  90. package/api/icon/new-definition/new-definition.undo.test.mjs +97 -0
  91. package/api/icon/new-set/new-set.d.mts +12 -0
  92. package/api/icon/new-set/new-set.mjs +32 -0
  93. package/api/icon/new-set/new-set.test.mjs +348 -0
  94. package/api/icon/search/search.d.mts +14 -0
  95. package/api/icon/search/search.mjs +50 -0
  96. package/api/icon/use/use.d.mts +15 -0
  97. package/api/icon/use/use.mjs +101 -0
  98. package/api/index.d.mts +6 -0
  99. package/api/index.mjs +6 -0
  100. package/api/integration/_adapter.d.mts +20 -2
  101. package/api/integration/_adapter.mjs +48 -4
  102. package/api/integration/add-contribution.d.mts +3 -12
  103. package/api/integration/add-contribution.mjs +7 -97
  104. package/api/integration/add-contribution.test.mjs +14 -10
  105. package/api/integration/add-helpers.d.mts +46 -0
  106. package/api/integration/add-helpers.mjs +106 -4
  107. package/api/integration/authoring-checks.mjs +29 -2
  108. package/api/integration/authoring-checks.test.mjs +131 -1
  109. package/api/integration/check/check.d.mts +4 -1
  110. package/api/integration/check/check.mjs +34 -4
  111. package/api/integration/check/check.test.mjs +49 -0
  112. package/api/integration/doc-stability.test.mjs +216 -0
  113. package/api/integration/example-checks.no-npm.test.mjs +140 -0
  114. package/api/integration/example-checks.test.mjs +776 -0
  115. package/api/integration/integration-authoring.type.d.mts +1 -0
  116. package/api/integration/integration-authoring.type.mjs +1 -0
  117. package/api/integration/integration-check.type.d.mts +8 -0
  118. package/api/integration/integration-check.type.mjs +4 -1
  119. package/api/integration/integrationCheck.doc.mjs +8 -1
  120. package/api/integration/integrationDocConflicts.doc.mjs +1 -1
  121. package/api/integration/pack-check.mjs +74 -2
  122. package/api/integration/pack-check.test.mjs +77 -0
  123. package/api/integration/pack-check.type.d.mts +9 -1
  124. package/api/integration/pack-check.type.mjs +4 -1
  125. package/api/integration/validate-installed-icon-sets.test.mjs +67 -0
  126. package/api/integration/validate-integration-case-disk.test.mjs +14 -2
  127. package/api/integration/validate-integration-gaps.test.mjs +43 -19
  128. package/api/integration/validate-integration.d.mts +11 -1
  129. package/api/integration/validate-integration.mjs +180 -19
  130. package/api/integration/validate-integration.type.d.mts +94 -4
  131. package/api/integration/validate-integration.type.mjs +53 -5
  132. package/api/integration/validateIntegration.doc.mjs +1 -1
  133. package/api/search/ORDERING.md +1 -1
  134. package/api/search/_candidate-score.d.mts +9 -3
  135. package/api/search/_candidate-score.mjs +90 -3
  136. package/api/search/_gather-components.mjs +48 -1
  137. package/api/search/_gather-docs.mjs +52 -3
  138. package/api/search/_lexical.d.mts +12 -0
  139. package/api/search/_lexical.mjs +3 -0
  140. package/api/search/_order.d.mts +1 -1
  141. package/api/search/_order.mjs +75 -6
  142. package/api/search/_priority.mjs +5 -2
  143. package/api/search/_score.d.mts +2 -1
  144. package/api/search/_score.mjs +4 -3
  145. package/api/search/search.doc.mjs +1 -1
  146. package/api/search/search.family-members.test.mjs +124 -0
  147. package/api/search/search.family-word.test.mjs +146 -0
  148. package/api/search/search.mjs +28 -0
  149. package/api/search/search.tie-order.test.mjs +39 -0
  150. package/api/template/_adapter.d.mts +13 -0
  151. package/api/template/_adapter.mjs +36 -0
  152. package/api/template/copy/copy.d.mts +5 -2
  153. package/api/template/copy/copy.mjs +19 -3
  154. package/api/template/show/show.d.mts +6 -1
  155. package/api/template/show/show.mjs +11 -2
  156. package/api/template/template-suffix.test.mjs +26 -0
  157. package/api/template/template.mjs +6 -2
  158. package/api/template/template.type.d.mts +53 -0
  159. package/api/template/template.type.mjs +15 -0
  160. package/api/theme/palette/generate/generate.d.mts +8 -0
  161. package/api/theme/palette/generate/generate.mjs +38 -11
  162. package/api/theme/palette/generate/generate.test.mjs +83 -4
  163. package/api/theme/palette/generate/generator.d.mts +6 -0
  164. package/api/theme/palette/generate/generator.mjs +6 -0
  165. package/api/theme/theme.type.d.mts +12 -1
  166. package/api/theme/theme.type.mjs +7 -1
  167. package/api/theme/themeBuild.doc.mjs +1 -1
  168. package/api/theme/themeList.doc.mjs +1 -1
  169. package/api/theme/themePaletteGenerate.doc.mjs +1 -1
  170. package/api/theme/themeTargets.doc.mjs +1 -1
  171. package/api/upgrade/_adapter.d.mts +10 -2
  172. package/api/upgrade/_adapter.mjs +23 -4
  173. package/api/upgrade/run/run.mjs +4 -1
  174. package/assets/discover/official-packages.json +16 -0
  175. package/assets/docs/author-a-theme.doc.mjs +15 -15
  176. package/assets/docs/browser-support.doc.mjs +1 -1
  177. package/assets/docs/getting-started.doc.mjs +16 -16
  178. package/assets/docs/is-my-code-good.doc.mjs +6 -6
  179. package/assets/docs/styling-overview.doc.mjs +5 -5
  180. package/assets/docs/theme.doc.mjs +5 -5
  181. package/assets/docs/tree/add-a-component.doc.mjs +1 -1
  182. package/assets/docs/tree/add-a-theme.doc.mjs +2 -2
  183. package/assets/docs/tree/add-a-topic.doc.mjs +6 -6
  184. package/assets/docs/tree/agent-guidance.doc.mjs +5 -5
  185. package/assets/docs/tree/authoring.doc.mjs +2 -2
  186. package/assets/docs/tree/block-template.doc.mjs +1 -1
  187. package/assets/docs/tree/check-the-props.doc.mjs +3 -3
  188. package/assets/docs/tree/check-your-docs.doc.mjs +6 -6
  189. package/assets/docs/tree/checks.doc.mjs +11 -11
  190. package/assets/docs/tree/ci-and-containers.doc.mjs +1 -1
  191. package/assets/docs/tree/cli-command.doc.mjs +6 -6
  192. package/assets/docs/tree/codemods.doc.mjs +7 -7
  193. package/assets/docs/tree/component-family.doc.mjs +1 -1
  194. package/assets/docs/tree/component-imports.doc.mjs +2 -2
  195. package/assets/docs/tree/component-lookups.doc.mjs +6 -5
  196. package/assets/docs/tree/computer-agent-guide.doc.mjs +7 -7
  197. package/assets/docs/tree/computer-integrations.doc.mjs +5 -5
  198. package/assets/docs/tree/debug-and-gap-reports.doc.mjs +3 -3
  199. package/assets/docs/tree/define-the-theme.doc.mjs +1 -1
  200. package/assets/docs/tree/describe-the-component.doc.mjs +1 -1
  201. package/assets/docs/tree/doc-syntax.doc.mjs +219 -0
  202. package/assets/docs/tree/experimental.doc.mjs +31 -0
  203. package/assets/docs/tree/export-template-assets.doc.mjs +1 -1
  204. package/assets/docs/tree/extend-or-replace.doc.mjs +39 -7
  205. package/assets/docs/tree/font-setup.doc.mjs +1 -1
  206. package/assets/docs/tree/generate-a-palette.doc.mjs +1 -1
  207. package/assets/docs/tree/global-integrations.doc.mjs +11 -11
  208. package/assets/docs/tree/global.doc.mjs +2 -2
  209. package/assets/docs/tree/host-entry.doc.mjs +1 -1
  210. package/assets/docs/tree/icon-definitions.doc.mjs +48 -0
  211. package/assets/docs/tree/icon-set-files.doc.mjs +33 -0
  212. package/assets/docs/tree/icon-sets.doc.mjs +377 -0
  213. package/assets/docs/tree/install-once.doc.mjs +4 -4
  214. package/assets/docs/tree/layout.doc.mjs +1 -1
  215. package/assets/docs/tree/links.doc.mjs +2 -2
  216. package/assets/docs/tree/migration-setup.doc.mjs +15 -15
  217. package/assets/docs/tree/migration.doc.mjs +2 -1
  218. package/assets/docs/tree/other-libraries.doc.mjs +1 -1
  219. package/assets/docs/tree/page-template.doc.mjs +2 -2
  220. package/assets/docs/tree/problems.doc.mjs +8 -8
  221. package/assets/docs/tree/project-global-or-both.doc.mjs +2 -2
  222. package/assets/docs/tree/publishing.doc.mjs +7 -7
  223. package/assets/docs/tree/quick-start.doc.mjs +9 -9
  224. package/assets/docs/tree/reference.doc.mjs +2 -2
  225. package/assets/docs/tree/replace-a-core-component.doc.mjs +1 -1
  226. package/assets/docs/tree/replace-a-core-template.doc.mjs +4 -4
  227. package/assets/docs/tree/scaffold.doc.mjs +1 -1
  228. package/assets/docs/tree/sections-and-placement.doc.mjs +3 -3
  229. package/assets/docs/tree/see-it-in-an-app.doc.mjs +3 -3
  230. package/assets/docs/tree/short-and-findable.doc.mjs +3 -3
  231. package/assets/docs/tree/single-component.doc.mjs +4 -4
  232. package/assets/docs/tree/start-a-template.doc.mjs +5 -5
  233. package/assets/docs/tree/styling-advanced.doc.mjs +1 -1
  234. package/assets/docs/tree/styling-libraries.doc.mjs +2 -1
  235. package/assets/docs/tree/styling.doc.mjs +1 -1
  236. package/assets/docs/tree/tailwind.doc.mjs +1 -1
  237. package/assets/docs/tree/test-in-an-app.doc.mjs +5 -5
  238. package/assets/docs/tree/test-template-in-app.doc.mjs +6 -6
  239. package/assets/docs/tree/tokens-and-setup.doc.mjs +1 -1
  240. package/assets/docs/tree/troubleshooting.doc.mjs +24 -20
  241. package/assets/docs/tree/uninstall.doc.mjs +2 -2
  242. package/assets/docs/tree/updates.doc.mjs +1 -1
  243. package/assets/docs/tree/upgrading.doc.mjs +3 -3
  244. package/assets/docs/tree/use-a-theme-in-an-app.doc.mjs +1 -1
  245. package/assets/docs/tree/verify-packed-template.doc.mjs +3 -3
  246. package/assets/docs/tree/versioning.doc.mjs +4 -4
  247. package/assets/docs/tree/who-answers.doc.mjs +4 -4
  248. package/assets/docs/tree/write-the-template-file.doc.mjs +4 -4
  249. package/assets/docs/use-a-theme.doc.mjs +10 -10
  250. package/assets/docs/use-integrations.doc.mjs +1 -1
  251. package/assets/docs/working-with-ai.doc.mjs +15 -15
  252. package/assets/icons/definitions/activity.doc.mjs +9 -0
  253. package/assets/icons/definitions/add.doc.mjs +9 -0
  254. package/assets/icons/definitions/adjustments.doc.mjs +9 -0
  255. package/assets/icons/definitions/announcement.doc.mjs +9 -0
  256. package/assets/icons/definitions/apps.doc.mjs +9 -0
  257. package/assets/icons/definitions/archive.doc.mjs +9 -0
  258. package/assets/icons/definitions/arrowDown.doc.mjs +10 -0
  259. package/assets/icons/definitions/arrowLeft.doc.mjs +9 -0
  260. package/assets/icons/definitions/arrowRight.doc.mjs +9 -0
  261. package/assets/icons/definitions/arrowUp.doc.mjs +10 -0
  262. package/assets/icons/definitions/arrowsUpDown.doc.mjs +10 -0
  263. package/assets/icons/definitions/attach.doc.mjs +9 -0
  264. package/assets/icons/definitions/audio.doc.mjs +9 -0
  265. package/assets/icons/definitions/bank.doc.mjs +9 -0
  266. package/assets/icons/definitions/bold.doc.mjs +9 -0
  267. package/assets/icons/definitions/bolt.doc.mjs +9 -0
  268. package/assets/icons/definitions/book.doc.mjs +9 -0
  269. package/assets/icons/definitions/bookmark.doc.mjs +9 -0
  270. package/assets/icons/definitions/bug.doc.mjs +9 -0
  271. package/assets/icons/definitions/building.doc.mjs +9 -0
  272. package/assets/icons/definitions/calendar.doc.mjs +10 -0
  273. package/assets/icons/definitions/cart.doc.mjs +9 -0
  274. package/assets/icons/definitions/chart.doc.mjs +9 -0
  275. package/assets/icons/definitions/check.doc.mjs +10 -0
  276. package/assets/icons/definitions/checkDouble.doc.mjs +10 -0
  277. package/assets/icons/definitions/chevronDown.doc.mjs +10 -0
  278. package/assets/icons/definitions/chevronLeft.doc.mjs +10 -0
  279. package/assets/icons/definitions/chevronRight.doc.mjs +10 -0
  280. package/assets/icons/definitions/chevronUp.doc.mjs +9 -0
  281. package/assets/icons/definitions/chevronsLeft.doc.mjs +10 -0
  282. package/assets/icons/definitions/chevronsRight.doc.mjs +10 -0
  283. package/assets/icons/definitions/click.doc.mjs +9 -0
  284. package/assets/icons/definitions/clipboard.doc.mjs +10 -0
  285. package/assets/icons/definitions/clock.doc.mjs +10 -0
  286. package/assets/icons/definitions/close.doc.mjs +10 -0
  287. package/assets/icons/definitions/code.doc.mjs +9 -0
  288. package/assets/icons/definitions/collapse.doc.mjs +9 -0
  289. package/assets/icons/definitions/compose.doc.mjs +9 -0
  290. package/assets/icons/definitions/conversation.doc.mjs +9 -0
  291. package/assets/icons/definitions/copy.doc.mjs +10 -0
  292. package/assets/icons/definitions/creditCard.doc.mjs +9 -0
  293. package/assets/icons/definitions/database.doc.mjs +9 -0
  294. package/assets/icons/definitions/delete.doc.mjs +9 -0
  295. package/assets/icons/definitions/desktop.doc.mjs +9 -0
  296. package/assets/icons/definitions/discount.doc.mjs +9 -0
  297. package/assets/icons/definitions/document.doc.mjs +9 -0
  298. package/assets/icons/definitions/download.doc.mjs +9 -0
  299. package/assets/icons/definitions/drag.doc.mjs +9 -0
  300. package/assets/icons/definitions/edit.doc.mjs +9 -0
  301. package/assets/icons/definitions/emoji.doc.mjs +9 -0
  302. package/assets/icons/definitions/error.doc.mjs +10 -0
  303. package/assets/icons/definitions/expand.doc.mjs +9 -0
  304. package/assets/icons/definitions/experiment.doc.mjs +9 -0
  305. package/assets/icons/definitions/externalLink.doc.mjs +10 -0
  306. package/assets/icons/definitions/eye.doc.mjs +9 -0
  307. package/assets/icons/definitions/eyeSlash.doc.mjs +10 -0
  308. package/assets/icons/definitions/file.doc.mjs +9 -0
  309. package/assets/icons/definitions/flag.doc.mjs +9 -0
  310. package/assets/icons/definitions/folder.doc.mjs +9 -0
  311. package/assets/icons/definitions/folderAdd.doc.mjs +9 -0
  312. package/assets/icons/definitions/funnel.doc.mjs +10 -0
  313. package/assets/icons/definitions/globe.doc.mjs +9 -0
  314. package/assets/icons/definitions/gridView.doc.mjs +9 -0
  315. package/assets/icons/definitions/heart.doc.mjs +9 -0
  316. package/assets/icons/definitions/home.doc.mjs +9 -0
  317. package/assets/icons/definitions/image.doc.mjs +9 -0
  318. package/assets/icons/definitions/inbox.doc.mjs +9 -0
  319. package/assets/icons/definitions/info.doc.mjs +10 -0
  320. package/assets/icons/definitions/italic.doc.mjs +9 -0
  321. package/assets/icons/definitions/key.doc.mjs +9 -0
  322. package/assets/icons/definitions/language.doc.mjs +9 -0
  323. package/assets/icons/definitions/lightbulb.doc.mjs +9 -0
  324. package/assets/icons/definitions/link.doc.mjs +9 -0
  325. package/assets/icons/definitions/list.doc.mjs +9 -0
  326. package/assets/icons/definitions/location.doc.mjs +9 -0
  327. package/assets/icons/definitions/lock.doc.mjs +9 -0
  328. package/assets/icons/definitions/mail.doc.mjs +9 -0
  329. package/assets/icons/definitions/mention.doc.mjs +9 -0
  330. package/assets/icons/definitions/menu.doc.mjs +10 -0
  331. package/assets/icons/definitions/message.doc.mjs +9 -0
  332. package/assets/icons/definitions/microphone.doc.mjs +10 -0
  333. package/assets/icons/definitions/mobile.doc.mjs +9 -0
  334. package/assets/icons/definitions/money.doc.mjs +9 -0
  335. package/assets/icons/definitions/moon.doc.mjs +9 -0
  336. package/assets/icons/definitions/moreHorizontal.doc.mjs +10 -0
  337. package/assets/icons/definitions/notification.doc.mjs +9 -0
  338. package/assets/icons/definitions/notificationActive.doc.mjs +9 -0
  339. package/assets/icons/definitions/notificationOff.doc.mjs +9 -0
  340. package/assets/icons/definitions/package.doc.mjs +9 -0
  341. package/assets/icons/definitions/pause.doc.mjs +9 -0
  342. package/assets/icons/definitions/pin.doc.mjs +9 -0
  343. package/assets/icons/definitions/play.doc.mjs +9 -0
  344. package/assets/icons/definitions/raiseHand.doc.mjs +9 -0
  345. package/assets/icons/definitions/redo.doc.mjs +9 -0
  346. package/assets/icons/definitions/refresh.doc.mjs +9 -0
  347. package/assets/icons/definitions/remove.doc.mjs +9 -0
  348. package/assets/icons/definitions/rocket.doc.mjs +9 -0
  349. package/assets/icons/definitions/save.doc.mjs +9 -0
  350. package/assets/icons/definitions/search.doc.mjs +10 -0
  351. package/assets/icons/definitions/send.doc.mjs +9 -0
  352. package/assets/icons/definitions/server.doc.mjs +9 -0
  353. package/assets/icons/definitions/settings.doc.mjs +9 -0
  354. package/assets/icons/definitions/share.doc.mjs +9 -0
  355. package/assets/icons/definitions/shield.doc.mjs +9 -0
  356. package/assets/icons/definitions/shipping.doc.mjs +9 -0
  357. package/assets/icons/definitions/shoppingBag.doc.mjs +9 -0
  358. package/assets/icons/definitions/sparkles.doc.mjs +9 -0
  359. package/assets/icons/definitions/star.doc.mjs +9 -0
  360. package/assets/icons/definitions/stop.doc.mjs +10 -0
  361. package/assets/icons/definitions/strikethrough.doc.mjs +9 -0
  362. package/assets/icons/definitions/success.doc.mjs +10 -0
  363. package/assets/icons/definitions/sun.doc.mjs +9 -0
  364. package/assets/icons/definitions/swatch.doc.mjs +9 -0
  365. package/assets/icons/definitions/table.doc.mjs +9 -0
  366. package/assets/icons/definitions/tag.doc.mjs +9 -0
  367. package/assets/icons/definitions/thumbsDown.doc.mjs +9 -0
  368. package/assets/icons/definitions/thumbsUp.doc.mjs +9 -0
  369. package/assets/icons/definitions/trendDown.doc.mjs +9 -0
  370. package/assets/icons/definitions/trendUp.doc.mjs +9 -0
  371. package/assets/icons/definitions/underline.doc.mjs +9 -0
  372. package/assets/icons/definitions/undo.doc.mjs +9 -0
  373. package/assets/icons/definitions/unlock.doc.mjs +9 -0
  374. package/assets/icons/definitions/upload.doc.mjs +10 -0
  375. package/assets/icons/definitions/user.doc.mjs +9 -0
  376. package/assets/icons/definitions/userAdd.doc.mjs +9 -0
  377. package/assets/icons/definitions/userCircle.doc.mjs +9 -0
  378. package/assets/icons/definitions/users.doc.mjs +9 -0
  379. package/assets/icons/definitions/video.doc.mjs +9 -0
  380. package/assets/icons/definitions/viewColumns.doc.mjs +10 -0
  381. package/assets/icons/definitions/warning.doc.mjs +10 -0
  382. package/assets/icons/definitions/work.doc.mjs +9 -0
  383. package/assets/icons/definitions/wrench.doc.mjs +10 -0
  384. package/assets/templates/blocks/components/AppShell/AppShellShowcase.doc.mjs +16 -3
  385. package/assets/templates/blocks/components/AppShell/AppShellSideNavOnly.doc.mjs +16 -1
  386. package/assets/templates/blocks/components/AppShell/AppShellTopNavOnly.doc.mjs +9 -1
  387. package/assets/templates/blocks/components/AppShell/AppShellTopNavWithSideNav.doc.mjs +17 -1
  388. package/assets/templates/blocks/components/AppShell/AppShellWithBanner.doc.mjs +18 -1
  389. package/assets/templates/blocks/components/BaseTypeahead/BaseTypeaheadCustomSearch.doc.mjs +1 -0
  390. package/assets/templates/blocks/components/BottomSheet/BottomSheetSnapPoints.doc.mjs +8 -0
  391. package/assets/templates/blocks/components/BottomSheet/BottomSheetSwitcherReviewFlow.doc.mjs +1 -1
  392. package/assets/templates/blocks/components/BottomSheet/BottomSheetSwitcherShowcase.doc.mjs +1 -1
  393. package/assets/templates/blocks/components/BreadcrumbItem/BreadcrumbItemShowcase.doc.mjs +1 -0
  394. package/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsDeepHierarchy.doc.mjs +1 -0
  395. package/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsWithIcons.doc.mjs +1 -0
  396. package/assets/templates/blocks/components/Button/ButtonFloating.doc.mjs +1 -0
  397. package/assets/templates/blocks/components/Button/ButtonWithIcon.doc.mjs +6 -0
  398. package/assets/templates/blocks/components/ButtonGroup/ButtonGroupShowcase.doc.mjs +5 -0
  399. package/assets/templates/blocks/components/Center/CenterHorizontal.doc.mjs +8 -0
  400. package/assets/templates/blocks/components/Center/CenterInsideACard.doc.mjs +1 -0
  401. package/assets/templates/blocks/components/ChatComposer/ChatComposerFlat.doc.mjs +5 -0
  402. package/assets/templates/blocks/components/ChatComposer/ChatComposerFooterActions.doc.mjs +13 -1
  403. package/assets/templates/blocks/components/ChatComposer/ChatComposerFullFeatured.doc.mjs +17 -1
  404. package/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerShowcase.doc.mjs +1 -0
  405. package/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerWithProgress.doc.mjs +1 -0
  406. package/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataFooter.doc.mjs +15 -1
  407. package/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataShowcase.doc.mjs +15 -1
  408. package/assets/templates/blocks/components/ChatSendButton/ChatSendButtonCustomIcon.doc.mjs +6 -0
  409. package/assets/templates/blocks/components/ChatSendButton/ChatSendButtonShowcase.doc.mjs +1 -0
  410. package/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageStatusUpdates.doc.mjs +1 -0
  411. package/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageWithIcon.doc.mjs +6 -0
  412. package/assets/templates/blocks/components/ContextMenu/ContextMenuBottomSheet.doc.mjs +6 -0
  413. package/assets/templates/blocks/components/DropdownMenu/DropdownMenuBottomSheet.doc.mjs +6 -0
  414. package/assets/templates/blocks/components/DropdownMenu/DropdownMenuNoChevron.doc.mjs +1 -0
  415. package/assets/templates/blocks/components/EmptyState/EmptyStateActions.doc.mjs +1 -0
  416. package/assets/templates/blocks/components/EmptyState/EmptyStateCompact.doc.mjs +1 -0
  417. package/assets/templates/blocks/components/EmptyState/EmptyStateContainer.doc.mjs +1 -0
  418. package/assets/templates/blocks/components/EmptyState/EmptyStateShowcase.doc.mjs +1 -0
  419. package/assets/templates/blocks/components/Hooks/useContainerRevealHookUsage.doc.mjs +1 -0
  420. package/assets/templates/blocks/components/Hooks/useKeyboardHintHookUsage.doc.mjs +10 -1
  421. package/assets/templates/blocks/components/HoverCard/HoverCardInteractiveContent.doc.mjs +1 -0
  422. package/assets/templates/blocks/components/HoverCard/HoverCardProfileHoverCard.doc.mjs +1 -0
  423. package/assets/templates/blocks/components/IconButton/IconButtonFloating.doc.mjs +1 -0
  424. package/assets/templates/blocks/components/Item/ItemDocumentTabs.doc.mjs +1 -0
  425. package/assets/templates/blocks/components/Item/ItemShowcase.doc.mjs +1 -0
  426. package/assets/templates/blocks/components/Item/ItemWithMetadata.doc.mjs +1 -1
  427. package/assets/templates/blocks/components/MetadataListItem/MetadataListItemBasic.doc.mjs +1 -1
  428. package/assets/templates/blocks/components/MobileNav/MobileNavBasicMobileNav.doc.mjs +7 -0
  429. package/assets/templates/blocks/components/MobileNav/MobileNavEndSideMobileNav.doc.mjs +1 -0
  430. package/assets/templates/blocks/components/MobileNav/MobileNavWithoutTitleMobileNav.doc.mjs +1 -0
  431. package/assets/templates/blocks/components/MoreMenu/MoreMenuBottomSheet.doc.mjs +6 -0
  432. package/assets/templates/blocks/components/MoreMenu/MoreMenuWithDividers.doc.mjs +5 -0
  433. package/assets/templates/blocks/components/MoreMenu/MoreMenuWithSections.doc.mjs +5 -0
  434. package/assets/templates/blocks/components/Pagination/PaginationDotsCarousel.doc.mjs +1 -0
  435. package/assets/templates/blocks/components/Popover/PopoverBottomSheetAlternative.doc.mjs +1 -0
  436. package/assets/templates/blocks/components/Section/SectionWashHighlight.doc.mjs +1 -0
  437. package/assets/templates/blocks/components/SegmentedControlItem/SegmentedControlItemBasic.doc.mjs +1 -1
  438. package/assets/templates/blocks/components/Selector/SelectorOptionDescriptions.doc.mjs +8 -1
  439. package/assets/templates/blocks/components/SelectorOption/SelectorOptionShowcase.doc.mjs +1 -0
  440. package/assets/templates/blocks/components/TextArea/TextAreaWithIcon.doc.mjs +1 -0
  441. package/assets/templates/blocks/components/TextInput/TextInputIcon.doc.mjs +1 -0
  442. package/assets/templates/blocks/components/TextInput/TextInputSearch.doc.mjs +1 -0
  443. package/assets/templates/blocks/components/ToggleButton/ToggleButtonColor.doc.mjs +11 -0
  444. package/assets/templates/blocks/components/ToggleButton/ToggleButtonGroup.doc.mjs +16 -1
  445. package/assets/templates/blocks/components/ToggleButton/ToggleButtonIconSwap.doc.mjs +6 -0
  446. package/assets/templates/blocks/components/ToggleButton/ToggleButtonLabel.doc.mjs +13 -1
  447. package/assets/templates/blocks/components/ToggleButton/ToggleButtonShowcase.doc.mjs +6 -0
  448. package/assets/templates/blocks/components/ToggleButton/ToggleButtonStates.doc.mjs +1 -0
  449. package/assets/templates/blocks/components/Token/TokenIcon.doc.mjs +6 -0
  450. package/assets/templates/blocks/components/Token/TokenShowcase.doc.mjs +1 -0
  451. package/assets/templates/blocks/components/Tokenizer/TokenizerIcon.doc.mjs +1 -0
  452. package/assets/templates/blocks/components/Toolbar/ToolbarBulkActions.doc.mjs +1 -0
  453. package/assets/templates/blocks/components/Toolbar/ToolbarCardHeader.doc.mjs +1 -0
  454. package/assets/templates/blocks/components/Toolbar/ToolbarSizes.doc.mjs +1 -0
  455. package/assets/templates/blocks/components/Toolbar/ToolbarTableFilter.doc.mjs +1 -0
  456. package/assets/templates/blocks/components/Toolbar/ToolbarThreeSlot.doc.mjs +1 -0
  457. package/assets/templates/blocks/components/Toolbar/ToolbarWithTabs.doc.mjs +1 -0
  458. package/assets/templates/blocks/components/TopNav/TopNavCenteredNavigation.doc.mjs +1 -0
  459. package/assets/templates/blocks/components/TopNav/TopNavEnterpriseDashboard.doc.mjs +6 -0
  460. package/assets/templates/blocks/components/TopNav/TopNavHoverMenu.doc.mjs +8 -0
  461. package/assets/templates/blocks/components/TopNav/TopNavMegaMenu.doc.mjs +8 -0
  462. package/assets/templates/blocks/components/TopNav/TopNavMultipleDropdowns.doc.mjs +5 -0
  463. package/assets/templates/blocks/components/TopNav/TopNavShowcase.doc.mjs +5 -0
  464. package/assets/templates/blocks/components/TopNav/TopNavWithLogo.doc.mjs +1 -0
  465. package/assets/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuBasic.doc.mjs +1 -0
  466. package/assets/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuShowcase.doc.mjs +13 -1
  467. package/assets/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemBasic.doc.mjs +1 -0
  468. package/assets/templates/blocks/components/TopNavMenu/TopNavMenuBasic.doc.mjs +1 -0
  469. package/assets/templates/blocks/components/TopNavMenu/TopNavMenuShowcase.doc.mjs +6 -0
  470. package/assets/templates/blocks/components/TreeList/TreeListFileTreeWithIcons.doc.mjs +1 -0
  471. package/assets/templates/blocks/components/TreeList/TreeListInteractiveSettings.doc.mjs +1 -0
  472. package/assets/templates/blocks/components/Typeahead/TypeaheadSearchField.doc.mjs +1 -0
  473. package/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenShowcase.doc.mjs +15 -1
  474. package/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenSupplementaryContext.doc.mjs +10 -2
  475. package/assets/templates/pages/ai-chat/template.doc.mjs +9 -0
  476. package/assets/templates/pages/ai-chat-landing/template.doc.mjs +11 -0
  477. package/assets/templates/pages/canvas-editor/template.doc.mjs +17 -0
  478. package/assets/templates/pages/centered-hero/template.doc.mjs +1 -0
  479. package/assets/templates/pages/checkout-wizard/template.doc.mjs +7 -0
  480. package/assets/templates/pages/contact-form/template.doc.mjs +5 -0
  481. package/assets/templates/pages/dashboard/template.doc.mjs +6 -0
  482. package/assets/templates/pages/dashboard-alert-rail/template.doc.mjs +8 -0
  483. package/assets/templates/pages/dashboard-cohort-funnel/template.doc.mjs +7 -0
  484. package/assets/templates/pages/dashboard-comparison/template.doc.mjs +8 -0
  485. package/assets/templates/pages/dashboard-composition/template.doc.mjs +1 -0
  486. package/assets/templates/pages/dashboard-progress/template.doc.mjs +7 -0
  487. package/assets/templates/pages/dashboard-scorecard/template.doc.mjs +7 -0
  488. package/assets/templates/pages/detail-page/template.doc.mjs +10 -0
  489. package/assets/templates/pages/documentation-design/template.doc.mjs +6 -1
  490. package/assets/templates/pages/documentation-technical/template.doc.mjs +5 -0
  491. package/assets/templates/pages/editor/template.doc.mjs +25 -0
  492. package/assets/templates/pages/file-explorer/template.doc.mjs +15 -0
  493. package/assets/templates/pages/form-wizard-inline/template.doc.mjs +1 -0
  494. package/assets/templates/pages/form-wizard-vertical/template.doc.mjs +12 -0
  495. package/assets/templates/pages/gallery-hero/template.doc.mjs +1 -0
  496. package/assets/templates/pages/ide/template.doc.mjs +5 -0
  497. package/assets/templates/pages/incident-console/template.doc.mjs +1 -0
  498. package/assets/templates/pages/kanban-board/template.doc.mjs +11 -0
  499. package/assets/templates/pages/library/template.doc.mjs +1 -0
  500. package/assets/templates/pages/login/template.doc.mjs +1 -0
  501. package/assets/templates/pages/login-card/template.doc.mjs +1 -0
  502. package/assets/templates/pages/login-split/template.doc.mjs +1 -0
  503. package/assets/templates/pages/login-sso/template.doc.mjs +1 -0
  504. package/assets/templates/pages/messaging-shell/template.doc.mjs +13 -0
  505. package/assets/templates/pages/payment-form/template.doc.mjs +6 -0
  506. package/assets/templates/pages/product-detail/template.doc.mjs +1 -0
  507. package/assets/templates/pages/product-gallery/template.doc.mjs +1 -0
  508. package/assets/templates/pages/settings/template.doc.mjs +1 -0
  509. package/assets/templates/pages/settings-dialog/template.doc.mjs +49 -0
  510. package/assets/templates/pages/settings-sidebar/template.doc.mjs +16 -0
  511. package/assets/templates/pages/shell-nav/template.doc.mjs +6 -0
  512. package/assets/templates/pages/shell-side-nav/template.doc.mjs +11 -0
  513. package/assets/templates/pages/shell-top-nav/template.doc.mjs +16 -0
  514. package/assets/templates/pages/table-collapsible/template.doc.mjs +5 -0
  515. package/assets/templates/pages/table-comparison/template.doc.mjs +12 -0
  516. package/assets/templates/pages/table-filter/template.doc.mjs +19 -0
  517. package/assets/templates/pages/table-grouped/template.doc.mjs +13 -0
  518. package/assets/templates/pages/table-inbox/template.doc.mjs +17 -0
  519. package/assets/templates/pages/table-page/template.doc.mjs +1 -0
  520. package/assets/templates/pages/table-tree/template.doc.mjs +12 -0
  521. package/assets/templates/pages/theme-showcase/template.doc.mjs +19 -0
  522. package/assets/templates/pages/work-item-detail/template.doc.mjs +13 -0
  523. package/assets/templates/themes/butter/butterPaletteRefs.generated.ts +54 -0
  524. package/assets/templates/themes/butter/butterPalettes.generated.receipt.json +1499 -0
  525. package/assets/templates/themes/butter/butterPalettes.generated.ts +550 -0
  526. package/assets/templates/themes/butter/butterTheme.ts +274 -234
  527. package/assets/templates/themes/butter/palette.config.json +484 -0
  528. package/assets/templates/themes/gothic/gothicPaletteRefs.generated.ts +41 -0
  529. package/assets/templates/themes/gothic/gothicPalettes.generated.receipt.json +979 -0
  530. package/assets/templates/themes/gothic/gothicPalettes.generated.ts +271 -0
  531. package/assets/templates/themes/gothic/gothicTheme.ts +130 -160
  532. package/assets/templates/themes/gothic/palette.config.json +371 -0
  533. package/assets/templates/themes/matcha/matchaPaletteRefs.generated.ts +51 -0
  534. package/assets/templates/themes/matcha/matchaPalettes.generated.receipt.json +1502 -0
  535. package/assets/templates/themes/matcha/matchaPalettes.generated.ts +501 -0
  536. package/assets/templates/themes/matcha/matchaPalettes.ts +21 -0
  537. package/assets/templates/themes/matcha/matchaTheme.ts +164 -103
  538. package/assets/templates/themes/matcha/palette.config.json +448 -0
  539. package/assets/templates/themes/stone/palette.config.json +262 -0
  540. package/assets/templates/themes/stone/stonePaletteRefs.generated.ts +51 -0
  541. package/assets/templates/themes/stone/stonePalettes.generated.receipt.json +840 -0
  542. package/assets/templates/themes/stone/stonePalettes.generated.ts +501 -0
  543. package/assets/templates/themes/stone/stoneTheme.ts +190 -207
  544. package/assets/templates/themes/y2k/palette.config.json +166 -0
  545. package/assets/templates/themes/y2k/y2kPaletteRefs.generated.ts +54 -0
  546. package/assets/templates/themes/y2k/y2kPalettes.generated.receipt.json +872 -0
  547. package/assets/templates/themes/y2k/y2kPalettes.generated.ts +550 -0
  548. package/assets/templates/themes/y2k/y2kPalettes.ts +257 -0
  549. package/assets/templates/themes/y2k/y2kTheme.ts +164 -391
  550. package/authoring/codemod/codemod.doc.mjs +1 -1
  551. package/authoring/config/config.doc.mjs +12 -4
  552. package/authoring/config/parse.d.mts +1 -0
  553. package/authoring/config/parse.mjs +1 -0
  554. package/authoring/config/type.ts +8 -0
  555. package/authoring/debug/parse.d.mts +1 -1
  556. package/authoring/discover/discover.doc.mjs +1 -1
  557. package/authoring/discover/parse.d.mts +13 -3
  558. package/authoring/discover/parse.mjs +57 -4
  559. package/authoring/discover/parse.test.mjs +34 -0
  560. package/authoring/discover/type.ts +22 -2
  561. package/authoring/doctypes/_schema.d.mts +23 -0
  562. package/authoring/doctypes/_schema.mjs +9 -0
  563. package/authoring/doctypes/base/graph-fields.doc.mjs +7 -1
  564. package/authoring/doctypes/base/type.ts +10 -1
  565. package/authoring/doctypes/doc-stability-types.test.mjs +91 -0
  566. package/authoring/doctypes/enum/type.ts +4 -0
  567. package/authoring/doctypes/icon-definition/icon-definition.doc.d.mts +9 -0
  568. package/authoring/doctypes/icon-definition/icon-definition.doc.mjs +89 -0
  569. package/authoring/doctypes/icon-definition/parse.d.mts +40 -0
  570. package/authoring/doctypes/icon-definition/parse.mjs +89 -0
  571. package/authoring/doctypes/icon-definition/parse.test.mjs +78 -0
  572. package/authoring/doctypes/icon-definition/type.ts +55 -0
  573. package/authoring/doctypes/icon-set/icon-names.d.mts +14 -0
  574. package/authoring/doctypes/icon-set/icon-names.mjs +44 -0
  575. package/authoring/doctypes/icon-set/icon-names.test.mjs +26 -0
  576. package/authoring/doctypes/icon-set/icon-set-data.doc.d.mts +10 -0
  577. package/authoring/doctypes/icon-set/icon-set-data.doc.mjs +169 -0
  578. package/authoring/doctypes/icon-set/icon-set.doc.d.mts +9 -0
  579. package/authoring/doctypes/icon-set/icon-set.doc.mjs +90 -0
  580. package/authoring/doctypes/icon-set/parse.d.mts +105 -0
  581. package/authoring/doctypes/icon-set/parse.mjs +322 -0
  582. package/authoring/doctypes/icon-set/parse.test.mjs +179 -0
  583. package/authoring/doctypes/icon-set/type.ts +182 -0
  584. package/authoring/doctypes/load-contract.test.mjs +17 -4
  585. package/authoring/doctypes/namespace/namespace.doc.mjs +7 -0
  586. package/authoring/doctypes/namespace/type.ts +7 -0
  587. package/authoring/doctypes/parse.d.mts +6 -2
  588. package/authoring/doctypes/parse.mjs +10 -2
  589. package/authoring/doctypes/reference/type.ts +14 -2
  590. package/authoring/doctypes/schema/type.ts +4 -0
  591. package/authoring/doctypes/template/parse.d.mts +4 -0
  592. package/authoring/doctypes/template/parse.mjs +11 -0
  593. package/authoring/doctypes/template/template.doc.mjs +7 -0
  594. package/authoring/doctypes/template/type.ts +10 -0
  595. package/authoring/doctypes/types.ts +3 -1
  596. package/authoring/gap-report/gap-report.doc.mjs +1 -1
  597. package/authoring/identity/type.ts +11 -3
  598. package/authoring/index.d.mts +2 -0
  599. package/authoring/index.d.ts +15 -0
  600. package/authoring/index.mjs +5 -1
  601. package/authoring/integration/integration.doc.mjs +23 -6
  602. package/authoring/integration/schema.d.mts +6 -0
  603. package/authoring/integration/schema.mjs +4 -0
  604. package/authoring/integration/type.ts +8 -0
  605. package/clients/cli/commands/discover.icon-sets.test.mjs +133 -0
  606. package/clients/cli/commands/discover.mjs +4 -1
  607. package/clients/cli/commands/discover.sources.test.mjs +6 -0
  608. package/clients/cli/commands/docs.doc.mjs +1 -1
  609. package/clients/cli/commands/docs.mjs +50 -8
  610. package/clients/cli/commands/docs.test.mjs +1 -1
  611. package/clients/cli/commands/doctor-integration-docs.doc.mjs +1 -1
  612. package/clients/cli/commands/doctor-integration.test.mjs +38 -0
  613. package/clients/cli/commands/doctor.doc.mjs +13 -1
  614. package/clients/cli/commands/doctor.mjs +190 -25
  615. package/clients/cli/commands/experimental/icon.mjs +462 -0
  616. package/clients/cli/commands/experimental/index.mjs +43 -0
  617. package/clients/cli/commands/experimental-icon-add.doc.mjs +105 -0
  618. package/clients/cli/commands/experimental-icon-map.doc.mjs +57 -0
  619. package/clients/cli/commands/experimental-icon-new-definition.doc.mjs +72 -0
  620. package/clients/cli/commands/experimental-icon-new-set.doc.mjs +76 -0
  621. package/clients/cli/commands/experimental-icon-use.doc.mjs +42 -0
  622. package/clients/cli/commands/experimental-icon.doc.mjs +68 -0
  623. package/clients/cli/commands/experimental.doc.mjs +28 -0
  624. package/clients/cli/commands/icon-authoring.test.mjs +1035 -0
  625. package/clients/cli/commands/icon-sets-guide.test.mjs +186 -0
  626. package/clients/cli/commands/icon.test.mjs +96 -0
  627. package/clients/cli/commands/integration-check.doc.mjs +11 -0
  628. package/clients/cli/commands/integration-check.test.mjs +36 -3
  629. package/clients/cli/commands/integration-pack.doc.mjs +1 -1
  630. package/clients/cli/commands/integration-verify.doc.mjs +1 -1
  631. package/clients/cli/commands/integration.mjs +38 -4
  632. package/clients/cli/commands/template.icons.test.mjs +132 -0
  633. package/clients/cli/commands/template.mjs +36 -2
  634. package/clients/cli/commands/text-json-parity.test.mjs +51 -0
  635. package/clients/cli/commands/theme-targets.doc.mjs +1 -1
  636. package/clients/cli/commands/upgrade.doc.mjs +2 -2
  637. package/clients/cli/formatters/index.mjs +8 -1
  638. package/clients/cli/formatters/index.test.mjs +15 -0
  639. package/clients/cli/index.mjs +13 -0
  640. package/clients/cli/lib/define-command.mjs +9 -3
  641. package/foundation/agent-docs/agent-docs.d.mts +14 -2
  642. package/foundation/agent-docs/agent-docs.mjs +65 -4
  643. package/foundation/agent-docs/agent-docs.test.mjs +107 -0
  644. package/foundation/config/config-writer.d.mts +27 -0
  645. package/foundation/config/config-writer.mjs +202 -0
  646. package/foundation/config/config-writer.test.mjs +84 -0
  647. package/foundation/config/project.d.mts +24 -0
  648. package/foundation/config/project.mjs +105 -3
  649. package/foundation/discovery/authoring-self-docs.d.mts +22 -1
  650. package/foundation/discovery/authoring-self-docs.mjs +69 -19
  651. package/foundation/discovery/authoring-self-docs.test.mjs +19 -3
  652. package/foundation/discovery/authoring-surface.mjs +13 -6
  653. package/foundation/discovery/cli-self-docs.d.mts +6 -0
  654. package/foundation/discovery/cli-self-docs.mjs +58 -6
  655. package/foundation/discovery/component-discovery.export-names.test.mjs +31 -0
  656. package/foundation/discovery/doc-stability.d.mts +32 -0
  657. package/foundation/discovery/doc-stability.mjs +100 -0
  658. package/foundation/discovery/doc-types.d.mts +2 -2
  659. package/foundation/discovery/doc-types.mjs +8 -3
  660. package/foundation/discovery/doc-types.test.mjs +30 -0
  661. package/foundation/discovery/docs-discovery.d.mts +93 -2
  662. package/foundation/discovery/docs-discovery.mjs +237 -8
  663. package/foundation/discovery/icon-definition-discovery.d.mts +59 -0
  664. package/foundation/discovery/icon-definition-discovery.mjs +117 -0
  665. package/foundation/discovery/icon-ranking.d.mts +113 -0
  666. package/foundation/discovery/icon-ranking.mjs +305 -0
  667. package/foundation/discovery/icon-set-checks.d.mts +142 -0
  668. package/foundation/discovery/icon-set-checks.mjs +742 -0
  669. package/foundation/discovery/icon-set-checks.test.mjs +905 -0
  670. package/foundation/discovery/icon-set-discovery.d.mts +229 -0
  671. package/foundation/discovery/icon-set-discovery.mjs +464 -0
  672. package/foundation/discovery/icon-set-discovery.test.mjs +320 -0
  673. package/foundation/discovery/icon-set-writer.d.mts +323 -0
  674. package/foundation/discovery/icon-set-writer.mjs +1181 -0
  675. package/foundation/discovery/integration-doc-files.mjs +17 -2
  676. package/foundation/discovery/integration-doc-files.test.mjs +29 -0
  677. package/foundation/discovery/module-exports.d.mts +122 -0
  678. package/foundation/discovery/module-exports.mjs +682 -11
  679. package/foundation/discovery/runner-allowlist.d.mts +2 -0
  680. package/foundation/discovery/runner-allowlist.mjs +4 -0
  681. package/foundation/discovery/runner-commands.d.mts +29 -13
  682. package/foundation/discovery/runner-commands.mjs +253 -17
  683. package/foundation/discovery/runner-commands.test.mjs +4 -1
  684. package/foundation/discovery/stray-pointers.mjs +11 -5
  685. package/foundation/discovery/stray-pointers.test.mjs +6 -0
  686. package/foundation/discovery/template-adapter.d.mts +5 -0
  687. package/foundation/discovery/template-adapter.mjs +17 -0
  688. package/foundation/discovery/template-icon-notes.d.mts +15 -0
  689. package/foundation/discovery/template-icon-notes.mjs +66 -0
  690. package/foundation/discovery/template-icons.d.mts +156 -0
  691. package/foundation/discovery/template-icons.mjs +712 -0
  692. package/foundation/discovery/template-icons.test.mjs +457 -0
  693. package/foundation/discovery/theme-discovery.d.mts +15 -0
  694. package/foundation/discovery/theme-discovery.mjs +137 -61
  695. package/foundation/doc-compiler/bundle.mjs +14 -0
  696. package/foundation/doc-compiler/compile.d.mts +1 -1
  697. package/foundation/doc-compiler/compile.mjs +18 -3
  698. package/foundation/doc-compiler/doc-loads.test.mjs +36 -0
  699. package/foundation/doc-compiler/doc-syntax.d.mts +194 -0
  700. package/foundation/doc-compiler/doc-syntax.mjs +739 -0
  701. package/foundation/doc-compiler/doc-syntax.test.mjs +383 -0
  702. package/foundation/doc-compiler/inputs.d.mts +2 -2
  703. package/foundation/doc-compiler/inputs.mjs +17 -1
  704. package/foundation/doc-compiler/inputs.test.mjs +1 -0
  705. package/foundation/doc-compiler/links.d.mts +13 -16
  706. package/foundation/doc-compiler/links.mjs +40 -7
  707. package/foundation/doc-compiler/lower-doc.test.mjs +1 -1
  708. package/foundation/doc-compiler/read.d.mts +2 -2
  709. package/foundation/doc-compiler/read.mjs +4 -4
  710. package/foundation/doc-compiler/tree.d.mts +26 -0
  711. package/foundation/doc-compiler/tree.mjs +80 -4
  712. package/foundation/doc-compiler/tree.test.mjs +34 -0
  713. package/foundation/env/package-manager.d.mts +18 -0
  714. package/foundation/env/package-manager.mjs +40 -0
  715. package/foundation/fs/paths.d.mts +3 -1
  716. package/foundation/fs/paths.mjs +8 -2
  717. package/foundation/identity/provider-identity.mjs +2 -0
  718. package/foundation/integrations/cli-requirement.d.mts +84 -0
  719. package/foundation/integrations/cli-requirement.mjs +139 -1
  720. package/foundation/integrations/cli-requirement.test.mjs +32 -2
  721. package/foundation/integrations/contribution-inventory.d.mts +12 -5
  722. package/foundation/integrations/contribution-inventory.mjs +66 -3
  723. package/foundation/integrations/integrations.d.mts +5 -0
  724. package/foundation/integrations/integrations.mjs +6 -2
  725. package/foundation/integrations/manifest-writer.d.mts +3 -0
  726. package/foundation/integrations/manifest-writer.mjs +51 -5
  727. package/foundation/integrations/manifest-writer.test.mjs +42 -0
  728. package/foundation/integrations/validate-contributions.d.mts +53 -0
  729. package/foundation/integrations/validate-contributions.mjs +791 -1
  730. package/foundation/response/error-codes.test.mjs +9 -0
  731. package/foundation/response/response-types.doc.mjs +68 -11
  732. package/foundation/response/response-types.doc.test.mjs +29 -0
  733. package/package.json +9 -9
@@ -55,6 +55,7 @@
55
55
  * @property {string[]} data.components
56
56
  * @property {string} data.source
57
57
  * @property {number} data.demoMediaReplaced Astryx demo media references (images, posters, videos) replaced in the returned source: images with a neutral placeholder, videos with an empty source. Swap in your own media at those points; no media is installed. 0 when the template carried none.
58
+ * @property {TemplateIconsReport} [data.icons] Experimental, present only when the project sets `experimental.iconSet`: how the template's icons follow the project's icon set, each icon `mapped` (source and target) or `kept`, and the icon-set state. It may change or be removed in a patch release.
58
59
  */
59
60
 
60
61
  /**
@@ -83,6 +84,20 @@
83
84
  * @property {string[]} data.notes Setup notes: what the template needs that the project lacks (missing packages, missing StyleX compiler). Each note is one actionable line. Empty when the template needs nothing the project lacks.
84
85
  * @property {string[]} data.missingPackages External package names the template imports that are not in the project's dependencies. Empty when none are missing.
85
86
  * @property {string | null} data.installCommand A ready-to-run install command for the missing packages, using the project's package manager and the CLI workspace's version ranges. Null when no packages are missing, or when several lockfiles leave the package manager undetermined; missingPackages still names the packages.
87
+ * @property {TemplateIconsReport} [data.icons] Experimental, present only when the project sets `experimental.iconSet`: how the written file's icons follow the project's icon set, each icon `mapped` (source and target) or `kept`, and the icon-set state. It may change or be removed in a patch release.
88
+ */
89
+
90
+ /**
91
+ * How a template's icons follow the project's icon set (AST-084 FR10).
92
+ * Without a project icon set (`status` `none`, `ambiguous`, or `missing`)
93
+ * the source is unchanged and both lists are empty.
94
+ * @experimental May change or be removed in a patch release.
95
+ * @typedef {object} TemplateIconsReport
96
+ * @property {'selected' | 'none' | 'ambiguous' | 'missing' | 'withdrawn'} status The project's icon-set state.
97
+ * @property {string | null} set The project's icon set as `<package>/<set>`, when selected.
98
+ * @property {string} reason Why the project has that set, or none.
99
+ * @property {Array<{source: {module: string, export: string}, target: {set: string, package: string, id: string, module: string, export: string}, by: 'match' | 'definition'}>} mapped Icons rewritten to the project's set, and the rule that chose each one: a reviewed `exact` or `strong` match, or the icon the set's `map` names for the icon definition the template declares.
100
+ * @property {Array<{module: string | null, export: string, reason: string, suggestion?: {set: string, id: string, module: string, export: string, confidence: 'likely'}}>} kept Icons left as the template wrote them, with why, and a `likely` reviewed match as a suggestion when the project set has one. Every declared key is mapped or kept; `module` is null for a key the template does not import, and `export` is `default` for a default import and `*` for a namespace import.
86
101
  */
87
102
 
88
103
  /**
@@ -18,6 +18,10 @@ export function themePaletteGenerate(configPath: string, options?: {
18
18
  }, { cwd }?: {
19
19
  cwd?: string;
20
20
  }): import("../../theme.type.mjs").ThemePaletteGenerateResponse;
21
+ /** Format of the TypeScript candidate module written for a `.ts` output. */
22
+ export const PALETTE_TYPESCRIPT_FORMAT_VERSION: "palette-typescript-v1";
23
+ /** Format of the canonical JSON candidate the recipe fixtures pin. */
24
+ export const PALETTE_JSON_FORMAT_VERSION: "palette-json-v1";
21
25
  export type TonalPaletteCandidate = import("../../theme.type.mjs").TonalPaletteCandidate;
22
26
  export type TonalPaletteGenerationInput = import("../../theme.type.mjs").TonalPaletteGenerationInput;
23
27
  export type PaletteMode = "light" | "dark";
@@ -26,4 +30,8 @@ export type PendingFile = {
26
30
  path: string;
27
31
  next: string;
28
32
  };
33
+ export type SerializedCandidate = {
34
+ format: typeof PALETTE_TYPESCRIPT_FORMAT_VERSION | typeof PALETTE_JSON_FORMAT_VERSION;
35
+ text: string;
36
+ };
29
37
  import { generatePaletteSet } from './generator.mjs';
@@ -12,16 +12,23 @@ import {AstryxError} from '../../../error.mjs';
12
12
  import {
13
13
  generatePaletteSet,
14
14
  PALETTE_BLACK,
15
+ PALETTE_GENERATOR_VERSION,
15
16
  PALETTE_WHITE,
16
17
  serializeGenerationResult,
17
18
  } from './generator.mjs';
18
19
  import {PALETTE_PREVIEW_VERSION, renderPalettePreview} from './preview.mjs';
19
20
 
21
+ /** Format of the TypeScript candidate module written for a `.ts` output. */
22
+ export const PALETTE_TYPESCRIPT_FORMAT_VERSION = 'palette-typescript-v1';
23
+ /** Format of the canonical JSON candidate the recipe fixtures pin. */
24
+ export const PALETTE_JSON_FORMAT_VERSION = 'palette-json-v1';
25
+
20
26
  /** @typedef {import('../../theme.type.mjs').TonalPaletteCandidate} TonalPaletteCandidate */
21
27
  /** @typedef {import('../../theme.type.mjs').TonalPaletteGenerationInput} TonalPaletteGenerationInput */
22
28
  /** @typedef {'light' | 'dark'} PaletteMode */
23
29
  /** @typedef {ReturnType<typeof generatePaletteSet>} PaletteGenerationResult */
24
30
  /** @typedef {{path: string, next: string}} PendingFile */
31
+ /** @typedef {{format: typeof PALETTE_TYPESCRIPT_FORMAT_VERSION | typeof PALETTE_JSON_FORMAT_VERSION, text: string}} SerializedCandidate */
25
32
 
26
33
  /** @param {PaletteGenerationResult} result @returns {TonalPaletteCandidate} */
27
34
  function paletteSnapshot(result) {
@@ -90,10 +97,28 @@ export function serializePaletteCandidate(candidate) {
90
97
  return `{\n "schemaVersion": 1,\n "status": "candidate",\n "recipe": ${JSON.stringify(candidate.recipe)},\n "black": ${JSON.stringify(candidate.black)},\n "white": ${JSON.stringify(candidate.white)},\n "stops": [\n${stops.join(',\n')}\n ],\n "palette": ${serializePalette(candidate.palette, 2)}\n}\n`;
91
98
  }
92
99
 
93
- /** @param {TonalPaletteCandidate} candidate @param {string} outputPath */
100
+ /**
101
+ * Serialize a candidate for its destination and name the format of the exact
102
+ * bytes produced. Without a destination, the canonical JSON form identifies
103
+ * the candidate.
104
+ *
105
+ * @param {TonalPaletteCandidate} candidate
106
+ * @param {string | null} outputPath
107
+ * @returns {SerializedCandidate}
108
+ */
94
109
  function serializeCandidate(candidate, outputPath) {
95
- if (outputPath.endsWith('.ts')) return serializePaletteModule(candidate);
96
- if (outputPath.endsWith('.json')) return serializePaletteCandidate(candidate);
110
+ if (outputPath != null && outputPath.endsWith('.ts')) {
111
+ return {
112
+ format: PALETTE_TYPESCRIPT_FORMAT_VERSION,
113
+ text: serializePaletteModule(candidate),
114
+ };
115
+ }
116
+ if (outputPath == null || outputPath.endsWith('.json')) {
117
+ return {
118
+ format: PALETTE_JSON_FORMAT_VERSION,
119
+ text: serializePaletteCandidate(candidate),
120
+ };
121
+ }
97
122
  throw new AstryxError(
98
123
  'Palette output must end in .ts or .json.',
99
124
  undefined,
@@ -101,12 +126,14 @@ function serializeCandidate(candidate, outputPath) {
101
126
  );
102
127
  }
103
128
 
104
- /** @param {PaletteGenerationResult} result @param {string} candidateText @param {string | null} [previewText] @returns {import('../../theme.type.mjs').TonalPaletteGenerationReceipt} */
105
- function receiptFor(result, candidateText, previewText = null) {
129
+ /** @param {PaletteGenerationResult} result @param {SerializedCandidate} serialized @param {string | null} [previewText] @returns {import('../../theme.type.mjs').TonalPaletteGenerationReceipt} */
130
+ function receiptFor(result, serialized, previewText = null) {
106
131
  return {
107
132
  schemaVersion: 1,
108
133
  recipe: result.recipe,
109
- candidateSha256: createHash('sha256').update(candidateText).digest('hex'),
134
+ generatorVersion: PALETTE_GENERATOR_VERSION,
135
+ candidateFormatVersion: serialized.format,
136
+ candidateSha256: createHash('sha256').update(serialized.text).digest('hex'),
110
137
  ...(previewText
111
138
  ? {
112
139
  preview: {
@@ -345,9 +372,9 @@ export function themePaletteGenerate(
345
372
  }
346
373
 
347
374
  const candidate = paletteSnapshot(result);
348
- let candidateText = serializePaletteCandidate(candidate);
375
+ let serialized = serializeCandidate(candidate, null);
349
376
  const previewText = options.preview ? renderPalettePreview(candidate) : null;
350
- let receipt = receiptFor(result, candidateText, previewText);
377
+ let receipt = receiptFor(result, serialized, previewText);
351
378
  /** @type {string | null} */
352
379
  let output = null;
353
380
  /** @type {string | null} */
@@ -363,13 +390,13 @@ export function themePaletteGenerate(
363
390
  if (options.out) {
364
391
  const resolvedOutput = resolveSafe(options.out, cwd, 'palette output path');
365
392
  const resolvedReceipt = receiptPathFor(resolvedOutput);
366
- candidateText = serializeCandidate(candidate, resolvedOutput);
367
- receipt = receiptFor(result, candidateText, previewText);
393
+ serialized = serializeCandidate(candidate, resolvedOutput);
394
+ receipt = receiptFor(result, serialized, previewText);
368
395
  const receiptText = serializeGenerationResult(receipt);
369
396
  output = path.relative(cwd, resolvedOutput);
370
397
  receiptOutput = path.relative(cwd, resolvedReceipt);
371
398
  files.push(
372
- {path: resolvedOutput, next: candidateText},
399
+ {path: resolvedOutput, next: serialized.text},
373
400
  {path: resolvedReceipt, next: receiptText},
374
401
  );
375
402
  }
@@ -6,7 +6,12 @@ import * as os from 'node:os';
6
6
  import * as path from 'node:path';
7
7
  import {afterEach, describe, expect, it} from 'vitest';
8
8
  import {isErrorCode} from '../../../../foundation/response/error-codes.mjs';
9
- import {themePaletteGenerate} from './generate.mjs';
9
+ import {
10
+ PALETTE_JSON_FORMAT_VERSION,
11
+ PALETTE_TYPESCRIPT_FORMAT_VERSION,
12
+ themePaletteGenerate,
13
+ } from './generate.mjs';
14
+ import {PALETTE_GENERATOR_VERSION} from './generator.mjs';
10
15
 
11
16
  const temporaryDirectories = [];
12
17
 
@@ -79,7 +84,12 @@ describe('themePaletteGenerate', () => {
79
84
  fs.readFileSync(path.join(cwd, 'ocean.palette.receipt.json'), 'utf-8'),
80
85
  );
81
86
  expect(receipt.recipe).toBe('astryx-oklch-v1');
82
- expect(receipt.candidateSha256).toMatch(/^[0-9a-f]{64}$/);
87
+ expect(receipt.generatorVersion).toBe('palette-generator-v1');
88
+ expect(receipt.candidateFormatVersion).toBe('palette-typescript-v1');
89
+ expect(receipt.candidateSha256).toBe(
90
+ createHash('sha256').update(candidate).digest('hex'),
91
+ );
92
+ expect(receipt).toEqual(result.data.generationReceipt);
83
93
  expect(candidate).toContain('// prettier-ignore');
84
94
  expect(candidate).toContain("export const black = '#000000' as const;");
85
95
  expect(candidate).toContain("export const white = '#ffffff' as const;");
@@ -103,6 +113,69 @@ describe('themePaletteGenerate', () => {
103
113
  expect(result.data.receipt).toBe('ocean.palette.receipt.json');
104
114
  });
105
115
 
116
+ it('names the generator and the format of the exact bytes each receipt covers', () => {
117
+ expect(PALETTE_GENERATOR_VERSION).toBe('palette-generator-v1');
118
+ expect(PALETTE_TYPESCRIPT_FORMAT_VERSION).toBe('palette-typescript-v1');
119
+ expect(PALETTE_JSON_FORMAT_VERSION).toBe('palette-json-v1');
120
+
121
+ const cwd = fixture();
122
+ const sha256 = file =>
123
+ createHash('sha256')
124
+ .update(fs.readFileSync(path.join(cwd, file)))
125
+ .digest('hex');
126
+ const printed = themePaletteGenerate('palette.config.json', {}, {cwd}).data
127
+ .generationReceipt;
128
+ const typescript = themePaletteGenerate(
129
+ 'palette.config.json',
130
+ {out: 'ocean.palette.ts'},
131
+ {cwd},
132
+ ).data.generationReceipt;
133
+ const json = themePaletteGenerate(
134
+ 'palette.config.json',
135
+ {out: 'ocean-json.palette.json'},
136
+ {cwd},
137
+ ).data.generationReceipt;
138
+
139
+ // Existing receipt fields keep their positions; the versions sit beside
140
+ // the digest they qualify.
141
+ expect(Object.keys(typescript)).toEqual([
142
+ 'schemaVersion',
143
+ 'recipe',
144
+ 'generatorVersion',
145
+ 'candidateFormatVersion',
146
+ 'candidateSha256',
147
+ 'request',
148
+ 'diagnostics',
149
+ ]);
150
+ expect(typescript).toMatchObject({
151
+ generatorVersion: PALETTE_GENERATOR_VERSION,
152
+ candidateFormatVersion: PALETTE_TYPESCRIPT_FORMAT_VERSION,
153
+ candidateSha256: sha256('ocean.palette.ts'),
154
+ });
155
+ expect(json).toMatchObject({
156
+ generatorVersion: PALETTE_GENERATOR_VERSION,
157
+ candidateFormatVersion: PALETTE_JSON_FORMAT_VERSION,
158
+ candidateSha256: sha256('ocean-json.palette.json'),
159
+ });
160
+ // Without an output path, the receipt covers the canonical JSON bytes.
161
+ expect(printed).toEqual(json);
162
+ // Only the serialized bytes differ between formats, never the generation.
163
+ expect(typescript.candidateSha256).not.toBe(json.candidateSha256);
164
+ expect({
165
+ ...typescript,
166
+ candidateFormatVersion: null,
167
+ candidateSha256: null,
168
+ }).toEqual({...json, candidateFormatVersion: null, candidateSha256: null});
169
+ for (const [file, receipt] of [
170
+ ['ocean.palette.receipt.json', typescript],
171
+ ['ocean-json.palette.receipt.json', json],
172
+ ]) {
173
+ expect(
174
+ JSON.parse(fs.readFileSync(path.join(cwd, file), 'utf-8')),
175
+ ).toEqual(receipt);
176
+ }
177
+ });
178
+
106
179
  it('writes candidate JSON byte-identical to the recipe fixtures', () => {
107
180
  const families = [
108
181
  {id: 'neutral', name: 'Neutral', seed: '#777777', kind: 'neutral'},
@@ -164,7 +237,10 @@ describe('themePaletteGenerate', () => {
164
237
  );
165
238
 
166
239
  const printed = themePaletteGenerate('palette.config.json', {}, {cwd});
167
- expect(printed.data.generationReceipt.candidateSha256).toBe(sha256);
240
+ expect(printed.data.generationReceipt).toMatchObject({
241
+ candidateFormatVersion: 'palette-json-v1',
242
+ candidateSha256: sha256,
243
+ });
168
244
 
169
245
  const result = themePaletteGenerate(
170
246
  'palette.config.json',
@@ -174,7 +250,10 @@ describe('themePaletteGenerate', () => {
174
250
  const written = fs.readFileSync(path.join(cwd, 'candidate.json'));
175
251
  expect(written.length).toBe(bytes);
176
252
  expect(createHash('sha256').update(written).digest('hex')).toBe(sha256);
177
- expect(result.data.generationReceipt.candidateSha256).toBe(sha256);
253
+ expect(result.data.generationReceipt).toMatchObject({
254
+ candidateFormatVersion: 'palette-json-v1',
255
+ candidateSha256: sha256,
256
+ });
178
257
  }
179
258
  });
180
259
 
@@ -34,6 +34,12 @@ export function serializeGenerationResult(result: unknown): string;
34
34
  /** @typedef {{id: string, name: string, seed: string, light?: GeneratedRamp, dark?: GeneratedRamp}} GeneratedFamily */
35
35
  /** @typedef {{recipe: typeof PALETTE_RECIPE, status: 'candidate', request: NormalizedRequest, families: GeneratedFamily[], coordination: TonalPaletteCoordinationDiagnostics[], errors: {familyId: string, message: string}[]}} PaletteGenerationResult */
36
36
  export const PALETTE_RECIPE: "astryx-oklch-v1";
37
+ /**
38
+ * Identity of this generator implementation. `PALETTE_RECIPE` names the
39
+ * normative algorithm; this names the code that ran it, so a receipt can tell
40
+ * two implementations of one recipe apart.
41
+ */
42
+ export const PALETTE_GENERATOR_VERSION: "palette-generator-v1";
37
43
  export const PALETTE_BLACK: "#000000";
38
44
  export const PALETTE_WHITE: "#ffffff";
39
45
  export const DEFAULT_21_STOPS: readonly number[];
@@ -25,6 +25,12 @@ import {
25
25
  /** @typedef {{recipe: typeof PALETTE_RECIPE, status: 'candidate', request: NormalizedRequest, families: GeneratedFamily[], coordination: TonalPaletteCoordinationDiagnostics[], errors: {familyId: string, message: string}[]}} PaletteGenerationResult */
26
26
 
27
27
  export const PALETTE_RECIPE = 'astryx-oklch-v1';
28
+ /**
29
+ * Identity of this generator implementation. `PALETTE_RECIPE` names the
30
+ * normative algorithm; this names the code that ran it, so a receipt can tell
31
+ * two implementations of one recipe apart.
32
+ */
33
+ export const PALETTE_GENERATOR_VERSION = 'palette-generator-v1';
28
34
  export const PALETTE_BLACK = '#000000';
29
35
  export const PALETTE_WHITE = '#ffffff';
30
36
  export const DEFAULT_21_STOPS = Object.freeze([
@@ -417,7 +417,18 @@ export type TonalPaletteGenerationReceipt = {
417
417
  */
418
418
  recipe: "astryx-oklch-v1";
419
419
  /**
420
- * SHA-256 over the candidate bytes as written.
420
+ * Generator
421
+ * implementation that ran the recipe.
422
+ */
423
+ generatorVersion: "palette-generator-v1";
424
+ /**
425
+ * Format of the candidate bytes `candidateSha256` covers: the TypeScript
426
+ * module for a `.ts` output, otherwise canonical JSON.
427
+ */
428
+ candidateFormatVersion: "palette-typescript-v1" | "palette-json-v1";
429
+ /**
430
+ * SHA-256 over the candidate bytes in
431
+ * `candidateFormatVersion`, exactly as written when an output path is given.
421
432
  */
422
433
  candidateSha256: string;
423
434
  /**
@@ -245,7 +245,13 @@
245
245
  * @typedef {object} TonalPaletteGenerationReceipt
246
246
  * @property {1} schemaVersion
247
247
  * @property {'astryx-oklch-v1'} recipe Recipe that produced the candidate.
248
- * @property {string} candidateSha256 SHA-256 over the candidate bytes as written.
248
+ * @property {'palette-generator-v1'} generatorVersion Generator
249
+ * implementation that ran the recipe.
250
+ * @property {'palette-typescript-v1' | 'palette-json-v1'} candidateFormatVersion
251
+ * Format of the candidate bytes `candidateSha256` covers: the TypeScript
252
+ * module for a `.ts` output, otherwise canonical JSON.
253
+ * @property {string} candidateSha256 SHA-256 over the candidate bytes in
254
+ * `candidateFormatVersion`, exactly as written when an output path is given.
249
255
  * @property {{version: string, sha256: string}} [preview] Present when preview
250
256
  * content was generated for the request, even if no file was written because
251
257
  * the target already exists.
@@ -20,7 +20,7 @@ export const doc = {
20
20
  summary:
21
21
  'Compile a defineTheme() file to scoped CSS, a JS module, and type declarations, or check committed outputs for drift in CI.',
22
22
  description:
23
- 'The compiler behind `astryx theme build`. Reads a file that calls defineTheme() and ' +
23
+ 'The compiler behind `{@command theme build}`. Reads a file that calls defineTheme() and ' +
24
24
  'writes a scoped CSS file, a JS module that re-exports the built theme, and a .d.ts ' +
25
25
  '(plus an optional .variants.d.ts when the theme adds custom prop values). It uses ' +
26
26
  "@astryxdesign/core's own generator, so the CSS matches what the <Theme> runtime emits. " +
@@ -13,7 +13,7 @@ export const doc = {
13
13
  displayName: 'themeList()',
14
14
  summary: 'List themes bundled with this CLI build.',
15
15
  description:
16
- 'Synchronous list of the themes bundled with the CLI. It does not include themes from installed integrations; use themeListAvailable() for the list `astryx theme list` shows.',
16
+ 'Synchronous list of the themes bundled with the CLI. It does not include themes from installed integrations; use themeListAvailable() for the list `{@command theme list}` shows.',
17
17
  importPath: '@astryxdesign/cli/api',
18
18
  signature: 'themeList(): ThemeListResponse',
19
19
  keywords: ['theme', 'list', 'themes', 'bundled', 'available'],
@@ -61,7 +61,7 @@ export const doc = {
61
61
  {
62
62
  type: 'theme.palette.generate',
63
63
  description:
64
- 'The candidate, generation receipt, summary counts, and optional file-write receipt.',
64
+ 'The candidate, summary counts, optional file-write result, and generationReceipt. The generationReceipt identifies generatorVersion `palette-generator-v1` and candidateFormatVersion `palette-typescript-v1` or `palette-json-v1` beside the candidate digest.',
65
65
  },
66
66
  ],
67
67
  throws: [
@@ -18,7 +18,7 @@ export const doc = {
18
18
  description:
19
19
  'Enumerates the whole themeable surface: each `defineTheme` components key, the stable ' +
20
20
  'class it paints, the component that declares it, and the props and states that are legal ' +
21
- 'override keys under it. Same source as the Theming table `astryx component <Name>` prints ' +
21
+ 'override keys under it. Same source as the Theming table `{@command component <Name>}` prints ' +
22
22
  '(the component docs), so the list cannot drift from the components, and `theme build` ' +
23
23
  'validates overrides against this exact set. A filter naming a component gives that ' +
24
24
  "component's set; anything else is a case-insensitive substring search over each target's key, class and component.",
@@ -238,21 +238,29 @@ export function runCoreCodemods(versionManifests: CoreVersionManifest[], { apply
238
238
  *
239
239
  * @param {string} cwd
240
240
  * @param {string[]} [extraIntegrationSpecs] explicit `--integration` specs
241
- * @returns {Promise<{postCodemodHooks: import('../../authoring/config/type').PostCodemodHook[], integrations: import('../../foundation/integrations/integrations.mjs').LoadedIntegration[], ledger: import('../../foundation/integrations/provider-resolution.mjs').ProviderLedger}>}
241
+ * @returns {Promise<{postCodemodHooks: import('../../authoring/config/type').PostCodemodHook[], integrations: import('../../foundation/integrations/integrations.mjs').LoadedIntegration[], ledger: import('../../foundation/integrations/provider-resolution.mjs').ProviderLedger, iconSets: boolean}>}
242
+ * `iconSets`: the project sets `experimental.iconSet`
242
243
  */
243
244
  export function loadProjectContext(cwd: string, extraIntegrationSpecs?: string[]): Promise<{
244
245
  postCodemodHooks: import("../../authoring/config/type").PostCodemodHook[];
245
246
  integrations: import("../../foundation/integrations/integrations.mjs").LoadedIntegration[];
246
247
  ledger: import("../../foundation/integrations/provider-resolution.mjs").ProviderLedger;
248
+ iconSets: boolean;
247
249
  }>;
248
250
  /**
249
251
  * Non-blocking nudge for integration validation issues. Never throws (a broken
250
252
  * nudge must not fail the upgrade) and is suppressed for --json/programmatic
251
253
  * callers (the silent logger).
252
254
  * @param {Array<import('../../foundation/integrations/integrations.mjs').LoadedIntegration>} integrations
255
+ * @param {{iconSets?: boolean}} [options] `iconSets`: the project sets
256
+ * `experimental.iconSet`. Without it a package's experimental icon-set root
257
+ * is not checked (spec:AST-017 FR27, spec:AST-084 FR0), as in the project's
258
+ * own issues.
253
259
  * @returns {Promise<void>}
254
260
  */
255
- export function warnIntegrationIssues(integrations: Array<import("../../foundation/integrations/integrations.mjs").LoadedIntegration>): Promise<void>;
261
+ export function warnIntegrationIssues(integrations: Array<import("../../foundation/integrations/integrations.mjs").LoadedIntegration>, { iconSets }?: {
262
+ iconSets?: boolean;
263
+ }): Promise<void>;
256
264
  /**
257
265
  * Discover + select the integration codemods that apply in the (from, to]
258
266
  * range. An integration whose codemods fail to load is SKIPPED (a definition
@@ -642,7 +642,8 @@ export async function runCoreCodemods(
642
642
  *
643
643
  * @param {string} cwd
644
644
  * @param {string[]} [extraIntegrationSpecs] explicit `--integration` specs
645
- * @returns {Promise<{postCodemodHooks: import('../../authoring/config/type').PostCodemodHook[], integrations: import('../../foundation/integrations/integrations.mjs').LoadedIntegration[], ledger: import('../../foundation/integrations/provider-resolution.mjs').ProviderLedger}>}
645
+ * @returns {Promise<{postCodemodHooks: import('../../authoring/config/type').PostCodemodHook[], integrations: import('../../foundation/integrations/integrations.mjs').LoadedIntegration[], ledger: import('../../foundation/integrations/provider-resolution.mjs').ProviderLedger, iconSets: boolean}>}
646
+ * `iconSets`: the project sets `experimental.iconSet`
646
647
  */
647
648
  export async function loadProjectContext(cwd, extraIntegrationSpecs = []) {
648
649
  // The CLI debug preflight may already have imported this config before core
@@ -711,7 +712,12 @@ export async function loadProjectContext(cwd, extraIntegrationSpecs = []) {
711
712
  ],
712
713
  {codemods: true, prior: providerLedgerOf(project)},
713
714
  );
714
- return {postCodemodHooks, integrations, ledger};
715
+ return {
716
+ postCodemodHooks,
717
+ integrations,
718
+ ledger,
719
+ iconSets: Boolean(project.config.experimental?.iconSet),
720
+ };
715
721
  }
716
722
 
717
723
  /**
@@ -719,11 +725,24 @@ export async function loadProjectContext(cwd, extraIntegrationSpecs = []) {
719
725
  * nudge must not fail the upgrade) and is suppressed for --json/programmatic
720
726
  * callers (the silent logger).
721
727
  * @param {Array<import('../../foundation/integrations/integrations.mjs').LoadedIntegration>} integrations
728
+ * @param {{iconSets?: boolean}} [options] `iconSets`: the project sets
729
+ * `experimental.iconSet`. Without it a package's experimental icon-set root
730
+ * is not checked (spec:AST-017 FR27, spec:AST-084 FR0), as in the project's
731
+ * own issues.
722
732
  * @returns {Promise<void>}
723
733
  */
724
- export async function warnIntegrationIssues(integrations) {
734
+ export async function warnIntegrationIssues(integrations, {iconSets} = {}) {
725
735
  try {
726
- await warnOnIntegrationIssues(integrations, {json: logger.silent});
736
+ await warnOnIntegrationIssues(
737
+ iconSets
738
+ ? integrations
739
+ : integrations.map(each =>
740
+ each && typeof each === 'object'
741
+ ? {...each, iconSets: undefined}
742
+ : each,
743
+ ),
744
+ {json: logger.silent},
745
+ );
727
746
  } catch {
728
747
  // Never let the nudge break the upgrade.
729
748
  }
@@ -285,6 +285,8 @@ export async function run(options = {}, {cwd = process.cwd(), origin} = {}) {
285
285
  let integrations;
286
286
  /** @type {import('../../../authoring/config/type').PostCodemodHook[]} */
287
287
  let postCodemodHooks;
288
+ /** @type {boolean} */
289
+ let iconSets;
288
290
  try {
289
291
  const projectContext = await loadProjectContext(
290
292
  cwd,
@@ -292,6 +294,7 @@ export async function run(options = {}, {cwd = process.cwd(), origin} = {}) {
292
294
  );
293
295
  postCodemodHooks = projectContext.postCodemodHooks;
294
296
  integrations = projectContext.integrations;
297
+ iconSets = projectContext.iconSets;
295
298
  } catch (err) {
296
299
  const configErr = /** @type {Error} */ (err);
297
300
  const allProtected = coreResult?.protectedFiles ?? [];
@@ -380,7 +383,7 @@ export async function run(options = {}, {cwd = process.cwd(), origin} = {}) {
380
383
 
381
384
  // Non-blocking nudge for integration validation issues (suppressed for
382
385
  // programmatic/--json callers, i.e. the silent logger).
383
- await warnIntegrationIssues(integrations);
386
+ await warnIntegrationIssues(integrations, {iconSets});
384
387
 
385
388
  const integrationVersionGroups = await selectIntegrationCodemodsFor(
386
389
  integrations,
@@ -243,6 +243,22 @@
243
243
  {
244
244
  "kind": "template",
245
245
  "name": "EmojiPickerShowcase"
246
+ },
247
+ {
248
+ "kind": "template",
249
+ "name": "ListInputBudgetAllocation"
250
+ },
251
+ {
252
+ "kind": "template",
253
+ "name": "ListInputFamilyMembers"
254
+ },
255
+ {
256
+ "kind": "template",
257
+ "name": "ListInputMailingList"
258
+ },
259
+ {
260
+ "kind": "template",
261
+ "name": "ListInputShowcase"
246
262
  }
247
263
  ]
248
264
  },
@@ -15,8 +15,8 @@ export const docs = {
15
15
  title: 'Custom themes',
16
16
  content: [
17
17
  {type: 'prose', text: "Use an installed built theme as the base for ordinary customization. Import it into your source and pass it as `extends` to `defineTheme({extends: importedTheme, ...})`. Build the result, then add the local slug. Only eject when you need to own and maintain a full source fork."},
18
- {type: 'code', lang: 'bash', label: 'Add to use, eject to fork', code: 'astryx theme list\nastryx theme add stone\nastryx theme eject stone\nastryx theme build src/themes/stone/stoneTheme.ts\nastryx theme add stone'},
19
- {type: 'prose', text: "For an annotated map of the whole surface (every defineTheme field, the token families, and the component override syntax, each with the CLI command that prints its reference), run `astryx theme template`. It writes `theme.template.ts` into your project to read and copy from (`astryx init --features theme` writes it as part of project setup)."},
18
+ {type: 'code', lang: 'bash', label: 'Add to use, eject to fork', code: '{@command theme list}\n{@command theme add stone}\n{@command theme eject stone}\n{@command theme build src/themes/stone/stoneTheme.ts}\n{@command theme add stone}'},
19
+ {type: 'prose', text: "For an annotated map of the whole surface (every defineTheme field, the token families, and the component override syntax, each with the CLI command that prints its reference), run `{@command theme template}`. It writes `theme.template.ts` into your project to read and copy from (`{@command init --features theme}` writes it as part of project setup)."},
20
20
  {type: 'prose', text: 'To apply a theme you created, see {@link generic:use-a-theme}. To generate colors from seed values, see the Palette section below. Before you eject a package theme instead, see when that fits in {@link generic:use-a-theme}.'},
21
21
  ],
22
22
  },
@@ -26,9 +26,9 @@ export const docs = {
26
26
  content: [
27
27
  {type: 'prose', text: 'Name a few seed colors and generate every shade a theme needs, light and dark; {@link generic:generate-a-palette} explains what a palette holds.'},
28
28
  {type: 'code', lang: 'json', label: 'Minimal palette config (palette.config.json)', code: '{"families": [{"id": "ocean", "seed": "#0074e2"}]}'},
29
- {type: 'code', lang: 'bash', label: 'Generate and preview', code: '# Print the palette without writing files\nastryx theme palette generate palette.config.json\n\n# Write palette + receipt, and open a visual preview\nastryx theme palette generate palette.config.json \\\n --out src/themes/ocean/tokens/ocean.palette.ts \\\n --preview preview.html'},
29
+ {type: 'code', lang: 'bash', label: 'Generate and preview', code: '# Print the palette without writing files\n{@command theme palette generate palette.config.json}\n\n# Write palette + receipt, and open a visual preview\n{@command theme palette generate palette.config.json} \\\n --out src/themes/ocean/tokens/ocean.palette.ts \\\n --preview preview.html'},
30
30
  {type: 'prose', text: "The command writes a `.ts` file exporting 21 shades (stops 0–100) for both light and dark, plus a `.receipt.json` to regenerate later. Point your theme's tokens at the palette, then run defineTheme (see below)."},
31
- {type: 'prose', text: 'For the full palette config fields and CLI flags, run `astryx docs cli/commands/theme-palette-generate`. For the integration-authoring walkthrough of connecting a palette to theme tokens, run `astryx docs authoring/building-blocks/themes/generate-a-palette`.'},
31
+ {type: 'prose', text: 'For the full palette config fields and CLI flags, run `{@command docs cli/commands/theme-palette-generate}`. For the integration-authoring walkthrough of connecting a palette to theme tokens, run `{@command docs authoring/building-blocks/themes/generate-a-palette}`.'},
32
32
  ],
33
33
  },
34
34
  {
@@ -60,8 +60,8 @@ export const docs = {
60
60
  ['typography, motion, radius, color', 'Child config replaces base entirely (these are scale inputs, not additive).'],
61
61
  ['adaptations', 'Width-breakpoint overrides merge by fixed name. Inherited ordered rules keep their relative order; child rules append and re-resolve against the child root axes.'],
62
62
  ]},
63
- {type: 'prose', text: "Inheritance is resolved when the theme is defined, so an extended theme is flat: `astryx theme build` emits one self-contained stylesheet holding everything the child inherited, and the base theme's CSS does not need to be loaded next to it. A base that is not a theme (most often an import that missed) throws when `defineTheme` runs, rather than producing a theme that silently inherits nothing."},
64
- {type: 'prose', text: 'For the integration-specific guidance on mapping a palette to tokens when extending, see `astryx docs authoring/building-blocks/themes/define-the-theme`.'},
63
+ {type: 'prose', text: "Inheritance is resolved when the theme is defined, so an extended theme is flat: `{@command theme build}` emits one self-contained stylesheet holding everything the child inherited, and the base theme's CSS does not need to be loaded next to it. A base that is not a theme (most often an import that missed) throws when `defineTheme` runs, rather than producing a theme that silently inherits nothing."},
64
+ {type: 'prose', text: 'For the integration-specific guidance on mapping a palette to tokens when extending, see `{@command docs authoring/building-blocks/themes/define-the-theme}`.'},
65
65
  ],
66
66
  },
67
67
  {
@@ -69,15 +69,15 @@ export const docs = {
69
69
  content: [
70
70
  {type: 'prose', text: 'The `components` field in defineTheme uses semantic component keys and style keys, not raw CSS selectors. Use `base` for all instances, `variant:value` or `stateName` for specific props/states, and let the theme pipeline choose the underlying selector. For raw external CSS escape hatches, prefer the data-attribute selector surface documented in {@link generic:styling-advanced}.'},
71
71
  {type: 'code', lang: 'tsx', label: 'Component overrides with standard CSS', code: "components: {\n card: {\n base: { borderRadius: '20px', padding: '24px' },\n },\n button: {\n base: {\n borderRadius: '9999px',\n textTransform: 'uppercase',\n '--button-focus-offset': '3px',\n },\n 'variant:ghost': { borderWidth: '2px', borderStyle: 'solid' },\n },\n}"},
72
- {type: 'prose', text: "Run `astryx theme targets` for every themeable key in the system (`astryx theme targets <Name>` to scope it, `--json` to lint a theme against it), and `astryx component <Name>` for one component's theming targets, public CSS variables, and which standard CSS properties are supported."},
72
+ {type: 'prose', text: "Run `{@command theme targets}` for every themeable key in the system (`{@command theme targets <Name>}` to scope it, `--json` to lint a theme against it), and `{@command component <Name>}` for one component's theming targets, public CSS variables, and which standard CSS properties are supported."},
73
73
  {type: 'list', style: 'do', items: ['Write standard CSS properties (borderRadius, padding); the pipeline expands them into internal vars.', 'Set public CSS vars directly when no standard property equivalent exists.']},
74
- {type: 'list', style: 'dont', items: ['Set private CSS vars (prefixed --_) directly. Use standard CSS properties instead. `astryx theme build` will error.', 'Set a public CSS var the component does not define. It compiles to CSS that never applies, and the build does not warn. Take the names from `astryx component <Name>`.']},
74
+ {type: 'list', style: 'dont', items: ['Set private CSS vars (prefixed --_) directly. Use standard CSS properties instead. `{@command theme build}` will error.', 'Set a public CSS var the component does not define. It compiles to CSS that never applies, and the build does not warn. Take the names from `{@command component <Name>}`.']},
75
75
  ],
76
76
  },
77
77
  {
78
78
  title: 'Custom Variants',
79
79
  content: [
80
- {type: 'prose', text: "Themes can add new prop values to any component. Any `prop:value` key where the value isn't a built-in gets treated as a new variant. Use `astryx theme build` to generate TypeScript augmentations for type safety."},
80
+ {type: 'prose', text: "Themes can add new prop values to any component. Any `prop:value` key where the value isn't a built-in gets treated as a new variant. Use `{@command theme build}` to generate TypeScript augmentations for type safety."},
81
81
  {type: 'code', lang: 'tsx', label: 'Adding custom variants', code: "components: {\n button: {\n 'variant:secondary': { backgroundColor: 'rgba(0,0,0,0.06)' },\n 'variant:primary-muted': {\n backgroundColor: 'light-dark(#F2F4F6, #28292C)',\n color: 'var(--color-text-primary)',\n },\n },\n banner: {\n 'status:neutral': {\n backgroundColor: 'var(--color-background-muted)',\n color: 'var(--color-text-secondary)',\n },\n },\n}"},
82
82
  {type: 'code', lang: 'tsx', label: 'Using custom variants', code: "// TypeScript knows about 'primary-muted' after astryx theme build\n<Button variant=\"primary-muted\" label=\"Save draft\" />\n<Banner status=\"neutral\" title=\"Note\" />"},
83
83
  {type: 'prose', text: "Custom variants only work when the theme that defines them is active. The component's variant map is extended via module augmentation, with no changes to the component source needed."},
@@ -104,15 +104,15 @@ export const docs = {
104
104
  {type: 'prose', text: "Precedence follows rule order. Root theme values apply first, then every matching rule in declaration order. A later rule may deliberately restore a root value. `onDark` and `onLight` media-surface overrides apply after adaptations and win on the same leaf."},
105
105
  {type: 'prose', text: "`extends` preserves the base rule order and appends child rules. Inherited conditions use the child's effective breakpoint map. An empty child rule is a no-op, not a removal operator."},
106
106
  {type: 'prose', text: "A rule may replace a theme-local token only when the exact name is already enrolled by root `localTokens` or an enrolled base. Component writes in a rule are validated exactly like root `components`: same targets, axes, and value domains. The one addition is that a rule may not be the only place a custom value is enrolled: a value that is valid only because a theme enrolls it generates unconditional type augmentation, so declare it on the root theme first and let rules restyle it. Built-in values need no root declaration. When rules can match together, their ordered portable and local token writes are validated as one effective graph; any reachable cycle fails before CSS is emitted."},
107
- {type: 'prose', text: 'Adaptations compile to CSS media queries with no resize listener or styling rerender. Runtime and `astryx theme build` use the same compiler, but only a built theme is present at first paint in an SSR app.'},
107
+ {type: 'prose', text: 'Adaptations compile to CSS media queries with no resize listener or styling rerender. Runtime and `{@command theme build}` use the same compiler, but only a built theme is present at first paint in an SSR app.'},
108
108
  ],
109
109
  },
110
110
  {
111
111
  id: 'building-themes-for-production',
112
112
  title: 'Build a theme',
113
113
  content: [
114
- {type: 'prose', text: '`astryx theme build` compiles a defineTheme file into production-ready artifacts. Recommended for SSR apps (Next.js, Remix) where styles must be present on first paint.'},
115
- {type: 'code', lang: 'bash', label: 'Build a theme', code: 'astryx theme build ./src/themes/ocean.ts'},
114
+ {type: 'prose', text: '`{@command theme build}` compiles a defineTheme file into production-ready artifacts. Recommended for SSR apps (Next.js, Remix) where styles must be present on first paint.'},
115
+ {type: 'code', lang: 'bash', label: 'Build a theme', code: '{@command theme build ./src/themes/ocean.ts}'},
116
116
  {type: 'table', headers: ['File', 'Description'], rows: [
117
117
  ['ocean.css', 'Pre-compiled CSS with token overrides, component overrides, and prose element styles in @scope rules'],
118
118
  ['ocean.js', 'ES module exporting the theme object with `__built: true` and pre-resolved token values.'],
@@ -121,7 +121,7 @@ export const docs = {
121
121
  ]},
122
122
  {type: 'prose', text: 'The `__built: true` flag tells Theme to skip runtime `<style>` injection; the CSS file handles it. Load the generated CSS wherever you load the module.'},
123
123
  {type: 'code', lang: 'tsx', label: 'Using a custom built theme', code: "import {Theme} from '@astryxdesign/core/theme';\nimport {oceanTheme} from './themes/ocean';\nimport './themes/ocean.css';\n\n<Theme theme={oceanTheme}>\n <App />\n</Theme>"},
124
- {type: 'prose', text: "After upgrading Astryx, rerun `astryx theme build` for every custom prebuilt theme. Deploy the regenerated files together. The runtime intentionally trusts `__built: true` and will not repair stale CSS from an older build. The build also warns when the theme names font families it does not load. See {@link generic:font-setup} for the full recipe."},
124
+ {type: 'prose', text: "After upgrading Astryx, rerun `{@command theme build}` for every custom prebuilt theme. Deploy the regenerated files together. The runtime intentionally trusts `__built: true` and will not repair stale CSS from an older build. The build also warns when the theme names font families it does not load. See {@link generic:font-setup} for the full recipe."},
125
125
  {type: 'prose', text: 'For the runtime vs built tradeoff, see the Runtime vs Built section of {@link generic:use-a-theme}.'},
126
126
  ],
127
127
  },
@@ -130,7 +130,7 @@ export const docs = {
130
130
  title: 'Built themes with an icon registry',
131
131
  content: [
132
132
  {type: 'prose', text: "`theme build` emits an icon import when it detects a named import used by the theme's `icons:` field. It does not compile that registry module. Move the registry to a separate module and use a named import."},
133
- {type: 'code', lang: 'bash', label: 'Compiling the icon registry sidecar', code: "# Emit the built theme\nastryx theme build ./src/themes/ocean.ts -o dist/theme.css --icons-specifier ./icons.mjs\n\n# Compile the icon registry alongside it\nesbuild src/themes/icons.tsx --bundle --format=esm --outfile=dist/icons.mjs \\\n --external:react --external:lucide-react --jsx=automatic"},
133
+ {type: 'code', lang: 'bash', label: 'Compiling the icon registry sidecar', code: "# Emit the built theme\n{@command theme build ./src/themes/ocean.ts -o dist/theme.css --icons-specifier ./icons.mjs}\n\n# Compile the icon registry alongside it\nesbuild src/themes/icons.tsx --bundle --format=esm --outfile=dist/icons.mjs \\\n --external:react --external:lucide-react --jsx=automatic"},
134
134
  {type: 'prose', text: 'In the example above, the generated theme imports `./icons.mjs` from `dist`. If the second command is skipped, `theme build` can still succeed, but loading or bundling the generated module fails because `dist/icons.mjs` is missing. `--icons-specifier` changes the emitted import; it does not create or verify the target file. Match the specifier to a module that resolves from the generated JS file.'},
135
135
  {type: 'prose', text: 'Without `--icons-specifier`, the detected source import specifier is emitted unchanged. In the default flow without `--out`, a bundler can resolve an extensionless `./icons` to the neighboring `icons.tsx` source, but Node ESM does not perform that lookup and reports `ERR_MODULE_NOT_FOUND`. Moving the output with `--out` also changes where relative imports resolve from.'},
136
136
  {type: 'prose', text: 'Keep `react` and the icon library external so the registry does not bundle its own copies of those dependencies.'},
@@ -140,7 +140,7 @@ export const docs = {
140
140
  title: 'Building a Theme Family',
141
141
  content: [
142
142
  {type: 'prose', text: 'Use family mode when an app switches among one base theme and its selected descendants. The build writes one keyed CSS file containing every member, plus one keyed JavaScript module and one declaration file, beside the root source.'},
143
- {type: 'code', lang: 'bash', label: 'Build one family', code: "astryx theme build --family \\\n ./src/themes/ocean.mjs \\\n ./src/themes/ocean-calm.mjs \\\n ./src/themes/ocean-calm-deep.mjs \\\n --family-key ocean-family"},
143
+ {type: 'code', lang: 'bash', label: 'Build one family', code: "{@command theme build} --family \\\n ./src/themes/ocean.mjs \\\n ./src/themes/ocean-calm.mjs \\\n ./src/themes/ocean-calm-deep.mjs \\\n --family-key ocean-family"},
144
144
  {type: 'prose', text: 'The family stylesheet eagerly downloads every selected member so first paint is complete. Switching members changes only the theme identity; it does not add, remove, or reorder stylesheets.'},
145
145
  ],
146
146
  },