@intent-hq/web 2.381.1 → 2.383.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/assets/0.BmwjvpSF.css +1 -0
- package/web/app/immutable/chunks/{rlD8zTU3.js → -K3ARgq0.js} +1 -1
- package/web/app/immutable/chunks/{3XnvT-Kd.js → 0HRWclfL.js} +1 -1
- package/web/app/immutable/chunks/{BT90ga2C.js → 1WR8MecL.js} +3 -3
- package/web/app/immutable/chunks/{DB7oVHuD.js → 1mf839wD.js} +1 -1
- package/web/app/immutable/chunks/{BJZ-AKM7.js → 3xK9OOJy.js} +1 -1
- package/web/app/immutable/chunks/{DY591siF.js → 4BrIaRe_.js} +1 -1
- package/web/app/immutable/chunks/{BsQIXjo5.js → 518Fef2L.js} +1 -1
- package/web/app/immutable/chunks/{xqiJuTcv.js → 6-uYidyP.js} +3 -3
- package/web/app/immutable/chunks/{USTHbXMy.js → 68Tuqjp3.js} +1 -1
- package/web/app/immutable/chunks/{BLQTrVGe.js → 6Bqipt1r.js} +1 -1
- package/web/app/immutable/chunks/{kR4OBGp8.js → 7UPrdiE9.js} +1 -1
- package/web/app/immutable/chunks/{CpdYwtoi.js → 8r75D0ru.js} +1 -1
- package/web/app/immutable/chunks/{X9YPou2Z.js → 9bukzQMK.js} +1 -1
- package/web/app/immutable/chunks/{BLNFLvET.js → 9gSjzhYc.js} +1 -1
- package/web/app/immutable/chunks/A9niI_uA.js +1 -0
- package/web/app/immutable/chunks/{jVDPtQ_B.js → AlEhxd2n.js} +1 -1
- package/web/app/immutable/chunks/{DKdhqmQ1.js → B-ef1MlI.js} +1 -1
- package/web/app/immutable/chunks/{DfgbnmD4.js → B2Ym4lhl.js} +1 -1
- package/web/app/immutable/chunks/{CrgJRVM7.js → B2f9w8eB.js} +1 -1
- package/web/app/immutable/chunks/{slJf1fOP.js → B2kb4xeF.js} +1 -1
- package/web/app/immutable/chunks/{Xo-qyHto.js → B2nCyo89.js} +1 -1
- package/web/app/immutable/chunks/{Bgbd1ReH.js → B3Bfek34.js} +1 -1
- package/web/app/immutable/chunks/{UxmdIyM3.js → B4SiDSWP.js} +1 -1
- package/web/app/immutable/chunks/{BLsG1dF4.js → B4WuQori.js} +1 -1
- package/web/app/immutable/chunks/{JYrw96gg.js → B4xSB_Hx.js} +1 -1
- package/web/app/immutable/chunks/{DVvIWU27.js → B5M0SkuR.js} +1 -1
- package/web/app/immutable/chunks/{Bj3DquZA.js → B6S6VNu7.js} +1 -1
- package/web/app/immutable/chunks/{Dp0abKpi.js → B6STvYyK.js} +1 -1
- package/web/app/immutable/chunks/{DXdISsBM.js → B8-Q1tED.js} +1 -1
- package/web/app/immutable/chunks/{sTf2KW7l.js → B9oKJyXc.js} +1 -1
- package/web/app/immutable/chunks/{BLWXcpbp.js → BA-rwlhs.js} +1 -1
- package/web/app/immutable/chunks/{Cvrwd8gY.js → BAKPnd3w.js} +1 -1
- package/web/app/immutable/chunks/{HhPY-joW.js → BAOaoX22.js} +1 -1
- package/web/app/immutable/chunks/{DR9or2eV.js → BE6Cp7Qp.js} +1 -1
- package/web/app/immutable/chunks/{DquvKa_v.js → BETzmOvF.js} +1 -1
- package/web/app/immutable/chunks/{BYlWQ5uL.js → BFEzojY2.js} +1 -1
- package/web/app/immutable/chunks/{ajSGSfsK.js → BFIcslMA.js} +2 -2
- package/web/app/immutable/chunks/{Bp1r8JRc.js → BFeEPayU.js} +1 -1
- package/web/app/immutable/chunks/{CzR1YU-6.js → BG9tvqwj.js} +1 -1
- package/web/app/immutable/chunks/{CKJKyFn1.js → BGTRTFMR.js} +1 -1
- package/web/app/immutable/chunks/BIVeXMBl.js +1 -0
- package/web/app/immutable/chunks/{BQPwOHEP.js → BJWt3PU_.js} +1 -1
- package/web/app/immutable/chunks/{CzLuqZqF.js → BJ_CKcUH.js} +1 -1
- package/web/app/immutable/chunks/{Bq_p_Ems.js → BO_DS0RP.js} +1 -1
- package/web/app/immutable/chunks/{9V11pA6D.js → BP3Sccje.js} +1 -1
- package/web/app/immutable/chunks/{BpCFoetp.js → BP4Hm_tD.js} +2 -2
- package/web/app/immutable/chunks/{I8y42gEP.js → BP5uGGO_.js} +1 -1
- package/web/app/immutable/chunks/{B980ED3o.js → BPL5Fo2b.js} +1 -1
- package/web/app/immutable/chunks/{UeBqzVae.js → BSKFIBj2.js} +1 -1
- package/web/app/immutable/chunks/{CniyTwSy.js → BSKf8bnG.js} +1 -1
- package/web/app/immutable/chunks/{CKZotIw1.js → BTrqJIJZ.js} +1 -1
- package/web/app/immutable/chunks/{hP6WjVR_.js → BUGeL7WE.js} +1 -1
- package/web/app/immutable/chunks/{DXrfRfkt.js → BUQUek8g.js} +1 -1
- package/web/app/immutable/chunks/{H3A5gXqL.js → BURZJh0r.js} +1 -1
- package/web/app/immutable/chunks/{D6JftAWR.js → BWGnuS1v.js} +1 -1
- package/web/app/immutable/chunks/{B_uN9rMf.js → BWYuMy_r.js} +1 -1
- package/web/app/immutable/chunks/{9JSrE4qA.js → BX-0SVP7.js} +1 -1
- package/web/app/immutable/chunks/{BSsARSCL.js → BX-LCSle.js} +1 -1
- package/web/app/immutable/chunks/{Ctra6UYY.js → BYq9VtBF.js} +1 -1
- package/web/app/immutable/chunks/{Cz_w-Ywk.js → B_LcgbLl.js} +1 -1
- package/web/app/immutable/chunks/{knotK2ne.js → Ba8ctcpl.js} +1 -1
- package/web/app/immutable/chunks/{E8rxDAT1.js → BaujsV9k.js} +1 -1
- package/web/app/immutable/chunks/{BLscL4Oc.js → BcpfdNy8.js} +1 -1
- package/web/app/immutable/chunks/{D0qSwFDo.js → BeNn_MBw.js} +1 -1
- package/web/app/immutable/chunks/{BVy9T_0R.js → BeOwB_6G.js} +1 -1
- package/web/app/immutable/chunks/{DC7d3jq1.js → BfojStRz.js} +1 -1
- package/web/app/immutable/chunks/{DB3Bmw2z.js → BfvZe-kN.js} +6 -6
- package/web/app/immutable/chunks/{D2YsfEw1.js → Bir0Y4gf.js} +2 -2
- package/web/app/immutable/chunks/{CzqO4uZr.js → BlDljC9y.js} +1 -1
- package/web/app/immutable/chunks/{KkEpTlxU.js → BmTMWrby.js} +1 -1
- package/web/app/immutable/chunks/{CGj6Uov1.js → BmUPAQa9.js} +1 -1
- package/web/app/immutable/chunks/{C2g3Lo3C.js → Bn880vDO.js} +1 -1
- package/web/app/immutable/chunks/{Cf8aoN1C.js → Bs2WE18g.js} +1 -1
- package/web/app/immutable/chunks/{1s9RpAop.js → Bs9K_x5H.js} +1 -1
- package/web/app/immutable/chunks/{CyjFr4Uj.js → BsN2abqQ.js} +1 -1
- package/web/app/immutable/chunks/{RaqCYvDN.js → Bsh6nUhU.js} +1 -1
- package/web/app/immutable/chunks/{BaZj7GlE.js → BsrrIQeo.js} +1 -1
- package/web/app/immutable/chunks/{0vwP6aoY.js → BtTA7CNV.js} +1 -1
- package/web/app/immutable/chunks/{D52zd84i.js → Bty1UglO.js} +1 -1
- package/web/app/immutable/chunks/{DlstVUk2.js → Bu7LYnzn.js} +1 -1
- package/web/app/immutable/chunks/{ChaE0Y8J.js → Bvi-fRGz.js} +1 -1
- package/web/app/immutable/chunks/{BkBSmJUq.js → BwG2vfja.js} +1 -1
- package/web/app/immutable/chunks/{C2dHQtwl.js → BxEf7uwl.js} +1 -1
- package/web/app/immutable/chunks/{CtZ1IYsK.js → BxJ6X-Sl.js} +1 -1
- package/web/app/immutable/chunks/{D6CLCSlZ.js → BypvqIQM.js} +1 -1
- package/web/app/immutable/chunks/{CB6Z_HaZ.js → Bz7R1ahj.js} +4 -4
- package/web/app/immutable/chunks/{B6bO9EJF.js → C0I_aIej.js} +2 -2
- package/web/app/immutable/chunks/C0QTy0Sy.js +1 -0
- package/web/app/immutable/chunks/{28TA1ENQ.js → C1EvfTg-.js} +1 -1
- package/web/app/immutable/chunks/{CUFtLdNE.js → C45U06qp.js} +1 -1
- package/web/app/immutable/chunks/{AD36Gg-c.js → C4JXGtw1.js} +1 -1
- package/web/app/immutable/chunks/{DyaiD9SI.js → C4JbSg3f.js} +1 -1
- package/web/app/immutable/chunks/{D9gwBpya.js → C4QKwtCH.js} +1 -1
- package/web/app/immutable/chunks/{CsChyIko.js → C5yhcKTW.js} +1 -1
- package/web/app/immutable/chunks/{D2ucd7-d.js → C6mS8uZB.js} +1 -1
- package/web/app/immutable/chunks/{gpDHnGWw.js → C7LIHk5_.js} +1 -1
- package/web/app/immutable/chunks/{AgrSZR3a.js → C8HkqBCb.js} +1 -1
- package/web/app/immutable/chunks/{ZP6gzzK7.js → C8y9EItt.js} +1 -1
- package/web/app/immutable/chunks/{B4rSPxtK.js → CAgnBDaV.js} +3 -3
- package/web/app/immutable/chunks/{CP-_1bDH.js → CAvYeStH.js} +1 -1
- package/web/app/immutable/chunks/{BsgE1xt5.js → CCqqosml.js} +1 -1
- package/web/app/immutable/chunks/{CnCrlmvG.js → CDK_hSiv.js} +1 -1
- package/web/app/immutable/chunks/{CoK_zZhC.js → CDjpuJh0.js} +1 -1
- package/web/app/immutable/chunks/{CRsl30lG.js → CE7VCun2.js} +3 -3
- package/web/app/immutable/chunks/{ZYFxZ-3Z.js → CE7dsja4.js} +1 -1
- package/web/app/immutable/chunks/{hALpfjsp.js → CEgeN2ws.js} +1 -1
- package/web/app/immutable/chunks/{B4CIsRmR.js → CFny5dMa.js} +1 -1
- package/web/app/immutable/chunks/{-38fvEUf.js → CFvBUo4R.js} +3 -3
- package/web/app/immutable/chunks/{D1o5arZx.js → CHLX1QZz.js} +1 -1
- package/web/app/immutable/chunks/{g4HdeOyY.js → CJ4Z96pe.js} +1 -1
- package/web/app/immutable/chunks/{BEm2fXhQ.js → CMrw-y4l.js} +13 -13
- package/web/app/immutable/chunks/{CJrYHCFr.js → CMu-09q3.js} +1 -1
- package/web/app/immutable/chunks/{BWJ3Ll2m.js → CNAgTnv2.js} +1 -1
- package/web/app/immutable/chunks/{DB1dtbA3.js → CO5zWp8I.js} +1 -1
- package/web/app/immutable/chunks/{D4x27t3J.js → COhRCR9P.js} +2 -2
- package/web/app/immutable/chunks/CPQ-kfy2.js +1 -0
- package/web/app/immutable/chunks/{DCYhtokL.js → CPTZJWC9.js} +1 -1
- package/web/app/immutable/chunks/{-kDxv2do.js → CRZZ_hOy.js} +1 -1
- package/web/app/immutable/chunks/CRs9zG2A.js +1 -0
- package/web/app/immutable/chunks/{ChDGxCqG.js → CSRYV6LQ.js} +1 -1
- package/web/app/immutable/chunks/{BLLwaxf_.js → CSVgdt55.js} +1 -1
- package/web/app/immutable/chunks/{BVCuuPr4.js → CU5jKGma.js} +1 -1
- package/web/app/immutable/chunks/{Dcys5Bs9.js → CUkDMZwP.js} +1 -1
- package/web/app/immutable/chunks/{8PuV5ymR.js → CXS2Ba3S.js} +1 -1
- package/web/app/immutable/chunks/{BzjWLlGO.js → CY4fyoCV.js} +1 -1
- package/web/app/immutable/chunks/{B_8LEprc.js → CYtPXqgK.js} +1 -1
- package/web/app/immutable/chunks/C_1hI7HP.js +1 -0
- package/web/app/immutable/chunks/{D23FNw3u.js → C_78iNNC.js} +1 -1
- package/web/app/immutable/chunks/{TFS2YmzU.js → C_KuQ05a.js} +1 -1
- package/web/app/immutable/chunks/{AfLmLM1t.js → CbqxWBi7.js} +1 -1
- package/web/app/immutable/chunks/{CD3IL4AL.js → Cf4fmkfL.js} +1 -1
- package/web/app/immutable/chunks/{BUeOnhAk.js → ChTVnFH2.js} +1 -1
- package/web/app/immutable/chunks/{hUT_i5Of.js → CiMmbOsB.js} +1 -1
- package/web/app/immutable/chunks/{MkXmO5mC.js → CjTo2K46.js} +1 -1
- package/web/app/immutable/chunks/{CfNCBmxL.js → CkA2ItLw.js} +1 -1
- package/web/app/immutable/chunks/{C6qkTCJb.js → Cmq0pZIQ.js} +2 -2
- package/web/app/immutable/chunks/{DkPChqhY.js → CmrjfWYI.js} +1 -1
- package/web/app/immutable/chunks/{BOKKr5p4.js → Co4vj0dC.js} +1 -1
- package/web/app/immutable/chunks/{DckZnmoo.js → Cqa6LF3b.js} +1 -1
- package/web/app/immutable/chunks/CqcqWJoa.js +1 -0
- package/web/app/immutable/chunks/CrD0jtXE.js +1 -0
- package/web/app/immutable/chunks/{D7ivqtWn.js → CrkMZYjb.js} +1 -1
- package/web/app/immutable/chunks/{gWgQT-YB.js → Cs2lHsyA.js} +1 -1
- package/web/app/immutable/chunks/{Cgkbg4M-.js → Csc9ETIC.js} +1 -1
- package/web/app/immutable/chunks/{CfnphW7T.js → CtNkh9GR.js} +1 -1
- package/web/app/immutable/chunks/{BuBupv2q.js → Ct_q9q1G.js} +1 -1
- package/web/app/immutable/chunks/{C62h6h6n.js → Ctbo6mXV.js} +1 -1
- package/web/app/immutable/chunks/{nvUE_ize.js → CuW3cq2w.js} +1 -1
- package/web/app/immutable/chunks/{Bsz-lZyy.js → CuewocoW.js} +1 -1
- package/web/app/immutable/chunks/{Bv-NFhbk.js → CxOmNieJ.js} +1 -1
- package/web/app/immutable/chunks/D-zjf2Af.js +1 -0
- package/web/app/immutable/chunks/{CQm33fWh.js → D37getya.js} +1 -1
- package/web/app/immutable/chunks/{8k-S4TgT.js → D3O8Vtuw.js} +1 -1
- package/web/app/immutable/chunks/{CzjLJAvm.js → D3p_bZm7.js} +1 -1
- package/web/app/immutable/chunks/{Bm4rkyWb.js → D51XIZYq.js} +1 -1
- package/web/app/immutable/chunks/{Dhh8ebG4.js → D5tDp1i8.js} +1 -1
- package/web/app/immutable/chunks/{DnHw1VUT.js → D5xMHmv3.js} +1 -1
- package/web/app/immutable/chunks/{lMHzRxIi.js → D6dlPeEM.js} +1 -1
- package/web/app/immutable/chunks/{XYL7cKn8.js → D73nBZuu.js} +1 -1
- package/web/app/immutable/chunks/{BTXNTren.js → D8ohaX19.js} +1 -1
- package/web/app/immutable/chunks/{C7CLfLlz.js → D9XKwVJX.js} +3 -3
- package/web/app/immutable/chunks/{Dt46PcSf.js → DA5opfEp.js} +1 -1
- package/web/app/immutable/chunks/{CW4mCrDo.js → DB7RVYiL.js} +1 -1
- package/web/app/immutable/chunks/{D86Nkl0p.js → DC8keNAk.js} +1 -1
- package/web/app/immutable/chunks/DCK8dPAL.js +1 -0
- package/web/app/immutable/chunks/{CWzES__t.js → DCRuihKm.js} +2 -2
- package/web/app/immutable/chunks/{vFkcanNO.js → DE7dSDHO.js} +1 -1
- package/web/app/immutable/chunks/DEVX5wOm.js +2 -0
- package/web/app/immutable/chunks/{Be_KPn6B.js → DF2_1gr9.js} +1 -1
- package/web/app/immutable/chunks/{CxfgkyeR.js → DFcppVBl.js} +1 -1
- package/web/app/immutable/chunks/{qgFvgidh.js → DGa13zF2.js} +1 -1
- package/web/app/immutable/chunks/{CFQZwmQL.js → DIFhl0he.js} +1 -1
- package/web/app/immutable/chunks/{C81BxYgH.js → DIG1mTAN.js} +2 -2
- package/web/app/immutable/chunks/{DxUAR435.js → DIKTPgAK.js} +1 -1
- package/web/app/immutable/chunks/{CmfV8NZB.js → DK-ttWlY.js} +1 -1
- package/web/app/immutable/chunks/{B3dKFpC0.js → DKHY8q_S.js} +1 -1
- package/web/app/immutable/chunks/{DJvjiyr0.js → DLbcryNV.js} +1 -1
- package/web/app/immutable/chunks/{C4w1ocT0.js → DLwWVKiF.js} +1 -1
- package/web/app/immutable/chunks/{CIzhESxA.js → DMDFfHqn.js} +3 -3
- package/web/app/immutable/chunks/{BFly3ws-.js → DMQmPhTl.js} +1 -1
- package/web/app/immutable/chunks/{DPCx8xD6.js → DN6OUhsP.js} +1 -1
- package/web/app/immutable/chunks/{4gpsTQgm.js → DO19lrhU.js} +1 -1
- package/web/app/immutable/chunks/{BOnuoCKB.js → DOEI9gYY.js} +1 -1
- package/web/app/immutable/chunks/{CRUti2QR.js → DPA45OJk.js} +1 -1
- package/web/app/immutable/chunks/{CKr5-Hg3.js → DPYlDye0.js} +1 -1
- package/web/app/immutable/chunks/{B54UFMTd.js → DQ_mNIfK.js} +1 -1
- package/web/app/immutable/chunks/{DhnxjslI.js → DR4Kh2SL.js} +1 -1
- package/web/app/immutable/chunks/{Btz1TKUZ.js → DSbNJBwA.js} +1 -1
- package/web/app/immutable/chunks/{B7VggIw3.js → DTuql3Rj.js} +1 -1
- package/web/app/immutable/chunks/{DMxvL2pq.js → DUIwUF5m.js} +1 -1
- package/web/app/immutable/chunks/{inhLOPTf.js → DVROSXw1.js} +1 -1
- package/web/app/immutable/chunks/{CHJt826g.js → DWWC1JsA.js} +1 -1
- package/web/app/immutable/chunks/{Br6yAYVA.js → DWiU4388.js} +1 -1
- package/web/app/immutable/chunks/{CgpdD1It.js → DX-Wrapd.js} +1 -1
- package/web/app/immutable/chunks/{CQuPTgh8.js → DXBEIeJu.js} +1 -1
- package/web/app/immutable/chunks/{DhyB8cWp.js → DY0qeQe8.js} +1 -1
- package/web/app/immutable/chunks/{IOg1fqVg.js → D_Xpj-6r.js} +1 -1
- package/web/app/immutable/chunks/{B3AvPO6N.js → D_ovLyyd.js} +1 -1
- package/web/app/immutable/chunks/{DNA4L5Jp.js → Db3Wob9h.js} +1 -1
- package/web/app/immutable/chunks/{YE1OS8p7.js → DdXBqrnq.js} +1 -1
- package/web/app/immutable/chunks/{DILbaYr6.js → DeHvIzqj.js} +2 -2
- package/web/app/immutable/chunks/{D-5-znQa.js → Dfg3lB2h.js} +1 -1
- package/web/app/immutable/chunks/{yrTkKoBE.js → Djp7mdlG.js} +1 -1
- package/web/app/immutable/chunks/{C1XDNSjC.js → DjxLojU4.js} +1 -1
- package/web/app/immutable/chunks/{BYbQHOnI.js → DlJZrxef.js} +2 -2
- package/web/app/immutable/chunks/{CzHEtjeZ.js → DliHiH6M.js} +4 -4
- package/web/app/immutable/chunks/{BfUxKqM2.js → Dlk4BhFg.js} +1 -1
- package/web/app/immutable/chunks/{BHq6uyQn.js → DlliJA4a.js} +3 -3
- package/web/app/immutable/chunks/{BRdcQc7W.js → DnJ4jlPB.js} +1 -1
- package/web/app/immutable/chunks/{DKodLYG2.js → DpHn84BV.js} +1 -1
- package/web/app/immutable/chunks/{Cyhzjl1i.js → DpMOdl0E.js} +1 -1
- package/web/app/immutable/chunks/{DYLppqi3.js → DpyfxjgC.js} +1 -1
- package/web/app/immutable/chunks/{CTcVaot6.js → Dqdvt4Zr.js} +1 -1
- package/web/app/immutable/chunks/{BVEUKKxL.js → DrIA1Azf.js} +1 -1
- package/web/app/immutable/chunks/{OMC6eTGJ.js → DrxfcnSy.js} +1 -1
- package/web/app/immutable/chunks/{bDc4vYO6.js → DsGUBv3k.js} +1 -1
- package/web/app/immutable/chunks/{D366u1LV.js → Dsr4GELp.js} +1 -1
- package/web/app/immutable/chunks/DtF9DVpp.js +1 -0
- package/web/app/immutable/chunks/{Cwtu6VYt.js → DvSURWC2.js} +4 -4
- package/web/app/immutable/chunks/{WdrvDKDu.js → DvUGkiYP.js} +1 -1
- package/web/app/immutable/chunks/{CV2UmF1c.js → DvYUfzNR.js} +1 -1
- package/web/app/immutable/chunks/{fXL9w3mE.js → Dw8wIAFi.js} +1 -1
- package/web/app/immutable/chunks/{a_kJM7V2.js → DwL1A1su.js} +1 -1
- package/web/app/immutable/chunks/{4nji41bN.js → DzWZGIya.js} +1 -1
- package/web/app/immutable/chunks/{2D4U7uPQ.js → EK6zOAHM.js} +1 -1
- package/web/app/immutable/chunks/{yF7QjJ_G.js → FzlZUztb.js} +1 -1
- package/web/app/immutable/chunks/{BPvvII1k.js → IQ13JH5A.js} +1 -1
- package/web/app/immutable/chunks/{DY4WElxT.js → J8_M56d9.js} +1 -1
- package/web/app/immutable/chunks/{H-xSbRy8.js → KHteWVFN.js} +1 -1
- package/web/app/immutable/chunks/{DhaMRyeZ.js → KYuLFpkq.js} +1 -1
- package/web/app/immutable/chunks/{DhClgUfO.js → L4HdMFBq.js} +1 -1
- package/web/app/immutable/chunks/{j9OUTvTs.js → L7j-Q29w.js} +1 -1
- package/web/app/immutable/chunks/{ByHhzwUN.js → L_tYoUCb.js} +1 -1
- package/web/app/immutable/chunks/{GZSCGAOr.js → M5Dwuu-X.js} +1 -1
- package/web/app/immutable/chunks/{l7z39TjX.js → No1eCFy3.js} +1 -1
- package/web/app/immutable/chunks/{DVrV2vUr.js → OFhgRaUm.js} +1 -1
- package/web/app/immutable/chunks/{BU7_DTqK.js → OtomGvb3.js} +1 -1
- package/web/app/immutable/chunks/{Dben3Vvx.js → PIgqsYsQ.js} +1 -1
- package/web/app/immutable/chunks/{CUDnr_3L.js → PO_5m99x.js} +1 -1
- package/web/app/immutable/chunks/{CBw6a9pd.js → QeBH-DWE.js} +1 -1
- package/web/app/immutable/chunks/{DuvW08Hb.js → RFsxwSsB.js} +1 -1
- package/web/app/immutable/chunks/{e7p1l6GD.js → S845NCb3.js} +1 -1
- package/web/app/immutable/chunks/{oYYFJMSc.js → S8ugWfAx.js} +1 -1
- package/web/app/immutable/chunks/{BQ64OnCJ.js → U9jJmfYa.js} +1 -1
- package/web/app/immutable/chunks/{D43zGYhv.js → U_OQY9n3.js} +1 -1
- package/web/app/immutable/chunks/{Cz7GhlNv.js → UhL0ohiG.js} +1 -1
- package/web/app/immutable/chunks/{DBVO-l07.js → W2WLehNu.js} +1 -1
- package/web/app/immutable/chunks/{BOsxbVPk.js → XCWZeNYo.js} +1 -1
- package/web/app/immutable/chunks/{BkXh63u1.js → Y5Ky10uA.js} +1 -1
- package/web/app/immutable/chunks/{CzVoIrDK.js → _SYFiE9N.js} +1 -1
- package/web/app/immutable/chunks/{Dnn3SS66.js → a3TFelkn.js} +1 -1
- package/web/app/immutable/chunks/baWz1QxB.js +19 -0
- package/web/app/immutable/chunks/{BdqQb89H.js → bhKPSdq4.js} +1 -1
- package/web/app/immutable/chunks/{BM6PvXts.js → c5QZsH9t.js} +1 -1
- package/web/app/immutable/chunks/{CJiiUUa9.js → cebxNJuC.js} +4 -4
- package/web/app/immutable/chunks/{CK_3Sd-p.js → chjnSxvZ.js} +1 -1
- package/web/app/immutable/chunks/{BqImHrtW.js → duDdSCAT.js} +1 -1
- package/web/app/immutable/chunks/{DmCQ-SmI.js → eElW3aeh.js} +1 -1
- package/web/app/immutable/chunks/{BfWybjMv.js → eQVXRlbn.js} +1 -1
- package/web/app/immutable/chunks/{toxSFGnz.js → eTsHzcIE.js} +3 -3
- package/web/app/immutable/chunks/{D7eOxNs7.js → ebbVP0tp.js} +1 -1
- package/web/app/immutable/chunks/{vTqsHLsg.js → f24VwgrA.js} +1 -1
- package/web/app/immutable/chunks/{jPkbSYRO.js → fiz8N_zQ.js} +1 -1
- package/web/app/immutable/chunks/{CY84Iq8-.js → hHMYoFyG.js} +1 -1
- package/web/app/immutable/chunks/{Dp30WbTf.js → haN7a3Sc.js} +1 -1
- package/web/app/immutable/chunks/{BzHupLIV.js → hb4NYXGo.js} +1 -1
- package/web/app/immutable/chunks/{B6QMsHdz.js → jcl0zObl.js} +2 -2
- package/web/app/immutable/chunks/{Bv4WoH6n.js → jn4zbMQy.js} +1 -1
- package/web/app/immutable/chunks/k0JmlCVk.js +2 -0
- package/web/app/immutable/chunks/{BRQE3Dlo.js → kS6Z7jzP.js} +1 -1
- package/web/app/immutable/chunks/{DYeLRr67.js → kjxbkPQZ.js} +1 -1
- package/web/app/immutable/chunks/{BqvIfFJz.js → lJeex2Gh.js} +1 -1
- package/web/app/immutable/chunks/{CU1be4rw.js → lVh2oAeQ.js} +1 -1
- package/web/app/immutable/chunks/{CY700US_.js → lwlI9u_5.js} +1 -1
- package/web/app/immutable/chunks/{0UjerFq2.js → nXfD7jHz.js} +2 -2
- package/web/app/immutable/chunks/{yD1qfwqe.js → ozVAo4aX.js} +1 -1
- package/web/app/immutable/chunks/{DI8QKtVI.js → p9X2tUBM.js} +1 -1
- package/web/app/immutable/chunks/{DjuGqsic.js → pYQh_Bw_.js} +1 -1
- package/web/app/immutable/chunks/{HM9LwZU0.js → puJFvQs5.js} +1 -1
- package/web/app/immutable/chunks/{usTkJVfb.js → pwJelZzH.js} +1 -1
- package/web/app/immutable/chunks/{DtNzpjBe.js → sdV4t8T0.js} +1 -1
- package/web/app/immutable/chunks/{BSk8D9GU.js → tZyAiGvb.js} +1 -1
- package/web/app/immutable/chunks/{DmuzFYIt.js → tr-2J8Mf.js} +1 -1
- package/web/app/immutable/chunks/{ycYrIJUe.js → ujhgjK1k.js} +1 -1
- package/web/app/immutable/chunks/{DcAxjOOO.js → v0ybYtGc.js} +1 -1
- package/web/app/immutable/chunks/{CnjoHxxj.js → viB2mzAd.js} +1 -1
- package/web/app/immutable/chunks/{DMS7qNz0.js → wIMcEpgB.js} +1 -1
- package/web/app/immutable/chunks/{B4bWz8TE.js → wUSGg9l9.js} +1 -1
- package/web/app/immutable/chunks/{C8dtRdbV.js → wl2qP2wF.js} +1 -1
- package/web/app/immutable/chunks/{Ujg0_O3U.js → yFcbscNn.js} +1 -1
- package/web/app/immutable/entry/app.PfV9Bd5g.js +4 -0
- package/web/app/immutable/entry/start.kviRYMjm.js +1 -0
- package/web/app/immutable/nodes/{0.D0qyvy-O.js → 0.N3QFhxpx.js} +1 -1
- package/web/app/immutable/nodes/{1.LQky-UK3.js → 1.Cuki-Q-c.js} +1 -1
- package/web/app/immutable/nodes/{10.Nhiduazn.js → 10.CzZBTiyD.js} +5 -5
- package/web/app/immutable/nodes/{11.DREbA2mH.js → 11.Cc53X5P2.js} +1 -1
- package/web/app/immutable/nodes/{12.DefTUxQP.js → 12.BpXDHhXi.js} +1 -1
- package/web/app/immutable/nodes/{13.BsGZPTKz.js → 13.CCKyw-_o.js} +1 -1
- package/web/app/immutable/nodes/{14.Dp_7Oh7e.js → 14.BD92xFv4.js} +3 -3
- package/web/app/immutable/nodes/{15.nRgFCYhv.js → 15.D2GMHiSb.js} +1 -1
- package/web/app/immutable/nodes/{16.rPw1YP79.js → 16.CVCm-nfj.js} +1 -1
- package/web/app/immutable/nodes/{17.DtGDCNtL.js → 17.CjKvJw8X.js} +1 -1
- package/web/app/immutable/nodes/{18.B0SMSp_6.js → 18.DDY8Eqsn.js} +1 -1
- package/web/app/immutable/nodes/{19.CsA9jU7R.js → 19.DvFJngD4.js} +2 -2
- package/web/app/immutable/nodes/2.B94-26jU.js +13 -0
- package/web/app/immutable/nodes/{20.D8ySW9zx.js → 20.CLsq1QLL.js} +1 -1
- package/web/app/immutable/nodes/{3.C-U8wBjc.js → 3.D7lbuuWp.js} +1 -1
- package/web/app/immutable/nodes/{4.DpFtuYyp.js → 4.YSZzuDIT.js} +1 -1
- package/web/app/immutable/nodes/5.ymicNL_Y.js +1 -0
- package/web/app/immutable/nodes/{6.CJXz9NV9.js → 6.CtS0PFqR.js} +1 -1
- package/web/app/immutable/nodes/{7.CwETavlw.js → 7.BVAyauMB.js} +1 -1
- package/web/app/immutable/nodes/{8.BvZJcCeO.js → 8.CHlBOO6u.js} +1 -1
- package/web/app/immutable/nodes/9.CNAqB0x1.js +14 -0
- package/web/app/immutable/workers/html-file-preview.worker-BfFljPK-.js +1 -0
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +19 -19
- package/web/app/immutable/assets/0.0X62H1ck.css +0 -1
- package/web/app/immutable/chunks/2mW3EYuj.js +0 -2
- package/web/app/immutable/chunks/3Mdoz-0Q.js +0 -1
- package/web/app/immutable/chunks/4Z3UfkCT.js +0 -19
- package/web/app/immutable/chunks/B99V9IVM.js +0 -1
- package/web/app/immutable/chunks/BOfUqw1E.js +0 -1
- package/web/app/immutable/chunks/BbxnpQro.js +0 -2
- package/web/app/immutable/chunks/BzqLLx6k.js +0 -1
- package/web/app/immutable/chunks/Cu02Aeaa.js +0 -1
- package/web/app/immutable/chunks/Cy2YclRs.js +0 -1
- package/web/app/immutable/chunks/D7WlKDTE.js +0 -1
- package/web/app/immutable/chunks/DHAYseFs.js +0 -1
- package/web/app/immutable/chunks/SfUr14xu.js +0 -1
- package/web/app/immutable/chunks/jELUCNms.js +0 -1
- package/web/app/immutable/chunks/lMUR9XnN.js +0 -1
- package/web/app/immutable/entry/app.BLa4aj6Q.js +0 -4
- package/web/app/immutable/entry/start.bo1Az5Sh.js +0 -1
- package/web/app/immutable/nodes/2.BmzudLkh.js +0 -13
- package/web/app/immutable/nodes/5.DFB1aYNI.js +0 -1
- package/web/app/immutable/nodes/9.CJeInbIt.js +0 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as S}from"./BdWqymET.js";import{aE as l}from"./3SdAC2_C.js";import{g as c}from"./
|
|
1
|
+
import{a as S}from"./BdWqymET.js";import{aE as l}from"./3SdAC2_C.js";import{g as c}from"./BfvZe-kN.js";import{p as g}from"./BWGnuS1v.js";import{d as I}from"./B0Z-1lwJ.js";import{dS as f}from"./BaujsV9k.js";import{Cp as u,m as y,Jv as o,h6 as A,vH as m,vI as N,vK as b}from"./tr-2J8Mf.js";import{g as W,n as h}from"./DwL1A1su.js";import{S as D,a as R,n as E}from"./COhRCR9P.js";import{n as O,o as v}from"./CPTZJWC9.js";const k="intent:onboarding-skip:v1";function P(e){return u.getItem(h(k,e))==="1"}function re(e){P(e)||u.setItem(h(k,e),"1")}function _(e){return e.connections?.hasReceivedList===!0&&P(W(e))}function F(e,a){return e.some(t=>t.id!==y&&t.id!==a&&t.status!=="Archived"&&t.status!=="Deleted")}function j(e,a,t=!1){return t||F(e,a)?"/":"/workspace/new"}function d(e,a){return j(f.select(e),a,_(e))}const se=Object.freeze(Object.defineProperty({__proto__:null,resolveWindowEmptyDestination:d},Symbol.toStringTag,{value:"Module"})),r=new S("WorkspaceNavigation");async function L(e){r.info(`[navigateToAgent] Navigating to agent: ${e}`);const t=l(g).params.id;if(!t){r.error("[navigateToAgent] No workspace ID found in current page params");return}const n=new URL(window.location.href);n.searchParams.set("drawerOpen","1"),n.searchParams.set("drawerType","agent"),n.searchParams.set("selectedAgent",e),n.searchParams.delete("selectedTerminal"),await c(n.toString(),{replaceState:!0}),o.dispatch(m(t,"agent",e))}async function C(e){r.info(`[navigateToTerminal] Navigating to terminal: ${e}`);const t=l(g).params.id;if(!t){r.error("[navigateToTerminal] No workspace ID found in current page params");return}const n=new URL(window.location.href),i=n.searchParams.get("drawerOpen")==="1",s=n.searchParams.get("drawerType")==="terminal";(!i||!s)&&n.searchParams.set("drawerOpen","1"),n.searchParams.set("drawerType","terminal"),n.searchParams.set("selectedTerminal",e),n.searchParams.delete("selectedAgent"),await c(n.toString(),{replaceState:!0}),o.dispatch(m(t,"terminal",e))}function $(e){return!e||!(e instanceof Element)?void 0:e.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0}async function p(e,a){r.info(`[navigateToNote] Navigating to note: ${e}`,a);const t=l(g),n=a?.workspaceId??t.params.id;if(!n){r.error("[navigateToNote] No workspace ID found in current page params");return}o.dispatch(b(n,e,{openInAdjacentPanel:a?.openInAdjacentPanel??!1,openInNewAdjacentPanel:a?.openInNewAdjacentPanel??!1,sourcePanelId:a?.sourcePanelId}))}async function U(e,a,t){r.info(`[navigateToFile] Navigating to file: ${e}${a?` (line ${a})`:""}`,t);const i=l(g).params.id;if(!i){r.error("[navigateToFile] No workspace ID found in current page params");return}o.dispatch(N(i,e,{line:a,openInAdjacentPanel:t?.openInAdjacentPanel??!1,sourcePanelId:t?.sourcePanelId}))}async function K(){r.info("[navigateToSpec] Navigating to workspace spec"),await p("spec")}async function M(){r.info("[closeDrawer] Closing drawer");const a=l(g).params.id;if(!a){r.error("[closeDrawer] No workspace ID found in current page params");return}const t=new URL(window.location.href);t.searchParams.set("drawerOpen","0"),t.searchParams.delete("selectedAgent"),t.searchParams.delete("selectedTerminal"),await c(t.toString(),{replaceState:!0}),o.dispatch(A(a))}async function B(){r.info("[clearMainContent] Clearing main content");const e=new URL(window.location.href);e.searchParams.set("mainContentType","empty"),e.searchParams.delete("selectedNoteId"),e.searchParams.delete("selectedFile"),e.searchParams.delete("line"),await c(e.toString(),{replaceState:!1})}async function H(e,a,t){r.info("[navigateToTask] Navigating to task",{noteId:e,taskPosition:a,taskText:t}),await p(e);const n=()=>{I("scroll-to-task",{noteId:e,taskPosition:a,taskText:t},{bubbles:!0}),r.debug("[navigateToTask] Dispatched scroll-to-task event",{noteId:e,taskPosition:a})},i=[100,300,600];for(const s of i)setTimeout(n,s)}async function G(e){r.info("[navigateToSettings] Navigating to settings",e);const a=new URL("/settings",window.location.origin),t=window.location.pathname.match(/^\/workspace\/([^/]+)/)?.[1],n=t==="new"?void 0:t,i=e?.workspaceId??n;if(e?.tab&&a.searchParams.set("tab",e.tab),e?.specialist&&a.searchParams.set("specialist",e.specialist),e?.view&&a.searchParams.set("view",e.view),i&&a.searchParams.set("workspaceId",i),e?.hash&&(a.hash=e.hash),typeof window<"u"&&window.location.pathname==="/settings"){if(e?.tab||e?.specialist||e?.view||e?.workspaceId){const s=new URL(window.location.href);e?.tab&&s.searchParams.set("tab",e.tab),e?.specialist&&s.searchParams.set("specialist",e.specialist),e?.view&&s.searchParams.set("view",e.view),e?.workspaceId&&s.searchParams.set("workspaceId",e.workspaceId),e?.hash&&(s.hash=e.hash),await c(s.toString(),{replaceState:!0});return}if(e?.hash){const s=`#${e.hash}`;window.location.hash===s&&(window.location.hash=""),window.location.hash=s;return}return}await E(a.pathname+a.search+a.hash)}function T(){const e=typeof sessionStorage>"u"?null:sessionStorage.getItem(D);if(e&&e!=="/"&&!R(e))return e;const a=w();return a?`/workspace/${a.id}`:d(o.state)}async function z(){const e=T();r.info("[navigateBackFromSettings] Navigating back to:",e),await O(e)}function w(e){return f.select(o.state).find(a=>a.id!==e&&a.status!=="Archived"&&a.status!=="Deleted")}async function Y(){const e=w();if(e){r.info("[navigateToFirstWorkspace] Showing workspace:",e.id),await v(e.id);return}const a=d(o.state);r.info("[navigateToFirstWorkspace] Navigating to:",a),await c(a)}async function J(e){const a=w(e);if(a){r.info("[navigateAfterWorkspaceRemoval] Showing workspace:",a.id),await v(a.id);return}const t=d(o.state,e);r.info("[navigateAfterWorkspaceRemoval] Navigating to:",t),await c(t)}const ie=Object.freeze(Object.defineProperty({__proto__:null,clearMainContent:B,closeDrawer:M,findSourcePanelId:$,getSettingsPreviousPath:T,navigateAfterWorkspaceRemoval:J,navigateBackFromSettings:z,navigateToAgent:L,navigateToFile:U,navigateToFirstWorkspace:Y,navigateToNote:p,navigateToSettings:G,navigateToSpec:K,navigateToTask:H,navigateToTerminal:C},Symbol.toStringTag,{value:"Module"}));export{U as a,Y as b,p as c,G as d,H as e,$ as f,d as g,ie as h,_ as i,z as n,re as r,se as w};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DA5opfEp.js","/app/immutable/chunks/tr-2J8Mf.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/DX-Wrapd.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CrD0jtXE.js","/app/immutable/chunks/C0QTy0Sy.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/EK6zOAHM.js","/app/immutable/chunks/BP3Sccje.js","/app/immutable/chunks/BaujsV9k.js","/app/immutable/chunks/U9jJmfYa.js","/app/immutable/chunks/CUkDMZwP.js","/app/immutable/chunks/bhKPSdq4.js","/app/immutable/chunks/7UPrdiE9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/B6S6VNu7.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DCRuihKm.js","/app/immutable/chunks/C7LIHk5_.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/L_tYoUCb.js","/app/immutable/chunks/CE7dsja4.js","/app/immutable/chunks/L4HdMFBq.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/DIFhl0he.js","/app/immutable/chunks/S845NCb3.js","/app/immutable/chunks/DwL1A1su.js","/app/immutable/chunks/DE7dSDHO.js","/app/immutable/chunks/BfvZe-kN.js","/app/immutable/chunks/BWGnuS1v.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/COhRCR9P.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/CPTZJWC9.js","/app/immutable/chunks/hHMYoFyG.js","/app/immutable/chunks/Bu13V5mO.js","/app/immutable/chunks/CC7to1B5.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{Jv as l,nX as k,nY as A,j4 as Re,ab as Be,i as m,rU as Pe,nK as We,nL as Oe,cM as Te,b0 as Y,g$ as Fe,vK as ue,F_ as Le,ic as Ke,G_ as Ve,Dv as Ne,bG as Q,q1 as fe,m as He,DN as De,u$ as Ue}from"./tr-2J8Mf.js";import{n as ye}from"./BmTMWrby.js";import{e as qe,bm as oe,cR as se,cU as Ge,b3 as xe,bn as Ye,A as $e}from"./BaujsV9k.js";import{d as je}from"./6Bqipt1r.js";import{h as O}from"./Dms_DO28.js";import{j as P}from"./eElW3aeh.js";import{bm as o,_ as $}from"./C0QTy0Sy.js";import{cF as Xe,bj as ze,cI as Je,cn as Qe,bp as Ze,d1 as en,d0 as nn,bY as tn,d3 as rn,ae as an,ac as on,ca as sn,ag as cn,b$ as dn,b8 as ln,aH as un}from"./U9jJmfYa.js";import{q as fn,n as gn,w as bn}from"./DCK8dPAL.js";import{K as pn,bD as mn,s as hn,B as kn,t as _n,x as wn}from"./p9X2tUBM.js";import{I as yn,z as In}from"./Bqd7fdCF.js";import{c as vn}from"./ChTqQfQN.js";import{aL as Sn}from"./DKHY8q_S.js";import{i as An}from"./CL3a4Hm1.js";import{a as Cn}from"./BdWqymET.js";import{f as h}from"./C6mS8uZB.js";import{l as S,m as En,f as ge}from"./CE7dsja4.js";import{k as Mn}from"./CrD0jtXE.js";import{g as Rn}from"./DwL1A1su.js";import{a as be}from"./B_LcgbLl.js";function Bn(e,n){return!e.daemonVersion||!n?!1:qe(e.daemonVersion,n)==="older"}function Pn(e,n,t){return!Bn(e,t)||e.updateSupported!==!0?!1:n?.includes(e.id)??!1}function Wn(e){return`machine-rail:update:${e}`}function On(e,n){const t=e?k(e,Wn(n)):void 0;return!!t&&t.phase!=="settled"}const Ut=l.createSelector(e=>e.machineRail?.enabled??!1),qt=l.createSelector(e=>!!e.machineRail?.enabled&&e.machineRail.machineIds.length>1),Gt=l.createSelector(e=>{const{machineIds:n,selectedId:t,pendingId:r,degradedIds:a}=e.machineRail,i=e.connections.windowBackendId,s=n.map(c=>{const d=k(e.connections.connections,c)??null,u=d?null:k(e.guestSessions.sessions,c)??null,f=u?e.guestSessions.connectedIds.includes(c)?"connected":c===r?"connecting":"disconnected":!d||d.status==="connecting"?"connecting":d.status==="connected"?"connected":"disconnected";return{id:c,record:d,guest:u,selected:i?c===i:c===t,own:c===i,status:f,offline:d!==null||u!==null?f!=="connected":!1,degraded:f==="connected"&&a.includes(c),updatable:d!==null&&Pn(d,e.connections.connectedIds,e.connections.pinnedVersion),updating:On(e.connections.workflows,c),pending:c===r&&c!==i}});return[...s.filter(c=>!c.guest),...s.filter(c=>c.guest)]}),xt=l.createSelector(e=>{const n=new Set(e.machineRail.machineIds);return A(e.connections.connections).filter(t=>!t.displayOnly&&t.daemonMode!=="node"&&!n.has(t.id))}),Yt=l.createSelector(e=>{const n=e.machineRail;if(!n?.enabled)return null;const t=r=>!k(e.connections.connections,r)&&!!e.guestSessions&&k(e.guestSessions.sessions,r)!==void 0;return ye(n.machineIds,n.selectedId,t)??""}),$t=l.createSelector(e=>{const n=new Set(e.machineRail.machineIds);return A(e.guestSessions.sessions).filter(t=>!n.has(t.id))}),jt=l.createSelector(e=>{const{enabled:n,selectedId:t}=e.machineRail;return!n||t===""||t===e.connections.windowBackendId});let pe=null;const Xt=l.createSelector(e=>{const n=k(e.connections.connections,e.connections.windowBackendId),t={enabled:e.machineRail?.enabled??!1,tint:je(n?.accent,n?.isLocal??!0),opaque:!(e.userPreferences?.shellTransparencyEnabled??!0),theme:`${e.theme?.name}:${e.theme?.activePresetId}:${e.theme?.hasCustomTheme}`},r=pe;return r&&r.enabled===t.enabled&&r.tint===t.tint&&r.opaque===t.opaque&&r.theme===t.theme?r:(pe=t,t)});function zt(e,n){const t=n.trim().toLowerCase();if(e==="github")return!t||t==="github.com"?"github.com":null;if(!t)return"gitlab.com";if(/[\s/@?#\\]/.test(t)||t.includes("://"))return null;try{const r=new URL(`https://${t}`);return!r.hostname||r.username||r.password||r.pathname!=="/"?null:r.host}catch{return null}}const Jt=l.createSelector(e=>e.nodes.paste),Qt=l.createSelector(e=>e.nodes.highlightId),Zt=l.createSelector(e=>e.userPreferences?.labsRemoteAgentsEnabled!==!0?"labs-off":e.remoteMachines?.supported!==!0?"backend-unsupported":e.remoteMachines.claimInvites===!0?null:"invites-unsupported"),er=l.createSelector(e=>e.userPreferences?.labsRemoteAgentsEnabled!==!0?"labs-off":e.remoteMachines?.supported===!0?null:"backend-unsupported"),nr=l.createSelector(e=>e.desktopControl),tr=l.createSelector(e=>e.desktopControl.osPermissions),rr=l.createSelector(e=>e.desktopControl.osPermissionsChecking===!0),ar=l.createSelector((e,n,t)=>e.desktopControl.byKey[Re(n,t)]),or=l.createSelector(e=>!e.workspaceEvents.subscriptionPending&&e.workspaceEvents.subscriptionGeneration>0),Tn=l.createSelector(e=>oe.select(e).manageHostMembers?se.select(e):null),sr=l.createSelector(e=>e.hostMembership),ir=l.createSelector(e=>A(e.hostMembership.members)),cr=l.createSelector(e=>A(e.hostMembership.invites)),Fn=l.createSelector(e=>{const{target:n,withheld:t}=e.hostMembership,r=Tn.select(e);return n&&!t&&r===n.context&&oe.select(e).authenticatedDevices?JSON.stringify([n.session,r]):null}),dr=l.createSelector(e=>{const n=Fn.select(e),t=e.hostMembership.presence;return n&&t.session===n?t:null}),lr=l.createSelector(e=>e.invitationAccountSearch),ur=l.createSelector(e=>A(e.invitationAccountSearch.results)),fr=l.createSelector(e=>Ge.select(e)?.capabilities.invitationAccountSearch===!0),gr=l.createSelector(e=>({backendId:Rn(e),connectionsReady:!e.connections||e.connections.hasReceivedList,model:e.model,providerSettings:e.providerSettings})),Ie=l.createSelector((e,n)=>k(e.settingsEvents.forms,n)),br=l.createSelector((e,n,t)=>{const r=Ie.select(e,n);return r?k(r.operations,t):void 0}),B=l.createSelector((e,n)=>{const t=k(e.settingsEvents.forms,n.formId);return t?.sessionId===n.sessionId?t:void 0}),pr=l.createSelector((e,n,t)=>{const r=B.select(e,n);return r?k(r.entries,t):void 0}),mr=l.createSelector((e,n)=>{const t=B.select(e,n);return Object.fromEntries((t?A(t.entries):[]).map(r=>[r.path,r]))}),Ln=l.createSelector((e,n,t)=>{const r=B.select(e,n);return r?k(r.operations,t):void 0}),hr=l.createSelector((e,n)=>{if(B.select(e,n)?.kind==="collaboration-machine-name"&&(!xe.select(e)||!Ye.select(e)||se.select(e)!==n.sessionId))return!1;const r=Ln.select(e,n,n.resource);return r?.requestId===n.requestId&&r.status==="pending"}),kr=l.createSelector((e,n)=>{const t=B.select(e,n);return t?A(t.operations).find(r=>r.error)?.error??"":""}),I=new Map;function _r(e,n,t){Z(e);const r={sessionId:n,requestIds:{},value:{token:"",qrDataUrl:""},receive:t};return I.set(e,r),()=>{I.get(e)===r&&Z(e)}}function wr(e){const n=I.get(e.formId);n?.sessionId===e.sessionId&&(e.resource==="save"&&(delete n.requestIds.load,delete n.requestIds.qr,n.value={...n.value,qrDataUrl:""},n.receive(n.value)),n.requestIds[e.resource]=e.requestId)}function yr(e,n){const t=I.get(e.formId);t?.sessionId!==e.sessionId||t.requestIds[e.resource]!==e.requestId||(t.value={...t.value,...n},t.receive(t.value))}function Ir(e){const n=I.get(e.formId);return n?.sessionId===e.sessionId?n.value.token:""}function Z(e,n){const t=I.get(e);!t||n!==void 0&&t.sessionId!==n||(I.delete(e),t.value={token:"",qrDataUrl:""},t.receive(t.value))}function vr(){for(const e of I.keys())Z(e)}function Sr(e){const n=I.get(e.formId);return n?.sessionId===e.sessionId?n.value.pairingUri??"":""}const Ar=O("personalDevices/pairingRequested"),Cr=l.createSelector(e=>oe.select(e).personalPairing?se.select(e):null);function Er(e,n,t){const r=P(n.isLocal?t:n.fingerprint);return r?e.find(a=>P(a.fingerprint)===r)??null:null}function Mr(e,n,t){const r=P(e.fingerprint);return r?P(t)===r?Be:n.find(a=>!a.isLocal&&P(a.fingerprint)===r)?.id??null:null}function Rr(e){return!e||e.state==="revoked"}const Kn=8;function Br(e,n){return n&&e.nodeProtocol!==void 0&&e.nodeProtocol<Kn}const q=new Map;function Pr(e,n,t){const r=q.get(e)??new Map;r.set(n,t),q.set(e,r)}function Wr(e,n){return q.get(e)?.get(n)??null}function Or(e){q.delete(e)}const Vn="workspace:";function w(e){return e.agentId??`${Vn}${e.wsId}`}function ee(e){if(!e)return!1;const n=e.status;return n===m.Completed||n===m.Error||n===m.Deleted?!1:e.isProcessing===!0||e.isStreaming===!0||e.isResponding===!0||n===m.Active||n===m.Processing}function Nn(e){const n=e.status;return n===m.Completed||n===m.Error||n===m.Deleted?!1:e.isProcessing===!0||e.isStreaming===!0||e.isResponding===!0||e.isWaitingOnTool===!0||e.activationState===$e.ACTIVATING||n===m.Active||n===m.Processing||n===m.Waiting}function ve(e){if(!e||e.status===m.Deleted)return null;const n=We(e)?.kind??null;return n==="blocker"?"blocker":Sn(e)?"question":n==="discussion"?"discussion":null}function ie(e){return ve(e)!==null}function Se(e){return e?.status===m.Error}function Ae(e){return e!==void 0&&e.status!==m.Deleted}function Hn(e){return!e||e.status===m.Deleted?!1:!Se(e)&&!ie(e)&&!Nn(e)}function me(e){if(!e)return 0;const n=new Date(e).getTime();return Number.isFinite(n)?n:0}function ne(e){if(!e)return 0;const n=Oe(e);return me(n!==null?n:e.lastActivity)}function Dn(e,n){return ne(n)-ne(e)}function Un(e,n){const t=new Map;for(const r of n){const a=ne(e.agentSessions.byAgentId[r.agentId]),i=t.get(r.wsId);(!i||a>i.time)&&t.set(r.wsId,{entry:r,time:a})}return[...t.values()].map(r=>r.entry)}function ce(e){return e.tabState.workspaceStacks.flat().flatMap(n=>{const t=k(e.workspace.workspaces,n);return t!==void 0&&Pe(t)?[t]:[]})}function qn(e){return new Map(ce(e).map((n,t)=>[n.id,t]))}function v(e,n,t,r="top-level"){return ce(e).flatMap(a=>{const i=e.workspaceAgents.byWorkspaceId[a.id],s=(r==="all"?i?.agentIds:i?.foregroundAgentIds)??[],c=[];for(const d of s){const u=String(d),f=e.agentSessions.byAgentId[u];f&&n(f,u)&&c.push({entry:{wsId:a.id,agentId:u},session:f})}return t&&c.sort((d,u)=>t(d.session,u.session)),c.map(d=>d.entry)})}function Gn(e){const n=ce(e).filter(s=>s.attention==="unread").map(s=>s.id),t=new Set(n),r=v(e,Ae).filter(s=>t.has(s.wsId)),a=new Map;for(const s of r){if(e.agentSessions.byAgentId[s.agentId]?.hasUnread!==!0)continue;const c=a.get(s.wsId)??[];c.push(s),a.set(s.wsId,c)}const i=new Map(Un(e,r).map(s=>[s.wsId,s]));return n.flatMap(s=>{const c=a.get(s);if(c!==void 0)return c.map(u=>({...u,clearsWorkspace:!1}));const d=i.get(s);return[d!==void 0?{...d,clearsWorkspace:!0}:{wsId:s,agentId:null,clearsWorkspace:!0}]})}function xn(){return An(yn.WINDOW.CYCLE_FOCUS)}const K=vn("HardwareConsoleActionKeyRegistry"),Yn=["overview","agents","context","changes","files"],j=["planning","agents-row","changes","review"],he=new Map;function b(e){const n=e.workspaceId;return typeof n!="string"||n.length===0||n===He?null:n}function te(e,n){return e.workspaceAgents.byWorkspaceId[n]?.activeAgentId??null}function $n(e,n){const r=(e.workspaceAgents.byWorkspaceId[n]?.agentIds??[]).some(c=>e.agentSessions.byAgentId[c]!==void 0),a=j.filter(c=>c!=="agents-row"||r),i=he.get(n)??-1,s=a.find(c=>j.indexOf(c)>i)??a[0];return he.set(n,j.indexOf(s)),s}function jn(e){const{state:n}=e,t=b(e),r=t===null?null:te(n,t);return r===null?null:String(r)}function W(e,n){return e.hardwareConsole.cycleScopeByFamily[n]}function Xn(e){return v(e,ee,Dn,W(e,"cycle-in-progress-agents"))}const zn={blocker:0,question:1,discussion:2,unread:3};function X(e){const n=Gn(e),t=v(e,ie,void 0,W(e,"cycle-attention-agents")),r={blocker:[],question:[],discussion:[]};for(const c of t){const d=ve(e.agentSessions.byAgentId[c.agentId]);d!==null&&r[d].push(c)}const a=new Map,i=[["blocker",r.blocker],["question",r.question],["discussion",r.discussion],["unread",n]],s=[];for(const[c,d]of i)for(const u of d){const f=w(u);a.has(f)||(a.set(f,zn[c]),s.push(u))}return{entries:s,rankByStopKey:a,attentionAgentIds:new Set(t.map(c=>c.agentId)),workspaceClearingWsIds:new Set(n.filter(c=>c.clearsWorkspace).map(c=>c.wsId))}}function Jn(e,n,t){e.dispatch(De(n,t)),e.dispatch(Ue(n,{agentId:t})),e.focusComposer(t)}const z=new Map;function re(e,n){return e[0]-n[0]||e[1]-n[1]||e[2]-n[2]}function Ce(e,n,t,r){const a=(r===null?void 0:t.get(r))??0,i=(d,u)=>[d,u>=a?0:1,u],s=d=>i(n(d),t.get(d.wsId)??0);return{ordered:e.map((d,u)=>({entry:d,index:u,key:s(d)})).sort((d,u)=>re(d.key,u.key)||d.index-u.index).map(d=>d.entry),keyOf:s,anchorTab:a}}function ae(e,n,t,r){const a=t(n),i=new Set(e.slice(e.indexOf(n)+1).filter(s=>s.wsId===n.wsId&&t(s)===a).map(w));return{entry:n,rank:a,laterOnTab:i,anchorWsId:r}}function Qn(e){const{entries:n,rankOf:t,tabIndex:r,cursor:a,currentWsId:i,focused:s}=e,c=i!==null&&r.has(i)?i:null,d=a===void 0?void 0:r.get(a.entry.wsId),u=a!==void 0&&d!==void 0&&(a.anchorWsId===null||r.has(a.anchorWsId))?a.anchorWsId:c,{ordered:f,keyOf:C,anchorTab:p}=Ce(n,t,r,u),E=g=>g.wsId===i&&(g.agentId===null||g.agentId===s);let _;if(a===void 0)_=f.findIndex(g=>!E(g));else{const g=w(a.entry);let M=f.findIndex(y=>w(y)===g);if(M===-1&&a.entry.agentId===null&&(M=f.findIndex(y=>y.wsId===a.entry.wsId&&t(y)===a.rank)),M!==-1)_=M+1;else if(d!==void 0){const y=d,F=[a.rank,y>=p?0:1,y];_=f.findIndex(de=>{const le=re(C(de),F);return le>0||le===0&&a.laterOnTab.has(w(de))})}else{const y=[a.rank,0,p];_=f.findIndex(F=>!E(F)&&re(C(F),y)>=0)}}const T=f[_===-1||_>=f.length?0:_];return{next:T,cursor:ae(f,T,t,u)}}const L=new Map,J=new Map;function R(e){return{id:e.id,get label(){return e.getLabel()},icon:e.icon,isAvailable({state:n}){return e.collect(n).length>0},getUnavailableHint(){return e.getEmptyHint()},execute(n){const{state:t}=n,r=(J.get(e.id)??0)+1;J.set(e.id,r);const a=e.collect(t);if(a.length===0)return;const i=e.rankOf?.(t)??(()=>0),s=L.get(e.id);L.delete(e.id);const c=s===void 0?-1:a.findIndex(g=>w(g)===s),d=jn(n);if(c===-1&&a.length===1&&(a[0].agentId!==null?a[0].agentId===d:a[0].wsId===b(n))){const g=b(n);z.set(e.id,ae(a,a[0],i,g)),a[0].agentId===null&&n.dispatch(fe(a[0].wsId)),n.showHint(e.getSingleCandidateHint());return}const f=qn(t),C=z.get(e.id);let p,E;if(c!==-1){p=a[c];const g=C!==void 0?C.anchorWsId:b(n),{ordered:M}=Ce(a,i,f,g);E=ae(M,p,i,g)}else({next:p,cursor:E}=Qn({entries:a,rankOf:i,tabIndex:f,cursor:C,currentWsId:b(n),focused:d}));const _=w(p);try{p.wsId!==b(n)&&n.showWorkspace(p.wsId).catch(g=>{K.warn("Failed to switch workspace for cycle step",{actionId:e.id,workspaceId:p.wsId,stopKey:_,error:g}),J.get(e.id)===r&&L.set(e.id,_)}),p.agentId!==null?Jn(n,p.wsId,p.agentId):n.dispatch(fe(p.wsId))}catch(g){throw L.set(e.id,_),g}z.set(e.id,E);const T=e.countRemaining?.(t,a,p)??a.length-1;n.dispatch(Q(e.getHudLabel?.(T)??e.getLabel()))}}}const Ee=[R({id:"cycle-workspace-agents",icon:on,getLabel:()=>o.hardwareConsole_actionKey_cycleWorkspaceAgents_label(),getEmptyHint:()=>o.hardwareConsole_actionKey_noAgents_message(),getSingleCandidateHint:()=>o.hardwareConsole_actionKey_noOtherAgents_message(),collect:e=>v(e,Ae)}),R({id:"cycle-in-progress-agents",icon:sn,getLabel:()=>o.hardwareConsole_actionKey_cycleInProgressAgents_label(),getEmptyHint:()=>o.hardwareConsole_actionKey_noInProgressAgents_message(),getSingleCandidateHint:()=>o.hardwareConsole_actionKey_noOtherInProgressAgents_message(),collect:Xn}),R({id:"cycle-attention-agents",icon:cn,getLabel:()=>o.hardwareConsole_actionKey_cycleAttentionAgents_label(),getEmptyHint:()=>o.hardwareConsole_actionKey_noAttentionAgents_message(),getSingleCandidateHint:()=>o.hardwareConsole_actionKey_noOtherAttentionAgents_message(),collect:e=>v(e,ie,void 0,W(e,"cycle-attention-agents"))}),R({id:"cycle-idle-agents",icon:dn,getLabel:()=>o.hardwareConsole_actionKey_cycleIdleAgents_label(),getEmptyHint:()=>o.hardwareConsole_actionKey_noIdleAgents_message(),getSingleCandidateHint:()=>o.hardwareConsole_actionKey_noOtherIdleAgents_message(),collect:e=>v(e,Hn,void 0,W(e,"cycle-idle-agents"))}),R({id:"cycle-unread-agents",icon:ln,getLabel:()=>o.hardwareConsole_actionKey_cycleUnreadAgents_label(),getEmptyHint:()=>o.hardwareConsole_actionKey_noUnreadAgents_message(),getSingleCandidateHint:()=>o.hardwareConsole_actionKey_noOtherUnreadAgents_message(),getHudLabel:e=>e===0?o.hardwareConsole_actionKey_cycleUnreadAgents_label():e===1?o.hardwareConsole_actionKey_cycleUnreadAgents_hudRemaining_one({count:e}):o.hardwareConsole_actionKey_cycleUnreadAgents_hudRemaining_many({count:e}),countRemaining:(e,n,t)=>{const{attentionAgentIds:r,workspaceClearingWsIds:a}=X(e),i=w(t);return n.filter(s=>w(s)===i?!1:s.agentId!==null&&r.has(s.agentId)||!a.has(s.wsId)?!0:s.wsId!==t.wsId).length},collect:e=>X(e).entries,rankOf:e=>{const{rankByStopKey:n}=X(e);return t=>n.get(w(t))??0}}),R({id:"cycle-failed-agents",icon:un,getLabel:()=>o.hardwareConsole_actionKey_cycleFailedAgents_label(),getEmptyHint:()=>o.hardwareConsole_actionKey_noFailedAgents_message(),getSingleCandidateHint:()=>o.hardwareConsole_actionKey_noOtherFailedAgents_message(),collect:e=>v(e,Se,void 0,W(e,"cycle-failed-agents"))}),{id:"stop-agent",get label(){return o.hardwareConsole_actionKey_stopAgent_label()},icon:Xe,isAvailable(e){const{state:n}=e,t=b(e);if(t===null)return!1;const r=te(n,t);return r!==null&&ee(n.agentSessions.byAgentId[r])},execute(e){const{state:n,dispatch:t}=e,r=b(e);if(r===null)return;const a=te(n,r);a===null||!ee(n.agentSessions.byAgentId[a])||(t(Te(a)),e.focusComposer(a))}},{id:"see-spec",get label(){return o.hardwareConsole_actionKey_seeSpec_label()},icon:ze,isAvailable(e){return b(e)!==null},execute(e){const{state:n,dispatch:t}=e,r=b(e);if(r===null)return;const a=Object.values(n.panelLayout.byWorkspaceId[r]?.panels??{});for(const i of a){const s=i.tabs.find(c=>c.id===i.activeTabId);if(s?.type==="note"&&s.noteId===Y){t(Fe(r,s.id,i.id));return}}if(a.length===1){t(ue(r,Y,{openInAdjacentPanel:!0,sourcePanelId:a[0].id}));return}t(ue(r,Y))}},{id:"toggle-sidebar-tabs",get label(){return o.hardwareConsole_actionKey_toggleSidebarTabs_label()},icon:Je,isAvailable(e){return b(e)!==null},execute(e){const{state:n,dispatch:t}=e,r=b(e);if(r===null)return;const a=n.sidebarNav.multiSelectTabOrder.length>0?n.sidebarNav.multiSelectTabOrder:[...Yn],i=n.sidebarNav.multiSelectSelectedTabIdsByWorkspaceId[r]??[],s=i.length===1?a.indexOf(i[0]):-1;t(Le(r,[a[(s+1)%a.length]]))}},{id:"new-agent",get label(){return o.hardwareConsole_actionKey_newAgent_label()},icon:Qe,isAvailable(e){return b(e)!==null},execute(e){const{dispatch:n}=e,t=b(e);t!==null&&n(Ke(t))}},{id:"new-workspace",get label(){return o.hardwareConsole_actionKey_newWorkspace_label()},icon:Ze,isAvailable(){return!0},execute({state:e,dispatch:n}){n(Ve(!e.sidebarNav.showCreateModal))}},{id:"switch-window-layouts",get label(){return o.hardwareConsole_actionKey_switchWindowLayouts_label()},icon:en,isAvailable(e){return b(e)!==null},execute(e){const{state:n,showHint:t}=e,r=b(e);if(r===null)return;const a=$n(n,r);Promise.all([$(()=>import("./DA5opfEp.js").then(i=>i.p),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),$(()=>import("./BP3Sccje.js"),__vite__mapDeps([13,14,10,6,8,3,1,2,4,5,7,9,11,15,16,17,18,19,20,21,22,23,24,25,26]),import.meta.url)]).then(([{getPanelLayoutManager:i},{applyContentPreset:s}])=>s(a,i(r),{workspaceId:r,containerWidth:window.innerWidth,containerHeight:window.innerHeight})).then(i=>{i||t(o.hardwareConsole_actionKey_switchWindowLayouts_notApplicable_hint())}).catch(i=>{K.error("Failed to apply layout preset",{presetId:a,wsId:r,error:i})})}},{id:"cycle-open-windows",get label(){return o.hardwareConsole_actionKey_cycleOpenWindows_label()},icon:nn,isAvailable(){return In()},execute(e){const n=e.state.machineRail;if(n?.enabled){const t=e.state.guestSessions?.sessions,r=ye(n.machineIds,n.selectedId,s=>!!t&&k(t,s)!==void 0);if(!r){e.showHint(o.hardwareConsole_actionKey_noOtherMachines_message());return}const a=e.state.connections?.connections,i=a?k(a,r):void 0;e.dispatch(Ne(r)),e.dispatch(Q(i?i.isLocal?fn():gn(i):r));return}xn().then(t=>{t?.cycled?e.dispatch(Q(o.hardwareConsole_actionKey_cycleOpenWindows_label())):e.showHint(o.hardwareConsole_actionKey_noOtherOpenWindows_message())}).catch(t=>{K.error("Failed to cycle open windows",{error:t})})}},{id:"push-to-talk",get label(){return o.hardwareConsole_actionKey_pushToTalk_label()},icon:tn,isAvailable(){return kn()},getUnavailableHint(){return o.hardwareConsole_ptt_unavailable_message()},execute(e){if(!wn()&&pn(e.state.voiceSettings)==="unavailable"){mn();return}hn(e)},executeUp(e){_n(e)}},{id:"close-tab",get label(){return o.hardwareConsole_actionKey_closeTab_label()},icon:rn,isAvailable(){return!0},execute(e){const n=window.location.pathname;$(async()=>{const{closeActiveTab:t}=await import("./L4HdMFBq.js");return{closeActiveTab:t}},__vite__mapDeps([27,28,11,6,29,30,1,2,3,4,5,7,8,9,10,31,32,33,12,34,35,36,37,14,15,16,17,18,19,20,21,22,23,24,25,26,38,39,40,41,42,43]),import.meta.url).then(({closeActiveTab:t})=>{t(n,e.navigate)===null&&e.showHint(o.hardwareConsole_actionKey_closeTab_nothingToClose_hint())}).catch(t=>{K.error("Failed to close the active tab",{error:t})})}},{id:"none",get label(){return o.hardwareConsole_actionKey_none_label()},icon:an,isAvailable(){return!1},execute(){}}];function Tr(e){const n=Ee.find(t=>t.id===e);if(!n)throw new Error(`Unknown action key action: ${e}`);return n}function Fr(e){return e.map(n=>{const t=n==="none"?null:Ee.find(r=>r.id===n)??null;return{icon:t?.icon??null,get label(){return t?.label??null}}})}const Zn=[{usagePage:1,usage:2},{usagePage:1,usage:1},{usagePage:1,usage:5}];function Lr(e){return e.length===0?"unknown":e.some(t=>Zn.some(r=>r.usagePage===t.usagePage&&r.usage===t.usage))||e.length>=5?"usb":"bluetooth"}const G=new Cn("HardwareConsoleCodexProbe"),et="KV_OAI_";function nt(e){if(typeof e!="object"||e===null)return null;const n=e.version;return typeof n=="string"?n:null}function tt(e){if(typeof e!="object"||e===null)return{batteryPercent:null,isCharging:!1};const n=e,t=n.battery;return{batteryPercent:typeof t=="number"&&Number.isFinite(t)?t:null,isCharging:n.is_charging===!0}}function rt(e){const n=e instanceof Error?e.message:String(e);return/method not found|-32601|404/i.test(n)}async function at(e){try{await e.call("v.oai.thstatus",[])}catch(n){return rt(n)?"unsupported-firmware":(G.warn("Codex-mode probe (v.oai.thstatus) failed",{error:String(n)}),"unknown")}try{const n=await e.call("fs.read",{file:"keymap.json"}),t=typeof n?.data=="string"?n.data:null;return t===null?"unknown":t.includes(et)?"ready":"no-codex-layer"}catch(n){return G.warn("Codex-layer probe (fs.read keymap.json) failed",{error:String(n)}),"unknown"}}async function Kr(e){const[n,t,r]=await Promise.all([e.call("sys.version").catch(a=>(G.warn("sys.version failed",{error:String(a)}),null)),e.call("device.status").catch(a=>(G.warn("device.status failed",{error:String(a)}),null)),at(e)]);return{firmwareVersion:nt(n),...tt(t),codexMode:r}}const Vr=["elevenlabs","openai"],V="voice.provider",x={elevenlabs:"voice.elevenlabs.apiKey",openai:"voice.openai.apiKey"},N="voice.openai.model",ot=["gpt-4o-transcribe","gpt-4o-mini-transcribe","whisper-1"],st="gpt-4o-transcribe",H="voice.language",it="",Nr=["en","zh","es","hi","ar","pt","fr","de","ja","ko","ru","it","nl","pl","tr","vi","id","th","sv","da","nb","fi","cs","el","he","hu","ro","uk"],D="voice.vocabulary",U="voice.workspaceVocabulary.maxTerms",ct=0,dt=100,lt=50;function ut(e){return typeof e=="number"&&Number.isInteger(e)&&e>=ct&&e<=dt}function ft(e){return e==="elevenlabs"||e==="openai"}function gt(e){return ot.includes(e)}function ke(e){return typeof e=="string"&&e.length>0}function bt(e){return Array.isArray(e)&&e.every(n=>typeof n=="string")?e:null}async function Hr(){const[e,n,t,r,a,i,s]=await Promise.all([h.settings.get(V),h.settings.get(x.elevenlabs),h.settings.get(x.openai),h.settings.get(D),h.settings.get(N),h.settings.get(H),h.settings.get(U)]);return{available:e!==null,provider:ft(e?.value)?e.value:"elevenlabs",keyConfigured:{elevenlabs:ke(n?.value),openai:ke(t?.value)},vocabulary:bt(r?.value),openaiModel:a===null?null:gt(a.value)?a.value:st,language:i===null?null:typeof i.value=="string"?i.value.trim().toLowerCase():it,workspaceVocabularyMaxTerms:s===null?null:ut(s.value)?s.value:lt}}async function Dr(e){if(!(await h.settings.update([{path:V,value:e}])).some(t=>t.path===V))throw new Error(`settings.update did not apply ${V}`)}async function Ur(e){if(!(await h.settings.update([{path:N,value:e}])).some(t=>t.path===N))throw new Error(`settings.update did not apply ${N}`)}async function qr(e){if(!(await h.settings.update([{path:H,value:e}])).some(t=>t.path===H))throw new Error(`settings.update did not apply ${H}`)}async function Gr(e){if(!(await h.settings.update([{path:D,value:e}])).some(t=>t.path===D))throw new Error(`settings.update did not apply ${D}`)}async function xr(e){if(!(await h.settings.update([{path:U,value:e}])).some(t=>t.path===U))throw new Error(`settings.update did not apply ${U}`)}async function Yr(e,n){const t=n.trim();if(!t)throw new Error("API key must not be empty");await h.settings.update([{path:x[e],value:t}])}async function $r(e){const n=x[e];if(await h.settings.reset(n)===null)throw new Error(`settings.reset failed for ${n}`)}const jr=["workspace-mcp"],Xr=/^[a-zA-Z0-9._-]+$/,zr=64,Jr=O("browserViewsLab/setRequested"),pt={macos:"macos",darwin:"macos",windows:"windows",win32:"windows",linux:"linux"};function mt(e){return e&&pt[e.trim().toLowerCase()]||null}function Qr(e,n){return mt(e.hostOs??n?.platform?.os)}const ht=new Set(["connected","disconnected"]);function kt(e){return e?.state!=="connected"||!e.capabilities?.resources?null:e.capabilities.capacity??null}function _t(e){return e?.state==="connected"?e.capabilities?.resources??null:null}function Me(e){return e&&ht.has(e.state)?e.capabilities:void 0}function Zr(e,n,t){if(e.providers)return e.providers.map(a=>({id:a.id,name:t(a.id)??a.displayName}));const r=Me(n);return r?r.providers.filter(bn).map(a=>({id:a.id,name:t(a.id)??a.id})):[]}function ea(e,n,t){if(t==="orchestrator")return[];const r=Me(e);return r?r.providers.filter(a=>a.visible!==!1&&a.status==="prerequisite-missing").map(a=>n(a.id)??a.id):[]}function na(e){return{macos:"macOS",windows:"Windows",linux:"Linux"}[e]}function ta(e,n){const{machine:t,backend:r}=n;switch(e.code){case"unsupported-backend":return o.remoteMachines_failure_unsupportedBackend_error({backend:r});case"same-machine":return o.remoteMachines_failure_sameMachine_error({machine:t});case"not-owner":return o.remoteMachines_failure_notOwner_error({machine:t});case"machine-not-connected":return o.remoteMachines_failure_notConnected_error({machine:t});case"listener-off":return o.remoteMachines_failure_listenerOff_error({machine:t});case"machine-update-required":return e.update==="backend"?o.remoteMachines_failure_updateBackend_error({machine:t,backend:r}):e.machineVersion&&e.backendVersion?o.remoteMachines_failure_updateMachineVersions_error({machine:t,machineVersion:e.machineVersion,backendVersion:e.backendVersion}):o.remoteMachines_failure_updateMachine_error({machine:t});case"machine-unreachable":{const a=e.unconfirmedStops?.length??0;if(a===0)return o.remoteMachines_failure_unreachable_error({machine:t,backend:r});const i=S(a);return a===1?o.remoteMachines_failure_unconfirmedStops_error_one({count:i,machine:t,backend:r}):o.remoteMachines_failure_unconfirmedStops_error_many({count:i,machine:t,backend:r})}case"machine-in-use":{const a=e.runningAgents??0;return a===1?o.remoteMachines_failure_inUse_error_one({count:S(a),machine:t}):o.remoteMachines_failure_inUse_error_many({count:S(a),machine:t})}case"machine-orchestrator":return o.remoteMachines_failure_orchestrator_error({machine:t,backend:r});case"failed":return o.remoteMachines_failure_generic_error({message:e.message??o.workspace_transfer_unknown_error()})}}function ra(e){return e.code==="machine-in-use"?"stop-agents":e.code==="machine-unreachable"&&(e.unconfirmedStops?.length??0)>0?"retry-stop-agents":null}function aa(e,n){switch(e.state){case"revoked":return o.remoteMachines_state_revoked_description({machine:n.machine});case"unreachable":return o.remoteMachines_state_unreachable_description(n);case"update-required":return o.remoteMachines_failure_updateMachine_error({machine:n.machine});default:return null}}function oa(e,n){switch(e.state){case"revoked":return{label:o.remoteMachines_state_revoked_label(),color:"red"};case"unreachable":return{label:o.remoteMachines_state_unreachable_label(),color:"amber"};case"update-required":return{label:o.remoteMachines_state_updateRequired_label(),color:"amber"};default:return{label:o.remoteMachines_state_available_label({backend:n}),color:"green"}}}function sa(e){return e===1?o.remoteMachines_agents_running_one({count:S(e)}):o.remoteMachines_agents_running_many({count:S(e)})}function _e(e,n){return o.remoteMachines_details_ofValue({used:e,total:n})}function ia(e){const n=kt(e),t=_t(e),r=[];return n&&r.push({label:o.remoteMachines_details_agents_label(),value:_e(S(n.runningAgents),S(n.agentCap))}),t?.cpuPercent!==void 0&&r.push({label:o.remoteMachines_details_cpu_label(),value:En(t.cpuPercent/100,{style:"percent",maximumFractionDigits:0})}),t&&r.push({label:o.remoteMachines_details_memory_label(),value:_e(ge(t.memoryUsedBytes),ge(t.memoryTotalBytes))}),r}function ca(e){return e.length===0?null:{label:o.remoteMachines_needsNode_label(),value:new Intl.ListFormat(Mn(),{style:"long",type:"conjunction"}).format(e)}}function da(e){if(!e)return!0;try{const n=new URL(e);return(n.protocol==="https:"||n.protocol==="http:")&&n.host.length>0}catch{return!1}}const wt=l.createSelector((e,n)=>{const t=B.select(e,n)?.values;return{enabled:t?.enabled===!0,persistedPort:typeof t?.persistedPort=="number"?t.persistedPort:5181,port:typeof t?.port=="number"?t.port:null,certFingerprint:typeof t?.certFingerprint=="string"?t.certFingerprint:"",localIps:Array.isArray(t?.localIps)?t.localIps:[],availableIps:Array.isArray(t?.availableIps)?t.availableIps:null,bindIps:Array.isArray(t?.bindIps)?t.bindIps:[],bindAddressSupported:t?.bindAddressSupported===!0,tunnelEnabled:t?.tunnelEnabled===!0,tunnelOnly:t?.tunnelOnly===!0,tunnelSupported:t?.tunnelSupported===!0,tcAddress:typeof t?.tcAddress=="string"?t.tcAddress:"",relaySupported:t?.relaySupported===!0,relayUrl:typeof t?.relayUrl=="string"?t.relayUrl:""}}),la=l.createSelector((e,n)=>wt.select(e,Ie.select(e,n)??{formId:n,sessionId:""})),ua=O("rtkSettings/requested"),fa=O("rtkSettings/installStarted"),ga=O("pushSettings/requested"),we=[{id:"dracula",label:"Dracula",previewColors:{dark:["#282a36","#f8f8f2","#bd93f9","#ff79c6"],light:["#f8f8f2","#282a36","#9580ff","#ff80bf"]},dark:{name:"Dracula",type:"dark",colors:{"editor.background":"#282a36","editor.foreground":"#f8f8f2","sideBar.background":"#21222c","sideBar.foreground":"#f8f8f2","editorWidget.background":"#282a36","editorWidget.foreground":"#f8f8f2","dropdown.background":"#282a36","dropdown.foreground":"#f8f8f2",focusBorder:"#6272a4","input.background":"#21222c","panel.border":"#44475a","button.background":"#bd93f9","button.foreground":"#282a36","badge.background":"#bd93f9","badge.foreground":"#282a36","list.activeSelectionBackground":"#44475a","list.activeSelectionForeground":"#f8f8f2","tab.inactiveBackground":"#21222c",descriptionForeground:"#6272a4",errorForeground:"#ff5555","terminal.background":"#282a36","terminal.foreground":"#f8f8f2","terminal.ansiBlack":"#21222c","terminal.ansiRed":"#ff5555","terminal.ansiGreen":"#50fa7b","terminal.ansiYellow":"#f1fa8c","terminal.ansiBlue":"#bd93f9","terminal.ansiMagenta":"#ff79c6","terminal.ansiCyan":"#8be9fd","terminal.ansiWhite":"#f8f8f2"}},light:{name:"Dracula Light",type:"light",colors:{"editor.background":"#f8f8f2","editor.foreground":"#282a36","sideBar.background":"#eaeaeb","sideBar.foreground":"#282a36","editorWidget.background":"#f8f8f2","editorWidget.foreground":"#282a36","dropdown.background":"#f8f8f2","dropdown.foreground":"#282a36",focusBorder:"#9580ff","input.background":"#eaeaeb","panel.border":"#d4d4d6","button.background":"#9580ff","button.foreground":"#f8f8f2","badge.background":"#9580ff","badge.foreground":"#f8f8f2","list.activeSelectionBackground":"#d4d4d6","list.activeSelectionForeground":"#282a36","tab.inactiveBackground":"#eaeaeb",descriptionForeground:"#6272a4",errorForeground:"#ff5555","terminal.background":"#f8f8f2","terminal.foreground":"#282a36","terminal.ansiBlack":"#282a36","terminal.ansiRed":"#e13535","terminal.ansiGreen":"#2a9f4a","terminal.ansiYellow":"#c4a000","terminal.ansiBlue":"#7c6dd8","terminal.ansiMagenta":"#e06cb0","terminal.ansiCyan":"#2aacbd","terminal.ansiWhite":"#f8f8f2"}}},{id:"nord",label:"Nord",previewColors:{dark:["#2e3440","#d8dee9","#88c0d0","#81a1c1"],light:["#eceff4","#2e3440","#5e81ac","#88c0d0"]},dark:{name:"Nord",type:"dark",colors:{"editor.background":"#2e3440","editor.foreground":"#d8dee9","sideBar.background":"#1b2029","sideBar.foreground":"#d8dee9","editorWidget.background":"#2e3440","editorWidget.foreground":"#d8dee9","dropdown.background":"#3b4252","dropdown.foreground":"#d8dee9",focusBorder:"#88c0d0","input.background":"#3b4252","panel.border":"#3b4252","button.background":"#88c0d0","button.foreground":"#2e3440","badge.background":"#88c0d0","badge.foreground":"#2e3440","list.activeSelectionBackground":"#3b4252","list.activeSelectionForeground":"#d8dee9","tab.inactiveBackground":"#2e3440",descriptionForeground:"#7b88a1",errorForeground:"#bf616a","terminal.background":"#2e3440","terminal.foreground":"#d8dee9","terminal.ansiBlack":"#3b4252","terminal.ansiRed":"#bf616a","terminal.ansiGreen":"#a3be8c","terminal.ansiYellow":"#ebcb8b","terminal.ansiBlue":"#81a1c1","terminal.ansiMagenta":"#b48ead","terminal.ansiCyan":"#88c0d0","terminal.ansiWhite":"#e5e9f0"}},light:{name:"Nord Light",type:"light",colors:{"editor.background":"#eceff4","editor.foreground":"#2e3440","sideBar.background":"#e5e9f0","sideBar.foreground":"#2e3440","editorWidget.background":"#eceff4","editorWidget.foreground":"#2e3440","dropdown.background":"#eceff4","dropdown.foreground":"#2e3440",focusBorder:"#5e81ac","input.background":"#e5e9f0","panel.border":"#d8dee9","button.background":"#5e81ac","button.foreground":"#eceff4","badge.background":"#5e81ac","badge.foreground":"#eceff4","list.activeSelectionBackground":"#d8dee9","list.activeSelectionForeground":"#2e3440","tab.inactiveBackground":"#e5e9f0",descriptionForeground:"#7b88a1",errorForeground:"#bf616a","terminal.background":"#eceff4","terminal.foreground":"#2e3440","terminal.ansiBlack":"#2e3440","terminal.ansiRed":"#bf616a","terminal.ansiGreen":"#a3be8c","terminal.ansiYellow":"#d08770","terminal.ansiBlue":"#5e81ac","terminal.ansiMagenta":"#b48ead","terminal.ansiCyan":"#88c0d0","terminal.ansiWhite":"#e5e9f0"}}},{id:"rose-pine",label:"Rosé Pine",previewColors:{dark:["#191724","#e0def4","#c4a7e7","#ebbcba"],light:["#faf4ed","#575279","#907aa9","#d7827e"]},dark:{name:"Rosé Pine",type:"dark",colors:{"editor.background":"#191724","editor.foreground":"#e0def4","sideBar.background":"#1f1d2e","sideBar.foreground":"#e0def4","editorWidget.background":"#191724","editorWidget.foreground":"#e0def4","dropdown.background":"#1f1d2e","dropdown.foreground":"#e0def4",focusBorder:"#c4a7e7","input.background":"#1f1d2e","panel.border":"#26233a","button.background":"#c4a7e7","button.foreground":"#191724","badge.background":"#c4a7e7","badge.foreground":"#191724","list.activeSelectionBackground":"#26233a","list.activeSelectionForeground":"#e0def4","tab.inactiveBackground":"#1f1d2e",descriptionForeground:"#908caa",errorForeground:"#eb6f92","terminal.background":"#191724","terminal.foreground":"#e0def4","terminal.ansiBlack":"#26233a","terminal.ansiRed":"#eb6f92","terminal.ansiGreen":"#9ccfd8","terminal.ansiYellow":"#f6c177","terminal.ansiBlue":"#31748f","terminal.ansiMagenta":"#c4a7e7","terminal.ansiCyan":"#9ccfd8","terminal.ansiWhite":"#e0def4"}},light:{name:"Rosé Pine Dawn",type:"light",colors:{"editor.background":"#faf4ed","editor.foreground":"#575279","sideBar.background":"#f2e9e1","sideBar.foreground":"#575279","editorWidget.background":"#faf4ed","editorWidget.foreground":"#575279","dropdown.background":"#faf4ed","dropdown.foreground":"#575279",focusBorder:"#907aa9","input.background":"#f2e9e1","panel.border":"#dfdad9","button.background":"#907aa9","button.foreground":"#faf4ed","badge.background":"#907aa9","badge.foreground":"#faf4ed","list.activeSelectionBackground":"#dfdad9","list.activeSelectionForeground":"#575279","tab.inactiveBackground":"#f2e9e1",descriptionForeground:"#9893a5",errorForeground:"#b4637a","terminal.background":"#faf4ed","terminal.foreground":"#575279","terminal.ansiBlack":"#575279","terminal.ansiRed":"#b4637a","terminal.ansiGreen":"#56949f","terminal.ansiYellow":"#ea9d34","terminal.ansiBlue":"#286983","terminal.ansiMagenta":"#907aa9","terminal.ansiCyan":"#56949f","terminal.ansiWhite":"#f2e9e1"}}},{id:"tokyo-night",label:"Tokyo Night",previewColors:{dark:["#1a1b26","#a9b1d6","#7aa2f7","#bb9af7"],light:["#d5d6db","#343b58","#34548a","#5a4a78"]},dark:{name:"Tokyo Night",type:"dark",colors:{"editor.background":"#1a1b26","editor.foreground":"#a9b1d6","sideBar.background":"#1f2335","sideBar.foreground":"#a9b1d6","editorWidget.background":"#1a1b26","editorWidget.foreground":"#a9b1d6","dropdown.background":"#1f2335","dropdown.foreground":"#a9b1d6",focusBorder:"#7aa2f7","input.background":"#1f2335","panel.border":"#292e42","button.background":"#7aa2f7","button.foreground":"#1a1b26","badge.background":"#7aa2f7","badge.foreground":"#1a1b26","list.activeSelectionBackground":"#292e42","list.activeSelectionForeground":"#a9b1d6","tab.inactiveBackground":"#1f2335",descriptionForeground:"#565f89",errorForeground:"#f7768e","terminal.background":"#1a1b26","terminal.foreground":"#a9b1d6","terminal.ansiBlack":"#414868","terminal.ansiRed":"#f7768e","terminal.ansiGreen":"#9ece6a","terminal.ansiYellow":"#e0af68","terminal.ansiBlue":"#7aa2f7","terminal.ansiMagenta":"#bb9af7","terminal.ansiCyan":"#7dcfff","terminal.ansiWhite":"#c0caf5"}},light:{name:"Tokyo Night Light",type:"light",colors:{"editor.background":"#d5d6db","editor.foreground":"#343b58","sideBar.background":"#cbccd1","sideBar.foreground":"#343b58","editorWidget.background":"#d5d6db","editorWidget.foreground":"#343b58","dropdown.background":"#d5d6db","dropdown.foreground":"#343b58",focusBorder:"#34548a","input.background":"#cbccd1","panel.border":"#c0c1c6","button.background":"#34548a","button.foreground":"#d5d6db","badge.background":"#34548a","badge.foreground":"#d5d6db","list.activeSelectionBackground":"#c0c1c6","list.activeSelectionForeground":"#343b58","tab.inactiveBackground":"#cbccd1",descriptionForeground:"#6a6e82",errorForeground:"#8c4351","terminal.background":"#d5d6db","terminal.foreground":"#343b58","terminal.ansiBlack":"#343b58","terminal.ansiRed":"#8c4351","terminal.ansiGreen":"#33635c","terminal.ansiYellow":"#8f5e15","terminal.ansiBlue":"#34548a","terminal.ansiMagenta":"#5a4a78","terminal.ansiCyan":"#0f4b6e","terminal.ansiWhite":"#d5d6db"}}},{id:"solarized",label:"Solarized",previewColors:{dark:["#002b36","#839496","#268bd2","#2aa198"],light:["#fdf6e3","#657b83","#268bd2","#2aa198"]},dark:{name:"Solarized Dark",type:"dark",colors:{"editor.background":"#002b36","editor.foreground":"#839496","sideBar.background":"#001e26","sideBar.foreground":"#839496","editorWidget.background":"#002b36","editorWidget.foreground":"#839496","dropdown.background":"#002b36","dropdown.foreground":"#839496",focusBorder:"#268bd2","input.background":"#001e26","panel.border":"#073642","button.background":"#268bd2","button.foreground":"#fdf6e3","badge.background":"#268bd2","badge.foreground":"#fdf6e3","list.activeSelectionBackground":"#073642","list.activeSelectionForeground":"#839496","tab.inactiveBackground":"#001e26",descriptionForeground:"#586e75",errorForeground:"#dc322f","terminal.background":"#002b36","terminal.foreground":"#839496","terminal.ansiBlack":"#073642","terminal.ansiRed":"#dc322f","terminal.ansiGreen":"#859900","terminal.ansiYellow":"#b58900","terminal.ansiBlue":"#268bd2","terminal.ansiMagenta":"#d33682","terminal.ansiCyan":"#2aa198","terminal.ansiWhite":"#eee8d5"}},light:{name:"Solarized Light",type:"light",colors:{"editor.background":"#fdf6e3","editor.foreground":"#657b83","sideBar.background":"#EDE8D4","sideBar.foreground":"#657b83","editorWidget.background":"#fdf6e3","editorWidget.foreground":"#657b83","dropdown.background":"#fdf6e3","dropdown.foreground":"#657b83",focusBorder:"#268bd2","input.background":"#eee8d5","panel.border":"#eee8d5","button.background":"#268bd2","button.foreground":"#fdf6e3","badge.background":"#268bd2","badge.foreground":"#fdf6e3","list.activeSelectionBackground":"#eee8d5","list.activeSelectionForeground":"#657b83","tab.inactiveBackground":"#eee8d5",descriptionForeground:"#93a1a1",errorForeground:"#dc322f","terminal.background":"#fdf6e3","terminal.foreground":"#657b83","terminal.ansiBlack":"#073642","terminal.ansiRed":"#dc322f","terminal.ansiGreen":"#859900","terminal.ansiYellow":"#b58900","terminal.ansiBlue":"#268bd2","terminal.ansiMagenta":"#d33682","terminal.ansiCyan":"#2aa198","terminal.ansiWhite":"#eee8d5"}}},{id:"github",label:"GitHub",previewColors:{dark:["#0d1117","#e6edf3","#58a6ff","#bc8cff"],light:["#ffffff","#24292f","#0969da","#8250df"]},dark:{name:"GitHub Dark",type:"dark",colors:{"editor.background":"#0d1117","editor.foreground":"#e6edf3","sideBar.background":"#010409","sideBar.foreground":"#e6edf3","editorWidget.background":"#0d1117","editorWidget.foreground":"#e6edf3","dropdown.background":"#0d1117","dropdown.foreground":"#e6edf3",focusBorder:"#58a6ff","input.background":"#010409","panel.border":"#21262d","button.background":"#58a6ff","button.foreground":"#0d1117","badge.background":"#58a6ff","badge.foreground":"#0d1117","list.activeSelectionBackground":"#21262d","list.activeSelectionForeground":"#e6edf3","tab.inactiveBackground":"#010409",descriptionForeground:"#8b949e",errorForeground:"#f85149","terminal.background":"#0d1117","terminal.foreground":"#e6edf3","terminal.ansiBlack":"#484f58","terminal.ansiRed":"#ff7b72","terminal.ansiGreen":"#3fb950","terminal.ansiYellow":"#d29922","terminal.ansiBlue":"#58a6ff","terminal.ansiMagenta":"#bc8cff","terminal.ansiCyan":"#39d2c0","terminal.ansiWhite":"#b1bac4"}},light:{name:"GitHub Light",type:"light",colors:{"editor.background":"#ffffff","editor.foreground":"#24292f","sideBar.background":"#f6f8fa","sideBar.foreground":"#24292f","editorWidget.background":"#ffffff","editorWidget.foreground":"#24292f","dropdown.background":"#ffffff","dropdown.foreground":"#24292f",focusBorder:"#0969da","input.background":"#f6f8fa","panel.border":"#d0d7de","button.background":"#0969da","button.foreground":"#ffffff","badge.background":"#0969da","badge.foreground":"#ffffff","list.activeSelectionBackground":"#ddf4ff","list.activeSelectionForeground":"#24292f","tab.inactiveBackground":"#f6f8fa",descriptionForeground:"#57606a",errorForeground:"#cf222e","terminal.background":"#ffffff","terminal.foreground":"#24292f","terminal.ansiBlack":"#24292f","terminal.ansiRed":"#cf222e","terminal.ansiGreen":"#116329","terminal.ansiYellow":"#4d2d00","terminal.ansiBlue":"#0969da","terminal.ansiMagenta":"#8250df","terminal.ansiCyan":"#1b7c83","terminal.ansiWhite":"#6e7781"}}},{id:"high-contrast",label:"High Contrast",previewColors:{dark:["#000000","#ffffff","#60a5fa","#f87171"],light:["#ffffff","#111111","#2563eb","#dc2626"]},dark:{name:"High Contrast Dark",type:"dark",colors:{"editor.background":"#000000","editor.foreground":"#ffffff","sideBar.background":"#111111","sideBar.foreground":"#ffffff","editorWidget.background":"#000000","editorWidget.foreground":"#ffffff","dropdown.background":"#000000","dropdown.foreground":"#ffffff",focusBorder:"#60a5fa","input.background":"#0a0a0a","panel.border":"#6b7280","button.background":"#60a5fa","button.foreground":"#000000","badge.background":"#60a5fa","badge.foreground":"#000000","list.activeSelectionBackground":"#1e3a5f","list.activeSelectionForeground":"#ffffff","tab.inactiveBackground":"#111111",descriptionForeground:"#d1d5db",errorForeground:"#f87171","terminal.background":"#000000","terminal.foreground":"#ffffff","terminal.ansiBlack":"#4b5563","terminal.ansiRed":"#f87171","terminal.ansiGreen":"#4ade80","terminal.ansiYellow":"#facc15","terminal.ansiBlue":"#60a5fa","terminal.ansiMagenta":"#c084fc","terminal.ansiCyan":"#22d3ee","terminal.ansiWhite":"#ffffff"}},light:{name:"High Contrast Light",type:"light",colors:{"editor.background":"#ffffff","editor.foreground":"#111111","sideBar.background":"#ededed","sideBar.foreground":"#111111","editorWidget.background":"#ffffff","editorWidget.foreground":"#111111","dropdown.background":"#ffffff","dropdown.foreground":"#111111",focusBorder:"#2563eb","input.background":"#f5f5f5","panel.border":"#4b5563","button.background":"#2563eb","button.foreground":"#ffffff","badge.background":"#2563eb","badge.foreground":"#ffffff","list.activeSelectionBackground":"#dbeafe","list.activeSelectionForeground":"#111111","tab.inactiveBackground":"#ededed",descriptionForeground:"#374151",errorForeground:"#dc2626","terminal.background":"#ffffff","terminal.foreground":"#111111","terminal.ansiBlack":"#111111","terminal.ansiRed":"#dc2626","terminal.ansiGreen":"#15803d","terminal.ansiYellow":"#a16207","terminal.ansiBlue":"#2563eb","terminal.ansiMagenta":"#7c3aed","terminal.ansiCyan":"#0e7490","terminal.ansiWhite":"#e5e7eb"}}}];function yt(){const e=new Map(be.map(t=>[t.id,t.label])),n=new Map(we.map(t=>[t.id,t.label]));for(const{id:t,label:r}of we)if(e.get(t)!==r)throw new Error(`Theme preset ${t} (${r}) is missing from the shared manifest`);for(const{id:t,label:r}of be)if(n.get(t)!==r)throw new Error(`Theme preset manifest entry ${t} (${r}) is missing from renderer presets`)}yt();export{ua as $,Ee as A,na as B,kt as C,ea as D,Qr as E,Zr as F,Me as G,_t as H,ca as I,Ar as J,Kr as K,ga as L,zr as M,Wn as N,Wr as O,Sr as P,Ir as Q,jr as R,yr as S,_r as T,oa as U,Nr as V,ta as W,ra as X,aa as Y,Pr as Z,fa as _,Xr as a,sa as a0,Yr as a1,nr as a2,ar as a3,or as a4,tr as a5,rr as a6,Qt as a7,cr as a8,ir as a9,hr as aA,gr as aB,wt as aC,la as aD,ie as aE,Jr as aF,qr as aG,Ur as aH,Dr as aI,Gr as aJ,xr as aK,we as aL,Tn as aa,sr as ab,dr as ac,Fn as ad,ur as ae,lr as af,fr as ag,jt as ah,xt as ai,Ut as aj,$t as ak,Gt as al,qt as am,Yt as an,Zt as ao,Jt as ap,er as aq,Cr as ar,Xt as as,B as at,Ie as au,mr as av,pr as aw,kr as ax,Ln as ay,br as az,it as b,ot as c,Vr as d,dt as e,ct as f,Fr as g,wr as h,Rr as i,Pn as j,zt as k,vr as l,Or as m,$r as n,Z as o,Mr as p,xn as q,Tr as r,Lr as s,Bn as t,da as u,Hr as v,Er as w,ia as x,Br as y,mt as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Ul=Object.defineProperty;var jl=(r,t,a)=>t in r?Ul(r,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[t]=a;var pa=(r,t,a)=>jl(r,typeof t!="symbol"?t+"":t,a);import{t as pt,bo as g,bw as vt,b as ht,bm as d,bq as Ea,bs as tr,br as Vl,bp as vn}from"./3Mdoz-0Q.js";import{ai as Ga,bs as _t,ca as Xt,aD as e,bH as D,ay as fe,bS as A,a7 as St,W as c,a5 as V,bA as F,bn as bt,c9 as n,bV as ue,aA as m,b_ as $,aj as xr,aB as I,be as Cr,b$ as Pr,bO as Q,bf as rr,c0 as Ia,bl as oe,bj as ja,c6 as Gl,bo as nn,br as Zr,am as Da,ax as Ba,bk as as,aw as pn,bz as ns,cb as Fn,c5 as Mn,aC as Ir,cd as vo,bv as Kl}from"./3SdAC2_C.js";import{i as O}from"./BdqQb89H.js";import{g as kr,e as sa,p as ms,i as Ha,I as Zl,h as eo,X as pi,o as Ql}from"./Bj3DquZA.js";import{n as Kt,l as On,c as Ya,g as rn,s as ks,k as ss,S as Xl}from"./C4w1ocT0.js";import{s as J,f as Fe,g as hn,c as It,e as Qt,b as _n,p as Yl,S as Jl,C as ed}from"./kR4OBGp8.js";import{b as ea}from"./Dn334wJv.js";import{f as st,ae as to,a_ as td}from"./yF7QjJ_G.js";import{J as rd,O as ad,Q as Is}from"./CWzES__t.js";import"./SfUr14xu.js";import"./g4HdeOyY.js";import"./BqvIfFJz.js";import{s as Ma,k as vi}from"./BOfUqw1E.js";import{F as Bt,a4 as zs,bg as ka,cK as ps,au as hi,aZ as _i,aK as nd,c9 as sd,a6 as os,aN as od,cN as id,cM as ld,a3 as vs,aC as is,aw as hs,I as ho,aj as dd,bu as cd,aS as ud,aX as fd,bJ as gd,ao as md,bk as bi,cC as pd,aP as _o,c0 as Ss,aI as Hn,cW as vd,cb as hd,bn as _d,b as bd,cp as yd,ag as wd,ba as Ts,cr as wn,cF as xd,az as kd,c6 as Id,d3 as Sd}from"./BQ64OnCJ.js";import{C as yi,A as Td,o as Cd}from"./jPkbSYRO.js";import{b as Cs,V as bo}from"./DhnxjslI.js";import{A as wi}from"./CzLuqZqF.js";import{bZ as xi,aj as Md,j as Kn,a4 as Ws,al as ls,E as Ad,au as Zn,aP as Pd,aS as yo}from"./inhLOPTf.js";import{t as an,o as Rd}from"./DAsc1V4f.js";import{ch as Qn,aO as qn,d2 as ki,d4 as Va,c6 as _s,q as Nd,cX as Ii,d1 as bs,d0 as Si,c_ as Ti,n as Ca,al as Ed,am as $d,aJ as Ld,z as Od,V as qd,a3 as wo,D as Ci,e4 as Dd,aF as Bd,ak as Fd,r as zd,C as Ms,ag as Wd,U as xn,e2 as Hd,ab as Ud,k as xo,u as jd,Z as Vd,v as Gd,i as Kd,g as As,f as ko,a0 as Zd,$ as Qd,a9 as Xd,x as Mi,y as Ai,l as Pi,j as Yd,s as Jd,a as ec,d5 as tc,ae as rc,e3 as ac,L as nc,F as sc,a2 as Io,bq as oc,av as ic}from"./E8rxDAT1.js";import{Jv as mt,o_ as lc,tP as Xn,nP as So,vI as Ri,vK as Ni,s0 as dc,yH as ds,u$ as Ei,nK as $i,bq as En,nX as cc,nY as uc,yI as fc,qy as gc,tj as mc,vB as Li,nJ as pc,mO as vc,m as hc,z9 as _c,z6 as bc,z8 as yc}from"./DmuzFYIt.js";import{a3 as wc,y as Ps,a1 as xc,O as Rs,W as kc,$ as Ic,k as Sc,p as kn,P as un,q as Tc,G as Cc,v as Mc,t as Ac,M as Ns,K as Pc,z as Rc,L as Nc,_ as An,U as Un,N as To,n as Co,E as Ec,c as Es,F as Mo,B as $c,w as Ao,J as Pn,Q as Lc,H as Oc,j as qc,R as Dc,T as Bc,A as Fc,g as zc,b as Wc,D as Hc,f as Uc,e as jc,a as Vc,C as Gc,i as Kc,d as Hs,V as Oi,a4 as Zc,u as Qc,l as Xc}from"./toxSFGnz.js";import{i as Yc,e as Jc}from"./ByHhzwUN.js";import{g as $s}from"./B5aYN90J.js";import{M as In,C as Rn}from"./BHq6uyQn.js";import{C as Po}from"./yrTkKoBE.js";import"./BOnuoCKB.js";import{P as eu}from"./8k-S4TgT.js";import"./D366u1LV.js";import{c as qi}from"./ChTqQfQN.js";import{S as tu}from"./CRUti2QR.js";import{D as Ro,M as ru}from"./CJiiUUa9.js";import{b as au,s as en,c as cs}from"./BJZ-AKM7.js";import{O as Yn,y as Ls,E as Os,B as qs,N as nu,m as su,l as ou,k as iu,d as Dn,C as No,f as lu,e as du,g as cu}from"./BFly3ws-.js";import{a as Di,s as Eo}from"./BsieX9dN.js";import{f as uu}from"./BdWqymET.js";import{c as na}from"./BzqLLx6k.js";import{a as fu,k as Bi,h as ro,q as Fi,l as wr}from"./ZYFxZ-3Z.js";import{P as gu}from"./CBw6a9pd.js";import{r as Ds,q as Bs,B as $o,i as mu}from"./ajSGSfsK.js";import{R as zi,C as ys,m as pu,h as vu,g as hu,i as Lo,P as _u}from"./KkEpTlxU.js";import"./UxmdIyM3.js";import{c as bu,s as yu}from"./CIzhESxA.js";import{h as gn}from"./C81BxYgH.js";import{b as wu,a as Wi}from"./knotK2ne.js";import{P as Hi}from"./ycYrIJUe.js";import{B as xu}from"./CKZotIw1.js";import{o as Ui,r as ku,e as Iu}from"./D43zGYhv.js";import{o as ji}from"./0UjerFq2.js";import{A as Jn,b as Vi}from"./Ctra6UYY.js";import{g as ao}from"./DVrV2vUr.js";import{a as Su,M as Tu}from"./gpDHnGWw.js";import{a as Gi}from"./4nji41bN.js";import{E as Cu,n as Mu}from"./D2ucd7-d.js";import{t as Tr}from"./C-BsEdGZ.js";import{c as Sn}from"./Dcys5Bs9.js";import{A as Au}from"./DhaMRyeZ.js";import{f as Pu,d as Ru}from"./vFkcanNO.js";import{ad as Nu,P as Eu,Z as $u,L as Oo,Y as Lu,w as Ou,a0 as Ki,$ as Zi}from"./Cwtu6VYt.js";import{a as qu}from"./CC7to1B5.js";import{k as Du}from"./rlD8zTU3.js";import{S as Bu}from"./BU7_DTqK.js";import{u as Fu,a as zu,c as qo,S as Wu}from"./D9tVylVS.js";import{T as us}from"./-kDxv2do.js";import"./B_uN9rMf.js";import{g as Hu,a as Uu}from"./Cvrwd8gY.js";import{I as ju,R as Vu,q as Gu}from"./-38fvEUf.js";import{b as Qi}from"./l7z39TjX.js";import{b as Do}from"./goTpbPhD.js";import{ah as Ua,n as Ku}from"./B3dKFpC0.js";import{c as Zu}from"./DB3Bmw2z.js";import{r as Bo}from"./Bv4WoH6n.js";function Qu(r){if(!r||typeof r!="object")return null;const t=r;if(t.type!=="script_monitor_wake"||t.source!=="system")return null;const{scriptName:a,scriptId:s,runId:o,monitorId:i,workspaceId:l,reason:u}=t;if(typeof a!="string"||typeof s!="string"||!s||typeof o!="string"||!o||typeof i!="string"||!i||typeof l!="string"||!l||u!=="finished"&&u!=="ttl-expired"&&u!=="output-match"&&u!=="line-count")return null;const h=t.trigger;return{scriptName:a,scriptId:s,runId:o,monitorId:i,workspaceId:l,reason:u,...u==="output-match"&&typeof h?.matchedLine=="string"?{matchedLine:h.matchedLine}:{}}}function Xu(r){return r?.type==="script_monitor_wake"&&!("remoteAgentId"in r)}function Yu(r,t,a,s=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const o=r.messageMetadata?.fromPrincipalId??r.author?.principalId,i=Nu(r)&&r.author?.principalId!==null&&o===t;return{edit:i,remove:i||t===a||s,sendNow:(i||s)&&!Xi(r)}}function Tn(r,t){if(t)return r.find(a=>a.editing&&a.editingMessageId?a.editingMessageId===t:a.id===t)}function Xi(r){return Xu(r.messageMetadata)&&typeof r.messageMetadata?.monitorId=="string"}function Fo(r,t=Date.now()){const a=r.messageMetadata,s=a?.fromPrincipalId,o=a&&Object.hasOwn(a,"humanAuthor")&&!(typeof s=="string"&&s.length>0),i=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!i&&!o&&!Xi(r)}const Cb="pl-3.5! pr-2!";var Ju=I('<span class="tile-remove-slot svelte-d8pwpf"><!></span>'),zo=I('<span class="attachment-status svelte-d8pwpf"> </span>'),ef=I('<div class="file-image tile svelte-d8pwpf" data-kind="file"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),tf=I("<!><span> </span>",1),rf=I('<img alt="" draggable="false"/>'),af=I('<span class="summary svelte-d8pwpf" data-clip-summary=""> </span>'),nf=I('<span class="clip svelte-d8pwpf"><span class="record-dot svelte-d8pwpf" aria-hidden="true"></span><span class="duration svelte-d8pwpf"> </span><!></span>'),sf=I('<div class="tile svelte-d8pwpf"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),of=I('<div class="attachment-row svelte-d8pwpf" role="group" data-dock-media-attachments=""></div>'),lf=I("<!> <!> <!>",1),df=I('<img draggable="false" class="svelte-d8pwpf"/>'),cf=I('<video controls="" playsinline="" class="svelte-d8pwpf"></video>',2),uf=I('<div class="media-viewer svelte-d8pwpf"><!></div>'),ff=I("<!> <!>",1);function gf(r,t){if(new.target)return pt({component:gf,...r});_t(t,!0);const a=(T,me=rr,le=rr)=>{var N=Ju(),ve=V(N);st(ve,{variant:"secondary",size:"icon-sm",class:"tile-action tile-remove",get disabled(){return i()},get"aria-label"(){return le()},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return le()},onclick:()=>z(me()),children:(Le,Ae)=>{Cs(Le,{glyph:"x"})},$$slots:{default:!0}}),F(N),c(T,N)};let s=g(t,"items",7),o=g(t,"labels",7),i=g(t,"disabled",7,!1),l=g(t,"onMarkUp",7),u=g(t,"onEdit",7),h=g(t,"onRemove",7),v=g(t,"onRetry",7),x=g(t,"onCopy",7),M=g(t,"onMenu",7);const B=T=>T.owner==="attachment"?2:{image:0,clip:1,file:2}[T.kind],U=n(()=>[...s()].sort((T,me)=>B(T)-B(me)));let w=ue(null),C=ue(!1),re=ue(null),G=null;const S=n(()=>s().find(T=>T.id===e(re)));Xt(()=>{(!e(S)||e(S).kind==="image"&&!j(e(S)))&&D(C,!1)});function j(T){return T.kind==="image"&&T.status!=="placing"&&T.status!=="failed"&&T.url.trim().length>0}function L(T){return T.kind==="image"?o().image(T.markCount):T.kind==="clip"?T.summary?`${o().clip(T.duration)} ${T.summary}`:o().clip(T.duration):T.name}function ne(T,me){if(!(i()||T.kind==="file"||T.kind==="image"&&!j(T)||T.kind==="clip"&&(!T.url||T.recording))){if((T.kind==="clip"||T.kind==="image")&&u()){u()(T.id);return}G=me,D(re,T.id,!0),D(C,!0)}}async function z(T){i()||(e(re)===T&&D(C,!1),h()(T),await Ia(),(!document.activeElement||document.activeElement===document.body)&&e(w)?.querySelector("button:not(:disabled)")?.focus())}function q(T){const me=s().find(le=>le.id===T);i()||!me||!j(me)||(D(C,!1),u()?u()(T):l()(T))}function ee(T,me){T.key!=="Delete"||i()||(T.preventDefault(),T.stopPropagation(),z(me))}function R(T){return T.status==="placing"||T.status==="failed"?!1:T.kind==="image"?!!T.file||j(T):T.kind==="clip"&&!T.recording&&!!T.url}function X(T,me){const le=rd()?T.metaKey:T.ctrlKey,N=T.key.toLowerCase();if(le&&!T.shiftKey&&!T.altKey&&(N==="c"||N==="x")){if(!x()||!R(me)||(T.preventDefault(),T.stopPropagation(),N==="x"&&i()))return;x()(me.id,N==="x");return}ee(T,me.id)}function te(T,me){!M()||!R(me)||(T.preventDefault(),M()(me.id))}var _e={get items(){return s()},set items(T){s(T),m()},get labels(){return o()},set labels(T){o(T),m()},get disabled(){return i()},set disabled(T=!1){i(T),m()},get onMarkUp(){return l()},set onMarkUp(T){l(T),m()},get onEdit(){return u()},set onEdit(T){u(T),m()},get onRemove(){return h()},set onRemove(T){h(T),m()},get onRetry(){return v()},set onRetry(T){v(T),m()},get onCopy(){return x()},set onCopy(T){x(T),m()},get onMenu(){return M()},set onMenu(T){M(T),m()},$set:vt,$on:(T,me)=>ht(t,T,me)},de=ff(),ge=fe(de);{var Pe=T=>{var me=of();kr(me,21,()=>e(U),le=>le.id,(le,N)=>{var ve=St(),Le=fe(ve);{var Ae=xe=>{var P=ef(),Y=V(P);{let W=n(()=>i()||e(N).status==="placing");wi(Y,{get id(){return e(N).id},get name(){return e(N).file.name},get type(){return e(N).file.imageMimeType},get imageData(){return e(N).file.imageData},get imageMimeType(){return e(N).file.imageMimeType},variant:"thumbnail",thumbnailClass:"size-full",class:"size-full",get disabled(){return e(W)},get placementStatus(){return e(N).status},get placementError(){return e(N).error}})}var ae=A(Y,2);{var we=W=>{var be=zo(),Re=oe(be,!0);$(()=>{J(be,"data-failed",e(N).status==="failed"||void 0),J(be,"role",e(N).status==="failed"?"alert":"status"),J(be,"title",e(N).error),Q(Re,e(N).status==="failed"?e(N).error??o().attachmentFailed:o().attachmentPending)}),c(W,be)};O(ae,W=>{e(N).status&&W(we)})}var _=A(ae,2),Se=V(_);{var Ce=W=>{st(W,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(N).id),children:(be,Re)=>{Bt(be,{get icon(){return zs},size:16})},$$slots:{default:!0}})};O(Se,W=>{e(N).status==="failed"&&v()&&W(Ce)})}var E=A(Se,2);{let W=n(()=>d.chat_attachmentPreview_remove_ariaLabel({name:e(N).file.name}));a(E,()=>e(N).id,()=>e(W))}F(_),F(P),$(()=>J(P,"data-attachment-id",e(N).id)),xr("keydown",P,W=>X(W,e(N))),xr("contextmenu",P,W=>te(W,e(N))),Kt(1,P,()=>On,()=>({tier:"fast",y:3,scale:.98})),Kt(2,P,()=>Ya,()=>({tier:"fast"})),c(xe,P)},Ee=xe=>{const P=n(()=>e(N).kind==="image"&&!j(e(N))&&e(N).status!=="failed");var Y=sf(),ae=V(Y);{var we=ke=>{st(ke,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile file",get"aria-label"(){return e(N).name},get disabled(){return i()},onkeydown:$e=>ee($e,e(N).id),children:($e,Oe)=>{var Ue=tf(),se=fe(Ue);Bt(se,{get icon(){return ka},size:20});var Ge=A(se),yt=oe(Ge,!0);$(()=>Q(yt,e(N).name)),c($e,Ue)},$$slots:{default:!0}})},_=ke=>{{let $e=n(()=>L(e(N))),Oe=n(()=>i()||e(N).kind==="clip"&&(e(N).recording||!e(N).url));st(ke,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile",get"aria-label"(){return e($e)},get disabled(){return e(Oe)},onkeydown:Ue=>X(Ue,e(N)),onclick:Ue=>{Ue.currentTarget instanceof HTMLElement&&ne(e(N),Ue.currentTarget)},children:(Ue,se)=>{var Ge=St(),yt=fe(Ge);{var Ft=et=>{var Ke=rf();$(()=>J(Ke,"src",e(N).url)),c(et,Ke)},er=et=>{var Ke=nf(),$t=A(V(Ke)),Tt=oe($t,!0),ut=A($t);{var ze=K=>{var y=af(),pe=oe(y,!0);$(()=>Q(pe,e(N).summary)),c(K,y)};O(ut,K=>{e(N).summary&&K(ze)})}F(Ke),$(()=>Q(Tt,e(N).duration)),c(et,Ke)};O(yt,et=>{e(N).kind==="image"?et(Ft):et(er,-1)})}c(Ue,Ge)},$$slots:{default:!0}})}},Se=n(()=>e(N).kind!=="image"||j(e(N)));O(ae,ke=>{e(N).kind==="file"?ke(we):e(Se)&&ke(_,1)})}var Ce=A(ae,2);{var E=ke=>{var $e=zo(),Oe=oe($e,!0);$(()=>{J($e,"data-failed",e(N).status==="failed"||void 0),J($e,"role",e(N).status==="failed"?"alert":"status"),J($e,"title",e(N).error),Q(Oe,e(N).status==="failed"?e(N).error??o().attachmentFailed:o().attachmentPending)}),c(ke,$e)};O(Ce,ke=>{(e(N).status||e(P))&&ke(E)})}var W=A(Ce,2),be=V(W);{var Re=ke=>{st(ke,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(N).id),children:($e,Oe)=>{Bt($e,{get icon(){return zs},size:16})},$$slots:{default:!0}})},Ve=ke=>{{let $e=n(()=>u()?o().edit:o().markUp),Oe=n(()=>u()?o().edit:o().markUp);st(ke,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e($e)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(Oe)},onclick:()=>q(e(N).id),children:(Ue,se)=>{Cs(Ue,{glyph:"pencil"})},$$slots:{default:!0}})}},De=n(()=>j(e(N))),Et=ke=>{{let $e=n(()=>u()?o().edit:o().play),Oe=n(()=>u()?o().edit:o().play);st(ke,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e($e)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(Oe)},onclick:Ue=>{Ue.currentTarget instanceof HTMLElement&&ne(e(N),Ue.currentTarget)},children:(Ue,se)=>{{let Ge=n(()=>u()?"pencil":"play");Cs(Ue,{get glyph(){return e(Ge)}})}},$$slots:{default:!0}})}};O(be,ke=>{e(N).status==="failed"&&v()?ke(Re):e(De)?ke(Ve,1):e(N).kind==="clip"&&!e(N).recording&&e(N).url&&ke(Et,2)})}var ye=A(be,2);a(ye,()=>e(N).id,()=>o().remove),F(W),F(Y),$(()=>{J(Y,"data-kind",e(N).kind),J(Y,"data-attachment-id",e(N).id),J(Y,"aria-busy",e(P)||void 0)}),xr("contextmenu",Y,ke=>te(ke,e(N))),Kt(1,Y,()=>On,()=>({tier:"fast",y:3,scale:.98})),Kt(2,Y,()=>Ya,()=>({tier:"fast"})),c(xe,Y)};O(Le,xe=>{e(N).kind==="image"&&e(N).file?xe(Ae):xe(Ee,-1)})}c(le,ve)}),F(me),ea(me,le=>D(w,le),()=>e(w)),$(()=>J(me,"aria-label",o().attachments)),c(T,me)};O(ge,T=>{e(U).length&&T(Pe)})}var Ie=A(ge,2);{const T=le=>{var N=St(),ve=fe(N);{var Le=Ae=>{var Ee=lf(),xe=fe(Ee);{var P=_=>{st(_,{variant:"primary",get disabled(){return i()},onclick:()=>e(S)&&q(e(S).id),children:(Se,Ce)=>{Cr();var E=Pr();$(()=>Q(E,o().markUp)),c(Se,E)},$$slots:{default:!0}})},Y=n(()=>j(e(S)));O(xe,_=>{e(Y)&&_(P)})}var ae=A(xe,2);st(ae,{variant:"secondary",get disabled(){return i()},onclick:()=>e(S)&&z(e(S).id),children:(_,Se)=>{Cr();var Ce=Pr();$(()=>Q(Ce,o().remove)),c(_,Ce)},$$slots:{default:!0}});var we=A(ae,2);st(we,{variant:"ghost-light",onclick:()=>{D(C,!1)},children:(_,Se)=>{Cr();var Ce=Pr();$(()=>Q(Ce,o().done)),c(_,Ce)},$$slots:{default:!0}}),c(Ae,Ee)};O(ve,Ae=>{e(S)&&e(S).kind!=="file"&&Ae(Le)})}c(le,N)};let me=n(()=>e(S)?L(e(S)):o().attachments);yi(Ie,{get title(){return e(me)},size:"wide",showCloseButton:!1,onCloseAutoFocus:le=>{le.preventDefault(),G?.isConnected?G.focus():e(w)?.querySelector("button:not(:disabled)")?.focus()},get open(){return e(C)},set open(le){D(C,le,!0)},footer:T,children:(le,N)=>{var ve=St(),Le=fe(ve);{var Ae=Ee=>{var xe=uf(),P=V(xe);{var Y=_=>{var Se=df();$(Ce=>{J(Se,"src",e(S).url),J(Se,"alt",Ce)},[()=>L(e(S))]),c(_,Se)},ae=n(()=>e(S).kind==="image"&&j(e(S))),we=_=>{var Se=cf();$(Ce=>{J(Se,"src",e(S).url),J(Se,"aria-label",Ce)},[()=>L(e(S))]),c(_,Se)};O(P,_=>{e(ae)?_(Y):e(S).kind==="clip"&&e(S).url&&_(we,1)})}F(xe),c(Ee,xe)};O(Le,Ee=>{e(S)&&e(S).kind!=="file"&&Ee(Ae)})}c(le,ve)},$$slots:{footer:!0,default:!0}})}return c(r,de),bt(_e)}Ga(["keydown","contextmenu"]);var mf=I("<!> ",1),pf=I('<div class="flex flex-col gap-2 px-4 py-3 bg-muted/30 border border-border rounded-lg my-4"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="shrink-0 text-subtle"><!></div> <div class="font-medium text-sm"> </div></div> <div class="flex items-center gap-1"><!> <!></div></div> <div class="text-xs text-subtle"> </div> <pre class="text-xs bg-background/50 rounded p-2 overflow-x-auto max-h-40 overflow-y-auto font-mono"> </pre></div>');function Yi(r,t){if(new.target)return pt({component:Yi,...r});_t(t,!0);let a=g(t,"name",7),s=g(t,"description",7),o=g(t,"content",7),i=g(t,"onUseScript",7),l=ue(!1);function u(){navigator.clipboard.writeText(o()),D(l,!0),setTimeout(()=>{D(l,!1)},2e3)}function h(){i()?.({name:a(),description:s(),content:o()})}var v={get name(){return a()},set name(R){a(R),m()},get description(){return s()},set description(R){s(R),m()},get content(){return o()},set content(R){o(R),m()},get onUseScript(){return i()},set onUseScript(R){i(R),m()},$set:vt,$on:(R,X)=>ht(t,R,X)},x=pf(),M=V(x),B=V(M),U=V(B),w=V(U);Bt(w,{get icon(){return ps},size:"sm"}),F(U);var C=A(U,2),re=oe(C,!0);F(B);var G=A(B,2),S=V(G);st(S,{variant:"ghost-light",size:"sm",onclick:u,class:"h-7 px-2",children:(R,X)=>{var te=mf(),_e=fe(te);{let ge=n(()=>e(l)?hi:_i);Bt(_e,{get icon(){return e(ge)},class:"mr-1"})}var de=A(_e);$(ge=>Q(de,` ${ge??""}`),[()=>e(l)?d.chat_shared_copied_label():d.chat_shared_copy_label()]),c(R,te)},$$slots:{default:!0}});var j=A(S,2);{var L=R=>{st(R,{variant:"ghost-light",size:"sm",onclick:h,class:"h-7 px-2",children:(X,te)=>{Cr();var _e=Pr();$(de=>Q(_e,de),[()=>d.chat_setupScriptCard_useScript_label()]),c(X,_e)},$$slots:{default:!0}})};O(j,R=>{i()&&R(L)})}F(G),F(M);var ne=A(M,2),z=oe(ne,!0),q=A(ne,2),ee=oe(q,!0);return F(x),$(()=>{Q(re,a()),Q(z,s()),Q(ee,o())}),c(r,x),bt(v)}const yr={toolStart:/(?:\x1B\[\d+m)?🔧\s+(?:Tool call:\s+)?(.+?)(?:\x1B\[0m)?$/,toolDetail:/(?:[└├]─\s+(.+)$|^\s{3,}(.+)$)/,toolResult:/(?:\x1B\[\d+m)?📋\s+Tool result:\s+(.+?)(?:\x1B\[0m)?$/,toolSuccess:/[✓✔✅]\s+(.+)$/,toolError:/[❌✗❎]\s+(.+)$/,sessionInfo:/[Ss]ession:\s*([a-f0-9-]+)/,resumedSession:/📂?\s*Resumed session/i,assistantMarker:/🤖/,systemMarker:/💻/,userMarker:/👤/,thinkingMarker:/🤔\s*Thinking/i,waitingMarker:/^⏳\s+Running/i,indexingProgress:/^Indexing:\s*\[.*\]\s*\d+%/,agentDigest:/<agent_digest>([\s\S]*?)<\/agent_digest>/,setupScript:/<setup_script\s+name="([^"]+)"\s+description="([^"]+)">([\s\S]*?)<\/setup_script>/};class vf{constructor(){pa(this,"buffer","");pa(this,"currentToolName",null);pa(this,"currentToolId",null);pa(this,"lastToolId",null);pa(this,"currentToolParams",[]);pa(this,"currentToolResultContent",[]);pa(this,"inToolResult",!1);pa(this,"inCodeBlock",!1);pa(this,"codeBlockLanguage","");pa(this,"codeBlockContent","");pa(this,"characterBuffer","");pa(this,"inCharacterMode",!1);pa(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const o=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const u=this.currentToolResultContent.some(v=>v.startsWith("❌")||v.startsWith("Error:")),h=this.currentToolResultContent.map(v=>v.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
|
|
1
|
+
var Ul=Object.defineProperty;var jl=(r,t,a)=>t in r?Ul(r,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[t]=a;var pa=(r,t,a)=>jl(r,typeof t!="symbol"?t+"":t,a);import{t as pt,bo as g,bw as vt,b as ht,bm as d,bq as Ea,bs as tr,br as Vl,bp as vn}from"./C0QTy0Sy.js";import{ai as Ga,bs as _t,ca as Xt,aD as e,bH as D,ay as fe,bS as A,a7 as St,W as c,a5 as V,bA as F,bn as bt,c9 as n,bV as ue,aA as m,b_ as $,aj as xr,aB as I,be as Cr,b$ as Pr,bO as Q,bf as rr,c0 as Ia,bl as oe,bj as ja,c6 as Gl,bo as nn,br as Zr,am as Da,ax as Ba,bk as as,aw as pn,bz as ns,cb as Fn,c5 as Mn,aC as Ir,cd as vo,bv as Kl}from"./3SdAC2_C.js";import{i as O}from"./bhKPSdq4.js";import{g as kr,e as sa,p as ms,i as Ha,I as Zl,h as eo,X as pi,o as Ql}from"./B6S6VNu7.js";import{n as Kt,l as On,c as Ya,g as rn,s as ks,k as ss,S as Xl}from"./DLwWVKiF.js";import{s as J,f as Fe,g as hn,c as It,e as Qt,b as _n,p as Yl,S as Jl,C as ed}from"./7UPrdiE9.js";import{b as ea}from"./Dn334wJv.js";import{f as st,ae as to,a_ as td}from"./FzlZUztb.js";import{J as rd,O as ad,Q as Is}from"./DCRuihKm.js";import"./A9niI_uA.js";import"./CJ4Z96pe.js";import"./lJeex2Gh.js";import{t as Ma,k as vi}from"./CrD0jtXE.js";import{F as Bt,a4 as zs,bg as ka,cK as ps,au as hi,aZ as _i,aK as nd,c9 as sd,a6 as os,aN as od,cN as id,cM as ld,a3 as vs,aC as is,aw as hs,I as ho,aj as dd,bu as cd,aS as ud,aX as fd,bJ as gd,ao as md,bk as bi,cC as pd,aP as _o,c0 as Ss,aI as Hn,cW as vd,cb as hd,bn as _d,b as bd,cp as yd,ag as wd,ba as Ts,cr as wn,cF as xd,az as kd,c6 as Id,d3 as Sd}from"./U9jJmfYa.js";import{C as yi,A as Td,o as Cd}from"./fiz8N_zQ.js";import{b as Cs,V as bo}from"./DR4Kh2SL.js";import{A as wi}from"./BJ_CKcUH.js";import{bZ as xi,aj as Md,j as Kn,a4 as Ws,al as ls,E as Ad,au as Zn,aP as Pd,aS as yo}from"./DVROSXw1.js";import{t as an,o as Rd}from"./DAsc1V4f.js";import{ch as Qn,aO as qn,d2 as ki,d4 as Va,c6 as _s,q as Nd,cX as Ii,d1 as bs,d0 as Si,c_ as Ti,n as Ca,al as Ed,am as $d,aJ as Ld,z as Od,V as qd,a3 as wo,D as Ci,e4 as Dd,aF as Bd,ak as Fd,r as zd,C as Ms,ag as Wd,U as xn,e2 as Hd,ab as Ud,k as xo,u as jd,Z as Vd,v as Gd,i as Kd,g as As,f as ko,a0 as Zd,$ as Qd,a9 as Xd,x as Mi,y as Ai,l as Pi,j as Yd,s as Jd,a as ec,d5 as tc,ae as rc,e3 as ac,L as nc,F as sc,a2 as Io,bq as oc,av as ic}from"./BaujsV9k.js";import{Jv as mt,o_ as lc,tP as Xn,nP as So,vI as Ri,vK as Ni,s0 as dc,yH as ds,u$ as Ei,nK as $i,bq as En,nX as cc,nY as uc,yI as fc,qy as gc,tj as mc,vB as Li,nJ as pc,mO as vc,m as hc,z9 as _c,z6 as bc,z8 as yc}from"./tr-2J8Mf.js";import{a3 as wc,y as Ps,a1 as xc,O as Rs,W as kc,$ as Ic,k as Sc,p as kn,P as un,q as Tc,G as Cc,v as Mc,t as Ac,M as Ns,K as Pc,z as Rc,L as Nc,_ as An,U as Un,N as To,n as Co,E as Ec,c as Es,F as Mo,B as $c,w as Ao,J as Pn,Q as Lc,H as Oc,j as qc,R as Dc,T as Bc,A as Fc,g as zc,b as Wc,D as Hc,f as Uc,e as jc,a as Vc,C as Gc,i as Kc,d as Hs,V as Oi,a4 as Zc,u as Qc,l as Xc}from"./eTsHzcIE.js";import{i as Yc,e as Jc}from"./L_tYoUCb.js";import{g as $s}from"./B5aYN90J.js";import{M as In,C as Rn}from"./DlliJA4a.js";import{C as Po}from"./Djp7mdlG.js";import"./DOEI9gYY.js";import{P as eu}from"./D3O8Vtuw.js";import"./Dsr4GELp.js";import{c as qi}from"./ChTqQfQN.js";import{S as tu}from"./DPA45OJk.js";import{D as Ro,M as ru}from"./cebxNJuC.js";import{b as au,s as en,c as cs}from"./3xK9OOJy.js";import{O as Yn,y as Ls,E as Os,B as qs,N as nu,m as su,l as ou,k as iu,d as Dn,C as No,f as lu,e as du,g as cu}from"./DMQmPhTl.js";import{a as Di,s as Eo}from"./BsieX9dN.js";import{f as uu}from"./BdWqymET.js";import{c as na}from"./BIVeXMBl.js";import{a as fu,k as Bi,h as ro,q as Fi,l as wr}from"./CE7dsja4.js";import{P as gu}from"./QeBH-DWE.js";import{r as Ds,q as Bs,B as $o,i as mu}from"./BFIcslMA.js";import{R as zi,C as ys,m as pu,h as vu,g as hu,i as Lo,P as _u}from"./BmTMWrby.js";import"./B4SiDSWP.js";import{c as bu,s as yu}from"./DMDFfHqn.js";import{h as gn}from"./DIG1mTAN.js";import{b as wu,a as Wi}from"./Ba8ctcpl.js";import{P as Hi}from"./ujhgjK1k.js";import{B as xu}from"./BTrqJIJZ.js";import{o as Ui,r as ku,e as Iu}from"./U_OQY9n3.js";import{o as ji}from"./nXfD7jHz.js";import{A as Jn,b as Vi}from"./BYq9VtBF.js";import{g as ao}from"./OFhgRaUm.js";import{a as Su,M as Tu}from"./C7LIHk5_.js";import{a as Gi}from"./DzWZGIya.js";import{E as Cu,n as Mu}from"./C6mS8uZB.js";import{t as Tr}from"./C-BsEdGZ.js";import{c as Sn}from"./CUkDMZwP.js";import{A as Au}from"./KYuLFpkq.js";import{f as Pu,d as Ru}from"./DE7dSDHO.js";import{ad as Nu,P as Eu,Z as $u,L as Oo,Y as Lu,w as Ou,a0 as Ki,$ as Zi}from"./DvSURWC2.js";import{a as qu}from"./CC7to1B5.js";import{k as Du}from"./-K3ARgq0.js";import{S as Bu}from"./OtomGvb3.js";import{u as Fu,a as zu,c as qo,S as Wu}from"./D9tVylVS.js";import{T as us}from"./CRZZ_hOy.js";import"./BWYuMy_r.js";import{g as Hu,a as Uu}from"./BAKPnd3w.js";import{I as ju,R as Vu,q as Gu}from"./CFvBUo4R.js";import{b as Qi}from"./No1eCFy3.js";import{b as Do}from"./goTpbPhD.js";import{ah as Ua,n as Ku}from"./DKHY8q_S.js";import{c as Zu}from"./BfvZe-kN.js";import{r as Bo}from"./jn4zbMQy.js";function Qu(r){if(!r||typeof r!="object")return null;const t=r;if(t.type!=="script_monitor_wake"||t.source!=="system")return null;const{scriptName:a,scriptId:s,runId:o,monitorId:i,workspaceId:l,reason:u}=t;if(typeof a!="string"||typeof s!="string"||!s||typeof o!="string"||!o||typeof i!="string"||!i||typeof l!="string"||!l||u!=="finished"&&u!=="ttl-expired"&&u!=="output-match"&&u!=="line-count")return null;const h=t.trigger;return{scriptName:a,scriptId:s,runId:o,monitorId:i,workspaceId:l,reason:u,...u==="output-match"&&typeof h?.matchedLine=="string"?{matchedLine:h.matchedLine}:{}}}function Xu(r){return r?.type==="script_monitor_wake"&&!("remoteAgentId"in r)}function Yu(r,t,a,s=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const o=r.messageMetadata?.fromPrincipalId??r.author?.principalId,i=Nu(r)&&r.author?.principalId!==null&&o===t;return{edit:i,remove:i||t===a||s,sendNow:(i||s)&&!Xi(r)}}function Tn(r,t){if(t)return r.find(a=>a.editing&&a.editingMessageId?a.editingMessageId===t:a.id===t)}function Xi(r){return Xu(r.messageMetadata)&&typeof r.messageMetadata?.monitorId=="string"}function Fo(r,t=Date.now()){const a=r.messageMetadata,s=a?.fromPrincipalId,o=a&&Object.hasOwn(a,"humanAuthor")&&!(typeof s=="string"&&s.length>0),i=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!i&&!o&&!Xi(r)}const Cb="pl-3.5! pr-2!";var Ju=I('<span class="tile-remove-slot svelte-d8pwpf"><!></span>'),zo=I('<span class="attachment-status svelte-d8pwpf"> </span>'),ef=I('<div class="file-image tile svelte-d8pwpf" data-kind="file"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),tf=I("<!><span> </span>",1),rf=I('<img alt="" draggable="false"/>'),af=I('<span class="summary svelte-d8pwpf" data-clip-summary=""> </span>'),nf=I('<span class="clip svelte-d8pwpf"><span class="record-dot svelte-d8pwpf" aria-hidden="true"></span><span class="duration svelte-d8pwpf"> </span><!></span>'),sf=I('<div class="tile svelte-d8pwpf"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),of=I('<div class="attachment-row svelte-d8pwpf" role="group" data-dock-media-attachments=""></div>'),lf=I("<!> <!> <!>",1),df=I('<img draggable="false" class="svelte-d8pwpf"/>'),cf=I('<video controls="" playsinline="" class="svelte-d8pwpf"></video>',2),uf=I('<div class="media-viewer svelte-d8pwpf"><!></div>'),ff=I("<!> <!>",1);function gf(r,t){if(new.target)return pt({component:gf,...r});_t(t,!0);const a=(T,me=rr,le=rr)=>{var N=Ju(),ve=V(N);st(ve,{variant:"secondary",size:"icon-sm",class:"tile-action tile-remove",get disabled(){return i()},get"aria-label"(){return le()},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return le()},onclick:()=>z(me()),children:(Le,Ae)=>{Cs(Le,{glyph:"x"})},$$slots:{default:!0}}),F(N),c(T,N)};let s=g(t,"items",7),o=g(t,"labels",7),i=g(t,"disabled",7,!1),l=g(t,"onMarkUp",7),u=g(t,"onEdit",7),h=g(t,"onRemove",7),v=g(t,"onRetry",7),x=g(t,"onCopy",7),M=g(t,"onMenu",7);const B=T=>T.owner==="attachment"?2:{image:0,clip:1,file:2}[T.kind],U=n(()=>[...s()].sort((T,me)=>B(T)-B(me)));let w=ue(null),C=ue(!1),re=ue(null),G=null;const S=n(()=>s().find(T=>T.id===e(re)));Xt(()=>{(!e(S)||e(S).kind==="image"&&!j(e(S)))&&D(C,!1)});function j(T){return T.kind==="image"&&T.status!=="placing"&&T.status!=="failed"&&T.url.trim().length>0}function L(T){return T.kind==="image"?o().image(T.markCount):T.kind==="clip"?T.summary?`${o().clip(T.duration)} ${T.summary}`:o().clip(T.duration):T.name}function ne(T,me){if(!(i()||T.kind==="file"||T.kind==="image"&&!j(T)||T.kind==="clip"&&(!T.url||T.recording))){if((T.kind==="clip"||T.kind==="image")&&u()){u()(T.id);return}G=me,D(re,T.id,!0),D(C,!0)}}async function z(T){i()||(e(re)===T&&D(C,!1),h()(T),await Ia(),(!document.activeElement||document.activeElement===document.body)&&e(w)?.querySelector("button:not(:disabled)")?.focus())}function q(T){const me=s().find(le=>le.id===T);i()||!me||!j(me)||(D(C,!1),u()?u()(T):l()(T))}function ee(T,me){T.key!=="Delete"||i()||(T.preventDefault(),T.stopPropagation(),z(me))}function R(T){return T.status==="placing"||T.status==="failed"?!1:T.kind==="image"?!!T.file||j(T):T.kind==="clip"&&!T.recording&&!!T.url}function X(T,me){const le=rd()?T.metaKey:T.ctrlKey,N=T.key.toLowerCase();if(le&&!T.shiftKey&&!T.altKey&&(N==="c"||N==="x")){if(!x()||!R(me)||(T.preventDefault(),T.stopPropagation(),N==="x"&&i()))return;x()(me.id,N==="x");return}ee(T,me.id)}function te(T,me){!M()||!R(me)||(T.preventDefault(),M()(me.id))}var _e={get items(){return s()},set items(T){s(T),m()},get labels(){return o()},set labels(T){o(T),m()},get disabled(){return i()},set disabled(T=!1){i(T),m()},get onMarkUp(){return l()},set onMarkUp(T){l(T),m()},get onEdit(){return u()},set onEdit(T){u(T),m()},get onRemove(){return h()},set onRemove(T){h(T),m()},get onRetry(){return v()},set onRetry(T){v(T),m()},get onCopy(){return x()},set onCopy(T){x(T),m()},get onMenu(){return M()},set onMenu(T){M(T),m()},$set:vt,$on:(T,me)=>ht(t,T,me)},de=ff(),ge=fe(de);{var Pe=T=>{var me=of();kr(me,21,()=>e(U),le=>le.id,(le,N)=>{var ve=St(),Le=fe(ve);{var Ae=xe=>{var P=ef(),Y=V(P);{let W=n(()=>i()||e(N).status==="placing");wi(Y,{get id(){return e(N).id},get name(){return e(N).file.name},get type(){return e(N).file.imageMimeType},get imageData(){return e(N).file.imageData},get imageMimeType(){return e(N).file.imageMimeType},variant:"thumbnail",thumbnailClass:"size-full",class:"size-full",get disabled(){return e(W)},get placementStatus(){return e(N).status},get placementError(){return e(N).error}})}var ae=A(Y,2);{var we=W=>{var be=zo(),Re=oe(be,!0);$(()=>{J(be,"data-failed",e(N).status==="failed"||void 0),J(be,"role",e(N).status==="failed"?"alert":"status"),J(be,"title",e(N).error),Q(Re,e(N).status==="failed"?e(N).error??o().attachmentFailed:o().attachmentPending)}),c(W,be)};O(ae,W=>{e(N).status&&W(we)})}var _=A(ae,2),Se=V(_);{var Ce=W=>{st(W,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(N).id),children:(be,Re)=>{Bt(be,{get icon(){return zs},size:16})},$$slots:{default:!0}})};O(Se,W=>{e(N).status==="failed"&&v()&&W(Ce)})}var E=A(Se,2);{let W=n(()=>d.chat_attachmentPreview_remove_ariaLabel({name:e(N).file.name}));a(E,()=>e(N).id,()=>e(W))}F(_),F(P),$(()=>J(P,"data-attachment-id",e(N).id)),xr("keydown",P,W=>X(W,e(N))),xr("contextmenu",P,W=>te(W,e(N))),Kt(1,P,()=>On,()=>({tier:"fast",y:3,scale:.98})),Kt(2,P,()=>Ya,()=>({tier:"fast"})),c(xe,P)},Ee=xe=>{const P=n(()=>e(N).kind==="image"&&!j(e(N))&&e(N).status!=="failed");var Y=sf(),ae=V(Y);{var we=ke=>{st(ke,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile file",get"aria-label"(){return e(N).name},get disabled(){return i()},onkeydown:$e=>ee($e,e(N).id),children:($e,Oe)=>{var Ue=tf(),se=fe(Ue);Bt(se,{get icon(){return ka},size:20});var Ge=A(se),yt=oe(Ge,!0);$(()=>Q(yt,e(N).name)),c($e,Ue)},$$slots:{default:!0}})},_=ke=>{{let $e=n(()=>L(e(N))),Oe=n(()=>i()||e(N).kind==="clip"&&(e(N).recording||!e(N).url));st(ke,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile",get"aria-label"(){return e($e)},get disabled(){return e(Oe)},onkeydown:Ue=>X(Ue,e(N)),onclick:Ue=>{Ue.currentTarget instanceof HTMLElement&&ne(e(N),Ue.currentTarget)},children:(Ue,se)=>{var Ge=St(),yt=fe(Ge);{var Ft=et=>{var Ke=rf();$(()=>J(Ke,"src",e(N).url)),c(et,Ke)},er=et=>{var Ke=nf(),$t=A(V(Ke)),Tt=oe($t,!0),ut=A($t);{var ze=K=>{var y=af(),pe=oe(y,!0);$(()=>Q(pe,e(N).summary)),c(K,y)};O(ut,K=>{e(N).summary&&K(ze)})}F(Ke),$(()=>Q(Tt,e(N).duration)),c(et,Ke)};O(yt,et=>{e(N).kind==="image"?et(Ft):et(er,-1)})}c(Ue,Ge)},$$slots:{default:!0}})}},Se=n(()=>e(N).kind!=="image"||j(e(N)));O(ae,ke=>{e(N).kind==="file"?ke(we):e(Se)&&ke(_,1)})}var Ce=A(ae,2);{var E=ke=>{var $e=zo(),Oe=oe($e,!0);$(()=>{J($e,"data-failed",e(N).status==="failed"||void 0),J($e,"role",e(N).status==="failed"?"alert":"status"),J($e,"title",e(N).error),Q(Oe,e(N).status==="failed"?e(N).error??o().attachmentFailed:o().attachmentPending)}),c(ke,$e)};O(Ce,ke=>{(e(N).status||e(P))&&ke(E)})}var W=A(Ce,2),be=V(W);{var Re=ke=>{st(ke,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(N).id),children:($e,Oe)=>{Bt($e,{get icon(){return zs},size:16})},$$slots:{default:!0}})},Ve=ke=>{{let $e=n(()=>u()?o().edit:o().markUp),Oe=n(()=>u()?o().edit:o().markUp);st(ke,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e($e)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(Oe)},onclick:()=>q(e(N).id),children:(Ue,se)=>{Cs(Ue,{glyph:"pencil"})},$$slots:{default:!0}})}},De=n(()=>j(e(N))),Et=ke=>{{let $e=n(()=>u()?o().edit:o().play),Oe=n(()=>u()?o().edit:o().play);st(ke,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e($e)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(Oe)},onclick:Ue=>{Ue.currentTarget instanceof HTMLElement&&ne(e(N),Ue.currentTarget)},children:(Ue,se)=>{{let Ge=n(()=>u()?"pencil":"play");Cs(Ue,{get glyph(){return e(Ge)}})}},$$slots:{default:!0}})}};O(be,ke=>{e(N).status==="failed"&&v()?ke(Re):e(De)?ke(Ve,1):e(N).kind==="clip"&&!e(N).recording&&e(N).url&&ke(Et,2)})}var ye=A(be,2);a(ye,()=>e(N).id,()=>o().remove),F(W),F(Y),$(()=>{J(Y,"data-kind",e(N).kind),J(Y,"data-attachment-id",e(N).id),J(Y,"aria-busy",e(P)||void 0)}),xr("contextmenu",Y,ke=>te(ke,e(N))),Kt(1,Y,()=>On,()=>({tier:"fast",y:3,scale:.98})),Kt(2,Y,()=>Ya,()=>({tier:"fast"})),c(xe,Y)};O(Le,xe=>{e(N).kind==="image"&&e(N).file?xe(Ae):xe(Ee,-1)})}c(le,ve)}),F(me),ea(me,le=>D(w,le),()=>e(w)),$(()=>J(me,"aria-label",o().attachments)),c(T,me)};O(ge,T=>{e(U).length&&T(Pe)})}var Ie=A(ge,2);{const T=le=>{var N=St(),ve=fe(N);{var Le=Ae=>{var Ee=lf(),xe=fe(Ee);{var P=_=>{st(_,{variant:"primary",get disabled(){return i()},onclick:()=>e(S)&&q(e(S).id),children:(Se,Ce)=>{Cr();var E=Pr();$(()=>Q(E,o().markUp)),c(Se,E)},$$slots:{default:!0}})},Y=n(()=>j(e(S)));O(xe,_=>{e(Y)&&_(P)})}var ae=A(xe,2);st(ae,{variant:"secondary",get disabled(){return i()},onclick:()=>e(S)&&z(e(S).id),children:(_,Se)=>{Cr();var Ce=Pr();$(()=>Q(Ce,o().remove)),c(_,Ce)},$$slots:{default:!0}});var we=A(ae,2);st(we,{variant:"ghost-light",onclick:()=>{D(C,!1)},children:(_,Se)=>{Cr();var Ce=Pr();$(()=>Q(Ce,o().done)),c(_,Ce)},$$slots:{default:!0}}),c(Ae,Ee)};O(ve,Ae=>{e(S)&&e(S).kind!=="file"&&Ae(Le)})}c(le,N)};let me=n(()=>e(S)?L(e(S)):o().attachments);yi(Ie,{get title(){return e(me)},size:"wide",showCloseButton:!1,onCloseAutoFocus:le=>{le.preventDefault(),G?.isConnected?G.focus():e(w)?.querySelector("button:not(:disabled)")?.focus()},get open(){return e(C)},set open(le){D(C,le,!0)},footer:T,children:(le,N)=>{var ve=St(),Le=fe(ve);{var Ae=Ee=>{var xe=uf(),P=V(xe);{var Y=_=>{var Se=df();$(Ce=>{J(Se,"src",e(S).url),J(Se,"alt",Ce)},[()=>L(e(S))]),c(_,Se)},ae=n(()=>e(S).kind==="image"&&j(e(S))),we=_=>{var Se=cf();$(Ce=>{J(Se,"src",e(S).url),J(Se,"aria-label",Ce)},[()=>L(e(S))]),c(_,Se)};O(P,_=>{e(ae)?_(Y):e(S).kind==="clip"&&e(S).url&&_(we,1)})}F(xe),c(Ee,xe)};O(Le,Ee=>{e(S)&&e(S).kind!=="file"&&Ee(Ae)})}c(le,ve)},$$slots:{footer:!0,default:!0}})}return c(r,de),bt(_e)}Ga(["keydown","contextmenu"]);var mf=I("<!> ",1),pf=I('<div class="flex flex-col gap-2 px-4 py-3 bg-muted/30 border border-border rounded-lg my-4"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="shrink-0 text-subtle"><!></div> <div class="font-medium text-sm"> </div></div> <div class="flex items-center gap-1"><!> <!></div></div> <div class="text-xs text-subtle"> </div> <pre class="text-xs bg-background/50 rounded p-2 overflow-x-auto max-h-40 overflow-y-auto font-mono"> </pre></div>');function Yi(r,t){if(new.target)return pt({component:Yi,...r});_t(t,!0);let a=g(t,"name",7),s=g(t,"description",7),o=g(t,"content",7),i=g(t,"onUseScript",7),l=ue(!1);function u(){navigator.clipboard.writeText(o()),D(l,!0),setTimeout(()=>{D(l,!1)},2e3)}function h(){i()?.({name:a(),description:s(),content:o()})}var v={get name(){return a()},set name(R){a(R),m()},get description(){return s()},set description(R){s(R),m()},get content(){return o()},set content(R){o(R),m()},get onUseScript(){return i()},set onUseScript(R){i(R),m()},$set:vt,$on:(R,X)=>ht(t,R,X)},x=pf(),M=V(x),B=V(M),U=V(B),w=V(U);Bt(w,{get icon(){return ps},size:"sm"}),F(U);var C=A(U,2),re=oe(C,!0);F(B);var G=A(B,2),S=V(G);st(S,{variant:"ghost-light",size:"sm",onclick:u,class:"h-7 px-2",children:(R,X)=>{var te=mf(),_e=fe(te);{let ge=n(()=>e(l)?hi:_i);Bt(_e,{get icon(){return e(ge)},class:"mr-1"})}var de=A(_e);$(ge=>Q(de,` ${ge??""}`),[()=>e(l)?d.chat_shared_copied_label():d.chat_shared_copy_label()]),c(R,te)},$$slots:{default:!0}});var j=A(S,2);{var L=R=>{st(R,{variant:"ghost-light",size:"sm",onclick:h,class:"h-7 px-2",children:(X,te)=>{Cr();var _e=Pr();$(de=>Q(_e,de),[()=>d.chat_setupScriptCard_useScript_label()]),c(X,_e)},$$slots:{default:!0}})};O(j,R=>{i()&&R(L)})}F(G),F(M);var ne=A(M,2),z=oe(ne,!0),q=A(ne,2),ee=oe(q,!0);return F(x),$(()=>{Q(re,a()),Q(z,s()),Q(ee,o())}),c(r,x),bt(v)}const yr={toolStart:/(?:\x1B\[\d+m)?🔧\s+(?:Tool call:\s+)?(.+?)(?:\x1B\[0m)?$/,toolDetail:/(?:[└├]─\s+(.+)$|^\s{3,}(.+)$)/,toolResult:/(?:\x1B\[\d+m)?📋\s+Tool result:\s+(.+?)(?:\x1B\[0m)?$/,toolSuccess:/[✓✔✅]\s+(.+)$/,toolError:/[❌✗❎]\s+(.+)$/,sessionInfo:/[Ss]ession:\s*([a-f0-9-]+)/,resumedSession:/📂?\s*Resumed session/i,assistantMarker:/🤖/,systemMarker:/💻/,userMarker:/👤/,thinkingMarker:/🤔\s*Thinking/i,waitingMarker:/^⏳\s+Running/i,indexingProgress:/^Indexing:\s*\[.*\]\s*\d+%/,agentDigest:/<agent_digest>([\s\S]*?)<\/agent_digest>/,setupScript:/<setup_script\s+name="([^"]+)"\s+description="([^"]+)">([\s\S]*?)<\/setup_script>/};class vf{constructor(){pa(this,"buffer","");pa(this,"currentToolName",null);pa(this,"currentToolId",null);pa(this,"lastToolId",null);pa(this,"currentToolParams",[]);pa(this,"currentToolResultContent",[]);pa(this,"inToolResult",!1);pa(this,"inCodeBlock",!1);pa(this,"codeBlockLanguage","");pa(this,"codeBlockContent","");pa(this,"characterBuffer","");pa(this,"inCharacterMode",!1);pa(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const o=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const u=this.currentToolResultContent.some(v=>v.startsWith("❌")||v.startsWith("Error:")),h=this.currentToolResultContent.map(v=>v.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
|
|
2
2
|
`);o.push({type:"tool_result",content:h,metadata:{toolId:this.currentToolId,isError:u}}),this.lastToolId=this.currentToolId,this.currentToolId=null,this.inToolResult=!1,this.currentToolResultContent=[]}const i=t.indexOf("🤖"),l=t.substring(i+2);if(this.inCharacterMode=!0,this.characterBuffer="",l&&l.trim()&&l!==`
|
|
3
3
|
`){const u=l.replace(/^\n/,"");u&&(this.characterBuffer=u)}return o}if(this.inCharacterMode){if(t.trim()===""&&this.characterBuffer==="")return[];if(t.includes(`
|
|
4
4
|
`)&&this.characterBuffer.length>0){const o=t.substring(0,t.indexOf(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as et,bo as c,bw as tt,b as nt,bp as ma,bm as h,br as $n,bq as or,bs as be}from"./
|
|
1
|
+
import{t as et,bo as c,bw as tt,b as nt,bp as ma,bm as h,br as $n,bq as or,bs as be}from"./C0QTy0Sy.js";import{bs as rt,aD as e,a5 as Q,bS as S,bA as K,W as g,bn as at,c9 as i,aA as d,a7 as ke,ay as ee,be as je,b$ as Ve,aC as mt,ai as Bs,bo as ha,ca as Ue,bH as H,bf as _a,b_ as B,aj as Fs,bV as Ae,bO as q,aB as j,aw as Mt,bl as ue,cb as ba,am as Yr,c5 as Ut,a as En,$ as wa,cd as Yt,c0 as Xt,br as js}from"./3SdAC2_C.js";import{i as U}from"./bhKPSdq4.js";import{k as ya}from"./-K3ARgq0.js";import{c as Ct}from"./CUkDMZwP.js";import{b as xa,f as bt,c as un,s as we,g as Tn}from"./7UPrdiE9.js";import{t as $t,k as Vs}from"./CrD0jtXE.js";import{h as qs}from"./DCRuihKm.js";import{b as Zs,a as Hs}from"./QeBH-DWE.js";import{a as Gr,o as Jr,S as Gn,E as Ws,e as Rn}from"./fiz8N_zQ.js";import"./A9niI_uA.js";import"./CJ4Z96pe.js";import"./lJeex2Gh.js";import{r as Ks,e as Xs}from"./f24VwgrA.js";import{m as Gt}from"./BmTMWrby.js";import"./ChTqQfQN.js";import"./B4SiDSWP.js";import{jy as ir,Jv as le,i as Aa,u$ as Qs,bq as Ys,jB as Gs,yV as Js,yX as eo,ju as to,U as ea,V as ta,kc as tr,k8 as Jn,jY as na,kg as no,jL as ro,kd as ao,x4 as so,x5 as oo,x2 as io,jM as lo,kb as ra,k5 as co,jz as uo,nf as go,ne as po,jv as aa,rL as fo,k2 as vo,jA as mo,j$ as ho,jJ as sa,Lu as _o,jG as bo,ka as wo}from"./tr-2J8Mf.js";import{a_ as lr,dH as yo,O as xo,cU as Ao}from"./BaujsV9k.js";import{E as ka}from"./c5QZsH9t.js";import"./Bsh6nUhU.js";import{m as Sn,bF as ko,B as Io,bE as Ro,e as So,ai as Mo,bD as Co,bL as Po}from"./p9X2tUBM.js";import{u as Ia}from"./L_tYoUCb.js";import{d1 as Ra,al as Do,c$ as $o,a1 as Eo,bH as nr,be as cr,bj as Sa,bb as To,bk as zo,bA as Uo,by as Oo,bd as Lo,ba as No,cs as Bo,bv as Fo,bx as jo,bI as Vo,bD as qo,bl as Zo,bm as Ma,bL as Ho,bE as Wo,bz as Ko,bh as Xo,bG as Qo,bg as Yo,bn as oa,bi as ia,bf as la,bs as Go}from"./DVROSXw1.js";import{e as Jo}from"./DB7RVYiL.js";import{h as Ca,e as Pa,g as gt,i as gn,I as Da}from"./B6S6VNu7.js";import{b as Qt}from"./Dn334wJv.js";import{f as Oe,ae as ei}from"./FzlZUztb.js";import{T as ti}from"./CRZZ_hOy.js";import"./BWYuMy_r.js";import{c as ni}from"./D-62MVd3.js";import{P as zn}from"./ujhgjK1k.js";import{l as pn,k as $a,q as rr,i as ri}from"./CE7dsja4.js";import{F as kt,cn as ai,aS as si,bj as oi,Q as ii,cj as Ea,b7 as li,aZ as ci,bY as di,bF as ui,cd as gi,a6 as pi,$ as fi,d3 as vi,ad as mi}from"./U9jJmfYa.js";import{A as fn}from"./wl2qP2wF.js";import{B as Ta}from"./B8-Q1tED.js";import{parseIntentLink as hi}from"./DeHvIzqj.js";import{h as _i}from"./DIG1mTAN.js";import{M as bi}from"./DlliJA4a.js";import{a as wi}from"./Ba8ctcpl.js";import{T as za}from"./D51XIZYq.js";import{c as Ua,d as Oa}from"./BP5uGGO_.js";import"./DU3vNstz.js";import{i as yi}from"./BjLb7AHW.js";import{a2 as xi}from"./CMrw-y4l.js";import{a as Ai,A as ca}from"./BJ_CKcUH.js";import{I as ki}from"./BAKPnd3w.js";import{S as Ii}from"./C_KuQ05a.js";import{C as Ri}from"./D6dlPeEM.js";import{D as Si,p as Mi}from"./BP4Hm_tD.js";import{h as da,C as Ci}from"./CE7VCun2.js";import{g as Pi}from"./DWGXN6Nr.js";import{u as Di,n as $i}from"./EK6zOAHM.js";const Ei=/^!\[([^\]\n]*)\]\((workspace-asset:\/\/[^\s()]+)\)$/,Ti={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp"};function ar(s,n){const l=s.split(`
|
|
2
2
|
`),r=[];let a=l.length;for(;a>0;){const f=Ei.exec(l[a-1]);if(!f||!Ra(f[2],n))break;r.unshift({name:f[1],url:f[2]}),a--}if(!r.length)return{text:s,images:r};const u=l.slice(0,a).join(`
|
|
3
3
|
`);return{text:u.endsWith(`
|
|
4
4
|
`)?u.slice(0,-1):u,images:r}}function Mn(s,n){if(!n.length)return s;const l=n.map(({name:r,url:a})=>`![${r.replace(/[[\]()\\\n\r]/g,"").trim()||"image"}](${a})`);return s?`${s}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aZ as Ae,U as ke,Y as ae,b0 as Fe,V as Pe,a_ as ve,b as o,X as Vt,ay as bt,aW as Lt,B as Ce,r as Le,O as V,aV as Ee,a6 as De}from"./
|
|
1
|
+
import{aZ as Ae,U as ke,Y as ae,b0 as Fe,V as Pe,a_ as ve,b as o,X as Vt,ay as bt,aW as Lt,B as Ce,r as Le,O as V,aV as Ee,a6 as De}from"./cebxNJuC.js";import{l as ie}from"./9bukzQMK.js";var Et=(function(){var t=o(function(Y,r,l,x){for(l=l||{},x=Y.length;x--;l[Y[x]]=r);return l},"o"),n=[1,3],f=[1,4],d=[1,5],h=[1,6],p=[1,7],y=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],_=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],a=[55,56,57],k=[2,36],u=[1,37],T=[1,36],q=[1,38],m=[1,35],b=[1,43],g=[1,41],A=[1,45],ht=[1,14],xt=[1,23],ft=[1,18],gt=[1,19],ct=[1,20],_t=[1,21],dt=[1,22],i=[1,24],zt=[1,25],It=[1,26],wt=[1,27],Bt=[1,28],Rt=[1,29],U=[1,32],Q=[1,33],F=[1,34],P=[1,39],v=[1,40],C=[1,42],L=[1,44],X=[1,63],H=[1,62],E=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],Nt=[1,66],Wt=[1,67],Ut=[1,68],Qt=[1,69],Ot=[1,70],Xt=[1,71],Ht=[1,72],Mt=[1,73],Yt=[1,74],jt=[1,75],Gt=[1,76],Kt=[1,77],w=[4,5,6,7,8,9,10,11,12,13,14,15,18],K=[1,91],Z=[1,92],J=[1,93],$=[1,100],tt=[1,94],et=[1,97],it=[1,95],at=[1,96],nt=[1,98],st=[1,99],At=[1,103],Zt=[10,55,56,57],N=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],kt={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:o(function(r,l,x,c,S,e,ut){var s=e.length-1;switch(S){case 23:this.$=e[s];break;case 24:this.$=e[s-1]+""+e[s];break;case 26:this.$=e[s-1]+e[s];break;case 27:this.$=[e[s].trim()];break;case 28:e[s-2].push(e[s].trim()),this.$=e[s-2];break;case 29:this.$=e[s-4],c.addClass(e[s-2],e[s]);break;case 37:this.$=[];break;case 42:this.$=e[s].trim(),c.setDiagramTitle(this.$);break;case 43:this.$=e[s].trim(),c.setAccTitle(this.$);break;case 44:case 45:this.$=e[s].trim(),c.setAccDescription(this.$);break;case 46:c.addSection(e[s].substr(8)),this.$=e[s].substr(8);break;case 47:c.addPoint(e[s-3],"",e[s-1],e[s],[]);break;case 48:c.addPoint(e[s-4],e[s-3],e[s-1],e[s],[]);break;case 49:c.addPoint(e[s-4],"",e[s-2],e[s-1],e[s]);break;case 50:c.addPoint(e[s-5],e[s-4],e[s-2],e[s-1],e[s]);break;case 51:c.setXAxisLeftText(e[s-2]),c.setXAxisRightText(e[s]);break;case 52:e[s-1].text+=" ⟶ ",c.setXAxisLeftText(e[s-1]);break;case 53:c.setXAxisLeftText(e[s]);break;case 54:c.setYAxisBottomText(e[s-2]),c.setYAxisTopText(e[s]);break;case 55:e[s-1].text+=" ⟶ ",c.setYAxisBottomText(e[s-1]);break;case 56:c.setYAxisBottomText(e[s]);break;case 57:c.setQuadrant1Text(e[s]);break;case 58:c.setQuadrant2Text(e[s]);break;case 59:c.setQuadrant3Text(e[s]);break;case 60:c.setQuadrant4Text(e[s]);break;case 64:this.$={text:e[s],type:"text"};break;case 65:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 66:this.$={text:e[s],type:"text"};break;case 67:this.$={text:e[s],type:"markdown"};break;case 68:this.$=e[s];break;case 69:this.$=e[s-1]+""+e[s];break}},"anonymous"),table:[{18:n,26:1,27:2,28:f,55:d,56:h,57:p},{1:[3]},{18:n,26:8,27:2,28:f,55:d,56:h,57:p},{18:n,26:9,27:2,28:f,55:d,56:h,57:p},t(y,[2,33],{29:10}),t(_,[2,61]),t(_,[2,62]),t(_,[2,63]),{1:[2,30]},{1:[2,31]},t(a,k,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:u,5:T,10:q,12:m,13:b,14:g,15:A,18:ht,25:xt,35:ft,37:gt,39:ct,41:_t,42:dt,48:i,50:zt,51:It,52:wt,53:Bt,54:Rt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(y,[2,34]),{27:46,55:d,56:h,57:p},t(a,[2,37]),t(a,k,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:u,5:T,10:q,12:m,13:b,14:g,15:A,18:ht,25:xt,35:ft,37:gt,39:ct,41:_t,42:dt,48:i,50:zt,51:It,52:wt,53:Bt,54:Rt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(a,[2,39]),t(a,[2,40]),t(a,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(a,[2,45]),t(a,[2,46]),{18:[1,51]},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:52,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:53,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:54,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:55,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:56,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:57,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,44:[1,58],47:[1,59],58:61,59:60,63:F,64:P,65:v,66:C,67:L},t(E,[2,64]),t(E,[2,66]),t(E,[2,67]),t(E,[2,70]),t(E,[2,71]),t(E,[2,72]),t(E,[2,73]),t(E,[2,74]),t(E,[2,75]),t(E,[2,76]),t(E,[2,77]),t(E,[2,78]),t(E,[2,79]),t(E,[2,80]),t(E,[2,81]),t(y,[2,35]),t(a,[2,38]),t(a,[2,42]),t(a,[2,43]),t(a,[2,44]),{3:65,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Xt,10:Ht,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,21:64},t(a,[2,53],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,49:[1,78],63:F,64:P,65:v,66:C,67:L}),t(a,[2,56],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,49:[1,79],63:F,64:P,65:v,66:C,67:L}),t(a,[2,57],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,58],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,59],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,60],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),{45:[1,80]},{44:[1,81]},t(E,[2,65]),t(E,[2,82]),t(E,[2,83]),t(E,[2,84]),{3:83,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Xt,10:Ht,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,18:[1,82]},t(w,[2,23]),t(w,[2,1]),t(w,[2,2]),t(w,[2,3]),t(w,[2,4]),t(w,[2,5]),t(w,[2,6]),t(w,[2,7]),t(w,[2,8]),t(w,[2,9]),t(w,[2,10]),t(w,[2,11]),t(w,[2,12]),t(a,[2,52],{58:31,43:84,4:u,5:T,10:q,12:m,13:b,14:g,15:A,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(a,[2,55],{58:31,43:85,4:u,5:T,10:q,12:m,13:b,14:g,15:A,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),{46:[1,86]},{45:[1,87]},{4:K,5:Z,6:J,8:$,11:tt,13:et,16:90,17:it,18:at,19:nt,20:st,22:89,23:88},t(w,[2,24]),t(a,[2,51],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,54],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,47],{22:89,16:90,23:101,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),{46:[1,102]},t(a,[2,29],{10:At}),t(Zt,[2,27],{16:104,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),t(N,[2,25]),t(N,[2,13]),t(N,[2,14]),t(N,[2,15]),t(N,[2,16]),t(N,[2,17]),t(N,[2,18]),t(N,[2,19]),t(N,[2,20]),t(N,[2,21]),t(N,[2,22]),t(a,[2,49],{10:At}),t(a,[2,48],{22:89,16:90,23:105,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),{4:K,5:Z,6:J,8:$,11:tt,13:et,16:90,17:it,18:at,19:nt,20:st,22:106},t(N,[2,26]),t(a,[2,50],{10:At}),t(Zt,[2,28],{16:104,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st})],defaultActions:{8:[2,30],9:[2,31]},parseError:o(function(r,l){if(l.recoverable)this.trace(r);else{var x=new Error(r);throw x.hash=l,x}},"parseError"),parse:o(function(r){var l=this,x=[0],c=[],S=[null],e=[],ut=this.table,s="",yt=0,Jt=0,me=2,$t=1,be=e.slice.call(arguments,1),D=Object.create(this.lexer),j={yy:{}};for(var Ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ft)&&(j.yy[Ft]=this.yy[Ft]);D.setInput(r,j.yy),j.yy.lexer=D,j.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Pt=D.yylloc;e.push(Pt);var Se=D.options&&D.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _e(R){x.length=x.length-2*R,S.length=S.length-R,e.length=e.length-R}o(_e,"popStack");function te(){var R;return R=c.pop()||D.lex()||$t,typeof R!="number"&&(R instanceof Array&&(c=R,R=c.pop()),R=l.symbols_[R]||R),R}o(te,"lex");for(var B,G,W,vt,rt={},Tt,M,ee,qt;;){if(G=x[x.length-1],this.defaultActions[G]?W=this.defaultActions[G]:((B===null||typeof B>"u")&&(B=te()),W=ut[G]&&ut[G][B]),typeof W>"u"||!W.length||!W[0]){var Ct="";qt=[];for(Tt in ut[G])this.terminals_[Tt]&&Tt>me&&qt.push("'"+this.terminals_[Tt]+"'");D.showPosition?Ct="Parse error on line "+(yt+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+qt.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Ct="Parse error on line "+(yt+1)+": Unexpected "+(B==$t?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Ct,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:Pt,expected:qt})}if(W[0]instanceof Array&&W.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+B);switch(W[0]){case 1:x.push(B),S.push(D.yytext),e.push(D.yylloc),x.push(W[1]),B=null,Jt=D.yyleng,s=D.yytext,yt=D.yylineno,Pt=D.yylloc;break;case 2:if(M=this.productions_[W[1]][1],rt.$=S[S.length-M],rt._$={first_line:e[e.length-(M||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(M||1)].first_column,last_column:e[e.length-1].last_column},Se&&(rt._$.range=[e[e.length-(M||1)].range[0],e[e.length-1].range[1]]),vt=this.performAction.apply(rt,[s,Jt,yt,j.yy,W[1],S,e].concat(be)),typeof vt<"u")return vt;M&&(x=x.slice(0,-1*M*2),S=S.slice(0,-1*M),e=e.slice(0,-1*M)),x.push(this.productions_[W[1]][0]),S.push(rt.$),e.push(rt._$),ee=ut[x[x.length-2]][x[x.length-1]],x.push(ee);break;case 3:return!0}}return!0},"parse")},qe=(function(){var Y={EOF:1,parseError:o(function(l,x){if(this.yy.parser)this.yy.parser.parseError(l,x);else throw new Error(l)},"parseError"),setInput:o(function(r,l){return this.yy=l||this.yy||{},this._input=r,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:o(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:o(function(r){var l=r.length,x=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var c=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),x.length-1&&(this.yylineno-=x.length-1);var S=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:x?(x.length===c.length?this.yylloc.first_column:0)+c[c.length-x.length].length-x[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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:o(function(r){this.unput(this.match.slice(r))},"less"),pastInput:o(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h7 as O,gP as J,JJ as P,Kx as U,Dv as
|
|
1
|
+
import{h7 as O,gP as J,JJ as P,Kx as U,Dv as j,u4 as q,v1 as K,A_ as N,A$ as V,JH as z,JI as Q,B0 as X}from"./tr-2J8Mf.js";import{selectWorkspaceTabOrder as f,selectCurrentWorkspaceTabId as S,selectLastClosedWorkspaceTab as Y}from"./S845NCb3.js";import{i as Z,q as M,b as ee,j as te,l as ae}from"./EK6zOAHM.js";import{g as ne}from"./DE7dSDHO.js";import{bm as l}from"./C0QTy0Sy.js";import{z as oe,S as y}from"./DCRuihKm.js";import{B as h,S as C,Q as ce}from"./Bqd7fdCF.js";import{al as le,aj as E}from"./DEVX5wOm.js";import{g as se}from"./hHMYoFyG.js";function A(e,a){const n=f.select(e.state),o=S.select(e.state);if(!o)return null;const c=n.indexOf(o),s=c+(a==="left"?-1:1),p=n[s];return c<0||!p?null:(e.dispatch(q(o,p,a==="left"?"before":"after")),o)}function B(e){const a=S.select(e);return a&&f.select(e).includes(a)?a:null}function m(e,a,n){const o=B(e.state),c=o?`/workspace/${o}`:ne(e.state);return a!==c&&n(c),o}function ie(e,a,n,o){return e.dispatch(O(a)),m(e,n,o),a}function I(e,a){const o=a.match(/^\/workspace\/([^/]+)/)?.[1];return o?o==="new"?null:o:null}function R(e,a,n,o){if(n==="/")return D(e,a==="next"?0:"last",n,o);e.dispatch(a==="next"?z():Q());const c=S.select(e.state);if(!c)return null;const s=`/workspace/${c}`;return n!==s&&o(s),c}function re(e,a,n){const o=I(e,a);return o?ie(e,o,a,n):null}function pe(e,a,n){const o=I(e,a);if(!o)return null;const c=Z.select(e.state,o);if(!c)return null;const s=c.tabs.find(v=>v.id===c.activeTabId),p=c.tabs.length===0&&c.activeTabId===null,g=M.select(e.state,o)>1&&(p||c.tabs.length===1&&s!==void 0&&s.closable!==!1);if((!s||s.closable===!1)&&!g)return null;const T=n??se(o)?.availableCanvasWidth??void 0;return e.dispatch(J(o,void 0,T)),s?.id??c.id}function ue(e,a){const n=e.state.panelLayout.byWorkspaceId[a];return!n||n.restoreStatus==="pending"?!1:ee.select(e.state,a).length===0}function de(e,a,n){B(e.state)||e.dispatch(P(0)),m(e,a,n)}function L(e,a,{navigate:n,closeWindow:o}){return o?(o(),"window"):(m(e,a,n),null)}function be(e,a,n){const o=I(e,a);return o?pe(e,a,n.availableCanvasWidth)!==null?"panel":ue(e,o)?(e.dispatch(O(o)),f.select(e.state).length>0?(de(e,a,n.navigate),"workspace"):L(e,a,n)??"workspace"):null:f.select(e.state).length>0?null:L(e,a,n)}function fe(e,a,n){return e.dispatch(X()),m(e,a,n)}function ke(e,a,n){const o=a.match(/^\/workspace\/([^/]+)/),c=o&&o[1]!=="new"?o[1]:null,s=Y.select(e.state),p=c?ae.select(e.state,c):null;return c&&p&&(!s||p.closedAt>=s.closedAt)?p.kind==="column"?(e.dispatch(N(c)),"column"):(e.dispatch(V(c)),p.kind):s?(fe(e,a,n),"workspace"):null}function _e(e,a){const n=a.match(/^\/workspace\/([^/]+)/),o=n&&n[1]!=="new"?n[1]:null;if(!o)return null;const c=K(o);return e.dispatch(c),te.select(e.state,o)}function D(e,a,n,o){const c=f.select(e.state),s=a==="last"?c.length-1:a;return s<0||s>=c.length?null:(e.dispatch(P(s)),m(e,n,o))}function We({isMac:e,register:a,store:n,getCurrentPath:o,navigate:c,openNewWorkspace:s,getRailMachineIds:p,onCreateAgent:g,onCreateNote:T,onCreateTerminal:v,onCreateBrowser:$,onWorkspaceTabMoved:W,closeWindow:F,resolveBinding:w}){const r=e?{meta:!0}:{ctrl:!0},G=oe("TOGGLE_SIDEBAR",e),k=t=>()=>t(o()),H=t=>()=>{const i=o().match(/^\/workspace\/([^/]+)/);i?.[1]&&i[1]!=="new"&&t(i[1])},u=t=>w?{binding:()=>w(t)}:{},_=t=>w?.(t)??ce(t);a({...u("global.new-space"),...r,key:"n",global:!0,description:l.workspace_shortcuts_newSpace_description(),action:s}),a({...u("panel.toggle-sidebar"),...G,global:!0,description:y.TOGGLE_SIDEBAR.label,action:()=>n.dispatch(U())}),a({...u("navigation.new-tab"),...r,key:"t",global:!0,description:l.workspace_shortcuts_newPanel_description(),action:k(t=>_e(n,t))});for(const[t,i,b,d]of[["workspace.new-agent","a",l.ui_shortcuts_newAgent_label(),g],["workspace.new-note","n",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_note_label()}),T],["workspace.new-terminal","t",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_terminal_label()}),v],["workspace.new-browser","b",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_browser_label()}),$]])d&&a({...u(t),...r,key:i,alt:!0,global:!0,allowInTerminal:!0,description:b,action:H(d)});a({...u("navigation.close-tab"),...r,key:"w",global:!0,description:l.workspace_shortcuts_closePanelTab_description(),action:k(t=>be(n,t,{navigate:c,closeWindow:F}))}),a({...u("navigation.close-space-tab"),...r,key:"w",shift:!0,global:!0,description:l.workspace_shortcuts_closeSpaceTab_description(),action:k(t=>re(n,t,c))}),a({...u("navigation.reopen-tab"),...r,key:"t",shift:!0,global:!0,description:l.workspace_shortcuts_reopenClosedTabOrSpace_description(),action:k(t=>ke(n,t,c))}),a({...u("navigation.move-space-tab-left"),...r,key:"ArrowLeft",alt:!0,shift:!0,global:!0,description:y.MOVE_SPACE_TAB_LEFT.label,action:()=>{const t=A(n,"left");t&&W?.({workspaceId:t,position:f.select(n.state).indexOf(t)+1})}}),a({...u("navigation.move-space-tab-right"),...r,key:"ArrowRight",alt:!0,shift:!0,global:!0,description:y.MOVE_SPACE_TAB_RIGHT.label,action:()=>{const t=A(n,"right");t&&W?.({workspaceId:t,position:f.select(n.state).indexOf(t)+1})}});for(const[t,i]of[["next",!1],["previous",!0]]){a({...u(t==="next"?"global.next-space":"global.previous-space"),key:"Tab",ctrl:!0,shift:i,global:!0,description:t==="next"?l.workspace_shortcuts_nextSpaceTab_description():l.workspace_shortcuts_previousSpaceTab_description(),action:k(d=>R(n,t,d,c))});const b=t==="next"?"global.next-space-alt":"global.previous-space-alt";a({...u(b),...r,key:t==="next"?"}":"{",shift:!0,global:!0,allowInTerminal:!0,preferLocal:!0,enabled:d=>!w||!h(b,d,w,e),description:t==="next"?l.workspace_shortcuts_nextSpaceTab_description():l.workspace_shortcuts_previousSpaceTab_description(),action:k(d=>R(n,t,d,c))})}const x=t=>{t===1?c("/"):D(n,t===9?"last":t-2,o(),c)};for(let t=1;t<=9;t++)a({...r,key:String(t),binding:()=>_("navigation.go-to-device").replace(/([1-8])-9$/,String(t)),global:!0,allowInTerminal:!0,enabled:i=>E.select(n.state)&&!h("navigation.go-to-device",i,_,e),description:l.machineRail_nav_ariaLabel(),action:()=>{const i=p?.()??le.select(n.state).map(d=>d.id),b=i[t===9?i.length-1:t-1];b&&n.dispatch(j(b))}});for(let t=1;t<=9;t++)a({...r,key:String(t),binding:()=>C["navigation.go-to-device"].replace(/([1-8])-9$/,String(t)),global:!0,allowInTerminal:!0,enabled:i=>!E.select(n.state)&&_("navigation.go-to-tab")===C["navigation.go-to-tab"]&&!h("navigation.go-to-device",i,_,e),description:l.ui_shortcuts_goToTab_label(),action:()=>x(t)});for(let t=1;t<=9;t++)a({binding:()=>_("navigation.go-to-tab").replace(/([1-8])-9$/,String(t)),...r,alt:!0,key:String(t),global:!0,allowInTerminal:!0,enabled:i=>!h("navigation.go-to-tab",i,_,e),description:t===1?l.home_navigation_description():t===9?l.workspace_shortcuts_selectLastSpaceTab_description():l.workspace_shortcuts_selectSpaceTab_description({digit:t}),action:()=>x(t)})}export{be as c,We as r};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{bm as v,_ as h}from"./3Mdoz-0Q.js";import{a as S}from"./BdWqymET.js";import{bq as A,Jv as k,m as T,H_ as C,G_ as D,vt as j,vr as B,vI as V,nE as z}from"./DmuzFYIt.js";import{bL as $}from"./DI8QKtVI.js";import{m as R}from"./KkEpTlxU.js";import"./3SdAC2_C.js";import"./kR4OBGp8.js";import"./BOfUqw1E.js";import{R as N,F as g,E as G,Q as O}from"./CWzES__t.js";import"./ChTqQfQN.js";import"./UxmdIyM3.js";import{o as q}from"./ByHhzwUN.js";import{i as F}from"./BBWuirRW.js";const y=new WeakMap;function ye(e,t){const a=n=>{n&&n!=="new"?y.set(e,n):y.delete(e)};return a(t),{update:a,destroy(){y.delete(e)}}}function K(e){for(let t=e;t;t=t.parentElement){const a=y.get(t);if(a)return a}}function J(e,t){const a=e?.closest("[data-workspace-link-target]")?.dataset.workspaceLinkTarget;return{openInWorkspace:!!t&&a===t,panelId:e?.closest("[data-panel-id]")?.dataset.panelId,assistantLayoutId:e?.closest("[data-assistant-layout-id]")?.dataset.assistantLayoutId,surfaceWorkspaceId:K(e)}}const s=new S("LinkHandler");async function Q(e,t){try{const a=t.event?.target,n=J(a instanceof Element?a:null,t.workspaceId),o=t.openInWorkspace??n.openInWorkspace,r=o?void 0:t.sourcePanelId||n.panelId,{assistantLayoutId:l}=n,u=t.workspaceId??(n.surfaceWorkspaceId?A(n.surfaceWorkspaceId):void 0);if(t={...t,workspaceId:u,openInWorkspace:o,sourcePanelId:r},t.customHandler&&await t.customHandler(e))return s.debug("Link handled by custom handler",{url:e}),!0;if(/^workspace-asset:/i.test(e.trim()))return R.error(v.ui_linkHandler_assetUnavailable_error()),!1;const i=N(e),{event:d}=t,f=i&&d&&!g(t)?t.githubLinkDefaultAction??q.select(k.state):void 0,c=!f||f==="open-in-app";if(t.workspaceId===T&&!t.forceExternal&&c){const{showAssistantContent:m}=await h(async()=>{const{showAssistantContent:_}=await import("./BYbQHOnI.js");return{showAssistantContent:_}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44]),import.meta.url),I=t.rawHref?.startsWith("/workspace/")?t.rawHref:e;if(await m(I,{layoutId:l}))return!0}if(e.startsWith("intent://"))return await X(e,{...t,sourcePanelId:r});if(e.startsWith("devspace://"))return await Y(e,{...t,sourcePanelId:r});const p=ne(e,t.rawHref);if(p)return await re(p.path,{...t,sourcePanelId:r},p.fromResolvedUrl);if(e.startsWith("http://")||e.startsWith("https://")){if(G(e))return s.debug("Auth URL detected, opening in external browser",{url:e}),await w(e);if(t.forceExternal)return await w(e);if(o&&c||g(t))return t.workspaceId?await E(e,t.workspaceId,{...t,assistantLayoutId:l}):(s.debug("No workspaceId available, opening in external browser",{url:e}),await w(e));if(i&&d&&f)switch(f){case"open-in-browser":return await w(e);case"open-in-app":return t.workspaceId?await E(e,t.workspaceId,{...t,assistantLayoutId:l}):await w(e);case"copy-link":return await $(e),!0;case"start-workspace":return k.dispatch(C({...i,url:e})),k.dispatch(D(!0)),!0;case"show-choices":return await oe(e,i,d,t,l)}return await w(e)}return e.startsWith("file://")?t.canOpenFile?.()===!1?!1:await H(e):(s.warn("Unknown link type, falling back to external browser",{url:e}),await w(e))}catch(a){return s.error("Failed to handle link",{url:e,error:a}),!1}}async function X(e,t){try{const{parseIntentLink:a,handleIntentLink:n}=await h(async()=>{const{parseIntentLink:l,handleIntentLink:u}=await import("./DILbaYr6.js");return{parseIntentLink:l,handleIntentLink:u}},__vite__mapDeps([24,1,2,25,11,7,26,16,8,17,27,28,29,14,15,10,18,30,31,32,33,3,4,5,6,9,34,35,36,37,38,39,40,22,41,42,23]),import.meta.url),o=a(e);if(t.canOpenFile&&o.type==="file"&&!t.canOpenFile())return!1;const r=o.workspaceId?A(o.workspaceId):t.workspaceId;return o.valid&&o.type!=="workspace"&&await L(r,t),P(t),await n(e,{workspaceId:t.openInWorkspace?r:t.workspaceId,sourcePanelId:t.sourcePanelId,openInAdjacentPanel:t.openInAdjacentPanel??g(t),openInNewAdjacentPanel:t.openInNewAdjacentPanel??!1})}catch(a){return s.error("Failed to handle intent link",{url:e,error:a}),!1}}async function Y(e,t){try{const a=e.match(/^devspace:\/\/terminal\/(.+)$/);if(a){if(!t.workspaceId)return s.warn("Cannot open terminal without workspaceId",{url:e}),!1;const n=decodeURIComponent(a[1]);s.debug("Opening terminal from devspace link",{terminalId:n,workspaceId:t.workspaceId}),await L(t.workspaceId,t),P(t);const o={type:"terminal",title:v.layout_tabTypes_terminal_title(),terminalId:n,closable:!0};return g(t)?k.dispatch(j(t.workspaceId,o,t.sourcePanelId)):k.dispatch(B(t.workspaceId,o)),!0}return s.warn("Unhandled devspace:// link type",{url:e}),!1}catch(a){return s.error("Failed to handle devspace link",{url:e,error:a}),!1}}const Z=/^[a-z][a-z0-9+.-]*:/i,x=/^[a-z]:\/(?!\/)/i;function W(e){return e.replace(/\\/g,"/")}function ee(e){try{return W(decodeURIComponent(e))}catch{return null}}function te(e){return e.split("/").some(t=>t==="..")}function ae(e){const t=e.split("/").filter(a=>a&&a!==".");return t.length===0||t.some(a=>a==="..")?null:t.join("/")}async function L(e,t){if(!t.openInWorkspace||!e)return;const{openAndShowWorkspace:a}=await h(async()=>{const{openAndShowWorkspace:n}=await import("./DCYhtokL.js").then(o=>o.s);return{openAndShowWorkspace:n}},__vite__mapDeps([45,4,2,3,5,6,7,8,1,9,10,11,46,47]),import.meta.url);try{await a(e)}catch(n){throw R.error(v.ui_linkHandler_navigationFailed_title(),{description:n instanceof Error?n.message:v.ui_linkHandler_unknownError_label()}),n}}function P(e){!e.workspaceId||!e.sourcePanelId||k.dispatch(z(e.workspaceId,e.sourcePanelId))}function ne(e,t){const a=t??e;if(a){if(a.startsWith("#"))return null;const n=O(a).path;if(!a.startsWith("//")&&(x.test(W(n))||!Z.test(n)))return{path:a,fromResolvedUrl:!1}}if((e.startsWith("http://")||e.startsWith("https://"))&&typeof window<"u")try{const n=new URL(e);if(n.origin===window.location.origin)return{path:n.pathname+n.hash,fromResolvedUrl:!0}}catch{}return null}async function re(e,t,a){try{if(t.canOpenFile?.()===!1)return!1;const n=O(e),o=ee(n.path);if(!o||o.includes("\0"))return!1;let r=o;const{line:l,column:u}=n,{workspaceId:i}=t;if(!i)return s.warn("Cannot open file link without workspaceId",{path:r}),!1;if(te(r))return s.warn("Rejected file link with path traversal",{path:r}),!1;if(r.startsWith("/")||x.test(r)){const{selectWorkspaceById:c}=await h(async()=>{const{selectWorkspaceById:b}=await import("./E8rxDAT1.js").then(M=>M.ee);return{selectWorkspaceById:b}},__vite__mapDeps([40,10,7,1,2,3,4,5,6,8,9,11,35,30,26,16,17,29,22,14,15,18,41,32]),import.meta.url),p=c.select(k.state,i),m=p?.worktreePath??p?.path,I=m?W(m):void 0,_=I?.endsWith("/")?I.slice(0,-1):I;if(_&&r.startsWith(`${_}/`))r=r.slice(_.length+1);else if(a)r=r.replace(/^\/+/,"");else{s.debug("Absolute path outside workspace root, opening in external editor",{path:r});const b=l===void 0?"":`:${l}${u===void 0?"":`:${u}`}`;return await H(`file://${r}${b}`)}}const d=ae(r);if(!d)return s.warn("Rejected invalid workspace file link",{path:r}),!1;r=d;const f=g(t);return await L(i,t),P(t),k.dispatch(V(i,r,{filePathIsLiteral:!0,line:l,openInAdjacentPanel:f,...t.sourcePanelId?{sourcePanelId:t.sourcePanelId}:{}})),s.debug("Opened file link in workspace file viewer",{path:r,workspaceId:i,line:l}),!0}catch(n){return s.error("Failed to open file link",{target:e,error:n}),!1}}async function oe(e,t,a,{workspaceId:n,openInWorkspace:o,sourcePanelId:r},l){try{const{showLinkActionMenu:u}=await h(async()=>{const{showLinkActionMenu:p}=await import("./CGcJ5lqH.js");return{showLinkActionMenu:p}},__vite__mapDeps([48,2]),import.meta.url),i=a.target instanceof HTMLElement?a.target:null;let d=a instanceof MouseEvent?a.clientX:0,f=a instanceof MouseEvent?a.clientY:0;if(d===0&&f===0&&i){const p=i.getBoundingClientRect();d=p.left,f=p.bottom}const c=u({url:e,gitHubRef:t,x:d,y:f,workspaceId:n,anchorElement:i,openInWorkspace:o??!1,sourcePanelId:r,assistantLayoutId:l});return t.kind==="pr"&&se(c,e),s.debug("Opened link action menu",{url:e,workspaceId:n}),!0}catch(u){return s.warn("Failed to open link action menu, falling back to external browser",{url:e,error:u}),await w(e)}}function se(e,t){h(async()=>{const{loadLinkActionMenuLinkedWorkspaces:a}=await import("./CtZ1IYsK.js");return{loadLinkActionMenuLinkedWorkspaces:a}},__vite__mapDeps([49,12,13,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,40,35,30,26,29,41,32,48]),import.meta.url).then(({loadLinkActionMenuLinkedWorkspaces:a})=>a(e,t)).catch(a=>{s.debug("PR workspace lookup unavailable",{url:t,error:a})})}async function ie(e){try{return await L(e,{openInWorkspace:!0}),!0}catch(t){return s.warn("Failed to open linked workspace",{workspaceId:e,error:t}),!1}}async function E(e,t,a={}){if(t===T){try{const{showAssistantContent:o}=await h(async()=>{const{showAssistantContent:r}=await import("./BYbQHOnI.js");return{showAssistantContent:r}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44]),import.meta.url);if(await o(e,{layoutId:a.assistantLayoutId}))return!0}catch(o){s.warn("Assistant panel unavailable, opening in external browser",{url:e,error:o})}return await w(e)}try{await L(t,a)}catch(o){return s.warn("Failed to enter workspace for in-app link",{url:e,workspaceId:t,error:o}),!1}const n=a.openInWorkspace?void 0:a.sourcePanelId;return await U(e,t,n)}async function U(e,t,a){let n=e,o;try{const{resolveBrowserLinkForOpen:r}=await h(async()=>{const{resolveBrowserLinkForOpen:u}=await import("./yD1qfwqe.js").then(i=>i.b);return{resolveBrowserLinkForOpen:u}},__vite__mapDeps([50,25,11,7,1,2,26,16,8,17,27,28,29,14,15,10,18,30,31,32,33,3,4,5,6,9,34,35,36,37,38,39]),import.meta.url),l=await r(e);n=l.url,o=l.requestedUrl}catch(r){s.warn("URL resolution failed, opening the URL unresolved",{url:e,error:r})}try{P({workspaceId:t,sourcePanelId:a});const{getPanelLayoutManager:r}=await h(async()=>{const{getPanelLayoutManager:u}=await import("./Dt46PcSf.js").then(i=>i.p);return{getPanelLayoutManager:u}},__vite__mapDeps([51,3,4,2,5,6,7,8,1,9,10,11,43]),import.meta.url);return r(t).openBrowserPanel(n,void 0,a,o),s.debug("Opened URL in browser panel",{url:e,targetUrl:n,workspaceId:t}),!0}catch(r){return s.warn("Failed to open URL in browser panel, falling back to external browser",{url:e,error:r}),await w(n)}}async function w(e){try{return await F("shell:openExternal",{url:e}),s.debug("Opened URL in external browser",{url:e}),!0}catch(t){return s.error("Failed to open URL in external browser",{url:e,error:t}),!1}}async function H(e){try{const t=e.replace("file://","");return typeof window<"u"&&window.electronAPI?(await F("shell:openExternal",{url:`vscode://file/${t}`}),s.debug("Opened file in external editor",{filePath:t}),!0):!1}catch(t){return s.error("Failed to open file in external editor",{url:e,error:t}),!1}}function ce(e,t={}){let a=null,n=null,o=null;async function r(){if(!n||!o){const d=await h(()=>import("./CWzES__t.js").then(f=>f.K),__vite__mapDeps([14,1,2,11,7,15,10,16,8,17,18]),import.meta.url);n=d.showLinkTooltip,o=d.hideLinkTooltip}}function l(d){const c=d.target.closest("a");if(c?.href&&!c.href.startsWith("intent://")&&!c.href.startsWith("devspace://")){if(c===a)return;a=c;const p=t.workspaceId??c.closest("[data-workspace-id]")?.dataset.workspaceId??c.closest("[data-workspace-surface]")?.dataset.workspaceSurface;r().then(()=>{a===c&&n&&n(c,c.href,p)})}else a&&(a=null,o?.())}function u(d){const c=d.target.closest("a");if(c&&c===a){const p=d.relatedTarget;if(p&&c.contains(p))return;a=null,o?.()}}function i(){a&&(a=null,o?.())}return e.addEventListener("mouseover",l),e.addEventListener("mouseout",u),e.addEventListener("click",i),()=>{e.removeEventListener("mouseover",l),e.removeEventListener("mouseout",u),e.removeEventListener("click",i),o?.()}}const ve=Object.freeze(Object.defineProperty({__proto__:null,createLinkTooltipHandler:ce,handleLink:Q,openInBrowserPanel:U,openInExternalBrowser:w,openLinkInApp:E,openLinkedWorkspace:ie},Symbol.toStringTag,{value:"Module"}));export{E as a,ie as b,ce as c,Q as h,ve as l,w as o,J as r,ye as w};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DlJZrxef.js","/app/immutable/chunks/C0QTy0Sy.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/tr-2J8Mf.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/DX-Wrapd.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CrD0jtXE.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/C6mS8uZB.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/DCRuihKm.js","/app/immutable/chunks/C7LIHk5_.js","/app/immutable/chunks/7UPrdiE9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DwL1A1su.js","/app/immutable/chunks/DeHvIzqj.js","/app/immutable/chunks/BmTMWrby.js","/app/immutable/chunks/bhKPSdq4.js","/app/immutable/chunks/FzlZUztb.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/B6S6VNu7.js","/app/immutable/chunks/CUkDMZwP.js","/app/immutable/chunks/-K3ARgq0.js","/app/immutable/chunks/CE7dsja4.js","/app/immutable/chunks/B4SiDSWP.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/U9jJmfYa.js","/app/immutable/chunks/DLwWVKiF.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/BaujsV9k.js","/app/immutable/chunks/L_tYoUCb.js","/app/immutable/chunks/S845NCb3.js","/app/immutable/chunks/EK6zOAHM.js","/app/immutable/chunks/B2nCyo89.js","/app/immutable/chunks/CPTZJWC9.js","/app/immutable/chunks/COhRCR9P.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/CGcJ5lqH.js","/app/immutable/chunks/BxJ6X-Sl.js","/app/immutable/chunks/ozVAo4aX.js","/app/immutable/chunks/DA5opfEp.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bm as v,_ as h}from"./C0QTy0Sy.js";import{a as S}from"./BdWqymET.js";import{bq as A,Jv as k,m as T,H_ as C,G_ as D,vt as j,vr as B,vI as V,nE as z}from"./tr-2J8Mf.js";import{bL as $}from"./p9X2tUBM.js";import{m as R}from"./BmTMWrby.js";import"./3SdAC2_C.js";import"./7UPrdiE9.js";import"./CrD0jtXE.js";import{R as N,F as g,E as G,Q as O}from"./DCRuihKm.js";import"./ChTqQfQN.js";import"./B4SiDSWP.js";import{o as q}from"./L_tYoUCb.js";import{i as F}from"./BBWuirRW.js";const y=new WeakMap;function ye(e,t){const a=n=>{n&&n!=="new"?y.set(e,n):y.delete(e)};return a(t),{update:a,destroy(){y.delete(e)}}}function K(e){for(let t=e;t;t=t.parentElement){const a=y.get(t);if(a)return a}}function J(e,t){const a=e?.closest("[data-workspace-link-target]")?.dataset.workspaceLinkTarget;return{openInWorkspace:!!t&&a===t,panelId:e?.closest("[data-panel-id]")?.dataset.panelId,assistantLayoutId:e?.closest("[data-assistant-layout-id]")?.dataset.assistantLayoutId,surfaceWorkspaceId:K(e)}}const s=new S("LinkHandler");async function Q(e,t){try{const a=t.event?.target,n=J(a instanceof Element?a:null,t.workspaceId),o=t.openInWorkspace??n.openInWorkspace,r=o?void 0:t.sourcePanelId||n.panelId,{assistantLayoutId:l}=n,u=t.workspaceId??(n.surfaceWorkspaceId?A(n.surfaceWorkspaceId):void 0);if(t={...t,workspaceId:u,openInWorkspace:o,sourcePanelId:r},t.customHandler&&await t.customHandler(e))return s.debug("Link handled by custom handler",{url:e}),!0;if(/^workspace-asset:/i.test(e.trim()))return R.error(v.ui_linkHandler_assetUnavailable_error()),!1;const i=N(e),{event:d}=t,f=i&&d&&!g(t)?t.githubLinkDefaultAction??q.select(k.state):void 0,c=!f||f==="open-in-app";if(t.workspaceId===T&&!t.forceExternal&&c){const{showAssistantContent:m}=await h(async()=>{const{showAssistantContent:_}=await import("./DlJZrxef.js");return{showAssistantContent:_}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44]),import.meta.url),I=t.rawHref?.startsWith("/workspace/")?t.rawHref:e;if(await m(I,{layoutId:l}))return!0}if(e.startsWith("intent://"))return await X(e,{...t,sourcePanelId:r});if(e.startsWith("devspace://"))return await Y(e,{...t,sourcePanelId:r});const p=ne(e,t.rawHref);if(p)return await re(p.path,{...t,sourcePanelId:r},p.fromResolvedUrl);if(e.startsWith("http://")||e.startsWith("https://")){if(G(e))return s.debug("Auth URL detected, opening in external browser",{url:e}),await w(e);if(t.forceExternal)return await w(e);if(o&&c||g(t))return t.workspaceId?await E(e,t.workspaceId,{...t,assistantLayoutId:l}):(s.debug("No workspaceId available, opening in external browser",{url:e}),await w(e));if(i&&d&&f)switch(f){case"open-in-browser":return await w(e);case"open-in-app":return t.workspaceId?await E(e,t.workspaceId,{...t,assistantLayoutId:l}):await w(e);case"copy-link":return await $(e),!0;case"start-workspace":return k.dispatch(C({...i,url:e})),k.dispatch(D(!0)),!0;case"show-choices":return await oe(e,i,d,t,l)}return await w(e)}return e.startsWith("file://")?t.canOpenFile?.()===!1?!1:await H(e):(s.warn("Unknown link type, falling back to external browser",{url:e}),await w(e))}catch(a){return s.error("Failed to handle link",{url:e,error:a}),!1}}async function X(e,t){try{const{parseIntentLink:a,handleIntentLink:n}=await h(async()=>{const{parseIntentLink:l,handleIntentLink:u}=await import("./DeHvIzqj.js");return{parseIntentLink:l,handleIntentLink:u}},__vite__mapDeps([24,1,2,25,11,7,26,16,8,17,27,28,29,14,15,10,18,30,31,32,33,3,4,5,6,9,34,35,36,37,38,39,40,22,41,42,23]),import.meta.url),o=a(e);if(t.canOpenFile&&o.type==="file"&&!t.canOpenFile())return!1;const r=o.workspaceId?A(o.workspaceId):t.workspaceId;return o.valid&&o.type!=="workspace"&&await L(r,t),P(t),await n(e,{workspaceId:t.openInWorkspace?r:t.workspaceId,sourcePanelId:t.sourcePanelId,openInAdjacentPanel:t.openInAdjacentPanel??g(t),openInNewAdjacentPanel:t.openInNewAdjacentPanel??!1})}catch(a){return s.error("Failed to handle intent link",{url:e,error:a}),!1}}async function Y(e,t){try{const a=e.match(/^devspace:\/\/terminal\/(.+)$/);if(a){if(!t.workspaceId)return s.warn("Cannot open terminal without workspaceId",{url:e}),!1;const n=decodeURIComponent(a[1]);s.debug("Opening terminal from devspace link",{terminalId:n,workspaceId:t.workspaceId}),await L(t.workspaceId,t),P(t);const o={type:"terminal",title:v.layout_tabTypes_terminal_title(),terminalId:n,closable:!0};return g(t)?k.dispatch(j(t.workspaceId,o,t.sourcePanelId)):k.dispatch(B(t.workspaceId,o)),!0}return s.warn("Unhandled devspace:// link type",{url:e}),!1}catch(a){return s.error("Failed to handle devspace link",{url:e,error:a}),!1}}const Z=/^[a-z][a-z0-9+.-]*:/i,x=/^[a-z]:\/(?!\/)/i;function W(e){return e.replace(/\\/g,"/")}function ee(e){try{return W(decodeURIComponent(e))}catch{return null}}function te(e){return e.split("/").some(t=>t==="..")}function ae(e){const t=e.split("/").filter(a=>a&&a!==".");return t.length===0||t.some(a=>a==="..")?null:t.join("/")}async function L(e,t){if(!t.openInWorkspace||!e)return;const{openAndShowWorkspace:a}=await h(async()=>{const{openAndShowWorkspace:n}=await import("./CPTZJWC9.js").then(o=>o.s);return{openAndShowWorkspace:n}},__vite__mapDeps([45,4,2,3,5,6,7,8,1,9,10,11,46,47]),import.meta.url);try{await a(e)}catch(n){throw R.error(v.ui_linkHandler_navigationFailed_title(),{description:n instanceof Error?n.message:v.ui_linkHandler_unknownError_label()}),n}}function P(e){!e.workspaceId||!e.sourcePanelId||k.dispatch(z(e.workspaceId,e.sourcePanelId))}function ne(e,t){const a=t??e;if(a){if(a.startsWith("#"))return null;const n=O(a).path;if(!a.startsWith("//")&&(x.test(W(n))||!Z.test(n)))return{path:a,fromResolvedUrl:!1}}if((e.startsWith("http://")||e.startsWith("https://"))&&typeof window<"u")try{const n=new URL(e);if(n.origin===window.location.origin)return{path:n.pathname+n.hash,fromResolvedUrl:!0}}catch{}return null}async function re(e,t,a){try{if(t.canOpenFile?.()===!1)return!1;const n=O(e),o=ee(n.path);if(!o||o.includes("\0"))return!1;let r=o;const{line:l,column:u}=n,{workspaceId:i}=t;if(!i)return s.warn("Cannot open file link without workspaceId",{path:r}),!1;if(te(r))return s.warn("Rejected file link with path traversal",{path:r}),!1;if(r.startsWith("/")||x.test(r)){const{selectWorkspaceById:c}=await h(async()=>{const{selectWorkspaceById:b}=await import("./BaujsV9k.js").then(M=>M.ee);return{selectWorkspaceById:b}},__vite__mapDeps([40,10,7,1,2,3,4,5,6,8,9,11,35,30,26,16,17,29,22,14,15,18,41,32]),import.meta.url),p=c.select(k.state,i),m=p?.worktreePath??p?.path,I=m?W(m):void 0,_=I?.endsWith("/")?I.slice(0,-1):I;if(_&&r.startsWith(`${_}/`))r=r.slice(_.length+1);else if(a)r=r.replace(/^\/+/,"");else{s.debug("Absolute path outside workspace root, opening in external editor",{path:r});const b=l===void 0?"":`:${l}${u===void 0?"":`:${u}`}`;return await H(`file://${r}${b}`)}}const d=ae(r);if(!d)return s.warn("Rejected invalid workspace file link",{path:r}),!1;r=d;const f=g(t);return await L(i,t),P(t),k.dispatch(V(i,r,{filePathIsLiteral:!0,line:l,openInAdjacentPanel:f,...t.sourcePanelId?{sourcePanelId:t.sourcePanelId}:{}})),s.debug("Opened file link in workspace file viewer",{path:r,workspaceId:i,line:l}),!0}catch(n){return s.error("Failed to open file link",{target:e,error:n}),!1}}async function oe(e,t,a,{workspaceId:n,openInWorkspace:o,sourcePanelId:r},l){try{const{showLinkActionMenu:u}=await h(async()=>{const{showLinkActionMenu:p}=await import("./CGcJ5lqH.js");return{showLinkActionMenu:p}},__vite__mapDeps([48,2]),import.meta.url),i=a.target instanceof HTMLElement?a.target:null;let d=a instanceof MouseEvent?a.clientX:0,f=a instanceof MouseEvent?a.clientY:0;if(d===0&&f===0&&i){const p=i.getBoundingClientRect();d=p.left,f=p.bottom}const c=u({url:e,gitHubRef:t,x:d,y:f,workspaceId:n,anchorElement:i,openInWorkspace:o??!1,sourcePanelId:r,assistantLayoutId:l});return t.kind==="pr"&&se(c,e),s.debug("Opened link action menu",{url:e,workspaceId:n}),!0}catch(u){return s.warn("Failed to open link action menu, falling back to external browser",{url:e,error:u}),await w(e)}}function se(e,t){h(async()=>{const{loadLinkActionMenuLinkedWorkspaces:a}=await import("./BxJ6X-Sl.js");return{loadLinkActionMenuLinkedWorkspaces:a}},__vite__mapDeps([49,12,13,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,40,35,30,26,29,41,32,48]),import.meta.url).then(({loadLinkActionMenuLinkedWorkspaces:a})=>a(e,t)).catch(a=>{s.debug("PR workspace lookup unavailable",{url:t,error:a})})}async function ie(e){try{return await L(e,{openInWorkspace:!0}),!0}catch(t){return s.warn("Failed to open linked workspace",{workspaceId:e,error:t}),!1}}async function E(e,t,a={}){if(t===T){try{const{showAssistantContent:o}=await h(async()=>{const{showAssistantContent:r}=await import("./DlJZrxef.js");return{showAssistantContent:r}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44]),import.meta.url);if(await o(e,{layoutId:a.assistantLayoutId}))return!0}catch(o){s.warn("Assistant panel unavailable, opening in external browser",{url:e,error:o})}return await w(e)}try{await L(t,a)}catch(o){return s.warn("Failed to enter workspace for in-app link",{url:e,workspaceId:t,error:o}),!1}const n=a.openInWorkspace?void 0:a.sourcePanelId;return await U(e,t,n)}async function U(e,t,a){let n=e,o;try{const{resolveBrowserLinkForOpen:r}=await h(async()=>{const{resolveBrowserLinkForOpen:u}=await import("./ozVAo4aX.js").then(i=>i.b);return{resolveBrowserLinkForOpen:u}},__vite__mapDeps([50,25,11,7,1,2,26,16,8,17,27,28,29,14,15,10,18,30,31,32,33,3,4,5,6,9,34,35,36,37,38,39]),import.meta.url),l=await r(e);n=l.url,o=l.requestedUrl}catch(r){s.warn("URL resolution failed, opening the URL unresolved",{url:e,error:r})}try{P({workspaceId:t,sourcePanelId:a});const{getPanelLayoutManager:r}=await h(async()=>{const{getPanelLayoutManager:u}=await import("./DA5opfEp.js").then(i=>i.p);return{getPanelLayoutManager:u}},__vite__mapDeps([51,3,4,2,5,6,7,8,1,9,10,11,43]),import.meta.url);return r(t).openBrowserPanel(n,void 0,a,o),s.debug("Opened URL in browser panel",{url:e,targetUrl:n,workspaceId:t}),!0}catch(r){return s.warn("Failed to open URL in browser panel, falling back to external browser",{url:e,error:r}),await w(n)}}async function w(e){try{return await F("shell:openExternal",{url:e}),s.debug("Opened URL in external browser",{url:e}),!0}catch(t){return s.error("Failed to open URL in external browser",{url:e,error:t}),!1}}async function H(e){try{const t=e.replace("file://","");return typeof window<"u"&&window.electronAPI?(await F("shell:openExternal",{url:`vscode://file/${t}`}),s.debug("Opened file in external editor",{filePath:t}),!0):!1}catch(t){return s.error("Failed to open file in external editor",{url:e,error:t}),!1}}function ce(e,t={}){let a=null,n=null,o=null;async function r(){if(!n||!o){const d=await h(()=>import("./DCRuihKm.js").then(f=>f.K),__vite__mapDeps([14,1,2,11,7,15,10,16,8,17,18]),import.meta.url);n=d.showLinkTooltip,o=d.hideLinkTooltip}}function l(d){const c=d.target.closest("a");if(c?.href&&!c.href.startsWith("intent://")&&!c.href.startsWith("devspace://")){if(c===a)return;a=c;const p=t.workspaceId??c.closest("[data-workspace-id]")?.dataset.workspaceId??c.closest("[data-workspace-surface]")?.dataset.workspaceSurface;r().then(()=>{a===c&&n&&n(c,c.href,p)})}else a&&(a=null,o?.())}function u(d){const c=d.target.closest("a");if(c&&c===a){const p=d.relatedTarget;if(p&&c.contains(p))return;a=null,o?.()}}function i(){a&&(a=null,o?.())}return e.addEventListener("mouseover",l),e.addEventListener("mouseout",u),e.addEventListener("click",i),()=>{e.removeEventListener("mouseover",l),e.removeEventListener("mouseout",u),e.removeEventListener("click",i),o?.()}}const ve=Object.freeze(Object.defineProperty({__proto__:null,createLinkTooltipHandler:ce,handleLink:Q,openInBrowserPanel:U,openInExternalBrowser:w,openLinkInApp:E,openLinkedWorkspace:ie},Symbol.toStringTag,{value:"Module"}));export{E as a,ie as b,ce as c,Q as h,ve as l,w as o,J as r,ye as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as y,e as I,s as S,g as A}from"./
|
|
1
|
+
import{o as y,e as I,s as S,g as A}from"./C7LIHk5_.js";function U(){return!0}const o=new Date().toISOString(),d=[{id:"mock-ws-1",title:"Example Project",branch:"feature/demo",baseRef:"main",changesets:[],timeline:[],conversationInfo:[],status:"Active",createdAt:o,updatedAt:o,lastActivity:o,repositoryPath:"/Users/demo/projects/example",repositoryOwner:"demo",repositoryName:"example-project",tags:[],agentSummary:{agentIds:["agent-1"]}},{id:"mock-ws-2",title:"Design System",branch:"feature/tokens",baseRef:"main",changesets:[],timeline:[],conversationInfo:[],status:"Active",createdAt:o,updatedAt:o,lastActivity:o,repositoryPath:"/Users/demo/projects/design-system",repositoryOwner:"demo",repositoryName:"design-system",tags:[]}],g=[{path:"workspaceInitializer.state",label:"Workspace initializer state",description:"Browser-preview workspace initializer state.",category:"workspace",type:"object",defaultValue:{},value:{hydrated:!0}},{path:"hardwareConsole.state",label:"Hardware console state",description:"Browser-preview hardware console state.",category:"hardwareConsole",type:"object",defaultValue:{},value:{}},{path:"rtk.enabled",label:"RTK enabled",description:"Use RTK compressed command output.",category:"tools",type:"boolean",defaultValue:!1,value:!1,origin:"default"}];let l=0;function C(t){const e=g.find(a=>a.path===t);if(!e)return m("INVALID_PARAMS",-32602,`Browser mock: setting "${String(t)}" not found`);const{value:r,origin:s,...i}=e;return{path:e.path,value:r,definition:i,...s?{origin:s}:{},revision:l}}function M(t){return Array.isArray(t)?Object.fromEntries(t.filter(e=>typeof e=="string").map(e=>[e,{available:!1}])):{}}let w=0,B=0;const R=crypto.randomUUID(),p=Symbol("browser-mock-error");function m(t,e,r){return{[p]:{code:t,message:r,data:{code:t},rpcCode:e}}}function T(t){return typeof t=="object"&&t!==null&&p in t}function W(t,e){if(t==="workspace.list")return{workspaces:d};if(t==="workspace.get"){const r=d.find(s=>s.id===e?.workspaceId);return r?{workspace:r}:m("INVALID_PARAMS",-32602,`Browser mock: workspace "${String(e?.workspaceId)}" not found`)}if(t==="task.listAgentLinks")return{links:[],linksByNoteId:{}};if(t==="workspace.getTokenUsage")return{tokenUsage:{byAgentId:{},totals:{inputTokens:0,outputTokens:0,cacheReadTokens:0,cacheCreationTokens:0},byModel:{},byAgentModel:[],lastScanAt:null}};if(t==="workspace.getContext")return{items:[]};if(t==="script.list")return{scripts:[]};if(t==="terminal.list")return{terminals:[],daemonBootId:R};if(t==="terminal.create")return{terminalId:`browser-mock-terminal-${++B}`};if(t==="terminal.write"||t==="terminal.resize"||t==="terminal.kill")return{ok:!0};if(t==="terminal.getBuffer")return{terminalId:String(e?.terminalId??""),data:""};if(t==="terminal.readOutput")return"";if(t==="agent.listActive")return{streams:[]};if(t==="prMonitor.list")return{monitors:[]};if(t==="gitRoot.list")return{gitRoots:[]};if(t==="file.tree")return[];if(t==="file-tracking.getChanges")return{changes:[],truncated:!1,totalCount:0};if(t==="file-tracking.loadCommits")return{commits:[],boundarySha:null,nextToken:null};if(t==="repo.list")return{repos:[]};if(t==="settings.list")return{settings:g,revision:l};if(t==="settings.get")return C(e?.path);if(t==="settings.update"){const r=Array.isArray(e?.changes)?e.changes:[],s=[];for(const i of r){if(typeof i!="object"||i===null)continue;const{path:a,value:c}=i,u=g.find(v=>v.path===a);u&&(u.value=c,s.push({path:u.path,value:c,...u.origin?{origin:u.origin}:{}}))}return s.length>0&&(l+=1),{applied:s,revision:l}}if(t==="host.checkAuggie"||t==="host.findBinary")return{available:!1};if(t==="host.toolAvailability")return{tools:M(e?.tools)};if(t==="host.providerAuthStatus")return{providers:[]};if(t==="host.providerDiscovery")return{providers:[]};if(t==="system.status")return{running:!0,listenMode:"browser-mock",version:"0.0.0-browser",protocolVersion:"0.0.0-browser",host:{os:"browser",arch:"browser",locality:"local"}};if(t==="agent.list")return{agents:[],retiredCount:0};if(t==="agent.listInterrupted")return{agents:[]};if(t==="models.list")return{models:[]};if(t==="skill.list")return{skills:[]};if(t==="search.fileNames")return{files:[]};if(t==="comment.list")return{threads:[]};if(t==="task.list")return{tasks:[],stats:{total:0,completed:0,inProgress:0}};if(t==="note.list")return{notes:[]};if(t==="git.status")return{branch:"",ahead:0,behind:0,diverged:!1,files:[],hasUncommittedChanges:!1,hasUntrackedFiles:!1};if(t==="event.query")return e?.paginate===!0||typeof e?.nextToken=="string"?{items:[],nextToken:null}:[];if(t==="events.subscribe")return{subscriptionId:`browser-mock-sub-${++w}`};if(t==="events.unsubscribe")return{}}function O(t,e){if(t==="backend:request"){const r=e?.method;if(typeof r!="string"||r.length===0)return{ok:!1,error:{code:"INVALID_PARAMS",message:"method is required"}};const s=W(r,e?.params);return T(s)?{ok:!1,error:s[p]}:s!==void 0?{ok:!0,result:s}:{ok:!1,error:{code:"NOT_IMPLEMENTED",message:`Browser mock: backend method "${r}" not implemented`}}}if(t==="backend:subscribe")return{ok:!0,result:{subscriptionId:`browser-mock-sub-${++w}`}};if(t==="backend:unsubscribe")return{ok:!0,result:{}};if(t==="backend:get-status"){const r=A();if(r)return{status:r.getStatus(),daemonStartup:r.getStartupState(),transport:{mode:"external-ws",target:r.getTarget()}};const s=I();return s?{status:"connecting",transport:{mode:"external-ws",target:S(s)}}:{status:"connected",transport:"browser-mock"}}}function P(t,e){const r=O(t,e);return r!==void 0?r:t==="workspace:list"?{success:!0,data:d}:t==="workspace:get-recent-repositories"?{success:!0,data:[]}:t==="workspace:get-settings"||t==="workspace:getSettings"?{success:!0,data:{}}:t==="app:version"||t==="app:get-version"?{success:!0,data:"0.0.0-browser"}:t==="system:get-info"?{success:!0,data:{platform:"browser",arch:"wasm",hostname:"localhost"}}:t==="providers:get-models"?{success:!0,data:[]}:t==="providers:get-availability"?{success:!0,data:{}}:t==="providers:get-paths"?{success:!0,data:{}}:t==="feature-codes:get-active"?{features:[]}:t==="config:get"||t==="config:get-all"||t==="config:getAll"?{success:!0,data:{}}:t==="settings:get"||t==="settings:getAll"?{success:!0,data:{}}:t==="auto-update:get-state"?{success:!0,data:{channel:"stable",status:"idle"}}:t.startsWith("window:")?{success:!0}:t==="panel-layout:load"?{success:!0,data:null}:t==="first-visit-state:load"?{success:!0,data:null}:t==="rules:list"||t==="rules:load-workspace"?{success:!0,data:[]}:t.startsWith("specialists:")?{success:!0,data:[]}:t.startsWith("user-rules:")?{success:!0,data:t.includes("get-all")?[]:""}:t.startsWith("git:")?{success:!0,data:null}:t.startsWith("persistence:")||t.startsWith("storage:")?{success:!0,data:null}:t.startsWith("notes:")?{success:!0,data:t.includes("list")?[]:null}:t.startsWith("agent:")?{success:!0,data:null}:t.startsWith("log:")?{success:!0,data:null}:t.startsWith("user-mcp:")||t.startsWith("mcp:")?{success:!0,data:t.includes("list")?[]:null}:t==="skills:list"?{success:!0,data:[]}:t.includes("-auth:")||t.includes("auth:")?{success:!0,data:{authenticated:!1}}:t.startsWith("dialog:")?{success:!0,data:{canceled:!0,filePaths:[]}}:(console.debug(`[BrowserMock] Unhandled IPC channel: ${t}`),{success:!1,error:`Browser mock: channel "${t}" not implemented`})}const n=[];function f(t,e){for(const r of[...n])r.channel===t&&r.callback(e)}let k=0;const x={invoke:async(t,e)=>(console.warn(`[BrowserMock] Serving MOCK response for IPC channel '${t}' — this is dev-only mock data, not a real bridge`),P(t,e)),send:(t,...e)=>{},on:(t,e)=>{const r=`browser-mock-${++k}`;return n.push({id:r,channel:t,callback:e}),r},off:(t,e)=>{},offById:(t,e)=>{const r=n.findIndex(s=>s.id===e);r!==-1&&n.splice(r,1)},removeAllListeners:t=>{for(let e=n.length-1;e>=0;e--)n[e].channel===t&&n.splice(e,1)},once:(t,e)=>{const r=`browser-mock-${++k}`,s=(...i)=>{e(...i);const a=n.findIndex(c=>c.id===r);a!==-1&&n.splice(a,1)};n.push({id:r,channel:t,callback:s})},getPathForFile:t=>"",platform:"darwin",arch:"arm64",versions:{node:"20.0.0",chrome:"120.0.0",electron:"0.0.0-browser"}};function D(){return typeof window>"u"||window.electronAPI?!1:(console.warn("[BrowserMock] Installing mock electronAPI for browser-mode rendering — all IPC responses are DEV MOCKS"),window.electronAPI=x,_(),!0)}let b=!1;function _(){if(b)return;b=!0;let t=null,e=null,r=null;y(s=>{t?.(),e?.(),r?.(),t=s.onStatusChange(i=>{f("backend:status",{status:i,daemonStartup:s.getStartupState(),transport:{mode:"external-ws",target:s.getTarget()}})}),r=s.onStartupChange(i=>{f("backend:status",{status:s.getStatus(),daemonStartup:i,transport:{mode:"external-ws",target:s.getTarget()}})}),e=s.onReconnected(()=>{f("backend:status",{status:"connected",reconnected:!0,transport:{mode:"external-ws",target:s.getTarget()}})})})}D();export{D as installBrowserMock,U as isBrowserMockEnabled};
|