@astryxdesign/cli 0.7.4-canary.ccdb1b8 → 0.7.4-canary.d648470

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 (656) 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 +117 -8
  7. package/api/discover/detail/item/item.mjs +31 -0
  8. package/api/discover/discover.mjs +26 -8
  9. package/api/discover/discover.type.d.mts +25 -0
  10. package/api/discover/discover.type.mjs +15 -1
  11. package/api/docs/_adapter.mjs +37 -10
  12. package/api/docs/docOverlays.test.mjs +2 -1
  13. package/api/docs/docs.d.mts +16 -6
  14. package/api/docs/docs.mjs +55 -6
  15. package/api/docs/docs.type.d.mts +10 -0
  16. package/api/docs/docs.type.mjs +4 -0
  17. package/api/docs/guide-route-targets.test.mjs +4 -0
  18. package/api/docs/integration-tree.test.mjs +22 -0
  19. package/api/docs/integrationDocs.test.mjs +85 -0
  20. package/api/docs/node/node.mjs +20 -3
  21. package/api/doctor/doctor.d.mts +34 -2
  22. package/api/doctor/doctor.doc.mjs +1 -1
  23. package/api/doctor/doctor.mjs +109 -11
  24. package/api/doctor/doctor.test.mjs +7 -3
  25. package/api/doctor/icon-sets.test.mjs +111 -0
  26. package/api/hook/list/list.d.mts +1 -1
  27. package/api/icon/_adapter.d.mts +54 -0
  28. package/api/icon/_adapter.mjs +173 -0
  29. package/api/icon/_authoring.d.mts +42 -0
  30. package/api/icon/_authoring.mjs +628 -0
  31. package/api/icon/_options.d.mts +15 -0
  32. package/api/icon/_options.mjs +41 -0
  33. package/api/icon/_records.d.mts +47 -0
  34. package/api/icon/_records.mjs +69 -0
  35. package/api/icon/add/add.d.mts +14 -0
  36. package/api/icon/add/add.mjs +416 -0
  37. package/api/icon/detail/detail.d.mts +12 -0
  38. package/api/icon/detail/detail.mjs +88 -0
  39. package/api/icon/error-codes.test.mjs +334 -0
  40. package/api/icon/experimental-markers.test.mjs +93 -0
  41. package/api/icon/icon.d.mts +16 -0
  42. package/api/icon/icon.doc.d.mts +9 -0
  43. package/api/icon/icon.doc.mjs +91 -0
  44. package/api/icon/icon.mjs +96 -0
  45. package/api/icon/icon.test.mjs +374 -0
  46. package/api/icon/icon.type.d.mts +430 -0
  47. package/api/icon/icon.type.mjs +290 -0
  48. package/api/icon/iconAdd.doc.d.mts +6 -0
  49. package/api/icon/iconAdd.doc.mjs +146 -0
  50. package/api/icon/iconMap.doc.d.mts +6 -0
  51. package/api/icon/iconMap.doc.mjs +92 -0
  52. package/api/icon/iconNewDefinition.doc.d.mts +5 -0
  53. package/api/icon/iconNewDefinition.doc.mjs +101 -0
  54. package/api/icon/iconNewSet.doc.d.mts +5 -0
  55. package/api/icon/iconNewSet.doc.mjs +103 -0
  56. package/api/icon/iconUse.doc.d.mts +6 -0
  57. package/api/icon/iconUse.doc.mjs +70 -0
  58. package/api/icon/list/list.d.mts +11 -0
  59. package/api/icon/list/list.mjs +64 -0
  60. package/api/icon/map/map.d.mts +14 -0
  61. package/api/icon/map/map.mjs +122 -0
  62. package/api/icon/new-definition/new-definition.d.mts +12 -0
  63. package/api/icon/new-definition/new-definition.mjs +32 -0
  64. package/api/icon/new-definition/new-definition.undo.test.mjs +97 -0
  65. package/api/icon/new-set/new-set.d.mts +12 -0
  66. package/api/icon/new-set/new-set.mjs +32 -0
  67. package/api/icon/new-set/new-set.test.mjs +348 -0
  68. package/api/icon/search/search.d.mts +14 -0
  69. package/api/icon/search/search.mjs +50 -0
  70. package/api/icon/use/use.d.mts +15 -0
  71. package/api/icon/use/use.mjs +101 -0
  72. package/api/index.d.mts +6 -0
  73. package/api/index.mjs +6 -0
  74. package/api/integration/_adapter.d.mts +12 -2
  75. package/api/integration/_adapter.mjs +23 -4
  76. package/api/integration/add-contribution.d.mts +3 -12
  77. package/api/integration/add-contribution.mjs +7 -97
  78. package/api/integration/add-contribution.test.mjs +14 -10
  79. package/api/integration/add-helpers.d.mts +46 -0
  80. package/api/integration/add-helpers.mjs +106 -4
  81. package/api/integration/authoring-checks.test.mjs +131 -1
  82. package/api/integration/check/check.d.mts +4 -1
  83. package/api/integration/check/check.mjs +34 -4
  84. package/api/integration/check/check.test.mjs +49 -0
  85. package/api/integration/doc-stability.test.mjs +216 -0
  86. package/api/integration/example-checks.no-npm.test.mjs +140 -0
  87. package/api/integration/example-checks.test.mjs +776 -0
  88. package/api/integration/integration-authoring.type.d.mts +1 -0
  89. package/api/integration/integration-authoring.type.mjs +1 -0
  90. package/api/integration/integration-check.type.d.mts +8 -0
  91. package/api/integration/integration-check.type.mjs +4 -1
  92. package/api/integration/integrationCheck.doc.mjs +8 -1
  93. package/api/integration/integrationDocConflicts.doc.mjs +1 -1
  94. package/api/integration/pack-check.mjs +36 -0
  95. package/api/integration/pack-check.test.mjs +30 -0
  96. package/api/integration/pack-check.type.d.mts +9 -1
  97. package/api/integration/pack-check.type.mjs +4 -1
  98. package/api/integration/validate-installed-icon-sets.test.mjs +67 -0
  99. package/api/integration/validate-integration-case-disk.test.mjs +14 -2
  100. package/api/integration/validate-integration-gaps.test.mjs +43 -19
  101. package/api/integration/validate-integration.d.mts +11 -1
  102. package/api/integration/validate-integration.mjs +116 -20
  103. package/api/integration/validate-integration.type.d.mts +94 -4
  104. package/api/integration/validate-integration.type.mjs +53 -5
  105. package/api/integration/validateIntegration.doc.mjs +1 -1
  106. package/api/search/ORDERING.md +1 -1
  107. package/api/search/_candidate-score.d.mts +8 -3
  108. package/api/search/_candidate-score.mjs +26 -2
  109. package/api/search/_gather-components.mjs +48 -1
  110. package/api/search/_gather-docs.mjs +40 -1
  111. package/api/search/_lexical.d.mts +12 -0
  112. package/api/search/_lexical.mjs +3 -0
  113. package/api/search/_order.d.mts +1 -1
  114. package/api/search/_order.mjs +75 -6
  115. package/api/search/_priority.mjs +5 -3
  116. package/api/search/_score.mjs +2 -1
  117. package/api/search/search.doc.mjs +1 -1
  118. package/api/search/search.family-word.test.mjs +146 -0
  119. package/api/search/search.mjs +28 -0
  120. package/api/search/search.tie-order.test.mjs +39 -0
  121. package/api/template/_adapter.d.mts +13 -0
  122. package/api/template/_adapter.mjs +36 -0
  123. package/api/template/copy/copy.d.mts +5 -2
  124. package/api/template/copy/copy.mjs +19 -3
  125. package/api/template/show/show.d.mts +6 -1
  126. package/api/template/show/show.mjs +11 -2
  127. package/api/template/template-suffix.test.mjs +26 -0
  128. package/api/template/template.mjs +6 -2
  129. package/api/template/template.type.d.mts +53 -0
  130. package/api/template/template.type.mjs +15 -0
  131. package/api/theme/themeBuild.doc.mjs +1 -1
  132. package/api/theme/themeList.doc.mjs +1 -1
  133. package/api/theme/themeTargets.doc.mjs +1 -1
  134. package/api/upgrade/_adapter.d.mts +10 -2
  135. package/api/upgrade/_adapter.mjs +23 -4
  136. package/api/upgrade/run/run.mjs +4 -1
  137. package/assets/docs/author-a-theme.doc.mjs +15 -15
  138. package/assets/docs/getting-started.doc.mjs +16 -16
  139. package/assets/docs/is-my-code-good.doc.mjs +6 -6
  140. package/assets/docs/styling-overview.doc.mjs +5 -5
  141. package/assets/docs/theme.doc.mjs +3 -3
  142. package/assets/docs/tree/add-a-component.doc.mjs +1 -1
  143. package/assets/docs/tree/add-a-theme.doc.mjs +2 -2
  144. package/assets/docs/tree/add-a-topic.doc.mjs +6 -6
  145. package/assets/docs/tree/agent-guidance.doc.mjs +5 -5
  146. package/assets/docs/tree/authoring.doc.mjs +2 -2
  147. package/assets/docs/tree/block-template.doc.mjs +1 -1
  148. package/assets/docs/tree/check-the-props.doc.mjs +3 -3
  149. package/assets/docs/tree/check-your-docs.doc.mjs +6 -6
  150. package/assets/docs/tree/checks.doc.mjs +11 -11
  151. package/assets/docs/tree/ci-and-containers.doc.mjs +1 -1
  152. package/assets/docs/tree/cli-command.doc.mjs +6 -6
  153. package/assets/docs/tree/codemods.doc.mjs +7 -7
  154. package/assets/docs/tree/component-family.doc.mjs +1 -1
  155. package/assets/docs/tree/component-imports.doc.mjs +2 -2
  156. package/assets/docs/tree/component-lookups.doc.mjs +4 -4
  157. package/assets/docs/tree/computer-agent-guide.doc.mjs +7 -7
  158. package/assets/docs/tree/computer-integrations.doc.mjs +5 -5
  159. package/assets/docs/tree/debug-and-gap-reports.doc.mjs +3 -3
  160. package/assets/docs/tree/define-the-theme.doc.mjs +1 -1
  161. package/assets/docs/tree/describe-the-component.doc.mjs +1 -1
  162. package/assets/docs/tree/doc-syntax.doc.mjs +219 -0
  163. package/assets/docs/tree/experimental.doc.mjs +31 -0
  164. package/assets/docs/tree/export-template-assets.doc.mjs +1 -1
  165. package/assets/docs/tree/extend-or-replace.doc.mjs +3 -3
  166. package/assets/docs/tree/font-setup.doc.mjs +1 -1
  167. package/assets/docs/tree/generate-a-palette.doc.mjs +1 -1
  168. package/assets/docs/tree/global-integrations.doc.mjs +11 -11
  169. package/assets/docs/tree/global.doc.mjs +2 -2
  170. package/assets/docs/tree/host-entry.doc.mjs +1 -1
  171. package/assets/docs/tree/icon-definitions.doc.mjs +48 -0
  172. package/assets/docs/tree/icon-set-files.doc.mjs +33 -0
  173. package/assets/docs/tree/icon-sets.doc.mjs +377 -0
  174. package/assets/docs/tree/install-once.doc.mjs +4 -4
  175. package/assets/docs/tree/layout.doc.mjs +1 -1
  176. package/assets/docs/tree/links.doc.mjs +2 -2
  177. package/assets/docs/tree/migration-setup.doc.mjs +15 -15
  178. package/assets/docs/tree/other-libraries.doc.mjs +1 -1
  179. package/assets/docs/tree/page-template.doc.mjs +2 -2
  180. package/assets/docs/tree/problems.doc.mjs +8 -8
  181. package/assets/docs/tree/project-global-or-both.doc.mjs +2 -2
  182. package/assets/docs/tree/publishing.doc.mjs +7 -7
  183. package/assets/docs/tree/quick-start.doc.mjs +9 -9
  184. package/assets/docs/tree/reference.doc.mjs +2 -2
  185. package/assets/docs/tree/replace-a-core-component.doc.mjs +1 -1
  186. package/assets/docs/tree/replace-a-core-template.doc.mjs +4 -4
  187. package/assets/docs/tree/scaffold.doc.mjs +1 -1
  188. package/assets/docs/tree/sections-and-placement.doc.mjs +3 -3
  189. package/assets/docs/tree/see-it-in-an-app.doc.mjs +3 -3
  190. package/assets/docs/tree/short-and-findable.doc.mjs +3 -3
  191. package/assets/docs/tree/single-component.doc.mjs +4 -4
  192. package/assets/docs/tree/start-a-template.doc.mjs +5 -5
  193. package/assets/docs/tree/styling-advanced.doc.mjs +1 -1
  194. package/assets/docs/tree/tailwind.doc.mjs +1 -1
  195. package/assets/docs/tree/test-in-an-app.doc.mjs +5 -5
  196. package/assets/docs/tree/test-template-in-app.doc.mjs +6 -6
  197. package/assets/docs/tree/tokens-and-setup.doc.mjs +1 -1
  198. package/assets/docs/tree/troubleshooting.doc.mjs +24 -20
  199. package/assets/docs/tree/uninstall.doc.mjs +2 -2
  200. package/assets/docs/tree/updates.doc.mjs +1 -1
  201. package/assets/docs/tree/upgrading.doc.mjs +3 -3
  202. package/assets/docs/tree/use-a-theme-in-an-app.doc.mjs +1 -1
  203. package/assets/docs/tree/verify-packed-template.doc.mjs +3 -3
  204. package/assets/docs/tree/versioning.doc.mjs +4 -4
  205. package/assets/docs/tree/who-answers.doc.mjs +4 -4
  206. package/assets/docs/tree/write-the-template-file.doc.mjs +4 -4
  207. package/assets/docs/use-a-theme.doc.mjs +10 -10
  208. package/assets/docs/use-integrations.doc.mjs +1 -1
  209. package/assets/docs/working-with-ai.doc.mjs +15 -15
  210. package/assets/icons/definitions/activity.doc.mjs +9 -0
  211. package/assets/icons/definitions/add.doc.mjs +9 -0
  212. package/assets/icons/definitions/adjustments.doc.mjs +9 -0
  213. package/assets/icons/definitions/announcement.doc.mjs +9 -0
  214. package/assets/icons/definitions/apps.doc.mjs +9 -0
  215. package/assets/icons/definitions/archive.doc.mjs +9 -0
  216. package/assets/icons/definitions/arrowDown.doc.mjs +10 -0
  217. package/assets/icons/definitions/arrowLeft.doc.mjs +9 -0
  218. package/assets/icons/definitions/arrowRight.doc.mjs +9 -0
  219. package/assets/icons/definitions/arrowUp.doc.mjs +10 -0
  220. package/assets/icons/definitions/arrowsUpDown.doc.mjs +10 -0
  221. package/assets/icons/definitions/attach.doc.mjs +9 -0
  222. package/assets/icons/definitions/audio.doc.mjs +9 -0
  223. package/assets/icons/definitions/bank.doc.mjs +9 -0
  224. package/assets/icons/definitions/bold.doc.mjs +9 -0
  225. package/assets/icons/definitions/bolt.doc.mjs +9 -0
  226. package/assets/icons/definitions/book.doc.mjs +9 -0
  227. package/assets/icons/definitions/bookmark.doc.mjs +9 -0
  228. package/assets/icons/definitions/bug.doc.mjs +9 -0
  229. package/assets/icons/definitions/building.doc.mjs +9 -0
  230. package/assets/icons/definitions/calendar.doc.mjs +10 -0
  231. package/assets/icons/definitions/cart.doc.mjs +9 -0
  232. package/assets/icons/definitions/chart.doc.mjs +9 -0
  233. package/assets/icons/definitions/check.doc.mjs +10 -0
  234. package/assets/icons/definitions/checkDouble.doc.mjs +10 -0
  235. package/assets/icons/definitions/chevronDown.doc.mjs +10 -0
  236. package/assets/icons/definitions/chevronLeft.doc.mjs +10 -0
  237. package/assets/icons/definitions/chevronRight.doc.mjs +10 -0
  238. package/assets/icons/definitions/chevronUp.doc.mjs +9 -0
  239. package/assets/icons/definitions/chevronsLeft.doc.mjs +10 -0
  240. package/assets/icons/definitions/chevronsRight.doc.mjs +10 -0
  241. package/assets/icons/definitions/click.doc.mjs +9 -0
  242. package/assets/icons/definitions/clipboard.doc.mjs +10 -0
  243. package/assets/icons/definitions/clock.doc.mjs +10 -0
  244. package/assets/icons/definitions/close.doc.mjs +10 -0
  245. package/assets/icons/definitions/code.doc.mjs +9 -0
  246. package/assets/icons/definitions/collapse.doc.mjs +9 -0
  247. package/assets/icons/definitions/compose.doc.mjs +9 -0
  248. package/assets/icons/definitions/conversation.doc.mjs +9 -0
  249. package/assets/icons/definitions/copy.doc.mjs +10 -0
  250. package/assets/icons/definitions/creditCard.doc.mjs +9 -0
  251. package/assets/icons/definitions/database.doc.mjs +9 -0
  252. package/assets/icons/definitions/delete.doc.mjs +9 -0
  253. package/assets/icons/definitions/desktop.doc.mjs +9 -0
  254. package/assets/icons/definitions/discount.doc.mjs +9 -0
  255. package/assets/icons/definitions/document.doc.mjs +9 -0
  256. package/assets/icons/definitions/download.doc.mjs +9 -0
  257. package/assets/icons/definitions/drag.doc.mjs +9 -0
  258. package/assets/icons/definitions/edit.doc.mjs +9 -0
  259. package/assets/icons/definitions/emoji.doc.mjs +9 -0
  260. package/assets/icons/definitions/error.doc.mjs +10 -0
  261. package/assets/icons/definitions/expand.doc.mjs +9 -0
  262. package/assets/icons/definitions/experiment.doc.mjs +9 -0
  263. package/assets/icons/definitions/externalLink.doc.mjs +10 -0
  264. package/assets/icons/definitions/eye.doc.mjs +9 -0
  265. package/assets/icons/definitions/eyeSlash.doc.mjs +10 -0
  266. package/assets/icons/definitions/file.doc.mjs +9 -0
  267. package/assets/icons/definitions/flag.doc.mjs +9 -0
  268. package/assets/icons/definitions/folder.doc.mjs +9 -0
  269. package/assets/icons/definitions/folderAdd.doc.mjs +9 -0
  270. package/assets/icons/definitions/funnel.doc.mjs +10 -0
  271. package/assets/icons/definitions/globe.doc.mjs +9 -0
  272. package/assets/icons/definitions/gridView.doc.mjs +9 -0
  273. package/assets/icons/definitions/heart.doc.mjs +9 -0
  274. package/assets/icons/definitions/home.doc.mjs +9 -0
  275. package/assets/icons/definitions/image.doc.mjs +9 -0
  276. package/assets/icons/definitions/inbox.doc.mjs +9 -0
  277. package/assets/icons/definitions/info.doc.mjs +10 -0
  278. package/assets/icons/definitions/italic.doc.mjs +9 -0
  279. package/assets/icons/definitions/key.doc.mjs +9 -0
  280. package/assets/icons/definitions/language.doc.mjs +9 -0
  281. package/assets/icons/definitions/lightbulb.doc.mjs +9 -0
  282. package/assets/icons/definitions/link.doc.mjs +9 -0
  283. package/assets/icons/definitions/list.doc.mjs +9 -0
  284. package/assets/icons/definitions/location.doc.mjs +9 -0
  285. package/assets/icons/definitions/lock.doc.mjs +9 -0
  286. package/assets/icons/definitions/mail.doc.mjs +9 -0
  287. package/assets/icons/definitions/mention.doc.mjs +9 -0
  288. package/assets/icons/definitions/menu.doc.mjs +10 -0
  289. package/assets/icons/definitions/message.doc.mjs +9 -0
  290. package/assets/icons/definitions/microphone.doc.mjs +10 -0
  291. package/assets/icons/definitions/mobile.doc.mjs +9 -0
  292. package/assets/icons/definitions/money.doc.mjs +9 -0
  293. package/assets/icons/definitions/moon.doc.mjs +9 -0
  294. package/assets/icons/definitions/moreHorizontal.doc.mjs +10 -0
  295. package/assets/icons/definitions/notification.doc.mjs +9 -0
  296. package/assets/icons/definitions/notificationActive.doc.mjs +9 -0
  297. package/assets/icons/definitions/notificationOff.doc.mjs +9 -0
  298. package/assets/icons/definitions/package.doc.mjs +9 -0
  299. package/assets/icons/definitions/pause.doc.mjs +9 -0
  300. package/assets/icons/definitions/pin.doc.mjs +9 -0
  301. package/assets/icons/definitions/play.doc.mjs +9 -0
  302. package/assets/icons/definitions/raiseHand.doc.mjs +9 -0
  303. package/assets/icons/definitions/redo.doc.mjs +9 -0
  304. package/assets/icons/definitions/refresh.doc.mjs +9 -0
  305. package/assets/icons/definitions/remove.doc.mjs +9 -0
  306. package/assets/icons/definitions/rocket.doc.mjs +9 -0
  307. package/assets/icons/definitions/save.doc.mjs +9 -0
  308. package/assets/icons/definitions/search.doc.mjs +10 -0
  309. package/assets/icons/definitions/send.doc.mjs +9 -0
  310. package/assets/icons/definitions/server.doc.mjs +9 -0
  311. package/assets/icons/definitions/settings.doc.mjs +9 -0
  312. package/assets/icons/definitions/share.doc.mjs +9 -0
  313. package/assets/icons/definitions/shield.doc.mjs +9 -0
  314. package/assets/icons/definitions/shipping.doc.mjs +9 -0
  315. package/assets/icons/definitions/shoppingBag.doc.mjs +9 -0
  316. package/assets/icons/definitions/sparkles.doc.mjs +9 -0
  317. package/assets/icons/definitions/star.doc.mjs +9 -0
  318. package/assets/icons/definitions/stop.doc.mjs +10 -0
  319. package/assets/icons/definitions/strikethrough.doc.mjs +9 -0
  320. package/assets/icons/definitions/success.doc.mjs +10 -0
  321. package/assets/icons/definitions/sun.doc.mjs +9 -0
  322. package/assets/icons/definitions/swatch.doc.mjs +9 -0
  323. package/assets/icons/definitions/table.doc.mjs +9 -0
  324. package/assets/icons/definitions/tag.doc.mjs +9 -0
  325. package/assets/icons/definitions/thumbsDown.doc.mjs +9 -0
  326. package/assets/icons/definitions/thumbsUp.doc.mjs +9 -0
  327. package/assets/icons/definitions/trendDown.doc.mjs +9 -0
  328. package/assets/icons/definitions/trendUp.doc.mjs +9 -0
  329. package/assets/icons/definitions/underline.doc.mjs +9 -0
  330. package/assets/icons/definitions/undo.doc.mjs +9 -0
  331. package/assets/icons/definitions/unlock.doc.mjs +9 -0
  332. package/assets/icons/definitions/upload.doc.mjs +10 -0
  333. package/assets/icons/definitions/user.doc.mjs +9 -0
  334. package/assets/icons/definitions/userAdd.doc.mjs +9 -0
  335. package/assets/icons/definitions/userCircle.doc.mjs +9 -0
  336. package/assets/icons/definitions/users.doc.mjs +9 -0
  337. package/assets/icons/definitions/video.doc.mjs +9 -0
  338. package/assets/icons/definitions/viewColumns.doc.mjs +10 -0
  339. package/assets/icons/definitions/warning.doc.mjs +10 -0
  340. package/assets/icons/definitions/work.doc.mjs +9 -0
  341. package/assets/icons/definitions/wrench.doc.mjs +10 -0
  342. package/assets/templates/blocks/components/AppShell/AppShellShowcase.doc.mjs +16 -3
  343. package/assets/templates/blocks/components/AppShell/AppShellSideNavOnly.doc.mjs +16 -1
  344. package/assets/templates/blocks/components/AppShell/AppShellTopNavOnly.doc.mjs +9 -1
  345. package/assets/templates/blocks/components/AppShell/AppShellTopNavWithSideNav.doc.mjs +17 -1
  346. package/assets/templates/blocks/components/AppShell/AppShellWithBanner.doc.mjs +18 -1
  347. package/assets/templates/blocks/components/BaseTypeahead/BaseTypeaheadCustomSearch.doc.mjs +1 -0
  348. package/assets/templates/blocks/components/BottomSheet/BottomSheetSnapPoints.doc.mjs +8 -0
  349. package/assets/templates/blocks/components/BreadcrumbItem/BreadcrumbItemShowcase.doc.mjs +1 -0
  350. package/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsDeepHierarchy.doc.mjs +1 -0
  351. package/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsWithIcons.doc.mjs +1 -0
  352. package/assets/templates/blocks/components/Button/ButtonFloating.doc.mjs +1 -0
  353. package/assets/templates/blocks/components/Button/ButtonWithIcon.doc.mjs +6 -0
  354. package/assets/templates/blocks/components/ButtonGroup/ButtonGroupShowcase.doc.mjs +5 -0
  355. package/assets/templates/blocks/components/Center/CenterHorizontal.doc.mjs +8 -0
  356. package/assets/templates/blocks/components/Center/CenterInsideACard.doc.mjs +1 -0
  357. package/assets/templates/blocks/components/ChatComposer/ChatComposerFlat.doc.mjs +5 -0
  358. package/assets/templates/blocks/components/ChatComposer/ChatComposerFooterActions.doc.mjs +13 -1
  359. package/assets/templates/blocks/components/ChatComposer/ChatComposerFullFeatured.doc.mjs +17 -1
  360. package/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerShowcase.doc.mjs +1 -0
  361. package/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerWithProgress.doc.mjs +1 -0
  362. package/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataFooter.doc.mjs +15 -1
  363. package/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataShowcase.doc.mjs +15 -1
  364. package/assets/templates/blocks/components/ChatSendButton/ChatSendButtonCustomIcon.doc.mjs +6 -0
  365. package/assets/templates/blocks/components/ChatSendButton/ChatSendButtonShowcase.doc.mjs +1 -0
  366. package/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageStatusUpdates.doc.mjs +1 -0
  367. package/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageWithIcon.doc.mjs +6 -0
  368. package/assets/templates/blocks/components/CommandPaletteItem/CommandPaletteItemShowcase.doc.mjs +3 -2
  369. package/assets/templates/blocks/components/ContextMenu/ContextMenuBottomSheet.doc.mjs +6 -0
  370. package/assets/templates/blocks/components/DropdownMenu/DropdownMenuBottomSheet.doc.mjs +6 -0
  371. package/assets/templates/blocks/components/DropdownMenu/DropdownMenuNoChevron.doc.mjs +1 -0
  372. package/assets/templates/blocks/components/EmptyState/EmptyStateActions.doc.mjs +1 -0
  373. package/assets/templates/blocks/components/EmptyState/EmptyStateCompact.doc.mjs +1 -0
  374. package/assets/templates/blocks/components/EmptyState/EmptyStateContainer.doc.mjs +1 -0
  375. package/assets/templates/blocks/components/EmptyState/EmptyStateShowcase.doc.mjs +1 -0
  376. package/assets/templates/blocks/components/Hooks/useContainerRevealHookUsage.doc.mjs +1 -0
  377. package/assets/templates/blocks/components/Hooks/useKeyboardHintHookUsage.doc.mjs +10 -1
  378. package/assets/templates/blocks/components/HoverCard/HoverCardInteractiveContent.doc.mjs +1 -0
  379. package/assets/templates/blocks/components/HoverCard/HoverCardProfileHoverCard.doc.mjs +1 -0
  380. package/assets/templates/blocks/components/IconButton/IconButtonFloating.doc.mjs +1 -0
  381. package/assets/templates/blocks/components/Item/ItemDocumentTabs.doc.mjs +1 -0
  382. package/assets/templates/blocks/components/Item/ItemShowcase.doc.mjs +1 -0
  383. package/assets/templates/blocks/components/Item/ItemWithMetadata.doc.mjs +1 -1
  384. package/assets/templates/blocks/components/MetadataListItem/MetadataListItemBasic.doc.mjs +1 -1
  385. package/assets/templates/blocks/components/MobileNav/MobileNavBasicMobileNav.doc.mjs +7 -0
  386. package/assets/templates/blocks/components/MobileNav/MobileNavEndSideMobileNav.doc.mjs +1 -0
  387. package/assets/templates/blocks/components/MobileNav/MobileNavWithoutTitleMobileNav.doc.mjs +1 -0
  388. package/assets/templates/blocks/components/MoreMenu/MoreMenuBottomSheet.doc.mjs +6 -0
  389. package/assets/templates/blocks/components/MoreMenu/MoreMenuWithDividers.doc.mjs +5 -0
  390. package/assets/templates/blocks/components/MoreMenu/MoreMenuWithSections.doc.mjs +5 -0
  391. package/assets/templates/blocks/components/Pagination/PaginationDotsCarousel.doc.mjs +1 -0
  392. package/assets/templates/blocks/components/Popover/PopoverBottomSheetAlternative.doc.mjs +1 -0
  393. package/assets/templates/blocks/components/Section/SectionWashHighlight.doc.mjs +1 -0
  394. package/assets/templates/blocks/components/SegmentedControlItem/SegmentedControlItemBasic.doc.mjs +1 -1
  395. package/assets/templates/blocks/components/Selector/SelectorOptionDescriptions.doc.mjs +8 -1
  396. package/assets/templates/blocks/components/SelectorOption/SelectorOptionShowcase.doc.mjs +1 -0
  397. package/assets/templates/blocks/components/TextArea/TextAreaWithIcon.doc.mjs +1 -0
  398. package/assets/templates/blocks/components/TextInput/TextInputIcon.doc.mjs +1 -0
  399. package/assets/templates/blocks/components/TextInput/TextInputSearch.doc.mjs +1 -0
  400. package/assets/templates/blocks/components/ToggleButton/ToggleButtonColor.doc.mjs +11 -0
  401. package/assets/templates/blocks/components/ToggleButton/ToggleButtonGroup.doc.mjs +16 -1
  402. package/assets/templates/blocks/components/ToggleButton/ToggleButtonIconSwap.doc.mjs +6 -0
  403. package/assets/templates/blocks/components/ToggleButton/ToggleButtonLabel.doc.mjs +13 -1
  404. package/assets/templates/blocks/components/ToggleButton/ToggleButtonShowcase.doc.mjs +6 -0
  405. package/assets/templates/blocks/components/ToggleButton/ToggleButtonStates.doc.mjs +1 -0
  406. package/assets/templates/blocks/components/Token/TokenIcon.doc.mjs +6 -0
  407. package/assets/templates/blocks/components/Token/TokenShowcase.doc.mjs +1 -0
  408. package/assets/templates/blocks/components/Tokenizer/TokenizerIcon.doc.mjs +1 -0
  409. package/assets/templates/blocks/components/Toolbar/ToolbarBulkActions.doc.mjs +1 -0
  410. package/assets/templates/blocks/components/Toolbar/ToolbarCardHeader.doc.mjs +1 -0
  411. package/assets/templates/blocks/components/Toolbar/ToolbarSizes.doc.mjs +1 -0
  412. package/assets/templates/blocks/components/Toolbar/ToolbarTableFilter.doc.mjs +1 -0
  413. package/assets/templates/blocks/components/Toolbar/ToolbarThreeSlot.doc.mjs +1 -0
  414. package/assets/templates/blocks/components/Toolbar/ToolbarWithTabs.doc.mjs +1 -0
  415. package/assets/templates/blocks/components/TopNav/TopNavCenteredNavigation.doc.mjs +1 -0
  416. package/assets/templates/blocks/components/TopNav/TopNavEnterpriseDashboard.doc.mjs +6 -0
  417. package/assets/templates/blocks/components/TopNav/TopNavHoverMenu.doc.mjs +8 -0
  418. package/assets/templates/blocks/components/TopNav/TopNavMegaMenu.doc.mjs +8 -0
  419. package/assets/templates/blocks/components/TopNav/TopNavMultipleDropdowns.doc.mjs +5 -0
  420. package/assets/templates/blocks/components/TopNav/TopNavShowcase.doc.mjs +5 -0
  421. package/assets/templates/blocks/components/TopNav/TopNavWithLogo.doc.mjs +1 -0
  422. package/assets/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuBasic.doc.mjs +1 -0
  423. package/assets/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuShowcase.doc.mjs +13 -1
  424. package/assets/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemBasic.doc.mjs +1 -0
  425. package/assets/templates/blocks/components/TopNavMenu/TopNavMenuBasic.doc.mjs +1 -0
  426. package/assets/templates/blocks/components/TopNavMenu/TopNavMenuShowcase.doc.mjs +6 -0
  427. package/assets/templates/blocks/components/TreeList/TreeListFileTreeWithIcons.doc.mjs +1 -0
  428. package/assets/templates/blocks/components/TreeList/TreeListInteractiveSettings.doc.mjs +1 -0
  429. package/assets/templates/blocks/components/Typeahead/TypeaheadSearchField.doc.mjs +1 -0
  430. package/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenShowcase.doc.mjs +15 -1
  431. package/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenSupplementaryContext.doc.mjs +10 -2
  432. package/assets/templates/pages/ai-chat/template.doc.mjs +9 -0
  433. package/assets/templates/pages/ai-chat-landing/template.doc.mjs +11 -0
  434. package/assets/templates/pages/canvas-editor/template.doc.mjs +17 -0
  435. package/assets/templates/pages/centered-hero/template.doc.mjs +1 -0
  436. package/assets/templates/pages/checkout-wizard/template.doc.mjs +7 -0
  437. package/assets/templates/pages/contact-form/template.doc.mjs +5 -0
  438. package/assets/templates/pages/dashboard/template.doc.mjs +6 -0
  439. package/assets/templates/pages/dashboard-alert-rail/template.doc.mjs +8 -0
  440. package/assets/templates/pages/dashboard-cohort-funnel/template.doc.mjs +7 -0
  441. package/assets/templates/pages/dashboard-comparison/template.doc.mjs +8 -0
  442. package/assets/templates/pages/dashboard-composition/template.doc.mjs +1 -0
  443. package/assets/templates/pages/dashboard-progress/template.doc.mjs +7 -0
  444. package/assets/templates/pages/dashboard-scorecard/template.doc.mjs +7 -0
  445. package/assets/templates/pages/detail-page/template.doc.mjs +10 -0
  446. package/assets/templates/pages/documentation-design/template.doc.mjs +6 -1
  447. package/assets/templates/pages/documentation-technical/template.doc.mjs +5 -0
  448. package/assets/templates/pages/editor/template.doc.mjs +25 -0
  449. package/assets/templates/pages/file-explorer/template.doc.mjs +15 -0
  450. package/assets/templates/pages/form-wizard-inline/template.doc.mjs +1 -0
  451. package/assets/templates/pages/form-wizard-vertical/template.doc.mjs +12 -0
  452. package/assets/templates/pages/gallery-hero/template.doc.mjs +1 -0
  453. package/assets/templates/pages/ide/template.doc.mjs +5 -0
  454. package/assets/templates/pages/incident-console/template.doc.mjs +1 -0
  455. package/assets/templates/pages/kanban-board/template.doc.mjs +11 -0
  456. package/assets/templates/pages/library/template.doc.mjs +1 -0
  457. package/assets/templates/pages/login/template.doc.mjs +1 -0
  458. package/assets/templates/pages/login-card/template.doc.mjs +1 -0
  459. package/assets/templates/pages/login-split/template.doc.mjs +1 -0
  460. package/assets/templates/pages/login-sso/template.doc.mjs +1 -0
  461. package/assets/templates/pages/messaging-shell/template.doc.mjs +13 -0
  462. package/assets/templates/pages/payment-form/template.doc.mjs +6 -0
  463. package/assets/templates/pages/product-detail/template.doc.mjs +1 -0
  464. package/assets/templates/pages/product-gallery/template.doc.mjs +1 -0
  465. package/assets/templates/pages/settings/template.doc.mjs +1 -0
  466. package/assets/templates/pages/settings-dialog/template.doc.mjs +49 -0
  467. package/assets/templates/pages/settings-sidebar/template.doc.mjs +16 -0
  468. package/assets/templates/pages/shell-nav/template.doc.mjs +6 -0
  469. package/assets/templates/pages/shell-side-nav/template.doc.mjs +11 -0
  470. package/assets/templates/pages/shell-top-nav/template.doc.mjs +16 -0
  471. package/assets/templates/pages/table-collapsible/template.doc.mjs +5 -0
  472. package/assets/templates/pages/table-comparison/template.doc.mjs +12 -0
  473. package/assets/templates/pages/table-filter/template.doc.mjs +19 -0
  474. package/assets/templates/pages/table-grouped/template.doc.mjs +13 -0
  475. package/assets/templates/pages/table-inbox/template.doc.mjs +17 -0
  476. package/assets/templates/pages/table-page/template.doc.mjs +1 -0
  477. package/assets/templates/pages/table-tree/template.doc.mjs +12 -0
  478. package/assets/templates/pages/theme-showcase/template.doc.mjs +19 -0
  479. package/assets/templates/pages/work-item-detail/template.doc.mjs +13 -0
  480. package/authoring/codemod/codemod.doc.mjs +1 -1
  481. package/authoring/config/config.doc.mjs +12 -4
  482. package/authoring/config/parse.d.mts +1 -0
  483. package/authoring/config/parse.mjs +1 -0
  484. package/authoring/config/type.ts +8 -0
  485. package/authoring/debug/parse.d.mts +1 -1
  486. package/authoring/discover/discover.doc.mjs +1 -1
  487. package/authoring/discover/parse.d.mts +13 -3
  488. package/authoring/discover/parse.mjs +57 -4
  489. package/authoring/discover/parse.test.mjs +34 -0
  490. package/authoring/discover/type.ts +22 -2
  491. package/authoring/doctypes/_schema.d.mts +19 -0
  492. package/authoring/doctypes/_schema.mjs +5 -0
  493. package/authoring/doctypes/base/graph-fields.doc.mjs +7 -1
  494. package/authoring/doctypes/base/type.ts +10 -1
  495. package/authoring/doctypes/doc-stability-types.test.mjs +91 -0
  496. package/authoring/doctypes/enum/type.ts +4 -0
  497. package/authoring/doctypes/icon-definition/icon-definition.doc.d.mts +9 -0
  498. package/authoring/doctypes/icon-definition/icon-definition.doc.mjs +89 -0
  499. package/authoring/doctypes/icon-definition/parse.d.mts +40 -0
  500. package/authoring/doctypes/icon-definition/parse.mjs +89 -0
  501. package/authoring/doctypes/icon-definition/parse.test.mjs +78 -0
  502. package/authoring/doctypes/icon-definition/type.ts +55 -0
  503. package/authoring/doctypes/icon-set/icon-names.d.mts +14 -0
  504. package/authoring/doctypes/icon-set/icon-names.mjs +44 -0
  505. package/authoring/doctypes/icon-set/icon-names.test.mjs +26 -0
  506. package/authoring/doctypes/icon-set/icon-set-data.doc.d.mts +10 -0
  507. package/authoring/doctypes/icon-set/icon-set-data.doc.mjs +169 -0
  508. package/authoring/doctypes/icon-set/icon-set.doc.d.mts +9 -0
  509. package/authoring/doctypes/icon-set/icon-set.doc.mjs +90 -0
  510. package/authoring/doctypes/icon-set/parse.d.mts +105 -0
  511. package/authoring/doctypes/icon-set/parse.mjs +322 -0
  512. package/authoring/doctypes/icon-set/parse.test.mjs +179 -0
  513. package/authoring/doctypes/icon-set/type.ts +182 -0
  514. package/authoring/doctypes/load-contract.test.mjs +17 -4
  515. package/authoring/doctypes/namespace/namespace.doc.mjs +7 -0
  516. package/authoring/doctypes/namespace/type.ts +7 -0
  517. package/authoring/doctypes/parse.d.mts +6 -2
  518. package/authoring/doctypes/parse.mjs +10 -2
  519. package/authoring/doctypes/schema/type.ts +4 -0
  520. package/authoring/doctypes/template/parse.d.mts +4 -0
  521. package/authoring/doctypes/template/parse.mjs +11 -0
  522. package/authoring/doctypes/template/template.doc.mjs +7 -0
  523. package/authoring/doctypes/template/type.ts +10 -0
  524. package/authoring/doctypes/types.ts +3 -1
  525. package/authoring/gap-report/gap-report.doc.mjs +1 -1
  526. package/authoring/identity/type.ts +11 -3
  527. package/authoring/index.d.mts +2 -0
  528. package/authoring/index.d.ts +15 -0
  529. package/authoring/index.mjs +5 -1
  530. package/authoring/integration/integration.doc.mjs +23 -6
  531. package/authoring/integration/schema.d.mts +6 -0
  532. package/authoring/integration/schema.mjs +4 -0
  533. package/authoring/integration/type.ts +8 -0
  534. package/clients/cli/commands/discover.icon-sets.test.mjs +133 -0
  535. package/clients/cli/commands/discover.mjs +3 -0
  536. package/clients/cli/commands/docs.doc.mjs +1 -1
  537. package/clients/cli/commands/docs.mjs +23 -6
  538. package/clients/cli/commands/doctor-integration-docs.doc.mjs +1 -1
  539. package/clients/cli/commands/doctor-integration.test.mjs +38 -0
  540. package/clients/cli/commands/doctor.doc.mjs +1 -1
  541. package/clients/cli/commands/doctor.mjs +167 -17
  542. package/clients/cli/commands/experimental/icon.mjs +462 -0
  543. package/clients/cli/commands/experimental/index.mjs +43 -0
  544. package/clients/cli/commands/experimental-icon-add.doc.mjs +105 -0
  545. package/clients/cli/commands/experimental-icon-map.doc.mjs +57 -0
  546. package/clients/cli/commands/experimental-icon-new-definition.doc.mjs +72 -0
  547. package/clients/cli/commands/experimental-icon-new-set.doc.mjs +76 -0
  548. package/clients/cli/commands/experimental-icon-use.doc.mjs +42 -0
  549. package/clients/cli/commands/experimental-icon.doc.mjs +68 -0
  550. package/clients/cli/commands/experimental.doc.mjs +28 -0
  551. package/clients/cli/commands/icon-authoring.test.mjs +1035 -0
  552. package/clients/cli/commands/icon-sets-guide.test.mjs +186 -0
  553. package/clients/cli/commands/icon.test.mjs +96 -0
  554. package/clients/cli/commands/integration-check.doc.mjs +11 -0
  555. package/clients/cli/commands/integration-check.test.mjs +36 -3
  556. package/clients/cli/commands/integration-pack.doc.mjs +1 -1
  557. package/clients/cli/commands/integration-verify.doc.mjs +1 -1
  558. package/clients/cli/commands/integration.mjs +38 -4
  559. package/clients/cli/commands/template.icons.test.mjs +132 -0
  560. package/clients/cli/commands/template.mjs +36 -2
  561. package/clients/cli/commands/text-json-parity.test.mjs +51 -0
  562. package/clients/cli/commands/theme-targets.doc.mjs +1 -1
  563. package/clients/cli/commands/upgrade.doc.mjs +2 -2
  564. package/clients/cli/formatters/index.mjs +8 -1
  565. package/clients/cli/formatters/index.test.mjs +15 -0
  566. package/clients/cli/index.mjs +13 -0
  567. package/clients/cli/lib/define-command.mjs +9 -3
  568. package/foundation/agent-docs/agent-docs.mjs +11 -2
  569. package/foundation/agent-docs/agent-docs.test.mjs +46 -0
  570. package/foundation/config/config-writer.d.mts +27 -0
  571. package/foundation/config/config-writer.mjs +202 -0
  572. package/foundation/config/config-writer.test.mjs +84 -0
  573. package/foundation/config/project.d.mts +24 -0
  574. package/foundation/config/project.mjs +105 -3
  575. package/foundation/discovery/authoring-self-docs.d.mts +22 -1
  576. package/foundation/discovery/authoring-self-docs.mjs +69 -19
  577. package/foundation/discovery/authoring-self-docs.test.mjs +19 -3
  578. package/foundation/discovery/authoring-surface.mjs +13 -6
  579. package/foundation/discovery/cli-self-docs.d.mts +6 -0
  580. package/foundation/discovery/cli-self-docs.mjs +58 -6
  581. package/foundation/discovery/component-discovery.export-names.test.mjs +31 -0
  582. package/foundation/discovery/doc-stability.d.mts +32 -0
  583. package/foundation/discovery/doc-stability.mjs +100 -0
  584. package/foundation/discovery/doc-types.d.mts +2 -2
  585. package/foundation/discovery/doc-types.mjs +8 -3
  586. package/foundation/discovery/doc-types.test.mjs +30 -0
  587. package/foundation/discovery/docs-discovery.mjs +1 -0
  588. package/foundation/discovery/icon-definition-discovery.d.mts +59 -0
  589. package/foundation/discovery/icon-definition-discovery.mjs +117 -0
  590. package/foundation/discovery/icon-ranking.d.mts +113 -0
  591. package/foundation/discovery/icon-ranking.mjs +305 -0
  592. package/foundation/discovery/icon-set-checks.d.mts +142 -0
  593. package/foundation/discovery/icon-set-checks.mjs +742 -0
  594. package/foundation/discovery/icon-set-checks.test.mjs +905 -0
  595. package/foundation/discovery/icon-set-discovery.d.mts +229 -0
  596. package/foundation/discovery/icon-set-discovery.mjs +464 -0
  597. package/foundation/discovery/icon-set-discovery.test.mjs +320 -0
  598. package/foundation/discovery/icon-set-writer.d.mts +323 -0
  599. package/foundation/discovery/icon-set-writer.mjs +1181 -0
  600. package/foundation/discovery/integration-doc-files.mjs +17 -2
  601. package/foundation/discovery/integration-doc-files.test.mjs +29 -0
  602. package/foundation/discovery/module-exports.d.mts +122 -0
  603. package/foundation/discovery/module-exports.mjs +682 -11
  604. package/foundation/discovery/runner-allowlist.d.mts +2 -0
  605. package/foundation/discovery/runner-allowlist.mjs +4 -0
  606. package/foundation/discovery/runner-commands.d.mts +29 -13
  607. package/foundation/discovery/runner-commands.mjs +253 -17
  608. package/foundation/discovery/runner-commands.test.mjs +4 -1
  609. package/foundation/discovery/stray-pointers.mjs +11 -5
  610. package/foundation/discovery/stray-pointers.test.mjs +6 -0
  611. package/foundation/discovery/template-adapter.d.mts +5 -0
  612. package/foundation/discovery/template-adapter.mjs +17 -0
  613. package/foundation/discovery/template-icon-notes.d.mts +15 -0
  614. package/foundation/discovery/template-icon-notes.mjs +66 -0
  615. package/foundation/discovery/template-icons.d.mts +156 -0
  616. package/foundation/discovery/template-icons.mjs +712 -0
  617. package/foundation/discovery/template-icons.test.mjs +457 -0
  618. package/foundation/discovery/theme-discovery.d.mts +15 -0
  619. package/foundation/discovery/theme-discovery.mjs +137 -61
  620. package/foundation/doc-compiler/bundle.mjs +14 -0
  621. package/foundation/doc-compiler/compile.d.mts +1 -1
  622. package/foundation/doc-compiler/compile.mjs +10 -2
  623. package/foundation/doc-compiler/doc-loads.test.mjs +33 -0
  624. package/foundation/doc-compiler/doc-syntax.d.mts +194 -0
  625. package/foundation/doc-compiler/doc-syntax.mjs +739 -0
  626. package/foundation/doc-compiler/doc-syntax.test.mjs +383 -0
  627. package/foundation/doc-compiler/inputs.d.mts +2 -2
  628. package/foundation/doc-compiler/inputs.mjs +17 -1
  629. package/foundation/doc-compiler/inputs.test.mjs +1 -0
  630. package/foundation/doc-compiler/links.d.mts +13 -16
  631. package/foundation/doc-compiler/links.mjs +40 -7
  632. package/foundation/doc-compiler/lower-doc.test.mjs +1 -1
  633. package/foundation/doc-compiler/read.d.mts +2 -2
  634. package/foundation/doc-compiler/read.mjs +4 -4
  635. package/foundation/doc-compiler/tree.d.mts +21 -0
  636. package/foundation/doc-compiler/tree.mjs +77 -4
  637. package/foundation/doc-compiler/tree.test.mjs +34 -0
  638. package/foundation/env/package-manager.d.mts +18 -0
  639. package/foundation/env/package-manager.mjs +40 -0
  640. package/foundation/fs/paths.d.mts +3 -1
  641. package/foundation/fs/paths.mjs +8 -2
  642. package/foundation/identity/provider-identity.mjs +2 -0
  643. package/foundation/integrations/cli-requirement.d.mts +70 -0
  644. package/foundation/integrations/cli-requirement.mjs +116 -1
  645. package/foundation/integrations/cli-requirement.test.mjs +31 -2
  646. package/foundation/integrations/contribution-inventory.d.mts +12 -5
  647. package/foundation/integrations/contribution-inventory.mjs +66 -3
  648. package/foundation/integrations/integrations.d.mts +5 -0
  649. package/foundation/integrations/integrations.mjs +6 -2
  650. package/foundation/integrations/manifest-writer.d.mts +3 -0
  651. package/foundation/integrations/manifest-writer.mjs +51 -5
  652. package/foundation/integrations/manifest-writer.test.mjs +42 -0
  653. package/foundation/integrations/validate-contributions.d.mts +53 -0
  654. package/foundation/integrations/validate-contributions.mjs +791 -1
  655. package/foundation/response/response-types.doc.mjs +59 -2
  656. package/package.json +9 -9
@@ -36,10 +36,17 @@ import * as path from 'node:path';
36
36
  import {assertWithin} from '../../foundation/fs/path-safety.mjs';
37
37
  import {normalizeProviderId} from '../../foundation/identity/provider-identity.mjs';
38
38
  import {integrationDocTypes} from '../docs/_adapter.mjs';
39
+ import {
40
+ iconSetCoverage,
41
+ iconSetIssues,
42
+ } from '../../foundation/discovery/icon-set-checks.mjs';
43
+ import {olderCliNotes} from '../../foundation/discovery/doc-stability.mjs';
44
+ import {templateIconNotes} from '../../foundation/discovery/template-icon-notes.mjs';
39
45
  import {integrationDocConsistency} from '../../foundation/discovery/doc-consistency.mjs';
40
46
  import {
47
+ integrationDocCommands,
41
48
  integrationDocTargets,
42
- integrationRunnerCommands,
49
+ projectUsesIconSets,
43
50
  } from './_adapter.mjs';
44
51
  import {
45
52
  THEME_SLUG_RE,
@@ -62,6 +69,7 @@ import {
62
69
  // integration-warnings need them too, and foundation must not depend on api.
63
70
  import {
64
71
  blockComponentsCheck,
72
+ componentExamplesCheck,
65
73
  componentDocNamesCheck,
66
74
  INVALID_CLI_COMMAND,
67
75
  isListedIssue,
@@ -110,6 +118,9 @@ export {validateLoadedIntegration, isListedIssue};
110
118
  * may not fail `--strict` until the next (architecture:cli-surface INV35);
111
119
  * `integration verify` still fails on a package.json npm cannot pack.
112
120
  * @property {import('../../foundation/integrations/integrations.mjs').LoadedIntegration} [integration]
121
+ * @property {import('../../foundation/discovery/icon-set-checks.mjs').IconSetCoverage[]} [iconSets]
122
+ * Which definitions each icon set leaves unmapped (spec:AST-084 FR15).
123
+ * @property {import('../../foundation/discovery/doc-stability.mjs').OlderCliNote[]} [olderCliNotes]
113
124
  * @property {import('./validate-integration.type.mjs').PublicImportsReport} [publicImports]
114
125
  * what the public-import check could not judge
115
126
  */
@@ -298,15 +309,23 @@ async function findUnreachableContributionIssues(
298
309
  * Shared core for the local and installed entry points.
299
310
  * @param {string} packageDir
300
311
  * @param {{name: string, version?: string}} identity
301
- * @param {{scanUnreachable?: boolean, own?: boolean, cwd?: string}} [options]
312
+ * @param {{scanUnreachable?: boolean, own?: boolean, cwd?: string, iconSets?: boolean}} [options]
302
313
  * `own`: the package is the one being authored in the current folder;
303
- * `cwd`: the folder whose package manager an install command names
314
+ * `cwd`: the folder whose package manager an install command names;
315
+ * `iconSets`: read the experimental `experimental.iconSets` root (default
316
+ * true). Off, the root is not resolved or checked and `iconSets` is not
317
+ * filled, as in a CLI without icon sets.
304
318
  * @returns {Promise<ValidateResult>}
305
319
  */
306
320
  async function validateAtPackageDir(
307
321
  packageDir,
308
322
  identity,
309
- {scanUnreachable = false, own = false, cwd = packageDir} = {},
323
+ {
324
+ scanUnreachable = false,
325
+ own = false,
326
+ cwd = packageDir,
327
+ iconSets = true,
328
+ } = {},
310
329
  ) {
311
330
  /** @type {Issue[]} */
312
331
  const issues = [];
@@ -419,6 +438,9 @@ async function validateAtPackageDir(
419
438
  codemods: resolveRoot(manifest.codemods, 'codemods'),
420
439
  docs: resolveRoot(manifest.docs, 'docs'),
421
440
  themes: resolveRoot(manifest.themes, 'themes'),
441
+ iconSets: iconSets
442
+ ? resolveRoot(manifest.experimental?.iconSets, 'experimental.iconSets')
443
+ : undefined,
422
444
  issuesUrl: manifest.issuesUrl,
423
445
  agentDocs: manifest.agentDocs,
424
446
  cliCommand: manifest.cliCommand,
@@ -468,6 +490,16 @@ async function validateAtPackageDir(
468
490
  }
469
491
  if (loaded.themes && !rootProblem(loaded.themes))
470
492
  issues.push(...unreadThemeFolderIssues(packageDir, loaded));
493
+ // The icon-set checks (AST-084 FR15): data against descriptor, module
494
+ // exports, and theme map, all read statically.
495
+ if (loaded.iconSets && !rootProblem(loaded.iconSets)) {
496
+ /** @type {Map<string, import('../../foundation/discovery/icon-set-checks.mjs').IconSetUnchecked[]>} */
497
+ const unchecked = new Map();
498
+ issues.push(...iconSetIssues(packageDir, loaded, unchecked));
499
+ // Which definitions each set leaves unmapped, and what the checks could
500
+ // not judge: listed, never an issue.
501
+ result.iconSets = iconSetCoverage(loaded, unchecked);
502
+ }
471
503
  // What the docs say that no reader serves: a prop listed twice, an
472
504
  // overlay's text for a prop the doc lacks, an empty or unreachable section,
473
505
  // and an overlay of no topic.
@@ -489,8 +521,11 @@ async function validateAtPackageDir(
489
521
  const publicImports = await publicImportIssues(packageDir, loaded);
490
522
  issues.push(...publicImports.issues);
491
523
  // Each finding is a note until the next minor makes it a warning.
524
+ // Listed now, a warning from the next minor release: `next`.
492
525
  if (publicImports.notes.length > 0)
493
- (result.notes ??= []).push(...publicImports.notes);
526
+ (result.notes ??= []).push(
527
+ ...publicImports.notes.map(note => ({...note, next: true})),
528
+ );
494
529
  result.publicImports = publicImports.report;
495
530
  if (scanUnreachable) {
496
531
  issues.push(
@@ -501,6 +536,25 @@ async function validateAtPackageDir(
501
536
  )),
502
537
  );
503
538
  }
539
+ // Authoring only: a template or namespace doc that sets `stability` is
540
+ // dropped by a CLI before the release that reads it. Noted, never an issue.
541
+ if (scanUnreachable) {
542
+ /** @type {any} */
543
+ let pkg = {};
544
+ try {
545
+ pkg = JSON.parse(
546
+ fs.readFileSync(path.join(packageDir, 'package.json'), 'utf-8'),
547
+ );
548
+ } catch {
549
+ // package.json problems are reported by their own check.
550
+ }
551
+ const notes = await olderCliNotes(loaded, pkg, packageDir);
552
+ if (notes.length > 0) result.olderCliNotes = notes;
553
+ // Each template `icons` key the template's source never imports: a note
554
+ // with its fix, never an issue (spec:AST-084 FR10).
555
+ const iconNotes = await templateIconNotes(loaded, packageDir);
556
+ if (iconNotes.length > 0) (result.notes ??= []).push(...iconNotes);
557
+ }
504
558
 
505
559
  return result;
506
560
  }
@@ -648,9 +702,16 @@ function packageJsonFieldIssues(pkg, pkgJsonPath) {
648
702
  * at or above `cwd`, resolved the way the project loads it.
649
703
  * @param {string} spec package name
650
704
  * @param {string} [cwd]
705
+ * @param {{iconSets?: boolean}} [options] `iconSets`: check the package's
706
+ * experimental icon sets; by default only when the project at `cwd` sets
707
+ * `experimental.iconSet`
651
708
  * @returns {Promise<ValidateResult>}
652
709
  */
653
- export async function validateInstalledIntegration(spec, cwd = process.cwd()) {
710
+ export async function validateInstalledIntegration(
711
+ spec,
712
+ cwd = process.cwd(),
713
+ {iconSets} = {},
714
+ ) {
654
715
  // The resolver throws (path-safety guard) on a spec with path segments,
655
716
  // `..`, or an absolute path. Every other malformed input to this command
656
717
  // degrades into a diagnostic — so catch it here and return an issue instead
@@ -693,25 +754,28 @@ export async function validateInstalledIntegration(spec, cwd = process.cwd()) {
693
754
  return validateAtPackageDir(
694
755
  packageDir,
695
756
  {name: pkg.name ?? spec, version: pkg.version},
696
- {cwd},
757
+ {cwd, iconSets: iconSets ?? (await projectUsesIconSets(cwd))},
697
758
  );
698
759
  }
699
760
 
700
761
  /**
701
- * The runner-command notes for a package's topics: each Astryx command a topic
702
- * writes with a package runner, where the doc file is, and the bare command to
703
- * write.
762
+ * The doc-syntax notes for a package's topics: each command a topic writes
763
+ * with a runner (`runner_command`), for one package manager
764
+ * (`package_manager_command`), or bare (`plain_command`), and each token that
765
+ * does not parse (`doc_token`), with the file, line and what to write
766
+ * instead. The next minor release turns them into warnings: `next`.
704
767
  * @param {any} integration a loaded integration
705
- * @returns {Promise<Array<{code: string, message: string}>>}
768
+ * @returns {Promise<Array<{code: string, message: string, next: true}>>}
706
769
  */
707
- async function runnerCommandNotes(integration) {
770
+ async function docCommandNotes(integration) {
708
771
  const packageDir = integration.__packageDir;
709
- return (await integrationRunnerCommands(integration)).map(each => ({
710
- code: 'runner_command',
772
+ return (await integrationDocCommands(integration)).map(each => ({
773
+ code: each.code,
711
774
  message:
712
775
  typeof packageDir === 'string'
713
776
  ? `${path.relative(packageDir, each.file).split(path.sep).join('/')}: ${each.message}`
714
777
  : each.message,
778
+ next: true,
715
779
  }));
716
780
  }
717
781
 
@@ -801,27 +865,43 @@ export async function validateIntegration(pkg, options = {}) {
801
865
  await blockComponentsCheck(integration),
802
866
  ]
803
867
  : undefined;
868
+ // Components no block template shows.
869
+ const examples = integration
870
+ ? await componentExamplesCheck(integration)
871
+ : undefined;
804
872
  const docNames = names?.[0].report;
805
873
  const blockComponents = names?.[1].report;
806
874
  // Notes fail nothing: a malformed `cliCommand`, and the findings added
807
875
  // after the last minor release, each with its fix in the message, which
808
876
  // may not fail `--strict` until the next (architecture:cli-surface INV35):
809
877
  // the layout findings and the component names judged wrong.
878
+ // A finding the next minor release turns into a warning is marked `next`:
879
+ // `integration check --strict --next` fails on it today.
810
880
  const notes = result.found
811
881
  ? [
812
- ...(result.notes ?? []),
882
+ // A malformed cliCommand fails --strict from the next minor
883
+ // (spec:AST-081 FR5).
884
+ ...(result.notes ?? []).map(note =>
885
+ note.code === INVALID_CLI_COMMAND ? {...note, next: true} : note,
886
+ ),
813
887
  ...(result.listed ?? []).map(issue => ({
814
888
  code: issue.code,
815
889
  message: issue.message,
890
+ next: true,
816
891
  })),
817
- ...(names ?? []).flatMap(each => each.notes),
892
+ ...(names ?? []).flatMap(each =>
893
+ each.notes.map(note => ({...note, next: true})),
894
+ ),
895
+ ...(examples?.notes ?? []).map(note => ({...note, next: true})),
818
896
  ]
819
897
  : [];
820
- // Each Astryx command a topic writes with a package runner, as a
821
- // `runner_command` note with its fix, the same way.
898
+ // The doc-syntax findings in the package's topics, as `next` notes with
899
+ // their fixes, the same way.
822
900
  if (integration?.docs) {
823
- notes.push(...(await runnerCommandNotes(integration)));
824
- notes.push(...(await docTargetNotes(integration)));
901
+ notes.push(...(await docCommandNotes(integration)));
902
+ notes.push(
903
+ ...(await docTargetNotes(integration)).map(note => ({...note, next: true})),
904
+ );
825
905
  }
826
906
  return {
827
907
  type: 'integration.validate',
@@ -846,6 +926,22 @@ export async function validateIntegration(pkg, options = {}) {
846
926
  ...(docTypes ? {docTypes} : {}),
847
927
  ...(docNames ? {docNames} : {}),
848
928
  ...(blockComponents ? {blockComponents} : {}),
929
+ // Additive, never counted: present only for a package with icon sets,
930
+ // or with descriptors an older CLI drops.
931
+ ...(result.found && result.iconSets ? {iconSets: result.iconSets} : {}),
932
+ ...(result.found && result.olderCliNotes
933
+ ? {olderCliNotes: result.olderCliNotes}
934
+ : {}),
935
+ // Template assets npm could not place, when there are any.
936
+ ...(examples && examples.unchecked.length > 0
937
+ ? {
938
+ exampleAssets: {
939
+ status: 'checked',
940
+ findings: [],
941
+ unchecked: examples.unchecked,
942
+ },
943
+ }
944
+ : {}),
849
945
  // What the public-import check could not judge: listed, never failed on.
850
946
  ...(result.found && result.publicImports
851
947
  ? {publicImports: result.publicImports}
@@ -36,8 +36,17 @@ export type ValidateIntegrationOptions = {
36
36
  export type ValidateIntegrationResponse = {
37
37
  type: "integration.validate";
38
38
  /**
39
- * `notes`: information beside the issues that fails nothing, such as
40
- * `invalid_cli_command`, a `cliCommand` that was ignored as malformed;
39
+ * `iconSets` is experimental: it may change or be removed in a patch
40
+ * release.
41
+ * `notes`: information beside the issues. A note fails nothing by default;
42
+ * one with `next: true` counts as a warning under `integration check
43
+ * --next`, fails `integration check --strict --next`, and fails `--strict`
44
+ * from the next minor release. Notes include `invalid_cli_command`, a
45
+ * `cliCommand` that was ignored as malformed;
46
+ * `component_without_example`, `template_category`,
47
+ * `showcase_not_standalone` and `template_asset_not_packed`, what a
48
+ * package's examples need (next minor; a block's `alsoShowcaseFor` names
49
+ * count as shown);
41
50
  * `cli_peer_version`, the running CLI outside the package's
42
51
  * `@astryxdesign/cli` peer range; and
43
52
  * the package layout findings added after the last minor release, each with
@@ -50,8 +59,10 @@ export type ValidateIntegrationResponse = {
50
59
  * still pair (`source_without_component_doc`); `doc_name_mismatch` and
51
60
  * `unknown_block_component` (see `docNames` and `blockComponents`); and
52
61
  * since 0.7.3 each public-import finding; they become warnings in the next
53
- * minor release; and `runner_command`, an Astryx command a topic writes
54
- * with a package runner
62
+ * minor release; and, for the commands a topic writes, `runner_command`
63
+ * (written with a package runner), `plain_command` (written bare),
64
+ * `package_manager_command` (written for one package manager) and
65
+ * `doc_token` (a token that does not parse), each with the token to write
55
66
  */
56
67
  data: {
57
68
  validated: boolean;
@@ -61,11 +72,23 @@ export type ValidateIntegrationResponse = {
61
72
  notes?: Array<{
62
73
  code: string;
63
74
  message: string;
75
+ next?: boolean;
64
76
  }>;
65
77
  docTypes?: DocTypesReport;
66
78
  docNames?: DocNamesReport;
67
79
  blockComponents?: BlockComponentsReport;
80
+ exampleAssets?: {
81
+ status: "checked";
82
+ findings: [];
83
+ unchecked: Array<{
84
+ file: string;
85
+ asset: string;
86
+ reason: string;
87
+ }>;
88
+ };
68
89
  publicImports?: PublicImportsReport;
90
+ iconSets?: IconSetCoverage[];
91
+ olderCliNotes?: OlderCliNote[];
69
92
  };
70
93
  };
71
94
  /**
@@ -119,6 +142,73 @@ export type BlockComponentsReport = {
119
142
  reason: string;
120
143
  }>;
121
144
  };
145
+ /**
146
+ * Experimental (spec:AST-084 FR15): for a package that declares
147
+ * `experimental.iconSets`, which icon definitions each valid set leaves
148
+ * unmapped, and what the checks could not judge. Listed beside the issues and
149
+ * never counted: mapping an optional definition is optional, an item not
150
+ * checked is not a failure, and nothing here fails a check, even under
151
+ * `--strict`.
152
+ */
153
+ export type IconSetCoverage = {
154
+ /**
155
+ * The set's name.
156
+ */
157
+ set: string;
158
+ /**
159
+ * Astryx's optional (not built-in) definitions the set's `map` does not
160
+ * name. An unmapped built-in definition is an error issue instead.
161
+ */
162
+ unmappedDefinitions: Array<{
163
+ name: string;
164
+ description: string;
165
+ words: string[];
166
+ }>;
167
+ /**
168
+ * For each
169
+ * unmapped definition (built-in, optional, or the set's own), the icon
170
+ * whose whole id is the definition's name or one of its words, when one is.
171
+ */
172
+ suggestions: Array<{
173
+ definition: string;
174
+ icon: string;
175
+ }>;
176
+ /**
177
+ * What the checks could not judge, each with the reason: an icon export
178
+ * whose module is an `exports` target not built yet, or that the reader
179
+ * cannot prove either way (`icon`); an adapter export it cannot prove
180
+ * (`adapter`); and a theme map or theme-map entry it cannot read
181
+ * (`entry`).
182
+ */
183
+ unchecked: Array<{
184
+ icon?: string;
185
+ adapter?: string;
186
+ entry?: string;
187
+ reason: string;
188
+ }>;
189
+ };
190
+ /**
191
+ * A descriptor an older CLI drops: a page or block template, or a namespace
192
+ * doc, that sets `stability`, or a template that declares `icons`, while the
193
+ * package's `@astryxdesign/cli` peer range admits a release before 0.7.4.
194
+ * Listed beside the issues for the package being authored, and never counted
195
+ * or failing a check.
196
+ */
197
+ export type OlderCliNote = {
198
+ /**
199
+ * The descriptor, relative to the package.
200
+ */
201
+ file: string;
202
+ kind: "template" | "namespace";
203
+ /**
204
+ * The field an older CLI refuses.
205
+ */
206
+ field: "stability" | "icons";
207
+ /**
208
+ * What an older CLI does with it, and the fix.
209
+ */
210
+ message: string;
211
+ };
122
212
  /**
123
213
  * An import the public-import check could not judge.
124
214
  */
@@ -39,9 +39,18 @@
39
39
  * "healthy" — the two are otherwise byte-identical.
40
40
  * @typedef {object} ValidateIntegrationResponse
41
41
  * @property {'integration.validate'} type
42
- * @property {{validated: boolean, name: string | null, version: string | null, issues: import('../../foundation/integrations/issue').AstryxIntegrationIssue[], notes?: Array<{code: string, message: string}>, docTypes?: DocTypesReport, docNames?: DocNamesReport, blockComponents?: BlockComponentsReport, publicImports?: PublicImportsReport}} data
43
- * `notes`: information beside the issues that fails nothing, such as
44
- * `invalid_cli_command`, a `cliCommand` that was ignored as malformed;
42
+ * @property {{validated: boolean, name: string | null, version: string | null, issues: import('../../foundation/integrations/issue').AstryxIntegrationIssue[], notes?: Array<{code: string, message: string, next?: boolean}>, docTypes?: DocTypesReport, docNames?: DocNamesReport, blockComponents?: BlockComponentsReport, exampleAssets?: {status: 'checked', findings: [], unchecked: Array<{file: string, asset: string, reason: string}>}, publicImports?: PublicImportsReport, iconSets?: IconSetCoverage[], olderCliNotes?: OlderCliNote[]}} data
43
+ * `iconSets` is experimental: it may change or be removed in a patch
44
+ * release.
45
+ * `notes`: information beside the issues. A note fails nothing by default;
46
+ * one with `next: true` counts as a warning under `integration check
47
+ * --next`, fails `integration check --strict --next`, and fails `--strict`
48
+ * from the next minor release. Notes include `invalid_cli_command`, a
49
+ * `cliCommand` that was ignored as malformed;
50
+ * `component_without_example`, `template_category`,
51
+ * `showcase_not_standalone` and `template_asset_not_packed`, what a
52
+ * package's examples need (next minor; a block's `alsoShowcaseFor` names
53
+ * count as shown);
45
54
  * `cli_peer_version`, the running CLI outside the package's
46
55
  * `@astryxdesign/cli` peer range; and
47
56
  * the package layout findings added after the last minor release, each with
@@ -54,8 +63,10 @@
54
63
  * still pair (`source_without_component_doc`); `doc_name_mismatch` and
55
64
  * `unknown_block_component` (see `docNames` and `blockComponents`); and
56
65
  * since 0.7.3 each public-import finding; they become warnings in the next
57
- * minor release; and `runner_command`, an Astryx command a topic writes
58
- * with a package runner
66
+ * minor release; and, for the commands a topic writes, `runner_command`
67
+ * (written with a package runner), `plain_command` (written bare),
68
+ * `package_manager_command` (written for one package manager) and
69
+ * `doc_token` (a token that does not parse), each with the token to write
59
70
  */
60
71
 
61
72
  /**
@@ -101,6 +112,43 @@
101
112
  * @typedef {{status: 'checked', findings: [], unchecked: Array<{file: string, name: string, reason: string}>}} BlockComponentsReport
102
113
  */
103
114
 
115
+ /**
116
+ * Experimental (spec:AST-084 FR15): for a package that declares
117
+ * `experimental.iconSets`, which icon definitions each valid set leaves
118
+ * unmapped, and what the checks could not judge. Listed beside the issues and
119
+ * never counted: mapping an optional definition is optional, an item not
120
+ * checked is not a failure, and nothing here fails a check, even under
121
+ * `--strict`.
122
+ * @experimental May change or be removed in a patch release.
123
+ * @typedef {object} IconSetCoverage
124
+ * @property {string} set The set's name.
125
+ * @property {Array<{name: string, description: string, words: string[]}>} unmappedDefinitions
126
+ * Astryx's optional (not built-in) definitions the set's `map` does not
127
+ * name. An unmapped built-in definition is an error issue instead.
128
+ * @property {Array<{definition: string, icon: string}>} suggestions For each
129
+ * unmapped definition (built-in, optional, or the set's own), the icon
130
+ * whose whole id is the definition's name or one of its words, when one is.
131
+ * @property {Array<{icon?: string, adapter?: string, entry?: string, reason: string}>} unchecked
132
+ * What the checks could not judge, each with the reason: an icon export
133
+ * whose module is an `exports` target not built yet, or that the reader
134
+ * cannot prove either way (`icon`); an adapter export it cannot prove
135
+ * (`adapter`); and a theme map or theme-map entry it cannot read
136
+ * (`entry`).
137
+ */
138
+
139
+ /**
140
+ * A descriptor an older CLI drops: a page or block template, or a namespace
141
+ * doc, that sets `stability`, or a template that declares `icons`, while the
142
+ * package's `@astryxdesign/cli` peer range admits a release before 0.7.4.
143
+ * Listed beside the issues for the package being authored, and never counted
144
+ * or failing a check.
145
+ * @typedef {object} OlderCliNote
146
+ * @property {string} file The descriptor, relative to the package.
147
+ * @property {'template' | 'namespace'} kind
148
+ * @property {'stability' | 'icons'} field The field an older CLI refuses.
149
+ * @property {string} message What an older CLI does with it, and the fix.
150
+ */
151
+
104
152
  export {};
105
153
 
106
154
  /**
@@ -62,7 +62,7 @@ export const doc = {
62
62
  {
63
63
  type: 'integration.validate',
64
64
  description:
65
- "The result envelope: `data.validated`, false when nothing was validated — with no `package.json` at all, `data.issues` carries one `no_package` error-severity issue so the command exits 1; with a `package.json` but no integration manifest, `data.issues` is empty, which means \"not looked at\", not \"healthy\"; `data.name` and `data.version` of the validated package (both null when `data.validated` is false; `data.name` is `(local package)` when the local package.json has no readable name), plus `data.issues`, an AstryxIntegrationIssue[] of {code, severity: `warning` | `error`, message, fix?, file?, line?}: `fix` is the change that resolves the issue, and `file` and `line` where it is, relative to the package, when the check knows them; and `data.notes` when there are any: {code, message} information that fails nothing, such as `invalid_cli_command` for a `cliCommand` that was ignored as malformed and `cli_peer_version` when the running CLI is outside the `@astryxdesign/cli` peer range of the package, and the package layout findings added after the last minor release, each with its fix in the message: `duplicate_component_doc`, `symlinked_root`, `unreadable_file`, `invalid_package_json` (no `name` or `version`), `no_provider_id`, and `source_without_component_doc` for a doc whose file name differs from its source only in letter case where the two still pair; and `doc_name_mismatch` and `unknown_block_component` (see `docNames` and `blockComponents`); they become warnings in the next minor release. A `runner_command` note lists each Astryx command a topic writes with a package runner, with its file, line and the bare command to write. A `doc_target_not_found` note names a doc whose `replaces` or `extends` names no topic and no guide of the CLI's docs or the package's own (such as a namespace, with the guides below it), so it changes nothing unless an app also installs a package that provides it, and a `doc_section_unplaced` note a section whose `before` or `after` names no section of the topic or guide it extends, so it is added at the end, and a `duplicate_guide_replacement` note two docs of the package that replace one guide, of which only the last is read; they become warnings in the next minor release. When the manifest loads, `data.docTypes` holds the doc type check: `status` (`checked` | `skipped`), `reason` when skipped, `typescript`, `docs` (doc values checked), `findings` ({doc, line, export, type, field, problem: `unknown_field` | `missing_field` | `wrong_type`, severity: `warning`, message, fix}), `unchecked` ({doc, reason}: a doc that could not be fully checked, or a root its reader cannot read), and `fixtures` when the components or docs root holds test fixture docs under `__tests__`: how many, none of them checked. When the manifest loads, `data.docNames` lists the component doc names it could not judge: `status` (`checked`), `findings` (always empty; a doc name the module its import names provably does not export is a `doc_name_mismatch` note, with its fix in the message) and `unchecked` ({file, name, reason}: a doc whose `name` differs from the name it is listed under and whose source exports cannot all be read, such as a re-export from another package). When the manifest loads, `data.blockComponents` lists the component names templates give in `exampleFor` or `componentsUsed` that could not be judged: `status` (`checked`), `findings` (always empty; a name neither the package nor Core has, and the template does not import, is an `unknown_block_component` note, with its fix in the message) and `unchecked` ({file, name, reason}: a name the template may reach through anything other than named imports and re-exports from Core, React, StyleX, local helpers or the entry of the package itself, such as an import from another package, a default or namespace import, an alias of or member read off an imported binding, require() or a dynamic import(), or a local module that cannot be read, or any name Core would have to resolve when Core is not installed). Since 0.7.3 each import apps cannot use is a note in `data.notes`, its fix inside the message, listed only: it does not fail this command or `integration check --strict`, and fails `--strict` from the next minor release. The codes are `component_import_not_exported`, `component_import_other_package`, `component_import_missing_name`, `example_import_not_exported`, `example_import_missing_name`, `template_import_not_exported`, `template_import_outside_root`, `template_private_import`, `template_import_missing_name` and `template_no_default_export`. When the manifest loads, `data.publicImports` is `{status: 'checked', findings: [], unchecked}`: `unchecked` lists each import the check could not judge, as {file, specifier, reason}, the reason starting `example <label>:` for an import in a component example: an `exports` target not built yet; a module whose export list cannot be read in full (CommonJS, or a declaration file it cannot read); a root import in a package with no `exports` (the root module `main` names is not read); every name an import (other than a component doc's own component) names that its module does not export, while a TypeScript file in the package has a `declare module` block for a relative path or the package's own name or a subpath of it, which can add names to that module (a `declare module` in a comment, `declare global`, a wildcard such as `'*.css'`, and another package's name do not count; a file whose text has `declare module` but that cannot be parsed counts); the same for every such name when the package has more than 5,000 files to search for that block; a deep path into build output not built yet in a package with no `exports`; a template import of Core when `@astryxdesign/core` is not installed beside the package (a `packages/core` of the workspace under another name does not count); every import of the package's own name when package.json has no `name` or a `name` that is not a bare package name; one entry for the whole check when package.json cannot be read; and an import of a subpath whose `exports` entry has only a `types` target, unless it is `import type`, every binding is an inline `type`, or every name it imports is a type its types file declares: a value import of a name that file does not declare as a type, a namespace or side-effect import, or any import when the types file cannot be read (it may be build output). `integration check` counts the unchecked as not compared; they never fail it.",
65
+ "The result envelope: `data.validated`, false when nothing was validated — with no `package.json` at all, `data.issues` carries one `no_package` error-severity issue so the command exits 1; with a `package.json` but no integration manifest, `data.issues` is empty, which means \"not looked at\", not \"healthy\"; `data.name` and `data.version` of the validated package (both null when `data.validated` is false; `data.name` is `(local package)` when the local package.json has no readable name), plus `data.issues`, an AstryxIntegrationIssue[] of {code, severity: `warning` | `error`, message, fix?, file?, line?}: `fix` is the change that resolves the issue, and `file` and `line` where it is, relative to the package, when the check knows them; and `data.notes` when there are any: {code, message, next?} information beside the issues; a note fails nothing by default, and one with `next: true` counts as a warning under `integration check --next`, fails `integration check --strict --next`, and fails `--strict` from the next minor release. Notes include `invalid_cli_command` for a `cliCommand` that was ignored as malformed and `cli_peer_version` when the running CLI is outside the `@astryxdesign/cli` peer range of the package, and the package layout findings added after the last minor release, each with its fix in the message: `duplicate_component_doc`, `symlinked_root`, `unreadable_file`, `invalid_package_json` (no `name` or `version`), `no_provider_id`, and `source_without_component_doc` for a doc whose file name differs from its source only in letter case where the two still pair; and `doc_name_mismatch` and `unknown_block_component` (see `docNames` and `blockComponents`); they become warnings in the next minor release. For the commands a topic writes, `runner_command` (written with a package runner), `plain_command` (written bare), `package_manager_command` (written for one package manager) and `doc_token` (a token that does not parse) notes each give the file, line and the token to write. A `doc_target_not_found` note names a doc whose `replaces` or `extends` names no topic and no guide of the CLI's docs or the package's own (such as a namespace, with the guides below it), so it changes nothing unless an app also installs a package that provides it, and a `doc_section_unplaced` note a section whose `before` or `after` names no section of the topic or guide it extends, so it is added at the end, and a `duplicate_guide_replacement` note two docs of the package that replace one guide, of which only the last is read; they become warnings in the next minor release. When the manifest loads, `data.docTypes` holds the doc type check: `status` (`checked` | `skipped`), `reason` when skipped, `typescript`, `docs` (doc values checked), `findings` ({doc, line, export, type, field, problem: `unknown_field` | `missing_field` | `wrong_type`, severity: `warning`, message, fix}), `unchecked` ({doc, reason}: a doc that could not be fully checked, or a root its reader cannot read), and `fixtures` when the components or docs root holds test fixture docs under `__tests__`: how many, none of them checked. When the manifest loads, `data.docNames` lists the component doc names it could not judge: `status` (`checked`), `findings` (always empty; a doc name the module its import names provably does not export is a `doc_name_mismatch` note, with its fix in the message) and `unchecked` ({file, name, reason}: a doc whose `name` differs from the name it is listed under and whose source exports cannot all be read, such as a re-export from another package). When the manifest loads, `data.blockComponents` lists the component names templates give in `exampleFor` or `componentsUsed` that could not be judged: `status` (`checked`), `findings` (always empty; a name neither the package nor Core has, and the template does not import, is an `unknown_block_component` note, with its fix in the message) and `unchecked` ({file, name, reason}: a name the template may reach through anything other than named imports and re-exports from Core, React, StyleX, local helpers or the entry of the package itself, such as an import from another package, a default or namespace import, an alias of or member read off an imported binding, require() or a dynamic import(), or a local module that cannot be read, or any name Core would have to resolve when Core is not installed). Since 0.7.3 each import apps cannot use is a note in `data.notes`, its fix inside the message, listed only: it does not fail this command or `integration check --strict`, and fails `--strict` from the next minor release. The codes are `component_import_not_exported`, `component_import_other_package`, `component_import_missing_name`, `example_import_not_exported`, `example_import_missing_name`, `template_import_not_exported`, `template_import_outside_root`, `template_private_import`, `template_import_missing_name` and `template_no_default_export`. Since 0.7.4 the examples a package ships are checked the same way: `component_without_example` (a published component no block template shows with `exampleFor` and `isShowcase: true`, or names in `alsoShowcaseFor`), `template_category` (a template category written as a path, such as `components/X`), `showcase_not_standalone` (a showcase that imports server-only code or reads `process.env` past `NODE_ENV`) and `template_asset_not_packed` (a `new URL(…, import.meta.url)` asset that is missing, or that `npm pack --dry-run` leaves out of the package). When npm cannot list the package's files, an asset no `files` entry can reach is still a note, and any other is listed in `data.exampleAssets` (`{status: 'checked', findings: [], unchecked}`, present only when it lists any) as {file, asset, reason}; `integration check` counts them as not compared. When the manifest loads, `data.publicImports` is `{status: 'checked', findings: [], unchecked}`: `unchecked` lists each import the check could not judge, as {file, specifier, reason}, the reason starting `example <label>:` for an import in a component example: an `exports` target not built yet; a module whose export list cannot be read in full (CommonJS, or a declaration file it cannot read); a root import in a package with no `exports` (the root module `main` names is not read); every name an import (other than a component doc's own component) names that its module does not export, while a TypeScript file in the package has a `declare module` block for a relative path or the package's own name or a subpath of it, which can add names to that module (a `declare module` in a comment, `declare global`, a wildcard such as `'*.css'`, and another package's name do not count; a file whose text has `declare module` but that cannot be parsed counts); the same for every such name when the package has more than 5,000 files to search for that block; a deep path into build output not built yet in a package with no `exports`; a template import of Core when `@astryxdesign/core` is not installed beside the package (a `packages/core` of the workspace under another name does not count); every import of the package's own name when package.json has no `name` or a `name` that is not a bare package name; one entry for the whole check when package.json cannot be read; and an import of a subpath whose `exports` entry has only a `types` target, unless it is `import type`, every binding is an inline `type`, or every name it imports is a type its types file declares: a value import of a name that file does not declare as a type, a namespace or side-effect import, or any import when the types file cannot be read (it may be build output). `integration check` counts the unchecked as not compared; they never fail it. `data.olderCliNotes` ({file, kind: `template` | `namespace`, field, message}), for the local package, lists each descriptor field a release before 0.7.4 refuses while the package's CLI peer range admits one, such as `stability` on a template or namespace doc; it is present only when it has entries, is never counted, and never fails a check.",
66
66
  },
67
67
  ],
68
68
  examples: [
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## Rule
6
6
 
7
- `spec:AST-083` owns search's result order; this file describes the data that implements it. Inside one score band, a searcher's static weights decide the order. Matches with the same score move together as one block, in the lexical ranker's order, placed by the learned position of the block's first match: moving each one on its own breaks search's existing rules for tied matches. Matches never cross bands or kinds. There is no model runtime: every number is a plain static value read at load time.
7
+ `spec:AST-083` owns search's result order; this file describes the data that implements it. Inside one score band, a searcher's static weights decide the order. Matches with the same score move together as one block, placed by the learned position of the block's first match: moving each one on its own breaks search's existing rules for tied matches. Inside a block, the lexical ranker's order holds, except below the first result: there a block of one domain puts a part of the first result first (its name words start with the first result's; at most two parts lead across an answer), then the match whose matched words are rarer in the catalog. Matches never cross bands or kinds. There is no model runtime: every number is a plain static value read at load time.
8
8
 
9
9
  ## Files
10
10
 
@@ -17,11 +17,13 @@
17
17
  * @param {string} [candidate.description]
18
18
  * @param {string[]} [candidate.prose] - Extra free-text blobs (doc section text, best practices).
19
19
  * @param {string[]} [candidate.guidance] - Usage guidance (features, best practices) — scored a tier below description.
20
- * @param {{fuzzy?: boolean, joins?: boolean, part?: boolean}} [opts] - `fuzzy`: allow edit-distance (typo) matches. Default true; multi-word queries pass false. `joins`: read a spaced query joined into a name or keyword (default true); off when the query names an entry outright. `part`: the term is one word of a longer query, so a name's head word after single letters (Stack in VStack) does not count as a keyword hit for it.
20
+ * @param {string} [candidate._family] - The family whose doc lists the entry as a member.
21
+ * @param {number} [candidate._familyIndex] - The entry's place among that family's members.
22
+ * @param {{fuzzy?: boolean, joins?: boolean, part?: boolean, synonym?: boolean}} [opts] - `fuzzy`: allow edit-distance (typo) matches. Default true; multi-word queries pass false. `joins`: read a spaced query joined into a name or keyword (default true); off when the query names an entry outright. `part`: the term is one word of a longer query, so a name's head word after single letters (Stack in VStack) does not count as a keyword hit for it. `synonym`: the term stands in for a word of the query, so it names no family.
21
23
  * @returns {{score: number, reason: string, alias?: 'partial' | 'keyword'} | null}
22
24
  * `alias` marks a hit that read the query's words joined.
23
25
  */
24
- export function scoreCandidate(term: string, { name, aliases, domain, keywords, weakKeywords, description, prose, guidance, }: {
26
+ export function scoreCandidate(term: string, { name, aliases, domain, keywords, weakKeywords, description, prose, guidance, _family, _familyIndex, }: {
25
27
  name: string;
26
28
  aliases?: string[] | undefined;
27
29
  domain?: string | undefined;
@@ -30,10 +32,13 @@ export function scoreCandidate(term: string, { name, aliases, domain, keywords,
30
32
  description?: string | undefined;
31
33
  prose?: string[] | undefined;
32
34
  guidance?: string[] | undefined;
33
- }, { fuzzy, joins, part }?: {
35
+ _family?: string | undefined;
36
+ _familyIndex?: number | undefined;
37
+ }, { fuzzy, joins, part, synonym }?: {
34
38
  fuzzy?: boolean;
35
39
  joins?: boolean;
36
40
  part?: boolean;
41
+ synonym?: boolean;
37
42
  }): {
38
43
  score: number;
39
44
  reason: string;
@@ -91,6 +91,9 @@ function headOfLetters(term, name) {
91
91
  );
92
92
  }
93
93
 
94
+ /** How many of a family's members a query naming the family lists. */
95
+ const FAMILY_MEMBERS = 3;
96
+
94
97
  /**
95
98
  * Score a single candidate against the search term across name, keywords,
96
99
  * and prose signals. Returns the best (highest) score plus a human reason,
@@ -107,7 +110,9 @@ function headOfLetters(term, name) {
107
110
  * @param {string} [candidate.description]
108
111
  * @param {string[]} [candidate.prose] - Extra free-text blobs (doc section text, best practices).
109
112
  * @param {string[]} [candidate.guidance] - Usage guidance (features, best practices) — scored a tier below description.
110
- * @param {{fuzzy?: boolean, joins?: boolean, part?: boolean}} [opts] - `fuzzy`: allow edit-distance (typo) matches. Default true; multi-word queries pass false. `joins`: read a spaced query joined into a name or keyword (default true); off when the query names an entry outright. `part`: the term is one word of a longer query, so a name's head word after single letters (Stack in VStack) does not count as a keyword hit for it.
113
+ * @param {string} [candidate._family] - The family whose doc lists the entry as a member.
114
+ * @param {number} [candidate._familyIndex] - The entry's place among that family's members.
115
+ * @param {{fuzzy?: boolean, joins?: boolean, part?: boolean, synonym?: boolean}} [opts] - `fuzzy`: allow edit-distance (typo) matches. Default true; multi-word queries pass false. `joins`: read a spaced query joined into a name or keyword (default true); off when the query names an entry outright. `part`: the term is one word of a longer query, so a name's head word after single letters (Stack in VStack) does not count as a keyword hit for it. `synonym`: the term stands in for a word of the query, so it names no family.
111
116
  * @returns {{score: number, reason: string, alias?: 'partial' | 'keyword'} | null}
112
117
  * `alias` marks a hit that read the query's words joined.
113
118
  */
@@ -122,8 +127,10 @@ export function scoreCandidate(
122
127
  description = '',
123
128
  prose = [],
124
129
  guidance = [],
130
+ _family,
131
+ _familyIndex,
125
132
  },
126
- {fuzzy = true, joins = true, part = false} = {},
133
+ {fuzzy = true, joins = true, part = false, synonym = false} = {},
127
134
  ) {
128
135
  let best = 0;
129
136
  let reason = '';
@@ -213,6 +220,23 @@ export function scoreCandidate(
213
220
  }
214
221
  }
215
222
 
223
+ // ── Family signal ───────────────────────────────────────────────
224
+ // A query naming a family lists its first members as a keyword would: the
225
+ // family doc names them, whether or not a component of the family's name
226
+ // exists ("chat" lists ChatMessage and its siblings). Only the whole query
227
+ // names the family: a word of a longer query lifts no member.
228
+ if (
229
+ !part &&
230
+ !synonym &&
231
+ _family &&
232
+ (_familyIndex ?? Infinity) < FAMILY_MEMBERS &&
233
+ (term === _family.toLowerCase() ||
234
+ term === wordsOf(_family).join(' ') ||
235
+ term.replace(/\s+/g, '') === _family.toLowerCase())
236
+ ) {
237
+ consider(90, `member of ${_family}`);
238
+ }
239
+
216
240
  // ── Keyword signals ─────────────────────────────────────────────
217
241
  const termJoined = joined(term);
218
242
  for (const kw of keywords) {