@aceshooting/lyra-ui 29.0.2 → 29.2.0

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 (528) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/README.md +20 -27
  3. package/design-tokens.json +1 -1
  4. package/dist/cli/migrate-wa.mjs +2 -0
  5. package/dist/components/agent-tools/activity-feed/activity-feed.class.d.ts +5 -3
  6. package/dist/components/agent-tools/activity-feed/activity-feed.class.js +4 -3
  7. package/dist/components/agent-tools/activity-feed/activity-feed.styles.js +1 -1
  8. package/dist/components/agent-tools/agent-trace/agent-trace.class.d.ts +21 -5
  9. package/dist/components/agent-tools/agent-trace/agent-trace.class.js +14 -11
  10. package/dist/components/agent-tools/agent-trace/agent-trace.styles.js +1 -1
  11. package/dist/components/agent-tools/confirm-bar/confirm-bar.class.js +2 -2
  12. package/dist/components/agent-tools/eval-dataset/eval-dataset.class.d.ts +34 -7
  13. package/dist/components/agent-tools/eval-dataset/eval-dataset.class.js +25 -11
  14. package/dist/components/agent-tools/eval-result/eval-result-source.js +1 -0
  15. package/dist/components/agent-tools/eval-result/eval-result.class.d.ts +31 -11
  16. package/dist/components/agent-tools/eval-result/eval-result.class.js +29 -15
  17. package/dist/components/agent-tools/eval-result/eval-result.styles.js +1 -1
  18. package/dist/components/agent-tools/eval-result/eval-run-result.d.ts +10 -0
  19. package/dist/components/agent-tools/span-waterfall/span-waterfall.class.d.ts +26 -5
  20. package/dist/components/agent-tools/span-waterfall/span-waterfall.class.js +16 -6
  21. package/dist/components/agent-tools/span-waterfall/span-waterfall.d.ts +1 -1
  22. package/dist/components/agent-tools/span-waterfall/span-waterfall.js +1 -1
  23. package/dist/components/agent-tools/span-waterfall/span-waterfall.styles.js +1 -1
  24. package/dist/components/agent-tools/task-list/task-list.class.d.ts +29 -6
  25. package/dist/components/agent-tools/task-list/task-list.class.js +13 -7
  26. package/dist/components/agent-tools/task-list/task-list.d.ts +1 -1
  27. package/dist/components/agent-tools/task-list/task-list.js +1 -1
  28. package/dist/components/agent-tools/task-list/task-list.styles.js +1 -1
  29. package/dist/components/agent-tools/terminal/terminal.class.d.ts +9 -5
  30. package/dist/components/agent-tools/terminal/terminal.class.js +8 -8
  31. package/dist/components/agent-tools/test-results/test-results.class.d.ts +16 -4
  32. package/dist/components/agent-tools/test-results/test-results.class.js +15 -6
  33. package/dist/components/agent-tools/test-results/test-results.d.ts +1 -0
  34. package/dist/components/agent-tools/test-results/test-results.js +1 -1
  35. package/dist/components/agent-tools/test-results/test-results.styles.js +1 -1
  36. package/dist/components/agent-tools/tool-timeline/tool-timeline.class.d.ts +7 -4
  37. package/dist/components/agent-tools/tool-timeline/tool-timeline.class.js +2 -1
  38. package/dist/components/agent-tools/trace-tree/span-projection.js +1 -0
  39. package/dist/components/agent-tools/trace-tree/span-shared.d.ts +29 -0
  40. package/dist/components/agent-tools/trace-tree/span-shared.js +1 -0
  41. package/dist/components/agent-tools/trace-tree/span.d.ts +5 -35
  42. package/dist/components/agent-tools/trace-tree/span.js +1 -1
  43. package/dist/components/agent-tools/trace-tree/trace-tree.class.d.ts +27 -5
  44. package/dist/components/agent-tools/trace-tree/trace-tree.class.js +19 -9
  45. package/dist/components/agent-tools/trace-tree/trace-tree.d.ts +1 -1
  46. package/dist/components/agent-tools/trace-tree/trace-tree.js +1 -1
  47. package/dist/components/agent-tools/trace-tree/trace-tree.styles.js +1 -1
  48. package/dist/components/charts/chart/bar-chart.class.d.ts +5 -1
  49. package/dist/components/charts/chart/box-plot.class.d.ts +2 -2
  50. package/dist/components/charts/chart/box-plot.class.js +3 -3
  51. package/dist/components/charts/chart/bubble-chart.class.d.ts +5 -1
  52. package/dist/components/charts/chart/chart-prepared-data.d.ts +9 -0
  53. package/dist/components/charts/chart/chart-prepared-data.js +1 -0
  54. package/dist/components/charts/chart/chart-spatial-data.js +2 -0
  55. package/dist/components/charts/chart/chart-sync.js +1 -1
  56. package/dist/components/charts/chart/chart-table-sampling.js +1 -1
  57. package/dist/components/charts/chart/chart.class.d.ts +56 -6
  58. package/dist/components/charts/chart/chart.class.js +18 -8
  59. package/dist/components/charts/chart/chart.styles.js +1 -1
  60. package/dist/components/charts/chart/doughnut-chart.class.d.ts +5 -1
  61. package/dist/components/charts/chart/histogram-buckets.d.ts +1 -1
  62. package/dist/components/charts/chart/histogram-buckets.js +1 -1
  63. package/dist/components/charts/chart/histogram.class.d.ts +19 -4
  64. package/dist/components/charts/chart/histogram.class.js +1 -1
  65. package/dist/components/charts/chart/line-chart.class.d.ts +5 -1
  66. package/dist/components/charts/chart/lite-chart.class.d.ts +51 -11
  67. package/dist/components/charts/chart/lite-chart.class.js +33 -27
  68. package/dist/components/charts/chart/lite-chart.styles.js +1 -1
  69. package/dist/components/charts/chart/pie-chart.class.d.ts +5 -1
  70. package/dist/components/charts/chart/polar-area-chart.class.d.ts +5 -1
  71. package/dist/components/charts/chart/radar-chart.class.d.ts +5 -1
  72. package/dist/components/charts/chart/scatter-chart.class.d.ts +5 -1
  73. package/dist/components/conversation/agent-workspace/agent-workspace.class.d.ts +6 -3
  74. package/dist/components/conversation/agent-workspace/agent-workspace.class.js +6 -5
  75. package/dist/components/conversation/agent-workspace/agent-workspace.styles.js +1 -1
  76. package/dist/components/conversation/chat-viewport/chat-viewport.class.d.ts +8 -0
  77. package/dist/components/conversation/chat-viewport/chat-viewport.class.js +1 -1
  78. package/dist/components/conversation/code-block/code-block-base.class.d.ts +5 -3
  79. package/dist/components/conversation/code-block/code-block-base.class.js +1 -1
  80. package/dist/components/conversation/code-block/code-block-core.class.d.ts +4 -1
  81. package/dist/components/conversation/code-block/code-block-core.class.js +1 -1
  82. package/dist/components/conversation/code-block/code-block-shared.d.ts +6 -4
  83. package/dist/components/conversation/code-block/code-block-shared.js +3 -2
  84. package/dist/components/conversation/code-block/code-block.class.d.ts +11 -4
  85. package/dist/components/conversation/code-block/code-block.class.js +1 -1
  86. package/dist/components/conversation/code-block/code-block.d.ts +1 -1
  87. package/dist/components/conversation/code-block/code-block.styles.js +1 -1
  88. package/dist/components/conversation/code-block/shiki-types.d.ts +2 -0
  89. package/dist/components/conversation/code-block/shiki-types.js +1 -1
  90. package/dist/components/conversation/markdown/markdown-base.class.d.ts +6 -4
  91. package/dist/components/conversation/markdown/markdown-base.class.js +1 -1
  92. package/dist/components/conversation/markdown/markdown-code-header.d.ts +2 -2
  93. package/dist/components/conversation/markdown/markdown-code-header.js +1 -1
  94. package/dist/components/conversation/markdown/markdown-core.class.d.ts +8 -3
  95. package/dist/components/conversation/markdown/markdown-progressive.js +2 -2
  96. package/dist/components/conversation/markdown/markdown-shared.d.ts +5 -10
  97. package/dist/components/conversation/markdown/markdown-shared.js +5 -5
  98. package/dist/components/conversation/markdown/markdown-streaming-tail.js +1 -1
  99. package/dist/components/conversation/markdown/markdown.class.d.ts +17 -10
  100. package/dist/components/conversation/markdown/markdown.class.js +1 -1
  101. package/dist/components/conversation/markdown/markdown.styles.js +1 -1
  102. package/dist/components/conversation/model-select/model-select.class.d.ts +4 -3
  103. package/dist/components/conversation/model-select/model-select.class.js +3 -2
  104. package/dist/components/conversation/model-select/model-select.styles.js +1 -1
  105. package/dist/components/conversation/model-settings-panel/model-settings-panel.class.d.ts +2 -1
  106. package/dist/components/conversation/model-settings-panel/model-settings-panel.class.js +2 -1
  107. package/dist/components/conversation/model-settings-panel/model-settings-panel.styles.js +1 -1
  108. package/dist/components/conversation/prompt-input/prompt-input.class.d.ts +3 -2
  109. package/dist/components/conversation/prompt-input/prompt-input.class.js +2 -1
  110. package/dist/components/conversation/prompt-input/prompt-input.styles.js +1 -1
  111. package/dist/components/conversation/prompt-queue/prompt-queue.class.d.ts +10 -2
  112. package/dist/components/conversation/prompt-queue/prompt-queue.class.js +15 -6
  113. package/dist/components/conversation/prompt-queue/prompt-queue.styles.js +1 -1
  114. package/dist/components/conversation/realtime-session/realtime-session.class.d.ts +3 -1
  115. package/dist/components/conversation/realtime-session/realtime-session.class.js +2 -1
  116. package/dist/components/conversation/realtime-session/realtime-session.styles.js +1 -1
  117. package/dist/components/conversation/streaming-text/markdown-detection.d.ts +2 -0
  118. package/dist/components/conversation/streaming-text/markdown-detection.js +4 -1
  119. package/dist/components/conversation/streaming-text/streaming-text-base.class.d.ts +6 -2
  120. package/dist/components/conversation/streaming-text/streaming-text-base.class.js +3 -3
  121. package/dist/components/conversation/streaming-text/streaming-text-core.class.js +1 -1
  122. package/dist/components/conversation/streaming-text/streaming-text.class.js +1 -0
  123. package/dist/components/conversation/thread-list/thread-list.class.d.ts +34 -4
  124. package/dist/components/conversation/thread-list/thread-list.class.js +22 -15
  125. package/dist/components/conversation/thread-list/thread-list.d.ts +1 -1
  126. package/dist/components/conversation/thread-list/thread-list.js +1 -1
  127. package/dist/components/conversation/thread-list/thread-list.styles.js +1 -1
  128. package/dist/components/conversation/transcript-feed/transcript-feed.class.d.ts +6 -2
  129. package/dist/components/conversation/transcript-feed/transcript-feed.class.js +3 -2
  130. package/dist/components/conversation/transcript-feed/transcript-feed.styles.js +1 -1
  131. package/dist/components/conversation/voice-picker/voice-picker.class.d.ts +3 -2
  132. package/dist/components/conversation/voice-picker/voice-picker.class.js +3 -2
  133. package/dist/components/conversation/voice-picker/voice-picker.styles.js +1 -1
  134. package/dist/components/data/calendar/calendar.class.d.ts +5 -2
  135. package/dist/components/data/calendar/calendar.class.js +1 -1
  136. package/dist/components/data/data-grid/data-grid-processing.js +2 -2
  137. package/dist/components/data/data-grid/data-grid.class.d.ts +22 -8
  138. package/dist/components/data/data-grid/data-grid.class.js +20 -19
  139. package/dist/components/data/data-grid/data-grid.styles.js +1 -1
  140. package/dist/components/data/document-library/document-library.class.d.ts +31 -4
  141. package/dist/components/data/document-library/document-library.class.js +25 -12
  142. package/dist/components/data/document-library/document-library.styles.js +1 -1
  143. package/dist/components/data/file-tree/file-tree.class.d.ts +30 -6
  144. package/dist/components/data/file-tree/file-tree.class.js +4 -3
  145. package/dist/components/data/file-tree/file-tree.d.ts +1 -0
  146. package/dist/components/data/file-tree/file-tree.js +1 -1
  147. package/dist/components/data/flow-canvas/flow-canvas.class.d.ts +31 -6
  148. package/dist/components/data/flow-canvas/flow-canvas.class.js +40 -19
  149. package/dist/components/data/flow-canvas/flow-canvas.styles.js +1 -1
  150. package/dist/components/data/flow-canvas/flow-model.js +1 -1
  151. package/dist/components/data/flow-canvas/flow-source.js +1 -0
  152. package/dist/components/data/flow-canvas/flow-types.d.ts +4 -2
  153. package/dist/components/data/flow-canvas/flow-viewport-index.js +1 -0
  154. package/dist/components/data/flow-minimap/flow-minimap.class.d.ts +9 -3
  155. package/dist/components/data/flow-minimap/flow-minimap.class.js +11 -2
  156. package/dist/components/data/flow-minimap/flow-minimap.styles.js +1 -1
  157. package/dist/components/data/funnel/funnel.class.d.ts +7 -3
  158. package/dist/components/data/funnel/funnel.class.js +2 -2
  159. package/dist/components/data/heatmap/calendar-grid.d.ts +1 -1
  160. package/dist/components/data/heatmap/calendar-grid.js +1 -1
  161. package/dist/components/data/heatmap/heatmap-grid-navigation.js +1 -1
  162. package/dist/components/data/heatmap/heatmap-limits.d.ts +1 -1
  163. package/dist/components/data/heatmap/heatmap-matrix-source-controller.js +1 -0
  164. package/dist/components/data/heatmap/heatmap-matrix-source.d.ts +5 -0
  165. package/dist/components/data/heatmap/heatmap-matrix-source.js +1 -0
  166. package/dist/components/data/heatmap/heatmap-scale.d.ts +0 -16
  167. package/dist/components/data/heatmap/heatmap-scale.js +1 -1
  168. package/dist/components/data/heatmap/heatmap.class.d.ts +40 -11
  169. package/dist/components/data/heatmap/heatmap.class.js +26 -6
  170. package/dist/components/data/heatmap/heatmap.styles.js +1 -1
  171. package/dist/components/data/pagination/pagination.class.js +1 -1
  172. package/dist/components/data/sequence-strip/sequence-strip-item.d.ts +17 -0
  173. package/dist/components/data/sequence-strip/sequence-strip-source-controller.js +1 -0
  174. package/dist/components/data/sequence-strip/sequence-strip-source.d.ts +5 -0
  175. package/dist/components/data/sequence-strip/sequence-strip-source.js +1 -0
  176. package/dist/components/data/sequence-strip/sequence-strip.class.d.ts +24 -19
  177. package/dist/components/data/sequence-strip/sequence-strip.class.js +23 -4
  178. package/dist/components/data/sequence-strip/sequence-strip.styles.js +1 -1
  179. package/dist/components/data/sparkline/sparkline.class.d.ts +17 -4
  180. package/dist/components/data/sparkline/sparkline.class.js +3 -3
  181. package/dist/components/data/sparkline/sparkline.styles.js +1 -1
  182. package/dist/components/data/table/table.class.d.ts +14 -10
  183. package/dist/components/data/table/table.class.js +17 -16
  184. package/dist/components/data/timeline/timeline.class.d.ts +5 -2
  185. package/dist/components/data/timeline/timeline.class.js +1 -1
  186. package/dist/components/data/tree/tree-item.class.js +1 -1
  187. package/dist/components/data/tree/tree-owner-controller.js +1 -1
  188. package/dist/components/data/tree/tree.class.d.ts +28 -6
  189. package/dist/components/data/tree/tree.class.js +3 -3
  190. package/dist/components/data/tree/tree.d.ts +1 -0
  191. package/dist/components/data/tree/tree.js +1 -1
  192. package/dist/components/data/word-cloud/word-cloud.class.d.ts +17 -7
  193. package/dist/components/data/word-cloud/word-cloud.class.js +6 -4
  194. package/dist/components/data/word-cloud/word-cloud.styles.js +1 -1
  195. package/dist/components/forms/catalog-picker-base.d.ts +1 -1
  196. package/dist/components/forms/catalog-picker-base.js +6 -6
  197. package/dist/components/forms/catalog-picker-base.styles.js +1 -1
  198. package/dist/components/forms/combobox/combobox.class.d.ts +7 -3
  199. package/dist/components/forms/combobox/combobox.class.js +1 -1
  200. package/dist/components/forms/combobox/option.class.d.ts +4 -2
  201. package/dist/components/forms/combobox/option.class.js +2 -2
  202. package/dist/components/forms/country-picker/country-picker.class.d.ts +3 -1
  203. package/dist/components/forms/country-picker/country-picker.class.js +1 -1
  204. package/dist/components/forms/currency-picker/currency-picker.class.d.ts +2 -0
  205. package/dist/components/forms/currency-picker/currency-picker.class.js +1 -1
  206. package/dist/components/forms/currency-picker/currency-presentation.js +1 -1
  207. package/dist/components/forms/emoji-picker/emoji-picker.class.d.ts +6 -2
  208. package/dist/components/forms/emoji-picker/emoji-picker.class.js +3 -2
  209. package/dist/components/forms/emoji-picker/emoji-picker.styles.js +1 -1
  210. package/dist/components/forms/locale-picker/locale-picker.class.d.ts +8 -2
  211. package/dist/components/forms/locale-picker/locale-picker.class.js +5 -4
  212. package/dist/components/forms/locale-picker/locale-picker.styles.js +1 -1
  213. package/dist/components/forms/select/select.class.d.ts +11 -3
  214. package/dist/components/forms/select/select.class.js +4 -4
  215. package/dist/components/forms/time-zone-picker/time-zone-picker.class.d.ts +2 -0
  216. package/dist/components/forms/time-zone-picker/time-zone-picker.class.js +1 -1
  217. package/dist/components/forms/token-input/token-input.class.d.ts +6 -1
  218. package/dist/components/forms/token-input/token-input.class.js +15 -13
  219. package/dist/components/forms/unit-picker/unit-picker.class.d.ts +2 -0
  220. package/dist/components/forms/unit-picker/unit-picker.class.js +1 -1
  221. package/dist/components/layout/app-rail/app-rail.class.d.ts +1 -1
  222. package/dist/components/layout/app-rail/app-rail.class.js +1 -1
  223. package/dist/components/layout/command-palette/command-palette.class.d.ts +5 -2
  224. package/dist/components/layout/command-palette/command-palette.class.js +2 -1
  225. package/dist/components/layout/command-palette/command-palette.styles.js +1 -1
  226. package/dist/components/layout/menu/menu-item.class.d.ts +2 -2
  227. package/dist/components/layout/menu/menu-item.class.js +2 -2
  228. package/dist/components/layout/menu/menu.class.d.ts +1 -1
  229. package/dist/components/layout/menu/menu.class.js +1 -1
  230. package/dist/components/layout/menubar/menubar.class.d.ts +1 -1
  231. package/dist/components/layout/menubar/menubar.class.js +1 -1
  232. package/dist/components/layout/reorder-list/reorder-item.class.d.ts +2 -2
  233. package/dist/components/layout/reorder-list/reorder-item.class.js +2 -2
  234. package/dist/components/layout/reorder-list/reorder-list.class.d.ts +1 -1
  235. package/dist/components/layout/reorder-list/reorder-list.class.js +1 -1
  236. package/dist/components/layout/virtual-list/virtual-list.class.d.ts +13 -9
  237. package/dist/components/layout/virtual-list/virtual-list.class.js +21 -17
  238. package/dist/components/media/av-player/av-cue-index.js +1 -0
  239. package/dist/components/media/av-player/av-cue-source.d.ts +13 -0
  240. package/dist/components/media/av-player/av-cue-source.js +1 -0
  241. package/dist/components/media/av-player/av-metadata.d.ts +2 -2
  242. package/dist/components/media/av-player/av-metadata.js +1 -1
  243. package/dist/components/media/av-player/av-player-cue-source-controller.js +1 -0
  244. package/dist/components/media/av-player/av-player.class.d.ts +34 -12
  245. package/dist/components/media/av-player/av-player.class.js +15 -10
  246. package/dist/components/media/avatar-group/avatar-group.class.js +1 -1
  247. package/dist/components/media/flag/flag.class.js +1 -1
  248. package/dist/components/media/flag/language-map.js +1 -1
  249. package/dist/components/media/lightbox/lightbox-source.js +1 -0
  250. package/dist/components/media/lightbox/lightbox-types.d.ts +15 -0
  251. package/dist/components/media/lightbox/lightbox.class.d.ts +22 -21
  252. package/dist/components/media/lightbox/lightbox.class.js +6 -4
  253. package/dist/components/media/lightbox/lightbox.styles.js +1 -1
  254. package/dist/components/media/map/map-geojson-diff.d.ts +6 -6
  255. package/dist/components/media/map/map-geojson-diff.js +1 -1
  256. package/dist/components/media/map/map-loader.d.ts +5 -1
  257. package/dist/components/media/map/map.class.d.ts +24 -6
  258. package/dist/components/media/map/map.class.js +2 -2
  259. package/dist/components/media/map/map.styles.js +1 -1
  260. package/dist/components/media/video-playlist/video-playlist.class.d.ts +2 -1
  261. package/dist/components/media/video-playlist/video-playlist.class.js +1 -1
  262. package/dist/components/overlays/chip/chip.class.d.ts +1 -1
  263. package/dist/components/overlays/chip/chip.class.js +1 -1
  264. package/dist/components/retrieval/embedding-explorer/embedding-explorer.class.d.ts +30 -8
  265. package/dist/components/retrieval/embedding-explorer/embedding-explorer.class.js +22 -8
  266. package/dist/components/retrieval/embedding-explorer/embedding-explorer.styles.js +1 -1
  267. package/dist/components/retrieval/graph/graph-canvas.js +1 -1
  268. package/dist/components/retrieval/graph/graph-source-composition.js +1 -0
  269. package/dist/components/retrieval/graph/graph-source-controller.js +1 -0
  270. package/dist/components/retrieval/graph/graph-spatial-controller.js +2 -2
  271. package/dist/components/retrieval/graph/graph-spatial-model.js +1 -0
  272. package/dist/components/retrieval/graph/graph-spatial.js +1 -1
  273. package/dist/components/retrieval/graph/graph.class.d.ts +31 -6
  274. package/dist/components/retrieval/graph/graph.class.js +26 -5
  275. package/dist/components/retrieval/graph/graph.d.ts +1 -1
  276. package/dist/components/retrieval/graph/graph.js +1 -1
  277. package/dist/components/retrieval/graph/graph.styles.js +1 -1
  278. package/dist/components/retrieval/ingestion-queue/ingestion-queue.class.d.ts +33 -4
  279. package/dist/components/retrieval/ingestion-queue/ingestion-queue.class.js +27 -17
  280. package/dist/components/retrieval/ingestion-queue/ingestion-queue.d.ts +1 -1
  281. package/dist/components/retrieval/ingestion-queue/ingestion-queue.js +1 -1
  282. package/dist/components/retrieval/ingestion-queue/ingestion-queue.styles.js +1 -1
  283. package/dist/components/retrieval/knowledge-base/knowledge-base.class.d.ts +27 -4
  284. package/dist/components/retrieval/knowledge-base/knowledge-base.class.js +29 -14
  285. package/dist/components/retrieval/knowledge-base/knowledge-base.styles.js +1 -1
  286. package/dist/components/retrieval/knowledge-base-admin/knowledge-base-admin.class.d.ts +17 -3
  287. package/dist/components/retrieval/knowledge-base-admin/knowledge-base-admin.class.js +15 -10
  288. package/dist/components/retrieval/knowledge-base-admin/knowledge-base-admin.styles.js +1 -1
  289. package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.d.ts +24 -5
  290. package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.js +17 -10
  291. package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.d.ts +1 -1
  292. package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.js +1 -1
  293. package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.styles.js +1 -1
  294. package/dist/components/retrieval/mind-map/mind-map-layout.js +1 -1
  295. package/dist/components/retrieval/mind-map/mind-map-model.js +1 -0
  296. package/dist/components/retrieval/mind-map/mind-map.class.d.ts +27 -4
  297. package/dist/components/retrieval/mind-map/mind-map.class.js +11 -7
  298. package/dist/components/retrieval/mind-map/mind-map.d.ts +1 -0
  299. package/dist/components/retrieval/mind-map/mind-map.js +1 -1
  300. package/dist/components/retrieval/mind-map/mind-map.styles.js +1 -1
  301. package/dist/components/retrieval/neighbor-list/neighbor-list.class.d.ts +24 -2
  302. package/dist/components/retrieval/neighbor-list/neighbor-list.class.js +17 -3
  303. package/dist/components/retrieval/neighbor-list/neighbor-list.d.ts +1 -1
  304. package/dist/components/retrieval/neighbor-list/neighbor-list.js +1 -1
  305. package/dist/components/retrieval/neighbor-list/neighbor-list.styles.js +1 -1
  306. package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.class.d.ts +8 -4
  307. package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.class.js +11 -7
  308. package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.styles.js +1 -1
  309. package/dist/components/retrieval/retrieval-compare/retrieval-compare.class.d.ts +12 -6
  310. package/dist/components/retrieval/retrieval-compare/retrieval-compare.class.js +30 -17
  311. package/dist/components/retrieval/retrieval-compare/retrieval-compare.styles.js +1 -1
  312. package/dist/components/retrieval/retrieval-results/retrieval-results-model.js +1 -0
  313. package/dist/components/retrieval/retrieval-results/retrieval-results.class.d.ts +46 -5
  314. package/dist/components/retrieval/retrieval-results/retrieval-results.class.js +31 -9
  315. package/dist/components/retrieval/retrieval-results/retrieval-results.d.ts +1 -1
  316. package/dist/components/retrieval/retrieval-results/retrieval-results.js +1 -1
  317. package/dist/components/retrieval/retrieval-results/retrieval-results.styles.js +1 -1
  318. package/dist/components/utility/diff-view/diff-view.class.d.ts +16 -8
  319. package/dist/components/utility/diff-view/diff-view.class.js +3 -2
  320. package/dist/components/utility/diff-view/diff-view.styles.js +1 -1
  321. package/dist/components/utility/json-viewer/json-viewer.class.d.ts +31 -3
  322. package/dist/components/utility/json-viewer/json-viewer.class.js +13 -4
  323. package/dist/components/utility/json-viewer/json-viewer.d.ts +1 -0
  324. package/dist/components/utility/json-viewer/json-viewer.js +1 -1
  325. package/dist/components/utility/json-viewer/json-viewer.styles.js +1 -1
  326. package/dist/components/utility/mention-popover/mention-popover.class.d.ts +6 -4
  327. package/dist/components/utility/mention-popover/mention-popover.class.js +6 -5
  328. package/dist/components/viewers/csv-viewer/csv-viewer.class.d.ts +34 -7
  329. package/dist/components/viewers/csv-viewer/csv-viewer.class.js +9 -7
  330. package/dist/components/viewers/dataset-viewer/dataset-viewer.class.d.ts +28 -4
  331. package/dist/components/viewers/dataset-viewer/dataset-viewer.class.js +12 -11
  332. package/dist/components/viewers/geojson-view/geojson-viewer.class.d.ts +3 -1
  333. package/dist/components/viewers/geojson-view/geojson-viewer.class.js +17 -16
  334. package/dist/components/viewers/geojson-view/geojson-viewer.d.ts +1 -1
  335. package/dist/components/viewers/geojson-view/geojson-viewer.js +1 -1
  336. package/dist/components/viewers/spreadsheet-viewer/spreadsheet-viewer.class.d.ts +31 -5
  337. package/dist/components/viewers/spreadsheet-viewer/spreadsheet-viewer.class.js +11 -8
  338. package/dist/components/viewers/table-viewer-shared.js +19 -3
  339. package/dist/components/viewers/viewer-search-limits.js +1 -1
  340. package/dist/components/viewers/xml-viewer/xml-viewer.class.d.ts +35 -3
  341. package/dist/components/viewers/xml-viewer/xml-viewer.class.js +20 -5
  342. package/dist/components/viewers/xml-viewer/xml-viewer.d.ts +1 -1
  343. package/dist/components/viewers/xml-viewer/xml-viewer.js +1 -1
  344. package/dist/components/viewers/xml-viewer/xml-viewer.styles.js +1 -1
  345. package/dist/countries.js +1 -1
  346. package/dist/data-sources.d.ts +34 -0
  347. package/dist/data-sources.js +1 -0
  348. package/dist/events.d.ts +51 -7
  349. package/dist/framework-types.d.ts +1 -1
  350. package/dist/internal/accessibility-visibility.d.ts +4 -2
  351. package/dist/internal/accessibility-visibility.js +1 -1
  352. package/dist/internal/accessible-text-controller.js +1 -1
  353. package/dist/internal/anchor-target.js +2 -2
  354. package/dist/internal/anchored-overlay-runtime.js +1 -1
  355. package/dist/internal/aria-controls.js +1 -1
  356. package/dist/internal/catalog-picker.d.ts +1 -7
  357. package/dist/internal/catalog-picker.js +1 -1
  358. package/dist/internal/collection-snapshot.js +1 -1
  359. package/dist/internal/default-strings/agent-tools.generated.js +1 -1
  360. package/dist/internal/default-strings/charts.generated.js +1 -1
  361. package/dist/internal/default-strings/conversation.generated.js +1 -1
  362. package/dist/internal/default-strings/data.generated.js +1 -1
  363. package/dist/internal/default-strings/forms.generated.js +1 -1
  364. package/dist/internal/default-strings/layout.generated.js +1 -1
  365. package/dist/internal/default-strings/media.generated.js +1 -1
  366. package/dist/internal/default-strings/retrieval.generated.js +1 -1
  367. package/dist/internal/default-strings/shared.generated.js +1 -1
  368. package/dist/internal/default-strings/utility.generated.js +1 -1
  369. package/dist/internal/delimited-data.js +1 -1
  370. package/dist/internal/fixed-containing-block.js +1 -1
  371. package/dist/internal/flow-scene-envelope.js +1 -0
  372. package/dist/internal/graph-scene-controller.js +1 -0
  373. package/dist/internal/hierarchy-source-controller.js +1 -0
  374. package/dist/internal/hierarchy-source-view.js +29 -0
  375. package/dist/internal/hierarchy-source-view.styles.js +1 -0
  376. package/dist/internal/inherited-attribute-hub.d.ts +6 -0
  377. package/dist/internal/inherited-attribute-hub.js +1 -1
  378. package/dist/internal/intl-cache.js +1 -1
  379. package/dist/internal/keyed-index.js +1 -0
  380. package/dist/internal/locale-loaders.generated.js +1 -1
  381. package/dist/internal/localization-types.d.ts +1 -1
  382. package/dist/internal/localization.js +2 -2
  383. package/dist/internal/lyra-element.d.ts +2 -2
  384. package/dist/internal/lyra-element.js +3 -2
  385. package/dist/internal/native-modal-context.js +1 -1
  386. package/dist/internal/option-selection.js +1 -1
  387. package/dist/internal/overlay-manager.js +1 -1
  388. package/dist/internal/overlay-stack.js +1 -1
  389. package/dist/internal/package-metadata.js +1 -1
  390. package/dist/internal/positioner.js +1 -1
  391. package/dist/internal/resource-loader.d.ts +2 -0
  392. package/dist/internal/resource-loader.js +1 -1
  393. package/dist/internal/scoped-definitions.generated.js +1 -1
  394. package/dist/internal/search-haystack.js +1 -0
  395. package/dist/internal/selection-catalog.d.ts +5 -0
  396. package/dist/internal/selection-catalog.js +1 -1
  397. package/dist/internal/shiki-language-sources.js +1 -0
  398. package/dist/internal/source-page-controller.js +1 -0
  399. package/dist/internal/source-page-scope.js +1 -0
  400. package/dist/internal/source-request-controller.js +1 -0
  401. package/dist/internal/source-window-controller.js +1 -0
  402. package/dist/internal/spatial-source-controller.js +1 -0
  403. package/dist/internal/text-quote.d.ts +2 -6
  404. package/dist/internal/text-quote.js +1 -1
  405. package/dist/internal/theme-watcher.js +1 -1
  406. package/dist/internal/virtual-list-composition.js +1 -0
  407. package/dist/lyra.d.ts +1 -1
  408. package/dist/lyra.js +1 -1
  409. package/dist/testing/interaction-drivers.js +1 -1
  410. package/dist/testing/lyra-tag-event-map.js +1 -1
  411. package/dist/theme/theme.js +1 -1
  412. package/dist/units.js +1 -1
  413. package/dist/utilities/data-preparation.d.ts +56 -0
  414. package/dist/utilities/data-preparation.js +1 -0
  415. package/dist/utilities/data-spatial.d.ts +26 -0
  416. package/dist/utilities/data-spatial.js +1 -0
  417. package/dist/utilities/index.d.ts +1 -1
  418. package/dist/utilities/index.js +1 -1
  419. package/llms/components/lr-activity-feed.md +7 -2
  420. package/llms/components/lr-agent-trace.md +49 -9
  421. package/llms/components/lr-agent-workspace.md +15 -8
  422. package/llms/components/lr-av-player.md +180 -10
  423. package/llms/components/lr-bar-chart.md +1 -1
  424. package/llms/components/lr-box-plot.md +8 -0
  425. package/llms/components/lr-bubble-chart.md +1 -1
  426. package/llms/components/lr-calendar.md +26 -3
  427. package/llms/components/lr-chart.md +310 -23
  428. package/llms/components/lr-chat-viewport.md +6 -0
  429. package/llms/components/lr-code-block-core.md +12 -7
  430. package/llms/components/lr-code-block.md +23 -9
  431. package/llms/components/lr-combobox.md +27 -15
  432. package/llms/components/lr-command-palette.md +16 -3
  433. package/llms/components/lr-country-picker.md +23 -6
  434. package/llms/components/lr-csv-viewer.md +95 -12
  435. package/llms/components/lr-currency-picker.md +23 -3
  436. package/llms/components/lr-data-grid.md +24 -6
  437. package/llms/components/lr-dataset-viewer.md +92 -11
  438. package/llms/components/lr-dialog.md +1 -1
  439. package/llms/components/lr-diff-view.md +19 -6
  440. package/llms/components/lr-document-library.md +60 -5
  441. package/llms/components/lr-doughnut-chart.md +1 -1
  442. package/llms/components/lr-embedding-explorer.md +89 -9
  443. package/llms/components/lr-emoji-picker.md +7 -2
  444. package/llms/components/lr-eval-dataset.md +56 -7
  445. package/llms/components/lr-eval-result.md +89 -4
  446. package/llms/components/lr-export-button.md +1 -1
  447. package/llms/components/lr-file-tree.md +60 -6
  448. package/llms/components/lr-flag.md +5 -2
  449. package/llms/components/lr-flow-canvas.md +152 -14
  450. package/llms/components/lr-flow-minimap.md +32 -4
  451. package/llms/components/lr-funnel.md +14 -0
  452. package/llms/components/lr-geojson-viewer.md +27 -10
  453. package/llms/components/lr-graph.md +43 -7
  454. package/llms/components/lr-heatmap.md +161 -5
  455. package/llms/components/lr-histogram.md +55 -9
  456. package/llms/components/lr-ingestion-queue.md +54 -3
  457. package/llms/components/lr-json-viewer.md +87 -7
  458. package/llms/components/lr-knowledge-base-admin.md +60 -4
  459. package/llms/components/lr-knowledge-base.md +121 -9
  460. package/llms/components/lr-knowledge-graph-explorer.md +106 -11
  461. package/llms/components/lr-lightbox.md +42 -6
  462. package/llms/components/lr-line-chart.md +28 -5
  463. package/llms/components/lr-lite-chart.md +96 -31
  464. package/llms/components/lr-locale-picker.md +6 -4
  465. package/llms/components/lr-map.md +67 -8
  466. package/llms/components/lr-markdown-core.md +10 -5
  467. package/llms/components/lr-markdown.md +23 -6
  468. package/llms/components/lr-mention-popover.md +11 -6
  469. package/llms/components/lr-mind-map.md +91 -10
  470. package/llms/components/lr-model-select.md +8 -4
  471. package/llms/components/lr-model-settings-panel.md +10 -2
  472. package/llms/components/lr-navigation-menu.md +1 -1
  473. package/llms/components/lr-neighbor-list.md +69 -2
  474. package/llms/components/lr-pie-chart.md +1 -1
  475. package/llms/components/lr-polar-area-chart.md +1 -1
  476. package/llms/components/lr-prompt-input.md +9 -2
  477. package/llms/components/lr-prompt-queue.md +11 -3
  478. package/llms/components/lr-radar-chart.md +1 -1
  479. package/llms/components/lr-rag-eval-dashboard.md +9 -2
  480. package/llms/components/lr-realtime-session.md +6 -2
  481. package/llms/components/lr-reorder-list.md +4 -0
  482. package/llms/components/lr-retrieval-compare.md +9 -4
  483. package/llms/components/lr-retrieval-results.md +104 -6
  484. package/llms/components/lr-scatter-chart.md +1 -1
  485. package/llms/components/lr-select.md +20 -10
  486. package/llms/components/lr-sequence-strip.md +92 -2
  487. package/llms/components/lr-span-waterfall.md +78 -8
  488. package/llms/components/lr-sparkline.md +42 -11
  489. package/llms/components/lr-spreadsheet-viewer.md +109 -14
  490. package/llms/components/lr-streaming-text-core.md +4 -2
  491. package/llms/components/lr-streaming-text.md +5 -1
  492. package/llms/components/lr-table.md +96 -115
  493. package/llms/components/lr-task-list.md +93 -9
  494. package/llms/components/lr-terminal.md +9 -0
  495. package/llms/components/lr-test-results.md +77 -3
  496. package/llms/components/lr-thread-list.md +86 -1
  497. package/llms/components/lr-time-zone-picker.md +8 -3
  498. package/llms/components/lr-timeline.md +5 -0
  499. package/llms/components/lr-token-input.md +7 -2
  500. package/llms/components/lr-tool-timeline.md +13 -4
  501. package/llms/components/lr-trace-tree.md +96 -10
  502. package/llms/components/lr-transcript-feed.md +9 -2
  503. package/llms/components/lr-tree.md +87 -15
  504. package/llms/components/lr-unit-picker.md +8 -3
  505. package/llms/components/lr-video-playlist.md +2 -0
  506. package/llms/components/lr-virtual-list.md +17 -8
  507. package/llms/components/lr-voice-picker.md +8 -3
  508. package/llms/components/lr-word-cloud.md +128 -12
  509. package/llms/components/lr-xml-viewer.md +106 -9
  510. package/llms/index.md +1 -1
  511. package/llms/peers.md +3 -3
  512. package/llms/shared/events-and-types.md +725 -264
  513. package/llms/shared/forms-and-accessibility.md +3 -17
  514. package/llms/shared/imports-and-registration.md +4 -18
  515. package/llms/shared/localization-and-rtl.md +12 -7
  516. package/llms/shared/styles-and-tokens.md +27 -36
  517. package/llms/shared/testing-and-utilities.md +9 -5
  518. package/llms/shared.md +788 -355
  519. package/llms.txt +1 -2
  520. package/locales.json +264 -139
  521. package/package.json +19 -10
  522. package/registrations.json +1 -1
  523. package/skills/compose-lyra-interfaces/SKILL.md +6 -8
  524. package/skills/lyra-ui/SKILL.md +20 -51
  525. package/skills/lyra-ui/commands/review.md +16 -33
  526. package/skills/lyra-ui/commands/update.md +6 -5
  527. package/skills/lyra-ui/online-api.md +15 -0
  528. package/skills/lyra-ui/reporting.md +2 -1
package/llms/shared.md CHANGED
@@ -60,7 +60,7 @@ while deliberately exercising a deprecated form can pre-seed Lit's development-m
60
60
  `globalThis.litIssuedWarnings` set, before the element renders, with the key
61
61
  `lyra-deprecated:<owner>:<kind>:<name>` — `<kind>` and `<name>` as in the deprecation record.
62
62
  `<owner>` is the element name or package-relative module specifier. Theme migration guidance is in
63
- [styles and tokens](styles-and-tokens.md).
63
+ [styles and tokens](./shared/styles-and-tokens.md).
64
64
 
65
65
  ### Release history and upgrade notes
66
66
 
@@ -70,23 +70,9 @@ Family-wide breaking-change summaries open each authored `llms/<family>.md`, and
70
70
  `llms/components/<tag>.md` header links its family summary. `llms/migration.md` covers only
71
71
  `wa-*`/`sl-*` renames, not Lyra release history.
72
72
 
73
- The major-version landmarks after 9.0.0 are:
74
-
75
- - **10.0.0:** removed eligible members deprecated during 9.x and made the public-contract
76
- corrections listed in its changelog entry; follow that entry's per-member migration guidance.
77
- - **11.0.0:** carried no known consumer-breaking change; consumers upgrading from 10.x were not
78
- expected to change code.
79
- - **12.0.0:** removed the inherited static `LyraElement.getPropertyDescriptor()` surface after Lit
80
- deprecated that finalization hook. Ordinary component consumers need no migration; only subclasses
81
- that themselves overrode the hook are affected. Collection snapshot enforcement moved to a
82
- decorator-agnostic accessor seam instead.
83
-
84
- - **24.0.0:** removed eligible v22 compatibility routes, including package-root component
85
- constructors, duplicate nested registration entries, the combined `ssr-loader.js` entry, and the
86
- retired theme/preset facade. Use stable tag-shaped registration entries, a component's
87
- registration-free `.class.js` subpath, the split SSR/hydration entries, and the current style API.
88
- The [v23-to-v24 migration guide](v23-to-v24-migration.md) gives the removed routes, ordered
89
- consumer cleanup and retained-profile instructions.
73
+ The [v23-to-v24 migration guide](./shared/v23-to-v24-migration.md) gives the removed routes, ordered consumer
74
+ cleanup and retained-profile instructions. Use stable tag-shaped registration entries, a component's
75
+ registration-free `.class.js` subpath, the split SSR/hydration entries, and the current style API.
90
76
 
91
77
  ### The support window
92
78
 
@@ -196,7 +182,7 @@ The entry points, then:
196
182
  `@aceshooting/lyra-ui/localization.js` (side-effect-free locale runtime),
197
183
  `@aceshooting/lyra-ui/autoloader.js` (side-effect-free on-demand tag loading),
198
184
  `@aceshooting/lyra-ui/autoloader-cdn.js` (browser-guarded auto-start side effect),
199
- `@aceshooting/lyra-translations/<locale>.js` (the sixty-six message catalogs, in the companion package),
185
+ `@aceshooting/lyra-translations/<locale>.js` (the seventy message catalogs, in the companion package),
200
186
  `@aceshooting/lyra-ui/events` (the global typed-event map — types only, no runtime),
201
187
  `@aceshooting/lyra-ui/ai` (provider-neutral data types), `@aceshooting/lyra-ui/testing`
202
188
  (happy-dom shims, `createLyraEvent()` for building a validated test event, a small set of
@@ -404,7 +390,7 @@ through `@aceshooting/lyra-ui/events` for listeners on an ancestor, `document` o
404
390
  "TypeScript" below.
405
391
 
406
392
  For event-detail compatibility fields removed in the v23-to-v24 upgrade,
407
- use step 7 of the [migration checklist](v23-to-v24-migration.md#migrate-a-project-in-reviewable-steps).
393
+ use step 7 of the [migration checklist](./shared/v23-to-v24-migration.md#migrate-a-project-in-reviewable-steps).
408
394
  Those nested detail fields are separate from deprecated event names and are not automatic renames.
409
395
 
410
396
  ## TypeScript
@@ -486,6 +472,144 @@ transcript-feed is the current scroll-follow state; `map.legendOpen` is disclosu
486
472
  component's own steppers; its presence-based `true` default accepts the literal HTML value
487
473
  `"false"`. These true-default properties remain intentional and accept that literal value.
488
474
 
475
+ ### Large collection sources
476
+
477
+ Use `@aceshooting/lyra-ui/data-sources.js` for the type-only collection protocols, and
478
+ `@aceshooting/lyra-ui/utilities/data-preparation.js` for staged numeric preparation. Import the
479
+ specific component's registration separately and check its documented source property before
480
+ binding a provider. A protocol declaration does not imply that every component accepts it.
481
+ Legacy arrays, rolling windows, file previews and display caps retain their documented limits;
482
+ a capped prefix does not provide access to a million-record source.
483
+
484
+ The host owns each source and its indexes, storage and query work. Keep its revision, counts,
485
+ records and returned projections immutable for a request snapshot. Revisions are nonempty strings
486
+ or finite numbers; counts, offsets and record orders are nonnegative safe integers. Nonempty keys
487
+ identify logical records, and `order` is canonical source order independent of query sorting.
488
+ A provider can generate or fetch a requested window without allocating an array for the entire collection.
489
+ Arbitrary work inside a host callback remains the host's responsibility.
490
+
491
+ For components that document these protocols, replace the source, reassign the same source, or
492
+ call keyless `requestUpdate()` to refresh. A changed revision becomes observable at that explicit
493
+ update; it is not polled. Source replacement, rebind, refresh, disconnect and document adoption
494
+ invalidate pending work and source-derived caches. Providers should settle promptly on
495
+ `context.signal` cancellation. Cancellation is advisory: a late reply must still belong to the
496
+ current source identity, revision and request before it can update the view. Page/query changes
497
+ invalidate their dependent work; unrelated presentation updates do not imply a full-source read.
498
+
499
+ Choose the access shape that matches the host's data:
500
+
501
+ - `LyraRangeSource<T>` reads exactly the requested in-bounds range. `LyraIndexedView<T>` also
502
+ accepts the existing `LyraVirtualListIndexedSource<T>` for direct indexed access. Key lookup is
503
+ optional for a generic range; `LyraHierarchyView<T>` requires direct key lookup so navigation
504
+ does not scan the collection.
505
+ - `LyraPageSource<T, Q, Summary>` supplies globally queried pages, stable-key lookup and absolute
506
+ query positions. `page` is zero-based; `locate` returns a zero-based index or `null`.
507
+ `total` describes every query match, not loaded rows; group ranges describe the globally
508
+ ordered query and facets describe the full source catalogue. A declared `Summary` is required
509
+ in each result, while the default `undefined` summary can be omitted.
510
+ - `LyraTabularSource` has separate column metadata and zero-based body rows, using either
511
+ `cellAt` or bounded rectangular `readCells`. `LyraWorkbookSource` names sheets separately.
512
+ Search results use a bounded hit list, `total: null` when the global total is unknown, and
513
+ `exhaustive: true` only when every matching hit is included. A header hit has `row: -1`.
514
+ - `LyraHierarchySource<T, Q, Summary>` returns an immutable visible-preorder projection with
515
+ an opaque `state` token. `rows.count` is the visible logical count; `total` also includes
516
+ collapsed nodes. Row `level`/`position` are one-based and `setSize` is the exact sibling
517
+ count. Optional search and copy capabilities address the full requested source/scope, rather
518
+ than only mounted rows.
519
+ - `LyraGraphSource<N, E>` separates full record paging from bounded scenes and optional overview
520
+ bins. Global node/edge totals, scene coverage and displayed counts have distinct meanings;
521
+ a neighborhood or aggregate scene is not a complete graph layout.
522
+
523
+ Numeric helpers inspect all source positions in bounded chunks. Preparation has total O(n)
524
+ source-read work per pass, plus reducer work, even though each chunk and the retained result are
525
+ bounded. The default `batchSize` is 2,048 and its maximum is 8,192; it must be a positive safe
526
+ integer, with larger safe integers clamped. Helpers yield between chunks and check aborts around
527
+ asynchronous work and before publication. Each read must return an actual array of exactly the
528
+ requested size. Sparse holes are invalid positions; explicit own `undefined` may be classified by
529
+ a generic category selector. Observed count/revision changes, malformed replies, callback errors
530
+ and finite-sum overflow reject preparation. Payload immutability and replayability remain host
531
+ obligations. Results and nested result containers are frozen; source storage is not copied
532
+ wholesale or frozen. Scratch storage is bounded by a chunk and the output budgets. Series handles
533
+ retain their readers for exact lookup; other helper results contain no reader handles. Output
534
+ budget options require positive safe integers (series points require at least four), with larger
535
+ safe integers clamped to their documented maxima.
536
+
537
+ `counts.sourceCount` always counts original positions, `validCount` accepted observations, and
538
+ `invalidCount` the remainder. Displayed samples, categories, bins, words and waveform buckets
539
+ are separate summary sizes. An empty/all-invalid numeric domain is `null`. Preparation limits
540
+ do not change a component's own accepted input budget; check the component's documented route
541
+ before passing a prepared result.
542
+
543
+ - `prepareLyraSeriesData` scans each series once. Finite x/y pairs contribute full domains and
544
+ counts; null/nonfinite/missing coordinates are invalid and remain gaps. The overview retains
545
+ first/last valid points and index-partition y extrema in source order, preserving original x
546
+ and `sourceIndex`. `breakBefore` is true on the first sample and whenever invalid positions
547
+ occur between retained samples, including omitted segments. This overview can omit valid
548
+ segments and is not an exact reconstruction. `maxPointsPerSeries` defaults to 500, requires
549
+ at least 4 and clamps to 1,000. Requested capacity across all series must fit 9,000 samples;
550
+ excess series/capacity rejects. Inputs must share a revision and have unique IDs; the series
551
+ list must be nonempty, although a reader may have zero positions. IDs are nonblank and at
552
+ most 256 UTF-16 code units, labels at most 1,024, with 65,536 combined metadata units.
553
+ The result intentionally retains readers and their backing storage: `getPoint` reads exactly
554
+ one original position, returning a valid pair or `null`, and rejects unknown/out-of-range
555
+ references. The helper does not implement optional `queryRange`; hosts may provide indexed
556
+ refinement for `[startIndex, endIndex)` separately.
557
+ - `prepareLyraCategoryData` scans once into at most 1,000 declared unique categories and one
558
+ result series, using the same ID/label/metadata limits as series preparation. `count` ignores
559
+ `valueOf` entirely; `sum` and `mean` require an own synchronous numeric `valueOf` callback.
560
+ Null/non-string/empty/over-256-unit category IDs and nonfinite amounts are invalid.
561
+ Unknown remaining IDs map to `otherCategoryId` only when that ID names a declared category;
562
+ otherwise they are invalid.
563
+ Other is a real aggregate with its own `categoryCounts`, not a sampled remainder. Means divide
564
+ each category's accepted sum by its accepted count; empty categories have value zero. Selectors
565
+ return scalar values and their computation cost is host-owned. The helper does not build an
566
+ unbounded category-frequency map or accept `host-defined` as a reducer option.
567
+ - `prepareLyraHistogram` uses one pass for explicit finite strictly increasing edges, or two
568
+ replayable passes for automatic `binCount` edges. There are at most 1,000 bins. Bins are
569
+ half-open except the inclusive final upper edge, and `sum(binCounts) + belowCount + aboveCount`
570
+ equals `validCount`. Every finite observation contributes, including explicit-edge outliers;
571
+ the observed `domain` includes those outliers. Constant data gets a finite nonzero display
572
+ interval while its observed domain stays unchanged. Empty/all-invalid automatic results have
573
+ no edges or bins; explicit edges remain with zero bin counts. Unrepresentable distinct edges
574
+ reject.
575
+ - `prepareLyraWordCloud` selects exact global top-K from an already aggregated weighted catalog,
576
+ with `maxWords` default/maximum 150. Ties favor earlier source positions. IDs must be globally
577
+ unique by host contract; bounded duplicate detection covers only retained candidates. Blank
578
+ or over-256-unit IDs/text and negative/nonfinite weights are invalid. `totalWeight` includes
579
+ every valid observation; `retainedWeight` covers only selected words. Chosen text exceeding
580
+ 16,384 UTF-16 units rejects; lower `maxWords` to reduce the result. The bounded heap adds
581
+ O(n log K) reducer work; this helper does not tokenize or compute arbitrary word frequencies.
582
+ - `prepareLyraWaveform` scans once into positional interval maxima, with `maxBuckets`
583
+ default/maximum 65,536. Finite amplitudes clamp to [0, 1]; invalid positions keep their time
584
+ slots and contribute no peak. Each `[startIndex, endIndex)` interval covers original positions.
585
+ `sampleCount` equals `sourceCount`. `firstAmplitude`/`lastAmplitude` refer to original
586
+ endpoints, with `null` for invalid/absent endpoints. `duration` must be finite, nonnegative
587
+ and describe the summarized media interval.
588
+
589
+ For example, a replayable reader can generate a million logical values while allocating only
590
+ the requested chunk. The resulting histogram is a full-source distribution with 100 displayed
591
+ bins; it is not a million-element array.
592
+
593
+ ```ts
594
+ import { prepareLyraHistogram } from '@aceshooting/lyra-ui/utilities/data-preparation.js';
595
+ import type { LyraIndexedInput } from '@aceshooting/lyra-ui/utilities/data-preparation.js';
596
+
597
+ const input: LyraIndexedInput<number> = {
598
+ revision: 'measurements-1',
599
+ count: 1_000_000,
600
+ read(start, count, { signal }) {
601
+ signal.throwIfAborted();
602
+ return Array.from({ length: count }, (_, offset) => (start + offset) % 100);
603
+ },
604
+ };
605
+ const abort = new AbortController();
606
+ const distribution = await prepareLyraHistogram(input, {
607
+ binCount: 100,
608
+ signal: abort.signal,
609
+ });
610
+ console.log(distribution.counts.sourceCount, distribution.binCounts.length);
611
+ ```
612
+
489
613
  ## Form association
490
614
 
491
615
  `FormAssociated(Base)` (`@aceshooting/lyra-ui/utilities/form-associated.js`) makes a `LitElement`
@@ -956,7 +1080,7 @@ These are decorative application backgrounds, not an `accentBackground` value: t
956
1080
  accepts absolute colors used as contrast reference surfaces, not gradients or image URLs. Use
957
1081
  semantic surface/text pairings for content and keep the decorative layer behind it.
958
1082
 
959
- Use the existing [gemstoneAccentPicker composition](../components/lr-swatch-picker.md#gemstoneaccentpicker--the-signature-accent-selector),
1083
+ Use the existing [gemstoneAccentPicker composition](./components/lr-swatch-picker.md#gemstoneaccentpicker--the-signature-accent-selector),
960
1084
  with its single localized “Selected accent: {name}” heading, nine canonical gemstones, and shared
961
1085
  selected-glyph treatment. Update the name when selection changes. Use the same interpolated label
962
1086
  for the trigger's accessible name and hover title, dialog, radiogroup, and visible heading; do not
@@ -1092,9 +1216,9 @@ server-rendered pages and for application elements that paint before any Lyra el
1092
1216
  `tokens-root.css` is the same layer alone, as a static stylesheet, for pages that do not use
1093
1217
  `theme.css`:
1094
1218
 
1095
- - **Server-rendered pages.** Declarative shadow roots no longer carry the layer, so link
1096
- `theme.css` (or `tokens-root.css`) for a correct first paint before hydration (see
1097
- [Theme scopes](#theme-scopes) for application shadow roots).
1219
+ - **Server-rendered pages.** See
1220
+ [SSR and declarative shadow DOM](./shared/frameworks-and-ssr.md#ssr-and-declarative-shadow-dom) and
1221
+ [Theme scopes](#theme-scopes) for application shadow roots.
1098
1222
  - **Application elements that paint before the first Lyra element is registered**, for example
1099
1223
  ahead of a lazily loaded route; otherwise they change value when the layer is adopted.
1100
1224
  - **Large pages that load Lyra late.** Without a static copy, the layer is adopted when the first
@@ -1201,8 +1325,7 @@ and the mode it sees. The list is closed: `:root`; the mode scopes `.lr-light`,
1201
1325
  outer scope reaches a marked region exactly as it reaches an unmarked one, and adding a marker
1202
1326
  where nothing needs it changes nothing. With `theme.css`, mode scopes and the style-axis
1203
1327
  boundaries also re-resolve the inputs from the selected look, accent and mode, so an input set
1204
- above one of them stops there (set it on that boundary, or below it). A scope costs a little less
1205
- than one component did before 28.0.0, so put inputs on a common ancestor rather than marking every
1328
+ above one of them stops there (set it on that boundary, or below it). A scope is cheap, so put inputs on a common ancestor rather than marking every
1206
1329
  row of a list.
1207
1330
  - **`applyLyraStyleScope()`** writes the marker whenever it writes inline inputs.
1208
1331
  - **Brand regions in the default look.** The marker re-derives outputs but is not a style boundary,
@@ -1481,7 +1604,7 @@ for dialogs or panels (so it also renders without the component bundle) and uses
1481
1604
  on an `.lr-surface-chrome` element overrides the Glass fill; declare a low-priority layer before
1482
1605
  Lyra's names (`@layer app-base, lr-base, lr-theme, lr-theme-preset, lr-utilities, lr-overrides;`)
1483
1606
  for those fallbacks, or set `--lr-surface-background`. See
1484
- [Application fallback fills and cascade layers](native-styles-and-utilities.md#application-fallback-fills-and-cascade-layers).
1607
+ [Application fallback fills and cascade layers](./shared/native-styles-and-utilities.md#application-fallback-fills-and-cascade-layers).
1485
1608
 
1486
1609
  <a id="the-shadcn-look--themesshadcncss"></a>
1487
1610
 
@@ -1523,7 +1646,6 @@ Override the look through an unlayered application rule or the lr-overrides laye
1523
1646
  }
1524
1647
  ~~~
1525
1648
 
1526
- The former global themes/shadcn.css facade and its data-lr-theme-preset behavior have been removed.
1527
1649
  Use theme.css and the data-lr-look axis for new styling; looks/shadcn.css is needed only for the
1528
1650
  compatibility aliases above.
1529
1651
 
@@ -1619,8 +1741,7 @@ code. See each control's own reference page for its exact pair.
1619
1741
  takes precedence, and it has to: the shipped `design-tokens.css` declares
1620
1742
  `--lr-theme-icon-button-size` on `:root`, and a `var()` chain only falls through for a property
1621
1743
  that is unset *everywhere*, not merely shadowed nearer the element. Reading the theme tier first
1622
- therefore made this knob inert for anyone loading that stylesheet (a real 18.1.0 defect, fixed in
1623
- 18.2.0). `--lr-icon-button-size`
1744
+ therefore made this knob inert for anyone loading that stylesheet. `--lr-icon-button-size`
1624
1745
  is **element-scoped on purpose** and is not a wrapper knob: every component re-declares it on its
1625
1746
  own host so the touch-target floor can apply per element, so a value set on a wrapper is replaced
1626
1747
  at the first component in between and never reaches anything nested inside one. That behaviour is
@@ -1696,8 +1817,7 @@ sets `color-scheme`. **Every engine follows the nearest mode scope, with or with
1696
1817
  document layer carries mode to every scope through two inherited private switches, so a `.lr-light`
1697
1818
  island inside a `.lr-dark` region is light, a mode-neutral scope keeps its ancestor's mode, and the
1698
1819
  OS preference decides the root unless the root carries an explicit mode. A real `--lr-theme-*` value
1699
- still wins over the built-in light or dark default. (Before 28.0.0 an ancestor mode reached
1700
- components without `theme.css` only in Chromium, through `:host-context()`.)
1820
+ still wins over the built-in light or dark default.
1701
1821
 
1702
1822
  Each component host also keeps `:host([hidden]) { display: none !important; }` and an inherited
1703
1823
  `box-sizing: border-box` reset.
@@ -1808,7 +1928,7 @@ the whole profile in it. A page whose bootstrap uses `data-lr-theme-restore="mod
1808
1928
  application-owned storage key does not pair with it: the start would apply axes or a record the
1809
1929
  bootstrap deliberately ignored. Such pages call `setLyraStyle()` with the policy they want.
1810
1930
 
1811
- **Migrating the retired theme facade.** New code uses setLyraStyle() and getLyraStyle(). Map old auto mode to system, an old surface reference color to accentBackground, and an old token map to overrides; review custom CSS colors that share a gemstone name before choosing a named accent. Replace preset definitions with a LyraLook plus explicit style choices. Replace selectors for data-lr-theme-preset with the actual axis they need, such as data-lr-look="shadcn". Import theme.css in place of the removed fixed themes/shadcn.css facade and select the look with setLyraStyle({ look: "shadcn" }) or a scoped data-lr-look attribute. Listen for lr-style-change and read event.detail.style and event.detail.changed; the old theme and preset events are no longer emitted. For the complete project-by-project sequence, see [Upgrading from v23 to v24](v23-to-v24-migration.md).
1931
+ **Migrating the retired theme facade.** New code uses setLyraStyle() and getLyraStyle(). Map old auto mode to system, an old surface reference color to accentBackground, and an old token map to overrides; review custom CSS colors that share a gemstone name before choosing a named accent. Replace preset definitions with a LyraLook plus explicit style choices. Replace selectors for data-lr-theme-preset with the actual axis they need, such as data-lr-look="shadcn". Import theme.css in place of the removed fixed themes/shadcn.css facade and select the look with setLyraStyle({ look: "shadcn" }) or a scoped data-lr-look attribute. Listen for lr-style-change and read event.detail.style and event.detail.changed; the old theme and preset events are no longer emitted. For the complete project-by-project sequence, see [Upgrading from v23 to v24](./shared/v23-to-v24-migration.md).
1812
1932
 
1813
1933
  Historical v1 stored records remain readable by the runtime and bootstrap. The removed JavaScript functions, preset subpaths, preset event, root marker, and fixed stylesheet are not available in the current API.
1814
1934
 
@@ -2243,7 +2363,7 @@ application's fallback where it ranks below Lyra:
2243
2363
  An application layer declared after Lyra's (or unnamed until after `theme.css` loads) ranks above
2244
2364
  the surface layer and disables Glass in the same way as an unlayered rule. Keep unlayered
2245
2365
  `background` rules off `.lr-surface-chrome` elements, or exclude them with
2246
- `:not(.lr-surface-chrome)`. See [Cascade layers](styles-and-tokens.md#cascade-layers) for the full
2366
+ `:not(.lr-surface-chrome)`. See [Cascade layers](./shared/styles-and-tokens.md#cascade-layers) for the full
2247
2367
  order.
2248
2368
 
2249
2369
  ## Localization: `locale`, `strings`, and the locale runtime
@@ -2307,8 +2427,6 @@ The side-effect-free `@aceshooting/lyra-ui/localization.js` entry exports
2307
2427
  `LyraPluralMessage`, `LyraPluralCategory`, `LyraLocaleBridgeOptions` and `LyraLocaleBridgeCleanup`.
2308
2428
  The package root continues to re-export the runtime for compatibility and remains registration-free;
2309
2429
  use the dedicated entry when the application only needs locale setup and the narrower import graph.
2310
- The former utility-scoped entry point was removed in 23.0.0. Change that import specifier to
2311
- `@aceshooting/lyra-ui/localization.js`; the helper contracts are unchanged.
2312
2430
  **`LYRA_DEFAULT_STRINGS` is the authoritative key list** (matching the `LyraMessageKey` union) —
2313
2431
  read it to find the key to override rather than guessing one. Date, number, byte, relative-time and
2314
2432
  calendar output goes through `Intl`.
@@ -2365,7 +2483,7 @@ category selection walks the same chain, so the two can never disagree:
2365
2483
  _regional-only_ catalog is reached from a less specific tag (`lang="zh"` finds `zh-CN`,
2366
2484
  `lang="pt"` finds `pt-BR`). Order is deterministic and independent of import order:
2367
2485
  1. **Same likely script** — the explicit script subtag, else CLDR likely subtags via
2368
- `Intl.Locale#maximize()`. `zh-Hant`, `zh-HK`, `zh-MO` and `zh-Hant-CN` reach Traditional
2486
+ `Intl.Locale#maximize()`. `zh-Hant`, `zh-HK` (when `zh-HK` is not itself imported), `zh-MO` and `zh-Hant-CN` reach Traditional
2369
2487
  `zh-TW`; `zh`, `zh-Hans`, `zh-SG` and `zh-Hans-HK` reach Simplified `zh-CN`. An unknown
2370
2488
  script (none, `Zzzz`, or no `Intl.Locale`) never matches.
2371
2489
  2. **Same likely region** — a region-less tag reaches its CLDR default region: bare `pt` picks
@@ -2448,7 +2566,7 @@ silently defeats a registered catalog — omit it, or pass `undefined`.
2448
2566
 
2449
2567
  ### Ready-made catalogs: `@aceshooting/lyra-translations/<locale>.js`
2450
2568
 
2451
- Sixty-six full catalogs ship in the companion package `@aceshooting/lyra-translations` (`pnpm add @aceshooting/lyra-translations`, same version as `@aceshooting/lyra-ui`), each covering every key in `LYRA_DEFAULT_STRINGS`.
2569
+ Seventy catalogs ship in the companion package `@aceshooting/lyra-translations` (`pnpm add @aceshooting/lyra-translations`, same version as `@aceshooting/lyra-ui`), each covering every key in `LYRA_DEFAULT_STRINGS`.
2452
2570
  The public `@aceshooting/lyra-ui/locales.json` manifest lists their canonical identities, authored
2453
2571
  source spellings, import paths, and structural coverage. It also distinguishes translation
2454
2572
  coverage from linguistic review tier. The catalogs are **side-effect-only modules**: import one
@@ -2457,6 +2575,9 @@ bare, read nothing from it, and it calls `registerLyraLocale()` for you.
2457
2575
  ```ts
2458
2576
  import "@aceshooting/lyra-translations/de.js";
2459
2577
  import "@aceshooting/lyra-translations/de-CH.js"; // Swiss Standard German
2578
+ import "@aceshooting/lyra-translations/en-GB.js"; // British English: a small difference catalog over the built-in English
2579
+ import "@aceshooting/lyra-translations/es-419.js"; // Latin American Spanish: differences over es
2580
+ import "@aceshooting/lyra-translations/fr-CA.js"; // Canadian French: differences over fr
2460
2581
  import "@aceshooting/lyra-translations/ar.js"; // declares dir: 'rtl'; direction still comes from dir
2461
2582
  import "@aceshooting/lyra-translations/fa.js"; // fa-IR falls back to this base catalog
2462
2583
  import "@aceshooting/lyra-translations/he.js"; // he-IL falls back to this base catalog
@@ -2465,7 +2586,8 @@ import "@aceshooting/lyra-translations/pt-BR.js"; // Brazilian: serves pt and pt
2465
2586
  import "@aceshooting/lyra-translations/pt-PT.js"; // European: serves pt-PT, pt-AO, pt-MZ
2466
2587
  import "@aceshooting/lyra-translations/ro.js"; // Romanian
2467
2588
  import "@aceshooting/lyra-translations/zh-CN.js"; // Simplified: serves zh, zh-Hans, zh-SG and zh-Hans-CN
2468
- import "@aceshooting/lyra-translations/zh-TW.js"; // Traditional: serves zh-Hant, zh-HK and zh-MO
2589
+ import "@aceshooting/lyra-translations/zh-TW.js"; // Traditional: serves zh-Hant and zh-MO
2590
+ import "@aceshooting/lyra-translations/zh-HK.js"; // Hong Kong: differences over zh-TW
2469
2591
  ```
2470
2592
 
2471
2593
  Persian and Hebrew use CLDR plural categories (`fa`: `one`/`other`; `he`:
@@ -2477,11 +2599,14 @@ and `he` declare `dir: 'rtl'`, so `getLyraLocaleDirection()`
2477
2599
  answers for them (and for `ar-EG`, `fa-IR`, `he-IL`) — but locale selection still does not _force_
2478
2600
  writing direction: set `dir="rtl"` on the page or an ancestor yourself.
2479
2601
 
2480
- `de-CH`, `pt-BR`, `pt-PT`, `zh-CN`, and `zh-TW` are regional catalogs: an exact tag always selects
2602
+ `de-CH`, `en-GB`, `es-419`, `fr-CA`, `pt-BR`, `pt-PT`, `zh-CN`, `zh-HK`, and `zh-TW` are regional catalogs: an exact tag always selects
2481
2603
  its own catalog, and a less specific tag reaches one through step 2 only when nothing on its
2482
2604
  truncation walk answers first (with `de` imported, `lang="de-AT"` resolves to `de`, never `de-CH`).
2483
2605
  The same routing drives plural selection and `getLyraLocaleDirection()`. They are listed under
2484
- their real tags in `getRegisteredLyraLocales()`.
2606
+ their real tags in `getRegisteredLyraLocales()`. `de-CH`, `en-GB`, `es-419`, `fr-CA` and `zh-HK` are difference catalogs:
2607
+ they register only the messages that differ and resolve every other message through their parent
2608
+ (`de`, the built-in English, `es`, `fr`, `zh-TW`), and importing one also imports its parent catalog (`en-GB` has none: English is built in).
2609
+ The four regional additions are AI-assisted translations; no human or native-speaker review is claimed.
2485
2610
 
2486
2611
  Import only the locales the application can actually offer — each is a separate module, so unimported
2487
2612
  ones cost nothing. A catalog registered this way is merged like any other, so a later
@@ -2797,7 +2922,7 @@ and adapters emit empty JavaScript and do not register elements.
2797
2922
  ## SSR and declarative shadow DOM
2798
2923
 
2799
2924
  When replacing the removed combined `ssr-loader.js` route, split browser hydration from component
2800
- registration and server rendering as shown below. The [v23-to-v24 migration guide](v23-to-v24-migration.md)
2925
+ registration and server rendering as shown below. The [v23-to-v24 migration guide](./shared/v23-to-v24-migration.md)
2801
2926
  has the ordered upgrade steps and environment-specific import mapping.
2802
2927
 
2803
2928
  Root, `all.js`, and granular component imports are server-safe under the supported Node 22+ runtime.
@@ -2930,6 +3055,11 @@ insertions and removals; nested shadow trees and constructed `adoptedStyleSheets
2930
3055
  This lets marked application scopes discover and adopt their token provider under Happy DOM.
2931
3056
  An existing platform collection is never replaced, and plain Node remains unchanged.
2932
3057
 
3058
+ `lr-code-block` and `lr-code-block-core` no longer need an `Element.part` shim: where the DOM lacks
3059
+ `Element.part` (Happy DOM), rendering does not throw, and highlighted lines keep their
3060
+ `line-highlight` part wherever CSS parts exist. If a setup file patches `Element.prototype.part`
3061
+ only for code blocks, remove it; `installHappyDomShims()` does not install one.
3062
+
2933
3063
  When Happy DOM lacks the HTML `dir="ltr"`/`dir="rtl"` presentational hints,
2934
3064
  `installHappyDomShims()` adds zero-specificity direction rules to the document head. This restores
2935
3065
  computed direction and inherited component direction while preserving explicit author CSS.
@@ -3219,8 +3349,8 @@ they carry no `tag`: `components/media/flag/flag-peer.js`,
3219
3349
  stand in for. They are a separate array rather than tag-less rows mixed into `entries`, so a reader
3220
3350
  that keys `entries` by `tag` keeps working; `integrations`, `distModule` and `localeKeys` are all
3221
3351
  additive, which is why the schema version is unchanged. `registrationModule` is the `src/` path used
3222
- internally; `distModule` is a retained published specifier and equals the stable `entry` for v24
3223
- per-tag registrations and integration bridges. `registers` is every `lr-*` tag
3352
+ internally; `distModule` is a retained published specifier and equals the stable `entry` for per-tag
3353
+ registrations and integration bridges. `registers` is every `lr-*` tag
3224
3354
  importing `entry` defines, direct or transitive, derived from the same transitive-import analysis
3225
3355
  `scripts/check-component-dependencies.mjs` already performs against the real registration graph
3226
3356
  (not a second hand-maintained list). `localeKeys` is every `LyraMessageKey` the registered tags can
@@ -3263,8 +3393,7 @@ same way `all.js` registers its root-included tags (the package root itself regi
3263
3393
  and want a single import; reach for the granular
3264
3394
  `@aceshooting/lyra-ui/components/<tag>.js` path when you do not, because a barrel cannot be
3265
3395
  tree-shaken down to the two elements you actually render. The tag-shaped path remains stable if a
3266
- component moves between Lyra's internal family folders. Duplicate nested registration paths were
3267
- removed in v24; family barrels remain supported.
3396
+ component moves between Lyra's internal family folders.
3268
3397
 
3269
3398
  ```js
3270
3399
  import "@aceshooting/lyra-ui/components/forms"; // every form control
@@ -3702,7 +3831,7 @@ number; clearTimeout(handle: number): void }`.
3702
3831
  - **`localization` → `subscribeLyraLocale(listener): () => void` and
3703
3832
  `bridgeLyraLocale(options?): () => void`** — the _active-locale_ half of the locale runtime.
3704
3833
  Import these helpers from the side-effect-free `@aceshooting/lyra-ui/localization.js` entry.
3705
- The former `utilities/localization.js` route was removed in 23.0.0. The extensionless `@aceshooting/lyra-ui/utilities`
3834
+ The extensionless `@aceshooting/lyra-ui/utilities`
3706
3835
  barrel keeps exporting them. `subscribeLyraLocale()` is distinct from
3707
3836
  `subscribeLyraLocaleRegistry()`, which answers a different question — see "Localization".
3708
3837
  `subscribeLyraLocale()` fires whenever the active selection changes, and when a newly registered
@@ -3826,92 +3955,423 @@ Keep the report short and concrete:
3826
3955
 
3827
3956
  These named interfaces and helper signatures are available to typed integrations. They are grouped by capability so the component sections above can stay focused.
3828
3957
 
3958
+ - **`data-sources-contracts`** — Public collection contracts from `data-sources.js`. These are type-only protocols; each component documents which source inputs it accepts. Inherited fields are repeated to show the complete effective request/row shape.
3959
+
3960
+ `LyraSourceRevision = string | number`
3961
+ `LyraSourceContext {
3962
+ readonly revision: LyraSourceRevision;
3963
+ readonly locale: string;
3964
+ readonly signal: AbortSignal;
3965
+ }`
3966
+ `LyraSourceRecord<T> {
3967
+ readonly key: string;
3968
+ readonly value: T;
3969
+ readonly order: number;
3970
+ }`
3971
+ `LyraSourceSearchRequest extends LyraSourceContext {
3972
+ readonly revision: LyraSourceRevision;
3973
+ readonly locale: string;
3974
+ readonly signal: AbortSignal;
3975
+ readonly query: string;
3976
+ readonly limit: number;
3977
+ }`
3978
+ `LyraSourceSearchResult<Hit> {
3979
+ readonly hits: readonly Hit[];
3980
+ readonly total: number | null;
3981
+ readonly exhaustive: boolean;
3982
+ }`
3983
+ `LyraSourceRangeRequest extends LyraSourceContext {
3984
+ readonly revision: LyraSourceRevision;
3985
+ readonly locale: string;
3986
+ readonly signal: AbortSignal;
3987
+ readonly offset: number;
3988
+ readonly limit: number;
3989
+ }`
3990
+ `LyraRangeSource<T> {
3991
+ readonly count: number;
3992
+ read(request: LyraSourceRangeRequest): Promise<readonly T[]>;
3993
+ indexOfKey?(key: string, context: LyraSourceContext): Promise<number | null>;
3994
+ }`
3995
+ `LyraIndexedView<T> = LyraVirtualListIndexedSource<T> | LyraRangeSource<T>`
3996
+ `LyraHierarchyView<T> =
3997
+ | (LyraVirtualListIndexedSource<T> & {
3998
+ keyAt(index: number): string;
3999
+ indexOfKey(key: string | number): number;
4000
+ })
4001
+ | (LyraRangeSource<T> & {
4002
+ indexOfKey(key: string, context: LyraSourceContext): Promise<number | null>;
4003
+ })`
4004
+ `LyraSourceSummary<S> = [S] extends [undefined]
4005
+ ? { readonly summary?: undefined }
4006
+ : { readonly summary: S }`
4007
+ `LyraSourceCell = string | number | boolean | null | undefined`
4008
+ `LyraTabularColumn { readonly key: string; readonly label: string; }`
4009
+ `LyraTabularHit {
4010
+ readonly row: number;
4011
+ readonly column: number;
4012
+ }`
4013
+ `LyraTabularReadRequest extends LyraSourceContext {
4014
+ readonly revision: LyraSourceRevision;
4015
+ readonly locale: string;
4016
+ readonly signal: AbortSignal;
4017
+ readonly row: number;
4018
+ readonly rowCount: number;
4019
+ readonly column: number;
4020
+ readonly columnCount: number;
4021
+ }`
4022
+ `LyraTabularSourceBase {
4023
+ readonly revision: LyraSourceRevision;
4024
+ readonly rowCount: number;
4025
+ readonly columnCount: number;
4026
+ columnAt(index: number): LyraTabularColumn;
4027
+ rowKeyAt?(index: number): string;
4028
+ indexOfRowKey?(key: string): number;
4029
+ search?(request: LyraSourceSearchRequest): Promise<LyraSourceSearchResult<LyraTabularHit>>;
4030
+ }`
4031
+ `LyraTabularSource = LyraTabularSourceBase & (
4032
+ | { cellAt(row: number, column: number): LyraSourceCell; readCells?: never }
4033
+ | { cellAt?: never; readCells(request: LyraTabularReadRequest): Promise<readonly (readonly LyraSourceCell[])[]> }
4034
+ )`
4035
+ `LyraWorkbookHit extends LyraTabularHit {
4036
+ readonly row: number;
4037
+ readonly column: number;
4038
+ readonly sheetKey: string;
4039
+ }`
4040
+ `LyraWorkbookSource {
4041
+ readonly revision: LyraSourceRevision;
4042
+ readonly sheets: readonly {
4043
+ readonly key: string;
4044
+ readonly name: string;
4045
+ readonly data: LyraTabularSource;
4046
+ }[];
4047
+ search?(request: LyraSourceSearchRequest): Promise<LyraSourceSearchResult<LyraWorkbookHit>>;
4048
+ }`
4049
+ `LyraSourceFacet {
4050
+ readonly values: readonly { readonly key: string; readonly label: string; readonly count?: number }[];
4051
+ readonly total: number;
4052
+ readonly unavailableSelected: readonly string[];
4053
+ }`
4054
+ `LyraSourceGroup {
4055
+ readonly key: string;
4056
+ readonly label: string;
4057
+ readonly startIndex: number;
4058
+ readonly itemCount: number;
4059
+ }`
4060
+ `LyraPageRequest<Q> extends LyraSourceContext {
4061
+ readonly revision: LyraSourceRevision;
4062
+ readonly locale: string;
4063
+ readonly signal: AbortSignal;
4064
+ readonly page: number;
4065
+ readonly pageSize: number;
4066
+ readonly query: Q;
4067
+ }`
4068
+ `LyraPageResult<T, Summary = undefined> = {
4069
+ readonly rows: readonly LyraSourceRecord<T>[];
4070
+ readonly total: number;
4071
+ readonly groups?: readonly LyraSourceGroup[];
4072
+ readonly tags?: LyraSourceFacet;
4073
+ } & LyraSourceSummary<Summary>`
4074
+ `LyraPageSource<T, Q, Summary = undefined> {
4075
+ readonly revision: LyraSourceRevision;
4076
+ query(request: LyraPageRequest<Q>): Promise<LyraPageResult<T, Summary>>;
4077
+ lookup(keys: readonly string[], context: LyraSourceContext): Promise<readonly LyraSourceRecord<T>[]>;
4078
+ locate(key: string, query: Q, context: LyraSourceContext): Promise<number | null>;
4079
+ }`
4080
+ `LyraHierarchyRow<T> {
4081
+ readonly key: string;
4082
+ readonly value: T;
4083
+ readonly parentKey: string | null;
4084
+ readonly level: number;
4085
+ readonly position: number;
4086
+ readonly setSize: number;
4087
+ readonly childCount: number;
4088
+ readonly expanded: boolean;
4089
+ readonly selected: boolean;
4090
+ readonly disabled?: boolean;
4091
+ readonly selectionState?: 'none' | 'partial' | 'all';
4092
+ }`
4093
+ `LyraHierarchyAction =
4094
+ | { readonly type: 'reset' }
4095
+ | { readonly type: 'toggle'; readonly key: string; readonly expanded: boolean }
4096
+ | { readonly type: 'reveal'; readonly key: string }
4097
+ | { readonly type: 'select'; readonly key: string; readonly selected: boolean; readonly scope: 'item' | 'subtree' }`
4098
+ `LyraHierarchyRequest<Q> extends LyraSourceContext {
4099
+ readonly revision: LyraSourceRevision;
4100
+ readonly locale: string;
4101
+ readonly signal: AbortSignal;
4102
+ readonly query: Q;
4103
+ readonly state: string | null;
4104
+ readonly action: LyraHierarchyAction;
4105
+ }`
4106
+ `LyraHierarchyProjection<T, Summary = undefined> = {
4107
+ readonly state: string;
4108
+ readonly total: number;
4109
+ readonly rows: LyraHierarchyView<LyraHierarchyRow<T>>;
4110
+ readonly focusIndex?: number;
4111
+ } & LyraSourceSummary<Summary>`
4112
+ `LyraHierarchySource<T, Q, Summary = undefined> {
4113
+ readonly revision: LyraSourceRevision;
4114
+ project(request: LyraHierarchyRequest<Q>): Promise<LyraHierarchyProjection<T, Summary>>;
4115
+ search?(request: LyraSourceSearchRequest): Promise<LyraSourceSearchResult<{ readonly key: string }>>;
4116
+ copy?(request: LyraSourceContext & {
4117
+ readonly key: string | null;
4118
+ readonly scope: 'node' | 'subtree' | 'document';
4119
+ readonly maxBytes: number;
4120
+ }): Promise<string>;
4121
+ }`
4122
+ `LyraInspectionNode {
4123
+ readonly name: string;
4124
+ readonly kind: 'object' | 'array' | 'scalar' | 'element' | 'attribute' | 'text' | 'comment' | 'processing-instruction';
4125
+ readonly value?: string;
4126
+ readonly path: string;
4127
+ }`
4128
+ `LyraHierarchyQuery {
4129
+ readonly search: string;
4130
+ readonly hiddenKinds: readonly string[];
4131
+ }`
4132
+ `LyraTraceSourceSummary { readonly startMs: number; readonly endMs: number; }`
4133
+ `LyraTaskSourceSummary { readonly total: number; readonly completed: number; }`
4134
+ `LyraSourceBounds { readonly x: number; readonly y: number; readonly width: number; readonly height: number; }`
4135
+ `LyraGraphSourceQuery {
4136
+ readonly kind: 'nodes' | 'edges';
4137
+ readonly search: string;
4138
+ readonly centerKey: string | null;
4139
+ readonly direction: 'in' | 'out' | 'both';
4140
+ readonly nodeTypes: readonly string[];
4141
+ }`
4142
+ `LyraGraphRecord<N, E> =
4143
+ | { readonly kind: 'node'; readonly value: N }
4144
+ | { readonly kind: 'edge'; readonly value: E }`
4145
+ `LyraGraphSourceSummary { readonly nodes: number; readonly edges: number; }`
4146
+ `LyraGraphSceneRequest extends LyraSourceContext {
4147
+ readonly revision: LyraSourceRevision;
4148
+ readonly locale: string;
4149
+ readonly signal: AbortSignal;
4150
+ readonly mode: 'neighborhood' | 'viewport';
4151
+ readonly centerKey: string | null;
4152
+ readonly bounds: LyraSourceBounds | null;
4153
+ readonly nodeLimit: number;
4154
+ readonly edgeLimit: number;
4155
+ readonly includeKeys: readonly string[];
4156
+ }`
4157
+ `LyraGraphScene<N, E> {
4158
+ readonly nodes: readonly { readonly key: string; readonly value: N; readonly position?: { readonly x: number; readonly y: number; readonly z?: number } }[];
4159
+ readonly edges: readonly { readonly key: string; readonly value: E; readonly source: string; readonly target: string }[];
4160
+ readonly total: LyraGraphSourceSummary;
4161
+ readonly coverage: 'complete' | 'neighborhood' | 'aggregate';
4162
+ readonly worldBounds: LyraSourceBounds | null;
4163
+ }`
4164
+ `LyraGraphOverview {
4165
+ readonly bounds: LyraSourceBounds;
4166
+ readonly bins: readonly { readonly bounds: LyraSourceBounds; readonly count: number }[];
4167
+ }`
4168
+ `LyraGraphSource<N, E> {
4169
+ readonly revision: LyraSourceRevision;
4170
+ readonly records: LyraPageSource<LyraGraphRecord<N, E>, LyraGraphSourceQuery, LyraGraphSourceSummary>;
4171
+ scene(request: LyraGraphSceneRequest): Promise<LyraGraphScene<N, E>>;
4172
+ overview?(request: LyraSourceContext & { readonly limit: number }): Promise<LyraGraphOverview>;
4173
+ }`
4174
+
4175
+ - **`utilities-data-preparation-contracts`** — Public staged numeric helpers and result contracts from `utilities/data-preparation.js`. Preparation reads the full immutable source in bounded chunks; retained summaries are distinct from source counts. Inherited fields are repeated for reference. Defaulted options may be omitted.
4176
+
4177
+ `LyraSourceValue<T> = T | PromiseLike<T>`
4178
+ `LyraSourceRequest { readonly signal: AbortSignal; }`
4179
+ `LyraIndexedInput<T> {
4180
+ readonly revision: LyraSourceRevision;
4181
+ readonly count: number;
4182
+ read(start: number, count: number, request: LyraSourceRequest): LyraSourceValue<readonly T[]>;
4183
+ }`
4184
+ `LyraPreparationOptions {
4185
+ readonly signal?: AbortSignal;
4186
+ readonly batchSize?: number;
4187
+ }`
4188
+ `LyraObservationCounts {
4189
+ readonly sourceCount: number;
4190
+ readonly validCount: number;
4191
+ readonly invalidCount: number;
4192
+ }`
4193
+ `LyraNumericDomain { readonly min: number; readonly max: number; }`
4194
+ `LyraSeriesObservation { readonly x: number; readonly y: number | null; }`
4195
+ `LyraSeriesSample extends LyraSeriesObservation {
4196
+ readonly x: number;
4197
+ readonly y: number | null;
4198
+ readonly sourceIndex: number;
4199
+ readonly breakBefore: boolean;
4200
+ }`
4201
+ `LyraPreparedSeries {
4202
+ readonly id: string;
4203
+ readonly label: string;
4204
+ readonly counts: LyraObservationCounts;
4205
+ readonly xDomain: LyraNumericDomain | null;
4206
+ readonly yDomain: LyraNumericDomain | null;
4207
+ readonly samples: readonly LyraSeriesSample[];
4208
+ }`
4209
+ `LyraSeriesRangeRequest extends LyraSourceRequest {
4210
+ readonly signal: AbortSignal;
4211
+ readonly seriesId: string;
4212
+ readonly startIndex: number;
4213
+ readonly endIndex: number;
4214
+ readonly maxPoints: number;
4215
+ }`
4216
+ `LyraSeriesPointRef { readonly seriesId: string; readonly sourceIndex: number; }`
4217
+ `LyraPreparedSeriesData {
4218
+ readonly kind: 'series';
4219
+ readonly revision: LyraSourceRevision;
4220
+ readonly series: readonly LyraPreparedSeries[];
4221
+ getPoint(ref: LyraSeriesPointRef, request: LyraSourceRequest): LyraSourceValue<LyraSeriesObservation | null>;
4222
+ queryRange?(request: LyraSeriesRangeRequest): LyraSourceValue<readonly LyraSeriesSample[]>;
4223
+ }`
4224
+ `LyraPreparedCategoryData {
4225
+ readonly kind: 'categories';
4226
+ readonly revision: LyraSourceRevision;
4227
+ readonly counts: LyraObservationCounts;
4228
+ readonly categories: readonly { readonly id: string; readonly label: string }[];
4229
+ readonly categoryCounts: readonly number[];
4230
+ readonly series: readonly { readonly id: string; readonly label: string; readonly values: readonly number[] }[];
4231
+ readonly aggregation: 'count' | 'sum' | 'mean' | 'host-defined';
4232
+ }`
4233
+ `LyraHistogramDistribution {
4234
+ readonly revision: LyraSourceRevision;
4235
+ readonly counts: LyraObservationCounts;
4236
+ readonly domain: LyraNumericDomain | null;
4237
+ readonly edges: readonly number[];
4238
+ readonly binCounts: readonly number[];
4239
+ readonly belowCount: number;
4240
+ readonly aboveCount: number;
4241
+ }`
4242
+ `LyraWeightedWord { readonly id: string; readonly text: string; readonly weight: number; }`
4243
+ `LyraPreparedWordCloud {
4244
+ readonly revision: LyraSourceRevision;
4245
+ readonly counts: LyraObservationCounts;
4246
+ readonly totalWeight: number;
4247
+ readonly retainedWeight: number;
4248
+ readonly words: readonly LyraWeightedWord[];
4249
+ }`
4250
+ `LyraPreparedWaveform {
4251
+ readonly revision: LyraSourceRevision;
4252
+ readonly counts: LyraObservationCounts;
4253
+ readonly sampleCount: number;
4254
+ readonly duration: number;
4255
+ readonly buckets: readonly { readonly startIndex: number; readonly endIndex: number; readonly maxAmplitude: number }[];
4256
+ readonly firstAmplitude: number | null;
4257
+ readonly lastAmplitude: number | null;
4258
+ }`
4259
+ `prepareLyraSeriesData(
4260
+ series: readonly { readonly id: string; readonly label: string; readonly input: LyraIndexedInput<LyraSeriesObservation> }[],
4261
+ options: LyraPreparationOptions & { readonly maxPointsPerSeries?: number } = {},
4262
+ ): Promise<LyraPreparedSeriesData>`
4263
+ `prepareLyraCategoryData<T>(
4264
+ input: LyraIndexedInput<T>,
4265
+ options: LyraPreparationOptions & {
4266
+ readonly categories: readonly { readonly id: string; readonly label: string }[];
4267
+ readonly seriesId: string;
4268
+ readonly seriesLabel: string;
4269
+ readonly categoryOf: (value: T, sourceIndex: number) => string | null;
4270
+ readonly otherCategoryId?: string;
4271
+ } & (
4272
+ | { readonly aggregation: 'count'; readonly valueOf?: (value: T, sourceIndex: number) => unknown }
4273
+ | { readonly aggregation: 'sum' | 'mean'; readonly valueOf: (value: T, sourceIndex: number) => number | null }
4274
+ ),
4275
+ ): Promise<LyraPreparedCategoryData>`
4276
+ `prepareLyraHistogram(
4277
+ input: LyraIndexedInput<number>,
4278
+ options: LyraPreparationOptions & ({ readonly edges: readonly number[] } | { readonly binCount: number }),
4279
+ ): Promise<LyraHistogramDistribution>`
4280
+ `prepareLyraWordCloud(
4281
+ input: LyraIndexedInput<LyraWeightedWord>,
4282
+ options: LyraPreparationOptions & { readonly maxWords?: number } = {},
4283
+ ): Promise<LyraPreparedWordCloud>`
4284
+ `prepareLyraWaveform(
4285
+ input: LyraIndexedInput<number>,
4286
+ options: LyraPreparationOptions & { readonly duration: number; readonly maxBuckets?: number },
4287
+ ): Promise<LyraPreparedWaveform>`
4288
+
3829
4289
  - **`ai-adapters-a2ui-contracts`** — AI adapter and runtime contracts.
3830
4290
  `A2UiAdapterLimits {
3831
- maxComponents: unknown;
3832
- maxDepth: unknown;
3833
- maxOutputNodes: unknown;
3834
- maxChildrenPerComponent: unknown;
3835
- maxNodes: unknown;
3836
- maxBytes: unknown;
3837
- maxStringCharacters: unknown;
4291
+ maxComponents: number;
4292
+ maxDepth: number;
4293
+ maxOutputNodes: number;
4294
+ maxChildrenPerComponent: number;
4295
+ maxNodes: number;
4296
+ maxBytes: number;
4297
+ maxStringCharacters: number;
3838
4298
  }`
3839
4299
  `A2UiLikeAction {
3840
- id: unknown;
3841
- payload: unknown;
4300
+ id: string;
4301
+ payload?: unknown;
3842
4302
  }`
3843
4303
  `A2UiLikeComponent {
3844
- id: unknown;
3845
- type: unknown;
3846
- props: unknown;
3847
- text: unknown;
3848
- children: unknown;
3849
- action: unknown;
4304
+ id: string;
4305
+ type: string;
4306
+ props?: Record<string, unknown>;
4307
+ text?: string;
4308
+ children?: string[];
4309
+ action?: A2UiLikeAction;
3850
4310
  }`
3851
4311
  `A2UiLikeSurface {
3852
- surfaceId: unknown;
3853
- rootId: unknown;
3854
- components: unknown;
3855
- data: unknown;
4312
+ surfaceId?: string;
4313
+ rootId: string;
4314
+ components: A2UiLikeComponent[];
4315
+ data?: unknown;
3856
4316
  }`
3857
- `adaptA2UiSurface(/* public names: surface, typeMap, limits */): unknown`
4317
+ `adaptA2UiSurface(surface: unknown, typeMap: unknown, limits: Partial<A2UiAdapterLimits> = {}): LyraWidgetDocument | null`
3858
4318
 
3859
4319
  - **`ai-adapters-ag-ui-contracts`** — AI adapter and runtime contracts.
3860
4320
  `AgUiAdapterLimits {
3861
- maxBufferedTools: unknown;
3862
- maxToolArgumentBytes: unknown;
3863
- maxTextDeltaCharacters: unknown;
3864
- maxDepth: unknown;
3865
- maxNodes: unknown;
3866
- maxBytes: unknown;
3867
- maxStringCharacters: unknown;
4321
+ maxBufferedTools: number;
4322
+ maxToolArgumentBytes: number;
4323
+ maxTextDeltaCharacters: number;
4324
+ maxDepth: number;
4325
+ maxNodes: number;
4326
+ maxBytes: number;
4327
+ maxStringCharacters: number;
3868
4328
  }`
3869
4329
  `AgUiLikeEvent {
3870
- type: unknown;
3871
- eventId: unknown;
3872
- runId: unknown;
3873
- messageId: unknown;
3874
- role: unknown;
3875
- delta: unknown;
3876
- toolCallId: unknown;
3877
- toolCallName: unknown;
3878
- result: unknown;
3879
- message: unknown;
3880
- code: unknown;
3881
- snapshot: unknown;
3882
- messages: unknown;
4330
+ type: string;
4331
+ eventId?: string;
4332
+ runId?: string;
4333
+ messageId?: string;
4334
+ role?: string;
4335
+ delta?: unknown;
4336
+ toolCallId?: string;
4337
+ toolCallName?: string;
4338
+ result?: unknown;
4339
+ message?: string;
4340
+ code?: string;
4341
+ snapshot?: unknown;
4342
+ messages?: unknown[];
3883
4343
  }`
3884
4344
 
3885
4345
  - **`ai-adapters-ai-sdk-contracts`** — AI adapter and runtime contracts.
3886
4346
  `adaptAiSdkMessage(message: unknown, limits?: Partial<AiSdkAdapterLimits>): ChatMessage | null`
3887
4347
  `AiSdkAdapterLimits {
3888
- maxParts: unknown;
3889
- maxDepth: unknown;
3890
- maxNodes: unknown;
3891
- maxBytes: unknown;
3892
- maxStringCharacters: unknown;
4348
+ maxParts: number;
4349
+ maxDepth: number;
4350
+ maxNodes: number;
4351
+ maxBytes: number;
4352
+ maxStringCharacters: number;
3893
4353
  }`
3894
4354
  `AiSdkLikeMessage {
3895
- id: unknown;
3896
- role: unknown;
3897
- parts: unknown;
3898
- metadata: unknown;
4355
+ id: string;
4356
+ role: string;
4357
+ parts?: unknown[];
4358
+ metadata?: Record<string, unknown>;
3899
4359
  }`
3900
4360
 
3901
4361
  - **`ai-runtime-contracts`** — AI adapter and runtime contracts.
3902
4362
  `AgentStreamLimits {
3903
- maxMessages: unknown;
3904
- maxPartsPerMessage: unknown;
3905
- maxTools: unknown;
3906
- maxDeltaCharacters: unknown;
3907
- maxTextCharactersPerPart: unknown;
3908
- maxIdentifierCharacters: unknown;
3909
- maxStatusMessageCharacters: unknown;
3910
- maxPatchOperations: unknown;
3911
- maxSnapshotDepth: unknown;
3912
- maxSnapshotNodes: unknown;
3913
- maxSnapshotBytes: unknown;
3914
- maxRetainedBytes: unknown;
4363
+ maxMessages: number;
4364
+ maxPartsPerMessage: number;
4365
+ maxTools: number;
4366
+ maxDeltaCharacters: number;
4367
+ maxTextCharactersPerPart: number;
4368
+ maxIdentifierCharacters: number;
4369
+ maxStatusMessageCharacters: number;
4370
+ maxPatchOperations: number;
4371
+ maxSnapshotDepth: number;
4372
+ maxSnapshotNodes: number;
4373
+ maxSnapshotBytes: number;
4374
+ maxRetainedBytes: number;
3915
4375
  }`
3916
4376
  `AgentStreamState {
3917
4377
  generation: number;
@@ -3923,51 +4383,51 @@ These named interfaces and helper signatures are available to typed integrations
3923
4383
  messages: ChatMessage[];
3924
4384
  tools: ToolInvocation[];
3925
4385
  sharedState: unknown;
3926
- error?: { message: string; code?: string; };
4386
+ error?: { message: string; code?: string };
3927
4387
  }`
3928
- `applySharedStatePatch(/* public names: value, patch */): unknown`
4388
+ `applySharedStatePatch(value: unknown, patch: readonly JsonPatchOperation[]): unknown`
3929
4389
  `createAgentStreamState(limits?: Partial<AgentStreamLimits>): AgentStreamState`
3930
- `parseJsonPatch(/* public names: value, limits */): unknown`
4390
+ `parseJsonPatch(value: unknown, limits: Partial<AgentStreamLimits> = {}): JsonPatchOperation[] | null`
3931
4391
  `reduceAgentStreamEvents(state: AgentStreamState, events: readonly AgentStreamEvent[]): AgentStreamState`
3932
4392
  `reduceAgentStream(state: AgentStreamState, event: AgentStreamEvent): AgentStreamState`
3933
4393
 
3934
4394
  - **`ai-snapshot-contracts`** — AI adapter and runtime contracts.
3935
- `createProviderSnapshotBudget(/* public names: limits */): unknown`
4395
+ `createProviderSnapshotBudget(limits: Partial<ProviderSnapshotLimits> | Readonly<ProviderSnapshotLimits> = {}): ProviderSnapshotBudget`
3936
4396
  `ProviderSnapshotBudget {
3937
- limits: unknown;
3938
- bytes: unknown;
3939
- nodes: unknown;
4397
+ readonly limits: Readonly<ProviderSnapshotLimits>;
4398
+ bytes: number;
4399
+ nodes: number;
3940
4400
  }`
3941
4401
  `ProviderSnapshotLimits {
3942
- maxDepth: unknown;
3943
- maxNodes: unknown;
3944
- maxBytes: unknown;
3945
- maxStringCharacters: unknown;
4402
+ maxDepth: number;
4403
+ maxNodes: number;
4404
+ maxBytes: number;
4405
+ maxStringCharacters: number;
3946
4406
  }`
3947
- `resolveProviderSnapshotLimits(/* public names: limits */): unknown`
3948
- `snapshotProviderValue(/* public names: value, budget */): unknown`
4407
+ `resolveProviderSnapshotLimits(limits: Partial<ProviderSnapshotLimits> = {}): Readonly<ProviderSnapshotLimits>`
4408
+ `snapshotProviderValue<T = unknown>(value: unknown, budget: ProviderSnapshotBudget = createProviderSnapshotBudget()): ProviderSnapshotResult<T>`
3949
4409
 
3950
4410
  - **`ai-types-contracts`** — AI adapter and runtime contracts.
3951
4411
  `AgentRun {
3952
- id: unknown;
3953
- status: unknown;
3954
- startedAt: unknown;
3955
- endedAt: unknown;
3956
- model: unknown;
3957
- costEstimate: unknown;
3958
- steps: unknown;
4412
+ id: string;
4413
+ status: AgentStatus;
4414
+ startedAt?: number;
4415
+ endedAt?: number;
4416
+ model?: string;
4417
+ costEstimate?: number;
4418
+ steps: readonly AgentStep[];
3959
4419
  }`
3960
4420
  `AgentStatus {
3961
- kind: unknown;
3962
- message: unknown;
4421
+ kind: AgentStatusKind;
4422
+ message?: string;
3963
4423
  }`
3964
4424
  `AgentStep {
3965
- id: unknown;
3966
- kind: unknown;
3967
- label: unknown;
3968
- status: unknown;
3969
- startedAt: unknown;
3970
- endedAt: unknown;
4425
+ id: string;
4426
+ kind: string;
4427
+ label: string;
4428
+ status: AgentStatus;
4429
+ startedAt?: number;
4430
+ endedAt?: number;
3971
4431
  }`
3972
4432
  `AttachmentMessagePart {
3973
4433
  type: 'attachment';
@@ -3988,7 +4448,7 @@ These named interfaces and helper signatures are available to typed integrations
3988
4448
  metadata?: Record<string, unknown>;
3989
4449
  }`
3990
4450
  `CancelEventDetail {
3991
- reason: unknown;
4451
+ reason?: string;
3992
4452
  }`
3993
4453
  `ChatMessage {
3994
4454
  id: string;
@@ -4001,17 +4461,15 @@ These named interfaces and helper signatures are available to typed integrations
4001
4461
  metadata?: Record<string, unknown>;
4002
4462
  }`
4003
4463
  `Citation {
4004
- id: unknown;
4005
- chunkId: unknown;
4006
- sourceId: unknown;
4007
- span: unknown;
4008
- start: unknown;
4009
- end: unknown;
4010
- label: unknown;
4011
- locator: unknown;
4012
- answerRange: unknown;
4013
- quote: unknown;
4014
- metadata: unknown;
4464
+ id: string;
4465
+ chunkId?: string;
4466
+ sourceId?: string;
4467
+ span?: { start: number; end: number };
4468
+ label?: string;
4469
+ locator?: DocumentLocator;
4470
+ answerRange?: { start: number; end: number };
4471
+ quote?: string;
4472
+ metadata?: Record<string, unknown>;
4015
4473
  }`
4016
4474
  `CitationMessagePart {
4017
4475
  type: 'citation';
@@ -4022,7 +4480,7 @@ These named interfaces and helper signatures are available to typed integrations
4022
4480
  metadata?: Record<string, unknown>;
4023
4481
  }`
4024
4482
  `CitationSelectEventDetail {
4025
- citation: unknown;
4483
+ citation: Citation;
4026
4484
  }`
4027
4485
  `DataMessagePart {
4028
4486
  type: 'data';
@@ -4035,11 +4493,11 @@ These named interfaces and helper signatures are available to typed integrations
4035
4493
  metadata?: Record<string, unknown>;
4036
4494
  }`
4037
4495
  `DocumentRef {
4038
- id: unknown;
4039
- name: unknown;
4040
- mimeType: unknown;
4041
- uri: unknown;
4042
- version: unknown;
4496
+ id: string;
4497
+ name: string;
4498
+ mimeType?: string;
4499
+ uri?: string;
4500
+ version?: string;
4043
4501
  }`
4044
4502
  `ErrorMessagePart {
4045
4503
  type: 'error';
@@ -4052,26 +4510,24 @@ These named interfaces and helper signatures are available to typed integrations
4052
4510
  metadata?: Record<string, unknown>;
4053
4511
  }`
4054
4512
  `ExportEventDetail {
4055
- format: unknown;
4513
+ format: string;
4056
4514
  }`
4057
4515
  `GroundedClaim {
4058
- id: unknown;
4059
- text: unknown;
4060
- status: unknown;
4061
- citationIds: unknown;
4062
- answerRange: unknown;
4063
- start: unknown;
4064
- end: unknown;
4065
- confidence: unknown;
4066
- explanation: unknown;
4516
+ id: string;
4517
+ text: string;
4518
+ status: GroundedClaimStatus;
4519
+ citationIds: readonly string[];
4520
+ answerRange?: { start: number; end: number };
4521
+ confidence?: number;
4522
+ explanation?: string;
4067
4523
  }`
4068
4524
  `GroundingAssessment {
4069
- supportedClaims: unknown;
4070
- unsupportedClaims: unknown;
4071
- coverage: unknown;
4072
- confidence: unknown;
4073
- warnings: unknown;
4074
- claims: unknown;
4525
+ supportedClaims: number;
4526
+ unsupportedClaims: number;
4527
+ coverage: number;
4528
+ confidence?: number;
4529
+ warnings?: readonly string[];
4530
+ claims?: readonly GroundedClaim[];
4075
4531
  }`
4076
4532
  `MessagePartBase {
4077
4533
  id: string;
@@ -4089,42 +4545,42 @@ These named interfaces and helper signatures are available to typed integrations
4089
4545
  metadata?: Record<string, unknown>;
4090
4546
  }`
4091
4547
  `RetrievalChunk {
4092
- id: unknown;
4093
- text: unknown;
4094
- score: unknown;
4095
- source: unknown;
4096
- metadata: unknown;
4097
- rank: unknown;
4098
- locator: unknown;
4099
- queryId: unknown;
4100
- stage: unknown;
4101
- traceId: unknown;
4102
- scores: unknown;
4548
+ id: string;
4549
+ text: string;
4550
+ score: number;
4551
+ source: DocumentRef;
4552
+ metadata?: Record<string, unknown>;
4553
+ rank?: number;
4554
+ locator?: DocumentLocator;
4555
+ queryId?: string;
4556
+ stage?: string;
4557
+ traceId?: string;
4558
+ scores?: RetrievalScoreBreakdown;
4103
4559
  }`
4104
4560
  `RetrievalProgressEventDetail {
4105
- queryId: unknown;
4106
- stage: unknown;
4107
- progress: unknown;
4561
+ queryId: string;
4562
+ stage: string;
4563
+ progress?: number;
4108
4564
  }`
4109
4565
  `RetrievalQuery {
4110
- text: unknown;
4111
- filters: unknown;
4112
- mode: unknown;
4113
- scope: unknown;
4566
+ text: string;
4567
+ filters?: Record<string, unknown>;
4568
+ mode: 'vector' | 'keyword' | 'hybrid';
4569
+ scope?: string[];
4114
4570
  }`
4115
4571
  `RetrievalScoreBreakdown {
4116
- dense: unknown;
4117
- sparse: unknown;
4118
- rerank: unknown;
4119
- final: unknown;
4572
+ dense?: number;
4573
+ sparse?: number;
4574
+ rerank?: number;
4575
+ final: number;
4120
4576
  }`
4121
4577
  `RetryEventDetail {
4122
- attempt: unknown;
4123
- messageId: unknown;
4578
+ attempt: number;
4579
+ messageId?: string;
4124
4580
  }`
4125
4581
  `RunLifecycleEventDetail {
4126
- runId: unknown;
4127
- status: unknown;
4582
+ runId: string;
4583
+ status: AgentStatus;
4128
4584
  }`
4129
4585
  `TextMessagePart {
4130
4586
  type: 'text';
@@ -4135,8 +4591,8 @@ These named interfaces and helper signatures are available to typed integrations
4135
4591
  metadata?: Record<string, unknown>;
4136
4592
  }`
4137
4593
  `ToolApprovalEventDetail {
4138
- invocationId: unknown;
4139
- approved: unknown;
4594
+ invocationId: string;
4595
+ approved: boolean;
4140
4596
  }`
4141
4597
  `ToolCallMessagePart {
4142
4598
  type: 'tool-call';
@@ -4147,16 +4603,16 @@ These named interfaces and helper signatures are available to typed integrations
4147
4603
  metadata?: Record<string, unknown>;
4148
4604
  }`
4149
4605
  `ToolInvocation {
4150
- id: unknown;
4151
- name: unknown;
4152
- displayName: unknown;
4153
- args: unknown;
4154
- status: unknown;
4155
- result: unknown;
4156
- error: unknown;
4157
- startedAt: unknown;
4158
- endedAt: unknown;
4159
- redactedFields: unknown;
4606
+ id: string;
4607
+ name: string;
4608
+ displayName?: string;
4609
+ args: Record<string, unknown>;
4610
+ status: ToolStatus;
4611
+ result?: unknown;
4612
+ error?: string;
4613
+ startedAt?: number;
4614
+ endedAt?: number;
4615
+ redactedFields?: readonly string[];
4160
4616
  }`
4161
4617
  `ToolResultErrorMessagePart {
4162
4618
  error: string;
@@ -4206,22 +4662,22 @@ These named interfaces and helper signatures are available to typed integrations
4206
4662
  readonly optionalPeers: readonly string[];
4207
4663
  }`
4208
4664
  `AutoloaderOptions {
4209
- optionalPeers: unknown;
4210
- events: unknown;
4211
- maxConcurrency: unknown;
4212
- maxElements: unknown;
4213
- maxRoots: unknown;
4214
- maxDepth: unknown;
4215
- maxWork: unknown;
4665
+ readonly optionalPeers?: AutoloaderOptionalPeers;
4666
+ readonly events?: boolean;
4667
+ readonly maxConcurrency?: number;
4668
+ readonly maxElements?: number;
4669
+ readonly maxRoots?: number;
4670
+ readonly maxDepth?: number;
4671
+ readonly maxWork?: number;
4216
4672
  }`
4217
4673
  `AutoloaderTraversalErrorEventDetail {
4218
- limit: unknown;
4219
- maximum: unknown;
4220
- error: unknown;
4674
+ readonly limit: RenderedTreeTraversalLimit;
4675
+ readonly maximum: number;
4676
+ readonly error: Error;
4221
4677
  }`
4222
4678
  `discover(root?: LyraDefinitionRoot | undefined, options?: AutoloaderOptions): Promise<readonly AutoloadableTagName[]>`
4223
4679
  `start(root?: LyraDefinitionRoot | undefined, options?: AutoloaderOptions): Promise<readonly AutoloadableTagName[]>`
4224
- `stop(): unknown`
4680
+ `stop(): void`
4225
4681
 
4226
4682
  - **`custom-elements-jsx-contracts`** — Framework integration type contracts, including the multi-split
4227
4683
  `for` launcher id and `trigger` element reference.
@@ -4538,18 +4994,18 @@ These named interfaces and helper signatures are available to typed integrations
4538
4994
 
4539
4995
  - **`internal-ansi-contracts`** — Shared utility contracts.
4540
4996
  `AnsiStyles {
4541
- bold: unknown;
4542
- dim: unknown;
4543
- italic: unknown;
4544
- underline: unknown;
4545
- inverse: unknown;
4546
- fg: unknown;
4547
- bg: unknown;
4997
+ bold: boolean;
4998
+ dim: boolean;
4999
+ italic: boolean;
5000
+ underline: boolean;
5001
+ inverse: boolean;
5002
+ fg?: string;
5003
+ bg?: string;
4548
5004
  }`
4549
5005
 
4550
5006
  - **`internal-canvas-color-contracts`** — Shared utility contracts.
4551
- `resolveCanvasColor(/* public names: scope, color, fallback */): unknown`
4552
- `resolveCanvasColors(/* public names: scope, colors, fallback */): unknown`
5007
+ `resolveCanvasColor(scope: Element, color: string, fallback: string): string`
5008
+ `resolveCanvasColors(scope: Element, colors: Iterable<string>, fallback: string): string[]`
4553
5009
 
4554
5010
  - **`internal-document-tokens-contracts`** — Shared utility contracts.
4555
5011
  `adoptLyraTokens(root: Document | ShadowRoot): void`
@@ -4562,21 +5018,21 @@ These named interfaces and helper signatures are available to typed integrations
4562
5018
  scope. Reads inline styles only and logs nothing.
4563
5019
 
4564
5020
  - **`internal-localization-runtime-contracts`** — Shared utility contracts.
4565
- `getLyraLocaleDirection(/* public names: locale */): unknown`
4566
- `getLyraLocale(): unknown`
4567
- `getRegisteredLyraLocaleKeys(/* public names: locale */): unknown`
4568
- `getRegisteredLyraLocales(): unknown`
5021
+ `getLyraLocaleDirection(locale: string): LyraLocaleDirection`
5022
+ `getLyraLocale(): string`
5023
+ `getRegisteredLyraLocaleKeys(locale: string): readonly string[]`
5024
+ `getRegisteredLyraLocales(): readonly string[]`
4569
5025
  `registerLyraLocale(locale: string, strings: LyraLocaleStrings, meta?: LyraLocaleMeta): void`
4570
- `resolveLyraDirection(/* public names: host */): unknown`
4571
- `resolveLyraLocale(/* public names: host */): unknown`
4572
- `setLyraLocale(/* public names: locale */): unknown`
4573
- `subscribeLyraLocaleRegistry(/* public names: listener */): unknown`
5026
+ `resolveLyraDirection(host: Element): 'ltr' | 'rtl'`
5027
+ `resolveLyraLocale(host: Element): string`
5028
+ `setLyraLocale(locale: string): void`
5029
+ `subscribeLyraLocaleRegistry(listener: () => void): () => void`
4574
5030
  `registerLyraLocaleDelta(locale: string, parent: string, strings: LyraLocaleStrings, meta?: LyraLocaleMeta): void`
4575
5031
 
4576
5032
  - **`internal-localization-types-contracts`** — Shared utility contracts.
4577
5033
  `LyraLocaleMeta {
4578
- dir: unknown;
4579
- name: unknown;
5034
+ dir?: LyraLocaleDirection;
5035
+ name?: string;
4580
5036
  }`
4581
5037
 
4582
5038
  - **`internal-localization-contracts`** — Shared utility contracts.
@@ -4584,87 +5040,83 @@ These named interfaces and helper signatures are available to typed integrations
4584
5040
 
4585
5041
  - **`internal-node-type-style-contracts`** — Shared utility contracts.
4586
5042
  `LyraNodeTypeStyle {
4587
- id: unknown;
4588
- label: unknown;
4589
- color: unknown;
4590
- shape: unknown;
5043
+ readonly id: string;
5044
+ readonly label: string;
5045
+ readonly color?: string;
5046
+ readonly shape?: 'circle' | 'square' | 'diamond';
4591
5047
  }`
4592
5048
 
4593
5049
  - **`internal-registered-animation-contracts`** — Shared utility contracts.
4594
5050
  `RegisteredAnimationSpec {
4595
- keyframes: unknown;
4596
- rtlKeyframes: unknown;
4597
- durationProperties: unknown;
4598
- easingProperties: unknown;
4599
- fallbackDuration: unknown;
4600
- fallbackEasing: unknown;
4601
- options: unknown;
5051
+ keyframes: Keyframe[];
5052
+ rtlKeyframes?: Keyframe[];
5053
+ durationProperties: readonly string[];
5054
+ easingProperties?: readonly string[];
5055
+ fallbackDuration?: number;
5056
+ fallbackEasing?: string;
5057
+ options?: KeyframeAnimationOptions;
4602
5058
  }`
4603
5059
 
4604
5060
  - **`internal-text-viewer-target-contracts`** — Shared utility contracts.
4605
5061
  `LyraSearchChangeDetail {
4606
- query: unknown;
4607
- matchCount: unknown;
4608
- matchCountExact: unknown;
4609
- activeIndex: unknown;
5062
+ query: string;
5063
+ matchCount: number;
5064
+ matchCountExact: boolean;
5065
+ activeIndex: number;
4610
5066
  }`
4611
5067
  `LyraTextViewerTarget {
4612
- search: unknown;
4613
- query: unknown;
4614
- searchNext: unknown;
4615
- searchPrevious: unknown;
4616
- clearSearch: unknown;
4617
- highlights: unknown;
4618
- activeHighlightId: unknown;
4619
- anchor: unknown;
4620
- anchorKinds: unknown;
4621
- scrollToAnchor: unknown;
4622
- target: unknown;
5068
+ search(query: string): Promise<number>;
5069
+ searchNext(): Promise<boolean>;
5070
+ searchPrevious(): Promise<boolean>;
5071
+ clearSearch(): void;
5072
+ highlights: readonly LyraHighlight[];
5073
+ activeHighlightId: string | null;
5074
+ anchor: LyraAnchor | string | null;
5075
+ readonly anchorKinds: readonly LyraAnchorKind[];
5076
+ scrollToAnchor(target: LyraAnchor | string): Promise<boolean>;
4623
5077
  }`
4624
5078
 
4625
5079
  - **`ssr-contracts`** — Shared utility contracts.
4626
- `buildLyraSsrStaticSafety(/* public names: tags, tagCapabilities, auditedStaticSafeTags */): unknown`
5080
+ `buildLyraSsrStaticSafety(tags: readonly string[], tagCapabilities: Readonly<Record<string, LyraSsrTagCapabilities>>, auditedStaticSafeTags: readonly string[]): LyraSsrStaticSafetyResult`
4627
5081
  Fail-closed classifier behind `LYRA_SSR_STATIC_SAFETY`/`getLyraSsrStaticSafety`: a tag present in
4628
5082
  neither a non-empty `tagCapabilities` entry nor `auditedStaticSafeTags` is reported in the result's
4629
5083
  `unaudited` list instead of silently defaulting to `'static-safe'`. Pure and fixture-friendly --
4630
5084
  `scripts/check-ssr.mjs` calls it with the real inventory, tests call it with small fixture lists.
4631
- `deriveLyraSsrStaticSafety(/* public names: capabilities */): unknown`
5085
+ `deriveLyraSsrStaticSafety(capabilities: LyraSsrTagCapabilities): LyraSsrStaticSafety`
4632
5086
  Derives static safety from one tag's capability record: any `'after-hydration'`/`'client-only'`
4633
5087
  entry makes it `'hydration-required'`; an empty record defaults to `'static-safe'`. That empty-
4634
5088
  record default is only valid for a record already known to reflect a completed review (as
4635
5089
  `LYRA_SSR_TAG_CAPABILITIES` entries do) -- `buildLyraSsrStaticSafety()` does not rely on it for a
4636
5090
  tag missing from that record entirely, which it instead routes through `auditedStaticSafeTags`.
4637
- `diagnoseLyraHydration(/* public names: root */): unknown`
4638
- `getLyraSsrMode(/* public names: tagName */): unknown`
4639
- `getLyraSsrStaticSafety(/* public names: tagName */): unknown`
5091
+ `diagnoseLyraHydration(root?: ParentNode): Promise<readonly LyraHydrationDiagnostic[]>`
5092
+ `getLyraSsrMode(tagName: string): LyraSsrMode | undefined`
5093
+ `getLyraSsrStaticSafety(tagName: string): LyraSsrStaticSafety | undefined`
4640
5094
  Returns the static-safety classification for a `render-and-hydrate` Lyra tag, or `undefined` for a
4641
5095
  tag outside that tier. See "SSR and declarative shadow DOM" above for the full write-up.
4642
5096
  `LyraHydrationDiagnostic {
4643
- element: unknown;
4644
- tag: unknown;
4645
- mode: unknown;
4646
- status: unknown;
4647
- error: unknown;
5097
+ element: Element;
5098
+ tag: string;
5099
+ mode: LyraSsrMode;
5100
+ status: LyraHydrationStatus;
5101
+ error?: unknown;
4648
5102
  }`
4649
5103
  `LyraLitElementRendererConstructor {
4650
- prototype: unknown;
4651
- matchesClass: unknown;
4652
- constructor: unknown;
4653
- tagName: unknown;
4654
- attributes: unknown;
5104
+ new (tagName: string): object;
5105
+ readonly prototype: object;
5106
+ matchesClass(constructor: CustomElementConstructor, tagName: string, attributes: Map<string, string>): boolean;
4655
5107
  }`
4656
5108
  `LyraSsrClientRenderReason {
4657
- code: unknown;
4658
- detail: unknown;
5109
+ code: LyraSsrClientRenderReasonCode;
5110
+ detail: string;
4659
5111
  }`
4660
5112
  `LyraSsrStaticSafetyResult {
4661
- classification: unknown;
4662
- unaudited: unknown;
5113
+ classification: Readonly<Record<string, LyraSsrStaticSafety>>;
5114
+ unaudited: readonly string[];
4663
5115
  }`
4664
5116
  Return shape of `buildLyraSsrStaticSafety()`: `classification` holds one entry per classified tag
4665
5117
  (a tag absent from it was neither capability-bearing nor audited), and a non-empty `unaudited`
4666
5118
  means the check must fail closed.
4667
- `lyraSsrElementRenderers(/* public names: litElementRenderer */): unknown`
5119
+ `lyraSsrElementRenderers<T extends LyraLitElementRendererConstructor>(litElementRenderer: T): readonly [typeof LyraSsrFallbackRenderer, T]`
4668
5120
 
4669
5121
  - **`svelte-contracts`** — Framework integration type contracts, including the multi-split
4670
5122
  `for` launcher id and `trigger` element reference.
@@ -5294,13 +5746,13 @@ These named interfaces and helper signatures are available to typed integrations
5294
5746
  See "Constructing a validated test event: `createLyraEvent()`" above for the full contract.
5295
5747
 
5296
5748
  - **`testing-happy-dom-shims-contracts`** — Shared utility contracts.
5297
- `installHappyDomFormAssociatedShims(): unknown`
5298
- `installHappyDomShadowFocusShim(): unknown`
5299
- `flattenCascadeLayers(/* public names: css */): unknown`
5300
- `installHappyDomAriaControlsShim(/* public names: proto */): unknown`
5301
- `installHappyDomCascadeLayerShim(/* public names: proto, misbehaves */): unknown`
5302
- `installHappyDomShims(): unknown`
5303
- `installStubInternalsForTest(/* public names: host */): unknown`
5749
+ `installHappyDomFormAssociatedShims(): void`
5750
+ `installHappyDomShadowFocusShim(): () => void`
5751
+ `flattenCascadeLayers(css: string): string`
5752
+ `installHappyDomAriaControlsShim(proto: object | undefined = globalThis.Element?.prototype): void`
5753
+ `installHappyDomCascadeLayerShim(proto: SheetTextMethods | undefined = globalThis.CSSStyleSheet?.prototype, misbehaves: () => boolean = cascadeLayerRulesDropped): () => void`
5754
+ `installHappyDomShims(): void`
5755
+ `installStubInternalsForTest(host: Element): StubElementInternals`
5304
5756
 
5305
5757
  - **`testing-jsdom-shims-contracts`** — Shared utility contracts.
5306
5758
  `JsdomAdoptedStyleSheetsTargets {
@@ -5320,43 +5772,43 @@ These named interfaces and helper signatures are available to typed integrations
5320
5772
  See "jsdom: `installJsdomShims()`" above for the full contract.
5321
5773
 
5322
5774
  - **`testing-interaction-drivers-contracts`** — Shared utility contracts.
5323
- `chooseOption(/* public names: owner, value */): unknown`
5324
- `submitConfirmDecision(/* public names: owner, decision */): unknown`
5325
- `toggleSwitch(/* public names: switchEl */): unknown`
5326
- `activateStep(/* public names: stepper, target */): unknown`
5327
- `chooseSwatch(/* public names: picker, value */): unknown`
5328
- `chooseCurrency(/* public names: picker, code */): unknown`
5775
+ `chooseOption(owner: LyraOptionListElement, value: string): Promise<void>`
5776
+ `submitConfirmDecision(owner: LyraConfirmBar | LyraToolApprovalDialog, decision: ApprovalDecision): Promise<void>`
5777
+ `toggleSwitch(switchEl: LyraSwitch): Promise<void>`
5778
+ `activateStep(stepper: LyraStepper, target: number | string): Promise<void>`
5779
+ `chooseSwatch(picker: LyraSwatchPicker, value: string): Promise<void>`
5780
+ `chooseCurrency(picker: LyraCurrencyPicker, code: string): Promise<void>`
5329
5781
  `PopoverDriverOptions {
5330
- timeoutMs: unknown;
5782
+ timeoutMs?: number;
5331
5783
  }`
5332
5784
  `ClosePopoverOptions {
5333
- via: unknown;
5334
- timeoutMs: unknown;
5785
+ via?: 'escape' | 'trigger';
5786
+ timeoutMs?: number;
5335
5787
  }`
5336
- `openPopover(/* public names: popover, options */): unknown`
5337
- `closePopover(/* public names: popover, options */): unknown`
5788
+ `openPopover(popover: LyraPopover, options: PopoverDriverOptions = {}): Promise<void>`
5789
+ `closePopover(popover: LyraPopover, options: ClosePopoverOptions = {}): Promise<void>`
5338
5790
  See "Driving a component's real activation path: interaction drivers" above for the full contract.
5339
5791
 
5340
5792
  - **`testing-wait-for-mount-contracts`** — Shared utility contracts.
5341
- `waitForLyraElement(/* public names: selector, options */): unknown`
5793
+ `waitForLyraElement<T extends Element = HTMLElement>(selector: string, options: WaitForLyraElementOptions<T> = {}): Promise<T>`
5342
5794
  `WaitForLyraElementOptions {
5343
- root: unknown;
5344
- match: (element: unknown) => unknown;
5345
- timeoutMs: unknown;
5795
+ root?: Node & ParentNode;
5796
+ match?: (element: T) => boolean;
5797
+ timeoutMs?: number;
5346
5798
  }`
5347
- `waitForToast(/* public names: match, options */): unknown`
5799
+ `waitForToast(match?: ToastMatch, options: Omit<WaitForLyraElementOptions<LyraToastItem>, 'match'> = {}): Promise<LyraToastItem>`
5348
5800
  See "Awaiting a lazily registered mount: `waitForLyraElement()` and `waitForToast()`" above for the
5349
5801
  full contract.
5350
5802
 
5351
5803
  - **`theme-gemstones-data-contracts`** — Shared utility contracts.
5352
5804
  `GemstoneAccent {
5353
- key: unknown;
5354
- fill: unknown;
5355
- deep: unknown;
5805
+ key: GemstoneKey;
5806
+ fill: string;
5807
+ deep: string;
5356
5808
  }`
5357
5809
 
5358
5810
  - **`theme-gemstones-contracts`** — Shared utility contracts.
5359
- `gemstoneGlyph(/* public names: color */): unknown`
5811
+ `gemstoneGlyph(color = 'currentColor'): TemplateResult`
5360
5812
  `gemstoneSelectedGlyphStyles: CSSResult` — the shared "selected" halo/shine presentation for a
5361
5813
  rendered `gemstoneGlyph()`, applied via the `data-lr-gemstone-selected` boolean attribute on the
5362
5814
  element wrapping the glyph. `lr-swatch-picker mode="gemstone"` includes this exact stylesheet in
@@ -5928,7 +6380,7 @@ These named interfaces and helper signatures are available to typed integrations
5928
6380
  }): Promise<LyraScopedRegistry>`
5929
6381
 
5930
6382
  - **`utilities-scoped-registry-contracts`** — Public contracts from `utilities/scoped-registry.js`.
5931
- Native, document-bound isolation with class-only definitions. Unsupported/SSR environments report false from feature detection and throw on creation; no polyfill or global fallback is installed. Same-constructor definitions are idempotent; conflicts, unknown template tags, and cross-document usage fail. See [native scoped registry composition](imports-and-registration.md#optional-native-scoped-registries) for parser, Lit creation-scope, and shadow-root usage.
6383
+ Native, document-bound isolation with class-only definitions. Unsupported/SSR environments report false from feature detection and throw on creation; no polyfill or global fallback is installed. Same-constructor definitions are idempotent; conflicts, unknown template tags, and cross-document usage fail. See [native scoped registry composition](./shared/imports-and-registration.md#optional-native-scoped-registries) for parser, Lit creation-scope, and shadow-root usage.
5932
6384
 
5933
6385
  `createScopedRegistry<Definitions extends LyraScopedDefinitions>(definitions: Definitions, options?: {
5934
6386
  document?: Document;
@@ -6171,32 +6623,27 @@ resolve again at each preference boundary, including a nested look or a local `s
6171
6623
 
6172
6624
  ### Compatibility and saved preferences
6173
6625
 
6174
- When upgrading from v21, these component rendering changes also apply without opting into a style
6175
- axis. `lr-button-group` sizes to its content in narrow allocations and no longer reserves an
6176
- artificial intrinsic width. An explicit host width remains respected; set
6177
- `lr-button-group::part(base) { inline-size: 100%; }` when the internal row should fill that width.
6178
- The attachment menu inside `lr-prompt-input` now follows its explicit surrounding light/dark mode;
6179
- WebKit previously could use operating-system colors when that scheme disagreed with the surrounding
6180
- mode. Remove any application workaround that depended on that mismatch.
6181
- Menus also clamp their minimum width to the containing allocation and viewport, and positioned
6182
- submenus respect the positioner's available width. This prevents the former minimum from forcing
6183
- overflow in narrow spaces or with enlarged text; it remains effective when sufficient space exists.
6184
- The default Lyra dark control boundary changes from `#6b6b74` to `#787881` so it clears 3:1 on the
6185
- dark overlay `#2b3038` (3.034:1); the previous value failed on raised and overlay surfaces. This
6186
- changes `--lr-theme-color-surface-border` and its shared fallback only, keeping light boundaries,
6187
- other looks and semantic palettes intact. Plain chromatic button text moves toward body text on
6188
- hover/press, and selected tree rows use on-quiet text in those states, retaining 4.5:1 as their fills
6189
- change. Resting plain-button/selected-row text and explicit component foreground overrides remain
6190
- unchanged. Step numbers and interactive context-meter legend rows use matching semantic fill/text
6191
- pairs; control-border colors no longer act as their text backgrounds. Material uses 8% hover and
6192
- 12% press state layers with its `currentColor` mix partner, keeping filled-action labels at 4.5:1.
6193
-
6194
- Runtime custom accents, including `setLyraStyle({ accent })` and legacy gemstone presets, now
6195
- floor the loud fill to 4.5:1 against its quiet fill and the built-in reference surfaces because the
6196
- same token paints accent text. Its on-loud foreground follows the corrected fill. For example,
6197
- light shadcn emerald changes from `#34d399` with black on-loud text to `#1a6a4d` with white text
6198
- (6.537:1). Checked controls, brand text and streaming accents follow that loud token; secondary
6199
- neutral controls stay unchanged. The requested and persisted accent color is retained.
6626
+ Component rendering contracts that apply without opting into a style axis: `lr-button-group` sizes to
6627
+ its content in narrow allocations and reserves no artificial intrinsic width. An explicit host width
6628
+ remains respected; set `lr-button-group::part(base) { inline-size: 100%; }` when the internal row
6629
+ should fill that width. The attachment menu inside `lr-prompt-input` follows its explicit
6630
+ surrounding light/dark mode. Menus clamp their minimum width to the containing allocation and
6631
+ viewport, and positioned submenus respect the positioner's available width, so the minimum never
6632
+ forces overflow in narrow spaces or with enlarged text; it remains effective when sufficient space
6633
+ exists. The default Lyra dark control boundary (`--lr-theme-color-surface-border` and its shared
6634
+ fallback) clears 3:1 on raised and overlay surfaces; light boundaries, other looks and semantic
6635
+ palettes are unaffected. Plain chromatic button text moves toward body text on hover/press, and
6636
+ selected tree rows use on-quiet text in those states, retaining 4.5:1 as their fills change.
6637
+ Resting plain-button/selected-row text and explicit component foreground overrides are unchanged.
6638
+ Step numbers and interactive context-meter legend rows use matching semantic fill/text pairs;
6639
+ control-border colors do not act as their text backgrounds. Material uses 8% hover and 12% press
6640
+ state layers with its `currentColor` mix partner, keeping filled-action labels at 4.5:1.
6641
+
6642
+ Runtime custom accents, including `setLyraStyle({ accent })` and legacy gemstone presets, floor the
6643
+ loud fill to 4.5:1 against its quiet fill and the built-in reference surfaces because the same token
6644
+ paints accent text. Its on-loud foreground follows the corrected fill. Checked controls, brand text
6645
+ and streaming accents follow that loud token; secondary neutral controls are unchanged. The
6646
+ requested and persisted accent color is retained.
6200
6647
 
6201
6648
  The runtime and no-flash bootstrap still read v1 records written by the retired theme API. On
6202
6649
  read, auto becomes system and the old accent reference surface becomes accentBackground. A saved
@@ -6290,22 +6737,8 @@ that stylesheet it retains an opaque scrim. Native audio/video controls stay bro
6290
6737
 
6291
6738
  Use the host `aria-label` attribute or native `ariaLabel` property to name a component. Where the
6292
6739
  component owns an internal role, it forwards that host name to the semantic element. An explicitly
6293
- present host name, including `aria-label=""`, wins over the retained `accessibleLabel` fallback.
6740
+ present host name, including `aria-label=""`, is honored as given.
6294
6741
  This applies to `lr-table`'s grid and `lr-sequence-strip`'s list as well.
6295
6742
 
6296
- On `lr-attachment-trigger`, `lr-callout`, `lr-carousel`, `lr-dialog`, `lr-drawer`, `lr-file-input`,
6297
- `lr-lite-chart`, `lr-progress-bar`, `lr-progress-ring` and `lr-reorder-item`, the older
6298
- `accessible-label` attribute was removed in 23.0.0 and no longer supplies an accessible name.
6299
- Their `accessibleLabel` properties remain supported as deprecated fallbacks, with removal no
6300
- earlier than 24.0.0. On `lr-table` and `lr-sequence-strip`, both `accessible-label` and
6301
- `accessibleLabel` remain supported with removal no earlier than 24.0.0. These retained
6302
- compatibility inputs can issue one-time development notices; use the native host name for new
6303
- code. The migration reference lists each attribute and property independently.
6304
-
6305
- `lr-message-parts` retains a deprecated nullable `accessibleLabel` property, with removal no earlier
6306
- than 24.0.0. It maps to the current `aria-label` attribute: authoring that attribute updates the
6307
- property, and removing it restores `null` and the localized default name. Normal host attribute
6308
- use and removal are supported without deprecation warnings. Assigning a non-null value directly to
6309
- `accessibleLabel` while no host `aria-label` is present remains a working fallback and warns once
6310
- in development. Use the host `aria-label` or native `ariaLabel` instead; an explicitly empty host
6311
- name still takes precedence.
6743
+ Name components with the host `aria-label` / `ariaLabel`. The former `accessible-label` attribute and
6744
+ `accessibleLabel` property no longer exist (see the generated migration reference).