@intent-hq/web 2.375.1 → 2.376.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{Dn-hGN0g.js → -Hb5Lymn.js} +1 -1
- package/web/app/immutable/chunks/{C9EedYBu.js → -SrZYziV.js} +1 -1
- package/web/app/immutable/chunks/{DKUOdUyV.js → 0rEEjvhW.js} +1 -1
- package/web/app/immutable/chunks/{DVcCnfZH.js → 0vLUv3ld.js} +1 -1
- package/web/app/immutable/chunks/1KDVFF23.js +1 -0
- package/web/app/immutable/chunks/{ChGLvrw4.js → 1_Sb4Kkv.js} +4 -4
- package/web/app/immutable/chunks/{Xgzrv-dN.js → 1wMLd-77.js} +1 -1
- package/web/app/immutable/chunks/{BX9IoE2d.js → 26zQgwyJ.js} +1 -1
- package/web/app/immutable/chunks/{DSiF4FpM.js → 2WaF6vs_.js} +1 -1
- package/web/app/immutable/chunks/{Bd6SODL5.js → 471Fgn_p.js} +1 -1
- package/web/app/immutable/chunks/{BE5ZU7pI.js → 5II1c2xL.js} +1 -1
- package/web/app/immutable/chunks/{DqujvsHK.js → 5IrgxRfr.js} +1 -1
- package/web/app/immutable/chunks/{DNozBV3M.js → 6529TVsv.js} +1 -1
- package/web/app/immutable/chunks/{Cpr2SOSC.js → 6FXzbKIf.js} +1 -1
- package/web/app/immutable/chunks/{DgiJ63hc.js → 7FS8g33K.js} +3 -3
- package/web/app/immutable/chunks/{CberoJl6.js → 7IpY0EgW.js} +1 -1
- package/web/app/immutable/chunks/{DY61j2wq.js → 7n3mxV6t.js} +1 -1
- package/web/app/immutable/chunks/{B_jbAa0I.js → 8PIbpdJu.js} +1 -1
- package/web/app/immutable/chunks/{B4SJ0wZk.js → 8VOCP3Xx.js} +1 -1
- package/web/app/immutable/chunks/{t4bVJhrn.js → 9Fwj-RCt.js} +4 -4
- package/web/app/immutable/chunks/{Jcrj5YZi.js → 9IHp8VDb.js} +1 -1
- package/web/app/immutable/chunks/{hK5d1dQ0.js → Aa4mTk2-.js} +1 -1
- package/web/app/immutable/chunks/{DV_Q2hiQ.js → B-lpv6Gv.js} +2 -2
- package/web/app/immutable/chunks/{DoQnqQZn.js → B4ot6F6B.js} +1 -1
- package/web/app/immutable/chunks/{B4n9OEnJ.js → B4wiFjXK.js} +1 -1
- package/web/app/immutable/chunks/B61tWwOC.js +1 -0
- package/web/app/immutable/chunks/{CM4xaytB.js → B6Zf-ZTX.js} +1 -1
- package/web/app/immutable/chunks/{DODG7FHv.js → B7o1DJo9.js} +1 -1
- package/web/app/immutable/chunks/{D3HVFnZe.js → B8tcC_lC.js} +1 -1
- package/web/app/immutable/chunks/{67uMgcnU.js → B9F4r5fH.js} +1 -1
- package/web/app/immutable/chunks/{BepABSAk.js → B9nat7hx.js} +1 -1
- package/web/app/immutable/chunks/{CtX28OJm.js → BA7mfVzm.js} +1 -1
- package/web/app/immutable/chunks/{CXjIzVpl.js → BGMy2Ryn.js} +1 -1
- package/web/app/immutable/chunks/{Dqtmunn7.js → BH4muXHE.js} +5 -5
- package/web/app/immutable/chunks/{Ds6Uj2aI.js → BIGkxv6Q.js} +1 -1
- package/web/app/immutable/chunks/{BWtq4mC4.js → BIwMjRQQ.js} +1 -1
- package/web/app/immutable/chunks/{CzEqpD5b.js → BLNcc2k4.js} +1 -1
- package/web/app/immutable/chunks/{CkRR8JwL.js → BLSHNn4a.js} +1 -1
- package/web/app/immutable/chunks/{jG67l4Uo.js → BLYYB2Pl.js} +2 -2
- package/web/app/immutable/chunks/{BbzFLKZE.js → BMScw2DS.js} +1 -1
- package/web/app/immutable/chunks/{gsUgKMwT.js → BMfUzLG6.js} +1 -1
- package/web/app/immutable/chunks/{B6CxzJhM.js → BOLzaoLg.js} +1 -1
- package/web/app/immutable/chunks/{mM-wy2h5.js → BP7XtCsE.js} +1 -1
- package/web/app/immutable/chunks/{NgEAPl8f.js → BPo1GPk4.js} +2 -2
- package/web/app/immutable/chunks/{BKPOvbtV.js → BPx3dFHu.js} +1 -1
- package/web/app/immutable/chunks/{DD_c8x6U.js → BQ5vM4FB.js} +2 -2
- package/web/app/immutable/chunks/{DJuFWuFo.js → BVunuTwn.js} +1 -1
- package/web/app/immutable/chunks/{DaUQbJQJ.js → BWBQA0E0.js} +1 -1
- package/web/app/immutable/chunks/{E0KBz4I2.js → BXB-ioXM.js} +1 -1
- package/web/app/immutable/chunks/{MBA6k0j3.js → BYBN65Dm.js} +1 -1
- package/web/app/immutable/chunks/{Dv3EtVHJ.js → BYeDxl_R.js} +1 -1
- package/web/app/immutable/chunks/{CiD4x8Gl.js → BZytk_HL.js} +1 -1
- package/web/app/immutable/chunks/{B5CW3gDe.js → Ba4cYgvZ.js} +3 -3
- package/web/app/immutable/chunks/{D806p2LW.js → BaEFcPEE.js} +3 -3
- package/web/app/immutable/chunks/{-18XT1CI.js → BblwdMxR.js} +1 -1
- package/web/app/immutable/chunks/{DIylOQL5.js → BcEldzTj.js} +1 -1
- package/web/app/immutable/chunks/{CRl6sOjh.js → Bco7_wmI.js} +1 -1
- package/web/app/immutable/chunks/{DppdhMsn.js → Bcx8Sxo7.js} +1 -1
- package/web/app/immutable/chunks/{PZRS5x7m.js → Bek4Es60.js} +1 -1
- package/web/app/immutable/chunks/{CUXVMwZ6.js → BgttkbLb.js} +1 -1
- package/web/app/immutable/chunks/{kFANwwYX.js → BgxLwwHQ.js} +1 -1
- package/web/app/immutable/chunks/{5mmUTVhd.js → BjYingUt.js} +1 -1
- package/web/app/immutable/chunks/{Cn8hCY5y.js → BkLeC-gf.js} +2 -2
- package/web/app/immutable/chunks/{ClkC2csJ.js → BlXvVwTG.js} +1 -1
- package/web/app/immutable/chunks/{DK-vph3Z.js → Blp2y8Zh.js} +1 -1
- package/web/app/immutable/chunks/{Bk5eDkyv.js → BmNAS5xc.js} +1 -1
- package/web/app/immutable/chunks/{CZJDTQJi.js → Bo5PTszQ.js} +1 -1
- package/web/app/immutable/chunks/{BZSs3eKh.js → BoEPe-FL.js} +1 -1
- package/web/app/immutable/chunks/{DZ8q1fkg.js → BoT5B49_.js} +1 -1
- package/web/app/immutable/chunks/{CSbK1_CV.js → BpT_ybtH.js} +2 -2
- package/web/app/immutable/chunks/{eGxC9Zfx.js → Br9RT7xb.js} +1 -1
- package/web/app/immutable/chunks/{CF0098kp.js → BrRuqfTp.js} +1 -1
- package/web/app/immutable/chunks/{DZmV2kHY.js → Bs1drFy2.js} +1 -1
- package/web/app/immutable/chunks/{DgOwYCT0.js → BtT-JO5g.js} +1 -1
- package/web/app/immutable/chunks/{DRPKvmfX.js → BtgBrLqZ.js} +1 -1
- package/web/app/immutable/chunks/{Dgn5Otg4.js → Bu4YAtNq.js} +1 -1
- package/web/app/immutable/chunks/{C0JDt0nm.js → Bu8LYT1B.js} +2 -2
- package/web/app/immutable/chunks/{BCKmKE5y.js → BuFlry2f.js} +1 -1
- package/web/app/immutable/chunks/{DvOdp8Jx.js → Bv5YjDej.js} +1 -1
- package/web/app/immutable/chunks/{Db_i0IkD.js → BvKzoZLa.js} +1 -1
- package/web/app/immutable/chunks/{CMFbZICM.js → BvhuCBEE.js} +2 -2
- package/web/app/immutable/chunks/{ChoM6f6w.js → BvjVhe2e.js} +1 -1
- package/web/app/immutable/chunks/{Bu7GfLOK.js → BvvCJG4x.js} +1 -1
- package/web/app/immutable/chunks/{LAC4SG96.js → Bwl-WDiM.js} +1 -1
- package/web/app/immutable/chunks/{tnfQ532f.js → BxlVsP3O.js} +1 -1
- package/web/app/immutable/chunks/{BSroN1Rt.js → ByJyX5qZ.js} +1 -1
- package/web/app/immutable/chunks/{K7F-rH-C.js → C09ifoAC.js} +4 -4
- package/web/app/immutable/chunks/{Q5HWwxnx.js → C0kzahSL.js} +1 -1
- package/web/app/immutable/chunks/{vXh-PQQZ.js → C0nXBDlv.js} +1 -1
- package/web/app/immutable/chunks/{DuPkRrZF.js → C2VSMRVU.js} +1 -1
- package/web/app/immutable/chunks/{B9-EoZ1p.js → C3FNiYoh.js} +1 -1
- package/web/app/immutable/chunks/{DINI7WNX.js → C3iIVLbv.js} +1 -1
- package/web/app/immutable/chunks/{LDe4IsYZ.js → C4MiITEz.js} +1 -1
- package/web/app/immutable/chunks/{TodMLsNs.js → C54d-qnB.js} +1 -1
- package/web/app/immutable/chunks/{D_Y9WK2x.js → C71BdIUW.js} +1 -1
- package/web/app/immutable/chunks/{iwQqOlmN.js → C7Ibt0hX.js} +1 -1
- package/web/app/immutable/chunks/{fXti0RCR.js → C7hm9bSX.js} +1 -1
- package/web/app/immutable/chunks/{CiJWG6bO.js → C82gBCX8.js} +1 -1
- package/web/app/immutable/chunks/{BmC0p6X8.js → CALsJq65.js} +1 -1
- package/web/app/immutable/chunks/{C-nutp9J.js → CB9DABC0.js} +1 -1
- package/web/app/immutable/chunks/{CnMgdwKG.js → CBLFNmYJ.js} +1 -1
- package/web/app/immutable/chunks/{DaysnCXK.js → CBmGf0Ke.js} +1 -1
- package/web/app/immutable/chunks/{gcpLbmeh.js → CCEqDzPP.js} +1 -1
- package/web/app/immutable/chunks/{C5l6D9GX.js → CClsvy7n.js} +1 -1
- package/web/app/immutable/chunks/{CpYW1yE7.js → CDeldaOF.js} +2 -2
- package/web/app/immutable/chunks/{CFqcGY4P.js → CEgHOs22.js} +1 -1
- package/web/app/immutable/chunks/{GlvfRTgI.js → CEqmtghP.js} +1 -1
- package/web/app/immutable/chunks/{RLFGU-s6.js → CFLXlno6.js} +1 -1
- package/web/app/immutable/chunks/{kuwy0JZA.js → CHHUtp07.js} +1 -1
- package/web/app/immutable/chunks/{BmEIQ8E-.js → CHzHsjlJ.js} +1 -1
- package/web/app/immutable/chunks/{Zw1KxEm0.js → CIzlkLuu.js} +1 -1
- package/web/app/immutable/chunks/{D5HhSqbc.js → CJJ2D2db.js} +1 -1
- package/web/app/immutable/chunks/{DGlNRMU1.js → CJh_F--P.js} +2 -2
- package/web/app/immutable/chunks/{CyaIe0jD.js → CJpjySL_.js} +1 -1
- package/web/app/immutable/chunks/{Cy9qAjIU.js → CL6yJ0UM.js} +1 -1
- package/web/app/immutable/chunks/{qPYbzgcC.js → CMgAi196.js} +1 -1
- package/web/app/immutable/chunks/{LGfIT3MS.js → CN0Csvus.js} +3 -3
- package/web/app/immutable/chunks/{Ctusnxiu.js → CN9rXc7J.js} +1 -1
- package/web/app/immutable/chunks/{Ilt_8E2i.js → COhzmnEo.js} +1 -1
- package/web/app/immutable/chunks/{D1HPSWvP.js → CPCza4LC.js} +1 -1
- package/web/app/immutable/chunks/{IVk1JAtP.js → CPEu2Vil.js} +1 -1
- package/web/app/immutable/chunks/{DSiZ9qTg.js → CQQvsDes.js} +1 -1
- package/web/app/immutable/chunks/{Cq76BY90.js → CQww8mRz.js} +1 -1
- package/web/app/immutable/chunks/{MyWfy8xc.js → CRWeEeIp.js} +1 -1
- package/web/app/immutable/chunks/{uE6SDSU_.js → CSepGuJ-.js} +1 -1
- package/web/app/immutable/chunks/{Byjmi-8z.js → CSp6HTdW.js} +2 -2
- package/web/app/immutable/chunks/CT6GHk2v.js +1 -0
- package/web/app/immutable/chunks/{BxVNHcGR.js → CTDEoCzv.js} +1 -1
- package/web/app/immutable/chunks/{oJ_ZL_ms.js → CToFQRbb.js} +1 -1
- package/web/app/immutable/chunks/{alEgYZuT.js → CUUAtNdA.js} +1 -1
- package/web/app/immutable/chunks/{C58p8xFm.js → CWFWI1JB.js} +1 -1
- package/web/app/immutable/chunks/{CFhbo3o1.js → CX9_bRjk.js} +1 -1
- package/web/app/immutable/chunks/{D1JjMDax.js → CYCawVEx.js} +1 -1
- package/web/app/immutable/chunks/{DzVqblgy.js → C_BHeuK7.js} +1 -1
- package/web/app/immutable/chunks/{DuDStABj.js → Ca9qLvAG.js} +1 -1
- package/web/app/immutable/chunks/{6JKrky9_.js → CbnYiL9b.js} +1 -1
- package/web/app/immutable/chunks/{CBl7oWeN.js → Cbu0O7F_.js} +1 -1
- package/web/app/immutable/chunks/{CHUCX9T6.js → CdgNuFkc.js} +1 -1
- package/web/app/immutable/chunks/{DZCvTRBp.js → CdpTO1ew.js} +1 -1
- package/web/app/immutable/chunks/{pZsrsFnW.js → CeWlRIsm.js} +1 -1
- package/web/app/immutable/chunks/{CHLHWub0.js → CfCk_l9B.js} +1 -1
- package/web/app/immutable/chunks/{DgH7yAy-.js → Cfy5Crpr.js} +1 -1
- package/web/app/immutable/chunks/{DoIr8Q2r.js → Ch-pFfsN.js} +1 -1
- package/web/app/immutable/chunks/{SMT1sep4.js → CjCvg4fu.js} +1 -1
- package/web/app/immutable/chunks/{DgaiTQpw.js → CjK2zm52.js} +1 -1
- package/web/app/immutable/chunks/{qkmjEtXH.js → CkmjUBxn.js} +3 -3
- package/web/app/immutable/chunks/{BJuNVIII.js → CkrblKaH.js} +1 -1
- package/web/app/immutable/chunks/{gSg6l32T.js → CmdE1AJL.js} +1 -1
- package/web/app/immutable/chunks/{C44hzh9R.js → CntPxeXh.js} +1 -1
- package/web/app/immutable/chunks/{1KCpY35B.js → Co4Bm5eY.js} +1 -1
- package/web/app/immutable/chunks/{C_GpcLP2.js → CqlSBroo.js} +1 -1
- package/web/app/immutable/chunks/{B4mmdCiF.js → CqsFOLCu.js} +1 -1
- package/web/app/immutable/chunks/{xS3xfMki.js → Csv5_672.js} +1 -1
- package/web/app/immutable/chunks/{C-7W2F0B.js → CtawaW2N.js} +1 -1
- package/web/app/immutable/chunks/{D6GBnYDv.js → CtguhKZB.js} +1 -1
- package/web/app/immutable/chunks/{C-JwFHXS.js → CuAAvi1f.js} +1 -1
- package/web/app/immutable/chunks/{DHqMqA41.js → CvZrEuUX.js} +1 -1
- package/web/app/immutable/chunks/{BlyKuyB7.js → CwQIGTQ1.js} +1 -1
- package/web/app/immutable/chunks/{C7Uh4cHO.js → CxfmOiQr.js} +1 -1
- package/web/app/immutable/chunks/{DyiA0AJU.js → D-7b6BAb.js} +1 -1
- package/web/app/immutable/chunks/{B3fU6XQp.js → D-rGNJzU.js} +1 -1
- package/web/app/immutable/chunks/{P3O1Bi5N.js → D1FftGj7.js} +1 -1
- package/web/app/immutable/chunks/{YfYAjqUM.js → D283eGmG.js} +1 -1
- package/web/app/immutable/chunks/{l4TJFOXC.js → D3GrssRa.js} +1 -1
- package/web/app/immutable/chunks/{DJ2vnC9G.js → D4EwlENg.js} +1 -1
- package/web/app/immutable/chunks/{BDXSQt10.js → D4XPYll-.js} +2 -2
- package/web/app/immutable/chunks/{BDsVnMYl.js → D7VeTrYO.js} +1 -1
- package/web/app/immutable/chunks/{BkLJnbD1.js → D7vAVIvz.js} +1 -1
- package/web/app/immutable/chunks/{D85P44Dj.js → D8B7qxXm.js} +1 -1
- package/web/app/immutable/chunks/{B_3JIPw3.js → DBI3WymG.js} +1 -1
- package/web/app/immutable/chunks/{LNZr9DCJ.js → DHSWOw-U.js} +1 -1
- package/web/app/immutable/chunks/{C6GJZLOP.js → DHbv9I-C.js} +1 -1
- package/web/app/immutable/chunks/{D_otNUZh.js → DJk5np0g.js} +1 -1
- package/web/app/immutable/chunks/{D-ls8znw.js → DKIi_opT.js} +1 -1
- package/web/app/immutable/chunks/{DUXVcIKV.js → DLMaiw5B.js} +1 -1
- package/web/app/immutable/chunks/{5uDsFopc.js → DM4cCUDd.js} +1 -1
- package/web/app/immutable/chunks/{DXwcjaPR.js → DM81x_EL.js} +2 -2
- package/web/app/immutable/chunks/{H3ekn9Mt.js → DMdq0QC2.js} +1 -1
- package/web/app/immutable/chunks/{kFRDyP-N.js → DPF9_zKV.js} +1 -1
- package/web/app/immutable/chunks/{C6jYe9up.js → DPLDRqMC.js} +1 -1
- package/web/app/immutable/chunks/{BO3WriTy.js → DPbnmxjX.js} +1 -1
- package/web/app/immutable/chunks/{CBtQnhwT.js → DPztwkUP.js} +1 -1
- package/web/app/immutable/chunks/{BYC0ucSR.js → DQlLBrpj.js} +1 -1
- package/web/app/immutable/chunks/{mdoDOmuU.js → DQmW4_9G.js} +1 -1
- package/web/app/immutable/chunks/{DzfHkSZF.js → DS5B84mn.js} +1 -1
- package/web/app/immutable/chunks/{P-zm4ktU.js → DSvyONiq.js} +1 -1
- package/web/app/immutable/chunks/{jaSHlZjt.js → DT8FaJbg.js} +1 -1
- package/web/app/immutable/chunks/{CGG7txTQ.js → DTpQzThG.js} +1 -1
- package/web/app/immutable/chunks/{BTKPx9nP.js → DTzE7g9m.js} +3 -3
- package/web/app/immutable/chunks/{BIo9gpGl.js → DUT4xhYi.js} +1 -1
- package/web/app/immutable/chunks/{D6YX_GFv.js → DVok8lSR.js} +1 -1
- package/web/app/immutable/chunks/{Bl8fHOk-.js → DXQ7EI2S.js} +1 -1
- package/web/app/immutable/chunks/{CdvXSvOC.js → DX_ZPiRZ.js} +1 -1
- package/web/app/immutable/chunks/{DgIh2Fs6.js → DXf8KXiZ.js} +1 -1
- package/web/app/immutable/chunks/{COUB9dHY.js → DYGC3eZn.js} +1 -1
- package/web/app/immutable/chunks/{BrFnR1vI.js → DZbKPa1t.js} +1 -1
- package/web/app/immutable/chunks/{U6kzE96u.js → D_fLfdMn.js} +1 -1
- package/web/app/immutable/chunks/{PCtwJJ25.js → D_xvUCUD.js} +1 -1
- package/web/app/immutable/chunks/{DoA3JmdK.js → DbSttgXv.js} +1 -1
- package/web/app/immutable/chunks/{3rxHCGTW.js → DcZr-m_l.js} +1 -1
- package/web/app/immutable/chunks/{a-OtAcF_.js → Dec_LXa-.js} +3 -3
- package/web/app/immutable/chunks/{CqJcYBUx.js → DfXFG9So.js} +1 -1
- package/web/app/immutable/chunks/{B7ydANq7.js → Dfq_rEeO.js} +1 -1
- package/web/app/immutable/chunks/{BowQ7sBM.js → DgV330Oe.js} +1 -1
- package/web/app/immutable/chunks/{grQh-L5q.js → DgaQFJ1C.js} +2 -2
- package/web/app/immutable/chunks/{CYWgGrsf.js → Dh_eorhd.js} +1 -1
- package/web/app/immutable/chunks/{ChJ4msi3.js → Dhj-Oo-y.js} +1 -1
- package/web/app/immutable/chunks/{CBHXSekd.js → DiEy7mCR.js} +1 -1
- package/web/app/immutable/chunks/{F-NRzkEu.js → DiLFzwi3.js} +1 -1
- package/web/app/immutable/chunks/{Bb_mQye1.js → Div7CQPf.js} +1 -1
- package/web/app/immutable/chunks/{DK3AlKip.js → DjBxG6q0.js} +3 -3
- package/web/app/immutable/chunks/{D6hUzfgH.js → DjLLAN4K.js} +1 -1
- package/web/app/immutable/chunks/{o1gxvTJU.js → DjpjFygj.js} +1 -1
- package/web/app/immutable/chunks/{BifXEk-G.js → Dk0afiu6.js} +1 -1
- package/web/app/immutable/chunks/{BOsHJKjO.js → DkY0xIi7.js} +2 -2
- package/web/app/immutable/chunks/{CpV-ehZ5.js → DkYquFOp.js} +1 -1
- package/web/app/immutable/chunks/{DZBnfhEV.js → Dmy603At.js} +1 -1
- package/web/app/immutable/chunks/{DmQm2Dw6.js → DnUdAfCR.js} +1 -1
- package/web/app/immutable/chunks/{CFUDIGea.js → DopSRBlm.js} +1 -1
- package/web/app/immutable/chunks/{CQxAYjD7.js → DpMsJtM0.js} +1 -1
- package/web/app/immutable/chunks/{kZanyiqf.js → DpSAF6fh.js} +1 -1
- package/web/app/immutable/chunks/{XyC5Phh7.js → DpgIqMGp.js} +1 -1
- package/web/app/immutable/chunks/{aToNeEMa.js → DqPe5uyz.js} +1 -1
- package/web/app/immutable/chunks/{D_o67XD6.js → DtO0wAdA.js} +2 -2
- package/web/app/immutable/chunks/{Di9CSB6H.js → DtYDlbcb.js} +1 -1
- package/web/app/immutable/chunks/{Bw0E8D92.js → Dv6PZjTW.js} +1 -1
- package/web/app/immutable/chunks/{yqs-hTyP.js → DvwOszqf.js} +1 -1
- package/web/app/immutable/chunks/{Cin575hV.js → Dwb4ijU4.js} +1 -1
- package/web/app/immutable/chunks/{m8gDbIPC.js → DwhE2_yv.js} +2 -2
- package/web/app/immutable/chunks/{C1m4pSe1.js → DxrRvklK.js} +1 -1
- package/web/app/immutable/chunks/{D9JbOH_S.js → Dy7nbUgl.js} +1 -1
- package/web/app/immutable/chunks/{iykV4pvb.js → DyFc4NAd.js} +1 -1
- package/web/app/immutable/chunks/{DTutiDCZ.js → DzTe1W0Z.js} +1 -1
- package/web/app/immutable/chunks/{CFtfWLBC.js → Dzl5aoA8.js} +1 -1
- package/web/app/immutable/chunks/{CCEQVSjx.js → G4lPpFfF.js} +1 -1
- package/web/app/immutable/chunks/{BL39LNxU.js → IdqO6uHC.js} +1 -1
- package/web/app/immutable/chunks/{B5bnHhgO.js → J9vGyyn3.js} +1 -1
- package/web/app/immutable/chunks/{DbCeN0Lt.js → KImhPY_I.js} +1 -1
- package/web/app/immutable/chunks/{YbP7yBkb.js → LFlj1pUW.js} +1 -1
- package/web/app/immutable/chunks/{dqvdjjXR.js → LqBZITyo.js} +3 -3
- package/web/app/immutable/chunks/{4r36FIB7.js → MujvTDgv.js} +1 -1
- package/web/app/immutable/chunks/{QjNLPDal.js → Mw2Z7eLx.js} +1 -1
- package/web/app/immutable/chunks/{DyT0mOdr.js → NUgfgzzR.js} +4 -4
- package/web/app/immutable/chunks/{DfdqseMI.js → NzPgPyYa.js} +1 -1
- package/web/app/immutable/chunks/{CJZ6Gu1k.js → Ow3KARwj.js} +1 -1
- package/web/app/immutable/chunks/{DtBx3nLm.js → PD1TeEVF.js} +1 -1
- package/web/app/immutable/chunks/{ChbTF48b.js → PqstdoKv.js} +1 -1
- package/web/app/immutable/chunks/{BK0rB8kZ.js → Pqx84Da9.js} +1 -1
- package/web/app/immutable/chunks/{8TUe2kcz.js → PtMxuYy8.js} +1 -1
- package/web/app/immutable/chunks/Q-Hp56ht.js +6 -0
- package/web/app/immutable/chunks/{BjWOzuMm.js → QSHJFaU7.js} +4 -4
- package/web/app/immutable/chunks/{zrdFYBgX.js → Qzhec1TY.js} +1 -1
- package/web/app/immutable/chunks/{Cr9glZDh.js → Ro7n3ECj.js} +1 -1
- package/web/app/immutable/chunks/{BReER1n3.js → THm8CnE2.js} +1 -1
- package/web/app/immutable/chunks/{S7_elIn6.js → TSQNyjhg.js} +1 -1
- package/web/app/immutable/chunks/{C-zY3GF-.js → UHs-xfbd.js} +1 -1
- package/web/app/immutable/chunks/{D0Ayz4Dm.js → Ug7t_gUQ.js} +1 -1
- package/web/app/immutable/chunks/{DQiheiDa.js → Wg-KBN6b.js} +48 -48
- package/web/app/immutable/chunks/{BsknvdQb.js → XmeiGQiO.js} +1 -1
- package/web/app/immutable/chunks/{COIbDYtT.js → Y4Eu_VSz.js} +3 -3
- package/web/app/immutable/chunks/{BQg4hK6W.js → Zg9SWWIQ.js} +1 -1
- package/web/app/immutable/chunks/{Cwvt_P5T.js → a0CN3en2.js} +1 -1
- package/web/app/immutable/chunks/{njprJ3WZ.js → aqQCGQpk.js} +1 -1
- package/web/app/immutable/chunks/bzfuMuVY.js +1 -0
- package/web/app/immutable/chunks/{BHni5QqW.js → cP-p0FYL.js} +1 -1
- package/web/app/immutable/chunks/{DMqmqAT4.js → dIyiVmNx.js} +1 -1
- package/web/app/immutable/chunks/{DVNEvaXi.js → fFnyP4ej.js} +1 -1
- package/web/app/immutable/chunks/{eZSKfAFO.js → gY6D1J3N.js} +1 -1
- package/web/app/immutable/chunks/{CyyqjEBc.js → hCk1hXVJ.js} +1 -1
- package/web/app/immutable/chunks/{DcNvIFJV.js → i0zaZVKI.js} +1 -1
- package/web/app/immutable/chunks/{CBRC7st2.js → i_Orzl3O.js} +2 -2
- package/web/app/immutable/chunks/{BevEoYEw.js → j9buSIht.js} +1 -1
- package/web/app/immutable/chunks/{BLYFfqzj.js → jUAybD8G.js} +1 -1
- package/web/app/immutable/chunks/{zjXa9LeK.js → jsYE2rXv.js} +1 -1
- package/web/app/immutable/chunks/{fXwGuYzr.js → kPyUfani.js} +1 -1
- package/web/app/immutable/chunks/{B0O5mhBM.js → mnnjJoDI.js} +1 -1
- package/web/app/immutable/chunks/{DQAJLaJ3.js → nHwpsxWy.js} +1 -1
- package/web/app/immutable/chunks/{y-lOZYhA.js → p0fS0rJD.js} +1 -1
- package/web/app/immutable/chunks/{BY16_RoT.js → q9cUG1dc.js} +1 -1
- package/web/app/immutable/chunks/{CYYyuCBb.js → qu0QpfUw.js} +1 -1
- package/web/app/immutable/chunks/{CQ6jYKtE.js → reP1x2hx.js} +1 -1
- package/web/app/immutable/chunks/{mF8ZdCMN.js → thdnIk1K.js} +1 -1
- package/web/app/immutable/chunks/tw85acZN.js +177 -0
- package/web/app/immutable/chunks/{BBiqqybB.js → wfSdTH77.js} +1 -1
- package/web/app/immutable/chunks/{Dtveg46I.js → wqzy1XTy.js} +1 -1
- package/web/app/immutable/chunks/{DCTwUEO7.js → xJBWkpxc.js} +1 -1
- package/web/app/immutable/chunks/{1Wzdy1K8.js → z1Wv0MVw.js} +6 -6
- package/web/app/immutable/chunks/{DinWeICM.js → zK-Wn6qa.js} +1 -1
- package/web/app/immutable/chunks/{C7TJE1vk.js → zaxjdjiF.js} +1 -1
- package/web/app/immutable/chunks/{DkkEizQf.js → zzl2tBQf.js} +1 -1
- package/web/app/immutable/entry/{app.B-3yrq60.js → app.CVv4zmJ_.js} +3 -3
- package/web/app/immutable/entry/start.CiYvv3YQ.js +1 -0
- package/web/app/immutable/nodes/{0.Dr7z-ndg.js → 0.Cb_UZQTB.js} +1 -1
- package/web/app/immutable/nodes/{1.DszvgcVt.js → 1.B0kBQ96l.js} +1 -1
- package/web/app/immutable/nodes/{10.mpjVYgcT.js → 10.CGIePvim.js} +5 -5
- package/web/app/immutable/nodes/{11.d9OIWvmS.js → 11.DcWpM7Yi.js} +1 -1
- package/web/app/immutable/nodes/{12.hNKUSgvY.js → 12.S6PrlAwz.js} +1 -1
- package/web/app/immutable/nodes/{13.NTcuwB8X.js → 13.Bs_o-uwb.js} +1 -1
- package/web/app/immutable/nodes/{14.C4hEzDzc.js → 14.CIZDoMeA.js} +3 -3
- package/web/app/immutable/nodes/{15.BGv16BME.js → 15.DDtIC3Hq.js} +1 -1
- package/web/app/immutable/nodes/{16.BLKEYdtz.js → 16.BgJmXimX.js} +1 -1
- package/web/app/immutable/nodes/{17.Cw1VnAlL.js → 17.BWRlIYI7.js} +1 -1
- package/web/app/immutable/nodes/{18.BC2tc74_.js → 18.BV2orlA1.js} +1 -1
- package/web/app/immutable/nodes/{19.BLf_cCOa.js → 19.B1-CCqHR.js} +2 -2
- package/web/app/immutable/nodes/{2.DT49t-u_.js → 2.CAFqSYBH.js} +4 -4
- package/web/app/immutable/nodes/{20.CAN0HPlm.js → 20.DLg8hCzP.js} +1 -1
- package/web/app/immutable/nodes/{3.CHLlivF3.js → 3.CNcHr_kX.js} +1 -1
- package/web/app/immutable/nodes/{4.D2tKSs2v.js → 4.BzoidTar.js} +1 -1
- package/web/app/immutable/nodes/{5.B9Lx7aa1.js → 5.vAApKfTG.js} +1 -1
- package/web/app/immutable/nodes/{6.BXEdmXk5.js → 6.D2VrWob4.js} +1 -1
- package/web/app/immutable/nodes/{7.Cg1blkaN.js → 7.cIi2v_en.js} +1 -1
- package/web/app/immutable/nodes/{8.B5g4h2T5.js → 8.DVH30a1F.js} +1 -1
- package/web/app/immutable/nodes/{9.CQeYWw6-.js → 9.AUZxhWIX.js} +4 -4
- 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/B6sO6A0G.js +0 -1
- package/web/app/immutable/chunks/BSev9KPj.js +0 -1
- package/web/app/immutable/chunks/Bv8Gaorn.js +0 -1
- package/web/app/immutable/chunks/CAEqRKhy.js +0 -1
- package/web/app/immutable/chunks/Dr4PDf9D.js +0 -6
- package/web/app/immutable/chunks/EZ4dI6hS.js +0 -177
- package/web/app/immutable/entry/start.DZZRsHd3.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Z as Q,n as j,aA as J,ax as X,aI as z,w as $,b as Y}from"./
|
|
1
|
+
import{Z as Q,n as j,aA as J,ax as X,aI as z,w as $,b as Y}from"./DkYquFOp.js";import{Jr as l,nW as m,nX as C,JA as P,br as O,a3 as Z,nJ as _,rO as q,sa as ee,kp as te,s8 as W,JV as M,rt as ne,fU as K,rP as F,a5 as se,bp as oe,m as ie}from"./BPo1GPk4.js";import{m as x,a0 as re,l as ae}from"./CMgAi196.js";import{g as U}from"./DypB-Dwi.js";const ce=["[WORKSPACE EVENTS]","[TASK WAKE]","[AGENT MESSAGE]"];function de(e){const t=e.metadata;if(t&&typeof t=="object"){if(t.type==="question_answers")return!1;if(!Q(t))return!0}const n=j(e);return ce.some(s=>n.startsWith(s))}const L=1440*60*1e3;function le(e){let t=null;for(const n of e){if(de({id:n.id,timestamp:n.createdAt,metadata:n.metadata,contentBlocks:[{type:"text",text:n.preview.trimStart()}]}))continue;const s=Date.parse(n.createdAt);Number.isFinite(s)&&(t===null||s>t)&&(t=s)}return t}const ue=50,ge=20;function D(e,t){return e===null||t!==null&&t>e?t:e}async function De(e,t){let n,s=null;for(let i=0;i<ge;i++){const r=await e({limit:ue,nextToken:n});if(!r.ok)return null;const d=r.items;s===null&&d.length>0&&(s=d[d.length-1].id);const c=t?.newestId!=null?d.findIndex(a=>a.id===t.newestId):-1,o=le(c>=0?d.slice(c+1):d);if(c>=0)return{latest:D(o,t?.latest??null),newestId:s};if(o!==null)return{latest:D(o,t?.latest??null),newestId:s};if(typeof r.nextToken!="string")return{latest:null,newestId:s};n=r.nextToken}return{latest:t?.latest??null,newestId:s}}function E(e,t){return e!=null&&e<=t&&e>t-L}function fe(e,t){return e!=null&&Number.isFinite(e)&&e>0&&e<=t-L}function pe(e,t){const{workspaceId:n,agentId:s,authority:i,nativePairId:r,evidence:d}=e;if(!n||!s||!i||i!==t)return null;const c=JSON.stringify([n,s]);if(r!==c||d?.id!==c)return null;const o=d.clips.find(a=>a.status==="recording");return!o||o.discarding||!Number.isFinite(o.startedAt)||!Number.isFinite(o.pausedMs??0)||o.pausedAt!=null&&!Number.isFinite(o.pausedAt)?null:{workspaceId:n,agentId:s,clipId:o.id,startedAt:o.startedAt,pausedAt:o.pausedAt??null,pausedMs:o.pausedMs??0}}function Ee(e,t){return t!==void 0&&e!==t?"ignore":e?"stop":"start"}const Ne=l.createSelector(e=>{const t=e.dockConversation,n=t.workspaceId&&t.agentId?JSON.stringify([t.workspaceId,t.agentId]):null;return pe({workspaceId:t.workspaceId,agentId:t.agentId,authority:t.authority,nativePairId:t.nativeSpeech.pairId,evidence:n?m(t.evidence,n):null},U(e))});l.createSelector(e=>e.hud.active);l.createSelector(e=>e.hud.feed);l.createSelector(e=>e.hud.usage);l.createSelector(e=>e.hud.usageError);const He=l.createSelector(e=>e.hud.rateHistory),Pe=l.createSelector(e=>C(e.workspace.workspaces)),qe=l.createSelector(e=>{const t=e.hud.usage?.totals;return t?P(t):0}),Ke=l.createSelector(e=>e.hud.burnRatePerMin),Fe=l.createSelector(e=>e.hud.burnTrend),xe=l.createSelector(e=>{const{health:t,stats:n,lastUpdated:s,hostLocality:i}=e.daemonHealth,r=n?.hostname;return{online:t!=="down",uptimeSeconds:typeof n?.uptimeSeconds=="number"?n.uptimeSeconds:null,version:n?.version??null,fetchedAtMs:s?Date.parse(s):null,remoteHostname:i==="remote"&&r?r.split(".",1)[0]??r:null}}),Ue=l.createSelector(e=>e.hud.gridFilter);l.createSelector(e=>e.hud.attentionByWorkspaceId);const Le=l.createSelector((e,t)=>{const n=e.hud?.questionsByAgentId?.[t];if(!n)return!1;const s=e.agentSessions?.byAgentId[t]?.metadata??{};return!x(s,n.messageId)}),Ge=l.createSelector(e=>e.hud.takeoverRequestWorkspaceId);function ke(e,t){return t[String(e.id)]??e.displayStatus}const S=l.createSelector(e=>{const t=e.hud.displayStatusByWorkspaceId;return C(e.workspace.workspaces).filter(n=>n.status!==O.Archived&&n.status!==O.Retired&&n.status!==O.Deleted).map(n=>{const s=ke(n,t);return s&&s!==n.displayStatus?{...n,displayStatus:s}:n})});function w(e){const t=e.agentSummary;return!t||!Array.isArray(t.agents)?[]:t.agents.filter(n=>!!n&&typeof n=="object"&&typeof n.id=="string"&&n.status!=="deleted"&&!ae(n.id))}const Ve=l.createSelector(e=>{const t=Object.fromEntries(Z.map(n=>[n,0]));for(const n of S.select(e))for(const s of w(n))t[I(e,s).bucket]+=1;return t}),Qe=l.createSelector(e=>{const t={idle:0,unread:0,progress:0,attention:0,waiting:0,prOpen:0,prMerged:0,failed:0,completed:0,total:0};for(const n of B.select(e))switch(t.total+=1,n.isUnread&&(t.unread+=1),n.isWaiting&&(t.waiting+=1),n.stateKey){case"wait":case"blocked":t.attention+=1;break;case"failed":t.failed+=1;break;case"in_progress":t.progress+=1;break;case"complete":t.completed+=1;break;case"pr_open":case"pr_ready":case"pr_queued":t.prOpen+=1;break;case"pr_merged":t.prMerged+=1;break;default:t.idle+=1}return t}),Se=l.createSelector(e=>{const t={};for(const n of S.select(e))for(const s of w(n))typeof s.name=="string"&&s.name.length>0&&(t[s.id]=s.name);return t});function N(e){if(!e.sinceTs)return 0;const t=Date.parse(e.sinceTs);return Number.isFinite(t)?t:0}const je=l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId,n=e.hud.questionsByAgentId,s=[];for(const i of S.select(e)){const r=String(i.id);let d=!1;for(const o of v(i,e)){const{bucket:a,attentionKind:u,hasQuestion:g}=o;if(a!=="needs-attention"&&a!=="failed"||!o.topLevel||o.isBackground||h(e,o.id))continue;const k=g?n[o.id]:void 0,f=u?_(e.agentSessions?.byAgentId[o.id])?.reason:void 0,p=k?"question":u??void 0;s.push({workspaceId:r,workspaceTitle:i.title,kind:a==="needs-attention"?"agent_waiting":"agent_failed",...a==="needs-attention"&&p?{signal:p}:{},agentName:o.name,message:k?.question??f??null,sinceTs:o.lastActivityTs}),d=!0}const c=t[r];c&&q(c.attention)&&(s.push({workspaceId:r,workspaceTitle:i.title,kind:"workspace_attention",attention:c.attention,message:null,sinceTs:c.raisedAtTs}),d=!0),G.has(b(i))&&!d&&s.push({workspaceId:r,workspaceTitle:i.title,kind:"workspace_attention",message:null,sinceTs:null})}return s.sort((i,r)=>N(r)-N(i))}),Je=l.createSelector(e=>{const t=Se.select(e);return e.hud.feed.map(n=>({...n,workspaceTitle:m(e.workspace.workspaces,n.source)?.title??null,resolvedAgentName:n.agentName??(n.agentId?t[n.agentId]??null:null)}))}),Ae={total:0,completed:0,inProgress:0};function b(e){const t=ee(e.displayStatus)?e.displayStatus:"not_started";return te(t)??"not_started"}const G=new Set(["wait","blocked","failed"]);function he(e,t,n){if(t==="failed"){const i=n.find(d=>d.bucket==="failed"&&!h(e,d.id)),r=i?e.agentSessions?.byAgentId[i.id]?.stopReason:null;return{kind:"failed",text:typeof r=="string"&&r.length>0?r:""}}if(t!=="wait"&&t!=="blocked")return null;const s=n.filter(i=>i.topLevel&&!i.isBackground&&!h(e,i.id));for(const i of s){if(!i.hasQuestion)continue;const r=e.hud.questionsByAgentId[i.id];if(r?.question)return{kind:"question",text:r.question}}for(const i of["blocker","discussion"])for(const r of s){if(r.attentionKind!==i)continue;const d=e.agentSessions?.byAgentId[r.id],c=_(d)?.reason;if(c)return{kind:i,text:c}}return{kind:"pending",text:""}}const y=new Set(["running","needs-attention","failed"]);function H(e){const t=typeof e.lastActivity=="string"?Date.parse(e.lastActivity):NaN;return Number.isFinite(t)?t:-1/0}function me(e){const t=n=>{const s=e.get(n.id)?.bucket;return s!==void 0&&y.has(s)?0:1};return(n,s)=>{const i=n.specialist==="spec-writer",r=s.specialist==="spec-writer";if(i!==r)return i?-1:1;const d=t(n)-t(s);if(d!==0)return d;const c=H(n),o=H(s);return c!==o?o-c:n.id<s.id?-1:n.id>s.id?1:0}}function ye(e,t){const n=new Set(e.map(o=>o.id)),s=new Map,i=[];for(const o of e){const a=typeof o.parentAgentId=="string"&&o.parentAgentId!==o.id&&n.has(o.parentAgentId)?o.parentAgentId:null;if(a){const u=s.get(a)??[];u.push(o),s.set(a,u)}else i.push(o)}i.sort(t);for(const o of s.values())o.sort(t);const r=[],d=new Set,c=(o,a,u)=>{if(!d.has(o.id)){d.add(o.id),r.push({info:o,depth:a,parentAgentId:u});for(const g of s.get(o.id)??[])c(g,a+1,o.id)}};for(const o of i)c(o,0,null);for(const o of e)c(o,0,null);return r}function I(e,t){const n=e.agentSessions?.byAgentId[t.id],s=n?.metadata??{},i=n?_(n)?.kind??null:null,r=n?J.select(e,t.id)||typeof n.status=="string"&&W(n.status):W(t.status),d=n?M(typeof n.status=="string"?n.status:t.status):null,c=!!n&&d!=="failed"&&d!=="done"&&(n.isWaitingForOtherAgents===!0||Array.isArray(n.waitingForAgentIds)&&n.waitingForAgentIds.length>0||Array.isArray(n.waitingOnHooks)&&n.waitingOnHooks.length>0||Array.isArray(n.waitingOnPrMonitors)&&n.waitingOnPrMonitors.length>0||Array.isArray(n.waitingOnScriptMonitors)&&n.waitingOnScriptMonitors.length>0),o=!!n&&(n.turnInFlight===!0||n.liveTurnOpen===!0);let a;n?c&&!o&&n.isStreaming!==!0&&n.isProcessing!==!0?a="idle":X.select(e,t.id)?a="running":r?a="idle":a=M(typeof n.status=="string"?n.status:t.status):a=t.isResponding===!0||t.isStreaming===!0?"running":M(t.status);const u=e.hud.questionsByAgentId[t.id],g=a!=="failed"&&!!u&&!x(s,u.messageId);return{bucket:a==="failed"?"failed":i!==null||g?"needs-attention":a,attentionKind:i,hasQuestion:g,isRunning:a==="running"}}function V(e,t){const n=i=>typeof i=="string"&&i!==e.id?i:null,s=i=>({isBackground:i?.isBackground,createdByAgentId:n(i?.createdByAgentId)});return{parentAgentId:n(e.parentAgentId)??n(t?.parentAgentId),isBackground:e.isBackground??t?.isBackground,metadata:s(t?.metadata),agentMetadata:s(t?.agentMetadata)}}function h(e,t){return e.agentSessions?.byAgentId[t]?.notificationsMuted===!0}function Ie(e){if(!e)return null;switch(e.kind){case"attention":return e.attention.reason??null;case"live-tool":case"last-tool":{const t=Y(e.toolUse.name,e.toolUse.input||{});return t.hidden?null:[t.verb,t.subject,t.path].filter(Boolean).join(" ").trim()||null}default:{const t=e.text||"";return t?t.includes(`
|
|
2
2
|
`)?$(t)||null:t:null}}}function v(e,t){const n=w(e),s=new Map(n.map(r=>[r.id,I(t,r)]));return ye(n,me(s)).map(({info:r,depth:d,parentAgentId:c})=>{const o=t.agentSessions?.byAgentId[r.id],a=V(r,o),{bucket:u,attentionKind:g,hasQuestion:k}=s.get(r.id)??I(t,r),f=Array.isArray(o?.waitingForAgentIds)?o.waitingForAgentIds.filter(p=>typeof p=="string"):[];return{id:r.id,name:r.name,bucket:u,lastActivityTs:r.lastActivity??null,line:Ie(z.select(t,r.id)),parentAgentId:c,depth:d,treePrefix:"",topLevel:K(a)==="topLevel",isBackground:ne(a),attentionKind:g,hasQuestion:k,isWaitingForAgents:o?.isWaitingForOtherAgents===!0||f.length>0||Array.isArray(o?.waitingOnHooks)&&o.waitingOnHooks.length>0||Array.isArray(o?.waitingOnPrMonitors)&&o.waitingOnPrMonitors.length>0||Array.isArray(o?.waitingOnScriptMonitors)&&o.waitingOnScriptMonitors.length>0,waitingForAgentIds:f}})}function we(e){const t=new Set;for(const i of e)for(const r of i.waitingForAgentIds)t.add(r);const n=i=>y.has(i.bucket)||i.isWaitingForAgents||t.has(i.id);return e.filter((i,r)=>{if(n(i))return!0;for(let d=r+1;d<e.length&&!(e[d].depth<=i.depth);d++)if(n(e[d]))return!0;return!1}).map((i,r,d)=>{if(i.depth===0)return{...i,treePrefix:""};let c=!0;for(let o=r+1;o<d.length&&!(d[o].depth<i.depth);o++)if(d[o].depth===i.depth){c=!1;break}return{...i,treePrefix:(i.depth>=2?"│ ":"")+(c?"└─":"├─")}})}const B=l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId,n=re.select(e);return S.select(e).map(s=>{const i=String(s.id),r=n.indexOf(i),d=t[i]?.attention??(typeof s.attention=="string"&&F(s.attention)?s.attention:null),c=v(s,e),o=b(s),a=e.tokenUsage?.byWorkspaceId[i]?.totals,u=e.workspaceTasks?.byWorkspaceId[i]?.stats,g=typeof s.statusMessage=="string"&&s.statusMessage.trim().length>0?s.statusMessage:null;return{workspaceId:i,title:s.title,repoRef:s.repositoryName?`${s.repositoryOwner?`${s.repositoryOwner}/`:""}${s.repositoryName}`:s.branch,stateKey:o,attention:d,isUnread:d===se,isWaiting:s.waiting===!0,statusMessage:g,attentionSnippet:he(e,o,c),prNumber:typeof s.prNumber=="number"?s.prNumber:null,keySlot:r===-1?null:r,tasks:u?{total:u.total,completed:u.completed,inProgress:u.inProgress}:Ae,tokens:a?P(a):0,agents:we(c)}})}),R=4;function be(e,t,n){const s=e.agentSessions?.byAgentId[n.id];return!s||String(s.workspaceId)!==t||s.pendingDeleteAt||K(V(n,s))!=="topLevel"?!1:!h(e,n.id)}const ve=l.createSelector(e=>{const t={},n=e.hud.attentionByWorkspaceId;for(const s of S.select(e)){const i=String(s.id),r=new Map,d=(f,p)=>{const A=r.get(f)??[];A.includes(p)||A.push(p),r.set(f,A)},o=w(s).filter(f=>be(e,i,f));for(const f of o){const p=I(e,f);p.bucket==="failed"?d("failed",f.name):p.hasQuestion?d("question",f.name):p.attentionKind==="blocker"?d("blocker",f.name):p.attentionKind==="discussion"&&d("discussion",f.name),p.isRunning&&d("running",f.name)}const a=b(s);a==="failed"&&!r.has("failed")&&r.set("failed",[]),a==="blocked"&&!r.has("blocker")&&r.set("blocker",[]),a==="wait"&&!r.has("question")&&!r.has("blocker")&&!r.has("discussion")&&r.set("needs_input",[]);const u=n[i]?.attention??(typeof s.attention=="string"&&F(s.attention)?s.attention:null);u==="review_required"&&r.set("review",[]),u==="unread"&&r.set("unread",[]),s.activity==="agent_running"&&!r.has("running")&&r.set("running",[]);const g=oe.flatMap(f=>{const p=r.get(f);return p?[{category:f,count:Math.max(1,p.length),agentNames:p}]:[]});if(g.length===0)continue;const k=g.length>R;t[i]={agentCount:o.length,categories:g,visibleCategories:k?g.slice(0,R-1):g,hiddenCategoryCount:k?g.length-(R-1):0}}return t});l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId;let n=0;for(const s of S.select(e)){let i=!1;for(const c of v(s,e))c.topLevel&&!c.isBackground&&!h(e,c.id)&&(c.bucket==="failed"||c.attentionKind!==null||c.hasQuestion)&&(n+=1,i=!0);const r=t[String(s.id)],d=r!==void 0&&q(r.attention);d&&(n+=1),G.has(b(s))&&!i&&!d&&(n+=1)}return n});function Te(e,t,n,s){const i=s.slice().sort((o,a)=>a.createdAt-o.createdAt);for(const o of i){const u=e.agentSessions?.byAgentId[o.agentId]?.metadata?.completionReport;if(typeof u=="string"&&u.trim().length>0)return u}const r=e.workspaceNotes?.byWorkspaceId[t]?.notes,d=r?m(r,n):void 0,c=d?.content||d?.contentPreview;return typeof c=="string"&&c.trim().length>0?c:null}const Xe=l.createSelector((e,t)=>{const n=B.select(e).find(a=>a.workspaceId===t);if(!n)return null;const s=m(e.workspace.workspaces,t),i=s?v(s,e):[],r=new Map(i.map(a=>[a.id,a])),d=e.taskAgentAssociations?.byWorkspaceId[t]?.byNoteId??{},c=e.workspaceTasks?.byWorkspaceId[t],o=c?C(c.tasks).filter(a=>a.status!=="cancelled").map(a=>{const u=Object.values(d[a.id]??{});return{id:a.id,title:a.title,status:a.status,agents:u.map(g=>r.get(g.agentId)).filter(g=>!!g),report:a.status==="complete"?Te(e,t,a.id,u):null,...a.specLinked!==void 0?{specLinked:a.specLinked}:{},...a.dependsOn?{dependsOn:a.dependsOn}:{},...a.conflictsWith?{conflictsWith:a.conflictsWith}:{},...a.unmetDependsOn?{unmetDependsOn:a.unmetDependsOn}:{}}}):[];return{workspaceId:t,title:n.title,repoRef:n.repoRef,statusMessage:n.statusMessage,keySlot:n.keySlot,stats:n.tasks,tasks:o,activeAgents:i.filter(a=>y.has(a.bucket)),idleAgents:i.filter(a=>!y.has(a.bucket))}}),Oe=new Set(["failed","blocker","question","discussion","needs_input","review"]);function Me(e){for(const t of e?.categories??[])switch(t.category){case"failed":return"failure";case"blocker":return"blocker";case"question":return"question";case"review":return"review"}return"none"}const Re=3,ze=l.createSelector((e,t="recent")=>{const n=B.select(e),s=ve.select(e),i=new Map(S.select(e).map(c=>[String(c.id),c])),r={action:[],unread:[],active:[]};for(const c of n){const o=i.get(c.workspaceId);if(!o||o.id===ie)continue;const a=e.hud.dockConversationAtByWorkspaceId[c.workspaceId];if(!E(a,e.hud.dockRecencyNow)&&!fe(a,e.hud.dockRecencyNow))continue;const u=s[c.workspaceId],g=u?.categories??[],k=g.some(T=>Oe.has(T.category)),f=c.isUnread,p=g.some(T=>T.category==="running"),A=k?"action":f?"unread":"active";r[A].push({workspace:o,badgeKind:Me(u),priorityGroup:A,isUnread:f,isRunning:p,isWaiting:c.isWaiting})}return[...r.action,...r.unread,...r.active].sort((c,o)=>e.hud.dockConversationAtByWorkspaceId[String(o.workspace.id)]-e.hud.dockConversationAtByWorkspaceId[String(c.workspace.id)]||String(c.workspace.id).localeCompare(String(o.workspace.id))).filter((c,o)=>{const a=o<Re||E(e.hud.dockConversationAtByWorkspaceId[String(c.workspace.id)],e.hud.dockRecencyNow);return t==="older"?!a:a})}),$e=l.createSelector(e=>e.hud.dockPlacement),Ye=l.createSelector(e=>e.hud.dockPlacementError),Ze=l.createSelector(e=>e.hud.dockFocusRequest),et=l.createSelector(e=>e.hud.dockCloseRequest),tt=l.createSelector(e=>e.hud.dockDragStartResult),nt=l.createSelector(e=>e.hud.dockResizeStartResult),st=l.createSelector(e=>({pending:e.hud.dockMachineSwitching,error:e.hud.dockMachineSwitchError})),ot=l.createSelector(e=>{const t=e.hud.dockEditorCompactRequest,n=e.dockConversation,s=n.workspaceId&&n.agentId?m(n.evidence,JSON.stringify([n.workspaceId,n.agentId])):null,i=!!n.nativeSpeech.activeId||!!s?.annotation||s?.clips.some(r=>r.status==="recording")||e.hardwareConsole.pttRecording||e.hardwareConsole.voiceTranscribing;return t&&!i&&e.hud.active&&t.conversationGeneration===n.generation&&t.authority===U(e)&&t.backendId===e.connections.windowBackendId&&t.workspaceId===e.dockConversation.workspaceId&&t.agentId===e.dockConversation.agentId?t:null});export{Pe as A,Qe as B,ve as C,et as a,tt as b,ot as c,Ze as d,st as e,$e as f,Ye as g,Ne as h,de as i,nt as j,ze as k,Le as l,Ve as m,je as n,Ke as o,Fe as p,Je as q,Ee as r,De as s,Ue as t,He as u,xe as v,Ge as w,Xe as x,qe as y,B as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as r}from"./YqTahsxp.js";import{Jr as t}from"./BPo1GPk4.js";import{aK as o}from"./CMgAi196.js";function l(e){return!e||r().status!=="connected"?null:o.select(t.state,e)}export{l as resolveConnectedWorkspaceKeySlot};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{fU as B,Jr as n,nX as F,mn as K,me as q,tz as G}from"./
|
|
1
|
+
import{fU as B,Jr as n,nX as F,mn as K,me as q,tz as G}from"./BPo1GPk4.js";import{H as j,n as V,O as Y,e8 as $,cU as W,dH as I,dS as M,e1 as N,cP as z,aO as J}from"./DkYquFOp.js";import{selectCurrentWorkspaceTabId as X,selectWorkspaceTabsHydrated as Q}from"./BblwdMxR.js";import{t as Z}from"./BIwMjRQQ.js";function ee(e){return!e.retiredAt&&!e.pendingDeleteAt&&e.status!=="deleted"}function m(e){const t=new Date(e.lastActivity??e.updatedAt??e.createdAt).getTime()||0,s=e.messages.at(-1)?.timestamp,r=s&&new Date(s).getTime()||0;return Math.max(t,r)}function ve(e){const t=e.filter(ee).map(s=>({agent:s,activity:m(s),created:new Date(s.createdAt).getTime()||0})).sort((s,r)=>r.activity-s.activity||r.created-s.created||String(s.agent.id).localeCompare(String(r.agent.id)));return t.find(({agent:s})=>B(s)==="topLevel")?.agent??t[0]?.agent??null}const p="__chief__",E="New chat";function te(e){const t=e?.trim();return!t||t===E||t==="New chat with Assistant"||t==="New chat with Intent"||t==="Chief of Staff"||t.startsWith("New thread ")}function se(e){const t=e.name?.trim();if(e.nameExplicitlySet&&t)return t;const r=e.messages.find(l=>l.role==="user")??e.messages[0],c=r?(r.role==="user"?j(r):V(r)).trim():"";return!t||te(t)?c||E:c||t}const re="chief-of-staff",ne=6,T="## Assistant Runtime Identity\n\nYou are Intent's built-in Assistant. Operate at the app level with `ws.app.*` tools: manage workspaces, settings, specialists, navigation, and cross-workspace agents. You are not a repository coding agent. Treat generic coding-agent, workspace, spec, task, and delegation instructions as subordinate to this role.\n\nWhen the user requests repository work, create or open the appropriate workspace and hand the work to the appropriate specialist. Once you have enough repository or PR information, act through the app-level proposal flow instead of merely promising to verify, prepare, or hand off the work.\n\nShow workspaces, notes, files, agent conversations and repository links beside your conversation when they help the user. Share ordinary Markdown links to notes (intent://local/note/<noteId> or intent://local/<workspaceId>/note/<noteId>) workspace links (intent://local/workspace/<workspaceId>), workspace file and agent links, and HTTPS repository URLs; clicking opens a closable content panel while keeping chat visible. To show content automatically, call `ws.app.ui.navigate` with the same link or /workspace/<workspaceId>. Calling `ws.app.workspaces.open` also shows that workspace beside chat unless the user requests a new window. Each conversation has its own panel history. Workspaces show the same detail and agent chat as Home’s Workspaces tab. Earlier content remains available in that conversation’s panel header picker. Creating a note alone does not open it: explicitly navigate when you want to show it.\n\nWhen the user asks to transfer a project between devices, find the source workspace with `ws.app.workspaces.list` and call `ws.app.workspaces.transfer(id, { destination })`. Pass the user's destination name as the hint, or omit it so they can choose a saved device in the inline card. The source is the device serving this assistant conversation. The tool only proposes the transfer: wait for approval or cancellation in the card, and report completion only after the proposal is applied.";function ye(e){const t=e?.trim();return t?`${T}
|
|
2
2
|
|
|
3
3
|
${t}`:T}const oe=n.createSelector((e,t)=>{const s=e.backgroundHooks?.byWorkspaceId?.[t];return s?F(s.hooks):[]}),ae=n.createSelector((e,t)=>e.backgroundHooks?.byWorkspaceId?.[t]?.snapshotStatus??"loading"),L=n.createSelector((e,t)=>e.scriptMonitor?.byWorkspaceId[t]??K),Ce=n.createSelector((e,t,s)=>{const r=L.select(e,t);return r.status==="unsupported"?[]:r.monitors.filter(c=>c.agentId===s)}),u=n.createSelector((e,t,s)=>{const r=G(t,s);return e.agentSubscriptionUI.entries[r]??q}),ce=n.createSelector((e,t,s)=>u.select(e,t,s).subscriptions),ie=n.createSelector((e,t,s)=>u.select(e,t,s).eventSubscriptions??[]),le=n.createSelector((e,t,s)=>u.select(e,t,s).delegationGroups),Te=n.createSelector((e,t,s)=>u.select(e,t,s).agentStatuses),We=n.createSelector((e,t,s)=>u.select(e,t,s).waitingState),Me=n.createSelector((e,t,s)=>u.select(e,t,s).wokenUpInfo);function de(e){return[...new Set(e.filter(Boolean))]}const Ne=n.createSelector((e,t,s)=>{const r=u.select(e,t,s),c=[],l=new Set,i=o=>{for(const a of de(o))l.has(a)||(l.add(a),c.push(a))},h=[...r.subscriptions].sort((o,a)=>o.createdAt.localeCompare(a.createdAt)||o.id.localeCompare(a.id));for(const o of h)o.delegationGroup?.awaitMode!=="all"&&i(o.actorIds);const g=new Map;for(const o of r.delegationGroups)o.awaitMode==="all"&&g.set(o.groupId,o);for(const o of g.values())i(o.expectedAgentIds);for(const o of h){const a=o.delegationGroup;a?.awaitMode==="all"&&!g.has(a.groupId)&&i(a.expectedAgentIds)}const d=new Set;for(const o of r.delegationGroups){for(const a of o.completedAgentIds)d.add(a);for(const a of o.deletedAgentIds)d.add(a);for(const[a,f]of Object.entries(o.agentStatuses))f==="completed"&&d.add(a)}for(const[o,a]of Object.entries(r.agentStatuses))a==="completed"&&d.add(o);const b=e.agentSessions?.byAgentId??{},A=new Set([...d].filter(o=>{const a=b[o];return!a||!Y($(a))})),v=new Map(c.map((o,a)=>[o,a])),y=o=>{const a=b[o];if(!a)return 2;if(a.attentionRequestKind==="blocker")return 0;if(a.attentionRequestKind==="discussion")return 1;if(A.has(o))return 4;const f=String(a.status).toLowerCase();return f==="responding"||f==="active"||f==="processing"?2:3},C=c.filter(o=>!A.has(o)).sort((o,a)=>y(o)-y(a)||(v.get(o)??0)-(v.get(a)??0));return{visible:r.snapshotStatus==="failed"||r.waitingState==="completed"||c.length>0||r.wokenUpInfo!==null,count:C.length,participantAgentIds:C}}),Ee=n.createSelector((e,t,s)=>u.select(e,t,s).snapshotStatus),Le=n.createSelector((e,t)=>{const s=`${t}:`,r=[];for(const c of Object.keys(e.agentSubscriptionUI.entries))c.startsWith(s)&&r.push(c.slice(s.length));return r});n.createSelector((e,t,s)=>{const r=le.select(e,t,s);let c=0,l=0;for(const i of r)c+=i.expectedAgentIds.length,l+=i.completedAgentIds.length+i.deletedAgentIds.length;return{total:c,completed:l}});const Oe=n.createSelector(e=>{const t=X.select(e);if(!t||!Q.select(e))return[];const s=new Set;for(const r of Z.select(e,t)){const c=r.panes.find(l=>l.id===r.activePaneId);c?.type==="agent"&&c.agentId&&s.add(c.agentId)}return[...s].map(r=>({wsId:t,agentId:r}))}),O="pinned",pe=64;function k(e){return e.trim().toLocaleLowerCase()}function P(e){return e===O}function Pe(e,t){const s=e.trim();if(s.length===0)return{ok:!1,error:"empty"};if([...s].length>pe)return{ok:!1,error:"tooLong"};const r=k(s);return r===O?{ok:!1,error:"reserved"}:t.some(c=>k(c)===r)?{ok:!1,error:"duplicate"}:{ok:!0,label:s}}function ue(e){const t=new Map;for(const s of e){if(typeof s!="string"||P(s))continue;const r=s.trim();if(r.length===0)continue;const c=k(r);t.has(c)||t.set(c,s)}return[...t.values()].sort((s,r)=>s.localeCompare(r,void 0,{sensitivity:"base"}))}function R(e){const s=e.workspaceAgents?.byWorkspaceId?.[p]?.agentIds,r=s&&s.length>0?new Set(s.map(i=>String(i))):null,c=e.agentSessions?.agentIdsByWorkspace?.[p]??[],l=c.length>0?c.map(i=>e.agentSessions?.byAgentId?.[i]).filter(i=>!!i):Object.values(e.agentSessions?.byAgentId??{}).filter(i=>i.workspaceId===p);return r?l.filter(i=>r.has(String(i.id))):l}function _(e){return e.metadata?.specialist===re&&e.metadata?.chiefPromptVersion===ne}function D(e){return Math.max(e.messages.length,e.messageCount??0)}function S(e){return{agentId:e.id,title:se(e),isActive:e.isStreaming===!0||e.isProcessing===!0||e.isResponding===!0,messageCount:D(e),pinned:e.pinned===!0,retired:!!e.retiredAt}}function w(e){return R(e).filter(t=>!t.retiredAt)}function H(e,t){return m(t)-m(e)}function U(e,t){const s=r=>new Date(r.lastActivity??r.updatedAt??r.createdAt).getTime()||0;return s(t)-s(e)}const Re=n.createSelector(e=>e.sidebarNav.panelItem),_e=n.createSelector(e=>e.sidebarNav.onboardingActive),De=n.createSelector(e=>e.sidebarNav.showCreateModal),He=n.createSelector(e=>e.sidebarNav.createModalUsesHomeRepository),Ue=n.createSelector(e=>e.sidebarNav.createModalPrefillRequest),x=n.createSelector(e=>W.select(e)?.capabilities.workspaceLabels===1),xe=n.createSelector((e,t)=>I.select(e,t)?.label??null),Be=n.createSelector(e=>ue(M.select(e).map(t=>t.label))),ge=["id","label"],Fe=n.createSelector((e,t)=>x.select(e)&&N.select(e,t,ge)!==null),fe=n.createSelector(e=>W.select(e)?.capabilities.workspaceAutoArchiveOptOut===1),he=n.createSelector(e=>(e.sidebarNav.autoArchiveIdleAfterDays??0)>0),Ke=n.createSelector((e,t)=>I.select(e,t)?.autoArchiveDisabled===!0),Se=["id","autoArchiveDisabled"],qe=n.createSelector((e,t)=>{if(!fe.select(e)||!he.select(e))return!1;const s=I.select(e,t);return!s||s.isRemote===!0||s.environmentConfig?.type==="remote"?!1:N.select(e,t,Se)!==null}),Ge=n.createSelector(e=>e.sidebarNav.pinnedWorkspaceIds),je=n.createSelector(e=>x.select(e)?M.select(e).filter(t=>P(t.label)).map(t=>t.id):e.sidebarNav.pinnedWorkspaceIds),Ve=n.createSelector((e,t)=>e.sidebarNav.multiSelectSelectedTabIdsByWorkspaceId[t]??["overview"]),Ye=n.createSelector((e,t)=>e.sidebarNav.noteOrderByWorkspaceId[t]??[]),$e=n.createSelector((e,t)=>e.sidebarNav.collapsedNoteIdsByWorkspaceId[t]??[]),ze=n.createSelector((e,t)=>e.sidebarNav.expandedNoteIdsByWorkspaceId?.[t]??[]),Je=n.createSelector(e=>e.sidebarNav.chiefActiveAgentId),Xe=n.createSelector((e,t)=>{const s=e.agentSessions.byAgentId[t];if(s?.workspaceId!==p)return{hooks:0,monitors:0,subscriptions:0};const r=ae.select(e,p)==="ready"?oe.select(e,p).filter(d=>d.agentId===t&&(d.state==="scheduled"||d.state==="running")).length:s.waitingOnHooks?.length??0,c=z.select(e,p)==="ready"?J.select(e,p,t).filter(d=>d.state==="active").length:s.waitingOnPrMonitors?.length??0,l=L.select(e,p),i=l.status==="unsupported"?0:l.status==="ready"?l.monitors.filter(d=>d.agentId===t&&d.state==="active").length:s.waitingOnScriptMonitors?.length??0,h=s.isWaitingForOtherAgents===!1?0:s.waitingForAgentIds?.length??(ce.select(e,p,t).length||(s.isWaitingForOtherAgents?1:0)),g=ie.select(e,p,t).filter(d=>d.subscriberAgentId===t).length;return{hooks:r,monitors:c+i,subscriptions:h+g}}),Qe=n.createSelector(e=>e.sidebarNav.statsOverlayOpen),me=n.createSelector(e=>w(e).sort((t,s)=>+(s.pinned===!0)-+(t.pinned===!0)||U(t,s)).map(S)),ke=n.createSelector(e=>R(e).filter(t=>!!t.retiredAt).sort(U).map(S)),Ze=n.createSelector(e=>[...me.select(e),...ke.select(e)]),et=n.createSelector(e=>{const t=w(e).filter(_).sort(H)[0];return t?S(t):null}),tt=n.createSelector(e=>{const t=w(e).filter(s=>D(s)===0&&!s.lastMessageId&&_(s)).sort(H)[0];return t?S(t):null});export{_e as A,Re as B,ne as C,E as D,je as E,ke as F,tt as G,L as H,De as I,Qe as J,Ee as K,Le as L,We as M,Me as N,Ke as O,O as P,$e as Q,ze as R,xe as S,Be as T,Ye as U,Pe as V,pe as W,re as a,p as b,ye as c,ee as d,Ne as e,Te as f,ce as g,Ze as h,P as i,Xe as j,oe as k,ae as l,qe as m,Fe as n,Je as o,me as p,Ue as q,ve as r,Ce as s,He as t,et as u,le as v,Oe as w,x,Ge as y,Ve as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as p,ay as C,aX as H,W as _,r as q,a6 as G,B as U,aV as j,X as K}from"./
|
|
1
|
+
import{b as p,ay as C,aX as H,W as _,r as q,a6 as G,B as U,aV as j,X as K}from"./1_Sb4Kkv.js";var A="",M="",O="",D=[],b=new Map,v=p(e=>j(e,K()),"sanitizeText"),y=p(e=>{switch(e.type){case"terminal":return{...e,value:v(e.value)};case"nonterminal":return{...e,name:v(e.name)};case"sequence":return{...e,elements:e.elements.map(y)};case"choice":return{...e,alternatives:e.alternatives.map(y)};case"optional":return{...e,element:y(e.element)};case"repetition":return{...e,element:y(e.element),separator:e.separator?y(e.separator):void 0};case"special":return{...e,text:v(e.text)}}},"sanitizeAstNode"),J=p(()=>{A="",M="",O="",D.length=0,b.clear(),q(),C.debug("[Railroad] Database cleared")},"clear"),Y=p(e=>{A=v(e),C.debug("[Railroad] Title set:",e)},"setTitle"),P=p(()=>A,"getTitle"),Q=p(e=>{const i={...e,name:v(e.name),definition:y(e.definition),comment:e.comment?v(e.comment):void 0};C.debug("[Railroad] Adding rule:",i.name),b.has(i.name)&&C.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),D.push(i),b.set(i.name,i)},"addRule"),Z=p(()=>D,"getRules"),V=p(e=>b.get(e),"getRule"),ee=p(e=>{M=v(e).replace(/^\s+/g,""),C.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),te=p(()=>M,"getAccTitle"),re=p(e=>{O=v(e).replace(/\n\s+/g,`
|
|
2
2
|
`),C.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),ie=p(()=>O,"getAccDescription"),ae=Y,ne=P,oe={clear:J,setTitle:Y,getTitle:P,addRule:Q,getRules:Z,getRule:V,setAccTitle:ee,getAccTitle:te,setAccDescription:re,getAccDescription:ie,setDiagramTitle:ae,getDiagramTitle:ne},f={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},le=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,se=/^[\w "',.-]+$/,de=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),L=p(e=>e?Object.keys(e).every(i=>i==="railroad"||de.has(i)):!1,"isRailroadStyleOptions"),ce=p(e=>e?"railroad"in e&&e.railroad?e.railroad:L(e)?e:{}:{},"extractRailroadOverrides"),me=p(e=>{if(!e||L(e))return{};const{railroad:i,svgId:n,theme:a,look:t,...r}=e;return r},"extractThemeOverrides"),m=p((e,i)=>{if(typeof e!="string")return i;const n=e.trim();return le.test(n)?n:i},"sanitizeColorValue"),X=p((e,i)=>{if(typeof e!="string")return i;const n=e.trim();return se.test(n)?n:i},"sanitizeFontFamilyValue"),F=p((e,i)=>{const n=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(n)&&n>=0?n:i},"sanitizeNumberValue"),he=p(e=>{const i=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(i)&&i>0?i:void 0},"parseThemeFontSize"),pe=p(e=>{const i=X(e.fontFamily,f.fontFamily),n=he(e.fontSize)??f.fontSize;return{...f,fontFamily:i,fontSize:n,terminalFill:m(e.secondBkg??e.secondaryColor,f.terminalFill),terminalStroke:m(e.secondaryBorderColor??e.lineColor,f.terminalStroke),terminalTextColor:m(e.secondaryTextColor??e.textColor,f.terminalTextColor),nonTerminalFill:m(e.mainBkg??e.background,f.nonTerminalFill),nonTerminalStroke:m(e.primaryBorderColor??e.lineColor,f.nonTerminalStroke),nonTerminalTextColor:m(e.primaryTextColor??e.textColor,f.nonTerminalTextColor),lineColor:m(e.lineColor,f.lineColor),markerFill:m(e.lineColor,f.markerFill),commentFill:m(e.labelBackground??e.tertiaryColor,f.commentFill),commentStroke:m(e.tertiaryBorderColor??e.lineColor,f.commentStroke),commentTextColor:m(e.tertiaryTextColor??e.textColor,f.commentTextColor),specialFill:m(e.tertiaryColor??e.secondaryColor,f.specialFill),specialStroke:m(e.tertiaryBorderColor??e.secondaryBorderColor,f.specialStroke),ruleNameColor:m(e.titleColor??e.textColor,f.ruleNameColor)}},"buildThemeDefaults"),E=p(e=>{const i=_(),n={...G(),...i.themeVariables??{},...me(e)},a=pe(n),t={...i.railroad??{},...ce(e)};return{compactMode:t.compactMode??a.compactMode,padding:F(t.padding,a.padding),verticalSeparation:F(t.verticalSeparation,a.verticalSeparation),horizontalSeparation:F(t.horizontalSeparation,a.horizontalSeparation),arcRadius:F(t.arcRadius,a.arcRadius),fontSize:F(t.fontSize,a.fontSize),fontFamily:X(t.fontFamily,a.fontFamily),terminalFill:m(t.terminalFill,a.terminalFill),terminalStroke:m(t.terminalStroke,a.terminalStroke),terminalTextColor:m(t.terminalTextColor,a.terminalTextColor),nonTerminalFill:m(t.nonTerminalFill,a.nonTerminalFill),nonTerminalStroke:m(t.nonTerminalStroke,a.nonTerminalStroke),nonTerminalTextColor:m(t.nonTerminalTextColor,a.nonTerminalTextColor),lineColor:m(t.lineColor,a.lineColor),strokeWidth:F(t.strokeWidth,a.strokeWidth),markerFill:m(t.markerFill,a.markerFill),commentFill:m(t.commentFill,a.commentFill),commentStroke:m(t.commentStroke,a.commentStroke),commentTextColor:m(t.commentTextColor,a.commentTextColor),specialFill:m(t.specialFill,a.specialFill),specialStroke:m(t.specialStroke,a.specialStroke),ruleNameColor:m(t.ruleNameColor,a.ruleNameColor),showMarkers:t.showMarkers??a.showMarkers,markerRadius:F(t.markerRadius,a.markerRadius)}},"buildRailroadStyleOptions"),Te=p(e=>{const{fontFamily:i,fontSize:n,terminalFill:a,terminalStroke:t,terminalTextColor:r,nonTerminalFill:o,nonTerminalStroke:g,nonTerminalTextColor:l,lineColor:s,strokeWidth:h,markerFill:u,commentFill:c,commentStroke:w,commentTextColor:d,specialFill:T,specialStroke:z,ruleNameColor:S}=E(e);return`
|
|
3
3
|
.railroad-diagram {
|
|
4
4
|
font-family: ${i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as O}from"./
|
|
1
|
+
import{d as O}from"./CjK2zm52.js";function b(a,{from:t,to:r},p={}){var{delay:u=0,duration:n=i=>Math.sqrt(i)*120,easing:y=O}=p,s=getComputedStyle(a),d=s.transform==="none"?"":s.transform,[h,v]=s.transformOrigin.split(" ").map(parseFloat);h/=a.clientWidth,v/=a.clientHeight;var c=W(a),f=a.clientWidth/r.width/c,g=a.clientHeight/r.height/c,x=t.left+t.width*h,m=t.top+t.height*v,w=r.left+r.width*h,S=r.top+r.height*v,l=(x-w)*f,o=(m-S)*g,$=t.width/r.width,z=t.height/r.height;return{delay:u,duration:typeof n=="function"?n(Math.sqrt(l*l+o*o)):n,easing:y,css:(i,e)=>{var C=e*l,q=e*o,H=i+e*$,M=i+e*z;return`transform: ${d} translate(${C}px, ${q}px) scale(${H}, ${M});`}}}function W(a){if("currentCSSZoom"in a)return a.currentCSSZoom;for(var t=a,r=1;t!==null;)r*=+getComputedStyle(t).zoom,t=t.parentElement;return r}export{b as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as V,bo as q,bm as H,bw as F,bq as dt,b as G,bs as nt}from"./
|
|
1
|
+
import{t as V,bo as q,bm as H,bw as F,bq as dt,b as G,bs as nt}from"./1KDVFF23.js";import{bs as K,cd as lt,ca as j,c5 as ct,a5 as B,be as D,b$ as J,b_ as h,bO as _,W as l,bH as M,aD as e,bS as T,bA as C,bn as N,bV as it,aA as R,c9 as u,aB as b,bl as S,ay as pt}from"./3SdAC2_C.js";import{i as L}from"./Zg9SWWIQ.js";import{C as ut}from"./DzTe1W0Z.js";import{f as U}from"./DPbnmxjX.js";import"./BpT_ybtH.js";import{k as bt}from"./B6Zf-ZTX.js";import{Jr as P,dB as vt,dz as kt,dC as _t}from"./BPo1GPk4.js";var gt=b('<p class="p-2 text-xs text-subtle" data-testid="hook-script-content-too-large"> </p>'),mt=b('<div class="min-h-0 min-w-0 flex-1 overflow-auto" data-testid="hook-script-content-script"><!></div>'),ft=b('<span class="text-xs font-medium text-danger"> </span> <pre class="whitespace-pre-wrap break-all rounded bg-danger-background/10 p-2 font-mono text-xs text-danger"> </pre>',1),ht=b('<pre class="whitespace-pre-wrap break-all rounded bg-muted/40 p-2 font-mono text-xs text-subtle"> </pre>'),xt=b('<p class="text-xs text-subtle"> </p>'),wt=b('<div class="flex min-h-0 min-w-0 flex-1 flex-col gap-2 overflow-auto" data-testid="hook-script-content-logs"><!> <!></div>'),It=b('<div class="flex h-full min-h-0 min-w-0 flex-col gap-3 overflow-hidden" data-testid="hook-script-content"><div class="flex shrink-0 border-b border-border" role="tablist"><!> <!></div> <!></div>');function Q(x,c){if(new.target)return V({component:Q,...x});K(c,!0);const g=()=>nt($,"$hooks$",w),[w,E]=dt();let s=q(c,"workspaceId",7),I=q(c,"hookId",7);const d=lt(s());j(()=>d.set(s()));const $=bt(d),v=u(()=>g().find(t=>t.hookId===I()));j(()=>{if(!s())return;const t=s();return ct(()=>{P.dispatch(vt(t)),P.dispatch(kt(t))}),()=>P.dispatch(_t(t))});let k=it("script");var X={get workspaceId(){return s()},set workspaceId(t){s(t),R()},get hookId(){return I()},set hookId(t){I(t),R()},$set:F,$on:(t,r)=>G(c,t,r)},z=It(),A=B(z),W=B(A);{let t=u(()=>e(k)==="script"),r=u(()=>e(k)==="script"?"border-primary-ink text-primary-ink":"border-transparent text-subtle");U(W,{variant:"ghost",role:"tab",get"aria-selected"(){return e(t)},get class(){return`border-b-2 px-3 py-1.5 text-sm ${e(r)??""}`},onclick:()=>M(k,"script"),children:(p,y)=>{D();var i=J();h(a=>_(i,a),[()=>H.chat_backgroundHooks_modal_scriptTab_label()]),l(p,i)},$$slots:{default:!0}})}var Y=T(W,2);{let t=u(()=>e(k)==="logs"),r=u(()=>e(k)==="logs"?"border-primary-ink text-primary-ink":"border-transparent text-subtle");U(Y,{variant:"ghost",role:"tab",get"aria-selected"(){return e(t)},get class(){return`border-b-2 px-3 py-1.5 text-sm ${e(r)??""}`},onclick:()=>M(k,"logs"),children:(p,y)=>{D();var i=J();h(a=>_(i,a),[()=>H.chat_backgroundHooks_modal_logsTab_label()]),l(p,i)},$$slots:{default:!0}})}C(A);var Z=T(A,2);{var tt=t=>{var r=mt(),p=B(r);{var y=a=>{var m=gt(),o=S(m,!0);h(n=>_(o,n),[()=>H.chat_backgroundHooks_modal_codeTooLarge_description({size:(e(v).codeBytes??0).toLocaleString()})]),l(a,m)},i=a=>{{let m=u(()=>e(v)?.code??"");ut(a,{get code(){return e(m)},language:"javascript",noMargin:!0})}};L(p,a=>{e(v)?.codeOmitted?a(y):a(i,-1)})}C(r),l(t,r)},et=t=>{var r=wt(),p=B(r);{var y=o=>{var n=ft(),f=pt(n),O=S(f,!0),at=T(f,2),ot=S(at,!0);h(st=>{_(O,st),_(ot,e(v).lastError)},[()=>H.chat_backgroundHooks_modal_lastError_label()]),l(o,n)};L(p,o=>{e(v)?.lastError&&o(y)})}var i=T(p,2);{var a=o=>{var n=ht(),f=S(n,!0);h(()=>_(f,e(v).lastLogs)),l(o,n)},m=o=>{var n=xt(),f=S(n,!0);h(O=>_(f,O),[()=>H.chat_backgroundHooks_modal_noLogs_description()]),l(o,n)};L(i,o=>{e(v)?.lastLogs?o(a):o(m,-1)})}C(r),l(t,r)};L(Z,t=>{e(k)==="script"?t(tt):t(et,-1)})}C(z),l(x,z);var rt=N(X);return E(),rt}var $t=b('<div class="h-full min-h-0 min-w-0 max-w-full overflow-hidden p-4" data-testid="hook-script-panel"><!></div>');function yt(x,c){if(new.target)return V({component:yt,...x});K(c,!0);let g=q(c,"tab",7),w=q(c,"workspaceId",7);var E={get tab(){return g()},set tab(d){g(d),R()},get workspaceId(){return w()},set workspaceId(d){w(d),R()},$set:F,$on:(d,$)=>G(c,d,$)},s=$t(),I=B(s);{let d=u(()=>g().workspaceId??w()),$=u(()=>g().hookId??"");Q(I,{get workspaceId(){return e(d)},get hookId(){return e($)}})}return C(s),l(x,s),N(E)}export{yt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var cQ=Object.defineProperty;var NB=Q=>{throw TypeError(Q)};var LQ=(Q,A,B)=>A in Q?cQ(Q,A,{enumerable:!0,configurable:!0,writable:!0,value:B}):Q[A]=B;var x=(Q,A,B)=>LQ(Q,typeof A!="symbol"?A+"":A,B),CB=(Q,A,B)=>A.has(Q)||NB("Cannot "+B);var g=(Q,A,B)=>(CB(Q,A,"read from private field"),B?B.call(Q):A.get(Q)),c=(Q,A,B)=>A.has(Q)?NB("Cannot add the same private member more than once"):A instanceof WeakSet?A.add(Q):A.set(Q,B),M=(Q,A,B,E)=>(CB(Q,A,"write to private field"),E?E.call(Q,B):A.set(Q,B),B),D=(Q,A,B)=>(CB(Q,A,"access private method"),B);var HB=(Q,A,B,E)=>({set _(I){M(Q,A,I,B)},get _(){return g(Q,A,E)}});import{a3 as tQ,r as hQ,Q as jQ}from"./BjWOzuMm.js";import{B as oQ,D as YQ}from"./BlyKuyB7.js";const T=["none","attribute","attribute.jsx","boolean","comment","comment.doc","constant","constant.builtin","constructor","diff.minus","diff.plus","embedded","emphasis","emphasis.strong","function","function.definition","function.method","keyword","keyword.control","keyword.declaration","keyword.import","keyword.operator","label","namespace","number","operator","predictive","preproc","primary","property","property.json_key","punctuation","punctuation.bracket","punctuation.bracket.html","punctuation.bracket.jsx","punctuation.delimiter","punctuation.delimiter.html","punctuation.delimiter.jsx","punctuation.list_marker","punctuation.markup","punctuation.special","selector","selector.class","selector.id","string","string.escape","string.regex","string.special","string.special.symbol","tag","tag.doctype","tag.jsx","text.jsx","text.literal","title","type","type.builtin","type.class","variable","variable.parameter","variable.special","enum","hint","keyword.jsdoc","link_text","link_uri","selector.pseudo","tag.component.jsx","type.jsdoc","variable.jsdoc","variant","background","foreground"],aQ="--hls-",NQ=new TextEncoder,HQ=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,nQ=/^color\(display-p3\s+[+-]?(?:\d+(?:\.\d*)?|\.\d+)\s+[+-]?(?:\d+(?:\.\d*)?|\.\d+)\s+[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:\s*\/\s*[+-]?(?:\d+(?:\.\d*)?|\.\d+))?\s*\)$/i;function ZQ(Q){return typeof Q=="string"&&(HQ.test(Q.trim())||nQ.test(Q.trim()))}function FB(Q){return Q["editor.foreground"]??Q.text??Q.foreground}function uB(Q){return Q["editor.background"]??Q.background}const YB=["black","red","green","yellow","blue","magenta","cyan","white","bright_black","bright_red","bright_green","bright_yellow","bright_blue","bright_magenta","bright_cyan","bright_white"],eQ=["#000000","#cd3131","#0dbc79","#e5e510","#2472c8","#bc3fbc","#11a8cd","#e5e5e5","#666666","#f14c4c","#23d18b","#f5f543","#3b8eea","#d670d6","#29b8db","#ffffff"];function dQ(Q){return YB.map((A,B)=>zB({foreground:Q[`terminal.ansi.${A}`]},"foreground").color??eQ[B])}function OB(Q){return Q===null?"null":Q===void 0?"undefined":typeof Q=="string"?`the string ${JSON.stringify(Q)} (theme ids are not supported; import the theme object from "@pierre/highlights/themes")`:Array.isArray(Q)?"an array":typeof Q=="object"?"themes"in Q&&Array.isArray(Q.themes)?`a ThemeFamily whose first member is ${OB(Q.themes[0])}`:"an object without a `name`":`a ${typeof Q}`}function lQ(Q){return Q!=null&&typeof Q=="object"&&"name"in Q&&typeof Q.name=="string"&&Q.name!==""}function xQ(Q){const A=Q!=null&&typeof Q=="object"&&"themes"in Q&&Q.themes!=null?Q.themes[0]:Q;if(!lQ(A))throw new TypeError(`invalid theme: expected a Theme or ThemeFamily object, received ${OB(Q)}`);return A}function vB(Q,A){let B;for(let E=A;E!=="";){const I=Q[E];if(typeof I=="string")return{...B,color:I};if(I!=null&&typeof I=="object"&&(B??=I,I.color!=null))return{...B,color:I.color};const C=E.lastIndexOf(".");E=C<0?"":E.slice(0,C)}return B}function zB(Q,A){let B,E,I;return A==="background"?B=uB(Q):A==="foreground"?B=FB(Q):({color:B,font_style:E,font_weight:I}=vB(Q.syntax??{},A)??{},(E!=null||I!=null)&&(B??=FB(Q))),ZQ(B)?(B=B.trim().toLowerCase(),B.startsWith("#")&&(B.length<=5&&(B=B.replace(/[^#]/g,"$&$&")),B.length===9&&B.endsWith("ff")&&(B=B.slice(0,7)),B==="#00000000"&&(B=void 0))):B=void 0,{color:B,italic:E==="italic",weight:I!=null&&I>=100&&I<=900?Math.round(I/100)*100:0}}function zA(Q,A){return`var(${A}${Q.replace(/[._]/g,"-")})`}function gA(Q){return Q.replaceAll("&","&").replaceAll('"',""").replaceAll("<","<").replaceAll(">",">")}function $B(Q){const A=Q.map(w=>NQ.encode(w));let B=4+8*A.length;const E=new Uint8Array(B+A.reduce((w,G)=>w+G.length,0)),I=new DataView(E.buffer);let C=32;for(let w=0;w<A.length;w++)I.setUint32(4+8*w,B,!0),I.setUint32(8+8*w,A[w].length,!0),E.set(A[w],B),B+=A[w].length,w!==0&&(C=Math.max(C,A[w].length+32));return I.setUint32(0,C,!0),E}const nB=new WeakMap;function SB(Q,A=aQ){const B=xQ(Q),E=B.cssVariables===!0?A:"";let I=nB.get(B);const C=I?.get(E);if(C!==void 0)return C;const w=B.cssVariables===!0?rQ(B.name,A):typeof B.cssVariables=="object"?bQ(B):WQ(B);return I===void 0&&(I=new Map,nB.set(B,I)),I.set(E,w),w}function bQ(Q){const A=Q.cssVariables;if(typeof A!="object")throw new Error("Expected CSS palette");const B=A.prefix??"--hls-",E=R=>{const i=A.defaults?.[R];return`var(${B}${R}${i?`, ${i}`:""})`},I=new Array(T.length).fill(null),C=Q.style.syntax??{};for(let R=1;R<T.length;R++){const i=vB(C,T[R]);I[R]={color:E(i?.color??"foreground"),italic:i?.font_style==="italic",weight:i?.font_weight===void 0?0:Math.round(i.font_weight/100)*100}}const w=E(FB(Q.style)??"foreground"),G=E(uB(Q.style)??"background");let k,S;return{name:Q.name,styles:I,fg:w,bg:G,table:void 0,get htmlOpeners(){return k??=_B(I,w,G)},get ansi(){return S??=YB.map(R=>{const i=Q.style[`terminal.ansi.${R}`];return E(typeof i=="string"?i:`terminal-ansi-${R.replace("_","-")}`)})}}}function rQ(Q,A){let B;const E=()=>B??=TQ(A);let I;return{name:Q,get styles(){return E().styles},get fg(){return E().fg},get bg(){return E().bg},table:void 0,htmlOpeners:void 0,get ansi(){return I??=YB.map(C=>zA(`terminal.ansi.${C}`,A))}}}function TQ(Q){const A=new Array(T.length).fill(null);for(let B=1;B<T.length;B++)A[B]={color:zA(T[B],Q),italic:!1,weight:0};return{styles:A,fg:zA("foreground",Q),bg:zA("background",Q)}}function WQ(Q){const A=Q.style??{},B=new Array(T.length).fill(null),E=new Uint8Array(T.length*5);let I,C,w=!1;for(let S=1;S<T.length;S++){const R=T[S],i=zB(A,R),{color:F,italic:s,weight:J}=i,t=S*5;if(F!==void 0)if(F.startsWith("#")){const a=parseInt(F.slice(1,7),16);E[t]=a>>16,E[t+1]=a>>8&255,E[t+2]=a&255,E[t+3]=F.length===9?parseInt(F.slice(7),16):255}else w=!0;E[t+4]=(s?16:0)|J/100,!(F===void 0&&!s&&J===0)&&(R==="foreground"?I=F:R==="background"?C=F:B[S]=i)}let G,k;return{name:Q.name,styles:B,fg:I,bg:C,table:w?void 0:E,get htmlOpeners(){if(w)return G??=_B(B,I,C)},get ansi(){return k??=dQ(A)}}}function _B(Q,A,B){const E=[`<pre class="highlights" style="${gA((B===void 0?"":`background-color:${B};`)+(A===void 0?"":`color:${A}`))}"><code>`];for(let I=1;I<T.length;I++){const C=Q[I],w=`color:${C?.color??"inherit"}`+(C?.italic===!0?";font-style:italic":"")+(C!=null&&C.weight!==0?`;font-weight:${C.weight}`:"");E.push(`<span style="${gA(w)}">`)}return $B(E)}const XQ=new TextEncoder,yA=new Uint8Array(T.length);for(let Q=0;Q<T.length;Q++){const A=T[Q];A==="string.regex"?yA[Q]=3:A==="comment"||A.startsWith("comment.")?yA[Q]=1:(A==="string"||A.startsWith("string."))&&(yA[Q]=2)}const ZB=new WeakMap,eB=new WeakMap;let fQ=1;const dB=new WeakMap,lB=new WeakMap,xB=new WeakMap;let KQ=0;function PQ(Q){let A=xB.get(Q);return A===void 0&&(A=KQ++,xB.set(Q,A)),A}function bB(Q,A,B){const{name:E,styles:I,fg:C,bg:w,table:G}=Q;return{color:A,role:B,name:E,styles:I,fg:C,bg:w,table:G,get ansi(){return Q.ansi}}}function lA(Q){const{cssVariablePrefix:A}=Q;if(Q.themes==null)return[bB(SB(Q.theme,A),null,"single")];const B=Object.entries(Q.themes).filter(([,R])=>R!=null).sort(([R],[i])=>R<i?-1:1);if(B.length===0)throw new TypeError("themes must not be empty");const E=Q.defaultColor??"light";let I;if(E==="light-dark()"){const R=B.find(([F])=>F==="light"),i=B.find(([F])=>F==="dark");if(R===void 0||i===void 0)throw new TypeError("`themes` must contain `light` and `dark` when defaultColor is 'light-dark()'");B.splice(0,B.length,R,i),I=["light-dark","light-dark"]}else{if(E!==!1){const R=B.findIndex(([i])=>i===E);if(R<0)throw new TypeError(`\`themes\` must contain the defaultColor key \`${E}\``);B.unshift(...B.splice(R,1))}I=B.map((R,i)=>E!==!1&&i===0?"default":"variable")}const C=B.map(([,R])=>SB(R,A)),w=JSON.stringify(B.map(([R],i)=>[PQ(C[i]),I[i],R]));let G=lB.get(C[0]);const k=G?.get(w);if(k!==void 0)return k;const S=B.map(([R],i)=>bB(C[i],R,I[i]));if(G===void 0&&(G=new Map,lB.set(C[0],G)),G.set(w,S),G.size>128){const R=G.keys().next().value;R!==void 0&&G.delete(R)}return S}function xA(Q,A,B,E,I,C,w=0){const G={content:Q.slice(A,B),offset:A+w};if(I[0].role==="single"){const{styles:S,fg:R}=I[0],i=S[E];G.color=i?.color??R;let F=0;i?.italic===!0&&(F|=1),(i?.weight??0)>=600&&(F|=2),G.fontStyle=F}else G.htmlStyle=aB(I,E,C);const k=yA[E];return k!==0&&(G.type=k),G}function AQ(Q,A){let B=ZB.get(Q);B===void 0&&(B=new Map,ZB.set(Q,B));let E=B.get(A);return E===void 0&&(E=[],B.set(A,E)),E}function aB(Q,A,B){const E=AQ(Q,B);let I=E[A];if(I===void 0){if(Q[0].role==="light-dark")I=pQ(Q,A,B);else{I={};for(const{color:C,role:w,styles:G,fg:k}of Q){const S=G[A],R=w==="default";I[R?"color":B+C]=S?.color??k??"inherit",S?.italic===!0&&(I[R?"font-style":`${B}${C}-font-style`]="italic"),S!=null&&S.weight!==0&&(I[R?"font-weight":`${B}${C}-font-weight`]=String(S.weight))}}E[A]=I}return I}function VQ(Q,A){let B=eB.get(Q);B===void 0&&(B=new Map,eB.set(Q,B));const E=B.get(A);if(E!==void 0)return E??void 0;const I=Q.length;if(!(I<=255&&Q.every(J=>J.table!==void 0))){B.set(A,null);return}const C=Q.map(J=>J.role==="default"?new Uint8Array(0):XQ.encode(gA(`${A}${J.color}`))),w=32+16*I,G=w+384*I;let k=64,S=128,R=0;for(const{length:J}of C)k+=64+3*J,S+=48+2*J,R+=J;const i=new Uint8Array(G+R),F=new DataView(i.buffer);i[0]=I,i[1]=Q[0].role==="light-dark"?1:0,F.setUint32(4,w,!0),F.setUint32(8,k,!0),F.setUint32(12,S,!0),F.setUint32(16,fQ++,!0);let s=G;for(let J=0;J<I;J++){const t=32+16*J;F.setUint32(t,s,!0),F.setUint32(t+4,C[J].length,!0),F.setUint32(t+8,Q[J].role==="default"?1:0,!0),i.set(Q[J].table,w+384*J),i.set(C[J],s),s+=C[J].length}return B.set(A,i),i}function mQ(Q,A){let B=dB.get(Q);B===void 0&&(B=new Map,dB.set(Q,B));const E=B.get(A);if(E!==void 0)return E;const{fg:I,bg:C,rootStyle:w}=kB(Q,A),G=[`<pre class="highlights" style="${gA(w??`background-color:${C};color:${I}`)}"><code>`];for(let S=1;S<T.length;S++){const R=aB(Q,S,A);let i="";for(const F in R)i+=`${i===""?"":";"}${F}:${R[F]}`;G.push(`<span style="${gA(i)}">`)}const k=$B(G);return B.set(A,k),k}function pQ(Q,A,B){const[E,I]=Q,C=E.styles[A],w=I.styles[A],G=C?.color??E.fg??"currentcolor",k=w?.color??I.fg??"currentcolor",S={color:G===k?G:`light-dark(${G}, ${k})`},R=C?.italic===!0,i=w?.italic===!0;R&&i?S["font-style"]="italic":(R&&(S[`${B}light-font-style`]="italic"),i&&(S[`${B}dark-font-style`]="italic"));const F=C?.weight??0,s=w?.weight??0;return F!==0&&F===s?S["font-weight"]=String(F):(F!==0&&(S[`${B}light-font-weight`]=String(F)),s!==0&&(S[`${B}dark-font-weight`]=String(s))),S}function BQ(Q,A,B,E,I,C=0){const w=[],G=I??0,{styles:k,fg:S,role:R}=B[0],i=R==="single"?void 0:AQ(B,E);let F=0;for(let s=0;;s+=2){const J=s;for(;s<A.length&&A[s+1]!==4294967295;)s+=2;const t=s===J?F:A[s-2];let a;if(G>0&&t-F>=G)a=[xA(Q,F,t,0,B,E,C)];else{a=new Array((s-J)/2);let o=0;for(let n=J;n<s;n+=2){const Z=A[n];if(Z>F){const h=A[n+1];let L;if(i===void 0){const H=k[h];L={content:Q.slice(F,Z),offset:F+C,color:H?.color??S,fontStyle:(H?.italic===!0?1:0)|((H?.weight??0)>=600?2:0)}}else L={content:Q.slice(F,Z),offset:F+C,htmlStyle:i[h]??aB(B,h,E)};const y=yA[h];y!==0&&(L.type=y),a[o++]=L,F=Z}}a.length=o}if(w.push(a),s===A.length)break;F=A[s]}return w}function kB(Q,A){if(Q[0].role==="single")return{fg:Q[0].fg,bg:Q[0].bg,themeName:Q[0].name};const B=`highlights-themes ${Q.map(C=>C.name).join(" ")}`;if(Q[0].role==="light-dark"){const C=(w,G,k)=>{const S=w??k,R=G??k;return S===R?S:`light-dark(${S}, ${R})`};return{fg:C(Q[0].fg,Q[1].fg,"currentcolor"),bg:C(Q[0].bg,Q[1].bg,"transparent"),themeName:B}}const E=Q.map(C=>C.role==="default"?C.fg??"inherit":`${A}${C.color}:${C.fg??"inherit"}`).join(";"),I=Q.map(C=>C.role==="default"?C.bg??"inherit":`${A}${C.color}-bg:${C.bg??"inherit"}`).join(";");return{fg:E,bg:I,themeName:B,rootStyle:Q[0].role==="default"?void 0:`${E};${I}`}}const sB=1,QQ=2,EQ=4,IQ=8,CQ=16,gQ=32,rB=[0,sB,QQ,EQ,IQ,0,0,CQ,0,gQ],gB=[0,95,135,175,215,255],wB=/\x1b(?:\[([0-?]*)[ -/]*([@-~])|\][^\x07\x1b\n]*(?:\x07|\x1b\\)|[ -/]*[0-~])/y;var wQ=class{constructor(){x(this,"fg",-1);x(this,"bg",-1);x(this,"flags",0);x(this,"styles",new Map)}};function bA(Q){return String(Q).toLowerCase()==="ansi"}function RB(Q,A){if(A<16)return Q.ansi[A];let B=A&16777215;if(A<232){const E=A-16;B=gB[E/36|0]<<16|gB[(E/6|0)%6]<<8|gB[E%6]}else A<256&&(B=(8+(A-232)*10)*65793);return`#${B.toString(16).padStart(6,"0")}`}function UB(Q,A,B,E,I=new wQ,C=0){const w=[],G=E??0;let k=[],S,R,i,F=Q.indexOf("\x1B"),s=0;for(;;){const J=Q.indexOf(`
|
|
1
|
+
var cQ=Object.defineProperty;var NB=Q=>{throw TypeError(Q)};var LQ=(Q,A,B)=>A in Q?cQ(Q,A,{enumerable:!0,configurable:!0,writable:!0,value:B}):Q[A]=B;var x=(Q,A,B)=>LQ(Q,typeof A!="symbol"?A+"":A,B),CB=(Q,A,B)=>A.has(Q)||NB("Cannot "+B);var g=(Q,A,B)=>(CB(Q,A,"read from private field"),B?B.call(Q):A.get(Q)),c=(Q,A,B)=>A.has(Q)?NB("Cannot add the same private member more than once"):A instanceof WeakSet?A.add(Q):A.set(Q,B),M=(Q,A,B,E)=>(CB(Q,A,"write to private field"),E?E.call(Q,B):A.set(Q,B),B),D=(Q,A,B)=>(CB(Q,A,"access private method"),B);var HB=(Q,A,B,E)=>({set _(I){M(Q,A,I,B)},get _(){return g(Q,A,E)}});import{a3 as tQ,r as hQ,Q as jQ}from"./QSHJFaU7.js";import{B as oQ,D as YQ}from"./CwQIGTQ1.js";const T=["none","attribute","attribute.jsx","boolean","comment","comment.doc","constant","constant.builtin","constructor","diff.minus","diff.plus","embedded","emphasis","emphasis.strong","function","function.definition","function.method","keyword","keyword.control","keyword.declaration","keyword.import","keyword.operator","label","namespace","number","operator","predictive","preproc","primary","property","property.json_key","punctuation","punctuation.bracket","punctuation.bracket.html","punctuation.bracket.jsx","punctuation.delimiter","punctuation.delimiter.html","punctuation.delimiter.jsx","punctuation.list_marker","punctuation.markup","punctuation.special","selector","selector.class","selector.id","string","string.escape","string.regex","string.special","string.special.symbol","tag","tag.doctype","tag.jsx","text.jsx","text.literal","title","type","type.builtin","type.class","variable","variable.parameter","variable.special","enum","hint","keyword.jsdoc","link_text","link_uri","selector.pseudo","tag.component.jsx","type.jsdoc","variable.jsdoc","variant","background","foreground"],aQ="--hls-",NQ=new TextEncoder,HQ=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,nQ=/^color\(display-p3\s+[+-]?(?:\d+(?:\.\d*)?|\.\d+)\s+[+-]?(?:\d+(?:\.\d*)?|\.\d+)\s+[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:\s*\/\s*[+-]?(?:\d+(?:\.\d*)?|\.\d+))?\s*\)$/i;function ZQ(Q){return typeof Q=="string"&&(HQ.test(Q.trim())||nQ.test(Q.trim()))}function FB(Q){return Q["editor.foreground"]??Q.text??Q.foreground}function uB(Q){return Q["editor.background"]??Q.background}const YB=["black","red","green","yellow","blue","magenta","cyan","white","bright_black","bright_red","bright_green","bright_yellow","bright_blue","bright_magenta","bright_cyan","bright_white"],eQ=["#000000","#cd3131","#0dbc79","#e5e510","#2472c8","#bc3fbc","#11a8cd","#e5e5e5","#666666","#f14c4c","#23d18b","#f5f543","#3b8eea","#d670d6","#29b8db","#ffffff"];function dQ(Q){return YB.map((A,B)=>zB({foreground:Q[`terminal.ansi.${A}`]},"foreground").color??eQ[B])}function OB(Q){return Q===null?"null":Q===void 0?"undefined":typeof Q=="string"?`the string ${JSON.stringify(Q)} (theme ids are not supported; import the theme object from "@pierre/highlights/themes")`:Array.isArray(Q)?"an array":typeof Q=="object"?"themes"in Q&&Array.isArray(Q.themes)?`a ThemeFamily whose first member is ${OB(Q.themes[0])}`:"an object without a `name`":`a ${typeof Q}`}function lQ(Q){return Q!=null&&typeof Q=="object"&&"name"in Q&&typeof Q.name=="string"&&Q.name!==""}function xQ(Q){const A=Q!=null&&typeof Q=="object"&&"themes"in Q&&Q.themes!=null?Q.themes[0]:Q;if(!lQ(A))throw new TypeError(`invalid theme: expected a Theme or ThemeFamily object, received ${OB(Q)}`);return A}function vB(Q,A){let B;for(let E=A;E!=="";){const I=Q[E];if(typeof I=="string")return{...B,color:I};if(I!=null&&typeof I=="object"&&(B??=I,I.color!=null))return{...B,color:I.color};const C=E.lastIndexOf(".");E=C<0?"":E.slice(0,C)}return B}function zB(Q,A){let B,E,I;return A==="background"?B=uB(Q):A==="foreground"?B=FB(Q):({color:B,font_style:E,font_weight:I}=vB(Q.syntax??{},A)??{},(E!=null||I!=null)&&(B??=FB(Q))),ZQ(B)?(B=B.trim().toLowerCase(),B.startsWith("#")&&(B.length<=5&&(B=B.replace(/[^#]/g,"$&$&")),B.length===9&&B.endsWith("ff")&&(B=B.slice(0,7)),B==="#00000000"&&(B=void 0))):B=void 0,{color:B,italic:E==="italic",weight:I!=null&&I>=100&&I<=900?Math.round(I/100)*100:0}}function zA(Q,A){return`var(${A}${Q.replace(/[._]/g,"-")})`}function gA(Q){return Q.replaceAll("&","&").replaceAll('"',""").replaceAll("<","<").replaceAll(">",">")}function $B(Q){const A=Q.map(w=>NQ.encode(w));let B=4+8*A.length;const E=new Uint8Array(B+A.reduce((w,G)=>w+G.length,0)),I=new DataView(E.buffer);let C=32;for(let w=0;w<A.length;w++)I.setUint32(4+8*w,B,!0),I.setUint32(8+8*w,A[w].length,!0),E.set(A[w],B),B+=A[w].length,w!==0&&(C=Math.max(C,A[w].length+32));return I.setUint32(0,C,!0),E}const nB=new WeakMap;function SB(Q,A=aQ){const B=xQ(Q),E=B.cssVariables===!0?A:"";let I=nB.get(B);const C=I?.get(E);if(C!==void 0)return C;const w=B.cssVariables===!0?rQ(B.name,A):typeof B.cssVariables=="object"?bQ(B):WQ(B);return I===void 0&&(I=new Map,nB.set(B,I)),I.set(E,w),w}function bQ(Q){const A=Q.cssVariables;if(typeof A!="object")throw new Error("Expected CSS palette");const B=A.prefix??"--hls-",E=R=>{const i=A.defaults?.[R];return`var(${B}${R}${i?`, ${i}`:""})`},I=new Array(T.length).fill(null),C=Q.style.syntax??{};for(let R=1;R<T.length;R++){const i=vB(C,T[R]);I[R]={color:E(i?.color??"foreground"),italic:i?.font_style==="italic",weight:i?.font_weight===void 0?0:Math.round(i.font_weight/100)*100}}const w=E(FB(Q.style)??"foreground"),G=E(uB(Q.style)??"background");let k,S;return{name:Q.name,styles:I,fg:w,bg:G,table:void 0,get htmlOpeners(){return k??=_B(I,w,G)},get ansi(){return S??=YB.map(R=>{const i=Q.style[`terminal.ansi.${R}`];return E(typeof i=="string"?i:`terminal-ansi-${R.replace("_","-")}`)})}}}function rQ(Q,A){let B;const E=()=>B??=TQ(A);let I;return{name:Q,get styles(){return E().styles},get fg(){return E().fg},get bg(){return E().bg},table:void 0,htmlOpeners:void 0,get ansi(){return I??=YB.map(C=>zA(`terminal.ansi.${C}`,A))}}}function TQ(Q){const A=new Array(T.length).fill(null);for(let B=1;B<T.length;B++)A[B]={color:zA(T[B],Q),italic:!1,weight:0};return{styles:A,fg:zA("foreground",Q),bg:zA("background",Q)}}function WQ(Q){const A=Q.style??{},B=new Array(T.length).fill(null),E=new Uint8Array(T.length*5);let I,C,w=!1;for(let S=1;S<T.length;S++){const R=T[S],i=zB(A,R),{color:F,italic:s,weight:J}=i,t=S*5;if(F!==void 0)if(F.startsWith("#")){const a=parseInt(F.slice(1,7),16);E[t]=a>>16,E[t+1]=a>>8&255,E[t+2]=a&255,E[t+3]=F.length===9?parseInt(F.slice(7),16):255}else w=!0;E[t+4]=(s?16:0)|J/100,!(F===void 0&&!s&&J===0)&&(R==="foreground"?I=F:R==="background"?C=F:B[S]=i)}let G,k;return{name:Q.name,styles:B,fg:I,bg:C,table:w?void 0:E,get htmlOpeners(){if(w)return G??=_B(B,I,C)},get ansi(){return k??=dQ(A)}}}function _B(Q,A,B){const E=[`<pre class="highlights" style="${gA((B===void 0?"":`background-color:${B};`)+(A===void 0?"":`color:${A}`))}"><code>`];for(let I=1;I<T.length;I++){const C=Q[I],w=`color:${C?.color??"inherit"}`+(C?.italic===!0?";font-style:italic":"")+(C!=null&&C.weight!==0?`;font-weight:${C.weight}`:"");E.push(`<span style="${gA(w)}">`)}return $B(E)}const XQ=new TextEncoder,yA=new Uint8Array(T.length);for(let Q=0;Q<T.length;Q++){const A=T[Q];A==="string.regex"?yA[Q]=3:A==="comment"||A.startsWith("comment.")?yA[Q]=1:(A==="string"||A.startsWith("string."))&&(yA[Q]=2)}const ZB=new WeakMap,eB=new WeakMap;let fQ=1;const dB=new WeakMap,lB=new WeakMap,xB=new WeakMap;let KQ=0;function PQ(Q){let A=xB.get(Q);return A===void 0&&(A=KQ++,xB.set(Q,A)),A}function bB(Q,A,B){const{name:E,styles:I,fg:C,bg:w,table:G}=Q;return{color:A,role:B,name:E,styles:I,fg:C,bg:w,table:G,get ansi(){return Q.ansi}}}function lA(Q){const{cssVariablePrefix:A}=Q;if(Q.themes==null)return[bB(SB(Q.theme,A),null,"single")];const B=Object.entries(Q.themes).filter(([,R])=>R!=null).sort(([R],[i])=>R<i?-1:1);if(B.length===0)throw new TypeError("themes must not be empty");const E=Q.defaultColor??"light";let I;if(E==="light-dark()"){const R=B.find(([F])=>F==="light"),i=B.find(([F])=>F==="dark");if(R===void 0||i===void 0)throw new TypeError("`themes` must contain `light` and `dark` when defaultColor is 'light-dark()'");B.splice(0,B.length,R,i),I=["light-dark","light-dark"]}else{if(E!==!1){const R=B.findIndex(([i])=>i===E);if(R<0)throw new TypeError(`\`themes\` must contain the defaultColor key \`${E}\``);B.unshift(...B.splice(R,1))}I=B.map((R,i)=>E!==!1&&i===0?"default":"variable")}const C=B.map(([,R])=>SB(R,A)),w=JSON.stringify(B.map(([R],i)=>[PQ(C[i]),I[i],R]));let G=lB.get(C[0]);const k=G?.get(w);if(k!==void 0)return k;const S=B.map(([R],i)=>bB(C[i],R,I[i]));if(G===void 0&&(G=new Map,lB.set(C[0],G)),G.set(w,S),G.size>128){const R=G.keys().next().value;R!==void 0&&G.delete(R)}return S}function xA(Q,A,B,E,I,C,w=0){const G={content:Q.slice(A,B),offset:A+w};if(I[0].role==="single"){const{styles:S,fg:R}=I[0],i=S[E];G.color=i?.color??R;let F=0;i?.italic===!0&&(F|=1),(i?.weight??0)>=600&&(F|=2),G.fontStyle=F}else G.htmlStyle=aB(I,E,C);const k=yA[E];return k!==0&&(G.type=k),G}function AQ(Q,A){let B=ZB.get(Q);B===void 0&&(B=new Map,ZB.set(Q,B));let E=B.get(A);return E===void 0&&(E=[],B.set(A,E)),E}function aB(Q,A,B){const E=AQ(Q,B);let I=E[A];if(I===void 0){if(Q[0].role==="light-dark")I=pQ(Q,A,B);else{I={};for(const{color:C,role:w,styles:G,fg:k}of Q){const S=G[A],R=w==="default";I[R?"color":B+C]=S?.color??k??"inherit",S?.italic===!0&&(I[R?"font-style":`${B}${C}-font-style`]="italic"),S!=null&&S.weight!==0&&(I[R?"font-weight":`${B}${C}-font-weight`]=String(S.weight))}}E[A]=I}return I}function VQ(Q,A){let B=eB.get(Q);B===void 0&&(B=new Map,eB.set(Q,B));const E=B.get(A);if(E!==void 0)return E??void 0;const I=Q.length;if(!(I<=255&&Q.every(J=>J.table!==void 0))){B.set(A,null);return}const C=Q.map(J=>J.role==="default"?new Uint8Array(0):XQ.encode(gA(`${A}${J.color}`))),w=32+16*I,G=w+384*I;let k=64,S=128,R=0;for(const{length:J}of C)k+=64+3*J,S+=48+2*J,R+=J;const i=new Uint8Array(G+R),F=new DataView(i.buffer);i[0]=I,i[1]=Q[0].role==="light-dark"?1:0,F.setUint32(4,w,!0),F.setUint32(8,k,!0),F.setUint32(12,S,!0),F.setUint32(16,fQ++,!0);let s=G;for(let J=0;J<I;J++){const t=32+16*J;F.setUint32(t,s,!0),F.setUint32(t+4,C[J].length,!0),F.setUint32(t+8,Q[J].role==="default"?1:0,!0),i.set(Q[J].table,w+384*J),i.set(C[J],s),s+=C[J].length}return B.set(A,i),i}function mQ(Q,A){let B=dB.get(Q);B===void 0&&(B=new Map,dB.set(Q,B));const E=B.get(A);if(E!==void 0)return E;const{fg:I,bg:C,rootStyle:w}=kB(Q,A),G=[`<pre class="highlights" style="${gA(w??`background-color:${C};color:${I}`)}"><code>`];for(let S=1;S<T.length;S++){const R=aB(Q,S,A);let i="";for(const F in R)i+=`${i===""?"":";"}${F}:${R[F]}`;G.push(`<span style="${gA(i)}">`)}const k=$B(G);return B.set(A,k),k}function pQ(Q,A,B){const[E,I]=Q,C=E.styles[A],w=I.styles[A],G=C?.color??E.fg??"currentcolor",k=w?.color??I.fg??"currentcolor",S={color:G===k?G:`light-dark(${G}, ${k})`},R=C?.italic===!0,i=w?.italic===!0;R&&i?S["font-style"]="italic":(R&&(S[`${B}light-font-style`]="italic"),i&&(S[`${B}dark-font-style`]="italic"));const F=C?.weight??0,s=w?.weight??0;return F!==0&&F===s?S["font-weight"]=String(F):(F!==0&&(S[`${B}light-font-weight`]=String(F)),s!==0&&(S[`${B}dark-font-weight`]=String(s))),S}function BQ(Q,A,B,E,I,C=0){const w=[],G=I??0,{styles:k,fg:S,role:R}=B[0],i=R==="single"?void 0:AQ(B,E);let F=0;for(let s=0;;s+=2){const J=s;for(;s<A.length&&A[s+1]!==4294967295;)s+=2;const t=s===J?F:A[s-2];let a;if(G>0&&t-F>=G)a=[xA(Q,F,t,0,B,E,C)];else{a=new Array((s-J)/2);let o=0;for(let n=J;n<s;n+=2){const Z=A[n];if(Z>F){const h=A[n+1];let L;if(i===void 0){const H=k[h];L={content:Q.slice(F,Z),offset:F+C,color:H?.color??S,fontStyle:(H?.italic===!0?1:0)|((H?.weight??0)>=600?2:0)}}else L={content:Q.slice(F,Z),offset:F+C,htmlStyle:i[h]??aB(B,h,E)};const y=yA[h];y!==0&&(L.type=y),a[o++]=L,F=Z}}a.length=o}if(w.push(a),s===A.length)break;F=A[s]}return w}function kB(Q,A){if(Q[0].role==="single")return{fg:Q[0].fg,bg:Q[0].bg,themeName:Q[0].name};const B=`highlights-themes ${Q.map(C=>C.name).join(" ")}`;if(Q[0].role==="light-dark"){const C=(w,G,k)=>{const S=w??k,R=G??k;return S===R?S:`light-dark(${S}, ${R})`};return{fg:C(Q[0].fg,Q[1].fg,"currentcolor"),bg:C(Q[0].bg,Q[1].bg,"transparent"),themeName:B}}const E=Q.map(C=>C.role==="default"?C.fg??"inherit":`${A}${C.color}:${C.fg??"inherit"}`).join(";"),I=Q.map(C=>C.role==="default"?C.bg??"inherit":`${A}${C.color}-bg:${C.bg??"inherit"}`).join(";");return{fg:E,bg:I,themeName:B,rootStyle:Q[0].role==="default"?void 0:`${E};${I}`}}const sB=1,QQ=2,EQ=4,IQ=8,CQ=16,gQ=32,rB=[0,sB,QQ,EQ,IQ,0,0,CQ,0,gQ],gB=[0,95,135,175,215,255],wB=/\x1b(?:\[([0-?]*)[ -/]*([@-~])|\][^\x07\x1b\n]*(?:\x07|\x1b\\)|[ -/]*[0-~])/y;var wQ=class{constructor(){x(this,"fg",-1);x(this,"bg",-1);x(this,"flags",0);x(this,"styles",new Map)}};function bA(Q){return String(Q).toLowerCase()==="ansi"}function RB(Q,A){if(A<16)return Q.ansi[A];let B=A&16777215;if(A<232){const E=A-16;B=gB[E/36|0]<<16|gB[(E/6|0)%6]<<8|gB[E%6]}else A<256&&(B=(8+(A-232)*10)*65793);return`#${B.toString(16).padStart(6,"0")}`}function UB(Q,A,B,E,I=new wQ,C=0){const w=[],G=E??0;let k=[],S,R,i,F=Q.indexOf("\x1B"),s=0;for(;;){const J=Q.indexOf(`
|
|
2
2
|
`,s);let t=J<0?Q.length:J;J>s&&Q.charCodeAt(J-1)===13&&t--;const a=G>0&&t-s>=G;for(;s<t;){F>=0&&F<s&&(F=Q.indexOf("\x1B",s));let o=F>=0&&F<t?F:t,n=o,Z;if(o<t){wB.lastIndex=o;const h=wB.exec(Q);h===null?n=++o:(n=wB.lastIndex,h[2]==="m"&&!(h[1].charCodeAt(0)>=60)&&(Z=h[1]))}if(o>s&&a)R===void 0?(R=xA(Q,s,o,0,A,B,C),k.push(R)):R.content+=Q.slice(s,o);else if(o>s){if(S===void 0){const{fg:h,bg:L,flags:y}=I,H=`${h},${L},${y}`;if(S=I.styles.get(H),S===void 0){const m=((y&EQ)!==0?1:0)|((y&sB)!==0?2:0)|((y&IQ)!==0?4:0)|((y&gQ)!==0?8:0),z=A.map(e=>{let j=h<0?e.fg:RB(e,h),$=L<0?void 0:RB(e,L);return(y&CQ)!==0&&($=j,j=L<0?e.bg:RB(e,L)),(y&QQ)!==0&&j!==void 0&&(j=j.startsWith("#")?j.length===9?j.slice(0,7)+Math.round(parseInt(j.slice(7),16)/2).toString(16).padStart(2,"0"):`${j}80`:`color-mix(in srgb, ${j} 50%, transparent)`),[j,$]});if(A[0].role==="single"){const[e,j]=z[0];S=j===void 0?{color:e,fontStyle:m}:{color:e,bgColor:j,fontStyle:m}}else{const e=[];(m&1)!==0&&e.push(["font-style","italic"]),(m&2)!==0&&e.push(["font-weight","bold"]),(m&12)!==0&&e.push(["text-decoration",(m&12)===12?"underline line-through":(m&4)!==0?"underline":"line-through"]);const j={};if(A[0].role==="light-dark"){const[[$,pA],[qA,sA]]=z,wA=$??"currentcolor",HA=qA??"currentcolor";if(j.color=wA===HA?wA:`light-dark(${wA}, ${HA})`,pA!==void 0||sA!==void 0){const RA=pA??"transparent",uA=sA??"transparent";j["background-color"]=RA===uA?RA:`light-dark(${RA}, ${uA})`}for(const[RA,uA]of e)j[RA]=uA}else for(let $=0;$<A.length;$++){const[pA,qA]=z[$],sA=A[$].role==="default",wA=`${B}${A[$].color}`;j[sA?"color":wA]=pA??"inherit",qA!==void 0&&(j[sA?"background-color":`${wA}-bg`]=qA);for(const[HA,RA]of e)j[sA?HA:`${wA}-${HA}`]=RA}S={htmlStyle:j}}I.styles.set(H,S)}}R!==void 0&&i===S?R.content+=Q.slice(s,o):(R={content:Q.slice(s,o),offset:s+C,...S},i=S,k.push(R))}if(Z!==void 0){const h=Z.split(";");for(let L=0;L<h.length;L++){const y=Number(h[L]);if(y===0)I.fg=-1,I.bg=-1,I.flags=0;else if(y<10)I.flags|=rB[y]??0;else if(y>20&&y<30)I.flags&=~((rB[y-20]??0)|(y===22?sB:0));else if(y>=30&&y<38)I.fg=y-30;else if(y===39)I.fg=-1;else if(y>=40&&y<48)I.bg=y-40;else if(y===49)I.bg=-1;else if(y>=90&&y<98)I.fg=y-82;else if(y>=100&&y<108)I.bg=y-92;else if(y===38||y===48){const H=h[++L];let m=-1;if(H==="5"){const z=Number(h[++L]);Number.isInteger(z)&&z<256&&(m=z)}else if(H==="2"){const z=Number(h[L+1]),e=Number(h[L+2]),j=Number(h[L+3]);L+=3,z>=0&&e>=0&&j>=0&&(m=16777216|Math.min(z,255)<<16|Math.min(e,255)<<8|Math.min(j,255))}m>=0&&(y===38?I.fg=m:I.bg=m)}}S=void 0}s=n}if(w.push(k),J<0)return w;s=J+1,k=[],R=void 0}}const qQ={plain:0,plaintext:0,text:0,txt:0,abap:1,ada:2,adb:2,ads:2,"angular-html":3,apache:4,apacheconf:4,htaccess:4,apex:5,applescript:6,adoc:7,asciidoc:7,asm:8,assembly:8,mips:8,mipsasm:8,riscv:8,s:8,astro:9,awk:10,bash:11,sh:11,shell:11,shellscript:11,shellsession:11,zsh:11,bat:12,batch:12,batchfile:12,cmd:12,dos:12,bib:13,bibtex:13,bicep:14,blade:15,c:16,h:16,c3:17,clj:18,cljc:18,cljs:18,clojure:18,edn:18,cmake:19,cbl:20,cob:20,cobol:20,codeowners:21,codeql:22,ql:22,coffee:23,coffeescript:23,coq:24,rocq:24,"c++":25,cc:25,cpp:25,cxx:25,hh:25,hpp:25,hxx:25,"c#":26,cs:26,csharp:26,css:27,postcss:27,qss:27,csv:28,cu:29,cuda:29,cuh:29,cql:30,cypher:30,d:31,dart:32,dax:33,diff:34,"git-commit":34,"git-rebase":34,patch:34,containerfile:35,docker:35,dockerfile:35,dotenv:36,env:36,elixir:37,ex:37,exs:37,elm:38,erb:39,erl:40,erlang:40,hrl:40,fish:41,f03:42,f08:42,f90:42,f95:42,fortran:42,"fortran-free-form":42,f:43,f77:43,for:43,"fortran-fixed-form":43,"f#":44,fs:44,fsharp:44,fsi:44,fsx:44,gdresource:45,"godot-resource":45,tres:45,tscn:45,gd:46,gdscript:46,gdshader:47,gdshaderinc:47,"godot-shader":47,cucumber:48,feature:48,gherkin:48,gleam:49,comp:50,frag:50,geom:50,glsl:50,vert:50,gnuplot:51,gp:51,go:52,golang:52,gql:53,graphql:53,groq:54,gradle:55,groovy:55,gsh:55,gvy:55,gy:55,nextflow:55,"nextflow-groovy":55,nf:55,hack:56,haml:57,handlebars:58,hbs:58,mustache:58,haskell:59,hs:59,haxe:60,hx:60,hlsl:61,htm:62,html:62,"html-derivative":62,http:63,desktop:64,ini:64,properties:64,systemd:64,java:65,j2:66,jinja:66,jinja2:66,cjs:67,javascript:67,js:67,mjs:67,json:68,jsonc:68,json5:69,jsonl:70,jsonnet:71,libsonnet:71,jsx:72,jl:73,julia:73,just:74,justfile:74,kdl:75,kotlin:76,kt:76,kts:76,latex:77,tex:77,lean:78,lean4:78,less:79,liquid:80,cl:81,el:81,elisp:81,"emacs-lisp":81,lisp:81,lsp:81,racket:81,rkt:81,scheme:81,scm:81,llvm:82,log:83,lua:84,luau:85,make:86,makefile:86,mk:86,markdown:87,md:87,mdc:87,matlab:88,octave:88,mdx:89,mermaid:90,mmd:90,mbt:91,moonbit:91,nginx:92,nim:93,nix:94,m:95,mm:95,objc:95,objcpp:95,"objective-c":95,"objective-cpp":95,objectivec:95,ml:96,mli:96,ocaml:96,odin:97,openscad:98,scad:98,delphi:99,dpk:99,dpr:99,lpr:99,"object-pascal":99,objectpascal:99,pas:99,pascal:99,pp:99,perl:100,pl:100,pm:100,php:101,plsql:102,po:103,pot:103,potx:103,powerquery:104,pq:104,powershell:105,ps:105,ps1:105,psd1:105,psm1:105,pwsh:105,prisma:106,prolog:107,promql:108,proto:109,protobuf:109,jade:110,pug:110,puppet:111,py:112,python:112,qml:113,r:114,rscript:114,cshtml:115,razor:115,reg:116,rosmsg:117,restructuredtext:118,rst:118,rb:119,ruby:119,rs:120,rust:120,sas:121,sass:122,sbt:123,sc:123,scala:123,scss:124,shader:125,shaderlab:125,sol:126,solidity:126,sparql:127,sql:128,stata:129,styl:130,stylus:130,svelte:131,swift:132,tcl:133,hcl:134,terraform:134,tf:134,tfvars:134,toml:135,"angular-ts":136,cts:136,lit:136,mts:136,ts:136,"ts-tags":136,typescript:136,tsrx:137,tsv:138,tsx:139,ttl:140,turtle:140,twig:141,typ:142,typst:142,sv:143,svh:143,"system-verilog":143,systemverilog:143,verilog:143,vhd:144,vhdl:144,vim:145,viml:145,vimscript:145,vue:146,"vue-html":146,wasm:147,wat:147,wgsl:148,mathematica:149,wl:149,wolfram:149,svg:150,xml:150,xsd:150,xsl:150,xslt:150,yaml:151,yml:151,zig:152,zon:152},OA=new TextEncoder,RQ=new TextDecoder("utf-8",{ignoreBOM:!0}),$A=65536,TB=64,iA=81920,WB=[/^\p{ID_Start}$/u,/^[\u200C\u200D\p{ID_Continue}]$/u];let iB;const iQ=qQ;function QB(Q){const A=iQ[String(Q).toLowerCase()];if(typeof A!="number")throw new RangeError(`unknown lang: ${Q}`);return A}function uQ(Q){return typeof iQ[String(Q).toLowerCase()]=="number"||bA(Q)}var rA,TA,WA,XA,fA,P,DB,UA,JB,mB,IB=(mB=class{constructor(A){c(this,P);c(this,rA);c(this,TA);c(this,WA);c(this,XA);c(this,fA,new Uint8Array(0));x(this,"wasmModule");x(this,"instance");x(this,"memory");x(this,"buffer");x(this,"dv");x(this,"pageN");this.wasmModule=A;const B=new WebAssembly.Instance(A,{env:{is_id_start:(E,I)=>D(this,P,JB).call(this,E,I,0),is_id_continue:(E,I)=>D(this,P,JB).call(this,E,I,2)}});this.instance=B,this.memory=B.exports.memory,M(this,rA,B.exports.highlight),M(this,TA,B.exports.highlightStream),this.pageN=this.memory.buffer.byteLength/$A,this.buffer=new Uint8Array(this.memory.buffer),this.dv=new DataView(this.memory.buffer)}writeInput(A,B=0){if(typeof A=="string"){D(this,P,UA).call(this,B+A.length+96);let{read:E,written:I}=OA.encodeInto(A,this.buffer.subarray(iA+B,this.buffer.length-96));if(E<A.length){const C=A.slice(E);D(this,P,UA).call(this,B+I+C.length*3+96),I+=OA.encodeInto(C,this.buffer.subarray(iA+B+I,this.buffer.length-96)).written}return I}if(A instanceof ArrayBuffer&&(A=new Uint8Array(A)),!(A instanceof Uint8Array))throw new TypeError("input must be a string, Uint8Array, or ArrayBuffer");return D(this,P,UA).call(this,B+A.length+96),this.buffer.set(A,iA+B),A.length}codeToHtml(A,B){const E=B.cssVariablePrefix??"--hls-";if(bA(B.lang)){const i=lA(B),{fg:F,bg:s,rootStyle:J}=kB(i,E),t=yB(A),a=UB(t,i[0].role==="single"?[{...i[0],role:"default"}]:i,E);let o=`<pre class="highlights" style="${gA(J??(s===void 0?"":`background-color:${s};`)+(F===void 0?"":`color:${F}`))}"><code>`;for(let n=0,Z=-1;n<a.length;n++){n>0&&(Z=t.indexOf(`
|
|
3
3
|
`,Z+1),o+=t.charCodeAt(Z-1)===13?`\r
|
|
4
4
|
`:`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Jr as r,nW as p,nX as i,mz as s,P as S}from"./
|
|
1
|
+
import{Jr as r,nW as p,nX as i,mz as s,P as S}from"./BPo1GPk4.js";import{bm as o}from"./1KDVFF23.js";const u={"Setup Script":()=>o.terminal_daemonName_setupScript_label(),Terminal:()=>o.terminal_quakeOverlay_terminal_fallback()};function T(e){if(e)return Object.hasOwn(u,e)?u[e]():e}function d(e){return e.customName||T(e.name)||o.terminal_quakeOverlay_terminal_fallback()}const f=r.createSelector((e,t,a,l)=>{const n=p(e.terminals.creationOutcomes,t);return n?.workspaceId===a&&n.resourceId===l?n:void 0});function m(e,t){return t?e.terminals.workspaces[t]||s:s}function c(e,t){return e.terminals.workspaces[t]||s}function k(e){return(e.customName||e.name)==="Setup"}const _=r.createSelector((e,t)=>e.terminals.workspaceHeights[t]??e.terminals.height),v=r.createSelector((e,t)=>m(e,t).activeTerminalId),O=r.createSelector((e,t)=>i(m(e,t).terminals)),g=r.createSelector((e,t)=>{if(!t)return null;const a=c(e,t).selectedScriptId;return a||null}),I=r.createSelector((e,t)=>c(e,t).isOpen),y=r.createSelector((e,t)=>c(e,t).activeTerminalId),N=r.createSelector((e,t)=>i(c(e,t).terminals)),W=r.createSelector((e,t)=>i(c(e,t).terminals).find(k)),b=r.createSelector((e,t)=>e.terminals.workspaces[t]||s),A=r.createSelector((e,t,a)=>c(e,t).placements[a]??e.terminals.workspacePlacements[t]?.[a]??S),P=r.createSelector((e,t)=>e.terminals.workspacePlacements[t]),E=r.createSelector((e,t,a)=>{const l=m(e,t),n=p(l.terminals,a);return e.userPreferences?.languagePreference,d(n??{})}),M=Object.freeze(Object.defineProperty({__proto__:null,selectActiveTerminalId:v,selectActiveTerminalIdForWorkspace:y,selectHydratedWorkspacePlacements:P,selectIsTerminalOverlayOpenForWorkspace:I,selectSelectedScriptId:g,selectTerminalCreationOutcome:f,selectTerminalDisplayName:E,selectTerminalOverlayHeight:_,selectTerminalPlacement:A,selectTerminals:O,selectTerminalsForWorkspace:N,selectWorkspaceSetupTerminal:W,selectWorkspaceTerminalState:b},Symbol.toStringTag,{value:"Module"}));export{P as a,I as b,f as c,E as d,_ as e,N as f,W as g,b as h,M as i,T as l,y as s,d as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as oe,bo as st,bm as Q,bw as ie,bs as $t,bq as Me,b as ce}from"./
|
|
1
|
+
import{t as oe,bo as st,bm as Q,bw as ie,bs as $t,bq as Me,b as ce}from"./1KDVFF23.js";import{bs as le,a5 as L,bS as C,ay as Ut,aD as t,bA as $,bl as K,b_ as k,bO as D,W as _,bn as de,c9 as y,aA as rt,aB as O,bV as Mt,br as _a,aw as De,aj as Se,bH as V,ai as ya,be as Ia,b$ as xa,bf as wa,aC as he,a7 as Be}from"./3SdAC2_C.js";import{i as at}from"./Zg9SWWIQ.js";import{I as ea,g as jt,i as Ne}from"./CYCawVEx.js";import{f as Xt,g as ne,s as gt,c as se}from"./D8B7qxXm.js";import{b as ba}from"./Dn334wJv.js";import{f as Yt}from"./DPbnmxjX.js";import"./BpT_ybtH.js";import{A as aa,b as na,a as sa}from"./Bek4Es60.js";import"./Dmy603At.js";import{ax as ra,aP as oa,az as Aa,aA as ka,aB as We,ar as ia,b as $a,w as Ta,dM as Ca,a$ as Sa,aC as Na}from"./DkYquFOp.js";import{R as Fa}from"./D7vAVIvz.js";import{F as pe,bB as Oa,bg as Ra,aC as Ma,aW as Wa,cE as Da}from"./BZytk_HL.js";import{H as Ba}from"./DqPe5uyz.js";import{A as La}from"./BcEldzTj.js";import{L as Ea}from"./BH4muXHE.js";import{f as Pa}from"./DxrRvklK.js";import{i as Nt,Jr as Oe,nX as Ga,fU as za,c6 as ja,sD as Ka,u_ as Ha}from"./BPo1GPk4.js";import"./PtMxuYy8.js";function qa(e){return e.type==="agent"}const Xa=180,Ua=180;var Le=O('<div class="activity-pill shrink-0 text-xs px-3 py-1.5 bg-muted/60 border border-border rounded-lg text-subtle max-w-32 truncate"><!> </div>'),Ya=O('<div class="text-ui text-subtle line-clamp-2 leading-tight px-1"> </div>'),Va=O('<div><div class="flex items-center justify-center gap-1"><!> <span class="truncate"> </span></div> <!> <!></div>'),Qa=O('<div class="text-sm text-primary-ink flex items-center justify-center gap-1"><!> <span class="truncate"> </span></div>'),Fe=O('<span class="text-xs text-subtle"> </span>'),Za=O('<span class="status-pill text-xs px-1.5 py-0.5 bg-muted/80 rounded-md text-subtle truncate max-w-[130px]"> </span>'),Ja=O('<div class="text-ui text-subtle truncate w-full px-1 leading-tight"> </div>'),tn=O('<div class="flex flex-col items-center gap-1"><div class="flex items-center justify-center gap-1.5"><!> <!></div> <!></div>'),en=O('<div class="text-sm text-subtle line-clamp-3 leading-tight"> </div>'),an=O('<div class="avatar-wrapper h-9 w-12 flex items-center justify-center bg-background rounded-full"><!></div> <span class="font-semibold text-center leading-tight line-clamp-2"> </span> <div class="status-footer mt-auto pt-2 w-full text-center"><!></div>',1),nn=O('<div class="agent-card-wrapper flex items-center gap-3 shadow"><!> <!> <!></div>');function ca(e,a){if(new.target)return oe({component:ca,...e});le(a,!0);const s=()=>$t(_t,"$attentionRequest$",o),g=()=>$t(it,"$agentSession$",o),u=()=>$t(x,"$agentIsResponding$",o),c=()=>$t(ct,"$agentIsWaitingForOtherAgents$",o),d=()=>$t(P,"$agentIsWaiting$",o),i=()=>$t(I,"$agentIsThinking$",o),[o,l]=Me();let n=st(a,"agent",7),p=st(a,"activeFile",7),R=st(a,"activeNote",7),h=st(a,"agentNames",7),v=st(a,"onclick",7),b=st(a,"onmouseenter",7),S=st(a,"onmouseleave",7);const x=ra(n().agentId),it=oa(n().agentId),E=y(()=>!n().waitingForAgentIds||n().waitingForAgentIds.length===0?[]:n().waitingForAgentIds.map(A=>h()?.get(A)||Q.agentOverview_hierarchyCard_agent_fallback()).slice(0,2)),I=Aa(n().agentId),P=ka(n().agentId),ct=We(n().agentId),_t=ia(n().agentId),Ft=y(()=>{const A={attentionKind:s()?.kind??null};return g()?na(g(),A):sa({status:n().status,isResponding:u(),isWaitingForOtherAgents:c()},{...A,isCompleted:n().status==="completed",isFailed:n().status==="failed"})});var Dt={get agent(){return n()},set agent(A){n(A),rt()},get activeFile(){return p()},set activeFile(A){p(A),rt()},get activeNote(){return R()},set activeNote(A){R(A),rt()},get agentNames(){return h()},set agentNames(A){h(A),rt()},get onclick(){return v()},set onclick(A){v(A),rt()},get onmouseenter(){return b()},set onmouseenter(A){b(A),rt()},get onmouseleave(){return S()},set onmouseleave(A){S(A),rt()},$set:ie,$on:(A,B)=>ce(a,A,B)},ht=nn(),bt=L(ht);{var Kt=A=>{var B=Le(),Tt=L(B);pe(Tt,{get icon(){return Ra},size:"xs",class:"inline"});var Rt=C(Tt);$(B),k(()=>D(Rt,` ${p()??""}`)),_(A,B)};at(bt,A=>{p()&&u()&&A(Kt)})}var Ot=C(bt,2);{let A=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
2
|
hover:shadow transition-all cursor-pointer ${t(A)??""}`},get style(){return`width: 180px; height: 180px; anchor-name: --agent-hierarchy-${n().agentId??""};`},get onclick(){return v()},get onmouseenter(){return b()},get onmouseleave(){return S()},children:(B,Tt)=>{var Rt=an(),Lt=Ut(Rt),me=L(Lt);aa(me,{get agentId(){return n().agentId},variant:"emphasized",get state(){return t(Ft)},get specialist(){return n().specialist}}),$(Lt);var Zt=C(Lt,2),_e=K(Zt,!0),Jt=C(Zt,2),te=L(Jt);{var ye=ft=>{var r=Va(),f=L(r),M=L(f);{let z=y(()=>s().kind==="blocker"?Ma:Wa);pe(M,{get icon(){return t(z)},size:"xs"})}var W=C(M,2),m=K(W,!0);$(f);var H=C(f,2);{var nt=z=>{var It=Ya(),ot=K(It,!0);k(()=>D(ot,s().reason)),_(z,It)};at(H,z=>{s().reason&&z(nt)})}var N=C(H,2);{var G=z=>{Fa(z,{get date(){return s().timestamp},class:"text-ui text-ghost"})};at(N,z=>{s().timestamp&&z(G)})}$(r),k(z=>{Xt(r,1,`text-sm flex flex-col items-center gap-0.5 ${s().kind==="blocker"?"text-red-500":"text-warning-ink"}`),D(m,z)},[()=>s().kind==="blocker"?Q.chat_agentCard_attentionBlocker_label():Q.chat_agentCard_attentionDiscussion_label()]),_(ft,r)},yt=ft=>{var r=Qa(),f=L(r);pe(f,{get icon(){return Oa},size:"xs",class:"animate-pulse"});var M=C(f,2),W=K(M,!0);$(r),k(m=>D(W,m),[()=>Q.agentOverview_hierarchyCard_waitingFor_label({names:t(E).join(", ")})]),_(ft,r)},Ie=ft=>{const r=y(()=>n().activeToolName?$a(n().activeToolName,n().activeToolInput||{}):null),f=y(()=>t(r)&&!t(r).hidden?t(r):null);var M=tn(),W=L(M),m=L(W);ea(m,{size:14});var H=C(m,2);{var nt=U=>{var Z=Fe(),pt=K(Z,!0);k(Et=>D(pt,Et),[()=>Q.agentOverview_hierarchyCard_thinking_label()]),_(U,Z)},N=U=>{var Z=Za(),pt=K(Z);k(()=>D(pt,`${t(f).verb??""}
|
|
3
3
|
${t(f).subject??""}`)),_(U,Z)},G=U=>{var Z=Fe(),pt=K(Z);k(()=>D(pt,`${t(f).verb??""}...`)),_(U,Z)},z=U=>{var Z=Fe(),pt=K(Z,!0);k(Et=>D(pt,Et),[()=>Q.agentOverview_hierarchyCard_responding_label()]),_(U,Z)};at(H,U=>{i()?U(nt):t(f)&&t(f).subject?U(N,1):t(f)?U(G,2):U(z,-1)})}$(W);var It=C(W,2);{var ot=U=>{var Z=Ja(),pt=K(Z,!0);k(()=>D(pt,n().lastResponse)),_(U,Z)};at(It,U=>{!t(f)&&n().lastResponse&&U(ot)})}$(M),_(ft,M)},xe=ft=>{var r=en(),f=K(r,!0);k(()=>D(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),k(()=>D(_e,n().name)),_(B,Rt)},$$slots:{default:!0}})}var ge=C(Ot,2);{var Bt=A=>{var B=Le(),Tt=L(B);pe(Tt,{get icon(){return Da},size:"xs",class:"inline"});var Rt=C(Tt);$(B),k(Lt=>D(Rt,` ${Lt??""}`),[()=>Q.agentOverview_hierarchyCard_note_label()]),_(A,B)};at(ge,A=>{R()&&u()&&A(Bt)})}$(ht),_(e,ht);var Qt=de(Dt);return l(),Qt}const sn=50;var rn=O('<span class="sr-only"> </span> <!>',1);function Re(e,a){if(new.target)return oe({component:Re,...e});le(a,!0);const s=()=>$t(R,"$attentionRequest$",c),g=()=>$t(h,"$agentSession$",c),u=()=>$t(p,"$agentIsWaitingForOtherAgents$",c),[c,d]=Me();let i=st(a,"agent",7),o=st(a,"onclick",7),l=st(a,"onmouseenter",7),n=st(a,"onmouseleave",7);const p=We(i().agentId),R=ia(i().agentId),h=oa(i().agentId),v=y(()=>{const x={attentionKind:s()?.kind??null};return g()?na(g(),x):sa({status:i().status,isResponding:i().status==="responding",isWaitingForOtherAgents:u()},{...x,isCompleted:i().status==="completed",isFailed:i().status==="failed"})});var b={get agent(){return i()},set agent(x){i(x),rt()},get onclick(){return o()},set onclick(x){o(x),rt()},get onmouseenter(){return l()},set onmouseenter(x){l(x),rt()},get onmouseleave(){return n()},set onmouseleave(x){n(x),rt()},$set:ie,$on:(x,it)=>ce(a,x,it)};Yt(e,{variant:"ghost",type:"button",class:"background-agent-card relative flex flex-col items-center justify-center gap-1 rounded-full bg-sidebar hover:bg-muted/70 transition-colors cursor-pointer p-2",get style(){return`width: 50px; min-height: 50px; anchor-name: --agent-hierarchy-${i().agentId??""};`},get onclick(){return o()},get onmouseenter(){return l()},get onmouseleave(){return n()},children:(x,it)=>{var E=rn(),I=Ut(E),P=K(I,!0),ct=C(I,2);aa(ct,{get agentId(){return i().agentId},size:32,get state(){return t(v)},get specialist(){return i().specialist}}),k(()=>D(P,i().name)),_(x,E)},$$slots:{default:!0}});var S=de(b);return d(),S}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>'),An=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>'),kn=he('<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>'),$n=he('<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"></path></svg>'),Tn=O('<div class="canvas-content absolute inset-0 flex items-center justify-center p-8 svelte-13q5gm4"><div class="hierarchy-wrapper flex items-start gap-8"><!> <div class="main-hierarchy flex flex-col items-center gap-4"><div class="hierarchy-container flex flex-col items-center gap-4"><div class="roots-row flex justify-center"></div></div></div></div> <!></div> <div class="zoom-controls absolute bottom-4 right-4 flex items-center gap-1 bg-card border border-border rounded-lg shadow-sm p-1"><!> <!> <!> <div class="w-px h-6 bg-border mx-1"></div> <!></div> <div class="absolute bottom-4 left-4 text-xs text-subtle"> </div>',1),Cn=O('<div class="agent-hierarchy-graph relative w-full h-full overflow-hidden bg-background svelte-13q5gm4"><!></div>');function la(e,a){if(new.target)return oe({component:la,...e});le(a,!0);const s=(r,f=wa,M)=>{const W=y(()=>f().agent.isBackground),m=y(()=>f().children.length>0),H=y(()=>t(m)&&f().children[0]?.agent.isBackground?sn:Xa),nt=y(()=>16),N=y(()=>60),G=y(()=>t(m)?Rt(f().children,t(H),i):[]),z=y(()=>(()=>{const F=[];for(let q=0;q<t(G).length;q+=Tt)F.push(t(G).slice(q,q+Tt));return F})()),It=y(()=>t(z).map(F=>F.reduce((q,J)=>q+J.width,0)+Math.max(0,F.length-1)*i)),ot=y(()=>Math.max(...t(It),0));var U=dn(),Z=L(U),pt=L(Z);{var Et=F=>{Re(F,{get agent(){return f().agent},onclick:q=>te(f().agent,q),onmouseenter:()=>x(f().agent.agentId),onmouseleave:it})},we=F=>{ca(F,{get agent(){return f().agent},get activeFile(){return f().activeFile},get activeNote(){return f().activeNote},get agentNames(){return t(Lt)},onclick:q=>te(f().agent,q),onmouseenter:()=>x(f().agent.agentId),onmouseleave:it})};at(pt,F=>{t(W)?F(Et):F(we,-1)})}$(Z);var be=C(Z,2);{var Y=F=>{const q=y(()=>f().agent.status==="waiting"?f().agent.waitingForAgentIds||[]:[]),J=y(()=>t(q).length>0),et=y(()=>t(N)/2);var xt=ln();jt(xt,21,()=>t(z),Ne,(Ht,At,Ct)=>{const Pt=y(()=>t(It)[Ct]),ee=y(()=>(t(ot)-t(Pt))/2),Ae=y(()=>(()=>{let ut=0;return t(At).map(j=>{const St=ut+j.width/2;return ut+=j.width+i,St})})());var ue=cn(),Gt=Ut(ue);gt(Gt,"height",t(N));var qt=L(Gt);{var ke=ut=>{var j=re();k(()=>{gt(j,"d",`M ${t(ot)/2} -${Ua} L ${t(ot)/2} ${t(N)/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();k(()=>{gt(j,"d",`M ${t(ot)/2} 0 L ${t(ot)/2} ${t(N)/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(ke):ut($e,-1)})}var Te=C(qt);jt(Te,17,()=>t(At),Ne,(ut,j,St)=>{const vt=y(()=>t(ee)+t(Ae)[St]),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"),kt=y(()=>t(zt)?"":"text-border"),w=y(()=>t(zt)?2:1),T=y(()=>t(j).type==="batch"?t(N)-A:t(N)),tt=y(()=>Math.abs(t(vt)-t(lt))),X=y(()=>Math.min(t(nt),t(tt)/2));var fe=Be(),Ce=Ut(fe);{var va=wt=>{var dt=re();k(()=>{gt(dt,"d",`M ${t(lt)??""} ${t(N)/3} L ${t(lt)??""} ${t(T)??""}`),gt(dt,"stroke",t(mt)),Xt(dt,0,se(t(kt)),"svelte-13q5gm4"),gt(dt,"stroke-width",t(w))}),_(wt,dt)},ha=wt=>{var dt=re();k(()=>{gt(dt,"d",`M ${t(lt)??""} ${t(N)/3}
|
|
4
4
|
L ${t(lt)??""} ${t(et)-t(X)}
|