@astryxdesign/cli 0.7.17-canary.g34e3d21 → 0.7.17-canary.g37db386

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 (462) hide show
  1. package/README.md +12 -6
  2. package/api/build/_adapter.d.mts +3 -2
  3. package/api/build/_adapter.mjs +9 -7
  4. package/api/build/build.mjs +22 -13
  5. package/api/build/build.type.mjs +2 -2
  6. package/api/build/kit/answer.mjs +2 -3
  7. package/api/build/kit/signals.d.mts +10 -0
  8. package/api/build/kit/signals.mjs +17 -4
  9. package/api/component/_adapter.d.mts +23 -21
  10. package/api/component/_adapter.mjs +19 -16
  11. package/api/component/component.mjs +4 -4
  12. package/api/component/detail/blocks/blocks.mjs +2 -1
  13. package/api/component/detail/detail.d.mts +2 -2
  14. package/api/component/detail/detail.mjs +1 -1
  15. package/api/component/list/list.d.mts +2 -2
  16. package/api/component/list/list.mjs +4 -4
  17. package/api/discover/_adapter.d.mts +3 -3
  18. package/api/discover/_adapter.mjs +14 -11
  19. package/api/discover/discover.mjs +1 -1
  20. package/api/docs/_adapter.d.mts +13 -5
  21. package/api/docs/_adapter.mjs +37 -10
  22. package/api/docs/_entry-names.mjs +4 -3
  23. package/api/doctor/_adapter.d.mts +22 -1
  24. package/api/doctor/_adapter.mjs +83 -1
  25. package/api/doctor/doctor.d.mts +63 -6
  26. package/api/doctor/doctor.mjs +218 -32
  27. package/api/doctor/theme-checks.mjs +102 -31
  28. package/api/error.d.mts +4 -3
  29. package/api/error.mjs +3 -2
  30. package/api/hook/_adapter.d.mts +5 -4
  31. package/api/hook/_adapter.mjs +6 -5
  32. package/api/hook/hook.type.d.mts +1 -1
  33. package/api/hook/hook.type.mjs +1 -1
  34. package/api/hook/list/list.mjs +11 -7
  35. package/api/icon/_adapter.d.mts +2 -1
  36. package/api/icon/_adapter.mjs +10 -15
  37. package/api/icon/_options.d.mts +17 -0
  38. package/api/icon/_options.mjs +54 -0
  39. package/api/icon/_records.d.mts +3 -1
  40. package/api/icon/_records.mjs +30 -3
  41. package/api/icon/exportIconIndex.doc.d.mts +10 -0
  42. package/api/icon/exportIconIndex.doc.mjs +59 -0
  43. package/api/icon/icon.doc.mjs +3 -3
  44. package/api/icon/icon.mjs +11 -34
  45. package/api/icon/icon.type.d.mts +81 -1
  46. package/api/icon/icon.type.mjs +43 -3
  47. package/api/icon/list/list.mjs +4 -1
  48. package/api/icon/rankIconIndex.doc.d.mts +10 -0
  49. package/api/icon/rankIconIndex.doc.mjs +79 -0
  50. package/api/icon/search/icon-index.d.mts +41 -0
  51. package/api/icon/search/icon-index.mjs +149 -0
  52. package/api/icon/search/search.d.mts +41 -0
  53. package/api/icon/search/search.mjs +164 -5
  54. package/api/index.d.mts +1 -0
  55. package/api/index.mjs +1 -0
  56. package/api/init/_adapter.d.mts +13 -0
  57. package/api/init/_adapter.mjs +25 -4
  58. package/api/init/init.d.mts +1 -1
  59. package/api/init/init.doc.mjs +2 -2
  60. package/api/init/init.mjs +1 -1
  61. package/api/init/init.type.d.mts +29 -1
  62. package/api/init/init.type.mjs +14 -1
  63. package/api/init/run/run.d.mts +11 -1
  64. package/api/init/run/run.mjs +84 -4
  65. package/api/integration/_adapter.d.mts +5 -4
  66. package/api/integration/_adapter.mjs +7 -5
  67. package/api/integration/pack-check.mjs +8 -9
  68. package/api/integration/validate-integration.d.mts +1 -1
  69. package/api/integration/validate-integration.mjs +8 -19
  70. package/api/integration/validate-integration.type.d.mts +3 -1
  71. package/api/integration/validate-integration.type.mjs +3 -1
  72. package/api/integration/validateIntegration.doc.mjs +1 -1
  73. package/api/render/_adapter.d.mts +4 -2
  74. package/api/render/_adapter.mjs +23 -13
  75. package/api/render/render.doc.mjs +2 -2
  76. package/api/render/render.mjs +1 -1
  77. package/api/search/ORDERING.md +1 -1
  78. package/api/search/_adapter.d.mts +8 -5
  79. package/api/search/_adapter.mjs +14 -10
  80. package/api/search/_gather-components.d.mts +4 -4
  81. package/api/search/_gather-components.mjs +4 -3
  82. package/api/search/_gather-docs.mjs +29 -2
  83. package/api/search/_gather-hooks.d.mts +2 -2
  84. package/api/search/_gather-hooks.mjs +1 -1
  85. package/api/search/_gather-templates.mjs +2 -1
  86. package/api/search/_lexical.mjs +12 -2
  87. package/api/search/_main-searcher.mjs +13 -0
  88. package/api/search/_order.d.mts +36 -1
  89. package/api/search/_order.mjs +141 -3
  90. package/api/search/_priority.d.mts +10 -2
  91. package/api/search/_priority.mjs +37 -7
  92. package/api/search/_score.d.mts +12 -3
  93. package/api/search/_score.mjs +6 -3
  94. package/api/search/_words.mjs +12 -3
  95. package/api/swizzle/_adapter.d.mts +7 -5
  96. package/api/swizzle/_adapter.mjs +7 -3
  97. package/api/swizzle/copy/copy.mjs +5 -4
  98. package/api/swizzle/list/list.mjs +8 -1
  99. package/api/swizzle/swizzle.type.d.mts +1 -1
  100. package/api/swizzle/swizzle.type.mjs +1 -1
  101. package/api/template/list/list.mjs +2 -1
  102. package/api/template/show/show.mjs +2 -1
  103. package/api/template/skeleton/skeleton.mjs +2 -1
  104. package/api/template/template.mjs +19 -1
  105. package/api/theme/build/build.d.mts +4 -10
  106. package/api/theme/build/build.mjs +150 -112
  107. package/api/theme/build/input-fields.d.mts +9 -0
  108. package/api/theme/build/input-fields.mjs +155 -16
  109. package/api/theme/build/radius-values.d.mts +18 -0
  110. package/api/theme/build/radius-values.mjs +76 -0
  111. package/api/theme/build/typography-values.mjs +7 -23
  112. package/api/theme/build/written-values.d.mts +18 -0
  113. package/api/theme/build/written-values.mjs +107 -31
  114. package/api/theme/palette/generate/generator.mjs +24 -0
  115. package/api/theme/themeBuild.doc.mjs +2 -2
  116. package/api/theme-edit/_catalog.d.mts +40 -0
  117. package/api/theme-edit/_catalog.mjs +100 -22
  118. package/api/theme-edit/_check.mjs +213 -43
  119. package/api/theme-edit/_color.d.mts +14 -0
  120. package/api/theme-edit/_color.mjs +22 -0
  121. package/api/theme-edit/_compiler.mjs +52 -0
  122. package/api/theme-edit/_context.d.mts +20 -2
  123. package/api/theme-edit/_context.mjs +157 -29
  124. package/api/theme-edit/_edit.mjs +426 -58
  125. package/api/theme-edit/_how-question.d.mts +14 -0
  126. package/api/theme-edit/_how-question.mjs +1541 -127
  127. package/api/theme-edit/_how.mjs +43 -0
  128. package/api/theme-edit/_missed.mjs +107 -27
  129. package/api/theme-edit/_normal.d.mts +18 -4
  130. package/api/theme-edit/_normal.mjs +84 -3
  131. package/api/theme-edit/_palette.d.mts +9 -0
  132. package/api/theme-edit/_palette.mjs +158 -33
  133. package/api/theme-edit/_part-words.mjs +16 -3
  134. package/api/theme-edit/_parts.d.mts +8 -0
  135. package/api/theme-edit/_parts.mjs +106 -31
  136. package/api/theme-edit/_png.d.mts +24 -0
  137. package/api/theme-edit/_png.mjs +99 -0
  138. package/api/theme-edit/_preview-app.mjs +5 -3
  139. package/api/theme-edit/_preview.d.mts +44 -26
  140. package/api/theme-edit/_preview.mjs +255 -67
  141. package/api/theme-edit/_project.d.mts +4 -0
  142. package/api/theme-edit/_project.mjs +2 -0
  143. package/api/theme-edit/_settings.d.mts +116 -0
  144. package/api/theme-edit/_settings.mjs +1197 -58
  145. package/api/theme-edit/_tables.d.mts +16 -0
  146. package/api/theme-edit/_tables.mjs +34 -4
  147. package/api/theme-edit/theme-edit.type.d.mts +14 -2
  148. package/api/theme-edit/theme-edit.type.mjs +7 -5
  149. package/api/upgrade/_adapter.d.mts +46 -7
  150. package/api/upgrade/_adapter.mjs +118 -12
  151. package/api/upgrade/registry/registry.d.mts +6 -3
  152. package/api/upgrade/registry/registry.mjs +21 -6
  153. package/api/upgrade/run/run.mjs +23 -11
  154. package/api/upgrade/upgrade.doc.mjs +4 -3
  155. package/assets/component-list.generated.json +1 -1
  156. package/assets/docs/tree/agent-guidance.doc.mjs +1 -1
  157. package/assets/docs/tree/authoring.doc.mjs +1 -0
  158. package/assets/docs/tree/checks.doc.mjs +2 -2
  159. package/assets/docs/tree/cli.doc.mjs +1 -0
  160. package/assets/docs/tree/global.doc.mjs +1 -0
  161. package/assets/docs/tree/icon-definitions.doc.mjs +3 -3
  162. package/assets/docs/tree/icon-sets.doc.mjs +6 -6
  163. package/assets/docs/tree/problems.doc.mjs +1 -1
  164. package/assets/docs/tree/share-a-page.doc.mjs +1 -1
  165. package/assets/docs/tree/short-and-findable.doc.mjs +3 -3
  166. package/assets/docs/tree/updates.doc.mjs +1 -1
  167. package/assets/docs/tree/versioning.doc.mjs +1 -1
  168. package/assets/docs/working-with-ai.doc.mjs +40 -5
  169. package/assets/docs-routes.generated.json +1 -1
  170. package/assets/docs.generated.json +2 -2
  171. package/assets/icons/installed-icon-set.doc.mjs +30 -0
  172. package/assets/search-catalog.generated.json +2 -2
  173. package/assets/self-audit.generated.json +1 -1
  174. package/assets/templates/blocks/components/Avatar/AvatarInteractive.tsx +6 -1
  175. package/assets/templates/blocks/components/BreadcrumbItem/BreadcrumbItemShowcase.tsx +4 -4
  176. package/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsCustomSeparator.tsx +1 -0
  177. package/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsSupportingVariant.tsx +2 -2
  178. package/assets/templates/blocks/components/CodeBlock/CodeBlockTerminal.tsx +1 -1
  179. package/assets/templates/blocks/components/ContextMenu/ContextMenuBasic.tsx +2 -2
  180. package/assets/templates/blocks/components/ContextMenu/ContextMenuBottomSheet.tsx +1 -1
  181. package/assets/templates/blocks/components/ContextMenu/ContextMenuShowcase.tsx +2 -2
  182. package/assets/templates/blocks/components/Heading/HeadingTruncation.tsx +12 -2
  183. package/assets/templates/blocks/components/InternationalizationProvider/useDirectionHookUsage.tsx +1 -1
  184. package/assets/templates/blocks/components/LinkProvider/LinkProviderCustomLink.tsx +3 -1
  185. package/assets/templates/blocks/components/MoreMenu/MoreMenuBottomSheet.tsx +1 -1
  186. package/assets/templates/blocks/components/Outline/OutlineDensity.tsx +2 -0
  187. package/assets/templates/blocks/components/OverflowList/OverflowListShowcase.tsx +6 -1
  188. package/assets/templates/blocks/components/Pagination/PaginationVariants.tsx +4 -0
  189. package/assets/templates/blocks/components/SideNavHeading/SideNavHeadingShowcase.tsx +2 -0
  190. package/assets/templates/blocks/components/Text/TextTruncation.tsx +1 -1
  191. package/assets/templates/blocks/components/Text/TextWordBreak.tsx +12 -2
  192. package/assets/templates/blocks/components/Text/TextWrap.tsx +19 -4
  193. package/assets/templates/blocks/components/Timestamp/TimestampAutoFormat.tsx +15 -1
  194. package/assets/templates/blocks/components/Timestamp/TimestampRelativeFormat.tsx +15 -1
  195. package/assets/templates/components.generated.json +1 -1
  196. package/assets/templates/pages/canvas-editor/page.tsx +4 -0
  197. package/assets/templates/pages/dashboard/page.tsx +24 -8
  198. package/assets/templates/pages/dashboard-alert-rail/page.tsx +4 -2
  199. package/assets/templates/pages/dashboard-cohort-funnel/page.tsx +7 -3
  200. package/assets/templates/pages/dashboard-comparison/page.tsx +5 -2
  201. package/assets/templates/pages/dashboard-composition/page.tsx +10 -4
  202. package/assets/templates/pages/dashboard-progress/page.tsx +9 -3
  203. package/assets/templates/pages/dashboard-scorecard/page.tsx +13 -4
  204. package/assets/templates/pages/detail-page/page.tsx +22 -2
  205. package/assets/templates/pages/editor/page.tsx +9 -1
  206. package/assets/templates/pages/incident-console/page.tsx +2 -1
  207. package/assets/templates/pages/table/page.tsx +4 -3
  208. package/assets/templates/pages/table-collapsible/page.tsx +1 -1
  209. package/assets/templates/pages/table-comparison/page.tsx +1 -1
  210. package/assets/templates/pages/table-filter/page.tsx +22 -7
  211. package/assets/templates/pages/table-grouped/page.tsx +26 -4
  212. package/assets/templates/pages/table-inbox/page.tsx +83 -33
  213. package/assets/templates/pages/table-page/page.tsx +1 -1
  214. package/assets/templates/pages/table-tree/page.tsx +10 -4
  215. package/assets/templates/pages/work-item-detail/page.tsx +21 -2
  216. package/assets/templates/themes/butter/butterPaletteRefs.generated.ts +12 -12
  217. package/assets/templates/themes/butter/butterTheme.ts +197 -4
  218. package/assets/templates/themes/chocolate/chocolateTheme.ts +72 -8
  219. package/assets/templates/themes/gothic/gothicPaletteRefs.generated.ts +3 -3
  220. package/assets/templates/themes/gothic/gothicTheme.ts +114 -4
  221. package/assets/templates/themes/matcha/matchaPaletteRefs.generated.ts +8 -8
  222. package/assets/templates/themes/matcha/matchaTheme.ts +48 -12
  223. package/assets/templates/themes/neutral/neutralTheme.ts +29 -0
  224. package/assets/templates/themes/stone/stonePaletteRefs.generated.ts +2 -2
  225. package/assets/templates/themes/stone/stoneTheme.ts +69 -0
  226. package/assets/templates/themes/y2k/y2kPaletteRefs.generated.ts +9 -9
  227. package/assets/templates/themes/y2k/y2kTheme.ts +249 -14
  228. package/authoring/codemod/parse.d.mts +0 -36
  229. package/authoring/codemod/parse.mjs +62 -41
  230. package/authoring/config/config.doc.mjs +1 -1
  231. package/authoring/config/parse.d.mts +0 -47
  232. package/authoring/config/parse.mjs +128 -103
  233. package/authoring/config/type.ts +4 -3
  234. package/authoring/discover/parse.d.mts +2 -2
  235. package/authoring/discover/parse.mjs +3 -3
  236. package/authoring/discover/type.ts +2 -1
  237. package/authoring/doctypes/_schema.d.mts +836 -938
  238. package/authoring/doctypes/_schema.mjs +863 -794
  239. package/authoring/doctypes/command/command.doc.mjs +24 -0
  240. package/authoring/doctypes/command/parse.mjs +2 -2
  241. package/authoring/doctypes/command/type.ts +31 -0
  242. package/authoring/doctypes/component/parse.mjs +2 -2
  243. package/authoring/doctypes/enum/parse.mjs +2 -2
  244. package/authoring/doctypes/hook/parse.mjs +2 -2
  245. package/authoring/doctypes/icon-definition/icon-definition.doc.mjs +1 -1
  246. package/authoring/doctypes/icon-definition/parse.d.mts +0 -24
  247. package/authoring/doctypes/icon-definition/parse.mjs +59 -43
  248. package/authoring/doctypes/icon-set/parse.d.mts +0 -75
  249. package/authoring/doctypes/icon-set/parse.mjs +239 -210
  250. package/authoring/doctypes/legacy.mjs +3 -3
  251. package/authoring/doctypes/namespace/namespace.doc.mjs +6 -0
  252. package/authoring/doctypes/namespace/parse.mjs +2 -2
  253. package/authoring/doctypes/namespace/type.ts +4 -0
  254. package/authoring/doctypes/reference/parse.mjs +2 -2
  255. package/authoring/doctypes/schema/parse.mjs +2 -2
  256. package/authoring/doctypes/template/parse.d.mts +0 -101
  257. package/authoring/doctypes/template/parse.mjs +131 -106
  258. package/authoring/doctypes/template/type.ts +0 -7
  259. package/authoring/doctypes/theme/parse.d.mts +0 -23
  260. package/authoring/doctypes/theme/parse.mjs +52 -36
  261. package/authoring/gap-report/parse.d.mts +1 -1
  262. package/authoring/index.d.ts +6 -1
  263. package/authoring/integration/integration.doc.mjs +7 -0
  264. package/authoring/integration/schema.d.mts +6 -0
  265. package/authoring/integration/schema.mjs +3 -0
  266. package/authoring/integration/type.ts +34 -0
  267. package/clients/cli/build-id.generated.json +1 -1
  268. package/clients/cli/commands/build.mjs +24 -10
  269. package/clients/cli/commands/component.doc.mjs +1 -0
  270. package/clients/cli/commands/component.mjs +19 -4
  271. package/clients/cli/commands/discover.mjs +4 -1
  272. package/clients/cli/commands/docs.doc.mjs +12 -10
  273. package/clients/cli/commands/docs.mjs +50 -21
  274. package/clients/cli/commands/experimental/icon.mjs +330 -227
  275. package/clients/cli/commands/experimental/index.mjs +4 -1
  276. package/clients/cli/commands/experimental/render.mjs +14 -1
  277. package/clients/cli/commands/experimental/theme.mjs +63 -54
  278. package/clients/cli/commands/experimental-icon-add.doc.mjs +1 -1
  279. package/clients/cli/commands/experimental-icon-map.doc.mjs +4 -1
  280. package/clients/cli/commands/experimental-icon-new-definition.doc.mjs +4 -1
  281. package/clients/cli/commands/experimental-icon-new-set.doc.mjs +4 -1
  282. package/clients/cli/commands/experimental-icon-use.doc.mjs +1 -1
  283. package/clients/cli/commands/experimental-icon.doc.mjs +1 -1
  284. package/clients/cli/commands/experimental-render.doc.mjs +4 -2
  285. package/clients/cli/commands/experimental-theme-add.doc.mjs +2 -0
  286. package/clients/cli/commands/experimental-theme-compile.doc.mjs +2 -1
  287. package/clients/cli/commands/experimental-theme-editor-how.doc.mjs +1 -0
  288. package/clients/cli/commands/experimental-theme-editor-new.doc.mjs +3 -1
  289. package/clients/cli/commands/experimental-theme-editor-set.doc.mjs +2 -1
  290. package/clients/cli/commands/experimental-theme-editor-show.doc.mjs +2 -1
  291. package/clients/cli/commands/experimental-theme-editor-undo.doc.mjs +2 -1
  292. package/clients/cli/commands/experimental-theme-eject.doc.mjs +1 -0
  293. package/clients/cli/commands/experimental-theme-preview-add.doc.mjs +1 -0
  294. package/clients/cli/commands/experimental-theme-preview-app.doc.mjs +1 -0
  295. package/clients/cli/commands/experimental-theme-remove.doc.mjs +2 -0
  296. package/clients/cli/commands/experimental-theme-targets.doc.mjs +1 -0
  297. package/clients/cli/commands/experimental-theme-template.doc.mjs +1 -0
  298. package/clients/cli/commands/experimental-theme-use.doc.mjs +2 -0
  299. package/clients/cli/commands/gap-report.doc.mjs +1 -0
  300. package/clients/cli/commands/hook.doc.mjs +1 -1
  301. package/clients/cli/commands/init.doc.mjs +36 -24
  302. package/clients/cli/commands/integration-add.doc.mjs +1 -0
  303. package/clients/cli/commands/manifest.mjs +10 -3
  304. package/clients/cli/commands/mcp.doc.mjs +53 -0
  305. package/clients/cli/commands/mcp.mjs +51 -0
  306. package/clients/cli/commands/search.mjs +10 -2
  307. package/clients/cli/commands/swizzle.doc.mjs +8 -1
  308. package/clients/cli/commands/swizzle.mjs +13 -6
  309. package/clients/cli/commands/template.doc.mjs +3 -0
  310. package/clients/cli/commands/template.mjs +3 -2
  311. package/clients/cli/commands/theme-add.doc.mjs +2 -1
  312. package/clients/cli/commands/theme-build.doc.mjs +2 -1
  313. package/clients/cli/commands/theme-eject.doc.mjs +1 -1
  314. package/clients/cli/commands/theme-remove.doc.mjs +2 -1
  315. package/clients/cli/commands/theme-targets.doc.mjs +1 -0
  316. package/clients/cli/commands/theme-template.doc.mjs +1 -0
  317. package/clients/cli/commands/theme-use.doc.mjs +2 -1
  318. package/clients/cli/commands/theme.doc.mjs +7 -2
  319. package/clients/cli/commands/theme.mjs +31 -5
  320. package/clients/cli/commands/upgrade.doc.mjs +3 -2
  321. package/clients/cli/commands.generated.json +1 -1
  322. package/clients/cli/formatters/index.mjs +52 -6
  323. package/clients/cli/index.mjs +178 -64
  324. package/clients/cli/lib/base-gate.mjs +554 -0
  325. package/clients/cli/lib/command-path.mjs +26 -0
  326. package/clients/cli/lib/define-command.mjs +207 -11
  327. package/clients/cli/lib/json-shim.mjs +86 -32
  328. package/clients/cli/lib/manifest.d.ts +14 -0
  329. package/clients/cli/lib/manifest.mjs +87 -23
  330. package/clients/cli/lib/mcp-server.mjs +286 -0
  331. package/clients/cli/lib/mcp-tools.mjs +399 -0
  332. package/clients/cli/lib/root-args.mjs +79 -0
  333. package/clients/cli/lib/stray-option.mjs +21 -8
  334. package/clients/cli/lib/unknown-command.mjs +27 -6
  335. package/clients/cli/manifest.generated.json +1 -1
  336. package/clients/cli/run.mjs +13 -1
  337. package/foundation/agent-docs/agent-docs.d.mts +43 -1
  338. package/foundation/agent-docs/agent-docs.mjs +95 -7
  339. package/foundation/agent-docs/computer-agent-text.mjs +1 -1
  340. package/foundation/bases/core-docs.d.mts +10 -0
  341. package/foundation/bases/core-docs.mjs +42 -0
  342. package/foundation/bases/core.d.mts +11 -0
  343. package/foundation/bases/core.mjs +32 -0
  344. package/foundation/bases/requirements.d.mts +128 -0
  345. package/foundation/bases/requirements.mjs +193 -0
  346. package/foundation/bases/resolve.d.mts +130 -0
  347. package/foundation/bases/resolve.mjs +289 -0
  348. package/foundation/bases/state.d.mts +30 -0
  349. package/foundation/bases/state.mjs +73 -0
  350. package/foundation/bases/steps.d.mts +49 -0
  351. package/foundation/bases/steps.mjs +88 -0
  352. package/foundation/config/project.d.mts +19 -4
  353. package/foundation/config/project.mjs +95 -13
  354. package/foundation/discovery/cli-self-docs.mjs +9 -1
  355. package/foundation/discovery/command-pointers.d.mts +28 -0
  356. package/foundation/discovery/command-pointers.mjs +31 -0
  357. package/foundation/discovery/component-discovery.d.mts +9 -8
  358. package/foundation/discovery/component-discovery.mjs +9 -4
  359. package/foundation/discovery/docs-discovery.d.mts +13 -5
  360. package/foundation/discovery/docs-discovery.mjs +25 -6
  361. package/foundation/discovery/hook-discovery.d.mts +6 -6
  362. package/foundation/discovery/hook-discovery.mjs +6 -4
  363. package/foundation/discovery/icon-imports.d.mts +66 -0
  364. package/foundation/discovery/icon-imports.mjs +225 -0
  365. package/foundation/discovery/icon-ranking.d.mts +12 -2
  366. package/foundation/discovery/icon-ranking.mjs +197 -10
  367. package/foundation/discovery/icon-set-checks.mjs +2 -1
  368. package/foundation/discovery/icon-set-discovery.d.mts +28 -0
  369. package/foundation/discovery/icon-set-discovery.mjs +42 -0
  370. package/foundation/discovery/icon-set-writer.d.mts +2 -11
  371. package/foundation/discovery/icon-set-writer.mjs +3 -29
  372. package/foundation/discovery/module-exports.d.mts +1 -1
  373. package/foundation/discovery/module-exports.mjs +125 -26
  374. package/foundation/discovery/name-roots.d.mts +5 -0
  375. package/foundation/discovery/name-roots.mjs +11 -0
  376. package/foundation/discovery/runner-allowlist.d.mts +1 -0
  377. package/foundation/discovery/runner-allowlist.mjs +2 -0
  378. package/foundation/discovery/runner-commands.mjs +1 -0
  379. package/foundation/discovery/template-adapter.d.mts +1 -1
  380. package/foundation/discovery/template-adapter.mjs +5 -0
  381. package/foundation/discovery/template-icons.d.mts +45 -2
  382. package/foundation/discovery/template-icons.mjs +18 -52
  383. package/foundation/discovery/template-ids.d.mts +1 -1
  384. package/foundation/discovery/template-ids.mjs +5 -1
  385. package/foundation/discovery/template-needs.d.mts +20 -0
  386. package/foundation/discovery/template-needs.mjs +55 -1
  387. package/foundation/discovery/theme-discovery.mjs +3 -0
  388. package/foundation/discovery/theme-imports.mjs +2 -4
  389. package/foundation/doc-compiler/parse-readable.mjs +4 -3
  390. package/foundation/doc-compiler/stored-docs.d.mts +13 -0
  391. package/foundation/doc-compiler/stored-docs.mjs +74 -3
  392. package/foundation/doc-compiler/tree.d.mts +4 -2
  393. package/foundation/doc-compiler/tree.mjs +46 -1
  394. package/foundation/env/project-scope.d.mts +9 -0
  395. package/foundation/env/project-scope.mjs +28 -2
  396. package/foundation/fs/gather-cache.d.mts +23 -0
  397. package/foundation/fs/gather-cache.mjs +89 -1
  398. package/foundation/fs/module-loader.d.mts +3 -1
  399. package/foundation/fs/module-loader.mjs +85 -5
  400. package/foundation/fs/paths.d.mts +20 -2
  401. package/foundation/fs/paths.mjs +31 -1
  402. package/foundation/fs/read-record.mjs +9 -5
  403. package/foundation/identity/package-names.d.mts +18 -0
  404. package/foundation/identity/package-names.mjs +19 -0
  405. package/foundation/identity/providers.mjs +3 -2
  406. package/foundation/integrations/icon-features.d.mts +63 -0
  407. package/foundation/integrations/icon-features.mjs +54 -0
  408. package/foundation/integrations/integrations.d.mts +4 -0
  409. package/foundation/integrations/integrations.mjs +6 -1
  410. package/foundation/integrations/pack-state.d.mts +21 -0
  411. package/foundation/integrations/pack-state.mjs +42 -19
  412. package/foundation/integrations/validate-contributions.d.mts +9 -3
  413. package/foundation/integrations/validate-contributions.mjs +40 -13
  414. package/foundation/release/notices.d.mts +15 -0
  415. package/foundation/release/notices.mjs +103 -6
  416. package/foundation/release/project.d.mts +3 -4
  417. package/foundation/release/project.mjs +5 -6
  418. package/foundation/release/run-context.d.mts +7 -2
  419. package/foundation/release/run-context.mjs +6 -2
  420. package/foundation/render/cut-short.d.mts +7 -1
  421. package/foundation/render/cut-short.mjs +46 -6
  422. package/foundation/render/picture-chrome.mjs +41 -28
  423. package/foundation/render/picture-playwright.mjs +65 -42
  424. package/foundation/render/picture-window.d.mts +26 -0
  425. package/foundation/render/picture-window.mjs +54 -0
  426. package/foundation/render/render-page.d.mts +6 -3
  427. package/foundation/render/render-page.mjs +32 -5
  428. package/foundation/render/restore-folder.d.mts +13 -0
  429. package/foundation/render/restore-folder.mjs +30 -0
  430. package/foundation/render/ts-paths.d.mts +11 -0
  431. package/foundation/render/ts-paths.mjs +27 -2
  432. package/foundation/response/base.d.ts +25 -0
  433. package/foundation/response/error-codes.d.mts +4 -1
  434. package/foundation/response/error-codes.d.ts +4 -1
  435. package/foundation/response/error-codes.doc.mjs +17 -0
  436. package/foundation/response/error-codes.mjs +21 -0
  437. package/foundation/response/json.d.mts +3 -1
  438. package/foundation/response/json.mjs +7 -2
  439. package/foundation/response/response-types.doc.mjs +8 -8
  440. package/foundation/suggest/name-index.d.mts +2 -1
  441. package/foundation/suggest/name-index.mjs +1 -1
  442. package/foundation/suggest/other-command.mjs +18 -4
  443. package/foundation/text/icon-id.d.mts +20 -0
  444. package/foundation/text/icon-id.mjs +40 -0
  445. package/foundation/text/icon-set-next.d.mts +25 -0
  446. package/foundation/text/icon-set-next.mjs +29 -0
  447. package/foundation/text/string-utils.d.mts +3 -2
  448. package/foundation/text/string-utils.mjs +4 -2
  449. package/foundation/xle/browser.d.mts +2 -2
  450. package/package.json +6 -6
  451. package/assets/templates/pages/access-denied/page.tsx +0 -101
  452. package/assets/templates/pages/access-denied/template.doc.mjs +0 -24
  453. package/assets/templates/pages/error-page/page.tsx +0 -130
  454. package/assets/templates/pages/error-page/template.doc.mjs +0 -22
  455. package/assets/templates/pages/not-found/page.tsx +0 -124
  456. package/assets/templates/pages/not-found/template.doc.mjs +0 -30
  457. package/assets/templates/pages/review-workspace/page.tsx +0 -551
  458. package/assets/templates/pages/review-workspace/template.doc.mjs +0 -31
  459. package/assets/templates/pages/run-console/page.tsx +0 -945
  460. package/assets/templates/pages/run-console/template.doc.mjs +0 -27
  461. package/assets/templates/pages/welcome-portal/page.tsx +0 -538
  462. package/assets/templates/pages/welcome-portal/template.doc.mjs +0 -38
package/README.md CHANGED
@@ -94,6 +94,8 @@ Options:
94
94
 
95
95
  Each command declares what it does in a folder outside any project, and `astryx manifest --json` publishes it as `outsideProject`: `same` gives the answer a new project on this release would get, `refuse` writes nothing and fails with `ERR_PROJECT_REQUIRED` (or the code its earlier releases used), and `own` does something else that its docs (`astryx docs cli/commands/<name>`) describe.
96
96
 
97
+ Every run reads one base: Core, or an installed integration whose manifest declares `base`. The global `--base <package>` picks it; otherwise, in an integration package, the base it is or builds on answers, then the project's Core, then its one installed base, then Core. A command that needs a platform step declares it in `requires`, and `astryx manifest --json` publishes `requires` and `available`. Help hides a command the base does not serve, and running it fails with `ERR_BASE_CAPABILITY` and a `requirement` object.
98
+
97
99
  <!-- BEGIN GENERATED: commands -->
98
100
 
99
101
  | Command | Description | Outside a project |
@@ -109,6 +111,7 @@ Each command declares what it does in a folder outside any project, and `astryx
109
111
  | `hook` | List hooks or print hook docs | `same` |
110
112
  | `init` | Initialize the design system in your project | `own` |
111
113
  | `integration` | Author and verify an Astryx integration package | by subcommand |
114
+ | `mcp` | For AI tools that cannot run commands: serve every astryx command as an MCP tool, over stdio | `same` |
112
115
  | `search` | Search components, hooks, docs, templates, and themes in one ranked list | `same` |
113
116
  | `swizzle` | Copy component source for customization | `refuse` |
114
117
  | `template` | List, show, or scaffold page and block templates | `same` |
@@ -238,6 +241,9 @@ if (isError(result)) {
238
241
  | `ERR_SIGNAL_TERMINATED` | Recorded in the debug log, never printed: the process was ended by a signal (Ctrl-C, SIGTERM) before the command reached a terminal path. |
239
242
  | `ERR_VERSIONS_UNAVAILABLE` | Nothing could answer this run, and nothing was written: the project's own CLI could not start and nothing else could answer, or the Core a command needs outside a project could not be installed. |
240
243
  | `ERR_PROJECT_REQUIRED` | The command needs a project (an app with Astryx installed, or an integration package) and was run outside one. Nothing was written. |
244
+ | `ERR_BASE_CAPABILITY` | The command, or an option or argument value given to it, needs a step the run's base does not serve. Nothing was written. The envelope's `requirement` names the command, the steps, and the base. |
245
+ | `ERR_BASE_NOT_FOUND` | `--base` names a package that is not installed where the run can read it, or that is not Core and does not declare `base`. Nothing was done. |
246
+ | `ERR_BASE_AMBIGUOUS` | The project installs two or more bases and no Core, and the run named none with `--base`. Nothing was done. |
241
247
 
242
248
  <!-- END GENERATED: error-codes -->
243
249
  <!-- Generated by scripts/generate-cli-readme.mjs from the error-codes EnumDoc (== ERROR_CODES). Run `pnpm -F @astryxdesign/cli readme`. -->
@@ -475,7 +481,7 @@ Every response has a `type` discriminant. The full set is below (generated from
475
481
 
476
482
  | Type | What `data` carries |
477
483
  | --------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
478
- | `init.run` | The install receipt: the `mode` (`default` \| `features`), the features run, agent-doc files written, any soft `docsError`, whether theme guidance was emitted, the template outcome (`workflow` \| `created` \| `skipped`) plus its path, and whether the next-steps were emitted. |
484
+ | `init.run` | The install receipt: the `mode` (`default` \| `features`), the features run, agent-doc files written, `agentDocsStatus` (`missing` \| `stale` \| `current`: the agent docs before the write; null when agent docs were not installed or the write failed), what changed in each (`docsChanges`: `{path, change, from, to}`), any soft `docsError`, whether theme guidance was emitted, the template outcome (`workflow` \| `created` \| `skipped`) plus its path, and whether the next-steps were emitted (false outside a project, and when `agentDocsStatus` was `current`). |
479
485
  | `init.remove` | The removal receipt — returned when --remove-agents is set: `data.removed` is true when a managed agent-docs block was found and removed, and false when there was none to remove. |
480
486
  | `init.user` | The computer-level agent text receipt — returned when --user is set: `data.files`, one `{path, action, reason?}` per path acted on, the skill file first and then each link to its folder (action `written` \| `linked` \| `unchanged` \| `removed` \| `absent` \| `kept`; `reason` only on `kept`: `edited` when a person changed the text, `not-astryx` when Astryx did not write it), `data.command` (the command the text names), and `data.warnings`. |
481
487
  | `component.list` | The component catalog grouped by component group (each component's group field): `detail` (the level: names \| compact \| full) and `components`, the grouped map of names entries ({name, package, and optional canonical import for integrations}), brief entries ({name, package, description, import}), or a full ComponentDoc per entry with its package. |
@@ -486,8 +492,8 @@ Every response has a `type` discriminant. The full set is below (generated from
486
492
  | `component.detail.showcase` | One component's showcase example, as {component, aspectRatio, source}. The envelope's package names the npm package that owns the component. |
487
493
  | `component.detail.blocks` | One component's example blocks, as {component, showcase, examples, related} of BlockEntry ({name, package, displayName, description, isShowcase, category, isReady}); each block names the package that owns it, and the envelope's package names the component's owner. |
488
494
  | `docs.list` | All reference-doc topics as DocsListEntry[] ({topic, description, package, replaces?, replacedPackage?}), in read order; meta.namespaces lists the docs tree's top-level namespaces, and meta.notLoaded each package whose docs did not load. |
489
- | `docs.detail` | One topic's full ReferenceDoc (the JSON read of a topic, --full, --dense, or a topic with one section), with token-ref blocks inlined and each section naming the package that wrote it, plus links ({up, previous, next}: the commands that open the level it sits in and its neighbors there). A topic or guide that took another's place carries replaces and replacedPackage, the package whose topic or guide it replaced. |
490
- | `docs.index` | One topic's section index, the text read of a topic with more than one section (and --index): the topic's name, title, and description, plus sections, each {id, title, package, summary} (pass the id as the section argument; package is the npm package that wrote the section; summary is the section's one-line summary), and links ({up, previous, next}: the commands that open the level it sits in and its neighbors there); replaces and replacedPackage when the topic or guide took another's place. |
495
+ | `docs.detail` | One topic's full ReferenceDoc (the JSON read of a topic; in text, a read of a topic whose whole text is 16 KB or less, --full, or --dense), with token-ref blocks inlined and each section naming the package that wrote it, plus links ({up, previous, next}: the commands that open the level it sits in and its neighbors there). A topic or guide that took another's place carries replaces and replacedPackage, the package whose topic or guide it replaced. |
496
+ | `docs.index` | One topic's section index, the text read of a topic whose whole text is over 16 KB (and --index): the topic's name, title, and description, plus sections, each {id, title, package, summary} (pass the id as the section argument; package is the npm package that wrote the section; summary is the section's one-line summary), and links ({up, previous, next}: the commands that open the level it sits in and its neighbors there); replaces and replacedPackage when the topic or guide took another's place. |
491
497
  | `docs.detail.section` | One ReferenceSection of a topic, found by key or title, with token-ref blocks inlined, plus links ({up, previous, next}: the commands that open its topic index and the sections before and after it). The envelope's package names the npm package that wrote the section. |
492
498
  | `docs.node` | One node of the docs tree, read by its route: its id, kind, package, title, summary, and breadcrumb, plus a namespace's slots with their children (one level down, each naming its package, and a guide an integration replaced its replaces and replacedPackage) or a typed doc's content, and links ({up, previous, next, related}: the commands that open its parent, its neighbors, and the docs it names). |
493
499
  | `blog.list` | The feed URL plus every post parsed from the RSS feed, each with slug, title, description, date, type, authors, link, and plaintext URL. |
@@ -499,8 +505,8 @@ Every response has a `type` discriminant. The full set is below (generated from
499
505
  | `discover.search` | The echoed query plus every matching item and package across all packages, each with its kind and whether the project has it, even when only one matches; total is set when --limit cut the list. |
500
506
  | `search` | The echoed query, `matchCount` (total matches, before `limit`), and results, a ranked SearchResultEntry[] bounded by `limit`: each {domain, name, package, score, reason, description, command} (package is the npm package that owns the result), plus import (components, hooks), title, parent (the command that opens the level above), and, for a hit on one section, section (docs), or displayName, kind and isReady (templates; false when the template doc sets isReady: false). The result for a deprecated component also carries deprecated {replacement, description}: the name of the component to use instead and the modernization route, from its doc. When a search with no `type` could not obtain @astryxdesign/core, `meta.partial` is {skipped, reason}: the domains it skipped (component, hook, template) and why. |
501
507
  | `build.help` | The how-to-build-a-page playbook, emitted when no query is given: `playbook: true`, a title, the ordered steps (title, commands, optional returns), the on-system rules, and related lookups. Commands are bare subcommands for the caller to render with its own invocation. |
502
- | `build.kit` | The template to start from and its kit: query, hasResults, matchCount (never a cap), directMatch, start {name, package, command, basis, reason, alternatives, ..., isReady} (the start and each alternative name the package that owns the template, and carry isReady), pages (search's closest templates that build could start from), blocks and domain as SearchResultEntry[] (each naming its package; each template with isReady), frame and foundation (Core component names), and hint {reason, commands} when thin. |
503
- | `swizzle.list` | The names of swizzlable components discoverable from cwd's @astryxdesign/core. The envelope's package is @astryxdesign/core. |
508
+ | `build.kit` | The template to start from and its kit: query, hasResults, matchCount (never a cap), directMatch, start {name, package, command, basis, reason, alternatives, ..., isReady} (the start and each alternative name the package that owns the template, and carry isReady), pages (search's closest templates that build could start from), blocks and domain as SearchResultEntry[] (each naming its package; each template with isReady), frame and foundation (Core component names in a run on Core; empty in a run on another base), and hint {reason, commands} when thin. |
509
+ | `swizzle.list` | The names of swizzlable components discoverable from cwd's @astryxdesign/core; none in a run on another base. The envelope's package is the run's active base: @astryxdesign/core in a run on Core. |
504
510
  | `swizzle.copy` | An eject receipt: component name, owning package, output directory, files-copied count, the copied file names (relative to the component folder; owner modules copied beside it start with ../), whether any file uses StyleX, and, when the owner has an issues URL, feedback ({issuesUrl, ghCommand?}): where to report the gap that led to swizzling. The envelope's package names the same owning package. |
505
511
  | `gap-report.categories` | The fixed gap category values and human-readable labels; when a loaded integration names its own issues URL, meta.destinations lists every destination ({to, default, issuesUrl}) and meta.ask tells an agent to ask the person. |
506
512
  | `gap-report.file` | An aggregate receipt: overall status, the selected package, issuesUrl (or null), deliveries in handler order, each {handlerType: project \| integration \| fallback, handler, audience, status, url, message}, and filedCount/routedOnlyCount totals; without --to, when a loaded integration names its own issues URL, destinations and ask as on gap-report.categories. |
@@ -509,7 +515,7 @@ Every response has a `type` discriminant. The full set is below (generated from
509
515
  | `template.skeleton` | A layout skeleton (structural tags with spatial annotations) plus the template's description, the components it composes, and isReady. The envelope's package names the npm package that owns the template. |
510
516
  | `template.copy` | A scaffold receipt: template id, output directory (relative to the project; absolute for a scratch copy in the system temp folder), written file name, file count, givenPath (optional; the absolute path as given, present only when it was inside the project), demoMediaReplaced (how many Astryx demo media references were replaced with placeholders), demoContentReplaced (how many Astryx docs-only demo content elements were replaced with a Text placeholder), notes (setup notes naming what the template needs that the project lacks — missing packages, missing StyleX compiler; empty when satisfied), missingPackages (external package names the template imports that are not in the project), and installCommand (a ready-to-run install command with the detected package manager and workspace version ranges; null when nothing is missing, or when several lockfiles leave the package manager undetermined), and isReady. The envelope's package names the npm package that owns the template. |
511
517
  | `template.cdn` | A write receipt for the no-build-step CDN starter page: the path (relative to cwd), the Astryx version every CDN URL was pinned to, whether it was written, and the reason it was not. `exists` when a file was already there, which is a success. |
512
- | `hook.list` | The hook catalog grouped by category: `detail` (the level: names \| compact \| full) and `components`, the grouped map of hook names, brief entries, or a full HookDoc per entry. The envelope's package is @astryxdesign/core, the only package that ships hooks. |
518
+ | `hook.list` | The hook catalog grouped by category: `detail` (the level: names \| compact \| full) and `components`, the grouped map of hook names, brief entries, or a full HookDoc per entry. The envelope's package is the run's active base: @astryxdesign/core in a run on Core. |
513
519
  | `hook.detail` | One hook's full authored HookDoc. The envelope's package is @astryxdesign/core. |
514
520
  | `hook.detail.params` | Just one hook's parameters table (HookParamDoc[]). The envelope's package is @astryxdesign/core. |
515
521
  | `theme.build` | A theme build receipt: name, tokenCount and componentCount (override counts), sizeKB, the written outputs {css, cssDts, js, dts, and variantsDts when applicable}, warnings (defects to fix), and notices (advisories about a correct theme, such as a named font it does not load). A --family build whose root extends a theme the family does not select adds base {theme, package (the installed package it comes from, or null for a local base: a file of the project or a theme defined in the file of the root), export (the name the root imports it by, or null for a theme defined in the file of the root)}: a requirement of the outputs. |
@@ -136,10 +136,11 @@ export function pageDestination(id: string, cwd: string): string | null;
136
136
  * The Core a build answers from: the project's, else the release's own,
137
137
  * installed into the per-user cache first when needed (a network install
138
138
  * and an npm subprocess; spec AST-081 FR3). Throws as requireCoreDir does.
139
+ * Null in a run whose base is not Core, which builds from its integrations.
139
140
  * @param {string} cwd
140
- * @returns {string}
141
+ * @returns {string | null}
141
142
  */
142
- export function requireBuildCoreDir(cwd: string): string;
143
+ export function buildCoreContentDir(cwd: string): string | null;
143
144
  export { withListingCache } from "../../foundation/fs/listing-cache.mjs";
144
145
  /**
145
146
  * A page template the kit can recommend starting from.