@aceshooting/lyra-ui 30.0.0 → 30.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 (880) hide show
  1. package/CHANGELOG.md +76 -0
  2. package/README.md +5 -5
  3. package/dist/ai/adapters/ag-ui.d.ts +2 -2
  4. package/dist/ai/index.d.ts +1 -1
  5. package/dist/ai/runtime.d.ts +7 -7
  6. package/dist/ai/runtime.js +1 -1
  7. package/dist/ai/snapshot.d.ts +5 -5
  8. package/dist/ai/types.d.ts +34 -34
  9. package/dist/all.d.ts +1 -1
  10. package/dist/all.js +1 -1
  11. package/dist/autoloader.d.ts +5 -5
  12. package/dist/cli/migration-contract.json +1 -1
  13. package/dist/components/agent-tools/activity-feed/activity-feed.class.d.ts +5 -5
  14. package/dist/components/agent-tools/activity-feed/activity-feed.d.ts +1 -1
  15. package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.class.d.ts +4 -4
  16. package/dist/components/agent-tools/agent-eval-dashboard/agent-eval-dashboard.d.ts +1 -1
  17. package/dist/components/agent-tools/agent-question/agent-question.class.d.ts +9 -9
  18. package/dist/components/agent-tools/agent-question/agent-question.d.ts +1 -1
  19. package/dist/components/agent-tools/agent-run/agent-run.class.d.ts +3 -3
  20. package/dist/components/agent-tools/agent-run/agent-run.d.ts +1 -1
  21. package/dist/components/agent-tools/agent-status-presentation.d.ts +6 -6
  22. package/dist/components/agent-tools/agent-trace/agent-trace.class.d.ts +5 -5
  23. package/dist/components/agent-tools/agent-trace/agent-trace.d.ts +1 -1
  24. package/dist/components/agent-tools/approval-queue/approval-queue.class.d.ts +6 -6
  25. package/dist/components/agent-tools/approval-queue/approval-queue.d.ts +1 -1
  26. package/dist/components/agent-tools/approval-state.d.ts +4 -4
  27. package/dist/components/agent-tools/artifact-panel/artifact-panel.class.d.ts +7 -7
  28. package/dist/components/agent-tools/artifact-panel/artifact-panel.d.ts +1 -1
  29. package/dist/components/agent-tools/background-runs/background-runs.class.d.ts +5 -5
  30. package/dist/components/agent-tools/background-runs/background-runs.d.ts +1 -1
  31. package/dist/components/agent-tools/browser-frame/browser-frame.class.d.ts +2 -2
  32. package/dist/components/agent-tools/browser-frame/browser-frame.d.ts +1 -1
  33. package/dist/components/agent-tools/budget-meter/budget-meter.class.d.ts +5 -5
  34. package/dist/components/agent-tools/budget-meter/budget-meter.d.ts +1 -1
  35. package/dist/components/agent-tools/change-review/change-review.class.d.ts +5 -5
  36. package/dist/components/agent-tools/change-review/change-review.d.ts +1 -1
  37. package/dist/components/agent-tools/commit-card/commit-card.class.d.ts +5 -5
  38. package/dist/components/agent-tools/commit-card/commit-card.d.ts +1 -1
  39. package/dist/components/agent-tools/compare-panel/compare-panel.d.ts +1 -1
  40. package/dist/components/agent-tools/confirm-bar/confirm-bar.class.d.ts +4 -4
  41. package/dist/components/agent-tools/confirm-bar/confirm-bar.d.ts +1 -1
  42. package/dist/components/agent-tools/connector-manager/connector-manager.class.d.ts +4 -4
  43. package/dist/components/agent-tools/connector-manager/connector-manager.d.ts +1 -1
  44. package/dist/components/agent-tools/context-inspector/context-inspector.class.d.ts +13 -13
  45. package/dist/components/agent-tools/context-inspector/context-inspector.d.ts +1 -1
  46. package/dist/components/agent-tools/eval-dataset/eval-dataset.class.d.ts +8 -8
  47. package/dist/components/agent-tools/eval-dataset/eval-dataset.d.ts +1 -1
  48. package/dist/components/agent-tools/eval-result/eval-result.class.d.ts +7 -7
  49. package/dist/components/agent-tools/eval-result/eval-result.d.ts +1 -1
  50. package/dist/components/agent-tools/evaluation-run/evaluation-run.class.d.ts +6 -6
  51. package/dist/components/agent-tools/evaluation-run/evaluation-run.d.ts +1 -1
  52. package/dist/components/agent-tools/mcp-app/mcp-app.class.d.ts +5 -5
  53. package/dist/components/agent-tools/mcp-app/mcp-app.d.ts +1 -1
  54. package/dist/components/agent-tools/permission-grant/permission-grant.class.d.ts +7 -7
  55. package/dist/components/agent-tools/permission-grant/permission-grant.d.ts +1 -1
  56. package/dist/components/agent-tools/permission-rules/permission-rules.class.d.ts +3 -3
  57. package/dist/components/agent-tools/permission-rules/permission-rules.d.ts +1 -1
  58. package/dist/components/agent-tools/policy-summary/policy-summary.class.d.ts +3 -3
  59. package/dist/components/agent-tools/policy-summary/policy-summary.d.ts +1 -1
  60. package/dist/components/agent-tools/prompt-studio/prompt-studio.class.d.ts +8 -8
  61. package/dist/components/agent-tools/prompt-studio/prompt-studio.d.ts +1 -1
  62. package/dist/components/agent-tools/result-card/result-card.class.d.ts +1 -1
  63. package/dist/components/agent-tools/result-card/result-card.d.ts +1 -1
  64. package/dist/components/agent-tools/result-card/result-field.class.d.ts +1 -1
  65. package/dist/components/agent-tools/result-card/result-field.d.ts +1 -1
  66. package/dist/components/agent-tools/run-events.d.ts +1 -1
  67. package/dist/components/agent-tools/schema-viewer/schema-viewer.class.d.ts +2 -2
  68. package/dist/components/agent-tools/schema-viewer/schema-viewer.d.ts +1 -1
  69. package/dist/components/agent-tools/span-waterfall/span-waterfall.class.d.ts +2 -2
  70. package/dist/components/agent-tools/span-waterfall/span-waterfall.class.js +1 -1
  71. package/dist/components/agent-tools/span-waterfall/span-waterfall.d.ts +1 -1
  72. package/dist/components/agent-tools/stack-trace/stack-trace-parse.d.ts +4 -4
  73. package/dist/components/agent-tools/stack-trace/stack-trace.class.d.ts +3 -3
  74. package/dist/components/agent-tools/stack-trace/stack-trace.d.ts +1 -1
  75. package/dist/components/agent-tools/subagent-panel/subagent-panel.class.d.ts +1 -1
  76. package/dist/components/agent-tools/subagent-panel/subagent-panel.d.ts +1 -1
  77. package/dist/components/agent-tools/task-list/task-list.class.d.ts +6 -6
  78. package/dist/components/agent-tools/task-list/task-list.class.js +2 -2
  79. package/dist/components/agent-tools/task-list/task-list.d.ts +1 -1
  80. package/dist/components/agent-tools/terminal/terminal.class.d.ts +2 -2
  81. package/dist/components/agent-tools/terminal/terminal.d.ts +1 -1
  82. package/dist/components/agent-tools/test-results/test-results.class.d.ts +8 -8
  83. package/dist/components/agent-tools/test-results/test-results.d.ts +1 -1
  84. package/dist/components/agent-tools/thinking-panel/thinking-panel.class.d.ts +1 -1
  85. package/dist/components/agent-tools/thinking-panel/thinking-panel.d.ts +1 -1
  86. package/dist/components/agent-tools/tool-approval-dialog/tool-approval-dialog.class.d.ts +9 -9
  87. package/dist/components/agent-tools/tool-approval-dialog/tool-approval-dialog.d.ts +1 -1
  88. package/dist/components/agent-tools/tool-call-block/tool-call-block.class.d.ts +8 -8
  89. package/dist/components/agent-tools/tool-call-block/tool-call-block.d.ts +1 -1
  90. package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.d.ts +6 -6
  91. package/dist/components/agent-tools/tool-call-chip/tool-call-chip.d.ts +1 -1
  92. package/dist/components/agent-tools/tool-param-form/tool-param-form.class.d.ts +7 -7
  93. package/dist/components/agent-tools/tool-param-form/tool-param-form.d.ts +1 -1
  94. package/dist/components/agent-tools/tool-param-form/tool-param-types.d.ts +14 -14
  95. package/dist/components/agent-tools/tool-result-dialog/tool-result-dialog.class.d.ts +7 -7
  96. package/dist/components/agent-tools/tool-result-dialog/tool-result-dialog.d.ts +1 -1
  97. package/dist/components/agent-tools/tool-result-view/registry.d.ts +9 -9
  98. package/dist/components/agent-tools/tool-result-view/tool-result-view.class.d.ts +7 -7
  99. package/dist/components/agent-tools/tool-result-view/tool-result-view.d.ts +1 -1
  100. package/dist/components/agent-tools/tool-select-dialog/tool-select-dialog.class.d.ts +9 -9
  101. package/dist/components/agent-tools/tool-select-dialog/tool-select-dialog.d.ts +1 -1
  102. package/dist/components/agent-tools/tool-timeline/tool-timeline.class.d.ts +4 -4
  103. package/dist/components/agent-tools/tool-timeline/tool-timeline.d.ts +1 -1
  104. package/dist/components/agent-tools/trace-tree/span-shared.d.ts +9 -9
  105. package/dist/components/agent-tools/trace-tree/trace-tree.class.d.ts +9 -9
  106. package/dist/components/agent-tools/trace-tree/trace-tree.class.js +2 -2
  107. package/dist/components/agent-tools/trace-tree/trace-tree.d.ts +1 -1
  108. package/dist/components/charts/chart/bar-chart.d.ts +1 -1
  109. package/dist/components/charts/chart/box-plot.class.d.ts +10 -10
  110. package/dist/components/charts/chart/box-plot.d.ts +1 -1
  111. package/dist/components/charts/chart/bubble-chart.d.ts +1 -1
  112. package/dist/components/charts/chart/chart-chrome.d.ts +2 -2
  113. package/dist/components/charts/chart/chart-colors.d.ts +1 -1
  114. package/dist/components/charts/chart/chart-core-loader.d.ts +2 -2
  115. package/dist/components/charts/chart/chart-feature-loader.d.ts +1 -1
  116. package/dist/components/charts/chart/chart-legend-visibility.d.ts +9 -9
  117. package/dist/components/charts/chart/chart-prepared-data.d.ts +7 -5
  118. package/dist/components/charts/chart/chart-prepared-data.js +1 -1
  119. package/dist/components/charts/chart/chart.class.d.ts +35 -35
  120. package/dist/components/charts/chart/chart.class.js +3 -3
  121. package/dist/components/charts/chart/chart.d.ts +1 -1
  122. package/dist/components/charts/chart/doughnut-chart.d.ts +1 -1
  123. package/dist/components/charts/chart/histogram-bin.d.ts +1 -1
  124. package/dist/components/charts/chart/histogram.class.d.ts +2 -2
  125. package/dist/components/charts/chart/histogram.d.ts +1 -1
  126. package/dist/components/charts/chart/line-chart.d.ts +1 -1
  127. package/dist/components/charts/chart/lite-chart.class.d.ts +9 -9
  128. package/dist/components/charts/chart/lite-chart.class.js +1 -1
  129. package/dist/components/charts/chart/lite-chart.d.ts +1 -1
  130. package/dist/components/charts/chart/pie-chart.d.ts +1 -1
  131. package/dist/components/charts/chart/polar-area-chart.d.ts +1 -1
  132. package/dist/components/charts/chart/radar-chart.d.ts +1 -1
  133. package/dist/components/charts/chart/scatter-chart.d.ts +1 -1
  134. package/dist/components/charts/chart-3d/chart-3d-data.d.ts +13 -13
  135. package/dist/components/charts/chart-3d/chart-3d.class.d.ts +8 -8
  136. package/dist/components/conversation/agent-workspace/agent-workspace.class.d.ts +26 -26
  137. package/dist/components/conversation/agent-workspace/agent-workspace.d.ts +1 -1
  138. package/dist/components/conversation/audio-visualizer/audio-visualizer.class.d.ts +3 -3
  139. package/dist/components/conversation/audio-visualizer/audio-visualizer.d.ts +1 -1
  140. package/dist/components/conversation/branch-picker/branch-picker.class.d.ts +2 -2
  141. package/dist/components/conversation/branch-picker/branch-picker.d.ts +1 -1
  142. package/dist/components/conversation/catalog-picker-element.d.ts +20 -20
  143. package/dist/components/conversation/chat-composer/chat-composer-status.d.ts +1 -1
  144. package/dist/components/conversation/chat-composer/chat-composer.class.d.ts +10 -10
  145. package/dist/components/conversation/chat-composer/chat-composer.d.ts +1 -1
  146. package/dist/components/conversation/chat-message/chat-message.class.d.ts +5 -5
  147. package/dist/components/conversation/chat-message/chat-message.d.ts +1 -1
  148. package/dist/components/conversation/chat-viewport/chat-viewport.class.d.ts +1 -1
  149. package/dist/components/conversation/chat-viewport/chat-viewport.d.ts +1 -1
  150. package/dist/components/conversation/checkpoint/checkpoint.class.d.ts +4 -4
  151. package/dist/components/conversation/checkpoint/checkpoint.d.ts +1 -1
  152. package/dist/components/conversation/code-block/code-block-base.class.d.ts +3 -3
  153. package/dist/components/conversation/code-block/code-block-core.class.d.ts +6 -6
  154. package/dist/components/conversation/code-block/code-block-core.d.ts +1 -1
  155. package/dist/components/conversation/code-block/code-block-shared.d.ts +12 -12
  156. package/dist/components/conversation/code-block/code-block.class.d.ts +7 -7
  157. package/dist/components/conversation/code-block/code-block.d.ts +1 -1
  158. package/dist/components/conversation/code-block/shiki-oniguruma.d.ts +1 -1
  159. package/dist/components/conversation/code-block/shiki-types.d.ts +5 -5
  160. package/dist/components/conversation/conversation-item/conversation-item.class.d.ts +2 -2
  161. package/dist/components/conversation/conversation-item/conversation-item.d.ts +1 -1
  162. package/dist/components/conversation/generation-metrics/generation-metrics.class.d.ts +1 -1
  163. package/dist/components/conversation/generation-metrics/generation-metrics.d.ts +1 -1
  164. package/dist/components/conversation/handoff-divider/handoff-divider.d.ts +1 -1
  165. package/dist/components/conversation/markdown/markdown-base.class.d.ts +8 -8
  166. package/dist/components/conversation/markdown/markdown-code-header.d.ts +2 -2
  167. package/dist/components/conversation/markdown/markdown-core.class.d.ts +4 -4
  168. package/dist/components/conversation/markdown/markdown-core.d.ts +1 -1
  169. package/dist/components/conversation/markdown/markdown-fallback-code.d.ts +3 -3
  170. package/dist/components/conversation/markdown/markdown-loader.d.ts +3 -3
  171. package/dist/components/conversation/markdown/markdown-progressive.js +1 -1
  172. package/dist/components/conversation/markdown/markdown-shared.d.ts +24 -24
  173. package/dist/components/conversation/markdown/markdown.class.d.ts +3 -3
  174. package/dist/components/conversation/markdown/markdown.d.ts +1 -1
  175. package/dist/components/conversation/message-actions/message-actions.class.d.ts +2 -2
  176. package/dist/components/conversation/message-actions/message-actions.d.ts +1 -1
  177. package/dist/components/conversation/message-actions/toolbar-actions.d.ts +2 -2
  178. package/dist/components/conversation/message-feedback/message-feedback.class.d.ts +8 -8
  179. package/dist/components/conversation/message-feedback/message-feedback.d.ts +1 -1
  180. package/dist/components/conversation/message-parts/message-parts.class.d.ts +6 -6
  181. package/dist/components/conversation/message-parts/message-parts.d.ts +1 -1
  182. package/dist/components/conversation/model-select/model-select.class.d.ts +9 -9
  183. package/dist/components/conversation/model-select/model-select.d.ts +1 -1
  184. package/dist/components/conversation/model-settings-panel/model-settings-panel.class.d.ts +4 -4
  185. package/dist/components/conversation/model-settings-panel/model-settings-panel.d.ts +1 -1
  186. package/dist/components/conversation/prompt-input/prompt-input.class.d.ts +16 -16
  187. package/dist/components/conversation/prompt-input/prompt-input.d.ts +1 -1
  188. package/dist/components/conversation/prompt-queue/prompt-queue.class.d.ts +3 -3
  189. package/dist/components/conversation/prompt-queue/prompt-queue.d.ts +1 -1
  190. package/dist/components/conversation/push-to-talk/push-to-talk.class.d.ts +3 -3
  191. package/dist/components/conversation/push-to-talk/push-to-talk.d.ts +1 -1
  192. package/dist/components/conversation/realtime-session/realtime-session.d.ts +1 -1
  193. package/dist/components/conversation/selection-toolbar/selection-toolbar.class.d.ts +1 -1
  194. package/dist/components/conversation/selection-toolbar/selection-toolbar.d.ts +1 -1
  195. package/dist/components/conversation/stream-status/stream-status.class.d.ts +5 -5
  196. package/dist/components/conversation/stream-status/stream-status.d.ts +1 -1
  197. package/dist/components/conversation/streaming-text/markdown-detection.d.ts +1 -1
  198. package/dist/components/conversation/streaming-text/streaming-text-core.class.d.ts +1 -1
  199. package/dist/components/conversation/streaming-text/streaming-text-core.d.ts +1 -1
  200. package/dist/components/conversation/streaming-text/streaming-text.class.d.ts +1 -1
  201. package/dist/components/conversation/streaming-text/streaming-text.d.ts +1 -1
  202. package/dist/components/conversation/suggestion-chips/suggestion-chips.class.d.ts +4 -4
  203. package/dist/components/conversation/suggestion-chips/suggestion-chips.d.ts +1 -1
  204. package/dist/components/conversation/thread-list/thread-list.class.d.ts +13 -13
  205. package/dist/components/conversation/thread-list/thread-list.d.ts +1 -1
  206. package/dist/components/conversation/timestamp.d.ts +2 -2
  207. package/dist/components/conversation/transcript-feed/transcript-feed.class.d.ts +3 -3
  208. package/dist/components/conversation/transcript-feed/transcript-feed.d.ts +1 -1
  209. package/dist/components/conversation/typing-indicator/typing-indicator.class.d.ts +1 -1
  210. package/dist/components/conversation/typing-indicator/typing-indicator.d.ts +1 -1
  211. package/dist/components/conversation/usage-badge/usage-badge.class.d.ts +2 -2
  212. package/dist/components/conversation/usage-badge/usage-badge.d.ts +1 -1
  213. package/dist/components/conversation/voice-picker/voice-picker.class.d.ts +10 -10
  214. package/dist/components/conversation/voice-picker/voice-picker.d.ts +1 -1
  215. package/dist/components/conversation/widget-renderer/default-registry.d.ts +1 -1
  216. package/dist/components/conversation/widget-renderer/registry.d.ts +12 -12
  217. package/dist/components/conversation/widget-renderer/resolve.d.ts +7 -7
  218. package/dist/components/conversation/widget-renderer/widget-renderer.class.d.ts +1 -1
  219. package/dist/components/conversation/widget-renderer/widget-renderer.d.ts +1 -1
  220. package/dist/components/data/calendar/calendar.class.d.ts +2 -2
  221. package/dist/components/data/calendar/calendar.d.ts +1 -1
  222. package/dist/components/data/condition-builder/condition-builder.class.d.ts +11 -11
  223. package/dist/components/data/condition-builder/condition-builder.d.ts +1 -1
  224. package/dist/components/data/context-meter/context-meter.class.d.ts +12 -12
  225. package/dist/components/data/context-meter/context-meter.d.ts +1 -1
  226. package/dist/components/data/data-grid/data-grid-types.d.ts +19 -19
  227. package/dist/components/data/data-grid/data-grid.class.d.ts +58 -58
  228. package/dist/components/data/data-grid/data-grid.d.ts +1 -1
  229. package/dist/components/data/document-library/document-library.class.d.ts +12 -12
  230. package/dist/components/data/document-library/document-library.d.ts +1 -1
  231. package/dist/components/data/env-list/env-list.class.d.ts +1 -1
  232. package/dist/components/data/env-list/env-list.d.ts +1 -1
  233. package/dist/components/data/file-tree/file-tree.class.d.ts +6 -4
  234. package/dist/components/data/file-tree/file-tree.class.js +2 -2
  235. package/dist/components/data/file-tree/file-tree.d.ts +1 -1
  236. package/dist/components/data/flow-canvas/flow-canvas.class.d.ts +19 -19
  237. package/dist/components/data/flow-canvas/flow-canvas.d.ts +1 -1
  238. package/dist/components/data/flow-canvas/flow-types.d.ts +12 -12
  239. package/dist/components/data/flow-controls/flow-controls.class.d.ts +1 -1
  240. package/dist/components/data/flow-controls/flow-controls.d.ts +1 -1
  241. package/dist/components/data/flow-minimap/flow-minimap.class.d.ts +1 -1
  242. package/dist/components/data/flow-minimap/flow-minimap.d.ts +1 -1
  243. package/dist/components/data/flow-node/flow-node.class.d.ts +9 -9
  244. package/dist/components/data/flow-node/flow-node.d.ts +1 -1
  245. package/dist/components/data/flow-run-status/flow-run-status.class.d.ts +2 -2
  246. package/dist/components/data/flow-run-status/flow-run-status.d.ts +1 -1
  247. package/dist/components/data/funnel/funnel.class.d.ts +8 -8
  248. package/dist/components/data/funnel/funnel.d.ts +1 -1
  249. package/dist/components/data/gauge/gauge.class.d.ts +2 -2
  250. package/dist/components/data/gauge/gauge.d.ts +1 -1
  251. package/dist/components/data/graph-query-builder/graph-query-builder.class.d.ts +19 -19
  252. package/dist/components/data/graph-query-builder/graph-query-builder.d.ts +1 -1
  253. package/dist/components/data/heatmap/calendar-grid.d.ts +5 -5
  254. package/dist/components/data/heatmap/heatmap-limits.d.ts +5 -5
  255. package/dist/components/data/heatmap/heatmap-matrix-source.d.ts +2 -2
  256. package/dist/components/data/heatmap/heatmap-scale.d.ts +3 -3
  257. package/dist/components/data/heatmap/heatmap.class.d.ts +20 -20
  258. package/dist/components/data/heatmap/heatmap.class.js +1 -1
  259. package/dist/components/data/heatmap/heatmap.d.ts +1 -1
  260. package/dist/components/data/pagination/pagination.class.d.ts +14 -14
  261. package/dist/components/data/pagination/pagination.d.ts +1 -1
  262. package/dist/components/data/sequence-strip/sequence-strip-source.d.ts +2 -2
  263. package/dist/components/data/sequence-strip/sequence-strip.class.d.ts +2 -2
  264. package/dist/components/data/sequence-strip/sequence-strip.d.ts +1 -1
  265. package/dist/components/data/sparkline/sparkline.class.d.ts +8 -8
  266. package/dist/components/data/sparkline/sparkline.d.ts +1 -1
  267. package/dist/components/data/stat/stat.class.d.ts +5 -5
  268. package/dist/components/data/stat/stat.d.ts +1 -1
  269. package/dist/components/data/table/table.class.d.ts +12 -12
  270. package/dist/components/data/table/table.d.ts +1 -1
  271. package/dist/components/data/timeline/timeline-item.d.ts +1 -1
  272. package/dist/components/data/timeline/timeline.class.d.ts +3 -3
  273. package/dist/components/data/timeline/timeline.d.ts +1 -1
  274. package/dist/components/data/tree/tree-item.class.d.ts +9 -9
  275. package/dist/components/data/tree/tree-item.d.ts +1 -1
  276. package/dist/components/data/tree/tree-types.d.ts +7 -7
  277. package/dist/components/data/tree/tree.class.d.ts +4 -4
  278. package/dist/components/data/tree/tree.d.ts +1 -1
  279. package/dist/components/data/word-cloud/word-cloud-layout.d.ts +14 -14
  280. package/dist/components/data/word-cloud/word-cloud.class.d.ts +4 -4
  281. package/dist/components/data/word-cloud/word-cloud.d.ts +1 -1
  282. package/dist/components/forms/button/button.class.d.ts +12 -12
  283. package/dist/components/forms/button/button.d.ts +1 -1
  284. package/dist/components/forms/catalog-picker-base.d.ts +24 -24
  285. package/dist/components/forms/checkbox/checkbox.class.d.ts +9 -9
  286. package/dist/components/forms/checkbox/checkbox.class.js +2 -2
  287. package/dist/components/forms/checkbox/checkbox.d.ts +1 -1
  288. package/dist/components/forms/checkbox-group/checkbox-group.class.d.ts +12 -12
  289. package/dist/components/forms/checkbox-group/checkbox-group.d.ts +1 -1
  290. package/dist/components/forms/code-editor/code-editor.class.d.ts +4 -4
  291. package/dist/components/forms/code-editor/code-editor.d.ts +1 -1
  292. package/dist/components/forms/color-picker/color-core.d.ts +11 -11
  293. package/dist/components/forms/color-picker/color-picker.class.d.ts +13 -13
  294. package/dist/components/forms/color-picker/color-picker.d.ts +1 -1
  295. package/dist/components/forms/combobox/combobox.class.d.ts +27 -27
  296. package/dist/components/forms/combobox/combobox.d.ts +1 -1
  297. package/dist/components/forms/combobox/option.class.d.ts +9 -9
  298. package/dist/components/forms/combobox/option.class.js +2 -2
  299. package/dist/components/forms/combobox/option.d.ts +1 -1
  300. package/dist/components/forms/country-picker/country-picker.class.d.ts +2 -2
  301. package/dist/components/forms/currency-picker/currency-catalog.d.ts +5 -5
  302. package/dist/components/forms/currency-picker/currency-picker.class.d.ts +1 -1
  303. package/dist/components/forms/currency-picker/currency-types.d.ts +1 -1
  304. package/dist/components/forms/date-picker/calendar-core.d.ts +10 -10
  305. package/dist/components/forms/date-picker/date-input.class.d.ts +25 -25
  306. package/dist/components/forms/date-picker/date-input.d.ts +1 -1
  307. package/dist/components/forms/date-picker/date-picker-disabled-dates.d.ts +1 -1
  308. package/dist/components/forms/date-picker/date-picker.class.d.ts +13 -13
  309. package/dist/components/forms/date-picker/date-picker.d.ts +1 -1
  310. package/dist/components/forms/emoji-picker/emoji-picker.class.d.ts +8 -8
  311. package/dist/components/forms/emoji-picker/emoji-picker.d.ts +1 -1
  312. package/dist/components/forms/emoji-picker/emoji-types.d.ts +1 -1
  313. package/dist/components/forms/form-validator.d.ts +3 -3
  314. package/dist/components/forms/icon-button/icon-button.class.d.ts +8 -8
  315. package/dist/components/forms/icon-button/icon-button.d.ts +1 -1
  316. package/dist/components/forms/input/input-shared.d.ts +14 -14
  317. package/dist/components/forms/input/input.class.d.ts +1 -1
  318. package/dist/components/forms/input/input.d.ts +1 -1
  319. package/dist/components/forms/input/native-time-input.class.d.ts +3 -3
  320. package/dist/components/forms/input/native-time-input.d.ts +1 -1
  321. package/dist/components/forms/input/number-input.class.d.ts +6 -6
  322. package/dist/components/forms/input/number-input.d.ts +1 -1
  323. package/dist/components/forms/input/time-input-shared.d.ts +7 -7
  324. package/dist/components/forms/input/time-input.class.d.ts +9 -9
  325. package/dist/components/forms/input/time-input.class.js +1 -1
  326. package/dist/components/forms/input/time-input.d.ts +1 -1
  327. package/dist/components/forms/locale-picker/locale-picker.class.d.ts +23 -18
  328. package/dist/components/forms/locale-picker/locale-picker.class.js +1 -1
  329. package/dist/components/forms/locale-picker/locale-picker.d.ts +1 -1
  330. package/dist/components/forms/otp-input/otp-input.class.d.ts +24 -24
  331. package/dist/components/forms/otp-input/otp-input.d.ts +1 -1
  332. package/dist/components/forms/phone-input/phone-input.class.d.ts +19 -19
  333. package/dist/components/forms/phone-input/phone-input.d.ts +1 -1
  334. package/dist/components/forms/phone-input/phone-number-adapter.d.ts +10 -10
  335. package/dist/components/forms/radio/radio-button.d.ts +1 -1
  336. package/dist/components/forms/radio/radio-group.class.d.ts +9 -9
  337. package/dist/components/forms/radio/radio-group.d.ts +1 -1
  338. package/dist/components/forms/radio/radio.class.d.ts +9 -9
  339. package/dist/components/forms/radio/radio.class.js +1 -1
  340. package/dist/components/forms/radio/radio.d.ts +1 -1
  341. package/dist/components/forms/rubric-form/rubric-form.class.d.ts +10 -10
  342. package/dist/components/forms/rubric-form/rubric-form.d.ts +1 -1
  343. package/dist/components/forms/select/select.class.d.ts +15 -15
  344. package/dist/components/forms/select/select.class.js +1 -1
  345. package/dist/components/forms/select/select.d.ts +1 -1
  346. package/dist/components/forms/signature-pad/signature-pad-limits.d.ts +2 -2
  347. package/dist/components/forms/signature-pad/signature-pad.class.d.ts +9 -9
  348. package/dist/components/forms/slider/slider.class.d.ts +21 -21
  349. package/dist/components/forms/slider/slider.class.js +1 -1
  350. package/dist/components/forms/slider/slider.d.ts +1 -1
  351. package/dist/components/forms/swatch-picker/swatch-picker.class.d.ts +5 -5
  352. package/dist/components/forms/swatch-picker/swatch-picker.d.ts +1 -1
  353. package/dist/components/forms/switch/switch.class.d.ts +7 -7
  354. package/dist/components/forms/switch/switch.class.js +1 -1
  355. package/dist/components/forms/switch/switch.d.ts +1 -1
  356. package/dist/components/forms/textarea/textarea.class.d.ts +10 -10
  357. package/dist/components/forms/textarea/textarea.d.ts +1 -1
  358. package/dist/components/forms/time-range/time-range.class.d.ts +4 -4
  359. package/dist/components/forms/time-range/time-range.d.ts +1 -1
  360. package/dist/components/forms/time-zone-picker/time-zone-picker.class.d.ts +1 -1
  361. package/dist/components/forms/toggle/toggle.class.d.ts +10 -10
  362. package/dist/components/forms/toggle/toggle.d.ts +1 -1
  363. package/dist/components/forms/toggle-group/toggle-group.class.d.ts +11 -11
  364. package/dist/components/forms/toggle-group/toggle-group.d.ts +1 -1
  365. package/dist/components/forms/token-input/token-input.class.d.ts +12 -12
  366. package/dist/components/forms/token-input/token-input.d.ts +1 -1
  367. package/dist/components/forms/unit-picker/unit-picker.class.d.ts +1 -1
  368. package/dist/components/layout/app-rail/app-rail-item.class.d.ts +5 -5
  369. package/dist/components/layout/app-rail/app-rail-item.d.ts +1 -1
  370. package/dist/components/layout/app-rail/app-rail-mode.d.ts +4 -4
  371. package/dist/components/layout/app-rail/app-rail.class.d.ts +4 -4
  372. package/dist/components/layout/app-rail/app-rail.d.ts +1 -1
  373. package/dist/components/layout/app-rail-group/app-rail-group.class.d.ts +3 -3
  374. package/dist/components/layout/app-rail-group/app-rail-group.d.ts +1 -1
  375. package/dist/components/layout/breadcrumb/breadcrumb-item.class.d.ts +2 -2
  376. package/dist/components/layout/breadcrumb/breadcrumb-item.d.ts +1 -1
  377. package/dist/components/layout/breadcrumb/breadcrumb.d.ts +1 -1
  378. package/dist/components/layout/button-group/button-group.class.d.ts +2 -2
  379. package/dist/components/layout/button-group/button-group.d.ts +1 -1
  380. package/dist/components/layout/card/card.class.d.ts +1 -1
  381. package/dist/components/layout/card/card.d.ts +1 -1
  382. package/dist/components/layout/carousel/carousel-item.d.ts +1 -1
  383. package/dist/components/layout/carousel/carousel.class.d.ts +5 -5
  384. package/dist/components/layout/command-palette/command-palette.class.d.ts +7 -7
  385. package/dist/components/layout/command-palette/command-palette.d.ts +1 -1
  386. package/dist/components/layout/control-group/control-group.d.ts +1 -1
  387. package/dist/components/layout/dashboard-grid/dashboard-grid.class.d.ts +3 -3
  388. package/dist/components/layout/dashboard-grid/dashboard-grid.d.ts +1 -1
  389. package/dist/components/layout/dashboard-grid/layout-types.d.ts +12 -12
  390. package/dist/components/layout/details/accordion-item.class.d.ts +10 -10
  391. package/dist/components/layout/details/accordion-item.d.ts +1 -1
  392. package/dist/components/layout/details/accordion-types.d.ts +2 -2
  393. package/dist/components/layout/details/accordion.class.d.ts +5 -5
  394. package/dist/components/layout/details/accordion.d.ts +1 -1
  395. package/dist/components/layout/details/details.class.d.ts +9 -9
  396. package/dist/components/layout/details/details.d.ts +1 -1
  397. package/dist/components/layout/dock-panel/dock-panel.class.d.ts +4 -4
  398. package/dist/components/layout/dock-panel/dock-panel.d.ts +1 -1
  399. package/dist/components/layout/drilldown-panel/drilldown-panel.class.d.ts +8 -8
  400. package/dist/components/layout/drilldown-panel/drilldown-panel.d.ts +1 -1
  401. package/dist/components/layout/filter-bar/filter-bar.class.d.ts +12 -12
  402. package/dist/components/layout/filter-bar/filter-bar.d.ts +1 -1
  403. package/dist/components/layout/menu/dropdown-item.class.d.ts +1 -1
  404. package/dist/components/layout/menu/dropdown-item.d.ts +1 -1
  405. package/dist/components/layout/menu/menu-item.class.d.ts +6 -6
  406. package/dist/components/layout/menu/menu-item.d.ts +1 -1
  407. package/dist/components/layout/menu/menu-label.d.ts +1 -1
  408. package/dist/components/layout/menu/menu.d.ts +1 -1
  409. package/dist/components/layout/menubar/menubar-item.class.d.ts +1 -1
  410. package/dist/components/layout/menubar/menubar-item.d.ts +1 -1
  411. package/dist/components/layout/menubar/menubar.class.d.ts +2 -2
  412. package/dist/components/layout/menubar/menubar.d.ts +1 -1
  413. package/dist/components/layout/multi-split/multi-split.class.d.ts +4 -4
  414. package/dist/components/layout/multi-split/multi-split.d.ts +1 -1
  415. package/dist/components/layout/navigation-menu/navigation-menu.class.d.ts +9 -9
  416. package/dist/components/layout/navigation-menu/navigation-menu.d.ts +1 -1
  417. package/dist/components/layout/navigation-menu-item/navigation-menu-item.class.d.ts +5 -5
  418. package/dist/components/layout/navigation-menu-item/navigation-menu-item.d.ts +1 -1
  419. package/dist/components/layout/page/page.class.d.ts +9 -9
  420. package/dist/components/layout/page/page.d.ts +1 -1
  421. package/dist/components/layout/reorder-list/reorder-item.class.d.ts +2 -2
  422. package/dist/components/layout/reorder-list/reorder-item.d.ts +1 -1
  423. package/dist/components/layout/reorder-list/reorder-list.d.ts +1 -1
  424. package/dist/components/layout/responsive-panel/responsive-panel-mode.d.ts +3 -3
  425. package/dist/components/layout/responsive-panel/responsive-panel.class.d.ts +4 -4
  426. package/dist/components/layout/responsive-panel/responsive-panel.d.ts +1 -1
  427. package/dist/components/layout/scroller/scroller.class.d.ts +2 -2
  428. package/dist/components/layout/scroller/scroller.d.ts +1 -1
  429. package/dist/components/layout/segmented/segmented.class.d.ts +2 -2
  430. package/dist/components/layout/segmented/segmented.d.ts +1 -1
  431. package/dist/components/layout/split-panel/split-panel-snap.d.ts +4 -4
  432. package/dist/components/layout/split-panel/split-panel.class.d.ts +11 -11
  433. package/dist/components/layout/split-panel/split-panel.d.ts +1 -1
  434. package/dist/components/layout/stepper/stepper.class.d.ts +4 -4
  435. package/dist/components/layout/stepper/stepper.d.ts +1 -1
  436. package/dist/components/layout/tab-group/tab-group.class.d.ts +4 -4
  437. package/dist/components/layout/tab-group/tab-group.d.ts +1 -1
  438. package/dist/components/layout/tab-group/tab-panel.class.d.ts +1 -1
  439. package/dist/components/layout/tab-group/tab-panel.d.ts +1 -1
  440. package/dist/components/layout/tab-group/tab.class.d.ts +2 -2
  441. package/dist/components/layout/tab-group/tab.d.ts +1 -1
  442. package/dist/components/layout/virtual-list/virtual-list-attributes.d.ts +2 -2
  443. package/dist/components/layout/virtual-list/virtual-list-limits.d.ts +1 -1
  444. package/dist/components/layout/virtual-list/virtual-list.class.d.ts +12 -12
  445. package/dist/components/layout/virtual-list/virtual-list.d.ts +1 -1
  446. package/dist/components/layout/widget/widget.class.d.ts +3 -3
  447. package/dist/components/layout/widget/widget.d.ts +1 -1
  448. package/dist/components/lr-map-anchor.js +1 -0
  449. package/dist/components/media/animated-image/animated-image.class.d.ts +4 -4
  450. package/dist/components/media/animated-image/animated-image.d.ts +1 -1
  451. package/dist/components/media/animation/animation-catalog.d.ts +3 -3
  452. package/dist/components/media/animation/animation.class.d.ts +5 -5
  453. package/dist/components/media/animation/animation.d.ts +1 -1
  454. package/dist/components/media/attachment-chip/attachment-chip.class.d.ts +5 -5
  455. package/dist/components/media/attachment-chip/attachment-chip.d.ts +1 -1
  456. package/dist/components/media/attachment-chip/file-size.d.ts +2 -2
  457. package/dist/components/media/attachment-trigger/attachment-trigger.class.d.ts +1 -1
  458. package/dist/components/media/attachment-trigger/attachment-trigger.d.ts +1 -1
  459. package/dist/components/media/av-player/av-cue-source.d.ts +3 -3
  460. package/dist/components/media/av-player/av-player.class.d.ts +10 -10
  461. package/dist/components/media/av-player/av-player.d.ts +1 -1
  462. package/dist/components/media/avatar/avatar.d.ts +1 -1
  463. package/dist/components/media/avatar-group/avatar-group.class.d.ts +2 -2
  464. package/dist/components/media/avatar-group/avatar-group.d.ts +1 -1
  465. package/dist/components/media/drop-zone/drop-zone.class.d.ts +3 -3
  466. package/dist/components/media/drop-zone/drop-zone.d.ts +1 -1
  467. package/dist/components/media/file-icon/file-icon.class.d.ts +5 -5
  468. package/dist/components/media/file-icon/file-icon.d.ts +1 -1
  469. package/dist/components/media/file-icon/file-type-metadata.d.ts +3 -3
  470. package/dist/components/media/file-input/file-input.class.d.ts +16 -16
  471. package/dist/components/media/file-input/file-input.d.ts +1 -1
  472. package/dist/components/media/file-input/file-intake.d.ts +6 -6
  473. package/dist/components/media/flag/flag-url-resolver.d.ts +1 -1
  474. package/dist/components/media/flag/flag.class.d.ts +4 -4
  475. package/dist/components/media/flag/flag.d.ts +1 -1
  476. package/dist/components/media/image-comparer/image-comparer.class.d.ts +3 -3
  477. package/dist/components/media/image-viewer/image-viewer-limits.d.ts +1 -1
  478. package/dist/components/media/image-viewer/image-viewer-panorama.d.ts +2 -2
  479. package/dist/components/media/image-viewer/image-viewer.class.d.ts +11 -11
  480. package/dist/components/media/image-viewer/image-viewer.d.ts +1 -1
  481. package/dist/components/media/index.d.ts +1 -1
  482. package/dist/components/media/index.js +1 -1
  483. package/dist/components/media/lightbox/lightbox-types.d.ts +2 -2
  484. package/dist/components/media/lightbox/lightbox.class.d.ts +9 -9
  485. package/dist/components/media/lightbox/lightbox.d.ts +1 -1
  486. package/dist/components/media/map/map-anchor-controller.js +1 -1
  487. package/dist/components/media/map/map-anchor-options.d.ts +3 -3
  488. package/dist/components/media/map/map-anchor-seam.js +1 -0
  489. package/dist/components/media/map/map-anchor.class.d.ts +79 -0
  490. package/dist/components/media/map/map-anchor.class.js +3 -0
  491. package/dist/components/media/map/map-anchor.d.ts +1 -0
  492. package/dist/components/media/map/map-anchor.js +1 -0
  493. package/dist/components/media/map/map-anchor.styles.js +1 -0
  494. package/dist/components/media/map/map-basemap-order.js +1 -0
  495. package/dist/components/media/map/map-camera.d.ts +9 -9
  496. package/dist/components/media/map/map-construction-scheduler.d.ts +5 -5
  497. package/dist/components/media/map/map-control-options.d.ts +16 -16
  498. package/dist/components/media/map/map-data-layer-model.d.ts +18 -18
  499. package/dist/components/media/map/map-drawing.d.ts +4 -4
  500. package/dist/components/media/map/map-empty-style.d.ts +1 -1
  501. package/dist/components/media/map/map-feature-state-router.d.ts +5 -5
  502. package/dist/components/media/map/map-feature-state.d.ts +4 -4
  503. package/dist/components/media/map/map-geojson-diff.d.ts +4 -4
  504. package/dist/components/media/map/map-hit-test.d.ts +4 -4
  505. package/dist/components/media/map/map-image-admission.d.ts +3 -3
  506. package/dist/components/media/map/map-image-export-error.d.ts +1 -1
  507. package/dist/components/media/map/map-image-export.d.ts +4 -4
  508. package/dist/components/media/map/map-image-provider.d.ts +9 -9
  509. package/dist/components/media/map/map-images.d.ts +4 -4
  510. package/dist/components/media/map/map-interaction-options.d.ts +8 -8
  511. package/dist/components/media/map/map-layer-order.js +1 -1
  512. package/dist/components/media/map/map-loader.d.ts +25 -25
  513. package/dist/components/media/map/map-overlay-admission.d.ts +1 -1
  514. package/dist/components/media/map/map-owned-features.js +1 -1
  515. package/dist/components/media/map/map-style-override-admission.d.ts +8 -5
  516. package/dist/components/media/map/map-style-override-admission.js +1 -1
  517. package/dist/components/media/map/map-style-value.d.ts +1 -1
  518. package/dist/components/media/map/map-vector-style.d.ts +3 -3
  519. package/dist/components/media/map/map.class.d.ts +125 -107
  520. package/dist/components/media/map/map.class.js +4 -3
  521. package/dist/components/media/map/map.d.ts +1 -1
  522. package/dist/components/media/map/map.styles.js +1 -1
  523. package/dist/components/media/media-card/media-card.class.d.ts +3 -3
  524. package/dist/components/media/media-card/media-card.d.ts +1 -1
  525. package/dist/components/media/pan-zoom/pan-zoom.class.d.ts +5 -5
  526. package/dist/components/media/qr-code/qr-code.class.d.ts +6 -6
  527. package/dist/components/media/qr-code/qr-code.d.ts +1 -1
  528. package/dist/components/media/sequence-playback/sequence-playback.class.d.ts +13 -13
  529. package/dist/components/media/sequence-playback/sequence-playback.d.ts +1 -1
  530. package/dist/components/media/video/video.class.d.ts +34 -34
  531. package/dist/components/media/video/video.d.ts +1 -1
  532. package/dist/components/media/video-playlist/video-playlist.class.d.ts +8 -8
  533. package/dist/components/media/video-playlist/video-playlist.d.ts +1 -1
  534. package/dist/components/media/zoomable-frame/zoomable-frame.class.d.ts +15 -15
  535. package/dist/components/overlays/alert/alert.class.d.ts +6 -6
  536. package/dist/components/overlays/alert/alert.d.ts +1 -1
  537. package/dist/components/overlays/badge/badge.class.d.ts +3 -3
  538. package/dist/components/overlays/badge/badge.d.ts +1 -1
  539. package/dist/components/overlays/badge/tag.class.d.ts +5 -5
  540. package/dist/components/overlays/badge/tag.d.ts +1 -1
  541. package/dist/components/overlays/callout/callout.class.d.ts +4 -4
  542. package/dist/components/overlays/callout/callout.d.ts +1 -1
  543. package/dist/components/overlays/chip/chip-group.d.ts +1 -1
  544. package/dist/components/overlays/chip/chip.class.d.ts +6 -6
  545. package/dist/components/overlays/chip/chip.d.ts +1 -1
  546. package/dist/components/overlays/context-menu/context-menu.class.d.ts +6 -6
  547. package/dist/components/overlays/context-menu/context-menu.d.ts +1 -1
  548. package/dist/components/overlays/dialog/confirm.d.ts +5 -5
  549. package/dist/components/overlays/dialog/dialog.class.d.ts +8 -8
  550. package/dist/components/overlays/dialog/dialog.class.js +1 -1
  551. package/dist/components/overlays/dialog/dialog.d.ts +1 -1
  552. package/dist/components/overlays/drawer/drawer.class.d.ts +1 -1
  553. package/dist/components/overlays/drawer/drawer.d.ts +1 -1
  554. package/dist/components/overlays/empty/empty.class.d.ts +2 -2
  555. package/dist/components/overlays/empty/empty.d.ts +1 -1
  556. package/dist/components/overlays/kbd/kbd.class.d.ts +3 -3
  557. package/dist/components/overlays/kbd/kbd.d.ts +1 -1
  558. package/dist/components/overlays/overlay/dropdown.class.d.ts +10 -10
  559. package/dist/components/overlays/overlay/dropdown.d.ts +1 -1
  560. package/dist/components/overlays/overlay/overlay-arrow.d.ts +5 -5
  561. package/dist/components/overlays/overlay/overlay-shared.d.ts +6 -6
  562. package/dist/components/overlays/overlay/popover.class.d.ts +14 -14
  563. package/dist/components/overlays/overlay/popover.d.ts +1 -1
  564. package/dist/components/overlays/overlay/tooltip.class.d.ts +5 -5
  565. package/dist/components/overlays/overlay/tooltip.d.ts +1 -1
  566. package/dist/components/overlays/popup/popup.class.d.ts +20 -20
  567. package/dist/components/overlays/popup/popup.d.ts +1 -1
  568. package/dist/components/overlays/progress/progress-bar.class.d.ts +1 -1
  569. package/dist/components/overlays/progress/progress-bar.d.ts +1 -1
  570. package/dist/components/overlays/progress/progress-base.d.ts +6 -6
  571. package/dist/components/overlays/progress/progress-ring.class.d.ts +2 -2
  572. package/dist/components/overlays/progress/progress-ring.d.ts +1 -1
  573. package/dist/components/overlays/rating/rating.class.d.ts +10 -10
  574. package/dist/components/overlays/rating/rating.d.ts +1 -1
  575. package/dist/components/overlays/skeleton/skeleton.class.d.ts +1 -1
  576. package/dist/components/overlays/skeleton/skeleton.d.ts +1 -1
  577. package/dist/components/overlays/spinner/spinner.d.ts +1 -1
  578. package/dist/components/overlays/toast/toast-item.class.d.ts +6 -6
  579. package/dist/components/overlays/toast/toast-item.d.ts +1 -1
  580. package/dist/components/overlays/toast/toast.class.d.ts +7 -7
  581. package/dist/components/overlays/toast/toast.d.ts +1 -1
  582. package/dist/components/overlays/toast/toaster.d.ts +2 -2
  583. package/dist/components/retrieval/chunk-inspector/chunk-inspector.class.d.ts +11 -11
  584. package/dist/components/retrieval/chunk-inspector/chunk-inspector.d.ts +1 -1
  585. package/dist/components/retrieval/citation-badge/citation-badge.class.d.ts +1 -1
  586. package/dist/components/retrieval/citation-badge/citation-badge.d.ts +1 -1
  587. package/dist/components/retrieval/claim-evidence/claim-evidence.class.d.ts +5 -5
  588. package/dist/components/retrieval/claim-evidence/claim-evidence.d.ts +1 -1
  589. package/dist/components/retrieval/community-card/community-card.class.d.ts +4 -4
  590. package/dist/components/retrieval/community-card/community-card.d.ts +1 -1
  591. package/dist/components/retrieval/embedding-explorer/embedding-explorer-data.d.ts +4 -4
  592. package/dist/components/retrieval/embedding-explorer/embedding-explorer.class.d.ts +3 -3
  593. package/dist/components/retrieval/embedding-explorer/embedding-explorer.d.ts +1 -1
  594. package/dist/components/retrieval/entity-card/entity-card.class.d.ts +7 -7
  595. package/dist/components/retrieval/entity-card/entity-card.d.ts +1 -1
  596. package/dist/components/retrieval/entity-chip/entity-chip.class.d.ts +2 -2
  597. package/dist/components/retrieval/entity-chip/entity-chip.d.ts +1 -1
  598. package/dist/components/retrieval/entity-dossier/entity-dossier.class.d.ts +10 -10
  599. package/dist/components/retrieval/entity-dossier/entity-dossier.d.ts +1 -1
  600. package/dist/components/retrieval/graph/graph-loader.d.ts +1 -1
  601. package/dist/components/retrieval/graph/graph-model.d.ts +16 -16
  602. package/dist/components/retrieval/graph/graph.class.d.ts +20 -20
  603. package/dist/components/retrieval/graph/graph.d.ts +1 -1
  604. package/dist/components/retrieval/graph-legend/graph-legend.class.d.ts +4 -4
  605. package/dist/components/retrieval/graph-legend/graph-legend.d.ts +1 -1
  606. package/dist/components/retrieval/grounding-summary/grounding-summary.class.d.ts +5 -5
  607. package/dist/components/retrieval/grounding-summary/grounding-summary.d.ts +1 -1
  608. package/dist/components/retrieval/ingestion-queue/ingestion-queue.class.d.ts +9 -9
  609. package/dist/components/retrieval/ingestion-queue/ingestion-queue.d.ts +1 -1
  610. package/dist/components/retrieval/knowledge-base/knowledge-base.class.d.ts +16 -16
  611. package/dist/components/retrieval/knowledge-base/knowledge-base.d.ts +1 -1
  612. package/dist/components/retrieval/knowledge-base-admin/knowledge-base-admin.class.d.ts +3 -3
  613. package/dist/components/retrieval/knowledge-base-admin/knowledge-base-admin.d.ts +1 -1
  614. package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.d.ts +11 -11
  615. package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.d.ts +1 -1
  616. package/dist/components/retrieval/memory-panel/memory-panel.class.d.ts +10 -10
  617. package/dist/components/retrieval/memory-panel/memory-panel.d.ts +1 -1
  618. package/dist/components/retrieval/mind-map/mind-map-layout.d.ts +6 -6
  619. package/dist/components/retrieval/mind-map/mind-map.class.d.ts +1 -1
  620. package/dist/components/retrieval/mind-map/mind-map.d.ts +1 -1
  621. package/dist/components/retrieval/neighbor-list/neighbor-list.class.d.ts +13 -13
  622. package/dist/components/retrieval/neighbor-list/neighbor-list.class.js +2 -2
  623. package/dist/components/retrieval/neighbor-list/neighbor-list.d.ts +1 -1
  624. package/dist/components/retrieval/node-palette/node-palette.class.d.ts +5 -5
  625. package/dist/components/retrieval/node-palette/node-palette.d.ts +1 -1
  626. package/dist/components/retrieval/path-strip/path-strip.class.d.ts +1 -1
  627. package/dist/components/retrieval/path-strip/path-strip.d.ts +1 -1
  628. package/dist/components/retrieval/provenance-panel/provenance-panel.class.d.ts +3 -3
  629. package/dist/components/retrieval/provenance-panel/provenance-panel.d.ts +1 -1
  630. package/dist/components/retrieval/rag-answer/rag-answer.class.d.ts +7 -7
  631. package/dist/components/retrieval/rag-answer/rag-answer.d.ts +1 -1
  632. package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.class.d.ts +4 -4
  633. package/dist/components/retrieval/rag-eval-dashboard/rag-eval-dashboard.d.ts +1 -1
  634. package/dist/components/retrieval/research-progress/research-progress.class.d.ts +6 -6
  635. package/dist/components/retrieval/research-progress/research-progress.d.ts +1 -1
  636. package/dist/components/retrieval/retrieval-compare/retrieval-compare.class.d.ts +4 -4
  637. package/dist/components/retrieval/retrieval-compare/retrieval-compare.d.ts +1 -1
  638. package/dist/components/retrieval/retrieval-results/retrieval-results.class.d.ts +8 -8
  639. package/dist/components/retrieval/retrieval-results/retrieval-results.d.ts +1 -1
  640. package/dist/components/retrieval/retrieval-search/retrieval-search.d.ts +1 -1
  641. package/dist/components/retrieval/retrieval-trace/retrieval-trace.class.d.ts +14 -14
  642. package/dist/components/retrieval/retrieval-trace/retrieval-trace.d.ts +1 -1
  643. package/dist/components/retrieval/source-card/source-card.class.d.ts +3 -3
  644. package/dist/components/retrieval/source-card/source-card.d.ts +1 -1
  645. package/dist/components/retrieval/source-list/source-list.class.d.ts +1 -1
  646. package/dist/components/retrieval/source-list/source-list.d.ts +1 -1
  647. package/dist/components/retrieval/source-picker/source-picker.class.d.ts +4 -4
  648. package/dist/components/retrieval/source-picker/source-picker.d.ts +1 -1
  649. package/dist/components/utility/copy-button/copy-button.class.d.ts +8 -8
  650. package/dist/components/utility/copy-button/copy-button.d.ts +1 -1
  651. package/dist/components/utility/diff-view/diff-line-diff.d.ts +1 -1
  652. package/dist/components/utility/diff-view/diff-view.class.d.ts +3 -3
  653. package/dist/components/utility/diff-view/diff-view.d.ts +1 -1
  654. package/dist/components/utility/divider/divider.class.d.ts +1 -1
  655. package/dist/components/utility/divider/divider.d.ts +1 -1
  656. package/dist/components/utility/export-button/csv.d.ts +2 -2
  657. package/dist/components/utility/export-button/export-button.class.d.ts +11 -11
  658. package/dist/components/utility/export-button/export-button.d.ts +1 -1
  659. package/dist/components/utility/format/format-bytes.d.ts +1 -1
  660. package/dist/components/utility/format/format-date.class.d.ts +1 -1
  661. package/dist/components/utility/format/format-date.d.ts +1 -1
  662. package/dist/components/utility/format/format-number.class.d.ts +2 -2
  663. package/dist/components/utility/format/format-number.d.ts +1 -1
  664. package/dist/components/utility/format/format-options.d.ts +4 -4
  665. package/dist/components/utility/format/relative-time.d.ts +1 -1
  666. package/dist/components/utility/icon/icon-library.d.ts +2 -2
  667. package/dist/components/utility/icon/icon.class.d.ts +10 -10
  668. package/dist/components/utility/icon/icon.d.ts +1 -1
  669. package/dist/components/utility/intersection-observer/intersection-observer.class.d.ts +1 -1
  670. package/dist/components/utility/intersection-observer/intersection-observer.d.ts +1 -1
  671. package/dist/components/utility/json-viewer/json-viewer.class.d.ts +5 -5
  672. package/dist/components/utility/json-viewer/json-viewer.d.ts +1 -1
  673. package/dist/components/utility/known-date/known-date.class.d.ts +18 -18
  674. package/dist/components/utility/known-date/known-date.d.ts +1 -1
  675. package/dist/components/utility/live-region/live-region.class.d.ts +1 -1
  676. package/dist/components/utility/live-region/live-region.d.ts +1 -1
  677. package/dist/components/utility/mention-popover/mention-popover.class.d.ts +9 -9
  678. package/dist/components/utility/mention-popover/mention-popover.d.ts +1 -1
  679. package/dist/components/utility/mutation-observer/mutation-observer.class.d.ts +1 -1
  680. package/dist/components/utility/mutation-observer/mutation-observer.d.ts +1 -1
  681. package/dist/components/utility/poll-status/poll-status.class.d.ts +1 -1
  682. package/dist/components/utility/poll-status/poll-status.d.ts +1 -1
  683. package/dist/components/utility/random-content/random-content.class.d.ts +4 -4
  684. package/dist/components/utility/random-content/random-content.d.ts +1 -1
  685. package/dist/components/utility/resize-observer/resize-observer.d.ts +1 -1
  686. package/dist/components/utility/tour/tour.class.d.ts +8 -8
  687. package/dist/components/utility/tour/tour.d.ts +1 -1
  688. package/dist/components/utility/visually-hidden/visually-hidden.d.ts +1 -1
  689. package/dist/components/viewers/archive-viewer/archive-viewer.class.d.ts +3 -3
  690. package/dist/components/viewers/archive-viewer/archive-viewer.d.ts +1 -1
  691. package/dist/components/viewers/calendar-viewer/calendar-loader.d.ts +1 -1
  692. package/dist/components/viewers/calendar-viewer/calendar-viewer.class.d.ts +6 -6
  693. package/dist/components/viewers/calendar-viewer/calendar-viewer.d.ts +1 -1
  694. package/dist/components/viewers/contact-viewer/contact-viewer.class.d.ts +4 -4
  695. package/dist/components/viewers/contact-viewer/contact-viewer.d.ts +1 -1
  696. package/dist/components/viewers/contact-viewer/vcard.d.ts +1 -1
  697. package/dist/components/viewers/csv-viewer/csv-viewer.class.d.ts +7 -7
  698. package/dist/components/viewers/csv-viewer/csv-viewer.d.ts +1 -1
  699. package/dist/components/viewers/dataset-viewer/dataset-viewer.class.d.ts +8 -8
  700. package/dist/components/viewers/dataset-viewer/dataset-viewer.d.ts +1 -1
  701. package/dist/components/viewers/document-compare/document-compare.class.d.ts +15 -15
  702. package/dist/components/viewers/document-compare/document-compare.d.ts +1 -1
  703. package/dist/components/viewers/document-preview/document-preview.class.d.ts +1 -1
  704. package/dist/components/viewers/document-preview/document-preview.d.ts +1 -1
  705. package/dist/components/viewers/document-viewer/anchors.d.ts +7 -7
  706. package/dist/components/viewers/document-viewer/document-viewer.class.d.ts +9 -9
  707. package/dist/components/viewers/document-viewer/document-viewer.d.ts +1 -1
  708. package/dist/components/viewers/docx-viewer/docx-viewer.class.d.ts +4 -4
  709. package/dist/components/viewers/docx-viewer/docx-viewer.d.ts +1 -1
  710. package/dist/components/viewers/ebook-viewer/ebook-viewer.class.d.ts +2 -2
  711. package/dist/components/viewers/ebook-viewer/ebook-viewer.d.ts +1 -1
  712. package/dist/components/viewers/email-viewer/email-loader.d.ts +2 -2
  713. package/dist/components/viewers/email-viewer/email-viewer.class.d.ts +3 -3
  714. package/dist/components/viewers/email-viewer/email-viewer.d.ts +1 -1
  715. package/dist/components/viewers/geojson-view/geojson-viewer.class.d.ts +2 -2
  716. package/dist/components/viewers/geojson-view/geojson-viewer.d.ts +1 -1
  717. package/dist/components/viewers/highlight-layer/highlight-layer.class.d.ts +1 -1
  718. package/dist/components/viewers/highlight-layer/highlight-layer.d.ts +1 -1
  719. package/dist/components/viewers/html-viewer/html-viewer.class.d.ts +5 -5
  720. package/dist/components/viewers/html-viewer/html-viewer.d.ts +1 -1
  721. package/dist/components/viewers/include/include-resource.d.ts +1 -1
  722. package/dist/components/viewers/include/include.class.d.ts +2 -2
  723. package/dist/components/viewers/include/include.d.ts +1 -1
  724. package/dist/components/viewers/model-viewer/model-viewer-loader.js +1 -1
  725. package/dist/components/viewers/model-viewer/model-viewer.class.d.ts +6 -6
  726. package/dist/components/viewers/model-viewer/model-viewer.class.js +1 -1
  727. package/dist/components/viewers/notebook-viewer/notebook-viewer.class.d.ts +3 -3
  728. package/dist/components/viewers/notebook-viewer/notebook-viewer.d.ts +1 -1
  729. package/dist/components/viewers/page-rail/page-rail.class.d.ts +5 -5
  730. package/dist/components/viewers/page-rail/page-rail.d.ts +1 -1
  731. package/dist/components/viewers/page-rail/page-viewer-snapshot.d.ts +2 -2
  732. package/dist/components/viewers/pdf-viewer/pdf-viewer.class.d.ts +4 -4
  733. package/dist/components/viewers/pdf-viewer/pdf-viewer.d.ts +1 -1
  734. package/dist/components/viewers/pptx-viewer/pptx-loader.d.ts +5 -5
  735. package/dist/components/viewers/pptx-viewer/pptx-viewer.class.d.ts +18 -18
  736. package/dist/components/viewers/pptx-viewer/pptx-viewer.class.js +1 -1
  737. package/dist/components/viewers/pptx-viewer/pptx-viewer.d.ts +1 -1
  738. package/dist/components/viewers/spreadsheet-viewer/spreadsheet-viewer.class.d.ts +9 -9
  739. package/dist/components/viewers/spreadsheet-viewer/spreadsheet-viewer.d.ts +1 -1
  740. package/dist/components/viewers/svg-viewer/svg-viewer.class.d.ts +1 -1
  741. package/dist/components/viewers/svg-viewer/svg-viewer.d.ts +1 -1
  742. package/dist/components/viewers/viewer-diagnostics.d.ts +3 -3
  743. package/dist/components/viewers/viewer-source.d.ts +2 -2
  744. package/dist/components/viewers/xml-viewer/xml-viewer.class.d.ts +9 -9
  745. package/dist/components/viewers/xml-viewer/xml-viewer.d.ts +1 -1
  746. package/dist/countries.d.ts +3 -3
  747. package/dist/currency.d.ts +5 -5
  748. package/dist/custom-elements-jsx.d.ts +1 -1
  749. package/dist/data-sources.d.ts +17 -17
  750. package/dist/events.d.ts +28 -28
  751. package/dist/framework-types.d.ts +4 -4
  752. package/dist/internal/a11y.d.ts +2 -2
  753. package/dist/internal/accessibility-visibility.d.ts +17 -17
  754. package/dist/internal/accessible-text-controller.js +1 -1
  755. package/dist/internal/active-element.d.ts +1 -1
  756. package/dist/internal/anchor-target.d.ts +3 -3
  757. package/dist/internal/anchored-overlay-runtime.js +1 -1
  758. package/dist/internal/announcer.d.ts +18 -18
  759. package/dist/internal/ansi.d.ts +2 -2
  760. package/dist/internal/approval-wait-until.d.ts +1 -1
  761. package/dist/internal/autoloader-tags.d.ts +1 -1
  762. package/dist/internal/autoloader-tags.js +1 -1
  763. package/dist/internal/av-metadata.d.ts +4 -4
  764. package/dist/internal/canvas-color.d.ts +1 -1
  765. package/dist/internal/catalog-picker.d.ts +1 -1
  766. package/dist/internal/clipboard.d.ts +5 -5
  767. package/dist/internal/component-loaders.generated.js +1 -1
  768. package/dist/internal/composed-tree.d.ts +2 -2
  769. package/dist/internal/converters.d.ts +10 -10
  770. package/dist/internal/css-length.d.ts +1 -1
  771. package/dist/internal/custom-element-upgrade-observer.d.ts +1 -1
  772. package/dist/internal/data-descriptors.d.ts +8 -8
  773. package/dist/internal/default-label-forwarding.js +1 -0
  774. package/dist/internal/deferred-focus-return.d.ts +5 -5
  775. package/dist/internal/definition-registry.d.ts +2 -2
  776. package/dist/internal/deprecated-alias-types.d.ts +1 -1
  777. package/dist/internal/deprecated-aliases.d.ts +1 -1
  778. package/dist/internal/direct-form-associated.d.ts +4 -4
  779. package/dist/internal/document-renderer-registry.d.ts +27 -27
  780. package/dist/internal/document-tokens.d.ts +1 -1
  781. package/dist/internal/docx-zip-admission.d.ts +1 -1
  782. package/dist/internal/drop-session-controller.d.ts +6 -6
  783. package/dist/internal/engine-3d-loader.d.ts +6 -6
  784. package/dist/internal/engine-3d.d.ts +9 -9
  785. package/dist/internal/focus-navigation.d.ts +9 -9
  786. package/dist/internal/form-associated.d.ts +20 -20
  787. package/dist/internal/form-control-element.d.ts +6 -6
  788. package/dist/internal/heading-level.d.ts +1 -1
  789. package/dist/internal/hierarchy-summary-source.js +1 -0
  790. package/dist/internal/highlight-collection.d.ts +3 -3
  791. package/dist/internal/icons.d.ts +23 -23
  792. package/dist/internal/inherited-attribute-hub.d.ts +3 -3
  793. package/dist/internal/layered-layout.d.ts +8 -8
  794. package/dist/internal/locale-loader.d.ts +1 -1
  795. package/dist/internal/localization-runtime.d.ts +7 -7
  796. package/dist/internal/localization-types.d.ts +1 -1
  797. package/dist/internal/lyra-element.d.ts +17 -17
  798. package/dist/internal/match-constraint.d.ts +1 -1
  799. package/dist/internal/model-viewer-contract.d.ts +2 -2
  800. package/dist/internal/node-type-style.d.ts +1 -1
  801. package/dist/internal/numbers.d.ts +12 -12
  802. package/dist/internal/optional-peer-capabilities.d.ts +9 -9
  803. package/dist/internal/overlay-manager.d.ts +22 -22
  804. package/dist/internal/overlay-manager.js +1 -1
  805. package/dist/internal/overlay-order.d.ts +3 -3
  806. package/dist/internal/overlay-stack.d.ts +3 -3
  807. package/dist/internal/package-metadata.js +1 -1
  808. package/dist/internal/positioner-geometry.d.ts +2 -2
  809. package/dist/internal/positioner.d.ts +34 -23
  810. package/dist/internal/positioner.js +1 -1
  811. package/dist/internal/registered-animation.d.ts +2 -2
  812. package/dist/internal/rendered-tree-traversal.d.ts +13 -13
  813. package/dist/internal/resource-loader.d.ts +7 -7
  814. package/dist/internal/root-registration-allowlist.js +1 -1
  815. package/dist/internal/safe-resource-cache.d.ts +3 -3
  816. package/dist/internal/scoped-definitions.generated.js +1 -1
  817. package/dist/internal/score-tiers.d.ts +2 -2
  818. package/dist/internal/selection-catalog.d.ts +3 -3
  819. package/dist/internal/semantic-variant.d.ts +3 -3
  820. package/dist/internal/shared-unions.d.ts +3 -3
  821. package/dist/internal/slugger.d.ts +1 -1
  822. package/dist/internal/stream-phase.d.ts +1 -1
  823. package/dist/internal/text-highlights.d.ts +4 -4
  824. package/dist/internal/text-quote.d.ts +18 -18
  825. package/dist/internal/text-viewer-target.d.ts +4 -4
  826. package/dist/internal/theme-watcher.d.ts +2 -2
  827. package/dist/internal/top-layer-escape.d.ts +1 -1
  828. package/dist/internal/typed-columns.d.ts +7 -7
  829. package/dist/internal/variant-values.d.ts +3 -3
  830. package/dist/internal/variants.d.ts +4 -4
  831. package/dist/lyra.d.ts +1 -1
  832. package/dist/ssr/all.d.ts +1 -1
  833. package/dist/ssr/all.js +1 -1
  834. package/dist/ssr.d.ts +16 -16
  835. package/dist/ssr.js +1 -1
  836. package/dist/svelte.d.ts +1 -1
  837. package/dist/testing/happy-dom-shims.d.ts +3 -3
  838. package/dist/testing/interaction-drivers.d.ts +3 -3
  839. package/dist/testing/jsdom-shims.d.ts +9 -9
  840. package/dist/testing/lyra-tag-event-map.d.ts +2 -2
  841. package/dist/testing/lyra-tag-event-map.js +1 -1
  842. package/dist/testing/wait-for-mount.d.ts +3 -3
  843. package/dist/theme/chart-palette.d.ts +2 -2
  844. package/dist/theme/gemstones-data.d.ts +2 -2
  845. package/dist/theme/look-css.d.ts +2 -2
  846. package/dist/theme/looks/data.d.ts +1 -1
  847. package/dist/theme/looks/high-contrast.d.ts +1 -1
  848. package/dist/theme/looks/material.d.ts +1 -1
  849. package/dist/theme/looks/shadcn.d.ts +1 -1
  850. package/dist/theme/looks/terminal.d.ts +1 -1
  851. package/dist/theme/options/charts.d.ts +5 -5
  852. package/dist/theme/options/elevation.d.ts +1 -1
  853. package/dist/theme/options/shape.d.ts +1 -1
  854. package/dist/theme/options/typography.d.ts +1 -1
  855. package/dist/theme/preferences.d.ts +1 -1
  856. package/dist/theme/style-ownership.d.ts +1 -1
  857. package/dist/theme/theme.d.ts +13 -13
  858. package/dist/theme/theme.js +1 -1
  859. package/dist/units.d.ts +2 -2
  860. package/dist/utilities/animation-registry.d.ts +5 -5
  861. package/dist/utilities/catalog.d.ts +1 -1
  862. package/dist/utilities/data-spatial.d.ts +9 -9
  863. package/dist/utilities/defined.d.ts +1 -1
  864. package/dist/utilities/deprecated-aliases.d.ts +1 -1
  865. package/dist/utilities/scoped-registry.d.ts +5 -5
  866. package/dist/vue.d.ts +3 -3
  867. package/llms/components/lr-locale-picker.md +11 -1
  868. package/llms/components/lr-map-anchor.md +165 -0
  869. package/llms/components/lr-map.md +83 -4
  870. package/llms/components/lr-pptx-viewer.md +9 -5
  871. package/llms/components/lr-tree.md +4 -0
  872. package/llms/index.md +4 -3
  873. package/llms/peers.md +1 -1
  874. package/llms/shared/events-and-types.md +4 -0
  875. package/llms/shared/imports-and-registration.md +1 -1
  876. package/llms/shared/testing-and-utilities.md +6 -1
  877. package/llms/shared.md +11 -2
  878. package/llms.txt +3 -3
  879. package/package.json +14 -7
  880. package/registrations.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,81 @@
1
1
  # Changelog
2
2
 
3
+ ## 30.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 6c9751f: Wait for modular map style replacements to commit before restoring owned layers and basemap overrides. Block presentation-linked external media in PPTX slides and thumbnails while retaining embedded media. Deliver accessible-text notifications after the active render cycle so rail hover and keyboard focus do not trigger update warnings.
8
+
9
+ ### Patch Changes
10
+
11
+ - d9fe8ee: Retain map-anchor placement subscriptions across camera movement, recover failed placement sessions, and avoid repeated overflow-admission scans. Consolidate hierarchy-source, prepared-chart, and default-label helpers while preserving cancellation, accessibility, and query bounds. Correct maturity metadata for published experimental components.
12
+
13
+ Use cancellable asynchronous model preparation when the model companion supports it, retaining compatibility with older companion versions.
14
+
15
+ Shared lifecycle helpers and regenerated component metadata increase several bundle and package measurements. Advance only exceeded byte ceilings to the next 64-byte boundary; retain the existing download, unpacked-reduction, artifact, and optional-peer policies.
16
+
17
+ The current-harness Chromium quick comparison against published 30.1.0 retains all functional assertions and recorded operation counts, but reports material timing increases in dataset selection, table filtering and no-op painting, chart assignment, and select metadata painting. Chart-assignment total p95 rises from 94.0 to 147.4 ms while its median remains approximately 77 ms; table-filter no-op total median rises from 8.2 to 10.7 ms, and select metadata paint median from 11.7 to 15.0 ms. These seven-sample measurements do not isolate the cause, and no general timing improvement is claimed. Wall-clock results remain advisory; deterministic scale budgets and release A/B qualification remain required.
18
+ - Updated dependencies [074e36a]
19
+ - Updated dependencies [8b60e43]
20
+ - @aceshooting/lyra-map@1.3.1
21
+ - @aceshooting/lyra-3d@1.1.0
22
+ - @aceshooting/lyra-translations@30.2.0
23
+
24
+ ## 30.1.0
25
+
26
+ ### Minor Changes
27
+
28
+ - Add `lr-show`, `lr-after-show`, `lr-hide` and `lr-after-hide` lifecycle events to `lr-locale-picker`. Ordinary opening and closing requests can be vetoed; forced closes and superseded transitions retain consistent settled state.
29
+ - Add `styleOverrides.before` to order existing basemap layers without copying their sources or geometry. Selectors retain stable relative order, placement coordinates with owned overlays, and removing the override restores its prior position among surviving unowned layers.
30
+
31
+ The locale-picker lifecycle and basemap placement logic, declarations and generated references increase the locale-picker initial route, media family and package sizes. Only exceeded ceilings advance to the next 64-byte boundary; passing budgets, peer exclusions, lazy loading and measurement settings remain unchanged.
32
+
33
+ - 55ec21c: Add the experimental `<lr-map-anchor>` element for several independently owned panels on one `lr-map`. Each anchor holds your own live content, which is never cloned or moved, so its listeners and component state survive camera moves, off-screen hiding, style replacement and map reconnects. Each module opens, moves and closes its own anchor with `open`, `lngLat`, `close()` and a cancelable `lr-close-request` followed by `lr-close`, without affecting other anchors or the map's `anchor` slot.
34
+
35
+ - Anchors are placed like the `anchor` slot and follow the camera. They take their own `safeArea` and `boundary`, or the map's `anchorSafeArea` and `anchorBoundary` while those are unset, and stay placed through a `mapStyle` replacement.
36
+ - A `closable` anchor gets a localized close button and closes on Escape. Escape closes the anchor that contains focus first, otherwise the frontmost one. Overlapping anchors are painted with the most recently opened, focused or pressed one in front.
37
+ - Focus moves only to `[autofocus]` content or through `focusContent()`, and returns to where it came from when a focused anchor hides, closes or is removed.
38
+ - `lr-map` gains an `anchors` slot, where a direct child anchor assigns itself. Import `@aceshooting/lyra-ui/components/lr-map-anchor.js` alongside `lr-map.js`; maps without child anchors render, load and behave as before, and the placement code is still loaded only when an anchor opens.
39
+
40
+ The additional registration route, map runtime, declarations and consumer/editor metadata require small delivery-budget increases. Only exceeded media-family, initial scoped-loader, unpacked UI, packed/unpacked IDE and packed consumer core ceilings advance to the next 64-byte boundary. Existing passing limits, lazy-import boundaries and measurement settings are retained. The complete non-optional packed consumer graph measures 5,619,706 raw bytes across 57 files; its ceiling advances to 5,619,712 bytes, the next 64-byte boundary, with unchanged peer exclusions and no binary allowance.
41
+ - 1e233d8: Add the opt-in `shiftCrossAxis` positioning option to keep a popup inside its clipping boundary along both axes. Map anchors use it to stay fully inside changing safe areas and custom boundaries, keeping their close actions reachable without moving the map camera.
42
+ - 1e233d8: Expose `geolocate-control` and `attribution-content` map parts so applications can offset the geolocation group and position bounded credits independently of the compact attribution toggle.
43
+
44
+ The map readiness, layout and safe-area corrections measure 343,439 gzip bytes for the media family; its reviewed ceiling advances to 343,488 bytes, the next 64-byte boundary. Other entry budgets remain unchanged.
45
+
46
+ The generated editor archive retains all four editor formats and measures 1,701,215 packed and 10,541,676 unpacked bytes with the new parts and safe-area documentation. Its two exceeded limits advance to the next 64-byte boundaries at 1,701,248 and 10,541,696 bytes; file-count and other package limits remain unchanged.
47
+
48
+ ### Patch Changes
49
+
50
+ - Keep maps ready when a style override targets a layer absent from the selected basemap. Defer its paint, layout and placement until the layer exists, discard obsolete restoration baselines, and retry after style changes while retaining rejection of invalid or conflicting resources.
51
+
52
+ - 1e233d8: Preserve scoped theme ownership when an element is frozen after its first theme application, so later theme changes still restore the original attributes and token values when the scope is removed.
53
+
54
+ The theme entry measures 13,514 gzip bytes with the ownership correction. Its reviewed ceiling advances to 13,568 bytes, the next 64-byte boundary. Other entry budgets remain unchanged.
55
+ - 1e233d8: Wait for URL style replacements to commit before reporting map readiness and restoring owned overlays, images and style overrides. URL replacements now rebuild the native basemap instead of diffing it, so unchanged responses also have a reliable completion event. This trades the native style-diff optimization for correct replacement readiness. Pending replacements can also be superseded repeatedly by inline styles without attempting to diff an unloaded basemap.
56
+ - e7ed92d: Keep text-only agent messages valid when updating or completing them without structured parts. Explicit part replacements and empty-array clears retain their existing ownership and validation rules.
57
+ - 49b43b3: Cancel obsolete file-tree reveals promptly when the listing, source mode, connection, or document changes, preventing stale focus and unresolved reveals during nested expansion.
58
+
59
+ The cancellation and selection initialization fixes measure 432,393 gzip bytes in the data family; dialog heading and overlay ownership fixes measure 152,491 in overlays; time-picker focus restoration measures 27,545 initial marginal bytes. Their three breached bundle ceilings advance to the next 64-byte boundaries (432,448, 152,512, and 27,584 bytes), preserving all passing ceilings and measurement settings.
60
+
61
+ The corresponding file-tree cancellation documentation measures 1,701,422 compressed bytes in the generated IDE package. Its packed ceiling advances to the next 64-byte boundary, 1,701,440 bytes, without changing required editor formats or any other package limit.
62
+ - 49b43b3: Keep heatmap source PNG exports available after a completed resize or theme repaint, while continuing to withhold pending, failed, and obsolete source snapshots.
63
+ - 49b43b3: Apply corrected neighbor-list provider pages before rendering so pagination and row actions share the current page without scheduling an unnecessary follow-up update.
64
+ - 1e233d8: Retain the mixed runtime observations from comparisons with 30.0.0. Earlier controlled published/current/current/published measurements did not consistently reproduce the initial chart and combobox total-time increases, although three of four comparisons still flagged smaller wait-related metrics. A fresh complete quick Chromium comparison with matched metadata and dependencies reports 11 regressed and 7 improved timing metrics out of 150. Chart total p95 rises from 111.8 to 147.9 ms; table-sort update median rises from 11.5 to 13.7 ms. Additional regressions affect table no-op frame waits and select metadata-update p95. These observed regressions do not establish a performance pass.
65
+
66
+ The table's runtime import graph is unchanged. The chart's new late-feature request checks run during untimed setup, with those features disabled in the fixture. Select changes concern initial selection and reset behavior, while positioning changes affect open popups, outside the measured closed-control metadata updates. No changed algorithmic cause was identified for these operations. With seven samples, p95 is the maximum; phase timings include scheduling and frame waits. Those limits do not erase the observations. The deterministic scale checks and the separately required A/B benchmark retain their existing thresholds.
67
+ - 1e233d8: Remove redundant closing whitespace from single-line declaration documentation, reducing the unpacked package by 4,076 bytes while preserving public types and editor documentation.
68
+ - 1e233d8: Keep closed and offscreen map anchors hidden when applications customize their public part's display layout, including important consumer declarations. Visible anchors retain the application's display styling when restored.
69
+ - e7ed92d: Keep map drawing failure handling responsive when the renderer temporarily cannot provide its canvas. Accessibility descriptions release the unavailable canvas and reconnect after the renderer recovers.
70
+ - 49b43b3: Avoid a redundant reactive update while closing the time picker and restoring focus to the original segment, while preserving public focus events.
71
+ - e487c79: Clear stale slider focus styling when a range-mode change is followed by disablement or a newer focus request, while preserving the current thumb's focus ownership.
72
+ - 49b43b3: Keep dialogs suspended while an external modal owns focus, including when a previously hidden dialog becomes visible. Restore referenced heading names when dialogs and drawers open or reconnect without including hidden or inert headings.
73
+ - e143d1c: Load the zoom, data-label and annotation add-ons for a chart whose `zoomable`, `data-labels`, `stack-totals` or `annotations` setting is assigned right after it connects, before its charting library has finished loading, instead of leaving them silently unloaded until the setting changes again.
74
+ - e143d1c: Keep progressive Markdown streaming active when a rewriting edit discards committed groups while a queued recompute still points past them, instead of freezing the progressive render for the rest of that stream.
75
+ - 49b43b3: Preserve an initial selectedOptions assignment until the select has collected its options, while honoring later value writes and retaining declarative form-reset defaults.
76
+ - 1e233d8: Prevent an open, closable map anchor from repeatedly updating when inherited text direction changes. Anchors remain responsive when switching between left-to-right and right-to-left layouts.
77
+ - @aceshooting/lyra-translations@30.1.0
78
+
3
79
  ## 30.0.0
4
80
 
5
81
  ### Major Changes
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Lyra UI: UI, made light 🪶 ✨
2
2
 
3
3
  [![CI](https://github.com/aceshooting/lyra-ui/actions/workflows/ci.yml/badge.svg)](https://github.com/aceshooting/lyra-ui/actions/workflows/ci.yml)
4
- [![Coverage](https://codecov.io/gh/aceshooting/lyra-ui/branch/main/graph/badge.svg?flag=lyra-ui)](https://codecov.io/gh/aceshooting/lyra-ui)
4
+ [![Coverage](https://img.shields.io/endpoint?url=https://aceshooting.github.io/lyra-ui/badges/coverage-lyra-ui.json)](https://codecov.io/gh/aceshooting/lyra-ui)
5
5
  [![CodeQL](https://github.com/aceshooting/lyra-ui/actions/workflows/codeql.yml/badge.svg)](https://github.com/aceshooting/lyra-ui/actions/workflows/codeql.yml)
6
6
  [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/aceshooting/lyra-ui/badge)](https://scorecard.dev/viewer/?uri=github.com/aceshooting/lyra-ui)
7
7
  [![OpenSSF Best Practices](https://www.bestpractices.dev/projects/13648/badge)](https://www.bestpractices.dev/projects/13648)
@@ -28,7 +28,7 @@
28
28
  library for accessible forms, dashboards, charts, data visualization, and AI chat/agent interfaces.
29
29
  Built with [Lit](https://lit.dev), it works with Lit, React, Vue, Angular, Svelte, and plain JavaScript.
30
30
  It is a practical open-source alternative to [Shoelace](https://shoelace.style/) and
31
- [Web Awesome](https://webawesome.com/), with 310 custom elements, native custom-element APIs,
31
+ [Web Awesome](https://webawesome.com/), with 311 custom elements, native custom-element APIs,
32
32
  tree-shakeable, granular per-component imports, its own `--lr-*` design tokens, built-in localization and RTL support,
33
33
  and no runtime dependency on either project.
34
34
 
@@ -141,7 +141,7 @@ import "@aceshooting/lyra-ui/components/lr-option.js";
141
141
  - **Family entries** (`@aceshooting/lyra-ui/components/forms`, likewise `overlays`, `agent-tools`, `charts`,
142
142
  `conversation`, `data`, `layout`, `media`, `retrieval`, `utility`, `viewers`) register every tag in the family;
143
143
  they are side-effectful and cannot be tree-shaken, so prefer granular paths.
144
- - **Everything:** `import "@aceshooting/lyra-ui/all.js"` registers 295 tags — every component **except** the 15 optional-peer
144
+ - **Everything:** `import "@aceshooting/lyra-ui/all.js"` registers 296 tags — every component **except** the 15 optional-peer
145
145
  tags (`<lr-chart>` and typed subclasses, `<lr-box-plot>`, `<lr-histogram>`, `<lr-map>`, `<lr-graph>`,
146
146
  `<lr-knowledge-graph-explorer>`, `<lr-geojson-viewer>`), which need their own subpath import.
147
147
  `<lr-flag>` with `country`/`language` also needs `@aceshooting/lyra-ui/components/media/flag/flag-peer.js` once.
@@ -317,7 +317,7 @@ A per-tag entry can register several elements (`components/lr-table.js` also def
317
317
 
318
318
  ## Components
319
319
 
320
- All 310 tags appear below: the table lists components mirroring a Web Awesome or Shoelace tag, the lists after it the
320
+ All 311 tags appear below: the table lists components mirroring a Web Awesome or Shoelace tag, the lists after it the
321
321
  original ones. Purpose and import path: [`llms/index.md`](./llms/index.md); full APIs: `llms/components/<tag>.md`
322
322
  and the [live docs](https://aceshooting.github.io/lyra-ui/).
323
323
 
@@ -407,7 +407,7 @@ and the [live docs](https://aceshooting.github.io/lyra-ui/).
407
407
  - **Evaluation:** `<lr-eval-dataset>`, `<lr-eval-run>`, `<lr-eval-result>`, `<lr-agent-eval-dashboard>`.
408
408
  - **Overlays:** `<lr-context-menu>`.
409
409
  - **Charts:** `<lr-box-plot>`, `<lr-histogram>`, `<lr-lite-chart>`, `<lr-chart-3d>`.
410
- - **Map & file-input:** `<lr-map>`, `<lr-drop-zone>`.
410
+ - **Map & file-input:** `<lr-map>`, experimental `<lr-map-anchor>`, `<lr-drop-zone>`.
411
411
  - **Conversation & Agent UI:** `<lr-chat-message>`, `<lr-message-parts>`, `<lr-chat-viewport>`, `<lr-prompt-input>`, `<lr-prompt-queue>`, `<lr-selection-toolbar>`, `<lr-realtime-session>`, `<lr-message-actions>`, `<lr-message-feedback>`, `<lr-branch-picker>`, `<lr-typing-indicator>`, `<lr-streaming-text>`, `<lr-streaming-text-core>`, `<lr-thinking-panel>`, `<lr-activity-feed>`, `<lr-task-list>`, `<lr-generation-metrics>`, `<lr-stream-status>`, `<lr-checkpoint>`, `<lr-handoff-divider>`, `<lr-code-block>`, `<lr-artifact-panel>`, `<lr-live-region>`, `<lr-chat-composer>`, `<lr-suggestion-chips>`, `<lr-emoji-picker>`, `<lr-attachment-chip>`, `<lr-attachment-trigger>`, `<lr-mention-popover>`, `<lr-tool-call-block>`, `<lr-tool-call-chip>`, `<lr-tool-result-view>`, `<lr-tool-result-dialog>`, `<lr-tool-approval-dialog>`, `<lr-confirm-bar>`, `<lr-tool-param-form>`, `<lr-change-review>`, `<lr-agent-question>`, `<lr-permission-rules>`, `<lr-permission-grant>`, `<lr-connector-manager>`, `<lr-background-runs>`, `<lr-research-progress>`, `<lr-budget-meter>`, `<lr-tool-select-dialog>`, `<lr-command-palette>`, `<lr-widget-renderer>`, `<lr-json-viewer>`, `<lr-citation-badge>`, `<lr-source-list>`, `<lr-source-card>`, `<lr-conversation-item>`, `<lr-virtual-list>`, `<lr-thread-list>`, `<lr-app-rail>`, `<lr-app-rail-item>`, `<lr-app-rail-group>`, `<lr-navigation-menu>`, `<lr-navigation-menu-item>`, `<lr-menubar>`, `<lr-menubar-item>`, `<lr-responsive-panel>`, `<lr-dock-panel>`, `<lr-model-select>`, `<lr-model-settings-panel>`, `<lr-voice-picker>`, `<lr-audio-visualizer>`, `<lr-push-to-talk>`, `<lr-transcript-feed>`, `<lr-context-meter>`, `<lr-usage-badge>`, `<lr-control-group>`, `<lr-reorder-list>`, `<lr-reorder-item>`, `<lr-pan-zoom>`, `<lr-chip>`, `<lr-chip-group>`, `<lr-kbd>`, `<lr-result-card>`, `<lr-result-field>`, `<lr-document-preview>`, `<lr-document-viewer>`, `<lr-svg-viewer>`, `<lr-image-viewer>`, `<lr-highlight-layer>`, `<lr-html-viewer>`, `<lr-xml-viewer>`, `<lr-dataset-viewer>`, `<lr-contact-viewer>`, `<lr-pdf-viewer>`, `<lr-page-rail>`, `<lr-av-player>`, `<lr-notebook-viewer>`, `<lr-spreadsheet-viewer>`, `<lr-csv-viewer>`, `<lr-geojson-viewer>`, `<lr-model-viewer>`, `<lr-docx-viewer>`, `<lr-email-viewer>`, `<lr-calendar-viewer>`, `<lr-archive-viewer>`, `<lr-ebook-viewer>`, `<lr-pptx-viewer>`, `<lr-file-icon>`, `<lr-media-card>`, `<lr-stepper>`, `<lr-segmented>`, `<lr-swatch-picker>`, `<lr-diff-view>`, `<lr-commit-card>`, `<lr-poll-status>`, `<lr-code-block-core>`, `<lr-code-editor>`, `<lr-terminal>`, `<lr-stack-trace>`, `<lr-trace-tree>`, `<lr-span-waterfall>`, `<lr-test-results>`, `<lr-env-list>`, `<lr-file-tree>`, `<lr-browser-frame>`, `<lr-compare-panel>`, `<lr-rubric-form>`, `<lr-calendar>`, `<lr-markdown-core>`.
412
412
 
413
413
  ### Citation → document recipe
@@ -1,5 +1,5 @@
1
1
  import{type AgentStreamEvent}from'../runtime.js';import{type ProviderSnapshotLimits}from'../snapshot.js';export interface AgUiLikeEvent{type:string;eventId?:string;runId?:string;messageId?:string;role?:string;delta?:unknown;toolCallId?:string;toolCallName?:string;result?:unknown;message?:string;code?:string;snapshot?:unknown;messages?:unknown[];}export interface AgUiAdapterLimits extends ProviderSnapshotLimits{maxBufferedTools:number;maxToolArgumentBytes:number;maxTextDeltaCharacters:number;}export declare const DEFAULT_AG_UI_ADAPTER_LIMITS:Readonly<AgUiAdapterLimits>;
2
- /** Stateful, bounded mapper from AG-UI records to provider-neutral stream events. */
2
+ /** Stateful, bounded mapper from AG-UI records to provider-neutral stream events.*/
3
3
  export declare class AgUiStreamAdapter{private readonly tools;private readonly limits;private generation;private sequence;constructor(limits?:Partial<AgUiAdapterLimits>);get bufferedToolCount():number;
4
- /** Clears buffers and returns the matching reducer reset boundary. */
4
+ /** Clears buffers and returns the matching reducer reset boundary.*/
5
5
  reset():AgentStreamEvent;private emit;private failure;private toolInvocation;push(event:unknown):AgentStreamEvent[];}
@@ -1,2 +1,2 @@
1
- /** Provider-neutral data contracts shared by Lyra's AI and agent components. */
1
+ /** Provider-neutral data contracts shared by Lyra's AI and agent components.*/
2
2
  export*from'./types.js';export*from'./snapshot.js';export*from'./runtime.js';export*from'./adapters/index.js';
@@ -1,17 +1,17 @@
1
1
  import type{AgentStatus,ChatMessage,ChatMessageRole,MessagePart,MessagePartInterruption,ToolInvocation}from'./types.js';export type JsonPatchOperation={op:'add'|'replace';path:string;value:unknown;}|{op:'remove';path:string;};interface StreamEventBase{
2
- /** Monotonic run/session generation. A newer generation atomically retires older events. */
2
+ /** Monotonic run/session generation. A newer generation atomically retires older events.*/
3
3
  generation:number;
4
- /** Strictly increasing cursor within `generation`; cursors at or below the applied cursor are replay. */
4
+ /** Strictly increasing cursor within `generation`; cursors at or below the applied cursor are replay.*/
5
5
  sequence:number;
6
- /** Optional transport correlation id. Idempotence is defined by generation and sequence. */
6
+ /** Optional transport correlation id. Idempotence is defined by generation and sequence.*/
7
7
  eventId?:string;}export type AgentStreamEvent=(StreamEventBase&{type:'reset';})|(StreamEventBase&{type:'run-start';runId:string;})|(StreamEventBase&{type:'stream-interrupt';runId:string;interruption:MessagePartInterruption;})|(StreamEventBase&{type:'stream-resume';runId:string;})|(StreamEventBase&{type:'run-status';runId?:string;status:AgentStatus;})|(StreamEventBase&{type:'messages-snapshot';messages:ChatMessage[];})|(StreamEventBase&{type:'message-start';message:ChatMessage;})|(StreamEventBase&{type:'message-part-upsert';messageId:string;role?:ChatMessageRole;part:MessagePart;})|(StreamEventBase&{type:'message-part-delta';messageId:string;role?:ChatMessageRole;partId:string;partType:'text'|'reasoning';delta:string;})|(StreamEventBase&{type:'message-complete';messageId:string;})|(StreamEventBase&{type:'tool-upsert';invocation:ToolInvocation;})|(StreamEventBase&{type:'state-snapshot';snapshot:unknown;})|(StreamEventBase&{type:'state-delta';patch:JsonPatchOperation[];})|(StreamEventBase&{type:'error';message:string;code?:string;});export interface AgentStreamLimits{maxMessages:number;maxPartsPerMessage:number;maxTools:number;maxDeltaCharacters:number;maxTextCharactersPerPart:number;maxIdentifierCharacters:number;maxStatusMessageCharacters:number;maxPatchOperations:number;maxSnapshotDepth:number;maxSnapshotNodes:number;maxSnapshotBytes:number;maxRetainedBytes:number;}export declare const DEFAULT_AGENT_STREAM_LIMITS:Readonly<AgentStreamLimits>;export interface AgentStreamState{
8
- /** Current run/session generation. */
8
+ /** Current run/session generation.*/
9
9
  generation:number;
10
- /** Greatest applied sequence in the current generation. */
10
+ /** Greatest applied sequence in the current generation.*/
11
11
  cursor:number;limits:Readonly<AgentStreamLimits>;runId?:string;
12
- /** Explicit transport interruption; resume events never reconnect a transport. */
12
+ /** Explicit transport interruption; resume events never reconnect a transport.*/
13
13
  interruption?:MessagePartInterruption;status:AgentStatus;messages:ChatMessage[];tools:ToolInvocation[];sharedState:unknown;error?:{message:string;code?:string;};}export declare function createAgentStreamState(limits?:Partial<AgentStreamLimits>):AgentStreamState;
14
- /** Strictly validates and owns an RFC 6902 add/replace/remove patch. */
14
+ /** Strictly validates and owns an RFC 6902 add/replace/remove patch.*/
15
15
  export declare function parseJsonPatch(value:unknown,limits?:Partial<AgentStreamLimits>):JsonPatchOperation[]|null;export declare function applySharedStatePatch(value:unknown,patch:readonly JsonPatchOperation[]):unknown;
16
16
  /**
17
17
  * Immutable provider-neutral reducer. Replay is bounded by a generation plus monotonic cursor,
@@ -1 +1 @@
1
- import{positiveInteger}from"../internal/numbers.js";import{createProviderSnapshotBudget,snapshotProviderValue}from"./snapshot.js";const DEFAULT_AGENT_STREAM_LIMITS=Object.freeze({maxMessages:512,maxPartsPerMessage:512,maxTools:256,maxDeltaCharacters:32768,maxTextCharactersPerPart:262144,maxIdentifierCharacters:1024,maxStatusMessageCharacters:8192,maxPatchOperations:256,maxSnapshotDepth:32,maxSnapshotNodes:1e4,maxSnapshotBytes:1048576,maxRetainedBytes:8388608}),usageByState=new WeakMap,FORBIDDEN_PATH_SEGMENTS=new Set(["__proto__","prototype","constructor"]),ARRAY_INDEX=/^(0|[1-9][0-9]*)$/,MESSAGE_ROLES=new Set(["user","assistant","system"]),MESSAGE_STATUSES=new Set(["sending","sent","failed","streaming"]),PART_STATES=new Set(["streaming","complete","interrupted"]),TOOL_STATUSES=new Set(["pending","running","success","error","denied","incomplete"]);function resolveLimits(limits){const resolved=Object.fromEntries(Object.entries(DEFAULT_AGENT_STREAM_LIMITS).map(([key,fallback])=>[key,positiveInteger(limits[key],fallback)]));return resolved.maxSnapshotBytes>resolved.maxRetainedBytes&&(resolved.maxSnapshotBytes=resolved.maxRetainedBytes),Object.freeze(resolved)}function emptyUsage(){return{messages:new Map,tools:new Map,sharedStateBytes:0,totalBytes:0}}function copyUsage(usage){return{messages:new Map(usage.messages),tools:new Map(usage.tools),sharedStateBytes:usage.sharedStateBytes,totalBytes:usage.totalBytes}}function createAgentStreamState(limits={}){const state={generation:0,cursor:0,limits:resolveLimits(limits),status:{kind:"idle"},messages:[],tools:[],sharedState:null};return usageByState.set(state,emptyUsage()),state}function snapshotLimits(limits,maxBytes=limits.maxSnapshotBytes){return{maxDepth:limits.maxSnapshotDepth,maxNodes:limits.maxSnapshotNodes,maxBytes,maxStringCharacters:Math.max(limits.maxTextCharactersPerPart,limits.maxStatusMessageCharacters)}}function ownValue(value,limits){const result=snapshotProviderValue(value,createProviderSnapshotBudget(snapshotLimits(limits)));return result.ok?{value:result.value,bytes:result.bytes}:null}function isRecord(value){return value!==null&&typeof value=="object"&&!Array.isArray(value)}function validIdentifier(value,limits){return typeof value=="string"&&value.length>0&&value.length<=limits.maxIdentifierCharacters}function validOptionalString(value,maximum){return value===void 0||typeof value=="string"&&value.length<=maximum}function validStatus(value,limits){return!isRecord(value)||!validIdentifier(value.kind,limits)?!1:validOptionalString(value.message,limits.maxStatusMessageCharacters)}function validDocument(value,limits){return!isRecord(value)||!validIdentifier(value.id,limits)||typeof value.name!="string"?!1:["mimeType","uri","version"].every(key=>validOptionalString(value[key],limits.maxSnapshotBytes))}const MAX_TOOL_REDACTION_PATHS=100,MAX_TOOL_REDACTION_PATH_CHARACTERS=4096;function validOptionalFiniteNumber(value){return value===void 0||typeof value=="number"&&Number.isFinite(value)}function validOptionalRedactionPaths(value){return value===void 0?!0:Array.isArray(value)&&value.length<=MAX_TOOL_REDACTION_PATHS&&value.every(path=>typeof path=="string"&&path.length<=MAX_TOOL_REDACTION_PATH_CHARACTERS)}function validTool(value,limits){return isRecord(value)?validIdentifier(value.id,limits)&&validIdentifier(value.name,limits)&&validOptionalString(value.displayName,limits.maxIdentifierCharacters)&&isRecord(value.args)&&TOOL_STATUSES.has(String(value.status))&&validOptionalString(value.error,limits.maxStatusMessageCharacters)&&validOptionalFiniteNumber(value.startedAt)&&validOptionalFiniteNumber(value.endedAt)&&validOptionalRedactionPaths(value.redactedFields):!1}function validInterruption(value,limits){return isRecord(value)&&typeof value.resumable=="boolean"&&validOptionalString(value.reason,limits.maxStatusMessageCharacters)}function validPart(value,limits){if(!isRecord(value)||!validIdentifier(value.id,limits)||typeof value.type!="string"||value.state!==void 0&&!PART_STATES.has(String(value.state))||value.interruption!==void 0&&!validInterruption(value.interruption,limits)||value.metadata!==void 0&&!isRecord(value.metadata))return!1;switch(value.type){case"text":case"reasoning":return typeof value.text=="string"&&value.text.length<=limits.maxTextCharactersPerPart;case"tool-call":return validTool(value.invocation,limits);case"tool-result":{if(!validIdentifier(value.invocationId,limits)||!validOptionalString(value.name,limits.maxIdentifierCharacters))return!1;const hasResult=Object.hasOwn(value,"result");return Object.hasOwn(value,"error")?typeof value.error=="string"&&value.error.length<=limits.maxStatusMessageCharacters:hasResult}case"citation":return isRecord(value.citation)&&validIdentifier(value.citation.id,limits);case"attachment":return validDocument(value.document,limits);case"data":{const hasData=Object.hasOwn(value,"data"),hasWidget=Object.hasOwn(value,"widget");return hasData!==hasWidget&&validOptionalString(value.name,limits.maxIdentifierCharacters)}case"audio":return["src","transcript","mimeType"].every(key=>validOptionalString(value[key],limits.maxSnapshotBytes));case"error":return typeof value.message=="string"&&value.message.length<=limits.maxStatusMessageCharacters&&validOptionalString(value.code,limits.maxIdentifierCharacters)&&(value.retryable===void 0||typeof value.retryable=="boolean");default:return!1}}function ownedPart(value,limits){const owned=ownValue(value,limits);return owned&&validPart(owned.value,limits)?owned:null}function validMessage(value,limits){return!(!isRecord(value)||!validIdentifier(value.id,limits)||!MESSAGE_ROLES.has(value.role)||value.status!==void 0&&!MESSAGE_STATUSES.has(String(value.status))||value.timestamp!==void 0&&typeof value.timestamp!="string"||!validOptionalString(value.text,limits.maxTextCharactersPerPart)||value.metadata!==void 0&&!isRecord(value.metadata)||value.attachments!==void 0&&(!Array.isArray(value.attachments)||!value.attachments.every(item=>validDocument(item,limits)))||value.parts!==void 0&&(!Array.isArray(value.parts)||value.parts.length>limits.maxPartsPerMessage||!value.parts.every(part=>validPart(part,limits))))}function ownedMessage(value,limits){const owned=ownValue(value,limits);return owned&&validMessage(owned.value,limits)?owned:null}function ownedTool(value,limits){const owned=ownValue(value,limits);return owned&&validTool(owned.value,limits)?owned:null}function usageFor(state){const cached=usageByState.get(state);if(cached)return cached;const usage=emptyUsage();for(const message of state.messages){const bytes=ownValue(message,state.limits)?.bytes??state.limits.maxRetainedBytes;usage.messages.set(message.id,bytes),usage.totalBytes+=bytes}for(const tool of state.tools){const bytes=ownValue(tool,state.limits)?.bytes??state.limits.maxRetainedBytes;usage.tools.set(tool.id,bytes),usage.totalBytes+=bytes}const shared=ownValue(state.sharedState,state.limits);return usage.sharedStateBytes=shared?.bytes??state.limits.maxRetainedBytes,usage.totalBytes+=usage.sharedStateBytes,usageByState.set(state,usage),usage}function replaceUsageEntry(usage,collection,id,bytes){const map=usage[collection];usage.totalBytes-=map.get(id)??0,map.set(id,bytes),usage.totalBytes+=bytes}function commit(state,next,usage,cursor){if(usage.totalBytes>state.limits.maxRetainedBytes)return failEvent(state,cursor,"Retained stream state exceeds the configured limit.","stream_limit_exceeded");const committed={...next,generation:cursor.generation,cursor:cursor.sequence};return usageByState.set(committed,usage),committed}function failEvent(state,cursor,message,code){const failed={...state,...cursor?{generation:cursor.generation,cursor:cursor.sequence}:{},status:{kind:"error",message},error:{message,code}};return usageByState.set(failed,usageFor(state)),failed}function pointerSegments(path){if(path==="")return[];if(!path.startsWith("/"))return null;const rawSegments=path.slice(1).split("/");if(rawSegments.some(segment=>/~(?:[^01]|$)/.test(segment)))return null;const segments=rawSegments.map(segment=>segment.replace(/~1/g,"/").replace(/~0/g,"~"));return segments.some(segment=>FORBIDDEN_PATH_SEGMENTS.has(segment))?null:segments}function validPatchKeys(record,operation){const expected=operation==="remove"?["op","path"]:["op","path","value"],keys=Object.keys(record).sort();return keys.length===expected.length&&keys.every((key,index)=>key===expected.sort()[index])}function parseJsonPatch(value,limits={}){const resolved=resolveLimits(limits),owned=ownValue(value,resolved);if(!owned||!Array.isArray(owned.value)||owned.value.length>resolved.maxPatchOperations)return null;const operations=[];for(const candidate of owned.value){if(!isRecord(candidate))return null;const operation=candidate.op,path=candidate.path;if(operation!=="add"&&operation!=="replace"&&operation!=="remove"||typeof path!="string"||pointerSegments(path)===null||!validPatchKeys(candidate,operation))return null;operations.push(operation==="remove"?{op:operation,path}:{op:operation,path,value:candidate.value})}return operations}function arrayIndex(segment){if(!ARRAY_INDEX.test(segment))return null;const index=Number(segment);return Number.isSafeInteger(index)?index:null}function applyPatchOperation(root,operation){const segments=pointerSegments(operation.path);if(!segments)return root;if(!segments.length)return operation.op==="remove"?null:operation.value;let parent=root;for(const segment of segments.slice(0,-1))if(Array.isArray(parent)){const index=arrayIndex(segment);if(index===null||index>=parent.length)return root;parent=parent[index]}else if(isRecord(parent)){if(!Object.hasOwn(parent,segment))return root;parent=parent[segment]}else return root;const key=segments.at(-1);if(key===void 0)return root;if(Array.isArray(parent)){if(key==="-")return operation.op==="add"&&parent.push(operation.value),root;const index=arrayIndex(key);return index===null||(operation.op==="add"?index<=parent.length&&parent.splice(index,0,operation.value):operation.op==="remove"?index<parent.length&&parent.splice(index,1):index<parent.length&&(parent[index]=operation.value)),root}return isRecord(parent)&&(operation.op==="add"?parent[key]=operation.value:operation.op==="remove"?Object.hasOwn(parent,key)&&delete parent[key]:Object.hasOwn(parent,key)&&(parent[key]=operation.value)),root}function applySharedStatePatch(value,patch){const limits=DEFAULT_AGENT_STREAM_LIMITS,root=ownValue(value,limits),operations=parseJsonPatch(patch,limits);if(!root)return null;if(!operations)return root.value;let next=root.value;for(const operation of operations)next=applyPatchOperation(next,operation);return next}function baseCursor(event){const generation=event.generation,sequence=event.sequence;return typeof generation=="number"&&Number.isSafeInteger(generation)&&generation>=0&&typeof sequence=="number"&&Number.isSafeInteger(sequence)&&sequence>0?{generation,sequence}:null}function shouldIgnore(state,type,cursor){return type==="run-start"?cursor.generation<=state.generation:type==="reset"?cursor.generation<state.generation||cursor.generation===state.generation&&cursor.sequence<=state.cursor:cursor.generation!==state.generation||cursor.sequence<=state.cursor}function reduceAgentStream(state,event){const eventSnapshot=snapshotProviderValue(event,createProviderSnapshotBudget(snapshotLimits(state.limits)));if(!eventSnapshot.ok)return eventSnapshot.failure==="limit"?failEvent(state,void 0,"Stream event exceeds the configured limit.","stream_limit_exceeded"):failEvent(state,void 0,"Stream event is not valid serializable data.","invalid_stream_event");const source=eventSnapshot.value;if(!isRecord(source))return failEvent(state,void 0,"Stream event is not a record.","invalid_stream_event");const cursor=baseCursor(source);if(!cursor||typeof source.type!="string")return failEvent(state,void 0,"Stream event generation, sequence, or type is invalid.","invalid_stream_event");if(shouldIgnore(state,source.type,cursor))return state;const usage=copyUsage(usageFor(state));switch(source.type){case"reset":{const reset=createAgentStreamState(state.limits);return commit(state,reset,emptyUsage(),cursor)}case"run-start":{if(!validIdentifier(source.runId,state.limits))return failEvent(state,cursor,"Run start has an invalid run id.","invalid_stream_event");const started=createAgentStreamState(state.limits);return started.runId=source.runId,started.status={kind:"running"},commit(state,started,emptyUsage(),cursor)}case"stream-interrupt":case"stream-resume":{if(source.runId!==state.runId||!state.runId)return state;const interrupting=source.type==="stream-interrupt";if(interrupting&&!validInterruption(source.interruption,state.limits))return failEvent(state,cursor,"Stream interruption has an invalid shape.","invalid_stream_event");if(!interrupting&&state.interruption?.resumable!==!0)return state;const interruption=interrupting?source.interruption:void 0,messages=[];for(const current of state.messages){const parts=current.parts?.map(part=>{if(interrupting)return part.state==="streaming"?{...part,state:"interrupted",interruption}:part;if(part.state!=="interrupted"||part.interruption?.resumable!==!0)return part;const{interruption:_interruption,...resumed}=part;return{...resumed,state:"streaming"}}),message=ownedMessage({...current,...parts?{parts}:{}},state.limits);if(!message)return failEvent(state,cursor,"Interrupted message exceeds the configured limit.","stream_limit_exceeded");messages.push(message.value),replaceUsageEntry(usage,"messages",message.value.id,message.bytes)}return commit(state,{...state,messages,interruption},usage,cursor)}case"run-status":{if(!validStatus(source.status,state.limits)||source.runId!==void 0&&!validIdentifier(source.runId,state.limits))return failEvent(state,cursor,"Run status has an invalid shape.","invalid_stream_event");const status=source.status,error=status.kind==="error"?{message:status.message??state.error?.message??"Agent run failed",...state.error?.code&&(!status.message||status.message===state.error.message)?{code:state.error.code}:{}}:void 0;return commit(state,{...state,runId:source.runId??state.runId,status,error},usage,cursor)}case"messages-snapshot":{if(!Array.isArray(source.messages)||source.messages.length>state.limits.maxMessages)return failEvent(state,cursor,"Message snapshot exceeds the configured limit.","stream_limit_exceeded");const messages=[],messageBytes=new Map;let total=usage.totalBytes-[...usage.messages.values()].reduce((sum,bytes)=>sum+bytes,0);for(const candidate of source.messages){const message=ownedMessage(candidate,state.limits);if(!message||messageBytes.has(message.value.id))return failEvent(state,cursor,"Message snapshot contains an invalid or duplicate message.","invalid_stream_event");messages.push(message.value),messageBytes.set(message.value.id,message.bytes),total+=message.bytes}usage.messages.clear();for(const[id,bytes]of messageBytes)usage.messages.set(id,bytes);return usage.totalBytes=total,commit(state,{...state,messages},usage,cursor)}case"message-start":{const incoming=ownedMessage(source.message,state.limits);if(!incoming)return failEvent(state,cursor,"Message has an invalid shape.","invalid_stream_event");const index=state.messages.findIndex(message2=>message2.id===incoming.value.id);if(index<0&&state.messages.length>=state.limits.maxMessages)return failEvent(state,cursor,"Message count exceeds the configured limit.","stream_limit_exceeded");const existing=index>=0?state.messages[index]:void 0,merged=existing?{...existing,...incoming.value,parts:incoming.value.parts??existing.parts}:incoming.value,message=ownedMessage(merged,state.limits);if(!message)return failEvent(state,cursor,"Message has an invalid shape.","invalid_stream_event");const messages=[...state.messages];return index<0?messages.push(message.value):messages[index]=message.value,replaceUsageEntry(usage,"messages",message.value.id,message.bytes),commit(state,{...state,messages},usage,cursor)}case"message-part-upsert":{if(!validIdentifier(source.messageId,state.limits)||source.role!==void 0&&!MESSAGE_ROLES.has(source.role))return failEvent(state,cursor,"Message part target is invalid.","invalid_stream_event");const part=ownedPart(source.part,state.limits);if(!part)return failEvent(state,cursor,"Message part has an invalid shape.","invalid_stream_event");const messageIndex=state.messages.findIndex(message2=>message2.id===source.messageId);if(messageIndex<0&&state.messages.length>=state.limits.maxMessages)return failEvent(state,cursor,"Message count exceeds the configured limit.","stream_limit_exceeded");const current=messageIndex>=0?state.messages[messageIndex]:{id:source.messageId,role:source.role??"assistant",status:"streaming",parts:[]},parts=[...current.parts??[]],partIndex=parts.findIndex(candidate=>candidate.id===part.value.id);if(parts[partIndex]?.state==="interrupted")return commit(state,state,usage,cursor);if(partIndex<0&&parts.length>=state.limits.maxPartsPerMessage)return failEvent(state,cursor,"Message part count exceeds the configured limit.","stream_limit_exceeded");partIndex<0?parts.push(part.value):parts[partIndex]=part.value;const message=ownedMessage({...current,parts},state.limits);if(!message)return failEvent(state,cursor,"Updated message has an invalid shape.","invalid_stream_event");const messages=[...state.messages];return messageIndex<0?messages.push(message.value):messages[messageIndex]=message.value,replaceUsageEntry(usage,"messages",message.value.id,message.bytes),commit(state,{...state,messages},usage,cursor)}case"message-part-delta":{if(!validIdentifier(source.messageId,state.limits)||!validIdentifier(source.partId,state.limits)||source.partType!=="text"&&source.partType!=="reasoning"||typeof source.delta!="string"||source.role!==void 0&&!MESSAGE_ROLES.has(source.role))return failEvent(state,cursor,"Message delta has an invalid shape.","invalid_stream_event");if(source.delta.length>state.limits.maxDeltaCharacters)return failEvent(state,cursor,"Message delta exceeds the configured limit.","stream_limit_exceeded");const messageIndex=state.messages.findIndex(message2=>message2.id===source.messageId);if(messageIndex<0&&state.messages.length>=state.limits.maxMessages)return failEvent(state,cursor,"Message count exceeds the configured limit.","stream_limit_exceeded");const current=messageIndex>=0?state.messages[messageIndex]:{id:source.messageId,role:source.role??"assistant",status:"streaming",parts:[]},parts=[...current.parts??[]],partIndex=parts.findIndex(part2=>part2.id===source.partId),previous=partIndex>=0?parts[partIndex]:void 0;if(previous?.state==="interrupted")return commit(state,state,usage,cursor);if(previous&&previous.type!=="text"&&previous.type!=="reasoning")return failEvent(state,cursor,"Message delta targets a non-text part.","invalid_stream_event");if(partIndex<0&&parts.length>=state.limits.maxPartsPerMessage)return failEvent(state,cursor,"Message part count exceeds the configured limit.","stream_limit_exceeded");const text=(previous?.text??"")+source.delta;if(text.length>state.limits.maxTextCharactersPerPart)return failEvent(state,cursor,"Message text exceeds the configured limit.","stream_limit_exceeded");const part=source.partType==="reasoning"?{id:source.partId,type:"reasoning",text,state:"streaming"}:{id:source.partId,type:"text",text,state:"streaming"};partIndex<0?parts.push(part):parts[partIndex]=part;const message=ownedMessage({...current,parts},state.limits);if(!message)return failEvent(state,cursor,"Updated message has an invalid shape.","invalid_stream_event");const messages=[...state.messages];return messageIndex<0?messages.push(message.value):messages[messageIndex]=message.value,replaceUsageEntry(usage,"messages",message.value.id,message.bytes),commit(state,{...state,messages},usage,cursor)}case"message-complete":{if(!validIdentifier(source.messageId,state.limits))return failEvent(state,cursor,"Message completion target is invalid.","invalid_stream_event");const index=state.messages.findIndex(message2=>message2.id===source.messageId);if(index<0)return commit(state,state,usage,cursor);const current=state.messages[index],message=ownedMessage({...current,status:current.parts?.some(part=>part.state==="interrupted")?current.status:"sent",parts:current.parts?.map(part=>part.state==="interrupted"?part:{...part,state:"complete"})},state.limits);if(!message)return failEvent(state,cursor,"Completed message has an invalid shape.","invalid_stream_event");const messages=[...state.messages];return messages[index]=message.value,replaceUsageEntry(usage,"messages",message.value.id,message.bytes),commit(state,{...state,messages},usage,cursor)}case"tool-upsert":{const incoming=ownedTool(source.invocation,state.limits);if(!incoming)return failEvent(state,cursor,"Tool invocation has an invalid shape.","invalid_stream_event");const index=state.tools.findIndex(tool2=>tool2.id===incoming.value.id);if(index<0&&state.tools.length>=state.limits.maxTools)return failEvent(state,cursor,"Tool count exceeds the configured limit.","stream_limit_exceeded");const tool=ownedTool(index<0?incoming.value:{...state.tools[index],...incoming.value},state.limits);if(!tool)return failEvent(state,cursor,"Tool invocation has an invalid shape.","invalid_stream_event");const tools=[...state.tools];return index<0?tools.push(tool.value):tools[index]=tool.value,replaceUsageEntry(usage,"tools",tool.value.id,tool.bytes),commit(state,{...state,tools},usage,cursor)}case"state-snapshot":{const snapshot=ownValue(source.snapshot,state.limits);return snapshot?(usage.totalBytes+=snapshot.bytes-usage.sharedStateBytes,usage.sharedStateBytes=snapshot.bytes,commit(state,{...state,sharedState:snapshot.value},usage,cursor)):failEvent(state,cursor,"Shared state snapshot is invalid.","invalid_stream_event")}case"state-delta":{const patch=parseJsonPatch(source.patch,state.limits);if(!patch)return failEvent(state,cursor,"Shared state patch is invalid.","invalid_stream_event");const current=ownValue(state.sharedState,state.limits);if(!current)return failEvent(state,cursor,"Retained shared state is invalid.","invalid_stream_event");let patched=current.value;for(const operation of patch)patched=applyPatchOperation(patched,operation);const snapshot=ownValue(patched,state.limits);return snapshot?(usage.totalBytes+=snapshot.bytes-usage.sharedStateBytes,usage.sharedStateBytes=snapshot.bytes,commit(state,{...state,sharedState:snapshot.value},usage,cursor)):failEvent(state,cursor,"Shared state exceeds the configured limit.","stream_limit_exceeded")}case"error":{if(typeof source.message!="string"||source.message.length>state.limits.maxStatusMessageCharacters||!validOptionalString(source.code,state.limits.maxIdentifierCharacters))return failEvent(state,cursor,"Error event has an invalid shape.","invalid_stream_event");const error={message:source.message,...source.code?{code:source.code}:{}};return commit(state,{...state,status:{kind:"error",message:source.message},error},usage,cursor)}default:return failEvent(state,cursor,"Stream event type is not supported.","invalid_stream_event")}}function reduceAgentStreamEvents(state,events){return events.reduce(reduceAgentStream,state)}export{DEFAULT_AGENT_STREAM_LIMITS,applySharedStatePatch,createAgentStreamState,parseJsonPatch,reduceAgentStream,reduceAgentStreamEvents};
1
+ import{positiveInteger}from"../internal/numbers.js";import{createProviderSnapshotBudget,snapshotProviderValue}from"./snapshot.js";const DEFAULT_AGENT_STREAM_LIMITS=Object.freeze({maxMessages:512,maxPartsPerMessage:512,maxTools:256,maxDeltaCharacters:32768,maxTextCharactersPerPart:262144,maxIdentifierCharacters:1024,maxStatusMessageCharacters:8192,maxPatchOperations:256,maxSnapshotDepth:32,maxSnapshotNodes:1e4,maxSnapshotBytes:1048576,maxRetainedBytes:8388608}),usageByState=new WeakMap,FORBIDDEN_PATH_SEGMENTS=new Set(["__proto__","prototype","constructor"]),ARRAY_INDEX=/^(0|[1-9][0-9]*)$/,MESSAGE_ROLES=new Set(["user","assistant","system"]),MESSAGE_STATUSES=new Set(["sending","sent","failed","streaming"]),PART_STATES=new Set(["streaming","complete","interrupted"]),TOOL_STATUSES=new Set(["pending","running","success","error","denied","incomplete"]);function resolveLimits(limits){const resolved=Object.fromEntries(Object.entries(DEFAULT_AGENT_STREAM_LIMITS).map(([key,fallback])=>[key,positiveInteger(limits[key],fallback)]));return resolved.maxSnapshotBytes>resolved.maxRetainedBytes&&(resolved.maxSnapshotBytes=resolved.maxRetainedBytes),Object.freeze(resolved)}function emptyUsage(){return{messages:new Map,tools:new Map,sharedStateBytes:0,totalBytes:0}}function copyUsage(usage){return{messages:new Map(usage.messages),tools:new Map(usage.tools),sharedStateBytes:usage.sharedStateBytes,totalBytes:usage.totalBytes}}function createAgentStreamState(limits={}){const state={generation:0,cursor:0,limits:resolveLimits(limits),status:{kind:"idle"},messages:[],tools:[],sharedState:null};return usageByState.set(state,emptyUsage()),state}function snapshotLimits(limits,maxBytes=limits.maxSnapshotBytes){return{maxDepth:limits.maxSnapshotDepth,maxNodes:limits.maxSnapshotNodes,maxBytes,maxStringCharacters:Math.max(limits.maxTextCharactersPerPart,limits.maxStatusMessageCharacters)}}function ownValue(value,limits){const result=snapshotProviderValue(value,createProviderSnapshotBudget(snapshotLimits(limits)));return result.ok?{value:result.value,bytes:result.bytes}:null}function isRecord(value){return value!==null&&typeof value=="object"&&!Array.isArray(value)}function validIdentifier(value,limits){return typeof value=="string"&&value.length>0&&value.length<=limits.maxIdentifierCharacters}function validOptionalString(value,maximum){return value===void 0||typeof value=="string"&&value.length<=maximum}function validStatus(value,limits){return!isRecord(value)||!validIdentifier(value.kind,limits)?!1:validOptionalString(value.message,limits.maxStatusMessageCharacters)}function validDocument(value,limits){return!isRecord(value)||!validIdentifier(value.id,limits)||typeof value.name!="string"?!1:["mimeType","uri","version"].every(key=>validOptionalString(value[key],limits.maxSnapshotBytes))}const MAX_TOOL_REDACTION_PATHS=100,MAX_TOOL_REDACTION_PATH_CHARACTERS=4096;function validOptionalFiniteNumber(value){return value===void 0||typeof value=="number"&&Number.isFinite(value)}function validOptionalRedactionPaths(value){return value===void 0?!0:Array.isArray(value)&&value.length<=MAX_TOOL_REDACTION_PATHS&&value.every(path=>typeof path=="string"&&path.length<=MAX_TOOL_REDACTION_PATH_CHARACTERS)}function validTool(value,limits){return isRecord(value)?validIdentifier(value.id,limits)&&validIdentifier(value.name,limits)&&validOptionalString(value.displayName,limits.maxIdentifierCharacters)&&isRecord(value.args)&&TOOL_STATUSES.has(String(value.status))&&validOptionalString(value.error,limits.maxStatusMessageCharacters)&&validOptionalFiniteNumber(value.startedAt)&&validOptionalFiniteNumber(value.endedAt)&&validOptionalRedactionPaths(value.redactedFields):!1}function validInterruption(value,limits){return isRecord(value)&&typeof value.resumable=="boolean"&&validOptionalString(value.reason,limits.maxStatusMessageCharacters)}function validPart(value,limits){if(!isRecord(value)||!validIdentifier(value.id,limits)||typeof value.type!="string"||value.state!==void 0&&!PART_STATES.has(String(value.state))||value.interruption!==void 0&&!validInterruption(value.interruption,limits)||value.metadata!==void 0&&!isRecord(value.metadata))return!1;switch(value.type){case"text":case"reasoning":return typeof value.text=="string"&&value.text.length<=limits.maxTextCharactersPerPart;case"tool-call":return validTool(value.invocation,limits);case"tool-result":{if(!validIdentifier(value.invocationId,limits)||!validOptionalString(value.name,limits.maxIdentifierCharacters))return!1;const hasResult=Object.hasOwn(value,"result");return Object.hasOwn(value,"error")?typeof value.error=="string"&&value.error.length<=limits.maxStatusMessageCharacters:hasResult}case"citation":return isRecord(value.citation)&&validIdentifier(value.citation.id,limits);case"attachment":return validDocument(value.document,limits);case"data":{const hasData=Object.hasOwn(value,"data"),hasWidget=Object.hasOwn(value,"widget");return hasData!==hasWidget&&validOptionalString(value.name,limits.maxIdentifierCharacters)}case"audio":return["src","transcript","mimeType"].every(key=>validOptionalString(value[key],limits.maxSnapshotBytes));case"error":return typeof value.message=="string"&&value.message.length<=limits.maxStatusMessageCharacters&&validOptionalString(value.code,limits.maxIdentifierCharacters)&&(value.retryable===void 0||typeof value.retryable=="boolean");default:return!1}}function ownedPart(value,limits){const owned=ownValue(value,limits);return owned&&validPart(owned.value,limits)?owned:null}function validMessage(value,limits){return!(!isRecord(value)||!validIdentifier(value.id,limits)||!MESSAGE_ROLES.has(value.role)||value.status!==void 0&&!MESSAGE_STATUSES.has(String(value.status))||value.timestamp!==void 0&&typeof value.timestamp!="string"||!validOptionalString(value.text,limits.maxTextCharactersPerPart)||value.metadata!==void 0&&!isRecord(value.metadata)||value.attachments!==void 0&&(!Array.isArray(value.attachments)||!value.attachments.every(item=>validDocument(item,limits)))||value.parts!==void 0&&(!Array.isArray(value.parts)||value.parts.length>limits.maxPartsPerMessage||!value.parts.every(part=>validPart(part,limits))))}function ownedMessage(value,limits){const owned=ownValue(value,limits);return owned&&validMessage(owned.value,limits)?owned:null}function ownedTool(value,limits){const owned=ownValue(value,limits);return owned&&validTool(owned.value,limits)?owned:null}function usageFor(state){const cached=usageByState.get(state);if(cached)return cached;const usage=emptyUsage();for(const message of state.messages){const bytes=ownValue(message,state.limits)?.bytes??state.limits.maxRetainedBytes;usage.messages.set(message.id,bytes),usage.totalBytes+=bytes}for(const tool of state.tools){const bytes=ownValue(tool,state.limits)?.bytes??state.limits.maxRetainedBytes;usage.tools.set(tool.id,bytes),usage.totalBytes+=bytes}const shared=ownValue(state.sharedState,state.limits);return usage.sharedStateBytes=shared?.bytes??state.limits.maxRetainedBytes,usage.totalBytes+=usage.sharedStateBytes,usageByState.set(state,usage),usage}function replaceUsageEntry(usage,collection,id,bytes){const map=usage[collection];usage.totalBytes-=map.get(id)??0,map.set(id,bytes),usage.totalBytes+=bytes}function commit(state,next,usage,cursor){if(usage.totalBytes>state.limits.maxRetainedBytes)return failEvent(state,cursor,"Retained stream state exceeds the configured limit.","stream_limit_exceeded");const committed={...next,generation:cursor.generation,cursor:cursor.sequence};return usageByState.set(committed,usage),committed}function failEvent(state,cursor,message,code){const failed={...state,...cursor?{generation:cursor.generation,cursor:cursor.sequence}:{},status:{kind:"error",message},error:{message,code}};return usageByState.set(failed,usageFor(state)),failed}function pointerSegments(path){if(path==="")return[];if(!path.startsWith("/"))return null;const rawSegments=path.slice(1).split("/");if(rawSegments.some(segment=>/~(?:[^01]|$)/.test(segment)))return null;const segments=rawSegments.map(segment=>segment.replace(/~1/g,"/").replace(/~0/g,"~"));return segments.some(segment=>FORBIDDEN_PATH_SEGMENTS.has(segment))?null:segments}function validPatchKeys(record,operation){const expected=operation==="remove"?["op","path"]:["op","path","value"],keys=Object.keys(record).sort();return keys.length===expected.length&&keys.every((key,index)=>key===expected.sort()[index])}function parseJsonPatch(value,limits={}){const resolved=resolveLimits(limits),owned=ownValue(value,resolved);if(!owned||!Array.isArray(owned.value)||owned.value.length>resolved.maxPatchOperations)return null;const operations=[];for(const candidate of owned.value){if(!isRecord(candidate))return null;const operation=candidate.op,path=candidate.path;if(operation!=="add"&&operation!=="replace"&&operation!=="remove"||typeof path!="string"||pointerSegments(path)===null||!validPatchKeys(candidate,operation))return null;operations.push(operation==="remove"?{op:operation,path}:{op:operation,path,value:candidate.value})}return operations}function arrayIndex(segment){if(!ARRAY_INDEX.test(segment))return null;const index=Number(segment);return Number.isSafeInteger(index)?index:null}function applyPatchOperation(root,operation){const segments=pointerSegments(operation.path);if(!segments)return root;if(!segments.length)return operation.op==="remove"?null:operation.value;let parent=root;for(const segment of segments.slice(0,-1))if(Array.isArray(parent)){const index=arrayIndex(segment);if(index===null||index>=parent.length)return root;parent=parent[index]}else if(isRecord(parent)){if(!Object.hasOwn(parent,segment))return root;parent=parent[segment]}else return root;const key=segments.at(-1);if(key===void 0)return root;if(Array.isArray(parent)){if(key==="-")return operation.op==="add"&&parent.push(operation.value),root;const index=arrayIndex(key);return index===null||(operation.op==="add"?index<=parent.length&&parent.splice(index,0,operation.value):operation.op==="remove"?index<parent.length&&parent.splice(index,1):index<parent.length&&(parent[index]=operation.value)),root}return isRecord(parent)&&(operation.op==="add"?parent[key]=operation.value:operation.op==="remove"?Object.hasOwn(parent,key)&&delete parent[key]:Object.hasOwn(parent,key)&&(parent[key]=operation.value)),root}function applySharedStatePatch(value,patch){const limits=DEFAULT_AGENT_STREAM_LIMITS,root=ownValue(value,limits),operations=parseJsonPatch(patch,limits);if(!root)return null;if(!operations)return root.value;let next=root.value;for(const operation of operations)next=applyPatchOperation(next,operation);return next}function baseCursor(event){const generation=event.generation,sequence=event.sequence;return typeof generation=="number"&&Number.isSafeInteger(generation)&&generation>=0&&typeof sequence=="number"&&Number.isSafeInteger(sequence)&&sequence>0?{generation,sequence}:null}function shouldIgnore(state,type,cursor){return type==="run-start"?cursor.generation<=state.generation:type==="reset"?cursor.generation<state.generation||cursor.generation===state.generation&&cursor.sequence<=state.cursor:cursor.generation!==state.generation||cursor.sequence<=state.cursor}function reduceAgentStream(state,event){const eventSnapshot=snapshotProviderValue(event,createProviderSnapshotBudget(snapshotLimits(state.limits)));if(!eventSnapshot.ok)return eventSnapshot.failure==="limit"?failEvent(state,void 0,"Stream event exceeds the configured limit.","stream_limit_exceeded"):failEvent(state,void 0,"Stream event is not valid serializable data.","invalid_stream_event");const source=eventSnapshot.value;if(!isRecord(source))return failEvent(state,void 0,"Stream event is not a record.","invalid_stream_event");const cursor=baseCursor(source);if(!cursor||typeof source.type!="string")return failEvent(state,void 0,"Stream event generation, sequence, or type is invalid.","invalid_stream_event");if(shouldIgnore(state,source.type,cursor))return state;const usage=copyUsage(usageFor(state));switch(source.type){case"reset":{const reset=createAgentStreamState(state.limits);return commit(state,reset,emptyUsage(),cursor)}case"run-start":{if(!validIdentifier(source.runId,state.limits))return failEvent(state,cursor,"Run start has an invalid run id.","invalid_stream_event");const started=createAgentStreamState(state.limits);return started.runId=source.runId,started.status={kind:"running"},commit(state,started,emptyUsage(),cursor)}case"stream-interrupt":case"stream-resume":{if(source.runId!==state.runId||!state.runId)return state;const interrupting=source.type==="stream-interrupt";if(interrupting&&!validInterruption(source.interruption,state.limits))return failEvent(state,cursor,"Stream interruption has an invalid shape.","invalid_stream_event");if(!interrupting&&state.interruption?.resumable!==!0)return state;const interruption=interrupting?source.interruption:void 0,messages=[];for(const current of state.messages){const parts=current.parts?.map(part=>{if(interrupting)return part.state==="streaming"?{...part,state:"interrupted",interruption}:part;if(part.state!=="interrupted"||part.interruption?.resumable!==!0)return part;const{interruption:_interruption,...resumed}=part;return{...resumed,state:"streaming"}}),message=ownedMessage({...current,...parts?{parts}:{}},state.limits);if(!message)return failEvent(state,cursor,"Interrupted message exceeds the configured limit.","stream_limit_exceeded");messages.push(message.value),replaceUsageEntry(usage,"messages",message.value.id,message.bytes)}return commit(state,{...state,messages,interruption},usage,cursor)}case"run-status":{if(!validStatus(source.status,state.limits)||source.runId!==void 0&&!validIdentifier(source.runId,state.limits))return failEvent(state,cursor,"Run status has an invalid shape.","invalid_stream_event");const status=source.status,error=status.kind==="error"?{message:status.message??state.error?.message??"Agent run failed",...state.error?.code&&(!status.message||status.message===state.error.message)?{code:state.error.code}:{}}:void 0;return commit(state,{...state,runId:source.runId??state.runId,status,error},usage,cursor)}case"messages-snapshot":{if(!Array.isArray(source.messages)||source.messages.length>state.limits.maxMessages)return failEvent(state,cursor,"Message snapshot exceeds the configured limit.","stream_limit_exceeded");const messages=[],messageBytes=new Map;let total=usage.totalBytes-[...usage.messages.values()].reduce((sum,bytes)=>sum+bytes,0);for(const candidate of source.messages){const message=ownedMessage(candidate,state.limits);if(!message||messageBytes.has(message.value.id))return failEvent(state,cursor,"Message snapshot contains an invalid or duplicate message.","invalid_stream_event");messages.push(message.value),messageBytes.set(message.value.id,message.bytes),total+=message.bytes}usage.messages.clear();for(const[id,bytes]of messageBytes)usage.messages.set(id,bytes);return usage.totalBytes=total,commit(state,{...state,messages},usage,cursor)}case"message-start":{const incoming=ownedMessage(source.message,state.limits);if(!incoming)return failEvent(state,cursor,"Message has an invalid shape.","invalid_stream_event");const index=state.messages.findIndex(message2=>message2.id===incoming.value.id);if(index<0&&state.messages.length>=state.limits.maxMessages)return failEvent(state,cursor,"Message count exceeds the configured limit.","stream_limit_exceeded");const existing=index>=0?state.messages[index]:void 0,merged=existing?{...existing,...incoming.value}:incoming.value,message=ownedMessage(merged,state.limits);if(!message)return failEvent(state,cursor,"Message has an invalid shape.","invalid_stream_event");const messages=[...state.messages];return index<0?messages.push(message.value):messages[index]=message.value,replaceUsageEntry(usage,"messages",message.value.id,message.bytes),commit(state,{...state,messages},usage,cursor)}case"message-part-upsert":{if(!validIdentifier(source.messageId,state.limits)||source.role!==void 0&&!MESSAGE_ROLES.has(source.role))return failEvent(state,cursor,"Message part target is invalid.","invalid_stream_event");const part=ownedPart(source.part,state.limits);if(!part)return failEvent(state,cursor,"Message part has an invalid shape.","invalid_stream_event");const messageIndex=state.messages.findIndex(message2=>message2.id===source.messageId);if(messageIndex<0&&state.messages.length>=state.limits.maxMessages)return failEvent(state,cursor,"Message count exceeds the configured limit.","stream_limit_exceeded");const current=messageIndex>=0?state.messages[messageIndex]:{id:source.messageId,role:source.role??"assistant",status:"streaming",parts:[]},parts=[...current.parts??[]],partIndex=parts.findIndex(candidate=>candidate.id===part.value.id);if(parts[partIndex]?.state==="interrupted")return commit(state,state,usage,cursor);if(partIndex<0&&parts.length>=state.limits.maxPartsPerMessage)return failEvent(state,cursor,"Message part count exceeds the configured limit.","stream_limit_exceeded");partIndex<0?parts.push(part.value):parts[partIndex]=part.value;const message=ownedMessage({...current,parts},state.limits);if(!message)return failEvent(state,cursor,"Updated message has an invalid shape.","invalid_stream_event");const messages=[...state.messages];return messageIndex<0?messages.push(message.value):messages[messageIndex]=message.value,replaceUsageEntry(usage,"messages",message.value.id,message.bytes),commit(state,{...state,messages},usage,cursor)}case"message-part-delta":{if(!validIdentifier(source.messageId,state.limits)||!validIdentifier(source.partId,state.limits)||source.partType!=="text"&&source.partType!=="reasoning"||typeof source.delta!="string"||source.role!==void 0&&!MESSAGE_ROLES.has(source.role))return failEvent(state,cursor,"Message delta has an invalid shape.","invalid_stream_event");if(source.delta.length>state.limits.maxDeltaCharacters)return failEvent(state,cursor,"Message delta exceeds the configured limit.","stream_limit_exceeded");const messageIndex=state.messages.findIndex(message2=>message2.id===source.messageId);if(messageIndex<0&&state.messages.length>=state.limits.maxMessages)return failEvent(state,cursor,"Message count exceeds the configured limit.","stream_limit_exceeded");const current=messageIndex>=0?state.messages[messageIndex]:{id:source.messageId,role:source.role??"assistant",status:"streaming",parts:[]},parts=[...current.parts??[]],partIndex=parts.findIndex(part2=>part2.id===source.partId),previous=partIndex>=0?parts[partIndex]:void 0;if(previous?.state==="interrupted")return commit(state,state,usage,cursor);if(previous&&previous.type!=="text"&&previous.type!=="reasoning")return failEvent(state,cursor,"Message delta targets a non-text part.","invalid_stream_event");if(partIndex<0&&parts.length>=state.limits.maxPartsPerMessage)return failEvent(state,cursor,"Message part count exceeds the configured limit.","stream_limit_exceeded");const text=(previous?.text??"")+source.delta;if(text.length>state.limits.maxTextCharactersPerPart)return failEvent(state,cursor,"Message text exceeds the configured limit.","stream_limit_exceeded");const part=source.partType==="reasoning"?{id:source.partId,type:"reasoning",text,state:"streaming"}:{id:source.partId,type:"text",text,state:"streaming"};partIndex<0?parts.push(part):parts[partIndex]=part;const message=ownedMessage({...current,parts},state.limits);if(!message)return failEvent(state,cursor,"Updated message has an invalid shape.","invalid_stream_event");const messages=[...state.messages];return messageIndex<0?messages.push(message.value):messages[messageIndex]=message.value,replaceUsageEntry(usage,"messages",message.value.id,message.bytes),commit(state,{...state,messages},usage,cursor)}case"message-complete":{if(!validIdentifier(source.messageId,state.limits))return failEvent(state,cursor,"Message completion target is invalid.","invalid_stream_event");const index=state.messages.findIndex(message2=>message2.id===source.messageId);if(index<0)return commit(state,state,usage,cursor);const current=state.messages[index],parts=current.parts?.map(part=>part.state==="interrupted"?part:{...part,state:"complete"}),message=ownedMessage({...current,status:current.parts?.some(part=>part.state==="interrupted")?current.status:"sent",...parts?{parts}:{}},state.limits);if(!message)return failEvent(state,cursor,"Completed message has an invalid shape.","invalid_stream_event");const messages=[...state.messages];return messages[index]=message.value,replaceUsageEntry(usage,"messages",message.value.id,message.bytes),commit(state,{...state,messages},usage,cursor)}case"tool-upsert":{const incoming=ownedTool(source.invocation,state.limits);if(!incoming)return failEvent(state,cursor,"Tool invocation has an invalid shape.","invalid_stream_event");const index=state.tools.findIndex(tool2=>tool2.id===incoming.value.id);if(index<0&&state.tools.length>=state.limits.maxTools)return failEvent(state,cursor,"Tool count exceeds the configured limit.","stream_limit_exceeded");const tool=ownedTool(index<0?incoming.value:{...state.tools[index],...incoming.value},state.limits);if(!tool)return failEvent(state,cursor,"Tool invocation has an invalid shape.","invalid_stream_event");const tools=[...state.tools];return index<0?tools.push(tool.value):tools[index]=tool.value,replaceUsageEntry(usage,"tools",tool.value.id,tool.bytes),commit(state,{...state,tools},usage,cursor)}case"state-snapshot":{const snapshot=ownValue(source.snapshot,state.limits);return snapshot?(usage.totalBytes+=snapshot.bytes-usage.sharedStateBytes,usage.sharedStateBytes=snapshot.bytes,commit(state,{...state,sharedState:snapshot.value},usage,cursor)):failEvent(state,cursor,"Shared state snapshot is invalid.","invalid_stream_event")}case"state-delta":{const patch=parseJsonPatch(source.patch,state.limits);if(!patch)return failEvent(state,cursor,"Shared state patch is invalid.","invalid_stream_event");const current=ownValue(state.sharedState,state.limits);if(!current)return failEvent(state,cursor,"Retained shared state is invalid.","invalid_stream_event");let patched=current.value;for(const operation of patch)patched=applyPatchOperation(patched,operation);const snapshot=ownValue(patched,state.limits);return snapshot?(usage.totalBytes+=snapshot.bytes-usage.sharedStateBytes,usage.sharedStateBytes=snapshot.bytes,commit(state,{...state,sharedState:snapshot.value},usage,cursor)):failEvent(state,cursor,"Shared state exceeds the configured limit.","stream_limit_exceeded")}case"error":{if(typeof source.message!="string"||source.message.length>state.limits.maxStatusMessageCharacters||!validOptionalString(source.code,state.limits.maxIdentifierCharacters))return failEvent(state,cursor,"Error event has an invalid shape.","invalid_stream_event");const error={message:source.message,...source.code?{code:source.code}:{}};return commit(state,{...state,status:{kind:"error",message:source.message},error},usage,cursor)}default:return failEvent(state,cursor,"Stream event type is not supported.","invalid_stream_event")}}function reduceAgentStreamEvents(state,events){return events.reduce(reduceAgentStream,state)}export{DEFAULT_AGENT_STREAM_LIMITS,applySharedStatePatch,createAgentStreamState,parseJsonPatch,reduceAgentStream,reduceAgentStreamEvents};
@@ -1,12 +1,12 @@
1
- /** Resource ceilings for recursively owned provider data. */
1
+ /** Resource ceilings for recursively owned provider data.*/
2
2
  export interface ProviderSnapshotLimits{
3
- /** Maximum collection nesting, with the root at depth zero. */
3
+ /** Maximum collection nesting, with the root at depth zero.*/
4
4
  maxDepth:number;
5
- /** Maximum primitive and collection values visited. */
5
+ /** Maximum primitive and collection values visited.*/
6
6
  maxNodes:number;
7
- /** Maximum UTF-8 bytes copied, including object keys. */
7
+ /** Maximum UTF-8 bytes copied, including object keys.*/
8
8
  maxBytes:number;
9
- /** Maximum UTF-16 code units in one string before UTF-8 encoding. */
9
+ /** Maximum UTF-16 code units in one string before UTF-8 encoding.*/
10
10
  maxStringCharacters:number;}export declare const DEFAULT_PROVIDER_SNAPSHOT_LIMITS:Readonly<ProviderSnapshotLimits>;export type ProviderSnapshotFailure='invalid'|'limit';export type ProviderSnapshotResult<T=unknown> ={ok:true;value:T;bytes:number;nodes:number;}|{ok:false;failure:ProviderSnapshotFailure;reason:string;};export interface ProviderSnapshotBudget{readonly limits:Readonly<ProviderSnapshotLimits>;bytes:number;nodes:number;}export declare function resolveProviderSnapshotLimits(limits?:Partial<ProviderSnapshotLimits>):Readonly<ProviderSnapshotLimits>;export declare function createProviderSnapshotBudget(limits?:Partial<ProviderSnapshotLimits> |Readonly<ProviderSnapshotLimits>):ProviderSnapshotBudget;
11
11
  /**
12
12
  * Recursively copies provider-owned data into arrays and null-prototype records. Unsupported,
@@ -29,7 +29,7 @@ import type{ChatMessageRole,ChatMessageStatus}from'../components/conversation/ch
29
29
  * has no waiting states, and folds an interrupted or cancelled call into its own `'incomplete'`.
30
30
  */
31
31
  export type AgentStatusKind='idle'|'running'|'queued'|'collecting'|'waiting-input'|'waiting-approval'|'done'|'error'|'cancelled'|(string&{});
32
- /** A status value paired with an optional human-readable detail, e.g. `{ kind: 'error', message: 'Rate limited' }`. */
32
+ /** A status value paired with an optional human-readable detail, e.g. `{ kind: 'error', message: 'Rate limited' }`.*/
33
33
  export interface AgentStatus{kind:AgentStatusKind;message?:string;}
34
34
  /**
35
35
  * One step in an agent run's summary timeline. A coarser unit than `LyraSpan`
@@ -39,15 +39,15 @@ export interface AgentStatus{kind:AgentStatusKind;message?:string;}
39
39
  * 'other'` union) since an agent run's own step taxonomy is application-defined.
40
40
  */
41
41
  export interface AgentStep{id:string;kind:string;label:string;status:AgentStatus;
42
- /** Epoch milliseconds. */
42
+ /** Epoch milliseconds.*/
43
43
  startedAt?:number;
44
- /** Epoch milliseconds. */
44
+ /** Epoch milliseconds.*/
45
45
  endedAt?:number;}
46
- /** A complete agent run: overall status plus its ordered `steps`. */
46
+ /** A complete agent run: overall status plus its ordered `steps`.*/
47
47
  export interface AgentRun{id:string;status:AgentStatus;
48
- /** Epoch milliseconds. */
48
+ /** Epoch milliseconds.*/
49
49
  startedAt?:number;
50
- /** Epoch milliseconds. */
50
+ /** Epoch milliseconds.*/
51
51
  endedAt?:number;model?:string;costEstimate?:number;steps:readonly AgentStep[];}
52
52
  /**
53
53
  * One message in a conversation, for orchestration-level components that hold/replay message
@@ -60,9 +60,9 @@ endedAt?:number;model?:string;costEstimate?:number;steps:readonly AgentStep[];}
60
60
  * type-checks with no conversion.
61
61
  */
62
62
  export interface ChatMessage{id:string;role:ChatMessageRole;status?:ChatMessageStatus;timestamp?:Date|string;
63
- /** Plain-text (or app-rendered-markdown-source) body; `<lr-chat-message>` renders none of the message content itself, so this is for state-holding/serialization, not direct binding. */
63
+ /** Plain-text (or app-rendered-markdown-source) body; `<lr-chat-message>` renders none of the message content itself, so this is for state-holding/serialization, not direct binding.*/
64
64
  text?:string;attachments?:readonly DocumentRef[];
65
- /** Ordered, interleavable content. `text` remains the backward-compatible plain-body shortcut. */
65
+ /** Ordered, interleavable content. `text` remains the backward-compatible plain-body shortcut.*/
66
66
  parts?:readonly MessagePart[];metadata?:Record<string,unknown>;}
67
67
  /**
68
68
  * One tool/function call an agent made -- the same concept `<lr-tool-call-chip>` and
@@ -82,7 +82,7 @@ displayName?:string;args:Record<string,unknown>;
82
82
  /** `'incomplete'` marks a call that ended without a result (an interrupted stream, a cancelled
83
83
  * run). */
84
84
  status:ToolStatus;result?:unknown;error?:string;
85
- /** Epoch milliseconds the call started. */
85
+ /** Epoch milliseconds the call started.*/
86
86
  startedAt?:number;
87
87
  /** Epoch milliseconds the call reached a terminal state. With `startedAt`, derives the duration
88
88
  * `<lr-message-parts tool-display="block">` and `<lr-tool-timeline>` display. */
@@ -97,23 +97,23 @@ redactedFields?:readonly string[];}
97
97
  * field, so a `DocumentRef` composes directly into either without renaming.
98
98
  */
99
99
  export interface DocumentRef{id:string;name:string;mimeType?:string;uri?:string;version?:string;}
100
- /** Format-neutral location understood by Lyra's anchor-capable document viewers. */
100
+ /** Format-neutral location understood by Lyra's anchor-capable document viewers.*/
101
101
  export type DocumentLocator=LyraAnchor;
102
- /** Transport progress only. Failures use `ErrorMessagePart` or a domain-specific error field. */
102
+ /** Transport progress only. Failures use `ErrorMessagePart` or a domain-specific error field.*/
103
103
  export type MessagePartState='streaming'|'complete'|'interrupted';
104
- /** Host-owned interruption context. Reasons are already-localized caller data. */
104
+ /** Host-owned interruption context. Reasons are already-localized caller data.*/
105
105
  export interface MessagePartInterruption{resumable:boolean;reason?:string;}export interface MessagePartBase{id:string;state?:MessagePartState;
106
- /** Present when transport interruption leaves this part unfinished. */
106
+ /** Present when transport interruption leaves this part unfinished.*/
107
107
  interruption?:MessagePartInterruption;metadata?:Record<string,unknown>;}export interface TextMessagePart extends MessagePartBase{type:'text';text:string;}export interface ReasoningMessagePart extends MessagePartBase{type:'reasoning';text:string;
108
- /** Host hint; renderers still expose a user-controlled disclosure. */
108
+ /** Host hint; renderers still expose a user-controlled disclosure.*/
109
109
  collapsed?:boolean;}export interface ToolCallMessagePart extends MessagePartBase{type:'tool-call';invocation:ToolInvocation;}interface ToolResultMessagePartBase extends MessagePartBase{type:'tool-result';invocationId:string;name?:string;}export interface ToolResultSuccessMessagePart extends ToolResultMessagePartBase{result:unknown;error?:never;}export interface ToolResultErrorMessagePart extends ToolResultMessagePartBase{error:string;
110
- /** Optional partial output retained for diagnostics. */
110
+ /** Optional partial output retained for diagnostics.*/
111
111
  result?:unknown;}
112
- /** A tool result is always either a success value or an error, never neither. */
112
+ /** A tool result is always either a success value or an error, never neither.*/
113
113
  export type ToolResultMessagePart=ToolResultSuccessMessagePart|ToolResultErrorMessagePart;export interface CitationMessagePart extends MessagePartBase{type:'citation';citation:Citation;}export interface AttachmentMessagePart extends MessagePartBase{type:'attachment';document:DocumentRef;}export interface DataMessagePart extends MessagePartBase{type:'data';name?:string;data:unknown;widget?:never;}export interface WidgetMessagePart extends MessagePartBase{type:'data';name?:string;data?:never;
114
- /** Allowlisted widget document consumed by `<lr-widget-renderer>`. */
114
+ /** Allowlisted widget document consumed by `<lr-widget-renderer>`.*/
115
115
  widget:unknown;}export interface AudioMessagePart extends MessagePartBase{type:'audio';src?:string;transcript?:string;mimeType?:string;}export interface ErrorMessagePart extends MessagePartBase{type:'error';message:string;code?:string;retryable?:boolean;}
116
- /** Ordered content vocabulary shared by runtimes, adapters, and `<lr-message-parts>`. */
116
+ /** Ordered content vocabulary shared by runtimes, adapters, and `<lr-message-parts>`.*/
117
117
  export type MessagePart=TextMessagePart|ReasoningMessagePart|ToolCallMessagePart|ToolResultMessagePart|CitationMessagePart|AttachmentMessagePart|DataMessagePart|WidgetMessagePart|AudioMessagePart|ErrorMessagePart;
118
118
  /**
119
119
  * A single citation record, e.g. one entry a retrieval/grounding step produces. `sourceId`
@@ -125,11 +125,11 @@ export type MessagePart=TextMessagePart|ReasoningMessagePart|ToolCallMessagePart
125
125
  * `'time-range'` variants, both `{ start; end? }`, in `chunk-inspector.class.ts`).
126
126
  */
127
127
  export interface Citation{id:string;chunkId?:string;sourceId?:string;span?:{start:number;end:number;};label?:string;
128
- /** Location inside the cited source. */
128
+ /** Location inside the cited source.*/
129
129
  locator?:DocumentLocator;
130
- /** Character range in the generated answer supported by this citation. */
130
+ /** Character range in the generated answer supported by this citation.*/
131
131
  answerRange?:{start:number;end:number;};quote?:string;metadata?:Record<string,unknown>;}
132
- /** A retrieval request. Provider/backend-neutral -- no vendor-specific filter/query shape. */
132
+ /** A retrieval request. Provider/backend-neutral -- no vendor-specific filter/query shape.*/
133
133
  export interface RetrievalQuery{text:string;filters?:Record<string,unknown>;mode:'vector'|'keyword'|'hybrid';scope?:string[];}
134
134
  /**
135
135
  * One retrieved chunk. `source` carries a full `DocumentRef` (not just a bare id) since a
@@ -140,29 +140,29 @@ export interface RetrievalQuery{text:string;filters?:Record<string,unknown>;mode
140
140
  * retrieval step produces upstream of that rendering step.
141
141
  */
142
142
  export interface RetrievalChunk{id:string;text:string;score:number;source:DocumentRef;metadata?:Record<string,unknown>;rank?:number;locator?:DocumentLocator;queryId?:string;stage?:string;traceId?:string;scores?:RetrievalScoreBreakdown;}
143
- /** Individual retrieval scores before and after fusion/reranking. */
143
+ /** Individual retrieval scores before and after fusion/reranking.*/
144
144
  export interface RetrievalScoreBreakdown{dense?:number;sparse?:number;rerank?:number;final:number;}export type GroundedClaimStatus='supported'|'partially-supported'|'unsupported'|'contradicted';
145
- /** One answer claim and the evidence relationship used to assess it. */
145
+ /** One answer claim and the evidence relationship used to assess it.*/
146
146
  export interface GroundedClaim{id:string;text:string;status:GroundedClaimStatus;citationIds:readonly string[];answerRange?:{start:number;end:number;};confidence?:number;explanation?:string;}
147
- /** How well a generated response is supported by its retrieved/cited sources. */
147
+ /** How well a generated response is supported by its retrieved/cited sources.*/
148
148
  export interface GroundingAssessment{supportedClaims:number;unsupportedClaims:number;
149
- /** 0-1. */
149
+ /** 0-1.*/
150
150
  coverage:number;
151
- /** 0-1. */
151
+ /** 0-1.*/
152
152
  confidence?:number;warnings?:readonly string[];claims?:readonly GroundedClaim[];}
153
- /** `detail` for a run-lifecycle event (e.g. an agent run's status changing). */
153
+ /** `detail` for a run-lifecycle event (e.g. an agent run's status changing).*/
154
154
  export interface RunLifecycleEventDetail{runId:string;status:AgentStatus;}
155
- /** `detail` for a retrieval-in-progress event. */
155
+ /** `detail` for a retrieval-in-progress event.*/
156
156
  export interface RetrievalProgressEventDetail{queryId:string;stage:string;progress?:number;}
157
- /** `detail` for a citation being selected/activated in an orchestration-level surface. */
157
+ /** `detail` for a citation being selected/activated in an orchestration-level surface.*/
158
158
  export interface CitationSelectEventDetail{citation:Citation;}
159
- /** `detail` for a tool-approval decision (a human-in-the-loop gate). */
159
+ /** `detail` for a tool-approval decision (a human-in-the-loop gate).*/
160
160
  export interface ToolApprovalEventDetail{invocationId:string;approved:boolean;}
161
- /** `detail` for a cancellation request. */
161
+ /** `detail` for a cancellation request.*/
162
162
  export interface CancelEventDetail{reason?:string;}
163
- /** `detail` for a retry request. */
163
+ /** `detail` for a retry request.*/
164
164
  export interface RetryEventDetail{attempt:number;
165
- /** Stable id of the message being retried, when the message has one. */
165
+ /** Stable id of the message being retried, when the message has one.*/
166
166
  messageId?:string;}
167
- /** `detail` for an export request, e.g. "export this conversation/run as `format`". */
167
+ /** `detail` for an export request, e.g. "export this conversation/run as `format`".*/
168
168
  export interface ExportEventDetail{format:string;}