@datalayer/agent-runtimes 1.4.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-embed/chunks/{AgentDetails-Bo0dD1KS.js → AgentDetails-KezohVQI.js} +1 -1
- package/dist-embed/chunks/{AgentDetailsDialog-JjCHYxMG.js → AgentDetailsDialog-CklhMnk7.js} +1 -1
- package/dist-embed/chunks/{AgentInspector-37Onz4of.js → AgentInspector-CtCaRc1L.js} +1 -1
- package/dist-embed/chunks/{AgentInspectorDialog-CCzGVAtX.js → AgentInspectorDialog-DB9cx3Gd.js} +1 -1
- package/dist-embed/chunks/Avatar-9MpXENSs.js +1 -0
- package/dist-embed/chunks/{CellSidebarExtension-CQlXdanG.js → CellSidebarExtension-CfaJL6DQ.js} +6 -6
- package/dist-embed/chunks/ChatView-Dc1x4aBR.js +32 -0
- package/dist-embed/chunks/{ContextPie-DBIUoPrq.js → ContextPie-1vP4f-3N.js} +1 -1
- package/dist-embed/chunks/DatalayerAgentBridge-D54Z9BZ3.js +1 -0
- package/dist-embed/chunks/{DeckComponent-CuRWiARr.js → DeckComponent-82GVdsoi.js} +2 -2
- package/dist-embed/chunks/{DocumentView-BYU2HREd.js → DocumentView-SrJloJDo.js} +2 -2
- package/dist-embed/chunks/{EphemeralDocument-BjFSuQKH.js → EphemeralDocument-t1KulOH8.js} +1 -1
- package/dist-embed/chunks/{EphemeralNotebook-DbS4f6yr.js → EphemeralNotebook-Co-WQWCc.js} +2 -2
- package/dist-embed/chunks/{ExcalidrawComponent-CFLnMPnf.js → ExcalidrawComponent-5NeLUYVB.js} +1 -1
- package/dist-embed/chunks/{ExcalidrawModal-CB9d5Vpk.js → ExcalidrawModal-9ZnOB03n.js} +1 -1
- package/dist-embed/chunks/{JupyterLexicalExtension-CYnZrelh.js → JupyterLexicalExtension-Cize8RXy.js} +29 -29
- package/dist-embed/chunks/{KernelVariables-KCUfxhF4.js → KernelVariables-Cl57Zze1.js} +2 -2
- package/dist-embed/chunks/{LexicalToolRegistry-CXLITkMD.js → LexicalToolRegistry-CoM9ROsx.js} +3 -3
- package/dist-embed/chunks/{NotebookSkeleton-HdM76lOj.js → NotebookSkeleton-CI7ovjNW.js} +1 -1
- package/dist-embed/chunks/{NotebookToolSurfaces-D62q-lbb.js → NotebookToolSurfaces-CWfppxBN.js} +1 -1
- package/dist-embed/chunks/{NotebookToolbar-DMKCe3c2.js → NotebookToolbar-rtMQZWHQ.js} +1 -1
- package/dist-embed/chunks/{NotebookView-Pps9dPZ7.js → NotebookView-DOf_K74b.js} +1 -1
- package/dist-embed/chunks/{Output-2KxoKu5F.js → Output-9DKTscSv.js} +10 -10
- package/dist-embed/chunks/{SandboxDetailsDialog-pkvlbdM2.js → SandboxDetailsDialog-BCfDm6MB.js} +1 -1
- package/dist-embed/chunks/{SchemaForm-Bqor7hh8.js → SchemaForm-BOYPrvf8.js} +1 -1
- package/dist-embed/chunks/{Toolbar-6Hdi_m3T.js → Toolbar-CGQDY041.js} +1 -1
- package/dist-embed/chunks/{WidgetVariableView-CJTAKqh1.js → WidgetVariableView-BTOwHP78.js} +1 -1
- package/dist-embed/chunks/YouTubePlugin-Bs4zZIB1.js +1 -0
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-CWj4pFxo.js → abnfDiagram-VCTEODGH-D5p59vS_.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-B4x7mfou.js → abnfDiagram-VCTEODGH-DRYbUvhc.js} +1 -1
- package/dist-embed/chunks/{ar-SA-G6X2FPQ2-C-zAYgA-.js → ar-SA-G6X2FPQ2-D6XRzkBS.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-CRIN999O.js → architectureDiagram-5GKGNRK7-B7ITKDup.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-B2D6lZbf.js → architectureDiagram-5GKGNRK7-DQGv0imf.js} +1 -1
- package/dist-embed/chunks/{az-AZ-76LH7QW2-BHq5js6U.js → az-AZ-76LH7QW2-DBTdUiqp.js} +1 -1
- package/dist-embed/chunks/{bg-BG-XCXSNQG7-BTcNNcTc.js → bg-BG-XCXSNQG7-DuhcsaSL.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-868be97b-bBp9uGVj.js → blockDiagram-868be97b-DYe-XTjy.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-DNdo_mUi.js → blockDiagram-I7D4REHJ-IltJXCd6.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-CPHEppLa.js → blockDiagram-I7D4REHJ-y7tEFo3j.js} +1 -1
- package/dist-embed/chunks/{bn-BD-2XOGV67Q-DXRk27u1.js → bn-BD-2XOGV67Q-CPFeLVSN.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-3f4bdde3-cYZlcE7E.js → c4Diagram-3f4bdde3-Bybp0wky.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-DTmVwmmb.js → c4Diagram-7LVT6UL2-CizxVqqX.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-BM2g5U7R.js → c4Diagram-7LVT6UL2-DpaHndz8.js} +1 -1
- package/dist-embed/chunks/{ca-ES-6MX7JW3Y-D-0J9rqp.js → ca-ES-6MX7JW3Y-gDR_kEC6.js} +1 -1
- package/dist-embed/chunks/{celltoolbartracker-D67W4XWx.js → celltoolbartracker-DLF4PWyW.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-CsB-r261.js → chunk-2Q5K7J3B-BI6lURun.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-CuegvedF.js → chunk-2Q5K7J3B-DWoLSrj9.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-D4Ed2_vW.js → chunk-5VM5RSS4-CDh4wYym.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-MJQ9uhYe.js → chunk-5VM5RSS4-SleuNqDC.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-DnjXjdOV.js → chunk-F27PBJKO-AvWsNGYY.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-BKTrewOm.js → chunk-F27PBJKO-h_FwJMTr.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-Bf7PlvQM.js → chunk-IMKFNOWR-DGRceKiU.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-BiXdYxxk.js → chunk-IMKFNOWR-Hx4a5yny.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-DcVyhh3j.js → chunk-JWPE2WC7-A4gy2qc4.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-DmWR08qa.js → chunk-JWPE2WC7-BuJactJo.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-Bw6JH9TT.js → chunk-POPQ4Y6H-CFM-817s.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-snvBGTqY.js → chunk-POPQ4Y6H-CmRF80iG.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-DLZdx--b.js → chunk-SVP7TREG-CryZx9JE.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-dE58fUkJ.js → chunk-SVP7TREG-DSNzmytH.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-DNXzQOV5.js → chunk-TICWLB2K-CEaDF8ZJ.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-4NdGhPfF.js → chunk-TICWLB2K-DyGS3fIj.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-OKsVfhjO.js → chunk-XXDRQBXY-8Cnzpdjz.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-D57w8SHP.js → chunk-XXDRQBXY-DxQBcVOz.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-oYXGLbJe.js → classDiagram-ZZMXUADV-BQkO1UYr.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-D35oEC_r.js → classDiagram-ZZMXUADV-yvP3zMO3.js} +1 -1
- package/dist-embed/chunks/{classDiagram-f62afe4f-DWY2Ws4r.js → classDiagram-f62afe4f-AYfpYKtp.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-604399ef-By5ijR28.js → classDiagram-v2-604399ef-BWyNcT_y.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-oYXGLbJe.js → classDiagram-v2-VYDZK3BY-BQkO1UYr.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-D35oEC_r.js → classDiagram-v2-VYDZK3BY-yvP3zMO3.js} +1 -1
- package/dist-embed/chunks/{code-block-IT6T5CEO-DvUhQbDq.js → code-block-IT6T5CEO-F4BSIGY6.js} +1 -1
- package/dist-embed/chunks/{component-DquJEKgN.js → component-DMQ8W8n1.js} +3 -3
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-j33onHvG.js → cose-bilkent-JH36ORCC-C3HC0XIY.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-CfuJvtzg.js → cose-bilkent-JH36ORCC-MVxlcfpd.js} +1 -1
- package/dist-embed/chunks/{createText-aed3d8b3-DvlG46OI.js → createText-aed3d8b3-CEJODAXJ.js} +1 -1
- package/dist-embed/chunks/{cs-CZ-2BRQDIVT-CgN3I-57.js → cs-CZ-2BRQDIVT-BXQxcYp6.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-YhGHtmc4.js → cynefinDiagram-5FMLGOSQ-D87ENxS0.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-CPb2yRsU.js → cynefinDiagram-5FMLGOSQ-DNRKTIHx.js} +1 -1
- package/dist-embed/chunks/{da-DK-5WZEPLOC-CHQloSoX.js → da-DK-5WZEPLOC-Ck3vidj3.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-CSSSVwOB.js → dagre-GXQ25YYZ-BOhThFKd.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-bjTeZGWE.js → dagre-GXQ25YYZ-DscCD5Uq.js} +1 -1
- package/dist-embed/chunks/{de-DE-XR44H4JA-C-Hq84pe.js → de-DE-XR44H4JA-CPZgrOuc.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-CFdSwdyc.js → diagram-S7CK7UJ4-CUhme3Bl.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-CFDVHfda.js → diagram-S7CK7UJ4-zDQduoQy.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-DDaeau23.js → diagram-UQ7AKVKN-BxhQPjAM.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-GZbDy6ob.js → diagram-UQ7AKVKN-Byi-v8UN.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-nXDiS81a.js → diagram-VSXAHHWV-CqihYkDH.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-C6q67wko.js → diagram-VSXAHHWV-au-v2v9D.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-DQUkfMrD.js → diagram-VX7I27RA-Cd5PaF_n.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-CYLfpYa4.js → diagram-VX7I27RA-ETzwrw79.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-DZziYptV.js → diagram-Z3DM3KII-AcMuRFo5.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-v-9naUk_.js → diagram-Z3DM3KII-DkbsvY2A.js} +1 -1
- package/dist-embed/chunks/{document-BpXPH_dr.js → document-Dluvp7zl.js} +1 -1
- package/dist-embed/chunks/{drivecontents-Bg9_6Kmo.js → drivecontents-CxwZz_5W.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-EvDUmZgJ.js → ebnfDiagram-PWID7BFC-BrEs-SB2.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-CDmryeYY.js → ebnfDiagram-PWID7BFC-DuWfMZcD.js} +1 -1
- package/dist-embed/chunks/{edges-b2856ca0-CTakYT6h.js → edges-b2856ca0-Czd3-xvj.js} +1 -1
- package/dist-embed/chunks/{el-GR-BZB4AONW-MTzGcSsP.js → el-GR-BZB4AONW-CjQSkw0P.js} +1 -1
- package/dist-embed/chunks/{erDiagram-5d81789a-CpiBBm7t.js → erDiagram-5d81789a-JegaF4gy.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-B2QZDDaO.js → erDiagram-RLTQ6QDP-Cpn6_cd1.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-hsnql-YF.js → erDiagram-RLTQ6QDP-xubaXuKR.js} +1 -1
- package/dist-embed/chunks/{es-ES-U4NZUMDT-Thj-4Rwn.js → es-ES-U4NZUMDT-CQz3Tsxk.js} +1 -1
- package/dist-embed/chunks/{eu-ES-A7QVB2H4-BEEyNQo-.js → eu-ES-A7QVB2H4-DPwxHXvP.js} +1 -1
- package/dist-embed/chunks/{fa-IR-HGAKTJCU-CtUGmNBZ.js → fa-IR-HGAKTJCU-DlQyRFJP.js} +1 -1
- package/dist-embed/chunks/{fi-FI-Z5N7JZ37-6GMgpkSu.js → fi-FI-Z5N7JZ37-BL9Dv0rT.js} +1 -1
- package/dist-embed/chunks/{flowDb-185abca5-D4uRRPhl.js → flowDb-185abca5-BN_8lgCO.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-1629c991-B999anFV.js → flowDiagram-1629c991-YRlRqB59.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-DY4I6lzA.js → flowDiagram-HODETNUW-CzRvxVGK.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-D4E8W9uH.js → flowDiagram-HODETNUW-lW-icIxi.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-v2-1d953310-2W9bzV_S.js → flowDiagram-v2-1d953310-DBFSFroi.js} +1 -1
- package/dist-embed/chunks/{flowchart-elk-definition-6df44142-Cz-ICcxz.js → flowchart-elk-definition-6df44142-RjL83g27.js} +1 -1
- package/dist-embed/chunks/{fr-FR-RHASNOE6-BakNCbxj.js → fr-FR-RHASNOE6-xB7HyFVv.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-3b0b3873-CR9gwUWB.js → ganttDiagram-3b0b3873-Dowe9cKl.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-CoCfE73i.js → ganttDiagram-EL5Y4UJY-CLaynGwe.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-cZgkz4jA.js → ganttDiagram-EL5Y4UJY-CNQPBdAP.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-CZEgVaQ_.js → gitGraphDiagram-WWUBYQGX-CDuBbPX3.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-xXoxdFf9.js → gitGraphDiagram-WWUBYQGX-CupHqYWl.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-f01e8bc2-NdofvPL5.js → gitGraphDiagram-f01e8bc2-C06Sje1n.js} +1 -1
- package/dist-embed/chunks/{gl-ES-HMX3MZ6V-Cwkb9OPk.js → gl-ES-HMX3MZ6V-BX50ltap.js} +1 -1
- package/dist-embed/chunks/{he-IL-6SHJWFNN-BaMmvCkr.js → he-IL-6SHJWFNN-DR3hLzYG.js} +1 -1
- package/dist-embed/chunks/{hi-IN-IWLTKZ5I-1aWewhep.js → hi-IN-IWLTKZ5I-C3bSDqVc.js} +1 -1
- package/dist-embed/chunks/{hu-HU-A5ZG7DT2-BIHI23BQ.js → hu-HU-A5ZG7DT2--mRUDQG6.js} +1 -1
- package/dist-embed/chunks/{id-ID-SAP4L64H-CYpgmx8X.js → id-ID-SAP4L64H-D6psdwdp.js} +1 -1
- package/dist-embed/chunks/{index-W7TVoWP5.js → index-3O3ob63z.js} +15 -15
- package/dist-embed/chunks/{index-KgE-JGae.js → index-7F_pA42X.js} +4 -4
- package/dist-embed/chunks/{index-9bae90f3-D4JbZiwv.js → index-9bae90f3-BY7E8HZU.js} +1 -1
- package/dist-embed/chunks/{index-CMYyiALV.js → index-Azo_wV3K.js} +1 -1
- package/dist-embed/chunks/{index-BFPUYxvD.js → index-B063q-PC.js} +4 -4
- package/dist-embed/chunks/index-B0KVfQGJ.js +1 -0
- package/dist-embed/chunks/{index-BRBFWMMG.js → index-B2He8CnP.js} +1 -1
- package/dist-embed/chunks/{index-BAr0Q6NS.js → index-BExwmtFS.js} +1 -1
- package/dist-embed/chunks/{index-B3WvcNQa.js → index-BJhxZF_K.js} +1 -1
- package/dist-embed/chunks/{index-CXL3UCHy.js → index-BYMZi_1t.js} +1 -1
- package/dist-embed/chunks/{index-wovGU2zp.js → index-BblwlEJB.js} +1 -1
- package/dist-embed/chunks/{index-Fzz2KjFM.js → index-BdvS7Q4t.js} +1 -1
- package/dist-embed/chunks/{index-BbucLMre.js → index-BhU2ra4k.js} +3 -3
- package/dist-embed/chunks/{index-j-oeqTuo.js → index-BipXK1tF.js} +1 -1
- package/dist-embed/chunks/{index-1wTrAXI1.js → index-BlWZloLe.js} +3 -3
- package/dist-embed/chunks/{index-b1yzCiTq.js → index-BzXMsI1v.js} +1 -1
- package/dist-embed/chunks/{index-CPY91aGL.js → index-BzxtV5-v.js} +1 -1
- package/dist-embed/chunks/{index-C17RrmNV.js → index-C01nR1dW.js} +1 -1
- package/dist-embed/chunks/{index-t_gNTVoL.js → index-C643Hfu1.js} +1 -1
- package/dist-embed/chunks/{index-DMKsCn-y.js → index-C6wF35Kk.js} +10 -10
- package/dist-embed/chunks/{index-BhSMzuKq.js → index-C8IekrmL.js} +1 -1
- package/dist-embed/chunks/{index-BxjlpSy4.js → index-C9CpG6Nf.js} +1 -1
- package/dist-embed/chunks/{index-BUhqZVtg.js → index-CA8D7U2s.js} +2 -2
- package/dist-embed/chunks/{index-EmZm7_bH.js → index-CUL9WiLS.js} +5 -5
- package/dist-embed/chunks/{index-DeVZ-nmF.js → index-Cknn3VQD.js} +1 -1
- package/dist-embed/chunks/{index-BJ7Yskx5.js → index-CpcHHQd7.js} +1 -1
- package/dist-embed/chunks/{index-wzK_9qZx.js → index-CvBxCcaE.js} +1 -1
- package/dist-embed/chunks/{index-DkUimZI8.js → index-CzXnKkqM.js} +1 -1
- package/dist-embed/chunks/{index-Ck-wonpc.js → index-D0DBuFMt.js} +1 -1
- package/dist-embed/chunks/{index-CC-Ht79i.js → index-D1lY79hS.js} +4 -4
- package/dist-embed/chunks/{index-BFLtEBuP.js → index-DB46n9Tf.js} +2 -2
- package/dist-embed/chunks/{index-B7nmHsEo.js → index-DToDguC3.js} +1 -1
- package/dist-embed/chunks/{index-Bi5hexj-.js → index-DVDREi21.js} +1 -1
- package/dist-embed/chunks/{index-D18sf241.js → index-DVUMPcVw.js} +1 -1
- package/dist-embed/chunks/{index-ZZnjmFwm.js → index-DcZQ2Oqj.js} +1 -1
- package/dist-embed/chunks/{index-bRwN_nxZ.js → index-DvWWLOj6.js} +1 -1
- package/dist-embed/chunks/{index-Clp8quV1.js → index-Dv_XGY6Q.js} +1 -1
- package/dist-embed/chunks/{index-C3oDHYfa.js → index-DxsDy6PY.js} +1 -1
- package/dist-embed/chunks/{index-en9Yf1Yz.js → index-EpYurdzk.js} +6 -6
- package/dist-embed/chunks/{index-DIOcQUrz.js → index-MTdX216X.js} +1 -1
- package/dist-embed/chunks/{index-B2OWWcCj.js → index-YqGHzM2S.js} +1 -1
- package/dist-embed/chunks/{index-BvvaLLhn.js → index-a51XM5L8.js} +3 -3
- package/dist-embed/chunks/{index-CsZ2HycN.js → index-jy9kOmqu.js} +1 -1
- package/dist-embed/chunks/{index-e5PkgYFg.js → index-kpqZuE4J.js} +1 -1
- package/dist-embed/chunks/{index-DtlUttQj.js → index-qsUgit40.js} +1 -1
- package/dist-embed/chunks/{index-Cq19rGjf.js → index-rfsiH_M6.js} +1 -1
- package/dist-embed/chunks/{index-BYQwy0Zx.js → index-s3hayhRS.js} +2 -2
- package/dist-embed/chunks/{index.esm-RCuogyl2.js → index.esm-CWygaJYM.js} +1 -1
- package/dist-embed/chunks/{index.esm-CVNfNVDy.js → index.esm-DYeUXS4c.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-DpFWmHEH.js → infoDiagram-27XIBGKW-Ctm-zk09.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-DRf2y76w.js → infoDiagram-27XIBGKW-DRzH33_4.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-a29d40f1-CehVkLUM.js → infoDiagram-a29d40f1-c78-ZMuT.js} +1 -1
- package/dist-embed/chunks/{isEqual-BybBNsZK.js → isEqual-niFNV5MZ.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-C_d1mmp3.js → ishikawaDiagram-5VMMS53U-CILSTTqm.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-B534qRQJ.js → ishikawaDiagram-5VMMS53U-DKv5KL85.js} +1 -1
- package/dist-embed/chunks/{it-IT-JPQ66NNP-CLcqplyX.js → it-IT-JPQ66NNP-BfrG_atL.js} +1 -1
- package/dist-embed/chunks/{ja-JP-DBVTYXUO-u8Qe6tR7.js → ja-JP-DBVTYXUO-sahpmNGY.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-DEeA8WJr.js → journeyDiagram-3NMN7TZE-CSMQRlsr.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-C0GQLJYz.js → journeyDiagram-3NMN7TZE-DlMPiHSP.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-95396277-Cwx_BI95.js → journeyDiagram-95396277-VzHClVrX.js} +1 -1
- package/dist-embed/chunks/{kaa-6HZHGXH3-BG2kx50I.js → kaa-6HZHGXH3-BrkhtXQj.js} +1 -1
- package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-CSYUpRxd.js → kab-KAB-ZGHBKWFO-DwtFIV_I.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-DucvIyR1.js → kanban-definition-UXKFOSKX-BkxvAXq2.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-Dww2l0wQ.js → kanban-definition-UXKFOSKX-esf1amn7.js} +1 -1
- package/dist-embed/chunks/{kk-KZ-P5N5QNE5-CpBMgHAz.js → kk-KZ-P5N5QNE5-UxN1LGH5.js} +1 -1
- package/dist-embed/chunks/{km-KH-HSX4SM5Z-CoMUUQMb.js → km-KH-HSX4SM5Z-B7lolfpy.js} +1 -1
- package/dist-embed/chunks/{ko-KR-MTYHY66A-DwxY8CGI.js → ko-KR-MTYHY66A-CnxefCaN.js} +1 -1
- package/dist-embed/chunks/{ku-TR-6OUDTVRD-UoNYUfm0.js → ku-TR-6OUDTVRD-Bt7bmFnv.js} +1 -1
- package/dist-embed/chunks/{layout-DiAMrtPi.js → layout-D7Mk1riq.js} +1 -1
- package/dist-embed/chunks/{layout-LNJhMVxV.js → layout-Sl9Lf6Ae.js} +1 -1
- package/dist-embed/chunks/{lexicalHooks-DEzWXVZY.js → lexicalHooks-DKF-DsxG.js} +1 -1
- package/dist-embed/chunks/{lt-LT-XHIRWOB4-Dr4uXaEj.js → lt-LT-XHIRWOB4-D6qkXs9m.js} +1 -1
- package/dist-embed/chunks/{lv-LV-5QDEKY6T-CNC56J-_.js → lv-LV-5QDEKY6T-D8g27j86.js} +1 -1
- package/dist-embed/chunks/{mermaid.core-huvnfV8t.js → mermaid.core-BhiOhb5K.js} +3 -3
- package/dist-embed/chunks/{mermaid.core-Dw1n-Hii.js → mermaid.core-CRlujv29.js} +5 -5
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-DWUezf-k.js → mindmap-definition-YA3MSWOX-BJQsz4H1.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-DKQu2lXp.js → mindmap-definition-YA3MSWOX-eCxs0BsL.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-e4c1d938-DSDPusnk.js → mindmap-definition-e4c1d938-DoGG9eDO.js} +1 -1
- package/dist-embed/chunks/{model-BHONoBA6.js → model-BziAhKNp.js} +1 -1
- package/dist-embed/chunks/{mr-IN-CRQNXWMA-BKWa9nzZ.js → mr-IN-CRQNXWMA-CMbVGyJm.js} +1 -1
- package/dist-embed/chunks/{my-MM-5M5IBNSE-bwAzOWhV.js → my-MM-5M5IBNSE-B-KPsx1j.js} +1 -1
- package/dist-embed/chunks/{nb-NO-T6EIAALU-CkpsChor.js → nb-NO-T6EIAALU-Cl7QLAt7.js} +1 -1
- package/dist-embed/chunks/{nl-NL-IS3SIHDZ-COVk4rlb.js → nl-NL-IS3SIHDZ-Brzte_o2.js} +1 -1
- package/dist-embed/chunks/{nn-NO-6E72VCQL-DlyFF-C1.js → nn-NO-6E72VCQL-CzCKEx02.js} +1 -1
- package/dist-embed/chunks/{oc-FR-POXYY2M6-CFDosV2C.js → oc-FR-POXYY2M6-DA72PkVY.js} +1 -1
- package/dist-embed/chunks/{pa-IN-N4M65BXN-BKRB3O0U.js → pa-IN-N4M65BXN-CzkFYtL0.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-ChXFZFas.js → pegDiagram-XKGWAZYB-CD3xZvKE.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-BUPTGFu3.js → pegDiagram-XKGWAZYB-CV-d6HkK.js} +1 -1
- package/dist-embed/chunks/{percentages-BXMCSKIN-D7pnqUsZ.js → percentages-BXMCSKIN-mjCCp4uI.js} +6 -6
- package/dist-embed/chunks/{pica-BQREYloS.js → pica-5TeyVfIV.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-DAuVz3z-.js → pieDiagram-E7YTZNPT-DipS--g7.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-BORvsKK0.js → pieDiagram-E7YTZNPT-toANOh_O.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-c941bede-FM1PHjj3.js → pieDiagram-c941bede-DytniBrW.js} +1 -1
- package/dist-embed/chunks/{pl-PL-T2D74RX3-C5r2Tds7.js → pl-PL-T2D74RX3-F4ebFTYK.js} +1 -1
- package/dist-embed/chunks/{plugin-BoxsYxwM.js → plugin-Cf3g-jak.js} +1 -1
- package/dist-embed/chunks/plugin-DA_NCYQX.js +1 -0
- package/dist-embed/chunks/{pt-BR-5N22H2LF-CDnT98bW.js → pt-BR-5N22H2LF-B5i8LuE4.js} +1 -1
- package/dist-embed/chunks/{pt-PT-UZXXM6DQ-C6c4SPk1.js → pt-PT-UZXXM6DQ-BQ7hfRRg.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-DpGcSrR9.js → quadrantDiagram-AXDQQJYC-D_j5dzK-.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-CZe_C7e2.js → quadrantDiagram-AXDQQJYC-DlhtjZ-k.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-cf8b8fe0-DZNznYqD.js → quadrantDiagram-cf8b8fe0-BQ2yjLYu.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-CuL_zbZ8.js → railroadDiagram-O6MQD6OU-CZFkdwSz.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-BnCn-tIV.js → railroadDiagram-O6MQD6OU-aWlxxhLc.js} +1 -1
- package/dist-embed/chunks/{renderer-lVFw9lw7.js → renderer-2D5v6hpK.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-53bda41b-BLToEv8I.js → requirementDiagram-53bda41b-CWV_b9FE.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-KU7DW76t.js → requirementDiagram-BXWQKSXE-BSF51uZZ.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-W6Oaw9v0.js → requirementDiagram-BXWQKSXE-EVwiX2gg.js} +1 -1
- package/dist-embed/chunks/{ro-RO-JPDTUUEW-CW6pbzEZ.js → ro-RO-JPDTUUEW-BdcZRS6h.js} +1 -1
- package/dist-embed/chunks/{ru-RU-B4JR7IUQ-CbaAJG0w.js → ru-RU-B4JR7IUQ-Cta1z8f6.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-y5tPDHfE.js → sankeyDiagram-P5KCCOFB-BqD6w06O.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-1UXJ4wHP.js → sankeyDiagram-P5KCCOFB-t6rHaBZJ.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-c3ef121a-6gF3bcjb.js → sankeyDiagram-c3ef121a-C9O52Zx9.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-82a5b84f-CglVrG1T.js → sequenceDiagram-82a5b84f-Dga-BwWi.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-CG-4aOyN.js → sequenceDiagram-WJ2MYXX4-DphVeQVS.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-DVcXqRnq.js → sequenceDiagram-WJ2MYXX4-ih6W0378.js} +1 -1
- package/dist-embed/chunks/{sessions-3PQsLINe.js → sessions-APuuDN3K.js} +2 -2
- package/dist-embed/chunks/{si-LK-N5RQ5JYF-BZkUjpXF.js → si-LK-N5RQ5JYF-DYy_OKHx.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-e294GOp7.js → sizeCapture-INFHLROL-CxIMCruL.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-CCZ7JXfm.js → sizeCapture-INFHLROL-o0dzt8-T.js} +1 -1
- package/dist-embed/chunks/{sk-SK-C5VTKIMK-DsfWgpPU.js → sk-SK-C5VTKIMK-B4A8rgzq.js} +1 -1
- package/dist-embed/chunks/{sl-SI-NN7IZMDC-Kx0FqxKU.js → sl-SI-NN7IZMDC-Dn2yU1RA.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-43e79a5f-DktiQR1L.js → stateDiagram-43e79a5f-RBFnM6HD.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-Czz7slb9.js → stateDiagram-D77RDMKH-DUbaZs3a.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-DvgDxPXs.js → stateDiagram-D77RDMKH-R5RRRvFY.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-2041ed4f-CGEkaZYz.js → stateDiagram-v2-2041ed4f-O5FpnsEz.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-CbzbC1qh.js → stateDiagram-v2-MP3YSRHH-CxTXB7mT.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-DGG9ROyK.js → stateDiagram-v2-MP3YSRHH-xKTLvXGN.js} +1 -1
- package/dist-embed/chunks/{styles-455b33cd-BpfBULhz.js → styles-455b33cd-D4Xv2qYx.js} +1 -1
- package/dist-embed/chunks/{styles-f932cba9-DsM5quNh.js → styles-f932cba9-BRIqeB8k.js} +1 -1
- package/dist-embed/chunks/{styles-fcc2142b-bC7I59Fx.js → styles-fcc2142b-CSNd2DtU.js} +1 -1
- package/dist-embed/chunks/{subset-shared.chunk-DM3l9OuH.js → subset-shared.chunk-SugOGKH0.js} +1 -1
- package/dist-embed/chunks/{subset-worker.chunk-4w4yibm3.js → subset-worker.chunk-CHn-RJwQ.js} +1 -1
- package/dist-embed/chunks/{sv-SE-XGPEYMSR-DY0ryO-L.js → sv-SE-XGPEYMSR-DIGNKjA1.js} +1 -1
- package/dist-embed/chunks/{svgDrawCommon-148a3cd9-OC_CIhNw.js → svgDrawCommon-148a3cd9-ioBjWI45.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-DLiqjxvc.js → swimlanes-42K2YHIH-BPXSOfWl.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-nfpJsGfW.js → swimlanes-42K2YHIH-DID4P1mJ.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-DVkRheaE.js → swimlanesDiagram-VR7AAH4N-B216TpFb.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-DjeQ0TlI.js → swimlanesDiagram-VR7AAH4N-C5LAWW5q.js} +1 -1
- package/dist-embed/chunks/{ta-IN-2NMHFXQM-CWpIs0i0.js → ta-IN-2NMHFXQM-h5n2V9ms.js} +1 -1
- package/dist-embed/chunks/{th-TH-HPSO5L25-Cwkcfb3u.js → th-TH-HPSO5L25-DPUFV7b6.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-CapVlXMl.js → timeline-definition-24CTP7MA-CsrTDzso.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-eOK0mNc7.js → timeline-definition-24CTP7MA-Y3tUsmSp.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-7545f45a-afx9iuZR.js → timeline-definition-7545f45a-Dwe7O50H.js} +1 -1
- package/dist-embed/chunks/{tokens-BfuLIPUq.js → tokens-DTIgYcNS.js} +1 -1
- package/dist-embed/chunks/{tr-TR-DEFEU3FU-BqJZZl-Y.js → tr-TR-DEFEU3FU-BezJkdMx.js} +1 -1
- package/dist-embed/chunks/{uk-UA-QMV73CPH-Dg213mG4.js → uk-UA-QMV73CPH-CqILlosm.js} +1 -1
- package/dist-embed/chunks/{usePrimerThemeBridge-D_1NuGKb.js → usePrimerThemeBridge-CoHussa9.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-D12hHdDQ.js → vennDiagram-4TSXK5OY-BhVdyHxt.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-CJ0VIZqI.js → vennDiagram-4TSXK5OY-ClTlC2ql.js} +1 -1
- package/dist-embed/chunks/{vi-VN-M7AON7JQ-DY94NKxF.js → vi-VN-M7AON7JQ-CnkPVQ0a.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-B1FfO2GD.js → wardleyDiagram-VM6X3IG4-DbWIMpvU.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-BfuBJbTV.js → wardleyDiagram-VM6X3IG4-kS16z5iB.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-3f383b91-BMDhPCCG.js → xychartDiagram-3f383b91-DYoT_EjG.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-xLO3w9Bz.js → xychartDiagram-S5SC5T6Z-CdwuwQAF.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-DZ-XUHKl.js → xychartDiagram-S5SC5T6Z-KeQp-cQ1.js} +1 -1
- package/dist-embed/chunks/{zh-CN-LNUGB5OW-B6I9A7sA.js → zh-CN-LNUGB5OW-CNdfctAT.js} +1 -1
- package/dist-embed/chunks/{zh-HK-E62DVLB3-D3oqgDOt.js → zh-HK-E62DVLB3-DEXwa5-T.js} +1 -1
- package/dist-embed/chunks/{zh-TW-RAJ6MFWO-CYwgY0Jo.js → zh-TW-RAJ6MFWO-BF7cCYAK.js} +1 -1
- package/dist-embed/datalayer-app-main.js +49 -49
- package/lib/apps/apps/appspec.js +22 -0
- package/lib/apps/core/index.d.ts +8 -0
- package/lib/apps/embed/AppEmbed.js +10 -13
- package/lib/apps/embed/hostBridge.d.ts +47 -13
- package/lib/apps/embed/hostBridge.js +135 -18
- package/lib/apps/index.d.ts +2 -2
- package/lib/apps/index.js +2 -2
- package/lib/apps/plugins/agents/DatalayerAgentBridge.js +9 -14
- package/lib/apps/plugins/agents/index.d.ts +1 -1
- package/lib/apps/plugins/agents/index.js +1 -1
- package/lib/apps/plugins/agents/plugin.d.ts +10 -0
- package/lib/apps/plugins/agents/plugin.js +10 -0
- package/lib/apps/plugins/app-elements/QuestionView.d.ts +5 -3
- package/lib/apps/plugins/app-elements/QuestionView.js +15 -2
- package/lib/apps/plugins/app-page/appPageModel.d.ts +6 -8
- package/lib/apps/plugins/app-page/appPageModel.js +0 -2
- package/lib/apps/plugins/app-page/pageRun.d.ts +2 -2
- package/lib/apps/plugins/app-page/pageRun.js +3 -3
- package/lib/apps/plugins/chat/ChatView.js +22 -3
- package/lib/chat/base/ChatBase.js +33 -3
- package/lib/chat/base/uiFiles.d.ts +29 -0
- package/lib/chat/base/uiFiles.js +69 -0
- package/lib/chat/messages/ChatMessageList.d.ts +7 -2
- package/lib/chat/messages/ChatMessageList.js +2 -2
- package/lib/examples/ProtocolSignedRequestsExample.d.ts +10 -0
- package/lib/examples/ProtocolSignedRequestsExample.js +41 -0
- package/lib/examples/ProtocolUcpCheckoutExample.d.ts +10 -0
- package/lib/examples/ProtocolUcpCheckoutExample.js +59 -0
- package/lib/examples/example-selector.js +2 -0
- package/lib/examples/exampleGroups.d.ts +1 -1
- package/lib/examples/exampleGroups.js +4 -0
- package/lib/examples/index.d.ts +2 -0
- package/lib/examples/index.js +2 -0
- package/lib/examples/protocols/signedRequestsDemo.d.ts +27 -0
- package/lib/examples/protocols/signedRequestsDemo.js +59 -0
- package/lib/examples/protocols/ucpCheckoutDemo.d.ts +36 -0
- package/lib/examples/protocols/ucpCheckoutDemo.js +68 -0
- package/lib/protocols/a2a/index.js +1 -0
- package/lib/protocols/agentic-commerce/index.js +1 -0
- package/lib/protocols/core.d.ts +6 -0
- package/lib/protocols/mcp/index.js +1 -0
- package/lib/protocols/pact/index.js +1 -0
- package/lib/protocols/ucp/index.js +1 -0
- package/lib/protocols/ucp/merchant.d.ts +15 -0
- package/lib/protocols/ucp/merchant.js +257 -0
- package/lib/protocols/web-bot-auth/index.js +1 -0
- package/lib/specs/apps.js +87 -6
- package/lib/specs/appspecSchema.js +43 -0
- package/lib/types/agentspecs.d.ts +18 -0
- package/lib/types/protocol.d.ts +7 -0
- package/package.json +2 -2
- package/dist-embed/chunks/Avatar-DbU3YP4x.js +0 -1
- package/dist-embed/chunks/ChatView-BpKZPdcp.js +0 -32
- package/dist-embed/chunks/DatalayerAgentBridge-Bz2KWRXK.js +0 -1
- package/dist-embed/chunks/YouTubePlugin-CjODyxZ2.js +0 -1
- package/dist-embed/chunks/index-DlK9qLPz.js +0 -1
- package/dist-embed/chunks/plugin-Dz5L6Xn8.js +0 -1
package/lib/specs/apps.js
CHANGED
|
@@ -69,6 +69,7 @@ export const ACCOUNTING_APP_0_0_1 = {
|
|
|
69
69
|
],
|
|
70
70
|
commands: [],
|
|
71
71
|
modes: [],
|
|
72
|
+
actions: [],
|
|
72
73
|
profiles: [],
|
|
73
74
|
language: 'en',
|
|
74
75
|
translations: {},
|
|
@@ -224,6 +225,7 @@ export const CHANGE_DETECTION_APP_0_0_1 = {
|
|
|
224
225
|
],
|
|
225
226
|
commands: [],
|
|
226
227
|
modes: [],
|
|
228
|
+
actions: [],
|
|
227
229
|
profiles: [],
|
|
228
230
|
language: 'en',
|
|
229
231
|
translations: {},
|
|
@@ -386,6 +388,7 @@ export const CROP_MONITORING_APP_0_0_1 = {
|
|
|
386
388
|
],
|
|
387
389
|
commands: [],
|
|
388
390
|
modes: [],
|
|
391
|
+
actions: [],
|
|
389
392
|
profiles: [],
|
|
390
393
|
language: 'en',
|
|
391
394
|
translations: {},
|
|
@@ -528,6 +531,36 @@ export const CUSTOMER_INTERVIEW_APP_0_0_1 = {
|
|
|
528
531
|
],
|
|
529
532
|
commands: [],
|
|
530
533
|
modes: [],
|
|
534
|
+
actions: [
|
|
535
|
+
{
|
|
536
|
+
name: 'save',
|
|
537
|
+
description: 'Save an insight, with the words it cites.',
|
|
538
|
+
payload: {
|
|
539
|
+
description: "An insight, in the interviewer's words, and the interviewee's own that it cites.",
|
|
540
|
+
properties: {
|
|
541
|
+
insight: {
|
|
542
|
+
description: 'What was learned',
|
|
543
|
+
minLength: 1,
|
|
544
|
+
title: 'Insight',
|
|
545
|
+
type: 'string',
|
|
546
|
+
},
|
|
547
|
+
quote: {
|
|
548
|
+
description: "The interviewee's words it cites",
|
|
549
|
+
minLength: 1,
|
|
550
|
+
title: 'Quote',
|
|
551
|
+
type: 'string',
|
|
552
|
+
},
|
|
553
|
+
},
|
|
554
|
+
required: ['insight', 'quote'],
|
|
555
|
+
title: 'Insight',
|
|
556
|
+
type: 'object',
|
|
557
|
+
},
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
name: 'finish',
|
|
561
|
+
description: 'End the interview, and record its result.',
|
|
562
|
+
},
|
|
563
|
+
],
|
|
531
564
|
profiles: [],
|
|
532
565
|
settings: {
|
|
533
566
|
type: 'object',
|
|
@@ -723,6 +756,7 @@ export const DATA_QUALITY_APP_0_0_1 = {
|
|
|
723
756
|
starters: [],
|
|
724
757
|
commands: [],
|
|
725
758
|
modes: [],
|
|
759
|
+
actions: [],
|
|
726
760
|
profiles: [],
|
|
727
761
|
language: 'en',
|
|
728
762
|
translations: {},
|
|
@@ -935,6 +969,7 @@ export const DECIDE_APP_0_0_1 = {
|
|
|
935
969
|
],
|
|
936
970
|
commands: [],
|
|
937
971
|
modes: [],
|
|
972
|
+
actions: [],
|
|
938
973
|
profiles: [],
|
|
939
974
|
language: 'en',
|
|
940
975
|
translations: {},
|
|
@@ -1077,6 +1112,7 @@ export const DISASTER_ASSESSMENT_APP_0_0_1 = {
|
|
|
1077
1112
|
],
|
|
1078
1113
|
commands: [],
|
|
1079
1114
|
modes: [],
|
|
1115
|
+
actions: [],
|
|
1080
1116
|
profiles: [],
|
|
1081
1117
|
language: 'en',
|
|
1082
1118
|
translations: {},
|
|
@@ -1221,6 +1257,7 @@ export const EVENT_RESPONSE_APP_0_0_1 = {
|
|
|
1221
1257
|
],
|
|
1222
1258
|
commands: [],
|
|
1223
1259
|
modes: [],
|
|
1260
|
+
actions: [],
|
|
1224
1261
|
profiles: [],
|
|
1225
1262
|
language: 'en',
|
|
1226
1263
|
translations: {},
|
|
@@ -1388,6 +1425,7 @@ export const EXCHANGE_DESK_APP_0_0_1 = {
|
|
|
1388
1425
|
starters: [],
|
|
1389
1426
|
commands: [],
|
|
1390
1427
|
modes: [],
|
|
1428
|
+
actions: [],
|
|
1391
1429
|
profiles: [],
|
|
1392
1430
|
language: 'en',
|
|
1393
1431
|
translations: {},
|
|
@@ -1549,6 +1587,7 @@ export const INBOX_TRIAGE_APP_0_0_1 = {
|
|
|
1549
1587
|
],
|
|
1550
1588
|
commands: [],
|
|
1551
1589
|
modes: [],
|
|
1590
|
+
actions: [],
|
|
1552
1591
|
profiles: [],
|
|
1553
1592
|
language: 'en',
|
|
1554
1593
|
translations: {},
|
|
@@ -1695,6 +1734,7 @@ export const MODEL_CHOICE_APP_0_0_1 = {
|
|
|
1695
1734
|
starters: [],
|
|
1696
1735
|
commands: [],
|
|
1697
1736
|
modes: [],
|
|
1737
|
+
actions: [],
|
|
1698
1738
|
profiles: [],
|
|
1699
1739
|
language: 'en',
|
|
1700
1740
|
translations: {},
|
|
@@ -1974,6 +2014,7 @@ export const MONTH_END_CLOSE_APP_0_0_1 = {
|
|
|
1974
2014
|
],
|
|
1975
2015
|
commands: [],
|
|
1976
2016
|
modes: [],
|
|
2017
|
+
actions: [],
|
|
1977
2018
|
profiles: [],
|
|
1978
2019
|
language: 'en',
|
|
1979
2020
|
translations: {},
|
|
@@ -2150,6 +2191,7 @@ export const ORDER_DESK_APP_0_0_1 = {
|
|
|
2150
2191
|
],
|
|
2151
2192
|
commands: [],
|
|
2152
2193
|
modes: [],
|
|
2194
|
+
actions: [],
|
|
2153
2195
|
profiles: [],
|
|
2154
2196
|
language: 'en',
|
|
2155
2197
|
translations: {},
|
|
@@ -2187,7 +2229,7 @@ export const ORDER_DESK_APP_0_0_1 = {
|
|
|
2187
2229
|
"The journey it takes is the Personal Agent Protocol SDK's demonstration with Manzanita Outfitters, run in the SDK's own tests (personal-agent-protocol 0.10.0).",
|
|
2188
2230
|
],
|
|
2189
2231
|
unverified: [
|
|
2190
|
-
|
|
2232
|
+
'No company answers on Datalayer yet: no test company is served on r1, so it has not run in the Studio against one.',
|
|
2191
2233
|
],
|
|
2192
2234
|
},
|
|
2193
2235
|
},
|
|
@@ -2287,6 +2329,7 @@ export const PIPELINE_REPORT_APP_0_0_1 = {
|
|
|
2287
2329
|
],
|
|
2288
2330
|
commands: [],
|
|
2289
2331
|
modes: [],
|
|
2332
|
+
actions: [],
|
|
2290
2333
|
profiles: [],
|
|
2291
2334
|
language: 'en',
|
|
2292
2335
|
translations: {},
|
|
@@ -2558,6 +2601,7 @@ export const QUOTE_CALCULATOR_APP_0_0_1 = {
|
|
|
2558
2601
|
starters: [],
|
|
2559
2602
|
commands: [],
|
|
2560
2603
|
modes: [],
|
|
2604
|
+
actions: [],
|
|
2561
2605
|
profiles: [],
|
|
2562
2606
|
settings: {
|
|
2563
2607
|
type: 'object',
|
|
@@ -2836,6 +2880,7 @@ export const REPORT_FROM_A_FILE_APP_0_0_1 = {
|
|
|
2836
2880
|
starters: [],
|
|
2837
2881
|
commands: [],
|
|
2838
2882
|
modes: [],
|
|
2883
|
+
actions: [],
|
|
2839
2884
|
profiles: [],
|
|
2840
2885
|
settings: {
|
|
2841
2886
|
type: 'object',
|
|
@@ -3123,6 +3168,7 @@ export const SALES_APP_0_0_1 = {
|
|
|
3123
3168
|
],
|
|
3124
3169
|
commands: [],
|
|
3125
3170
|
modes: [],
|
|
3171
|
+
actions: [],
|
|
3126
3172
|
profiles: [],
|
|
3127
3173
|
language: 'en',
|
|
3128
3174
|
translations: {},
|
|
@@ -3241,6 +3287,7 @@ export const SHIP_OR_FIX_APP_0_0_1 = {
|
|
|
3241
3287
|
starters: [],
|
|
3242
3288
|
commands: [],
|
|
3243
3289
|
modes: [],
|
|
3290
|
+
actions: [],
|
|
3244
3291
|
profiles: [],
|
|
3245
3292
|
language: 'en',
|
|
3246
3293
|
translations: {},
|
|
@@ -3458,6 +3505,7 @@ export const SUPPLIER_COMPARISON_APP_0_0_1 = {
|
|
|
3458
3505
|
starters: [],
|
|
3459
3506
|
commands: [],
|
|
3460
3507
|
modes: [],
|
|
3508
|
+
actions: [],
|
|
3461
3509
|
profiles: [],
|
|
3462
3510
|
language: 'en',
|
|
3463
3511
|
translations: {},
|
|
@@ -3678,6 +3726,7 @@ export const SUPPORT_DESK_APP_0_0_1 = {
|
|
|
3678
3726
|
],
|
|
3679
3727
|
commands: [],
|
|
3680
3728
|
modes: [],
|
|
3729
|
+
actions: [],
|
|
3681
3730
|
profiles: [],
|
|
3682
3731
|
settings: {
|
|
3683
3732
|
type: 'object',
|
|
@@ -3889,7 +3938,7 @@ export const SUPPORT_DESK_APP_0_0_1 = {
|
|
|
3889
3938
|
recorded: [],
|
|
3890
3939
|
unverified: [
|
|
3891
3940
|
'No conversation has run: its agent was switched on in the catalogue on 2026-10-06 and has not answered yet.',
|
|
3892
|
-
"Its two documents are Datalayer's
|
|
3941
|
+
"Its two documents are Datalayer's own examples, for a made-up product: a builder gives their own on What it knows.",
|
|
3893
3942
|
'Its tests have not been run.',
|
|
3894
3943
|
],
|
|
3895
3944
|
},
|
|
@@ -4011,6 +4060,7 @@ export const TRAVEL_DESK_APP_0_0_1 = {
|
|
|
4011
4060
|
],
|
|
4012
4061
|
commands: [],
|
|
4013
4062
|
modes: [],
|
|
4063
|
+
actions: [],
|
|
4014
4064
|
profiles: [],
|
|
4015
4065
|
language: 'en',
|
|
4016
4066
|
translations: {},
|
|
@@ -4045,7 +4095,7 @@ export const TRAVEL_DESK_APP_0_0_1 = {
|
|
|
4045
4095
|
verified: {
|
|
4046
4096
|
live: [],
|
|
4047
4097
|
recorded: [
|
|
4048
|
-
"The journey is
|
|
4098
|
+
"The journey is the developers' PACT example (examples/protocols/pact/personal_agent.py) against its local Provider, Example Air, run in its own tests (version 1.3.112).",
|
|
4049
4099
|
],
|
|
4050
4100
|
unverified: [
|
|
4051
4101
|
"No airline answers PACT on Datalayer yet: the gateway's pact toolset is built, not deployed.",
|
|
@@ -4143,6 +4193,7 @@ export const WEB_RESEARCH_APP_0_0_1 = {
|
|
|
4143
4193
|
],
|
|
4144
4194
|
commands: [],
|
|
4145
4195
|
modes: [],
|
|
4196
|
+
actions: [],
|
|
4146
4197
|
profiles: [],
|
|
4147
4198
|
settings: {
|
|
4148
4199
|
type: 'object',
|
|
@@ -4584,6 +4635,36 @@ export const APP_SOURCES = {
|
|
|
4584
4635
|
message: 'Interview me about my first week with the product.',
|
|
4585
4636
|
},
|
|
4586
4637
|
],
|
|
4638
|
+
actions: [
|
|
4639
|
+
{
|
|
4640
|
+
name: 'save',
|
|
4641
|
+
description: 'Save an insight, with the words it cites.',
|
|
4642
|
+
payload: {
|
|
4643
|
+
description: "An insight, in the interviewer's words, and the interviewee's own that it cites.",
|
|
4644
|
+
properties: {
|
|
4645
|
+
insight: {
|
|
4646
|
+
description: 'What was learned',
|
|
4647
|
+
minLength: 1,
|
|
4648
|
+
title: 'Insight',
|
|
4649
|
+
type: 'string',
|
|
4650
|
+
},
|
|
4651
|
+
quote: {
|
|
4652
|
+
description: "The interviewee's words it cites",
|
|
4653
|
+
minLength: 1,
|
|
4654
|
+
title: 'Quote',
|
|
4655
|
+
type: 'string',
|
|
4656
|
+
},
|
|
4657
|
+
},
|
|
4658
|
+
required: ['insight', 'quote'],
|
|
4659
|
+
title: 'Insight',
|
|
4660
|
+
type: 'object',
|
|
4661
|
+
},
|
|
4662
|
+
},
|
|
4663
|
+
{
|
|
4664
|
+
name: 'finish',
|
|
4665
|
+
description: 'End the interview, and record its result.',
|
|
4666
|
+
},
|
|
4667
|
+
],
|
|
4587
4668
|
settings: {
|
|
4588
4669
|
type: 'object',
|
|
4589
4670
|
properties: {
|
|
@@ -5606,7 +5687,7 @@ export const APP_SOURCES = {
|
|
|
5606
5687
|
"The journey it takes is the Personal Agent Protocol SDK's demonstration with Manzanita Outfitters, run in the SDK's own tests (personal-agent-protocol 0.10.0).",
|
|
5607
5688
|
],
|
|
5608
5689
|
unverified: [
|
|
5609
|
-
|
|
5690
|
+
'No company answers on Datalayer yet: no test company is served on r1, so it has not run in the Studio against one.',
|
|
5610
5691
|
],
|
|
5611
5692
|
},
|
|
5612
5693
|
},
|
|
@@ -6831,7 +6912,7 @@ export const APP_SOURCES = {
|
|
|
6831
6912
|
verified: {
|
|
6832
6913
|
unverified: [
|
|
6833
6914
|
'No conversation has run: its agent was switched on in the catalogue on 2026-10-06 and has not answered yet.',
|
|
6834
|
-
"Its two documents are Datalayer's
|
|
6915
|
+
"Its two documents are Datalayer's own examples, for a made-up product: a builder gives their own on What it knows.",
|
|
6835
6916
|
'Its tests have not been run.',
|
|
6836
6917
|
],
|
|
6837
6918
|
},
|
|
@@ -6927,7 +7008,7 @@ export const APP_SOURCES = {
|
|
|
6927
7008
|
],
|
|
6928
7009
|
verified: {
|
|
6929
7010
|
recorded: [
|
|
6930
|
-
"The journey is
|
|
7011
|
+
"The journey is the developers' PACT example (examples/protocols/pact/personal_agent.py) against its local Provider, Example Air, run in its own tests (version 1.3.112).",
|
|
6931
7012
|
],
|
|
6932
7013
|
unverified: [
|
|
6933
7014
|
"No airline answers PACT on Datalayer yet: the gateway's pact toolset is built, not deployed.",
|
|
@@ -76,6 +76,41 @@ export const APPSPEC_SCHEMA = {
|
|
|
76
76
|
title: 'AppA2AExtension',
|
|
77
77
|
type: 'object',
|
|
78
78
|
},
|
|
79
|
+
AppAction: {
|
|
80
|
+
additionalProperties: false,
|
|
81
|
+
description: 'An action of its code a person presses (`@app.action`, REACTOR_UI RU-5).\n\nWhat its payload is, typed: the JSON Schema of an object, written from the\npydantic model its code declares (`@app.action(name, payload=Model)`); an\naction declaring none takes nothing. The runtime offers it only where a\ndisplay showed it, or to the session that runs it, each press with a\ntoken; a press of an action not declared here is refused, and its payload\nis checked against this schema before its code runs.',
|
|
82
|
+
properties: {
|
|
83
|
+
name: {
|
|
84
|
+
description: 'Its name, as its button presses it',
|
|
85
|
+
pattern: '^[A-Za-z_][A-Za-z0-9_]*$',
|
|
86
|
+
title: 'Name',
|
|
87
|
+
type: 'string',
|
|
88
|
+
},
|
|
89
|
+
description: {
|
|
90
|
+
default: '',
|
|
91
|
+
description: 'What it does, in a sentence',
|
|
92
|
+
title: 'Description',
|
|
93
|
+
type: 'string',
|
|
94
|
+
},
|
|
95
|
+
payload: {
|
|
96
|
+
anyOf: [
|
|
97
|
+
{
|
|
98
|
+
additionalProperties: true,
|
|
99
|
+
type: 'object',
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
type: 'null',
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
default: null,
|
|
106
|
+
description: 'The JSON Schema of what it is pressed with, an object; none when it takes nothing (a press with anything is then refused)',
|
|
107
|
+
title: 'Payload',
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
required: ['name'],
|
|
111
|
+
title: 'AppAction',
|
|
112
|
+
type: 'object',
|
|
113
|
+
},
|
|
79
114
|
AppChecks: {
|
|
80
115
|
additionalProperties: false,
|
|
81
116
|
description: "Optional: checks from the catalogue, for a builder who wants them — and its code's own.",
|
|
@@ -536,6 +571,14 @@ export const APPSPEC_SCHEMA = {
|
|
|
536
571
|
title: 'Modes',
|
|
537
572
|
type: 'array',
|
|
538
573
|
},
|
|
574
|
+
actions: {
|
|
575
|
+
description: 'The actions of its code a person presses (`@app.action`, REACTOR_UI RU-5), each with the JSON Schema of its payload: what its buttons offer, with a token, and nothing else',
|
|
576
|
+
items: {
|
|
577
|
+
$ref: '#/$defs/AppAction',
|
|
578
|
+
},
|
|
579
|
+
title: 'Actions',
|
|
580
|
+
type: 'array',
|
|
581
|
+
},
|
|
539
582
|
profiles: {
|
|
540
583
|
description: 'Several assistants in one application, two at least: the person picks one before the conversation starts — the first unless they do — and keeps it to the end; its instructions, model and starters go with every run (LOOP P-20). None when unsaid',
|
|
541
584
|
items: {
|
|
@@ -647,6 +647,19 @@ export interface AppCommandSpec {
|
|
|
647
647
|
/** What picking it sends: `{input}` the words typed after it. */
|
|
648
648
|
prompt: string;
|
|
649
649
|
}
|
|
650
|
+
/**
|
|
651
|
+
* An action of its code a person presses (REACTOR_UI RU-5): `@app.action`,
|
|
652
|
+
* typed — the JSON Schema of its payload, written from the pydantic model its
|
|
653
|
+
* code declares; none when it takes nothing. The runtime offers it with a
|
|
654
|
+
* token and refuses a press of anything else, or with anything else.
|
|
655
|
+
*/
|
|
656
|
+
export interface AppActionSpec {
|
|
657
|
+
name: string;
|
|
658
|
+
/** What it does, in a sentence. */
|
|
659
|
+
description?: string;
|
|
660
|
+
/** The JSON Schema of its payload, an object; none when it takes nothing. */
|
|
661
|
+
payload?: Record<string, unknown>;
|
|
662
|
+
}
|
|
650
663
|
/** One position of a mode switch (LOOP P-19). */
|
|
651
664
|
export interface AppModeOptionSpec {
|
|
652
665
|
id: string;
|
|
@@ -821,6 +834,11 @@ export interface AppInterfaceSpec {
|
|
|
821
834
|
commands: AppCommandSpec[];
|
|
822
835
|
/** Mode switches in the composer, the option picked going with every run (P-19). */
|
|
823
836
|
modes: AppModeSpec[];
|
|
837
|
+
/**
|
|
838
|
+
* The actions of its code a person presses, typed (REACTOR_UI RU-5):
|
|
839
|
+
* written by its code (`@app.action`); absent from a spec without code.
|
|
840
|
+
*/
|
|
841
|
+
actions?: AppActionSpec[];
|
|
824
842
|
/**
|
|
825
843
|
* Several assistants in one application (P-20): two at least, or none.
|
|
826
844
|
* Absent from a spec made before profiles.
|
package/lib/types/protocol.d.ts
CHANGED
|
@@ -52,6 +52,13 @@ export interface ProtocolConfig {
|
|
|
52
52
|
* conversation, its thread the scope.
|
|
53
53
|
*/
|
|
54
54
|
uiSocket?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Where a file of a conversation is uploaded before the run or the press
|
|
57
|
+
* that names it (REACTOR_UI RU-6): Reactor's upload, the bytes as the body,
|
|
58
|
+
* the conversation's thread its scope. A run carries the ref it answers,
|
|
59
|
+
* never the bytes. Set for an application's agent.
|
|
60
|
+
*/
|
|
61
|
+
uiFiles?: string;
|
|
55
62
|
/** Additional protocol options */
|
|
56
63
|
options?: Record<string, unknown>;
|
|
57
64
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datalayer/agent-runtimes",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"workspaces": [
|
|
6
6
|
".",
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
"@datalayer/primer-addons": "^1.0.39",
|
|
162
162
|
"@datalayer/primer-rjsf": "^1.0.3",
|
|
163
163
|
"@datalayer/personal-agent-protocol": "^0.6.0",
|
|
164
|
-
"@datalayer/reactor": "^1.
|
|
164
|
+
"@datalayer/reactor": "^1.3.0",
|
|
165
165
|
"@datalayer/reactor-commands": "^1.0.4",
|
|
166
166
|
"@datalayer/reactor-manager": "^1.0.4",
|
|
167
167
|
"@datalayer/reactor-shell": "^1.0.4",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{v as $,b6 as g,ck as k,cl as q,j as y,b8 as V}from"../datalayer-app-main.js";var w={Avatar:"prc-Avatar-Avatar-ZRS-m"};const D=20,T=$.forwardRef(function(A,u){const s=g.c(29);let o,l,a,i,n,d,f;s[0]!==A?({alt:n,size:d,square:f,sx:i,className:o,style:a,...l}=A,s[0]=A,s[1]=o,s[2]=l,s[3]=a,s[4]=i,s[5]=n,s[6]=d,s[7]=f):(o=s[1],l=s[2],a=s[3],i=s[4],n=s[5],d=s[6],f=s[7]);const m=n===void 0?"":n,t=d===void 0?D:d,h=f===void 0?!1:f;let p;s[8]!==t?(p=k(t),s[8]=t,s[9]=p):p=s[9];const r=p;let e;if(s[10]!==r||s[11]!==t){if(e={},r)for(const[j,E]of Object.entries(t))e[`--avatarSize-${j}`]=`${E}px`;else e["--avatarSize-regular"]=`${t}px`;s[10]=r,s[11]=t,s[12]=e}else e=s[12];let c;s[13]!==o?(c=q(o,w.Avatar),s[13]=o,s[14]=c):c=s[14];const R=r?"":void 0,z=h?"":void 0,S=r?void 0:t,b=r?void 0:t;let v;s[15]!==e||s[16]!==a?(v=a?{...e,...a}:e,s[15]=e,s[16]=a,s[17]=v):v=s[17];let x;return s[18]!==m||s[19]!==u||s[20]!==l||s[21]!==i||s[22]!==v||s[23]!==c||s[24]!==R||s[25]!==z||s[26]!==S||s[27]!==b?(x=y.jsx(V,{as:"img","data-component":"Avatar",className:c,ref:u,alt:m,"data-responsive":R,"data-square":z,width:S,height:b,style:v,sx:i,...l}),s[18]=m,s[19]=u,s[20]=l,s[21]=i,s[22]=v,s[23]=c,s[24]=R,s[25]=z,s[26]=S,s[27]=b,s[28]=x):x=s[28],x});export{T as A,D};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import{E as _,eM as eo,r as o,j as t,eN as to,eO as no,bZ as gn,B as f,H as lt,T as W,c as G,ct as Rt,et as Lt,eP as ae,cn as ct,e as oo,eQ as so,eR as ao,e2 as io,eS as ro,aH as lo,dW as En,dU as co,dX as Ft,eT as uo,eU as fo,eV as po,eW as mo,eX as hn,eY as go,eZ as ho,e_ as bo,d2 as xo,a_ as So,e$ as vo,f0 as yo,f1 as Co,f2 as wo,f3 as ko,f4 as jo,x as At,f5 as Eo,f6 as Io,f7 as To,f8 as Ro,f9 as Ao,fa as Po,fb as Mo,fc as $o,fd as Uo,fe as Oo,ff as Lo,fg as Fo,fh as zo,fi as No,fj as _o,fk as Bo,fl as Ho,fm as Wo,fn as Vo,fo as De,fp as Do,fq as Go,fr as Ko,fs as Yo,ft as bn,fu as qo,fv as Te,fw as Jo,fx as Qo,a$ as dt,fy as Xo,fz as Zo,fA as xn,fB as es,fC as ts,eB as ns,fD as Pt,fE as Re,fF as os,fG as ss,fH as as,fI as is,fJ as rs,fK as ls,fL as cs,fM as ds,fN as us,fO as fs,fP as ps,fQ as ms,fR as Mt,fS as gs,fT as hs,I as bs,fU as xs,fV as Ss,fW as Sn,fX as vs,fY as ys,fZ as Cs,f_ as zt,f$ as ws,g0 as ks,ej as $t,g1 as js,g2 as Es}from"../datalayer-app-main.js";import{S as Is,E as Ts,a as Rs}from"./SignInIcon-4HkE48mS.js";import{F as As,a as Ps,b as Ms}from"./LinkedInGreyIcon-BoWXE-HS.js";function $s(){const n=_(eo);return o.useMemo(()=>n.map(s=>s.value),[n])}const Ut={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"}},vn=()=>{if(typeof document>"u")return"";const n=document.getElementById("datalayer-config-data");if(!n?.textContent)return"";try{const s=JSON.parse(n.textContent);return String(s?.iamUrl||"").replace(/\/$/,"")}catch{return""}},Us=(n,s="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 c=n.message;if(typeof c=="string"&&c.trim())return c}return s},Os=ro`
|
|
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
|
-
`,Ls=({onSignIn:n,onApiKeySignIn:s,loginUrl:c,name:a,title:d="Datalayer OTEL",description:h="Sign in to access the observability dashboard.",icon:x,leadingIcon:C=t.jsx(io,{size:24}),github:p=!1,google:K=!1,linkedin:B=!1,apiKey:Ge=!1,signUp:L=!0,socialSignInNavigationTarget:Z,asDoc:S=!1,fillHeight:I=!0,hideHero:ee=!1,calloutTitle:Ae,calloutDescription:Ke,passwordToggleLabel:ie="Sign in with a password",signUpTitle:Nt="Don't have an account?",signUpDescription:Y="Create a free Datalayer account with your email address.",signUpLabel:ut="Sign up with email",signUpHref:Pe="https://datalayer.ai/signup",onSignUp:H,forgotPasswordHref:q="/password",forgotPasswordLabel:Me="Forgot password?",showForgotPassword:ft=!0,socialButtonMarginTop:y=3,actionButtonMaxWidth:J=320})=>{const te=S&&!ee,Ye=a??(S&&d==="Datalayer OTEL"?"Datalayer Sign In":d),pt=x??(S?t.jsx(Is,{size:24}):C),F=o.useMemo(()=>{if(c)return c;const i=vn();return i?`${i}/api/iam/v1/login`:"/api/iam/v1/login"},[c]),[V,Se]=o.useState(""),[re,mt]=o.useState(""),[qe,le]=o.useState(!1),[ce,Je]=o.useState(!1),[k,ve]=o.useState(!1),[de,$e]=o.useState(!1),[Ue,Qe]=o.useState(null),[z,ye]=o.useState(null),[ne,Xe]=o.useState(""),[ue,Ze]=o.useState(null),[Oe,M]=o.useState(null),{enqueueToast:fe}=to(),[pe,E]=o.useState(!1),[Q,oe]=o.useState(""),D=o.useRef(null),Le=o.useCallback(i=>no()?gn.URLExt.join(gn.PageConfig.getBaseUrl(),i.oauth2CallbackServerRoute):`${window.location.protocol}//${window.location.hostname}${window.location.port?`:${window.location.port}`:""}${i.oauth2CallbackUIRoute}`,[]),me=o.useMemo(()=>{if(typeof window>"u")return"/";const i=`${window.location.pathname}${window.location.search}${window.location.hash}`;return i.startsWith("/")?i:"/"},[]),Ce=o.useCallback(async i=>{if(!de){M(null),Qe(i.name),$e(!0);try{const g=vn(),m=new URLSearchParams({provider:i.name,callback_uri:Le(i)}),T=Z===void 0?void 0:String(Z||"").trim(),v=T===void 0?me&&me!=="/"?me:void 0:T&&T.startsWith("/")&&!T.startsWith("//")?T:void 0;v&&m.set("post_auth_redirect",v);const ze=`${g||""}/api/iam/v1/oauth2/authz/url?${m.toString()}`,j=await fetch(ze),se=await j.json(),Ne=se?.autorization_url;if(!j.ok||!Ne)throw new Error(se?.message||"Unable to start social sign-in.");window.location.assign(Ne)}catch(g){const m=Us(g);M(m),fe(m,{variant:"error"}),Qe(null),$e(!1)}}},[Le,me,fe,de,Z]);o.useEffect(()=>{pe&&D.current?.focus()},[pe]);const $=o.useCallback(()=>{E(!1),oe("")},[]),gt=o.useCallback(()=>{!Q.trim()||!s||(s(Q.trim()),$())},[Q,s,$]),ht=o.useCallback(()=>{if(H){H();return}window.location.assign(Pe)},[H,Pe]),bt=o.useCallback(()=>{if(q){if(q.startsWith("http://")||q.startsWith("https://")){window.open(q,"_blank","noopener,noreferrer");return}window.location.assign(q)}},[q]),Fe=o.useCallback(async()=>{if(!(S||!V||!re||k)){ve(!0),M(null);try{const i=await fetch(F,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({handle:V,password:re})});if(!i.ok)throw new Error(`HTTP ${i.status}`);const g=await i.json();if(g.success&&g.token){const m=String(g?.user?.id||g?.user?.uid||"").trim();if(!!g?.user?.mfaUrl&&m){ye(m),Ze(g.token),M(null);return}n&&n(g.token,V)}else M(g.message||"Invalid username or password.")}catch(i){M(i instanceof Error?i.message:String(i))}finally{ve(!1)}}},[S,V,re,k,F,n]),ge=o.useCallback(async()=>{if(!(S||k||!z||!ne.trim()||!ue)){ve(!0),M(null);try{const i=new URL(F,window.location.origin),g=i.pathname.endsWith("/api/iam/v1/login")?i.href.replace(/\/api\/iam\/v1\/login$/,""):`${i.origin}`,m=await fetch(`${g}/api/iam/v1/users/${z}/mfa/validate`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userUid:z,code:ne.trim()})}),T=await m.json();if(!m.ok||!T?.success)throw new Error(T?.message||"Failed to validate your MFA code.");n&&n(ue,V)}catch(i){const g=i instanceof Error?i.message:String(i);M(g),fe(g,{variant:"error"})}finally{ve(!1)}}},[S,fe,V,k,F,ne,ue,z,n]),we=o.useCallback(i=>{i.key==="Enter"&&(z?ge():Fe())},[z,Fe,ge]),he=de||k||S;return t.jsxs(f,{className:"signin-input-theme-scope",display:"flex",alignItems:ee||te||!I?"flex-start":"center",justifyContent:"center",minHeight:ee||te||!I?"auto":"100vh",bg:ee?"transparent":"canvas.default",color:"fg.default",py:ee?0:te?2:4,children:[t.jsx(Os,{}),t.jsxs(f,{width:"100%",maxWidth:440,p:0,children:[!ee&&t.jsxs(t.Fragment,{children:[t.jsxs(f,{display:"flex",alignItems:"center",gap:2,mb:te?2:3,justifyContent:"center",children:[pt,t.jsx(lt,{sx:{fontSize:3},children:Ye})]}),t.jsx(W,{as:"p",sx:{fontSize:1,color:"fg.muted",mb:te?2:3,textAlign:"center"},children:h})]}),(Ae||Ke)&&t.jsxs(f,{mb:3,textAlign:"center",children:[Ae&&t.jsx(lt,{as:"h3",sx:{fontSize:2,mb:1},children:Ae}),Ke&&t.jsx(W,{sx:{color:"fg.muted",fontSize:1},children:Ke})]}),!z&&(p||K||B)&&t.jsxs(t.Fragment,{children:[p&&t.jsx(G,{block:!0,size:"large",leadingVisual:Ue==="github"?()=>t.jsx(Rt,{size:"small"}):As,disabled:he,onClick:()=>Ce(Ut.github),sx:{mt:y,maxWidth:J,mx:"auto"},children:"Sign in with GitHub"}),K&&t.jsx(G,{block:!0,size:"large",leadingVisual:Ue==="google"?()=>t.jsx(Rt,{size:"small"}):Ps,disabled:he,onClick:()=>Ce(Ut.google),sx:{mt:y,maxWidth:J,mx:"auto"},children:"Sign in with Google"}),B&&t.jsx(G,{block:!0,size:"large",leadingVisual:Ue==="linkedin"?()=>t.jsx(Rt,{size:"small"}):Ms,disabled:he,onClick:()=>Ce(Ut.linkedin),sx:{mt:y,maxWidth:J,mx:"auto"},children:"Sign in with LinkedIn"})]}),!z&&!qe&&t.jsx(f,{mt:3,display:"flex",justifyContent:"center",children:t.jsx(G,{leadingVisual:Lt,size:"large",block:!0,disabled:S||k||de,onClick:()=>le(!0),sx:{maxWidth:J,mx:"auto"},children:ie})}),!z&&qe&&t.jsxs(f,{mt:4,children:[t.jsxs(ae,{required:!0,sx:{mb:3},children:[t.jsx(ae.Label,{children:"Username"}),t.jsx(ct,{autoFocus:!0,block:!0,placeholder:"Your username",value:V,disabled:k||S,onChange:i=>Se(i.target.value),onKeyDown:we})]}),t.jsxs(ae,{required:!0,sx:{mb:3},children:[t.jsx(ae.Label,{children:"Password"}),t.jsx(ct,{block:!0,placeholder:"Your password",type:ce?"text":"password",value:re,disabled:k||S,onChange:i=>mt(i.target.value),onKeyDown:we,trailingAction:t.jsx(ct.Action,{onClick:()=>Je(!ce),disabled:k||S,icon:ce?Ts:Rs,"aria-label":ce?"Hide password":"Show password",sx:{color:"var(--fgColor-muted)"}})})]}),t.jsxs(f,{display:"flex",alignItems:"center",justifyContent:"space-between",mt:3,children:[t.jsx(G,{variant:"primary",disabled:k||S||!V||!re,onClick:Fe,children:k?"Signing in…":"Sign In"}),ft&&t.jsx(oo,{as:"button",sx:{fontSize:1,cursor:S?"not-allowed":"pointer",background:"none",border:"none",opacity:S?.6:1},onClick:()=>{S||k||bt()},children:Me})]})]}),z&&t.jsxs(t.Fragment,{children:[t.jsxs(ae,{required:!0,sx:{mb:3,mt:2},children:[t.jsx(ae.Label,{children:"MFA Code"}),t.jsx(ct,{autoFocus:!0,block:!0,placeholder:"Your MFA code",value:ne,disabled:k||S,onChange:i=>Xe(i.target.value),onKeyDown:we})]}),t.jsx(G,{variant:"primary",block:!0,disabled:k||S||!ne.trim(),onClick:ge,sx:{maxWidth:J,mx:"auto"},children:k?"Validating…":"Validate MFA Code"})]}),Oe&&t.jsx(W,{sx:{color:"danger.fg",fontSize:1,mt:3,display:"block"},children:Oe}),L&&t.jsxs(f,{mt:4,pt:4,textAlign:"center",borderTop:"1px solid",borderColor:"border.muted",children:[t.jsx(lt,{as:"h3",sx:{fontSize:2,mb:2},children:Nt}),t.jsx(W,{as:"p",sx:{color:"fg.muted",fontSize:1,mb:3},children:Y}),t.jsx(f,{display:"flex",justifyContent:"center",children:t.jsx(G,{variant:"primary",size:"large",leadingVisual:so,disabled:S||k,onClick:ht,children:ut})})]}),Ge&&s&&t.jsxs(t.Fragment,{children:[t.jsxs(f,{display:"flex",alignItems:"center",gap:2,my:3,children:[t.jsx(f,{flex:1,height:"1px",bg:"border.default"}),t.jsx(W,{sx:{fontSize:0,color:"fg.muted"},children:"or"}),t.jsx(f,{flex:1,height:"1px",bg:"border.default"})]}),t.jsx(G,{block:!0,leadingVisual:Lt,disabled:S||k||de,onClick:()=>E(!0),sx:{maxWidth:J,mx:"auto"},children:"Sign in with an API Key"}),pe&&t.jsx(f,{role:"dialog","aria-modal":"true","aria-labelledby":"signin-api-key-title",onKeyDown:i=>{i.key==="Escape"&&$()},onClick:$,position:"fixed",inset:0,zIndex:200,p:3,bg:"canvas.backdrop",display:"flex",alignItems:"center",justifyContent:"center",children:t.jsxs(f,{as:"form",onClick:i=>i.stopPropagation(),onSubmit:i=>{i.preventDefault(),gt()},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(lt,{id:"signin-api-key-title",sx:{fontSize:2,mb:2},children:"Enter your API Key"}),t.jsxs(ae,{required:!0,children:[t.jsx(ae.Label,{children:"API Key"}),t.jsx(ao,{block:!0,required:!0,autoFocus:!0,placeholder:"Paste your API key here",value:Q,onInput:i=>oe(i.currentTarget.value),ref:D})]}),t.jsxs(f,{mt:3,display:"flex",justifyContent:"flex-end",gap:2,children:[t.jsx(G,{type:"button",onClick:$,children:"Cancel"}),t.jsx(G,{type:"submit",variant:"primary",disabled:!Q.trim(),children:"Authenticate"})]})]})})]})]})]})};function Fs(n){const{agentId:s,instructions:c,model:a,frontendTools:d,inference:h,subagents:x,sharing:C,onSubagentEvent:p,modeEffect:K}=n;return{type:"browser-vercel-ai",endpoint:"",agentId:s,enableConfigQuery:!1,options:{instructions:c,model:a,frontendTools:d,inference:h,subagents:x,sharing:C,onSubagentEvent:p,modeEffect:K}}}const yn=lo((n,s)=>({pending:void 0,suggest:(c,a)=>{const d=c.trim();d&&n({pending:{text:d,submit:a?.submit??!1,nonce:(s().pending?.nonce??0)+1}})},consume:()=>n({pending:void 0})}));function zs({agentName:n,sandboxStillRuns:s=!1,temporary:c=!0,onSignedIn:a,onSignUp:d}){const{configuration:h}=En(),x=o.useCallback(C=>{co.getState().checkIAMToken(C),a?.()},[a]);return t.jsx(f,{height:"100%",minHeight:0,overflowY:"auto",bg:"canvas.default",px:4,py:4,children:t.jsxs(f,{maxWidth:440,mx:"auto",children:[t.jsxs(f,{display:"flex",alignItems:"center",justifyContent:"center",gap:2,color:"attention.fg",mb:2,children:[t.jsx(Lt,{size:20}),t.jsx(W,{sx:{fontSize:2,fontWeight:"semibold",color:"fg.default"},children:c?"This demo runs on a shared key":"Your key has expired"})]}),t.jsxs(W,{as:"p",sx:{fontSize:1,color:"fg.muted",textAlign:"center",mb:3},children:[c?`${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.`,s?" Your notebook is still running in this page.":""]}),t.jsx(Ls,{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:h?.iamUrl?`${h.iamUrl}/api/iam/v1/login`:void 0,onSignIn:x,onSignUp:d})]})})}const Ns="https://r1.datalayer.run";function _s(n=!0){const{configuration:s}=En(),c=Ft(C=>C.token),a=s?.aiInferenceUrl||Ns,d=uo(a,n&&!c),h=c||d.token,x=o.useMemo(()=>({inferenceUrl:a,token:h||void 0}),[a,h]);return{inference:x,needsSignIn:fo(x),anonymous:d,inferenceUrl:a}}const Bs={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 Cn(n){const s=n?.subagents;if(!s)return[];const c=(s.subagents??[]).map(a=>{const d=a.ref?po(a.ref):void 0;return{name:a.name,description:a.description||d?.description||a.name,instructions:a.instructions??d?.systemPrompt,model:a.model??d?.model??s.defaultModel,icon:d?.icon}});return s.includeGeneralPurpose?[...c,Bs]:c}function Hs(n){return n.replace(/^datalayer_/,"").replace(/_lexical$/,"")}function Ws(n){const s=Hs(n);return/^executeCodeIn(Notebook|Document)$/.test(s)||/^(read|list)[A-Z]/.test(s)}function Vs(n,s){return n.filter(c=>s?.has(c.name)||Ws(c.name))}function Ds(n,s){const c=a=>s&&a.value.id===`${s}-tools`?0:a.value.id==="notebook-tools"?1:2;return n.map((a,d)=>({entry:a,index:d,rank:c(a)})).sort((a,d)=>a.rank-d.rank||a.index-d.index).map(a=>a.entry)}function Gs(n,s,c){if(!c||!n.endsWith("-tools"))return!1;const a=n.slice(0,-6);return s.has(a)&&a!==c}const Ks={type:"object",properties:{}};function Ys(n,s){const c=new Set(n.toolset);return n.commands.filter(a=>c.has(a.name)).map(a=>({name:a.name,description:a.description,parameters:a.parameters??Ks,location:"frontend",handler:async d=>{if(!s)throw new Error(`${a.name}: the ${n.plugin??n.id} plugin is not mounted on this page.`);const h=Object.keys(d??{}).length>0?d:void 0,x=await s.executeCommand(a.command,h);return x===void 0?{ok:!0,command:a.command,argument:h}:x}}))}function qs(n,s){return n.flatMap(c=>Ys(c,s))}function Js(){const n=mo(),s=$s();return o.useMemo(()=>qs(s,n),[s,n])}const wn={opening:"Opening your conversation…",notOpened:n=>`Your conversation could not be opened, so this is a new one: ${n}`};function Qs(n){let s;for(const c of n.split(/\r?\n\r?\n/)){const a=c.split(/\r?\n/).filter(d=>d.startsWith("data:")).map(d=>d.slice(5).trim()).join("");if(a)try{const d=JSON.parse(a);d.type==="MESSAGES_SNAPSHOT"&&Array.isArray(d.messages)&&(s=d.messages)}catch{}}return s}async function kn(n){try{const s=await n.json();if(typeof s.detail=="string"&&s.detail)return s.detail}catch{}return`${n.status}`}async function Xs({agentBaseUrl:n,agentId:s,uid:c,token:a,fetcher:d=fetch}){const h=`${n.replace(/\/+$/,"")}/api/v1/apps/sessions/${encodeURIComponent(c)}`,x=a?{Authorization:`Bearer ${a}`}:{},C=await d(`${h}/messages`,{headers:x});if(C.ok){const B=await C.json();return hn(B.messages)}if(C.status!==404)throw new Error(await kn(C));const p=await d(`${h}/resume`,{method:"POST",headers:{"Content-Type":"application/json",...x},body:JSON.stringify({agent:s})});if(!p.ok)throw new Error(await kn(p));const K=Qs(await p.text());if(!K)throw new Error(`The runtime said nothing of session ${c}.`);return hn(K)}const Zs="var(--theme-accent)";function In({face:n,size:s}){return typeof n=="string"?t.jsx(go,{emoji:n,size:s,label:""}):t.jsx(t.Fragment,{children:n})}function ea({face:n,size:s,state:c}){const a=c==="thinking"||c==="working",d=c==="paused";return t.jsxs(f,{as:"span","aria-hidden":!0,"data-presence":c,position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:s+8,height:s+8,flexShrink:0,fontSize:s,lineHeight:1,children:[t.jsx(f,{as:"span",position:"absolute",inset:0,borderRadius:"50%",boxShadow:d?"none":`0 0 0 2px ${Zs}`,border:d?"2px dashed":"none",borderColor:"border.default",opacity:a||c==="waiting"||d?.9:0,transition:"opacity var(--theme-motion-status, 0ms) var(--theme-motion-easing, ease)",animation:a?"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(f,{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(In,{face:n,size:s})})]})}function ta({state:n}){return t.jsx(W,{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:ho[n]})}const na=zt(void 0),oa=zt(""),sa=zt({}),X="",aa=1400,jn=parseInt(js["--loop-face-large"],10);function da({workspace:n}){const s=bo(),c=xo(),a=o.useRef(null),{setViewControls:d}=n,[h,x]=o.useState(null),C=So(),p=C.getConfig(vo),K=p?.placeholder||s.placeholder,B=p?.defaultSurface??"notebook",Ge=C.getConfig(yo),[L,Z]=o.useState(X),S=o.useRef(!1),I=_(Co),ee=_(wo),Ae=_(ko),ie=_(jo)[0]?.value,Y=At(ie?.promptStance??na)??ie?.prompt,ut=_(Eo),Pe=Io(ut[0]?.value),H=o.useRef(Pe);H.current=Pe;const q=o.useRef(""),Me=_(To),ft=o.useMemo(()=>Ro(()=>Me.reduce((e,r)=>({...e,...r.value.extras.value}),{})),[Me]),y=At(Me.length>0?ft:sa),J=o.useRef(new Set),te=Ao(ws,n),Ye=!te.allowed,pt=Ye?te.reason??"Chat is unavailable for this sandbox":void 0,[F,V]=o.useState(!1),[Se,re]=o.useState(!1),[mt,qe]=o.useState({open:!1,pendingApproval:!1}),le=Po(F,mt,p?.presence?.paused===!0),ce=p?.presence?.onPresence;o.useEffect(()=>{ce?.(le),H.current?.setPresence(le)},[ce,le]);const Je=o.useRef(p?.presence?.onSaying);Je.current=p?.presence?.onSaying;const k=o.useRef({answering:!1}),ve=o.useCallback(e=>{a.current=e,re(!!e)},[]),de=o.useCallback(e=>{const{open:r,pendingApproval:l}=Mo(e);qe(xe=>xe.open===r&&xe.pendingApproval===l?xe:{open:r,pendingApproval:l});const b={saying:Uo(e),answering:$o(e)},u=k.current;(u.saying?.id!==b.saying?.id||u.saying?.text!==b.saying?.text||u.answering!==b.answering)&&(k.current=b,Je.current?.(b));const O=H.current;if(!O)return;O.items(e);const P=new Set(["complete","completed","done","error","failed","cancelled","canceled","rejected","denied","stopped"]),A={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 w;for(let xe=e.length-1;xe>=0;xe-=1){const rt=e[xe];if(typeof rt.toolName=="string"&&rt.toolCallId){P.has(String(rt.status).toLowerCase())||(w=rt);break}}if(!w){O.activity(void 0);return}const Tt=w.toolName.toLowerCase().replace(/^datalayer_/,"").replace(/_lexical$/,"").replace(/[^a-z]/g,""),Zn=A[Tt]??`using ${w.toolName}`;O.activity(`${q.current||"The agent"} is ${Zn}…`)},[]),$e=o.useRef(y);$e.current=y;const Ue=o.useCallback(e=>{Ln(e),H.current?.usage(e),$e.current.onUsage?.(e)},[]),Qe=o.useCallback(e=>{V(e),e||H.current?.end("done")},[]),z=o.useCallback(e=>{const r=H.current;if(!r)return;let l=-1;for(let u=e.length-1;u>=0;u-=1)if(e[u].role==="user"){l=u;break}const b=e.slice(l+1).filter(u=>u.role==="assistant").map(Oo).filter(u=>u.trim().length>0).join(`
|
|
29
|
-
|
|
30
|
-
`);r.assistant(b)},[]),ye=o.useRef([]),ne=o.useRef(!1),Xe=o.useRef(void 0),ue=o.useRef(void 0),Ze=_(Lo),Oe=o.useRef(Ze);Oe.current=Ze;const M=o.useCallback((e,r)=>{if(ue.current)return ue.current;const l=Fo(Oe.current.map(O=>O.value),r),b=l?.loop;if(ne.current&&b?.files&&b.files.length>0){const O=Xe.current;if(!O)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 P;try{P=b.files.map(A=>({file:No(String(A.name??"")),base64:zo(String(A.data_url??""))}))}catch(A){return A instanceof Error?A.message:String(A)}O.execute(_o(P)).then(A=>{if(!A.success){x(`The files could not be put in the sandbox: ${A.error??"it failed"}.`);return}M(`${e}
|
|
31
|
-
|
|
32
|
-
${Bo(P.map(w=>w.file))}`,{...l,loop:Object.fromEntries(Object.entries(b).filter(([w])=>w!=="files"))})});return}H.current?.begin(e,a.current?.thread());const u=a.current?.send;if(!u){ye.current.push([e,l]);return}u(e,l)},[]);o.useEffect(()=>{d(Se?{busy:F,stop:a.current?.stop,newChat:a.current?.newChat,send:M}:null)},[F,Se,d,M]),o.useEffect(()=>()=>d(null),[d]),o.useEffect(()=>n.prompts.subscribe(M),[n.prompts,M]),o.useEffect(()=>{if(!Se||ye.current.length===0)return;const e=ye.current.splice(0,ye.current.length);for(const[r,l]of e)a.current?.send(r,l)},[Se]);const fe=o.useRef(!1),pe=o.useCallback(async e=>{fe.current||(fe.current=!0,Ge?.firstPromptHook?.()),x(null);const r=await n.submit(e);if(!r.handled){x(r.reason??null);return}jt(""),r.result?.content&&x(r.result.content)},[n,Ge?.firstPromptHook]),E=o.useMemo(()=>I.find(e=>e.value.surfaceId===L)?.value,[I,L]),Q=o.useCallback(e=>{S.current=!0,Z(e)},[]);o.useEffect(()=>Ho(Q),[Q]),o.useEffect(()=>{Wo(I.map(e=>e.value.surfaceId))},[I]),o.useEffect(()=>{Vo(L&&L!==X?L:Es)},[L]);const oe=o.useMemo(()=>B===X||B==="none"?void 0:I.find(e=>e.value.surfaceId===B),[I,B]);o.useEffect(()=>{S.current||!oe||De(oe.value,n)&&Z(B)},[oe,n,B]);const[D,Le]=o.useState(null),me=o.useRef(null),Ce=p?.fullScreenTopOffset??0,{fullScreen:$,usingApi:gt,toggle:ht,topOffsetPx:bt}=Do(me,{forceOverlay:!!Ce,topOffset:Ce}),[Fe,ge]=o.useState(!1),we=o.useRef(!1);o.useEffect(()=>{!F||we.current||$||(we.current=!0,ge(!0))},[F,$]),o.useEffect(()=>{$&&ge(!1)},[$]),o.useEffect(()=>{E&&!De(E,n)&&(Le(E.surfaceId),Z(X))},[E,n]);const he=o.useMemo(()=>{if(D)return I.find(e=>e.value.surfaceId===D)?.value;if(!S.current&&L===X)return oe?.value},[I,D,L,oe]);o.useEffect(()=>{if(!D||L!==X)return;const e=I.find(r=>r.value.surfaceId===D);e&&De(e.value,n)&&(Le(null),Z(D))},[I,L,D,n]);const i=n.agentId?.trim()||"default",g=Go(n.sandbox.target??"local");ne.current=g;const m=Ko(),T=At(m?.selected??oa),v=m?.members.find(e=>e.id===T),xt=_(Yo)[0]?.value,ze=xt?.specId,j=bn(v?.specId??i)??(ze?bn(ze):void 0),se=v?void 0:xt,Ne=g&&!v?Cs(ze,j):void 0;q.current=v?.name??j?.name??i;const _t=_(qo),Bt=y.hiddenOpeners,Ht=y.hideOpeners,St=y.openers,vt=o.useMemo(()=>{if(Ht)return[];const e=new Set(Bt??[]),r=w=>e.size===0?w:w.filter(Tt=>!e.has(Tt.text));if(St)return r(St);const l=_t.flatMap(w=>w.value.suggestions);if(l.length>0)return r(l);const b=r(j?.suggestions??[]),u=r(m?.team.suggestions??[]);if(u.length===0)return b;const O=new Set(u.map(w=>w.text)),P=m?.team.name??"Team",A=v?.name??j?.name??i;return[...u.map(w=>({...w,group:P})),...b.filter(w=>!O.has(w.text)).map(w=>({...w,group:A}))]},[_t,m,j,v,i,Bt,Ht,St]),et=o.useMemo(()=>vt.map(e=>({title:e.summary??e.text,message:e.message??e.text,group:e.group})),[vt]),yt=Te(j?.icon),N=p?.presence,Tn=Te(m?.team.icon),Wt=_(Jo),tt=o.useMemo(()=>{const e=[],r=new Map,l=new Set,b=new Set(I.map(u=>u.value.surfaceId));for(const u of Ds(Wt,E?.surfaceId)){if(Gs(u.value.id,b,E?.surfaceId))continue;let O;try{O=u.value.tools(n)}catch(P){console.warn(`[loop] frontend tools from '${u.plugin}' failed:`,P);continue}for(const P of O){const A=r.get(P.name);if(A){console.warn(`[loop] frontend tool '${P.name}' from '${u.plugin}' is shadowed by the one from '${A}'.`);continue}r.set(P.name,u.plugin),e.push(P),u.value.chatView&&l.add(P.name)}}for(const u of y.frontendTools??[])r.has(u.name)||(r.set(u.name,"chat-extras"),e.push(u),l.add(u.name));return E?e:Vs(e,l)},[Wt,n.surfaceId,n.agentId,y.frontendTools,E?.surfaceId,I]),Ct=Js(),_e=o.useMemo(()=>{if(Ct.length===0)return tt;const e=new Set(tt.map(r=>r.name));return[...tt,...Ct.filter(r=>!e.has(r.name))]},[tt,Ct]);Xe.current=g&&_e.some(e=>e.name===Qo)?C.getOutput(dt)?.sandbox:void 0;const R=Xo(n.sandbox,n.serverUrl),Vt=_(Zo),Rn=o.useMemo(()=>Vt.filter(e=>e.value.composer).map(e=>({name:e.value.name,description:e.value.description})),[Vt]),An=o.useMemo(()=>{if(!m||!v)return Cn(j).map(l=>({name:l.name,description:l.description,icon:Te(l.icon)}));const e=m.members.map(l=>({name:l.name,description:l.description,emoji:l.emoji,icon:Te(l.icon),disabled:l.id===v.id,disabledReason:l.id===v.id?`You are already talking to ${l.name}`:void 0})),r=xn(m.team,v.id).filter(l=>!m.members.some(b=>b.name===l.name)).map(l=>({name:l.name,description:l.description,icon:Te(l.icon)}));return[...e,...r]},[m,v,j]),{inference:Dt,anonymous:Pn}=_s(g),Mn=Ft(e=>e.user),wt=g&&Pn.status==="expired",Gt=!Mn,Be=es();ue.current=Be.disabled?Be.disableReason||"This conversation is closed here.":void 0;const kt=R===void 0?ts(n.sandbox,s):void 0,nt=Ye||wt||!!Ne||!!kt||Be.disabled,Kt=wt?Gt?s.demoKeyExpired:s.keyExpired:Ne??kt??pt??(Be.disabled?Be.disableReason:void 0),[Yt,jt]=o.useState(""),[$n,qt]=o.useState(),ot=$n??se?.model??j?.model??n.model??"",ke=ns(),Jt=o.useRef(ke),Qt=o.useRef(T),Xt=o.useRef(ke);Xt.current=ke,o.useEffect(()=>{Qt.current!==T&&(Qt.current=T,Jt.current=Xt.current,qt(void 0))},[T]);const Un=ke&&ke!==Jt.current?ke:null,[On,Ln]=o.useState(),Fn=Un??On??null,zn=Pt(Re.inpromptMenu),Nn=Pt(Re.promptAction),_n=Pt(Re.chatHeader),Bn=o.useMemo(()=>m?.members.map(e=>({id:e.id,name:e.name,description:e.description,icon:Te(e.icon)}))??[],[m]),be=yn(e=>e.pending),[Zt,Hn]=o.useState(0);o.useEffect(()=>os(()=>Hn(e=>e+1)),[]),o.useEffect(()=>{be&&(jt(be.text),yn.getState().consume(),be.submit&&pe(be.text))},[be]);const je=!!(se?.createPayload?.app_spec||C.getConfig(dt)?.datalayerCreatePayload?.app_spec),Wn=Ft(e=>e.token),en=C.getConfig(dt)?.datalayerVisitors,Vn=ss(en),Dn=C.getConfig(dt)?.embedToken,He=en?Vn.token:Dn||Wn,U=p?.thread,[Ee,tn]=o.useState(null),Gn=!!(U?.fromRuntime&&Ee?.given!==U.id);o.useEffect(()=>{if(!U?.fromRuntime||!je||!R)return;let e=!0;return(async()=>{let r="";for(let l=0;l<4&&e;l+=1)try{const b=await Xs({agentBaseUrl:R,agentId:i,uid:U.id,token:He});e&&tn({given:U.id,thread:{...U,fromRuntime:!1,messages:b}});return}catch(b){r=b instanceof Error?b.message:String(b),await new Promise(u=>setTimeout(u,1500))}e&&tn({given:U.id,thread:{id:as(),messages:[],onStarted:U.onStarted},said:wn.notOpened(r)})})(),()=>{e=!1}},[U?.id,U?.fromRuntime,je,R,i,He]);const nn=U?.fromRuntime?Ee?.given===U.id?Ee.thread:void 0:U,Et=o.useMemo(()=>g?Fs({agentId:v?.specId??i,instructions:is(j,se?.instructions),model:ot||void 0,inference:Dt,frontendTools:_e,subagents:m&&v?xn(m.team,v.id):Cn(j),sharing:m?.sharing,onSubagentEvent:e=>ks.getState().appendSubagentEvent(e),modeEffect:se?.modeEffect}):R!==void 0?{type:"ag-ui",endpoint:je?`${R}/api/v1/apps/agents/${encodeURIComponent(i)}/ag-ui/`:`${R}/api/v1/ag-ui/${i}/`,...je&&He?{authToken:He}:{},...je?{uiSocket:`${R.replace(/^http/,"ws")}/api/v1/apps/ui`}:{},agentId:i,configEndpoint:`${R}/api/v1/configure`,enableConfigQuery:!0}:void 0,[i,g,Dt,v,_e,m,j,se,ot,R,je,He]),st=rs(!g,Et?.type==="ag-ui"?Et.configEndpoint:void 0,void 0,i),We=ls(),at=cs(i),[on,sn]=o.useState(void 0),[Kn,Yn]=o.useState(void 0);o.useEffect(()=>{if(g||R===void 0)return;let e=!1;return fetch(`${R}/api/v1/configure/models?agent_id=${encodeURIComponent(i)}`).then(r=>r.ok?r.json():null).then(r=>{e||(sn(r?ds(r):[]),Yn(r?us(r):void 0))}).catch(()=>{e||sn([])}),()=>{e=!0}},[R,i,g]);const qn=o.useMemo(()=>fs(on,()=>Object.values(ps).filter(e=>e.available&&ms(e)).map(e=>({id:e.id,name:e.name,provider:e.provider}))),[on]),an=o.useMemo(()=>{const e=st.data?.builtinTools??[],r=new Set(e.map(l=>l.name));return{runtime:e,frontend:_e.filter(l=>!r.has(l.name)).map(l=>({id:l.name,name:l.name}))}},[st.data?.builtinTools,_e]),rn=o.useMemo(()=>new Set((We.data?.skills??[]).filter(e=>e.status==="enabled"||e.status==="loaded").map(e=>e.id)),[We.data]),Jn=o.useCallback(async e=>{qt(e),!(g||R===void 0)&&await fetch(`${R}/api/v1/configure/inference/provider`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({model:e})}).catch(()=>{})},[R,g]),ln=p?.promptPlacement==="bottom-chat",Qn=p?.promptPlacement==="floating",Ie=p?.promptPlacement==="top",Ve=p?.hidePrompt===!0||y.hidePrompt===!0,Xn={onSend:()=>{pe(Yt)},input:Yt,setInput:jt,focusTrigger:be||Zt?(be?.nonce??0)+Zt:void 0,placement:Qn||Y==="floating"||Y==="floating-top"||Y==="floating-bottom"?"floating":"docked",floatingAnchor:Y==="floating-top"?"top":"bottom",isLoading:F,onStop:()=>n.viewControls.stop?.(),placeholder:Kt??K,typingSuggestions:vt.map(e=>e.text),suggestions:et,disableInputPrompt:nt,connectionConfirmed:!nt,padding:Ie||Y==="floating-top"||Y==="floating-bottom"||Y==="docked-top"?2:3,promptVariant:"lexical",autoFocus:p?.autoFocusPrompt??!0,mentionableAgents:An,promptCommands:Rn,headerContent:zn.length>0?t.jsx(Mt,{slot:Re.inpromptMenu,props:{workspace:n}}):void 0,footerExtras:Nn.length>0?t.jsx(Mt,{slot:Re.promptAction,props:{workspace:n}}):void 0,showAgentsMenu:!N,showInlineAgentsMenu:!1,agents:Bn,selectedAgentId:T,onSelectAgent:e=>m?.select(e),showTokenUsage:y.showTokenUsage??p?.showTokenUsage??!0,showContextRing:!0,agentUsage:Fn??void 0,showModelSelector:!N,models:qn,decisions:Kn,selectedModel:ot,onModelSelect:e=>{Jn(e)},showToolsMenu:!N,availableTools:an.runtime,availableFrontendTools:an.frontend,mcpServers:st.data?.mcpServers??[],mcpStatusData:y.mcpStatusData??void 0,showSkillsMenu:!N,skills:We.data?.skills??[],skillsLoading:We.isLoading,enabledSkills:rn,onToggleSkill:e=>rn.has(e)?at.disableSkill(e):at.enableSkill(e),onToggleAllSkills:(e,r)=>e.forEach(l=>r?at.enableSkill(l):at.disableSkill(l)),codemodeEnabled:y.codemodeEnabled??!1,onToggleCodemode:y.onToggleCodemode,isA2AProtocol:!1,hasConfigData:!!st.data,hasSkillsData:!!We.data},cn=ee[0]?.value.Component,It=Ae[0]?.value.Component,it=cn?t.jsx(cn,{workspace:n,composer:Xn}):null,dn=I.length>0&&p?.showSurfaceSelector!==!1?t.jsx(ia,{surfaces:I.map(e=>e.value),active:E?.surfaceId??he?.surfaceId??X,onChange:Q,workspace:n}):null,un=t.jsxs(t.Fragment,{children:[I.map(e=>{const r=e.value,l=E?.surfaceId===r.surfaceId;return l||J.current.has(r.surfaceId)||De(r,n)?(J.current.add(r.surfaceId),t.jsx(f,{sx:l?{flex:"1 1 0",minWidth:0,minHeight:0}:{position:"absolute",inset:0,visibility:"hidden",pointerEvents:"none",zIndex:-1},children:t.jsx(gs,{load:r.load,props:{surfaceId:r.surfaceId,workspace:n},fallback:t.jsxs(Ot,{children:["Loading ",r.title,"…"]}),errorFallback:u=>t.jsxs(Ot,{children:[r.title," failed to load: ",u.message]})})},r.surfaceId)):null}),!E&&he?t.jsx(f,{flex:"1 1 0",minWidth:0,minHeight:0,children:t.jsxs(Ot,{children:["Starting ",he.title,"…"]})}):null]}),fn=t.jsx(t.Fragment,{children:t.jsxs(f,{flex:Ie&&E?"0 0 34%":"1 1 0",maxWidth:Ie&&E?460:void 0,minWidth:0,minHeight:0,display:"flex",flexDirection:"column",borderLeft:E?"1px solid":void 0,borderColor:"border.default",position:"relative",children:[y.errorBanner?t.jsx(f,{flexShrink:0,px:3,py:2,fontSize:1,borderBottom:"1px solid",bg:y.errorBanner.variant==="warning"?"attention.subtle":"danger.subtle",color:y.errorBanner.variant==="warning"?"attention.fg":"danger.fg",borderColor:y.errorBanner.variant==="warning"?"attention.muted":"danger.muted",children:y.errorBanner.message}):null,Ee?.said&&Ee.given===U?.id?t.jsx(W,{as:"p",role:"status",sx:{m:0,px:3,py:2,fontSize:1,color:"fg.muted"},children:Ee.said}):null,t.jsx(f,{flex:"1 1 auto",minHeight:0,display:"flex",children:Gn?t.jsx(W,{as:"p",role:"status",sx:{m:0,p:3,fontSize:1,color:"fg.muted"},children:wn.opening}):t.jsx(hs,{themeVariant:p?.themeVariant,themeOverrides:p?.themeOverrides,colorMode:p?.colorMode,thread:nn,disabled:nt,disableReason:Kt,protocol:Et,frontendTools:g?void 0:y.frontendTools,initialModel:ot||void 0,title:N?.name??v?.name??j?.name??i,description:N?.welcome??j?.description,brandIcon:N?.face?t.jsx(ea,{face:N.face,size:20,state:le}):t.jsx(yt,{size:20}),headerContent:N&&!kt?t.jsx(ta,{state:le}):void 0,emptyState:{icon:N?.face?t.jsx("span",{"aria-hidden":!0,style:{fontSize:jn,lineHeight:1},children:t.jsx(In,{face:N.face,size:jn})}):t.jsx(yt,{size:48}),title:N?.name??v?.name??j?.name??i,...m&&v?{sections:[{group:m.team.name,icon:t.jsx(Tn,{size:48}),title:m.team.name,subtitle:m.team.description},{group:v.name,icon:t.jsx(yt,{size:32}),title:v.name,subtitle:j?.description}]}:null},suggestions:Ie||ie||p?.suggestionLabels===!1?[]:et,showHeader:!p?.hideHeader&&!!It,headerButtons:{showNewChat:p?.headerButtons?.newChat??!1,showClear:p?.headerButtons?.clear??!1},renderHeader:It?e=>t.jsx(It,{workspace:n,header:e}):void 0,showInformation:!0,headerActions:t.jsxs(f,{display:"inline-flex",alignItems:"center",gap:2,children:[n.chatHeaderActions,_n.length>0?t.jsx(Mt,{slot:Re.chatHeader,props:{workspace:n}}):null,t.jsx(bs,{icon:$?xs:Ss,"aria-label":$?"Exit full screen":"Enter full screen",variant:"invisible",size:"small",onClick:()=>{ge(!1),ht()},sx:Fe?{"@keyframes dla-fullscreen-hint":{"0%, 100%":{opacity:1},"50%":{opacity:.4}},"&&":{bg:`color-mix(in srgb, ${c.primary} 16%, transparent)`,boxShadow:`inset 0 0 0 1.5px ${c.primary}`,animation:`dla-fullscreen-hint ${aa}ms ease-in-out infinite`},"@media (prefers-reduced-motion: reduce)":{"&&":{animation:"none"}}}:void 0})]}),showInput:!1,onSendReady:ve,notebookToolSurfacesId:E?void 0:n.surfaceId,showTurnFooter:y.showTokenUsage??p?.showTokenUsage??!0,onContextSnapshot:Ue,onLoadingChange:Qe,onItemsChange:z,onDisplayItemsChange:de,enableStreaming:!0},nn?.id)}),ln&&!Ve?it:null]})}),pn=p?.suggestionLabels!==!1&&et.length>0?t.jsx(f,{"aria-label":s.suggestedPrompts,display:"flex",flexWrap:"wrap",gap:2,px:2,pb:"6px",children:et.map(e=>t.jsx(f,{as:"button",type:"button",title:e.message,disabled:F||nt,onClick:()=>{pe(e.message)},appearance:"none",font:"inherit",fontSize:0,fontWeight:"semibold",lineHeight:1.25,px:"10px",py:"5px",width:Sn,flex:`0 0 ${Sn}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(vs,{title:e.title,maxWidth:"100%",sx:{minWidth:0},children:e.title})},e.title))}):null,mn=h?t.jsx(f,{flex:"0 0 auto",px:3,py:2,borderTop:"1px solid",borderColor:"border.default",bg:"canvas.subtle",fontSize:1,maxHeight:"40%",overflowY:"auto",children:h}):null;return t.jsxs(f,{ref:me,sx:{height:"100%",minHeight:0,display:"flex",flexDirection:"column",position:"relative",...$?{bg:"canvas.default"}:null,...$&&!gt.current?{position:"fixed",top:bt,right:0,bottom:0,left:0,height:"auto",zIndex:1e3}:null},children:[ie?t.jsx(ie.Component,{workspace:n,editors:un,hasEditor:!!E,transcript:fn,prompt:Ve?null:it,chips:Ve?null:pn,picker:dn,transient:mn}):t.jsxs(t.Fragment,{children:[Ie&&!Ve?t.jsxs(f,{flex:"0 0 auto",borderBottom:"1px solid",borderColor:"border.default",children:[it,pn]}):null,dn,t.jsxs(f,{flex:"1 1 auto",minHeight:0,display:"flex",position:"relative",children:[un,fn]}),mn,ln||Ve||Ie?null:it]}),wt?t.jsx(f,{position:"absolute",inset:0,zIndex:5,bg:"canvas.default",display:"flex",flexDirection:"column",minHeight:0,children:t.jsx(zs,{agentName:v?.name??j?.name,sandboxStillRuns:g,temporary:Gt,onSignedIn:()=>ys.getState().clear()})}):null]})}function ia({surfaces:n,active:s,onChange:c,workspace:a}){const d=[...n].sort((h,x)=>(h.order??100)-(x.order??100));return t.jsxs(f,{flex:"0 0 auto",display:"flex",alignItems:"center",gap:2,px:3,py:2,borderBottom:"1px solid",borderColor:"border.default",children:[t.jsx(W,{sx:{fontSize:0,color:"fg.muted"},children:"Beside the chat"}),t.jsxs($t,{"aria-label":"Editor beside the chat",size:"small",children:[t.jsx($t.Button,{selected:s===X,onClick:()=>c(X),children:"Chat"}),d.map(h=>{const x=De(h,a),C=x?void 0:h.unavailableReason?.(a)??"Not available right now";return t.jsx($t.Button,{selected:s===h.surfaceId,"aria-disabled":!x,title:C??h.title,leadingIcon:h.icon,onClick:()=>{x&&c(h.surfaceId)},children:h.title},h.surfaceId)})]})]})}function Ot({children:n}){return t.jsx(f,{height:"100%",display:"flex",alignItems:"center",justifyContent:"center",color:"fg.muted",fontSize:1,px:3,textAlign:"center",children:n})}export{da as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a_ as N,a$ as U,b0 as C,x as I,b1 as L,r as u,b2 as T,b3 as v,b4 as j}from"../datalayer-app-main.js";function x(l){const n=l?.app_spec;if(!n||typeof n!="object")return;const e=l?.app_instance??{},t=typeof e.app_uid=="string"&&e.app_uid?e.app_uid:void 0,r=typeof e.deployment_uid=="string"&&e.deployment_uid?e.deployment_uid:void 0;return{appSpec:n,...t?{appUid:t}:{},...r?{deploymentUid:r}:{}}}const B="jupyter-tutor";function h(){const n=N().getConfig(U),e=n?.datalayerAgentSpecId??B,t=n?.datalayerCreatePayload,r=n?.datalayerVisitors,E=n?.datalayerKept,i=r?.url??E?.url,a=C(),s=I(a?.target??L)==="datalayer",p=t?.app_spec?.id,[c,d]=u.useState({});u.useEffect(()=>{if(d({}),!r||!s)return;if(typeof p!="string"||!p){d({error:"A conversation without an account runs an application: none was given."});return}let y=!0;return T(r,p).then(()=>{y&&d({ready:!0})}).catch(_=>{y&&d({error:_ instanceof Error?_.message:String(_)})}),()=>{y=!1}},[r?.url,r?.app,r?.inferenceUrl,p,s]);const A=typeof t?.name=="string"?t.name:e,g=t?.transport==="ag-ui"||t?.transport==="vercel-ai"?t.transport:void 0,b=u.useMemo(()=>({name:A,...g?{protocol:g}:{},agentSpecId:e,model:v[e]?.model,description:v[e]?.description,...t?{createPayload:t}:{}}),[e,A,g,t]),S=u.useMemo(()=>x(t),[t]),{runtime:o,status:m,error:f}=j({agentSpecId:e,agentConfig:b,...S?{appLaunch:S}:{},variant:"cloud-pydanticai",autoStart:s&&!i,autoCreateAgent:s&&!i});return u.useEffect(()=>{if(!(!a||!s)){if(r){if(c.error){a.setState("error",c.error);return}if(!c.ready){a.setState("starting");return}}if(i){a.report({variant:"datalayer",sandbox_running:!1,agent_base_url:i});return}if(f){a.setState("error",f);return}if(!o?.jupyterBaseUrl){a.setState(m==="error"?"error":"starting");return}a.report({variant:"datalayer",sandbox_running:!!o.serviceManager,jupyter_url:o.jupyterBaseUrl,jupyter_token:o.serviceManager?.serverSettings?.token,kernel_id:o.kernelId,agent_base_url:o.agentBaseUrl})}},[a,s,o,m,f,i,r,c]),null}export{h as DatalayerAgentBridge,h as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{K as o,r as t}from"../datalayer-app-main.js";import{h as e,i}from"./JupyterLexicalExtension-CYnZrelh.js";import"./NotebookSkeleton-HdM76lOj.js";import"./Avatar-DbU3YP4x.js";import"./url-DuKx0yk0.js";import"./isSymbol-BLtK9CV6.js";import"./toNumber-B1wj8-wx.js";import"./VideoIcon-BjP_LDa4.js";import"./LinkIcon-DUI0jw25.js";import"./Toolbar-6Hdi_m3T.js";import"./KebabHorizontalIcon-CXDXtkuL.js";import"./ArrowUpIcon-BUCpIXDR.js";import"./SortDescIcon-CS4EzHeS.js";import"./PaintbrushIcon-CLU8RilX.js";import"./PrismCss-CcU1ChRk.js";import"./Output-2KxoKu5F.js";import"./index-BvvaLLhn.js";import"./hoverbox-CStlKQWE.js";import"./index-BYQwy0Zx.js";import"./index-BJ7Yskx5.js";import"./color-CG7_7V2-.js";import"./isEqual-BybBNsZK.js";import"./defaultLocale-5voVPcsN.js";import"./index-DbMBnR4l.js";import"./index-B3WvcNQa.js";import"./RestartIcon-Ca6_HoK0.js";import"./LexicalToolRegistry-CXLITkMD.js";const K=()=>{const[r]=o();return t.useEffect(()=>i(r),[r]),null};export{e as INSERT_YOUTUBE_COMMAND,K as YouTubePlugin,K as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{sY as h,dO as i,dP as u,dU as l,aY as E,dT as d,dV as p}from"../datalayer-app-main.js";import{sZ as V,s_ as b,dR as z,dS as L,s$ as F,t0 as G,t1 as P,t2 as k,t3 as $,t4 as q,t5 as x,t6 as H,t7 as J,t8 as j,t9 as B,ta as X,tb as Z,tc as Q,td as ee,te,tf as se,tg as re,th as oe,ti as ae,tj as ne,tk as ie,tl as ue,tm as ce,tn as Se,dW as le,dX as de,dY as ge,to as me,tp as Ee,tq as _e,tr as Te}from"../datalayer-app-main.js";const A=()=>location.hostname.startsWith("dev")||location.hostname.startsWith("localhost"),_=()=>h(),T=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)}),v=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 N(e){return u(v,e)}const g=i((e,a)=>({surveys:void 0,growthUrl:d.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 E({url:`${r}/api/growth/v1/surveys`,method:"GET",token:s});if(t.success&&t.surveys){const c=t.surveys.map(n=>T(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 E({url:`${t}/api/growth/v1/surveys`,method:"POST",body:{name:s,form:r},token:c});if(o.success&&o.survey){const n=T(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}}}));d.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}`),g.setState({growthUrl:s})}});function W(e){return u(g,e)}const m=e=>({id:_(),type:"team",handle:e,name:e,description:e+" description.",public:!1,members:[],creationDate:new Date,organization:{id:_()},setMembers:s=>{}}),R=m("Team 1"),O=m("Team 2"),I=m("Team 3"),w=[R,O,I],y=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(y,e)}const M=i((e,a)=>({version:"",setVersion:s=>{s&&!a().version&&e(r=>({version:s}))},isDev:A(),core:d.getState,iam:l.getState,layout:p.getState,organization:v.getState,success:g.getState,team:y.getState}));function D(e){return u(M,e)}export{V as AGENTS_VIEW,b 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,$ as NAVIGATION_VIEW_HOMES,q as RESERVATION_WARNING_TIME_MS,x as SESSION_COOKIES,H as SESSION_LOCAL_STORAGE_KEYS,J as SESSION_OWNER_KEY,j as SETTINGS_VIEW,B as TUTOR_VIEW,X as claimSessionState,d as coreStore,Z as forgetSessionState,Q as getOtelConsumeUrl,ee as getStoredToken,te as getStoredUser,l as iamStore,se as isRememberableRoute,re as isShellNeutralRoute,p as layoutStore,oe as loadRefreshTokenFromCookie,ae as navigationStore,v as organizationStore,ne as pageConfiguration,ie as profileStore,ue as registerSessionState,M as runStore,ce as storeToken,Se as storeUser,g as surveysStore,y as teamStore,le as useCoreStore,de as useIAMStore,ge as useLayoutStore,me as useNavigationStore,N as useOrganizationStore,Ee as useProfile,_e as useProfileStore,D as useRunStore,W as useSurveysStore,C as useTeamStore,Te as viewForRoute};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r,u as n,bq as s,bn as a,br as i,bp as l,U as b}from"../datalayer-app-main.js";import{N as p}from"./NotebookToolbar-DMKCe3c2.js";import"./RepoPushIcon-Cm8g9NuL.js";import"./Toolbar-6Hdi_m3T.js";import"./KebabHorizontalIcon-CXDXtkuL.js";const e=p.cellType+100;function c({notebookId:o}){const t=n().selectNotebookAdapter(o)?.kernel??null;return r.jsx(s,{kernel:t,bordered:!1})}function k(o){return[{key:"loop-kernel-indicator-spacer",type:"spacer",order:e-1},{key:"loop-kernel-indicator",type:"custom",order:e,group:"kernel",render:()=>r.jsx(c,{notebookId:o})}]}const E=a({name:i,contributes:[l(b,{items:({editorId:o})=>k(o)},{id:"toolbar",order:100})]});export{E as NotebookToolbarPlugin,E as default};
|