@datalayer/agent-runtimes 1.6.46 → 1.6.47
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/dist-embed/chunks/{AgentDetails-DC7O2VWb.js → AgentDetails-CFUOZ-Bq.js} +1 -1
- package/dist-embed/chunks/{AgentDetailsDialog-BTJCl-o-.js → AgentDetailsDialog-0OQcRHgy.js} +1 -1
- package/dist-embed/chunks/{AgentInspector-BXqYY8g-.js → AgentInspector-CMjveNA0.js} +1 -1
- package/dist-embed/chunks/{AgentInspectorDialog-dRHZ1p73.js → AgentInspectorDialog-B_ii1_F3.js} +1 -1
- package/dist-embed/chunks/{CellSidebarExtension-DXPIz0Km.js → CellSidebarExtension-vXN5wge0.js} +7 -7
- package/dist-embed/chunks/ChatView-BGIbssMm.js +32 -0
- package/dist-embed/chunks/{CollapsiblePlugin-BPlfrDQU.js → CollapsiblePlugin-DyobyCLm.js} +1 -1
- package/dist-embed/chunks/{ContextPie-BHiGwDpa.js → ContextPie-CY7-2OcN.js} +1 -1
- package/dist-embed/chunks/DatalayerAgentBridge-X6uBhrBZ.js +1 -0
- package/dist-embed/chunks/{DeckComponent-jvb83Q__.js → DeckComponent-B5IMw4r1.js} +2 -2
- package/dist-embed/chunks/{DocumentView-BrdFnTVh.js → DocumentView-IqGVIpnF.js} +1 -1
- package/dist-embed/chunks/{EphemeralDocument-CkPQKyfy.js → EphemeralDocument-DZ8Wk5du.js} +1 -1
- package/dist-embed/chunks/{EphemeralNotebook-CiQIC3MG.js → EphemeralNotebook-B3ZMORn1.js} +2 -2
- package/dist-embed/chunks/{ExcalidrawComponent-D6Cr_b0Z.js → ExcalidrawComponent-9ant-hu6.js} +1 -1
- package/dist-embed/chunks/{ExcalidrawModal-Bso7oDbl.js → ExcalidrawModal-92wiYWnH.js} +1 -1
- package/dist-embed/chunks/{JupyterLexicalExtension-DuD7IV6j.js → JupyterLexicalExtension-DbMi7Dam.js} +9 -9
- package/dist-embed/chunks/{KernelVariables-CXQagESp.js → KernelVariables-lzdkfkh4.js} +2 -2
- package/dist-embed/chunks/{LexicalToolRegistry-LfEpCrfD.js → LexicalToolRegistry-Bd1yXjzB.js} +2 -2
- package/dist-embed/chunks/{NotebookSkeleton-CvO9WylK.js → NotebookSkeleton-BaU6vrsb.js} +1 -1
- package/dist-embed/chunks/{NotebookToolSurfaces-B9fkzQNR.js → NotebookToolSurfaces-Gk8Hsn0c.js} +1 -1
- package/dist-embed/chunks/{NotebookToolbar-D36duUxK.js → NotebookToolbar-CO_qaXBp.js} +1 -1
- package/dist-embed/chunks/{NotebookView-BrdHwtKH.js → NotebookView-B5jqU279.js} +1 -1
- package/dist-embed/chunks/{Output-D9cwH5rg.js → Output-DtWAAuKd.js} +1 -1
- package/dist-embed/chunks/{SandboxDetailsDialog-BYgLjg3W.js → SandboxDetailsDialog-4cOtcyub.js} +1 -1
- package/dist-embed/chunks/{SchemaForm-B3qMIWMy.js → SchemaForm-CulhQBil.js} +1 -1
- package/dist-embed/chunks/{SheetTabs-BR72mzuo.js → SheetTabs-Bc8bBVQ1.js} +3 -3
- package/dist-embed/chunks/{SpreadsheetPreviewView-RA8ASTBV.js → SpreadsheetPreviewView-nFAjWUZ5.js} +1 -1
- package/dist-embed/chunks/{SpreadsheetView-BfScdA-X.js → SpreadsheetView-CBC_KFON.js} +1 -1
- package/dist-embed/chunks/{Toolbar-BAjGB6b-.js → Toolbar-ByUGXe7J.js} +1 -1
- package/dist-embed/chunks/{WidgetVariableView-7lvDcxCg.js → WidgetVariableView-CE4nO4my.js} +1 -1
- package/dist-embed/chunks/{YouTubePlugin-BbjCzaT_.js → YouTubePlugin-DS4rJSGB.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-COr9T6op.js → abnfDiagram-VCTEODGH-BAFsXu3t.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-Ct4NEcIK.js → abnfDiagram-VCTEODGH-B_sHPJUN.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-BRIqJ785.js → abnfDiagram-VCTEODGH-Nk_v6YcC.js} +1 -1
- package/dist-embed/chunks/{ar-SA-G6X2FPQ2-D4M2b5Lr.js → ar-SA-G6X2FPQ2-oGeNqqRN.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-D4oRtyHS.js → architectureDiagram-5GKGNRK7-1ZoJLZwi.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-C7u5kHjb.js → architectureDiagram-5GKGNRK7-CSwlFsek.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-BjY5iY3I.js → architectureDiagram-5GKGNRK7-CXh0a2fl.js} +1 -1
- package/dist-embed/chunks/{az-AZ-76LH7QW2-Rn7oINhz.js → az-AZ-76LH7QW2-Ckdua9fG.js} +1 -1
- package/dist-embed/chunks/{bg-BG-XCXSNQG7-xztohKe7.js → bg-BG-XCXSNQG7-D0NWa5AJ.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-868be97b-CovMH3zl.js → blockDiagram-868be97b-CXF_hory.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-CkSMfCfm.js → blockDiagram-I7D4REHJ-C9eqiZJU.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-GfTzHDnC.js → blockDiagram-I7D4REHJ-CajpRIdD.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-B4X_5qFz.js → blockDiagram-I7D4REHJ-DltT5qVn.js} +1 -1
- package/dist-embed/chunks/{bn-BD-2XOGV67Q-C7Ssg1_2.js → bn-BD-2XOGV67Q-CZbU71zu.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-3f4bdde3-DjidyC1r.js → c4Diagram-3f4bdde3-CcVl9FWN.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-BqdUJ-a0.js → c4Diagram-7LVT6UL2-BHH3V3vI.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-BQzLCwYE.js → c4Diagram-7LVT6UL2-Qn3VrAmQ.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-CvxA6W4e.js → c4Diagram-7LVT6UL2-gcd6QnFn.js} +1 -1
- package/dist-embed/chunks/{ca-ES-6MX7JW3Y-Cr0zd8Z6.js → ca-ES-6MX7JW3Y-CDkEhhvJ.js} +1 -1
- package/dist-embed/chunks/{celltoolbartracker-D1C_kGQL.js → celltoolbartracker-BiNbwXlm.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-BU7nuyLy.js → chunk-2Q5K7J3B-BOvbpwkI.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-DTLOUvry.js → chunk-2Q5K7J3B-C2sNsgev.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-0A899Arf.js → chunk-2Q5K7J3B-GG70N9jl.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-Bx2V6Nrr.js → chunk-5VM5RSS4-CAAgFs5e.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-DXLjroNr.js → chunk-5VM5RSS4-Cle_89ej.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-Tu_sNIjZ.js → chunk-5VM5RSS4-FA3LbrKz.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-DlCzGOX7.js → chunk-F27PBJKO-3X0ZipiC.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO--AK2bGwU.js → chunk-F27PBJKO-Cgut8fat.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-DH0Y71GT.js → chunk-F27PBJKO-RLRQOyxZ.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-D7LtolQ9.js → chunk-IMKFNOWR-BHFcfXrD.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-DwaJo6nd.js → chunk-IMKFNOWR-C4ydUPhx.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-CAMMjZDn.js → chunk-IMKFNOWR-CbVrj1-B.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-B4ZyAymW.js → chunk-JWPE2WC7-Cyj9DtDK.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-DAHI-TVh.js → chunk-JWPE2WC7-DIamN27i.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-PrapfKnD.js → chunk-JWPE2WC7-DjRj5y1C.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-CPqfpqZP.js → chunk-POPQ4Y6H-B4VehBHR.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-COTyhLEP.js → chunk-POPQ4Y6H-Cz3CE_QJ.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-NHNNgLDe.js → chunk-POPQ4Y6H-P4Z54Nsh.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-Cs2sH6R-.js → chunk-SVP7TREG-BcAM4zz1.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-CbTLnK0f.js → chunk-SVP7TREG-BvC6HSBM.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-dVSPfe2c.js → chunk-SVP7TREG-e7xrbkXt.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-BB_Y-4ml.js → chunk-TICWLB2K-DXyPfm2K.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-CfOjQFyb.js → chunk-TICWLB2K-Dq04meN3.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-87-bxVAe.js → chunk-TICWLB2K-DryI_fVu.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-iJemHF_x.js → chunk-XXDRQBXY-Bg1z5wvl.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-5ZZJYzFF.js → chunk-XXDRQBXY-DdaBayRJ.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-DSsbiqRJ.js → chunk-XXDRQBXY-RiUzxSa_.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-ClW13A2U.js → classDiagram-ZZMXUADV-DN-XosUZ.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-CAHeG1gF.js → classDiagram-ZZMXUADV-DTxXqjtH.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-Vh4RzyKh.js → classDiagram-ZZMXUADV-xUvH8sEw.js} +1 -1
- package/dist-embed/chunks/{classDiagram-f62afe4f-CMi22C0U.js → classDiagram-f62afe4f-Dn229LPE.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-604399ef-C26x9ueJ.js → classDiagram-v2-604399ef-CiWW9MIF.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-ClW13A2U.js → classDiagram-v2-VYDZK3BY-DN-XosUZ.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-CAHeG1gF.js → classDiagram-v2-VYDZK3BY-DTxXqjtH.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-Vh4RzyKh.js → classDiagram-v2-VYDZK3BY-xUvH8sEw.js} +1 -1
- package/dist-embed/chunks/{code-block-IT6T5CEO-DYCIn_7v.js → code-block-IT6T5CEO-CLvXlBx2.js} +8 -8
- package/dist-embed/chunks/{component-CmnuUtgX.js → component-D0l01bm2.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-BgIgDbgt.js → cose-bilkent-JH36ORCC-BYjRJxfr.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-ChaVAK2T.js → cose-bilkent-JH36ORCC-DttpaBKc.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-BsiPRKfh.js → cose-bilkent-JH36ORCC-KUtlO0wZ.js} +1 -1
- package/dist-embed/chunks/{createText-aed3d8b3-B86AevE1.js → createText-aed3d8b3-BoxGA1kU.js} +1 -1
- package/dist-embed/chunks/{cs-CZ-2BRQDIVT-G9tBUkZh.js → cs-CZ-2BRQDIVT-D3Tf2yLX.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-Bx_RkYqS.js → cynefinDiagram-5FMLGOSQ-B2ciR9HO.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-bJ9Z5Mhd.js → cynefinDiagram-5FMLGOSQ-CkZtxa_j.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-DriUtMtG.js → cynefinDiagram-5FMLGOSQ-DLxzMI8R.js} +1 -1
- package/dist-embed/chunks/{da-DK-5WZEPLOC-91_vyLpq.js → da-DK-5WZEPLOC-8FuM_s_4.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-D3sdZMQI.js → dagre-GXQ25YYZ-B_GD3wQW.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-C-JIsuS8.js → dagre-GXQ25YYZ-BzK8S8ZN.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-DBL7Fy3A.js → dagre-GXQ25YYZ-D1SrKOMG.js} +1 -1
- package/dist-embed/chunks/{de-DE-XR44H4JA-Bb9tvIZa.js → de-DE-XR44H4JA-BczLv19p.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-D1nmgrkv.js → diagram-S7CK7UJ4-BFa-cF0f.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-DfneUYZ2.js → diagram-S7CK7UJ4-DD7qiEfG.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-4Qtqvrkr.js → diagram-S7CK7UJ4-DRQoONLl.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-CfcZ1PQb.js → diagram-UQ7AKVKN-CiW_VcOF.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-ADhyCAdr.js → diagram-UQ7AKVKN-D2IdtRtZ.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-1KwF4Mkc.js → diagram-UQ7AKVKN-DonHWSMp.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-Cdcv0UHd.js → diagram-VSXAHHWV-BVjz0vRe.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-C1l71k44.js → diagram-VSXAHHWV-Cw-PrCH0.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-w4XrywKL.js → diagram-VSXAHHWV-DRDfYlTN.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-BSxXMnjW.js → diagram-VX7I27RA-DwAkBxoG.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-BNRSlia4.js → diagram-VX7I27RA-UIWotGW-.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-DY396bQc.js → diagram-VX7I27RA-eXyjCSfi.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-Bts1R_lM.js → diagram-Z3DM3KII-C_tHi2zd.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-CfBEqPQi.js → diagram-Z3DM3KII-DIayrWqD.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-B4sR_460.js → diagram-Z3DM3KII-DRxec16z.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-DeJx0KuC.js → ebnfDiagram-PWID7BFC-CZS5hRDB.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-BCOkfz5d.js → ebnfDiagram-PWID7BFC-DViSeEkV.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-DS3AbLt0.js → ebnfDiagram-PWID7BFC-z6EZsNAn.js} +1 -1
- package/dist-embed/chunks/{edges-b2856ca0-CaCZ7ENn.js → edges-b2856ca0-GkzwR7tH.js} +1 -1
- package/dist-embed/chunks/{el-GR-BZB4AONW-B5kc3JC5.js → el-GR-BZB4AONW-XmdkMj04.js} +1 -1
- package/dist-embed/chunks/{erDiagram-5d81789a-BC4jofcY.js → erDiagram-5d81789a-B-A6M2ym.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-CHQgrXAV.js → erDiagram-RLTQ6QDP-BxUZGGsY.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-CXED7TDM.js → erDiagram-RLTQ6QDP-DnyCH2Db.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-UsFx9ZR6.js → erDiagram-RLTQ6QDP-V_YalCFO.js} +1 -1
- package/dist-embed/chunks/{es-ES-U4NZUMDT-CpFB18Kf.js → es-ES-U4NZUMDT-BM8o7VhK.js} +1 -1
- package/dist-embed/chunks/{esm-BqqxV5QL.js → esm-Bgc-xY8g.js} +1 -1
- package/dist-embed/chunks/{esm-Co3TYtt_.js → esm-C8NQHqRw.js} +1 -1
- package/dist-embed/chunks/{eu-ES-A7QVB2H4-CqCALK0Q.js → eu-ES-A7QVB2H4-C92PACcO.js} +1 -1
- package/dist-embed/chunks/{fa-IR-HGAKTJCU-BzSY8fri.js → fa-IR-HGAKTJCU-C0v8l3W9.js} +1 -1
- package/dist-embed/chunks/{fi-FI-Z5N7JZ37-DPRPVT_v.js → fi-FI-Z5N7JZ37-C5OmBq6V.js} +1 -1
- package/dist-embed/chunks/{flowDb-185abca5-DiOj0UBd.js → flowDb-185abca5-DEP1pb38.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-1629c991-D2rlxs4P.js → flowDiagram-1629c991-CKDo2Uo8.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-DnphRIev.js → flowDiagram-HODETNUW-BCHMnvj-.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-BAAyHp4o.js → flowDiagram-HODETNUW-DlFftQTx.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-CIEoNVmM.js → flowDiagram-HODETNUW-JbcKRj53.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-v2-1d953310-CFBK75mM.js → flowDiagram-v2-1d953310-LUQyiANW.js} +1 -1
- package/dist-embed/chunks/{flowchart-elk-definition-6df44142-oM65WKay.js → flowchart-elk-definition-6df44142-C3W5GB7k.js} +1 -1
- package/dist-embed/chunks/{fr-FR-RHASNOE6-Cr4lVSvD.js → fr-FR-RHASNOE6-D2EL4poR.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-3b0b3873-onXTRtkk.js → ganttDiagram-3b0b3873-B7mJgJVE.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-Hu286RYG.js → ganttDiagram-EL5Y4UJY-CMnOlTLP.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-Boj571YL.js → ganttDiagram-EL5Y4UJY-Dh0UlkHT.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-BXjqihIe.js → ganttDiagram-EL5Y4UJY-ZBBC8Bv6.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-D-0lvFne.js → gitGraphDiagram-WWUBYQGX-CH3JDxr0.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-Dn83WGOl.js → gitGraphDiagram-WWUBYQGX-DPjPLqu4.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-CVSBq_5E.js → gitGraphDiagram-WWUBYQGX-fWclmxuk.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-f01e8bc2-DUmhUEtF.js → gitGraphDiagram-f01e8bc2-CGKGKetD.js} +1 -1
- package/dist-embed/chunks/{gl-ES-HMX3MZ6V-CZUw7dN0.js → gl-ES-HMX3MZ6V-YWFm4WxA.js} +1 -1
- package/dist-embed/chunks/{he-IL-6SHJWFNN-DaU5Odek.js → he-IL-6SHJWFNN-mX7JSlN-.js} +1 -1
- package/dist-embed/chunks/{hi-IN-IWLTKZ5I-BZ84Rooc.js → hi-IN-IWLTKZ5I-D6yhTM4e.js} +1 -1
- package/dist-embed/chunks/{hu-HU-A5ZG7DT2-SZiCSe0B.js → hu-HU-A5ZG7DT2-eb6aNn0F.js} +1 -1
- package/dist-embed/chunks/{id-ID-SAP4L64H-DrRa3vVi.js → id-ID-SAP4L64H-EhGa_Mrn.js} +1 -1
- package/dist-embed/chunks/{index-9bae90f3-OqtwF7zW.js → index-9bae90f3-Mi-C8rGJ.js} +1 -1
- package/dist-embed/chunks/{index-DBu0kmO8.js → index-C53VIWpA.js} +10 -10
- package/dist-embed/chunks/{index-B0Wuj2eL.js → index-CKrG-XEr.js} +1 -1
- package/dist-embed/chunks/{index-DpN8KK6c.js → index-CQzZPse_.js} +1 -1
- package/dist-embed/chunks/{index-CEeyR3FZ.js → index-CW9jwmnF.js} +1 -1
- package/dist-embed/chunks/{index-JmqWOkdt.js → index-CcDn6aA5.js} +2 -2
- package/dist-embed/chunks/{index-FucnjX8K.js → index-Cn1erzsp.js} +4 -4
- package/dist-embed/chunks/{index-BeQu6wh3.js → index-Mx7RvmI-.js} +4 -4
- package/dist-embed/chunks/{index-qhxI1VzX.js → index-Xpn7qE4M.js} +2 -2
- package/dist-embed/chunks/{index-hhftmReh.js → index-ke4HKN0W.js} +1 -1
- package/dist-embed/chunks/{index-B6-uQd5L.js → index-mXYl0SDo.js} +2 -2
- package/dist-embed/chunks/{index.esm-Bvtnemp7.js → index.esm-DFnCYMX-.js} +1 -1
- package/dist-embed/chunks/{index.esm-C6blgTRD.js → index.esm-Qo5C9a62.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-BMVi2kA7.js → infoDiagram-27XIBGKW-BLbH-ZwT.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-CIOfWKZS.js → infoDiagram-27XIBGKW-CVdKLCRu.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-B6mmRg3n.js → infoDiagram-27XIBGKW-DKfKrKV3.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-a29d40f1-C176duia.js → infoDiagram-a29d40f1-DtjZgHpG.js} +1 -1
- package/dist-embed/chunks/{isEqual-BYxXubsX.js → isEqual-CO9-1hO8.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-aoviUwQy.js → ishikawaDiagram-5VMMS53U-0oKH5_3F.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-D5ALaQir.js → ishikawaDiagram-5VMMS53U-BBHuXOEP.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-pCzmYyRW.js → ishikawaDiagram-5VMMS53U-DIZaJSHk.js} +1 -1
- package/dist-embed/chunks/{it-IT-JPQ66NNP-_TEhDIcF.js → it-IT-JPQ66NNP-BEhvmrUK.js} +1 -1
- package/dist-embed/chunks/{ja-JP-DBVTYXUO-IJaTVgTb.js → ja-JP-DBVTYXUO-lmsxmH6A.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-CDvOmpvU.js → journeyDiagram-3NMN7TZE-DkG1XeCY.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-DwMRB_U9.js → journeyDiagram-3NMN7TZE-fkubBGZE.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-BwEZ7tUE.js → journeyDiagram-3NMN7TZE-j2SA8xPg.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-95396277-eNxCaz5h.js → journeyDiagram-95396277-CJ_CSiyl.js} +1 -1
- package/dist-embed/chunks/{kaa-6HZHGXH3-CTksAiLJ.js → kaa-6HZHGXH3-C2eZOrFk.js} +1 -1
- package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-DbA7aOfU.js → kab-KAB-ZGHBKWFO-BtO_Ccgd.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-CJ9VIyON.js → kanban-definition-UXKFOSKX-Bfl0iItE.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-Ca27l5x1.js → kanban-definition-UXKFOSKX-D1mvDB88.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-4HMvq5Ms.js → kanban-definition-UXKFOSKX-DSbwi_qW.js} +1 -1
- package/dist-embed/chunks/{kk-KZ-P5N5QNE5-Bdzg30AB.js → kk-KZ-P5N5QNE5-BlIG0olU.js} +1 -1
- package/dist-embed/chunks/{km-KH-HSX4SM5Z-Bwn2NP1-.js → km-KH-HSX4SM5Z-Dixy2EU_.js} +1 -1
- package/dist-embed/chunks/{ko-KR-MTYHY66A-KUaxlo0q.js → ko-KR-MTYHY66A-CUkVgSOW.js} +1 -1
- package/dist-embed/chunks/{ku-TR-6OUDTVRD-DRegsFXo.js → ku-TR-6OUDTVRD-BKl1H1lo.js} +1 -1
- package/dist-embed/chunks/{layout-CfByO2og.js → layout-C8rF9YGx.js} +1 -1
- package/dist-embed/chunks/{layout-Bww76Fbs.js → layout-CG9LV3Hx.js} +1 -1
- package/dist-embed/chunks/{layout-XYFfX1M2.js → layout-DoJGfXjC.js} +1 -1
- package/dist-embed/chunks/{lexicalHooks-BtjglRXO.js → lexicalHooks-DClcl3Q8.js} +1 -1
- package/dist-embed/chunks/{lib-D7CvuX1J.js → lib-3oZnFGZf.js} +1 -1
- package/dist-embed/chunks/{lib-COJY2oKd.js → lib-B9Uql7XT.js} +1 -1
- package/dist-embed/chunks/{lib-C2mgrsS1.js → lib-BBoRpP0j.js} +1 -1
- package/dist-embed/chunks/{lib-BpltV-0Y.js → lib-BCX_PXlV.js} +1 -1
- package/dist-embed/chunks/{lib-DrEcjKb5.js → lib-Bj5kYV-X.js} +1 -1
- package/dist-embed/chunks/{lib-csBGF1d0.js → lib-BpgMIewI.js} +2 -2
- package/dist-embed/chunks/{lib-CQeoQJWp.js → lib-BuHiJKfL.js} +6 -6
- package/dist-embed/chunks/{lib-9S57siQD.js → lib-ByfYxpOp.js} +1 -1
- package/dist-embed/chunks/{lib-Dh9o1esj.js → lib-C1F_0rhP.js} +1 -1
- package/dist-embed/chunks/{lib-DOnguzJf.js → lib-C3UM0Dbg.js} +1 -1
- package/dist-embed/chunks/{lib-CHID83aM.js → lib-C65GpCKu.js} +1 -1
- package/dist-embed/chunks/{lib-ox3VOLDA.js → lib-CblY5Fcs.js} +1 -1
- package/dist-embed/chunks/{lib-C46CpvHb.js → lib-ClP1grrt.js} +1 -1
- package/dist-embed/chunks/{lib-rn9DpcHi.js → lib-D7ZIPOgc.js} +1 -1
- package/dist-embed/chunks/{lib-op0DTswa.js → lib-DEmXqC05.js} +1 -1
- package/dist-embed/chunks/{lib--J3JPp2K.js → lib-DHfhUiNX.js} +6 -6
- package/dist-embed/chunks/{lib-QmOij8gS.js → lib-DdpVsCS-.js} +1 -1
- package/dist-embed/chunks/{lib-CjBEbEzm.js → lib-DgCQUDNp.js} +1 -1
- package/dist-embed/chunks/{lib-Cpc8Fspj.js → lib-UcItgdUY.js} +1 -1
- package/dist-embed/chunks/{lib-PbTUB5SW.js → lib-jE6-GvLb.js} +4 -4
- package/dist-embed/chunks/{lt-LT-XHIRWOB4-c6CdaS7u.js → lt-LT-XHIRWOB4-TTj82TW7.js} +1 -1
- package/dist-embed/chunks/{lv-LV-5QDEKY6T-D9RognOk.js → lv-LV-5QDEKY6T-DLiLVd-V.js} +1 -1
- package/dist-embed/chunks/{mermaid.core-Esvc6Hnq.js → mermaid.core-DNh2XcNw.js} +5 -5
- package/dist-embed/chunks/{mermaid.core-S-dRFFrX.js → mermaid.core-YqoEZ53F.js} +3 -3
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-ByNYsSBG.js → mindmap-definition-YA3MSWOX-9Zysg0pA.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-Df1_M5n9.js → mindmap-definition-YA3MSWOX-B_htE6P9.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-B3dWXyS3.js → mindmap-definition-YA3MSWOX-Bverytf0.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-e4c1d938-OxJ5FL_j.js → mindmap-definition-e4c1d938-BZ0_IMAi.js} +1 -1
- package/dist-embed/chunks/{mr-IN-CRQNXWMA-ht3P_mrN.js → mr-IN-CRQNXWMA-CiVi-oiY.js} +1 -1
- package/dist-embed/chunks/{my-MM-5M5IBNSE-CsIkhWRp.js → my-MM-5M5IBNSE-DiSnYIcD.js} +1 -1
- package/dist-embed/chunks/{nb-NO-T6EIAALU-DJw7Uvbx.js → nb-NO-T6EIAALU-DfSOBb64.js} +1 -1
- package/dist-embed/chunks/{nl-NL-IS3SIHDZ-Dcrp-zwB.js → nl-NL-IS3SIHDZ-BF72RX5n.js} +1 -1
- package/dist-embed/chunks/{nn-NO-6E72VCQL-DaBAIbM9.js → nn-NO-6E72VCQL-Ck3xjqMu.js} +1 -1
- package/dist-embed/chunks/{oc-FR-POXYY2M6-DSdMEDCa.js → oc-FR-POXYY2M6-CEdstZI1.js} +1 -1
- package/dist-embed/chunks/{pa-IN-N4M65BXN-BMyPito1.js → pa-IN-N4M65BXN-D8DDwUFn.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-kBah6ESG.js → pegDiagram-XKGWAZYB-BKyBaYIN.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-BSS-6ffj.js → pegDiagram-XKGWAZYB-JwxbEaY4.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-Cp-YO1Nz.js → pegDiagram-XKGWAZYB-pjI6nL6b.js} +1 -1
- package/dist-embed/chunks/{percentages-BXMCSKIN-pswfKMt2.js → percentages-BXMCSKIN-CxyBCxgG.js} +6 -6
- package/dist-embed/chunks/{pica-9l-d47El.js → pica-DX7g0w-h.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-O8OeQHh3.js → pieDiagram-E7YTZNPT-B68DSrPX.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-BxyKuocY.js → pieDiagram-E7YTZNPT-Bkr2CIvA.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-Bm12iDY2.js → pieDiagram-E7YTZNPT-D7XWQ97B.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-c941bede-CIoxBoJu.js → pieDiagram-c941bede-d4RaoKUh.js} +1 -1
- package/dist-embed/chunks/{pl-PL-T2D74RX3-CFk8rHgP.js → pl-PL-T2D74RX3-bJIlJVUJ.js} +1 -1
- package/dist-embed/chunks/{plugin-NcgdmcAO.js → plugin-CCnESDIv.js} +1 -1
- package/dist-embed/chunks/{plugin-BpyrQiv7.js → plugin-CYxMm8BZ.js} +1 -1
- package/dist-embed/chunks/{portable-BXor4J0S.js → portable-QzxJi8wl.js} +1 -1
- package/dist-embed/chunks/{pt-BR-5N22H2LF-BYlDcalT.js → pt-BR-5N22H2LF-T_zS_1UI.js} +1 -1
- package/dist-embed/chunks/{pt-PT-UZXXM6DQ-xXdoFOOb.js → pt-PT-UZXXM6DQ-BGYBI-AZ.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-BzjPv9Mo.js → quadrantDiagram-AXDQQJYC-B4R-yitO.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-B676z1mV.js → quadrantDiagram-AXDQQJYC-CGpes8qr.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-DFY8ZLzp.js → quadrantDiagram-AXDQQJYC-rgXt1vGm.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-cf8b8fe0-DEYbq8W_.js → quadrantDiagram-cf8b8fe0-5H46snRs.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-_NlqSOsS.js → railroadDiagram-O6MQD6OU-C4f7oKun.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-BrFHqmp2.js → railroadDiagram-O6MQD6OU-CJTiXlK1.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-xlRvlaA2.js → railroadDiagram-O6MQD6OU-DJaPMu7R.js} +1 -1
- package/dist-embed/chunks/{renderer-We9CyR7b.js → renderer-CKt61TR-.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-53bda41b-BzE9FWgv.js → requirementDiagram-53bda41b-DuuN6U8q.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-DJ5PUfXx.js → requirementDiagram-BXWQKSXE-C4rko1x6.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-CqWfurTm.js → requirementDiagram-BXWQKSXE-CEpmAL1v.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-Hehk-IFe.js → requirementDiagram-BXWQKSXE-DsV3syx6.js} +1 -1
- package/dist-embed/chunks/{ro-RO-JPDTUUEW-e-URCww-.js → ro-RO-JPDTUUEW-BF-LNyWr.js} +1 -1
- package/dist-embed/chunks/{ru-RU-B4JR7IUQ-CrXBOpZl.js → ru-RU-B4JR7IUQ-CYsp0VFS.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-DSrV5Rcy.js → sankeyDiagram-P5KCCOFB-8-my5aGt.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-CTPOOwMI.js → sankeyDiagram-P5KCCOFB-B2FnnI1e.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-DUA8-DLK.js → sankeyDiagram-P5KCCOFB-BmOnDwNP.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-c3ef121a-yZIQ5S7q.js → sankeyDiagram-c3ef121a-CoUNmipD.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-82a5b84f-AtgiqM7O.js → sequenceDiagram-82a5b84f-CXh2tfZw.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-B1cw5Oup.js → sequenceDiagram-WJ2MYXX4-B3OnNwUZ.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-CXsr6X8d.js → sequenceDiagram-WJ2MYXX4-DLJTx5HG.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-B6CSGaEA.js → sequenceDiagram-WJ2MYXX4-jYhIJWPU.js} +1 -1
- package/dist-embed/chunks/{server-extension-D9R-wwz5.js → server-extension-uXAt_Cce.js} +1 -1
- package/dist-embed/chunks/{sessions-DdXtI_C1.js → sessions-CmElNrqo.js} +2 -2
- package/dist-embed/chunks/{si-LK-N5RQ5JYF-DmJK04-A.js → si-LK-N5RQ5JYF-DPP2zzI4.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-BWyPehjY.js → sizeCapture-INFHLROL-Bw-7LloZ.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-jPyERZ1n.js → sizeCapture-INFHLROL-ClUFT0bL.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-C_RJNTEe.js → sizeCapture-INFHLROL-DKI7jpZK.js} +1 -1
- package/dist-embed/chunks/{sk-SK-C5VTKIMK-BDHycW1Q.js → sk-SK-C5VTKIMK-Bsy5tZJ9.js} +1 -1
- package/dist-embed/chunks/{sl-SI-NN7IZMDC-Bv9ZQTNb.js → sl-SI-NN7IZMDC-BSN6metY.js} +1 -1
- package/dist-embed/chunks/{state-ChvKybRM.js → state-Bvubz6wh.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-43e79a5f-CjdmUJOd.js → stateDiagram-43e79a5f-FLMfzXB-.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-BXnmKNN1.js → stateDiagram-D77RDMKH-2CWWTXaI.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-CUt1Zkau.js → stateDiagram-D77RDMKH-2sTmMX8Y.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-CrFujTYb.js → stateDiagram-D77RDMKH-7giqZmW7.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-2041ed4f-DFbRZC_o.js → stateDiagram-v2-2041ed4f-D2F_d6ME.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-5Xtf4H1i.js → stateDiagram-v2-MP3YSRHH-BVtW8oDF.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-C0LD6d-h.js → stateDiagram-v2-MP3YSRHH-Bx_0d80j.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-D0VxqcOS.js → stateDiagram-v2-MP3YSRHH-KSrY0YAO.js} +1 -1
- package/dist-embed/chunks/{styles-455b33cd-d_tMvz1K.js → styles-455b33cd-Bu2zKHp4.js} +1 -1
- package/dist-embed/chunks/{styles-f932cba9-CEfonQZW.js → styles-f932cba9-C9jkvhYd.js} +1 -1
- package/dist-embed/chunks/{styles-fcc2142b-CJtnKcrY.js → styles-fcc2142b-DOM8RBzL.js} +1 -1
- package/dist-embed/chunks/{subset-shared.chunk-B0WCMaCa.js → subset-shared.chunk-cWEwjmHn.js} +1 -1
- package/dist-embed/chunks/{subset-worker.chunk-i0SNRqXr.js → subset-worker.chunk-CoJnEmh6.js} +1 -1
- package/dist-embed/chunks/{substates-CqYxDlIh.js → substates-jb_LtnyU.js} +1 -1
- package/dist-embed/chunks/{sv-SE-XGPEYMSR-_HPzcZFc.js → sv-SE-XGPEYMSR-DtD64Ekq.js} +1 -1
- package/dist-embed/chunks/{svgDrawCommon-148a3cd9-Chk2X9i7.js → svgDrawCommon-148a3cd9-9JymGxYl.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-CMfuNOKB.js → swimlanes-42K2YHIH-BFOVykjS.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-BV3XvQft.js → swimlanes-42K2YHIH-DgPipNZK.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-da8v0JDr.js → swimlanes-42K2YHIH-Dm0fKZOd.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-U1nDoVzD.js → swimlanesDiagram-VR7AAH4N-DQtryFsY.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-CoxoxRv8.js → swimlanesDiagram-VR7AAH4N-DmI51dbU.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-BQ0QVA2n.js → swimlanesDiagram-VR7AAH4N-Nfw6c9qs.js} +1 -1
- package/dist-embed/chunks/{ta-IN-2NMHFXQM-Ccvi-lqm.js → ta-IN-2NMHFXQM-DgbGGIjW.js} +1 -1
- package/dist-embed/chunks/{th-TH-HPSO5L25-DvAg4Mv1.js → th-TH-HPSO5L25-CCZDC3pr.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-BEfC9HaT.js → timeline-definition-24CTP7MA-BH6wgq9g.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-C4dXdolh.js → timeline-definition-24CTP7MA-BHxdIfP8.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-CJeNJmUn.js → timeline-definition-24CTP7MA-D7CF0GIK.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-7545f45a-B9mNe698.js → timeline-definition-7545f45a-D4OzFMpR.js} +1 -1
- package/dist-embed/chunks/{tr-TR-DEFEU3FU-DJsjfrja.js → tr-TR-DEFEU3FU-akGa6iYJ.js} +1 -1
- package/dist-embed/chunks/{uk-UA-QMV73CPH-3fvexlQA.js → uk-UA-QMV73CPH-t35eBlzl.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-BxXmlFlS.js → vennDiagram-4TSXK5OY-CRm97qMj.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-Cb7TJzRk.js → vennDiagram-4TSXK5OY-Df2NdsCe.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-Bsn5zjyD.js → vennDiagram-4TSXK5OY-jiuY4qr2.js} +1 -1
- package/dist-embed/chunks/{vi-VN-M7AON7JQ-BoQ3ayAr.js → vi-VN-M7AON7JQ-xWA8FWTO.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-hcToOz3-.js → wardleyDiagram-VM6X3IG4-Dl6htcV4.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-D7coqIlJ.js → wardleyDiagram-VM6X3IG4-DvfGuTUK.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-DQqVVzTS.js → wardleyDiagram-VM6X3IG4-SCgxQpjj.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-3f383b91-DgRDb1pL.js → xychartDiagram-3f383b91-CpDYNTsR.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-9a5I7o20.js → xychartDiagram-S5SC5T6Z-B7z8joDc.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-DD72ULmZ.js → xychartDiagram-S5SC5T6Z-CeiEf5TT.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-CCp_tU6h.js → xychartDiagram-S5SC5T6Z-fil-wQKb.js} +1 -1
- package/dist-embed/chunks/{zh-CN-LNUGB5OW-Dzh0Ni_q.js → zh-CN-LNUGB5OW-D7M8yyYf.js} +1 -1
- package/dist-embed/chunks/{zh-HK-E62DVLB3-_1FpSc_d.js → zh-HK-E62DVLB3-DvMmnROR.js} +1 -1
- package/dist-embed/chunks/{zh-TW-RAJ6MFWO-CU-R8eF0.js → zh-TW-RAJ6MFWO-DSL_-5li.js} +1 -1
- package/dist-embed/datalayer-app-main.js +53 -53
- package/lib/apps/apps/visitorToken.d.ts +10 -0
- package/lib/apps/apps/visitorToken.js +31 -5
- package/lib/apps/embed/element.js +16 -8
- package/lib/apps/plugins/agents/DatalayerAgentBridge.js +36 -12
- package/lib/apps/plugins/chat/ChatView.js +28 -3
- package/lib/chat/base/ChatBase.js +13 -1
- package/lib/chat/header/ChatHeaderBase.js +17 -12
- package/lib/specs/agents/agents.d.ts +2 -0
- package/lib/specs/agents/agents.js +186 -2
- package/lib/specs/mcpServers.d.ts +1 -0
- package/lib/specs/mcpServers.js +35 -0
- package/lib/state/substates/RuntimesState.js +4 -3
- package/package.json +1 -1
- package/dist-embed/chunks/ChatView-zs95MHcU.js +0 -32
- package/dist-embed/chunks/DatalayerAgentBridge-D01Ek4NE.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as te,r as z,j as e,B as n,H as F,
|
|
1
|
+
import{J as te,r as z,j as e,B as n,H as F,du as ae,T as i,v as L,f8 as Re,fk as le,fl as He,fm as Ve,fn as me,fo as De,fp as qe,fq as Be,fr as Ge,fs as Ke,ft as Je,fu as H,X as ce,bt as Ye,dt as Xe,L as A,b1 as Qe,fv as Ze,fw as et,fx as tt,fy as Pe,ds as nt,fz as st,e7 as ot,dq as it,I as Oe,f5 as rt,fA as lt,fB as at,fC as ct,fD as dt,fE as ut,fF as ft,fG as pt,fH as ht,fI as gt,fJ as xt,fK as ne,fL as se,dr as mt,fM as bt}from"../datalayer-app-main.js";import{A as yt}from"./ArrowLeftIcon-sX3iNMG1.js";import{A as jt,T as St,M as Me,U as We,F as wt}from"./UnlinkIcon-fXwOyjzQ.js";import Ie from"./esm-C8NQHqRw.js";import{P as $e}from"./index-CKWSKbHe.js";import{L as de}from"./LinkIcon-BtBG9K47.js";import{A as kt}from"./Avatar-Cv5OpUWu.js";import"./index-BhCoJe__.js";function vt(t,s){if(Object.is(t,s))return!0;if(typeof t!="object"||t===null||typeof s!="object"||s===null)return!1;if(t instanceof Map&&s instanceof Map){if(t.size!==s.size)return!1;for(const[l,o]of t)if(!Object.is(o,s.get(l)))return!1;return!0}if(t instanceof Set&&s instanceof Set){if(t.size!==s.size)return!1;for(const l of t)if(!s.has(l))return!1;return!0}const r=Object.keys(t);if(r.length!==Object.keys(s).length)return!1;for(const l of r)if(!Object.prototype.hasOwnProperty.call(s,l)||!Object.is(t[l],s[l]))return!1;return!0}const{useRef:zt}=te;function Ne(t){const s=zt();return r=>{const l=t(r);return vt(s.current,l)?s.current:s.current=l}}function D(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:t.toString()}function Te(t){if(!Number.isFinite(t)||Number.isNaN(t)||t<0)return"0ms";if(t<1)return`${Math.max(0,Math.round(t*1e3))}ms`;if(t<60)return`${t.toFixed(1)}s`;const s=Math.floor(t/60),r=Math.round(t%60);return`${s}m ${r}s`}function Ct(t){const s=String(t??"");return/[",\n]/.test(s)?`"${s.replace(/"/g,'""')}"`:s}function It(t){const s=[];s.push(["Context Usage Snapshot for Agent",t.agentId]),s.push(["Generated At",new Date().toISOString()]),s.push([]),s.push(["Summary"]),s.push(["Total Tokens",t.totalTokens]),s.push(["Context Window",t.contextWindow]),s.push(["System Prompt Tokens",t.systemPromptTokens]),s.push(["Tool Tokens",t.toolTokens]),s.push(["History Tokens",t.historyTokens]),s.push(["Current Message Tokens",t.currentMessageTokens]),s.push(["User Message Tokens",t.userMessageTokens]),s.push(["Assistant Message Tokens",t.assistantMessageTokens]),s.push([]),t.sessionUsage&&(s.push(["Session Usage"]),s.push(["Input Tokens",t.sessionUsage.inputTokens]),s.push(["Output Tokens",t.sessionUsage.outputTokens]),s.push(["Requests",t.sessionUsage.requests]),s.push(["Tool Calls",t.sessionUsage.toolCalls]),s.push(["Turns",t.sessionUsage.turns]),s.push(["Duration Seconds",t.sessionUsage.durationSeconds]),s.push([])),t.turnUsage&&(s.push(["Last Turn Usage"]),s.push(["Input Tokens",t.turnUsage.inputTokens]),s.push(["Output Tokens",t.turnUsage.outputTokens]),s.push(["Requests",t.turnUsage.requests]),s.push(["Tool Calls",t.turnUsage.toolCalls]),s.push(["Duration Seconds",t.turnUsage.durationSeconds]),s.push([])),s.push(["Distribution"]),s.push(["Category","Tokens"]);for(const c of t.distribution?.children??[])s.push([c.name,c.value]);if(s.push([]),t.perRequestUsage.length>0){s.push(["Per Request Usage"]),s.push(["Request #","Input Tokens","Output Tokens","Duration Ms","Tool Names","Timestamp","Turn ID"]);for(const c of t.perRequestUsage)s.push([c.requestNum,c.inputTokens,c.outputTokens,c.durationMs,c.toolNames.join("; "),c.timestamp??"",c.turnId??""])}const r=s.map(c=>c.map(Ct).join(",")).join(`
|
|
2
2
|
`),l=new Blob([r],{type:"text/csv;charset=utf-8;"}),o=URL.createObjectURL(l),a=document.createElement("a");a.href=o;const d=new Date().toISOString().replace(/[:.]/g,"-");a.download=`context-usage-${t.agentId}-${d}.csv`,a.style.display="none",document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(o)}function Tt(t){switch(t.toLowerCase()){case"messages":case"history":return Ge;case"tools":case"tool definitions":return Be;case"system":case"system prompts":return qe;case"cache":return De;default:return me}}function At({agentId:t,apiBase:s,liveData:r,messageCount:l=0,defaultView:o="overview",chartHeight:a="200px"}){const[d,c]=z.useState(o),[h,f]=z.useState(!1),S=r!==void 0,u=r,b=!S,m=z.useMemo(()=>{if(!u?.perRequestUsage||u.perRequestUsage.length===0)return null;const g=u.perRequestUsage;let C=0,N=0;const B=[],M=[],w=[],X=[];return g.forEach(W=>{C+=W.inputTokens,N+=W.outputTokens,B.push(`#${W.requestNum}`),M.push(C),w.push(N),X.push(C+N)}),{tooltip:{trigger:"axis",formatter:W=>{let U=`<strong>${W[0]?.axisValue||""}</strong><br/>`;return W.forEach($=>{U+=`${$.marker} ${$.seriesName}: ${D($.value)}<br/>`}),U}},legend:{data:["Input","Output","Total"],bottom:0,textStyle:{fontSize:10}},grid:{left:45,right:15,top:10,bottom:35},xAxis:{type:"category",data:B,axisLabel:{fontSize:10}},yAxis:{type:"value",axisLabel:{fontSize:10,formatter:W=>D(W)}},series:[{name:"Input",type:"line",data:M,smooth:!0,lineStyle:{width:2},areaStyle:{opacity:.2},itemStyle:{color:"#3B82F6"}},{name:"Output",type:"line",data:w,smooth:!0,lineStyle:{width:2},areaStyle:{opacity:.2},itemStyle:{color:"#10B981"}},{name:"Total",type:"line",data:X,smooth:!0,lineStyle:{width:2,type:"dashed"},itemStyle:{color:"#8B5CF6"}}]}},[u?.perRequestUsage]),R=z.useMemo(()=>{if(!u?.distribution)return null;const{distribution:g}=u,C=g.children&&g.children.length>0;return{tooltip:{formatter:N=>`${N.name}: ${D(N.value)} tokens`},series:[{type:"treemap",data:C?g.children:[{name:"No data",value:1}],roam:!1,breadcrumb:{show:!1},label:{show:!0,formatter:"{b}",fontSize:11},itemStyle:{borderColor:"#fff",borderWidth:2},levels:[{itemStyle:{borderColor:"#777",borderWidth:0,gapWidth:1}},{itemStyle:{borderColor:"#555",borderWidth:5,gapWidth:1},colorSaturation:[.35,.5]},{colorSaturation:[.35,.5]}]}]}},[u?.distribution]);if(b)return e.jsxs(n,{children:[e.jsx(F,{as:"h4",sx:{fontSize:1,fontWeight:"semibold",mb:2,color:"fg.muted"},children:"Context Usage"}),e.jsxs(n,{p:3,bg:"canvas.subtle",borderRadius:2,border:"1px solid",borderColor:"border.default",display:"flex",alignItems:"center",gap:2,children:[e.jsx(ae,{size:"small"}),e.jsx(i,{sx:{fontSize:1,color:"fg.muted"},children:"Loading context details..."})]})]});if(!u)return e.jsxs(n,{children:[e.jsx(F,{as:"h4",sx:{fontSize:1,fontWeight:"semibold",mb:2,color:"fg.muted"},children:"Context Usage"}),e.jsx(n,{p:3,bg:"attention.subtle",borderRadius:2,border:"1px solid",borderColor:"attention.muted",children:e.jsx(i,{sx:{fontSize:1,color:"attention.fg"},children:"Waiting for context data from WebSocket stream..."})})]});const{totalTokens:P,contextWindow:y,sessionUsage:p,turnUsage:j,distribution:E}=u,I=l>0?l:Math.max(p?.turns??0,u.perRequestUsage?.length>0?1:0),O=E?.children&&E.children.length>0;return e.jsxs(n,{children:[e.jsxs(n,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2,children:[e.jsx(F,{as:"h4",sx:{fontSize:1,fontWeight:"semibold",color:"fg.muted"},children:"Context Usage"}),e.jsxs(n,{display:"flex",alignItems:"center",gap:2,children:[I>0&&e.jsxs(i,{sx:{fontSize:0,color:"fg.muted"},children:[I," ",I===1?"message sent":"messages sent"]}),e.jsx(L,{size:"small",variant:"invisible",leadingVisual:Re,onClick:()=>It(u),children:"Download"})]})]}),e.jsxs(n,{p:3,bg:"canvas.subtle",borderRadius:2,border:"1px solid",borderColor:"border.default",children:[e.jsx(n,{mb:3,children:e.jsxs(i,{sx:{fontSize:1,fontWeight:"semibold"},children:["Total usage: ",D(P)]})}),(p||j)&&e.jsxs(n,{display:"flex",gap:3,mb:3,flexWrap:"wrap",children:[p&&e.jsxs(n,{flex:1,minWidth:120,p:2,bg:"canvas.default",borderRadius:2,border:"1px solid",borderColor:"border.muted",children:[e.jsxs(i,{sx:{fontSize:0,color:"fg.muted",display:"block"},children:["Session (",p.turns," turns)"]}),e.jsx(i,{sx:{fontSize:1,fontWeight:"semibold"},children:D(p.inputTokens+p.outputTokens)}),e.jsxs(i,{sx:{fontSize:0,color:"fg.muted"},children:[" ","in ",Te(p.durationSeconds)]})]}),j&&e.jsxs(n,{flex:1,minWidth:120,p:2,bg:"canvas.default",borderRadius:2,border:"1px solid",borderColor:"border.muted",children:[e.jsxs(i,{sx:{fontSize:0,color:"fg.muted",display:"block"},children:["Last Turn (",j.requests," reqs)"]}),e.jsx(i,{sx:{fontSize:1,fontWeight:"semibold"},children:D(j.inputTokens+j.outputTokens)}),e.jsxs(i,{sx:{fontSize:0,color:"fg.muted"},children:[" ","in ",Te(j.durationSeconds)]})]})]}),e.jsxs(n,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2,children:[e.jsxs(le,{"aria-label":"View mode",size:"small",onChange:g=>{c(["overview","distribution","history"][g])},children:[e.jsx(le.IconButton,{"aria-label":"Overview",selected:d==="overview",icon:He}),e.jsx(le.IconButton,{"aria-label":"Distribution",selected:d==="distribution",icon:jt,disabled:!O}),e.jsx(le.IconButton,{"aria-label":"History",selected:d==="history",icon:Ve})]}),d==="overview"&&e.jsx(L,{size:"small",variant:"invisible",onClick:()=>f(!h),children:h?"Less":"More"})]}),d==="overview"&&e.jsxs(n,{children:[e.jsxs(n,{display:"flex",flexDirection:"column",gap:2,children:[O&&E.children.map(g=>{const C=Tt(g.name),N=g.value/y*100;return e.jsxs(n,{display:"flex",alignItems:"center",gap:2,children:[e.jsx(n,{color:"fg.muted",width:20,children:e.jsx(C,{size:16})}),e.jsx(i,{sx:{fontSize:1,flex:1},children:g.name}),e.jsx(i,{sx:{fontSize:0,color:"fg.muted",minWidth:60},children:D(g.value)}),e.jsx(n,{width:80,children:e.jsx($e,{progress:N,sx:{height:4}})})]},g.name)}),!O&&e.jsx(i,{sx:{color:"fg.muted",fontSize:1,textAlign:"center",py:2},children:"No context data yet. Start a conversation to see usage."})]}),h&&O&&e.jsxs(n,{mt:3,p:2,bg:"canvas.default",borderRadius:2,border:"1px solid",borderColor:"border.muted",fontSize:0,children:[u.systemPromptTokens>0&&e.jsxs(n,{mb:2,children:[e.jsxs(i,{sx:{fontWeight:"semibold"},children:["System Prompts:"," ",D(u.systemPromptTokens)," tokens"]}),u.systemPrompts.slice(0,2).map((g,C)=>e.jsxs(i,{sx:{display:"block",ml:2,mt:1,color:"fg.muted"},children:["•"," ",g.length>80?g.slice(0,80)+"...":g]},C))]}),u.toolTokens>0&&e.jsxs(n,{mb:2,children:[e.jsxs(i,{sx:{fontWeight:"semibold"},children:["Tools: ",D(u.toolTokens)," tokens (",u.tools.length," tools)"]}),e.jsxs(n,{ml:2,mt:1,children:[u.tools.slice(0,4).map((g,C)=>e.jsxs(i,{sx:{display:"block",color:"fg.muted"},children:["• ",g.name,": ",D(g.totalTokens)]},C)),u.tools.length>4&&e.jsxs(i,{sx:{color:"fg.muted",fontStyle:"italic"},children:["...and ",u.tools.length-4," more"]})]})]}),(u.userMessageTokens>0||u.assistantMessageTokens>0)&&e.jsxs(n,{mb:2,children:[e.jsxs(i,{sx:{fontWeight:"semibold"},children:["Messages:"," ",D(u.userMessageTokens+u.assistantMessageTokens)," ","tokens"]}),e.jsxs(n,{ml:2,mt:1,children:[e.jsxs(i,{sx:{display:"block",color:"fg.muted"},children:["• User: ",D(u.userMessageTokens)]}),e.jsxs(i,{sx:{display:"block",color:"fg.muted"},children:["• Assistant:"," ",D(u.assistantMessageTokens)]}),u.toolCallTokens>0&&e.jsxs(i,{sx:{display:"block",color:"fg.muted"},children:["• Tool calls:"," ",D(u.toolCallTokens)]})]})]})]})]}),d==="distribution"&&R&&e.jsx(Ie,{option:R,style:{height:a},opts:{renderer:"svg"}}),d==="history"&&m&&e.jsxs(n,{children:[e.jsx(Ie,{option:m,style:{height:a},opts:{renderer:"svg"}}),h&&u.perRequestUsage.length>0&&e.jsx(n,{mt:2,maxHeight:"150px",overflowY:"auto",fontSize:0,children:u.perRequestUsage.slice(-10).reverse().map((g,C)=>e.jsxs(n,{display:"flex",gap:2,py:1,borderBottom:C<9?"1px solid":"none",borderColor:"border.muted",children:[e.jsxs(i,{sx:{fontWeight:"semibold",minWidth:30},children:["#",g.requestNum]}),e.jsxs(i,{sx:{color:"#3B82F6"},children:["↓",D(g.inputTokens)]}),e.jsxs(i,{sx:{color:"#10B981"},children:["↑",D(g.outputTokens)]}),g.toolNames.length>0&&e.jsxs(i,{sx:{color:"fg.muted"},children:["🔧 ",g.toolNames.join(", ")]})]},g.requestNum))})]}),d==="history"&&!m&&e.jsx(n,{py:3,children:e.jsx(i,{sx:{color:"fg.muted",fontSize:1},children:"No history"})})]})]})}function q(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:t.toString()}function ee({title:t,icon:s,count:r,tokens:l,defaultExpanded:o=!1,children:a}){const[d,c]=z.useState(o);return e.jsxs(n,{mb:2,children:[e.jsxs(n,{as:"button",onClick:()=>c(!d),display:"flex",alignItems:"center",gap:2,width:"100%",p:2,bg:"canvas.subtle",border:"1px solid",borderColor:"border.default",borderRadius:2,cursor:"pointer",hover:{bg:"canvas.inset"},children:[d?e.jsx(Ye,{size:16}):e.jsx(Xe,{size:16}),te.createElement(s,{size:16}),e.jsx(i,{sx:{fontWeight:"semibold",flex:1,textAlign:"left"},children:t}),r!==void 0&&e.jsx(A,{variant:"secondary",size:"small",children:r}),l!==void 0&&l>0&&e.jsxs(i,{sx:{fontSize:0,color:"fg.muted"},children:[q(l)," tokens"]})]}),d&&e.jsx(n,{border:"1px solid",borderColor:"border.default",borderTop:"none",borderRadius:"0 0 6px 6px",p:2,children:a})]})}function Et({tool:t}){const[s,r]=z.useState(!1),[l,o]=z.useState(!1);return e.jsxs(n,{p:2,mb:2,bg:"canvas.default",border:"1px solid",borderColor:"border.muted",borderRadius:2,children:[e.jsxs(n,{display:"flex",alignItems:"center",gap:2,mb:1,children:[e.jsx(i,{sx:{fontWeight:"bold",fontFamily:"mono",fontSize:1},children:t.name}),e.jsx(A,{size:"small",variant:"secondary",children:t.sourceType}),t.isAsync&&e.jsx(A,{size:"small",variant:"accent",children:"async"}),t.requiresApproval&&e.jsx(A,{size:"small",variant:"attention",children:"requires approval"}),e.jsxs(i,{sx:{fontSize:0,color:"fg.muted",ml:"auto"},children:[q(t.totalTokens)," tokens"]})]}),t.description&&e.jsx(i,{sx:{fontSize:1,color:"fg.muted",display:"block",mb:2},children:t.description}),e.jsxs(n,{display:"flex",gap:2,children:[e.jsxs(L,{size:"small",variant:"invisible",onClick:()=>r(!s),children:[s?"Hide":"Show"," Schema"]}),t.sourceCode&&e.jsxs(L,{size:"small",variant:"invisible",onClick:()=>o(!l),children:[l?"Hide":"Show"," Source"]})]}),s&&e.jsx(n,{as:"pre",mt:2,p:2,bg:"canvas.inset",borderRadius:2,fontSize:0,overflow:"auto",maxHeight:200,children:JSON.stringify(t.parametersSchema,null,2)}),l&&t.sourceCode&&e.jsx(n,{as:"pre",mt:2,p:2,bg:"canvas.inset",borderRadius:2,fontSize:0,overflow:"auto",maxHeight:300,children:t.sourceCode})]})}function Ut({agentId:t,apiBase:s,liveData:r}){const l=r!==void 0,o=r;if(!l)return e.jsx(n,{p:3,display:"flex",alignItems:"center",justifyContent:"center",children:e.jsx(i,{sx:{color:"fg.muted"},children:"Waiting for context data from WebSocket stream..."})});if(!o)return e.jsx(n,{p:3,bg:"attention.subtle",borderRadius:2,border:"1px solid",borderColor:"attention.muted",children:e.jsx(i,{sx:{color:"attention.fg"},children:"No context data available."})});if(o.error)return e.jsx(n,{p:3,bg:"attention.subtle",borderRadius:2,border:"1px solid",borderColor:"attention.muted",children:e.jsx(i,{sx:{color:"attention.fg"},children:o.error})});const{tokenSummary:a,modelConfiguration:d}=o;return e.jsxs(n,{children:[e.jsxs(n,{mb:3,children:[e.jsxs(i,{sx:{fontSize:1,fontWeight:"semibold"},children:["Total usage: ",q(a.total)," /"," ",q(a.contextWindow)," (",Math.round(a.usagePercent),"%)"]}),e.jsx($e,{progress:Math.min(a.usagePercent,100),sx:{mt:2,height:8},bg:a.usagePercent>90?"danger.emphasis":a.usagePercent>70?"attention.emphasis":"success.emphasis"}),e.jsxs(n,{display:"flex",gap:3,mt:2,flexWrap:"wrap",fontSize:0,color:"fg.muted",children:[e.jsxs(i,{children:["System: ",q(a.systemPrompts)]}),e.jsxs(i,{children:["Tools: ",q(a.tools)]}),a.memory>0&&e.jsxs(i,{children:["Memory: ",q(a.memory)]}),e.jsxs(i,{children:["History: ",q(a.history)]}),e.jsxs(i,{children:["Current: ",q(a.current)]})]})]}),e.jsx(ee,{title:"Model Configuration",icon:Ke,defaultExpanded:!1,children:e.jsxs(n,{display:"grid",gridTemplateColumns:"1fr 2fr",gap:2,children:[e.jsx(i,{sx:{fontWeight:"semibold",fontSize:1},children:"Model:"}),e.jsx(i,{sx:{fontSize:1,fontFamily:"mono"},children:d.modelName||"Not specified"}),e.jsx(i,{sx:{fontWeight:"semibold",fontSize:1},children:"Context Window:"}),e.jsxs(i,{sx:{fontSize:1},children:[q(d.contextWindow)," tokens"]}),Object.keys(d.settings).length>0&&e.jsxs(e.Fragment,{children:[e.jsx(i,{sx:{fontWeight:"semibold",fontSize:1},children:"Settings:"}),e.jsx(n,{as:"pre",fontSize:0,p:2,bg:"canvas.inset",borderRadius:2,overflow:"auto",children:JSON.stringify(d.settings,null,2)})]})]})}),e.jsx(ee,{title:"System Prompts",icon:Je,count:o.systemPrompts.length,tokens:o.systemPromptTokens,children:o.systemPrompts.length===0?e.jsx(i,{sx:{color:"fg.muted",fontSize:1},children:"No system prompts configured"}):o.systemPrompts.map((c,h)=>e.jsxs(n,{p:2,mb:2,bg:"canvas.inset",borderRadius:2,border:"1px solid",borderColor:"border.muted",children:[e.jsxs(n,{display:"flex",justifyContent:"space-between",mb:1,children:[e.jsxs(i,{sx:{fontWeight:"semibold",fontSize:0},children:["Prompt ",h+1]}),e.jsxs(i,{sx:{fontSize:0,color:"fg.muted"},children:[q(c.tokens)," tokens"]})]}),e.jsx(i,{as:"pre",sx:{fontSize:0,whiteSpace:"pre-wrap",wordBreak:"break-word",maxHeight:200,overflow:"auto"},children:c.content})]},h))}),e.jsx(ee,{title:"Tool Definitions",icon:St,count:o.tools.length,tokens:o.toolTokens,children:o.tools.length===0?e.jsx(i,{sx:{color:"fg.muted",fontSize:1},children:"No tools configured"}):o.tools.map((c,h)=>e.jsx(Et,{tool:c},h))}),o.memoryBlocks.length>0&&e.jsx(ee,{title:"Memory Blocks",icon:De,count:o.memoryBlocks.length,tokens:o.memoryTokens,children:o.memoryBlocks.map((c,h)=>e.jsx(n,{as:"pre",p:2,mb:2,bg:"canvas.inset",borderRadius:2,fontSize:0,overflow:"auto",children:JSON.stringify(c,null,2)},h))}),Object.keys(o.toolEnvironment).length>0&&e.jsx(ee,{title:"Tool Environment",icon:H,count:Object.keys(o.toolEnvironment).length,children:e.jsx(n,{display:"grid",gridTemplateColumns:"1fr 2fr",gap:2,children:Object.entries(o.toolEnvironment).map(([c,h])=>e.jsxs(te.Fragment,{children:[e.jsx(i,{sx:{fontFamily:"mono",fontSize:1,fontWeight:"semibold"},children:c}),e.jsx(i,{sx:{fontFamily:"mono",fontSize:1,color:"fg.muted"},children:h})]},c))})}),o.toolRules.length>0&&e.jsx(ee,{title:"Tool Rules",icon:ce,count:o.toolRules.length,children:o.toolRules.map((c,h)=>e.jsx(n,{as:"pre",p:2,mb:2,bg:"canvas.inset",borderRadius:2,fontSize:0,overflow:"auto",children:JSON.stringify(c,null,2)},h))})]})}const ye={provider:"github",displayName:"GitHub",iconUrl:"https://github.githubassets.com/favicons/favicon.svg",authorizationUrl:"https://github.com/login/oauth/authorize",tokenUrl:"https://github.com/login/oauth/access_token",userInfoUrl:"https://api.github.com/user",revocationUrl:"https://api.github.com/applications/{client_id}/token",defaultScopes:["read:user","user:email"]},je={provider:"google",displayName:"Google",iconUrl:"https://www.google.com/favicon.ico",authorizationUrl:"https://accounts.google.com/o/oauth2/v2/auth",tokenUrl:"https://oauth2.googleapis.com/token",userInfoUrl:"https://www.googleapis.com/oauth2/v2/userinfo",revocationUrl:"https://oauth2.googleapis.com/revoke",defaultScopes:["openid","email","profile"],additionalParams:{access_type:"offline",prompt:"consent"}},Se={provider:"kaggle",displayName:"Kaggle",iconUrl:"https://www.kaggle.com/static/images/favicon.ico",authorizationUrl:"https://www.kaggle.com/oauth/authorize",tokenUrl:"https://www.kaggle.com/oauth/token",userInfoUrl:"https://www.kaggle.com/api/v1/me",defaultScopes:["datasets:read","notebooks:read"]};function _t(t=64){const s=Math.max(43,Math.min(128,t)),r=new Uint8Array(s);return crypto.getRandomValues(r),we(r)}async function Rt(t){const r=new TextEncoder().encode(t),l=await crypto.subtle.digest("SHA-256",r);return we(new Uint8Array(l))}function Dt(){const t=new Uint8Array(32);return crypto.getRandomValues(t),we(t)}function we(t){let s="";const r=new Uint8Array(t);for(let l=0;l<r.length;l++)s+=String.fromCharCode(r[l]);return s=btoa(s),s.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}async function Pt(){const t=_t(),s=await Rt(t);return{codeVerifier:t,codeChallenge:s}}const Ot="datalayer-agent-identities",Ae="/api/v1/identity/oauth/token",Mt="/api/v1/identity/oauth/userinfo",Wt="/api/v1/identity/oauth/revoke",$t={identities:new Map,pendingAuthorization:null,providerConfigs:new Map,isLoading:!1,error:null};function Nt(t,s,r,l){const o=new URLSearchParams({client_id:t.clientId,redirect_uri:t.redirectUri,response_type:"code",scope:s.join(" "),state:r,code_challenge:l,code_challenge_method:"S256",...t.additionalParams});return`${t.authorizationUrl}?${o.toString()}`}const T=Qe()(Ze(et(tt((t,s)=>({...$t,configureProvider:r=>{t(l=>{const o=new Map(l.providerConfigs);return o.set(r.provider,r),{providerConfigs:o}})},startAuthorization:async(r,l,o)=>{const d=s().providerConfigs.get(r);if(!d)throw new Error(`Provider ${r} is not configured`);const{codeVerifier:c,codeChallenge:h}=await Pt(),f=Dt(),S=l||d.defaultScopes,u=Nt(d,S,f,h),b={requestId:`auth-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,provider:r,authUrl:u,state:f,codeVerifier:c,scopes:S,requestedAt:Date.now(),onComplete:o?.onComplete,onError:o?.onError};return t({pendingAuthorization:b,error:null}),u},completeAuthorization:async r=>{const l=s(),o=l.pendingAuthorization;if(!o)throw new Error("No pending authorization request");if(r.state!==o.state){const a=new Error("State mismatch - possible CSRF attack");throw o.onError?.(a),t({pendingAuthorization:null,error:a}),a}if(r.error){const a=new Error(r.errorDescription||r.error);throw o.onError?.(a),t({pendingAuthorization:null,error:a}),a}t({isLoading:!0});try{const a=l.providerConfigs.get(o.provider);if(!a)throw new Error(`Provider ${o.provider} is not configured`);const d=a.redirectUri.split("/").slice(0,3).join("/"),c=await fetch(`${d}${Ae}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:o.provider,code:r.code,code_verifier:o.codeVerifier,redirect_uri:a.redirectUri})});if(!c.ok){const b=await c.json().catch(()=>({}));throw new Error(b.detail||`Token exchange failed: ${c.status}`)}const h=await c.json(),f={accessToken:h.access_token,tokenType:h.token_type||"Bearer",expiresAt:h.expires_in?Date.now()+h.expires_in*1e3:void 0,refreshToken:h.refresh_token,scopes:o.scopes};let S;if(a.userInfoUrl)try{const b=await fetch(`${d}${Mt}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:o.provider,access_token:f.accessToken})});if(b.ok){const m=await b.json();S={id:m.id?.toString()||m.sub,username:m.login||m.username,name:m.name,email:m.email,avatarUrl:m.avatar_url||m.picture,profileUrl:m.html_url||m.profile,raw:m}}}catch(b){console.warn("Failed to fetch user info:",b)}const u={provider:o.provider,displayName:a.displayName,iconUrl:a.iconUrl,scopes:o.scopes,isConnected:!0,connectedAt:Date.now(),userInfo:S,token:f};return t(b=>{const m=new Map(b.identities);return m.set(o.provider,u),{identities:m,pendingAuthorization:null,isLoading:!1,error:null}}),o.onComplete?.(u),u}catch(a){const d=a instanceof Error?a:new Error(String(a));throw o.onError?.(d),t({isLoading:!1,error:d,pendingAuthorization:null}),d}},cancelAuthorization:()=>{const r=s().pendingAuthorization;r?.onError&&r.onError(new Error("Authorization cancelled")),t({pendingAuthorization:null})},connectWithToken:async(r,l,o)=>{t({isLoading:!0,error:null});try{const a={accessToken:l,tokenType:"Bearer",scopes:[]},d={kaggle:{displayName:"Kaggle",iconUrl:"https://www.kaggle.com/static/images/favicon.ico"}}[r]||{displayName:r,iconUrl:void 0},c={provider:r,authType:"token",displayName:o?.displayName||d.displayName,iconUrl:o?.iconUrl||d.iconUrl,scopes:[],isConnected:!0,connectedAt:Date.now(),userInfo:o?.userInfo,token:a};return t(h=>{const f=new Map(h.identities);return f.set(r,c),{identities:f,isLoading:!1,error:null}}),c}catch(a){const d=a instanceof Error?a:new Error(String(a));throw t({isLoading:!1,error:d}),d}},disconnect:async r=>{const l=s(),o=l.identities.get(r),a=l.providerConfigs.get(r);if(!o||!o.token){t(d=>{const c=new Map(d.identities);return c.delete(r),{identities:c}});return}if(o.authType==="token"){t(d=>{const c=new Map(d.identities);return c.delete(r),{identities:c}});return}if(a?.revocationUrl)try{const d=a.redirectUri.split("/").slice(0,3).join("/");await fetch(`${d}${Wt}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:r,access_token:o.token.accessToken})})}catch(d){console.warn("Failed to revoke token:",d)}t(d=>{const c=new Map(d.identities);return c.delete(r),{identities:c}})},refreshToken:async r=>{const l=s(),o=l.identities.get(r),a=l.providerConfigs.get(r);if(!o||!o.token?.refreshToken)throw new Error(`No refresh token available for ${r}`);if(!a)throw new Error(`Provider ${r} is not configured`);const d=a.redirectUri.split("/").slice(0,3).join("/"),c=await fetch(`${d}${Ae}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:r,grant_type:"refresh_token",refresh_token:o.token.refreshToken})});if(!c.ok)throw new Error(`Token refresh failed: ${c.status}`);const h=await c.json(),f={accessToken:h.access_token,tokenType:h.token_type||"Bearer",expiresAt:h.expires_in?Date.now()+h.expires_in*1e3:void 0,refreshToken:h.refresh_token||o.token.refreshToken,scopes:o.scopes};return t(S=>{const u=new Map(S.identities);return u.set(r,{...o,token:f}),{identities:u}}),f},getIdentity:r=>s().identities.get(r),isConnected:r=>s().identities.get(r)?.isConnected??!1,getToken:async r=>{const o=s().identities.get(r);if(!o||!o.token)return null;const a=o.token.expiresAt;if(a&&a-Date.now()<300*1e3){if(o.token.refreshToken)try{return await s().refreshToken(r)}catch(d){return console.warn("Token refresh failed:",d),null}return null}return o.token},clearAll:()=>{t({identities:new Map,pendingAuthorization:null,error:null})},setError:r=>{t({error:r})}}),{name:Ot,storage:{getItem:t=>{const s=localStorage.getItem(t);if(!s)return null;const r=JSON.parse(s),l=new URLSearchParams(window.location.search),o=l.has("code")&&l.has("state");return{state:{...r.state,identities:new Map(r.state.identities||[]),providerConfigs:new Map(r.state.providerConfigs||[]),pendingAuthorization:o&&r.state.pendingAuthorization||null,isLoading:!1,error:null}}},setItem:(t,s)=>{const r={state:{...s.state,identities:Array.from(s.state.identities.entries()),providerConfigs:Array.from(s.state.providerConfigs.entries()),pendingAuthorization:s.state.pendingAuthorization?{...s.state.pendingAuthorization,onComplete:void 0,onError:void 0}:null,isLoading:!1,error:null}};localStorage.setItem(t,JSON.stringify(r))},removeItem:t=>localStorage.removeItem(t)},partialize:t=>({identities:t.identities,providerConfigs:t.providerConfigs,pendingAuthorization:t.pendingAuthorization})})),{name:"IdentityStore"}));function Lt(){return T(Ne(t=>Array.from(t.identities.values()).filter(s=>s.isConnected)))}function Ft(){return T(Ne(t=>Array.from(t.identities.entries()).filter(([s,r])=>r.isConnected).map(([s])=>s)))}function Ht(){return T(t=>t.pendingAuthorization)}function Vt(){return T(t=>t.isLoading)}function qt(){return T(t=>t.error)}function pe(t){const s=T.getState();t.github&&s.configureProvider({...ye,clientId:t.github.clientId,redirectUri:t.github.redirectUri}),t.google&&s.configureProvider({...je,clientId:t.google.clientId,redirectUri:t.google.redirectUri}),t.kaggle&&s.configureProvider({...Se,clientId:t.kaggle.clientId,redirectUri:t.kaggle.redirectUri})}function ke(t={}){const{providers:s,baseUrl:r=typeof window<"u"?window.location.origin:"",callbackPath:l=typeof window<"u"?window.location.pathname:"/oauth/callback",autoHandleCallback:o=!0}=t,a=Lt(),d=Ft(),c=Ht(),h=Vt(),f=qt(),S=T(x=>x.startAuthorization),u=T(x=>x.completeAuthorization),b=T(x=>x.cancelAuthorization),m=T(x=>x.disconnect),R=T(x=>x.getIdentity),P=T(x=>x.isConnected),y=T(x=>x.getToken),p=T(x=>x.configureProvider);z.useEffect(()=>{if(!s)return;const x=`${r}${l}`;s.github&&pe({github:{clientId:s.github.clientId,redirectUri:s.github.redirectUri||x}}),s.google&&pe({google:{clientId:s.google.clientId,redirectUri:s.google.redirectUri||x}}),s.kaggle&&pe({kaggle:{clientId:s.kaggle.clientId,redirectUri:s.kaggle.redirectUri||x}}),s.custom&&s.custom.forEach(U=>{p(U)})},[s,r,l,p]),z.useEffect(()=>{if(!o||typeof window>"u")return;const x=new URLSearchParams(window.location.search),U=x.get("code"),$=x.get("state"),G=x.get("error"),V=x.get("error_description");(U&&$||G)&&u({code:U||"",state:$||"",error:G||void 0,errorDescription:V||void 0}).then(()=>{const K=window.location.pathname;window.history.replaceState({},"",K)}).catch(K=>{console.error("OAuth callback error:",K);const Q=window.location.pathname;window.history.replaceState({},"",Q)})},[o,u]);const j=z.useCallback(async(x,U)=>{const $=await S(x,U);window.location.href=$},[S]),E=z.useCallback(async(x,U)=>{const $=await S(x,U,{onComplete:()=>{},onError:()=>{}});return new Promise((G,V)=>{const K=T.getState();K.pendingAuthorization&&(K.pendingAuthorization.onComplete=G,K.pendingAuthorization.onError=V);const Q=600,k=700,ue=window.screenX+(window.outerWidth-Q)/2,v=window.screenY+(window.outerHeight-k)/2,_=window.open($,"oauth_popup",`width=${Q},height=${k},left=${ue},top=${v},toolbar=no,menubar=no`);if(!_){V(new Error("Failed to open popup window"));return}const J=Y=>{if(Y.origin===window.location.origin)if(Y.data?.type==="oauth-callback-success"){window.removeEventListener("message",J),clearInterval(oe),_.close();const ie=Y.data.provider,re=Y.data.identity;if(console.debug("[Identity] Received oauth-callback-success for provider:",ie),console.debug("[Identity] Identity from popup:",re),re){const ve=T.getState().identities,Z=new Map(ve);Z.set(ie,re),T.setState({identities:Z,pendingAuthorization:null}),console.debug("[Identity] Store updated with identity from popup, identities count:",Z.size),G(re);return}setTimeout(()=>{const Z=localStorage.getItem("agent-runtimes-identity");if(console.debug("[Identity] Fallback: reading from localStorage"),Z)try{const Le=JSON.parse(Z).state?.identities||[],fe=new Map(Le).get(ie);if(fe){const Fe=T.getState().identities,Ce=new Map(Fe);Ce.set(ie,fe),T.setState({identities:Ce,pendingAuthorization:null}),G(fe);return}}catch(ze){console.error("[Identity] Failed to parse identity from localStorage:",ze)}T.setState({pendingAuthorization:null}),V(new Error("Identity not found after OAuth success"))},100)}else Y.data?.type==="oauth-callback-error"?(window.removeEventListener("message",J),clearInterval(oe),_.close(),T.setState({pendingAuthorization:null}),V(new Error(Y.data.error||"OAuth authentication failed"))):Y.data?.type==="oauth_callback"&&(window.removeEventListener("message",J),clearInterval(oe),_.close(),u(Y.data.payload).then(G).catch(V))};window.addEventListener("message",J);const oe=setInterval(()=>{_.closed&&(clearInterval(oe),window.removeEventListener("message",J),T.getState().pendingAuthorization&&(b(),V(new Error("Popup closed by user"))))},500)})},[S,u,b]),I=T(x=>x.connectWithToken),O=z.useCallback(async(x,U,$)=>I(x,U,$),[I]),g=z.useCallback(async x=>{await m(x)},[m]),C=z.useCallback(async x=>u(x),[u]),N=z.useCallback(()=>{b()},[b]),B=z.useCallback(x=>P(x),[P]),M=z.useCallback(x=>R(x),[R]),w=z.useCallback(async x=>(await y(x))?.accessToken??null,[y]),X=z.useCallback(x=>{p(x)},[p]),W=c!==null;return z.useMemo(()=>({identities:a,connectedProviders:d,isAuthorizing:W,isLoading:h,error:f,pendingAuthorization:c,connect:j,connectWithPopup:E,connectWithToken:O,disconnect:g,completeAuthorization:C,cancelAuthorization:N,isConnected:B,getIdentity:M,getAccessToken:w,configureProvider:X}),[a,d,W,h,f,c,j,E,O,g,C,N,B,M,w,X])}const Ee={github:{name:"GitHub",icon:Me,color:"#24292f",description:"Access GitHub repositories and APIs"},google:{name:"Google",icon:H,color:"#4285f4",description:"Access Google services and APIs"},kaggle:{name:"Kaggle",icon:H,color:"#20beff",description:"Access Kaggle datasets and notebooks"},linkedin:{name:"LinkedIn",icon:H,color:"#0077b5",description:"Access LinkedIn profile and connections"},slack:{name:"Slack",icon:H,color:"#4a154b",description:"Access Slack workspaces and channels"},notion:{name:"Notion",icon:H,color:"#000000",description:"Access Notion pages and databases"},custom:{name:"Custom",icon:de,color:"#6f42c1",description:"Custom OAuth provider"}},Bt={github:["read:user","user:email"],google:["openid","profile","email"],kaggle:["read"],linkedin:["r_liteprofile","r_emailaddress"],slack:["users:read","channels:read"],notion:["read_content"],custom:[]},Gt=({provider:t,clientId:s,providerConfig:r,scopes:l,disabled:o=!1,size:a="medium",variant:d="full",onConnect:c,onDisconnect:h,onError:f})=>{const{identities:S,isAuthorizing:u,error:b,connectWithPopup:m,disconnect:R,configureProvider:P}=ke(),y=Ee[t]||Ee.custom,p=S.find(g=>g.provider===t),j=!!p,E=u;te.useEffect(()=>{if(s){const g=t==="github"?ye:t==="google"?je:t==="kaggle"?Se:void 0;if(g){const C=r?.redirectUri||(typeof window<"u"?`${window.location.origin}${window.location.pathname}`:"");P({...g,...r,provider:t,clientId:s,redirectUri:C})}}},[s,t,r,P]);const I=z.useCallback(async()=>{try{if(j)await R(t),h?.(t);else{const g=await m(t,l||Bt[t]);c?.(g)}}catch(g){const C=g instanceof Error?g.message:String(g);C!=="Popup closed by user"&&f?.(g instanceof Error?g:new Error(C))}},[j,t,l,m,R,c,h,f]);te.useEffect(()=>{b&&f?.(b instanceof Error?b:new Error(String(b)))},[b,f]);const O={onClick:I,disabled:o||E||!s&&!j,size:a==="large"?"large":a==="small"?"small":"medium"};return d==="icon"?e.jsx(L,{...O,variant:j?"primary":"default","aria-label":j?`Disconnect ${y.name}`:`Connect ${y.name}`,sx:{width:a==="small"?28:a==="large"?44:36,height:a==="small"?28:a==="large"?44:36,p:0},children:E?e.jsx(n,{as:"span",className:"anim-rotate",display:"inline-block",children:"⏳"}):e.jsx(y.icon,{size:a==="small"?14:18})}):d==="compact"?e.jsx(L,{...O,variant:j?"primary":"default",leadingVisual:y.icon,trailingVisual:j?Pe:void 0,children:E?"Connecting...":y.name}):e.jsxs(n,{display:"flex",flexDirection:"column",gap:2,p:2,border:"1px solid",borderColor:j?"success.muted":"border.default",borderRadius:2,backgroundColor:j?"success.subtle":"canvas.subtle",children:[e.jsxs(n,{display:"flex",alignItems:"center",gap:2,children:[e.jsx(n,{width:40,height:40,borderRadius:2,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:y.color,color:"white",children:e.jsx(y.icon,{size:20})}),e.jsxs(n,{flex:1,children:[e.jsx(i,{sx:{fontWeight:"bold",display:"block"},children:y.name}),e.jsx(i,{sx:{fontSize:0,color:"fg.muted",display:"block"},children:j&&p?.userInfo?`Connected as ${p.userInfo.name||p.userInfo.email}`:y.description})]}),!j&&e.jsx(L,{...O,variant:"primary",leadingVisual:de,children:E?"Working...":"Connect"})]}),j&&p&&e.jsxs(n,{display:"flex",flexDirection:"column",gap:2,children:[e.jsxs(n,{display:"flex",alignItems:"center",gap:2,pl:1,children:[p.userInfo?.avatarUrl&&e.jsx("a",{href:p.userInfo.profileUrl||`https://github.com/${p.userInfo.username}`,target:"_blank",rel:"noopener noreferrer",style:{display:"block",lineHeight:0},children:e.jsx("img",{src:p.userInfo.avatarUrl,alt:p.userInfo.name||"User avatar",style:{width:32,height:32,borderRadius:"50%",cursor:"pointer"}})}),e.jsxs(n,{flex:1,children:[p.userInfo?.username&&e.jsx("a",{href:p.userInfo.profileUrl||`https://github.com/${p.userInfo.username}`,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:e.jsxs(i,{sx:{fontSize:1,color:"fg.muted",display:"block",":hover":{textDecoration:"underline"}},children:["@",p.userInfo.username]})}),e.jsx(i,{sx:{fontSize:0,color:"fg.muted",display:"block"},children:p.token?.expiresAt?`Expires ${new Date(p.token.expiresAt).toLocaleDateString()}`:"Token does not expire"})]})]}),p.scopes&&p.scopes.length>0&&e.jsx(n,{display:"flex",flexWrap:"wrap",gap:1,pl:1,children:p.scopes.map(g=>e.jsx(i,{sx:{fontSize:0,px:2,py:1,bg:"neutral.muted",borderRadius:2,color:"fg.muted"},children:g},g))}),e.jsxs(L,{...O,variant:"danger",leadingVisual:We,children:["Disconnect from ",y.name]})]})]})},Ue={github:{name:"GitHub",icon:Me,color:"#24292f",description:"Access GitHub repositories and APIs"},google:{name:"Google",icon:H,color:"#4285f4",description:"Access Google services and APIs"},kaggle:{name:"Kaggle",icon:H,color:"#20beff",description:"Access Kaggle datasets and notebooks"},linkedin:{name:"LinkedIn",icon:H,color:"#0077b5",description:"Access LinkedIn profile"},slack:{name:"Slack",icon:H,color:"#4a154b",description:"Access Slack workspaces"},notion:{name:"Notion",icon:H,color:"#000000",description:"Access Notion pages"},custom:{name:"Custom",icon:de,color:"#6f42c1",description:"Custom OAuth provider"}},Kt={github:["read:user","user:email","repo"],google:["openid","profile","email"],kaggle:["read"],linkedin:["r_liteprofile","r_emailaddress"],slack:["users:read","channels:read"],notion:["read_content"],custom:[]};function Jt(t){if(!t)return{isExpired:!1,isExpiringSoon:!1};const s=Date.now(),r=new Date(t),l=t-s,o=s-t,a=300*1e3;return{isExpired:l<0,isExpiringSoon:l>0&&l<a,expiresAt:r,timeUntilExpiry:l>0?l:void 0,timeSinceExpiry:l<0?o:void 0}}function he(t){const s=Math.floor(t/1e3),r=Math.floor(s/60),l=Math.floor(r/60),o=Math.floor(l/24);return o>0?o===1?"1 day":`${o} days`:l>0?l===1?"1 hour":`${l} hours`:r>0?r===1?"1 minute":`${r} minutes`:s===1?"1 second":`${s} seconds`}function Yt(t){return t.isExpired&&t.timeSinceExpiry?`Expired ${he(t.timeSinceExpiry)} ago`:t.timeUntilExpiry?t.isExpiringSoon?`Expires in ${he(t.timeUntilExpiry)}`:`Expires in ${he(t.timeUntilExpiry)}`:"Token does not expire"}function Xt({identity:t,providerConfig:s,showExpirationDetails:r=!0,allowReconnect:l=!0,onConnect:o,onDisconnect:a,onError:d}){const{connect:c,disconnect:h,configureProvider:f,isAuthorizing:S}=ke(),u=t.provider,b=Ue[u]||Ue.custom,m=z.useMemo(()=>Jt(t.token?.expiresAt),[t.token?.expiresAt]);te.useEffect(()=>{if(s?.clientId){const y=u==="github"?ye:u==="google"?je:u==="kaggle"?Se:void 0;if(y){const p=s.config?.redirectUri||(typeof window<"u"?`${window.location.origin}${window.location.pathname}`:"");f({...y,...s.config,provider:u,clientId:s.clientId,redirectUri:p})}}},[s,u,f]);const R=z.useCallback(async()=>{try{const y=s?.scopes||Kt[u];await c(u,y)}catch(y){d?.(y instanceof Error?y:new Error(String(y)))}},[u,s?.scopes,c,d]),P=z.useCallback(async()=>{try{await h(u),a?.(u)}catch(y){d?.(y instanceof Error?y:new Error(String(y)))}},[u,h,a,d]);return e.jsxs(n,{display:"flex",flexDirection:"column",gap:2,p:3,border:"1px solid",borderColor:m.isExpired?"danger.muted":m.isExpiringSoon?"attention.muted":"success.muted",borderRadius:2,backgroundColor:m.isExpired?"danger.subtle":m.isExpiringSoon?"attention.subtle":"success.subtle",children:[e.jsxs(n,{display:"flex",alignItems:"center",gap:2,children:[e.jsx(n,{width:32,height:32,borderRadius:2,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:b.color,color:"white",children:e.jsx(b.icon,{size:16})}),e.jsxs(n,{flex:1,display:"flex",alignItems:"center",gap:2,children:[e.jsx(i,{sx:{fontWeight:"semibold",fontSize:1},children:b.name}),e.jsx(A,{size:"small",variant:"secondary",children:t.authType==="token"?"API Key":"OAuth"})]}),m.isExpired?e.jsx(A,{variant:"danger",size:"small",children:e.jsxs(n,{display:"inline-flex",alignItems:"center",gap:1,children:[e.jsx(st,{size:12})," Expired"]})}):m.isExpiringSoon?e.jsx(A,{variant:"attention",size:"small",children:e.jsxs(n,{display:"inline-flex",alignItems:"center",gap:1,children:[e.jsx(me,{size:12})," Expiring Soon"]})}):e.jsx(A,{variant:"success",size:"small",children:e.jsxs(n,{display:"inline-flex",alignItems:"center",gap:1,children:[e.jsx(Pe,{size:12})," Connected"]})})]}),e.jsxs(n,{display:"flex",alignItems:"center",gap:2,children:[t.userInfo?.avatarUrl&&e.jsx("a",{href:t.userInfo.profileUrl||(u==="github"?`https://github.com/${t.userInfo.username}`:void 0),target:"_blank",rel:"noopener noreferrer",style:{display:"block",lineHeight:0},children:e.jsx(kt,{src:t.userInfo.avatarUrl,size:32,alt:t.userInfo.name||t.userInfo.username||b.name,sx:{cursor:"pointer"}})}),e.jsxs(n,{flex:1,minWidth:0,children:[t.userInfo?.name&&e.jsx(i,{sx:{fontWeight:"semibold",fontSize:1,display:"block"},children:t.userInfo.name}),(t.userInfo?.username||t.userInfo?.email)&&e.jsx("a",{href:t.userInfo.profileUrl||(u==="github"?`https://github.com/${t.userInfo.username}`:void 0),target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:e.jsx(i,{sx:{fontSize:0,color:"fg.muted",display:"block",":hover":{textDecoration:"underline"}},children:t.userInfo.username?`@${t.userInfo.username}`:t.userInfo.email})})]})]}),r&&e.jsxs(n,{display:"flex",alignItems:"center",gap:1,children:[e.jsx(me,{size:12}),e.jsx(i,{sx:{fontSize:0,color:m.isExpired?"danger.fg":m.isExpiringSoon?"attention.fg":"fg.muted"},children:Yt(m)})]}),t.scopes&&t.scopes.length>0&&e.jsx(n,{display:"flex",flexWrap:"wrap",gap:1,children:t.scopes.map(y=>e.jsx(A,{size:"small",variant:"secondary",children:y},y))}),e.jsxs(n,{display:"flex",gap:2,mt:1,children:[m.isExpired&&l&&s?.clientId&&e.jsx(ot,{text:"Reconnect to refresh token",children:e.jsx(L,{variant:"primary",size:"small",leadingVisual:it,onClick:R,disabled:S,children:S?"Connecting...":"Reconnect"})}),e.jsxs(L,{variant:m.isExpired?"invisible":"danger",size:"small",leadingVisual:We,onClick:P,disabled:S,children:["Disconnect from ",b.name]})]})]})}function Qt({providers:t,title:s="Connected Accounts",showHeader:r=!0,showDescription:l=!0,description:o="Connected identities for this agent. Agents can use these to access external services on your behalf.",showExpirationDetails:a=!0,allowReconnect:d=!0,onConnect:c,onDisconnect:h,onError:f}){const{identities:S,error:u}=ke(),b=z.useMemo(()=>{if(t){const p=Object.keys(t);return S.filter(j=>p.includes(j.provider)||j.authType==="token"&&j.isConnected)}return S},[S,t]),m=z.useMemo(()=>new Set(S.map(p=>p.provider)),[S]),R=z.useMemo(()=>{if(!t)return{};const p=Object.keys(t),j={};for(const E of p)m.has(E)||(j[E]=t[E]);return j},[t,m]),P=Object.keys(R).length>0,y=z.useCallback(p=>j=>{f?.(p,j)},[f]);return b.length===0&&!t?null:e.jsxs(n,{children:[r&&e.jsxs(n,{display:"flex",alignItems:"center",gap:2,mb:2,children:[e.jsx(H,{size:16}),e.jsx(i,{sx:{fontSize:1,fontWeight:"semibold",color:"fg.muted"},children:s})]}),e.jsxs(n,{p:3,bg:"canvas.subtle",borderRadius:2,border:"1px solid",borderColor:"border.default",children:[l&&e.jsx(i,{sx:{fontSize:0,color:"fg.muted",display:"block",mb:b.length>0?3:0},children:o}),u&&e.jsx(nt,{variant:"danger",sx:{mb:3},children:u instanceof Error?u.message:String(u)}),b.length>0?e.jsx(n,{display:"flex",flexDirection:"column",gap:2,children:b.map(p=>e.jsx(Xt,{identity:p,providerConfig:t?.[p.provider],showExpirationDetails:a,allowReconnect:d,onConnect:c,onDisconnect:h,onError:y(p.provider)},p.provider))}):P?null:e.jsxs(n,{display:"flex",alignItems:"center",gap:2,color:"fg.muted",children:[e.jsx(de,{size:16}),e.jsx(i,{sx:{fontSize:1},children:"No connected accounts"})]}),P&&e.jsxs(n,{mt:b.length>0?3:0,children:[b.length>0&&e.jsx(i,{sx:{fontSize:0,color:"fg.muted",display:"block",mb:2},children:"Connect additional accounts:"}),e.jsx(n,{display:"flex",flexDirection:"column",gap:2,children:Object.keys(R).map(p=>{const j=R[p];return e.jsx(Gt,{provider:p,clientId:j.clientId,scopes:j.scopes,providerConfig:j.config,size:"medium",variant:"full",onConnect:c,onDisconnect:h,onError:y(p)},p)})})]})]})]})}const ge=t=>typeof t=="object"&&t!==null&&!Array.isArray(t),xe=t=>{if(t==null)return"null";if(typeof t=="number"||typeof t=="boolean")return String(t);const s=String(t);return s===""?"''":/^[a-zA-Z0-9._/-]+$/.test(s)?s:JSON.stringify(s)},be=(t,s=0)=>{const r=" ".repeat(s);if(Array.isArray(t))return t.length===0?"[]":t.map(l=>ge(l)||Array.isArray(l)?`${r}-
|
|
3
3
|
${be(l,s+1)}`:`${r}- ${xe(l)}`).join(`
|
|
4
4
|
`);if(ge(t)){const l=Object.entries(t).filter(([,o])=>o!==void 0);return l.length===0?"{}":l.map(([o,a])=>ge(a)||Array.isArray(a)?`${r}${o}:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,Q as l,j as s,D as o,h as m}from"../datalayer-app-main.js";import{AgentDetails as p}from"./AgentDetails-
|
|
1
|
+
import{r as a,Q as l,j as s,D as o,h as m}from"../datalayer-app-main.js";import{AgentDetails as p}from"./AgentDetails-CFUOZ-Bq.js";import"./ArrowLeftIcon-sX3iNMG1.js";import"./UnlinkIcon-fXwOyjzQ.js";import"./esm-C8NQHqRw.js";import"./index-BhCoJe__.js";import"./index-CKWSKbHe.js";import"./LinkIcon-BtBG9K47.js";import"./Avatar-Cv5OpUWu.js";function D({about:e,name:r,onClose:t}){const n=a.useMemo(()=>new l,[]),i=!!(e.agentId&&e.apiBase);return s.jsx(o,{title:`${e.name??r} · Agent Details`,onClose:t,width:"xlarge",height:"large",children:s.jsx("div",{"data-assistant-agent-details":"",children:s.jsx(m,{client:n,children:s.jsx(p,{name:e.name??r,protocol:e.protocol??(i?"agent-runtimes":"browser"),url:e.url??"",messageCount:0,agentId:e.agentId,apiBase:e.apiBase,onBack:t,showBackHeader:!1,showUsage:i,padded:!1,runtime:i,summary:{spec:e.spec,model:e.model,where:e.where,description:e.description,skills:e.skills}})})})})}export{D as AgentDetailsDialog,D as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as t,B as s,I as te,T as f,r as p,ds as ce,f2 as ue,bt as P,dr as U,L,f3 as fe,f4 as J,v as V,P as xe,f5 as he,V as pe,f6 as me,e6 as G,bk as D,f7 as ge,f8 as be,f9 as X,fa as je,fb as Se}from"../datalayer-app-main.js";import{B as M,U as B}from"./index-DpN8KK6c.js";const ye={default:{bg:"canvas.default",borderColor:"border.default"},subtle:{bg:"canvas.subtle",borderColor:"border.default"},inset:{bg:"canvas.inset",borderColor:"border.default"},accent:{bg:"accent.subtle",borderColor:"accent.muted"},success:{bg:"success.subtle",borderColor:"success.muted"},attention:{bg:"attention.subtle",borderColor:"attention.muted"},danger:{bg:"danger.subtle",borderColor:"danger.muted"}},_e={sage:"--bgColor-success-emphasis",steel:"--bgColor-accent-emphasis",mauve:"--bgColor-done-emphasis",clay:"--bgColor-severe-emphasis"},we=e=>{const n=`var(${_e[e]})`;return`linear-gradient(160deg, color-mix(in srgb, ${n} 82%, black), color-mix(in srgb, ${n} 58%, black))`},ve=e=>({backgroundImage:`var(--metal-gradient-${e}, ${we(e)})`,color:"#FFFFFF","--fgColor-default":"#FFFFFF","--fgColor-muted":"rgba(255, 255, 255, 0.85)"}),Ce="card",ne={none:"none",small:"shadow.small",medium:"shadow.medium",large:"shadow.large",extraLarge:"shadow.extraLarge"},ke={cursor:"pointer",textAlign:"left",font:"inherit",transition:"border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease",hover:{borderColor:"accent.emphasis",boxShadow:ne.medium},focusVisible:{outline:"2px solid",outlineColor:"accent.emphasis",outlineOffset:"2px"},reducedMotion:{transition:"none"}},E="cubic-bezier(0.22, 1, 0.36, 1)",re="data-card-icon",K=`[${re}]`,Ie=["&:hover","&:focus-visible","&:has(:focus-visible)"];function Ae(e){const n={boxShadow:"shadow.large",transform:"translateY(-3px)",borderColor:e},r={transition:`box-shadow 260ms ${E}, transform 260ms ${E}, border-color 260ms ${E}`,"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,height:"2px",background:"linear-gradient(90deg, transparent, var(--fgColor-accent), transparent)",opacity:0,pointerEvents:"none",transition:`opacity 260ms ${E}`}},o={transition:`box-shadow 260ms ${E}, border-color 260ms ${E}`,[`& ${K}`]:{transition:"none"}};for(const a of Ie)r[a]=n,r[`${a}::after`]={opacity:1},r[`${a} ${K}`]={transform:"scale(1.06) rotate(-3deg)"},o[a]={transform:"none"},o[`${a} ${K}`]={transform:"none"};return r["@media (prefers-reduced-motion: reduce)"]=o,r}const Te={cursor:"not-allowed",opacity:.6,hover:{}},C=e=>{const{rounded:n,border:r,shadow:o,variant:a="default",surface:i,interactive:d,selected:x,dashed:u,disabled:h,accent:c,hoverEffect:m,sx:j,style:S,children:g,...z}=e,l=m==="lift"&&!h,y=r||d||x||u||l,b=ye[a],I=l?Ae(d?"accent.emphasis":"border.muted"):void 0,w=I?{...I,...j}:j;return t.jsx(s,{display:"flex",flexDirection:"column",...i?void 0:{bg:x?"accent.subtle":b.bg},color:"fg.default",borderRadius:n??Ce,boxShadow:ne[o??(i?"none":"small")],...y?{border:"1px solid",borderColor:x?"accent.emphasis":b.borderColor}:void 0,...u?{borderStyle:"dashed"}:void 0,...c?{borderTop:"3px solid",borderTopColor:c}:void 0,...d?ke:void 0,...h?Te:void 0,...d&&h?{"aria-disabled":!0}:void 0,...l?{position:"relative",overflow:"hidden"}:void 0,...z,style:i?{...ve(i),...S}:S,sx:w,children:g})};C.Header=e=>{const{title:n,description:r,leadingVisual:o,action:a}=e;return t.jsxs(s,{display:"flex",alignItems:"center",p:3,children:[o&&t.jsx(s,{mr:3,children:t.jsx(te,{size:"medium",icon:o,"aria-label":""})}),t.jsxs(s,{flexGrow:1,children:[t.jsx(f,{as:"div",display:"block",children:n}),t.jsx(f,{display:"block",color:"fg.muted",children:r})]}),a&&t.jsx(s,{children:a})]})};C.Image=({url:e,image:n,svg:r,height:o})=>t.jsxs(s,{display:"block",width:"100%",height:`${o}px`,backgroundImage:e?`url(${e})`:void 0,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",objectFit:"cover",children:[n&&t.jsx("img",{src:n,style:{maxHeight:`${o}px`}}),r&&t.jsx("img",{src:`data:image/svg+xml;utf8,${r}`,style:{maxHeight:o}})]});C.Cover=({height:e=110,image:n,gradient:r,color:o="neutral.emphasis",accessory:a,children:i,...d})=>t.jsxs(s,{position:"relative",width:"100%",height:`${e}px`,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",bg:o,backgroundImage:n?`url(${n})`:r?`linear-gradient(135deg, ${r.from} 0%, ${r.to} 100%)`:void 0,backgroundSize:"cover",backgroundPosition:"center",color:"fg.onEmphasis",fontSize:4,fontWeight:"semibold",...d,children:[i,a&&t.jsx(s,{position:"absolute",top:2,right:2,display:"flex",alignItems:"center",gap:1,children:a})]});C.Content=({children:e,...n})=>t.jsx(s,{display:"block",p:3,...n,children:e});C.Footer=({children:e,...n})=>t.jsx(s,{display:"flex",alignItems:"center",gap:2,flexWrap:"wrap",mt:"auto",px:3,py:2,borderTop:"1px solid",borderColor:"border.muted",...n,children:e});C.Icon=({icon:e,color:n="accent.fg",bg:r="accent.subtle",size:o=46,...a})=>t.jsx(s,{[re]:"",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:o,height:o,borderRadius:`${Math.round(o*13/46)}px`,color:n,bg:r,mb:3,boxShadow:"inset 0 0 0 1px currentColor",transition:`transform 320ms ${E}`,...a,children:t.jsx(e,{size:Math.round(o*22/46),fill:"currentColor"})});C.Glass=({children:e,style:n,...r})=>t.jsx(s,{p:3,border:"1px solid",borderRadius:"bubble",...r,style:{background:"var(--metal-glass-bg, rgba(255, 255, 255, 0.16))",borderColor:"var(--metal-glass-border, rgba(255, 255, 255, 0.28))",...n},children:e});C.Actions=({children:e})=>t.jsx(s,{display:"block",p:3,mt:"auto",children:e});function N(e){const n=Number(e);return!isNaN(n)&&n>1e15?n/1e6:!isNaN(n)&&n>1e12?n/1e3:isNaN(n)?new Date(String(e)).getTime():n}function Y(e){return e==null?"—":e<.001?"<1µs":e<1?`${(e*1e3).toFixed(0)}µs`:e<1e3?`${e.toFixed(1)}ms`:e<6e4?`${(e/1e3).toFixed(2)}s`:`${(e/6e4).toFixed(1)}m`}function ze(e){if(e==null||e==="")return"—";try{const n=N(e),r=new Date(n);return isNaN(r.getTime())?String(e):r.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3})}catch{return String(e)}}const Q=["#0969da","#1a7f37","#cf222e","#8250df","#bf8700","#0550ae","#116329","#a40e26","#6639ba","#953800","#0e8a16","#e36209"];function $e(e){let n=0;for(let r=0;r<e.length;r++)n=n*31+e.charCodeAt(r)|0;return Q[Math.abs(n)%Q.length]}function oe(e){const n=new Map,r=e.map(i=>({...i,children:[],depth:0}));for(const i of r)n.set(i.span_id,i);const o=[];for(const i of r)if(i.parent_span_id&&n.has(i.parent_span_id)){const d=n.get(i.parent_span_id);d.children=d.children??[],d.children.push(i)}else o.push(i);function a(i,d){i.depth=d;for(const x of i.children??[])a(x,d+1)}for(const i of o)a(i,0);return o}const Oe="peer.service";function Ee(e,n){return e.service_name===n||e.attributes?.[Oe]===n}function Re(e,n){return n?e.filter(r=>Ee(r,n)):[...e]}const Z=[],Fe=()=>()=>{};function Ne(e){return p.useSyncExternalStore(e?e.subscribe:Fe,()=>e?e.spans():Z,()=>e?e.spans():Z)}const De="140px 1fr 160px 90px",Me="96px minmax(0, 1fr) 96px 64px";function Be(e){const n=e.attributes;if(!n)return null;const r=n["gen_ai.usage.input_tokens"]!=null?Number(n["gen_ai.usage.input_tokens"]):void 0,o=n["gen_ai.usage.output_tokens"]!=null?Number(n["gen_ai.usage.output_tokens"]):void 0;return r==null&&o==null?null:{input:r,output:o}}const Le=({spans:e,loading:n,selectedSpanId:r,onSelectSpan:o,emptyText:a,compact:i=!1,defaultExpanded:d=!1,renderSpanMark:x,describeSpan:u})=>{const[h,c]=p.useState(new Set),m=p.useMemo(()=>({has:l=>d?!h.has(l):h.has(l)}),[h,d]),j=i?Me:De,S=p.useMemo(()=>oe(e),[e]),g=p.useMemo(()=>{const l=[];function y(b,I){const w=b.children??[];if(l.push({span:b,depth:I,hasChildren:w.length>0}),m.has(b.span_id))for(const O of w)y(O,I+1)}for(const b of S)y(b,0);return l},[S,m]),z=p.useCallback(l=>{c(y=>{const b=new Set(y);return b.has(l)?b.delete(l):b.add(l),b})},[]);return n?t.jsx(s,{display:"flex",justifyContent:"center",p:5,children:t.jsx(ce,{size:"medium"})}):e.length===0?t.jsxs(M,{children:[t.jsx(M.Visual,{children:t.jsx(ue,{size:24})}),t.jsx(M.Heading,{children:"No traces found"}),t.jsx(M.Description,{children:a??"Send some telemetry data first."})]}):t.jsxs(s,{width:"100%",flex:1,minHeight:0,overflow:"auto",children:[t.jsx(s,{display:"grid",gridTemplateColumns:j,gap:2,px:3,position:"sticky",top:0,bg:"canvas.subtle",zIndex:1,borderBottom:"2px solid",borderColor:"border.default",children:["Time","Message","Scope","Duration"].map(l=>t.jsx(f,{sx:{fontWeight:"bold",fontSize:0,color:"fg.muted",textTransform:"uppercase",letterSpacing:"0.05em",py:2,...l==="Duration"?{textAlign:"right"}:{}},children:l},l))}),g.map(({span:l,depth:y,hasChildren:b},I)=>{const w=r===l.span_id,O=m.has(l.span_id),A=y*(i?12:20),k=u?.(l);return t.jsxs(s,{"data-otel-span":l.span_id,"data-otel-span-name":l.span_name,onClick:()=>{b&&z(l.span_id),o?.(l)},display:"grid",gridTemplateColumns:j,gap:2,px:3,py:"5px",cursor:"pointer",bg:w?"accent.subtle":y>0?"canvas.inset":"canvas.default",borderBottom:"1px solid",borderColor:"border.muted",hover:{bg:w?"accent.subtle":"canvas.subtle"},children:[t.jsx(f,{sx:{fontSize:i?0:1,fontFamily:"mono",color:"fg.muted",whiteSpace:"nowrap",lineHeight:"22px"},children:ze(l.start_time)}),t.jsxs(s,{display:"flex",alignItems:"center",gap:1,overflow:"hidden",lineHeight:"22px",pl:`${A}px`,children:[b?t.jsx(s,{flexShrink:0,color:"fg.muted",display:"flex",alignItems:"center",children:O?t.jsx(P,{size:14}):t.jsx(U,{size:14})}):y>0?t.jsx(s,{flexShrink:0,width:"14px",display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",fontSize:0,children:"─"}):null,x?.(l),t.jsx(f,{sx:{fontSize:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flexShrink:k?0:1,maxWidth:k?"60%":void 0},title:l.span_name,children:l.span_name}),l.in_progress&&t.jsx(L,{variant:"attention",size:"small",children:"running"}),l.status_code==="ERROR"&&t.jsx(L,{variant:"danger",size:"small",children:"ERROR"}),(()=>{const $=Be(l);return $?t.jsxs(C,{border:!0,shadow:"none",display:"inline-flex",alignItems:"center",gap:"2px",px:1,fontSize:"10px",fontFamily:"mono",color:"fg.muted",flexShrink:0,lineHeight:"16px",children:[$.input!=null&&t.jsxs(s,{display:"inline-flex",alignItems:"center",gap:"1px",children:[t.jsx(f,{sx:{fontSize:"9px",color:"fg.subtle"},children:"↗"}),t.jsx(f,{children:$.input})]}),$.output!=null&&t.jsxs(s,{display:"inline-flex",alignItems:"center",gap:"1px",children:[t.jsx(f,{sx:{fontSize:"9px",color:"fg.subtle"},children:"↙"}),t.jsx(f,{children:$.output})]})]}):null})(),k&&t.jsx(f,{sx:{fontSize:1,color:"fg.muted",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},title:k,"data-otel-span-description":"",children:k}),l.otel_scope_name&&!i&&t.jsx(L,{size:"small",variant:"secondary",sx:{flexShrink:0,fontSize:"10px"},children:l.otel_scope_name})]}),t.jsx(f,{sx:{fontSize:1,color:"fg.muted",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",lineHeight:"22px"},title:`${l.service_name} / ${l.otel_scope_name??""}`,children:l.service_name}),t.jsx(f,{sx:{fontSize:1,fontFamily:"mono",textAlign:"right",lineHeight:"22px",color:l.duration_ms!=null&&l.duration_ms>1e3?"danger.fg":"fg.default"},children:l.in_progress?"…":Y(l.duration_ms)})]},`${l.trace_id}-${l.span_id}-${I}`)})]})},We=20,se=({span:e,depth:n,selectedSpanId:r,onSelectSpan:o,expandedIds:a,toggleExpanded:i,traceMinTime:d,traceDuration:x})=>{const u=(e.children?.length??0)>0,h=a.has(e.span_id),c=r===e.span_id,m=$e(e.service_name),j=(N(e.start_time)-d)/x*100,S=Math.max((e.duration_ms||0)/x*100,.5);return t.jsxs(t.Fragment,{children:[t.jsxs(s,{display:"flex",alignItems:"center",height:28,pl:`${n*We}px`,pr:2,cursor:"pointer",bg:c?"accent.subtle":"canvas.default",borderBottom:"1px solid",borderColor:"border.muted",hover:{bg:c?"accent.subtle":"canvas.subtle"},onClick:()=>o?.(e),children:[t.jsx(s,{width:20,textAlign:"center",color:"fg.muted",userSelect:"none",flexShrink:0,cursor:u?"pointer":"default",onClick:g=>{g.stopPropagation(),u&&i(e.span_id)},children:u?h?t.jsx(P,{size:12}):t.jsx(U,{size:12}):t.jsx(f,{sx:{color:"fg.subtle",fontSize:0},children:"·"})}),t.jsx(s,{width:8,height:8,borderRadius:"50%",bg:m,flexShrink:0,mr:1}),t.jsx(f,{sx:{flex:"0 0 200px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:1,fontWeight:c?"bold":"normal"},title:`${e.service_name} / ${e.span_name}`,children:e.span_name}),t.jsx(s,{flex:1,position:"relative",height:12,bg:"canvas.subtle",borderRadius:1,mx:2,overflow:"hidden",children:t.jsx(s,{position:"absolute",left:`${j}%`,width:`${S}%`,height:"100%",bg:m,borderRadius:1,opacity:c?1:.7})}),t.jsx(f,{sx:{minWidth:60,textAlign:"right",fontSize:0,fontFamily:"mono",color:"fg.muted",flexShrink:0},children:Y(e.duration_ms)})]}),u&&h&&e.children.map(g=>t.jsx(se,{span:g,depth:n+1,selectedSpanId:r,onSelectSpan:o,expandedIds:a,toggleExpanded:i,traceMinTime:d,traceDuration:x},g.span_id))]})},Pe=({spans:e,selectedSpanId:n,onSelectSpan:r,defaultExpandDepth:o=2})=>{const a=p.useMemo(()=>{const c=new Set;function m(j,S){for(const g of j)S<o&&c.add(g.span_id),g.children&&m(g.children,S+1)}return m(e,0),c},[e,o]),[i,d]=p.useState(a),x=p.useCallback(c=>{d(m=>{const j=new Set(m);return j.has(c)?j.delete(c):j.add(c),j})},[]),{traceMinTime:u,traceDuration:h}=p.useMemo(()=>{let c=1/0,m=-1/0;function j(S){for(const g of S){const z=N(g.start_time),l=N(g.end_time);z<c&&(c=z),l>m&&(m=l),g.children&&j(g.children)}}return j(e),c===1/0?{traceMinTime:0,traceDuration:1}:{traceMinTime:c,traceDuration:m-c||1}},[e]);return e.length===0?t.jsx(s,{p:3,color:"fg.muted",textAlign:"center",children:t.jsx(f,{children:"No span tree to display."})}):t.jsxs(s,{width:"100%",overflow:"auto",children:[t.jsxs(s,{display:"flex",alignItems:"center",height:28,px:2,borderBottom:"2px solid",borderColor:"border.default",bg:"canvas.subtle",children:[t.jsx(s,{width:20}),t.jsx(s,{width:8,mr:1}),t.jsx(f,{sx:{flex:"0 0 200px",fontSize:0,fontWeight:"bold",color:"fg.muted",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Span"}),t.jsx(f,{sx:{flex:1,mx:2,fontSize:0,fontWeight:"bold",color:"fg.muted",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Timeline"}),t.jsx(f,{sx:{minWidth:60,textAlign:"right",fontSize:0,fontWeight:"bold",color:"fg.muted",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Duration"})]}),e.map(c=>t.jsx(se,{span:c,depth:0,selectedSpanId:n,onSelectSpan:r,expandedIds:i,toggleExpanded:x,traceMinTime:u,traceDuration:h},c.span_id))]})},v=({label:e,value:n,mono:r=!1})=>n==null||n===""?null:t.jsxs(s,{display:"flex",py:1,borderBottom:"1px solid",borderColor:"border.muted",gap:2,children:[t.jsx(f,{sx:{width:140,minWidth:140,color:"fg.muted",fontSize:1,fontWeight:"bold"},children:e}),t.jsx(f,{sx:{fontSize:1,fontFamily:r?"mono":"normal",wordBreak:"break-all"},children:String(n)})]}),ee=({title:e,data:n,defaultOpen:r=!1})=>{const[o,a]=p.useState(r);return!n||Object.keys(n).length===0?null:t.jsxs(s,{mt:3,children:[t.jsxs(s,{display:"flex",alignItems:"center",gap:1,cursor:"pointer",py:1,userSelect:"none",onClick:()=>a(!o),children:[o?t.jsx(P,{size:16}):t.jsx(U,{size:16}),t.jsx(f,{sx:{fontSize:1,fontWeight:"bold"},children:e}),t.jsx(J,{children:Object.keys(n).length})]}),o&&t.jsx(C,{border:!0,shadow:"none",variant:"subtle",display:"block",p:2,mt:1,overflowX:"auto",children:Object.entries(n).map(([i,d])=>t.jsx(W,{attrKey:i,value:d,depth:0},i))})]})};function Ue(e){if(typeof e!="string")return e;const n=e.trim();if(!/^[[{]/.test(n))return e;try{const r=JSON.parse(n);return typeof r=="object"&&r!==null?r:e}catch{return e}}const W=({attrKey:e,value:n,depth:r})=>{const o=p.useMemo(()=>Ue(n),[n]),[a,i]=p.useState(r<1),d=typeof o=="object"&&o!==null&&!Array.isArray(o),x=Array.isArray(o),u=d||x;return t.jsxs(s,{borderBottom:r===0?"1px solid":"none",borderColor:"border.muted",pb:r===0?1:0,mb:r===0?1:0,children:[t.jsxs(s,{display:"flex",gap:2,py:1,pl:r*16+"px",alignItems:"flex-start",children:[u?t.jsx(s,{cursor:"pointer",color:"fg.muted",userSelect:"none",width:16,flexShrink:0,onClick:()=>i(!a),children:a?t.jsx(P,{size:12}):t.jsx(U,{size:12})}):t.jsx(s,{width:16,flexShrink:0}),t.jsx(f,{sx:{color:"accent.fg",fontSize:1,fontFamily:"mono",minWidth:180,wordBreak:"break-all",flexShrink:0},children:e}),!u&&t.jsx(f,{sx:{fontSize:1,fontFamily:"mono",whiteSpace:"pre-wrap",wordBreak:"break-word",color:typeof o=="string"?"accent.emphasis":"attention.fg"},children:typeof o=="string"?o:JSON.stringify(o)}),u&&!a&&t.jsx(f,{sx:{fontSize:0,color:"fg.muted",fontFamily:"mono"},children:x?`[${o.length} items]`:`{${Object.keys(o).length} keys}`})]}),u&&a&&t.jsx(s,{children:x?o.map((h,c)=>t.jsx(W,{attrKey:`[${c}]`,value:h,depth:r+1},c)):Object.entries(o).map(([h,c])=>t.jsx(W,{attrKey:h,value:c,depth:r+1},h))})]})},He=({span:e,traceSpans:n,onClose:r})=>{const[o,a]=p.useState("details");if(!e)return t.jsx(s,{p:5,color:"fg.muted",textAlign:"center",children:t.jsx(f,{children:"Select a span to view details."})});const i={},d={};if(e.attributes)for(const[u,h]of Object.entries(e.attributes))u.startsWith("gen_ai.")||u.startsWith("model_request")?i[u]=h:d[u]=h;const x=n&&n.length>0?oe(n):void 0;return t.jsxs(s,{height:"100%",overflow:"auto",borderLeft:"1px solid",borderColor:"border.default",bg:"canvas.default",display:"flex",flexDirection:"column",children:[t.jsxs(s,{px:3,py:2,borderBottom:"1px solid",borderColor:"border.default",display:"flex",justifyContent:"space-between",alignItems:"center",bg:"canvas.subtle",flexShrink:0,children:[t.jsx(f,{sx:{fontSize:2,fontWeight:"bold"},children:e.span_name}),r&&t.jsx(te,{icon:fe,"aria-label":"Close detail panel",variant:"invisible",size:"small",onClick:r})]}),t.jsxs(B,{"aria-label":"Span detail tabs",children:[t.jsx(B.Item,{"aria-current":o==="details"?"page":void 0,onClick:()=>a("details"),children:"Details"}),x&&t.jsx(B.Item,{"aria-current":o==="tree"?"page":void 0,onClick:()=>a("tree"),children:"Trace Tree"}),t.jsx(B.Item,{"aria-current":o==="raw"?"page":void 0,onClick:()=>a("raw"),children:"Raw Data"})]}),t.jsxs(s,{flex:1,overflow:"auto",children:[o==="details"&&t.jsxs(s,{p:3,children:[t.jsx(v,{label:"span_name",value:e.span_name}),t.jsx(v,{label:"service_name",value:e.service_name}),t.jsx(v,{label:"otel_scope_name",value:e.otel_scope_name}),t.jsx(v,{label:"kind",value:e.kind}),t.jsx(v,{label:"trace_id",value:e.trace_id,mono:!0}),t.jsx(v,{label:"span_id",value:e.span_id,mono:!0}),t.jsx(v,{label:"parent_span_id",value:e.parent_span_id,mono:!0}),t.jsx(v,{label:"duration",value:Y(e.duration_ms)}),t.jsx(v,{label:"start_time",value:e.start_time,mono:!0}),t.jsx(v,{label:"end_time",value:e.end_time,mono:!0}),t.jsx(v,{label:"status_code",value:e.status_code}),t.jsx(v,{label:"status_message",value:e.status_message}),t.jsx(ee,{title:"Arguments",data:i,defaultOpen:Object.keys(i).length>0}),t.jsx(ee,{title:"Attributes",data:d}),e.events&&e.events.length>0&&t.jsxs(s,{mt:3,children:[t.jsxs(s,{display:"flex",alignItems:"center",gap:1,children:[t.jsx(f,{sx:{fontWeight:"bold",fontSize:1},children:"Events"}),t.jsx(J,{children:e.events.length})]}),e.events.map((u,h)=>t.jsxs(C,{border:!0,shadow:"none",variant:"subtle",display:"block",p:2,mt:2,children:[t.jsxs(s,{display:"flex",gap:2,children:[t.jsx(L,{children:u.name}),t.jsx(f,{sx:{fontSize:0,color:"fg.muted",fontFamily:"mono"},children:u.timestamp})]}),u.attributes&&Object.keys(u.attributes).length>0&&t.jsx(s,{mt:1,children:Object.entries(u.attributes).map(([c,m])=>t.jsx(W,{attrKey:c,value:m,depth:0},c))})]},h))]}),e.links&&e.links.length>0&&t.jsxs(s,{mt:3,children:[t.jsxs(s,{display:"flex",alignItems:"center",gap:1,children:[t.jsx(f,{sx:{fontWeight:"bold",fontSize:1},children:"Links"}),t.jsx(J,{children:e.links.length})]}),e.links.map((u,h)=>t.jsxs(f,{sx:{display:"block",fontSize:1,fontFamily:"mono",py:1,borderBottom:"1px solid",borderColor:"border.muted"},children:["trace: ",u.trace_id," → span: ",u.span_id]},h))]})]}),o==="tree"&&x&&t.jsx(Pe,{spans:x,selectedSpanId:e.span_id,defaultExpandDepth:4}),o==="raw"&&t.jsx(s,{as:"pre",p:3,fontSize:0,fontFamily:"mono",whiteSpace:"pre-wrap",wordBreak:"break-word",m:0,bg:"canvas.subtle",children:JSON.stringify(e,null,2)})]})]})},Ve=[{label:"Service",value:e=>e.service_name},{label:"Kind",value:e=>e.kind}];function Ge(e,n,r){return e.filter(o=>n.every((a,i)=>{const d=r[i];if(!d?.size)return!0;const x=a.value(o);return x!==void 0&&d.has(x)}))}function Ke(e,n){const r=new Set(e);return r.has(n)?r.delete(n):r.add(n),r}function Je({facet:e,options:n,selected:r,onChange:o}){const a=e.name??(i=>i);return t.jsxs(G,{children:[t.jsxs(G.Button,{size:"small","data-otel-facet":e.label.toLowerCase(),children:[e.label,r.size?` · ${r.size}`:""]}),t.jsx(G.Overlay,{width:"auto",children:t.jsxs(D,{selectionVariant:"multiple","aria-label":e.label,children:[t.jsx(D.Item,{selected:!r.size,onSelect:()=>o(new Set),children:"All"}),t.jsx(D.Divider,{}),n.map(i=>t.jsx(D.Item,{selected:r.has(i),onSelect:()=>o(Ke(r,i)),children:a(i)},i))]})})]})}function Xe(e,n){const r=new Blob([JSON.stringify(n,null,2)],{type:"application/json"}),o=URL.createObjectURL(r),a=document.createElement("a");a.href=o,a.download=`${e}.json`,a.click(),setTimeout(()=>URL.revokeObjectURL(o),1e3)}const Ye=({tracer:e,spans:n,service:r,facets:o=Ve,compact:a=!1,maxHeight:i=420,detailPlacement:d="below",emptyText:x="Nothing recorded yet.",exportName:u="otel-spans",label:h="Spans",renderSpanMark:c,describeSpan:m})=>{const j=Ne(n?null:e),S=n??j,[g,z]=p.useState(0),[l,y]=p.useState(null),[b,I]=p.useState(()=>o.map(()=>new Set)),[w,O]=p.useState(null),A=p.useMemo(()=>{const _=Re(S,r);return g?_.filter(T=>N(T.start_time)>=g):_},[S,r,g]),k=l??A,$=l?A.length-l.length:0,ie=p.useMemo(()=>o.map(_=>[...new Set(A.map(T=>_.value(T)).filter(T=>T!==void 0))].sort()),[o,A]),R=p.useMemo(()=>Ge(k,o,b),[k,o,b]),F=p.useMemo(()=>w?S.find(_=>_.span_id===w)??null:null,[S,w]),le=p.useMemo(()=>F?S.filter(_=>_.trace_id===F.trace_id):[],[S,F]),H=d==="side"&&!a;return t.jsxs(C,{border:!0,shadow:"none",display:"block","data-otel-live-spans":"",color:"fg.default",minWidth:0,children:[t.jsxs(s,{role:"toolbar","aria-label":h,display:"flex",flexWrap:"wrap",gap:2,alignItems:"center",p:2,borderBottom:"1px solid",borderColor:"border.default",children:[o.map((_,T)=>t.jsx(Je,{facet:_,options:ie[T]??[],selected:b[T]??new Set,onChange:ae=>I(de=>o.map((Ze,q)=>q===T?ae:de[q]??new Set))},_.label)),t.jsx(s,{flex:1}),t.jsxs(f,{sx:{fontSize:0,color:"fg.muted"},"data-otel-span-count":"",children:[R.length===k.length?`${R.length} ${R.length===1?"span":"spans"}`:`${R.length} of ${k.length}`,$>0?` · ${$} new`:""]}),t.jsx(V,{size:"small",leadingVisual:l?xe:he,"aria-pressed":l!==null,onClick:()=>y(l?null:A),"data-otel-pause":"",children:l?"Resume":"Pause"}),t.jsx(V,{size:"small",leadingVisual:pe,onClick:()=>{y(null),O(null),e&&!n&&!r?e.clear():z(Date.now())},"data-otel-clear":"",children:"Clear"}),t.jsx(V,{size:"small",leadingVisual:me,disabled:!A.length,onClick:()=>Xe(u,{exportedAt:new Date().toISOString(),spans:[...A]}),"data-otel-export":"",children:"Export"})]}),t.jsxs(s,{display:H?"grid":"block",gridTemplateColumns:H?"minmax(0, 3fr) minmax(0, 2fr)":void 0,children:[t.jsx(s,{maxHeight:i,overflowY:"auto",minWidth:0,children:t.jsx(Le,{spans:R,selectedSpanId:w,onSelectSpan:_=>O(_.span_id),emptyText:x,compact:a,defaultExpanded:!0,renderSpanMark:c,describeSpan:m})}),F&&t.jsx(s,{"data-otel-live-detail":"",maxHeight:i,overflowY:"auto",minWidth:0,borderTop:H?"none":"1px solid",borderColor:"border.default",children:t.jsx(He,{span:F,traceSpans:le,onClose:()=>O(null)})})]})]})},qe=[{label:"Source",value:be,name:e=>ge[e]??e},{label:"Operation",value:e=>{const n=e.attributes??{},r=n[X.operation]??n["rpc.method"];return r===void 0?void 0:String(r)}},{label:"Agent",value:e=>e.service_name}];function Qe(e){const n=e.attributes?.[X.markIcon],r=e.attributes?.[X.markEmoji];return n||r?t.jsx(Se,{icon:typeof n=="string"?n:void 0,emoji:typeof r=="string"?r:void 0,size:14}):null}function nt({tracer:e,spans:n,agent:r,maxHeight:o=420,compact:a=!1,emptyText:i="Nothing recorded yet.",exportName:d="agent-inspector"}){return t.jsx("div",{"data-agent-inspector":r??"",children:t.jsx(Ye,{tracer:e,spans:n,service:r,facets:qe,compact:a,maxHeight:o,detailPlacement:"side",emptyText:i,exportName:d,label:r?`${r}'s Agent Inspector`:"Agent Inspector",renderSpanMark:Qe,describeSpan:je})})}export{qe as AGENT_INSPECTOR_FACETS,nt as AgentInspector,nt as default};
|
|
1
|
+
import{j as t,B as s,I as te,T as f,r as p,du as ce,f4 as ue,bt as P,dt as U,L,f5 as fe,f6 as J,v as V,P as xe,f7 as he,V as pe,f8 as me,e8 as G,bk as D,f9 as ge,fa as be,fb as X,fc as je,fd as Se}from"../datalayer-app-main.js";import{B as M,U as B}from"./index-CQzZPse_.js";const ye={default:{bg:"canvas.default",borderColor:"border.default"},subtle:{bg:"canvas.subtle",borderColor:"border.default"},inset:{bg:"canvas.inset",borderColor:"border.default"},accent:{bg:"accent.subtle",borderColor:"accent.muted"},success:{bg:"success.subtle",borderColor:"success.muted"},attention:{bg:"attention.subtle",borderColor:"attention.muted"},danger:{bg:"danger.subtle",borderColor:"danger.muted"}},_e={sage:"--bgColor-success-emphasis",steel:"--bgColor-accent-emphasis",mauve:"--bgColor-done-emphasis",clay:"--bgColor-severe-emphasis"},we=e=>{const n=`var(${_e[e]})`;return`linear-gradient(160deg, color-mix(in srgb, ${n} 82%, black), color-mix(in srgb, ${n} 58%, black))`},ve=e=>({backgroundImage:`var(--metal-gradient-${e}, ${we(e)})`,color:"#FFFFFF","--fgColor-default":"#FFFFFF","--fgColor-muted":"rgba(255, 255, 255, 0.85)"}),Ce="card",ne={none:"none",small:"shadow.small",medium:"shadow.medium",large:"shadow.large",extraLarge:"shadow.extraLarge"},ke={cursor:"pointer",textAlign:"left",font:"inherit",transition:"border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease",hover:{borderColor:"accent.emphasis",boxShadow:ne.medium},focusVisible:{outline:"2px solid",outlineColor:"accent.emphasis",outlineOffset:"2px"},reducedMotion:{transition:"none"}},E="cubic-bezier(0.22, 1, 0.36, 1)",re="data-card-icon",K=`[${re}]`,Ie=["&:hover","&:focus-visible","&:has(:focus-visible)"];function Ae(e){const n={boxShadow:"shadow.large",transform:"translateY(-3px)",borderColor:e},r={transition:`box-shadow 260ms ${E}, transform 260ms ${E}, border-color 260ms ${E}`,"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,height:"2px",background:"linear-gradient(90deg, transparent, var(--fgColor-accent), transparent)",opacity:0,pointerEvents:"none",transition:`opacity 260ms ${E}`}},o={transition:`box-shadow 260ms ${E}, border-color 260ms ${E}`,[`& ${K}`]:{transition:"none"}};for(const a of Ie)r[a]=n,r[`${a}::after`]={opacity:1},r[`${a} ${K}`]={transform:"scale(1.06) rotate(-3deg)"},o[a]={transform:"none"},o[`${a} ${K}`]={transform:"none"};return r["@media (prefers-reduced-motion: reduce)"]=o,r}const Te={cursor:"not-allowed",opacity:.6,hover:{}},C=e=>{const{rounded:n,border:r,shadow:o,variant:a="default",surface:i,interactive:d,selected:x,dashed:u,disabled:h,accent:c,hoverEffect:m,sx:j,style:S,children:g,...z}=e,l=m==="lift"&&!h,y=r||d||x||u||l,b=ye[a],I=l?Ae(d?"accent.emphasis":"border.muted"):void 0,w=I?{...I,...j}:j;return t.jsx(s,{display:"flex",flexDirection:"column",...i?void 0:{bg:x?"accent.subtle":b.bg},color:"fg.default",borderRadius:n??Ce,boxShadow:ne[o??(i?"none":"small")],...y?{border:"1px solid",borderColor:x?"accent.emphasis":b.borderColor}:void 0,...u?{borderStyle:"dashed"}:void 0,...c?{borderTop:"3px solid",borderTopColor:c}:void 0,...d?ke:void 0,...h?Te:void 0,...d&&h?{"aria-disabled":!0}:void 0,...l?{position:"relative",overflow:"hidden"}:void 0,...z,style:i?{...ve(i),...S}:S,sx:w,children:g})};C.Header=e=>{const{title:n,description:r,leadingVisual:o,action:a}=e;return t.jsxs(s,{display:"flex",alignItems:"center",p:3,children:[o&&t.jsx(s,{mr:3,children:t.jsx(te,{size:"medium",icon:o,"aria-label":""})}),t.jsxs(s,{flexGrow:1,children:[t.jsx(f,{as:"div",display:"block",children:n}),t.jsx(f,{display:"block",color:"fg.muted",children:r})]}),a&&t.jsx(s,{children:a})]})};C.Image=({url:e,image:n,svg:r,height:o})=>t.jsxs(s,{display:"block",width:"100%",height:`${o}px`,backgroundImage:e?`url(${e})`:void 0,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",objectFit:"cover",children:[n&&t.jsx("img",{src:n,style:{maxHeight:`${o}px`}}),r&&t.jsx("img",{src:`data:image/svg+xml;utf8,${r}`,style:{maxHeight:o}})]});C.Cover=({height:e=110,image:n,gradient:r,color:o="neutral.emphasis",accessory:a,children:i,...d})=>t.jsxs(s,{position:"relative",width:"100%",height:`${e}px`,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",bg:o,backgroundImage:n?`url(${n})`:r?`linear-gradient(135deg, ${r.from} 0%, ${r.to} 100%)`:void 0,backgroundSize:"cover",backgroundPosition:"center",color:"fg.onEmphasis",fontSize:4,fontWeight:"semibold",...d,children:[i,a&&t.jsx(s,{position:"absolute",top:2,right:2,display:"flex",alignItems:"center",gap:1,children:a})]});C.Content=({children:e,...n})=>t.jsx(s,{display:"block",p:3,...n,children:e});C.Footer=({children:e,...n})=>t.jsx(s,{display:"flex",alignItems:"center",gap:2,flexWrap:"wrap",mt:"auto",px:3,py:2,borderTop:"1px solid",borderColor:"border.muted",...n,children:e});C.Icon=({icon:e,color:n="accent.fg",bg:r="accent.subtle",size:o=46,...a})=>t.jsx(s,{[re]:"",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:o,height:o,borderRadius:`${Math.round(o*13/46)}px`,color:n,bg:r,mb:3,boxShadow:"inset 0 0 0 1px currentColor",transition:`transform 320ms ${E}`,...a,children:t.jsx(e,{size:Math.round(o*22/46),fill:"currentColor"})});C.Glass=({children:e,style:n,...r})=>t.jsx(s,{p:3,border:"1px solid",borderRadius:"bubble",...r,style:{background:"var(--metal-glass-bg, rgba(255, 255, 255, 0.16))",borderColor:"var(--metal-glass-border, rgba(255, 255, 255, 0.28))",...n},children:e});C.Actions=({children:e})=>t.jsx(s,{display:"block",p:3,mt:"auto",children:e});function N(e){const n=Number(e);return!isNaN(n)&&n>1e15?n/1e6:!isNaN(n)&&n>1e12?n/1e3:isNaN(n)?new Date(String(e)).getTime():n}function Y(e){return e==null?"—":e<.001?"<1µs":e<1?`${(e*1e3).toFixed(0)}µs`:e<1e3?`${e.toFixed(1)}ms`:e<6e4?`${(e/1e3).toFixed(2)}s`:`${(e/6e4).toFixed(1)}m`}function ze(e){if(e==null||e==="")return"—";try{const n=N(e),r=new Date(n);return isNaN(r.getTime())?String(e):r.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3})}catch{return String(e)}}const Q=["#0969da","#1a7f37","#cf222e","#8250df","#bf8700","#0550ae","#116329","#a40e26","#6639ba","#953800","#0e8a16","#e36209"];function $e(e){let n=0;for(let r=0;r<e.length;r++)n=n*31+e.charCodeAt(r)|0;return Q[Math.abs(n)%Q.length]}function oe(e){const n=new Map,r=e.map(i=>({...i,children:[],depth:0}));for(const i of r)n.set(i.span_id,i);const o=[];for(const i of r)if(i.parent_span_id&&n.has(i.parent_span_id)){const d=n.get(i.parent_span_id);d.children=d.children??[],d.children.push(i)}else o.push(i);function a(i,d){i.depth=d;for(const x of i.children??[])a(x,d+1)}for(const i of o)a(i,0);return o}const Oe="peer.service";function Ee(e,n){return e.service_name===n||e.attributes?.[Oe]===n}function Re(e,n){return n?e.filter(r=>Ee(r,n)):[...e]}const Z=[],Fe=()=>()=>{};function Ne(e){return p.useSyncExternalStore(e?e.subscribe:Fe,()=>e?e.spans():Z,()=>e?e.spans():Z)}const De="140px 1fr 160px 90px",Me="96px minmax(0, 1fr) 96px 64px";function Be(e){const n=e.attributes;if(!n)return null;const r=n["gen_ai.usage.input_tokens"]!=null?Number(n["gen_ai.usage.input_tokens"]):void 0,o=n["gen_ai.usage.output_tokens"]!=null?Number(n["gen_ai.usage.output_tokens"]):void 0;return r==null&&o==null?null:{input:r,output:o}}const Le=({spans:e,loading:n,selectedSpanId:r,onSelectSpan:o,emptyText:a,compact:i=!1,defaultExpanded:d=!1,renderSpanMark:x,describeSpan:u})=>{const[h,c]=p.useState(new Set),m=p.useMemo(()=>({has:l=>d?!h.has(l):h.has(l)}),[h,d]),j=i?Me:De,S=p.useMemo(()=>oe(e),[e]),g=p.useMemo(()=>{const l=[];function y(b,I){const w=b.children??[];if(l.push({span:b,depth:I,hasChildren:w.length>0}),m.has(b.span_id))for(const O of w)y(O,I+1)}for(const b of S)y(b,0);return l},[S,m]),z=p.useCallback(l=>{c(y=>{const b=new Set(y);return b.has(l)?b.delete(l):b.add(l),b})},[]);return n?t.jsx(s,{display:"flex",justifyContent:"center",p:5,children:t.jsx(ce,{size:"medium"})}):e.length===0?t.jsxs(M,{children:[t.jsx(M.Visual,{children:t.jsx(ue,{size:24})}),t.jsx(M.Heading,{children:"No traces found"}),t.jsx(M.Description,{children:a??"Send some telemetry data first."})]}):t.jsxs(s,{width:"100%",flex:1,minHeight:0,overflow:"auto",children:[t.jsx(s,{display:"grid",gridTemplateColumns:j,gap:2,px:3,position:"sticky",top:0,bg:"canvas.subtle",zIndex:1,borderBottom:"2px solid",borderColor:"border.default",children:["Time","Message","Scope","Duration"].map(l=>t.jsx(f,{sx:{fontWeight:"bold",fontSize:0,color:"fg.muted",textTransform:"uppercase",letterSpacing:"0.05em",py:2,...l==="Duration"?{textAlign:"right"}:{}},children:l},l))}),g.map(({span:l,depth:y,hasChildren:b},I)=>{const w=r===l.span_id,O=m.has(l.span_id),A=y*(i?12:20),k=u?.(l);return t.jsxs(s,{"data-otel-span":l.span_id,"data-otel-span-name":l.span_name,onClick:()=>{b&&z(l.span_id),o?.(l)},display:"grid",gridTemplateColumns:j,gap:2,px:3,py:"5px",cursor:"pointer",bg:w?"accent.subtle":y>0?"canvas.inset":"canvas.default",borderBottom:"1px solid",borderColor:"border.muted",hover:{bg:w?"accent.subtle":"canvas.subtle"},children:[t.jsx(f,{sx:{fontSize:i?0:1,fontFamily:"mono",color:"fg.muted",whiteSpace:"nowrap",lineHeight:"22px"},children:ze(l.start_time)}),t.jsxs(s,{display:"flex",alignItems:"center",gap:1,overflow:"hidden",lineHeight:"22px",pl:`${A}px`,children:[b?t.jsx(s,{flexShrink:0,color:"fg.muted",display:"flex",alignItems:"center",children:O?t.jsx(P,{size:14}):t.jsx(U,{size:14})}):y>0?t.jsx(s,{flexShrink:0,width:"14px",display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",fontSize:0,children:"─"}):null,x?.(l),t.jsx(f,{sx:{fontSize:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flexShrink:k?0:1,maxWidth:k?"60%":void 0},title:l.span_name,children:l.span_name}),l.in_progress&&t.jsx(L,{variant:"attention",size:"small",children:"running"}),l.status_code==="ERROR"&&t.jsx(L,{variant:"danger",size:"small",children:"ERROR"}),(()=>{const $=Be(l);return $?t.jsxs(C,{border:!0,shadow:"none",display:"inline-flex",alignItems:"center",gap:"2px",px:1,fontSize:"10px",fontFamily:"mono",color:"fg.muted",flexShrink:0,lineHeight:"16px",children:[$.input!=null&&t.jsxs(s,{display:"inline-flex",alignItems:"center",gap:"1px",children:[t.jsx(f,{sx:{fontSize:"9px",color:"fg.subtle"},children:"↗"}),t.jsx(f,{children:$.input})]}),$.output!=null&&t.jsxs(s,{display:"inline-flex",alignItems:"center",gap:"1px",children:[t.jsx(f,{sx:{fontSize:"9px",color:"fg.subtle"},children:"↙"}),t.jsx(f,{children:$.output})]})]}):null})(),k&&t.jsx(f,{sx:{fontSize:1,color:"fg.muted",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},title:k,"data-otel-span-description":"",children:k}),l.otel_scope_name&&!i&&t.jsx(L,{size:"small",variant:"secondary",sx:{flexShrink:0,fontSize:"10px"},children:l.otel_scope_name})]}),t.jsx(f,{sx:{fontSize:1,color:"fg.muted",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",lineHeight:"22px"},title:`${l.service_name} / ${l.otel_scope_name??""}`,children:l.service_name}),t.jsx(f,{sx:{fontSize:1,fontFamily:"mono",textAlign:"right",lineHeight:"22px",color:l.duration_ms!=null&&l.duration_ms>1e3?"danger.fg":"fg.default"},children:l.in_progress?"…":Y(l.duration_ms)})]},`${l.trace_id}-${l.span_id}-${I}`)})]})},We=20,se=({span:e,depth:n,selectedSpanId:r,onSelectSpan:o,expandedIds:a,toggleExpanded:i,traceMinTime:d,traceDuration:x})=>{const u=(e.children?.length??0)>0,h=a.has(e.span_id),c=r===e.span_id,m=$e(e.service_name),j=(N(e.start_time)-d)/x*100,S=Math.max((e.duration_ms||0)/x*100,.5);return t.jsxs(t.Fragment,{children:[t.jsxs(s,{display:"flex",alignItems:"center",height:28,pl:`${n*We}px`,pr:2,cursor:"pointer",bg:c?"accent.subtle":"canvas.default",borderBottom:"1px solid",borderColor:"border.muted",hover:{bg:c?"accent.subtle":"canvas.subtle"},onClick:()=>o?.(e),children:[t.jsx(s,{width:20,textAlign:"center",color:"fg.muted",userSelect:"none",flexShrink:0,cursor:u?"pointer":"default",onClick:g=>{g.stopPropagation(),u&&i(e.span_id)},children:u?h?t.jsx(P,{size:12}):t.jsx(U,{size:12}):t.jsx(f,{sx:{color:"fg.subtle",fontSize:0},children:"·"})}),t.jsx(s,{width:8,height:8,borderRadius:"50%",bg:m,flexShrink:0,mr:1}),t.jsx(f,{sx:{flex:"0 0 200px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:1,fontWeight:c?"bold":"normal"},title:`${e.service_name} / ${e.span_name}`,children:e.span_name}),t.jsx(s,{flex:1,position:"relative",height:12,bg:"canvas.subtle",borderRadius:1,mx:2,overflow:"hidden",children:t.jsx(s,{position:"absolute",left:`${j}%`,width:`${S}%`,height:"100%",bg:m,borderRadius:1,opacity:c?1:.7})}),t.jsx(f,{sx:{minWidth:60,textAlign:"right",fontSize:0,fontFamily:"mono",color:"fg.muted",flexShrink:0},children:Y(e.duration_ms)})]}),u&&h&&e.children.map(g=>t.jsx(se,{span:g,depth:n+1,selectedSpanId:r,onSelectSpan:o,expandedIds:a,toggleExpanded:i,traceMinTime:d,traceDuration:x},g.span_id))]})},Pe=({spans:e,selectedSpanId:n,onSelectSpan:r,defaultExpandDepth:o=2})=>{const a=p.useMemo(()=>{const c=new Set;function m(j,S){for(const g of j)S<o&&c.add(g.span_id),g.children&&m(g.children,S+1)}return m(e,0),c},[e,o]),[i,d]=p.useState(a),x=p.useCallback(c=>{d(m=>{const j=new Set(m);return j.has(c)?j.delete(c):j.add(c),j})},[]),{traceMinTime:u,traceDuration:h}=p.useMemo(()=>{let c=1/0,m=-1/0;function j(S){for(const g of S){const z=N(g.start_time),l=N(g.end_time);z<c&&(c=z),l>m&&(m=l),g.children&&j(g.children)}}return j(e),c===1/0?{traceMinTime:0,traceDuration:1}:{traceMinTime:c,traceDuration:m-c||1}},[e]);return e.length===0?t.jsx(s,{p:3,color:"fg.muted",textAlign:"center",children:t.jsx(f,{children:"No span tree to display."})}):t.jsxs(s,{width:"100%",overflow:"auto",children:[t.jsxs(s,{display:"flex",alignItems:"center",height:28,px:2,borderBottom:"2px solid",borderColor:"border.default",bg:"canvas.subtle",children:[t.jsx(s,{width:20}),t.jsx(s,{width:8,mr:1}),t.jsx(f,{sx:{flex:"0 0 200px",fontSize:0,fontWeight:"bold",color:"fg.muted",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Span"}),t.jsx(f,{sx:{flex:1,mx:2,fontSize:0,fontWeight:"bold",color:"fg.muted",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Timeline"}),t.jsx(f,{sx:{minWidth:60,textAlign:"right",fontSize:0,fontWeight:"bold",color:"fg.muted",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Duration"})]}),e.map(c=>t.jsx(se,{span:c,depth:0,selectedSpanId:n,onSelectSpan:r,expandedIds:i,toggleExpanded:x,traceMinTime:u,traceDuration:h},c.span_id))]})},v=({label:e,value:n,mono:r=!1})=>n==null||n===""?null:t.jsxs(s,{display:"flex",py:1,borderBottom:"1px solid",borderColor:"border.muted",gap:2,children:[t.jsx(f,{sx:{width:140,minWidth:140,color:"fg.muted",fontSize:1,fontWeight:"bold"},children:e}),t.jsx(f,{sx:{fontSize:1,fontFamily:r?"mono":"normal",wordBreak:"break-all"},children:String(n)})]}),ee=({title:e,data:n,defaultOpen:r=!1})=>{const[o,a]=p.useState(r);return!n||Object.keys(n).length===0?null:t.jsxs(s,{mt:3,children:[t.jsxs(s,{display:"flex",alignItems:"center",gap:1,cursor:"pointer",py:1,userSelect:"none",onClick:()=>a(!o),children:[o?t.jsx(P,{size:16}):t.jsx(U,{size:16}),t.jsx(f,{sx:{fontSize:1,fontWeight:"bold"},children:e}),t.jsx(J,{children:Object.keys(n).length})]}),o&&t.jsx(C,{border:!0,shadow:"none",variant:"subtle",display:"block",p:2,mt:1,overflowX:"auto",children:Object.entries(n).map(([i,d])=>t.jsx(W,{attrKey:i,value:d,depth:0},i))})]})};function Ue(e){if(typeof e!="string")return e;const n=e.trim();if(!/^[[{]/.test(n))return e;try{const r=JSON.parse(n);return typeof r=="object"&&r!==null?r:e}catch{return e}}const W=({attrKey:e,value:n,depth:r})=>{const o=p.useMemo(()=>Ue(n),[n]),[a,i]=p.useState(r<1),d=typeof o=="object"&&o!==null&&!Array.isArray(o),x=Array.isArray(o),u=d||x;return t.jsxs(s,{borderBottom:r===0?"1px solid":"none",borderColor:"border.muted",pb:r===0?1:0,mb:r===0?1:0,children:[t.jsxs(s,{display:"flex",gap:2,py:1,pl:r*16+"px",alignItems:"flex-start",children:[u?t.jsx(s,{cursor:"pointer",color:"fg.muted",userSelect:"none",width:16,flexShrink:0,onClick:()=>i(!a),children:a?t.jsx(P,{size:12}):t.jsx(U,{size:12})}):t.jsx(s,{width:16,flexShrink:0}),t.jsx(f,{sx:{color:"accent.fg",fontSize:1,fontFamily:"mono",minWidth:180,wordBreak:"break-all",flexShrink:0},children:e}),!u&&t.jsx(f,{sx:{fontSize:1,fontFamily:"mono",whiteSpace:"pre-wrap",wordBreak:"break-word",color:typeof o=="string"?"accent.emphasis":"attention.fg"},children:typeof o=="string"?o:JSON.stringify(o)}),u&&!a&&t.jsx(f,{sx:{fontSize:0,color:"fg.muted",fontFamily:"mono"},children:x?`[${o.length} items]`:`{${Object.keys(o).length} keys}`})]}),u&&a&&t.jsx(s,{children:x?o.map((h,c)=>t.jsx(W,{attrKey:`[${c}]`,value:h,depth:r+1},c)):Object.entries(o).map(([h,c])=>t.jsx(W,{attrKey:h,value:c,depth:r+1},h))})]})},He=({span:e,traceSpans:n,onClose:r})=>{const[o,a]=p.useState("details");if(!e)return t.jsx(s,{p:5,color:"fg.muted",textAlign:"center",children:t.jsx(f,{children:"Select a span to view details."})});const i={},d={};if(e.attributes)for(const[u,h]of Object.entries(e.attributes))u.startsWith("gen_ai.")||u.startsWith("model_request")?i[u]=h:d[u]=h;const x=n&&n.length>0?oe(n):void 0;return t.jsxs(s,{height:"100%",overflow:"auto",borderLeft:"1px solid",borderColor:"border.default",bg:"canvas.default",display:"flex",flexDirection:"column",children:[t.jsxs(s,{px:3,py:2,borderBottom:"1px solid",borderColor:"border.default",display:"flex",justifyContent:"space-between",alignItems:"center",bg:"canvas.subtle",flexShrink:0,children:[t.jsx(f,{sx:{fontSize:2,fontWeight:"bold"},children:e.span_name}),r&&t.jsx(te,{icon:fe,"aria-label":"Close detail panel",variant:"invisible",size:"small",onClick:r})]}),t.jsxs(B,{"aria-label":"Span detail tabs",children:[t.jsx(B.Item,{"aria-current":o==="details"?"page":void 0,onClick:()=>a("details"),children:"Details"}),x&&t.jsx(B.Item,{"aria-current":o==="tree"?"page":void 0,onClick:()=>a("tree"),children:"Trace Tree"}),t.jsx(B.Item,{"aria-current":o==="raw"?"page":void 0,onClick:()=>a("raw"),children:"Raw Data"})]}),t.jsxs(s,{flex:1,overflow:"auto",children:[o==="details"&&t.jsxs(s,{p:3,children:[t.jsx(v,{label:"span_name",value:e.span_name}),t.jsx(v,{label:"service_name",value:e.service_name}),t.jsx(v,{label:"otel_scope_name",value:e.otel_scope_name}),t.jsx(v,{label:"kind",value:e.kind}),t.jsx(v,{label:"trace_id",value:e.trace_id,mono:!0}),t.jsx(v,{label:"span_id",value:e.span_id,mono:!0}),t.jsx(v,{label:"parent_span_id",value:e.parent_span_id,mono:!0}),t.jsx(v,{label:"duration",value:Y(e.duration_ms)}),t.jsx(v,{label:"start_time",value:e.start_time,mono:!0}),t.jsx(v,{label:"end_time",value:e.end_time,mono:!0}),t.jsx(v,{label:"status_code",value:e.status_code}),t.jsx(v,{label:"status_message",value:e.status_message}),t.jsx(ee,{title:"Arguments",data:i,defaultOpen:Object.keys(i).length>0}),t.jsx(ee,{title:"Attributes",data:d}),e.events&&e.events.length>0&&t.jsxs(s,{mt:3,children:[t.jsxs(s,{display:"flex",alignItems:"center",gap:1,children:[t.jsx(f,{sx:{fontWeight:"bold",fontSize:1},children:"Events"}),t.jsx(J,{children:e.events.length})]}),e.events.map((u,h)=>t.jsxs(C,{border:!0,shadow:"none",variant:"subtle",display:"block",p:2,mt:2,children:[t.jsxs(s,{display:"flex",gap:2,children:[t.jsx(L,{children:u.name}),t.jsx(f,{sx:{fontSize:0,color:"fg.muted",fontFamily:"mono"},children:u.timestamp})]}),u.attributes&&Object.keys(u.attributes).length>0&&t.jsx(s,{mt:1,children:Object.entries(u.attributes).map(([c,m])=>t.jsx(W,{attrKey:c,value:m,depth:0},c))})]},h))]}),e.links&&e.links.length>0&&t.jsxs(s,{mt:3,children:[t.jsxs(s,{display:"flex",alignItems:"center",gap:1,children:[t.jsx(f,{sx:{fontWeight:"bold",fontSize:1},children:"Links"}),t.jsx(J,{children:e.links.length})]}),e.links.map((u,h)=>t.jsxs(f,{sx:{display:"block",fontSize:1,fontFamily:"mono",py:1,borderBottom:"1px solid",borderColor:"border.muted"},children:["trace: ",u.trace_id," → span: ",u.span_id]},h))]})]}),o==="tree"&&x&&t.jsx(Pe,{spans:x,selectedSpanId:e.span_id,defaultExpandDepth:4}),o==="raw"&&t.jsx(s,{as:"pre",p:3,fontSize:0,fontFamily:"mono",whiteSpace:"pre-wrap",wordBreak:"break-word",m:0,bg:"canvas.subtle",children:JSON.stringify(e,null,2)})]})]})},Ve=[{label:"Service",value:e=>e.service_name},{label:"Kind",value:e=>e.kind}];function Ge(e,n,r){return e.filter(o=>n.every((a,i)=>{const d=r[i];if(!d?.size)return!0;const x=a.value(o);return x!==void 0&&d.has(x)}))}function Ke(e,n){const r=new Set(e);return r.has(n)?r.delete(n):r.add(n),r}function Je({facet:e,options:n,selected:r,onChange:o}){const a=e.name??(i=>i);return t.jsxs(G,{children:[t.jsxs(G.Button,{size:"small","data-otel-facet":e.label.toLowerCase(),children:[e.label,r.size?` · ${r.size}`:""]}),t.jsx(G.Overlay,{width:"auto",children:t.jsxs(D,{selectionVariant:"multiple","aria-label":e.label,children:[t.jsx(D.Item,{selected:!r.size,onSelect:()=>o(new Set),children:"All"}),t.jsx(D.Divider,{}),n.map(i=>t.jsx(D.Item,{selected:r.has(i),onSelect:()=>o(Ke(r,i)),children:a(i)},i))]})})]})}function Xe(e,n){const r=new Blob([JSON.stringify(n,null,2)],{type:"application/json"}),o=URL.createObjectURL(r),a=document.createElement("a");a.href=o,a.download=`${e}.json`,a.click(),setTimeout(()=>URL.revokeObjectURL(o),1e3)}const Ye=({tracer:e,spans:n,service:r,facets:o=Ve,compact:a=!1,maxHeight:i=420,detailPlacement:d="below",emptyText:x="Nothing recorded yet.",exportName:u="otel-spans",label:h="Spans",renderSpanMark:c,describeSpan:m})=>{const j=Ne(n?null:e),S=n??j,[g,z]=p.useState(0),[l,y]=p.useState(null),[b,I]=p.useState(()=>o.map(()=>new Set)),[w,O]=p.useState(null),A=p.useMemo(()=>{const _=Re(S,r);return g?_.filter(T=>N(T.start_time)>=g):_},[S,r,g]),k=l??A,$=l?A.length-l.length:0,ie=p.useMemo(()=>o.map(_=>[...new Set(A.map(T=>_.value(T)).filter(T=>T!==void 0))].sort()),[o,A]),R=p.useMemo(()=>Ge(k,o,b),[k,o,b]),F=p.useMemo(()=>w?S.find(_=>_.span_id===w)??null:null,[S,w]),le=p.useMemo(()=>F?S.filter(_=>_.trace_id===F.trace_id):[],[S,F]),H=d==="side"&&!a;return t.jsxs(C,{border:!0,shadow:"none",display:"block","data-otel-live-spans":"",color:"fg.default",minWidth:0,children:[t.jsxs(s,{role:"toolbar","aria-label":h,display:"flex",flexWrap:"wrap",gap:2,alignItems:"center",p:2,borderBottom:"1px solid",borderColor:"border.default",children:[o.map((_,T)=>t.jsx(Je,{facet:_,options:ie[T]??[],selected:b[T]??new Set,onChange:ae=>I(de=>o.map((Ze,q)=>q===T?ae:de[q]??new Set))},_.label)),t.jsx(s,{flex:1}),t.jsxs(f,{sx:{fontSize:0,color:"fg.muted"},"data-otel-span-count":"",children:[R.length===k.length?`${R.length} ${R.length===1?"span":"spans"}`:`${R.length} of ${k.length}`,$>0?` · ${$} new`:""]}),t.jsx(V,{size:"small",leadingVisual:l?xe:he,"aria-pressed":l!==null,onClick:()=>y(l?null:A),"data-otel-pause":"",children:l?"Resume":"Pause"}),t.jsx(V,{size:"small",leadingVisual:pe,onClick:()=>{y(null),O(null),e&&!n&&!r?e.clear():z(Date.now())},"data-otel-clear":"",children:"Clear"}),t.jsx(V,{size:"small",leadingVisual:me,disabled:!A.length,onClick:()=>Xe(u,{exportedAt:new Date().toISOString(),spans:[...A]}),"data-otel-export":"",children:"Export"})]}),t.jsxs(s,{display:H?"grid":"block",gridTemplateColumns:H?"minmax(0, 3fr) minmax(0, 2fr)":void 0,children:[t.jsx(s,{maxHeight:i,overflowY:"auto",minWidth:0,children:t.jsx(Le,{spans:R,selectedSpanId:w,onSelectSpan:_=>O(_.span_id),emptyText:x,compact:a,defaultExpanded:!0,renderSpanMark:c,describeSpan:m})}),F&&t.jsx(s,{"data-otel-live-detail":"",maxHeight:i,overflowY:"auto",minWidth:0,borderTop:H?"none":"1px solid",borderColor:"border.default",children:t.jsx(He,{span:F,traceSpans:le,onClose:()=>O(null)})})]})]})},qe=[{label:"Source",value:be,name:e=>ge[e]??e},{label:"Operation",value:e=>{const n=e.attributes??{},r=n[X.operation]??n["rpc.method"];return r===void 0?void 0:String(r)}},{label:"Agent",value:e=>e.service_name}];function Qe(e){const n=e.attributes?.[X.markIcon],r=e.attributes?.[X.markEmoji];return n||r?t.jsx(Se,{icon:typeof n=="string"?n:void 0,emoji:typeof r=="string"?r:void 0,size:14}):null}function nt({tracer:e,spans:n,agent:r,maxHeight:o=420,compact:a=!1,emptyText:i="Nothing recorded yet.",exportName:d="agent-inspector"}){return t.jsx("div",{"data-agent-inspector":r??"",children:t.jsx(Ye,{tracer:e,spans:n,service:r,facets:qe,compact:a,maxHeight:o,detailPlacement:"side",emptyText:i,exportName:d,label:r?`${r}'s Agent Inspector`:"Agent Inspector",renderSpanMark:Qe,describeSpan:je})})}export{qe as AGENT_INSPECTOR_FACETS,nt as AgentInspector,nt as default};
|
package/dist-embed/chunks/{AgentInspectorDialog-dRHZ1p73.js → AgentInspectorDialog-B_ii1_F3.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,D as n,r as t,T as i,_ as c}from"../datalayer-app-main.js";const g=t.lazy(()=>c(()=>import("./AgentInspector-
|
|
1
|
+
import{j as e,D as n,r as t,T as i,_ as c}from"../datalayer-app-main.js";const g=t.lazy(()=>c(()=>import("./AgentInspector-CMjveNA0.js"),[],import.meta.url));function d({tracer:r,title:a="Agent Inspector",agent:o,onClose:s}){return e.jsx(n,{title:a,onClose:s,width:"xlarge",height:"large","data-agent-inspector-dialog":"",children:e.jsx(t.Suspense,{fallback:e.jsx(i,{sx:{color:"fg.muted"},children:"Loading the Agent Inspector…"}),children:e.jsx(g,{tracer:r,agent:o,maxHeight:"calc(80vh - 140px)",emptyText:"Nothing recorded yet: what the agent does shows here as it does it."})})})}export{d as AgentInspectorDialog,d as default};
|