@intent-hq/web 2.285.2 → 2.286.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/{Cv9OIgSe.js → -4iKCYSl.js} +1 -1
- package/web/app/immutable/chunks/{BUYWrzfb.js → -fWJi05-.js} +1 -1
- package/web/app/immutable/chunks/{U18kRAfW.js → 172GvQgx.js} +2 -2
- package/web/app/immutable/chunks/{Bm2N3t4X.js → 1jz3AJ7K.js} +1 -1
- package/web/app/immutable/chunks/{Bz2ThdmF.js → 2FstYM1s.js} +1 -1
- package/web/app/immutable/chunks/{Blmgq1Ng.js → 2LPpSBFe.js} +1 -1
- package/web/app/immutable/chunks/{CtQ6ra1S.js → 2oaDc1nn.js} +1 -1
- package/web/app/immutable/chunks/{BBGMxKuT.js → 3QmaYnff.js} +1 -1
- package/web/app/immutable/chunks/{DVx_I_hW.js → 3q61Z6zu.js} +1 -1
- package/web/app/immutable/chunks/{BfnQ_oJR.js → 3sa2ZSPC.js} +1 -1
- package/web/app/immutable/chunks/{D3TYCYab.js → 4LCvEsVS.js} +1 -1
- package/web/app/immutable/chunks/{B1C9yD3K.js → 6hWyihnV.js} +1 -1
- package/web/app/immutable/chunks/{DFNyXhJT.js → 9JjZRepm.js} +64 -176
- package/web/app/immutable/chunks/{CasNMwyU.js → 9M3_vOvI.js} +1 -1
- package/web/app/immutable/chunks/{BjkG0GoW.js → ALbX902-.js} +1 -1
- package/web/app/immutable/chunks/{DVnFqbmq.js → B-34RgWF.js} +1 -1
- package/web/app/immutable/chunks/{RiuBRZY4.js → B-jWalbO.js} +1 -1
- package/web/app/immutable/chunks/{CZU65Loh.js → B0jdpkVd.js} +1 -1
- package/web/app/immutable/chunks/{CTMFE1LM.js → B1kJVNhf.js} +1 -1
- package/web/app/immutable/chunks/{BFRmf7wo.js → B2SAFlE_.js} +1 -1
- package/web/app/immutable/chunks/{uTcbYh1p.js → B5NXv3LV.js} +12 -12
- package/web/app/immutable/chunks/{D3srKfGI.js → B5OVBjIf.js} +1 -1
- package/web/app/immutable/chunks/{B7XTx9cc.js → B5VfU0KM.js} +1 -1
- package/web/app/immutable/chunks/{D8iEGEdh.js → B5WfnJ_I.js} +1 -1
- package/web/app/immutable/chunks/{BSJ1XOuD.js → B6LKhrY2.js} +1 -1
- package/web/app/immutable/chunks/{CBIEY7XB.js → B6pRjnl0.js} +1 -1
- package/web/app/immutable/chunks/{BdeY5a6v.js → B78OjmQ3.js} +1 -1
- package/web/app/immutable/chunks/{B9C9V_qL.js → B7mAnbbv.js} +1 -1
- package/web/app/immutable/chunks/{c_J_BfG0.js → B7wpfrW2.js} +1 -1
- package/web/app/immutable/chunks/{BCM6KcqI.js → B8N5zbP-.js} +1 -1
- package/web/app/immutable/chunks/{DEknUYzT.js → B8jzbPVu.js} +1 -1
- package/web/app/immutable/chunks/{D2zsyuer.js → BAEKjYyz.js} +1 -1
- package/web/app/immutable/chunks/{Bid9Ap_k.js → BB0aq9c_.js} +1 -1
- package/web/app/immutable/chunks/{DePeyicW.js → BCYRUItZ.js} +4 -4
- package/web/app/immutable/chunks/{3dddnXRn.js → BCiyShif.js} +1 -1
- package/web/app/immutable/chunks/{D8iiTvej.js → BCu94obu.js} +1 -1
- package/web/app/immutable/chunks/{B0g2pl5M.js → BDFJ3z4C.js} +1 -1
- package/web/app/immutable/chunks/{TQt9-VB1.js → BDq7EC2K.js} +1 -1
- package/web/app/immutable/chunks/{Dq5ZUD1k.js → BEmWnLiC.js} +1 -1
- package/web/app/immutable/chunks/{5iZ2wIez.js → BGgB8Pc0.js} +2 -2
- package/web/app/immutable/chunks/{qwXhlljn.js → BHwB2t2J.js} +6 -6
- package/web/app/immutable/chunks/{GvdVp0-P.js → BIGmpOjZ.js} +1 -1
- package/web/app/immutable/chunks/{8C3-mETY.js → BIY56SBV.js} +1 -1
- package/web/app/immutable/chunks/{4v_K7VfW.js → BKAT2tIv.js} +1 -1
- package/web/app/immutable/chunks/{FyN0A7AV.js → BKVXZiH3.js} +1 -1
- package/web/app/immutable/chunks/{FjgX31oc.js → BMfFFxXt.js} +1 -1
- package/web/app/immutable/chunks/{BkTmPNF1.js → BOFk1KrL.js} +1 -1
- package/web/app/immutable/chunks/{BUjG2l2R.js → BONnxsQv.js} +1 -1
- package/web/app/immutable/chunks/{TVTqPTWK.js → BR5lR6Td.js} +1 -1
- package/web/app/immutable/chunks/{cIkUUquE.js → BTRxaITj.js} +1 -1
- package/web/app/immutable/chunks/{C8IxeNxn.js → BUVaYTVI.js} +1 -1
- package/web/app/immutable/chunks/{BEYgNH0C.js → BUqUwu2G.js} +1 -1
- package/web/app/immutable/chunks/{iew6AFqX.js → BXGDMgsv.js} +1 -1
- package/web/app/immutable/chunks/{BkebGjs2.js → BY3DTY8F.js} +1 -1
- package/web/app/immutable/chunks/{CMIvYuSx.js → BY3Ptqbg.js} +1 -1
- package/web/app/immutable/chunks/{BW-6dkur.js → BYr8MV2A.js} +1 -1
- package/web/app/immutable/chunks/BZXl3la6.js +1 -0
- package/web/app/immutable/chunks/{Bta6aHrh.js → B_IE7AMR.js} +1 -1
- package/web/app/immutable/chunks/{BBHMDA7t.js → B_Ngo80M.js} +1 -1
- package/web/app/immutable/chunks/{C3eAseNm.js → BaWkgFPr.js} +1 -1
- package/web/app/immutable/chunks/Bb7OZuad.js +1 -0
- package/web/app/immutable/chunks/{BYPVMH5B.js → BbANJKYX.js} +1 -1
- package/web/app/immutable/chunks/{DWpT56xY.js → BdMP-rwq.js} +1 -1
- package/web/app/immutable/chunks/BdvBYYZC.js +1 -0
- package/web/app/immutable/chunks/{wt74fNt_.js → Bdxsm1jE.js} +1 -1
- package/web/app/immutable/chunks/{s3cncl0S.js → Be5P0JlV.js} +1 -1
- package/web/app/immutable/chunks/{CtmPq_C5.js → BfbDGmVv.js} +1 -1
- package/web/app/immutable/chunks/{BXIUuYhE.js → Bg8XhRuy.js} +1 -1
- package/web/app/immutable/chunks/{Bk7TZMmK.js → BgX6IJDk.js} +1 -1
- package/web/app/immutable/chunks/{CXSfGSsj.js → BhBL2il-.js} +1 -1
- package/web/app/immutable/chunks/{T5eAJQ5P.js → BhIrT2jr.js} +2 -2
- package/web/app/immutable/chunks/{BFt420O2.js → BhS3zmFy.js} +1 -1
- package/web/app/immutable/chunks/{D35akxD1.js → BjFoJgFv.js} +1 -1
- package/web/app/immutable/chunks/{sVDMg5h2.js → BkBZtLYF.js} +1 -1
- package/web/app/immutable/chunks/{BtUIZVIr.js → BkoH1phN.js} +1 -1
- package/web/app/immutable/chunks/{DZE6-UEM.js → Bl1K7xmJ.js} +1 -1
- package/web/app/immutable/chunks/{CZGA0a1i.js → BlJs0v1V.js} +1 -1
- package/web/app/immutable/chunks/{DEtTxbeY.js → Bluyq349.js} +1 -1
- package/web/app/immutable/chunks/{BRBPzczh.js → BmIqWliN.js} +1 -1
- package/web/app/immutable/chunks/{xFzmjbnd.js → BmnDHgDT.js} +1 -1
- package/web/app/immutable/chunks/{P5FoRduB.js → Bn4hj7HG.js} +1 -1
- package/web/app/immutable/chunks/{pQkRApuV.js → BnDVzHAF.js} +1 -1
- package/web/app/immutable/chunks/{GQGPhDcr.js → BnT9q9y-.js} +1 -1
- package/web/app/immutable/chunks/{mQEU-N_p.js → BqRJyrRC.js} +1 -1
- package/web/app/immutable/chunks/{Bg6ucgGL.js → Bqoyy9yx.js} +1 -1
- package/web/app/immutable/chunks/{BLhskmrd.js → BrVO-2UU.js} +1 -1
- package/web/app/immutable/chunks/{kU2gMO6Q.js → BsKoK3Rk.js} +1 -1
- package/web/app/immutable/chunks/{DWpX6Caf.js → BsNGkCax.js} +1 -1
- package/web/app/immutable/chunks/{BkfH-kwC.js → Bth7_IHu.js} +1 -1
- package/web/app/immutable/chunks/{DNezUHSG.js → Bwh6J9sG.js} +1 -1
- package/web/app/immutable/chunks/{BFkNTtC8.js → BwixslcF.js} +1 -1
- package/web/app/immutable/chunks/{CqyJ9ETw.js → BwqCA_Tg.js} +1 -1
- package/web/app/immutable/chunks/{C-LEC-SE.js → BxKmCVSh.js} +1 -1
- package/web/app/immutable/chunks/{DVTnkoPz.js → Bxc57npw.js} +1 -1
- package/web/app/immutable/chunks/{CycrwEDR.js → Bz08MgGK.js} +1 -1
- package/web/app/immutable/chunks/{BYknlOpg.js → C4Zcz5ig.js} +1 -1
- package/web/app/immutable/chunks/{CceoWbVF.js → C4lY6YLh.js} +1 -1
- package/web/app/immutable/chunks/{BdRm71a6.js → C563feV7.js} +1 -1
- package/web/app/immutable/chunks/{DfcEE8cz.js → C5E1PJb6.js} +2 -2
- package/web/app/immutable/chunks/{BWTPBBe6.js → C5RdKv5y.js} +1 -1
- package/web/app/immutable/chunks/{B-2t8jo3.js → C5Xi5eLp.js} +3 -3
- package/web/app/immutable/chunks/{CnVZjzuN.js → C68FzyYL.js} +1 -1
- package/web/app/immutable/chunks/{DhsW4MRu.js → C6RQmr0V.js} +1 -1
- package/web/app/immutable/chunks/{DUaZ1qia.js → C8sY1PbT.js} +1 -1
- package/web/app/immutable/chunks/{DXOtvPd1.js → C9129WmZ.js} +3 -3
- package/web/app/immutable/chunks/{BiD-G4M2.js → C9WpfWq_.js} +1 -1
- package/web/app/immutable/chunks/{B3fObOE3.js → C9g8CU4z.js} +1 -1
- package/web/app/immutable/chunks/{DFTQjdyb.js → CC-oK8xP.js} +2 -2
- package/web/app/immutable/chunks/{Cu2WCtWO.js → CD4CbF09.js} +1 -1
- package/web/app/immutable/chunks/{C4TS3VfR.js → CDuyWy4D.js} +1 -1
- package/web/app/immutable/chunks/{CgGTNk2L.js → CEiokx4X.js} +1 -1
- package/web/app/immutable/chunks/{CcaZ2B1J.js → CG-WEY6g.js} +1 -1
- package/web/app/immutable/chunks/{DYXED2G4.js → CHdmzkZm.js} +1 -1
- package/web/app/immutable/chunks/{CxHjI2Tg.js → CHtCNHFI.js} +1 -1
- package/web/app/immutable/chunks/{BUEprNJA.js → CJKeXT5H.js} +1 -1
- package/web/app/immutable/chunks/{B5TmUe1P.js → CJPP3n_b.js} +1 -1
- package/web/app/immutable/chunks/{sWXcWDw4.js → CJlBFmXK.js} +1 -1
- package/web/app/immutable/chunks/{BQmmLJ-E.js → CJvhopKt.js} +1 -1
- package/web/app/immutable/chunks/{mmA_Vmgh.js → CM-RTisq.js} +1 -1
- package/web/app/immutable/chunks/{2f-mANfy.js → CMieQf0P.js} +1 -1
- package/web/app/immutable/chunks/{-mncWYX6.js → CN1yc9sw.js} +1 -1
- package/web/app/immutable/chunks/{B64r-cFw.js → CN6UuCI4.js} +2 -2
- package/web/app/immutable/chunks/{qotowrm5.js → CNG6DDdt.js} +1 -1
- package/web/app/immutable/chunks/COCO5InB.js +1 -0
- package/web/app/immutable/chunks/{nwQDW4ZF.js → CPozPG26.js} +1 -1
- package/web/app/immutable/chunks/{9wyxCCG6.js → CQ8xUw8b.js} +1 -1
- package/web/app/immutable/chunks/{rcI9zJfc.js → CQlclm_i.js} +1 -1
- package/web/app/immutable/chunks/{BAtx4AAq.js → CTeTIheq.js} +1 -1
- package/web/app/immutable/chunks/{BCjCkpDT.js → CU9uaZDq.js} +1 -1
- package/web/app/immutable/chunks/{MMvgNBCX.js → CUBHTDNB.js} +3 -3
- package/web/app/immutable/chunks/{Bjn521ze.js → CVdwaaxP.js} +1 -1
- package/web/app/immutable/chunks/{DYBtbu7w.js → CZ9zPpOW.js} +1 -1
- package/web/app/immutable/chunks/{BEvgfoZ-.js → CaJjlkv1.js} +1 -1
- package/web/app/immutable/chunks/{cEXqcy6U.js → CaQ_vubD.js} +1 -1
- package/web/app/immutable/chunks/{dcub9TKu.js → CbQJkQ1_.js} +2 -2
- package/web/app/immutable/chunks/{CN-kAG5x.js → Cbe4LDCb.js} +1 -1
- package/web/app/immutable/chunks/{D7UERhiU.js → Cc8gV_FE.js} +1 -1
- package/web/app/immutable/chunks/{BJwpOHaV.js → CcDZ8sih.js} +4 -4
- package/web/app/immutable/chunks/{D9G_-pix.js → CcFGFqFC.js} +1 -1
- package/web/app/immutable/chunks/{C26VZzf0.js → Ccs3PzsG.js} +1 -1
- package/web/app/immutable/chunks/{pXKV3Ovh.js → CdEtW7wp.js} +1 -1
- package/web/app/immutable/chunks/{1mVnOdok.js → Cdhgfy6h.js} +1 -1
- package/web/app/immutable/chunks/{BfSDVDFf.js → Cdv2uRTZ.js} +1 -1
- package/web/app/immutable/chunks/{CkcASLw0.js → CeHlFtmN.js} +1 -1
- package/web/app/immutable/chunks/{D6uvKkqf.js → Cf1Jz9Vb.js} +1 -1
- package/web/app/immutable/chunks/{PWIIayd8.js → CfHaLL96.js} +1 -1
- package/web/app/immutable/chunks/{CS2qFATq.js → CfWtYm2O.js} +1 -1
- package/web/app/immutable/chunks/{CVEOLYKd.js → Cg71xtru.js} +1 -1
- package/web/app/immutable/chunks/{B0aENl7q.js → CgOfeXf8.js} +1 -1
- package/web/app/immutable/chunks/{A4DSFNiI.js → Ch5dX3SV.js} +1 -1
- package/web/app/immutable/chunks/{Dddo5_Ke.js → ChAC9BWJ.js} +1 -1
- package/web/app/immutable/chunks/{CudTayzY.js → ChMhvUux.js} +1 -1
- package/web/app/immutable/chunks/{DhhoUiRS.js → ChOA9PWi.js} +1 -1
- package/web/app/immutable/chunks/{BZ30EcZ0.js → Cic3Ymv4.js} +2 -2
- package/web/app/immutable/chunks/{DZSJnoMv.js → CjOA3fQ_.js} +1 -1
- package/web/app/immutable/chunks/{DoWd6zTc.js → CjOWZNUy.js} +1 -1
- package/web/app/immutable/chunks/{DYULb8CZ.js → CjVTzfqV.js} +1 -1
- package/web/app/immutable/chunks/{Cfcj1NKt.js → Ck11Hn8r.js} +1 -1
- package/web/app/immutable/chunks/{k5E4VfsL.js → CkcF_YO7.js} +1 -1
- package/web/app/immutable/chunks/{CYFUPy7X.js → CkjuLrGS.js} +1 -1
- package/web/app/immutable/chunks/{CyzhlhuH.js → ClYVhnOY.js} +1 -1
- package/web/app/immutable/chunks/{XQQW-aBJ.js → CnT2T-Bp.js} +5 -5
- package/web/app/immutable/chunks/{D-LYQeQ-.js → Co4sbmfD.js} +1 -1
- package/web/app/immutable/chunks/{DNZoksq4.js → CpWqDujk.js} +1 -1
- package/web/app/immutable/chunks/{CDoCDg8h.js → CqwbuddS.js} +1 -1
- package/web/app/immutable/chunks/{CIGHesQj.js → Crs9I2MT.js} +1 -1
- package/web/app/immutable/chunks/{Bw242gnT.js → Ct7iVnk5.js} +2 -2
- package/web/app/immutable/chunks/{Uh-UE9wM.js → CuR0GGFl.js} +1 -1
- package/web/app/immutable/chunks/{D4D7HYnP.js → CusMGTEg.js} +1 -1
- package/web/app/immutable/chunks/{BwKyFgJw.js → Cv6pFp-w.js} +1 -1
- package/web/app/immutable/chunks/{BTVL8u-m.js → CvodOZsR.js} +1 -1
- package/web/app/immutable/chunks/{DSoE1eag.js → Cx4f7t9d.js} +1 -1
- package/web/app/immutable/chunks/{l3kSG7UR.js → CyFrvxU5.js} +1 -1
- package/web/app/immutable/chunks/{Cm31fs63.js → CzK2fiHA.js} +1 -1
- package/web/app/immutable/chunks/{DTQY9iaC.js → D4uZwrDX.js} +1 -1
- package/web/app/immutable/chunks/{-l75u76-.js → D61mreVc.js} +1 -1
- package/web/app/immutable/chunks/{C90DpsQf.js → D62E6eA-.js} +1 -1
- package/web/app/immutable/chunks/{1-LmC8OR.js → D6eVIgjz.js} +1 -1
- package/web/app/immutable/chunks/{vYvFppOt.js → D7y4iPD0.js} +1 -1
- package/web/app/immutable/chunks/{C2rCMMRE.js → D9PvMI-Y.js} +1 -1
- package/web/app/immutable/chunks/{CcGTVp4j.js → D9qYrFLr.js} +1 -1
- package/web/app/immutable/chunks/{BVwxU13Q.js → DAPK9slU.js} +1 -1
- package/web/app/immutable/chunks/{CEer-6aX.js → DES0UXLU.js} +1 -1
- package/web/app/immutable/chunks/{CVYO3MCe.js → DGWxO_aL.js} +1 -1
- package/web/app/immutable/chunks/{BCf7gamQ.js → DHLYr2dR.js} +1 -1
- package/web/app/immutable/chunks/{B2LtcN3l.js → DJeS0Z6Z.js} +1 -1
- package/web/app/immutable/chunks/{D1MW0p1M.js → DJu_D7ND.js} +1 -1
- package/web/app/immutable/chunks/{lim2zDE2.js → DKnyYiOE.js} +1 -1
- package/web/app/immutable/chunks/{Dm9qsstx.js → DLOFCVO4.js} +1 -1
- package/web/app/immutable/chunks/{C7vqbdEX.js → DLa8qMgT.js} +1 -1
- package/web/app/immutable/chunks/{CVJBvnUl.js → DM4MRAyE.js} +1 -1
- package/web/app/immutable/chunks/{J1lXFz2y.js → DMtDzgot.js} +1 -1
- package/web/app/immutable/chunks/{CH5AyPs4.js → DNOilvOO.js} +3 -3
- package/web/app/immutable/chunks/{L8dUuijD.js → DQPsLJmj.js} +1 -1
- package/web/app/immutable/chunks/{Dk3HtdKK.js → DQprfQGN.js} +1 -1
- package/web/app/immutable/chunks/{CsPxG6yF.js → DROi8p_h.js} +1 -1
- package/web/app/immutable/chunks/{CsfuOIv6.js → DRt6izFN.js} +1 -1
- package/web/app/immutable/chunks/{NmSV7YqY.js → DU5u4CoB.js} +7 -7
- package/web/app/immutable/chunks/{DgqWupib.js → DUT4V6mb.js} +1 -1
- package/web/app/immutable/chunks/{Wv2toTdr.js → DWvbS4mu.js} +1 -1
- package/web/app/immutable/chunks/{BKgY2Jl-.js → DZ2EweHv.js} +1 -1
- package/web/app/immutable/chunks/{DRtAK_Ho.js → DaJca0wp.js} +1 -1
- package/web/app/immutable/chunks/{ljKTvebC.js → DcOGngFl.js} +1 -1
- package/web/app/immutable/chunks/{BRmWK7rc.js → Dck4Okga.js} +1 -1
- package/web/app/immutable/chunks/{CXdnEYDZ.js → DdZVLxLI.js} +1 -1
- package/web/app/immutable/chunks/{CrZPmKc1.js → De60mY1u.js} +1 -1
- package/web/app/immutable/chunks/{BDXMuX2f.js → DeD2_APR.js} +1 -1
- package/web/app/immutable/chunks/{Clb8R8dA.js → DeMWATch.js} +1 -1
- package/web/app/immutable/chunks/{DmAxjKP5.js → Dh52so4o.js} +3 -3
- package/web/app/immutable/chunks/{CSfGawHT.js → DiBTM3GP.js} +1 -1
- package/web/app/immutable/chunks/{Chnt0cvp.js → Dj9OdxPP.js} +1 -1
- package/web/app/immutable/chunks/{COeVbqbN.js → DjZWf4AT.js} +1 -1
- package/web/app/immutable/chunks/{B1a4c2h3.js → DoIwXvY5.js} +1 -1
- package/web/app/immutable/chunks/{BLArCgFy.js → DoLFtAtL.js} +1 -1
- package/web/app/immutable/chunks/{BwtTootF.js → DotyRxfG.js} +1 -1
- package/web/app/immutable/chunks/{ER83EupQ.js → DqkDKEMV.js} +1 -1
- package/web/app/immutable/chunks/{DUfRp1mg.js → DrI7rzCm.js} +1 -1
- package/web/app/immutable/chunks/{vi0NVewk.js → Ds-FLOE0.js} +1 -1
- package/web/app/immutable/chunks/{BQmBFkiw.js → Du9ULB4g.js} +1 -1
- package/web/app/immutable/chunks/{VIKn6Y9i.js → DuXpwSkB.js} +1 -1
- package/web/app/immutable/chunks/{DqH66s0-.js → DuzQF9m7.js} +1 -1
- package/web/app/immutable/chunks/{DMTaF0AC.js → DvDXb3dW.js} +1 -1
- package/web/app/immutable/chunks/{C1wu5rDo.js → Dx5-Ovf5.js} +1 -1
- package/web/app/immutable/chunks/{BuFV8TkD.js → Dxitz0gG.js} +1 -1
- package/web/app/immutable/chunks/{BagwB5zw.js → DyD06k4V.js} +1 -1
- package/web/app/immutable/chunks/{Dfewwg6c.js → DyjYgqtH.js} +1 -1
- package/web/app/immutable/chunks/{CL0gVjb2.js → Dz40TuR7.js} +1 -1
- package/web/app/immutable/chunks/{Cw00ec7E.js → F7QETuhI.js} +1 -1
- package/web/app/immutable/chunks/{01fEyy8F.js → F9nw4iUp.js} +1 -1
- package/web/app/immutable/chunks/{DF6DARvQ.js → Fy3QvGgT.js} +1 -1
- package/web/app/immutable/chunks/{1WCxedXI.js → HHGL3CBU.js} +1 -1
- package/web/app/immutable/chunks/{DJSDIQIJ.js → HjNzRj_q.js} +1 -1
- package/web/app/immutable/chunks/{Dtop3Yti.js → JgQtvDnb.js} +1 -1
- package/web/app/immutable/chunks/{9Nd0N_p1.js → JktSJt1s.js} +1 -1
- package/web/app/immutable/chunks/{B_mtugqw.js → MnYF9HDw.js} +1 -1
- package/web/app/immutable/chunks/{Cpe1M7DX.js → O_LhoKyf.js} +1 -1
- package/web/app/immutable/chunks/{C6By93LU.js → Ov_SEXEY.js} +1 -1
- package/web/app/immutable/chunks/{BkUc1pNC.js → PSWhBTN5.js} +1 -1
- package/web/app/immutable/chunks/{SM7MWiSc.js → QLmgzrwQ.js} +3 -3
- package/web/app/immutable/chunks/{DUeA5OOE.js → QOLdaLP0.js} +1 -1
- package/web/app/immutable/chunks/{Rd061ct8.js → R0wDqNpY.js} +1 -1
- package/web/app/immutable/chunks/{BduRIWZD.js → RNQdr-NN.js} +1 -1
- package/web/app/immutable/chunks/{6Kld8S57.js → TKnaMJht.js} +1 -1
- package/web/app/immutable/chunks/{BaVUClm6.js → TfEFcm0X.js} +1 -1
- package/web/app/immutable/chunks/{CZ3ut3WK.js → Uvf94Vit.js} +1 -1
- package/web/app/immutable/chunks/{B8s7KBCM.js → Ve0nl1oV.js} +1 -1
- package/web/app/immutable/chunks/{Dwnv6yhd.js → VwRqUxpW.js} +1 -1
- package/web/app/immutable/chunks/{CqHwkPsK.js → XgTDusK7.js} +1 -1
- package/web/app/immutable/chunks/{7jbSOAGl.js → YIljg4QC.js} +1 -1
- package/web/app/immutable/chunks/{5DJFYIPd.js → YJJNz-XI.js} +1 -1
- package/web/app/immutable/chunks/{C3eR-hfH.js → YNqTfGpO.js} +1 -1
- package/web/app/immutable/chunks/{Dvk-zN0g.js → _cwefpRI.js} +1 -1
- package/web/app/immutable/chunks/{v2EWEBoe.js → aWlYJ1qq.js} +1 -1
- package/web/app/immutable/chunks/{BFuTF0hE.js → b7qEBWdv.js} +1 -1
- package/web/app/immutable/chunks/{COK2LnAZ.js → bb6KeZoT.js} +1 -1
- package/web/app/immutable/chunks/{CotsFEBP.js → bjkNeafo.js} +1 -1
- package/web/app/immutable/chunks/{DONYESbJ.js → cKTNBTNE.js} +1 -1
- package/web/app/immutable/chunks/{CXzKXnDy.js → fqvfvcmd.js} +1 -1
- package/web/app/immutable/chunks/{BHDV7xy2.js → fsCYHFC5.js} +1 -1
- package/web/app/immutable/chunks/{DpuMOKOv.js → gn8kmMF6.js} +1 -1
- package/web/app/immutable/chunks/{BOB0swWW.js → hMX_6Iel.js} +1 -1
- package/web/app/immutable/chunks/{BGhKPfZ3.js → hTe-_Fjh.js} +3 -3
- package/web/app/immutable/chunks/{Do_iEIAT.js → kZqyWeDw.js} +1 -1
- package/web/app/immutable/chunks/{Cui74L_P.js → kpgdVhmB.js} +1 -1
- package/web/app/immutable/chunks/{CtXdddI-.js → l6-BV5ui.js} +2 -2
- package/web/app/immutable/chunks/{2OgS95T-.js → l9lbU6dU.js} +1 -1
- package/web/app/immutable/chunks/{DvAGFDsv.js → lN-utS8K.js} +1 -1
- package/web/app/immutable/chunks/{CiYbcJbc.js → laFenviK.js} +3 -3
- package/web/app/immutable/chunks/{ftWd1Zjf.js → mfJalPj6.js} +1 -1
- package/web/app/immutable/chunks/{Dv6Z2vIg.js → nvAK9EyO.js} +1 -1
- package/web/app/immutable/chunks/{C7UskoEr.js → oALOmsvi.js} +1 -1
- package/web/app/immutable/chunks/{A1TIfmo0.js → oTkHTTGI.js} +1 -1
- package/web/app/immutable/chunks/{Dlte6bLv.js → p20Ma5Ub.js} +1 -1
- package/web/app/immutable/chunks/{BtL5iOJF.js → pUHkzJ_d.js} +1 -1
- package/web/app/immutable/chunks/{BeqotHvt.js → ppWvCL4x.js} +1 -1
- package/web/app/immutable/chunks/{DDs_vRW4.js → pqiENG4w.js} +1 -1
- package/web/app/immutable/chunks/{Do7s1OwN.js → qk0mFpjO.js} +1 -1
- package/web/app/immutable/chunks/{jJz6_yuW.js → qsyNpi2_.js} +1 -1
- package/web/app/immutable/chunks/{Csj4pbMB.js → ulh-TYZ7.js} +1 -1
- package/web/app/immutable/chunks/{BXvjzr5P.js → vkDSSzeI.js} +1 -1
- package/web/app/immutable/chunks/{Dkbmzx7H.js → wGTbEzRg.js} +1 -1
- package/web/app/immutable/chunks/{_JxqnZOZ.js → xpCT4rnW.js} +1 -1
- package/web/app/immutable/chunks/{BNjffeJ6.js → ykvYWYIa.js} +1 -1
- package/web/app/immutable/chunks/{CiBXoTtR.js → zln0bEou.js} +1 -1
- package/web/app/immutable/entry/{app.Zrn5tWMU.js → app.BvKW_t2N.js} +3 -3
- package/web/app/immutable/entry/start.CQ7TZDH6.js +1 -0
- package/web/app/immutable/nodes/{0.BM7pEWx2.js → 0.BYMSP7Y-.js} +1 -1
- package/web/app/immutable/nodes/{1.JktrP7d9.js → 1.DIEji4Js.js} +1 -1
- package/web/app/immutable/nodes/{10.OPA46CBe.js → 10.DvTvrgji.js} +1 -1
- package/web/app/immutable/nodes/{11.AhtS-9g0.js → 11.UFQkf3wv.js} +1 -1
- package/web/app/immutable/nodes/{12.B7HQKMa-.js → 12.6a9ttQ9E.js} +1 -1
- package/web/app/immutable/nodes/{13.DPi0S1C2.js → 13.ghIWnT0h.js} +3 -3
- package/web/app/immutable/nodes/{14.DDlmGd9K.js → 14.CJs3OY3_.js} +1 -1
- package/web/app/immutable/nodes/{15.DU5PqzuZ.js → 15.ChCFmxtt.js} +1 -1
- package/web/app/immutable/nodes/{16.BwB-evW2.js → 16.DsO7YO_c.js} +2 -2
- package/web/app/immutable/nodes/{2.B-ceEPTc.js → 2.Cht0dQl2.js} +4 -4
- package/web/app/immutable/nodes/{3.B9VaWul3.js → 3.BGeidrSE.js} +1 -1
- package/web/app/immutable/nodes/{4.DerjOzjZ.js → 4.iguZO2rl.js} +1 -1
- package/web/app/immutable/nodes/{5.CW5Igcd8.js → 5.BppWO1IB.js} +1 -1
- package/web/app/immutable/nodes/{6.BDW6GbUk.js → 6.ChXOvT3x.js} +1 -1
- package/web/app/immutable/nodes/{7.hNduPSer.js → 7.CgsIeK3J.js} +1 -1
- package/web/app/immutable/nodes/{8.C6RbAqlx.js → 8.Bq2NzD4c.js} +4 -4
- package/web/app/immutable/nodes/{9.ExPUFxzp.js → 9.CvEBRJEV.js} +16 -16
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +45 -45
- package/web/index.html +18 -18
- package/web/app/immutable/chunks/By1GAIbK.js +0 -1
- package/web/app/immutable/chunks/CNHLe0qt.js +0 -1
- package/web/app/immutable/chunks/DBUIDXRy.js +0 -1
- package/web/app/immutable/chunks/DQh9HtzB.js +0 -1
- package/web/app/immutable/entry/start.CVgJF78D.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as Ke,bq as k,a_ as z,bo as Se,by as Ue,b as Ve,q as ur,n as vr,r as gr,o as fr,p as hr,s as mr,bu as ht,bs as pr,f as _r,l as xr,g as br,e as wr,d as kr,m as yr,j as $r,i as Cr,h as Sr,k as Nr}from"./
|
|
1
|
+
import{t as Ke,bq as k,a_ as z,bo as Se,by as Ue,b as Ve,q as ur,n as vr,r as gr,o as fr,p as hr,s as mr,bu as ht,bs as pr,f as _r,l as xr,g as br,e as wr,d as kr,m as yr,j as $r,i as Cr,h as Sr,k as Nr}from"./COCO5InB.js";import{bs as Je,ca as Ze,aD as e,ay as be,a5 as o,bH as L,bS as n,a7 as Pt,W as i,be as st,b$ as et,b_ as M,bO as S,bA as s,bl as O,bn as Qe,bV as we,aA as y,c9 as _,aB as x,br as mt}from"./B8o4lNgr.js";import{mw as Rr,G2 as ct,lE as Dt,d_ as Mr,ei as Pr,ej as Lr}from"./BjFoJgFv.js";import{H as We,C as Oe,y as Ir,h as at}from"./Bqoyy9yx.js";import{dj as Ar,bc as Er}from"./DUT4V6mb.js";import{ad as Tt}from"./Dh52so4o.js";import{I as it,k as ze,h as Be,i as Lt,s as zr}from"./Crs9I2MT.js";import{f as xe}from"./C5Xi5eLp.js";import"./Dck4Okga.js";import{F as fe,a1 as Hr,cF as Wr,at as ot,au as pt,bW as jr,aQ as Dr,bG as Tr,bA as Fr,b4 as Gr,cK as Br,cd as Or,b1 as Ct,cP as Rt,ch as _t,bj as Kr,cu as Ur,ar as Vr}from"./BDq7EC2K.js";import{e as Jr}from"./B5NXv3LV.js";import{Q as Ft,B as Qr}from"./172GvQgx.js";import{H as Gt}from"./CoZ28bOB.js";import{I as Vt}from"./CjVTzfqV.js";import"./BqRJyrRC.js";import{M as Mt}from"./CcDZ8sih.js";import{w as St}from"./bjkNeafo.js";const qr=[/^diff --git /,/^index\s/,/^---\s/,/^\+\+\+\s/,/^\/];function Yr($){const r=[];if(!$)return r;const d=$.split(`
|
|
2
2
|
`);let m=null,b=0,u=0;const D=P=>{const h=P.match(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),J=h?parseInt(h[1],10):0,K=h&&h[2]?parseInt(h[2],10):null,pe=h?parseInt(h[3],10):0,Q=h&&h[4]?parseInt(h[4],10):null;m={header:P,oldStart:J,oldLines:K,newStart:pe,newLines:Q,lines:[]},r.push(m),b=J,u=pe};for(const P of d){if(P.startsWith("@@")){D(P);continue}if(!m)continue;const h=m;P.startsWith("+")?h.lines.push({type:"addition",content:P.slice(1),oldNum:null,newNum:u++,raw:P}):P.startsWith("-")?h.lines.push({type:"deletion",content:P.slice(1),oldNum:b++,newNum:null,raw:P}):P.startsWith(" ")?h.lines.push({type:"context",content:P.slice(1),oldNum:b++,newNum:u++,raw:P}):qr.some(J=>J.test(P))||P.trim()===""&&h.lines.push({type:"context",content:"",oldNum:b++,newNum:u++,raw:P})}return r}var Xr=x('<div><!> <!> <!></div> <p class="text-ui text-subtle mt-1"> </p>',1);function Jt($,r){if(new.target)return Ke({component:Jt,...$});Je(r,!0);let d=k(r,"lineNumber",7,0),m=k(r,"fileName",7,""),b=k(r,"onSend",7),u=k(r,"onClose",7),D=k(r,"isSending",7,!1),P=k(r,"class",7,""),h=we(""),J=we(null);Ze(()=>{e(J)&&e(J).focus()});function K(){!e(h).trim()||D()||(b()?.(e(h).trim(),d(),m()),L(h,""))}function pe(I){I.key==="Enter"&&!I.shiftKey&&(I.preventDefault(),K()),I.key==="Escape"&&u()?.()}var Q={get lineNumber(){return d()},set lineNumber(I=0){d(I),y()},get fileName(){return m()},set fileName(I=""){m(I),y()},get onSend(){return b()},set onSend(I){b(I),y()},get onClose(){return u()},set onClose(I){u(I),y()},get isSending(){return D()},set isSending(I=!1){D(I),y()},get class(){return P()},set class(I=""){P(I),y()},$set:Ue,$on:(I,he)=>Ve(r,I,he)},w=Xr(),H=be(w),de=o(H);{let I=_(()=>Se.codeReview_inlineComment_askLine_placeholder());Vt(de,{onkeydown:pe,get placeholder(){return e(I)},get disabled(){return D()},class:"flex-1 h-8 rounded-md border border-border bg-background px-3 text-sm placeholder:text-muted-foreground disabled:opacity-50",get ref(){return e(J)},set ref(he){L(J,he,!0)},get value(){return e(h)},set value(he){L(h,he,!0)}})}var ce=n(de,2);{let I=_(()=>!e(h).trim()||D());xe(ce,{type:"button",variant:"primary",onclick:K,get disabled(){return e(I)},class:"h-8 w-8 p-0",children:(he,Ne)=>{var _e=Pt(),C=be(_e);{var E=me=>{it(me,{size:14})},Ie=me=>{fe(me,{get icon(){return Hr},class:"h-3.5 w-3.5"})};z(C,me=>{D()?me(E):me(Ie,-1)})}i(he,_e)},$$slots:{default:!0}})}var ae=n(ce,2);xe(ae,{type:"button",variant:"ghost",onclick:()=>u()?.(),class:"h-8 px-2 text-xs text-muted-foreground hover:text-foreground transition-colors",children:(I,he)=>{st();var Ne=et();M(_e=>S(Ne,_e),[()=>Se.codeReview_inlineComment_cancel_label()]),i(I,Ne)},$$slots:{default:!0}}),s(H);var te=n(H,2),ke=O(te,!0);return M(I=>{ze(H,1,`walkthrough-inline-comment flex items-center gap-2 ${P()??""}`),S(ke,I)},[()=>Se.codeReview_inlineComment_inputHint_label()]),i($,w),Qe(Q)}var Zr=x('<div class="text-xs text-slate-400 dark:text-slate-500 mt-1"> </div>'),en=x('<span class="font-medium"> </span> <!>',1),tn=x('<div class="flex items-start gap-3 py-2"><div><!></div> <div class="flex-1 min-w-0"><div class="text-sm leading-relaxed text-slate-700 dark:text-slate-300"><!></div></div></div>'),rn=x('<div class="px-4 pb-3 divide-y divide-border"></div>'),nn=x('<div class="border-t border-border"><!> <!></div>'),an=x('<div class="flex items-center gap-2 px-4 py-2 text-xs text-slate-500 dark:text-slate-400 border-t border-border"><!> <span> </span></div>'),sn=x('<div class="flex items-center gap-2"><!> <!> <!></div> <p class="text-ui text-slate-400 dark:text-slate-500 mt-1"> </p>',1),on=x("<!> <span> </span>",1),ln=x('<div><div class="flex items-start gap-3 px-4 py-3"><div class="shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="text-sm text-slate-800 dark:text-slate-200 leading-relaxed"><!></div> <!></div> <!></div> <!> <!> <div class="border-t border-border px-4 py-2"><!></div></div>');function Qt($,r){if(new.target)return Ke({component:Qt,...$});Je(r,!0);let d=k(r,"annotation",7),m=k(r,"lineNumber",7),b=k(r,"fileName",7),u=k(r,"messages",23,()=>[]),D=k(r,"onSendMessage",7),P=k(r,"onClose",7),h=k(r,"isSending",7,!1),J=k(r,"isAgentResponding",7,!1),K=k(r,"timestamp",7),pe=k(r,"class",7,""),Q=we(""),w=we(!1),H=we(!1),de=we(null);Ze(()=>{e(w)&&e(de)&&e(de).focus()});function ce(){!e(Q).trim()||h()||(D()?.(e(Q).trim(),m(),b()),L(Q,""))}function ae(a){a.key==="Enter"&&!a.shiftKey&&(a.preventDefault(),ce()),a.key==="Escape"&&(e(Q)?L(Q,""):L(w,!1))}function te(a){switch(a){case"highlight":return Gr;case"context":return Fr;case"explanation":default:return Tr}}function ke(a){switch(a){case"highlight":return"text-orange-500";case"context":return"text-blue-500";case"explanation":default:return"text-warning-ink"}}function I(a){return a?Ir(a):""}const he=_(()=>u().length>0);var Ne={get annotation(){return d()},set annotation(a){d(a),y()},get lineNumber(){return m()},set lineNumber(a){m(a),y()},get fileName(){return b()},set fileName(a){b(a),y()},get messages(){return u()},set messages(a=[]){u(a),y()},get onSendMessage(){return D()},set onSendMessage(a){D(a),y()},get onClose(){return P()},set onClose(a){P(a),y()},get isSending(){return h()},set isSending(a=!1){h(a),y()},get isAgentResponding(){return J()},set isAgentResponding(a=!1){J(a),y()},get timestamp(){return K()},set timestamp(a){K(a),y()},get class(){return pe()},set class(a=""){pe(a),y()},$set:Ue,$on:(a,j)=>Ve(r,a,j)},_e=ln(),C=o(_e),E=o(C),Ie=o(E);{let a=_(()=>te(d().type)),j=_(()=>ke(d().type));fe(Ie,{get icon(){return e(a)},get class(){return`h-4 w-4 ${e(j)??""}`}})}s(E);var me=n(E,2),v=o(me),R=o(v);Mt(R,{get content(){return d().message},className:"[&>*:first-child]:mt-0 [&>*:last-child]:mb-0"}),s(v);var A=n(v,2);{var X=a=>{var j=Zr(),Z=O(j,!0);M(ee=>S(Z,ee),[()=>I(K())]),i(a,j)};z(A,a=>{K()&&a(X)})}s(me);var ie=n(me,2);{var $e=a=>{{let j=_(()=>Se.codeReview_commentThread_dismiss_tooltip());xe(a,{type:"button",variant:"ghost",size:"icon-compact",iconOnly:!0,get onclick(){return P()},class:"shrink-0 text-slate-400 hover:text-slate-600 dark:text-slate-500 dark:hover:text-slate-300 transition-colors",get title(){return e(j)},children:(Z,ee)=>{fe(Z,{get icon(){return Wr}})},$$slots:{default:!0}})}};z(ie,a=>{P()&&a($e)})}s(C);var Ce=n(C,2);{var ye=a=>{var j=nn(),Z=o(j);xe(Z,{type:"button",variant:"ghost",onclick:()=>L(H,!e(H)),class:"w-full flex items-center justify-between px-4 py-2 text-sm text-slate-600 dark:text-slate-400 hover:bg-slate-50 dark:hover:bg-slate-800/50 transition-colors",children:(q,se)=>{var Y=en(),c=be(Y),p=O(c,!0),G=n(c,2);{let ue=_(()=>e(H)?ot:pt);fe(G,{get icon(){return e(ue)},class:"h-3 w-3"})}M(ue=>S(p,ue),[()=>Se.codeReview_commentThread_suggestedChanges_label()]),i(q,Y)},$$slots:{default:!0}});var ee=n(Z,2);{var re=q=>{var se=rn();Be(se,21,u,Y=>Y.id,(Y,c)=>{var p=tn(),G=o(p),ue=o(G);{let g=_(()=>e(c).type==="user"?Br:Or),N=_(()=>e(c).type==="user"?"text-blue-600 dark:text-blue-400":"text-purple-600 dark:text-purple-400");fe(ue,{get icon(){return e(g)},get class(){return`h-2.5 w-2.5 ${e(N)??""}`}})}s(G);var Re=n(G,2),t=o(Re),l=o(t);Mt(l,{get content(){return e(c).content},className:"[&>*:first-child]:mt-0 [&>*:last-child]:mb-0"}),s(t),s(Re),s(p),M(()=>ze(G,1,`shrink-0 flex h-5 w-5 items-center justify-center rounded-full ${e(c).type==="user"?"bg-blue-100 dark:bg-blue-900/50":"bg-purple-100 dark:bg-purple-900/50"}`)),We(3,p,()=>at,()=>({axis:"y",distance:4,tier:"moderate"})),i(Y,p)}),s(se),We(3,se,()=>Oe,()=>({tier:"moderate"})),i(q,se)};z(ee,q=>{e(H)&&q(re)})}s(j),i(a,j)};z(Ce,a=>{e(he)&&a(ye)})}var U=n(Ce,2);{var T=a=>{var j=an(),Z=o(j);it(Z,{size:12});var ee=n(Z,2),re=O(ee,!0);s(j),M(q=>S(re,q),[()=>Se.codeReview_commentThread_agentResponding_label()]),i(a,j)};z(U,a=>{J()&&a(T)})}var f=n(U,2),W=o(f);{var F=a=>{var j=sn(),Z=be(j),ee=o(Z);{let c=_(()=>Se.codeReview_commentThread_followUp_placeholder());Vt(ee,{onkeydown:ae,get placeholder(){return e(c)},get disabled(){return h()},class:"flex-1 h-8 rounded-md border border-border bg-white dark:bg-slate-800 px-3 text-sm placeholder:text-slate-400 disabled:opacity-50",get ref(){return e(de)},set ref(p){L(de,p,!0)},get value(){return e(Q)},set value(p){L(Q,p,!0)}})}var re=n(ee,2);{let c=_(()=>!e(Q).trim()||h());xe(re,{type:"button",variant:"primary",onclick:ce,get disabled(){return e(c)},class:"h-8 w-8 p-0",children:(p,G)=>{var ue=Pt(),Re=be(ue);{var t=g=>{it(g,{size:14})},l=g=>{fe(g,{get icon(){return jr},class:"h-3 w-3"})};z(Re,g=>{h()?g(t):g(l,-1)})}i(p,ue)},$$slots:{default:!0}})}var q=n(re,2);xe(q,{type:"button",variant:"ghost",onclick:()=>{L(w,!1),L(Q,"")},class:"h-8 px-2 text-xs text-slate-500 hover:text-slate-700 dark:text-slate-400 dark:hover:text-slate-200 transition-colors",children:(c,p)=>{st();var G=et();M(ue=>S(G,ue),[()=>Se.codeReview_commentThread_cancel_label()]),i(c,G)},$$slots:{default:!0}}),s(Z);var se=n(Z,2),Y=O(se,!0);M(c=>S(Y,c),[()=>Se.codeReview_commentThread_inputHint_label()]),We(3,Z,()=>Oe,()=>({tier:"fast"})),i(a,j)},le=a=>{xe(a,{type:"button",variant:"ghost",onclick:()=>L(w,!0),class:"flex items-center gap-1.5 text-xs text-emerald-600 dark:text-emerald-400 hover:text-emerald-700 dark:hover:text-emerald-300 transition-colors",children:(j,Z)=>{var ee=on(),re=be(ee);fe(re,{get icon(){return Dr},class:"h-3 w-3"});var q=n(re,2),se=O(q,!0);M(Y=>S(se,Y),[()=>Se.codeReview_commentThread_askQuestion_label()]),i(j,ee)},$$slots:{default:!0}})};z(W,a=>{e(w)?a(F):a(le,-1)})}return s(f),s(_e),M(()=>ze(_e,1,`walkthrough-comment-thread relative flex w-full flex-col bg-white shadow-sm dark:bg-slate-900 ${pe()??""}`)),We(3,_e,()=>Oe,()=>({tier:"moderate"})),i($,_e),Qe(Ne)}var dn=x('<span class="text-emerald-600 dark:text-emerald-400 font-medium"> </span>'),cn=x('<!> <svg class="h-4 w-4 text-ghost shrink-0" viewBox="0 0 16 16" fill="currentColor"><path d="M3.5 1.5A1.5 1.5 0 0 1 5 0h6a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 11 15H5a1.5 1.5 0 0 1-1.5-1.5v-12zm2 0v12h6v-12H5.5z"></path></svg> <div class="flex items-baseline gap-2 flex-1 min-w-0"><span class="text-sm font-medium text-foreground truncate"> </span> <span class="text-xs text-subtle truncate hidden sm:inline"> </span></div> <div class="flex items-center gap-1 text-xs shrink-0"><!></div>',1),un=x('<div class="px-4 pb-3 -mt-1"><p class="text-sm text-subtle"> </p></div>'),vn=x('<div><div><span class="w-12 px-2 text-right text-ui text-subtle tabular-nums"> </span></div> <span> </span> <pre class="flex-1 px-1 whitespace-pre overflow-hidden text-ellipsis"><code class="hljs"></code></pre></div>'),gn=x('<div class="border-t border-border"><div class="font-mono text-xs leading-relaxed text-muted-foreground"><!> <!></div></div>'),fn=x('<span class="text-subtle">·</span> <!>',1),hn=x('<div class="flex items-center justify-end gap-2 px-3 py-1.5 bg-muted/20 border-b border-border text-xs"><!> <!></div>'),Bt=x("<!> <span> </span> <!>",1),mn=x('<div class="ml-20"><!></div>'),pn=x('<div class="ml-20 border-l-2 border-primary-ink/50 bg-muted/20"><div class="p-3"><!></div></div>'),_n=x('<div><div><span class="w-10 px-2 text-right text-ui text-subtle tabular-nums"> </span> <span class="w-10 px-2 text-right text-ui text-subtle tabular-nums"> </span></div> <span> </span> <div class="flex-1 flex items-center min-w-0 pr-2"><pre class="flex-1 px-1 whitespace-pre overflow-x-auto"><code class="hljs"></code></pre> <!></div></div> <!> <!> <!>',1),xn=x("<!> <!>",1),bn=x('<div class="relative"><!> <div class="overflow-x-auto"><div class="font-mono text-xs leading-relaxed min-w-full"></div></div></div>'),wn=x('<div><div class="flex flex-col border-b border-border"><!> <!></div> <!> <!></div>');function It($,r){if(new.target)return Ke({component:It,...$});Je(r,!0);let d=k(r,"fileName",7),m=k(r,"patch",7),b=k(r,"annotations",23,()=>[]),u=k(r,"initialCollapsed",7,!1),D=k(r,"contextLines",7,3),P=k(r,"onSendMessage",7),h=k(r,"isSending",7,!1),J=k(r,"additions",7,0),K=k(r,"deletions",7,0),pe=k(r,"fileDescription",7,""),Q=k(r,"class",7,"");const w=_(()=>Yr(m())),H=_(()=>Rr(d())),de=_(()=>{const t=new Map;return!e(H)||e(H)==="text"||e(H)==="plaintext"||!Gt.getLanguage(e(H))||e(w).forEach(l=>{const g=[];if(l.lines.forEach(N=>{const B=N.content||"",V=`${N.oldNum}-${N.newNum}`;g.push({content:B,key:V})}),g.length!==0)try{const N=g.map(ne=>ne.content).join(`
|
|
3
3
|
`),V=Gt.highlight(N,{language:e(H)}).value.split(`
|
|
4
4
|
`);g.forEach((ne,oe)=>{oe<V.length&&t.set(ne.key,V[oe])})}catch(N){console.warn("Failed to highlight hunk:",N)}}),t});let ce=we(mt(u())),ae=we(mt(new Set)),te=we(null);const ke=_(()=>{const t=new Map;for(const l of b()){const g=t.get(l.line)||[];g.push(l),t.set(l.line,g)}return t}),I=_(()=>new Set(b().map(t=>t.line)));function he(t){if(t.type==="deletion")return[];const l=t.newNum;return l==null?[]:e(ke).get(l)||[]}function Ne(t,l,g){if(g.type==="addition"||g.type==="deletion")return!0;const N=g.newNum??g.oldNum;if(N!==null&&e(I).has(N))return!0;const B=e(w)[t];if(!B)return!1;for(let V=Math.max(0,l-D());V<=Math.min(B.lines.length-1,l+D());V++){const ne=B.lines[V];if(ne.type==="addition"||ne.type==="deletion")return!0;const oe=ne.newNum??ne.oldNum;if(oe!==null&&e(I).has(oe))return!0}for(const V of e(ae)){const[ne,oe,ve]=V.split("-").map(Number);if(ne===t&&l>=oe&&l<=ve)return!0}return!1}function _e(t){const l=e(w)[t];if(!l)return[];const g=[];let N=null;for(let B=0;B<l.lines.length;B++){const V=Ne(t,B,l.lines[B]);!V&&N===null?N=B:V&&N!==null&&(g.push({startIndex:N,endIndex:B-1,count:B-N}),N=null)}return N!==null&&g.push({startIndex:N,endIndex:l.lines.length-1,count:l.lines.length-N}),g}function C(t,l,g){const N=`${t}-${l}-${g}`;e(ae).add(N),L(ae,new Set(e(ae)),!0)}function E(){for(let t=0;t<e(w).length;t++){const l=e(w)[t];C(t,0,l.lines.length-1)}}function Ie(){L(ae,new Set,!0)}function me(t){const l=`${t.oldNum}-${t.newNum}`,g=e(de).get(l);return g!==void 0?g:v(t.content||"")}function v(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function R(t){switch(t.type){case"addition":return"bg-emerald-500/5 dark:bg-emerald-500/10";case"deletion":return"bg-red-500/5 dark:bg-red-500/10";default:return""}}function A(t){switch(t.type){case"addition":return"text-emerald-600 dark:text-emerald-400 font-medium";case"deletion":return"text-red-600 dark:text-red-400 font-medium";default:return"text-transparent"}}function X(t){switch(t.type){case"addition":return"+";case"deletion":return"-";default:return" "}}function ie(t){switch(t.type){case"addition":return"bg-emerald-500/10 dark:bg-emerald-500/15";case"deletion":return"bg-red-500/10 dark:bg-red-500/15";default:return"bg-muted/30"}}function $e(){L(ce,!e(ce))}function Ce(t){L(te,t,!0)}function ye(){L(te,null)}function U(t,l,g){P()?.(t,l,g),L(te,null)}const T=_(()=>()=>{const t=d().split("/");return t[t.length-1]}),f=_(()=>()=>{const t=d().split("/");return t.length<=1?"":t.slice(0,-1).join("/")}),W=_(()=>{for(let t=0;t<e(w).length;t++)if(_e(t).length>0)return!0;return!1}),F=_(()=>{const l=[];for(let g=0;g<e(w).length&&l.length<3;g++){const N=e(w)[g];for(let B=0;B<N.lines.length&&l.length<3;B++){const V=N.lines[B];(V.type==="addition"||V.type==="deletion")&&l.push({line:V,hunkIndex:g,lineIndex:B})}}return l}),le=_(()=>{let t=0;for(const l of e(w))for(const g of l.lines)(g.type==="addition"||g.type==="deletion")&&t++;return t});let a=we(mt(new Map));function j(t){return`${t.file}:${t.line}:${t.type}`}function Z(t){return e(a).get(j(t))||[]}var ee={get fileName(){return d()},set fileName(t){d(t),y()},get patch(){return m()},set patch(t){m(t),y()},get annotations(){return b()},set annotations(t=[]){b(t),y()},get initialCollapsed(){return u()},set initialCollapsed(t=!1){u(t),y()},get contextLines(){return D()},set contextLines(t=3){D(t),y()},get onSendMessage(){return P()},set onSendMessage(t){P(t),y()},get isSending(){return h()},set isSending(t=!1){h(t),y()},get additions(){return J()},set additions(t=0){J(t),y()},get deletions(){return K()},set deletions(t=0){K(t),y()},get fileDescription(){return pe()},set fileDescription(t=""){pe(t),y()},get class(){return Q()},set class(t=""){Q(t),y()},$set:Ue,$on:(t,l)=>Ve(r,t,l)},re=wn(),q=o(re),se=o(q);xe(se,{type:"button",variant:"ghost",class:"w-full flex items-center gap-2 px-4 py-3 hover:bg-muted/30 transition-colors text-left group",onclick:$e,children:(t,l)=>{var g=cn(),N=be(g);{let Le=_(()=>e(ce)?pt:ot);fe(N,{get icon(){return e(Le)},class:"h-3 w-3 text-ghost shrink-0"})}var B=n(N,4),V=o(B),ne=O(V,!0),oe=n(V,2),ve=O(oe,!0);s(B);var Me=n(B,2),Ae=o(Me);{var je=Le=>{var Ee=dn(),Fe=O(Ee);M(()=>S(Fe,`+${J()+K()}`)),i(Le,Ee)};z(Ae,Le=>{(J()>0||K()>0)&&Le(je)})}s(Me),M((Le,Ee)=>{S(ne,Le),S(ve,Ee)},[()=>e(T)(),()=>e(f)()]),i(t,g)},$$slots:{default:!0}});var Y=n(se,2);{var c=t=>{var l=un(),g=o(l),N=O(g,!0);s(l),M(()=>S(N,pe())),i(t,l)};z(Y,t=>{pe()&&t(c)})}s(q);var p=n(q,2);{var G=t=>{var l=gn(),g=o(l),N=o(g);Be(N,17,()=>e(F),({line:ne,hunkIndex:oe,lineIndex:ve})=>`preview-${oe}-${ve}`,(ne,oe)=>{let ve=()=>e(oe).line;var Me=vn(),Ae=o(Me),je=o(Ae),Le=O(je,!0);s(Ae);var Ee=n(Ae,2),Fe=O(Ee,!0),De=n(Ee,2),ge=o(De);Ft(ge,()=>me(ve()),!0),s(ge),s(De),s(Me),M((qe,Ye,Xe,tt)=>{ze(Me,1,`flex ${qe??""}`),ze(Ae,1,`w-12 shrink-0 flex select-none ${Ye??""} border-r border-border`),S(Le,ve().newNum??ve().oldNum??""),ze(Ee,1,`w-5 shrink-0 text-center select-none ${Xe??""}`),S(Fe,tt)},[()=>R(ve()),()=>ie(ve()),()=>A(ve()),()=>X(ve())]),i(ne,Me)});var B=n(N,2);{var V=ne=>{xe(ne,{type:"button",variant:"ghost",class:"w-full py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors text-center",onclick:$e,children:(oe,ve)=>{st();var Me=et();M(Ae=>S(Me,Ae),[()=>Se.codeReview_fileDiff_moreLines_label({count:e(le)-e(F).length})]),i(oe,Me)},$$slots:{default:!0}})};z(B,ne=>{e(le)>e(F).length&&ne(V)})}s(g),s(l),We(3,l,()=>Oe,()=>({tier:"moderate"})),i(t,l)};z(p,t=>{e(ce)&&e(F).length>0&&t(G)})}var ue=n(p,2);{var Re=t=>{var l=bn(),g=o(l);{var N=ne=>{var oe=hn(),ve=o(oe);xe(ve,{type:"button",variant:"ghost",class:"text-muted-foreground hover:text-foreground transition-colors",onclick:E,children:(je,Le)=>{st();var Ee=et();M(Fe=>S(Ee,Fe),[()=>Se.codeReview_fileDiff_expandAll_label()]),i(je,Ee)},$$slots:{default:!0}});var Me=n(ve,2);{var Ae=je=>{var Le=fn(),Ee=n(be(Le),2);xe(Ee,{type:"button",variant:"ghost",class:"text-muted-foreground hover:text-foreground transition-colors",onclick:Ie,children:(Fe,De)=>{st();var ge=et();M(qe=>S(ge,qe),[()=>Se.codeReview_fileDiff_collapse_label()]),i(Fe,ge)},$$slots:{default:!0}}),i(je,Le)};z(Me,je=>{e(ae).size>0&&je(Ae)})}s(oe),i(ne,oe)};z(g,ne=>{e(W)&&ne(N)})}var B=n(g,2),V=o(B);Be(V,21,()=>e(w),Lt,(ne,oe,ve)=>{const Me=_(()=>_e(ve)),Ae=_(()=>e(Me).find(De=>De.startIndex===0));var je=xn(),Le=be(je);{var Ee=De=>{xe(De,{type:"button",variant:"ghost",class:"w-full flex items-center justify-center gap-2 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors border-b border-border",onclick:()=>C(ve,e(Ae).startIndex,e(Ae).endIndex),children:(ge,qe)=>{var Ye=Bt(),Xe=be(Ye);fe(Xe,{get icon(){return ot},class:"h-2.5 w-2.5"});var tt=n(Xe,2),xt=O(tt,!0),rt=n(tt,2);fe(rt,{get icon(){return ot},class:"h-2.5 w-2.5"}),M(ut=>S(xt,ut),[()=>Se.codeReview_fileDiff_showHidden_label({count:e(Ae).count})]),i(ge,Ye)},$$slots:{default:!0}})};z(Le,De=>{e(Ae)&&De(Ee)})}var Fe=n(Le,2);Be(Fe,19,()=>e(oe).lines,(De,ge)=>`${ve}-${ge}`,(De,ge,qe)=>{const Ye=_(()=>`${e(ge).oldNum}-${e(ge).newNum}`),Xe=_(()=>he(e(ge))),tt=_(()=>e(te)===e(Ye)),xt=_(()=>Ne(ve,e(qe),e(ge))),rt=_(()=>e(Me).find(lt=>lt.startIndex===e(qe)+1));var ut=Pt(),er=be(ut);{var tr=lt=>{var At=_n(),vt=be(At),gt=o(vt),Et=o(gt),rr=O(Et,!0),nr=n(Et,2),ar=O(nr,!0);s(gt);var bt=n(gt,2),sr=O(bt,!0),zt=n(bt,2),wt=o(zt),Ht=o(wt);Ft(Ht,()=>me(e(ge)),!0),s(Ht),s(wt);var or=n(wt,2);{var ir=Pe=>{{let He=_(()=>Se.codeReview_fileDiff_askLine_tooltip());xe(Pe,{type:"button",variant:"ghost",size:"icon-compact",iconOnly:!0,class:"size-5 opacity-0 group-hover:opacity-100 text-muted-foreground hover:text-primary-ink transition-all shrink-0",onclick:()=>Ce(e(Ye)),get title(){return e(He)},children:(Te,Ge)=>{fe(Te,{get icon(){return Ct}})},$$slots:{default:!0}})}};z(or,Pe=>{P()&&Pe(ir)})}s(zt),s(vt);var Wt=n(vt,2);Be(Wt,19,()=>e(Xe),(Pe,He)=>`${Pe.line}-${He}`,(Pe,He)=>{var Te=mn(),Ge=o(Te);{let nt=_(()=>e(ge).newNum??e(ge).oldNum??0),ft=_(()=>Z(e(He)));Qt(Ge,{get annotation(){return e(He)},get lineNumber(){return e(nt)},get fileName(){return d()},get messages(){return e(ft)},onSendMessage:(kt,yt,$t)=>U(kt,yt,$t),get isSending(){return h()}})}s(Te),We(3,Te,()=>Oe,()=>({tier:"moderate"})),i(Pe,Te)});var jt=n(Wt,2);{var lr=Pe=>{var He=pn(),Te=o(He),Ge=o(Te);{let nt=_(()=>e(ge).newNum??e(ge).oldNum??0);Jt(Ge,{get lineNumber(){return e(nt)},get fileName(){return d()},onSend:U,onClose:ye,get isSending(){return h()}})}s(Te),s(He),i(Pe,He)};z(jt,Pe=>{e(tt)&&e(Xe).length===0&&Pe(lr)})}var dr=n(jt,2);{var cr=Pe=>{xe(Pe,{type:"button",variant:"ghost",class:"w-full flex items-center justify-center gap-2 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors border-y border-border bg-muted/10",onclick:()=>C(ve,e(rt).startIndex,e(rt).endIndex),children:(He,Te)=>{var Ge=Bt(),nt=be(Ge);fe(nt,{get icon(){return Ct},class:"h-2.5 w-2.5"});var ft=n(nt,2),kt=O(ft,!0),yt=n(ft,2);fe(yt,{get icon(){return Ct},class:"h-2.5 w-2.5"}),M($t=>S(kt,$t),[()=>Se.codeReview_fileDiff_showHidden_label({count:e(rt).count})]),i(He,Ge)},$$slots:{default:!0}})};z(dr,Pe=>{e(rt)&&Pe(cr)})}M((Pe,He,Te,Ge)=>{ze(vt,1,`group flex ${Pe??""} hover:bg-accent/30 transition-colors`),ze(gt,1,`w-20 shrink-0 flex select-none ${He??""} border-r border-border`),S(rr,e(ge).oldNum??""),S(ar,e(ge).newNum??""),ze(bt,1,`w-5 shrink-0 text-center select-none ${Te??""}`),S(sr,Ge)},[()=>R(e(ge)),()=>ie(e(ge)),()=>A(e(ge)),()=>X(e(ge))]),i(lt,At)};z(er,lt=>{e(xt)&<(tr)})}i(De,ut)}),i(ne,je)}),s(V),s(B),s(l),We(3,l,()=>Oe,()=>({tier:"moderate"})),i(t,l)};z(ue,t=>{e(ce)||t(Re)})}return s(re),M(()=>ze(re,1,`walkthrough-file-diff overflow-hidden bg-card ${Q()??""}`)),i($,re),Qe(ee)}var kn=x('<div class="flex items-start gap-3"><div class="shrink-0 mt-0.5"><svg viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M2 6a2 2 0 012-2h4l2 2h4a2 2 0 012 2v1H8a3 3 0 00-3 3v1.5a1.5 1.5 0 01-3 0V6z" clip-rule="evenodd"></path><path d="M6 12a2 2 0 012-2h8a2 2 0 012 2v2a2 2 0 01-2 2H2h2a2 2 0 002-2v-2z"></path></svg></div> <div class="flex-1 min-w-0"><h4 class="text-sm font-medium text-foreground line-clamp-2"> </h4> <p class="text-xs text-subtle mt-1 line-clamp-2"> </p> <div class="flex items-center gap-1 mt-2 text-xs text-subtle"><svg class="h-3.5 w-3.5" viewBox="0 0 16 16" fill="currentColor"><path d="M3.5 1.5A1.5 1.5 0 0 1 5 0h6a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 11 15H5a1.5 1.5 0 0 1-1.5-1.5v-12z"></path></svg> <span> </span></div></div></div>'),yn=x('<div><div class="mb-4"><h3 class="text-sm font-medium text-subtle"> </h3></div> <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3"></div></div>');function qt($,r){if(new.target)return Ke({component:qt,...$});Je(r,!0);let d=k(r,"categories",7),m=k(r,"onCategoryClick",7),b=k(r,"class",7,"");function u(w){const H=["bg-blue-500/10 border-blue-500/30 hover:border-blue-500/50","bg-purple-500/10 border-purple-500/30 hover:border-purple-500/50","bg-emerald-500/10 border-emerald-500/30 hover:border-emerald-500/50","bg-warning/10 border-warning/30 hover:border-warning/30","bg-rose-500/10 border-rose-500/30 hover:border-rose-500/50","bg-cyan-500/10 border-cyan-500/30 hover:border-cyan-500/50"];return H[w%H.length]}function D(w){const H=["text-blue-500","text-purple-500","text-emerald-500","text-warning-ink","text-rose-500","text-cyan-500"];return H[w%H.length]}var P={get categories(){return d()},set categories(w){d(w),y()},get onCategoryClick(){return m()},set onCategoryClick(w){m(w),y()},get class(){return b()},set class(w=""){b(w),y()},$set:Ue,$on:(w,H)=>Ve(r,w,H)},h=yn(),J=o(h),K=o(J),pe=O(K,!0);s(J);var Q=n(J,2);return Be(Q,21,d,Lt,(w,H,de)=>{{let ce=_(()=>u(de));xe(w,{type:"button",variant:"ghost",get class(){return`text-left p-4 rounded-lg border transition-all duration-spring-moderate ease-spring-moderate motion-reduce:transition-none ${e(ce)??""}`},onclick:()=>m()?.(de),children:(ae,te)=>{var ke=kn(),I=o(ke),he=O(I),Ne=n(I,2),_e=o(Ne),C=O(_e,!0),E=n(_e,2),Ie=O(E,!0),me=n(E,2),v=n(o(me),2),R=O(v,!0);s(me),s(Ne),s(ke),M((A,X)=>{ze(he,0,`h-5 w-5 ${A??""}`),S(C,e(H).title),S(Ie,e(H).description),S(R,X)},[()=>D(de),()=>e(H).files.length===1?Se.codeReview_categoriesGrid_fileCount_one({count:e(H).files.length}):Se.codeReview_categoriesGrid_fileCount_many({count:e(H).files.length})]),i(ae,ke)},$$slots:{default:!0}})}}),s(Q),s(h),M(w=>{ze(h,1,`walkthrough-categories-grid ${b()??""}`),S(pe,w)},[()=>Se.codeReview_categoriesGrid_whatChanged_title()]),i($,h),Qe(P)}var $n=x('<div class="w-0.5 flex-1 bg-border min-h-5"></div>'),Cn=x('<p class="text-sm text-subtle mt-2"> </p>'),Sn=x('<div class="rounded-lg border border-border bg-card p-4"><div class="flex items-center gap-2"><svg class="h-4 w-4 text-ghost" viewBox="0 0 16 16" fill="currentColor"><path d="M3.5 1.5A1.5 1.5 0 0 1 5 0h6a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 11 15H5a1.5 1.5 0 0 1-1.5-1.5v-12z"></path></svg> <span class="text-sm font-medium text-foreground"> </span></div> <!></div>'),Nn=x('<div class="flex gap-4"><div class="relative flex flex-col items-center w-3"><div></div> <div class="absolute top-4 w-2 h-2 rounded-full bg-muted-foreground/30 ring-2 ring-background"></div></div> <div class="flex-1 min-w-0 pb-4"><!></div></div>'),Rn=x('<div><div class="flex items-start gap-4 mb-4"><div class="relative flex flex-col items-center"><div></div> <!></div> <div class="flex-1 min-w-0 -mt-0.5"><h3 class="text-base font-semibold text-foreground"> </h3> <p class="text-sm text-subtle mt-1"> </p></div></div> <div class="relative"></div></div>');function Yt($,r){if(new.target)return Ke({component:Yt,...$});Je(r,!0);let d=k(r,"category",7),m=k(r,"categoryIndex",7),b=k(r,"filePatchMap",7),u=k(r,"isLast",7,!1),D=k(r,"onSendMessage",7),P=k(r,"isSending",7,!1),h=k(r,"class",7,"");function J(C){const E=["bg-blue-500","bg-purple-500","bg-emerald-500","bg-warning","bg-rose-500","bg-cyan-500"];return E[C%E.length]}const K=_(()=>d().files.map(C=>{const E=b().get(C.path);return{...C,patch:E?.patch,additions:E?.additions??0,deletions:E?.deletions??0}}));var pe={get category(){return d()},set category(C){d(C),y()},get categoryIndex(){return m()},set categoryIndex(C){m(C),y()},get filePatchMap(){return b()},set filePatchMap(C){b(C),y()},get isLast(){return u()},set isLast(C=!1){u(C),y()},get onSendMessage(){return D()},set onSendMessage(C){D(C),y()},get isSending(){return P()},set isSending(C=!1){P(C),y()},get class(){return h()},set class(C=""){h(C),y()},$set:Ue,$on:(C,E)=>Ve(r,C,E)},Q=Rn(),w=o(Q),H=o(w),de=o(H),ce=n(de,2);{var ae=C=>{var E=$n();i(C,E)};z(ce,C=>{(!u()||e(K).length>0)&&C(ae)})}s(H);var te=n(H,2),ke=o(te),I=O(ke,!0),he=n(ke,2),Ne=O(he,!0);s(te),s(w);var _e=n(w,2);return Be(_e,23,()=>e(K),(C,E)=>`${m()}-${E}`,(C,E,Ie)=>{var me=Nn(),v=o(me),R=o(v);st(2),s(v);var A=n(v,2),X=o(A);{var ie=Ce=>{It(Ce,{get fileName(){return e(E).path},get patch(){return e(E).patch},get annotations(){return e(E).annotations},get additions(){return e(E).additions},get deletions(){return e(E).deletions},get fileDescription(){return e(E).summary},get onSendMessage(){return D()},get isSending(){return P()},class:"rounded-lg border border-border overflow-hidden"})},$e=Ce=>{var ye=Sn(),U=o(ye),T=n(o(U),2),f=O(T,!0);s(U);var W=n(U,2);{var F=le=>{var a=Cn(),j=O(a,!0);M(()=>S(j,e(E).summary)),i(le,a)};z(W,le=>{e(E).summary&&le(F)})}s(ye),M(()=>S(f,e(E).path)),i(Ce,ye)};z(X,Ce=>{e(E).patch?Ce(ie):Ce($e,-1)})}s(A),s(me),M(()=>ze(R,1,`w-0.5 flex-1 bg-border ${e(Ie)===e(K).length-1&&u()?"h-1/2":""}`)),i(C,me)}),s(_e),s(Q),M(C=>{ze(Q,1,`walkthrough-category-section ${h()??""}`),zr(Q,"id",`category-${m()??""}`),ze(de,1,`w-3 h-3 rounded-full ${C??""} ring-4 ring-background shrink-0`),S(I,d().title),S(Ne,d().description)},[()=>J(m())]),i($,Q),Qe(pe)}var Mn=x('<!> <!> <span class="text-sm font-medium"> </span> <!>',1),Pn=x('<div class="flex items-center gap-2 text-sm text-subtle py-2"><!> <span> </span></div>'),Ot=x("<!> ",1),Ln=x('<div class="rounded-lg bg-danger-background/10 border border-danger/20 p-4"><p class="text-sm text-danger"> </p> <!></div>'),In=x('<h2 class="text-lg font-semibold text-foreground"> </h2>'),An=x('<p class="text-sm text-subtle italic"> </p>'),Kt=x("<div><!></div>"),En=x('<div class="space-y-8 pt-4"></div>'),zn=x('<!> <!> <span class="text-sm font-medium text-subtle"> </span>',1),Hn=x('<div class="space-y-3 pt-2"></div>'),Wn=x('<div class="pt-4 border-t border-border"><!> <!></div>'),jn=x('<div class="flex justify-end pt-2"><!></div>'),Dn=x('<div class="space-y-6"><!> <!> <!> <!> <!> <!></div>'),Tn=x('<div class="px-4 pb-4"><!> <!> <!></div>'),Fn=x('<div class="border-t border-border"><!> <!></div>');function Xt($,r){if(new.target)return Ke({component:Xt,...$});Je(r,!0);let d=k(r,"walkthrough",7),m=k(r,"status",7),b=k(r,"workspaceId",7),u=k(r,"error",7,""),D=k(r,"workspacePath",7),P=k(r,"changes",23,()=>[]),h=k(r,"onSendMessage",7),J=k(r,"isSending",7,!1),K=k(r,"onRegenerate",7),pe=k(r,"showCategoriesGrid",7,!0);const Q=_(()=>m()==="running"),w=_(()=>m()==="complete"),H=_(()=>!!u());let de=we(!0),ce=we(!1),ae=we(mt(new Map));const te=_(()=>{if(d()?.categories&&d().categories.length>0)return d().categories;if(d()?.annotations&&d().annotations.length>0){const v=new Map;for(const R of d().annotations){const A=v.get(R.file)||[];A.push(R),v.set(R.file,A)}return[{title:d().title,description:d().overview,files:Array.from(v.entries()).map(([R,A])=>({path:R,annotations:A.sort((X,ie)=>X.line-ie.line)}))}]}return[]}),ke=_(()=>{if(!d()?.annotations)return new Map;const v=new Map;for(const R of d().annotations){const A=v.get(R.file)||[];A.push(R),v.set(R.file,A)}for(const[R,A]of v)v.set(R,A.sort((X,ie)=>X.line-ie.line));return v}),I=_(()=>{const v=new Set;for(const R of e(te))for(const A of R.files)v.add(A.path);for(const R of e(ke).keys())v.add(R);return v}),he=_(()=>P().filter(v=>!e(I).has(v.relativePath)));Ze(()=>{if(!d()||!D())return;const v=new Set([...e(I),...e(he).map(R=>R.relativePath)]);for(const R of v)e(ae).has(R)||Jr(b(),!0,R).then(A=>{if(A&&A.oldContent!==void 0&&A.newContent!==void 0){const X=Ne(R,A.oldContent,A.newContent);if(X){const ie=P().find($e=>$e.relativePath===R);e(ae).set(R,{patch:X,additions:ie?.stats?.additions??0,deletions:ie?.stats?.deletions??0}),L(ae,new Map(e(ae)),!0)}}}).catch(A=>{console.warn(`Failed to load diff for ${R}:`,A)})});function Ne(v,R,A){const X=R.split(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G2 as t,sa as u}from"./
|
|
1
|
+
import{G2 as t,sa as u}from"./BjFoJgFv.js";import{cC as h}from"./DUT4V6mb.js";import{bo as r}from"./COCO5InB.js";let A=1,a=null;const s=[],i=new Set;function l(){for(const e of i)e(a)}function S(){return typeof document<"u"&&document.activeElement instanceof HTMLElement?document.activeElement:null}function o(e){s.push({...e,id:A++,returnFocus:S()}),a||(a=s.shift()??null,l())}function p(e){return new Promise(n=>o({kind:"confirm",options:e,resolve:n}))}function _(e){return new Promise(n=>o({kind:"prompt",options:e,resolve:n}))}function f(e){return i.add(e),e(a),()=>i.delete(e)}function m(e,n){if(!a||a.id!==e)return;const c=a;a=s.shift()??null,c.resolve(n),c.returnFocus?.focus(),l()}const L=t.createSelector(e=>h.select(e)?.capabilities.gitlabCheckout===!0),I=t.createSelector(e=>e.gitlabAuth.host),C=t.createSelector(e=>e.gitlabAuth.instanceBaseUrl??e.gitlabAuth.host),E=t.createSelector(e=>u(e.gitlabAuth.instanceBaseUrl??e.gitlabAuth.host)??""),G=t.createSelector(e=>e.gitlabAuth.isCancelling),y=t.createSelector(e=>e.gitlabAuth.cancelOutcome),T=t.createSelector(e=>e.gitlabAuth.isConfigured),U=t.createSelector(e=>e.gitlabAuth.isAuthenticating),v=t.createSelector(e=>e.gitlabAuth.deviceFlow),N=t.createSelector(e=>e.gitlabAuth.deviceGrantSupported),O=t.createSelector(e=>e.gitlabAuth.user),R=t.createSelector(e=>e.gitlabAuth.error);t.createSelector(e=>e.gitlabAuth.method);const D=t.createSelector(e=>e.gitlabAuth.statusReady===!0),H={IS_AUTHENTICATED:"linear-auth:is-authenticated",START_AUTH:"linear-auth:start-auth",CANCEL_AUTH:"linear-auth:cancel-auth",LOGOUT:"linear-auth:logout",GET_AUTH_STATE:"linear-auth:get-auth-state",GET_STATUS:"linear-auth:get-status",FETCH_MY_ISSUES:"linear-auth:fetch-my-issues",SEARCH_ISSUES:"linear-auth:search-issues"},q=[{value:"assigned",get label(){return r.linearAuth_filter_assigned_label()},get description(){return r.linearAuth_filter_assigned_description()}},{value:"created",get label(){return r.linearAuth_filter_created_label()},get description(){return r.linearAuth_filter_created_description()}},{value:"subscribed",get label(){return r.linearAuth_filter_subscribed_label()},get description(){return r.linearAuth_filter_subscribed_description()}},{value:"team",get label(){return r.linearAuth_filter_team_label()},get description(){return r.linearAuth_filter_team_description()}},{value:"all",get label(){return r.linearAuth_filter_all_label()},get description(){return r.linearAuth_filter_all_description()}}],w=t.createSelector(e=>e.linearAuth.operation),F=t.createSelector((e,n)=>e.linearAuth.operation?.consumerId===n?e.linearAuth.operation:null),k=t.createSelector(e=>e.linearAuth.operation?.kind==="logout"&&e.linearAuth.operation.status==="pending"),P=t.createSelector(e=>e.linearAuth.isAuthenticated),x=t.createSelector(e=>e.linearAuth.requiresDaemonAuth),z=t.createSelector(e=>e.linearAuth.isAuthenticating),B=t.createSelector(e=>e.linearAuth.error),M=t.createSelector(e=>e.sentryAuth.operation),j=t.createSelector((e,n)=>e.sentryAuth.operation?.consumerId===n?e.sentryAuth.operation:null),W=t.createSelector(e=>e.sentryAuth.operation?.kind==="logout"&&e.sentryAuth.operation.status==="pending"),X=t.createSelector(e=>e.sentryAuth.isAuthenticated),Y=t.createSelector(e=>e.sentryAuth.organization),J=t.createSelector(e=>e.sentryAuth.isConnecting),K=t.createSelector(e=>e.sentryAuth.error),Q="npx not found — install Node.js (with npm) to use Claude Code";export{X as A,J as B,Q as C,W as D,Y as E,m as F,f as G,H as L,q as a,v as b,p as c,N as d,R as e,I as f,E as g,U as h,G as i,T as j,C as k,O as l,L as m,D as n,F as o,_ as p,w as q,B as r,y as s,P as t,z as u,k as v,x as w,j as x,M as y,K as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as o,bC as te,aO as H,c4 as fe,b4 as ye,b8 as be,bU as me,cd as ke,ax as K,c2 as F,bB as Ee,J as _e,bk as Se,by as ce,as as le}from"./
|
|
1
|
+
import{f as o,bC as te,aO as H,c4 as fe,b4 as ye,b8 as be,bU as me,cd as ke,ax as K,c2 as F,bB as Ee,J as _e,bk as Se,by as ce,as as le}from"./BHwB2t2J.js";import{g as Ne}from"./B5WfnJ_I.js";var $=(function(){var e=o(function(O,s,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=s);return n},"o"),h=[1,4],p=[1,13],i=[1,12],d=[1,15],k=[1,16],m=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],E=[6,7,11],G=[1,31],N=[6,7,11,24],B=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],U=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(s,n,r,a,u,t,M){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:I,7:g,10:23,11:w},e(E,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(E,[2,19]),e(E,[2,21],{15:30,24:G}),e(E,[2,22]),e(E,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(B,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(E,[2,16],{15:37,24:G}),e(E,[2,17]),e(E,[2,18]),e(E,[2,20],{24:U}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(B,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(E,[2,15],{24:U}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(s,n){if(n.recoverable)this.trace(s);else{var r=new Error(s);throw r.hash=n,r}},"parseError"),parse:o(function(s){var n=this,r=[0],a=[],u=[null],t=[],M=this.table,c="",W=0,ie=0,ue=2,re=1,ge=t.slice.call(arguments,1),b=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);b.setInput(s,R.yy),R.yy.lexer=b,R.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;t.push(q);var de=b.options&&b.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var _,P,x,Q,j={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=ae()),x=M[P]&&M[P][_]),typeof x>"u"||!x.length||!x[0]){var Z="";X=[];for(z in M[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");b.showPosition?Z="Parse error on line "+(W+1)+`:
|
|
2
2
|
`+b.showPosition()+`
|
|
3
3
|
Expecting `+X.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Z="Parse error on line "+(W+1)+": Unexpected "+(_==re?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Z,{text:b.match,token:this.terminals_[_]||_,line:b.yylineno,loc:q,expected:X})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+_);switch(x[0]){case 1:r.push(_),u.push(b.yytext),t.push(b.yylloc),r.push(x[1]),_=null,ie=b.yyleng,c=b.yytext,W=b.yylineno,q=b.yylloc;break;case 2:if(C=this.productions_[x[1]][1],j.$=u[u.length-C],j._$={first_line:t[t.length-(C||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(C||1)].first_column,last_column:t[t.length-1].last_column},de&&(j._$.range=[t[t.length-(C||1)].range[0],t[t.length-1].range[1]]),Q=this.performAction.apply(j,[c,ie,W,R.yy,x[1],u,t].concat(ge)),typeof Q<"u")return Q;C&&(r=r.slice(0,-1*C*2),u=u.slice(0,-1*C),t=t.slice(0,-1*C)),r.push(this.productions_[x[1]][0]),u.push(j.$),t.push(j._$),oe=M[r[r.length-2]][r[r.length-1]],r.push(oe);break;case 3:return!0}}return!0},"parse")},Y=(function(){var O={EOF:1,parseError:o(function(n,r){if(this.yy.parser)this.yy.parser.parseError(n,r);else throw new Error(n)},"parseError"),setInput:o(function(s,n){return this.yy=n||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var n=s.length,r=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var a=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),r.length-1&&(this.yylineno-=r.length-1);var u=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:r?(r.length===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),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(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var j=Object.defineProperty;var V=(s,e,t)=>e in s?j(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var n=(s,e,t)=>V(s,typeof e!="symbol"?e+"":e,t);import{f as x,j as G,p as z}from"./DVkfuwKw.js";import{u as J,o as T,e as A,s as b,l as N,n as U}from"./CpHIRYx9.js";import{bo as $}from"./CNHLe0qt.js";class u extends Error{constructor(t){super(t.message);n(this,"code");n(this,"data");n(this,"rpcCode");this.name="BackendError",this.code=t.code,this.data=t.data,this.rpcCode=t.rpcCode}}function Ee(s){return!s||typeof s!="object"?!1:typeof s.rpcCode=="number"}const K=-32003;function Ae(s){return!s||typeof s!="object"?!1:s.rpcCode===K}const Ce=x.refine(s=>s.repository.provider==="github"&&s.kind==="pull-request"||s.repository.provider==="gitlab"&&s.kind==="merge-request"),Oe=J([T({state:A(["available","pending","reconnect-required","restricted","disabled","unsupported","unavailable","unknown"])}),T({state:N("backoff"),retryAt:b()}),T({state:N("unresolved"),reason:A(["missing-provenance","unverified-import","invalid-target","missing-authority","unknown"]).catch("unknown")})]).catch({state:"unknown"}),Ne=T({backendId:b().min(1),sessionId:b().min(1),workspaceId:b().min(1)}).strict();function v(s){return typeof s=="number"&&Number.isSafeInteger(s)&&s>=1}function _e(s){if(s.resource||s.monitorAvailability||s.title===null||s.url===null||s.lastSnapshot===null)return!1;const e=s.lastSnapshot;return!e||!e.availability&&e.isDraft!==null&&e.hasConflicts!==null&&e.isBehind!==null&&Object.values(e.checks).every(t=>t!==null)&&e.approvals.decision!==null&&e.approvals.have!==null&&e.approvals.changesRequested!==null}const Ie=new Set(["agent.getConversation","agent.listUserMessages","agent.getMessageBlock","chat.subscribe","chat.unsubscribe"]);class Y{constructor(e,t,i,o,a,d,y){n(this,"ready");n(this,"acknowledged",!1);n(this,"closed",!1);n(this,"id",0);n(this,"pending",new Map);n(this,"listeners",new Set);n(this,"rejectReady");n(this,"timer");this.socket=e,this.currentSource=o,this.timeoutMs=a,this.onFailure=y,this.ready=new Promise((m,r)=>{this.rejectReady=r,e.onopen=()=>{if(!this.current())return this.fail();this.send("client.hello",{clientId:t,connectionRole:"review-monitor",capabilities:{reviewMonitoring:i}}).then(f=>{const c=f;if(!this.current()||c?.clientId!==t||c?.connectionRole!=="review-monitor"||!v(c?.server?.capabilities?.reviewMonitoring))return this.fail();this.acknowledged=!0,clearTimeout(this.timer),m()},()=>this.fail())}}),this.timer=setTimeout(()=>this.fail(),d),e.onerror=()=>this.fail(),e.onclose=()=>this.fail(),e.onmessage=({data:m})=>{if(!this.current()||typeof m!="string")return;let r;try{r=JSON.parse(m)}catch{return}if(!r||typeof r!="object")return;if(typeof r.method=="string"){if(r.id!=null){try{e.send(JSON.stringify({jsonrpc:"2.0",id:r.id,error:{code:-32601,message:"Method not found"}}))}catch{this.fail()}return}if(this.acknowledged)for(const c of[...this.listeners])c({method:r.method,params:r.params});return}if(typeof r.id!="number")return;const f=this.pending.get(r.id);if(f)if(this.pending.delete(r.id),clearTimeout(f.timer),r.error){const c=r.error.data,g=c&&typeof c=="object"&&"code"in c&&typeof c.code=="string"?c.code:"SERVER_ERROR";f.reject(new u({code:g,message:typeof r.error.message=="string"?r.error.message:"Monitor request failed",data:c,rpcCode:typeof r.error.code=="number"?r.error.code:void 0}))}else f.resolve(r.result)}}current(){return!this.closed&&this.currentSource()}onNotification(e){return this.listeners.add(e),()=>this.listeners.delete(e)}request(e,t){return!this.acknowledged||e==="client.hello"?Promise.reject(this.unavailable()):this.send(e,t)}close(){if(this.closed)return;this.closed=!0,this.acknowledged=!1,clearTimeout(this.timer);const e=this.unavailable();this.rejectReady(e);for(const t of this.pending.values())clearTimeout(t.timer),t.reject(e);this.pending.clear(),this.listeners.clear(),this.socket.onopen=this.socket.onmessage=this.socket.onerror=this.socket.onclose=null;try{this.socket.close()}catch{}}fail(){this.closed||(this.close(),this.onFailure())}unavailable(){return new u({code:"PR_MONITOR_SESSION_RETIRED",message:"Monitor attachment unavailable"})}send(e,t){if(!this.current())return Promise.reject(this.unavailable());const i=++this.id;return new Promise((o,a)=>{const d=setTimeout(()=>{this.pending.delete(i),a(new u({code:"TIMEOUT",message:`JSON-RPC request timed out: ${e}`}))},this.timeoutMs);this.pending.set(i,{resolve:o,reject:a,timer:d});try{this.socket.send(JSON.stringify({jsonrpc:"2.0",id:i,method:e,params:t}))}catch{this.fail()}})}}const X=["agentNodes","localNodeIsolation","agentPlatformRouting","workspaceMembershipEvents","rawScreenshotRetention","chiefAttachments","noteTruncatedRead","remoteMachines","remoteInitialAgent","remoteLinkTraffic"];function Q(s){return Object.freeze(Object.fromEntries(X.map(e=>[e,s?.[e]===1?1:0])))}function Z(s){if(!G(s,11,1))throw new Error($.files_secondaryRoot_unsupported_error())}function ee(s,e,t){te(s,e)&&Z(t)}function te(s,e){if(s!=="file.read"&&s!=="file.readChunk")return!1;const t=e?.gitRootId;return typeof t=="string"&&!!t.trim()}const _=-32012,se="system.startupStatus",ne=1e3,L=1e3,F=3e4,w=U().int().nonnegative().max(Number.MAX_SAFE_INTEGER),ie=T({completedNotes:w,totalNotes:w,processedSourceBytes:w,totalSourceBytes:w}).refine(s=>s.completedNotes<=s.totalNotes&&s.processedSourceBytes<=s.totalSourceBytes),oe=T({startupStatus:N(1),daemonVersion:b().min(1).optional(),attemptId:b().min(1),phase:A(["preparing","indexing","finalizing","ready","failed"]),elapsedMs:w,phaseElapsedMs:w,progressAgeMs:w,retryAfterMs:U().int().min(L).max(F).optional(),progress:ie.optional(),estimatedRemainingMs:w.optional(),finalizingStep:A(["anchors","committing","services"]).optional(),failure:T({code:b().min(1),message:b().min(1)}).optional()}).refine(s=>(s.phase==="ready"||s.phase==="failed"?s.retryAfterMs===void 0:s.retryAfterMs!==void 0)&&(s.phase==="finalizing"?s.finalizingStep!==void 0:s.finalizingStep===void 0)&&(s.phase==="failed"?s.failure!==void 0:s.failure===void 0)&&(s.estimatedRemainingMs===void 0||s.phase==="indexing"));function B(s){const e=oe.safeParse(s);return e.success?e.data:null}function P(s){const e=typeof s=="number"&&Number.isFinite(s)?s:ne;return Math.min(F,Math.max(L,e))}function re(s){const e=s;return typeof e.rpcCode=="number"?e.rpcCode:typeof e.code=="number"?e.code:void 0}function q(s){if(!s||typeof s!="object"||re(s)!==_)return;const e=s.data??{},t=B(e.startup);if(e.code==="daemon-startup-failed"){const i=e.startup?.failure?.message,o=s.message;return{kind:"failed",message:typeof i=="string"&&i.trim()?i:typeof o=="string"?o:"",snapshot:t}}if(!(e.code!=="daemon-not-ready"||e.retryable!==!0))return{kind:"not-ready",retryAfterMs:P(e.retryAfterMs),snapshot:t}}function D(s){const e=s.snapshot??void 0;return s.state==="failed"?{code:_,message:"Daemon startup failed",data:{code:"daemon-startup-failed",retryable:!1,startup:e}}:{code:_,message:"Daemon not ready",data:{code:"daemon-not-ready",retryable:!0,retryAfterMs:P(e?.retryAfterMs),startup:e}}}const ae=5e3,ce=5e3,le=3e4;function he(s){const e=s.snapshot;return JSON.stringify([s.state,s.available,e?.attemptId,e?.phase,e?.finalizingStep,e?.progress?.completedNotes,e?.progress?.totalNotes,e?.estimatedRemainingMs===void 0,(e?.progressAgeMs??0)>=le])}class ue{constructor(e){n(this,"generation",0);n(this,"timer",null);n(this,"snapshot",null);n(this,"lastKey",null);n(this,"lastPublishedAt",0);this.host=e}start(e){this.stop(),this.snapshot=e.snapshot??this.snapshot,this.publish({state:"starting",snapshot:this.snapshot,available:e.snapshot!==null},!0),this.schedule(e.retryAfterMs)}stop(){this.generation++,this.timer&&(clearTimeout(this.timer),this.timer=null)}reset(){this.stop(),this.snapshot=null,this.lastKey=null,this.lastPublishedAt=0}publish(e,t=!1){const i=he(e),o=Date.now();!t&&i===this.lastKey&&o-this.lastPublishedAt<ce||(this.lastKey=i,this.lastPublishedAt=o,this.host.publish(e))}schedule(e){const t=this.generation;this.timer=setTimeout(()=>{if(this.timer=null,t!==this.generation)return;const i=()=>this.poll(t);this.host.track?this.host.track(i):i()},e)}async poll(e){let t;try{t=B(await this.host.request())}catch(i){if(e!==this.generation)return;const o=q(i);if(o?.kind==="failed"){this.stop(),this.host.fail(o.message,o.snapshot);return}if(o?.kind==="not-ready"){this.snapshot=o.snapshot??this.snapshot,this.publish({state:"starting",snapshot:this.snapshot,available:o.snapshot!==null}),this.schedule(o.retryAfterMs);return}this.unavailable();return}if(e===this.generation){if(t===null){this.unavailable();return}if(this.snapshot=t,t.phase==="failed"){this.stop(),this.host.fail(t.failure?.message??"",t);return}if(t.phase==="ready"){this.stop(),this.publish({state:"starting",snapshot:t,available:!0},!0),this.host.handoff(!0);return}this.publish({state:"starting",snapshot:t,available:!0}),this.schedule(P(t.retryAfterMs))}}unavailable(){this.stop(),this.publish({state:"starting",snapshot:this.snapshot,available:!1},!0),this.host.handoff(!1)}}function Pe(s=(()=>{const e=globalThis.__INTENT_RUNTIME_CONFIG__;return e?.intentdWsUrl!==void 0?e.intentdWsUrl:typeof process>"u"?void 0:""})()){if(typeof s!="string")return;const e=s.trim();if(!e)return;if(e.startsWith("/")&&!e.startsWith("//")&&!e.includes("\\")){const o=globalThis.location;if(o?.host&&(o.protocol==="http:"||o.protocol==="https:"))return`${o.protocol==="https:"?"wss:":"ws:"}//${o.host}${e}`;console.warn("[browser-websocket-transport] Ignoring same-origin WebSocket path without an HTTP page origin");return}let t;try{t=new URL(e)}catch{console.warn("[browser-websocket-transport] Ignoring browser WebSocket URL: expected ws:// or wss://");return}if(t.protocol!=="ws:"&&t.protocol!=="wss:"){console.warn("[browser-websocket-transport] Ignoring browser WebSocket URL: expected ws:// or wss://");return}const i=t.hostname==="localhost"||t.hostname==="127.0.0.1"||t.hostname==="[::1]";if(t.protocol==="ws:"&&!i){console.warn("[browser-websocket-transport] Ignoring insecure remote WebSocket URL: use wss://");return}return e}function de(s){try{const e=new URL(s);return e.username="",e.password="",e.search="",e.hash="",e.toString()}catch{return s.replace(/[?#].*$/,"").replace(/^([a-z][a-z0-9+.-]*:\/\/)[^/]*@/i,"$1")}}const fe={[-32700]:"PARSE_ERROR",[-32600]:"INVALID_REQUEST",[-32601]:"METHOD_NOT_FOUND",[-32602]:"INVALID_PARAMS",[-32603]:"INTERNAL_ERROR"};function pe(s){const e=fe[s];return e||(s<=-32e3&&s>=-32099?"SERVER_ERROR":"UNKNOWN_ERROR")}function me(s){if(s&&typeof s=="object"&&"code"in s){const e=s.code;if(typeof e=="string"&&e.length>0)return e}}function O(s){const e=me(s.data)??pe(s.code),t=s.data&&typeof s.data=="object"?{...s.data,code:e}:typeof s.data=="string"&&s.data.length>0?{code:e,detail:s.data}:{code:e};return{code:e,message:s.message,data:t,rpcCode:s.code}}function E(s){if(s instanceof u)return s;const e=s instanceof Error?s.message:String(s);return new u({code:"TRANSPORT_ERROR",message:e,data:{code:"TRANSPORT_ERROR"}})}const ge=3e4,ye=1e3,Re=3e4,Se=1e4,be=5e3;class we{constructor(e){n(this,"url");n(this,"webSocketFactory");n(this,"requestTimeoutMs");n(this,"reconnectDelayMs");n(this,"maxReconnectDelayMs");n(this,"connectTimeoutMs");n(this,"socket",null);n(this,"connected",!1);n(this,"connecting",!1);n(this,"disposed",!1);n(this,"requestId",0);n(this,"currentReconnectDelay");n(this,"reconnectTimer",null);n(this,"connectTimer",null);n(this,"connectWaiters",[]);n(this,"clientId");n(this,"helloConfirmed",!1);n(this,"acknowledgedHello",null);n(this,"nodeCapabilities",null);n(this,"capabilityHelloGeneration",0);n(this,"reviewMonitoring");n(this,"reviewMonitoringRecipient");n(this,"reviewMonitoringEnabled",!1);n(this,"ordinaryHello",!1);n(this,"monitorRetry",null);n(this,"monitorRetirements",new Set);n(this,"monitorReady",new Set);n(this,"protocolVersion",null);n(this,"helloError",new u({code:"UNAVAILABLE",message:"client.hello has not completed on this connection"}));n(this,"pending",new Map);n(this,"hasBeenConnected",!1);n(this,"hasConnectionFailed",!1);n(this,"notificationHandlers",new Set);n(this,"reconnectedHandlers",new Set);n(this,"statusHandlers",new Set);n(this,"lastNotifiedStatus","disconnected");n(this,"startupState",null);n(this,"startupSocket",null);n(this,"startupPoller",new ue({request:()=>{const e=this.startupSocket;return e?this.requestOnSocket(se,void 0,{timeoutMs:ae},e):Promise.reject(this.startupRefusal())},publish:e=>this.updateStartup(e),handoff:e=>this.startupHandoff(e),fail:(e,t)=>this.failStartup(e,t)}));n(this,"startupHandlers",new Set);this.reviewMonitoringEnabled=v(e.reviewMonitoring),this.reviewMonitoringRecipient=v(e.reviewMonitoring)?e.reviewMonitoring:void 0,this.url=e.url,this.webSocketFactory=e.webSocketFactory??(t=>new WebSocket(t)),this.requestTimeoutMs=e.requestTimeoutMs??ge,this.reconnectDelayMs=e.reconnectDelayMs??ye,this.maxReconnectDelayMs=e.maxReconnectDelayMs??Re,this.connectTimeoutMs=e.connectTimeoutMs??Se,this.currentReconnectDelay=this.reconnectDelayMs}isAvailable(){return!this.disposed}async readPrincipal(){if(this.disposed)throw new u({code:"UNAVAILABLE",message:"Backend transport disposed"});const e=await this.ensureConnected(),t=this.capabilityHelloGeneration,i=structuredClone(this.acknowledgedHello),o=()=>!this.disposed&&this.connected&&this.socket===e&&this.capabilityHelloGeneration===t&&this.acknowledgedHello!==null;if(!o())throw this.helloError;const a=await this.requestOnSocket("principal.me",{},void 0,e);if(!o())throw new u({code:"UNAVAILABLE",message:"Principal discovery connection changed"});return{hello:i,principal:a}}async observeNodeCapabilities(){if(this.disposed)throw new u({code:"UNAVAILABLE",message:"Backend transport disposed"});const e=await this.ensureConnected();if(this.disposed||!this.connected||this.socket!==e)throw new u({code:"UNAVAILABLE",message:"Backend connection changed"});return{server:{capabilities:this.nodeCapabilities}}}onMonitorReconnected(e){this.monitorReady.add(e);const t=this.onReconnected(e);return()=>{this.monitorReady.delete(e),t()}}prMonitorBackendId(){return de(this.url)}async capturePrMonitorSession(e){const t=await this.ensureConnected(),i=this.capabilityHelloGeneration,o=()=>new u({code:"PR_MONITOR_SESSION_RETIRED",message:"Monitor connection unavailable"});let a,d=!1;const y=new Set,m=new Set,r=()=>{if(!d){d=!0,this.monitorRetirements.delete(r),a?.close();for(const l of y)l();y.clear()}},f=()=>!d&&!this.disposed&&this.connected&&this.helloConfirmed&&this.socket===t&&i===this.capabilityHelloGeneration,c=()=>f()&&(!a||a.current());if(!c())throw o();this.monitorRetirements.add(r);const g=v(this.reviewMonitoring);let M=g?"consumer-pending":"unsupported";if(g&&this.reviewMonitoringEnabled&&this.ordinaryHello&&this.clientId)try{if(a=new Y(this.webSocketFactory(this.url),this.clientId,Math.min(this.reviewMonitoringRecipient,this.reviewMonitoring),f,this.requestTimeoutMs,this.connectTimeoutMs,()=>{const l=f();r(),l&&this.scheduleMonitorRecovery(t,i)}),await a.ready,!c())throw o();M="supported"}catch(l){const p=f();throw r(),p&&this.scheduleMonitorRecovery(t,i),l}const R=(l,p)=>a?a.request(l,p):this.requestOnSocket(l,p,void 0,t);return{origin:{backendId:this.prMonitorBackendId(),sessionId:crypto.randomUUID(),workspaceId:e},support:M,onRetired(l){return c()?(y.add(l),()=>{y.delete(l)}):(l(),()=>{})},onNotification:l=>(a??this).onNotification(p=>{c()&&l(p)}),request:async(l,p)=>{if(!c()||M==="consumer-pending"||p.workspaceId!==e)throw o();const k=await R(l,p),h=l==="events.subscribe"?k?.subscriptionId:void 0;if(!c())throw h&&this.socket===t&&this.connected&&i===this.capabilityHelloGeneration&&R("events.unsubscribe",{workspaceId:e,subscriptionId:h}).catch(()=>{}),o();return h&&m.add(h),l==="events.unsubscribe"&&m.delete(String(p.subscriptionId)),k},release:async()=>{const l=c();r(),l&&!a&&await Promise.all([...m].map(p=>this.requestOnSocket("events.unsubscribe",{workspaceId:e,subscriptionId:p},void 0,t).catch(()=>{})))}}}request(e,t,i){return this.requestOnSocket(e,t,i)}requestOnSocket(e,t,i,o){if(i?.localMachine)return Promise.reject(new u({code:"UNAVAILABLE",message:"Local machine requests require the desktop bridge"}));if(this.disposed)return Promise.reject(new u({code:"UNAVAILABLE",message:"Backend transport disposed"}));if(!o&&this.startupState?.state==="starting")return Promise.reject(new u(O(D(this.startupState))));const a=++this.requestId,d=i?.timeoutMs,y=typeof d=="number"&&Number.isFinite(d)&&d>0?d:this.requestTimeoutMs;return new Promise((m,r)=>{let f=!1;const c=setTimeout(()=>{f=!0,this.pending.delete(a),r(new u({code:"TIMEOUT",message:`JSON-RPC request timed out: ${e}`,data:{code:"TIMEOUT"}}))},y),g=R=>{clearTimeout(c),r(E(R))},M=R=>{if(f)return;if(this.disposed||this.socket!==R){g(new u({code:"TRANSPORT_ERROR",message:"Connection replaced"}));return}if(e==="presence.update"&&!this.helloConfirmed){g(this.helloError);return}try{ee(e,t,this.protocolVersion)}catch(h){g(h);return}let l=e==="client.hello"&&this.clientId?{clientId:this.clientId,...t}:t;if(e==="client.hello"){const h={...l},S={...h.capabilities};Object.prototype.hasOwnProperty.call(S,"reviewMonitoring")&&(this.reviewMonitoringEnabled=this.reviewMonitoringRecipient!==void 0&&v(S.reviewMonitoring)),delete S.reviewMonitoring,delete h.connectionRole,h.capabilities!==void 0&&(h.capabilities=S),l=h}const p=JSON.stringify({jsonrpc:"2.0",id:a,method:e,params:l}),k=e==="client.hello"?++this.capabilityHelloGeneration:0;if(e==="client.hello"){this.helloConfirmed=!1,this.ordinaryHello=!1,this.clearMonitorRecovery(),this.nodeCapabilities=null,this.reviewMonitoring=void 0;for(const h of[...this.monitorRetirements])h();this.acknowledgedHello=null}this.pending.set(a,{method:e,timeout:c,resolve:h=>{if(e==="client.hello"&&this.socket===R&&k===this.capabilityHelloGeneration){const S=h?.clientId;if(typeof S=="string"&&S.length>0){const H=h.server?.capabilities;if(this.clientId=S,this.reviewMonitoring=H?.reviewMonitoring,this.ordinaryHello=h.connectionRole===void 0,this.acknowledgedHello=structuredClone(h),this.nodeCapabilities=Q(H),this.protocolVersion=z(h.protocolVersion),this.helloConfirmed=!0,this.connected)for(const W of this.monitorReady)W()}}m(h)},reject:r});try{R.send(p)}catch(h){clearTimeout(c),this.pending.delete(a),r(E(h))}};o?M(o):this.connected&&this.socket?M(this.socket):this.ensureConnected().then(M,g)})}async subscribe(e){return this.request("events.subscribe",e)}async unsubscribe(e,t){try{await this.request("events.unsubscribe",{subscriptionId:e,...t!==void 0?{workspaceId:t}:{}})}catch{}}onNotification(e){return this.notificationHandlers.add(e),()=>this.notificationHandlers.delete(e)}onReconnected(e){return this.reconnectedHandlers.add(e),()=>this.reconnectedHandlers.delete(e)}getConnectionStatus(){return this.connected?"connected":this.connecting?"connecting":"disconnected"}getStartupState(){return this.startupState}onStartupChange(e){return this.startupHandlers.add(e),()=>this.startupHandlers.delete(e)}onConnectionStatusChange(e){return this.statusHandlers.add(e),()=>this.statusHandlers.delete(e)}dispose(){if(this.disposed)return;this.disposed=!0,this.clearReconnect(),this.clearConnectTimer();const e=new u({code:"UNAVAILABLE",message:"Backend transport disposed"});this.failPending(e),this.failWaiters(e),this.teardownSocket(),this.connected=!1,this.connecting=!1,this.notifyStatusChange(),this.notificationHandlers.clear(),this.reconnectedHandlers.clear(),this.statusHandlers.clear(),this.startupHandlers.clear()}ensureConnected(){return this.connected&&this.socket?Promise.resolve(this.socket):new Promise((e,t)=>{this.connectWaiters.push({resolve:e,reject:t}),this.start()})}start(){this.disposed||this.socket||this.connecting||this.reconnectTimer||this.connect()}connect(){this.clearReconnect(),this.connecting=!0,this.notifyStatusChange();let e;try{e=this.webSocketFactory(this.url)}catch(t){this.connecting=!1,this.onConnectionFailure(E(t));return}this.socket=e,this.helloConfirmed=!1,this.connectTimer=setTimeout(()=>{this.connectTimer=null,!(this.socket!==e||this.connected)&&(this.connecting=!1,this.onConnectionFailure(new u({code:"TRANSPORT_ERROR",message:`WebSocket connect attempt timed out after ${this.connectTimeoutMs}ms`})))},this.connectTimeoutMs),e.onopen=()=>{this.socket===e&&this.onConnected(e)},e.onmessage=t=>{this.socket===e&&this.onMessage(t.data)},e.onerror=null,e.onclose=()=>{this.socket===e&&(this.connecting=!1,this.onConnectionFailure(new u({code:"TRANSPORT_ERROR",message:"WebSocket connection closed"})))}}onConnected(e){this.clearConnectTimer(),this.performHelloHandshake(e)}async performHelloHandshake(e){try{await this.requestOnSocket("client.hello",{},{timeoutMs:Math.min(this.requestTimeoutMs,be)},e)}catch(o){if(this.disposed||this.socket!==e)return;const a=q(o);if(a){this.enterStartup(e,a);return}this.helloError=E(o)}if(this.disposed||this.socket!==e)return;this.startupPoller.reset(),this.startupSocket=null;const t=this.startupState!==null;this.startupState=null,this.connecting=!1,this.connected=!0,this.currentReconnectDelay=this.reconnectDelayMs;const i=this.hasBeenConnected||this.hasConnectionFailed;if(this.hasBeenConnected=!0,this.hasConnectionFailed=!1,this.notifyStatusChange(),t)for(const o of[...this.startupHandlers])o(null);if(this.flushWaiters(e),i)for(const o of[...this.reconnectedHandlers])o()}onConnectionFailure(e){if(this.clearConnectTimer(),!this.disposed){if(this.startupSocket!==null&&this.startupSocket===this.socket){this.startupHandoff(!0);return}this.startupState?.state==="starting"&&(this.startupPoller.reset(),this.updateStartup(null)),this.hasConnectionFailed=!0,this.connected=!1,this.notifyStatusChange(),this.teardownSocket(),this.failPending(e),this.failWaiters(e),this.scheduleReconnect()}}notifyStatusChange(){const e=this.getConnectionStatus();if(e!==this.lastNotifiedStatus){this.lastNotifiedStatus=e;for(const t of[...this.statusHandlers])t(e)}}onMessage(e){if(typeof e!="string")return;let t;try{t=JSON.parse(e)}catch{console.warn("[browser-websocket-transport] Dropping unparseable frame");return}if(!t||typeof t!="object")return;const i=typeof t.method=="string",o=t.id!=null;if(i&&o){this.sendFrame({jsonrpc:"2.0",id:t.id,error:{code:-32601,message:`Method not found: ${String(t.method)}`}});return}if(o){const a=Number(t.id),d=this.pending.get(a);if(!d)return;this.pending.delete(a),clearTimeout(d.timeout),t.error?d.reject(new u(O(t.error))):d.resolve(t.result);return}if(i){const a={method:t.method,params:t.params};for(const d of[...this.notificationHandlers])d(a)}}sendFrame(e){try{this.socket?.send(JSON.stringify(e))}catch{}}scheduleReconnect(){if(this.disposed||this.reconnectTimer)return;const e=this.currentReconnectDelay;this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.currentReconnectDelay=Math.min(e*2,this.maxReconnectDelayMs),this.disposed||this.connect()},e)}clearReconnect(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}clearConnectTimer(){this.connectTimer&&(clearTimeout(this.connectTimer),this.connectTimer=null)}scheduleMonitorRecovery(e,t){this.monitorRetry||this.disposed||(this.monitorRetry=setTimeout(()=>{if(this.monitorRetry=null,!this.disposed&&this.connected&&this.socket===e&&this.capabilityHelloGeneration===t)for(const i of[...this.monitorReady])i()},this.reconnectDelayMs))}clearMonitorRecovery(){this.monitorRetry&&clearTimeout(this.monitorRetry),this.monitorRetry=null}teardownSocket(){this.startupPoller.stop(),this.startupSocket=null,this.reviewMonitoring=void 0,this.clearMonitorRecovery();for(const t of[...this.monitorRetirements])t();if(this.acknowledgedHello=null,this.nodeCapabilities=null,this.capabilityHelloGeneration+=1,this.protocolVersion=null,!this.socket)return;const e=this.socket;this.socket=null,e.onopen=null,e.onmessage=null,e.onerror=null,e.onclose=null;try{e.close()}catch{}}updateStartup(e){this.startupState=e?Object.freeze({...e}):null;for(const t of[...this.startupHandlers])t(this.startupState)}startupRefusal(){return this.startupState?new u(O(D(this.startupState))):new u({code:"TRANSPORT_ERROR",message:"WebSocket connection closed"})}enterStartup(e,t){if(this.hasConnectionFailed=!0,t.kind==="failed"){this.failStartup(t.message,t.snapshot);return}this.startupSocket=e,this.startupPoller.start(t),this.failWaiters(this.startupRefusal())}startupHandoff(e){const t=this.startupRefusal();if(this.teardownSocket(),this.failPending(t),this.disposed)return;this.connecting=!0,this.notifyStatusChange(),this.clearReconnect();let i=this.reconnectDelayMs;e?this.currentReconnectDelay=this.reconnectDelayMs:(i=this.currentReconnectDelay,this.currentReconnectDelay=Math.min(i*2,this.maxReconnectDelayMs)),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.disposed||this.connect()},i)}failStartup(e,t){this.startupPoller.stop(),this.startupSocket=null,this.hasConnectionFailed=!0,this.updateStartup({state:"failed",snapshot:t,available:t!==null,message:e}),this.connecting=!1,this.onConnectionFailure(this.startupRefusal())}failPending(e){for(const t of this.pending.values())clearTimeout(t.timeout),t.reject(e);this.pending.clear()}flushWaiters(e){const t=this.connectWaiters;this.connectWaiters=[];for(const i of t)i.resolve(e)}failWaiters(e){const t=this.connectWaiters;this.connectWaiters=[];for(const i of t)i.reject(e)}}function He(s){return new we(s)}let C=null;const I=new Set;function De(s){C=s;for(const e of[...I])e(s)}function Ue(){return C}function Le(s){return I.add(s),C&&s(C),()=>I.delete(s)}export{u as B,Oe as M,Ne as P,Ie as R,Ce as a,Ae as b,He as c,_e as d,Pe as e,v as f,Ue as g,Ee as i,Le as o,De as r,de as s};
|
|
1
|
+
var j=Object.defineProperty;var V=(s,e,t)=>e in s?j(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var n=(s,e,t)=>V(s,typeof e!="symbol"?e+"":e,t);import{f as x,j as G,p as z}from"./DVkfuwKw.js";import{u as J,o as T,e as A,s as b,l as N,n as U}from"./CpHIRYx9.js";import{bo as $}from"./COCO5InB.js";class u extends Error{constructor(t){super(t.message);n(this,"code");n(this,"data");n(this,"rpcCode");this.name="BackendError",this.code=t.code,this.data=t.data,this.rpcCode=t.rpcCode}}function Ee(s){return!s||typeof s!="object"?!1:typeof s.rpcCode=="number"}const K=-32003;function Ae(s){return!s||typeof s!="object"?!1:s.rpcCode===K}const Ce=x.refine(s=>s.repository.provider==="github"&&s.kind==="pull-request"||s.repository.provider==="gitlab"&&s.kind==="merge-request"),Oe=J([T({state:A(["available","pending","reconnect-required","restricted","disabled","unsupported","unavailable","unknown"])}),T({state:N("backoff"),retryAt:b()}),T({state:N("unresolved"),reason:A(["missing-provenance","unverified-import","invalid-target","missing-authority","unknown"]).catch("unknown")})]).catch({state:"unknown"}),Ne=T({backendId:b().min(1),sessionId:b().min(1),workspaceId:b().min(1)}).strict();function v(s){return typeof s=="number"&&Number.isSafeInteger(s)&&s>=1}function _e(s){if(s.resource||s.monitorAvailability||s.title===null||s.url===null||s.lastSnapshot===null)return!1;const e=s.lastSnapshot;return!e||!e.availability&&e.isDraft!==null&&e.hasConflicts!==null&&e.isBehind!==null&&Object.values(e.checks).every(t=>t!==null)&&e.approvals.decision!==null&&e.approvals.have!==null&&e.approvals.changesRequested!==null}const Ie=new Set(["agent.getConversation","agent.listUserMessages","agent.getMessageBlock","chat.subscribe","chat.unsubscribe"]);class Y{constructor(e,t,i,o,a,d,y){n(this,"ready");n(this,"acknowledged",!1);n(this,"closed",!1);n(this,"id",0);n(this,"pending",new Map);n(this,"listeners",new Set);n(this,"rejectReady");n(this,"timer");this.socket=e,this.currentSource=o,this.timeoutMs=a,this.onFailure=y,this.ready=new Promise((m,r)=>{this.rejectReady=r,e.onopen=()=>{if(!this.current())return this.fail();this.send("client.hello",{clientId:t,connectionRole:"review-monitor",capabilities:{reviewMonitoring:i}}).then(f=>{const c=f;if(!this.current()||c?.clientId!==t||c?.connectionRole!=="review-monitor"||!v(c?.server?.capabilities?.reviewMonitoring))return this.fail();this.acknowledged=!0,clearTimeout(this.timer),m()},()=>this.fail())}}),this.timer=setTimeout(()=>this.fail(),d),e.onerror=()=>this.fail(),e.onclose=()=>this.fail(),e.onmessage=({data:m})=>{if(!this.current()||typeof m!="string")return;let r;try{r=JSON.parse(m)}catch{return}if(!r||typeof r!="object")return;if(typeof r.method=="string"){if(r.id!=null){try{e.send(JSON.stringify({jsonrpc:"2.0",id:r.id,error:{code:-32601,message:"Method not found"}}))}catch{this.fail()}return}if(this.acknowledged)for(const c of[...this.listeners])c({method:r.method,params:r.params});return}if(typeof r.id!="number")return;const f=this.pending.get(r.id);if(f)if(this.pending.delete(r.id),clearTimeout(f.timer),r.error){const c=r.error.data,g=c&&typeof c=="object"&&"code"in c&&typeof c.code=="string"?c.code:"SERVER_ERROR";f.reject(new u({code:g,message:typeof r.error.message=="string"?r.error.message:"Monitor request failed",data:c,rpcCode:typeof r.error.code=="number"?r.error.code:void 0}))}else f.resolve(r.result)}}current(){return!this.closed&&this.currentSource()}onNotification(e){return this.listeners.add(e),()=>this.listeners.delete(e)}request(e,t){return!this.acknowledged||e==="client.hello"?Promise.reject(this.unavailable()):this.send(e,t)}close(){if(this.closed)return;this.closed=!0,this.acknowledged=!1,clearTimeout(this.timer);const e=this.unavailable();this.rejectReady(e);for(const t of this.pending.values())clearTimeout(t.timer),t.reject(e);this.pending.clear(),this.listeners.clear(),this.socket.onopen=this.socket.onmessage=this.socket.onerror=this.socket.onclose=null;try{this.socket.close()}catch{}}fail(){this.closed||(this.close(),this.onFailure())}unavailable(){return new u({code:"PR_MONITOR_SESSION_RETIRED",message:"Monitor attachment unavailable"})}send(e,t){if(!this.current())return Promise.reject(this.unavailable());const i=++this.id;return new Promise((o,a)=>{const d=setTimeout(()=>{this.pending.delete(i),a(new u({code:"TIMEOUT",message:`JSON-RPC request timed out: ${e}`}))},this.timeoutMs);this.pending.set(i,{resolve:o,reject:a,timer:d});try{this.socket.send(JSON.stringify({jsonrpc:"2.0",id:i,method:e,params:t}))}catch{this.fail()}})}}const X=["agentNodes","localNodeIsolation","agentPlatformRouting","workspaceMembershipEvents","rawScreenshotRetention","chiefAttachments","noteTruncatedRead","remoteMachines","remoteInitialAgent","remoteLinkTraffic"];function Q(s){return Object.freeze(Object.fromEntries(X.map(e=>[e,s?.[e]===1?1:0])))}function Z(s){if(!G(s,11,1))throw new Error($.files_secondaryRoot_unsupported_error())}function ee(s,e,t){te(s,e)&&Z(t)}function te(s,e){if(s!=="file.read"&&s!=="file.readChunk")return!1;const t=e?.gitRootId;return typeof t=="string"&&!!t.trim()}const _=-32012,se="system.startupStatus",ne=1e3,L=1e3,F=3e4,w=U().int().nonnegative().max(Number.MAX_SAFE_INTEGER),ie=T({completedNotes:w,totalNotes:w,processedSourceBytes:w,totalSourceBytes:w}).refine(s=>s.completedNotes<=s.totalNotes&&s.processedSourceBytes<=s.totalSourceBytes),oe=T({startupStatus:N(1),daemonVersion:b().min(1).optional(),attemptId:b().min(1),phase:A(["preparing","indexing","finalizing","ready","failed"]),elapsedMs:w,phaseElapsedMs:w,progressAgeMs:w,retryAfterMs:U().int().min(L).max(F).optional(),progress:ie.optional(),estimatedRemainingMs:w.optional(),finalizingStep:A(["anchors","committing","services"]).optional(),failure:T({code:b().min(1),message:b().min(1)}).optional()}).refine(s=>(s.phase==="ready"||s.phase==="failed"?s.retryAfterMs===void 0:s.retryAfterMs!==void 0)&&(s.phase==="finalizing"?s.finalizingStep!==void 0:s.finalizingStep===void 0)&&(s.phase==="failed"?s.failure!==void 0:s.failure===void 0)&&(s.estimatedRemainingMs===void 0||s.phase==="indexing"));function B(s){const e=oe.safeParse(s);return e.success?e.data:null}function P(s){const e=typeof s=="number"&&Number.isFinite(s)?s:ne;return Math.min(F,Math.max(L,e))}function re(s){const e=s;return typeof e.rpcCode=="number"?e.rpcCode:typeof e.code=="number"?e.code:void 0}function q(s){if(!s||typeof s!="object"||re(s)!==_)return;const e=s.data??{},t=B(e.startup);if(e.code==="daemon-startup-failed"){const i=e.startup?.failure?.message,o=s.message;return{kind:"failed",message:typeof i=="string"&&i.trim()?i:typeof o=="string"?o:"",snapshot:t}}if(!(e.code!=="daemon-not-ready"||e.retryable!==!0))return{kind:"not-ready",retryAfterMs:P(e.retryAfterMs),snapshot:t}}function D(s){const e=s.snapshot??void 0;return s.state==="failed"?{code:_,message:"Daemon startup failed",data:{code:"daemon-startup-failed",retryable:!1,startup:e}}:{code:_,message:"Daemon not ready",data:{code:"daemon-not-ready",retryable:!0,retryAfterMs:P(e?.retryAfterMs),startup:e}}}const ae=5e3,ce=5e3,le=3e4;function he(s){const e=s.snapshot;return JSON.stringify([s.state,s.available,e?.attemptId,e?.phase,e?.finalizingStep,e?.progress?.completedNotes,e?.progress?.totalNotes,e?.estimatedRemainingMs===void 0,(e?.progressAgeMs??0)>=le])}class ue{constructor(e){n(this,"generation",0);n(this,"timer",null);n(this,"snapshot",null);n(this,"lastKey",null);n(this,"lastPublishedAt",0);this.host=e}start(e){this.stop(),this.snapshot=e.snapshot??this.snapshot,this.publish({state:"starting",snapshot:this.snapshot,available:e.snapshot!==null},!0),this.schedule(e.retryAfterMs)}stop(){this.generation++,this.timer&&(clearTimeout(this.timer),this.timer=null)}reset(){this.stop(),this.snapshot=null,this.lastKey=null,this.lastPublishedAt=0}publish(e,t=!1){const i=he(e),o=Date.now();!t&&i===this.lastKey&&o-this.lastPublishedAt<ce||(this.lastKey=i,this.lastPublishedAt=o,this.host.publish(e))}schedule(e){const t=this.generation;this.timer=setTimeout(()=>{if(this.timer=null,t!==this.generation)return;const i=()=>this.poll(t);this.host.track?this.host.track(i):i()},e)}async poll(e){let t;try{t=B(await this.host.request())}catch(i){if(e!==this.generation)return;const o=q(i);if(o?.kind==="failed"){this.stop(),this.host.fail(o.message,o.snapshot);return}if(o?.kind==="not-ready"){this.snapshot=o.snapshot??this.snapshot,this.publish({state:"starting",snapshot:this.snapshot,available:o.snapshot!==null}),this.schedule(o.retryAfterMs);return}this.unavailable();return}if(e===this.generation){if(t===null){this.unavailable();return}if(this.snapshot=t,t.phase==="failed"){this.stop(),this.host.fail(t.failure?.message??"",t);return}if(t.phase==="ready"){this.stop(),this.publish({state:"starting",snapshot:t,available:!0},!0),this.host.handoff(!0);return}this.publish({state:"starting",snapshot:t,available:!0}),this.schedule(P(t.retryAfterMs))}}unavailable(){this.stop(),this.publish({state:"starting",snapshot:this.snapshot,available:!1},!0),this.host.handoff(!1)}}function Pe(s=(()=>{const e=globalThis.__INTENT_RUNTIME_CONFIG__;return e?.intentdWsUrl!==void 0?e.intentdWsUrl:typeof process>"u"?void 0:""})()){if(typeof s!="string")return;const e=s.trim();if(!e)return;if(e.startsWith("/")&&!e.startsWith("//")&&!e.includes("\\")){const o=globalThis.location;if(o?.host&&(o.protocol==="http:"||o.protocol==="https:"))return`${o.protocol==="https:"?"wss:":"ws:"}//${o.host}${e}`;console.warn("[browser-websocket-transport] Ignoring same-origin WebSocket path without an HTTP page origin");return}let t;try{t=new URL(e)}catch{console.warn("[browser-websocket-transport] Ignoring browser WebSocket URL: expected ws:// or wss://");return}if(t.protocol!=="ws:"&&t.protocol!=="wss:"){console.warn("[browser-websocket-transport] Ignoring browser WebSocket URL: expected ws:// or wss://");return}const i=t.hostname==="localhost"||t.hostname==="127.0.0.1"||t.hostname==="[::1]";if(t.protocol==="ws:"&&!i){console.warn("[browser-websocket-transport] Ignoring insecure remote WebSocket URL: use wss://");return}return e}function de(s){try{const e=new URL(s);return e.username="",e.password="",e.search="",e.hash="",e.toString()}catch{return s.replace(/[?#].*$/,"").replace(/^([a-z][a-z0-9+.-]*:\/\/)[^/]*@/i,"$1")}}const fe={[-32700]:"PARSE_ERROR",[-32600]:"INVALID_REQUEST",[-32601]:"METHOD_NOT_FOUND",[-32602]:"INVALID_PARAMS",[-32603]:"INTERNAL_ERROR"};function pe(s){const e=fe[s];return e||(s<=-32e3&&s>=-32099?"SERVER_ERROR":"UNKNOWN_ERROR")}function me(s){if(s&&typeof s=="object"&&"code"in s){const e=s.code;if(typeof e=="string"&&e.length>0)return e}}function O(s){const e=me(s.data)??pe(s.code),t=s.data&&typeof s.data=="object"?{...s.data,code:e}:typeof s.data=="string"&&s.data.length>0?{code:e,detail:s.data}:{code:e};return{code:e,message:s.message,data:t,rpcCode:s.code}}function E(s){if(s instanceof u)return s;const e=s instanceof Error?s.message:String(s);return new u({code:"TRANSPORT_ERROR",message:e,data:{code:"TRANSPORT_ERROR"}})}const ge=3e4,ye=1e3,Re=3e4,Se=1e4,be=5e3;class we{constructor(e){n(this,"url");n(this,"webSocketFactory");n(this,"requestTimeoutMs");n(this,"reconnectDelayMs");n(this,"maxReconnectDelayMs");n(this,"connectTimeoutMs");n(this,"socket",null);n(this,"connected",!1);n(this,"connecting",!1);n(this,"disposed",!1);n(this,"requestId",0);n(this,"currentReconnectDelay");n(this,"reconnectTimer",null);n(this,"connectTimer",null);n(this,"connectWaiters",[]);n(this,"clientId");n(this,"helloConfirmed",!1);n(this,"acknowledgedHello",null);n(this,"nodeCapabilities",null);n(this,"capabilityHelloGeneration",0);n(this,"reviewMonitoring");n(this,"reviewMonitoringRecipient");n(this,"reviewMonitoringEnabled",!1);n(this,"ordinaryHello",!1);n(this,"monitorRetry",null);n(this,"monitorRetirements",new Set);n(this,"monitorReady",new Set);n(this,"protocolVersion",null);n(this,"helloError",new u({code:"UNAVAILABLE",message:"client.hello has not completed on this connection"}));n(this,"pending",new Map);n(this,"hasBeenConnected",!1);n(this,"hasConnectionFailed",!1);n(this,"notificationHandlers",new Set);n(this,"reconnectedHandlers",new Set);n(this,"statusHandlers",new Set);n(this,"lastNotifiedStatus","disconnected");n(this,"startupState",null);n(this,"startupSocket",null);n(this,"startupPoller",new ue({request:()=>{const e=this.startupSocket;return e?this.requestOnSocket(se,void 0,{timeoutMs:ae},e):Promise.reject(this.startupRefusal())},publish:e=>this.updateStartup(e),handoff:e=>this.startupHandoff(e),fail:(e,t)=>this.failStartup(e,t)}));n(this,"startupHandlers",new Set);this.reviewMonitoringEnabled=v(e.reviewMonitoring),this.reviewMonitoringRecipient=v(e.reviewMonitoring)?e.reviewMonitoring:void 0,this.url=e.url,this.webSocketFactory=e.webSocketFactory??(t=>new WebSocket(t)),this.requestTimeoutMs=e.requestTimeoutMs??ge,this.reconnectDelayMs=e.reconnectDelayMs??ye,this.maxReconnectDelayMs=e.maxReconnectDelayMs??Re,this.connectTimeoutMs=e.connectTimeoutMs??Se,this.currentReconnectDelay=this.reconnectDelayMs}isAvailable(){return!this.disposed}async readPrincipal(){if(this.disposed)throw new u({code:"UNAVAILABLE",message:"Backend transport disposed"});const e=await this.ensureConnected(),t=this.capabilityHelloGeneration,i=structuredClone(this.acknowledgedHello),o=()=>!this.disposed&&this.connected&&this.socket===e&&this.capabilityHelloGeneration===t&&this.acknowledgedHello!==null;if(!o())throw this.helloError;const a=await this.requestOnSocket("principal.me",{},void 0,e);if(!o())throw new u({code:"UNAVAILABLE",message:"Principal discovery connection changed"});return{hello:i,principal:a}}async observeNodeCapabilities(){if(this.disposed)throw new u({code:"UNAVAILABLE",message:"Backend transport disposed"});const e=await this.ensureConnected();if(this.disposed||!this.connected||this.socket!==e)throw new u({code:"UNAVAILABLE",message:"Backend connection changed"});return{server:{capabilities:this.nodeCapabilities}}}onMonitorReconnected(e){this.monitorReady.add(e);const t=this.onReconnected(e);return()=>{this.monitorReady.delete(e),t()}}prMonitorBackendId(){return de(this.url)}async capturePrMonitorSession(e){const t=await this.ensureConnected(),i=this.capabilityHelloGeneration,o=()=>new u({code:"PR_MONITOR_SESSION_RETIRED",message:"Monitor connection unavailable"});let a,d=!1;const y=new Set,m=new Set,r=()=>{if(!d){d=!0,this.monitorRetirements.delete(r),a?.close();for(const l of y)l();y.clear()}},f=()=>!d&&!this.disposed&&this.connected&&this.helloConfirmed&&this.socket===t&&i===this.capabilityHelloGeneration,c=()=>f()&&(!a||a.current());if(!c())throw o();this.monitorRetirements.add(r);const g=v(this.reviewMonitoring);let M=g?"consumer-pending":"unsupported";if(g&&this.reviewMonitoringEnabled&&this.ordinaryHello&&this.clientId)try{if(a=new Y(this.webSocketFactory(this.url),this.clientId,Math.min(this.reviewMonitoringRecipient,this.reviewMonitoring),f,this.requestTimeoutMs,this.connectTimeoutMs,()=>{const l=f();r(),l&&this.scheduleMonitorRecovery(t,i)}),await a.ready,!c())throw o();M="supported"}catch(l){const p=f();throw r(),p&&this.scheduleMonitorRecovery(t,i),l}const R=(l,p)=>a?a.request(l,p):this.requestOnSocket(l,p,void 0,t);return{origin:{backendId:this.prMonitorBackendId(),sessionId:crypto.randomUUID(),workspaceId:e},support:M,onRetired(l){return c()?(y.add(l),()=>{y.delete(l)}):(l(),()=>{})},onNotification:l=>(a??this).onNotification(p=>{c()&&l(p)}),request:async(l,p)=>{if(!c()||M==="consumer-pending"||p.workspaceId!==e)throw o();const k=await R(l,p),h=l==="events.subscribe"?k?.subscriptionId:void 0;if(!c())throw h&&this.socket===t&&this.connected&&i===this.capabilityHelloGeneration&&R("events.unsubscribe",{workspaceId:e,subscriptionId:h}).catch(()=>{}),o();return h&&m.add(h),l==="events.unsubscribe"&&m.delete(String(p.subscriptionId)),k},release:async()=>{const l=c();r(),l&&!a&&await Promise.all([...m].map(p=>this.requestOnSocket("events.unsubscribe",{workspaceId:e,subscriptionId:p},void 0,t).catch(()=>{})))}}}request(e,t,i){return this.requestOnSocket(e,t,i)}requestOnSocket(e,t,i,o){if(i?.localMachine)return Promise.reject(new u({code:"UNAVAILABLE",message:"Local machine requests require the desktop bridge"}));if(this.disposed)return Promise.reject(new u({code:"UNAVAILABLE",message:"Backend transport disposed"}));if(!o&&this.startupState?.state==="starting")return Promise.reject(new u(O(D(this.startupState))));const a=++this.requestId,d=i?.timeoutMs,y=typeof d=="number"&&Number.isFinite(d)&&d>0?d:this.requestTimeoutMs;return new Promise((m,r)=>{let f=!1;const c=setTimeout(()=>{f=!0,this.pending.delete(a),r(new u({code:"TIMEOUT",message:`JSON-RPC request timed out: ${e}`,data:{code:"TIMEOUT"}}))},y),g=R=>{clearTimeout(c),r(E(R))},M=R=>{if(f)return;if(this.disposed||this.socket!==R){g(new u({code:"TRANSPORT_ERROR",message:"Connection replaced"}));return}if(e==="presence.update"&&!this.helloConfirmed){g(this.helloError);return}try{ee(e,t,this.protocolVersion)}catch(h){g(h);return}let l=e==="client.hello"&&this.clientId?{clientId:this.clientId,...t}:t;if(e==="client.hello"){const h={...l},S={...h.capabilities};Object.prototype.hasOwnProperty.call(S,"reviewMonitoring")&&(this.reviewMonitoringEnabled=this.reviewMonitoringRecipient!==void 0&&v(S.reviewMonitoring)),delete S.reviewMonitoring,delete h.connectionRole,h.capabilities!==void 0&&(h.capabilities=S),l=h}const p=JSON.stringify({jsonrpc:"2.0",id:a,method:e,params:l}),k=e==="client.hello"?++this.capabilityHelloGeneration:0;if(e==="client.hello"){this.helloConfirmed=!1,this.ordinaryHello=!1,this.clearMonitorRecovery(),this.nodeCapabilities=null,this.reviewMonitoring=void 0;for(const h of[...this.monitorRetirements])h();this.acknowledgedHello=null}this.pending.set(a,{method:e,timeout:c,resolve:h=>{if(e==="client.hello"&&this.socket===R&&k===this.capabilityHelloGeneration){const S=h?.clientId;if(typeof S=="string"&&S.length>0){const H=h.server?.capabilities;if(this.clientId=S,this.reviewMonitoring=H?.reviewMonitoring,this.ordinaryHello=h.connectionRole===void 0,this.acknowledgedHello=structuredClone(h),this.nodeCapabilities=Q(H),this.protocolVersion=z(h.protocolVersion),this.helloConfirmed=!0,this.connected)for(const W of this.monitorReady)W()}}m(h)},reject:r});try{R.send(p)}catch(h){clearTimeout(c),this.pending.delete(a),r(E(h))}};o?M(o):this.connected&&this.socket?M(this.socket):this.ensureConnected().then(M,g)})}async subscribe(e){return this.request("events.subscribe",e)}async unsubscribe(e,t){try{await this.request("events.unsubscribe",{subscriptionId:e,...t!==void 0?{workspaceId:t}:{}})}catch{}}onNotification(e){return this.notificationHandlers.add(e),()=>this.notificationHandlers.delete(e)}onReconnected(e){return this.reconnectedHandlers.add(e),()=>this.reconnectedHandlers.delete(e)}getConnectionStatus(){return this.connected?"connected":this.connecting?"connecting":"disconnected"}getStartupState(){return this.startupState}onStartupChange(e){return this.startupHandlers.add(e),()=>this.startupHandlers.delete(e)}onConnectionStatusChange(e){return this.statusHandlers.add(e),()=>this.statusHandlers.delete(e)}dispose(){if(this.disposed)return;this.disposed=!0,this.clearReconnect(),this.clearConnectTimer();const e=new u({code:"UNAVAILABLE",message:"Backend transport disposed"});this.failPending(e),this.failWaiters(e),this.teardownSocket(),this.connected=!1,this.connecting=!1,this.notifyStatusChange(),this.notificationHandlers.clear(),this.reconnectedHandlers.clear(),this.statusHandlers.clear(),this.startupHandlers.clear()}ensureConnected(){return this.connected&&this.socket?Promise.resolve(this.socket):new Promise((e,t)=>{this.connectWaiters.push({resolve:e,reject:t}),this.start()})}start(){this.disposed||this.socket||this.connecting||this.reconnectTimer||this.connect()}connect(){this.clearReconnect(),this.connecting=!0,this.notifyStatusChange();let e;try{e=this.webSocketFactory(this.url)}catch(t){this.connecting=!1,this.onConnectionFailure(E(t));return}this.socket=e,this.helloConfirmed=!1,this.connectTimer=setTimeout(()=>{this.connectTimer=null,!(this.socket!==e||this.connected)&&(this.connecting=!1,this.onConnectionFailure(new u({code:"TRANSPORT_ERROR",message:`WebSocket connect attempt timed out after ${this.connectTimeoutMs}ms`})))},this.connectTimeoutMs),e.onopen=()=>{this.socket===e&&this.onConnected(e)},e.onmessage=t=>{this.socket===e&&this.onMessage(t.data)},e.onerror=null,e.onclose=()=>{this.socket===e&&(this.connecting=!1,this.onConnectionFailure(new u({code:"TRANSPORT_ERROR",message:"WebSocket connection closed"})))}}onConnected(e){this.clearConnectTimer(),this.performHelloHandshake(e)}async performHelloHandshake(e){try{await this.requestOnSocket("client.hello",{},{timeoutMs:Math.min(this.requestTimeoutMs,be)},e)}catch(o){if(this.disposed||this.socket!==e)return;const a=q(o);if(a){this.enterStartup(e,a);return}this.helloError=E(o)}if(this.disposed||this.socket!==e)return;this.startupPoller.reset(),this.startupSocket=null;const t=this.startupState!==null;this.startupState=null,this.connecting=!1,this.connected=!0,this.currentReconnectDelay=this.reconnectDelayMs;const i=this.hasBeenConnected||this.hasConnectionFailed;if(this.hasBeenConnected=!0,this.hasConnectionFailed=!1,this.notifyStatusChange(),t)for(const o of[...this.startupHandlers])o(null);if(this.flushWaiters(e),i)for(const o of[...this.reconnectedHandlers])o()}onConnectionFailure(e){if(this.clearConnectTimer(),!this.disposed){if(this.startupSocket!==null&&this.startupSocket===this.socket){this.startupHandoff(!0);return}this.startupState?.state==="starting"&&(this.startupPoller.reset(),this.updateStartup(null)),this.hasConnectionFailed=!0,this.connected=!1,this.notifyStatusChange(),this.teardownSocket(),this.failPending(e),this.failWaiters(e),this.scheduleReconnect()}}notifyStatusChange(){const e=this.getConnectionStatus();if(e!==this.lastNotifiedStatus){this.lastNotifiedStatus=e;for(const t of[...this.statusHandlers])t(e)}}onMessage(e){if(typeof e!="string")return;let t;try{t=JSON.parse(e)}catch{console.warn("[browser-websocket-transport] Dropping unparseable frame");return}if(!t||typeof t!="object")return;const i=typeof t.method=="string",o=t.id!=null;if(i&&o){this.sendFrame({jsonrpc:"2.0",id:t.id,error:{code:-32601,message:`Method not found: ${String(t.method)}`}});return}if(o){const a=Number(t.id),d=this.pending.get(a);if(!d)return;this.pending.delete(a),clearTimeout(d.timeout),t.error?d.reject(new u(O(t.error))):d.resolve(t.result);return}if(i){const a={method:t.method,params:t.params};for(const d of[...this.notificationHandlers])d(a)}}sendFrame(e){try{this.socket?.send(JSON.stringify(e))}catch{}}scheduleReconnect(){if(this.disposed||this.reconnectTimer)return;const e=this.currentReconnectDelay;this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.currentReconnectDelay=Math.min(e*2,this.maxReconnectDelayMs),this.disposed||this.connect()},e)}clearReconnect(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}clearConnectTimer(){this.connectTimer&&(clearTimeout(this.connectTimer),this.connectTimer=null)}scheduleMonitorRecovery(e,t){this.monitorRetry||this.disposed||(this.monitorRetry=setTimeout(()=>{if(this.monitorRetry=null,!this.disposed&&this.connected&&this.socket===e&&this.capabilityHelloGeneration===t)for(const i of[...this.monitorReady])i()},this.reconnectDelayMs))}clearMonitorRecovery(){this.monitorRetry&&clearTimeout(this.monitorRetry),this.monitorRetry=null}teardownSocket(){this.startupPoller.stop(),this.startupSocket=null,this.reviewMonitoring=void 0,this.clearMonitorRecovery();for(const t of[...this.monitorRetirements])t();if(this.acknowledgedHello=null,this.nodeCapabilities=null,this.capabilityHelloGeneration+=1,this.protocolVersion=null,!this.socket)return;const e=this.socket;this.socket=null,e.onopen=null,e.onmessage=null,e.onerror=null,e.onclose=null;try{e.close()}catch{}}updateStartup(e){this.startupState=e?Object.freeze({...e}):null;for(const t of[...this.startupHandlers])t(this.startupState)}startupRefusal(){return this.startupState?new u(O(D(this.startupState))):new u({code:"TRANSPORT_ERROR",message:"WebSocket connection closed"})}enterStartup(e,t){if(this.hasConnectionFailed=!0,t.kind==="failed"){this.failStartup(t.message,t.snapshot);return}this.startupSocket=e,this.startupPoller.start(t),this.failWaiters(this.startupRefusal())}startupHandoff(e){const t=this.startupRefusal();if(this.teardownSocket(),this.failPending(t),this.disposed)return;this.connecting=!0,this.notifyStatusChange(),this.clearReconnect();let i=this.reconnectDelayMs;e?this.currentReconnectDelay=this.reconnectDelayMs:(i=this.currentReconnectDelay,this.currentReconnectDelay=Math.min(i*2,this.maxReconnectDelayMs)),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.disposed||this.connect()},i)}failStartup(e,t){this.startupPoller.stop(),this.startupSocket=null,this.hasConnectionFailed=!0,this.updateStartup({state:"failed",snapshot:t,available:t!==null,message:e}),this.connecting=!1,this.onConnectionFailure(this.startupRefusal())}failPending(e){for(const t of this.pending.values())clearTimeout(t.timeout),t.reject(e);this.pending.clear()}flushWaiters(e){const t=this.connectWaiters;this.connectWaiters=[];for(const i of t)i.resolve(e)}failWaiters(e){const t=this.connectWaiters;this.connectWaiters=[];for(const i of t)i.reject(e)}}function He(s){return new we(s)}let C=null;const I=new Set;function De(s){C=s;for(const e of[...I])e(s)}function Ue(){return C}function Le(s){return I.add(s),C&&s(C),()=>I.delete(s)}export{u as B,Oe as M,Ne as P,Ie as R,Ce as a,Ae as b,He as c,_e as d,Pe as e,v as f,Ue as g,Ee as i,Le as o,De as r,de as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as L,j as W}from"./
|
|
1
|
+
import{s as L,j as W}from"./CjVTzfqV.js";import{t as R,bq as h,bt as C,by as I,br as M,b as $}from"./COCO5InB.js";import{bs as F,a7 as P,ay as E,aD as O,W as j,bn as A,aA as y,c9 as D}from"./B8o4lNgr.js";import{c as H}from"./oALOmsvi.js";import{f as T,p as U}from"./Crs9I2MT.js";import{S as q}from"./3QmaYnff.js";const ee=(e,a={})=>{let n=a?.fadeSize??24,r=a?.axis??"y",s=a?.enabled??!0,u=!1,l,i,c=!1,t,o,m;function f(){const p=r==="y"?e.scrollTop:e.scrollLeft,b=r==="y"?e.clientHeight:e.clientWidth,z=r==="y"?e.scrollHeight:e.scrollWidth,w=p>2,_=p+b<z-2,S=w?n:0,k=_?n:0,g=S===0&&k===0?"":`linear-gradient(${r==="y"?"to bottom":"to right"}, transparent, black ${S}px, black calc(100% - ${k}px), transparent)`;g!==m&&(m=g,o?.(),o=W(()=>{o=void 0,e.style.maskImage=g}))}function d(){c||(c=!0,t=L(()=>{c=!1,s&&f()}))}function v(){u&&e.removeEventListener("scroll",d),u=!1,l?.disconnect(),l=void 0,i?.disconnect(),i=void 0,t?.(),t=void 0,o?.(),o=void 0,c=!1,m=void 0,e.style.maskImage=""}function x(){v(),s&&(d(),e.addEventListener("scroll",d,{passive:!0}),u=!0,l=typeof ResizeObserver>"u"?void 0:new ResizeObserver(d),l?.observe(e),i=new MutationObserver(d),i.observe(e,{childList:!0,subtree:!0}))}return x(),{update(p){const b=s;n=p?.fadeSize??24,r=p?.axis??"y",s=p?.enabled??!0,s?b?d():x():v()},destroy:v}};var B=new Set(["$$slots","$$events","$$legacy","ref","class","data-slot"]);function G(e,a){if(new.target)return R({component:G,...e});F(a,!0);let n=h(a,"ref",15,null),r=h(a,"class",7),s=h(a,"data-slot",7,"separator"),u=M(a,B);var l={get ref(){return n()},set ref(t=null){n(t),y()},get class(){return r()},set class(t){r(t),y()},get"data-slot"(){return s()},set"data-slot"(t="separator"){s(t),y()},$set:I,$on:(t,o)=>$(a,t,o)},i=P(),c=E(i);{let t=D(()=>T("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",r()));H(c,()=>q,(o,m)=>{m(o,C({get"data-slot"(){return s()},get class(){return O(t)}},()=>u,{get ref(){return n()},set ref(f){n(f)}}))})}return j(e,i),A(l)}const N=[{id:"separator-state-matrix",title:"Separator states",states:["horizontal","vertical","decorative","semantic","compact","zoom-200","light","dark"],themes:["light","dark","high-contrast"],viewport:"both"}];U({id:"separator",source:"src/lib/components/ui/separator/separator.svelte",publicImport:"$lib/components/ui/separator",legacyImports:["$lib/components/ui/separator/index.js"],exports:["Root","Separator","separatorMetadata"],category:"primitive",owner:"design-system",callers:["src/features/discussions/components/DiscussionMentionPicker.svelte","src/features/workspace-sharing/components/WorkspaceSharingSetup.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/components/file-explorer/file-explorer-layout.svelte","src/lib/components/ui/sidebar/sidebar-separator.svelte","src/lib/components/workspace/WorkspaceAgentsList.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/separator/separator.test.ts",removalGate:"Retain while exported and orientation, semantic, and fixture tests pass.",dynamicImports:[],fixtures:N});export{G as S,ee as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as a,C as n}from"./BHwB2t2J.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as t,a,s as r,S as s}from"./
|
|
1
|
+
import{b as t,a,s as r,S as s}from"./Uvf94Vit.js";import{a as i}from"./DU5u4CoB.js";import"./BHwB2t2J.js";import"./4LCvEsVS.js";var u={parser:r,get db(){return new s(2)},renderer:a,styles:t,init:i(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{u as diagram};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{t as D,bq as d,a_ as P,by as b,b as S}from"./
|
|
1
|
+
import{t as D,bq as d,a_ as P,by as b,b as S}from"./COCO5InB.js";import{bs as A,a7 as C,ay as M,W as N,bn as $,aA as m,aD as i,c9 as c}from"./B8o4lNgr.js";import{D as f,M as x}from"./BHwB2t2J.js";import{S as z,p as B}from"./DAPK9slU.js";import{N as W}from"./D6eVIgjz.js";import{G2 as j,tf as E,b9 as J}from"./BjFoJgFv.js";import{N as K}from"./172GvQgx.js";import{$ as O}from"./DUT4V6mb.js";function R(l,s){if(new.target)return D({component:R,...l});A(s,!0);let o=d(s,"kind",7),t=d(s,"source",7),a=d(s,"workspaceId",7);const g=new W,p=c(()=>{if(o()==="mermaid")return null;const e=g.parseMarkdown(`\`\`\`ws-block:diagram
|
|
2
2
|
${t()}
|
|
3
3
|
\`\`\``)[0],r=e?.primitive.type==="diagram"?JSON.stringify(e.primitive):t();return B(r,!0)});function k(e,r){if(!a()||!r.target)return;const n={openInAdjacentPanel:e.metaKey||e.ctrlKey,sourcePanelId:e.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0};r.type==="file"?j.dispatch(E(a(),r.target,n)):r.type==="note"&&K(O(r.target,a()),{...n,workspaceId:J(a()),event:e})}var w={get kind(){return o()},set kind(e){o(e),m()},get source(){return t()},set source(e){t(e),m()},get workspaceId(){return a()},set workspaceId(e){a(e),m()},$set:b,$on:(e,r)=>S(s,e,r)},u=C(),y=M(u);{var I=e=>{f(e,{kind:"mermaid",rendererOwnsActions:!0,children:(r,n)=>{x(r,{get code(){return t()},showExportButton:!0})},$$slots:{default:!0}})},_=e=>{f(e,{kind:"custom",children:(r,n)=>{{let h=c(()=>i(p)?.diagram??null),v=c(()=>i(p)?.error);z(r,{get diagram(){return i(h)},get source(){return t()},get sourceError(){return i(v)},onBindingClick:k})}},$$slots:{default:!0}})};P(y,e=>{o()==="mermaid"?e(I):e(_,-1)})}return N(l,u),$(w)}export{R as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as pt,bq as S,a_ as q,by as bt,bs as Pt,b as Ct,bo as vt,bu as h}from"./
|
|
1
|
+
import{t as pt,bq as S,a_ as q,by as bt,bs as Pt,b as Ct,bo as vt,bu as h}from"./COCO5InB.js";import{bs as $t,ca as E,aD as n,c9 as i,a7 as L,ay as _,W as w,bn as kt,bS as yt,aA as B,aB as St}from"./B8o4lNgr.js";import{B as _t}from"./Cdhgfy6h.js";import{c as wt}from"./oALOmsvi.js";import{aU as Bt}from"./BCYRUItZ.js";import{G2 as u,ei as It,ej as Ut,Gz as Wt,GN as Rt,GE as Tt,t3 as Dt,mZ as V}from"./BjFoJgFv.js";import{g as At}from"./CoSk1zgY.js";import{bx as Ft,bz as Ht,dj as xt}from"./DUT4V6mb.js";import{C as f}from"./DypB-Dwi.js";import"./3sa2ZSPC.js";import"./Crs9I2MT.js";import"./Dck4Okga.js";import{bb as Mt}from"./BDq7EC2K.js";import"./C5Xi5eLp.js";import"./172GvQgx.js";import{T as Nt}from"./oTkHTTGI.js";import"./1jz3AJ7K.js";import{M as Gt}from"./CpWqDujk.js";import{V as qt}from"./DQPsLJmj.js";import{O as Et}from"./Bn4hj7HG.js";import{bC as Lt,bA as Vt,aX as jt}from"./D6eVIgjz.js";import{i as zt}from"./H2jLkRRS.js";var Kt=St("<!> <!>",1);function Ot(I,p){if(new.target)return pt({component:Ot,...I});$t(p,!0);const U=()=>h(et,"$workspace",l),P=()=>h(Q,"$ftChanges$",l),j=()=>h(Y,"$ftCommits$",l),W=()=>h(Z,"$foldUnchanged",l),R=()=>h(X,"$lineWrapping",l),T=()=>h(J,"$diffSideBySide",l),[l,z]=Pt(),K=t=>{qt(t,{embedded:!0,get foldEnabled(){return W()},onToggleFold:()=>u.dispatch(Tt()),get wrapEnabled(){return R()},onToggleWrap:()=>u.dispatch(Rt()),get splitEnabled(){return T()},onToggleSplit:()=>u.dispatch(Wt())})},O=t=>{var e=Kt(),r=_(e);{let m=i(()=>vt.layout_diffHeader_goToFile_tooltip());wt(r,()=>Gt,(y,ht)=>{ht(y,{get icon(){return Mt},get label(){return n(m)},onclick:Xt=>ft()})})}var s=yt(r,2);{var d=m=>{Et(m,{get filePath(){return n($)},get workspaceId(){return o()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return n(v)}})};q(s,m=>{n($)&&m(d)})}w(t,e)},X=Lt(),Z=Vt(),J=jt();let a=S(p,"tab",7),o=S(p,"workspaceId",7),b=S(p,"isActive",7);const C=Bt(()=>o()),Q=Ft(C),Y=Ht(C),tt=new Set([f.Committed,f.Pushed,f.PullRequest,f.Merged,f.Trunk]),D=At(),et=xt(C),nt=i(()=>U()?.worktreePath||U()?.repositoryPath||void 0);E(()=>{const t=o();if(!(!b()||!t||n(c)))return u.dispatch(It(t,"all")),()=>u.dispatch(Ut(t,"all"))});const c=i(()=>a().data?.gitRootId),A=i(()=>a().data?.gitRootPath),v=i(()=>n(A)||n(nt)),$=i(()=>a().diffPath&&n(v)?zt(a().diffPath)?a().diffPath:`${n(v)}/${a().diffPath}`:null);function F(t,e){return!!(t.file===e||t.relativePath===e||t.relativePath&&e.endsWith("/"+t.relativePath)||t.file&&e.endsWith("/"+t.file)||t.relativePath&&t.relativePath.endsWith("/"+e)||t.file&&t.file.endsWith("/"+e))}function H(t){return!t||n(c)?null:P().find(e=>F(e,t)&&(e.stage==="staged"||e.stage==="unstaged"))??null}function at(t){if(!t||n(c))return null;let e=null,r=-1/0;for(const s of P()){if(!F(s,t)||!tt.has(s.stage)||!s.commitHash)continue;const d=s.attribution?.timestamp??0;d>=r&&(e=s,r=d)}return e}function it(t,e){return!!(t===e||e.endsWith("/"+t)||t.endsWith("/"+e))}function rt(t){if(!t||n(c))return null;for(const e of j())if(e?.hash&&e.files?.some(r=>r?.path&&it(r.path,t)))return{id:`diff-${t}-${e.hash}`,file:t,relativePath:t,status:"modified",stage:f.Committed,commitHash:e.hash,stats:{additions:0,deletions:0},attribution:{timestamp:e.timestamp??Date.now()}};return null}const x=i(()=>a().diffPath?H(a().diffPath):null),st=i(()=>{if(!a().diffPath)return 0;const t=H(a().diffPath),e=P().length;if(t){const r=t.stage==="staged"?1:t.stage==="unstaged"?2:3,s=(t.stats?.additions||0)+(t.stats?.deletions||0),d=t.attribution?.timestamp?t.attribution.timestamp%1e5:0;return r*1e6+s*1e3+d+e}return e}),g=i(()=>a().data?.change),M=i(()=>a().data?.branchBaseRef),N=i(()=>a().data?.branchBaseCommitSha),ot=i(()=>!!(n(M)||n(N))),k=i(()=>{if(n(g)?.commitHash)return n(g);if(n(x))return n(x);if(n(ot)&&n(g))return n(g);const t=at(a().diffPath??null);if(t)return t;const e=rt(a().diffPath??null);return e||(n(g)?n(g):{id:`diff-${a().diffPath}`,file:a().diffPath||"",relativePath:a().diffPath||"",status:"modified",stage:f.Unstaged,stats:{additions:0,deletions:0},attribution:{timestamp:Date.now()}})});function ft(t){if(!a().diffPath)return;const r={type:"file",title:a().diffPath.split("/").pop()||a().diffPath,closable:!0,filePath:n($)||a().diffPath,workspaceId:o()};u.dispatch(Dt(o(),r))}E(()=>{!D||!b()||D.registerActions({display:K,actions:O})});function dt(t,e){u.dispatch(V(o(),crypto.randomUUID(),{kind:"stageHunk",filePath:t,hunkPatch:e,source:"diff"}))}function ut(t,e){u.dispatch(V(o(),crypto.randomUUID(),{kind:"unstageHunk",filePath:t,hunkPatch:e,source:"diff"}))}var ct={get tab(){return a()},set tab(t){a(t),B()},get workspaceId(){return o()},set workspaceId(t){o(t),B()},get isActive(){return b()},set isActive(t){b(t),B()},$set:bt,$on:(t,e)=>Ct(p,t,e)},G=L(),mt=_(G);{var lt=t=>{var e=L(),r=_(e);_t(r,()=>a().diffPath,s=>{{let d=i(()=>T()?"split":"unified"),m=i(()=>!n(c)&&n(k).stage===f.Unstaged?dt:void 0),y=i(()=>!n(c)&&n(k).stage===f.Staged?ut:void 0);Nt(s,{get active(){return b()},get change(){return n(k)},get workspaceId(){return o()},get viewMode(){return n(d)},get foldUnchanged(){return W()},get lineWrapping(){return R()},get refreshKey(){return n(st)},get branchBaseRef(){return n(M)},get branchBaseCommitSha(){return n(N)},get gitRootId(){return n(c)},get gitRootPath(){return n(A)},get onStageHunk(){return n(m)},get onUnstageHunk(){return n(y)}})}}),w(t,e)};q(mt,t=>{a().diffPath&&t(lt)})}w(I,G);var gt=kt(ct);return z(),gt}export{Ot as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as t}from"./CpW6JN4X.js";import{G2 as r}from"./BjFoJgFv.js";import{bs as o}from"./BUVaYTVI.js";function a(e){return!e||t().status!=="connected"?null:o.select(r.state,e)}export{a as resolveConnectedWorkspaceKeySlot};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bo as b,t as wt,bq as H,a_ as D,by as Tt,bs as xt,b as kt,bu as N}from"./
|
|
1
|
+
import{bo as b,t as wt,bq as H,a_ as D,by as Tt,bs as xt,b as kt,bu as N}from"./COCO5InB.js";import{bs as It,ca as K,aD as t,a7 as At,ay as Q,W as w,bn as Pt,bS as F,c9 as f,aA as M,aB as x,a5 as I,bA as A,bl as P,b_ as B,bO as S}from"./B8o4lNgr.js";import{B as St}from"./Cdhgfy6h.js";import{c as Wt}from"./oALOmsvi.js";import{C as q}from"./DypB-Dwi.js";import{L as $t}from"./D8dE5NKO.js";import"./3sa2ZSPC.js";import"./Crs9I2MT.js";import"./Dck4Okga.js";import{bb as Dt}from"./BDq7EC2K.js";import"./C5Xi5eLp.js";import"./172GvQgx.js";import{G2 as E,Gz as Nt,GN as Ft,GE as Bt,t3 as Et}from"./BjFoJgFv.js";import{T as Lt}from"./oTkHTTGI.js";import{g as Ut}from"./CoSk1zgY.js";import{dj as Ot}from"./DUT4V6mb.js";import{bC as jt,bA as Gt,aX as Ht}from"./D6eVIgjz.js";import"./1jz3AJ7K.js";import{M as Mt}from"./CpWqDujk.js";import{V as Vt}from"./DQPsLJmj.js";import{O as qt}from"./Bn4hj7HG.js";import{c as Rt}from"./ChTqQfQN.js";import{i as zt}from"./H2jLkRRS.js";const T=new $t({category:"change-converters"});function V(e,n){return e.path||e.file||e.filePath||e.relativePath||n?.filePath}function Y(e,n){return{additions:e.additions??n?.additions??0,deletions:e.deletions??n?.deletions??0,binary:e.binary??!1}}function Xt(e,n){if(n.actor?.type==="agent"&&n.actor.id){const r=n.actor;return{agentId:r.id,agentName:r.name||b.fileTracking_changeTimeline_agent_fallback(),sessionId:r.sessionId||e.sessionId||"",turnNumber:r.turnNumber??e.turnNumber??0,messageId:r.messageId,timestamp:new Date(n.timestamp).getTime()}}if(e.agentId)return{agentId:e.agentId,agentName:e.agentName||b.fileTracking_changeTimeline_agent_fallback(),sessionId:e.sessionId||"",turnNumber:e.turnNumber||0,timestamp:new Date(n.timestamp).getTime()}}function Z(e,n){return{timestamp:new Date(e.timestamp).getTime(),manual:e.actor?.type==="user",agent:Xt(n,e)}}function tt(e,n){return{oldContent:n?.oldContent??e.oldContent,newContent:n?.newContent??e.newContent,diff:e.diff??n?.diff}}function et(e,n,r){return r!==void 0?`${e}-${n}-${r}`:`${e}-${n}`}function Jt(e){try{const n=e.data||{},r=e.codeChange;T.debug("Converting event to TrackedChange",{eventType:e.type,eventId:e.id,hasData:!!n,hasCodeChange:!!r});const c=V(n,r);if(e.type.startsWith("file:")&&c){const d=Y(n,r);return T.debug("Creating TrackedChange for file event",{filePath:c,stats:d,hasDiff:!!(n.diff||r?.diff)}),[{id:et("event",e.id),file:c,relativePath:c,stage:q.Unstaged,stats:d,attribution:Z(e,n),content:tt(n,r)}]}return(e.type==="agent:completed"||e.type.startsWith("agent:"))&&n.fileChanges&&Array.isArray(n.fileChanges)?(T.debug("Creating TrackedChanges for agent event",{eventType:e.type,fileChangesCount:n.fileChanges.length,agentId:n.agentId}),n.fileChanges.filter(d=>V(d)?!0:(T.warn("Skipping file change without path",{change:d}),!1)).map((d,s)=>{const v=V(d);if(!v)throw new Error("file change without path");return{id:et("event",e.id,s),file:v,relativePath:v,stage:q.Unstaged,stats:Y(d),attribution:Z(e,n),content:tt(d)}})):(T.debug("No TrackedChanges created for event",{eventType:e.type,eventId:e.id,hasFilePath:!!c,hasFileChanges:!!(n.fileChanges&&Array.isArray(n.fileChanges))}),[])}catch(n){return T.error("Error converting event to TrackedChange",n instanceof Error?n:new Error(String(n)),{eventType:e.type,eventId:e.id}),[]}}function Kt(e){if(!e)return{oldContent:"",newContent:""};const n=[],r=[],c=e.split(`
|
|
2
2
|
`);c.length>0&&c[c.length-1]===""&&c.pop();let d=!1;for(const s of c)if(!(s.startsWith("diff --git")||s.startsWith("index ")||s.startsWith("--- ")||s.startsWith("+++ ")||s.startsWith("\"))){if(s.startsWith("@@")){d=!0;continue}d&&(s.startsWith("+")?r.push(s.slice(1)):s.startsWith("-")?n.push(s.slice(1)):s.startsWith(" ")?(n.push(s.slice(1)),r.push(s.slice(1))):s===""&&(n.push(""),r.push("")))}return{oldContent:n.join(`
|
|
3
3
|
`),newContent:r.join(`
|
|
4
4
|
`)}}var Qt=x("<!> <!>",1),Yt=x('<div class="flex items-center gap-1.5 px-3 py-1.5 text-xs text-subtle bg-muted/50 border-b border-border"><span> </span></div>'),Zt=x('<div class="flex flex-col h-full"><!> <div class="flex-1 min-h-0"><!></div></div>'),te=x('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p> <p class="text-xs opacity-70"> </p></div>'),ee=x('<p class="text-xs opacity-70"> </p>'),ne=x('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p> <!></div>');function ae(e,n){if(new.target)return wt({component:ae,...e});It(n,!0);const r=()=>N(lt,"$workspace",v),c=()=>N(st,"$foldUnchanged",v),d=()=>N(rt,"$lineWrapping",v),s=()=>N(ot,"$diffSideBySide",v),[v,nt]=xt(),at=a=>{Vt(a,{embedded:!0,get foldEnabled(){return c()},onToggleFold:()=>E.dispatch(Bt()),get wrapEnabled(){return d()},onToggleWrap:()=>E.dispatch(Ft()),get splitEnabled(){return s()},onToggleSplit:()=>E.dispatch(Nt())})},it=a=>{var i=Qt(),g=Q(i);{let m=f(()=>b.layout_diffHeader_goToFile_tooltip());Wt(g,()=>Mt,(l,h)=>{h(l,{get icon(){return Dt},get label(){return t(m)},onclick:$=>ut()})})}var C=F(g,2);{var y=m=>{qt(m,{get filePath(){return t(z)},get workspaceId(){return _()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return t(O)}})};D(C,m=>{t(z)&&m(y)})}w(a,i)},rt=jt(),st=Gt(),ot=Ht(),dt=Rt("ActivityChangesTabType");let L=H(n,"tab",7),_=H(n,"workspaceId",7),U=H(n,"isActive",7);const R=Ut(),lt=Ot(_()),O=f(()=>r()?.worktreePath||r()?.repositoryPath||void 0),o=f(()=>L().data?.event),ct=f(()=>t(o)?Jt(t(o)):[]),u=f(()=>t(ct)[0]),p=f(()=>t(u)?.relativePath||t(u)?.file||null),z=f(()=>t(p)&&t(O)?zt(t(p))?t(p):`${t(O)}/${t(p)}`:null),j=f(()=>()=>{if(!t(o))return null;const a=t(o).data,i=t(o).codeChange;return a?.diff||i?.diff||t(u)?.content?.diff||null}),X=f(()=>()=>t(u)?.content?!!(t(u).content.oldContent&&t(u).content.newContent):!1);function ft(a){if(!a)return;const i=a.match(/@@ -(\d+)/);return i?parseInt(i[1],10):void 0}const k=f(()=>{if(t(X)()&&t(u)?.content)return{oldContent:t(u).content.oldContent??"",newContent:t(u).content.newContent??""};const a=t(j)();return a?Kt(a):null}),W=f(()=>ft(t(j)())),pt=f(()=>t(W)!==void 0&&t(W)>1),gt=f(()=>{const a=t(p)||"",i=t(o)?.data||{};return{id:`activity-${t(o)?.id||"unknown"}-${a}`,file:a,relativePath:a,stage:q.Committed,status:t(u)?.status||"modified",stats:{additions:i?.additions||t(u)?.stats?.additions||0,deletions:i?.deletions||t(u)?.stats?.deletions||0},attribution:{timestamp:t(o)?.timestamp?new Date(t(o).timestamp).getTime():Date.now()},content:t(k)?{oldContent:t(k).oldContent,newContent:t(k).newContent}:void 0}});function ut(a){if(!t(p))return;const g={type:"file",title:t(p).split("/").pop()||t(p),closable:!0,filePath:t(p),workspaceId:_()};E.dispatch(Et(_(),g))}K(()=>{!R||!U()||R.registerActions({display:at,actions:it})}),K(()=>{if(t(o)){const a=t(o).data;dt.debug("Activity event diff info",{eventType:t(o).type,eventId:t(o).id,filePath:t(p),hasDiffString:!!t(j)(),hasOldNewContent:t(X)(),hasDiffContents:!!t(k),dataAdditions:a?.additions,dataDeletions:a?.deletions})}});var ht={get tab(){return L()},set tab(a){L(a),M()},get workspaceId(){return _()},set workspaceId(a){_(a),M()},get isActive(){return U()},set isActive(a){U(a),M()},$set:Tt,$on:(a,i)=>kt(n,a,i)},J=At(),mt=Q(J);{var vt=a=>{var i=Zt(),g=I(i);{var C=l=>{var h=Yt(),$=I(h),G=P($,!0);A(h),B(_t=>S(G,_t),[()=>b.layout_activityChanges_partialDiff_label({line:t(W)??0})]),w(l,h)};D(g,l=>{t(pt)&&l(C)})}var y=F(g,2),m=I(y);St(m,()=>`${t(o)?.id}-${t(p)}`,l=>{{let h=f(()=>s()?"split":"unified");Lt(l,{get change(){return t(gt)},get workspaceId(){return _()},get viewMode(){return t(h)},get foldUnchanged(){return c()},get lineWrapping(){return d()},get lineOffset(){return t(W)}})}}),A(y),A(i),w(a,i)},Ct=a=>{var i=te(),g=I(i),C=P(g,!0),y=F(g,2),m=P(y,!0);A(i),B((l,h)=>{S(C,l),S(m,h)},[()=>b.layout_activityChanges_noDiffStored_label(),()=>b.layout_activityChanges_diffNotCaptured_description()]),w(a,i)},yt=a=>{var i=ne(),g=I(i),C=P(g,!0),y=F(g,2);{var m=l=>{var h=ee(),$=P(h,!0);B(G=>S($,G),[()=>b.layout_activityChanges_eventType_label({type:t(o).type})]),w(l,h)};D(y,l=>{t(o)&&l(m)})}A(i),B(l=>S(C,l),[()=>b.layout_activityChanges_noChanges_label()]),w(a,i)};D(mt,a=>{t(p)&&t(k)?a(vt):t(p)?a(Ct,1):a(yt,-1)})}w(e,J);var bt=Pt(ht);return nt(),bt}export{ae as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as ht,bq as g,bo as m,a_ as p,by as bt,b as xt}from"./
|
|
1
|
+
import{t as ht,bq as g,bo as m,a_ as p,by as bt,b as xt}from"./COCO5InB.js";import{bs as yt,a7 as kt,ay as Q,W as u,bn as At,aA as h,a5 as F,bS as f,bl as S,bA as W,aD as e,b_ as D,bO as x,aB as k,bH as et,c9 as y,bV as at,be as wt,b$ as Ct}from"./B8o4lNgr.js";import{I as It,h as Bt}from"./Crs9I2MT.js";import{H as Pt,C as zt}from"./Bqoyy9yx.js";import{f as M}from"./C5Xi5eLp.js";import"./Dck4Okga.js";import{F as rt,c5 as Rt,cg as St,ar as Wt}from"./BDq7EC2K.js";import{e as Dt}from"./172GvQgx.js";import{D as Ht}from"./3sa2ZSPC.js";import{G2 as Lt,sA as $t}from"./BjFoJgFv.js";import{g as Nt}from"./C5E1PJb6.js";var qt=k('<span class="type-caption shrink-0 font-medium text-success"> </span>'),Ft=k('<!> <span class="type-body flex-1 truncate text-left font-medium text-foreground"> </span> <span class="type-caption shrink-0 tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span> <!>',1),Mt=k("<!> ",1),Ot=k('<div class="mb-2 flex gap-1"></div>'),Vt=k('<div class="border-t border-border p-2"><!> <!></div>'),jt=k('<div class="ws-block-widget type-body my-2 overflow-hidden rounded-md border border-border bg-card text-foreground shadow-(--elevation-raised)"><div class="flex min-h-9 items-center gap-2 px-3 py-1.5"><!> <!> <!></div> <!></div>'),Et=k('<div class="ws-block-widget type-caption my-2 text-muted-foreground"> </div>');function Gt(U,n){if(new.target)return ht({component:Gt,...U});yt(n,!0);let A=g(n,"patches",7),O=g(n,"label",23,()=>m.ui_patchBlock_label()),V=g(n,"lastApply",7),w=g(n,"linkedAgentId",7),H=g(n,"workspaceId",7),P=g(n,"applying",7,!1),L=g(n,"onApply",7),$=g(n,"onRevert",7),j=at(!1),E=at(0),z=y(()=>A()?.[e(E)]),G=y(()=>V()?.status==="success");function st(t){const o=t.split(`
|
|
2
2
|
`);let v=0,b=0;for(const C of o)C.startsWith("+")&&!C.startsWith("+++")?v++:C.startsWith("-")&&!C.startsWith("---")&&b++;return{addCount:v,removeCount:b}}let X=y(()=>e(z)?st(e(z).diff):{addCount:0,removeCount:0}),T=y(()=>P()?{label:m.ui_patchBlock_applying_label(),icon:null}:e(G)?{label:m.ui_patchBlock_revert_label(),icon:St}:{label:m.ui_patchBlock_apply_label(),icon:Wt}),nt=y(()=>!!(L()||$()));function ot(){et(j,!e(j))}function lt(){e(G)?$()?.():L()?.()}var it={get patches(){return A()},set patches(t){A(t),h()},get label(){return O()},set label(t=m.ui_patchBlock_label()){O(t),h()},get lastApply(){return V()},set lastApply(t){V(t),h()},get linkedAgentId(){return w()},set linkedAgentId(t){w(t),h()},get workspaceId(){return H()},set workspaceId(t){H(t),h()},get applying(){return P()},set applying(t=!1){P(t),h()},get onApply(){return L()},set onApply(t){L(t),h()},get onRevert(){return $()},set onRevert(t){$(t),h()},$set:bt,$on:(t,o)=>xt(n,t,o)},Y=kt(),ct=Q(Y);{var dt=t=>{var o=jt(),v=F(o),b=F(v);{var C=a=>{{let c=y(()=>m.ui_patchBlock_viewAgent_tooltip());M(a,{variant:"plain",size:"icon-compact",iconOnly:!0,class:"size-4! shrink-0 rounded-sm! transition-opacity hover:opacity-80",onclick:l=>{H()&&Lt.dispatch($t(H(),{agentId:w(),...Nt(l)}))},get title(){return e(c)},children:(l,_)=>{Dt(l,{get agentId(){return w()},variant:"compact"})},$$slots:{default:!0}})}};p(b,a=>{w()&&a(C)})}var Z=f(b,2);M(Z,{variant:"plain",size:"compact",class:"h-auto! min-w-0 flex-1 shrink items-center justify-start gap-2 px-0! py-0! text-muted-foreground transition-colors hover:text-foreground",truncateLabel:!1,labelClass:"flex min-w-0 flex-1 items-center gap-2",onclick:ot,children:(a,c)=>{var l=Ft(),_=Q(l);{var I=i=>{rt(i,{get icon(){return Rt},size:10,class:"text-muted-foreground"})};p(_,i=>{w()||i(I)})}var B=f(_,2),s=S(B,!0),d=f(B,2),r=F(d),R=S(r),N=f(r,2),J=S(N);W(d);var K=f(d,2);{var tt=i=>{var q=qt(),gt=S(q,!0);D(mt=>x(gt,mt),[()=>m.ui_patchBlock_applied_label()]),u(i,q)};p(K,i=>{e(G)&&i(tt)})}D(()=>{x(s,O()),x(R,`+${e(X).addCount??""}`),x(J,`-${e(X).removeCount??""}`)}),u(a,l)},$$slots:{default:!0}});var ut=f(Z,2);{var ft=a=>{M(a,{variant:"ghost-light",size:"sm",class:"type-caption shrink-0",onclick:lt,get disabled(){return P()},children:(c,l)=>{var _=Mt(),I=Q(_);{var B=r=>{It(r,{size:12})},s=r=>{rt(r,{get icon(){return e(T).icon},size:"xs"})};p(I,r=>{P()?r(B):e(T).icon&&r(s,1)})}var d=f(I);D(()=>x(d,` ${e(T).label??""}`)),u(c,_)},$$slots:{default:!0}})};p(ut,a=>{e(nt)&&a(ft)})}W(v);var vt=f(v,2);{var _t=a=>{var c=Vt(),l=F(c);{var _=s=>{var d=Ot();Bt(d,23,A,(r,R)=>`patch-${R}-${r.filePath}`,(r,R,N)=>{{let J=y(()=>e(N)===e(E)?"default":"ghost-light");M(r,{get variant(){return e(J)},size:"sm",class:"type-caption",onclick:()=>et(E,e(N),!0),children:(K,tt)=>{wt();var i=Ct();D(q=>x(i,q),[()=>e(R).filePath.split("/").pop()]),u(K,i)},$$slots:{default:!0}})}}),W(d),u(s,d)};p(l,s=>{A().length>1&&s(_)})}var I=f(l,2);{var B=s=>{Ht(s,{get patch(){return e(z).diff},get fileName(){return e(z).filePath},showHeader:!0,showStats:!0,showLineNumbers:!0,maxHeight:"300px",collapsible:!1,class:"overflow-hidden rounded-sm border border-border"})};p(I,s=>{e(z)&&s(B)})}W(c),Pt(3,c,()=>zt,()=>({tier:"moderate"})),u(a,c)};p(vt,a=>{e(j)&&a(_t)})}W(o),u(t,o)},pt=t=>{var o=Et(),v=S(o,!0);D(b=>x(v,b),[()=>m.ui_patchBlock_invalid_error()]),u(t,o)};p(ct,t=>{A()?.length?t(dt):t(pt,-1)})}return u(U,Y),At(it)}export{Gt as P};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as r}from"./DJu_D7ND.js";import{v as a,I as e}from"./Cdhgfy6h.js";import{G2 as s}from"./BjFoJgFv.js";import{c as t}from"./-4iKCYSl.js";function C(o,i){return t(s,o,{navigate:i,...a("windowChrome")?{closeWindow:()=>r(e.WINDOW.CLOSE)}:{}})}export{C as closeActiveTab};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as d,bq as r,by as n,b as h}from"./
|
|
1
|
+
import{t as d,bq as r,by as n,b as h}from"./COCO5InB.js";import{bs as x,b_ as u,W as C,bn as g,aA as p,aC as y}from"./B8o4lNgr.js";import{s as i,k as G,d as M}from"./Crs9I2MT.js";var U=y(`<svg id="Ebene_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 466.73 533.32"><defs><style>.st0 {
|
|
2
2
|
fill: #72716d;
|
|
3
3
|
}
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as se,bq as u,a_ as B,by as ie,b as ae}from"./
|
|
1
|
+
import{t as se,bq as u,a_ as B,by as ie,b as ae}from"./COCO5InB.js";import{bs as ne,a5 as A,bl as U,bS as R,bA as k,bf as de,b_ as V,aD as e,bO as X,W as g,bn as oe,c9 as c,aA as f,aB as Q,a7 as O,ay as q}from"./B8o4lNgr.js";import{d as we,f as Ie,s as _,k as Se,h as Y}from"./Crs9I2MT.js";import{s as Z}from"./Dck4Okga.js";import{v as Ce}from"./bjkNeafo.js";import{S as ke}from"./BkoH1phN.js";var ye=Q('<div class="max-w-full shrink-0"><!></div>'),Le=Q('<p class="type-body max-w-2xl text-muted-foreground"> </p>'),Be=Q('<p class="type-body mt-2 text-danger" role="alert"> </p>'),Qe=Q('<section data-slot="settings-section"><header class="space-y-1"><div class="flex min-w-0 flex-wrap items-center justify-between gap-3 sm:flex-nowrap"><h2 class="type-title min-w-0 break-words text-foreground"> </h2> <!></div> <!></header> <!> <div data-slot="settings-section-content" class="mt-4 min-w-0 divide-y divide-border rounded-(--radius-medium) bg-card"><!></div></section>');function ce(a,i){if(new.target)return se({component:ce,...a});ne(i,!0);let d=u(i,"id",7),v=u(i,"title",7),p=u(i,"description",7),x=u(i,"busy",7,!1),h=u(i,"error",7),w=u(i,"actions",7),I=u(i,"children",7),y=u(i,"class",7);const T=c(()=>d()?`${d()}-title`:void 0),z=c(()=>d()&&p()?`${d()}-description`:void 0),j=c(()=>d()&&h()?`${d()}-error`:void 0),E=c(()=>[e(z),e(j)].filter(Boolean).join(" ")||void 0);var G={get id(){return d()},set id(r){d(r),f()},get title(){return v()},set title(r){v(r),f()},get description(){return p()},set description(r){p(r),f()},get busy(){return x()},set busy(r=!1){x(r),f()},get error(){return h()},set error(r){h(r),f()},get actions(){return w()},set actions(r){w(r),f()},get children(){return I()},set children(r){I(r),f()},get class(){return y()},set class(r){y(r),f()},$set:ie,$on:(r,o)=>ae(i,r,o)},m=Qe(),t=A(m),n=A(t),l=A(n),b=U(l,!0),S=R(l,2);{var s=r=>{var o=ye(),C=A(o);Z(C,w),k(o),g(r,o)};B(S,r=>{w()&&r(s)})}k(n);var D=R(n,2);{var N=r=>{var o=Le(),C=U(o,!0);V(()=>{_(o,"id",e(z)),X(C,p())}),g(r,o)};B(D,r=>{p()&&r(N)})}k(t);var F=R(t,2);{var H=r=>{var o=Be(),C=U(o,!0);V(()=>{_(o,"id",e(j)),X(C,h())}),g(r,o)};B(F,r=>{h()&&r(H)})}var P=R(F,2),J=A(P);return Z(J,()=>I()??de),k(P),k(m),V(r=>{_(m,"id",d()),_(m,"data-highlight-id",d()),Se(m,1,r),_(m,"aria-labelledby",e(T)),_(m,"aria-label",e(T)?void 0:v()),_(m,"aria-describedby",e(E)),_(m,"aria-busy",x()||void 0),_(l,"id",e(T)),X(b,v())},[()=>we(Ie("min-w-0 scroll-mt-20",y()))]),g(a,m),oe(G)}function Re(a){return a}function We(a){return a}function W(a,i){return a===void 0?i:typeof a=="function"?a():a}function Te(a,i){const d=i.trim().toLocaleLowerCase();return d?[a.label,a.description,a.featureCode,a.id].filter(Boolean).some(v=>v.toLocaleLowerCase().includes(d)):!0}var je=Q('<div data-slot="settings-form" class="@container/settings-form min-w-0 divide-y divide-border"></div>'),Fe=Q('<div data-slot="settings-form" class="@container/settings-form min-w-0 space-y-10"></div>');function Ae(a,i){if(new.target)return se({component:Ae,...a});ne(i,!0);const d=(t,n=de)=>{var l=O(),b=q(l);Y(b,17,n,S=>S.id,(S,s)=>{const D=c(()=>`setting-${e(s).id}`),N=c(()=>W(e(s).disabled,!1)),F=c(()=>W(e(s).busy,!1)),H=c(()=>W(e(s).error,void 0)),P=c(()=>W(e(s).status,void 0));{const J=(ue,K)=>{let fe=()=>(K?.()).labelId,me=()=>(K?.()).descriptionId,ge=()=>(K?.()).errorId;const $=c(()=>({entry:e(s),controlId:e(D),labelId:fe(),descriptionId:me(),errorId:ge(),disabled:e(N),busy:e(F)}));var ee=O(),ve=q(ee);{var be=L=>{var te=O(),he=q(te);{var _e=M=>{var re=O(),xe=q(re);Z(xe,()=>x()[e(s).id],()=>e($)),g(M,re)};B(he,M=>{x()[e(s).id]&&M(_e)})}g(L,te)},pe=L=>{ke(L,{get entry(){return e(s)},get context(){return e($)},get compact(){return I()}})};B(ve,L=>{e(s).kind==="custom"?L(be):L(pe,-1)})}g(ue,ee)};let r=c(()=>e(s).kind==="custom"&&e(s).layout==="full-width"),o=c(()=>T(e(s).kind)?e(D):void 0),C=c(()=>e(s).kind==="select"),le=c(()=>[e(s).label,e(s).description,e(s).featureCode].filter(Boolean).join(" "));Ce(S,{get compact(){return I()},get id(){return e(s).id},get label(){return e(s).label},get description(){return e(s).description},get descriptionContent(){return h()[e(s).id]},get controlOnly(){return e(r)},get htmlFor(){return e(o)},get activateLabel(){return e(C)},get disabled(){return e(N)},get busy(){return e(F)},get error(){return e(H)},get status(){return e(P)},get statusTone(){return e(s).statusTone},get danger(){return e(s).danger},get experimental(){return e(s).experimental},get featureCode(){return e(s).featureCode},get searchText(){return e(le)},get class(){return e(s).class},control:J,$$slots:{control:!0}})}}),g(t,l)};let v=u(i,"schema",7),p=u(i,"searchQuery",7,""),x=u(i,"custom",23,()=>({})),h=u(i,"descriptions",23,()=>({})),w=u(i,"embedded",7,!1),I=u(i,"compact",7,!0);const y=c(()=>v().sections.filter(t=>t.when?.()??!0).map(t=>({...t,entries:t.entries.filter(n=>(n.when?.()??!0)&&Te(n,p()))})).filter(t=>t.entries.length>0)),T=t=>["select","input","number","path","keybinding"].includes(t);var z={get schema(){return v()},set schema(t){v(t),f()},get searchQuery(){return p()},set searchQuery(t=""){p(t),f()},get custom(){return x()},set custom(t={}){x(t),f()},get descriptions(){return h()},set descriptions(t={}){h(t),f()},get embedded(){return w()},set embedded(t=!1){w(t),f()},get compact(){return I()},set compact(t=!0){I(t),f()},$set:ie,$on:(t,n)=>ae(i,t,n)},j=O(),E=q(j);{var G=t=>{var n=je();Y(n,21,()=>e(y),l=>l.id,(l,b)=>{d(l,()=>e(b).entries)}),k(n),g(t,n)},m=t=>{var n=Fe();Y(n,21,()=>e(y),l=>l.id,(l,b)=>{ce(l,{get id(){return e(b).id},get title(){return e(b).title},get description(){return e(b).description},children:(S,s)=>{d(S,()=>e(b).entries)},$$slots:{default:!0}})}),k(n),g(t,n)};B(E,t=>{w()?t(G):t(m,-1)})}return g(a,j),oe(z)}export{Ae as S,ce as a,We as b,Re as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./
|
|
1
|
+
import{l as e}from"./CUBHTDNB.js";const t={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:e.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},s={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","type","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/f'{1,3}/,"string.escape","@fStringBody"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/f"{1,3}/,"string.escape","@fDblStringBody"],[/"/,"string.escape","@dblStringBody"]],fStringBody:[[/[^\\'\{\}]+$/,"string","@popall"],[/[^\\'\{\}]+/,"string"],[/\{[^\}':!=]+/,"identifier","@fStringDetail"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],fDblStringBody:[[/[^\\"\{\}]+$/,"string","@popall"],[/[^\\"\{\}]+/,"string"],[/\{[^\}':!=]+/,"identifier","@fStringDetail"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]],fStringDetail:[[/[:][^}]+/,"string"],[/[!][ars]/,"string"],[/=/,"string"],[/\}/,"identifier","@pop"]]}};export{t as conf,s as language};
|