@datalayer/agent-runtimes 1.5.80 → 1.5.82

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 (384) hide show
  1. package/dist-embed/chunks/ChatView-uYgfl4KN.js +32 -0
  2. package/dist-embed/chunks/{DeckComponent-Cd1sbs9L.js → DeckComponent-DS42k_Ud.js} +2 -2
  3. package/dist-embed/chunks/{DocumentView-ssQ835Wa.js → DocumentView-DTZjQfu5.js} +1 -1
  4. package/dist-embed/chunks/{EphemeralDocument-DNziilOG.js → EphemeralDocument-BcxH847U.js} +1 -1
  5. package/dist-embed/chunks/{ExcalidrawComponent-CQ4BeoQt.js → ExcalidrawComponent-D-DdWmbS.js} +1 -1
  6. package/dist-embed/chunks/{ExcalidrawModal-8W-b1OmA.js → ExcalidrawModal-Bgdc7pqI.js} +1 -1
  7. package/dist-embed/chunks/{JupyterLexicalExtension-BLYM-DTn.js → JupyterLexicalExtension-2cZTnnOv.js} +6 -6
  8. package/dist-embed/chunks/{YouTubePlugin-BgZG6fCA.js → YouTubePlugin-CcQPagoa.js} +1 -1
  9. package/dist-embed/chunks/{abnfDiagram-VCTEODGH-CHerLzZ0.js → abnfDiagram-VCTEODGH-BHwrDUSK.js} +1 -1
  10. package/dist-embed/chunks/{abnfDiagram-VCTEODGH-BdOOK2nG.js → abnfDiagram-VCTEODGH-BlJ0uJzg.js} +1 -1
  11. package/dist-embed/chunks/{abnfDiagram-VCTEODGH-CsKFU4Ej.js → abnfDiagram-VCTEODGH-BnGI-UIs.js} +1 -1
  12. package/dist-embed/chunks/{ar-SA-G6X2FPQ2-Bcy9b6jn.js → ar-SA-G6X2FPQ2-CqfmhD9l.js} +1 -1
  13. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-C8jjE2mY.js → architectureDiagram-5GKGNRK7-BAJb7Shu.js} +1 -1
  14. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-iDgRBR0a.js → architectureDiagram-5GKGNRK7-CuAYWP6N.js} +1 -1
  15. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-GukKr_g1.js → architectureDiagram-5GKGNRK7-DLWJva8u.js} +1 -1
  16. package/dist-embed/chunks/{az-AZ-76LH7QW2-Bzy5rt95.js → az-AZ-76LH7QW2-mjoZR4wa.js} +1 -1
  17. package/dist-embed/chunks/{bg-BG-XCXSNQG7-C3mQkAoD.js → bg-BG-XCXSNQG7-DU3y3x4T.js} +1 -1
  18. package/dist-embed/chunks/{blockDiagram-868be97b-D3BurtSN.js → blockDiagram-868be97b-DRJ_ofQv.js} +1 -1
  19. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-DH6ta7S_.js → blockDiagram-I7D4REHJ-BZLSOJfR.js} +1 -1
  20. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-oDRNhSU2.js → blockDiagram-I7D4REHJ-DO_8w9-1.js} +1 -1
  21. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-edfypROz.js → blockDiagram-I7D4REHJ-XN1bU5Ii.js} +1 -1
  22. package/dist-embed/chunks/{bn-BD-2XOGV67Q-DHwDUFeg.js → bn-BD-2XOGV67Q-C4V6q1wT.js} +1 -1
  23. package/dist-embed/chunks/{c4Diagram-3f4bdde3-Dmbl9p6m.js → c4Diagram-3f4bdde3-B-w3s9rx.js} +1 -1
  24. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-B6NHHf7w.js → c4Diagram-7LVT6UL2-B28HS4IQ.js} +1 -1
  25. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-CR3iQQ6O.js → c4Diagram-7LVT6UL2-BACgR0fs.js} +1 -1
  26. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-BD3Ld97M.js → c4Diagram-7LVT6UL2-DwLtBd8O.js} +1 -1
  27. package/dist-embed/chunks/{ca-ES-6MX7JW3Y-CWMZCfjI.js → ca-ES-6MX7JW3Y-DzJcx7TI.js} +1 -1
  28. package/dist-embed/chunks/{chunk-2Q5K7J3B-9xCosPaH.js → chunk-2Q5K7J3B-BqK0jhMM.js} +1 -1
  29. package/dist-embed/chunks/{chunk-2Q5K7J3B-ZWnuQ6M2.js → chunk-2Q5K7J3B-Cv2QB080.js} +1 -1
  30. package/dist-embed/chunks/{chunk-2Q5K7J3B-H_DA_jTG.js → chunk-2Q5K7J3B-Pu-PawH9.js} +1 -1
  31. package/dist-embed/chunks/{chunk-5VM5RSS4-BhWUyelG.js → chunk-5VM5RSS4-BIWdC4YC.js} +1 -1
  32. package/dist-embed/chunks/{chunk-5VM5RSS4-7q2jPq-I.js → chunk-5VM5RSS4-DI3POCyE.js} +1 -1
  33. package/dist-embed/chunks/{chunk-5VM5RSS4-C2EZUNrH.js → chunk-5VM5RSS4-DthkbWcR.js} +1 -1
  34. package/dist-embed/chunks/{chunk-F27PBJKO-B9wgW70d.js → chunk-F27PBJKO-BY-_X1Ii.js} +1 -1
  35. package/dist-embed/chunks/{chunk-F27PBJKO-hasZYXJc.js → chunk-F27PBJKO-DcCqnHNB.js} +1 -1
  36. package/dist-embed/chunks/{chunk-F27PBJKO-iAw_9Xtd.js → chunk-F27PBJKO-dSqM-5aG.js} +1 -1
  37. package/dist-embed/chunks/{chunk-IMKFNOWR-CU661Hle.js → chunk-IMKFNOWR-BYkz40H8.js} +1 -1
  38. package/dist-embed/chunks/{chunk-IMKFNOWR-CR2LIHPi.js → chunk-IMKFNOWR-DPv-w5lK.js} +1 -1
  39. package/dist-embed/chunks/{chunk-IMKFNOWR-DhXkXQPV.js → chunk-IMKFNOWR-O7b2kauh.js} +1 -1
  40. package/dist-embed/chunks/{chunk-JWPE2WC7-B40RAhYQ.js → chunk-JWPE2WC7-779bmDSv.js} +1 -1
  41. package/dist-embed/chunks/{chunk-JWPE2WC7-DaBG37yC.js → chunk-JWPE2WC7-Be4x4L6B.js} +1 -1
  42. package/dist-embed/chunks/{chunk-JWPE2WC7-D4pNFsZF.js → chunk-JWPE2WC7-th9umQbo.js} +1 -1
  43. package/dist-embed/chunks/{chunk-POPQ4Y6H-CNc-_UkX.js → chunk-POPQ4Y6H-B097KlFr.js} +1 -1
  44. package/dist-embed/chunks/{chunk-POPQ4Y6H-PC7NS4ab.js → chunk-POPQ4Y6H-CYXeyiko.js} +1 -1
  45. package/dist-embed/chunks/{chunk-POPQ4Y6H-WjTzJISs.js → chunk-POPQ4Y6H-C_fIQaTN.js} +1 -1
  46. package/dist-embed/chunks/{chunk-SVP7TREG-BgVpHjUA.js → chunk-SVP7TREG-BZUv4JX-.js} +1 -1
  47. package/dist-embed/chunks/{chunk-SVP7TREG-bq0J6tH_.js → chunk-SVP7TREG-YgahXZy2.js} +1 -1
  48. package/dist-embed/chunks/{chunk-SVP7TREG-B-LR0OEY.js → chunk-SVP7TREG-dXH2Z6GR.js} +1 -1
  49. package/dist-embed/chunks/{chunk-TICWLB2K-D0mlrZUj.js → chunk-TICWLB2K-C54VOu9Q.js} +1 -1
  50. package/dist-embed/chunks/{chunk-TICWLB2K-BKUWUi4x.js → chunk-TICWLB2K-DIe5qIoj.js} +1 -1
  51. package/dist-embed/chunks/{chunk-TICWLB2K-BV_9f6ak.js → chunk-TICWLB2K-YWBHGfC8.js} +1 -1
  52. package/dist-embed/chunks/{chunk-XXDRQBXY-fV8doVJJ.js → chunk-XXDRQBXY-B1faoehH.js} +1 -1
  53. package/dist-embed/chunks/{chunk-XXDRQBXY-CFD4Agg8.js → chunk-XXDRQBXY-CNEiTt6v.js} +1 -1
  54. package/dist-embed/chunks/{chunk-XXDRQBXY-DF8wFPCi.js → chunk-XXDRQBXY-f3FbRmyb.js} +1 -1
  55. package/dist-embed/chunks/{classDiagram-ZZMXUADV-B2RPE1Bl.js → classDiagram-ZZMXUADV-Cd7eEzi4.js} +1 -1
  56. package/dist-embed/chunks/{classDiagram-ZZMXUADV-B0pbDswj.js → classDiagram-ZZMXUADV-DuuqqgIP.js} +1 -1
  57. package/dist-embed/chunks/{classDiagram-ZZMXUADV-BSdRgwsr.js → classDiagram-ZZMXUADV-q1xSQX4O.js} +1 -1
  58. package/dist-embed/chunks/{classDiagram-f62afe4f-tD890DEl.js → classDiagram-f62afe4f-ByEt3lSF.js} +1 -1
  59. package/dist-embed/chunks/{classDiagram-v2-604399ef-DReIuoeI.js → classDiagram-v2-604399ef-NBzfAORG.js} +1 -1
  60. package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-B2RPE1Bl.js → classDiagram-v2-VYDZK3BY-Cd7eEzi4.js} +1 -1
  61. package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-B0pbDswj.js → classDiagram-v2-VYDZK3BY-DuuqqgIP.js} +1 -1
  62. package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-BSdRgwsr.js → classDiagram-v2-VYDZK3BY-q1xSQX4O.js} +1 -1
  63. package/dist-embed/chunks/{cose-bilkent-JH36ORCC-CGF9N16A.js → cose-bilkent-JH36ORCC-BiEPnrEj.js} +1 -1
  64. package/dist-embed/chunks/{cose-bilkent-JH36ORCC-D976z1sp.js → cose-bilkent-JH36ORCC-DfR5QnyH.js} +1 -1
  65. package/dist-embed/chunks/{cose-bilkent-JH36ORCC-BS_pJML-.js → cose-bilkent-JH36ORCC-DzJSYCRG.js} +1 -1
  66. package/dist-embed/chunks/{createText-aed3d8b3-1eVJ8jxH.js → createText-aed3d8b3-6mXespHo.js} +1 -1
  67. package/dist-embed/chunks/{cs-CZ-2BRQDIVT-B_pe2qj9.js → cs-CZ-2BRQDIVT-BKep5hDJ.js} +1 -1
  68. package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-Cil4cm66.js → cynefinDiagram-5FMLGOSQ-B7qhaV93.js} +1 -1
  69. package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-AxJwZ7KT.js → cynefinDiagram-5FMLGOSQ-DwHfF9hE.js} +1 -1
  70. package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-D7ioXav_.js → cynefinDiagram-5FMLGOSQ-_vxJMyqw.js} +1 -1
  71. package/dist-embed/chunks/{da-DK-5WZEPLOC-CGWCNcJj.js → da-DK-5WZEPLOC-DlOP6lOL.js} +1 -1
  72. package/dist-embed/chunks/{dagre-GXQ25YYZ-DauBFK-x.js → dagre-GXQ25YYZ-Bjepw68A.js} +1 -1
  73. package/dist-embed/chunks/{dagre-GXQ25YYZ-B8Ip03td.js → dagre-GXQ25YYZ-DFR_CaEv.js} +1 -1
  74. package/dist-embed/chunks/{dagre-GXQ25YYZ-Cp78_L9l.js → dagre-GXQ25YYZ-Ds0JPzDS.js} +1 -1
  75. package/dist-embed/chunks/{de-DE-XR44H4JA-DTdq2h_G.js → de-DE-XR44H4JA-BRk2-hl3.js} +1 -1
  76. package/dist-embed/chunks/{diagram-S7CK7UJ4-LsSU5PzE.js → diagram-S7CK7UJ4-BwwRJlNT.js} +1 -1
  77. package/dist-embed/chunks/{diagram-S7CK7UJ4-BxRBCYVP.js → diagram-S7CK7UJ4-DIMHIP_O.js} +1 -1
  78. package/dist-embed/chunks/{diagram-S7CK7UJ4-cLOCifii.js → diagram-S7CK7UJ4-DjMCZvT1.js} +1 -1
  79. package/dist-embed/chunks/{diagram-UQ7AKVKN-BvgP6_rf.js → diagram-UQ7AKVKN-BqqL4ZW6.js} +1 -1
  80. package/dist-embed/chunks/{diagram-UQ7AKVKN-BK4qe_eB.js → diagram-UQ7AKVKN-COGYRNFS.js} +1 -1
  81. package/dist-embed/chunks/{diagram-UQ7AKVKN-CoIPlGw-.js → diagram-UQ7AKVKN-D0P7rl1p.js} +1 -1
  82. package/dist-embed/chunks/{diagram-VSXAHHWV-Cy8iWh4H.js → diagram-VSXAHHWV-ChB-FOnw.js} +1 -1
  83. package/dist-embed/chunks/{diagram-VSXAHHWV-CIhWkrRX.js → diagram-VSXAHHWV-DsMS8foW.js} +1 -1
  84. package/dist-embed/chunks/{diagram-VSXAHHWV-DWWQ-Ga9.js → diagram-VSXAHHWV-DvxkVQ-E.js} +1 -1
  85. package/dist-embed/chunks/{diagram-VX7I27RA-43SwkivD.js → diagram-VX7I27RA-BIxeQH4u.js} +1 -1
  86. package/dist-embed/chunks/{diagram-VX7I27RA-CQM8aGRO.js → diagram-VX7I27RA-Cg10qtez.js} +1 -1
  87. package/dist-embed/chunks/{diagram-VX7I27RA-CCx8R8FK.js → diagram-VX7I27RA-Cuf1tsVI.js} +1 -1
  88. package/dist-embed/chunks/{diagram-Z3DM3KII-Da75Rc5Q.js → diagram-Z3DM3KII-B22XcXbf.js} +1 -1
  89. package/dist-embed/chunks/{diagram-Z3DM3KII-DrILxydN.js → diagram-Z3DM3KII-CNWiLQR4.js} +1 -1
  90. package/dist-embed/chunks/{diagram-Z3DM3KII-Dqcrl8-1.js → diagram-Z3DM3KII-DsRXBtfM.js} +1 -1
  91. package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-CwBVaHP2.js → ebnfDiagram-PWID7BFC-81p8Ls5M.js} +1 -1
  92. package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-DC-Zam6d.js → ebnfDiagram-PWID7BFC-BiAjk2HF.js} +1 -1
  93. package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-Klx1dPe6.js → ebnfDiagram-PWID7BFC-C31mpWW_.js} +1 -1
  94. package/dist-embed/chunks/{edges-b2856ca0-B3ybuHDU.js → edges-b2856ca0-Bup5nxkN.js} +1 -1
  95. package/dist-embed/chunks/{el-GR-BZB4AONW-qdInZt55.js → el-GR-BZB4AONW-BwGTv3Ip.js} +1 -1
  96. package/dist-embed/chunks/{erDiagram-5d81789a-HZ-VLc2f.js → erDiagram-5d81789a-DFzRdHol.js} +1 -1
  97. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-DmlOR1VA.js → erDiagram-RLTQ6QDP-BdoySyRQ.js} +1 -1
  98. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-6YXMuidI.js → erDiagram-RLTQ6QDP-BrpNZMOa.js} +1 -1
  99. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-CNO4pVhU.js → erDiagram-RLTQ6QDP-OQO_sYyP.js} +1 -1
  100. package/dist-embed/chunks/{es-ES-U4NZUMDT-CbVgghD5.js → es-ES-U4NZUMDT-tz36zNcB.js} +1 -1
  101. package/dist-embed/chunks/{eu-ES-A7QVB2H4-Cfyi4-QV.js → eu-ES-A7QVB2H4-CGBVWQ14.js} +1 -1
  102. package/dist-embed/chunks/{fa-IR-HGAKTJCU-Bpz9Yk2c.js → fa-IR-HGAKTJCU-CoO7_ncQ.js} +1 -1
  103. package/dist-embed/chunks/{fi-FI-Z5N7JZ37-CnNP_ASI.js → fi-FI-Z5N7JZ37-DPjdvbO9.js} +1 -1
  104. package/dist-embed/chunks/{flowDb-185abca5-7Nn2obHG.js → flowDb-185abca5-au1lLLx1.js} +1 -1
  105. package/dist-embed/chunks/{flowDiagram-1629c991-CnvM_psw.js → flowDiagram-1629c991-BeGPcZ6y.js} +1 -1
  106. package/dist-embed/chunks/{flowDiagram-HODETNUW-Bsl5oOFb.js → flowDiagram-HODETNUW-CYTfSgr_.js} +1 -1
  107. package/dist-embed/chunks/{flowDiagram-HODETNUW-DpJLPDJS.js → flowDiagram-HODETNUW-D1SiifhW.js} +1 -1
  108. package/dist-embed/chunks/{flowDiagram-HODETNUW-_PPo6xx4.js → flowDiagram-HODETNUW-ZrGwOdyu.js} +1 -1
  109. package/dist-embed/chunks/{flowDiagram-v2-1d953310-TkF25UVC.js → flowDiagram-v2-1d953310-DjmvuK3n.js} +1 -1
  110. package/dist-embed/chunks/{flowchart-elk-definition-6df44142-CwiGfEuJ.js → flowchart-elk-definition-6df44142-vDckeTZu.js} +1 -1
  111. package/dist-embed/chunks/{fr-FR-RHASNOE6-CXIU81zC.js → fr-FR-RHASNOE6-Cmv7wG_0.js} +1 -1
  112. package/dist-embed/chunks/{ganttDiagram-3b0b3873-DeouFDZE.js → ganttDiagram-3b0b3873-DVQKpltu.js} +1 -1
  113. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-BeK3rGHM.js → ganttDiagram-EL5Y4UJY-BORJG_RB.js} +1 -1
  114. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-B3ddBLm-.js → ganttDiagram-EL5Y4UJY-BqzFsgGN.js} +1 -1
  115. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-DnJUq63S.js → ganttDiagram-EL5Y4UJY-YQkzQd01.js} +1 -1
  116. package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-CKVR9Ajq.js → gitGraphDiagram-WWUBYQGX-AAVjuV14.js} +1 -1
  117. package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-u7eHxrMk.js → gitGraphDiagram-WWUBYQGX-BKLKcFoS.js} +1 -1
  118. package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-DkYi8eWr.js → gitGraphDiagram-WWUBYQGX-D1o9osXz.js} +1 -1
  119. package/dist-embed/chunks/{gitGraphDiagram-f01e8bc2-mCCRVzIs.js → gitGraphDiagram-f01e8bc2-CJSbiZjx.js} +1 -1
  120. package/dist-embed/chunks/{gl-ES-HMX3MZ6V-Do1RdVfG.js → gl-ES-HMX3MZ6V-CRdkmw5y.js} +1 -1
  121. package/dist-embed/chunks/{he-IL-6SHJWFNN-NcTscmv6.js → he-IL-6SHJWFNN-DvMw5Cul.js} +1 -1
  122. package/dist-embed/chunks/{hi-IN-IWLTKZ5I-CyNpoQ12.js → hi-IN-IWLTKZ5I-DJlp0nwg.js} +1 -1
  123. package/dist-embed/chunks/{hu-HU-A5ZG7DT2-Bzge2Fdz.js → hu-HU-A5ZG7DT2-CzRriMFn.js} +1 -1
  124. package/dist-embed/chunks/{id-ID-SAP4L64H-DaNcoDhl.js → id-ID-SAP4L64H-DIWyOwkf.js} +1 -1
  125. package/dist-embed/chunks/{index-9bae90f3-CzUk5Hhq.js → index-9bae90f3-CSxqLQwc.js} +1 -1
  126. package/dist-embed/chunks/{index-Cx_cIRez.js → index-B8BulvHI.js} +1 -1
  127. package/dist-embed/chunks/{index-CLdL3h_Z.js → index-BCGvaYVt.js} +1 -1
  128. package/dist-embed/chunks/{index-BQdtKMKk.js → index-CbnU-kk0.js} +4 -4
  129. package/dist-embed/chunks/index-CeTMYE1j.js +1 -0
  130. package/dist-embed/chunks/{index-lOJZWhTu.js → index-DY5U0msZ.js} +4 -4
  131. package/dist-embed/chunks/{index-D_vehxcD.js → index-DxN3ZybZ.js} +1 -1
  132. package/dist-embed/chunks/{infoDiagram-27XIBGKW-CrHEoNfn.js → infoDiagram-27XIBGKW-BnxVO2UJ.js} +1 -1
  133. package/dist-embed/chunks/{infoDiagram-27XIBGKW-DiC5_yjB.js → infoDiagram-27XIBGKW-COSYMCha.js} +1 -1
  134. package/dist-embed/chunks/{infoDiagram-27XIBGKW-C3YByzAX.js → infoDiagram-27XIBGKW-CrDC6noC.js} +1 -1
  135. package/dist-embed/chunks/{infoDiagram-a29d40f1-DRVyx4Bf.js → infoDiagram-a29d40f1-oSOWBNcS.js} +1 -1
  136. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-B87JmQRn.js → ishikawaDiagram-5VMMS53U-Cabl3zHc.js} +1 -1
  137. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-DkW3YLz9.js → ishikawaDiagram-5VMMS53U-Dy7sKgzH.js} +1 -1
  138. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-3WGbru46.js → ishikawaDiagram-5VMMS53U-orLa617t.js} +1 -1
  139. package/dist-embed/chunks/{it-IT-JPQ66NNP-6fWP-4Pk.js → it-IT-JPQ66NNP--0R7ykIn.js} +1 -1
  140. package/dist-embed/chunks/{ja-JP-DBVTYXUO-TOPcUfq8.js → ja-JP-DBVTYXUO-BceLsdOT.js} +1 -1
  141. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-BZWmkUfk.js → journeyDiagram-3NMN7TZE-CFX02NzG.js} +1 -1
  142. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-BcfZXfHF.js → journeyDiagram-3NMN7TZE-DK2YyxiL.js} +1 -1
  143. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-BjO5pIr-.js → journeyDiagram-3NMN7TZE-YkKUQWKF.js} +1 -1
  144. package/dist-embed/chunks/{journeyDiagram-95396277-D_QLiVq4.js → journeyDiagram-95396277-CU6tIrkG.js} +1 -1
  145. package/dist-embed/chunks/{kaa-6HZHGXH3-WPmptgZr.js → kaa-6HZHGXH3-DmBIoS2A.js} +1 -1
  146. package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-CMOAXrZA.js → kab-KAB-ZGHBKWFO-FOhJJBEr.js} +1 -1
  147. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-D9d45rsU.js → kanban-definition-UXKFOSKX-BluwjAGS.js} +1 -1
  148. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-B84ZaZEy.js → kanban-definition-UXKFOSKX-C14qnrHj.js} +1 -1
  149. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-DKCJ8_n0.js → kanban-definition-UXKFOSKX-C4dKZPut.js} +1 -1
  150. package/dist-embed/chunks/{kk-KZ-P5N5QNE5-B6ezOPzr.js → kk-KZ-P5N5QNE5-Cfl-4Zso.js} +1 -1
  151. package/dist-embed/chunks/{km-KH-HSX4SM5Z-C84QUPbc.js → km-KH-HSX4SM5Z-CkPlUErW.js} +1 -1
  152. package/dist-embed/chunks/{ko-KR-MTYHY66A-cuBEuTL_.js → ko-KR-MTYHY66A-ClNehjJR.js} +1 -1
  153. package/dist-embed/chunks/{ku-TR-6OUDTVRD-B9KdlCAR.js → ku-TR-6OUDTVRD-BWAQD572.js} +1 -1
  154. package/dist-embed/chunks/{layout-Do3wJC1j.js → layout-BJZx1DET.js} +1 -1
  155. package/dist-embed/chunks/{layout-Dx5Hzkor.js → layout-Cj2S0_6r.js} +1 -1
  156. package/dist-embed/chunks/{layout-C6Twj1mW.js → layout-CrZLRdHC.js} +1 -1
  157. package/dist-embed/chunks/{lt-LT-XHIRWOB4-B39JwBGi.js → lt-LT-XHIRWOB4-CdVgmT3F.js} +1 -1
  158. package/dist-embed/chunks/{lv-LV-5QDEKY6T-8WReOaa7.js → lv-LV-5QDEKY6T-DhvrkAd6.js} +1 -1
  159. package/dist-embed/chunks/{mermaid.core-D0955PCw.js → mermaid.core-CN-kUGXQ.js} +4 -4
  160. package/dist-embed/chunks/{mermaid.core-D98kc0OO.js → mermaid.core-Cb8_A6yp.js} +3 -3
  161. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-D86IPkt3.js → mindmap-definition-YA3MSWOX-BI8iAkoX.js} +1 -1
  162. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-5wZuXgB8.js → mindmap-definition-YA3MSWOX-C3PLDJT4.js} +1 -1
  163. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-BURkGTKI.js → mindmap-definition-YA3MSWOX-CLcKjJkV.js} +1 -1
  164. package/dist-embed/chunks/{mindmap-definition-e4c1d938-UbbfpF-a.js → mindmap-definition-e4c1d938-BR3XAv_v.js} +1 -1
  165. package/dist-embed/chunks/{mr-IN-CRQNXWMA-DUaS8VWx.js → mr-IN-CRQNXWMA-EGNXrciM.js} +1 -1
  166. package/dist-embed/chunks/{my-MM-5M5IBNSE-BdJYwQXg.js → my-MM-5M5IBNSE-B-8cjGNb.js} +1 -1
  167. package/dist-embed/chunks/{nb-NO-T6EIAALU-C_p5yu1z.js → nb-NO-T6EIAALU-C49vGMvQ.js} +1 -1
  168. package/dist-embed/chunks/{nl-NL-IS3SIHDZ-DM5qgcCp.js → nl-NL-IS3SIHDZ-Bop5b6pF.js} +1 -1
  169. package/dist-embed/chunks/{nn-NO-6E72VCQL-BuX1DqI5.js → nn-NO-6E72VCQL-CztS-gYX.js} +1 -1
  170. package/dist-embed/chunks/{oc-FR-POXYY2M6-BAWljcaf.js → oc-FR-POXYY2M6-D5wo47w8.js} +1 -1
  171. package/dist-embed/chunks/{pa-IN-N4M65BXN-2iyq8qxX.js → pa-IN-N4M65BXN-USnnio2R.js} +1 -1
  172. package/dist-embed/chunks/{pegDiagram-XKGWAZYB-BjrOX_Ki.js → pegDiagram-XKGWAZYB-BHSFNuDr.js} +1 -1
  173. package/dist-embed/chunks/{pegDiagram-XKGWAZYB-BJAdJVqh.js → pegDiagram-XKGWAZYB-CxqsEvHB.js} +1 -1
  174. package/dist-embed/chunks/{pegDiagram-XKGWAZYB-CyuSADYr.js → pegDiagram-XKGWAZYB-D_KkFB8O.js} +1 -1
  175. package/dist-embed/chunks/{percentages-BXMCSKIN-C9b5dzpq.js → percentages-BXMCSKIN-Qs237i5f.js} +5 -5
  176. package/dist-embed/chunks/{pieDiagram-E7YTZNPT-C55wHgO0.js → pieDiagram-E7YTZNPT-C01d4vFA.js} +1 -1
  177. package/dist-embed/chunks/{pieDiagram-E7YTZNPT-ni9UMEzV.js → pieDiagram-E7YTZNPT-DrPlYr3y.js} +1 -1
  178. package/dist-embed/chunks/{pieDiagram-E7YTZNPT-GvxNnk0x.js → pieDiagram-E7YTZNPT-XvKrNQIe.js} +1 -1
  179. package/dist-embed/chunks/{pieDiagram-c941bede-DTmViAsB.js → pieDiagram-c941bede-5Q4eh0ys.js} +1 -1
  180. package/dist-embed/chunks/{pl-PL-T2D74RX3-C6nLJHhB.js → pl-PL-T2D74RX3-BzossiHE.js} +1 -1
  181. package/dist-embed/chunks/{pt-BR-5N22H2LF-B1adz-DU.js → pt-BR-5N22H2LF-DqZAv4oC.js} +1 -1
  182. package/dist-embed/chunks/{pt-PT-UZXXM6DQ-BCZpI4LV.js → pt-PT-UZXXM6DQ-CfFta-9l.js} +1 -1
  183. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-CufBEqrC.js → quadrantDiagram-AXDQQJYC-Ba9Uoul2.js} +1 -1
  184. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-BCeMrGXB.js → quadrantDiagram-AXDQQJYC-Cayreizb.js} +1 -1
  185. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-Yg2WGHWh.js → quadrantDiagram-AXDQQJYC-qHBK2GfL.js} +1 -1
  186. package/dist-embed/chunks/{quadrantDiagram-cf8b8fe0-BZAbhmbg.js → quadrantDiagram-cf8b8fe0-baOXG64t.js} +1 -1
  187. package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-BAXhb26s.js → railroadDiagram-O6MQD6OU-BoiPFsc0.js} +1 -1
  188. package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-6tStysfX.js → railroadDiagram-O6MQD6OU-Ck3rOcDX.js} +1 -1
  189. package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-Df7m1mT4.js → railroadDiagram-O6MQD6OU-DPbTwglx.js} +1 -1
  190. package/dist-embed/chunks/{requirementDiagram-53bda41b-DNqx3JRF.js → requirementDiagram-53bda41b--Vif0cFL.js} +1 -1
  191. package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-CmXBYo40.js → requirementDiagram-BXWQKSXE-BU62-ZX8.js} +1 -1
  192. package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-0AqPqv7a.js → requirementDiagram-BXWQKSXE-BnpFahSo.js} +1 -1
  193. package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-B0SL6Gqb.js → requirementDiagram-BXWQKSXE-TxEizGOu.js} +1 -1
  194. package/dist-embed/chunks/{ro-RO-JPDTUUEW-BPM7y_F2.js → ro-RO-JPDTUUEW-DeKMiDGM.js} +1 -1
  195. package/dist-embed/chunks/{ru-RU-B4JR7IUQ-UViKo8dy.js → ru-RU-B4JR7IUQ-DwcP27bd.js} +1 -1
  196. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-rQsp_j9w.js → sankeyDiagram-P5KCCOFB-BZdt2wZF.js} +1 -1
  197. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-CktuQIU1.js → sankeyDiagram-P5KCCOFB-Be7ybx8L.js} +1 -1
  198. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-CqcWOAyy.js → sankeyDiagram-P5KCCOFB-BvBkWEs8.js} +1 -1
  199. package/dist-embed/chunks/{sankeyDiagram-c3ef121a-4-5C_fXA.js → sankeyDiagram-c3ef121a-DG1UM3l4.js} +1 -1
  200. package/dist-embed/chunks/{sequenceDiagram-82a5b84f-DedJ5qnD.js → sequenceDiagram-82a5b84f-UdVxURsq.js} +1 -1
  201. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-Br4F1sd7.js → sequenceDiagram-WJ2MYXX4-BCfarclu.js} +1 -1
  202. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-BBGHED3s.js → sequenceDiagram-WJ2MYXX4-D7c_CoMJ.js} +1 -1
  203. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-GMFparx1.js → sequenceDiagram-WJ2MYXX4-Dg0wfvkN.js} +1 -1
  204. package/dist-embed/chunks/{si-LK-N5RQ5JYF-D7TIYEDr.js → si-LK-N5RQ5JYF-d-F0Cewp.js} +1 -1
  205. package/dist-embed/chunks/{sizeCapture-INFHLROL-8qFOiWrK.js → sizeCapture-INFHLROL-DMANNAaY.js} +1 -1
  206. package/dist-embed/chunks/{sizeCapture-INFHLROL-C_M5Nl06.js → sizeCapture-INFHLROL-Dj0ydwKk.js} +1 -1
  207. package/dist-embed/chunks/{sizeCapture-INFHLROL-BNuVN7vX.js → sizeCapture-INFHLROL-DlIgxaWS.js} +1 -1
  208. package/dist-embed/chunks/{sk-SK-C5VTKIMK-CQedcNlJ.js → sk-SK-C5VTKIMK-BgobCs_4.js} +1 -1
  209. package/dist-embed/chunks/{sl-SI-NN7IZMDC-BX1W51zJ.js → sl-SI-NN7IZMDC-BLiLsQKQ.js} +1 -1
  210. package/dist-embed/chunks/{stateDiagram-43e79a5f-C-TVhCrM.js → stateDiagram-43e79a5f-CNvh6hi1.js} +1 -1
  211. package/dist-embed/chunks/{stateDiagram-D77RDMKH-tqnmMQUf.js → stateDiagram-D77RDMKH-B57tGlQp.js} +1 -1
  212. package/dist-embed/chunks/{stateDiagram-D77RDMKH-CWrs6KzY.js → stateDiagram-D77RDMKH-D0LWS8oe.js} +1 -1
  213. package/dist-embed/chunks/{stateDiagram-D77RDMKH-XK76naDS.js → stateDiagram-D77RDMKH-DxKAfNML.js} +1 -1
  214. package/dist-embed/chunks/{stateDiagram-v2-2041ed4f-TVcKzajK.js → stateDiagram-v2-2041ed4f-BJpoWqKy.js} +1 -1
  215. package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-D3ZN_IoS.js → stateDiagram-v2-MP3YSRHH-CouGWb0D.js} +1 -1
  216. package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-lpluVNfO.js → stateDiagram-v2-MP3YSRHH-DAJ3mmV7.js} +1 -1
  217. package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-C3MNIg5B.js → stateDiagram-v2-MP3YSRHH-DWVb2don.js} +1 -1
  218. package/dist-embed/chunks/{styles-455b33cd-CIILXOoF.js → styles-455b33cd--c-Q4lAI.js} +1 -1
  219. package/dist-embed/chunks/{styles-f932cba9-CVBMDsh6.js → styles-f932cba9-D41PptLO.js} +1 -1
  220. package/dist-embed/chunks/{styles-fcc2142b-CTOmFTKK.js → styles-fcc2142b-DO_mbuzb.js} +1 -1
  221. package/dist-embed/chunks/{subset-shared.chunk-PVguOYyR.js → subset-shared.chunk-KMJoi0ES.js} +1 -1
  222. package/dist-embed/chunks/{subset-worker.chunk-iWGyr_E5.js → subset-worker.chunk-D4fLKx8W.js} +1 -1
  223. package/dist-embed/chunks/{sv-SE-XGPEYMSR-DI7YcqUR.js → sv-SE-XGPEYMSR-BG1QXCvW.js} +1 -1
  224. package/dist-embed/chunks/{svgDrawCommon-148a3cd9-BCgvh5nL.js → svgDrawCommon-148a3cd9-_sy1MPqQ.js} +1 -1
  225. package/dist-embed/chunks/{swimlanes-42K2YHIH-B9qJ99nD.js → swimlanes-42K2YHIH-DFY4MLTT.js} +1 -1
  226. package/dist-embed/chunks/{swimlanes-42K2YHIH-Ca0PhRmf.js → swimlanes-42K2YHIH-DFhNG700.js} +1 -1
  227. package/dist-embed/chunks/{swimlanes-42K2YHIH-DHcV40DB.js → swimlanes-42K2YHIH-qHdPIKqR.js} +1 -1
  228. package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-BEQKTD21.js → swimlanesDiagram-VR7AAH4N-DLu8qxW1.js} +1 -1
  229. package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-CQ7d-sbG.js → swimlanesDiagram-VR7AAH4N-DfJlYoc0.js} +1 -1
  230. package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-D-2e4UFJ.js → swimlanesDiagram-VR7AAH4N-Di8ZW7vB.js} +1 -1
  231. package/dist-embed/chunks/{ta-IN-2NMHFXQM-OZH5xroe.js → ta-IN-2NMHFXQM-Cwf7MXhM.js} +1 -1
  232. package/dist-embed/chunks/{th-TH-HPSO5L25-gAuWhBpT.js → th-TH-HPSO5L25-BgFIeFdc.js} +1 -1
  233. package/dist-embed/chunks/{timeline-definition-24CTP7MA-CtZZro9U.js → timeline-definition-24CTP7MA-CSnCQHgO.js} +1 -1
  234. package/dist-embed/chunks/{timeline-definition-24CTP7MA-DJcFE1jT.js → timeline-definition-24CTP7MA-EjGuok3K.js} +1 -1
  235. package/dist-embed/chunks/{timeline-definition-24CTP7MA-B8lxEouP.js → timeline-definition-24CTP7MA-jNu4kA6-.js} +1 -1
  236. package/dist-embed/chunks/{timeline-definition-7545f45a-CLycxRtq.js → timeline-definition-7545f45a-DKVkx2iN.js} +1 -1
  237. package/dist-embed/chunks/{tr-TR-DEFEU3FU-DQ0SDuS6.js → tr-TR-DEFEU3FU-B36BzndK.js} +1 -1
  238. package/dist-embed/chunks/{uk-UA-QMV73CPH-7J4e2jng.js → uk-UA-QMV73CPH-BIdgdufZ.js} +1 -1
  239. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-zaNGkt8b.js → vennDiagram-4TSXK5OY-BwJIpWTX.js} +1 -1
  240. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-Ca7szyFH.js → vennDiagram-4TSXK5OY-Ct92LUy3.js} +1 -1
  241. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-BMmQ-DIV.js → vennDiagram-4TSXK5OY-sTUDzxoI.js} +1 -1
  242. package/dist-embed/chunks/{vi-VN-M7AON7JQ-dNpZ5DZ5.js → vi-VN-M7AON7JQ-C_vYqSDJ.js} +1 -1
  243. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-C1VKw6YX.js → wardleyDiagram-VM6X3IG4-CmL9UVda.js} +1 -1
  244. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-Dh0UOrRp.js → wardleyDiagram-VM6X3IG4-D19vZyCA.js} +1 -1
  245. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-D_Q6gtp2.js → wardleyDiagram-VM6X3IG4-pjFMZv0g.js} +1 -1
  246. package/dist-embed/chunks/{xychartDiagram-3f383b91-B-BTwetN.js → xychartDiagram-3f383b91-C9v4_Sav.js} +1 -1
  247. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-D_TaZM0k.js → xychartDiagram-S5SC5T6Z-BR0Sc17V.js} +1 -1
  248. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-4OhI4XQl.js → xychartDiagram-S5SC5T6Z-CVSyvraK.js} +1 -1
  249. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-BQHFHk-x.js → xychartDiagram-S5SC5T6Z-DlWO5eFt.js} +1 -1
  250. package/dist-embed/chunks/{zh-CN-LNUGB5OW-CZSp2g8b.js → zh-CN-LNUGB5OW-yOtUN9v4.js} +1 -1
  251. package/dist-embed/chunks/{zh-HK-E62DVLB3-DUqVOyB_.js → zh-HK-E62DVLB3-Drd2m3yL.js} +1 -1
  252. package/dist-embed/chunks/{zh-TW-RAJ6MFWO-U-TalxxN.js → zh-TW-RAJ6MFWO-CqJCCTAz.js} +1 -1
  253. package/dist-embed/datalayer-app-main.js +13 -13
  254. package/lib/AgentNode.js +9 -9
  255. package/lib/agents/AgentRuntimeChat.js +1 -1
  256. package/lib/api/agents.js +3 -3
  257. package/lib/api/context.js +3 -3
  258. package/lib/api/evals.js +3 -3
  259. package/lib/api/events.js +3 -3
  260. package/lib/api/index.js +2 -2
  261. package/lib/api/notifications.js +3 -3
  262. package/lib/api/output.js +3 -3
  263. package/lib/api/runtimes/checkpoints.js +3 -3
  264. package/lib/api/runtimes/environments.js +3 -3
  265. package/lib/api/runtimes/healthz.js +2 -2
  266. package/lib/api/runtimes/runtimes.js +3 -3
  267. package/lib/api/runtimes/snapshots.js +3 -3
  268. package/lib/api/scheduler/schedules.js +2 -2
  269. package/lib/api/spacer/documents.js +2 -2
  270. package/lib/api/spacer/healthz.js +2 -2
  271. package/lib/api/spacer/items.js +2 -2
  272. package/lib/api/spacer/lexicals.js +2 -2
  273. package/lib/api/spacer/notebooks.js +2 -2
  274. package/lib/api/spacer/spaces.js +3 -3
  275. package/lib/api/spacer/users.js +3 -3
  276. package/lib/apps/core/index.d.ts +12 -0
  277. package/lib/apps/embed/AppEmbed.js +2 -2
  278. package/lib/apps/embed/element.js +1 -1
  279. package/lib/apps/plugins/agents/AnonymousKeyBadge.js +1 -1
  280. package/lib/apps/plugins/app-activity/AppActivity.js +2 -2
  281. package/lib/apps/plugins/app-computer/AppComputer.js +1 -1
  282. package/lib/apps/plugins/app-page/AppPage.js +1 -1
  283. package/lib/apps/plugins/app-rules/AppRulesCard.js +1 -1
  284. package/lib/apps/plugins/app-rules/sessionRulesAction.d.ts +17 -0
  285. package/lib/apps/plugins/app-rules/sessionRulesAction.js +30 -0
  286. package/lib/apps/plugins/assistant/index.js +2 -2
  287. package/lib/apps/plugins/chat/ChatView.js +1 -1
  288. package/lib/apps/plugins/chat/SessionActionsMenu.js +13 -8
  289. package/lib/apps/plugins/chat/sessionActions.js +4 -0
  290. package/lib/apps/plugins/commands/index.js +1 -1
  291. package/lib/apps/plugins/document/openingDocument.js +1 -1
  292. package/lib/apps/plugins/page-layout/TurnPanel.js +1 -1
  293. package/lib/apps/plugins/page-layout/index.js +2 -2
  294. package/lib/apps/presets.js +1 -1
  295. package/lib/chat/ChatFloating.js +1 -1
  296. package/lib/chat/ChatPopupStandalone.js +1 -1
  297. package/lib/chat/ChatSidebar.js +1 -1
  298. package/lib/chat/ChatStandalone.js +1 -1
  299. package/lib/chat/assistant/characters.js +1 -1
  300. package/lib/chat/base/ChatBase.js +1 -1
  301. package/lib/chat/presence/Presence.js +1 -1
  302. package/lib/client/AgentRuntimesClient.js +1 -1
  303. package/lib/client/AgentsMixin.js +1 -1
  304. package/lib/client/mixins/RuntimesMixin.js +1 -1
  305. package/lib/client/mixins/SpacerMixin.js +2 -2
  306. package/lib/client/utils/spacerUtils.js +1 -1
  307. package/lib/components/agents/AgentSummary.js +1 -1
  308. package/lib/components/cards/NotificationEventCard.js +1 -1
  309. package/lib/components/cards/OutputCard.js +1 -1
  310. package/lib/components/cards/ToolApprovalCard.js +1 -1
  311. package/lib/components/code-sandboxes/CodeSandboxLauncher.js +6 -6
  312. package/lib/components/code-sandboxes/CodeSandboxPickerCell.js +1 -1
  313. package/lib/components/context/SpaceSelect.js +1 -1
  314. package/lib/components/flashes/FlashDisclaimer.js +1 -1
  315. package/lib/components/inspector/AgentInspector.js +1 -1
  316. package/lib/components/inspector/agentSpans.js +1 -1
  317. package/lib/components/progress/CreditsIndicator.js +2 -2
  318. package/lib/components/progress/index.js +1 -1
  319. package/lib/components/scheduler/ScheduleMenu.js +1 -1
  320. package/lib/components/snapshots/SandboxSnapshotMenu.js +2 -2
  321. package/lib/components/snippets/SnippetDialog.js +1 -1
  322. package/lib/components/teams/SceneTranscript.js +1 -1
  323. package/lib/context/CostUsageChart.js +1 -1
  324. package/lib/context/TokenUsageChart.js +1 -1
  325. package/lib/context/TurnGraphChart.js +1 -1
  326. package/lib/examples/AgentA2ATeamExample.js +2 -2
  327. package/lib/examples/AgentCheckpointsExample.js +1 -1
  328. package/lib/examples/AgentCodemodeExample.js +1 -1
  329. package/lib/examples/AgentEvalsExample.js +1 -1
  330. package/lib/examples/AgentGuardrailsExample.js +2 -2
  331. package/lib/examples/AgentInferenceProviderExample.js +1 -1
  332. package/lib/examples/AgentMCPExample.js +1 -1
  333. package/lib/examples/AgentMemoryExample.js +1 -1
  334. package/lib/examples/AgentMonitoringExample.js +1 -1
  335. package/lib/examples/AgentNotificationsExample.js +1 -1
  336. package/lib/examples/AgentOtelExample.js +1 -1
  337. package/lib/examples/AgentOutputsExample.js +1 -1
  338. package/lib/examples/AgentSkillsExample.js +1 -1
  339. package/lib/examples/AgentToolApprovalsExample.js +1 -1
  340. package/lib/examples/AgentTriggersExample.js +1 -1
  341. package/lib/examples/AgentspecsExample.js +1 -1
  342. package/lib/examples/LoopWorkspaceEmbed.js +1 -1
  343. package/lib/examples/ScenesExample.js +2 -2
  344. package/lib/examples/VoiceChatExample.js +1 -1
  345. package/lib/examples/components/AuthRequiredView.js +2 -2
  346. package/lib/examples/components/HeaderControls.js +1 -1
  347. package/lib/examples/main.js +4 -4
  348. package/lib/examples2/main.js +1 -1
  349. package/lib/hooks/index.js +1 -1
  350. package/lib/hooks/useAIAgentsWebSocket.js +2 -2
  351. package/lib/hooks/useAgentRuntimes.js +3 -3
  352. package/lib/hooks/useCellOutputshot.js +1 -1
  353. package/lib/hooks/useCheckpoints.js +6 -6
  354. package/lib/hooks/useMonitoring.js +1 -1
  355. package/lib/hooks/useNotifications.js +2 -2
  356. package/lib/hooks/useProjects.js +1 -1
  357. package/lib/jupyter/serverExecution.js +2 -2
  358. package/lib/mocks/models/CourseMock.js +2 -2
  359. package/lib/mocks/models/SpaceMock.js +2 -2
  360. package/lib/models/CodeSandboxSnapshotDTO.js +1 -1
  361. package/lib/models/EnvironmentDTO.js +1 -1
  362. package/lib/models/LexicalDTO.js +2 -2
  363. package/lib/models/NotebookDTO.js +2 -2
  364. package/lib/models/Page.js +1 -1
  365. package/lib/models/RuntimeDTO.js +1 -1
  366. package/lib/models/Space.js +2 -2
  367. package/lib/models/SpaceDTO.js +2 -2
  368. package/lib/models/index.js +1 -1
  369. package/lib/portable/sessions.d.ts +4 -0
  370. package/lib/portable/sessions.js +4 -0
  371. package/lib/runtimes/actions.js +1 -1
  372. package/lib/services/DatalayerServiceManager.js +2 -2
  373. package/lib/state/index.js +3 -3
  374. package/lib/state/substates/RuntimesState.js +2 -2
  375. package/lib/state/substates/index.js +1 -1
  376. package/lib/stores/agentRuntimeStore.js +1 -1
  377. package/lib/types/mcp.js +1 -1
  378. package/lib/types/sandbox.js +1 -1
  379. package/package.json +1 -1
  380. package/scripts/check-npm-pack.mjs +22 -3
  381. package/scripts/esm-specifiers.mjs +71 -1
  382. package/scripts/fully-specify-lib.mjs +17 -2
  383. package/dist-embed/chunks/ChatView-LzqHHAEe.js +0 -32
  384. package/dist-embed/chunks/index-D8x0MQWQ.js +0 -1
@@ -1,32 +0,0 @@
1
- import{a5 as _,fT as Ks,r as s,j as t,fU as Gs,fV as Ys,ch as Jn,B as h,H as xt,T as F,v as q,cN as qt,eN as nn,fW as se,cH as bt,y as qs,fX as Js,fY as Qs,em as Zs,fZ as Xs,a_ as eo,f_ as to,f$ as no,g0 as so,g1 as oo,g2 as ao,g3 as io,ee as ls,ec as ro,ef as sn,g4 as lo,g5 as co,g6 as uo,g7 as fo,g8 as cs,g9 as ds,ga as po,L as mo,gb as go,dq as Jt,I as us,bp as st,D as ho,gc as Qn,gd as xo,ge as bo,dm as vo,bh as So,gf as yo,gg as Co,gh as wo,gi as jo,gj as ko,gk as To,a0 as Qt,gl as Ro,gm as Io,gn as Eo,go as Ao,gp as Po,gq as $o,gr as Uo,gs as Mo,gt as Oo,gu as Lo,gv as Fo,gw as zo,gx as _o,gy as No,gz as Bo,gA as Vo,gB as Ho,gC as Do,gD as Wo,gE as Ko,gF as ot,gG as Go,gH as Yo,gI as qo,gJ as Jo,gK as Zn,gL as Qo,gM as Ne,gN as Zo,gO as Xo,bi as vt,gP as ea,gQ as ta,gR as Xn,gS as na,gT as sa,gU as oa,gV as aa,eV as ia,gW as Zt,gX as Ae,gY as ra,gZ as la,g_ as ca,g$ as es,h0 as da,h1 as ts,h2 as ua,h3 as fa,h4 as pa,h5 as ma,h6 as ga,h7 as ha,h8 as xa,h9 as ba,ha as va,hb as Sa,hc as St,hd as ya,he as Ca,hf as wa,hg as ja,hh as ka,hi as ns,hj as Ta,hk as Ra,hl as Ia,hm as on,hn as Ea,ho as Aa,eD as Xt,hp as Pa,hq as $a}from"../datalayer-app-main.js";import{S as Ua,E as Ma,a as Oa}from"./SignInIcon-B9ZNyM4_.js";import{F as La,a as Fa,b as za}from"./LinkedInGreyIcon-BoWXE-HS.js";import{K as _a}from"./KebabHorizontalIcon-DD3W5tPT.js";function fs(){const n=_(Ks);return s.useMemo(()=>n.map(o=>o.value),[n])}const en={github:{name:"github",oauth2CallbackServerRoute:"jupyter_iam/oauth2/callback",oauth2CallbackUIRoute:"/iam/oauth2/github/callback"},google:{name:"google",oauth2CallbackServerRoute:"jupyter_iam/oauth2/callback",oauth2CallbackUIRoute:"/iam/oauth2/google/callback"},linkedin:{name:"linkedin",oauth2CallbackServerRoute:"jupyter_iam/oauth2/callback",oauth2CallbackUIRoute:"/iam/oauth2/linkedin/callback"}},ss=()=>{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""}},Na=(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 l=n.message;if(typeof l=="string"&&l.trim())return l}return o},Ba=Xs`
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
- `,Va=({onSignIn:n,onApiKeySignIn:o,loginUrl:l,name:i,title:d="Datalayer OTEL",description:p="Sign in to access the observability dashboard.",icon:v,leadingIcon:c=t.jsx(Zs,{size:24}),github:f=!1,google:x=!1,linkedin:C=!1,apiKey:u=!1,signUp:ue=!0,socialSignInNavigationTarget:w,asDoc:y=!1,fillHeight:N=!0,hideHero:J=!1,calloutTitle:xe,calloutDescription:A,passwordToggleLabel:yt="Sign in with a password",signUpTitle:Ct="Don't have an account?",signUpDescription:an="Create a free Datalayer account with your email address.",signUpLabel:be="Sign up with email",signUpHref:wt="https://datalayer.ai/signup",onSignUp:Q,forgotPasswordHref:fe="/password",forgotPasswordLabel:at="Forgot password?",showForgotPassword:oe=!0,socialButtonMarginTop:Pe=3,actionButtonMaxWidth:te=320})=>{const ve=y&&!J,j=i??(y&&d==="Datalayer OTEL"?"Datalayer Sign In":d),it=v??(y?t.jsx(Ua,{size:24}):c),Se=s.useMemo(()=>{if(l)return l;const m=ss();return m?`${m}/api/iam/v1/login`:"/api/iam/v1/login"},[l]),[Z,jt]=s.useState(""),[O,kt]=s.useState(""),[ye,Tt]=s.useState(!1),[$e,Rt]=s.useState(!1),[P,Ue]=s.useState(!1),[X,Be]=s.useState(!1),[Me,Ve]=s.useState(null),[W,It]=s.useState(null),[ae,Et]=s.useState(""),[He,At]=s.useState(null),[Ce,ee]=s.useState(null),{enqueueToast:we}=Gs(),[je,ke]=s.useState(!1),[pe,De]=s.useState(""),me=s.useRef(null),We=s.useCallback(m=>Ys()?Jn.URLExt.join(Jn.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),Ve(m.name),Be(!0);try{const $=ss(),B=new URLSearchParams({provider:m.name,callback_uri:We(m)}),V=w===void 0?void 0:String(w||"").trim(),Ge=V===void 0?ie&&ie!=="/"?ie:void 0:V&&V.startsWith("/")&&!V.startsWith("//")?V:void 0;Ge&&B.set("post_auth_redirect",Ge);const E=`${$||""}/api/iam/v1/oauth2/authz/url?${B.toString()}`,U=await fetch(E),k=await U.json(),ce=k?.autorization_url;if(!U.ok||!ce)throw new Error(k?.message||"Unable to start social sign-in.");window.location.assign(ce)}catch($){const B=Na($);ee(B),we(B,{variant:"error"}),Ve(null),Be(!1)}}},[We,ie,we,X,w]);s.useEffect(()=>{je&&me.current?.focus()},[je]);const re=s.useCallback(()=>{ke(!1),De("")},[]),Te=s.useCallback(()=>{!pe.trim()||!o||(o(pe.trim()),re())},[pe,o,re]),le=s.useCallback(()=>{if(Q){Q();return}window.location.assign(wt)},[Q,wt]),rt=s.useCallback(()=>{if(fe){if(fe.startsWith("http://")||fe.startsWith("https://")){window.open(fe,"_blank","noopener,noreferrer");return}window.location.assign(fe)}},[fe]),Oe=s.useCallback(async()=>{if(!(y||!Z||!O||P)){Ue(!0),ee(null);try{const m=await fetch(Se,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({handle:Z,password:O})});if(!m.ok)throw new Error(`HTTP ${m.status}`);const $=await m.json();if($.success&&$.token){const B=String($?.user?.id||$?.user?.uid||"").trim();if(!!$?.user?.mfaUrl&&B){It(B),At($.token),ee(null);return}n&&n($.token,Z)}else ee($.message||"Invalid username or password.")}catch(m){ee(m instanceof Error?m.message:String(m))}finally{Ue(!1)}}},[y,Z,O,P,Se,n]),Le=s.useCallback(async()=>{if(!(y||P||!W||!ae.trim()||!He)){Ue(!0),ee(null);try{const m=new URL(Se,window.location.origin),$=m.pathname.endsWith("/api/iam/v1/login")?m.href.replace(/\/api\/iam\/v1\/login$/,""):`${m.origin}`,B=await fetch(`${$}/api/iam/v1/users/${W}/mfa/validate`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userUid:W,code:ae.trim()})}),V=await B.json();if(!B.ok||!V?.success)throw new Error(V?.message||"Failed to validate your MFA code.");n&&n(He,Z)}catch(m){const $=m instanceof Error?m.message:String(m);ee($),we($,{variant:"error"})}finally{Ue(!1)}}},[y,we,Z,P,Se,ae,He,W,n]),K=s.useCallback(m=>{m.key==="Enter"&&(W?Le():Oe())},[W,Oe,Le]),Ke=X||P||y;return t.jsxs(h,{className:"signin-input-theme-scope",display:"flex",alignItems:J||ve||!N?"flex-start":"center",justifyContent:"center",minHeight:J||ve||!N?"auto":"100vh",bg:J?"transparent":"canvas.default",color:"fg.default",py:J?0:ve?2:4,children:[t.jsx(Ba,{}),t.jsxs(h,{width:"100%",maxWidth:440,p:0,children:[!J&&t.jsxs(t.Fragment,{children:[t.jsxs(h,{display:"flex",alignItems:"center",gap:2,mb:ve?2:3,justifyContent:"center",children:[it,t.jsx(xt,{sx:{fontSize:3},children:j})]}),t.jsx(F,{as:"p",sx:{fontSize:1,color:"fg.muted",mb:ve?2:3,textAlign:"center"},children:p})]}),(xe||A)&&t.jsxs(h,{mb:3,textAlign:"center",children:[xe&&t.jsx(xt,{as:"h3",sx:{fontSize:2,mb:1},children:xe}),A&&t.jsx(F,{sx:{color:"fg.muted",fontSize:1},children:A})]}),!W&&(f||x||C)&&t.jsxs(t.Fragment,{children:[f&&t.jsx(q,{block:!0,size:"large",leadingVisual:Me==="github"?()=>t.jsx(qt,{size:"small"}):La,disabled:Ke,onClick:()=>I(en.github),sx:{mt:Pe,maxWidth:te,mx:"auto"},children:"Sign in with GitHub"}),x&&t.jsx(q,{block:!0,size:"large",leadingVisual:Me==="google"?()=>t.jsx(qt,{size:"small"}):Fa,disabled:Ke,onClick:()=>I(en.google),sx:{mt:Pe,maxWidth:te,mx:"auto"},children:"Sign in with Google"}),C&&t.jsx(q,{block:!0,size:"large",leadingVisual:Me==="linkedin"?()=>t.jsx(qt,{size:"small"}):za,disabled:Ke,onClick:()=>I(en.linkedin),sx:{mt:Pe,maxWidth:te,mx:"auto"},children:"Sign in with LinkedIn"})]}),!W&&!ye&&t.jsx(h,{mt:3,display:"flex",justifyContent:"center",children:t.jsx(q,{leadingVisual:nn,size:"large",block:!0,disabled:y||P||X,onClick:()=>Tt(!0),sx:{maxWidth:te,mx:"auto"},children:yt})}),!W&&ye&&t.jsxs(h,{mt:4,children:[t.jsxs(se,{required:!0,sx:{mb:3},children:[t.jsx(se.Label,{children:"Username"}),t.jsx(bt,{autoFocus:!0,block:!0,placeholder:"Your username",value:Z,disabled:P||y,onChange:m=>jt(m.target.value),onKeyDown:K})]}),t.jsxs(se,{required:!0,sx:{mb:3},children:[t.jsx(se.Label,{children:"Password"}),t.jsx(bt,{block:!0,placeholder:"Your password",type:$e?"text":"password",value:O,disabled:P||y,onChange:m=>kt(m.target.value),onKeyDown:K,trailingAction:t.jsx(bt.Action,{onClick:()=>Rt(!$e),disabled:P||y,icon:$e?Ma:Oa,"aria-label":$e?"Hide password":"Show password",sx:{color:"var(--fgColor-muted)"}})})]}),t.jsxs(h,{display:"flex",alignItems:"center",justifyContent:"space-between",mt:3,children:[t.jsx(q,{variant:"primary",disabled:P||y||!Z||!O,onClick:Oe,children:P?"Signing in…":"Sign In"}),oe&&t.jsx(qs,{as:"button",sx:{fontSize:1,cursor:y?"not-allowed":"pointer",background:"none",border:"none",opacity:y?.6:1},onClick:()=>{y||P||rt()},children:at})]})]}),W&&t.jsxs(t.Fragment,{children:[t.jsxs(se,{required:!0,sx:{mb:3,mt:2},children:[t.jsx(se.Label,{children:"MFA Code"}),t.jsx(bt,{autoFocus:!0,block:!0,placeholder:"Your MFA code",value:ae,disabled:P||y,onChange:m=>Et(m.target.value),onKeyDown:K})]}),t.jsx(q,{variant:"primary",block:!0,disabled:P||y||!ae.trim(),onClick:Le,sx:{maxWidth:te,mx:"auto"},children:P?"Validating…":"Validate MFA Code"})]}),Ce&&t.jsx(F,{sx:{color:"danger.fg",fontSize:1,mt:3,display:"block"},children:Ce}),ue&&t.jsxs(h,{mt:4,pt:4,textAlign:"center",borderTop:"1px solid",borderColor:"border.muted",children:[t.jsx(xt,{as:"h3",sx:{fontSize:2,mb:2},children:Ct}),t.jsx(F,{as:"p",sx:{color:"fg.muted",fontSize:1,mb:3},children:an}),t.jsx(h,{display:"flex",justifyContent:"center",children:t.jsx(q,{variant:"primary",size:"large",leadingVisual:Js,disabled:y||P,onClick:le,children:be})})]}),u&&o&&t.jsxs(t.Fragment,{children:[t.jsxs(h,{display:"flex",alignItems:"center",gap:2,my:3,children:[t.jsx(h,{flex:1,height:"1px",bg:"border.default"}),t.jsx(F,{sx:{fontSize:0,color:"fg.muted"},children:"or"}),t.jsx(h,{flex:1,height:"1px",bg:"border.default"})]}),t.jsx(q,{block:!0,leadingVisual:nn,disabled:y||P||X,onClick:()=>ke(!0),sx:{maxWidth:te,mx:"auto"},children:"Sign in with an API Key"}),je&&t.jsx(h,{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(h,{as:"form",onClick:m=>m.stopPropagation(),onSubmit:m=>{m.preventDefault(),Te()},width:"min(560px, 100%)",p:3,borderRadius:2,border:"1px solid",borderColor:"border.default",bg:"canvas.overlay",color:"fg.default",boxShadow:"shadow.large",children:[t.jsx(xt,{id:"signin-api-key-title",sx:{fontSize:2,mb:2},children:"Enter your API Key"}),t.jsxs(se,{required:!0,children:[t.jsx(se.Label,{children:"API Key"}),t.jsx(Qs,{block:!0,required:!0,autoFocus:!0,placeholder:"Paste your API key here",value:pe,onInput:m=>De(m.currentTarget.value),ref:me})]}),t.jsxs(h,{mt:3,display:"flex",justifyContent:"flex-end",gap:2,children:[t.jsx(q,{type:"button",onClick:re,children:"Cancel"}),t.jsx(q,{type:"submit",variant:"primary",disabled:!pe.trim(),children:"Authenticate"})]})]})})]})]})]})};function Ha(n){const{agentId:o,instructions:l,model:i,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:l,model:i,frontendTools:d,inference:p,subagents:v,sharing:c,onSubagentEvent:f,modeEffect:x}}}const os=eo((n,o)=>({pending:void 0,suggest:(l,i)=>{const d=l.trim();d&&n({pending:{text:d,submit:i?.submit??!1,nonce:(o().pending?.nonce??0)+1}})},consume:()=>n({pending:void 0})})),Da=({state:n})=>to[n];class Wa extends Error{constructor(o,l){super(l),this.status=o,this.name="RuntimeRefusal"}status}function Ka({baseUrl:n,getAccessToken:o,fetch:l}){const i=n.replace(/\/+$/,""),d=(f={})=>{const x=o();return{...f,...x?{Authorization:`Bearer ${x}`}:{}}},p=async f=>{throw new Wa(f.status,oo(f.status,f.statusText,await ao(f)))};return{json:async(f,x="GET",C)=>{const u=await l(`${i}${f}`,{method:x,headers:d({Accept:"application/json",...C===void 0?{}:{"Content-Type":"application/json"}}),...C===void 0?{}:{body:JSON.stringify(C)}});return u.ok?await u.json():p(u)},stream:async(f,x,{onEvent:C,signal:u},ue="POST")=>{const w=await l(`${i}${f}`,{method:ue,headers:d({"Content-Type":"application/json",Accept:"text/event-stream"}),body:JSON.stringify(x),signal:u});if(!w.ok)return p(w);await io(w,C)},refused:p,headers:d,root:i,fetcher:l}}const D=n=>`/api/v1/apps/sessions/${encodeURIComponent(n)}`;function Ga(n){const{json:o,stream:l,fetcher:i,headers:d,refused:p,root:v}=Ka(n);return{start:(c,f)=>l("/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)=>l(`${D(c)}/messages`,{text:f},x),changeSettings:(c,f,x)=>l(`${D(c)}/settings`,{values:f},x,"PUT"),resume:(c,f,x)=>l(`${D(c)}/resume`,{agent:f},x),stop:c=>o(`${D(c)}/stop`,"POST"),end:c=>o(`${D(c)}/end`,"POST"),describe:c=>o(D(c)),described:async c=>so(await o(D(c))),list:(c={})=>{const f=new URLSearchParams;for(const[C,u]of Object.entries(c))u!==""&&u!==void 0&&u!==!1&&f.set(C,String(u));const x=f.toString();return o(`/api/v1/apps/sessions${x?`?${x}`:""}`)},swap:(c,f)=>o(`${D(c)}/agent`,"POST",{agent:f}),clone:(c,f={})=>o(`${D(c)}/clone`,"POST",{up_to_turn:f.upToTurn??null,agent:f.agent??null,title:f.title??""}),exportFile:async(c,f="")=>{const x=await i(`${v}${D(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 C=x.toString(),u=await i(`${v}/api/v1/apps/sessions/import${C?`?${C}`:""}`,{method:"POST",headers:d({"Content-Type":"application/x-ndjson"}),body:c});return u.ok?await u.json():p(u)},rename:(c,f)=>o(`${D(c)}/title`,"PUT",{title:f}),archive:(c,f)=>o(`${D(c)}/archived`,"PUT",{archived:f}),messages:async c=>no((await o(`${D(c)}/messages`)).messages)}}function Ya({agentName:n,sandboxStillRuns:o=!1,temporary:l=!0,onSignedIn:i,onSignUp:d}){const{configuration:p}=ls(),v=s.useCallback(c=>{ro.getState().checkIAMToken(c),i?.()},[i]);return t.jsx(h,{height:"100%",minHeight:0,overflowY:"auto",bg:"canvas.default",px:4,py:4,children:t.jsxs(h,{maxWidth:440,mx:"auto",children:[t.jsxs(h,{display:"flex",alignItems:"center",justifyContent:"center",gap:2,color:"attention.fg",mb:2,children:[t.jsx(nn,{size:20}),t.jsx(F,{sx:{fontSize:2,fontWeight:"semibold",color:"fg.default"},children:l?"This demo runs on a shared key":"Your key has expired"})]}),t.jsxs(F,{as:"p",sx:{fontSize:1,color:"fg.muted",textAlign:"center",mb:3},children:[l?`${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.":""]}),t.jsx(Va,{hideHero:!0,fillHeight:!1,calloutTitle:"Sign in to keep going",github:!0,google:!0,linkedin:!0,socialSignInNavigationTarget:typeof window>"u"?void 0:`${window.location.pathname}${window.location.search}`,loginUrl:p?.iamUrl?`${p.iamUrl}/api/iam/v1/login`:void 0,onSignIn:v,onSignUp:d})]})})}const qa="https://r1.datalayer.run";function Ja(n=!0){const{configuration:o}=ls(),l=sn(c=>c.token),i=o?.aiInferenceUrl||qa,d=lo(i,n&&!l),p=l||d.token,v=s.useMemo(()=>({inferenceUrl:i,token:p||void 0}),[i,p]);return{inference:v,needsSignIn:co(v),anonymous:d,inferenceUrl:i}}const Qa={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 as(n){const o=n?.subagents;if(!o)return[];const l=(o.subagents??[]).map(i=>{const d=i.ref?uo(i.ref):void 0;return{name:i.name,description:i.description||d?.description||i.name,instructions:i.instructions??d?.systemPrompt,model:i.model??d?.model??o.defaultModel,icon:d?.icon}});return o.includeGeneralPurpose?[...l,Qa]:l}function Za(n){return n.replace(/^datalayer_/,"").replace(/_lexical$/,"")}function Xa(n){const o=Za(n);return/^executeCodeIn(Notebook|Document)$/.test(o)||/^(read|list)[A-Z]/.test(o)}function ei(n,o){return n.filter(l=>o?.has(l.name)||Xa(l.name))}function ti(n,o){const l=i=>o&&i.value.id===`${o}-tools`?0:i.value.id==="notebook-tools"?1:2;return n.map((i,d)=>({entry:i,index:d,rank:l(i)})).sort((i,d)=>i.rank-d.rank||i.index-d.index).map(i=>i.entry)}function ni(n,o,l){if(!l||!n.endsWith("-tools"))return!1;const i=n.slice(0,-6);return o.has(i)&&i!==l}const si={type:"object",properties:{}};function oi(n,o){const l=new Set(n.toolset);return n.commands.filter(i=>l.has(i.name)).map(i=>({name:i.name,description:i.description,parameters:i.parameters??si,location:"frontend",handler:async d=>{if(!o)throw new Error(`${i.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(i.command,p);return v===void 0?{ok:!0,command:i.command,argument:p}:v}}))}function ps(n,o){return n.flatMap(l=>oi(l,o))}function ai(){const n=fo(),o=fs();return s.useMemo(()=>ps(o,n),[o,n])}function ii(n){const o=n?.app_instance;if(!o||typeof o!="object")return"";const l=o.deployment_uid;return typeof l=="string"?l.trim():""}function ri(n,o,l){return n||!o?n:{id:l,messages:[]}}function li(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 ci({facts:n}){if(!n)return null;const o=po(n);return t.jsxs(h,{display:"inline-flex",alignItems:"center",gap:2,"data-session-state":n.state,children:[t.jsx(mo,{size:"small",variant:n.state==="open"?"accent":n.state==="paused"?"attention":"secondary",children:go(n)}),o?t.jsx(F,{sx:{fontSize:0,color:"fg.muted"},"data-session-lineage":"",children:o}):null]})}function di({facts:n,turn:o,context:l}){const i=_(cs),d=ds(i,n,"turn");return!n||d.length===0||o<1?null:t.jsx(h,{display:"inline-flex",gap:1,"data-turn-actions":o,children:d.map(p=>t.jsx(q,{size:"small",variant:"invisible","data-turn-action":p.id,onClick:()=>{Promise.resolve(p.run(n,{...l,atTurn:o})).catch(v=>l.say(String(v.message??v)))},children:p.label},p.id))})}function ui({uid:n,describe:o,context:l}){const i=_(cs),[d,p]=s.useState(void 0),[v,c]=s.useState(!1),[f,x]=s.useState(""),C={...l,say:w=>{x(w),l.say(w)}},u=s.useCallback(w=>{c(w),w&&n&&o(n).then(p,()=>p(void 0))},[o,n]);if(!n||i.length===0)return null;const ue=ds(i,d);return t.jsxs(Jt,{open:v,onOpenChange:u,children:[t.jsx(Jt.Anchor,{children:t.jsx(us,{icon:_a,"aria-label":"Session actions",variant:"invisible",size:"small","data-testid":"session-actions"})}),t.jsx(Jt.Overlay,{width:"small",children:t.jsxs(st,{children:[ue.length===0?t.jsx(st.Item,{disabled:!0,children:d?"Nothing applies to this session now.":"Reading the session…"}):ue.map(w=>t.jsx(st.Item,{"data-session-action":w.id,onSelect:()=>{d&&Promise.resolve(w.run(d,C)).catch(y=>C.say(String(y.message??y)))},children:w.label},w.id)),f?t.jsxs(t.Fragment,{children:[t.jsx(st.Divider,{}),t.jsx(st.Item,{disabled:!0,"data-testid":"session-actions-said",children:f})]}):null]})})]})}const is={confirm:"Switch",cancel:"Keep it"};function fi({question:n,onPick:o}){const[l,i]=s.useState(n.options[0]?.id??""),[d,p]=s.useState("");s.useEffect(()=>{let c=!0;if(!n.says||!l){p("");return}return n.says(l).then(f=>c&&p(f),()=>c&&p("")),()=>{c=!1}},[l,n]);const v=n.options.find(c=>c.id===l);return t.jsx(ho,{title:n.title,onClose:()=>o(void 0),width:"medium",footerButtons:[{buttonType:"default",content:is.cancel,onClick:()=>o(void 0)},{buttonType:"primary",content:is.confirm,disabled:!l,onClick:()=>o(l||void 0)}],children:t.jsxs(h,{display:"grid",gap:3,"data-session-choose":"",children:[t.jsxs(se,{children:[t.jsx(se.Label,{children:n.title}),t.jsx(Qn,{value:l,onChange:c=>i(c.target.value),block:!0,children:n.options.map(c=>t.jsx(Qn.Option,{value:c.id,children:c.label},c.id))})]}),v?.description?t.jsx(F,{sx:{fontSize:1,color:"fg.muted"},children:v.description}):null,d?t.jsx(F,{as:"p",sx:{m:0,fontSize:1,fontStyle:"italic"},"data-session-choose-says":"",children:d}):null]})})}const pi="var(--theme-accent)";function ms({face:n,size:o}){return typeof n=="string"?t.jsx(xo,{emoji:n,size:o,label:""}):t.jsx(t.Fragment,{children:n})}function mi({face:n,size:o,state:l}){const i=l==="thinking"||l==="working",d=l==="paused";return t.jsxs(h,{as:"span","aria-hidden":!0,"data-presence":l,position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:o+8,height:o+8,flexShrink:0,fontSize:o,lineHeight:1,children:[t.jsx(h,{as:"span",position:"absolute",inset:0,borderRadius:"50%",boxShadow:d?"none":`0 0 0 2px ${pi}`,border:d?"2px dashed":"none",borderColor:"border.default",opacity:i||l==="waiting"||d?.9:0,transition:"opacity var(--theme-motion-status, 0ms) var(--theme-motion-easing, ease)",animation:i?"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(h,{as:"span",display:"inline-flex",opacity:d?.55:1,filter:d?"grayscale(0.6)":"none",transition:"opacity var(--theme-motion-status, 0ms) var(--theme-motion-easing, ease)",children:t.jsx(ms,{face:n,size:o})})]})}function gi({state:n}){return t.jsx(F,{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:Da({state:n})})}const hi=on(void 0),xi=on(""),bi=on({}),de="",vi=1400,rs=parseInt(Pa["--loop-face-large"],10);function ki({workspace:n}){const o=bo(),l=vo(),i=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=i.current?.thread();return e&&v.current?.(e),e},[]),[f,x]=s.useState(null),C=So(),u=C.getConfig(yo),ue=u?.placeholder||o.placeholder,w=u?.defaultSurface??"notebook",y=C.getConfig(Co),[N,J]=s.useState(de),xe=s.useRef(!1),A=_(wo),yt=_(jo),Ct=_(ko),be=_(To)[0]?.value,Q=Qt(be?.promptStance??hi)??be?.prompt,fe=_(Ro),at=Io(fe[0]?.value),oe=s.useRef(at);oe.current=at;const Pe=s.useRef(""),te=_(Eo),ve=s.useMemo(()=>Ao(()=>te.reduce((e,a)=>({...e,...a.value.extras.value}),{})),[te]),j=Qt(te.length>0?ve:bi),it=s.useRef(new Set),Se=Po(Ea,n),Z=!Se.allowed,jt=Z?Se.reason??"Chat is unavailable for this sandbox":void 0,[O,kt]=s.useState(!1),[ye,Tt]=s.useState(!1),[$e,Rt]=s.useState(!1),[P,Ue]=s.useState({open:!1,pendingApproval:!1}),X=$o(O,P,u?.presence?.paused===!0),Be=u?.presence?.onPresence;s.useEffect(()=>{Be?.(X),oe.current?.setPresence(X)},[Be,X]);const Me=s.useRef(u?.presence?.onSaying);Me.current=u?.presence?.onSaying;const Ve=s.useRef({answering:!1}),W=s.useCallback(e=>{i.current=e,Tt(!!e)},[]),It=s.useCallback(e=>{const{open:a,pendingApproval:r}=Uo(e);Ue(Ee=>Ee.open===a&&Ee.pendingApproval===r?Ee:{open:a,pendingApproval:r});const b={saying:Oo(e),answering:Mo(e)},g=Ve.current;(g.saying?.id!==b.saying?.id||g.saying?.text!==b.saying?.text||g.answering!==b.answering)&&(Ve.current=b,Me.current?.(b));const Y=oe.current;if(!Y)return;Y.items(e);const L=new Set(["complete","completed","done","error","failed","cancelled","canceled","rejected","denied","stopped"]),ne={insertcell:"adding a cell",updatecell:"editing a cell",runcell:"running a cell",deletecells:"removing cells",readallcells:"reading the notebook",readcell:"reading a cell",executecode:"running code",insertblock:"adding a block",updateblock:"editing a block",runblock:"running a block",readdocument:"reading the document"};let S;for(let Ee=e.length-1;Ee>=0;Ee-=1){const ht=e[Ee];if(typeof ht.toolName=="string"&&ht.toolCallId){L.has(String(ht.status).toLowerCase())||(S=ht);break}}if(!S){Y.activity(void 0);return}const Ie=S.toolName.toLowerCase().replace(/^datalayer_/,"").replace(/_lexical$/,"").replace(/[^a-z]/g,""),Ws=ne[Ie]??`using ${S.toolName}`;Y.activity(`${Pe.current||"The agent"} is ${Ws}…`)},[]),ae=s.useRef(j);ae.current=j;const Et=s.useCallback(e=>{Ts(e),oe.current?.usage(e),ae.current.onUsage?.(e)},[]),He=s.useCallback(e=>{kt(e),e||oe.current?.end("done")},[]),At=s.useCallback(e=>{const a=oe.current;if(!a)return;let r=-1;for(let g=e.length-1;g>=0;g-=1)if(e[g].role==="user"){r=g;break}const b=e.slice(r+1).filter(g=>g.role==="assistant").map(Lo).filter(g=>g.trim().length>0).join(`
29
-
30
- `);a.assistant(b)},[]),Ce=s.useRef([]),ee=s.useRef(!1),we=s.useRef(void 0),je=s.useRef(void 0),ke=s.useRef(void 0),pe=_(Fo),De=s.useRef(pe);De.current=pe;const me=s.useCallback((e,a)=>{if(je.current)return je.current;const r=ke.current;ke.current=void 0;const b=zo(De.current.map(L=>L.value),r?{...a??{},voice:r}:a),g=b?.loop;if(ee.current&&g?.files&&g.files.length>0){const L=we.current;if(!L)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=g.files.map(S=>({file:No(String(S.name??"")),base64:_o(String(S.data_url??""))}))}catch(S){return S instanceof Error?S.message:String(S)}L.execute(Bo(ne)).then(S=>{if(!S.success){x(`The files could not be put in the sandbox: ${S.error??"it failed"}.`);return}me(`${e}
31
-
32
- ${Vo(ne.map(Ie=>Ie.file))}`,{...b,loop:Object.fromEntries(Object.entries(g).filter(([Ie])=>Ie!=="files"))})});return}oe.current?.begin(e,c());const Y=i.current?.send;if(!Y){Ce.current.push([e,b]);return}Y(e,b)},[c]);s.useEffect(()=>{p(ye?{busy:O,stop:i.current?.stop,newChat:i.current?.newChat,send:me}:null)},[O,ye,p,me]),s.useEffect(()=>()=>p(null),[p]),s.useEffect(()=>n.prompts.subscribe(me),[n.prompts,me]),s.useEffect(()=>{if(!ye||Ce.current.length===0)return;const e=Ce.current.splice(0,Ce.current.length);for(const[a,r]of e)c(),i.current?.send(a,r)},[ye,c]);const We=s.useRef(!1),ie=s.useCallback(async e=>{x(null);const a=await Ho(ae.current,e);if(a){a.sent?Xe(""):x(a.refused);return}We.current||(We.current=!0,y?.firstPromptHook?.());const r=await n.submit(e);if(!r.handled){x(r.reason??null);return}Xe(""),r.result?.content&&x(r.result.content)},[n,y?.firstPromptHook]),I=s.useMemo(()=>A.find(e=>e.value.surfaceId===N)?.value,[A,N]),re=s.useCallback(e=>{xe.current=!0,J(e)},[]);s.useEffect(()=>Do(re),[re]),s.useEffect(()=>{Wo(A.map(e=>e.value.surfaceId))},[A]),s.useEffect(()=>{Ko(N&&N!==de?N:$a)},[N]);const Te=s.useMemo(()=>w===de||w==="none"?void 0:A.find(e=>e.value.surfaceId===w),[A,w]);s.useEffect(()=>{xe.current||!Te||ot(Te.value,n)&&J(w)},[Te,n,w]);const[le,rt]=s.useState(null),Oe=s.useRef(null),Le=u?.fullScreenTopOffset??0,{fullScreen:K,usingApi:Ke,toggle:m,topOffsetPx:$}=Go(Oe,{forceOverlay:!!Le,topOffset:Le}),[B,V]=s.useState(!1),Ge=s.useRef(!1);s.useEffect(()=>{!O||Ge.current||K||(Ge.current=!0,V(!0))},[O,K]),s.useEffect(()=>{K&&V(!1)},[K]),s.useEffect(()=>{I&&!ot(I,n)&&(rt(I.surfaceId),J(de))},[I,n]);const lt=s.useMemo(()=>{if(le)return A.find(e=>e.value.surfaceId===le)?.value;if(!xe.current&&N===de)return Te?.value},[A,le,N,Te]);s.useEffect(()=>{if(!le||N!==de)return;const e=A.find(a=>a.value.surfaceId===le);e&&ot(e.value,n)&&(rt(null),J(le))},[A,N,le,n]);const E=n.agentId?.trim()||"default",U=Yo(n.sandbox.target??"local");ee.current=U;const k=qo(),ce=Qt(k?.selected??xi),R=k?.members.find(e=>e.id===ce),rn=_(Jo)[0]?.value,Pt=rn?.specId,M=Zn(R?.specId??E)??(Pt?Zn(Pt):void 0),Ye=R?void 0:rn,ln=U&&!R?Ia(Pt,M):void 0;Pe.current=R?.name??M?.name??E;const cn=_(Qo),dn=j.hiddenOpeners,un=j.hideOpeners,$t=j.openers,Ut=s.useMemo(()=>{if(un)return[];const e=new Set(dn??[]),a=S=>e.size===0?S:S.filter(Ie=>!e.has(Ie.text));if($t)return a($t);const r=cn.flatMap(S=>S.value.suggestions);if(r.length>0)return a(r);const b=a(M?.suggestions??[]),g=a(k?.team.suggestions??[]);if(g.length===0)return b;const Y=new Set(g.map(S=>S.text)),L=k?.team.name??"Team",ne=R?.name??M?.name??E;return[...g.map(S=>({...S,group:L})),...b.filter(S=>!Y.has(S.text)).map(S=>({...S,group:ne}))]},[cn,k,M,R,E,dn,un,$t]),ct=s.useMemo(()=>Ut.map(e=>({title:e.summary??e.text,message:e.message??e.text,group:e.group})),[Ut]),Mt=Ne(M?.icon),G=u?.presence,gs=Ne(k?.team.icon),fn=_(Zo),dt=s.useMemo(()=>{const e=[],a=new Map,r=new Set,b=new Set(A.map(g=>g.value.surfaceId));for(const g of ti(fn,I?.surfaceId)){if(ni(g.value.id,b,I?.surfaceId))continue;let Y;try{Y=g.value.tools(n)}catch(L){console.warn(`[loop] frontend tools from '${g.plugin}' failed:`,L);continue}for(const L of Y){const ne=a.get(L.name);if(ne){console.warn(`[loop] frontend tool '${L.name}' from '${g.plugin}' is shadowed by the one from '${ne}'.`);continue}a.set(L.name,g.plugin),e.push(L),g.value.chatView&&r.add(L.name)}}for(const g of j.frontendTools??[])a.has(g.name)||(a.set(g.name,"chat-extras"),e.push(g),r.add(g.name));return I?e:ei(e,r)},[fn,n.surfaceId,n.agentId,j.frontendTools,I?.surfaceId,A]),Ot=ai(),qe=s.useMemo(()=>{if(Ot.length===0)return dt;const e=new Set(dt.map(a=>a.name));return[...dt,...Ot.filter(a=>!e.has(a.name))]},[dt,Ot]),pn=fs(),Lt=j.agentToolBundles,hs=s.useMemo(()=>{const e=j.frontendTools??[];if(!Lt?.length)return j.frontendTools;const a=ps(pn.filter(b=>Lt.includes(b.id)),C),r=new Set(e.map(b=>b.name));return[...e,...a.filter(b=>!r.has(b.name))]},[j.frontendTools,Lt,pn,C]);we.current=U&&qe.some(e=>e.name===Xo)?C.getOutput(vt)?.sandbox:void 0;const T=ea(n.sandbox,n.serverUrl),Je=s.useMemo(()=>Ga({baseUrl:T??"",getAccessToken:()=>d.current,fetch:(e,a)=>fetch(e,a)}),[T]),mn=_(ta),xs=s.useMemo(()=>mn.filter(e=>e.value.composer).map(e=>({name:e.value.name,description:e.value.description})),[mn]),bs=s.useMemo(()=>{if(!k||!R)return as(M).map(r=>({name:r.name,description:r.description,icon:Ne(r.icon)}));const e=k.members.map(r=>({name:r.name,description:r.description,emoji:r.emoji,icon:Ne(r.icon),disabled:r.id===R.id,disabledReason:r.id===R.id?`You are already talking to ${r.name}`:void 0})),a=Xn(k.team,R.id).filter(r=>!k.members.some(b=>b.name===r.name)).map(r=>({name:r.name,description:r.description,icon:Ne(r.icon)}));return[...e,...a]},[k,R,M]),{inference:gn,anonymous:vs}=Ja(U),Ss=sn(e=>e.user),Ft=U&&vs.status==="expired",hn=!Ss,Qe=na();je.current=Qe.disabled?Qe.disableReason||"This conversation is closed here.":void 0;const zt=T===void 0?sa(n.sandbox,o):void 0,Ze=Z||Ft||!!ln||!!zt||Qe.disabled,xn=Ft?hn?o.demoKeyExpired:o.keyExpired:ln??zt??jt??(Qe.disabled?Qe.disableReason:void 0),[_t,Xe]=s.useState(""),[bn]=oa(),et=s.useMemo(()=>u?.voice?aa(u.voice,bn):void 0,[u?.voice,bn]),[ys,Cs]=s.useState(!1),[ws,vn]=s.useState(),ut=ws??Ye?.model??M?.model??n.model??"",Fe=ia(),Sn=s.useRef(Fe),yn=s.useRef(ce),Cn=s.useRef(Fe);Cn.current=Fe,s.useEffect(()=>{yn.current!==ce&&(yn.current=ce,Sn.current=Cn.current,vn(void 0))},[ce]);const js=Fe&&Fe!==Sn.current?Fe:null,[ks,Ts]=s.useState(),Rs=js??ks??null,Is=Zt(Ae.inpromptMenu),wn=Zt(Ae.promptAction),jn=Zt(Ae.chatHeader),Es=s.useMemo(()=>k?.members.map(e=>({id:e.id,name:e.name,description:e.description,icon:Ne(e.icon)}))??[],[k]),Re=os(e=>e.pending),[kn,As]=s.useState(0);s.useEffect(()=>ra(()=>As(e=>e+1)),[]),s.useEffect(()=>{Re&&(Xe(Re.text),os.getState().consume(),Re.submit&&ie(Re.text))},[Re]);const Tn=C.getConfig(vt)?.datalayerCreatePayload,H=!!(Ye?.createPayload?.app_spec||Tn?.app_spec),Nt=ii(Tn),Ps=sn(e=>e.token),Bt=C.getConfig(vt)?.datalayerVisitors,$s=la(Bt),Us=C.getConfig(vt)?.embedToken,ge=Bt?$s.token:Us||Ps;d.current=ge||void 0;const Ms=s.useMemo(()=>ca(u?.voice,ge||void 0),[u?.voice,ge]),he=!!(Nt||Bt);if(he&&!H)throw new Error("A deployment’s page runs its application: its host gave no app_spec.");const[Rn]=s.useState(es),[Vt,Os]=s.useMemo(()=>{try{return[li(typeof window>"u"?"":window.location.search),""]}catch(e){return["",e instanceof Error?e.message:String(e)]}},[]),[In,Ls]=s.useState(void 0),z=s.useMemo(()=>In??ri(u?.thread??(Vt&&H?{id:Vt,messages:[],fromRuntime:!0}:void 0),Nt,Rn),[In,u?.thread,Vt,H,Nt,Rn]),[ze,En]=s.useState(null),Fs=!!(z?.fromRuntime&&ze?.given!==z.id);s.useEffect(()=>{if(!z?.fromRuntime||!H||!T)return;let e=!0;return(async()=>{let a="";for(let r=0;r<4&&e;r+=1)try{const b=await da({agentBaseUrl:T,agentId:E,uid:z.id,token:ge});e&&En({given:z.id,thread:{...z,fromRuntime:!1,messages:b}});return}catch(b){a=b instanceof Error?b.message:String(b),await new Promise(g=>setTimeout(g,1500))}e&&En({given:z.id,thread:{id:es(),messages:[],onStarted:z.onStarted},said:ts.notOpened(a)})})(),()=>{e=!1}},[z?.id,z?.fromRuntime,H,T,E,ge]);const Ht=z?.fromRuntime?ze?.given===z.id?ze.thread:void 0:z,ft=n.thread||Ht?.id||"",[An,Pn]=s.useState(void 0),[zs,$n]=s.useState(0);s.useEffect(()=>{if(!H||!T||!ft||O)return;let e=!0;return Je.described(ft).then(a=>e&&Pn(a),()=>e&&Pn(void 0)),()=>{e=!1}},[H,T,ft,O,zs,Je]);const[Un,Mn]=s.useState(Os),[On,Ln]=s.useState(null),Dt=s.useRef(null),Wt=s.useRef(null),Fn=s.useRef(null),zn=s.useMemo(()=>({client:Je,say:e=>{Mn(e),$n(a=>a+1)},openThread:e=>{Ls({id:e,messages:[],fromRuntime:!0}),$n(a=>a+1)},download:(e,a,r)=>{const b=URL.createObjectURL(new Blob([a],{type:r})),g=document.createElement("a");g.href=b,g.download=e,g.click(),URL.revokeObjectURL(b)},choose:e=>new Promise(a=>{Dt.current=a,Ln(e)}),pickFile:e=>new Promise(a=>{const r=Fn.current;if(!r){a(void 0);return}Wt.current=a,r.accept=e,r.value="",r.click()})}),[Je]),Kt=s.useMemo(()=>U?Ha({agentId:R?.specId??E,instructions:ua(M,Ye?.instructions),model:ut||void 0,inference:gn,frontendTools:qe,subagents:k&&R?Xn(k.team,R.id):as(M),sharing:k?.sharing,onSubagentEvent:e=>Aa.getState().appendSubagentEvent(e),modeEffect:Ye?.modeEffect}):T!==void 0?{type:"ag-ui",endpoint:H?`${T}/api/v1/apps/agents/${encodeURIComponent(E)}/ag-ui/`:`${T}/api/v1/ag-ui/${E}/`,...H&&ge?{authToken:ge}:{},...H?{uiSocket:`${T.replace(/^http/,"ws")}/api/v1/apps/ui`,uiFiles:`${T}/api/v1/apps/agents/${encodeURIComponent(E)}/files`,appSessions:`${T}/api/v1/apps/sessions`,...he?{ownRoutesOnly:!0}:{}}:{},agentId:E,configEndpoint:`${T}/api/v1/configure`,enableConfigQuery:!0}:void 0,[E,U,gn,R,qe,k,M,Ye,ut,T,H,ge,he]),pt=fa(!U,Kt?.type==="ag-ui"?Kt.configEndpoint:void 0,void 0,E),tt=pa(),mt=ma(E),[_n,Gt]=s.useState(void 0),[_s,Ns]=s.useState(void 0);s.useEffect(()=>{if(U||T===void 0)return;const e=ga(T,E,he);if(!e){Gt([]);return}let a=!1;return fetch(e).then(r=>r.ok?r.json():null).then(r=>{a||(Gt(r?ha(r):[]),Ns(r?xa(r):void 0))}).catch(()=>{a||Gt([])}),()=>{a=!0}},[T,E,U,he]);const Bs=s.useMemo(()=>ba(_n,()=>Object.values(va).filter(e=>e.available&&Sa(e)).map(e=>({id:e.id,name:e.name,provider:e.provider}))),[_n]),Nn=s.useMemo(()=>{const e=pt.data?.builtinTools??[],a=new Set(e.map(r=>r.name));return{runtime:e,frontend:qe.filter(r=>!a.has(r.name)).map(r=>({id:r.name,name:r.name}))}},[pt.data?.builtinTools,qe]),Bn=s.useMemo(()=>new Set((tt.data?.skills??[]).filter(e=>e.status==="enabled"||e.status==="loaded").map(e=>e.id)),[tt.data]),Vs=s.useCallback(async e=>{if(he)throw new Error("A deployment’s chat does not switch its runtime’s model.");vn(e),!(U||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,U,he]),Vn=u?.promptPlacement==="bottom-chat",Hs=u?.promptPlacement==="floating",_e=u?.promptPlacement==="top",nt=u?.hidePrompt===!0||j.hidePrompt===!0,Ds={onSend:()=>{ie(_t)},input:_t,setInput:Xe,focusTrigger:Re||kn?(Re?.nonce??0)+kn:void 0,placement:Hs||Q==="floating"||Q==="floating-top"||Q==="floating-bottom"?"floating":"docked",floatingAnchor:Q==="floating-top"?"top":"bottom",isLoading:O,onStop:()=>n.viewControls.stop?.(),placeholder:xn??j.sendInstead?.says??ue,typingSuggestions:Ut.map(e=>e.text),suggestions:ct,disableInputPrompt:Ze,connectionConfirmed:!Ze,interim:ys,padding:_e||Q==="floating-top"||Q==="floating-bottom"||Q==="docked-top"?2:3,promptVariant:"lexical",autoFocus:u?.autoFocusPrompt??!0,mentionableAgents:bs,promptCommands:xs,headerContent:Is.length>0?t.jsx(St,{slot:Ae.inpromptMenu,props:{workspace:n}}):void 0,footerExtras:wn.length>0||et&&et.input!=="off"?t.jsxs(t.Fragment,{children:[wn.length>0?t.jsx(St,{slot:Ae.promptAction,props:{workspace:n}}):null,et&&et.input!=="off"?t.jsx(ya,{voice:et,input:_t,setInput:Xe,disabled:Ze,speaking:$e,onStopSpeaking:()=>i.current?.stopSpeaking?.(),playbackLevel:()=>i.current?.voiceLevel?.()??0,running:O,onStopRun:()=>(i.current?.interrupt??i.current?.stop)?.(),onInterrupted:()=>i.current?.markInterrupted(),onInterimChange:Cs,answers:!!(u?.voice?.output&&u.voice.output!=="off"&&u.voice.speechUrl),onSpoken:e=>{ke.current=e},send:(e,a)=>{ke.current=a,ie(e)}}):null]}):void 0,showAgentsMenu:!G,showInlineAgentsMenu:!1,agents:Es,selectedAgentId:ce,onSelectAgent:e=>k?.select(e),showTokenUsage:j.showTokenUsage??u?.showTokenUsage??!0,showContextRing:!0,agentUsage:Rs??void 0,showModelSelector:!G&&!he,models:Bs,decisions:_s,selectedModel:ut,onModelSelect:e=>{Vs(e)},showToolsMenu:!G,availableTools:Nn.runtime,availableFrontendTools:Nn.frontend,mcpServers:pt.data?.mcpServers??[],mcpStatusData:j.mcpStatusData??void 0,showSkillsMenu:!G,skills:tt.data?.skills??[],skillsLoading:tt.isLoading,enabledSkills:Bn,onToggleSkill:e=>Bn.has(e)?mt.disableSkill(e):mt.enableSkill(e),onToggleAllSkills:(e,a)=>e.forEach(r=>a?mt.enableSkill(r):mt.disableSkill(r)),codemodeEnabled:j.codemodeEnabled??!1,onToggleCodemode:j.onToggleCodemode,isA2AProtocol:!1,hasConfigData:!!pt.data,hasSkillsData:!!tt.data},Hn=yt[0]?.value.Component,Yt=Ct[0]?.value.Component,Dn=!u?.hideHeader&&!!Yt,gt=Hn?t.jsx(Hn,{workspace:n,composer:Ds}):null,Wn=A.length>0&&u?.showSurfaceSelector!==!1?t.jsx(Si,{surfaces:A.map(e=>e.value),active:I?.surfaceId??lt?.surfaceId??de,onChange:re,workspace:n}):null,Kn=t.jsxs(t.Fragment,{children:[A.map(e=>{const a=e.value,r=I?.surfaceId===a.surfaceId;return r||it.current.has(a.surfaceId)||ot(a,n)?(it.current.add(a.surfaceId),t.jsx(h,{sx:r?{flex:"1 1 0",minWidth:0,minHeight:0}:{position:"absolute",inset:0,visibility:"hidden",pointerEvents:"none",zIndex:-1},children:t.jsx(Ca,{load:a.load,props:{surfaceId:a.surfaceId,workspace:n},fallback:t.jsxs(tn,{children:["Loading ",a.title,"…"]}),errorFallback:g=>t.jsxs(tn,{children:[a.title," failed to load: ",g.message]})})},a.surfaceId)):null}),!I&&lt?t.jsx(h,{flex:"1 1 0",minWidth:0,minHeight:0,children:t.jsxs(tn,{children:["Starting ",lt.title,"…"]})}):null]}),Gn=t.jsx(t.Fragment,{children:t.jsxs(h,{flex:_e&&I?"0 0 34%":"1 1 0",maxWidth:_e&&I?460:void 0,minWidth:0,minHeight:0,display:"flex",flexDirection:"column",borderLeft:I?"1px solid":void 0,borderColor:"border.default",position:"relative",children:[j.errorBanner?t.jsx(h,{flexShrink:0,px:3,py:2,fontSize:1,borderBottom:"1px solid",bg:j.errorBanner.variant==="warning"?"attention.subtle":"danger.subtle",color:j.errorBanner.variant==="warning"?"attention.fg":"danger.fg",borderColor:j.errorBanner.variant==="warning"?"attention.muted":"danger.muted",children:j.errorBanner.message}):null,ze?.said&&ze.given===z?.id?t.jsx(F,{as:"p",role:"status",sx:{m:0,px:3,py:2,fontSize:1,color:"fg.muted"},children:ze.said}):null,Un?t.jsxs(h,{display:"flex",alignItems:"baseline",gap:2,px:3,py:2,fontSize:1,color:"fg.muted",role:"status","data-session-said":"",children:[t.jsx(F,{sx:{flex:1},children:Un}),t.jsx(q,{size:"small",variant:"invisible",onClick:()=>Mn(""),children:"Dismiss"})]}):null,On?t.jsx(fi,{question:On,onPick:e=>{Ln(null),Dt.current?.(e),Dt.current=null}}):null,t.jsx("input",{ref:Fn,type:"file",hidden:!0,"data-session-file":"",onChange:async e=>{const a=e.target.files?.[0],r=a?await a.text():void 0;Wt.current?.(r),Wt.current=null}}),t.jsx(h,{flex:"1 1 auto",minHeight:0,display:"flex",children:Fs?t.jsx(F,{as:"p",role:"status",sx:{m:0,p:3,fontSize:1,color:"fg.muted"},children:ts.opening}):t.jsx(wa,{themeVariant:u?.themeVariant,themeOverrides:u?.themeOverrides,colorMode:u?.colorMode,thread:Ht,voice:Ms,disabled:Ze,disableReason:xn,protocol:Kt,frontendTools:U?void 0:hs,initialModel:ut||void 0,title:G?.name??R?.name??M?.name??E,description:G?.welcome??M?.description,brandIcon:G?.face?t.jsx(mi,{face:G.face,size:20,state:X}):t.jsx(Mt,{size:20}),headerContent:G&&!zt?t.jsx(gi,{state:X}):void 0,emptyState:{icon:G?.face?t.jsx("span",{"aria-hidden":!0,style:{fontSize:rs,lineHeight:1},children:t.jsx(ms,{face:G.face,size:rs})}):t.jsx(Mt,{size:48}),title:G?.name??R?.name??M?.name??E,...k&&R?{sections:[{group:k.team.name,icon:t.jsx(gs,{size:48}),title:k.team.name,subtitle:k.team.description},{group:R.name,icon:t.jsx(Mt,{size:32}),title:R.name,subtitle:M?.description}]}:null},suggestions:_e||be||u?.suggestionLabels===!1?[]:ct,showHeader:Dn,headerButtons:{showNewChat:u?.headerButtons?.newChat??!1,showClear:u?.headerButtons?.clear??!1},renderHeader:Yt?e=>t.jsx(Yt,{workspace:n,header:n.chatViewModes?{...e,chatViewMode:n.chatViewModes.value,onChatViewModeChange:n.chatViewModes.onChange,offeredViewModes:n.chatViewModes.offered}:e}):void 0,showInformation:!0,headerActions:t.jsxs(h,{display:"inline-flex",alignItems:"center",gap:2,children:[n.chatHeaderActions,H&&T?t.jsxs(t.Fragment,{children:[t.jsx(ci,{facts:An}),t.jsx(ui,{uid:ft||void 0,describe:e=>Je.described(e),context:zn})]}):null,jn.length>0?t.jsx(St,{slot:Ae.chatHeader,props:{workspace:n}}):null,t.jsx(us,{icon:K?ja:ka,"aria-label":K?"Exit full screen":"Enter full screen",variant:"invisible",size:"small",onClick:()=>{V(!1),m()},sx:B?{"@keyframes dla-fullscreen-hint":{"0%, 100%":{opacity:1},"50%":{opacity:.4}},"&&":{bg:`color-mix(in srgb, ${l.primary} 16%, transparent)`,boxShadow:`inset 0 0 0 1.5px ${l.primary}`,animation:`dla-fullscreen-hint ${vi}ms ease-in-out infinite`},"@media (prefers-reduced-motion: reduce)":{"&&":{animation:"none"}}}:void 0})]}),showInput:!1,onSendReady:W,notebookToolSurfacesId:I?void 0:n.surfaceId,showTurnFooter:j.showTokenUsage??u?.showTokenUsage??!0,onContextSnapshot:Et,onLoadingChange:He,renderMessageFooter:H&&T?(e,a)=>e.role==="user"?t.jsx(di,{facts:An,turn:a.turn,context:zn}):null:void 0,onSpeakingChange:Rt,onItemsChange:At,onDisplayItemsChange:It,enableStreaming:!0},Ht?.id)}),!Dn&&jn.length>0?t.jsx(h,{hidden:!0,children:t.jsx(St,{slot:Ae.chatHeader,props:{workspace:n}})}):null,Vn&&!nt?gt:null]})}),Yn=u?.suggestionLabels!==!1&&ct.length>0?t.jsx(h,{"aria-label":o.suggestedPrompts,display:"flex",flexWrap:"wrap",gap:2,px:2,pb:"6px",children:ct.map(e=>t.jsx(h,{as:"button",type:"button",title:e.message,disabled:O||Ze,onClick:()=>{ie(e.message)},appearance:"none",font:"inherit",fontSize:0,fontWeight:"semibold",lineHeight:1.25,px:"10px",py:"5px",width:ns,flex:`0 0 ${ns}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(Ta,{title:e.title,maxWidth:"100%",sx:{minWidth:0},children:e.title})},e.title))}):null,qn=f?t.jsx(h,{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(h,{ref:Oe,sx:{height:"100%",minHeight:0,display:"flex",flexDirection:"column",position:"relative",...K?{bg:"canvas.default"}:null,...K&&!Ke.current?{position:"fixed",top:$,right:0,bottom:0,left:0,height:"auto",zIndex:1e3}:null},children:[be?t.jsx(be.Component,{workspace:n,editors:Kn,hasEditor:!!I,transcript:Gn,prompt:nt?null:gt,chips:nt?null:Yn,picker:Wn,transient:qn}):t.jsxs(t.Fragment,{children:[_e&&!nt?t.jsxs(h,{flex:"0 0 auto",borderBottom:"1px solid",borderColor:"border.default",children:[gt,Yn]}):null,Wn,t.jsxs(h,{flex:"1 1 auto",minHeight:0,display:"flex",position:"relative",children:[Kn,Gn]}),qn,Vn||nt||_e?null:gt]}),Ft?t.jsx(h,{position:"absolute",inset:0,zIndex:5,bg:"canvas.default",display:"flex",flexDirection:"column",minHeight:0,children:t.jsx(Ya,{agentName:R?.name??M?.name,sandboxStillRuns:U,temporary:hn,onSignedIn:()=>Ra.getState().clear()})}):null]})}function Si({surfaces:n,active:o,onChange:l,workspace:i}){const d=[...n].sort((p,v)=>(p.order??100)-(v.order??100));return t.jsxs(h,{flex:"0 0 auto",display:"flex",alignItems:"center",gap:2,px:3,py:2,borderBottom:"1px solid",borderColor:"border.default",children:[t.jsx(F,{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===de,onClick:()=>l(de),children:"Chat"}),d.map(p=>{const v=ot(p,i),c=v?void 0:p.unavailableReason?.(i)??"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&&l(p.surfaceId)},children:p.title},p.surfaceId)})]})]})}function tn({children:n}){return t.jsx(h,{height:"100%",display:"flex",alignItems:"center",justifyContent:"center",color:"fg.muted",fontSize:1,px:3,textAlign:"center",children:n})}export{ki as default};
@@ -1 +0,0 @@
1
- import{tv as A,e6 as i,e7 as u,ec as l,bf as _,eb as g,ed as h}from"../datalayer-app-main.js";import{tw as V,tx as Y,e9 as z,ea as L,ty as F,tz as G,tA as P,tB as k,tC as x,tD as H,tE as J,tF as $,tG as B,tH as q,tI as Q,tJ as X,tK as Z,tL as j,tM as ee,tN as te,tO as se,tP as re,tQ as oe,tR as ae,tS as ne,tT as ie,tU as ue,tV as ce,tW as Se,ee as le,ef as ge,eg as Ee,tX as me,tY as _e,tZ as de,t_ as ve}from"../datalayer-app-main.js";const p=()=>location.hostname.startsWith("dev")||location.hostname.startsWith("localhost"),d=()=>A(),v=e=>({id:e.uid,name:e.name_s,userId:e.user_id,form:e.form,createdAt:new Date(e.creation_ts_dt),updatedAt:new Date(e.last_update_ts_dt)}),y=i((e,a)=>({organizations:[],updateOrganizations:s=>e(r=>({organizations:s})),updateOrganization:s=>e(r=>({organizations:r.organizations.map(t=>t.id===s.id?{...t,...s}:t)}))}));function U(e){return u(y,e)}const E=i((e,a)=>({surveys:void 0,growthUrl:g.getState().configuration?.growthUrl,setSurveys:s=>{const r=new Map;s.forEach(t=>r.set(t.name,t)),e(t=>({surveys:r}))},refreshSurveys:async()=>{const{token:s}=l.getState(),{growthUrl:r}=a();try{const t=await _({url:`${r}/api/growth/v1/surveys`,method:"GET",token:s});if(t.success&&t.surveys){const c=t.surveys.map(n=>v(n)),o=new Map;c.forEach(n=>o.set(n.name,n)),e(n=>({surveys:o}))}else console.error("Failed to get the surveys.",t)}catch(t){throw console.error("Failed to get the surveys.",t),t.name==="RunResponseError"&&t.response.status===401&&console.error("Received 401, logging out."),t}},createSurvey:async(s,r)=>{const{growthUrl:t}=a(),{token:c}=l.getState();try{const o=await _({url:`${t}/api/growth/v1/surveys`,method:"POST",body:{name:s,form:r},token:c});if(o.success&&o.survey){const n=v(o.survey),S=a().surveys;S?(S.set(n.name,n),e(f=>({surveys:S}))):e(f=>({surveys:new Map([[n.name,n]])}))}else console.error("Failed to create the survey.",o)}catch(o){throw console.error("Failed to create the survey.",o),o.name==="RunResponseError"&&o.response.status===401&&console.error("Received 401, logging out."),o}}}));g.subscribe((e,a)=>{if(e.configuration.successUrl&&e.configuration.successUrl!==a.configuration.successUrl){const s=e.configuration.growthUrl;console.log(`Updating growthUrl with new value ${s}`),E.setState({growthUrl:s})}});function W(e){return u(E,e)}const m=e=>({id:d(),type:"team",handle:e,name:e,description:e+" description.",public:!1,members:[],creationDate:new Date,organization:{id:d()},setMembers:s=>{}}),R=m("Team 1"),O=m("Team 2"),I=m("Team 3"),w=[R,O,I],T=i((e,a)=>({teams:w,update:s=>e(r=>({teams:s})),updateTeam:s=>e(r=>({teams:r.teams.map(t=>t.id===s.id?{...t,...s}:t)}))}));function C(e){return u(T,e)}const M=i((e,a)=>({version:"",setVersion:s=>{s&&!a().version&&e(r=>({version:s}))},isDev:p(),core:g.getState,iam:l.getState,layout:h.getState,organization:y.getState,success:E.getState,team:T.getState}));function D(e){return u(M,e)}export{V as AGENTS_VIEW,Y as CONTENTS_VIEW,z as DATALAYER_IAM_TOKEN_KEY,L as DATALAYER_IAM_USER_KEY,F as DATALAYER_VIEW,G as JWT_DATALAYER_ISSUER,P as JWT_REFRESH_TOKEN_COOKIE_NAME,k as LIBRARY_VIEW,x as NAVIGATION_VIEW_HOMES,H as RESERVATION_WARNING_TIME_MS,J as SESSION_COOKIES,$ as SESSION_LOCAL_STORAGE_KEYS,B as SESSION_OWNER_KEY,q as SETTINGS_VIEW,Q as TUTOR_VIEW,X as claimSessionState,g as coreStore,Z as forgetSessionState,j as getOtelConsumeUrl,ee as getStoredToken,te as getStoredUser,l as iamStore,se as isRememberableRoute,re as isShellNeutralRoute,h as layoutStore,oe as loadRefreshTokenFromCookie,ae as navigationStore,y as organizationStore,ne as pageConfiguration,ie as profileStore,ue as registerSessionState,M as runStore,ce as storeToken,Se as storeUser,E as surveysStore,T as teamStore,le as useCoreStore,ge as useIAMStore,Ee as useLayoutStore,me as useNavigationStore,U as useOrganizationStore,_e as useProfile,de as useProfileStore,D as useRunStore,W as useSurveysStore,C as useTeamStore,ve as viewForRoute};