@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.
Files changed (333) hide show
  1. package/dist-embed/chunks/{AgentDetails-DC7O2VWb.js → AgentDetails-CFUOZ-Bq.js} +1 -1
  2. package/dist-embed/chunks/{AgentDetailsDialog-BTJCl-o-.js → AgentDetailsDialog-0OQcRHgy.js} +1 -1
  3. package/dist-embed/chunks/{AgentInspector-BXqYY8g-.js → AgentInspector-CMjveNA0.js} +1 -1
  4. package/dist-embed/chunks/{AgentInspectorDialog-dRHZ1p73.js → AgentInspectorDialog-B_ii1_F3.js} +1 -1
  5. package/dist-embed/chunks/{CellSidebarExtension-DXPIz0Km.js → CellSidebarExtension-vXN5wge0.js} +7 -7
  6. package/dist-embed/chunks/ChatView-BGIbssMm.js +32 -0
  7. package/dist-embed/chunks/{CollapsiblePlugin-BPlfrDQU.js → CollapsiblePlugin-DyobyCLm.js} +1 -1
  8. package/dist-embed/chunks/{ContextPie-BHiGwDpa.js → ContextPie-CY7-2OcN.js} +1 -1
  9. package/dist-embed/chunks/DatalayerAgentBridge-X6uBhrBZ.js +1 -0
  10. package/dist-embed/chunks/{DeckComponent-jvb83Q__.js → DeckComponent-B5IMw4r1.js} +2 -2
  11. package/dist-embed/chunks/{DocumentView-BrdFnTVh.js → DocumentView-IqGVIpnF.js} +1 -1
  12. package/dist-embed/chunks/{EphemeralDocument-CkPQKyfy.js → EphemeralDocument-DZ8Wk5du.js} +1 -1
  13. package/dist-embed/chunks/{EphemeralNotebook-CiQIC3MG.js → EphemeralNotebook-B3ZMORn1.js} +2 -2
  14. package/dist-embed/chunks/{ExcalidrawComponent-D6Cr_b0Z.js → ExcalidrawComponent-9ant-hu6.js} +1 -1
  15. package/dist-embed/chunks/{ExcalidrawModal-Bso7oDbl.js → ExcalidrawModal-92wiYWnH.js} +1 -1
  16. package/dist-embed/chunks/{JupyterLexicalExtension-DuD7IV6j.js → JupyterLexicalExtension-DbMi7Dam.js} +9 -9
  17. package/dist-embed/chunks/{KernelVariables-CXQagESp.js → KernelVariables-lzdkfkh4.js} +2 -2
  18. package/dist-embed/chunks/{LexicalToolRegistry-LfEpCrfD.js → LexicalToolRegistry-Bd1yXjzB.js} +2 -2
  19. package/dist-embed/chunks/{NotebookSkeleton-CvO9WylK.js → NotebookSkeleton-BaU6vrsb.js} +1 -1
  20. package/dist-embed/chunks/{NotebookToolSurfaces-B9fkzQNR.js → NotebookToolSurfaces-Gk8Hsn0c.js} +1 -1
  21. package/dist-embed/chunks/{NotebookToolbar-D36duUxK.js → NotebookToolbar-CO_qaXBp.js} +1 -1
  22. package/dist-embed/chunks/{NotebookView-BrdHwtKH.js → NotebookView-B5jqU279.js} +1 -1
  23. package/dist-embed/chunks/{Output-D9cwH5rg.js → Output-DtWAAuKd.js} +1 -1
  24. package/dist-embed/chunks/{SandboxDetailsDialog-BYgLjg3W.js → SandboxDetailsDialog-4cOtcyub.js} +1 -1
  25. package/dist-embed/chunks/{SchemaForm-B3qMIWMy.js → SchemaForm-CulhQBil.js} +1 -1
  26. package/dist-embed/chunks/{SheetTabs-BR72mzuo.js → SheetTabs-Bc8bBVQ1.js} +3 -3
  27. package/dist-embed/chunks/{SpreadsheetPreviewView-RA8ASTBV.js → SpreadsheetPreviewView-nFAjWUZ5.js} +1 -1
  28. package/dist-embed/chunks/{SpreadsheetView-BfScdA-X.js → SpreadsheetView-CBC_KFON.js} +1 -1
  29. package/dist-embed/chunks/{Toolbar-BAjGB6b-.js → Toolbar-ByUGXe7J.js} +1 -1
  30. package/dist-embed/chunks/{WidgetVariableView-7lvDcxCg.js → WidgetVariableView-CE4nO4my.js} +1 -1
  31. package/dist-embed/chunks/{YouTubePlugin-BbjCzaT_.js → YouTubePlugin-DS4rJSGB.js} +1 -1
  32. package/dist-embed/chunks/{abnfDiagram-VCTEODGH-COr9T6op.js → abnfDiagram-VCTEODGH-BAFsXu3t.js} +1 -1
  33. package/dist-embed/chunks/{abnfDiagram-VCTEODGH-Ct4NEcIK.js → abnfDiagram-VCTEODGH-B_sHPJUN.js} +1 -1
  34. package/dist-embed/chunks/{abnfDiagram-VCTEODGH-BRIqJ785.js → abnfDiagram-VCTEODGH-Nk_v6YcC.js} +1 -1
  35. package/dist-embed/chunks/{ar-SA-G6X2FPQ2-D4M2b5Lr.js → ar-SA-G6X2FPQ2-oGeNqqRN.js} +1 -1
  36. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-D4oRtyHS.js → architectureDiagram-5GKGNRK7-1ZoJLZwi.js} +1 -1
  37. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-C7u5kHjb.js → architectureDiagram-5GKGNRK7-CSwlFsek.js} +1 -1
  38. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-BjY5iY3I.js → architectureDiagram-5GKGNRK7-CXh0a2fl.js} +1 -1
  39. package/dist-embed/chunks/{az-AZ-76LH7QW2-Rn7oINhz.js → az-AZ-76LH7QW2-Ckdua9fG.js} +1 -1
  40. package/dist-embed/chunks/{bg-BG-XCXSNQG7-xztohKe7.js → bg-BG-XCXSNQG7-D0NWa5AJ.js} +1 -1
  41. package/dist-embed/chunks/{blockDiagram-868be97b-CovMH3zl.js → blockDiagram-868be97b-CXF_hory.js} +1 -1
  42. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-CkSMfCfm.js → blockDiagram-I7D4REHJ-C9eqiZJU.js} +1 -1
  43. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-GfTzHDnC.js → blockDiagram-I7D4REHJ-CajpRIdD.js} +1 -1
  44. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-B4X_5qFz.js → blockDiagram-I7D4REHJ-DltT5qVn.js} +1 -1
  45. package/dist-embed/chunks/{bn-BD-2XOGV67Q-C7Ssg1_2.js → bn-BD-2XOGV67Q-CZbU71zu.js} +1 -1
  46. package/dist-embed/chunks/{c4Diagram-3f4bdde3-DjidyC1r.js → c4Diagram-3f4bdde3-CcVl9FWN.js} +1 -1
  47. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-BqdUJ-a0.js → c4Diagram-7LVT6UL2-BHH3V3vI.js} +1 -1
  48. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-BQzLCwYE.js → c4Diagram-7LVT6UL2-Qn3VrAmQ.js} +1 -1
  49. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-CvxA6W4e.js → c4Diagram-7LVT6UL2-gcd6QnFn.js} +1 -1
  50. package/dist-embed/chunks/{ca-ES-6MX7JW3Y-Cr0zd8Z6.js → ca-ES-6MX7JW3Y-CDkEhhvJ.js} +1 -1
  51. package/dist-embed/chunks/{celltoolbartracker-D1C_kGQL.js → celltoolbartracker-BiNbwXlm.js} +1 -1
  52. package/dist-embed/chunks/{chunk-2Q5K7J3B-BU7nuyLy.js → chunk-2Q5K7J3B-BOvbpwkI.js} +1 -1
  53. package/dist-embed/chunks/{chunk-2Q5K7J3B-DTLOUvry.js → chunk-2Q5K7J3B-C2sNsgev.js} +1 -1
  54. package/dist-embed/chunks/{chunk-2Q5K7J3B-0A899Arf.js → chunk-2Q5K7J3B-GG70N9jl.js} +1 -1
  55. package/dist-embed/chunks/{chunk-5VM5RSS4-Bx2V6Nrr.js → chunk-5VM5RSS4-CAAgFs5e.js} +1 -1
  56. package/dist-embed/chunks/{chunk-5VM5RSS4-DXLjroNr.js → chunk-5VM5RSS4-Cle_89ej.js} +1 -1
  57. package/dist-embed/chunks/{chunk-5VM5RSS4-Tu_sNIjZ.js → chunk-5VM5RSS4-FA3LbrKz.js} +1 -1
  58. package/dist-embed/chunks/{chunk-F27PBJKO-DlCzGOX7.js → chunk-F27PBJKO-3X0ZipiC.js} +1 -1
  59. package/dist-embed/chunks/{chunk-F27PBJKO--AK2bGwU.js → chunk-F27PBJKO-Cgut8fat.js} +1 -1
  60. package/dist-embed/chunks/{chunk-F27PBJKO-DH0Y71GT.js → chunk-F27PBJKO-RLRQOyxZ.js} +1 -1
  61. package/dist-embed/chunks/{chunk-IMKFNOWR-D7LtolQ9.js → chunk-IMKFNOWR-BHFcfXrD.js} +1 -1
  62. package/dist-embed/chunks/{chunk-IMKFNOWR-DwaJo6nd.js → chunk-IMKFNOWR-C4ydUPhx.js} +1 -1
  63. package/dist-embed/chunks/{chunk-IMKFNOWR-CAMMjZDn.js → chunk-IMKFNOWR-CbVrj1-B.js} +1 -1
  64. package/dist-embed/chunks/{chunk-JWPE2WC7-B4ZyAymW.js → chunk-JWPE2WC7-Cyj9DtDK.js} +1 -1
  65. package/dist-embed/chunks/{chunk-JWPE2WC7-DAHI-TVh.js → chunk-JWPE2WC7-DIamN27i.js} +1 -1
  66. package/dist-embed/chunks/{chunk-JWPE2WC7-PrapfKnD.js → chunk-JWPE2WC7-DjRj5y1C.js} +1 -1
  67. package/dist-embed/chunks/{chunk-POPQ4Y6H-CPqfpqZP.js → chunk-POPQ4Y6H-B4VehBHR.js} +1 -1
  68. package/dist-embed/chunks/{chunk-POPQ4Y6H-COTyhLEP.js → chunk-POPQ4Y6H-Cz3CE_QJ.js} +1 -1
  69. package/dist-embed/chunks/{chunk-POPQ4Y6H-NHNNgLDe.js → chunk-POPQ4Y6H-P4Z54Nsh.js} +1 -1
  70. package/dist-embed/chunks/{chunk-SVP7TREG-Cs2sH6R-.js → chunk-SVP7TREG-BcAM4zz1.js} +1 -1
  71. package/dist-embed/chunks/{chunk-SVP7TREG-CbTLnK0f.js → chunk-SVP7TREG-BvC6HSBM.js} +1 -1
  72. package/dist-embed/chunks/{chunk-SVP7TREG-dVSPfe2c.js → chunk-SVP7TREG-e7xrbkXt.js} +1 -1
  73. package/dist-embed/chunks/{chunk-TICWLB2K-BB_Y-4ml.js → chunk-TICWLB2K-DXyPfm2K.js} +1 -1
  74. package/dist-embed/chunks/{chunk-TICWLB2K-CfOjQFyb.js → chunk-TICWLB2K-Dq04meN3.js} +1 -1
  75. package/dist-embed/chunks/{chunk-TICWLB2K-87-bxVAe.js → chunk-TICWLB2K-DryI_fVu.js} +1 -1
  76. package/dist-embed/chunks/{chunk-XXDRQBXY-iJemHF_x.js → chunk-XXDRQBXY-Bg1z5wvl.js} +1 -1
  77. package/dist-embed/chunks/{chunk-XXDRQBXY-5ZZJYzFF.js → chunk-XXDRQBXY-DdaBayRJ.js} +1 -1
  78. package/dist-embed/chunks/{chunk-XXDRQBXY-DSsbiqRJ.js → chunk-XXDRQBXY-RiUzxSa_.js} +1 -1
  79. package/dist-embed/chunks/{classDiagram-ZZMXUADV-ClW13A2U.js → classDiagram-ZZMXUADV-DN-XosUZ.js} +1 -1
  80. package/dist-embed/chunks/{classDiagram-ZZMXUADV-CAHeG1gF.js → classDiagram-ZZMXUADV-DTxXqjtH.js} +1 -1
  81. package/dist-embed/chunks/{classDiagram-ZZMXUADV-Vh4RzyKh.js → classDiagram-ZZMXUADV-xUvH8sEw.js} +1 -1
  82. package/dist-embed/chunks/{classDiagram-f62afe4f-CMi22C0U.js → classDiagram-f62afe4f-Dn229LPE.js} +1 -1
  83. package/dist-embed/chunks/{classDiagram-v2-604399ef-C26x9ueJ.js → classDiagram-v2-604399ef-CiWW9MIF.js} +1 -1
  84. package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-ClW13A2U.js → classDiagram-v2-VYDZK3BY-DN-XosUZ.js} +1 -1
  85. package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-CAHeG1gF.js → classDiagram-v2-VYDZK3BY-DTxXqjtH.js} +1 -1
  86. package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-Vh4RzyKh.js → classDiagram-v2-VYDZK3BY-xUvH8sEw.js} +1 -1
  87. package/dist-embed/chunks/{code-block-IT6T5CEO-DYCIn_7v.js → code-block-IT6T5CEO-CLvXlBx2.js} +8 -8
  88. package/dist-embed/chunks/{component-CmnuUtgX.js → component-D0l01bm2.js} +1 -1
  89. package/dist-embed/chunks/{cose-bilkent-JH36ORCC-BgIgDbgt.js → cose-bilkent-JH36ORCC-BYjRJxfr.js} +1 -1
  90. package/dist-embed/chunks/{cose-bilkent-JH36ORCC-ChaVAK2T.js → cose-bilkent-JH36ORCC-DttpaBKc.js} +1 -1
  91. package/dist-embed/chunks/{cose-bilkent-JH36ORCC-BsiPRKfh.js → cose-bilkent-JH36ORCC-KUtlO0wZ.js} +1 -1
  92. package/dist-embed/chunks/{createText-aed3d8b3-B86AevE1.js → createText-aed3d8b3-BoxGA1kU.js} +1 -1
  93. package/dist-embed/chunks/{cs-CZ-2BRQDIVT-G9tBUkZh.js → cs-CZ-2BRQDIVT-D3Tf2yLX.js} +1 -1
  94. package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-Bx_RkYqS.js → cynefinDiagram-5FMLGOSQ-B2ciR9HO.js} +1 -1
  95. package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-bJ9Z5Mhd.js → cynefinDiagram-5FMLGOSQ-CkZtxa_j.js} +1 -1
  96. package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-DriUtMtG.js → cynefinDiagram-5FMLGOSQ-DLxzMI8R.js} +1 -1
  97. package/dist-embed/chunks/{da-DK-5WZEPLOC-91_vyLpq.js → da-DK-5WZEPLOC-8FuM_s_4.js} +1 -1
  98. package/dist-embed/chunks/{dagre-GXQ25YYZ-D3sdZMQI.js → dagre-GXQ25YYZ-B_GD3wQW.js} +1 -1
  99. package/dist-embed/chunks/{dagre-GXQ25YYZ-C-JIsuS8.js → dagre-GXQ25YYZ-BzK8S8ZN.js} +1 -1
  100. package/dist-embed/chunks/{dagre-GXQ25YYZ-DBL7Fy3A.js → dagre-GXQ25YYZ-D1SrKOMG.js} +1 -1
  101. package/dist-embed/chunks/{de-DE-XR44H4JA-Bb9tvIZa.js → de-DE-XR44H4JA-BczLv19p.js} +1 -1
  102. package/dist-embed/chunks/{diagram-S7CK7UJ4-D1nmgrkv.js → diagram-S7CK7UJ4-BFa-cF0f.js} +1 -1
  103. package/dist-embed/chunks/{diagram-S7CK7UJ4-DfneUYZ2.js → diagram-S7CK7UJ4-DD7qiEfG.js} +1 -1
  104. package/dist-embed/chunks/{diagram-S7CK7UJ4-4Qtqvrkr.js → diagram-S7CK7UJ4-DRQoONLl.js} +1 -1
  105. package/dist-embed/chunks/{diagram-UQ7AKVKN-CfcZ1PQb.js → diagram-UQ7AKVKN-CiW_VcOF.js} +1 -1
  106. package/dist-embed/chunks/{diagram-UQ7AKVKN-ADhyCAdr.js → diagram-UQ7AKVKN-D2IdtRtZ.js} +1 -1
  107. package/dist-embed/chunks/{diagram-UQ7AKVKN-1KwF4Mkc.js → diagram-UQ7AKVKN-DonHWSMp.js} +1 -1
  108. package/dist-embed/chunks/{diagram-VSXAHHWV-Cdcv0UHd.js → diagram-VSXAHHWV-BVjz0vRe.js} +1 -1
  109. package/dist-embed/chunks/{diagram-VSXAHHWV-C1l71k44.js → diagram-VSXAHHWV-Cw-PrCH0.js} +1 -1
  110. package/dist-embed/chunks/{diagram-VSXAHHWV-w4XrywKL.js → diagram-VSXAHHWV-DRDfYlTN.js} +1 -1
  111. package/dist-embed/chunks/{diagram-VX7I27RA-BSxXMnjW.js → diagram-VX7I27RA-DwAkBxoG.js} +1 -1
  112. package/dist-embed/chunks/{diagram-VX7I27RA-BNRSlia4.js → diagram-VX7I27RA-UIWotGW-.js} +1 -1
  113. package/dist-embed/chunks/{diagram-VX7I27RA-DY396bQc.js → diagram-VX7I27RA-eXyjCSfi.js} +1 -1
  114. package/dist-embed/chunks/{diagram-Z3DM3KII-Bts1R_lM.js → diagram-Z3DM3KII-C_tHi2zd.js} +1 -1
  115. package/dist-embed/chunks/{diagram-Z3DM3KII-CfBEqPQi.js → diagram-Z3DM3KII-DIayrWqD.js} +1 -1
  116. package/dist-embed/chunks/{diagram-Z3DM3KII-B4sR_460.js → diagram-Z3DM3KII-DRxec16z.js} +1 -1
  117. package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-DeJx0KuC.js → ebnfDiagram-PWID7BFC-CZS5hRDB.js} +1 -1
  118. package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-BCOkfz5d.js → ebnfDiagram-PWID7BFC-DViSeEkV.js} +1 -1
  119. package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-DS3AbLt0.js → ebnfDiagram-PWID7BFC-z6EZsNAn.js} +1 -1
  120. package/dist-embed/chunks/{edges-b2856ca0-CaCZ7ENn.js → edges-b2856ca0-GkzwR7tH.js} +1 -1
  121. package/dist-embed/chunks/{el-GR-BZB4AONW-B5kc3JC5.js → el-GR-BZB4AONW-XmdkMj04.js} +1 -1
  122. package/dist-embed/chunks/{erDiagram-5d81789a-BC4jofcY.js → erDiagram-5d81789a-B-A6M2ym.js} +1 -1
  123. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-CHQgrXAV.js → erDiagram-RLTQ6QDP-BxUZGGsY.js} +1 -1
  124. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-CXED7TDM.js → erDiagram-RLTQ6QDP-DnyCH2Db.js} +1 -1
  125. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-UsFx9ZR6.js → erDiagram-RLTQ6QDP-V_YalCFO.js} +1 -1
  126. package/dist-embed/chunks/{es-ES-U4NZUMDT-CpFB18Kf.js → es-ES-U4NZUMDT-BM8o7VhK.js} +1 -1
  127. package/dist-embed/chunks/{esm-BqqxV5QL.js → esm-Bgc-xY8g.js} +1 -1
  128. package/dist-embed/chunks/{esm-Co3TYtt_.js → esm-C8NQHqRw.js} +1 -1
  129. package/dist-embed/chunks/{eu-ES-A7QVB2H4-CqCALK0Q.js → eu-ES-A7QVB2H4-C92PACcO.js} +1 -1
  130. package/dist-embed/chunks/{fa-IR-HGAKTJCU-BzSY8fri.js → fa-IR-HGAKTJCU-C0v8l3W9.js} +1 -1
  131. package/dist-embed/chunks/{fi-FI-Z5N7JZ37-DPRPVT_v.js → fi-FI-Z5N7JZ37-C5OmBq6V.js} +1 -1
  132. package/dist-embed/chunks/{flowDb-185abca5-DiOj0UBd.js → flowDb-185abca5-DEP1pb38.js} +1 -1
  133. package/dist-embed/chunks/{flowDiagram-1629c991-D2rlxs4P.js → flowDiagram-1629c991-CKDo2Uo8.js} +1 -1
  134. package/dist-embed/chunks/{flowDiagram-HODETNUW-DnphRIev.js → flowDiagram-HODETNUW-BCHMnvj-.js} +1 -1
  135. package/dist-embed/chunks/{flowDiagram-HODETNUW-BAAyHp4o.js → flowDiagram-HODETNUW-DlFftQTx.js} +1 -1
  136. package/dist-embed/chunks/{flowDiagram-HODETNUW-CIEoNVmM.js → flowDiagram-HODETNUW-JbcKRj53.js} +1 -1
  137. package/dist-embed/chunks/{flowDiagram-v2-1d953310-CFBK75mM.js → flowDiagram-v2-1d953310-LUQyiANW.js} +1 -1
  138. package/dist-embed/chunks/{flowchart-elk-definition-6df44142-oM65WKay.js → flowchart-elk-definition-6df44142-C3W5GB7k.js} +1 -1
  139. package/dist-embed/chunks/{fr-FR-RHASNOE6-Cr4lVSvD.js → fr-FR-RHASNOE6-D2EL4poR.js} +1 -1
  140. package/dist-embed/chunks/{ganttDiagram-3b0b3873-onXTRtkk.js → ganttDiagram-3b0b3873-B7mJgJVE.js} +1 -1
  141. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-Hu286RYG.js → ganttDiagram-EL5Y4UJY-CMnOlTLP.js} +1 -1
  142. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-Boj571YL.js → ganttDiagram-EL5Y4UJY-Dh0UlkHT.js} +1 -1
  143. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-BXjqihIe.js → ganttDiagram-EL5Y4UJY-ZBBC8Bv6.js} +1 -1
  144. package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-D-0lvFne.js → gitGraphDiagram-WWUBYQGX-CH3JDxr0.js} +1 -1
  145. package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-Dn83WGOl.js → gitGraphDiagram-WWUBYQGX-DPjPLqu4.js} +1 -1
  146. package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-CVSBq_5E.js → gitGraphDiagram-WWUBYQGX-fWclmxuk.js} +1 -1
  147. package/dist-embed/chunks/{gitGraphDiagram-f01e8bc2-DUmhUEtF.js → gitGraphDiagram-f01e8bc2-CGKGKetD.js} +1 -1
  148. package/dist-embed/chunks/{gl-ES-HMX3MZ6V-CZUw7dN0.js → gl-ES-HMX3MZ6V-YWFm4WxA.js} +1 -1
  149. package/dist-embed/chunks/{he-IL-6SHJWFNN-DaU5Odek.js → he-IL-6SHJWFNN-mX7JSlN-.js} +1 -1
  150. package/dist-embed/chunks/{hi-IN-IWLTKZ5I-BZ84Rooc.js → hi-IN-IWLTKZ5I-D6yhTM4e.js} +1 -1
  151. package/dist-embed/chunks/{hu-HU-A5ZG7DT2-SZiCSe0B.js → hu-HU-A5ZG7DT2-eb6aNn0F.js} +1 -1
  152. package/dist-embed/chunks/{id-ID-SAP4L64H-DrRa3vVi.js → id-ID-SAP4L64H-EhGa_Mrn.js} +1 -1
  153. package/dist-embed/chunks/{index-9bae90f3-OqtwF7zW.js → index-9bae90f3-Mi-C8rGJ.js} +1 -1
  154. package/dist-embed/chunks/{index-DBu0kmO8.js → index-C53VIWpA.js} +10 -10
  155. package/dist-embed/chunks/{index-B0Wuj2eL.js → index-CKrG-XEr.js} +1 -1
  156. package/dist-embed/chunks/{index-DpN8KK6c.js → index-CQzZPse_.js} +1 -1
  157. package/dist-embed/chunks/{index-CEeyR3FZ.js → index-CW9jwmnF.js} +1 -1
  158. package/dist-embed/chunks/{index-JmqWOkdt.js → index-CcDn6aA5.js} +2 -2
  159. package/dist-embed/chunks/{index-FucnjX8K.js → index-Cn1erzsp.js} +4 -4
  160. package/dist-embed/chunks/{index-BeQu6wh3.js → index-Mx7RvmI-.js} +4 -4
  161. package/dist-embed/chunks/{index-qhxI1VzX.js → index-Xpn7qE4M.js} +2 -2
  162. package/dist-embed/chunks/{index-hhftmReh.js → index-ke4HKN0W.js} +1 -1
  163. package/dist-embed/chunks/{index-B6-uQd5L.js → index-mXYl0SDo.js} +2 -2
  164. package/dist-embed/chunks/{index.esm-Bvtnemp7.js → index.esm-DFnCYMX-.js} +1 -1
  165. package/dist-embed/chunks/{index.esm-C6blgTRD.js → index.esm-Qo5C9a62.js} +1 -1
  166. package/dist-embed/chunks/{infoDiagram-27XIBGKW-BMVi2kA7.js → infoDiagram-27XIBGKW-BLbH-ZwT.js} +1 -1
  167. package/dist-embed/chunks/{infoDiagram-27XIBGKW-CIOfWKZS.js → infoDiagram-27XIBGKW-CVdKLCRu.js} +1 -1
  168. package/dist-embed/chunks/{infoDiagram-27XIBGKW-B6mmRg3n.js → infoDiagram-27XIBGKW-DKfKrKV3.js} +1 -1
  169. package/dist-embed/chunks/{infoDiagram-a29d40f1-C176duia.js → infoDiagram-a29d40f1-DtjZgHpG.js} +1 -1
  170. package/dist-embed/chunks/{isEqual-BYxXubsX.js → isEqual-CO9-1hO8.js} +1 -1
  171. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-aoviUwQy.js → ishikawaDiagram-5VMMS53U-0oKH5_3F.js} +1 -1
  172. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-D5ALaQir.js → ishikawaDiagram-5VMMS53U-BBHuXOEP.js} +1 -1
  173. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-pCzmYyRW.js → ishikawaDiagram-5VMMS53U-DIZaJSHk.js} +1 -1
  174. package/dist-embed/chunks/{it-IT-JPQ66NNP-_TEhDIcF.js → it-IT-JPQ66NNP-BEhvmrUK.js} +1 -1
  175. package/dist-embed/chunks/{ja-JP-DBVTYXUO-IJaTVgTb.js → ja-JP-DBVTYXUO-lmsxmH6A.js} +1 -1
  176. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-CDvOmpvU.js → journeyDiagram-3NMN7TZE-DkG1XeCY.js} +1 -1
  177. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-DwMRB_U9.js → journeyDiagram-3NMN7TZE-fkubBGZE.js} +1 -1
  178. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-BwEZ7tUE.js → journeyDiagram-3NMN7TZE-j2SA8xPg.js} +1 -1
  179. package/dist-embed/chunks/{journeyDiagram-95396277-eNxCaz5h.js → journeyDiagram-95396277-CJ_CSiyl.js} +1 -1
  180. package/dist-embed/chunks/{kaa-6HZHGXH3-CTksAiLJ.js → kaa-6HZHGXH3-C2eZOrFk.js} +1 -1
  181. package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-DbA7aOfU.js → kab-KAB-ZGHBKWFO-BtO_Ccgd.js} +1 -1
  182. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-CJ9VIyON.js → kanban-definition-UXKFOSKX-Bfl0iItE.js} +1 -1
  183. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-Ca27l5x1.js → kanban-definition-UXKFOSKX-D1mvDB88.js} +1 -1
  184. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-4HMvq5Ms.js → kanban-definition-UXKFOSKX-DSbwi_qW.js} +1 -1
  185. package/dist-embed/chunks/{kk-KZ-P5N5QNE5-Bdzg30AB.js → kk-KZ-P5N5QNE5-BlIG0olU.js} +1 -1
  186. package/dist-embed/chunks/{km-KH-HSX4SM5Z-Bwn2NP1-.js → km-KH-HSX4SM5Z-Dixy2EU_.js} +1 -1
  187. package/dist-embed/chunks/{ko-KR-MTYHY66A-KUaxlo0q.js → ko-KR-MTYHY66A-CUkVgSOW.js} +1 -1
  188. package/dist-embed/chunks/{ku-TR-6OUDTVRD-DRegsFXo.js → ku-TR-6OUDTVRD-BKl1H1lo.js} +1 -1
  189. package/dist-embed/chunks/{layout-CfByO2og.js → layout-C8rF9YGx.js} +1 -1
  190. package/dist-embed/chunks/{layout-Bww76Fbs.js → layout-CG9LV3Hx.js} +1 -1
  191. package/dist-embed/chunks/{layout-XYFfX1M2.js → layout-DoJGfXjC.js} +1 -1
  192. package/dist-embed/chunks/{lexicalHooks-BtjglRXO.js → lexicalHooks-DClcl3Q8.js} +1 -1
  193. package/dist-embed/chunks/{lib-D7CvuX1J.js → lib-3oZnFGZf.js} +1 -1
  194. package/dist-embed/chunks/{lib-COJY2oKd.js → lib-B9Uql7XT.js} +1 -1
  195. package/dist-embed/chunks/{lib-C2mgrsS1.js → lib-BBoRpP0j.js} +1 -1
  196. package/dist-embed/chunks/{lib-BpltV-0Y.js → lib-BCX_PXlV.js} +1 -1
  197. package/dist-embed/chunks/{lib-DrEcjKb5.js → lib-Bj5kYV-X.js} +1 -1
  198. package/dist-embed/chunks/{lib-csBGF1d0.js → lib-BpgMIewI.js} +2 -2
  199. package/dist-embed/chunks/{lib-CQeoQJWp.js → lib-BuHiJKfL.js} +6 -6
  200. package/dist-embed/chunks/{lib-9S57siQD.js → lib-ByfYxpOp.js} +1 -1
  201. package/dist-embed/chunks/{lib-Dh9o1esj.js → lib-C1F_0rhP.js} +1 -1
  202. package/dist-embed/chunks/{lib-DOnguzJf.js → lib-C3UM0Dbg.js} +1 -1
  203. package/dist-embed/chunks/{lib-CHID83aM.js → lib-C65GpCKu.js} +1 -1
  204. package/dist-embed/chunks/{lib-ox3VOLDA.js → lib-CblY5Fcs.js} +1 -1
  205. package/dist-embed/chunks/{lib-C46CpvHb.js → lib-ClP1grrt.js} +1 -1
  206. package/dist-embed/chunks/{lib-rn9DpcHi.js → lib-D7ZIPOgc.js} +1 -1
  207. package/dist-embed/chunks/{lib-op0DTswa.js → lib-DEmXqC05.js} +1 -1
  208. package/dist-embed/chunks/{lib--J3JPp2K.js → lib-DHfhUiNX.js} +6 -6
  209. package/dist-embed/chunks/{lib-QmOij8gS.js → lib-DdpVsCS-.js} +1 -1
  210. package/dist-embed/chunks/{lib-CjBEbEzm.js → lib-DgCQUDNp.js} +1 -1
  211. package/dist-embed/chunks/{lib-Cpc8Fspj.js → lib-UcItgdUY.js} +1 -1
  212. package/dist-embed/chunks/{lib-PbTUB5SW.js → lib-jE6-GvLb.js} +4 -4
  213. package/dist-embed/chunks/{lt-LT-XHIRWOB4-c6CdaS7u.js → lt-LT-XHIRWOB4-TTj82TW7.js} +1 -1
  214. package/dist-embed/chunks/{lv-LV-5QDEKY6T-D9RognOk.js → lv-LV-5QDEKY6T-DLiLVd-V.js} +1 -1
  215. package/dist-embed/chunks/{mermaid.core-Esvc6Hnq.js → mermaid.core-DNh2XcNw.js} +5 -5
  216. package/dist-embed/chunks/{mermaid.core-S-dRFFrX.js → mermaid.core-YqoEZ53F.js} +3 -3
  217. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-ByNYsSBG.js → mindmap-definition-YA3MSWOX-9Zysg0pA.js} +1 -1
  218. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-Df1_M5n9.js → mindmap-definition-YA3MSWOX-B_htE6P9.js} +1 -1
  219. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-B3dWXyS3.js → mindmap-definition-YA3MSWOX-Bverytf0.js} +1 -1
  220. package/dist-embed/chunks/{mindmap-definition-e4c1d938-OxJ5FL_j.js → mindmap-definition-e4c1d938-BZ0_IMAi.js} +1 -1
  221. package/dist-embed/chunks/{mr-IN-CRQNXWMA-ht3P_mrN.js → mr-IN-CRQNXWMA-CiVi-oiY.js} +1 -1
  222. package/dist-embed/chunks/{my-MM-5M5IBNSE-CsIkhWRp.js → my-MM-5M5IBNSE-DiSnYIcD.js} +1 -1
  223. package/dist-embed/chunks/{nb-NO-T6EIAALU-DJw7Uvbx.js → nb-NO-T6EIAALU-DfSOBb64.js} +1 -1
  224. package/dist-embed/chunks/{nl-NL-IS3SIHDZ-Dcrp-zwB.js → nl-NL-IS3SIHDZ-BF72RX5n.js} +1 -1
  225. package/dist-embed/chunks/{nn-NO-6E72VCQL-DaBAIbM9.js → nn-NO-6E72VCQL-Ck3xjqMu.js} +1 -1
  226. package/dist-embed/chunks/{oc-FR-POXYY2M6-DSdMEDCa.js → oc-FR-POXYY2M6-CEdstZI1.js} +1 -1
  227. package/dist-embed/chunks/{pa-IN-N4M65BXN-BMyPito1.js → pa-IN-N4M65BXN-D8DDwUFn.js} +1 -1
  228. package/dist-embed/chunks/{pegDiagram-XKGWAZYB-kBah6ESG.js → pegDiagram-XKGWAZYB-BKyBaYIN.js} +1 -1
  229. package/dist-embed/chunks/{pegDiagram-XKGWAZYB-BSS-6ffj.js → pegDiagram-XKGWAZYB-JwxbEaY4.js} +1 -1
  230. package/dist-embed/chunks/{pegDiagram-XKGWAZYB-Cp-YO1Nz.js → pegDiagram-XKGWAZYB-pjI6nL6b.js} +1 -1
  231. package/dist-embed/chunks/{percentages-BXMCSKIN-pswfKMt2.js → percentages-BXMCSKIN-CxyBCxgG.js} +6 -6
  232. package/dist-embed/chunks/{pica-9l-d47El.js → pica-DX7g0w-h.js} +1 -1
  233. package/dist-embed/chunks/{pieDiagram-E7YTZNPT-O8OeQHh3.js → pieDiagram-E7YTZNPT-B68DSrPX.js} +1 -1
  234. package/dist-embed/chunks/{pieDiagram-E7YTZNPT-BxyKuocY.js → pieDiagram-E7YTZNPT-Bkr2CIvA.js} +1 -1
  235. package/dist-embed/chunks/{pieDiagram-E7YTZNPT-Bm12iDY2.js → pieDiagram-E7YTZNPT-D7XWQ97B.js} +1 -1
  236. package/dist-embed/chunks/{pieDiagram-c941bede-CIoxBoJu.js → pieDiagram-c941bede-d4RaoKUh.js} +1 -1
  237. package/dist-embed/chunks/{pl-PL-T2D74RX3-CFk8rHgP.js → pl-PL-T2D74RX3-bJIlJVUJ.js} +1 -1
  238. package/dist-embed/chunks/{plugin-NcgdmcAO.js → plugin-CCnESDIv.js} +1 -1
  239. package/dist-embed/chunks/{plugin-BpyrQiv7.js → plugin-CYxMm8BZ.js} +1 -1
  240. package/dist-embed/chunks/{portable-BXor4J0S.js → portable-QzxJi8wl.js} +1 -1
  241. package/dist-embed/chunks/{pt-BR-5N22H2LF-BYlDcalT.js → pt-BR-5N22H2LF-T_zS_1UI.js} +1 -1
  242. package/dist-embed/chunks/{pt-PT-UZXXM6DQ-xXdoFOOb.js → pt-PT-UZXXM6DQ-BGYBI-AZ.js} +1 -1
  243. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-BzjPv9Mo.js → quadrantDiagram-AXDQQJYC-B4R-yitO.js} +1 -1
  244. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-B676z1mV.js → quadrantDiagram-AXDQQJYC-CGpes8qr.js} +1 -1
  245. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-DFY8ZLzp.js → quadrantDiagram-AXDQQJYC-rgXt1vGm.js} +1 -1
  246. package/dist-embed/chunks/{quadrantDiagram-cf8b8fe0-DEYbq8W_.js → quadrantDiagram-cf8b8fe0-5H46snRs.js} +1 -1
  247. package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-_NlqSOsS.js → railroadDiagram-O6MQD6OU-C4f7oKun.js} +1 -1
  248. package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-BrFHqmp2.js → railroadDiagram-O6MQD6OU-CJTiXlK1.js} +1 -1
  249. package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-xlRvlaA2.js → railroadDiagram-O6MQD6OU-DJaPMu7R.js} +1 -1
  250. package/dist-embed/chunks/{renderer-We9CyR7b.js → renderer-CKt61TR-.js} +1 -1
  251. package/dist-embed/chunks/{requirementDiagram-53bda41b-BzE9FWgv.js → requirementDiagram-53bda41b-DuuN6U8q.js} +1 -1
  252. package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-DJ5PUfXx.js → requirementDiagram-BXWQKSXE-C4rko1x6.js} +1 -1
  253. package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-CqWfurTm.js → requirementDiagram-BXWQKSXE-CEpmAL1v.js} +1 -1
  254. package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-Hehk-IFe.js → requirementDiagram-BXWQKSXE-DsV3syx6.js} +1 -1
  255. package/dist-embed/chunks/{ro-RO-JPDTUUEW-e-URCww-.js → ro-RO-JPDTUUEW-BF-LNyWr.js} +1 -1
  256. package/dist-embed/chunks/{ru-RU-B4JR7IUQ-CrXBOpZl.js → ru-RU-B4JR7IUQ-CYsp0VFS.js} +1 -1
  257. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-DSrV5Rcy.js → sankeyDiagram-P5KCCOFB-8-my5aGt.js} +1 -1
  258. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-CTPOOwMI.js → sankeyDiagram-P5KCCOFB-B2FnnI1e.js} +1 -1
  259. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-DUA8-DLK.js → sankeyDiagram-P5KCCOFB-BmOnDwNP.js} +1 -1
  260. package/dist-embed/chunks/{sankeyDiagram-c3ef121a-yZIQ5S7q.js → sankeyDiagram-c3ef121a-CoUNmipD.js} +1 -1
  261. package/dist-embed/chunks/{sequenceDiagram-82a5b84f-AtgiqM7O.js → sequenceDiagram-82a5b84f-CXh2tfZw.js} +1 -1
  262. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-B1cw5Oup.js → sequenceDiagram-WJ2MYXX4-B3OnNwUZ.js} +1 -1
  263. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-CXsr6X8d.js → sequenceDiagram-WJ2MYXX4-DLJTx5HG.js} +1 -1
  264. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-B6CSGaEA.js → sequenceDiagram-WJ2MYXX4-jYhIJWPU.js} +1 -1
  265. package/dist-embed/chunks/{server-extension-D9R-wwz5.js → server-extension-uXAt_Cce.js} +1 -1
  266. package/dist-embed/chunks/{sessions-DdXtI_C1.js → sessions-CmElNrqo.js} +2 -2
  267. package/dist-embed/chunks/{si-LK-N5RQ5JYF-DmJK04-A.js → si-LK-N5RQ5JYF-DPP2zzI4.js} +1 -1
  268. package/dist-embed/chunks/{sizeCapture-INFHLROL-BWyPehjY.js → sizeCapture-INFHLROL-Bw-7LloZ.js} +1 -1
  269. package/dist-embed/chunks/{sizeCapture-INFHLROL-jPyERZ1n.js → sizeCapture-INFHLROL-ClUFT0bL.js} +1 -1
  270. package/dist-embed/chunks/{sizeCapture-INFHLROL-C_RJNTEe.js → sizeCapture-INFHLROL-DKI7jpZK.js} +1 -1
  271. package/dist-embed/chunks/{sk-SK-C5VTKIMK-BDHycW1Q.js → sk-SK-C5VTKIMK-Bsy5tZJ9.js} +1 -1
  272. package/dist-embed/chunks/{sl-SI-NN7IZMDC-Bv9ZQTNb.js → sl-SI-NN7IZMDC-BSN6metY.js} +1 -1
  273. package/dist-embed/chunks/{state-ChvKybRM.js → state-Bvubz6wh.js} +1 -1
  274. package/dist-embed/chunks/{stateDiagram-43e79a5f-CjdmUJOd.js → stateDiagram-43e79a5f-FLMfzXB-.js} +1 -1
  275. package/dist-embed/chunks/{stateDiagram-D77RDMKH-BXnmKNN1.js → stateDiagram-D77RDMKH-2CWWTXaI.js} +1 -1
  276. package/dist-embed/chunks/{stateDiagram-D77RDMKH-CUt1Zkau.js → stateDiagram-D77RDMKH-2sTmMX8Y.js} +1 -1
  277. package/dist-embed/chunks/{stateDiagram-D77RDMKH-CrFujTYb.js → stateDiagram-D77RDMKH-7giqZmW7.js} +1 -1
  278. package/dist-embed/chunks/{stateDiagram-v2-2041ed4f-DFbRZC_o.js → stateDiagram-v2-2041ed4f-D2F_d6ME.js} +1 -1
  279. package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-5Xtf4H1i.js → stateDiagram-v2-MP3YSRHH-BVtW8oDF.js} +1 -1
  280. package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-C0LD6d-h.js → stateDiagram-v2-MP3YSRHH-Bx_0d80j.js} +1 -1
  281. package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-D0VxqcOS.js → stateDiagram-v2-MP3YSRHH-KSrY0YAO.js} +1 -1
  282. package/dist-embed/chunks/{styles-455b33cd-d_tMvz1K.js → styles-455b33cd-Bu2zKHp4.js} +1 -1
  283. package/dist-embed/chunks/{styles-f932cba9-CEfonQZW.js → styles-f932cba9-C9jkvhYd.js} +1 -1
  284. package/dist-embed/chunks/{styles-fcc2142b-CJtnKcrY.js → styles-fcc2142b-DOM8RBzL.js} +1 -1
  285. package/dist-embed/chunks/{subset-shared.chunk-B0WCMaCa.js → subset-shared.chunk-cWEwjmHn.js} +1 -1
  286. package/dist-embed/chunks/{subset-worker.chunk-i0SNRqXr.js → subset-worker.chunk-CoJnEmh6.js} +1 -1
  287. package/dist-embed/chunks/{substates-CqYxDlIh.js → substates-jb_LtnyU.js} +1 -1
  288. package/dist-embed/chunks/{sv-SE-XGPEYMSR-_HPzcZFc.js → sv-SE-XGPEYMSR-DtD64Ekq.js} +1 -1
  289. package/dist-embed/chunks/{svgDrawCommon-148a3cd9-Chk2X9i7.js → svgDrawCommon-148a3cd9-9JymGxYl.js} +1 -1
  290. package/dist-embed/chunks/{swimlanes-42K2YHIH-CMfuNOKB.js → swimlanes-42K2YHIH-BFOVykjS.js} +1 -1
  291. package/dist-embed/chunks/{swimlanes-42K2YHIH-BV3XvQft.js → swimlanes-42K2YHIH-DgPipNZK.js} +1 -1
  292. package/dist-embed/chunks/{swimlanes-42K2YHIH-da8v0JDr.js → swimlanes-42K2YHIH-Dm0fKZOd.js} +1 -1
  293. package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-U1nDoVzD.js → swimlanesDiagram-VR7AAH4N-DQtryFsY.js} +1 -1
  294. package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-CoxoxRv8.js → swimlanesDiagram-VR7AAH4N-DmI51dbU.js} +1 -1
  295. package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-BQ0QVA2n.js → swimlanesDiagram-VR7AAH4N-Nfw6c9qs.js} +1 -1
  296. package/dist-embed/chunks/{ta-IN-2NMHFXQM-Ccvi-lqm.js → ta-IN-2NMHFXQM-DgbGGIjW.js} +1 -1
  297. package/dist-embed/chunks/{th-TH-HPSO5L25-DvAg4Mv1.js → th-TH-HPSO5L25-CCZDC3pr.js} +1 -1
  298. package/dist-embed/chunks/{timeline-definition-24CTP7MA-BEfC9HaT.js → timeline-definition-24CTP7MA-BH6wgq9g.js} +1 -1
  299. package/dist-embed/chunks/{timeline-definition-24CTP7MA-C4dXdolh.js → timeline-definition-24CTP7MA-BHxdIfP8.js} +1 -1
  300. package/dist-embed/chunks/{timeline-definition-24CTP7MA-CJeNJmUn.js → timeline-definition-24CTP7MA-D7CF0GIK.js} +1 -1
  301. package/dist-embed/chunks/{timeline-definition-7545f45a-B9mNe698.js → timeline-definition-7545f45a-D4OzFMpR.js} +1 -1
  302. package/dist-embed/chunks/{tr-TR-DEFEU3FU-DJsjfrja.js → tr-TR-DEFEU3FU-akGa6iYJ.js} +1 -1
  303. package/dist-embed/chunks/{uk-UA-QMV73CPH-3fvexlQA.js → uk-UA-QMV73CPH-t35eBlzl.js} +1 -1
  304. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-BxXmlFlS.js → vennDiagram-4TSXK5OY-CRm97qMj.js} +1 -1
  305. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-Cb7TJzRk.js → vennDiagram-4TSXK5OY-Df2NdsCe.js} +1 -1
  306. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-Bsn5zjyD.js → vennDiagram-4TSXK5OY-jiuY4qr2.js} +1 -1
  307. package/dist-embed/chunks/{vi-VN-M7AON7JQ-BoQ3ayAr.js → vi-VN-M7AON7JQ-xWA8FWTO.js} +1 -1
  308. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-hcToOz3-.js → wardleyDiagram-VM6X3IG4-Dl6htcV4.js} +1 -1
  309. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-D7coqIlJ.js → wardleyDiagram-VM6X3IG4-DvfGuTUK.js} +1 -1
  310. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-DQqVVzTS.js → wardleyDiagram-VM6X3IG4-SCgxQpjj.js} +1 -1
  311. package/dist-embed/chunks/{xychartDiagram-3f383b91-DgRDb1pL.js → xychartDiagram-3f383b91-CpDYNTsR.js} +1 -1
  312. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-9a5I7o20.js → xychartDiagram-S5SC5T6Z-B7z8joDc.js} +1 -1
  313. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-DD72ULmZ.js → xychartDiagram-S5SC5T6Z-CeiEf5TT.js} +1 -1
  314. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-CCp_tU6h.js → xychartDiagram-S5SC5T6Z-fil-wQKb.js} +1 -1
  315. package/dist-embed/chunks/{zh-CN-LNUGB5OW-Dzh0Ni_q.js → zh-CN-LNUGB5OW-D7M8yyYf.js} +1 -1
  316. package/dist-embed/chunks/{zh-HK-E62DVLB3-_1FpSc_d.js → zh-HK-E62DVLB3-DvMmnROR.js} +1 -1
  317. package/dist-embed/chunks/{zh-TW-RAJ6MFWO-CU-R8eF0.js → zh-TW-RAJ6MFWO-DSL_-5li.js} +1 -1
  318. package/dist-embed/datalayer-app-main.js +53 -53
  319. package/lib/apps/apps/visitorToken.d.ts +10 -0
  320. package/lib/apps/apps/visitorToken.js +31 -5
  321. package/lib/apps/embed/element.js +16 -8
  322. package/lib/apps/plugins/agents/DatalayerAgentBridge.js +36 -12
  323. package/lib/apps/plugins/chat/ChatView.js +28 -3
  324. package/lib/chat/base/ChatBase.js +13 -1
  325. package/lib/chat/header/ChatHeaderBase.js +17 -12
  326. package/lib/specs/agents/agents.d.ts +2 -0
  327. package/lib/specs/agents/agents.js +186 -2
  328. package/lib/specs/mcpServers.d.ts +1 -0
  329. package/lib/specs/mcpServers.js +35 -0
  330. package/lib/state/substates/RuntimesState.js +4 -3
  331. package/package.json +1 -1
  332. package/dist-embed/chunks/ChatView-zs95MHcU.js +0 -32
  333. package/dist-embed/chunks/DatalayerAgentBridge-D01Ek4NE.js +0 -1
@@ -0,0 +1,32 @@
1
+ import{a6 as B,fe as Ys,r as s,j as t,gG as Js,gH as qs,cd as Zn,B as g,H as bt,T as z,v as K,du as Jt,fu as nn,gI as se,dn as vt,y as Qs,gJ as Zs,gK as Xs,f4 as eo,gL as to,b1 as no,gM as so,gN as oo,gO as ao,gP as io,gQ as ro,gR as lo,eY as cs,eW as co,dq as uo,eZ as sn,gS as fo,gT as po,gU as mo,gV as ho,gW as ds,gX as us,gY as go,L as xo,gZ as bo,e8 as qt,I as fs,bk as ot,D as ps,g_ as Xn,g$ as vo,h0 as So,E as yo,cC as wo,h1 as Co,h2 as jo,h3 as ko,h4 as To,h5 as Ro,h6 as Io,a1 as Qt,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 Go,hq as Yo,hr as at,hs as Jo,ht as qo,hu as Qo,hv as Zo,hw as es,hx as Xo,hy as Be,hz as ea,hA as ta,cD as St,hB as na,hC as sa,hD as ts,hE as oa,hF as aa,hG as ia,hH as ra,fC as la,hI as Zt,hJ as Pe,hK as ca,hL as da,hM as ua,hN as fa,hO as pa,hP as ns,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 Ca,h_ as ja,h$ as yt,i0 as ka,i1 as Ta,i2 as Ra,i3 as Ia,i4 as Ea,i5 as ss,i6 as Aa,i7 as Pa,i8 as Ua,i9 as on,ia as $a,ib as Ma,fk as Xt,ic as Oa,id as La}from"../datalayer-app-main.js";import{S as Fa,E as za,a as _a}from"./SignInIcon-XIbntAUw.js";import{F as Na,a as Ba,b as Va}from"./LinkedInGreyIcon-eBP5iBjI.js";import{K as Ha}from"./KebabHorizontalIcon-D6AY8pIS.js";function ms(){const n=B(Ys);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"}},os=()=>{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""}},Da=(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},Wa=to`
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
+ `,Ka=({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(eo,{size:24}),github:f=!1,google:x=!1,linkedin:y=!1,apiKey:u=!1,signUp:fe=!0,socialSignInNavigationTarget:L,asDoc:w=!1,fillHeight:k=!0,hideHero:N=!1,calloutTitle:be,calloutDescription:A,passwordToggleLabel:wt="Sign in with a password",signUpTitle:Ct="Don't have an account?",signUpDescription:an="Create a free Datalayer account with your email address.",signUpLabel:ve="Sign up with email",signUpHref:jt="https://datalayer.ai/signup",onSignUp:Q,forgotPasswordHref:pe="/password",forgotPasswordLabel:it="Forgot password?",showForgotPassword:oe=!0,socialButtonMarginTop:Ue=3,actionButtonMaxWidth:te=320})=>{const Se=w&&!N,C=r??(w&&d==="Datalayer OTEL"?"Datalayer Sign In":d),rt=v??(w?t.jsx(Fa,{size:24}):c),ye=s.useMemo(()=>{if(i)return i;const m=os();return m?`${m}/api/iam/v1/login`:"/api/iam/v1/login"},[i]),[Z,kt]=s.useState(""),[$,Tt]=s.useState(""),[we,Rt]=s.useState(!1),[$e,It]=s.useState(!1),[P,Me]=s.useState(!1),[X,Ve]=s.useState(!1),[Oe,He]=s.useState(null),[G,Et]=s.useState(null),[ae,At]=s.useState(""),[De,Pt]=s.useState(null),[Ce,ee]=s.useState(null),{enqueueToast:je}=Js(),[ke,Te]=s.useState(!1),[me,We]=s.useState(""),he=s.useRef(null),Ke=s.useCallback(m=>qs()?Zn.URLExt.join(Zn.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:"/"},[]),I=s.useCallback(async m=>{if(!X){ee(null),He(m.name),Ve(!0);try{const U=os(),V=new URLSearchParams({provider:m.name,callback_uri:Ke(m)}),H=L===void 0?void 0:String(L||"").trim(),Ye=H===void 0?ie&&ie!=="/"?ie:void 0:H&&H.startsWith("/")&&!H.startsWith("//")?H:void 0;Ye&&V.set("post_auth_redirect",Ye);const E=`${U||""}/api/iam/v1/oauth2/authz/url?${V.toString()}`,M=await fetch(E),j=await M.json(),ce=j?.autorization_url;if(!M.ok||!ce)throw new Error(j?.message||"Unable to start social sign-in.");window.location.assign(ce)}catch(U){const V=Da(U);ee(V),je(V,{variant:"error"}),He(null),Ve(!1)}}},[Ke,ie,je,X,L]);s.useEffect(()=>{ke&&he.current?.focus()},[ke]);const re=s.useCallback(()=>{Te(!1),We("")},[]),Re=s.useCallback(()=>{!me.trim()||!o||(o(me.trim()),re())},[me,o,re]),le=s.useCallback(()=>{if(Q){Q();return}window.location.assign(jt)},[Q,jt]),lt=s.useCallback(()=>{if(pe){if(pe.startsWith("http://")||pe.startsWith("https://")){window.open(pe,"_blank","noopener,noreferrer");return}window.location.assign(pe)}},[pe]),Le=s.useCallback(async()=>{if(!(w||!Z||!$||P)){Me(!0),ee(null);try{const m=await fetch(ye,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({handle:Z,password:$})});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){Et(V),Pt(U.token),ee(null);return}n&&n(U.token,Z)}else ee(U.message||"Invalid username or password.")}catch(m){ee(m instanceof Error?m.message:String(m))}finally{Me(!1)}}},[w,Z,$,P,ye,n]),Fe=s.useCallback(async()=>{if(!(w||P||!G||!ae.trim()||!De)){Me(!0),ee(null);try{const m=new URL(ye,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(De,Z)}catch(m){const U=m instanceof Error?m.message:String(m);ee(U),je(U,{variant:"error"})}finally{Me(!1)}}},[w,je,Z,P,ye,ae,De,G,n]),Y=s.useCallback(m=>{m.key==="Enter"&&(G?Fe():Le())},[G,Le,Fe]),Ge=X||P||w;return t.jsxs(g,{className:"signin-input-theme-scope",display:"flex",alignItems:N||Se||!k?"flex-start":"center",justifyContent:"center",minHeight:N||Se||!k?"auto":"100vh",bg:N?"transparent":"canvas.default",color:"fg.default",py:N?0:Se?2:4,children:[t.jsx(Wa,{}),t.jsxs(g,{width:"100%",maxWidth:440,p:0,children:[!N&&t.jsxs(t.Fragment,{children:[t.jsxs(g,{display:"flex",alignItems:"center",gap:2,mb:Se?2:3,justifyContent:"center",children:[rt,t.jsx(bt,{sx:{fontSize:3},children:C})]}),t.jsx(z,{as:"p",sx:{fontSize:1,color:"fg.muted",mb:Se?2:3,textAlign:"center"},children:p})]}),(be||A)&&t.jsxs(g,{mb:3,textAlign:"center",children:[be&&t.jsx(bt,{as:"h3",sx:{fontSize:2,mb:1},children:be}),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:Oe==="github"?()=>t.jsx(Jt,{size:"small"}):Na,disabled:Ge,onClick:()=>I(en.github),sx:{mt:Ue,maxWidth:te,mx:"auto"},children:"Sign in with GitHub"}),x&&t.jsx(K,{block:!0,size:"large",leadingVisual:Oe==="google"?()=>t.jsx(Jt,{size:"small"}):Ba,disabled:Ge,onClick:()=>I(en.google),sx:{mt:Ue,maxWidth:te,mx:"auto"},children:"Sign in with Google"}),y&&t.jsx(K,{block:!0,size:"large",leadingVisual:Oe==="linkedin"?()=>t.jsx(Jt,{size:"small"}):Va,disabled:Ge,onClick:()=>I(en.linkedin),sx:{mt:Ue,maxWidth:te,mx:"auto"},children:"Sign in with LinkedIn"})]}),!G&&!we&&t.jsx(g,{mt:3,display:"flex",justifyContent:"center",children:t.jsx(K,{leadingVisual:nn,size:"large",block:!0,disabled:w||P||X,onClick:()=>Rt(!0),sx:{maxWidth:te,mx:"auto"},children:wt})}),!G&&we&&t.jsxs(g,{mt:4,children:[t.jsxs(se,{required:!0,sx:{mb:3},children:[t.jsx(se.Label,{children:"Username"}),t.jsx(vt,{autoFocus:!0,block:!0,placeholder:"Your username",value:Z,disabled:P||w,onChange:m=>kt(m.target.value),onKeyDown:Y})]}),t.jsxs(se,{required:!0,sx:{mb:3},children:[t.jsx(se.Label,{children:"Password"}),t.jsx(vt,{block:!0,placeholder:"Your password",type:$e?"text":"password",value:$,disabled:P||w,onChange:m=>Tt(m.target.value),onKeyDown:Y,trailingAction:t.jsx(vt.Action,{onClick:()=>It(!$e),disabled:P||w,icon:$e?za:_a,"aria-label":$e?"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||!Z||!$,onClick:Le,children:P?"Signing in…":"Sign In"}),oe&&t.jsx(Qs,{as:"button",sx:{fontSize:1,cursor:w?"not-allowed":"pointer",background:"none",border:"none",opacity:w?.6:1},onClick:()=>{w||P||lt()},children:it})]})]}),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(vt,{autoFocus:!0,block:!0,placeholder:"Your MFA code",value:ae,disabled:P||w,onChange:m=>At(m.target.value),onKeyDown:Y})]}),t.jsx(K,{variant:"primary",block:!0,disabled:P||w||!ae.trim(),onClick:Fe,sx:{maxWidth:te,mx:"auto"},children:P?"Validating…":"Validate MFA Code"})]}),Ce&&t.jsx(z,{sx:{color:"danger.fg",fontSize:1,mt:3,display:"block"},children:Ce}),fe&&t.jsxs(g,{mt:4,pt:4,textAlign:"center",borderTop:"1px solid",borderColor:"border.muted",children:[t.jsx(bt,{as:"h3",sx:{fontSize:2,mb:2},children:Ct}),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:Zs,disabled:w||P,onClick:le,children:ve})})]}),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||X,onClick:()=>Te(!0),sx:{maxWidth:te,mx:"auto"},children:"Sign in with an API Key"}),ke&&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(),Re()},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(bt,{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(Xs,{block:!0,required:!0,autoFocus:!0,placeholder:"Paste your API key here",value:me,onInput:m=>We(m.currentTarget.value),ref:he})]}),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:!me.trim(),children:"Authenticate"})]})]})})]})]})]})};function Ga(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 as=no((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})})),Ya=({state:n})=>so[n];class Ja extends Error{constructor(o,i){super(i),this.status=o,this.name="RuntimeRefusal"}status}function qa({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 Ja(f.status,io(f.status,f.statusText,await ro(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},fe="POST")=>{const L=await i(`${r}${f}`,{method:fe,headers:d({"Content-Type":"application/json",Accept:"text/event-stream"}),body:JSON.stringify(x),signal:u});if(!L.ok)return p(L);await lo(L,y)},refused:p,headers:d,root:r,fetcher:i}}const W=n=>`/api/v1/apps/sessions/${encodeURIComponent(n)}`;function Qa(n){const{json:o,stream:i,fetcher:r,headers:d,refused:p,root:v}=qa(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=>ao(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=>oo((await o(`${W(c)}/messages`)).messages)}}function Za({agentName:n,sandboxStillRuns:o=!1,temporary:i=!0,onSignedIn:r,onSignUp:d}){const{configuration:p}=cs(),v=s.useCallback(c=>{co.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:uo,onClick:()=>{typeof window<"u"&&window.location.reload()},children:"Refresh the page for a new key"})]}),t.jsx(Ka,{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 Xa="https://r1.datalayer.run";function ei(n=!0){const{configuration:o}=cs(),i=sn(c=>c.token),r=o?.aiInferenceUrl||Xa,d=fo(r,n&&!i),p=i||d.token,v=s.useMemo(()=>({inferenceUrl:r,token:p||void 0}),[r,p]);return{inference:v,needsSignIn:po(v),anonymous:d,inferenceUrl:r}}const ti={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 is(n){const o=n?.subagents;if(!o)return[];const i=(o.subagents??[]).map(r=>{const d=r.ref?mo(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,ti]:i}function ni(n){return n.replace(/^datalayer_/,"").replace(/_lexical$/,"")}function si(n){const o=ni(n);return/^executeCodeIn(Notebook|Document)$/.test(o)||/^(read|list)[A-Z]/.test(o)}function oi(n,o){return n.filter(i=>o?.has(i.name)||si(i.name))}function ai(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 ii(n,o,i){if(!i||!n.endsWith("-tools"))return!1;const r=n.slice(0,-6);return o.has(r)&&r!==i}const ri={type:"object",properties:{}};function li(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??ri,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 hs(n,o){return n.flatMap(i=>li(i,o))}function ci(){const n=ho(),o=ms();return s.useMemo(()=>hs(o,n),[o,n])}function di(n){const o=n?.app_instance;if(!o||typeof o!="object")return"";const i=o.deployment_uid;return typeof i=="string"?i.trim():""}function ui(n,o,i){return n||!o?n:{id:i,messages:[]}}function fi(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 pi({facts:n}){if(!n)return null;const o=go(n);return t.jsxs(g,{display:"inline-flex",alignItems:"center",gap:2,"data-session-state":n.state,children:[t.jsx(xo,{size:"small",variant:n.state==="open"?"accent":n.state==="paused"?"attention":"secondary",children:bo(n)}),o?t.jsx(z,{sx:{fontSize:0,color:"fg.muted"},"data-session-lineage":"",children:o}):null]})}function mi({facts:n,turn:o,context:i}){const r=B(ds),d=us(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 hi({uid:n,describe:o,context:i}){const r=B(ds),[d,p]=s.useState(void 0),[v,c]=s.useState(!1),[f,x]=s.useState(""),[y,u]=s.useState(void 0),fe={...i,show:i.show??u,say:k=>{x(k),i.say(k)}},L=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=us(r,d);return t.jsxs(t.Fragment,{children:[t.jsxs(qt,{open:v,onOpenChange:L,children:[t.jsx(qt.Anchor,{children:t.jsx(fs,{icon:Ha,"aria-label":"Session actions",variant:"invisible",size:"small","data-testid":"session-actions"})}),t.jsx(qt.Overlay,{width:"small",children:t.jsxs(ot,{children:[w.length===0?t.jsx(ot.Item,{disabled:!0,children:d?"Nothing applies to this session now.":"Reading the session…"}):w.map(k=>t.jsx(ot.Item,{"data-session-action":k.id,onSelect:()=>{d&&Promise.resolve(k.run(d,fe)).catch(N=>fe.say(String(N.message??N)))},children:k.label},k.id)),f?t.jsxs(t.Fragment,{children:[t.jsx(ot.Divider,{}),t.jsx(ot.Item,{disabled:!0,"data-testid":"session-actions-said",children:f})]}):null]})})]}),y?t.jsx(ps,{title:y.title,onClose:()=>u(void 0),width:"large",children:t.jsx(g,{"data-session-panel":"",children:y.render()})}):null]})}const rs={confirm:"Switch",cancel:"Keep it"};function gi({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(ps,{title:n.title,onClose:()=>o(void 0),width:"medium",footerButtons:[{buttonType:"default",content:rs.cancel,onClick:()=>o(void 0)},{buttonType:"primary",content:rs.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(Xn,{value:i,onChange:c=>r(c.target.value),block:!0,children:n.options.map(c=>t.jsx(Xn.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 xi="var(--theme-accent)";function gs({face:n,size:o}){return typeof n=="string"?t.jsx(vo,{emoji:n,size:o,label:""}):t.jsx(t.Fragment,{children:n})}function bi({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 ${xi}`,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(gs,{face:n,size:o})})]})}function vi({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:Ya({state:n})})}const Si=on(void 0),yi=on(""),wi=on({}),ue="",Ci=1400,ls=parseInt(Oa["--loop-face-large"],10);function Ei({workspace:n}){const o=So(),i=yo(),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=wo(),u=y.getConfig(Co),fe=u?.placeholder||o.placeholder,L=u?.defaultSurface??"notebook",w=y.getConfig(jo),[k,N]=s.useState(ue),be=s.useRef(!1),A=B(ko),wt=B(To),Ct=B(Ro),ve=B(Io)[0]?.value,Q=Qt(ve?.promptStance??Si)??ve?.prompt,pe=B(Eo),it=Ao(pe[0]?.value),oe=s.useRef(it);oe.current=it;const Ue=s.useRef(""),te=B(Po),Se=s.useMemo(()=>Uo(()=>te.reduce((e,a)=>({...e,...a.value.extras.value}),{})),[te]),C=Qt(te.length>0?Se:wi),rt=s.useRef(new Set),ye=$o($a,n),Z=!ye.allowed,kt=Z?ye.reason??"Chat is unavailable for this sandbox":void 0,[$,Tt]=s.useState(!1),[we,Rt]=s.useState(!1),[$e,It]=s.useState(!1),[P,Me]=s.useState({open:!1,pendingApproval:!1}),X=Mo($,P,u?.presence?.paused===!0),Ve=u?.presence?.onPresence;s.useEffect(()=>{Ve?.(X),oe.current?.setPresence(X)},[Ve,X]);const Oe=s.useRef(u?.presence?.onSaying);Oe.current=u?.presence?.onSaying;const He=s.useRef({answering:!1}),G=s.useCallback(e=>{r.current=e,Rt(!!e)},[]),Et=s.useCallback(e=>{const{open:a,pendingApproval:l}=Oo(e);Me(Ae=>Ae.open===a&&Ae.pendingApproval===l?Ae:{open:a,pendingApproval:l});const b={saying:Fo(e),answering:Lo(e)},h=He.current;(h.saying?.id!==b.saying?.id||h.saying?.text!==b.saying?.text||h.answering!==b.answering)&&(He.current=b,Oe.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 Ae=e.length-1;Ae>=0;Ae-=1){const xt=e[Ae];if(typeof xt.toolName=="string"&&xt.toolCallId){F.has(String(xt.status).toLowerCase())||(S=xt);break}}if(!S){q.activity(void 0);return}const Ee=S.toolName.toLowerCase().replace(/^datalayer_/,"").replace(/_lexical$/,"").replace(/[^a-z]/g,""),Gs=ne[Ee]??`using ${S.toolName}`;q.activity(`${Ue.current||"The agent"} is ${Gs}…`)},[]),ae=s.useRef(C);ae.current=C;const At=s.useCallback(e=>{Is(e),oe.current?.usage(e),ae.current.onUsage?.(e)},[]),De=s.useCallback(e=>{Tt(e),e||oe.current?.end("done")},[]),Pt=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(zo).filter(h=>h.trim().length>0).join(`
29
+
30
+ `);a.assistant(b)},[]),Ce=s.useRef([]),ee=s.useRef(!1),je=s.useRef(void 0),ke=s.useRef(void 0),Te=s.useRef(void 0),me=B(_o),We=s.useRef(me);We.current=me;const he=s.useCallback((e,a)=>{if(ke.current)return ke.current;const l=Te.current;Te.current=void 0;const b=No(We.current.map(F=>F.value),l?{...a??{},voice:l}:a),h=b?.loop;if(ee.current&&h?.files&&h.files.length>0){const F=je.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:Vo(String(S.name??"")),base64:Bo(String(S.data_url??""))}))}catch(S){return S instanceof Error?S.message:String(S)}F.execute(Ho(ne)).then(S=>{if(!S.success){x(`The files could not be put in the sandbox: ${S.error??"it failed"}.`);return}he(`${e}
31
+
32
+ ${Do(ne.map(Ee=>Ee.file))}`,{...b,loop:Object.fromEntries(Object.entries(h).filter(([Ee])=>Ee!=="files"))})});return}oe.current?.begin(e,c());const q=r.current?.send;if(!q){Ce.current.push([e,b]);return}q(e,b)},[c]);s.useEffect(()=>{p(we?{busy:$,stop:r.current?.stop,newChat:r.current?.newChat,send:he}:null)},[$,we,p,he]),s.useEffect(()=>()=>p(null),[p]),s.useEffect(()=>n.prompts.subscribe(he),[n.prompts,he]),s.useEffect(()=>{if(!we||Ce.current.length===0)return;const e=Ce.current.splice(0,Ce.current.length);for(const[a,l]of e)c(),r.current?.send(a,l)},[we,c]);const Ke=s.useRef(!1),ie=s.useCallback(async e=>{x(null);const a=await Wo(ae.current,e);if(a){a.sent?et(""):x(a.refused);return}Ke.current||(Ke.current=!0,w?.firstPromptHook?.());const l=await n.submit(e);if(!l.handled){x(l.reason??null);return}et(""),l.result?.content&&x(l.result.content)},[n,w?.firstPromptHook]),I=s.useMemo(()=>A.find(e=>e.value.surfaceId===k)?.value,[A,k]),re=s.useCallback(e=>{be.current=!0,N(e)},[]);s.useEffect(()=>Ko(re),[re]),s.useEffect(()=>{Go(A.map(e=>e.value.surfaceId))},[A]),s.useEffect(()=>{Yo(k&&k!==ue?k:La)},[k]);const Re=s.useMemo(()=>L===ue||L==="none"?void 0:A.find(e=>e.value.surfaceId===L),[A,L]);s.useEffect(()=>{be.current||!Re||at(Re.value,n)&&N(L)},[Re,n,L]);const[le,lt]=s.useState(null),Le=s.useRef(null),Fe=u?.fullScreenTopOffset??0,{fullScreen:Y,usingApi:Ge,toggle:m,topOffsetPx:U}=Jo(Le,{forceOverlay:!!Fe,topOffset:Fe}),[V,H]=s.useState(!1),Ye=s.useRef(!1);s.useEffect(()=>{!$||Ye.current||Y||(Ye.current=!0,H(!0))},[$,Y]),s.useEffect(()=>{Y&&H(!1)},[Y]),s.useEffect(()=>{I&&!at(I,n)&&(lt(I.surfaceId),N(ue))},[I,n]);const ct=s.useMemo(()=>{if(le)return A.find(e=>e.value.surfaceId===le)?.value;if(!be.current&&k===ue)return Re?.value},[A,le,k,Re]);s.useEffect(()=>{if(!le||k!==ue)return;const e=A.find(a=>a.value.surfaceId===le);e&&at(e.value,n)&&(lt(null),N(le))},[A,k,le,n]);const E=n.agentId?.trim()||"default",M=qo(n.sandbox.target??"local");ee.current=M;const j=Qo(),ce=Qt(j?.selected??yi),R=j?.members.find(e=>e.id===ce),rn=B(Zo)[0]?.value,Ut=rn?.specId,O=es(R?.specId??E)??(Ut?es(Ut):void 0),Je=R?void 0:rn,ln=M&&!R?Ua(Ut,O):void 0;Ue.current=R?.name??O?.name??E;const cn=B(Xo),dn=C.hiddenOpeners,un=C.hideOpeners,$t=C.openers,Mt=s.useMemo(()=>{if(un)return[];const e=new Set(dn??[]),a=S=>e.size===0?S:S.filter(Ee=>!e.has(Ee.text));if($t)return a($t);const l=cn.flatMap(S=>S.value.suggestions);if(l.length>0)return a(l);const b=a(O?.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=R?.name??O?.name??E;return[...h.map(S=>({...S,group:F})),...b.filter(S=>!q.has(S.text)).map(S=>({...S,group:ne}))]},[cn,j,O,R,E,dn,un,$t]),dt=s.useMemo(()=>Mt.map(e=>({title:e.summary??e.text,message:e.message??e.text,group:e.group})),[Mt]),Ot=Be(O?.icon),J=u?.presence,xs=Be(j?.team.icon),fn=B(ea),ut=s.useMemo(()=>{const e=[],a=new Map,l=new Set,b=new Set(A.map(h=>h.value.surfaceId));for(const h of ai(fn,I?.surfaceId)){if(ii(h.value.id,b,I?.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 I?e:oi(e,l)},[fn,n.surfaceId,n.agentId,C.frontendTools,I?.surfaceId,A]),Lt=ci(),qe=s.useMemo(()=>{if(Lt.length===0)return ut;const e=new Set(ut.map(a=>a.name));return[...ut,...Lt.filter(a=>!e.has(a.name))]},[ut,Lt]),pn=ms(),Ft=C.agentToolBundles,bs=s.useMemo(()=>{const e=C.frontendTools??[];if(!Ft?.length)return C.frontendTools;const a=hs(pn.filter(b=>Ft.includes(b.id)),y),l=new Set(e.map(b=>b.name));return[...e,...a.filter(b=>!l.has(b.name))]},[C.frontendTools,Ft,pn,y]);je.current=M&&qe.some(e=>e.name===ta)?y.getOutput(St)?.sandbox:void 0;const T=na(n.sandbox,n.serverUrl),Qe=s.useMemo(()=>Qa({baseUrl:T??"",getAccessToken:()=>d.current,fetch:(e,a)=>fetch(e,a)}),[T]),mn=B(sa),vs=s.useMemo(()=>mn.filter(e=>e.value.composer).map(e=>({name:e.value.name,description:e.value.description})),[mn]),Ss=s.useMemo(()=>{if(!j||!R)return is(O).map(l=>({name:l.name,description:l.description,icon:Be(l.icon)}));const e=j.members.map(l=>({name:l.name,description:l.description,emoji:l.emoji,icon:Be(l.icon),disabled:l.id===R.id,disabledReason:l.id===R.id?`You are already talking to ${l.name}`:void 0})),a=ts(j.team,R.id).filter(l=>!j.members.some(b=>b.name===l.name)).map(l=>({name:l.name,description:l.description,icon:Be(l.icon)}));return[...e,...a]},[j,R,O]),{inference:hn,anonymous:ys}=ei(M),ws=sn(e=>e.user),zt=M&&ys.status==="expired",gn=!ws,Ze=oa();ke.current=Ze.disabled?Ze.disableReason||"This conversation is closed here.":void 0;const _t=T===void 0?aa(n.sandbox,o):void 0,Xe=Z||zt||!!ln||!!_t||Ze.disabled,xn=zt?gn?o.demoKeyExpired:o.keyExpired:ln??_t??kt??(Ze.disabled?Ze.disableReason:void 0),[Nt,et]=s.useState(""),[bn]=ia(),tt=s.useMemo(()=>u?.voice?ra(u.voice,bn):void 0,[u?.voice,bn]),[Cs,js]=s.useState(!1),[ks,vn]=s.useState(),ft=ks??Je?.model??O?.model??n.model??"",ze=la(),Sn=s.useRef(ze),yn=s.useRef(ce),wn=s.useRef(ze);wn.current=ze,s.useEffect(()=>{yn.current!==ce&&(yn.current=ce,Sn.current=wn.current,vn(void 0))},[ce]);const Ts=ze&&ze!==Sn.current?ze:null,[Rs,Is]=s.useState(),Es=Ts??Rs??null,As=Zt(Pe.inpromptMenu),Cn=Zt(Pe.promptAction),jn=Zt(Pe.chatHeader),Ps=s.useMemo(()=>j?.members.map(e=>({id:e.id,name:e.name,description:e.description,icon:Be(e.icon)}))??[],[j]),Ie=as(e=>e.pending),[kn,Us]=s.useState(0);s.useEffect(()=>ca(()=>Us(e=>e+1)),[]),s.useEffect(()=>{Ie&&(et(Ie.text),as.getState().consume(),Ie.submit&&ie(Ie.text))},[Ie]);const Tn=y.getConfig(St)?.datalayerCreatePayload,D=!!(Je?.createPayload?.app_spec||Tn?.app_spec),Bt=di(Tn),$s=sn(e=>e.token),Vt=y.getConfig(St)?.datalayerVisitors,Ms=da(Vt),Os=y.getConfig(St)?.embedToken,ge=Vt?Ms.token:Os||$s;d.current=ge||void 0;const Ls=s.useMemo(()=>ua(u?.voice,ge||void 0),[u?.voice,ge]),xe=!!(Bt||Vt);if(xe&&!D)throw new Error("A deployment’s page runs its application: its host gave no app_spec.");const[Rn]=s.useState(fa),[Ht,Fs]=s.useMemo(()=>{try{return[fi(typeof window>"u"?"":window.location.search),""]}catch(e){return["",e instanceof Error?e.message:String(e)]}},[]),[In,zs]=s.useState(void 0),_=s.useMemo(()=>In??ui(u?.thread??(Ht&&D?{id:Ht,messages:[],fromRuntime:!0}:void 0),Bt,Rn),[In,u?.thread,Ht,D,Bt,Rn]),[_e,En]=s.useState(null),_s=!!(_?.fromRuntime&&_e?.given!==_.id);s.useEffect(()=>{if(!_?.fromRuntime||!D||!T)return;let e=!0;return(async()=>{let a="";for(let l=0;l<4&&e;l+=1)try{const b=await pa({agentBaseUrl:T,agentId:E,uid:_.id,token:ge});e&&En({given:_.id,thread:{..._,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:_.id,thread:{id:ma(),messages:[],onStarted:_.onStarted},said:ns.notOpened(a)})})(),()=>{e=!1}},[_?.id,_?.fromRuntime,D,T,E,ge]);const Dt=_?.fromRuntime?_e?.given===_.id?_e.thread:void 0:_,de=n.thread||Dt?.id||"",[An,Pn]=s.useState(void 0),[Ns,Un]=s.useState(0),$n=s.useRef("");s.useEffect(()=>{$&&de&&($n.current=de)},[$,de]);const Mn=!!_?.fromRuntime||!!(n.thread&&n.thread===de)||$n.current===de;s.useEffect(()=>{if(!D||!T||!de||$||!Mn)return;let e=!0;return Qe.described(de).then(a=>e&&Pn(a),()=>e&&Pn(void 0)),()=>{e=!1}},[D,T,de,$,Mn,Ns,Qe]);const[On,Ln]=s.useState(Fs),[Fn,zn]=s.useState(null),Wt=s.useRef(null),Kt=s.useRef(null),_n=s.useRef(null),Nn=s.useMemo(()=>({client:Qe,say:e=>{Ln(e),Un(a=>a+1)},openThread:e=>{zs({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=>{Wt.current=a,zn(e)}),pickFile:e=>new Promise(a=>{const l=_n.current;if(!l){a(void 0);return}Kt.current=a,l.accept=e,l.value="",l.click()})}),[Qe]),pt=s.useMemo(()=>M?Ga({agentId:R?.specId??E,instructions:ha(O,Je?.instructions),model:ft||void 0,inference:hn,frontendTools:qe,subagents:j&&R?ts(j.team,R.id):is(O),sharing:j?.sharing,onSubagentEvent:e=>Ma.getState().appendSubagentEvent(e),modeEffect:Je?.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&&ge?{authToken:ge}:{},...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`,...xe?{ownRoutesOnly:!0}:{}}:{},agentId:E,configEndpoint:`${T}/api/v1/configure`,enableConfigQuery:!0}:void 0,[E,M,hn,R,qe,j,O,Je,ft,T,D,ge,xe]),mt=ga(!M&&pt?.type==="ag-ui",pt?.type==="ag-ui"?pt.configEndpoint:void 0,void 0,E),nt=xa(),ht=ba(E),[Bn,Gt]=s.useState(void 0),[Bs,Vs]=s.useState(void 0);s.useEffect(()=>{if(M||T===void 0)return;const e=va(T,E,xe);if(!e){Gt([]);return}let a=!1;return fetch(e).then(l=>l.ok?l.json():null).then(l=>{a||(Gt(l?Sa(l):[]),Vs(l?ya(l):void 0))}).catch(()=>{a||Gt([])}),()=>{a=!0}},[T,E,M,xe]);const Hs=s.useMemo(()=>wa(Bn,()=>Object.values(Ca).filter(e=>e.available&&ja(e)).map(e=>({id:e.id,name:e.name,provider:e.provider}))),[Bn]),Vn=s.useMemo(()=>{const e=mt.data?.builtinTools??[],a=new Set(e.map(l=>l.name));return{runtime:e,frontend:qe.filter(l=>!a.has(l.name)).map(l=>({id:l.name,name:l.name}))}},[mt.data?.builtinTools,qe]),Hn=s.useMemo(()=>new Set((nt.data?.skills??[]).filter(e=>e.status==="enabled"||e.status==="loaded").map(e=>e.id)),[nt.data]),Ds=s.useCallback(async e=>{if(xe)throw new Error("A deployment’s chat does not switch its runtime’s model.");vn(e),!(M||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,M,xe]),Dn=u?.promptPlacement==="bottom-chat",Ws=u?.promptPlacement==="floating",Ne=u?.promptPlacement==="top",st=u?.hidePrompt===!0||C.hidePrompt===!0,Ks={onSend:()=>{ie(Nt)},input:Nt,setInput:et,focusTrigger:Ie||kn?(Ie?.nonce??0)+kn:void 0,placement:Ws||Q==="floating"||Q==="floating-top"||Q==="floating-bottom"?"floating":"docked",floatingAnchor:Q==="floating-top"?"top":"bottom",isLoading:$,onStop:()=>n.viewControls.stop?.(),placeholder:xn??C.sendInstead?.says??fe,typingSuggestions:Mt.map(e=>e.text),suggestions:dt,disableInputPrompt:Xe,connectionConfirmed:!Xe,interim:Cs,padding:Ne||Q==="floating-top"||Q==="floating-bottom"||Q==="docked-top"?2:3,promptVariant:"lexical",autoFocus:u?.autoFocusPrompt??!0,mentionableAgents:Ss,promptCommands:vs,headerContent:As.length>0?t.jsx(yt,{slot:Pe.inpromptMenu,props:{workspace:n}}):void 0,footerExtras:Cn.length>0||tt&&tt.input!=="off"?t.jsxs(t.Fragment,{children:[Cn.length>0?t.jsx(yt,{slot:Pe.promptAction,props:{workspace:n}}):null,tt&&tt.input!=="off"?t.jsx(ka,{voice:tt,input:Nt,setInput:et,disabled:Xe,speaking:$e,onStopSpeaking:()=>r.current?.stopSpeaking?.(),playbackLevel:()=>r.current?.voiceLevel?.()??0,running:$,onStopRun:()=>(r.current?.interrupt??r.current?.stop)?.(),onInterrupted:()=>r.current?.markInterrupted(),onInterimChange:js,answers:!!(u?.voice?.output&&u.voice.output!=="off"&&u.voice.speechUrl),onSpoken:e=>{Te.current=e},send:(e,a)=>{Te.current=a,ie(e)}}):null]}):void 0,showAgentsMenu:!J,showInlineAgentsMenu:!1,agents:Ps,selectedAgentId:ce,onSelectAgent:e=>j?.select(e),showTokenUsage:C.showTokenUsage??u?.showTokenUsage??!0,showContextRing:!0,agentUsage:Es??void 0,showModelSelector:!J&&!xe,models:Hs,decisions:Bs,selectedModel:ft,onModelSelect:e=>{Ds(e)},showToolsMenu:!J,availableTools:Vn.runtime,availableFrontendTools:Vn.frontend,mcpServers:mt.data?.mcpServers??[],mcpStatusData:C.mcpStatusData??void 0,showSkillsMenu:!J,skills:nt.data?.skills??[],skillsLoading:nt.isLoading,enabledSkills:Hn,onToggleSkill:e=>Hn.has(e)?ht.disableSkill(e):ht.enableSkill(e),onToggleAllSkills:(e,a)=>e.forEach(l=>a?ht.enableSkill(l):ht.disableSkill(l)),codemodeEnabled:C.codemodeEnabled??!1,onToggleCodemode:C.onToggleCodemode,isA2AProtocol:!1,hasConfigData:!!mt.data,hasSkillsData:!!nt.data},Wn=wt[0]?.value.Component,Yt=Ct[0]?.value.Component,Kn=!u?.hideHeader&&!!Yt,gt=Wn?t.jsx(Wn,{workspace:n,composer:Ks}):null,Gn=A.length>0&&u?.showSurfaceSelector!==!1?t.jsx(ji,{surfaces:A.map(e=>e.value),active:I?.surfaceId??ct?.surfaceId??ue,onChange:re,workspace:n}):null,Yn=t.jsxs(t.Fragment,{children:[A.map(e=>{const a=e.value,l=I?.surfaceId===a.surfaceId;return l||rt.current.has(a.surfaceId)||at(a,n)?(rt.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(Ta,{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}),!I&&ct?t.jsx(g,{flex:"1 1 0",minWidth:0,minHeight:0,children:t.jsxs(tn,{children:["Starting ",ct.title,"…"]})}):null]}),Jn=t.jsx(t.Fragment,{children:t.jsxs(g,{flex:Ne&&I?"0 0 34%":"1 1 0",maxWidth:Ne&&I?460:void 0,minWidth:0,minHeight:0,display:"flex",flexDirection:"column",borderLeft:I?"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,_e?.said&&_e.given===_?.id?t.jsx(z,{as:"p",role:"status",sx:{m:0,px:3,py:2,fontSize:1,color:"fg.muted"},children:_e.said}):null,On?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:On}),t.jsx(K,{size:"small",variant:"invisible",onClick:()=>Ln(""),children:"Dismiss"})]}):null,Fn?t.jsx(gi,{question:Fn,onPick:e=>{zn(null),Wt.current?.(e),Wt.current=null}}):null,t.jsx("input",{ref:_n,type:"file",hidden:!0,"data-session-file":"",onChange:async e=>{const a=e.target.files?.[0],l=a?await a.text():void 0;Kt.current?.(l),Kt.current=null}}),t.jsx(g,{flex:"1 1 auto",minHeight:0,display:"flex",children:_s?t.jsx(z,{as:"p",role:"status",sx:{m:0,p:3,fontSize:1,color:"fg.muted"},children:ns.opening}):t.jsx(Ra,{themeVariant:u?.themeVariant,themeOverrides:u?.themeOverrides,colorMode:u?.colorMode,thread:Dt,voice:Ls,disabled:Xe,disableReason:xn,protocol:pt,frontendTools:M?void 0:bs,initialModel:ft||void 0,title:J?.name??R?.name??O?.name??E,description:J?.welcome??O?.description,brandIcon:J?.face?t.jsx(bi,{face:J.face,size:20,state:X}):t.jsx(Ot,{size:20}),headerContent:J&&!_t?t.jsx(vi,{state:X}):void 0,emptyState:{icon:J?.face?t.jsx("span",{"aria-hidden":!0,style:{fontSize:ls,lineHeight:1},children:t.jsx(gs,{face:J.face,size:ls})}):t.jsx(Ot,{size:48}),title:J?.name??R?.name??O?.name??E,...j&&R?{sections:[{group:j.team.name,icon:t.jsx(xs,{size:48}),title:j.team.name,subtitle:j.team.description},{group:R.name,icon:t.jsx(Ot,{size:32}),title:R.name,subtitle:O?.description}]}:null},suggestions:Ne||ve||u?.suggestionLabels===!1?[]:dt,showHeader:Kn,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(pi,{facts:An}),t.jsx(hi,{uid:de||void 0,describe:e=>Qe.described(e),context:Nn})]}):null,jn.length>0?t.jsx(yt,{slot:Pe.chatHeader,props:{workspace:n}}):null,t.jsx(fs,{icon:Y?Ia:Ea,"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 ${Ci}ms ease-in-out infinite`},"@media (prefers-reduced-motion: reduce)":{"&&":{animation:"none"}}}:void 0})]}),showInput:!1,onSendReady:G,notebookToolSurfacesId:I?void 0:n.surfaceId,showTurnFooter:C.showTokenUsage??u?.showTokenUsage??!0,onContextSnapshot:At,onLoadingChange:De,renderMessageFooter:D&&T?(e,a)=>e.role==="user"?t.jsx(mi,{facts:An,turn:a.turn,context:Nn}):null:void 0,onSpeakingChange:It,onItemsChange:Pt,onDisplayItemsChange:Et,enableStreaming:!0},Dt?.id)}),!Kn&&jn.length>0?t.jsx(g,{hidden:!0,children:t.jsx(yt,{slot:Pe.chatHeader,props:{workspace:n}})}):null,Dn&&!st?gt:null]})}),qn=u?.suggestionLabels!==!1&&dt.length>0?t.jsx(g,{"aria-label":o.suggestedPrompts,display:"flex",flexWrap:"wrap",gap:2,px:2,pb:"6px",children:dt.map(e=>t.jsx(g,{as:"button",type:"button",title:e.message,disabled:$||Xe,onClick:()=>{ie(e.message)},appearance:"none",font:"inherit",fontSize:0,fontWeight:"semibold",lineHeight:1.25,px:"10px",py:"5px",width:ss,flex:`0 0 ${ss}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(Aa,{title:e.title,maxWidth:"100%",sx:{minWidth:0},children:e.title})},e.title))}):null,Qn=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:Le,sx:{height:"100%",minHeight:0,display:"flex",flexDirection:"column",position:"relative",...Y?{bg:"canvas.default"}:null,...Y&&!Ge.current?{position:"fixed",top:U,right:0,bottom:0,left:0,height:"auto",zIndex:1e3}:null},children:[ve?t.jsx(ve.Component,{workspace:n,editors:Yn,hasEditor:!!I,transcript:Jn,prompt:st?null:gt,chips:st?null:qn,picker:Gn,transient:Qn}):t.jsxs(t.Fragment,{children:[Ne&&!st?t.jsxs(g,{flex:"0 0 auto",borderBottom:"1px solid",borderColor:"border.default",children:[gt,qn]}):null,Gn,t.jsxs(g,{flex:"1 1 auto",minHeight:0,display:"flex",position:"relative",children:[Yn,Jn]}),Qn,Dn||st||Ne?null:gt]}),zt?t.jsx(g,{position:"absolute",inset:0,zIndex:5,bg:"canvas.default",display:"flex",flexDirection:"column",minHeight:0,children:t.jsx(Za,{agentName:R?.name??O?.name,sandboxStillRuns:M,temporary:gn,onSignedIn:()=>Pa.getState().clear()})}):null]})}function ji({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(Xt,{"aria-label":"Editor beside the chat",size:"small",children:[t.jsx(Xt.Button,{selected:o===ue,onClick:()=>i(ue),children:"Chat"}),d.map(p=>{const v=at(p,r),c=v?void 0:p.unavailableReason?.(r)??"Not available right now";return t.jsx(Xt.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{Ei as default};
@@ -1 +1 @@
1
- import{aa as t,r as i}from"../datalayer-app-main.js";import{I as l,r}from"./JupyterLexicalExtension-DuD7IV6j.js";import{$ as k,a as q,b as v,c as w,d as y,e as z,C as F,f as G,g as H}from"./JupyterLexicalExtension-DuD7IV6j.js";import"./NotebookSkeleton-CvO9WylK.js";import"./Avatar-Cv5OpUWu.js";import"./url-C6fJII94.js";import"./isSymbol-BLtK9CV6.js";import"./toNumber-B1wj8-wx.js";import"./StrikethroughIcon-CbiEuPT-.js";import"./VideoIcon-C3wcjUxu.js";import"./LinkIcon-BtBG9K47.js";import"./Toolbar-BAjGB6b-.js";import"./KebabHorizontalIcon-D6AY8pIS.js";import"./ArrowUpIcon-y5enrVH9.js";import"./SortDescIcon-Qif6E10I.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./PrismCss-DQMhvzcI.js";import"./Output-D9cwH5rg.js";import"./index-JmqWOkdt.js";import"./hoverbox-CStlKQWE.js";import"./index-qhxI1VzX.js";import"./index-CEeyR3FZ.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-BYxXubsX.js";import"./d3-color-Jd8hXty2.js";import"./dist-BrUAt6vF.js";import"./index-CKWSKbHe.js";import"./RestartIcon-DvpOf5Mf.js";import"./LexicalToolRegistry-LfEpCrfD.js";function R(){const[o]=t();return i.useEffect(()=>r(o),[o]),null}export{k as $createCollapsibleContainerNode,q as $createCollapsibleContentNode,v as $createCollapsibleTitleNode,w as $isCollapsibleContainerNode,y as $isCollapsibleContentNode,z as $isCollapsibleTitleNode,F as CollapsibleContainerNode,G as CollapsibleContentNode,R as CollapsiblePlugin,H as CollapsibleTitleNode,l as INSERT_COLLAPSIBLE_COMMAND,R as default};
1
+ import{aa as t,r as i}from"../datalayer-app-main.js";import{I as l,r}from"./JupyterLexicalExtension-DbMi7Dam.js";import{$ as k,a as q,b as v,c as w,d as y,e as z,C as F,f as G,g as H}from"./JupyterLexicalExtension-DbMi7Dam.js";import"./NotebookSkeleton-BaU6vrsb.js";import"./Avatar-Cv5OpUWu.js";import"./url-C6fJII94.js";import"./isSymbol-BLtK9CV6.js";import"./toNumber-B1wj8-wx.js";import"./StrikethroughIcon-CbiEuPT-.js";import"./VideoIcon-C3wcjUxu.js";import"./LinkIcon-BtBG9K47.js";import"./Toolbar-ByUGXe7J.js";import"./KebabHorizontalIcon-D6AY8pIS.js";import"./ArrowUpIcon-y5enrVH9.js";import"./SortDescIcon-Qif6E10I.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./PrismCss-DQMhvzcI.js";import"./Output-DtWAAuKd.js";import"./index-CcDn6aA5.js";import"./hoverbox-CStlKQWE.js";import"./index-Xpn7qE4M.js";import"./index-CW9jwmnF.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-CO9-1hO8.js";import"./d3-color-Jd8hXty2.js";import"./dist-BrUAt6vF.js";import"./index-CKWSKbHe.js";import"./RestartIcon-DvpOf5Mf.js";import"./LexicalToolRegistry-Bd1yXjzB.js";function R(){const[o]=t();return i.useEffect(()=>r(o),[o]),null}export{k as $createCollapsibleContainerNode,q as $createCollapsibleContentNode,v as $createCollapsibleTitleNode,w as $isCollapsibleContainerNode,y as $isCollapsibleContentNode,z as $isCollapsibleTitleNode,F as CollapsibleContainerNode,G as CollapsibleContentNode,R as CollapsiblePlugin,H as CollapsibleTitleNode,l as INSERT_COLLAPSIBLE_COMMAND,R as default};
@@ -1 +1 @@
1
- import{r as x,j as e,B as n,T as s,$ as i}from"../datalayer-app-main.js";import j from"./esm-Co3TYtt_.js";import"./index-BhCoJe__.js";function F({agentUsage:o,padding:y,showContextRing:T=!1}){const[k,h]=x.useState(!1),v=x.useRef(null),c=x.useRef(null),g=!!o.turnUsage,C=!!o.sessionUsage,w=!!o.costUsage&&(o.costUsage.cumulativeCostUsd>0||o.costUsage.lastTurnCostUsd>0),m=o.sessionUsage,p=o.turnUsage,b=o.costUsage,d=t=>t<.01?`$${t.toFixed(4)}`:t<1?`$${t.toFixed(3)}`:`$${t.toFixed(2)}`,f=o.totalTokens,u=o.contextWindow,S=Math.max(0,u-f),a=u>0?f/u*100:0,r=[];if(o.distribution?.children?.length){const t={"System Prompts":"#8250df","Tool Definitions":"#bf8700","User Messages":"#16A085","Assistant Messages":"#1a7f37","Tool Usage":"#cf222e"};for(const l of o.distribution.children)r.push({name:l.name,value:l.value,color:t[l.name]||"#6e7781"})}else{o.systemPromptTokens>0&&r.push({name:"System Prompts",value:o.systemPromptTokens,color:"#8250df"}),o.toolTokens>0&&r.push({name:"Tool Definitions",value:o.toolTokens,color:"#bf8700"});const t=(o.userMessageTokens||0)+(o.assistantMessageTokens||0);t>0&&r.push({name:"Messages",value:t,color:"#16A085"});const l=(o.toolCallTokens||0)+(o.toolReturnTokens||0);l>0&&r.push({name:"Tool Results",value:l,color:"#cf222e"})}const z=a>90?"#cf222e":a>70?"#bf8700":"#16A085",W="var(--bgColor-muted, #f6f8fa)",R="var(--borderColor-default, #d1d9e0)",M={animation:!1,series:[{type:"pie",radius:[0,"90%"],center:["50%","50%"],silent:!0,label:{show:!1},labelLine:{show:!1},data:[{value:f,itemStyle:{color:z}},{value:S,itemStyle:{color:W}}]}]},P={animation:!1,series:[{type:"pie",radius:["45%","80%"],center:["50%","50%"],silent:!0,label:{show:!1},labelLine:{show:!1},itemStyle:{borderColor:"var(--bgColor-default, #ffffff)",borderWidth:1},data:[...r.map(t=>({value:t.value,itemStyle:{color:t.color}})),{value:S,itemStyle:{color:R}}]}]};return e.jsxs(n,{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:2,py:1,px:y,bg:"canvas.subtle",flexWrap:"nowrap",overflow:"visible",whiteSpace:"nowrap",minWidth:0,children:[T&&e.jsxs(n,{position:"relative",flexShrink:0,onMouseEnter:()=>{c.current&&clearTimeout(c.current),c.current=setTimeout(()=>h(!0),150)},onMouseLeave:()=>{c.current&&clearTimeout(c.current),c.current=setTimeout(()=>h(!1),250)},children:[e.jsx(n,{ref:v,cursor:"pointer",width:20,height:20,display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid",borderColor:"border.default",borderRadius:"50%",children:e.jsx(j,{option:M,style:{width:18,height:18},opts:{renderer:"svg"}})}),k&&e.jsxs(n,{position:"absolute",bottom:"100%",left:0,mb:1,p:3,width:260,bg:"canvas.overlay",borderRadius:2,boxShadow:"shadow.large",border:"1px solid",borderColor:"border.default",zIndex:100,children:[e.jsx(s,{sx:{fontWeight:"bold",fontSize:1,color:"fg.default",display:"block",mb:2},children:"Context"}),e.jsxs(s,{sx:{fontSize:0,color:"fg.muted",display:"block",mb:1},children:[e.jsx(s,{as:"span",sx:{fontWeight:"semibold",color:"fg.default"},children:i(f)})," / ",i(u)," tokens"]}),o.costUsage&&e.jsxs(s,{sx:{fontSize:0,color:"fg.muted",display:"block",mb:2},children:["cost ",e.jsx(s,{as:"span",sx:{fontWeight:"semibold",color:"fg.default"},children:d(o.costUsage.lastTurnCostUsd)})," turn · ",e.jsx(s,{as:"span",sx:{fontWeight:"semibold",color:"fg.default"},children:d(o.costUsage.cumulativeCostUsd)})," total"]}),e.jsxs(s,{sx:{fontSize:0,color:a>90?"danger.fg":a>70?"attention.fg":"fg.muted",fontWeight:"semibold",display:"block",mb:2},children:["• ",a.toFixed(0),"%"]}),e.jsx(n,{display:"flex",justifyContent:"center",mb:2,children:e.jsx(j,{option:P,style:{width:80,height:80},opts:{renderer:"svg"}})}),e.jsx(n,{display:"flex",flexDirection:"column",gap:1,children:r.map(t=>{const l=f>0?t.value/f*100:0;return e.jsxs(n,{display:"flex",alignItems:"center",gap:2,children:[e.jsx(n,{width:8,height:8,borderRadius:"50%",bg:t.color,flexShrink:0}),e.jsx(s,{sx:{fontSize:0,color:"fg.muted",flex:1},children:t.name}),e.jsxs(s,{sx:{fontSize:0,color:"fg.default",fontWeight:"semibold"},children:[l.toFixed(1),"%"]})]},t.name)})}),a>70&&e.jsx(s,{sx:{fontSize:0,color:"attention.fg",display:"block",mt:2,fontStyle:"italic"},children:"Quality may decline as limit nears."})]})]}),e.jsxs(s,{sx:{fontSize:0,color:"fg.muted",flexShrink:0},children:[e.jsx(s,{as:"span",sx:{fontWeight:"semibold",color:"fg.default",fontSize:0},children:i(o.totalTokens)})," / ",i(o.contextWindow)," ctx"]}),w&&e.jsxs(s,{sx:{fontSize:0,color:"fg.muted",flexShrink:0},children:["· cost ",e.jsx(s,{as:"span",sx:{fontWeight:"semibold",color:"fg.default",fontSize:0},children:d(b?.lastTurnCostUsd??0)})," turn / ",e.jsx(s,{as:"span",sx:{fontWeight:"semibold",color:"fg.default",fontSize:0},children:d(b?.cumulativeCostUsd??0)})]}),C&&e.jsxs(s,{sx:{fontSize:0,color:"fg.muted",flexShrink:0},children:["· session ",i(m?.inputTokens??0),e.jsx(s,{as:"span",sx:{color:"success.fg",fontSize:0},children:"▲"})," ",i(m?.outputTokens??0),e.jsx(s,{as:"span",sx:{color:"attention.fg",fontSize:0},children:"▼"})]}),g&&e.jsxs(s,{sx:{fontSize:0,color:"fg.muted",flexShrink:0},children:["· turn ",i(p?.inputTokens??0),e.jsx(s,{as:"span",sx:{color:"success.fg",fontSize:0},children:"▲"})," ",i(p?.outputTokens??0),e.jsx(s,{as:"span",sx:{color:"attention.fg",fontSize:0},children:"▼"})]})]})}export{F as ContextPie};
1
+ import{r as x,j as e,B as n,T as s,$ as i}from"../datalayer-app-main.js";import j from"./esm-C8NQHqRw.js";import"./index-BhCoJe__.js";function F({agentUsage:o,padding:y,showContextRing:T=!1}){const[k,h]=x.useState(!1),v=x.useRef(null),c=x.useRef(null),g=!!o.turnUsage,C=!!o.sessionUsage,w=!!o.costUsage&&(o.costUsage.cumulativeCostUsd>0||o.costUsage.lastTurnCostUsd>0),m=o.sessionUsage,p=o.turnUsage,b=o.costUsage,d=t=>t<.01?`$${t.toFixed(4)}`:t<1?`$${t.toFixed(3)}`:`$${t.toFixed(2)}`,f=o.totalTokens,u=o.contextWindow,S=Math.max(0,u-f),a=u>0?f/u*100:0,r=[];if(o.distribution?.children?.length){const t={"System Prompts":"#8250df","Tool Definitions":"#bf8700","User Messages":"#16A085","Assistant Messages":"#1a7f37","Tool Usage":"#cf222e"};for(const l of o.distribution.children)r.push({name:l.name,value:l.value,color:t[l.name]||"#6e7781"})}else{o.systemPromptTokens>0&&r.push({name:"System Prompts",value:o.systemPromptTokens,color:"#8250df"}),o.toolTokens>0&&r.push({name:"Tool Definitions",value:o.toolTokens,color:"#bf8700"});const t=(o.userMessageTokens||0)+(o.assistantMessageTokens||0);t>0&&r.push({name:"Messages",value:t,color:"#16A085"});const l=(o.toolCallTokens||0)+(o.toolReturnTokens||0);l>0&&r.push({name:"Tool Results",value:l,color:"#cf222e"})}const z=a>90?"#cf222e":a>70?"#bf8700":"#16A085",W="var(--bgColor-muted, #f6f8fa)",R="var(--borderColor-default, #d1d9e0)",M={animation:!1,series:[{type:"pie",radius:[0,"90%"],center:["50%","50%"],silent:!0,label:{show:!1},labelLine:{show:!1},data:[{value:f,itemStyle:{color:z}},{value:S,itemStyle:{color:W}}]}]},P={animation:!1,series:[{type:"pie",radius:["45%","80%"],center:["50%","50%"],silent:!0,label:{show:!1},labelLine:{show:!1},itemStyle:{borderColor:"var(--bgColor-default, #ffffff)",borderWidth:1},data:[...r.map(t=>({value:t.value,itemStyle:{color:t.color}})),{value:S,itemStyle:{color:R}}]}]};return e.jsxs(n,{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:2,py:1,px:y,bg:"canvas.subtle",flexWrap:"nowrap",overflow:"visible",whiteSpace:"nowrap",minWidth:0,children:[T&&e.jsxs(n,{position:"relative",flexShrink:0,onMouseEnter:()=>{c.current&&clearTimeout(c.current),c.current=setTimeout(()=>h(!0),150)},onMouseLeave:()=>{c.current&&clearTimeout(c.current),c.current=setTimeout(()=>h(!1),250)},children:[e.jsx(n,{ref:v,cursor:"pointer",width:20,height:20,display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid",borderColor:"border.default",borderRadius:"50%",children:e.jsx(j,{option:M,style:{width:18,height:18},opts:{renderer:"svg"}})}),k&&e.jsxs(n,{position:"absolute",bottom:"100%",left:0,mb:1,p:3,width:260,bg:"canvas.overlay",borderRadius:2,boxShadow:"shadow.large",border:"1px solid",borderColor:"border.default",zIndex:100,children:[e.jsx(s,{sx:{fontWeight:"bold",fontSize:1,color:"fg.default",display:"block",mb:2},children:"Context"}),e.jsxs(s,{sx:{fontSize:0,color:"fg.muted",display:"block",mb:1},children:[e.jsx(s,{as:"span",sx:{fontWeight:"semibold",color:"fg.default"},children:i(f)})," / ",i(u)," tokens"]}),o.costUsage&&e.jsxs(s,{sx:{fontSize:0,color:"fg.muted",display:"block",mb:2},children:["cost ",e.jsx(s,{as:"span",sx:{fontWeight:"semibold",color:"fg.default"},children:d(o.costUsage.lastTurnCostUsd)})," turn · ",e.jsx(s,{as:"span",sx:{fontWeight:"semibold",color:"fg.default"},children:d(o.costUsage.cumulativeCostUsd)})," total"]}),e.jsxs(s,{sx:{fontSize:0,color:a>90?"danger.fg":a>70?"attention.fg":"fg.muted",fontWeight:"semibold",display:"block",mb:2},children:["• ",a.toFixed(0),"%"]}),e.jsx(n,{display:"flex",justifyContent:"center",mb:2,children:e.jsx(j,{option:P,style:{width:80,height:80},opts:{renderer:"svg"}})}),e.jsx(n,{display:"flex",flexDirection:"column",gap:1,children:r.map(t=>{const l=f>0?t.value/f*100:0;return e.jsxs(n,{display:"flex",alignItems:"center",gap:2,children:[e.jsx(n,{width:8,height:8,borderRadius:"50%",bg:t.color,flexShrink:0}),e.jsx(s,{sx:{fontSize:0,color:"fg.muted",flex:1},children:t.name}),e.jsxs(s,{sx:{fontSize:0,color:"fg.default",fontWeight:"semibold"},children:[l.toFixed(1),"%"]})]},t.name)})}),a>70&&e.jsx(s,{sx:{fontSize:0,color:"attention.fg",display:"block",mt:2,fontStyle:"italic"},children:"Quality may decline as limit nears."})]})]}),e.jsxs(s,{sx:{fontSize:0,color:"fg.muted",flexShrink:0},children:[e.jsx(s,{as:"span",sx:{fontWeight:"semibold",color:"fg.default",fontSize:0},children:i(o.totalTokens)})," / ",i(o.contextWindow)," ctx"]}),w&&e.jsxs(s,{sx:{fontSize:0,color:"fg.muted",flexShrink:0},children:["· cost ",e.jsx(s,{as:"span",sx:{fontWeight:"semibold",color:"fg.default",fontSize:0},children:d(b?.lastTurnCostUsd??0)})," turn / ",e.jsx(s,{as:"span",sx:{fontWeight:"semibold",color:"fg.default",fontSize:0},children:d(b?.cumulativeCostUsd??0)})]}),C&&e.jsxs(s,{sx:{fontSize:0,color:"fg.muted",flexShrink:0},children:["· session ",i(m?.inputTokens??0),e.jsx(s,{as:"span",sx:{color:"success.fg",fontSize:0},children:"▲"})," ",i(m?.outputTokens??0),e.jsx(s,{as:"span",sx:{color:"attention.fg",fontSize:0},children:"▼"})]}),g&&e.jsxs(s,{sx:{fontSize:0,color:"fg.muted",flexShrink:0},children:["· turn ",i(p?.inputTokens??0),e.jsx(s,{as:"span",sx:{color:"success.fg",fontSize:0},children:"▲"})," ",i(p?.outputTokens??0),e.jsx(s,{as:"span",sx:{color:"attention.fg",fontSize:0},children:"▼"})]})]})}export{F as ContextPie};
@@ -0,0 +1 @@
1
+ import{cC as k,cD as b,cE as B,bB as G,a1 as D,cF as L,r as l,cG as C,cH as R,cI as w,cJ as M,cK as x}from"../datalayer-app-main.js";const I=["datalayer","kagent","agentcore"];function P(y){const o=y?.app_spec;if(!o||typeof o!="object")return;const e=y?.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!==""&&!I.includes(n))throw new Error(`The application's instance runs on ${String(n)}: one of ${I.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 O(){const o=k().getConfig(b),e=o?.datalayerAgentSpecId??B,t=o?.datalayerCreatePayload,r=o?.datalayerVisitors,n=o?.datalayerKept,i=r?.url??n?.url,a=G(),u=D(a?.target??L)==="datalayer",d=t?.app_spec?.id,[g,p]=l.useState({});l.useEffect(()=>{if(p({}),!r||!u)return;if(typeof d!="string"||!d){p({error:"A conversation without an account runs an application: none was given."});return}let s=!0,m,T=0;const N=()=>{w(r,d).then(()=>{s&&p({ready:!0})}).catch(f=>{if(!s)return;const h=f instanceof Error?f.message:String(f);if(!(f instanceof M)){p({error:h});return}T+=1;const j=x(T);p({error:`${h} Trying again in ${j} s.`}),m=setTimeout(N,j*1e3)})};return N(),()=>{s=!1,m&&clearTimeout(m)}},[r?.url,r?.app,r?.inferenceUrl,d,u]);const A=typeof t?.name=="string"?t.name:e,S=t?.transport==="vercel-ai"?"vercel-ai":"ag-ui",U=l.useMemo(()=>({name:A,protocol:S,agentSpecId:e,model:C[e]?.model,description:C[e]?.description,...t?{createPayload:t}:{}}),[e,A,S,t]),v=l.useMemo(()=>P(t),[t]),{runtime:c,status:E,error:_}=R({agentSpecId:e,agentConfig:U,...v?{appLaunch:v}:{},variant:"cloud-pydanticai",autoStart:u&&!i,autoCreateAgent:u&&!i});return l.useEffect(()=>{if(!(!a||!u)){if(r){if(g.error){a.setState("error",g.error);return}if(!g.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(_){a.setState("error",_);return}if(!c?.jupyterBaseUrl){a.setState(E==="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,E,_,i,n,r,g]),null}export{O as DatalayerAgentBridge,O as default};