@intent-hq/web 2.320.0 → 2.321.0
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/package.json +1 -1
- package/web/app/immutable/chunks/{4o1DPfmL.js → -x_SoK5J.js} +1 -1
- package/web/app/immutable/chunks/{DYRPk2Lc.js → 0Orrh1Id.js} +6 -6
- package/web/app/immutable/chunks/{BBHcEtpr.js → 0TFOtiMK.js} +1 -1
- package/web/app/immutable/chunks/{DrzXjqzo.js → 0x0gscua.js} +1 -1
- package/web/app/immutable/chunks/{D2Hsf4lo.js → 45y_L1a9.js} +1 -1
- package/web/app/immutable/chunks/{CVQvxrRM.js → 4iRc0E9v.js} +1 -1
- package/web/app/immutable/chunks/{CCvXttvr.js → 5MGYaOe_.js} +1 -1
- package/web/app/immutable/chunks/{DCnWoCId.js → 5QXDo1_h.js} +1 -1
- package/web/app/immutable/chunks/{VlQJw7Mt.js → 6cxhz2FS.js} +1 -1
- package/web/app/immutable/chunks/{Bw5FiD-Y.js → 7fl6VDRo.js} +1 -1
- package/web/app/immutable/chunks/{D1xDyaMF.js → 8OpKoiOO.js} +1 -1
- package/web/app/immutable/chunks/{Bfb5WFg3.js → 8biy-UQv.js} +1 -1
- package/web/app/immutable/chunks/{H3thz4A8.js → Ab2YxsyL.js} +1 -1
- package/web/app/immutable/chunks/{CAoY2-K6.js → B-WefpDP.js} +1 -1
- package/web/app/immutable/chunks/{DsF7snTf.js → B0FM877X.js} +1 -1
- package/web/app/immutable/chunks/{XppZ9Q2A.js → B0FYEeEw.js} +1 -1
- package/web/app/immutable/chunks/{CpEHCOut.js → B0JWnOsx.js} +1 -1
- package/web/app/immutable/chunks/{C0Eg_x6y.js → B0pgN3Jj.js} +1 -1
- package/web/app/immutable/chunks/{dTdCS8d7.js → B1WyTcs2.js} +3 -3
- package/web/app/immutable/chunks/{CgN5SAW1.js → B2c_0_UD.js} +2 -2
- package/web/app/immutable/chunks/{BtxYdCDO.js → B2yYgkwz.js} +1 -1
- package/web/app/immutable/chunks/{Dyftr3KP.js → B5nbjbRb.js} +1 -1
- package/web/app/immutable/chunks/{Cmsg1-Jz.js → B6DUgu-2.js} +1 -1
- package/web/app/immutable/chunks/{BpzYGtC7.js → B7BTR3Z_.js} +1 -1
- package/web/app/immutable/chunks/{eeOO6ePS.js → B9MBednq.js} +1 -1
- package/web/app/immutable/chunks/{GzyujEXJ.js → BBZiE97y.js} +1 -1
- package/web/app/immutable/chunks/{CjOd6IrN.js → BBeErNG6.js} +1 -1
- package/web/app/immutable/chunks/{CwKQMp5y.js → BC1v75_H.js} +1 -1
- package/web/app/immutable/chunks/{D02FkLBh.js → BD8I8FK1.js} +1 -1
- package/web/app/immutable/chunks/{gV7ZxrZ2.js → BDgfVkJh.js} +1 -1
- package/web/app/immutable/chunks/{CZy8s0G0.js → BEQ_aNVt.js} +2 -2
- package/web/app/immutable/chunks/{C-_w8CdN.js → BG-UHIO1.js} +2 -2
- package/web/app/immutable/chunks/{DgIrJ3hH.js → BGFrQA7m.js} +1 -1
- package/web/app/immutable/chunks/{BJDDeVIO.js → BGiTQR4x.js} +1 -1
- package/web/app/immutable/chunks/{BwTXFSMC.js → BLhWzQz2.js} +1 -1
- package/web/app/immutable/chunks/{hIpW6zoP.js → BM51eWC-.js} +1 -1
- package/web/app/immutable/chunks/{DpAML2LZ.js → BMH4mbSd.js} +2 -2
- package/web/app/immutable/chunks/{CPgvYNNr.js → BMc6OzJ-.js} +2 -2
- package/web/app/immutable/chunks/{CI_jzrtS.js → BMvbnoDk.js} +1 -1
- package/web/app/immutable/chunks/{CAidTZMG.js → BOaNSc_1.js} +1 -1
- package/web/app/immutable/chunks/{go1cucdf.js → BOrghaSd.js} +2 -2
- package/web/app/immutable/chunks/{DDRNgELR.js → BPp7FHiR.js} +1 -1
- package/web/app/immutable/chunks/{BI6L4fKK.js → BS5yagDq.js} +1 -1
- package/web/app/immutable/chunks/{D5mrdrwv.js → BWHu0fap.js} +1 -1
- package/web/app/immutable/chunks/{CT5WLLvq.js → BX-dt_Uh.js} +1 -1
- package/web/app/immutable/chunks/{CR6gKG-r.js → BXPwex0u.js} +1 -1
- package/web/app/immutable/chunks/{CDFwOYFZ.js → BXean12D.js} +1 -1
- package/web/app/immutable/chunks/{Cl6HYldG.js → BZyfa8QR.js} +1 -1
- package/web/app/immutable/chunks/{C5i434eU.js → BbCn81lZ.js} +1 -1
- package/web/app/immutable/chunks/{D2MFHl3c.js → Bc-CUZMV.js} +1 -1
- package/web/app/immutable/chunks/{DHup9Hyk.js → Bcc7Bzbg.js} +1 -1
- package/web/app/immutable/chunks/{D33mZ1q4.js → BcpqnYRX.js} +5 -5
- package/web/app/immutable/chunks/{CI-6MxKa.js → BdWpSBC4.js} +2 -2
- package/web/app/immutable/chunks/{CLHEbYRj.js → BeqbwVaJ.js} +1 -1
- package/web/app/immutable/chunks/{DgDI47Tl.js → BflC9e-C.js} +1 -1
- package/web/app/immutable/chunks/{DSP3ClFU.js → Bgw4M5Hc.js} +1 -1
- package/web/app/immutable/chunks/{lzfQOUtM.js → Bi4OiJD3.js} +1 -1
- package/web/app/immutable/chunks/{DpTF0OML.js → BkR5Qiti.js} +1 -1
- package/web/app/immutable/chunks/{CWHiycVZ.js → Bknqawxe.js} +1 -1
- package/web/app/immutable/chunks/{CK5TbVXs.js → Bm_1OUSw.js} +1 -1
- package/web/app/immutable/chunks/{DVX1HL-4.js → Bmmshx2M.js} +1 -1
- package/web/app/immutable/chunks/{DYepVMa7.js → Bo4s1kgI.js} +3 -3
- package/web/app/immutable/chunks/{D_FHOcPH.js → Bok30zBH.js} +1 -1
- package/web/app/immutable/chunks/{5REd_oE3.js → BsB3ty-n.js} +1 -1
- package/web/app/immutable/chunks/{i6Mg1Q2O.js → BtTBXjdJ.js} +1 -1
- package/web/app/immutable/chunks/{r2I2bB7k.js → BtWwzwrf.js} +1 -1
- package/web/app/immutable/chunks/{D8UQMJEh.js → BvkV35-O.js} +1 -1
- package/web/app/immutable/chunks/{fUyHJpWx.js → BwICfRz9.js} +1 -1
- package/web/app/immutable/chunks/{CfpYQrWa.js → BwYRCP9e.js} +1 -1
- package/web/app/immutable/chunks/{B_dSJdhc.js → ByKL05wN.js} +1 -1
- package/web/app/immutable/chunks/{afj8l-L0.js → Byv2GcxJ.js} +2 -2
- package/web/app/immutable/chunks/{D-NAfI6p.js → BziQ6zwo.js} +1 -1
- package/web/app/immutable/chunks/{SrOLwB5L.js → C-RJDuZ9.js} +1 -1
- package/web/app/immutable/chunks/{BsWKC22i.js → C-neqscP.js} +1 -1
- package/web/app/immutable/chunks/{DHbAKa61.js → C06rhFz-.js} +1 -1
- package/web/app/immutable/chunks/{Bd9YcJpJ.js → C0VXEpDj.js} +1 -1
- package/web/app/immutable/chunks/{ivVGXMNS.js → C0mBOV7w.js} +1 -1
- package/web/app/immutable/chunks/{B9MzVcgv.js → C11XjPnf.js} +3 -3
- package/web/app/immutable/chunks/{C7VzwASa.js → C3AKbypo.js} +6 -6
- package/web/app/immutable/chunks/{8AEPB8vg.js → C3lgqjB4.js} +1 -1
- package/web/app/immutable/chunks/{C_nueLij.js → C5aeZ3Yo.js} +2 -2
- package/web/app/immutable/chunks/{Bk4gFCP5.js → C6-BVYMv.js} +1 -1
- package/web/app/immutable/chunks/C76-jvlr.js +19 -0
- package/web/app/immutable/chunks/{CIO13o1_.js → C7JWgw8J.js} +3 -3
- package/web/app/immutable/chunks/{DLX1zpqU.js → C804xHCz.js} +1 -1
- package/web/app/immutable/chunks/{DdteGby8.js → C8xPpxcv.js} +1 -1
- package/web/app/immutable/chunks/{BoUhyyfU.js → C8zzua9V.js} +1 -1
- package/web/app/immutable/chunks/{P_873CiZ.js → CAgY0H5Q.js} +1 -1
- package/web/app/immutable/chunks/{ApbPdiAE.js → CBxbaIvA.js} +1 -1
- package/web/app/immutable/chunks/CCaX_DIa.js +1 -0
- package/web/app/immutable/chunks/{7z2H_RtS.js → CCnP87Jb.js} +1 -1
- package/web/app/immutable/chunks/{DUBITB6h.js → CCsRc7xx.js} +1 -1
- package/web/app/immutable/chunks/{BFslYMdM.js → CDsY8gY8.js} +1 -1
- package/web/app/immutable/chunks/{BjK8NxLQ.js → CEFpGNTq.js} +1 -1
- package/web/app/immutable/chunks/{V4Dt-iuy.js → CEj75uMJ.js} +1 -1
- package/web/app/immutable/chunks/{DFelFjwN.js → CG9qWr93.js} +3 -3
- package/web/app/immutable/chunks/{DjfcjPFA.js → CGBBhq8k.js} +1 -1
- package/web/app/immutable/chunks/{DU9iEtZ1.js → CGIf2jXM.js} +1 -1
- package/web/app/immutable/chunks/{B02JUP96.js → CGVJO4eq.js} +1 -1
- package/web/app/immutable/chunks/{ipFV2AXr.js → CHM5tGJ6.js} +1 -1
- package/web/app/immutable/chunks/CHRkLzGl.js +1 -0
- package/web/app/immutable/chunks/{D7X4cgrV.js → CHZAzCO9.js} +2 -2
- package/web/app/immutable/chunks/{BuOFVkeK.js → CIh8Ybhq.js} +1 -1
- package/web/app/immutable/chunks/{BUQv-rGq.js → CKO4faLg.js} +1 -1
- package/web/app/immutable/chunks/{Hl0p8Y_K.js → CKwPlZ66.js} +1 -1
- package/web/app/immutable/chunks/{BYWZOhBp.js → CLmrIbfi.js} +1 -1
- package/web/app/immutable/chunks/{qBcLa7Zb.js → CM7Hb3PZ.js} +1 -1
- package/web/app/immutable/chunks/{BcyYpopU.js → CN70DRE5.js} +1 -1
- package/web/app/immutable/chunks/{B_BXfNyq.js → CPKLysog.js} +1 -1
- package/web/app/immutable/chunks/CRyHSgI1.js +1 -0
- package/web/app/immutable/chunks/{EJCOdspF.js → CS7dHtKw.js} +1 -1
- package/web/app/immutable/chunks/{XL81JlY3.js → CTlGDL05.js} +1 -1
- package/web/app/immutable/chunks/{DkrIcKd4.js → CVjlpAWj.js} +3 -3
- package/web/app/immutable/chunks/{vnFqKiHP.js → CVrH3Neh.js} +1 -1
- package/web/app/immutable/chunks/{D7ZBvVv7.js → CXIZuwd7.js} +1 -1
- package/web/app/immutable/chunks/{T8ZYfg6I.js → CY9IKMQG.js} +1 -1
- package/web/app/immutable/chunks/{D_tUKjY4.js → CYOvUFvY.js} +1 -1
- package/web/app/immutable/chunks/{BPBgxP_m.js → CZEWv-Gf.js} +1 -1
- package/web/app/immutable/chunks/{jiIr1QvR.js → C_Vz3LCC.js} +1 -1
- package/web/app/immutable/chunks/{_GzLh8om.js → Cb3FWEmc.js} +1 -1
- package/web/app/immutable/chunks/{HxY68xDO.js → Cbqk5Mud.js} +1 -1
- package/web/app/immutable/chunks/{BkH6TsO0.js → CchM71Qw.js} +1 -1
- package/web/app/immutable/chunks/{RBSqSYOo.js → CdGIN-T1.js} +3 -3
- package/web/app/immutable/chunks/{DaNWGYoy.js → CdVKa6AF.js} +2 -2
- package/web/app/immutable/chunks/{DHA6UXAH.js → Ced26xBL.js} +1 -1
- package/web/app/immutable/chunks/{DukwQosN.js → Ci959ZOg.js} +1 -1
- package/web/app/immutable/chunks/{Uvf6CZvV.js → Cja4W1Zb.js} +4 -4
- package/web/app/immutable/chunks/{DtL3mwiX.js → CmAVmm3T.js} +1 -1
- package/web/app/immutable/chunks/CmYXfe7_.js +1 -0
- package/web/app/immutable/chunks/{5-cDqrnd.js → CoUfnBeR.js} +1 -1
- package/web/app/immutable/chunks/{4PQMLe8m.js → Cq6ekj5I.js} +1 -1
- package/web/app/immutable/chunks/{C_Jtint5.js → CqGkRJXi.js} +1 -1
- package/web/app/immutable/chunks/{BEqt0QSe.js → Cqay3Iio.js} +1 -1
- package/web/app/immutable/chunks/{B1r9HFnN.js → CsqvO7xN.js} +1 -1
- package/web/app/immutable/chunks/{DQhHyGm2.js → Ctggj9Y1.js} +1 -1
- package/web/app/immutable/chunks/{CTIoKRdg.js → Cts399i7.js} +1 -1
- package/web/app/immutable/chunks/{TRcwahzR.js → CulY8r4s.js} +1 -1
- package/web/app/immutable/chunks/{0S9IxBYm.js → CvBuWqyP.js} +4 -4
- package/web/app/immutable/chunks/{DB531Hr_.js → CvegPRPp.js} +2 -2
- package/web/app/immutable/chunks/{DFlMJdQz.js → Cwv7iryQ.js} +1 -1
- package/web/app/immutable/chunks/{BFPcVXtw.js → CxQ0SCX2.js} +1 -1
- package/web/app/immutable/chunks/{DZxiqmZj.js → CxZuxrAL.js} +1 -1
- package/web/app/immutable/chunks/{BxsS3mXG.js → Cz8iOYm8.js} +1 -1
- package/web/app/immutable/chunks/{CFBBhrkC.js → CztKENY4.js} +1 -1
- package/web/app/immutable/chunks/{CxGR0S3R.js → D26IPp5S.js} +1 -1
- package/web/app/immutable/chunks/{DfBOHkPz.js → D2iCI9dn.js} +1 -1
- package/web/app/immutable/chunks/{CSY5tujD.js → D2zJp5fS.js} +29 -29
- package/web/app/immutable/chunks/{Bv-JB2Uu.js → D4e2w8TP.js} +1 -1
- package/web/app/immutable/chunks/{BDWwvOsS.js → D5lr7eae.js} +2 -2
- package/web/app/immutable/chunks/{9Lm8k_8r.js → D6dCvfQe.js} +1 -1
- package/web/app/immutable/chunks/{CMeoq2YD.js → D7q-DSVP.js} +1 -1
- package/web/app/immutable/chunks/{Bq8HB3qA.js → D84A4J8d.js} +1 -1
- package/web/app/immutable/chunks/{B2RDqcyK.js → DDdLPEvL.js} +1 -1
- package/web/app/immutable/chunks/{DU9yd1xn.js → DDnwQoVq.js} +1 -1
- package/web/app/immutable/chunks/{MJGmlCLu.js → DFcwI6Rh.js} +1 -1
- package/web/app/immutable/chunks/{DyyCDL26.js → DFyBaL9d.js} +1 -1
- package/web/app/immutable/chunks/{CCmXROuj.js → DI4wCe7O.js} +1 -1
- package/web/app/immutable/chunks/{DSbw-nyW.js → DJKXcaw9.js} +1 -1
- package/web/app/immutable/chunks/{DIitBWg3.js → DMRQ6CDd.js} +2 -2
- package/web/app/immutable/chunks/{i3h2CX4F.js → DMvfzQWM.js} +1 -1
- package/web/app/immutable/chunks/{D0rBJOMA.js → DNFHGDC9.js} +1 -1
- package/web/app/immutable/chunks/{R6dAjEem.js → DNNMwmDG.js} +1 -1
- package/web/app/immutable/chunks/{CZ5Pr0zI.js → DOzF5uE-.js} +1 -1
- package/web/app/immutable/chunks/{DDdEHmdT.js → DPoarPZL.js} +1 -1
- package/web/app/immutable/chunks/{273-ejOd.js → DR4i54x0.js} +1 -1
- package/web/app/immutable/chunks/{CHGuZ9fZ.js → DRpDjwRs.js} +1 -1
- package/web/app/immutable/chunks/{BvnODxCP.js → DS2Q5gr9.js} +1 -1
- package/web/app/immutable/chunks/{B-ukGsyU.js → DSdY0J1g.js} +1 -1
- package/web/app/immutable/chunks/{BYA94DCT.js → DXySew1R.js} +1 -1
- package/web/app/immutable/chunks/{C72zM9oE.js → DYfBNrOV.js} +1 -1
- package/web/app/immutable/chunks/{CCghBHzC.js → DYhpST_X.js} +1 -1
- package/web/app/immutable/chunks/{QeTaV4Op.js → DZAWjsA4.js} +1 -1
- package/web/app/immutable/chunks/{CBE9bOjQ.js → DZtstCLQ.js} +1 -1
- package/web/app/immutable/chunks/{sZnxO3Td.js → D_HysCp7.js} +1 -1
- package/web/app/immutable/chunks/{BOypJjQg.js → Dd0rdLMI.js} +1 -1
- package/web/app/immutable/chunks/{CwSP6heW.js → Dd7A9glX.js} +1 -1
- package/web/app/immutable/chunks/{Ci8maFTk.js → Dgqdx3pd.js} +1 -1
- package/web/app/immutable/chunks/{Ca0VZzWN.js → DhtKWu39.js} +1 -1
- package/web/app/immutable/chunks/{BBvT7Bb8.js → Dix9BiYu.js} +1 -1
- package/web/app/immutable/chunks/{CtugIh5q.js → DjqPgoUP.js} +1 -1
- package/web/app/immutable/chunks/DlBxdhh5.js +2 -0
- package/web/app/immutable/chunks/{CgQiyraX.js → DlZzAKZ2.js} +1 -1
- package/web/app/immutable/chunks/{PsUBRXJ6.js → DnfX8iZ_.js} +1 -1
- package/web/app/immutable/chunks/Dritbi2C.js +6 -0
- package/web/app/immutable/chunks/{BlAtH_I1.js → DsRLPs6I.js} +10 -10
- package/web/app/immutable/chunks/{DVijqcE1.js → Du7yAEgM.js} +1 -1
- package/web/app/immutable/chunks/{BivhoPt2.js → DuMlpvYZ.js} +1 -1
- package/web/app/immutable/chunks/{CvfkUn8M.js → DwNzQjT_.js} +1 -1
- package/web/app/immutable/chunks/{Dyr9OHj8.js → DwsRDnkS.js} +4 -4
- package/web/app/immutable/chunks/{C7K9s96B.js → DyVNmy1r.js} +1 -1
- package/web/app/immutable/chunks/{IwQXvQKq.js → I0eHZGMz.js} +1 -1
- package/web/app/immutable/chunks/{D1zDcaZa.js → JfyBNQs2.js} +1 -1
- package/web/app/immutable/chunks/{YGDnq71P.js → NeHKo0ZG.js} +1 -1
- package/web/app/immutable/chunks/{DCXOZ-cm.js → O0CxvO89.js} +1 -1
- package/web/app/immutable/chunks/{DudXAl_N.js → Ob5NWDgS.js} +1 -1
- package/web/app/immutable/chunks/{DEbxL_K_.js → PUalo3UE.js} +1 -1
- package/web/app/immutable/chunks/{DXjHY2hF.js → QGE3iD8D.js} +1 -1
- package/web/app/immutable/chunks/{_p09hiud.js → QSR6vsk4.js} +1 -1
- package/web/app/immutable/chunks/{9tzjcklF.js → QjpXu0Du.js} +1 -1
- package/web/app/immutable/chunks/{CPObUSo8.js → UEd-gngc.js} +1 -1
- package/web/app/immutable/chunks/VEkj47bo.js +1 -0
- package/web/app/immutable/chunks/{V7Hjifys.js → VeIqG7dc.js} +4 -4
- package/web/app/immutable/chunks/{j3QkolT-.js → XF_IbTR1.js} +3 -3
- package/web/app/immutable/chunks/{CcVvQKcJ.js → XV0T3w4n.js} +1 -1
- package/web/app/immutable/chunks/{Dzu_kyuP.js → YO4PhogQ.js} +1 -1
- package/web/app/immutable/chunks/{BLl4jbbs.js → aLZSbque.js} +2 -2
- package/web/app/immutable/chunks/{DkBn6nxi.js → csuWDYc9.js} +1 -1
- package/web/app/immutable/chunks/{CnlzKY2y.js → dmSYAakE.js} +1 -1
- package/web/app/immutable/chunks/eK7OULll.js +1 -0
- package/web/app/immutable/chunks/{ZPW-9-jj.js → gCXIPBa3.js} +1 -1
- package/web/app/immutable/chunks/{Rut-2pZ8.js → hxIWaKu8.js} +1 -1
- package/web/app/immutable/chunks/{C3lmZVdU.js → jMKjj8ae.js} +1 -1
- package/web/app/immutable/chunks/{Dpk7e0gp.js → jvHJQ-Xz.js} +1 -1
- package/web/app/immutable/chunks/{e5uo7mZH.js → k4eU_FWk.js} +1 -1
- package/web/app/immutable/chunks/{BigdBsL9.js → nLw8YrmA.js} +1 -1
- package/web/app/immutable/chunks/{C95LwPTq.js → nR16njgN.js} +1 -1
- package/web/app/immutable/chunks/{Dld3dCA-.js → o5rEX9Xy.js} +1 -1
- package/web/app/immutable/chunks/{B30Ssr1r.js → p5gLe3PS.js} +1 -1
- package/web/app/immutable/chunks/{DUTF8GiF.js → pnKMO5U0.js} +53 -53
- package/web/app/immutable/chunks/{BV8VDu62.js → reR1kPlm.js} +1 -1
- package/web/app/immutable/chunks/{BwfkZxtl.js → tGqA6xQ9.js} +1 -1
- package/web/app/immutable/chunks/uLB4Kp9c.js +1 -0
- package/web/app/immutable/chunks/{rytmH58N.js → ubLEbEcV.js} +1 -1
- package/web/app/immutable/chunks/{BrMxn35B.js → uyOfKmty.js} +3 -3
- package/web/app/immutable/chunks/{DVRDTT5s.js → vUGF5JqJ.js} +1 -1
- package/web/app/immutable/chunks/{DamIfQPR.js → vzGm0J_h.js} +1 -1
- package/web/app/immutable/chunks/{Dlalsrb2.js → w6mFE4SD.js} +1 -1
- package/web/app/immutable/chunks/{DQyFaFhy.js → z3QVK190.js} +2 -2
- package/web/app/immutable/entry/{app.D1_zvf06.js → app.PHHlgSoZ.js} +3 -3
- package/web/app/immutable/entry/start.Cltn4m6a.js +1 -0
- package/web/app/immutable/nodes/{0.DncqPHfM.js → 0.D7bJjS_y.js} +1 -1
- package/web/app/immutable/nodes/{1.C0XLYfok.js → 1.B3gH8FG5.js} +1 -1
- package/web/app/immutable/nodes/{10.FOhcPF7P.js → 10.NQcSgQgq.js} +4 -4
- package/web/app/immutable/nodes/{11.DNy1N3E_.js → 11.Drfz7PRj.js} +1 -1
- package/web/app/immutable/nodes/{12.CkJqJXDQ.js → 12.gXokqM9g.js} +1 -1
- package/web/app/immutable/nodes/{13.BQO-XqRU.js → 13.DFxxGy6Y.js} +3 -3
- package/web/app/immutable/nodes/{14.CQ7rNDCc.js → 14.7T2ChNl_.js} +1 -1
- package/web/app/immutable/nodes/{15.Cul5GEsK.js → 15.CgEeXtgJ.js} +1 -1
- package/web/app/immutable/nodes/{16.D1YB7GYH.js → 16.CWrHY2VB.js} +2 -2
- package/web/app/immutable/nodes/{2.BdCIUUeK.js → 2.DQ6QcB9c.js} +8 -8
- package/web/app/immutable/nodes/{3.plIg2MFf.js → 3.Fjkgohv2.js} +1 -1
- package/web/app/immutable/nodes/{4.CcgVPTck.js → 4.D1BNF_ep.js} +1 -1
- package/web/app/immutable/nodes/{5.C_N4OtaU.js → 5.C5OySrRk.js} +2 -2
- package/web/app/immutable/nodes/{6.DGUZaYtw.js → 6.BrxG9qCf.js} +1 -1
- package/web/app/immutable/nodes/{7.C8AkEQkN.js → 7.CvdabbdY.js} +1 -1
- package/web/app/immutable/nodes/8.BSQtFfFS.js +15 -0
- package/web/app/immutable/nodes/{9.DgERn09Y.js → 9.D6DS9Z9f.js} +5 -5
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +18 -18
- package/web/app/immutable/chunks/4Qt-u50Z.js +0 -1
- package/web/app/immutable/chunks/BozAh4mR.js +0 -1
- package/web/app/immutable/chunks/C5NmOSh4.js +0 -2
- package/web/app/immutable/chunks/C7-4lB53.js +0 -6
- package/web/app/immutable/chunks/CsBJcTed.js +0 -1
- package/web/app/immutable/chunks/DZyoV8-g.js +0 -19
- package/web/app/immutable/chunks/DakbBhJV.js +0 -1
- package/web/app/immutable/chunks/DozYGPQ1.js +0 -1
- package/web/app/immutable/chunks/TWdtA8BC.js +0 -1
- package/web/app/immutable/chunks/nGAsq1_L.js +0 -1
- package/web/app/immutable/entry/start.UwzduGPr.js +0 -1
- package/web/app/immutable/nodes/8.Bib6c2R5.js +0 -15
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{t as oe,bq as st,a_ as at,bo as
|
|
2
|
-
hover:shadow transition-all cursor-pointer ${t(k)??""}`},get style(){return`width: 180px; height: 180px; anchor-name: --agent-hierarchy-${n().agentId??""};`},get onclick(){return v()},get onmouseenter(){return b()},get onmouseleave(){return N()},children:(D,Tt)=>{var Rt=an(),Lt=Ut(Rt),me=L(Lt);aa(me,{get agentId(){return n().agentId},variant:"emphasized",get state(){return t(Ft)},get specialist(){return n().specialist}}),$(Lt);var Zt=C(Lt,2),_e=K(Zt,!0),Jt=C(Zt,2),te=L(Jt);{var ye=ft=>{var r=
|
|
3
|
-
${t(f).subject??""}`)),_(U,Z)},G=U=>{var Z=Fe(),pt=K(Z);A(()=>B(pt,`${t(f).verb??""}...`)),_(U,Z)},z=U=>{var Z=Fe(),pt=K(Z,!0);A(Et=>B(pt,Et),[()=>
|
|
1
|
+
import{t as oe,bq as st,a_ as at,bo as Q,by as ie,bu as $t,bs as Me,b as ce}from"./eK7OULll.js";import{bs as le,a5 as L,bS as C,ay as Ut,aD as t,bA as $,bl as K,b_ as A,bO as B,W as _,bn as de,c9 as y,aA as rt,aB as O,bV as Mt,br as _a,aw as Be,aj as Ne,bH as V,ai as ya,be as Ia,b$ as xa,bf as wa,aC as he,a7 as De}from"./DYhIMPy1.js";import{k as Xt,I as ea,l as ne,h as jt,s as gt,i as Se,d as se}from"./DZtstCLQ.js";import{b as ba}from"./BaIAhI85.js";import{f as Yt}from"./CVjlpAWj.js";import{A as aa,ak as na,aj as sa}from"./D2zJp5fS.js";import"./p5gLe3PS.js";import{ak as ra,aB as oa,am as ka,an as Aa,ao as We,af as ia,c as $a,o as Ta,ds as Ca,aN as Na,ap as Sa}from"./C-RJDuZ9.js";import{R as Fa}from"./-x_SoK5J.js";import{F as pe,by as Oa,be as Ra,aB as Ma,aU as Wa,cz as Ba}from"./B0JWnOsx.js";import{H as Da}from"./Cja4W1Zb.js";import{e as La}from"./BdWpSBC4.js";import{s as Ea}from"./uyOfKmty.js";import{f as Pa}from"./Bknqawxe.js";import{c as St,HR as Oe,nl as Ga,fK as za,b_ as ja,rC as Ka,tK as Ha}from"./Bo4s1kgI.js";function qa(e){return e.type==="agent"}const Xa=180,Ua=180;var Le=O('<div class="activity-pill shrink-0 text-xs px-3 py-1.5 bg-muted/60 border border-border rounded-lg text-subtle max-w-32 truncate"><!> </div>'),Ya=O('<div class="text-ui text-subtle line-clamp-2 leading-tight px-1"> </div>'),Va=O('<div><div class="flex items-center justify-center gap-1"><!> <span class="truncate"> </span></div> <!> <!></div>'),Qa=O('<div class="text-sm text-primary-ink flex items-center justify-center gap-1"><!> <span class="truncate"> </span></div>'),Fe=O('<span class="text-xs text-subtle"> </span>'),Za=O('<span class="status-pill text-xs px-1.5 py-0.5 bg-muted/80 rounded-md text-subtle truncate max-w-[130px]"> </span>'),Ja=O('<div class="text-ui text-subtle truncate w-full px-1 leading-tight"> </div>'),tn=O('<div class="flex flex-col items-center gap-1"><div class="flex items-center justify-center gap-1.5"><!> <!></div> <!></div>'),en=O('<div class="text-sm text-subtle line-clamp-3 leading-tight"> </div>'),an=O('<div class="avatar-wrapper h-9 w-12 flex items-center justify-center bg-background rounded-full"><!></div> <span class="font-semibold text-center leading-tight line-clamp-2"> </span> <div class="status-footer mt-auto pt-2 w-full text-center"><!></div>',1),nn=O('<div class="agent-card-wrapper flex items-center gap-3 shadow"><!> <!> <!></div>');function ca(e,a){if(new.target)return oe({component:ca,...e});le(a,!0);const s=()=>$t(_t,"$attentionRequest$",o),g=()=>$t(it,"$agentSession$",o),u=()=>$t(x,"$agentIsResponding$",o),c=()=>$t(ct,"$agentIsWaitingForOtherAgents$",o),d=()=>$t(P,"$agentIsWaiting$",o),i=()=>$t(I,"$agentIsThinking$",o),[o,l]=Me();let n=st(a,"agent",7),p=st(a,"activeFile",7),R=st(a,"activeNote",7),h=st(a,"agentNames",7),v=st(a,"onclick",7),b=st(a,"onmouseenter",7),N=st(a,"onmouseleave",7);const x=ra(n().agentId),it=oa(n().agentId),E=y(()=>!n().waitingForAgentIds||n().waitingForAgentIds.length===0?[]:n().waitingForAgentIds.map(k=>h()?.get(k)||Q.agentOverview_hierarchyCard_agent_fallback()).slice(0,2)),I=ka(n().agentId),P=Aa(n().agentId),ct=We(n().agentId),_t=ia(n().agentId),Ft=y(()=>{const k={attentionKind:s()?.kind??null};return g()?na(g(),k):sa({status:n().status,isResponding:u(),isWaitingForOtherAgents:c()},{...k,isCompleted:n().status==="completed",isFailed:n().status==="failed"})});var Bt={get agent(){return n()},set agent(k){n(k),rt()},get activeFile(){return p()},set activeFile(k){p(k),rt()},get activeNote(){return R()},set activeNote(k){R(k),rt()},get agentNames(){return h()},set agentNames(k){h(k),rt()},get onclick(){return v()},set onclick(k){v(k),rt()},get onmouseenter(){return b()},set onmouseenter(k){b(k),rt()},get onmouseleave(){return N()},set onmouseleave(k){N(k),rt()},$set:ie,$on:(k,D)=>ce(a,k,D)},ht=nn(),bt=L(ht);{var Kt=k=>{var D=Le(),Tt=L(D);pe(Tt,{get icon(){return Ra},size:"xs",class:"inline"});var Rt=C(Tt);$(D),A(()=>B(Rt,` ${p()??""}`)),_(k,D)};at(bt,k=>{p()&&u()&&k(Kt)})}var Ot=C(bt,2);{let k=y(()=>d()?"border-primary-ink border-2":"");Yt(Ot,{variant:"ghost",type:"button",get class(){return`agent-card flex flex-col items-center px-2.5 py-4 bg-card border border-border
|
|
2
|
+
hover:shadow transition-all cursor-pointer ${t(k)??""}`},get style(){return`width: 180px; height: 180px; anchor-name: --agent-hierarchy-${n().agentId??""};`},get onclick(){return v()},get onmouseenter(){return b()},get onmouseleave(){return N()},children:(D,Tt)=>{var Rt=an(),Lt=Ut(Rt),me=L(Lt);aa(me,{get agentId(){return n().agentId},variant:"emphasized",get state(){return t(Ft)},get specialist(){return n().specialist}}),$(Lt);var Zt=C(Lt,2),_e=K(Zt,!0),Jt=C(Zt,2),te=L(Jt);{var ye=ft=>{var r=Va(),f=L(r),M=L(f);{let z=y(()=>s().kind==="blocker"?Ma:Wa);pe(M,{get icon(){return t(z)},size:"xs"})}var W=C(M,2),m=K(W,!0);$(f);var H=C(f,2);{var nt=z=>{var It=Ya(),ot=K(It,!0);A(()=>B(ot,s().reason)),_(z,It)};at(H,z=>{s().reason&&z(nt)})}var S=C(H,2);{var G=z=>{Fa(z,{get date(){return s().timestamp},class:"text-ui text-ghost"})};at(S,z=>{s().timestamp&&z(G)})}$(r),A(z=>{Xt(r,1,`text-sm flex flex-col items-center gap-0.5 ${s().kind==="blocker"?"text-red-500":"text-warning-ink"}`),B(m,z)},[()=>s().kind==="blocker"?Q.chat_agentCard_attentionBlocker_label():Q.chat_agentCard_attentionDiscussion_label()]),_(ft,r)},yt=ft=>{var r=Qa(),f=L(r);pe(f,{get icon(){return Oa},size:"xs",class:"animate-pulse"});var M=C(f,2),W=K(M,!0);$(r),A(m=>B(W,m),[()=>Q.agentOverview_hierarchyCard_waitingFor_label({names:t(E).join(", ")})]),_(ft,r)},Ie=ft=>{const r=y(()=>n().activeToolName?$a(n().activeToolName,n().activeToolInput||{}):null),f=y(()=>t(r)&&!t(r).hidden?t(r):null);var M=tn(),W=L(M),m=L(W);ea(m,{size:14});var H=C(m,2);{var nt=U=>{var Z=Fe(),pt=K(Z,!0);A(Et=>B(pt,Et),[()=>Q.agentOverview_hierarchyCard_thinking_label()]),_(U,Z)},S=U=>{var Z=Za(),pt=K(Z);A(()=>B(pt,`${t(f).verb??""}
|
|
3
|
+
${t(f).subject??""}`)),_(U,Z)},G=U=>{var Z=Fe(),pt=K(Z);A(()=>B(pt,`${t(f).verb??""}...`)),_(U,Z)},z=U=>{var Z=Fe(),pt=K(Z,!0);A(Et=>B(pt,Et),[()=>Q.agentOverview_hierarchyCard_responding_label()]),_(U,Z)};at(H,U=>{i()?U(nt):t(f)&&t(f).subject?U(S,1):t(f)?U(G,2):U(z,-1)})}$(W);var It=C(W,2);{var ot=U=>{var Z=Ja(),pt=K(Z,!0);A(()=>B(pt,n().lastResponse)),_(U,Z)};at(It,U=>{!t(f)&&n().lastResponse&&U(ot)})}$(M),_(ft,M)},xe=ft=>{var r=en(),f=K(r,!0);A(()=>B(f,n().lastResponse)),_(ft,r)};at(te,ft=>{s()?ft(ye):c()?ft(yt,1):u()||i()?ft(Ie,2):n().lastResponse&&ft(xe,3)})}$(Jt),A(()=>B(_e,n().name)),_(D,Rt)},$$slots:{default:!0}})}var ge=C(Ot,2);{var Dt=k=>{var D=Le(),Tt=L(D);pe(Tt,{get icon(){return Ba},size:"xs",class:"inline"});var Rt=C(Tt);$(D),A(Lt=>B(Rt,` ${Lt??""}`),[()=>Q.agentOverview_hierarchyCard_note_label()]),_(k,D)};at(ge,k=>{R()&&u()&&k(Dt)})}$(ht),_(e,ht);var Qt=de(Bt);return l(),Qt}const sn=50;var rn=O('<span class="sr-only"> </span> <!>',1);function Re(e,a){if(new.target)return oe({component:Re,...e});le(a,!0);const s=()=>$t(R,"$attentionRequest$",c),g=()=>$t(h,"$agentSession$",c),u=()=>$t(p,"$agentIsWaitingForOtherAgents$",c),[c,d]=Me();let i=st(a,"agent",7),o=st(a,"onclick",7),l=st(a,"onmouseenter",7),n=st(a,"onmouseleave",7);const p=We(i().agentId),R=ia(i().agentId),h=oa(i().agentId),v=y(()=>{const x={attentionKind:s()?.kind??null};return g()?na(g(),x):sa({status:i().status,isResponding:i().status==="responding",isWaitingForOtherAgents:u()},{...x,isCompleted:i().status==="completed",isFailed:i().status==="failed"})});var b={get agent(){return i()},set agent(x){i(x),rt()},get onclick(){return o()},set onclick(x){o(x),rt()},get onmouseenter(){return l()},set onmouseenter(x){l(x),rt()},get onmouseleave(){return n()},set onmouseleave(x){n(x),rt()},$set:ie,$on:(x,it)=>ce(a,x,it)};Yt(e,{variant:"ghost",type:"button",class:"background-agent-card relative flex flex-col items-center justify-center gap-1 rounded-full bg-sidebar hover:bg-muted/70 transition-colors cursor-pointer p-2",get style(){return`width: 50px; min-height: 50px; anchor-name: --agent-hierarchy-${i().agentId??""};`},get onclick(){return o()},get onmouseenter(){return l()},get onmouseleave(){return n()},children:(x,it)=>{var E=rn(),I=Ut(E),P=K(I,!0),ct=C(I,2);aa(ct,{get agentId(){return i().agentId},size:32,get state(){return t(v)},get specialist(){return i().specialist}}),A(()=>B(P,i().name)),_(x,E)},$$slots:{default:!0}});var N=de(b);return d(),N}var re=he('<path fill="none"></path>'),on=O('<div class="batch-group-box relative z-10 bg-background border border-border rounded-xl"></div>'),cn=O('<svg class="connector-svg" style="overflow: visible; display: block;"><!><!></svg> <div class="children-items-row flex items-start justify-center"></div>',1),ln=O('<div class="children-wrapper flex flex-col items-center"></div>'),dn=O('<div class="agent-tree-node flex flex-col items-center"><div class="agent-card-wrapper relative z-10"><!></div> <!></div>'),gn=O('<div class="absolute inset-0 flex items-center justify-center"><div class="text-center text-subtle"><p class="text-lg font-medium"> </p> <p class="text-sm mt-1"> </p></div></div>'),un=O('<div class="utility-corral border border-dashed border-border rounded-lg p-3 min-w-20"><div class="corral-label text-xs text-subtle font-medium mb-2 text-center"> </div> <div class="corral-agents flex flex-col items-center gap-2"></div></div>'),fn=O('<div class="utility-corrals flex flex-col gap-4"></div>'),pn=O('<div class="text-xs text-subtle capitalize"> </div>'),vn=O('<span class="px-1.5 py-0.5 text-ui font-medium bg-muted text-subtle rounded"> </span>'),hn=O('<span class="text-warning-ink"> </span>'),mn=O('<span class="text-primary-ink"> </span>'),_n=O('<span class="text-green-500"> </span>'),yn=O('<span class="text-red-500"> </span>'),In=O("<span> </span>"),xn=O('<div class="text-xs text-subtle line-clamp-3 border-t border-border pt-2 mt-2"> </div>'),wn=O('<div class="text-xs text-subtle flex items-center gap-1"><!> <span> </span></div>'),bn=O('<div class="p-3 space-y-2"><div class="flex items-center gap-2"><!> <div class="flex-1 min-w-0"><div class="font-medium text-sm truncate"> </div> <!></div> <!></div> <div class="text-xs text-subtle"><!></div> <div class="text-xs text-subtle"> </div> <!> <!></div>'),kn=he('<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="5" y1="12" x2="19" y2="12"></line></svg>'),An=he('<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>'),$n=he('<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"></path></svg>'),Tn=O('<div class="canvas-content absolute inset-0 flex items-center justify-center p-8 svelte-13q5gm4"><div class="hierarchy-wrapper flex items-start gap-8"><!> <div class="main-hierarchy flex flex-col items-center gap-4"><div class="hierarchy-container flex flex-col items-center gap-4"><div class="roots-row flex justify-center"></div></div></div></div> <!></div> <div class="zoom-controls absolute bottom-4 right-4 flex items-center gap-1 bg-card border border-border rounded-lg shadow-sm p-1"><!> <!> <!> <div class="w-px h-6 bg-border mx-1"></div> <!></div> <div class="absolute bottom-4 left-4 text-xs text-subtle"> </div>',1),Cn=O('<div class="agent-hierarchy-graph relative w-full h-full overflow-hidden bg-background svelte-13q5gm4"><!></div>');function la(e,a){if(new.target)return oe({component:la,...e});le(a,!0);const s=(r,f=wa,M)=>{const W=y(()=>f().agent.isBackground),m=y(()=>f().children.length>0),H=y(()=>t(m)&&f().children[0]?.agent.isBackground?sn:Xa),nt=y(()=>16),S=y(()=>60),G=y(()=>t(m)?Rt(f().children,t(H),i):[]),z=y(()=>(()=>{const F=[];for(let q=0;q<t(G).length;q+=Tt)F.push(t(G).slice(q,q+Tt));return F})()),It=y(()=>t(z).map(F=>F.reduce((q,J)=>q+J.width,0)+Math.max(0,F.length-1)*i)),ot=y(()=>Math.max(...t(It),0));var U=dn(),Z=L(U),pt=L(Z);{var Et=F=>{Re(F,{get agent(){return f().agent},onclick:q=>te(f().agent,q),onmouseenter:()=>x(f().agent.agentId),onmouseleave:it})},we=F=>{ca(F,{get agent(){return f().agent},get activeFile(){return f().activeFile},get activeNote(){return f().activeNote},get agentNames(){return t(Lt)},onclick:q=>te(f().agent,q),onmouseenter:()=>x(f().agent.agentId),onmouseleave:it})};at(pt,F=>{t(W)?F(Et):F(we,-1)})}$(Z);var be=C(Z,2);{var Y=F=>{const q=y(()=>f().agent.status==="waiting"?f().agent.waitingForAgentIds||[]:[]),J=y(()=>t(q).length>0),et=y(()=>t(S)/2);var xt=ln();jt(xt,21,()=>t(z),Se,(Ht,kt,Ct)=>{const Pt=y(()=>t(It)[Ct]),ee=y(()=>(t(ot)-t(Pt))/2),ke=y(()=>(()=>{let ut=0;return t(kt).map(j=>{const Nt=ut+j.width/2;return ut+=j.width+i,Nt})})());var ue=cn(),Gt=Ut(ue);gt(Gt,"height",t(S));var qt=L(Gt);{var Ae=ut=>{var j=re();A(()=>{gt(j,"d",`M ${t(ot)/2} -${Ua} L ${t(ot)/2} ${t(S)/3}`),gt(j,"stroke",t(J)?"var(--primary-ink)":"currentColor"),Xt(j,0,se(t(J)?"":"text-border")),gt(j,"stroke-width",t(J)?2:1)}),_(ut,j)},$e=ut=>{var j=re();A(()=>{gt(j,"d",`M ${t(ot)/2} 0 L ${t(ot)/2} ${t(S)/3}`),gt(j,"stroke",t(J)?"var(--primary-ink)":"currentColor"),Xt(j,0,se(t(J)?"":"text-border")),gt(j,"stroke-width",t(J)?2:1)}),_(ut,j)};at(qt,ut=>{Ct>0?ut(Ae):ut($e,-1)})}var Te=C(qt);jt(Te,17,()=>t(kt),Se,(ut,j,Nt)=>{const vt=y(()=>t(ee)+t(ke)[Nt]),lt=y(()=>t(ot)/2),zt=y(()=>t(j).type==="batch"?t(j).children.some(wt=>t(q).includes(wt.agent.agentId)):t(q).includes(t(j).child.agent.agentId)),mt=y(()=>t(zt)?"var(--color-primary)":"currentColor"),At=y(()=>t(zt)?"":"text-border"),w=y(()=>t(zt)?2:1),T=y(()=>t(j).type==="batch"?t(S)-k:t(S)),tt=y(()=>Math.abs(t(vt)-t(lt))),X=y(()=>Math.min(t(nt),t(tt)/2));var fe=De(),Ce=Ut(fe);{var va=wt=>{var dt=re();A(()=>{gt(dt,"d",`M ${t(lt)??""} ${t(S)/3} L ${t(lt)??""} ${t(T)??""}`),gt(dt,"stroke",t(mt)),Xt(dt,0,se(t(At)),"svelte-13q5gm4"),gt(dt,"stroke-width",t(w))}),_(wt,dt)},ha=wt=>{var dt=re();A(()=>{gt(dt,"d",`M ${t(lt)??""} ${t(S)/3}
|
|
4
4
|
L ${t(lt)??""} ${t(et)-t(X)}
|
|
5
5
|
Q ${t(lt)??""} ${t(et)??""}, ${t(lt)-t(X)} ${t(et)??""}
|
|
6
6
|
L ${t(vt)+t(X)} ${t(et)??""}
|
|
@@ -10,5 +10,5 @@ import{t as oe,bq as st,a_ as at,bo as V,by as ie,bu as $t,bs as Me,b as ce}from
|
|
|
10
10
|
Q ${t(lt)??""} ${t(et)??""}, ${t(lt)+t(X)} ${t(et)??""}
|
|
11
11
|
L ${t(vt)-t(X)} ${t(et)??""}
|
|
12
12
|
Q ${t(vt)??""} ${t(et)??""}, ${t(vt)??""} ${t(et)+t(X)}
|
|
13
|
-
L ${t(vt)??""} ${t(T)??""}`),gt(dt,"stroke",t(mt)),Xt(dt,0,se(t(At)),"svelte-13q5gm4"),gt(dt,"stroke-width",t(w))}),_(wt,dt)};at(Ce,wt=>{t(tt)<1?wt(va):t(vt)<t(lt)?wt(ha,1):wt(ma,-1)})}_(ut,fe)}),$(Gt);var ae=C(Gt,2);jt(ae,21,()=>t(kt),Se,(ut,j)=>{var Nt=De(),vt=Ut(Nt);{var lt=mt=>{var At=on();jt(At,21,()=>t(j).children,w=>w.agent.agentId,(w,T)=>{s(w,()=>t(T))}),$(At),A(()=>ne(At,`padding: 10px; margin-top: -10px; display: grid; grid-template-columns: repeat(${t(j).cols??""}, auto); gap: 12px;`)),_(mt,At)},zt=mt=>{s(mt,()=>t(j).child)};at(vt,mt=>{t(j).type==="batch"?mt(lt):mt(zt,-1)})}_(ut,Nt)}),$(ae),A(()=>{gt(Gt,"width",t(ot)),ne(ae,`gap: 12px; width: ${t(ot)??""}px;`)}),_(Ht,ue)}),$(xt),A(()=>ne(xt,`width: ${t(ot)??""}px;`)),_(F,xt)};at(be,F=>{t(m)&&F(Y)})}$(U),_(r,U)};let g=st(a,"agents",7),u=st(a,"edges",7),c=st(a,"onAgentClick",7),d=st(a,"onFocus",7);const i=12,o=[{id:"git",label:"Git",types:["commit-message","pr-description"]},{id:"review",label:V.agentOverview_hierarchyGraph_reviewCorral_label(),types:["code-review","code-walkthrough"]}];let l=Mt(1),n=Mt(0),p=Mt(0),R=Mt(!1),h=Mt(_a({x:0,y:0})),v=Mt(null),b=Mt(null),N=Mt(null);function x(r){t(N)&&clearTimeout(t(N)),Q(b,r,!0)}function it(){t(N)&&(clearTimeout(t(N)),Q(N,null)),Q(b,null)}const E=y(()=>t(b)?g().find(r=>r.agentId===t(b)):null),I=.25,P=2,ct=.1;function _t(r){if(r.preventDefault(),r.ctrlKey||r.metaKey){const f=-r.deltaY*.001,M=Math.min(P,Math.max(I,t(l)*(1+f)));if(t(v)){const W=t(v).getBoundingClientRect(),m=r.clientX-W.left,H=r.clientY-W.top,nt=M/t(l);Q(n,m-(m-t(n))*nt),Q(p,H-(H-t(p))*nt)}Q(l,M,!0)}else Q(n,t(n)-r.deltaX),Q(p,t(p)-r.deltaY)}function Ft(r){const f=r.target,M=f.closest(".agent-hierarchy-graph")&&!f.closest(".agent-card")&&!f.closest(".bg-agent-card")&&!f.closest(".zoom-controls");(r.button===1||r.button===0&&(r.shiftKey||M))&&(Q(R,!0),Q(h,{x:r.clientX,y:r.clientY},!0),r.preventDefault()),r.button===0&&d()?.()}function Bt(r){if(!t(R))return;const f=r.clientX-t(h).x,M=r.clientY-t(h).y;Q(n,t(n)+f),Q(p,t(p)+M),Q(h,{x:r.clientX,y:r.clientY},!0)}function ht(){Q(R,!1)}function bt(){Q(l,Math.min(P,t(l)+ct),!0)}function Kt(){Q(l,Math.max(I,t(l)-ct),!0)}function Ot(){Q(l,1),Q(n,0),Q(p,0)}function ge(){Q(l,.8),Q(n,0),Q(p,0)}const Dt=y(()=>Math.round(t(l)*100)),Vt=5e3,k=10,D=4,Tt=6;function Rt(r,f,M){if(r.length===0)return[];const W=[],m=new Map;for(const S of r){const G=S.agent.delegationBatchId;G&&(m.has(G)||m.set(G,[]),m.get(G).push(S))}const H=new Set;for(const S of r){const G=S.agent.delegationBatchId;if(G)H.has(G)||(H.add(G),W.push(m.get(G)));else{const z=W[W.length-1];if(z&&!z[0].agent.delegationBatchId){const It=new Date(z[z.length-1].agent.createdAt).getTime();if(new Date(S.agent.createdAt).getTime()-It<=Vt){z.push(S);continue}}W.push([S])}}const nt=f+M;return W.map(S=>{if(S.length===1)return{type:"single",child:S[0],width:f};const G=Math.min(Math.ceil(Math.sqrt(S.length)),D),z=Math.ceil(S.length/G);return{type:"batch",children:S,cols:G,rows:z,width:G*nt-M+k*2}})}const Lt=y(()=>{const r=new Map;for(const f of g())r.set(f.agentId,f.name);return r}),me=new Set(o.flatMap(r=>[...r.types])),Zt=y(()=>{const r=[];for(const f of o){const M=new Set(f.types),W=g().filter(m=>m.agentType&&M.has(m.agentType));W.length>0&&r.push({id:f.id,label:f.label,agents:W})}return r}),_e=y(()=>g().filter(r=>!r.agentType||!me.has(r.agentType))),Jt=y(()=>{const r=new Map,f=[];for(const m of t(_e))r.set(m.agentId,{agent:m,children:[],activeFile:void 0,activeNote:void 0});const M=u().filter(m=>m.isActive);for(const m of M){const H=m.sourceId.replace("agent-",""),nt=r.get(H);nt&&(m.type==="file-read"||m.type==="file-write"?nt.activeFile=m.targetId.replace("file-","").split("/").pop():(m.type==="note-read"||m.type==="note-write")&&(nt.activeNote=m.targetId.replace("note-","")))}for(const[,m]of r){const H=m.agent.parentAgentId;H&&r.has(H)?r.get(H).children.push(m):f.push(m)}const W=(m,H)=>new Date(m.agent.createdAt).getTime()-new Date(H.agent.createdAt).getTime();for(const[,m]of r)m.children.sort(W);return f.sort(W),f});function te(r,f){c()?.(r.agentId,r.name,f)}var ye={get agents(){return g()},set agents(r){g(r),rt()},get edges(){return u()},set edges(r){u(r),rt()},get onAgentClick(){return c()},set onAgentClick(r){c(r),rt()},get onFocus(){return d()},set onFocus(r){d(r),rt()},$set:ie,$on:(r,f)=>ce(a,r,f)},yt=Cn(),Ie=L(yt);{var xe=r=>{var f=gn(),M=L(f),W=L(M),m=K(W,!0),H=C(W,2),nt=K(H,!0);$(M),$(f),A((S,G)=>{B(m,S),B(nt,G)},[()=>V.agentOverview_hierarchyGraph_noAgents_title(),()=>V.agentOverview_hierarchyGraph_noAgents_description()]),_(r,f)},ft=r=>{var f=Tn(),M=Ut(f),W=L(M),m=L(W);{var H=Y=>{var F=fn();jt(F,21,()=>t(Zt),q=>q.id,(q,J)=>{var et=un(),xt=L(et),Ht=K(xt,!0),kt=C(xt,2);jt(kt,21,()=>t(J).agents,Ct=>Ct.agentId,(Ct,Pt)=>{Re(Ct,{get agent(){return t(Pt)},onclick:ee=>te(t(Pt),ee),onmouseenter:()=>x(t(Pt).agentId),onmouseleave:it})}),$(kt),$(et),A(()=>B(Ht,t(J).label)),_(q,et)}),$(F),_(Y,F)};at(m,Y=>{t(Zt).length>0&&Y(H)})}var nt=C(m,2),S=L(nt),G=L(S);ne(G,"gap: 12px;"),jt(G,21,()=>t(Jt),Y=>Y.agent.agentId,(Y,F)=>{s(Y,()=>t(F))}),$(G),$(S),$(nt),$(W);var z=C(W,2);{var It=Y=>{{let F=y(()=>"--agent-hierarchy-"+t(b));Da(Y,{get anchor(){return t(F)},position:"top",absolute:!0,children:(q,J)=>{var et=bn(),xt=L(et),Ht=L(xt);La(Ht,{variant:"emphasized",get agentId(){return t(E).agentId}});var kt=C(Ht,2),Ct=L(kt),Pt=K(Ct,!0),ee=C(Ct,2);{var ke=w=>{var T=pn(),tt=K(T,!0);A(X=>B(tt,X),[()=>t(E).specialist.replace("-"," ")]),_(w,T)};at(ee,w=>{t(E).specialist&&w(ke)})}$(kt);var ue=C(kt,2);{var Gt=w=>{var T=vn(),tt=K(T,!0);A(X=>B(tt,X),[()=>V.agentOverview_hierarchyGraph_background_badge()]),_(w,T)};at(ue,w=>{t(E).isBackground&&w(Gt)})}$(xt);var qt=C(xt,2),Ae=L(qt);{var $e=w=>{var T=hn(),tt=K(T);A(X=>B(tt,`● ${X??""}`),[()=>V.agentOverview_hierarchyGraph_statusWaiting_label()]),_(w,T)},Te=w=>{var T=mn(),tt=K(T);A(X=>B(tt,`● ${X??""}`),[()=>V.agentOverview_hierarchyGraph_statusResponding_label()]),_(w,T)},ae=w=>{var T=_n(),tt=K(T);A(X=>B(tt,`● ${X??""}`),[()=>V.agentOverview_hierarchyGraph_statusCompleted_label()]),_(w,T)},ut=w=>{var T=yn(),tt=K(T);A(X=>B(tt,`● ${X??""}`),[()=>V.agentOverview_hierarchyGraph_statusFailed_label()]),_(w,T)},j=w=>{var T=In(),tt=K(T);A(X=>B(tt,`● ${X??""}`),[()=>V.agentOverview_hierarchyGraph_statusIdle_label()]),_(w,T)};at(Ae,w=>{t(E).status==="waiting"?w($e):t(E).status==="responding"?w(Te,1):t(E).status==="completed"?w(ae,2):t(E).status==="failed"?w(ut,3):w(j,-1)})}$(qt);var Nt=C(qt,2),vt=K(Nt,!0),lt=C(Nt,2);{var zt=w=>{var T=xn(),tt=K(T,!0);A(()=>B(tt,t(E).lastResponse)),_(w,T)};at(lt,w=>{t(E).lastResponse&&w(zt)})}var mt=C(lt,2);{var At=w=>{var T=wn(),tt=L(T);ea(tt,{size:12});var X=C(tt,2),fe=K(X,!0);$(T),A(Ce=>B(fe,Ce),[()=>V.agentOverview_hierarchyGraph_usingTool_label({tool:t(E).activeToolName})]),_(w,T)};at(mt,w=>{t(E).activeToolName&&w(At)})}$(et),A(w=>{B(Pt,t(E).name),B(vt,w)},[()=>V.agentOverview_hierarchyGraph_created_label({time:Ea(t(E).createdAt)})]),_(q,et)},$$slots:{default:!0}})}};at(z,Y=>{t(E)&&Y(It)})}$(M);var ot=C(M,2),U=L(ot);{let Y=y(()=>V.agentOverview_hierarchyGraph_zoomOut_tooltip());Yt(U,{variant:"ghost",size:"icon",iconOnly:!0,type:"button",class:"zoom-btn hover:bg-muted transition-colors text-muted-foreground hover:text-foreground",onclick:Kt,get title(){return t(Y)},children:(F,q)=>{var J=kn();_(F,J)},$$slots:{default:!0}})}var Z=C(U,2);{let Y=y(()=>V.agentOverview_hierarchyGraph_resetZoom_tooltip());Yt(Z,{variant:"ghost",type:"button",class:"zoom-percent w-12 h-8 flex items-center justify-center text-xs font-medium text-muted-foreground hover:text-foreground hover:bg-muted rounded transition-colors",onclick:Ot,get title(){return t(Y)},children:(F,q)=>{Ia();var J=xa();A(()=>B(J,`${t(Dt)??""}%`)),_(F,J)},$$slots:{default:!0}})}var pt=C(Z,2);{let Y=y(()=>V.agentOverview_hierarchyGraph_zoomIn_tooltip());Yt(pt,{variant:"ghost",size:"icon",iconOnly:!0,type:"button",class:"zoom-btn hover:bg-muted transition-colors text-muted-foreground hover:text-foreground",onclick:bt,get title(){return t(Y)},children:(F,q)=>{var J=An();_(F,J)},$$slots:{default:!0}})}var Et=C(pt,4);{let Y=y(()=>V.agentOverview_hierarchyGraph_fitToView_tooltip());Yt(Et,{variant:"ghost",size:"icon",iconOnly:!0,type:"button",class:"zoom-btn hover:bg-muted transition-colors text-muted-foreground hover:text-foreground",onclick:ge,get title(){return t(Y)},children:(F,q)=>{var J=$n();_(F,J)},$$slots:{default:!0}})}$(ot);var we=C(ot,2),be=K(we,!0);A(Y=>{ne(M,`transform: translate(${t(n)??""}px, ${t(p)??""}px) scale(${t(l)??""}); transform-origin: center center;`),B(be,Y)},[()=>V.agentOverview_hierarchyGraph_panHint_label()]),_(r,f)};at(Ie,r=>{t(Jt).length===0?r(xe):r(ft,-1)})}return $(yt),ba(yt,r=>Q(v,r),()=>t(v)),Be("wheel",yt,_t),Ne("mousedown",yt,Ft),Ne("mousemove",yt,Bt),Ne("mouseup",yt,ht),Be("mouseleave",yt,ht),_(e,yt),de(ye)}ya(["mousedown","mousemove","mouseup"]);const Ee=new Set(["str-replace-editor","save-file","remove-files","str_replace_editor"]),Pe=new Set(["create_note","update_note","set_note_content","add_to_note","append_to_note","edit_note","edit_note_lines","update_note_metadata","read_note","view_note","delete_note"]),Nn=new Set(["read_note","view_note","list_note_tasks"]),Ge=new Set(["add_tasks","update_tasks","view_tasklist","reorganize_tasklist"]),Sn=new Set(["view_tasklist"]),ze=new Set(["delegate_task","create_sub_agent","create_agent"]),Fn=5e3;function On(e,a=!1){if(!e)return"idle";if(e.status===St.Completed)return"completed";if(e.status===St.Error||e.status===St.Deleted)return"failed";if(a||da(e))return"responding";if(ga(e.status))return"idle";if(e.messages&&e.messages.length>0){const s=[...e.messages].reverse().find(g=>g.role==="assistant");if(s&&(s.isStreaming||s.streamingComplete===!1))return"responding"}switch(e.status){case St.Active:return"idle";case St.Pending:case St.Idle:return"idle";case St.Processing:return a?"responding":"idle";case St.Waiting:return"waiting";default:return"idle"}}function da(e){return!!(e.isProcessing||e.isStreaming||e.isResponding)}function ga(e){return e===St.Idle||e==="idle"}function Rn(e){const a={};if(!e)return a;if(e.lastAgentResponse){const s=Ta(e.lastAgentResponse);s&&(a.lastResponse=s)}return ga(e.status)&&!da(e)||e.isStreaming&&e.lastToolUse?.name&&(a.activeToolName=e.lastToolUse.name,a.activeToolInput=e.lastToolUse.input||{}),a}function Wt(e){return(e.name||e.toolName||"").toLowerCase()}function Qt(e){return"input"in e&&e.input?e.input:"arguments"in e&&e.arguments?e.arguments:"parameters"in e&&e.parameters?e.parameters:{}}function Mn(e){const a=e.toLowerCase();if(Ee.has(e))return!0;for(const s of Ee)if(a.startsWith(s.toLowerCase()))return!0;return!!(a.startsWith("edit ")||a.startsWith("save ")||a.startsWith("create "))}function ua(e){const a=e.toLowerCase();return!!(a.startsWith("read `")&&!a.includes("read `.`")||a.startsWith("view")||a==="view")}function je(e){if(Pe.has(e))return!0;for(const a of Pe)if(e.startsWith(a))return!0;return!1}function Wn(e){return e==="save-file"?"create":e==="remove-files"?"delete":"modify"}function Ke(e){return e==="create_note"?"create":Nn.has(e)?"read":"write"}function He(e){if(Ge.has(e))return!0;for(const a of Ge)if(e.startsWith(a))return!0;return!1}function qe(e){return e==="add_tasks"?"create":Sn.has(e)?"read":"update"}function fa(e){if(e==="."||e==="./"||e.endsWith("/"))return!0;const s=(e.split("/").pop()||e).lastIndexOf(".");return s===-1||s===0}function Bn(e){const a=e.match(/`([^`]+)`/);if(a&&a[1]){const s=a[1];return fa(s)?null:s}return null}function Xe(e,a){const s=e.path||e.file_path||e.filePath;return typeof s=="string"?fa(s)?null:s:a?Bn(a):null}function Ue(e){const a=e.noteId||e.note_id||e.title;return typeof a=="string"?a:null}function Ye(e){return Mn(e)||ua(e)}function Qe(e){return ua(e)?"read":Wn(e)}function Dn(e,a){const s=[],g=new Set;for(const u of e){const c=u.timestamp?.toString()||a;if(u.toolCalls&&Array.isArray(u.toolCalls))for(const d of u.toolCalls){const i=Wt(d);if(!Ye(i))continue;const o=Qt(d),l=Xe(o,d.name||d.toolName);!l||g.has(l)||(g.add(l),s.push({path:l,type:Qe(i),timestamp:c}))}if(u.contentBlocks&&Array.isArray(u.contentBlocks))for(const d of u.contentBlocks){if(d.type!=="tool_use")continue;const i=Wt(d);if(!Ye(i))continue;const o=Qt(d),l=Xe(o,d.name);!l||g.has(l)||(g.add(l),s.push({path:l,type:Qe(i),timestamp:c}))}}return s}function Ln(e,a){const s=[],g=new Set;for(const u of e){const c=u.timestamp?.toString()||a;if(u.toolCalls&&Array.isArray(u.toolCalls))for(const d of u.toolCalls){const i=Wt(d);if(!je(i))continue;const o=Qt(d),l=Ue(o);!l||g.has(l)||(g.add(l),s.push({noteId:l,title:o.title||l,action:Ke(i),timestamp:c}))}if(u.contentBlocks&&Array.isArray(u.contentBlocks))for(const d of u.contentBlocks){if(d.type!=="tool_use")continue;const i=Wt(d);if(!je(i))continue;const o=Qt(d),l=Ue(o);!l||g.has(l)||(g.add(l),s.push({noteId:l,title:o.title||l,action:Ke(i),timestamp:c}))}}return s}function Ve(e){const a=[],s=e.tasks;if(Array.isArray(s)){for(const g of s)if(typeof g=="object"&&g!==null){const u=g,c=u.name;c&&a.push({taskId:`task-${c.toLowerCase().replace(/\s+/g,"-").slice(0,30)}`,name:c,description:u.description,state:u.state})}}if(Array.isArray(s)){for(const g of s)if(typeof g=="object"&&g!==null){const u=g,c=u.task_id;c&&!a.some(d=>d.taskId===c)&&a.push({taskId:c,name:u.name||c,description:u.description,state:u.state})}}return a}function Ze(e){if(!e)return"not_started";const a=e.toLowerCase();return a==="complete"||a==="completed"||a==="done"?"complete":a==="in_progress"||a==="in-progress"||a==="started"?"in_progress":a==="cancelled"||a==="canceled"?"cancelled":"not_started"}function En(e,a){const s=[],g=new Set;for(const u of e){const c=u.timestamp?.toString()||a;if(u.toolCalls&&Array.isArray(u.toolCalls))for(const d of u.toolCalls){const i=Wt(d);if(!He(i))continue;const o=Qt(d),l=qe(i),n=Ve(o);for(const p of n)g.has(p.taskId)||(g.add(p.taskId),s.push({taskId:p.taskId,name:p.name,description:p.description,state:Ze(p.state),action:l,timestamp:c}))}if(u.contentBlocks&&Array.isArray(u.contentBlocks))for(const d of u.contentBlocks){if(d.type!=="tool_use")continue;const i=Wt(d);if(!He(i))continue;const o=Qt(d),l=qe(i),n=Ve(o);for(const p of n)g.has(p.taskId)||(g.add(p.taskId),s.push({taskId:p.taskId,name:p.name,description:p.description,state:Ze(p.state),action:l,timestamp:c}))}}return s}function Je(e){if(ze.has(e))return!0;for(const a of ze)if(e.startsWith(a))return!0;return!1}function ta(e){if(!e)return null;const a=e.match(/Agent ID:\s*(\S+)/i);return a?a[1]:null}function ve(e){if(typeof e=="string")return e;if(Array.isArray(e))return e.filter(a=>a&&typeof a=="object"&&a.type==="text"&&a.text).map(a=>a.text).join(`
|
|
14
|
-
`);if(e&&typeof e=="object"){const a=e;if(typeof a.text=="string")return a.text;if(typeof a.content=="string")return a.content}return""}function Pn(e,a){const s=new Map,g=new Map;let u=0;for(const c of e){const d=[];if(c.contentBlocks&&Array.isArray(c.contentBlocks)){for(const i of c.contentBlocks)if(i.type==="tool_use"&&i.name){const o=Wt(i);Je(o)&&i.id&&d.push(i.id)}}if(c.toolCalls&&Array.isArray(c.toolCalls))for(const i of c.toolCalls){const o=Wt(i);if(Je(o)){const l=i.id;l&&!d.includes(l)&&d.push(l)}}if(d.length>1){const i=`${a}-batch-${u}`;for(const o of d)g.set(o,i);u++}}for(const c of e){if(c.contentBlocks&&Array.isArray(c.contentBlocks)){for(const d of c.contentBlocks)if(d.type==="tool_result"&&d.tool_use_id){const i=d.tool_use_id,o=g.get(i);if(o){const l=ve(d.text)||ve(d.content)||ve(d.output),n=ta(l);n&&s.set(n,o)}}}if(c.toolCalls&&Array.isArray(c.toolCalls))for(const d of c.toolCalls){const i=d.id;if(!i)continue;const o=g.get(i);if(!o)continue;const l=d.result;if(l){const n=ve(l),p=ta(n);p&&s.set(p,o)}}}return s}function Gn(e){const a={id:e.id,timestamp:e.timestamp,agentId:e.actor?.id||"",agentName:e.actor?.name};if(e.type==="agent:created"){const s=e.data;return{...a,type:"agent-created",agentId:s?.agentId||a.agentId,agentName:s?.agentName||a.agentName,parentAgentId:s?.createdByAgentId}}if(e.type==="agent:idle"){const s=e.data;return{...a,type:"agent-idle",agentId:s?.agentId||a.agentId,parentAgentId:s?.parentAgentId}}if(e.type==="file:changed"&&e.actor?.type==="agent"){const s=e.data,g=s?.action,u=g==="create"||g==="modify"||g==="delete",c=s?.relativePath;return{...a,type:u?"file-write":"file-read",targetId:s?.path||c,targetName:c?.split("/").pop()}}if(e.type?.startsWith("note:")&&e.actor?.type==="agent"){const s=e.data,g=e.type==="note:created"||e.type==="note:updated";return{...a,type:g?"note-write":"note-read",targetId:s?.noteId,targetName:s?.title}}if(e.type==="agent:tool:call"){const s=e.data,g=s?.toolName?.toLowerCase()||"";if(g.includes("read")&&s?.filesModified?.[0])return{...a,type:"file-read",targetId:s.filesModified[0],targetName:s.filesModified[0].split("/").pop()};if((g.includes("write")||g.includes("edit"))&&s?.filesModified?.[0])return{...a,type:"file-write",targetId:s.filesModified[0],targetName:s.filesModified[0].split("/").pop()}}return null}function zn(e,a){const s=e.workspaceEvents.byWorkspaceId[a]?.events??[],g=[];for(const u of s){const c=Gn(u);c&&g.push(c)}return g.sort((u,c)=>new Date(u.timestamp).getTime()-new Date(c.timestamp).getTime())}function jn(e){return e.length===0?new Date().toISOString():new Date(Math.max(...e.map(a=>new Date(a.timestamp).getTime()))).toISOString()}const Kn=Oe.createSelector((e,a)=>{const s=zn(e,a),g=jn(s),u=Ca.select(e,a),c={};for(const o of Na.select(e,a))c[String(o.id)]=o;const d=e.workspaceNotes.byWorkspaceId[a],i=new Map;if(d)for(const o of Ga(d.notes))i.set(o.id,o);return Hn(s,c,g,!0,u,e,i)});function Hn(e,a,s,g,u,c,d){const i=new Date(s).getTime(),o=new Map;for(const I of u)o.set(I.path,I);const l=I=>d?.get(I)?.title||I,n=e.filter(I=>new Date(I.timestamp).getTime()<=i),p=[],R=[],h=new Map,v=new Set,b=[];let N=null;for(const[I,P]of Object.entries(a))if(za(P)==="topLevel"){N=I;break}for(const[I,P]of Object.entries(a)){if(h.has(I))continue;const ct=ja(P),_t=Rn(P),Ft=ra.select(c,I),Bt=We.select(c,I),ht=P.waitingForAgentIds;let bt=On(P,Ft);Bt?bt="waiting":(Ft||bt==="idle"&&_t.activeToolName)&&(bt="responding");const Kt={id:`agent-${I}`,type:"agent",agentId:I,name:P.name||"Agent",isCoordinator:I===N,isBackground:P.isBackground||!1,status:bt,specialist:P.metadata?.specialist||null,parentAgentId:ct,createdAt:String(P.createdAt||s),waitingForAgentIds:ht,activeToolName:_t.activeToolName,activeToolInput:_t.activeToolInput,lastResponse:_t.lastResponse,agentType:P.metadata?.agentType||null,x:0,y:0,vx:0,vy:0};if(h.set(I,Kt),p.push(Kt),ct&&a[ct]){const D=`del-${ct}-${I}`;v.has(D)||(v.add(D),b.push({key:D,sourceRawId:ct,targetRawId:I,edge:{id:D,type:"delegation",sourceId:`agent-${ct}`,targetId:`agent-${I}`,parentAgentId:ct,childAgentId:I,timestamp:String(P.createdAt||s),isActive:!1}}))}const Ot=P.messages||[];let Dt=Dn(Ot,s).map(D=>({...D,additions:o.get(D.path)?.additions,deletions:o.get(D.path)?.deletions}));Dt.length===0&&P.fileChanges&&P.fileChanges.length>0&&(Dt=P.fileChanges.map(D=>({path:D.path,type:D.type,timestamp:String(D.timestamp||s),additions:o.get(D.path)?.additions,deletions:o.get(D.path)?.deletions}))),qn(Dt,I,o,h,p,v,b,s);const Vt=Ln(Ot,s);Xn(Vt,I,l,h,p,v,b);const k=En(Ot,s);Un(k,I,h,p,v,b)}for(const[I,P]of Object.entries(a)){const ct=P.messages||[];if(ct.length===0)continue;const _t=Pn(ct,I);if(_t.size!==0)for(const[Ft,Bt]of _t){const ht=h.get(Ft);ht&&ht.type==="agent"&&(ht.delegationBatchId=Bt)}}Yn(n,g,i,a,o,l,h,p,v,b),Qn(p,u,a,N,h,v,R,g,s,c);for(const I of b)h.has(I.sourceRawId)&&h.has(I.targetRawId)&&R.push(I.edge);const x=e.map(I=>new Date(I.timestamp).getTime()),it=x.length>0?new Date(Math.min(...x)).toISOString():s,E=x.length>0?new Date(Math.max(...x)).toISOString():s;return{nodes:p,edges:R,currentTime:s,isLive:g,minTime:it,maxTime:E}}function qn(e,a,s,g,u,c,d,i){for(const o of e){const l=o.path;if(!l)continue;const n=o.type==="read",p=n?"file-read":"file-write",R=`file-${l}`;if(!g.has(l)){const v={id:R,type:"file",path:l,fileName:l.split("/").pop()||"",lastAction:o.type==="delete"?"delete":n?"read":"write",lastActionTimestamp:o.timestamp||i,x:0,y:0,vx:0,vy:0};g.set(l,v),u.push(v)}const h=`${p}-${a}-${l}`;if(!c.has(h)){c.add(h);const v=n?void 0:s.get(l);let b=n?void 0:o.additions??v?.additions,N=n?void 0:o.deletions??v?.deletions;if(!n&&b===void 0&&N===void 0){const x=l.split("").reduce((it,E)=>it+E.charCodeAt(0),0);o.type==="create"?(b=x%80+20,N=0):o.type==="modify"?(b=x%50+5,N=x%20+2):(b=x%30+3,N=x%15+1)}d.push({key:h,sourceRawId:a,targetRawId:l,edge:{id:h,type:p,sourceId:`agent-${a}`,targetId:R,agentId:a,filePath:l,timestamp:o.timestamp||i,isActive:!1,additions:b,deletions:N}})}}}function Xn(e,a,s,g,u,c,d){for(const i of e){const o=i.noteId,l=`note-${o}`;if(!g.has(o)){const R={id:l,type:"note",noteId:o,title:s(o),lastAction:i.action,lastActionTimestamp:i.timestamp,x:0,y:0,vx:0,vy:0};g.set(o,R),u.push(R)}const n=i.action==="read"?"note-read":"note-write",p=`${n}-${a}-${o}`;c.has(p)||(c.add(p),d.push({key:p,sourceRawId:a,targetRawId:o,edge:{id:p,type:n,sourceId:`agent-${a}`,targetId:l,agentId:a,noteId:o,timestamp:i.timestamp,isActive:!1}}))}}function Un(e,a,s,g,u,c){for(const d of e){const i=d.taskId,o=`task-${i}`;if(!s.has(i)){const p={id:o,type:"task",taskId:i,name:d.name,description:d.description,state:d.state||"not_started",lastAction:d.action,lastActionTimestamp:d.timestamp,x:0,y:0,vx:0,vy:0};s.set(i,p),g.push(p)}const l=d.action==="create"?"task-create":"task-update",n=`${l}-${a}-${i}`;u.has(n)||(u.add(n),c.push({key:n,sourceRawId:a,targetRawId:i,edge:{id:n,type:l,sourceId:`agent-${a}`,targetId:o,agentId:a,taskId:i,timestamp:d.timestamp,isActive:!1}}))}}function Yn(e,a,s,g,u,c,d,i,o,l){for(const n of e){const p=new Date(n.timestamp).getTime(),R=s-p<Fn;if((n.type==="agent-created"||n.type==="agent-idle")&&n.parentAgentId){const h=`del-${n.parentAgentId}-${n.agentId}`;o.has(h)||(o.add(h),l.push({key:h,sourceRawId:n.parentAgentId,targetRawId:n.agentId,edge:{id:h,type:"delegation",sourceId:`agent-${n.parentAgentId}`,targetId:`agent-${n.agentId}`,parentAgentId:n.parentAgentId,childAgentId:n.agentId,timestamp:n.timestamp,isActive:R}}))}if((n.type==="file-read"||n.type==="file-write")&&n.targetId){const h=`file-${n.targetId}`;if(!d.has(n.targetId)){const b={id:h,type:"file",path:n.targetId,fileName:n.targetName||n.targetId.split("/").pop()||"",lastAction:n.type==="file-write"?"write":"read",lastActionTimestamp:n.timestamp,x:0,y:0,vx:0,vy:0};d.set(n.targetId,b),i.push(b)}const v=`${n.type}-${n.agentId}-${n.targetId}`;if(!o.has(v)){o.add(v);const b=n.type==="file-write"?u.get(n.targetId):void 0;let N=b?.additions,x=b?.deletions;if(n.type==="file-write"&&N===void 0&&x===void 0){const it=n.targetId.split("").reduce((E,I)=>E+I.charCodeAt(0),0);N=it%50+5,x=it%20+2}l.push({key:v,sourceRawId:n.agentId,targetRawId:n.targetId,edge:{id:v,type:n.type,sourceId:`agent-${n.agentId}`,targetId:h,agentId:n.agentId,filePath:n.targetId,timestamp:n.timestamp,isActive:R,additions:N,deletions:x}})}}if((n.type==="note-read"||n.type==="note-write")&&n.targetId){const h=`note-${n.targetId}`;if(!d.has(n.targetId)){const b={id:h,type:"note",noteId:n.targetId,title:c(n.targetId)||n.targetName||n.targetId,lastAction:n.type==="note-write"?"write":"read",lastActionTimestamp:n.timestamp,x:0,y:0,vx:0,vy:0};d.set(n.targetId,b),i.push(b)}const v=`${n.type}-${n.agentId}-${n.targetId}`;o.has(v)||(o.add(v),l.push({key:v,sourceRawId:n.agentId,targetRawId:n.targetId,edge:{id:v,type:n.type,sourceId:`agent-${n.agentId}`,targetId:h,agentId:n.agentId,noteId:n.targetId,timestamp:n.timestamp,isActive:R}}))}}}function Qn(e,a,s,g,u,c,d,i,o,l){if(e.some(h=>h.type==="file")||a.length===0)return;const p=[];for(const h of Object.keys(s)){const v=Sa.select(l,h);v&&(v.additions>0||v.deletions>0)&&p.push(h)}const R=p.length>0?p[0]:g;if(!(!R||!u.has(R)))for(const h of a){const v=h.path;if(!v)continue;const b=`file-${v}`;if(!u.has(v)){const N={id:b,type:"file",path:v,fileName:v.split("/").pop()||"",lastAction:h.action?.toLowerCase()==="delete"?"delete":"write",lastActionTimestamp:o,x:0,y:0,vx:0,vy:0};u.set(v,N),e.push(N);const x=`file-write-${R}-${v}`;c.has(x)||(c.add(x),d.push({id:x,type:"file-write",sourceId:`agent-${R}`,targetId:b,agentId:R,filePath:v,timestamp:o,isActive:i,additions:h.additions,deletions:h.deletions}))}}}var Vn=O('<div class="agent-overview-panel flex flex-col h-full bg-background overflow-auto svelte-1337n58"><!></div>');function pa(e,a){if(new.target)return oe({component:pa,...e});le(a,!0);const s=()=>$t(i,"$graphState$",g),[g,u]=Me();let c=st(a,"workspaceId",7),d=st(a,"onFocus",7);const i=Kn(c());Oe.dispatch(Ka(c()));function o(v,b,N){const x=N.metaKey||N.ctrlKey,it=Pa(N.target);Oe.dispatch(Ha(c(),{agentId:v,sourcePanelId:it,openInAdjacentPanel:x}))}const l=y(()=>s().nodes.filter(v=>qa(v)));var n={get workspaceId(){return c()},set workspaceId(v){c(v),rt()},get onFocus(){return d()},set onFocus(v){d(v),rt()},$set:ie,$on:(v,b)=>ce(a,v,b)},p=Vn(),R=L(p);la(R,{get agents(){return t(l)},get edges(){return s().edges},onAgentClick:o,get onFocus(){return d()}}),$(p),_(e,p);var h=de(n);return u(),h}function Zn(e,a){if(new.target)return oe({component:Zn,...e});le(a,!0);let s=st(a,"workspaceId",7),g=st(a,"onFocus",7);var u={get workspaceId(){return s()},set workspaceId(c){s(c),rt()},get onFocus(){return g()},set onFocus(c){g(c),rt()},$set:ie,$on:(c,d)=>ce(a,c,d)};return pa(e,{get workspaceId(){return s()},get onFocus(){return g()}}),de(u)}export{Zn as default};
|
|
13
|
+
L ${t(vt)??""} ${t(T)??""}`),gt(dt,"stroke",t(mt)),Xt(dt,0,se(t(At)),"svelte-13q5gm4"),gt(dt,"stroke-width",t(w))}),_(wt,dt)};at(Ce,wt=>{t(tt)<1?wt(va):t(vt)<t(lt)?wt(ha,1):wt(ma,-1)})}_(ut,fe)}),$(Gt);var ae=C(Gt,2);jt(ae,21,()=>t(kt),Se,(ut,j)=>{var Nt=De(),vt=Ut(Nt);{var lt=mt=>{var At=on();jt(At,21,()=>t(j).children,w=>w.agent.agentId,(w,T)=>{s(w,()=>t(T))}),$(At),A(()=>ne(At,`padding: 10px; margin-top: -10px; display: grid; grid-template-columns: repeat(${t(j).cols??""}, auto); gap: 12px;`)),_(mt,At)},zt=mt=>{s(mt,()=>t(j).child)};at(vt,mt=>{t(j).type==="batch"?mt(lt):mt(zt,-1)})}_(ut,Nt)}),$(ae),A(()=>{gt(Gt,"width",t(ot)),ne(ae,`gap: 12px; width: ${t(ot)??""}px;`)}),_(Ht,ue)}),$(xt),A(()=>ne(xt,`width: ${t(ot)??""}px;`)),_(F,xt)};at(be,F=>{t(m)&&F(Y)})}$(U),_(r,U)};let g=st(a,"agents",7),u=st(a,"edges",7),c=st(a,"onAgentClick",7),d=st(a,"onFocus",7);const i=12,o=[{id:"git",label:"Git",types:["commit-message","pr-description"]},{id:"review",label:Q.agentOverview_hierarchyGraph_reviewCorral_label(),types:["code-review","code-walkthrough"]}];let l=Mt(1),n=Mt(0),p=Mt(0),R=Mt(!1),h=Mt(_a({x:0,y:0})),v=Mt(null),b=Mt(null),N=Mt(null);function x(r){t(N)&&clearTimeout(t(N)),V(b,r,!0)}function it(){t(N)&&(clearTimeout(t(N)),V(N,null)),V(b,null)}const E=y(()=>t(b)?g().find(r=>r.agentId===t(b)):null),I=.25,P=2,ct=.1;function _t(r){if(r.preventDefault(),r.ctrlKey||r.metaKey){const f=-r.deltaY*.001,M=Math.min(P,Math.max(I,t(l)*(1+f)));if(t(v)){const W=t(v).getBoundingClientRect(),m=r.clientX-W.left,H=r.clientY-W.top,nt=M/t(l);V(n,m-(m-t(n))*nt),V(p,H-(H-t(p))*nt)}V(l,M,!0)}else V(n,t(n)-r.deltaX),V(p,t(p)-r.deltaY)}function Ft(r){const f=r.target,M=f.closest(".agent-hierarchy-graph")&&!f.closest(".agent-card")&&!f.closest(".bg-agent-card")&&!f.closest(".zoom-controls");(r.button===1||r.button===0&&(r.shiftKey||M))&&(V(R,!0),V(h,{x:r.clientX,y:r.clientY},!0),r.preventDefault()),r.button===0&&d()?.()}function Bt(r){if(!t(R))return;const f=r.clientX-t(h).x,M=r.clientY-t(h).y;V(n,t(n)+f),V(p,t(p)+M),V(h,{x:r.clientX,y:r.clientY},!0)}function ht(){V(R,!1)}function bt(){V(l,Math.min(P,t(l)+ct),!0)}function Kt(){V(l,Math.max(I,t(l)-ct),!0)}function Ot(){V(l,1),V(n,0),V(p,0)}function ge(){V(l,.8),V(n,0),V(p,0)}const Dt=y(()=>Math.round(t(l)*100)),Qt=5e3,k=10,D=4,Tt=6;function Rt(r,f,M){if(r.length===0)return[];const W=[],m=new Map;for(const S of r){const G=S.agent.delegationBatchId;G&&(m.has(G)||m.set(G,[]),m.get(G).push(S))}const H=new Set;for(const S of r){const G=S.agent.delegationBatchId;if(G)H.has(G)||(H.add(G),W.push(m.get(G)));else{const z=W[W.length-1];if(z&&!z[0].agent.delegationBatchId){const It=new Date(z[z.length-1].agent.createdAt).getTime();if(new Date(S.agent.createdAt).getTime()-It<=Qt){z.push(S);continue}}W.push([S])}}const nt=f+M;return W.map(S=>{if(S.length===1)return{type:"single",child:S[0],width:f};const G=Math.min(Math.ceil(Math.sqrt(S.length)),D),z=Math.ceil(S.length/G);return{type:"batch",children:S,cols:G,rows:z,width:G*nt-M+k*2}})}const Lt=y(()=>{const r=new Map;for(const f of g())r.set(f.agentId,f.name);return r}),me=new Set(o.flatMap(r=>[...r.types])),Zt=y(()=>{const r=[];for(const f of o){const M=new Set(f.types),W=g().filter(m=>m.agentType&&M.has(m.agentType));W.length>0&&r.push({id:f.id,label:f.label,agents:W})}return r}),_e=y(()=>g().filter(r=>!r.agentType||!me.has(r.agentType))),Jt=y(()=>{const r=new Map,f=[];for(const m of t(_e))r.set(m.agentId,{agent:m,children:[],activeFile:void 0,activeNote:void 0});const M=u().filter(m=>m.isActive);for(const m of M){const H=m.sourceId.replace("agent-",""),nt=r.get(H);nt&&(m.type==="file-read"||m.type==="file-write"?nt.activeFile=m.targetId.replace("file-","").split("/").pop():(m.type==="note-read"||m.type==="note-write")&&(nt.activeNote=m.targetId.replace("note-","")))}for(const[,m]of r){const H=m.agent.parentAgentId;H&&r.has(H)?r.get(H).children.push(m):f.push(m)}const W=(m,H)=>new Date(m.agent.createdAt).getTime()-new Date(H.agent.createdAt).getTime();for(const[,m]of r)m.children.sort(W);return f.sort(W),f});function te(r,f){c()?.(r.agentId,r.name,f)}var ye={get agents(){return g()},set agents(r){g(r),rt()},get edges(){return u()},set edges(r){u(r),rt()},get onAgentClick(){return c()},set onAgentClick(r){c(r),rt()},get onFocus(){return d()},set onFocus(r){d(r),rt()},$set:ie,$on:(r,f)=>ce(a,r,f)},yt=Cn(),Ie=L(yt);{var xe=r=>{var f=gn(),M=L(f),W=L(M),m=K(W,!0),H=C(W,2),nt=K(H,!0);$(M),$(f),A((S,G)=>{B(m,S),B(nt,G)},[()=>Q.agentOverview_hierarchyGraph_noAgents_title(),()=>Q.agentOverview_hierarchyGraph_noAgents_description()]),_(r,f)},ft=r=>{var f=Tn(),M=Ut(f),W=L(M),m=L(W);{var H=Y=>{var F=fn();jt(F,21,()=>t(Zt),q=>q.id,(q,J)=>{var et=un(),xt=L(et),Ht=K(xt,!0),kt=C(xt,2);jt(kt,21,()=>t(J).agents,Ct=>Ct.agentId,(Ct,Pt)=>{Re(Ct,{get agent(){return t(Pt)},onclick:ee=>te(t(Pt),ee),onmouseenter:()=>x(t(Pt).agentId),onmouseleave:it})}),$(kt),$(et),A(()=>B(Ht,t(J).label)),_(q,et)}),$(F),_(Y,F)};at(m,Y=>{t(Zt).length>0&&Y(H)})}var nt=C(m,2),S=L(nt),G=L(S);ne(G,"gap: 12px;"),jt(G,21,()=>t(Jt),Y=>Y.agent.agentId,(Y,F)=>{s(Y,()=>t(F))}),$(G),$(S),$(nt),$(W);var z=C(W,2);{var It=Y=>{{let F=y(()=>"--agent-hierarchy-"+t(b));Da(Y,{get anchor(){return t(F)},position:"top",absolute:!0,children:(q,J)=>{var et=bn(),xt=L(et),Ht=L(xt);La(Ht,{variant:"emphasized",get agentId(){return t(E).agentId}});var kt=C(Ht,2),Ct=L(kt),Pt=K(Ct,!0),ee=C(Ct,2);{var ke=w=>{var T=pn(),tt=K(T,!0);A(X=>B(tt,X),[()=>t(E).specialist.replace("-"," ")]),_(w,T)};at(ee,w=>{t(E).specialist&&w(ke)})}$(kt);var ue=C(kt,2);{var Gt=w=>{var T=vn(),tt=K(T,!0);A(X=>B(tt,X),[()=>Q.agentOverview_hierarchyGraph_background_badge()]),_(w,T)};at(ue,w=>{t(E).isBackground&&w(Gt)})}$(xt);var qt=C(xt,2),Ae=L(qt);{var $e=w=>{var T=hn(),tt=K(T);A(X=>B(tt,`● ${X??""}`),[()=>Q.agentOverview_hierarchyGraph_statusWaiting_label()]),_(w,T)},Te=w=>{var T=mn(),tt=K(T);A(X=>B(tt,`● ${X??""}`),[()=>Q.agentOverview_hierarchyGraph_statusResponding_label()]),_(w,T)},ae=w=>{var T=_n(),tt=K(T);A(X=>B(tt,`● ${X??""}`),[()=>Q.agentOverview_hierarchyGraph_statusCompleted_label()]),_(w,T)},ut=w=>{var T=yn(),tt=K(T);A(X=>B(tt,`● ${X??""}`),[()=>Q.agentOverview_hierarchyGraph_statusFailed_label()]),_(w,T)},j=w=>{var T=In(),tt=K(T);A(X=>B(tt,`● ${X??""}`),[()=>Q.agentOverview_hierarchyGraph_statusIdle_label()]),_(w,T)};at(Ae,w=>{t(E).status==="waiting"?w($e):t(E).status==="responding"?w(Te,1):t(E).status==="completed"?w(ae,2):t(E).status==="failed"?w(ut,3):w(j,-1)})}$(qt);var Nt=C(qt,2),vt=K(Nt,!0),lt=C(Nt,2);{var zt=w=>{var T=xn(),tt=K(T,!0);A(()=>B(tt,t(E).lastResponse)),_(w,T)};at(lt,w=>{t(E).lastResponse&&w(zt)})}var mt=C(lt,2);{var At=w=>{var T=wn(),tt=L(T);ea(tt,{size:12});var X=C(tt,2),fe=K(X,!0);$(T),A(Ce=>B(fe,Ce),[()=>Q.agentOverview_hierarchyGraph_usingTool_label({tool:t(E).activeToolName})]),_(w,T)};at(mt,w=>{t(E).activeToolName&&w(At)})}$(et),A(w=>{B(Pt,t(E).name),B(vt,w)},[()=>Q.agentOverview_hierarchyGraph_created_label({time:Ea(t(E).createdAt)})]),_(q,et)},$$slots:{default:!0}})}};at(z,Y=>{t(E)&&Y(It)})}$(M);var ot=C(M,2),U=L(ot);{let Y=y(()=>Q.agentOverview_hierarchyGraph_zoomOut_tooltip());Yt(U,{variant:"ghost",size:"icon",iconOnly:!0,type:"button",class:"zoom-btn hover:bg-muted transition-colors text-muted-foreground hover:text-foreground",onclick:Kt,get title(){return t(Y)},children:(F,q)=>{var J=kn();_(F,J)},$$slots:{default:!0}})}var Z=C(U,2);{let Y=y(()=>Q.agentOverview_hierarchyGraph_resetZoom_tooltip());Yt(Z,{variant:"ghost",type:"button",class:"zoom-percent w-12 h-8 flex items-center justify-center text-xs font-medium text-muted-foreground hover:text-foreground hover:bg-muted rounded transition-colors",onclick:Ot,get title(){return t(Y)},children:(F,q)=>{Ia();var J=xa();A(()=>B(J,`${t(Dt)??""}%`)),_(F,J)},$$slots:{default:!0}})}var pt=C(Z,2);{let Y=y(()=>Q.agentOverview_hierarchyGraph_zoomIn_tooltip());Yt(pt,{variant:"ghost",size:"icon",iconOnly:!0,type:"button",class:"zoom-btn hover:bg-muted transition-colors text-muted-foreground hover:text-foreground",onclick:bt,get title(){return t(Y)},children:(F,q)=>{var J=An();_(F,J)},$$slots:{default:!0}})}var Et=C(pt,4);{let Y=y(()=>Q.agentOverview_hierarchyGraph_fitToView_tooltip());Yt(Et,{variant:"ghost",size:"icon",iconOnly:!0,type:"button",class:"zoom-btn hover:bg-muted transition-colors text-muted-foreground hover:text-foreground",onclick:ge,get title(){return t(Y)},children:(F,q)=>{var J=$n();_(F,J)},$$slots:{default:!0}})}$(ot);var we=C(ot,2),be=K(we,!0);A(Y=>{ne(M,`transform: translate(${t(n)??""}px, ${t(p)??""}px) scale(${t(l)??""}); transform-origin: center center;`),B(be,Y)},[()=>Q.agentOverview_hierarchyGraph_panHint_label()]),_(r,f)};at(Ie,r=>{t(Jt).length===0?r(xe):r(ft,-1)})}return $(yt),ba(yt,r=>V(v,r),()=>t(v)),Be("wheel",yt,_t),Ne("mousedown",yt,Ft),Ne("mousemove",yt,Bt),Ne("mouseup",yt,ht),Be("mouseleave",yt,ht),_(e,yt),de(ye)}ya(["mousedown","mousemove","mouseup"]);const Ee=new Set(["str-replace-editor","save-file","remove-files","str_replace_editor"]),Pe=new Set(["create_note","update_note","set_note_content","add_to_note","append_to_note","edit_note","edit_note_lines","update_note_metadata","read_note","view_note","delete_note"]),Nn=new Set(["read_note","view_note","list_note_tasks"]),Ge=new Set(["add_tasks","update_tasks","view_tasklist","reorganize_tasklist"]),Sn=new Set(["view_tasklist"]),ze=new Set(["delegate_task","create_sub_agent","create_agent"]),Fn=5e3;function On(e,a=!1){if(!e)return"idle";if(e.status===St.Completed)return"completed";if(e.status===St.Error||e.status===St.Deleted)return"failed";if(a||da(e))return"responding";if(ga(e.status))return"idle";if(e.messages&&e.messages.length>0){const s=[...e.messages].reverse().find(g=>g.role==="assistant");if(s&&(s.isStreaming||s.streamingComplete===!1))return"responding"}switch(e.status){case St.Active:return"idle";case St.Pending:case St.Idle:return"idle";case St.Processing:return a?"responding":"idle";case St.Waiting:return"waiting";default:return"idle"}}function da(e){return!!(e.isProcessing||e.isStreaming||e.isResponding)}function ga(e){return e===St.Idle||e==="idle"}function Rn(e){const a={};if(!e)return a;if(e.lastAgentResponse){const s=Ta(e.lastAgentResponse);s&&(a.lastResponse=s)}return ga(e.status)&&!da(e)||e.isStreaming&&e.lastToolUse?.name&&(a.activeToolName=e.lastToolUse.name,a.activeToolInput=e.lastToolUse.input||{}),a}function Wt(e){return(e.name||e.toolName||"").toLowerCase()}function Vt(e){return"input"in e&&e.input?e.input:"arguments"in e&&e.arguments?e.arguments:"parameters"in e&&e.parameters?e.parameters:{}}function Mn(e){const a=e.toLowerCase();if(Ee.has(e))return!0;for(const s of Ee)if(a.startsWith(s.toLowerCase()))return!0;return!!(a.startsWith("edit ")||a.startsWith("save ")||a.startsWith("create "))}function ua(e){const a=e.toLowerCase();return!!(a.startsWith("read `")&&!a.includes("read `.`")||a.startsWith("view")||a==="view")}function je(e){if(Pe.has(e))return!0;for(const a of Pe)if(e.startsWith(a))return!0;return!1}function Wn(e){return e==="save-file"?"create":e==="remove-files"?"delete":"modify"}function Ke(e){return e==="create_note"?"create":Nn.has(e)?"read":"write"}function He(e){if(Ge.has(e))return!0;for(const a of Ge)if(e.startsWith(a))return!0;return!1}function qe(e){return e==="add_tasks"?"create":Sn.has(e)?"read":"update"}function fa(e){if(e==="."||e==="./"||e.endsWith("/"))return!0;const s=(e.split("/").pop()||e).lastIndexOf(".");return s===-1||s===0}function Bn(e){const a=e.match(/`([^`]+)`/);if(a&&a[1]){const s=a[1];return fa(s)?null:s}return null}function Xe(e,a){const s=e.path||e.file_path||e.filePath;return typeof s=="string"?fa(s)?null:s:a?Bn(a):null}function Ue(e){const a=e.noteId||e.note_id||e.title;return typeof a=="string"?a:null}function Ye(e){return Mn(e)||ua(e)}function Ve(e){return ua(e)?"read":Wn(e)}function Dn(e,a){const s=[],g=new Set;for(const u of e){const c=u.timestamp?.toString()||a;if(u.toolCalls&&Array.isArray(u.toolCalls))for(const d of u.toolCalls){const i=Wt(d);if(!Ye(i))continue;const o=Vt(d),l=Xe(o,d.name||d.toolName);!l||g.has(l)||(g.add(l),s.push({path:l,type:Ve(i),timestamp:c}))}if(u.contentBlocks&&Array.isArray(u.contentBlocks))for(const d of u.contentBlocks){if(d.type!=="tool_use")continue;const i=Wt(d);if(!Ye(i))continue;const o=Vt(d),l=Xe(o,d.name);!l||g.has(l)||(g.add(l),s.push({path:l,type:Ve(i),timestamp:c}))}}return s}function Ln(e,a){const s=[],g=new Set;for(const u of e){const c=u.timestamp?.toString()||a;if(u.toolCalls&&Array.isArray(u.toolCalls))for(const d of u.toolCalls){const i=Wt(d);if(!je(i))continue;const o=Vt(d),l=Ue(o);!l||g.has(l)||(g.add(l),s.push({noteId:l,title:o.title||l,action:Ke(i),timestamp:c}))}if(u.contentBlocks&&Array.isArray(u.contentBlocks))for(const d of u.contentBlocks){if(d.type!=="tool_use")continue;const i=Wt(d);if(!je(i))continue;const o=Vt(d),l=Ue(o);!l||g.has(l)||(g.add(l),s.push({noteId:l,title:o.title||l,action:Ke(i),timestamp:c}))}}return s}function Qe(e){const a=[],s=e.tasks;if(Array.isArray(s)){for(const g of s)if(typeof g=="object"&&g!==null){const u=g,c=u.name;c&&a.push({taskId:`task-${c.toLowerCase().replace(/\s+/g,"-").slice(0,30)}`,name:c,description:u.description,state:u.state})}}if(Array.isArray(s)){for(const g of s)if(typeof g=="object"&&g!==null){const u=g,c=u.task_id;c&&!a.some(d=>d.taskId===c)&&a.push({taskId:c,name:u.name||c,description:u.description,state:u.state})}}return a}function Ze(e){if(!e)return"not_started";const a=e.toLowerCase();return a==="complete"||a==="completed"||a==="done"?"complete":a==="in_progress"||a==="in-progress"||a==="started"?"in_progress":a==="cancelled"||a==="canceled"?"cancelled":"not_started"}function En(e,a){const s=[],g=new Set;for(const u of e){const c=u.timestamp?.toString()||a;if(u.toolCalls&&Array.isArray(u.toolCalls))for(const d of u.toolCalls){const i=Wt(d);if(!He(i))continue;const o=Vt(d),l=qe(i),n=Qe(o);for(const p of n)g.has(p.taskId)||(g.add(p.taskId),s.push({taskId:p.taskId,name:p.name,description:p.description,state:Ze(p.state),action:l,timestamp:c}))}if(u.contentBlocks&&Array.isArray(u.contentBlocks))for(const d of u.contentBlocks){if(d.type!=="tool_use")continue;const i=Wt(d);if(!He(i))continue;const o=Vt(d),l=qe(i),n=Qe(o);for(const p of n)g.has(p.taskId)||(g.add(p.taskId),s.push({taskId:p.taskId,name:p.name,description:p.description,state:Ze(p.state),action:l,timestamp:c}))}}return s}function Je(e){if(ze.has(e))return!0;for(const a of ze)if(e.startsWith(a))return!0;return!1}function ta(e){if(!e)return null;const a=e.match(/Agent ID:\s*(\S+)/i);return a?a[1]:null}function ve(e){if(typeof e=="string")return e;if(Array.isArray(e))return e.filter(a=>a&&typeof a=="object"&&a.type==="text"&&a.text).map(a=>a.text).join(`
|
|
14
|
+
`);if(e&&typeof e=="object"){const a=e;if(typeof a.text=="string")return a.text;if(typeof a.content=="string")return a.content}return""}function Pn(e,a){const s=new Map,g=new Map;let u=0;for(const c of e){const d=[];if(c.contentBlocks&&Array.isArray(c.contentBlocks)){for(const i of c.contentBlocks)if(i.type==="tool_use"&&i.name){const o=Wt(i);Je(o)&&i.id&&d.push(i.id)}}if(c.toolCalls&&Array.isArray(c.toolCalls))for(const i of c.toolCalls){const o=Wt(i);if(Je(o)){const l=i.id;l&&!d.includes(l)&&d.push(l)}}if(d.length>1){const i=`${a}-batch-${u}`;for(const o of d)g.set(o,i);u++}}for(const c of e){if(c.contentBlocks&&Array.isArray(c.contentBlocks)){for(const d of c.contentBlocks)if(d.type==="tool_result"&&d.tool_use_id){const i=d.tool_use_id,o=g.get(i);if(o){const l=ve(d.text)||ve(d.content)||ve(d.output),n=ta(l);n&&s.set(n,o)}}}if(c.toolCalls&&Array.isArray(c.toolCalls))for(const d of c.toolCalls){const i=d.id;if(!i)continue;const o=g.get(i);if(!o)continue;const l=d.result;if(l){const n=ve(l),p=ta(n);p&&s.set(p,o)}}}return s}function Gn(e){const a={id:e.id,timestamp:e.timestamp,agentId:e.actor?.id||"",agentName:e.actor?.name};if(e.type==="agent:created"){const s=e.data;return{...a,type:"agent-created",agentId:s?.agentId||a.agentId,agentName:s?.agentName||a.agentName,parentAgentId:s?.createdByAgentId}}if(e.type==="agent:idle"){const s=e.data;return{...a,type:"agent-idle",agentId:s?.agentId||a.agentId,parentAgentId:s?.parentAgentId}}if(e.type==="file:changed"&&e.actor?.type==="agent"){const s=e.data,g=s?.action,u=g==="create"||g==="modify"||g==="delete",c=s?.relativePath;return{...a,type:u?"file-write":"file-read",targetId:s?.path||c,targetName:c?.split("/").pop()}}if(e.type?.startsWith("note:")&&e.actor?.type==="agent"){const s=e.data,g=e.type==="note:created"||e.type==="note:updated";return{...a,type:g?"note-write":"note-read",targetId:s?.noteId,targetName:s?.title}}if(e.type==="agent:tool:call"){const s=e.data,g=s?.toolName?.toLowerCase()||"";if(g.includes("read")&&s?.filesModified?.[0])return{...a,type:"file-read",targetId:s.filesModified[0],targetName:s.filesModified[0].split("/").pop()};if((g.includes("write")||g.includes("edit"))&&s?.filesModified?.[0])return{...a,type:"file-write",targetId:s.filesModified[0],targetName:s.filesModified[0].split("/").pop()}}return null}function zn(e,a){const s=e.workspaceEvents.byWorkspaceId[a]?.events??[],g=[];for(const u of s){const c=Gn(u);c&&g.push(c)}return g.sort((u,c)=>new Date(u.timestamp).getTime()-new Date(c.timestamp).getTime())}function jn(e){return e.length===0?new Date().toISOString():new Date(Math.max(...e.map(a=>new Date(a.timestamp).getTime()))).toISOString()}const Kn=Oe.createSelector((e,a)=>{const s=zn(e,a),g=jn(s),u=Ca.select(e,a),c={};for(const o of Na.select(e,a))c[String(o.id)]=o;const d=e.workspaceNotes.byWorkspaceId[a],i=new Map;if(d)for(const o of Ga(d.notes))i.set(o.id,o);return Hn(s,c,g,!0,u,e,i)});function Hn(e,a,s,g,u,c,d){const i=new Date(s).getTime(),o=new Map;for(const I of u)o.set(I.path,I);const l=I=>d?.get(I)?.title||I,n=e.filter(I=>new Date(I.timestamp).getTime()<=i),p=[],R=[],h=new Map,v=new Set,b=[];let N=null;for(const[I,P]of Object.entries(a))if(za(P)==="topLevel"){N=I;break}for(const[I,P]of Object.entries(a)){if(h.has(I))continue;const ct=ja(P),_t=Rn(P),Ft=ra.select(c,I),Bt=We.select(c,I),ht=P.waitingForAgentIds;let bt=On(P,Ft);Bt?bt="waiting":(Ft||bt==="idle"&&_t.activeToolName)&&(bt="responding");const Kt={id:`agent-${I}`,type:"agent",agentId:I,name:P.name||"Agent",isCoordinator:I===N,isBackground:P.isBackground||!1,status:bt,specialist:P.metadata?.specialist||null,parentAgentId:ct,createdAt:String(P.createdAt||s),waitingForAgentIds:ht,activeToolName:_t.activeToolName,activeToolInput:_t.activeToolInput,lastResponse:_t.lastResponse,agentType:P.metadata?.agentType||null,x:0,y:0,vx:0,vy:0};if(h.set(I,Kt),p.push(Kt),ct&&a[ct]){const D=`del-${ct}-${I}`;v.has(D)||(v.add(D),b.push({key:D,sourceRawId:ct,targetRawId:I,edge:{id:D,type:"delegation",sourceId:`agent-${ct}`,targetId:`agent-${I}`,parentAgentId:ct,childAgentId:I,timestamp:String(P.createdAt||s),isActive:!1}}))}const Ot=P.messages||[];let Dt=Dn(Ot,s).map(D=>({...D,additions:o.get(D.path)?.additions,deletions:o.get(D.path)?.deletions}));Dt.length===0&&P.fileChanges&&P.fileChanges.length>0&&(Dt=P.fileChanges.map(D=>({path:D.path,type:D.type,timestamp:String(D.timestamp||s),additions:o.get(D.path)?.additions,deletions:o.get(D.path)?.deletions}))),qn(Dt,I,o,h,p,v,b,s);const Qt=Ln(Ot,s);Xn(Qt,I,l,h,p,v,b);const k=En(Ot,s);Un(k,I,h,p,v,b)}for(const[I,P]of Object.entries(a)){const ct=P.messages||[];if(ct.length===0)continue;const _t=Pn(ct,I);if(_t.size!==0)for(const[Ft,Bt]of _t){const ht=h.get(Ft);ht&&ht.type==="agent"&&(ht.delegationBatchId=Bt)}}Yn(n,g,i,a,o,l,h,p,v,b),Vn(p,u,a,N,h,v,R,g,s,c);for(const I of b)h.has(I.sourceRawId)&&h.has(I.targetRawId)&&R.push(I.edge);const x=e.map(I=>new Date(I.timestamp).getTime()),it=x.length>0?new Date(Math.min(...x)).toISOString():s,E=x.length>0?new Date(Math.max(...x)).toISOString():s;return{nodes:p,edges:R,currentTime:s,isLive:g,minTime:it,maxTime:E}}function qn(e,a,s,g,u,c,d,i){for(const o of e){const l=o.path;if(!l)continue;const n=o.type==="read",p=n?"file-read":"file-write",R=`file-${l}`;if(!g.has(l)){const v={id:R,type:"file",path:l,fileName:l.split("/").pop()||"",lastAction:o.type==="delete"?"delete":n?"read":"write",lastActionTimestamp:o.timestamp||i,x:0,y:0,vx:0,vy:0};g.set(l,v),u.push(v)}const h=`${p}-${a}-${l}`;if(!c.has(h)){c.add(h);const v=n?void 0:s.get(l);let b=n?void 0:o.additions??v?.additions,N=n?void 0:o.deletions??v?.deletions;if(!n&&b===void 0&&N===void 0){const x=l.split("").reduce((it,E)=>it+E.charCodeAt(0),0);o.type==="create"?(b=x%80+20,N=0):o.type==="modify"?(b=x%50+5,N=x%20+2):(b=x%30+3,N=x%15+1)}d.push({key:h,sourceRawId:a,targetRawId:l,edge:{id:h,type:p,sourceId:`agent-${a}`,targetId:R,agentId:a,filePath:l,timestamp:o.timestamp||i,isActive:!1,additions:b,deletions:N}})}}}function Xn(e,a,s,g,u,c,d){for(const i of e){const o=i.noteId,l=`note-${o}`;if(!g.has(o)){const R={id:l,type:"note",noteId:o,title:s(o),lastAction:i.action,lastActionTimestamp:i.timestamp,x:0,y:0,vx:0,vy:0};g.set(o,R),u.push(R)}const n=i.action==="read"?"note-read":"note-write",p=`${n}-${a}-${o}`;c.has(p)||(c.add(p),d.push({key:p,sourceRawId:a,targetRawId:o,edge:{id:p,type:n,sourceId:`agent-${a}`,targetId:l,agentId:a,noteId:o,timestamp:i.timestamp,isActive:!1}}))}}function Un(e,a,s,g,u,c){for(const d of e){const i=d.taskId,o=`task-${i}`;if(!s.has(i)){const p={id:o,type:"task",taskId:i,name:d.name,description:d.description,state:d.state||"not_started",lastAction:d.action,lastActionTimestamp:d.timestamp,x:0,y:0,vx:0,vy:0};s.set(i,p),g.push(p)}const l=d.action==="create"?"task-create":"task-update",n=`${l}-${a}-${i}`;u.has(n)||(u.add(n),c.push({key:n,sourceRawId:a,targetRawId:i,edge:{id:n,type:l,sourceId:`agent-${a}`,targetId:o,agentId:a,taskId:i,timestamp:d.timestamp,isActive:!1}}))}}function Yn(e,a,s,g,u,c,d,i,o,l){for(const n of e){const p=new Date(n.timestamp).getTime(),R=s-p<Fn;if((n.type==="agent-created"||n.type==="agent-idle")&&n.parentAgentId){const h=`del-${n.parentAgentId}-${n.agentId}`;o.has(h)||(o.add(h),l.push({key:h,sourceRawId:n.parentAgentId,targetRawId:n.agentId,edge:{id:h,type:"delegation",sourceId:`agent-${n.parentAgentId}`,targetId:`agent-${n.agentId}`,parentAgentId:n.parentAgentId,childAgentId:n.agentId,timestamp:n.timestamp,isActive:R}}))}if((n.type==="file-read"||n.type==="file-write")&&n.targetId){const h=`file-${n.targetId}`;if(!d.has(n.targetId)){const b={id:h,type:"file",path:n.targetId,fileName:n.targetName||n.targetId.split("/").pop()||"",lastAction:n.type==="file-write"?"write":"read",lastActionTimestamp:n.timestamp,x:0,y:0,vx:0,vy:0};d.set(n.targetId,b),i.push(b)}const v=`${n.type}-${n.agentId}-${n.targetId}`;if(!o.has(v)){o.add(v);const b=n.type==="file-write"?u.get(n.targetId):void 0;let N=b?.additions,x=b?.deletions;if(n.type==="file-write"&&N===void 0&&x===void 0){const it=n.targetId.split("").reduce((E,I)=>E+I.charCodeAt(0),0);N=it%50+5,x=it%20+2}l.push({key:v,sourceRawId:n.agentId,targetRawId:n.targetId,edge:{id:v,type:n.type,sourceId:`agent-${n.agentId}`,targetId:h,agentId:n.agentId,filePath:n.targetId,timestamp:n.timestamp,isActive:R,additions:N,deletions:x}})}}if((n.type==="note-read"||n.type==="note-write")&&n.targetId){const h=`note-${n.targetId}`;if(!d.has(n.targetId)){const b={id:h,type:"note",noteId:n.targetId,title:c(n.targetId)||n.targetName||n.targetId,lastAction:n.type==="note-write"?"write":"read",lastActionTimestamp:n.timestamp,x:0,y:0,vx:0,vy:0};d.set(n.targetId,b),i.push(b)}const v=`${n.type}-${n.agentId}-${n.targetId}`;o.has(v)||(o.add(v),l.push({key:v,sourceRawId:n.agentId,targetRawId:n.targetId,edge:{id:v,type:n.type,sourceId:`agent-${n.agentId}`,targetId:h,agentId:n.agentId,noteId:n.targetId,timestamp:n.timestamp,isActive:R}}))}}}function Vn(e,a,s,g,u,c,d,i,o,l){if(e.some(h=>h.type==="file")||a.length===0)return;const p=[];for(const h of Object.keys(s)){const v=Sa.select(l,h);v&&(v.additions>0||v.deletions>0)&&p.push(h)}const R=p.length>0?p[0]:g;if(!(!R||!u.has(R)))for(const h of a){const v=h.path;if(!v)continue;const b=`file-${v}`;if(!u.has(v)){const N={id:b,type:"file",path:v,fileName:v.split("/").pop()||"",lastAction:h.action?.toLowerCase()==="delete"?"delete":"write",lastActionTimestamp:o,x:0,y:0,vx:0,vy:0};u.set(v,N),e.push(N);const x=`file-write-${R}-${v}`;c.has(x)||(c.add(x),d.push({id:x,type:"file-write",sourceId:`agent-${R}`,targetId:b,agentId:R,filePath:v,timestamp:o,isActive:i,additions:h.additions,deletions:h.deletions}))}}}var Qn=O('<div class="agent-overview-panel flex flex-col h-full bg-background overflow-auto svelte-1337n58"><!></div>');function pa(e,a){if(new.target)return oe({component:pa,...e});le(a,!0);const s=()=>$t(i,"$graphState$",g),[g,u]=Me();let c=st(a,"workspaceId",7),d=st(a,"onFocus",7);const i=Kn(c());Oe.dispatch(Ka(c()));function o(v,b,N){const x=N.metaKey||N.ctrlKey,it=Pa(N.target);Oe.dispatch(Ha(c(),{agentId:v,sourcePanelId:it,openInAdjacentPanel:x}))}const l=y(()=>s().nodes.filter(v=>qa(v)));var n={get workspaceId(){return c()},set workspaceId(v){c(v),rt()},get onFocus(){return d()},set onFocus(v){d(v),rt()},$set:ie,$on:(v,b)=>ce(a,v,b)},p=Qn(),R=L(p);la(R,{get agents(){return t(l)},get edges(){return s().edges},onAgentClick:o,get onFocus(){return d()}}),$(p),_(e,p);var h=de(n);return u(),h}function Zn(e,a){if(new.target)return oe({component:Zn,...e});le(a,!0);let s=st(a,"workspaceId",7),g=st(a,"onFocus",7);var u={get workspaceId(){return s()},set workspaceId(c){s(c),rt()},get onFocus(){return g()},set onFocus(c){g(c),rt()},$set:ie,$on:(c,d)=>ce(a,c,d)};return pa(e,{get workspaceId(){return s()},get onFocus(){return g()}}),de(u)}export{Zn as default};
|