@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.
- package/dist-embed/chunks/ChatView-uYgfl4KN.js +32 -0
- package/dist-embed/chunks/{DeckComponent-Cd1sbs9L.js → DeckComponent-DS42k_Ud.js} +2 -2
- package/dist-embed/chunks/{DocumentView-ssQ835Wa.js → DocumentView-DTZjQfu5.js} +1 -1
- package/dist-embed/chunks/{EphemeralDocument-DNziilOG.js → EphemeralDocument-BcxH847U.js} +1 -1
- package/dist-embed/chunks/{ExcalidrawComponent-CQ4BeoQt.js → ExcalidrawComponent-D-DdWmbS.js} +1 -1
- package/dist-embed/chunks/{ExcalidrawModal-8W-b1OmA.js → ExcalidrawModal-Bgdc7pqI.js} +1 -1
- package/dist-embed/chunks/{JupyterLexicalExtension-BLYM-DTn.js → JupyterLexicalExtension-2cZTnnOv.js} +6 -6
- package/dist-embed/chunks/{YouTubePlugin-BgZG6fCA.js → YouTubePlugin-CcQPagoa.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-CHerLzZ0.js → abnfDiagram-VCTEODGH-BHwrDUSK.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-BdOOK2nG.js → abnfDiagram-VCTEODGH-BlJ0uJzg.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-CsKFU4Ej.js → abnfDiagram-VCTEODGH-BnGI-UIs.js} +1 -1
- package/dist-embed/chunks/{ar-SA-G6X2FPQ2-Bcy9b6jn.js → ar-SA-G6X2FPQ2-CqfmhD9l.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-C8jjE2mY.js → architectureDiagram-5GKGNRK7-BAJb7Shu.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-iDgRBR0a.js → architectureDiagram-5GKGNRK7-CuAYWP6N.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-GukKr_g1.js → architectureDiagram-5GKGNRK7-DLWJva8u.js} +1 -1
- package/dist-embed/chunks/{az-AZ-76LH7QW2-Bzy5rt95.js → az-AZ-76LH7QW2-mjoZR4wa.js} +1 -1
- package/dist-embed/chunks/{bg-BG-XCXSNQG7-C3mQkAoD.js → bg-BG-XCXSNQG7-DU3y3x4T.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-868be97b-D3BurtSN.js → blockDiagram-868be97b-DRJ_ofQv.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-DH6ta7S_.js → blockDiagram-I7D4REHJ-BZLSOJfR.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-oDRNhSU2.js → blockDiagram-I7D4REHJ-DO_8w9-1.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-edfypROz.js → blockDiagram-I7D4REHJ-XN1bU5Ii.js} +1 -1
- package/dist-embed/chunks/{bn-BD-2XOGV67Q-DHwDUFeg.js → bn-BD-2XOGV67Q-C4V6q1wT.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-3f4bdde3-Dmbl9p6m.js → c4Diagram-3f4bdde3-B-w3s9rx.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-B6NHHf7w.js → c4Diagram-7LVT6UL2-B28HS4IQ.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-CR3iQQ6O.js → c4Diagram-7LVT6UL2-BACgR0fs.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-BD3Ld97M.js → c4Diagram-7LVT6UL2-DwLtBd8O.js} +1 -1
- package/dist-embed/chunks/{ca-ES-6MX7JW3Y-CWMZCfjI.js → ca-ES-6MX7JW3Y-DzJcx7TI.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-9xCosPaH.js → chunk-2Q5K7J3B-BqK0jhMM.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-ZWnuQ6M2.js → chunk-2Q5K7J3B-Cv2QB080.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-H_DA_jTG.js → chunk-2Q5K7J3B-Pu-PawH9.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-BhWUyelG.js → chunk-5VM5RSS4-BIWdC4YC.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-7q2jPq-I.js → chunk-5VM5RSS4-DI3POCyE.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-C2EZUNrH.js → chunk-5VM5RSS4-DthkbWcR.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-B9wgW70d.js → chunk-F27PBJKO-BY-_X1Ii.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-hasZYXJc.js → chunk-F27PBJKO-DcCqnHNB.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-iAw_9Xtd.js → chunk-F27PBJKO-dSqM-5aG.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-CU661Hle.js → chunk-IMKFNOWR-BYkz40H8.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-CR2LIHPi.js → chunk-IMKFNOWR-DPv-w5lK.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-DhXkXQPV.js → chunk-IMKFNOWR-O7b2kauh.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-B40RAhYQ.js → chunk-JWPE2WC7-779bmDSv.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-DaBG37yC.js → chunk-JWPE2WC7-Be4x4L6B.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-D4pNFsZF.js → chunk-JWPE2WC7-th9umQbo.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-CNc-_UkX.js → chunk-POPQ4Y6H-B097KlFr.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-PC7NS4ab.js → chunk-POPQ4Y6H-CYXeyiko.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-WjTzJISs.js → chunk-POPQ4Y6H-C_fIQaTN.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-BgVpHjUA.js → chunk-SVP7TREG-BZUv4JX-.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-bq0J6tH_.js → chunk-SVP7TREG-YgahXZy2.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-B-LR0OEY.js → chunk-SVP7TREG-dXH2Z6GR.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-D0mlrZUj.js → chunk-TICWLB2K-C54VOu9Q.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-BKUWUi4x.js → chunk-TICWLB2K-DIe5qIoj.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-BV_9f6ak.js → chunk-TICWLB2K-YWBHGfC8.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-fV8doVJJ.js → chunk-XXDRQBXY-B1faoehH.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-CFD4Agg8.js → chunk-XXDRQBXY-CNEiTt6v.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-DF8wFPCi.js → chunk-XXDRQBXY-f3FbRmyb.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-B2RPE1Bl.js → classDiagram-ZZMXUADV-Cd7eEzi4.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-B0pbDswj.js → classDiagram-ZZMXUADV-DuuqqgIP.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-BSdRgwsr.js → classDiagram-ZZMXUADV-q1xSQX4O.js} +1 -1
- package/dist-embed/chunks/{classDiagram-f62afe4f-tD890DEl.js → classDiagram-f62afe4f-ByEt3lSF.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-604399ef-DReIuoeI.js → classDiagram-v2-604399ef-NBzfAORG.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-B2RPE1Bl.js → classDiagram-v2-VYDZK3BY-Cd7eEzi4.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-B0pbDswj.js → classDiagram-v2-VYDZK3BY-DuuqqgIP.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-BSdRgwsr.js → classDiagram-v2-VYDZK3BY-q1xSQX4O.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-CGF9N16A.js → cose-bilkent-JH36ORCC-BiEPnrEj.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-D976z1sp.js → cose-bilkent-JH36ORCC-DfR5QnyH.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-BS_pJML-.js → cose-bilkent-JH36ORCC-DzJSYCRG.js} +1 -1
- package/dist-embed/chunks/{createText-aed3d8b3-1eVJ8jxH.js → createText-aed3d8b3-6mXespHo.js} +1 -1
- package/dist-embed/chunks/{cs-CZ-2BRQDIVT-B_pe2qj9.js → cs-CZ-2BRQDIVT-BKep5hDJ.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-Cil4cm66.js → cynefinDiagram-5FMLGOSQ-B7qhaV93.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-AxJwZ7KT.js → cynefinDiagram-5FMLGOSQ-DwHfF9hE.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-D7ioXav_.js → cynefinDiagram-5FMLGOSQ-_vxJMyqw.js} +1 -1
- package/dist-embed/chunks/{da-DK-5WZEPLOC-CGWCNcJj.js → da-DK-5WZEPLOC-DlOP6lOL.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-DauBFK-x.js → dagre-GXQ25YYZ-Bjepw68A.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-B8Ip03td.js → dagre-GXQ25YYZ-DFR_CaEv.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-Cp78_L9l.js → dagre-GXQ25YYZ-Ds0JPzDS.js} +1 -1
- package/dist-embed/chunks/{de-DE-XR44H4JA-DTdq2h_G.js → de-DE-XR44H4JA-BRk2-hl3.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-LsSU5PzE.js → diagram-S7CK7UJ4-BwwRJlNT.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-BxRBCYVP.js → diagram-S7CK7UJ4-DIMHIP_O.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-cLOCifii.js → diagram-S7CK7UJ4-DjMCZvT1.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-BvgP6_rf.js → diagram-UQ7AKVKN-BqqL4ZW6.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-BK4qe_eB.js → diagram-UQ7AKVKN-COGYRNFS.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-CoIPlGw-.js → diagram-UQ7AKVKN-D0P7rl1p.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-Cy8iWh4H.js → diagram-VSXAHHWV-ChB-FOnw.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-CIhWkrRX.js → diagram-VSXAHHWV-DsMS8foW.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-DWWQ-Ga9.js → diagram-VSXAHHWV-DvxkVQ-E.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-43SwkivD.js → diagram-VX7I27RA-BIxeQH4u.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-CQM8aGRO.js → diagram-VX7I27RA-Cg10qtez.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-CCx8R8FK.js → diagram-VX7I27RA-Cuf1tsVI.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-Da75Rc5Q.js → diagram-Z3DM3KII-B22XcXbf.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-DrILxydN.js → diagram-Z3DM3KII-CNWiLQR4.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-Dqcrl8-1.js → diagram-Z3DM3KII-DsRXBtfM.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-CwBVaHP2.js → ebnfDiagram-PWID7BFC-81p8Ls5M.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-DC-Zam6d.js → ebnfDiagram-PWID7BFC-BiAjk2HF.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-Klx1dPe6.js → ebnfDiagram-PWID7BFC-C31mpWW_.js} +1 -1
- package/dist-embed/chunks/{edges-b2856ca0-B3ybuHDU.js → edges-b2856ca0-Bup5nxkN.js} +1 -1
- package/dist-embed/chunks/{el-GR-BZB4AONW-qdInZt55.js → el-GR-BZB4AONW-BwGTv3Ip.js} +1 -1
- package/dist-embed/chunks/{erDiagram-5d81789a-HZ-VLc2f.js → erDiagram-5d81789a-DFzRdHol.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-DmlOR1VA.js → erDiagram-RLTQ6QDP-BdoySyRQ.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-6YXMuidI.js → erDiagram-RLTQ6QDP-BrpNZMOa.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-CNO4pVhU.js → erDiagram-RLTQ6QDP-OQO_sYyP.js} +1 -1
- package/dist-embed/chunks/{es-ES-U4NZUMDT-CbVgghD5.js → es-ES-U4NZUMDT-tz36zNcB.js} +1 -1
- package/dist-embed/chunks/{eu-ES-A7QVB2H4-Cfyi4-QV.js → eu-ES-A7QVB2H4-CGBVWQ14.js} +1 -1
- package/dist-embed/chunks/{fa-IR-HGAKTJCU-Bpz9Yk2c.js → fa-IR-HGAKTJCU-CoO7_ncQ.js} +1 -1
- package/dist-embed/chunks/{fi-FI-Z5N7JZ37-CnNP_ASI.js → fi-FI-Z5N7JZ37-DPjdvbO9.js} +1 -1
- package/dist-embed/chunks/{flowDb-185abca5-7Nn2obHG.js → flowDb-185abca5-au1lLLx1.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-1629c991-CnvM_psw.js → flowDiagram-1629c991-BeGPcZ6y.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-Bsl5oOFb.js → flowDiagram-HODETNUW-CYTfSgr_.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-DpJLPDJS.js → flowDiagram-HODETNUW-D1SiifhW.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-_PPo6xx4.js → flowDiagram-HODETNUW-ZrGwOdyu.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-v2-1d953310-TkF25UVC.js → flowDiagram-v2-1d953310-DjmvuK3n.js} +1 -1
- package/dist-embed/chunks/{flowchart-elk-definition-6df44142-CwiGfEuJ.js → flowchart-elk-definition-6df44142-vDckeTZu.js} +1 -1
- package/dist-embed/chunks/{fr-FR-RHASNOE6-CXIU81zC.js → fr-FR-RHASNOE6-Cmv7wG_0.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-3b0b3873-DeouFDZE.js → ganttDiagram-3b0b3873-DVQKpltu.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-BeK3rGHM.js → ganttDiagram-EL5Y4UJY-BORJG_RB.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-B3ddBLm-.js → ganttDiagram-EL5Y4UJY-BqzFsgGN.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-DnJUq63S.js → ganttDiagram-EL5Y4UJY-YQkzQd01.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-CKVR9Ajq.js → gitGraphDiagram-WWUBYQGX-AAVjuV14.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-u7eHxrMk.js → gitGraphDiagram-WWUBYQGX-BKLKcFoS.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-DkYi8eWr.js → gitGraphDiagram-WWUBYQGX-D1o9osXz.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-f01e8bc2-mCCRVzIs.js → gitGraphDiagram-f01e8bc2-CJSbiZjx.js} +1 -1
- package/dist-embed/chunks/{gl-ES-HMX3MZ6V-Do1RdVfG.js → gl-ES-HMX3MZ6V-CRdkmw5y.js} +1 -1
- package/dist-embed/chunks/{he-IL-6SHJWFNN-NcTscmv6.js → he-IL-6SHJWFNN-DvMw5Cul.js} +1 -1
- package/dist-embed/chunks/{hi-IN-IWLTKZ5I-CyNpoQ12.js → hi-IN-IWLTKZ5I-DJlp0nwg.js} +1 -1
- package/dist-embed/chunks/{hu-HU-A5ZG7DT2-Bzge2Fdz.js → hu-HU-A5ZG7DT2-CzRriMFn.js} +1 -1
- package/dist-embed/chunks/{id-ID-SAP4L64H-DaNcoDhl.js → id-ID-SAP4L64H-DIWyOwkf.js} +1 -1
- package/dist-embed/chunks/{index-9bae90f3-CzUk5Hhq.js → index-9bae90f3-CSxqLQwc.js} +1 -1
- package/dist-embed/chunks/{index-Cx_cIRez.js → index-B8BulvHI.js} +1 -1
- package/dist-embed/chunks/{index-CLdL3h_Z.js → index-BCGvaYVt.js} +1 -1
- package/dist-embed/chunks/{index-BQdtKMKk.js → index-CbnU-kk0.js} +4 -4
- package/dist-embed/chunks/index-CeTMYE1j.js +1 -0
- package/dist-embed/chunks/{index-lOJZWhTu.js → index-DY5U0msZ.js} +4 -4
- package/dist-embed/chunks/{index-D_vehxcD.js → index-DxN3ZybZ.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-CrHEoNfn.js → infoDiagram-27XIBGKW-BnxVO2UJ.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-DiC5_yjB.js → infoDiagram-27XIBGKW-COSYMCha.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-C3YByzAX.js → infoDiagram-27XIBGKW-CrDC6noC.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-a29d40f1-DRVyx4Bf.js → infoDiagram-a29d40f1-oSOWBNcS.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-B87JmQRn.js → ishikawaDiagram-5VMMS53U-Cabl3zHc.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-DkW3YLz9.js → ishikawaDiagram-5VMMS53U-Dy7sKgzH.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-3WGbru46.js → ishikawaDiagram-5VMMS53U-orLa617t.js} +1 -1
- package/dist-embed/chunks/{it-IT-JPQ66NNP-6fWP-4Pk.js → it-IT-JPQ66NNP--0R7ykIn.js} +1 -1
- package/dist-embed/chunks/{ja-JP-DBVTYXUO-TOPcUfq8.js → ja-JP-DBVTYXUO-BceLsdOT.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-BZWmkUfk.js → journeyDiagram-3NMN7TZE-CFX02NzG.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-BcfZXfHF.js → journeyDiagram-3NMN7TZE-DK2YyxiL.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-BjO5pIr-.js → journeyDiagram-3NMN7TZE-YkKUQWKF.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-95396277-D_QLiVq4.js → journeyDiagram-95396277-CU6tIrkG.js} +1 -1
- package/dist-embed/chunks/{kaa-6HZHGXH3-WPmptgZr.js → kaa-6HZHGXH3-DmBIoS2A.js} +1 -1
- package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-CMOAXrZA.js → kab-KAB-ZGHBKWFO-FOhJJBEr.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-D9d45rsU.js → kanban-definition-UXKFOSKX-BluwjAGS.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-B84ZaZEy.js → kanban-definition-UXKFOSKX-C14qnrHj.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-DKCJ8_n0.js → kanban-definition-UXKFOSKX-C4dKZPut.js} +1 -1
- package/dist-embed/chunks/{kk-KZ-P5N5QNE5-B6ezOPzr.js → kk-KZ-P5N5QNE5-Cfl-4Zso.js} +1 -1
- package/dist-embed/chunks/{km-KH-HSX4SM5Z-C84QUPbc.js → km-KH-HSX4SM5Z-CkPlUErW.js} +1 -1
- package/dist-embed/chunks/{ko-KR-MTYHY66A-cuBEuTL_.js → ko-KR-MTYHY66A-ClNehjJR.js} +1 -1
- package/dist-embed/chunks/{ku-TR-6OUDTVRD-B9KdlCAR.js → ku-TR-6OUDTVRD-BWAQD572.js} +1 -1
- package/dist-embed/chunks/{layout-Do3wJC1j.js → layout-BJZx1DET.js} +1 -1
- package/dist-embed/chunks/{layout-Dx5Hzkor.js → layout-Cj2S0_6r.js} +1 -1
- package/dist-embed/chunks/{layout-C6Twj1mW.js → layout-CrZLRdHC.js} +1 -1
- package/dist-embed/chunks/{lt-LT-XHIRWOB4-B39JwBGi.js → lt-LT-XHIRWOB4-CdVgmT3F.js} +1 -1
- package/dist-embed/chunks/{lv-LV-5QDEKY6T-8WReOaa7.js → lv-LV-5QDEKY6T-DhvrkAd6.js} +1 -1
- package/dist-embed/chunks/{mermaid.core-D0955PCw.js → mermaid.core-CN-kUGXQ.js} +4 -4
- package/dist-embed/chunks/{mermaid.core-D98kc0OO.js → mermaid.core-Cb8_A6yp.js} +3 -3
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-D86IPkt3.js → mindmap-definition-YA3MSWOX-BI8iAkoX.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-5wZuXgB8.js → mindmap-definition-YA3MSWOX-C3PLDJT4.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-BURkGTKI.js → mindmap-definition-YA3MSWOX-CLcKjJkV.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-e4c1d938-UbbfpF-a.js → mindmap-definition-e4c1d938-BR3XAv_v.js} +1 -1
- package/dist-embed/chunks/{mr-IN-CRQNXWMA-DUaS8VWx.js → mr-IN-CRQNXWMA-EGNXrciM.js} +1 -1
- package/dist-embed/chunks/{my-MM-5M5IBNSE-BdJYwQXg.js → my-MM-5M5IBNSE-B-8cjGNb.js} +1 -1
- package/dist-embed/chunks/{nb-NO-T6EIAALU-C_p5yu1z.js → nb-NO-T6EIAALU-C49vGMvQ.js} +1 -1
- package/dist-embed/chunks/{nl-NL-IS3SIHDZ-DM5qgcCp.js → nl-NL-IS3SIHDZ-Bop5b6pF.js} +1 -1
- package/dist-embed/chunks/{nn-NO-6E72VCQL-BuX1DqI5.js → nn-NO-6E72VCQL-CztS-gYX.js} +1 -1
- package/dist-embed/chunks/{oc-FR-POXYY2M6-BAWljcaf.js → oc-FR-POXYY2M6-D5wo47w8.js} +1 -1
- package/dist-embed/chunks/{pa-IN-N4M65BXN-2iyq8qxX.js → pa-IN-N4M65BXN-USnnio2R.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-BjrOX_Ki.js → pegDiagram-XKGWAZYB-BHSFNuDr.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-BJAdJVqh.js → pegDiagram-XKGWAZYB-CxqsEvHB.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-CyuSADYr.js → pegDiagram-XKGWAZYB-D_KkFB8O.js} +1 -1
- package/dist-embed/chunks/{percentages-BXMCSKIN-C9b5dzpq.js → percentages-BXMCSKIN-Qs237i5f.js} +5 -5
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-C55wHgO0.js → pieDiagram-E7YTZNPT-C01d4vFA.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-ni9UMEzV.js → pieDiagram-E7YTZNPT-DrPlYr3y.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-GvxNnk0x.js → pieDiagram-E7YTZNPT-XvKrNQIe.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-c941bede-DTmViAsB.js → pieDiagram-c941bede-5Q4eh0ys.js} +1 -1
- package/dist-embed/chunks/{pl-PL-T2D74RX3-C6nLJHhB.js → pl-PL-T2D74RX3-BzossiHE.js} +1 -1
- package/dist-embed/chunks/{pt-BR-5N22H2LF-B1adz-DU.js → pt-BR-5N22H2LF-DqZAv4oC.js} +1 -1
- package/dist-embed/chunks/{pt-PT-UZXXM6DQ-BCZpI4LV.js → pt-PT-UZXXM6DQ-CfFta-9l.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-CufBEqrC.js → quadrantDiagram-AXDQQJYC-Ba9Uoul2.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-BCeMrGXB.js → quadrantDiagram-AXDQQJYC-Cayreizb.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-Yg2WGHWh.js → quadrantDiagram-AXDQQJYC-qHBK2GfL.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-cf8b8fe0-BZAbhmbg.js → quadrantDiagram-cf8b8fe0-baOXG64t.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-BAXhb26s.js → railroadDiagram-O6MQD6OU-BoiPFsc0.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-6tStysfX.js → railroadDiagram-O6MQD6OU-Ck3rOcDX.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-Df7m1mT4.js → railroadDiagram-O6MQD6OU-DPbTwglx.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-53bda41b-DNqx3JRF.js → requirementDiagram-53bda41b--Vif0cFL.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-CmXBYo40.js → requirementDiagram-BXWQKSXE-BU62-ZX8.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-0AqPqv7a.js → requirementDiagram-BXWQKSXE-BnpFahSo.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-B0SL6Gqb.js → requirementDiagram-BXWQKSXE-TxEizGOu.js} +1 -1
- package/dist-embed/chunks/{ro-RO-JPDTUUEW-BPM7y_F2.js → ro-RO-JPDTUUEW-DeKMiDGM.js} +1 -1
- package/dist-embed/chunks/{ru-RU-B4JR7IUQ-UViKo8dy.js → ru-RU-B4JR7IUQ-DwcP27bd.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-rQsp_j9w.js → sankeyDiagram-P5KCCOFB-BZdt2wZF.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-CktuQIU1.js → sankeyDiagram-P5KCCOFB-Be7ybx8L.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-CqcWOAyy.js → sankeyDiagram-P5KCCOFB-BvBkWEs8.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-c3ef121a-4-5C_fXA.js → sankeyDiagram-c3ef121a-DG1UM3l4.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-82a5b84f-DedJ5qnD.js → sequenceDiagram-82a5b84f-UdVxURsq.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-Br4F1sd7.js → sequenceDiagram-WJ2MYXX4-BCfarclu.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-BBGHED3s.js → sequenceDiagram-WJ2MYXX4-D7c_CoMJ.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-GMFparx1.js → sequenceDiagram-WJ2MYXX4-Dg0wfvkN.js} +1 -1
- package/dist-embed/chunks/{si-LK-N5RQ5JYF-D7TIYEDr.js → si-LK-N5RQ5JYF-d-F0Cewp.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-8qFOiWrK.js → sizeCapture-INFHLROL-DMANNAaY.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-C_M5Nl06.js → sizeCapture-INFHLROL-Dj0ydwKk.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-BNuVN7vX.js → sizeCapture-INFHLROL-DlIgxaWS.js} +1 -1
- package/dist-embed/chunks/{sk-SK-C5VTKIMK-CQedcNlJ.js → sk-SK-C5VTKIMK-BgobCs_4.js} +1 -1
- package/dist-embed/chunks/{sl-SI-NN7IZMDC-BX1W51zJ.js → sl-SI-NN7IZMDC-BLiLsQKQ.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-43e79a5f-C-TVhCrM.js → stateDiagram-43e79a5f-CNvh6hi1.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-tqnmMQUf.js → stateDiagram-D77RDMKH-B57tGlQp.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-CWrs6KzY.js → stateDiagram-D77RDMKH-D0LWS8oe.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-XK76naDS.js → stateDiagram-D77RDMKH-DxKAfNML.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-2041ed4f-TVcKzajK.js → stateDiagram-v2-2041ed4f-BJpoWqKy.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-D3ZN_IoS.js → stateDiagram-v2-MP3YSRHH-CouGWb0D.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-lpluVNfO.js → stateDiagram-v2-MP3YSRHH-DAJ3mmV7.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-C3MNIg5B.js → stateDiagram-v2-MP3YSRHH-DWVb2don.js} +1 -1
- package/dist-embed/chunks/{styles-455b33cd-CIILXOoF.js → styles-455b33cd--c-Q4lAI.js} +1 -1
- package/dist-embed/chunks/{styles-f932cba9-CVBMDsh6.js → styles-f932cba9-D41PptLO.js} +1 -1
- package/dist-embed/chunks/{styles-fcc2142b-CTOmFTKK.js → styles-fcc2142b-DO_mbuzb.js} +1 -1
- package/dist-embed/chunks/{subset-shared.chunk-PVguOYyR.js → subset-shared.chunk-KMJoi0ES.js} +1 -1
- package/dist-embed/chunks/{subset-worker.chunk-iWGyr_E5.js → subset-worker.chunk-D4fLKx8W.js} +1 -1
- package/dist-embed/chunks/{sv-SE-XGPEYMSR-DI7YcqUR.js → sv-SE-XGPEYMSR-BG1QXCvW.js} +1 -1
- package/dist-embed/chunks/{svgDrawCommon-148a3cd9-BCgvh5nL.js → svgDrawCommon-148a3cd9-_sy1MPqQ.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-B9qJ99nD.js → swimlanes-42K2YHIH-DFY4MLTT.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-Ca0PhRmf.js → swimlanes-42K2YHIH-DFhNG700.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-DHcV40DB.js → swimlanes-42K2YHIH-qHdPIKqR.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-BEQKTD21.js → swimlanesDiagram-VR7AAH4N-DLu8qxW1.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-CQ7d-sbG.js → swimlanesDiagram-VR7AAH4N-DfJlYoc0.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-D-2e4UFJ.js → swimlanesDiagram-VR7AAH4N-Di8ZW7vB.js} +1 -1
- package/dist-embed/chunks/{ta-IN-2NMHFXQM-OZH5xroe.js → ta-IN-2NMHFXQM-Cwf7MXhM.js} +1 -1
- package/dist-embed/chunks/{th-TH-HPSO5L25-gAuWhBpT.js → th-TH-HPSO5L25-BgFIeFdc.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-CtZZro9U.js → timeline-definition-24CTP7MA-CSnCQHgO.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-DJcFE1jT.js → timeline-definition-24CTP7MA-EjGuok3K.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-B8lxEouP.js → timeline-definition-24CTP7MA-jNu4kA6-.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-7545f45a-CLycxRtq.js → timeline-definition-7545f45a-DKVkx2iN.js} +1 -1
- package/dist-embed/chunks/{tr-TR-DEFEU3FU-DQ0SDuS6.js → tr-TR-DEFEU3FU-B36BzndK.js} +1 -1
- package/dist-embed/chunks/{uk-UA-QMV73CPH-7J4e2jng.js → uk-UA-QMV73CPH-BIdgdufZ.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-zaNGkt8b.js → vennDiagram-4TSXK5OY-BwJIpWTX.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-Ca7szyFH.js → vennDiagram-4TSXK5OY-Ct92LUy3.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-BMmQ-DIV.js → vennDiagram-4TSXK5OY-sTUDzxoI.js} +1 -1
- package/dist-embed/chunks/{vi-VN-M7AON7JQ-dNpZ5DZ5.js → vi-VN-M7AON7JQ-C_vYqSDJ.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-C1VKw6YX.js → wardleyDiagram-VM6X3IG4-CmL9UVda.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-Dh0UOrRp.js → wardleyDiagram-VM6X3IG4-D19vZyCA.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-D_Q6gtp2.js → wardleyDiagram-VM6X3IG4-pjFMZv0g.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-3f383b91-B-BTwetN.js → xychartDiagram-3f383b91-C9v4_Sav.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-D_TaZM0k.js → xychartDiagram-S5SC5T6Z-BR0Sc17V.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-4OhI4XQl.js → xychartDiagram-S5SC5T6Z-CVSyvraK.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-BQHFHk-x.js → xychartDiagram-S5SC5T6Z-DlWO5eFt.js} +1 -1
- package/dist-embed/chunks/{zh-CN-LNUGB5OW-CZSp2g8b.js → zh-CN-LNUGB5OW-yOtUN9v4.js} +1 -1
- package/dist-embed/chunks/{zh-HK-E62DVLB3-DUqVOyB_.js → zh-HK-E62DVLB3-Drd2m3yL.js} +1 -1
- package/dist-embed/chunks/{zh-TW-RAJ6MFWO-U-TalxxN.js → zh-TW-RAJ6MFWO-CqJCCTAz.js} +1 -1
- package/dist-embed/datalayer-app-main.js +13 -13
- package/lib/AgentNode.js +9 -9
- package/lib/agents/AgentRuntimeChat.js +1 -1
- package/lib/api/agents.js +3 -3
- package/lib/api/context.js +3 -3
- package/lib/api/evals.js +3 -3
- package/lib/api/events.js +3 -3
- package/lib/api/index.js +2 -2
- package/lib/api/notifications.js +3 -3
- package/lib/api/output.js +3 -3
- package/lib/api/runtimes/checkpoints.js +3 -3
- package/lib/api/runtimes/environments.js +3 -3
- package/lib/api/runtimes/healthz.js +2 -2
- package/lib/api/runtimes/runtimes.js +3 -3
- package/lib/api/runtimes/snapshots.js +3 -3
- package/lib/api/scheduler/schedules.js +2 -2
- package/lib/api/spacer/documents.js +2 -2
- package/lib/api/spacer/healthz.js +2 -2
- package/lib/api/spacer/items.js +2 -2
- package/lib/api/spacer/lexicals.js +2 -2
- package/lib/api/spacer/notebooks.js +2 -2
- package/lib/api/spacer/spaces.js +3 -3
- package/lib/api/spacer/users.js +3 -3
- package/lib/apps/core/index.d.ts +12 -0
- package/lib/apps/embed/AppEmbed.js +2 -2
- package/lib/apps/embed/element.js +1 -1
- package/lib/apps/plugins/agents/AnonymousKeyBadge.js +1 -1
- package/lib/apps/plugins/app-activity/AppActivity.js +2 -2
- package/lib/apps/plugins/app-computer/AppComputer.js +1 -1
- package/lib/apps/plugins/app-page/AppPage.js +1 -1
- package/lib/apps/plugins/app-rules/AppRulesCard.js +1 -1
- package/lib/apps/plugins/app-rules/sessionRulesAction.d.ts +17 -0
- package/lib/apps/plugins/app-rules/sessionRulesAction.js +30 -0
- package/lib/apps/plugins/assistant/index.js +2 -2
- package/lib/apps/plugins/chat/ChatView.js +1 -1
- package/lib/apps/plugins/chat/SessionActionsMenu.js +13 -8
- package/lib/apps/plugins/chat/sessionActions.js +4 -0
- package/lib/apps/plugins/commands/index.js +1 -1
- package/lib/apps/plugins/document/openingDocument.js +1 -1
- package/lib/apps/plugins/page-layout/TurnPanel.js +1 -1
- package/lib/apps/plugins/page-layout/index.js +2 -2
- package/lib/apps/presets.js +1 -1
- package/lib/chat/ChatFloating.js +1 -1
- package/lib/chat/ChatPopupStandalone.js +1 -1
- package/lib/chat/ChatSidebar.js +1 -1
- package/lib/chat/ChatStandalone.js +1 -1
- package/lib/chat/assistant/characters.js +1 -1
- package/lib/chat/base/ChatBase.js +1 -1
- package/lib/chat/presence/Presence.js +1 -1
- package/lib/client/AgentRuntimesClient.js +1 -1
- package/lib/client/AgentsMixin.js +1 -1
- package/lib/client/mixins/RuntimesMixin.js +1 -1
- package/lib/client/mixins/SpacerMixin.js +2 -2
- package/lib/client/utils/spacerUtils.js +1 -1
- package/lib/components/agents/AgentSummary.js +1 -1
- package/lib/components/cards/NotificationEventCard.js +1 -1
- package/lib/components/cards/OutputCard.js +1 -1
- package/lib/components/cards/ToolApprovalCard.js +1 -1
- package/lib/components/code-sandboxes/CodeSandboxLauncher.js +6 -6
- package/lib/components/code-sandboxes/CodeSandboxPickerCell.js +1 -1
- package/lib/components/context/SpaceSelect.js +1 -1
- package/lib/components/flashes/FlashDisclaimer.js +1 -1
- package/lib/components/inspector/AgentInspector.js +1 -1
- package/lib/components/inspector/agentSpans.js +1 -1
- package/lib/components/progress/CreditsIndicator.js +2 -2
- package/lib/components/progress/index.js +1 -1
- package/lib/components/scheduler/ScheduleMenu.js +1 -1
- package/lib/components/snapshots/SandboxSnapshotMenu.js +2 -2
- package/lib/components/snippets/SnippetDialog.js +1 -1
- package/lib/components/teams/SceneTranscript.js +1 -1
- package/lib/context/CostUsageChart.js +1 -1
- package/lib/context/TokenUsageChart.js +1 -1
- package/lib/context/TurnGraphChart.js +1 -1
- package/lib/examples/AgentA2ATeamExample.js +2 -2
- package/lib/examples/AgentCheckpointsExample.js +1 -1
- package/lib/examples/AgentCodemodeExample.js +1 -1
- package/lib/examples/AgentEvalsExample.js +1 -1
- package/lib/examples/AgentGuardrailsExample.js +2 -2
- package/lib/examples/AgentInferenceProviderExample.js +1 -1
- package/lib/examples/AgentMCPExample.js +1 -1
- package/lib/examples/AgentMemoryExample.js +1 -1
- package/lib/examples/AgentMonitoringExample.js +1 -1
- package/lib/examples/AgentNotificationsExample.js +1 -1
- package/lib/examples/AgentOtelExample.js +1 -1
- package/lib/examples/AgentOutputsExample.js +1 -1
- package/lib/examples/AgentSkillsExample.js +1 -1
- package/lib/examples/AgentToolApprovalsExample.js +1 -1
- package/lib/examples/AgentTriggersExample.js +1 -1
- package/lib/examples/AgentspecsExample.js +1 -1
- package/lib/examples/LoopWorkspaceEmbed.js +1 -1
- package/lib/examples/ScenesExample.js +2 -2
- package/lib/examples/VoiceChatExample.js +1 -1
- package/lib/examples/components/AuthRequiredView.js +2 -2
- package/lib/examples/components/HeaderControls.js +1 -1
- package/lib/examples/main.js +4 -4
- package/lib/examples2/main.js +1 -1
- package/lib/hooks/index.js +1 -1
- package/lib/hooks/useAIAgentsWebSocket.js +2 -2
- package/lib/hooks/useAgentRuntimes.js +3 -3
- package/lib/hooks/useCellOutputshot.js +1 -1
- package/lib/hooks/useCheckpoints.js +6 -6
- package/lib/hooks/useMonitoring.js +1 -1
- package/lib/hooks/useNotifications.js +2 -2
- package/lib/hooks/useProjects.js +1 -1
- package/lib/jupyter/serverExecution.js +2 -2
- package/lib/mocks/models/CourseMock.js +2 -2
- package/lib/mocks/models/SpaceMock.js +2 -2
- package/lib/models/CodeSandboxSnapshotDTO.js +1 -1
- package/lib/models/EnvironmentDTO.js +1 -1
- package/lib/models/LexicalDTO.js +2 -2
- package/lib/models/NotebookDTO.js +2 -2
- package/lib/models/Page.js +1 -1
- package/lib/models/RuntimeDTO.js +1 -1
- package/lib/models/Space.js +2 -2
- package/lib/models/SpaceDTO.js +2 -2
- package/lib/models/index.js +1 -1
- package/lib/portable/sessions.d.ts +4 -0
- package/lib/portable/sessions.js +4 -0
- package/lib/runtimes/actions.js +1 -1
- package/lib/services/DatalayerServiceManager.js +2 -2
- package/lib/state/index.js +3 -3
- package/lib/state/substates/RuntimesState.js +2 -2
- package/lib/state/substates/index.js +1 -1
- package/lib/stores/agentRuntimeStore.js +1 -1
- package/lib/types/mcp.js +1 -1
- package/lib/types/sandbox.js +1 -1
- package/package.json +1 -1
- package/scripts/check-npm-pack.mjs +22 -3
- package/scripts/esm-specifiers.mjs +71 -1
- package/scripts/fully-specify-lib.mjs +17 -2
- package/dist-embed/chunks/ChatView-LzqHHAEe.js +0 -32
- package/dist-embed/chunks/index-D8x0MQWQ.js +0 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import{a5 as B,fT as Gs,r as s,j as t,fU as Ys,fV as qs,ch as Jn,B as h,H as xt,T as z,v as J,cN as qt,eN as nn,fW as se,cH as bt,y as Js,fX as Qs,fY as Zs,em as Xs,fZ as eo,a_ as to,f_ as no,f$ as so,g0 as oo,g1 as ao,g2 as io,g3 as ro,ee as ls,ec as lo,ef as sn,g4 as co,g5 as uo,g6 as fo,g7 as po,g8 as cs,g9 as ds,ga as mo,L as go,gb as ho,dq as Jt,I as us,bp as st,D as fs,gc as Qn,gd as xo,ge as bo,dm as vo,bh as So,gf as yo,gg as wo,gh as Co,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 Uo,gr as $o,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 wa,hf as Ca,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 Ua}from"../datalayer-app-main.js";import{S as $a,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 ps(){const n=B(Gs);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 r=n.message;if(typeof r=="string"&&r.trim())return r}return o},Ba=eo`
|
|
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:r,name:i,title:d="Datalayer OTEL",description:p="Sign in to access the observability dashboard.",icon:v,leadingIcon:c=t.jsx(Xs,{size:24}),github:f=!1,google:x=!1,linkedin:y=!1,apiKey:u=!1,signUp:ue=!0,socialSignInNavigationTarget:O,asDoc:w=!1,fillHeight:k=!0,hideHero:_=!1,calloutTitle:xe,calloutDescription:A,passwordToggleLabel:yt="Sign in with a password",signUpTitle:wt="Don't have an account?",signUpDescription:an="Create a free Datalayer account with your email address.",signUpLabel:be="Sign up with email",signUpHref:Ct="https://datalayer.ai/signup",onSignUp:Q,forgotPasswordHref:fe="/password",forgotPasswordLabel:at="Forgot password?",showForgotPassword:oe=!0,socialButtonMarginTop:Pe=3,actionButtonMaxWidth:te=320})=>{const ve=w&&!_,C=i??(w&&d==="Datalayer OTEL"?"Datalayer Sign In":d),it=v??(w?t.jsx($a,{size:24}):c),Se=s.useMemo(()=>{if(r)return r;const m=ss();return m?`${m}/api/iam/v1/login`:"/api/iam/v1/login"},[r]),[Z,jt]=s.useState(""),[L,kt]=s.useState(""),[ye,Tt]=s.useState(!1),[Ue,Rt]=s.useState(!1),[P,$e]=s.useState(!1),[X,Be]=s.useState(!1),[Me,Ve]=s.useState(null),[K,It]=s.useState(null),[ae,Et]=s.useState(""),[He,At]=s.useState(null),[we,ee]=s.useState(null),{enqueueToast:Ce}=Ys(),[je,ke]=s.useState(!1),[pe,De]=s.useState(""),me=s.useRef(null),We=s.useCallback(m=>qs()?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 U=ss(),V=new URLSearchParams({provider:m.name,callback_uri:We(m)}),H=O===void 0?void 0:String(O||"").trim(),Ge=H===void 0?ie&&ie!=="/"?ie:void 0:H&&H.startsWith("/")&&!H.startsWith("//")?H:void 0;Ge&&V.set("post_auth_redirect",Ge);const E=`${U||""}/api/iam/v1/oauth2/authz/url?${V.toString()}`,$=await fetch(E),j=await $.json(),ce=j?.autorization_url;if(!$.ok||!ce)throw new Error(j?.message||"Unable to start social sign-in.");window.location.assign(ce)}catch(U){const V=Na(U);ee(V),Ce(V,{variant:"error"}),Ve(null),Be(!1)}}},[We,ie,Ce,X,O]);s.useEffect(()=>{je&&me.current?.focus()},[je]);const re=s.useCallback(()=>{ke(!1),De("")},[]),Te=s.useCallback(()=>{!pe.trim()||!o||(o(pe.trim()),re())},[pe,o,re]),le=s.useCallback(()=>{if(Q){Q();return}window.location.assign(Ct)},[Q,Ct]),rt=s.useCallback(()=>{if(fe){if(fe.startsWith("http://")||fe.startsWith("https://")){window.open(fe,"_blank","noopener,noreferrer");return}window.location.assign(fe)}},[fe]),Oe=s.useCallback(async()=>{if(!(w||!Z||!L||P)){$e(!0),ee(null);try{const m=await fetch(Se,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({handle:Z,password:L})});if(!m.ok)throw new Error(`HTTP ${m.status}`);const U=await m.json();if(U.success&&U.token){const V=String(U?.user?.id||U?.user?.uid||"").trim();if(!!U?.user?.mfaUrl&&V){It(V),At(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{$e(!1)}}},[w,Z,L,P,Se,n]),Le=s.useCallback(async()=>{if(!(w||P||!K||!ae.trim()||!He)){$e(!0),ee(null);try{const m=new URL(Se,window.location.origin),U=m.pathname.endsWith("/api/iam/v1/login")?m.href.replace(/\/api\/iam\/v1\/login$/,""):`${m.origin}`,V=await fetch(`${U}/api/iam/v1/users/${K}/mfa/validate`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userUid:K,code:ae.trim()})}),H=await V.json();if(!V.ok||!H?.success)throw new Error(H?.message||"Failed to validate your MFA code.");n&&n(He,Z)}catch(m){const U=m instanceof Error?m.message:String(m);ee(U),Ce(U,{variant:"error"})}finally{$e(!1)}}},[w,Ce,Z,P,Se,ae,He,K,n]),G=s.useCallback(m=>{m.key==="Enter"&&(K?Le():Oe())},[K,Oe,Le]),Ke=X||P||w;return t.jsxs(h,{className:"signin-input-theme-scope",display:"flex",alignItems:_||ve||!k?"flex-start":"center",justifyContent:"center",minHeight:_||ve||!k?"auto":"100vh",bg:_?"transparent":"canvas.default",color:"fg.default",py:_?0:ve?2:4,children:[t.jsx(Ba,{}),t.jsxs(h,{width:"100%",maxWidth:440,p:0,children:[!_&&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:C})]}),t.jsx(z,{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(z,{sx:{color:"fg.muted",fontSize:1},children:A})]}),!K&&(f||x||y)&&t.jsxs(t.Fragment,{children:[f&&t.jsx(J,{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(J,{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"}),y&&t.jsx(J,{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"})]}),!K&&!ye&&t.jsx(h,{mt:3,display:"flex",justifyContent:"center",children:t.jsx(J,{leadingVisual:nn,size:"large",block:!0,disabled:w||P||X,onClick:()=>Tt(!0),sx:{maxWidth:te,mx:"auto"},children:yt})}),!K&&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||w,onChange:m=>jt(m.target.value),onKeyDown:G})]}),t.jsxs(se,{required:!0,sx:{mb:3},children:[t.jsx(se.Label,{children:"Password"}),t.jsx(bt,{block:!0,placeholder:"Your password",type:Ue?"text":"password",value:L,disabled:P||w,onChange:m=>kt(m.target.value),onKeyDown:G,trailingAction:t.jsx(bt.Action,{onClick:()=>Rt(!Ue),disabled:P||w,icon:Ue?Ma:Oa,"aria-label":Ue?"Hide password":"Show password",sx:{color:"var(--fgColor-muted)"}})})]}),t.jsxs(h,{display:"flex",alignItems:"center",justifyContent:"space-between",mt:3,children:[t.jsx(J,{variant:"primary",disabled:P||w||!Z||!L,onClick:Oe,children:P?"Signing in…":"Sign In"}),oe&&t.jsx(Js,{as:"button",sx:{fontSize:1,cursor:w?"not-allowed":"pointer",background:"none",border:"none",opacity:w?.6:1},onClick:()=>{w||P||rt()},children:at})]})]}),K&&t.jsxs(t.Fragment,{children:[t.jsxs(se,{required:!0,sx:{mb:3,mt:2},children:[t.jsx(se.Label,{children:"MFA Code"}),t.jsx(bt,{autoFocus:!0,block:!0,placeholder:"Your MFA code",value:ae,disabled:P||w,onChange:m=>Et(m.target.value),onKeyDown:G})]}),t.jsx(J,{variant:"primary",block:!0,disabled:P||w||!ae.trim(),onClick:Le,sx:{maxWidth:te,mx:"auto"},children:P?"Validating…":"Validate MFA Code"})]}),we&&t.jsx(z,{sx:{color:"danger.fg",fontSize:1,mt:3,display:"block"},children:we}),ue&&t.jsxs(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:wt}),t.jsx(z,{as:"p",sx:{color:"fg.muted",fontSize:1,mb:3},children:an}),t.jsx(h,{display:"flex",justifyContent:"center",children:t.jsx(J,{variant:"primary",size:"large",leadingVisual:Qs,disabled:w||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(z,{sx:{fontSize:0,color:"fg.muted"},children:"or"}),t.jsx(h,{flex:1,height:"1px",bg:"border.default"})]}),t.jsx(J,{block:!0,leadingVisual:nn,disabled:w||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(Zs,{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(J,{type:"button",onClick:re,children:"Cancel"}),t.jsx(J,{type:"submit",variant:"primary",disabled:!pe.trim(),children:"Authenticate"})]})]})})]})]})]})};function Ha(n){const{agentId:o,instructions:r,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:r,model:i,frontendTools:d,inference:p,subagents:v,sharing:c,onSubagentEvent:f,modeEffect:x}}}const os=to((n,o)=>({pending:void 0,suggest:(r,i)=>{const d=r.trim();d&&n({pending:{text:d,submit:i?.submit??!1,nonce:(o().pending?.nonce??0)+1}})},consume:()=>n({pending:void 0})})),Da=({state:n})=>no[n];class Wa extends Error{constructor(o,r){super(r),this.status=o,this.name="RuntimeRefusal"}status}function Ka({baseUrl:n,getAccessToken:o,fetch:r}){const i=n.replace(/\/+$/,""),d=(f={})=>{const x=o();return{...f,...x?{Authorization:`Bearer ${x}`}:{}}},p=async f=>{throw new Wa(f.status,ao(f.status,f.statusText,await io(f)))};return{json:async(f,x="GET",y)=>{const u=await r(`${i}${f}`,{method:x,headers:d({Accept:"application/json",...y===void 0?{}:{"Content-Type":"application/json"}}),...y===void 0?{}:{body:JSON.stringify(y)}});return u.ok?await u.json():p(u)},stream:async(f,x,{onEvent:y,signal:u},ue="POST")=>{const O=await r(`${i}${f}`,{method:ue,headers:d({"Content-Type":"application/json",Accept:"text/event-stream"}),body:JSON.stringify(x),signal:u});if(!O.ok)return p(O);await ro(O,y)},refused:p,headers:d,root:i,fetcher:r}}const W=n=>`/api/v1/apps/sessions/${encodeURIComponent(n)}`;function Ga(n){const{json:o,stream:r,fetcher:i,headers:d,refused:p,root:v}=Ka(n);return{serverUrl:v,accessToken:()=>n.getAccessToken(),start:(c,f)=>r("/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)=>r(`${W(c)}/messages`,{text:f},x),changeSettings:(c,f,x)=>r(`${W(c)}/settings`,{values:f},x,"PUT"),resume:(c,f,x)=>r(`${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=>oo(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 i(`${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 i(`${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=>so((await o(`${W(c)}/messages`)).messages)}}function Ya({agentName:n,sandboxStillRuns:o=!1,temporary:r=!0,onSignedIn:i,onSignUp:d}){const{configuration:p}=ls(),v=s.useCallback(c=>{lo.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(z,{sx:{fontSize:2,fontWeight:"semibold",color:"fg.default"},children:r?"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:[r?`${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(),r=sn(c=>c.token),i=o?.aiInferenceUrl||qa,d=co(i,n&&!r),p=r||d.token,v=s.useMemo(()=>({inferenceUrl:i,token:p||void 0}),[i,p]);return{inference:v,needsSignIn:uo(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 r=(o.subagents??[]).map(i=>{const d=i.ref?fo(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?[...r,Qa]:r}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(r=>o?.has(r.name)||Xa(r.name))}function ti(n,o){const r=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:r(i)})).sort((i,d)=>i.rank-d.rank||i.index-d.index).map(i=>i.entry)}function ni(n,o,r){if(!r||!n.endsWith("-tools"))return!1;const i=n.slice(0,-6);return o.has(i)&&i!==r}const si={type:"object",properties:{}};function oi(n,o){const r=new Set(n.toolset);return n.commands.filter(i=>r.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 ms(n,o){return n.flatMap(r=>oi(r,o))}function ai(){const n=po(),o=ps();return s.useMemo(()=>ms(o,n),[o,n])}function ii(n){const o=n?.app_instance;if(!o||typeof o!="object")return"";const r=o.deployment_uid;return typeof r=="string"?r.trim():""}function ri(n,o,r){return n||!o?n:{id:r,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=mo(n);return t.jsxs(h,{display:"inline-flex",alignItems:"center",gap:2,"data-session-state":n.state,children:[t.jsx(go,{size:"small",variant:n.state==="open"?"accent":n.state==="paused"?"attention":"secondary",children:ho(n)}),o?t.jsx(z,{sx:{fontSize:0,color:"fg.muted"},"data-session-lineage":"",children:o}):null]})}function di({facts:n,turn:o,context:r}){const i=B(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(J,{size:"small",variant:"invisible","data-turn-action":p.id,onClick:()=>{Promise.resolve(p.run(n,{...r,atTurn:o})).catch(v=>r.say(String(v.message??v)))},children:p.label},p.id))})}function ui({uid:n,describe:o,context:r}){const i=B(cs),[d,p]=s.useState(void 0),[v,c]=s.useState(!1),[f,x]=s.useState(""),[y,u]=s.useState(void 0),ue={...r,show:r.show??u,say:k=>{x(k),r.say(k)}},O=s.useCallback(k=>{c(k),k&&n&&o(n).then(p,()=>p(void 0))},[o,n]);if(!n||i.length===0)return null;const w=ds(i,d);return t.jsxs(t.Fragment,{children:[t.jsxs(Jt,{open:v,onOpenChange:O,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:[w.length===0?t.jsx(st.Item,{disabled:!0,children:d?"Nothing applies to this session now.":"Reading the session…"}):w.map(k=>t.jsx(st.Item,{"data-session-action":k.id,onSelect:()=>{d&&Promise.resolve(k.run(d,ue)).catch(_=>ue.say(String(_.message??_)))},children:k.label},k.id)),f?t.jsxs(t.Fragment,{children:[t.jsx(st.Divider,{}),t.jsx(st.Item,{disabled:!0,"data-testid":"session-actions-said",children:f})]}):null]})})]}),y?t.jsx(fs,{title:y.title,onClose:()=>u(void 0),width:"large",children:t.jsx(h,{"data-session-panel":"",children:y.render()})}):null]})}const is={confirm:"Switch",cancel:"Keep it"};function fi({question:n,onPick:o}){const[r,i]=s.useState(n.options[0]?.id??""),[d,p]=s.useState("");s.useEffect(()=>{let c=!0;if(!n.says||!r){p("");return}return n.says(r).then(f=>c&&p(f),()=>c&&p("")),()=>{c=!1}},[r,n]);const v=n.options.find(c=>c.id===r);return t.jsx(fs,{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:!r,onClick:()=>o(r||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:r,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(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 pi="var(--theme-accent)";function gs({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:r}){const i=r==="thinking"||r==="working",d=r==="paused";return t.jsxs(h,{as:"span","aria-hidden":!0,"data-presence":r,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||r==="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(gs,{face:n,size:o})})]})}function gi({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: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(),r=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),y=So(),u=y.getConfig(yo),ue=u?.placeholder||o.placeholder,O=u?.defaultSurface??"notebook",w=y.getConfig(wo),[k,_]=s.useState(de),xe=s.useRef(!1),A=B(Co),yt=B(jo),wt=B(ko),be=B(To)[0]?.value,Q=Qt(be?.promptStance??hi)??be?.prompt,fe=B(Ro),at=Io(fe[0]?.value),oe=s.useRef(at);oe.current=at;const Pe=s.useRef(""),te=B(Eo),ve=s.useMemo(()=>Ao(()=>te.reduce((e,a)=>({...e,...a.value.extras.value}),{})),[te]),C=Qt(te.length>0?ve: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,[L,kt]=s.useState(!1),[ye,Tt]=s.useState(!1),[Ue,Rt]=s.useState(!1),[P,$e]=s.useState({open:!1,pendingApproval:!1}),X=Uo(L,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}),K=s.useCallback(e=>{i.current=e,Tt(!!e)},[]),It=s.useCallback(e=>{const{open:a,pendingApproval:l}=$o(e);$e(Ee=>Ee.open===a&&Ee.pendingApproval===l?Ee:{open:a,pendingApproval:l});const b={saying:Oo(e),answering:Mo(e)},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 q=oe.current;if(!q)return;q.items(e);const F=new Set(["complete","completed","done","error","failed","cancelled","canceled","rejected","denied","stopped"]),ne={insertcell:"adding a cell",updatecell:"editing a cell",runcell:"running a cell",deletecells:"removing cells",readallcells:"reading the notebook",readcell:"reading a cell",executecode:"running code",insertblock:"adding a block",updateblock:"editing a block",runblock:"running a block",readdocument:"reading the document"};let S;for(let Ee=e.length-1;Ee>=0;Ee-=1){const ht=e[Ee];if(typeof ht.toolName=="string"&&ht.toolCallId){F.has(String(ht.status).toLowerCase())||(S=ht);break}}if(!S){q.activity(void 0);return}const Ie=S.toolName.toLowerCase().replace(/^datalayer_/,"").replace(/_lexical$/,"").replace(/[^a-z]/g,""),Ks=ne[Ie]??`using ${S.toolName}`;q.activity(`${Pe.current||"The agent"} is ${Ks}…`)},[]),ae=s.useRef(C);ae.current=C;const Et=s.useCallback(e=>{Rs(e),oe.current?.usage(e),ae.current.onUsage?.(e)},[]),He=s.useCallback(e=>{kt(e),e||oe.current?.end("done")},[]),At=s.useCallback(e=>{const a=oe.current;if(!a)return;let l=-1;for(let g=e.length-1;g>=0;g-=1)if(e[g].role==="user"){l=g;break}const b=e.slice(l+1).filter(g=>g.role==="assistant").map(Lo).filter(g=>g.trim().length>0).join(`
|
|
29
|
+
|
|
30
|
+
`);a.assistant(b)},[]),we=s.useRef([]),ee=s.useRef(!1),Ce=s.useRef(void 0),je=s.useRef(void 0),ke=s.useRef(void 0),pe=B(Fo),De=s.useRef(pe);De.current=pe;const me=s.useCallback((e,a)=>{if(je.current)return je.current;const l=ke.current;ke.current=void 0;const b=zo(De.current.map(F=>F.value),l?{...a??{},voice:l}:a),g=b?.loop;if(ee.current&&g?.files&&g.files.length>0){const F=Ce.current;if(!F)return"A file is given to an application running on a runtime: run it on Datalayer or on your machine to give it one.";let ne;try{ne=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)}F.execute(Bo(ne)).then(S=>{if(!S.success){x(`The files could not be put in the sandbox: ${S.error??"it failed"}.`);return}me(`${e}
|
|
31
|
+
|
|
32
|
+
${Vo(ne.map(Ie=>Ie.file))}`,{...b,loop:Object.fromEntries(Object.entries(g).filter(([Ie])=>Ie!=="files"))})});return}oe.current?.begin(e,c());const q=i.current?.send;if(!q){we.current.push([e,b]);return}q(e,b)},[c]);s.useEffect(()=>{p(ye?{busy:L,stop:i.current?.stop,newChat:i.current?.newChat,send:me}:null)},[L,ye,p,me]),s.useEffect(()=>()=>p(null),[p]),s.useEffect(()=>n.prompts.subscribe(me),[n.prompts,me]),s.useEffect(()=>{if(!ye||we.current.length===0)return;const e=we.current.splice(0,we.current.length);for(const[a,l]of e)c(),i.current?.send(a,l)},[ye,c]);const We=s.useRef(!1),ie=s.useCallback(async e=>{x(null);const a=await Ho(ae.current,e);if(a){a.sent?Xe(""):x(a.refused);return}We.current||(We.current=!0,w?.firstPromptHook?.());const l=await n.submit(e);if(!l.handled){x(l.reason??null);return}Xe(""),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=>{xe.current=!0,_(e)},[]);s.useEffect(()=>Do(re),[re]),s.useEffect(()=>{Wo(A.map(e=>e.value.surfaceId))},[A]),s.useEffect(()=>{Ko(k&&k!==de?k:Ua)},[k]);const Te=s.useMemo(()=>O===de||O==="none"?void 0:A.find(e=>e.value.surfaceId===O),[A,O]);s.useEffect(()=>{xe.current||!Te||ot(Te.value,n)&&_(O)},[Te,n,O]);const[le,rt]=s.useState(null),Oe=s.useRef(null),Le=u?.fullScreenTopOffset??0,{fullScreen:G,usingApi:Ke,toggle:m,topOffsetPx:U}=Go(Oe,{forceOverlay:!!Le,topOffset:Le}),[V,H]=s.useState(!1),Ge=s.useRef(!1);s.useEffect(()=>{!L||Ge.current||G||(Ge.current=!0,H(!0))},[L,G]),s.useEffect(()=>{G&&H(!1)},[G]),s.useEffect(()=>{I&&!ot(I,n)&&(rt(I.surfaceId),_(de))},[I,n]);const lt=s.useMemo(()=>{if(le)return A.find(e=>e.value.surfaceId===le)?.value;if(!xe.current&&k===de)return Te?.value},[A,le,k,Te]);s.useEffect(()=>{if(!le||k!==de)return;const e=A.find(a=>a.value.surfaceId===le);e&&ot(e.value,n)&&(rt(null),_(le))},[A,k,le,n]);const E=n.agentId?.trim()||"default",$=Yo(n.sandbox.target??"local");ee.current=$;const j=qo(),ce=Qt(j?.selected??xi),R=j?.members.find(e=>e.id===ce),rn=B(Jo)[0]?.value,Pt=rn?.specId,M=Zn(R?.specId??E)??(Pt?Zn(Pt):void 0),Ye=R?void 0:rn,ln=$&&!R?Ia(Pt,M):void 0;Pe.current=R?.name??M?.name??E;const cn=B(Qo),dn=C.hiddenOpeners,un=C.hideOpeners,Ut=C.openers,$t=s.useMemo(()=>{if(un)return[];const e=new Set(dn??[]),a=S=>e.size===0?S:S.filter(Ie=>!e.has(Ie.text));if(Ut)return a(Ut);const l=cn.flatMap(S=>S.value.suggestions);if(l.length>0)return a(l);const b=a(M?.suggestions??[]),g=a(j?.team.suggestions??[]);if(g.length===0)return b;const q=new Set(g.map(S=>S.text)),F=j?.team.name??"Team",ne=R?.name??M?.name??E;return[...g.map(S=>({...S,group:F})),...b.filter(S=>!q.has(S.text)).map(S=>({...S,group:ne}))]},[cn,j,M,R,E,dn,un,Ut]),ct=s.useMemo(()=>$t.map(e=>({title:e.summary??e.text,message:e.message??e.text,group:e.group})),[$t]),Mt=Ne(M?.icon),Y=u?.presence,hs=Ne(j?.team.icon),fn=B(Zo),dt=s.useMemo(()=>{const e=[],a=new Map,l=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 q;try{q=g.value.tools(n)}catch(F){console.warn(`[loop] frontend tools from '${g.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 '${g.plugin}' is shadowed by the one from '${ne}'.`);continue}a.set(F.name,g.plugin),e.push(F),g.value.chatView&&l.add(F.name)}}for(const g of C.frontendTools??[])a.has(g.name)||(a.set(g.name,"chat-extras"),e.push(g),l.add(g.name));return I?e:ei(e,l)},[fn,n.surfaceId,n.agentId,C.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=ps(),Lt=C.agentToolBundles,xs=s.useMemo(()=>{const e=C.frontendTools??[];if(!Lt?.length)return C.frontendTools;const a=ms(pn.filter(b=>Lt.includes(b.id)),y),l=new Set(e.map(b=>b.name));return[...e,...a.filter(b=>!l.has(b.name))]},[C.frontendTools,Lt,pn,y]);Ce.current=$&&qe.some(e=>e.name===Xo)?y.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=B(ta),bs=s.useMemo(()=>mn.filter(e=>e.value.composer).map(e=>({name:e.value.name,description:e.value.description})),[mn]),vs=s.useMemo(()=>{if(!j||!R)return as(M).map(l=>({name:l.name,description:l.description,icon:Ne(l.icon)}));const e=j.members.map(l=>({name:l.name,description:l.description,emoji:l.emoji,icon:Ne(l.icon),disabled:l.id===R.id,disabledReason:l.id===R.id?`You are already talking to ${l.name}`:void 0})),a=Xn(j.team,R.id).filter(l=>!j.members.some(b=>b.name===l.name)).map(l=>({name:l.name,description:l.description,icon:Ne(l.icon)}));return[...e,...a]},[j,R,M]),{inference:gn,anonymous:Ss}=Ja($),ys=sn(e=>e.user),Ft=$&&Ss.status==="expired",hn=!ys,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]),[ws,Cs]=s.useState(!1),[js,vn]=s.useState(),ut=js??Ye?.model??M?.model??n.model??"",Fe=ia(),Sn=s.useRef(Fe),yn=s.useRef(ce),wn=s.useRef(Fe);wn.current=Fe,s.useEffect(()=>{yn.current!==ce&&(yn.current=ce,Sn.current=wn.current,vn(void 0))},[ce]);const ks=Fe&&Fe!==Sn.current?Fe:null,[Ts,Rs]=s.useState(),Is=ks??Ts??null,Es=Zt(Ae.inpromptMenu),Cn=Zt(Ae.promptAction),jn=Zt(Ae.chatHeader),As=s.useMemo(()=>j?.members.map(e=>({id:e.id,name:e.name,description:e.description,icon:Ne(e.icon)}))??[],[j]),Re=os(e=>e.pending),[kn,Ps]=s.useState(0);s.useEffect(()=>ra(()=>Ps(e=>e+1)),[]),s.useEffect(()=>{Re&&(Xe(Re.text),os.getState().consume(),Re.submit&&ie(Re.text))},[Re]);const Tn=y.getConfig(vt)?.datalayerCreatePayload,D=!!(Ye?.createPayload?.app_spec||Tn?.app_spec),Nt=ii(Tn),Us=sn(e=>e.token),Bt=y.getConfig(vt)?.datalayerVisitors,$s=la(Bt),Ms=y.getConfig(vt)?.embedToken,ge=Bt?$s.token:Ms||Us;d.current=ge||void 0;const Os=s.useMemo(()=>ca(u?.voice,ge||void 0),[u?.voice,ge]),he=!!(Nt||Bt);if(he&&!D)throw new Error("A deployment’s page runs its application: its host gave no app_spec.");const[Rn]=s.useState(es),[Vt,Ls]=s.useMemo(()=>{try{return[li(typeof window>"u"?"":window.location.search),""]}catch(e){return["",e instanceof Error?e.message:String(e)]}},[]),[In,Fs]=s.useState(void 0),N=s.useMemo(()=>In??ri(u?.thread??(Vt&&D?{id:Vt,messages:[],fromRuntime:!0}:void 0),Nt,Rn),[In,u?.thread,Vt,D,Nt,Rn]),[ze,En]=s.useState(null),zs=!!(N?.fromRuntime&&ze?.given!==N.id);s.useEffect(()=>{if(!N?.fromRuntime||!D||!T)return;let e=!0;return(async()=>{let a="";for(let l=0;l<4&&e;l+=1)try{const b=await da({agentBaseUrl:T,agentId:E,uid:N.id,token:ge});e&&En({given:N.id,thread:{...N,fromRuntime:!1,messages:b}});return}catch(b){a=b instanceof Error?b.message:String(b),await new Promise(g=>setTimeout(g,1500))}e&&En({given:N.id,thread:{id:es(),messages:[],onStarted:N.onStarted},said:ts.notOpened(a)})})(),()=>{e=!1}},[N?.id,N?.fromRuntime,D,T,E,ge]);const Ht=N?.fromRuntime?ze?.given===N.id?ze.thread:void 0:N,ft=n.thread||Ht?.id||"",[An,Pn]=s.useState(void 0),[_s,Un]=s.useState(0);s.useEffect(()=>{if(!D||!T||!ft||L)return;let e=!0;return Je.described(ft).then(a=>e&&Pn(a),()=>e&&Pn(void 0)),()=>{e=!1}},[D,T,ft,L,_s,Je]);const[$n,Mn]=s.useState(Ls),[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),Un(a=>a+1)},openThread:e=>{Fs({id:e,messages:[],fromRuntime:!0}),Un(a=>a+1)},download:(e,a,l)=>{const b=URL.createObjectURL(new Blob([a],{type:l})),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 l=Fn.current;if(!l){a(void 0);return}Wt.current=a,l.accept=e,l.value="",l.click()})}),[Je]),Kt=s.useMemo(()=>$?Ha({agentId:R?.specId??E,instructions:ua(M,Ye?.instructions),model:ut||void 0,inference:gn,frontendTools:qe,subagents:j&&R?Xn(j.team,R.id):as(M),sharing:j?.sharing,onSubagentEvent:e=>Aa.getState().appendSubagentEvent(e),modeEffect:Ye?.modeEffect}):T!==void 0?{type:"ag-ui",endpoint:D?`${T}/api/v1/apps/agents/${encodeURIComponent(E)}/ag-ui/`:`${T}/api/v1/ag-ui/${E}/`,...D&&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`,...he?{ownRoutesOnly:!0}:{}}:{},agentId:E,configEndpoint:`${T}/api/v1/configure`,enableConfigQuery:!0}:void 0,[E,$,gn,R,qe,j,M,Ye,ut,T,D,ge,he]),pt=fa(!$,Kt?.type==="ag-ui"?Kt.configEndpoint:void 0,void 0,E),tt=pa(),mt=ma(E),[_n,Gt]=s.useState(void 0),[Ns,Bs]=s.useState(void 0);s.useEffect(()=>{if($||T===void 0)return;const e=ga(T,E,he);if(!e){Gt([]);return}let a=!1;return fetch(e).then(l=>l.ok?l.json():null).then(l=>{a||(Gt(l?ha(l):[]),Bs(l?xa(l):void 0))}).catch(()=>{a||Gt([])}),()=>{a=!0}},[T,E,$,he]);const Vs=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(l=>l.name));return{runtime:e,frontend:qe.filter(l=>!a.has(l.name)).map(l=>({id:l.name,name:l.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]),Hs=s.useCallback(async e=>{if(he)throw new Error("A deployment’s chat does not switch its runtime’s model.");vn(e),!($||T===void 0)&&await fetch(`${T}/api/v1/configure/inference/provider`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({model:e})}).catch(()=>{})},[T,$,he]),Vn=u?.promptPlacement==="bottom-chat",Ds=u?.promptPlacement==="floating",_e=u?.promptPlacement==="top",nt=u?.hidePrompt===!0||C.hidePrompt===!0,Ws={onSend:()=>{ie(_t)},input:_t,setInput:Xe,focusTrigger:Re||kn?(Re?.nonce??0)+kn:void 0,placement:Ds||Q==="floating"||Q==="floating-top"||Q==="floating-bottom"?"floating":"docked",floatingAnchor:Q==="floating-top"?"top":"bottom",isLoading:L,onStop:()=>n.viewControls.stop?.(),placeholder:xn??C.sendInstead?.says??ue,typingSuggestions:$t.map(e=>e.text),suggestions:ct,disableInputPrompt:Ze,connectionConfirmed:!Ze,interim:ws,padding:_e||Q==="floating-top"||Q==="floating-bottom"||Q==="docked-top"?2:3,promptVariant:"lexical",autoFocus:u?.autoFocusPrompt??!0,mentionableAgents:vs,promptCommands:bs,headerContent:Es.length>0?t.jsx(St,{slot:Ae.inpromptMenu,props:{workspace:n}}):void 0,footerExtras:Cn.length>0||et&&et.input!=="off"?t.jsxs(t.Fragment,{children:[Cn.length>0?t.jsx(St,{slot:Ae.promptAction,props:{workspace:n}}):null,et&&et.input!=="off"?t.jsx(ya,{voice:et,input:_t,setInput:Xe,disabled:Ze,speaking:Ue,onStopSpeaking:()=>i.current?.stopSpeaking?.(),playbackLevel:()=>i.current?.voiceLevel?.()??0,running:L,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:!Y,showInlineAgentsMenu:!1,agents:As,selectedAgentId:ce,onSelectAgent:e=>j?.select(e),showTokenUsage:C.showTokenUsage??u?.showTokenUsage??!0,showContextRing:!0,agentUsage:Is??void 0,showModelSelector:!Y&&!he,models:Vs,decisions:Ns,selectedModel:ut,onModelSelect:e=>{Hs(e)},showToolsMenu:!Y,availableTools:Nn.runtime,availableFrontendTools:Nn.frontend,mcpServers:pt.data?.mcpServers??[],mcpStatusData:C.mcpStatusData??void 0,showSkillsMenu:!Y,skills:tt.data?.skills??[],skillsLoading:tt.isLoading,enabledSkills:Bn,onToggleSkill:e=>Bn.has(e)?mt.disableSkill(e):mt.enableSkill(e),onToggleAllSkills:(e,a)=>e.forEach(l=>a?mt.enableSkill(l):mt.disableSkill(l)),codemodeEnabled:C.codemodeEnabled??!1,onToggleCodemode:C.onToggleCodemode,isA2AProtocol:!1,hasConfigData:!!pt.data,hasSkillsData:!!tt.data},Hn=yt[0]?.value.Component,Yt=wt[0]?.value.Component,Dn=!u?.hideHeader&&!!Yt,gt=Hn?t.jsx(Hn,{workspace:n,composer:Ws}):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,l=I?.surfaceId===a.surfaceId;return l||it.current.has(a.surfaceId)||ot(a,n)?(it.current.add(a.surfaceId),t.jsx(h,{sx:l?{flex:"1 1 0",minWidth:0,minHeight:0}:{position:"absolute",inset:0,visibility:"hidden",pointerEvents:"none",zIndex:-1},children:t.jsx(wa,{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&<?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:[C.errorBanner?t.jsx(h,{flexShrink:0,px:3,py:2,fontSize:1,borderBottom:"1px solid",bg:C.errorBanner.variant==="warning"?"attention.subtle":"danger.subtle",color:C.errorBanner.variant==="warning"?"attention.fg":"danger.fg",borderColor:C.errorBanner.variant==="warning"?"attention.muted":"danger.muted",children:C.errorBanner.message}):null,ze?.said&&ze.given===N?.id?t.jsx(z,{as:"p",role:"status",sx:{m:0,px:3,py:2,fontSize:1,color:"fg.muted"},children:ze.said}):null,$n?t.jsxs(h,{display:"flex",alignItems:"baseline",gap:2,px:3,py:2,fontSize:1,color:"fg.muted",role:"status","data-session-said":"",children:[t.jsx(z,{sx:{flex:1},children:$n}),t.jsx(J,{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],l=a?await a.text():void 0;Wt.current?.(l),Wt.current=null}}),t.jsx(h,{flex:"1 1 auto",minHeight:0,display:"flex",children:zs?t.jsx(z,{as:"p",role:"status",sx:{m:0,p:3,fontSize:1,color:"fg.muted"},children:ts.opening}):t.jsx(Ca,{themeVariant:u?.themeVariant,themeOverrides:u?.themeOverrides,colorMode:u?.colorMode,thread:Ht,voice:Os,disabled:Ze,disableReason:xn,protocol:Kt,frontendTools:$?void 0:xs,initialModel:ut||void 0,title:Y?.name??R?.name??M?.name??E,description:Y?.welcome??M?.description,brandIcon:Y?.face?t.jsx(mi,{face:Y.face,size:20,state:X}):t.jsx(Mt,{size:20}),headerContent:Y&&!zt?t.jsx(gi,{state:X}):void 0,emptyState:{icon:Y?.face?t.jsx("span",{"aria-hidden":!0,style:{fontSize:rs,lineHeight:1},children:t.jsx(gs,{face:Y.face,size:rs})}):t.jsx(Mt,{size:48}),title:Y?.name??R?.name??M?.name??E,...j&&R?{sections:[{group:j.team.name,icon:t.jsx(hs,{size:48}),title:j.team.name,subtitle:j.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,D&&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:G?ja:ka,"aria-label":G?"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, ${r.primary} 16%, transparent)`,boxShadow:`inset 0 0 0 1.5px ${r.primary}`,animation:`dla-fullscreen-hint ${vi}ms ease-in-out infinite`},"@media (prefers-reduced-motion: reduce)":{"&&":{animation:"none"}}}:void 0})]}),showInput:!1,onSendReady:K,notebookToolSurfacesId:I?void 0:n.surfaceId,showTurnFooter:C.showTokenUsage??u?.showTokenUsage??!0,onContextSnapshot:Et,onLoadingChange:He,renderMessageFooter:D&&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:L||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",...G?{bg:"canvas.default"}:null,...G&&!Ke.current?{position:"fixed",top:U,right:0,bottom:0,left:0,height:"auto",zIndex:1e3}:null},children:[be?t.jsx(be.Component,{workspace:n,editors:Kn,hasEditor:!!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:$,temporary:hn,onSignedIn:()=>Ra.getState().clear()})}):null]})}function Si({surfaces:n,active:o,onChange:r,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(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===de,onClick:()=>r(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&&r(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};
|