@intent-hq/web 2.385.1 → 2.386.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (325) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/assets/0.DSZNT9Vm.css +1 -0
  3. package/web/app/immutable/chunks/{CE70-gZI.js → -8AxW0IA.js} +3 -3
  4. package/web/app/immutable/chunks/{DOkArUrJ.js → -VR23WhZ.js} +1 -1
  5. package/web/app/immutable/chunks/{U7dpdlAf.js → 0b3rkAam.js} +1 -1
  6. package/web/app/immutable/chunks/{sSXTMg2P.js → 0y7aytZM.js} +1 -1
  7. package/web/app/immutable/chunks/{B6d1Nolc.js → 21kfe-mS.js} +1 -1
  8. package/web/app/immutable/chunks/{iPHmrqbo.js → 24f6N9l0.js} +1 -1
  9. package/web/app/immutable/chunks/{DcOkWaeN.js → 2aKRVAvL.js} +1 -1
  10. package/web/app/immutable/chunks/{e2ymG0j7.js → 3IpMTtMx.js} +1 -1
  11. package/web/app/immutable/chunks/{SbTG0nwQ.js → 3Kr2ijlK.js} +1 -1
  12. package/web/app/immutable/chunks/{CD-M_2xD.js → 3LCOBHm6.js} +1 -1
  13. package/web/app/immutable/chunks/{CTW83wJs.js → 3Qz3qAhk.js} +1 -1
  14. package/web/app/immutable/chunks/{KzySRhDw.js → 6SOEgr71.js} +3 -3
  15. package/web/app/immutable/chunks/{gU2qspu9.js → 77KTvr2w.js} +1 -1
  16. package/web/app/immutable/chunks/{DVwMeV9X.js → 7EQMYysM.js} +1 -1
  17. package/web/app/immutable/chunks/{DlU1rxYV.js → 7i0OJtNQ.js} +1 -1
  18. package/web/app/immutable/chunks/{B6FGs8l2.js → 8jO_MBKF.js} +1 -1
  19. package/web/app/immutable/chunks/{C50zlWbZ.js → 9AJtSub0.js} +1 -1
  20. package/web/app/immutable/chunks/{CUsqN2sK.js → 9R_52XLX.js} +1 -1
  21. package/web/app/immutable/chunks/{DGMrUmNq.js → A3z9XWMi.js} +1 -1
  22. package/web/app/immutable/chunks/{Dqd75Edx.js → B-4i031c.js} +1 -1
  23. package/web/app/immutable/chunks/{D7xjMCds.js → B-MjuJTx.js} +2 -2
  24. package/web/app/immutable/chunks/{BW1iql_y.js → B0kNPCxU.js} +1 -1
  25. package/web/app/immutable/chunks/{CYSndAne.js → B18ybwa0.js} +1 -1
  26. package/web/app/immutable/chunks/{Cj1KG0_l.js → B1xM1EBM.js} +1 -1
  27. package/web/app/immutable/chunks/B2LBPAIA.js +1 -0
  28. package/web/app/immutable/chunks/{DuAAGnM9.js → B2OS2WTh.js} +1 -1
  29. package/web/app/immutable/chunks/{BjlMkd10.js → B3JbrKDZ.js} +1 -1
  30. package/web/app/immutable/chunks/{C2F2Vd1P.js → B3OJ_2Dd.js} +1 -1
  31. package/web/app/immutable/chunks/{CuljOS_X.js → B4F7GG5Q.js} +1 -1
  32. package/web/app/immutable/chunks/{CrsbEWnE.js → B8foSZsl.js} +1 -1
  33. package/web/app/immutable/chunks/{deEweluJ.js → B9kUdNbG.js} +1 -1
  34. package/web/app/immutable/chunks/{D2hNxvgD.js → BB-hf8IY.js} +4 -4
  35. package/web/app/immutable/chunks/{CX4-Z2NI.js → BCFB88Wl.js} +1 -1
  36. package/web/app/immutable/chunks/{BVqF0sgN.js → BCVhFPNJ.js} +1 -1
  37. package/web/app/immutable/chunks/{CrbAS4DB.js → BCiWc-GH.js} +1 -1
  38. package/web/app/immutable/chunks/{BD9db4FR.js → BCuI_zgX.js} +1 -1
  39. package/web/app/immutable/chunks/{DVUFgbJK.js → BD7jFvJp.js} +1 -1
  40. package/web/app/immutable/chunks/{DxAjMnFs.js → BDbFQqI8.js} +3 -3
  41. package/web/app/immutable/chunks/{Che-KvdU.js → BE08e7Se.js} +1 -1
  42. package/web/app/immutable/chunks/{HU1Ksz8U.js → BGo6FK-0.js} +1 -1
  43. package/web/app/immutable/chunks/{DTwG0V2f.js → BHJpo3VA.js} +1 -1
  44. package/web/app/immutable/chunks/{DG0pBglL.js → BIcof04i.js} +1 -1
  45. package/web/app/immutable/chunks/{Clo7aK1n.js → BIkt0YE0.js} +1 -1
  46. package/web/app/immutable/chunks/{ada9rZfE.js → BKFxm3WK.js} +1 -1
  47. package/web/app/immutable/chunks/{94vL4WlW.js → BNFvOw36.js} +1 -1
  48. package/web/app/immutable/chunks/{DzG7lmwB.js → BNJkKc31.js} +1 -1
  49. package/web/app/immutable/chunks/{Cq_jjcoF.js → BOnTc4ny.js} +1 -1
  50. package/web/app/immutable/chunks/{BGReMCaT.js → BPDyvu9A.js} +1 -1
  51. package/web/app/immutable/chunks/{BWzMAxc1.js → BPpACIC2.js} +1 -1
  52. package/web/app/immutable/chunks/{zB9UbdEg.js → BRPJcG-m.js} +1 -1
  53. package/web/app/immutable/chunks/{C63WwVct.js → BRdQpeCl.js} +1 -1
  54. package/web/app/immutable/chunks/{DxC0zTSc.js → BUTuN2nE.js} +1 -1
  55. package/web/app/immutable/chunks/{CWOQ_pUA.js → BVcaPXq9.js} +1 -1
  56. package/web/app/immutable/chunks/{CoJyxFcH.js → BVyOECUU.js} +1 -1
  57. package/web/app/immutable/chunks/{DiURwJNX.js → BW2en5Js.js} +1 -1
  58. package/web/app/immutable/chunks/{BO8Bp7Ht.js → BWI85bGY.js} +1 -1
  59. package/web/app/immutable/chunks/{rXKOJqUt.js → BXHbm15d.js} +1 -1
  60. package/web/app/immutable/chunks/{CQMFoUkp.js → BYJh9adv.js} +1 -1
  61. package/web/app/immutable/chunks/{DW25Ls6A.js → BYYtBM5R.js} +1 -1
  62. package/web/app/immutable/chunks/{l1lBFBJz.js → Bax102l4.js} +1 -1
  63. package/web/app/immutable/chunks/{De0kCZ4v.js → Bb-hI5du.js} +2 -2
  64. package/web/app/immutable/chunks/{THqyVjkf.js → Bb8ARnaK.js} +1 -1
  65. package/web/app/immutable/chunks/{CJB-ebPL.js → BbWnSSTS.js} +1 -1
  66. package/web/app/immutable/chunks/{B0qb2Ymj.js → BbfEcBPg.js} +1 -1
  67. package/web/app/immutable/chunks/{CNSshwg_.js → BcYVm7io.js} +1 -1
  68. package/web/app/immutable/chunks/{VvLcPf2a.js → BdY8OnZP.js} +1 -1
  69. package/web/app/immutable/chunks/{C8qAflad.js → BdlYeRHB.js} +2 -2
  70. package/web/app/immutable/chunks/{CPO5_F83.js → BeUuk8D1.js} +1 -1
  71. package/web/app/immutable/chunks/{Da-Blgd9.js → Bf_4e4N2.js} +1 -1
  72. package/web/app/immutable/chunks/{BVkAOJlr.js → BhYFIrRM.js} +1 -1
  73. package/web/app/immutable/chunks/{CqVGtsXz.js → BhtJVlVx.js} +1 -1
  74. package/web/app/immutable/chunks/{Cv0wEzuo.js → Bj4j6g-o.js} +1 -1
  75. package/web/app/immutable/chunks/{BJO0de_7.js → BjdIR-od.js} +1 -1
  76. package/web/app/immutable/chunks/{CdSTecgc.js → Bk14_fvY.js} +1 -1
  77. package/web/app/immutable/chunks/{Bc1vJq_Z.js → BlRGZv8u.js} +1 -1
  78. package/web/app/immutable/chunks/{Bi_Yd73A.js → BmLlDCoW.js} +1 -1
  79. package/web/app/immutable/chunks/{Ex_x2wO5.js → Bn4F-JIh.js} +1 -1
  80. package/web/app/immutable/chunks/{Bu-RLSv9.js → BoEcbLG-.js} +1 -1
  81. package/web/app/immutable/chunks/{CC-IHSah.js → BolJpU8l.js} +4 -4
  82. package/web/app/immutable/chunks/{BwPwF85e.js → BpLxj3s3.js} +1 -1
  83. package/web/app/immutable/chunks/{D7Dfbf5g.js → BqCTtUhB.js} +1 -1
  84. package/web/app/immutable/chunks/{fVXs4sxg.js → BqrahRdk.js} +4 -4
  85. package/web/app/immutable/chunks/{Dval4sTX.js → BrDfJqC4.js} +1 -1
  86. package/web/app/immutable/chunks/{DiMo2JnB.js → BtMIAxno.js} +1 -1
  87. package/web/app/immutable/chunks/{Cy3lhXYa.js → BthojcF8.js} +6 -6
  88. package/web/app/immutable/chunks/{DtqPBHQj.js → Btst3lgy.js} +1 -1
  89. package/web/app/immutable/chunks/{D-rRuAXZ.js → Bu3PKqut.js} +1 -1
  90. package/web/app/immutable/chunks/{pomj9evG.js → Bv_0mmoe.js} +1 -1
  91. package/web/app/immutable/chunks/{By4iSN8L.js → BwVjpKmH.js} +1 -1
  92. package/web/app/immutable/chunks/{LI9J8Eor.js → BweHPPaS.js} +2 -2
  93. package/web/app/immutable/chunks/{418Agcsp.js → Bx7gCv2M.js} +1 -1
  94. package/web/app/immutable/chunks/{B8QvP_8b.js → BxU747mj.js} +1 -1
  95. package/web/app/immutable/chunks/{DhXcDqZX.js → ByZL9dMf.js} +1 -1
  96. package/web/app/immutable/chunks/{-9EwpXCb.js → C1La-Fme.js} +1 -1
  97. package/web/app/immutable/chunks/{CletI6Pa.js → C21Z9LLF.js} +1 -1
  98. package/web/app/immutable/chunks/{BgDnzAo4.js → C4M_mNFP.js} +1 -1
  99. package/web/app/immutable/chunks/{BXJzIaQM.js → C6Wi6O6n.js} +1 -1
  100. package/web/app/immutable/chunks/{L_sfch_N.js → C6afU4he.js} +1 -1
  101. package/web/app/immutable/chunks/{DMe_MB5T.js → C6rz0msZ.js} +1 -1
  102. package/web/app/immutable/chunks/{CPI5xBWX.js → C8TrySMt.js} +1 -1
  103. package/web/app/immutable/chunks/{DI71nFp4.js → C9ij7Z2h.js} +1 -1
  104. package/web/app/immutable/chunks/{D5Pfy-wQ.js → CB8gRmKb.js} +1 -1
  105. package/web/app/immutable/chunks/{BVl79jmM.js → CDxGu9F5.js} +1 -1
  106. package/web/app/immutable/chunks/{B3SHGkI_.js → CDxV78M0.js} +1 -1
  107. package/web/app/immutable/chunks/{DN-DN78v.js → CFB2mNds.js} +2 -2
  108. package/web/app/immutable/chunks/{CN-EAu8o.js → CF_a5Llj.js} +1 -1
  109. package/web/app/immutable/chunks/{OGqbAD_O.js → CFdI48b2.js} +1 -1
  110. package/web/app/immutable/chunks/{BQvwLP7I.js → CGHwi-2H.js} +1 -1
  111. package/web/app/immutable/chunks/{CI0C7_h-.js → CGUVvS8r.js} +1 -1
  112. package/web/app/immutable/chunks/CH-Qi35K.js +1 -0
  113. package/web/app/immutable/chunks/{BPuz5cN_.js → CIKXOyvw.js} +2 -2
  114. package/web/app/immutable/chunks/{4g_iHoQm.js → CIoJPvjg.js} +1 -1
  115. package/web/app/immutable/chunks/{qO0mYaJv.js → CJEwuNO9.js} +1 -1
  116. package/web/app/immutable/chunks/{Cy9hcA7q.js → CJke1tnU.js} +1 -1
  117. package/web/app/immutable/chunks/{XEsFBJqZ.js → CLqqc_hU.js} +1 -1
  118. package/web/app/immutable/chunks/{BTEoQf52.js → CM9GoLV5.js} +1 -1
  119. package/web/app/immutable/chunks/{C9ew0Hx2.js → COBhx_l-.js} +1 -1
  120. package/web/app/immutable/chunks/{DTMxJ5IC.js → COS4Sgoi.js} +2 -2
  121. package/web/app/immutable/chunks/{jH2J-9un.js → COSIRxZC.js} +1 -1
  122. package/web/app/immutable/chunks/{C6TTEdST.js → COlfJVPs.js} +4 -4
  123. package/web/app/immutable/chunks/{A0KsbysW.js → COsxNPUV.js} +1 -1
  124. package/web/app/immutable/chunks/{QRUY44Ff.js → CPWMushE.js} +1 -1
  125. package/web/app/immutable/chunks/{tLFaYuVN.js → CQ5BHnSj.js} +1 -1
  126. package/web/app/immutable/chunks/{B_75gRww.js → CRUcTVFP.js} +1 -1
  127. package/web/app/immutable/chunks/{C9p4fddz.js → CSb1CnpN.js} +1 -1
  128. package/web/app/immutable/chunks/{CzDPvHAo.js → CTTICX_5.js} +1 -1
  129. package/web/app/immutable/chunks/{jBG7W4tL.js → CTqRHXfu.js} +1 -1
  130. package/web/app/immutable/chunks/{h8JtxU_T.js → CUA9hM4m.js} +1 -1
  131. package/web/app/immutable/chunks/{Q2C1NT93.js → CUeOEnqq.js} +1 -1
  132. package/web/app/immutable/chunks/{D-KE4WZ3.js → CW979n9w.js} +1 -1
  133. package/web/app/immutable/chunks/{3xVgojWv.js → CY0EK8Cm.js} +3 -3
  134. package/web/app/immutable/chunks/{C1AUaRa8.js → CYq58ltZ.js} +1 -1
  135. package/web/app/immutable/chunks/{LQRHF1eM.js → CZ5zON0R.js} +1 -1
  136. package/web/app/immutable/chunks/{DQT1hnTe.js → C_wfHKmM.js} +1 -1
  137. package/web/app/immutable/chunks/{Cx0QXTIW.js → CaHWSiOY.js} +1 -1
  138. package/web/app/immutable/chunks/{iCWz6IE9.js → CaMRSd1-.js} +1 -1
  139. package/web/app/immutable/chunks/{DWa-2rkZ.js → CdGl_2eX.js} +1 -1
  140. package/web/app/immutable/chunks/{C8LrJXqa.js → Cerl373K.js} +1 -1
  141. package/web/app/immutable/chunks/{DjIQY_o5.js → CfnXjWQL.js} +1 -1
  142. package/web/app/immutable/chunks/ChKOG1mU.js +3 -0
  143. package/web/app/immutable/chunks/{CHto7_WH.js → ChOMtuod.js} +1 -1
  144. package/web/app/immutable/chunks/{CuPx_r7k.js → CjLfgoGI.js} +1 -1
  145. package/web/app/immutable/chunks/{BV4VuEnO.js → CnMzOGNL.js} +1 -1
  146. package/web/app/immutable/chunks/{C37ZqG4e.js → CnQVxh95.js} +1 -1
  147. package/web/app/immutable/chunks/{Dm-WfTCg.js → Cpgxz5sK.js} +1 -1
  148. package/web/app/immutable/chunks/{n5-dpvss.js → Cpw2gXhG.js} +1 -1
  149. package/web/app/immutable/chunks/{Do2KlQU0.js → CsilY7l9.js} +1 -1
  150. package/web/app/immutable/chunks/{C-zB-6G6.js → CueOVPTy.js} +1 -1
  151. package/web/app/immutable/chunks/{VeUh5OMZ.js → CvSLeFQo.js} +1 -1
  152. package/web/app/immutable/chunks/{COgn_CzG.js → CvusaaYc.js} +1 -1
  153. package/web/app/immutable/chunks/{BECK4OaG.js → Cwg3XF5F.js} +1 -1
  154. package/web/app/immutable/chunks/{CDAnHxmJ.js → CyHe7TdT.js} +1 -1
  155. package/web/app/immutable/chunks/{B2CniqS1.js → D22j4iWy.js} +1 -1
  156. package/web/app/immutable/chunks/{BSUnflvl.js → D2Tzo4Hp.js} +1 -1
  157. package/web/app/immutable/chunks/{ZR3wQ419.js → D5A9atQX.js} +2 -2
  158. package/web/app/immutable/chunks/{DNDlsdj4.js → D5evzUZd.js} +1 -1
  159. package/web/app/immutable/chunks/{DJPIUVkw.js → D5xlMOwU.js} +1 -1
  160. package/web/app/immutable/chunks/{e3_wv2e_.js → D6_ybykj.js} +1 -1
  161. package/web/app/immutable/chunks/{CGYPBD6G.js → D7yetF0v.js} +1 -1
  162. package/web/app/immutable/chunks/{D2kwjrZB.js → D9_wDL10.js} +1 -1
  163. package/web/app/immutable/chunks/{GP4LXuR4.js → DAI6QH7D.js} +1 -1
  164. package/web/app/immutable/chunks/{BLKFshyr.js → DAVG7sIL.js} +1 -1
  165. package/web/app/immutable/chunks/{C78AfvXn.js → DBwdk2-0.js} +1 -1
  166. package/web/app/immutable/chunks/{CXpEvkVR.js → DC1xYxUn.js} +1 -1
  167. package/web/app/immutable/chunks/{TT8yXpG-.js → DDdsJrHq.js} +1 -1
  168. package/web/app/immutable/chunks/{D_VvdZe2.js → DEKjIPd8.js} +1 -1
  169. package/web/app/immutable/chunks/{Dvi4g0xk.js → DFKO8V-Y.js} +1 -1
  170. package/web/app/immutable/chunks/{BSgFpkqa.js → DGdWzkgm.js} +1 -1
  171. package/web/app/immutable/chunks/{BVuLEX_p.js → DIQ-xR1q.js} +1 -1
  172. package/web/app/immutable/chunks/{DmCKwthV.js → DIWzdBfB.js} +1 -1
  173. package/web/app/immutable/chunks/{C5b7nimj.js → DIad5c9_.js} +1 -1
  174. package/web/app/immutable/chunks/{B6eTPmJH.js → DJJ2Xrlq.js} +1 -1
  175. package/web/app/immutable/chunks/{4PAYwk2I.js → DJb2lMGn.js} +1 -1
  176. package/web/app/immutable/chunks/{C2WwQCOk.js → DKupjKLn.js} +1 -1
  177. package/web/app/immutable/chunks/{RHSH5iZ7.js → DNDJdxKs.js} +1 -1
  178. package/web/app/immutable/chunks/{Dp8FVKoA.js → DOLX5oss.js} +1 -1
  179. package/web/app/immutable/chunks/{CmyBYYR3.js → DOZ82gYM.js} +1 -1
  180. package/web/app/immutable/chunks/{rcXEnwTB.js → DOir9M0E.js} +1 -1
  181. package/web/app/immutable/chunks/{BNV0s95-.js → DQBViT5w.js} +1 -1
  182. package/web/app/immutable/chunks/{Dxfvrgme.js → DQvAX2eX.js} +1 -1
  183. package/web/app/immutable/chunks/{CNE5cVvC.js → DSDM77x3.js} +1 -1
  184. package/web/app/immutable/chunks/{DZmGZ5am.js → DU1c0itA.js} +1 -1
  185. package/web/app/immutable/chunks/DWvCfaBg.js +1 -0
  186. package/web/app/immutable/chunks/{7y3Z0Q49.js → DX2U4Mz9.js} +3 -3
  187. package/web/app/immutable/chunks/{Cl_O0hHI.js → DXDbxM_W.js} +1 -1
  188. package/web/app/immutable/chunks/{CrvVM5aL.js → DY1YVoxv.js} +1 -1
  189. package/web/app/immutable/chunks/{8jMQM9h0.js → DY5rw8pn.js} +1 -1
  190. package/web/app/immutable/chunks/{DFGMgfIk.js → DZSbMOPJ.js} +2 -2
  191. package/web/app/immutable/chunks/{CpFDUMBH.js → DZjSAGjX.js} +1 -1
  192. package/web/app/immutable/chunks/Da8rtzmJ.js +1 -0
  193. package/web/app/immutable/chunks/{Cw-qJqDx.js → DaOKbar2.js} +2 -2
  194. package/web/app/immutable/chunks/{CNnF3Cms.js → DbUDL_oo.js} +1 -1
  195. package/web/app/immutable/chunks/{BvgjsneA.js → Dbr8gjWS.js} +1 -1
  196. package/web/app/immutable/chunks/{L-Sh3Ble.js → DbxqdYAO.js} +3 -3
  197. package/web/app/immutable/chunks/{pHBnQb5R.js → DcLVN86K.js} +1 -1
  198. package/web/app/immutable/chunks/{xGzY0FqC.js → DcMTwn77.js} +1 -1
  199. package/web/app/immutable/chunks/{DT5eV1e8.js → DdRupUfV.js} +2 -2
  200. package/web/app/immutable/chunks/{wiGlLVr-.js → Dde9Z_vp.js} +1 -1
  201. package/web/app/immutable/chunks/{BQ53265L.js → DdjeekcY.js} +1 -1
  202. package/web/app/immutable/chunks/{BJgwBOBz.js → Dduwpj0a.js} +1 -1
  203. package/web/app/immutable/chunks/{CV2tdNDf.js → De0cdeOU.js} +1 -1
  204. package/web/app/immutable/chunks/{CuWLpCl5.js → De2a277N.js} +1 -1
  205. package/web/app/immutable/chunks/{C_SKcJv7.js → DeY70dof.js} +1 -1
  206. package/web/app/immutable/chunks/{DSiGyv9Y.js → Df4a242o.js} +1 -1
  207. package/web/app/immutable/chunks/{M1XBe23f.js → DfgH7-YK.js} +1 -1
  208. package/web/app/immutable/chunks/{7OH6WUSt.js → DgjIVRdE.js} +1 -1
  209. package/web/app/immutable/chunks/{CfYZevDu.js → DgzMHcMD.js} +1 -1
  210. package/web/app/immutable/chunks/{DEs9kPtf.js → Dh-HeAnQ.js} +1 -1
  211. package/web/app/immutable/chunks/{C-L0-C2F.js → Dh438xC0.js} +2 -2
  212. package/web/app/immutable/chunks/{DgKpR9KC.js → DhaHSPPQ.js} +1 -1
  213. package/web/app/immutable/chunks/{B433f4mk.js → Di_ao8Rc.js} +1 -1
  214. package/web/app/immutable/chunks/{CIaruUrd.js → DjNuITHM.js} +1 -1
  215. package/web/app/immutable/chunks/{BSntxgH1.js → Djah0WfC.js} +1 -1
  216. package/web/app/immutable/chunks/{BbLh3POL.js → DlMrAlfA.js} +1 -1
  217. package/web/app/immutable/chunks/{C8zl7aIj.js → Dm3wAkDL.js} +1 -1
  218. package/web/app/immutable/chunks/{B5qiyEpH.js → DpESY8ko.js} +1 -1
  219. package/web/app/immutable/chunks/{B_4WsP9b.js → DpvQ3NRH.js} +1 -1
  220. package/web/app/immutable/chunks/{JM7CQkWC.js → Dpvv-9m3.js} +1 -1
  221. package/web/app/immutable/chunks/{nwO3KCpP.js → DpxbS0Pj.js} +1 -1
  222. package/web/app/immutable/chunks/{BIGqOuh0.js → Drf1gLyo.js} +1 -1
  223. package/web/app/immutable/chunks/{CxndkliV.js → DrkDJmY5.js} +1 -1
  224. package/web/app/immutable/chunks/{DxRojUvw.js → DsOS7N8Z.js} +1 -1
  225. package/web/app/immutable/chunks/{_i0M7_-r.js → Dt3xwKL6.js} +2 -2
  226. package/web/app/immutable/chunks/{CEEUgGO1.js → DtQHtXEW.js} +1 -1
  227. package/web/app/immutable/chunks/{DDb9H7X6.js → DvnO7gWT.js} +3 -3
  228. package/web/app/immutable/chunks/{BdEtT3Ti.js → DxWgWHgi.js} +1 -1
  229. package/web/app/immutable/chunks/{V6efYFFY.js → DxuwadpA.js} +1 -1
  230. package/web/app/immutable/chunks/{0Ipp5cFr.js → DyLERSuu.js} +1 -1
  231. package/web/app/immutable/chunks/{pMP23LzB.js → DyXOhKE5.js} +1 -1
  232. package/web/app/immutable/chunks/{BlIRL_82.js → Dyx6ysl7.js} +1 -1
  233. package/web/app/immutable/chunks/{CR-JVxLD.js → DzBJS0Lp.js} +1 -1
  234. package/web/app/immutable/chunks/{Bv_xG3nA.js → DzpuLv6U.js} +1 -1
  235. package/web/app/immutable/chunks/{BcKrkXju.js → E1uoF1cW.js} +1 -1
  236. package/web/app/immutable/chunks/{DsfORPYa.js → E8oicBhU.js} +1 -1
  237. package/web/app/immutable/chunks/{DV7x43jt.js → EQgYvydQ.js} +1 -1
  238. package/web/app/immutable/chunks/{9GO97JAL.js → FQkCsxt2.js} +1 -1
  239. package/web/app/immutable/chunks/{CGPajdHq.js → HcbkpXC1.js} +2 -2
  240. package/web/app/immutable/chunks/{BYl8t9od.js → HeVxSGdr.js} +1 -1
  241. package/web/app/immutable/chunks/{DRsDUO-4.js → IG43rVtJ.js} +1 -1
  242. package/web/app/immutable/chunks/{CAfPEsZt.js → Ksiiix3Q.js} +1 -1
  243. package/web/app/immutable/chunks/{DlUpt_0u.js → LdXAlc1O.js} +1 -1
  244. package/web/app/immutable/chunks/{44rP4fzJ.js → Ly7eBIj5.js} +1 -1
  245. package/web/app/immutable/chunks/{B72XM8Fm.js → MoxNukrR.js} +1 -1
  246. package/web/app/immutable/chunks/{C-PQQ8rb.js → Nrq0Uf9_.js} +1 -1
  247. package/web/app/immutable/chunks/{DPR_clFy.js → OMssb4xF.js} +1 -1
  248. package/web/app/immutable/chunks/{C0Zo7HuP.js → PkPZtGfM.js} +1 -1
  249. package/web/app/immutable/chunks/{CqUPwDgo.js → Pyf1FzKM.js} +1 -1
  250. package/web/app/immutable/chunks/{3qVSmuIV.js → QA00-uqv.js} +1 -1
  251. package/web/app/immutable/chunks/{Bs7M8kXA.js → QIFiwjW0.js} +3 -3
  252. package/web/app/immutable/chunks/{Dg0Tdf_A.js → TN7R9Ny0.js} +1 -1
  253. package/web/app/immutable/chunks/{waHi6l7h.js → TXPMw3n4.js} +1 -1
  254. package/web/app/immutable/chunks/{gZJn6Sk0.js → TyVpf8MX.js} +1 -1
  255. package/web/app/immutable/chunks/{fHygQTSC.js → UQ6MIVTw.js} +1 -1
  256. package/web/app/immutable/chunks/{yDmmPu6L.js → UnM4qztD.js} +1 -1
  257. package/web/app/immutable/chunks/{PhAbES0t.js → UqcU95a7.js} +1 -1
  258. package/web/app/immutable/chunks/{DLCFUd4s.js → VTJf_qPn.js} +1 -1
  259. package/web/app/immutable/chunks/{B8HnjSSF.js → W05hyx94.js} +1 -1
  260. package/web/app/immutable/chunks/{D1zX4MuR.js → XMluVOSf.js} +1 -1
  261. package/web/app/immutable/chunks/{BtBQ5qfh.js → Y4bYs1dr.js} +1 -1
  262. package/web/app/immutable/chunks/{B5tvpTFB.js → Y_tkjygB.js} +1 -1
  263. package/web/app/immutable/chunks/{DBH_GMOZ.js → YbqMJoDi.js} +1 -1
  264. package/web/app/immutable/chunks/{CRSY1kuo.js → Z8DHXl17.js} +1 -1
  265. package/web/app/immutable/chunks/{BZVhwNIm.js → _HPNXgkR.js} +3 -3
  266. package/web/app/immutable/chunks/{Bf_nrOhg.js → aixoUWDq.js} +1 -1
  267. package/web/app/immutable/chunks/{DtFzaymP.js → awY5HvZY.js} +1 -1
  268. package/web/app/immutable/chunks/{5-0LQoqd.js → bIL0xbKX.js} +1 -1
  269. package/web/app/immutable/chunks/{BByf3ILj.js → bojY7ttK.js} +1 -1
  270. package/web/app/immutable/chunks/{dmZv6JOg.js → cfiNEg68.js} +1 -1
  271. package/web/app/immutable/chunks/{DRqy_Wmb.js → dFhS46gw.js} +1 -1
  272. package/web/app/immutable/chunks/{DM1_VFfD.js → fC3yz20p.js} +1 -1
  273. package/web/app/immutable/chunks/{DYEwyuIx.js → h5ZeHogL.js} +1 -1
  274. package/web/app/immutable/chunks/{C429ZMSU.js → hRfDutUE.js} +1 -1
  275. package/web/app/immutable/chunks/{C-G2u0Oe.js → hstOawAs.js} +1 -1
  276. package/web/app/immutable/chunks/{BbuLzldI.js → i8jM24jD.js} +1 -1
  277. package/web/app/immutable/chunks/{DXRkYB1Y.js → ico0GHoP.js} +30 -30
  278. package/web/app/immutable/chunks/{Cp02CBjf.js → jyNUu-ZR.js} +1 -1
  279. package/web/app/immutable/chunks/{BDsciJGp.js → kAav5o2h.js} +1 -1
  280. package/web/app/immutable/chunks/{BV1ayWTC.js → lSLkjC_I.js} +1 -1
  281. package/web/app/immutable/chunks/{BuFDqZnJ.js → mRUS_S7Z.js} +1 -1
  282. package/web/app/immutable/chunks/{BHqp2vwo.js → maZzJmVw.js} +1 -1
  283. package/web/app/immutable/chunks/{BvbeTrka.js → r5JNAzEM.js} +1 -1
  284. package/web/app/immutable/chunks/{CXDUvPYf.js → rsUVVEzx.js} +1 -1
  285. package/web/app/immutable/chunks/{lTwh0Wzj.js → tHETzssD.js} +1 -1
  286. package/web/app/immutable/chunks/{BzSCTZkL.js → v7JbBbwR.js} +1 -1
  287. package/web/app/immutable/chunks/{Cp7Byf5d.js → wBNgrgMC.js} +1 -1
  288. package/web/app/immutable/chunks/{DX9N1RQz.js → x-RVzKqZ.js} +1 -1
  289. package/web/app/immutable/chunks/{BTLG1BY-.js → yMcNgg0D.js} +1 -1
  290. package/web/app/immutable/chunks/{BNa9zzEx.js → yqEyUNVG.js} +1 -1
  291. package/web/app/immutable/chunks/{LgyvMkc8.js → yy2JFRyT.js} +1 -1
  292. package/web/app/immutable/chunks/{7KxcPj98.js → zFAkpaJn.js} +1 -1
  293. package/web/app/immutable/entry/{app.BXfGjD4L.js → app.gkm8TnXW.js} +3 -3
  294. package/web/app/immutable/entry/start.CMMmzvCE.js +1 -0
  295. package/web/app/immutable/nodes/{0.CoxSTVXk.js → 0.xKtnYOA2.js} +1 -1
  296. package/web/app/immutable/nodes/{1.BbjU9IH_.js → 1.BMx4VsW1.js} +1 -1
  297. package/web/app/immutable/nodes/{10.D6wyP02T.js → 10.HyXPJR8g.js} +5 -5
  298. package/web/app/immutable/nodes/{11.ukc3KQLY.js → 11._cAIrch_.js} +1 -1
  299. package/web/app/immutable/nodes/{12.D6rxlIQy.js → 12.DOoAvwLA.js} +1 -1
  300. package/web/app/immutable/nodes/{13.CHYsmiD_.js → 13.Coj_sRB4.js} +1 -1
  301. package/web/app/immutable/nodes/{14.mG-YN9pn.js → 14.AVrz3ZLQ.js} +3 -3
  302. package/web/app/immutable/nodes/{15.CUWA_Nvq.js → 15.BGK-JRWm.js} +1 -1
  303. package/web/app/immutable/nodes/{16.BsFtzH0D.js → 16.CMkcwVoI.js} +1 -1
  304. package/web/app/immutable/nodes/{17.me_aOx8O.js → 17.BS5un5d0.js} +1 -1
  305. package/web/app/immutable/nodes/{18.BO1oZWgm.js → 18._hTG2-17.js} +1 -1
  306. package/web/app/immutable/nodes/{19.D9cBSCEY.js → 19.DuCFyr_N.js} +2 -2
  307. package/web/app/immutable/nodes/{2.pGtn3nxM.js → 2.uAqDAg4D.js} +4 -4
  308. package/web/app/immutable/nodes/{20.LbRPieV_.js → 20.C1pW6BvW.js} +1 -1
  309. package/web/app/immutable/nodes/{3.Bm-Ewkeu.js → 3.M-EbuqKW.js} +1 -1
  310. package/web/app/immutable/nodes/{4.bypHtb3m.js → 4.ByPZ1Nrn.js} +1 -1
  311. package/web/app/immutable/nodes/{5.YWphdJEW.js → 5.DKAjjuf7.js} +1 -1
  312. package/web/app/immutable/nodes/{6.DQRfO1Qb.js → 6.DOc_YxMK.js} +1 -1
  313. package/web/app/immutable/nodes/{7.b1goQuXf.js → 7.gFNAyoNX.js} +1 -1
  314. package/web/app/immutable/nodes/{8.BBgV9gU6.js → 8.C_Kp8pWz.js} +1 -1
  315. package/web/app/immutable/nodes/{9.BJdtENce.js → 9.C6HX35Sq.js} +4 -4
  316. package/web/app/version.json +1 -1
  317. package/web/generated/paraglide.js +49 -49
  318. package/web/index.html +19 -19
  319. package/web/app/immutable/assets/0.BmwjvpSF.css +0 -1
  320. package/web/app/immutable/chunks/CCIZBeez.js +0 -1
  321. package/web/app/immutable/chunks/CNWb-jYE.js +0 -1
  322. package/web/app/immutable/chunks/Dws-34a7.js +0 -1
  323. package/web/app/immutable/chunks/DyXAZ9tr.js +0 -3
  324. package/web/app/immutable/chunks/Whej1Dge.js +0 -1
  325. package/web/app/immutable/entry/start.DRVSg-kr.js +0 -1
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CI0C7_h-.js","/app/immutable/chunks/4g_iHoQm.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/8jMQM9h0.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/D-rRuAXZ.js","/app/immutable/chunks/Dws-34a7.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/SbTG0nwQ.js","/app/immutable/chunks/CGYPBD6G.js","/app/immutable/chunks/B5tvpTFB.js","/app/immutable/chunks/DLCFUd4s.js","/app/immutable/chunks/BD9db4FR.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/C-zB-6G6.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/BPuz5cN_.js","/app/immutable/chunks/7KxcPj98.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/Dval4sTX.js","/app/immutable/chunks/B8HnjSSF.js","/app/immutable/chunks/DtqPBHQj.js","/app/immutable/chunks/tLFaYuVN.js","/app/immutable/chunks/B6eTPmJH.js","/app/immutable/chunks/rXKOJqUt.js","/app/immutable/chunks/BIGqOuh0.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/5-0LQoqd.js","/app/immutable/chunks/DcOkWaeN.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/Bc1vJq_Z.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css"])))=>i.map(i=>d[i]);
2
- var ne=Object.defineProperty;var oe=(e,t,r)=>t in e?ne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var d=(e,t,r)=>oe(e,typeof t!="symbol"?t+"":t,r);import{Jx as a,uB as ce,nZ as y,nY as k,mq as le,yY as C,yZ as B,yW as de,yV as ue,yX as pe,rU as ge,c9 as he,c8 as fe,cn as Se,cm as be,n$ as w}from"./4g_iHoQm.js";import{cU as me,cJ as ve,bJ as _e,cl as Ae,cB as ye,cn as ke,cS as Q,aJ as we,c3 as Ee,c_ as Ce}from"./SbTG0nwQ.js";import{a as Pe,i as Re}from"./CL3a4Hm1.js";import{c as N}from"./ChTqQfQN.js";import{i as D}from"./BBWuirRW.js";import{bm as n,_ as Me}from"./Dws-34a7.js";import{n as Te}from"./De0kCZ4v.js";import{x as Ie,aO as Fe,c as De,aD as Le,B as xe,y as Oe,z as We}from"./B_4WsP9b.js";import{a0 as Be,K as J,a1 as Ge,ay as U,Z as Ve,a3 as Ne,L as Ue,$ as He,aA as qe,x as $e}from"./PhAbES0t.js";const ze=5,L=120,je=4e3,j=.2,Ke=.8;function Ze(e,t,r=ze){const s=e.length>0?t/(2*e.length):0,i=je/L;return Array.from({length:r},(o,l)=>{if(s<=0)return 0;const c=L*i**(l/r),g=L*i**((l+1)/r),f=Math.min(e.length-1,Math.floor(c/s)),b=Math.min(e.length,Math.max(f+1,Math.ceil(g/s)));let $=0;for(let F=f;F<b;F+=1)$+=e[F]??0;const z=($/(b-f)/255-j)/(Ke-j);return Number.isFinite(z)?Math.min(1,Math.max(0,z)):0})}const _r=a.createSelector(e=>me.select(e)?.capabilities.gitlabCheckout===!0),Ar=a.createSelector(e=>e.gitlabAuth.host),yr=a.createSelector(e=>e.gitlabAuth.instanceBaseUrl??e.gitlabAuth.host),kr=a.createSelector(e=>ce(e.gitlabAuth.instanceBaseUrl??e.gitlabAuth.host)??""),wr=a.createSelector(e=>e.gitlabAuth.isCancelling),Er=a.createSelector(e=>e.gitlabAuth.cancelOutcome),Cr=a.createSelector(e=>e.gitlabAuth.isConfigured),Pr=a.createSelector(e=>e.gitlabAuth.isAuthenticating),Rr=a.createSelector(e=>e.gitlabAuth.deviceFlow),Mr=a.createSelector(e=>e.gitlabAuth.deviceGrantSupported),Tr=a.createSelector(e=>e.gitlabAuth.user),Ir=a.createSelector(e=>e.gitlabAuth.error);a.createSelector(e=>e.gitlabAuth.method);const Fr=a.createSelector(e=>e.gitlabAuth.statusReady===!0),A=[{id:"pr-reviewer",icon:"pr-reviewer",get name(){return n.specialists_builtin_prReviewer_name()},get description(){return n.specialists_builtin_prReviewer_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"ui-designer",icon:"ui-designer",get name(){return n.specialists_builtin_uiDesigner_name()},get description(){return n.specialists_builtin_uiDesigner_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"vulnerability-scanner",icon:"pr-reviewer",get name(){return n.specialists_builtin_vulnerabilityScanner_name()},get description(){return n.specialists_builtin_vulnerabilityScanner_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"developer",icon:"verifier",get name(){return n.specialists_builtin_developer_name()},get description(){return n.specialists_builtin_developer_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"product-manager",icon:"coordinator",get name(){return n.specialists_builtin_productManager_name()},get description(){return n.specialists_builtin_productManager_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"maintenance-coordinator",icon:"ralph",get name(){return n.specialists_builtin_maintenanceCoordinator_name()},get description(){return n.specialists_builtin_maintenanceCoordinator_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"chief-of-staff",icon:"chief-of-staff",get name(){return n.specialists_builtin_chiefOfStaff_name()},get description(){return n.specialists_builtin_chiefOfStaff_description()},hidden:!0,defaultBehaviorPrompt:"",promptUnavailable:!0}],Y=new Set(["pr-reviewer"]),Dr="developer";function Lr(e){return A.find(t=>t.id===e)}const Qe=a.createSelector(e=>e.githubAuth.mutationRequestId),Je=a.createSelector(e=>e.githubAuth.callbacksCancelled),Ye=a.createSelector(e=>e.githubAuth.isDisconnecting),X=a.createSelector(e=>e.githubAuth.isAuthenticated),Xe=a.createSelector(e=>e.githubAuth.statusSettled===!0),et=a.createSelector(e=>e.githubAuth.requiresDaemonAuth),tt=a.createSelector(e=>e.githubAuth.user),rt=a.createSelector(e=>e.githubAuth.isAuthenticating),st=a.createSelector(e=>e.githubAuth.deviceFlow),it=a.createSelector(e=>e.githubAuth.error),xr=Object.freeze(Object.defineProperty({__proto__:null,selectGitHubAuthCallbacksCancelled:Je,selectGitHubAuthDeviceFlow:st,selectGitHubAuthError:it,selectGitHubAuthIsAuthenticated:X,selectGitHubAuthIsAuthenticating:rt,selectGitHubAuthIsDisconnecting:Ye,selectGitHubAuthMutationRequestId:Qe,selectGitHubAuthRequiresDaemonAuth:et,selectGitHubAuthStatusSettled:Xe,selectGitHubAuthUser:tt},Symbol.toStringTag,{value:"Module"}));function u(e){return e??""}function at(e,t){const r=e??[],s=t??[];return r.length===s.length&&r.every((i,o)=>u(i.provider)===u(s[o].provider)&&i.model===s[o].model&&i.hint===s[o].hint&&u(i.reasoningEffort)===u(s[o].reasoningEffort))}function K(e,t){if(e.source!=="user"||!t?.ignoreModelPin&&(e.model||e.codingAgent))return!1;const r=e.bundled;return r?u(e.name)===u(r.name)&&u(e.description)===u(r.description)&&u(e.behaviorPrompt)===u(r.behaviorPrompt)&&u(e.roleReminder)===u(r.roleReminder)&&u(e.reasoningEffort)===u(r.reasoningEffort)&&at(e.modelOptions,r.modelOptions):!1}const Or=a.createSelector(e=>e.specialists.bundledSpecialists),nt=a.createSelector(e=>e.specialists.fileSpecialists),Wr=a.createSelector(e=>y(nt.select(e))),Br=a.createSelector(e=>e.specialists.userOverrides);a.createSelector(e=>e.specialists.overridesLoaded);const Gr=a.createSelector(e=>e.specialists.customSpecialistsLoaded),Vr=a.createSelector(e=>e.specialists.fileSpecialistsLoaded),Nr=a.createSelector(e=>e.specialists.bundledSpecialistsLoaded),Ur=a.createSelector(e=>e.specialists.specialistsFolderPath),Hr=a.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:""});a.createSelector(e=>e.specialists.providerModelOverrides);const x=a.createSelector((e,t)=>!(Y.has(t)&&!X.select(e)));function ot(e,t){return t?e:e.filter(r=>!Y.has(r.id))}function ct(e,t){return ot(e,t).filter(r=>!r.hidden)}function qr(e,t){return ct(e,t).filter(r=>r.role!=="internal")}const v=a.createSelector((e,t)=>{if(t)return(e.providerCatalog?.byWorkspaceId?.[t]?.specialists??[]).map(c=>({...c,defaultModel:c.model,defaultBehaviorPrompt:c.behaviorPrompt??c.prompt??"",defaultAgentType:c.agentType}));const r=y(e.specialists.fileSpecialists),s=e.specialists.bundledSpecialists,i=new Set,o=[];for(const c of r)!i.has(c.id)&&x.select(e,c.id)&&(i.add(c.id),o.push({id:c.id,name:c.name,description:c.description,codingAgent:c.codingAgent,defaultModel:c.model||void 0,defaultBehaviorPrompt:c.behaviorPrompt,roleReminder:c.roleReminder,source:c.source,importedFrom:c.importedFrom,unsupportedFields:c.unsupportedFields,requiredSkills:c.requiredSkills,missingSkills:c.missingSkills,hidden:c.hidden,resolvedModel:c.resolvedModel,resolvedProvider:c.resolvedProvider,modelOptions:c.modelOptions,reasoningEffort:c.reasoningEffort,role:c.role,teamAgents:c.teamAgents,icon:c.icon}));for(const c of s)!i.has(c.id)&&x.select(e,c.id)&&(i.add(c.id),o.push(c));if(!e.specialists.bundledSpecialistsLoaded&&r.length===0&&s.length===0)for(const c of A)!i.has(c.id)&&x.select(e,c.id)&&(i.add(c.id),o.push(c));const l=new Map;for(const c of A)l.has(c.id)||l.set(c.id,l.size);for(const c of s)l.has(c.id)||l.set(c.id,l.size);return o.sort((c,g)=>{const f=l.has(c.id),b=l.has(g.id);return f&&b?(l.get(c.id)??0)-(l.get(g.id)??0):f&&!b?-1:!f&&b?1:c.name.localeCompare(g.name)}),o}),$r=a.createSelector(e=>{const t=v.select(e).filter(s=>s.role==="orchestrator");if(t.length===0)return null;const r=new Set([...A.map(({id:s})=>s),...e.specialists.bundledSpecialists.map(({id:s})=>s)]);return t.sort((s,i)=>+!r.has(s.id)-+!r.has(i.id)||s.id.localeCompare(i.id)),t[0]}),lt=a.createSelector((e,t)=>{const r=k(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(i=>i.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 i=A.find(o=>o.id===t);if(i)return{id:i.id,name:i.name,description:i.description,source:"builtin"}}return null}),zr=a.createSelector((e,t)=>lt.select(e,t)?.name??null),jr=a.createSelector((e,t,r)=>{const i=v.select(e,r).find(o=>o.id===t);return i?i.defaultModel?i.defaultModel:i.resolvedModel??"":""}),Kr=a.createSelector((e,t,r)=>v.select(e,r).find(o=>o.id===t)?.defaultModel||void 0),Zr=a.createSelector((e,t,r)=>v.select(e,r).find(o=>o.id===t)?.reasoningEffort||void 0),Qr=a.createSelector((e,t,r)=>{const i=v.select(e,r).find(o=>o.id===t);return i?i.defaultBehaviorPrompt:""});function P(e,t){return t.some(r=>r.id===e)||A.some(r=>r.id===e)}const Jr=a.createSelector((e,t,r)=>{if(r){const s=e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(i=>i.id===t);return!s||s.importedFrom?!1:s.source==="bundled"||s.source==="user"&&P(t,e.specialists.bundledSpecialists)}return P(t,e.specialists.bundledSpecialists)}),Yr=a.createSelector((e,t,r)=>r?!!H.select(e,t,r):!!k(e.specialists.fileSpecialists,t)),Xr=a.createSelector((e,t,r)=>{if(r){const o=H.select(e,t,r);return!o||o.importedFrom||o.source==="project"?!1:P(t,e.specialists.bundledSpecialists)&&!K(o)}if(!P(t,e.specialists.bundledSpecialists))return!1;const i=k(e.specialists.fileSpecialists,t);return!i||i.source!=="user"?!1:!K(i)}),H=a.createSelector((e,t,r)=>{if(r){const s=e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(i=>i.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 k(e.specialists.fileSpecialists,t)}),es=a.createSelector((e,t,r)=>{const s=H.select(e,t,r);return r&&!s?e.providerCatalog?.byWorkspaceId?.[r]?.specialists.some(i=>i.id===t)?"Built-in":null:s?.source==="project"?"Project":s?.source==="user"?"User":e.specialists.bundledSpecialists.some(i=>i.id===t)?"Built-in":null}),ts=a.createSelector((e,t,r)=>{if(r)return e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(o=>o.id===t)?.path;const s=k(e.specialists.fileSpecialists,t);if(s)return s.filePath;const i=e.specialists.bundledSpecialists.find(o=>o.id===t);if(i&&"filePath"in i)return i.filePath}),rs=a.createSelector((e,t,r)=>{if(r){const i=v.select(e,r).find(c=>c.id===t),o=i?.codingAgent||i?.resolvedProvider;if(o)return ve.select(e,o,r);const l=_e.select(e,r);return e.providerCatalog?.byWorkspaceId?.[r]?.readiness[l]?.available?l:""}const s=k(e.specialists.fileSpecialists,t);return s?.codingAgent?s.codingAgent:dt.select(e,t)}),dt=a.createSelector((e,t)=>{const s=v.select(e).find(i=>i.id===t);return s?.codingAgent?s.codingAgent:Be.select(e)?J.select(e):""}),ss=a.createSelector((e,t)=>{if(t)return e.providerCatalog?.byWorkspaceId?.[t]?.importDiagnostics??[];const r=e.specialists.importDiagnostics;return r?y(r):[]}),is=a.createSelector((e,t)=>e.specialists.creationByContext?.[t]??le),as=a.createSelector(e=>Object.values(e.specialists.creationByContext??{}).flatMap(t=>t.specialistId?[t.specialistId]:[])),O=N("Clipboard");async function ns(e){let t;if(Pe())try{const r=await Re("system:write-clipboard",{text:e});if(r?.success===!1)throw new Error(r.error||"Electron clipboard write failed");return}catch(r){t=r,O.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 O.error("Browser clipboard write failed",r,{electronError:t}),r}throw O.error("No clipboard write API is available",void 0,{electronError:t}),t instanceof Error?t:new Error("Clipboard write API unavailable")}const os=a.createSelector(e=>e.directoryPicker.source??"daemon"),cs=a.createSelector(e=>e.directoryPicker.listing),ls=a.createSelector(e=>e.directoryPicker.loading),ds=a.createSelector(e=>e.directoryPicker.error),us=a.createSelector(e=>e.directoryPicker.pathError),ps=a.createSelector(e=>e.directoryPicker.createError),ut=N("WorkspaceValidation");async function gs(e,t=!1,r=!1){if(!e||e.trim().length===0)return{valid:!1,error:n.workspace_validation_repoPathRequired_error(),suggestion:n.workspace_validation_repoPathRequired_suggestion()};const s=e.trim();return pt(s)?ht(s):ft(s,t,r)}function pt(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 gt(e){const t=e.trim(),r=[/^https?:\/\/github\.com\/([^\/]+)\/([^\/]+)$/i,/^git@github\.com:([^\/]+)\/([^\/]+)$/i,/^github\.com\/([^\/]+)\/([^\/]+)$/i];for(const i of r){const o=t.match(i);if(o){const l=o[2].replace(/\.git$/,"");return l?{owner:o[1],repo:l}:null}}const s=t.match(/^([a-zA-Z0-9\-_]+)\/([a-zA-Z0-9\-_\.]+)$/);if(s&&!t.includes("\\")&&!t.includes(":")){const i=s[2].replace(/\.git$/,"");return i?{owner:s[1],repo:i}:null}return null}async function ht(e){return gt(e)?{valid:!0,warning:n.workspace_validation_githubCloneLocally_warning()}:{valid:!1,error:n.workspace_validation_invalidGithubUrl_error(),suggestion:n.workspace_validation_invalidGithubUrl_suggestion()}}async function ft(e,t=!1,r=!1){if(e.includes("\0"))return{valid:!1,error:n.workspace_validation_nullCharacters_error()};if(!e.startsWith("/")&&!e.startsWith("~")&&!e.startsWith(".")&&!e.includes(":\\")&&!/^[a-zA-Z]:\//.test(e))return{valid:!1,error:n.workspace_validation_pathNotAbsolute_error(),suggestion:n.workspace_validation_pathNotAbsolute_suggestion()};if(typeof window<"u"&&window.electronAPI)try{const s=await D("file:getDirectoryStatus",{path:e});if(s.success&&s.data){const l=s.data;return l.exists?l.isDirectory?l.isGitRepo?{valid:!0,isNewRepo:!1,directoryStatus:l}:l.isSubdirectoryOfGitRepo?{valid:!0,isNewRepo:!1,directoryStatus:l,warning:n.workspace_validation_insideParentRepo_warning({path:l.parentGitRoot??""})}:r?{valid:!0,isNewRepo:!1,directoryStatus:l}:t?l.isEmpty?{valid:!0,isNewRepo:!0,directoryStatus:l,warning:n.workspace_validation_emptyDirInit_warning()}:{valid:!0,isNewRepo:!0,directoryStatus:l,warning:n.workspace_validation_nonGitDirInit_warning()}:{valid:!1,error:n.workspace_repoSelector_notGitRepository_label(),directoryStatus:l}:{valid:!1,error:n.workspace_validation_notDirectory_error(),suggestion:n.workspace_validation_notDirectory_suggestion(),directoryStatus:l}:t?{valid:!0,isNewRepo:!0,directoryStatus:l,warning:n.workspace_validation_willCreateRepo_warning()}:{valid:!1,error:n.workspace_validation_dirNotExist_error(),suggestion:n.workspace_validation_dirNotExist_suggestion(),directoryStatus:l}}if(!(await D("file:exists",{path:e})).exists)return t?{valid:!0,isNewRepo:!0,warning:n.workspace_validation_willCreateRepo_warning()}:{valid:!1,error:n.workspace_validation_dirNotExist_error(),suggestion:n.workspace_validation_dirNotExistLegacy_suggestion()};const o=await D("git:isRepository",{path:e});if(!t&&o?.isRepository!==!0)return{valid:!1,error:o?.isRepository===!1?n.workspace_repoSelector_notGitRepository_label():n.workspace_compactInitializer_gitCheckUnknown_label()};if(!o.isRepository)return{valid:!0,isNewRepo:!0,warning:n.workspace_validation_nonGitInit_warning()}}catch(s){if(ut.warn("Could not validate path existence",s),!t)return{valid:!1,error:n.workspace_compactInitializer_gitCheckUnknown_label()}}return{valid:!0,isNewRepo:!1}}function hs(e){if(!e||e.trim().length===0)return{valid:!0};const t=e.trim();return/[\s~^:?*\[\]\\]/.test(t)?{valid:!1,error:n.workspace_validation_branchPrefixInvalidChars_error(),suggestion:n.workspace_validation_branchChars_suggestion()}:t==="."||t===".."||t.startsWith(".")?{valid:!1,error:n.workspace_validation_branchPrefixDot_error()}:t.includes("..")||t.includes("//")?{valid:!1,error:n.workspace_validation_branchPrefixConsecutive_error()}:t.startsWith("/")?{valid:!1,error:n.workspace_validation_branchPrefixSlash_error()}:t.endsWith(".lock")?{valid:!1,error:n.workspace_validation_branchPrefixLock_error()}:t.length>50?{valid:!1,error:n.workspace_validation_branchPrefixTooLong_error()}:{valid:!0}}function fs(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 Ss(e){if(!e||e.trim().length===0)return{valid:!1,error:n.workspace_validation_branchNameRequired_error()};const t=e.trim();return/[\s~^:?*\[\]\\]/.test(t)?{valid:!1,error:n.workspace_validation_branchNameInvalidChars_error(),suggestion:n.workspace_validation_branchChars_suggestion()}:["HEAD",".",".."].includes(t)?{valid:!1,error:n.workspace_validation_branchNameReserved_error()}:t.includes("..")||t.includes("//")?{valid:!1,error:n.workspace_validation_branchNameConsecutive_error()}:t.startsWith("/")||t.endsWith("/")?{valid:!1,error:n.workspace_validation_branchNameSlash_error()}:t.endsWith(".lock")?{valid:!1,error:n.workspace_validation_branchNameLock_error()}:{valid:!0}}function bs(e){return!e||e.trim().length===0?{valid:!0}:e.trim().length>1e5?{valid:!1,error:n.workspace_validation_promptTooLong_error(),suggestion:n.workspace_validation_promptTooLong_suggestion()}:{valid:!0}}function ms(e){const t=e.toLowerCase();return t.includes("maxbuffer")?n.workspace_gitError_maxBuffer():t.includes("clone")&&t.includes("timed out")?n.workspace_gitError_cloneTimeout():t.includes("json-rpc request timed out: workspace.create")?n.workspace_gitError_createTimeout():t.includes("timed out")&&["git","clone","fetch","worktree","pull","push","rebase","merge"].some(r=>t.includes(r))?n.workspace_gitError_gitTimeout():t.includes("git clone failed")?t.includes("could not read from remote")?n.workspace_gitError_cloneRemote():t.includes("authentication")||t.includes("permission denied")||t.includes("access denied")?n.workspace_gitError_cloneAuth():n.workspace_gitError_cloneFailed():t.includes("could not resolve any ref to create worktree")?n.workspace_gitError_worktreeRef():t.includes("failed to write file")?t.includes("eacces")||t.includes("permission denied")?n.workspace_gitError_writePermission():t.includes("enospc")||t.includes("disk space")?n.workspace_gitError_diskSpaceFree():t.includes("enoent")||t.includes("no such file")?n.workspace_gitError_writeNoEnt():e:t.includes("failed to read file")?t.includes("enoent")||t.includes("no such file")?n.workspace_gitError_readNotFound():t.includes("eacces")||t.includes("permission denied")?n.workspace_gitError_readPermission():e:t.includes("permission denied")?n.workspace_gitError_permissionDenied():t.includes("not found")||t.includes("enoent")?n.workspace_gitError_notFound():t.includes("already exists")?n.workspace_gitError_alreadyExists():t.includes("network")||t.includes("etimedout")?n.workspace_gitError_network():t.includes("authentication")||t.includes("401")?t.includes("private repositor")?e:n.workspace_gitError_authFailed():t.includes("rate limit")||t.includes("403")?n.workspace_gitError_rateLimit():t.includes("disk space")||t.includes("enospc")?n.workspace_gitError_diskSpace():e}const St=["idle","exited"];function bt(e){return e===void 0||!St.includes(e)}function vs(e){return e.status==="restarting"?"restarting":bt(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 mt(e){return e.engine==="os"?"os":e.isLoading||e.keyConfigured[e.provider]===!0?"daemon":e.osEngineAvailable?"os":"unavailable"}const _s=a.createSelector(e=>e.voiceSettings.isLoading),As=a.createSelector(e=>e.voiceSettings.available),ys=a.createSelector(e=>e.voiceSettings.provider),ks=a.createSelector(e=>e.voiceSettings.engine),ws=a.createSelector(e=>e.voiceSettings.osEngineAvailable),Es=a.createSelector(e=>e.voiceSettings.keyConfigured),Cs=a.createSelector(e=>e.voiceSettings.vocabulary),Ps=a.createSelector(e=>e.voiceSettings.openaiModel),Rs=a.createSelector(e=>e.voiceSettings.language),Ms=a.createSelector(e=>e.voiceSettings.workspaceVocabularyMaxTerms),Ts=a.createSelector(e=>e.voiceSettings.inputDeviceId),Is=a.createSelector(e=>e.voiceSettings.inputDevices),Fs=a.createSelector(e=>e.voiceSettings.busyProvider),Ds=a.createSelector(e=>e.voiceSettings.error),Ls=a.createSelector(e=>Ae.select(e)?"unavailable":mt(e.voiceSettings)),G="intent.voice.inputDevice";let V;function vt(){if(V!==void 0)return V;try{const e=localStorage.getItem(G);return typeof e=="string"&&e!==""?e:null}catch{return null}}function xs(e){V=e;try{e===null?localStorage.removeItem(G):localStorage.setItem(G,e)}catch{}}let R=null;function Os(e){R=e}function Ws(){const e=R;return R=null,e}function _t(){R=null}const At=300,yt=300;class kt{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??At,this.doublePressWindowMs=t.doublePressWindowMs??yt,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 M=null;function Bs(e){M=e}function Gs(){const e=M;return M=null,e}function wt(){M=null}const Et=66;function Ct(e,t){const r=globalThis.AudioContext;if(typeof r!="function")return()=>{};let s,i,o;try{s=new r,i=s.createMediaStreamSource(e),o=s.createAnalyser(),o.fftSize=1024,o.smoothingTimeConstant=.5,o.minDecibels=-85,o.maxDecibels=-25,i.connect(o)}catch{return i?.disconnect(),s?.close().catch(()=>{}),()=>{}}if(!s||!i)return()=>{};const l=s,c=i,g=new Uint8Array(o.frequencyBinCount),f=setInterval(()=>{o.getByteFrequencyData(g),t(Ze(g,l.sampleRate))},Et);let b=!1;return()=>{b||(b=!0,clearInterval(f),c.disconnect(),l.close().catch(()=>{}))}}const Pt=12e4,Rt=["audio/webm;codecs=opus","audio/webm"];function Vs(){return typeof navigator<"u"&&typeof navigator.mediaDevices?.getUserMedia=="function"&&typeof MediaRecorder<"u"}function Mt(e){return e?{audio:{deviceId:{ideal:e}}}:{audio:!0}}function Tt(){if(!(typeof MediaRecorder>"u"||typeof MediaRecorder.isTypeSupported!="function"))return Rt.find(e=>MediaRecorder.isTypeSupported(e))}class It{constructor(t){d(this,"maxDurationMs");d(this,"now");d(this,"callbacks");d(this,"deviceId");d(this,"onLevels");d(this,"stopMeter",null);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??Pt,this.now=t.now??Date.now,this.callbacks={onFinished:t.onFinished,onError:t.onError},this.deviceId=t.deviceId??null,this.onLevels=t.onLevels}get state(){return this.currentState}async start(){if(this.currentState!=="idle")return"discarded";this.currentState="starting";let t;try{t=await navigator.mediaDevices.getUserMedia(Mt(this.deviceId))}catch(i){const o=this.discardRequested;return this.currentState="stopped",o||this.callbacks.onError(i),o?"discarded":"error"}if(this.discardRequested){for(const i of t.getTracks())i.stop();return this.currentState="stopped","discarded"}this.stream=t;const r=Tt(),s=r?new MediaRecorder(t,{mimeType:r}):new MediaRecorder(t);return this.recorder=s,s.ondataavailable=i=>{i.data&&i.data.size>0&&this.chunks.push(i.data)},s.onstop=()=>this.handleRecorderStop(),s.onerror=i=>this.handleRecorderError(i),s.start(),this.startedAt=this.now(),this.currentState="recording",this.maxTimer=setTimeout(()=>this.stop(),this.maxDurationMs),this.onLevels&&(this.stopMeter=Ct(t,this.onLevels)),"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,i=this.cancelRequested;this.teardown(),!i&&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.stopMeter?.(),this.stopMeter=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 Ft=300;function Dt(e){const t=e?.name;return t==="NotAllowedError"||t==="SecurityError"}const Lt={stopReason:"manual",autoSend:!1};let p=null,m=null,_=0,E=null;const I=new kt({onRecordStart:()=>{E&&xt(E)},onRecordStop:e=>{ee(E,e)}});function Ns(){return p!==null}function Us(){return p}function Hs(e){E=e,_+=1,_===1&&I.keyDown()}function qs(e){E=e,_!==0&&(_-=1,_===0&&I.keyUp())}function xt(e,t="key"){if(p!==null)return;wt(),_t();const r=new It({deviceId:vt(),onLevels:s=>{p===r&&e.dispatch(ue(s))},onFinished:s=>{p===r&&(p=null);const i=m??{stopReason:"auto-stop",autoSend:!1},o=m!==null;if(m=null,e.dispatch(C()),o||I.reset(),s.durationMs<Ft){i.autoSend&&e.dispatch(B());return}e.dispatch(de({...s,stopReason:i.stopReason,autoSend:i.autoSend}))},onError:s=>{p===r&&(p=null),m=null,e.dispatch(C()),e.showHint(Dt(s)?n.hardwareConsole_ptt_micDenied_message():n.hardwareConsole_ptt_recordingFailed_message())}});p=r,e.dispatch(pe({source:t,startedAt:Date.now()})),r.start().then(s=>{if(s!=="recording"&&(p===r&&(p=null),s==="discarded")){const i=m?.autoSend===!0;m=null,e.dispatch(C()),i&&e.dispatch(B())}})}function ee(e,t){const r=p;if(r===null){t.autoSend&&e?.dispatch(B());return}m=t,r.stop()}function $s(){ee(null,Lt)}function zs(e){I.reset(),_=0,m=null;const t=p;t!==null&&(p=null,t.cancel(),e.dispatch(C()))}const Ot=N("HardwareConsoleVoiceSetupToast"),Wt="hardware-console-voice-setup";let W=null;function Bt(){return W||(W=Me(()=>import("./CI0C7_h-.js").then(e=>e.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37]),import.meta.url).then(e=>e.notify)),W}function Gt(){Te("/settings?tab=connections#voice").catch(e=>{Ot.error("Failed to open voice settings from setup toast",e)})}function Vt(){return{label:n.hardwareConsole_voice_openSettings_label(),onClick:()=>Gt()}}function js(){Bt().then(e=>{e.error(n.hardwareConsole_voice_noKey_error(),{id:Wt,action:Vt()})})}const Ks=a.createSelector(e=>e.externalEditors.selectedAction),Nt=a.createSelector(e=>e.externalEditors.editors),Ut=a.createSelector(e=>{const t=y(Nt.select(e)),r=e.externalEditors.editorOrder??[];if(!r.length)return t;const s=new Map(t.map(l=>[l.id,l])),i=r.flatMap(l=>{const c=s.get(l);return c?[c]:[]}),o=new Set(r);return[...i,...t.filter(({id:l})=>!o.has(l))]}),Zs=a.createSelector(e=>e.externalEditors.editorOrder??[]),Qs=a.createSelector(e=>e.externalEditors.loading),Js=a.createSelector(e=>e.externalEditors.lastFetched),Ht=a.createSelector(e=>e.externalEditors.hiddenEditorIds),Ys=a.createSelector((e,t)=>{if(!(t?ye.select(e,t):ke.select(e))||ge())return[];const s=Ht.select(e);return Ut.select(e).filter(i=>i.installed&&!s.includes(i.id))});function Xs(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 qt=0;function $t(e,t){const r=++qt;return a.dispatch(fe(e,t,r)),r}function ei(e,t,r){a.dispatch(he(e,t,r))}async function te(e,t,r,s){const i=crypto.randomUUID(),o=s?.source??"control";try{return(await a.dispatch(Se({requestId:i,consumerId:o,agentId:e,workspaceId:t,operation:r,connection:Q.select(a.state)},{...s,intent:s?.intent??$t(e,t)}))).status==="success"}finally{a.dispatch(be(i,o))}}async function ti(e,t,r,s,i){return te(e,t,{kind:"effort",effort:r,previous:s},i)}async function ri(e,t,r,s,i){return te(e,t,{kind:"reconcile",current:r??null,levels:s},i)}const zt=a.createSelector((e,t)=>y(e.agentModel.mutations).filter(r=>r.consumerId===t)),si=a.createSelector((e,t)=>zt.select(e,t).some(r=>r.status==="pending")),ii=a.createSelector((e,t,r)=>{const s=e.agentSessions.byAgentId[t],i=we.select(e,t),o=Ie.select(e,t),l=e.daemonHealth.stats?.protocolVersion,c=Fe(l),g=c?De(s?.model,null,o):s?.model;return{session:s,providerId:i,levels:o,legacy:c,identity:JSON.stringify([g,i]),connection:Q.select(e),canWrite:!!s&&s.workspaceId===r&&!Ee.select(e,r)}});function jt(e,t,r=!1){const s=t?.available===!0&&t.viaNpx!==!0;return e!=="auggie"||s||r}const ai=a.createSelector(e=>Ge.select(e)?null:U.select(e)),Kt=a.createSelector(e=>e.providerCatalog?.workspaceEpoch??0),S=a.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]:void 0),ni=a.createSelector(e=>Object.keys(e.providerCatalog?.byWorkspaceId??{})),oi=a.createSelector((e,t)=>!!S.select(e,t)&&e.providerCatalog.workspaceSnapshotEpochs?.[t]===Kt.select(e)),re=a.createSelector((e,t)=>t?S.select(e,t)?.catalog.providers??[]:Ce.select(e)),se=a.createSelector((e,t)=>{if(!t)return J.select(e);const r=S.select(e,t)?.settings.find(s=>s.path==="model.defaultProvider")?.value;return typeof r=="string"?r:""}),q=a.createSelector((e,t)=>{if(!t)return Ve.select(e);const r=S.select(e,t)?.settings.find(s=>s.path==="providers.enabled")?.value;return r&&typeof r=="object"?r:{}}),ie=a.createSelector((e,t)=>{if(!t)return Ne.select(e);const r=q.select(e,t),s=se.select(e,t),i=S.select(e,t)?.readiness??{};return re.select(e,t).filter(o=>o.visible&&(!o.canBeDisabled||r[o.id]||o.id===s)&&i[o.id]?.available).map(o=>o.id)}),ci=a.createSelector((e,t)=>{const r=q.select(e,t),s=t?S.select(e,t)?.readiness??{}:U.select(e);return re.select(e,t).filter(i=>jt(i.id,s[i.id],r[i.id]===!0)).map(i=>i.id)}),li=a.createSelector((e,t)=>t?ie.select(e,t):Ue.select(e)),di=a.createSelector((e,t)=>v.select(e,t)),ui=a.createSelector((e,t)=>t?!!S.select(e,t):He.select(e)),pi=a.createSelector((e,t)=>{if(!t)return Le.select(e);const r=S.select(e,t)?.settings??[],s=se.select(e,t),i=r.find(c=>c.path==="model.providerDefaults")?.value,o=i&&typeof i=="object"?i[s]:void 0;if(typeof o=="string")return o;const l=r.find(c=>c.path==="model.default")?.value;return typeof l=="string"?l:""}),gi=a.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).flatMap(([r,s])=>s.warning?[[r,s.warning]]:[])):xe.select(e)),hi=a.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).map(([r,s])=>[r,s.stale===!0])):Oe.select(e)),fi=a.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).flatMap(([r,s])=>s.warning&&s.warningKind?[[r,s.warningKind]]:[])):We.select(e)),Si=a.createSelector((e,t,r)=>{if(!r)return qe.select(e,t);const s=q.select(e,r),i=S.select(e,r);return ie.select(e,r).filter(o=>o!==t&&(s[o]||i?.catalog.providers.find(l=>l.id===o)?.canBeDisabled===!1)&&$e(o,i?.readiness[o]?.authenticated))}),bi=a.createSelector((e,t)=>t?S.select(e,t)?.readiness??{}:U.select(e)),Zt={},mi=a.createSelector(e=>e.providerSettings?.profiles?.status??Zt),Z={},Qt=a.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]?.mcpServers??[]:e.mcpSettings.servers),vi=a.createSelector((e,t,r)=>{const s=e.providerCatalog?.byWorkspaceId?.[t];return s?s.mcpServers?.find(i=>i.id===r)?.name:e.providerCatalog?.mcpServerNamesByWorkspaceId?.[t]?.[r]}),_i=a.createSelector(e=>e.mcpSettings.loading),Ai=a.createSelector(e=>e.mcpSettings.error),yi=a.createSelector(e=>e.mcpSettings.mutationError??null),ki=a.createSelector(e=>e.mcpSettings.enabled),Jt=a.createSelector(e=>e.mcpSettings.disabledServers),Yt=a.createSelector(e=>e.mcpSettings.statusMap),Xt=a.createSelector(e=>e.mcpSettings.toolsMap),er=a.createSelector((e,t)=>{if(!t)return e.mcpSettings.errorMessages;const r=e.providerCatalog?.byWorkspaceId?.[t],s=new Map(r?.mcpServers?.map(i=>[i.id,w(i)])??[]);return Object.fromEntries((r?.mcpStatuses??[]).flatMap(i=>{const o=s.get(i.serverId);return o&&i.lastError?[[o,i.lastError]]:[]}))}),tr=a.createSelector((e,t)=>t?e.mcpSettings.byWorkspaceId[t]?.disabledServers??Z:Z),wi=a.createSelector((e,t)=>Object.keys(tr.select(e,t))),Ei=a.createSelector(e=>{const t=Qt.select(e),r=Yt.select(e),s=Xt.select(e),i=Jt.select(e),o=er.select(e);return t.map(l=>{const c=w(l)in i,g=s[w(l)]||[];let f=r[w(l)]||"disconnected";return c&&(f="disabled"),{...l,disabled:c,status:f,tools:g,toolCount:g.length,errorMessage:o[w(l)]}})});a.createSelector((e,t)=>e.mcpSettings.errorMessages[t]);const Ci=a.createSelector(e=>e.mcpSettings.lastImportedCount),Pi=a.createSelector(e=>e.mcpSettings.advancedSaveStatus),Ri=a.createSelector(e=>e.mcpSettings.advancedSaveError);function h(e){return{category:"settings",...e}}const T=[{id:"new-workspace",tab:"",label:"New workspace",route:"/workspace/new",category:"navigation",description:"Create-workspace flow."},h({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."}),h({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."}),h({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."}),h({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."}),h({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."}),h({id:"devices",tab:"devices",hashAliases:["devices","machines"],scrollSelector:"#devices",highlightSelector:"#devices",label:"Settings: Machines",route:"/settings?tab=devices#devices",description:"Saved remote machine settings."}),h({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."}),h({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."}),h({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"],["autocomplete","Autocomplete","Suggest as you type: service, model and API keys.","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 settings.","setup"],["workspace","Workspace","Workspace defaults.","setup"],["cli-optimization","CLI Optimization","RTK/CLI optimization settings.","token-savings"],["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.","token-savings"],["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.","performance"],["connection","Connection","Daemon connection details.","advanced"],["hardware","Hardware","Hardware integration settings.","input"],["developer","Developer","Development-only settings.","advanced"]].map(([e,t,r,s])=>h({id:e,tab:s,hashAliases:[e],scrollSelector:`#${e}`,highlightSelector:`[data-highlight-id="${e}"]`,label:`Settings: ${t}`,route:`/settings?tab=${s}#${e}`,description:r})),h({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,r])=>h({id:e,tab:"display",hashAliases:[e],scrollSelector:`#${e}`,highlightSelector:`[data-highlight-id="${e}"]`,label:`Settings: ${t}`,route:`/settings?tab=display#${e}`,description:r})),h({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 ae(e){const t=e.indexOf("#"),r=t>=0?e.slice(t+1):e;return decodeURIComponent(r.replace(/^#/,"")).trim()}function rr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function sr(e,t){if(!t.match(/\{[^}]+\}/g)?.length)return e===t;const s=t.split(/\{[^}]+\}/g).map(rr).join("[^/]+");return new RegExp(`^${s}$`).test(e)}function ir(e){const t=ae(e);if(!t)return;const r=T.find(i=>i.id===t||i.hashAliases?.includes(t));if(r)return r;const s=T.find(i=>i.route&&i.dynamic&&i.idPattern&&sr(t,i.idPattern));return s?{...s,id:t}:void 0}function Mi(){return T.map(e=>({...e,hashAliases:e.hashAliases?[...e.hashAliases]:void 0}))}function ar(e){try{return new URL(e,"app://intent").pathname||"/"}catch{const t=e.indexOf("?"),r=e.indexOf("#");let s=e.length;return t>=0&&(s=Math.min(s,t)),r>=0&&(s=Math.min(s,r)),e.slice(0,s)||"/"}}const nr=new Set(T.flatMap(e=>e.route?[ar(e.route)]:[])),or=[/^\/workspace\/[^/]+$/,/^\/agent\/[^/]+$/];function Ti(e){if(typeof e!="string")return!1;const t=e.trim();if(!t)return!1;if(t.startsWith("intent://"))return!0;let r,s;try{const i=new URL(t,"app://intent");if(i.protocol!=="app:")return!1;r=i.pathname||"/",s=ae(i.hash)}catch{return!1}return nr.has(r)?s?!!ir(s):!0:or.some(i=>i.test(r))}const Ii=["agentFeatures.backgroundHooks","agentFeatures.hostExec","agentFeatures.secretRequests","agentFeatures.scripts","agentFeatures.terminalAccess","agentFeatures.browserAutomation","agentFeatures.desktopControl","agentFeatures.richChatBlocks","agentFeatures.structuredQuestions","agentFeatures.attentionRequests","agentFeatures.stateSnapshot","agentFeatures.prMonitor","agentFeatures.taskGraph","agentFeatures.peerAgents","agentFeatures.mcpTools"],cr=[{path:"agentFeatures.backgroundHooks",label:()=>n.settings_agentFeatures_backgroundHooks_label(),description:()=>n.settings_agentFeatures_backgroundHooks_description(),defaultValue:!0},{path:"agentFeatures.hostExec",label:()=>n.settings_agentFeatures_hostExec_label(),description:()=>n.settings_agentFeatures_hostExec_description(),defaultValue:!0},{path:"agentFeatures.secretRequests",label:()=>n.settings_agentFeatures_secretRequests_label(),description:()=>n.settings_agentFeatures_secretRequests_description(),defaultValue:!1},{path:"agentFeatures.scripts",label:()=>n.settings_agentFeatures_scripts_label(),description:()=>n.settings_agentFeatures_scripts_description(),defaultValue:!0},{path:"agentFeatures.terminalAccess",label:()=>n.settings_agentFeatures_terminalAccess_label(),description:()=>n.settings_agentFeatures_terminalAccess_description(),defaultValue:!0},{path:"agentFeatures.browserAutomation",label:()=>n.settings_agentFeatures_browserAutomation_label(),description:()=>n.settings_agentFeatures_browserAutomation_description(),defaultValue:!0},{path:"agentFeatures.desktopControl",label:()=>n.settings_agentFeatures_desktopControl_label(),description:()=>n.settings_agentFeatures_desktopControl_description(),info:()=>n.settings_agentFeatures_desktopControl_info(),defaultValue:!0},{path:"agentFeatures.richChatBlocks",label:()=>n.settings_agentFeatures_richChatBlocks_label(),description:()=>n.settings_agentFeatures_richChatBlocks_description(),defaultValue:!0},{path:"agentFeatures.structuredQuestions",label:()=>n.settings_agentFeatures_structuredQuestions_label(),description:()=>n.settings_agentFeatures_structuredQuestions_description(),defaultValue:!0},{path:"agentFeatures.attentionRequests",label:()=>n.settings_agentFeatures_attentionRequests_label(),description:()=>n.settings_agentFeatures_attentionRequests_description(),defaultValue:!0},{path:"agentFeatures.stateSnapshot",label:()=>n.settings_agentFeatures_stateSnapshot_label(),description:()=>n.settings_agentFeatures_stateSnapshot_description(),defaultValue:!0},{path:"agentFeatures.prMonitor",label:()=>n.settings_agentFeatures_prMonitor_label(),description:()=>n.settings_agentFeatures_prMonitor_description(),defaultValue:!0},{path:"agentFeatures.taskGraph",label:()=>n.settings_agentFeatures_taskGraph_label(),description:()=>n.settings_agentFeatures_taskGraph_description(),defaultValue:!0},{path:"agentFeatures.peerAgents",label:()=>n.settings_agentFeatures_peerAgents_label(),description:()=>n.settings_agentFeatures_peerAgents_description(),defaultValue:!0},{path:"agentFeatures.mcpTools",label:()=>n.settings_agentFeatures_mcpTools_label(),description:()=>n.settings_agentFeatures_mcpTools_description(),defaultValue:!0}],Fi=Object.fromEntries(cr.map(e=>[e.path,e.defaultValue]));export{gi as $,Vs as A,vt as B,$t as C,Dr as D,gt as E,cr as F,Y as G,ri as H,ei as I,mt as J,ir as K,fs as L,xs as M,si as N,zt as O,ii as P,Or as Q,Nr as R,A as S,li as T,se as U,q as V,ci as W,ie as X,re as Y,hi as Z,fi as _,ze as a,Ei as a$,Si as a0,bi as a1,ui as a2,pi as a3,di as a4,Gr as a5,Hr as a6,ps as a7,ds as a8,cs as a9,Ar as aA,kr as aB,Pr as aC,wr as aD,Cr as aE,yr as aF,Tr as aG,_r as aH,Fr as aI,Xr as aJ,Ht as aK,Ut as aL,Ys as aM,Qs as aN,Jr as aO,Yr as aP,Js as aQ,Ri as aR,Pi as aS,Jt as aT,ki as aU,Ai as aV,er as aW,Ci as aX,_i as aY,yi as aZ,Qt as a_,ls as aa,us as ab,os as ac,Zs as ad,Qr as ae,rs as af,jr as ag,Ls as ah,Kr as ai,Zr as aj,Wr as ak,Vr as al,H as am,Je as an,st as ao,it as ap,X as aq,rt as ar,Ye as as,Qe as at,et as au,tt as av,Er as aw,Rr as ax,Mr as ay,Ir as az,Fi as b,Yt as b0,Xt as b1,Ks as b2,$r as b3,mi as b4,ai as b5,lt as b6,is as b7,as as b8,ts as b9,Os as bA,Bs as bB,js as bC,xt as bD,$s as bE,Ss as bF,hs as bG,bs as bH,gs as bI,Vt as bJ,ns as bK,ss as ba,zr as bb,es as bc,v as bd,Ur as be,Br as bf,Fs as bg,ks as bh,Ts as bi,Is as bj,Es as bk,Rs as bl,Ps as bm,ws as bn,ys as bo,As as bp,Ds as bq,_s as br,Cs as bs,Ms as bt,S as bu,Kt as bv,oi as bw,ni as bx,wi as by,vi as bz,Ii as c,ti as d,zs as e,_t as f,wt as g,Ws as h,Gs as i,qr as j,ct as k,ot as l,Us as m,Mi as n,ms as o,vs as p,Lr as q,xr as r,Hs as s,qs as t,bt as u,jt as v,Ns as w,Xs as x,K as y,Ti as z};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CGUVvS8r.js","/app/immutable/chunks/CIoJPvjg.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/DY5rw8pn.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/Bu3PKqut.js","/app/immutable/chunks/DWvCfaBg.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/3Kr2ijlK.js","/app/immutable/chunks/D7yetF0v.js","/app/immutable/chunks/Y_tkjygB.js","/app/immutable/chunks/VTJf_qPn.js","/app/immutable/chunks/BCuI_zgX.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/CueOVPTy.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/CIKXOyvw.js","/app/immutable/chunks/zFAkpaJn.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BrDfJqC4.js","/app/immutable/chunks/W05hyx94.js","/app/immutable/chunks/Btst3lgy.js","/app/immutable/chunks/CQ5BHnSj.js","/app/immutable/chunks/DJJ2Xrlq.js","/app/immutable/chunks/BXHbm15d.js","/app/immutable/chunks/Drf1gLyo.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/bIL0xbKX.js","/app/immutable/chunks/2aKRVAvL.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/BlRGZv8u.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css"])))=>i.map(i=>d[i]);
2
+ var ne=Object.defineProperty;var oe=(e,t,r)=>t in e?ne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var d=(e,t,r)=>oe(e,typeof t!="symbol"?t+"":t,r);import{Jx as a,uB as ce,nZ as y,nY as k,mq as le,yY as C,yZ as B,yW as de,yV as ue,yX as pe,rU as ge,c9 as he,c8 as fe,cn as Se,cm as be,n$ as w}from"./CIoJPvjg.js";import{cU as me,cJ as ve,bJ as _e,cl as Ae,cB as ye,cn as ke,cS as Q,aJ as we,c3 as Ee,c_ as Ce}from"./3Kr2ijlK.js";import{a as Pe,i as Re}from"./CL3a4Hm1.js";import{c as N}from"./ChTqQfQN.js";import{i as D}from"./BBWuirRW.js";import{bm as n,_ as Me}from"./DWvCfaBg.js";import{n as Te}from"./Bb-hI5du.js";import{x as Ie,aO as Fe,c as De,aD as Le,B as xe,y as Oe,z as We}from"./DpvQ3NRH.js";import{a0 as Be,K as J,a1 as Ge,ay as U,Z as Ve,a3 as Ne,L as Ue,$ as He,aA as qe,x as $e}from"./UqcU95a7.js";const ze=5,L=120,je=4e3,j=.2,Ke=.8;function Ze(e,t,r=ze){const s=e.length>0?t/(2*e.length):0,i=je/L;return Array.from({length:r},(o,l)=>{if(s<=0)return 0;const c=L*i**(l/r),g=L*i**((l+1)/r),f=Math.min(e.length-1,Math.floor(c/s)),b=Math.min(e.length,Math.max(f+1,Math.ceil(g/s)));let $=0;for(let F=f;F<b;F+=1)$+=e[F]??0;const z=($/(b-f)/255-j)/(Ke-j);return Number.isFinite(z)?Math.min(1,Math.max(0,z)):0})}const _r=a.createSelector(e=>me.select(e)?.capabilities.gitlabCheckout===!0),Ar=a.createSelector(e=>e.gitlabAuth.host),yr=a.createSelector(e=>e.gitlabAuth.instanceBaseUrl??e.gitlabAuth.host),kr=a.createSelector(e=>ce(e.gitlabAuth.instanceBaseUrl??e.gitlabAuth.host)??""),wr=a.createSelector(e=>e.gitlabAuth.isCancelling),Er=a.createSelector(e=>e.gitlabAuth.cancelOutcome),Cr=a.createSelector(e=>e.gitlabAuth.isConfigured),Pr=a.createSelector(e=>e.gitlabAuth.isAuthenticating),Rr=a.createSelector(e=>e.gitlabAuth.deviceFlow),Mr=a.createSelector(e=>e.gitlabAuth.deviceGrantSupported),Tr=a.createSelector(e=>e.gitlabAuth.user),Ir=a.createSelector(e=>e.gitlabAuth.error);a.createSelector(e=>e.gitlabAuth.method);const Fr=a.createSelector(e=>e.gitlabAuth.statusReady===!0),A=[{id:"pr-reviewer",icon:"pr-reviewer",get name(){return n.specialists_builtin_prReviewer_name()},get description(){return n.specialists_builtin_prReviewer_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"ui-designer",icon:"ui-designer",get name(){return n.specialists_builtin_uiDesigner_name()},get description(){return n.specialists_builtin_uiDesigner_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"vulnerability-scanner",icon:"pr-reviewer",get name(){return n.specialists_builtin_vulnerabilityScanner_name()},get description(){return n.specialists_builtin_vulnerabilityScanner_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"developer",icon:"verifier",get name(){return n.specialists_builtin_developer_name()},get description(){return n.specialists_builtin_developer_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"product-manager",icon:"coordinator",get name(){return n.specialists_builtin_productManager_name()},get description(){return n.specialists_builtin_productManager_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"maintenance-coordinator",icon:"ralph",get name(){return n.specialists_builtin_maintenanceCoordinator_name()},get description(){return n.specialists_builtin_maintenanceCoordinator_description()},defaultBehaviorPrompt:"",promptUnavailable:!0},{id:"chief-of-staff",icon:"chief-of-staff",get name(){return n.specialists_builtin_chiefOfStaff_name()},get description(){return n.specialists_builtin_chiefOfStaff_description()},hidden:!0,defaultBehaviorPrompt:"",promptUnavailable:!0}],Y=new Set(["pr-reviewer"]),Dr="developer";function Lr(e){return A.find(t=>t.id===e)}const Qe=a.createSelector(e=>e.githubAuth.mutationRequestId),Je=a.createSelector(e=>e.githubAuth.callbacksCancelled),Ye=a.createSelector(e=>e.githubAuth.isDisconnecting),X=a.createSelector(e=>e.githubAuth.isAuthenticated),Xe=a.createSelector(e=>e.githubAuth.statusSettled===!0),et=a.createSelector(e=>e.githubAuth.requiresDaemonAuth),tt=a.createSelector(e=>e.githubAuth.user),rt=a.createSelector(e=>e.githubAuth.isAuthenticating),st=a.createSelector(e=>e.githubAuth.deviceFlow),it=a.createSelector(e=>e.githubAuth.error),xr=Object.freeze(Object.defineProperty({__proto__:null,selectGitHubAuthCallbacksCancelled:Je,selectGitHubAuthDeviceFlow:st,selectGitHubAuthError:it,selectGitHubAuthIsAuthenticated:X,selectGitHubAuthIsAuthenticating:rt,selectGitHubAuthIsDisconnecting:Ye,selectGitHubAuthMutationRequestId:Qe,selectGitHubAuthRequiresDaemonAuth:et,selectGitHubAuthStatusSettled:Xe,selectGitHubAuthUser:tt},Symbol.toStringTag,{value:"Module"}));function u(e){return e??""}function at(e,t){const r=e??[],s=t??[];return r.length===s.length&&r.every((i,o)=>u(i.provider)===u(s[o].provider)&&i.model===s[o].model&&i.hint===s[o].hint&&u(i.reasoningEffort)===u(s[o].reasoningEffort))}function K(e,t){if(e.source!=="user"||!t?.ignoreModelPin&&(e.model||e.codingAgent))return!1;const r=e.bundled;return r?u(e.name)===u(r.name)&&u(e.description)===u(r.description)&&u(e.behaviorPrompt)===u(r.behaviorPrompt)&&u(e.roleReminder)===u(r.roleReminder)&&u(e.reasoningEffort)===u(r.reasoningEffort)&&at(e.modelOptions,r.modelOptions):!1}const Or=a.createSelector(e=>e.specialists.bundledSpecialists),nt=a.createSelector(e=>e.specialists.fileSpecialists),Wr=a.createSelector(e=>y(nt.select(e))),Br=a.createSelector(e=>e.specialists.userOverrides);a.createSelector(e=>e.specialists.overridesLoaded);const Gr=a.createSelector(e=>e.specialists.customSpecialistsLoaded),Vr=a.createSelector(e=>e.specialists.fileSpecialistsLoaded),Nr=a.createSelector(e=>e.specialists.bundledSpecialistsLoaded),Ur=a.createSelector(e=>e.specialists.specialistsFolderPath),Hr=a.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:""});a.createSelector(e=>e.specialists.providerModelOverrides);const x=a.createSelector((e,t)=>!(Y.has(t)&&!X.select(e)));function ot(e,t){return t?e:e.filter(r=>!Y.has(r.id))}function ct(e,t){return ot(e,t).filter(r=>!r.hidden)}function qr(e,t){return ct(e,t).filter(r=>r.role!=="internal")}const v=a.createSelector((e,t)=>{if(t)return(e.providerCatalog?.byWorkspaceId?.[t]?.specialists??[]).map(c=>({...c,defaultModel:c.model,defaultBehaviorPrompt:c.behaviorPrompt??c.prompt??"",defaultAgentType:c.agentType}));const r=y(e.specialists.fileSpecialists),s=e.specialists.bundledSpecialists,i=new Set,o=[];for(const c of r)!i.has(c.id)&&x.select(e,c.id)&&(i.add(c.id),o.push({id:c.id,name:c.name,description:c.description,codingAgent:c.codingAgent,defaultModel:c.model||void 0,defaultBehaviorPrompt:c.behaviorPrompt,roleReminder:c.roleReminder,source:c.source,importedFrom:c.importedFrom,unsupportedFields:c.unsupportedFields,requiredSkills:c.requiredSkills,missingSkills:c.missingSkills,hidden:c.hidden,resolvedModel:c.resolvedModel,resolvedProvider:c.resolvedProvider,modelOptions:c.modelOptions,reasoningEffort:c.reasoningEffort,role:c.role,teamAgents:c.teamAgents,icon:c.icon}));for(const c of s)!i.has(c.id)&&x.select(e,c.id)&&(i.add(c.id),o.push(c));if(!e.specialists.bundledSpecialistsLoaded&&r.length===0&&s.length===0)for(const c of A)!i.has(c.id)&&x.select(e,c.id)&&(i.add(c.id),o.push(c));const l=new Map;for(const c of A)l.has(c.id)||l.set(c.id,l.size);for(const c of s)l.has(c.id)||l.set(c.id,l.size);return o.sort((c,g)=>{const f=l.has(c.id),b=l.has(g.id);return f&&b?(l.get(c.id)??0)-(l.get(g.id)??0):f&&!b?-1:!f&&b?1:c.name.localeCompare(g.name)}),o}),$r=a.createSelector(e=>{const t=v.select(e).filter(s=>s.role==="orchestrator");if(t.length===0)return null;const r=new Set([...A.map(({id:s})=>s),...e.specialists.bundledSpecialists.map(({id:s})=>s)]);return t.sort((s,i)=>+!r.has(s.id)-+!r.has(i.id)||s.id.localeCompare(i.id)),t[0]}),lt=a.createSelector((e,t)=>{const r=k(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(i=>i.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 i=A.find(o=>o.id===t);if(i)return{id:i.id,name:i.name,description:i.description,source:"builtin"}}return null}),zr=a.createSelector((e,t)=>lt.select(e,t)?.name??null),jr=a.createSelector((e,t,r)=>{const i=v.select(e,r).find(o=>o.id===t);return i?i.defaultModel?i.defaultModel:i.resolvedModel??"":""}),Kr=a.createSelector((e,t,r)=>v.select(e,r).find(o=>o.id===t)?.defaultModel||void 0),Zr=a.createSelector((e,t,r)=>v.select(e,r).find(o=>o.id===t)?.reasoningEffort||void 0),Qr=a.createSelector((e,t,r)=>{const i=v.select(e,r).find(o=>o.id===t);return i?i.defaultBehaviorPrompt:""});function P(e,t){return t.some(r=>r.id===e)||A.some(r=>r.id===e)}const Jr=a.createSelector((e,t,r)=>{if(r){const s=e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(i=>i.id===t);return!s||s.importedFrom?!1:s.source==="bundled"||s.source==="user"&&P(t,e.specialists.bundledSpecialists)}return P(t,e.specialists.bundledSpecialists)}),Yr=a.createSelector((e,t,r)=>r?!!H.select(e,t,r):!!k(e.specialists.fileSpecialists,t)),Xr=a.createSelector((e,t,r)=>{if(r){const o=H.select(e,t,r);return!o||o.importedFrom||o.source==="project"?!1:P(t,e.specialists.bundledSpecialists)&&!K(o)}if(!P(t,e.specialists.bundledSpecialists))return!1;const i=k(e.specialists.fileSpecialists,t);return!i||i.source!=="user"?!1:!K(i)}),H=a.createSelector((e,t,r)=>{if(r){const s=e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(i=>i.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 k(e.specialists.fileSpecialists,t)}),es=a.createSelector((e,t,r)=>{const s=H.select(e,t,r);return r&&!s?e.providerCatalog?.byWorkspaceId?.[r]?.specialists.some(i=>i.id===t)?"Built-in":null:s?.source==="project"?"Project":s?.source==="user"?"User":e.specialists.bundledSpecialists.some(i=>i.id===t)?"Built-in":null}),ts=a.createSelector((e,t,r)=>{if(r)return e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(o=>o.id===t)?.path;const s=k(e.specialists.fileSpecialists,t);if(s)return s.filePath;const i=e.specialists.bundledSpecialists.find(o=>o.id===t);if(i&&"filePath"in i)return i.filePath}),rs=a.createSelector((e,t,r)=>{if(r){const i=v.select(e,r).find(c=>c.id===t),o=i?.codingAgent||i?.resolvedProvider;if(o)return ve.select(e,o,r);const l=_e.select(e,r);return e.providerCatalog?.byWorkspaceId?.[r]?.readiness[l]?.available?l:""}const s=k(e.specialists.fileSpecialists,t);return s?.codingAgent?s.codingAgent:dt.select(e,t)}),dt=a.createSelector((e,t)=>{const s=v.select(e).find(i=>i.id===t);return s?.codingAgent?s.codingAgent:Be.select(e)?J.select(e):""}),ss=a.createSelector((e,t)=>{if(t)return e.providerCatalog?.byWorkspaceId?.[t]?.importDiagnostics??[];const r=e.specialists.importDiagnostics;return r?y(r):[]}),is=a.createSelector((e,t)=>e.specialists.creationByContext?.[t]??le),as=a.createSelector(e=>Object.values(e.specialists.creationByContext??{}).flatMap(t=>t.specialistId?[t.specialistId]:[])),O=N("Clipboard");async function ns(e){let t;if(Pe())try{const r=await Re("system:write-clipboard",{text:e});if(r?.success===!1)throw new Error(r.error||"Electron clipboard write failed");return}catch(r){t=r,O.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 O.error("Browser clipboard write failed",r,{electronError:t}),r}throw O.error("No clipboard write API is available",void 0,{electronError:t}),t instanceof Error?t:new Error("Clipboard write API unavailable")}const os=a.createSelector(e=>e.directoryPicker.source??"daemon"),cs=a.createSelector(e=>e.directoryPicker.listing),ls=a.createSelector(e=>e.directoryPicker.loading),ds=a.createSelector(e=>e.directoryPicker.error),us=a.createSelector(e=>e.directoryPicker.pathError),ps=a.createSelector(e=>e.directoryPicker.createError),ut=N("WorkspaceValidation");async function gs(e,t=!1,r=!1){if(!e||e.trim().length===0)return{valid:!1,error:n.workspace_validation_repoPathRequired_error(),suggestion:n.workspace_validation_repoPathRequired_suggestion()};const s=e.trim();return pt(s)?ht(s):ft(s,t,r)}function pt(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 gt(e){const t=e.trim(),r=[/^https?:\/\/github\.com\/([^\/]+)\/([^\/]+)$/i,/^git@github\.com:([^\/]+)\/([^\/]+)$/i,/^github\.com\/([^\/]+)\/([^\/]+)$/i];for(const i of r){const o=t.match(i);if(o){const l=o[2].replace(/\.git$/,"");return l?{owner:o[1],repo:l}:null}}const s=t.match(/^([a-zA-Z0-9\-_]+)\/([a-zA-Z0-9\-_\.]+)$/);if(s&&!t.includes("\\")&&!t.includes(":")){const i=s[2].replace(/\.git$/,"");return i?{owner:s[1],repo:i}:null}return null}async function ht(e){return gt(e)?{valid:!0,warning:n.workspace_validation_githubCloneLocally_warning()}:{valid:!1,error:n.workspace_validation_invalidGithubUrl_error(),suggestion:n.workspace_validation_invalidGithubUrl_suggestion()}}async function ft(e,t=!1,r=!1){if(e.includes("\0"))return{valid:!1,error:n.workspace_validation_nullCharacters_error()};if(!e.startsWith("/")&&!e.startsWith("~")&&!e.startsWith(".")&&!e.includes(":\\")&&!/^[a-zA-Z]:\//.test(e))return{valid:!1,error:n.workspace_validation_pathNotAbsolute_error(),suggestion:n.workspace_validation_pathNotAbsolute_suggestion()};if(typeof window<"u"&&window.electronAPI)try{const s=await D("file:getDirectoryStatus",{path:e});if(s.success&&s.data){const l=s.data;return l.exists?l.isDirectory?l.isGitRepo?{valid:!0,isNewRepo:!1,directoryStatus:l}:l.isSubdirectoryOfGitRepo?{valid:!0,isNewRepo:!1,directoryStatus:l,warning:n.workspace_validation_insideParentRepo_warning({path:l.parentGitRoot??""})}:r?{valid:!0,isNewRepo:!1,directoryStatus:l}:t?l.isEmpty?{valid:!0,isNewRepo:!0,directoryStatus:l,warning:n.workspace_validation_emptyDirInit_warning()}:{valid:!0,isNewRepo:!0,directoryStatus:l,warning:n.workspace_validation_nonGitDirInit_warning()}:{valid:!1,error:n.workspace_repoSelector_notGitRepository_label(),directoryStatus:l}:{valid:!1,error:n.workspace_validation_notDirectory_error(),suggestion:n.workspace_validation_notDirectory_suggestion(),directoryStatus:l}:t?{valid:!0,isNewRepo:!0,directoryStatus:l,warning:n.workspace_validation_willCreateRepo_warning()}:{valid:!1,error:n.workspace_validation_dirNotExist_error(),suggestion:n.workspace_validation_dirNotExist_suggestion(),directoryStatus:l}}if(!(await D("file:exists",{path:e})).exists)return t?{valid:!0,isNewRepo:!0,warning:n.workspace_validation_willCreateRepo_warning()}:{valid:!1,error:n.workspace_validation_dirNotExist_error(),suggestion:n.workspace_validation_dirNotExistLegacy_suggestion()};const o=await D("git:isRepository",{path:e});if(!t&&o?.isRepository!==!0)return{valid:!1,error:o?.isRepository===!1?n.workspace_repoSelector_notGitRepository_label():n.workspace_compactInitializer_gitCheckUnknown_label()};if(!o.isRepository)return{valid:!0,isNewRepo:!0,warning:n.workspace_validation_nonGitInit_warning()}}catch(s){if(ut.warn("Could not validate path existence",s),!t)return{valid:!1,error:n.workspace_compactInitializer_gitCheckUnknown_label()}}return{valid:!0,isNewRepo:!1}}function hs(e){if(!e||e.trim().length===0)return{valid:!0};const t=e.trim();return/[\s~^:?*\[\]\\]/.test(t)?{valid:!1,error:n.workspace_validation_branchPrefixInvalidChars_error(),suggestion:n.workspace_validation_branchChars_suggestion()}:t==="."||t===".."||t.startsWith(".")?{valid:!1,error:n.workspace_validation_branchPrefixDot_error()}:t.includes("..")||t.includes("//")?{valid:!1,error:n.workspace_validation_branchPrefixConsecutive_error()}:t.startsWith("/")?{valid:!1,error:n.workspace_validation_branchPrefixSlash_error()}:t.endsWith(".lock")?{valid:!1,error:n.workspace_validation_branchPrefixLock_error()}:t.length>50?{valid:!1,error:n.workspace_validation_branchPrefixTooLong_error()}:{valid:!0}}function fs(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 Ss(e){if(!e||e.trim().length===0)return{valid:!1,error:n.workspace_validation_branchNameRequired_error()};const t=e.trim();return/[\s~^:?*\[\]\\]/.test(t)?{valid:!1,error:n.workspace_validation_branchNameInvalidChars_error(),suggestion:n.workspace_validation_branchChars_suggestion()}:["HEAD",".",".."].includes(t)?{valid:!1,error:n.workspace_validation_branchNameReserved_error()}:t.includes("..")||t.includes("//")?{valid:!1,error:n.workspace_validation_branchNameConsecutive_error()}:t.startsWith("/")||t.endsWith("/")?{valid:!1,error:n.workspace_validation_branchNameSlash_error()}:t.endsWith(".lock")?{valid:!1,error:n.workspace_validation_branchNameLock_error()}:{valid:!0}}function bs(e){return!e||e.trim().length===0?{valid:!0}:e.trim().length>1e5?{valid:!1,error:n.workspace_validation_promptTooLong_error(),suggestion:n.workspace_validation_promptTooLong_suggestion()}:{valid:!0}}function ms(e){const t=e.toLowerCase();return t.includes("maxbuffer")?n.workspace_gitError_maxBuffer():t.includes("clone")&&t.includes("timed out")?n.workspace_gitError_cloneTimeout():t.includes("json-rpc request timed out: workspace.create")?n.workspace_gitError_createTimeout():t.includes("timed out")&&["git","clone","fetch","worktree","pull","push","rebase","merge"].some(r=>t.includes(r))?n.workspace_gitError_gitTimeout():t.includes("git clone failed")?t.includes("could not read from remote")?n.workspace_gitError_cloneRemote():t.includes("authentication")||t.includes("permission denied")||t.includes("access denied")?n.workspace_gitError_cloneAuth():n.workspace_gitError_cloneFailed():t.includes("could not resolve any ref to create worktree")?n.workspace_gitError_worktreeRef():t.includes("failed to write file")?t.includes("eacces")||t.includes("permission denied")?n.workspace_gitError_writePermission():t.includes("enospc")||t.includes("disk space")?n.workspace_gitError_diskSpaceFree():t.includes("enoent")||t.includes("no such file")?n.workspace_gitError_writeNoEnt():e:t.includes("failed to read file")?t.includes("enoent")||t.includes("no such file")?n.workspace_gitError_readNotFound():t.includes("eacces")||t.includes("permission denied")?n.workspace_gitError_readPermission():e:t.includes("permission denied")?n.workspace_gitError_permissionDenied():t.includes("not found")||t.includes("enoent")?n.workspace_gitError_notFound():t.includes("already exists")?n.workspace_gitError_alreadyExists():t.includes("network")||t.includes("etimedout")?n.workspace_gitError_network():t.includes("authentication")||t.includes("401")?t.includes("private repositor")?e:n.workspace_gitError_authFailed():t.includes("rate limit")||t.includes("403")?n.workspace_gitError_rateLimit():t.includes("disk space")||t.includes("enospc")?n.workspace_gitError_diskSpace():e}const St=["idle","exited"];function bt(e){return e===void 0||!St.includes(e)}function vs(e){return e.status==="restarting"?"restarting":bt(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 mt(e){return e.engine==="os"?"os":e.isLoading||e.keyConfigured[e.provider]===!0?"daemon":e.osEngineAvailable?"os":"unavailable"}const _s=a.createSelector(e=>e.voiceSettings.isLoading),As=a.createSelector(e=>e.voiceSettings.available),ys=a.createSelector(e=>e.voiceSettings.provider),ks=a.createSelector(e=>e.voiceSettings.engine),ws=a.createSelector(e=>e.voiceSettings.osEngineAvailable),Es=a.createSelector(e=>e.voiceSettings.keyConfigured),Cs=a.createSelector(e=>e.voiceSettings.vocabulary),Ps=a.createSelector(e=>e.voiceSettings.openaiModel),Rs=a.createSelector(e=>e.voiceSettings.language),Ms=a.createSelector(e=>e.voiceSettings.workspaceVocabularyMaxTerms),Ts=a.createSelector(e=>e.voiceSettings.inputDeviceId),Is=a.createSelector(e=>e.voiceSettings.inputDevices),Fs=a.createSelector(e=>e.voiceSettings.busyProvider),Ds=a.createSelector(e=>e.voiceSettings.error),Ls=a.createSelector(e=>Ae.select(e)?"unavailable":mt(e.voiceSettings)),G="intent.voice.inputDevice";let V;function vt(){if(V!==void 0)return V;try{const e=localStorage.getItem(G);return typeof e=="string"&&e!==""?e:null}catch{return null}}function xs(e){V=e;try{e===null?localStorage.removeItem(G):localStorage.setItem(G,e)}catch{}}let R=null;function Os(e){R=e}function Ws(){const e=R;return R=null,e}function _t(){R=null}const At=300,yt=300;class kt{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??At,this.doublePressWindowMs=t.doublePressWindowMs??yt,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 M=null;function Bs(e){M=e}function Gs(){const e=M;return M=null,e}function wt(){M=null}const Et=66;function Ct(e,t){const r=globalThis.AudioContext;if(typeof r!="function")return()=>{};let s,i,o;try{s=new r,i=s.createMediaStreamSource(e),o=s.createAnalyser(),o.fftSize=1024,o.smoothingTimeConstant=.5,o.minDecibels=-85,o.maxDecibels=-25,i.connect(o)}catch{return i?.disconnect(),s?.close().catch(()=>{}),()=>{}}if(!s||!i)return()=>{};const l=s,c=i,g=new Uint8Array(o.frequencyBinCount),f=setInterval(()=>{o.getByteFrequencyData(g),t(Ze(g,l.sampleRate))},Et);let b=!1;return()=>{b||(b=!0,clearInterval(f),c.disconnect(),l.close().catch(()=>{}))}}const Pt=12e4,Rt=["audio/webm;codecs=opus","audio/webm"];function Vs(){return typeof navigator<"u"&&typeof navigator.mediaDevices?.getUserMedia=="function"&&typeof MediaRecorder<"u"}function Mt(e){return e?{audio:{deviceId:{ideal:e}}}:{audio:!0}}function Tt(){if(!(typeof MediaRecorder>"u"||typeof MediaRecorder.isTypeSupported!="function"))return Rt.find(e=>MediaRecorder.isTypeSupported(e))}class It{constructor(t){d(this,"maxDurationMs");d(this,"now");d(this,"callbacks");d(this,"deviceId");d(this,"onLevels");d(this,"stopMeter",null);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??Pt,this.now=t.now??Date.now,this.callbacks={onFinished:t.onFinished,onError:t.onError},this.deviceId=t.deviceId??null,this.onLevels=t.onLevels}get state(){return this.currentState}async start(){if(this.currentState!=="idle")return"discarded";this.currentState="starting";let t;try{t=await navigator.mediaDevices.getUserMedia(Mt(this.deviceId))}catch(i){const o=this.discardRequested;return this.currentState="stopped",o||this.callbacks.onError(i),o?"discarded":"error"}if(this.discardRequested){for(const i of t.getTracks())i.stop();return this.currentState="stopped","discarded"}this.stream=t;const r=Tt(),s=r?new MediaRecorder(t,{mimeType:r}):new MediaRecorder(t);return this.recorder=s,s.ondataavailable=i=>{i.data&&i.data.size>0&&this.chunks.push(i.data)},s.onstop=()=>this.handleRecorderStop(),s.onerror=i=>this.handleRecorderError(i),s.start(),this.startedAt=this.now(),this.currentState="recording",this.maxTimer=setTimeout(()=>this.stop(),this.maxDurationMs),this.onLevels&&(this.stopMeter=Ct(t,this.onLevels)),"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,i=this.cancelRequested;this.teardown(),!i&&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.stopMeter?.(),this.stopMeter=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 Ft=300;function Dt(e){const t=e?.name;return t==="NotAllowedError"||t==="SecurityError"}const Lt={stopReason:"manual",autoSend:!1};let p=null,m=null,_=0,E=null;const I=new kt({onRecordStart:()=>{E&&xt(E)},onRecordStop:e=>{ee(E,e)}});function Ns(){return p!==null}function Us(){return p}function Hs(e){E=e,_+=1,_===1&&I.keyDown()}function qs(e){E=e,_!==0&&(_-=1,_===0&&I.keyUp())}function xt(e,t="key"){if(p!==null)return;wt(),_t();const r=new It({deviceId:vt(),onLevels:s=>{p===r&&e.dispatch(ue(s))},onFinished:s=>{p===r&&(p=null);const i=m??{stopReason:"auto-stop",autoSend:!1},o=m!==null;if(m=null,e.dispatch(C()),o||I.reset(),s.durationMs<Ft){i.autoSend&&e.dispatch(B());return}e.dispatch(de({...s,stopReason:i.stopReason,autoSend:i.autoSend}))},onError:s=>{p===r&&(p=null),m=null,e.dispatch(C()),e.showHint(Dt(s)?n.hardwareConsole_ptt_micDenied_message():n.hardwareConsole_ptt_recordingFailed_message())}});p=r,e.dispatch(pe({source:t,startedAt:Date.now()})),r.start().then(s=>{if(s!=="recording"&&(p===r&&(p=null),s==="discarded")){const i=m?.autoSend===!0;m=null,e.dispatch(C()),i&&e.dispatch(B())}})}function ee(e,t){const r=p;if(r===null){t.autoSend&&e?.dispatch(B());return}m=t,r.stop()}function $s(){ee(null,Lt)}function zs(e){I.reset(),_=0,m=null;const t=p;t!==null&&(p=null,t.cancel(),e.dispatch(C()))}const Ot=N("HardwareConsoleVoiceSetupToast"),Wt="hardware-console-voice-setup";let W=null;function Bt(){return W||(W=Me(()=>import("./CGUVvS8r.js").then(e=>e.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37]),import.meta.url).then(e=>e.notify)),W}function Gt(){Te("/settings?tab=connections#voice").catch(e=>{Ot.error("Failed to open voice settings from setup toast",e)})}function Vt(){return{label:n.hardwareConsole_voice_openSettings_label(),onClick:()=>Gt()}}function js(){Bt().then(e=>{e.error(n.hardwareConsole_voice_noKey_error(),{id:Wt,action:Vt()})})}const Ks=a.createSelector(e=>e.externalEditors.selectedAction),Nt=a.createSelector(e=>e.externalEditors.editors),Ut=a.createSelector(e=>{const t=y(Nt.select(e)),r=e.externalEditors.editorOrder??[];if(!r.length)return t;const s=new Map(t.map(l=>[l.id,l])),i=r.flatMap(l=>{const c=s.get(l);return c?[c]:[]}),o=new Set(r);return[...i,...t.filter(({id:l})=>!o.has(l))]}),Zs=a.createSelector(e=>e.externalEditors.editorOrder??[]),Qs=a.createSelector(e=>e.externalEditors.loading),Js=a.createSelector(e=>e.externalEditors.lastFetched),Ht=a.createSelector(e=>e.externalEditors.hiddenEditorIds),Ys=a.createSelector((e,t)=>{if(!(t?ye.select(e,t):ke.select(e))||ge())return[];const s=Ht.select(e);return Ut.select(e).filter(i=>i.installed&&!s.includes(i.id))});function Xs(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 qt=0;function $t(e,t){const r=++qt;return a.dispatch(fe(e,t,r)),r}function ei(e,t,r){a.dispatch(he(e,t,r))}async function te(e,t,r,s){const i=crypto.randomUUID(),o=s?.source??"control";try{return(await a.dispatch(Se({requestId:i,consumerId:o,agentId:e,workspaceId:t,operation:r,connection:Q.select(a.state)},{...s,intent:s?.intent??$t(e,t)}))).status==="success"}finally{a.dispatch(be(i,o))}}async function ti(e,t,r,s,i){return te(e,t,{kind:"effort",effort:r,previous:s},i)}async function ri(e,t,r,s,i){return te(e,t,{kind:"reconcile",current:r??null,levels:s},i)}const zt=a.createSelector((e,t)=>y(e.agentModel.mutations).filter(r=>r.consumerId===t)),si=a.createSelector((e,t)=>zt.select(e,t).some(r=>r.status==="pending")),ii=a.createSelector((e,t,r)=>{const s=e.agentSessions.byAgentId[t],i=we.select(e,t),o=Ie.select(e,t),l=e.daemonHealth.stats?.protocolVersion,c=Fe(l),g=c?De(s?.model,null,o):s?.model;return{session:s,providerId:i,levels:o,legacy:c,identity:JSON.stringify([g,i]),connection:Q.select(e),canWrite:!!s&&s.workspaceId===r&&!Ee.select(e,r)}});function jt(e,t,r=!1){const s=t?.available===!0&&t.viaNpx!==!0;return e!=="auggie"||s||r}const ai=a.createSelector(e=>Ge.select(e)?null:U.select(e)),Kt=a.createSelector(e=>e.providerCatalog?.workspaceEpoch??0),S=a.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]:void 0),ni=a.createSelector(e=>Object.keys(e.providerCatalog?.byWorkspaceId??{})),oi=a.createSelector((e,t)=>!!S.select(e,t)&&e.providerCatalog.workspaceSnapshotEpochs?.[t]===Kt.select(e)),re=a.createSelector((e,t)=>t?S.select(e,t)?.catalog.providers??[]:Ce.select(e)),se=a.createSelector((e,t)=>{if(!t)return J.select(e);const r=S.select(e,t)?.settings.find(s=>s.path==="model.defaultProvider")?.value;return typeof r=="string"?r:""}),q=a.createSelector((e,t)=>{if(!t)return Ve.select(e);const r=S.select(e,t)?.settings.find(s=>s.path==="providers.enabled")?.value;return r&&typeof r=="object"?r:{}}),ie=a.createSelector((e,t)=>{if(!t)return Ne.select(e);const r=q.select(e,t),s=se.select(e,t),i=S.select(e,t)?.readiness??{};return re.select(e,t).filter(o=>o.visible&&(!o.canBeDisabled||r[o.id]||o.id===s)&&i[o.id]?.available).map(o=>o.id)}),ci=a.createSelector((e,t)=>{const r=q.select(e,t),s=t?S.select(e,t)?.readiness??{}:U.select(e);return re.select(e,t).filter(i=>jt(i.id,s[i.id],r[i.id]===!0)).map(i=>i.id)}),li=a.createSelector((e,t)=>t?ie.select(e,t):Ue.select(e)),di=a.createSelector((e,t)=>v.select(e,t)),ui=a.createSelector((e,t)=>t?!!S.select(e,t):He.select(e)),pi=a.createSelector((e,t)=>{if(!t)return Le.select(e);const r=S.select(e,t)?.settings??[],s=se.select(e,t),i=r.find(c=>c.path==="model.providerDefaults")?.value,o=i&&typeof i=="object"?i[s]:void 0;if(typeof o=="string")return o;const l=r.find(c=>c.path==="model.default")?.value;return typeof l=="string"?l:""}),gi=a.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).flatMap(([r,s])=>s.warning?[[r,s.warning]]:[])):xe.select(e)),hi=a.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).map(([r,s])=>[r,s.stale===!0])):Oe.select(e)),fi=a.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).flatMap(([r,s])=>s.warning&&s.warningKind?[[r,s.warningKind]]:[])):We.select(e)),Si=a.createSelector((e,t,r)=>{if(!r)return qe.select(e,t);const s=q.select(e,r),i=S.select(e,r);return ie.select(e,r).filter(o=>o!==t&&(s[o]||i?.catalog.providers.find(l=>l.id===o)?.canBeDisabled===!1)&&$e(o,i?.readiness[o]?.authenticated))}),bi=a.createSelector((e,t)=>t?S.select(e,t)?.readiness??{}:U.select(e)),Zt={},mi=a.createSelector(e=>e.providerSettings?.profiles?.status??Zt),Z={},Qt=a.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]?.mcpServers??[]:e.mcpSettings.servers),vi=a.createSelector((e,t,r)=>{const s=e.providerCatalog?.byWorkspaceId?.[t];return s?s.mcpServers?.find(i=>i.id===r)?.name:e.providerCatalog?.mcpServerNamesByWorkspaceId?.[t]?.[r]}),_i=a.createSelector(e=>e.mcpSettings.loading),Ai=a.createSelector(e=>e.mcpSettings.error),yi=a.createSelector(e=>e.mcpSettings.mutationError??null),ki=a.createSelector(e=>e.mcpSettings.enabled),Jt=a.createSelector(e=>e.mcpSettings.disabledServers),Yt=a.createSelector(e=>e.mcpSettings.statusMap),Xt=a.createSelector(e=>e.mcpSettings.toolsMap),er=a.createSelector((e,t)=>{if(!t)return e.mcpSettings.errorMessages;const r=e.providerCatalog?.byWorkspaceId?.[t],s=new Map(r?.mcpServers?.map(i=>[i.id,w(i)])??[]);return Object.fromEntries((r?.mcpStatuses??[]).flatMap(i=>{const o=s.get(i.serverId);return o&&i.lastError?[[o,i.lastError]]:[]}))}),tr=a.createSelector((e,t)=>t?e.mcpSettings.byWorkspaceId[t]?.disabledServers??Z:Z),wi=a.createSelector((e,t)=>Object.keys(tr.select(e,t))),Ei=a.createSelector(e=>{const t=Qt.select(e),r=Yt.select(e),s=Xt.select(e),i=Jt.select(e),o=er.select(e);return t.map(l=>{const c=w(l)in i,g=s[w(l)]||[];let f=r[w(l)]||"disconnected";return c&&(f="disabled"),{...l,disabled:c,status:f,tools:g,toolCount:g.length,errorMessage:o[w(l)]}})});a.createSelector((e,t)=>e.mcpSettings.errorMessages[t]);const Ci=a.createSelector(e=>e.mcpSettings.lastImportedCount),Pi=a.createSelector(e=>e.mcpSettings.advancedSaveStatus),Ri=a.createSelector(e=>e.mcpSettings.advancedSaveError);function h(e){return{category:"settings",...e}}const T=[{id:"new-workspace",tab:"",label:"New workspace",route:"/workspace/new",category:"navigation",description:"Create-workspace flow."},h({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."}),h({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."}),h({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."}),h({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."}),h({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."}),h({id:"devices",tab:"devices",hashAliases:["devices","machines"],scrollSelector:"#devices",highlightSelector:"#devices",label:"Settings: Machines",route:"/settings?tab=devices#devices",description:"Saved remote machine settings."}),h({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."}),h({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."}),h({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"],["autocomplete","Autocomplete","Suggest as you type: service, model and API keys.","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 settings.","setup"],["workspace","Workspace","Workspace defaults.","setup"],["cli-optimization","CLI Optimization","RTK/CLI optimization settings.","token-savings"],["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.","token-savings"],["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.","performance"],["connection","Connection","Daemon connection details.","advanced"],["hardware","Hardware","Hardware integration settings.","input"],["developer","Developer","Development-only settings.","advanced"]].map(([e,t,r,s])=>h({id:e,tab:s,hashAliases:[e],scrollSelector:`#${e}`,highlightSelector:`[data-highlight-id="${e}"]`,label:`Settings: ${t}`,route:`/settings?tab=${s}#${e}`,description:r})),h({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,r])=>h({id:e,tab:"display",hashAliases:[e],scrollSelector:`#${e}`,highlightSelector:`[data-highlight-id="${e}"]`,label:`Settings: ${t}`,route:`/settings?tab=display#${e}`,description:r})),h({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 ae(e){const t=e.indexOf("#"),r=t>=0?e.slice(t+1):e;return decodeURIComponent(r.replace(/^#/,"")).trim()}function rr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function sr(e,t){if(!t.match(/\{[^}]+\}/g)?.length)return e===t;const s=t.split(/\{[^}]+\}/g).map(rr).join("[^/]+");return new RegExp(`^${s}$`).test(e)}function ir(e){const t=ae(e);if(!t)return;const r=T.find(i=>i.id===t||i.hashAliases?.includes(t));if(r)return r;const s=T.find(i=>i.route&&i.dynamic&&i.idPattern&&sr(t,i.idPattern));return s?{...s,id:t}:void 0}function Mi(){return T.map(e=>({...e,hashAliases:e.hashAliases?[...e.hashAliases]:void 0}))}function ar(e){try{return new URL(e,"app://intent").pathname||"/"}catch{const t=e.indexOf("?"),r=e.indexOf("#");let s=e.length;return t>=0&&(s=Math.min(s,t)),r>=0&&(s=Math.min(s,r)),e.slice(0,s)||"/"}}const nr=new Set(T.flatMap(e=>e.route?[ar(e.route)]:[])),or=[/^\/workspace\/[^/]+$/,/^\/agent\/[^/]+$/];function Ti(e){if(typeof e!="string")return!1;const t=e.trim();if(!t)return!1;if(t.startsWith("intent://"))return!0;let r,s;try{const i=new URL(t,"app://intent");if(i.protocol!=="app:")return!1;r=i.pathname||"/",s=ae(i.hash)}catch{return!1}return nr.has(r)?s?!!ir(s):!0:or.some(i=>i.test(r))}const Ii=["agentFeatures.backgroundHooks","agentFeatures.hostExec","agentFeatures.secretRequests","agentFeatures.scripts","agentFeatures.terminalAccess","agentFeatures.browserAutomation","agentFeatures.desktopControl","agentFeatures.richChatBlocks","agentFeatures.structuredQuestions","agentFeatures.attentionRequests","agentFeatures.stateSnapshot","agentFeatures.prMonitor","agentFeatures.taskGraph","agentFeatures.peerAgents","agentFeatures.mcpTools"],cr=[{path:"agentFeatures.backgroundHooks",label:()=>n.settings_agentFeatures_backgroundHooks_label(),description:()=>n.settings_agentFeatures_backgroundHooks_description(),defaultValue:!0},{path:"agentFeatures.hostExec",label:()=>n.settings_agentFeatures_hostExec_label(),description:()=>n.settings_agentFeatures_hostExec_description(),defaultValue:!0},{path:"agentFeatures.secretRequests",label:()=>n.settings_agentFeatures_secretRequests_label(),description:()=>n.settings_agentFeatures_secretRequests_description(),defaultValue:!1},{path:"agentFeatures.scripts",label:()=>n.settings_agentFeatures_scripts_label(),description:()=>n.settings_agentFeatures_scripts_description(),defaultValue:!0},{path:"agentFeatures.terminalAccess",label:()=>n.settings_agentFeatures_terminalAccess_label(),description:()=>n.settings_agentFeatures_terminalAccess_description(),defaultValue:!0},{path:"agentFeatures.browserAutomation",label:()=>n.settings_agentFeatures_browserAutomation_label(),description:()=>n.settings_agentFeatures_browserAutomation_description(),defaultValue:!0},{path:"agentFeatures.desktopControl",label:()=>n.settings_agentFeatures_desktopControl_label(),description:()=>n.settings_agentFeatures_desktopControl_description(),info:()=>n.settings_agentFeatures_desktopControl_info(),defaultValue:!0},{path:"agentFeatures.richChatBlocks",label:()=>n.settings_agentFeatures_richChatBlocks_label(),description:()=>n.settings_agentFeatures_richChatBlocks_description(),defaultValue:!0},{path:"agentFeatures.structuredQuestions",label:()=>n.settings_agentFeatures_structuredQuestions_label(),description:()=>n.settings_agentFeatures_structuredQuestions_description(),defaultValue:!0},{path:"agentFeatures.attentionRequests",label:()=>n.settings_agentFeatures_attentionRequests_label(),description:()=>n.settings_agentFeatures_attentionRequests_description(),defaultValue:!0},{path:"agentFeatures.stateSnapshot",label:()=>n.settings_agentFeatures_stateSnapshot_label(),description:()=>n.settings_agentFeatures_stateSnapshot_description(),defaultValue:!0},{path:"agentFeatures.prMonitor",label:()=>n.settings_agentFeatures_prMonitor_label(),description:()=>n.settings_agentFeatures_prMonitor_description(),defaultValue:!0},{path:"agentFeatures.taskGraph",label:()=>n.settings_agentFeatures_taskGraph_label(),description:()=>n.settings_agentFeatures_taskGraph_description(),defaultValue:!0},{path:"agentFeatures.peerAgents",label:()=>n.settings_agentFeatures_peerAgents_label(),description:()=>n.settings_agentFeatures_peerAgents_description(),defaultValue:!0},{path:"agentFeatures.mcpTools",label:()=>n.settings_agentFeatures_mcpTools_label(),description:()=>n.settings_agentFeatures_mcpTools_description(),defaultValue:!0}],Fi=Object.fromEntries(cr.map(e=>[e.path,e.defaultValue]));export{gi as $,Vs as A,vt as B,$t as C,Dr as D,gt as E,cr as F,Y as G,ri as H,ei as I,mt as J,ir as K,fs as L,xs as M,si as N,zt as O,ii as P,Or as Q,Nr as R,A as S,li as T,se as U,q as V,ci as W,ie as X,re as Y,hi as Z,fi as _,ze as a,Ei as a$,Si as a0,bi as a1,ui as a2,pi as a3,di as a4,Gr as a5,Hr as a6,ps as a7,ds as a8,cs as a9,Ar as aA,kr as aB,Pr as aC,wr as aD,Cr as aE,yr as aF,Tr as aG,_r as aH,Fr as aI,Xr as aJ,Ht as aK,Ut as aL,Ys as aM,Qs as aN,Jr as aO,Yr as aP,Js as aQ,Ri as aR,Pi as aS,Jt as aT,ki as aU,Ai as aV,er as aW,Ci as aX,_i as aY,yi as aZ,Qt as a_,ls as aa,us as ab,os as ac,Zs as ad,Qr as ae,rs as af,jr as ag,Ls as ah,Kr as ai,Zr as aj,Wr as ak,Vr as al,H as am,Je as an,st as ao,it as ap,X as aq,rt as ar,Ye as as,Qe as at,et as au,tt as av,Er as aw,Rr as ax,Mr as ay,Ir as az,Fi as b,Yt as b0,Xt as b1,Ks as b2,$r as b3,mi as b4,ai as b5,lt as b6,is as b7,as as b8,ts as b9,Os as bA,Bs as bB,js as bC,xt as bD,$s as bE,Ss as bF,hs as bG,bs as bH,gs as bI,Vt as bJ,ns as bK,ss as ba,zr as bb,es as bc,v as bd,Ur as be,Br as bf,Fs as bg,ks as bh,Ts as bi,Is as bj,Es as bk,Rs as bl,Ps as bm,ws as bn,ys as bo,As as bp,Ds as bq,_s as br,Cs as bs,Ms as bt,S as bu,Kt as bv,oi as bw,ni as bx,wi as by,vi as bz,Ii as c,ti as d,zs as e,_t as f,wt as g,Ws as h,Gs as i,qr as j,ct as k,ot as l,Us as m,Mi as n,ms as o,vs as p,Lr as q,xr as r,Hs as s,qs as t,bt as u,jt as v,Ns as w,Xs as x,K as y,Ti as z};
@@ -1,4 +1,4 @@
1
- import{b as o,X as ot,aH as ut,aX as dt,i as yt,r as ft,z as pt,b0 as it,V as gt,a_ as kt,U as mt,aZ as wt,Y as _t,B as bt}from"./CC-IHSah.js";var J=(function(){var e=o(function(T,t,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],u=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],D={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(function(t,s,i,c,p,n,v){var w=n.length-1;switch(p){case 6:case 7:return c;case 15:c.addNode(n[w-1].length,n[w].trim());break;case 16:c.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:f,7:d,10:17,11:m},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(u,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],c=[],p=[null],n=[],v=this.table,w="",I=0,$=0,L=2,A=1,V=n.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(S.yy[B]=this.yy[B]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;n.push(R);var U=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(P){i.length=i.length-2*P,p.length=p.length-P,n.length=n.length-P}o(Y,"popStack");function tt(){var P;return P=c.pop()||b.lex()||A,typeof P!="number"&&(P instanceof Array&&(c=P,P=c.pop()),P=s.symbols_[P]||P),P}o(tt,"lex");for(var M,W,N,K,z={},G,C,et,X;;){if(W=i[i.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=tt()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var q="";X=[];for(G in v[W])this.terminals_[G]&&G>L&&X.push("'"+this.terminals_[G]+"'");b.showPosition?q="Parse error on line "+(I+1)+`:
1
+ import{b as o,X as ot,aH as ut,aX as dt,i as yt,r as ft,z as pt,b0 as it,V as gt,a_ as kt,U as mt,aZ as wt,Y as _t,B as bt}from"./BolJpU8l.js";var J=(function(){var e=o(function(T,t,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],u=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],D={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(function(t,s,i,c,p,n,v){var w=n.length-1;switch(p){case 6:case 7:return c;case 15:c.addNode(n[w-1].length,n[w].trim());break;case 16:c.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:f,7:d,10:17,11:m},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(u,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],c=[],p=[null],n=[],v=this.table,w="",I=0,$=0,L=2,A=1,V=n.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(S.yy[B]=this.yy[B]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;n.push(R);var U=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(P){i.length=i.length-2*P,p.length=p.length-P,n.length=n.length-P}o(Y,"popStack");function tt(){var P;return P=c.pop()||b.lex()||A,typeof P!="number"&&(P instanceof Array&&(c=P,P=c.pop()),P=s.symbols_[P]||P),P}o(tt,"lex");for(var M,W,N,K,z={},G,C,et,X;;){if(W=i[i.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=tt()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var q="";X=[];for(G in v[W])this.terminals_[G]&&G>L&&X.push("'"+this.terminals_[G]+"'");b.showPosition?q="Parse error on line "+(I+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+X.join(", ")+", got '"+(this.terminals_[M]||M)+"'":q="Parse error on line "+(I+1)+": Unexpected "+(M==A?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(q,{text:b.match,token:this.terminals_[M]||M,line:b.yylineno,loc:R,expected:X})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+M);switch(N[0]){case 1:i.push(M),p.push(b.yytext),n.push(b.yylloc),i.push(N[1]),M=null,$=b.yyleng,w=b.yytext,I=b.yylineno,R=b.yylloc;break;case 2:if(C=this.productions_[N[1]][1],z.$=p[p.length-C],z._$={first_line:n[n.length-(C||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(C||1)].first_column,last_column:n[n.length-1].last_column},U&&(z._$.range=[n[n.length-(C||1)].range[0],n[n.length-1].range[1]]),K=this.performAction.apply(z,[w,$,I,S.yy,N[1],p,n].concat(V)),typeof K<"u")return K;C&&(i=i.slice(0,-1*C*2),p=p.slice(0,-1*C),n=n.slice(0,-1*C)),i.push(this.productions_[N[1]][0]),p.push(z.$),n.push(z._$),et=v[i[i.length-2]][i[i.length-1]],i.push(et);break;case 3:return!0}}return!0},"parse")},O=(function(){var T={EOF:1,parseError:o(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),setInput:o(function(t,s){return this.yy=s||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:o(function(t){var s=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===c.length?this.yylloc.first_column:0)+c[c.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(t){this.unput(this.match.slice(t))},"less"),pastInput:o(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{c as h}from"./7OH6WUSt.js";import{C as c,H as u,d as p,D as m,R as f,g as _,h as w,b as k,F as v,a as D,S as P,c as R,f as I}from"./Dxfvrgme.js";import{e as H,i as U,j as y,t as T,k as x}from"./Dxfvrgme.js";import{l as s}from"./7y3Z0Q49.js";const C=120*1e3;class A{constructor(n){this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>C&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=h({moduleId:"vs/language/css/cssWorker",createWorker:()=>new Worker(new URL("/app/immutable/workers/css.worker-08QwUeFR.js",import.meta.url),{type:"module"}),label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(a=>{e=a}).then(a=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(a=>e)}}function E(o){const n=[],e=[],a=new A(o);n.push(a);const r=(...t)=>a.getLanguageServiceWorker(...t);function l(){const{languageId:t,modeConfiguration:i}=o;g(e),i.completionItems&&e.push(s.registerCompletionItemProvider(t,new c(r,["/","-",":"]))),i.hovers&&e.push(s.registerHoverProvider(t,new u(r))),i.documentHighlights&&e.push(s.registerDocumentHighlightProvider(t,new p(r))),i.definitions&&e.push(s.registerDefinitionProvider(t,new m(r))),i.references&&e.push(s.registerReferenceProvider(t,new f(r))),i.documentSymbols&&e.push(s.registerDocumentSymbolProvider(t,new _(r))),i.rename&&e.push(s.registerRenameProvider(t,new w(r))),i.colors&&e.push(s.registerColorProvider(t,new k(r))),i.foldingRanges&&e.push(s.registerFoldingRangeProvider(t,new v(r))),i.diagnostics&&e.push(new D(t,r,o.onDidChange)),i.selectionRanges&&e.push(s.registerSelectionRangeProvider(t,new P(r))),i.documentFormattingEdits&&e.push(s.registerDocumentFormattingEditProvider(t,new R(r))),i.documentRangeFormattingEdits&&e.push(s.registerDocumentRangeFormattingEditProvider(t,new I(r)))}return l(),n.push(d(e)),d(n)}function d(o){return{dispose:()=>g(o)}}function g(o){for(;o.length;)o.pop().dispose()}export{c as CompletionAdapter,m as DefinitionAdapter,D as DiagnosticsAdapter,k as DocumentColorAdapter,R as DocumentFormattingEditProvider,p as DocumentHighlightAdapter,H as DocumentLinkAdapter,I as DocumentRangeFormattingEditProvider,_ as DocumentSymbolAdapter,v as FoldingRangeAdapter,u as HoverAdapter,f as ReferenceAdapter,w as RenameAdapter,P as SelectionRangeAdapter,A as WorkerManager,U as fromPosition,y as fromRange,E as setupMode,T as toRange,x as toTextEdit};
1
+ import{c as h}from"./DgjIVRdE.js";import{C as c,H as u,d as p,D as m,R as f,g as _,h as w,b as k,F as v,a as D,S as P,c as R,f as I}from"./DQvAX2eX.js";import{e as H,i as U,j as y,t as T,k as x}from"./DQvAX2eX.js";import{l as s}from"./DX2U4Mz9.js";const C=120*1e3;class A{constructor(n){this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>C&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=h({moduleId:"vs/language/css/cssWorker",createWorker:()=>new Worker(new URL("/app/immutable/workers/css.worker-08QwUeFR.js",import.meta.url),{type:"module"}),label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(a=>{e=a}).then(a=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(a=>e)}}function E(o){const n=[],e=[],a=new A(o);n.push(a);const r=(...t)=>a.getLanguageServiceWorker(...t);function l(){const{languageId:t,modeConfiguration:i}=o;g(e),i.completionItems&&e.push(s.registerCompletionItemProvider(t,new c(r,["/","-",":"]))),i.hovers&&e.push(s.registerHoverProvider(t,new u(r))),i.documentHighlights&&e.push(s.registerDocumentHighlightProvider(t,new p(r))),i.definitions&&e.push(s.registerDefinitionProvider(t,new m(r))),i.references&&e.push(s.registerReferenceProvider(t,new f(r))),i.documentSymbols&&e.push(s.registerDocumentSymbolProvider(t,new _(r))),i.rename&&e.push(s.registerRenameProvider(t,new w(r))),i.colors&&e.push(s.registerColorProvider(t,new k(r))),i.foldingRanges&&e.push(s.registerFoldingRangeProvider(t,new v(r))),i.diagnostics&&e.push(new D(t,r,o.onDidChange)),i.selectionRanges&&e.push(s.registerSelectionRangeProvider(t,new P(r))),i.documentFormattingEdits&&e.push(s.registerDocumentFormattingEditProvider(t,new R(r))),i.documentRangeFormattingEdits&&e.push(s.registerDocumentRangeFormattingEditProvider(t,new I(r)))}return l(),n.push(d(e)),d(n)}function d(o){return{dispose:()=>g(o)}}function g(o){for(;o.length;)o.pop().dispose()}export{c as CompletionAdapter,m as DefinitionAdapter,D as DiagnosticsAdapter,k as DocumentColorAdapter,R as DocumentFormattingEditProvider,p as DocumentHighlightAdapter,H as DocumentLinkAdapter,I as DocumentRangeFormattingEditProvider,_ as DocumentSymbolAdapter,v as FoldingRangeAdapter,u as HoverAdapter,f as ReferenceAdapter,w as RenameAdapter,P as SelectionRangeAdapter,A as WorkerManager,U as fromPosition,y as fromRange,E as setupMode,T as toRange,x as toTextEdit};
@@ -1,4 +1,4 @@
1
- import{b as e}from"./CC-IHSah.js";var l=e(()=>`
1
+ import{b as e}from"./BolJpU8l.js";var l=e(()=>`
2
2
  /* Font Awesome icon styling - consolidated */
3
3
  .label-icon {
4
4
  display: inline-block;
@@ -1,3 +1,3 @@
1
- import{fV as B,Jx as o,nZ as F,mp as K,mg as j,tB as q}from"./4g_iHoQm.js";import{H as G,n as V,O as Y,e8 as $,cU as W,dH as k,dS as N,e1 as O,cP as z,aN as J}from"./SbTG0nwQ.js";import{selectCurrentWorkspaceTabId as X,selectWorkspaceTabsHydrated as Q}from"./DtqPBHQj.js";import{t as Z}from"./B6eTPmJH.js";import{m as ee,N as te,T as se,d as re,o as oe,w as ne}from"./rXKOJqUt.js";import"./3SdAC2_C.js";import"./Dws-34a7.js";import"./BD9db4FR.js";import"./D-rRuAXZ.js";import"./BPuz5cN_.js";import"./ChTqQfQN.js";import"./DcOkWaeN.js";function ae(e){return!e.retiredAt&&!e.pendingDeleteAt&&e.status!=="deleted"}function m(e){const t=new Date(e.lastActivity??e.updatedAt??e.createdAt).getTime()||0,s=e.messages.at(-1)?.timestamp,r=s&&new Date(s).getTime()||0;return Math.max(t,r)}function Ue(e){const t=e.filter(ae).map(s=>({agent:s,activity:m(s),created:new Date(s.createdAt).getTime()||0})).sort((s,r)=>r.activity-s.activity||r.created-s.created||String(s.agent.id).localeCompare(String(r.agent.id)));return t.find(({agent:s})=>B(s)==="topLevel")?.agent??t[0]?.agent??null}const p="__chief__",M="New chat";function ce(e){const t=e?.trim();return!t||t===M||t==="New chat with Assistant"||t==="New chat with Intent"||t==="Chief of Staff"||t.startsWith("New thread ")}function ie(e){const t=e.name?.trim();if(e.nameExplicitlySet&&t)return t;const r=e.messages.find(l=>l.role==="user")??e.messages[0],c=r?(r.role==="user"?G(r):V(r)).trim():"";return!t||ce(t)?c||M:c||t}const le="chief-of-staff",de=6,T="## Assistant Runtime Identity\n\nYou are Intent's built-in Assistant. Operate at the app level with `ws.app.*` tools: manage workspaces, settings, specialists, navigation, and cross-workspace agents. You are not a repository coding agent. Treat generic coding-agent, workspace, spec, task, and delegation instructions as subordinate to this role.\n\nWhen the user requests repository work, create or open the appropriate workspace and hand the work to the appropriate specialist. Once you have enough repository or PR information, act through the app-level proposal flow instead of merely promising to verify, prepare, or hand off the work.\n\nShow workspaces, notes, files, agent conversations and repository links beside your conversation when they help the user. Share ordinary Markdown links to notes (intent://local/note/<noteId> or intent://local/<workspaceId>/note/<noteId>) workspace links (intent://local/workspace/<workspaceId>), workspace file and agent links, and HTTPS repository URLs; clicking opens a closable content panel while keeping chat visible. To show content automatically, call `ws.app.ui.navigate` with the same link or /workspace/<workspaceId>. Calling `ws.app.workspaces.open` also shows that workspace beside chat unless the user requests a new window. Each conversation has its own panel history. Workspaces show the same detail and agent chat as Home’s Workspaces tab. Earlier content remains available in that conversation’s panel header picker. Creating a note alone does not open it: explicitly navigate when you want to show it.\n\nWhen the user asks to transfer a project between devices, find the source workspace with `ws.app.workspaces.list` and call `ws.app.workspaces.transfer(id, { destination })`. Pass the user's destination name as the hint, or omit it so they can choose a saved device in the inline card. The source is the device serving this assistant conversation. The tool only proposes the transfer: wait for approval or cancellation in the card, and report completion only after the proposal is applied.";function He(e){const t=e?.trim();return t?`${T}
1
+ import{fV as B,Jx as o,nZ as F,mp as K,mg as j,tB as q}from"./CIoJPvjg.js";import{H as G,n as V,O as Y,e8 as $,cU as W,dH as k,dS as N,e1 as O,cP as z,aN as J}from"./3Kr2ijlK.js";import{selectCurrentWorkspaceTabId as X,selectWorkspaceTabsHydrated as Q}from"./Btst3lgy.js";import{t as Z}from"./DJJ2Xrlq.js";import{m as ee,N as te,T as se,d as re,o as oe,w as ne}from"./BXHbm15d.js";import"./3SdAC2_C.js";import"./DWvCfaBg.js";import"./BCuI_zgX.js";import"./Bu3PKqut.js";import"./CIKXOyvw.js";import"./ChTqQfQN.js";import"./2aKRVAvL.js";function ae(e){return!e.retiredAt&&!e.pendingDeleteAt&&e.status!=="deleted"}function m(e){const t=new Date(e.lastActivity??e.updatedAt??e.createdAt).getTime()||0,s=e.messages.at(-1)?.timestamp,r=s&&new Date(s).getTime()||0;return Math.max(t,r)}function Ue(e){const t=e.filter(ae).map(s=>({agent:s,activity:m(s),created:new Date(s.createdAt).getTime()||0})).sort((s,r)=>r.activity-s.activity||r.created-s.created||String(s.agent.id).localeCompare(String(r.agent.id)));return t.find(({agent:s})=>B(s)==="topLevel")?.agent??t[0]?.agent??null}const p="__chief__",M="New chat";function ce(e){const t=e?.trim();return!t||t===M||t==="New chat with Assistant"||t==="New chat with Intent"||t==="Chief of Staff"||t.startsWith("New thread ")}function ie(e){const t=e.name?.trim();if(e.nameExplicitlySet&&t)return t;const r=e.messages.find(l=>l.role==="user")??e.messages[0],c=r?(r.role==="user"?G(r):V(r)).trim():"";return!t||ce(t)?c||M:c||t}const le="chief-of-staff",de=6,T="## Assistant Runtime Identity\n\nYou are Intent's built-in Assistant. Operate at the app level with `ws.app.*` tools: manage workspaces, settings, specialists, navigation, and cross-workspace agents. You are not a repository coding agent. Treat generic coding-agent, workspace, spec, task, and delegation instructions as subordinate to this role.\n\nWhen the user requests repository work, create or open the appropriate workspace and hand the work to the appropriate specialist. Once you have enough repository or PR information, act through the app-level proposal flow instead of merely promising to verify, prepare, or hand off the work.\n\nShow workspaces, notes, files, agent conversations and repository links beside your conversation when they help the user. Share ordinary Markdown links to notes (intent://local/note/<noteId> or intent://local/<workspaceId>/note/<noteId>) workspace links (intent://local/workspace/<workspaceId>), workspace file and agent links, and HTTPS repository URLs; clicking opens a closable content panel while keeping chat visible. To show content automatically, call `ws.app.ui.navigate` with the same link or /workspace/<workspaceId>. Calling `ws.app.workspaces.open` also shows that workspace beside chat unless the user requests a new window. Each conversation has its own panel history. Workspaces show the same detail and agent chat as Home’s Workspaces tab. Earlier content remains available in that conversation’s panel header picker. Creating a note alone does not open it: explicitly navigate when you want to show it.\n\nWhen the user asks to transfer a project between devices, find the source workspace with `ws.app.workspaces.list` and call `ws.app.workspaces.transfer(id, { destination })`. Pass the user's destination name as the hint, or omit it so they can choose a saved device in the inline card. The source is the device serving this assistant conversation. The tool only proposes the transfer: wait for approval or cancellation in the card, and report completion only after the proposal is applied.";function He(e){const t=e?.trim();return t?`${T}
2
2
 
3
3
  ${t}`:T}const pe=o.createSelector((e,t)=>{const s=e.backgroundHooks?.byWorkspaceId?.[t];return s?F(s.hooks):[]}),ue=o.createSelector((e,t)=>e.backgroundHooks?.byWorkspaceId?.[t]?.snapshotStatus??"loading"),_=o.createSelector((e,t)=>e.scriptMonitor?.byWorkspaceId[t]??K),xe=o.createSelector((e,t,s)=>{const r=_.select(e,t);return r.status==="unsupported"?[]:r.monitors.filter(c=>c.agentId===s)}),u=o.createSelector((e,t,s)=>{const r=q(t,s);return e.agentSubscriptionUI.entries[r]??j}),ge=o.createSelector((e,t,s)=>u.select(e,t,s).subscriptions),fe=o.createSelector((e,t,s)=>u.select(e,t,s).eventSubscriptions??[]),he=o.createSelector((e,t,s)=>u.select(e,t,s).delegationGroups),Be=o.createSelector((e,t,s)=>u.select(e,t,s).agentStatuses),Fe=o.createSelector((e,t,s)=>u.select(e,t,s).waitingState),Ke=o.createSelector((e,t,s)=>u.select(e,t,s).wokenUpInfo);function Se(e){return[...new Set(e.filter(Boolean))]}const je=o.createSelector((e,t,s)=>{const r=u.select(e,t,s),c=[],l=new Set,i=n=>{for(const a of Se(n))l.has(a)||(l.add(a),c.push(a))},h=[...r.subscriptions].sort((n,a)=>n.createdAt.localeCompare(a.createdAt)||n.id.localeCompare(a.id));for(const n of h)n.delegationGroup?.awaitMode!=="all"&&i(n.actorIds);const g=new Map;for(const n of r.delegationGroups)n.awaitMode==="all"&&g.set(n.groupId,n);for(const n of g.values())i(n.expectedAgentIds);for(const n of h){const a=n.delegationGroup;a?.awaitMode==="all"&&!g.has(a.groupId)&&i(a.expectedAgentIds)}const d=new Set;for(const n of r.delegationGroups){for(const a of n.completedAgentIds)d.add(a);for(const a of n.deletedAgentIds)d.add(a);for(const[a,f]of Object.entries(n.agentStatuses))f==="completed"&&d.add(a)}for(const[n,a]of Object.entries(r.agentStatuses))a==="completed"&&d.add(n);const w=e.agentSessions?.byAgentId??{},A=new Set([...d].filter(n=>{const a=w[n];return!a||!Y($(a))})),v=new Map(c.map((n,a)=>[n,a])),y=n=>{const a=w[n];if(!a)return 2;if(a.attentionRequestKind==="blocker")return 0;if(a.attentionRequestKind==="discussion")return 1;if(A.has(n))return 4;const f=String(a.status).toLowerCase();return f==="responding"||f==="active"||f==="processing"?2:3},C=c.filter(n=>!A.has(n)).sort((n,a)=>y(n)-y(a)||(v.get(n)??0)-(v.get(a)??0));return{visible:r.snapshotStatus==="failed"||r.waitingState==="completed"||c.length>0||r.wokenUpInfo!==null,count:C.length,participantAgentIds:C}}),qe=o.createSelector((e,t,s)=>u.select(e,t,s).snapshotStatus),Ge=o.createSelector((e,t)=>{const s=`${t}:`,r=[];for(const c of Object.keys(e.agentSubscriptionUI.entries))c.startsWith(s)&&r.push(c.slice(s.length));return r});o.createSelector((e,t,s)=>{const r=he.select(e,t,s);let c=0,l=0;for(const i of r)c+=i.expectedAgentIds.length,l+=i.completedAgentIds.length+i.deletedAgentIds.length;return{total:c,completed:l}});const Ve=o.createSelector(e=>{const t=X.select(e);if(!t||!Q.select(e))return[];const s=new Set;for(const r of Z.select(e,t)){const c=r.panes.find(l=>l.id===r.activePaneId);c?.type==="agent"&&c.agentId&&s.add(c.agentId)}return[...s].map(r=>({wsId:t,agentId:r}))}),E="pinned",me=64;function I(e){return e.trim().toLocaleLowerCase()}function L(e){return e===E}function Ye(e,t){const s=e.trim();if(s.length===0)return{ok:!1,error:"empty"};if([...s].length>me)return{ok:!1,error:"tooLong"};const r=I(s);return r===E?{ok:!1,error:"reserved"}:t.some(c=>I(c)===r)?{ok:!1,error:"duplicate"}:{ok:!0,label:s}}function Ie(e){const t=new Map;for(const s of e){if(typeof s!="string"||L(s))continue;const r=s.trim();if(r.length===0)continue;const c=I(r);t.has(c)||t.set(c,s)}return[...t.values()].sort((s,r)=>s.localeCompare(r,void 0,{sensitivity:"base"}))}function P(e){const s=e.workspaceAgents?.byWorkspaceId?.[p]?.agentIds,r=s&&s.length>0?new Set(s.map(i=>String(i))):null,c=e.agentSessions?.agentIdsByWorkspace?.[p]??[],l=c.length>0?c.map(i=>e.agentSessions?.byAgentId?.[i]).filter(i=>!!i):Object.values(e.agentSessions?.byAgentId??{}).filter(i=>i.workspaceId===p);return r?l.filter(i=>r.has(String(i.id))):l}function R(e){return e.metadata?.specialist===le&&e.metadata?.chiefPromptVersion===de}function D(e){return Math.max(e.messages.length,e.messageCount??0)}function S(e){return{agentId:e.id,title:ie(e),isActive:e.isStreaming===!0||e.isProcessing===!0||e.isResponding===!0,messageCount:D(e),pinned:e.pinned===!0,retired:!!e.retiredAt}}function b(e){return P(e).filter(t=>!t.retiredAt)}function U(e,t){return m(t)-m(e)}function H(e,t){const s=r=>new Date(r.lastActivity??r.updatedAt??r.createdAt).getTime()||0;return s(t)-s(e)}const $e=o.createSelector(e=>e.sidebarNav.panelItem),ze=o.createSelector(e=>e.sidebarNav.onboardingActive),Je=o.createSelector(e=>e.sidebarNav.showCreateModal),Xe=o.createSelector(e=>e.sidebarNav.createModalUsesHomeRepository),Qe=o.createSelector(e=>e.sidebarNav.createModalPrefillRequest),x=o.createSelector(e=>W.select(e)?.capabilities.workspaceLabels===1),Ze=o.createSelector((e,t)=>k.select(e,t)?.label??null),et=o.createSelector(e=>Ie(N.select(e).map(t=>t.label))),ke=["id","label"],tt=o.createSelector((e,t)=>x.select(e)&&O.select(e,t,ke)!==null),be=o.createSelector(e=>W.select(e)?.capabilities.workspaceAutoArchiveOptOut===1),we=o.createSelector(e=>(e.sidebarNav.autoArchiveIdleAfterDays??0)>0),st=o.createSelector((e,t)=>k.select(e,t)?.autoArchiveDisabled===!0),Ae=["id","autoArchiveDisabled"],rt=o.createSelector((e,t)=>{if(!be.select(e)||!we.select(e))return!1;const s=k.select(e,t);return!s||s.isRemote===!0||s.environmentConfig?.type==="remote"?!1:O.select(e,t,Ae)!==null}),ot=o.createSelector(e=>e.sidebarNav.pinnedWorkspaceIds),nt=o.createSelector(e=>x.select(e)?N.select(e).filter(t=>L(t.label)).map(t=>t.id):e.sidebarNav.pinnedWorkspaceIds),at=o.createSelector((e,t)=>e.sidebarNav.multiSelectSelectedTabIdsByWorkspaceId[t]??["people","agents"]),ct=o.createSelector(e=>e.sidebarNav.hiddenSidebarTabIds??[]),it=o.createSelector((e,t)=>e.sidebarNav.noteOrderByWorkspaceId[t]??[]),lt=o.createSelector((e,t)=>e.sidebarNav.collapsedNoteIdsByWorkspaceId[t]??[]),dt=o.createSelector((e,t)=>e.sidebarNav.expandedNoteIdsByWorkspaceId?.[t]??[]),pt=o.createSelector(e=>e.sidebarNav.chiefActiveAgentId),ut=o.createSelector((e,t)=>{const s=e.agentSessions.byAgentId[t];if(s?.workspaceId!==p)return{hooks:0,monitors:0,subscriptions:0};const r=ue.select(e,p)==="ready"?pe.select(e,p).filter(d=>d.agentId===t&&(d.state==="scheduled"||d.state==="running")).length:s.waitingOnHooks?.length??0,c=z.select(e,p)==="ready"?J.select(e,p,t).filter(d=>d.state==="active").length:s.waitingOnPrMonitors?.length??0,l=_.select(e,p),i=l.status==="unsupported"?0:l.status==="ready"?l.monitors.filter(d=>d.agentId===t&&d.state==="active").length:s.waitingOnScriptMonitors?.length??0,h=s.isWaitingForOtherAgents===!1?0:s.waitingForAgentIds?.length??(ge.select(e,p,t).length||(s.isWaitingForOtherAgents?1:0)),g=fe.select(e,p,t).filter(d=>d.subscriberAgentId===t).length;return{hooks:r,monitors:c+i,subscriptions:h+g}}),gt=o.createSelector(e=>e.sidebarNav.statsOverlayOpen),ve=o.createSelector(e=>b(e).sort((t,s)=>+(s.pinned===!0)-+(t.pinned===!0)||H(t,s)).map(S)),ye=o.createSelector(e=>P(e).filter(t=>!!t.retiredAt).sort(H).map(S)),ft=o.createSelector(e=>[...ve.select(e),...ye.select(e)]),ht=o.createSelector(e=>{const t=b(e).filter(R).sort(U)[0];return t?S(t):null}),St=o.createSelector(e=>{const t=b(e).filter(s=>D(s)===0&&!s.lastMessageId&&R(s)).sort(U)[0];return t?S(t):null}),mt=Object.freeze(Object.defineProperty({__proto__:null,NOTIFY_DURATION:te,TOAST_COUNTDOWN_CLASS:se,TOAST_COUNTDOWN_NO_HOVER_PAUSE_CLASS:re,notify:ee,notifyMetadata:oe,withToastCountdown:ne},Symbol.toStringTag,{value:"Module"}));export{ot as A,at as B,de as C,M as D,ze as E,$e as F,nt as G,ye as H,St as I,_ as J,Je as K,gt as L,qe as M,Ge as N,Fe as O,E as P,Ke as Q,st as R,lt as S,dt as T,Ze as U,et as V,me as W,it as X,Ye as Y,le as a,p as b,He as c,L as d,ae as e,je as f,Be as g,ge as h,mt as i,ft as j,ut as k,pe as l,ue as m,rt as n,tt as o,pt as p,ve as q,Ue as r,xe as s,Qe as t,Xe as u,ht as v,he as w,Ve as x,ct as y,x as z};
@@ -0,0 +1 @@
1
+ import{g as t}from"./YqTahsxp.js";import{Jx as r}from"./CIoJPvjg.js";import{aK as o}from"./DpvQ3NRH.js";function l(e){return!e||t().status!=="connected"?null:o.select(r.state,e)}export{l as resolveConnectedWorkspaceKeySlot};