@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
package/lib/specs/mcpServers.js
CHANGED
|
@@ -1123,6 +1123,40 @@ export const SALESFORCE_MCP_SERVER_0_0_1 = {
|
|
|
1123
1123
|
note: 'Not read off the running server yet: its tools are unknown, and unknown is the most restricted. Run the server, list its tools, and class each one here.',
|
|
1124
1124
|
},
|
|
1125
1125
|
};
|
|
1126
|
+
export const SHOPIFY_MCP_SERVER_0_0_1 = {
|
|
1127
|
+
id: 'shopify',
|
|
1128
|
+
version: '0.0.1',
|
|
1129
|
+
name: 'Shopify',
|
|
1130
|
+
description: "Products from every Shopify store — search, compare variants and prices, read a product and its seller's checkout link — through Shopify's Global Catalog",
|
|
1131
|
+
icon: '@primer/octicons-react:package',
|
|
1132
|
+
emoji: '🛒',
|
|
1133
|
+
url: 'https://catalog.shopify.com/api/ucp/mcp',
|
|
1134
|
+
args: [],
|
|
1135
|
+
transport: 'streamable-http',
|
|
1136
|
+
enabled: true,
|
|
1137
|
+
isAvailable: false,
|
|
1138
|
+
tools: [],
|
|
1139
|
+
requiredEnvVars: [],
|
|
1140
|
+
tags: ['commerce', 'shopping', 'shopify', 'ucp'],
|
|
1141
|
+
documentationUrl: 'https://shopify.dev/docs/agents/catalog/global-catalog',
|
|
1142
|
+
signupUrl: 'https://shopify.dev/docs/agents',
|
|
1143
|
+
apiKeyUrl: 'https://shopify.dev/docs/agents/profiles/auth-and-rate-limiting',
|
|
1144
|
+
setup: "Nothing to set: the runtime reaches Shopify's [Global Catalog](https://shopify.dev/docs/agents/catalog/global-catalog) at https://catalog.shopify.com/api/ucp/mcp anonymously, limited per address. It finds and compares products and returns each seller's checkout link; it buys nothing.",
|
|
1145
|
+
install: {
|
|
1146
|
+
type: 'remote',
|
|
1147
|
+
command: '',
|
|
1148
|
+
note: "Nothing to install: Shopify's hosted Global Catalog, reached at its URL over Streamable HTTP.",
|
|
1149
|
+
},
|
|
1150
|
+
actions: {
|
|
1151
|
+
tools: {
|
|
1152
|
+
search_catalog: 'read',
|
|
1153
|
+
lookup_catalog: 'read',
|
|
1154
|
+
get_product: 'read',
|
|
1155
|
+
},
|
|
1156
|
+
checked: '2026-11-14',
|
|
1157
|
+
note: "Read off the running server's tools/list (universal-ucp-mcp 0.1.0, UCP 2026-08-25): three catalogue reads. Nothing here creates a cart, a checkout or an order.",
|
|
1158
|
+
},
|
|
1159
|
+
};
|
|
1126
1160
|
export const SLACK_MCP_SERVER_0_0_1 = {
|
|
1127
1161
|
id: 'slack',
|
|
1128
1162
|
version: '0.0.1',
|
|
@@ -1261,6 +1295,7 @@ export const MCP_SERVER_LIBRARY = {
|
|
|
1261
1295
|
'odoo-accounting': ODOO_ACCOUNTING_MCP_SERVER_0_0_1,
|
|
1262
1296
|
odoo: ODOO_MCP_SERVER_0_0_1,
|
|
1263
1297
|
salesforce: SALESFORCE_MCP_SERVER_0_0_1,
|
|
1298
|
+
shopify: SHOPIFY_MCP_SERVER_0_0_1,
|
|
1264
1299
|
slack: SLACK_MCP_SERVER_0_0_1,
|
|
1265
1300
|
tavily: TAVILY_MCP_SERVER_0_0_1,
|
|
1266
1301
|
x: X_MCP_SERVER_0_0_1,
|
|
@@ -157,9 +157,10 @@ const kernelsPoll = new Poll({
|
|
|
157
157
|
max: 300 * 1000,
|
|
158
158
|
},
|
|
159
159
|
name: '@datalayer/jupyter-kernels:KernelsManager#kernels',
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
160
|
+
// Only for somebody signed in: the list is the person's, asked with their
|
|
161
|
+
// token. A runtimes URL alone (it always has one) polled for a visitor
|
|
162
|
+
// signed out too, a 401 each minute on a public page (14 November 2026).
|
|
163
|
+
standby: () => (iamStore.getState().token ? 'when-hidden' : true),
|
|
163
164
|
});
|
|
164
165
|
// Force refresh at expiration date if next tick is after it.
|
|
165
166
|
runtimesStore.subscribe((state, prevState) => {
|
package/package.json
CHANGED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import{a6 as B,fc as Ks,r as s,j as t,gE as Gs,gF as Ys,cd as qn,B as g,H as xt,T as z,v as K,ds as Jt,fs as nn,gG as se,dl as bt,y as Js,gH as qs,gI as Qs,f2 as Xs,gJ as Zs,b1 as eo,gK as to,gL as no,gM as so,gN as oo,gO as ao,gP as io,eW as rs,eU as ro,dn as lo,eX as sn,gQ as co,gR as uo,gS as fo,gT as po,gU as ls,gV as cs,gW as mo,L as ho,gX as go,e6 as qt,I as ds,bk as st,D as us,gY as Qn,gZ as xo,g_ as bo,E as vo,cC as So,g$ as yo,h0 as wo,h1 as Co,h2 as jo,h3 as ko,h4 as To,a1 as Qt,h5 as Io,h6 as Ro,h7 as Eo,h8 as Ao,h9 as Po,ha as Uo,hb as $o,hc as Mo,hd as Oo,he as Lo,hf as Fo,hg as zo,hh as _o,hi as No,hj as Bo,hk as Vo,hl as Ho,hm as Do,hn as Wo,ho as Ko,hp as ot,hq as Go,hr as Yo,hs as Jo,ht as qo,hu as Xn,hv as Qo,hw as Ne,hx as Xo,hy as Zo,cD as vt,hz as ea,hA as ta,hB as Zn,hC as na,hD as sa,hE as oa,hF as aa,fA as ia,hG as Xt,hH as Ae,hI as ra,hJ as la,hK as ca,hL as da,hM as ua,hN as es,hO as fa,hP as pa,hQ as ma,hR as ha,hS as ga,hT as xa,hU as ba,hV as va,hW as Sa,hX as ya,hY as wa,hZ as St,h_ as Ca,h$ as ja,i0 as ka,i1 as Ta,i2 as Ia,i3 as ts,i4 as Ra,i5 as Ea,i6 as Aa,i7 as on,i8 as Pa,i9 as Ua,fi as Zt,ia as $a,ib as Ma}from"../datalayer-app-main.js";import{S as Oa,E as La,a as Fa}from"./SignInIcon-XIbntAUw.js";import{F as za,a as _a,b as Na}from"./LinkedInGreyIcon-eBP5iBjI.js";import{K as Ba}from"./KebabHorizontalIcon-D6AY8pIS.js";function fs(){const n=B(Ks);return s.useMemo(()=>n.map(o=>o.value),[n])}const en={github:{name:"github",oauth2CallbackServerRoute:"jupyter_iam/oauth2/callback",oauth2CallbackUIRoute:"/iam/oauth2/github/callback"},google:{name:"google",oauth2CallbackServerRoute:"jupyter_iam/oauth2/callback",oauth2CallbackUIRoute:"/iam/oauth2/google/callback"},linkedin:{name:"linkedin",oauth2CallbackServerRoute:"jupyter_iam/oauth2/callback",oauth2CallbackUIRoute:"/iam/oauth2/linkedin/callback"}},ns=()=>{if(typeof document>"u")return"";const n=document.getElementById("datalayer-config-data");if(!n?.textContent)return"";try{const o=JSON.parse(n.textContent);return String(o?.iamUrl||"").replace(/\/$/,"")}catch{return""}},Va=(n,o="Unable to start social sign-in.")=>{if(n instanceof Error&&n.message)return n.message;if(typeof n=="string"&&n.trim())return n;if(n&&typeof n=="object"&&"message"in n){const i=n.message;if(typeof i=="string"&&i.trim())return i}return o},Ha=Zs`
|
|
2
|
-
.signin-input-theme-scope input:-webkit-autofill,
|
|
3
|
-
.signin-input-theme-scope input:-webkit-autofill:hover,
|
|
4
|
-
.signin-input-theme-scope input:-webkit-autofill:focus,
|
|
5
|
-
.signin-input-theme-scope input:-webkit-autofill:active,
|
|
6
|
-
.signin-input-theme-scope input:-webkit-autofill:disabled,
|
|
7
|
-
.signin-input-theme-scope textarea:-webkit-autofill,
|
|
8
|
-
.signin-input-theme-scope textarea:-webkit-autofill:hover,
|
|
9
|
-
.signin-input-theme-scope textarea:-webkit-autofill:focus,
|
|
10
|
-
.signin-input-theme-scope textarea:-webkit-autofill:active,
|
|
11
|
-
.signin-input-theme-scope textarea:-webkit-autofill:disabled {
|
|
12
|
-
-webkit-text-fill-color: var(--fgColor-default) !important;
|
|
13
|
-
caret-color: var(--fgColor-default) !important;
|
|
14
|
-
-webkit-box-shadow: 0 0 0 1000px var(--bgColor-default) inset !important;
|
|
15
|
-
box-shadow: 0 0 0 1000px var(--bgColor-default) inset !important;
|
|
16
|
-
background-color: var(--bgColor-default) !important;
|
|
17
|
-
transition: background-color 9999s ease-in-out 0s !important;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.signin-input-theme-scope input:disabled,
|
|
21
|
-
.signin-input-theme-scope textarea:disabled {
|
|
22
|
-
-webkit-text-fill-color: var(--fgColor-muted) !important;
|
|
23
|
-
-webkit-box-shadow: 0 0 0 1000px var(--bgColor-default) inset !important;
|
|
24
|
-
box-shadow: 0 0 0 1000px var(--bgColor-default) inset !important;
|
|
25
|
-
background-color: var(--bgColor-default) !important;
|
|
26
|
-
opacity: 1 !important;
|
|
27
|
-
}
|
|
28
|
-
`,Da=({onSignIn:n,onApiKeySignIn:o,loginUrl:i,name:r,title:d="Datalayer OTEL",description:p="Sign in to access the observability dashboard.",icon:v,leadingIcon:c=t.jsx(Xs,{size:24}),github:f=!1,google:x=!1,linkedin:y=!1,apiKey:u=!1,signUp:ue=!0,socialSignInNavigationTarget:O,asDoc:w=!1,fillHeight:k=!0,hideHero:_=!1,calloutTitle:xe,calloutDescription:A,passwordToggleLabel:yt="Sign in with a password",signUpTitle:wt="Don't have an account?",signUpDescription:an="Create a free Datalayer account with your email address.",signUpLabel:be="Sign up with email",signUpHref:Ct="https://datalayer.ai/signup",onSignUp:Q,forgotPasswordHref:fe="/password",forgotPasswordLabel:at="Forgot password?",showForgotPassword:oe=!0,socialButtonMarginTop:Pe=3,actionButtonMaxWidth:te=320})=>{const ve=w&&!_,C=r??(w&&d==="Datalayer OTEL"?"Datalayer Sign In":d),it=v??(w?t.jsx(Oa,{size:24}):c),Se=s.useMemo(()=>{if(i)return i;const m=ns();return m?`${m}/api/iam/v1/login`:"/api/iam/v1/login"},[i]),[X,jt]=s.useState(""),[L,kt]=s.useState(""),[ye,Tt]=s.useState(!1),[Ue,It]=s.useState(!1),[P,$e]=s.useState(!1),[Z,Be]=s.useState(!1),[Me,Ve]=s.useState(null),[G,Rt]=s.useState(null),[ae,Et]=s.useState(""),[He,At]=s.useState(null),[we,ee]=s.useState(null),{enqueueToast:Ce}=Gs(),[je,ke]=s.useState(!1),[pe,De]=s.useState(""),me=s.useRef(null),We=s.useCallback(m=>Ys()?qn.URLExt.join(qn.PageConfig.getBaseUrl(),m.oauth2CallbackServerRoute):`${window.location.protocol}//${window.location.hostname}${window.location.port?`:${window.location.port}`:""}${m.oauth2CallbackUIRoute}`,[]),ie=s.useMemo(()=>{if(typeof window>"u")return"/";const m=`${window.location.pathname}${window.location.search}${window.location.hash}`;return m.startsWith("/")?m:"/"},[]),R=s.useCallback(async m=>{if(!Z){ee(null),Ve(m.name),Be(!0);try{const U=ns(),V=new URLSearchParams({provider:m.name,callback_uri:We(m)}),H=O===void 0?void 0:String(O||"").trim(),Ge=H===void 0?ie&&ie!=="/"?ie:void 0:H&&H.startsWith("/")&&!H.startsWith("//")?H:void 0;Ge&&V.set("post_auth_redirect",Ge);const E=`${U||""}/api/iam/v1/oauth2/authz/url?${V.toString()}`,$=await fetch(E),j=await $.json(),ce=j?.autorization_url;if(!$.ok||!ce)throw new Error(j?.message||"Unable to start social sign-in.");window.location.assign(ce)}catch(U){const V=Va(U);ee(V),Ce(V,{variant:"error"}),Ve(null),Be(!1)}}},[We,ie,Ce,Z,O]);s.useEffect(()=>{je&&me.current?.focus()},[je]);const re=s.useCallback(()=>{ke(!1),De("")},[]),Te=s.useCallback(()=>{!pe.trim()||!o||(o(pe.trim()),re())},[pe,o,re]),le=s.useCallback(()=>{if(Q){Q();return}window.location.assign(Ct)},[Q,Ct]),rt=s.useCallback(()=>{if(fe){if(fe.startsWith("http://")||fe.startsWith("https://")){window.open(fe,"_blank","noopener,noreferrer");return}window.location.assign(fe)}},[fe]),Oe=s.useCallback(async()=>{if(!(w||!X||!L||P)){$e(!0),ee(null);try{const m=await fetch(Se,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({handle:X,password:L})});if(!m.ok)throw new Error(`HTTP ${m.status}`);const U=await m.json();if(U.success&&U.token){const V=String(U?.user?.id||U?.user?.uid||"").trim();if(!!U?.user?.mfaUrl&&V){Rt(V),At(U.token),ee(null);return}n&&n(U.token,X)}else ee(U.message||"Invalid username or password.")}catch(m){ee(m instanceof Error?m.message:String(m))}finally{$e(!1)}}},[w,X,L,P,Se,n]),Le=s.useCallback(async()=>{if(!(w||P||!G||!ae.trim()||!He)){$e(!0),ee(null);try{const m=new URL(Se,window.location.origin),U=m.pathname.endsWith("/api/iam/v1/login")?m.href.replace(/\/api\/iam\/v1\/login$/,""):`${m.origin}`,V=await fetch(`${U}/api/iam/v1/users/${G}/mfa/validate`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userUid:G,code:ae.trim()})}),H=await V.json();if(!V.ok||!H?.success)throw new Error(H?.message||"Failed to validate your MFA code.");n&&n(He,X)}catch(m){const U=m instanceof Error?m.message:String(m);ee(U),Ce(U,{variant:"error"})}finally{$e(!1)}}},[w,Ce,X,P,Se,ae,He,G,n]),Y=s.useCallback(m=>{m.key==="Enter"&&(G?Le():Oe())},[G,Oe,Le]),Ke=Z||P||w;return t.jsxs(g,{className:"signin-input-theme-scope",display:"flex",alignItems:_||ve||!k?"flex-start":"center",justifyContent:"center",minHeight:_||ve||!k?"auto":"100vh",bg:_?"transparent":"canvas.default",color:"fg.default",py:_?0:ve?2:4,children:[t.jsx(Ha,{}),t.jsxs(g,{width:"100%",maxWidth:440,p:0,children:[!_&&t.jsxs(t.Fragment,{children:[t.jsxs(g,{display:"flex",alignItems:"center",gap:2,mb:ve?2:3,justifyContent:"center",children:[it,t.jsx(xt,{sx:{fontSize:3},children:C})]}),t.jsx(z,{as:"p",sx:{fontSize:1,color:"fg.muted",mb:ve?2:3,textAlign:"center"},children:p})]}),(xe||A)&&t.jsxs(g,{mb:3,textAlign:"center",children:[xe&&t.jsx(xt,{as:"h3",sx:{fontSize:2,mb:1},children:xe}),A&&t.jsx(z,{sx:{color:"fg.muted",fontSize:1},children:A})]}),!G&&(f||x||y)&&t.jsxs(t.Fragment,{children:[f&&t.jsx(K,{block:!0,size:"large",leadingVisual:Me==="github"?()=>t.jsx(Jt,{size:"small"}):za,disabled:Ke,onClick:()=>R(en.github),sx:{mt:Pe,maxWidth:te,mx:"auto"},children:"Sign in with GitHub"}),x&&t.jsx(K,{block:!0,size:"large",leadingVisual:Me==="google"?()=>t.jsx(Jt,{size:"small"}):_a,disabled:Ke,onClick:()=>R(en.google),sx:{mt:Pe,maxWidth:te,mx:"auto"},children:"Sign in with Google"}),y&&t.jsx(K,{block:!0,size:"large",leadingVisual:Me==="linkedin"?()=>t.jsx(Jt,{size:"small"}):Na,disabled:Ke,onClick:()=>R(en.linkedin),sx:{mt:Pe,maxWidth:te,mx:"auto"},children:"Sign in with LinkedIn"})]}),!G&&!ye&&t.jsx(g,{mt:3,display:"flex",justifyContent:"center",children:t.jsx(K,{leadingVisual:nn,size:"large",block:!0,disabled:w||P||Z,onClick:()=>Tt(!0),sx:{maxWidth:te,mx:"auto"},children:yt})}),!G&&ye&&t.jsxs(g,{mt:4,children:[t.jsxs(se,{required:!0,sx:{mb:3},children:[t.jsx(se.Label,{children:"Username"}),t.jsx(bt,{autoFocus:!0,block:!0,placeholder:"Your username",value:X,disabled:P||w,onChange:m=>jt(m.target.value),onKeyDown:Y})]}),t.jsxs(se,{required:!0,sx:{mb:3},children:[t.jsx(se.Label,{children:"Password"}),t.jsx(bt,{block:!0,placeholder:"Your password",type:Ue?"text":"password",value:L,disabled:P||w,onChange:m=>kt(m.target.value),onKeyDown:Y,trailingAction:t.jsx(bt.Action,{onClick:()=>It(!Ue),disabled:P||w,icon:Ue?La:Fa,"aria-label":Ue?"Hide password":"Show password",sx:{color:"var(--fgColor-muted)"}})})]}),t.jsxs(g,{display:"flex",alignItems:"center",justifyContent:"space-between",mt:3,children:[t.jsx(K,{variant:"primary",disabled:P||w||!X||!L,onClick:Oe,children:P?"Signing in…":"Sign In"}),oe&&t.jsx(Js,{as:"button",sx:{fontSize:1,cursor:w?"not-allowed":"pointer",background:"none",border:"none",opacity:w?.6:1},onClick:()=>{w||P||rt()},children:at})]})]}),G&&t.jsxs(t.Fragment,{children:[t.jsxs(se,{required:!0,sx:{mb:3,mt:2},children:[t.jsx(se.Label,{children:"MFA Code"}),t.jsx(bt,{autoFocus:!0,block:!0,placeholder:"Your MFA code",value:ae,disabled:P||w,onChange:m=>Et(m.target.value),onKeyDown:Y})]}),t.jsx(K,{variant:"primary",block:!0,disabled:P||w||!ae.trim(),onClick:Le,sx:{maxWidth:te,mx:"auto"},children:P?"Validating…":"Validate MFA Code"})]}),we&&t.jsx(z,{sx:{color:"danger.fg",fontSize:1,mt:3,display:"block"},children:we}),ue&&t.jsxs(g,{mt:4,pt:4,textAlign:"center",borderTop:"1px solid",borderColor:"border.muted",children:[t.jsx(xt,{as:"h3",sx:{fontSize:2,mb:2},children:wt}),t.jsx(z,{as:"p",sx:{color:"fg.muted",fontSize:1,mb:3},children:an}),t.jsx(g,{display:"flex",justifyContent:"center",children:t.jsx(K,{variant:"primary",size:"large",leadingVisual:qs,disabled:w||P,onClick:le,children:be})})]}),u&&o&&t.jsxs(t.Fragment,{children:[t.jsxs(g,{display:"flex",alignItems:"center",gap:2,my:3,children:[t.jsx(g,{flex:1,height:"1px",bg:"border.default"}),t.jsx(z,{sx:{fontSize:0,color:"fg.muted"},children:"or"}),t.jsx(g,{flex:1,height:"1px",bg:"border.default"})]}),t.jsx(K,{block:!0,leadingVisual:nn,disabled:w||P||Z,onClick:()=>ke(!0),sx:{maxWidth:te,mx:"auto"},children:"Sign in with an API Key"}),je&&t.jsx(g,{role:"dialog","aria-modal":"true","aria-labelledby":"signin-api-key-title",onKeyDown:m=>{m.key==="Escape"&&re()},onClick:re,position:"fixed",inset:0,zIndex:200,p:3,bg:"canvas.backdrop",display:"flex",alignItems:"center",justifyContent:"center",children:t.jsxs(g,{as:"form",onClick:m=>m.stopPropagation(),onSubmit:m=>{m.preventDefault(),Te()},width:"min(560px, 100%)",p:3,borderRadius:2,border:"1px solid",borderColor:"border.default",bg:"canvas.overlay",color:"fg.default",boxShadow:"shadow.large",children:[t.jsx(xt,{id:"signin-api-key-title",sx:{fontSize:2,mb:2},children:"Enter your API Key"}),t.jsxs(se,{required:!0,children:[t.jsx(se.Label,{children:"API Key"}),t.jsx(Qs,{block:!0,required:!0,autoFocus:!0,placeholder:"Paste your API key here",value:pe,onInput:m=>De(m.currentTarget.value),ref:me})]}),t.jsxs(g,{mt:3,display:"flex",justifyContent:"flex-end",gap:2,children:[t.jsx(K,{type:"button",onClick:re,children:"Cancel"}),t.jsx(K,{type:"submit",variant:"primary",disabled:!pe.trim(),children:"Authenticate"})]})]})})]})]})]})};function Wa(n){const{agentId:o,instructions:i,model:r,frontendTools:d,inference:p,subagents:v,sharing:c,onSubagentEvent:f,modeEffect:x}=n;return{type:"browser-vercel-ai",endpoint:"",agentId:o,enableConfigQuery:!1,options:{instructions:i,model:r,frontendTools:d,inference:p,subagents:v,sharing:c,onSubagentEvent:f,modeEffect:x}}}const ss=eo((n,o)=>({pending:void 0,suggest:(i,r)=>{const d=i.trim();d&&n({pending:{text:d,submit:r?.submit??!1,nonce:(o().pending?.nonce??0)+1}})},consume:()=>n({pending:void 0})})),Ka=({state:n})=>to[n];class Ga extends Error{constructor(o,i){super(i),this.status=o,this.name="RuntimeRefusal"}status}function Ya({baseUrl:n,getAccessToken:o,fetch:i}){const r=n.replace(/\/+$/,""),d=(f={})=>{const x=o();return{...f,...x?{Authorization:`Bearer ${x}`}:{}}},p=async f=>{throw new Ga(f.status,oo(f.status,f.statusText,await ao(f)))};return{json:async(f,x="GET",y)=>{const u=await i(`${r}${f}`,{method:x,headers:d({Accept:"application/json",...y===void 0?{}:{"Content-Type":"application/json"}}),...y===void 0?{}:{body:JSON.stringify(y)}});return u.ok?await u.json():p(u)},stream:async(f,x,{onEvent:y,signal:u},ue="POST")=>{const O=await i(`${r}${f}`,{method:ue,headers:d({"Content-Type":"application/json",Accept:"text/event-stream"}),body:JSON.stringify(x),signal:u});if(!O.ok)return p(O);await io(O,y)},refused:p,headers:d,root:r,fetcher:i}}const W=n=>`/api/v1/apps/sessions/${encodeURIComponent(n)}`;function Ja(n){const{json:o,stream:i,fetcher:r,headers:d,refused:p,root:v}=Ya(n);return{serverUrl:v,accessToken:()=>n.getAccessToken(),start:(c,f)=>i("/api/v1/apps/sessions",{agent:c.agent,...c.deploymentUid?{deployment_uid:c.deploymentUid}:{},...c.appUid?{app_uid:c.appUid}:{},...c.version?{version:c.version}:{},...c.session?{session:c.session}:{},opener:c.opener},f),message:(c,f,x)=>i(`${W(c)}/messages`,{text:f},x),changeSettings:(c,f,x)=>i(`${W(c)}/settings`,{values:f},x,"PUT"),resume:(c,f,x)=>i(`${W(c)}/resume`,{agent:f},x),stop:c=>o(`${W(c)}/stop`,"POST"),end:c=>o(`${W(c)}/end`,"POST"),describe:c=>o(W(c)),described:async c=>so(await o(W(c))),list:(c={})=>{const f=new URLSearchParams;for(const[y,u]of Object.entries(c))u!==""&&u!==void 0&&u!==!1&&f.set(y,String(u));const x=f.toString();return o(`/api/v1/apps/sessions${x?`?${x}`:""}`)},swap:(c,f)=>o(`${W(c)}/agent`,"POST",{agent:f}),clone:(c,f={})=>o(`${W(c)}/clone`,"POST",{up_to_turn:f.upToTurn??null,agent:f.agent??null,title:f.title??""}),exportFile:async(c,f="")=>{const x=await r(`${v}${W(c)}/export${f?`?format=${encodeURIComponent(f)}`:""}`,{method:"GET",headers:d()});return x.ok?x.text():p(x)},importFile:async(c,f={})=>{const x=new URLSearchParams;f.agent&&x.set("agent",f.agent),f.format&&x.set("format",f.format);const y=x.toString(),u=await r(`${v}/api/v1/apps/sessions/import${y?`?${y}`:""}`,{method:"POST",headers:d({"Content-Type":"application/x-ndjson"}),body:c});return u.ok?await u.json():p(u)},rename:(c,f)=>o(`${W(c)}/title`,"PUT",{title:f}),archive:(c,f)=>o(`${W(c)}/archived`,"PUT",{archived:f}),messages:async c=>no((await o(`${W(c)}/messages`)).messages)}}function qa({agentName:n,sandboxStillRuns:o=!1,temporary:i=!0,onSignedIn:r,onSignUp:d}){const{configuration:p}=rs(),v=s.useCallback(c=>{ro.getState().checkIAMToken(c),r?.()},[r]);return t.jsx(g,{height:"100%",minHeight:0,overflowY:"auto",bg:"canvas.default",px:4,py:4,children:t.jsxs(g,{maxWidth:440,mx:"auto",children:[t.jsxs(g,{display:"flex",alignItems:"center",justifyContent:"center",gap:2,color:"attention.fg",mb:2,children:[t.jsx(nn,{size:20}),t.jsx(z,{sx:{fontSize:2,fontWeight:"semibold",color:"fg.default"},children:i?"This demo runs on a shared key":"Your key has expired"})]}),t.jsxs(z,{as:"p",sx:{fontSize:1,color:"fg.muted",textAlign:"center",mb:3},children:[i?`${n??"The agent"} has used the time this key allows. Sign in to point your own agent at it, use your own data, and drop the time limit.`:`${n??"The agent"} stopped because your session ran out.`,o?" Your notebook is still running in this page.":""]}),i&&t.jsxs(g,{display:"flex",flexDirection:"column",alignItems:"center",gap:2,mb:3,"data-anonymous-key-refresh":"",children:[t.jsx(z,{sx:{fontSize:1,color:"fg.muted",textAlign:"center"},children:"Or keep trying without an account: refreshing the page gives this demo a new key, and starts the conversation over."}),t.jsx(K,{leadingVisual:lo,onClick:()=>{typeof window<"u"&&window.location.reload()},children:"Refresh the page for a new key"})]}),t.jsx(Da,{hideHero:!0,fillHeight:!1,calloutTitle:"Sign in to keep going",github:!0,google:!0,linkedin:!0,socialSignInNavigationTarget:typeof window>"u"?void 0:`${window.location.pathname}${window.location.search}`,loginUrl:p?.iamUrl?`${p.iamUrl}/api/iam/v1/login`:void 0,onSignIn:v,onSignUp:d})]})})}const Qa="https://r1.datalayer.run";function Xa(n=!0){const{configuration:o}=rs(),i=sn(c=>c.token),r=o?.aiInferenceUrl||Qa,d=co(r,n&&!i),p=i||d.token,v=s.useMemo(()=>({inferenceUrl:r,token:p||void 0}),[r,p]);return{inference:v,needsSignIn:uo(v),anonymous:d,inferenceUrl:r}}const Za={name:"general-purpose",description:"A capable generalist for a task none of the specialists covers: research, reasoning, drafting, checking.",instructions:"You are a capable general-purpose assistant. Carry out the task you are given completely and report the result plainly, saying what you could not do."};function os(n){const o=n?.subagents;if(!o)return[];const i=(o.subagents??[]).map(r=>{const d=r.ref?fo(r.ref):void 0;return{name:r.name,description:r.description||d?.description||r.name,instructions:r.instructions??d?.systemPrompt,model:r.model??d?.model??o.defaultModel,icon:d?.icon}});return o.includeGeneralPurpose?[...i,Za]:i}function ei(n){return n.replace(/^datalayer_/,"").replace(/_lexical$/,"")}function ti(n){const o=ei(n);return/^executeCodeIn(Notebook|Document)$/.test(o)||/^(read|list)[A-Z]/.test(o)}function ni(n,o){return n.filter(i=>o?.has(i.name)||ti(i.name))}function si(n,o){const i=r=>o&&r.value.id===`${o}-tools`?0:r.value.id==="notebook-tools"?1:2;return n.map((r,d)=>({entry:r,index:d,rank:i(r)})).sort((r,d)=>r.rank-d.rank||r.index-d.index).map(r=>r.entry)}function oi(n,o,i){if(!i||!n.endsWith("-tools"))return!1;const r=n.slice(0,-6);return o.has(r)&&r!==i}const ai={type:"object",properties:{}};function ii(n,o){const i=new Set(n.toolset);return n.commands.filter(r=>i.has(r.name)).map(r=>({name:r.name,description:r.description,parameters:r.parameters??ai,location:"frontend",handler:async d=>{if(!o)throw new Error(`${r.name}: the ${n.plugin??n.id} plugin is not mounted on this page.`);const p=Object.keys(d??{}).length>0?d:void 0,v=await o.executeCommand(r.command,p);return v===void 0?{ok:!0,command:r.command,argument:p}:v}}))}function ps(n,o){return n.flatMap(i=>ii(i,o))}function ri(){const n=po(),o=fs();return s.useMemo(()=>ps(o,n),[o,n])}function li(n){const o=n?.app_instance;if(!o||typeof o!="object")return"";const i=o.deployment_uid;return typeof i=="string"?i.trim():""}function ci(n,o,i){return n||!o?n:{id:i,messages:[]}}function di(n){const o=(new URLSearchParams(n).get("session")??"").trim();if(!o)return"";if(!/^[A-Za-z0-9_-]{8,128}$/.test(o))throw new Error(`?session=${o} names no session: a session uid is 8 to 128 letters, digits, hyphens or underscores.`);return o}function ui({facts:n}){if(!n)return null;const o=mo(n);return t.jsxs(g,{display:"inline-flex",alignItems:"center",gap:2,"data-session-state":n.state,children:[t.jsx(ho,{size:"small",variant:n.state==="open"?"accent":n.state==="paused"?"attention":"secondary",children:go(n)}),o?t.jsx(z,{sx:{fontSize:0,color:"fg.muted"},"data-session-lineage":"",children:o}):null]})}function fi({facts:n,turn:o,context:i}){const r=B(ls),d=cs(r,n,"turn");return!n||d.length===0||o<1?null:t.jsx(g,{display:"inline-flex",gap:1,"data-turn-actions":o,children:d.map(p=>t.jsx(K,{size:"small",variant:"invisible","data-turn-action":p.id,onClick:()=>{Promise.resolve(p.run(n,{...i,atTurn:o})).catch(v=>i.say(String(v.message??v)))},children:p.label},p.id))})}function pi({uid:n,describe:o,context:i}){const r=B(ls),[d,p]=s.useState(void 0),[v,c]=s.useState(!1),[f,x]=s.useState(""),[y,u]=s.useState(void 0),ue={...i,show:i.show??u,say:k=>{x(k),i.say(k)}},O=s.useCallback(k=>{c(k),k&&n&&o(n).then(p,()=>p(void 0))},[o,n]);if(!n||r.length===0)return null;const w=cs(r,d);return t.jsxs(t.Fragment,{children:[t.jsxs(qt,{open:v,onOpenChange:O,children:[t.jsx(qt.Anchor,{children:t.jsx(ds,{icon:Ba,"aria-label":"Session actions",variant:"invisible",size:"small","data-testid":"session-actions"})}),t.jsx(qt.Overlay,{width:"small",children:t.jsxs(st,{children:[w.length===0?t.jsx(st.Item,{disabled:!0,children:d?"Nothing applies to this session now.":"Reading the session…"}):w.map(k=>t.jsx(st.Item,{"data-session-action":k.id,onSelect:()=>{d&&Promise.resolve(k.run(d,ue)).catch(_=>ue.say(String(_.message??_)))},children:k.label},k.id)),f?t.jsxs(t.Fragment,{children:[t.jsx(st.Divider,{}),t.jsx(st.Item,{disabled:!0,"data-testid":"session-actions-said",children:f})]}):null]})})]}),y?t.jsx(us,{title:y.title,onClose:()=>u(void 0),width:"large",children:t.jsx(g,{"data-session-panel":"",children:y.render()})}):null]})}const as={confirm:"Switch",cancel:"Keep it"};function mi({question:n,onPick:o}){const[i,r]=s.useState(n.options[0]?.id??""),[d,p]=s.useState("");s.useEffect(()=>{let c=!0;if(!n.says||!i){p("");return}return n.says(i).then(f=>c&&p(f),()=>c&&p("")),()=>{c=!1}},[i,n]);const v=n.options.find(c=>c.id===i);return t.jsx(us,{title:n.title,onClose:()=>o(void 0),width:"medium",footerButtons:[{buttonType:"default",content:as.cancel,onClick:()=>o(void 0)},{buttonType:"primary",content:as.confirm,disabled:!i,onClick:()=>o(i||void 0)}],children:t.jsxs(g,{display:"grid",gap:3,"data-session-choose":"",children:[t.jsxs(se,{children:[t.jsx(se.Label,{children:n.title}),t.jsx(Qn,{value:i,onChange:c=>r(c.target.value),block:!0,children:n.options.map(c=>t.jsx(Qn.Option,{value:c.id,children:c.label},c.id))})]}),v?.description?t.jsx(z,{sx:{fontSize:1,color:"fg.muted"},children:v.description}):null,d?t.jsx(z,{as:"p",sx:{m:0,fontSize:1,fontStyle:"italic"},"data-session-choose-says":"",children:d}):null]})})}const hi="var(--theme-accent)";function ms({face:n,size:o}){return typeof n=="string"?t.jsx(xo,{emoji:n,size:o,label:""}):t.jsx(t.Fragment,{children:n})}function gi({face:n,size:o,state:i}){const r=i==="thinking"||i==="working",d=i==="paused";return t.jsxs(g,{as:"span","aria-hidden":!0,"data-presence":i,position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:o+8,height:o+8,flexShrink:0,fontSize:o,lineHeight:1,children:[t.jsx(g,{as:"span",position:"absolute",inset:0,borderRadius:"50%",boxShadow:d?"none":`0 0 0 2px ${hi}`,border:d?"2px dashed":"none",borderColor:"border.default",opacity:r||i==="waiting"||d?.9:0,transition:"opacity var(--theme-motion-status, 0ms) var(--theme-motion-easing, ease)",animation:r?"loopPresenceBreath 1.8s ease-in-out infinite":"none",reducedMotion:{animation:"none"},sx:{"@keyframes loopPresenceBreath":{"0%, 100%":{transform:"scale(0.92)",opacity:.35},"50%":{transform:"scale(1.06)",opacity:.9}}}}),t.jsx(g,{as:"span",display:"inline-flex",opacity:d?.55:1,filter:d?"grayscale(0.6)":"none",transition:"opacity var(--theme-motion-status, 0ms) var(--theme-motion-easing, ease)",children:t.jsx(ms,{face:n,size:o})})]})}function xi({state:n}){return t.jsx(z,{role:"status","aria-live":"polite","data-presence-line":n,sx:{fontSize:0,color:n==="waiting"?"fg.default":"fg.muted",fontWeight:n==="waiting"?"semibold":"normal",whiteSpace:"nowrap",flexShrink:0},children:Ka({state:n})})}const bi=on(void 0),vi=on(""),Si=on({}),de="",yi=1400,is=parseInt($a["--loop-face-large"],10);function Ii({workspace:n}){const o=bo(),i=vo(),r=s.useRef(null),d=s.useRef(void 0),{setViewControls:p}=n,v=s.useRef(n.setThread);v.current=n.setThread;const c=s.useCallback(()=>{const e=r.current?.thread();return e&&v.current?.(e),e},[]),[f,x]=s.useState(null),y=So(),u=y.getConfig(yo),ue=u?.placeholder||o.placeholder,O=u?.defaultSurface??"notebook",w=y.getConfig(wo),[k,_]=s.useState(de),xe=s.useRef(!1),A=B(Co),yt=B(jo),wt=B(ko),be=B(To)[0]?.value,Q=Qt(be?.promptStance??bi)??be?.prompt,fe=B(Io),at=Ro(fe[0]?.value),oe=s.useRef(at);oe.current=at;const Pe=s.useRef(""),te=B(Eo),ve=s.useMemo(()=>Ao(()=>te.reduce((e,a)=>({...e,...a.value.extras.value}),{})),[te]),C=Qt(te.length>0?ve:Si),it=s.useRef(new Set),Se=Po(Pa,n),X=!Se.allowed,jt=X?Se.reason??"Chat is unavailable for this sandbox":void 0,[L,kt]=s.useState(!1),[ye,Tt]=s.useState(!1),[Ue,It]=s.useState(!1),[P,$e]=s.useState({open:!1,pendingApproval:!1}),Z=Uo(L,P,u?.presence?.paused===!0),Be=u?.presence?.onPresence;s.useEffect(()=>{Be?.(Z),oe.current?.setPresence(Z)},[Be,Z]);const Me=s.useRef(u?.presence?.onSaying);Me.current=u?.presence?.onSaying;const Ve=s.useRef({answering:!1}),G=s.useCallback(e=>{r.current=e,Tt(!!e)},[]),Rt=s.useCallback(e=>{const{open:a,pendingApproval:l}=$o(e);$e(Ee=>Ee.open===a&&Ee.pendingApproval===l?Ee:{open:a,pendingApproval:l});const b={saying:Oo(e),answering:Mo(e)},h=Ve.current;(h.saying?.id!==b.saying?.id||h.saying?.text!==b.saying?.text||h.answering!==b.answering)&&(Ve.current=b,Me.current?.(b));const q=oe.current;if(!q)return;q.items(e);const F=new Set(["complete","completed","done","error","failed","cancelled","canceled","rejected","denied","stopped"]),ne={insertcell:"adding a cell",updatecell:"editing a cell",runcell:"running a cell",deletecells:"removing cells",readallcells:"reading the notebook",readcell:"reading a cell",executecode:"running code",insertblock:"adding a block",updateblock:"editing a block",runblock:"running a block",readdocument:"reading the document"};let S;for(let Ee=e.length-1;Ee>=0;Ee-=1){const gt=e[Ee];if(typeof gt.toolName=="string"&>.toolCallId){F.has(String(gt.status).toLowerCase())||(S=gt);break}}if(!S){q.activity(void 0);return}const Re=S.toolName.toLowerCase().replace(/^datalayer_/,"").replace(/_lexical$/,"").replace(/[^a-z]/g,""),Ws=ne[Re]??`using ${S.toolName}`;q.activity(`${Pe.current||"The agent"} is ${Ws}…`)},[]),ae=s.useRef(C);ae.current=C;const Et=s.useCallback(e=>{Ts(e),oe.current?.usage(e),ae.current.onUsage?.(e)},[]),He=s.useCallback(e=>{kt(e),e||oe.current?.end("done")},[]),At=s.useCallback(e=>{const a=oe.current;if(!a)return;let l=-1;for(let h=e.length-1;h>=0;h-=1)if(e[h].role==="user"){l=h;break}const b=e.slice(l+1).filter(h=>h.role==="assistant").map(Lo).filter(h=>h.trim().length>0).join(`
|
|
29
|
-
|
|
30
|
-
`);a.assistant(b)},[]),we=s.useRef([]),ee=s.useRef(!1),Ce=s.useRef(void 0),je=s.useRef(void 0),ke=s.useRef(void 0),pe=B(Fo),De=s.useRef(pe);De.current=pe;const me=s.useCallback((e,a)=>{if(je.current)return je.current;const l=ke.current;ke.current=void 0;const b=zo(De.current.map(F=>F.value),l?{...a??{},voice:l}:a),h=b?.loop;if(ee.current&&h?.files&&h.files.length>0){const F=Ce.current;if(!F)return"A file is given to an application running on a runtime: run it on Datalayer or on your machine to give it one.";let ne;try{ne=h.files.map(S=>({file:No(String(S.name??"")),base64:_o(String(S.data_url??""))}))}catch(S){return S instanceof Error?S.message:String(S)}F.execute(Bo(ne)).then(S=>{if(!S.success){x(`The files could not be put in the sandbox: ${S.error??"it failed"}.`);return}me(`${e}
|
|
31
|
-
|
|
32
|
-
${Vo(ne.map(Re=>Re.file))}`,{...b,loop:Object.fromEntries(Object.entries(h).filter(([Re])=>Re!=="files"))})});return}oe.current?.begin(e,c());const q=r.current?.send;if(!q){we.current.push([e,b]);return}q(e,b)},[c]);s.useEffect(()=>{p(ye?{busy:L,stop:r.current?.stop,newChat:r.current?.newChat,send:me}:null)},[L,ye,p,me]),s.useEffect(()=>()=>p(null),[p]),s.useEffect(()=>n.prompts.subscribe(me),[n.prompts,me]),s.useEffect(()=>{if(!ye||we.current.length===0)return;const e=we.current.splice(0,we.current.length);for(const[a,l]of e)c(),r.current?.send(a,l)},[ye,c]);const We=s.useRef(!1),ie=s.useCallback(async e=>{x(null);const a=await Ho(ae.current,e);if(a){a.sent?Ze(""):x(a.refused);return}We.current||(We.current=!0,w?.firstPromptHook?.());const l=await n.submit(e);if(!l.handled){x(l.reason??null);return}Ze(""),l.result?.content&&x(l.result.content)},[n,w?.firstPromptHook]),R=s.useMemo(()=>A.find(e=>e.value.surfaceId===k)?.value,[A,k]),re=s.useCallback(e=>{xe.current=!0,_(e)},[]);s.useEffect(()=>Do(re),[re]),s.useEffect(()=>{Wo(A.map(e=>e.value.surfaceId))},[A]),s.useEffect(()=>{Ko(k&&k!==de?k:Ma)},[k]);const Te=s.useMemo(()=>O===de||O==="none"?void 0:A.find(e=>e.value.surfaceId===O),[A,O]);s.useEffect(()=>{xe.current||!Te||ot(Te.value,n)&&_(O)},[Te,n,O]);const[le,rt]=s.useState(null),Oe=s.useRef(null),Le=u?.fullScreenTopOffset??0,{fullScreen:Y,usingApi:Ke,toggle:m,topOffsetPx:U}=Go(Oe,{forceOverlay:!!Le,topOffset:Le}),[V,H]=s.useState(!1),Ge=s.useRef(!1);s.useEffect(()=>{!L||Ge.current||Y||(Ge.current=!0,H(!0))},[L,Y]),s.useEffect(()=>{Y&&H(!1)},[Y]),s.useEffect(()=>{R&&!ot(R,n)&&(rt(R.surfaceId),_(de))},[R,n]);const lt=s.useMemo(()=>{if(le)return A.find(e=>e.value.surfaceId===le)?.value;if(!xe.current&&k===de)return Te?.value},[A,le,k,Te]);s.useEffect(()=>{if(!le||k!==de)return;const e=A.find(a=>a.value.surfaceId===le);e&&ot(e.value,n)&&(rt(null),_(le))},[A,k,le,n]);const E=n.agentId?.trim()||"default",$=Yo(n.sandbox.target??"local");ee.current=$;const j=Jo(),ce=Qt(j?.selected??vi),I=j?.members.find(e=>e.id===ce),rn=B(qo)[0]?.value,Pt=rn?.specId,M=Xn(I?.specId??E)??(Pt?Xn(Pt):void 0),Ye=I?void 0:rn,ln=$&&!I?Aa(Pt,M):void 0;Pe.current=I?.name??M?.name??E;const cn=B(Qo),dn=C.hiddenOpeners,un=C.hideOpeners,Ut=C.openers,$t=s.useMemo(()=>{if(un)return[];const e=new Set(dn??[]),a=S=>e.size===0?S:S.filter(Re=>!e.has(Re.text));if(Ut)return a(Ut);const l=cn.flatMap(S=>S.value.suggestions);if(l.length>0)return a(l);const b=a(M?.suggestions??[]),h=a(j?.team.suggestions??[]);if(h.length===0)return b;const q=new Set(h.map(S=>S.text)),F=j?.team.name??"Team",ne=I?.name??M?.name??E;return[...h.map(S=>({...S,group:F})),...b.filter(S=>!q.has(S.text)).map(S=>({...S,group:ne}))]},[cn,j,M,I,E,dn,un,Ut]),ct=s.useMemo(()=>$t.map(e=>({title:e.summary??e.text,message:e.message??e.text,group:e.group})),[$t]),Mt=Ne(M?.icon),J=u?.presence,hs=Ne(j?.team.icon),fn=B(Xo),dt=s.useMemo(()=>{const e=[],a=new Map,l=new Set,b=new Set(A.map(h=>h.value.surfaceId));for(const h of si(fn,R?.surfaceId)){if(oi(h.value.id,b,R?.surfaceId))continue;let q;try{q=h.value.tools(n)}catch(F){console.warn(`[loop] frontend tools from '${h.plugin}' failed:`,F);continue}for(const F of q){const ne=a.get(F.name);if(ne){console.warn(`[loop] frontend tool '${F.name}' from '${h.plugin}' is shadowed by the one from '${ne}'.`);continue}a.set(F.name,h.plugin),e.push(F),h.value.chatView&&l.add(F.name)}}for(const h of C.frontendTools??[])a.has(h.name)||(a.set(h.name,"chat-extras"),e.push(h),l.add(h.name));return R?e:ni(e,l)},[fn,n.surfaceId,n.agentId,C.frontendTools,R?.surfaceId,A]),Ot=ri(),Je=s.useMemo(()=>{if(Ot.length===0)return dt;const e=new Set(dt.map(a=>a.name));return[...dt,...Ot.filter(a=>!e.has(a.name))]},[dt,Ot]),pn=fs(),Lt=C.agentToolBundles,gs=s.useMemo(()=>{const e=C.frontendTools??[];if(!Lt?.length)return C.frontendTools;const a=ps(pn.filter(b=>Lt.includes(b.id)),y),l=new Set(e.map(b=>b.name));return[...e,...a.filter(b=>!l.has(b.name))]},[C.frontendTools,Lt,pn,y]);Ce.current=$&&Je.some(e=>e.name===Zo)?y.getOutput(vt)?.sandbox:void 0;const T=ea(n.sandbox,n.serverUrl),qe=s.useMemo(()=>Ja({baseUrl:T??"",getAccessToken:()=>d.current,fetch:(e,a)=>fetch(e,a)}),[T]),mn=B(ta),xs=s.useMemo(()=>mn.filter(e=>e.value.composer).map(e=>({name:e.value.name,description:e.value.description})),[mn]),bs=s.useMemo(()=>{if(!j||!I)return os(M).map(l=>({name:l.name,description:l.description,icon:Ne(l.icon)}));const e=j.members.map(l=>({name:l.name,description:l.description,emoji:l.emoji,icon:Ne(l.icon),disabled:l.id===I.id,disabledReason:l.id===I.id?`You are already talking to ${l.name}`:void 0})),a=Zn(j.team,I.id).filter(l=>!j.members.some(b=>b.name===l.name)).map(l=>({name:l.name,description:l.description,icon:Ne(l.icon)}));return[...e,...a]},[j,I,M]),{inference:hn,anonymous:vs}=Xa($),Ss=sn(e=>e.user),Ft=$&&vs.status==="expired",gn=!Ss,Qe=na();je.current=Qe.disabled?Qe.disableReason||"This conversation is closed here.":void 0;const zt=T===void 0?sa(n.sandbox,o):void 0,Xe=X||Ft||!!ln||!!zt||Qe.disabled,xn=Ft?gn?o.demoKeyExpired:o.keyExpired:ln??zt??jt??(Qe.disabled?Qe.disableReason:void 0),[_t,Ze]=s.useState(""),[bn]=oa(),et=s.useMemo(()=>u?.voice?aa(u.voice,bn):void 0,[u?.voice,bn]),[ys,ws]=s.useState(!1),[Cs,vn]=s.useState(),ut=Cs??Ye?.model??M?.model??n.model??"",Fe=ia(),Sn=s.useRef(Fe),yn=s.useRef(ce),wn=s.useRef(Fe);wn.current=Fe,s.useEffect(()=>{yn.current!==ce&&(yn.current=ce,Sn.current=wn.current,vn(void 0))},[ce]);const js=Fe&&Fe!==Sn.current?Fe:null,[ks,Ts]=s.useState(),Is=js??ks??null,Rs=Xt(Ae.inpromptMenu),Cn=Xt(Ae.promptAction),jn=Xt(Ae.chatHeader),Es=s.useMemo(()=>j?.members.map(e=>({id:e.id,name:e.name,description:e.description,icon:Ne(e.icon)}))??[],[j]),Ie=ss(e=>e.pending),[kn,As]=s.useState(0);s.useEffect(()=>ra(()=>As(e=>e+1)),[]),s.useEffect(()=>{Ie&&(Ze(Ie.text),ss.getState().consume(),Ie.submit&&ie(Ie.text))},[Ie]);const Tn=y.getConfig(vt)?.datalayerCreatePayload,D=!!(Ye?.createPayload?.app_spec||Tn?.app_spec),Nt=li(Tn),Ps=sn(e=>e.token),Bt=y.getConfig(vt)?.datalayerVisitors,Us=la(Bt),$s=y.getConfig(vt)?.embedToken,he=Bt?Us.token:$s||Ps;d.current=he||void 0;const Ms=s.useMemo(()=>ca(u?.voice,he||void 0),[u?.voice,he]),ge=!!(Nt||Bt);if(ge&&!D)throw new Error("A deployment’s page runs its application: its host gave no app_spec.");const[In]=s.useState(da),[Vt,Os]=s.useMemo(()=>{try{return[di(typeof window>"u"?"":window.location.search),""]}catch(e){return["",e instanceof Error?e.message:String(e)]}},[]),[Rn,Ls]=s.useState(void 0),N=s.useMemo(()=>Rn??ci(u?.thread??(Vt&&D?{id:Vt,messages:[],fromRuntime:!0}:void 0),Nt,In),[Rn,u?.thread,Vt,D,Nt,In]),[ze,En]=s.useState(null),Fs=!!(N?.fromRuntime&&ze?.given!==N.id);s.useEffect(()=>{if(!N?.fromRuntime||!D||!T)return;let e=!0;return(async()=>{let a="";for(let l=0;l<4&&e;l+=1)try{const b=await ua({agentBaseUrl:T,agentId:E,uid:N.id,token:he});e&&En({given:N.id,thread:{...N,fromRuntime:!1,messages:b}});return}catch(b){a=b instanceof Error?b.message:String(b),await new Promise(h=>setTimeout(h,1500))}e&&En({given:N.id,thread:{id:fa(),messages:[],onStarted:N.onStarted},said:es.notOpened(a)})})(),()=>{e=!1}},[N?.id,N?.fromRuntime,D,T,E,he]);const Ht=N?.fromRuntime?ze?.given===N.id?ze.thread:void 0:N,ft=n.thread||Ht?.id||"",[An,Pn]=s.useState(void 0),[zs,Un]=s.useState(0);s.useEffect(()=>{if(!D||!T||!ft||L)return;let e=!0;return qe.described(ft).then(a=>e&&Pn(a),()=>e&&Pn(void 0)),()=>{e=!1}},[D,T,ft,L,zs,qe]);const[$n,Mn]=s.useState(Os),[On,Ln]=s.useState(null),Dt=s.useRef(null),Wt=s.useRef(null),Fn=s.useRef(null),zn=s.useMemo(()=>({client:qe,say:e=>{Mn(e),Un(a=>a+1)},openThread:e=>{Ls({id:e,messages:[],fromRuntime:!0}),Un(a=>a+1)},download:(e,a,l)=>{const b=URL.createObjectURL(new Blob([a],{type:l})),h=document.createElement("a");h.href=b,h.download=e,h.click(),URL.revokeObjectURL(b)},choose:e=>new Promise(a=>{Dt.current=a,Ln(e)}),pickFile:e=>new Promise(a=>{const l=Fn.current;if(!l){a(void 0);return}Wt.current=a,l.accept=e,l.value="",l.click()})}),[qe]),Kt=s.useMemo(()=>$?Wa({agentId:I?.specId??E,instructions:pa(M,Ye?.instructions),model:ut||void 0,inference:hn,frontendTools:Je,subagents:j&&I?Zn(j.team,I.id):os(M),sharing:j?.sharing,onSubagentEvent:e=>Ua.getState().appendSubagentEvent(e),modeEffect:Ye?.modeEffect}):T!==void 0?{type:"ag-ui",endpoint:D?`${T}/api/v1/apps/agents/${encodeURIComponent(E)}/ag-ui/`:`${T}/api/v1/ag-ui/${E}/`,...D&&he?{authToken:he}:{},...D?{uiSocket:`${T.replace(/^http/,"ws")}/api/v1/apps/ui`,uiFiles:`${T}/api/v1/apps/agents/${encodeURIComponent(E)}/files`,appSessions:`${T}/api/v1/apps/sessions`,...ge?{ownRoutesOnly:!0}:{}}:{},agentId:E,configEndpoint:`${T}/api/v1/configure`,enableConfigQuery:!0}:void 0,[E,$,hn,I,Je,j,M,Ye,ut,T,D,he,ge]),pt=ma(!$,Kt?.type==="ag-ui"?Kt.configEndpoint:void 0,void 0,E),tt=ha(),mt=ga(E),[_n,Gt]=s.useState(void 0),[_s,Ns]=s.useState(void 0);s.useEffect(()=>{if($||T===void 0)return;const e=xa(T,E,ge);if(!e){Gt([]);return}let a=!1;return fetch(e).then(l=>l.ok?l.json():null).then(l=>{a||(Gt(l?ba(l):[]),Ns(l?va(l):void 0))}).catch(()=>{a||Gt([])}),()=>{a=!0}},[T,E,$,ge]);const Bs=s.useMemo(()=>Sa(_n,()=>Object.values(ya).filter(e=>e.available&&wa(e)).map(e=>({id:e.id,name:e.name,provider:e.provider}))),[_n]),Nn=s.useMemo(()=>{const e=pt.data?.builtinTools??[],a=new Set(e.map(l=>l.name));return{runtime:e,frontend:Je.filter(l=>!a.has(l.name)).map(l=>({id:l.name,name:l.name}))}},[pt.data?.builtinTools,Je]),Bn=s.useMemo(()=>new Set((tt.data?.skills??[]).filter(e=>e.status==="enabled"||e.status==="loaded").map(e=>e.id)),[tt.data]),Vs=s.useCallback(async e=>{if(ge)throw new Error("A deployment’s chat does not switch its runtime’s model.");vn(e),!($||T===void 0)&&await fetch(`${T}/api/v1/configure/inference/provider`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({model:e})}).catch(()=>{})},[T,$,ge]),Vn=u?.promptPlacement==="bottom-chat",Hs=u?.promptPlacement==="floating",_e=u?.promptPlacement==="top",nt=u?.hidePrompt===!0||C.hidePrompt===!0,Ds={onSend:()=>{ie(_t)},input:_t,setInput:Ze,focusTrigger:Ie||kn?(Ie?.nonce??0)+kn:void 0,placement:Hs||Q==="floating"||Q==="floating-top"||Q==="floating-bottom"?"floating":"docked",floatingAnchor:Q==="floating-top"?"top":"bottom",isLoading:L,onStop:()=>n.viewControls.stop?.(),placeholder:xn??C.sendInstead?.says??ue,typingSuggestions:$t.map(e=>e.text),suggestions:ct,disableInputPrompt:Xe,connectionConfirmed:!Xe,interim:ys,padding:_e||Q==="floating-top"||Q==="floating-bottom"||Q==="docked-top"?2:3,promptVariant:"lexical",autoFocus:u?.autoFocusPrompt??!0,mentionableAgents:bs,promptCommands:xs,headerContent:Rs.length>0?t.jsx(St,{slot:Ae.inpromptMenu,props:{workspace:n}}):void 0,footerExtras:Cn.length>0||et&&et.input!=="off"?t.jsxs(t.Fragment,{children:[Cn.length>0?t.jsx(St,{slot:Ae.promptAction,props:{workspace:n}}):null,et&&et.input!=="off"?t.jsx(Ca,{voice:et,input:_t,setInput:Ze,disabled:Xe,speaking:Ue,onStopSpeaking:()=>r.current?.stopSpeaking?.(),playbackLevel:()=>r.current?.voiceLevel?.()??0,running:L,onStopRun:()=>(r.current?.interrupt??r.current?.stop)?.(),onInterrupted:()=>r.current?.markInterrupted(),onInterimChange:ws,answers:!!(u?.voice?.output&&u.voice.output!=="off"&&u.voice.speechUrl),onSpoken:e=>{ke.current=e},send:(e,a)=>{ke.current=a,ie(e)}}):null]}):void 0,showAgentsMenu:!J,showInlineAgentsMenu:!1,agents:Es,selectedAgentId:ce,onSelectAgent:e=>j?.select(e),showTokenUsage:C.showTokenUsage??u?.showTokenUsage??!0,showContextRing:!0,agentUsage:Is??void 0,showModelSelector:!J&&!ge,models:Bs,decisions:_s,selectedModel:ut,onModelSelect:e=>{Vs(e)},showToolsMenu:!J,availableTools:Nn.runtime,availableFrontendTools:Nn.frontend,mcpServers:pt.data?.mcpServers??[],mcpStatusData:C.mcpStatusData??void 0,showSkillsMenu:!J,skills:tt.data?.skills??[],skillsLoading:tt.isLoading,enabledSkills:Bn,onToggleSkill:e=>Bn.has(e)?mt.disableSkill(e):mt.enableSkill(e),onToggleAllSkills:(e,a)=>e.forEach(l=>a?mt.enableSkill(l):mt.disableSkill(l)),codemodeEnabled:C.codemodeEnabled??!1,onToggleCodemode:C.onToggleCodemode,isA2AProtocol:!1,hasConfigData:!!pt.data,hasSkillsData:!!tt.data},Hn=yt[0]?.value.Component,Yt=wt[0]?.value.Component,Dn=!u?.hideHeader&&!!Yt,ht=Hn?t.jsx(Hn,{workspace:n,composer:Ds}):null,Wn=A.length>0&&u?.showSurfaceSelector!==!1?t.jsx(wi,{surfaces:A.map(e=>e.value),active:R?.surfaceId??lt?.surfaceId??de,onChange:re,workspace:n}):null,Kn=t.jsxs(t.Fragment,{children:[A.map(e=>{const a=e.value,l=R?.surfaceId===a.surfaceId;return l||it.current.has(a.surfaceId)||ot(a,n)?(it.current.add(a.surfaceId),t.jsx(g,{sx:l?{flex:"1 1 0",minWidth:0,minHeight:0}:{position:"absolute",inset:0,visibility:"hidden",pointerEvents:"none",zIndex:-1},children:t.jsx(ja,{load:a.load,props:{surfaceId:a.surfaceId,workspace:n},fallback:t.jsxs(tn,{children:["Loading ",a.title,"…"]}),errorFallback:h=>t.jsxs(tn,{children:[a.title," failed to load: ",h.message]})})},a.surfaceId)):null}),!R&<?t.jsx(g,{flex:"1 1 0",minWidth:0,minHeight:0,children:t.jsxs(tn,{children:["Starting ",lt.title,"…"]})}):null]}),Gn=t.jsx(t.Fragment,{children:t.jsxs(g,{flex:_e&&R?"0 0 34%":"1 1 0",maxWidth:_e&&R?460:void 0,minWidth:0,minHeight:0,display:"flex",flexDirection:"column",borderLeft:R?"1px solid":void 0,borderColor:"border.default",position:"relative",children:[C.errorBanner?t.jsx(g,{flexShrink:0,px:3,py:2,fontSize:1,borderBottom:"1px solid",bg:C.errorBanner.variant==="warning"?"attention.subtle":"danger.subtle",color:C.errorBanner.variant==="warning"?"attention.fg":"danger.fg",borderColor:C.errorBanner.variant==="warning"?"attention.muted":"danger.muted",children:C.errorBanner.message}):null,ze?.said&&ze.given===N?.id?t.jsx(z,{as:"p",role:"status",sx:{m:0,px:3,py:2,fontSize:1,color:"fg.muted"},children:ze.said}):null,$n?t.jsxs(g,{display:"flex",alignItems:"baseline",gap:2,px:3,py:2,fontSize:1,color:"fg.muted",role:"status","data-session-said":"",children:[t.jsx(z,{sx:{flex:1},children:$n}),t.jsx(K,{size:"small",variant:"invisible",onClick:()=>Mn(""),children:"Dismiss"})]}):null,On?t.jsx(mi,{question:On,onPick:e=>{Ln(null),Dt.current?.(e),Dt.current=null}}):null,t.jsx("input",{ref:Fn,type:"file",hidden:!0,"data-session-file":"",onChange:async e=>{const a=e.target.files?.[0],l=a?await a.text():void 0;Wt.current?.(l),Wt.current=null}}),t.jsx(g,{flex:"1 1 auto",minHeight:0,display:"flex",children:Fs?t.jsx(z,{as:"p",role:"status",sx:{m:0,p:3,fontSize:1,color:"fg.muted"},children:es.opening}):t.jsx(ka,{themeVariant:u?.themeVariant,themeOverrides:u?.themeOverrides,colorMode:u?.colorMode,thread:Ht,voice:Ms,disabled:Xe,disableReason:xn,protocol:Kt,frontendTools:$?void 0:gs,initialModel:ut||void 0,title:J?.name??I?.name??M?.name??E,description:J?.welcome??M?.description,brandIcon:J?.face?t.jsx(gi,{face:J.face,size:20,state:Z}):t.jsx(Mt,{size:20}),headerContent:J&&!zt?t.jsx(xi,{state:Z}):void 0,emptyState:{icon:J?.face?t.jsx("span",{"aria-hidden":!0,style:{fontSize:is,lineHeight:1},children:t.jsx(ms,{face:J.face,size:is})}):t.jsx(Mt,{size:48}),title:J?.name??I?.name??M?.name??E,...j&&I?{sections:[{group:j.team.name,icon:t.jsx(hs,{size:48}),title:j.team.name,subtitle:j.team.description},{group:I.name,icon:t.jsx(Mt,{size:32}),title:I.name,subtitle:M?.description}]}:null},suggestions:_e||be||u?.suggestionLabels===!1?[]:ct,showHeader:Dn,headerButtons:{showNewChat:u?.headerButtons?.newChat??!1,showClear:u?.headerButtons?.clear??!1},renderHeader:Yt?e=>t.jsx(Yt,{workspace:n,header:n.chatViewModes?{...e,chatViewMode:n.chatViewModes.value,onChatViewModeChange:n.chatViewModes.onChange,offeredViewModes:n.chatViewModes.offered}:e}):void 0,showInformation:!0,headerActions:t.jsxs(g,{display:"inline-flex",alignItems:"center",gap:2,children:[n.chatHeaderActions,D&&T?t.jsxs(t.Fragment,{children:[t.jsx(ui,{facts:An}),t.jsx(pi,{uid:ft||void 0,describe:e=>qe.described(e),context:zn})]}):null,jn.length>0?t.jsx(St,{slot:Ae.chatHeader,props:{workspace:n}}):null,t.jsx(ds,{icon:Y?Ta:Ia,"aria-label":Y?"Exit full screen":"Enter full screen",variant:"invisible",size:"small",onClick:()=>{H(!1),m()},sx:V?{"@keyframes dla-fullscreen-hint":{"0%, 100%":{opacity:1},"50%":{opacity:.4}},"&&":{bg:`color-mix(in srgb, ${i.primary} 16%, transparent)`,boxShadow:`inset 0 0 0 1.5px ${i.primary}`,animation:`dla-fullscreen-hint ${yi}ms ease-in-out infinite`},"@media (prefers-reduced-motion: reduce)":{"&&":{animation:"none"}}}:void 0})]}),showInput:!1,onSendReady:G,notebookToolSurfacesId:R?void 0:n.surfaceId,showTurnFooter:C.showTokenUsage??u?.showTokenUsage??!0,onContextSnapshot:Et,onLoadingChange:He,renderMessageFooter:D&&T?(e,a)=>e.role==="user"?t.jsx(fi,{facts:An,turn:a.turn,context:zn}):null:void 0,onSpeakingChange:It,onItemsChange:At,onDisplayItemsChange:Rt,enableStreaming:!0},Ht?.id)}),!Dn&&jn.length>0?t.jsx(g,{hidden:!0,children:t.jsx(St,{slot:Ae.chatHeader,props:{workspace:n}})}):null,Vn&&!nt?ht:null]})}),Yn=u?.suggestionLabels!==!1&&ct.length>0?t.jsx(g,{"aria-label":o.suggestedPrompts,display:"flex",flexWrap:"wrap",gap:2,px:2,pb:"6px",children:ct.map(e=>t.jsx(g,{as:"button",type:"button",title:e.message,disabled:L||Xe,onClick:()=>{ie(e.message)},appearance:"none",font:"inherit",fontSize:0,fontWeight:"semibold",lineHeight:1.25,px:"10px",py:"5px",width:ts,flex:`0 0 ${ts}px`,borderRadius:"999px",border:"1px solid",bg:"canvas.subtle",whiteSpace:"nowrap",sx:{borderColor:"border.default",color:"fg.default",cursor:"pointer","&:hover:not(:disabled)":{borderColor:"accent.fg",color:"accent.fg"},"&:disabled":{opacity:.5,cursor:"default"}},children:t.jsx(Ra,{title:e.title,maxWidth:"100%",sx:{minWidth:0},children:e.title})},e.title))}):null,Jn=f?t.jsx(g,{flex:"0 0 auto",px:3,py:2,borderTop:"1px solid",borderColor:"border.default",bg:"canvas.subtle",fontSize:1,maxHeight:"40%",overflowY:"auto",children:f}):null;return t.jsxs(g,{ref:Oe,sx:{height:"100%",minHeight:0,display:"flex",flexDirection:"column",position:"relative",...Y?{bg:"canvas.default"}:null,...Y&&!Ke.current?{position:"fixed",top:U,right:0,bottom:0,left:0,height:"auto",zIndex:1e3}:null},children:[be?t.jsx(be.Component,{workspace:n,editors:Kn,hasEditor:!!R,transcript:Gn,prompt:nt?null:ht,chips:nt?null:Yn,picker:Wn,transient:Jn}):t.jsxs(t.Fragment,{children:[_e&&!nt?t.jsxs(g,{flex:"0 0 auto",borderBottom:"1px solid",borderColor:"border.default",children:[ht,Yn]}):null,Wn,t.jsxs(g,{flex:"1 1 auto",minHeight:0,display:"flex",position:"relative",children:[Kn,Gn]}),Jn,Vn||nt||_e?null:ht]}),Ft?t.jsx(g,{position:"absolute",inset:0,zIndex:5,bg:"canvas.default",display:"flex",flexDirection:"column",minHeight:0,children:t.jsx(qa,{agentName:I?.name??M?.name,sandboxStillRuns:$,temporary:gn,onSignedIn:()=>Ea.getState().clear()})}):null]})}function wi({surfaces:n,active:o,onChange:i,workspace:r}){const d=[...n].sort((p,v)=>(p.order??100)-(v.order??100));return t.jsxs(g,{flex:"0 0 auto",display:"flex",alignItems:"center",gap:2,px:3,py:2,borderBottom:"1px solid",borderColor:"border.default",children:[t.jsx(z,{sx:{fontSize:0,color:"fg.muted"},children:"Beside the chat"}),t.jsxs(Zt,{"aria-label":"Editor beside the chat",size:"small",children:[t.jsx(Zt.Button,{selected:o===de,onClick:()=>i(de),children:"Chat"}),d.map(p=>{const v=ot(p,r),c=v?void 0:p.unavailableReason?.(r)??"Not available right now";return t.jsx(Zt.Button,{selected:o===p.surfaceId,"aria-disabled":!v,title:c??p.title,leadingIcon:p.icon,onClick:()=>{v&&i(p.surfaceId)},children:p.title},p.surfaceId)})]})]})}function tn({children:n}){return t.jsx(g,{height:"100%",display:"flex",alignItems:"center",justifyContent:"center",color:"fg.muted",fontSize:1,px:3,textAlign:"center",children:n})}export{Ii as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{cC as C,cD as I,cE as h,bB as T,a1 as U,cF as k,r as p,cG as B,cH as E,cI as G}from"../datalayer-app-main.js";const N=["datalayer","kagent","agentcore"];function b(f){const o=f?.app_spec;if(!o||typeof o!="object")return;const e=f?.app_instance??{},t=typeof e.app_uid=="string"&&e.app_uid?e.app_uid:void 0,r=typeof e.deployment_uid=="string"&&e.deployment_uid?e.deployment_uid:void 0,n=e.runtime_engine;if(n!==void 0&&n!==""&&!N.includes(n))throw new Error(`The application's instance runs on ${String(n)}: one of ${N.join(", ")} (runtime_engine).`);if(n==="agentcore")throw new Error("An application deployed on AWS AgentCore is not launched on a runtime: AgentCore starts its agent runtime itself.");const i=n||void 0;return{appSpec:o,...t?{appUid:t}:{},...r?{deploymentUid:r}:{},...i?{runtimeEngine:i}:{}}}function w(){const o=C().getConfig(I),e=o?.datalayerAgentSpecId??h,t=o?.datalayerCreatePayload,r=o?.datalayerVisitors,n=o?.datalayerKept,i=r?.url??n?.url,a=T(),u=U(a?.target??k)==="datalayer",l=t?.app_spec?.id,[d,g]=p.useState({});p.useEffect(()=>{if(g({}),!r||!u)return;if(typeof l!="string"||!l){g({error:"A conversation without an account runs an application: none was given."});return}let s=!0;return B(r,l).then(()=>{s&&g({ready:!0})}).catch(_=>{s&&g({error:_ instanceof Error?_.message:String(_)})}),()=>{s=!1}},[r?.url,r?.app,r?.inferenceUrl,l,u]);const A=typeof t?.name=="string"?t.name:e,m=t?.transport==="vercel-ai"?"vercel-ai":"ag-ui",j=p.useMemo(()=>({name:A,protocol:m,agentSpecId:e,model:E[e]?.model,description:E[e]?.description,...t?{createPayload:t}:{}}),[e,A,m,t]),S=p.useMemo(()=>b(t),[t]),{runtime:c,status:v,error:y}=G({agentSpecId:e,agentConfig:j,...S?{appLaunch:S}:{},variant:"cloud-pydanticai",autoStart:u&&!i,autoCreateAgent:u&&!i});return p.useEffect(()=>{if(!(!a||!u)){if(r){if(d.error){a.setState("error",d.error);return}if(!d.ready){a.setState("starting");return}}if(i){const s=r?void 0:n?.jupyter;a.report({variant:"datalayer",sandbox_running:!!s,...s?{jupyter_url:s.url,jupyter_token:s.token}:{},agent_base_url:i});return}if(y){a.setState("error",y);return}if(!c?.jupyterBaseUrl){a.setState(v==="error"?"error":"starting");return}a.report({variant:"datalayer",sandbox_running:!!c.serviceManager,jupyter_url:c.jupyterBaseUrl,jupyter_token:c.serviceManager?.serverSettings?.token,kernel_id:c.kernelId,agent_base_url:c.agentBaseUrl})}},[a,u,c,v,y,i,n,r,d]),null}export{w as DatalayerAgentBridge,w as default};
|