@aceshooting/lyra-ui 4.0.0 → 4.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 (432) hide show
  1. package/README.md +53 -2
  2. package/custom-elements.json +59005 -40073
  3. package/dist/ai/index.d.ts +3 -0
  4. package/dist/ai/index.d.ts.map +1 -0
  5. package/dist/ai/index.js +3 -0
  6. package/dist/ai/index.js.map +1 -0
  7. package/dist/ai/types.contract.d.ts +2 -0
  8. package/dist/ai/types.contract.d.ts.map +1 -0
  9. package/dist/ai/types.contract.js +139 -0
  10. package/dist/ai/types.contract.js.map +1 -0
  11. package/dist/ai/types.d.ts +201 -0
  12. package/dist/ai/types.d.ts.map +1 -0
  13. package/dist/ai/types.js +2 -0
  14. package/dist/ai/types.js.map +1 -0
  15. package/dist/components/agent-run/agent-run.class.d.ts +184 -0
  16. package/dist/components/agent-run/agent-run.class.d.ts.map +1 -0
  17. package/dist/components/agent-run/agent-run.class.js +473 -0
  18. package/dist/components/agent-run/agent-run.class.js.map +1 -0
  19. package/dist/components/agent-run/agent-run.d.ts +2 -0
  20. package/dist/components/agent-run/agent-run.d.ts.map +1 -0
  21. package/dist/components/agent-run/agent-run.js +5 -0
  22. package/dist/components/agent-run/agent-run.js.map +1 -0
  23. package/dist/components/agent-run/agent-run.styles.d.ts +2 -0
  24. package/dist/components/agent-run/agent-run.styles.d.ts.map +1 -0
  25. package/dist/components/agent-run/agent-run.styles.js +159 -0
  26. package/dist/components/agent-run/agent-run.styles.js.map +1 -0
  27. package/dist/components/agent-trace/agent-trace.class.d.ts +111 -0
  28. package/dist/components/agent-trace/agent-trace.class.d.ts.map +1 -0
  29. package/dist/components/agent-trace/agent-trace.class.js +221 -0
  30. package/dist/components/agent-trace/agent-trace.class.js.map +1 -0
  31. package/dist/components/agent-trace/agent-trace.d.ts +5 -0
  32. package/dist/components/agent-trace/agent-trace.d.ts.map +1 -0
  33. package/dist/components/agent-trace/agent-trace.js +8 -0
  34. package/dist/components/agent-trace/agent-trace.js.map +1 -0
  35. package/dist/components/agent-trace/agent-trace.styles.d.ts +2 -0
  36. package/dist/components/agent-trace/agent-trace.styles.d.ts.map +1 -0
  37. package/dist/components/agent-trace/agent-trace.styles.js +61 -0
  38. package/dist/components/agent-trace/agent-trace.styles.js.map +1 -0
  39. package/dist/components/agent-workspace/agent-workspace.class.d.ts +146 -0
  40. package/dist/components/agent-workspace/agent-workspace.class.d.ts.map +1 -0
  41. package/dist/components/agent-workspace/agent-workspace.class.js +332 -0
  42. package/dist/components/agent-workspace/agent-workspace.class.js.map +1 -0
  43. package/dist/components/agent-workspace/agent-workspace.d.ts +2 -0
  44. package/dist/components/agent-workspace/agent-workspace.d.ts.map +1 -0
  45. package/dist/components/agent-workspace/agent-workspace.js +5 -0
  46. package/dist/components/agent-workspace/agent-workspace.js.map +1 -0
  47. package/dist/components/agent-workspace/agent-workspace.styles.d.ts +2 -0
  48. package/dist/components/agent-workspace/agent-workspace.styles.d.ts.map +1 -0
  49. package/dist/components/agent-workspace/agent-workspace.styles.js +134 -0
  50. package/dist/components/agent-workspace/agent-workspace.styles.js.map +1 -0
  51. package/dist/components/app-rail/app-rail.styles.d.ts.map +1 -1
  52. package/dist/components/app-rail/app-rail.styles.js +4 -0
  53. package/dist/components/app-rail/app-rail.styles.js.map +1 -1
  54. package/dist/components/avatar/avatar.class.d.ts +3 -3
  55. package/dist/components/avatar/avatar.class.d.ts.map +1 -1
  56. package/dist/components/avatar/avatar.class.js +8 -10
  57. package/dist/components/avatar/avatar.class.js.map +1 -1
  58. package/dist/components/chart/chart.class.d.ts +1 -0
  59. package/dist/components/chart/chart.class.d.ts.map +1 -1
  60. package/dist/components/chart/chart.class.js +9 -3
  61. package/dist/components/chart/chart.class.js.map +1 -1
  62. package/dist/components/chat-message/chat-message.class.d.ts +45 -4
  63. package/dist/components/chat-message/chat-message.class.d.ts.map +1 -1
  64. package/dist/components/chat-message/chat-message.class.js +98 -8
  65. package/dist/components/chat-message/chat-message.class.js.map +1 -1
  66. package/dist/components/chat-message/chat-message.styles.d.ts.map +1 -1
  67. package/dist/components/chat-message/chat-message.styles.js +14 -0
  68. package/dist/components/chat-message/chat-message.styles.js.map +1 -1
  69. package/dist/components/context-inspector/context-inspector.class.d.ts +114 -0
  70. package/dist/components/context-inspector/context-inspector.class.d.ts.map +1 -0
  71. package/dist/components/context-inspector/context-inspector.class.js +222 -0
  72. package/dist/components/context-inspector/context-inspector.class.js.map +1 -0
  73. package/dist/components/context-inspector/context-inspector.d.ts +7 -0
  74. package/dist/components/context-inspector/context-inspector.d.ts.map +1 -0
  75. package/dist/components/context-inspector/context-inspector.js +10 -0
  76. package/dist/components/context-inspector/context-inspector.js.map +1 -0
  77. package/dist/components/context-inspector/context-inspector.styles.d.ts +2 -0
  78. package/dist/components/context-inspector/context-inspector.styles.d.ts.map +1 -0
  79. package/dist/components/context-inspector/context-inspector.styles.js +98 -0
  80. package/dist/components/context-inspector/context-inspector.styles.js.map +1 -0
  81. package/dist/components/conversation-item/conversation-item.class.d.ts +8 -0
  82. package/dist/components/conversation-item/conversation-item.class.d.ts.map +1 -1
  83. package/dist/components/conversation-item/conversation-item.class.js +50 -22
  84. package/dist/components/conversation-item/conversation-item.class.js.map +1 -1
  85. package/dist/components/conversation-item/conversation-item.styles.d.ts.map +1 -1
  86. package/dist/components/conversation-item/conversation-item.styles.js +11 -0
  87. package/dist/components/conversation-item/conversation-item.styles.js.map +1 -1
  88. package/dist/components/csv-viewer/csv-viewer.styles.d.ts.map +1 -1
  89. package/dist/components/csv-viewer/csv-viewer.styles.js +8 -2
  90. package/dist/components/csv-viewer/csv-viewer.styles.js.map +1 -1
  91. package/dist/components/dashboard-grid/dashboard-grid.class.d.ts +162 -0
  92. package/dist/components/dashboard-grid/dashboard-grid.class.d.ts.map +1 -0
  93. package/dist/components/dashboard-grid/dashboard-grid.class.js +569 -0
  94. package/dist/components/dashboard-grid/dashboard-grid.class.js.map +1 -0
  95. package/dist/components/dashboard-grid/dashboard-grid.d.ts +6 -0
  96. package/dist/components/dashboard-grid/dashboard-grid.d.ts.map +1 -0
  97. package/dist/components/dashboard-grid/dashboard-grid.js +9 -0
  98. package/dist/components/dashboard-grid/dashboard-grid.js.map +1 -0
  99. package/dist/components/dashboard-grid/dashboard-grid.styles.d.ts +2 -0
  100. package/dist/components/dashboard-grid/dashboard-grid.styles.d.ts.map +1 -0
  101. package/dist/components/dashboard-grid/dashboard-grid.styles.js +86 -0
  102. package/dist/components/dashboard-grid/dashboard-grid.styles.js.map +1 -0
  103. package/dist/components/dashboard-grid/layout.d.ts +103 -0
  104. package/dist/components/dashboard-grid/layout.d.ts.map +1 -0
  105. package/dist/components/dashboard-grid/layout.js +94 -0
  106. package/dist/components/dashboard-grid/layout.js.map +1 -0
  107. package/dist/components/date-picker/date-input.class.d.ts +8 -0
  108. package/dist/components/date-picker/date-input.class.d.ts.map +1 -1
  109. package/dist/components/date-picker/date-input.class.js +10 -0
  110. package/dist/components/date-picker/date-input.class.js.map +1 -1
  111. package/dist/components/date-picker/date-input.styles.d.ts.map +1 -1
  112. package/dist/components/date-picker/date-input.styles.js +39 -2
  113. package/dist/components/date-picker/date-input.styles.js.map +1 -1
  114. package/dist/components/diff-view/diff-view.class.d.ts +20 -2
  115. package/dist/components/diff-view/diff-view.class.d.ts.map +1 -1
  116. package/dist/components/diff-view/diff-view.class.js +107 -13
  117. package/dist/components/diff-view/diff-view.class.js.map +1 -1
  118. package/dist/components/diff-view/diff-view.styles.d.ts.map +1 -1
  119. package/dist/components/diff-view/diff-view.styles.js +5 -0
  120. package/dist/components/diff-view/diff-view.styles.js.map +1 -1
  121. package/dist/components/document-compare/document-compare.class.d.ts +131 -0
  122. package/dist/components/document-compare/document-compare.class.d.ts.map +1 -0
  123. package/dist/components/document-compare/document-compare.class.js +214 -0
  124. package/dist/components/document-compare/document-compare.class.js.map +1 -0
  125. package/dist/components/document-compare/document-compare.d.ts +2 -0
  126. package/dist/components/document-compare/document-compare.d.ts.map +1 -0
  127. package/dist/components/document-compare/document-compare.js +5 -0
  128. package/dist/components/document-compare/document-compare.js.map +1 -0
  129. package/dist/components/document-compare/document-compare.styles.d.ts +2 -0
  130. package/dist/components/document-compare/document-compare.styles.d.ts.map +1 -0
  131. package/dist/components/document-compare/document-compare.styles.js +65 -0
  132. package/dist/components/document-compare/document-compare.styles.js.map +1 -0
  133. package/dist/components/document-library/document-library.class.d.ts +154 -0
  134. package/dist/components/document-library/document-library.class.d.ts.map +1 -0
  135. package/dist/components/document-library/document-library.class.js +399 -0
  136. package/dist/components/document-library/document-library.class.js.map +1 -0
  137. package/dist/components/document-library/document-library.d.ts +9 -0
  138. package/dist/components/document-library/document-library.d.ts.map +1 -0
  139. package/dist/components/document-library/document-library.js +12 -0
  140. package/dist/components/document-library/document-library.js.map +1 -0
  141. package/dist/components/document-library/document-library.styles.d.ts +2 -0
  142. package/dist/components/document-library/document-library.styles.d.ts.map +1 -0
  143. package/dist/components/document-library/document-library.styles.js +77 -0
  144. package/dist/components/document-library/document-library.styles.js.map +1 -0
  145. package/dist/components/drilldown-panel/drilldown-panel.class.d.ts +148 -0
  146. package/dist/components/drilldown-panel/drilldown-panel.class.d.ts.map +1 -0
  147. package/dist/components/drilldown-panel/drilldown-panel.class.js +241 -0
  148. package/dist/components/drilldown-panel/drilldown-panel.class.js.map +1 -0
  149. package/dist/components/drilldown-panel/drilldown-panel.d.ts +9 -0
  150. package/dist/components/drilldown-panel/drilldown-panel.d.ts.map +1 -0
  151. package/dist/components/drilldown-panel/drilldown-panel.js +12 -0
  152. package/dist/components/drilldown-panel/drilldown-panel.js.map +1 -0
  153. package/dist/components/drilldown-panel/drilldown-panel.styles.d.ts +2 -0
  154. package/dist/components/drilldown-panel/drilldown-panel.styles.d.ts.map +1 -0
  155. package/dist/components/drilldown-panel/drilldown-panel.styles.js +49 -0
  156. package/dist/components/drilldown-panel/drilldown-panel.styles.js.map +1 -0
  157. package/dist/components/emoji-picker/emoji-data-loader.d.ts.map +1 -1
  158. package/dist/components/emoji-picker/emoji-data-loader.js +1 -1
  159. package/dist/components/emoji-picker/emoji-data-loader.js.map +1 -1
  160. package/dist/components/emoji-picker/emoji-picker.class.d.ts +18 -1
  161. package/dist/components/emoji-picker/emoji-picker.class.d.ts.map +1 -1
  162. package/dist/components/emoji-picker/emoji-picker.class.js +152 -28
  163. package/dist/components/emoji-picker/emoji-picker.class.js.map +1 -1
  164. package/dist/components/emoji-picker/emoji-picker.styles.d.ts.map +1 -1
  165. package/dist/components/emoji-picker/emoji-picker.styles.js +26 -2
  166. package/dist/components/emoji-picker/emoji-picker.styles.js.map +1 -1
  167. package/dist/components/entity-dossier/entity-dossier.class.d.ts +132 -0
  168. package/dist/components/entity-dossier/entity-dossier.class.d.ts.map +1 -0
  169. package/dist/components/entity-dossier/entity-dossier.class.js +187 -0
  170. package/dist/components/entity-dossier/entity-dossier.class.js.map +1 -0
  171. package/dist/components/entity-dossier/entity-dossier.d.ts +9 -0
  172. package/dist/components/entity-dossier/entity-dossier.d.ts.map +1 -0
  173. package/dist/components/entity-dossier/entity-dossier.js +12 -0
  174. package/dist/components/entity-dossier/entity-dossier.js.map +1 -0
  175. package/dist/components/entity-dossier/entity-dossier.styles.d.ts +2 -0
  176. package/dist/components/entity-dossier/entity-dossier.styles.d.ts.map +1 -0
  177. package/dist/components/entity-dossier/entity-dossier.styles.js +30 -0
  178. package/dist/components/entity-dossier/entity-dossier.styles.js.map +1 -0
  179. package/dist/components/eval-dataset/eval-dataset.class.d.ts +145 -0
  180. package/dist/components/eval-dataset/eval-dataset.class.d.ts.map +1 -0
  181. package/dist/components/eval-dataset/eval-dataset.class.js +307 -0
  182. package/dist/components/eval-dataset/eval-dataset.class.js.map +1 -0
  183. package/dist/components/eval-dataset/eval-dataset.d.ts +7 -0
  184. package/dist/components/eval-dataset/eval-dataset.d.ts.map +1 -0
  185. package/dist/components/eval-dataset/eval-dataset.js +10 -0
  186. package/dist/components/eval-dataset/eval-dataset.js.map +1 -0
  187. package/dist/components/eval-dataset/eval-dataset.styles.d.ts +2 -0
  188. package/dist/components/eval-dataset/eval-dataset.styles.d.ts.map +1 -0
  189. package/dist/components/eval-dataset/eval-dataset.styles.js +76 -0
  190. package/dist/components/eval-dataset/eval-dataset.styles.js.map +1 -0
  191. package/dist/components/eval-result/eval-result.class.d.ts +115 -0
  192. package/dist/components/eval-result/eval-result.class.d.ts.map +1 -0
  193. package/dist/components/eval-result/eval-result.class.js +165 -0
  194. package/dist/components/eval-result/eval-result.class.js.map +1 -0
  195. package/dist/components/eval-result/eval-result.d.ts +5 -0
  196. package/dist/components/eval-result/eval-result.d.ts.map +1 -0
  197. package/dist/components/eval-result/eval-result.js +8 -0
  198. package/dist/components/eval-result/eval-result.js.map +1 -0
  199. package/dist/components/eval-result/eval-result.styles.d.ts +2 -0
  200. package/dist/components/eval-result/eval-result.styles.d.ts.map +1 -0
  201. package/dist/components/eval-result/eval-result.styles.js +47 -0
  202. package/dist/components/eval-result/eval-result.styles.js.map +1 -0
  203. package/dist/components/evaluation-run/evaluation-run.class.d.ts +168 -0
  204. package/dist/components/evaluation-run/evaluation-run.class.d.ts.map +1 -0
  205. package/dist/components/evaluation-run/evaluation-run.class.js +333 -0
  206. package/dist/components/evaluation-run/evaluation-run.class.js.map +1 -0
  207. package/dist/components/evaluation-run/evaluation-run.d.ts +2 -0
  208. package/dist/components/evaluation-run/evaluation-run.d.ts.map +1 -0
  209. package/dist/components/evaluation-run/evaluation-run.js +5 -0
  210. package/dist/components/evaluation-run/evaluation-run.js.map +1 -0
  211. package/dist/components/evaluation-run/evaluation-run.styles.d.ts +2 -0
  212. package/dist/components/evaluation-run/evaluation-run.styles.d.ts.map +1 -0
  213. package/dist/components/evaluation-run/evaluation-run.styles.js +73 -0
  214. package/dist/components/evaluation-run/evaluation-run.styles.js.map +1 -0
  215. package/dist/components/filter-bar/filter-bar.class.d.ts +200 -0
  216. package/dist/components/filter-bar/filter-bar.class.d.ts.map +1 -0
  217. package/dist/components/filter-bar/filter-bar.class.js +322 -0
  218. package/dist/components/filter-bar/filter-bar.class.js.map +1 -0
  219. package/dist/components/filter-bar/filter-bar.d.ts +10 -0
  220. package/dist/components/filter-bar/filter-bar.d.ts.map +1 -0
  221. package/dist/components/filter-bar/filter-bar.js +13 -0
  222. package/dist/components/filter-bar/filter-bar.js.map +1 -0
  223. package/dist/components/filter-bar/filter-bar.styles.d.ts +2 -0
  224. package/dist/components/filter-bar/filter-bar.styles.d.ts.map +1 -0
  225. package/dist/components/filter-bar/filter-bar.styles.js +37 -0
  226. package/dist/components/filter-bar/filter-bar.styles.js.map +1 -0
  227. package/dist/components/graph-query-builder/graph-query-builder.class.d.ts +242 -0
  228. package/dist/components/graph-query-builder/graph-query-builder.class.d.ts.map +1 -0
  229. package/dist/components/graph-query-builder/graph-query-builder.class.js +511 -0
  230. package/dist/components/graph-query-builder/graph-query-builder.class.js.map +1 -0
  231. package/dist/components/graph-query-builder/graph-query-builder.d.ts +7 -0
  232. package/dist/components/graph-query-builder/graph-query-builder.d.ts.map +1 -0
  233. package/dist/components/graph-query-builder/graph-query-builder.js +10 -0
  234. package/dist/components/graph-query-builder/graph-query-builder.js.map +1 -0
  235. package/dist/components/graph-query-builder/graph-query-builder.styles.d.ts +2 -0
  236. package/dist/components/graph-query-builder/graph-query-builder.styles.d.ts.map +1 -0
  237. package/dist/components/graph-query-builder/graph-query-builder.styles.js +170 -0
  238. package/dist/components/graph-query-builder/graph-query-builder.styles.js.map +1 -0
  239. package/dist/components/grounding-summary/grounding-summary.class.d.ts +80 -0
  240. package/dist/components/grounding-summary/grounding-summary.class.d.ts.map +1 -0
  241. package/dist/components/grounding-summary/grounding-summary.class.js +182 -0
  242. package/dist/components/grounding-summary/grounding-summary.class.js.map +1 -0
  243. package/dist/components/grounding-summary/grounding-summary.d.ts +5 -0
  244. package/dist/components/grounding-summary/grounding-summary.d.ts.map +1 -0
  245. package/dist/components/grounding-summary/grounding-summary.js +8 -0
  246. package/dist/components/grounding-summary/grounding-summary.js.map +1 -0
  247. package/dist/components/grounding-summary/grounding-summary.styles.d.ts +2 -0
  248. package/dist/components/grounding-summary/grounding-summary.styles.d.ts.map +1 -0
  249. package/dist/components/grounding-summary/grounding-summary.styles.js +88 -0
  250. package/dist/components/grounding-summary/grounding-summary.styles.js.map +1 -0
  251. package/dist/components/heatmap/heatmap.class.d.ts +14 -0
  252. package/dist/components/heatmap/heatmap.class.d.ts.map +1 -1
  253. package/dist/components/heatmap/heatmap.class.js +165 -0
  254. package/dist/components/heatmap/heatmap.class.js.map +1 -1
  255. package/dist/components/ingestion-queue/ingestion-queue.class.d.ts +125 -0
  256. package/dist/components/ingestion-queue/ingestion-queue.class.d.ts.map +1 -0
  257. package/dist/components/ingestion-queue/ingestion-queue.class.js +276 -0
  258. package/dist/components/ingestion-queue/ingestion-queue.class.js.map +1 -0
  259. package/dist/components/ingestion-queue/ingestion-queue.d.ts +2 -0
  260. package/dist/components/ingestion-queue/ingestion-queue.d.ts.map +1 -0
  261. package/dist/components/ingestion-queue/ingestion-queue.js +5 -0
  262. package/dist/components/ingestion-queue/ingestion-queue.js.map +1 -0
  263. package/dist/components/ingestion-queue/ingestion-queue.styles.d.ts +2 -0
  264. package/dist/components/ingestion-queue/ingestion-queue.styles.d.ts.map +1 -0
  265. package/dist/components/ingestion-queue/ingestion-queue.styles.js +138 -0
  266. package/dist/components/ingestion-queue/ingestion-queue.styles.js.map +1 -0
  267. package/dist/components/knowledge-base/knowledge-base.class.d.ts +136 -0
  268. package/dist/components/knowledge-base/knowledge-base.class.d.ts.map +1 -0
  269. package/dist/components/knowledge-base/knowledge-base.class.js +360 -0
  270. package/dist/components/knowledge-base/knowledge-base.class.js.map +1 -0
  271. package/dist/components/knowledge-base/knowledge-base.d.ts +7 -0
  272. package/dist/components/knowledge-base/knowledge-base.d.ts.map +1 -0
  273. package/dist/components/knowledge-base/knowledge-base.js +10 -0
  274. package/dist/components/knowledge-base/knowledge-base.js.map +1 -0
  275. package/dist/components/knowledge-base/knowledge-base.styles.d.ts +2 -0
  276. package/dist/components/knowledge-base/knowledge-base.styles.d.ts.map +1 -0
  277. package/dist/components/knowledge-base/knowledge-base.styles.js +94 -0
  278. package/dist/components/knowledge-base/knowledge-base.styles.js.map +1 -0
  279. package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.class.d.ts +196 -0
  280. package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.class.d.ts.map +1 -0
  281. package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.class.js +477 -0
  282. package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.class.js.map +1 -0
  283. package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.d.ts +11 -0
  284. package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.d.ts.map +1 -0
  285. package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.js +14 -0
  286. package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.js.map +1 -0
  287. package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.styles.d.ts +2 -0
  288. package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.styles.d.ts.map +1 -0
  289. package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.styles.js +76 -0
  290. package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.styles.js.map +1 -0
  291. package/dist/components/markdown/markdown-core.class.d.ts +10 -3
  292. package/dist/components/markdown/markdown-core.class.d.ts.map +1 -1
  293. package/dist/components/markdown/markdown-core.class.js +33 -4
  294. package/dist/components/markdown/markdown-core.class.js.map +1 -1
  295. package/dist/components/markdown/markdown.class.d.ts +10 -3
  296. package/dist/components/markdown/markdown.class.d.ts.map +1 -1
  297. package/dist/components/markdown/markdown.class.js +33 -4
  298. package/dist/components/markdown/markdown.class.js.map +1 -1
  299. package/dist/components/memory-panel/memory-panel.class.d.ts +146 -0
  300. package/dist/components/memory-panel/memory-panel.class.d.ts.map +1 -0
  301. package/dist/components/memory-panel/memory-panel.class.js +303 -0
  302. package/dist/components/memory-panel/memory-panel.class.js.map +1 -0
  303. package/dist/components/memory-panel/memory-panel.d.ts +5 -0
  304. package/dist/components/memory-panel/memory-panel.d.ts.map +1 -0
  305. package/dist/components/memory-panel/memory-panel.js +8 -0
  306. package/dist/components/memory-panel/memory-panel.js.map +1 -0
  307. package/dist/components/memory-panel/memory-panel.styles.d.ts +2 -0
  308. package/dist/components/memory-panel/memory-panel.styles.d.ts.map +1 -0
  309. package/dist/components/memory-panel/memory-panel.styles.js +139 -0
  310. package/dist/components/memory-panel/memory-panel.styles.js.map +1 -0
  311. package/dist/components/notebook-viewer/notebook-viewer.class.d.ts +9 -2
  312. package/dist/components/notebook-viewer/notebook-viewer.class.d.ts.map +1 -1
  313. package/dist/components/notebook-viewer/notebook-viewer.class.js +27 -4
  314. package/dist/components/notebook-viewer/notebook-viewer.class.js.map +1 -1
  315. package/dist/components/overlay/popover.class.d.ts +39 -0
  316. package/dist/components/overlay/popover.class.d.ts.map +1 -1
  317. package/dist/components/overlay/popover.class.js +53 -3
  318. package/dist/components/overlay/popover.class.js.map +1 -1
  319. package/dist/components/overlay/tooltip.class.d.ts +43 -0
  320. package/dist/components/overlay/tooltip.class.d.ts.map +1 -1
  321. package/dist/components/overlay/tooltip.class.js +66 -4
  322. package/dist/components/overlay/tooltip.class.js.map +1 -1
  323. package/dist/components/policy-summary/policy-summary.class.d.ts +76 -0
  324. package/dist/components/policy-summary/policy-summary.class.d.ts.map +1 -0
  325. package/dist/components/policy-summary/policy-summary.class.js +125 -0
  326. package/dist/components/policy-summary/policy-summary.class.js.map +1 -0
  327. package/dist/components/policy-summary/policy-summary.d.ts +6 -0
  328. package/dist/components/policy-summary/policy-summary.d.ts.map +1 -0
  329. package/dist/components/policy-summary/policy-summary.js +9 -0
  330. package/dist/components/policy-summary/policy-summary.js.map +1 -0
  331. package/dist/components/policy-summary/policy-summary.styles.d.ts +2 -0
  332. package/dist/components/policy-summary/policy-summary.styles.d.ts.map +1 -0
  333. package/dist/components/policy-summary/policy-summary.styles.js +68 -0
  334. package/dist/components/policy-summary/policy-summary.styles.js.map +1 -0
  335. package/dist/components/query-builder/query-builder.class.d.ts +180 -0
  336. package/dist/components/query-builder/query-builder.class.d.ts.map +1 -0
  337. package/dist/components/query-builder/query-builder.class.js +415 -0
  338. package/dist/components/query-builder/query-builder.class.js.map +1 -0
  339. package/dist/components/query-builder/query-builder.d.ts +9 -0
  340. package/dist/components/query-builder/query-builder.d.ts.map +1 -0
  341. package/dist/components/query-builder/query-builder.js +12 -0
  342. package/dist/components/query-builder/query-builder.js.map +1 -0
  343. package/dist/components/query-builder/query-builder.styles.d.ts +2 -0
  344. package/dist/components/query-builder/query-builder.styles.d.ts.map +1 -0
  345. package/dist/components/query-builder/query-builder.styles.js +77 -0
  346. package/dist/components/query-builder/query-builder.styles.js.map +1 -0
  347. package/dist/components/retrieval-results/retrieval-results.class.d.ts +151 -0
  348. package/dist/components/retrieval-results/retrieval-results.class.d.ts.map +1 -0
  349. package/dist/components/retrieval-results/retrieval-results.class.js +340 -0
  350. package/dist/components/retrieval-results/retrieval-results.class.js.map +1 -0
  351. package/dist/components/retrieval-results/retrieval-results.d.ts +7 -0
  352. package/dist/components/retrieval-results/retrieval-results.d.ts.map +1 -0
  353. package/dist/components/retrieval-results/retrieval-results.js +10 -0
  354. package/dist/components/retrieval-results/retrieval-results.js.map +1 -0
  355. package/dist/components/retrieval-results/retrieval-results.styles.d.ts +2 -0
  356. package/dist/components/retrieval-results/retrieval-results.styles.d.ts.map +1 -0
  357. package/dist/components/retrieval-results/retrieval-results.styles.js +94 -0
  358. package/dist/components/retrieval-results/retrieval-results.styles.js.map +1 -0
  359. package/dist/components/retrieval-search/retrieval-search.class.d.ts +127 -0
  360. package/dist/components/retrieval-search/retrieval-search.class.d.ts.map +1 -0
  361. package/dist/components/retrieval-search/retrieval-search.class.js +267 -0
  362. package/dist/components/retrieval-search/retrieval-search.class.js.map +1 -0
  363. package/dist/components/retrieval-search/retrieval-search.d.ts +8 -0
  364. package/dist/components/retrieval-search/retrieval-search.d.ts.map +1 -0
  365. package/dist/components/retrieval-search/retrieval-search.js +11 -0
  366. package/dist/components/retrieval-search/retrieval-search.js.map +1 -0
  367. package/dist/components/retrieval-search/retrieval-search.styles.d.ts +2 -0
  368. package/dist/components/retrieval-search/retrieval-search.styles.d.ts.map +1 -0
  369. package/dist/components/retrieval-search/retrieval-search.styles.js +75 -0
  370. package/dist/components/retrieval-search/retrieval-search.styles.js.map +1 -0
  371. package/dist/components/retrieval-trace/retrieval-trace.class.d.ts +101 -0
  372. package/dist/components/retrieval-trace/retrieval-trace.class.d.ts.map +1 -0
  373. package/dist/components/retrieval-trace/retrieval-trace.class.js +215 -0
  374. package/dist/components/retrieval-trace/retrieval-trace.class.js.map +1 -0
  375. package/dist/components/retrieval-trace/retrieval-trace.d.ts +4 -0
  376. package/dist/components/retrieval-trace/retrieval-trace.d.ts.map +1 -0
  377. package/dist/components/retrieval-trace/retrieval-trace.js +7 -0
  378. package/dist/components/retrieval-trace/retrieval-trace.js.map +1 -0
  379. package/dist/components/retrieval-trace/retrieval-trace.styles.d.ts +2 -0
  380. package/dist/components/retrieval-trace/retrieval-trace.styles.d.ts.map +1 -0
  381. package/dist/components/retrieval-trace/retrieval-trace.styles.js +116 -0
  382. package/dist/components/retrieval-trace/retrieval-trace.styles.js.map +1 -0
  383. package/dist/components/rubric-form/rubric-form.class.d.ts.map +1 -1
  384. package/dist/components/rubric-form/rubric-form.class.js +1 -0
  385. package/dist/components/rubric-form/rubric-form.class.js.map +1 -1
  386. package/dist/components/spreadsheet-viewer/spreadsheet-viewer.styles.d.ts.map +1 -1
  387. package/dist/components/spreadsheet-viewer/spreadsheet-viewer.styles.js +8 -2
  388. package/dist/components/spreadsheet-viewer/spreadsheet-viewer.styles.js.map +1 -1
  389. package/dist/components/thread-list/thread-list.class.d.ts +38 -2
  390. package/dist/components/thread-list/thread-list.class.d.ts.map +1 -1
  391. package/dist/components/thread-list/thread-list.class.js +41 -6
  392. package/dist/components/thread-list/thread-list.class.js.map +1 -1
  393. package/dist/components/tool-timeline/tool-timeline.class.d.ts +140 -0
  394. package/dist/components/tool-timeline/tool-timeline.class.d.ts.map +1 -0
  395. package/dist/components/tool-timeline/tool-timeline.class.js +293 -0
  396. package/dist/components/tool-timeline/tool-timeline.class.js.map +1 -0
  397. package/dist/components/tool-timeline/tool-timeline.d.ts +2 -0
  398. package/dist/components/tool-timeline/tool-timeline.d.ts.map +1 -0
  399. package/dist/components/tool-timeline/tool-timeline.js +5 -0
  400. package/dist/components/tool-timeline/tool-timeline.js.map +1 -0
  401. package/dist/components/tool-timeline/tool-timeline.styles.d.ts +2 -0
  402. package/dist/components/tool-timeline/tool-timeline.styles.d.ts.map +1 -0
  403. package/dist/components/tool-timeline/tool-timeline.styles.js +148 -0
  404. package/dist/components/tool-timeline/tool-timeline.styles.js.map +1 -0
  405. package/dist/components/trace-tree/trace-tree.class.d.ts.map +1 -1
  406. package/dist/components/trace-tree/trace-tree.class.js +3 -1
  407. package/dist/components/trace-tree/trace-tree.class.js.map +1 -1
  408. package/dist/internal/localization.d.ts +1 -1
  409. package/dist/internal/localization.d.ts.map +1 -1
  410. package/dist/internal/localization.js +238 -0
  411. package/dist/internal/localization.js.map +1 -1
  412. package/dist/internal/positioner.d.ts +28 -1
  413. package/dist/internal/positioner.d.ts.map +1 -1
  414. package/dist/internal/positioner.js +12 -1
  415. package/dist/internal/positioner.js.map +1 -1
  416. package/dist/internal/root-registration-allowlist.d.ts +2 -2
  417. package/dist/internal/root-registration-allowlist.d.ts.map +1 -1
  418. package/dist/internal/root-registration-allowlist.js +25 -0
  419. package/dist/internal/root-registration-allowlist.js.map +1 -1
  420. package/dist/internal/tokens.styles.d.ts.map +1 -1
  421. package/dist/internal/tokens.styles.js +2 -0
  422. package/dist/internal/tokens.styles.js.map +1 -1
  423. package/dist/lyra.d.ts +51 -1
  424. package/dist/lyra.d.ts.map +1 -1
  425. package/dist/lyra.js +49 -0
  426. package/dist/lyra.js.map +1 -1
  427. package/llms-full.txt +519 -15
  428. package/llms.txt +7 -0
  429. package/package.json +53 -1
  430. package/vscode-css-data.json +21 -0
  431. package/vscode-html-data.json +1205 -14
  432. package/web-types.json +1297 -60
@@ -0,0 +1,3 @@
1
+ /** Provider-neutral data contracts shared by Lyra's AI and agent components. */
2
+ export * from './types.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ai/index.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,cAAc,YAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** Provider-neutral data contracts shared by Lyra's AI and agent components. */
2
+ export * from './types.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ai/index.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,cAAc,YAAY,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.contract.d.ts","sourceRoot":"","sources":["../../src/ai/types.contract.ts"],"names":[],"mappings":""}
@@ -0,0 +1,139 @@
1
+ /**
2
+ * Compile-time-only structural assertions for `./types.ts` -- there is no runtime behavior to
3
+ * test in a types-only module, so "test" here means "fails `tsc` if a shape is wrong", the same
4
+ * idea as this package's root-level `type-tests/*.ts` files (see `tsconfig.type-tests.json`).
5
+ *
6
+ * Deliberately NOT named `types.test.ts`: this package's `tsconfig.json` excludes
7
+ * `src/**\/*.test.ts` from the very `tsc -p tsconfig.json` run that both `pnpm build` and
8
+ * `pnpm lint` use to type-check `src/ai/**` (verified empirically -- a deliberately wrong
9
+ * assignment in a `src/ai/types.test.ts` was silently accepted by every gate), and
10
+ * `web-test-runner.config.js`'s `files: 'src/**\/*.test.ts'` glob would additionally load a
11
+ * `types.test.ts` here as a zero-assertion browser spec (harmless, but pointless, and it still
12
+ * wouldn't type-check anything -- `wtr`'s `esbuildPlugin` transpiles, it does not type-check).
13
+ * `tsconfig.type-tests.json`'s own `include` (`type-tests/**\/*.ts`, `src/**\/*.d.ts`) does not
14
+ * reach a plain `.ts` file under `src/ai/` either. A plain, non-`.test.ts`-suffixed file under
15
+ * `src/` is therefore the only name that is actually covered by `tsc -p tsconfig.json` -- i.e.
16
+ * the only name that makes a wrong shape here fail `pnpm build`/`pnpm lint` for real.
17
+ *
18
+ * Nothing below is ever executed (`declare const` bindings have no runtime value, and the
19
+ * "binder" functions are declared but never called) -- this file compiles into a practically
20
+ * empty `dist/ai/types.contract.js`, and a wrong shape fails `tsc` at the offending line instead.
21
+ */
22
+ // --- Standalone literal construction: compiles only if every required field is present with the
23
+ // --- right type, and no extra/misspelled field sneaks past excess-property checking. ---
24
+ const status = { kind: 'running', message: 'Searching…' };
25
+ const step = {
26
+ id: 'step-1',
27
+ kind: 'retrieval',
28
+ label: 'Searching knowledge base',
29
+ status,
30
+ startedAt: 0,
31
+ endedAt: 120,
32
+ };
33
+ const run = {
34
+ id: 'run-1',
35
+ status,
36
+ startedAt: 0,
37
+ endedAt: 4200,
38
+ model: 'gpt-5',
39
+ costEstimate: 0.0042,
40
+ steps: [step],
41
+ };
42
+ const documentRef = {
43
+ id: 'doc-1',
44
+ name: 'annual_report.pdf',
45
+ mimeType: 'application/pdf',
46
+ uri: 'https://example.com/annual_report.pdf',
47
+ version: '3',
48
+ };
49
+ const citation = {
50
+ id: 'cite-1',
51
+ chunkId: 'chunk-1',
52
+ sourceId: 'doc-1',
53
+ span: { start: 0, end: 42 },
54
+ label: '[1]',
55
+ };
56
+ const retrievalQuery = {
57
+ text: 'quarterly revenue growth',
58
+ filters: { year: 2026 },
59
+ mode: 'hybrid',
60
+ scope: ['doc-1', 'doc-2'],
61
+ };
62
+ void retrievalQuery;
63
+ const retrievalChunk = {
64
+ id: 'chunk-1',
65
+ text: 'Revenue grew 12% year over year…',
66
+ score: 0.87,
67
+ source: documentRef,
68
+ metadata: { page: 12 },
69
+ };
70
+ void retrievalChunk;
71
+ const groundingAssessment = {
72
+ supportedClaims: 8,
73
+ unsupportedClaims: 1,
74
+ coverage: 0.89,
75
+ confidence: 0.7,
76
+ warnings: ['One claim could not be matched to a source.'],
77
+ };
78
+ void groundingAssessment;
79
+ const chatMessage = {
80
+ id: 'msg-1',
81
+ role: 'assistant',
82
+ status: 'sent',
83
+ timestamp: new Date(),
84
+ text: 'Revenue grew 12% year over year.',
85
+ attachments: [documentRef],
86
+ };
87
+ const toolInvocation = {
88
+ id: 'call-1',
89
+ name: 'web_search',
90
+ args: { query: 'quarterly revenue growth' },
91
+ status: 'success',
92
+ result: { hits: 3 },
93
+ };
94
+ const runLifecycleDetail = { runId: run.id, status };
95
+ void runLifecycleDetail;
96
+ const retrievalProgressDetail = { queryId: 'query-1', stage: 'ranking', progress: 0.5 };
97
+ void retrievalProgressDetail;
98
+ const citationSelectDetail = { citation };
99
+ void citationSelectDetail;
100
+ const toolApprovalDetail = { invocationId: toolInvocation.id, approved: true };
101
+ void toolApprovalDetail;
102
+ const cancelDetail = { reason: 'user-cancelled' };
103
+ void cancelDetail;
104
+ const retryDetail = { attempt: 2 };
105
+ void retryDetail;
106
+ const exportDetail = { format: 'markdown' };
107
+ void exportDetail;
108
+ function bindChatMessage(message) {
109
+ chatMessageEl.role = message.role;
110
+ chatMessageEl.status = message.status ?? 'sent';
111
+ chatMessageEl.timestamp = message.timestamp;
112
+ }
113
+ void bindChatMessage;
114
+ function bindToolInvocationToChip(invocation) {
115
+ toolCallChipEl.callId = invocation.id;
116
+ toolCallChipEl.name = invocation.name;
117
+ toolCallChipEl.status = invocation.status;
118
+ }
119
+ void bindToolInvocationToChip;
120
+ function bindToolInvocationToResultView(invocation) {
121
+ toolResultViewEl.toolName = invocation.name;
122
+ toolResultViewEl.args = invocation.args;
123
+ toolResultViewEl.result = invocation.result;
124
+ }
125
+ void bindToolInvocationToResultView;
126
+ function bindCitationToSourceCard(value) {
127
+ // `Citation.sourceId` is optional (a citation without a resolved source is still valid); the
128
+ // fallback empty string matches `<lr-source-card>`'s own `sourceId = ''` default.
129
+ sourceCardEl.sourceId = value.sourceId ?? '';
130
+ }
131
+ void bindCitationToSourceCard;
132
+ function bindDocumentRef(ref) {
133
+ attachmentChipEl.name = ref.name;
134
+ attachmentChipEl.mimeType = ref.mimeType ?? '';
135
+ documentPreviewEl.mimeType = ref.mimeType ?? '';
136
+ }
137
+ void bindDocumentRef;
138
+ export {};
139
+ //# sourceMappingURL=types.contract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.contract.js","sourceRoot":"","sources":["../../src/ai/types.contract.ts"],"names":[],"mappings":"AA0BA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,iGAAiG;AACjG,0FAA0F;AAE1F,MAAM,MAAM,GAAgB,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC;AAEvE,MAAM,IAAI,GAAc;IACtB,EAAE,EAAE,QAAQ;IACZ,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,0BAA0B;IACjC,MAAM;IACN,SAAS,EAAE,CAAC;IACZ,OAAO,EAAE,GAAG;CACb,CAAC;AAEF,MAAM,GAAG,GAAa;IACpB,EAAE,EAAE,OAAO;IACX,MAAM;IACN,SAAS,EAAE,CAAC;IACZ,OAAO,EAAE,IAAI;IACb,KAAK,EAAE,OAAO;IACd,YAAY,EAAE,MAAM;IACpB,KAAK,EAAE,CAAC,IAAI,CAAC;CACd,CAAC;AAEF,MAAM,WAAW,GAAgB;IAC/B,EAAE,EAAE,OAAO;IACX,IAAI,EAAE,mBAAmB;IACzB,QAAQ,EAAE,iBAAiB;IAC3B,GAAG,EAAE,uCAAuC;IAC5C,OAAO,EAAE,GAAG;CACb,CAAC;AAEF,MAAM,QAAQ,GAAa;IACzB,EAAE,EAAE,QAAQ;IACZ,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE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,UAAU,CAAC,IAAI,CAAC;IACxC,gBAAgB,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;AAC9C,CAAC;AACD,KAAK,8BAA8B,CAAC;AAGpC,SAAS,wBAAwB,CAAC,KAAe;IAC/C,6FAA6F;IAC7F,kFAAkF;IAClF,YAAY,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,IAAI,EAAE,CAAC;AAC/C,CAAC;AACD,KAAK,wBAAwB,CAAC;AAI9B,SAAS,eAAe,CAAC,GAAgB;IACvC,gBAAgB,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;IACjC,gBAAgB,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,IAAI,EAAE,CAAC;IAC/C,iBAAiB,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,IAAI,EAAE,CAAC;AAClD,CAAC;AACD,KAAK,eAAe,CAAC"}
@@ -0,0 +1,201 @@
1
+ import type { ChatMessageRole, ChatMessageStatus } from '../components/chat-message/chat-message.class.js';
2
+ import type { ToolCallStatus } from '../components/tool-call-chip/tool-call-chip.class.js';
3
+ export type { ChatMessageRole, ChatMessageStatus, ToolCallStatus };
4
+ /**
5
+ * Provider-neutral shared type surface for the agentic AI component layer built on top of this
6
+ * package's existing chat/agent/tool/graph primitives (`lr-chat-message`, `lr-citation-badge`,
7
+ * `lr-tool-call-chip`, `lr-tool-result-view`, `lr-source-card`, `lr-chunk-inspector`, etc.).
8
+ * Nothing exported here is a custom element, has a runtime side effect, or binds to any specific
9
+ * LLM/agent vendor -- it is the plain-data vocabulary that retrieval, agent-run, knowledge-graph,
10
+ * dashboard, and evaluation components compose those existing primitives around.
11
+ *
12
+ * Every shape below is deliberately structurally compatible with -- never a divergent duplicate
13
+ * of -- the prop/event shapes those existing components already expose. Where a type reuses an
14
+ * existing component's own exported type outright (`ChatMessageRole`, `ChatMessageStatus`,
15
+ * `ToolCallStatus`), it is imported and re-exported here rather than redefined. See each
16
+ * interface's own doc comment below for the specific existing component(s) it composes with.
17
+ * `types.contract.ts` (a sibling file -- see its own header for why it is deliberately not named
18
+ * `*.test.ts`) asserts this compatibility at compile time.
19
+ *
20
+ * Every `*EventDetail` type below is plain serializable data (no class instances, no functions),
21
+ * matching this package's own `*EventMap`/`*Detail` event-contract convention (e.g.
22
+ * `LyraCitationBadgeEventMap` / `CitationActivateDetail` in `citation-badge.class.ts`), since
23
+ * these are meant to cross a `CustomEvent<T>` boundary.
24
+ */
25
+ /**
26
+ * Coarse lifecycle state for a whole agent run or a single step within one. Broader than any
27
+ * single existing component's own status vocabulary (e.g. `ToolCallStatus`'s `'pending' |
28
+ * 'running' | 'success' | 'error' | 'denied'`, reused as-is by `ToolInvocation` below) because a
29
+ * run/step can also be waiting on the user (`'waiting-input'`), waiting on an approval gate
30
+ * (`'waiting-approval'`), or user-cancelled (`'cancelled'`) -- states a single tool call's own
31
+ * terminal status has no need to express.
32
+ */
33
+ export type AgentStatusKind = 'idle' | 'running' | 'queued' | 'collecting' | 'waiting-input' | 'waiting-approval' | 'done' | 'error' | 'cancelled' | (string & {});
34
+ /** A status value paired with an optional human-readable detail, e.g. `{ kind: 'error', message: 'Rate limited' }`. */
35
+ export interface AgentStatus {
36
+ kind: AgentStatusKind;
37
+ message?: string;
38
+ }
39
+ /**
40
+ * One step in an agent run's summary timeline. A coarser unit than `LyraSpan`
41
+ * (`trace-tree/span.ts`), which models a single trace span for the more detailed
42
+ * `lr-trace-tree`/`lr-span-waterfall` views -- `kind` is intentionally a free-form string here
43
+ * (not `LyraSpan['kind']`'s closed `'agent' | 'llm' | 'tool' | 'retriever' | 'embedding' |
44
+ * 'other'` union) since an agent run's own step taxonomy is application-defined.
45
+ */
46
+ export interface AgentStep {
47
+ id: string;
48
+ kind: string;
49
+ label: string;
50
+ status: AgentStatus;
51
+ /** Epoch milliseconds. */
52
+ startedAt?: number;
53
+ /** Epoch milliseconds. */
54
+ endedAt?: number;
55
+ }
56
+ /** A complete agent run: overall status plus its ordered `steps`. */
57
+ export interface AgentRun {
58
+ id: string;
59
+ status: AgentStatus;
60
+ /** Epoch milliseconds. */
61
+ startedAt?: number;
62
+ /** Epoch milliseconds. */
63
+ endedAt?: number;
64
+ model?: string;
65
+ costEstimate?: number;
66
+ steps: AgentStep[];
67
+ }
68
+ /**
69
+ * One message in a conversation, for orchestration-level components that hold/replay message
70
+ * history. `<lr-chat-message>` itself takes these as individual properties rather than one object
71
+ * prop, since it is a presentation shell around an arbitrary slotted body (see its own class
72
+ * doc) -- but `role`/`status`/`timestamp` here reuse `<lr-chat-message>`'s own exported
73
+ * `ChatMessageRole` / `ChatMessageStatus` types and its own `Date | string` timestamp shape
74
+ * verbatim, so spreading a `ChatMessage`'s fields onto a `<lr-chat-message>` element's properties
75
+ * (`message.role -> el.role`, `message.status -> el.status`, `message.timestamp -> el.timestamp`)
76
+ * type-checks with no conversion.
77
+ */
78
+ export interface ChatMessage {
79
+ id: string;
80
+ role: ChatMessageRole;
81
+ status?: ChatMessageStatus;
82
+ timestamp?: Date | string;
83
+ /** 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. */
84
+ text?: string;
85
+ attachments?: DocumentRef[];
86
+ }
87
+ /**
88
+ * One tool/function call an agent made -- the same concept `<lr-tool-call-chip>` and
89
+ * `<lr-tool-result-view>` already render. `status` reuses `ToolCallStatus` (not the broader
90
+ * `AgentStatus` above) so a `ToolInvocation` assigns directly onto `<lr-tool-call-chip>`'s own
91
+ * `status` property with no adapter; that component's own `callId`/`name` properties correspond
92
+ * to `id`/`name` here. `args`/`result` widen (never narrow) `<lr-tool-result-view>`'s own
93
+ * `args: unknown` / `result: unknown` properties, so a `ToolInvocation`'s fields assign directly
94
+ * onto that component too.
95
+ */
96
+ export interface ToolInvocation {
97
+ id: string;
98
+ name: string;
99
+ args: Record<string, unknown>;
100
+ status: ToolCallStatus;
101
+ result?: unknown;
102
+ error?: string;
103
+ }
104
+ /**
105
+ * A reference to a source document. `name`/`mimeType` match `<lr-attachment-chip>`'s own
106
+ * `name`/`mimeType` properties and `<lr-document-preview>`'s own `mimeType` property field-for-
107
+ * field, so a `DocumentRef` composes directly into either without renaming.
108
+ */
109
+ export interface DocumentRef {
110
+ id: string;
111
+ name: string;
112
+ mimeType?: string;
113
+ uri?: string;
114
+ version?: string;
115
+ }
116
+ /**
117
+ * A single citation record, e.g. one entry a retrieval/grounding step produces. `sourceId`
118
+ * matches the `sourceId` field carried by `<lr-citation-badge>`'s own `lr-citation-activate` /
119
+ * `lr-citation-open` events (`CitationActivateDetail` / `CitationOpenDetail` in
120
+ * `citation-badge.class.ts`) and `<lr-source-card>`'s own `source-id` property -- the same stable
121
+ * id already used to correlate a citation badge with its source card. `span` follows this
122
+ * package's established range-anchor shape (see `LyraChunkAnchor`'s `'line-range'` /
123
+ * `'time-range'` variants, both `{ start; end? }`, in `chunk-inspector.class.ts`).
124
+ */
125
+ export interface Citation {
126
+ id: string;
127
+ chunkId?: string;
128
+ sourceId?: string;
129
+ span?: {
130
+ start: number;
131
+ end: number;
132
+ };
133
+ label?: string;
134
+ }
135
+ /** A retrieval request. Provider/backend-neutral -- no vendor-specific filter/query shape. */
136
+ export interface RetrievalQuery {
137
+ text: string;
138
+ filters?: Record<string, unknown>;
139
+ mode: 'vector' | 'keyword' | 'hybrid';
140
+ scope?: string[];
141
+ }
142
+ /**
143
+ * One retrieved chunk. `source` carries a full `DocumentRef` (not just a bare id) since a
144
+ * retrieval result set is exactly where a chunk's full document metadata first becomes
145
+ * available. Maps onto `<lr-chunk-inspector>`'s own flatter `LyraChunk` display-row shape
146
+ * (`chunk-inspector.class.ts`) via `source.id -> sourceId` and `source.name -> title` --
147
+ * `lr-chunk-inspector` renders a display row per chunk; this type is the richer data record a
148
+ * retrieval step produces upstream of that rendering step.
149
+ */
150
+ export interface RetrievalChunk {
151
+ id: string;
152
+ text: string;
153
+ score: number;
154
+ source: DocumentRef;
155
+ metadata?: Record<string, unknown>;
156
+ }
157
+ /** How well a generated response is supported by its retrieved/cited sources. */
158
+ export interface GroundingAssessment {
159
+ supportedClaims: number;
160
+ unsupportedClaims: number;
161
+ /** 0-1. */
162
+ coverage: number;
163
+ /** 0-1. */
164
+ confidence?: number;
165
+ warnings?: string[];
166
+ }
167
+ /** `detail` for a run-lifecycle event (e.g. an agent run's status changing). */
168
+ export interface RunLifecycleEventDetail {
169
+ runId: string;
170
+ status: AgentStatus;
171
+ }
172
+ /** `detail` for a retrieval-in-progress event. */
173
+ export interface RetrievalProgressEventDetail {
174
+ queryId: string;
175
+ stage: string;
176
+ progress?: number;
177
+ }
178
+ /** `detail` for a citation being selected/activated in an orchestration-level surface. */
179
+ export interface CitationSelectEventDetail {
180
+ citation: Citation;
181
+ }
182
+ /** `detail` for a tool-approval decision (a human-in-the-loop gate). */
183
+ export interface ToolApprovalEventDetail {
184
+ invocationId: string;
185
+ approved: boolean;
186
+ }
187
+ /** `detail` for a cancellation request. */
188
+ export interface CancelEventDetail {
189
+ reason?: string;
190
+ }
191
+ /** `detail` for a retry request. */
192
+ export interface RetryEventDetail {
193
+ attempt: number;
194
+ /** Stable id of the message being retried, when the message has one. */
195
+ messageId?: string;
196
+ }
197
+ /** `detail` for an export request, e.g. "export this conversation/run as `format`". */
198
+ export interface ExportEventDetail {
199
+ format: string;
200
+ }
201
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/ai/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AAC3G,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAE3F,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC;AAEnE;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;;;;;;GAOG;AACH,MAAM,MAAM,eAAe,GACvB,MAAM,GACN,SAAS,GACT,Q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EAAE,MAAM,CAAC;IACjB,WAAW;IACX,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,gFAAgF;AAChF,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,WAAW,CAAC;CACrB;AAED,kDAAkD;AAClD,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,0FAA0F;AAC1F,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,wEAAwE;AACxE,MAAM,WAAW,uBAAuB;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,2CAA2C;AAC3C,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,oCAAoC;AACpC,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,wEAAwE;IACxE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,uFAAuF;AACvF,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/ai/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,184 @@
1
+ import { type TemplateResult, type PropertyValues } from 'lit';
2
+ import { LyraElement } from '../../internal/lyra-element.js';
3
+ import type { AgentRun, CancelEventDetail, RetryEventDetail } from '../../ai/types.js';
4
+ import type { BadgeVariant } from '../badge/badge.class.js';
5
+ import '../generation-status/generation-status.js';
6
+ import '../usage-badge/usage-badge.js';
7
+ import '../task-list/task-list.js';
8
+ import '../badge/badge.js';
9
+ import '../empty/empty.js';
10
+ import '../live-region/live-region.js';
11
+ export interface AgentRunMetric {
12
+ id: string;
13
+ label: string;
14
+ value: string | number;
15
+ variant?: BadgeVariant;
16
+ }
17
+ export interface LyraAgentRunEventMap {
18
+ 'lr-cancel': CustomEvent<CancelEventDetail>;
19
+ 'lr-retry': CustomEvent<RetryEventDetail>;
20
+ }
21
+ /**
22
+ * `<lr-agent-run>` — the top-level shell for one `AgentRun`: lifecycle-status badge, elapsed
23
+ * time, current step, model/cost summary, and built-in Cancel/Retry controls in a header, plus
24
+ * four named composition slots (`tasks`/`tools`/`reasoning`/`output`) for the run's actual
25
+ * content. This is deliberately a SHELL, not a new step-rendering surface — every piece of
26
+ * per-step or per-invocation rendering routes through an existing primitive:
27
+ *
28
+ * - **Elapsed time**: composes `<lr-generation-status>` (`active`/`started-at`, its own built-in
29
+ * Stop button hidden via `show-stop="false"` since this component renders its own Cancel/Retry
30
+ * pair instead) for the *live, ticking* readout while the run is genuinely in progress
31
+ * (`running`/`waiting-input`/`waiting-approval`). `<lr-stream-status>` was considered too (per
32
+ * this family's own composition brief) but doesn't fit: its `phase` vocabulary
33
+ * (`idle`/`connecting`/`streaming`/`stalled`) models transport/connection health, not an agent
34
+ * run's seven-state lifecycle, and it exposes no elapsed-time readout at all — exactly the
35
+ * distinction `<lr-generation-status>`'s own class doc already draws between the two. Once the
36
+ * run reaches a terminal state (`done`/`error`/`cancelled`) with both a `startedAt` and an
37
+ * `endedAt`, this component instead renders a small locally-formatted static duration
38
+ * (`endedAt - startedAt`): `<lr-generation-status>`'s freeze-on-`active=false` semantics only
39
+ * ever freeze at whatever it last computed *live*, so mounting it directly against a completed
40
+ * run loaded from history (e.g. `startedAt` yesterday, `endedAt` five minutes later, loaded
41
+ * today) would either show a stale zero or the wrong multi-hour span — it has no way to render a
42
+ * fixed historical span on demand. That static fallback reuses the same small `formatDuration()`
43
+ * algorithm `<lr-usage-badge>` and `<lr-tool-call-chip>` already duplicate locally for the same
44
+ * reason (see this file's own copy).
45
+ * - **Model + cost summary**: composes `<lr-usage-badge>`, fed `run.costEstimate` (formatted via
46
+ * `formatCost`, or a plain `Intl.NumberFormat` by default — this library never assumes a
47
+ * currency, see `<lr-format-number>`'s own explicit `currency` prop) as its `cost-text`.
48
+ * `run.model` (a plain string with no analogous `<lr-usage-badge>` property) renders alongside
49
+ * as plain text.
50
+ * - **Current step**: a single-line summary of whichever `run.steps` entry currently has
51
+ * `status.kind === 'running'` (the last such entry, if more than one) — a plain text line, not a
52
+ * list, so it doesn't duplicate `<lr-task-list>`'s own per-item rendering.
53
+ * - **Tasks slot default content**: when the host doesn't slot anything into `tasks` and
54
+ * `run.steps` is non-empty, this component's own `<slot>` fallback renders a `<lr-task-list>`
55
+ * populated by mapping every `AgentStep` to a `TaskItem` (see `toTaskItem()`) — a plain data
56
+ * adapter between the two existing shapes, not new rendering.
57
+ * - **Status badge**: composes `<lr-badge>`. **Empty state**: composes `<lr-empty>` when `run` is
58
+ * `null`.
59
+ *
60
+ * `tools`/`reasoning`/`output` are plain named slots with no default content — entirely the
61
+ * host's own composition (typically `<lr-tool-call-chip>`/`<lr-tool-result-view>` rows,
62
+ * reasoning/streaming text, and final output respectively). An `actions` slot adds extra header
63
+ * controls alongside the built-in Cancel/Retry pair. The `header` and `summary` slots replace the
64
+ * built-in lifecycle header and model/usage/metrics summary respectively. `statusLabels` and
65
+ * `statusVariants` make application-defined lifecycle kinds first-class, while `metrics` renders
66
+ * arbitrary labeled values such as prompt and completion token counts.
67
+ *
68
+ * The built-in Cancel button renders while `showCancel` is true and the run's status is one of
69
+ * `TICKING_KINDS` (still genuinely in progress); Retry renders while `showRetry` is true and the
70
+ * status is `error` or `cancelled`. Clicking either fires `lr-cancel`/`lr-retry` with
71
+ * `CancelEventDetail`/`RetryEventDetail` from `src/ai/types.ts` — this component never cancels or
72
+ * retries anything itself, it only requests. `RetryEventDetail.attempt` is a 1-based counter
73
+ * local to this component, incremented on every `lr-retry` click and reset to `0` whenever
74
+ * `run.id` changes (a genuinely new run replacing the old one, as opposed to the same run's status
75
+ * merely updating in place).
76
+ *
77
+ * Lifecycle transitions into an attention-needing or terminal state (`waiting-input`,
78
+ * `waiting-approval`, `done`, `error`, `cancelled`) are announced through an internal
79
+ * `<lr-live-region>`, mirroring `<lr-stream-status>`'s own stall/recover announcements —
80
+ * `running`/`idle` transitions are frequent and not independently actionable, so they stay
81
+ * silent, and whatever status a freshly-assigned `run` (a new `run.id`) happens to already carry
82
+ * is never itself treated as an eventful transition, only a later in-place change is.
83
+ *
84
+ * @customElement lr-agent-run
85
+ * @slot tasks - Task/plan content. Falls back to a `<lr-task-list>` built from `run.steps` when
86
+ * nothing is slotted and `run.steps` is non-empty.
87
+ * @slot header - Replaces the built-in lifecycle header and its built-in actions.
88
+ * @slot summary - Replaces the built-in model, usage, and metrics summary.
89
+ * @slot tools - Tool-call content (e.g. `<lr-tool-call-chip>`/`<lr-tool-result-view>` rows). No
90
+ * default content.
91
+ * @slot reasoning - Reasoning/thinking content. No default content.
92
+ * @slot output - The run's final output content. No default content.
93
+ * @slot actions - Extra header actions alongside the built-in Cancel/Retry buttons.
94
+ * @event lr-cancel - The built-in Cancel button was activated. `detail: CancelEventDetail`
95
+ * (`{ reason }`, always `undefined` from the built-in button itself).
96
+ * @event lr-retry - The built-in Retry button was activated. `detail: RetryEventDetail`
97
+ * (`{ attempt }`, a 1-based counter reset per `run.id`).
98
+ * @csspart base - The root container.
99
+ * @csspart empty - The `<lr-empty>` shown when `run` is `null`.
100
+ * @csspart header - The header row wrapping status, elapsed time, current step, summary, and actions.
101
+ * @csspart status - Wrapper around the status badge and optional status message.
102
+ * @csspart status-badge - The resolved `<lr-badge>` lifecycle-status pill.
103
+ * @csspart status-message - `run.status.message`, when set.
104
+ * @csspart elapsed - The composed `<lr-generation-status>`, only rendered while the run is
105
+ * actively ticking (see the class doc).
106
+ * @csspart elapsed-static - The static formatted duration for a terminal run with both
107
+ * `startedAt` and `endedAt`.
108
+ * @csspart current-step - Wrapper around the current-step icon and label. Only rendered while a
109
+ * step has `status.kind === 'running'`.
110
+ * @csspart current-step-icon - The spinning current-step icon.
111
+ * @csspart current-step-label - The current step's `label` text.
112
+ * @csspart summary - Wrapper around the model text and the composed `<lr-usage-badge>`. Only
113
+ * rendered while `run.model` or a valid `run.costEstimate` is present.
114
+ * @csspart model - `run.model`, when set.
115
+ * @csspart usage - The composed `<lr-usage-badge>`.
116
+ * @csspart metric - One arbitrary metric in the built-in summary.
117
+ * @csspart metric-label - The metric's label.
118
+ * @csspart metric-value - The metric's value.
119
+ * @csspart actions - Wrapper around the `actions` slot and the built-in Cancel/Retry buttons.
120
+ * @csspart cancel-button - The built-in Cancel button. Only rendered while cancelable (see the
121
+ * class doc).
122
+ * @csspart retry-button - The built-in Retry button. Only rendered while retryable.
123
+ * @csspart body - Wrapper around the four composition slots.
124
+ * @csspart tasks - The `tasks` slot.
125
+ * @csspart tools - The `tools` slot.
126
+ * @csspart reasoning - The `reasoning` slot.
127
+ * @csspart output - The `output` slot.
128
+ */
129
+ export declare class LyraAgentRun extends LyraElement<LyraAgentRunEventMap> {
130
+ static styles: import("lit").CSSResultGroup[];
131
+ /** The run to display. Controlled and never mutated by this component -- pass a new object to
132
+ * update it. `null` renders the shared `<lr-empty>` `noData` state. */
133
+ run: AgentRun | null;
134
+ /** Overrides the default plain `Intl.NumberFormat` rendering of `run.costEstimate` fed to the
135
+ * composed `<lr-usage-badge>`'s `cost-text` -- e.g. to add a currency symbol/code, which this
136
+ * library never assumes on a host's behalf. */
137
+ formatCost?: (cost: number) => string;
138
+ /** Labels for application-defined lifecycle kinds. Built-in kinds remain localized by Lyra. */
139
+ statusLabels: Record<string, string>;
140
+ /** Badge variants for application-defined lifecycle kinds. Unknown kinds default to `neutral`. */
141
+ statusVariants: Record<string, BadgeVariant>;
142
+ /** Additional run metrics such as prompt/completion token counts. */
143
+ metrics: AgentRunMetric[];
144
+ /** Whether the built-in Cancel button can render at all -- still gated by the run's own status
145
+ * being cancelable (`running`/`waiting-input`/`waiting-approval`). Set `false` for a read-only
146
+ * viewer. */
147
+ showCancel: boolean;
148
+ /** Whether the built-in Retry button can render at all -- still gated by the run's own status
149
+ * being retryable (`error`/`cancelled`). */
150
+ showRetry: boolean;
151
+ private retryAttempt;
152
+ private hasHeaderSlot;
153
+ private hasSummarySlot;
154
+ private liveRegion?;
155
+ private previousRunId?;
156
+ private previousStatusKind?;
157
+ protected willUpdate(changed: PropertyValues): void;
158
+ private hasSlotted;
159
+ private onHeaderSlotChange;
160
+ private onSummarySlotChange;
161
+ protected updated(changed: PropertyValues): void;
162
+ private handleRunChange;
163
+ private isAttentionKind;
164
+ private announceStatus;
165
+ private statusLabel;
166
+ private get currentStep();
167
+ private get isTicking();
168
+ /** The static formatted duration for a terminal run with both `startedAt` and `endedAt` --
169
+ * `undefined` while ticking, not yet terminal, or missing either timestamp (see the class
170
+ * doc's "elapsed time" section for why a terminal run doesn't reuse the live ticker). */
171
+ private get staticElapsedText();
172
+ private get costText();
173
+ private get canCancel();
174
+ private get canRetry();
175
+ private onCancelClick;
176
+ private onRetryClick;
177
+ render(): TemplateResult;
178
+ }
179
+ declare global {
180
+ interface HTMLElementTagNameMap {
181
+ 'lr-agent-run': LyraAgentRun;
182
+ }
183
+ }
184
+ //# sourceMappingURL=agent-run.class.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-run.class.d.ts","sourceRoot":"","sources":["../../../src/components/agent-run/agent-run.class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,KAAK,cAAc,EAAkC,MAAM,KAAK,CAAC;AAE9G,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAK7D,OAAO,KAAK,EAAE,QAAQ,EAA8B,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAS5D,OAAO,2CAA2C,C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