@intent-hq/web 2.362.0 → 2.362.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{jd2Q-_wb.js → 0Go2CbyU.js} +1 -1
- package/web/app/immutable/chunks/{DF45Lcog.js → 1nRBQ8GP.js} +1 -1
- package/web/app/immutable/chunks/{BMwhw1Uq.js → 23XOeMSz.js} +1 -1
- package/web/app/immutable/chunks/{zyhN-MWp.js → 2YXwswD5.js} +1 -1
- package/web/app/immutable/chunks/{D0klBhhG.js → 2hni5UX1.js} +1 -1
- package/web/app/immutable/chunks/{BomJfUuH.js → 4iYH6029.js} +1 -1
- package/web/app/immutable/chunks/{CeVJyslc.js → 55cMcX02.js} +1 -1
- package/web/app/immutable/chunks/{DiqO4Muj.js → 6b8eTysf.js} +1 -1
- package/web/app/immutable/chunks/{DrYNp4pq.js → 6zG0ROGL.js} +1 -1
- package/web/app/immutable/chunks/{Dg1sjsED.js → 8VBKAONs.js} +2 -2
- package/web/app/immutable/chunks/{DrRkoSeq.js → AWaLRNq4.js} +1 -1
- package/web/app/immutable/chunks/{DDVZx1NH.js → B-DzvqX1.js} +1 -1
- package/web/app/immutable/chunks/{u9TRZTyq.js → B1nPoFt8.js} +1 -1
- package/web/app/immutable/chunks/{BILh4U9K.js → B1rImF8u.js} +1 -1
- package/web/app/immutable/chunks/{vVxVtKpW.js → B2U6zHXn.js} +1 -1
- package/web/app/immutable/chunks/{1gFj_z6C.js → B2y4Ey03.js} +1 -1
- package/web/app/immutable/chunks/{ByAb1cmM.js → B3jM95Fp.js} +1 -1
- package/web/app/immutable/chunks/{42eDZto7.js → B3sqRIS9.js} +1 -1
- package/web/app/immutable/chunks/{C8YPd-6H.js → B43yoCDN.js} +1 -1
- package/web/app/immutable/chunks/{B8XPpKv7.js → B5nay5Hl.js} +3 -3
- package/web/app/immutable/chunks/{iQseBcjp.js → B6XV-wYf.js} +1 -1
- package/web/app/immutable/chunks/{B6ovWwJ_.js → B6lDfWDz.js} +1 -1
- package/web/app/immutable/chunks/{nIMiMGnC.js → B6qAtTdf.js} +1 -1
- package/web/app/immutable/chunks/{Bept5Hnm.js → B7ZiQt9B.js} +1 -1
- package/web/app/immutable/chunks/{CvAmKg2X.js → B7he-vwJ.js} +1 -1
- package/web/app/immutable/chunks/{BW6IwFyw.js → BAS5Ei9a.js} +4 -4
- package/web/app/immutable/chunks/{CY5L4aNw.js → BBXi6eZS.js} +1 -1
- package/web/app/immutable/chunks/{DnUPJZ7Y.js → BBeX3tt3.js} +1 -1
- package/web/app/immutable/chunks/{BA1Q6PPR.js → BFNGEzf6.js} +1 -1
- package/web/app/immutable/chunks/{D3YyaVry.js → BIBmWYIa.js} +1 -1
- package/web/app/immutable/chunks/{D9wnkmBu.js → BIQ9eVuf.js} +1 -1
- package/web/app/immutable/chunks/{BWcEoYRV.js → BKSdTbM0.js} +1 -1
- package/web/app/immutable/chunks/{DK8BxGVr.js → BKW-24eH.js} +1 -1
- package/web/app/immutable/chunks/{B2tn4QvC.js → BMXpCN2Z.js} +1 -1
- package/web/app/immutable/chunks/BNq3scG4.js +4 -0
- package/web/app/immutable/chunks/{DQ21wdjk.js → BPWzrv4n.js} +1 -1
- package/web/app/immutable/chunks/{VfrZWr4H.js → BPu2GADH.js} +1 -1
- package/web/app/immutable/chunks/{CRKBkpOe.js → BQi1vxhj.js} +1 -1
- package/web/app/immutable/chunks/{i9nNzXN1.js → BR6IlpMz.js} +1 -1
- package/web/app/immutable/chunks/{DpinIuVV.js → BRPvhipI.js} +2 -2
- package/web/app/immutable/chunks/{DwVWq9Mg.js → BSiWAL4B.js} +1 -1
- package/web/app/immutable/chunks/{BfYNlt8G.js → BTPstSq4.js} +1 -1
- package/web/app/immutable/chunks/{CEJtWBth.js → BULwUgGm.js} +1 -1
- package/web/app/immutable/chunks/{Dc2OgodD.js → BUNb3q2A.js} +1 -1
- package/web/app/immutable/chunks/{T-q_OSSy.js → BU_WdKEZ.js} +1 -1
- package/web/app/immutable/chunks/{Cd0j3msa.js → BUansWOB.js} +1 -1
- package/web/app/immutable/chunks/{qdH_r52r.js → BV4hVkqh.js} +1 -1
- package/web/app/immutable/chunks/{C_DRWbBT.js → BWxyJyKV.js} +1 -1
- package/web/app/immutable/chunks/{D4rtf9eK.js → BZMuFhDq.js} +2 -2
- package/web/app/immutable/chunks/{C2jMmBZH.js → BZaxCCc-.js} +3 -3
- package/web/app/immutable/chunks/{DhHBMk2S.js → B_Qscghg.js} +4 -4
- package/web/app/immutable/chunks/{CTuEdhIK.js → BbNaXeCx.js} +1 -1
- package/web/app/immutable/chunks/{DEz0iQL-.js → Bctp9lP7.js} +1 -1
- package/web/app/immutable/chunks/{BHi5IZAX.js → Bd3N9n0H.js} +1 -1
- package/web/app/immutable/chunks/{BIeyZqbO.js → Be0mmWcA.js} +6 -6
- package/web/app/immutable/chunks/{BLN77Nun.js → BeQ5cBZr.js} +1 -1
- package/web/app/immutable/chunks/{D-HbS-OO.js → BedgIvkT.js} +1 -1
- package/web/app/immutable/chunks/{CGq1dL3z.js → Bei3Ber-.js} +1 -1
- package/web/app/immutable/chunks/{AlKC0Ocb.js → Bg85AeOE.js} +1 -1
- package/web/app/immutable/chunks/{ButwRe61.js → BgO8l4RL.js} +1 -1
- package/web/app/immutable/chunks/{C5gI3OmS.js → Bh9XFM6t.js} +1 -1
- package/web/app/immutable/chunks/{Do-7hUG3.js → Bhsd_vBR.js} +1 -1
- package/web/app/immutable/chunks/{B64Wa5S6.js → Bi_5p9qD.js} +1 -1
- package/web/app/immutable/chunks/{BJBg5aea.js → BjhYYm97.js} +1 -1
- package/web/app/immutable/chunks/{Moy2Fnv7.js → BlbxSj1X.js} +1 -1
- package/web/app/immutable/chunks/{B_F2KAss.js → BluA3DZF.js} +1 -1
- package/web/app/immutable/chunks/{BRRZ-rdF.js → BluWIyqL.js} +1 -1
- package/web/app/immutable/chunks/{ConZf1Xc.js → BmH3z8uN.js} +1 -1
- package/web/app/immutable/chunks/{DGgxtq4s.js → Bo-zVBuZ.js} +1 -1
- package/web/app/immutable/chunks/{fBGaFk7o.js → Bpl_qBuR.js} +3 -3
- package/web/app/immutable/chunks/{Bbp04L_p.js → Bq9n6Tla.js} +1 -1
- package/web/app/immutable/chunks/{CLD_-K5U.js → BqGa1t8L.js} +1 -1
- package/web/app/immutable/chunks/{CHVebKY7.js → BqzT4O7L.js} +3 -3
- package/web/app/immutable/chunks/{BxEYTNET.js → Br53KhNC.js} +1 -1
- package/web/app/immutable/chunks/{alfd90bM.js → BrfrzpId.js} +1 -1
- package/web/app/immutable/chunks/{BhKKK-kE.js → BszkqKbM.js} +1 -1
- package/web/app/immutable/chunks/{BGAw0soA.js → BtoR1PxE.js} +1 -1
- package/web/app/immutable/chunks/{ryY3ARJp.js → Bu1TNEzu.js} +1 -1
- package/web/app/immutable/chunks/{BkJlUIRT.js → BuWwi-OB.js} +1 -1
- package/web/app/immutable/chunks/{Cm_3RFg5.js → BvEWkly-.js} +1 -1
- package/web/app/immutable/chunks/{C_xs3Po8.js → BwV7CRGN.js} +1 -1
- package/web/app/immutable/chunks/{Dv_zibKv.js → BwsZanfL.js} +1 -1
- package/web/app/immutable/chunks/{PgqRte-r.js → Bxs2oudl.js} +1 -1
- package/web/app/immutable/chunks/{BWX_OVAE.js → ByTn8oHf.js} +1 -1
- package/web/app/immutable/chunks/{DJQwKIJU.js → BykIeP0g.js} +1 -1
- package/web/app/immutable/chunks/{Di3oOarF.js → Bz3tuC8r.js} +2 -2
- package/web/app/immutable/chunks/{U10EozJE.js → BzQ3ATRh.js} +2 -2
- package/web/app/immutable/chunks/{BK_ocHH_.js → C-Reftw2.js} +1 -1
- package/web/app/immutable/chunks/{EAmw13pe.js → C-hb5nbb.js} +1 -1
- package/web/app/immutable/chunks/{D24Cy14e.js → C0RmcaXo.js} +1 -1
- package/web/app/immutable/chunks/{CokgYiLR.js → C1T-qy7I.js} +1 -1
- package/web/app/immutable/chunks/{BghGxAUO.js → C1o3spBY.js} +1 -1
- package/web/app/immutable/chunks/C2wAzMR4.js +176 -0
- package/web/app/immutable/chunks/{DHuPiSx5.js → C3UeOegI.js} +1 -1
- package/web/app/immutable/chunks/{DYBIQz8Q.js → C4GIXttQ.js} +1 -1
- package/web/app/immutable/chunks/{n_DC9aJx.js → C4_rKMDp.js} +13 -13
- package/web/app/immutable/chunks/{DA_NmGws.js → C4ndhNfG.js} +1 -1
- package/web/app/immutable/chunks/{DABONrQm.js → C4pyVvwk.js} +1 -1
- package/web/app/immutable/chunks/{CVAjc0yi.js → C6NQnjdC.js} +1 -1
- package/web/app/immutable/chunks/{D19QUWJk.js → C6XOSM-4.js} +1 -1
- package/web/app/immutable/chunks/{CGAW_CqO.js → C6pmzcFd.js} +1 -1
- package/web/app/immutable/chunks/{CLEN2qBh.js → C6sQTdfe.js} +1 -1
- package/web/app/immutable/chunks/{BV6tz7in.js → C6vubJsO.js} +1 -1
- package/web/app/immutable/chunks/{DNbGju-D.js → C7XLe6Fq.js} +1 -1
- package/web/app/immutable/chunks/{2f17jIS_.js → C8b1hAiZ.js} +1 -1
- package/web/app/immutable/chunks/{_yja1RDN.js → C9YJ2_w0.js} +1 -1
- package/web/app/immutable/chunks/{DBzwbLy-.js → C9nffMna.js} +1 -1
- package/web/app/immutable/chunks/{C1rlyspR.js → CAEXUpGf.js} +1 -1
- package/web/app/immutable/chunks/{elqYuZ6s.js → CAqlFYYX.js} +1 -1
- package/web/app/immutable/chunks/{jCb2rWV2.js → CBgqNyOn.js} +1 -1
- package/web/app/immutable/chunks/{B7D3Z-Y4.js → CCBDeIiF.js} +1 -1
- package/web/app/immutable/chunks/{C79wLg62.js → CCDDqQJs.js} +1 -1
- package/web/app/immutable/chunks/{DP4Ph7EA.js → CCm0OKl5.js} +1 -1
- package/web/app/immutable/chunks/CDNiWmce.js +1 -0
- package/web/app/immutable/chunks/{7QQiv-wr.js → CDSuKhpz.js} +1 -1
- package/web/app/immutable/chunks/{BUG9TrVX.js → CE2LFl-Z.js} +1 -1
- package/web/app/immutable/chunks/CE9WteXp.js +1 -0
- package/web/app/immutable/chunks/{Q1GArL_y.js → CFidbeSw.js} +1 -1
- package/web/app/immutable/chunks/{Dw_UfDsA.js → CFtRsKmm.js} +1 -1
- package/web/app/immutable/chunks/{DLLVCgsV.js → CGDxdR4I.js} +1 -1
- package/web/app/immutable/chunks/{DDy_8zbA.js → CH6-PW8d.js} +1 -1
- package/web/app/immutable/chunks/{XHWmx2fo.js → CI4L9sp8.js} +1 -1
- package/web/app/immutable/chunks/{DV6XB2ci.js → CJ9TjlSl.js} +1 -1
- package/web/app/immutable/chunks/{Vm4nXzsi.js → CJAHD8Av.js} +1 -1
- package/web/app/immutable/chunks/{CC7j966i.js → CKwXUgM5.js} +1 -1
- package/web/app/immutable/chunks/{nXQJ8vXX.js → CLDOuGzT.js} +1 -1
- package/web/app/immutable/chunks/{DR2SVCXR.js → CLG5hs6R.js} +1 -1
- package/web/app/immutable/chunks/{C8i00JgJ.js → CMQcQe3J.js} +1 -1
- package/web/app/immutable/chunks/{Be7gn9X-.js → CMmAwBL2.js} +1 -1
- package/web/app/immutable/chunks/{BG3WACU1.js → CORIYKie.js} +1 -1
- package/web/app/immutable/chunks/{Bff_Rbbv.js → CQ0hCG0n.js} +1 -1
- package/web/app/immutable/chunks/{D2jeSuJo.js → CQ2XnxCv.js} +1 -1
- package/web/app/immutable/chunks/{_1FSfiRe.js → CQBcB58U.js} +1 -1
- package/web/app/immutable/chunks/{CiSSCgqR.js → CQocjKjX.js} +1 -1
- package/web/app/immutable/chunks/{CC7Uzavp.js → CR6eaDMw.js} +1 -1
- package/web/app/immutable/chunks/{flRZVSKn.js → CRLV4RHy.js} +1 -1
- package/web/app/immutable/chunks/{8DKB8YcU.js → CTcdcUyj.js} +1 -1
- package/web/app/immutable/chunks/{CXq2AoEa.js → CThSE8LQ.js} +1 -1
- package/web/app/immutable/chunks/{CZlp_xaa.js → CXEzZ2hR.js} +1 -1
- package/web/app/immutable/chunks/{Dkq3_GD2.js → CXfsvSt9.js} +1 -1
- package/web/app/immutable/chunks/{DcS7tCp_.js → CYKcOC1a.js} +1 -1
- package/web/app/immutable/chunks/{CZScRu8r.js → CYP3WRBZ.js} +1 -1
- package/web/app/immutable/chunks/{DbF4GEUt.js → CZLC2BGb.js} +1 -1
- package/web/app/immutable/chunks/{D7W8zNV0.js → Ca-5qIPO.js} +1 -1
- package/web/app/immutable/chunks/{_5QQ1P8H.js → CaD-rr4v.js} +1 -1
- package/web/app/immutable/chunks/{BVZHN8O1.js → CcNWV5oe.js} +1 -1
- package/web/app/immutable/chunks/{DOB06fXT.js → CfsrLxYu.js} +1 -1
- package/web/app/immutable/chunks/CgZG1QkR.js +1 -0
- package/web/app/immutable/chunks/{DI85QvsH.js → Ch4PqakC.js} +1 -1
- package/web/app/immutable/chunks/{BZvzMoRv.js → ChXvhbof.js} +1 -1
- package/web/app/immutable/chunks/{B-7yIMT_.js → ChpnaSsg.js} +1 -1
- package/web/app/immutable/chunks/CiTaZNiG.js +1 -0
- package/web/app/immutable/chunks/{DzsS0_p_.js → CjuG-F5E.js} +1 -1
- package/web/app/immutable/chunks/{DG5HQEoF.js → Ck9E0Ysi.js} +1 -1
- package/web/app/immutable/chunks/{4uhoMHE_.js → Ckre-sgD.js} +1 -1
- package/web/app/immutable/chunks/{CL7qDIdV.js → ClEAI4g1.js} +3 -3
- package/web/app/immutable/chunks/{Cqru5LxS.js → ClI6BjKq.js} +1 -1
- package/web/app/immutable/chunks/{CJeXodn0.js → CmUp-Sqv.js} +1 -1
- package/web/app/immutable/chunks/{C0iYgKNx.js → Cng0L1r4.js} +1 -1
- package/web/app/immutable/chunks/{BvgeBoe1.js → Cp1SIa9c.js} +1 -1
- package/web/app/immutable/chunks/{nPXXKIa-.js → CpUG4uWd.js} +1 -1
- package/web/app/immutable/chunks/{DNmf6q32.js → CqSZC6ch.js} +1 -1
- package/web/app/immutable/chunks/{zB1IXbXb.js → CrgKt6cz.js} +1 -1
- package/web/app/immutable/chunks/{D1BBZ1Su.js → CsC9zelV.js} +1 -1
- package/web/app/immutable/chunks/{EAy3xyVJ.js → CvQjTi4D.js} +2 -2
- package/web/app/immutable/chunks/{CuNeyUoC.js → CyRyIWdG.js} +1 -1
- package/web/app/immutable/chunks/{CvFqJ3aj.js → Cyk2Y411.js} +1 -1
- package/web/app/immutable/chunks/{D01RaHSK.js → D-qx9bcE.js} +1 -1
- package/web/app/immutable/chunks/{ByTueQZz.js → D1tVMvmo.js} +1 -1
- package/web/app/immutable/chunks/{CVBzfNwe.js → D2NUq8UU.js} +1 -1
- package/web/app/immutable/chunks/{DmEF8CQK.js → D2c3A473.js} +1 -1
- package/web/app/immutable/chunks/{CUYJI5X_.js → D31UPrBJ.js} +1 -1
- package/web/app/immutable/chunks/{DVGWHR1H.js → D4nLWqqO.js} +1 -1
- package/web/app/immutable/chunks/{1MVyJ09_.js → D67FZ5Lv.js} +1 -1
- package/web/app/immutable/chunks/{BkDiy3qO.js → D7WbMK4o.js} +1 -1
- package/web/app/immutable/chunks/{CgeqCnG6.js → D7niCCgo.js} +1 -1
- package/web/app/immutable/chunks/{CsQLAzr5.js → D9yIi5KK.js} +1 -1
- package/web/app/immutable/chunks/{D7sOTjCO.js → DA9Mdvxh.js} +1 -1
- package/web/app/immutable/chunks/{DSYQunl3.js → DAw72DZa.js} +1 -1
- package/web/app/immutable/chunks/{BNH_hD0i.js → DC8uF3lu.js} +1 -1
- package/web/app/immutable/chunks/{Zq02JorO.js → DD5eVBJb.js} +1 -1
- package/web/app/immutable/chunks/{CGPTsmEd.js → DDXthoba.js} +1 -1
- package/web/app/immutable/chunks/{CJSinxIK.js → DDaa7h_m.js} +1 -1
- package/web/app/immutable/chunks/{CdNWk-Bu.js → DEHoDrdd.js} +1 -1
- package/web/app/immutable/chunks/{Bo32wczA.js → DFNql_nS.js} +1 -1
- package/web/app/immutable/chunks/{kQoy32cr.js → DFYNZGf0.js} +1 -1
- package/web/app/immutable/chunks/{T940uwQN.js → DHffIWwt.js} +3 -3
- package/web/app/immutable/chunks/{vbGVPT6S.js → DHgdHC6B.js} +1 -1
- package/web/app/immutable/chunks/{C1a72gDa.js → DIKaua7R.js} +1 -1
- package/web/app/immutable/chunks/{DXJvf4ja.js → DIuXteuM.js} +1 -1
- package/web/app/immutable/chunks/{DQloJDQl.js → DJWDj1lZ.js} +1 -1
- package/web/app/immutable/chunks/{-Yzk2rdh.js → DJcIRc5D.js} +1 -1
- package/web/app/immutable/chunks/{NuBvLfzz.js → DK7i7mSH.js} +1 -1
- package/web/app/immutable/chunks/{DywT6cR_.js → DMSGpXyL.js} +2 -2
- package/web/app/immutable/chunks/{CIjzTMjk.js → DOaNjGx3.js} +1 -1
- package/web/app/immutable/chunks/{plzucQew.js → DP1vd71f.js} +1 -1
- package/web/app/immutable/chunks/{BsQjFYUU.js → DQmIdOy5.js} +1 -1
- package/web/app/immutable/chunks/{BNXO9e-K.js → DUa7Jvhz.js} +2 -2
- package/web/app/immutable/chunks/{CdYki3Ne.js → DUaHJCzY.js} +1 -1
- package/web/app/immutable/chunks/{CrG8QfjF.js → DUzPWaFA.js} +1 -1
- package/web/app/immutable/chunks/{D8hpao6N.js → DVxqmkFy.js} +1 -1
- package/web/app/immutable/chunks/{CaFfZGOK.js → DWEDgLOm.js} +1 -1
- package/web/app/immutable/chunks/{DfIwRMMx.js → DWbtFEwH.js} +1 -1
- package/web/app/immutable/chunks/{epeXa5Nl.js → DYaRWcpg.js} +1 -1
- package/web/app/immutable/chunks/{DdQ2Ee-5.js → DZSVN5v8.js} +1 -1
- package/web/app/immutable/chunks/{ClcIbYyp.js → DZtCGZgy.js} +1 -1
- package/web/app/immutable/chunks/{yYJfu2JX.js → DaNGy3D8.js} +1 -1
- package/web/app/immutable/chunks/{CUPNFNnH.js → DcR44gq9.js} +1 -1
- package/web/app/immutable/chunks/{CBM6AzvV.js → DgNEPBVe.js} +1 -1
- package/web/app/immutable/chunks/{Cc_mAvF5.js → Dh1ev8RB.js} +1 -1
- package/web/app/immutable/chunks/{vojGrKrS.js → DizljkHL.js} +1 -1
- package/web/app/immutable/chunks/{COBWKiGh.js → DjY1surq.js} +1 -1
- package/web/app/immutable/chunks/{D-37OIYf.js → DjeFU-Mu.js} +1 -1
- package/web/app/immutable/chunks/{BVZsZXmm.js → Dk5qPA5a.js} +1 -1
- package/web/app/immutable/chunks/{DSQMj_om.js → Dkw1IBph.js} +1 -1
- package/web/app/immutable/chunks/{wsJnb2w5.js → DnDBa5Or.js} +4 -4
- package/web/app/immutable/chunks/{D8JHIZfM.js → Dqi9bJNf.js} +1 -1
- package/web/app/immutable/chunks/{CrrPK0Iv.js → DrLx8OXO.js} +1 -1
- package/web/app/immutable/chunks/{Jbhi_cxP.js → DrSdReTn.js} +1 -1
- package/web/app/immutable/chunks/{Db_IhgBX.js → DrhiSb3J.js} +3 -3
- package/web/app/immutable/chunks/{D-QSPFPS.js → Dtxuz85W.js} +1 -1
- package/web/app/immutable/chunks/{D4ILfrQP.js → Du4MGCS4.js} +2 -2
- package/web/app/immutable/chunks/{BpOFfIvt.js → Du7ytJ4P.js} +1 -1
- package/web/app/immutable/chunks/{CbmUPEyZ.js → DuJdf9UG.js} +1 -1
- package/web/app/immutable/chunks/{CqDJmhHZ.js → DuOIvAqY.js} +2 -2
- package/web/app/immutable/chunks/{D73fvKXP.js → Dv3pGERg.js} +1 -1
- package/web/app/immutable/chunks/{DkPeQV3c.js → DvIus6kU.js} +1 -1
- package/web/app/immutable/chunks/{DwzYDj81.js → DwhPYiCJ.js} +1 -1
- package/web/app/immutable/chunks/{By1IjcbO.js → Dx9DzOqr.js} +1 -1
- package/web/app/immutable/chunks/{KkoOm1V0.js → DxFZ9gq2.js} +1 -1
- package/web/app/immutable/chunks/{C0-eX4eQ.js → DxM_2tEs.js} +1 -1
- package/web/app/immutable/chunks/{CBRPyq3u.js → Dx_cihQo.js} +3 -3
- package/web/app/immutable/chunks/{C8LXsE7b.js → DxgNlamv.js} +1 -1
- package/web/app/immutable/chunks/{LSzEWm4Q.js → DyYAxHE8.js} +1 -1
- package/web/app/immutable/chunks/{3RdDKrNK.js → DzCzYdRR.js} +1 -1
- package/web/app/immutable/chunks/{BVZ3OidP.js → EENIG6sq.js} +1 -1
- package/web/app/immutable/chunks/{B5jBKY1h.js → ETRy7Ggy.js} +1 -1
- package/web/app/immutable/chunks/{CeXu7r8X.js → F4cRH-lc.js} +1 -1
- package/web/app/immutable/chunks/{DMAUyJ2P.js → FkFkR8K2.js} +1 -1
- package/web/app/immutable/chunks/{NOaXnPaj.js → G87kWWA0.js} +2 -2
- package/web/app/immutable/chunks/{BCaye4Uu.js → HRcGzcZS.js} +1 -1
- package/web/app/immutable/chunks/{CrgZFb5y.js → IfYdwdBR.js} +1 -1
- package/web/app/immutable/chunks/{N6kzLiXM.js → J04upo63.js} +1 -1
- package/web/app/immutable/chunks/{DLxYdmRB.js → J1LWsTd9.js} +1 -1
- package/web/app/immutable/chunks/{Bult6xm-.js → JAWGj4Yi.js} +2 -2
- package/web/app/immutable/chunks/{g9ZlPi9F.js → Jf_R-Aac.js} +2 -2
- package/web/app/immutable/chunks/{CE6pj9s3.js → KYr22_OD.js} +1 -1
- package/web/app/immutable/chunks/{oxDrPxDU.js → KilK2UOM.js} +1 -1
- package/web/app/immutable/chunks/{DtvdPXC0.js → LwSSBtxX.js} +1 -1
- package/web/app/immutable/chunks/{BV1K6wKe.js → M2GCPKoA.js} +1 -1
- package/web/app/immutable/chunks/{ByQw5PSS.js → O-SiHQ6R.js} +1 -1
- package/web/app/immutable/chunks/{CoaHiAox.js → Or_TQbr1.js} +1 -1
- package/web/app/immutable/chunks/{D9tcLZ_Y.js → Qb3uerTr.js} +1 -1
- package/web/app/immutable/chunks/{BgyYCiyL.js → Qizor3xZ.js} +1 -1
- package/web/app/immutable/chunks/{CpbmyPj0.js → Qm-MZg2p.js} +1 -1
- package/web/app/immutable/chunks/{zgekXgkJ.js → QnpVdYT5.js} +1 -1
- package/web/app/immutable/chunks/{D2-mq7g4.js → R19W582_.js} +1 -1
- package/web/app/immutable/chunks/{DyCS2A-K.js → RGmB-SjS.js} +1 -1
- package/web/app/immutable/chunks/{BNZHgKSk.js → UWQdg-A2.js} +1 -1
- package/web/app/immutable/chunks/{nK5lgmDU.js → UfUfpfpL.js} +1 -1
- package/web/app/immutable/chunks/{N7qvIOuv.js → W_r4iRxt.js} +1 -1
- package/web/app/immutable/chunks/{0FRtEAk_.js → WvbffGVg.js} +1 -1
- package/web/app/immutable/chunks/{BrQE9aYr.js → Xu7DniMQ.js} +1 -1
- package/web/app/immutable/chunks/{CSRsy1MH.js → XvnVMArq.js} +1 -1
- package/web/app/immutable/chunks/{CIW89ENH.js → ZTWlL5zM.js} +1 -1
- package/web/app/immutable/chunks/{BDq2t_9P.js → _3XbzhXe.js} +1 -1
- package/web/app/immutable/chunks/{Bkg1yy3c.js → aa7X5cNm.js} +1 -1
- package/web/app/immutable/chunks/{Bzd2CMX7.js → awTIGLLj.js} +1 -1
- package/web/app/immutable/chunks/{DM4O8kyl.js → bP8UGzws.js} +1 -1
- package/web/app/immutable/chunks/{CvBqgDaO.js → c4H2cXzd.js} +1 -1
- package/web/app/immutable/chunks/{CPnsz9Hs.js → cH4zbEq8.js} +1 -1
- package/web/app/immutable/chunks/{BChgcxXb.js → cn1R3ng9.js} +3 -3
- package/web/app/immutable/chunks/{DOpB1zPF.js → dDu7RcXM.js} +1 -1
- package/web/app/immutable/chunks/{zAJ7GuqN.js → dVG3dMki.js} +1 -1
- package/web/app/immutable/chunks/{zGpo4Blc.js → dZVNnMZs.js} +3 -3
- package/web/app/immutable/chunks/{9M4Pl7xy.js → dqo-Nkop.js} +1 -1
- package/web/app/immutable/chunks/{CdZoWikL.js → gHustHEr.js} +1 -1
- package/web/app/immutable/chunks/{DlKmdKxb.js → jLuOcx2N.js} +1 -1
- package/web/app/immutable/chunks/{D6iZo_ET.js → jhvKFO58.js} +1 -1
- package/web/app/immutable/chunks/{DCbtEZw8.js → l-VTMc_p.js} +1 -1
- package/web/app/immutable/chunks/{ByW7bxEK.js → qD_x_a7m.js} +1 -1
- package/web/app/immutable/chunks/{BNJBQg5K.js → sYvdi7eG.js} +1 -1
- package/web/app/immutable/chunks/{BQDjmnIn.js → stD6q5ZD.js} +1 -1
- package/web/app/immutable/chunks/{DiCNp-8B.js → u_sm9GBc.js} +1 -1
- package/web/app/immutable/chunks/{DiuuSzCC.js → vf6pveFy.js} +1 -1
- package/web/app/immutable/chunks/{CIu-y8lY.js → wAO5YQrd.js} +1 -1
- package/web/app/immutable/chunks/{hwmpZCuz.js → xQ1tvRyj.js} +1 -1
- package/web/app/immutable/chunks/{wM5E_fWg.js → xnUCUXHt.js} +1 -1
- package/web/app/immutable/chunks/{PtztmcML.js → yQ7GpLm3.js} +1 -1
- package/web/app/immutable/chunks/{1Kd2V6Ma.js → yVGqQrjf.js} +1 -1
- package/web/app/immutable/chunks/{LYm3QdT8.js → yyRLwoJz.js} +1 -1
- package/web/app/immutable/chunks/{DAg74Tfa.js → zHH7Kw4o.js} +1 -1
- package/web/app/immutable/entry/{app.D2bTUfu9.js → app.CMLUt8-K.js} +3 -3
- package/web/app/immutable/entry/start.D1qRxQ8x.js +1 -0
- package/web/app/immutable/nodes/{0.CPawR9BC.js → 0.BYH6vQW3.js} +1 -1
- package/web/app/immutable/nodes/{1.BlDqJU7r.js → 1.BAkbiSMg.js} +1 -1
- package/web/app/immutable/nodes/{10.BAMGMKNX.js → 10.DqnjBdnF.js} +5 -5
- package/web/app/immutable/nodes/{11.-7mABFeH.js → 11.mfKuarNN.js} +1 -1
- package/web/app/immutable/nodes/{12.CjcrqPFZ.js → 12.B8dwNd6E.js} +1 -1
- package/web/app/immutable/nodes/{13.Bc2gRY3E.js → 13.5M8H2X4b.js} +1 -1
- package/web/app/immutable/nodes/{14.W7UKKBbJ.js → 14.BzYka-40.js} +3 -3
- package/web/app/immutable/nodes/15.BcZNrBDb.js +3 -0
- package/web/app/immutable/nodes/{16.nAu8Tcun.js → 16.BZoPxych.js} +1 -1
- package/web/app/immutable/nodes/{17.BmHoggX-.js → 17.Cqw6uBts.js} +1 -1
- package/web/app/immutable/nodes/{18.CDqK9mtR.js → 18.Bhk-SJCV.js} +1 -1
- package/web/app/immutable/nodes/{19.BLC2e5Ym.js → 19.CKvaRxuS.js} +2 -2
- package/web/app/immutable/nodes/{2.CclojtZK.js → 2.BQJHslkB.js} +4 -4
- package/web/app/immutable/nodes/{20.DR7-1biV.js → 20.Dwc7t9AX.js} +1 -1
- package/web/app/immutable/nodes/{3.9s7e_J-v.js → 3.BLUctLcc.js} +1 -1
- package/web/app/immutable/nodes/{4.B6oC0aEI.js → 4.7Oh8cVZj.js} +1 -1
- package/web/app/immutable/nodes/{5.BhdMAH02.js → 5.C8XFrbrE.js} +1 -1
- package/web/app/immutable/nodes/{6.cb_yhLRO.js → 6.BfVTL0z7.js} +1 -1
- package/web/app/immutable/nodes/{7.CW5VpJ10.js → 7.B5PW7bVT.js} +1 -1
- package/web/app/immutable/nodes/{8.BCzBaaLq.js → 8.gpXKsW1b.js} +1 -1
- package/web/app/immutable/nodes/{9.CUYXVSxZ.js → 9.Do91vdif.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +18 -18
- package/web/app/immutable/chunks/B0MfNWkm.js +0 -1
- package/web/app/immutable/chunks/BfX15qhw.js +0 -1
- package/web/app/immutable/chunks/C1QwTBKK.js +0 -176
- package/web/app/immutable/chunks/CBVyphqp.js +0 -1
- package/web/app/immutable/chunks/DDSNlYGe.js +0 -4
- package/web/app/immutable/chunks/Or0TMIv9.js +0 -1
- package/web/app/immutable/entry/start.BjNeM0go.js +0 -1
- package/web/app/immutable/nodes/15.B7EMAryy.js +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as G,bo as l,bm as u,bw as H,b as J,bs as re,bq as se}from"./
|
|
1
|
+
import{t as G,bo as l,bm as u,bw as H,b as J,bs as re,bq as se}from"./CDNiWmce.js";import{bs as K,a5 as P,bl as w,bS as m,bA as $,be as z,b$ as N,b_ as k,bO as _,W as v,aD as ae,bn as L,aA as p,c9 as ne,aB as A,c5 as W,a7 as oe,ay as ie}from"./CJxGDkBm.js";import{i as I}from"./DEHoDrdd.js";import{s as j}from"./J1LWsTd9.js";import{f as T}from"./BUNb3q2A.js";import"./8VBKAONs.js";import{D as ce}from"./Bd3N9n0H.js";import{T as de}from"./CvQjTi4D.js";import{I_ as ue,iT as le}from"./qD_x_a7m.js";var pe=A('<p class="text-sm text-muted-foreground"> </p>'),F=A('<p role="status" class="text-sm"> </p>'),ge=A('<div class="flex max-h-[min(calc(100dvh-8rem),calc(var(--toast-max-height,100dvh)-2rem))] min-h-0 min-w-0 flex-col gap-3" role="group"><div class="min-h-0 space-y-3 overflow-y-auto break-words" role="region" tabindex="0"><p class="font-medium break-words"> </p> <p class="text-sm text-muted-foreground"> </p> <!> <!> <!> <!></div> <div class="flex shrink-0 flex-wrap gap-2"><!> <!> <!></div></div>');function M(y,r){if(new.target)return G({component:M,...y});K(r,!0);let a=l(r,"request",7),g=l(r,"pending",7,!1),b=l(r,"settingUp",7,!1),c=l(r,"guidance",7),d=l(r,"checklist",7),i=l(r,"onDecision",7);var C={get request(){return a()},set request(e){a(e),p()},get pending(){return g()},set pending(e=!1){g(e),p()},get settingUp(){return b()},set settingUp(e=!1){b(e),p()},get guidance(){return c()},set guidance(e){c(e),p()},get checklist(){return d()},set checklist(e){d(e),p()},get onDecision(){return i()},set onDecision(e){i(e),p()},$set:H,$on:(e,t)=>J(r,e,t)},x=ge(),f=P(x),q=P(f),U=w(q,!0),D=m(q,2),n=w(D,!0),h=m(D,2);{var Q=e=>{var t=pe(),s=w(t,!0);k(o=>_(s,o),[()=>u.desktop_consent_claimPrimary({computer:a().computerName})]),v(e,t)};I(h,e=>{a().claimsPrimary&&e(Q)})}var B=m(h,2);{var V=e=>{ce(e,{get checklist(){return d()}})};I(B,e=>{d()&&e(V)})}var O=m(B,2);{var X=e=>{var t=F(),s=w(t,!0);k(()=>_(s,c())),v(e,t)};I(O,e=>{c()&&e(X)})}var Y=m(O,2);{var Z=e=>{var t=F(),s=w(t,!0);k(o=>_(s,o),[()=>u.desktop_consent_pending()]),v(e,t)};I(Y,e=>{g()&&!b()&&e(Z)})}$(f);var S=m(f,2),E=P(S);T(E,{size:"compact",variant:"primary",get disabled(){return g()},onclick:()=>i()("allow_once"),children:(e,t)=>{z();var s=N();k(o=>_(s,o),[()=>u.desktop_consent_once()]),v(e,s)},$$slots:{default:!0}});var R=m(E,2);T(R,{size:"compact",variant:"outline",get disabled(){return g()},onclick:()=>i()("allow_future"),children:(e,t)=>{z();var s=N();k(o=>_(s,o),[()=>u.desktop_consent_future()]),v(e,s)},$$slots:{default:!0}});var ee=m(R,2);{let e=ne(()=>g()&&!b());T(ee,{size:"compact",variant:"ghost",get disabled(){return ae(e)},onclick:()=>i()("deny"),children:(t,s)=>{z();var o=N();k(te=>_(o,te),[()=>u.desktop_consent_deny()]),v(t,o)},$$slots:{default:!0}})}return $(S),$(x),k((e,t,s,o)=>{j(x,"aria-label",e),j(f,"aria-label",t),_(U,s),_(n,o)},[()=>u.desktop_consent_title(),()=>u.desktop_consent_title(),()=>u.desktop_consent_request({agent:a().agentName,computer:a().computerName}),()=>u.desktop_consent_description()]),v(y,x),L(C)}function me(y,r){if(new.target)return G({component:me,...y});K(r,!0);const a=()=>re(C,"$entry",g),[g,b]=se();let c=l(r,"workspaceId",7),d=l(r,"agentId",7),i=l(r,"requestId",7);const C=de(W(()=>c()),W(()=>d()));var x={get workspaceId(){return c()},set workspaceId(n){c(n),p()},get agentId(){return d()},set agentId(n){d(n),p()},get requestId(){return i()},set requestId(n){i(n),p()},$set:H,$on:(n,h)=>J(r,n,h)},f=oe(),q=ie(f);{var U=n=>{M(n,{get request(){return a().pending},get pending(){return a().submitting},get settingUp(){return a().settingUp},get guidance(){return a().error},get checklist(){return a().osChecklist},onDecision:h=>ue.dispatch(le(c(),d(),i(),h))})};I(q,n=>{a()?.pending?.requestId===i()&&n(U)})}v(y,f);var D=L(x);return b(),D}export{me as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{bm as _,_ as x}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BvEWkly-.js","/app/immutable/chunks/Bctp9lP7.js","/app/immutable/chunks/C1C8P18t.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CDNiWmce.js","/app/immutable/chunks/CJxGDkBm.js","/app/immutable/chunks/DEHoDrdd.js","/app/immutable/chunks/J1LWsTd9.js","/app/immutable/chunks/CThSE8LQ.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/BUNb3q2A.js","/app/immutable/chunks/NtFyWdpR.js","/app/immutable/chunks/Ca-5qIPO.js","/app/immutable/chunks/8VBKAONs.js","/app/immutable/chunks/Qm-MZg2p.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/DrLx8OXO.js","/app/immutable/chunks/CXEzZ2hR.js","/app/immutable/chunks/CXfsvSt9.js","/app/immutable/chunks/CORIYKie.js","/app/immutable/chunks/qD_x_a7m.js","/app/immutable/chunks/PVXvIyE8.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CMQcQe3J.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DJfJ5NWH.js","/app/immutable/chunks/DcR44gq9.js","/app/immutable/chunks/BR6IlpMz.js","/app/immutable/chunks/BoIfXiRv.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/DJcIRc5D.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/D9yIi5KK.js","/app/immutable/chunks/7CZay1T4.js","/app/immutable/chunks/CTiRYanT.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/M2GCPKoA.js","/app/immutable/chunks/Dqi9bJNf.js","/app/immutable/chunks/CfsrLxYu.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/BZMuFhDq.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/BU_WdKEZ.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bm as _,_ as x}from"./CDNiWmce.js";import{i as f,I_ as a,di as P,Hm as S,y_ as N,Fy as R,vC as q,qV as W,va as H,L3 as U}from"./qD_x_a7m.js";import{d as y}from"./D9yIi5KK.js";import{E as V}from"./8VBKAONs.js";import{parseIntentLink as D}from"./Du4MGCS4.js";import{m as I}from"./Bctp9lP7.js";import"./CJxGDkBm.js";import"./J1LWsTd9.js";import"./CThSE8LQ.js";import"./ChTqQfQN.js";import"./CORIYKie.js";import{x as j,k as C,w as L}from"./CDSuKhpz.js";import{dD as B}from"./Dqi9bJNf.js";import{p as E,o as $,h as z}from"./BuWwi-OB.js";const p="assistant-content",K=a.createSelector(t=>{const r=E.select(t),s=$.select(t),e=z.select(t).find(i=>i.agentId===s)??r.find(i=>i.isActive)??r.find(i=>i.messageCount>0)??r[0];return P(e?.agentId??null)}),O=new Map;function G(t,r=!1){const s=O.get(t)??{explicit:0,background:0},e={explicit:s.explicit+(r?0:1),background:s.background+(r?1:0)};return O.set(t,e),r?e:{explicit:e.explicit}}function k(t,r){const s=O.get(t);return s!==void 0&&r.explicit===s.explicit&&(r.background===void 0||r.background===s.background)}async function J(t){a.dispatch(q(t)),L.select(a.state,t).restoreStatus==="pending"&&await new Promise(r=>{const s=L.withStore(a)(t).subscribe(e=>{e.restoreStatus!=="pending"&&(r(),queueMicrotask(()=>s()))})})}function b(t,r,s){const e=L.select(a.state,s);if(!e.panels[p]||Object.keys(e.panels).some(i=>i!==p)){const i=e.panels[p],d=Object.values(e.panels).flatMap(n=>n.tabs.filter(o=>o.type!=="agent"||o.workspaceId!==f)),c=d.some(n=>n.id===i?.activeTabId)?i?.activeTabId??null:d.at(-1)?.id??null;a.dispatch(W(s,{root:{type:"panel",panelId:p},panels:{[p]:{id:p,tabs:d,activeTabId:c}},focusedPanelId:e.focusedPanelId===p?p:null,hiddenTabs:C.select(a.state,s)}))}a.dispatch(H(s,t,p,void 0,!0,void 0,!1,r.background||r.preserveFocus,void 0,r.background))}async function de(t,r={}){try{return await Q(t,r)}catch(s){return I.error(_.ui_linkHandler_notFound_title(),{description:s instanceof Error?s.message:String(s)}),!0}}async function Q(t,r){const s=/^intent:\/\/local\/([^/?#]+)\/agent\/([^/?#]+)$/.exec(t),e=t.startsWith("intent://")?D(t):null,i=e?.valid&&e.type==="workspace"?[t,e.resourceId]:/^\/workspace\/([^/?#]+)\/?$/.exec(t),d=/^https?:\/\//.test(t)&&!V(t);if(!i&&!s&&!d&&!(e?.valid&&["file","message","note","task"].includes(e.type))||i&&[f,"new"].includes(i[1]))return!1;const c=E.select(a.state),n=r.agentId?P(r.agentId):r.background?c.length===1?P(c[0].agentId):null:r.layoutId??K.select(a.state);if(!n)return!0;const o=G(n,r.background);if(await J(n),!k(n,o))return!0;if(i){const u=i[1],g=await y.workspaces.get(u);return k(n,o)?g?(a.dispatch(S(g)),b({type:"workspace",title:g.title,workspaceId:u,closable:!0},r,n),!0):(I.error(_.workspace_loader_notFound_title()),!0):!0}if(s)return T(s[1],s[2],r,n,o);if(d){const{resolveBrowserLinkForOpen:u}=await x(async()=>{const{resolveBrowserLinkForOpen:v}=await import("./BvEWkly-.js").then(w=>w.b);return{resolveBrowserLinkForOpen:v}},__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]),import.meta.url),g=await u(t);return k(n,o)&&b({type:"browser",title:new URL(t).hostname,browserUrl:g.url,browserRequestedUrl:g.requestedUrl,workspaceId:f,closable:!0},r,n),!0}if(!e?.valid)return!1;const h=e.workspaceId??f;if(e.type==="file"){const u=await y.workspaces.get(h);return k(n,o)?u?(a.dispatch(S(u)),b({type:"file",title:e.resourceId.split("/").at(-1)??e.resourceId,filePath:e.resourceId,workspaceId:h,closable:!0,data:{line:e.line,filePathIsLiteral:!0}},r,n),!0):(I.error(_.workspace_loader_notFound_title()),!0):!0}if(e.type==="message"&&e.agentId)return T(h,e.agentId,r,n,o,e.resourceId);if(e.type!=="note"&&e.type!=="task")return!1;const l=e.workspaceId??f,[m,A]=await Promise.all([a.dispatch(N(l,e.resourceId)),Promise.resolve(B.select(a.state,l)??y.workspaces.get(l)).catch(()=>null)]);if(!k(n,o))return!0;if(!m||String(m.workspaceId)!==l)return I.error(_.ui_linkHandler_notFound_title(),{description:_.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:l})}),!0;A&&String(A.id)===l&&a.dispatch(S(A));const F=Object.entries(j.select(a.state)).some(([u,g])=>{const v=w=>w.type==="note"&&w.noteId===String(m.id)&&(w.workspaceId??u)===l;return Object.values(g.panels).some(w=>w.tabs.some(v))||C.select(a.state,u).some(v)}),M=a.state.transientUi.byWorkspaceId[l]?.noteViewModeByNoteId[String(m.id)];return!F&&(!r.background||M===void 0)&&a.dispatch(R(l,String(m.id),"editor")),b({type:"note",title:m.title,noteId:String(m.id),workspaceId:l,closable:!0},r,n),!0}async function T(t,r,s,e,i,d){const c=await y.agents.get(r,t===f?void 0:t);t===f&&c&&(t=String(c.workspaceId));const n=t===f?null:await y.workspaces.get(t);if(!k(e,i))return!0;if(!n&&t!==f||!c||String(c.workspaceId)!==t)return I.error(_.ui_linkHandler_notFound_title()),!0;if(n&&a.dispatch(S(n)),a.dispatch(U(c)),b({type:"agent",title:c.name??r,agentId:r,workspaceId:t,closable:!0},s,e),d&&!s.background){const{openMessage:o}=await x(async()=>{const{openMessage:h}=await import("./DJcIRc5D.js");return{openMessage:h}},__vite__mapDeps([32,33,34,35,4,5,21,22,23,24,3,8,25,15,2,13,14,7,9,16,36,37,38,39,40,27,17,6,12,41,19,42,43,44,45]),import.meta.url);o({workspaceId:t,agentId:r,messageId:d,contentAlreadyOpen:!0})}return!0}export{p as ASSISTANT_CONTENT_PANEL_ID,K as selectAssistantPanelLayoutId,de as showAssistantContent};
|
|
@@ -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"./BfX15qhw.js";import{a as S}from"./BdWqymET.js";import{bl as A,I_ as k,i as T,Hu as C,Gu as D,vc as j,va as B,vr as V,ns as z}from"./ByW7bxEK.js";import{bL as $}from"./ClcIbYyp.js";import{m as R}from"./DEz0iQL-.js";import"./CJxGDkBm.js";import"./DLxYdmRB.js";import"./CXq2AoEa.js";import{R as N,F as g,E as G,Q as O}from"./Dg1sjsED.js";import"./ChTqQfQN.js";import"./BG3WACU1.js";import{o as q}from"./DOB06fXT.js";import{i as F}from"./7CZay1T4.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 Q(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 X(e,t){try{const a=t.event?.target,n=Q(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("./Di3oOarF.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 Y(e,{...t,sourcePanelId:r});if(e.startsWith("devspace://"))return await J(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 Y(e,t){try{const{parseIntentLink:a,handleIntentLink:n}=await h(async()=>{const{parseIntentLink:l,handleIntentLink:u}=await import("./D4ILfrQP.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 J(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("./T-q_OSSy.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("./D8JHIZfM.js").then(M=>M.e9);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("./B3bYRRle.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("./BNZHgKSk.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("./Di3oOarF.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("./Cm_3RFg5.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("./alfd90bM.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("./Dg1sjsED.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:X,openInBrowserPanel:U,openInExternalBrowser:w,openLinkInApp:E,openLinkedWorkspace:ie},Symbol.toStringTag,{value:"Module"}));export{E as a,ie as b,ce as c,X as h,ve as l,w as o,Q as r,ye as w};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/Bz3tuC8r.js","/app/immutable/chunks/CDNiWmce.js","/app/immutable/chunks/CJxGDkBm.js","/app/immutable/chunks/qD_x_a7m.js","/app/immutable/chunks/PVXvIyE8.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CMQcQe3J.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CThSE8LQ.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/C1C8P18t.js","/app/immutable/chunks/D9yIi5KK.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/8VBKAONs.js","/app/immutable/chunks/Qm-MZg2p.js","/app/immutable/chunks/J1LWsTd9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/7CZay1T4.js","/app/immutable/chunks/CTiRYanT.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/M2GCPKoA.js","/app/immutable/chunks/Du4MGCS4.js","/app/immutable/chunks/Bctp9lP7.js","/app/immutable/chunks/DEHoDrdd.js","/app/immutable/chunks/BUNb3q2A.js","/app/immutable/chunks/NtFyWdpR.js","/app/immutable/chunks/Ca-5qIPO.js","/app/immutable/chunks/DrLx8OXO.js","/app/immutable/chunks/CXEzZ2hR.js","/app/immutable/chunks/CXfsvSt9.js","/app/immutable/chunks/CORIYKie.js","/app/immutable/chunks/DJfJ5NWH.js","/app/immutable/chunks/DcR44gq9.js","/app/immutable/chunks/BR6IlpMz.js","/app/immutable/chunks/BoIfXiRv.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/Dqi9bJNf.js","/app/immutable/chunks/CfsrLxYu.js","/app/immutable/chunks/CYP3WRBZ.js","/app/immutable/chunks/CDSuKhpz.js","/app/immutable/chunks/BuWwi-OB.js","/app/immutable/chunks/BU_WdKEZ.js","/app/immutable/chunks/BZMuFhDq.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/B3bYRRle.js","/app/immutable/chunks/UWQdg-A2.js","/app/immutable/chunks/BvEWkly-.js","/app/immutable/chunks/BrfrzpId.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bm as v,_ as h}from"./CDNiWmce.js";import{a as S}from"./BdWqymET.js";import{bl as A,I_ as k,i as T,Hu as C,Gu as D,vc as j,va as B,vr as V,ns as z}from"./qD_x_a7m.js";import{bL as $}from"./DZtCGZgy.js";import{m as R}from"./Bctp9lP7.js";import"./CJxGDkBm.js";import"./J1LWsTd9.js";import"./CThSE8LQ.js";import{R as N,F as g,E as G,Q as O}from"./8VBKAONs.js";import"./ChTqQfQN.js";import"./CORIYKie.js";import{o as q}from"./CfsrLxYu.js";import{i as F}from"./7CZay1T4.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 Q(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 X(e,t){try{const a=t.event?.target,n=Q(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("./Bz3tuC8r.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 Y(e,{...t,sourcePanelId:r});if(e.startsWith("devspace://"))return await J(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 Y(e,t){try{const{parseIntentLink:a,handleIntentLink:n}=await h(async()=>{const{parseIntentLink:l,handleIntentLink:u}=await import("./Du4MGCS4.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 J(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("./BU_WdKEZ.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("./Dqi9bJNf.js").then(M=>M.e9);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("./B3bYRRle.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("./UWQdg-A2.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("./Bz3tuC8r.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("./BvEWkly-.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("./BrfrzpId.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("./8VBKAONs.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:X,openInBrowserPanel:U,openInExternalBrowser:w,openLinkInApp:E,openLinkedWorkspace:ie},Symbol.toStringTag,{value:"Module"}));export{E as a,ie as b,ce as c,X as h,ve as l,w as o,Q as r,ye as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{K as G,T as F,_ as N,a0 as A,d as J,f as X,X as Q,Q as Y,n as _,e as Z,c as q,m as W,h as K,l as O}from"./C8i00JgJ.js";import{D as P,a as tt,d as et}from"./CQcEqK4G.js";import{o as m,b as B,s as l,n as h,l as v,_ as M,c as U,u as nt}from"./CIyUrgF0.js";import{I as at}from"./C1C8P18t.js";const it="/app/immutable/assets/PatrickHand-Regular.CyLOmwMC.ttf";let D=null,R=null;const L=P.badgeFontFamily;function $(){return R??L}function H(){return D||(D=(async()=>{let t;try{const i=typeof document<"u"?document.fonts:globalThis.fonts;if(!i||typeof FontFace>"u")throw new Error("font-api-unavailable");const a=await Promise.race([new FontFace("Intent Annotation Hand",`url("${it}")`,{style:"normal",weight:"400",display:"block"}).load(),new Promise((s,r)=>{t=setTimeout(()=>r(new Error("font-load-timeout")),2e3)})]);i.add(a),R=P.fontFamily}catch{R=L}finally{clearTimeout(t)}})(),D)}let y=null;function ot(t){const i=G(t);if(t.kind!=="text"||t.style==="sticky"||(y||(y=typeof OffscreenCanvas<"u"?new OffscreenCanvas(1,1).getContext("2d"):typeof document<"u"?document.createElement("canvas").getContext("2d"):null),!y))return i;y.font=`${t.fontSize}px ${$()}`,y.textAlign="left",y.textBaseline="top",y.letterSpacing="0px",y.wordSpacing="0px";let a=1/0,s=1/0,r=-1/0,n=-1/0;const{lines:u,lineHeight:c}=F(t);for(const[o,g]of u.entries()){if(!g.trim())continue;const p=y.measureText(g),b=o*c,f=[-p.actualBoundingBoxLeft,b-p.actualBoundingBoxAscent,p.actualBoundingBoxRight,b+p.actualBoundingBoxDescent];if(!f.every(Number.isFinite))return i;a=Math.min(a,f[0]),s=Math.min(s,f[1]),r=Math.max(r,f[2]),n=Math.max(n,f[3])}if(!(r>a&&n>s))return i;const e=Math.max(1,t.fontSize/24);return{x:t.x+a-e,y:t.y+s-e,w:r-a+2*e,h:n-s+2*e}}function gt(t,i){const a=N(i,t,null),s=new Set([0,t.durationMs,...t.batches.flatMap(e=>e.clearAtMs===null?[]:[e.clearAtMs]),...a.marks.flatMap(e=>[e.frameAtMs,e.visibleUntilMs,...A(t,e.mark)?[A(t,e.mark).completedAtMs]:[]])]),r=[...new Set(a.marks.flatMap(e=>A(t,e.mark)?.samples.map(g=>g.atMs)??[]))].filter(e=>!s.has(e)&&e>=0&&e<=t.durationMs).sort((e,o)=>e-o),n=Math.max(0,1001-s.size),u=n>=r.length?r:Array.from({length:n},(e,o)=>r[Math.floor(o*r.length/n)]),c=[...new Set([...s,...u])].filter(e=>e>=0&&e<=t.durationMs).sort((e,o)=>e-o);return c.slice(0,-1).map((e,o)=>({atMs:e,endMs:c[o+1]})).filter(e=>e.endMs>e.atMs&&a.marks.some(o=>e.atMs>=o.frameAtMs&&e.atMs<o.visibleUntilMs))}function pt(t,i,a){const s=A(t,i);return!s||a>=s.completedAtMs}const E=16e3;function rt(t,i){const s=t.length*2,r=new ArrayBuffer(44+s),n=new DataView(r),u=(e,o)=>{for(let g=0;g<o.length;g+=1)n.setUint8(e+g,o.charCodeAt(g))};u(0,"RIFF"),n.setUint32(4,36+s,!0),u(8,"WAVE"),u(12,"fmt "),n.setUint32(16,16,!0),n.setUint16(20,1,!0),n.setUint16(22,1,!0),n.setUint32(24,i,!0),n.setUint32(28,i*2,!0),n.setUint16(32,2,!0),n.setUint16(34,16,!0),u(36,"data"),n.setUint32(40,s,!0);let c=44;for(let e=0;e<t.length;e+=1){const o=Math.max(-1,Math.min(1,t[e]));n.setInt16(c,o<0?o*32768:o*32767,!0),c+=2}return r}function st(t){const i=new Float32Array(t.length);for(let a=0;a<t.numberOfChannels;a+=1){const s=t.getChannelData(a);for(let r=0;r<s.length;r+=1)i[r]+=s[r]/t.numberOfChannels}return i}async function kt(t){const i=new AudioContext;try{const a=await i.decodeAudioData(await t.arrayBuffer()),s=Math.max(1,Math.ceil(a.length*E/a.sampleRate)),r=new OfflineAudioContext(1,s,E),n=r.createBufferSource();n.buffer=a,n.connect(r.destination),n.start();const u=await r.startRendering();return rt(st(u),E)}finally{await i.close().catch(()=>{})}}function j(t){const i=new Uint8Array(t),a=32768;let s="";for(let r=0;r<i.length;r+=a)s+=String.fromCharCode(...i.subarray(r,r+a));return btoa(s)}const d={...P,get fontFamily(){return $()},blurRadius:J};function z(t,i,a=0,s){const r=t.crop??{x:0,y:0,w:i.width,h:i.height},n=Math.max(1,Math.max(i.width,i.height)/1440),u=Math.min(d.badgeRadius*n,r.w/2,r.h/2);return Q(t,i).filter(c=>i.kind==="screenshot"||a>=c.mark.atMs&&a<c.visibleUntilMs).flatMap(({n:c,mark:e})=>{const o=i.kind==="recording"?Y(e.geometry,A(i,e),a):e.geometry;if(!o)return[];const g=ot(o),p=et(g,r,n,u);return[...e.id===s&&o.kind==="text"?[]:[{kind:"geometry",geometry:o,unit:n}],...d.showNumbers?[{kind:"badge",...p,radius:u,label:String(c),unit:n}]:[]]})}function V(t,i){t.save(),t.letterSpacing="0px",t.wordSpacing="0px",t.strokeStyle=d.accent,t.fillStyle=d.accent,t.lineCap="round",t.lineJoin="round";for(const a of i){const s=a.unit??1,r=(c,e)=>{t.strokeStyle=d.halo,t.lineWidth=c+d.haloWidth*s,e?t.stroke(e):t.stroke(),t.strokeStyle=d.accent,t.lineWidth=c,e?t.stroke(e):t.stroke()};if(a.kind==="badge"){t.fillStyle=d.paper,t.beginPath(),t.arc(a.x,a.y,a.radius,0,Math.PI*2),t.fill(),t.strokeStyle=d.accent,t.lineWidth=d.badgeOutline*s,t.stroke(),t.fillStyle=d.ink,t.font=`600 ${a.radius*d.badgeTextScale}px ${d.badgeFontFamily}`,t.textAlign="center",t.textBaseline="middle",t.fillText(a.label,a.x,a.y);continue}const n=a.geometry;t.fillStyle=d.accent;const u=(n.kind==="path"?d.pen:d.stroke)*s;if(n.kind==="rect")t.beginPath(),t.rect(n.x,n.y,n.w,n.h),r(u);else if(n.kind==="text"){const c=F(n);t.fillStyle=d.accent,t.textAlign="left",t.textBaseline="top",t.font=`${n.fontSize}px ${d.fontFamily}`,c.lines.forEach((e,o)=>{const g=n.x+c.padding,p=n.y+c.padding+o*c.lineHeight;t.strokeStyle=d.halo,t.lineWidth=d.haloWidth*s;const b=n.style==="sticky"?c.width-2*c.padding:void 0;t.strokeText(e,g,p,b),t.fillText(e,g,p,b)})}else if(n.kind==="point")t.beginPath(),t.arc(n.x,n.y,X,0,Math.PI*2),r(u);else if(n.kind==="path")r(u,new Path2D(tt(n.points)));else{const c=[n.from,n.to];if(t.beginPath(),c.forEach((e,o)=>o?t.lineTo(e.x,e.y):t.moveTo(e.x,e.y)),n.kind==="arrow"){const e=Math.atan2(n.to.y-n.from.y,n.to.x-n.from.x),o=d.arrowHead*s;t.moveTo(n.to.x-o*Math.cos(e-d.arrowSpread),n.to.y-o*Math.sin(e-d.arrowSpread)),t.lineTo(n.to.x,n.to.y),t.lineTo(n.to.x-o*Math.cos(e+d.arrowSpread),n.to.y-o*Math.sin(e+d.arrowSpread))}r(u)}}t.restore()}function I(t,i){const a=new OffscreenCanvas(Math.max(1,Math.round(t)),Math.max(1,Math.round(i))),s=a.getContext("2d");if(!s)throw new Error("capture-render-unavailable");return{image:a,context:s}}async function yt(t,i,a){if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await H();const{image:s,context:r}=I(t.width,t.height);return V(r,z(i,t,a)),j(await(await s.convertToBlob({type:"image/png"})).arrayBuffer())}async function wt(t,i,a,s){const r=N(i,t,null);if(t.kind!=="screenshot"||r.errors.length)throw new Error(r.errors[0]??"not-a-screenshot");if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await H();const n=Uint8Array.from(atob(a.base64),c=>c.charCodeAt(0)),u=await createImageBitmap(new Blob([n],{type:a.mimeType}));try{if(u.width!==t.width||u.height!==t.height)throw new Error("stale-source-pixels");const c=I(t.width,t.height);if(c.context.drawImage(u,0,0),i.blurRegions.length||i.blurStrokes?.length){const p=I(t.width,t.height);p.context.fillStyle="#000000",p.context.fillRect(0,0,t.width,t.height);const b=`blur(${d.blurRadius}px)`;if(p.context.filter=b,p.context.filter!==b)throw new Error("capture-blur-unavailable");p.context.drawImage(u,0,0);const f=I(t.width,t.height);f.context.fillStyle="#ffffff",f.context.strokeStyle="#ffffff",f.context.lineCap="round",f.context.lineJoin="round";for(const k of i.blurRegions)f.context.fillRect(k.x,k.y,k.w,k.h);for(const k of i.blurStrokes??[]){const S=k.points.filter((x,C)=>C===0||x.x!==k.points[C-1].x||x.y!==k.points[C-1].y);if(f.context.beginPath(),S.length===1){const x=S[0];f.context.arc(x.x,x.y,k.radius,0,Math.PI*2),f.context.fill()}else{f.context.lineWidth=k.radius*2,f.context.moveTo(S[0].x,S[0].y);for(const x of S.slice(1))f.context.lineTo(x.x,x.y);f.context.stroke()}}const T=I(t.width,t.height);T.context.drawImage(p.image,0,0),T.context.globalCompositeOperation="destination-in",T.context.drawImage(f.image,0,0),c.context.drawImage(T.image,0,0)}const e=i.crop??{x:0,y:0,w:t.width,h:t.height},o=I(e.w,e.h);o.context.drawImage(c.image,e.x,e.y,e.w,e.h,0,0,o.image.width,o.image.height),o.context.scale(o.image.width/e.w,o.image.height/e.h),o.context.translate(-e.x,-e.y),V(o.context,z(i,t,0,s?.hiddenTextMarkId));const g=await o.image.convertToBlob({type:"image/png"});return{data:j(await g.arrayBuffer()),mimeType:"image/png",width:o.image.width,height:o.image.height}}finally{u.close()}}const Mt=m({outputVersion:v(Z),jobId:l().uuid(),media:_,layers:B(m({atMs:h().finite().nonnegative(),endMs:h().finite().nonnegative(),png:l().min(1).max(48*1024*1024)}).strict()).max(1e4)}).strict(),bt=m({jobId:l().uuid(),media:_,locale:l().min(1).max(80).optional()}).strict(),lt=m({sourceId:l().min(1),sourceRevision:h().int().nonnegative(),durationMs:h().finite().positive().max(120001),intervalMs:v(50),peaks:B(h().finite().min(0).max(1)).max(2401)}).strict().refine(t=>t.peaks.length===Math.ceil(t.durationMs/t.intervalMs),"Incomplete waveform");m({jobId:l().uuid(),media:_}).strict();m({sourceId:l().min(1),sourceRevision:h().int().nonnegative(),trackCount:h().int().nonnegative().max(128),populatedTrackCount:h().int().nonnegative().max(128)}).strict().refine(t=>t.populatedTrackCount<=t.trackCount);const xt=at.DOCK_CAPTURE_EDITOR,w=l().min(1).max(200),ct=m({id:w,tool:M(q),atMs:h().finite().min(0).max(1440*60*1e3).nullable(),label:l().max(200).optional()}).strict();m({kind:M(["recording","screenshot"]),workspaceId:w,agentId:w,attachmentId:w,sourceRevision:l().min(1).max(512),attachmentPath:l().min(1).max(1024),title:l().max(200),durationMs:h().finite().min(0).max(1440*60*1e3).optional(),width:h().int().positive().max(32768).optional(),height:h().int().positive().max(32768).optional(),marks:B(ct).max(500),provenance:m({captureApi:l().max(100).optional(),hasMicAudio:U().optional(),visuals:M(["clean","baked-marks"])}).strict(),source:O.optional(),originalSource:O.optional(),saved:K.nullable().optional(),transcript:W.nullable().optional(),holdToken:l().uuid().optional()}).strict().refine(t=>!t.source||t.source.path===t.attachmentPath&&t.source.attachmentId===t.attachmentId&&t.source.kind===t.kind,"Source does not match the attachment").refine(t=>!t.saved||!!t.source&&t.saved.sourceId===t.source.id&&t.saved.sourceRevision===t.source.revision,"Edit does not match the source").refine(t=>!t.originalSource||t.source?.kind==="screenshot"&&t.originalSource.kind==="screenshot"&&t.originalSource.id!==t.source.id,"Original source does not precede this source");m({openId:l().uuid(),intent:v("attach").optional()}).strict();m({openId:l().uuid(),accept:U()}).strict();m({token:l().uuid(),hide:v(!0).optional()}).strict();m({openId:l().uuid(),requestId:l().uuid()}).strict();m({requestId:l().uuid(),result:M(["saved","stale-source","revision-conflict","failed"]),saved:K.optional()}).strict().refine(t=>t.result==="saved"==!!t.saved,"Saved edit missing");m({pair:m({workspaceId:l().min(1).max(200),agentId:l().min(1).max(200)}).strict(),sourceId:l().min(1).max(512),sourceRevision:h().int().nonnegative(),transcript:W}).strict();nt([m({requestId:l().uuid(),ok:v(!0),source:O}).strict(),m({requestId:l().uuid(),ok:v(!1),error:M(["cancelled","permission","failed"])}).strict()]);const dt=2e4;m({openId:l().uuid(),markId:l().min(1).max(512),generation:h().int().nonnegative(),phase:M(["start","stop"])}).strict();m({requestId:l().uuid(),generation:h().int().nonnegative(),text:l().max(dt),final:U(),error:M(["busy","unavailable","failed","permission"]).optional()}).strict().refine(t=>!t.error||t.final,"An error is final");m({pair:m({workspaceId:l().min(1).max(200),agentId:l().min(1).max(200)}).strict(),sourceId:l().min(1).max(512),sourceRevision:h().int().nonnegative(),waveform:lt}).strict();const It=m({requestId:l().uuid(),openId:w,pair:m({workspaceId:w,agentId:w}).strict(),kind:M(["screenshot","recording"]),attachmentId:w,sourceId:w.optional(),sourceRevision:h().int().nonnegative().optional(),expectedEditRevision:h().int().nonnegative().optional()}).strict();m({requestId:l().uuid(),result:M(["deleted","stale-source","failed"])}).strict();const vt=m({endedOpenId:l().uuid()}).strict();export{xt as D,d as a,dt as b,It as c,vt as d,Mt as e,bt as f,j as g,kt as h,ot as i,$ as j,pt as k,gt as l,H as m,z as n,yt as o,V as p,wt as r};
|
|
1
|
+
import{K as G,T as F,_ as N,a0 as A,d as J,f as X,X as Q,Q as Y,n as _,e as Z,c as q,m as W,h as K,l as O}from"./CMQcQe3J.js";import{D as P,a as tt,d as et}from"./CQcEqK4G.js";import{o as m,b as B,s as l,n as h,l as v,_ as M,c as U,u as nt}from"./CIyUrgF0.js";import{I as at}from"./C1C8P18t.js";const it="/app/immutable/assets/PatrickHand-Regular.CyLOmwMC.ttf";let D=null,R=null;const L=P.badgeFontFamily;function $(){return R??L}function H(){return D||(D=(async()=>{let t;try{const i=typeof document<"u"?document.fonts:globalThis.fonts;if(!i||typeof FontFace>"u")throw new Error("font-api-unavailable");const a=await Promise.race([new FontFace("Intent Annotation Hand",`url("${it}")`,{style:"normal",weight:"400",display:"block"}).load(),new Promise((s,r)=>{t=setTimeout(()=>r(new Error("font-load-timeout")),2e3)})]);i.add(a),R=P.fontFamily}catch{R=L}finally{clearTimeout(t)}})(),D)}let y=null;function ot(t){const i=G(t);if(t.kind!=="text"||t.style==="sticky"||(y||(y=typeof OffscreenCanvas<"u"?new OffscreenCanvas(1,1).getContext("2d"):typeof document<"u"?document.createElement("canvas").getContext("2d"):null),!y))return i;y.font=`${t.fontSize}px ${$()}`,y.textAlign="left",y.textBaseline="top",y.letterSpacing="0px",y.wordSpacing="0px";let a=1/0,s=1/0,r=-1/0,n=-1/0;const{lines:u,lineHeight:c}=F(t);for(const[o,g]of u.entries()){if(!g.trim())continue;const p=y.measureText(g),b=o*c,f=[-p.actualBoundingBoxLeft,b-p.actualBoundingBoxAscent,p.actualBoundingBoxRight,b+p.actualBoundingBoxDescent];if(!f.every(Number.isFinite))return i;a=Math.min(a,f[0]),s=Math.min(s,f[1]),r=Math.max(r,f[2]),n=Math.max(n,f[3])}if(!(r>a&&n>s))return i;const e=Math.max(1,t.fontSize/24);return{x:t.x+a-e,y:t.y+s-e,w:r-a+2*e,h:n-s+2*e}}function gt(t,i){const a=N(i,t,null),s=new Set([0,t.durationMs,...t.batches.flatMap(e=>e.clearAtMs===null?[]:[e.clearAtMs]),...a.marks.flatMap(e=>[e.frameAtMs,e.visibleUntilMs,...A(t,e.mark)?[A(t,e.mark).completedAtMs]:[]])]),r=[...new Set(a.marks.flatMap(e=>A(t,e.mark)?.samples.map(g=>g.atMs)??[]))].filter(e=>!s.has(e)&&e>=0&&e<=t.durationMs).sort((e,o)=>e-o),n=Math.max(0,1001-s.size),u=n>=r.length?r:Array.from({length:n},(e,o)=>r[Math.floor(o*r.length/n)]),c=[...new Set([...s,...u])].filter(e=>e>=0&&e<=t.durationMs).sort((e,o)=>e-o);return c.slice(0,-1).map((e,o)=>({atMs:e,endMs:c[o+1]})).filter(e=>e.endMs>e.atMs&&a.marks.some(o=>e.atMs>=o.frameAtMs&&e.atMs<o.visibleUntilMs))}function pt(t,i,a){const s=A(t,i);return!s||a>=s.completedAtMs}const E=16e3;function rt(t,i){const s=t.length*2,r=new ArrayBuffer(44+s),n=new DataView(r),u=(e,o)=>{for(let g=0;g<o.length;g+=1)n.setUint8(e+g,o.charCodeAt(g))};u(0,"RIFF"),n.setUint32(4,36+s,!0),u(8,"WAVE"),u(12,"fmt "),n.setUint32(16,16,!0),n.setUint16(20,1,!0),n.setUint16(22,1,!0),n.setUint32(24,i,!0),n.setUint32(28,i*2,!0),n.setUint16(32,2,!0),n.setUint16(34,16,!0),u(36,"data"),n.setUint32(40,s,!0);let c=44;for(let e=0;e<t.length;e+=1){const o=Math.max(-1,Math.min(1,t[e]));n.setInt16(c,o<0?o*32768:o*32767,!0),c+=2}return r}function st(t){const i=new Float32Array(t.length);for(let a=0;a<t.numberOfChannels;a+=1){const s=t.getChannelData(a);for(let r=0;r<s.length;r+=1)i[r]+=s[r]/t.numberOfChannels}return i}async function kt(t){const i=new AudioContext;try{const a=await i.decodeAudioData(await t.arrayBuffer()),s=Math.max(1,Math.ceil(a.length*E/a.sampleRate)),r=new OfflineAudioContext(1,s,E),n=r.createBufferSource();n.buffer=a,n.connect(r.destination),n.start();const u=await r.startRendering();return rt(st(u),E)}finally{await i.close().catch(()=>{})}}function j(t){const i=new Uint8Array(t),a=32768;let s="";for(let r=0;r<i.length;r+=a)s+=String.fromCharCode(...i.subarray(r,r+a));return btoa(s)}const d={...P,get fontFamily(){return $()},blurRadius:J};function z(t,i,a=0,s){const r=t.crop??{x:0,y:0,w:i.width,h:i.height},n=Math.max(1,Math.max(i.width,i.height)/1440),u=Math.min(d.badgeRadius*n,r.w/2,r.h/2);return Q(t,i).filter(c=>i.kind==="screenshot"||a>=c.mark.atMs&&a<c.visibleUntilMs).flatMap(({n:c,mark:e})=>{const o=i.kind==="recording"?Y(e.geometry,A(i,e),a):e.geometry;if(!o)return[];const g=ot(o),p=et(g,r,n,u);return[...e.id===s&&o.kind==="text"?[]:[{kind:"geometry",geometry:o,unit:n}],...d.showNumbers?[{kind:"badge",...p,radius:u,label:String(c),unit:n}]:[]]})}function V(t,i){t.save(),t.letterSpacing="0px",t.wordSpacing="0px",t.strokeStyle=d.accent,t.fillStyle=d.accent,t.lineCap="round",t.lineJoin="round";for(const a of i){const s=a.unit??1,r=(c,e)=>{t.strokeStyle=d.halo,t.lineWidth=c+d.haloWidth*s,e?t.stroke(e):t.stroke(),t.strokeStyle=d.accent,t.lineWidth=c,e?t.stroke(e):t.stroke()};if(a.kind==="badge"){t.fillStyle=d.paper,t.beginPath(),t.arc(a.x,a.y,a.radius,0,Math.PI*2),t.fill(),t.strokeStyle=d.accent,t.lineWidth=d.badgeOutline*s,t.stroke(),t.fillStyle=d.ink,t.font=`600 ${a.radius*d.badgeTextScale}px ${d.badgeFontFamily}`,t.textAlign="center",t.textBaseline="middle",t.fillText(a.label,a.x,a.y);continue}const n=a.geometry;t.fillStyle=d.accent;const u=(n.kind==="path"?d.pen:d.stroke)*s;if(n.kind==="rect")t.beginPath(),t.rect(n.x,n.y,n.w,n.h),r(u);else if(n.kind==="text"){const c=F(n);t.fillStyle=d.accent,t.textAlign="left",t.textBaseline="top",t.font=`${n.fontSize}px ${d.fontFamily}`,c.lines.forEach((e,o)=>{const g=n.x+c.padding,p=n.y+c.padding+o*c.lineHeight;t.strokeStyle=d.halo,t.lineWidth=d.haloWidth*s;const b=n.style==="sticky"?c.width-2*c.padding:void 0;t.strokeText(e,g,p,b),t.fillText(e,g,p,b)})}else if(n.kind==="point")t.beginPath(),t.arc(n.x,n.y,X,0,Math.PI*2),r(u);else if(n.kind==="path")r(u,new Path2D(tt(n.points)));else{const c=[n.from,n.to];if(t.beginPath(),c.forEach((e,o)=>o?t.lineTo(e.x,e.y):t.moveTo(e.x,e.y)),n.kind==="arrow"){const e=Math.atan2(n.to.y-n.from.y,n.to.x-n.from.x),o=d.arrowHead*s;t.moveTo(n.to.x-o*Math.cos(e-d.arrowSpread),n.to.y-o*Math.sin(e-d.arrowSpread)),t.lineTo(n.to.x,n.to.y),t.lineTo(n.to.x-o*Math.cos(e+d.arrowSpread),n.to.y-o*Math.sin(e+d.arrowSpread))}r(u)}}t.restore()}function I(t,i){const a=new OffscreenCanvas(Math.max(1,Math.round(t)),Math.max(1,Math.round(i))),s=a.getContext("2d");if(!s)throw new Error("capture-render-unavailable");return{image:a,context:s}}async function yt(t,i,a){if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await H();const{image:s,context:r}=I(t.width,t.height);return V(r,z(i,t,a)),j(await(await s.convertToBlob({type:"image/png"})).arrayBuffer())}async function wt(t,i,a,s){const r=N(i,t,null);if(t.kind!=="screenshot"||r.errors.length)throw new Error(r.errors[0]??"not-a-screenshot");if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await H();const n=Uint8Array.from(atob(a.base64),c=>c.charCodeAt(0)),u=await createImageBitmap(new Blob([n],{type:a.mimeType}));try{if(u.width!==t.width||u.height!==t.height)throw new Error("stale-source-pixels");const c=I(t.width,t.height);if(c.context.drawImage(u,0,0),i.blurRegions.length||i.blurStrokes?.length){const p=I(t.width,t.height);p.context.fillStyle="#000000",p.context.fillRect(0,0,t.width,t.height);const b=`blur(${d.blurRadius}px)`;if(p.context.filter=b,p.context.filter!==b)throw new Error("capture-blur-unavailable");p.context.drawImage(u,0,0);const f=I(t.width,t.height);f.context.fillStyle="#ffffff",f.context.strokeStyle="#ffffff",f.context.lineCap="round",f.context.lineJoin="round";for(const k of i.blurRegions)f.context.fillRect(k.x,k.y,k.w,k.h);for(const k of i.blurStrokes??[]){const S=k.points.filter((x,C)=>C===0||x.x!==k.points[C-1].x||x.y!==k.points[C-1].y);if(f.context.beginPath(),S.length===1){const x=S[0];f.context.arc(x.x,x.y,k.radius,0,Math.PI*2),f.context.fill()}else{f.context.lineWidth=k.radius*2,f.context.moveTo(S[0].x,S[0].y);for(const x of S.slice(1))f.context.lineTo(x.x,x.y);f.context.stroke()}}const T=I(t.width,t.height);T.context.drawImage(p.image,0,0),T.context.globalCompositeOperation="destination-in",T.context.drawImage(f.image,0,0),c.context.drawImage(T.image,0,0)}const e=i.crop??{x:0,y:0,w:t.width,h:t.height},o=I(e.w,e.h);o.context.drawImage(c.image,e.x,e.y,e.w,e.h,0,0,o.image.width,o.image.height),o.context.scale(o.image.width/e.w,o.image.height/e.h),o.context.translate(-e.x,-e.y),V(o.context,z(i,t,0,s?.hiddenTextMarkId));const g=await o.image.convertToBlob({type:"image/png"});return{data:j(await g.arrayBuffer()),mimeType:"image/png",width:o.image.width,height:o.image.height}}finally{u.close()}}const Mt=m({outputVersion:v(Z),jobId:l().uuid(),media:_,layers:B(m({atMs:h().finite().nonnegative(),endMs:h().finite().nonnegative(),png:l().min(1).max(48*1024*1024)}).strict()).max(1e4)}).strict(),bt=m({jobId:l().uuid(),media:_,locale:l().min(1).max(80).optional()}).strict(),lt=m({sourceId:l().min(1),sourceRevision:h().int().nonnegative(),durationMs:h().finite().positive().max(120001),intervalMs:v(50),peaks:B(h().finite().min(0).max(1)).max(2401)}).strict().refine(t=>t.peaks.length===Math.ceil(t.durationMs/t.intervalMs),"Incomplete waveform");m({jobId:l().uuid(),media:_}).strict();m({sourceId:l().min(1),sourceRevision:h().int().nonnegative(),trackCount:h().int().nonnegative().max(128),populatedTrackCount:h().int().nonnegative().max(128)}).strict().refine(t=>t.populatedTrackCount<=t.trackCount);const xt=at.DOCK_CAPTURE_EDITOR,w=l().min(1).max(200),ct=m({id:w,tool:M(q),atMs:h().finite().min(0).max(1440*60*1e3).nullable(),label:l().max(200).optional()}).strict();m({kind:M(["recording","screenshot"]),workspaceId:w,agentId:w,attachmentId:w,sourceRevision:l().min(1).max(512),attachmentPath:l().min(1).max(1024),title:l().max(200),durationMs:h().finite().min(0).max(1440*60*1e3).optional(),width:h().int().positive().max(32768).optional(),height:h().int().positive().max(32768).optional(),marks:B(ct).max(500),provenance:m({captureApi:l().max(100).optional(),hasMicAudio:U().optional(),visuals:M(["clean","baked-marks"])}).strict(),source:O.optional(),originalSource:O.optional(),saved:K.nullable().optional(),transcript:W.nullable().optional(),holdToken:l().uuid().optional()}).strict().refine(t=>!t.source||t.source.path===t.attachmentPath&&t.source.attachmentId===t.attachmentId&&t.source.kind===t.kind,"Source does not match the attachment").refine(t=>!t.saved||!!t.source&&t.saved.sourceId===t.source.id&&t.saved.sourceRevision===t.source.revision,"Edit does not match the source").refine(t=>!t.originalSource||t.source?.kind==="screenshot"&&t.originalSource.kind==="screenshot"&&t.originalSource.id!==t.source.id,"Original source does not precede this source");m({openId:l().uuid(),intent:v("attach").optional()}).strict();m({openId:l().uuid(),accept:U()}).strict();m({token:l().uuid(),hide:v(!0).optional()}).strict();m({openId:l().uuid(),requestId:l().uuid()}).strict();m({requestId:l().uuid(),result:M(["saved","stale-source","revision-conflict","failed"]),saved:K.optional()}).strict().refine(t=>t.result==="saved"==!!t.saved,"Saved edit missing");m({pair:m({workspaceId:l().min(1).max(200),agentId:l().min(1).max(200)}).strict(),sourceId:l().min(1).max(512),sourceRevision:h().int().nonnegative(),transcript:W}).strict();nt([m({requestId:l().uuid(),ok:v(!0),source:O}).strict(),m({requestId:l().uuid(),ok:v(!1),error:M(["cancelled","permission","failed"])}).strict()]);const dt=2e4;m({openId:l().uuid(),markId:l().min(1).max(512),generation:h().int().nonnegative(),phase:M(["start","stop"])}).strict();m({requestId:l().uuid(),generation:h().int().nonnegative(),text:l().max(dt),final:U(),error:M(["busy","unavailable","failed","permission"]).optional()}).strict().refine(t=>!t.error||t.final,"An error is final");m({pair:m({workspaceId:l().min(1).max(200),agentId:l().min(1).max(200)}).strict(),sourceId:l().min(1).max(512),sourceRevision:h().int().nonnegative(),waveform:lt}).strict();const It=m({requestId:l().uuid(),openId:w,pair:m({workspaceId:w,agentId:w}).strict(),kind:M(["screenshot","recording"]),attachmentId:w,sourceId:w.optional(),sourceRevision:h().int().nonnegative().optional(),expectedEditRevision:h().int().nonnegative().optional()}).strict();m({requestId:l().uuid(),result:M(["deleted","stale-source","failed"])}).strict();const vt=m({endedOpenId:l().uuid()}).strict();export{xt as D,d as a,dt as b,It as c,vt as d,Mt as e,bt as f,j as g,kt as h,ot as i,$ as j,pt as k,gt as l,H as m,z as n,yt as o,V as p,wt as r};
|