@astryxdesign/cli 0.7.4-canary.faa934f → 0.7.4

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 (674) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/README.md +81 -80
  3. package/api/component/_adapter.mjs +4 -3
  4. package/api/component/component.mjs +13 -6
  5. package/api/component/doc-links.test.mjs +33 -0
  6. package/api/discover/_adapter.d.mts +49 -1
  7. package/api/discover/_adapter.mjs +117 -8
  8. package/api/discover/detail/item/item.mjs +31 -0
  9. package/api/discover/discover.mjs +26 -8
  10. package/api/discover/discover.type.d.mts +25 -0
  11. package/api/discover/discover.type.mjs +15 -1
  12. package/api/docs/_adapter.d.mts +80 -0
  13. package/api/docs/_adapter.mjs +285 -15
  14. package/api/docs/detail/detail.mjs +8 -0
  15. package/api/docs/docOverlays.test.mjs +2 -1
  16. package/api/docs/docs.d.mts +16 -6
  17. package/api/docs/docs.doc.mjs +1 -1
  18. package/api/docs/docs.mjs +55 -6
  19. package/api/docs/docs.type.d.mts +38 -2
  20. package/api/docs/docs.type.mjs +17 -3
  21. package/api/docs/guide-route-targets.test.mjs +1002 -0
  22. package/api/docs/index/index.mjs +9 -0
  23. package/api/docs/integration-tree.test.mjs +22 -0
  24. package/api/docs/integrationDocs.test.mjs +85 -0
  25. package/api/docs/list/list.mjs +7 -1
  26. package/api/docs/node/node.mjs +29 -4
  27. package/api/docs/reference-blocks.test.mjs +1 -1
  28. package/api/doctor/doctor.d.mts +34 -2
  29. package/api/doctor/doctor.doc.mjs +1 -1
  30. package/api/doctor/doctor.mjs +109 -11
  31. package/api/doctor/doctor.test.mjs +7 -3
  32. package/api/doctor/icon-sets.test.mjs +111 -0
  33. package/api/hook/list/list.d.mts +1 -1
  34. package/api/icon/_adapter.d.mts +54 -0
  35. package/api/icon/_adapter.mjs +173 -0
  36. package/api/icon/_authoring.d.mts +42 -0
  37. package/api/icon/_authoring.mjs +628 -0
  38. package/api/icon/_options.d.mts +15 -0
  39. package/api/icon/_options.mjs +41 -0
  40. package/api/icon/_records.d.mts +47 -0
  41. package/api/icon/_records.mjs +69 -0
  42. package/api/icon/add/add.d.mts +14 -0
  43. package/api/icon/add/add.mjs +416 -0
  44. package/api/icon/detail/detail.d.mts +12 -0
  45. package/api/icon/detail/detail.mjs +88 -0
  46. package/api/icon/error-codes.test.mjs +334 -0
  47. package/api/icon/experimental-markers.test.mjs +93 -0
  48. package/api/icon/icon.d.mts +16 -0
  49. package/api/icon/icon.doc.d.mts +9 -0
  50. package/api/icon/icon.doc.mjs +91 -0
  51. package/api/icon/icon.mjs +96 -0
  52. package/api/icon/icon.test.mjs +374 -0
  53. package/api/icon/icon.type.d.mts +430 -0
  54. package/api/icon/icon.type.mjs +290 -0
  55. package/api/icon/iconAdd.doc.d.mts +6 -0
  56. package/api/icon/iconAdd.doc.mjs +146 -0
  57. package/api/icon/iconMap.doc.d.mts +6 -0
  58. package/api/icon/iconMap.doc.mjs +92 -0
  59. package/api/icon/iconNewDefinition.doc.d.mts +5 -0
  60. package/api/icon/iconNewDefinition.doc.mjs +101 -0
  61. package/api/icon/iconNewSet.doc.d.mts +5 -0
  62. package/api/icon/iconNewSet.doc.mjs +103 -0
  63. package/api/icon/iconUse.doc.d.mts +6 -0
  64. package/api/icon/iconUse.doc.mjs +70 -0
  65. package/api/icon/list/list.d.mts +11 -0
  66. package/api/icon/list/list.mjs +64 -0
  67. package/api/icon/map/map.d.mts +14 -0
  68. package/api/icon/map/map.mjs +122 -0
  69. package/api/icon/new-definition/new-definition.d.mts +12 -0
  70. package/api/icon/new-definition/new-definition.mjs +32 -0
  71. package/api/icon/new-definition/new-definition.undo.test.mjs +97 -0
  72. package/api/icon/new-set/new-set.d.mts +12 -0
  73. package/api/icon/new-set/new-set.mjs +32 -0
  74. package/api/icon/new-set/new-set.test.mjs +348 -0
  75. package/api/icon/search/search.d.mts +14 -0
  76. package/api/icon/search/search.mjs +50 -0
  77. package/api/icon/use/use.d.mts +15 -0
  78. package/api/icon/use/use.mjs +101 -0
  79. package/api/index.d.mts +6 -0
  80. package/api/index.mjs +6 -0
  81. package/api/integration/_adapter.d.mts +20 -2
  82. package/api/integration/_adapter.mjs +48 -4
  83. package/api/integration/add-contribution.d.mts +3 -12
  84. package/api/integration/add-contribution.mjs +7 -97
  85. package/api/integration/add-contribution.test.mjs +14 -10
  86. package/api/integration/add-helpers.d.mts +46 -0
  87. package/api/integration/add-helpers.mjs +106 -4
  88. package/api/integration/authoring-checks.mjs +29 -2
  89. package/api/integration/authoring-checks.test.mjs +131 -1
  90. package/api/integration/check/check.d.mts +4 -1
  91. package/api/integration/check/check.mjs +34 -4
  92. package/api/integration/check/check.test.mjs +49 -0
  93. package/api/integration/doc-stability.test.mjs +216 -0
  94. package/api/integration/example-checks.no-npm.test.mjs +140 -0
  95. package/api/integration/example-checks.test.mjs +776 -0
  96. package/api/integration/integration-authoring.type.d.mts +1 -0
  97. package/api/integration/integration-authoring.type.mjs +1 -0
  98. package/api/integration/integration-check.type.d.mts +8 -0
  99. package/api/integration/integration-check.type.mjs +4 -1
  100. package/api/integration/integrationCheck.doc.mjs +8 -1
  101. package/api/integration/integrationDocConflicts.doc.mjs +1 -1
  102. package/api/integration/pack-check.mjs +68 -1
  103. package/api/integration/pack-check.test.mjs +63 -0
  104. package/api/integration/pack-check.type.d.mts +9 -1
  105. package/api/integration/pack-check.type.mjs +4 -1
  106. package/api/integration/validate-installed-icon-sets.test.mjs +67 -0
  107. package/api/integration/validate-integration-case-disk.test.mjs +14 -2
  108. package/api/integration/validate-integration-gaps.test.mjs +43 -19
  109. package/api/integration/validate-integration.d.mts +11 -1
  110. package/api/integration/validate-integration.mjs +180 -19
  111. package/api/integration/validate-integration.type.d.mts +94 -4
  112. package/api/integration/validate-integration.type.mjs +53 -5
  113. package/api/integration/validateIntegration.doc.mjs +1 -1
  114. package/api/search/ORDERING.md +1 -1
  115. package/api/search/_candidate-score.d.mts +9 -3
  116. package/api/search/_candidate-score.mjs +90 -3
  117. package/api/search/_gather-components.mjs +48 -1
  118. package/api/search/_gather-docs.mjs +52 -3
  119. package/api/search/_lexical.d.mts +12 -0
  120. package/api/search/_lexical.mjs +3 -0
  121. package/api/search/_order.d.mts +1 -1
  122. package/api/search/_order.mjs +75 -6
  123. package/api/search/_priority.mjs +5 -2
  124. package/api/search/_score.d.mts +2 -1
  125. package/api/search/_score.mjs +4 -3
  126. package/api/search/search.doc.mjs +1 -1
  127. package/api/search/search.family-members.test.mjs +124 -0
  128. package/api/search/search.family-word.test.mjs +146 -0
  129. package/api/search/search.mjs +28 -0
  130. package/api/search/search.tie-order.test.mjs +39 -0
  131. package/api/template/_adapter.d.mts +13 -0
  132. package/api/template/_adapter.mjs +36 -0
  133. package/api/template/copy/copy.d.mts +5 -2
  134. package/api/template/copy/copy.mjs +19 -3
  135. package/api/template/show/show.d.mts +6 -1
  136. package/api/template/show/show.mjs +11 -2
  137. package/api/template/template-suffix.test.mjs +26 -0
  138. package/api/template/template.mjs +6 -2
  139. package/api/template/template.type.d.mts +53 -0
  140. package/api/template/template.type.mjs +15 -0
  141. package/api/theme/themeBuild.doc.mjs +1 -1
  142. package/api/theme/themeList.doc.mjs +1 -1
  143. package/api/theme/themeTargets.doc.mjs +1 -1
  144. package/api/upgrade/_adapter.d.mts +10 -2
  145. package/api/upgrade/_adapter.mjs +23 -4
  146. package/api/upgrade/run/run.mjs +4 -1
  147. package/assets/docs/author-a-theme.doc.mjs +15 -15
  148. package/assets/docs/browser-support.doc.mjs +1 -1
  149. package/assets/docs/getting-started.doc.mjs +16 -16
  150. package/assets/docs/is-my-code-good.doc.mjs +6 -6
  151. package/assets/docs/styling-overview.doc.mjs +5 -5
  152. package/assets/docs/theme.doc.mjs +5 -5
  153. package/assets/docs/tree/add-a-component.doc.mjs +1 -1
  154. package/assets/docs/tree/add-a-theme.doc.mjs +2 -2
  155. package/assets/docs/tree/add-a-topic.doc.mjs +6 -6
  156. package/assets/docs/tree/agent-guidance.doc.mjs +5 -5
  157. package/assets/docs/tree/authoring.doc.mjs +2 -2
  158. package/assets/docs/tree/block-template.doc.mjs +1 -1
  159. package/assets/docs/tree/check-the-props.doc.mjs +3 -3
  160. package/assets/docs/tree/check-your-docs.doc.mjs +6 -6
  161. package/assets/docs/tree/checks.doc.mjs +11 -11
  162. package/assets/docs/tree/ci-and-containers.doc.mjs +1 -1
  163. package/assets/docs/tree/cli-command.doc.mjs +6 -6
  164. package/assets/docs/tree/codemods.doc.mjs +7 -7
  165. package/assets/docs/tree/component-family.doc.mjs +1 -1
  166. package/assets/docs/tree/component-imports.doc.mjs +2 -2
  167. package/assets/docs/tree/component-lookups.doc.mjs +6 -5
  168. package/assets/docs/tree/computer-agent-guide.doc.mjs +7 -7
  169. package/assets/docs/tree/computer-integrations.doc.mjs +5 -5
  170. package/assets/docs/tree/debug-and-gap-reports.doc.mjs +3 -3
  171. package/assets/docs/tree/define-the-theme.doc.mjs +1 -1
  172. package/assets/docs/tree/describe-the-component.doc.mjs +1 -1
  173. package/assets/docs/tree/doc-syntax.doc.mjs +219 -0
  174. package/assets/docs/tree/experimental.doc.mjs +31 -0
  175. package/assets/docs/tree/export-template-assets.doc.mjs +1 -1
  176. package/assets/docs/tree/extend-or-replace.doc.mjs +39 -7
  177. package/assets/docs/tree/font-setup.doc.mjs +1 -1
  178. package/assets/docs/tree/generate-a-palette.doc.mjs +1 -1
  179. package/assets/docs/tree/global-integrations.doc.mjs +11 -11
  180. package/assets/docs/tree/global.doc.mjs +2 -2
  181. package/assets/docs/tree/host-entry.doc.mjs +1 -1
  182. package/assets/docs/tree/icon-definitions.doc.mjs +48 -0
  183. package/assets/docs/tree/icon-set-files.doc.mjs +33 -0
  184. package/assets/docs/tree/icon-sets.doc.mjs +377 -0
  185. package/assets/docs/tree/install-once.doc.mjs +4 -4
  186. package/assets/docs/tree/layout.doc.mjs +1 -1
  187. package/assets/docs/tree/links.doc.mjs +2 -2
  188. package/assets/docs/tree/migration-setup.doc.mjs +15 -15
  189. package/assets/docs/tree/migration.doc.mjs +2 -1
  190. package/assets/docs/tree/other-libraries.doc.mjs +1 -1
  191. package/assets/docs/tree/page-template.doc.mjs +2 -2
  192. package/assets/docs/tree/problems.doc.mjs +8 -8
  193. package/assets/docs/tree/project-global-or-both.doc.mjs +2 -2
  194. package/assets/docs/tree/publishing.doc.mjs +7 -7
  195. package/assets/docs/tree/quick-start.doc.mjs +9 -9
  196. package/assets/docs/tree/reference.doc.mjs +2 -2
  197. package/assets/docs/tree/replace-a-core-component.doc.mjs +1 -1
  198. package/assets/docs/tree/replace-a-core-template.doc.mjs +4 -4
  199. package/assets/docs/tree/scaffold.doc.mjs +1 -1
  200. package/assets/docs/tree/sections-and-placement.doc.mjs +3 -3
  201. package/assets/docs/tree/see-it-in-an-app.doc.mjs +3 -3
  202. package/assets/docs/tree/short-and-findable.doc.mjs +3 -3
  203. package/assets/docs/tree/single-component.doc.mjs +4 -4
  204. package/assets/docs/tree/start-a-template.doc.mjs +5 -5
  205. package/assets/docs/tree/styling-advanced.doc.mjs +1 -1
  206. package/assets/docs/tree/styling-libraries.doc.mjs +2 -1
  207. package/assets/docs/tree/styling.doc.mjs +1 -1
  208. package/assets/docs/tree/tailwind.doc.mjs +1 -1
  209. package/assets/docs/tree/test-in-an-app.doc.mjs +5 -5
  210. package/assets/docs/tree/test-template-in-app.doc.mjs +6 -6
  211. package/assets/docs/tree/tokens-and-setup.doc.mjs +1 -1
  212. package/assets/docs/tree/troubleshooting.doc.mjs +24 -20
  213. package/assets/docs/tree/uninstall.doc.mjs +2 -2
  214. package/assets/docs/tree/updates.doc.mjs +1 -1
  215. package/assets/docs/tree/upgrading.doc.mjs +3 -3
  216. package/assets/docs/tree/use-a-theme-in-an-app.doc.mjs +1 -1
  217. package/assets/docs/tree/verify-packed-template.doc.mjs +3 -3
  218. package/assets/docs/tree/versioning.doc.mjs +4 -4
  219. package/assets/docs/tree/who-answers.doc.mjs +4 -4
  220. package/assets/docs/tree/write-the-template-file.doc.mjs +4 -4
  221. package/assets/docs/use-a-theme.doc.mjs +10 -10
  222. package/assets/docs/use-integrations.doc.mjs +1 -1
  223. package/assets/docs/working-with-ai.doc.mjs +15 -15
  224. package/assets/icons/definitions/activity.doc.mjs +9 -0
  225. package/assets/icons/definitions/add.doc.mjs +9 -0
  226. package/assets/icons/definitions/adjustments.doc.mjs +9 -0
  227. package/assets/icons/definitions/announcement.doc.mjs +9 -0
  228. package/assets/icons/definitions/apps.doc.mjs +9 -0
  229. package/assets/icons/definitions/archive.doc.mjs +9 -0
  230. package/assets/icons/definitions/arrowDown.doc.mjs +10 -0
  231. package/assets/icons/definitions/arrowLeft.doc.mjs +9 -0
  232. package/assets/icons/definitions/arrowRight.doc.mjs +9 -0
  233. package/assets/icons/definitions/arrowUp.doc.mjs +10 -0
  234. package/assets/icons/definitions/arrowsUpDown.doc.mjs +10 -0
  235. package/assets/icons/definitions/attach.doc.mjs +9 -0
  236. package/assets/icons/definitions/audio.doc.mjs +9 -0
  237. package/assets/icons/definitions/bank.doc.mjs +9 -0
  238. package/assets/icons/definitions/bold.doc.mjs +9 -0
  239. package/assets/icons/definitions/bolt.doc.mjs +9 -0
  240. package/assets/icons/definitions/book.doc.mjs +9 -0
  241. package/assets/icons/definitions/bookmark.doc.mjs +9 -0
  242. package/assets/icons/definitions/bug.doc.mjs +9 -0
  243. package/assets/icons/definitions/building.doc.mjs +9 -0
  244. package/assets/icons/definitions/calendar.doc.mjs +10 -0
  245. package/assets/icons/definitions/cart.doc.mjs +9 -0
  246. package/assets/icons/definitions/chart.doc.mjs +9 -0
  247. package/assets/icons/definitions/check.doc.mjs +10 -0
  248. package/assets/icons/definitions/checkDouble.doc.mjs +10 -0
  249. package/assets/icons/definitions/chevronDown.doc.mjs +10 -0
  250. package/assets/icons/definitions/chevronLeft.doc.mjs +10 -0
  251. package/assets/icons/definitions/chevronRight.doc.mjs +10 -0
  252. package/assets/icons/definitions/chevronUp.doc.mjs +9 -0
  253. package/assets/icons/definitions/chevronsLeft.doc.mjs +10 -0
  254. package/assets/icons/definitions/chevronsRight.doc.mjs +10 -0
  255. package/assets/icons/definitions/click.doc.mjs +9 -0
  256. package/assets/icons/definitions/clipboard.doc.mjs +10 -0
  257. package/assets/icons/definitions/clock.doc.mjs +10 -0
  258. package/assets/icons/definitions/close.doc.mjs +10 -0
  259. package/assets/icons/definitions/code.doc.mjs +9 -0
  260. package/assets/icons/definitions/collapse.doc.mjs +9 -0
  261. package/assets/icons/definitions/compose.doc.mjs +9 -0
  262. package/assets/icons/definitions/conversation.doc.mjs +9 -0
  263. package/assets/icons/definitions/copy.doc.mjs +10 -0
  264. package/assets/icons/definitions/creditCard.doc.mjs +9 -0
  265. package/assets/icons/definitions/database.doc.mjs +9 -0
  266. package/assets/icons/definitions/delete.doc.mjs +9 -0
  267. package/assets/icons/definitions/desktop.doc.mjs +9 -0
  268. package/assets/icons/definitions/discount.doc.mjs +9 -0
  269. package/assets/icons/definitions/document.doc.mjs +9 -0
  270. package/assets/icons/definitions/download.doc.mjs +9 -0
  271. package/assets/icons/definitions/drag.doc.mjs +9 -0
  272. package/assets/icons/definitions/edit.doc.mjs +9 -0
  273. package/assets/icons/definitions/emoji.doc.mjs +9 -0
  274. package/assets/icons/definitions/error.doc.mjs +10 -0
  275. package/assets/icons/definitions/expand.doc.mjs +9 -0
  276. package/assets/icons/definitions/experiment.doc.mjs +9 -0
  277. package/assets/icons/definitions/externalLink.doc.mjs +10 -0
  278. package/assets/icons/definitions/eye.doc.mjs +9 -0
  279. package/assets/icons/definitions/eyeSlash.doc.mjs +10 -0
  280. package/assets/icons/definitions/file.doc.mjs +9 -0
  281. package/assets/icons/definitions/flag.doc.mjs +9 -0
  282. package/assets/icons/definitions/folder.doc.mjs +9 -0
  283. package/assets/icons/definitions/folderAdd.doc.mjs +9 -0
  284. package/assets/icons/definitions/funnel.doc.mjs +10 -0
  285. package/assets/icons/definitions/globe.doc.mjs +9 -0
  286. package/assets/icons/definitions/gridView.doc.mjs +9 -0
  287. package/assets/icons/definitions/heart.doc.mjs +9 -0
  288. package/assets/icons/definitions/home.doc.mjs +9 -0
  289. package/assets/icons/definitions/image.doc.mjs +9 -0
  290. package/assets/icons/definitions/inbox.doc.mjs +9 -0
  291. package/assets/icons/definitions/info.doc.mjs +10 -0
  292. package/assets/icons/definitions/italic.doc.mjs +9 -0
  293. package/assets/icons/definitions/key.doc.mjs +9 -0
  294. package/assets/icons/definitions/language.doc.mjs +9 -0
  295. package/assets/icons/definitions/lightbulb.doc.mjs +9 -0
  296. package/assets/icons/definitions/link.doc.mjs +9 -0
  297. package/assets/icons/definitions/list.doc.mjs +9 -0
  298. package/assets/icons/definitions/location.doc.mjs +9 -0
  299. package/assets/icons/definitions/lock.doc.mjs +9 -0
  300. package/assets/icons/definitions/mail.doc.mjs +9 -0
  301. package/assets/icons/definitions/mention.doc.mjs +9 -0
  302. package/assets/icons/definitions/menu.doc.mjs +10 -0
  303. package/assets/icons/definitions/message.doc.mjs +9 -0
  304. package/assets/icons/definitions/microphone.doc.mjs +10 -0
  305. package/assets/icons/definitions/mobile.doc.mjs +9 -0
  306. package/assets/icons/definitions/money.doc.mjs +9 -0
  307. package/assets/icons/definitions/moon.doc.mjs +9 -0
  308. package/assets/icons/definitions/moreHorizontal.doc.mjs +10 -0
  309. package/assets/icons/definitions/notification.doc.mjs +9 -0
  310. package/assets/icons/definitions/notificationActive.doc.mjs +9 -0
  311. package/assets/icons/definitions/notificationOff.doc.mjs +9 -0
  312. package/assets/icons/definitions/package.doc.mjs +9 -0
  313. package/assets/icons/definitions/pause.doc.mjs +9 -0
  314. package/assets/icons/definitions/pin.doc.mjs +9 -0
  315. package/assets/icons/definitions/play.doc.mjs +9 -0
  316. package/assets/icons/definitions/raiseHand.doc.mjs +9 -0
  317. package/assets/icons/definitions/redo.doc.mjs +9 -0
  318. package/assets/icons/definitions/refresh.doc.mjs +9 -0
  319. package/assets/icons/definitions/remove.doc.mjs +9 -0
  320. package/assets/icons/definitions/rocket.doc.mjs +9 -0
  321. package/assets/icons/definitions/save.doc.mjs +9 -0
  322. package/assets/icons/definitions/search.doc.mjs +10 -0
  323. package/assets/icons/definitions/send.doc.mjs +9 -0
  324. package/assets/icons/definitions/server.doc.mjs +9 -0
  325. package/assets/icons/definitions/settings.doc.mjs +9 -0
  326. package/assets/icons/definitions/share.doc.mjs +9 -0
  327. package/assets/icons/definitions/shield.doc.mjs +9 -0
  328. package/assets/icons/definitions/shipping.doc.mjs +9 -0
  329. package/assets/icons/definitions/shoppingBag.doc.mjs +9 -0
  330. package/assets/icons/definitions/sparkles.doc.mjs +9 -0
  331. package/assets/icons/definitions/star.doc.mjs +9 -0
  332. package/assets/icons/definitions/stop.doc.mjs +10 -0
  333. package/assets/icons/definitions/strikethrough.doc.mjs +9 -0
  334. package/assets/icons/definitions/success.doc.mjs +10 -0
  335. package/assets/icons/definitions/sun.doc.mjs +9 -0
  336. package/assets/icons/definitions/swatch.doc.mjs +9 -0
  337. package/assets/icons/definitions/table.doc.mjs +9 -0
  338. package/assets/icons/definitions/tag.doc.mjs +9 -0
  339. package/assets/icons/definitions/thumbsDown.doc.mjs +9 -0
  340. package/assets/icons/definitions/thumbsUp.doc.mjs +9 -0
  341. package/assets/icons/definitions/trendDown.doc.mjs +9 -0
  342. package/assets/icons/definitions/trendUp.doc.mjs +9 -0
  343. package/assets/icons/definitions/underline.doc.mjs +9 -0
  344. package/assets/icons/definitions/undo.doc.mjs +9 -0
  345. package/assets/icons/definitions/unlock.doc.mjs +9 -0
  346. package/assets/icons/definitions/upload.doc.mjs +10 -0
  347. package/assets/icons/definitions/user.doc.mjs +9 -0
  348. package/assets/icons/definitions/userAdd.doc.mjs +9 -0
  349. package/assets/icons/definitions/userCircle.doc.mjs +9 -0
  350. package/assets/icons/definitions/users.doc.mjs +9 -0
  351. package/assets/icons/definitions/video.doc.mjs +9 -0
  352. package/assets/icons/definitions/viewColumns.doc.mjs +10 -0
  353. package/assets/icons/definitions/warning.doc.mjs +10 -0
  354. package/assets/icons/definitions/work.doc.mjs +9 -0
  355. package/assets/icons/definitions/wrench.doc.mjs +10 -0
  356. package/assets/templates/blocks/components/AppShell/AppShellShowcase.doc.mjs +16 -3
  357. package/assets/templates/blocks/components/AppShell/AppShellSideNavOnly.doc.mjs +16 -1
  358. package/assets/templates/blocks/components/AppShell/AppShellTopNavOnly.doc.mjs +9 -1
  359. package/assets/templates/blocks/components/AppShell/AppShellTopNavWithSideNav.doc.mjs +17 -1
  360. package/assets/templates/blocks/components/AppShell/AppShellWithBanner.doc.mjs +18 -1
  361. package/assets/templates/blocks/components/BaseTypeahead/BaseTypeaheadCustomSearch.doc.mjs +1 -0
  362. package/assets/templates/blocks/components/BottomSheet/BottomSheetSnapPoints.doc.mjs +8 -0
  363. package/assets/templates/blocks/components/BreadcrumbItem/BreadcrumbItemShowcase.doc.mjs +1 -0
  364. package/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsDeepHierarchy.doc.mjs +1 -0
  365. package/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsWithIcons.doc.mjs +1 -0
  366. package/assets/templates/blocks/components/Button/ButtonFloating.doc.mjs +1 -0
  367. package/assets/templates/blocks/components/Button/ButtonWithIcon.doc.mjs +6 -0
  368. package/assets/templates/blocks/components/ButtonGroup/ButtonGroupShowcase.doc.mjs +5 -0
  369. package/assets/templates/blocks/components/Center/CenterHorizontal.doc.mjs +8 -0
  370. package/assets/templates/blocks/components/Center/CenterInsideACard.doc.mjs +1 -0
  371. package/assets/templates/blocks/components/ChatComposer/ChatComposerFlat.doc.mjs +5 -0
  372. package/assets/templates/blocks/components/ChatComposer/ChatComposerFooterActions.doc.mjs +13 -1
  373. package/assets/templates/blocks/components/ChatComposer/ChatComposerFullFeatured.doc.mjs +17 -1
  374. package/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerShowcase.doc.mjs +1 -0
  375. package/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerWithProgress.doc.mjs +1 -0
  376. package/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataFooter.doc.mjs +15 -1
  377. package/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataShowcase.doc.mjs +15 -1
  378. package/assets/templates/blocks/components/ChatSendButton/ChatSendButtonCustomIcon.doc.mjs +6 -0
  379. package/assets/templates/blocks/components/ChatSendButton/ChatSendButtonShowcase.doc.mjs +1 -0
  380. package/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageStatusUpdates.doc.mjs +1 -0
  381. package/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageWithIcon.doc.mjs +6 -0
  382. package/assets/templates/blocks/components/CommandPaletteItem/CommandPaletteItemShowcase.doc.mjs +3 -2
  383. package/assets/templates/blocks/components/ContextMenu/ContextMenuBottomSheet.doc.mjs +6 -0
  384. package/assets/templates/blocks/components/DropdownMenu/DropdownMenuBottomSheet.doc.mjs +6 -0
  385. package/assets/templates/blocks/components/DropdownMenu/DropdownMenuNoChevron.doc.mjs +1 -0
  386. package/assets/templates/blocks/components/EmptyState/EmptyStateActions.doc.mjs +1 -0
  387. package/assets/templates/blocks/components/EmptyState/EmptyStateCompact.doc.mjs +1 -0
  388. package/assets/templates/blocks/components/EmptyState/EmptyStateContainer.doc.mjs +1 -0
  389. package/assets/templates/blocks/components/EmptyState/EmptyStateShowcase.doc.mjs +1 -0
  390. package/assets/templates/blocks/components/Hooks/useContainerRevealHookUsage.doc.mjs +1 -0
  391. package/assets/templates/blocks/components/Hooks/useKeyboardHintHookUsage.doc.mjs +10 -1
  392. package/assets/templates/blocks/components/HoverCard/HoverCardInteractiveContent.doc.mjs +1 -0
  393. package/assets/templates/blocks/components/HoverCard/HoverCardProfileHoverCard.doc.mjs +1 -0
  394. package/assets/templates/blocks/components/IconButton/IconButtonFloating.doc.mjs +1 -0
  395. package/assets/templates/blocks/components/Item/ItemDocumentTabs.doc.mjs +1 -0
  396. package/assets/templates/blocks/components/Item/ItemShowcase.doc.mjs +1 -0
  397. package/assets/templates/blocks/components/Item/ItemWithMetadata.doc.mjs +1 -1
  398. package/assets/templates/blocks/components/MetadataListItem/MetadataListItemBasic.doc.mjs +1 -1
  399. package/assets/templates/blocks/components/MobileNav/MobileNavBasicMobileNav.doc.mjs +7 -0
  400. package/assets/templates/blocks/components/MobileNav/MobileNavEndSideMobileNav.doc.mjs +1 -0
  401. package/assets/templates/blocks/components/MobileNav/MobileNavWithoutTitleMobileNav.doc.mjs +1 -0
  402. package/assets/templates/blocks/components/MoreMenu/MoreMenuBottomSheet.doc.mjs +6 -0
  403. package/assets/templates/blocks/components/MoreMenu/MoreMenuWithDividers.doc.mjs +5 -0
  404. package/assets/templates/blocks/components/MoreMenu/MoreMenuWithSections.doc.mjs +5 -0
  405. package/assets/templates/blocks/components/Pagination/PaginationDotsCarousel.doc.mjs +1 -0
  406. package/assets/templates/blocks/components/Popover/PopoverBottomSheetAlternative.doc.mjs +1 -0
  407. package/assets/templates/blocks/components/Section/SectionWashHighlight.doc.mjs +1 -0
  408. package/assets/templates/blocks/components/SegmentedControlItem/SegmentedControlItemBasic.doc.mjs +1 -1
  409. package/assets/templates/blocks/components/Selector/SelectorOptionDescriptions.doc.mjs +8 -1
  410. package/assets/templates/blocks/components/SelectorOption/SelectorOptionShowcase.doc.mjs +1 -0
  411. package/assets/templates/blocks/components/TextArea/TextAreaWithIcon.doc.mjs +1 -0
  412. package/assets/templates/blocks/components/TextInput/TextInputIcon.doc.mjs +1 -0
  413. package/assets/templates/blocks/components/TextInput/TextInputSearch.doc.mjs +1 -0
  414. package/assets/templates/blocks/components/ToggleButton/ToggleButtonColor.doc.mjs +11 -0
  415. package/assets/templates/blocks/components/ToggleButton/ToggleButtonGroup.doc.mjs +16 -1
  416. package/assets/templates/blocks/components/ToggleButton/ToggleButtonIconSwap.doc.mjs +6 -0
  417. package/assets/templates/blocks/components/ToggleButton/ToggleButtonLabel.doc.mjs +13 -1
  418. package/assets/templates/blocks/components/ToggleButton/ToggleButtonShowcase.doc.mjs +6 -0
  419. package/assets/templates/blocks/components/ToggleButton/ToggleButtonStates.doc.mjs +1 -0
  420. package/assets/templates/blocks/components/Token/TokenIcon.doc.mjs +6 -0
  421. package/assets/templates/blocks/components/Token/TokenShowcase.doc.mjs +1 -0
  422. package/assets/templates/blocks/components/Tokenizer/TokenizerIcon.doc.mjs +1 -0
  423. package/assets/templates/blocks/components/Toolbar/ToolbarBulkActions.doc.mjs +1 -0
  424. package/assets/templates/blocks/components/Toolbar/ToolbarCardHeader.doc.mjs +1 -0
  425. package/assets/templates/blocks/components/Toolbar/ToolbarSizes.doc.mjs +1 -0
  426. package/assets/templates/blocks/components/Toolbar/ToolbarTableFilter.doc.mjs +1 -0
  427. package/assets/templates/blocks/components/Toolbar/ToolbarThreeSlot.doc.mjs +1 -0
  428. package/assets/templates/blocks/components/Toolbar/ToolbarWithTabs.doc.mjs +1 -0
  429. package/assets/templates/blocks/components/TopNav/TopNavCenteredNavigation.doc.mjs +1 -0
  430. package/assets/templates/blocks/components/TopNav/TopNavEnterpriseDashboard.doc.mjs +6 -0
  431. package/assets/templates/blocks/components/TopNav/TopNavHoverMenu.doc.mjs +8 -0
  432. package/assets/templates/blocks/components/TopNav/TopNavMegaMenu.doc.mjs +8 -0
  433. package/assets/templates/blocks/components/TopNav/TopNavMultipleDropdowns.doc.mjs +5 -0
  434. package/assets/templates/blocks/components/TopNav/TopNavShowcase.doc.mjs +5 -0
  435. package/assets/templates/blocks/components/TopNav/TopNavWithLogo.doc.mjs +1 -0
  436. package/assets/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuBasic.doc.mjs +1 -0
  437. package/assets/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuShowcase.doc.mjs +13 -1
  438. package/assets/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemBasic.doc.mjs +1 -0
  439. package/assets/templates/blocks/components/TopNavMenu/TopNavMenuBasic.doc.mjs +1 -0
  440. package/assets/templates/blocks/components/TopNavMenu/TopNavMenuShowcase.doc.mjs +6 -0
  441. package/assets/templates/blocks/components/TreeList/TreeListFileTreeWithIcons.doc.mjs +1 -0
  442. package/assets/templates/blocks/components/TreeList/TreeListInteractiveSettings.doc.mjs +1 -0
  443. package/assets/templates/blocks/components/Typeahead/TypeaheadSearchField.doc.mjs +1 -0
  444. package/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenShowcase.doc.mjs +15 -1
  445. package/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenSupplementaryContext.doc.mjs +10 -2
  446. package/assets/templates/pages/ai-chat/template.doc.mjs +9 -0
  447. package/assets/templates/pages/ai-chat-landing/template.doc.mjs +11 -0
  448. package/assets/templates/pages/canvas-editor/template.doc.mjs +17 -0
  449. package/assets/templates/pages/centered-hero/template.doc.mjs +1 -0
  450. package/assets/templates/pages/checkout-wizard/template.doc.mjs +7 -0
  451. package/assets/templates/pages/contact-form/template.doc.mjs +5 -0
  452. package/assets/templates/pages/dashboard/template.doc.mjs +6 -0
  453. package/assets/templates/pages/dashboard-alert-rail/template.doc.mjs +8 -0
  454. package/assets/templates/pages/dashboard-cohort-funnel/template.doc.mjs +7 -0
  455. package/assets/templates/pages/dashboard-comparison/template.doc.mjs +8 -0
  456. package/assets/templates/pages/dashboard-composition/template.doc.mjs +1 -0
  457. package/assets/templates/pages/dashboard-progress/template.doc.mjs +7 -0
  458. package/assets/templates/pages/dashboard-scorecard/template.doc.mjs +7 -0
  459. package/assets/templates/pages/detail-page/template.doc.mjs +10 -0
  460. package/assets/templates/pages/documentation-design/template.doc.mjs +6 -1
  461. package/assets/templates/pages/documentation-technical/template.doc.mjs +5 -0
  462. package/assets/templates/pages/editor/template.doc.mjs +25 -0
  463. package/assets/templates/pages/file-explorer/template.doc.mjs +15 -0
  464. package/assets/templates/pages/form-wizard-inline/template.doc.mjs +1 -0
  465. package/assets/templates/pages/form-wizard-vertical/template.doc.mjs +12 -0
  466. package/assets/templates/pages/gallery-hero/template.doc.mjs +1 -0
  467. package/assets/templates/pages/ide/template.doc.mjs +5 -0
  468. package/assets/templates/pages/incident-console/template.doc.mjs +1 -0
  469. package/assets/templates/pages/kanban-board/template.doc.mjs +11 -0
  470. package/assets/templates/pages/library/template.doc.mjs +1 -0
  471. package/assets/templates/pages/login/template.doc.mjs +1 -0
  472. package/assets/templates/pages/login-card/template.doc.mjs +1 -0
  473. package/assets/templates/pages/login-split/template.doc.mjs +1 -0
  474. package/assets/templates/pages/login-sso/template.doc.mjs +1 -0
  475. package/assets/templates/pages/messaging-shell/template.doc.mjs +13 -0
  476. package/assets/templates/pages/payment-form/template.doc.mjs +6 -0
  477. package/assets/templates/pages/product-detail/template.doc.mjs +1 -0
  478. package/assets/templates/pages/product-gallery/template.doc.mjs +1 -0
  479. package/assets/templates/pages/settings/template.doc.mjs +1 -0
  480. package/assets/templates/pages/settings-dialog/template.doc.mjs +49 -0
  481. package/assets/templates/pages/settings-sidebar/template.doc.mjs +16 -0
  482. package/assets/templates/pages/shell-nav/template.doc.mjs +6 -0
  483. package/assets/templates/pages/shell-side-nav/template.doc.mjs +11 -0
  484. package/assets/templates/pages/shell-top-nav/template.doc.mjs +16 -0
  485. package/assets/templates/pages/table-collapsible/template.doc.mjs +5 -0
  486. package/assets/templates/pages/table-comparison/template.doc.mjs +12 -0
  487. package/assets/templates/pages/table-filter/template.doc.mjs +19 -0
  488. package/assets/templates/pages/table-grouped/template.doc.mjs +13 -0
  489. package/assets/templates/pages/table-inbox/template.doc.mjs +17 -0
  490. package/assets/templates/pages/table-page/template.doc.mjs +1 -0
  491. package/assets/templates/pages/table-tree/template.doc.mjs +12 -0
  492. package/assets/templates/pages/theme-showcase/template.doc.mjs +19 -0
  493. package/assets/templates/pages/work-item-detail/template.doc.mjs +13 -0
  494. package/authoring/codemod/codemod.doc.mjs +1 -1
  495. package/authoring/config/config.doc.mjs +12 -4
  496. package/authoring/config/parse.d.mts +1 -0
  497. package/authoring/config/parse.mjs +1 -0
  498. package/authoring/config/type.ts +8 -0
  499. package/authoring/debug/parse.d.mts +1 -1
  500. package/authoring/discover/discover.doc.mjs +1 -1
  501. package/authoring/discover/parse.d.mts +13 -3
  502. package/authoring/discover/parse.mjs +57 -4
  503. package/authoring/discover/parse.test.mjs +34 -0
  504. package/authoring/discover/type.ts +22 -2
  505. package/authoring/doctypes/_schema.d.mts +23 -0
  506. package/authoring/doctypes/_schema.mjs +9 -0
  507. package/authoring/doctypes/base/graph-fields.doc.mjs +7 -1
  508. package/authoring/doctypes/base/type.ts +10 -1
  509. package/authoring/doctypes/doc-stability-types.test.mjs +91 -0
  510. package/authoring/doctypes/enum/type.ts +4 -0
  511. package/authoring/doctypes/icon-definition/icon-definition.doc.d.mts +9 -0
  512. package/authoring/doctypes/icon-definition/icon-definition.doc.mjs +89 -0
  513. package/authoring/doctypes/icon-definition/parse.d.mts +40 -0
  514. package/authoring/doctypes/icon-definition/parse.mjs +89 -0
  515. package/authoring/doctypes/icon-definition/parse.test.mjs +78 -0
  516. package/authoring/doctypes/icon-definition/type.ts +55 -0
  517. package/authoring/doctypes/icon-set/icon-names.d.mts +14 -0
  518. package/authoring/doctypes/icon-set/icon-names.mjs +44 -0
  519. package/authoring/doctypes/icon-set/icon-names.test.mjs +26 -0
  520. package/authoring/doctypes/icon-set/icon-set-data.doc.d.mts +10 -0
  521. package/authoring/doctypes/icon-set/icon-set-data.doc.mjs +169 -0
  522. package/authoring/doctypes/icon-set/icon-set.doc.d.mts +9 -0
  523. package/authoring/doctypes/icon-set/icon-set.doc.mjs +90 -0
  524. package/authoring/doctypes/icon-set/parse.d.mts +105 -0
  525. package/authoring/doctypes/icon-set/parse.mjs +322 -0
  526. package/authoring/doctypes/icon-set/parse.test.mjs +179 -0
  527. package/authoring/doctypes/icon-set/type.ts +182 -0
  528. package/authoring/doctypes/load-contract.test.mjs +17 -4
  529. package/authoring/doctypes/namespace/namespace.doc.mjs +7 -0
  530. package/authoring/doctypes/namespace/type.ts +7 -0
  531. package/authoring/doctypes/parse.d.mts +6 -2
  532. package/authoring/doctypes/parse.mjs +10 -2
  533. package/authoring/doctypes/reference/type.ts +14 -2
  534. package/authoring/doctypes/schema/type.ts +4 -0
  535. package/authoring/doctypes/template/parse.d.mts +4 -0
  536. package/authoring/doctypes/template/parse.mjs +11 -0
  537. package/authoring/doctypes/template/template.doc.mjs +7 -0
  538. package/authoring/doctypes/template/type.ts +10 -0
  539. package/authoring/doctypes/types.ts +3 -1
  540. package/authoring/gap-report/gap-report.doc.mjs +1 -1
  541. package/authoring/identity/type.ts +11 -3
  542. package/authoring/index.d.mts +2 -0
  543. package/authoring/index.d.ts +15 -0
  544. package/authoring/index.mjs +5 -1
  545. package/authoring/integration/integration.doc.mjs +23 -6
  546. package/authoring/integration/schema.d.mts +6 -0
  547. package/authoring/integration/schema.mjs +4 -0
  548. package/authoring/integration/type.ts +8 -0
  549. package/clients/cli/commands/discover.icon-sets.test.mjs +133 -0
  550. package/clients/cli/commands/discover.mjs +3 -0
  551. package/clients/cli/commands/docs.doc.mjs +1 -1
  552. package/clients/cli/commands/docs.mjs +50 -8
  553. package/clients/cli/commands/docs.test.mjs +1 -1
  554. package/clients/cli/commands/doctor-integration-docs.doc.mjs +1 -1
  555. package/clients/cli/commands/doctor-integration.test.mjs +38 -0
  556. package/clients/cli/commands/doctor.doc.mjs +1 -1
  557. package/clients/cli/commands/doctor.mjs +167 -17
  558. package/clients/cli/commands/experimental/icon.mjs +462 -0
  559. package/clients/cli/commands/experimental/index.mjs +43 -0
  560. package/clients/cli/commands/experimental-icon-add.doc.mjs +105 -0
  561. package/clients/cli/commands/experimental-icon-map.doc.mjs +57 -0
  562. package/clients/cli/commands/experimental-icon-new-definition.doc.mjs +72 -0
  563. package/clients/cli/commands/experimental-icon-new-set.doc.mjs +76 -0
  564. package/clients/cli/commands/experimental-icon-use.doc.mjs +42 -0
  565. package/clients/cli/commands/experimental-icon.doc.mjs +68 -0
  566. package/clients/cli/commands/experimental.doc.mjs +28 -0
  567. package/clients/cli/commands/icon-authoring.test.mjs +1035 -0
  568. package/clients/cli/commands/icon-sets-guide.test.mjs +186 -0
  569. package/clients/cli/commands/icon.test.mjs +96 -0
  570. package/clients/cli/commands/integration-check.doc.mjs +11 -0
  571. package/clients/cli/commands/integration-check.test.mjs +36 -3
  572. package/clients/cli/commands/integration-pack.doc.mjs +1 -1
  573. package/clients/cli/commands/integration-verify.doc.mjs +1 -1
  574. package/clients/cli/commands/integration.mjs +38 -4
  575. package/clients/cli/commands/template.icons.test.mjs +132 -0
  576. package/clients/cli/commands/template.mjs +36 -2
  577. package/clients/cli/commands/text-json-parity.test.mjs +51 -0
  578. package/clients/cli/commands/theme-targets.doc.mjs +1 -1
  579. package/clients/cli/commands/upgrade.doc.mjs +2 -2
  580. package/clients/cli/formatters/index.mjs +8 -1
  581. package/clients/cli/formatters/index.test.mjs +15 -0
  582. package/clients/cli/index.mjs +13 -0
  583. package/clients/cli/lib/define-command.mjs +9 -3
  584. package/foundation/agent-docs/agent-docs.d.mts +14 -2
  585. package/foundation/agent-docs/agent-docs.mjs +65 -4
  586. package/foundation/agent-docs/agent-docs.test.mjs +107 -0
  587. package/foundation/config/config-writer.d.mts +27 -0
  588. package/foundation/config/config-writer.mjs +202 -0
  589. package/foundation/config/config-writer.test.mjs +84 -0
  590. package/foundation/config/project.d.mts +24 -0
  591. package/foundation/config/project.mjs +105 -3
  592. package/foundation/discovery/authoring-self-docs.d.mts +22 -1
  593. package/foundation/discovery/authoring-self-docs.mjs +69 -19
  594. package/foundation/discovery/authoring-self-docs.test.mjs +19 -3
  595. package/foundation/discovery/authoring-surface.mjs +13 -6
  596. package/foundation/discovery/cli-self-docs.d.mts +6 -0
  597. package/foundation/discovery/cli-self-docs.mjs +58 -6
  598. package/foundation/discovery/component-discovery.export-names.test.mjs +31 -0
  599. package/foundation/discovery/doc-stability.d.mts +32 -0
  600. package/foundation/discovery/doc-stability.mjs +100 -0
  601. package/foundation/discovery/doc-types.d.mts +2 -2
  602. package/foundation/discovery/doc-types.mjs +8 -3
  603. package/foundation/discovery/doc-types.test.mjs +30 -0
  604. package/foundation/discovery/docs-discovery.d.mts +93 -2
  605. package/foundation/discovery/docs-discovery.mjs +237 -8
  606. package/foundation/discovery/icon-definition-discovery.d.mts +59 -0
  607. package/foundation/discovery/icon-definition-discovery.mjs +117 -0
  608. package/foundation/discovery/icon-ranking.d.mts +113 -0
  609. package/foundation/discovery/icon-ranking.mjs +305 -0
  610. package/foundation/discovery/icon-set-checks.d.mts +142 -0
  611. package/foundation/discovery/icon-set-checks.mjs +742 -0
  612. package/foundation/discovery/icon-set-checks.test.mjs +905 -0
  613. package/foundation/discovery/icon-set-discovery.d.mts +229 -0
  614. package/foundation/discovery/icon-set-discovery.mjs +464 -0
  615. package/foundation/discovery/icon-set-discovery.test.mjs +320 -0
  616. package/foundation/discovery/icon-set-writer.d.mts +323 -0
  617. package/foundation/discovery/icon-set-writer.mjs +1181 -0
  618. package/foundation/discovery/integration-doc-files.mjs +17 -2
  619. package/foundation/discovery/integration-doc-files.test.mjs +29 -0
  620. package/foundation/discovery/module-exports.d.mts +122 -0
  621. package/foundation/discovery/module-exports.mjs +682 -11
  622. package/foundation/discovery/runner-allowlist.d.mts +2 -0
  623. package/foundation/discovery/runner-allowlist.mjs +4 -0
  624. package/foundation/discovery/runner-commands.d.mts +29 -13
  625. package/foundation/discovery/runner-commands.mjs +253 -17
  626. package/foundation/discovery/runner-commands.test.mjs +4 -1
  627. package/foundation/discovery/stray-pointers.mjs +11 -5
  628. package/foundation/discovery/stray-pointers.test.mjs +6 -0
  629. package/foundation/discovery/template-adapter.d.mts +5 -0
  630. package/foundation/discovery/template-adapter.mjs +17 -0
  631. package/foundation/discovery/template-icon-notes.d.mts +15 -0
  632. package/foundation/discovery/template-icon-notes.mjs +66 -0
  633. package/foundation/discovery/template-icons.d.mts +156 -0
  634. package/foundation/discovery/template-icons.mjs +712 -0
  635. package/foundation/discovery/template-icons.test.mjs +457 -0
  636. package/foundation/discovery/theme-discovery.d.mts +15 -0
  637. package/foundation/discovery/theme-discovery.mjs +137 -61
  638. package/foundation/doc-compiler/bundle.mjs +14 -0
  639. package/foundation/doc-compiler/compile.d.mts +1 -1
  640. package/foundation/doc-compiler/compile.mjs +18 -3
  641. package/foundation/doc-compiler/doc-loads.test.mjs +36 -0
  642. package/foundation/doc-compiler/doc-syntax.d.mts +194 -0
  643. package/foundation/doc-compiler/doc-syntax.mjs +739 -0
  644. package/foundation/doc-compiler/doc-syntax.test.mjs +383 -0
  645. package/foundation/doc-compiler/inputs.d.mts +2 -2
  646. package/foundation/doc-compiler/inputs.mjs +17 -1
  647. package/foundation/doc-compiler/inputs.test.mjs +1 -0
  648. package/foundation/doc-compiler/links.d.mts +13 -16
  649. package/foundation/doc-compiler/links.mjs +40 -7
  650. package/foundation/doc-compiler/lower-doc.test.mjs +1 -1
  651. package/foundation/doc-compiler/read.d.mts +2 -2
  652. package/foundation/doc-compiler/read.mjs +4 -4
  653. package/foundation/doc-compiler/tree.d.mts +26 -0
  654. package/foundation/doc-compiler/tree.mjs +80 -4
  655. package/foundation/doc-compiler/tree.test.mjs +34 -0
  656. package/foundation/env/package-manager.d.mts +18 -0
  657. package/foundation/env/package-manager.mjs +40 -0
  658. package/foundation/fs/paths.d.mts +3 -1
  659. package/foundation/fs/paths.mjs +8 -2
  660. package/foundation/identity/provider-identity.mjs +2 -0
  661. package/foundation/integrations/cli-requirement.d.mts +84 -0
  662. package/foundation/integrations/cli-requirement.mjs +139 -1
  663. package/foundation/integrations/cli-requirement.test.mjs +32 -2
  664. package/foundation/integrations/contribution-inventory.d.mts +12 -5
  665. package/foundation/integrations/contribution-inventory.mjs +66 -3
  666. package/foundation/integrations/integrations.d.mts +5 -0
  667. package/foundation/integrations/integrations.mjs +6 -2
  668. package/foundation/integrations/manifest-writer.d.mts +3 -0
  669. package/foundation/integrations/manifest-writer.mjs +51 -5
  670. package/foundation/integrations/manifest-writer.test.mjs +42 -0
  671. package/foundation/integrations/validate-contributions.d.mts +53 -0
  672. package/foundation/integrations/validate-contributions.mjs +791 -1
  673. package/foundation/response/response-types.doc.mjs +63 -6
  674. package/package.json +9 -9
@@ -36,8 +36,18 @@ 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
- import {integrationRunnerCommands} from './_adapter.mjs';
46
+ import {
47
+ integrationDocCommands,
48
+ integrationDocTargets,
49
+ projectUsesIconSets,
50
+ } from './_adapter.mjs';
41
51
  import {
42
52
  THEME_SLUG_RE,
43
53
  unreadThemeFolders,
@@ -59,6 +69,7 @@ import {
59
69
  // integration-warnings need them too, and foundation must not depend on api.
60
70
  import {
61
71
  blockComponentsCheck,
72
+ componentExamplesCheck,
62
73
  componentDocNamesCheck,
63
74
  INVALID_CLI_COMMAND,
64
75
  isListedIssue,
@@ -77,6 +88,15 @@ import {runChoice} from '../../foundation/release/run-context.mjs';
77
88
  /** The running CLI is outside the package's `@astryxdesign/cli` peer range. */
78
89
  const CLI_PEER_VERSION = 'cli_peer_version';
79
90
 
91
+ /** A doc replaces or extends a name that holds no topic and no guide. */
92
+ const DOC_TARGET_NOT_FOUND = 'doc_target_not_found';
93
+
94
+ /** An extension section's `before` or `after` names no section of the base. */
95
+ const DOC_SECTION_UNPLACED = 'doc_section_unplaced';
96
+
97
+ /** Two docs of one package replace one guide; only the last one is read. */
98
+ const DUPLICATE_GUIDE_REPLACEMENT = 'duplicate_guide_replacement';
99
+
80
100
  export {validateLoadedIntegration, isListedIssue};
81
101
 
82
102
  /**
@@ -98,6 +118,9 @@ export {validateLoadedIntegration, isListedIssue};
98
118
  * may not fail `--strict` until the next (architecture:cli-surface INV35);
99
119
  * `integration verify` still fails on a package.json npm cannot pack.
100
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]
101
124
  * @property {import('./validate-integration.type.mjs').PublicImportsReport} [publicImports]
102
125
  * what the public-import check could not judge
103
126
  */
@@ -286,15 +309,23 @@ async function findUnreachableContributionIssues(
286
309
  * Shared core for the local and installed entry points.
287
310
  * @param {string} packageDir
288
311
  * @param {{name: string, version?: string}} identity
289
- * @param {{scanUnreachable?: boolean, own?: boolean, cwd?: string}} [options]
312
+ * @param {{scanUnreachable?: boolean, own?: boolean, cwd?: string, iconSets?: boolean}} [options]
290
313
  * `own`: the package is the one being authored in the current folder;
291
- * `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.
292
318
  * @returns {Promise<ValidateResult>}
293
319
  */
294
320
  async function validateAtPackageDir(
295
321
  packageDir,
296
322
  identity,
297
- {scanUnreachable = false, own = false, cwd = packageDir} = {},
323
+ {
324
+ scanUnreachable = false,
325
+ own = false,
326
+ cwd = packageDir,
327
+ iconSets = true,
328
+ } = {},
298
329
  ) {
299
330
  /** @type {Issue[]} */
300
331
  const issues = [];
@@ -407,6 +438,9 @@ async function validateAtPackageDir(
407
438
  codemods: resolveRoot(manifest.codemods, 'codemods'),
408
439
  docs: resolveRoot(manifest.docs, 'docs'),
409
440
  themes: resolveRoot(manifest.themes, 'themes'),
441
+ iconSets: iconSets
442
+ ? resolveRoot(manifest.experimental?.iconSets, 'experimental.iconSets')
443
+ : undefined,
410
444
  issuesUrl: manifest.issuesUrl,
411
445
  agentDocs: manifest.agentDocs,
412
446
  cliCommand: manifest.cliCommand,
@@ -456,6 +490,16 @@ async function validateAtPackageDir(
456
490
  }
457
491
  if (loaded.themes && !rootProblem(loaded.themes))
458
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
+ }
459
503
  // What the docs say that no reader serves: a prop listed twice, an
460
504
  // overlay's text for a prop the doc lacks, an empty or unreachable section,
461
505
  // and an overlay of no topic.
@@ -477,8 +521,11 @@ async function validateAtPackageDir(
477
521
  const publicImports = await publicImportIssues(packageDir, loaded);
478
522
  issues.push(...publicImports.issues);
479
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`.
480
525
  if (publicImports.notes.length > 0)
481
- (result.notes ??= []).push(...publicImports.notes);
526
+ (result.notes ??= []).push(
527
+ ...publicImports.notes.map(note => ({...note, next: true})),
528
+ );
482
529
  result.publicImports = publicImports.report;
483
530
  if (scanUnreachable) {
484
531
  issues.push(
@@ -489,6 +536,25 @@ async function validateAtPackageDir(
489
536
  )),
490
537
  );
491
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
+ }
492
558
 
493
559
  return result;
494
560
  }
@@ -636,9 +702,16 @@ function packageJsonFieldIssues(pkg, pkgJsonPath) {
636
702
  * at or above `cwd`, resolved the way the project loads it.
637
703
  * @param {string} spec package name
638
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`
639
708
  * @returns {Promise<ValidateResult>}
640
709
  */
641
- export async function validateInstalledIntegration(spec, cwd = process.cwd()) {
710
+ export async function validateInstalledIntegration(
711
+ spec,
712
+ cwd = process.cwd(),
713
+ {iconSets} = {},
714
+ ) {
642
715
  // The resolver throws (path-safety guard) on a spec with path segments,
643
716
  // `..`, or an absolute path. Every other malformed input to this command
644
717
  // degrades into a diagnostic — so catch it here and return an issue instead
@@ -681,28 +754,83 @@ export async function validateInstalledIntegration(spec, cwd = process.cwd()) {
681
754
  return validateAtPackageDir(
682
755
  packageDir,
683
756
  {name: pkg.name ?? spec, version: pkg.version},
684
- {cwd},
757
+ {cwd, iconSets: iconSets ?? (await projectUsesIconSets(cwd))},
685
758
  );
686
759
  }
687
760
 
688
761
  /**
689
- * The runner-command notes for a package's topics: each Astryx command a topic
690
- * writes with a package runner, where the doc file is, and the bare command to
691
- * 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`.
692
767
  * @param {any} integration a loaded integration
693
- * @returns {Promise<Array<{code: string, message: string}>>}
768
+ * @returns {Promise<Array<{code: string, message: string, next: true}>>}
694
769
  */
695
- async function runnerCommandNotes(integration) {
770
+ async function docCommandNotes(integration) {
696
771
  const packageDir = integration.__packageDir;
697
- return (await integrationRunnerCommands(integration)).map(each => ({
698
- code: 'runner_command',
772
+ return (await integrationDocCommands(integration)).map(each => ({
773
+ code: each.code,
699
774
  message:
700
775
  typeof packageDir === 'string'
701
776
  ? `${path.relative(packageDir, each.file).split(path.sep).join('/')}: ${each.message}`
702
777
  : each.message,
778
+ next: true,
703
779
  }));
704
780
  }
705
781
 
782
+ /**
783
+ * The notes for docs that replace or extend a topic or a guide the docs tree
784
+ * places, or place an extension's section with `before` or `after`: a name
785
+ * that holds neither (such as a namespace) applies nothing, and a key that
786
+ * names no section adds the section at the end. Each is listed, failing nothing, until
787
+ * the next minor release (architecture:cli-surface INV35).
788
+ * @param {any} integration a loaded integration
789
+ * @returns {Promise<Array<{code: string, message: string}>>}
790
+ */
791
+ async function docTargetNotes(integration) {
792
+ /** @type {Array<{code: string, message: string}>} */
793
+ const notes = [];
794
+ const targets = await integrationDocTargets(integration);
795
+ /** @type {Map<string, string[]>} lowercased route → the docs replacing it */
796
+ const replacers = new Map();
797
+ for (const each of targets) {
798
+ if (each.kind !== 'guide' || each.relationship !== 'replaces') continue;
799
+ // An old route and the new one name one guide.
800
+ const key = each.guide ?? each.target.toLowerCase();
801
+ replacers.set(key, [...(replacers.get(key) ?? []), each.topic]);
802
+ }
803
+ for (const [route, topics] of replacers) {
804
+ if (topics.length < 2) continue;
805
+ notes.push({
806
+ code: DUPLICATE_GUIDE_REPLACEMENT,
807
+ message: `"${topics.join('", "')}" all replace the guide "${route}", and only the last, "${topics.at(-1)}", is read. Fix: keep one replacement, or make the others extend it.`,
808
+ });
809
+ }
810
+ for (const each of targets) {
811
+ if (each.kind === 'namespace') {
812
+ const shown = each.guidesBelow.slice(0, 8);
813
+ const more = each.guidesBelow.length - shown.length;
814
+ notes.push({
815
+ code: DOC_TARGET_NOT_FOUND,
816
+ message: `"${each.topic}" ${each.relationship} "${each.target}", which is a namespace of the docs tree: it holds no sections to ${each.relationship === 'replaces' ? 'replace' : 'extend'}, so this changes nothing. Fix: name the route of a guide below it${shown.length > 0 ? `: ${shown.join(', ')}${more > 0 ? `, and ${more} more` : ''}` : ''}.`,
817
+ });
818
+ } else if (each.kind == null) {
819
+ notes.push({
820
+ code: DOC_TARGET_NOT_FOUND,
821
+ message: `"${each.topic}" ${each.relationship} "${each.target}", which is neither a topic nor a guide of the CLI's docs or this package's own: it changes nothing unless an app also installs a package that provides it. Fix: if it should name one of those, name a topic as \`${formatCliCommand('docs')}\` lists it, or a guide's route as \`${formatCliCommand('docs authoring --depth all')}\` or \`${formatCliCommand('docs cli --depth all')}\` lists it.`,
822
+ });
823
+ }
824
+ for (const {section, field, key} of each.unplaced) {
825
+ notes.push({
826
+ code: DOC_SECTION_UNPLACED,
827
+ message: `Section "${section}" of "${each.topic}" goes ${field} "${key}", which is no section of "${each.guide ?? each.target}", so it is added at the end. Fix: use a key \`${formatCliCommand(`docs ${each.guide ?? each.target} --index`)}\` lists.`,
828
+ });
829
+ }
830
+ }
831
+ return notes;
832
+ }
833
+
706
834
  /**
707
835
  * Unified entry: validate the LOCAL integration (no `pkg`) or an INSTALLED one
708
836
  * (`pkg` given) and return the `integration.validate` envelope. The no-manifest
@@ -737,26 +865,43 @@ export async function validateIntegration(pkg, options = {}) {
737
865
  await blockComponentsCheck(integration),
738
866
  ]
739
867
  : undefined;
868
+ // Components no block template shows.
869
+ const examples = integration
870
+ ? await componentExamplesCheck(integration)
871
+ : undefined;
740
872
  const docNames = names?.[0].report;
741
873
  const blockComponents = names?.[1].report;
742
874
  // Notes fail nothing: a malformed `cliCommand`, and the findings added
743
875
  // after the last minor release, each with its fix in the message, which
744
876
  // may not fail `--strict` until the next (architecture:cli-surface INV35):
745
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.
746
880
  const notes = result.found
747
881
  ? [
748
- ...(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
+ ),
749
887
  ...(result.listed ?? []).map(issue => ({
750
888
  code: issue.code,
751
889
  message: issue.message,
890
+ next: true,
752
891
  })),
753
- ...(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})),
754
896
  ]
755
897
  : [];
756
- // Each Astryx command a topic writes with a package runner, as a
757
- // `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.
758
900
  if (integration?.docs) {
759
- notes.push(...(await runnerCommandNotes(integration)));
901
+ notes.push(...(await docCommandNotes(integration)));
902
+ notes.push(
903
+ ...(await docTargetNotes(integration)).map(note => ({...note, next: true})),
904
+ );
760
905
  }
761
906
  return {
762
907
  type: 'integration.validate',
@@ -781,6 +926,22 @@ export async function validateIntegration(pkg, options = {}) {
781
926
  ...(docTypes ? {docTypes} : {}),
782
927
  ...(docNames ? {docNames} : {}),
783
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
+ : {}),
784
945
  // What the public-import check could not judge: listed, never failed on.
785
946
  ...(result.found && result.publicImports
786
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. 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}} [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.
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,9 +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 }?: {
35
+ _family?: string | undefined;
36
+ _familyIndex?: number | undefined;
37
+ }, { fuzzy, joins, part, synonym }?: {
34
38
  fuzzy?: boolean;
35
39
  joins?: boolean;
40
+ part?: boolean;
41
+ synonym?: boolean;
36
42
  }): {
37
43
  score: number;
38
44
  reason: string;