@astryxdesign/cli 0.7.18-canary.gfacee17 → 0.7.18

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 (363) hide show
  1. package/CHANGELOG.md +185 -19
  2. package/README.md +19 -19
  3. package/api/component/_adapter.d.mts +2 -1
  4. package/api/component/_adapter.mjs +2 -1
  5. package/api/docs/_adapter.d.mts +6 -5
  6. package/api/docs/_adapter.mjs +36 -5
  7. package/api/doctor/_adapter.d.mts +6 -3
  8. package/api/doctor/_adapter.mjs +13 -5
  9. package/api/doctor/doctor.mjs +5 -5
  10. package/api/doctor/font-packages.d.mts +36 -0
  11. package/api/doctor/font-packages.mjs +124 -0
  12. package/api/doctor/theme-checks.mjs +110 -49
  13. package/api/experimental.d.mts +0 -2
  14. package/api/experimental.mjs +0 -12
  15. package/api/icon/_adapter.d.mts +2 -2
  16. package/api/icon/_adapter.mjs +6 -2
  17. package/api/icon/_authoring.mjs +22 -13
  18. package/api/icon/_default-look.mjs +15 -15
  19. package/api/icon/add/add.mjs +14 -9
  20. package/api/icon/icon.doc.mjs +7 -7
  21. package/api/icon/icon.type.d.mts +33 -33
  22. package/api/icon/icon.type.mjs +45 -45
  23. package/api/icon/iconAdd.doc.mjs +9 -10
  24. package/api/icon/iconMap.doc.mjs +11 -12
  25. package/api/icon/iconNewDefinition.doc.mjs +8 -8
  26. package/api/icon/iconNewSet.doc.mjs +5 -5
  27. package/api/icon/map/map.mjs +7 -7
  28. package/api/icon/use/use.mjs +4 -4
  29. package/api/init/run/run.mjs +0 -1
  30. package/api/integration/add-helpers.mjs +1 -1
  31. package/api/integration/validate-integration.type.d.mts +6 -6
  32. package/api/integration/validate-integration.type.mjs +6 -6
  33. package/api/render/_adapter.d.mts +5 -3
  34. package/api/render/_adapter.mjs +64 -4
  35. package/api/render/render.doc.mjs +9 -2
  36. package/api/render/render.mjs +5 -2
  37. package/api/render/render.type.d.mts +17 -0
  38. package/api/render/render.type.mjs +10 -0
  39. package/api/search/ORDERING.md +1 -1
  40. package/api/search/_candidate-score.mjs +20 -0
  41. package/api/search/_words.d.mts +8 -0
  42. package/api/search/_words.mjs +15 -0
  43. package/api/template/template.type.d.mts +2 -2
  44. package/api/template/template.type.mjs +2 -2
  45. package/api/theme/_adapter.mjs +19 -11
  46. package/api/theme/build/build.d.mts +19 -51
  47. package/api/theme/build/build.mjs +195 -189
  48. package/api/theme/build/font-warning.d.mts +19 -2
  49. package/api/theme/build/font-warning.mjs +46 -5
  50. package/api/theme/generateTonalPalette.doc.mjs +1 -1
  51. package/api/theme/palette/generate/derive-look.mjs +108 -37
  52. package/api/theme/palette/generate/mapping.mjs +2 -0
  53. package/api/theme/template/template.d.mts +0 -17
  54. package/api/theme/template/template.mjs +1 -42
  55. package/api/theme/theme.type.d.mts +5 -4
  56. package/api/theme/theme.type.mjs +5 -4
  57. package/api/theme/themePaletteGenerate.doc.mjs +1 -1
  58. package/api/theme/themeRemove.doc.mjs +1 -1
  59. package/assets/codemods/transforms/v0.7.0/preserve-bottom-sheet-content-padding.mjs +3 -1
  60. package/assets/component-list.generated.json +1 -1
  61. package/assets/discover/official-packages.json +26 -2
  62. package/assets/docs/author-a-theme.doc.mjs +6 -5
  63. package/assets/docs/browser-support.doc.mjs +1 -0
  64. package/assets/docs/icons.doc.mjs +8 -7
  65. package/assets/docs/motion.doc.mjs +46 -0
  66. package/assets/docs/theme.doc.dense.mjs +6 -17
  67. package/assets/docs/theme.doc.mjs +6 -16
  68. package/assets/docs/theme.doc.zh.mjs +6 -16
  69. package/assets/docs/tree/ci-and-containers.doc.mjs +1 -1
  70. package/assets/docs/tree/data-colors-in-renderers.doc.mjs +400 -0
  71. package/assets/docs/tree/font-setup.doc.mjs +30 -0
  72. package/assets/docs/tree/icon-sets.doc.mjs +2 -2
  73. package/assets/docs/tree/share-a-page.doc.mjs +1 -1
  74. package/assets/docs/tree/template-icons.doc.mjs +3 -3
  75. package/assets/docs/tree/tokens-color.doc.mjs +5 -0
  76. package/assets/docs/tree/tokens.doc.mjs +4 -3
  77. package/assets/docs/tree/updates.doc.mjs +1 -1
  78. package/assets/docs/tree/visualization.doc.mjs +30 -0
  79. package/assets/docs-routes.generated.json +1 -1
  80. package/assets/docs.generated.json +2 -2
  81. package/assets/icons/definitions/drag.doc.mjs +1 -0
  82. package/assets/search-catalog.generated.json +2 -2
  83. package/assets/self-audit.generated.json +1 -1
  84. package/assets/templates/blocks/components/Card/SelectableCardElevated.doc.mjs +1 -1
  85. package/assets/templates/blocks/components/Card/SelectableCardElevated.tsx +20 -10
  86. package/assets/templates/blocks/components/Card/SelectableCardShowcase.doc.mjs +1 -1
  87. package/assets/templates/blocks/components/Card/SelectableCardShowcase.tsx +36 -16
  88. package/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputMentionTrigger.tsx +6 -0
  89. package/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputMultipleTriggers.tsx +6 -0
  90. package/assets/templates/blocks/components/Hooks/useIndicatorFocusRingHookUsage.doc.mjs +14 -0
  91. package/assets/templates/blocks/components/Hooks/useIndicatorFocusRingHookUsage.tsx +63 -0
  92. package/assets/templates/blocks/components/Hooks/useLongPressHookUsage.doc.mjs +29 -0
  93. package/assets/templates/blocks/components/Hooks/useLongPressHookUsage.tsx +237 -0
  94. package/assets/templates/blocks/components/SideNav/SideNavShowcase.tsx +10 -72
  95. package/assets/templates/blocks/components/SideNav/SideNavWithHeaderMenu.doc.mjs +1 -1
  96. package/assets/templates/blocks/components/SideNav/SideNavWithHeaderMenu.tsx +7 -7
  97. package/assets/templates/blocks/components/Table/TableCustomRowTable.doc.mjs +14 -0
  98. package/assets/templates/blocks/components/Table/TableCustomRowTable.tsx +96 -0
  99. package/assets/templates/components.generated.json +1 -1
  100. package/assets/templates/pages/ai-chat-landing/page.tsx +4 -0
  101. package/assets/templates/pages/dashboard-scorecard/page.tsx +26 -7
  102. package/assets/templates/pages/editor/page.tsx +13 -3
  103. package/assets/templates/themes/butter/butterPaletteRefs.generated.ts +2 -2
  104. package/assets/templates/themes/butter/butterTheme.ts +12 -10
  105. package/assets/templates/themes/butter/icons.tsx +2 -0
  106. package/assets/templates/themes/chocolate/chocolateTheme.ts +1 -0
  107. package/assets/templates/themes/chocolate/icons.tsx +2 -0
  108. package/assets/templates/themes/gothic/gothicPaletteRefs.generated.ts +1 -1
  109. package/assets/templates/themes/gothic/gothicTheme.ts +1 -0
  110. package/assets/templates/themes/gothic/icons.tsx +2 -0
  111. package/assets/templates/themes/matcha/icons.tsx +2 -0
  112. package/assets/templates/themes/matcha/matchaPaletteRefs.generated.ts +2 -2
  113. package/assets/templates/themes/matcha/matchaTheme.ts +1 -0
  114. package/assets/templates/themes/neutral/icons.tsx +2 -0
  115. package/assets/templates/themes/neutral/neutralPaletteRefs.generated.ts +2 -2
  116. package/assets/templates/themes/neutral/neutralTheme.ts +1 -0
  117. package/assets/templates/themes/stone/icons.tsx +2 -0
  118. package/assets/templates/themes/stone/stonePaletteRefs.generated.ts +1 -1
  119. package/assets/templates/themes/stone/stoneTheme.ts +1 -0
  120. package/assets/templates/themes/y2k/icons.tsx +2 -0
  121. package/assets/templates/themes/y2k/y2kTheme.ts +1 -0
  122. package/assets/theme.template.ts +9 -5
  123. package/authoring/config/parse.mjs +1 -1
  124. package/authoring/doctypes/base/type.ts +2 -3
  125. package/authoring/doctypes/component/component.doc.mjs +1 -1
  126. package/authoring/doctypes/icon-set/icon-names.mjs +1 -0
  127. package/authoring/integration/integration.doc.mjs +1 -1
  128. package/authoring/integration/type.ts +1 -1
  129. package/clients/cli/build-id.generated.json +1 -1
  130. package/clients/cli/commands/doctor.mjs +2 -2
  131. package/clients/cli/commands/experimental/export.mjs +2 -1
  132. package/clients/cli/commands/experimental/icon.mjs +17 -17
  133. package/clients/cli/commands/experimental/index.mjs +0 -5
  134. package/clients/cli/commands/experimental/render-output.mjs +9 -0
  135. package/clients/cli/commands/experimental-export.doc.mjs +6 -0
  136. package/clients/cli/commands/experimental-icon-add.doc.mjs +8 -8
  137. package/clients/cli/commands/experimental-icon-map.doc.mjs +6 -6
  138. package/clients/cli/commands/experimental-icon-new-definition.doc.mjs +6 -6
  139. package/clients/cli/commands/experimental-icon-new-set.doc.mjs +3 -3
  140. package/clients/cli/commands/experimental-icon-use.doc.mjs +1 -1
  141. package/clients/cli/commands/experimental-icon.doc.mjs +6 -6
  142. package/clients/cli/commands/experimental.doc.mjs +2 -6
  143. package/clients/cli/commands/template.mjs +1 -1
  144. package/clients/cli/commands/theme-build.doc.mjs +8 -1
  145. package/clients/cli/commands/theme-palette-generate.doc.mjs +1 -1
  146. package/clients/cli/commands/theme-remove.doc.mjs +1 -1
  147. package/clients/cli/commands/theme.doc.mjs +1 -11
  148. package/clients/cli/commands/theme.mjs +110 -475
  149. package/clients/cli/commands.generated.json +1 -1
  150. package/clients/cli/index.mjs +4 -34
  151. package/clients/cli/lib/base-gate.mjs +2 -3
  152. package/clients/cli/lib/cli-error.mjs +8 -72
  153. package/clients/cli/lib/define-command.mjs +0 -19
  154. package/clients/cli/lib/json-shim.mjs +11 -633
  155. package/clients/cli/lib/manifest.mjs +0 -4
  156. package/clients/cli/lib/stray-option.mjs +1 -2
  157. package/clients/cli/manifest.generated.json +1 -1
  158. package/foundation/agent-docs/agent-docs.mjs +1 -1
  159. package/foundation/color/css-color.mjs +2 -3
  160. package/foundation/discovery/app-layout.d.mts +13 -0
  161. package/foundation/discovery/app-layout.mjs +35 -0
  162. package/foundation/discovery/cli-self-docs.mjs +4 -4
  163. package/foundation/discovery/fixture-refs.d.mts +51 -0
  164. package/foundation/discovery/fixture-refs.mjs +351 -0
  165. package/foundation/discovery/icon-definition-discovery.mjs +7 -7
  166. package/foundation/discovery/icon-ranking.mjs +2 -2
  167. package/foundation/discovery/icon-set-checks.mjs +6 -6
  168. package/foundation/discovery/icon-set-discovery.mjs +2 -2
  169. package/foundation/discovery/icon-set-writer.d.mts +24 -7
  170. package/foundation/discovery/icon-set-writer.mjs +75 -31
  171. package/foundation/discovery/static-descriptor.d.mts +49 -0
  172. package/foundation/discovery/static-descriptor.mjs +548 -0
  173. package/foundation/discovery/template-adapter.d.mts +0 -47
  174. package/foundation/discovery/template-adapter.mjs +1 -333
  175. package/foundation/discovery/theme-discovery.d.mts +6 -47
  176. package/foundation/discovery/theme-discovery.mjs +15 -537
  177. package/foundation/doc-compiler/bundle.mjs +2 -2
  178. package/foundation/doc-compiler/import.mjs +1 -1
  179. package/foundation/env/user-dirs.d.mts +5 -2
  180. package/foundation/env/user-dirs.mjs +12 -5
  181. package/foundation/fonts/next-font.d.mts +26 -0
  182. package/foundation/fonts/next-font.mjs +149 -0
  183. package/foundation/fs/empty-folder.mjs +2 -2
  184. package/foundation/fs/read-record.mjs +11 -4
  185. package/foundation/pictures/pictures.d.mts +152 -0
  186. package/foundation/pictures/pictures.mjs +565 -0
  187. package/foundation/release/folder-lock.mjs +3 -2
  188. package/foundation/render/cut-short.d.mts +2 -2
  189. package/foundation/render/cut-short.mjs +2 -2
  190. package/foundation/render/drawn-contrast.d.mts +2 -2
  191. package/foundation/render/drawn-contrast.mjs +2 -2
  192. package/foundation/render/font-probe.d.mts +2 -2
  193. package/foundation/render/font-probe.mjs +2 -2
  194. package/foundation/render/layers.mjs +1 -2
  195. package/foundation/render/package-resolve-hooks.d.mts +25 -5
  196. package/foundation/render/package-resolve-hooks.mjs +77 -14
  197. package/foundation/render/page-worker.mjs +24 -12
  198. package/foundation/render/part-boxes.d.mts +2 -3
  199. package/foundation/render/part-boxes.mjs +2 -3
  200. package/foundation/render/picture-chrome.mjs +18 -15
  201. package/foundation/render/picture-playwright.mjs +10 -7
  202. package/foundation/render/picture-window.d.mts +13 -0
  203. package/foundation/render/picture-window.mjs +31 -0
  204. package/foundation/render/render-page.d.mts +1 -1
  205. package/foundation/render/render-page.mjs +4 -5
  206. package/foundation/render/single-copy-hooks.d.mts +2 -0
  207. package/foundation/render/single-copy-hooks.mjs +2 -0
  208. package/foundation/response/error-codes.doc.mjs +14 -14
  209. package/foundation/response/error-codes.mjs +13 -13
  210. package/foundation/response/response-types.doc.mjs +8 -69
  211. package/foundation/runtime/css-tree.mjs +2 -2
  212. package/foundation/runtime/word-table.d.mts +1 -1
  213. package/foundation/runtime/word-table.mjs +1 -1
  214. package/foundation/suggest/other-command.d.mts +52 -15
  215. package/foundation/suggest/other-command.mjs +168 -45
  216. package/foundation/text/suggest-order.d.mts +7 -0
  217. package/foundation/text/suggest-order.mjs +1 -1
  218. package/package.json +7 -8
  219. package/api/theme-edit/_adapter.d.mts +0 -228
  220. package/api/theme-edit/_adapter.mjs +0 -2025
  221. package/api/theme-edit/_catalog.d.mts +0 -172
  222. package/api/theme-edit/_catalog.mjs +0 -806
  223. package/api/theme-edit/_check.d.mts +0 -391
  224. package/api/theme-edit/_check.mjs +0 -9370
  225. package/api/theme-edit/_color.d.mts +0 -135
  226. package/api/theme-edit/_color.mjs +0 -480
  227. package/api/theme-edit/_compiler.d.mts +0 -77
  228. package/api/theme-edit/_compiler.mjs +0 -1053
  229. package/api/theme-edit/_context.d.mts +0 -399
  230. package/api/theme-edit/_context.mjs +0 -1778
  231. package/api/theme-edit/_css.d.mts +0 -169
  232. package/api/theme-edit/_css.mjs +0 -1167
  233. package/api/theme-edit/_edit.d.mts +0 -167
  234. package/api/theme-edit/_edit.mjs +0 -11220
  235. package/api/theme-edit/_how-commands.d.mts +0 -315
  236. package/api/theme-edit/_how-commands.mjs +0 -1664
  237. package/api/theme-edit/_how-question.d.mts +0 -341
  238. package/api/theme-edit/_how-question.mjs +0 -33291
  239. package/api/theme-edit/_how-sides.d.mts +0 -22
  240. package/api/theme-edit/_how-sides.mjs +0 -173
  241. package/api/theme-edit/_how-steps.d.mts +0 -42
  242. package/api/theme-edit/_how-steps.mjs +0 -208
  243. package/api/theme-edit/_how-values.d.mts +0 -29
  244. package/api/theme-edit/_how-values.mjs +0 -111
  245. package/api/theme-edit/_how-words.d.mts +0 -15
  246. package/api/theme-edit/_how-words.mjs +0 -239
  247. package/api/theme-edit/_how.d.mts +0 -55
  248. package/api/theme-edit/_how.mjs +0 -2388
  249. package/api/theme-edit/_importers.d.mts +0 -38
  250. package/api/theme-edit/_importers.mjs +0 -188
  251. package/api/theme-edit/_marks.d.mts +0 -39
  252. package/api/theme-edit/_marks.mjs +0 -67
  253. package/api/theme-edit/_missed.d.mts +0 -56
  254. package/api/theme-edit/_missed.mjs +0 -1128
  255. package/api/theme-edit/_name-rule.d.mts +0 -11
  256. package/api/theme-edit/_name-rule.mjs +0 -12
  257. package/api/theme-edit/_normal.d.mts +0 -365
  258. package/api/theme-edit/_normal.mjs +0 -1978
  259. package/api/theme-edit/_overview.d.mts +0 -9
  260. package/api/theme-edit/_overview.mjs +0 -293
  261. package/api/theme-edit/_palette.d.mts +0 -616
  262. package/api/theme-edit/_palette.mjs +0 -2776
  263. package/api/theme-edit/_part-pieces.d.mts +0 -54
  264. package/api/theme-edit/_part-pieces.mjs +0 -179
  265. package/api/theme-edit/_part-words.d.mts +0 -39
  266. package/api/theme-edit/_part-words.mjs +0 -242
  267. package/api/theme-edit/_parts.d.mts +0 -402
  268. package/api/theme-edit/_parts.mjs +0 -2294
  269. package/api/theme-edit/_picture-traits.d.mts +0 -259
  270. package/api/theme-edit/_picture-traits.mjs +0 -1030
  271. package/api/theme-edit/_png.d.mts +0 -94
  272. package/api/theme-edit/_png.mjs +0 -479
  273. package/api/theme-edit/_preview-app.d.mts +0 -172
  274. package/api/theme-edit/_preview-app.mjs +0 -6430
  275. package/api/theme-edit/_preview.d.mts +0 -549
  276. package/api/theme-edit/_preview.mjs +0 -3264
  277. package/api/theme-edit/_project.d.mts +0 -207
  278. package/api/theme-edit/_project.mjs +0 -643
  279. package/api/theme-edit/_resolved.d.mts +0 -46
  280. package/api/theme-edit/_resolved.mjs +0 -800
  281. package/api/theme-edit/_set-line.d.mts +0 -29
  282. package/api/theme-edit/_set-line.mjs +0 -100
  283. package/api/theme-edit/_settings.d.mts +0 -2426
  284. package/api/theme-edit/_settings.mjs +0 -18435
  285. package/api/theme-edit/_tables.d.mts +0 -227
  286. package/api/theme-edit/_tables.mjs +0 -1128
  287. package/api/theme-edit/_text-looks.d.mts +0 -78
  288. package/api/theme-edit/_text-looks.mjs +0 -376
  289. package/api/theme-edit/_vet.d.mts +0 -50
  290. package/api/theme-edit/_vet.mjs +0 -166
  291. package/api/theme-edit/how/how.d.mts +0 -17
  292. package/api/theme-edit/how/how.mjs +0 -28
  293. package/api/theme-edit/new/new.d.mts +0 -11
  294. package/api/theme-edit/new/new.mjs +0 -22
  295. package/api/theme-edit/preview-add/preview-add.d.mts +0 -14
  296. package/api/theme-edit/preview-add/preview-add.mjs +0 -25
  297. package/api/theme-edit/preview-app/preview-app.d.mts +0 -13
  298. package/api/theme-edit/preview-app/preview-app.mjs +0 -24
  299. package/api/theme-edit/preview-list/preview-list.d.mts +0 -10
  300. package/api/theme-edit/preview-list/preview-list.mjs +0 -21
  301. package/api/theme-edit/preview-remove/preview-remove.d.mts +0 -12
  302. package/api/theme-edit/preview-remove/preview-remove.mjs +0 -23
  303. package/api/theme-edit/set/set.d.mts +0 -13
  304. package/api/theme-edit/set/set.mjs +0 -24
  305. package/api/theme-edit/show/show.d.mts +0 -13
  306. package/api/theme-edit/show/show.mjs +0 -24
  307. package/api/theme-edit/theme-edit.d.mts +0 -12
  308. package/api/theme-edit/theme-edit.mjs +0 -36
  309. package/api/theme-edit/theme-edit.type.d.mts +0 -730
  310. package/api/theme-edit/theme-edit.type.mjs +0 -342
  311. package/api/theme-edit/themeEditHow.doc.d.mts +0 -6
  312. package/api/theme-edit/themeEditHow.doc.mjs +0 -105
  313. package/api/theme-edit/themeEditNew.doc.d.mts +0 -5
  314. package/api/theme-edit/themeEditNew.doc.mjs +0 -112
  315. package/api/theme-edit/themeEditPreviewAdd.doc.d.mts +0 -6
  316. package/api/theme-edit/themeEditPreviewAdd.doc.mjs +0 -121
  317. package/api/theme-edit/themeEditPreviewApp.doc.d.mts +0 -6
  318. package/api/theme-edit/themeEditPreviewApp.doc.mjs +0 -87
  319. package/api/theme-edit/themeEditPreviewList.doc.d.mts +0 -6
  320. package/api/theme-edit/themeEditPreviewList.doc.mjs +0 -62
  321. package/api/theme-edit/themeEditPreviewRemove.doc.d.mts +0 -6
  322. package/api/theme-edit/themeEditPreviewRemove.doc.mjs +0 -96
  323. package/api/theme-edit/themeEditSet.doc.d.mts +0 -6
  324. package/api/theme-edit/themeEditSet.doc.mjs +0 -175
  325. package/api/theme-edit/themeEditShow.doc.d.mts +0 -6
  326. package/api/theme-edit/themeEditShow.doc.mjs +0 -118
  327. package/api/theme-edit/themeEditUndo.doc.d.mts +0 -6
  328. package/api/theme-edit/themeEditUndo.doc.mjs +0 -133
  329. package/api/theme-edit/undo/undo.d.mts +0 -13
  330. package/api/theme-edit/undo/undo.mjs +0 -24
  331. package/assets/preview-app/README.md +0 -6
  332. package/assets/preview-app/css.d.ts +0 -5
  333. package/assets/preview-app/gitignore +0 -4
  334. package/assets/preview-app/next.config.mjs +0 -12
  335. package/assets/preview-app/package.json +0 -24
  336. package/assets/preview-app/src/app/globals.css +0 -6
  337. package/assets/preview-app/src/app/layout.tsx +0 -21
  338. package/assets/preview-app/src/app/page.tsx +0 -94
  339. package/assets/preview-app/src/app/providers.tsx +0 -16
  340. package/assets/preview-app/tsconfig.json +0 -27
  341. package/clients/cli/commands/experimental/theme.mjs +0 -2990
  342. package/clients/cli/commands/experimental-theme-add.doc.mjs +0 -80
  343. package/clients/cli/commands/experimental-theme-compile.doc.mjs +0 -98
  344. package/clients/cli/commands/experimental-theme-editor-how.doc.mjs +0 -196
  345. package/clients/cli/commands/experimental-theme-editor-new.doc.mjs +0 -174
  346. package/clients/cli/commands/experimental-theme-editor-set.doc.mjs +0 -139
  347. package/clients/cli/commands/experimental-theme-editor-show.doc.mjs +0 -77
  348. package/clients/cli/commands/experimental-theme-editor-undo.doc.mjs +0 -105
  349. package/clients/cli/commands/experimental-theme-editor.doc.mjs +0 -49
  350. package/clients/cli/commands/experimental-theme-eject.doc.mjs +0 -72
  351. package/clients/cli/commands/experimental-theme-list.doc.mjs +0 -49
  352. package/clients/cli/commands/experimental-theme-preview-add.doc.mjs +0 -88
  353. package/clients/cli/commands/experimental-theme-preview-app.doc.mjs +0 -61
  354. package/clients/cli/commands/experimental-theme-preview-list.doc.mjs +0 -48
  355. package/clients/cli/commands/experimental-theme-preview-remove.doc.mjs +0 -59
  356. package/clients/cli/commands/experimental-theme-preview.doc.mjs +0 -41
  357. package/clients/cli/commands/experimental-theme-remove.doc.mjs +0 -57
  358. package/clients/cli/commands/experimental-theme-targets.doc.mjs +0 -62
  359. package/clients/cli/commands/experimental-theme-template.doc.mjs +0 -63
  360. package/clients/cli/commands/experimental-theme-use.doc.mjs +0 -57
  361. package/clients/cli/commands/experimental-theme.doc.mjs +0 -60
  362. package/foundation/fonts/fontsource-families.generated.d.mts +0 -5
  363. package/foundation/fonts/fontsource-families.generated.mjs +0 -2110
@@ -359,7 +359,7 @@ export const doc = {
359
359
  value: 'ERR_RENDER_FAILED',
360
360
  stability: 'experimental',
361
361
  description:
362
- "The page threw while rendering, or Node crashed while it rendered the page. Raised by the experimental export command, which then writes nothing, and by the experimental theme editor when it cannot render a theme's pages (two copies of React, a component that throws, or a render past its time limit; the theme it built is kept, and the refusal says so). A React that is not installed is ERR_RENDER_MISSING_DEPENDENCY.",
362
+ "The page threw while rendering, or Node crashed while it rendered the page. Raised by the experimental export command, which then writes nothing. A React that is not installed is ERR_RENDER_MISSING_DEPENDENCY.",
363
363
  },
364
364
  {
365
365
  value: 'ERR_RENDER_NOT_ASTRYX',
@@ -389,79 +389,79 @@ export const doc = {
389
389
  value: 'ERR_THEME_BAD_VALUE',
390
390
  stability: 'experimental',
391
391
  description:
392
- 'A value does not fit what it sets: not a color for a color token, not a size for a size, a step (`more`/`less`) on something that is not a dial, or a word a dial does not take. Nothing was changed. Raised only by the experimental theme command.',
392
+ 'A value does not fit what it sets: not a color for a color token, not a size for a size, a step (`more`/`less`) on something that is not a dial, or a word a dial does not take. Nothing was changed. No command uses it now: the experimental theme editor that used it was removed.',
393
393
  },
394
394
  {
395
395
  value: 'ERR_THEME_NO_MODE',
396
396
  stability: 'experimental',
397
397
  description:
398
- '`--mode light|dark` was given for something that cannot differ between light and dark: a size, a number, a font, or a property that is not a plain color, or a theme that has only one mode. Nothing was changed. Raised only by the experimental theme command.',
398
+ '`--mode light|dark` was given for something that cannot differ between light and dark: a size, a number, a font, or a property that is not a plain color, or a theme that has only one mode. Nothing was changed. No command uses it now: the experimental theme editor that used it was removed.',
399
399
  },
400
400
  {
401
401
  value: 'ERR_THEME_UNKNOWN_PART',
402
402
  stability: 'experimental',
403
403
  description:
404
- '`--on` names something that is not a themeable part or a family. Nothing was changed. Raised only by the experimental theme command.',
404
+ '`--on` names something that is not a themeable part or a family. Nothing was changed. No command uses it now: the experimental theme editor that used it was removed.',
405
405
  },
406
406
  {
407
407
  value: 'ERR_THEME_UNKNOWN_VARIANT',
408
408
  stability: 'experimental',
409
409
  description:
410
- '`--when` names a prop the part does not have, or a value that prop does not take. Nothing was changed. Raised only by the experimental theme command.',
410
+ '`--when` names a prop the part does not have, or a value that prop does not take. Nothing was changed. No command uses it now: the experimental theme editor that used it was removed.',
411
411
  },
412
412
  {
413
413
  value: 'ERR_THEME_UNKNOWN_STATE',
414
414
  stability: 'experimental',
415
415
  description:
416
- '`--state` names a state the part does not have. Nothing was changed. Raised only by the experimental theme command.',
416
+ '`--state` names a state the part does not have. Nothing was changed. No command uses it now: the experimental theme editor that used it was removed.',
417
417
  },
418
418
  {
419
419
  value: 'ERR_THEME_PRIVATE_TOKEN',
420
420
  stability: 'experimental',
421
421
  description:
422
- 'The setting names a variable private to a component (`--_...`), which a theme cannot set. Nothing was changed. Raised only by the experimental theme command.',
422
+ 'The setting names a variable private to a component (`--_...`), which a theme cannot set. Nothing was changed. No command uses it now: the experimental theme editor that used it was removed.',
423
423
  },
424
424
  {
425
425
  value: 'ERR_THEME_UNKNOWN_TOKEN',
426
426
  stability: 'experimental',
427
427
  description:
428
- 'The setting names a design token that does not exist. Nothing was changed. Raised only by the experimental theme command.',
428
+ 'The setting names a design token that does not exist. Nothing was changed. No command uses it now: the experimental theme editor that used it was removed.',
429
429
  },
430
430
  {
431
431
  value: 'ERR_THEME_NO_EFFECT',
432
432
  stability: 'experimental',
433
433
  description:
434
- 'The change could not take effect: neither the part nor any part inside it reads the token (or, for the whole theme, no part reads it). The suggestions name the token the part really reads and the property that sets it directly. Nothing was changed. Raised only by the experimental theme command.',
434
+ 'The change could not take effect: neither the part nor any part inside it reads the token (or, for the whole theme, no part reads it). The suggestions name the token the part really reads and the property that sets it directly. Nothing was changed. No command uses it now: the experimental theme editor that used it was removed.',
435
435
  },
436
436
  {
437
437
  value: 'ERR_THEME_NOT_CHECKED',
438
438
  stability: 'experimental',
439
439
  description:
440
- "Not an error and never an exit code: the change is saved, but the components could not be rendered, so it was not checked against what they read and has no preview. The result carries it in `notChecked` with the cause, such as two copies of React (the app's and the one Core resolves). Reported only by the experimental theme command.",
440
+ "Not an error and never an exit code: the change is saved, but the components could not be rendered, so it was not checked against what they read and has no preview. The result carries it in `notChecked` with the cause, such as two copies of React (the app's and the one Core resolves). No command uses it now: the experimental theme editor that used it was removed.",
441
441
  },
442
442
  {
443
443
  value: 'ERR_THEME_BUSY',
444
444
  stability: 'experimental',
445
445
  description:
446
- 'Another command is changing the same theme (or the same preview) and did not finish within 30 seconds. Commands on one theme run one after the other; nothing was changed. Run the command again. Raised only by the experimental theme command.',
446
+ 'Another command is changing the same theme (or the same preview) and did not finish within 30 seconds. Commands on one theme run one after the other; nothing was changed. Run the command again. No command uses it now: the experimental theme editor that used it was removed.',
447
447
  },
448
448
  {
449
449
  value: 'ERR_THEME_UNKNOWN_THING',
450
450
  stability: 'experimental',
451
451
  description:
452
- 'The thing to change is not a dial, a design token, or a CSS property. Nothing was changed. Raised only by the experimental theme command.',
452
+ 'The thing to change is not a dial, a design token, or a CSS property. Nothing was changed. No command uses it now: the experimental theme editor that used it was removed.',
453
453
  },
454
454
  {
455
455
  value: 'ERR_THEME_NOT_SET',
456
456
  stability: 'experimental',
457
457
  description:
458
- '`editor undo <theme> <thing>` names a setting the theme does not have (with those `--on`, `--when`, `--state` and `--mode`). Nothing was changed. Raised only by the experimental theme command.',
458
+ '`editor undo <theme> <thing>` names a setting the theme does not have (with those `--on`, `--when`, `--state` and `--mode`). Nothing was changed. No command uses it now: the experimental theme editor that used it was removed.',
459
459
  },
460
460
  {
461
461
  value: 'ERR_THEME_NOTHING_TO_UNDO',
462
462
  stability: 'experimental',
463
463
  description:
464
- '`undo` found no earlier change to step back to. Nothing was changed. Raised only by the experimental theme command.',
464
+ '`undo` found no earlier change to step back to. Nothing was changed. No command uses it now: the experimental theme editor that used it was removed.',
465
465
  },
466
466
  ],
467
467
  };
@@ -374,55 +374,55 @@ export const ERROR_CODES = Object.freeze({
374
374
  */
375
375
  ERR_RENDER_SCRIPT: 'ERR_RENDER_SCRIPT',
376
376
  /**
377
- * A value does not fit what it sets: not a color for a color token, not a size for a size, a step (`more`/`less`) on something that is not a dial, or a word a dial does not take. Nothing was changed. Raised only by `experimental theme`.
377
+ * A value does not fit what it sets: not a color for a color token, not a size for a size, a step (`more`/`less`) on something that is not a dial, or a word a dial does not take. Nothing was changed. No command uses it now: the experimental theme editor that used it was removed.
378
378
  */
379
379
  ERR_THEME_BAD_VALUE: 'ERR_THEME_BAD_VALUE',
380
380
  /**
381
- * `--mode light|dark` was given for something that cannot differ between light and dark: a size, a number, a font, or a property that is not a plain color, or a theme that has only one mode. Nothing was changed. Raised only by `experimental theme`.
381
+ * `--mode light|dark` was given for something that cannot differ between light and dark: a size, a number, a font, or a property that is not a plain color, or a theme that has only one mode. Nothing was changed. No command uses it now: the experimental theme editor that used it was removed.
382
382
  */
383
383
  ERR_THEME_NO_MODE: 'ERR_THEME_NO_MODE',
384
384
  /**
385
- * `--on` names something that is not a themeable part or a family. Nothing was changed. Raised only by `experimental theme`.
385
+ * `--on` names something that is not a themeable part or a family. Nothing was changed. No command uses it now: the experimental theme editor that used it was removed.
386
386
  */
387
387
  ERR_THEME_UNKNOWN_PART: 'ERR_THEME_UNKNOWN_PART',
388
388
  /**
389
- * `--when` names a prop the part does not have, or a value that prop does not take. Nothing was changed. Raised only by `experimental theme`.
389
+ * `--when` names a prop the part does not have, or a value that prop does not take. Nothing was changed. No command uses it now: the experimental theme editor that used it was removed.
390
390
  */
391
391
  ERR_THEME_UNKNOWN_VARIANT: 'ERR_THEME_UNKNOWN_VARIANT',
392
392
  /**
393
- * `--state` names a state the part does not have. Nothing was changed. Raised only by `experimental theme`.
393
+ * `--state` names a state the part does not have. Nothing was changed. No command uses it now: the experimental theme editor that used it was removed.
394
394
  */
395
395
  ERR_THEME_UNKNOWN_STATE: 'ERR_THEME_UNKNOWN_STATE',
396
396
  /**
397
- * The setting names a variable private to a component (`--_...`), which a theme cannot set. Nothing was changed. Raised only by `experimental theme`.
397
+ * The setting names a variable private to a component (`--_...`), which a theme cannot set. Nothing was changed. No command uses it now: the experimental theme editor that used it was removed.
398
398
  */
399
399
  ERR_THEME_PRIVATE_TOKEN: 'ERR_THEME_PRIVATE_TOKEN',
400
400
  /**
401
- * The setting names a design token that does not exist. Nothing was changed. Raised only by `experimental theme`.
401
+ * The setting names a design token that does not exist. Nothing was changed. No command uses it now: the experimental theme editor that used it was removed.
402
402
  */
403
403
  ERR_THEME_UNKNOWN_TOKEN: 'ERR_THEME_UNKNOWN_TOKEN',
404
404
  /**
405
- * The change could not take effect: neither the part nor any part inside it reads the token (or, for the whole theme, no part reads it). The suggestions name the token the part really reads and the property that sets it directly. Nothing was changed. Raised only by `experimental theme`.
405
+ * The change could not take effect: neither the part nor any part inside it reads the token (or, for the whole theme, no part reads it). The suggestions name the token the part really reads and the property that sets it directly. Nothing was changed. No command uses it now: the experimental theme editor that used it was removed.
406
406
  */
407
407
  ERR_THEME_NO_EFFECT: 'ERR_THEME_NO_EFFECT',
408
408
  /**
409
- * Not an error: the change is saved, but the components could not be rendered, so it was not checked and has no preview. The result's `notChecked` carries this code and the cause, such as two copies of React. Reported only by `experimental theme`.
409
+ * Not an error: the change is saved, but the components could not be rendered, so it was not checked and has no preview. The result's `notChecked` carries this code and the cause, such as two copies of React. No command uses it now: the experimental theme editor that used it was removed.
410
410
  */
411
411
  ERR_THEME_NOT_CHECKED: 'ERR_THEME_NOT_CHECKED',
412
412
  /**
413
- * Another command is changing the same theme (or preview) and did not finish in time. Nothing was changed; run the command again. Raised only by `experimental theme`.
413
+ * Another command is changing the same theme (or preview) and did not finish in time. Nothing was changed; run the command again. No command uses it now: the experimental theme editor that used it was removed.
414
414
  */
415
415
  ERR_THEME_BUSY: 'ERR_THEME_BUSY',
416
416
  /**
417
- * The thing to change is not a dial, a design token, or a CSS property. Nothing was changed. Raised only by `experimental theme`.
417
+ * The thing to change is not a dial, a design token, or a CSS property. Nothing was changed. No command uses it now: the experimental theme editor that used it was removed.
418
418
  */
419
419
  ERR_THEME_UNKNOWN_THING: 'ERR_THEME_UNKNOWN_THING',
420
420
  /**
421
- * `editor undo <theme> <thing>` names a setting the theme does not have (with those `--on`, `--when`, `--state` and `--mode`). Nothing was changed. Raised only by `experimental theme`.
421
+ * `editor undo <theme> <thing>` names a setting the theme does not have (with those `--on`, `--when`, `--state` and `--mode`). Nothing was changed. No command uses it now: the experimental theme editor that used it was removed.
422
422
  */
423
423
  ERR_THEME_NOT_SET: 'ERR_THEME_NOT_SET',
424
424
  /**
425
- * `undo` found no earlier change to step back to. Nothing was changed. Raised only by `experimental theme`.
425
+ * `undo` found no earlier change to step back to. Nothing was changed. No command uses it now: the experimental theme editor that used it was removed.
426
426
  */
427
427
  ERR_THEME_NOTHING_TO_UNDO: 'ERR_THEME_NOTHING_TO_UNDO',
428
428
  });
@@ -121,73 +121,12 @@ export const doc = {
121
121
  description:
122
122
  "One post's metadata plus the feed URL and the post's full plaintext body.",
123
123
  },
124
- // experimental theme editor and preview (experimental: may change or be removed in a patch release)
125
- {
126
- value: 'themeEdit.new',
127
- stability: 'experimental',
128
- description:
129
- 'A theme made by `experimental theme editor new`: `theme`, `like` (the built-in theme it builds on, or null), the `files` written (settings, source, css, module), the dial `settings` it started with, font `notes`, contrast `problems`, what those settings did not reach as a change reports it (`missed`, `missedParts`, `missedOn`, left out when none), the `preview` page, and any `pictures` (with `pictureProblem` when none could be taken), and `sheetStale` when a sheet.html left in the folder shows an older look. Experimental: may change or be removed in a patch release.',
130
- },
131
- {
132
- value: 'themeEdit.set',
133
- stability: 'experimental',
134
- description:
135
- 'One checked change written: the `setting`, the one it `replaced`, `was` (for base and mode), the `parts` and `group` it styles, resolved `changedTokens`, part styles written (`styled`), part settings a dial `kept`, newly `lifted` variant keys, `notes`, contrast `problems`, `newProblems` (every problem this change made, each with the command that fixes it, measured against every problem the theme had before; the text shows the first eight and counts the rest), the problems it moved but left failing (`leftProblems`, each with what it was and its fix, left out when none), build `warnings`, what a whole-theme change leaves out (`leftOut`, each `note` with the lines that `run` it), the open fonts it names that do not load until installed (`fontNotLoaded`, each `family` with the line that installs it, left out when none), how many misses the changes to the theme leave (`missed`), on how many parts (`missedParts`; a part can miss two ways, its border and its shadow) and which (`missedOn`), and how many of them this change brought (`missedNew`; the text says the missed line only then), all left out when none (`show` lists each), the `preview` page and any `pictures`, and `sheetStale` when sheet.html (made by `show`) still shows the theme as it was before. Experimental: may change or be removed in a patch release.',
136
- },
137
- {
138
- value: 'themeEdit.show',
139
- stability: 'experimental',
140
- description:
141
- 'Every `settings` entry with the `parts` it styles, key `resolved` token values (colors and shadows per mode, other values once), `openProblems` (every contrast problem the theme has now, each with the command that fixes it; the text shows the first eight and counts the rest), `partValues` (corners or spacing set on a part or group, with what its parts get beside the whole-theme value), `missed` (the parts the changes the theme makes did not reach, most flagged first, each with why and the line that reaches it), `unreached` (the parts with a fill of their own the theme leaves on the base look, most visible first: no setting on them and their fill or text color as the base gives it), the generated colors (`vibrancy`; `colors`, each with its `seed` and the shade each token uses in light and dark; `colorNotes` on shades moved for contrast), contrast `problems`, font `notes`, the `preview` and `sheet` pages, the `sheetComponents` count, template pages `skipped`, any `pictures` with the two to open (`look`, left out when none was taken), and last the generated color files (`colorFiles`; null with no color). Experimental: may change or be removed in a patch release.',
142
- },
143
- {
144
- value: 'themeEdit.showPart',
145
- stability: 'experimental',
146
- description:
147
- 'What one part of a theme shows (`show <theme> --on <part>`, which writes nothing): the `theme`, its `kind` (editor, local, package or bundled), the `part`, and `values`: each CSS `property` at rest and per variant (`when`, `state`, as `set` takes them; `notSettable`, with why, for a condition no flag reaches), its final `value` (per mode when the modes differ), the `expression` that gives it (per mode when a rule sets one mode), the `tokens` it reads, and who decides it (`source`: core, base or theme; which setting gives it is not shown yet). Experimental: may change or be removed in a patch release.',
148
- },
149
- {
150
- value: 'themeEdit.undo',
151
- stability: 'experimental',
152
- description:
153
- "An undo. One step back (`action` `step`): what was `undone`, the `settings` count now, the `stepsLeft`, the `preview` page, any `pictures`, and `sheetStale` when sheet.html still shows the theme as it was. One setting removed (`action` `undo`): the same fields as `themeEdit.set`, with `setting` and `removed` both naming the setting removed, `alsoRemoved` (when the setting was listed more than once by hand: the other entries, removed with it), and `now` saying what applies instead (a whole-theme setting of the same thing, or the base theme's value; `changedTokens` lists the values). Experimental: may change or be removed in a patch release.",
154
- },
155
- {
156
- value: 'themeEdit.previewAdd',
157
- stability: 'experimental',
158
- description:
159
- "Pages added to the theme preview in the app: the route `folder`, the `theme` the pages wear (null for the app's own), the pages `added`, the pages that were there already and are written again (`refreshed`), every page (`pages`), each template page picked and why (`matched`), the template pages `skipped` (each with its `reason`, `installCommand`, and `installGuidance` when a loaded integration gives one), the `files` the preview wrote, `notes`, and how to `open` it. Experimental: may change or be removed in a patch release.",
160
- },
161
- {
162
- value: 'themeEdit.previewApp',
163
- stability: 'experimental',
164
- description:
165
- 'A new starter app with the theme preview inside: the app `folder`, the `theme` copied into it that the pages wear (null for its own neutral theme), the preview `pages`, the `files` written, `notes`, and how to `open` it (install, run, then the page). Experimental: may change or be removed in a patch release.',
166
- },
167
- {
168
- value: 'themeEdit.previewList',
169
- stability: 'experimental',
170
- description:
171
- 'The pages of the theme preview: the route `folder` (null with no preview), the `theme`, `themeMissing` (true when that theme is gone), the `pages` (`id`, `label`) and `notes`. Experimental: may change or be removed in a patch release.',
172
- },
173
- {
174
- value: 'themeEdit.previewRemove',
175
- stability: 'experimental',
176
- description:
177
- 'A page or the whole theme preview removed: the route `folder`, the files `removed`, and the `pages` left (empty when the whole preview went). Experimental: may change or be removed in a patch release.',
178
- },
179
- {
180
- value: 'themeEdit.how',
181
- stability: 'experimental',
182
- description:
183
- 'A how answer; `kind` says which: `part` (`component`, `recorded`, `group`, `groupMembers`, `spreads`, `variants`, `states`, `reads` per aspect, `contains`), `group` (`members`, `spreads`), `setting` (a dial: `values`, `help`, `examples`, and for a color the `shades` each token starts from; a token: `tokenType`, `default`, `perMode`, `readBy`, `examples`; a property: `setBy`, `examples`), `aspect` or `question` (`results`, each a `text` and its `commands`), `picture` (main colors or the color at points) or `list` (the `items`). Experimental: may change or be removed in a patch release.',
184
- },
185
124
  // render (experimental: may change or be removed in a patch release)
186
125
  {
187
126
  value: 'render.page',
188
127
  stability: 'experimental',
189
128
  description:
190
- 'A page rendered to one self-contained file: `input`, `output`, `bytes`, the local files embedded (`files`: modules, stylesheets, images and JSON), the package `stylesheets` cut and inlined, `classes`, `cssBytes`, `markupBytes` (the page\u2019s inlined images included), `sourceBytes` (the embedded source), `images` inlined, the page\u2019s script (`scriptBytes`, and `scriptModules`: how many modules it holds), the https images the page names (`remoteImages`: each address `fetched` into the file, and each one `failed`, with its `reason`; present when the page names one), `warnings` (`{code, message}`; empty when nothing looked wrong), and `checks` run on the written file (`outside`: every reference its markup and stylesheets load from outside the file, a remote address or a file beside it, empty when the file stands alone; `roundTrip`: `{exact, files, differs}`, whether the embedded source gives back every carried file byte for byte, and the carried paths that differ or are missing on either side). Experimental: may change or be removed in a patch release.',
129
+ 'A page rendered to one self-contained file: `input`, `output`, `bytes`, the local files embedded (`files`: modules, stylesheets, images and JSON), the package `stylesheets` cut and inlined, `classes`, `cssBytes`, `markupBytes` (the page\u2019s inlined images included), `sourceBytes` (the embedded source), `images` inlined, the page\u2019s script (`scriptBytes`, and `scriptModules`: how many modules it holds), the https images the page names (`remoteImages`: each address `fetched` into the file, and each one `failed`, with its `reason`; present when the page names one), `warnings` (`{code, message}`; empty when nothing looked wrong), and `checks` run on the written file (`outside`: every reference its markup and stylesheets load from outside the file, a remote address or a file beside it, empty when the file stands alone; `roundTrip`: `{exact, files, differs}`, whether the embedded source gives back every carried file byte for byte, and the carried paths that differ or are missing on either side), and with `--pictures` the `pictures` taken of it (`phone`, `phoneDark`, `desktop` PNG paths in a temp folder, or `skipped` with why). Experimental: may change or be removed in a patch release.',
191
130
  },
192
131
  {
193
132
  value: 'render.reverse',
@@ -202,7 +141,7 @@ export const doc = {
202
141
  value: 'icon.search',
203
142
  stability: 'experimental',
204
143
  description:
205
- "The echoed query, `matchCount` (every match, before `limit`), and matches: icons from the installed icon sets ranked by meaning, each {set, id, package, module, export, import, words, definitions, variants, reason, score}, plus `meaningImport` when a definition names the icon: its import under the meaning name (`import {TrashIcon as DeleteIcon} from '…'`).",
144
+ "The echoed query, `matchCount` (every match, before `limit`), and matches: icons from the installed icon sets ranked by meaning, each {set, id, package, module, export, import, words, definitions, variants, reason, score}, plus `meaningImport` when the set's `map` names the icon for a meaning: its import under the meaning name (`import {TrashIcon as DeleteIcon} from '…'`).",
206
145
  },
207
146
  {
208
147
  value: 'icon.detail',
@@ -214,7 +153,7 @@ export const doc = {
214
153
  value: 'icon.list',
215
154
  stability: 'experimental',
216
155
  description:
217
- "The project's icon-set state (status, projectSet, reason), each installed set with its package, license, icon count, default variant, declared variants, and the icon definitions its `map` covers (built-in, all of Astryx's, and its own), and each withdrawn set with its reason.",
156
+ "The project's icon-set state (status, projectSet, reason), each installed set with its package, license, icon count, default variant, declared variants, and the icon meanings its `map` covers (built-in, all of Astryx's, and its own), and each withdrawn set with its reason.",
218
157
  },
219
158
  {
220
159
  value: 'icon.use',
@@ -232,19 +171,19 @@ export const doc = {
232
171
  value: 'icon.map',
233
172
  stability: 'experimental',
234
173
  description:
235
- 'One `map` entry of the icon set being authored: the set, its package, the data file, the definition, the icon id now mapped (null after --remove), the id it replaced, and whether the file changed.',
174
+ 'One `map` entry of the icon set being authored: the set, its package, the data file, the meaning, the icon id now mapped (null after --remove), the id it replaced, and whether the file changed.',
236
175
  },
237
176
  {
238
177
  value: 'icon.add',
239
178
  stability: 'experimental',
240
179
  description:
241
- "One icon registered in the icon set being authored: the set, its package, the icon {id, export, module}, the variant when it was added as one, the definition mapped to it, the definition file written when it added the set's own, the files written, and whether anything changed.",
180
+ "One icon added to the icon set being authored: the set, its package, the icon {id, export, module}, the variant when it was added as one, the meaning mapped to it, the definition file written when it added the set's own meaning, the files written, and whether anything changed.",
242
181
  },
243
182
  {
244
183
  value: 'icon.definitions',
245
184
  stability: 'experimental',
246
185
  description:
247
- 'Every Astryx icon definition (--definitions): each {name, builtIn, description, words}.',
186
+ 'Every Astryx icon meaning (--definitions): each {name, builtIn, description, words}.',
248
187
  },
249
188
  {
250
189
  value: 'icon.setIcons',
@@ -262,7 +201,7 @@ export const doc = {
262
201
  value: 'icon.definitionMatches',
263
202
  stability: 'experimental',
264
203
  description:
265
- "The icon definitions that fit an export, before it is added: the export, its source module, the id it would get, at most 10 matches {name, description, source (astryx or set), score, reason, command}, and the command that adds the set's own definition when none fits.",
204
+ "The icon meanings that fit an export, before it is added: the export, its source module, the id it would get, at most 10 matches {name, description, source (astryx or set), score, reason, command}, and the command that adds the set's own meaning when none fits.",
266
205
  },
267
206
  {
268
207
  value: 'icon.newSet',
@@ -274,7 +213,7 @@ export const doc = {
274
213
  value: 'icon.newDefinition',
275
214
  stability: 'experimental',
276
215
  description:
277
- "An icon set's own icon definition: its name, the manifest file, the files written (the definition and, with --icon, the data file), and whether they were written or only planned.",
216
+ "An icon set's own icon meaning: its name, the manifest file, the files written (the meaning and, with --icon, the data file), and whether they were written or only planned.",
278
217
  },
279
218
 
280
219
  // discover (external / integration packages)
@@ -9,8 +9,8 @@
9
9
  * css-tree pins; `longhandsOf` and `coversProperty`, which properties a
10
10
  * shorthand sets, by that data; `keptCssTreeAnswer`, an answer worked
11
11
  * out with them and kept between runs.
12
- * @position The one loader of css-tree, for the theme editor's CSS
13
- * knowledge, the theme build's style-key checks, and the shared color
12
+ * @position The one loader of css-tree, for the theme build's style-key
13
+ * checks, and the shared color
14
14
  * reader the export uses. The entry is resolved
15
15
  * before any command stats a file: after a stat of a named pipe, Node's
16
16
  * realpath can return a package link's own path instead of its target,
@@ -5,7 +5,7 @@
5
5
  * @file A lookup table that answers only for its own keys.
6
6
  * @input A plain object
7
7
  * @output The same table, with no prototype at any depth
8
- * @position foundation/runtime — used by the theme editor and the color reader
8
+ * @position foundation/runtime — used by the color reader
9
9
  */
10
10
  /**
11
11
  * A lookup table that only answers for its own keys: a word typed by a
@@ -4,7 +4,7 @@
4
4
  * @file A lookup table that answers only for its own keys.
5
5
  * @input A plain object
6
6
  * @output The same table, with no prototype at any depth
7
- * @position foundation/runtime — used by the theme editor and the color reader
7
+ * @position foundation/runtime — used by the color reader
8
8
  */
9
9
 
10
10
  /**
@@ -1,6 +1,14 @@
1
1
  // @generated by scripts/sync-api-types.mjs from the JSDoc in foundation/**/*.mjs.
2
2
  // DO NOT EDIT — run `pnpm sync:api-types` to regenerate.
3
3
 
4
+ /**
5
+ * The folded names a typed name's last path segment may mean: as typed, with
6
+ * its words singular, and with a final `s` or `es` dropped
7
+ * (`components/Tabs` may mean Tab, `widgets/Switches` Switch).
8
+ * @param {string} typed
9
+ * @returns {string[]}
10
+ */
11
+ export function tailForms(typed: string): string[];
4
12
  /**
5
13
  * The hint that names `name`, an entry of `command`, for `from`, at `tier`.
6
14
  * Without `from` (a word that is no command), the reason names the entry's
@@ -38,7 +46,9 @@ export function otherCommand(typed: string, entries: LookupNames, from: LookupCo
38
46
  * near hook or hook keyword hint, a suggestion also matches as well when one
39
47
  * of its names is a near name or carries every typed word, and, for a hook
40
48
  * keyword hint, when one of its `keywordsOf` has exactly the typed words.
41
- * The first `pinned` suggestions always stay ahead of the hint.
49
+ * For a hook stem hint, a suggestion matches as well when its folded name
50
+ * carries the folded stem. The first `pinned` suggestions always stay ahead
51
+ * of the hint.
42
52
  * @template {Suggestion} T
43
53
  * @param {T[] | undefined} suggestions
44
54
  * @param {Found | null} found
@@ -67,8 +77,8 @@ export function withOtherCommand<T extends Suggestion>(suggestions: T[] | undefi
67
77
  * text, says first which catalogs can hold the name; a catalog is asked only
68
78
  * then, only for the names that fold to it, and only until a catalog before
69
79
  * it has an exact match. So a name no file carries reads no doc and loads no
70
- * discovery, except the hook discovery that the near hook and hook keyword
71
- * tiers read when a component or template lookup misses. The docs catalog is every route of the docs tree, from
80
+ * discovery, except the hook discovery that the near hook, hook keyword and
81
+ * hook stem tiers read when a component or template lookup misses. The docs catalog is every route of the docs tree, from
72
82
  * `docsRoutes`, which the docs lookup owns; the index keeps them where it is
73
83
  * kept, and they are worked out only when the name's last segment can end a
74
84
  * route. A check that fails gives no hint.
@@ -79,19 +89,22 @@ export function withOtherCommand<T extends Suggestion>(suggestions: T[] | undefi
79
89
  * coreDir?: string | null,
80
90
  * integrations?: import('../integrations/integrations.mjs').LoadedIntegration[],
81
91
  * docsRoutes?: import('./name-index.mjs').DocsRoutes,
92
+ * tail?: string[],
82
93
  * }} context `from` is the lookup command that did not find the name; without
83
94
  * it, every lookup command is asked. `coreDir` and `integrations` are the
84
95
  * ones the lookup found, if any. `docsRoutes` works out every route
85
96
  * `astryx docs` reads in the project with these integrations; without it,
86
- * no docs route is a hint
97
+ * no docs route is a hint. `tail` holds the folded names a component or
98
+ * hook may have for the typed last path segment to name it ({@link tailForms})
87
99
  * @returns {Promise<Found | null>}
88
100
  */
89
- export function findOtherCommand(typed: unknown, { from, cwd, coreDir: knownCoreDir, integrations: known, docsRoutes, }: {
101
+ export function findOtherCommand(typed: unknown, { from, cwd, coreDir: knownCoreDir, integrations: known, docsRoutes, tail, }: {
90
102
  from?: LookupCommand;
91
103
  cwd?: string;
92
104
  coreDir?: string | null;
93
105
  integrations?: import("../integrations/integrations.mjs").LoadedIntegration[];
94
106
  docsRoutes?: import("./name-index.mjs").DocsRoutes;
107
+ tail?: string[];
95
108
  }): Promise<Found | null>;
96
109
  /**
97
110
  * Each Core hook with the keywords its doc declares, as
@@ -113,28 +126,49 @@ export function coreHookKeywords(coreDir: string): Promise<Array<{
113
126
  * means the one hook whose doc declares a keyword with exactly those words
114
127
  * (suggest-order.mjs synonymMatches); one word names a topic many hooks
115
128
  * share, not a hook. A tie, or a keyword more than one hook declares, means
116
- * no hook.
129
+ * no hook. With `stems`, a name that means no hook so far means the hook
130
+ * whose name without its first word, the verb, is the longest run of the
131
+ * typed words ({@link hookByStem}).
117
132
  * @param {string} typed
118
133
  * @param {Array<{name: string, keywords: string[]}>} hooks
119
- * @param {{keywords?: boolean}} [options]
120
- * @returns {{name: string, tier: number} | null}
134
+ * @param {{keywords?: boolean, stems?: boolean}} [options]
135
+ * @returns {{name: string, tier: number, stem?: string} | null}
121
136
  */
122
137
  export function hookByMeaning(typed: string, hooks: Array<{
123
138
  name: string;
124
139
  keywords: string[];
125
- }>, { keywords }?: {
140
+ }>, { keywords, stems }?: {
126
141
  keywords?: boolean;
142
+ stems?: boolean;
127
143
  }): {
128
144
  name: string;
129
145
  tier: number;
146
+ stem?: string;
147
+ } | null;
148
+ /**
149
+ * The hook whose stem is the longest run of the typed words, with its tier
150
+ * and folded stem, or null. A hook's name is a verb and what it acts on
151
+ * (`useLayer`, `createReorderable`), so its stem is its words without the
152
+ * first. A tie in length means no hook.
153
+ * @param {string} typed
154
+ * @param {Array<{name: string}>} hooks
155
+ * @returns {{name: string, tier: number, stem: string} | null}
156
+ */
157
+ export function hookByStem(typed: string, hooks: Array<{
158
+ name: string;
159
+ }>): {
160
+ name: string;
161
+ tier: number;
162
+ stem: string;
130
163
  } | null;
131
164
  /**
132
165
  * @typedef {'component' | 'hook' | 'template' | 'docs'} LookupCommand
133
166
  * @typedef {{components?: string[], hooks?: string[], templates?: string[], docs?: string[]}} LookupNames
134
167
  * @typedef {import('../response/base').Suggestion} Suggestion
135
168
  * @typedef {{name: string, reason: string}} Hint
136
- * @typedef {{hint: Hint, tier: number}} Found a hint and the tier its entry
137
- * matches the typed name at
169
+ * @typedef {{hint: Hint, tier: number, stem?: string}} Found a hint and the
170
+ * tier its entry matches the typed name at; for the hook stem tier, also
171
+ * the folded stem the typed words carry
138
172
  */
139
173
  /** The lookup commands, in the order the hint prefers them. */
140
174
  export const LOOKUP_COMMANDS: readonly ["component", "hook", "template", "docs"];
@@ -144,8 +178,9 @@ export namespace MATCH_TIER {
144
178
  let segment: 2;
145
179
  let near: 3;
146
180
  let keyword: 4;
147
- let words: 5;
148
- let none: 6;
181
+ let stem: 5;
182
+ let words: 6;
183
+ let none: 7;
149
184
  }
150
185
  export type LookupCommand = "component" | "hook" | "template" | "docs";
151
186
  export type LookupNames = {
@@ -160,10 +195,12 @@ export type Hint = {
160
195
  reason: string;
161
196
  };
162
197
  /**
163
- * a hint and the tier its entry
164
- * matches the typed name at
198
+ * a hint and the
199
+ * tier its entry matches the typed name at; for the hook stem tier, also
200
+ * the folded stem the typed words carry
165
201
  */
166
202
  export type Found = {
167
203
  hint: Hint;
168
204
  tier: number;
205
+ stem?: string;
169
206
  };