@intent-hq/web 2.346.0 → 2.346.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{BgKhYgm8.js → -ATexmb_.js} +1 -1
- package/web/app/immutable/chunks/{DknPpgEW.js → 0h3tB2X7.js} +1 -1
- package/web/app/immutable/chunks/{DcZKw8cP.js → 2_W5MGlF.js} +1 -1
- package/web/app/immutable/chunks/{9XVQ1GVX.js → 3OP-tats.js} +1 -1
- package/web/app/immutable/chunks/{CAdgzoaK.js → 3hAJcdO4.js} +1 -1
- package/web/app/immutable/chunks/{iKgBWWl-.js → 5mNJ4C7j.js} +2 -2
- package/web/app/immutable/chunks/{B79pUPc3.js → 5qgyaXHk.js} +4 -4
- package/web/app/immutable/chunks/{CJ_dtcmM.js → 7HnS2P2A.js} +1 -1
- package/web/app/immutable/chunks/{ahX1JzRb.js → 9PMcLe0B.js} +1 -1
- package/web/app/immutable/chunks/{z_Tdw9N5.js → B-hjApiN.js} +1 -1
- package/web/app/immutable/chunks/B0tYoxIu.js +408 -0
- package/web/app/immutable/chunks/{Y4VeEPHl.js → B1b_Q-DK.js} +1 -1
- package/web/app/immutable/chunks/{BmEcZoA2.js → B47FKnfA.js} +1 -1
- package/web/app/immutable/chunks/{C1osWUn_.js → B4lGG925.js} +1 -1
- package/web/app/immutable/chunks/{CcaAQlGA.js → B6_GAXLX.js} +1 -1
- package/web/app/immutable/chunks/{CFs6uWH2.js → B6hd6-h0.js} +1 -1
- package/web/app/immutable/chunks/{BDDEv5gU.js → B6jO8Woe.js} +1 -1
- package/web/app/immutable/chunks/{DOB2ATTF.js → B8HwWHod.js} +1 -1
- package/web/app/immutable/chunks/{B3D9gAmi.js → BALLinLf.js} +1 -1
- package/web/app/immutable/chunks/{asQ_ruFQ.js → BB4FgpiZ.js} +1 -1
- package/web/app/immutable/chunks/{ftma9Ybn.js → BBhsbqLJ.js} +1 -1
- package/web/app/immutable/chunks/{Big_dnEI.js → BEA1dP-Y.js} +1 -1
- package/web/app/immutable/chunks/{DFs6FJS8.js → BG2eX09y.js} +1 -1
- package/web/app/immutable/chunks/{s0TWEExr.js → BGKCZT2I.js} +1 -1
- package/web/app/immutable/chunks/{DjdPlKc4.js → BGel6u2i.js} +1 -1
- package/web/app/immutable/chunks/{BaYzTmbw.js → BGqL3gJO.js} +1 -1
- package/web/app/immutable/chunks/{B7dTLx8u.js → BGsa1Rn-.js} +1 -1
- package/web/app/immutable/chunks/{Ba1C4iSG.js → BHmRsJkZ.js} +1 -1
- package/web/app/immutable/chunks/{BDzYiKUH.js → BIDATtgj.js} +1 -1
- package/web/app/immutable/chunks/{OPvMR-5p.js → BIWW5pDn.js} +1 -1
- package/web/app/immutable/chunks/{BBlTlRXR.js → BKJdB-rj.js} +1 -1
- package/web/app/immutable/chunks/BKW86yq_.js +1 -0
- package/web/app/immutable/chunks/{-Wo302Zr.js → BMCRnGzk.js} +1 -1
- package/web/app/immutable/chunks/{BO8NImWp.js → BMlW8PWp.js} +1 -1
- package/web/app/immutable/chunks/{BKw5KoGy.js → BMxLlxet.js} +1 -1
- package/web/app/immutable/chunks/{jlJQSpH6.js → BN7h9eAI.js} +1 -1
- package/web/app/immutable/chunks/{DKTqwHrN.js → BO3bzcut.js} +1 -1
- package/web/app/immutable/chunks/{DOCWMdWU.js → BOvPBTkx.js} +1 -1
- package/web/app/immutable/chunks/{ClMg3ew2.js → BPsfqTTH.js} +1 -1
- package/web/app/immutable/chunks/{BQ5F0iVp.js → BQjy1SUJ.js} +1 -1
- package/web/app/immutable/chunks/{BjURBDIt.js → BQk_mrPH.js} +1 -1
- package/web/app/immutable/chunks/{DH-29Rs_.js → BRBkuZqk.js} +3 -3
- package/web/app/immutable/chunks/{CtDj7gZD.js → BUwilubW.js} +1 -1
- package/web/app/immutable/chunks/{B4gIvcP2.js → BW1uSKLL.js} +1 -1
- package/web/app/immutable/chunks/{D492HRYt.js → BXPYDVnQ.js} +1 -1
- package/web/app/immutable/chunks/{DPUWJyjX.js → BYpXsiCq.js} +1 -1
- package/web/app/immutable/chunks/{Clhk_Z-l.js → BZklR_B6.js} +1 -1
- package/web/app/immutable/chunks/{3h5ZjEwa.js → B_ALvSh2.js} +1 -1
- package/web/app/immutable/chunks/{D31IcU1_.js → B_qlaCea.js} +1 -1
- package/web/app/immutable/chunks/{BaYeKXL3.js → B_uWHofm.js} +1 -1
- package/web/app/immutable/chunks/{i2sZiDEq.js → BaDPh7vq.js} +1 -1
- package/web/app/immutable/chunks/{D0I9E6A0.js → Bb6S2E-a.js} +1 -1
- package/web/app/immutable/chunks/{DccrGg38.js → BbMjUd1J.js} +3 -3
- package/web/app/immutable/chunks/{C3NeTp2u.js → BcLSwxTf.js} +1 -1
- package/web/app/immutable/chunks/{Do80Vc58.js → BdnmB6mE.js} +1 -1
- package/web/app/immutable/chunks/{ByLCbaqp.js → Bhz5wZ4Q.js} +1 -1
- package/web/app/immutable/chunks/{DMYKSC8W.js → BjDqyb_W.js} +2 -2
- package/web/app/immutable/chunks/{Dx3sZmi8.js → Bkff-hvs.js} +1 -1
- package/web/app/immutable/chunks/{C3VPe7p1.js → BmooL5Pj.js} +1 -1
- package/web/app/immutable/chunks/{DzejiLWr.js → BqRBAXUd.js} +3 -3
- package/web/app/immutable/chunks/{BpYNQf9o.js → Bqw_xSaW.js} +1 -1
- package/web/app/immutable/chunks/{CNT1n9YR.js → Br-2EMQh.js} +1 -1
- package/web/app/immutable/chunks/{C_EpV6jU.js → Bs7Hg6Iw.js} +1 -1
- package/web/app/immutable/chunks/{DZ3SUe8R.js → BtiDRzyn.js} +1 -1
- package/web/app/immutable/chunks/{CswFIiBb.js → BticJnNL.js} +1 -1
- package/web/app/immutable/chunks/{A8_BT67P.js → BtwtItRa.js} +1 -1
- package/web/app/immutable/chunks/{DByMRbHr.js → BulYm0mb.js} +1 -1
- package/web/app/immutable/chunks/{cATI0wnI.js → BvZcpO0X.js} +1 -1
- package/web/app/immutable/chunks/{C33Dw59E.js → Bw9Opv8X.js} +1 -1
- package/web/app/immutable/chunks/{CmoBwSCp.js → BxyjmPKU.js} +1 -1
- package/web/app/immutable/chunks/{BK64B_Ic.js → ByJd4XYj.js} +1 -1
- package/web/app/immutable/chunks/{BLaIjbEF.js → BywHYLA0.js} +1 -1
- package/web/app/immutable/chunks/{YYacqJ9a.js → BzrasdW9.js} +1 -1
- package/web/app/immutable/chunks/{D7NdkRF-.js → Bzvkqwap.js} +4 -4
- package/web/app/immutable/chunks/{B4XZNQ4a.js → C-6Vv_Md.js} +1 -1
- package/web/app/immutable/chunks/{CP8WYBBE.js → C1Fdolkg.js} +1 -1
- package/web/app/immutable/chunks/{DZyAzxxC.js → C1N6iAP2.js} +1 -1
- package/web/app/immutable/chunks/{DXnd4CJZ.js → C1c28WNI.js} +1 -1
- package/web/app/immutable/chunks/{Cb0zVN4i.js → C1s02RDB.js} +1 -1
- package/web/app/immutable/chunks/{DUQV_xq3.js → C3Pl_e9x.js} +1 -1
- package/web/app/immutable/chunks/{B0-4rCYZ.js → C3RXsOpj.js} +1 -1
- package/web/app/immutable/chunks/{z-RLr2Z1.js → C4EqZepj.js} +1 -1
- package/web/app/immutable/chunks/{BfbZn9QX.js → C4xNNtUj.js} +1 -1
- package/web/app/immutable/chunks/{DzKYjnRy.js → C5GFtLhI.js} +2 -2
- package/web/app/immutable/chunks/{Bxnf75xq.js → C8_z1bbT.js} +1 -1
- package/web/app/immutable/chunks/{fzs92dqr.js → C8d3Ntbq.js} +1 -1
- package/web/app/immutable/chunks/C8ummx7x.js +1 -0
- package/web/app/immutable/chunks/{BMKkyPLo.js → C9u4tXUT.js} +1 -1
- package/web/app/immutable/chunks/{bKyElw3h.js → CAQf2iW_.js} +1 -1
- package/web/app/immutable/chunks/{CgLoJgPR.js → CFFiNWgw.js} +1 -1
- package/web/app/immutable/chunks/{BJZ04Dji.js → CI36mkCP.js} +1 -1
- package/web/app/immutable/chunks/{BlEwAz4v.js → CIDQz_xi.js} +1 -1
- package/web/app/immutable/chunks/{DeCAcSD9.js → CIRZKLVu.js} +1 -1
- package/web/app/immutable/chunks/{CbZEAbX5.js → CIhlsnLM.js} +1 -1
- package/web/app/immutable/chunks/{Bgi2L8Br.js → CJbkgYat.js} +1 -1
- package/web/app/immutable/chunks/{DgHZa_R5.js → CJl18r_J.js} +1 -1
- package/web/app/immutable/chunks/{Dj8J0eqI.js → CK4TIiJZ.js} +1 -1
- package/web/app/immutable/chunks/{CvGEpOsC.js → CKWRbVNZ.js} +1 -1
- package/web/app/immutable/chunks/{71L4lHBq.js → CMG5CVfP.js} +1 -1
- package/web/app/immutable/chunks/{DtAyUyC0.js → CMcMoJJq.js} +1 -1
- package/web/app/immutable/chunks/{C3oF1SK5.js → CNHQ2hz2.js} +1 -1
- package/web/app/immutable/chunks/{B1HPKTBI.js → CNOSe0wO.js} +1 -1
- package/web/app/immutable/chunks/{C4HHXGmJ.js → CNwVL4wn.js} +1 -1
- package/web/app/immutable/chunks/{DukmxKgk.js → CP2XzLLk.js} +1 -1
- package/web/app/immutable/chunks/{zGl9gaL0.js → CPE7SIVP.js} +1 -1
- package/web/app/immutable/chunks/{Chpqmkx4.js → CPo4UsMt.js} +1 -1
- package/web/app/immutable/chunks/{DhHSeQsG.js → CQ5RMFdD.js} +3 -3
- package/web/app/immutable/chunks/{CQbtnalz.js → CS4C4Dqz.js} +1 -1
- package/web/app/immutable/chunks/{7eL9Pgig.js → CSelYXXo.js} +1 -1
- package/web/app/immutable/chunks/{CzcD2H5U.js → CT-2GqFI.js} +1 -1
- package/web/app/immutable/chunks/{IRbjhecv.js → CTMYdigD.js} +1 -1
- package/web/app/immutable/chunks/{ouMKS3MA.js → CTgw4phK.js} +1 -1
- package/web/app/immutable/chunks/{DGmRhalF.js → CUEYQ1xR.js} +1 -1
- package/web/app/immutable/chunks/{T9tywf_e.js → CXZBvyNr.js} +1 -1
- package/web/app/immutable/chunks/{Dto-4yb7.js → CZF99d-A.js} +1 -1
- package/web/app/immutable/chunks/{Dkr_RXdV.js → Cbpbq74u.js} +1 -1
- package/web/app/immutable/chunks/Cbr_yt83.js +2 -0
- package/web/app/immutable/chunks/{C-OtpXcF.js → CcOcBD3s.js} +1 -1
- package/web/app/immutable/chunks/{etVaBLxV.js → Cdb_pBT1.js} +1 -1
- package/web/app/immutable/chunks/{5Ixgq0WC.js → CeboDH9D.js} +1 -1
- package/web/app/immutable/chunks/{CCm1BgPl.js → CeydpcQL.js} +1 -1
- package/web/app/immutable/chunks/{DryyHkNv.js → CiLrRXKC.js} +1 -1
- package/web/app/immutable/chunks/{CvHwMug-.js → CjpBT44D.js} +2 -2
- package/web/app/immutable/chunks/{BQbcEQz0.js → CjxgW2LG.js} +1 -1
- package/web/app/immutable/chunks/{CHfmHJ17.js → Cjyjhytt.js} +1 -1
- package/web/app/immutable/chunks/{Cq8oeEXe.js → CnkXoP0c.js} +1 -1
- package/web/app/immutable/chunks/{DTSEdINd.js → Cp8bbNVk.js} +2 -2
- package/web/app/immutable/chunks/{B55-cQLT.js → CpB9-pxF.js} +1 -1
- package/web/app/immutable/chunks/{CQyjMIYw.js → CpsuxuwM.js} +1 -1
- package/web/app/immutable/chunks/{DMjNjha0.js → CqvGUHnF.js} +1 -1
- package/web/app/immutable/chunks/{Dkva_evl.js → CsvSUZwX.js} +2 -2
- package/web/app/immutable/chunks/{BTNEDHav.js → Cu4yzzG1.js} +1 -1
- package/web/app/immutable/chunks/{DwA_Z_f6.js → Cueu30DH.js} +1 -1
- package/web/app/immutable/chunks/{BDPAYMJ1.js → CvGWJUqA.js} +1 -1
- package/web/app/immutable/chunks/{3DAIKGff.js → Cv_fAsRR.js} +1 -1
- package/web/app/immutable/chunks/{U6cHmbYS.js → CxlqEDL_.js} +3 -3
- package/web/app/immutable/chunks/{DcwC09tE.js → CzGw49VI.js} +1 -1
- package/web/app/immutable/chunks/{W7sv3DY6.js → CzZewxhP.js} +1 -1
- package/web/app/immutable/chunks/{CrjpdU4V.js → D-3gv8KK.js} +1 -1
- package/web/app/immutable/chunks/{BW9EApvt.js → D03v07xA.js} +1 -1
- package/web/app/immutable/chunks/{CXpFRnSj.js → D1J3O3UF.js} +1 -1
- package/web/app/immutable/chunks/{D7dPbXji.js → D1JIts8z.js} +1 -1
- package/web/app/immutable/chunks/D1jZIoRI.js +1 -0
- package/web/app/immutable/chunks/{BM7oCSp5.js → D2D1pbBM.js} +1 -1
- package/web/app/immutable/chunks/{B5HeJKYE.js → D7oCAGaV.js} +1 -1
- package/web/app/immutable/chunks/{Cx31i8ng.js → D9WJ9yaW.js} +1 -1
- package/web/app/immutable/chunks/{eNHX5lds.js → DAP42sSp.js} +1 -1
- package/web/app/immutable/chunks/{CVa6MqnK.js → DCmSz4nS.js} +1 -1
- package/web/app/immutable/chunks/{CguBowm8.js → DFBU68gv.js} +1 -1
- package/web/app/immutable/chunks/{Brqq8vhd.js → DHNaVZzM.js} +4 -4
- package/web/app/immutable/chunks/{dBZS3-kp.js → DIKxUBjo.js} +1 -1
- package/web/app/immutable/chunks/{BDPqCRJm.js → DIYt9yAc.js} +1 -1
- package/web/app/immutable/chunks/{B1U_DCBw.js → DKnPivVx.js} +1 -1
- package/web/app/immutable/chunks/DLzSUn52.js +4 -0
- package/web/app/immutable/chunks/{BOxkenyY.js → DMAPjgGW.js} +1 -1
- package/web/app/immutable/chunks/{D3toWTag.js → DMNf2kIx.js} +4 -4
- package/web/app/immutable/chunks/{CiIELmgj.js → DNMpoEvN.js} +1 -1
- package/web/app/immutable/chunks/{txy0Txom.js → DNQiloiF.js} +1 -1
- package/web/app/immutable/chunks/{DzGNgfrZ.js → DRG7DUhO.js} +1 -1
- package/web/app/immutable/chunks/{BY3nRRgO.js → DRXZoO9N.js} +3 -3
- package/web/app/immutable/chunks/{DDySjsub.js → DRpIoF9f.js} +1 -1
- package/web/app/immutable/chunks/DU8GQiwc.js +13 -0
- package/web/app/immutable/chunks/{DRZKWEq3.js → DUyBdSjv.js} +1 -1
- package/web/app/immutable/chunks/{CjbCpI18.js → DYbBpj-3.js} +1 -1
- package/web/app/immutable/chunks/{Dr45ln4z.js → DaOs4JNK.js} +1 -1
- package/web/app/immutable/chunks/{DNjgs7AU.js → Db5vVNPd.js} +1 -1
- package/web/app/immutable/chunks/{DdVIXVso.js → DbjrS_71.js} +1 -1
- package/web/app/immutable/chunks/{Bgw3O9rE.js → DctMspbi.js} +1 -1
- package/web/app/immutable/chunks/{DOKxXiSI.js → DfZvKQFw.js} +4 -4
- package/web/app/immutable/chunks/{3as4gwP9.js → DfumCvo1.js} +1 -1
- package/web/app/immutable/chunks/{Cq2aackv.js → DghbEZ16.js} +1 -1
- package/web/app/immutable/chunks/{BOyF7pe9.js → DhUnCLhA.js} +1 -1
- package/web/app/immutable/chunks/{DYnCJwSs.js → DhWGSJOr.js} +1 -1
- package/web/app/immutable/chunks/{B0mNIdOb.js → DiKPZGG7.js} +1 -1
- package/web/app/immutable/chunks/{D-i7C44m.js → DiLuZbm3.js} +2 -2
- package/web/app/immutable/chunks/Dk2XuKyL.js +1 -0
- package/web/app/immutable/chunks/{BnkmaA34.js → DkMx9Khd.js} +1 -1
- package/web/app/immutable/chunks/{ChNPgGKQ.js → DlOpwiIn.js} +1 -1
- package/web/app/immutable/chunks/{BYDvuR-h.js → DlQwd6Dz.js} +1 -1
- package/web/app/immutable/chunks/{ACNn9MHT.js → DmDreYHi.js} +2 -2
- package/web/app/immutable/chunks/{CAUaU8Wh.js → DmY0GWNY.js} +1 -1
- package/web/app/immutable/chunks/{C8XrM-qb.js → DoIXHwho.js} +1 -1
- package/web/app/immutable/chunks/{CDbQwqu1.js → DoxU2MH-.js} +1 -1
- package/web/app/immutable/chunks/{SVZRr24P.js → Dsq9SKtm.js} +1 -1
- package/web/app/immutable/chunks/{DKKFIb2l.js → DuA0wXTo.js} +1 -1
- package/web/app/immutable/chunks/{D-TVq_rK.js → DxdbljsN.js} +1 -1
- package/web/app/immutable/chunks/{DHROL4K5.js → DxkncNQp.js} +1 -1
- package/web/app/immutable/chunks/{D1CYDv8t.js → Dy_FWGdw.js} +1 -1
- package/web/app/immutable/chunks/{BeJ5WWx4.js → DzrrFPjR.js} +22 -22
- package/web/app/immutable/chunks/{CrHk5l6X.js → E9kqzP8d.js} +1 -1
- package/web/app/immutable/chunks/{BWTugGQ8.js → EF8Lgcvo.js} +1 -1
- package/web/app/immutable/chunks/{BVURea8L.js → Ewbvp_lS.js} +1 -1
- package/web/app/immutable/chunks/{BqyYlCY3.js → FFimwbkT.js} +1 -1
- package/web/app/immutable/chunks/{DE8QOEZV.js → FIoCaQ2r.js} +1 -1
- package/web/app/immutable/chunks/{Zl17pAXX.js → FXM57FKt.js} +1 -1
- package/web/app/immutable/chunks/{Ckp5dOHW.js → Fas-AZ8u.js} +1 -1
- package/web/app/immutable/chunks/{BDZoh7yg.js → GAq2mIWu.js} +1 -1
- package/web/app/immutable/chunks/{G_wYaln-.js → GTp1YEph.js} +1 -1
- package/web/app/immutable/chunks/{GzTl4Sb0.js → IrTkIWCG.js} +1 -1
- package/web/app/immutable/chunks/{BqBqZaGQ.js → JbkOWTOg.js} +1 -1
- package/web/app/immutable/chunks/{DHGSAfCZ.js → KpAtxVXt.js} +1 -1
- package/web/app/immutable/chunks/{CXVUfxHv.js → L1oXncPn.js} +6 -6
- package/web/app/immutable/chunks/{C1CDOGnh.js → LPERbs3m.js} +1 -1
- package/web/app/immutable/chunks/{euZ22sAu.js → LZaIAE1Y.js} +1 -1
- package/web/app/immutable/chunks/{CiKocWhX.js → MoI4LiSA.js} +1 -1
- package/web/app/immutable/chunks/{BcbQZUsh.js → NhKlePe6.js} +1 -1
- package/web/app/immutable/chunks/O7PQPM4V.js +1 -0
- package/web/app/immutable/chunks/{BrIsEZwT.js → OJa6n6kP.js} +1 -1
- package/web/app/immutable/chunks/{BDtb6AfX.js → P2s61dnl.js} +1 -1
- package/web/app/immutable/chunks/{B-7vt8Nv.js → QcdWHB0v.js} +1 -1
- package/web/app/immutable/chunks/{V9qci_dz.js → RKjwEkJS.js} +1 -1
- package/web/app/immutable/chunks/{1_fC7X8z.js → R_Ru9hwD.js} +1 -1
- package/web/app/immutable/chunks/{BK2lpqz4.js → SrhdBdnO.js} +1 -1
- package/web/app/immutable/chunks/{CSg3z6A2.js → UKn44y3B.js} +1 -1
- package/web/app/immutable/chunks/{D9jvlcNy.js → VVSQHNmC.js} +1 -1
- package/web/app/immutable/chunks/{d-Ep-sfP.js → V_ABjOKq.js} +1 -1
- package/web/app/immutable/chunks/{BZYeogxf.js → W4Nuovgc.js} +1 -1
- package/web/app/immutable/chunks/{DW9MEQey.js → WXiWQWrz.js} +1 -1
- package/web/app/immutable/chunks/{BcgSXbtK.js → _5Vv4dkf.js} +1 -1
- package/web/app/immutable/chunks/{CQB76zlc.js → _8ZvVPLV.js} +1 -1
- package/web/app/immutable/chunks/{BLl22NdQ.js → aEMYrozm.js} +1 -1
- package/web/app/immutable/chunks/{CSQXURhP.js → dT5WNNGq.js} +1 -1
- package/web/app/immutable/chunks/{D_SZXZdx.js → eqxSNkBq.js} +1 -1
- package/web/app/immutable/chunks/{DfjJilaB.js → fYStpNp1.js} +2 -2
- package/web/app/immutable/chunks/{wTgWcOy1.js → hCF4Zu9x.js} +1 -1
- package/web/app/immutable/chunks/{CGcQAX9W.js → k6cZvV27.js} +1 -1
- package/web/app/immutable/chunks/{B83M2_sj.js → k7pV_mI9.js} +1 -1
- package/web/app/immutable/chunks/{B0WVH3Hg.js → m4m_OnCq.js} +1 -1
- package/web/app/immutable/chunks/{BWAGtvpD.js → qvZYvB9N.js} +1 -1
- package/web/app/immutable/chunks/{-UJlOg-6.js → rBb3s3xl.js} +1 -1
- package/web/app/immutable/chunks/{CA6TS0WC.js → sCaWuYEb.js} +1 -1
- package/web/app/immutable/chunks/{CzdMU9Bu.js → t_9JF5Ld.js} +2 -2
- package/web/app/immutable/chunks/{4sUGQp1u.js → tcnXcM0S.js} +1 -1
- package/web/app/immutable/chunks/{WbTmlouE.js → wZNQMR8J.js} +1 -1
- package/web/app/immutable/chunks/{BWZmCaEW.js → yw7dEI88.js} +1 -1
- package/web/app/immutable/chunks/{0qEvU7Aj.js → zqCR6Knb.js} +1 -1
- package/web/app/immutable/entry/{app.BXnRxWvG.js → app.BQtRy4N0.js} +3 -3
- package/web/app/immutable/entry/start.DP05n5bC.js +1 -0
- package/web/app/immutable/nodes/{0.CFk1FXLg.js → 0.YxkIXYW_.js} +1 -1
- package/web/app/immutable/nodes/{1.Bd67D1tA.js → 1.DPIiTcn7.js} +1 -1
- package/web/app/immutable/nodes/{10.CTZ0L3wZ.js → 10.CYSFXPaq.js} +1 -1
- package/web/app/immutable/nodes/{11.CH_h0WbH.js → 11.Bl5UwrS9.js} +1 -1
- package/web/app/immutable/nodes/{12.DhihsAtw.js → 12.CUp8k2-A.js} +1 -1
- package/web/app/immutable/nodes/{13.B727xJXs.js → 13.Ch9aZ9Uv.js} +3 -3
- package/web/app/immutable/nodes/{14.CgITgBOZ.js → 14.BW4XzZI8.js} +1 -1
- package/web/app/immutable/nodes/{15.CCzIPJGf.js → 15.Cto8qDz0.js} +1 -1
- package/web/app/immutable/nodes/{16.CbtJfPHZ.js → 16.SivUu1Ma.js} +1 -1
- package/web/app/immutable/nodes/{17.CelzCwXF.js → 17.Chj8J0QC.js} +1 -1
- package/web/app/immutable/nodes/{18.fqvApY-g.js → 18.BmSdt93l.js} +2 -2
- package/web/app/immutable/nodes/{2.t-1b60vK.js → 2.CL9-Oazw.js} +4 -4
- package/web/app/immutable/nodes/{3.4L0YPvZL.js → 3.6SFTvSLk.js} +1 -1
- package/web/app/immutable/nodes/{4.BLQgcpcU.js → 4.s2OPBDUw.js} +1 -1
- package/web/app/immutable/nodes/{5.Bp_OiOTI.js → 5.BhdLMGJF.js} +1 -1
- package/web/app/immutable/nodes/{6.CcuwCBp4.js → 6.DorNgn-a.js} +1 -1
- package/web/app/immutable/nodes/{7.B-TRUT7o.js → 7.9iHTOKVc.js} +1 -1
- package/web/app/immutable/nodes/{8.CaG5gby5.js → 8.DGrpVVpf.js} +6 -6
- package/web/app/immutable/nodes/9.rNDQpOBQ.js +39 -0
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +18 -18
- package/web/app/immutable/chunks/2V4-p70U.js +0 -408
- package/web/app/immutable/chunks/BAGVOK-j.js +0 -4
- package/web/app/immutable/chunks/Bbkml6DP.js +0 -1
- package/web/app/immutable/chunks/D9jYN6_J.js +0 -1
- package/web/app/immutable/chunks/DF1uIj8u.js +0 -1
- package/web/app/immutable/chunks/DOPeTAKk.js +0 -13
- package/web/app/immutable/chunks/DgwMMJRI.js +0 -2
- package/web/app/immutable/chunks/TL85KYB9.js +0 -1
- package/web/app/immutable/chunks/ciTxbtqU.js +0 -1
- package/web/app/immutable/entry/start.BX3EKd8C.js +0 -1
- package/web/app/immutable/nodes/9.DosMxTmg.js +0 -39
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var ye=Object.defineProperty;var Re=(e,t,r)=>t in e?ye(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var d=(e,t,r)=>Re(e,typeof t!="symbol"?t+"":t,r);import{k as we,N as Ce,T as Pe,d as Ie,l as Oe,w as Te}from"./BWAGtvpD.js";import"./DYhIMPy1.js";import{bo as a,_ as Fe}from"./D9jYN6_J.js";import"./C_EpV6jU.js";import"./Cx31i8ng.js";import"./Dkva_evl.js";import{c as z}from"./ChTqQfQN.js";import"./CQbtnalz.js";import{Iz as i,tW as Le,nx as y,nw as _,m0 as De,vj as xe,vh as te,h7 as Ne,h8 as We,c as Be,Ic as Ve,a4 as Ue,ye as O,yf as G,yc as Ge,yd as qe,bX as He,bW as je,c9 as ze,c8 as Ke,nz as R}from"./BfbZn9QX.js";import{cG as $e,cv as Qe,bv as Xe,cj as oe,cL as Ze,cK as Ye,cP as Je,c7 as et,cn as tt,c9 as rt,cE as ce,ax as st,bR as nt,cM as it}from"./asQ_ruFQ.js";import{a as at,i as ot}from"./DNWBkvFP.js";import{aJ as ct,V as le,bK as lt,m as dt,O as ut,bX as K,g as pt,W as ft,bY as gt,c as ht,aK as mt,bF as $,an as bt,aZ as St,_ as _t,aF as vt,bM as At,Z as kt,X as Et,Y as Mt,bI as yt,x as Rt}from"./A8_BT67P.js";import{y as wt}from"./DRZKWEq3.js";import{y as I}from"./CEsW1euQ.js";import{i as W}from"./CpHzYkzi.js";import{n as Ct}from"./DTSEdINd.js";const Pt=Object.freeze(Object.defineProperty({__proto__:null,NOTIFY_DURATION:Ce,TOAST_COUNTDOWN_CLASS:Pe,TOAST_COUNTDOWN_NO_HOVER_PAUSE_CLASS:Ie,notify:we,notifyMetadata:Oe,withToastCountdown:Te},Symbol.toStringTag,{value:"Module"})),ks=i.createSelector(e=>$e.select(e)?.capabilities.gitlabCheckout===!0),Es=i.createSelector(e=>e.gitlabAuth.host),Ms=i.createSelector(e=>e.gitlabAuth.instanceBaseUrl??e.gitlabAuth.host),ys=i.createSelector(e=>Le(e.gitlabAuth.instanceBaseUrl??e.gitlabAuth.host)??""),Rs=i.createSelector(e=>e.gitlabAuth.isCancelling),ws=i.createSelector(e=>e.gitlabAuth.cancelOutcome),Cs=i.createSelector(e=>e.gitlabAuth.isConfigured),Ps=i.createSelector(e=>e.gitlabAuth.isAuthenticating),Is=i.createSelector(e=>e.gitlabAuth.deviceFlow),Os=i.createSelector(e=>e.gitlabAuth.deviceGrantSupported),Ts=i.createSelector(e=>e.gitlabAuth.user),Fs=i.createSelector(e=>e.gitlabAuth.error);i.createSelector(e=>e.gitlabAuth.method);const Ls=i.createSelector(e=>e.gitlabAuth.statusReady===!0),E=[{id:"pr-reviewer",icon:"pr-reviewer",get name(){return a.specialists_builtin_prReviewer_name()},get description(){return a.specialists_builtin_prReviewer_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"ui-designer",icon:"ui-designer",get name(){return a.specialists_builtin_uiDesigner_name()},get description(){return a.specialists_builtin_uiDesigner_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"vulnerability-scanner",icon:"pr-reviewer",get name(){return a.specialists_builtin_vulnerabilityScanner_name()},get description(){return a.specialists_builtin_vulnerabilityScanner_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"developer",icon:"verifier",get name(){return a.specialists_builtin_developer_name()},get description(){return a.specialists_builtin_developer_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"product-manager",icon:"coordinator",get name(){return a.specialists_builtin_productManager_name()},get description(){return a.specialists_builtin_productManager_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"maintenance-coordinator",icon:"ralph",get name(){return a.specialists_builtin_maintenanceCoordinator_name()},get description(){return a.specialists_builtin_maintenanceCoordinator_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"chief-of-staff",icon:"chief-of-staff",get name(){return a.specialists_builtin_chiefOfStaff_name()},get description(){return a.specialists_builtin_chiefOfStaff_description()},hidden:!0,defaultBehaviorPrompt:"",promptUnavailable:!0}],de=new Set(["pr-reviewer"]),Ds="developer";function xs(e){return E.find(t=>t.id===e)}const It=i.createSelector(e=>e.githubAuth.mutationRequestId),Ot=i.createSelector(e=>e.githubAuth.callbacksCancelled),Tt=i.createSelector(e=>e.githubAuth.isDisconnecting),ue=i.createSelector(e=>e.githubAuth.isAuthenticated),Ft=i.createSelector(e=>e.githubAuth.statusSettled===!0),Lt=i.createSelector(e=>e.githubAuth.requiresDaemonAuth),Dt=i.createSelector(e=>e.githubAuth.user),xt=i.createSelector(e=>e.githubAuth.isAuthenticating),Nt=i.createSelector(e=>e.githubAuth.deviceFlow),Wt=i.createSelector(e=>e.githubAuth.error),Ns=Object.freeze(Object.defineProperty({__proto__:null,selectGitHubAuthCallbacksCancelled:Ot,selectGitHubAuthDeviceFlow:Nt,selectGitHubAuthError:Wt,selectGitHubAuthIsAuthenticated:ue,selectGitHubAuthIsAuthenticating:xt,selectGitHubAuthIsDisconnecting:Tt,selectGitHubAuthMutationRequestId:It,selectGitHubAuthRequiresDaemonAuth:Lt,selectGitHubAuthStatusSettled:Ft,selectGitHubAuthUser:Dt},Symbol.toStringTag,{value:"Module"}));function f(e){return e??""}function Bt(e,t){const r=e??[],s=t??[];return r.length===s.length&&r.every((n,o)=>f(n.provider)===f(s[o].provider)&&n.model===s[o].model&&n.hint===s[o].hint&&f(n.reasoningEffort)===f(s[o].reasoningEffort))}function re(e,t){if(e.source!=="user"||!t?.ignoreModelPin&&(e.model||e.codingAgent))return!1;const r=e.bundled;return r?f(e.name)===f(r.name)&&f(e.description)===f(r.description)&&f(e.behaviorPrompt)===f(r.behaviorPrompt)&&f(e.roleReminder)===f(r.roleReminder)&&f(e.reasoningEffort)===f(r.reasoningEffort)&&Bt(e.modelOptions,r.modelOptions):!1}const Ws=i.createSelector(e=>e.specialists.bundledSpecialists),Vt=i.createSelector(e=>e.specialists.fileSpecialists),Bs=i.createSelector(e=>y(Vt.select(e))),Vs=i.createSelector(e=>e.specialists.userOverrides);i.createSelector(e=>e.specialists.overridesLoaded);const Us=i.createSelector(e=>e.specialists.customSpecialistsLoaded),Gs=i.createSelector(e=>e.specialists.fileSpecialistsLoaded),qs=i.createSelector(e=>e.specialists.bundledSpecialistsLoaded),Hs=i.createSelector(e=>e.specialists.specialistsFolderPath),js=i.createSelector((e,t)=>{if(!t)return e.specialists.defaultSpecialistId??"";const r=e.providerCatalog?.byWorkspaceId?.[t]?.settings.find(s=>s.path==="specialists.default")?.value;return typeof r=="string"?r:""});i.createSelector(e=>e.specialists.providerModelOverrides);const B=i.createSelector((e,t)=>!(de.has(t)&&!ue.select(e)));function Ut(e,t){return t?e:e.filter(r=>!de.has(r.id))}function Gt(e,t){return Ut(e,t).filter(r=>!r.hidden)}function zs(e,t){return Gt(e,t).filter(r=>r.role!=="internal")}const v=i.createSelector((e,t)=>{if(t)return(e.providerCatalog?.byWorkspaceId?.[t]?.specialists??[]).map(l=>({...l,defaultModel:l.model,defaultBehaviorPrompt:l.behaviorPrompt??l.prompt??"",defaultAgentType:l.agentType}));const r=y(e.specialists.fileSpecialists),s=e.specialists.bundledSpecialists,n=new Set,o=[];for(const l of r)!n.has(l.id)&&B.select(e,l.id)&&(n.add(l.id),o.push({id:l.id,name:l.name,description:l.description,codingAgent:l.codingAgent,defaultModel:l.model||void 0,defaultBehaviorPrompt:l.behaviorPrompt,roleReminder:l.roleReminder,source:l.source,importedFrom:l.importedFrom,unsupportedFields:l.unsupportedFields,requiredSkills:l.requiredSkills,missingSkills:l.missingSkills,hidden:l.hidden,resolvedModel:l.resolvedModel,resolvedProvider:l.resolvedProvider,modelOptions:l.modelOptions,reasoningEffort:l.reasoningEffort,role:l.role,teamAgents:l.teamAgents,icon:l.icon}));for(const l of s)!n.has(l.id)&&B.select(e,l.id)&&(n.add(l.id),o.push(l));if(!e.specialists.bundledSpecialistsLoaded&&r.length===0&&s.length===0)for(const l of E)!n.has(l.id)&&B.select(e,l.id)&&(n.add(l.id),o.push(l));const c=new Map;for(const l of E)c.has(l.id)||c.set(l.id,c.size);for(const l of s)c.has(l.id)||c.set(l.id,c.size);return o.sort((l,p)=>{const b=c.has(l.id),N=c.has(p.id);return b&&N?(c.get(l.id)??0)-(c.get(p.id)??0):b&&!N?-1:!b&&N?1:l.name.localeCompare(p.name)}),o}),Ks=i.createSelector(e=>{const t=v.select(e).filter(s=>s.role==="orchestrator");if(t.length===0)return null;const r=new Set([...E.map(({id:s})=>s),...e.specialists.bundledSpecialists.map(({id:s})=>s)]);return t.sort((s,n)=>+!r.has(s.id)-+!r.has(n.id)||s.id.localeCompare(n.id)),t[0]}),qt=i.createSelector((e,t)=>{const r=_(e.specialists.fileSpecialists,t);if(r)return{id:r.id,name:r.name,description:r.description,source:r.source};const s=e.specialists.bundledSpecialists.find(n=>n.id===t);if(s)return{id:s.id,name:s.name,description:s.description,source:"builtin"};if(!e.specialists.bundledSpecialistsLoaded&&y(e.specialists.fileSpecialists).length===0&&e.specialists.bundledSpecialists.length===0){const n=E.find(o=>o.id===t);if(n)return{id:n.id,name:n.name,description:n.description,source:"builtin"}}return null}),$s=i.createSelector((e,t)=>qt.select(e,t)?.name??null),Qs=i.createSelector((e,t,r)=>{const n=v.select(e,r).find(o=>o.id===t);return n?n.defaultModel?n.defaultModel:n.resolvedModel??"":""}),Xs=i.createSelector((e,t,r)=>v.select(e,r).find(o=>o.id===t)?.defaultModel||void 0),Zs=i.createSelector((e,t,r)=>v.select(e,r).find(o=>o.id===t)?.reasoningEffort||void 0),Ys=i.createSelector((e,t,r)=>{const n=v.select(e,r).find(o=>o.id===t);return n?n.defaultBehaviorPrompt:""});function T(e,t){return t.some(r=>r.id===e)||E.some(r=>r.id===e)}const Js=i.createSelector((e,t,r)=>{if(r){const s=e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(n=>n.id===t);return!s||s.importedFrom?!1:s.source==="bundled"||s.source==="user"&&T(t,e.specialists.bundledSpecialists)}return T(t,e.specialists.bundledSpecialists)}),en=i.createSelector((e,t,r)=>r?!!Q.select(e,t,r):!!_(e.specialists.fileSpecialists,t)),tn=i.createSelector((e,t,r)=>{if(r){const o=Q.select(e,t,r);return!o||o.importedFrom||o.source==="project"?!1:T(t,e.specialists.bundledSpecialists)&&!re(o)}if(!T(t,e.specialists.bundledSpecialists))return!1;const n=_(e.specialists.fileSpecialists,t);return!n||n.source!=="user"?!1:!re(n)}),Q=i.createSelector((e,t,r)=>{if(r){const s=e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(n=>n.id===t);return!s||s.source==="bundled"?void 0:{...s,source:s.source,model:s.model??"",behaviorPrompt:s.behaviorPrompt??s.prompt??"",filePath:s.path??""}}return _(e.specialists.fileSpecialists,t)}),rn=i.createSelector((e,t,r)=>{const s=Q.select(e,t,r);return r&&!s?e.providerCatalog?.byWorkspaceId?.[r]?.specialists.some(n=>n.id===t)?"Built-in":null:s?.source==="project"?"Project":s?.source==="user"?"User":e.specialists.bundledSpecialists.some(n=>n.id===t)?"Built-in":null}),sn=i.createSelector((e,t,r)=>{if(r)return e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(o=>o.id===t)?.path;const s=_(e.specialists.fileSpecialists,t);if(s)return s.filePath;const n=e.specialists.bundledSpecialists.find(o=>o.id===t);if(n&&"filePath"in n)return n.filePath}),nn=i.createSelector((e,t,r)=>{if(r){const n=v.select(e,r).find(l=>l.id===t),o=n?.codingAgent||n?.resolvedProvider;if(o)return Qe.select(e,o,r);const c=Xe.select(e,r);return e.providerCatalog?.byWorkspaceId?.[r]?.readiness[c]?.available?c:""}const s=_(e.specialists.fileSpecialists,t);return s?.codingAgent?s.codingAgent:Ht.select(e,t)}),Ht=i.createSelector((e,t)=>{const s=v.select(e).find(n=>n.id===t);return s?.codingAgent?s.codingAgent:ct.select(e)?le.select(e):""}),an=i.createSelector((e,t)=>{if(t)return e.providerCatalog?.byWorkspaceId?.[t]?.importDiagnostics??[];const r=e.specialists.importDiagnostics;return r?y(r):[]}),on=i.createSelector((e,t)=>e.specialists.creationByContext?.[t]??De),cn=i.createSelector(e=>Object.values(e.specialists.creationByContext??{}).flatMap(t=>t.specialistId?[t.specialistId]:[])),V=z("Clipboard");async function ln(e){let t;if(at())try{const r=await ot("system:write-clipboard",{text:e});if(r?.success===!1)throw new Error(r.error||"Electron clipboard write failed");return}catch(r){t=r,V.warn("Electron clipboard write failed; falling back to browser clipboard",{error:r})}if(typeof navigator<"u"&&navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch(r){throw V.error("Browser clipboard write failed",r,{electronError:t}),r}throw V.error("No clipboard write API is available",void 0,{electronError:t}),t instanceof Error?t:new Error("Clipboard write API unavailable")}const jt=["connected","disconnected","unreachable","revoked","update-required"],M=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),u=e=>typeof e=="string"&&e.length>0,w=e=>typeof e=="string"&&e.length>0?e:void 0,pe=e=>Number.isSafeInteger(e)&&e>=0?e:0;function zt(e){if(!M(e))return;const t=Array.isArray(e.providers)?e.providers.flatMap(s=>M(s)&&u(s.id)?[{id:s.id,...s.visible===!1?{visible:!1}:{},status:typeof s.status=="string"?s.status:"unknown",models:Array.isArray(s.models)?s.models.filter(n=>u(n)):[]}]:[]):[],r=w(e.intentdVersion);return{...r?{intentdVersion:r}:{},providers:t}}function dn(e){if(!M(e)||!u(e.id)||!u(e.name)||!u(e.fingerprint)||!jt.includes(e.state)||!Number.isInteger(e.port)||!u(e.addedAt))return null;const t=M(e.platform)&&u(e.platform.os)&&u(e.platform.arch)?{os:e.platform.os,arch:e.platform.arch}:void 0,r=zt(e.capabilities),s=w(e.tcAddress),n=w(e.observedAt),o=w(e.lastConnectedAt),c=xe(e.cloud),l=Number.isInteger(e.nodeProtocol)&&e.nodeProtocol>=0?e.nodeProtocol:void 0;return{id:e.id,name:e.name,...t?{platform:t}:{},hosts:Array.isArray(e.hosts)?e.hosts.filter(p=>u(p)):[],port:e.port,...s?{tcAddress:s}:{},fingerprint:e.fingerprint,state:e.state,runningAgents:pe(e.runningAgents),...r?{capabilities:r}:{},...l!==void 0?{nodeProtocol:l}:{},...n?{observedAt:n}:{},addedAt:e.addedAt,...o?{lastConnectedAt:o}:{},...c?{cloud:c}:{}}}function un(e){if(!M(e)||!u(e.credentialId)||!u(e.backendId)||!u(e.backendName)||!u(e.createdAt))return null;const t=w(e.lastUsedAt);return{credentialId:e.credentialId,backendId:e.backendId,backendName:e.backendName,createdAt:e.createdAt,...t?{lastUsedAt:t}:{},connected:e.connected===!0,runningAgents:pe(e.runningAgents)}}function pn(e){const t=(typeof e=="string"?e:"").trim().toUpperCase();return t===""?null:t}function Kt(e){if(!M(e)||typeof e.name!="string")return null;const t=e.name;return e.kind==="local"?{kind:"local",name:t}:e.kind==="machine"&&u(e.nodeId)?{kind:"machine",nodeId:e.nodeId,name:t}:e.kind==="cloud"&&u(e.cloudMachineId)?{kind:"cloud",cloudMachineId:e.cloudMachineId,name:t}:null}function fn(e){if(!Array.isArray(e))return null;const t=[];for(const r of e){const s=Kt(r);if(!s)return null;t.push(s)}return t}function $t(e){return e.kind==="local"?{kind:"local"}:e.kind==="machine"?{kind:"machine",nodeId:e.nodeId}:{kind:"cloud",cloudMachineId:e.cloudMachineId}}function P(e){return e.kind==="local"?"local":e.kind==="machine"?`machine:${e.nodeId}`:`cloud:${e.cloudMachineId}`}const Qt={macos:"macOS",linux:"Linux",windows:"Windows"},Xt={aarch64:"arm64",arm64:"arm64",x86_64:"x64",x64:"x64"};function A(e,t){const r=[e&&(Qt[e]??e),t&&(Xt[t]??t)].filter(s=>!!s);return r.length?r.join(" "):null}function Zt(e){return e?.placement?.target==="remote"||I(e?.placement?.target)}const Yt=new Set(["running","paused","resuming","pausing","stopping"]);function Jt(e,t){if(e.placementError)return null;if(e.cloudStart)return"starting";if(!e.nodeId)return e.effectiveIsolation==="pending"?"starting":null;const r=t?.cloud?.state;return r&&Yt.has(r)?r:e.effectiveIsolation==="pending"?"starting":null}function fe(e,t){if(!e||!Zt(e))return null;const r=e.nodeId??e.placement?.nodeId??"",s=t&&t.id===r?t:null;if(I(e.placement?.target))return{nodeId:r,name:e.nodeName?.trim()||Ne(s?.cloud?.provider??We(e.placement?.cloudMachineId)),platform:A(s?.platform?.os,s?.platform?.arch),state:"ready",cloud:{state:Jt(e,s)}};const n=A(e.placement?.os,e.placement?.arch)??A(s?.platform?.os,s?.platform?.arch),o=s?.state==="revoked"?"revoked":s?.state==="unreachable"||e.nodeState==="offline"?"unreachable":"ready";return{nodeId:r,name:e.nodeName?.trim()||s?.name||a.remoteAgent_location_unknownMachine(),platform:n,state:o}}function gn(e,t){if(!e)return null;const r=t&&t.id===e?t:null;return{nodeId:e,name:r?.name||a.remoteAgent_location_unknownMachine(),platform:A(r?.platform?.os,r?.platform?.arch),state:r?.state==="revoked"?"revoked":r?.state==="unreachable"?"unreachable":"ready"}}function ge(e){switch(e){case"starting":return a.cloudMachines_agent_starting();case"running":return a.cloudMachines_agent_running();case"paused":return a.cloudMachines_agent_paused();case"resuming":return a.cloudMachines_agent_resuming();case"pausing":return a.cloudMachines_agent_pausing();case"stopping":return a.cloudMachines_agent_stopping();default:return null}}function hn(e){const t=ge(e.cloud?.state);return t?a.cloudMachines_agent_chip({machine:e.name,state:t}):e.name}function mn(e){if(e.cloud){const r=ge(e.cloud.state),s=a.remoteAgent_location_tooltipNoPlatform({machine:e.name});return r?a.remoteAgent_location_tooltipWithState({location:s,state:r}):s}const t=e.platform?a.remoteAgent_location_tooltip({machine:e.name,platform:e.platform}):a.remoteAgent_location_tooltipNoPlatform({machine:e.name});switch(e.state){case"unreachable":return a.remoteAgent_location_tooltipWithState({location:t,state:a.remoteMachines_state_unreachable_label()});case"revoked":return a.remoteAgent_location_tooltipWithState({location:t,state:a.remoteMachines_state_revoked_label()});default:return t}}function he(e,t){return!e||!t?null:e.placementError?"failed":t.state==="revoked"?"revoked":t.state==="unreachable"?"unreachable":e.effectiveIsolation==="pending"||e.cloudStart?"starting":e.setup?.state==="failed"?"setup-failed":null}function me(e){if(!e.endsWith("}"))return null;for(let t=e.indexOf(" {");t>=0;t=e.indexOf(" {",t+1))try{const r=JSON.parse(e.slice(t+1));if(r&&typeof r=="object"&&typeof r.code=="string")return{message:e.slice(0,t).trim(),data:r}}catch{}return null}function er(e,t){const r=e.detail??"",s=me(r),n=e.code==="machine-update-required"||s?.data.code==="machine-update-required";if(n&&s?.data.reason==="prepared-checkout")return{updateRequired:n,message:a.remoteAgent_updateRequired_preparedCheckout({machine:t})};const o=te(s?.data),c=o??(e.code?te({code:e.code}):null);return c?{updateRequired:n,message:s?.message||r,cloud:c,cloudDetailKnown:!!o}:{updateRequired:n,message:s?.message||r}}function bn(e){if(!I(e?.placement?.target)||!e.placementError||e.status!==Be.Error)return null;const t=er(e.placementError,"");return t.cloud?t:null}const tr=["attachments-too-large-for-machine:","node-prompt-too-large:"],rr="remote-agent-unsupported:";function se(e){return new Intl.NumberFormat(void 0,{maximumFractionDigits:1}).format(e/1048576)}function Sn(e){const t=me(e)?.message??e;for(const s of tr){const n=t.indexOf(s);if(n<0)continue;const o=t.slice(n+s.length).trim().replace(/^[a-z][\w]*(?:\.[\w]+)+:\s*/i,""),c=/come to (\d+) bytes\b.*?over its (\d+)-byte limit/.exec(o);return c?a.remoteAgent_attachmentsTooLargeSized_error({size:se(Number(c[1])),limit:se(Number(c[2]))}):o?a.remoteAgent_attachmentsTooLarge_error({detail:o}):a.remoteAgent_attachmentsTooLargeNoDetail_error()}const r=t.indexOf(rr);return r>=0&&/attachment/i.test(t.slice(r))?a.remoteAgent_attachmentsUnsupported_error():null}function _n(e){return I(e?.placement?.target)&&he(e,fe(e))==="starting"}function vn(e,t){if(!I(e?.placement?.target))return!1;const r=fe(e,t);return r?.cloud?.state==="resuming"&&he(e,r)===null}const h="",q="cloud:";function X(e){return`${q}${e}`}function D(e){return e?.startsWith(q)&&e.slice(q.length)||null}const An=X("e2b");function sr(e,t){return e?.find(r=>X(r.cloudMachineId)===t&&r.unavailableReason===null)}const nr=new Set(["connected","disconnected"]);function ir(e){switch(e){case"unreachable":return a.remoteMachines_state_unreachable_label();case"revoked":return a.remoteMachines_state_revoked_label();case"update-required":return a.remoteMachines_state_updateRequired_label();default:return}}function Z(e){return nr.has(e.state)}function ar({backendLabel:e,backendPlatform:t,machines:r,cloud:s,orchestrator:n=!1}){const o=[n?{id:h,label:a.remoteMachines_startOn_firstAvailable_label(),platform:null,disabled:!1,hint:a.remoteMachines_startOn_firstAvailable_hint()}:{id:h,label:e,platform:A(t?.os,t?.arch),disabled:!1},...r.map(c=>{const l=A(c.platform?.os,c.platform?.arch);return Z(c)?{id:c.id,label:c.name,platform:l,disabled:!1}:{id:c.id,label:c.name,platform:l,disabled:!0,reason:ir(c.state)}})];for(const c of s??[])o.push({id:X(c.cloudMachineId),label:c.label,platform:null,kind:"cloud",disabled:c.unavailableReason!==null,...c.unavailableReason?{reason:c.unavailableReason}:c.needsProfile?{hint:a.cloudMachines_startOn_hint()}:{}});return o}function kn(e){return e.find(t=>t.id===h)?.label??""}function En(e,t,r){if(e!==h)return D(e)?void 0:e;if(r)return t.find(s=>s.id!==h&&s.kind!=="cloud"&&!s.disabled)?.id}function or({remoteMachinesVisible:e,supported:t,machines:r,cloud:s}){return e&&t&&(r.some(Z)||(s??[]).some(n=>n.unavailableReason===null))}function cr(e,t,r){if(!e)return h;if(D(e))return sr(r,e)?e:h;const s=t.find(n=>n.id===e);return s&&Z(s)?s.id:h}function Mn(e,{cloudEntries:t=!1,providerOf:r}={}){const s=D(e);return s?t&&r?.(s)==="northflank"?{target:"cloud",checkout:"isolated",cloudMachineId:s}:t?{target:"e2b",checkout:"isolated",cloudMachineId:s}:{target:"e2b",checkout:"isolated"}:e?{target:"remote",checkout:"isolated",nodeId:e}:void 0}function yn({groups:e,providerRef:t,model:r}){const s=c=>c.options.filter(l=>!l.disabled),n=e.find(c=>c.key===t),o=n?s(n):[];if(r){const c=Ve(r).modelId;if(o.some(l=>l.value===c))return null}else if(o.length>0)return null;if(n&&o.length>0)return{providerId:n.key,modelId:o[0].value};for(const c of e){if(c.key==="default")continue;const l=s(c);if(l.length>0)return{providerId:c.key,modelId:l[0].value}}return null}function lr(e,t,r,s){const n=e.map(P),o=n.indexOf(t),c=n.indexOf(r);if(o<0||c<0||o===c)return null;let l=c+(s==="after"?1:0);if(o<l&&(l-=1),l===o)return null;const p=[...e],[b]=p.splice(o,1);return p.splice(l,0,b),p.map($t)}function Rn(e,t,r){const s=e.findIndex(o=>P(o)===t),n=e[s+r];return s<0||!n?null:lr(e,t,P(n),r===-1?"before":"after")}function dr(e,t){if(e===h)return"local";const r=t==="cloud"?D(e):null;return P(r?{kind:"cloud",cloudMachineId:r}:{kind:"machine",nodeId:e})}function ne(e,t){const r=new Map(t.map((n,o)=>[P(n),o])),s=n=>r.get(dr(n.id,n.kind))??t.length;return e.map((n,o)=>({option:n,index:o})).sort((n,o)=>s(n.option)-s(o.option)||n.index-o.index).map(({option:n})=>n)}const Y=i.createSelector(e=>wt.select(e)&&e.remoteMachines?.supported===!0),wn=i.createSelector(e=>Y.select(e)&<.select(e)&&!oe.select(e)),be=i.createSelector(e=>Y.select(e)&&e.remoteMachines.machineOrder===!0&&e.remoteMachines.order!==null),ie=i.createSelector(e=>be.select(e)?e.remoteMachines.order??[]:[]),Cn=i.createSelector(e=>e.remoteMachines.orderSaving!==null),J=i.createSelector(e=>Object.values(e.remoteMachines?.machines??{}).sort((t,r)=>t.name.localeCompare(r.name))),Pn=i.createSelector(e=>e.remoteMachines.localFingerprint),In=i.createSelector(e=>e.remoteMachines.pending),On=i.createSelector(e=>e.remoteMachines.failures),Tn=i.createSelector(e=>e.remoteMachines.executorBackends??[]),ur=i.createSelector((e,t)=>{if(t===Ue)return a.layout_daemonStatus_localConnection_label();const r=_(e.connections.connections,t);return r?dt(r):t}),pr=i.createSelector(e=>ur.select(e,e.connections.windowBackendId)),Fn=i.createSelector((e,t)=>(t?e.remoteMachines.machines[t]??e.cloudMachines?.machines[t]:void 0)??null),Ln=i.createSelector((e,t)=>{const r=e.providerSettings?.profiles;return ut({catalogProfiles:Je.select(e,t),defaultRemoteIncompatibility:Ye.select(e,t),defaultRemoteLaunch:Ze.select(e,t),profileDefaults:Object.values(r?.defaults??{}),profilesLoadStatus:r?.loadStatus??"idle"})}),Dn=i.createSelector(e=>Object.fromEntries(Object.values(e.providerSettings?.profiles?.defaults??{}).map(t=>[t.baseProviderId,t.env.length>0]))),Se=i.createSelector(e=>or({remoteMachinesVisible:Y.select(e),supported:e.remoteMachines?.initialAgentPlacement===!0,machines:J.select(e),cloud:K(e)}));function fr(e){const t=_(e.connections.connections,e.connections.windowBackendId);return t?.hostOs?{os:t.hostOs,arch:t.hostArch}:void 0}const gr=i.createSelector(e=>{const t=oe.select(e),r=ar({backendLabel:pr.select(e),backendPlatform:fr(e),machines:J.select(e),cloud:K(e),orchestrator:t});if(!be.select(e))return r;if(!t)return ne(r,ie.select(e));const[s,...n]=r;return[s,...ne(n,ie.select(e))]}),xn=i.createSelector(e=>Se.select(e)?gr.select(e):[]),Nn=i.createSelector(e=>e.remoteMachines?.initialAgentPlacement===!0),Wn=i.createSelector((e,t,r)=>Se.select(e)?cr(t,J.select(e),_e(e,r)):h);function _e(e,t){const r=K(e);if(!r||!t)return r;const s=e.cloudMachines?.providers??{};return r.map(n=>{if(n.unavailableReason)return n;const o=pt(e,t,s[n.cloudMachineId]??null);return o?{...n,unavailableReason:o}:n})}const Bn=i.createSelector((e,t)=>_e(e,t)),hr=z("WorkspaceValidation");async function Vn(e,t=!1,r=!1){if(!e||e.trim().length===0)return{valid:!1,error:a.workspace_validation_repoPathRequired_error(),suggestion:a.workspace_validation_repoPathRequired_suggestion()};const s=e.trim();return mr(s)?Sr(s):_r(s,t,r)}function mr(e){return[/^https?:\/\/github\.com\//i,/^git@github\.com:/i,/^github\.com\//i,/^([a-zA-Z0-9\-_]+)\/([a-zA-Z0-9\-_\.]+)$/].some(r=>r.test(e.trim()))}function br(e){const t=e.trim(),r=[/^https?:\/\/github\.com\/([^\/]+)\/([^\/]+)$/i,/^git@github\.com:([^\/]+)\/([^\/]+)$/i,/^github\.com\/([^\/]+)\/([^\/]+)$/i];for(const n of r){const o=t.match(n);if(o){const c=o[2].replace(/\.git$/,"");return c?{owner:o[1],repo:c}:null}}const s=t.match(/^([a-zA-Z0-9\-_]+)\/([a-zA-Z0-9\-_\.]+)$/);if(s&&!t.includes("\\")&&!t.includes(":")){const n=s[2].replace(/\.git$/,"");return n?{owner:s[1],repo:n}:null}return null}async function Sr(e){return br(e)?{valid:!0,warning:a.workspace_validation_githubCloneLocally_warning()}:{valid:!1,error:a.workspace_validation_invalidGithubUrl_error(),suggestion:a.workspace_validation_invalidGithubUrl_suggestion()}}async function _r(e,t=!1,r=!1){if(e.includes("\0"))return{valid:!1,error:a.workspace_validation_nullCharacters_error()};if(!e.startsWith("/")&&!e.startsWith("~")&&!e.startsWith(".")&&!e.includes(":\\")&&!/^[a-zA-Z]:\//.test(e))return{valid:!1,error:a.workspace_validation_pathNotAbsolute_error(),suggestion:a.workspace_validation_pathNotAbsolute_suggestion()};if(typeof window<"u"&&window.electronAPI)try{const s=await W("file:getDirectoryStatus",{path:e});if(s.success&&s.data){const c=s.data;return c.exists?c.isDirectory?c.isGitRepo?{valid:!0,isNewRepo:!1,directoryStatus:c}:c.isSubdirectoryOfGitRepo?{valid:!0,isNewRepo:!1,directoryStatus:c,warning:a.workspace_validation_insideParentRepo_warning({path:c.parentGitRoot??""})}:r?{valid:!0,isNewRepo:!1,directoryStatus:c}:t?c.isEmpty?{valid:!0,isNewRepo:!0,directoryStatus:c,warning:a.workspace_validation_emptyDirInit_warning()}:{valid:!0,isNewRepo:!0,directoryStatus:c,warning:a.workspace_validation_nonGitDirInit_warning()}:{valid:!1,error:a.workspace_repoSelector_notGitRepository_label(),directoryStatus:c}:{valid:!1,error:a.workspace_validation_notDirectory_error(),suggestion:a.workspace_validation_notDirectory_suggestion(),directoryStatus:c}:t?{valid:!0,isNewRepo:!0,directoryStatus:c,warning:a.workspace_validation_willCreateRepo_warning()}:{valid:!1,error:a.workspace_validation_dirNotExist_error(),suggestion:a.workspace_validation_dirNotExist_suggestion(),directoryStatus:c}}if(!(await W("file:exists",{path:e})).exists)return t?{valid:!0,isNewRepo:!0,warning:a.workspace_validation_willCreateRepo_warning()}:{valid:!1,error:a.workspace_validation_dirNotExist_error(),suggestion:a.workspace_validation_dirNotExistLegacy_suggestion()};const o=await W("git:isRepository",{path:e});if(!t&&o?.isRepository!==!0)return{valid:!1,error:o?.isRepository===!1?a.workspace_repoSelector_notGitRepository_label():a.workspace_compactInitializer_gitCheckUnknown_label()};if(!o.isRepository)return{valid:!0,isNewRepo:!0,warning:a.workspace_validation_nonGitInit_warning()}}catch(s){if(hr.warn("Could not validate path existence",s),!t)return{valid:!1,error:a.workspace_compactInitializer_gitCheckUnknown_label()}}return{valid:!0,isNewRepo:!1}}function Un(e){if(!e||e.trim().length===0)return{valid:!0};const t=e.trim();return/[\s~^:?*\[\]\\]/.test(t)?{valid:!1,error:a.workspace_validation_branchPrefixInvalidChars_error(),suggestion:a.workspace_validation_branchChars_suggestion()}:t==="."||t===".."||t.startsWith(".")?{valid:!1,error:a.workspace_validation_branchPrefixDot_error()}:t.includes("..")||t.includes("//")?{valid:!1,error:a.workspace_validation_branchPrefixConsecutive_error()}:t.startsWith("/")?{valid:!1,error:a.workspace_validation_branchPrefixSlash_error()}:t.endsWith(".lock")?{valid:!1,error:a.workspace_validation_branchPrefixLock_error()}:t.length>50?{valid:!1,error:a.workspace_validation_branchPrefixTooLong_error()}:{valid:!0}}function Gn(e){if(!e||e.trim().length===0)return"";let t=e.trim().replace(/^[./]+/,"").replace(/[\s~^:?*\[\]\\]/g,"-").replace(/\.{2,}/g,"-").replace(/\/{2,}/g,"/").replace(/-{2,}/g,"-").replace(/^-+/,"").replace(/\.lock$/,"").toLowerCase();return t.length>0&&!t.endsWith("/")&&!t.endsWith("-")&&(t=t.includes("/")?`${t}/`:`${t}/`),t}function qn(e){if(!e||e.trim().length===0)return{valid:!1,error:a.workspace_validation_branchNameRequired_error()};const t=e.trim();return/[\s~^:?*\[\]\\]/.test(t)?{valid:!1,error:a.workspace_validation_branchNameInvalidChars_error(),suggestion:a.workspace_validation_branchChars_suggestion()}:["HEAD",".",".."].includes(t)?{valid:!1,error:a.workspace_validation_branchNameReserved_error()}:t.includes("..")||t.includes("//")?{valid:!1,error:a.workspace_validation_branchNameConsecutive_error()}:t.startsWith("/")||t.endsWith("/")?{valid:!1,error:a.workspace_validation_branchNameSlash_error()}:t.endsWith(".lock")?{valid:!1,error:a.workspace_validation_branchNameLock_error()}:{valid:!0}}function Hn(e){return!e||e.trim().length===0?{valid:!0}:e.trim().length>1e5?{valid:!1,error:a.workspace_validation_promptTooLong_error(),suggestion:a.workspace_validation_promptTooLong_suggestion()}:{valid:!0}}function jn(e){const t=e.toLowerCase();return t.includes("maxbuffer")?a.workspace_gitError_maxBuffer():t.includes("clone")&&t.includes("timed out")?a.workspace_gitError_cloneTimeout():t.includes("json-rpc request timed out: workspace.create")?a.workspace_gitError_createTimeout():t.includes("timed out")&&["git","clone","fetch","worktree","pull","push","rebase","merge"].some(r=>t.includes(r))?a.workspace_gitError_gitTimeout():t.includes("git clone failed")?t.includes("could not read from remote")?a.workspace_gitError_cloneRemote():t.includes("authentication")||t.includes("permission denied")||t.includes("access denied")?a.workspace_gitError_cloneAuth():a.workspace_gitError_cloneFailed():t.includes("could not resolve any ref to create worktree")?a.workspace_gitError_worktreeRef():t.includes("failed to write file")?t.includes("eacces")||t.includes("permission denied")?a.workspace_gitError_writePermission():t.includes("enospc")||t.includes("disk space")?a.workspace_gitError_diskSpaceFree():t.includes("enoent")||t.includes("no such file")?a.workspace_gitError_writeNoEnt():e:t.includes("failed to read file")?t.includes("enoent")||t.includes("no such file")?a.workspace_gitError_readNotFound():t.includes("eacces")||t.includes("permission denied")?a.workspace_gitError_readPermission():e:t.includes("permission denied")?a.workspace_gitError_permissionDenied():t.includes("not found")||t.includes("enoent")?a.workspace_gitError_notFound():t.includes("already exists")?a.workspace_gitError_alreadyExists():t.includes("network")||t.includes("etimedout")?a.workspace_gitError_network():t.includes("authentication")||t.includes("401")?t.includes("private repositor")?e:a.workspace_gitError_authFailed():t.includes("rate limit")||t.includes("403")?a.workspace_gitError_rateLimit():t.includes("disk space")||t.includes("enospc")?a.workspace_gitError_diskSpace():e}const vr=["idle","exited"];function Ar(e){return e===void 0||!vr.includes(e)}function zn(e){return e.status==="restarting"?"restarting":Ar(e.status)?"running":e.status==="idle"?"idle":e.exitCode===0?"succeeded":e.exitCode===null||e.exitCode===void 0?"exited":e.exitCode>=128?"stopped":"failed"}function kr(e){return e.engine==="os"?"os":e.isLoading||e.keyConfigured[e.provider]===!0?"daemon":e.osEngineAvailable?"os":"unavailable"}const Kn=i.createSelector(e=>e.voiceSettings.isLoading),$n=i.createSelector(e=>e.voiceSettings.available),Qn=i.createSelector(e=>e.voiceSettings.provider),Xn=i.createSelector(e=>e.voiceSettings.engine),Zn=i.createSelector(e=>e.voiceSettings.osEngineAvailable),Yn=i.createSelector(e=>e.voiceSettings.keyConfigured),Jn=i.createSelector(e=>e.voiceSettings.vocabulary),ei=i.createSelector(e=>e.voiceSettings.openaiModel),ti=i.createSelector(e=>e.voiceSettings.language),ri=i.createSelector(e=>e.voiceSettings.workspaceVocabularyMaxTerms),si=i.createSelector(e=>e.voiceSettings.inputDeviceId),ni=i.createSelector(e=>e.voiceSettings.inputDevices),ii=i.createSelector(e=>e.voiceSettings.busyProvider),ai=i.createSelector(e=>e.voiceSettings.error),oi=i.createSelector(e=>et.select(e)?"unavailable":kr(e.voiceSettings)),H="intent.voice.inputDevice";let j;function Er(){if(j!==void 0)return j;try{const e=localStorage.getItem(H);return typeof e=="string"&&e!==""?e:null}catch{return null}}function ci(e){j=e;try{e===null?localStorage.removeItem(H):localStorage.setItem(H,e)}catch{}}let F=null;function li(e){F=e}function di(){const e=F;return F=null,e}function Mr(){F=null}const yr=300,Rr=300;class wr{constructor(t){d(this,"holdThresholdMs");d(this,"doublePressWindowMs");d(this,"onRecordStart");d(this,"onRecordStop");d(this,"currentState","idle");d(this,"timer",null);this.holdThresholdMs=t.holdThresholdMs??yr,this.doublePressWindowMs=t.doublePressWindowMs??Rr,this.onRecordStart=t.onRecordStart,this.onRecordStop=t.onRecordStop}get state(){return this.currentState}keyDown(){switch(this.currentState){case"idle":this.currentState="first-press",this.armTimer(this.holdThresholdMs,()=>{this.currentState="holding"}),this.onRecordStart();break;case"await-second-press":this.clearTimer(),this.currentState="second-press",this.armTimer(this.holdThresholdMs,()=>{this.currentState="holding-send"});break;case"latched":this.currentState="latched-press";break;case"latched-await-second":this.clearTimer(),this.currentState="draining",this.onRecordStop({stopReason:"double-press",autoSend:!0});break}}keyUp(){switch(this.currentState){case"first-press":this.clearTimer(),this.currentState="await-second-press",this.armTimer(this.doublePressWindowMs,()=>{this.currentState="latched"});break;case"holding":this.currentState="idle",this.onRecordStop({stopReason:"hold-release",autoSend:!1});break;case"second-press":this.clearTimer(),this.currentState="idle",this.onRecordStop({stopReason:"double-press",autoSend:!0});break;case"holding-send":this.currentState="idle",this.onRecordStop({stopReason:"double-hold-release",autoSend:!0});break;case"latched-press":this.currentState="latched-await-second",this.armTimer(this.doublePressWindowMs,()=>{this.currentState="idle",this.onRecordStop({stopReason:"latch-stop",autoSend:!1})});break;case"draining":this.currentState="idle";break}}reset(){this.clearTimer(),this.currentState="idle"}armTimer(t,r){this.clearTimer(),this.timer=setTimeout(()=>{this.timer=null,r()},t)}clearTimer(){this.timer!==null&&clearTimeout(this.timer),this.timer=null}}let L=null;function ui(e){L=e}function pi(){const e=L;return L=null,e}function Cr(){L=null}const Pr=12e4,Ir=["audio/webm;codecs=opus","audio/webm"];function fi(){return typeof navigator<"u"&&typeof navigator.mediaDevices?.getUserMedia=="function"&&typeof MediaRecorder<"u"}function Or(e){return e?{audio:{deviceId:{ideal:e}}}:{audio:!0}}function Tr(){if(!(typeof MediaRecorder>"u"||typeof MediaRecorder.isTypeSupported!="function"))return Ir.find(e=>MediaRecorder.isTypeSupported(e))}class Fr{constructor(t){d(this,"maxDurationMs");d(this,"now");d(this,"callbacks");d(this,"deviceId");d(this,"currentState","idle");d(this,"recorder",null);d(this,"stream",null);d(this,"chunks",[]);d(this,"startedAt",0);d(this,"maxTimer",null);d(this,"discardRequested",!1);d(this,"cancelRequested",!1);this.maxDurationMs=t.maxDurationMs??Pr,this.now=t.now??Date.now,this.callbacks={onFinished:t.onFinished,onError:t.onError},this.deviceId=t.deviceId??null}get state(){return this.currentState}async start(){if(this.currentState!=="idle")return"discarded";this.currentState="starting";let t;try{t=await navigator.mediaDevices.getUserMedia(Or(this.deviceId))}catch(n){const o=this.discardRequested;return this.currentState="stopped",o||this.callbacks.onError(n),o?"discarded":"error"}if(this.discardRequested){for(const n of t.getTracks())n.stop();return this.currentState="stopped","discarded"}this.stream=t;const r=Tr(),s=r?new MediaRecorder(t,{mimeType:r}):new MediaRecorder(t);return this.recorder=s,s.ondataavailable=n=>{n.data&&n.data.size>0&&this.chunks.push(n.data)},s.onstop=()=>this.handleRecorderStop(),s.onerror=n=>this.handleRecorderError(n),s.start(),this.startedAt=this.now(),this.currentState="recording",this.maxTimer=setTimeout(()=>this.stop(),this.maxDurationMs),"recording"}stop(){if(this.currentState==="starting"){this.discardRequested=!0;return}this.currentState==="recording"&&this.recorder?.stop()}cancel(){if(this.currentState==="starting"){this.discardRequested=!0;return}this.currentState==="recording"&&(this.cancelRequested=!0,this.recorder?.stop())}handleRecorderStop(){const t=this.now()-this.startedAt,r=this.recorder?.mimeType||"audio/webm",s=this.chunks,n=this.cancelRequested;this.teardown(),!n&&this.callbacks.onFinished({blob:new Blob(s,{type:r}),durationMs:t,mimeType:r})}handleRecorderError(t){const r=t?.error??t;this.teardown(),this.callbacks.onError(r)}teardown(){this.maxTimer!==null&&clearTimeout(this.maxTimer),this.maxTimer=null,this.recorder&&(this.recorder.ondataavailable=null,this.recorder.onstop=null,this.recorder.onerror=null),this.recorder=null;for(const t of this.stream?.getTracks()??[])t.stop();this.stream=null,this.chunks=[],this.currentState="stopped"}}const Lr=300;function Dr(e){const t=e?.name;return t==="NotAllowedError"||t==="SecurityError"}const xr={stopReason:"manual",autoSend:!1};let g=null,S=null,k=0,C=null;const x=new wr({onRecordStart:()=>{C&&Nr(C)},onRecordStop:e=>{ve(C,e)}});function gi(){return g!==null}function hi(){return g}function mi(e){C=e,k+=1,k===1&&x.keyDown()}function bi(e){C=e,k!==0&&(k-=1,k===0&&x.keyUp())}function Nr(e){if(g!==null)return;Cr(),Mr();const t=new Fr({deviceId:Er(),onFinished:r=>{g===t&&(g=null);const s=S??{stopReason:"auto-stop",autoSend:!1},n=S!==null;if(S=null,e.dispatch(O()),n||x.reset(),r.durationMs<Lr){s.autoSend&&e.dispatch(G());return}e.dispatch(Ge({...r,stopReason:s.stopReason,autoSend:s.autoSend}))},onError:r=>{g===t&&(g=null),S=null,e.dispatch(O()),e.showHint(Dr(r)?a.hardwareConsole_ptt_micDenied_message():a.hardwareConsole_ptt_recordingFailed_message())}});g=t,e.dispatch(qe()),t.start().then(r=>{if(r!=="recording"&&(g===t&&(g=null),r==="discarded")){const s=S?.autoSend===!0;S=null,e.dispatch(O()),s&&e.dispatch(G())}})}function ve(e,t){const r=g;if(r===null){t.autoSend&&e?.dispatch(G());return}S=t,r.stop()}function Si(){ve(null,xr)}function _i(e){x.reset(),k=0,S=null;const t=g;t!==null&&(g=null,t.cancel(),e.dispatch(O()))}const Wr=z("HardwareConsoleVoiceSetupToast"),Br="hardware-console-voice-setup";let U=null;function Vr(){return U||(U=Fe(()=>Promise.resolve().then(()=>Pt),void 0,import.meta.url).then(e=>e.notify)),U}function Ur(){Ct("/settings?tab=connections#voice").catch(e=>{Wr.error("Failed to open voice settings from setup toast",e)})}function Gr(){return{label:a.hardwareConsole_voice_openSettings_label(),onClick:()=>Ur()}}function vi(){Vr().then(e=>{e.error(a.hardwareConsole_voice_noKey_error(),{id:Br,action:Gr()})})}const Ai=i.createSelector(e=>e.externalEditors.selectedAction),qr=i.createSelector(e=>e.externalEditors.editors),Hr=i.createSelector(e=>{const t=y(qr.select(e)),r=e.externalEditors.editorOrder??[];if(!r.length)return t;const s=new Map(t.map(c=>[c.id,c])),n=r.flatMap(c=>{const l=s.get(c);return l?[l]:[]}),o=new Set(r);return[...n,...t.filter(({id:c})=>!o.has(c))]}),ki=i.createSelector(e=>e.externalEditors.editorOrder??[]),Ei=i.createSelector(e=>e.externalEditors.loading),Mi=i.createSelector(e=>e.externalEditors.lastFetched),jr=i.createSelector(e=>e.externalEditors.hiddenEditorIds),yi=i.createSelector((e,t)=>{if(!(t?tt.select(e,t):rt.select(e)))return[];const s=jr.select(e);return Hr.select(e).filter(n=>n.installed&&!s.includes(n.id))});function Ri(e,t){if(!e||!t||t===e.providerId)return!1;const r=e.providerSettings[t];return!!(r&&[r.defaultModel,...Object.values(r.typeOverrides??{})].some(s=>typeof s=="string"&&s.includes(":")))}let zr=0;function Kr(e,t){const r=++zr;return i.dispatch(je(e,t,r)),r}function wi(e,t,r){i.dispatch(He(e,t,r))}async function Ae(e,t,r,s){const n=crypto.randomUUID(),o=s?.source??"control";try{return(await i.dispatch(ze({requestId:n,consumerId:o,agentId:e,workspaceId:t,operation:r,connection:ce.select(i.state)},{...s,intent:s?.intent??Kr(e,t)}))).status==="success"}finally{i.dispatch(Ke(n,o))}}async function Ci(e,t,r,s,n){return Ae(e,t,{kind:"effort",effort:r,previous:s},n)}async function Pi(e,t,r,s,n){return Ae(e,t,{kind:"reconcile",current:r??null,levels:s},n)}const $r=i.createSelector((e,t)=>y(e.agentModel.mutations).filter(r=>r.consumerId===t)),Ii=i.createSelector((e,t)=>$r.select(e,t).some(r=>r.status==="pending")),Oi=i.createSelector((e,t,r)=>{const s=e.agentSessions.byAgentId[t],n=st.select(e,t),o=ft.select(e,t),c=e.daemonHealth.stats?.protocolVersion,l=gt(c),p=l?ht(s?.model,null,o):s?.model;return{session:s,providerId:n,levels:o,legacy:l,identity:JSON.stringify([p,n]),connection:ce.select(e),canWrite:!!s&&s.workspaceId===r&&!nt.select(e,r)}});function Qr(e,t,r=!1){return e!=="auggie"||t===!0||r}const Ti=i.createSelector(e=>mt.select(e)?null:$.select(e)),Xr=i.createSelector(e=>e.providerCatalog?.workspaceEpoch??0),m=i.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]:void 0),Fi=i.createSelector(e=>Object.keys(e.providerCatalog?.byWorkspaceId??{})),Li=i.createSelector((e,t)=>!!m.select(e,t)&&e.providerCatalog.workspaceSnapshotEpochs?.[t]===Xr.select(e)),ke=i.createSelector((e,t)=>t?m.select(e,t)?.catalog.providers??[]:it.select(e)),Ee=i.createSelector((e,t)=>{if(!t)return le.select(e);const r=m.select(e,t)?.settings.find(s=>s.path==="model.defaultProvider")?.value;return typeof r=="string"?r:""}),ee=i.createSelector((e,t)=>{if(!t)return bt.select(e);const r=m.select(e,t)?.settings.find(s=>s.path==="providers.enabled")?.value;return r&&typeof r=="object"?r:{}}),Me=i.createSelector((e,t)=>{if(!t)return St.select(e);const r=ee.select(e,t),s=Ee.select(e,t),n=m.select(e,t)?.readiness??{};return ke.select(e,t).filter(o=>o.visible&&(!o.canBeDisabled||r[o.id]||o.id===s)&&n[o.id]?.available).map(o=>o.id)}),Di=i.createSelector((e,t)=>{const r=ee.select(e,t),s=t?m.select(e,t)?.readiness??{}:$.select(e);return ke.select(e,t).filter(n=>Qr(n.id,s[n.id]?.available,r[n.id]===!0)).map(n=>n.id)}),xi=i.createSelector((e,t)=>t?Me.select(e,t):_t.select(e)),Ni=i.createSelector((e,t)=>v.select(e,t)),Wi=i.createSelector((e,t)=>t?!!m.select(e,t):vt.select(e)),Bi=i.createSelector((e,t)=>{if(!t)return At.select(e);const r=m.select(e,t)?.settings??[],s=Ee.select(e,t),n=r.find(l=>l.path==="model.providerDefaults")?.value,o=n&&typeof n=="object"?n[s]:void 0;if(typeof o=="string")return o;const c=r.find(l=>l.path==="model.default")?.value;return typeof c=="string"?c:""}),Vi=i.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).flatMap(([r,s])=>s.warning?[[r,s.warning]]:[])):kt.select(e)),Ui=i.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).map(([r,s])=>[r,s.stale===!0])):Et.select(e)),Gi=i.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).flatMap(([r,s])=>s.warning&&s.warningKind?[[r,s.warningKind]]:[])):Mt.select(e)),qi=i.createSelector((e,t,r)=>{if(!r)return yt.select(e,t);const s=ee.select(e,r),n=m.select(e,r);return Me.select(e,r).filter(o=>o!==t&&(s[o]||n?.catalog.providers.find(c=>c.id===o)?.canBeDisabled===!1)&&Rt(o,n?.readiness[o]?.authenticated))}),Hi=i.createSelector((e,t)=>t?m.select(e,t)?.readiness??{}:$.select(e)),Zr={},ji=i.createSelector(e=>e.providerSettings?.profiles?.status??Zr),zi=i.createSelector(e=>e.directoryPicker.listing),Ki=i.createSelector(e=>e.directoryPicker.loading),$i=i.createSelector(e=>e.directoryPicker.error),Qi=i.createSelector(e=>e.directoryPicker.pathError),Xi=i.createSelector(e=>e.directoryPicker.createError),ae={},Yr=i.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]?.mcpServers??[]:e.mcpSettings.servers),Zi=i.createSelector((e,t,r)=>{const s=e.providerCatalog?.byWorkspaceId?.[t];return s?s.mcpServers?.find(n=>n.id===r)?.name:e.providerCatalog?.mcpServerNamesByWorkspaceId?.[t]?.[r]}),Yi=i.createSelector(e=>e.mcpSettings.loading),Ji=i.createSelector(e=>e.mcpSettings.error),ea=i.createSelector(e=>e.mcpSettings.mutationError??null),ta=i.createSelector(e=>e.mcpSettings.enabled),Jr=i.createSelector(e=>e.mcpSettings.disabledServers),es=i.createSelector(e=>e.mcpSettings.statusMap),ts=i.createSelector(e=>e.mcpSettings.toolsMap),rs=i.createSelector((e,t)=>{if(!t)return e.mcpSettings.errorMessages;const r=e.providerCatalog?.byWorkspaceId?.[t],s=new Map(r?.mcpServers?.map(n=>[n.id,R(n)])??[]);return Object.fromEntries((r?.mcpStatuses??[]).flatMap(n=>{const o=s.get(n.serverId);return o&&n.lastError?[[o,n.lastError]]:[]}))}),ss=i.createSelector((e,t)=>t?e.mcpSettings.byWorkspaceId[t]?.disabledServers??ae:ae),ra=i.createSelector((e,t)=>Object.keys(ss.select(e,t))),sa=i.createSelector(e=>{const t=Yr.select(e),r=es.select(e),s=ts.select(e),n=Jr.select(e),o=rs.select(e);return t.map(c=>{const l=R(c)in n,p=s[R(c)]||[];let b=r[R(c)]||"disconnected";return l&&(b="disabled"),{...c,disabled:l,status:b,tools:p,toolCount:p.length,errorMessage:o[R(c)]}})});i.createSelector((e,t)=>e.mcpSettings.errorMessages[t]);const na=i.createSelector(e=>e.mcpSettings.lastImportedCount),ia=i.createSelector(e=>e.mcpSettings.advancedSaveStatus),aa=i.createSelector(e=>e.mcpSettings.advancedSaveError),oa=["agentFeatures.backgroundHooks","agentFeatures.hostExec","agentFeatures.scripts","agentFeatures.terminalAccess","agentFeatures.browserAutomation","agentFeatures.desktopControl","agentFeatures.richChatBlocks","agentFeatures.structuredQuestions","agentFeatures.secretRequests","agentFeatures.attentionRequests","agentFeatures.stateSnapshot","agentFeatures.prMonitor","agentFeatures.taskGraph","agentFeatures.peerAgents","agentFeatures.mcpTools"],ns=[{path:"agentFeatures.backgroundHooks",label:()=>a.settings_agentFeatures_backgroundHooks_label(),description:()=>a.settings_agentFeatures_backgroundHooks_description(),defaultValue:!0},{path:"agentFeatures.hostExec",label:()=>a.settings_agentFeatures_hostExec_label(),description:()=>a.settings_agentFeatures_hostExec_description(),defaultValue:!0},{path:"agentFeatures.scripts",label:()=>a.settings_agentFeatures_scripts_label(),description:()=>a.settings_agentFeatures_scripts_description(),defaultValue:!0},{path:"agentFeatures.terminalAccess",label:()=>a.settings_agentFeatures_terminalAccess_label(),description:()=>a.settings_agentFeatures_terminalAccess_description(),defaultValue:!0},{path:"agentFeatures.browserAutomation",label:()=>a.settings_agentFeatures_browserAutomation_label(),description:()=>a.settings_agentFeatures_browserAutomation_description(),defaultValue:!0},{path:"agentFeatures.desktopControl",label:()=>a.settings_agentFeatures_desktopControl_label(),description:()=>a.settings_agentFeatures_desktopControl_description(),defaultValue:!0},{path:"agentFeatures.richChatBlocks",label:()=>a.settings_agentFeatures_richChatBlocks_label(),description:()=>a.settings_agentFeatures_richChatBlocks_description(),defaultValue:!0},{path:"agentFeatures.structuredQuestions",label:()=>a.settings_agentFeatures_structuredQuestions_label(),description:()=>a.settings_agentFeatures_structuredQuestions_description(),defaultValue:!0},{path:"agentFeatures.secretRequests",label:()=>a.settings_agentFeatures_secretRequests_label(),description:()=>a.settings_agentFeatures_secretRequests_description(),defaultValue:!1},{path:"agentFeatures.attentionRequests",label:()=>a.settings_agentFeatures_attentionRequests_label(),description:()=>a.settings_agentFeatures_attentionRequests_description(),defaultValue:!0},{path:"agentFeatures.stateSnapshot",label:()=>a.settings_agentFeatures_stateSnapshot_label(),description:()=>a.settings_agentFeatures_stateSnapshot_description(),defaultValue:!0},{path:"agentFeatures.prMonitor",label:()=>a.settings_agentFeatures_prMonitor_label(),description:()=>a.settings_agentFeatures_prMonitor_description(),defaultValue:!0},{path:"agentFeatures.taskGraph",label:()=>a.settings_agentFeatures_taskGraph_label(),description:()=>a.settings_agentFeatures_taskGraph_description(),defaultValue:!0},{path:"agentFeatures.peerAgents",label:()=>a.settings_agentFeatures_peerAgents_label(),description:()=>a.settings_agentFeatures_peerAgents_description(),defaultValue:!0},{path:"agentFeatures.mcpTools",label:()=>a.settings_agentFeatures_mcpTools_label(),description:()=>a.settings_agentFeatures_mcpTools_description(),defaultValue:!0}],ca=Object.fromEntries(ns.map(e=>[e.path,e.defaultValue]));export{wi as $,mi as A,bi as B,Pt as C,Ds as D,Mn as E,ns as F,de as G,Ar as H,Qr as I,gi as J,Ri as K,re as L,fi as M,Er as N,gn as O,yn as P,P as Q,A as R,E as S,Kr as T,lr as U,un as V,br as W,fn as X,dn as Y,er as Z,Pi as _,ca as a,Cs as a$,Sn as a0,kr as a1,cr as a2,Gn as a3,ci as a4,Ii as a5,$r as a6,Oi as a7,Ws as a8,qs as a9,nn as aA,Qs as aB,Wn as aC,oi as aD,Tn as aE,Xs as aF,Zs as aG,Bs as aH,Gs as aI,Q as aJ,Ot as aK,Nt as aL,Wt as aM,ue as aN,xt as aO,Tt as aP,It as aQ,Lt as aR,Dt as aS,ws as aT,Is as aU,Os as aV,Fs as aW,Es as aX,ys as aY,Ps as aZ,Rs as a_,ur as aa,xi as ab,Ee as ac,ee as ad,Di as ae,Me as af,ke as ag,Ui as ah,Gi as ai,Vi as aj,qi as ak,Hi as al,Wi as am,Bi as an,Ni as ao,pr as ap,Us as aq,Dn as ar,js as as,Xi as at,$i as au,zi as av,Ki as aw,Qi as ax,ki as ay,Ys as az,oa as b,Qn as b$,Ms as b0,Ts as b1,ks as b2,Ls as b3,tn as b4,jr as b5,Nn as b6,Hr as b7,yi as b8,Ei as b9,J as bA,Y as bB,Ln as bC,wn as bD,Ti as bE,qt as bF,on as bG,cn as bH,sn as bI,an as bJ,$s as bK,rn as bL,v as bM,Hs as bN,Bn as bO,xn as bP,gr as bQ,Se as bR,Vs as bS,ii as bT,Xn as bU,si as bV,ni as bW,Yn as bX,ti as bY,ei as bZ,Zn as b_,Js as ba,en as bb,Mi as bc,Pn as bd,ie as be,Cn as bf,be as bg,aa as bh,ia as bi,Jr as bj,ta as bk,Ji as bl,rs as bm,na as bn,Yi as bo,ea as bp,Yr as bq,sa as br,es as bs,ts as bt,Ai as bu,Ks as bv,ji as bw,Fn as bx,On as by,In as bz,h as c,$n as c0,ai as c1,Kn as c2,Jn as c3,ri as c4,m as c5,Xr as c6,Li as c7,Fi as c8,ra as c9,Zi as ca,li as cb,ui as cc,vi as cd,kn as ce,X as cf,D as cg,En as ch,Nr as ci,Rn as cj,Si as ck,qn as cl,Un as cm,Hn as cn,Vn as co,Gr as cp,ln as cq,An as d,bn as e,_n as f,vn as g,hn as h,fe as i,mn as j,he as k,Ci as l,_i as m,Mr as n,Cr as o,di as p,pi as q,zs as r,Gt as s,Ut as t,pn as u,hi as v,jn as w,zn as x,xs as y,Ns as z};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/etVaBLxV.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/D9jYN6_J.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/BfbZn9QX.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/V9qci_dz.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/Cx31i8ng.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CEsW1euQ.js","/app/immutable/chunks/Dkva_evl.js","/app/immutable/chunks/DknPpgEW.js","/app/immutable/chunks/C_EpV6jU.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/CpHzYkzi.js","/app/immutable/chunks/aQy6qVNs.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DzGNgfrZ.js","/app/immutable/chunks/DzejiLWr.js","/app/immutable/chunks/BaYeKXL3.js","/app/immutable/chunks/DgHZa_R5.js","/app/immutable/chunks/BcbQZUsh.js","/app/immutable/chunks/U6cHmbYS.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/DRZKWEq3.js","/app/immutable/chunks/DGmRhalF.js","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/DHGSAfCZ.js","/app/immutable/chunks/DF1uIj8u.js","/app/immutable/chunks/BWAGtvpD.js","/app/immutable/chunks/7eL9Pgig.js","/app/immutable/chunks/0qEvU7Aj.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/Bgw3O9rE.js","/app/immutable/chunks/DZyAzxxC.js","/app/immutable/chunks/OPvMR-5p.js","/app/immutable/chunks/B4gIvcP2.js","/app/immutable/chunks/CQbtnalz.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/CAUaU8Wh.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/asQ_ruFQ.js","/app/immutable/chunks/DNWBkvFP.js","/app/immutable/chunks/A8_BT67P.js","/app/immutable/chunks/C3NeTp2u.js","/app/immutable/chunks/DTSEdINd.js","/app/immutable/chunks/C-OtpXcF.js","/app/immutable/chunks/D-i7C44m.js","/app/immutable/chunks/ChNPgGKQ.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{Iz as a,nH as I,nx as g,nw as k,m2 as Z,qr as Q,i6 as ee,vf as He,jz as $e,CZ as Be,uM as Ve,nO as Ce,m5 as te,q1 as ze,m4 as Ke,lJ as Je,aM as le,lT as Ye,lZ as Xe,Fx as Ze,CX as Qe,zj as et,nM as tt,m7 as st}from"./BfbZn9QX.js";import{b as rt,p as nt,F as at,z as ot}from"./C3NeTp2u.js";import{aX as V,aT as se,cD as v,cG as ue,co as ct,dr as M,aU as it,cE as lt,dl as ut,o as de,O as dt,dn as pt,c3 as mt,ak as ht,au as ft,ad as St,bC as gt,cA as yt,cY as bt,cm as kt,bD as wt}from"./asQ_ruFQ.js";import{x as It}from"./A8_BT67P.js";import{ah as _t,cN as vt,aX as Ct,av as At,p as Et}from"./ChNPgGKQ.js";import{f as Rt}from"./etVaBLxV.js";import{bo as p,_ as q}from"./D9jYN6_J.js";import{i as w}from"./DNWBkvFP.js";import{I as Tt}from"./CEsW1euQ.js";import{L as P}from"./BDtb6AfX.js";import{an as Pt,k as Ot,h as O,ag as Wt,t as Nt}from"./D-i7C44m.js";import{c as xt}from"./ChTqQfQN.js";import{w as Mt}from"./DRZKWEq3.js";import{r as x}from"./uXuxG9cN.js";import{aN as Lt,O as Dt,R as Ut,x as jt}from"./DF1uIj8u.js";import{M as pe,O as me,h as Ae}from"./Dkva_evl.js";import{d as Gt,o as he,l as fe,s as Se}from"./CIyUrgF0.js";const ar=a.createSelector(e=>e.workspaceShare.open),or=a.createSelector(e=>e.workspaceShare.workspaceId),cr=a.createSelector(e=>{const{open:t,workspaceId:s,session:r}=e.workspaceShare;return t&&s?{workspaceId:s,session:r}:null}),re=a.createSelector(e=>{const{open:t,workspaceId:s,withheld:r}=e.workspaceShare;return!t||!s||r||I(e.workspaceShare,s).inviteWithheld?!1:V.select(e,s)}),ir=a.createSelector(e=>e.workspaceShare.createRequest),lr=a.createSelector(e=>e.workspaceShare.mutationGeneration),ur=a.createSelector(e=>e.workspaceShare.workspaceTitle),dr=a.createSelector(e=>g(e.workspaceShare.members)),pr=a.createSelector((e,t)=>k(e.workspaceShare.members,t)!==void 0),mr=a.createSelector(e=>e.workspaceShare.open&&e.workspaceShare.workspaceId&&!e.workspaceShare.withheld&&!I(e.workspaceShare,e.workspaceShare.workspaceId).inviteWithheld?g(e.workspaceShare.invites).filter(t=>t.workspaceId===e.workspaceShare.workspaceId):[]),hr=a.createSelector(e=>{const{principals:t,members:s}=e.workspaceShare;return g(t).filter(r=>!k(s,r.principalId)&&(r.hostRole===void 0||r.hostRole==="guest"))}),fr=a.createSelector(e=>e.workspaceShare.guestCount),Sr=a.createSelector(e=>e.workspaceShare.guestLimit),gr=a.createSelector(e=>e.workspaceShare.loadStatus==="loading"),yr=a.createSelector(e=>e.workspaceShare.loadError),br=a.createSelector(e=>e.workspaceShare.creating),kr=a.createSelector(e=>e.workspaceShare.createError),wr=a.createSelector(e=>e.workspaceShare.createdLink),Ir=a.createSelector(e=>e.workspaceShare.revokingInviteId),_r=a.createSelector(e=>e.workspaceShare.removingPrincipalId),vr=a.createSelector(e=>e.workspaceShare.addingPrincipalId),Cr=a.createSelector(e=>e.workspaceShare.actionError),Ar=a.createSelector((e,t)=>I(e.workspaceShare,t).loadStatus!=="idle"),Er=a.createSelector((e,t)=>t?g(I(e.workspaceShare,t).members):[]),Rr=a.createSelector((e,t)=>!!t&&!I(e.workspaceShare,t).withheld&&V.select(e,t));a.createSelector((e,t)=>!!t&&I(e.workspaceShare,t).withheld);const Tr=a.createSelector((e,t)=>t?I(e.workspaceShare,t).removingPrincipalId:null);a.createSelector((e,t)=>t?I(e.workspaceShare,t).removeError:null);const Pr=a.createSelector(e=>e.workspaceShare.integrationAuth),Or=a.createSelector(e=>e.workspaceShare.ownerForgeMissing),z=a.createSelector(e=>re.select(e)&&se.select(e)&&e.workspaceShare.sharingContext!==null&&e.workspaceShare.sharingContext===v.select(e)),qt=a.createSelector(e=>z.select(e)?e.workspaceShare.sharingEnabled:null),Wr=a.createSelector(e=>z.select(e)&&e.workspaceShare.sharingChecking),Ft=a.createSelector(e=>z.select(e)&&e.workspaceShare.sharingEnabling),Ht=a.createSelector(e=>z.select(e)?e.workspaceShare.sharingError:null),Nr=a.createSelector(e=>{if(!re.select(e))return!1;const t=e.workspaceShare;return!t.integrationAuthLoaded||se.select(e)&&qt.select(e)===null&&Ht.select(e)===null&&!Ft.select(e)?!0:g(t.members).length===0&&(t.loadStatus==="idle"||t.loadStatus==="loading")}),xr=a.createSelector(e=>re.select(e)&&!!e.workspaceShare.workspaceId&&(se.select(e)||(ge.select(e)?ge.select(e)===ue.select(e)?.principal.id:ct.select(e,e.workspaceShare.workspaceId)))&&ue.select(e)?.capabilities.workspaceGuestRoles===!0),Mr=a.createSelector(e=>e.workspaceShare.pendingRolePrincipalIds),Lr=a.createSelector(e=>e.workspaceShare.roleErrors),ge=a.createSelector(e=>{const t=e.workspaceShare.workspaceId;return t?M.select(e,t)?.ownerPrincipalId??null:null}),$t=a.createSelector(e=>{const t=v.select(e),s=rt.select(e);return{context:t,workspaceIds:t?s.filter(r=>V.select(e,r)):[]}}),Dr=a.createSelector((e,t)=>{const s=I(e.workspaceShare,t);return{context:s.inviteContext,generation:s.inviteGeneration,withheld:s.inviteWithheld}}),Bt=[],Vt=a.createSelector((e,t)=>{const s=v.select(e),r=I(e.workspaceShare,t);if(!s||r.inviteContext!==s||r.inviteWithheld||!V.select(e,t))return Bt;const n=e.presence?.context===s?e.presence.members[t]:void 0,o=new Set(n?g(n).flatMap(i=>i.identity?[JSON.stringify([i.identity.provider,i.identity.host.toLowerCase(),i.identity.externalUserId])]:[]):[]),c=new Set;return g(e.workspaceShare.invites).filter(i=>{if(i.workspaceId!==t||!i.pinLogin?.trim()||i.revokedAt||i.redeemedAt&&!i.reusable||!(Date.parse(i.expiresAt)>r.inviteReceivedAt))return!1;const l=i.pinIdentity??(i.pinGithubUserId!==void 0?{provider:"github",host:"github.com",externalUserId:String(i.pinGithubUserId)}:null);if(n&&i.redeemedByPrincipalId&&k(n,i.redeemedByPrincipalId))return!1;if(!l)return!0;const m=JSON.stringify([l.provider,l.host.toLowerCase(),l.externalUserId]);return o.has(m)||c.has(m)?!1:(c.add(m),!0)})}),Ur=a.createSelector(e=>{const s=$t.select(e).workspaceIds.flatMap(r=>Vt.select(e,r).map(n=>Date.parse(n.expiresAt)));return s.length?Math.min(...s):null});function jr(e){return Object.entries(e).some(([t,s])=>s.available&&It(t,s.authenticated))}const Gr=a.createSelector(e=>e.hostRequirements.git),qr=a.createSelector(e=>e.hostRequirements.node),Fr=a.createSelector(e=>e.hostRequirements.gh),Hr=a.createSelector(e=>e.hostRequirements.checking),$r=a.createSelector(e=>e.hostRequirements.hasCheckedOnce);function Ee(e){const t=e.gitlabAuth?.statusFailed===!0;return _t({labsEnabled:e.userPreferences?.labsPlainFolderWorkspacesEnabled===!0,protocolVersion:e.daemonHealth?.stats?.protocolVersion,githubConnected:e.githubAuth?.isAuthenticated===!0,githubSettled:e.githubAuth?.statusSettled===!0,githubFailed:e.githubAuth?.statusFailed===!0,gitlabConnected:e.gitlabAuth?.isConfigured===!0,gitlabSettled:e.gitlabAuth?.statusReady===!0||t,gitlabFailed:t})}const Br=a.createSelector(Ee),Vr=a.createSelector(e=>e.hostRequirements.node.ok&&(e.hostRequirements.git.available||Ee(e))),zr=a.createSelector(e=>{const t=e.hostRequirements.providerCli;return t?{context:t.context,warnings:g(t.warnings)}:void 0}),Kr="22.0.0";function zt(e){return e.length>15?`${e.slice(0,15)}…`:e}function H(e){return e.name?.trim()||zt(e.clientId)}function Jr(e){const{eligibleClients:t,ownClientId:s,driving:r,pinnedClientId:n}=e,o=t.find(l=>l.clientId===s&&l.connected),c=r!==null&&!r.connected,i=!r||r.clientId===s;return{mode:c?"offline":i?"here":"elsewhere",hostName:r?H(r):o?H(o):"",canSwitchHere:!!(o&&n!==s)}}const Yr=a.createSelector(e=>e?.browserClients?.ownClientId??null),Xr=a.createSelector(e=>e?.browserClients?.ownClientIdConfirmed===!0);a.createSelector(e=>g(e.browserClients.liveClients));const Zr=a.createSelector((e,t)=>t?e?.browserClients?.byWorkspaceId[t]?.liveClientsLoaded??!1:e?.browserClients?.liveClientsLoaded??!1);a.createSelector((e,t)=>k(e.browserClients.liveClients,t));const Qr=a.createSelector((e,t)=>(e?.browserClients?.byWorkspaceId[t]??Z).browserClient),en=a.createSelector((e,t)=>{const s=e?.browserClients?.byWorkspaceId[t];return s?.pinnedClientId!==void 0||s?.browserClient!=null});function X(e){const t=e.prettyHostname??e.hostname??e.name;return{clientId:e.clientId,...t!==void 0?{name:t}:{},connected:!0}}const tn=a.createSelector((e,t)=>{const s=e?.browserClients??Q,r=s.byWorkspaceId[t]?.liveClients??ee(),n=g(r).filter(y=>y.capabilities.browserExec===!0).map(X),o=(s.byWorkspaceId[t]??Z).browserClient,c=s.byWorkspaceId[t],i=c?.pinnedClientId!==void 0?c.pinnedClientId:o?.source==="workspace"?o.clientId:null,l=i===null?Rt(o):void 0;let m=null;if(o?.resolved){const y=k(r,o.resolved.clientId);m=y?X(y):{...o.resolved,connected:!0}}else o?.source==="workspace"?m={clientId:o.clientId,connected:!1}:l&&(m={clientId:l.clientId,connected:!1});return{eligibleClients:n,ownClientId:s.ownClientId??"",routedVia:o?.source==="default"?l?.via:void 0,driving:m,pinnedClientId:i}}),sn=a.createSelector((e,t)=>{const s=e?.browserClients??Q;if(!s.ownClientId||!s.ownClientIdConfirmed)return!1;const r=s.byWorkspaceId[t]?.liveClients??ee(),n=k(r,s.ownClientId);return n!==void 0&&n.capabilities.browserExec!==!0}),rn=a.createSelector((e,t,s)=>{const r=e?.browserClients??Q,n=s?r.byWorkspaceId[s]?.liveClients??ee():r.liveClients,o=s?r.byWorkspaceId[s]?.liveClientsLoaded:r.liveClientsLoaded,c=k(n,t);return c?{name:H(X(c)),connected:!0}:{name:H({clientId:t}),connected:!o}}),nn=a.createSelector((e,t)=>(e?.browserClients?.byWorkspaceId[t]??Z).tabsRevision),an=a.createSelector(e=>Object.entries(e.browserClients?.byWorkspaceId??{}).filter(([,t])=>Object.keys(t.consumers??{}).length>0).map(([t])=>t)),N=new Map;function on(e,t){return N.set(e,t),()=>{N.get(e)===t&&N.delete(e)}}async function cn(e){const t=N.get(e);return t?t():null}function ln(e){N.delete(e)}const Re="From repo config",un="repo-config";function dn(e,t){return t==="repo-config"?p.workspace_setupScriptEditor_fromRepoConfig_name():t==="custom"?p.workspace_setupScriptEditor_custom_name():e}function Te(e){if(!e||typeof e!="object"||Array.isArray(e))return{setupScript:null};const t=e.setupScript;return{setupScript:typeof t=="string"&&t.trim().length>0?t:null}}function Kt(e){let t;try{t=JSON.parse(e)}catch{return null}return Te(t).setupScript}async function pn(e){if(!e)return null;try{const t=await w(Tt.SETUP_SCRIPTS.READ_REPO_CONFIG,{repoPath:e}),s=t?.success?t.data?.content:null;return typeof s=="string"?Kt(s):null}catch{return null}}async function mn(e,t,s){if(!e||!t)return null;try{const{appClient:r}=await q(async()=>{const{appClient:o}=await import("./etVaBLxV.js").then(c=>c.o);return{appClient:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]),import.meta.url),n=await r.integrations.githubRepoConfig(e,t,s);return Te(n.config).setupScript}catch{return null}}function hn(e){const t=e.setupScript.trim();return t?e.setupScriptNameSource==="repo-config"&&e.setupScriptName===Re&&e.repoConfigScriptRepo===e.repoPath&&t===(e.repoConfigScript??"").trim()?void 0:t:e.explicitChoice?"cd .":void 0}function fn(e){const{repoConfigScript:t,lastUsed:s,genericTemplate:r}=e;return t?{content:t,name:Re,source:"repo-config"}:s?{content:s.content,name:s.nameSource==="repo-config"?"Custom":s.name,source:s.nameSource==="repo-config"?"custom":s.nameSource??"named"}:r?{content:r.content,name:r.name,source:"named"}:{content:"",name:"Custom",source:"custom"}}const Pe="setup-scripts:last-used-by-repo",Oe="setup-scripts:recent-by-repo",$=20,We=10,Jt=["repo-config","custom","named"];function ne(e,t){return t?`${e}\0${t}`:e}function Ne(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e;return typeof t.name=="string"&&typeof t.content=="string"&&t.content.trim().length>0&&typeof t.usedAt=="string"&&(t.nameSource===void 0||Jt.includes(t.nameSource))}function B(){try{const e=localStorage.getItem(Pe);if(!e)return{};const t=JSON.parse(e);if(!t||typeof t!="object"||Array.isArray(t))return{};const s={};for(const[r,n]of Object.entries(t))r&&Ne(n)&&(s[r]=n);return s}catch{return{}}}function xe(){try{const e=localStorage.getItem(Oe);if(!e)return{};const t=JSON.parse(e);if(!t||typeof t!="object"||Array.isArray(t))return{};const s={};for(const[r,n]of Object.entries(t)){if(!r||!Array.isArray(n))continue;const o=n.filter(Ne);o.length>0&&(s[r]=o)}return s}catch{return{}}}function Yt(e,t){return e.name===t.name&&(e.nameSource??"named")===(t.nameSource??"named")&&e.content.trim()===t.content.trim()}function Me(e){return[...e].sort((t,s)=>s.usedAt.localeCompare(t.usedAt))}function Le(e){const t=[];for(const s of e)t.some(r=>Yt(r,s))||t.push(s);return t}function Sn(e,t){if(!e)return[];const s=ne(e,t),r=xe()[s]??[],n=B()[s];return Le(Me(n?[...r,n]:r)).slice(0,We).map(c=>({name:c.name,content:c.content,nameSource:c.nameSource??"named",usedAt:c.usedAt}))}function Xt(e,t,s){try{const r=xe(),n=r[e]??(s?[s]:[]);r[e]=Le([t,...Me(n)]).slice(0,We);const o=Object.entries(r);o.length>$&&(o.sort(([,c],[,i])=>i[0].usedAt.localeCompare(c[0].usedAt)),o.length=$),localStorage.setItem(Oe,JSON.stringify(Object.fromEntries(o)))}catch{}}function gn(e,t){if(!e)return;const s=B()[ne(e,t)];return s?{name:s.name,content:s.content,nameSource:s.nameSource??"named"}:void 0}function yn(e,t,s){const r=t.content.trim();if(!e||!r)return;const n=ne(e,s),o={name:t.name,content:r,usedAt:new Date().toISOString(),nameSource:t.nameSource??"named"};Xt(n,o,B()[n]);try{const c=B();c[n]=o;const i=Object.entries(c);i.length>$&&(i.sort(([,l],[,m])=>m.usedAt.localeCompare(l.usedAt)),i.length=$),localStorage.setItem(Pe,JSON.stringify(Object.fromEntries(i)))}catch{}}const Zt={async isAuthenticated(e){try{return await w(P.IS_AUTHENTICATED,...e===void 0?[]:[{workspaceId:e}])}catch{return!1}},async getAuthState(e=!1,t){try{return await w(P.GET_AUTH_STATE,e,...t===void 0?[]:[{workspaceId:t}])}catch{return{isAuthenticated:!1,requiresDaemonAuth:!0}}},async getStatus(e){try{return await w(P.GET_STATUS,...e===void 0?[]:[{workspaceId:e}])}catch{return{isConfigured:!1,oauthUrl:""}}},async fetchMyIssues(e="assigned",t){return(await this.fetchMyIssuesPage(e,t===void 0?void 0:{workspaceId:t})).issues},async fetchMyIssuesPage(e="assigned",t){try{return await w(P.FETCH_MY_ISSUES,e,t)}catch{return{issues:[],nextToken:null}}},async searchIssues(e,t){return(await this.searchIssuesPage(e,t===void 0?void 0:{workspaceId:t})).issues},async searchIssuesPage(e,t){try{return await w(P.SEARCH_ISSUES,e,t)}catch{return{issues:[],nextToken:null}}}},bn=Object.freeze(Object.defineProperty({__proto__:null,linearAuthClient:Zt},Symbol.toStringTag,{value:"Module"})),_={IS_AUTHENTICATED:"sentry-auth:is-authenticated",SAVE_CONFIG:"sentry-auth:save-config",GET_AUTH_STATE:"sentry-auth:get-auth-state",LOGOUT:"sentry-auth:logout",FETCH_PROJECTS:"sentry-auth:fetch-projects",FETCH_ISSUES:"sentry-auth:fetch-issues",SEARCH_ISSUES:"sentry-auth:search-issues",GET_ISSUE:"sentry-auth:get-issue"},Qt={async isAuthenticated(e){try{return await w(_.IS_AUTHENTICATED,...e===void 0?[]:[{workspaceId:e}])}catch{return!1}},async saveConfig(e,t){return await w(_.SAVE_CONFIG,{organization:e,apiToken:t})},async getAuthState(e){try{return await w(_.GET_AUTH_STATE,...e===void 0?[]:[{workspaceId:e}])}catch{return{isAuthenticated:!1}}},async logout(){await w(_.LOGOUT)},async fetchProjects(e){try{return await w(_.FETCH_PROJECTS,...e===void 0?[]:[{workspaceId:e}])}catch{return[]}},async fetchIssues(e){return(await this.fetchIssuesPage(e)).issues},async fetchIssuesPage(e){try{return await w(_.FETCH_ISSUES,e)}catch{return{issues:[],nextToken:null}}},async searchIssues(e,t){return(await this.searchIssuesPage(e,t)).issues},async searchIssuesPage(e,t,s){try{return await w(_.SEARCH_ISSUES,{query:e,project:t,...s})}catch{return{issues:[],nextToken:null}}},async getIssue(e,t){try{return await w(_.GET_ISSUE,e,...t===void 0?[]:[{workspaceId:t}])}catch{return null}}},kn=Object.freeze(Object.defineProperty({__proto__:null,sentryAuthClient:Qt},Symbol.toStringTag,{value:"Module"})),ae=a.createSelector(e=>{const t=v.select(e);return!t||!it.select(e)?null:JSON.stringify([t,e.hostExecution.generation,e.repositoryCheckout.authorityGeneration,e.gitlabAuth.host,e.gitlabAuth.instanceBaseUrl,e.gitlabAuth.statusReady,e.gitlabAuth.isConfigured,e.gitlabAuth.user])}),K=a.createSelector((e,t)=>k(e.repositoryCheckout.forms,t)??null),wn=a.createSelector((e,t)=>{const s=K.select(e,t);return s?.admission===ae.select(e)&&s.status==="ready"?g(s.projects):[]}),In=a.createSelector((e,t)=>{const s=K.select(e,t);return s?.admission===ae.select(e)&&s.status==="ready"?g(s.branches):[]}),es=a.createSelector((e,t)=>{const s=K.select(e,t);return!s||s.status!=="ready"||s.admission!==ae.select(e)||!s.capture||!s.project||!s.branch?null:{checkoutId:s.capture.checkoutId,revision:s.capture.revision,projectPath:s.project.projectPath,branch:s.branch.name,commitSha:s.branch.commitSha,mode:s.mode}}),_n=a.createSelector((e,t)=>{const s=es.select(e,t);return!!s&&(s.mode==="direct"||K.select(e,t)?.warmStatus==="ready")}),vn="__new-workspace__",Cn="__initializer__",An="compact-workspace-initializer-state-prompt",En="onboarding-prompt",U=20*1024*1024,ye=xt("NewWorkspaceDraft");function Rn(e,t){if(e.length>U)return ye.warn("Draft text exceeds the size guard; skipping persistence",{textLength:e.length,limit:U}),null;const s=Pt(t);if(s.length===0)return{text:e};const r=[];let n=e.length+2,o=0;for(const c of s){const i=JSON.stringify(c).length+1;if(n+i>U){o+=1;continue}r.push(c),n+=i}return o>0&&ye.warn("Draft attachments exceed the size guard; persisting the ones that fit",{limit:U,attachmentCount:s.length,droppedCount:o}),r.length>0?{text:e,attachments:r}:{text:e}}const ts="host.providerAuthStatus";function ss(e={}){const t={};return e.workspaceId&&(t.workspaceId=e.workspaceId),typeof e.providerId=="string"&&e.providerId.length>0&&(t.providerId=e.providerId),typeof e.force=="boolean"&&(t.force=e.force),t}function rs(e,t){const s=t.toLowerCase(),r=e.toLowerCase();return s.startsWith(r)?/^(['’]s\s+organization)?$/.test(s.slice(r.length)):!1}function ns(e){const{email:t,orgName:s}=e??{};return t&&s?rs(t,s)?t:`${t} · ${s}`:t||s||void 0}function as(e){const t={};for(const s of e?.providers??[]){const r={authenticated:s.authenticated??void 0},n=ns(s.identity);n!==void 0&&(r.authDetails=n),s.identity?.email&&(r.email=s.identity.email),t[s.id]=r}return t}const os=6e4,E=new Map,j=new Map,A=new Map;let F=0,De=0;const cs=e=>JSON.stringify([lt.select(a.state),De,e.workspaceId??null,e.providerId??"*"]);function is(e){if(e.method!=="events.event"||!e.params)return;const t=e.params,r=(t.event&&typeof t.event=="object"?t.event:t).type;return typeof r=="string"?r:void 0}function J(e){if(F+=1,e)for(const t of E.keys()){const[,,,s]=JSON.parse(t);(s===e||s==="*")&&E.delete(t)}else E.clear()}typeof pe=="function"&&pe(e=>{["provider:auth-changed","host:execution-context-changed"].includes(is(e)??"")&&J()});typeof me=="function"&&me(()=>{De+=1,J()});function ls(e={}){const t=cs(e);if(e.force)J(e.providerId);else{const o=E.get(t);if(o&&o.expiresAt>Date.now())return Promise.resolve(o.verdicts);o&&E.delete(t)}const s=j.get(t);if(!e.force&&s?.generation===F)return s.promise;if(s){const o=A.get(t);if(o)return o.force||=e.force===!0,o.promise;let c;const i=s.promise.catch(()=>({})).then(()=>(A.get(t)===c&&A.delete(t),ls({...e,force:c.force}))).finally(()=>{A.get(t)===c&&A.delete(t)});return c={force:e.force===!0,promise:i},A.set(t,c),i}const r=F,n=Ae(ts,ss(e)).then(as).then(o=>(r===F&&E.set(t,{verdicts:o,expiresAt:Date.now()+os}),o)).finally(()=>{j.get(t)?.promise===n&&j.delete(t)});return j.set(t,{generation:r,promise:n}),n}function Tn(e,t=e,s="default",r,n){if(!Mt.select(a.state))return;const o=n??nt.select(a.state,t)??at.select(a.state,t)[0];if(!o)return;const c=ot.select(a.state,t,o),i={type:"discussion",title:r??(s==="new"?p.workspace_discussion_new_title():p.workspace_discussion_title()),workspaceId:e,closable:!0,data:{conversationId:s}},l=c?.tabs.find(m=>He(m,i));s==="new"&&a.dispatch($e(e)),a.dispatch(l?Be(t,l.id,o):Ve(t,i,o,void 0,!0,void 0,!0))}function Pn(e,t){return e.name?.trim()?e.name.trim():e.kind==="workspace"?e.id&&e.id!=="default"?p.workspace_discussion_conversation_title():p.workspace_discussion_title():e.participants.filter(r=>r.principalId!==t).map(r=>r.displayName||r.login||p.workspace_discussion_unknownAuthor_label()).join(", ")||p.workspace_discussion_group_title()}const us=a.createSelector((e,t,s)=>{const r=Ce(e.repositoryContext,t);return s!==null&&r.binding===s?r:null});a.createSelector((e,t,s)=>{const r=us.select(e,t.workspaceId,s);return r?.status==="ready"?k(r.roots,x(t))?.context:void 0});const On=a.createSelector((e,t)=>{if(t.admission===null||v.select(e)!==t.admission)return null;const s=Ce(e.repositoryContext,t.workspaceId),r=s.ownership;return!r||r.demandId!==t.demandId||r.admission!==t.admission||r.request.workspaceId!==t.workspaceId?null:{status:s.status,scope:s.scope,revision:s.revision,roots:s.status==="ready"?g(s.roots).map(n=>n.context):[],unavailableReason:s.unavailableReason}}),Wn=a.createSelector((e,t)=>{if(t.admission===null||v.select(e)!==t.admission)return null;const s=e.repositoryContext.selectionEdits,r=s?k(s,t.editId):void 0;return r&&r.status!=="closed"&&r.owner.admission===t.admission&&x(r.owner.root)===x(t.root)?r:null}),Nn=a.createSelector((e,t)=>{const s=e.repositoryContext.selectionEdits;return!!s&&g(s).some(r=>r.owner.root.workspaceId===t&&r.owner.admission===v.select(e)&&(r.status==="capturing"||r.status==="pending"&&(!r.observation||r.observation.attempt?.status==="pending")))}),xn=a.createSelector((e,t)=>{if(t.admission===null||v.select(e)!==t.admission||t.hostContext===null||ut.select(e,t.root.workspaceId)!==t.hostContext)return null;const s=e.repositoryContext.nativeReviewAttempts,r=s?k(s,t.attemptId):void 0;return r&&r.status!=="closed"&&r.owner.admission===t.admission&&r.owner.hostContext===t.hostContext&&x(r.owner.root)===x(t.root)?r:null}),Mn=a.createSelector((e,t)=>e.repositoryContext.nativeReviewAttempts?k(e.repositoryContext.nativeReviewAttempts,t):void 0),be={auggie:"npm install -g @augmentcode/auggie","claude-code":"curl -fsSL https://claude.ai/install.sh | bash",codex:"npm i -g @openai/codex",opencode:"curl -fsSL https://opencode.ai/install | bash",droid:"curl -fsSL https://app.factory.ai/cli | sh",grok:"npm i -g @xai-official/grok",cursor:"curl https://cursor.com/install -fsS | bash",cortex:"curl -LsS https://ai.snowflake.com/static/cc-scripts/install.sh | sh"};function Ln(e){return Object.hasOwn(be,e)?be[e]:void 0}const ds=["venv",".venv","virtualenv","node_modules","google-cloud-sdk","__pycache__",".pytest_cache",".mypy_cache",".ruff_cache",".tox",".nox"];function ps(e){return e.replace(/\\/g,"/").split("/").filter(t=>t.length>0&&t!==".")}function ms(e){const t=new Set(ds);return ps(e).some(s=>t.has(s))}const hs=new Set(["lastActivity","statusMessage","statusImageAssetId"]),fs=new Set([".git",".playwright-cli",".svelte-kit",".vite",".turbo",".cache",".parcel-cache",".next",".nuxt",".output","build","coverage","dist","playwright-report","target","test-results"]);function Ss(e){return e.replace(/\\/g,"/").split("/").filter(t=>t.length>0&&t!==".")}function gs(e){if(!e.type.startsWith("file:"))return null;const t=e.data,s=t?.relativePath??t?.path??t?.filePath;return typeof s=="string"&&s.length>0?s:null}function ys(e){const t=gs(e);return!t||ms(t)?!1:!Ss(t).some(s=>fs.has(s))}function bs(e){if(e.type==="workspace:displayStatus-changed")return!0;if(e.type!=="workspace:updated")return!1;const t=e.data;if(!t?.changes||typeof t.changes!="object"||Array.isArray(t.changes))return!1;const s=Object.keys(t.changes).filter(r=>r!=="workspaceId");return s.length>0&&s.every(r=>hs.has(r))}function h(e){return typeof e=="string"?e.trim():""}function R(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function ke(e){const t=R(e.data),s=h(t.agentId)||h(e.sessionId),r=h(t.messageId);return s&&r?JSON.stringify([s,r]):""}function ks(e){const t=R(e.data),s={workspaceId:e.workspaceId,closable:!0},r=n=>n?{...s,type:"note",noteId:n,title:h(t.title)||h(t.noteTitle)||p.layout_tabTypes_note_title()}:null;switch(e.type){case"note:created":case"note:updated":case"comment:added":case"comment:resolved":return r(h(t.noteId));case"task:status-changed":return r(h(t.noteId)||h(t.linkedNoteId));case"spec:updated":case"goal:updated":return r("spec");case"agent:created":case"agent:renamed":case"agent:restored":case"agent:updated":case"agent:message":case"agent:user-message:sent":{const n=h(t.agentId)||h(e.sessionId);return n?{...s,type:"agent",agentId:n,title:h(t.agentName)||p.layout_tabTypes_agent_title()}:null}case"file:changed":{const n=h(t.path)||h(t.relativePath);return n&&t.action!=="delete"?{...s,type:"file",filePath:n,title:n.split(/[\\/]/).pop()||n}:null}case"git:commit":{const n=h(t.commit),o=h(t.gitRootId);return n?{...s,type:"changes",title:p.layout_tabTypes_changes_title(),data:{commitHash:n,...o?{gitRootId:o}:{}}}:null}default:return null}}function we(e,t){const s=R(e.data),r=Object.fromEntries(Object.entries(s).filter(([,c])=>typeof c=="string")),n=c=>t?p.workspace_peopleActivity_actorAction_label({name:t,action:c}):c;switch(e.type){case"note:created":case"note:updated":case"note:deleted":case"spec:updated":case"goal:updated":return O({...e,actor:{...e.actor,name:t},data:r});case"agent:created":case"agent:renamed":case"agent:deleted":case"agent:restored":case"git:commit":case"git:push":case"git:pull":case"git:branch":case"git:merge":return n(O({...e,actor:{...e.actor,name:void 0},data:r}));case"agent:updated":return h(s.modelId)||s.completionReportCleared===!0?n(O({...e,actor:{...e.actor,name:void 0},data:s})):null;case"file:changed":return ys(e)?O({...e,actor:{...e.actor,name:t},data:{path:h(s.path)||h(s.relativePath),action:h(s.action)}}):null;case"comment:added":return t?p.events_activity_authorCommented_label({author:t}):p.workspace_peopleActivity_commented_label();case"comment:resolved":return s.resolved===!1?n(p.events_activity_reopenedCommentThread_label()):s.resolved===!0?n(p.events_activity_resolvedCommentThread_label()):null;case"agent:message":case"agent:user-message:sent":{const c=h(s.agentName)||h(s.toAgentName);return n(c?p.workspace_peopleActivity_messagedAgent_label({agent:c}):p.workspace_peopleActivity_sentMessage_label())}case"task:status-changed":return n(O({...e,actor:{...e.actor,name:void 0},data:{taskName:h(s.taskName)||h(s.noteTitle),newStatus:h(s.newStatus)||h(s.status)}}));case"workspace:created":return n(p.events_activity_createdWorkspace_label());case"workspace:updated":{if(bs(e))return null;const c=R(s.changes);if(Object.keys(c).filter(l=>l!=="workspaceId").length===0)return null;const i=h(c.title);return n(i?p.events_activity_renamedWorkspaceTo_label({title:i}):p.events_activity_updatedWorkspace_label())}default:return null}}function W(e,t){const s=h(e);return s===t||/^(user|you|system|unknown|anonymous|local user)$/i.test(s)?"":s}function ws(e,t,s,r){const n=new Map(s.map(u=>[u.principalId,u])),o=new Map;for(const u of t){if(u.workspaceId!==e||u.type!=="agent:last-message")continue;const d=R(u.data),f=de({role:d.role==="user"?"user":"system",author:d.author,metadata:d.metadata}),S=ke(u);if(!f||!S||typeof d.lastUserMessage!="string")continue;const b=Ot({id:h(d.messageId),role:"user",timestamp:u.timestamp,contentBlocks:[{type:"text",text:d.lastUserMessage}],author:f,metadata:d.metadata},r);b&&o.set(S,b)}const c=new Set,i=new Set,l=[];let m=0;for(const u of t){if(u.workspaceId!==e||!h(u.id)||c.has(u.id))continue;const d=Date.parse(u.timestamp);if(!Number.isFinite(d)){m++;continue}const f=R(u.data),S=u.type==="agent:message",b=S?de({role:f.role==="user"?"user":"system",author:f.author,metadata:f.metadata}):null;if(S?!b:u.actor?.type!=="user"){S&&f.role==="user"&&u.actor?.type==="user"&&dt(f.metadata)&&l.push({row:null,timestamp:d,segment:m});continue}const Fe=S?h(f.messageId):"",T=S?ke(u):"";if(T&&i.has(T))continue;const C=h(u.actor?.id),Y=C?n.get(C):void 0,L=b?W(b.displayName,b.principalId??"")||W(b.login,b.principalId??""):W(u.actor.name,C)||W(Y?.displayName,C)||W(Y?.login,C),ce=we(u,"");if(!ce)continue;if(!L){l.push({row:null,timestamp:d,segment:m});continue}const D=S?o.get(T)??null:null,ie=D?p.workspace_peopleActivity_actorAction_label({name:L,action:D}):we(u,L);ie&&(c.add(u.id),T&&i.add(T),l.push({timestamp:d,segment:m,row:{id:u.id,name:L,principalId:b?h(b.principalId)||null:C||null,avatarUrl:b?b.avatarUrl:Y?.avatarUrl??null,label:ie,actionLabel:D??ce,continuation:!1,timestamp:u.timestamp,destination:ks(u),messageId:Fe||null,messagePreview:D}}))}l.sort((u,d)=>d.timestamp-u.timestamp);const y=[];for(const[u,d]of l.entries()){if(!d.row)continue;const f=l[u-1],S=f?f.timestamp-d.timestamp:NaN;d.row.continuation=!!(d.row.principalId&&f?.row?.principalId===d.row.principalId&&f.segment===d.segment&&Number.isFinite(S)&&S>=0&&S<=15*6e4),y.push(d.row)}return y}const Dn=a.createSelector(e=>e.workspaceEvents.subscriptionAttempt),Un=a.createSelector(e=>e.workspaceEvents.subscriptionGeneration),Is=a.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]??te).events),jn=a.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]??te).nextToken),Gn=a.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]?.peopleRequestId??null)!==null),qn=a.createSelector((e,t)=>e.workspaceEvents.byWorkspaceId[t]?.peopleError??null),Fn=a.createSelector((e,t)=>e.workspaceEvents.byWorkspaceId[t]?.peopleInitialized??!1),Ue=a.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]??te).peopleStreams),Hn=a.createSelector((e,t)=>Object.values(Ue.select(e,t)).every(s=>s.initialized&&s.nextToken===null)),$n=a.createSelector((e,t,s)=>{const r=Is.select(e,t),o=ws(t,r,vt.select(e,t),M.select(e,t)?.ownerPrincipalId)[s-1]?.timestamp,c=Ue.select(e,t);return["user","message"].filter(i=>{const l=c[i];if(!l.initialized)return!0;if(l.nextToken===null)return!1;const m=r.find(y=>y.id===l.oldestEventId)?.timestamp;return!o||!m||!(Date.parse(m)<=Date.parse(o))})}),Bn=a.createSelector((e,t)=>{const s=[],r=new Set,n=new Set,o=c=>{const i=c.block.attachmentId??c.id;if(!r.has(i)){if(!c.block.attachmentId&&c.block.data&&!c.block.dataTruncated){const l=`${c.block.mimeType}/${c.block.data}`;if(n.has(l))return;n.add(l)}r.add(i),s.push(c)}};for(const[c,i]of Object.entries(Wt.select(e,t)))for(const l of g(i))l.imageData&&l.imageMimeType?o({id:`draft/${c}/${l.id}`,name:l.label,block:{type:"image",data:l.imageData,mimeType:l.imageMimeType}}):l.type==="file"&&(l.attachmentId||l.placementStatus)&&o({id:`draft/${c}/${l.id}`,name:l.label,placementStatus:l.placementStatus,block:{type:l.attachmentMimeType?.startsWith("image/")?"image":"file",attachmentId:l.attachmentId,mimeType:l.attachmentMimeType,fileName:l.label,size:l.attachmentSize}});for(const c of pt.select(e,t)){const i=mt.select(e,c),l=[...ht.select(e,c),...ft.select(e,c)];for(const m of l)if(m.role==="user")for(const[y,u]of(m.contentBlocks??[]).entries()){if(u.type!=="image"&&!Nt(u))continue;const d=u.id?i?.[ze(m.id,u.id)]:void 0,f=d?.status==="loaded"?d.block:u;o({id:`${c}/${m.id}/${u.id??y}`,name:f.fileName,block:f,agentId:c,messageId:m.id,hydration:d})}}return s}),_s=a.createSelector((e,t)=>e.context.byWorkspaceId[t]??Ke),vs=a.createSelector((e,t)=>g(_s.select(e,t).items)),Vn=a.createSelector((e,t)=>vs.select(e,t).filter(s=>!s.parentNoteId)),zn=a.createSelector((e,t)=>e.agentLock.byWorkspaceId[t]?.lockedAgentIds??je),Kn=a.createSelector((e,t)=>e.agentLock.byWorkspaceId[t]?.lockedFilePaths??je),je={},Jn=a.createSelector((e,t,s)=>{const r=e.gitWrite.byWorkspaceId[t]?.operations;return r?k(r,s):void 0}),Ge=a.createSelector((e,t)=>{const s=e.gitWrite.byWorkspaceId[t]?.operations;return s?g(s):[]}),Yn=a.createSelector((e,t)=>Ge.select(e,t).some(s=>s.status==="queued"||s.status==="running")),Xn=a.createSelector((e,t)=>Ge.select(e,t).filter(s=>s.operation.kind==="partialCommit"&&(s.status==="queued"||s.status==="running")));function Ie(e){return e.title||`PR #${e.number}`}const oe=a.createSelector((e,t)=>{const s=e.gitRoots?.byWorkspaceId?.[t];return s?g(s.gitRoots):[]});function Cs(e){return{key:"primary",isPrimary:!0,path:e.worktreePath??e.path,branch:e.branch,repoOwner:e.repositoryOwner,repoName:e.repositoryName,prNumber:e.prNumber,prUrl:e.prUrl,prStatus:e.prStatus,pullRequests:e.pullRequests}}function As(e){return{key:e.id,isPrimary:!1,path:e.path,branch:e.branch,repoOwner:e.repoOwner,repoName:e.repoName,prNumber:e.prNumber,prUrl:e.prUrl,prStatus:e.prStatus,pullRequests:e.pullRequests,gitRoot:e}}const Zn=a.createSelector((e,t)=>{const s=M.select(e,t),r=oe.select(e,t).map(As);return s?[Cs(s),...r]:r}),Qn=a.createSelector((e,t)=>oe.select(e,t).length>0),ea=a.createSelector(e=>Object.entries(e.gitRoots?.byWorkspaceId??{}).filter(([,t])=>Object.keys(t.consumers??{}).length>0).map(([t])=>t)),Es=a.createSelector((e,t,s)=>k((e.acceptWorkflow.byWorkspaceId[t]??Je).operations,s)),ta=a.createSelector((e,t,s)=>Es.select(e,t,s)?.status==="running"),sa=a.createSelector((e,t)=>e.acceptWorkflow.byWorkspaceId[t]?.mergeDrawerOpen??!1),ra=a.createSelector((e,t)=>{const s=St.select(e,t)?.hasRemote??!1,r=M.select(e,t)?.pullRequests?.some(n=>n.status===le.Open||n.status===le.Draft)??!1;return{squash:!1,viaPR:s&&r,pushAfter:s,...e.acceptWorkflow.byWorkspaceId[t]?.mergeOptions}}),na=a.createSelector(e=>Object.keys(e.acceptWorkflow.byWorkspaceId).filter(t=>e.acceptWorkflow.byWorkspaceId[t].observerRequested)),aa=a.createSelector((e,t)=>{const s=M.select(e,t),r=gt.select(e,t),n=yt.select(e,t),o=s?.repositoryOwner&&s.repositoryName?`${s.repositoryOwner}/${s.repositoryName}`:void 0,c=Ct(At(s?.pullRequests,s?.activePullRequest,(i,l)=>Et(i,s?.repositoryOwner,s?.repositoryName,l),Ie,o),bt.select(e,t),o,oe.select(e,t),Ie).own;return{visible:(e.acceptWorkflow.byWorkspaceId[t]?.consumerCount??0)>0,ready:wt.select(e,t),owner:!kt.select(e,t),authenticated:Lt.select(e),pushedCount:r.filter(i=>i.isPushed).length,hasRemote:n.hasRemote,clearReset:n.hasResetToTrunk&&c.some(i=>i.status!=="merged"),clearMerge:!!(n.mergeHeadSha&&r[0]?.hash&&n.mergeHeadSha!==r[0].hash)}}),oa=a.createSelector((e,t,s)=>e.bgExecutor?.byWorkspaceId[t]?.executors[s]??Ye),Rs=a.createSelector((e,t)=>e.prWorkflow.byWorkspaceId[t]??Xe);a.createSelector((e,t,s)=>Rs.select(e,t).operations[s]);const ca=a.createSelector(e=>Object.keys(e.noteReadTracking.unreadNoteIds)),ia=a.createSelector(e=>e.noteReadTracking.readRecords),Ts="host.providerTestPrompt",Ps=Gt("ok",[he({ok:fe(!0)}).passthrough(),he({ok:fe(!1),reason:Se().min(1),message:Se()}).passthrough()]),Os=3e5;async function la(e){const t=await Ae(Ts,{providerId:e.providerId,...e.model?{model:e.model}:{}},{timeoutMs:Os}),s=Ps.parse(t);return(s.ok||s.reason==="auth-required")&&J(e.providerId),s}const Ws=-1,Ns=/^remote-script-lost:\s*/,xs=["idle","starting","running","restarting","exited"],_e=e=>!!e&&typeof e=="object"&&!Array.isArray(e),ve=e=>typeof e=="string"&&e.trim().length>0;function Ms(e){return _e(e)&&ve(e.remoteAgentId)&&ve(e.nodeId)&&_e(e.runtime)&&xs.includes(e.runtime.status)}function ua(e){return Array.isArray(e.machineRuns)?e.machineRuns.filter(Ms):[]}function da(e,t,s){const r=Dt(e.nodeId,s)??{nodeId:e.nodeId,name:p.remoteAgent_location_unknownMachine(),platform:null,state:"ready"};if(s&&s.id===e.nodeId)return r;const n=t?.nodeId===e.nodeId?t:null;return{...r,name:n?.nodeName?.trim()||r.name,platform:Ut(n?.placement?.os,n?.placement?.arch)}}function Ls(e){return e.status==="exited"&&e.exitCode===Ws}function Ds(e){const t=e.error?.trim().replace(Ns,"").trim();switch(t){case"the machine disconnected":return p.scripts_remote_lostDisconnected_label();case"the machine was removed":return p.scripts_remote_lostRemoved_label();case"the agent was deleted":return p.scripts_remote_lostAgentDeleted_label();case"the agent was stopped for good":return p.scripts_remote_lostAgentStopped_label();default:return t||p.scripts_remote_lostReason_fallback()}}function pa(e){if(Ls(e))return{kind:"lost",label:p.scripts_remote_lost_tooltip({reason:Ds(e)})};const t=jt(e);switch(t){case"running":return{kind:t,label:p.terminal_quakeOverlay_status_running()};case"restarting":return{kind:t,label:p.workspace_devScripts_restarting_label()};case"idle":return{kind:t,label:p.terminal_quakeOverlay_status_idle()};case"succeeded":return{kind:t,label:p.terminal_quakeOverlay_status_exitedZero()};case"failed":return{kind:t,label:p.terminal_quakeOverlay_status_errorCode({code:e.exitCode??1})};case"stopped":return{kind:t,label:p.terminal_quakeOverlay_status_stoppedSignal({signal:(e.exitCode??128)-128})};default:return{kind:t,label:p.terminal_quakeOverlay_status_exited()}}}const G=e=>typeof e=="string"&&e.length>0,Us=/\bremote-script-agent-ending:/;function ma(e){return!!e&&Us.test(e)}function ha(e){if(!e||typeof e!="object")return null;const t=e.data;if(!t||typeof t!="object")return null;const s=t,r=e instanceof Error&&e.message?{message:e.message}:{};return s.code==="machine-update-required"?{success:!1,code:"machine-update-required",update:s.update==="backend"?"backend":"machine",...G(s.machineVersion)?{machineVersion:s.machineVersion}:{},...G(s.backendVersion)?{backendVersion:s.backendVersion}:{},...r}:s.code==="machine-unreachable"?{success:!1,code:"machine-unreachable",attempts:Array.isArray(s.attempts)?s.attempts.flatMap(o=>{const c=o??{};return G(c.route)&&G(c.error)?[{route:c.route,error:c.error}]:[]}):[],...r}:null}function fa(e){const s=e.filter(n=>n.runtime.status==="running"&&n.runtime.detectedUrl?.trim()).sort((n,o)=>(o.runtime.startedAt??"").localeCompare(n.runtime.startedAt??""))[0],r=s?.runtime.detectedUrl?.trim();return!s||!r?null:{scriptId:s.id,name:s.name,url:r}}const js={status:"idle",error:null},Gs=a.createSelector((e,t)=>e.workspaceLifecycle.loadByWorkspaceId[t]??js);a.createSelector((e,t)=>Gs.select(e,t).error);const Sa=a.createSelector((e,t)=>k(e.workspace.workspaces,t)??e.workspace.pendingCreations[t]),qe=a.createSelector((e,t)=>e.workspaceLifecycle.sessionPhaseByWorkspaceId[t]),qs=e=>e==="hydrated"||e==="live",ga=a.createSelector((e,t)=>{const s=qe.select(e,t);return s==="hydrated"||s==="live"}),ya=a.createSelector(e=>{const t=e.workspaceLifecycle.sessionPhaseByWorkspaceId;return Object.keys(t).filter(s=>qs(t[s]))}),ba=a.createSelector((e,t)=>qe.select(e,t)==="live");function ka(e){const{selectedProviderId:t,activeProviderId:s,recommitActive:r,dispatch:n}=e;if(t&&!(!r&&t===s))return n(Ze({providerId:t,enabled:!0})),n(Qe(t)),n(et()),t}function wa(e){const t=[];for(const s of e){let r={};if(s.metadata)try{r=JSON.parse(s.metadata)}catch{}const n=[];if(n.push(`[${s.identifier}] ${s.title}`),s.url&&n.push(`URL: ${s.url}`),s.description&&n.push(`
|
|
3
|
-
Description:
|
|
4
|
-
${s.description}`),r.state&&n.push(`Status: ${r.state}`),r.teamName&&n.push(`Team: ${r.teamName}`),r.priority!==void 0){const o=["No priority","Urgent","High","Medium","Low"];n.push(`Priority: ${o[r.priority]||r.priority}`)}r.assignee&&n.push(`Assignee: ${r.assignee}`),t.push({type:s.itemType||"unknown",provider:s.provider,identifier:s.identifier,title:s.title,url:s.url,content:n.join(`
|
|
5
|
-
`),metadata:r})}return t}function Ia(e){const t=[];for(const s of e){if(s.type!=="file")continue;let r=s.meta?.fullPath||s.meta?.path||"";if(!r&&s.id?.startsWith("file-")){const n=s.id.slice(5);(n.startsWith("/")||/^[A-Za-z]:/.test(n))&&(r=n)}if(!r&&s.uri)if(s.uri.startsWith("devspace://file/"))try{r=decodeURIComponent(s.uri.slice(16))}catch{}else s.uri.startsWith("file:")&&(r=s.uri.slice(5));r||(r=s.label||s.meta?.name||""),t.push({type:"file",path:r,title:s.label})}return t}async function _a(e,t){const s=[];for(const r of e){if(r.type==="terminal")try{const{terminalManager:n}=await q(async()=>{const{terminalManager:l}=await import("./DzejiLWr.js").then(m=>m.c);return{terminalManager:l}},__vite__mapDeps([23,3,2,18,19,12,8,0,1,4,5,6,7,9,10,11,13,14,15,16,17,20,21,22,24,25,26,27,28,29,30,31,32]),import.meta.url),o=r.meta?.workspaceId||"",c=r.id??"",i=await n.getBufferContent(c,o);i&&s.push({type:"terminal",content:i,title:r.label,metadata:{terminalName:r.label,terminalId:c}})}catch(n){t?.warn("[OnboardingContext] Failed to read terminal buffer:",n)}if(r.type==="script")try{const{selectScriptById:n,selectScriptRuntime:o}=await q(async()=>{const{selectScriptById:S,selectScriptRuntime:b}=await import("./DHGSAfCZ.js");return{selectScriptById:S,selectScriptRuntime:b}},__vite__mapDeps([33,4,5,3,6,7,8,9,2,10,11,12,34,35,36,15,16,37,38,39,13,14,17,40,41,42,43,44,45,46,47,48,49,21,30,50,19,18,51,52,22,1,53]),import.meta.url),{readScriptContextOutputLines:c}=await q(async()=>{const{readScriptContextOutputLines:S}=await import("./C-OtpXcF.js");return{readScriptContextOutputLines:S}},__vite__mapDeps([54,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,55,49,45,40,36,39,30,42,56,34,35,37,38,41,43,44,46,47,48,50,51,52,53,33]),import.meta.url),i=r.meta?.workspaceId||"",l=r.id??"",m=a.state,y=await c(m,i,l),u=n.select(m,i,l),d=o.select(m,i,l);let f=`Script: ${u?.name||r.label}
|
|
6
|
-
`;if(f+=`Command: ${u?.command||"unknown"}
|
|
7
|
-
`,f+=`Status: ${d.status}`,d.exitCode!==null&&d.exitCode!==void 0&&(f+=` (exit code: ${d.exitCode})`),f+=`
|
|
8
|
-
`,d.detectedUrl&&(f+=`URL: ${d.detectedUrl}
|
|
9
|
-
`),y.length>0){const S=y.slice(-100).join(`
|
|
10
|
-
`);f+=`
|
|
11
|
-
Output (last ${Math.min(y.length,100)} lines):
|
|
12
|
-
${S}`}else f+=`
|
|
13
|
-
No output yet.`;s.push({type:"script",content:f,title:u?.name||r.label,metadata:{scriptId:l,command:u?.command,status:d.status,exitCode:d.exitCode,detectedUrl:d.detectedUrl}})}catch(n){t?.warn("[OnboardingContext] Failed to resolve script context:",n)}}return s}function va(e){const t=e.find(r=>r.type==="linear-issue");if(!t)return;const s=t.metadata??{};return{id:s.id??t.identifier??"",identifier:t.identifier??"",title:t.title??"",description:s.description,url:t.url,teamName:s.teamName,teamKey:s.teamKey,state:s.state,priority:s.priority}}function Ca(e){const t=e.find(r=>r.type==="sentry-issue");if(!t)return;const s=t.metadata??{};return{id:s.id??t.identifier??"",shortId:t.identifier??"",title:t.title??"",culprit:s.culprit,permalink:t.url||s.permalink,projectSlug:s.projectSlug,projectName:s.projectName,level:s.level,status:s.status,count:s.count,firstSeen:s.firstSeen,lastSeen:s.lastSeen}}function Aa(e,t){if(!e||e.length===0)return[];const s=new Map;for(const n of e){if(!n.repositoryPath)continue;const o=n.repositoryPath,c=s.get(o),i=tt(n),l=i>0?new Date(i).toISOString():n.updatedAt,m=c&&Date.parse(c.updatedAt)||0;(!c||i>m)&&s.set(o,{path:n.repositoryPath,name:n.repositoryName||n.repositoryPath.split("/").pop()||"Unknown",updatedAt:l,owner:n.repositoryOwner})}const r=Array.from(s.values()).sort((n,o)=>o.updatedAt.localeCompare(n.updatedAt));return t!==void 0?r.slice(0,t):r}const Ea=a.createSelector((e,t)=>(e.workspaceSettings.byWorkspaceId[t]??st).autoCommitEnabled),Ra=a.createSelector(e=>Object.keys(e.workspaceSettings.byWorkspaceId));export{rn as $,da as A,pa as B,Tn as C,wa as D,Ia as E,_a as F,Ln as G,yn as H,on as I,ln as J,Jr as K,En as L,Kr as M,Cn as N,hn as O,ts as P,cn as Q,un as R,_ as S,la as T,ua as U,aa as V,na as W,ta as X,Vr as Y,Ea as Z,an as _,An as a,hr as a$,ae as a0,In as a1,_n as a2,K as a3,wn as a4,es as a5,vs as a6,Dn as a7,Un as a8,oa as a9,Rs as aA,Hn as aB,qn as aC,Fn as aD,Gn as aE,Ue as aF,$n as aG,zr as aH,ia as aI,On as aJ,Wn as aK,Nn as aL,Ra as aM,Cr as aN,vr as aO,re as aP,xr as aQ,kr as aR,ir as aS,wr as aT,br as aU,ar as aV,Nr as aW,fr as aX,Sr as aY,pr as aZ,Pr as a_,Fr as aa,Xn as ab,Br as ac,Gr as ad,ea as ae,oe as af,Jn as ag,Yn as ah,Qn as ai,Hr as aj,$r as ak,ga as al,ba as am,Zr as an,zn as ao,Kn as ap,sa as aq,ra as ar,ya as as,xn as at,Mn as au,qr as av,jn as aw,Yr as ax,Xr as ay,sn as az,vn as b,mr as b0,yr as b1,gr as b2,dr as b3,lr as b4,Or as b5,ge as b6,Mr as b7,_r as b8,Ir as b9,Ar as bA,Qt as bB,kn as bC,dn as bD,Te as bE,Lr as ba,Wr as bb,qt as bc,Ft as bd,Ht as be,cr as bf,or as bg,ur as bh,Vn as bi,ca as bj,Qr as bk,en as bl,nn as bm,Bn as bn,tn as bo,Is as bp,Zn as bq,Dr as br,Sa as bs,Gs as bt,Ur as bu,$t as bv,Vt as bw,Rr as bx,Er as by,Tr as bz,Re as c,Rn as d,ss as e,fn as f,ka as g,Pn as h,va as i,Ca as j,mn as k,pn as l,gn as m,Ie as n,ws as o,ls as p,Aa as q,Sn as r,fa as s,jr as t,J as u,ma as v,Ls as w,Zt as x,bn as y,ha as z};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Iz as g,rn as b,Ic as S}from"./BfbZn9QX.js";import{V as A,bk as _}from"./A8_BT67P.js";import{bv as k}from"./asQ_ruFQ.js";import{bM as y,bI as w}from"./DF1uIj8u.js";import{bo as n}from"./D9jYN6_J.js";import{t as I}from"./B4gIvcP2.js";const z=g.createSelector(e=>e.backgroundAgentSettings.defaultModel),B=g.createSelector(e=>e.backgroundAgentSettings.typeOverrides),G=g.createSelector(e=>e.backgroundAgentSettings.defaultReasoningEffort),W=g.createSelector(e=>e.backgroundAgentSettings.typeReasoningEffortOverrides),j=g.createSelector(e=>e.backgroundAgentSettings);function r(e){return{category:"settings",...e}}const f=[{id:"new-workspace",tab:"",label:"New workspace",route:"/workspace/new",category:"navigation",description:"Create-workspace flow."},r({id:"utility-default-model",tab:"providers",hashAliases:["utility-default-model","default-model","quickActions.defaultModel","backgroundAgents.defaultModel"],scrollSelector:"#utility-default-model",highlightSelector:'[data-highlight-id="utility-default-model"]',label:"Settings: Default model",route:"/settings?tab=providers#utility-default-model",description:"Default AI behavior model selection."}),r({id:"global-instructions",tab:"agent-behavior",hashAliases:["global-instructions","agents","specialists","all-agents"],scrollSelector:"#global-instructions",highlightSelector:'[data-highlight-id="global-instructions"]',label:"Settings: Agent Behavior",route:"/settings?tab=agent-behavior#global-instructions",description:"Global agent instructions and defaults."}),r({id:"create-specialist",tab:"specialists",hashAliases:["create-specialist"],scrollSelector:"#create-specialist",highlightSelector:'[data-highlight-id="create-specialist"]',label:"Settings: Create specialist",route:"/settings?tab=specialists&view=create-specialist#create-specialist",description:"Create-specialist entry point."}),r({id:"providers",tab:"providers",hashAliases:["providers"],scrollSelector:"#providers",highlightSelector:'[data-highlight-id="providers"]',label:"Settings: AI coding CLIs",route:"/settings?tab=providers#providers",description:"Provider/account selector settings."}),r({id:"integrations",tab:"connections",hashAliases:["integrations"],scrollSelector:"#integrations",highlightSelector:'[data-highlight-id="integrations"]',label:"Settings: Connections",route:"/settings?tab=connections#integrations",description:"Connected integrations settings."}),r({id:"devices",tab:"devices",hashAliases:["devices","machines"],scrollSelector:"#devices",highlightSelector:"#devices",label:"Settings: Machines",route:"/settings?tab=devices#devices",description:"Saved remote machine settings."}),r({id:"mobile",tab:"mobile",hashAliases:["mobile"],scrollSelector:"#mobile",highlightSelector:'[data-highlight-id="mobile"]',label:"Settings: Mobile",route:"/settings?tab=mobile#mobile",description:"Remote access and Intent Mobile pairing."}),r({id:"guest-sessions",tab:"collaboration",hashAliases:["collaboration","guest-sessions","sharing"],scrollSelector:"#collaboration",highlightSelector:"#collaboration",label:"Settings: Collaboration",route:"/settings?tab=collaboration#collaboration",description:"Host membership, workspace guests and joined hosts."}),r({id:"websocket-api",tab:"mobile",hashAliases:["websocket-api","remote-access"],scrollSelector:"#websocket-api",highlightSelector:'[data-highlight-id="websocket-api"]',label:"Settings: Remote Access",route:"/settings?tab=mobile#websocket-api",description:"Remote access (WebSocket API) settings."}),...[["voice","Voice Dictation","Voice dictation settings.","input"],["keyboard-shortcuts","Keyboard Shortcuts","Keyboard shortcuts reference.","input"],["mcp-servers","MCP Servers","MCP server configuration.","connections"],["plugins","Plugins","App-wide Agent Plugins.","connections"],["git-workspace","Git & Workspace","Git and workspace defaults.","setup"],["git","Git","Git defaults.","setup"],["shell","Shell","Shell and CLI optimization settings.","setup"],["workspace","Workspace","Workspace defaults.","setup"],["cli-optimization","CLI Optimization","RTK/CLI optimization settings.","setup"],["workspace-api","Tool Output & Retention","Tool output size and retention settings.","advanced"],["notifications","Notifications","Notification preferences.","app-behavior"],["updates","Updates","Application update preferences.","app-behavior"],["open-in","Open In","External editor/app launch preferences.","app-behavior"],["github-link-action","GitHub Links","GitHub issue and pull request link behavior.","app-behavior"],["agent-features","Agent Features","Agent feature settings.","agent-behavior"],["font-style","Font style","Font style settings.","display"],["language","Language","Application language settings.","display"],["labs","Labs","Experimental feature switches.","advanced"],["agent-backend","Agent Backend","Agent backend settings.","advanced"],["connection","Connection","Daemon connection details.","advanced"],["hardware","Hardware","Hardware integration settings.","advanced"],["developer","Developer","Development-only settings.","advanced"]].map(([e,t,i,a])=>r({id:e,tab:a,hashAliases:[e],scrollSelector:`#${e}`,highlightSelector:`[data-highlight-id="${e}"]`,label:`Settings: ${t}`,route:`/settings?tab=${a}#${e}`,description:i})),r({id:"appearance",tab:"display",hashAliases:["appearance","theme"],scrollSelector:"#theme",highlightSelector:'[data-highlight-id="appearance"]',label:"Settings: Appearance",route:"/settings?tab=display#theme",description:"Theme mode controls."}),...[["color-theme","Color theme","Color theme selection."],["note-font","Notes font","Notes/spec font style."],["agent-chat-font","Agent chat font","Agent chat font style."],["code-font","Code font","Code editor and diff font."]].map(([e,t,i])=>r({id:e,tab:"display",hashAliases:[e],scrollSelector:`#${e}`,highlightSelector:`[data-highlight-id="${e}"]`,label:`Settings: ${t}`,route:`/settings?tab=display#${e}`,description:i})),r({id:"general",tab:"advanced",hashAliases:["general","reset"],scrollSelector:"#reset",highlightSelector:'[data-highlight-id="general"]',label:"Settings: Advanced",route:"/settings?tab=advanced#reset",description:"Advanced settings and reset controls."}),{id:"workspace-card",tab:"",hashAliases:["workspace-card"],highlightSelector:'[data-highlight-id^="workspace-"]',label:"Workspace card",category:"workspace",description:"A workspace card on workspace list surfaces.",dynamic:!0,idPattern:"workspace-{workspaceId}"},{id:"specialist-entry",tab:"specialists",highlightSelector:'[data-highlight-id^="specialist-"]',label:"Specialist entry",route:"/settings?tab=specialists&specialist={specialistId}#specialist-{specialistId}",category:"specialist",description:"A specific specialist row in settings.",dynamic:!0,idPattern:"specialist-{specialistId}"}];function m(e){const t=e.indexOf("#"),i=t>=0?e.slice(t+1):e;return decodeURIComponent(i.replace(/^#/,"")).trim()}function P(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function M(e,t){if(!t.match(/\{[^}]+\}/g)?.length)return e===t;const a=t.split(/\{[^}]+\}/g).map(P).join("[^/]+");return new RegExp(`^${a}$`).test(e)}function R(e){const t=m(e);if(!t)return;const i=f.find(o=>o.id===t||o.hashAliases?.includes(t));if(i)return i;const a=f.find(o=>o.route&&o.dynamic&&o.idPattern&&M(t,o.idPattern));return a?{...a,id:t}:void 0}function T(e){try{return new URL(e,"app://intent").pathname||"/"}catch{const t=e.indexOf("?"),i=e.indexOf("#");let a=e.length;return t>=0&&(a=Math.min(a,t)),i>=0&&(a=Math.min(a,i)),e.slice(0,a)||"/"}}const E=new Set(f.flatMap(e=>e.route?[T(e.route)]:[])),C=[/^\/workspace\/[^/]+$/,/^\/agent\/[^/]+$/];function F(e){if(typeof e!="string")return!1;const t=e.trim();if(!t)return!1;if(t.startsWith("intent://"))return!0;let i,a;try{const o=new URL(t,"app://intent");if(o.protocol!=="app:")return!1;i=o.pathname||"/",a=m(o.hash)}catch{return!1}return E.has(i)?a?!!R(a):!0:C.some(o=>o.test(i))}const U=g.createSelector(e=>{const t=new Map,i=(s,c)=>{const d=t.get(s)??new Set;d.add(c),t.set(s,d)},a=k.select(e),o=A.select(e),h=_.select(e)[o];h&&o&&i(o,n.settings_providers_inUseDefaultModel_label({model:h})),b(o)&&!h&&i(o,n.settings_providers_inUseDefaultProvider_label());const u=e.backgroundAgentSettings?.providerId;u&&b(u)&&i(u,n.settings_providers_inUseQuickActions_label());for(const s of y.select(e)){const c=w.select(e,s.id),d=s.source?{project:n.settings_providers_pinSourceProject_label(),user:n.settings_providers_pinSourceUser_label(),bundled:n.settings_providers_pinSourceBundled_label(),builtin:n.settings_providers_pinSourceBuiltin_label(),"electron-store":n.settings_providers_pinSourceLegacy_label()}[s.source]:void 0,p=l=>d&&c?n.settings_providers_inUseSourcePath_label({reason:l,source:d,path:c}):d?n.settings_providers_inUseSource_label({reason:l,source:d}):c?n.settings_providers_inUsePath_label({reason:l,path:c}):l;if(s.codingAgent&&i(s.codingAgent,p(n.settings_providers_inUseSpecialistAgent_label({name:s.name}))),s.modelOptions?.forEach((l,v)=>{l.provider&&b(l.provider)&&i(l.provider,p(n.settings_providers_inUseSpecialistModelOption_label({name:s.name,position:I(v+1)})))}),s.defaultModel)if(s.defaultModel.includes(":")){const l=S(s.defaultModel).providerId??a;i(l,p(n.settings_providers_inUseSpecialistModel_label({name:s.name,model:s.defaultModel})))}else s.codingAgent||i(a,p(n.settings_providers_inUseSpecialistModel_label({name:s.name,model:s.defaultModel})))}return Object.fromEntries([...t].map(([s,c])=>[s,[...c].join(`
|
|
2
|
-
`)]))});g.createSelector((e,t)=>U.select(e)[t]??null);const O=[{id:"dracula",label:"Dracula"},{id:"nord",label:"Nord"},{id:"rose-pine",label:"Rosé Pine"},{id:"tokyo-night",label:"Tokyo Night"},{id:"solarized",label:"Solarized"},{id:"github",label:"GitHub"},{id:"high-contrast",label:"High Contrast"}],q=O.map(({id:e})=>e);export{q as T,O as a,G as b,j as c,B as d,W as e,U as f,F as i,R as r,z as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as i}from"./DTSEdINd.js";import{o as n}from"./DDySjsub.js";import{g as o,Iz as a,Dt as s,uK as r,uk as f}from"./BfbZn9QX.js";async function m(t,e){if(!(!t||!e)){if(t===o){await i("/"),a.dispatch(s(e)),a.dispatch(r("chief"));return}await n(t)&&a.dispatch(f(t,{agentId:e}))}}export{m as n};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{oz as o}from"./BfbZn9QX.js";import{aC as r}from"./asQ_ruFQ.js";function c(n,e){if(!e)return!0;const t=r.select(n,e);return!!t&&!o(t)}export{c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as o,s as r}from"../chunks/CXVUfxHv.js";export{o as load_css,r as start};
|