@intent-hq/web 2.292.0 → 2.292.2
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/assets/0.DvlMYzZB.css +1 -0
- package/web/app/immutable/assets/5.DBgC2kSL.css +1 -0
- package/web/app/immutable/chunks/{o8OJf27v.js → -g6HPSpm.js} +1 -1
- package/web/app/immutable/chunks/{D0FrwYUQ.js → 06CP606v.js} +1 -1
- package/web/app/immutable/chunks/{DHSIOEln.js → 0c_MAvHq.js} +1 -1
- package/web/app/immutable/chunks/{BUN1yF1L.js → 0icrH9cf.js} +1 -1
- package/web/app/immutable/chunks/{BgntEy_5.js → 0k-rvyGo.js} +1 -1
- package/web/app/immutable/chunks/{aLb41s5K.js → 4gO2zcBv.js} +1 -1
- package/web/app/immutable/chunks/{l7ze94qr.js → 5SjfvWPi.js} +1 -1
- package/web/app/immutable/chunks/{Bp70Vk4U.js → 755iX0_8.js} +1 -1
- package/web/app/immutable/chunks/{BXWlOAyO.js → 9-D0Q0S6.js} +1 -1
- package/web/app/immutable/chunks/{BW3vrEnw.js → 9Pov1PHF.js} +5 -5
- package/web/app/immutable/chunks/{C2-6X3Z3.js → B4pPTpp_.js} +2 -2
- package/web/app/immutable/chunks/{Bgg-wBTF.js → B5GamWhx.js} +1 -1
- package/web/app/immutable/chunks/{HECvQSCC.js → B6FrmuSL.js} +1 -1
- package/web/app/immutable/chunks/{a-vNpAtT.js → B6ZWdQk3.js} +1 -1
- package/web/app/immutable/chunks/{DhMj2plM.js → B6mMXRA1.js} +1 -1
- package/web/app/immutable/chunks/{DshT-ERa.js → B6rxT1rd.js} +1 -1
- package/web/app/immutable/chunks/B7gOkTaS.js +324 -0
- package/web/app/immutable/chunks/{DDghWae5.js → B8W3GGYq.js} +1 -1
- package/web/app/immutable/chunks/{DP7kbgS0.js → B982JlpQ.js} +1 -1
- package/web/app/immutable/chunks/{BrbLiL_x.js → B9UcZ8hB.js} +1 -1
- package/web/app/immutable/chunks/{gjFD8LCr.js → BAAkmbP1.js} +1 -1
- package/web/app/immutable/chunks/{C4WMSxMK.js → BBW6O_MW.js} +1 -1
- package/web/app/immutable/chunks/{CdL46F2Z.js → BCX3VjTL.js} +1 -1
- package/web/app/immutable/chunks/{Cppe-wSX.js → BDfuDlh3.js} +1 -1
- package/web/app/immutable/chunks/{CXbFPa4P.js → BGJxMF_1.js} +1 -1
- package/web/app/immutable/chunks/{CmtSXIlz.js → BJ9BJ5kr.js} +1 -1
- package/web/app/immutable/chunks/{QwMkFOLD.js → BL2SnmmN.js} +1 -1
- package/web/app/immutable/chunks/{C4tLIUi-.js → BMURLuFo.js} +1 -1
- package/web/app/immutable/chunks/{GM1mBWt-.js → BMigEFDf.js} +1 -1
- package/web/app/immutable/chunks/{IoeO06yf.js → BNUfRoau.js} +1 -1
- package/web/app/immutable/chunks/{BE4lD4BS.js → BNaYrmBt.js} +1 -1
- package/web/app/immutable/chunks/{CWhinB9Y.js → BNmJe_fB.js} +12 -12
- package/web/app/immutable/chunks/{Bn8I_2eM.js → BNyX9jNr.js} +1 -1
- package/web/app/immutable/chunks/{xgWQsr-g.js → BOeezh42.js} +3 -3
- package/web/app/immutable/chunks/{1gqakjEk.js → BPKxTIFu.js} +1 -1
- package/web/app/immutable/chunks/{9a62qcQ7.js → BQnKtOqS.js} +1 -1
- package/web/app/immutable/chunks/{ClioxoZj.js → BS6j7OE5.js} +1 -1
- package/web/app/immutable/chunks/{h3ky2Xtl.js → BSkHzXor.js} +1 -1
- package/web/app/immutable/chunks/{3Y9y-sdV.js → BUYS7rif.js} +1 -1
- package/web/app/immutable/chunks/{BHNxqf_R.js → BUlvUEKW.js} +1 -1
- package/web/app/immutable/chunks/{DCuB-wUt.js → BVMJedK4.js} +1 -1
- package/web/app/immutable/chunks/{D7_sioj1.js → BW2PW2g6.js} +1 -1
- package/web/app/immutable/chunks/{h1uEjX6Q.js → BWg4csX2.js} +1 -1
- package/web/app/immutable/chunks/{DKmM0bqR.js → BZQ9g1LX.js} +1 -1
- package/web/app/immutable/chunks/{B2hdZBro.js → BZk3o0D4.js} +1 -1
- package/web/app/immutable/chunks/{Tbbe1dbh.js → BZzTwe10.js} +1 -1
- package/web/app/immutable/chunks/{BFY-b65a.js → Ba8-1FHo.js} +1 -1
- package/web/app/immutable/chunks/{Uc38XdXI.js → BaPbYStu.js} +1 -1
- package/web/app/immutable/chunks/{DNMw7H4R.js → BaT1EUX1.js} +1 -1
- package/web/app/immutable/chunks/{BaqlfWKa.js → Bal--q4v.js} +1 -1
- package/web/app/immutable/chunks/{47q6TsqV.js → BaqTNCTY.js} +7 -7
- package/web/app/immutable/chunks/{BLqH6j99.js → BcYgPYED.js} +1 -1
- package/web/app/immutable/chunks/{DWGee_yL.js → Bh9BKMsM.js} +1 -1
- package/web/app/immutable/chunks/{DWQ1jwFW.js → Bi_XhyyE.js} +1 -1
- package/web/app/immutable/chunks/{fqEAyqsN.js → BluiuFfy.js} +1 -1
- package/web/app/immutable/chunks/{Cowgfae1.js → Bo_2xd9j.js} +1 -1
- package/web/app/immutable/chunks/{CgjVDtx1.js → BpHN1kIK.js} +1 -1
- package/web/app/immutable/chunks/{4tDE6wja.js → BqJBJZqA.js} +1 -1
- package/web/app/immutable/chunks/{CKHgkzsh.js → Bqm96CUD.js} +1 -1
- package/web/app/immutable/chunks/{B-68oH2S.js → BrBBHBKk.js} +1 -1
- package/web/app/immutable/chunks/{DI0BmYmu.js → BsXlY_j6.js} +1 -1
- package/web/app/immutable/chunks/{DUgG-2k6.js → Bsr5f7H7.js} +1 -1
- package/web/app/immutable/chunks/{D44dgkjW.js → BtOZE8-p.js} +2 -2
- package/web/app/immutable/chunks/{B-dUAUrx.js → Btm5xkvu.js} +1 -1
- package/web/app/immutable/chunks/{LldlwJUi.js → Bvl8Oxba.js} +1 -1
- package/web/app/immutable/chunks/{C99wXtMe.js → BxlgI-wG.js} +1 -1
- package/web/app/immutable/chunks/{B5iywc0c.js → BzlGto81.js} +1 -1
- package/web/app/immutable/chunks/{DsSlZ8Hs.js → C16OaEIp.js} +1 -1
- package/web/app/immutable/chunks/{RKlkXviB.js → C1QeO17D.js} +1 -1
- package/web/app/immutable/chunks/{CekHYIsk.js → C2FQclZr.js} +1 -1
- package/web/app/immutable/chunks/{BSwJfQ4v.js → C3frK44m.js} +1 -1
- package/web/app/immutable/chunks/{DKaqc51P.js → C5mI5hjq.js} +1 -1
- package/web/app/immutable/chunks/{BGSYASTg.js → C6Oo8BXq.js} +1 -1
- package/web/app/immutable/chunks/{DGzLoy-z.js → C6e-2qm-.js} +1 -1
- package/web/app/immutable/chunks/{D0lwnaH3.js → C7GMlsQo.js} +1 -1
- package/web/app/immutable/chunks/{n50bwg6w.js → C7MuVaSF.js} +2 -2
- package/web/app/immutable/chunks/{Duw-IZjh.js → CB-ZN9Uq.js} +1 -1
- package/web/app/immutable/chunks/{BnQ8VATH.js → CBgR5nXI.js} +1 -1
- package/web/app/immutable/chunks/{BRCenWT1.js → CCXwqeRn.js} +1 -1
- package/web/app/immutable/chunks/{DQ0fhYWC.js → CDBtKfA5.js} +1 -1
- package/web/app/immutable/chunks/{DkZNeDFv.js → CDKc6BIg.js} +1 -1
- package/web/app/immutable/chunks/{BGhLlR2Z.js → CFniM5qB.js} +1 -1
- package/web/app/immutable/chunks/{BekOxliD.js → CGhxkrID.js} +1 -1
- package/web/app/immutable/chunks/{C2v5W_yU.js → CIJAu6bi.js} +1 -1
- package/web/app/immutable/chunks/{BjdiF3NU.js → CJ5pAPpY.js} +1 -1
- package/web/app/immutable/chunks/{DvbSI76r.js → CJcny7E2.js} +2 -2
- package/web/app/immutable/chunks/{CsY3AFxY.js → CJhyAq2H.js} +1 -1
- package/web/app/immutable/chunks/{DRKAw6pI.js → CJpj7lk7.js} +1 -1
- package/web/app/immutable/chunks/{B4RPI3PE.js → CKJsoFTP.js} +1 -1
- package/web/app/immutable/chunks/{H0XHH9Lx.js → CKcgUe6r.js} +1 -1
- package/web/app/immutable/chunks/{xO5nwwWo.js → CKxaBxPr.js} +1 -1
- package/web/app/immutable/chunks/{CyFgel5k.js → CLfThpJq.js} +1 -1
- package/web/app/immutable/chunks/{DYFkelx6.js → CLfafQTB.js} +1 -1
- package/web/app/immutable/chunks/{B3HK-q5A.js → CNIQVMU4.js} +1 -1
- package/web/app/immutable/chunks/{Bc_8WxDl.js → CN_OP-b-.js} +1 -1
- package/web/app/immutable/chunks/{DBNNnuPG.js → CWD3GqNk.js} +1 -1
- package/web/app/immutable/chunks/{bHHGnVsz.js → CWt47ruh.js} +1 -1
- package/web/app/immutable/chunks/{BhHMVKkK.js → CXUQsTIM.js} +1 -1
- package/web/app/immutable/chunks/CXhBPURx.js +1 -0
- package/web/app/immutable/chunks/{B5F8O-gO.js → C_8YlGDA.js} +1 -1
- package/web/app/immutable/chunks/{BvW_0loN.js → C_km1Zzs.js} +1 -1
- package/web/app/immutable/chunks/{DVnaYm9M.js → CaYE_9eh.js} +1 -1
- package/web/app/immutable/chunks/{C4QILlBJ.js → Cc7prgX7.js} +1 -1
- package/web/app/immutable/chunks/{CNx8jMag.js → CduLLDtl.js} +3 -3
- package/web/app/immutable/chunks/{CRhEb0yi.js → Cim0jDEO.js} +3 -3
- package/web/app/immutable/chunks/{CUtP3PhY.js → CjWNs3hA.js} +1 -1
- package/web/app/immutable/chunks/{D7mzoI7P.js → Cn8FrGio.js} +1 -1
- package/web/app/immutable/chunks/{DyJ_15yQ.js → CpvtLd5_.js} +1 -1
- package/web/app/immutable/chunks/{s0Q29iiv.js → CqMkgp96.js} +1 -1
- package/web/app/immutable/chunks/{Corw6Jrh.js → CrDYXSjm.js} +1 -1
- package/web/app/immutable/chunks/{BTkrC1UW.js → CsL35l_T.js} +1 -1
- package/web/app/immutable/chunks/{-GL8Xg-u.js → CsQ2FSIs.js} +1 -1
- package/web/app/immutable/chunks/{DsD7VXOH.js → CttvdLl2.js} +1 -1
- package/web/app/immutable/chunks/{W4t3dmSv.js → Cugu1F8N.js} +1 -1
- package/web/app/immutable/chunks/{C5vF3pAx.js → CvPs_8UD.js} +1 -1
- package/web/app/immutable/chunks/{YNqVM6Pn.js → Cxik8d0T.js} +1 -1
- package/web/app/immutable/chunks/{CabEUy8J.js → Cyt8YDgF.js} +1 -1
- package/web/app/immutable/chunks/{BL9BSWt_.js → D08_U0B1.js} +1 -1
- package/web/app/immutable/chunks/{Bw0bJwpw.js → D0pB9PrJ.js} +1 -1
- package/web/app/immutable/chunks/{lbGH4X3r.js → D2avzeRb.js} +1 -1
- package/web/app/immutable/chunks/{DhCIIOya.js → D3DoEc8v.js} +1 -1
- package/web/app/immutable/chunks/{BEsSRpwf.js → D3RlZ9WF.js} +1 -1
- package/web/app/immutable/chunks/{Vj7OREkP.js → D4YIggqT.js} +1 -1
- package/web/app/immutable/chunks/{DDI0uI_H.js → D5sJ2bUJ.js} +1 -1
- package/web/app/immutable/chunks/{Cal0nWOf.js → D74BjVjF.js} +1 -1
- package/web/app/immutable/chunks/{DBLawIp_.js → D74IXn65.js} +1 -1
- package/web/app/immutable/chunks/{Cxk1hw1U.js → D7n0G88C.js} +1 -1
- package/web/app/immutable/chunks/{BHL5MsfB.js → D8yPtwVB.js} +1 -1
- package/web/app/immutable/chunks/{Bqwi0BWF.js → DBUouGIr.js} +1 -1
- package/web/app/immutable/chunks/{DOVovLIq.js → DCKEIO-U.js} +1 -1
- package/web/app/immutable/chunks/{B-gmfAcJ.js → DEiZJ0yd.js} +1 -1
- package/web/app/immutable/chunks/{DRkmccaa.js → DFA3yOc-.js} +1 -1
- package/web/app/immutable/chunks/{D_J63Zyl.js → DFlL22UR.js} +2 -2
- package/web/app/immutable/chunks/{BrMgU118.js → DH6mjHQD.js} +1 -1
- package/web/app/immutable/chunks/DHqL-9TB.js +1 -0
- package/web/app/immutable/chunks/DIZ4FVb2.js +18 -0
- package/web/app/immutable/chunks/{DUl0e4O4.js → DInKHbl0.js} +1 -1
- package/web/app/immutable/chunks/{DtYBp20I.js → DLpUeiQt.js} +1 -1
- package/web/app/immutable/chunks/{CwQ4F1Ab.js → DLuzW_sw.js} +1 -1
- package/web/app/immutable/chunks/{kslXii-P.js → DMsHebUD.js} +1 -1
- package/web/app/immutable/chunks/{Bi0GbwSO.js → DOIfYJL0.js} +1 -1
- package/web/app/immutable/chunks/{Dn9JK5a2.js → DOiAjI4X.js} +1 -1
- package/web/app/immutable/chunks/{CFBVUms-.js → DPXetxx7.js} +1 -1
- package/web/app/immutable/chunks/{BZNhUzh7.js → DPgIFT9a.js} +1 -1
- package/web/app/immutable/chunks/{qiHCX_SZ.js → DRXZKet6.js} +1 -1
- package/web/app/immutable/chunks/{73DumGL9.js → DU55s1te.js} +1 -1
- package/web/app/immutable/chunks/{BRyWfrpo.js → DULsS44V.js} +1 -1
- package/web/app/immutable/chunks/{C9iz-mkw.js → DV_kwNjV.js} +1 -1
- package/web/app/immutable/chunks/{BcLb4U6k.js → DV_mjaDS.js} +1 -1
- package/web/app/immutable/chunks/{wozemaTW.js → DXt4bqo0.js} +3 -3
- package/web/app/immutable/chunks/{CW4guVPa.js → DYc78UPr.js} +1 -1
- package/web/app/immutable/chunks/{ZWPXcFOT.js → DZEyizFV.js} +1 -1
- package/web/app/immutable/chunks/{CeOSarF3.js → DbIzlA5K.js} +1 -1
- package/web/app/immutable/chunks/{Xj89EZIy.js → DbR25MIl.js} +1 -1
- package/web/app/immutable/chunks/{CvLqwfko.js → Dc9RwHk1.js} +1 -1
- package/web/app/immutable/chunks/{BDaXmtmH.js → DcDNc2X4.js} +1 -1
- package/web/app/immutable/chunks/{C3J1SYpT.js → DdRUG063.js} +1 -1
- package/web/app/immutable/chunks/{CIP1ZfWd.js → DdaG7Cca.js} +2 -2
- package/web/app/immutable/chunks/{BA_vIobR.js → DdkpKwl0.js} +1 -1
- package/web/app/immutable/chunks/{ClCKezvS.js → DeCG5uo6.js} +2 -2
- package/web/app/immutable/chunks/{BJrl0upY.js → DeVZOPW7.js} +1 -1
- package/web/app/immutable/chunks/{CFvkwWFr.js → DeimPXf2.js} +1 -1
- package/web/app/immutable/chunks/{CehXkbc-.js → Df4yP1J2.js} +1 -1
- package/web/app/immutable/chunks/{Cm5CZ7YY.js → Dg6tVjEn.js} +1 -1
- package/web/app/immutable/chunks/{ZvX5e3AH.js → Dg93Tv7B.js} +1 -1
- package/web/app/immutable/chunks/{Du8OSMBA.js → DgtWaWFZ.js} +1 -1
- package/web/app/immutable/chunks/{CRtL6sYK.js → Dh1NyToj.js} +1 -1
- package/web/app/immutable/chunks/{lr5ofxhO.js → Dh9qgtqK.js} +1 -1
- package/web/app/immutable/chunks/{C1YheCPG.js → DhkHgLRA.js} +1 -1
- package/web/app/immutable/chunks/{DHfLNRUe.js → Di18wyjg.js} +1 -1
- package/web/app/immutable/chunks/{DB0od0be.js → DiGqo-KH.js} +1 -1
- package/web/app/immutable/chunks/{D2Fb9aao.js → Djt5RN4M.js} +1 -1
- package/web/app/immutable/chunks/{C6yKW00v.js → DkwBacqz.js} +1 -1
- package/web/app/immutable/chunks/{9RsJ-LA0.js → Dky-2Jfq.js} +1 -1
- package/web/app/immutable/chunks/{Bebubi_u.js → DkzDjzB9.js} +2 -2
- package/web/app/immutable/chunks/{an5t-R7s.js → Dl-1cK26.js} +1 -1
- package/web/app/immutable/chunks/{Dj03b8fr.js → DlWNLllN.js} +1 -1
- package/web/app/immutable/chunks/{VIItGFPL.js → Dn1B9mMU.js} +3 -3
- package/web/app/immutable/chunks/{BGFHZ0Gn.js → DofGY-1I.js} +1 -1
- package/web/app/immutable/chunks/{y6VRBo2M.js → DuQHnwpD.js} +1 -1
- package/web/app/immutable/chunks/{CDGvuOsQ.js → Dw1YkpRi.js} +1 -1
- package/web/app/immutable/chunks/{D3jsqDWq.js → DyWVLmAp.js} +1 -1
- package/web/app/immutable/chunks/{CtFCyWOY.js → DyqEo12-.js} +1 -1
- package/web/app/immutable/chunks/{B7Wb6zTq.js → K1lMPseK.js} +1 -1
- package/web/app/immutable/chunks/{Bdylonvo.js → LMWUF5gW.js} +1 -1
- package/web/app/immutable/chunks/{_3D340Va.js → LXOG-o0_.js} +1 -1
- package/web/app/immutable/chunks/{DY3dk38M.js → Ly5i90Nv.js} +1 -1
- package/web/app/immutable/chunks/{DwDCAMLG.js → M2HNRaSd.js} +1 -1
- package/web/app/immutable/chunks/{Brep-rEI.js → OT3S-JEx.js} +3 -3
- package/web/app/immutable/chunks/{D8DZcNyr.js → PTBua5Xh.js} +1 -1
- package/web/app/immutable/chunks/{Bu8Bi7-A.js → Q73TKJJV.js} +1 -1
- package/web/app/immutable/chunks/{BxWSOWVO.js → QOrjinFU.js} +3 -3
- package/web/app/immutable/chunks/{DYtAwHmE.js → RM6OQSCe.js} +1 -1
- package/web/app/immutable/chunks/{xKX_8KWn.js → SR358tmD.js} +1 -1
- package/web/app/immutable/chunks/{BnbR-3eC.js → SxaNyqKY.js} +1 -1
- package/web/app/immutable/chunks/{aVsZmAEF.js → V8s0XlXE.js} +1 -1
- package/web/app/immutable/chunks/{CJhZDVuE.js → WIFxQL3B.js} +6 -6
- package/web/app/immutable/chunks/{BrdmgcMW.js → WtfFsxX1.js} +1 -1
- package/web/app/immutable/chunks/{CNB2bBwk.js → XsSJjm3Z.js} +8 -8
- package/web/app/immutable/chunks/{DlAbpA5d.js → YOgmIoTW.js} +1 -1
- package/web/app/immutable/chunks/{Dm7OUuES.js → ZpS8pGBT.js} +1 -1
- package/web/app/immutable/chunks/{FNHey2fE.js → cg-GVC1x.js} +1 -1
- package/web/app/immutable/chunks/{WTd8htj2.js → d6W1ZPqA.js} +1 -1
- package/web/app/immutable/chunks/{BdllAkCb.js → gE1gxY1Y.js} +1 -1
- package/web/app/immutable/chunks/{0EWUI_tF.js → hI2h2HCD.js} +1 -1
- package/web/app/immutable/chunks/{EpMOyykO.js → hO5lTYJC.js} +1 -1
- package/web/app/immutable/chunks/{CACMvEIk.js → o5rKfw07.js} +1 -1
- package/web/app/immutable/chunks/{D8dxdzMn.js → olmjZOKg.js} +1 -1
- package/web/app/immutable/chunks/{D1gMbWP8.js → pO3bPIuE.js} +1 -1
- package/web/app/immutable/chunks/{DN9Sgz-I.js → pTVl2JiY.js} +1 -1
- package/web/app/immutable/chunks/{ObcETXIn.js → qDe1FahS.js} +4 -4
- package/web/app/immutable/chunks/{CHF-Yq0C.js → rzBANR1d.js} +1 -1
- package/web/app/immutable/chunks/{z5Kqmpp_.js → tKJW3PqB.js} +1 -1
- package/web/app/immutable/chunks/{aCBgdpmi.js → uCtJ9vOe.js} +4 -4
- package/web/app/immutable/chunks/{BhEPk3lK.js → uZvRsrHT.js} +1 -1
- package/web/app/immutable/chunks/{D8a7wHlQ.js → vAfS3WCg.js} +1 -1
- package/web/app/immutable/chunks/{U2CIkvme.js → xt2PoXl6.js} +1 -1
- package/web/app/immutable/chunks/{BiTsq1kw.js → zL-pIvaA.js} +1 -1
- package/web/app/immutable/chunks/{DQ7w3NbE.js → zqim2n1k.js} +1 -1
- package/web/app/immutable/entry/{app.D05YlZME.js → app.VT7TaiVu.js} +2 -2
- package/web/app/immutable/entry/start.290_qSid.js +1 -0
- package/web/app/immutable/nodes/{0.LnuswXdL.js → 0.BqGgzWCn.js} +1 -1
- package/web/app/immutable/nodes/{1.BBz2p_l7.js → 1.C4zqRLiW.js} +1 -1
- package/web/app/immutable/nodes/{10.Bkss7kyV.js → 10.e5SLQ0Dz.js} +1 -1
- package/web/app/immutable/nodes/{12.ahtCER6A.js → 12.ovtxIhM8.js} +1 -1
- package/web/app/immutable/nodes/{13.DYGu0QHS.js → 13.Bu_iJM_J.js} +1 -1
- package/web/app/immutable/nodes/{14.CHRRgsAs.js → 14.BfSKkaSq.js} +1 -1
- package/web/app/immutable/nodes/{15.De0cpvot.js → 15.LrePapt-.js} +1 -1
- package/web/app/immutable/nodes/{16.DJqmOr4R.js → 16.BXG5rqkJ.js} +2 -2
- package/web/app/immutable/nodes/2.TpeCpptI.js +9 -0
- package/web/app/immutable/nodes/{3.CjrKR4es.js → 3.BUPhRmT2.js} +1 -1
- package/web/app/immutable/nodes/{4.Cc1Wrh3X.js → 4.DsmDqqJv.js} +1 -1
- package/web/app/immutable/nodes/{5.riH2s22o.js → 5.DAbG3X_i.js} +1 -1
- package/web/app/immutable/nodes/{6.DFzfBxxH.js → 6.CsCXGtvb.js} +1 -1
- package/web/app/immutable/nodes/{7.DuBvggKz.js → 7.Cc-Pwt7d.js} +1 -1
- package/web/app/immutable/nodes/{8.D0_snN-z.js → 8.B7-LYwR0.js} +4 -4
- package/web/app/immutable/nodes/{9.FxuJzZaQ.js → 9.CSCz9Oh5.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +10 -10
- package/web/app/immutable/assets/0.Hnrlh_nF.css +0 -1
- package/web/app/immutable/assets/5.MJsnOXij.css +0 -1
- package/web/app/immutable/chunks/CZOawK4P.js +0 -18
- package/web/app/immutable/chunks/Cf3hiWsI.js +0 -1
- package/web/app/immutable/chunks/Dmk6CuVf.js +0 -324
- package/web/app/immutable/chunks/l87kbv25.js +0 -1
- package/web/app/immutable/entry/start.CltNpI3_.js +0 -1
- package/web/app/immutable/nodes/2.0WZE4VZ1.js +0 -9
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as a,C as n}from"./WIFxQL3B.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import{m as rs,j as lt}from"./DVkfuwKw.js";import{bo as c}from"./DMsRLycu.js";import{Gf as ve,Gt as o,c as A,bR as ns,g as U,hv as as,mC as T,p0 as os,kU as ls,wf as cs,mB as W,qd as is,we as ct,qc as it,mo as ut,mt as us,l7 as ds,fv as dt,kQ as fs,li as gs,mR as $,hY as ps,aN as ie,aI as re}from"./Ba4gy30X.js";import{bP as hs,cT as _s,aZ as ms,aF as bs,ce as Ss,bH as ys,bj as ks,bp as Cs,am as ws,cA as vs,cH as As,c0 as Ts,be as Is}from"./Cy5UaoOp.js";import{a as Rs,g as Ps,b as Es,i as me,C as ue}from"./DypB-Dwi.js";import{bx as xs}from"./XsSJjm3Z.js";import{q as Ms}from"./FCmf5yeg.js";import{d as Ns}from"./Dg4AJKkW.js";import{t as C,u as $s}from"./AEjnVR5F.js";var be=(e=>(e.ACTIVATING="activating",e.ACTIVE="active",e.ERROR="error",e))(be||{});function Bo(e){return e.isPending===!0||e.status==="pending"}function Ls(e,t){const s=e.provider||e.metadata?.provider||e.config?.provider;if(s)return s;if(e.model)return(ve(e.model).providerId??t)||void 0}function Go(e){return e.messages.length>0}function Os(e){return e.filter(t=>t.type==="text").map(t=>t.text??"").join("")}function Ds(e){return e.contentBlocks?Os(e.contentBlocks):""}const zo=o.createSelector(e=>e.principal),Q=o.createSelector(Rs),I=o.createSelector(e=>{const t=e.principal;return t?.status==="ready"&&t.context!==null&&t.context===Q.select(e)?t.snapshot:null}),Zo=o.createSelector(e=>I.select(e)?.capabilities.agentPlugins===1),Ko=o.createSelector(e=>I.select(e)?.capabilities.messageBlockPages===1),L=o.createSelector(e=>{const t=I.select(e);return t?t.capabilities.hostMembership?t.principal.hostRole??null:t.principal.isAdministrator?"owner":"guest":null}),H=o.createSelector(e=>L.select(e)==="owner"),ft=o.createSelector(e=>e.principal?.status==="revoked"&&e.principal.context!==null&&e.principal.context===Q.select(e)),Vo=o.createSelector(e=>{const t=L.select(e);return t==="member"||t==="guest"||ft.select(e)}),Qo=o.createSelector(e=>H.select(e)?Q.select(e):null),Us=o.createSelector(e=>{const t=L.select(e);return t==="owner"||t==="member"}),J=o.createSelector(e=>Ms.select(e)===!0&&!!I.select(e)&&e.principal.refreshedPresentationVersion===e.principal.presentationVersion),Yo=o.createSelector(e=>{const t=J.select(e),s=I.select(e)?.capabilities;return{hostMembership:t&&s?.hostMembership===!0,manageHostMembers:t&&s?.hostMembership===!0&&H.select(e),personalPairing:t&&s?.personalPairing===!0,authenticatedDevices:t&&s?.authenticatedDevices===!0,collaborationIdentity:t&&s?.collaborationIdentity===!0}}),G=o.createSelector(Ps),Xo=o.createSelector(Es),Jo=o.createSelector(e=>Us.select(e)&&(H.select(e)||J.select(e)));function Ws(e,t){const s=e.indexOf("/"),r=s===-1?void 0:e.slice(0,s),n=s===-1?e:e.slice(s+1),a=t?.indexOf("/")??-1,i=t&&a!==-1?t.slice(0,a):void 0;return r&&i&&r.toLowerCase()===i.toLowerCase()?n:e}function gt(e,t,s){return`${Ws(e,s)} #${t}`}function Ae(e){return e.resource?.repository.provider==="gitlab"}function el(e,t){return`${Ae(e)?"!":"#"}${t}`}function Hs(e){return e.url??(e.resource||e.monitorAvailability||e.url===null?"":`https://github.com/${e.repo}/pull/${e.prNumber}`)}function Fs(e,t){return Ae(e)?`${e.repo} !${e.prNumber}`:gt(e.repo,e.prNumber,t)}function tl(e){return e.resource?rs(e.resource):e.monitorAvailability?`unresolved:${e.monitorId}`:`${e.repo.toLowerCase()}#${e.prNumber}`}function sl(e){switch(e.monitorAvailability?.state){case void 0:case"available":return;case"pending":return c.chat_chatMessage_loading_label();case"reconnect-required":return c.chat_monitoredPrs_status_reconnect();case"restricted":return c.chat_monitoredPrs_status_restricted();case"unresolved":return c.chat_monitoredPrs_status_unresolved();default:return c.chat_monitoredPrs_status_unknown()}}function rl(e){return e.isDraft===null||e.hasConflicts===null||e.isBehind===null||Object.values(e.checks).some(t=>t===null)||e.approvals.have===null||e.approvals.changesRequested===null||e.availability!==void 0&&Object.values(e.availability).some(t=>t!=="available")}function nl(e,t){if(!Ae(t)||!t.resource)return e;const s=new URL(t.resource.repository.instanceBaseUrl);return`${e} (${s.host}${s.pathname.replace(/\/$/,"")})`}function pt(e){return e===A.Halted||e===A.Completed||e===A.Error||e===A.Deleted||e==="completed"||e==="failed"||e==="error"||e==="deleted"}function ht(e){return e.status===A.Halted?!1:!!(e.turnInFlight||e.liveTurnOpen||e.isStreaming||e.isProcessing||e.isResponding||e.isWaitingOnTool||e.lastToolUse?.status?.toLowerCase()==="running")}function _t(e){return e.status===A.Resuming||pt(e.status)||ht(e)?!1:!!(e.isWaitingForOtherAgents||e.status===A.Waiting||e.status==="waiting")}function js(e){return pt(e.status)||_t(e)?!1:!!(ht(e)||e.activationState==="activating"||e.status===A.Resuming||e.status===A.Active||e.status===A.Processing||e.status==="active"||e.status==="processing"||e.status==="responding"||e.status==="streaming")}function al(e){return{isStreaming:e.isStreaming,isProcessing:e.isProcessing,isResponding:e.isResponding,turnInFlight:e.turnInFlight,liveTurnOpen:e.liveTurnOpen,isWaitingOnTool:e.isWaitingOnTool,isWaitingForOtherAgents:e.isWaitingForOtherAgents,lastToolUse:e.lastToolUse,activationState:e.activationState,status:e.status}}function qs(e){if(!e)return null;const t=e.lastUserMessage||"";let s=e.lastAgentResponse||"",r;const n=e.digest||void 0,a=e.lastMessageRole==="user"||e.lastMessageRole==="assistant"?e.lastMessageRole:void 0;e.isStreaming&&e.lastToolUse?.name?(r={type:"tool_use",id:`live-tool:${e.id}`,name:e.lastToolUse.name,input:{}},s=""):!s&&!e.isStreaming&&e.lastToolUse?.name&&(r={type:"tool_use",id:`wire-tool:${e.id}`,name:e.lastToolUse.name,input:e.lastToolUse.input??{}});const i=e.metadata?.completionReport||void 0,l=ns(e)??void 0;return{id:e.id,name:e.name||c.chat_chatHeader_newChat_fallback(),status:e.status,lastUserMessage:t,lastResponse:s,lastToolUse:r,fileChanges:(e.fileChanges||[]).map(u=>({path:u.path,action:u.type||u.action||"modify",timestamp:u.timestamp||new Date().toISOString()})),messages:e.messages||[],completionReport:i,digest:n,parentAgentId:l,lastMessageRole:a}}function ol(e,t){if(!e)return"";const s=e.split(`
|
|
2
|
+
`);for(;s.length>0&&s[s.length-1].trim()==="";)s.pop();return s.length===0?"":s.length<=t?s.join(`
|
|
3
|
+
`):`${s.slice(-t).join(`
|
|
4
|
+
`)}...`}const Bs={prefix:"fas",iconName:"note-sticky",icon:[16,16,[],"e002","M2 3.75A.75.75 0 0 1 2.75 3h10.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 3.75ZM2 8a.75.75 0 0 1 .75-.75h10.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 8Zm0 4.25a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Z"]},_={"file-read":Is,"file-write":Ts,"file-delete":As,terminal:vs,search:hs,"context-engine":ws,api:Cs,workspace:ks,note:Bs,meta:ys,agent:Ss,task:bs,browser:ms,generic:_s},Gs=["workspace-mcp_","workspace_mcp_","filesystem_","browser-mcp_","browser_mcp_"],zs=["_workspace-mcp","-workspace-mcp","_playwright","_browser_mcp","_context_7","_svelte","_npx","_sequential_thinking","_figma","_slack","_sentry","_github","_linear","_notion","_jira"];function mt(e){return!!e&&/^(mcp__|mcp\.)/i.test(e)}const Ue=/select:\s*mcp(__|\.)/i,Zs=/^select:\s*mcp(__|\.)/i;function Ks(e,t={}){if(B(e).toLowerCase()==="toolsearch"||typeof t.query=="string"&&Zs.test(t.query))return!0;const s=typeof t._acpTitle=="string"?t._acpTitle:"";return Ue.test(e||"")||Ue.test(s)}function B(e){if(!e)return"";const t=e.match(/\/\/local\/mcp\/(.+)$/);t&&(e=t[1]),e=e.replace(/^mcp__[^_]+__/,""),e=e.replace(/^mcp\.[^.]+\./,"");const s=e.toLowerCase();for(const n of Gs)if(s.startsWith(n)){e=e.slice(n.length);break}let r=!0;for(;r;){r=!1;const n=e.toLowerCase();for(const a of zs)if(n.endsWith(a)){e=e.slice(0,-a.length),r=!0;break}}return e}function bt(e){const t=e.trim();return/\s/.test(t)?/^[A-Za-z0-9._-]+:\s/.test(t)?!0:t.split(/\s+/).length>=3:!1}function St(e){const t=e.trim().match(/^List\s+directory\s+\x60([^\x60]+)\x60$/i);if(!t)return null;const s=t[1].trim();return s.length===0?null:{category:"file-read",icon:_["file-read"],verb:c.chat_toolClassifier_listContents_label(),subject:P(s)||s,path:M(s)||null,filePath:s||null,isDirectory:!0}}function yt(e){const t=e.toLowerCase(),s=t.includes("agent")?"agent":t.includes("note")?"note":t.includes("workspace")?"workspace":"generic";return{category:s,icon:_[s],verb:f(e.trim(),120),subject:null,path:null}}const Vs=[{suffix:"_workspace-mcp",source:"workspace-mcp"},{suffix:"-workspace-mcp",source:"workspace-mcp"},{suffix:"_browser_mcp",source:"browser-mcp"},{suffix:"_playwright",source:"playwright"},{suffix:"_sequential_thinking",source:"sequential-thinking"},{suffix:"_context_7",source:"context7"},{suffix:"_figma",source:"figma"},{suffix:"_sentry",source:"sentry"},{suffix:"_github",source:"github"},{suffix:"_linear",source:"linear"},{suffix:"_slack",source:"slack"},{suffix:"_notion",source:"notion"},{suffix:"_jira",source:"jira"},{suffix:"_svelte",source:"svelte"},{suffix:"_npx",source:"npx"}],Qs=[{prefix:"workspace-mcp_",source:"workspace-mcp"},{prefix:"workspace_mcp_",source:"workspace-mcp"},{prefix:"browser-mcp_",source:"browser-mcp"},{prefix:"browser_mcp_",source:"browser-mcp"},{prefix:"filesystem_",source:"filesystem"}],We={"github-api":"github",linear:"linear",glean:"glean"},Ys=new Set(["view","codebase-retrieval","codebase_retrieval","launch-process","launch_process","read-process","read_process","write-process","write_process","kill-process","kill_process","list-processes","list_processes","str-replace-editor","str_replace_editor","save-file","save_file","remove-files","remove_files","web-search","web_search","web-fetch","web_fetch","conversation-retrieval","conversation_retrieval","git-commit-retrieval","git_commit_retrieval","bash","read","edit","run","find","grep"]);function Xs(e){if(!e)return;const t=e.match(/\/\/local\/mcp\/(.+)$/);t&&(e=t[1]);const s=e.match(/^mcp__([^_]+)__/);if(s)return s[1].toLowerCase();const r=e.match(/^mcp\.([^.]+)\./);if(r)return r[1].toLowerCase();const n=e.toLowerCase();for(const{prefix:a,source:i}of Qs)if(n.startsWith(a))return i;for(const{suffix:a,source:i}of Vs)if(n.endsWith(a))return i;if(We[n])return We[n];Ys.has(n)}function E(e){return typeof e=="string"?e:e==null?"":String(e)}function f(e,t=50){const s=E(e);return s.length>t?`${s.substring(0,t)}...`:s}function Te(e){if(e==null)return null;if(typeof e=="string")return e;if(Array.isArray(e)){const t=e.filter(s=>s&&typeof s=="object"&&s.type==="text"&&s.text).map(s=>s.text);return t.length>0?t.join(`
|
|
5
|
+
`):null}if(typeof e=="object"){const t=e;if(t.text&&typeof t.text=="string")return t.text;if(Array.isArray(t.content))return Te(t.content)}return null}function x(e,t=25){return f(e,t)}function P(e){const t=E(e);return t.split("/").pop()||t}function M(e){const s=E(e).split("/");return s.length<=1?"":(s.pop(),s.join("/"))}function q(e){return e.trim().replace(/^([\x60'"])(.*)\1$/,"$2")}function He(e){return e.match(/^read\s+(?:file\s+)?([\x60'"])(.+)\1\s*$/i)?.[2]??null}const Js=["codebase-retrieval","codebase_retrieval","git-commit-retrieval","git_commit_retrieval","conversation-retrieval","conversation_retrieval"],er=["codebase_retrieval","git_commit_retrieval","conversation_retrieval"];function tr(e){if(!e)return!1;const t=B(e).toLowerCase();return Js.some(s=>t===s)||er.some(s=>t.includes(s))}function sr(e){if(!e)return"workspace";const t=e.match(/ws\.(note|comment|task|agent|git|workspace|event|script|browser|terminal|file|pr|primitive|crossWorkspace)\./);if(!t)return"workspace";switch(t[1]){case"note":case"comment":return"note";case"task":return"task";case"agent":return"agent";case"git":case"pr":return"api";case"browser":return"browser";case"terminal":case"script":return"terminal";case"file":return/ws\.file\.(read|list)/.test(e)?"file-read":/ws\.file\.(write|mkdir|rename)/.test(e)?"file-write":/ws\.file\.delete/.test(e)?"file-delete":"workspace";case"event":case"workspace":case"primitive":case"crossWorkspace":default:return"workspace"}}function rr(e,t){if(t.title&&e.toLowerCase()===E(t.title).toLowerCase()){if(!(t.content!==void 0||t.heading!==void 0||t.status!==void 0||t.taskText!==void 0||t.lineStart!==void 0||t.lineEnd!==void 0||t.noteId!==void 0))return{category:"workspace",icon:_.workspace,verb:c.chat_toolClassifier_renameWorkspace_label(),subject:f(t.title,30),path:null};if(t.old_text!==void 0&&t.new_text!==void 0)return{category:"note",icon:_.note,verb:c.chat_toolClassifier_editNote_label(),subject:x(t.title,25),path:null};if(t.start_line!==void 0&&t.end_line!==void 0)return{category:"note",icon:_.note,verb:c.chat_toolClassifier_editNoteLines_label(),subject:`${x(t.title,15)} (${t.start_line}-${t.end_line})`,path:null};if(t.content!==void 0&&(t.heading!==void 0||t.position!==void 0)){const r=t.heading?f(E(t.heading).replace(/^#+\s*/,""),20):null,n=t.position&&t.position!=="end"?t.position:null,a=r||n;return{category:"note",icon:_.note,verb:c.chat_toolClassifier_addToNote_label(),subject:a?`${x(t.title,15)} → ${a}`:x(t.title,25),path:null}}else return t.confirm_replacement!==void 0||t.content!==void 0&&!t.heading?{category:"note",icon:_.note,verb:c.chat_toolClassifier_replaceNoteContent_label(),subject:x(t.title,25),path:null}:(t.title!==void 0||t.tags!==void 0)&&t.content===void 0?{category:"note",icon:_.note,verb:c.chat_toolClassifier_updateNoteMetadata_label(),subject:x(t.title,25),path:null}:t.taskText!==void 0&&t.status!==void 0?{category:"task",icon:_.task,verb:c.chat_toolClassifier_checkTask_label(),subject:`${f(t.taskText,20)} → ${t.status}`,path:null}:t.status!==void 0&&t.taskText===void 0?{category:"task",icon:_.task,verb:c.chat_toolClassifier_updateTaskStatus_label(),subject:`${x(t.title,20)} → ${t.status}`,path:null}:{category:"note",icon:_.note,verb:c.chat_toolClassifier_readNote_label(),subject:x(t.title,25),path:null}}return null}function nr(e){if(!e)return null;const t=e.match(/`cat -n`\s+on\s+(.+?):/);if(t)return t[1].trim();const s=e.match(/^File:\s*(.+?)(?:\n|$)/);return s?s[1].trim():null}function ar(e){if(!e)return null;const t=e.match(/^\s*\d+\s*\|\s*#\s+(.+?)$/m);return t?t[1].trim():null}function or(e){if(!e)return null;const t=Te(e);if(typeof e=="string")try{const s=JSON.parse(e),r=s?.metadata||s;return{title:r?.title||r?.noteTitle,noteId:r?.noteId,fileName:r?.fileName,count:r?.count}}catch{}else if(typeof e=="object"&&!Array.isArray(e)){const s=e?.metadata||e,r={};if((s?.title||s?.noteTitle)&&(r.title=s.title||s.noteTitle),s?.noteId&&(r.noteId=s.noteId),s?.fileName&&(r.fileName=s.fileName),s?.count!==void 0&&(r.count=s.count),Object.keys(r).length>0)return r}if(t){const s=t.match(/^Note:\s*(.+?)(?:\n|$)/);if(s)return{title:s[1].trim()};const r=t.match(/Note content replaced:\s*([a-zA-Z0-9_-]+)/);if(r)return{noteId:r[1]};const n=t.match(/intent:\/\/local\/note\/([a-zA-Z0-9_-]+)/);if(n)return{noteId:n[1]};const a=t.match(/Content added to note "([^"]+)"/);if(a)return{noteId:a[1]};const i=t.match(/Note deleted:\s*([a-zA-Z0-9_-]+)/);if(i)return{noteId:i[1]};const l=nr(t);if(l)return{fileName:l};const u=ar(t);if(u)return{title:u}}return null}function lr(e,t,s){e=e||"";const r=Xs(e),n=or(s),a=cr(e,t,s,n);return r&&(a.mcpSource=r),a}function cr(e,t,s,r){if(Ks(e,t))return{category:"search",icon:_.search,verb:c.chat_toolClassifier_loadingTools_label(),subject:null,path:null};if(B(e).toLowerCase()==="workspace_api"||typeof t.code=="string"&&typeof t.summary=="string"){const p=typeof t._acpTitle=="string"?t._acpTitle.trim():"",S=typeof t.summary=="string"?t.summary.trim():"",h=!p||mt(p)||p.includes("//local/mcp/")||B(p).toLowerCase()==="workspace_api"?S:p||S,k=sr(typeof t.code=="string"?t.code:"");return h?{category:k,icon:_[k],verb:h,subject:null,path:null}:{category:k,icon:_[k],verb:"",subject:null,path:null,hidden:!0}}const a=rr(e,t);if(a)return!a.noteId&&(r?.noteId||t.noteId)&&(a.noteId=r?.noteId||t.noteId),a;const i=B(e),l=i.toLowerCase(),u=!!t.path||!!t.file_path,d=Array.isArray(t.file_paths)&&t.file_paths.length>0,m=!!t.command,g=!!(t.query||t.information_request);if((l.includes("view")||l.includes("read")||l==="read")&&u&&!t.content&&!t.file_content)return ir(l,t);if((l==="read"||l==="read_file"||l.startsWith("read "))&&!l.includes("terminal")&&!l.includes("process")&&!u&&!t.content&&!t.file_content){const p=He(i);if(p){const v=t.type==="directory";return{category:"file-read",icon:_["file-read"],verb:v?c.chat_toolClassifier_listContents_label():c.chat_toolClassifier_read_label(),subject:P(p),path:M(p)||null,filePath:p||null,isDirectory:v}}const S=r?.fileName;if(S)return{category:"file-read",icon:_["file-read"],verb:c.chat_toolClassifier_read_label(),subject:P(S),path:M(S)||null,filePath:S};if(typeof t._acpTitle=="string"){const v=t._acpTitle.match(/^(?:Read|View|List\s+Contents?)\s+(.+)/i);if(v){const h=He(t._acpTitle),k=h??q(v[1]);if(h||k.includes(".")||k.includes("/")){const F=t.type==="directory"||/^List\s+Contents?/i.test(t._acpTitle);return{category:"file-read",icon:_["file-read"],verb:F?c.chat_toolClassifier_listContents_label():c.chat_toolClassifier_read_label(),subject:P(k),path:M(k)||null,filePath:k||null,isDirectory:F}}}}return{category:"file-read",icon:_["file-read"],verb:c.chat_toolClassifier_read_label(),subject:c.chat_toolClassifier_file_subject(),path:null}}if((l.includes("edit")||l.includes("str-replace")||l.includes("str_replace")||l.includes("save")||l.includes("write"))&&(u||t.file_content!==void 0||t.old_str_1!==void 0))return ur(l,t);if(l==="edit"&&!u&&!t.content&&!t.file_content)return{category:"file-write",icon:_["file-write"],verb:c.chat_toolClassifier_edit_label(),subject:c.chat_toolClassifier_file_subject(),path:null};if(!u){const p=i.match(/^(edit|save|write|create)\s+(.+)/i);if(p){const h=q(p[2]);if(h&&(h.includes(".")||h.includes("/"))){const k=p[1].toLowerCase(),F=k==="save"||k==="write"||k==="create"?c.chat_toolClassifier_save_label():c.chat_toolClassifier_edit_label();return{category:"file-write",icon:_["file-write"],verb:F,subject:P(h),path:M(h)||null,filePath:h||null}}}const S=i.match(/^(read|view)\s+(.+)/i);if(S){const h=q(S[2]);if(h&&(h.includes(".")||h.includes("/"))){const k=t.type==="directory";return{category:"file-read",icon:_["file-read"],verb:k?c.chat_toolClassifier_listContents_label():c.chat_toolClassifier_read_label(),subject:P(h),path:M(h)||null,filePath:h||null,isDirectory:k}}}const v=i.match(/^(delete|remove)\s+(.+)/i);if(v){const h=q(v[2]);if(h&&(h.includes(".")||h.includes("/")))return{category:"file-delete",icon:_["file-delete"],verb:c.chat_toolClassifier_delete_label(),subject:P(h),path:M(h)||null,filePath:h||null}}}if((l.includes("remove")||l.includes("delete"))&&(u||d))return dr(l,t);if(l.includes("process")||l.includes("bash")||l.includes("terminal")||l.includes("shell")||l==="run"||l.startsWith("run ")||l==="launch"||l.startsWith("launch ")||l==="read-terminal"||l==="read_terminal"||m)return fr(l,t);if(bt(e)&&!u&&!d&&!g&&!t.pattern&&!t.glob&&t.title===void 0&&t.noteId===void 0&&t.agentId===void 0&&t.targetAgentId===void 0&&!Array.isArray(t.tasks)){const p=St(e);return p||yt(e)}return l.includes("diagnostic")?{category:"search",icon:_.search,verb:c.chat_toolClassifier_check_label(),subject:t.paths&&Array.isArray(t.paths)?t.paths.length===1?P(t.paths[0]):`${t.paths.length} files`:"diagnostics",path:null}:e.toLowerCase().includes("sentry")?Fe(l,t):tr(l)?gr(l,t):l.includes("github")||l.includes("linear")||l.includes("glean")||l.includes("web-fetch")||l.includes("web_fetch")||l==="fetch"||t.method&&t.path&&!t.file_content||t.summary&&t.path&&typeof t.path=="string"&&t.path.startsWith("/")||t.is_read_only!==void 0&&t.query||t.call?.payload?.query?Fe(l,t):l.includes("search")||l.includes("retrieval")||l.includes("grep")||l.includes("glob")||(l.includes("find")||l==="find")&&(t.pattern||t.glob)||g?pr(l,t):l.includes("browser")||l.includes("playwright")||l.includes("screenshot")||l.includes("snapshot")||l.includes("open-browser")||l.includes("open_browser")||l.includes("navigate")&&l.includes("page")||l.includes("take_screenshot")||l.includes("take_snapshot")||t.uid!==void 0||t.ref!==void 0&&t.element!==void 0&&!u?Sr(l,t):l.includes("note")||l.includes("workspace")||l.includes("timeline")||l.includes("agent")&&(l.includes("name")||l.includes("title")||l.includes("rename"))||t.title!==void 0&&!l.includes("delegate")?mr(l,t,r):l.includes("agent")||l.includes("delegate")||l.includes("report")&&l.includes("parent")||t.agentId!==void 0||t.targetAgentId!==void 0?hr(l,t):l.includes("task")?_r(l,t,s):l.includes("think")||l.includes("remember")||l.includes("sequential")?br(l,t):yr(e,t)}function ir(e,t){let s=(t.path||t.file_path||"").replace(/^`|`$/g,"");if(!s&&typeof t._acpTitle=="string"){const l=t._acpTitle.match(/^(?:Edit|Save|Read|Write|Delete|View|Create)\s+(.+)/i);if(l){const u=q(l[1]);(u.includes(".")||u.includes("/"))&&(s=u)}}let r=P(s),n=null;t.view_range&&Array.isArray(t.view_range)?(r+=`:${t.view_range[0]}-${t.view_range[1]}`,n=t.view_range[0]):t.offset!==void 0?n=t.offset:t.line!==void 0&&(n=t.line);const a=t.type==="directory",i=t.search_query_regex?c.chat_toolClassifier_search_label():a?c.chat_toolClassifier_listContents_label():c.chat_toolClassifier_read_label();return{category:"file-read",icon:_["file-read"],verb:i,subject:r,path:M(s)||null,filePath:s||null,fileLine:n,isDirectory:a||!1}}function ur(e,t){let s=(t.path||t.file_path||"").replace(/^`|`$/g,"");if(!s&&typeof t._acpTitle=="string"){const a=t._acpTitle.match(/^(?:Edit|Save|Read|Write|Delete|View|Create)\s+(.+)/i);if(a){const i=q(a[1]);(i.includes(".")||i.includes("/"))&&(s=i)}}const r=e.includes("save")||e.includes("write")?c.chat_toolClassifier_save_label():c.chat_toolClassifier_edit_label();let n=null;return t.line!==void 0?n=t.line:t.insert_line!==void 0&&(n=t.insert_line),{category:"file-write",icon:_["file-write"],verb:r,subject:P(s)||null,path:M(s)||null,filePath:s||null,fileLine:n}}function dr(e,t){let s,r=null,n=null;return t.file_paths&&Array.isArray(t.file_paths)?t.file_paths.length===1?(s=P(t.file_paths[0]),r=M(t.file_paths[0])||null,n=t.file_paths[0]):s=`${t.file_paths.length} files`:(s=P(t.path||t.file_path||""),r=M(t.path||t.file_path||"")||null,n=t.path||t.file_path||null),{category:"file-delete",icon:_["file-delete"],verb:c.chat_toolClassifier_delete_label(),subject:s,path:r,filePath:n}}function fr(e,t){let s=c.chat_toolClassifier_run_label(),r=null;const n=e.match(/terminal\s+(\d+)/),a=t.terminal_id?`terminal ${t.terminal_id}`:n?`terminal ${n[1]}`:"terminal";if(e.includes("read-process")||e.includes("read_process")||e.includes("read")&&(e.includes("terminal")||e.includes("process")))s=c.chat_toolClassifier_read_label(),r=a;else if(e.includes("write-process")||e.includes("write_process")||e.includes("write")&&(e.includes("terminal")||e.includes("process")))s=c.chat_toolClassifier_writeTo_label(),r=a;else if(e.includes("kill-process")||e.includes("kill_process")||e.includes("kill")&&(e.includes("terminal")||e.includes("process")))s=c.chat_toolClassifier_kill_label(),r=a;else if(e.includes("list-process")||e.includes("list_process")||e.includes("list")&&e.includes("process"))s=c.chat_toolClassifier_list_label(),r="processes";else if(t.command){const i=E(t.command);t.description?(s="",r=f(t.description,50)):r=f(i.split(`
|
|
6
|
+
`)[0],80)}else if(t.terminal_id!==void 0&&!t.command)t.input_text!==void 0?(s=c.chat_toolClassifier_writeTo_label(),r=`terminal ${t.terminal_id}`):(s=c.chat_toolClassifier_read_label(),r=`terminal ${t.terminal_id}`);else if(t.description)s="",r=f(t.description,50);else if(typeof t._acpTitle=="string"){const i=t._acpTitle.match(/^(Run|Launch|Read|List|Kill|Write)\s+`?(.+?)`?\s*$/i);if(i){const l=i[1].toLowerCase(),u=i[2].trim();u.length>0&&(l==="list"?(s=c.chat_toolClassifier_list_label(),r=u):l==="read"?(s=c.chat_toolClassifier_read_label(),r=u):l==="kill"?(s=c.chat_toolClassifier_kill_label(),r=u):l==="write"?(s=c.chat_toolClassifier_writeTo_label(),r=u):(l==="launch"&&(s=c.chat_toolClassifier_launch_label()),r=f(u.split(`
|
|
7
|
+
`)[0],80)))}}else{const i=e.match(/^(?:run|launch)\s+`(.+)`\s*$/);i&&(r=f(i[1].split(`
|
|
8
|
+
`)[0],80))}return{category:"terminal",icon:_.terminal,verb:s,subject:r,path:null}}function gr(e,t){const s=c.chat_toolClassifier_contextEngine_label();let r=null;e.includes("git")||e.includes("commit")?r=c.chat_toolClassifier_commitHistory_label():e.includes("conversation")?r=c.chat_toolClassifier_conversations_label():r=c.chat_toolClassifier_codebase_label();const n=t.information_request||t.query;return n&&(r=`${r}: ${f(n,60)}`),{category:"context-engine",icon:_["context-engine"],verb:s,subject:r,path:null}}function pr(e,t){let s=c.chat_toolClassifier_search_label(),r=null;return e.includes("git-commit")||e.includes("git_commit")?s=c.chat_toolClassifier_searchCommits_label():e.includes("web-search")||e.includes("web_search")?s=c.chat_toolClassifier_searchWeb_label():e.includes("glob")||e.includes("find")?s=c.chat_toolClassifier_find_label():(e.includes("codebase")||e.includes("retrieval"))&&(s=c.chat_toolClassifier_contextEngineSentenceCase_label()),t.information_request?r=f(t.information_request,300):t.query?r=f(t.query,300):t.pattern?r=f(t.pattern,300):t.glob?r=f(t.glob,300):t.description?r=f(t.description,300):(e.includes("glob")||e.includes("find"))&&(r="files"),{category:"search",icon:_.search,verb:s,subject:r,path:null}}function Fe(e,t){let s="API",r=null;const n=e.includes("github")||t.summary&&t.path&&typeof t.path=="string"&&t.path.startsWith("/"),a=e.includes("linear")||t.is_read_only!==void 0&&t.query,i=e.includes("glean")||!!t.call?.payload?.query;if(n)s="GitHub",t.path?r=`${t.method||"GET"} ${f(t.path,50)}`:t.summary&&(r=f(t.summary,60));else if(a)s="Linear",r=t.summary?f(t.summary,300):null;else if(i)s="Glean",r=t.call?.payload?.query?f(t.call.payload.query,300):null;else if(e.includes("sentry"))if(s="Sentry",t.naturalLanguageQuery)r=f(t.naturalLanguageQuery,60);else if(t.issueId)r=t.issueId;else if(t.issueUrl)r=f(t.issueUrl,50);else if(t.traceId)r=`trace ${E(t.traceId).substring(0,12)}...`;else if(t.organizationSlug){const l=e.replace("sentry","").replace(/^[-_]+|[-_]+$/g,"").replace(/[-_]/g," ").trim();r=l?`${l}: ${t.organizationSlug}`:t.organizationSlug}else{const l=e.replace("sentry","").replace(/^[-_]+|[-_]+$/g,"").replace(/[-_]/g," ").trim();l&&(r=l)}else if(e.includes("web-fetch")||e.includes("web_fetch")||e==="fetch"){if(s=c.chat_toolClassifier_fetch_label(),t.url)try{const l=new URL(t.url),u=l.pathname!=="/"?l.pathname:"";r=f(l.hostname+u,60)}catch{r=f(t.url,60)}}else t.method&&t.path?r=`${t.method} ${f(t.path,50)}`:t.summary&&(r=f(t.summary,60));return{category:"api",icon:_.api,verb:s,subject:r,path:null}}function hr(e,t){let s=c.chat_toolClassifier_agent_label(),r=null;if(e.includes("create_agent")||e.includes("create-agent"))s=c.chat_toolClassifier_createAgent_label(),r=t.name?`"${f(t.name,30)}"`:null;else if(e.includes("delegate"))s=c.chat_toolClassifier_delegate_label(),t.taskDescription?r=f(t.taskDescription,40):t.taskText?r=f(t.taskText,40):t.task?r=f(t.task,40):r="task";else if(e.includes("message")||e.includes("send"))s=c.chat_toolClassifier_messageAgent_label(),t.message?r=f(t.message,40):r=null;else if(e.includes("status"))s=c.chat_toolClassifier_checkAgentStatus_label(),r=null;else if(e.includes("wait")){s=c.chat_toolClassifier_waitFor_label();const n=Array.isArray(t.agentIds)?t.agentIds:t.agentIds?[t.agentIds]:[];r=n.length===1?"agent":`${n.length} agents`}else if(e.includes("read")&&e.includes("conversation"))s=c.chat_toolClassifier_readAgentConversation_label(),r=null;else if(e.includes("summary")||e.includes("get_agent"))if(s=c.chat_toolClassifier_getAgentSummary_label(),t.agentName)r=f(t.agentName,30);else if(t.agentId){const n=E(t.agentId);r=n.length>20?`${n.substring(0,8)}...`:n}else r=null;else e.includes("list")?(s=c.chat_toolClassifier_listAgents_label(),r=null):e.includes("report")&&e.includes("parent")&&(s=c.chat_toolClassifier_reportToParent_label(),t.report?r=f(t.report,50):r=null);return{category:"agent",icon:_.agent,verb:s,subject:r,path:null}}function _r(e,t,s){let r=c.chat_toolClassifier_task_label(),n=null;if(e.includes("get")&&e.includes("my")&&e.includes("task"))r=c.chat_toolClassifier_getTaskAssignment_label(),n=t._noteTitle?f(t._noteTitle,30):null;else if(e.includes("view")||e.includes("list")||e==="task")r=c.chat_toolClassifier_view_label(),n="task list";else if(e.includes("add"))if(r=c.chat_toolClassifier_add_label(),t.tasks&&Array.isArray(t.tasks)&&t.tasks.length>0){const a=t.tasks[0]?.name;n=t.tasks.length===1&&a?f(a,40):`${t.tasks.length} tasks`}else n="task";else if(e.includes("update"))if(t.tasks&&Array.isArray(t.tasks)){const a=t.tasks.length,i=t.tasks[0];if(a===1&&i){let l=i.name?f(i.name,30):null;const u=i.state;if(!l&&s){const m=Te(s);if(m){let g=m.match(/\[[x\/\- ]\]\s*UUID:\S+\s+NAME:([^\n]+?)(?:\s+DESCRIPTION:|$)/);g&&(l=f(g[1].trim(),30)),l||(g=m.match(/NAME:([^\n]+?)(?:\s+DESCRIPTION:|$)/),g&&(l=f(g[1].trim(),30)))}}const d=u?E(u).toLowerCase().replace(/_/g," "):null;l&&d?(r=c.chat_toolClassifier_mark_label(),n=`${l} ${d}`):d?(r=c.chat_toolClassifier_mark_label(),n=l?`${l} ${d}`:d):l?(r=c.chat_toolClassifier_update_label(),n=l):(r=c.chat_toolClassifier_update_label(),n="task")}else r=c.chat_toolClassifier_update_label(),n=`${a} tasks`}else r=c.chat_toolClassifier_update_label(),n="task";else e.includes("reorganize")&&(r=c.chat_toolClassifier_reorganize_label(),n="task list");return{category:"task",icon:_.task,verb:r,subject:n,path:null}}function mr(e,t,s){let r=c.chat_toolClassifier_workspace_label(),n=null,a="workspace",i=null;const l=()=>s?.noteId?s.noteId:t.noteId?t.noteId:null,u=(d=30)=>s?.title?x(s.title,d):t.title?x(t.title,d):t.noteId?t.noteId==="spec"?"Spec":/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t.noteId)?null:x(t.noteId,d):null;if(e.includes("title")&&e.includes("workspace"))r=c.chat_toolClassifier_renameWorkspace_label(),n=t.title?f(t.title,30):null;else if((e.includes("name")||e.includes("rename")||e.includes("title"))&&e.includes("agent"))r=c.chat_toolClassifier_renameAgent_label(),n=t.name?f(t.name,30):t.title?f(t.title,30):null;else if(e.includes("create")&&e.includes("note"))a="note",r=c.chat_toolClassifier_createNote_label(),n=u(30),i=l();else if(e.includes("read")&&e.includes("note"))a="note",r=c.chat_toolClassifier_readNote_label(),n=u(30),i=l();else if(e.includes("task")&&e.includes("status")){a="task",r=e.includes("note")?c.chat_toolClassifier_updateTaskStatus_label():c.chat_toolClassifier_checkTask_label();const d=u(20),m=t.taskText?f(t.taskText,25):null,g=t.status;m&&g?n=`${m} → ${g}`:d&&g?n=`${d} → ${g}`:d&&(n=d),i=l()}else if(e.includes("update")&&e.includes("note"))a="note",r=c.chat_toolClassifier_updateNote_label(),n=u(30),i=l();else if(e.includes("append")&&e.includes("note")||e.includes("add")&&e.includes("note")){a="note",r=c.chat_toolClassifier_addToNote_label();const d=u(20),m=t.heading?f(E(t.heading).replace(/^#+\s*/,""),20):null;n=d||(m?`→ ${m}`:null),i=l()}else if(e.includes("edit")&&e.includes("note")&&e.includes("line"))a="note",r=c.chat_toolClassifier_editNote_label(),n=u(25),i=l();else if(e.includes("edit")&&e.includes("note"))a="note",r=c.chat_toolClassifier_editNote_label(),n=u(25),i=l();else if(e.includes("set")&&e.includes("note")&&e.includes("content"))a="note",r=c.chat_toolClassifier_replaceNote_label(),n=u(25),i=l();else if(e.includes("delete")&&e.includes("note")&&!e.includes("comment"))a="note",r=c.chat_toolClassifier_deleteNote_label(),n=u(30);else if(e.includes("comment")){a="note",r=e.includes("delete")?c.chat_toolClassifier_deleteComment_label():e.includes("list")?c.chat_toolClassifier_listComments_label():e.includes("respond")?c.chat_toolClassifier_replyToComment_label():c.chat_toolClassifier_addComment_label();const d=u(25);n=d?c.chat_toolClassifier_onNote_subject({noteTitle:d}):null,i=l()}else e.includes("list")&&e.includes("note")?(a="note",r=c.chat_toolClassifier_listNotes_label(),n=null):e.includes("timeline")?(r=c.chat_toolClassifier_read_label(),n="timeline"):e.includes("info")||e.includes("context")||e.includes("details")?(r=c.chat_toolClassifier_get_label(),n="workspace info"):t.title&&(r=c.chat_toolClassifier_rename_label(),n=f(t.title,30));return{category:a,icon:_[a],verb:r,subject:n,path:null,noteId:i}}function br(e,t){let s=c.chat_toolClassifier_think_label(),r=null;return e.includes("remember")?(s=c.chat_toolClassifier_remember_label(),r=t.memory?f(t.memory,50):null):(e.includes("think")||e.includes("sequential"))&&(s=c.chat_toolClassifier_think_label(),r=t.thought?f(t.thought,40):null),{category:"meta",icon:_.meta,verb:s,subject:r,path:null}}function Sr(e,t){let s=c.chat_toolClassifier_browser_label(),r=null;if(Array.isArray(t.actions)&&t.actions.length>0){const a=t.actions[0],i=a?.action;switch(i){case"screenshot":s=c.chat_toolClassifier_screenshot_label(),r=a.tabId||t.tabId?"tab":"page";break;case"evaluate":s=c.chat_toolClassifier_evaluate_label(),r=a.expression?f(E(a.expression).split(`
|
|
9
|
+
`)[0],60):"script";break;case"listTabs":s=c.chat_toolClassifier_list_label(),r="browser tabs";break;case"focusTab":s=c.chat_toolClassifier_focus_label(),r="tab";break;case"openTab":s=c.chat_toolClassifier_open_label(),r=a.url?f(a.url,50):"new tab";break;case"closeTab":s=c.chat_toolClassifier_close_label(),r=c.chat_toolClassifier_tab_subject();break;case"getAccessibilityTree":s=c.chat_toolClassifier_inspect_label(),r="accessibility tree";break;case"snapshot":s=c.chat_toolClassifier_snapshot_label(),r=a.name?f(a.name,40):"page";break;case"resetTab":s=c.chat_toolClassifier_reset_label(),r="tab";break;case"startSession":s=c.chat_toolClassifier_start_label(),r=a.name?`session "${f(a.name,30)}"`:"capture session";break;case"endSession":s=c.chat_toolClassifier_end_label(),r="capture session";break;case"captureStep":s=c.chat_toolClassifier_capture_label(),r=a.stepName?f(a.stepName,40):"step";break;case"startCapture":s=c.chat_toolClassifier_start_label(),r="capture";break;case"endCapture":s=c.chat_toolClassifier_end_label(),r="capture";break;case"startTrace":s=c.chat_toolClassifier_start_label(),r="performance trace";break;case"stopTrace":s=c.chat_toolClassifier_stop_label(),r="performance trace";break;case"getSummary":s=c.chat_toolClassifier_get_label(),r="session summary";break;default:s=c.chat_toolClassifier_browser_label(),r=i?E(i):null;break}return t.actions.length>1&&(r=r?`${r} (+${t.actions.length-1} more)`:`${t.actions.length} actions`),{category:"browser",icon:_.browser,verb:s,subject:r,path:null}}const n=()=>t.element?f(t.element,30):null;return e.includes("open-browser")||e.includes("open_browser")?(s=c.chat_toolClassifier_open_label(),r=t.url?f(t.url,40):"browser"):e.includes("navigate")?(s=c.chat_toolClassifier_navigate_label(),r=t.url?f(t.url,40):null):e.includes("click")?(s=c.chat_toolClassifier_click_label(),r=n()):e.includes("screenshot")?(s=c.chat_toolClassifier_screenshot_label(),r=n()||c.chat_toolClassifier_page_subject()):e.includes("snapshot")?(s=c.chat_toolClassifier_snapshot_label(),r=c.chat_toolClassifier_page_subject()):e.includes("type")||e==="fill"||e.includes("fill_form")?(s=e==="fill"||e.includes("fill")?c.chat_toolClassifier_fill_label():c.chat_toolClassifier_type_label(),r=t.text?f(t.text,30):n()):e.includes("hover")?(s=c.chat_toolClassifier_hover_label(),r=n()):e.includes("drag")?(s=c.chat_toolClassifier_drag_label(),r=t.startElement?f(t.startElement,30):null):e.includes("select")&&e.includes("option")?(s=c.chat_toolClassifier_select_label(),r=t.values&&Array.isArray(t.values)?f(t.values.join(", "),30):null):e.includes("upload")||e.includes("file_upload")?(s=c.chat_toolClassifier_upload_label(),r=t.filePath?P(t.filePath):Array.isArray(t.paths)?`${t.paths.length} file${t.paths.length>1?"s":""}`:"file"):e.includes("press")||e.includes("key")?(s=c.chat_toolClassifier_press_label(),r=t.key?t.key:null):e.includes("wait")?(s=c.chat_toolClassifier_wait_label(),r=t.text?`for "${f(t.text,25)}"`:t.time?`${t.time}s`:null):e.includes("resize")?(s=c.chat_toolClassifier_resize_label(),r=t.width&&t.height?`${t.width}×${t.height}`:"page"):e.includes("close")?(s=c.chat_toolClassifier_close_label(),r="page"):e.includes("dialog")?(s=c.chat_toolClassifier_handle_label(),r=t.accept?"accept dialog":"dismiss dialog"):e.includes("evaluate")||e.includes("script")?(s=c.chat_toolClassifier_evaluate_label(),r="script"):e.includes("console")?(s=c.chat_toolClassifier_read_label(),r="console"):e.includes("network")?(s=c.chat_toolClassifier_check_label(),r="network"):e.includes("emulate")?(s=c.chat_toolClassifier_emulate_label(),r=t.viewport?`${t.viewport.width}×${t.viewport.height}`:t.colorScheme?t.colorScheme:"device"):e.includes("performance")?(s=c.chat_toolClassifier_performance_label(),r=e.includes("start")?"start trace":e.includes("stop")?"stop trace":"trace"):(e.includes("tab")||e.includes("page"))&&(e.includes("list")?(s=c.chat_toolClassifier_list_label(),r="pages"):e.includes("new")?(s=c.chat_toolClassifier_open_label(),r=t.url?f(t.url,40):"new page"):e.includes("select")?(s=c.chat_toolClassifier_select_label(),r="page"):(s=c.chat_toolClassifier_browser_label(),r="page")),{category:"browser",icon:_.browser,verb:s,subject:r,path:null}}function yr(e,t){const s=typeof t._acpTitle=="string"?t._acpTitle.trim():"";if(s&&bt(s)){const g=St(s);return g||yt(s)}const r=B(e);if(mt(r))return{category:"generic",icon:_.generic,verb:"",subject:null,path:null,hidden:!0};const a=r.replace(/-/g," ").replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").toLowerCase().trim().split(/\s+/);if(a.length>2){const g=a[a.length-1];a.slice(0,-1).some(S=>S===g)&&a.pop()}const i=a[0]?a[0].charAt(0).toUpperCase()+a[0].slice(1):c.chat_toolClassifier_run_label(),l=a.length>1?a.slice(1).join(" "):null;let u=null;const d=["summary","query","naturalLanguageQuery","information_request","message","text","name","title","url","path","content"];for(const g of d)if(t[g]&&typeof t[g]=="string"){u=f(t[g],50);break}let m;if(u&&l){const g=u.toLowerCase(),p=l.toLowerCase();g.includes(p)||p.includes(g)?m=u.length>=l.length?u:l:m=`${l}: ${u}`}else m=u||l;return{category:"generic",icon:_.generic,verb:i,subject:m,path:null}}function kr(e){if(e.attentionRequest)return{kind:"attention",attention:e.attentionRequest};if(e.liveResponseLine)return{kind:"live-text",text:e.liveResponseLine};if(e.hasRenderableLiveTool&&e.liveToolUse)return{kind:"live-tool",toolUse:e.liveToolUse};if(e.showUserMessagePreview)return{kind:"user",text:e.userFirstLine};if(e.effectiveCompletionReport)return{kind:"report",text:e.effectiveCompletionReport};if(e.lastUserMsg||e.lastResponse||e.lastToolUse){if(e.lastResponse)return{kind:"last-response",text:e.lastResponse};if(e.lastToolUse)return{kind:"last-tool",toolUse:e.lastToolUse};if(e.lastUserMsg)return{kind:"last-user",text:e.lastUserMsg}}return null}const Cr="intent://",wr="local",le=`${Cr}${wr}`;function ll(e){return`${le}/task/${e}`}function vr(e,t){return t?`${le}/${t}/note/${e}`:`${le}/note/${e}`}function cl(e,t,s){return`[${e}](${vr(t,s)})`}function Ar(e,t,s){return`${le}/${e}/agent/${t}/message/${s}`}const il=/\[([^\]]+)\]\(intent:\/\/local\/task\/([^)]+)\)/g;function Tr(e){if(!e||typeof e!="object")return null;const t=e,s=typeof t.fromAgentId=="string"?t.fromAgentId.trim():"";if(!s)return null;if(t.type==="chief_message"){const a=typeof t.fromAgentName=="string"?t.fromAgentName:"",i=typeof t.fromWorkspaceId=="string"?t.fromWorkspaceId.trim():"",l=typeof t.sourceMessageId=="string"?t.sourceMessageId.trim():"",u=typeof t.sourceUrl=="string"?t.sourceUrl.trim():"",d=i===U&&l?Ar(i,s,l):"";return{kind:"chief",fromAgentId:s,rawName:a,...u&&u===d?{sourceUrl:u}:{}}}if(t.type!=="agent_message")return null;const r=typeof t.fromAgentName=="string"?t.fromAgentName:"",n=r.trim()||"Agent";return{kind:"agent",fromAgentId:s,displayName:n,rawName:r}}const Ir=/^\[MESSAGE FROM AGENT (?:[^\n]+ )?\(agent-[0-9a-f-]+\)\](?:\n\n?|$)/;function Ie(e,t){if(!e.startsWith(t))return null;const s=e.slice(t.length);return s===""?"":s.startsWith(`
|
|
10
|
+
|
|
11
|
+
`)?s.slice(2):s.startsWith(`
|
|
12
|
+
`)?s.slice(1):null}function Rr(e,t){if(t){const{rawName:s,fromAgentId:r}=t,n=s?`[MESSAGE FROM AGENT ${s} (${r})]`:`[MESSAGE FROM AGENT (${r})]`,a=Ie(e,n);if(a!==null)return a}return e.replace(Ir,"")}function Re(e){if(!e||typeof e!="object")return!0;const t=e;return typeof t.fromPrincipalId=="string"&&t.fromPrincipalId.trim()?!0:t.type==="questions_dismissed"?!1:t.type==="question_answers"?!0:!(typeof t.type=="string"||typeof t.fromAgentId=="string"&&t.fromAgentId.trim()!==""||t.source==="system")}function Pr(e,t){return!e||e.role!=="user"||!Re(e.metadata)?null:Se(Y(e.author),t)}function Y(e){if(!e||typeof e!="object"||Array.isArray(e))return null;const t=e,{principalId:s}=t;if(s!==null&&(typeof s!="string"||!s.trim()))return null;const r=a=>typeof a=="string"?a:null,n={principalId:s,login:r(t.login),displayName:r(t.displayName),avatarUrl:r(t.avatarUrl)};if(me(t.identity)&&t.identity.externalUserId.trim()){const{provider:a,host:i,externalUserId:l}=t.identity;n.identity={provider:a,host:i,externalUserId:l}}return t.identity===void 0&&Object.keys(t).every(a=>["principalId","login","displayName","avatarUrl"].includes(a))&&t.login===n.login&&t.displayName===n.displayName&&t.avatarUrl===n.avatarUrl?e:n}function Se(e,t){return!e||!t?e:e.principalId===t?null:e}function Er(e){const t=Y(e);if(!t)return null;const s=i=>i?.replace(/\p{Cc}/gu," ").replace(/\p{White_Space}+/gu," ").trim()||null,r=s(t.displayName),n=s(t.login),a=n?`@${n}`:null;return r&&a?c.presence_person_forge_label({name:r,handle:a}):r??a}function ul(e){const t=Er(e)??c.chat_chatMessage_authorUnknown_label(),s=Y(e)?.identity;if(!s)return t;const r=s.provider==="github"?c.workspace_share_pinProvider_github_label():c.workspace_share_pinProvider_gitlab_label({host:s.host});return c.presence_person_forge_label({name:t,handle:r})}function xr(e){const t=new Map;for(const s of e){const r=Pr(s);r&&typeof r.principalId=="string"&&t.set(r.principalId,r)}return t}function dl(e,t){return(e??0)>=2?xr(t):null}function fl(e,t,s){if(!e)return null;const r=e.messageMetadata;if(!Re(r)||e.author===null)return null;const n=Y(e.author);if(n?.principalId===null)return n;if(!t)return null;if(n)return Se(n,s);if(!r||typeof r!="object"||Array.isArray(r))return null;const{fromPrincipalId:a}=r;if(typeof a!="string"||a.length===0)return null;const i=Y(t.get(a));return i?.principalId===a?Se(i,s):null}function D(e){if(typeof e!="string")return null;const t=e.replace(/\p{Cc}/gu," ").split(/\p{White_Space}+/u).filter(s=>s!=="").join(" ");return t===""?null:t}function kt(e,t,s,r){const n=D(e),a=D(t),i=r?D(s)??"":s;let l;if(n&&a?l=`@${n} (${a})`:n?l=`@${n}`:a?l=a:l=`principal ${i}`,r){const u=r.identity,d=u?`; ${D(u.provider)??""}@${D(u.host)??""} user ${D(u.externalUserId)??""}`:"";return`Message from ${l}, a host member (principal ${i}${d}) — not the workspace owner.`}return`Message from ${l}, a collaborator (guest) of this workspace — not the workspace owner.`}function Ct(e){if(!e||typeof e!="object"||Array.isArray(e))return null;const t=e,{principalId:s}=t;if(typeof s!="string"||!D(s))return null;for(const r of["login","displayName","avatarUrl"])if(t[r]!==void 0&&t[r]!==null&&typeof t[r]!="string")return null;return t.identity!==void 0&&(!me(t.identity)||!D(t.identity.externalUserId))?null:{principalId:s,login:typeof t.login=="string"?t.login:null,displayName:typeof t.displayName=="string"?t.displayName:null,avatarUrl:typeof t.avatarUrl=="string"?t.avatarUrl:null,...me(t.identity)?{identity:{provider:t.identity.provider,host:t.identity.host,externalUserId:t.identity.externalUserId}}:{}}}function Mr(e){return(e.contentBlocks??[]).filter(t=>t.type==="text").map(t=>t.text??"").join("")}function wt(e,t){if(typeof t!="string"||!t.trim()||!e||e.role!=="user"||!Re(e.metadata))return null;const s=Ct(e.author);if(!s||s.principalId===t)return null;const r=Mr(e);for(const n of["member","guest"]){const a=kt(s.login,s.displayName,s.principalId,n==="member"?{identity:s.identity}:void 0);if(r.startsWith(`${a}
|
|
13
|
+
|
|
14
|
+
`)&&Ie(r,a)!==null)return{author:s,preamble:a,role:n}}return null}function vt(e,t){return!t||!e.startsWith(`${t.preamble}
|
|
15
|
+
|
|
16
|
+
`)?e:Ie(e,t.preamble)??e}function gl(e){const{hostRole:t,principal:s,workspace:r}=e;if(!s||!r)return null;const n=r.ownerPrincipalId;if(typeof n!="string"||!n.trim()||s.id===n)return null;let a;if(t==="member"&&r.id!==U)a="member";else if(t==="guest"&&r.myRole==="collaborator")a="guest";else return null;const i=Ct({principalId:s.id,login:s.login,displayName:s.displayName,avatarUrl:s.avatarUrl,...s.identity?{identity:s.identity}:{}});if(!i)return null;const l=kt(i.login,i.displayName,i.principalId,a==="member"?{identity:i.identity}:void 0);return{author:i,preamble:l,role:a}}function pl(e,t,s){if(!e)return t;const r=wt({role:"user",author:e.author,metadata:e.messageMetadata,contentBlocks:[{type:"text",text:t}]},s);return vt(t,r)}function At(e){if(!e||typeof e!="object")return null;const t=e.queueInfo;if(!t||typeof t!="object")return null;const{queuedAt:s,waitedMs:r,batchId:n}=t;if(typeof s!="string"||!s.trim()||typeof r!="number"||!Number.isFinite(r)||Number.isNaN(new Date(s).getTime()))return null;const a={queuedAt:s,waitedMs:Math.max(0,r)};return typeof n=="string"&&n.trim()&&(a.batchId=n),a}function je(e){if(!e||typeof e!="object")return null;const t=e.queueInfo;if(!t||typeof t!="object")return null;const{batchId:s}=t;return typeof s=="string"&&s.trim()?s:null}function hl(e){if(!e||typeof e!="object")return null;const t=e.queueInfo;if(!t||typeof t!="object")return null;const{queuedMessageId:s}=t;return typeof s=="string"&&s.trim()?s:null}const Nr=/\n*\[SYSTEM NOTE\] This message was queued at [^\n]+ and waited [^\n]+ before delivery\.(?=\n|$)/;function _l(e){return e.replace(Nr,"")}function ml(e,t){if(!t||e.assistantMessages.length>0)return!1;const s=e.userMessage?je(e.userMessage.metadata):null;if(!s)return!1;const r=t.userMessage?je(t.userMessage.metadata):null;return s===r}const Tt=String.raw`\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,9})?(?:Z|[+-]\d{2}:\d{2})`,$r=String.raw`(?:\d+s|\d+m \d+s|\d+h \d+m)`,Lr=String.raw`\[SYSTEM NOTE\] This message was queued at ${Tt} and waited ${$r} before delivery\.`,Or=String.raw`\[SYSTEM NOTE\] This message was queued before you completed; your completion report was already delivered to your parent at ${Tt}\. Only call reportToParent again if this message materially changes the outcome — do not re-send the same report\.`;function It(e){return new RegExp(String.raw`(?:^|(?:\r?\n){2,})${e}[\t ]*(?:\r?\n)?$`,"u")}const qe=It(Lr),Be=It(Or);function ae(e,t){let s=e;const r=At(t)?[qe,Be]:[Be,qe];let n;do{n=s;for(const a of r)s=s.replace(a,"")}while(s!==n);return s}const Ge="[SYSTEM NOTE] This message was queued";function bl(e,t){if(!At(t))return e;const s=/(?:\r?\n){2,}(\[[^\n]*)$/u.exec(e);if(!s)return e;const r=s[1];return!r.startsWith(Ge)&&!Ge.startsWith(r)?e:e.slice(0,s.index)}function Dr(e){return(e??[]).map(t=>{if(t.type!=="file"||typeof t.attachmentId=="string"&&t.attachmentId.trim())return t;const s=typeof t.fileName=="string"?t.fileName.trim():"",r=s?`Attached file: ${s}`:"Attached file";return t.id?{id:t.id,type:"text",text:r}:{type:"text",text:r}})}function Sl(e,t){const s=Tr(e.metadata),r=s?null:wt(e,t),n=s?i=>Rr(i,s):r?i=>vt(i,r):i=>i,a=Dr(e.contentBlocks).filter(i=>i.type==="text").map(i=>i.text??"");if(!a?.length)return n(ae(Ds(e),e.metadata));for(let i=a.length-1;i>=0;i-=1){const l=ae(a[i],e.metadata);if(a[i]=l,l.trim())break}return n(ae(a.join(""),e.metadata))}const Ur=String.raw`member\[[^\]\s]*\]`;function Wr(e){const t=JSON.stringify({label:e.label,principalId:e.meta?.principalId,workspaceId:e.meta?.workspaceId,identity:e.meta?.identity});return`@member[${btoa(String.fromCharCode(...new TextEncoder().encode(t)))}]`}function K(e){return typeof e=="string"&&e.trim().length>0}function Hr(e){const t=/^@member\[([A-Za-z0-9+/=]+)\]$/.exec(e);if(!t)return null;try{const s=Uint8Array.from(atob(t[1]),a=>a.charCodeAt(0)),r=JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(s));if(!r||!K(r.label)||!K(r.principalId)||!K(r.workspaceId))return null;const{identity:n}=r;return n!==void 0&&(!n||n.provider!=="github"&&n.provider!=="gitlab"||!K(n.host)||!K(n.externalUserId))?null:{type:"member",id:`member-${r.principalId}`,label:r.label,uri:`devspace://member/${encodeURIComponent(r.principalId)}?workspaceId=${encodeURIComponent(r.workspaceId)}`,meta:{principalId:r.principalId,workspaceId:r.workspaceId,...n?{identity:{provider:n.provider,host:n.host,externalUserId:n.externalUserId}}:{}}}}catch{return null}}function Rt(e){return`@${e.replace(/^@/,"")}`}function yl(e){const t=e.meta?.identity;return t?`${t.provider==="github"?"GitHub":"GitLab"} · ${t.host}`:""}const ze=/^[A-Za-z0-9_-]+$/,Fr=String.raw`note\[(?:[A-Za-z0-9_-]+\/)?[A-Za-z0-9_-]+:[^[\]\n]*\]`,jr=/^@?note\[(?:([A-Za-z0-9_-]+)\/)?([A-Za-z0-9_-]+):([^[\]\n]*)\]$/,qr=/&(#?\w+);/g;function Br(e){let t,s=e;do t=s,s=s.replace(qr,"&$1");while(s!==t);return s}function Pt(e){return Br(e).replace(/[[\]|*_`~\\<>@]/g," ").replace(/:\/\//g," ").replace(/\bwww\./gi,"www ").replace(/\s+/g," ").trim()}function Gr(e){if(!ze.test(e.id)||e.workspaceId&&!ze.test(e.workspaceId))return null;const t=Pt(e.title)||e.id;return`@note[${e.workspaceId?`${e.workspaceId}/`:""}${e.id}:${t}]`}function zr(e){const t=jr.exec(e);if(!t)return null;const[,s,r,n]=t,a=n.trim()||r;return s?{id:r,title:a,workspaceId:s}:{id:r,title:a}}function Zr(e){return{type:"note",id:e.id,label:e.title,...e.workspaceId?{meta:{workspaceId:e.workspaceId,isExternalLink:!0}}:{}}}const Kr=/^[A-Za-z0-9_-]+$/,Vr=String.raw`(?:terminal|script)\[[A-Za-z0-9_-]+:[^[\]\n]*\]`,Qr=/^@?(terminal|script)\[([A-Za-z0-9_-]+):([^[\]\n]*)\]$/;function Yr(e){if(!Kr.test(e.id))return null;const t=Pt(e.name)||e.id;return`@${e.kind}[${e.id}:${t}]`}function Xr(e){const t=Qr.exec(e);if(!t)return null;const[,s,r,n]=t;return{kind:s,id:r,name:n.trim()||r}}function Jr(e){return{type:e.kind,id:e.id,label:e.name}}function ee(e){return e?e.startsWith("@")?e.slice(1):e:""}const j=String.raw`(?::L\d+(?:-\d+)?|:\d+(?::\d+)?|#L\d+(?:-\d+|C\d+)?)`,Et=new RegExp(`^${j}$`);function te(e){return e.meta||{}}function xt(e){const t=te(e);return ee(t.fullPath||t.path||t.filename||e.label||e.id)}function en(e){const t=te(e);return t.range?`:L${t.range.start}-${t.range.end}`:typeof t.lineSuffix=="string"&&Et.test(t.lineSuffix)?t.lineSuffix:""}const Ze=e=>`@${xt(e)}${en(e)}`,Ke=e=>{const t=xt(e).replace(/\/+$/,"");return t?`@${t}/`:"@"};function oe(e){return t=>{const s=te(t),r=e?s.promptToken||t.id||t.label||e:s.promptToken||s.path||t.label||t.id;return`@${ee(r)}`}}const tn=e=>{const t=te(e);return Gr({id:ee(e.id),title:e.label||e.id,workspaceId:t.isExternalLink===!0?t.workspaceId:void 0})??(e.label||e.id||"")};function Ve(e){return t=>{const s=ee(t.label||t.id||e);return Yr({kind:e,id:t.id,name:s})??s}}const sn=e=>{const t=ee(te(e).path||e.label||e.id);return`@${t.startsWith(".intent/")||t.startsWith(".augment/")?t:`.intent/rules/${t}`}`},R=oe(),rn={member:e=>Wr(e),file:Ze,"file-range":Ze,folder:Ke,"source-folder":Ke,rule:sn,personality:oe("auggie-personality-agent-default"),note:tn,terminal:Ve("terminal"),script:Ve("script"),specialist:oe("specialist"),command:oe("command"),"note-range":R,"external-source":R,task:R,"user-guidelines":R,workspace:R,agent:R,symbol:R,branch:R,commit:R,pr:R,"linear-issue":R,"github-issue":R,group:R};function nn(e){return(rn[e.type]??R)(e)}const _e=["chat","markdown","preview"],ye=["chat","markdown"],O=["markdown"],Qe=["chat"],an=String.raw`&(?:[A-Za-z]+|#\d+|#x[0-9A-Fa-f]+);`,on=String.raw`[^\s<>()'"\/\[\]@:]+`,Ye="json|js|ts|tsx|jsx|md|mdx|yaml|yml|svelte|html|css|scss|py|go|rs|rb|java|kt|swift|m|mm|hpp|h|hh|c|cc|cpp|sh|toml|lock|ini|conf|txt|csv|sql";function ln(e){const{path:t,line:s}=xs(e);return s===void 0||!Et.test(e.slice(t.length))?{path:e}:{path:t,line:s}}function V(e,t){const{path:s,line:r}=ln(e);return{kind:"path",path:s,target:e,metaKey:t,...r!==void 0?{line:r}:{}}}const cn=/[^\s/@]@(?:[\^~]?v?\d+\.\d+(?!\d*x)|(?:latest|next|canary|beta|alpha|rc|stable)(?![\w.-]))[^/]*$/i;function ne(e,t){return cn.test(e)?null:V(e,t)}const Xe={linear:"linear-issue",github:"github-issue",sentry:"sentry-issue",browser:"browser-url"};function un(e){const t=Uint8Array.from(atob(e),s=>s.charCodeAt(0));return new TextDecoder("utf-8",{fatal:!0}).decode(t)}function dn(e){const t=e.slice(9,-1);if(/^[A-Za-z0-9+/=]+$/.test(t))try{const l=JSON.parse(un(t));if(l&&typeof l=="object"){const u=l.provider||"browser";return{kind:"context",context:{itemType:l.itemType||Xe[u]||"browser-url",provider:u,identifier:l.identifier||"",title:l.title||"",...l.url?{url:String(l.url)}:{},...l.description?{description:String(l.description)}:{},...l.metadata?{metadata:String(l.metadata)}:{}}}}}catch{}let s="browser",r,n;const a=t.indexOf("|"),i=a===-1?-1:t.indexOf("|",a+1);return i!==-1?(s=t.substring(0,a)||"browser",r=t.substring(a+1,i),n=t.substring(i+1)):a!==-1?(s=t.substring(0,a)||"browser",r=t.substring(a+1),n=r):(r=t,n=t),{kind:"context",context:{itemType:Xe[s]||"browser-url",provider:s,identifier:r,title:n}}}function fn(e){try{const s=new URL(e.replace("intent://","http://")).pathname.replace(/^\/+/,"").split("/").filter(Boolean);let r="",n="";return s[0]==="note"&&s[1]?r=s[1]:s[1]==="note"&&s[2]&&(n=s[0],r=s[2]),r?{kind:"note",form:"intent-url",note:{id:r,title:r},url:e,workspaceId:n}:null}catch{return null}}const Mt={name:"context",source:String.raw`context\[(?:[A-Za-z0-9+/=]+|[^[\]]*(?:\[[^\]]*\][^[\]]*)*|[^\]]*)\]`,at:!0,surfaces:ye,parse:dn},gn=[{name:"member",source:Ur,at:!0,surfaces:_e,parse:e=>{const t=Hr(e);return t?{kind:"member",member:t}:null}},{name:"note",source:Fr,at:!0,surfaces:_e,parse:e=>{const t=zr(e);return t?{kind:"note",form:"token",note:t}:null}},{name:"runtime",source:Vr,at:!0,surfaces:_e,parse:e=>{const t=Xr(e);return t?{kind:"runtime",mention:t}:null}},{name:"folder",source:String.raw`(?:${on}\/)+(?=[.,;:!?]*(?:$|[\s<>()'"\]]|${an}))`,at:!0,surfaces:ye,parse:e=>{const t=e.slice(1);return{kind:"folder",path:t.replace(/\/+$/,""),target:t}}},{name:"legacy-note",source:String.raw`note\/[A-Za-z0-9_-]+`,at:!0,surfaces:ye,parse:e=>{const t=e.slice(6);return{kind:"note",form:"legacy",note:{id:t,title:t}}}},{name:"rule",source:String.raw`\.augment\/rules\/[^\s<>()'"]+`,at:!0,surfaces:O,parse:e=>({kind:"rule",path:e.slice(1)})},{name:"absolute-path",source:String.raw`\/[^\s<>()'"]+`,at:!0,surfaces:O,parse:e=>ne(e.slice(1),"fullPath")},{name:"relative-path",source:String.raw`[A-Za-z0-9._-]+\/[^\s<>()'"]+\.[A-Za-z0-9]+${j}?`,at:!0,surfaces:O,parse:e=>ne(e.slice(1).split("/").map(t=>t.startsWith("@")?t.slice(1):t).join("/"),"fullPath")},{name:"file-name",source:String.raw`[A-Za-z0-9._-]+\.[A-Za-z0-9._-]+${j}?`,at:!0,surfaces:O,parse:e=>V(e.slice(1),"filename")},{name:"bare-file-name",source:String.raw`\b[A-Za-z0-9][A-Za-z0-9._-]+\.(?:${Ye})\b${j}?`,at:!1,surfaces:O,parse:e=>V(e,"filename")},{name:"bare-path",source:String.raw`\b[A-Za-z0-9._-]+(?:\/[A-Za-z0-9._-]+)+\.(?:${Ye})\b${j}?`,at:!1,surfaces:O,parse:e=>V(e,"fullPath")},{name:"personality",source:String.raw`auggie-personality-[\w-]+`,at:!0,surfaces:O,parse:e=>({kind:"personality",token:e.slice(1)})},{name:"workspace-note-path",source:String.raw`\/[^\s<>()'"]*(?:intent|\.workspaces)\/[a-f0-9-]+\/\.workspace\/notes\/[a-f0-9-]+\.json`,at:!1,surfaces:O,parse:e=>{const t=/\/([a-f0-9-]+)\.json$/.exec(e)?.[1];return t?{kind:"note",form:"workspace-path",note:{id:t,title:t},fullPath:e}:null}},{name:"intent-url",source:String.raw`intent:\/\/[^\s<>()'"]+`,at:!1,surfaces:O,parse:fn},Mt,{name:"chat-file",source:String.raw`[^\s@]+\.[a-zA-Z]+${j}?`,at:!0,surfaces:Qe,parse:e=>ne(e.slice(1),"fullPath")},{name:"chat-path",source:String.raw`[^\s@]*\/[^\s]+`,at:!0,surfaces:Qe,parse:e=>ne(e.slice(1),"fullPath")}],pn={chat:"(?<![A-Za-z0-9._%+-])",markdown:"",preview:""},Je=new Map;function Nt(e){let t=Je.get(e);if(!t){const s=gn.filter(n=>n.surfaces.includes(e)),r=s.map(n=>`(${n.at?`${pn[e]}@`:""}(?:${n.source}))`);t={regex:new RegExp(r.join("|"),"g"),entries:s},Je.set(e,t)}return t}function Pe(e,t,s={}){const{regex:r,entries:n}=Nt(t),a=[];r.lastIndex=0;let i;for(;(i=r.exec(e))!==null;){const l=i.findIndex((g,p)=>p>0&&g!==void 0),u=n[l-1],d=i[0],m=s.decode?s.decode(d):d;a.push({index:i.index,text:d,entry:u,parsed:u.parse(m)}),d.length===0&&r.lastIndex++}return a}function kl(e,t){const{regex:s}=Nt(t);s.lastIndex=0;const r=s.test(e);return s.lastIndex=0,r}const $t="mentionTokens",hn=new Set(["file","file-range","folder","source-folder","rule"]),_n=200,mn=2048;function Cl(e){const t=new Set;for(const s of e){if(!hn.has(s.type))continue;const r=nn(s);if(r.length>1&&r.length<=mn&&t.add(r),t.size>=_n)break}return{[$t]:[...t]}}function bn(e){if(!e||typeof e!="object")return null;const t=e[$t];return Array.isArray(t)?t.filter(s=>typeof s=="string"&&s.length>1&&s.startsWith("@")):null}function wl(e){if(!e||typeof e!="object")return null;const t=e.mergedMessageMetadata,s=Array.isArray(t)&&t.length>0?t:[e],r=new Set;for(const n of s){const a=bn(n);if(!a)return null;for(const i of a)r.add(i)}return[...r]}const Sn=/[A-Za-z0-9._%+-]/,yn=/[\w\-/@]/;function kn(e,t){const s=e[t];return s===void 0?!0:!(yn.test(s)||(s==="."||s===":")&&/\w/.test(e[t+1]??""))}function Lt(e){const t=e.slice(1);return t.endsWith("/")&&t.length>1?{kind:"folder",path:t.replace(/\/+$/,""),target:t}:V(t,"fullPath")}const Cn={name:"picked",source:String.raw`(?!)`,at:!0,surfaces:[],parse:Lt},wn=new Set(["folder","chat-file","chat-path"]);function vl(e,t){const s=Pe(e,"chat");if(t===null)return s;const r=s.filter(l=>!wn.has(l.entry.name)),n=r.map(l=>[l.index,l.index+l.text.length]),a=(l,u)=>n.some(([d,m])=>l<m&&d<u),i=[];for(const l of[...new Set(t)].sort((u,d)=>d.length-u.length))for(let u=e.indexOf(l);u!==-1;u=e.indexOf(l,u+1)){const d=u+l.length;u>0&&Sn.test(e[u-1])||!kn(e,d)||a(u,d)||(n.push([u,d]),i.push({index:u,text:l,entry:Cn,parsed:Lt(l)}))}return[...r,...i].sort((l,u)=>l.index-u.index)}function vn(e){switch(e.kind){case"member":{const{type:t,id:s,label:r,uri:n,meta:a}=e.member;return{type:t,id:s,label:r,uri:n,meta:a}}case"context":return null;case"note":switch(e.form){case"token":return Zr(e.note);case"legacy":return{type:"note",id:e.note.id,label:e.note.id};case"intent-url":return{type:"note",id:e.note.id,label:e.note.id,uri:e.url,meta:{workspaceId:e.workspaceId,fullUrl:e.url,isExternalLink:!!e.workspaceId}};case"workspace-path":return{type:"note",id:e.note.id,label:e.note.id,meta:{fullPath:e.fullPath}}}return null;case"runtime":return Jr(e.mention);case"rule":return{type:"rule",id:e.path,label:e.path.split("/").pop()||e.path,meta:{path:e.path}};case"folder":return{type:"folder",id:e.path,label:e.target,meta:{fullPath:e.path}};case"personality":return{type:"personality",id:e.token,label:e.token,meta:{promptToken:e.token}};case"path":{const t=e.target.slice(e.path.length);return{type:"file",id:e.path,label:e.target,meta:{[e.metaKey]:e.path,...e.line!==void 0?{line:e.line}:{},...t?{lineSuffix:t}:{}}}}}}function Al(e){if(e.kind==="context"){const{context:r}=e,n=[["data-type","context-mention"],["data-item-type",r.itemType],["data-provider",r.provider],["data-title",r.title],["data-identifier",r.identifier]];return r.url&&n.push(["data-url",r.url]),r.description&&n.push(["data-description",r.description]),r.metadata&&n.push(["data-metadata",r.metadata]),{attributes:n,className:"context-mention",text:r.title||r.identifier||"Link"}}const t=vn(e);if(!t)return null;const s=[["data-mention","true"],["data-type",t.type]];return t.id&&s.push(["data-id",t.id]),s.push(["data-label",t.label]),t.uri&&s.push(["data-uri",t.uri]),s.push(["data-meta",JSON.stringify(t.meta||{})]),{attributes:s,className:"mention-chip",text:t.type==="member"?Rt(t.label):t.label}}function An(e){switch(e.kind){case"member":return Rt(e.member.label);case"note":return e.form==="token"?`@${e.note.title}`:null;case"runtime":return`@${e.mention.name}`;default:return null}}function Tn(e){let t="",s=0;for(const r of Pe(e,"preview")){const n=r.parsed?An(r.parsed):null;n!==null&&(t+=e.slice(s,r.index)+n,s=r.index+r.text.length)}return t+e.slice(s)}function Tl(e,t,s){return Pe(e,t).some(r=>r.parsed?.kind===s)}const In=new RegExp(`@(?:${Mt.source})`,"g");function Rn(e){return e.replace(In,"")}const Pn=/<group:[^>]+>|<\/group(?::[^>]*)?>/g;function En(e){return e&&e.replace(Pn,"").trim()}const xn=[/^<!--.*-->$/,/^-->$/,/^<--$/,/^```\w*$/,/^---$/,/^\*{3,}$/,/^#{1,6}\s*$/,/^\s*[-*+]\s*$/,/^\s*\d+\.\s*$/];function Mn(e){const t=e.trim();if(!t)return!1;for(const s of xn)if(s.test(t))return!1;return!0}function et(e){if(!e)return"";const t=En(e);if(!t)return"";const s=t.split(`
|
|
17
|
+
`);for(let r=s.length-1;r>=0;r--){const n=s[r].trim();if(Mn(n))return n}return""}function tt(e){return Rn(Tn(ae(e)).replace(/^(\[.*?\]\s*)+/,"")).trim()}const Nn={messages:as("id"),recentlyRemovedMessageIds:[],isHydrating:!1,error:null},$n=o.createSelector((e,t)=>e.agentQueue?.byAgentId[t]??Nn),st=[],rt=new WeakMap,Il=o.createSelector((e,t,s)=>{const r=e.agentQueue?.mutations;if(!r||r.ids.length===0)return st;let n=rt.get(r);n||(n=new Map,rt.set(r,n));const a=`${s}\0${t}`;let i=n.get(a);if(!i){const l=T(r).filter(u=>u.agentId===t&&u.workspaceId===s);i=l.length===0?st:l,n.set(a,i)}return i}),Ln=o.createSelector((e,t,s)=>{const r=$n.select(e,t);return s!==void 0&&r.workspaceId!==void 0&&r.workspaceId!==s?[]:T(r.messages)});function y(e,t){return e.chatState?.byAgentId[t]??ls}const Rl=o.createSelector((e,t)=>y(e,t)),Pl=o.createSelector(e=>Object.keys(e.chatState?.byAgentId??{})),El=o.createSelector((e,t)=>y(e,t).error),xl=o.createSelector((e,t)=>y(e,t).isInterrupting),Ml=o.createSelector((e,t)=>y(e,t).lastTurnInterrupted===!0),Nl=o.createSelector((e,t)=>y(e,t).failureCorrelation),$l=o.createSelector((e,t)=>y(e,t).streamingStartTime),Ll=o.createSelector((e,t)=>y(e,t).lastChunkTime),Ol=o.createSelector((e,t)=>y(e,t).lastAttemptedMessage),Dl=o.createSelector((e,t)=>y(e,t).modelUnavailable),Ul=o.createSelector((e,t)=>y(e,t).quotaExceeded),Wl=o.createSelector((e,t)=>y(e,t).statusEvents),On=o.createSelector((e,t)=>y(e,t).receivedFirstChunk);o.createSelector((e,t)=>y(e,t).lastMessageTime);const Hl=o.createSelector((e,t)=>y(e,t).transcriptHydration),Fl=o.createSelector((e,t)=>y(e,t).transcriptHydratedOnce===!0);o.createSelector((e,t)=>y(e,t).liveStreamPhase??null);const jl=o.createSelector((e,t)=>y(e,t).initialHistory),ql=o.createSelector((e,t)=>y(e,t).initialHistoryPending===!0),Bl=o.createSelector((e,t)=>y(e,t).transcriptSnapshot),Gl=o.createSelector((e,t)=>y(e,t).fetchingOlderHistory),zl=o.createSelector((e,t)=>y(e,t).fetchingGapFill),Zl=o.createSelector((e,t)=>y(e,t).fetchingHistorySeek),Kl=o.createSelector((e,t)=>y(e,t).historySeekUnsupported),Vl=o.createSelector((e,t)=>e.agentSessions?.historySegmentsByAgentId?.[t]?.oldestReached===!0),Ql=o.createSelector((e,t)=>y(e,t).pendingQuestionRecovery),Yl=o.createSelector((e,t)=>y(e,t).previousUserMessageLoad),Xl=o.createSelector((e,t)=>y(e,t).pendingProposalRecovery),Jl=o.createSelector((e,t)=>y(e,t).awaitingSwitchBackSnapshot===!0),ec=o.createSelector((e,t,s,r)=>y(e,t).hydratedBlocks?.[os(s,r)]),tc=o.createSelector((e,t)=>y(e,t).hydratedBlocks),Dn=o.createSelector(e=>{const t=L.select(e),s=Q.select(e);return e.hostExecution?.connection!==s?null:(t==="owner"||t==="member")&&I.select(e)?.capabilities.hostMembership?Q.select(e):null}),Un=o.createSelector(e=>e.hostExecution?.connection===Dn.select(e)?e.hostExecution?.context??null:null),Ot=o.createSelector(e=>L.select(e)==="member"),sc=o.createSelector(e=>e.hostExecution.generation);function Wn(e,t=!0){switch(e.kind){case"profile":return e.name;case"default":return e.name??c.chat_modelPicker_defaultProfile_name();case"missing":return t?c.chat_modelPicker_missingProfile_name():void 0;default:return}}function Dt(e,t,s,r,n,a=!0){const i=Wn(cs(e,s,r,n),a);return i?c.chat_modelPicker_profileGroup_label({provider:t,profile:i}):t}const rc=o.createSelector(e=>e.providerCatalog?.loaded??!1),Ee=o.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]?.catalog.providers??[]:e.providerCatalog?T(e.providerCatalog.providers):[]),nt=[],Ut=o.createSelector((e,t)=>{if(t)return e.providerCatalog?.byWorkspaceId?.[t]?.catalog.profiles??nt;const s=e.providerCatalog?.profiles;return s&&s.ids.length>0?T(s):nt}),Hn={},Wt=o.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]!==void 0:e.providerCatalog?.loaded??!1),Fn=o.createSelector((e,t)=>{const s=t?e.providerCatalog?.byWorkspaceId?.[t]?.catalog.defaultNames:e.providerCatalog?.defaultNames;return s&&Object.keys(s).length>0?s:Hn}),nc=o.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]?.catalog.defaultRemoteIncompatibility:e.providerCatalog?.defaultRemoteIncompatibility),ac=o.createSelector((e,t)=>t?Ee.select(e,t).map(s=>s.id):e.providerCatalog?.providers.ids??[]),de=o.createSelector((e,t)=>{if(t){const s=e.providerCatalog?.byWorkspaceId?.[t]?.settings.find(r=>r.path==="model.defaultProvider")?.value;return typeof s=="string"?s:""}return Ot.select(e)?Un.select(e)?.defaultProviderId??"":e.model?.defaultProviderId??""}),ce=o.createSelector((e,t,s)=>s?Ee.select(e,s).find(r=>r.id===t):e.providerCatalog?W(e.providerCatalog.providers,t):void 0),X=o.createSelector((e,t,s)=>{const r=ce.select(e,t,s);return r||!t?r:Ee.select(e,s).find(n=>n.legacyAliases?.includes(t))});o.createSelector((e,t)=>ce.select(e,t)??ce.select(e,de.select(e)));o.createSelector((e,t)=>ce.select(e,t)?.canBeDisabled===!1?!0:e.providerSettings.enabledProviders[t]??!1);const ke=o.createSelector((e,t,s)=>X.select(e,t,s)?.id??t),jn=o.createSelector((e,t,s)=>{if(is(t)){const r=ct(t),n=X.select(e,r,s)?.displayName??r;return Dt(t,n,Ut.select(e,s),r,void 0,Wt.select(e,s))}return X.select(e,t,s)?.displayName??t}),oc=o.createSelector((e,t,s)=>{const r=ct(t);return Dt(t,jn.select(e,r,s),Ut.select(e,s),r,Fn.select(e,s),Wt.select(e,s))});o.createSelector((e,t,s)=>ke.select(e,ve(t).providerId??de.select(e))===ke.select(e,s));const lc=o.createSelector((e,t,s)=>it(X.select(e,t),s)),cc=o.createSelector((e,t,s,r)=>{if(!r||Ot.select(e))return null;let n=t||"";!n&&s?.includes(":")&&(n=ve(s).providerId||"");const a=X.select(e,n||de.select(e));if(!it(a,r))return null;const i=a?.id??n;return{providerId:i,loginCommandHint:a?.loginCommandHint||`${a?.command??i} login`,showClaudeDesktopNote:i==="claude-code"}}),ic=o.createSelector((e,t)=>e.agentSessions.projectionVersions?.[t]),uc=o.createSelector((e,t)=>e.agentSessions.backgroundModePending?.[t]===!0);function xe(e){if(e)return e}function Ht(e){const t=e?.metadata;return t?.interrupted===!0||typeof t?.stopReason=="string"||typeof t?.finishReason=="string"}function Ft(e){return Ht(e)?!1:e?.isStreaming===!0||e?.streamingComplete===!1}function qn(e){const t=e.messages;for(let r=t.length-1;r>=0;r--){const n=t[r];if(n.role==="assistant"&&Ft(n))return n}const s=t[t.length-1];if(e.isStreaming===!0&&s?.role==="assistant"&&!Ht(s))return s}function Bn(e){const t=e?.contentBlocks??[];let s=-1;for(let n=t.length-1;n>=0;n--)if(t[n].type==="tool_use"){s=n;break}let r="";for(let n=s+1;n<t.length;n++){const a=t[n];a.type==="text"&&(r+=us(a))}return r}function jt(e){return e===A.Halted||e===A.Completed||e===A.Error||e===A.Deleted}function Gn(e){return jt(e.status)?!1:e.isWaitingForOtherAgents===!0}function zn(e){return jt(e.status)?!1:e.status===A.Waiting||e.isWaitingOnTool===!0}function qt(e){return _t(e)}function Me(e){return js(e)}const z=o.createSelector((e,t)=>{if(t)return xe(e.agentSessions?.byAgentId[t])}),dc=o.createSelector((e,t)=>!!(t&&e.agentSessions?.detailHydrated?.[t])),fc=o.createSelector((e,t)=>t?e.agentSessions?.byAgentId[t]?.tailCapPruned===!0:!1),Zn=o.createSelector((e,t)=>{if(!t)return;const s=e.agentSessions?.byAgentId[t],r=s?Ls(s,de.select(e,s.workspaceId)):void 0;return r?ke.select(e,r,s?.workspaceId):void 0}),gc=o.createSelector((e,t)=>{const s=[];for(const r of t){const n=xe(e.agentSessions?.byAgentId[r]);n&&s.push(n)}return s}),pc=o.createSelector(e=>e.agentSessions?.byAgentId??{}),hc=o.createSelector((e,t)=>{const s=e.agentSessions?.byAgentId[t];return s?s.messages:[]}),Kn=[],_c=o.createSelector((e,t)=>{const s=e.agentSessions?.historySegmentsByAgentId?.[t];return s?s.messages:Kn}),mc=o.createSelector((e,t)=>e.agentSessions?.historySegmentsByAgentId?.[t]!==void 0),bc=o.createSelector((e,t)=>{const s=e.agentSessions?.historySegmentsByAgentId?.[t],r=e.agentSessions?.byAgentId[t]?.messages.length??0;return{gapToTail:s?.gapToTail===!0,oldestReached:s?.oldestReached===!0,historyCount:s?.messages.length??0,tailCount:r,startOrdinalEstimate:s?.startOrdinalEstimate??null,holeRowsEstimate:s?.holeRowsEstimate??null}}),Sc=o.createSelector((e,t,s)=>{if(!t||!s)return;const r=e.agentSessions?.byAgentId[t];if(!r)return;const n=r.messages.find(i=>i.id===s);return n||e.agentSessions?.historySegmentsByAgentId?.[t]?.messages.find(i=>i.id===s)});o.createSelector((e,t)=>e.agentSessions?.byAgentId[t]?.isProcessing===!0);const yc=o.createSelector((e,t)=>e.agentSessions?.byAgentId[t]?.isStreaming===!0),kc=o.createSelector((e,t)=>{const s=e.agentSessions?.byAgentId[t];return s?Bn(qn(s)):""}),Cc=o.createSelector((e,t)=>{const s=e.agentSessions?.byAgentId[t]?.messages??[],r=s[s.length-1];return r?.role==="assistant"&&Ft(r)}),wc=o.createSelector((e,t)=>e.agentSessions?.byAgentId[t]?.workspaceId),Vn=new Set(["low","medium","high","xhigh"]),Qn=new Set(["gpt-5.3-codex","gpt-5.2-codex","gpt-5.1-codex-max"]),vc=o.createSelector((e,t)=>{const s=e.agentSessions?.byAgentId[t];if(!s)return;if(typeof s.reasoningEffort=="string"&&s.reasoningEffort.length>0)return s.reasoningEffort;if(s.reasoningEffort===null)return;const r=s.model;if(typeof r!="string")return;const n=r.indexOf("/");if(n<=0||n>=r.length-1)return;const a=r.slice(n+1);if(!Vn.has(a))return;const i=r.slice(0,n);return Zn.select(e,t)==="codex"||i.startsWith("codex:")||Qn.has(i)?a:void 0});o.createSelector((e,t)=>e.agentSessions?.byAgentId[t]!==void 0);o.createSelector((e,t)=>{const s=e.agentSessions?.byAgentId[t];return s?s.activationState===be.ERROR||s.activationState===be.ACTIVE?!0:s.status!==A.Pending&&!!s.backendSessionId:!1});const Bt=o.createSelector((e,t)=>{const s=e.agentSessions?.byAgentId[t];return s?Me(s):!1});o.createSelector((e,t)=>Ln.select(e,t));o.createSelector(e=>{const t=e.agentSessions?.byAgentId??{},s=[];for(const r of Object.keys(t)){const n=t[r];if(n&&(Me(n)||qt(n))){const a=xe(n);a&&s.push(a)}}return s});const Ac=o.createSelector((e,t)=>Bt.select(e,t)),Yn=o.createSelector((e,t)=>{const s=e.agentSessions?.byAgentId[t];return s?Gn(s):!1}),Tc=o.createSelector((e,t)=>{const s=e.agentSessions?.byAgentId[t];return s?zn(s)||Yn.select(e,t):!1});o.createSelector((e,t)=>{const s=e.agentSessions?.byAgentId[t];return s?qt(s):!1});const Ic=o.createSelector((e,t)=>{const s=e.agentSessions?.byAgentId[t];return s?ut(s):null}),Rc=o.createSelector((e,t)=>{const s=e.agentSessions?.byAgentId[t];return s?Me(s):!1}),Pc=o.createSelector((e,t,s,r)=>{const n=e.agentSessions?.byAgentId[t],a=qs(n),i=Bt.select(e,t),l=On.select(e,t),u=ut(n);let d="";i&&l&&n?.lastAgentResponse&&(d=et(n.lastAgentResponse));const m=d||(a?.lastResponse?et(a.lastResponse):""),g=tt(a?.lastUserMessage||n?.lastUserMessage||"").split(`
|
|
18
|
+
`)[0]?.trim()??"",p=a?.lastToolUse,S=i&&n?.lastToolUse?p:void 0,v=S?lr(S.name,S.input||{}):null,h=!!S&&!v?.hidden,k=a?.lastMessageRole==="user"&&!!g&&!d&&!h,F=i?n?.digest||void 0:a?.digest||s||a?.completionReport||r,ss=tt(a?.lastUserMessage??""),De=kr({attentionRequest:u,liveResponseLine:d,liveToolUse:S,hasRenderableLiveTool:h,showUserMessagePreview:k,userFirstLine:g,effectiveCompletionReport:F,lastResponse:m,lastToolUse:p,lastUserMsg:ss});return De?{...De,isLive:i}:null}),Xn=o.createSelector((e,t,s,r)=>{const n=e.workspaceAgents.creationOutcomes,a=n?W(n,t):void 0;return a?.workspaceId===s&&a.resourceId===r?a:void 0}),Jn=o.createSelector(e=>{const t=e.workspaceAgents.retirementSupport;return t?.connectionGeneration===e.daemonHealth.connectionGeneration&&t?.supported===!0});function b(e,t){return e.workspaceAgents.byWorkspaceId[t]??ds}const Gt=o.createSelector((e,t)=>{if(!t)return[];const s=b(e,t).agentIds,r=[];for(const n of s){const a=z.select(e,n);a&&r.push(a)}return r}),zt=o.createSelector((e,t)=>t?b(e,t).foregroundAgentIds:[]),ea=o.createSelector((e,t)=>{if(!t)return[];const s=b(e,t),r=new Set(s.foregroundAgentIds.map(a=>String(a))),n=[];for(const a of s.agentIds){if(r.has(String(a)))continue;const i=z.select(e,a);i&&n.push(i)}return n}),Zt=o.createSelector((e,t)=>{const s=zt.select(e,t),r=[];for(const n of s){const a=z.select(e,String(n));a&&r.push(a)}return r}),ta=o.createSelector((e,t)=>Zt.select(e,t).some(s=>!s.retiredAt&&s.hasUnread===!0)),sa=o.createSelector((e,t)=>b(e,t).agentsLoaded),ra=o.createSelector((e,t)=>b(e,t).agentsReadRevision??0),na=o.createSelector((e,t)=>b(e,t).isLoadingAgents),aa=o.createSelector((e,t)=>b(e,t).retiredCount),oa=o.createSelector((e,t)=>b(e,t).retiredAgentsLoaded),la=o.createSelector((e,t)=>b(e,t).isLoadingRetiredAgents),ca=o.createSelector((e,t)=>b(e,t).scopeCounts),ia=o.createSelector((e,t)=>b(e,t).scopeCountsGeneration),ua=o.createSelector((e,t)=>b(e,t).delegatedAgentsLoaded),da=o.createSelector((e,t)=>b(e,t).isLoadingDelegatedAgents),fa=o.createSelector((e,t)=>b(e,t).delegatedCounts),ga=o.createSelector((e,t,s)=>{const r=b(e,t);return r.delegatedAgentsLoaded||r.loadedDelegatedParentIds[s]===!0}),pa=o.createSelector((e,t,s)=>b(e,t).loadingDelegatedParentIds[s]===!0),ha=o.createSelector((e,t)=>b(e,t).loadedDelegatedParentIds),_a=o.createSelector((e,t)=>b(e,t).loadingDelegatedParentIds),ma=o.createSelector((e,t)=>b(e,t).orphanedDelegatedAgentsLoaded),ba=o.createSelector((e,t)=>b(e,t).orphanedDelegatedAgentIds),Sa=o.createSelector((e,t)=>b(e,t).isLoadingOrphanedDelegatedAgents),ya=o.createSelector((e,t)=>b(e,t).backgroundAgentsLoaded),ka=o.createSelector((e,t)=>b(e,t).isLoadingBackgroundAgents);function Ce(e,t){const s=new Date(e.createdAt).getTime(),r=new Date(t.createdAt).getTime(),n=Number.isFinite(s)?s:Number.MAX_SAFE_INTEGER,a=Number.isFinite(r)?r:Number.MAX_SAFE_INTEGER;return n-a||String(e.id).localeCompare(String(t.id))}function Ca(e){let t=null;for(const r of e.messages){if(r.role!=="user")continue;const n=new Date(r.timestamp).getTime();Number.isFinite(n)&&(t===null||n>t)&&(t=n)}if(t!==null||!e.lastUserMessage)return t;const s=new Date(e.lastActivity??e.updatedAt).getTime();return Number.isFinite(s)?s:null}function wa(e){const t=e.filter(s=>!s.retiredAt).sort(Ce);return t.find(s=>s.isInitialAgent===!0)??t.find(s=>s.metadata?.isInitialAgent===!0)??t.find(s=>!s.isBackground&&!s.parentSessionId)??t.find(s=>!s.isBackground)??t[0]??null}function va(e,t){const s=e.filter(r=>String(r.workspaceId)===t&&r.status!=="deleted"&&!r.pendingDeleteAt&&!r.retiredAt&&dt(r)==="topLevel"&&!r.parentSessionId);return s.find(r=>(r.metadata?.specialist??r.agentMetadata?.specialist)==="spec-writer")??s[0]??null}function Kt(e,t,s=!1){const r=e.filter(l=>String(l.workspaceId)===t&&l.status!=="deleted"&&!l.pendingDeleteAt&&!l.retiredAt);if(s){const l=[...r].sort(Ce).find(u=>u.isInitialAgent===!0||u.metadata?.isInitialAgent===!0||u.agentMetadata?.isInitialAgent===!0);if(l)return l}const n=e.filter(l=>String(l.workspaceId)===t&&l.status!=="deleted"&&!l.pendingDeleteAt&&!l.retiredAt&&l.isInitialAgent!==!0&&l.metadata?.isInitialAgent!==!0&&l.agentMetadata?.isInitialAgent!==!0&&dt(l)==="topLevel"&&!l.parentSessionId).sort(Ce);let a=null,i=Number.NEGATIVE_INFINITY;for(const l of n){const u=Ca(l);u!==null&&u>i&&(a=l,i=u)}return a}const Aa=o.createSelector((e,t)=>Kt(Gt.select(e,t),t)),Ta=o.createSelector((e,t)=>{const s=b(e,t);if(s.initialAgentId)return s.initialAgentId;for(const r of s.agentIds){const n=z.select(e,r);if(n?.isInitialAgent===!0||n?.metadata?.isInitialAgent===!0)return r}return null}),Vt=o.createSelector((e,t)=>{const s=b(e,t);return!!s.initialAgentId&&s.recentlyCreatedAgents.includes(s.initialAgentId)}),Ia=o.createSelector((e,t)=>b(e,t).recentlyCreatedAgents),Ra=o.createSelector((e,t)=>b(e,t).agentIds),Pa=o.createSelector((e,t)=>b(e,t).activeAgentId),fe=o.createSelector((e,t,s)=>{if(!t||!s)return;const r=String(s),n=z.select(e,r);return n&&(n.workspaceId===t||b(e,t).agentIds.some(l=>String(l)===r))?n:void 0}),Ea=o.createSelector((e,t,s)=>!!fe.select(e,t,s)),xa=o.createSelector((e,t,s)=>fe.select(e,t,s)?.isStreaming===!0),Ma=o.createSelector((e,t,s)=>fe.select(e,t,s)?.metadata?.softDeleted===!0),Na=o.createSelector((e,t)=>{const s=b(e,t);if(s.activeAgentId)return z.select(e,s.activeAgentId)??void 0}),$a=o.createSelector((e,t)=>b(e,t).isInitialSpecWriteInProgress),La=o.createSelector((e,t,s)=>b(e,t).diskMessageCounts[s]??0),Oa={agentNodes:!1,localNodeIsolation:!1},Da=o.createSelector(e=>{const t=e.workspaceAgents.nodeSupport;return t?.generation===e.daemonHealth.connectionGeneration?t.capabilities:Oa}),Ua=o.createSelector(e=>e.workspaceAgents.nodeOperationBusy===!0),Ec=Object.freeze(Object.defineProperty({__proto__:null,resolveCanonicalInitialAgent:wa,resolveEmptyLayoutAgent:Kt,resolveExistingWorkspaceDefaultAgent:va,selectActiveAgent:Na,selectActiveAgentId:Pa,selectAgentCreationOutcome:Xn,selectAgentRetirementSupported:Jn,selectAgentsLoaded:sa,selectAgentsReadRevision:ra,selectAllWorkspaceAgents:Gt,selectBackgroundAgentsLoaded:ya,selectBackgroundWorkspaceAgents:ea,selectDelegatedAgentsLoaded:ua,selectDelegatedCounts:fa,selectDelegatedParentLoaded:ga,selectDiskMessageCount:La,selectEmptyLayoutAgent:Aa,selectForegroundWorkspaceAgents:Zt,selectInitialAgentId:Ta,selectIsInitialSpecWriteInProgress:$a,selectIsLoadingAgents:na,selectIsLoadingBackgroundAgents:ka,selectIsLoadingDelegatedAgents:da,selectIsLoadingDelegatedParent:pa,selectIsLoadingOrphanedDelegatedAgents:Sa,selectIsLoadingRetiredAgents:la,selectIsNewlyCreatedWorkspace:Vt,selectLoadedDelegatedParentIds:ha,selectLoadingDelegatedParentIds:_a,selectNodeCapabilities:Da,selectNodeOperationBusy:Ua,selectOrphanedDelegatedAgentIds:ba,selectOrphanedDelegatedAgentsLoaded:ma,selectRecentlyCreatedAgents:Ia,selectRetiredAgentsLoaded:oa,selectRetiredCount:aa,selectScopeCounts:ca,selectScopeCountsGeneration:ia,selectWorkspaceAgentIds:Ra,selectWorkspaceAgentIsSoftDeleted:Ma,selectWorkspaceAgentIsStreaming:xa,selectWorkspaceAgentSession:fe,selectWorkspaceForegroundAgentIds:zt,selectWorkspaceHasAgent:Ea,selectWorkspaceHasUnreadForegroundAgents:ta},Symbol.toStringTag,{value:"Module"}));function w(e,t){return e.changes.byWorkspaceId[t]??gs}const xc=o.createSelector(e=>e.changes.mainPanelView),Mc=o.createSelector((e,t)=>w(e,t).loading),Nc=o.createSelector((e,t)=>w(e,t).hasLoadedInitialData),$c=o.createSelector((e,t)=>w(e,t).changes),Wa=o.createSelector((e,t)=>w(e,t).commits),Lc=o.createSelector((e,t)=>w(e,t).boundarySha),Oc=o.createSelector((e,t)=>w(e,t).olderCommits),Dc=o.createSelector((e,t)=>w(e,t).loadingOlderCommits),Uc=o.createSelector((e,t)=>w(e,t).changesTruncated),Wc=o.createSelector((e,t)=>w(e,t).totalChangesCount),Hc=o.createSelector((e,t)=>w(e,t).changes.filter(r=>r.stage===ue.Staged)),Fc=o.createSelector((e,t)=>w(e,t).changes.filter(r=>r.stage===ue.Unstaged)),jc=o.createSelector((e,t)=>t?w(e,t).changes:[]),Ha=o.createSelector((e,t)=>t?w(e,t).changes.filter(r=>r.stage===ue.Staged):[]),Fa=o.createSelector((e,t)=>t?w(e,t).changes.filter(r=>r.stage===ue.Unstaged):[]),qc=o.createSelector((e,t)=>t?w(e,t).commits:[]),Bc=o.createSelector((e,t)=>w(e,t).changes.map(r=>({path:r.relativePath,additions:r.stats.additions,deletions:r.stats.deletions,action:ja(r.status)})));function ja(e){switch(e){case"added":return"create";case"deleted":return"delete";case"modified":case"renamed":default:return"modify"}}const qa=o.createSelector((e,t)=>e.changes.agentStats[t]);o.createSelector(e=>e.changes.agentStats);const Ba=o.createSelector((e,t)=>e.changes.agentLineStatsRequests[t]??fs),Gc=o.createSelector((e,t,s=!1)=>!(Ba.select(e,t).isLoading||!s&&qa.select(e,t))),zc=o.createSelector((e,t)=>w(e,t).acceptChanges),Zc=o.createSelector((e,t)=>w(e,t).acceptChanges.commitWhenReady),Kc=o.createSelector((e,t)=>w(e,t).acceptChanges.createPRWhenReady),Vc=o.createSelector((e,t)=>w(e,t).acceptChanges.mergeWhenReady),Ga={aheadOfTrunk:null,behindTrunk:0,hasConflicts:!1,isContentMergedToTrunk:!1,hasRemote:!0,isMergedToTrunk:!1,mergeHeadSha:null,hasResetToTrunk:!1},za=o.createSelector((e,t)=>T($(e.git,t).reads)),Qc=o.createSelector((e,t,s)=>{const r={};for(const n of za.select(e,t)){if(n.request.kind!=="commitDetails"||n.request.gitRootId!==s||n.result?.kind!=="commitDetails")continue;const a=n.result.details;a&&(r[n.request.commitHash]=a.fileDetails.ids.length?T(a.fileDetails):a.files.map(i=>({path:i,additions:0,deletions:0})))}return r}),Yc=o.createSelector((e,t,s)=>{const r=$(e.git,t),n=W(r.readConsumers,s),a=n&&W(r.reads,n.readKey);if(!n||!a)return;const i=a.result;let l=null;return i?.kind==="diffs"?l={...i,chunks:T(i.chunks)}:i?.kind==="commitDetails"?l={...i,details:i.details?{...i.details,fileDetails:T(i.details.fileDetails)}:null}:i?.kind==="numstat"?l={...i,entries:T(i.entries)}:i?.kind==="autoCommitStatus"?l={...i,statuses:T(i.statuses).map(({status:u})=>u)}:l=i,{requestId:n.requestId,request:a.request,loading:a.loading,error:a.error,result:l}}),Za=o.createSelector((e,t)=>$(e.git,t).status),Xc=o.createSelector((e,t)=>$(e.git,t).ahead),Jc=o.createSelector((e,t)=>$(e.git,t).behind),ei={status:null,commits:[],commitFiles:{},loading:!1,error:null},ti=o.createSelector((e,t)=>Object.fromEntries(Object.entries($(e.git,t).secondaryRoots).map(([s,r])=>[s,{...r,commits:T(r.commits),commitFiles:Object.fromEntries(T(r.commitFiles).map(({commitHash:n,files:a})=>[n,a?T(a):null]))}]))),si=o.createSelector((e,t)=>$(e.git,t).postMergeState??Ga),ri=o.createSelector((e,t)=>$(e.git,t).acceptChangesStatus),ni=o.createSelector((e,t)=>$(e.git,t).acceptChangesStatusLoading),ai=o.createSelector((e,t)=>$(e.git,t).gitOperations??ps);function at(e){const t=e.trim().replace(/^v/,"").match(/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?(?:\+[0-9A-Za-z.-]+)?$/);return t?{core:[Number(t[1]),Number(t[2]),Number(t[3])],pre:t[4]?t[4].split("."):[]}:null}function Ka(e,t){const s=at(e),r=at(t);if(!s||!r)return"unknown";for(let a=0;a<3;a++)if(s.core[a]!==r.core[a])return s.core[a]<r.core[a]?"older":"newer";if(s.pre.length===0&&r.pre.length===0)return"equal";if(s.pre.length===0)return"newer";if(r.pre.length===0)return"older";const n=Math.max(s.pre.length,r.pre.length);for(let a=0;a<n;a++){const i=s.pre[a],l=r.pre[a];if(i===void 0)return"older";if(l===void 0)return"newer";const u=/^\d+$/.test(i),d=/^\d+$/.test(l);if(u&&d){const m=Number(i)-Number(l);if(m!==0)return m<0?"older":"newer"}else{if(u!==d)return u?"older":"newer";if(i!==l)return i<l?"older":"newer"}}return"equal"}const oi=o.createSelector(e=>e.daemonHealth.health),li=o.createSelector(e=>e.daemonHealth.stats),ci=o.createSelector(e=>e.daemonHealth.lastUpdated),ii=o.createSelector(e=>e.daemonHealth.statusCheckFailure),ui=o.createSelector(e=>e.daemonHealth.connectionGeneration),di=o.createSelector(e=>e.daemonHealth.transport),fi=o.createSelector(e=>e.daemonHealth.reconnectAttempts),gi=o.createSelector(e=>e.daemonHealth.connectionLimited),pi=o.createSelector(e=>e.daemonHealth.connectionLimitRetryAfterMs),hi=o.createSelector(e=>{const t=e.daemonHealth.stats?.version,s=e.daemonHealth.transport?.pinnedVersion;return!t||!s?null:{comparison:Ka(t,s),daemonVersion:t,pinnedVersion:s}}),Va={major:10,minor:5};function Qa(e){const{major:t,minor:s}=Va;return lt(e,t,s)}const _i=o.createSelector(e=>Qa(e.daemonHealth.stats?.protocolVersion)),Ya={major:10,minor:8};function Xa(e){const{major:t,minor:s}=Ya;return lt(e,t,s)}const mi=o.createSelector(e=>Xa(e.daemonHealth.stats?.protocolVersion));function Ja(e){return e===null||e.mode!=="external-ws"}const eo=o.createSelector(e=>{const t=e.daemonHealth.hostLocality;return t==="local"||t==="remote"?t==="local":Ja(e.daemonHealth.transport)}),bi=o.createSelector(e=>e.daemonHealth.transport?.mode==="sidecar-uds"),Si=o.createSelector(e=>e.daemonHealth.sidecarGaveUp),yi=o.createSelector(e=>e.daemonHealth.sidecarGaveUpReason),ki=o.createSelector(e=>e.daemonHealth.sidecarStartupFailed),Ci=o.createSelector(e=>e.daemonHealth.sidecarStartupFailedReason),wi=o.createSelector(e=>e.daemonHealth.hasEverConnected),vi=o.createSelector(e=>e.daemonHealth.sidecarSpawnPending),Ai=o.createSelector(e=>e.daemonHealth.sidecarSpawnError),Ti=o.createSelector(e=>e.daemonHealth.daemonUpdateDisconnectedAt),Ii=o.createSelector(e=>e.daemonHealth.sidecarRunLog),Ri=o.createSelector(e=>e.daemonHealth.sidecarRunLogPending),Pi=o.createSelector(e=>e.daemonHealth.sidecarRunLogError),Ei=o.createSelector(e=>e.daemonHealth.unslothStatus),xi=o.createSelector(e=>e.daemonHealth.unslothStopping),Mi=o.createSelector(e=>e.daemonHealth.agentMemoryUsage),Ni=o.createSelector(e=>e.daemonHealth.agentMemoryUsageError),$i=o.createSelector(e=>e.daemonHealth.daemonStartup),Ne=o.createSelector((e,t)=>{const s=e.prMonitor?.byWorkspaceId?.[t];return s?T(s.monitors):[]});o.createSelector((e,t)=>Ne.select(e,t).filter(Ns));o.createSelector((e,t)=>e.prMonitor?.byWorkspaceId?.[t]?.support??"unsupported");const Li=o.createSelector((e,t)=>e.prMonitor?.byWorkspaceId?.[t]?.snapshotStatus??"loading"),to=o.createSelector((e,t)=>Ne.select(e,t).filter(s=>s.state==="active")),Oi=o.createSelector((e,t,s)=>Ne.select(e,t).filter(r=>r.agentId===s));function so(e){return e?.plainFolder===!0}const ro=o.createSelector(e=>e.workspace.workspaces),no=o.createSelector(e=>e.workspace.loading),ao=o.createSelector(e=>e.workspace.hasLoaded),Qt=o.createSelector((e,t)=>{if(!e.workspace.hasLoaded||e.workspace.loadedBackendId!==t)return!1;const s=G.select(e);return e.workspace.capabilityContext!=null||I.select(e)?.capabilities.hostMembership?s!==null&&s===e.workspace.capabilityContext:!0}),ge=o.createSelector(e=>{const t=G.select(e);return t!==null&&e.workspace.capabilityContext===t&&Qt.select(e,e.connections.windowBackendId)}),oo=o.createSelector(e=>e.workspace.isCreating),lo=o.createSelector(e=>e.workspace.pendingDeletions),co=o.createSelector(e=>e.workspace.pendingCreations),io=o.createSelector((e,t)=>[...t].sort((s,r)=>{const n=e.workspace.recency.lastViewedAt[s.id]??0,a=e.workspace.recency.lastViewedAt[r.id]??0;return n&&a?a-n:n?-1:a?1:0})),N=o.createSelector((e,t)=>W(e.workspace.workspaces,t)),uo=o.createSelector((e,t)=>so(N.select(e,t))),fo=o.createSelector((e,t)=>e.workspace.detailHydrated[t]===!0);function go(e){return e?.pullRequestsTotal!==void 0&&e.pullRequestsTotal>(e.pullRequests?.length??0)}const po=o.createSelector((e,t)=>N.select(e,t)?.environmentConfig),ho=o.createSelector((e,t)=>{if(!eo.select(e))return!1;const s=N.select(e,t);return s?s.environmentConfig?.type!=="remote"&&s.isRemote!==!0:!0}),_o=o.createSelector((e,t)=>N.select(e,t)?.waiting===!0),mo=o.createSelector((e,t)=>{if(t===U||t===ie)return!1;const s=I.select(e),r=L.select(e),n=N.select(e,t);return!s||!r||!n||s.capabilities.hostMembership&&!ge.select(e)?!1:r==="owner"||r==="member"}),pe=o.createSelector((e,t)=>{const s=I.select(e),r=L.select(e);if(!s||r===null)return!1;if(t===U||t===ie)return r==="owner";const n=N.select(e,t);return n?s.capabilities.hostMembership?ge.select(e)&&n?.canManage===!0:n.myRole==="owner"||r==="owner"&&n.myRole!=="collaborator"&&n.myRole!=="manager":!1}),bo=o.createSelector((e,t)=>{if(ft.select(e))return!0;const s=L.select(e);if(s===null)return!1;if(t===U||t===ie)return s!=="owner";const r=N.select(e,t);return I.select(e)?.capabilities.hostMembership?ge.select(e)&&r?.canManage===!1:r?.myRole==="collaborator"||r?.myRole==="manager"}),$e=o.createSelector((e,t)=>pe.select(e,t)&&(H.select(e)||J.select(e))),So=o.createSelector((e,t)=>Z.select(e,t)===null),yo=o.createSelector((e,t)=>Z.select(e,t)===null),Yt=o.createSelector((e,t)=>!!I.select(e)&&N.select(e,t)?.myRole==="owner"),ko=o.createSelector((e,t)=>J.select(e)&&pe.select(e,t)&&(I.select(e)?.capabilities.hostMembership===!0||Yt.select(e,t))),Co=o.createSelector((e,t)=>Z.select(e,t)===null),wo=o.createSelector(e=>!H.select(e)),vo=o.createSelector(e=>T(e.workspace.workspaces).filter(t=>t.id!==U)),Ao=o.createSelector(e=>e.workspace.workspaces.ids.length===0),he=o.createSelector((e,t)=>W(e.workspace.workspaces,t)?.activePullRequest??null),To=o.createSelector((e,t,s)=>{const r=Vt.select(e,t),n=Ha.select(e,t),a=Fa.select(e,t),i=Wa.select(e,t)??[],l=Za.select(e,t);return!!(r&&s==="spec"&&!n.length&&!a.length&&!i.length&&!l?.files.length)});function we(e,t){const s=t.gitStatus?.existingPR;return{prNumber:e?.number??s?.number,prUrl:e?.url??s?.htmlUrl}}function Io(e){return e.isDraft||e.status===re.Draft?"draft":e.status===re.Open?"open":e.status===re.Merged?"merged":e.status===re.Closed?"closed":"unknown"}function Ro(e,t){if(t)return"draft";const s=e.toLowerCase();return s==="open"||s==="merged"||s==="closed"?s:s==="draft"?"draft":"unknown"}function ot(e){const{number:t,url:s,repo:r,chipLabel:n,title:a,status:i,mergeRequest:l}=e,u=C(t),d=r?`${r}${l?"!":"#"}${u}`:`${l?"!":"#"}${u}`;return{number:t,url:s,repo:r,chipLabel:n,title:a,status:i,actionLabel:a?`${n}: ${a}`:n,actionTooltip:(l?c.workspace_progress_viewMrIdentity_tooltip:c.workspace_progress_viewPrIdentity_tooltip)({identity:d})}}const Xt=o.createSelector((e,t)=>{const s=W(e.workspace.workspaces,t),r=s?.repositoryOwner&&s?.repositoryName?`${s.repositoryOwner}/${s.repositoryName}`:void 0,n=s?.activePullRequest,a=n?.number??s?.prNumber,i=n?.url??s?.prUrl;if(a!=null&&i)return ot({number:a,url:i,repo:r,chipLabel:r?gt(r,a,r):`#${a}`,title:n?.title||void 0,status:n?Io(n):"unknown"});const l=to.select(e,t)[0];if(!l)return null;const u=l.lastSnapshot;return ot({number:l.prNumber,url:Hs(l),mergeRequest:l.resource?.repository.provider==="gitlab",repo:l.repo,chipLabel:Fs(l,r),title:l.title||void 0,status:u?Ro(u.state,u.isDraft):"unknown"})}),Le=o.createSelector((e,t,s)=>{const{gitStatus:r,gitStatusLoading:n,taskStats:a,completionRatio:i,isAgentWorking:l,specHasContent:u}=s,d=he.select(e,t)??void 0;if(n&&!r){const h=d&&(d.status==="Open"||d.status==="Draft"||d.status==="Merged"||d.status==="Closed"),k=a.total>0;if(!h&&!k)return"loading"}if(l&&a.total===0)return"spec-creating";const m=(r?.uncommittedCount??0)>0,g=(r?.stagedCount??0)>0,p=(r?.localCommits?.filter(h=>!h.isPushed).length??0)>0,S=r?.existingPR,v=a.total>0&&a.completed<a.total;if(S){if(S.state==="merged"||S.state==="closed"){if(!m&&!g&&!p&&!v)return"all-done"}else if(S.state==="open")return d?.reviewDecision==="APPROVED"?"pr-approved":"pr-open"}else if(d&&(d.status==="Open"||d.status==="Draft"))return d.reviewDecision==="APPROVED"?"pr-approved":"pr-open";return a.total>0&&i===0&&a.inProgress===0?"tasks-ready":a.inProgress>0||a.total>0&&i<1?"tasks-in-progress":p&&!m?"commits-unpushed":g?"changes-staged":m?"changes-unstaged":a.total===0?u?"spec-ready":"spec-empty":"all-done"}),Po=o.createSelector((e,t,s)=>{const r=Le.select(e,t,s),{gitStatus:n,taskStats:a,completionRatio:i}=s,l=n?.uncommittedCount??0,u=n?.stagedCount??0,d=n?.localCommits?.filter(p=>!p.isPushed)??[],m=n?.existingPR,g=he.select(e,t)??void 0;switch(r){case"loading":return{headline:c.workspace_progress_loading_headline(),subtext:""};case"spec-empty":return{headline:c.workspace_progress_specEmpty_headline(),subtext:""};case"spec-creating":return{headline:c.workspace_progress_specCreating_headline(),subtext:""};case"spec-ready":return{headline:c.workspace_progress_ready_headline(),subtext:""};case"tasks-ready":return{headline:c.workspace_progress_tasksReady_headline(),subtext:""};case"tasks-in-progress":{if(i>=.75){const p=a.total-a.completed;return{headline:p===1?c.workspace_progress_almostThere_one({count:C(p)}):c.workspace_progress_almostThere_many({count:C(p)}),subtext:""}}return i>.1?{headline:c.workspace_progress_percent_headline({percent:`${$s(Math.round(i*100))}%`}),subtext:""}:{headline:c.workspace_progress_making_headline(),subtext:a.completed>0?c.workspace_progress_tasksDone_subtext({completed:C(a.completed),total:C(a.total)}):""}}case"changes-unstaged":return a.completed>0||a.inProgress>0?{headline:l===1?c.workspace_progress_reviewChanges_one({count:C(l)}):c.workspace_progress_reviewChanges_many({count:C(l)}),subtext:c.workspace_progress_reviewChanges_subtext()}:a.total===0?{headline:c.workspace_progress_ready_headline(),subtext:""}:{headline:c.workspace_progress_tasksReady_headline(),subtext:""};case"changes-staged":return{headline:u===1?c.workspace_progress_staged_one({count:C(u)}):c.workspace_progress_staged_many({count:C(u)}),subtext:""};case"commits-unpushed":{const p=m?.state==="open"||m?.state==="draft";return{headline:d.length===1?c.workspace_progress_commitsToPush_one({count:C(d.length)}):c.workspace_progress_commitsToPush_many({count:C(d.length)}),subtext:p?c.workspace_progress_pushUpdate_subtext():c.workspace_progress_pushCreate_subtext()}}case"pr-open":{const p=[];if(g?.reviewDecision==="CHANGES_REQUESTED"?p.push(c.workspace_progress_changesRequested_part()):p.push(c.workspace_progress_awaitingReview_part()),g?.ciStatus&&g.ciStatus.total>0){const h=C(g.ciStatus.total);if(g.ciStatus.failed>0){const k=C(g.ciStatus.failed);p.push(g.ciStatus.pending>0?c.workspace_progress_checksFailingRunning_part({failed:k,total:h,pending:C(g.ciStatus.pending)}):c.workspace_progress_checksFailing_part({failed:k,total:h}))}else g.ciStatus.pending>0?p.push(c.workspace_progress_checksRunning_part({pending:C(g.ciStatus.pending),total:h})):p.push(c.workspace_progress_checksPassing_part({passed:C(g.ciStatus.passed),total:h}))}const S=p.join(", "),{prNumber:v}=we(g,s);return{headline:c.workspace_progress_prOpen_headline({number:String(v),details:S}),subtext:""}}case"pr-approved":{let p="";g?.approvedBy&&g.approvedBy.length>0&&(p=` ${c.workspace_progress_prApprovedBy_part({names:g.approvedBy.join(", ")})}`);let S="";if(g?.ciStatus&&g.ciStatus.total>0){const h=C(g.ciStatus.total);g.ciStatus.failed>0?S=`, ${c.workspace_progress_checksFailing_part({failed:C(g.ciStatus.failed),total:h})}`:g.ciStatus.pending>0?S=`, ${c.workspace_progress_checksPending_part({pending:C(g.ciStatus.pending),total:h})}`:S=`, ${c.workspace_progress_checksPassing_part({passed:C(g.ciStatus.passed),total:h})}`}const{prNumber:v}=we(g,s);return{headline:c.workspace_progress_prApproved_headline({number:String(v),approvedBy:p,ciInfo:S}),subtext:""}}case"pr-merged":case"all-done":return{headline:c.workspace_progress_allDone_headline(),subtext:""};default:return{headline:c.workspace_progress_ready_headline(),subtext:""}}}),Eo=o.createSelector((e,t,s)=>{const r=Le.select(e,t,s),{taskStats:n}=s,a=s.gitStatus?.existingPR,i=he.select(e,t)??void 0,l=Xt.select(e,t),{prUrl:u}=we(i,s),d=l?.url??u;if(r==="pr-approved")return d?[{id:"merge-pr",label:c.workspace_progress_mergePr_label(),iconKey:"code-branch",tooltip:c.workspace_progress_mergePr_tooltip(),url:d}]:[];if(l)return[{id:"view-pr",label:l.actionLabel,iconKey:"code-branch",tooltip:l.actionTooltip,url:l.url}];if(d)return[{id:"view-pr",label:c.workspace_progress_viewPr_label(),iconKey:"code-branch",tooltip:c.workspace_progress_viewPr_tooltip(),url:d}];switch(r){case"changes-unstaged":return n.completed>0||n.inProgress>0?[{id:"review-changes",label:c.workspace_progress_reviewAction_label(),iconKey:"file-lines",tooltip:c.workspace_progress_reviewAction_tooltip()}]:[];case"changes-staged":return[{id:"commit",label:c.workspace_progress_commit_label(),iconKey:"check",tooltip:c.workspace_progress_commit_tooltip()}];case"commits-unpushed":return[{id:"push-or-create-pr",label:a?c.workspace_progress_pushChanges_label():c.workspace_progress_createPr_label(),iconKey:"code-pull-request",tooltip:a?c.workspace_progress_pushChanges_tooltip():c.workspace_progress_createPr_tooltip()}];default:return[]}}),Z=o.createSelector((e,t)=>L.select(e)!=="guest"&&$e.select(e,t)?G.select(e):null),se=o.createSelector((e,t)=>{const s=I.select(e);if(!s)return null;if(t===U)return H.select(e)?G.select(e):null;if(s.capabilities.hostMembership&&!ge.select(e)||!H.select(e)&&!J.select(e))return null;const r=N.select(e,t);return!r||r.myRole!=="owner"&&r.myRole!=="collaborator"&&r.myRole!=="manager"&&r.canManage!==!0?null:G.select(e)}),xo=o.createSelector((e,t)=>I.select(e)?.capabilities.hostMembership?$e.select(e,t)?G.select(e):null:se.select(e,t)),Mo=o.createSelector((e,t,s)=>{const r=se.select(e,t);return r&&($e.select(e,t)||s.every(n=>["id","title","tags","statusMessage","statusImageAssetId"].includes(n)))?r:null}),Oe=o.createSelector((e,t)=>t===U||t===ie||I.select(e)?.capabilities.workspaceGuestRoles!==!0||N.select(e,t)?.myRole!=="manager"?null:se.select(e,t)),Jt=o.createSelector((e,t)=>Z.select(e,t)??Oe.select(e,t)),es=o.createSelector((e,t)=>Z.select(e,t)??Oe.select(e,t)),No=o.createSelector((e,t)=>es.select(e,t)??(pe.select(e,t)?se.select(e,t):null)),ts=o.createSelector((e,t)=>Jt.select(e,t)===null),$o=o.createSelector((e,t)=>L.select(e)==="guest"||!!t&&ts.select(e,t)),Di=Object.freeze(Object.defineProperty({__proto__:null,isWorkspacePullRequestPoolTruncated:go,selectCanManageWorkspace:pe,selectCanSetWorkspacePrimaryClient:mo,selectCanShareWorkspace:ko,selectHidesAgentCreationActions:ts,selectHidesAgentLifecycleActions:Co,selectHidesOwnerWorkspaceActions:yo,selectHidesProviderProfileNames:$o,selectIsCollaboratorOnlyClient:wo,selectIsNewWorkspaceSession:To,selectIsPlainFolderWorkspace:uo,selectIsWorkspaceCollaborator:So,selectIsWorkspaceHostLocal:ho,selectIsWorkspaceOwner:Yt,selectWorkflowStage:Le,selectWorkspaceActionContext:Z,selectWorkspaceActivePrSummary:Xt,selectWorkspaceActivePullRequest:he,selectWorkspaceAgentManagementContext:Jt,selectWorkspaceById:N,selectWorkspaceDetailHydrated:fo,selectWorkspaceEntities:ro,selectWorkspaceEnvironmentConfig:po,selectWorkspaceGuestManagerContext:Oe,selectWorkspaceHasLoaded:ao,selectWorkspaceIsCreating:oo,selectWorkspaceIsEmpty:Ao,selectWorkspaceIsWaiting:_o,selectWorkspaceItems:vo,selectWorkspaceListLoadedForBackend:Qt,selectWorkspaceLoading:no,selectWorkspaceManagementDenied:bo,selectWorkspaceParticipationContext:se,selectWorkspacePendingCreations:co,selectWorkspacePendingDeletions:lo,selectWorkspacePermissionContext:xo,selectWorkspaceProgressActions:Eo,selectWorkspaceProgressHeadline:Po,selectWorkspaceSavedScriptContext:es,selectWorkspaceScriptReadContext:No,selectWorkspaceUpdateContext:Mo,selectWorkspacesSortedByRecency:io},Symbol.toStringTag,{value:"Module"}));export{vr as $,be as A,kl as B,Tl as C,rl as D,_t as E,js as F,ml as G,tr as H,Ks as I,Ae as J,Bo as K,so as L,mt as M,Re as N,go as O,$t as P,Rt as Q,yl as R,Al as S,il as T,Tn as U,nl as V,sl as W,tl as X,el as Y,Hs as Z,cl as _,B as a,Ol as a$,ln as a0,Cl as a1,gl as a2,pl as a3,Wn as a4,wl as a5,wa as a6,Kt as a7,va as a8,vl as a9,Oi as aA,z as aB,Cc as aC,yc as aD,ic as aE,kc as aF,wc as aG,pc as aH,gc as aI,fc as aJ,sa as aK,ra as aL,ac as aM,Gt as aN,Jl as aO,ya as aP,ea as aQ,H as aR,Us as aS,pe as aT,mo as aU,ko as aV,Pl as aW,Rl as aX,El as aY,Nl as aZ,xl as a_,Pe as aa,zc as ab,ri as ac,ni as ad,Pa as ae,Ic as af,uc as ag,Xn as ah,dc as ai,_c as aj,Bt as ak,Rc as al,Ac as am,Tc as an,Yn as ao,qa as ap,Mi as aq,Ni as ar,Sc as as,hc as at,Zo as au,Pc as av,Zn as aw,Ln as ax,vc as ay,Jn as az,Ka as b,L as b$,Ll as b0,Ml as b1,Dl as b2,Ul as b3,On as b4,Wl as b5,$l as b6,Yo as b7,J as b8,pi as b9,Wa as bA,Nc as bB,Mc as bC,Dc as bD,Oc as bE,Wc as bF,Zt as bG,Xc as bH,Jc as bI,Qc as bJ,ai as bK,Yc as bL,Za as bM,wi as bN,mc as bO,ts as bP,Co as bQ,yo as bR,$o as bS,Vl as bT,Kl as bU,bc as bV,Qo as bW,Vo as bX,Un as bY,sc as bZ,Dn as b_,gi as ba,jc as bb,qc as bc,Ha as bd,Fa as be,ui as bf,oi as bg,ci as bh,li as bi,$i as bj,ii as bk,mi as bl,_i as bm,di as bn,Ti as bo,hi as bp,ua as bq,fa as br,ga as bs,de as bt,zl as bu,Zl as bv,Gl as bw,Lc as bx,$c as by,Uc as bz,lr as c,Vc as c$,ec as c0,tc as c1,Ta as c2,jl as c3,ql as c4,wo as c5,bi as c6,eo as c7,Ot as c8,$a as c9,G as cA,Q as cB,Xo as cC,I as cD,zo as cE,cc as cF,Fn as cG,nc as cH,Ee as cI,ce as cJ,rc as cK,Ut as cL,Wt as cM,oc as cN,jn as cO,Il as cP,fi as cQ,X as cR,oa as cS,aa as cT,Ne as cU,ca as cV,ia as cW,ti as cX,Gc as cY,Zc as cZ,Kc as c_,na as ca,ka as cb,da as cc,pa as cd,Sa as ce,la as cf,To as cg,uo as ch,lc as ci,So as cj,ho as ck,Yt as cl,ha as cm,_a as cn,xc as co,Ko as cp,Da as cq,Ua as cr,ke as cs,ba as ct,ma as cu,Xl as cv,Ql as cw,si as cx,Li as cy,Yl as cz,Dr as d,Si as d0,yi as d1,Ii as d2,Pi as d3,Ri as d4,Ai as d5,vi as d6,ki as d7,Ci as d8,Hc as d9,se as dA,co as dB,xo as dC,Eo as dD,es as dE,No as dF,Mo as dG,_l as dH,ae as dI,bl as dJ,ll as dK,al as dL,nn as dM,ol as dN,Ec as dO,Di as dP,Fl as da,Hl as db,Bl as dc,Ei as dd,xi as de,Fc as df,Z as dg,he as dh,Ra as di,Jt as dj,N as dk,Jo as dl,fo as dm,ro as dn,po as dp,Bc as dq,zt as dr,Oe as ds,ao as dt,ta as du,Ao as dv,vo as dw,Qt as dx,no as dy,bo as dz,ei as e,Ds as f,Os as g,Bs as h,Dt as i,Tr as j,qs as k,Ls as l,wt as m,Pr as n,et as o,Er as p,ul as q,gt as r,Ws as s,Sl as t,At as u,dl as v,fl as w,hl as x,ht as y,Go as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as c,M as gt,a8 as Ct,aa as Wt,w as Pt,N as ft,ad as T,aE as Bt,an as Vt,aK as yt,_ as Ft,o as zt,k as Ot}from"./
|
|
1
|
+
import{a as c,M as gt,a8 as Ct,aa as Wt,w as Pt,N as ft,ad as T,aE as Bt,an as Vt,aK as yt,_ as Ft,o as zt,k as Ot}from"./BaqTNCTY.js";import{g as k,c3 as Z}from"./WIFxQL3B.js";import{d as ct}from"./CDBtKfA5.js";var nt=(function(){var e=c(function(v,s,d,l){for(d=d||{},l=v.length;l--;d[v[l]]=s);return d},"o"),t=[6,11,13,14,15,17,19,20,23,24],n=[1,12],i=[1,13],r=[1,14],h=[1,15],o=[1,16],a=[1,19],f=[1,20],g={trace:c(k(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:c(k(function(s,d,l,p,x,u,E){var _=u.length-1;switch(x){case 1:return u[_-1];case 3:p.setDirection("LR");break;case 4:p.setDirection("TD");break;case 5:this.$=[];break;case 6:u[_-1].push(u[_]),this.$=u[_-1];break;case 7:case 8:this.$=u[_];break;case 9:case 10:this.$=[];break;case 11:p.getCommonDb().setDiagramTitle(u[_].substr(6)),this.$=u[_].substr(6);break;case 12:this.$=u[_].trim(),p.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=u[_].trim(),p.getCommonDb().setAccDescription(this.$);break;case 15:p.addSection(u[_].substr(8)),this.$=u[_].substr(8);break;case 18:p.addTask(u[_],0,""),this.$=u[_];break;case 19:p.addEvent(u[_].substr(2)),this.$=u[_];break}},"anonymous"),"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(t,[2,5],{5:6}),e(t,[2,2]),e(t,[2,3]),e(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:n,15:i,17:r,19:h,20:o,21:17,22:18,23:a,24:f},e(t,[2,10],{1:[2,1]}),e(t,[2,6]),{12:21,14:n,15:i,17:r,19:h,20:o,21:17,22:18,23:a,24:f},e(t,[2,8]),e(t,[2,9]),e(t,[2,11]),{16:[1,22]},{18:[1,23]},e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,7]),e(t,[2,12]),e(t,[2,13])],defaultActions:{},parseError:c(k(function(s,d){if(d.recoverable)this.trace(s);else{var l=new Error(s);throw l.hash=d,l}},"parseError"),"parseError"),parse:c(k(function(s){var d=this,l=[0],p=[],x=[null],u=[],E=this.table,_="",H=0,C=0,P=2,G=1,M=u.slice.call(arguments,1),S=Object.create(this.lexer),L={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(L.yy[F]=this.yy[F]);S.setInput(s,L.yy),L.yy.lexer=S,L.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var z=S.yylloc;u.push(z);var X=S.options&&S.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function N(R){l.length=l.length-2*R,x.length=x.length-R,u.length=u.length-R}k(N,"popStack"),c(N,"popStack");function b(){var R;return R=p.pop()||S.lex()||G,typeof R!="number"&&(R instanceof Array&&(p=R,R=p.pop()),R=d.symbols_[R]||R),R}k(b,"lex"),c(b,"lex");for(var w,I,$,B,W={},D,V,j,q;;){if(I=l[l.length-1],this.defaultActions[I]?$=this.defaultActions[I]:((w===null||typeof w>"u")&&(w=b()),$=E[I]&&E[I][w]),typeof $>"u"||!$.length||!$[0]){var et="";q=[];for(D in E[I])this.terminals_[D]&&D>P&&q.push("'"+this.terminals_[D]+"'");S.showPosition?et="Parse error on line "+(H+1)+`:
|
|
2
2
|
`+S.showPosition()+`
|
|
3
3
|
Expecting `+q.join(", ")+", got '"+(this.terminals_[w]||w)+"'":et="Parse error on line "+(H+1)+": Unexpected "+(w==G?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(et,{text:S.match,token:this.terminals_[w]||w,line:S.yylineno,loc:z,expected:q})}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+w);switch($[0]){case 1:l.push(w),x.push(S.yytext),u.push(S.yylloc),l.push($[1]),w=null,C=S.yyleng,_=S.yytext,H=S.yylineno,z=S.yylloc;break;case 2:if(V=this.productions_[$[1]][1],W.$=x[x.length-V],W._$={first_line:u[u.length-(V||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(V||1)].first_column,last_column:u[u.length-1].last_column},X&&(W._$.range=[u[u.length-(V||1)].range[0],u[u.length-1].range[1]]),B=this.performAction.apply(W,[_,C,H,L.yy,$[1],x,u].concat(M)),typeof B<"u")return B;V&&(l=l.slice(0,-1*V*2),x=x.slice(0,-1*V),u=u.slice(0,-1*V)),l.push(this.productions_[$[1]][0]),x.push(W.$),u.push(W._$),j=E[l[l.length-2]][l[l.length-1]],l.push(j);break;case 3:return!0}}return!0},"parse"),"parse")},m=(function(){var v={EOF:1,parseError:c(k(function(d,l){if(this.yy.parser)this.yy.parser.parseError(d,l);else throw new Error(d)},"parseError"),"parseError"),setInput:c(function(s,d){return this.yy=d||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:c(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var d=s.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:c(function(s){var d=s.length,l=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var p=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var x=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===p.length?this.yylloc.first_column:0)+p[p.length-l.length].length-l[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:c(function(s){this.unput(this.match.slice(s))},"less"),pastInput:c(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:c(function(){var s=this.pastInput(),d=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as ze}from"./B-gmfAcJ.js";import{s as Xe}from"./l7ze94qr.js";import{f as m,aN as Be,c7 as Je,aL as Ze,c6 as et,aK as tt,c9 as st,aP as it,aO as Ne,bC as qe,a0 as rt,e as nt,aS as at,bZ as lt,cx as ct}from"./CJhZDVuE.js";var Ce=(function(){var e=m(function($,i,a,o){for(a=a||{},o=$.length;o--;a[$[o]]=i);return a},"o"),r=[1,3],u=[1,4],h=[1,5],f=[1,6],n=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],c=[1,22],p=[2,7],y=[1,26],S=[1,27],k=[1,28],q=[1,29],C=[1,33],A=[1,34],V=[1,35],v=[1,36],L=[1,37],x=[1,38],O=[1,24],w=[1,31],D=[1,32],M=[1,30],R=[1,39],g=[1,40],E=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],P=[1,61],X=[89,90],Ae=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Ee=[27,29],Ve=[1,70],ve=[1,71],Le=[1,72],xe=[1,73],Oe=[1,74],we=[1,75],De=[1,76],ee=[1,83],U=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],ce=[1,91],oe=[1,92],pe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],Fe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],he=[1,116],ue=[1,117],fe=[1,114],me=[1,115],Se={trace:m(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:m(function(i,a,o,s,d,t,de){var l=t.length-1;switch(d){case 4:this.$=t[l].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[l].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[l-3],t[l-4]);break;case 22:s.addRequirement(t[l-5],t[l-6]),s.setClass([t[l-5]],t[l-3]);break;case 23:s.setNewReqId(t[l-2]);break;case 24:s.setNewReqText(t[l-2]);break;case 25:s.setNewReqRisk(t[l-2]);break;case 26:s.setNewReqVerifyMethod(t[l-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[l-3]);break;case 43:s.addElement(t[l-5]),s.setClass([t[l-5]],t[l-3]);break;case 44:s.setNewElementType(t[l-2]);break;case 45:s.setNewElementDocRef(t[l-2]);break;case 48:s.addRelationship(t[l-2],t[l],t[l-4]);break;case 49:s.addRelationship(t[l-2],t[l-4],t[l]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[l-2],s.defineClass(t[l-1],t[l]);break;case 58:s.setClass(t[l-1],t[l]);break;case 59:s.setClass([t[l-2]],t[l]);break;case 60:case 62:this.$=[t[l]];break;case 61:case 63:this.$=t[l-2].concat([t[l]]);break;case 64:this.$=t[l-2],s.setCssStyle(t[l-1],t[l]);break;case 65:this.$=[t[l]];break;case 66:t[l-2].push(t[l]),this.$=t[l-2];break;case 68:this.$=t[l-1]+t[l];break}},"anonymous"),table:[{3:1,4:2,6:r,9:u,11:h,13:f},{1:[3]},{3:8,4:2,5:[1,7],6:r,9:u,11:h,13:f},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(n,[2,6]),{3:12,4:2,6:r,9:u,11:h,13:f},{1:[2,2]},{4:17,5:c,7:13,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},e(n,[2,4]),e(n,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:c,7:42,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:43,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:44,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:45,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:46,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:47,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:48,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:49,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:50,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(E,[2,17]),e(E,[2,18]),e(E,[2,19]),e(E,[2,20]),{30:60,33:62,75:P,89:R,90:g},{30:63,33:62,75:P,89:R,90:g},{30:64,33:62,75:P,89:R,90:g},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ae,[2,81]),e(Ae,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Ee,[2,79]),e(Ee,[2,80]),{27:[1,67],29:[1,68]},e(Ee,[2,85]),e(Ee,[2,86]),{62:69,65:Ve,66:ve,67:Le,68:xe,69:Oe,70:we,71:De},{62:77,65:Ve,66:ve,67:Le,68:xe,69:Oe,70:we,71:De},{30:78,33:62,75:P,89:R,90:g},{73:79,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},{30:94,33:62,75:P,76:U,89:R,90:g},{5:[1,95]},{30:96,33:62,75:P,89:R,90:g},{5:[1,97]},{30:98,33:62,75:P,89:R,90:g},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(E,[2,59],{76:U}),e(E,[2,64],{76:Me}),{33:103,75:[1,102],89:R,90:g},e(Fe,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),e(T,[2,67]),e(T,[2,69]),e(T,[2,70]),e(T,[2,71]),e(T,[2,72]),e(T,[2,73]),e(T,[2,74]),e(T,[2,75]),e(T,[2,76]),e(T,[2,77]),e(T,[2,78]),e(E,[2,57],{76:Me}),e(E,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:he,40:ue,56:113,57:fe,59:me},{27:[1,118],76:U},{33:119,89:R,90:g},{33:120,89:R,90:g},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,61]),e(pe,[2,63]),e(T,[2,68]),e(E,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(E,[2,28]),{5:[1,127]},e(E,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:fe,59:me},e(E,[2,47]),{5:[1,131]},e(E,[2,48]),e(E,[2,49]),e(Fe,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),{33:132,89:R,90:g},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(E,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(E,[2,46]),{5:he,40:ue,56:152,57:fe,59:me},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(E,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(E,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:he,40:ue,56:163,57:fe,59:me},{5:he,40:ue,56:164,57:fe,59:me},e(E,[2,23]),e(E,[2,24]),e(E,[2,25]),e(E,[2,26]),e(E,[2,44]),e(E,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:m(function(i,a){if(a.recoverable)this.trace(i);else{var o=new Error(i);throw o.hash=a,o}},"parseError"),parse:m(function(i){var a=this,o=[0],s=[],d=[null],t=[],de=this.table,l="",ge=0,$e=0,Ke=2,Pe=1,We=t.slice.call(arguments,1),_=Object.create(this.lexer),G={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(G.yy[be]=this.yy[be]);_.setInput(i,G.yy),G.yy.lexer=_,G.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Ie=_.yylloc;t.push(Ie);var je=_.options&&_.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ge(I){o.length=o.length-2*I,d.length=d.length-I,t.length=t.length-I}m(Ge,"popStack");function Ue(){var I;return I=s.pop()||_.lex()||Pe,typeof I!="number"&&(I instanceof Array&&(s=I,I=s.pop()),I=a.symbols_[I]||I),I}m(Ue,"lex");for(var b,z,N,ke,J={},ye,F,Ye,_e;;){if(z=o[o.length-1],this.defaultActions[z]?N=this.defaultActions[z]:((b===null||typeof b>"u")&&(b=Ue()),N=de[z]&&de[z][b]),typeof N>"u"||!N.length||!N[0]){var Te="";_e=[];for(ye in de[z])this.terminals_[ye]&&ye>Ke&&_e.push("'"+this.terminals_[ye]+"'");_.showPosition?Te="Parse error on line "+(ge+1)+`:
|
|
1
|
+
import{g as ze}from"./DEiZJ0yd.js";import{s as Xe}from"./5SjfvWPi.js";import{f as m,aN as Be,c7 as Je,aL as Ze,c6 as et,aK as tt,c9 as st,aP as it,aO as Ne,bC as qe,a0 as rt,e as nt,aS as at,bZ as lt,cx as ct}from"./WIFxQL3B.js";var Ce=(function(){var e=m(function($,i,a,o){for(a=a||{},o=$.length;o--;a[$[o]]=i);return a},"o"),r=[1,3],u=[1,4],h=[1,5],f=[1,6],n=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],c=[1,22],p=[2,7],y=[1,26],S=[1,27],k=[1,28],q=[1,29],C=[1,33],A=[1,34],V=[1,35],v=[1,36],L=[1,37],x=[1,38],O=[1,24],w=[1,31],D=[1,32],M=[1,30],R=[1,39],g=[1,40],E=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],P=[1,61],X=[89,90],Ae=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Ee=[27,29],Ve=[1,70],ve=[1,71],Le=[1,72],xe=[1,73],Oe=[1,74],we=[1,75],De=[1,76],ee=[1,83],U=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],ce=[1,91],oe=[1,92],pe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],Fe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],he=[1,116],ue=[1,117],fe=[1,114],me=[1,115],Se={trace:m(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:m(function(i,a,o,s,d,t,de){var l=t.length-1;switch(d){case 4:this.$=t[l].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[l].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[l-3],t[l-4]);break;case 22:s.addRequirement(t[l-5],t[l-6]),s.setClass([t[l-5]],t[l-3]);break;case 23:s.setNewReqId(t[l-2]);break;case 24:s.setNewReqText(t[l-2]);break;case 25:s.setNewReqRisk(t[l-2]);break;case 26:s.setNewReqVerifyMethod(t[l-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[l-3]);break;case 43:s.addElement(t[l-5]),s.setClass([t[l-5]],t[l-3]);break;case 44:s.setNewElementType(t[l-2]);break;case 45:s.setNewElementDocRef(t[l-2]);break;case 48:s.addRelationship(t[l-2],t[l],t[l-4]);break;case 49:s.addRelationship(t[l-2],t[l-4],t[l]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[l-2],s.defineClass(t[l-1],t[l]);break;case 58:s.setClass(t[l-1],t[l]);break;case 59:s.setClass([t[l-2]],t[l]);break;case 60:case 62:this.$=[t[l]];break;case 61:case 63:this.$=t[l-2].concat([t[l]]);break;case 64:this.$=t[l-2],s.setCssStyle(t[l-1],t[l]);break;case 65:this.$=[t[l]];break;case 66:t[l-2].push(t[l]),this.$=t[l-2];break;case 68:this.$=t[l-1]+t[l];break}},"anonymous"),table:[{3:1,4:2,6:r,9:u,11:h,13:f},{1:[3]},{3:8,4:2,5:[1,7],6:r,9:u,11:h,13:f},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(n,[2,6]),{3:12,4:2,6:r,9:u,11:h,13:f},{1:[2,2]},{4:17,5:c,7:13,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},e(n,[2,4]),e(n,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:c,7:42,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:43,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:44,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:45,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:46,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:47,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:48,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:49,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:50,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(E,[2,17]),e(E,[2,18]),e(E,[2,19]),e(E,[2,20]),{30:60,33:62,75:P,89:R,90:g},{30:63,33:62,75:P,89:R,90:g},{30:64,33:62,75:P,89:R,90:g},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ae,[2,81]),e(Ae,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Ee,[2,79]),e(Ee,[2,80]),{27:[1,67],29:[1,68]},e(Ee,[2,85]),e(Ee,[2,86]),{62:69,65:Ve,66:ve,67:Le,68:xe,69:Oe,70:we,71:De},{62:77,65:Ve,66:ve,67:Le,68:xe,69:Oe,70:we,71:De},{30:78,33:62,75:P,89:R,90:g},{73:79,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},{30:94,33:62,75:P,76:U,89:R,90:g},{5:[1,95]},{30:96,33:62,75:P,89:R,90:g},{5:[1,97]},{30:98,33:62,75:P,89:R,90:g},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(E,[2,59],{76:U}),e(E,[2,64],{76:Me}),{33:103,75:[1,102],89:R,90:g},e(Fe,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),e(T,[2,67]),e(T,[2,69]),e(T,[2,70]),e(T,[2,71]),e(T,[2,72]),e(T,[2,73]),e(T,[2,74]),e(T,[2,75]),e(T,[2,76]),e(T,[2,77]),e(T,[2,78]),e(E,[2,57],{76:Me}),e(E,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:he,40:ue,56:113,57:fe,59:me},{27:[1,118],76:U},{33:119,89:R,90:g},{33:120,89:R,90:g},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,61]),e(pe,[2,63]),e(T,[2,68]),e(E,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(E,[2,28]),{5:[1,127]},e(E,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:fe,59:me},e(E,[2,47]),{5:[1,131]},e(E,[2,48]),e(E,[2,49]),e(Fe,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),{33:132,89:R,90:g},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(E,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(E,[2,46]),{5:he,40:ue,56:152,57:fe,59:me},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(E,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(E,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:he,40:ue,56:163,57:fe,59:me},{5:he,40:ue,56:164,57:fe,59:me},e(E,[2,23]),e(E,[2,24]),e(E,[2,25]),e(E,[2,26]),e(E,[2,44]),e(E,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:m(function(i,a){if(a.recoverable)this.trace(i);else{var o=new Error(i);throw o.hash=a,o}},"parseError"),parse:m(function(i){var a=this,o=[0],s=[],d=[null],t=[],de=this.table,l="",ge=0,$e=0,Ke=2,Pe=1,We=t.slice.call(arguments,1),_=Object.create(this.lexer),G={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(G.yy[be]=this.yy[be]);_.setInput(i,G.yy),G.yy.lexer=_,G.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Ie=_.yylloc;t.push(Ie);var je=_.options&&_.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ge(I){o.length=o.length-2*I,d.length=d.length-I,t.length=t.length-I}m(Ge,"popStack");function Ue(){var I;return I=s.pop()||_.lex()||Pe,typeof I!="number"&&(I instanceof Array&&(s=I,I=s.pop()),I=a.symbols_[I]||I),I}m(Ue,"lex");for(var b,z,N,ke,J={},ye,F,Ye,_e;;){if(z=o[o.length-1],this.defaultActions[z]?N=this.defaultActions[z]:((b===null||typeof b>"u")&&(b=Ue()),N=de[z]&&de[z][b]),typeof N>"u"||!N.length||!N[0]){var Te="";_e=[];for(ye in de[z])this.terminals_[ye]&&ye>Ke&&_e.push("'"+this.terminals_[ye]+"'");_.showPosition?Te="Parse error on line "+(ge+1)+`:
|
|
2
2
|
`+_.showPosition()+`
|
|
3
3
|
Expecting `+_e.join(", ")+", got '"+(this.terminals_[b]||b)+"'":Te="Parse error on line "+(ge+1)+": Unexpected "+(b==Pe?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(Te,{text:_.match,token:this.terminals_[b]||b,line:_.yylineno,loc:Ie,expected:_e})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+b);switch(N[0]){case 1:o.push(b),d.push(_.yytext),t.push(_.yylloc),o.push(N[1]),b=null,$e=_.yyleng,l=_.yytext,ge=_.yylineno,Ie=_.yylloc;break;case 2:if(F=this.productions_[N[1]][1],J.$=d[d.length-F],J._$={first_line:t[t.length-(F||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(F||1)].first_column,last_column:t[t.length-1].last_column},je&&(J._$.range=[t[t.length-(F||1)].range[0],t[t.length-1].range[1]]),ke=this.performAction.apply(J,[l,$e,ge,G.yy,N[1],d,t].concat(We)),typeof ke<"u")return ke;F&&(o=o.slice(0,-1*F*2),d=d.slice(0,-1*F),t=t.slice(0,-1*F)),o.push(this.productions_[N[1]][0]),d.push(J.$),t.push(J._$),Ye=de[o[o.length-2]][o[o.length-1]],o.push(Ye);break;case 3:return!0}}return!0},"parse")},He=(function(){var $={EOF:1,parseError:m(function(a,o){if(this.yy.parser)this.yy.parser.parseError(a,o);else throw new Error(a)},"parseError"),setInput:m(function(i,a){return this.yy=a||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:m(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:m(function(i){var a=i.length,o=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===s.length?this.yylloc.first_column:0)+s[s.length-o.length].length-o[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:m(function(){return this._more=!0,this},"more"),reject:m(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:m(function(i){this.unput(this.match.slice(i))},"less"),pastInput:m(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:m(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:m(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as l,bq as i,by as m,b as u}from"./DMsRLycu.js";import{bs as f,bI as _,c5 as b,a7 as g,ay as h,W as v,bn as y,aA as o}from"./B8o4lNgr.js";import{s as z}from"./BsvsTmot.js";import{ac as C}from"./
|
|
1
|
+
import{t as l,bq as i,by as m,b as u}from"./DMsRLycu.js";import{bs as f,bI as _,c5 as b,a7 as g,ay as h,W as v,bn as y,aA as o}from"./B8o4lNgr.js";import{s as z}from"./BsvsTmot.js";import{ac as C}from"./XsSJjm3Z.js";function S(s,t){if(new.target)return l({component:S,...s});f(t,!0);let a=i(t,"size",7,"default"),r=i(t,"children",7);_(C,b(()=>a()));var c={get size(){return a()},set size(e="default"){a(e),o()},get children(){return r()},set children(e){r(e),o()},$set:m,$on:(e,d)=>u(t,e,d)},n=g(),p=h(n);return z(p,r),v(s,n),y(c)}export{S};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bo as b,t as wt,bq as G,a_ as D,by as Tt,bs as xt,b as kt,bu as N}from"./DMsRLycu.js";import{bs as It,ca as Q,aD as t,a7 as At,ay as X,W as w,bn as Pt,bS as F,c9 as f,aA as M,aB as x,a5 as I,bA as A,bl as P,b_ as E,bO as S}from"./B8o4lNgr.js";import{D as St}from"./CY7B0zXs.js";import{c as Wt}from"./i6wjEWTF.js";import{C as q}from"./DypB-Dwi.js";import{L as $t}from"./D8dE5NKO.js";import"./
|
|
1
|
+
import{bo as b,t as wt,bq as G,a_ as D,by as Tt,bs as xt,b as kt,bu as N}from"./DMsRLycu.js";import{bs as It,ca as Q,aD as t,a7 as At,ay as X,W as w,bn as Pt,bS as F,c9 as f,aA as M,aB as x,a5 as I,bA as A,bl as P,b_ as E,bO as S}from"./B8o4lNgr.js";import{D as St}from"./CY7B0zXs.js";import{c as Wt}from"./i6wjEWTF.js";import{C as q}from"./DypB-Dwi.js";import{L as $t}from"./D8dE5NKO.js";import"./C1QeO17D.js";import"./ZX1TUMY0.js";import"./BsvsTmot.js";import{bb as Dt}from"./Cy5UaoOp.js";import"./XsSJjm3Z.js";import"./DeCG5uo6.js";import{Gt as B,G_ as Nt,Hd as Ft,H3 as Et,tj as Bt}from"./Ba4gy30X.js";import{T as Lt}from"./BrBBHBKk.js";import{g as Ut}from"./CoSk1zgY.js";import{dk as Ot}from"./DIZ4FVb2.js";import{bG as jt,bE as Ht,a$ as Gt}from"./BaPbYStu.js";import"./06CP606v.js";import{M as Mt}from"./DyqEo12-.js";import{V as Vt}from"./BJ9BJ5kr.js";import{O as qt}from"./BGJxMF_1.js";import{c as Rt}from"./ChTqQfQN.js";import{i as zt}from"./H2jLkRRS.js";const T=new $t({category:"change-converters"});function V(e,n){return e.path||e.file||e.filePath||e.relativePath||n?.filePath}function Y(e,n){return{additions:e.additions??n?.additions??0,deletions:e.deletions??n?.deletions??0,binary:e.binary??!1}}function Jt(e,n){if(n.actor?.type==="agent"&&n.actor.id){const r=n.actor;return{agentId:r.id,agentName:r.name||b.fileTracking_changeTimeline_agent_fallback(),sessionId:r.sessionId||e.sessionId||"",turnNumber:r.turnNumber??e.turnNumber??0,messageId:r.messageId,timestamp:new Date(n.timestamp).getTime()}}if(e.agentId)return{agentId:e.agentId,agentName:e.agentName||b.fileTracking_changeTimeline_agent_fallback(),sessionId:e.sessionId||"",turnNumber:e.turnNumber||0,timestamp:new Date(n.timestamp).getTime()}}function Z(e,n){return{timestamp:new Date(e.timestamp).getTime(),manual:e.actor?.type==="user",agent:Jt(n,e)}}function tt(e,n){return{oldContent:n?.oldContent??e.oldContent,newContent:n?.newContent??e.newContent,diff:e.diff??n?.diff}}function et(e,n,r){return r!==void 0?`${e}-${n}-${r}`:`${e}-${n}`}function Kt(e){try{const n=e.data||{},r=e.codeChange;T.debug("Converting event to TrackedChange",{eventType:e.type,eventId:e.id,hasData:!!n,hasCodeChange:!!r});const c=V(n,r);if(e.type.startsWith("file:")&&c){const d=Y(n,r);return T.debug("Creating TrackedChange for file event",{filePath:c,stats:d,hasDiff:!!(n.diff||r?.diff)}),[{id:et("event",e.id),file:c,relativePath:c,stage:q.Unstaged,stats:d,attribution:Z(e,n),content:tt(n,r)}]}return(e.type==="agent:completed"||e.type.startsWith("agent:"))&&n.fileChanges&&Array.isArray(n.fileChanges)?(T.debug("Creating TrackedChanges for agent event",{eventType:e.type,fileChangesCount:n.fileChanges.length,agentId:n.agentId}),n.fileChanges.filter(d=>V(d)?!0:(T.warn("Skipping file change without path",{change:d}),!1)).map((d,s)=>{const v=V(d);if(!v)throw new Error("file change without path");return{id:et("event",e.id,s),file:v,relativePath:v,stage:q.Unstaged,stats:Y(d),attribution:Z(e,n),content:tt(d)}})):(T.debug("No TrackedChanges created for event",{eventType:e.type,eventId:e.id,hasFilePath:!!c,hasFileChanges:!!(n.fileChanges&&Array.isArray(n.fileChanges))}),[])}catch(n){return T.error("Error converting event to TrackedChange",n instanceof Error?n:new Error(String(n)),{eventType:e.type,eventId:e.id}),[]}}function Qt(e){if(!e)return{oldContent:"",newContent:""};const n=[],r=[],c=e.split(`
|
|
2
2
|
`);c.length>0&&c[c.length-1]===""&&c.pop();let d=!1;for(const s of c)if(!(s.startsWith("diff --git")||s.startsWith("index ")||s.startsWith("--- ")||s.startsWith("+++ ")||s.startsWith("\"))){if(s.startsWith("@@")){d=!0;continue}d&&(s.startsWith("+")?r.push(s.slice(1)):s.startsWith("-")?n.push(s.slice(1)):s.startsWith(" ")?(n.push(s.slice(1)),r.push(s.slice(1))):s===""&&(n.push(""),r.push("")))}return{oldContent:n.join(`
|
|
3
3
|
`),newContent:r.join(`
|
|
4
4
|
`)}}var Xt=x("<!> <!>",1),Yt=x('<div class="flex items-center gap-1.5 px-3 py-1.5 text-xs text-subtle bg-muted/50 border-b border-border"><span> </span></div>'),Zt=x('<div class="flex flex-col h-full"><!> <div class="flex-1 min-h-0"><!></div></div>'),te=x('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p> <p class="text-xs opacity-70"> </p></div>'),ee=x('<p class="text-xs opacity-70"> </p>'),ne=x('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p> <!></div>');function ae(e,n){if(new.target)return wt({component:ae,...e});It(n,!0);const r=()=>N(lt,"$workspace",v),c=()=>N(st,"$foldUnchanged",v),d=()=>N(rt,"$lineWrapping",v),s=()=>N(ot,"$diffSideBySide",v),[v,nt]=xt(),at=a=>{Vt(a,{embedded:!0,get foldEnabled(){return c()},onToggleFold:()=>B.dispatch(Et()),get wrapEnabled(){return d()},onToggleWrap:()=>B.dispatch(Ft()),get splitEnabled(){return s()},onToggleSplit:()=>B.dispatch(Nt())})},it=a=>{var i=Xt(),g=X(i);{let m=f(()=>b.layout_diffHeader_goToFile_tooltip());Wt(g,()=>Mt,(l,h)=>{h(l,{get icon(){return Dt},get label(){return t(m)},onclick:$=>ut()})})}var y=F(g,2);{var C=m=>{qt(m,{get filePath(){return t(z)},get workspaceId(){return _()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return t(O)}})};D(y,m=>{t(z)&&m(C)})}w(a,i)},rt=jt(),st=Ht(),ot=Gt(),dt=Rt("ActivityChangesTabType");let L=G(n,"tab",7),_=G(n,"workspaceId",7),U=G(n,"isActive",7);const R=Ut(),lt=Ot(_()),O=f(()=>r()?.worktreePath||r()?.repositoryPath||void 0),o=f(()=>L().data?.event),ct=f(()=>t(o)?Kt(t(o)):[]),u=f(()=>t(ct)[0]),p=f(()=>t(u)?.relativePath||t(u)?.file||null),z=f(()=>t(p)&&t(O)?zt(t(p))?t(p):`${t(O)}/${t(p)}`:null),j=f(()=>()=>{if(!t(o))return null;const a=t(o).data,i=t(o).codeChange;return a?.diff||i?.diff||t(u)?.content?.diff||null}),J=f(()=>()=>t(u)?.content?!!(t(u).content.oldContent&&t(u).content.newContent):!1);function ft(a){if(!a)return;const i=a.match(/@@ -(\d+)/);return i?parseInt(i[1],10):void 0}const k=f(()=>{if(t(J)()&&t(u)?.content)return{oldContent:t(u).content.oldContent??"",newContent:t(u).content.newContent??""};const a=t(j)();return a?Qt(a):null}),W=f(()=>ft(t(j)())),pt=f(()=>t(W)!==void 0&&t(W)>1),gt=f(()=>{const a=t(p)||"",i=t(o)?.data||{};return{id:`activity-${t(o)?.id||"unknown"}-${a}`,file:a,relativePath:a,stage:q.Committed,status:t(u)?.status||"modified",stats:{additions:i?.additions||t(u)?.stats?.additions||0,deletions:i?.deletions||t(u)?.stats?.deletions||0},attribution:{timestamp:t(o)?.timestamp?new Date(t(o).timestamp).getTime():Date.now()},content:t(k)?{oldContent:t(k).oldContent,newContent:t(k).newContent}:void 0}});function ut(a){if(!t(p))return;const g={type:"file",title:t(p).split("/").pop()||t(p),closable:!0,filePath:t(p),workspaceId:_()};B.dispatch(Bt(_(),g))}Q(()=>{!R||!U()||R.registerActions({display:at,actions:it})}),Q(()=>{if(t(o)){const a=t(o).data;dt.debug("Activity event diff info",{eventType:t(o).type,eventId:t(o).id,filePath:t(p),hasDiffString:!!t(j)(),hasOldNewContent:t(J)(),hasDiffContents:!!t(k),dataAdditions:a?.additions,dataDeletions:a?.deletions})}});var ht={get tab(){return L()},set tab(a){L(a),M()},get workspaceId(){return _()},set workspaceId(a){_(a),M()},get isActive(){return U()},set isActive(a){U(a),M()},$set:Tt,$on:(a,i)=>kt(n,a,i)},K=At(),mt=X(K);{var vt=a=>{var i=Zt(),g=I(i);{var y=l=>{var h=Yt(),$=I(h),H=P($,!0);A(h),E(_t=>S(H,_t),[()=>b.layout_activityChanges_partialDiff_label({line:t(W)??0})]),w(l,h)};D(g,l=>{t(pt)&&l(y)})}var C=F(g,2),m=I(C);St(m,()=>`${t(o)?.id}-${t(p)}`,l=>{{let h=f(()=>s()?"split":"unified");Lt(l,{get change(){return t(gt)},get workspaceId(){return _()},get viewMode(){return t(h)},get foldUnchanged(){return c()},get lineWrapping(){return d()},get lineOffset(){return t(W)}})}}),A(C),A(i),w(a,i)},yt=a=>{var i=te(),g=I(i),y=P(g,!0),C=F(g,2),m=P(C,!0);A(i),E((l,h)=>{S(y,l),S(m,h)},[()=>b.layout_activityChanges_noDiffStored_label(),()=>b.layout_activityChanges_diffNotCaptured_description()]),w(a,i)},Ct=a=>{var i=ne(),g=I(i),y=P(g,!0),C=F(g,2);{var m=l=>{var h=ee(),$=P(h,!0);E(H=>S($,H),[()=>b.layout_activityChanges_eventType_label({type:t(o).type})]),w(l,h)};D(C,l=>{t(o)&&l(m)})}A(i),E(l=>S(y,l),[()=>b.layout_activityChanges_noChanges_label()]),w(a,i)};D(mt,a=>{t(p)&&t(k)?a(vt):t(p)?a(yt,1):a(Ct,-1)})}w(e,K);var bt=Pt(ht);return nt(),bt}export{ae as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a8 as j,bc as p,a2 as w,bd as k,be as q}from"./
|
|
1
|
+
import{a8 as j,bc as p,a2 as w,bd as k,be as q}from"./WIFxQL3B.js";import{i as D}from"./Gi6I4Gst.js";import{e as g,b as F,a as z,f as B}from"./CrowFXzY.js";function M(n,r){return n==null||r==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}function I(n,r){return n==null||r==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}function R(n){let r,t,e;n.length!==2?(r=M,t=(o,c)=>M(n(o),c),e=(o,c)=>n(o)-c):(r=n===M||n===I?n:P,t=n,e=n);function u(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<0?i=l+1:h=l}while(i<h)}return i}function f(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<=0?i=l+1:h=l}while(i<h)}return i}function a(o,c,i=0,h=o.length){const l=u(o,c,i,h-1);return l>i&&e(o[l-1],c)>-e(o[l],c)?l-1:l}return{left:u,center:a,right:f}}function P(){return 0}function V(n){return n===null?NaN:+n}const $=R(M),x=$.right;R(V).center;const O=Math.sqrt(50),T=Math.sqrt(10),C=Math.sqrt(2);function v(n,r,t){const e=(r-n)/Math.max(0,t),u=Math.floor(Math.log10(e)),f=e/Math.pow(10,u),a=f>=O?10:f>=T?5:f>=C?2:1;let o,c,i;return u<0?(i=Math.pow(10,-u)/a,o=Math.round(n*i),c=Math.round(r*i),o/i<n&&++o,c/i>r&&--c,i=-i):(i=Math.pow(10,u)*a,o=Math.round(n/i),c=Math.round(r/i),o*i<n&&++o,c*i>r&&--c),c<o&&.5<=t&&t<2?v(n,r,t*2):[o,c,i]}function E(n,r,t){if(r=+r,n=+n,t=+t,!(t>0))return[];if(n===r)return[n];const e=r<n,[u,f,a]=e?v(r,n,t):v(n,r,t);if(!(f>=u))return[];const o=f-u+1,c=new Array(o);if(e)if(a<0)for(let i=0;i<o;++i)c[i]=(f-i)/-a;else for(let i=0;i<o;++i)c[i]=(f-i)*a;else if(a<0)for(let i=0;i<o;++i)c[i]=(u+i)/-a;else for(let i=0;i<o;++i)c[i]=(u+i)*a;return c}function y(n,r,t){return r=+r,n=+n,t=+t,v(n,r,t)[2]}function G(n,r,t){r=+r,n=+n,t=+t;const e=r<n,u=e?y(r,n,t):y(n,r,t);return(e?-1:1)*(u<0?1/-u:u)}function H(n,r){r||(r=[]);var t=n?Math.min(r.length,n.length):0,e=r.slice(),u;return function(f){for(u=0;u<t;++u)e[u]=n[u]*(1-f)+r[u]*f;return e}}function J(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function K(n,r){var t=r?r.length:0,e=n?Math.min(t,n.length):0,u=new Array(e),f=new Array(t),a;for(a=0;a<e;++a)u[a]=N(n[a],r[a]);for(;a<t;++a)f[a]=r[a];return function(o){for(a=0;a<e;++a)f[a]=u[a](o);return f}}function L(n,r){var t=new Date;return n=+n,r=+r,function(e){return t.setTime(n*(1-e)+r*e),t}}function Q(n,r){var t={},e={},u;(n===null||typeof n!="object")&&(n={}),(r===null||typeof r!="object")&&(r={});for(u in r)u in n?t[u]=N(n[u],r[u]):e[u]=r[u];return function(f){for(u in t)e[u]=t[u](f);return e}}function N(n,r){var t=typeof r,e;return r==null||t==="boolean"?j(r):(t==="number"?p:t==="string"?(e=w(r))?(r=e,k):q:r instanceof w?k:r instanceof Date?L:J(r)?H:Array.isArray(r)?K:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?Q:p)(n,r)}function U(n,r){return n=+n,r=+r,function(t){return Math.round(n*(1-t)+r*t)}}function W(n){return Math.max(0,-g(Math.abs(n)))}function X(n,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(g(r)/3)))*3-g(Math.abs(n)))}function Y(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,g(r)-g(n))+1}function Z(n){return function(){return n}}function _(n){return+n}var A=[0,1];function m(n){return n}function d(n,r){return(r-=n=+n)?function(t){return(t-n)/r}:Z(isNaN(r)?NaN:.5)}function b(n,r){var t;return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function nn(n,r,t){var e=n[0],u=n[1],f=r[0],a=r[1];return u<e?(e=d(u,e),f=t(a,f)):(e=d(e,u),f=t(f,a)),function(o){return f(e(o))}}function rn(n,r,t){var e=Math.min(n.length,r.length)-1,u=new Array(e),f=new Array(e),a=-1;for(n[e]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++a<e;)u[a]=d(n[a],n[a+1]),f[a]=t(r[a],r[a+1]);return function(o){var c=x(n,o,1,e)-1;return f[c](u[c](o))}}function en(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function tn(){var n=A,r=A,t=N,e,u,f,a=m,o,c,i;function h(){var s=Math.min(n.length,r.length);return a!==m&&(a=b(n[0],n[s-1])),o=s>2?rn:nn,c=i=null,l}function l(s){return s==null||isNaN(s=+s)?f:(c||(c=o(n.map(e),r,t)))(e(a(s)))}return l.invert=function(s){return a(u((i||(i=o(r,n.map(e),p)))(s)))},l.domain=function(s){return arguments.length?(n=Array.from(s,_),h()):n.slice()},l.range=function(s){return arguments.length?(r=Array.from(s),h()):r.slice()},l.rangeRound=function(s){return r=Array.from(s),t=U,h()},l.clamp=function(s){return arguments.length?(a=s?!0:m,h()):a!==m},l.interpolate=function(s){return arguments.length?(t=s,h()):t},l.unknown=function(s){return arguments.length?(f=s,l):f},function(s,S){return e=s,u=S,h()}}function un(){return tn()(m,m)}function an(n,r,t,e){var u=G(n,r,t),f;switch(e=F(e??",f"),e.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(r));return e.precision==null&&!isNaN(f=X(u,a))&&(e.precision=f),z(e,a)}case"":case"e":case"g":case"p":case"r":{e.precision==null&&!isNaN(f=Y(u,Math.max(Math.abs(n),Math.abs(r))))&&(e.precision=f-(e.type==="e"));break}case"f":case"%":{e.precision==null&&!isNaN(f=W(u))&&(e.precision=f-(e.type==="%")*2);break}}return B(e)}function on(n){var r=n.domain;return n.ticks=function(t){var e=r();return E(e[0],e[e.length-1],t??10)},n.tickFormat=function(t,e){var u=r();return an(u[0],u[u.length-1],t??10,e)},n.nice=function(t){t==null&&(t=10);var e=r(),u=0,f=e.length-1,a=e[u],o=e[f],c,i,h=10;for(o<a&&(i=a,a=o,o=i,i=u,u=f,f=i);h-- >0;){if(i=y(a,o,t),i===c)return e[u]=a,e[f]=o,r(e);if(i>0)a=Math.floor(a/i)*i,o=Math.ceil(o/i)*i;else if(i<0)a=Math.ceil(a*i)/i,o=Math.floor(o*i)/i;else break;c=i}return n},n}function fn(){var n=un();return n.copy=function(){return en(n,fn())},D.apply(n,arguments),on(n)}export{en as a,R as b,un as c,fn as l,G as t};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{t as D,bq as d,a_ as P,by as b,b as S}from"./DMsRLycu.js";import{bs as A,a7 as C,ay as M,W as N,bn as $,aA as m,aD as i,c9 as c}from"./B8o4lNgr.js";import{D as f,M as x}from"./
|
|
1
|
+
import{t as D,bq as d,a_ as P,by as b,b as S}from"./DMsRLycu.js";import{bs as A,a7 as C,ay as M,W as N,bn as $,aA as m,aD as i,c9 as c}from"./B8o4lNgr.js";import{D as f,M as x}from"./WIFxQL3B.js";import{S as z,p as B}from"./BUlvUEKW.js";import{N as W}from"./BaPbYStu.js";import{Gt as j,tv as E,ba as J}from"./Ba4gy30X.js";import{N as K}from"./DeCG5uo6.js";import{$ as O}from"./DIZ4FVb2.js";function R(l,s){if(new.target)return D({component:R,...l});A(s,!0);let o=d(s,"kind",7),t=d(s,"source",7),a=d(s,"workspaceId",7);const g=new W,p=c(()=>{if(o()==="mermaid")return null;const e=g.parseMarkdown(`\`\`\`ws-block:diagram
|
|
2
2
|
${t()}
|
|
3
3
|
\`\`\``)[0],r=e?.primitive.type==="diagram"?JSON.stringify(e.primitive):t();return B(r,!0)});function k(e,r){if(!a()||!r.target)return;const n={openInAdjacentPanel:e.metaKey||e.ctrlKey,sourcePanelId:e.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0};r.type==="file"?j.dispatch(E(a(),r.target,n)):r.type==="note"&&K(O(r.target,a()),{...n,workspaceId:J(a()),event:e})}var w={get kind(){return o()},set kind(e){o(e),m()},get source(){return t()},set source(e){t(e),m()},get workspaceId(){return a()},set workspaceId(e){a(e),m()},$set:b,$on:(e,r)=>S(s,e,r)},u=C(),y=M(u);{var v=e=>{f(e,{kind:"mermaid",rendererOwnsActions:!0,children:(r,n)=>{x(r,{get code(){return t()},showExportButton:!0})},$$slots:{default:!0}})},I=e=>{f(e,{kind:"custom",children:(r,n)=>{{let _=c(()=>i(p)?.diagram??null),h=c(()=>i(p)?.error);z(r,{get diagram(){return i(_)},get source(){return t()},get sourceError(){return i(h)},onBindingClick:k})}},$$slots:{default:!0}})};P(y,e=>{o()==="mermaid"?e(v):e(I,-1)})}return N(l,u),$(w)}export{R as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as o}from"./
|
|
1
|
+
import{f as o}from"./WIFxQL3B.js";var c=1;function i(){if(!(typeof globalThis>"u"))return globalThis}o(i,"getCaptureGlobal");function p(){return!!i()?.mermaidCaptureSizes}o(p,"shouldCaptureSizes");function u(){return typeof location>"u"?"browser-dev":`${location.pathname}${location.search}`}o(u,"capturedFromLocation");function d(n,r){const t=i();if(!t)return;const e=r.node(),s=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";t.mermaidCapturedSizes??=[];const a={svgId:s,sizes:n};t.mermaidCapturedSizes.push(a),t.mermaidLastCapturedSizes=a}o(d,"emitCapturedSizes");function m(n,r){const t=[];for(const e of r.nodes)e.isGroup||t.push({id:e.id,width:e.width??0,height:e.height??0});t.length!==0&&d({metadata:{captureVersion:c,capturedAt:new Date().toISOString(),capturedFrom:u()},nodes:t},n)}o(m,"captureNodeSizes");export{m as captureNodeSizes,p as shouldCaptureSizes};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{fv as B,Gt as n,mC as x,l5 as H,kY as U,rB as F}from"./Ba4gy30X.js";import{f as G,F as K,dL as j,cD as T,dk as m,dw as E,dG as L,cy as q,aA as Y}from"./
|
|
1
|
+
import{fv as B,Gt as n,mC as x,l5 as H,kY as U,rB as F}from"./Ba4gy30X.js";import{f as G,F as K,dL as j,cD as T,dk as m,dw as E,dG as L,cy as q,aA as Y}from"./DIZ4FVb2.js";import{l as V,R as $,E as z}from"./55UpOZBT.js";function J(e){return!e.retiredAt&&!e.pendingDeleteAt&&e.status!=="deleted"}function g(e){const t=new Date(e.lastActivity??e.updatedAt??e.createdAt).getTime()||0,s=e.messages.at(-1)?.timestamp,o=s&&new Date(s).getTime()||0;return Math.max(t,o)}function Se(e){const t=e.filter(J).map(s=>({agent:s,activity:g(s),created:new Date(s.createdAt).getTime()||0})).sort((s,o)=>o.activity-s.activity||o.created-s.created||String(s.agent.id).localeCompare(String(o.agent.id)));return t.find(({agent:s})=>B(s)==="topLevel")?.agent??t[0]?.agent??null}const p="__chief__",N="New chat";function Q(e){const t=e?.trim();return!t||t===N||t==="New chat with Assistant"||t==="New chat with Intent"||t==="Chief of Staff"||t.startsWith("New thread ")}function X(e){const t=e.name?.trim();if(e.nameExplicitlySet&&t)return t;const o=e.messages.find(l=>l.role==="user")??e.messages[0],c=o?G(o).trim():"";return!t||Q(t)?c||N:c||t}const Z="chief-of-staff",ee=6,W="## 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 ke(e){const t=e?.trim();return t?`${W}
|
|
2
2
|
|
|
3
3
|
${t}`:W}const te=n.createSelector((e,t)=>{const s=e.backgroundHooks?.byWorkspaceId?.[t];return s?x(s.hooks):[]}),se=n.createSelector((e,t)=>e.backgroundHooks?.byWorkspaceId?.[t]?.snapshotStatus??"loading"),M=n.createSelector((e,t)=>e.scriptMonitor?.byWorkspaceId[t]??H),me=n.createSelector((e,t,s)=>{const o=M.select(e,t);return o.status==="unsupported"?[]:o.monitors.filter(c=>c.agentId===s)}),u=n.createSelector((e,t,s)=>{const o=F(t,s);return e.agentSubscriptionUI.entries[o]??U}),oe=n.createSelector((e,t,s)=>u.select(e,t,s).subscriptions),ne=n.createSelector((e,t,s)=>u.select(e,t,s).eventSubscriptions??[]),re=n.createSelector((e,t,s)=>u.select(e,t,s).delegationGroups),Ie=n.createSelector((e,t,s)=>u.select(e,t,s).agentStatuses),we=n.createSelector((e,t,s)=>u.select(e,t,s).waitingState),be=n.createSelector((e,t,s)=>u.select(e,t,s).wokenUpInfo);function ae(e){return[...new Set(e.filter(Boolean))]}const Ae=n.createSelector((e,t,s)=>{const o=u.select(e,t,s),c=[],l=new Set,i=r=>{for(const a of ae(r))l.has(a)||(l.add(a),c.push(a))},S=[...o.subscriptions].sort((r,a)=>r.createdAt.localeCompare(a.createdAt)||r.id.localeCompare(a.id));for(const r of S)r.delegationGroup?.awaitMode!=="all"&&i(r.actorIds);const f=new Map;for(const r of o.delegationGroups)r.awaitMode==="all"&&f.set(r.groupId,r);for(const r of f.values())i(r.expectedAgentIds);for(const r of S){const a=r.delegationGroup;a?.awaitMode==="all"&&!f.has(a.groupId)&&i(a.expectedAgentIds)}const d=new Set;for(const r of o.delegationGroups){for(const a of r.completedAgentIds)d.add(a);for(const a of r.deletedAgentIds)d.add(a);for(const[a,h]of Object.entries(r.agentStatuses))h==="completed"&&d.add(a)}for(const[r,a]of Object.entries(o.agentStatuses))a==="completed"&&d.add(r);const b=e.agentSessions?.byAgentId??{},A=new Set([...d].filter(r=>{const a=b[r];return!a||!K(j(a))})),v=new Map(c.map((r,a)=>[r,a])),y=r=>{const a=b[r];if(!a)return 2;if(a.attentionRequestKind==="blocker")return 0;if(a.attentionRequestKind==="discussion")return 1;if(A.has(r))return 4;const h=String(a.status).toLowerCase();return h==="responding"||h==="active"||h==="processing"?2:3},C=c.filter(r=>!A.has(r)).sort((r,a)=>y(r)-y(a)||(v.get(r)??0)-(v.get(a)??0));return{visible:o.snapshotStatus==="failed"||o.waitingState==="completed"||c.length>0||o.wokenUpInfo!==null,count:C.length,participantAgentIds:C}}),ve=n.createSelector((e,t,s)=>u.select(e,t,s).snapshotStatus),ye=n.createSelector((e,t)=>{const s=`${t}:`,o=[];for(const c of Object.keys(e.agentSubscriptionUI.entries))c.startsWith(s)&&o.push(c.slice(s.length));return o});n.createSelector((e,t,s)=>{const o=re.select(e,t,s);let c=0,l=0;for(const i of o)c+=i.expectedAgentIds.length,l+=i.completedAgentIds.length+i.deletedAgentIds.length;return{total:c,completed:l}});const Ce=n.createSelector(e=>{const t=V.select(e);if(!t||!$.select(e))return[];const s=new Set;for(const o of z.select(e,t)){const c=o.panes.find(l=>l.id===o.activePaneId);c?.type==="agent"&&c.agentId&&s.add(c.agentId)}return[...s].map(o=>({wsId:t,agentId:o}))}),O="pinned",ce=64;function k(e){return e.trim().toLocaleLowerCase()}function P(e){return e===O}function We(e,t){const s=e.trim();if(s.length===0)return{ok:!1,error:"empty"};if([...s].length>ce)return{ok:!1,error:"tooLong"};const o=k(s);return o===O?{ok:!1,error:"reserved"}:t.some(c=>k(c)===o)?{ok:!1,error:"duplicate"}:{ok:!0,label:s}}function ie(e){const t=new Map;for(const s of e){if(typeof s!="string"||P(s))continue;const o=s.trim();if(o.length===0)continue;const c=k(o);t.has(c)||t.set(c,s)}return[...t.values()].sort((s,o)=>s.localeCompare(o,void 0,{sensitivity:"base"}))}function I(e){const s=e.workspaceAgents?.byWorkspaceId?.[p]?.agentIds,o=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 o?l.filter(i=>o.has(String(i.id))):l}function _(e){return e.metadata?.specialist===Z&&e.metadata?.chiefPromptVersion===ee}function D(e){return Math.max(e.messages.length,e.messageCount??0)}function w(e){return{agentId:e.id,title:X(e),isActive:e.isStreaming===!0||e.isProcessing===!0||e.isResponding===!0,messageCount:D(e)}}const Te=n.createSelector(e=>e.sidebarNav.panelItem),Ee=n.createSelector(e=>e.sidebarNav.onboardingActive),Le=n.createSelector(e=>e.sidebarNav.showCreateModal),R=n.createSelector(e=>T.select(e)?.capabilities.workspaceLabels===1),Ne=n.createSelector((e,t)=>m.select(e,t)?.label??null),Me=n.createSelector(e=>ie(E.select(e).map(t=>t.label))),le=["id","label"],Oe=n.createSelector((e,t)=>R.select(e)&&L.select(e,t,le)!==null),de=n.createSelector(e=>T.select(e)?.capabilities.workspaceAutoArchiveOptOut===1),pe=n.createSelector(e=>(e.sidebarNav.autoArchiveIdleAfterDays??0)>0),Pe=n.createSelector((e,t)=>m.select(e,t)?.autoArchiveDisabled===!0),ue=["id","autoArchiveDisabled"],_e=n.createSelector((e,t)=>{if(!de.select(e)||!pe.select(e))return!1;const s=m.select(e,t);return!s||s.isRemote===!0||s.environmentConfig?.type==="remote"?!1:L.select(e,t,ue)!==null}),De=n.createSelector(e=>e.sidebarNav.pinnedWorkspaceIds),Re=n.createSelector(e=>R.select(e)?E.select(e).filter(t=>P(t.label)).map(t=>t.id):e.sidebarNav.pinnedWorkspaceIds),Be=n.createSelector((e,t)=>e.sidebarNav.multiSelectSelectedTabIdsByWorkspaceId[t]??["overview"]),xe=n.createSelector((e,t)=>e.sidebarNav.noteOrderByWorkspaceId[t]??[]),He=n.createSelector((e,t)=>e.sidebarNav.collapsedNoteIdsByWorkspaceId[t]??[]),Ue=n.createSelector((e,t)=>e.sidebarNav.expandedNoteIdsByWorkspaceId?.[t]??[]),Fe=n.createSelector(e=>e.sidebarNav.chiefActiveAgentId),Ge=n.createSelector((e,t)=>{const s=e.agentSessions.byAgentId[t];if(s?.workspaceId!==p)return{hooks:0,monitors:0,subscriptions:0};const o=se.select(e,p)==="ready"?te.select(e,p).filter(d=>d.agentId===t&&(d.state==="scheduled"||d.state==="running")).length:s.waitingOnHooks?.length??0,c=q.select(e,p)==="ready"?Y.select(e,p,t).filter(d=>d.state==="active").length:s.waitingOnPrMonitors?.length??0,l=M.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,S=s.isWaitingForOtherAgents===!1?0:s.waitingForAgentIds?.length??(oe.select(e,p,t).length||(s.isWaitingForOtherAgents?1:0)),f=ne.select(e,p,t).filter(d=>d.subscriberAgentId===t).length;return{hooks:o,monitors:c+i,subscriptions:S+f}}),Ke=n.createSelector(e=>e.sidebarNav.statsOverlayOpen),je=n.createSelector(e=>I(e).slice().sort((t,s)=>g(s)-g(t)).map(w)),qe=n.createSelector(e=>{const t=I(e).filter(_).sort((s,o)=>g(o)-g(s))[0];return t?w(t):null}),Ye=n.createSelector(e=>{const t=I(e).filter(s=>D(s)===0&&!s.lastMessageId&&_(s)).sort((s,o)=>g(o)-g(s))[0];return t?w(t):null});export{Ye as A,M as B,ee as C,N as D,Le as E,Ke as F,ve as G,ye as H,we as I,be as J,Pe as K,He as L,Ue as M,Ne as N,Me as O,O as P,xe as Q,We as R,ce as W,Z as a,p as b,ke as c,J as d,Ae as e,Ie as f,oe as g,Ge as h,P as i,te as j,se as k,_e as l,Oe as m,Fe as n,je as o,qe as p,re as q,Se as r,me as s,Ce as t,R as u,De as v,Be as w,Ee as x,Te as y,Re as z};
|