@intent-hq/web 2.315.0 → 2.316.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{CzzsK_z0.js → -4NpXDFA.js} +1 -1
- package/web/app/immutable/chunks/-JijlOOI.js +1 -0
- package/web/app/immutable/chunks/{B36kU0RI.js → 1glN8WZR.js} +1 -1
- package/web/app/immutable/chunks/{CIkNpS3P.js → 4GOFpkFz.js} +1 -1
- package/web/app/immutable/chunks/{B6o2T7JU.js → 4OYv1x7m.js} +1 -1
- package/web/app/immutable/chunks/{BzVDQRgL.js → 5Qkq80VH.js} +1 -1
- package/web/app/immutable/chunks/{bS-VFUYb.js → 5doW_7tI.js} +1 -1
- package/web/app/immutable/chunks/{Cuq9exmb.js → 62Z5FdlR.js} +1 -1
- package/web/app/immutable/chunks/{BA8g-07b.js → 6TqymR4w.js} +1 -1
- package/web/app/immutable/chunks/{Dvap-Bcg.js → 6b0rgNvc.js} +2 -2
- package/web/app/immutable/chunks/{ZaCkwnYl.js → 74ywEOg9.js} +1 -1
- package/web/app/immutable/chunks/{DEmaG7Ya.js → 8mzXJxUW.js} +1 -1
- package/web/app/immutable/chunks/{CpELl9t1.js → AXIAXE42.js} +3 -3
- package/web/app/immutable/chunks/{DTsLO4aV.js → B-QbT_QZ.js} +1 -1
- package/web/app/immutable/chunks/{DDIYUGOD.js → B1LQECzz.js} +1 -1
- package/web/app/immutable/chunks/{BsB-PCKs.js → B3RA9kXa.js} +1 -1
- package/web/app/immutable/chunks/{Swkg1pRS.js → B4r7cJNO.js} +1 -1
- package/web/app/immutable/chunks/{IIdGbw6g.js → B5CAnWhZ.js} +1 -1
- package/web/app/immutable/chunks/{BDIALQgX.js → B5JU_-gP.js} +1 -1
- package/web/app/immutable/chunks/{C3vS1byi.js → B666jmxV.js} +1 -1
- package/web/app/immutable/chunks/{D60vJvLR.js → B89nEuF-.js} +1 -1
- package/web/app/immutable/chunks/{Csa9LtrA.js → B8NcRhEG.js} +1 -1
- package/web/app/immutable/chunks/{9GP6SafJ.js → B8W3QKCn.js} +1 -1
- package/web/app/immutable/chunks/{B1h0QCy7.js → B9HMXORu.js} +1 -1
- package/web/app/immutable/chunks/{BS-r7N3W.js → B9Y6nB-h.js} +1 -1
- package/web/app/immutable/chunks/{BwdewdLu.js → BAMIlwbq.js} +1 -1
- package/web/app/immutable/chunks/{Dj42fWMH.js → BAm6Imyt.js} +1 -1
- package/web/app/immutable/chunks/{CTKJUmq_.js → BDA1Ugkc.js} +1 -1
- package/web/app/immutable/chunks/{CZBUuakO.js → BDPSecFd.js} +2 -2
- package/web/app/immutable/chunks/{D22I-TIV.js → BELPi3nC.js} +1 -1
- package/web/app/immutable/chunks/{CtO7SsM-.js → BEZid-wN.js} +1 -1
- package/web/app/immutable/chunks/{eYob4ynm.js → BEm-LQiN.js} +1 -1
- package/web/app/immutable/chunks/{CUjmBXfD.js → BErHxpt7.js} +1 -1
- package/web/app/immutable/chunks/{BoXSGPEf.js → BI_3dcBJ.js} +2 -2
- package/web/app/immutable/chunks/{dyJEvFNA.js → BJHfEwR6.js} +1 -1
- package/web/app/immutable/chunks/{PeOOhaLn.js → BJjB6NZq.js} +1 -1
- package/web/app/immutable/chunks/{DE0RJrWM.js → BKNCuPkO.js} +1 -1
- package/web/app/immutable/chunks/{wc9xM_2L.js → BM8QRBST.js} +1 -1
- package/web/app/immutable/chunks/{CfHhYnBc.js → BPGcNKLB.js} +1 -1
- package/web/app/immutable/chunks/{BGkYz2ud.js → BQ8tXdZu.js} +1 -1
- package/web/app/immutable/chunks/{DrxYPSVr.js → BSwRALVr.js} +1 -1
- package/web/app/immutable/chunks/{hUiIfi2t.js → BTNnUZgK.js} +1 -1
- package/web/app/immutable/chunks/{45Qi4YFf.js → BThHq8_S.js} +1 -1
- package/web/app/immutable/chunks/{D1h8l9Ve.js → BVGPFX9W.js} +1 -1
- package/web/app/immutable/chunks/{BI7cYdMD.js → BZ779J0V.js} +3 -3
- package/web/app/immutable/chunks/{BM62R-OM.js → BZyiigVh.js} +1 -1
- package/web/app/immutable/chunks/{JchQH-Q8.js → B_-HLIzl.js} +1 -1
- package/web/app/immutable/chunks/{jn5owXje.js → B_Lm5gCD.js} +1 -1
- package/web/app/immutable/chunks/{Clc6wozH.js → B_Uva0b1.js} +1 -1
- package/web/app/immutable/chunks/BaBfwkQ0.js +4 -0
- package/web/app/immutable/chunks/{ZpSdOcUX.js → BdGv2V1p.js} +1 -1
- package/web/app/immutable/chunks/{C8LKnqUt.js → BdtaGGP-.js} +1 -1
- package/web/app/immutable/chunks/{cE62vW_i.js → Be4GIdcx.js} +2 -2
- package/web/app/immutable/chunks/{17xFUwtQ.js → BeqM5XE9.js} +2 -2
- package/web/app/immutable/chunks/{etKulcEH.js → Bffmk8mK.js} +1 -1
- package/web/app/immutable/chunks/{DbrsPlQk.js → BhFD9JDw.js} +1 -1
- package/web/app/immutable/chunks/{C7ilG2WB.js → BiJhyKRr.js} +1 -1
- package/web/app/immutable/chunks/{CMMABWQi.js → BiLRO_7d.js} +1 -1
- package/web/app/immutable/chunks/{D441f0lY.js → Bj5FOIMp.js} +43 -43
- package/web/app/immutable/chunks/{CzdJ5DN4.js → BkPvaENa.js} +1 -1
- package/web/app/immutable/chunks/{Czd6tfZA.js → BlBXbDCF.js} +1 -1
- package/web/app/immutable/chunks/{qmO_2WOw.js → Bl_mdtS5.js} +1 -1
- package/web/app/immutable/chunks/{BTxL9if-.js → BnY3EDnN.js} +3 -3
- package/web/app/immutable/chunks/{DXHWw6vt.js → BodsW_pQ.js} +2 -2
- package/web/app/immutable/chunks/{DnMKNs0X.js → BqCXmi6V.js} +3 -3
- package/web/app/immutable/chunks/{CBRfvExq.js → BqUqwkFB.js} +1 -1
- package/web/app/immutable/chunks/{B6MVuluU.js → BqZ5K73B.js} +1 -1
- package/web/app/immutable/chunks/{D5arKTNF.js → Bqva_xpl.js} +1 -1
- package/web/app/immutable/chunks/{DxI6kRYN.js → Bs8Qb-17.js} +1 -1
- package/web/app/immutable/chunks/{Bjzk9M3D.js → BszyP2Xm.js} +1 -1
- package/web/app/immutable/chunks/{ja3pdsid.js → Bt8I_YBy.js} +1 -1
- package/web/app/immutable/chunks/{DbHbiWFj.js → BuJ6T8t6.js} +1 -1
- package/web/app/immutable/chunks/{DGvAL7MJ.js → BuNSu9iM.js} +1 -1
- package/web/app/immutable/chunks/{BP6KtsDA.js → BxgdFxC5.js} +1 -1
- package/web/app/immutable/chunks/{BHJ90Mf-.js → Byx47MBL.js} +1 -1
- package/web/app/immutable/chunks/{B2jOlwPp.js → BzbMU544.js} +1 -1
- package/web/app/immutable/chunks/{CjCXWRTy.js → C-b2TnYk.js} +1 -1
- package/web/app/immutable/chunks/{DcBvBE74.js → C010Rrz_.js} +1 -1
- package/web/app/immutable/chunks/{D0UrvUQM.js → C0GDF9vt.js} +1 -1
- package/web/app/immutable/chunks/{DZhHioOL.js → C2Inz1MA.js} +1 -1
- package/web/app/immutable/chunks/{Cufik1EG.js → C2WXNTdR.js} +1 -1
- package/web/app/immutable/chunks/{BW4yj8m7.js → C3HkPZ8G.js} +1 -1
- package/web/app/immutable/chunks/{CFrKPVp-.js → C4RhwIf-.js} +1 -1
- package/web/app/immutable/chunks/{D2QAvk7S.js → C4u6LQEf.js} +1 -1
- package/web/app/immutable/chunks/{1r2-2NoO.js → C53cDHO_.js} +1 -1
- package/web/app/immutable/chunks/{DM1ZHS3Y.js → C5_6YJsU.js} +1 -1
- package/web/app/immutable/chunks/{Deg5jWhG.js → C74GZ40P.js} +1 -1
- package/web/app/immutable/chunks/{dUOQ5AaY.js → C8iHXc33.js} +1 -1
- package/web/app/immutable/chunks/{B-8kHUzd.js → C9Fu7eOC.js} +1 -1
- package/web/app/immutable/chunks/{BMMcARVk.js → C9I4tasT.js} +1 -1
- package/web/app/immutable/chunks/{CjGoJ5M9.js → C9mX4U8C.js} +2 -2
- package/web/app/immutable/chunks/{DUjsEo3X.js → CB7NczxA.js} +1 -1
- package/web/app/immutable/chunks/{-EpgQj88.js → CB__zD5M.js} +1 -1
- package/web/app/immutable/chunks/{DNFEdIdv.js → CCIM6To3.js} +1 -1
- package/web/app/immutable/chunks/{AStlTL_B.js → CD9NMDLt.js} +1 -1
- package/web/app/immutable/chunks/{Cpn3qWfd.js → CDKknk7B.js} +1 -1
- package/web/app/immutable/chunks/{CEoXgs7Q.js → CEB_6XsH.js} +1 -1
- package/web/app/immutable/chunks/{B-P4veSb.js → CH1mzr4Y.js} +1 -1
- package/web/app/immutable/chunks/{BlQxdvN2.js → CI2w5V5f.js} +1 -1
- package/web/app/immutable/chunks/{BZmsmL8P.js → CK7B4YgF.js} +1 -1
- package/web/app/immutable/chunks/{C5-HTPPK.js → CKMm3ui8.js} +1 -1
- package/web/app/immutable/chunks/{i8qNDIdz.js → CQGNrQKX.js} +1 -1
- package/web/app/immutable/chunks/{CPS8yuKp.js → CRB8gnRr.js} +1 -1
- package/web/app/immutable/chunks/{D43c7AFS.js → CT6OoS2U.js} +1 -1
- package/web/app/immutable/chunks/{DQ13AkOA.js → CU7uaRH8.js} +1 -1
- package/web/app/immutable/chunks/{Cso7NntT.js → CUsBvtcm.js} +1 -1
- package/web/app/immutable/chunks/{D56XXK4f.js → CVRU8SPX.js} +1 -1
- package/web/app/immutable/chunks/{B-2_r0A5.js → CVUE3R4M.js} +1 -1
- package/web/app/immutable/chunks/{DRONnAVY.js → CVaZI97u.js} +1 -1
- package/web/app/immutable/chunks/{H0ZjbDhN.js → CXBZySXz.js} +1 -1
- package/web/app/immutable/chunks/{2UOzeX2M.js → CXfuXg3I.js} +1 -1
- package/web/app/immutable/chunks/{CrskbTlC.js → CXrMqMyA.js} +1 -1
- package/web/app/immutable/chunks/{D90jQ3ZZ.js → CZbq2yCl.js} +1 -1
- package/web/app/immutable/chunks/{DQHfY0wY.js → C_jLGOhH.js} +1 -1
- package/web/app/immutable/chunks/{dRknRrDn.js → CaC6IVGK.js} +1 -1
- package/web/app/immutable/chunks/{BPhG_Xtj.js → CaW-fRmu.js} +2 -2
- package/web/app/immutable/chunks/{CTX2aXUF.js → Cdke6HGe.js} +1 -1
- package/web/app/immutable/chunks/{ChLTaT6L.js → CeJ1IeC2.js} +1 -1
- package/web/app/immutable/chunks/{BsZr4pOk.js → CeQqxeYw.js} +1 -1
- package/web/app/immutable/chunks/{DyHgOFFg.js → CesSZmjL.js} +1 -1
- package/web/app/immutable/chunks/{2j5TR93A.js → CfZC2MEi.js} +1 -1
- package/web/app/immutable/chunks/{DnouAZbM.js → Ch1H5x_J.js} +1 -1
- package/web/app/immutable/chunks/{B9pexpLt.js → Cj4zs9c7.js} +1 -1
- package/web/app/immutable/chunks/{CMqLPRJh.js → CkCqJfhq.js} +1 -1
- package/web/app/immutable/chunks/{uDDQZzPe.js → CkfN0rvh.js} +1 -1
- package/web/app/immutable/chunks/{HpMdkrj7.js → ClUXFe3K.js} +1 -1
- package/web/app/immutable/chunks/{DW_tfZdS.js → CmLKusq1.js} +3 -3
- package/web/app/immutable/chunks/{AJN9mSFe.js → CnKV6OJ6.js} +1 -1
- package/web/app/immutable/chunks/{C-jm3uXv.js → CnQHIa4H.js} +6 -6
- package/web/app/immutable/chunks/{j-Hd81da.js → CnnMkIrL.js} +1 -1
- package/web/app/immutable/chunks/{BhfbTmVQ.js → CokmOrrP.js} +1 -1
- package/web/app/immutable/chunks/{hYDzZ9as.js → CqJpu93-.js} +1 -1
- package/web/app/immutable/chunks/{B-7spAu4.js → CsEnNURD.js} +1 -1
- package/web/app/immutable/chunks/{DsRw0NLx.js → CsSJgs0M.js} +2 -2
- package/web/app/immutable/chunks/{Q95-G3Tv.js → Csc1-9uJ.js} +1 -1
- package/web/app/immutable/chunks/{CVr9pwFM.js → Cscrr3Bj.js} +1 -1
- package/web/app/immutable/chunks/{D38Ru3z6.js → Csm7pADB.js} +1 -1
- package/web/app/immutable/chunks/{gIgvBwPt.js → CtZ1ayFi.js} +1 -1
- package/web/app/immutable/chunks/{82qiqofo.js → Ctd97c_e.js} +1 -1
- package/web/app/immutable/chunks/{D9Da4bYx.js → Cu6U4_SW.js} +1 -1
- package/web/app/immutable/chunks/{DV6UkZ5a.js → CvEWlZlD.js} +1 -1
- package/web/app/immutable/chunks/CvwAJPbw.js +175 -0
- package/web/app/immutable/chunks/{6Rt8MvWn.js → Cvz2UPkQ.js} +1 -1
- package/web/app/immutable/chunks/{tVfn9CHP.js → Cx_Gtduu.js} +1 -1
- package/web/app/immutable/chunks/{CZikPtVV.js → Cy5dtLUp.js} +1 -1
- package/web/app/immutable/chunks/{DJZIU3cR.js → Cy_Sd6l-.js} +1 -1
- package/web/app/immutable/chunks/{CD3v15Ti.js → CyaBhv0M.js} +1 -1
- package/web/app/immutable/chunks/{Dd-BRJYG.js → Cyi8qA9K.js} +1 -1
- package/web/app/immutable/chunks/{Br9IA-Ja.js → Czwx3NuT.js} +1 -1
- package/web/app/immutable/chunks/{r3MPkSU0.js → D-zBZCIk.js} +1 -1
- package/web/app/immutable/chunks/{CpnUYFMu.js → D0vQQfVr.js} +1 -1
- package/web/app/immutable/chunks/{_pUPWAkF.js → D2F-bT-3.js} +1 -1
- package/web/app/immutable/chunks/{C5DgMO0u.js → D3KzRi1O.js} +3 -3
- package/web/app/immutable/chunks/{yJa3kvR1.js → D3wKW8Yy.js} +1 -1
- package/web/app/immutable/chunks/{Co0AVCAv.js → D5eIiHgJ.js} +1 -1
- package/web/app/immutable/chunks/D5sm9-9m.js +1 -0
- package/web/app/immutable/chunks/D9vinIDW.js +1 -0
- package/web/app/immutable/chunks/{6vbvyEDW.js → DB72_jij.js} +1 -1
- package/web/app/immutable/chunks/{DLueLf8l.js → DBctQLOE.js} +1 -1
- package/web/app/immutable/chunks/{DdHsJ0nA.js → DCER3gcM.js} +1 -1
- package/web/app/immutable/chunks/DDa1LTyW.js +271 -0
- package/web/app/immutable/chunks/{CoJeJSLc.js → DIAJO_LS.js} +1 -1
- package/web/app/immutable/chunks/{fKsoycU6.js → DKJ-ClwC.js} +1 -1
- package/web/app/immutable/chunks/{B9xm9DK7.js → DMMQmvHP.js} +1 -1
- package/web/app/immutable/chunks/{CXnUJFR2.js → DRnZS8vr.js} +1 -1
- package/web/app/immutable/chunks/{Bg4RpIu7.js → DSuQ3pnp.js} +1 -1
- package/web/app/immutable/chunks/{C4C2GjZ7.js → DYFYZyyQ.js} +1 -1
- package/web/app/immutable/chunks/{CqSXeJtk.js → DYpVqbU_.js} +1 -1
- package/web/app/immutable/chunks/{CJzNuuJO.js → DZjJzG_y.js} +1 -1
- package/web/app/immutable/chunks/{DhZDbKoP.js → Da50wjjU.js} +1 -1
- package/web/app/immutable/chunks/{BkDFndY7.js → Da5VtqHi.js} +1 -1
- package/web/app/immutable/chunks/{D0UXbQbI.js → DaGonLMu.js} +1 -1
- package/web/app/immutable/chunks/{9CybJbHN.js → DczjFzGu.js} +1 -1
- package/web/app/immutable/chunks/{BbGlxyDx.js → DghTaRWn.js} +1 -1
- package/web/app/immutable/chunks/{UWOPR8uY.js → DjGSED-U.js} +2 -2
- package/web/app/immutable/chunks/{DaCSSt4n.js → Dkd8TC3I.js} +1 -1
- package/web/app/immutable/chunks/{BKJB_6oY.js → DlnJ95sD.js} +4 -4
- package/web/app/immutable/chunks/{WVbSHjXl.js → DmeizJnp.js} +1 -1
- package/web/app/immutable/chunks/{BQupMMp-.js → Dp10o7PT.js} +1 -1
- package/web/app/immutable/chunks/{DXYkWPe_.js → DrGaWKZY.js} +1 -1
- package/web/app/immutable/chunks/Ds24foTJ.js +1 -0
- package/web/app/immutable/chunks/Dw9SO8pk.js +324 -0
- package/web/app/immutable/chunks/{DCdW5wmG.js → DwfAZy2c.js} +1 -1
- package/web/app/immutable/chunks/{CLGCkXvY.js → DwojjmdS.js} +1 -1
- package/web/app/immutable/chunks/{daoeIyG_.js → DwsOsy09.js} +1 -1
- package/web/app/immutable/chunks/{CiJSzLSf.js → Dz1YFuOh.js} +1 -1
- package/web/app/immutable/chunks/{h8IoI-w7.js → DzNB7FSW.js} +1 -1
- package/web/app/immutable/chunks/E2zwcBGL.js +1 -0
- package/web/app/immutable/chunks/{BWdRpmh3.js → EysdqQlI.js} +1 -1
- package/web/app/immutable/chunks/{Cwy3o6zK.js → GsTyZvYk.js} +1 -1
- package/web/app/immutable/chunks/{CLSvSGMY.js → HJiWQ3CH.js} +1 -1
- package/web/app/immutable/chunks/{E-3i0Fur.js → HSaJqWy-.js} +3 -3
- package/web/app/immutable/chunks/{DmYZE-MO.js → IgS40dps.js} +3 -3
- package/web/app/immutable/chunks/{4GsjZWx0.js → LnIYdbx4.js} +1 -1
- package/web/app/immutable/chunks/{QihShgnK.js → M2l9pCLN.js} +1 -1
- package/web/app/immutable/chunks/{DWhtEEhJ.js → McgjWRB8.js} +1 -1
- package/web/app/immutable/chunks/{DCPTVyDU.js → NYl-wMGf.js} +21 -21
- package/web/app/immutable/chunks/{DBOoSzzw.js → Rv7yxoLs.js} +1 -1
- package/web/app/immutable/chunks/{D-b9zJlt.js → SwYsdc6L.js} +1 -1
- package/web/app/immutable/chunks/{BcI-R0js.js → TskFxLe9.js} +1 -1
- package/web/app/immutable/chunks/{B7ZHl5_Y.js → UoGzAf2x.js} +1 -1
- package/web/app/immutable/chunks/{ClgzRlxs.js → Z1oQcFDn.js} +1 -1
- package/web/app/immutable/chunks/{D8NOVJ50.js → _1A-m7jq.js} +1 -1
- package/web/app/immutable/chunks/{BLyNH-U9.js → a9OghpUZ.js} +1 -1
- package/web/app/immutable/chunks/{CLkwa_R_.js → b8R7ytjh.js} +1 -1
- package/web/app/immutable/chunks/{Dr41JWYu.js → cHqVrdKP.js} +1 -1
- package/web/app/immutable/chunks/{BYevJ1Pj.js → d-ok7Yxa.js} +1 -1
- package/web/app/immutable/chunks/de735paS.js +1 -0
- package/web/app/immutable/chunks/{DSyGSHPH.js → fcbuovVV.js} +1 -1
- package/web/app/immutable/chunks/{CV9PEzoB.js → fsEhp3Sj.js} +1 -1
- package/web/app/immutable/chunks/{BS1nq856.js → hr4poPaj.js} +1 -1
- package/web/app/immutable/chunks/{DIYS_mcw.js → jnCaD4Bx.js} +1 -1
- package/web/app/immutable/chunks/{BL1pyapR.js → kUVtufTg.js} +1 -1
- package/web/app/immutable/chunks/{Cti1rV_x.js → kWExXPwX.js} +1 -1
- package/web/app/immutable/chunks/{CS74N62e.js → m9sL96bw.js} +1 -1
- package/web/app/immutable/chunks/{BX6Kopvz.js → nTZUlaQp.js} +1 -1
- package/web/app/immutable/chunks/{CwR0GP6W.js → opTS8jo1.js} +1 -1
- package/web/app/immutable/chunks/{DYlSkPA-.js → qj_I7waa.js} +1 -1
- package/web/app/immutable/chunks/{CHXEA9Fi.js → r5hLdwbG.js} +4 -4
- package/web/app/immutable/chunks/{CnodaVJ0.js → rnl2fV5A.js} +2 -2
- package/web/app/immutable/chunks/{Pb7J418u.js → udwlX3ME.js} +1 -1
- package/web/app/immutable/chunks/{DNOlba2e.js → vF7or5DB.js} +1 -1
- package/web/app/immutable/chunks/{DMKbkua9.js → wJdL3Qov.js} +1 -1
- package/web/app/immutable/chunks/wvJp1htg.js +2 -0
- package/web/app/immutable/chunks/{Ch8MPJbT.js → yU3kgZB6.js} +1 -1
- package/web/app/immutable/chunks/{CIOSdkrK.js → zP47CxCg.js} +1 -1
- package/web/app/immutable/chunks/{Uxor6krE.js → zaRHhPuE.js} +2 -2
- package/web/app/immutable/chunks/{BW4xwD_u.js → zpc-7Jr1.js} +1 -1
- package/web/app/immutable/entry/{app.rwgCwLre.js → app.Co-UnKY3.js} +3 -3
- package/web/app/immutable/entry/start.L8HMvb6x.js +1 -0
- package/web/app/immutable/nodes/{0.CAiwn7VU.js → 0.DNQpr_j7.js} +1 -1
- package/web/app/immutable/nodes/{1.4C-qOEjD.js → 1.hY0sxeHr.js} +1 -1
- package/web/app/immutable/nodes/{10.CSnI2pUC.js → 10.FFAOp7ps.js} +1 -1
- package/web/app/immutable/nodes/{11.DeNilyai.js → 11.CIaPPQvs.js} +1 -1
- package/web/app/immutable/nodes/{12.ySK4H8-2.js → 12.CO3XhA4p.js} +1 -1
- package/web/app/immutable/nodes/{13._q8cT7vQ.js → 13.x3qcbpU-.js} +3 -3
- package/web/app/immutable/nodes/{14.BVMi0m8a.js → 14.DRR_Z9jI.js} +3 -3
- package/web/app/immutable/nodes/{15.DZYm8wgy.js → 15.CQMgeYc5.js} +1 -1
- package/web/app/immutable/nodes/{16.2kka0tX2.js → 16.DGSRuzAc.js} +2 -2
- package/web/app/immutable/nodes/{2.BOqim1UO.js → 2.BfMkmqW-.js} +4 -4
- package/web/app/immutable/nodes/{3.rvoF1b9l.js → 3.DYbcbl8p.js} +1 -1
- package/web/app/immutable/nodes/{4.COWGFPUE.js → 4.BtnV0fM4.js} +1 -1
- package/web/app/immutable/nodes/{5.ClB4PiMc.js → 5.C4rvV3jr.js} +2 -2
- package/web/app/immutable/nodes/{6.B09HHXQ8.js → 6.cOtVQuzJ.js} +1 -1
- package/web/app/immutable/nodes/{7.ivApEpSz.js → 7.BS2-LdIc.js} +1 -1
- package/web/app/immutable/nodes/{8.BSIvYD1L.js → 8.C3ZiMMw0.js} +12 -12
- package/web/app/immutable/nodes/{9.C9K9J_Xm.js → 9.sLOao7gK.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/B3iaLYr6.js +0 -1
- package/web/app/immutable/chunks/BLUkoS8T.js +0 -2
- package/web/app/immutable/chunks/CA0a6eNp.js +0 -1
- package/web/app/immutable/chunks/CPxyG9KJ.js +0 -271
- package/web/app/immutable/chunks/DHNO0898.js +0 -175
- package/web/app/immutable/chunks/DMkYHym4.js +0 -324
- package/web/app/immutable/chunks/DhLTyNrj.js +0 -1
- package/web/app/immutable/chunks/DsAKyTjw.js +0 -4
- package/web/app/immutable/chunks/DuQiXW7a.js +0 -1
- package/web/app/immutable/chunks/FAATYx56.js +0 -1
- package/web/app/immutable/chunks/ye8JXfxU.js +0 -1
- package/web/app/immutable/entry/start.CHX_XseY.js +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import{t as oe,bq as st,a_ as at,bo as Z,by as ie,bu as $t,bs as Me,b as ce}from"./
|
|
2
|
-
hover:shadow transition-all cursor-pointer ${t(
|
|
3
|
-
${t(f).subject??""}`)),_(U,Q)},G=U=>{var Q=Fe(),pt=H(Q);
|
|
1
|
+
import{t as oe,bq as st,a_ as at,bo as Z,by as ie,bu as $t,bs as Me,b as ce}from"./E2zwcBGL.js";import{bs as le,a5 as L,bS as C,ay as Ut,aD as t,bA as $,bl as H,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"./8mzXJxUW.js";import{b as ba}from"./BaIAhI85.js";import{f as Yt}from"./AXIAXE42.js";import{A as aa,ak as na,aj as sa}from"./CvwAJPbw.js";import"./BTNnUZgK.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"./kWExXPwX.js";import{R as Fa}from"./qj_I7waa.js";import{F as pe,by as Oa,be as Ra,aB as Ma,aU as Wa,cz as Ba}from"./C8iHXc33.js";import{H as Da}from"./r5hLdwbG.js";import{e as La}from"./BaBfwkQ0.js";import{s as Ea}from"./BqCXmi6V.js";import{f as Pa}from"./HJiWQ3CH.js";import{c as St,Hp as Oe,n5 as Ga,fA as za,bZ as ja,rl as Ha,ts as Ka}from"./DzNB7FSW.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>'),Za=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>'),Qa=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)||Z.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 Ht=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(Ht)})}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 Qt=C(Lt,2),_e=H(Qt,!0),Jt=C(Qt,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=H(W,!0);$(f);var K=C(f,2);{var nt=z=>{var It=Ya(),ot=H(It,!0);A(()=>B(ot,s().reason)),_(z,It)};at(K,z=>{s().reason&&z(nt)})}var S=C(K,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"?Z.chat_agentCard_attentionBlocker_label():Z.chat_agentCard_attentionDiscussion_label()]),_(ft,r)},yt=ft=>{var r=Za(),f=L(r);pe(f,{get icon(){return Oa},size:"xs",class:"animate-pulse"});var M=C(f,2),W=H(M,!0);$(r),A(m=>B(W,m),[()=>Z.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 K=C(m,2);{var nt=U=>{var Q=Fe(),pt=H(Q,!0);A(Et=>B(pt,Et),[()=>Z.agentOverview_hierarchyCard_thinking_label()]),_(U,Q)},S=U=>{var Q=Qa(),pt=H(Q);A(()=>B(pt,`${t(f).verb??""}
|
|
3
|
+
${t(f).subject??""}`)),_(U,Q)},G=U=>{var Q=Fe(),pt=H(Q);A(()=>B(pt,`${t(f).verb??""}...`)),_(U,Q)},z=U=>{var Q=Fe(),pt=H(Q,!0);A(Et=>B(pt,Et),[()=>Z.agentOverview_hierarchyCard_responding_label()]),_(U,Q)};at(K,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 Q=Ja(),pt=H(Q,!0);A(()=>B(pt,n().lastResponse)),_(U,Q)};at(It,U=>{!t(f)&&n().lastResponse&&U(ot)})}$(M),_(ft,M)},xe=ft=>{var r=en(),f=H(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??""}`),[()=>Z.agentOverview_hierarchyCard_note_label()]),_(k,D)};at(ge,k=>{R()&&u()&&k(Dt)})}$(ht),_(e,ht);var Zt=de(Bt);return l(),Zt}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=H(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),K=y(()=>t(m)&&f().children[0]?.agent.isBackground?sn:Xa),nt=y(()=>16),S=y(()=>60),G=y(()=>t(m)?Rt(f().children,t(K),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(),Q=L(U),pt=L(Q);{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)})}$(Q);var be=C(Q,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,(Kt,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)??""}
|
|
7
7
|
Q ${t(vt)??""} ${t(et)??""}, ${t(vt)??""} ${t(et)+t(X)}
|
|
8
|
-
L ${t(vt)??""} ${t(T)??""}`),gt(dt,"stroke",t(mt)),Xt(dt,0,se(t(
|
|
8
|
+
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)},ma=wt=>{var dt=re();A(()=>{gt(dt,"d",`M ${t(lt)??""} ${t(S)/3}
|
|
9
9
|
L ${t(lt)??""} ${t(et)-t(X)}
|
|
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(kt)),"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(At),Se,(ut,j)=>{var Nt=De(),vt=Ut(Nt);{var lt=mt=>{var kt=on();jt(kt,21,()=>t(j).children,w=>w.agent.agentId,(w,T)=>{s(w,()=>t(T))}),$(kt),k(()=>ne(kt,`padding: 10px; margin-top: -10px; display: grid; grid-template-columns: repeat(${t(j).cols??""}, auto); gap: 12px;`)),_(mt,kt)},zt=mt=>{s(mt,()=>t(j).child)};at(vt,mt=>{t(j).type==="batch"?mt(lt):mt(zt,-1)})}_(ut,Nt)}),$(ae),k(()=>{gt(Gt,"width",t(ot)),ne(ae,`gap: 12px; width: ${t(ot)??""}px;`)}),_(Kt,ue)}),$(xt),k(()=>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:Z.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,K=r.clientY-W.top,nt=M/t(l);V(n,m-(m-t(n))*nt),V(p,K-(K-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 Ht(){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)),Zt=5e3,A=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 K=new Set;for(const S of r){const G=S.agent.delegationBatchId;if(G)K.has(G)||(K.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<=Zt){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+A*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])),Qt=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 K=m.sourceId.replace("agent-",""),nt=r.get(K);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 K=m.agent.parentAgentId;K&&r.has(K)?r.get(K).children.push(m):f.push(m)}const W=(m,K)=>new Date(m.agent.createdAt).getTime()-new Date(K.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=H(W,!0),K=C(W,2),nt=H(K,!0);$(M),$(f),k((S,G)=>{B(m,S),B(nt,G)},[()=>Z.agentOverview_hierarchyGraph_noAgents_title(),()=>Z.agentOverview_hierarchyGraph_noAgents_description()]),_(r,f)},ft=r=>{var f=Tn(),M=Ut(f),W=L(M),m=L(W);{var K=Y=>{var F=fn();jt(F,21,()=>t(Qt),q=>q.id,(q,J)=>{var et=un(),xt=L(et),Kt=H(xt,!0),At=C(xt,2);jt(At,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})}),$(At),$(et),k(()=>B(Kt,t(J).label)),_(q,et)}),$(F),_(Y,F)};at(m,Y=>{t(Qt).length>0&&Y(K)})}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),Kt=L(xt);La(Kt,{variant:"emphasized",get agentId(){return t(E).agentId}});var At=C(Kt,2),Ct=L(At),Pt=H(Ct,!0),ee=C(Ct,2);{var Ae=w=>{var T=pn(),tt=H(T,!0);k(X=>B(tt,X),[()=>t(E).specialist.replace("-"," ")]),_(w,T)};at(ee,w=>{t(E).specialist&&w(Ae)})}$(At);var ue=C(At,2);{var Gt=w=>{var T=vn(),tt=H(T,!0);k(X=>B(tt,X),[()=>Z.agentOverview_hierarchyGraph_background_badge()]),_(w,T)};at(ue,w=>{t(E).isBackground&&w(Gt)})}$(xt);var qt=C(xt,2),ke=L(qt);{var $e=w=>{var T=hn(),tt=H(T);k(X=>B(tt,`● ${X??""}`),[()=>Z.agentOverview_hierarchyGraph_statusWaiting_label()]),_(w,T)},Te=w=>{var T=mn(),tt=H(T);k(X=>B(tt,`● ${X??""}`),[()=>Z.agentOverview_hierarchyGraph_statusResponding_label()]),_(w,T)},ae=w=>{var T=_n(),tt=H(T);k(X=>B(tt,`● ${X??""}`),[()=>Z.agentOverview_hierarchyGraph_statusCompleted_label()]),_(w,T)},ut=w=>{var T=yn(),tt=H(T);k(X=>B(tt,`● ${X??""}`),[()=>Z.agentOverview_hierarchyGraph_statusFailed_label()]),_(w,T)},j=w=>{var T=In(),tt=H(T);k(X=>B(tt,`● ${X??""}`),[()=>Z.agentOverview_hierarchyGraph_statusIdle_label()]),_(w,T)};at(ke,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=H(Nt,!0),lt=C(Nt,2);{var zt=w=>{var T=xn(),tt=H(T,!0);k(()=>B(tt,t(E).lastResponse)),_(w,T)};at(lt,w=>{t(E).lastResponse&&w(zt)})}var mt=C(lt,2);{var kt=w=>{var T=wn(),tt=L(T);ea(tt,{size:12});var X=C(tt,2),fe=H(X,!0);$(T),k(Ce=>B(fe,Ce),[()=>Z.agentOverview_hierarchyGraph_usingTool_label({tool:t(E).activeToolName})]),_(w,T)};at(mt,w=>{t(E).activeToolName&&w(kt)})}$(et),k(w=>{B(Pt,t(E).name),B(vt,w)},[()=>Z.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(()=>Z.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:Ht,get title(){return t(Y)},children:(F,q)=>{var J=An();_(F,J)},$$slots:{default:!0}})}var Q=C(U,2);{let Y=y(()=>Z.agentOverview_hierarchyGraph_resetZoom_tooltip());Yt(Q,{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();k(()=>B(J,`${t(Dt)??""}%`)),_(F,J)},$$slots:{default:!0}})}var pt=C(Q,2);{let Y=y(()=>Z.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=kn();_(F,J)},$$slots:{default:!0}})}var Et=C(pt,4);{let Y=y(()=>Z.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=H(we,!0);k(Y=>{ne(M,`transform: translate(${t(n)??""}px, ${t(p)??""}px) scale(${t(l)??""}); transform-origin: center center;`),B(be,Y)},[()=>Z.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 He(e){return e==="create_note"?"create":Nn.has(e)?"read":"write"}function Ke(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:He(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:He(i),timestamp:c}))}}return s}function Ze(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 Qe(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(!Ke(i))continue;const o=Vt(d),l=qe(i),n=Ze(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:Qe(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(!Ke(i))continue;const o=Vt(d),l=qe(i),n=Ze(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:Qe(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 Hn=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 Kn(s,c,g,!0,u,e,i)});function Kn(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 Ht={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,Ht),p.push(Ht),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 Zt=Ln(Ot,s);Xn(Zt,I,l,h,p,v,b);const A=En(Ot,s);Un(A,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 Zn=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=Hn(c());Oe.dispatch(Ha(c()));function o(v,b,N){const x=N.metaKey||N.ctrlKey,it=Pa(N.target);Oe.dispatch(Ka(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=Zn(),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 Qn(e,a){if(new.target)return oe({component:Qn,...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{Qn 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;`)}),_(Kt,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:Z.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,K=r.clientY-W.top,nt=M/t(l);V(n,m-(m-t(n))*nt),V(p,K-(K-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 Ht(){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)),Zt=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 K=new Set;for(const S of r){const G=S.agent.delegationBatchId;if(G)K.has(G)||(K.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<=Zt){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])),Qt=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 K=m.sourceId.replace("agent-",""),nt=r.get(K);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 K=m.agent.parentAgentId;K&&r.has(K)?r.get(K).children.push(m):f.push(m)}const W=(m,K)=>new Date(m.agent.createdAt).getTime()-new Date(K.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=H(W,!0),K=C(W,2),nt=H(K,!0);$(M),$(f),A((S,G)=>{B(m,S),B(nt,G)},[()=>Z.agentOverview_hierarchyGraph_noAgents_title(),()=>Z.agentOverview_hierarchyGraph_noAgents_description()]),_(r,f)},ft=r=>{var f=Tn(),M=Ut(f),W=L(M),m=L(W);{var K=Y=>{var F=fn();jt(F,21,()=>t(Qt),q=>q.id,(q,J)=>{var et=un(),xt=L(et),Kt=H(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(Kt,t(J).label)),_(q,et)}),$(F),_(Y,F)};at(m,Y=>{t(Qt).length>0&&Y(K)})}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),Kt=L(xt);La(Kt,{variant:"emphasized",get agentId(){return t(E).agentId}});var kt=C(Kt,2),Ct=L(kt),Pt=H(Ct,!0),ee=C(Ct,2);{var ke=w=>{var T=pn(),tt=H(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=H(T,!0);A(X=>B(tt,X),[()=>Z.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=H(T);A(X=>B(tt,`● ${X??""}`),[()=>Z.agentOverview_hierarchyGraph_statusWaiting_label()]),_(w,T)},Te=w=>{var T=mn(),tt=H(T);A(X=>B(tt,`● ${X??""}`),[()=>Z.agentOverview_hierarchyGraph_statusResponding_label()]),_(w,T)},ae=w=>{var T=_n(),tt=H(T);A(X=>B(tt,`● ${X??""}`),[()=>Z.agentOverview_hierarchyGraph_statusCompleted_label()]),_(w,T)},ut=w=>{var T=yn(),tt=H(T);A(X=>B(tt,`● ${X??""}`),[()=>Z.agentOverview_hierarchyGraph_statusFailed_label()]),_(w,T)},j=w=>{var T=In(),tt=H(T);A(X=>B(tt,`● ${X??""}`),[()=>Z.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=H(Nt,!0),lt=C(Nt,2);{var zt=w=>{var T=xn(),tt=H(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=H(X,!0);$(T),A(Ce=>B(fe,Ce),[()=>Z.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)},[()=>Z.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(()=>Z.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:Ht,get title(){return t(Y)},children:(F,q)=>{var J=kn();_(F,J)},$$slots:{default:!0}})}var Q=C(U,2);{let Y=y(()=>Z.agentOverview_hierarchyGraph_resetZoom_tooltip());Yt(Q,{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(Q,2);{let Y=y(()=>Z.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(()=>Z.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=H(we,!0);A(Y=>{ne(M,`transform: translate(${t(n)??""}px, ${t(p)??""}px) scale(${t(l)??""}); transform-origin: center center;`),B(be,Y)},[()=>Z.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 He(e){return e==="create_note"?"create":Nn.has(e)?"read":"write"}function Ke(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:He(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:He(i),timestamp:c}))}}return s}function Ze(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 Qe(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(!Ke(i))continue;const o=Vt(d),l=qe(i),n=Ze(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:Qe(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(!Ke(i))continue;const o=Vt(d),l=qe(i),n=Ze(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:Qe(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 Hn=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 Kn(s,c,g,!0,u,e,i)});function Kn(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 Ht={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,Ht),p.push(Ht),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 Zt=Ln(Ot,s);Xn(Zt,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 Zn=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=Hn(c());Oe.dispatch(Ha(c()));function o(v,b,N){const x=N.metaKey||N.ctrlKey,it=Pa(N.target);Oe.dispatch(Ka(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=Zn(),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 Qn(e,a){if(new.target)return oe({component:Qn,...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{Qn as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{br as H}from"./DYhIMPy1.js";import{c as U}from"./ChTqQfQN.js";import{a as W,i as G}from"./
|
|
1
|
+
import{br as H}from"./DYhIMPy1.js";import{c as U}from"./ChTqQfQN.js";import{a as W,i as G}from"./SwYsdc6L.js";import{F as g,o as P,p,H as _}from"./cHqVrdKP.js";import{Hp as c}from"./DzNB7FSW.js";import{y as J,F as S,u as Q,M as Z,G as V}from"./BqUqwkFB.js";const f=U("PanelKeyboardShortcuts"),X=2e3;function se(d,m,K=()=>null,I={}){const v=I.isMac??(typeof navigator<"u"&&navigator.platform.toUpperCase().includes("MAC")),s=H({leaderActive:!1,leaderTimeout:null,isZoomed:!1,zoomedPanelId:null,showPanelNumbers:!1});function w(){s.leaderTimeout&&clearTimeout(s.leaderTimeout),s.leaderActive=!0,s.leaderTimeout=setTimeout(()=>{s.leaderActive=!1,s.showPanelNumbers=!1,f.debug("Leader key timed out")},X),f.debug("Leader key activated")}function h(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.showPanelNumbers=!1}function D(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.isZoomed=!1,s.zoomedPanelId=null,s.showPanelNumbers=!1}function z(e){const n=d();switch(f.debug("Executing leader action",{action:e}),e){case"navigate-left":case"navigate-right":case"navigate-up":case"navigate-down":C(n,e.replace("navigate-",""));break;case"navigate-next":m?m("next"):k(n,"next");break;case"navigate-prev":m?m("prev"):k(n,"prev");break;case"split-right":{const t=p.select(c.state,n.workspaceId),a=g.select(c.state,n.workspaceId);t&&a.length<4&&n.splitPanel(t,"horizontal");break}case"zoom-toggle":E(n);break;case"zoom-reset":N();break;case"close-panel":{const t=p.select(c.state,n.workspaceId);t&&n.closePanel(t);break}case"resize-left":case"resize-right":case"resize-up":case"resize-down":f.debug("Resize action not yet implemented",{action:e});break;case"resize-equal":q(n);break;case"swap-prev":case"swap-next":f.debug("Swap action not yet implemented",{action:e});break;case"show-panel-numbers":s.showPanelNumbers=!0;return;case"move-tab-to-next-panel":{const t=P.select(c.state,n.workspaceId);if(t?.activeTabId){const a=n.getOtherPanelId();a&&n.moveTabToPanel(t.activeTabId,t.id,a)}break}case"cycle-layout-presets":n.cyclePresets();break}h()}function C(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t);if(!u){e.focusPanel(r[0]);return}const l=r.indexOf(u);let i;n==="left"||n==="up"?i=l>0?l-1:r.length-1:i=l<r.length-1?l+1:0,e.focusPanel(r[i])}function k(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t),l=u?r.indexOf(u):-1;let i;n==="next"?i=l<r.length-1?l+1:0:i=l>0?l-1:r.length-1,e.focusPanel(r[i])}function E(e){s.isZoomed=!s.isZoomed,s.isZoomed?s.zoomedPanelId=p.select(c.state,e.workspaceId):s.zoomedPanelId=null,f.debug("Zoom toggled",{isZoomed:s.isZoomed})}function N(){s.isZoomed=!1,s.zoomedPanelId=null,f.debug("Zoom reset")}function q(e){const n=_.select(c.state,e.workspaceId);if(!n)return;function t(a){if(a.type==="split"){const r=100/a.children.length;a.sizes=a.children.map(()=>r),a.children.forEach(t)}}t(n.root),f.debug("Equalized all panel sizes")}function x(e,n){const t=g.select(c.state,e.workspaceId);n>=0&&n<t.length&&e.focusPanel(t[n])}function F(e,n){const t=P.select(c.state,e.workspaceId);return!t||t.tabs.length<2?!1:(n==="next"?e.selectNextTab(t.id):e.selectPreviousTab(t.id),!0)}function O(e,n){if(I.onFocusAdjacentColumn)return I.onFocusAdjacentColumn(n);const t=g.select(c.state,e.workspaceId),a=p.select(c.state,e.workspaceId),u=(a?t.indexOf(a):-1)+(n==="next"?1:-1),l=t[u];return l?(e.focusPanel(l),!0):!1}function j(e,n){const t=P.select(c.state,e.workspaceId);return t?e.moveActivePaneToColumn(t.id,n):!1}function B(e){const n=g.select(c.state,e.workspaceId),t=p.select(c.state,e.workspaceId);return!t||n.length>=4?!1:(e.splitPanel(t,"horizontal"),!0)}function L(e){const n=v?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey,t=c.state.userPreferences?.shortcutOverrides??{},a=o=>Z(o,t),r=o=>S(e,a(o),v),u=o=>r(o)&&!J(o,e,a,v),l=u("panel.focus-previous-column")?"prev":u("panel.focus-next-column")?"next":null,i=r("panel.previous-pane")?"prev":r("panel.next-pane")?"next":null;if(l){const o=O(d(),l);return o&&e.preventDefault(),o}if(i){const o=F(d(),i);return o&&e.preventDefault(),o}if(r("panel.create-column-right")){const o=B(d());return o&&(e.preventDefault(),e.stopPropagation()),o}const T=e.target instanceof Element?e.target:null;if(W(T)||G(T))return!1;const y=d(),A=r("panel.move-pane-previous-column")?"prev":r("panel.move-pane-next-column")?"next":null;if(A){const o=j(y,A);return o&&e.preventDefault(),o}if(n&&e.key===";"&&!e.shiftKey&&!e.altKey)return e.preventDefault(),w(),!0;if(s.leaderActive){if(e.preventDefault(),s.showPanelNumbers&&e.key>="1"&&e.key<="9")return x(y,parseInt(e.key)-1),h(),!0;const o=R(e);return o?(z(o),!0):(h(),!0)}return!1}function R(e){const n=i=>Z(i,c.state.userPreferences?.shortcutOverrides??{}),t=i=>V(e,n(i),v),a=t("leader.navigate-panels");if(a>=0)return["navigate-left","navigate-down","navigate-up","navigate-right"][a];const r=t("leader.resize-panels");if(r>=0)return["resize-left","resize-down","resize-up","resize-right"][r];const u=t("leader.next-previous-panel");if(u>=0)return u===0?"navigate-next":"navigate-prev";if(t("leader.split-right")>=0)return"split-right";if(t("leader.toggle-zoom")>=0)return"zoom-toggle";if(t("leader.close-panel")>=0)return"close-panel";if(t("leader.equalize-sizes")>=0)return"resize-equal";const l=Q(n("leader.jump-to-panel"));return l&&S(e,l,v)?"show-panel-numbers":t("leader.cycle-layout")>=0?"cycle-layout-presets":null}return{get availableCanvasWidth(){return K()},get leaderActive(){return s.leaderActive},get isZoomed(){return s.isZoomed},get zoomedPanelId(){return s.zoomedPanelId},get showPanelNumbers(){return s.showPanelNumbers},handleKeyDown:L,activateLeader:w,deactivateLeader:h,executeAction:z,focusPanelByIndex:x,cleanup:D}}const b=new Map;function ae(d,m){b.set(d,m)}function re(d){b.delete(d)}function oe(d){return b.get(d)}export{se as c,oe as g,ae as r,re as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as xt}from"./
|
|
1
|
+
import{p as xt}from"./DZjJzG_y.js";import{aZ as gt,U as $t,Y as bt,b0 as wt,V as Ct,a_ as vt,b as s,ay as O,aX as Dt,B as kt,r as Tt,q as U,W as Z,O as At,a6 as ot}from"./DlnJ95sD.js";import{p as Bt}from"./CqJpu93-.js";var rt=s(()=>({domains:new Map,transitions:[]}),"createDefaultData"),H=rt(),St=s(()=>H.domains,"getDomains"),Mt=s(()=>H.transitions,"getTransitions"),zt=s(t=>{if(t)for(const e of t){const n=e.domain,a=(e.items??[]).map(c=>({label:c.label}));H.domains.set(n,{name:n,items:a})}},"setDomains"),Lt=s(t=>{t&&(H.transitions=t.filter(e=>e.from===e.to?(O.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1):!0).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},"setTransitions"),Nt=s(()=>U({...At.cynefin,...Z().cynefin}),"getConfig"),Pt=s(()=>{Tt(),H=rt()},"clear"),G={getDomains:St,getTransitions:Mt,setDomains:zt,setTransitions:Lt,getConfig:Nt,clear:Pt,setAccTitle:vt,getAccTitle:Ct,setDiagramTitle:wt,getDiagramTitle:bt,getAccDescription:$t,setAccDescription:gt},Wt=s(t=>{xt(t,G),G.setDomains(t.domains),G.setTransitions(t.transitions)},"populate"),It={parse:s(async t=>{const e=await Bt("cynefin",t);O.debug(e),Wt(e)},"parse")};function E(t){let e=t+1831565813|0;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}s(E,"seededRandom");function st(t){let e=0;for(let n=0;n<t.length;n++){const a=t.charCodeAt(n);e=(e<<5)-e+a,e|=0}return e}s(st,"hashString");function it(t,e){return typeof t=="number"&&Number.isFinite(t)&&t!==0?t:st(e)}s(it,"resolveSeed");function ct(t,e,n,a){const c=t/2,m=a??t*.015,v=7,I=e/v,d=[];for(let o=0;o<=v;o++){const p=E(n+o*17)*m*2-m;d.push({x:c+p,y:o*I})}let D=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],i=d[o+1],f=(p.y+i.y)/2,b=o%2===0?1:-1,h=m*1.5*b*E(n+o*31+7),R=p.x+h,V=f,_=i.x-h;D+=` C${R},${V} ${_},${f} ${i.x},${i.y}`}return D}s(ct,"generateFoldPath");function lt(t,e,n,a){const c=e/2,m=a??e*.015,v=7,I=t/v,d=[];for(let o=0;o<=v;o++){const p=E(n+o*23)*m*2-m;d.push({x:o*I,y:c+p})}let D=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],i=d[o+1],f=(p.x+i.x)/2,b=o%2===0?1:-1,h=m*1.5*b*E(n+o*37+11),R=f,V=p.y+h,_=f,z=i.y-h;D+=` C${R},${V} ${_},${z} ${i.x},${i.y}`}return D}s(lt,"generateHorizontalBoundary");function dt(t,e){const n=t/2,a=e*.5,c=e,m=t*.03;return[`M${n},${a}`,`C${n+m},${a+(c-a)*.2}`,`${n-m*1.5},${a+(c-a)*.55}`,`${n+m*.5},${a+(c-a)*.75}`,`C${n-m},${a+(c-a)*.85}`,`${n+m*.3},${a+(c-a)*.95}`,`${n},${c}`].join(" ")}s(dt,"generateCliffPath");function ft(t,e,n,a){return[`M${t-n},${e}`,`A${n},${a} 0 1,1 ${t+n},${e}`,`A${n},${a} 0 1,1 ${t-n},${e}`,"Z"].join(" ")}s(ft,"generateConfusionPath");var at={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},Rt=s((t,e)=>{const n=t/2,a=e/2;return{complex:{cx:n/2,cy:a/2,x:0,y:0,w:n,h:a},complicated:{cx:n+n/2,cy:a/2,x:n,y:0,w:n,h:a},chaotic:{cx:n/2,cy:a+a/2,x:0,y:a,w:n,h:a},clear:{cx:n+n/2,cy:a+a/2,x:n,y:a,w:n,h:a},confusion:{cx:n,cy:a,x:n*.7,y:a*.7,w:n*.6,h:a*.6}}},"getDomainLayouts"),Vt=s(()=>{const t=ot(),e=Z();return U(t,e.themeVariables).cynefin},"getCynefinDomainColors"),q=3,_t=s((t,e,n,a)=>{const c=a.db,m=c.getDomains(),v=c.getTransitions(),I=c.getDiagramTitle(),d=c.getAccTitle(),D=c.getAccDescription(),o=c.getConfig(),p=Vt();O.debug("Rendering Cynefin diagram");const i=o.width,f=o.height,b=o.padding,h=o.showDomainDescriptions,R=o.boundaryAmplitude,V=i+b*2,_=f+b*2,z={complex:p.complexBg,complicated:p.complicatedBg,clear:p.clearBg,chaotic:p.chaoticBg,confusion:p.confusionBg},k=Dt(e);kt(k,_,V,o.useMaxWidth??!0),k.attr("viewBox",`0 0 ${V} ${_}`),d&&k.append("title").text(d),D&&k.append("desc").text(D);const T=k.append("g").attr("transform",`translate(${b}, ${b})`),F=Rt(i,f),Q=it(o.seed,e),mt=T.append("g").attr("class","cynefin-backgrounds"),X=["complex","complicated","chaotic","clear"];for(const l of X){const r=F[l];mt.append("rect").attr("class","cynefinDomain").attr("x",r.x).attr("y",r.y).attr("width",r.w).attr("height",r.h).attr("fill",z[l]).attr("fill-opacity",.4).attr("stroke","none")}const j=T.append("g").attr("class","cynefin-boundaries");j.append("path").attr("class","cynefinBoundary").attr("d",ct(i,f,Q,R)).attr("fill","none"),j.append("path").attr("class","cynefinBoundary").attr("d",lt(i,f,Q+100,R)).attr("fill","none"),j.append("path").attr("class","cynefinCliff").attr("d",dt(i,f)).attr("fill","none");const pt=i*.15,yt=f*.15;T.append("path").attr("class","cynefinConfusion").attr("d",ft(i/2,f/2,pt,yt)).attr("fill",z.confusion).attr("fill-opacity",.5);const J=T.append("g").attr("class","cynefin-labels");for(const l of X){const r=F[l];J.append("text").attr("class","cynefinDomainLabel").attr("x",r.cx).attr("y",h?r.cy-30:r.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(l.charAt(0).toUpperCase()+l.slice(1))}if(J.append("text").attr("class","cynefinDomainLabel").attr("x",i/2).attr("y",h?f/2-10:f/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){const l=T.append("g").attr("class","cynefin-subtitles");for(const r of X){const u=F[r],y=at[r];l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.model),l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.practice)}l.append("text").attr("class","cynefinSubtitle").attr("x",i/2).attr("y",f/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(at.confusion.practice)}const K=T.append("g").attr("class","cynefin-items"),A=26,tt=10,ut=["complex","complicated","chaotic","clear","confusion"];for(const l of ut){const r=m.get(l);if(!r||r.items.length===0)continue;const u=F[l],y=l==="confusion";let L=r.items,N=0;y&&r.items.length>q&&(N=r.items.length-q,L=r.items.slice(0,q));let B;if(y){const g=h?22:14;B=u.cy+g}else B=u.cy+(h?25:15);if([...L].forEach((g,S)=>{const w=B+S*(A+4),M=K.append("g"),P=M.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",A/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(g.label);let $=g.label.length*7;const x=P.node();if(x&&typeof x.getBBox=="function"){const Y=x.getBBox();Y.width>0&&($=Y.width)}const C=$+tt*2,W=u.cx-C/2;M.attr("transform",`translate(${W}, ${w})`),M.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",C).attr("height",A).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.95),P.attr("x",C/2).attr("y",A/2)}),N>0){const g=B+L.length*(A+4),S=`+${N} more`,w=K.append("g"),M=w.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",A/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(S);let P=S.length*7;const $=M.node();if($&&typeof $.getBBox=="function"){const W=$.getBBox();W.width>0&&(P=W.width)}const x=P+tt*2,C=u.cx-x/2;w.attr("transform",`translate(${C}, ${g})`),w.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",x).attr("height",A).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.6),M.attr("x",x/2).attr("y",A/2)}}if(v.length>0){const l=k.select("defs").empty()?k.append("defs"):k.select("defs"),r=`cynefin-arrow-${e}`;l.append("marker").attr("id",r).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");const u=T.append("g").attr("class","cynefin-arrows");v.forEach(y=>{const L=F[y.from],N=F[y.to];if(!L||!N)return;if(y.from===y.to){O.warn(`Cynefin renderer: skipping self-loop on domain "${y.from}"`);return}const B=L.cx,g=L.cy,S=N.cx,w=N.cy,M=(B+S)/2,P=(g+w)/2,$=S-B,x=w-g,C=Math.sqrt($*$+x*x),W=C*.15,Y=-x/C,ht=$/C,et=M+Y*W,nt=P+ht*W;u.append("path").attr("class","cynefinArrowLine").attr("d",`M${B},${g} Q${et},${nt} ${S},${w}`).attr("fill","none").attr("marker-end",`url(#${r})`),y.label&&u.append("text").attr("class","cynefinArrowLabel").attr("x",et).attr("y",nt-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(y.label)})}I&&T.append("text").attr("class","cynefinTitle").attr("x",i/2).attr("y",-b/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(I)},"draw"),Ft={draw:_t},Et=s(()=>{const t=ot(),e=Z();return U(t,e.themeVariables).cynefin},"getCynefinTheme"),Ht=s(()=>{const t=Et();return`
|
|
2
2
|
.cynefinDomain {
|
|
3
3
|
stroke: none;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var aC=Object.defineProperty;var iC=(t,e,r)=>e in t?aC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var L=(t,e,r)=>iC(t,typeof e!="symbol"?e+"":e,r);import{_ as et}from"./B3iaLYr6.js";var sC=Object.create,ol=Object.defineProperty,oC=Object.getOwnPropertyDescriptor,nd=Object.getOwnPropertyNames,lC=Object.getPrototypeOf,uC=Object.prototype.hasOwnProperty,s=(t,e)=>ol(t,"name",{value:e,configurable:!0}),cC=(t,e)=>function(){return t&&(e=(0,t[nd(t)[0]])(t=0)),e},re=(t,e)=>function(){return e||(0,t[nd(t)[0]])((e={exports:{}}).exports,e),e.exports},fC=(t,e)=>{for(var r in e)ol(t,r,{get:e[r],enumerable:!0})},_y=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of nd(e))!uC.call(t,n)&&n!==r&&ol(t,n,{get:()=>e[n],enumerable:!(a=oC(e,n))||a.enumerable});return t},ad=(t,e,r)=>(r=t!=null?sC(lC(t)):{},_y(ol(r,"default",{value:t,enumerable:!0}),t)),id=t=>_y(ol({},"__esModule",{value:!0}),t),ll=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/is.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.boolean=e,t.string=r,t.number=a,t.error=n,t.func=i,t.array=o,t.stringArray=u;function e(l){return l===!0||l===!1}s(e,"boolean");function r(l){return typeof l=="string"||l instanceof String}s(r,"string");function a(l){return typeof l=="number"||l instanceof Number}s(a,"number");function n(l){return l instanceof Error}s(n,"error");function i(l){return typeof l=="function"}s(i,"func");function o(l){return Array.isArray(l)}s(o,"array");function u(l){return o(l)&&l.every(c=>r(c))}s(u,"stringArray")}}),Sy=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messages.js"(t){var G,S,I,v,w,k,_,x,U,Z,Q,ee,ae,pe,ye,Le,Ne,Je,Ze,pt,ze,xe,st,Qe,se;var e=t&&t.__createBinding||(Object.create?(function(B,q,z,oe){oe===void 0&&(oe=z);var de=Object.getOwnPropertyDescriptor(q,z);(!de||("get"in de?!q.__esModule:de.writable||de.configurable))&&(de={enumerable:!0,get:s(function(){return q[z]},"get")}),Object.defineProperty(B,oe,de)}):(function(B,q,z,oe){oe===void 0&&(oe=z),B[oe]=q[z]})),r=t&&t.__setModuleDefault||(Object.create?(function(B,q){Object.defineProperty(B,"default",{enumerable:!0,value:q})}):function(B,q){B.default=q}),a=t&&t.__importStar||(function(){var B=s(function(q){return B=Object.getOwnPropertyNames||function(z){var oe=[];for(var de in z)Object.prototype.hasOwnProperty.call(z,de)&&(oe[oe.length]=de);return oe},B(q)},"ownKeys");return function(q){if(q&&q.__esModule)return q;var z={};if(q!=null)for(var oe=B(q),de=0;de<oe.length;de++)oe[de]!=="default"&&e(z,q,oe[de]);return r(z,q),z}})();Object.defineProperty(t,"__esModule",{value:!0}),t.Message=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType=t.RequestType0=t.AbstractMessageSignature=t.ParameterStructures=t.ResponseError=t.ErrorCodes=void 0;var n=a(ll()),i;(function(B){B.ParseError=-32700,B.InvalidRequest=-32600,B.MethodNotFound=-32601,B.InvalidParams=-32602,B.InternalError=-32603,B.jsonrpcReservedErrorRangeStart=-32099,B.serverErrorStart=-32099,B.MessageWriteError=-32099,B.MessageReadError=-32098,B.PendingResponseRejected=-32097,B.ConnectionInactive=-32096,B.ServerNotInitialized=-32002,B.UnknownErrorCode=-32001,B.jsonrpcReservedErrorRangeEnd=-32e3,B.serverErrorEnd=-32e3})(i||(t.ErrorCodes=i={}));var o=(G=class extends Error{constructor(z,oe,de){super(oe);L(this,"code");L(this,"data");this.code=n.number(z)?z:i.UnknownErrorCode,this.data=de,Object.setPrototypeOf(this,G.prototype)}toJson(){const z={code:this.code,message:this.message};return this.data!==void 0&&(z.data=this.data),z}},s(G,"ResponseError"),G);t.ResponseError=o;var u=(S=class{constructor(q){L(this,"kind");this.kind=q}static is(q){return q===S.auto||q===S.byName||q===S.byPosition}toString(){return this.kind}},s(S,"ParameterStructures"),L(S,"auto",new S("auto")),L(S,"byPosition",new S("byPosition")),L(S,"byName",new S("byName")),S);t.ParameterStructures=u;var l=(I=class{constructor(q,z){L(this,"method");L(this,"numberOfParams");this.method=q,this.numberOfParams=z}get parameterStructures(){return u.auto}},s(I,"AbstractMessageSignature"),I);t.AbstractMessageSignature=l;var c=(v=class extends l{constructor(z){super(z,0);L(this,"_")}},s(v,"RequestType0"),v);t.RequestType0=c;var f=(w=class extends l{constructor(z,oe=u.auto){super(z,1);L(this,"_parameterStructures");L(this,"_");this._parameterStructures=oe}get parameterStructures(){return this._parameterStructures}},s(w,"RequestType"),w);t.RequestType=f;var p=(k=class extends l{constructor(z,oe=u.auto){super(z,1);L(this,"_parameterStructures");L(this,"_");this._parameterStructures=oe}get parameterStructures(){return this._parameterStructures}},s(k,"RequestType1"),k);t.RequestType1=p;var h=(_=class extends l{constructor(z){super(z,2);L(this,"_")}},s(_,"RequestType2"),_);t.RequestType2=h;var g=(x=class extends l{constructor(z){super(z,3);L(this,"_")}},s(x,"RequestType3"),x);t.RequestType3=g;var A=(U=class extends l{constructor(z){super(z,4);L(this,"_")}},s(U,"RequestType4"),U);t.RequestType4=A;var $=(Z=class extends l{constructor(z){super(z,5);L(this,"_")}},s(Z,"RequestType5"),Z);t.RequestType5=$;var R=(Q=class extends l{constructor(z){super(z,6);L(this,"_")}},s(Q,"RequestType6"),Q);t.RequestType6=R;var m=(ee=class extends l{constructor(z){super(z,7);L(this,"_")}},s(ee,"RequestType7"),ee);t.RequestType7=m;var y=(ae=class extends l{constructor(z){super(z,8);L(this,"_")}},s(ae,"RequestType8"),ae);t.RequestType8=y;var E=(pe=class extends l{constructor(z){super(z,9);L(this,"_")}},s(pe,"RequestType9"),pe);t.RequestType9=E;var b=(ye=class extends l{constructor(z,oe=u.auto){super(z,1);L(this,"_parameterStructures");L(this,"_");this._parameterStructures=oe}get parameterStructures(){return this._parameterStructures}},s(ye,"NotificationType"),ye);t.NotificationType=b;var P=(Le=class extends l{constructor(z){super(z,0);L(this,"_")}},s(Le,"NotificationType0"),Le);t.NotificationType0=P;var F=(Ne=class extends l{constructor(z,oe=u.auto){super(z,1);L(this,"_parameterStructures");L(this,"_");this._parameterStructures=oe}get parameterStructures(){return this._parameterStructures}},s(Ne,"NotificationType1"),Ne);t.NotificationType1=F;var K=(Je=class extends l{constructor(z){super(z,2);L(this,"_")}},s(Je,"NotificationType2"),Je);t.NotificationType2=K;var le=(Ze=class extends l{constructor(z){super(z,3);L(this,"_")}},s(Ze,"NotificationType3"),Ze);t.NotificationType3=le;var ge=(pt=class extends l{constructor(z){super(z,4);L(this,"_")}},s(pt,"NotificationType4"),pt);t.NotificationType4=ge;var X=(ze=class extends l{constructor(z){super(z,5);L(this,"_")}},s(ze,"NotificationType5"),ze);t.NotificationType5=X;var ve=(xe=class extends l{constructor(z){super(z,6);L(this,"_")}},s(xe,"NotificationType6"),xe);t.NotificationType6=ve;var Me=(st=class extends l{constructor(z){super(z,7);L(this,"_")}},s(st,"NotificationType7"),st);t.NotificationType7=Me;var D=(Qe=class extends l{constructor(z){super(z,8);L(this,"_")}},s(Qe,"NotificationType8"),Qe);t.NotificationType8=D;var N=(se=class extends l{constructor(z){super(z,9);L(this,"_")}},s(se,"NotificationType9"),se);t.NotificationType9=N;var M;(function(B){function q(de){const Oe=de;return Oe&&n.string(Oe.method)&&(n.string(Oe.id)||n.number(Oe.id))}s(q,"isRequest"),B.isRequest=q;function z(de){const Oe=de;return Oe&&n.string(Oe.method)&&de.id===void 0}s(z,"isNotification"),B.isNotification=z;function oe(de){const Oe=de;return Oe&&(Oe.result!==void 0||!!Oe.error)&&(n.string(Oe.id)||n.number(Oe.id)||Oe.id===null)}s(oe,"isResponse"),B.isResponse=oe})(M||(t.Message=M={}))}}),wy=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(t){var n,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=t.LinkedMap=t.Touch=void 0;var e;(function(u){u.None=0,u.First=1,u.AsOld=u.First,u.Last=2,u.AsNew=u.Last})(e||(t.Touch=e={}));var r=(i=class{constructor(){L(this,n,"LinkedMap");L(this,"_map");L(this,"_head");L(this,"_tail");L(this,"_size");L(this,"_state");this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}before(l){const c=this._map.get(l);return c?c.previous?.value:void 0}after(l){const c=this._map.get(l);return c?c.next?.value:void 0}has(l){return this._map.has(l)}get(l,c=e.None){const f=this._map.get(l);if(f)return c!==e.None&&this.touch(f,c),f.value}set(l,c,f=e.None){let p=this._map.get(l);if(p)p.value=c,f!==e.None&&this.touch(p,f);else{switch(p={key:l,value:c,next:void 0,previous:void 0},f){case e.None:this.addItemLast(p);break;case e.First:this.addItemFirst(p);break;case e.Last:this.addItemLast(p);break;default:this.addItemLast(p);break}this._map.set(l,p),this._size++}return this}delete(l){return!!this.remove(l)}remove(l){const c=this._map.get(l);if(c)return this._map.delete(l),this.removeItem(c),this._size--,c.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const l=this._head;return this._map.delete(l.key),this.removeItem(l),this._size--,l.value}forEach(l,c){const f=this._state;let p=this._head;for(;p;){if(c?l.bind(c)(p.value,p.key,this):l(p.value,p.key,this),this._state!==f)throw new Error("LinkedMap got modified during iteration.");p=p.next}}keys(){const l=this._state;let c=this._head;const f={[Symbol.iterator]:()=>f,next:s(()=>{if(this._state!==l)throw new Error("LinkedMap got modified during iteration.");if(c){const p={value:c.key,done:!1};return c=c.next,p}else return{value:void 0,done:!0}},"next")};return f}values(){const l=this._state;let c=this._head;const f={[Symbol.iterator]:()=>f,next:s(()=>{if(this._state!==l)throw new Error("LinkedMap got modified during iteration.");if(c){const p={value:c.value,done:!1};return c=c.next,p}else return{value:void 0,done:!0}},"next")};return f}entries(){const l=this._state;let c=this._head;const f={[Symbol.iterator]:()=>f,next:s(()=>{if(this._state!==l)throw new Error("LinkedMap got modified during iteration.");if(c){const p={value:[c.key,c.value],done:!1};return c=c.next,p}else return{value:void 0,done:!0}},"next")};return f}[(n=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(l){if(l>=this.size)return;if(l===0){this.clear();return}let c=this._head,f=this.size;for(;c&&f>l;)this._map.delete(c.key),c=c.next,f--;this._head=c,this._size=f,c&&(c.previous=void 0),this._state++}addItemFirst(l){if(!this._head&&!this._tail)this._tail=l;else if(this._head)l.next=this._head,this._head.previous=l;else throw new Error("Invalid list");this._head=l,this._state++}addItemLast(l){if(!this._head&&!this._tail)this._head=l;else if(this._tail)l.previous=this._tail,this._tail.next=l;else throw new Error("Invalid list");this._tail=l,this._state++}removeItem(l){if(l===this._head&&l===this._tail)this._head=void 0,this._tail=void 0;else if(l===this._head){if(!l.next)throw new Error("Invalid list");l.next.previous=void 0,this._head=l.next}else if(l===this._tail){if(!l.previous)throw new Error("Invalid list");l.previous.next=void 0,this._tail=l.previous}else{const c=l.next,f=l.previous;if(!c||!f)throw new Error("Invalid list");c.previous=f,f.next=c}l.next=void 0,l.previous=void 0,this._state++}touch(l,c){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(c!==e.First&&c!==e.Last)){if(c===e.First){if(l===this._head)return;const f=l.next,p=l.previous;l===this._tail?(p.next=void 0,this._tail=p):(f.previous=p,p.next=f),l.previous=void 0,l.next=this._head,this._head.previous=l,this._head=l,this._state++}else if(c===e.Last){if(l===this._tail)return;const f=l.next,p=l.previous;l===this._head?(f.previous=void 0,this._head=f):(f.previous=p,p.next=f),l.next=void 0,l.previous=this._tail,this._tail.next=l,this._tail=l,this._state++}}}toJSON(){const l=[];return this.forEach((c,f)=>{l.push([f,c])}),l}fromJSON(l){this.clear();for(const[c,f]of l)this.set(c,f)}},s(i,"LinkedMap"),i);t.LinkedMap=r;var a=(o=class extends r{constructor(c,f=1){super();L(this,"_limit");L(this,"_ratio");this._limit=c,this._ratio=Math.min(Math.max(0,f),1)}get limit(){return this._limit}set limit(c){this._limit=c,this.checkTrim()}get ratio(){return this._ratio}set ratio(c){this._ratio=Math.min(Math.max(0,c),1),this.checkTrim()}get(c,f=e.AsNew){return super.get(c,f)}peek(c){return super.get(c,e.None)}set(c,f){return super.set(c,f,e.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}},s(o,"LRUCache"),o);t.LRUCache=a}}),pC=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/disposable.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Disposable=void 0;var e;(function(r){function a(n){return{dispose:n}}s(a,"create"),r.create=a})(e||(t.Disposable=e={}))}}),Kr=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/ral.js"(t){Object.defineProperty(t,"__esModule",{value:!0});var e;function r(){if(e===void 0)throw new Error("No runtime abstraction layer installed");return e}s(r,"RAL"),(function(a){function n(i){if(i===void 0)throw new Error("No runtime abstraction layer provided");e=i}s(n,"install"),a.install=n})(r||(r={})),t.default=r}}),ul=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/events.js"(t){var o,u;var e=t&&t.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=t.Event=void 0;var r=e(Kr()),a;(function(l){const c={dispose(){}};l.None=function(){return c}})(a||(t.Event=a={}));var n=(o=class{constructor(){L(this,"_callbacks");L(this,"_contexts")}add(c,f=null,p){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(c),this._contexts.push(f),Array.isArray(p)&&p.push({dispose:s(()=>this.remove(c,f),"dispose")})}remove(c,f=null){if(!this._callbacks)return;let p=!1;for(let h=0,g=this._callbacks.length;h<g;h++)if(this._callbacks[h]===c)if(this._contexts[h]===f){this._callbacks.splice(h,1),this._contexts.splice(h,1);return}else p=!0;if(p)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...c){if(!this._callbacks)return[];const f=[],p=this._callbacks.slice(0),h=this._contexts.slice(0);for(let g=0,A=p.length;g<A;g++)try{f.push(p[g].apply(h[g],c))}catch($){(0,r.default)().console.error($)}return f}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},s(o,"CallbackList"),o),i=(u=class{constructor(c){L(this,"_options");L(this,"_event");L(this,"_callbacks");this._options=c}get event(){return this._event||(this._event=(c,f,p)=>{this._callbacks||(this._callbacks=new n),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(c,f);const h={dispose:s(()=>{this._callbacks&&(this._callbacks.remove(c,f),h.dispose=u._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))},"dispose")};return Array.isArray(p)&&p.push(h),h}),this._event}fire(c){this._callbacks&&this._callbacks.invoke.call(this._callbacks,c)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}},s(u,"Emitter"),L(u,"_noop",s(function(){},"_noop")),u);t.Emitter=i}}),sd=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(t){var h,g;var e=t&&t.__createBinding||(Object.create?(function(A,$,R,m){m===void 0&&(m=R);var y=Object.getOwnPropertyDescriptor($,R);(!y||("get"in y?!$.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:s(function(){return $[R]},"get")}),Object.defineProperty(A,m,y)}):(function(A,$,R,m){m===void 0&&(m=R),A[m]=$[R]})),r=t&&t.__setModuleDefault||(Object.create?(function(A,$){Object.defineProperty(A,"default",{enumerable:!0,value:$})}):function(A,$){A.default=$}),a=t&&t.__importStar||(function(){var A=s(function($){return A=Object.getOwnPropertyNames||function(R){var m=[];for(var y in R)Object.prototype.hasOwnProperty.call(R,y)&&(m[m.length]=y);return m},A($)},"ownKeys");return function($){if($&&$.__esModule)return $;var R={};if($!=null)for(var m=A($),y=0;y<m.length;y++)m[y]!=="default"&&e(R,$,m[y]);return r(R,$),R}})(),n=t&&t.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=t.CancellationToken=void 0;var i=n(Kr()),o=a(ll()),u=ul(),l;(function(A){A.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:u.Event.None}),A.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:u.Event.None});function $(R){const m=R;return m&&(m===A.None||m===A.Cancelled||o.boolean(m.isCancellationRequested)&&!!m.onCancellationRequested)}s($,"is"),A.is=$})(l||(t.CancellationToken=l={}));var c=Object.freeze(function(A,$){const R=(0,i.default)().timer.setTimeout(A.bind($),0);return{dispose(){R.dispose()}}}),f=(h=class{constructor(){L(this,"_isCancelled",!1);L(this,"_emitter")}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?c:(this._emitter||(this._emitter=new u.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},s(h,"MutableToken"),h),p=(g=class{constructor(){L(this,"_token")}get token(){return this._token||(this._token=new f),this._token}cancel(){this._token?this._token.cancel():this._token=l.Cancelled}dispose(){this._token?this._token instanceof f&&this._token.dispose():this._token=l.None}},s(g,"CancellationTokenSource"),g);t.CancellationTokenSource=p}}),dC=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(t){var u,l,c,f;Object.defineProperty(t,"__esModule",{value:!0}),t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=void 0;var e=sd(),r;(function(p){p.Continue=0,p.Cancelled=1})(r||(r={}));var a=(u=class{constructor(){L(this,"buffers");this.buffers=new Map}enableCancellation(h){if(h.id===null)return;const g=new SharedArrayBuffer(4),A=new Int32Array(g,0,1);A[0]=r.Continue,this.buffers.set(h.id,g),h.$cancellationData=g}async sendCancellation(h,g){const A=this.buffers.get(g);if(A===void 0)return;const $=new Int32Array(A,0,1);Atomics.store($,0,r.Cancelled)}cleanup(h){this.buffers.delete(h)}dispose(){this.buffers.clear()}},s(u,"SharedArraySenderStrategy"),u);t.SharedArraySenderStrategy=a;var n=(l=class{constructor(h){L(this,"data");this.data=new Int32Array(h,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===r.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},s(l,"SharedArrayBufferCancellationToken"),l),i=(c=class{constructor(h){L(this,"token");this.token=new n(h)}cancel(){}dispose(){}},s(c,"SharedArrayBufferCancellationTokenSource"),c),o=(f=class{constructor(){L(this,"kind","request")}createCancellationTokenSource(h){const g=h.$cancellationData;return g===void 0?new e.CancellationTokenSource:new i(g)}},s(f,"SharedArrayReceiverStrategy"),f);t.SharedArrayReceiverStrategy=o}}),Py=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/semaphore.js"(t){var n;var e=t&&t.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(t,"__esModule",{value:!0}),t.Semaphore=void 0;var r=e(Kr()),a=(n=class{constructor(o=1){L(this,"_capacity");L(this,"_active");L(this,"_waiting");if(o<=0)throw new Error("Capacity must be greater than 0");this._capacity=o,this._active=0,this._waiting=[]}lock(o){return new Promise((u,l)=>{this._waiting.push({thunk:o,resolve:u,reject:l}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,r.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;const o=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("Too many thunks active");try{const u=o.thunk();u instanceof Promise?u.then(l=>{this._active--,o.resolve(l),this.runNext()},l=>{this._active--,o.reject(l),this.runNext()}):(this._active--,o.resolve(u),this.runNext())}catch(u){this._active--,o.reject(u),this.runNext()}}},s(n,"Semaphore"),n);t.Semaphore=a}}),mC=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(t){var g,A;var e=t&&t.__createBinding||(Object.create?(function($,R,m,y){y===void 0&&(y=m);var E=Object.getOwnPropertyDescriptor(R,m);(!E||("get"in E?!R.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:s(function(){return R[m]},"get")}),Object.defineProperty($,y,E)}):(function($,R,m,y){y===void 0&&(y=m),$[y]=R[m]})),r=t&&t.__setModuleDefault||(Object.create?(function($,R){Object.defineProperty($,"default",{enumerable:!0,value:R})}):function($,R){$.default=R}),a=t&&t.__importStar||(function(){var $=s(function(R){return $=Object.getOwnPropertyNames||function(m){var y=[];for(var E in m)Object.prototype.hasOwnProperty.call(m,E)&&(y[y.length]=E);return y},$(R)},"ownKeys");return function(R){if(R&&R.__esModule)return R;var m={};if(R!=null)for(var y=$(R),E=0;E<y.length;E++)y[E]!=="default"&&e(m,R,y[E]);return r(m,R),m}})(),n=t&&t.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(t,"__esModule",{value:!0}),t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=void 0;var i=n(Kr()),o=a(ll()),u=ul(),l=Py(),c;(function($){function R(m){const y=m;return y&&o.func(y.listen)&&o.func(y.dispose)&&o.func(y.onError)&&o.func(y.onClose)&&o.func(y.onPartialMessage)}s(R,"is"),$.is=R})(c||(t.MessageReader=c={}));var f=(g=class{constructor(){L(this,"errorEmitter");L(this,"closeEmitter");L(this,"partialMessageEmitter");this.errorEmitter=new u.Emitter,this.closeEmitter=new u.Emitter,this.partialMessageEmitter=new u.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose(),this.partialMessageEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(R){this.errorEmitter.fire(this.asError(R))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(R){this.partialMessageEmitter.fire(R)}asError(R){return R instanceof Error?R:new Error(`Reader received error. Reason: ${o.string(R.message)?R.message:"unknown"}`)}},s(g,"AbstractMessageReader"),g);t.AbstractMessageReader=f;var p;(function($){function R(m){let y,E;const b=new Map;let P;const F=new Map;if(m===void 0||typeof m=="string")y=m??"utf-8";else{if(y=m.charset??"utf-8",m.contentDecoder!==void 0&&(E=m.contentDecoder,b.set(E.name,E)),m.contentDecoders!==void 0)for(const K of m.contentDecoders)b.set(K.name,K);if(m.contentTypeDecoder!==void 0&&(P=m.contentTypeDecoder,F.set(P.name,P)),m.contentTypeDecoders!==void 0)for(const K of m.contentTypeDecoders)F.set(K.name,K)}return P===void 0&&(P=(0,i.default)().applicationJson.decoder,F.set(P.name,P)),{charset:y,contentDecoder:E,contentDecoders:b,contentTypeDecoder:P,contentTypeDecoders:F}}s(R,"fromOptions"),$.fromOptions=R})(p||(p={}));var h=(A=class extends f{constructor(m,y){super();L(this,"readable");L(this,"options");L(this,"callback");L(this,"nextMessageLength");L(this,"messageToken");L(this,"buffer");L(this,"partialMessageTimer");L(this,"_partialMessageTimeout");L(this,"readSemaphore");this.readable=m,this.options=p.fromOptions(y),this.buffer=(0,i.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new l.Semaphore(1)}set partialMessageTimeout(m){this._partialMessageTimeout=m}get partialMessageTimeout(){return this._partialMessageTimeout}listen(m){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=m;const y=this.readable.onData(E=>{this.onData(E)});return this.readable.onError(E=>this.fireError(E)),this.readable.onClose(()=>this.fireClose()),y}onData(m){try{for(this.buffer.append(m);;){if(this.nextMessageLength===-1){const E=this.buffer.tryReadHeaders(!0);if(!E)return;const b=E.get("content-length");if(!b){this.fireError(new Error(`Header must provide a Content-Length property.
|
|
1
|
+
var aC=Object.defineProperty;var iC=(t,e,r)=>e in t?aC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var L=(t,e,r)=>iC(t,typeof e!="symbol"?e+"":e,r);import{_ as et}from"./E2zwcBGL.js";var sC=Object.create,ol=Object.defineProperty,oC=Object.getOwnPropertyDescriptor,nd=Object.getOwnPropertyNames,lC=Object.getPrototypeOf,uC=Object.prototype.hasOwnProperty,s=(t,e)=>ol(t,"name",{value:e,configurable:!0}),cC=(t,e)=>function(){return t&&(e=(0,t[nd(t)[0]])(t=0)),e},re=(t,e)=>function(){return e||(0,t[nd(t)[0]])((e={exports:{}}).exports,e),e.exports},fC=(t,e)=>{for(var r in e)ol(t,r,{get:e[r],enumerable:!0})},_y=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of nd(e))!uC.call(t,n)&&n!==r&&ol(t,n,{get:()=>e[n],enumerable:!(a=oC(e,n))||a.enumerable});return t},ad=(t,e,r)=>(r=t!=null?sC(lC(t)):{},_y(ol(r,"default",{value:t,enumerable:!0}),t)),id=t=>_y(ol({},"__esModule",{value:!0}),t),ll=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/is.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.boolean=e,t.string=r,t.number=a,t.error=n,t.func=i,t.array=o,t.stringArray=u;function e(l){return l===!0||l===!1}s(e,"boolean");function r(l){return typeof l=="string"||l instanceof String}s(r,"string");function a(l){return typeof l=="number"||l instanceof Number}s(a,"number");function n(l){return l instanceof Error}s(n,"error");function i(l){return typeof l=="function"}s(i,"func");function o(l){return Array.isArray(l)}s(o,"array");function u(l){return o(l)&&l.every(c=>r(c))}s(u,"stringArray")}}),Sy=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messages.js"(t){var G,S,I,v,w,k,_,x,U,Z,Q,ee,ae,pe,ye,Le,Ne,Je,Ze,pt,ze,xe,st,Qe,se;var e=t&&t.__createBinding||(Object.create?(function(B,q,z,oe){oe===void 0&&(oe=z);var de=Object.getOwnPropertyDescriptor(q,z);(!de||("get"in de?!q.__esModule:de.writable||de.configurable))&&(de={enumerable:!0,get:s(function(){return q[z]},"get")}),Object.defineProperty(B,oe,de)}):(function(B,q,z,oe){oe===void 0&&(oe=z),B[oe]=q[z]})),r=t&&t.__setModuleDefault||(Object.create?(function(B,q){Object.defineProperty(B,"default",{enumerable:!0,value:q})}):function(B,q){B.default=q}),a=t&&t.__importStar||(function(){var B=s(function(q){return B=Object.getOwnPropertyNames||function(z){var oe=[];for(var de in z)Object.prototype.hasOwnProperty.call(z,de)&&(oe[oe.length]=de);return oe},B(q)},"ownKeys");return function(q){if(q&&q.__esModule)return q;var z={};if(q!=null)for(var oe=B(q),de=0;de<oe.length;de++)oe[de]!=="default"&&e(z,q,oe[de]);return r(z,q),z}})();Object.defineProperty(t,"__esModule",{value:!0}),t.Message=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType=t.RequestType0=t.AbstractMessageSignature=t.ParameterStructures=t.ResponseError=t.ErrorCodes=void 0;var n=a(ll()),i;(function(B){B.ParseError=-32700,B.InvalidRequest=-32600,B.MethodNotFound=-32601,B.InvalidParams=-32602,B.InternalError=-32603,B.jsonrpcReservedErrorRangeStart=-32099,B.serverErrorStart=-32099,B.MessageWriteError=-32099,B.MessageReadError=-32098,B.PendingResponseRejected=-32097,B.ConnectionInactive=-32096,B.ServerNotInitialized=-32002,B.UnknownErrorCode=-32001,B.jsonrpcReservedErrorRangeEnd=-32e3,B.serverErrorEnd=-32e3})(i||(t.ErrorCodes=i={}));var o=(G=class extends Error{constructor(z,oe,de){super(oe);L(this,"code");L(this,"data");this.code=n.number(z)?z:i.UnknownErrorCode,this.data=de,Object.setPrototypeOf(this,G.prototype)}toJson(){const z={code:this.code,message:this.message};return this.data!==void 0&&(z.data=this.data),z}},s(G,"ResponseError"),G);t.ResponseError=o;var u=(S=class{constructor(q){L(this,"kind");this.kind=q}static is(q){return q===S.auto||q===S.byName||q===S.byPosition}toString(){return this.kind}},s(S,"ParameterStructures"),L(S,"auto",new S("auto")),L(S,"byPosition",new S("byPosition")),L(S,"byName",new S("byName")),S);t.ParameterStructures=u;var l=(I=class{constructor(q,z){L(this,"method");L(this,"numberOfParams");this.method=q,this.numberOfParams=z}get parameterStructures(){return u.auto}},s(I,"AbstractMessageSignature"),I);t.AbstractMessageSignature=l;var c=(v=class extends l{constructor(z){super(z,0);L(this,"_")}},s(v,"RequestType0"),v);t.RequestType0=c;var f=(w=class extends l{constructor(z,oe=u.auto){super(z,1);L(this,"_parameterStructures");L(this,"_");this._parameterStructures=oe}get parameterStructures(){return this._parameterStructures}},s(w,"RequestType"),w);t.RequestType=f;var p=(k=class extends l{constructor(z,oe=u.auto){super(z,1);L(this,"_parameterStructures");L(this,"_");this._parameterStructures=oe}get parameterStructures(){return this._parameterStructures}},s(k,"RequestType1"),k);t.RequestType1=p;var h=(_=class extends l{constructor(z){super(z,2);L(this,"_")}},s(_,"RequestType2"),_);t.RequestType2=h;var g=(x=class extends l{constructor(z){super(z,3);L(this,"_")}},s(x,"RequestType3"),x);t.RequestType3=g;var A=(U=class extends l{constructor(z){super(z,4);L(this,"_")}},s(U,"RequestType4"),U);t.RequestType4=A;var $=(Z=class extends l{constructor(z){super(z,5);L(this,"_")}},s(Z,"RequestType5"),Z);t.RequestType5=$;var R=(Q=class extends l{constructor(z){super(z,6);L(this,"_")}},s(Q,"RequestType6"),Q);t.RequestType6=R;var m=(ee=class extends l{constructor(z){super(z,7);L(this,"_")}},s(ee,"RequestType7"),ee);t.RequestType7=m;var y=(ae=class extends l{constructor(z){super(z,8);L(this,"_")}},s(ae,"RequestType8"),ae);t.RequestType8=y;var E=(pe=class extends l{constructor(z){super(z,9);L(this,"_")}},s(pe,"RequestType9"),pe);t.RequestType9=E;var b=(ye=class extends l{constructor(z,oe=u.auto){super(z,1);L(this,"_parameterStructures");L(this,"_");this._parameterStructures=oe}get parameterStructures(){return this._parameterStructures}},s(ye,"NotificationType"),ye);t.NotificationType=b;var P=(Le=class extends l{constructor(z){super(z,0);L(this,"_")}},s(Le,"NotificationType0"),Le);t.NotificationType0=P;var F=(Ne=class extends l{constructor(z,oe=u.auto){super(z,1);L(this,"_parameterStructures");L(this,"_");this._parameterStructures=oe}get parameterStructures(){return this._parameterStructures}},s(Ne,"NotificationType1"),Ne);t.NotificationType1=F;var K=(Je=class extends l{constructor(z){super(z,2);L(this,"_")}},s(Je,"NotificationType2"),Je);t.NotificationType2=K;var le=(Ze=class extends l{constructor(z){super(z,3);L(this,"_")}},s(Ze,"NotificationType3"),Ze);t.NotificationType3=le;var ge=(pt=class extends l{constructor(z){super(z,4);L(this,"_")}},s(pt,"NotificationType4"),pt);t.NotificationType4=ge;var X=(ze=class extends l{constructor(z){super(z,5);L(this,"_")}},s(ze,"NotificationType5"),ze);t.NotificationType5=X;var ve=(xe=class extends l{constructor(z){super(z,6);L(this,"_")}},s(xe,"NotificationType6"),xe);t.NotificationType6=ve;var Me=(st=class extends l{constructor(z){super(z,7);L(this,"_")}},s(st,"NotificationType7"),st);t.NotificationType7=Me;var D=(Qe=class extends l{constructor(z){super(z,8);L(this,"_")}},s(Qe,"NotificationType8"),Qe);t.NotificationType8=D;var N=(se=class extends l{constructor(z){super(z,9);L(this,"_")}},s(se,"NotificationType9"),se);t.NotificationType9=N;var M;(function(B){function q(de){const Oe=de;return Oe&&n.string(Oe.method)&&(n.string(Oe.id)||n.number(Oe.id))}s(q,"isRequest"),B.isRequest=q;function z(de){const Oe=de;return Oe&&n.string(Oe.method)&&de.id===void 0}s(z,"isNotification"),B.isNotification=z;function oe(de){const Oe=de;return Oe&&(Oe.result!==void 0||!!Oe.error)&&(n.string(Oe.id)||n.number(Oe.id)||Oe.id===null)}s(oe,"isResponse"),B.isResponse=oe})(M||(t.Message=M={}))}}),wy=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(t){var n,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=t.LinkedMap=t.Touch=void 0;var e;(function(u){u.None=0,u.First=1,u.AsOld=u.First,u.Last=2,u.AsNew=u.Last})(e||(t.Touch=e={}));var r=(i=class{constructor(){L(this,n,"LinkedMap");L(this,"_map");L(this,"_head");L(this,"_tail");L(this,"_size");L(this,"_state");this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}before(l){const c=this._map.get(l);return c?c.previous?.value:void 0}after(l){const c=this._map.get(l);return c?c.next?.value:void 0}has(l){return this._map.has(l)}get(l,c=e.None){const f=this._map.get(l);if(f)return c!==e.None&&this.touch(f,c),f.value}set(l,c,f=e.None){let p=this._map.get(l);if(p)p.value=c,f!==e.None&&this.touch(p,f);else{switch(p={key:l,value:c,next:void 0,previous:void 0},f){case e.None:this.addItemLast(p);break;case e.First:this.addItemFirst(p);break;case e.Last:this.addItemLast(p);break;default:this.addItemLast(p);break}this._map.set(l,p),this._size++}return this}delete(l){return!!this.remove(l)}remove(l){const c=this._map.get(l);if(c)return this._map.delete(l),this.removeItem(c),this._size--,c.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const l=this._head;return this._map.delete(l.key),this.removeItem(l),this._size--,l.value}forEach(l,c){const f=this._state;let p=this._head;for(;p;){if(c?l.bind(c)(p.value,p.key,this):l(p.value,p.key,this),this._state!==f)throw new Error("LinkedMap got modified during iteration.");p=p.next}}keys(){const l=this._state;let c=this._head;const f={[Symbol.iterator]:()=>f,next:s(()=>{if(this._state!==l)throw new Error("LinkedMap got modified during iteration.");if(c){const p={value:c.key,done:!1};return c=c.next,p}else return{value:void 0,done:!0}},"next")};return f}values(){const l=this._state;let c=this._head;const f={[Symbol.iterator]:()=>f,next:s(()=>{if(this._state!==l)throw new Error("LinkedMap got modified during iteration.");if(c){const p={value:c.value,done:!1};return c=c.next,p}else return{value:void 0,done:!0}},"next")};return f}entries(){const l=this._state;let c=this._head;const f={[Symbol.iterator]:()=>f,next:s(()=>{if(this._state!==l)throw new Error("LinkedMap got modified during iteration.");if(c){const p={value:[c.key,c.value],done:!1};return c=c.next,p}else return{value:void 0,done:!0}},"next")};return f}[(n=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(l){if(l>=this.size)return;if(l===0){this.clear();return}let c=this._head,f=this.size;for(;c&&f>l;)this._map.delete(c.key),c=c.next,f--;this._head=c,this._size=f,c&&(c.previous=void 0),this._state++}addItemFirst(l){if(!this._head&&!this._tail)this._tail=l;else if(this._head)l.next=this._head,this._head.previous=l;else throw new Error("Invalid list");this._head=l,this._state++}addItemLast(l){if(!this._head&&!this._tail)this._head=l;else if(this._tail)l.previous=this._tail,this._tail.next=l;else throw new Error("Invalid list");this._tail=l,this._state++}removeItem(l){if(l===this._head&&l===this._tail)this._head=void 0,this._tail=void 0;else if(l===this._head){if(!l.next)throw new Error("Invalid list");l.next.previous=void 0,this._head=l.next}else if(l===this._tail){if(!l.previous)throw new Error("Invalid list");l.previous.next=void 0,this._tail=l.previous}else{const c=l.next,f=l.previous;if(!c||!f)throw new Error("Invalid list");c.previous=f,f.next=c}l.next=void 0,l.previous=void 0,this._state++}touch(l,c){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(c!==e.First&&c!==e.Last)){if(c===e.First){if(l===this._head)return;const f=l.next,p=l.previous;l===this._tail?(p.next=void 0,this._tail=p):(f.previous=p,p.next=f),l.previous=void 0,l.next=this._head,this._head.previous=l,this._head=l,this._state++}else if(c===e.Last){if(l===this._tail)return;const f=l.next,p=l.previous;l===this._head?(f.previous=void 0,this._head=f):(f.previous=p,p.next=f),l.next=void 0,l.previous=this._tail,this._tail.next=l,this._tail=l,this._state++}}}toJSON(){const l=[];return this.forEach((c,f)=>{l.push([f,c])}),l}fromJSON(l){this.clear();for(const[c,f]of l)this.set(c,f)}},s(i,"LinkedMap"),i);t.LinkedMap=r;var a=(o=class extends r{constructor(c,f=1){super();L(this,"_limit");L(this,"_ratio");this._limit=c,this._ratio=Math.min(Math.max(0,f),1)}get limit(){return this._limit}set limit(c){this._limit=c,this.checkTrim()}get ratio(){return this._ratio}set ratio(c){this._ratio=Math.min(Math.max(0,c),1),this.checkTrim()}get(c,f=e.AsNew){return super.get(c,f)}peek(c){return super.get(c,e.None)}set(c,f){return super.set(c,f,e.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}},s(o,"LRUCache"),o);t.LRUCache=a}}),pC=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/disposable.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Disposable=void 0;var e;(function(r){function a(n){return{dispose:n}}s(a,"create"),r.create=a})(e||(t.Disposable=e={}))}}),Kr=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/ral.js"(t){Object.defineProperty(t,"__esModule",{value:!0});var e;function r(){if(e===void 0)throw new Error("No runtime abstraction layer installed");return e}s(r,"RAL"),(function(a){function n(i){if(i===void 0)throw new Error("No runtime abstraction layer provided");e=i}s(n,"install"),a.install=n})(r||(r={})),t.default=r}}),ul=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/events.js"(t){var o,u;var e=t&&t.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=t.Event=void 0;var r=e(Kr()),a;(function(l){const c={dispose(){}};l.None=function(){return c}})(a||(t.Event=a={}));var n=(o=class{constructor(){L(this,"_callbacks");L(this,"_contexts")}add(c,f=null,p){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(c),this._contexts.push(f),Array.isArray(p)&&p.push({dispose:s(()=>this.remove(c,f),"dispose")})}remove(c,f=null){if(!this._callbacks)return;let p=!1;for(let h=0,g=this._callbacks.length;h<g;h++)if(this._callbacks[h]===c)if(this._contexts[h]===f){this._callbacks.splice(h,1),this._contexts.splice(h,1);return}else p=!0;if(p)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...c){if(!this._callbacks)return[];const f=[],p=this._callbacks.slice(0),h=this._contexts.slice(0);for(let g=0,A=p.length;g<A;g++)try{f.push(p[g].apply(h[g],c))}catch($){(0,r.default)().console.error($)}return f}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},s(o,"CallbackList"),o),i=(u=class{constructor(c){L(this,"_options");L(this,"_event");L(this,"_callbacks");this._options=c}get event(){return this._event||(this._event=(c,f,p)=>{this._callbacks||(this._callbacks=new n),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(c,f);const h={dispose:s(()=>{this._callbacks&&(this._callbacks.remove(c,f),h.dispose=u._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))},"dispose")};return Array.isArray(p)&&p.push(h),h}),this._event}fire(c){this._callbacks&&this._callbacks.invoke.call(this._callbacks,c)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}},s(u,"Emitter"),L(u,"_noop",s(function(){},"_noop")),u);t.Emitter=i}}),sd=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(t){var h,g;var e=t&&t.__createBinding||(Object.create?(function(A,$,R,m){m===void 0&&(m=R);var y=Object.getOwnPropertyDescriptor($,R);(!y||("get"in y?!$.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:s(function(){return $[R]},"get")}),Object.defineProperty(A,m,y)}):(function(A,$,R,m){m===void 0&&(m=R),A[m]=$[R]})),r=t&&t.__setModuleDefault||(Object.create?(function(A,$){Object.defineProperty(A,"default",{enumerable:!0,value:$})}):function(A,$){A.default=$}),a=t&&t.__importStar||(function(){var A=s(function($){return A=Object.getOwnPropertyNames||function(R){var m=[];for(var y in R)Object.prototype.hasOwnProperty.call(R,y)&&(m[m.length]=y);return m},A($)},"ownKeys");return function($){if($&&$.__esModule)return $;var R={};if($!=null)for(var m=A($),y=0;y<m.length;y++)m[y]!=="default"&&e(R,$,m[y]);return r(R,$),R}})(),n=t&&t.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=t.CancellationToken=void 0;var i=n(Kr()),o=a(ll()),u=ul(),l;(function(A){A.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:u.Event.None}),A.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:u.Event.None});function $(R){const m=R;return m&&(m===A.None||m===A.Cancelled||o.boolean(m.isCancellationRequested)&&!!m.onCancellationRequested)}s($,"is"),A.is=$})(l||(t.CancellationToken=l={}));var c=Object.freeze(function(A,$){const R=(0,i.default)().timer.setTimeout(A.bind($),0);return{dispose(){R.dispose()}}}),f=(h=class{constructor(){L(this,"_isCancelled",!1);L(this,"_emitter")}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?c:(this._emitter||(this._emitter=new u.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},s(h,"MutableToken"),h),p=(g=class{constructor(){L(this,"_token")}get token(){return this._token||(this._token=new f),this._token}cancel(){this._token?this._token.cancel():this._token=l.Cancelled}dispose(){this._token?this._token instanceof f&&this._token.dispose():this._token=l.None}},s(g,"CancellationTokenSource"),g);t.CancellationTokenSource=p}}),dC=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(t){var u,l,c,f;Object.defineProperty(t,"__esModule",{value:!0}),t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=void 0;var e=sd(),r;(function(p){p.Continue=0,p.Cancelled=1})(r||(r={}));var a=(u=class{constructor(){L(this,"buffers");this.buffers=new Map}enableCancellation(h){if(h.id===null)return;const g=new SharedArrayBuffer(4),A=new Int32Array(g,0,1);A[0]=r.Continue,this.buffers.set(h.id,g),h.$cancellationData=g}async sendCancellation(h,g){const A=this.buffers.get(g);if(A===void 0)return;const $=new Int32Array(A,0,1);Atomics.store($,0,r.Cancelled)}cleanup(h){this.buffers.delete(h)}dispose(){this.buffers.clear()}},s(u,"SharedArraySenderStrategy"),u);t.SharedArraySenderStrategy=a;var n=(l=class{constructor(h){L(this,"data");this.data=new Int32Array(h,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===r.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},s(l,"SharedArrayBufferCancellationToken"),l),i=(c=class{constructor(h){L(this,"token");this.token=new n(h)}cancel(){}dispose(){}},s(c,"SharedArrayBufferCancellationTokenSource"),c),o=(f=class{constructor(){L(this,"kind","request")}createCancellationTokenSource(h){const g=h.$cancellationData;return g===void 0?new e.CancellationTokenSource:new i(g)}},s(f,"SharedArrayReceiverStrategy"),f);t.SharedArrayReceiverStrategy=o}}),Py=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/semaphore.js"(t){var n;var e=t&&t.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(t,"__esModule",{value:!0}),t.Semaphore=void 0;var r=e(Kr()),a=(n=class{constructor(o=1){L(this,"_capacity");L(this,"_active");L(this,"_waiting");if(o<=0)throw new Error("Capacity must be greater than 0");this._capacity=o,this._active=0,this._waiting=[]}lock(o){return new Promise((u,l)=>{this._waiting.push({thunk:o,resolve:u,reject:l}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,r.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;const o=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("Too many thunks active");try{const u=o.thunk();u instanceof Promise?u.then(l=>{this._active--,o.resolve(l),this.runNext()},l=>{this._active--,o.reject(l),this.runNext()}):(this._active--,o.resolve(u),this.runNext())}catch(u){this._active--,o.reject(u),this.runNext()}}},s(n,"Semaphore"),n);t.Semaphore=a}}),mC=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(t){var g,A;var e=t&&t.__createBinding||(Object.create?(function($,R,m,y){y===void 0&&(y=m);var E=Object.getOwnPropertyDescriptor(R,m);(!E||("get"in E?!R.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:s(function(){return R[m]},"get")}),Object.defineProperty($,y,E)}):(function($,R,m,y){y===void 0&&(y=m),$[y]=R[m]})),r=t&&t.__setModuleDefault||(Object.create?(function($,R){Object.defineProperty($,"default",{enumerable:!0,value:R})}):function($,R){$.default=R}),a=t&&t.__importStar||(function(){var $=s(function(R){return $=Object.getOwnPropertyNames||function(m){var y=[];for(var E in m)Object.prototype.hasOwnProperty.call(m,E)&&(y[y.length]=E);return y},$(R)},"ownKeys");return function(R){if(R&&R.__esModule)return R;var m={};if(R!=null)for(var y=$(R),E=0;E<y.length;E++)y[E]!=="default"&&e(m,R,y[E]);return r(m,R),m}})(),n=t&&t.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(t,"__esModule",{value:!0}),t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=void 0;var i=n(Kr()),o=a(ll()),u=ul(),l=Py(),c;(function($){function R(m){const y=m;return y&&o.func(y.listen)&&o.func(y.dispose)&&o.func(y.onError)&&o.func(y.onClose)&&o.func(y.onPartialMessage)}s(R,"is"),$.is=R})(c||(t.MessageReader=c={}));var f=(g=class{constructor(){L(this,"errorEmitter");L(this,"closeEmitter");L(this,"partialMessageEmitter");this.errorEmitter=new u.Emitter,this.closeEmitter=new u.Emitter,this.partialMessageEmitter=new u.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose(),this.partialMessageEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(R){this.errorEmitter.fire(this.asError(R))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(R){this.partialMessageEmitter.fire(R)}asError(R){return R instanceof Error?R:new Error(`Reader received error. Reason: ${o.string(R.message)?R.message:"unknown"}`)}},s(g,"AbstractMessageReader"),g);t.AbstractMessageReader=f;var p;(function($){function R(m){let y,E;const b=new Map;let P;const F=new Map;if(m===void 0||typeof m=="string")y=m??"utf-8";else{if(y=m.charset??"utf-8",m.contentDecoder!==void 0&&(E=m.contentDecoder,b.set(E.name,E)),m.contentDecoders!==void 0)for(const K of m.contentDecoders)b.set(K.name,K);if(m.contentTypeDecoder!==void 0&&(P=m.contentTypeDecoder,F.set(P.name,P)),m.contentTypeDecoders!==void 0)for(const K of m.contentTypeDecoders)F.set(K.name,K)}return P===void 0&&(P=(0,i.default)().applicationJson.decoder,F.set(P.name,P)),{charset:y,contentDecoder:E,contentDecoders:b,contentTypeDecoder:P,contentTypeDecoders:F}}s(R,"fromOptions"),$.fromOptions=R})(p||(p={}));var h=(A=class extends f{constructor(m,y){super();L(this,"readable");L(this,"options");L(this,"callback");L(this,"nextMessageLength");L(this,"messageToken");L(this,"buffer");L(this,"partialMessageTimer");L(this,"_partialMessageTimeout");L(this,"readSemaphore");this.readable=m,this.options=p.fromOptions(y),this.buffer=(0,i.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new l.Semaphore(1)}set partialMessageTimeout(m){this._partialMessageTimeout=m}get partialMessageTimeout(){return this._partialMessageTimeout}listen(m){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=m;const y=this.readable.onData(E=>{this.onData(E)});return this.readable.onError(E=>this.fireError(E)),this.readable.onClose(()=>this.fireClose()),y}onData(m){try{for(this.buffer.append(m);;){if(this.nextMessageLength===-1){const E=this.buffer.tryReadHeaders(!0);if(!E)return;const b=E.get("content-length");if(!b){this.fireError(new Error(`Header must provide a Content-Length property.
|
|
2
2
|
${JSON.stringify(Object.fromEntries(E))}`));return}const P=parseInt(b);if(isNaN(P)){this.fireError(new Error(`Content-Length value must be a number. Got ${b}`));return}this.nextMessageLength=P}const y=this.buffer.tryReadBody(this.nextMessageLength);if(y===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{const E=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(y):y,b=await this.options.contentTypeDecoder.decode(E,this.options);this.callback(b)}).catch(E=>{this.fireError(E)})}}catch(y){this.fireError(y)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,i.default)().timer.setTimeout((m,y)=>{this.partialMessageTimer=void 0,m===this.messageToken&&(this.firePartialMessage({messageToken:m,waitingTime:y}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}},s(A,"ReadableStreamMessageReader"),A);t.ReadableStreamMessageReader=h}}),hC=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageWriter.js"(t){var $,R;var e=t&&t.__createBinding||(Object.create?(function(m,y,E,b){b===void 0&&(b=E);var P=Object.getOwnPropertyDescriptor(y,E);(!P||("get"in P?!y.__esModule:P.writable||P.configurable))&&(P={enumerable:!0,get:s(function(){return y[E]},"get")}),Object.defineProperty(m,b,P)}):(function(m,y,E,b){b===void 0&&(b=E),m[b]=y[E]})),r=t&&t.__setModuleDefault||(Object.create?(function(m,y){Object.defineProperty(m,"default",{enumerable:!0,value:y})}):function(m,y){m.default=y}),a=t&&t.__importStar||(function(){var m=s(function(y){return m=Object.getOwnPropertyNames||function(E){var b=[];for(var P in E)Object.prototype.hasOwnProperty.call(E,P)&&(b[b.length]=P);return b},m(y)},"ownKeys");return function(y){if(y&&y.__esModule)return y;var E={};if(y!=null)for(var b=m(y),P=0;P<b.length;P++)b[P]!=="default"&&e(E,y,b[P]);return r(E,y),E}})(),n=t&&t.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(t,"__esModule",{value:!0}),t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=void 0;var i=n(Kr()),o=a(ll()),u=Py(),l=ul(),c="Content-Length: ",f=`\r
|
|
3
3
|
`,p;(function(m){function y(E){const b=E;return b&&o.func(b.dispose)&&o.func(b.onClose)&&o.func(b.onError)&&o.func(b.write)}s(y,"is"),m.is=y})(p||(t.MessageWriter=p={}));var h=($=class{constructor(){L(this,"errorEmitter");L(this,"closeEmitter");this.errorEmitter=new l.Emitter,this.closeEmitter=new l.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(y,E,b){this.errorEmitter.fire([this.asError(y),E,b])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(y){return y instanceof Error?y:new Error(`Writer received error. Reason: ${o.string(y.message)?y.message:"unknown"}`)}},s($,"AbstractMessageWriter"),$);t.AbstractMessageWriter=h;var g;(function(m){function y(E){return E===void 0||typeof E=="string"?{charset:E??"utf-8",contentTypeEncoder:(0,i.default)().applicationJson.encoder}:{charset:E.charset??"utf-8",contentEncoder:E.contentEncoder,contentTypeEncoder:E.contentTypeEncoder??(0,i.default)().applicationJson.encoder}}s(y,"fromOptions"),m.fromOptions=y})(g||(g={}));var A=(R=class extends h{constructor(E,b){super();L(this,"writable");L(this,"options");L(this,"errorCount");L(this,"writeSemaphore");this.writable=E,this.options=g.fromOptions(b),this.errorCount=0,this.writeSemaphore=new u.Semaphore(1),this.writable.onError(P=>this.fireError(P)),this.writable.onClose(()=>this.fireClose())}async write(E){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(E,this.options).then(P=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(P):P).then(P=>{const F=[];return F.push(c,P.byteLength.toString(),f),F.push(f),this.doWrite(E,F,P)},P=>{throw this.fireError(P),P}))}async doWrite(E,b,P){try{return await this.writable.write(b.join(""),"ascii"),this.writable.write(P)}catch(F){return this.handleError(F,E),Promise.reject(F)}}handleError(E,b){this.errorCount++,this.fireError(E,b,this.errorCount)}end(){this.writable.end()}},s(R,"WriteableStreamMessageWriter"),R);t.WriteableStreamMessageWriter=A}}),yC=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(t){var i;Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractMessageBuffer=void 0;var e=13,r=10,a=`\r
|
|
4
4
|
`,n=(i=class{constructor(u="utf-8"){L(this,"_encoding");L(this,"_chunks");L(this,"_totalLength");this._encoding=u,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(u){const l=typeof u=="string"?this.fromString(u,this._encoding):u;this._chunks.push(l),this._totalLength+=l.byteLength}tryReadHeaders(u=!1){if(this._chunks.length===0)return;let l=0,c=0,f=0,p=0;e:for(;c<this._chunks.length;){const $=this._chunks[c];for(f=0;f<$.length;){switch($[f]){case e:switch(l){case 0:l=1;break;case 2:l=3;break;default:l=0}break;case r:switch(l){case 1:l=2;break;case 3:l=4,f++;break e;default:l=0}break;default:l=0}f++}p+=$.byteLength,c++}if(l!==4)return;const h=this._read(p+f),g=new Map,A=this.toString(h,"ascii").split(a);if(A.length<2)return g;for(let $=0;$<A.length-2;$++){const R=A[$],m=R.indexOf(":");if(m===-1)throw new Error(`Message header must separate key and value using ':'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as L,j as R}from"./
|
|
1
|
+
import{s as L,j as R}from"./Ctd97c_e.js";const O=(e,l={})=>{let d=l?.fadeSize??24,r=l?.axis??"y",a=l?.enabled??!0,u=!1,n,c,o=!1,f,i,v;function z(){const s=r==="y"?e.scrollTop:e.scrollLeft,y=r==="y"?e.clientHeight:e.clientWidth,S=r==="y"?e.scrollHeight:e.scrollWidth,k=s>2,x=s+y<S-2,h=k?d:0,g=x?d:0,p=h===0&&g===0?"":`linear-gradient(${r==="y"?"to bottom":"to right"}, transparent, black ${h}px, black calc(100% - ${g}px), transparent)`;p!==v&&(v=p,i?.(),i=R(()=>{i=void 0,e.style.maskImage=p}))}function t(){o||(o=!0,f=L(()=>{o=!1,a&&z()}))}function b(){u&&e.removeEventListener("scroll",t),u=!1,n?.disconnect(),n=void 0,c?.disconnect(),c=void 0,f?.(),f=void 0,i?.(),i=void 0,o=!1,v=void 0,e.style.maskImage=""}function m(){b(),a&&(t(),e.addEventListener("scroll",t,{passive:!0}),u=!0,n=typeof ResizeObserver>"u"?void 0:new ResizeObserver(t),n?.observe(e),c=new MutationObserver(t),c.observe(e,{childList:!0,subtree:!0}))}return m(),{update(s){const y=a;d=s?.fadeSize??24,r=s?.axis??"y",a=s?.enabled??!0,a?y?t():m():b()},destroy:b}};export{O as s};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{_ as i}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/rnl2fV5A.js","/app/immutable/chunks/E2zwcBGL.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/DzNB7FSW.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/BlOn95cv.js","/app/immutable/chunks/UyBYtOpv.js","/app/immutable/chunks/BTNnUZgK.js","/app/immutable/chunks/BqUqwkFB.js","/app/immutable/chunks/BiLRO_7d.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/AXIAXE42.js","/app/immutable/chunks/8mzXJxUW.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/BAm6Imyt.js","/app/immutable/chunks/Cj4zs9c7.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/BEZid-wN.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/CeJ1IeC2.js","/app/immutable/chunks/BeqM5XE9.js","/app/immutable/chunks/qj_I7waa.js","/app/immutable/chunks/Cvz2UPkQ.js","/app/immutable/chunks/C0GDF9vt.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/C8iHXc33.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/kWExXPwX.js","/app/immutable/chunks/BuNSu9iM.js","/app/immutable/chunks/cHqVrdKP.js","/app/immutable/chunks/1glN8WZR.js","/app/immutable/chunks/BuJ6T8t6.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/BZyiigVh.js","/app/immutable/chunks/CaW-fRmu.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as i}from"./E2zwcBGL.js";import{c as m}from"./ChTqQfQN.js";function d(){return typeof window<"u"&&window.location.pathname.startsWith("/hud")}let _=0;function f(){_+=1}function E(){return _}const h=m("Navigation"),w="settings-previous-path";function r(t){return/^\/settings(?:[/?#]|$)/.test(t)}async function l(t,a={}){if(d()||typeof window<"u"&&/^\/dock(?:\/|$)/.test(window.location.pathname)){h.debug("Ignoring navigation in auxiliary window",{route:t});return}const c=a.assistantContent||t.startsWith("intent://")||/^https?:\/\//.test(t);if(c||f(),c){const{showAssistantContent:n}=await i(async()=>{const{showAssistantContent:e}=await import("./rnl2fV5A.js");return{showAssistantContent:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35]),import.meta.url);if(await n(t,{preserveFocus:!0,background:a.assistantContent===!0,agentId:a.assistantAgentId})){if(a.assistantContent)return;const{openPanel:e}=await i(async()=>{const{openPanel:o}=await import("./DzNB7FSW.js").then(s=>s.H6);return{openPanel:o}},__vite__mapDeps([3,4,2,5,6,7,8,9,1,10]),import.meta.url),{store:g}=await i(async()=>{const{store:o}=await import("./BuJ6T8t6.js");return{store:o}},__vite__mapDeps([36,3,4,2,5,6,7,8,9,1,10,37,38]),import.meta.url);g.dispatch(e("chief"));const{goto:p}=await i(async()=>{const{goto:o}=await import("./CaW-fRmu.js").then(s=>s.n);return{goto:o}},__vite__mapDeps([39,2]),import.meta.url);window.location.pathname!=="/"&&await p("/");return}}if(r(t)&&typeof window<"u"&&typeof sessionStorage<"u"&&!r(window.location.pathname)){const n=new URL(window.location.href);sessionStorage.setItem(w,n.pathname+n.search+n.hash)}const{goto:u}=await i(async()=>{const{goto:n}=await import("./CaW-fRmu.js").then(e=>e.n);return{goto:n}},__vite__mapDeps([39,2]),import.meta.url);return a.state?u(t,{state:a.state}):u(t)}const P=Object.freeze(Object.defineProperty({__proto__:null,SETTINGS_PREV_PATH_KEY:w,isHudWindowRenderer:d,isSettingsRoute:r,navigateToRoute:l},Symbol.toStringTag,{value:"Module"}));export{w as S,r as a,f as b,E as c,P as d,d as i,l as n};
|