@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
@@ -4,7 +4,7 @@
4
4
 
5
5
  export const docs = {
6
6
  name: 'browser-support',
7
- title: 'Browser Support',
7
+ title: 'Browser support',
8
8
  category: 'guide',
9
9
  description:
10
10
  'What browsers Astryx targets, which modern platform features it depends on, and how to support older browsers for your own audience.',
@@ -21,7 +21,7 @@ export const docs = {
21
21
  type: 'code',
22
22
  lang: 'text',
23
23
  label: 'Set up the design system',
24
- code: 'Install @astryxdesign/core, @stylexjs/stylex, @astryxdesign/theme-neutral, and @astryxdesign/cli in this project, then run `astryx init` to set up agent docs. Read the generated files to learn the conventions.',
24
+ code: 'Install @astryxdesign/core, @stylexjs/stylex, @astryxdesign/theme-neutral, and @astryxdesign/cli in this project, then run `{@command init}` to set up agent docs. Read the generated files to learn the conventions.',
25
25
  },
26
26
  {
27
27
  type: 'prose',
@@ -31,7 +31,7 @@ export const docs = {
31
31
  type: 'code',
32
32
  lang: 'text',
33
33
  label: 'Give it a look',
34
- code: 'Ask me what look and feel this app should have. Run `astryx theme list`, install the closest theme package, and run `theme add <slug>`; use `--package` when owners share a slug. Import `themes` and `defaultThemeSlug` from the generated module once and pass `themes[defaultThemeSlug]` to `<Theme>`. Customize with `defineTheme({extends: importedTheme, ...})`. Use `theme eject` only when I ask for an independent source fork. Default to neutral if I have no preference, and show me the result before moving on.',
34
+ code: 'Ask me what look and feel this app should have. Run `{@command theme list}`, install the closest theme package, and run `theme add <slug>`; use `--package` when owners share a slug. Import `themes` and `defaultThemeSlug` from the generated module once and pass `themes[defaultThemeSlug]` to `<Theme>`. Customize with `defineTheme({extends: importedTheme, ...})`. Use `theme eject` only when I ask for an independent source fork. Default to neutral if I have no preference, and show me the result before moving on.',
35
35
  },
36
36
  ],
37
37
  },
@@ -50,17 +50,17 @@ export const docs = {
50
50
  type: 'code',
51
51
  lang: 'bash',
52
52
  label: 'Terminal',
53
- code: `npm install @astryxdesign/core @stylexjs/stylex @astryxdesign/theme-neutral @astryxdesign/cli`,
53
+ code: `{@pm install @astryxdesign/core @stylexjs/stylex @astryxdesign/theme-neutral @astryxdesign/cli}`,
54
54
  },
55
55
  {
56
56
  type: 'prose',
57
- text: "Then run `astryx init` to install the AI agent cheat sheet (AGENTS.md/CLAUDE.md). It's non-interactive; no prompts; so it's safe for AI agents, CI, and scripts. Add `--all` for pointers to the theme and page-building workflows.",
57
+ text: "Then run `{@command init}` to install the AI agent cheat sheet (AGENTS.md/CLAUDE.md). It's non-interactive; no prompts; so it's safe for AI agents, CI, and scripts. Add `--all` for pointers to the theme and page-building workflows.",
58
58
  },
59
59
  {
60
60
  type: 'code',
61
61
  lang: 'bash',
62
62
  label: 'Terminal',
63
- code: `astryx init`,
63
+ code: `{@command init}`,
64
64
  },
65
65
  ],
66
66
  },
@@ -76,7 +76,7 @@ export const docs = {
76
76
  type: 'code',
77
77
  lang: 'bash',
78
78
  label: 'Terminal',
79
- code: `npm i -g @astryxdesign/cli`,
79
+ code: `{@pm install @astryxdesign/cli --global}`,
80
80
  },
81
81
  {
82
82
  type: 'prose',
@@ -89,7 +89,7 @@ export const docs = {
89
89
  content: [
90
90
  {
91
91
  type: 'prose',
92
- text: 'Import the reset and base styles in your global CSS. Then run `astryx theme add neutral`; the generated app module imports the theme’s production CSS and font CSS.',
92
+ text: 'Import the reset and base styles in your global CSS. Then run `{@command theme add neutral}`; the generated app module imports the theme’s production CSS and font CSS.',
93
93
  },
94
94
  {
95
95
  type: 'code',
@@ -100,7 +100,7 @@ export const docs = {
100
100
  },
101
101
  {
102
102
  type: 'prose',
103
- text: 'Run `astryx theme list` to see every theme.',
103
+ text: 'Run `{@command theme list}` to see every theme.',
104
104
  },
105
105
  {
106
106
  type: 'code',
@@ -139,7 +139,7 @@ import {themes, defaultThemeSlug} from './astryx-themes';
139
139
  content: [
140
140
  {
141
141
  type: 'prose',
142
- text: 'Import each component from its own entry, the path `astryx component <Name>` prints. This keeps bundles small and makes intent clear.',
142
+ text: 'Import each component from its own entry, the path `{@command component <Name>}` prints. This keeps bundles small and makes intent clear.',
143
143
  },
144
144
  {
145
145
  type: 'code',
@@ -218,8 +218,8 @@ const overrides = stylex.create({
218
218
  label: 'Clone and run an example',
219
219
  code: `git clone https://github.com/facebook/astryx.git
220
220
  cd astryx/apps/example-nextjs
221
- pnpm install
222
- pnpm dev`,
221
+ {@pm install}
222
+ {@pm run dev}`,
223
223
  },
224
224
  ],
225
225
  },
@@ -246,11 +246,11 @@ pnpm dev`,
246
246
  type: 'code',
247
247
  lang: 'bash',
248
248
  label: 'Terminal',
249
- code: `astryx component # list all components
250
- astryx component Button # props, usage, theming for Button
251
- astryx docs # list all doc topics
252
- astryx template --list # available page templates
253
- astryx docs tokens # spacing, color, radius reference`,
249
+ code: `{@command component} # list all components
250
+ {@command component Button} # props, usage, theming for Button
251
+ {@command docs} # list all doc topics
252
+ {@command template --list} # available page templates
253
+ {@command docs tokens} # spacing, color, radius reference`,
254
254
  },
255
255
  ],
256
256
  },
@@ -41,7 +41,7 @@ export const docs = {
41
41
  'Trace where the surface sits: its route, entry point, navigation path, parent shell, and the page or block pattern it is meant to use.',
42
42
  'Inspect sibling surfaces that do the same or adjacent jobs. Record their shared headers, actions, layout primitives, spacing, density, states, and narrow-screen behavior.',
43
43
  'Read project guidance, including the root and relevant nested `AGENTS.md` files. Record app-owned wrapper components and intentional app conventions.',
44
- 'Record the installed `@astryxdesign/core`, `@astryxdesign/cli`, and integration-package versions from the project manifest and lockfile. Run the installed invocation of `astryx component --list` to see core and integration components, then inspect app-owned wrappers that do not appear in that catalog.',
44
+ 'Record the installed `@astryxdesign/core`, `@astryxdesign/cli`, and integration-package versions from the project manifest and lockfile. Run the installed invocation of `{@command component --list}` to see core and integration components, then inspect app-owned wrappers that do not appear in that catalog.',
45
45
  'List the real data states, roles and permissions, supported locales and RTL behavior, and mobile or narrow-width needs that affect the task.',
46
46
  ],
47
47
  },
@@ -179,10 +179,10 @@ export const docs = {
179
179
  "Compare the route with sibling surfaces that do the same job. Identify the app's shared header, actions, shell, page pattern, spacing, and density before judging the target.",
180
180
  'Inspect every JSX opening tag. Moving raw HTML behind a PascalCase helper does not make the underlying pattern an Astryx component.',
181
181
  'Count every raw SVG element used as an icon, including `svg`, `path`, `circle`, `rect`, `line`, `polyline`, `polygon`, `ellipse`, and `g`. For an inline SVG helper, count its raw SVG elements once in the helper definition, not again at each render. Count each icon-library component rendered directly outside an Astryx icon surface.',
182
- 'Look up a possible replacement with `astryx component <Name> --dense`. Do not invent a component or prop that the installed version does not provide.',
183
- 'Run the installed `astryx component --list` and inspect app-owned wrappers before rebuilding a pattern. Prefer the component the app or one of its installed integrations already uses for the job.',
182
+ 'Look up a possible replacement with `{@command component <Name> --dense}`. Do not invent a component or prop that the installed version does not provide.',
183
+ 'Run the installed `{@command component --list}` and inspect app-owned wrappers before rebuilding a pattern. Prefer the component the app or one of its installed integrations already uses for the job.',
184
184
  'Inspect every `stylex.create` declaration, inline style, `className`, and `stylex.props` use. Look for a component prop or token first.',
185
- "When replacing a literal spacing value, read `astryx docs spacing --full` for the matching step or token and the target component doc for the prop's accepted scale. Do not guess a pixel-to-step mapping.",
185
+ "When replacing a literal spacing value, read `{@command docs spacing --full}` for the matching step or token and the target component doc for the prop's accepted scale. Do not guess a pixel-to-step mapping.",
186
186
  'Choose the root that matches the surface. Use `Layout` for a page, `Center` for centered content, and `AppShell` only when the surface owns global application chrome.',
187
187
  'Render realistic empty, loading, error, long-content, and interactive states. Check narrow and wide widths plus each supported color mode.',
188
188
  'Verify the target roles and permissions, supported locales and RTL behavior, and mobile needs. Follow the real task from entry to completion instead of judging only the static page.',
@@ -205,11 +205,11 @@ export const docs = {
205
205
  items: [
206
206
  'Record the exact revision, named surface, route, and source files in scope. If the files are outside version control, record a content hash for each file and say that no project revision was available.',
207
207
  "Write down the app's purpose, target users, surface task, entry point, navigation path, parent shell, expected page pattern, and sibling surfaces used for comparison.",
208
- 'Record project guidance, theme, density, installed Astryx and integration versions, the relevant output of `astryx component --list`, and app-owned wrappers or conventions.',
208
+ 'Record project guidance, theme, density, installed Astryx and integration versions, the relevant output of `{@command component --list}`, and app-owned wrappers or conventions.',
209
209
  'List the states and context that matter, including real data shapes, roles and permissions, empty, loading, error, long content, interaction, narrow width, wide width, supported color modes, locales, and RTL behavior when they apply.',
210
210
  'Run the product and capture each named rendered state. Use screenshots or a live browser result for visible claims, and follow the target user task from entry to completion.',
211
211
  'Run the build, type check, tests, and accessibility checks. Keep their commands and results with the review.',
212
- 'For each Astryx component whose replacement, prop, or composition is in question, read `astryx component <Name> --dense`.',
212
+ 'For each Astryx component whose replacement, prop, or composition is in question, read `{@command component <Name> --dense}`.',
213
213
  ],
214
214
  },
215
215
  ],
@@ -67,7 +67,7 @@ export const docs = {
67
67
  type: 'code',
68
68
  lang: 'bash',
69
69
  label: 'Install',
70
- code: 'npm install @astryxdesign/core @stylexjs/stylex @astryxdesign/theme-neutral',
70
+ code: '{@pm install @astryxdesign/core @stylexjs/stylex @astryxdesign/theme-neutral}',
71
71
  },
72
72
  {
73
73
  type: 'code',
@@ -79,7 +79,7 @@ export const docs = {
79
79
  },
80
80
  {
81
81
  type: 'prose',
82
- text: "Done. Components work out of the box \u2014 style them with `className`, `xstyle`, or `style`. Swap `theme-neutral` for any theme package (`astryx theme list` shows what's available).",
82
+ text: "Done. Components work out of the box \u2014 style them with `className`, `xstyle`, or `style`. Swap `theme-neutral` for any theme package (`{@command theme list}` shows what's available).",
83
83
  },
84
84
  ],
85
85
  },
@@ -91,7 +91,7 @@ export const docs = {
91
91
  type: 'code',
92
92
  lang: 'bash',
93
93
  label: 'Install (add to an existing Tailwind v4 app)',
94
- code: 'npm install @astryxdesign/core @stylexjs/stylex @astryxdesign/theme-neutral',
94
+ code: '{@pm install @astryxdesign/core @stylexjs/stylex @astryxdesign/theme-neutral}',
95
95
  },
96
96
  {
97
97
  type: 'code',
@@ -123,13 +123,13 @@ export const docs = {
123
123
  content: [
124
124
  {
125
125
  type: 'prose',
126
- text: 'Only needed when you write your own StyleX (`stylex.create()`) or swizzle a component (`astryx swizzle <Component>`), which copies its StyleX source into your app. The plain path already supports `xstyle` overrides \u2014 this path is for your own StyleX code. Some built-in page templates also use StyleX for layout; if you scaffold one and see "Unexpected stylex.create call at runtime", add the compiler plugin for your bundler below.',
126
+ text: 'Only needed when you write your own StyleX (`stylex.create()`) or swizzle a component (`{@command swizzle <Component>}`), which copies its StyleX source into your app. The plain path already supports `xstyle` overrides \u2014 this path is for your own StyleX code. Some built-in page templates also use StyleX for layout; if you scaffold one and see "Unexpected stylex.create call at runtime", add the compiler plugin for your bundler below.',
127
127
  },
128
128
  {
129
129
  type: 'code',
130
130
  lang: 'bash',
131
131
  label: 'Install',
132
- code: 'npm install @astryxdesign/core @stylexjs/stylex @astryxdesign/theme-neutral',
132
+ code: '{@pm install @astryxdesign/core @stylexjs/stylex @astryxdesign/theme-neutral}',
133
133
  },
134
134
  {
135
135
  type: 'code',
@@ -4,9 +4,9 @@
4
4
 
5
5
  export const docs = {
6
6
  name: 'theme',
7
- title: 'Theme System',
7
+ title: 'Theming',
8
8
  category: 'guide',
9
- keywords: ['theme', 'dark mode', 'defineTheme', 'provider'],
9
+ keywords: ['theme', 'theming', 'theme system', 'dark mode', 'defineTheme', 'provider'],
10
10
  description:
11
11
  'How to use and create themes: see Use a theme for applying themes, and Author a theme for creating and customizing them.',
12
12
 
@@ -39,11 +39,11 @@ export const docs = {
39
39
  type: 'code',
40
40
  lang: 'bash',
41
41
  label: 'Quick start',
42
- code: 'astryx theme add stone # use an existing theme\nastryx theme eject stone # fork its source to customize\nastryx theme build src/themes/stone/stoneTheme.ts',
42
+ code: '{@command theme add stone} # use an existing theme\n{@command theme eject stone} # fork its source to customize\n{@command theme build src/themes/stone/stoneTheme.ts}',
43
43
  },
44
44
  {
45
45
  type: 'prose',
46
- text: 'For a new coordinated color system, run `astryx theme palette generate palette.config.json --out palette.generated.ts`. Review and commit the generated palette module and receipt, import its `palette` export, then reference stable stops from semantic tokens. Regenerating an accepted palette updates every mapped token that keeps those references; generation does not rewrite the theme.',
46
+ text: 'For a new coordinated color system, run `{@command theme palette generate palette.config.json --out palette.generated.ts}`. Review and commit the generated palette module and receipt, import its `palette` export, then reference stable stops from semantic tokens. Regenerating an accepted palette updates every mapped token that keeps those references; generation does not rewrite the theme.',
47
47
  },
48
48
  {
49
49
  type: 'code',
@@ -74,7 +74,7 @@ export const docs = {
74
74
  content: [
75
75
  {
76
76
  type: 'prose',
77
- text: 'Install an integration and Astryx discovers its themes automatically. Import one with `astryx theme add <name> --package <integration>`. Use `theme eject` only for an independent source fork. For the full walkthrough, see {@link generic:use-a-theme}.',
77
+ text: 'Install an integration and Astryx discovers its themes automatically. Import one with `{@command theme add <name> --package <integration>}`. Use `theme eject` only for an independent source fork. For the full walkthrough, see {@link generic:use-a-theme}.',
78
78
  },
79
79
  ],
80
80
  },
@@ -45,7 +45,7 @@ export const docs = {
45
45
  {
46
46
  type: 'code',
47
47
  lang: 'bash',
48
- code: 'astryx integration add component AcmeCarousel',
48
+ code: '{@command integration add component AcmeCarousel}',
49
49
  },
50
50
  {
51
51
  type: 'code',
@@ -26,7 +26,7 @@ export const docs = {
26
26
  {
27
27
  type: 'code',
28
28
  lang: 'bash',
29
- code: 'astryx integration add theme ocean',
29
+ code: '{@command integration add theme ocean}',
30
30
  },
31
31
  {
32
32
  type: 'code',
@@ -63,7 +63,7 @@ Declare theme root ./themes in astryx.integration.mjs.
63
63
  {
64
64
  type: 'code',
65
65
  lang: 'bash',
66
- code: 'astryx integration add theme ocean --from neutral',
66
+ code: '{@command integration add theme ocean --from neutral}',
67
67
  },
68
68
  {
69
69
  type: 'prose',
@@ -27,7 +27,7 @@ export const docs = {
27
27
  {
28
28
  type: 'code',
29
29
  lang: 'bash',
30
- code: 'astryx integration add doc deploying\n# Read it the way an app will\nastryx docs deploying',
30
+ code: '{@command integration add doc deploying}\n# Read it the way an app will\n{@command docs deploying}',
31
31
  },
32
32
  {
33
33
  type: 'code',
@@ -40,7 +40,7 @@ export const docs = {
40
40
  items: [
41
41
  'Name the topic in lowercase kebab-case, such as `deploying`. Readers type the name as a command argument, so it holds only letters, digits, `_`, and `-`.',
42
42
  'Keep the name stable: readers and links find the topic by it.',
43
- 'Pick a name `astryx docs` does not already list: no Core topic, and no section such as `tokens` or `layout`. To take over or add to a Core topic, see {@link generic:extend-or-replace}.',
43
+ 'Pick a name `{@command docs}` does not already list: no Core topic, and no section such as `tokens` or `layout`. To take over or add to a Core topic, see {@link generic:extend-or-replace}.',
44
44
  ],
45
45
  },
46
46
  ],
@@ -57,7 +57,7 @@ export const docs = {
57
57
  type: 'code',
58
58
  lang: 'javascript',
59
59
  label: 'docs/deploying.doc.mjs',
60
- code: "/** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} */\nexport default {\n type: 'generic',\n name: 'deploying',\n title: 'Deploying',\n description: 'Ship an app built with Acme widgets.',\n sections: [{\n id: 'build-before-you-ship',\n title: 'Build before you ship',\n content: [\n {type: 'prose', text: 'Build the app, then upload the `dist` folder.'},\n {type: 'code', lang: 'bash', code: 'npm run build'},\n {type: 'list', style: 'unordered', items: ['Keep `dist` out of git.']},\n {type: 'table', headers: ['Variable', 'Value'], rows: [['`NODE_ENV`', '`production`']]},\n ],\n }],\n};",
60
+ code: "/** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} */\nexport default {\n type: 'generic',\n name: 'deploying',\n title: 'Deploying',\n description: 'Ship an app built with Acme widgets.',\n sections: [{\n id: 'build-before-you-ship',\n title: 'Build before you ship',\n content: [\n {type: 'prose', text: 'Build the app, then upload the `dist` folder.'},\n {type: 'code', lang: 'bash', code: '{@@pm run build}'},\n {type: 'list', style: 'unordered', items: ['Keep `dist` out of git.']},\n {type: 'table', headers: ['Variable', 'Value'], rows: [['`NODE_ENV`', '`production`']]},\n ],\n }],\n};",
61
61
  },
62
62
  {
63
63
  type: 'prose',
@@ -75,17 +75,17 @@ export const docs = {
75
75
  },
76
76
  {
77
77
  id: 'write-commands-without-a-runner',
78
- title: 'Write commands without a runner',
78
+ title: 'Write commands for every reader',
79
79
  content: [
80
80
  {
81
81
  type: 'prose',
82
- text: 'Start every CLI command in a doc with the word astryx alone, with no runner such as npx or pnpm exec in front. The CLI prefixes each one when it prints the doc, with the command the reader runs: `pnpm exec astryx` or `yarn astryx` from their package manager, or the `cliCommand` an integration sets. See {@link generic:cli-command}. `doctor integration validate` (and so `integration check`) lists each command written with a runner as a `runner_command` note, with its file, line and the bare command to write. A note fails nothing. An install step, which runs before the CLI is installed, is the one exception: write the scoped package name, `@astryxdesign/cli`, after the download runner. The unscoped name after a download runner is always listed, because it fetches an unrelated package.',
82
+ text: "Write an Astryx command as `{@@command doctor}` and a package-manager step as `{@@pm install @acme/widgets}`, never with a runner such as npx or pnpm exec, or a package manager's own command, in front. The CLI shows each one with the command the reader runs: `pnpm exec astryx doctor` or `yarn astryx doctor`, `pnpm add @acme/widgets` or `npm install @acme/widgets`, or the `cliCommand` an integration sets. {@link generic:doc-syntax} lists every token. A command written bare, the word astryx and a command, is shown the same way. `doctor integration validate` (and so `integration check`) names each command written another way, with the token that replaces it; {@link generic:doc-syntax} lists what it checks. An install step, which runs before the CLI is installed, is `{@@pm dlx @astryxdesign/cli init}`.",
83
83
  },
84
84
  {
85
85
  type: 'code',
86
86
  lang: 'javascript',
87
87
  label: 'docs/deploying.doc.mjs',
88
- code: "{type: 'prose', text: 'Check the app with `astryx doctor` before you ship.'},\n{type: 'code', lang: 'bash', code: 'astryx doctor'},",
88
+ code: "{type: 'prose', text: 'Check the app with {@@command doctor} before you ship.'},\n{type: 'code', lang: 'bash', code: '{@@command doctor}'},",
89
89
  },
90
90
  {
91
91
  type: 'code',
@@ -27,7 +27,7 @@ export const docs = {
27
27
  {
28
28
  type: 'code',
29
29
  lang: 'bash',
30
- code: "astryx integration add agent-doc 'Use AcmeCarousel for rotating content.'",
30
+ code: "{@command integration add agent-doc 'Use AcmeCarousel for rotating content.'}",
31
31
  },
32
32
  {
33
33
  type: 'prose',
@@ -92,12 +92,12 @@ export default {
92
92
  content: [
93
93
  {
94
94
  type: 'prose',
95
- text: "An app's `astryx init` writes your lines at the end of its managed agent block, each labeled with your package name. The CLI owns the heading, the labels, and the markers.",
95
+ text: "An app's `{@command init}` writes your lines at the end of its managed agent block, each labeled with your package name. The CLI owns the heading, the labels, and the markers.",
96
96
  },
97
97
  {
98
98
  type: 'code',
99
99
  lang: 'bash',
100
- code: 'astryx init --features agents',
100
+ code: '{@command init --features agents}',
101
101
  },
102
102
  {
103
103
  type: 'code',
@@ -123,9 +123,9 @@ export default {
123
123
  {
124
124
  type: 'code',
125
125
  lang: 'bash',
126
- code: `astryx init --features agents
126
+ code: `{@command init --features agents}
127
127
  # Or: --from takes the Core version the app had before
128
- astryx upgrade --from <version> --apply`,
128
+ {@command upgrade --from <version> --apply}`,
129
129
  },
130
130
  {
131
131
  type: 'code',
@@ -43,7 +43,7 @@ export const docs = {
43
43
  },
44
44
  {
45
45
  type: 'prose',
46
- text: 'For example, ship a carousel as an integration. Any app that installs it can find it with `astryx search carousel`, and the CLI uses it like any Astryx Core component.',
46
+ text: 'For example, ship a carousel as an integration. Any app that installs it can find it with `{@command search carousel}`, and the CLI uses it like any Astryx Core component.',
47
47
  },
48
48
  {
49
49
  type: 'prose',
@@ -55,7 +55,7 @@ export const docs = {
55
55
  },
56
56
  {
57
57
  type: 'prose',
58
- text: "Every integration runs `astryx integration check --strict` in its own build: it is required, not optional, so a doc, prop, or link that stops matching the code fails your build instead of your users' apps. See {@link generic:checks}.",
58
+ text: "Every integration runs `{@command integration check --strict}` in its own build: it is required, not optional, so a doc, prop, or link that stops matching the code fails your build instead of your users' apps. See {@link generic:checks}.",
59
59
  },
60
60
  ],
61
61
  };
@@ -82,7 +82,7 @@ export default {
82
82
  },
83
83
  {
84
84
  type: 'prose',
85
- text: 'Then check the package-scoped template list ({@link generic:template-doc-overview}) and confirm the entry carries the relationship you set. `astryx component` does not show integration blocks, so the list is where to check.',
85
+ text: 'Then check the package-scoped template list ({@link generic:template-doc-overview}) and confirm the entry carries the relationship you set. `{@command component}` does not show integration blocks, so the list is where to check.',
86
86
  },
87
87
  ],
88
88
  },
@@ -37,7 +37,7 @@ export const docs = {
37
37
  {
38
38
  type: 'code',
39
39
  lang: 'bash',
40
- code: 'astryx doctor integration components',
40
+ code: '{@command doctor integration components}',
41
41
  },
42
42
  {
43
43
  type: 'code',
@@ -178,11 +178,11 @@ reason: AcmeCarousel depends on \`@acme/motion\` (imported in AcmeCarousel.ts
178
178
  ],
179
179
  [
180
180
  "It depends on a type the compiler can't work out",
181
- 'Make the types compile with `npx tsc --noEmit`, then run the check again',
181
+ 'Make the types compile with `{@pm exec tsc --noEmit}`, then run the check again',
182
182
  ],
183
183
  [
184
184
  "The package's TypeScript config has an error",
185
- 'Fix `tsconfig.json` until `npx tsc -p .` reads it',
185
+ 'Fix `tsconfig.json` until `{@pm exec tsc -p .}` reads it',
186
186
  ],
187
187
  ['Its props are typed `any`', 'Give the component a props type'],
188
188
  [
@@ -27,7 +27,7 @@ export const docs = {
27
27
  {
28
28
  type: 'code',
29
29
  lang: 'bash',
30
- code: 'astryx doctor integration docs\n# In an app, check an installed package\nastryx doctor integration docs @acme/astryx-widgets',
30
+ code: '{@command doctor integration docs}\n# In an app, check an installed package\n{@command doctor integration docs @acme/astryx-widgets}',
31
31
  },
32
32
  {
33
33
  type: 'code',
@@ -44,7 +44,7 @@ export const docs = {
44
44
  },
45
45
  {
46
46
  type: 'prose',
47
- text: "Point at another doc with a link, never by writing `astryx docs <name>` in prose: `{@link generic:<name>}` for one of your package's topics, or `{@link @astryxdesign/cli:generic:<name>}` for a Core doc (`namespace:` for a Core namespace). The CLI prints the link as the command that opens the doc, and doctor checks that the doc exists. The check lists each written pointer to a doc that exists as a `stray_doc_pointer` warning, with the link to write instead. A command with more words, or one in a code block, is a walkthrough and is not listed.",
47
+ text: "Point at another doc with a link, never by writing `{@command docs <name>}` in prose: `{@link generic:<name>}` for one of your package's topics, or `{@link @astryxdesign/cli:generic:<name>}` for a Core doc (`namespace:` for a Core namespace). The CLI prints the link as the command that opens the doc, and doctor checks that the doc exists. The check lists each written pointer to a doc that exists as a `stray_doc_pointer` warning, with the link to write instead. A command with more words, or one in a code block, is a walkthrough and is not listed.",
48
48
  },
49
49
  {
50
50
  type: 'prose',
@@ -109,7 +109,7 @@ export const docs = {
109
109
  {
110
110
  type: 'code',
111
111
  lang: 'bash',
112
- code: 'astryx doctor integration validate',
112
+ code: '{@command doctor integration validate}',
113
113
  },
114
114
  {
115
115
  type: 'code',
@@ -144,12 +144,12 @@ fix: Remove \`summary\`: SingleComponentDoc has no field \`summary\`.`,
144
144
  content: [
145
145
  {
146
146
  type: 'prose',
147
- text: '`astryx doctor` also measures every read and warns on one over 32 KB. Run it in your package or in an app that installs it; `doctor integration docs` does not check size.',
147
+ text: '`{@command doctor}` also measures every read and warns on one over 32 KB. Run it in your package or in an app that installs it; `doctor integration docs` does not check size.',
148
148
  },
149
149
  {
150
150
  type: 'code',
151
151
  lang: 'bash',
152
- code: 'astryx doctor',
152
+ code: '{@command doctor}',
153
153
  },
154
154
  {
155
155
  type: 'code',
@@ -173,7 +173,7 @@ fix: Remove \`summary\`: SingleComponentDoc has no field \`summary\`.`,
173
173
  {
174
174
  type: 'code',
175
175
  lang: 'bash',
176
- code: 'astryx integration verify',
176
+ code: '{@command integration verify}',
177
177
  },
178
178
  {
179
179
  type: 'code',
@@ -29,37 +29,37 @@ export const docs = {
29
29
  headers: ['Command', 'Proves', 'Exits 1 when', 'Only warns when'],
30
30
  rows: [
31
31
  [
32
- '`astryx doctor integration validate`',
33
- 'The manifest loads, each root holds contributions the CLI can read, and each doc matches its authoring type. Notes, which fail nothing, list a malformed `cliCommand` and each command a topic writes with a package runner (`runner_command`)',
32
+ '`{@command doctor integration validate}`',
33
+ 'The manifest loads, each root holds contributions the CLI can read, and each doc matches its authoring type. Notes list a malformed `cliCommand` (`invalid_cli_command`) and, for each topic, a command written with a package runner (`runner_command`), bare (`plain_command`) or for one package manager (`package_manager_command`), and a token that does not parse (`doc_token`; see {@link generic:doc-syntax}). Notes fail nothing by default; `integration check --strict --next` fails on the ones marked `next`, and the next minor release counts them',
34
34
  'A declared root is missing (`missing_root`), a contribution does not load (`invalid_doc`, `invalid_component`, `invalid_theme`), or two templates in the package replace one Core id (`ambiguous_template_replacement`)',
35
35
  "The manifest has a key this CLI does not know (`unknown_manifest_key`), or a doc field does not match the doc's authoring type: a field the type does not have, a missing required field, or a value outside the field's type. It also warns on what no reader can serve: a prop listed twice (`duplicate_prop`), a `propDescriptions` key that names no documented prop (`unknown_translated_prop`), a section with no content (`empty_section`), two sections of a topic with one key (`duplicate_section_key`), or a `.doc.zh.mjs` or `.doc.dense.mjs` overlay beside no topic file (`orphan_doc_overlay`). Since 0.7.3 it also lists, from source and without failing, what the package tells apps to import that they cannot: a component's import (the doc's `import`, or the one the CLI derives) or a template's public import whose subpath package.json `exports` does not declare (`component_import_not_exported`, `template_import_not_exported`) or that names another package (`component_import_other_package`); an example that imports an undeclared subpath (`example_import_not_exported`); a template that imports a path outside the templates root (`template_import_outside_root`) or a path its package or Core does not export (`template_private_import`). It lists the same way a component's import whose module does not export the component (`component_import_missing_name`), an example or a template that imports a name its package does not export (`example_import_missing_name`, `template_import_missing_name`), and a template source with no default export (`template_no_default_export`). Each is a note, printed with its fix, that fails `--strict` from the next minor; an import it cannot judge, such as an `exports` target not built yet or a deep path into a `dist/` not built yet, is listed under `publicImports` as not checked. It checks docs with your installed `typescript`, or, where that is missing or has no JavaScript compiler API (TypeScript 7), with an installed `@typescript/typescript6`; without either, it prints `[skip] Docs not type-checked`. With no `astryx.integration.mjs` it prints a hint and exits 0",
36
36
  ],
37
37
  [
38
- '`astryx doctor integration components`',
38
+ '`{@command doctor integration components}`',
39
39
  "No component name clashes with a Core component, each `replaces` names one Core component, and each component doc's props match the component's TypeScript props",
40
40
  'Core is not installed (`core_not_found`). In a package that declares the CLI range that turns replacement on, a `replaces` target is missing (`missing_component_replacement_target`) or invalid (`invalid_component_replacement`), or two components replace one Core component (`ambiguous_component_replacement`)',
41
41
  'A name clashes with Core, a component sets `replaces` in a package without that range (`inactive_component_replacement`, plus any missing, invalid, or duplicate `replaces` reported as a warning), or a documented prop differs from the code: it is missing there (`not_in_code`), the doc omits a prop the package declares (`not_in_doc`), or its `required` (`required_mismatch`), type (`type_mismatch`), or literal `default` (`default_mismatch`) disagrees, or a `{@link}` in a component doc names no doc (`invalid_doc_graph`). It reads props with your installed `typescript`; without it, it prints `[skip] Props not compared`',
42
42
  ],
43
43
  [
44
- '`astryx doctor integration templates`',
44
+ '`{@command doctor integration templates}`',
45
45
  'Each `replaces` names a Core template of the same type',
46
46
  'A `replaces` target is missing (`missing_template_replacement_target`) or of the other type (`invalid_template_replacement`), or two templates replace one id (`ambiguous_template_replacement`)',
47
47
  'A template id matches a Core id without `replaces`',
48
48
  ],
49
49
  [
50
- '`astryx doctor integration docs`',
50
+ '`{@command doctor integration docs}`',
51
51
  'Your docs tree, every link, topic names against Core, passages two topics repeat word for word, padding phrases and low-density topics, and written pointers to docs',
52
52
  'A topic takes a Core topic name without `replaces` or `extends`, a doc is invalid (`invalid_doc`), or a namespace or placement fails, which hides the doc (`invalid_doc_graph`)',
53
- 'A link names no doc (`invalid_doc_graph`), two topics repeat a passage word for word (`copied_passage`), prose pads with a listed phrase or falls under the density floor (`doc_fluff`), or prose, a description or summary, or the text of a component doc writes `astryx docs <name>` where a link would be checked (`stray_doc_pointer`)',
53
+ 'A link names no doc (`invalid_doc_graph`), two topics repeat a passage word for word (`copied_passage`), prose pads with a listed phrase or falls under the density floor (`doc_fluff`), or prose, a description or summary, or the text of a component doc writes `{@command docs <name>}` where a link would be checked (`stray_doc_pointer`)',
54
54
  ],
55
55
  [
56
- '`astryx integration check`',
56
+ '`{@command integration check}`',
57
57
  'Everything the four `doctor integration` checks prove, in one command, for your build',
58
58
  'Any of the four would exit 1 on its own. With `--strict`, also any warning, and any check that did not run, such as a package with no `astryx.integration.*`',
59
59
  'Anything the four warn about, unless you pass `--strict`',
60
60
  ],
61
61
  [
62
- '`astryx integration verify`',
62
+ '`{@command integration verify}`',
63
63
  'The packed package holds every file, shows the same contributions, resolves every public import, and declares the CLI it needs',
64
64
  'Anything `validate` fails on, no manifest, a file left out of the `.tgz` file, an import that does not resolve, or a missing CLI peer',
65
65
  'Anything `validate` warns about, or a component sets `replaces` and the package does not declare the CLI range that turns it on (`component_replaces_needs_cli`)',
@@ -68,7 +68,7 @@ export const docs = {
68
68
  },
69
69
  {
70
70
  type: 'prose',
71
- text: 'Pass a package name, such as `astryx doctor integration validate @acme/astryx-widgets`, to check an installed copy from an app instead. To fix a props finding, see {@link generic:check-the-props}.',
71
+ text: 'Pass a package name, such as `{@command doctor integration validate @acme/astryx-widgets}`, to check an installed copy from an app instead. To fix a props finding, see {@link generic:check-the-props}.',
72
72
  },
73
73
  ],
74
74
  },
@@ -93,7 +93,7 @@ export const docs = {
93
93
  '`--strict` also exits 1 on any warning and on any check that did not run. Without it, warnings keep exit code 0: use that while you fix the warnings a package already has.',
94
94
  'Its exit codes and JSON are a contract for your build: a new check, or a new failure code, joins only in a minor release that names it in the release notes. A patch can still ship a Core component, template, or CLI topic whose name conflicts with one of yours.',
95
95
  '`integration verify` runs `validate` but none of the other three: a Core name clash, a `replaces` that names no Core template, a topic that takes a Core name, or a hidden guide still passes it. Run both before you publish: `astryx integration check --strict && astryx integration verify`.',
96
- 'Bare `astryx doctor` in the package also warns about a doc section over 32 KB, which no check above measures.',
96
+ 'Bare `{@command doctor}` in the package also warns about a doc section over 32 KB, which no check above measures.',
97
97
  ],
98
98
  },
99
99
  ],
@@ -110,7 +110,7 @@ export const docs = {
110
110
  type: 'list',
111
111
  style: 'ordered',
112
112
  items: [
113
- 'It runs `npm pack` the way `npm publish` would, including your `prepack` script.',
113
+ 'It runs `{@pm-only npm "the tarball the registry receives" pack}` the way `{@pm-only npm "npm is the client the registry publishes from" publish}` would, including your `prepack` script.',
114
114
  'It checks that every contribution file is in the `.tgz` file. A root missing from `files` fails with `Add "templates" to "files" in package.json.`',
115
115
  'It lists the components, templates, themes, docs, and codemods the temporary app sees, and compares them with your source.',
116
116
  "It resolves each component's `import`, and each template's public import, the way Node does, and checks that the module exports the component under the name its doc documents, or a default export for a template. A type-only export does not count.",
@@ -83,7 +83,7 @@ export const docs = {
83
83
  content: [
84
84
  {
85
85
  type: 'prose',
86
- text: 'Some agent machines keep the home folder across restarts but not system folders. A global install there disappears on restart while the agent guide in the home folder stays, so agents are told to run a global astryx command that is gone; the guide says to run the command that installed the CLI, such as `npm i -g @astryxdesign/cli`, when that command is not found, and `astryx doctor` names the same step. To keep the CLI across restarts, install it into a folder in your home and put its `bin` folder on your PATH, as for a permission error ({@link generic:install-once}), or run that command when the machine starts.',
86
+ text: 'Some agent machines keep the home folder across restarts but not system folders. A global install there disappears on restart while the agent guide in the home folder stays, so agents are told to run a global astryx command that is gone; the guide says to run the command that installed the CLI, such as `{@pm install @astryxdesign/cli --global}`, when that command is not found, and `astryx doctor` names the same step. To keep the CLI across restarts, install it into a folder in your home and put its `bin` folder on your PATH, as for a permission error ({@link generic:install-once}), or run that command when the machine starts.',
87
87
  },
88
88
  ],
89
89
  },
@@ -29,7 +29,7 @@ export const docs = {
29
29
  content: [
30
30
  {
31
31
  type: 'prose',
32
- text: "The CLI ends most answers with the next command to run: a hint, an error fix, a Doctor fix, or a doc example. By default each one starts with a command that reaches the release that answered: what the app's package manager runs, such as `pnpm exec astryx` or `yarn astryx`, when the app's own CLI answered, and otherwise the CLI package pinned to that release, such as `npx @astryxdesign/cli@0.7.2`.",
32
+ text: "The CLI ends most answers with the next command to run: a hint, an error fix, a Doctor fix, or a doc example. By default each one starts with a command that reaches the release that answered: what the app's package manager runs, such as `pnpm exec astryx` or `yarn astryx`, when the app's own CLI answered, and otherwise the CLI package pinned to that release, such as `{@pm dlx @astryxdesign/cli@0.7.2}`.",
33
33
  },
34
34
  {
35
35
  type: 'prose',
@@ -79,7 +79,7 @@ export default {
79
79
  items: [
80
80
  'The `cliCommand` of the packages the app loads, when they name one command.',
81
81
  'The command a host tool names when it runs the CLI for the app. Nothing in a plain project names one.',
82
- "A command that reaches the release that answered: what the app's package manager runs when the app's own CLI answered, such as `pnpm exec astryx` or `yarn astryx`; `astryx` outside a project when the CLI installed for the computer answered; otherwise the CLI package pinned to that release, such as `npx @astryxdesign/cli@0.7.2` (see {@link generic:who-answers}).",
82
+ "A command that reaches the release that answered: what the app's package manager runs when the app's own CLI answered, such as `pnpm exec astryx` or `yarn astryx`; `astryx` outside a project when the CLI installed for the computer answered; otherwise the CLI package pinned to that release, such as `{@pm dlx @astryxdesign/cli@0.7.2}` (see {@link generic:who-answers}).",
83
83
  ],
84
84
  },
85
85
  {
@@ -94,7 +94,7 @@ export default {
94
94
  content: [
95
95
  {
96
96
  type: 'prose',
97
- text: "If two packages an app loads set different commands, the CLI uses neither: it prints commands with what the app's package manager runs, even when a host tool named a command. `astryx doctor` warns in its `cli-command` check and names both packages:",
97
+ text: "If two packages an app loads set different commands, the CLI uses neither: it prints commands with what the app's package manager runs, even when a host tool named a command. `{@command doctor}` warns in its `cli-command` check and names both packages:",
98
98
  },
99
99
  {
100
100
  type: 'code',
@@ -115,16 +115,16 @@ message: Loaded integrations declare different CLI commands: @acme/astryx-widget
115
115
  content: [
116
116
  {
117
117
  type: 'prose',
118
- text: 'An invalid value is ignored, and the rest of your manifest still loads. `astryx doctor integration validate` reports it as `invalid_cli_command`. A valid `cliCommand` is one line of plain text without spaces at either end, at most 120 characters.',
118
+ text: 'An invalid value is ignored, and the rest of your manifest still loads. `{@command doctor integration validate}` reports it as `invalid_cli_command`. A valid `cliCommand` is one line of plain text without spaces at either end, at most 120 characters.',
119
119
  },
120
120
  {
121
121
  type: 'prose',
122
- text: "In an app that installs your package, `astryx doctor` passes its `cli-command` check and names your package as the one that set the command. A CLI released before this field reports `cliCommand` as an unknown key and prints the package manager's command.",
122
+ text: "In an app that installs your package, `{@command doctor}` passes its `cli-command` check and names your package as the one that set the command. A CLI released before this field reports `cliCommand` as an unknown key and prints the package manager's command.",
123
123
  },
124
124
  {
125
125
  type: 'code',
126
126
  lang: 'bash',
127
- code: 'astryx doctor integration validate\n# In an app that installs the package\nastryx doctor',
127
+ code: '{@command doctor integration validate}\n# In an app that installs the package\n{@command doctor}',
128
128
  },
129
129
  ],
130
130
  },