@aceshooting/lyra-ui 4.0.0 → 4.1.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.
- package/README.md +1 -0
- package/custom-elements.json +49430 -32305
- package/dist/ai/types.contract.d.ts +2 -0
- package/dist/ai/types.contract.d.ts.map +1 -0
- package/dist/ai/types.contract.js +139 -0
- package/dist/ai/types.contract.js.map +1 -0
- package/dist/ai/types.d.ts +199 -0
- package/dist/ai/types.d.ts.map +1 -0
- package/dist/ai/types.js +2 -0
- package/dist/ai/types.js.map +1 -0
- package/dist/components/agent-run/agent-run.class.d.ts +158 -0
- package/dist/components/agent-run/agent-run.class.d.ts.map +1 -0
- package/dist/components/agent-run/agent-run.class.js +400 -0
- package/dist/components/agent-run/agent-run.class.js.map +1 -0
- package/dist/components/agent-run/agent-run.d.ts +2 -0
- package/dist/components/agent-run/agent-run.d.ts.map +1 -0
- package/dist/components/agent-run/agent-run.js +5 -0
- package/dist/components/agent-run/agent-run.js.map +1 -0
- package/dist/components/agent-run/agent-run.styles.d.ts +2 -0
- package/dist/components/agent-run/agent-run.styles.d.ts.map +1 -0
- package/dist/components/agent-run/agent-run.styles.js +143 -0
- package/dist/components/agent-run/agent-run.styles.js.map +1 -0
- package/dist/components/agent-trace/agent-trace.class.d.ts +111 -0
- package/dist/components/agent-trace/agent-trace.class.d.ts.map +1 -0
- package/dist/components/agent-trace/agent-trace.class.js +221 -0
- package/dist/components/agent-trace/agent-trace.class.js.map +1 -0
- package/dist/components/agent-trace/agent-trace.d.ts +5 -0
- package/dist/components/agent-trace/agent-trace.d.ts.map +1 -0
- package/dist/components/agent-trace/agent-trace.js +8 -0
- package/dist/components/agent-trace/agent-trace.js.map +1 -0
- package/dist/components/agent-trace/agent-trace.styles.d.ts +2 -0
- package/dist/components/agent-trace/agent-trace.styles.d.ts.map +1 -0
- package/dist/components/agent-trace/agent-trace.styles.js +61 -0
- package/dist/components/agent-trace/agent-trace.styles.js.map +1 -0
- package/dist/components/app-rail/app-rail.styles.d.ts.map +1 -1
- package/dist/components/app-rail/app-rail.styles.js +4 -0
- package/dist/components/app-rail/app-rail.styles.js.map +1 -1
- package/dist/components/chat-message/chat-message.class.d.ts +37 -3
- package/dist/components/chat-message/chat-message.class.d.ts.map +1 -1
- package/dist/components/chat-message/chat-message.class.js +89 -7
- package/dist/components/chat-message/chat-message.class.js.map +1 -1
- package/dist/components/chat-message/chat-message.styles.d.ts.map +1 -1
- package/dist/components/chat-message/chat-message.styles.js +14 -0
- package/dist/components/chat-message/chat-message.styles.js.map +1 -1
- package/dist/components/context-inspector/context-inspector.class.d.ts +114 -0
- package/dist/components/context-inspector/context-inspector.class.d.ts.map +1 -0
- package/dist/components/context-inspector/context-inspector.class.js +222 -0
- package/dist/components/context-inspector/context-inspector.class.js.map +1 -0
- package/dist/components/context-inspector/context-inspector.d.ts +7 -0
- package/dist/components/context-inspector/context-inspector.d.ts.map +1 -0
- package/dist/components/context-inspector/context-inspector.js +10 -0
- package/dist/components/context-inspector/context-inspector.js.map +1 -0
- package/dist/components/context-inspector/context-inspector.styles.d.ts +2 -0
- package/dist/components/context-inspector/context-inspector.styles.d.ts.map +1 -0
- package/dist/components/context-inspector/context-inspector.styles.js +98 -0
- package/dist/components/context-inspector/context-inspector.styles.js.map +1 -0
- package/dist/components/dashboard-grid/dashboard-grid.class.d.ts +162 -0
- package/dist/components/dashboard-grid/dashboard-grid.class.d.ts.map +1 -0
- package/dist/components/dashboard-grid/dashboard-grid.class.js +570 -0
- package/dist/components/dashboard-grid/dashboard-grid.class.js.map +1 -0
- package/dist/components/dashboard-grid/dashboard-grid.d.ts +6 -0
- package/dist/components/dashboard-grid/dashboard-grid.d.ts.map +1 -0
- package/dist/components/dashboard-grid/dashboard-grid.js +9 -0
- package/dist/components/dashboard-grid/dashboard-grid.js.map +1 -0
- package/dist/components/dashboard-grid/dashboard-grid.styles.d.ts +2 -0
- package/dist/components/dashboard-grid/dashboard-grid.styles.d.ts.map +1 -0
- package/dist/components/dashboard-grid/dashboard-grid.styles.js +86 -0
- package/dist/components/dashboard-grid/dashboard-grid.styles.js.map +1 -0
- package/dist/components/dashboard-grid/layout.d.ts +103 -0
- package/dist/components/dashboard-grid/layout.d.ts.map +1 -0
- package/dist/components/dashboard-grid/layout.js +94 -0
- package/dist/components/dashboard-grid/layout.js.map +1 -0
- package/dist/components/date-picker/date-input.class.d.ts +8 -0
- package/dist/components/date-picker/date-input.class.d.ts.map +1 -1
- package/dist/components/date-picker/date-input.class.js +10 -0
- package/dist/components/date-picker/date-input.class.js.map +1 -1
- package/dist/components/date-picker/date-input.styles.d.ts.map +1 -1
- package/dist/components/date-picker/date-input.styles.js +39 -2
- package/dist/components/date-picker/date-input.styles.js.map +1 -1
- package/dist/components/document-compare/document-compare.class.d.ts +131 -0
- package/dist/components/document-compare/document-compare.class.d.ts.map +1 -0
- package/dist/components/document-compare/document-compare.class.js +214 -0
- package/dist/components/document-compare/document-compare.class.js.map +1 -0
- package/dist/components/document-compare/document-compare.d.ts +2 -0
- package/dist/components/document-compare/document-compare.d.ts.map +1 -0
- package/dist/components/document-compare/document-compare.js +5 -0
- package/dist/components/document-compare/document-compare.js.map +1 -0
- package/dist/components/document-compare/document-compare.styles.d.ts +2 -0
- package/dist/components/document-compare/document-compare.styles.d.ts.map +1 -0
- package/dist/components/document-compare/document-compare.styles.js +65 -0
- package/dist/components/document-compare/document-compare.styles.js.map +1 -0
- package/dist/components/document-library/document-library.class.d.ts +154 -0
- package/dist/components/document-library/document-library.class.d.ts.map +1 -0
- package/dist/components/document-library/document-library.class.js +399 -0
- package/dist/components/document-library/document-library.class.js.map +1 -0
- package/dist/components/document-library/document-library.d.ts +9 -0
- package/dist/components/document-library/document-library.d.ts.map +1 -0
- package/dist/components/document-library/document-library.js +12 -0
- package/dist/components/document-library/document-library.js.map +1 -0
- package/dist/components/document-library/document-library.styles.d.ts +2 -0
- package/dist/components/document-library/document-library.styles.d.ts.map +1 -0
- package/dist/components/document-library/document-library.styles.js +77 -0
- package/dist/components/document-library/document-library.styles.js.map +1 -0
- package/dist/components/drilldown-panel/drilldown-panel.class.d.ts +148 -0
- package/dist/components/drilldown-panel/drilldown-panel.class.d.ts.map +1 -0
- package/dist/components/drilldown-panel/drilldown-panel.class.js +241 -0
- package/dist/components/drilldown-panel/drilldown-panel.class.js.map +1 -0
- package/dist/components/drilldown-panel/drilldown-panel.d.ts +9 -0
- package/dist/components/drilldown-panel/drilldown-panel.d.ts.map +1 -0
- package/dist/components/drilldown-panel/drilldown-panel.js +12 -0
- package/dist/components/drilldown-panel/drilldown-panel.js.map +1 -0
- package/dist/components/drilldown-panel/drilldown-panel.styles.d.ts +2 -0
- package/dist/components/drilldown-panel/drilldown-panel.styles.d.ts.map +1 -0
- package/dist/components/drilldown-panel/drilldown-panel.styles.js +49 -0
- package/dist/components/drilldown-panel/drilldown-panel.styles.js.map +1 -0
- package/dist/components/entity-dossier/entity-dossier.class.d.ts +132 -0
- package/dist/components/entity-dossier/entity-dossier.class.d.ts.map +1 -0
- package/dist/components/entity-dossier/entity-dossier.class.js +187 -0
- package/dist/components/entity-dossier/entity-dossier.class.js.map +1 -0
- package/dist/components/entity-dossier/entity-dossier.d.ts +9 -0
- package/dist/components/entity-dossier/entity-dossier.d.ts.map +1 -0
- package/dist/components/entity-dossier/entity-dossier.js +12 -0
- package/dist/components/entity-dossier/entity-dossier.js.map +1 -0
- package/dist/components/entity-dossier/entity-dossier.styles.d.ts +2 -0
- package/dist/components/entity-dossier/entity-dossier.styles.d.ts.map +1 -0
- package/dist/components/entity-dossier/entity-dossier.styles.js +30 -0
- package/dist/components/entity-dossier/entity-dossier.styles.js.map +1 -0
- package/dist/components/eval-dataset/eval-dataset.class.d.ts +145 -0
- package/dist/components/eval-dataset/eval-dataset.class.d.ts.map +1 -0
- package/dist/components/eval-dataset/eval-dataset.class.js +307 -0
- package/dist/components/eval-dataset/eval-dataset.class.js.map +1 -0
- package/dist/components/eval-dataset/eval-dataset.d.ts +7 -0
- package/dist/components/eval-dataset/eval-dataset.d.ts.map +1 -0
- package/dist/components/eval-dataset/eval-dataset.js +10 -0
- package/dist/components/eval-dataset/eval-dataset.js.map +1 -0
- package/dist/components/eval-dataset/eval-dataset.styles.d.ts +2 -0
- package/dist/components/eval-dataset/eval-dataset.styles.d.ts.map +1 -0
- package/dist/components/eval-dataset/eval-dataset.styles.js +76 -0
- package/dist/components/eval-dataset/eval-dataset.styles.js.map +1 -0
- package/dist/components/eval-result/eval-result.class.d.ts +115 -0
- package/dist/components/eval-result/eval-result.class.d.ts.map +1 -0
- package/dist/components/eval-result/eval-result.class.js +165 -0
- package/dist/components/eval-result/eval-result.class.js.map +1 -0
- package/dist/components/eval-result/eval-result.d.ts +5 -0
- package/dist/components/eval-result/eval-result.d.ts.map +1 -0
- package/dist/components/eval-result/eval-result.js +8 -0
- package/dist/components/eval-result/eval-result.js.map +1 -0
- package/dist/components/eval-result/eval-result.styles.d.ts +2 -0
- package/dist/components/eval-result/eval-result.styles.d.ts.map +1 -0
- package/dist/components/eval-result/eval-result.styles.js +47 -0
- package/dist/components/eval-result/eval-result.styles.js.map +1 -0
- package/dist/components/evaluation-run/evaluation-run.class.d.ts +168 -0
- package/dist/components/evaluation-run/evaluation-run.class.d.ts.map +1 -0
- package/dist/components/evaluation-run/evaluation-run.class.js +329 -0
- package/dist/components/evaluation-run/evaluation-run.class.js.map +1 -0
- package/dist/components/evaluation-run/evaluation-run.d.ts +2 -0
- package/dist/components/evaluation-run/evaluation-run.d.ts.map +1 -0
- package/dist/components/evaluation-run/evaluation-run.js +5 -0
- package/dist/components/evaluation-run/evaluation-run.js.map +1 -0
- package/dist/components/evaluation-run/evaluation-run.styles.d.ts +2 -0
- package/dist/components/evaluation-run/evaluation-run.styles.d.ts.map +1 -0
- package/dist/components/evaluation-run/evaluation-run.styles.js +73 -0
- package/dist/components/evaluation-run/evaluation-run.styles.js.map +1 -0
- package/dist/components/filter-bar/filter-bar.class.d.ts +200 -0
- package/dist/components/filter-bar/filter-bar.class.d.ts.map +1 -0
- package/dist/components/filter-bar/filter-bar.class.js +322 -0
- package/dist/components/filter-bar/filter-bar.class.js.map +1 -0
- package/dist/components/filter-bar/filter-bar.d.ts +10 -0
- package/dist/components/filter-bar/filter-bar.d.ts.map +1 -0
- package/dist/components/filter-bar/filter-bar.js +13 -0
- package/dist/components/filter-bar/filter-bar.js.map +1 -0
- package/dist/components/filter-bar/filter-bar.styles.d.ts +2 -0
- package/dist/components/filter-bar/filter-bar.styles.d.ts.map +1 -0
- package/dist/components/filter-bar/filter-bar.styles.js +37 -0
- package/dist/components/filter-bar/filter-bar.styles.js.map +1 -0
- package/dist/components/graph-query-builder/graph-query-builder.class.d.ts +242 -0
- package/dist/components/graph-query-builder/graph-query-builder.class.d.ts.map +1 -0
- package/dist/components/graph-query-builder/graph-query-builder.class.js +511 -0
- package/dist/components/graph-query-builder/graph-query-builder.class.js.map +1 -0
- package/dist/components/graph-query-builder/graph-query-builder.d.ts +7 -0
- package/dist/components/graph-query-builder/graph-query-builder.d.ts.map +1 -0
- package/dist/components/graph-query-builder/graph-query-builder.js +10 -0
- package/dist/components/graph-query-builder/graph-query-builder.js.map +1 -0
- package/dist/components/graph-query-builder/graph-query-builder.styles.d.ts +2 -0
- package/dist/components/graph-query-builder/graph-query-builder.styles.d.ts.map +1 -0
- package/dist/components/graph-query-builder/graph-query-builder.styles.js +170 -0
- package/dist/components/graph-query-builder/graph-query-builder.styles.js.map +1 -0
- package/dist/components/grounding-summary/grounding-summary.class.d.ts +80 -0
- package/dist/components/grounding-summary/grounding-summary.class.d.ts.map +1 -0
- package/dist/components/grounding-summary/grounding-summary.class.js +182 -0
- package/dist/components/grounding-summary/grounding-summary.class.js.map +1 -0
- package/dist/components/grounding-summary/grounding-summary.d.ts +5 -0
- package/dist/components/grounding-summary/grounding-summary.d.ts.map +1 -0
- package/dist/components/grounding-summary/grounding-summary.js +8 -0
- package/dist/components/grounding-summary/grounding-summary.js.map +1 -0
- package/dist/components/grounding-summary/grounding-summary.styles.d.ts +2 -0
- package/dist/components/grounding-summary/grounding-summary.styles.d.ts.map +1 -0
- package/dist/components/grounding-summary/grounding-summary.styles.js +88 -0
- package/dist/components/grounding-summary/grounding-summary.styles.js.map +1 -0
- package/dist/components/ingestion-queue/ingestion-queue.class.d.ts +125 -0
- package/dist/components/ingestion-queue/ingestion-queue.class.d.ts.map +1 -0
- package/dist/components/ingestion-queue/ingestion-queue.class.js +276 -0
- package/dist/components/ingestion-queue/ingestion-queue.class.js.map +1 -0
- package/dist/components/ingestion-queue/ingestion-queue.d.ts +2 -0
- package/dist/components/ingestion-queue/ingestion-queue.d.ts.map +1 -0
- package/dist/components/ingestion-queue/ingestion-queue.js +5 -0
- package/dist/components/ingestion-queue/ingestion-queue.js.map +1 -0
- package/dist/components/ingestion-queue/ingestion-queue.styles.d.ts +2 -0
- package/dist/components/ingestion-queue/ingestion-queue.styles.d.ts.map +1 -0
- package/dist/components/ingestion-queue/ingestion-queue.styles.js +138 -0
- package/dist/components/ingestion-queue/ingestion-queue.styles.js.map +1 -0
- package/dist/components/knowledge-base/knowledge-base.class.d.ts +136 -0
- package/dist/components/knowledge-base/knowledge-base.class.d.ts.map +1 -0
- package/dist/components/knowledge-base/knowledge-base.class.js +360 -0
- package/dist/components/knowledge-base/knowledge-base.class.js.map +1 -0
- package/dist/components/knowledge-base/knowledge-base.d.ts +7 -0
- package/dist/components/knowledge-base/knowledge-base.d.ts.map +1 -0
- package/dist/components/knowledge-base/knowledge-base.js +10 -0
- package/dist/components/knowledge-base/knowledge-base.js.map +1 -0
- package/dist/components/knowledge-base/knowledge-base.styles.d.ts +2 -0
- package/dist/components/knowledge-base/knowledge-base.styles.d.ts.map +1 -0
- package/dist/components/knowledge-base/knowledge-base.styles.js +94 -0
- package/dist/components/knowledge-base/knowledge-base.styles.js.map +1 -0
- package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.class.d.ts +196 -0
- package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.class.d.ts.map +1 -0
- package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.class.js +477 -0
- package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.class.js.map +1 -0
- package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.d.ts +11 -0
- package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.d.ts.map +1 -0
- package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.js +14 -0
- package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.js.map +1 -0
- package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.styles.d.ts +2 -0
- package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.styles.d.ts.map +1 -0
- package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.styles.js +76 -0
- package/dist/components/knowledge-graph-explorer/knowledge-graph-explorer.styles.js.map +1 -0
- package/dist/components/memory-panel/memory-panel.class.d.ts +146 -0
- package/dist/components/memory-panel/memory-panel.class.d.ts.map +1 -0
- package/dist/components/memory-panel/memory-panel.class.js +303 -0
- package/dist/components/memory-panel/memory-panel.class.js.map +1 -0
- package/dist/components/memory-panel/memory-panel.d.ts +5 -0
- package/dist/components/memory-panel/memory-panel.d.ts.map +1 -0
- package/dist/components/memory-panel/memory-panel.js +8 -0
- package/dist/components/memory-panel/memory-panel.js.map +1 -0
- package/dist/components/memory-panel/memory-panel.styles.d.ts +2 -0
- package/dist/components/memory-panel/memory-panel.styles.d.ts.map +1 -0
- package/dist/components/memory-panel/memory-panel.styles.js +139 -0
- package/dist/components/memory-panel/memory-panel.styles.js.map +1 -0
- package/dist/components/overlay/popover.class.d.ts +39 -0
- package/dist/components/overlay/popover.class.d.ts.map +1 -1
- package/dist/components/overlay/popover.class.js +53 -3
- package/dist/components/overlay/popover.class.js.map +1 -1
- package/dist/components/overlay/tooltip.class.d.ts +43 -0
- package/dist/components/overlay/tooltip.class.d.ts.map +1 -1
- package/dist/components/overlay/tooltip.class.js +66 -4
- package/dist/components/overlay/tooltip.class.js.map +1 -1
- package/dist/components/policy-summary/policy-summary.class.d.ts +76 -0
- package/dist/components/policy-summary/policy-summary.class.d.ts.map +1 -0
- package/dist/components/policy-summary/policy-summary.class.js +125 -0
- package/dist/components/policy-summary/policy-summary.class.js.map +1 -0
- package/dist/components/policy-summary/policy-summary.d.ts +6 -0
- package/dist/components/policy-summary/policy-summary.d.ts.map +1 -0
- package/dist/components/policy-summary/policy-summary.js +9 -0
- package/dist/components/policy-summary/policy-summary.js.map +1 -0
- package/dist/components/policy-summary/policy-summary.styles.d.ts +2 -0
- package/dist/components/policy-summary/policy-summary.styles.d.ts.map +1 -0
- package/dist/components/policy-summary/policy-summary.styles.js +68 -0
- package/dist/components/policy-summary/policy-summary.styles.js.map +1 -0
- package/dist/components/query-builder/query-builder.class.d.ts +180 -0
- package/dist/components/query-builder/query-builder.class.d.ts.map +1 -0
- package/dist/components/query-builder/query-builder.class.js +415 -0
- package/dist/components/query-builder/query-builder.class.js.map +1 -0
- package/dist/components/query-builder/query-builder.d.ts +9 -0
- package/dist/components/query-builder/query-builder.d.ts.map +1 -0
- package/dist/components/query-builder/query-builder.js +12 -0
- package/dist/components/query-builder/query-builder.js.map +1 -0
- package/dist/components/query-builder/query-builder.styles.d.ts +2 -0
- package/dist/components/query-builder/query-builder.styles.d.ts.map +1 -0
- package/dist/components/query-builder/query-builder.styles.js +77 -0
- package/dist/components/query-builder/query-builder.styles.js.map +1 -0
- package/dist/components/retrieval-results/retrieval-results.class.d.ts +151 -0
- package/dist/components/retrieval-results/retrieval-results.class.d.ts.map +1 -0
- package/dist/components/retrieval-results/retrieval-results.class.js +340 -0
- package/dist/components/retrieval-results/retrieval-results.class.js.map +1 -0
- package/dist/components/retrieval-results/retrieval-results.d.ts +7 -0
- package/dist/components/retrieval-results/retrieval-results.d.ts.map +1 -0
- package/dist/components/retrieval-results/retrieval-results.js +10 -0
- package/dist/components/retrieval-results/retrieval-results.js.map +1 -0
- package/dist/components/retrieval-results/retrieval-results.styles.d.ts +2 -0
- package/dist/components/retrieval-results/retrieval-results.styles.d.ts.map +1 -0
- package/dist/components/retrieval-results/retrieval-results.styles.js +94 -0
- package/dist/components/retrieval-results/retrieval-results.styles.js.map +1 -0
- package/dist/components/retrieval-search/retrieval-search.class.d.ts +127 -0
- package/dist/components/retrieval-search/retrieval-search.class.d.ts.map +1 -0
- package/dist/components/retrieval-search/retrieval-search.class.js +266 -0
- package/dist/components/retrieval-search/retrieval-search.class.js.map +1 -0
- package/dist/components/retrieval-search/retrieval-search.d.ts +8 -0
- package/dist/components/retrieval-search/retrieval-search.d.ts.map +1 -0
- package/dist/components/retrieval-search/retrieval-search.js +11 -0
- package/dist/components/retrieval-search/retrieval-search.js.map +1 -0
- package/dist/components/retrieval-search/retrieval-search.styles.d.ts +2 -0
- package/dist/components/retrieval-search/retrieval-search.styles.d.ts.map +1 -0
- package/dist/components/retrieval-search/retrieval-search.styles.js +75 -0
- package/dist/components/retrieval-search/retrieval-search.styles.js.map +1 -0
- package/dist/components/retrieval-trace/retrieval-trace.class.d.ts +101 -0
- package/dist/components/retrieval-trace/retrieval-trace.class.d.ts.map +1 -0
- package/dist/components/retrieval-trace/retrieval-trace.class.js +215 -0
- package/dist/components/retrieval-trace/retrieval-trace.class.js.map +1 -0
- package/dist/components/retrieval-trace/retrieval-trace.d.ts +4 -0
- package/dist/components/retrieval-trace/retrieval-trace.d.ts.map +1 -0
- package/dist/components/retrieval-trace/retrieval-trace.js +7 -0
- package/dist/components/retrieval-trace/retrieval-trace.js.map +1 -0
- package/dist/components/retrieval-trace/retrieval-trace.styles.d.ts +2 -0
- package/dist/components/retrieval-trace/retrieval-trace.styles.d.ts.map +1 -0
- package/dist/components/retrieval-trace/retrieval-trace.styles.js +116 -0
- package/dist/components/retrieval-trace/retrieval-trace.styles.js.map +1 -0
- package/dist/components/thread-list/thread-list.class.d.ts +19 -1
- package/dist/components/thread-list/thread-list.class.d.ts.map +1 -1
- package/dist/components/thread-list/thread-list.class.js +9 -2
- package/dist/components/thread-list/thread-list.class.js.map +1 -1
- package/dist/components/tool-timeline/tool-timeline.class.d.ts +140 -0
- package/dist/components/tool-timeline/tool-timeline.class.d.ts.map +1 -0
- package/dist/components/tool-timeline/tool-timeline.class.js +293 -0
- package/dist/components/tool-timeline/tool-timeline.class.js.map +1 -0
- package/dist/components/tool-timeline/tool-timeline.d.ts +2 -0
- package/dist/components/tool-timeline/tool-timeline.d.ts.map +1 -0
- package/dist/components/tool-timeline/tool-timeline.js +5 -0
- package/dist/components/tool-timeline/tool-timeline.js.map +1 -0
- package/dist/components/tool-timeline/tool-timeline.styles.d.ts +2 -0
- package/dist/components/tool-timeline/tool-timeline.styles.d.ts.map +1 -0
- package/dist/components/tool-timeline/tool-timeline.styles.js +148 -0
- package/dist/components/tool-timeline/tool-timeline.styles.js.map +1 -0
- package/dist/internal/localization.d.ts +1 -1
- package/dist/internal/localization.d.ts.map +1 -1
- package/dist/internal/localization.js +224 -0
- package/dist/internal/localization.js.map +1 -1
- package/dist/internal/positioner.d.ts +28 -1
- package/dist/internal/positioner.d.ts.map +1 -1
- package/dist/internal/positioner.js +12 -1
- package/dist/internal/positioner.js.map +1 -1
- package/dist/internal/root-registration-allowlist.d.ts +2 -2
- package/dist/internal/root-registration-allowlist.d.ts.map +1 -1
- package/dist/internal/root-registration-allowlist.js +24 -0
- package/dist/internal/root-registration-allowlist.js.map +1 -1
- package/dist/internal/tokens.styles.d.ts.map +1 -1
- package/dist/internal/tokens.styles.js +2 -0
- package/dist/internal/tokens.styles.js.map +1 -1
- package/dist/lyra.d.ts +48 -1
- package/dist/lyra.d.ts.map +1 -1
- package/dist/lyra.js +47 -0
- package/dist/lyra.js.map +1 -1
- package/llms-full.txt +462 -9
- package/llms.txt +7 -0
- package/package.json +50 -1
- package/vscode-css-data.json +21 -0
- package/vscode-html-data.json +1103 -47
- package/web-types.json +1131 -47
|
@@ -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,EAA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,CAAC,MAAM,GAAG,UAAU,CAAC,EAAE,CAAC;IACtC,cAAc,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;IACtC,cAAc,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;AAC5C,CAAC;AACD,KAAK,wBAAwB,CAAC;AAG9B,SAAS,8BAA8B,CAAC,UAA0B;IAChE,gBAAgB,CAAC,QAAQ,GAAG,UAAU,CAAC,IAAI,CAAC;IAC5C,gBAAgB,CAAC,IAAI,GAAG,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,199 @@
|
|
|
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' | 'waiting-input' | 'waiting-approval' | 'done' | 'error' | 'cancelled';
|
|
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
|
+
}
|
|
195
|
+
/** `detail` for an export request, e.g. "export this conversation/run as `format`". */
|
|
196
|
+
export interface ExportEventDetail {
|
|
197
|
+
format: string;
|
|
198
|
+
}
|
|
199
|
+
//# 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,eAAe,GACf,kBAAkB,GAClB,MAAM,GACN,OAAO,GACP,WAAW,CAAC;AAEhB,uHAAuH;AACvH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,eAAe,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,WAAW,CAAC;IACpB,0BAA0B;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0BAA0B;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,qEAAqE;AACrE,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,WAAW,CAAC;IACpB,0BAA0B;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0BAA0B;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,SAAS,EAAE,CAAC;CACp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ED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/ai/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,158 @@
|
|
|
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 '../generation-status/generation-status.js';
|
|
5
|
+
import '../usage-badge/usage-badge.js';
|
|
6
|
+
import '../task-list/task-list.js';
|
|
7
|
+
import '../badge/badge.js';
|
|
8
|
+
import '../empty/empty.js';
|
|
9
|
+
import '../live-region/live-region.js';
|
|
10
|
+
export interface LyraAgentRunEventMap {
|
|
11
|
+
'lr-cancel': CustomEvent<CancelEventDetail>;
|
|
12
|
+
'lr-retry': CustomEvent<RetryEventDetail>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* `<lr-agent-run>` — the top-level shell for one `AgentRun`: lifecycle-status badge, elapsed
|
|
16
|
+
* time, current step, model/cost summary, and built-in Cancel/Retry controls in a header, plus
|
|
17
|
+
* four named composition slots (`tasks`/`tools`/`reasoning`/`output`) for the run's actual
|
|
18
|
+
* content. This is deliberately a SHELL, not a new step-rendering surface — every piece of
|
|
19
|
+
* per-step or per-invocation rendering routes through an existing primitive:
|
|
20
|
+
*
|
|
21
|
+
* - **Elapsed time**: composes `<lr-generation-status>` (`active`/`started-at`, its own built-in
|
|
22
|
+
* Stop button hidden via `show-stop="false"` since this component renders its own Cancel/Retry
|
|
23
|
+
* pair instead) for the *live, ticking* readout while the run is genuinely in progress
|
|
24
|
+
* (`running`/`waiting-input`/`waiting-approval`). `<lr-stream-status>` was considered too (per
|
|
25
|
+
* this family's own composition brief) but doesn't fit: its `phase` vocabulary
|
|
26
|
+
* (`idle`/`connecting`/`streaming`/`stalled`) models transport/connection health, not an agent
|
|
27
|
+
* run's seven-state lifecycle, and it exposes no elapsed-time readout at all — exactly the
|
|
28
|
+
* distinction `<lr-generation-status>`'s own class doc already draws between the two. Once the
|
|
29
|
+
* run reaches a terminal state (`done`/`error`/`cancelled`) with both a `startedAt` and an
|
|
30
|
+
* `endedAt`, this component instead renders a small locally-formatted static duration
|
|
31
|
+
* (`endedAt - startedAt`): `<lr-generation-status>`'s freeze-on-`active=false` semantics only
|
|
32
|
+
* ever freeze at whatever it last computed *live*, so mounting it directly against a completed
|
|
33
|
+
* run loaded from history (e.g. `startedAt` yesterday, `endedAt` five minutes later, loaded
|
|
34
|
+
* today) would either show a stale zero or the wrong multi-hour span — it has no way to render a
|
|
35
|
+
* fixed historical span on demand. That static fallback reuses the same small `formatDuration()`
|
|
36
|
+
* algorithm `<lr-usage-badge>` and `<lr-tool-call-chip>` already duplicate locally for the same
|
|
37
|
+
* reason (see this file's own copy).
|
|
38
|
+
* - **Model + cost summary**: composes `<lr-usage-badge>`, fed `run.costEstimate` (formatted via
|
|
39
|
+
* `formatCost`, or a plain `Intl.NumberFormat` by default — this library never assumes a
|
|
40
|
+
* currency, see `<lr-format-number>`'s own explicit `currency` prop) as its `cost-text`.
|
|
41
|
+
* `run.model` (a plain string with no analogous `<lr-usage-badge>` property) renders alongside
|
|
42
|
+
* as plain text.
|
|
43
|
+
* - **Current step**: a single-line summary of whichever `run.steps` entry currently has
|
|
44
|
+
* `status.kind === 'running'` (the last such entry, if more than one) — a plain text line, not a
|
|
45
|
+
* list, so it doesn't duplicate `<lr-task-list>`'s own per-item rendering.
|
|
46
|
+
* - **Tasks slot default content**: when the host doesn't slot anything into `tasks` and
|
|
47
|
+
* `run.steps` is non-empty, this component's own `<slot>` fallback renders a `<lr-task-list>`
|
|
48
|
+
* populated by mapping every `AgentStep` to a `TaskItem` (see `toTaskItem()`) — a plain data
|
|
49
|
+
* adapter between the two existing shapes, not new rendering.
|
|
50
|
+
* - **Status badge**: composes `<lr-badge>`. **Empty state**: composes `<lr-empty>` when `run` is
|
|
51
|
+
* `null`.
|
|
52
|
+
*
|
|
53
|
+
* `tools`/`reasoning`/`output` are plain named slots with no default content — entirely the
|
|
54
|
+
* host's own composition (typically `<lr-tool-call-chip>`/`<lr-tool-result-view>` rows,
|
|
55
|
+
* reasoning/streaming text, and final output respectively). An `actions` slot adds extra header
|
|
56
|
+
* controls alongside the built-in Cancel/Retry pair.
|
|
57
|
+
*
|
|
58
|
+
* The built-in Cancel button renders while `showCancel` is true and the run's status is one of
|
|
59
|
+
* `TICKING_KINDS` (still genuinely in progress); Retry renders while `showRetry` is true and the
|
|
60
|
+
* status is `error` or `cancelled`. Clicking either fires `lr-cancel`/`lr-retry` with
|
|
61
|
+
* `CancelEventDetail`/`RetryEventDetail` from `src/ai/types.ts` — this component never cancels or
|
|
62
|
+
* retries anything itself, it only requests. `RetryEventDetail.attempt` is a 1-based counter
|
|
63
|
+
* local to this component, incremented on every `lr-retry` click and reset to `0` whenever
|
|
64
|
+
* `run.id` changes (a genuinely new run replacing the old one, as opposed to the same run's status
|
|
65
|
+
* merely updating in place).
|
|
66
|
+
*
|
|
67
|
+
* Lifecycle transitions into an attention-needing or terminal state (`waiting-input`,
|
|
68
|
+
* `waiting-approval`, `done`, `error`, `cancelled`) are announced through an internal
|
|
69
|
+
* `<lr-live-region>`, mirroring `<lr-stream-status>`'s own stall/recover announcements —
|
|
70
|
+
* `running`/`idle` transitions are frequent and not independently actionable, so they stay
|
|
71
|
+
* silent, and whatever status a freshly-assigned `run` (a new `run.id`) happens to already carry
|
|
72
|
+
* is never itself treated as an eventful transition, only a later in-place change is.
|
|
73
|
+
*
|
|
74
|
+
* @customElement lr-agent-run
|
|
75
|
+
* @slot tasks - Task/plan content. Falls back to a `<lr-task-list>` built from `run.steps` when
|
|
76
|
+
* nothing is slotted and `run.steps` is non-empty.
|
|
77
|
+
* @slot tools - Tool-call content (e.g. `<lr-tool-call-chip>`/`<lr-tool-result-view>` rows). No
|
|
78
|
+
* default content.
|
|
79
|
+
* @slot reasoning - Reasoning/thinking content. No default content.
|
|
80
|
+
* @slot output - The run's final output content. No default content.
|
|
81
|
+
* @slot actions - Extra header actions alongside the built-in Cancel/Retry buttons.
|
|
82
|
+
* @event lr-cancel - The built-in Cancel button was activated. `detail: CancelEventDetail`
|
|
83
|
+
* (`{ reason }`, always `undefined` from the built-in button itself).
|
|
84
|
+
* @event lr-retry - The built-in Retry button was activated. `detail: RetryEventDetail`
|
|
85
|
+
* (`{ attempt }`, a 1-based counter reset per `run.id`).
|
|
86
|
+
* @csspart base - The root container.
|
|
87
|
+
* @csspart empty - The `<lr-empty>` shown when `run` is `null`.
|
|
88
|
+
* @csspart header - The header row wrapping status, elapsed time, current step, summary, and actions.
|
|
89
|
+
* @csspart status - Wrapper around the status badge and optional status message.
|
|
90
|
+
* @csspart status-badge - The resolved `<lr-badge>` lifecycle-status pill.
|
|
91
|
+
* @csspart status-message - `run.status.message`, when set.
|
|
92
|
+
* @csspart elapsed - The composed `<lr-generation-status>`, only rendered while the run is
|
|
93
|
+
* actively ticking (see the class doc).
|
|
94
|
+
* @csspart elapsed-static - The static formatted duration for a terminal run with both
|
|
95
|
+
* `startedAt` and `endedAt`.
|
|
96
|
+
* @csspart current-step - Wrapper around the current-step icon and label. Only rendered while a
|
|
97
|
+
* step has `status.kind === 'running'`.
|
|
98
|
+
* @csspart current-step-icon - The spinning current-step icon.
|
|
99
|
+
* @csspart current-step-label - The current step's `label` text.
|
|
100
|
+
* @csspart summary - Wrapper around the model text and the composed `<lr-usage-badge>`. Only
|
|
101
|
+
* rendered while `run.model` or a valid `run.costEstimate` is present.
|
|
102
|
+
* @csspart model - `run.model`, when set.
|
|
103
|
+
* @csspart usage - The composed `<lr-usage-badge>`.
|
|
104
|
+
* @csspart actions - Wrapper around the `actions` slot and the built-in Cancel/Retry buttons.
|
|
105
|
+
* @csspart cancel-button - The built-in Cancel button. Only rendered while cancelable (see the
|
|
106
|
+
* class doc).
|
|
107
|
+
* @csspart retry-button - The built-in Retry button. Only rendered while retryable.
|
|
108
|
+
* @csspart body - Wrapper around the four composition slots.
|
|
109
|
+
* @csspart tasks - The `tasks` slot.
|
|
110
|
+
* @csspart tools - The `tools` slot.
|
|
111
|
+
* @csspart reasoning - The `reasoning` slot.
|
|
112
|
+
* @csspart output - The `output` slot.
|
|
113
|
+
*/
|
|
114
|
+
export declare class LyraAgentRun extends LyraElement<LyraAgentRunEventMap> {
|
|
115
|
+
static styles: import("lit").CSSResultGroup[];
|
|
116
|
+
/** The run to display. Controlled and never mutated by this component -- pass a new object to
|
|
117
|
+
* update it. `null` renders the shared `<lr-empty>` `noData` state. */
|
|
118
|
+
run: AgentRun | null;
|
|
119
|
+
/** Overrides the default plain `Intl.NumberFormat` rendering of `run.costEstimate` fed to the
|
|
120
|
+
* composed `<lr-usage-badge>`'s `cost-text` -- e.g. to add a currency symbol/code, which this
|
|
121
|
+
* library never assumes on a host's behalf. */
|
|
122
|
+
formatCost?: (cost: number) => string;
|
|
123
|
+
/** Whether the built-in Cancel button can render at all -- still gated by the run's own status
|
|
124
|
+
* being cancelable (`running`/`waiting-input`/`waiting-approval`). Set `false` for a read-only
|
|
125
|
+
* viewer. */
|
|
126
|
+
showCancel: boolean;
|
|
127
|
+
/** Whether the built-in Retry button can render at all -- still gated by the run's own status
|
|
128
|
+
* being retryable (`error`/`cancelled`). */
|
|
129
|
+
showRetry: boolean;
|
|
130
|
+
private retryAttempt;
|
|
131
|
+
private liveRegion?;
|
|
132
|
+
private previousRunId?;
|
|
133
|
+
private previousStatusKind?;
|
|
134
|
+
protected willUpdate(changed: PropertyValues): void;
|
|
135
|
+
protected updated(changed: PropertyValues): void;
|
|
136
|
+
private handleRunChange;
|
|
137
|
+
private isAttentionKind;
|
|
138
|
+
private announceStatus;
|
|
139
|
+
private statusLabel;
|
|
140
|
+
private get currentStep();
|
|
141
|
+
private get isTicking();
|
|
142
|
+
/** The static formatted duration for a terminal run with both `startedAt` and `endedAt` --
|
|
143
|
+
* `undefined` while ticking, not yet terminal, or missing either timestamp (see the class
|
|
144
|
+
* doc's "elapsed time" section for why a terminal run doesn't reuse the live ticker). */
|
|
145
|
+
private get staticElapsedText();
|
|
146
|
+
private get costText();
|
|
147
|
+
private get canCancel();
|
|
148
|
+
private get canRetry();
|
|
149
|
+
private onCancelClick;
|
|
150
|
+
private onRetryClick;
|
|
151
|
+
render(): TemplateResult;
|
|
152
|
+
}
|
|
153
|
+
declare global {
|
|
154
|
+
interface HTMLElementTagNameMap {
|
|
155
|
+
'lr-agent-run': LyraAgentRun;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
//# 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;AAUnH,OAAO,2CAA2C,CAAC;AACnD,OAAO,+BAA+B,CAAC;AACvC,OAAO,2BAA2B,CAAC;AACnC,OAAO,mBAAmB,CAAC;AAC3B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,+BAA+B,CAAC;AA8FvC,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,WAAW,CAAC,iBAAiB,CAAC,CAAC;IAC5C,UAAU,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;CAC3C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmGG;AACH,qBAAa,YAAa,SAAQ,WAAW,CAAC,oBAAoB,CAAC;IACjE,MAAM,CAAC,MAAM,iCAAwC;IAErD;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