@datalayer/agent-runtimes 1.5.102 → 1.5.106
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/AgentInspector-CuvRXcQ7.js +1 -0
- package/dist-embed/chunks/{AgentInspectorDialog-Cf8jT6kR.js → AgentInspectorDialog-CXZGyBXE.js} +1 -1
- package/dist-embed/chunks/{CellSidebarExtension-9Xkl4nS1.js → CellSidebarExtension-BMT21AEe.js} +16 -16
- package/dist-embed/chunks/{DeckComponent-LPAk473I.js → DeckComponent-CDcvO2c7.js} +2 -2
- package/dist-embed/chunks/{DocumentView-CSX_hWLV.js → DocumentView-Bd505ec3.js} +1 -1
- package/dist-embed/chunks/EphemeralDocument-Cb738Fb7.js +1 -0
- package/dist-embed/chunks/{EphemeralNotebook-C3e2FrSq.js → EphemeralNotebook-ayRs87hn.js} +1 -1
- package/dist-embed/chunks/ExcalidrawComponent-zLN6lMMh.js +1 -0
- package/dist-embed/chunks/ExcalidrawModal-DmayKvhz.js +1 -0
- package/dist-embed/chunks/{JupyterLexicalExtension-Cq2BuRs0.js → JupyterLexicalExtension-DS8J9r_J.js} +5 -5
- package/dist-embed/chunks/{KernelVariables-BmWOn-n_.js → KernelVariables-JJah7mez.js} +1 -1
- package/dist-embed/chunks/NotebookToolSurfaces-Sjfasvqp.js +1 -0
- package/dist-embed/chunks/{NotebookView-yvVgAED6.js → NotebookView-BF9IDoeS.js} +1 -1
- package/dist-embed/chunks/{Output-DF1wzbCD.js → Output-UPeDwjyI.js} +1 -1
- package/dist-embed/chunks/{SandboxDetailsDialog-Bue8qhTm.js → SandboxDetailsDialog-BbFzOjmh.js} +1 -1
- package/dist-embed/chunks/WidgetVariableView-D4QMzgOL.js +1 -0
- package/dist-embed/chunks/{YouTubePlugin-aO-jWjdh.js → YouTubePlugin-C7CGtLzz.js} +1 -1
- package/dist-embed/chunks/abnfDiagram-VCTEODGH-B71U5XYF.js +1 -0
- package/dist-embed/chunks/abnfDiagram-VCTEODGH-Bc-fKn8l.js +1 -0
- package/dist-embed/chunks/abnfDiagram-VCTEODGH-HXaofwo9.js +1 -0
- package/dist-embed/chunks/advancedFormat-CshdkaWz.js +1 -0
- package/dist-embed/chunks/{ar-SA-G6X2FPQ2-DZ6ta9d0.js → ar-SA-G6X2FPQ2-CCIrNclv.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-CFyAMJIx.js → architectureDiagram-5GKGNRK7-BQB0U0rT.js} +2 -2
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-BbVwTk8b.js → architectureDiagram-5GKGNRK7-C2AE1F2T.js} +2 -2
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-DeCj6zMe.js → architectureDiagram-5GKGNRK7-CjuFI4z9.js} +2 -2
- package/dist-embed/chunks/az-AZ-76LH7QW2-CSTNZhVp.js +1 -0
- package/dist-embed/chunks/{bg-BG-XCXSNQG7-B7QcVEVY.js → bg-BG-XCXSNQG7-DsDH3Vku.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-868be97b-CfRaagn_.js → blockDiagram-868be97b-B68KiGkE.js} +3 -3
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-BjRmv4QH.js → blockDiagram-I7D4REHJ-4XoG2wPO.js} +2 -2
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-SufaJtAi.js → blockDiagram-I7D4REHJ-BGPlI9Uq.js} +2 -2
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-kguVnun5.js → blockDiagram-I7D4REHJ-Cd5dHGkJ.js} +2 -2
- package/dist-embed/chunks/{bn-BD-2XOGV67Q-TxN1ubr7.js → bn-BD-2XOGV67Q-CGa5jk8k.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-3f4bdde3-FyOk3LSs.js → c4Diagram-3f4bdde3-BuW3MIkw.js} +2 -2
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-SgQrn2PO.js → c4Diagram-7LVT6UL2-DCfGVCNK.js} +2 -2
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-Cf2_xw9_.js → c4Diagram-7LVT6UL2-DgPxihhe.js} +2 -2
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-D3Vjz3Z8.js → c4Diagram-7LVT6UL2-SYqo_8ln.js} +2 -2
- package/dist-embed/chunks/{ca-ES-6MX7JW3Y-Dqf9cvaK.js → ca-ES-6MX7JW3Y-DPni6_r-.js} +1 -1
- package/dist-embed/chunks/channel-BkDTnYd-.js +1 -0
- package/dist-embed/chunks/{chunk-2Q5K7J3B-BJrhmygH.js → chunk-2Q5K7J3B-C6_NDlXz.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-DuPgZFdB.js → chunk-2Q5K7J3B-CXYPY0Ns.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-DBdUm--2.js → chunk-2Q5K7J3B-DAZwxp62.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-C1Bpa3VF.js → chunk-5VM5RSS4-BE7Xw1qR.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-B-UBqvd2.js → chunk-5VM5RSS4-CkLbaiHB.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-nQugzoqo.js → chunk-5VM5RSS4-lyh9Xnd2.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-D3zJwrkg.js → chunk-F27PBJKO-C3nbzFWn.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-DYiXXgT1.js → chunk-F27PBJKO-Db7_X2ml.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-MI-KHY-9.js → chunk-F27PBJKO-DgaijeLE.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-i4q8sDDB.js → chunk-IMKFNOWR-C0voe75K.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-BbylDqs_.js → chunk-IMKFNOWR-CGh3mc7U.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-DJk_fAZn.js → chunk-IMKFNOWR-wq8-ajoP.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-BSzyfwPR.js → chunk-JWPE2WC7-BnJZ2J3A.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-8ggfUh7n.js → chunk-JWPE2WC7-C7Vh66mu.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-D1PH2kGj.js → chunk-JWPE2WC7-IsI16_x9.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-DhZnEisk.js → chunk-POPQ4Y6H-C74YP19P.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-pegurE5S.js → chunk-POPQ4Y6H-Jfdu8NYy.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-CKubmyGa.js → chunk-POPQ4Y6H-igzMuKdy.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-BF112NUO.js → chunk-SVP7TREG-BRTUczs-.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-D5yRz6xm.js → chunk-SVP7TREG-D5GVP8mx.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-CoZRhamu.js → chunk-SVP7TREG-V_21qG9f.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-XF3ekUig.js → chunk-TICWLB2K-C64kdJiT.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-v9-jDBp6.js → chunk-TICWLB2K-COF4m2Q-.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-Bs5ffYyR.js → chunk-TICWLB2K-CmvMmjES.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-D_FJqGi2.js → chunk-XXDRQBXY-CfGL0WH9.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-l6VvHymR.js → chunk-XXDRQBXY-ClqYjHLS.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-D9b9c_ic.js → chunk-XXDRQBXY-p7YSmJfy.js} +1 -1
- package/dist-embed/chunks/classDiagram-ZZMXUADV-2HYBPww6.js +1 -0
- package/dist-embed/chunks/classDiagram-ZZMXUADV-BLOgen3q.js +1 -0
- package/dist-embed/chunks/classDiagram-ZZMXUADV-DanFMb8A.js +1 -0
- package/dist-embed/chunks/classDiagram-f62afe4f-CNTk_RA5.js +2 -0
- package/dist-embed/chunks/classDiagram-v2-604399ef-BPXwuOhe.js +2 -0
- package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-2HYBPww6.js +1 -0
- package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-BLOgen3q.js +1 -0
- package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-DanFMb8A.js +1 -0
- package/dist-embed/chunks/cose-bilkent-JH36ORCC-BMDoRbpo.js +1 -0
- package/dist-embed/chunks/cose-bilkent-JH36ORCC-C2S2DIKI.js +1 -0
- package/dist-embed/chunks/cose-bilkent-JH36ORCC-DSHzx2BI.js +1 -0
- package/dist-embed/chunks/{createText-aed3d8b3-Dw977TwJ.js → createText-aed3d8b3-BxsX7KcT.js} +1 -1
- package/dist-embed/chunks/{cs-CZ-2BRQDIVT-CwlCWt4T.js → cs-CZ-2BRQDIVT-C2VJoA4e.js} +1 -1
- package/dist-embed/chunks/cynefinDiagram-5FMLGOSQ-CXpjlIcM.js +62 -0
- package/dist-embed/chunks/cynefinDiagram-5FMLGOSQ-DNkIHI2P.js +62 -0
- package/dist-embed/chunks/cynefinDiagram-5FMLGOSQ-Und8rlmR.js +62 -0
- package/dist-embed/chunks/d3-color-Jd8hXty2.js +1 -0
- package/dist-embed/chunks/d3-hierarchy-Cx6senVY.js +1 -0
- package/dist-embed/chunks/d3-interpolate-BVJucgkN.js +1 -0
- package/dist-embed/chunks/d3-scale-B-wnA6MO.js +1 -0
- package/dist-embed/chunks/d3-scale-chromatic-BM1YEV1K.js +1 -0
- package/dist-embed/chunks/{da-DK-5WZEPLOC-BYQLzbDz.js → da-DK-5WZEPLOC-B-8uCnDZ.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-Bj78I_3y.js → dagre-GXQ25YYZ-B8HVheVA.js} +2 -2
- package/dist-embed/chunks/{dagre-GXQ25YYZ-BvxZGlAG.js → dagre-GXQ25YYZ-BLRf1T-i.js} +2 -2
- package/dist-embed/chunks/{dagre-GXQ25YYZ-BiceTC0E.js → dagre-GXQ25YYZ-DOA3t5IT.js} +2 -2
- package/dist-embed/chunks/dayjs.min-u3zuoSR8.js +1 -0
- package/dist-embed/chunks/{de-DE-XR44H4JA-CdWGWxSf.js → de-DE-XR44H4JA-mVAvUgBj.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-Cmb9Ykqm.js → diagram-S7CK7UJ4-D9c-d1DT.js} +2 -2
- package/dist-embed/chunks/{diagram-S7CK7UJ4-DMHeQr8F.js → diagram-S7CK7UJ4-DwDc_czt.js} +2 -2
- package/dist-embed/chunks/{diagram-S7CK7UJ4-a4FArSaJ.js → diagram-S7CK7UJ4-NIp8rRdr.js} +2 -2
- package/dist-embed/chunks/diagram-UQ7AKVKN-CZK18sap.js +41 -0
- package/dist-embed/chunks/diagram-UQ7AKVKN-DhMlTIH1.js +41 -0
- package/dist-embed/chunks/diagram-UQ7AKVKN-DtYHVrIv.js +41 -0
- package/dist-embed/chunks/{diagram-VSXAHHWV-D3lurhxI.js → diagram-VSXAHHWV-BbVAIuUE.js} +2 -2
- package/dist-embed/chunks/{diagram-VSXAHHWV-BsxdgIBU.js → diagram-VSXAHHWV-CClL-qVb.js} +2 -2
- package/dist-embed/chunks/{diagram-VSXAHHWV-BzwWsSpj.js → diagram-VSXAHHWV-CVuj7Wwr.js} +2 -2
- package/dist-embed/chunks/diagram-VX7I27RA-CHGaftMB.js +24 -0
- package/dist-embed/chunks/diagram-VX7I27RA-DUtes5TO.js +24 -0
- package/dist-embed/chunks/diagram-VX7I27RA-W9zdS7er.js +24 -0
- package/dist-embed/chunks/diagram-Z3DM3KII-CcvMwZF5.js +24 -0
- package/dist-embed/chunks/diagram-Z3DM3KII-JLzwAzwv.js +24 -0
- package/dist-embed/chunks/diagram-Z3DM3KII-nooaP3A_.js +24 -0
- package/dist-embed/chunks/ebnfDiagram-PWID7BFC-DwaCwxtV.js +1 -0
- package/dist-embed/chunks/ebnfDiagram-PWID7BFC-QUuH7KoJ.js +1 -0
- package/dist-embed/chunks/ebnfDiagram-PWID7BFC-paF78xx4.js +1 -0
- package/dist-embed/chunks/edges-b2856ca0-Cw6uMsAp.js +4 -0
- package/dist-embed/chunks/{el-GR-BZB4AONW-TO3tEZdB.js → el-GR-BZB4AONW-BdoQC7zI.js} +1 -1
- package/dist-embed/chunks/{erDiagram-5d81789a-D3blvZNR.js → erDiagram-5d81789a-DvA05QFt.js} +3 -3
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-HUP46o_S.js → erDiagram-RLTQ6QDP-B8yauwFZ.js} +5 -5
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-BvRjMgFJ.js → erDiagram-RLTQ6QDP-Bl7uSMrm.js} +5 -5
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-pCbnjfMk.js → erDiagram-RLTQ6QDP-DZBeHxcW.js} +5 -5
- package/dist-embed/chunks/{es-ES-U4NZUMDT-BKZIANpq.js → es-ES-U4NZUMDT-mSL14Hu6.js} +1 -1
- package/dist-embed/chunks/{eu-ES-A7QVB2H4-vz5ecl6y.js → eu-ES-A7QVB2H4-i8MVUvvA.js} +1 -1
- package/dist-embed/chunks/{fa-IR-HGAKTJCU-Dmmoro5p.js → fa-IR-HGAKTJCU-BfG5w5pm.js} +1 -1
- package/dist-embed/chunks/{fi-FI-Z5N7JZ37-4bWurBmp.js → fi-FI-Z5N7JZ37-CxjOtOw5.js} +1 -1
- package/dist-embed/chunks/{flowDb-185abca5-DzeO696Q.js → flowDb-185abca5-CZQPmzTd.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-1629c991-BCS_QkN2.js → flowDiagram-1629c991-DVkQIanX.js} +3 -3
- package/dist-embed/chunks/{flowDiagram-HODETNUW-C7KqgwLg.js → flowDiagram-HODETNUW-B051mCrB.js} +3 -3
- package/dist-embed/chunks/{flowDiagram-HODETNUW-CObZVANE.js → flowDiagram-HODETNUW-CIxGkvY2.js} +3 -3
- package/dist-embed/chunks/{flowDiagram-HODETNUW-7NyW99NE.js → flowDiagram-HODETNUW-nx8wz3GE.js} +3 -3
- package/dist-embed/chunks/flowDiagram-v2-1d953310-BajQh2l6.js +1 -0
- package/dist-embed/chunks/{flowchart-elk-definition-6df44142-72x8aEiK.js → flowchart-elk-definition-6df44142-DVsdecvJ.js} +2 -2
- package/dist-embed/chunks/{fr-FR-RHASNOE6-QYoMYddl.js → fr-FR-RHASNOE6-Dx18-mdk.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-3b0b3873-BsGIi6q0.js → ganttDiagram-3b0b3873-B_Ze5xJT.js} +4 -4
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-Cm2jOWpZ.js → ganttDiagram-EL5Y4UJY-BNa2jv7L.js} +3 -3
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-Bmj6A7sI.js → ganttDiagram-EL5Y4UJY-DWOvMpi_.js} +3 -3
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-QZMrDtOa.js → ganttDiagram-EL5Y4UJY-Ix5W25h0.js} +3 -3
- package/dist-embed/chunks/gitGraphDiagram-WWUBYQGX-CY0V5PYj.js +106 -0
- package/dist-embed/chunks/gitGraphDiagram-WWUBYQGX-CieNMLLD.js +106 -0
- package/dist-embed/chunks/gitGraphDiagram-WWUBYQGX-DtTUInJx.js +106 -0
- package/dist-embed/chunks/{gitGraphDiagram-f01e8bc2-C5glz__6.js → gitGraphDiagram-f01e8bc2-B7CTdpxh.js} +2 -2
- package/dist-embed/chunks/{gl-ES-HMX3MZ6V-CuWi9MKI.js → gl-ES-HMX3MZ6V-D0gZC3Qs.js} +1 -1
- package/dist-embed/chunks/{he-IL-6SHJWFNN-CZ7rDY29.js → he-IL-6SHJWFNN-BpsgumHA.js} +1 -1
- package/dist-embed/chunks/{hi-IN-IWLTKZ5I-BOtn2GYM.js → hi-IN-IWLTKZ5I-1U7gawIv.js} +1 -1
- package/dist-embed/chunks/{hu-HU-A5ZG7DT2-Da2fd7BW.js → hu-HU-A5ZG7DT2-zY5nzegx.js} +1 -1
- package/dist-embed/chunks/{id-ID-SAP4L64H-DygGPsGR.js → id-ID-SAP4L64H-p8kr2CI9.js} +1 -1
- package/dist-embed/chunks/{index-CDGGINfN.js → index-4SXYvuYi.js} +1 -1
- package/dist-embed/chunks/{index-9bae90f3-C6Xh0qGL.js → index-9bae90f3-_IqcZYff.js} +1 -1
- package/dist-embed/chunks/{index-B6ISkj2i.js → index-B9_Wb9MN.js} +1 -1
- package/dist-embed/chunks/index-BWTYs63X.js +1 -0
- package/dist-embed/chunks/{index-DIoOWi0w.js → index-BbLfaxiL.js} +2 -2
- package/dist-embed/chunks/{index-CMna4RvT.js → index-BeDw56-P.js} +1 -1
- package/dist-embed/chunks/{index-DUtVEK_h.js → index-Bi_Lrakd.js} +55 -55
- package/dist-embed/chunks/index-BqnIBWZ9.js +35 -0
- package/dist-embed/chunks/index-C0jxnCf_.js +1 -0
- package/dist-embed/chunks/{index-Gy_uosvT.js → index-C6p1fI_l.js} +1 -1
- package/dist-embed/chunks/{index-e62XL6B3.js → index-C7Y6qb5P.js} +41 -41
- package/dist-embed/chunks/index-CCwTAE5t.js +1 -0
- package/dist-embed/chunks/index-CEoN6Igz.js +1 -0
- package/dist-embed/chunks/index-CGywzy5S.js +2 -0
- package/dist-embed/chunks/index-CslfR-ws.js +1 -0
- package/dist-embed/chunks/index-D1WP6gqy.js +2 -0
- package/dist-embed/chunks/{index-BeA4XI1t.js → index-DTxyD1Cg.js} +1 -1
- package/dist-embed/chunks/index-Da0hjuSR.js +1 -0
- package/dist-embed/chunks/{index-ErZ9_T3y.js → index-DjEoMYXa.js} +12 -12
- package/dist-embed/chunks/{index-CF9HUHN8.js → index-Dy9evYbM.js} +1 -1
- package/dist-embed/chunks/index-Dz7T8mqj.js +6 -0
- package/dist-embed/chunks/index-LJsqLy5q.js +1 -0
- package/dist-embed/chunks/{index-B40K_78l.js → index-MIDt7IxB.js} +1 -1
- package/dist-embed/chunks/{index-DrXZebZS.js → index-VedUjmyH.js} +1 -1
- package/dist-embed/chunks/{index-fi_KzQoZ.js → index-lC26z37v.js} +1 -1
- package/dist-embed/chunks/index-n0wY5AOk.js +17 -0
- package/dist-embed/chunks/index-x4xjV1QS.js +1 -0
- package/dist-embed/chunks/infoDiagram-27XIBGKW-CjrU5YxR.js +2 -0
- package/dist-embed/chunks/infoDiagram-27XIBGKW-CygK1B8s.js +2 -0
- package/dist-embed/chunks/infoDiagram-27XIBGKW-y2jlnC74.js +2 -0
- package/dist-embed/chunks/{infoDiagram-a29d40f1-C84ltR9z.js → infoDiagram-a29d40f1-CxLYanuc.js} +2 -2
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-19vfXaSu.js → ishikawaDiagram-5VMMS53U-B4bKsqAA.js} +2 -2
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-BKwHxl_c.js → ishikawaDiagram-5VMMS53U-B_r8LPoh.js} +6 -6
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-DxmD4pNL.js → ishikawaDiagram-5VMMS53U-D3Gs1zXZ.js} +6 -6
- package/dist-embed/chunks/{it-IT-JPQ66NNP-C61ct2vR.js → it-IT-JPQ66NNP-CxNntye1.js} +1 -1
- package/dist-embed/chunks/{ja-JP-DBVTYXUO-DsuHLQzd.js → ja-JP-DBVTYXUO-D2eNPUzJ.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-BtJM0rtE.js → journeyDiagram-3NMN7TZE-CPKVw4E2.js} +2 -2
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-CRrrfAmB.js → journeyDiagram-3NMN7TZE-CdSVPmSP.js} +2 -2
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-D8vrwew7.js → journeyDiagram-3NMN7TZE-D5N9LfNb.js} +2 -2
- package/dist-embed/chunks/{journeyDiagram-95396277-91Yn8aB5.js → journeyDiagram-95396277-maRimpb1.js} +2 -2
- package/dist-embed/chunks/kaa-6HZHGXH3-B9Jduu1i.js +1 -0
- package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-lymWJChw.js → kab-KAB-ZGHBKWFO-D80S5Hke.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-BI3EeL_e.js → kanban-definition-UXKFOSKX-6OQwjjDA.js} +2 -2
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-BD4YKCh4.js → kanban-definition-UXKFOSKX-9X8AwfWh.js} +2 -2
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-DFA9oGiU.js → kanban-definition-UXKFOSKX-DNrz6elS.js} +2 -2
- package/dist-embed/chunks/kk-KZ-P5N5QNE5-dttniW7L.js +1 -0
- package/dist-embed/chunks/{km-KH-HSX4SM5Z-C__pm6qQ.js → km-KH-HSX4SM5Z-CwFUU4KI.js} +1 -1
- package/dist-embed/chunks/{ko-KR-MTYHY66A-D5yQS5Y4.js → ko-KR-MTYHY66A-6qkv_Dp9.js} +1 -1
- package/dist-embed/chunks/{ku-TR-6OUDTVRD-OIGj43yE.js → ku-TR-6OUDTVRD-C4Mq1URI.js} +1 -1
- package/dist-embed/chunks/{layout-C3jdOWbU.js → layout-Br9qZ7AW.js} +1 -1
- package/dist-embed/chunks/{layout-DWmuzni9.js → layout-CA7S7W88.js} +1 -1
- package/dist-embed/chunks/{layout-Dj_zgK51.js → layout-DvZ5NRsQ.js} +1 -1
- package/dist-embed/chunks/{lt-LT-XHIRWOB4-UGZ71aBo.js → lt-LT-XHIRWOB4-Cxuhrxpe.js} +1 -1
- package/dist-embed/chunks/{lv-LV-5QDEKY6T-LRIHo0NC.js → lv-LV-5QDEKY6T-2nfUsrY3.js} +1 -1
- package/dist-embed/chunks/{mermaid.core-DIIwHAlX.js → mermaid.core-CCCzTT5Y.js} +14 -14
- package/dist-embed/chunks/{mermaid.core-DF6jaPnW.js → mermaid.core-DRZOVBT3.js} +11 -11
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-D6u4H_xO.js → mindmap-definition-YA3MSWOX-BjThuhS8.js} +4 -4
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-fBVFRUCw.js → mindmap-definition-YA3MSWOX-DFMy0Zmf.js} +4 -4
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-3bvIJFMV.js → mindmap-definition-YA3MSWOX-H2yRQ6u8.js} +4 -4
- package/dist-embed/chunks/{mindmap-definition-e4c1d938-DbYGQCf5.js → mindmap-definition-e4c1d938-vjhx3bcZ.js} +4 -4
- package/dist-embed/chunks/{mr-IN-CRQNXWMA-BXO8TJMv.js → mr-IN-CRQNXWMA-HC9cqgFo.js} +1 -1
- package/dist-embed/chunks/my-MM-5M5IBNSE-0zP3tJ-6.js +1 -0
- package/dist-embed/chunks/{nb-NO-T6EIAALU-UnDxFcwr.js → nb-NO-T6EIAALU-B7KA5H1w.js} +1 -1
- package/dist-embed/chunks/{nl-NL-IS3SIHDZ-CdTeVF3c.js → nl-NL-IS3SIHDZ-BqrheHUd.js} +1 -1
- package/dist-embed/chunks/{nn-NO-6E72VCQL-nLVDeuAb.js → nn-NO-6E72VCQL-DjkBZa_a.js} +1 -1
- package/dist-embed/chunks/{oc-FR-POXYY2M6-CGDfJA5K.js → oc-FR-POXYY2M6-Cu_3WEeT.js} +1 -1
- package/dist-embed/chunks/{pa-IN-N4M65BXN-h3gZ9Ic4.js → pa-IN-N4M65BXN-5JMtBjML.js} +1 -1
- package/dist-embed/chunks/pegDiagram-XKGWAZYB-1AWuvKdx.js +1 -0
- package/dist-embed/chunks/pegDiagram-XKGWAZYB-BAhw3noh.js +1 -0
- package/dist-embed/chunks/pegDiagram-XKGWAZYB-CO2oVfmH.js +1 -0
- package/dist-embed/chunks/{percentages-BXMCSKIN-BQMwWCQD.js → percentages-BXMCSKIN-BIq0kwQL.js} +5 -5
- package/dist-embed/chunks/pieDiagram-E7YTZNPT-8ObvGarl.js +39 -0
- package/dist-embed/chunks/pieDiagram-E7YTZNPT-BGXX7TE5.js +39 -0
- package/dist-embed/chunks/pieDiagram-E7YTZNPT-uyUfJur0.js +39 -0
- package/dist-embed/chunks/{pieDiagram-c941bede-Cj4FBN3j.js → pieDiagram-c941bede-CiwJwky_.js} +5 -5
- package/dist-embed/chunks/{pl-PL-T2D74RX3-D83IXMGV.js → pl-PL-T2D74RX3--llsK5eC.js} +1 -1
- package/dist-embed/chunks/{pt-BR-5N22H2LF-C-tCCB23.js → pt-BR-5N22H2LF-Bakh_msU.js} +1 -1
- package/dist-embed/chunks/{pt-PT-UZXXM6DQ-BfalAAyJ.js → pt-PT-UZXXM6DQ-OxrpUCfx.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-Be4yYxRi.js → quadrantDiagram-AXDQQJYC-CRV4o4qb.js} +4 -4
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-DWfnlrHL.js → quadrantDiagram-AXDQQJYC-CRh_0GTn.js} +4 -4
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-299UcZFW.js → quadrantDiagram-AXDQQJYC-MaByZiV4.js} +2 -2
- package/dist-embed/chunks/{quadrantDiagram-cf8b8fe0-qh1uZ5v_.js → quadrantDiagram-cf8b8fe0-Wunt4_d5.js} +2 -2
- package/dist-embed/chunks/railroadDiagram-O6MQD6OU-CCaje6VF.js +1 -0
- package/dist-embed/chunks/railroadDiagram-O6MQD6OU-Dqphwk0Z.js +1 -0
- package/dist-embed/chunks/railroadDiagram-O6MQD6OU-JQKf7O31.js +1 -0
- package/dist-embed/chunks/{renderer-VW8Zgoi-.js → renderer-DX-Dx5-F.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-53bda41b-C_KZy5Fe.js → requirementDiagram-53bda41b-TCOAg1rM.js} +2 -2
- package/dist-embed/chunks/requirementDiagram-BXWQKSXE-Bm0upXLv.js +84 -0
- package/dist-embed/chunks/requirementDiagram-BXWQKSXE-C2uapxGA.js +84 -0
- package/dist-embed/chunks/requirementDiagram-BXWQKSXE-DJxuQg-7.js +84 -0
- package/dist-embed/chunks/{ro-RO-JPDTUUEW-BE1v-gpB.js → ro-RO-JPDTUUEW-uuey0xG_.js} +1 -1
- package/dist-embed/chunks/{ru-RU-B4JR7IUQ-CVNYAGNj.js → ru-RU-B4JR7IUQ-DqFdpWv9.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-BWZcxo3B.js → sankeyDiagram-P5KCCOFB-CLZzsFhP.js} +6 -6
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-CatGDvVZ.js → sankeyDiagram-P5KCCOFB-D_ovN9Nw.js} +6 -6
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-2w9aAGeM.js → sankeyDiagram-P5KCCOFB-SUZr8YYS.js} +6 -6
- package/dist-embed/chunks/{sankeyDiagram-c3ef121a-B6bWzn2q.js → sankeyDiagram-c3ef121a-_iCn_Xqv.js} +2 -2
- package/dist-embed/chunks/{sequenceDiagram-82a5b84f-CaIr2bxU.js → sequenceDiagram-82a5b84f-CZ9YH4d5.js} +2 -2
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-B67pBo6k.js → sequenceDiagram-WJ2MYXX4-BKNAKMB-.js} +2 -2
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-DlhUecfS.js → sequenceDiagram-WJ2MYXX4-BiNzit2i.js} +2 -2
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-CBRqz17v.js → sequenceDiagram-WJ2MYXX4-CxJBbJNf.js} +2 -2
- package/dist-embed/chunks/si-LK-N5RQ5JYF-CvENlHMe.js +1 -0
- package/dist-embed/chunks/sizeCapture-INFHLROL-CfXgq7GH.js +1 -0
- package/dist-embed/chunks/sizeCapture-INFHLROL-DdEoxy_h.js +1 -0
- package/dist-embed/chunks/sizeCapture-INFHLROL-DzGAMY7V.js +1 -0
- package/dist-embed/chunks/{sk-SK-C5VTKIMK-CnlsIkzl.js → sk-SK-C5VTKIMK-kO7aKifc.js} +1 -1
- package/dist-embed/chunks/{sl-SI-NN7IZMDC-BUxNatf_.js → sl-SI-NN7IZMDC-BSfu_xTu.js} +1 -1
- package/dist-embed/chunks/stateDiagram-43e79a5f-BD1qBXVh.js +1 -0
- package/dist-embed/chunks/stateDiagram-D77RDMKH-BdFfP6-j.js +1 -0
- package/dist-embed/chunks/stateDiagram-D77RDMKH-C6Rh7O9V.js +1 -0
- package/dist-embed/chunks/stateDiagram-D77RDMKH-CZM-t-r5.js +1 -0
- package/dist-embed/chunks/stateDiagram-v2-2041ed4f-CKbh55dE.js +1 -0
- package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-BHkGSAh9.js +1 -0
- package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-CBRXg201.js +1 -0
- package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-CtwsmZKB.js +1 -0
- package/dist-embed/chunks/{styles-455b33cd-DTnW81zt.js → styles-455b33cd-IAZJyrtZ.js} +1 -1
- package/dist-embed/chunks/styles-f932cba9-CulCjJgD.js +116 -0
- package/dist-embed/chunks/{styles-fcc2142b-DS8IKMau.js → styles-fcc2142b-B41TEwDB.js} +1 -1
- package/dist-embed/chunks/{subset-shared.chunk-CTwDOb0-.js → subset-shared.chunk-BerOLB9H.js} +1 -1
- package/dist-embed/chunks/subset-worker.chunk-Yn1lZtLj.js +1 -0
- package/dist-embed/chunks/{sv-SE-XGPEYMSR-cyuprKcs.js → sv-SE-XGPEYMSR-CwWdagrq.js} +1 -1
- package/dist-embed/chunks/{svgDrawCommon-148a3cd9-BxghTVdH.js → svgDrawCommon-148a3cd9-BFE-Fru-.js} +1 -1
- package/dist-embed/chunks/swimlanes-42K2YHIH-B4ynl1fF.js +1 -0
- package/dist-embed/chunks/swimlanes-42K2YHIH-C3Ob3hRX.js +1 -0
- package/dist-embed/chunks/swimlanes-42K2YHIH-C4SGzTvJ.js +1 -0
- package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-BXjgQ3GL.js +8 -0
- package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-C7a6omGx.js +8 -0
- package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-Clkyphbe.js +8 -0
- package/dist-embed/chunks/{ta-IN-2NMHFXQM-Byh0RKP5.js → ta-IN-2NMHFXQM-re3EiMgT.js} +1 -1
- package/dist-embed/chunks/th-TH-HPSO5L25-DtD0NaIp.js +2 -0
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-D_rwkEbI.js → timeline-definition-24CTP7MA-BNDeFofK.js} +2 -2
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-CbdMtllQ.js → timeline-definition-24CTP7MA-Cq0llA9E.js} +2 -2
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-4T6yq6Xl.js → timeline-definition-24CTP7MA-meb3YGxd.js} +2 -2
- package/dist-embed/chunks/{timeline-definition-7545f45a-BV1QYS8b.js → timeline-definition-7545f45a-_IXtAyNt.js} +2 -2
- package/dist-embed/chunks/{tr-TR-DEFEU3FU-CnqB5qYp.js → tr-TR-DEFEU3FU-C7nWPcvx.js} +1 -1
- package/dist-embed/chunks/{uk-UA-QMV73CPH-T0hbDiAg.js → uk-UA-QMV73CPH-BXHaS8be.js} +1 -1
- package/dist-embed/chunks/{venn.esm-6w9J1Bn7.js → venn.esm-DcgGHut9.js} +2 -2
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-Bvimw16k.js → vennDiagram-4TSXK5OY-5vXx1zIe.js} +4 -4
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-CBXnZEfU.js → vennDiagram-4TSXK5OY-B_43mUqs.js} +4 -4
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-CYAyZJWP.js → vennDiagram-4TSXK5OY-cdkeJjkW.js} +4 -4
- package/dist-embed/chunks/{vi-VN-M7AON7JQ-BbVJrx8R.js → vi-VN-M7AON7JQ-D29vQQkQ.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-B9iqutw0.js → wardleyDiagram-VM6X3IG4-1VXLU7d1.js} +2 -2
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-k_2iCVDr.js → wardleyDiagram-VM6X3IG4-CDIFTq28.js} +2 -2
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-CkqyRdUt.js → wardleyDiagram-VM6X3IG4-xAtWwDfd.js} +2 -2
- package/dist-embed/chunks/{xychartDiagram-3f383b91-L3ZS62LU.js → xychartDiagram-3f383b91-BuaB0j8f.js} +5 -5
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z--E3rc8E6.js → xychartDiagram-S5SC5T6Z-BL2yRZOy.js} +2 -2
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-COkEQpnW.js → xychartDiagram-S5SC5T6Z-BUZxSIAO.js} +2 -2
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-DufzH9GE.js → xychartDiagram-S5SC5T6Z-CHRdLn8n.js} +2 -2
- package/dist-embed/chunks/{zh-CN-LNUGB5OW-B2XCvd4u.js → zh-CN-LNUGB5OW-hmUIulf5.js} +1 -1
- package/dist-embed/chunks/zh-HK-E62DVLB3-Bew_EKh4.js +1 -0
- package/dist-embed/chunks/{zh-TW-RAJ6MFWO-fBqMZFIZ.js → zh-TW-RAJ6MFWO-GAr_9KYn.js} +1 -1
- package/dist-embed/datalayer-app-main.js +28 -27
- package/lib/apps/core/canvasParts.d.ts +1 -1
- package/lib/apps/plugins/canvas-parts/index.d.ts +9 -1
- package/lib/apps/plugins/canvas-parts/index.js +42 -0
- package/lib/battles/index.d.ts +1 -0
- package/lib/battles/index.js +5 -0
- package/lib/battles/verdict.d.ts +76 -0
- package/lib/battles/verdict.js +122 -0
- package/lib/chat/assistant/SpeechBalloon.js +2 -2
- package/lib/components/code-sandboxes/CodeSandboxEnvironmentSelect.d.ts +7 -8
- package/lib/components/code-sandboxes/CodeSandboxEnvironmentSelect.js +133 -27
- package/lib/components/code-sandboxes/CodeSandboxPicker.js +3 -0
- package/lib/components/code-sandboxes/codeSandboxEnvironments.d.ts +3 -2
- package/lib/components/code-sandboxes/codeSandboxEnvironments.js +3 -2
- package/lib/index.d.ts +1 -1
- package/lib/models/Environment.d.ts +8 -0
- package/lib/models/environments.generated.d.ts +9 -1
- package/lib/models/environments.generated.js +1 -1
- package/lib/specs/battles.d.ts +17 -0
- package/lib/specs/battles.js +144 -0
- package/lib/specs/guards.d.ts +11 -3
- package/lib/specs/guards.js +67 -636
- package/lib/specs/index.d.ts +1 -1
- package/lib/specs/index.js +1 -1
- package/lib/specs/ops.js +23 -701
- package/lib/specs/tracks.d.ts +2 -0
- package/lib/specs/tracks.js +70 -0
- package/lib/types/agentspecs.d.ts +59 -9
- package/lib/types/guardrails.d.ts +62 -94
- package/package.json +2 -2
- package/scripts/codegen/generate_agents.py +0 -1
- package/scripts/codegen/generate_ops.py +82 -26
- package/dist-embed/chunks/AgentInspector-CgyzKeHG.js +0 -1
- package/dist-embed/chunks/EphemeralDocument-BqDLSVvb.js +0 -1
- package/dist-embed/chunks/ExcalidrawComponent-DIz2Hp3F.js +0 -1
- package/dist-embed/chunks/ExcalidrawModal-Bz4nrIlA.js +0 -1
- package/dist-embed/chunks/NotebookToolSurfaces-Ch-7Pk_I.js +0 -1
- package/dist-embed/chunks/Tableau10-B-NsZVaP.js +0 -1
- package/dist-embed/chunks/WidgetVariableView-BEQqawKT.js +0 -1
- package/dist-embed/chunks/abnfDiagram-VCTEODGH-Cviduj-e.js +0 -1
- package/dist-embed/chunks/abnfDiagram-VCTEODGH-DRYUPXKp.js +0 -1
- package/dist-embed/chunks/abnfDiagram-VCTEODGH-uQbfcTeh.js +0 -1
- package/dist-embed/chunks/advancedFormat-Cytc7Lc-.js +0 -1
- package/dist-embed/chunks/arc-CvuHsKVP.js +0 -1
- package/dist-embed/chunks/array-BKyUJesY.js +0 -1
- package/dist-embed/chunks/az-AZ-76LH7QW2-By3wlF01.js +0 -1
- package/dist-embed/chunks/band-dPffDWoQ.js +0 -1
- package/dist-embed/chunks/channel-DSSC-Z6W.js +0 -1
- package/dist-embed/chunks/classDiagram-ZZMXUADV-2t4a-wcA.js +0 -1
- package/dist-embed/chunks/classDiagram-ZZMXUADV-9WVRK_2x.js +0 -1
- package/dist-embed/chunks/classDiagram-ZZMXUADV-Dh5wgyac.js +0 -1
- package/dist-embed/chunks/classDiagram-f62afe4f-CaiUEXWA.js +0 -2
- package/dist-embed/chunks/classDiagram-v2-604399ef-CZz_cEb3.js +0 -2
- package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-2t4a-wcA.js +0 -1
- package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-9WVRK_2x.js +0 -1
- package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-Dh5wgyac.js +0 -1
- package/dist-embed/chunks/color-CG7_7V2-.js +0 -1
- package/dist-embed/chunks/cose-bilkent-JH36ORCC-CYdr15Qb.js +0 -1
- package/dist-embed/chunks/cose-bilkent-JH36ORCC-D7xkFMi4.js +0 -1
- package/dist-embed/chunks/cose-bilkent-JH36ORCC-DyL8-f5N.js +0 -1
- package/dist-embed/chunks/cynefinDiagram-5FMLGOSQ-B-cEXnFH.js +0 -62
- package/dist-embed/chunks/cynefinDiagram-5FMLGOSQ-DkFOdRYH.js +0 -62
- package/dist-embed/chunks/cynefinDiagram-5FMLGOSQ-wHBoNo7j.js +0 -62
- package/dist-embed/chunks/defaultLocale-5voVPcsN.js +0 -1
- package/dist-embed/chunks/diagram-UQ7AKVKN-2cPTLkSD.js +0 -41
- package/dist-embed/chunks/diagram-UQ7AKVKN-CSMVfm7b.js +0 -41
- package/dist-embed/chunks/diagram-UQ7AKVKN-C_jt0u6D.js +0 -41
- package/dist-embed/chunks/diagram-VX7I27RA-BJ2YQn5K.js +0 -24
- package/dist-embed/chunks/diagram-VX7I27RA-DA1J99rY.js +0 -24
- package/dist-embed/chunks/diagram-VX7I27RA-Dm3pOzxq.js +0 -24
- package/dist-embed/chunks/diagram-Z3DM3KII-C5sZC4ig.js +0 -24
- package/dist-embed/chunks/diagram-Z3DM3KII-CVmSZjIo.js +0 -24
- package/dist-embed/chunks/diagram-Z3DM3KII-DVQwJUFe.js +0 -24
- package/dist-embed/chunks/ebnfDiagram-PWID7BFC-DwtRvYrD.js +0 -1
- package/dist-embed/chunks/ebnfDiagram-PWID7BFC-Qmmh9DWc.js +0 -1
- package/dist-embed/chunks/ebnfDiagram-PWID7BFC-YwFzQxr5.js +0 -1
- package/dist-embed/chunks/edges-b2856ca0-Cn0ZKu5E.js +0 -4
- package/dist-embed/chunks/flowDiagram-v2-1d953310-5ThB3y9b.js +0 -1
- package/dist-embed/chunks/gitGraphDiagram-WWUBYQGX-1XlTL5m_.js +0 -106
- package/dist-embed/chunks/gitGraphDiagram-WWUBYQGX-APR1d-tc.js +0 -106
- package/dist-embed/chunks/gitGraphDiagram-WWUBYQGX-BAP8EKLt.js +0 -106
- package/dist-embed/chunks/hcl-DhKDpa4Z.js +0 -1
- package/dist-embed/chunks/index-BF1314TG.js +0 -1
- package/dist-embed/chunks/index-BYQPOTc8.js +0 -1
- package/dist-embed/chunks/index-Ben6aEe6.js +0 -1
- package/dist-embed/chunks/index-CFSUTqDN.js +0 -1
- package/dist-embed/chunks/index-CvYzv8kf.js +0 -1
- package/dist-embed/chunks/index-D4a8E78-.js +0 -34
- package/dist-embed/chunks/index-D7tggxpZ.js +0 -1
- package/dist-embed/chunks/index-D99YJ2MP.js +0 -1
- package/dist-embed/chunks/index-DDgcbci7.js +0 -17
- package/dist-embed/chunks/index-DOI3H9VM.js +0 -2
- package/dist-embed/chunks/index-DcQTeOGT.js +0 -2
- package/dist-embed/chunks/index-DqGFpucN.js +0 -6
- package/dist-embed/chunks/index-Dw3RE4d5.js +0 -1
- package/dist-embed/chunks/index-MUnyaGR7.js +0 -1
- package/dist-embed/chunks/index-atSsKceW.js +0 -1
- package/dist-embed/chunks/infoDiagram-27XIBGKW-BRFvlR5E.js +0 -2
- package/dist-embed/chunks/infoDiagram-27XIBGKW-D2VjYulT.js +0 -2
- package/dist-embed/chunks/infoDiagram-27XIBGKW-mC-wx4e9.js +0 -2
- package/dist-embed/chunks/init-Gi6I4Gst.js +0 -1
- package/dist-embed/chunks/kaa-6HZHGXH3-DXk4Goog.js +0 -1
- package/dist-embed/chunks/kk-KZ-P5N5QNE5-BVNL23_r.js +0 -1
- package/dist-embed/chunks/line-DT6NiYhi.js +0 -1
- package/dist-embed/chunks/linear-BpNYqLzz.js +0 -1
- package/dist-embed/chunks/my-MM-5M5IBNSE-CRUW8B_2.js +0 -1
- package/dist-embed/chunks/ordinal-Cboi1Yqb.js +0 -1
- package/dist-embed/chunks/path-CbwjOpE9.js +0 -1
- package/dist-embed/chunks/pegDiagram-XKGWAZYB-CtWh5AAX.js +0 -1
- package/dist-embed/chunks/pegDiagram-XKGWAZYB-D0zyGRR2.js +0 -1
- package/dist-embed/chunks/pegDiagram-XKGWAZYB-fy3EphLc.js +0 -1
- package/dist-embed/chunks/pie-BU9ZrLAC.js +0 -1
- package/dist-embed/chunks/pieDiagram-E7YTZNPT-BsWWB93l.js +0 -39
- package/dist-embed/chunks/pieDiagram-E7YTZNPT-CArVdetR.js +0 -39
- package/dist-embed/chunks/pieDiagram-E7YTZNPT-DNxhxWw6.js +0 -39
- package/dist-embed/chunks/railroadDiagram-O6MQD6OU-C9HR2VRW.js +0 -1
- package/dist-embed/chunks/railroadDiagram-O6MQD6OU-COJ52k8E.js +0 -1
- package/dist-embed/chunks/railroadDiagram-O6MQD6OU-DPlEOlHJ.js +0 -1
- package/dist-embed/chunks/requirementDiagram-BXWQKSXE-2dtqnxe5.js +0 -84
- package/dist-embed/chunks/requirementDiagram-BXWQKSXE-BSUw2gn-.js +0 -84
- package/dist-embed/chunks/requirementDiagram-BXWQKSXE-BxFFoRpi.js +0 -84
- package/dist-embed/chunks/round-BfLWjAu-.js +0 -1
- package/dist-embed/chunks/si-LK-N5RQ5JYF-DUuCNsO5.js +0 -1
- package/dist-embed/chunks/sizeCapture-INFHLROL-BEjCofob.js +0 -1
- package/dist-embed/chunks/sizeCapture-INFHLROL-DMtgrDCy.js +0 -1
- package/dist-embed/chunks/sizeCapture-INFHLROL-fPkZXPlY.js +0 -1
- package/dist-embed/chunks/stateDiagram-43e79a5f-C9c4jD1w.js +0 -1
- package/dist-embed/chunks/stateDiagram-D77RDMKH-BwBOxQvl.js +0 -1
- package/dist-embed/chunks/stateDiagram-D77RDMKH-C3hsuLFV.js +0 -1
- package/dist-embed/chunks/stateDiagram-D77RDMKH-dWsBlue-.js +0 -1
- package/dist-embed/chunks/stateDiagram-v2-2041ed4f-CcvTvP8J.js +0 -1
- package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-BynTEikt.js +0 -1
- package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-CRNCbzUu.js +0 -1
- package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-yYUm25Cg.js +0 -1
- package/dist-embed/chunks/styles-f932cba9-DvbsLPZ9.js +0 -116
- package/dist-embed/chunks/subset-worker.chunk-CY8G1DYa.js +0 -1
- package/dist-embed/chunks/swimlanes-42K2YHIH-CGEWUgMO.js +0 -1
- package/dist-embed/chunks/swimlanes-42K2YHIH-DY5rybP3.js +0 -1
- package/dist-embed/chunks/swimlanes-42K2YHIH-DiRx3T6S.js +0 -1
- package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-BmSxUdGr.js +0 -8
- package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-BmTIqylO.js +0 -8
- package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-Dmom79F0.js +0 -8
- package/dist-embed/chunks/th-TH-HPSO5L25-C8zeMDt2.js +0 -2
- package/dist-embed/chunks/zh-HK-E62DVLB3-D8xk7wby.js +0 -1
- package/lib/specs/guardrails.d.ts +0 -22
- package/lib/specs/guardrails.js +0 -391
- package/scripts/codegen/generate_guardrails.py +0 -475
package/lib/specs/tracks.d.ts
CHANGED
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
* DO NOT EDIT MANUALLY - run 'make specs' to regenerate.
|
|
8
8
|
*/
|
|
9
9
|
import type { TrackSpec } from '../types/agentspecs';
|
|
10
|
+
export declare const DRAFTING_TRACK_0_0_1: TrackSpec;
|
|
10
11
|
export declare const FINANCIAL_REPORTING_TRACK_0_0_1: TrackSpec;
|
|
12
|
+
export declare const REGULATED_TRACK_0_0_1: TrackSpec;
|
|
11
13
|
export declare const STANDARD_TRACK_0_0_1: TrackSpec;
|
|
12
14
|
export declare const TRACK_CATALOGUE: Record<string, TrackSpec>;
|
|
13
15
|
/** A Track, by `id` or `id:version`, or undefined. */
|
package/lib/specs/tracks.js
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
* Copyright (c) 2025-2026 Datalayer, Inc.
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
|
+
export const DRAFTING_TRACK_0_0_1 = {
|
|
6
|
+
id: 'drafting',
|
|
7
|
+
version: '0.0.1',
|
|
8
|
+
name: 'Drafting Track',
|
|
9
|
+
description: "The record of a low-risk drafting Op: what ran, what the Guards found and the Gates decided, and what was produced. Kept ninety days, readable by the Op's owner only, and not fed back to Organizational Memory.",
|
|
10
|
+
retainFor: '90_days',
|
|
11
|
+
include: [
|
|
12
|
+
'op',
|
|
13
|
+
'cogs_invoked',
|
|
14
|
+
'guard_results',
|
|
15
|
+
'gate_decisions',
|
|
16
|
+
'final_output',
|
|
17
|
+
'timestamps',
|
|
18
|
+
'user_identity',
|
|
19
|
+
],
|
|
20
|
+
readers: [],
|
|
21
|
+
redact: ['*Password*', '*Secret*', '*Token*'],
|
|
22
|
+
feedsMemory: false,
|
|
23
|
+
exchangeable: false,
|
|
24
|
+
enabled: true,
|
|
25
|
+
tags: ['drafting', 'low-risk'],
|
|
26
|
+
icon: 'log',
|
|
27
|
+
emoji: '🧾',
|
|
28
|
+
retentionDays: 90,
|
|
29
|
+
};
|
|
5
30
|
export const FINANCIAL_REPORTING_TRACK_0_0_1 = {
|
|
6
31
|
id: 'financial-reporting',
|
|
7
32
|
version: '0.0.1',
|
|
@@ -38,6 +63,49 @@ export const FINANCIAL_REPORTING_TRACK_0_0_1 = {
|
|
|
38
63
|
emoji: '🧾',
|
|
39
64
|
retentionDays: 2555,
|
|
40
65
|
};
|
|
66
|
+
export const REGULATED_TRACK_0_0_1 = {
|
|
67
|
+
id: 'regulated',
|
|
68
|
+
version: '0.0.1',
|
|
69
|
+
name: 'Regulated Track',
|
|
70
|
+
description: 'The complete record of a clinical, legal or public-sector Op: every input and source, every model and setting, every Guard result, Gate decision, approval, edit and action. Kept ten years, readable by Compliance and Legal, produced to a regulator or an external auditor on request, with personal data kept out, and fed back to Organizational Memory.',
|
|
71
|
+
retainFor: '10_years',
|
|
72
|
+
include: [
|
|
73
|
+
'op',
|
|
74
|
+
'frames_used',
|
|
75
|
+
'cogs_invoked',
|
|
76
|
+
'input_data',
|
|
77
|
+
'source_documents',
|
|
78
|
+
'model_versions',
|
|
79
|
+
'configuration',
|
|
80
|
+
'guard_results',
|
|
81
|
+
'gate_decisions',
|
|
82
|
+
'human_approvals',
|
|
83
|
+
'human_edits',
|
|
84
|
+
'final_output',
|
|
85
|
+
'actions_taken',
|
|
86
|
+
'timestamps',
|
|
87
|
+
'user_identity',
|
|
88
|
+
'permissions',
|
|
89
|
+
'environment',
|
|
90
|
+
'memory_links',
|
|
91
|
+
],
|
|
92
|
+
readers: ['compliance', 'legal', 'external-audit'],
|
|
93
|
+
redact: [
|
|
94
|
+
'*Password*',
|
|
95
|
+
'*Secret*',
|
|
96
|
+
'*Token*',
|
|
97
|
+
'*SSN*',
|
|
98
|
+
'*PatientId*',
|
|
99
|
+
'*DateOfBirth*',
|
|
100
|
+
],
|
|
101
|
+
feedsMemory: true,
|
|
102
|
+
exchangeable: false,
|
|
103
|
+
enabled: true,
|
|
104
|
+
tags: ['regulated', 'compliance', 'audit'],
|
|
105
|
+
icon: 'log',
|
|
106
|
+
emoji: '🧾',
|
|
107
|
+
retentionDays: 3650,
|
|
108
|
+
};
|
|
41
109
|
export const STANDARD_TRACK_0_0_1 = {
|
|
42
110
|
id: 'standard',
|
|
43
111
|
version: '0.0.1',
|
|
@@ -67,7 +135,9 @@ export const STANDARD_TRACK_0_0_1 = {
|
|
|
67
135
|
retentionDays: 365,
|
|
68
136
|
};
|
|
69
137
|
export const TRACK_CATALOGUE = {
|
|
138
|
+
drafting: DRAFTING_TRACK_0_0_1,
|
|
70
139
|
'financial-reporting': FINANCIAL_REPORTING_TRACK_0_0_1,
|
|
140
|
+
regulated: REGULATED_TRACK_0_0_1,
|
|
71
141
|
standard: STANDARD_TRACK_0_0_1,
|
|
72
142
|
};
|
|
73
143
|
/** A Track, by `id` or `id:version`, or undefined. */
|
|
@@ -4,7 +4,7 @@ import type { BackendToolSpec, FrontendToolSpec, FrontendRenderToolSpec } from '
|
|
|
4
4
|
import type { AgentTriggerConfig } from './triggers';
|
|
5
5
|
import type { AgentModelConfig } from './models';
|
|
6
6
|
import type { AgentOutputConfig } from './outputs';
|
|
7
|
-
import type {
|
|
7
|
+
import type { AgentGuardrail } from './guardrails';
|
|
8
8
|
import type { AgentEvalConfig } from './evals';
|
|
9
9
|
import type { AgentNotificationConfig } from './notifications';
|
|
10
10
|
import type { AgentCodemodeConfig, AgentAdvancedConfig } from './config';
|
|
@@ -542,17 +542,19 @@ export interface GuardSignalSpec {
|
|
|
542
542
|
description: string;
|
|
543
543
|
}
|
|
544
544
|
/**
|
|
545
|
-
* A reusable check (`agentspecs/guards`): a Guard extends a
|
|
546
|
-
*
|
|
547
|
-
*
|
|
545
|
+
* A reusable check (`agentspecs/guards`): a Guard extends a Policy, the
|
|
546
|
+
* Shield's document whose rules the Guard verifies the work stayed within.
|
|
547
|
+
* Resolved: `policy` names the Policy it extends, `id:version`, and
|
|
548
|
+
* `policyOf` gives it from the policies catalogue; nothing of the Policy is
|
|
549
|
+
* merged into the Guard.
|
|
548
550
|
*/
|
|
549
|
-
export interface GuardSpec
|
|
551
|
+
export interface GuardSpec {
|
|
550
552
|
id: string;
|
|
551
553
|
version: string;
|
|
552
554
|
name: string;
|
|
553
555
|
description: string;
|
|
554
|
-
/** The id of the
|
|
555
|
-
|
|
556
|
+
/** The Policy it extends, `id:version`, of the policies catalogue. */
|
|
557
|
+
policy: string;
|
|
556
558
|
/**
|
|
557
559
|
* algorithmic, source-grounding, consensus, expert, policy-safety,
|
|
558
560
|
* regression-drift or outcome.
|
|
@@ -623,6 +625,54 @@ export interface TrackSpec {
|
|
|
623
625
|
icon?: string;
|
|
624
626
|
emoji?: string;
|
|
625
627
|
}
|
|
628
|
+
/** One side of a Battle: a scene of the catalogue played whole, or one application. */
|
|
629
|
+
export interface BattleContestantSpec {
|
|
630
|
+
/** Its id in the Battle: `blue`, `red`, `left`. */
|
|
631
|
+
id: string;
|
|
632
|
+
/** The name the audience sees; the id, capitalised, when unsaid. */
|
|
633
|
+
name: string;
|
|
634
|
+
/** A scene of the catalogue, `id` or `id:version`, played whole. One of `scene` and `app`. */
|
|
635
|
+
scene: string;
|
|
636
|
+
/** An application of the catalogue, `id` or `id:version`. */
|
|
637
|
+
app: string;
|
|
638
|
+
/** For an app: `browser` or `runtime`. */
|
|
639
|
+
runsIn?: 'browser' | 'runtime';
|
|
640
|
+
/** Its colour on stage: a palette name or a hex; empty for none. */
|
|
641
|
+
color: string;
|
|
642
|
+
}
|
|
643
|
+
/** How a Battle's winner is decided. */
|
|
644
|
+
export interface BattleRefereeSpec {
|
|
645
|
+
/** `first_done` for a race, `score` for a game, `measure` for a challenge. */
|
|
646
|
+
decidesBy: 'first_done' | 'score' | 'measure';
|
|
647
|
+
/** For `measure`: the Guard whose number signal scores each outcome. */
|
|
648
|
+
measure: string;
|
|
649
|
+
}
|
|
650
|
+
/** Scenes composed against each other, under one clock and a referee (`agentspecs/battles`). */
|
|
651
|
+
export interface BattleSpec {
|
|
652
|
+
id: string;
|
|
653
|
+
version: string;
|
|
654
|
+
name: string;
|
|
655
|
+
description: string;
|
|
656
|
+
/** `race`, `game` or `challenge`. */
|
|
657
|
+
variant: 'race' | 'game' | 'challenge';
|
|
658
|
+
/** What every contestant is told, in the same words. */
|
|
659
|
+
goal: string;
|
|
660
|
+
/** How long it may run, ten seconds at least. */
|
|
661
|
+
clockSeconds: number;
|
|
662
|
+
/** Two or more. */
|
|
663
|
+
contestants: BattleContestantSpec[];
|
|
664
|
+
referee: BattleRefereeSpec;
|
|
665
|
+
/** For a game: which arena. */
|
|
666
|
+
arena?: 'pong' | 'invaders';
|
|
667
|
+
/** What a played Battle has to show. */
|
|
668
|
+
rehearsal: {
|
|
669
|
+
expects: string[];
|
|
670
|
+
};
|
|
671
|
+
enabled: boolean;
|
|
672
|
+
tags: string[];
|
|
673
|
+
icon?: string;
|
|
674
|
+
emoji?: string;
|
|
675
|
+
}
|
|
626
676
|
/** A Cog as an Op names it. */
|
|
627
677
|
export interface OpCogSpec {
|
|
628
678
|
id: string;
|
|
@@ -1733,8 +1783,8 @@ export interface Agentspec {
|
|
|
1733
1783
|
modelConfig?: AgentModelConfig;
|
|
1734
1784
|
/** MCP server tool configurations with approval settings */
|
|
1735
1785
|
mcpServerTools?: AgentMCPServerToolConfig[];
|
|
1736
|
-
/**
|
|
1737
|
-
guardrails?:
|
|
1786
|
+
/** The agent's guardrails: the budgets and limits the runtime enforces. */
|
|
1787
|
+
guardrails?: AgentGuardrail[];
|
|
1738
1788
|
/** Evaluation configurations */
|
|
1739
1789
|
evals?: AgentEvalConfig[];
|
|
1740
1790
|
/** Codemode configuration (enabled, token_reduction, speedup) */
|
|
@@ -1,106 +1,74 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* An agent's guardrails: the entries of an agent spec's `guardrails` list.
|
|
3
|
+
*
|
|
4
|
+
* What is typed here is what the runtime enforces of an entry
|
|
5
|
+
* (`agent_runtimes.capabilities.factory`) and what the components read of it
|
|
6
|
+
* (the cost budget). What may be *done* is not here: that is the Policy a
|
|
7
|
+
* Guard extends (`PolicySpec`, `agentspecs/policies`).
|
|
3
8
|
*/
|
|
4
|
-
export interface GuardrailPermissions {
|
|
5
|
-
'read:data': boolean;
|
|
6
|
-
'write:data': boolean;
|
|
7
|
-
'execute:code': boolean;
|
|
8
|
-
'access:internet': boolean;
|
|
9
|
-
'send:email': boolean;
|
|
10
|
-
'deploy:production': boolean;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Token usage limits for a guardrail.
|
|
14
|
-
*/
|
|
15
|
-
export interface GuardrailTokenLimits {
|
|
16
|
-
per_run: string;
|
|
17
|
-
per_day: string;
|
|
18
|
-
per_month: string;
|
|
19
|
-
}
|
|
20
9
|
/**
|
|
21
|
-
*
|
|
10
|
+
* Each section names the keys the runtime reads; what a spec writes beside
|
|
11
|
+
* them is carried as written, as the Python type (`List[Dict[str, Any]]`)
|
|
12
|
+
* carries it, and read by nothing.
|
|
22
13
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
* Data handling policies — aggregation, row-level, PII, redaction.
|
|
31
|
-
*/
|
|
32
|
-
export interface GuardrailDataHandling {
|
|
33
|
-
default_aggregation: boolean;
|
|
34
|
-
allow_row_level_output: boolean;
|
|
35
|
-
max_rows_in_output: number;
|
|
36
|
-
redact_fields: string[];
|
|
37
|
-
hash_fields: string[];
|
|
38
|
-
pii_detection: boolean;
|
|
39
|
-
pii_action: string;
|
|
14
|
+
/** The money an agent may spend: read by the runtime and shown by the cost tracker. */
|
|
15
|
+
export interface AgentCostBudget {
|
|
16
|
+
per_run_usd?: number;
|
|
17
|
+
cumulative_usd?: number;
|
|
18
|
+
/** What happens past the budget: `stop` when unsaid. */
|
|
19
|
+
on_budget_exceeded?: string;
|
|
20
|
+
[key: string]: unknown;
|
|
40
21
|
}
|
|
41
|
-
/**
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
22
|
+
/** The tokens an agent may use. */
|
|
23
|
+
export interface AgentTokenLimits {
|
|
24
|
+
per_run?: string | number;
|
|
25
|
+
per_day?: string | number;
|
|
26
|
+
per_month?: string | number;
|
|
27
|
+
request_limit?: number;
|
|
28
|
+
tool_calls_limit?: number;
|
|
29
|
+
[key: string]: unknown;
|
|
47
30
|
}
|
|
48
|
-
/**
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
max_time_window_days: number;
|
|
31
|
+
/** Which systems and objects it may reach, and which fields it may not name. */
|
|
32
|
+
export interface AgentDataScope {
|
|
33
|
+
allowed_systems?: string[];
|
|
34
|
+
allowed_objects?: string[];
|
|
35
|
+
denied_objects?: string[];
|
|
36
|
+
denied_fields?: string[];
|
|
37
|
+
[key: string]: unknown;
|
|
56
38
|
}
|
|
57
|
-
/**
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
39
|
+
/** How rows and personal data leave. */
|
|
40
|
+
export interface AgentDataHandling {
|
|
41
|
+
allow_row_level_output?: boolean;
|
|
42
|
+
max_rows_in_output?: number;
|
|
43
|
+
pii_detection?: boolean;
|
|
44
|
+
/** `warn`, `redact` or `block`. */
|
|
45
|
+
pii_action?: string;
|
|
46
|
+
[key: string]: unknown;
|
|
65
47
|
}
|
|
66
|
-
/**
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
do_not_follow_instructions_from_data: boolean;
|
|
48
|
+
/** Untrusted text and instructions found in data. */
|
|
49
|
+
export interface AgentContentSafety {
|
|
50
|
+
treat_crm_text_fields_as_untrusted?: boolean;
|
|
51
|
+
do_not_follow_instructions_from_data?: boolean;
|
|
52
|
+
[key: string]: unknown;
|
|
72
53
|
}
|
|
73
|
-
/**
|
|
74
|
-
|
|
75
|
-
*/
|
|
76
|
-
export interface GuardrailSpec {
|
|
77
|
-
/** Unique guardrail identifier */
|
|
78
|
-
id?: string;
|
|
79
|
-
/** Version */
|
|
80
|
-
version?: string;
|
|
81
|
-
/** Display name */
|
|
54
|
+
/** One entry of an agent spec's `guardrails`. */
|
|
55
|
+
export interface AgentGuardrail {
|
|
82
56
|
name?: string;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
/** Tool invocation limits */
|
|
100
|
-
tool_limits?: GuardrailToolLimits | Record<string, unknown>;
|
|
101
|
-
/** Audit trail configuration */
|
|
102
|
-
audit?: GuardrailAudit | Record<string, unknown>;
|
|
103
|
-
/** Content safety settings */
|
|
104
|
-
content_safety?: GuardrailContentSafety | Record<string, unknown>;
|
|
57
|
+
cost_budget?: AgentCostBudget;
|
|
58
|
+
token_limits?: AgentTokenLimits;
|
|
59
|
+
/** Permission flags, `read:data` and the like, each true or false. */
|
|
60
|
+
permissions?: Record<string, boolean>;
|
|
61
|
+
data_scope?: AgentDataScope;
|
|
62
|
+
data_handling?: AgentDataHandling;
|
|
63
|
+
content_safety?: AgentContentSafety;
|
|
64
|
+
/** The shield-style sections the runtime builds a capability from, each by its own keys. */
|
|
65
|
+
prompt_injection?: Record<string, unknown> | boolean;
|
|
66
|
+
secret_redaction?: Record<string, unknown> | boolean;
|
|
67
|
+
blocked_keywords?: Record<string, unknown> | boolean;
|
|
68
|
+
no_refusals?: Record<string, unknown> | boolean;
|
|
69
|
+
tool_guard?: Record<string, unknown> | boolean;
|
|
70
|
+
async_guardrail?: Record<string, unknown> | boolean;
|
|
71
|
+
tool_approval?: Record<string, unknown> | boolean;
|
|
72
|
+
/** What a spec writes beyond this is carried as written, as the Python type (`List[Dict[str, Any]]`) carries it. */
|
|
105
73
|
[key: string]: unknown;
|
|
106
74
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datalayer/agent-runtimes",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.106",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"workspaces": [
|
|
6
6
|
".",
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
"@primer/behaviors": "^1.8.4",
|
|
197
197
|
"@primer/brand-primitives": "^0.51.0",
|
|
198
198
|
"@primer/css": "^21.5.1",
|
|
199
|
-
"@primer/octicons-react": "^19.
|
|
199
|
+
"@primer/octicons-react": "^19.42.0",
|
|
200
200
|
"@primer/primitives": "^10.7.0",
|
|
201
201
|
"@primer/react": "^37.31.0",
|
|
202
202
|
"@primer/react-brand": "^0.58.0",
|
|
@@ -1764,7 +1764,6 @@ export * from './agents';
|
|
|
1764
1764
|
export * from './teams';
|
|
1765
1765
|
export * from './envvars';
|
|
1766
1766
|
export * from './evals';
|
|
1767
|
-
export * from './guardrails';
|
|
1768
1767
|
export * from './strategies';
|
|
1769
1768
|
export * from './mcpServers';
|
|
1770
1769
|
export * from './memory';
|
|
@@ -11,7 +11,7 @@ strategy made of the three. One YAML per spec under ``agentspecs/guards``,
|
|
|
11
11
|
``gates``, ``tracks`` and ``ops``.
|
|
12
12
|
|
|
13
13
|
Each is resolved here, by ``agentspecs`` itself, so the generated catalogues
|
|
14
|
-
are flat: a Guard
|
|
14
|
+
are flat: a Guard names the Policy it extends, a Gate the signals it
|
|
15
15
|
reads, a Track its retention in days, and an Op everything it names.
|
|
16
16
|
|
|
17
17
|
Usage:
|
|
@@ -39,7 +39,7 @@ KINDS: dict[str, dict[str, str]] = {
|
|
|
39
39
|
"one": "guard",
|
|
40
40
|
"One": "Guard",
|
|
41
41
|
"title": "Guard Catalog.",
|
|
42
|
-
"about": "Reusable checks: a Guard extends a
|
|
42
|
+
"about": "Reusable checks: a Guard extends a Policy — the rules it verifies.\nEvery Guard is resolved: `policy` names that Policy, `id:version`, and\n`policy_of` gives it from the policies catalogue.",
|
|
43
43
|
},
|
|
44
44
|
"gates": {
|
|
45
45
|
"model": "GateSpec",
|
|
@@ -59,6 +59,15 @@ KINDS: dict[str, dict[str, str]] = {
|
|
|
59
59
|
"title": "Track Catalog.",
|
|
60
60
|
"about": "What evidence a run keeps, for how long, and who may read it.",
|
|
61
61
|
},
|
|
62
|
+
"battles": {
|
|
63
|
+
"model": "BattleSpec",
|
|
64
|
+
"suffix": "BATTLE",
|
|
65
|
+
"catalogue": "BATTLE_CATALOGUE",
|
|
66
|
+
"one": "battle",
|
|
67
|
+
"One": "Battle",
|
|
68
|
+
"title": "Battle Catalog.",
|
|
69
|
+
"about": "Scenes composed against each other: a variant, a goal, a clock, the contestants,\na referee decided as the variant is, an arena for a game.",
|
|
70
|
+
},
|
|
62
71
|
"ops": {
|
|
63
72
|
"model": "OpSpec",
|
|
64
73
|
"suffix": "OP",
|
|
@@ -70,8 +79,7 @@ KINDS: dict[str, dict[str, str]] = {
|
|
|
70
79
|
},
|
|
71
80
|
}
|
|
72
81
|
|
|
73
|
-
#: The keys this generator owns, as TypeScript spells them.
|
|
74
|
-
#: keys (`token_limits`, `per_run`, …) stay as `GuardrailSpec` declares them.
|
|
82
|
+
#: The keys this generator owns, as TypeScript spells them.
|
|
75
83
|
CAMEL = {
|
|
76
84
|
"max_retries": "maxRetries",
|
|
77
85
|
"retain_for": "retainFor",
|
|
@@ -80,19 +88,11 @@ CAMEL = {
|
|
|
80
88
|
"frame_guards": "frameGuards",
|
|
81
89
|
"in_flight": "inFlight",
|
|
82
90
|
"post_run": "postRun",
|
|
91
|
+
"clock_seconds": "clockSeconds",
|
|
92
|
+
"decides_by": "decidesBy",
|
|
93
|
+
"runs_in": "runsIn",
|
|
83
94
|
}
|
|
84
95
|
|
|
85
|
-
#: A guardrail's permissions are written `read:data` and typed `read_data`.
|
|
86
|
-
PERMISSIONS = (
|
|
87
|
-
"read:data",
|
|
88
|
-
"write:data",
|
|
89
|
-
"execute:code",
|
|
90
|
-
"access:internet",
|
|
91
|
-
"send:email",
|
|
92
|
-
"deploy:production",
|
|
93
|
-
)
|
|
94
|
-
|
|
95
|
-
|
|
96
96
|
def _flat(text: Any) -> str:
|
|
97
97
|
return " ".join(str(text or "").split())
|
|
98
98
|
|
|
@@ -138,6 +138,9 @@ def load_specs(kind: str, specs_dir: Path) -> list[dict[str, Any]]:
|
|
|
138
138
|
}
|
|
139
139
|
for identity in sorted(gates)
|
|
140
140
|
]
|
|
141
|
+
elif kind == "battles":
|
|
142
|
+
battles = module.load_battles(specs_dir)
|
|
143
|
+
specs = [battles[identity].model_dump(mode="json") for identity in sorted(battles)]
|
|
141
144
|
elif kind == "tracks":
|
|
142
145
|
tracks = module.load_tracks(specs_dir)
|
|
143
146
|
specs = [
|
|
@@ -180,14 +183,7 @@ def _const_name(kind: str, spec: dict[str, Any]) -> str:
|
|
|
180
183
|
def _python_value(value: Any) -> Any:
|
|
181
184
|
"""A resolved spec as the Python models read it."""
|
|
182
185
|
if isinstance(value, dict):
|
|
183
|
-
|
|
184
|
-
permissions = converted.get("permissions")
|
|
185
|
-
if isinstance(permissions, dict):
|
|
186
|
-
converted["permissions"] = {
|
|
187
|
-
(key.replace(":", "_") if key in PERMISSIONS else key): item
|
|
188
|
-
for key, item in permissions.items()
|
|
189
|
-
}
|
|
190
|
-
return converted
|
|
186
|
+
return {key: _python_value(item) for key, item in value.items()}
|
|
191
187
|
if isinstance(value, list):
|
|
192
188
|
return [_python_value(item) for item in value]
|
|
193
189
|
return value
|
|
@@ -223,7 +219,14 @@ def generate_python_code(kind: str, specs: list[dict[str, Any]]) -> str:
|
|
|
223
219
|
"",
|
|
224
220
|
"from typing import Dict",
|
|
225
221
|
"",
|
|
226
|
-
|
|
222
|
+
*(
|
|
223
|
+
[
|
|
224
|
+
"from agent_runtimes.specs.policies import POLICY_CATALOGUE",
|
|
225
|
+
"from agent_runtimes.types import GuardSpec, PolicySpec",
|
|
226
|
+
]
|
|
227
|
+
if kind == "guards"
|
|
228
|
+
else [f"from agent_runtimes.types import {names['model']}"]
|
|
229
|
+
),
|
|
227
230
|
"",
|
|
228
231
|
"",
|
|
229
232
|
"# " + "=" * 76,
|
|
@@ -273,6 +276,27 @@ def generate_python_code(kind: str, specs: list[dict[str, Any]]) -> str:
|
|
|
273
276
|
"",
|
|
274
277
|
]
|
|
275
278
|
)
|
|
279
|
+
if kind == "guards":
|
|
280
|
+
lines.extend(
|
|
281
|
+
[
|
|
282
|
+
"",
|
|
283
|
+
"def policy_of(guard: GuardSpec) -> PolicySpec:",
|
|
284
|
+
' """The Policy a Guard extends, from the policies catalogue.',
|
|
285
|
+
"",
|
|
286
|
+
" Raised when the catalogue does not hold it: a Guard names a Policy that",
|
|
287
|
+
" exists, at the version the catalogue has.",
|
|
288
|
+
' """',
|
|
289
|
+
' base, _, version = guard.policy.rpartition(":")',
|
|
290
|
+
" policy = POLICY_CATALOGUE.get(base)",
|
|
291
|
+
" if policy is None or policy.version != version:",
|
|
292
|
+
" raise ValueError(",
|
|
293
|
+
' f"Guard {guard.id!r} extends {guard.policy!r}, "',
|
|
294
|
+
' "which is not a Policy of the catalogue"',
|
|
295
|
+
" )",
|
|
296
|
+
" return policy",
|
|
297
|
+
"",
|
|
298
|
+
]
|
|
299
|
+
)
|
|
276
300
|
return "\n".join(lines)
|
|
277
301
|
|
|
278
302
|
|
|
@@ -294,7 +318,14 @@ def generate_typescript_code(kind: str, specs: list[dict[str, Any]]) -> str:
|
|
|
294
318
|
" * DO NOT EDIT MANUALLY - run 'make specs' to regenerate.",
|
|
295
319
|
" */",
|
|
296
320
|
"",
|
|
297
|
-
|
|
321
|
+
*(
|
|
322
|
+
[
|
|
323
|
+
"import type { GuardSpec, PolicySpec } from '../types/agentspecs';",
|
|
324
|
+
"import { POLICY_CATALOGUE } from './policies';",
|
|
325
|
+
]
|
|
326
|
+
if kind == "guards"
|
|
327
|
+
else [f"import type {{ {names['model']} }} from '../types/agentspecs';"]
|
|
328
|
+
),
|
|
298
329
|
"",
|
|
299
330
|
]
|
|
300
331
|
for spec in specs:
|
|
@@ -334,13 +365,38 @@ def generate_typescript_code(kind: str, specs: list[dict[str, Any]]) -> str:
|
|
|
334
365
|
"",
|
|
335
366
|
]
|
|
336
367
|
)
|
|
368
|
+
if kind == "guards":
|
|
369
|
+
lines.extend(
|
|
370
|
+
[
|
|
371
|
+
"/**",
|
|
372
|
+
" * The Policy a Guard extends, from the policies catalogue. Thrown when the",
|
|
373
|
+
" * catalogue does not hold it: a Guard names a Policy that exists, at the",
|
|
374
|
+
" * version the catalogue has.",
|
|
375
|
+
" */",
|
|
376
|
+
"export function policyOf(guard: GuardSpec): PolicySpec {",
|
|
377
|
+
" const at = guard.policy.lastIndexOf(':');",
|
|
378
|
+
" const id = at > 0 ? guard.policy.slice(0, at) : guard.policy;",
|
|
379
|
+
" const version = at > 0 ? guard.policy.slice(at + 1) : '';",
|
|
380
|
+
" const policy = Object.prototype.hasOwnProperty.call(POLICY_CATALOGUE, id)",
|
|
381
|
+
" ? POLICY_CATALOGUE[id]",
|
|
382
|
+
" : undefined;",
|
|
383
|
+
" if (policy === undefined || policy.version !== version) {",
|
|
384
|
+
" throw new Error(",
|
|
385
|
+
" `Guard '${guard.id}' extends '${guard.policy}', which is not a Policy of the catalogue`,",
|
|
386
|
+
" );",
|
|
387
|
+
" }",
|
|
388
|
+
" return policy;",
|
|
389
|
+
"}",
|
|
390
|
+
"",
|
|
391
|
+
]
|
|
392
|
+
)
|
|
337
393
|
return "\n".join(lines)
|
|
338
394
|
|
|
339
395
|
|
|
340
396
|
def main() -> None:
|
|
341
397
|
"""Generate one kind's catalogues."""
|
|
342
398
|
parser = argparse.ArgumentParser(
|
|
343
|
-
description="Generate Python and TypeScript code from YAML Op, Guard, Gate and
|
|
399
|
+
description="Generate Python and TypeScript code from YAML Op, Guard, Gate, Track and Battle specifications"
|
|
344
400
|
)
|
|
345
401
|
parser.add_argument(
|
|
346
402
|
"--kind",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as x,j as e,B as l,dr as ie,f1 as se,T as c,bB as F,dq as L,L as D,I as oe,f2 as le,f3 as V,v as U,P as ae,f4 as de,V as ce,f5 as ue,e5 as H,bs as M,f6 as fe,f7 as xe,f8 as K,f9 as pe,fa as he}from"../datalayer-app-main.js";import{B,U as $}from"./index-DS7lfBW6.js";function R(t){const n=Number(t);return!isNaN(n)&&n>1e15?n/1e6:!isNaN(n)&&n>1e12?n/1e3:isNaN(n)?new Date(String(t)).getTime():n}function G(t){return t==null?"—":t<.001?"<1µs":t<1?`${(t*1e3).toFixed(0)}µs`:t<1e3?`${t.toFixed(1)}ms`:t<6e4?`${(t/1e3).toFixed(2)}s`:`${(t/6e4).toFixed(1)}m`}function me(t){if(t==null||t==="")return"—";try{const n=R(t),r=new Date(n);return isNaN(r.getTime())?String(t):r.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3})}catch{return String(t)}}const X=["#0969da","#1a7f37","#cf222e","#8250df","#bf8700","#0550ae","#116329","#a40e26","#6639ba","#953800","#0e8a16","#e36209"];function ge(t){let n=0;for(let r=0;r<t.length;r++)n=n*31+t.charCodeAt(r)|0;return X[Math.abs(n)%X.length]}function Q(t){const n=new Map,r=t.map(o=>({...o,children:[],depth:0}));for(const o of r)n.set(o.span_id,o);const i=[];for(const o of r)if(o.parent_span_id&&n.has(o.parent_span_id)){const f=n.get(o.parent_span_id);f.children=f.children??[],f.children.push(o)}else i.push(o);function a(o,f){o.depth=f;for(const p of o.children??[])a(p,f+1)}for(const o of i)a(o,0);return i}const be="peer.service";function je(t,n){return t.service_name===n||t.attributes?.[be]===n}function Se(t,n){return n?t.filter(r=>je(r,n)):[...t]}const q=[],_e=()=>()=>{};function we(t){return x.useSyncExternalStore(t?t.subscribe:_e,()=>t?t.spans():q,()=>t?t.spans():q)}const ye="140px 1fr 160px 90px",ve="96px minmax(0, 1fr) 96px 64px";function ke(t){const n=t.attributes;if(!n)return null;const r=n["gen_ai.usage.input_tokens"]!=null?Number(n["gen_ai.usage.input_tokens"]):void 0,i=n["gen_ai.usage.output_tokens"]!=null?Number(n["gen_ai.usage.output_tokens"]):void 0;return r==null&&i==null?null:{input:r,output:i}}const Ce=({spans:t,loading:n,selectedSpanId:r,onSelectSpan:i,emptyText:a,compact:o=!1,defaultExpanded:f=!1,renderSpanMark:p,describeSpan:u})=>{const[h,d]=x.useState(new Set),m=x.useMemo(()=>({has:s=>f?!h.has(s):h.has(s)}),[h,f]),j=o?ve:ye,S=x.useMemo(()=>Q(t),[t]),g=x.useMemo(()=>{const s=[];function y(b,O){const v=b.children??[];if(s.push({span:b,depth:O,hasChildren:v.length>0}),m.has(b.span_id))for(const T of v)y(T,O+1)}for(const b of S)y(b,0);return s},[S,m]),A=x.useCallback(s=>{d(y=>{const b=new Set(y);return b.has(s)?b.delete(s):b.add(s),b})},[]);return n?e.jsx(l,{display:"flex",justifyContent:"center",p:5,children:e.jsx(ie,{size:"medium"})}):t.length===0?e.jsxs(B,{children:[e.jsx(B.Visual,{children:e.jsx(se,{size:24})}),e.jsx(B.Heading,{children:"No traces found"}),e.jsx(B.Description,{children:a??"Send some telemetry data first."})]}):e.jsxs(l,{width:"100%",flex:1,minHeight:0,overflow:"auto",children:[e.jsx(l,{display:"grid",gridTemplateColumns:j,gap:2,px:3,position:"sticky",top:0,bg:"canvas.subtle",zIndex:1,borderBottom:"2px solid",borderColor:"border.default",children:["Time","Message","Scope","Duration"].map(s=>e.jsx(c,{sx:{fontWeight:"bold",fontSize:0,color:"fg.muted",textTransform:"uppercase",letterSpacing:"0.05em",py:2,...s==="Duration"?{textAlign:"right"}:{}},children:s},s))}),g.map(({span:s,depth:y,hasChildren:b},O)=>{const v=r===s.span_id,T=m.has(s.span_id),C=y*(o?12:20),k=u?.(s);return e.jsxs(l,{"data-otel-span":s.span_id,"data-otel-span-name":s.span_name,onClick:()=>{b&&A(s.span_id),i?.(s)},display:"grid",gridTemplateColumns:j,gap:2,px:3,py:"5px",cursor:"pointer",bg:v?"accent.subtle":y>0?"canvas.inset":"canvas.default",borderBottom:"1px solid",borderColor:"border.muted",hover:{bg:v?"accent.subtle":"canvas.subtle"},children:[e.jsx(c,{sx:{fontSize:o?0:1,fontFamily:"mono",color:"fg.muted",whiteSpace:"nowrap",lineHeight:"22px"},children:me(s.start_time)}),e.jsxs(l,{display:"flex",alignItems:"center",gap:1,overflow:"hidden",lineHeight:"22px",pl:`${C}px`,children:[b?e.jsx(l,{flexShrink:0,color:"fg.muted",display:"flex",alignItems:"center",children:T?e.jsx(F,{size:14}):e.jsx(L,{size:14})}):y>0?e.jsx(l,{flexShrink:0,width:"14px",display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",fontSize:0,children:"─"}):null,p?.(s),e.jsx(c,{sx:{fontSize:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flexShrink:k?0:1,maxWidth:k?"60%":void 0},title:s.span_name,children:s.span_name}),s.in_progress&&e.jsx(D,{variant:"attention",size:"small",children:"running"}),s.status_code==="ERROR"&&e.jsx(D,{variant:"danger",size:"small",children:"ERROR"}),(()=>{const I=ke(s);return I?e.jsxs(l,{display:"inline-flex",alignItems:"center",gap:"2px",border:"1px solid",borderColor:"border.default",borderRadius:2,px:1,fontSize:"10px",fontFamily:"mono",color:"fg.muted",flexShrink:0,lineHeight:"16px",children:[I.input!=null&&e.jsxs(l,{display:"inline-flex",alignItems:"center",gap:"1px",children:[e.jsx(c,{sx:{fontSize:"9px",color:"fg.subtle"},children:"↗"}),e.jsx(c,{children:I.input})]}),I.output!=null&&e.jsxs(l,{display:"inline-flex",alignItems:"center",gap:"1px",children:[e.jsx(c,{sx:{fontSize:"9px",color:"fg.subtle"},children:"↙"}),e.jsx(c,{children:I.output})]})]}):null})(),k&&e.jsx(c,{sx:{fontSize:1,color:"fg.muted",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},title:k,"data-otel-span-description":"",children:k}),s.otel_scope_name&&!o&&e.jsx(D,{size:"small",variant:"secondary",sx:{flexShrink:0,fontSize:"10px"},children:s.otel_scope_name})]}),e.jsx(c,{sx:{fontSize:1,color:"fg.muted",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",lineHeight:"22px"},title:`${s.service_name} / ${s.otel_scope_name??""}`,children:s.service_name}),e.jsx(c,{sx:{fontSize:1,fontFamily:"mono",textAlign:"right",lineHeight:"22px",color:s.duration_ms!=null&&s.duration_ms>1e3?"danger.fg":"fg.default"},children:s.in_progress?"…":G(s.duration_ms)})]},`${s.trace_id}-${s.span_id}-${O}`)})]})},ze=20,Z=({span:t,depth:n,selectedSpanId:r,onSelectSpan:i,expandedIds:a,toggleExpanded:o,traceMinTime:f,traceDuration:p})=>{const u=(t.children?.length??0)>0,h=a.has(t.span_id),d=r===t.span_id,m=ge(t.service_name),j=(R(t.start_time)-f)/p*100,S=Math.max((t.duration_ms||0)/p*100,.5);return e.jsxs(e.Fragment,{children:[e.jsxs(l,{display:"flex",alignItems:"center",height:28,pl:`${n*ze}px`,pr:2,cursor:"pointer",bg:d?"accent.subtle":"canvas.default",borderBottom:"1px solid",borderColor:"border.muted",hover:{bg:d?"accent.subtle":"canvas.subtle"},onClick:()=>i?.(t),children:[e.jsx(l,{width:20,textAlign:"center",color:"fg.muted",userSelect:"none",flexShrink:0,cursor:u?"pointer":"default",onClick:g=>{g.stopPropagation(),u&&o(t.span_id)},children:u?h?e.jsx(F,{size:12}):e.jsx(L,{size:12}):e.jsx(c,{sx:{color:"fg.subtle",fontSize:0},children:"·"})}),e.jsx(l,{width:8,height:8,borderRadius:"50%",bg:m,flexShrink:0,mr:1}),e.jsx(c,{sx:{flex:"0 0 200px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:1,fontWeight:d?"bold":"normal"},title:`${t.service_name} / ${t.span_name}`,children:t.span_name}),e.jsx(l,{flex:1,position:"relative",height:12,bg:"canvas.subtle",borderRadius:1,mx:2,overflow:"hidden",children:e.jsx(l,{position:"absolute",left:`${j}%`,width:`${S}%`,height:"100%",bg:m,borderRadius:1,opacity:d?1:.7})}),e.jsx(c,{sx:{minWidth:60,textAlign:"right",fontSize:0,fontFamily:"mono",color:"fg.muted",flexShrink:0},children:G(t.duration_ms)})]}),u&&h&&t.children.map(g=>e.jsx(Z,{span:g,depth:n+1,selectedSpanId:r,onSelectSpan:i,expandedIds:a,toggleExpanded:o,traceMinTime:f,traceDuration:p},g.span_id))]})},Ie=({spans:t,selectedSpanId:n,onSelectSpan:r,defaultExpandDepth:i=2})=>{const a=x.useMemo(()=>{const d=new Set;function m(j,S){for(const g of j)S<i&&d.add(g.span_id),g.children&&m(g.children,S+1)}return m(t,0),d},[t,i]),[o,f]=x.useState(a),p=x.useCallback(d=>{f(m=>{const j=new Set(m);return j.has(d)?j.delete(d):j.add(d),j})},[]),{traceMinTime:u,traceDuration:h}=x.useMemo(()=>{let d=1/0,m=-1/0;function j(S){for(const g of S){const A=R(g.start_time),s=R(g.end_time);A<d&&(d=A),s>m&&(m=s),g.children&&j(g.children)}}return j(t),d===1/0?{traceMinTime:0,traceDuration:1}:{traceMinTime:d,traceDuration:m-d||1}},[t]);return t.length===0?e.jsx(l,{p:3,color:"fg.muted",textAlign:"center",children:e.jsx(c,{children:"No span tree to display."})}):e.jsxs(l,{width:"100%",overflow:"auto",children:[e.jsxs(l,{display:"flex",alignItems:"center",height:28,px:2,borderBottom:"2px solid",borderColor:"border.default",bg:"canvas.subtle",children:[e.jsx(l,{width:20}),e.jsx(l,{width:8,mr:1}),e.jsx(c,{sx:{flex:"0 0 200px",fontSize:0,fontWeight:"bold",color:"fg.muted",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Span"}),e.jsx(c,{sx:{flex:1,mx:2,fontSize:0,fontWeight:"bold",color:"fg.muted",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Timeline"}),e.jsx(c,{sx:{minWidth:60,textAlign:"right",fontSize:0,fontWeight:"bold",color:"fg.muted",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Duration"})]}),t.map(d=>e.jsx(Z,{span:d,depth:0,selectedSpanId:n,onSelectSpan:r,expandedIds:o,toggleExpanded:p,traceMinTime:u,traceDuration:h},d.span_id))]})},w=({label:t,value:n,mono:r=!1})=>n==null||n===""?null:e.jsxs(l,{display:"flex",py:1,borderBottom:"1px solid",borderColor:"border.muted",gap:2,children:[e.jsx(c,{sx:{width:140,minWidth:140,color:"fg.muted",fontSize:1,fontWeight:"bold"},children:t}),e.jsx(c,{sx:{fontSize:1,fontFamily:r?"mono":"normal",wordBreak:"break-all"},children:String(n)})]}),Y=({title:t,data:n,defaultOpen:r=!1})=>{const[i,a]=x.useState(r);return!n||Object.keys(n).length===0?null:e.jsxs(l,{mt:3,children:[e.jsxs(l,{display:"flex",alignItems:"center",gap:1,cursor:"pointer",py:1,userSelect:"none",onClick:()=>a(!i),children:[i?e.jsx(F,{size:16}):e.jsx(L,{size:16}),e.jsx(c,{sx:{fontSize:1,fontWeight:"bold"},children:t}),e.jsx(V,{children:Object.keys(n).length})]}),i&&e.jsx(l,{bg:"canvas.subtle",borderRadius:2,border:"1px solid",borderColor:"border.default",p:2,mt:1,overflowX:"auto",children:Object.entries(n).map(([o,f])=>e.jsx(W,{attrKey:o,value:f,depth:0},o))})]})};function Te(t){if(typeof t!="string")return t;const n=t.trim();if(!/^[[{]/.test(n))return t;try{const r=JSON.parse(n);return typeof r=="object"&&r!==null?r:t}catch{return t}}const W=({attrKey:t,value:n,depth:r})=>{const i=x.useMemo(()=>Te(n),[n]),[a,o]=x.useState(r<1),f=typeof i=="object"&&i!==null&&!Array.isArray(i),p=Array.isArray(i),u=f||p;return e.jsxs(l,{borderBottom:r===0?"1px solid":"none",borderColor:"border.muted",pb:r===0?1:0,mb:r===0?1:0,children:[e.jsxs(l,{display:"flex",gap:2,py:1,pl:r*16+"px",alignItems:"flex-start",children:[u?e.jsx(l,{cursor:"pointer",color:"fg.muted",userSelect:"none",width:16,flexShrink:0,onClick:()=>o(!a),children:a?e.jsx(F,{size:12}):e.jsx(L,{size:12})}):e.jsx(l,{width:16,flexShrink:0}),e.jsx(c,{sx:{color:"accent.fg",fontSize:1,fontFamily:"mono",minWidth:180,wordBreak:"break-all",flexShrink:0},children:t}),!u&&e.jsx(c,{sx:{fontSize:1,fontFamily:"mono",whiteSpace:"pre-wrap",wordBreak:"break-word",color:typeof i=="string"?"accent.emphasis":"attention.fg"},children:typeof i=="string"?i:JSON.stringify(i)}),u&&!a&&e.jsx(c,{sx:{fontSize:0,color:"fg.muted",fontFamily:"mono"},children:p?`[${i.length} items]`:`{${Object.keys(i).length} keys}`})]}),u&&a&&e.jsx(l,{children:p?i.map((h,d)=>e.jsx(W,{attrKey:`[${d}]`,value:h,depth:r+1},d)):Object.entries(i).map(([h,d])=>e.jsx(W,{attrKey:h,value:d,depth:r+1},h))})]})},Ae=({span:t,traceSpans:n,onClose:r})=>{const[i,a]=x.useState("details");if(!t)return e.jsx(l,{p:5,color:"fg.muted",textAlign:"center",children:e.jsx(c,{children:"Select a span to view details."})});const o={},f={};if(t.attributes)for(const[u,h]of Object.entries(t.attributes))u.startsWith("gen_ai.")||u.startsWith("model_request")?o[u]=h:f[u]=h;const p=n&&n.length>0?Q(n):void 0;return e.jsxs(l,{height:"100%",overflow:"auto",borderLeft:"1px solid",borderColor:"border.default",bg:"canvas.default",display:"flex",flexDirection:"column",children:[e.jsxs(l,{px:3,py:2,borderBottom:"1px solid",borderColor:"border.default",display:"flex",justifyContent:"space-between",alignItems:"center",bg:"canvas.subtle",flexShrink:0,children:[e.jsx(c,{sx:{fontSize:2,fontWeight:"bold"},children:t.span_name}),r&&e.jsx(oe,{icon:le,"aria-label":"Close detail panel",variant:"invisible",size:"small",onClick:r})]}),e.jsxs($,{"aria-label":"Span detail tabs",children:[e.jsx($.Item,{"aria-current":i==="details"?"page":void 0,onClick:()=>a("details"),children:"Details"}),p&&e.jsx($.Item,{"aria-current":i==="tree"?"page":void 0,onClick:()=>a("tree"),children:"Trace Tree"}),e.jsx($.Item,{"aria-current":i==="raw"?"page":void 0,onClick:()=>a("raw"),children:"Raw Data"})]}),e.jsxs(l,{flex:1,overflow:"auto",children:[i==="details"&&e.jsxs(l,{p:3,children:[e.jsx(w,{label:"span_name",value:t.span_name}),e.jsx(w,{label:"service_name",value:t.service_name}),e.jsx(w,{label:"otel_scope_name",value:t.otel_scope_name}),e.jsx(w,{label:"kind",value:t.kind}),e.jsx(w,{label:"trace_id",value:t.trace_id,mono:!0}),e.jsx(w,{label:"span_id",value:t.span_id,mono:!0}),e.jsx(w,{label:"parent_span_id",value:t.parent_span_id,mono:!0}),e.jsx(w,{label:"duration",value:G(t.duration_ms)}),e.jsx(w,{label:"start_time",value:t.start_time,mono:!0}),e.jsx(w,{label:"end_time",value:t.end_time,mono:!0}),e.jsx(w,{label:"status_code",value:t.status_code}),e.jsx(w,{label:"status_message",value:t.status_message}),e.jsx(Y,{title:"Arguments",data:o,defaultOpen:Object.keys(o).length>0}),e.jsx(Y,{title:"Attributes",data:f}),t.events&&t.events.length>0&&e.jsxs(l,{mt:3,children:[e.jsxs(l,{display:"flex",alignItems:"center",gap:1,children:[e.jsx(c,{sx:{fontWeight:"bold",fontSize:1},children:"Events"}),e.jsx(V,{children:t.events.length})]}),t.events.map((u,h)=>e.jsxs(l,{bg:"canvas.subtle",borderRadius:2,border:"1px solid",borderColor:"border.default",p:2,mt:2,children:[e.jsxs(l,{display:"flex",gap:2,children:[e.jsx(D,{children:u.name}),e.jsx(c,{sx:{fontSize:0,color:"fg.muted",fontFamily:"mono"},children:u.timestamp})]}),u.attributes&&Object.keys(u.attributes).length>0&&e.jsx(l,{mt:1,children:Object.entries(u.attributes).map(([d,m])=>e.jsx(W,{attrKey:d,value:m,depth:0},d))})]},h))]}),t.links&&t.links.length>0&&e.jsxs(l,{mt:3,children:[e.jsxs(l,{display:"flex",alignItems:"center",gap:1,children:[e.jsx(c,{sx:{fontWeight:"bold",fontSize:1},children:"Links"}),e.jsx(V,{children:t.links.length})]}),t.links.map((u,h)=>e.jsxs(c,{sx:{display:"block",fontSize:1,fontFamily:"mono",py:1,borderBottom:"1px solid",borderColor:"border.muted"},children:["trace: ",u.trace_id," → span: ",u.span_id]},h))]})]}),i==="tree"&&p&&e.jsx(Ie,{spans:p,selectedSpanId:t.span_id,defaultExpandDepth:4}),i==="raw"&&e.jsx(l,{as:"pre",p:3,fontSize:0,fontFamily:"mono",whiteSpace:"pre-wrap",wordBreak:"break-word",m:0,bg:"canvas.subtle",children:JSON.stringify(t,null,2)})]})]})},Oe=[{label:"Service",value:t=>t.service_name},{label:"Kind",value:t=>t.kind}];function Ne(t,n,r){return t.filter(i=>n.every((a,o)=>{const f=r[o];if(!f?.size)return!0;const p=a.value(i);return p!==void 0&&f.has(p)}))}function Ee(t,n){const r=new Set(t);return r.has(n)?r.delete(n):r.add(n),r}function Re({facet:t,options:n,selected:r,onChange:i}){const a=t.name??(o=>o);return e.jsxs(H,{children:[e.jsxs(H.Button,{size:"small","data-otel-facet":t.label.toLowerCase(),children:[t.label,r.size?` · ${r.size}`:""]}),e.jsx(H.Overlay,{width:"auto",children:e.jsxs(M,{selectionVariant:"multiple","aria-label":t.label,children:[e.jsx(M.Item,{selected:!r.size,onSelect:()=>i(new Set),children:"All"}),e.jsx(M.Divider,{}),n.map(o=>e.jsx(M.Item,{selected:r.has(o),onSelect:()=>i(Ee(r,o)),children:a(o)},o))]})})]})}function Me(t,n){const r=new Blob([JSON.stringify(n,null,2)],{type:"application/json"}),i=URL.createObjectURL(r),a=document.createElement("a");a.href=i,a.download=`${t}.json`,a.click(),setTimeout(()=>URL.revokeObjectURL(i),1e3)}const Be=({tracer:t,spans:n,service:r,facets:i=Oe,compact:a=!1,maxHeight:o=420,detailPlacement:f="below",emptyText:p="Nothing recorded yet.",exportName:u="otel-spans",label:h="Spans",renderSpanMark:d,describeSpan:m})=>{const j=we(n?null:t),S=n??j,[g,A]=x.useState(0),[s,y]=x.useState(null),[b,O]=x.useState(()=>i.map(()=>new Set)),[v,T]=x.useState(null),C=x.useMemo(()=>{const _=Se(S,r);return g?_.filter(z=>R(z.start_time)>=g):_},[S,r,g]),k=s??C,I=s?C.length-s.length:0,ee=x.useMemo(()=>i.map(_=>[...new Set(C.map(z=>_.value(z)).filter(z=>z!==void 0))].sort()),[i,C]),N=x.useMemo(()=>Ne(k,i,b),[k,i,b]),E=x.useMemo(()=>v?S.find(_=>_.span_id===v)??null:null,[S,v]),te=x.useMemo(()=>E?S.filter(_=>_.trace_id===E.trace_id):[],[S,E]),P=f==="side"&&!a;return e.jsxs(l,{"data-otel-live-spans":"",border:"1px solid",borderColor:"border.default",borderRadius:2,bg:"canvas.default",color:"fg.default",minWidth:0,children:[e.jsxs(l,{role:"toolbar","aria-label":h,display:"flex",flexWrap:"wrap",gap:2,alignItems:"center",p:2,borderBottom:"1px solid",borderColor:"border.default",children:[i.map((_,z)=>e.jsx(Re,{facet:_,options:ee[z]??[],selected:b[z]??new Set,onChange:ne=>O(re=>i.map((We,J)=>J===z?ne:re[J]??new Set))},_.label)),e.jsx(l,{flex:1}),e.jsxs(c,{sx:{fontSize:0,color:"fg.muted"},"data-otel-span-count":"",children:[N.length===k.length?`${N.length} ${N.length===1?"span":"spans"}`:`${N.length} of ${k.length}`,I>0?` · ${I} new`:""]}),e.jsx(U,{size:"small",leadingVisual:s?ae:de,"aria-pressed":s!==null,onClick:()=>y(s?null:C),"data-otel-pause":"",children:s?"Resume":"Pause"}),e.jsx(U,{size:"small",leadingVisual:ce,onClick:()=>{y(null),T(null),t&&!n&&!r?t.clear():A(Date.now())},"data-otel-clear":"",children:"Clear"}),e.jsx(U,{size:"small",leadingVisual:ue,disabled:!C.length,onClick:()=>Me(u,{exportedAt:new Date().toISOString(),spans:[...C]}),"data-otel-export":"",children:"Export"})]}),e.jsxs(l,{display:P?"grid":"block",gridTemplateColumns:P?"minmax(0, 3fr) minmax(0, 2fr)":void 0,children:[e.jsx(l,{maxHeight:o,overflowY:"auto",minWidth:0,children:e.jsx(Ce,{spans:N,selectedSpanId:v,onSelectSpan:_=>T(_.span_id),emptyText:p,compact:a,defaultExpanded:!0,renderSpanMark:d,describeSpan:m})}),E&&e.jsx(l,{"data-otel-live-detail":"",maxHeight:o,overflowY:"auto",minWidth:0,borderTop:P?"none":"1px solid",borderColor:"border.default",children:e.jsx(Ae,{span:E,traceSpans:te,onClose:()=>T(null)})})]})]})},$e=[{label:"Source",value:xe,name:t=>fe[t]??t},{label:"Operation",value:t=>{const n=t.attributes??{},r=n[K.operation]??n["rpc.method"];return r===void 0?void 0:String(r)}},{label:"Agent",value:t=>t.service_name}];function De(t){const n=t.attributes?.[K.markIcon],r=t.attributes?.[K.markEmoji];return n||r?e.jsx(he,{icon:typeof n=="string"?n:void 0,emoji:typeof r=="string"?r:void 0,size:14}):null}function Pe({tracer:t,spans:n,agent:r,maxHeight:i=420,compact:a=!1,emptyText:o="Nothing recorded yet.",exportName:f="agent-inspector"}){return e.jsx("div",{"data-agent-inspector":r??"",children:e.jsx(Be,{tracer:t,spans:n,service:r,facets:$e,compact:a,maxHeight:i,detailPlacement:"side",emptyText:o,exportName:f,label:r?`${r}'s Agent Inspector`:"Agent Inspector",renderSpanMark:De,describeSpan:pe})})}export{$e as AGENT_INSPECTOR_FACETS,Pe as AgentInspector,Pe as default};
|