@intent-hq/web 2.346.1 → 2.346.3

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 (269) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{BBhsbqLJ.js → -CHLoCv2.js} +1 -1
  3. package/web/app/immutable/chunks/{DKnPivVx.js → -FMYDRBF.js} +1 -1
  4. package/web/app/immutable/chunks/{BDgfFtcK.js → 2FIlKX-3.js} +1 -1
  5. package/web/app/immutable/chunks/{CS0II5i-.js → 2JP5OgdF.js} +1 -1
  6. package/web/app/immutable/chunks/{ENl_7pWb.js → 2cCVtmIg.js} +1 -1
  7. package/web/app/immutable/chunks/{COhzdkuA.js → 3kodm_f4.js} +1 -1
  8. package/web/app/immutable/chunks/{DUyBdSjv.js → 5GYSXevc.js} +1 -1
  9. package/web/app/immutable/chunks/{3OP-tats.js → 6EBJYAxp.js} +1 -1
  10. package/web/app/immutable/chunks/{CuD9DL4y.js → 6qKuCjdA.js} +1 -1
  11. package/web/app/immutable/chunks/{Bw9Opv8X.js → 7uqL-6tT.js} +1 -1
  12. package/web/app/immutable/chunks/{DSHtWXiq.js → 8LHayabj.js} +1 -1
  13. package/web/app/immutable/chunks/{JbkOWTOg.js → 8ksyQzxS.js} +1 -1
  14. package/web/app/immutable/chunks/{BnSdmDXX.js → 905ViLyg.js} +1 -1
  15. package/web/app/immutable/chunks/{NqdaVAll.js → AhLUcdeh.js} +1 -1
  16. package/web/app/immutable/chunks/{sCaWuYEb.js → B-mfoYJY.js} +1 -1
  17. package/web/app/immutable/chunks/{BGqL3gJO.js → B0A8uFhj.js} +1 -1
  18. package/web/app/immutable/chunks/{BaDPh7vq.js → B1Bex3N_.js} +1 -1
  19. package/web/app/immutable/chunks/{UxXMSC13.js → B2Nx9i4m.js} +1 -1
  20. package/web/app/immutable/chunks/{W4Nuovgc.js → B2lO9JOz.js} +1 -1
  21. package/web/app/immutable/chunks/{DNQiloiF.js → B35kShEY.js} +1 -1
  22. package/web/app/immutable/chunks/{O3Ve923N.js → B3GLZuHB.js} +1 -1
  23. package/web/app/immutable/chunks/{DlrkMELS.js → B3Z7v7rH.js} +1 -1
  24. package/web/app/immutable/chunks/{Ck2hwsBm.js → B4-LumaR.js} +1 -1
  25. package/web/app/immutable/chunks/{DzEm_gMB.js → B5jn8aKG.js} +1 -1
  26. package/web/app/immutable/chunks/{T9_nVC7k.js → B6lORqss.js} +1 -1
  27. package/web/app/immutable/chunks/{HAVpWhg1.js → B7J_zYsA.js} +1 -1
  28. package/web/app/immutable/chunks/{CIhlsnLM.js → B7PtZbeR.js} +1 -1
  29. package/web/app/immutable/chunks/{CxlqEDL_.js → B7myJZdQ.js} +3 -3
  30. package/web/app/immutable/chunks/{Cv_fAsRR.js → BAYfmcgi.js} +1 -1
  31. package/web/app/immutable/chunks/{CXgI2Ln7.js → BAo6IWBv.js} +1 -1
  32. package/web/app/immutable/chunks/{35EIyCm3.js → BIuKjPZF.js} +1 -1
  33. package/web/app/immutable/chunks/{DhWGSJOr.js → BJwkYtAi.js} +1 -1
  34. package/web/app/immutable/chunks/{CSelYXXo.js → BL2lJmRT.js} +1 -1
  35. package/web/app/immutable/chunks/{BW1uSKLL.js → BLgIfeYS.js} +1 -1
  36. package/web/app/immutable/chunks/{V_ABjOKq.js → BMOaW1oW.js} +1 -1
  37. package/web/app/immutable/chunks/{CPo4UsMt.js → BN2mg-Hu.js} +1 -1
  38. package/web/app/immutable/chunks/{B6_GAXLX.js → BOr-kq9m.js} +1 -1
  39. package/web/app/immutable/chunks/{NhKlePe6.js → BPY8OTRz.js} +1 -1
  40. package/web/app/immutable/chunks/{Cjyjhytt.js → BPg5N0kY.js} +1 -1
  41. package/web/app/immutable/chunks/{yw7dEI88.js → BR8cFY4D.js} +1 -1
  42. package/web/app/immutable/chunks/{CNHQ2hz2.js → BS47DjuS.js} +1 -1
  43. package/web/app/immutable/chunks/{CTMYdigD.js → BS8Oxiwq.js} +1 -1
  44. package/web/app/immutable/chunks/{2_W5MGlF.js → BTrGu4V2.js} +1 -1
  45. package/web/app/immutable/chunks/{DZZviYVT.js → BVKuTBgW.js} +2 -2
  46. package/web/app/immutable/chunks/{BlznqeMI.js → BVxykti4.js} +1 -1
  47. package/web/app/immutable/chunks/{CZ2Oen6-.js → BWqWCv74.js} +1 -1
  48. package/web/app/immutable/chunks/{B2i6P1Yj.js → BXVSJTKx.js} +1 -1
  49. package/web/app/immutable/chunks/{CUEYQ1xR.js → BYu-G7r_.js} +1 -1
  50. package/web/app/immutable/chunks/{DctMspbi.js → BZQDFgmp.js} +1 -1
  51. package/web/app/immutable/chunks/{BppmVmxY.js → B_E_i0pj.js} +1 -1
  52. package/web/app/immutable/chunks/{Bs3_4AtC.js → BcTzrLaX.js} +1 -1
  53. package/web/app/immutable/chunks/{BmLxQNOC.js → Bf-2W8ee.js} +1 -1
  54. package/web/app/immutable/chunks/{T1DVgc50.js → Bfufmy9h.js} +1 -1
  55. package/web/app/immutable/chunks/{BkzhB_Po.js → BgO7_9-9.js} +1 -1
  56. package/web/app/immutable/chunks/BgsoTwBt.js +1 -0
  57. package/web/app/immutable/chunks/{B_ALvSh2.js → BhpN5y2w.js} +1 -1
  58. package/web/app/immutable/chunks/{Do1gmE20.js → BhwQ3RpS.js} +1 -1
  59. package/web/app/immutable/chunks/{3hAJcdO4.js → Bii5NwwM.js} +1 -1
  60. package/web/app/immutable/chunks/{CK5SmfAe.js → BjQLXdCG.js} +1 -1
  61. package/web/app/immutable/chunks/{C4LCiNWC.js → BjQQ-QAR.js} +1 -1
  62. package/web/app/immutable/chunks/{C3LkuwxU.js → BjyueHVe.js} +1 -1
  63. package/web/app/immutable/chunks/{CKfg4UqD.js → Bndg0x8W.js} +1 -1
  64. package/web/app/immutable/chunks/{AfO8pDU9.js → BoCkK5Wk.js} +1 -1
  65. package/web/app/immutable/chunks/{CP2XzLLk.js → Br0L4BrM.js} +1 -1
  66. package/web/app/immutable/chunks/{DL98Mvfc.js → Bs4SchIj.js} +1 -1
  67. package/web/app/immutable/chunks/{5ICkS6dd.js → BsCcl9ES.js} +1 -1
  68. package/web/app/immutable/chunks/{CjxgW2LG.js → BtFbwSdu.js} +1 -1
  69. package/web/app/immutable/chunks/{qvZYvB9N.js → Bv2KudWv.js} +1 -1
  70. package/web/app/immutable/chunks/{BvpnWd-y.js → Bwi3H4EE.js} +1 -1
  71. package/web/app/immutable/chunks/{BycUBg6h.js → ByhhTiqD.js} +1 -1
  72. package/web/app/immutable/chunks/{dT5WNNGq.js → BzUmccFe.js} +1 -1
  73. package/web/app/immutable/chunks/{BO3bzcut.js → C-P--5-o.js} +1 -1
  74. package/web/app/immutable/chunks/{BLXPhKCH.js → C1s5hjq_.js} +1 -1
  75. package/web/app/immutable/chunks/{BI0I5q5w.js → C2UUXRHQ.js} +3 -3
  76. package/web/app/immutable/chunks/{B_uWHofm.js → C2XebNhA.js} +1 -1
  77. package/web/app/immutable/chunks/{tn7Dp-vi.js → C2aqDEXl.js} +1 -1
  78. package/web/app/immutable/chunks/{UKn44y3B.js → C55nGHPT.js} +1 -1
  79. package/web/app/immutable/chunks/{BIB7YFjF.js → C6WcTrxv.js} +2 -2
  80. package/web/app/immutable/chunks/{BIWW5pDn.js → C6vwP-ay.js} +1 -1
  81. package/web/app/immutable/chunks/{C4t0jJ4k.js → CABbtsx1.js} +1 -1
  82. package/web/app/immutable/chunks/{YuOz6Rmc.js → CAZtkTon.js} +1 -1
  83. package/web/app/immutable/chunks/{C1s02RDB.js → CApIfgsx.js} +1 -1
  84. package/web/app/immutable/chunks/{D0wwPGAk.js → CB69UzLI.js} +1 -1
  85. package/web/app/immutable/chunks/{BMCRnGzk.js → CCk7G8nC.js} +1 -1
  86. package/web/app/immutable/chunks/CD1fj6ns.js +1 -0
  87. package/web/app/immutable/chunks/{B-hjApiN.js → CEbGQG52.js} +1 -1
  88. package/web/app/immutable/chunks/{B2Qef3kJ.js → CFvWMGvD.js} +2 -2
  89. package/web/app/immutable/chunks/{BA-Wd8x9.js → CHDzcbuO.js} +1 -1
  90. package/web/app/immutable/chunks/{jqkXCyuX.js → CHKJ-bXh.js} +1 -1
  91. package/web/app/immutable/chunks/{BFVZAW0_.js → CIKf0hiv.js} +1 -1
  92. package/web/app/immutable/chunks/{0h3tB2X7.js → CIpI7Qrh.js} +1 -1
  93. package/web/app/immutable/chunks/{BEF8aCkH.js → CK8WOQOm.js} +1 -1
  94. package/web/app/immutable/chunks/{SnydeSOZ.js → CMb8WXOk.js} +2 -2
  95. package/web/app/immutable/chunks/{RKjwEkJS.js → CO4a0yRH.js} +1 -1
  96. package/web/app/immutable/chunks/{Dnk26fqb.js → COZ71ZSJ.js} +3 -3
  97. package/web/app/immutable/chunks/{DciVixd2.js → CPB4vP4H.js} +3 -3
  98. package/web/app/immutable/chunks/{C1N6iAP2.js → CPKMQWOs.js} +1 -1
  99. package/web/app/immutable/chunks/{DghbEZ16.js → CQQbNjsN.js} +1 -1
  100. package/web/app/immutable/chunks/{5m7mNQI1.js → CUL4Iea5.js} +1 -1
  101. package/web/app/immutable/chunks/{QcdWHB0v.js → CUxXMHrG.js} +1 -1
  102. package/web/app/immutable/chunks/{BZklR_B6.js → CW-YFngS.js} +1 -1
  103. package/web/app/immutable/chunks/{BMlW8PWp.js → CXOFOhS1.js} +1 -1
  104. package/web/app/immutable/chunks/{uIpdZ1Gn.js → CX_kUgUI.js} +1 -1
  105. package/web/app/immutable/chunks/{DQ3kuV3H.js → CZmb_yca.js} +1 -1
  106. package/web/app/immutable/chunks/{CXZBvyNr.js → C_Lje1cd.js} +1 -1
  107. package/web/app/immutable/chunks/{CNwVL4wn.js → CaUG7pKp.js} +1 -1
  108. package/web/app/immutable/chunks/{Cd-mRODX.js → CcUMYD8T.js} +1 -1
  109. package/web/app/immutable/chunks/{By74nslt.js → Ce3hxymX.js} +2 -2
  110. package/web/app/immutable/chunks/{ChOLlFah.js → CekmJHGy.js} +3 -3
  111. package/web/app/immutable/chunks/{-IUVo3ff.js → Cf3lvx7n.js} +4 -4
  112. package/web/app/immutable/chunks/{Dx1uQEhV.js → CgthA8iG.js} +1 -1
  113. package/web/app/immutable/chunks/{VVSQHNmC.js → Ch-DGnj6.js} +1 -1
  114. package/web/app/immutable/chunks/{KErKc4MM.js → CjxlVYMT.js} +2 -2
  115. package/web/app/immutable/chunks/{DaOs4JNK.js → CkkCr6dG.js} +1 -1
  116. package/web/app/immutable/chunks/{BB4FgpiZ.js → ClH0Gega.js} +1 -1
  117. package/web/app/immutable/chunks/{DD34O6fm.js → CnodB1ak.js} +24 -24
  118. package/web/app/immutable/chunks/{j3POoRwI.js → Coi6oyYv.js} +1 -1
  119. package/web/app/immutable/chunks/{CxSx5kbz.js → Coq4Q49X.js} +1 -1
  120. package/web/app/immutable/chunks/{BfaGwOq5.js → CqZy0zQ2.js} +1 -1
  121. package/web/app/immutable/chunks/{CqvGUHnF.js → CqzfYhYr.js} +1 -1
  122. package/web/app/immutable/chunks/{D9WJ9yaW.js → CrWhihJ_.js} +1 -1
  123. package/web/app/immutable/chunks/{BGsa1Rn-.js → CsKccV54.js} +1 -1
  124. package/web/app/immutable/chunks/{BtiDRzyn.js → CwDNa5HL.js} +1 -1
  125. package/web/app/immutable/chunks/{DxlsP5Pu.js → CwT6KWlV.js} +4 -4
  126. package/web/app/immutable/chunks/{R_Ru9hwD.js → CwUHwo2Y.js} +1 -1
  127. package/web/app/immutable/chunks/{BzrasdW9.js → Cwvr2VA7.js} +1 -1
  128. package/web/app/immutable/chunks/{BHmRsJkZ.js → CxMGjr-k.js} +1 -1
  129. package/web/app/immutable/chunks/{BZHceihR.js → CyYhxGJX.js} +1 -1
  130. package/web/app/immutable/chunks/{C4s4Sq6j.js → Cyc9AKzR.js} +1 -1
  131. package/web/app/immutable/chunks/{E9kqzP8d.js → CzPYlOCC.js} +1 -1
  132. package/web/app/immutable/chunks/{DRG7DUhO.js → D-l6NLYy.js} +1 -1
  133. package/web/app/immutable/chunks/{uc8QMJUx.js → D1PKFqe0.js} +1 -1
  134. package/web/app/immutable/chunks/{CiLrRXKC.js → D1TT2-Xo.js} +1 -1
  135. package/web/app/immutable/chunks/{BfaHQDJW.js → D2X9xdX0.js} +1 -1
  136. package/web/app/immutable/chunks/{DGs9CA_z.js → D2hrkGhh.js} +1 -1
  137. package/web/app/immutable/chunks/{CGhe-vKv.js → D3BzyAjt.js} +1 -1
  138. package/web/app/immutable/chunks/{B-izwTdw.js → D3UJod5R.js} +2 -2
  139. package/web/app/immutable/chunks/{Mrn_4qcP.js → D4_mjoiz.js} +1 -1
  140. package/web/app/immutable/chunks/{Bfi661u9.js → D4gGvbme.js} +4 -4
  141. package/web/app/immutable/chunks/{C0deMyYN.js → D4iUNFJq.js} +1 -1
  142. package/web/app/immutable/chunks/{Znww69M9.js → D4wRJWJo.js} +1 -1
  143. package/web/app/immutable/chunks/{cX33-fuj.js → D6HxW8tD.js} +1 -1
  144. package/web/app/immutable/chunks/D6VwVF_C.js +1 -0
  145. package/web/app/immutable/chunks/{hCF4Zu9x.js → D6rAyjoF.js} +1 -1
  146. package/web/app/immutable/chunks/{CFpSvOJx.js → D9kdbyS6.js} +1 -1
  147. package/web/app/immutable/chunks/{-oWCrnEw.js → D9u2PK-L.js} +1 -1
  148. package/web/app/immutable/chunks/{BMxLlxet.js → DDuFS2zo.js} +1 -1
  149. package/web/app/immutable/chunks/{CFFiNWgw.js → DEApyfNP.js} +1 -1
  150. package/web/app/immutable/chunks/{4I5A3DRt.js → DEQYPNCO.js} +1 -1
  151. package/web/app/immutable/chunks/{BPZ_JA05.js → DHbLiTwn.js} +1 -1
  152. package/web/app/immutable/chunks/{DuMO6x6m.js → DI8xYaVc.js} +1 -1
  153. package/web/app/immutable/chunks/{_RxuD-W2.js → DKOceApm.js} +1 -1
  154. package/web/app/immutable/chunks/{HXO2zRQJ.js → DKRbyLvF.js} +1 -1
  155. package/web/app/immutable/chunks/{BZpL3F2r.js → DKs0uFks.js} +1 -1
  156. package/web/app/immutable/chunks/{Dzr2-f8u.js → DKzgMUBy.js} +2 -2
  157. package/web/app/immutable/chunks/{m296fjds.js → DLH4F1ED.js} +1 -1
  158. package/web/app/immutable/chunks/{Cdb_pBT1.js → DLIkH-mx.js} +1 -1
  159. package/web/app/immutable/chunks/{P1zH2HLT.js → DN6EDRqv.js} +1 -1
  160. package/web/app/immutable/chunks/{BYpXsiCq.js → DNbEh_Pn.js} +1 -1
  161. package/web/app/immutable/chunks/{CsvSUZwX.js → DOH10_LL.js} +2 -2
  162. package/web/app/immutable/chunks/{DqmvYlsZ.js → DP4V6iDW.js} +1 -1
  163. package/web/app/immutable/chunks/{DNMpoEvN.js → DPcH5rXQ.js} +1 -1
  164. package/web/app/immutable/chunks/{Cueu30DH.js → DQ01F80Q.js} +1 -1
  165. package/web/app/immutable/chunks/{CjS1Cmfi.js → DTT_rauc.js} +1 -1
  166. package/web/app/immutable/chunks/{CS4C4Dqz.js → DU9Ky5os.js} +1 -1
  167. package/web/app/immutable/chunks/{zEbP96sv.js → DUOZnHQ0.js} +4 -4
  168. package/web/app/immutable/chunks/{CzGw49VI.js → DVJxiIYn.js} +1 -1
  169. package/web/app/immutable/chunks/{DetpMFuT.js → DVlQV8vI.js} +1 -1
  170. package/web/app/immutable/chunks/{eqxSNkBq.js → DW0lWqDY.js} +1 -1
  171. package/web/app/immutable/chunks/{DxkncNQp.js → DYxNs3ex.js} +1 -1
  172. package/web/app/immutable/chunks/{k6cZvV27.js → DZHzDies.js} +1 -1
  173. package/web/app/immutable/chunks/{CMG5CVfP.js → DZtzqJzi.js} +1 -1
  174. package/web/app/immutable/chunks/{BmooL5Pj.js → Db6-PdUB.js} +1 -1
  175. package/web/app/immutable/chunks/{DuA0wXTo.js → DbdK0wtE.js} +1 -1
  176. package/web/app/immutable/chunks/{CPE7SIVP.js → Dbp_q6hu.js} +1 -1
  177. package/web/app/immutable/chunks/{D9TgvNHy.js → DcwiOhhA.js} +1 -1
  178. package/web/app/immutable/chunks/{rBb3s3xl.js → DfqK8haP.js} +1 -1
  179. package/web/app/immutable/chunks/{9PMcLe0B.js → DhO5FJJI.js} +1 -1
  180. package/web/app/immutable/chunks/{C7CRtBIe.js → DhUKwJna.js} +1 -1
  181. package/web/app/immutable/chunks/{D6G3HdC8.js → DhWxuzTb.js} +1 -1
  182. package/web/app/immutable/chunks/{Db5vVNPd.js → Dih9qRTv.js} +1 -1
  183. package/web/app/immutable/chunks/{CMcMoJJq.js → Dj3ZrCzO.js} +1 -1
  184. package/web/app/immutable/chunks/{1kPFR2jr.js → DjbBeQRM.js} +1 -1
  185. package/web/app/immutable/chunks/{bYaMqcEY.js → DklZSLh2.js} +1 -1
  186. package/web/app/immutable/chunks/{BotBkFiN.js → Dn2BQOth.js} +1 -1
  187. package/web/app/immutable/chunks/{SrhdBdnO.js → DoYFP432.js} +1 -1
  188. package/web/app/immutable/chunks/{CjsTzCaF.js → DpUWgmrg.js} +1 -1
  189. package/web/app/immutable/chunks/{BEA1dP-Y.js → DqcBqbDI.js} +1 -1
  190. package/web/app/immutable/chunks/{BG2eX09y.js → Dr9VLQ7a.js} +1 -1
  191. package/web/app/immutable/chunks/{C7fHSR36.js → DtL2rtM8.js} +1 -1
  192. package/web/app/immutable/chunks/{BnsQkZ2z.js → DvFUmkR8.js} +1 -1
  193. package/web/app/immutable/chunks/{CLqD3xZb.js → DvTOURZI.js} +1 -1
  194. package/web/app/immutable/chunks/{Bkff-hvs.js → DvyKNoGC.js} +1 -1
  195. package/web/app/immutable/chunks/{BqRBAXUd.js → DwrUEXuQ.js} +3 -3
  196. package/web/app/immutable/chunks/DzyUo7pt.js +1 -0
  197. package/web/app/immutable/chunks/{C4EqZepj.js → EOsEsFiT.js} +1 -1
  198. package/web/app/immutable/chunks/{BKJdB-rj.js → EbS0dv8R.js} +1 -1
  199. package/web/app/immutable/chunks/{DxdbljsN.js → GRe-AQYA.js} +1 -1
  200. package/web/app/immutable/chunks/{CJl18r_J.js → GXoNce_4.js} +1 -1
  201. package/web/app/immutable/chunks/{CyhyGZAH.js → LdVrshUq.js} +2 -2
  202. package/web/app/immutable/chunks/{BwPpu-bL.js → LxLcg7tj.js} +1 -1
  203. package/web/app/immutable/chunks/M1o9ycAe.js +4 -0
  204. package/web/app/immutable/chunks/{P2s61dnl.js → MA6Nl0OX.js} +1 -1
  205. package/web/app/immutable/chunks/{tcnXcM0S.js → MQ537-MV.js} +1 -1
  206. package/web/app/immutable/chunks/{DmY0GWNY.js → Mc93eSxl.js} +1 -1
  207. package/web/app/immutable/chunks/{DhUnCLhA.js → NDjLJa7E.js} +1 -1
  208. package/web/app/immutable/chunks/{BqOOOgy5.js → Q9dh-ELL.js} +1 -1
  209. package/web/app/immutable/chunks/{B9wI8Jqn.js → SWyKEy91.js} +1 -1
  210. package/web/app/immutable/chunks/{CpB9-pxF.js → TPdIgwsT.js} +2 -2
  211. package/web/app/immutable/chunks/{-_IhnrUG.js → U5yX75Fv.js} +1 -1
  212. package/web/app/immutable/chunks/{D3e1E0pH.js → VpmaCPqv.js} +3 -3
  213. package/web/app/immutable/chunks/{a48W8e3q.js → XuyckbH_.js} +1 -1
  214. package/web/app/immutable/chunks/Y9-4hTF9.js +1 -0
  215. package/web/app/immutable/chunks/{Dsq9SKtm.js → ZKiqJWPE.js} +1 -1
  216. package/web/app/immutable/chunks/{BCjermhu.js → _dg-9BeG.js} +1 -1
  217. package/web/app/immutable/chunks/aos1n-nT.js +4 -0
  218. package/web/app/immutable/chunks/{fPgojm2p.js → baJQH4o5.js} +1 -1
  219. package/web/app/immutable/chunks/{Bs7Hg6Iw.js → cFbB-5Cu.js} +1 -1
  220. package/web/app/immutable/chunks/{DTTdoBjw.js → cw0Fy9sQ.js} +1 -1
  221. package/web/app/immutable/chunks/{BcLSwxTf.js → ddhULx4L.js} +1 -1
  222. package/web/app/immutable/chunks/{C1c28WNI.js → fqYOWiI-.js} +1 -1
  223. package/web/app/immutable/chunks/{C-6Vv_Md.js → hUKBOWr5.js} +1 -1
  224. package/web/app/immutable/chunks/{8-yHkkqV.js → jSRaMDVY.js} +1 -1
  225. package/web/app/immutable/chunks/{BD_lDepV.js → jdYPqvvP.js} +2 -2
  226. package/web/app/immutable/chunks/{DN_Lq29a.js → l8NmpVqL.js} +1 -1
  227. package/web/app/immutable/chunks/{BjCpOU4b.js → mdG_8hzH.js} +1 -1
  228. package/web/app/immutable/chunks/{DR-bu7f0.js → mli93Dcp.js} +1 -1
  229. package/web/app/immutable/chunks/{rISNYNCE.js → n8cz4x1y.js} +1 -1
  230. package/web/app/immutable/chunks/{DSU9ZcQ0.js → o6NTBM2j.js} +1 -1
  231. package/web/app/immutable/chunks/{CNOSe0wO.js → pBUZ5yOz.js} +1 -1
  232. package/web/app/immutable/chunks/{C9u4tXUT.js → poVs4JlU.js} +1 -1
  233. package/web/app/immutable/chunks/{zqCR6Knb.js → q6hitSEG.js} +1 -1
  234. package/web/app/immutable/chunks/{_5Vv4dkf.js → rt8UAcU5.js} +1 -1
  235. package/web/app/immutable/chunks/{C4xNNtUj.js → tU_ZJtMw.js} +1 -1
  236. package/web/app/immutable/chunks/{DMtABnLi.js → urgjvk31.js} +1 -1
  237. package/web/app/immutable/chunks/{CzGRX-SL.js → wz6AT1mX.js} +1 -1
  238. package/web/app/immutable/entry/{app.Dg3CVjdE.js → app.BTU46CGQ.js} +3 -3
  239. package/web/app/immutable/entry/start.VeHGe5l7.js +1 -0
  240. package/web/app/immutable/nodes/{0.mr7Lr8Nh.js → 0.Ci7PVT_k.js} +1 -1
  241. package/web/app/immutable/nodes/{1.rfzchHhR.js → 1.BR59lUe8.js} +1 -1
  242. package/web/app/immutable/nodes/{10.D4xVtSvV.js → 10.DgX_PEe_.js} +1 -1
  243. package/web/app/immutable/nodes/{11.Bl5UwrS9.js → 11.CtUvalit.js} +1 -1
  244. package/web/app/immutable/nodes/{12.CUp8k2-A.js → 12.BEzNSZ5P.js} +1 -1
  245. package/web/app/immutable/nodes/{13.Ch9aZ9Uv.js → 13.sp2ZZVeV.js} +3 -3
  246. package/web/app/immutable/nodes/{14.Bjuagqn-.js → 14.C7X_5Bue.js} +3 -3
  247. package/web/app/immutable/nodes/{15.Cto8qDz0.js → 15.DxqMZDdK.js} +1 -1
  248. package/web/app/immutable/nodes/{16.SivUu1Ma.js → 16.C_vshDQR.js} +1 -1
  249. package/web/app/immutable/nodes/{17.Chj8J0QC.js → 17.BtrKoac8.js} +1 -1
  250. package/web/app/immutable/nodes/{18.D_tnQyvk.js → 18.B3AoO6j9.js} +2 -2
  251. package/web/app/immutable/nodes/{2.WfgNcNo2.js → 2.DlWTJs6C.js} +6 -6
  252. package/web/app/immutable/nodes/{3.D4wTMvE8.js → 3.DTgoPy4s.js} +1 -1
  253. package/web/app/immutable/nodes/{4.ZitfbCkz.js → 4.DSkknvUk.js} +1 -1
  254. package/web/app/immutable/nodes/{5.BFEJ_NR_.js → 5.pRTuZIBK.js} +1 -1
  255. package/web/app/immutable/nodes/{6.Bkj3ggYn.js → 6.IXz7usII.js} +1 -1
  256. package/web/app/immutable/nodes/{7.Cz8EbGz5.js → 7.-QsdIQf6.js} +1 -1
  257. package/web/app/immutable/nodes/{8.gF00dlat.js → 8.s2ERF-BG.js} +4 -4
  258. package/web/app/immutable/nodes/{9.COG4Nc0F.js → 9.CzyfEfdP.js} +5 -5
  259. package/web/app/version.json +1 -1
  260. package/web/generated/paraglide.js +49 -49
  261. package/web/index.html +18 -18
  262. package/web/app/immutable/chunks/BKW86yq_.js +0 -1
  263. package/web/app/immutable/chunks/BZvAKLUn.js +0 -1
  264. package/web/app/immutable/chunks/BjFh2SH5.js +0 -1
  265. package/web/app/immutable/chunks/BtwtItRa.js +0 -4
  266. package/web/app/immutable/chunks/D1jZIoRI.js +0 -1
  267. package/web/app/immutable/chunks/DnBFSw4A.js +0 -4
  268. package/web/app/immutable/chunks/O7PQPM4V.js +0 -1
  269. package/web/app/immutable/entry/start.51bhhgUY.js +0 -1
@@ -1 +1 @@
1
- import{p as e}from"./Bs7Hg6Iw.js";import{p as t}from"./XJv96NUg.js";const o=[{id:"label-state-matrix",title:"Label states",states:["default","rest","hover","focus","error","required","optional","disabled","long-content","compact","zoom-200","light","dark"],themes:["light","dark","high-contrast"],viewport:"both"}];e({id:"label",source:"src/lib/components/ui/label/label.svelte",publicImport:"$lib/components/ui/label",legacyImports:[],exports:["Label","labelMetadata"],category:"primitive",owner:"007-B2",callers:["src/features/collaboration-auth/renderer/CollaborationSignInModal.svelte","src/features/host-membership/HostInvitationDialog.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/component-catalog/renderers/FieldPreviewCell.svelte","src/lib/component-catalog/renderers/ModalCatalogPreview.svelte","src/lib/components/GitLabConnectForm.svelte","src/lib/components/chat/secrets/SecretRequestCard.svelte","src/lib/components/debug/DebugPanel.svelte","src/lib/components/modals/InputDialog.svelte","src/lib/components/modals/ShareWorkspaceDialog.svelte","src/lib/components/modals/modal-polish.preview.svelte","src/lib/components/patterns/confirm/ConfirmRequestView.svelte","src/lib/components/patterns/form/FormField.svelte","src/lib/components/patterns/settings/SettingsFieldRow.svelte","src/lib/components/patterns/settings/custom-controls.ts","src/lib/components/workspace/initializer/AddRemoteSetupModal.svelte","src/lib/components/workspace/initializer/SetupScriptTrigger.svelte","src/lib/components/workspace/sidebar/context-picker/BrowserUrlPicker.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/label/label.test.ts",removalGate:"Retain while exported and association and fixture tests pass.",dynamicImports:[],fixtures:o});const s=[{id:"content-dialog",title:"Content dialog",states:["reading","progress","error","long-content"],themes:["light","dark"],viewport:"both"},{id:"confirm-service",title:"Confirm service",states:["confirm","prompt","alert","queued","busy","reduced-motion"],themes:["light","dark","high-contrast"],viewport:"both",reducedMotion:!0},{id:"form-dialog",title:"Form dialog",states:["default","busy","invalid"],themes:["light","dark"],viewport:"both"},{id:"destructive-confirm",title:"Destructive confirm",states:["default","busy"],themes:["light","dark"],viewport:"both"}];t({id:"confirm",source:"src/lib/components/patterns/confirm/index.ts",publicImport:"$lib/components/patterns/confirm",exports:["ConfirmHost","ConfirmRequestView","DestructiveConfirm","FormDialog","ContentDialog","alert","confirm","prompt"],owner:"design-system",fixtures:s,useWhen:["Blocking an action until the user confirms, enters one value, or acknowledges a message.","Building a dialog whose content is a form with standard actions.","Showing a selection, progress/result, or reading dialog with shared layout and focus ownership."],dontUseWhen:["Reporting non-blocking status; use the notification service instead.","Building a multi-step flow; use a dedicated screen or wizard composition."],replaces:["Browser confirm, prompt, and alert APIs.","InputDialog, MessageDialog, and one-off destructive confirmation markup."]});
1
+ import{p as e}from"./cFbB-5Cu.js";import{p as t}from"./XJv96NUg.js";const o=[{id:"label-state-matrix",title:"Label states",states:["default","rest","hover","focus","error","required","optional","disabled","long-content","compact","zoom-200","light","dark"],themes:["light","dark","high-contrast"],viewport:"both"}];e({id:"label",source:"src/lib/components/ui/label/label.svelte",publicImport:"$lib/components/ui/label",legacyImports:[],exports:["Label","labelMetadata"],category:"primitive",owner:"007-B2",callers:["src/features/collaboration-auth/renderer/CollaborationSignInModal.svelte","src/features/host-membership/HostInvitationDialog.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/component-catalog/renderers/FieldPreviewCell.svelte","src/lib/component-catalog/renderers/ModalCatalogPreview.svelte","src/lib/components/GitLabConnectForm.svelte","src/lib/components/chat/secrets/SecretRequestCard.svelte","src/lib/components/debug/DebugPanel.svelte","src/lib/components/modals/InputDialog.svelte","src/lib/components/modals/ShareWorkspaceDialog.svelte","src/lib/components/modals/modal-polish.preview.svelte","src/lib/components/patterns/confirm/ConfirmRequestView.svelte","src/lib/components/patterns/form/FormField.svelte","src/lib/components/patterns/settings/SettingsFieldRow.svelte","src/lib/components/patterns/settings/custom-controls.ts","src/lib/components/workspace/initializer/AddRemoteSetupModal.svelte","src/lib/components/workspace/initializer/SetupScriptTrigger.svelte","src/lib/components/workspace/sidebar/context-picker/BrowserUrlPicker.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/label/label.test.ts",removalGate:"Retain while exported and association and fixture tests pass.",dynamicImports:[],fixtures:o});const s=[{id:"content-dialog",title:"Content dialog",states:["reading","progress","error","long-content"],themes:["light","dark"],viewport:"both"},{id:"confirm-service",title:"Confirm service",states:["confirm","prompt","alert","queued","busy","reduced-motion"],themes:["light","dark","high-contrast"],viewport:"both",reducedMotion:!0},{id:"form-dialog",title:"Form dialog",states:["default","busy","invalid"],themes:["light","dark"],viewport:"both"},{id:"destructive-confirm",title:"Destructive confirm",states:["default","busy"],themes:["light","dark"],viewport:"both"}];t({id:"confirm",source:"src/lib/components/patterns/confirm/index.ts",publicImport:"$lib/components/patterns/confirm",exports:["ConfirmHost","ConfirmRequestView","DestructiveConfirm","FormDialog","ContentDialog","alert","confirm","prompt"],owner:"design-system",fixtures:s,useWhen:["Blocking an action until the user confirms, enters one value, or acknowledges a message.","Building a dialog whose content is a form with standard actions.","Showing a selection, progress/result, or reading dialog with shared layout and focus ownership."],dontUseWhen:["Reporting non-blocking status; use the notification service instead.","Building a multi-step flow; use a dedicated screen or wizard composition."],replaces:["Browser confirm, prompt, and alert APIs.","InputDialog, MessageDialog, and one-off destructive confirmation markup."]});
@@ -1 +1 @@
1
- import{d as p}from"./Cdb_pBT1.js";import{J as s,H as l}from"./BD_lDepV.js";import{selectScriptOutput as o,selectScriptById as f,selectCanReadScriptDefinition as m}from"./BotBkFiN.js";async function a(i,t,e,r=100){const n=s(o.select(i,t,e)).slice(-r);if(!t||!e)return n;const u=f.select(i,t,e);if(!m.select(i,t,u))return[];try{const c=l(await p.scripts.output(t,e,r));return c.length>0?c.slice(-r):n}catch{return n}}export{a as readScriptContextOutputLines};
1
+ import{d as p}from"./DLIkH-mx.js";import{J as s,H as l}from"./jdYPqvvP.js";import{selectScriptOutput as o,selectScriptById as f,selectCanReadScriptDefinition as m}from"./Dn2BQOth.js";async function a(i,t,e,r=100){const n=s(o.select(i,t,e)).slice(-r);if(!t||!e)return n;const u=f.select(i,t,e);if(!m.select(i,t,u))return[];try{const c=l(await p.scripts.output(t,e,r));return c.length>0?c.slice(-r):n}catch{return n}}export{a as readScriptContextOutputLines};
@@ -1,4 +1,4 @@
1
- import{b as o,W as pt,x as nt,am as Wt,an as Rt,au as Pt,H as Bt,X as ft,ay as E,aX as Vt,aH as Ft,b3 as yt,aW as U,d as ct,_ as zt,y as Ot,r as Gt}from"./Bfi661u9.js";var tt=(function(){var e=o(function(k,a,d,l){for(d=d||{},l=k.length;l--;d[k[l]]=a);return d},"o"),t=[6,11,13,14,15,17,19,20,23,24],s=[1,12],r=[1,13],n=[1,14],h=[1,15],c=[1,16],i=[1,19],y=[1,20],p={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:o(function(a,d,l,g,x,u,S){var v=u.length-1;switch(x){case 1:return u[v-1];case 3:g.setDirection("LR");break;case 4:g.setDirection("TD");break;case 5:this.$=[];break;case 6:u[v-1].push(u[v]),this.$=u[v-1];break;case 7:case 8:this.$=u[v];break;case 9:case 10:this.$=[];break;case 11:g.getCommonDb().setDiagramTitle(u[v].substr(6)),this.$=u[v].substr(6);break;case 12:this.$=u[v].trim(),g.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=u[v].trim(),g.getCommonDb().setAccDescription(this.$);break;case 15:g.addSection(u[v].substr(8)),this.$=u[v].substr(8);break;case 18:g.addTask(u[v],0,""),this.$=u[v];break;case 19:g.addEvent(u[v].substr(2)),this.$=u[v];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(t,[2,5],{5:6}),e(t,[2,2]),e(t,[2,3]),e(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:s,15:r,17:n,19:h,20:c,21:17,22:18,23:i,24:y},e(t,[2,10],{1:[2,1]}),e(t,[2,6]),{12:21,14:s,15:r,17:n,19:h,20:c,21:17,22:18,23:i,24:y},e(t,[2,8]),e(t,[2,9]),e(t,[2,11]),{16:[1,22]},{18:[1,23]},e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,7]),e(t,[2,12]),e(t,[2,13])],defaultActions:{},parseError:o(function(a,d){if(d.recoverable)this.trace(a);else{var l=new Error(a);throw l.hash=d,l}},"parseError"),parse:o(function(a){var d=this,l=[0],g=[],x=[null],u=[],S=this.table,v="",I=0,C=0,R=2,O=1,L=u.slice.call(arguments,1),w=Object.create(this.lexer),H={yy:{}};for(var V in this.yy)Object.prototype.hasOwnProperty.call(this.yy,V)&&(H.yy[V]=this.yy[V]);w.setInput(a,H.yy),H.yy.lexer=w,H.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var F=w.yylloc;u.push(F);var K=w.options&&w.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function N(A){l.length=l.length-2*A,x.length=x.length-A,u.length=u.length-A}o(N,"popStack");function b(){var A;return A=g.pop()||w.lex()||O,typeof A!="number"&&(A instanceof Array&&(g=A,A=g.pop()),A=d.symbols_[A]||A),A}o(b,"lex");for(var _,$,T,P,W={},G,B,Z,j;;){if($=l[l.length-1],this.defaultActions[$]?T=this.defaultActions[$]:((_===null||typeof _>"u")&&(_=b()),T=S[$]&&S[$][_]),typeof T>"u"||!T.length||!T[0]){var Y="";j=[];for(G in S[$])this.terminals_[G]&&G>R&&j.push("'"+this.terminals_[G]+"'");w.showPosition?Y="Parse error on line "+(I+1)+`:
1
+ import{b as o,W as pt,x as nt,am as Wt,an as Rt,au as Pt,H as Bt,X as ft,ay as E,aX as Vt,aH as Ft,b3 as yt,aW as U,d as ct,_ as zt,y as Ot,r as Gt}from"./D4gGvbme.js";var tt=(function(){var e=o(function(k,a,d,l){for(d=d||{},l=k.length;l--;d[k[l]]=a);return d},"o"),t=[6,11,13,14,15,17,19,20,23,24],s=[1,12],r=[1,13],n=[1,14],h=[1,15],c=[1,16],i=[1,19],y=[1,20],p={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:o(function(a,d,l,g,x,u,S){var v=u.length-1;switch(x){case 1:return u[v-1];case 3:g.setDirection("LR");break;case 4:g.setDirection("TD");break;case 5:this.$=[];break;case 6:u[v-1].push(u[v]),this.$=u[v-1];break;case 7:case 8:this.$=u[v];break;case 9:case 10:this.$=[];break;case 11:g.getCommonDb().setDiagramTitle(u[v].substr(6)),this.$=u[v].substr(6);break;case 12:this.$=u[v].trim(),g.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=u[v].trim(),g.getCommonDb().setAccDescription(this.$);break;case 15:g.addSection(u[v].substr(8)),this.$=u[v].substr(8);break;case 18:g.addTask(u[v],0,""),this.$=u[v];break;case 19:g.addEvent(u[v].substr(2)),this.$=u[v];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(t,[2,5],{5:6}),e(t,[2,2]),e(t,[2,3]),e(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:s,15:r,17:n,19:h,20:c,21:17,22:18,23:i,24:y},e(t,[2,10],{1:[2,1]}),e(t,[2,6]),{12:21,14:s,15:r,17:n,19:h,20:c,21:17,22:18,23:i,24:y},e(t,[2,8]),e(t,[2,9]),e(t,[2,11]),{16:[1,22]},{18:[1,23]},e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,7]),e(t,[2,12]),e(t,[2,13])],defaultActions:{},parseError:o(function(a,d){if(d.recoverable)this.trace(a);else{var l=new Error(a);throw l.hash=d,l}},"parseError"),parse:o(function(a){var d=this,l=[0],g=[],x=[null],u=[],S=this.table,v="",I=0,C=0,R=2,O=1,L=u.slice.call(arguments,1),w=Object.create(this.lexer),H={yy:{}};for(var V in this.yy)Object.prototype.hasOwnProperty.call(this.yy,V)&&(H.yy[V]=this.yy[V]);w.setInput(a,H.yy),H.yy.lexer=w,H.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var F=w.yylloc;u.push(F);var K=w.options&&w.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function N(A){l.length=l.length-2*A,x.length=x.length-A,u.length=u.length-A}o(N,"popStack");function b(){var A;return A=g.pop()||w.lex()||O,typeof A!="number"&&(A instanceof Array&&(g=A,A=g.pop()),A=d.symbols_[A]||A),A}o(b,"lex");for(var _,$,T,P,W={},G,B,Z,j;;){if($=l[l.length-1],this.defaultActions[$]?T=this.defaultActions[$]:((_===null||typeof _>"u")&&(_=b()),T=S[$]&&S[$][_]),typeof T>"u"||!T.length||!T[0]){var Y="";j=[];for(G in S[$])this.terminals_[G]&&G>R&&j.push("'"+this.terminals_[G]+"'");w.showPosition?Y="Parse error on line "+(I+1)+`:
2
2
  `+w.showPosition()+`
3
3
  Expecting `+j.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Y="Parse error on line "+(I+1)+": Unexpected "+(_==O?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Y,{text:w.match,token:this.terminals_[_]||_,line:w.yylineno,loc:F,expected:j})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+_);switch(T[0]){case 1:l.push(_),x.push(w.yytext),u.push(w.yylloc),l.push(T[1]),_=null,C=w.yyleng,v=w.yytext,I=w.yylineno,F=w.yylloc;break;case 2:if(B=this.productions_[T[1]][1],W.$=x[x.length-B],W._$={first_line:u[u.length-(B||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(B||1)].first_column,last_column:u[u.length-1].last_column},K&&(W._$.range=[u[u.length-(B||1)].range[0],u[u.length-1].range[1]]),P=this.performAction.apply(W,[v,C,I,H.yy,T[1],x,u].concat(L)),typeof P<"u")return P;B&&(l=l.slice(0,-1*B*2),x=x.slice(0,-1*B),u=u.slice(0,-1*B)),l.push(this.productions_[T[1]][0]),x.push(W.$),u.push(W._$),Z=S[l[l.length-2]][l[l.length-1]],l.push(Z);break;case 3:return!0}}return!0},"parse")},m=(function(){var k={EOF:1,parseError:o(function(d,l){if(this.yy.parser)this.yy.parser.parseError(d,l);else throw new Error(d)},"parseError"),setInput:o(function(a,d){return this.yy=d||this.yy||{},this._input=a,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 a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var d=a.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:o(function(a){var d=a.length,l=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var g=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),l.length-1&&(this.yylineno-=l.length-1);var x=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:l?(l.length===g.length?this.yylloc.first_column:0)+g[g.length-l.length].length-l[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-d]),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(a){this.unput(this.match.slice(a))},"less"),pastInput:o(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var a=this.pastInput(),d=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
@@ -1,2 +1,2 @@
1
- import{O as G,g as j,ao as Q,al as V,aw as z,p as X,a as J}from"./BB4FgpiZ.js";import{Iz as l,nw as h,nx as R,II as N,be as T,Y,nj as _,rb as H,rx as $,k2 as Z,rv as C,I_ as O,qS as ee,fE as q,rc as P,_ as te,bc as ne,g as se}from"./C4xNNtUj.js";import{z as x,aB as oe,v as ie}from"./BtwtItRa.js";import{g as F}from"./DypB-Dwi.js";const re=["[WORKSPACE EVENTS]","[TASK WAKE]","[AGENT MESSAGE]"];function ae(e){const t=e.metadata;if(t&&typeof t=="object"){if(t.type==="question_answers")return!1;if(!G(t))return!0}const n=j(e);return re.some(s=>n.startsWith(s))}const K=1440*60*1e3;function ce(e){let t=null;for(const n of e){if(ae({id:n.id,timestamp:n.createdAt,metadata:n.metadata,contentBlocks:[{type:"text",text:n.preview.trimStart()}]}))continue;const s=Date.parse(n.createdAt);Number.isFinite(s)&&(t===null||s>t)&&(t=s)}return t}const de=50,le=20;function W(e,t){return e===null||t!==null&&t>e?t:e}async function Ce(e,t){let n,s=null;for(let o=0;o<le;o++){const i=await e({limit:de,nextToken:n});if(!i.ok)return null;const a=i.items;s===null&&a.length>0&&(s=a[a.length-1].id);const d=t?.newestId!=null?a.findIndex(c=>c.id===t.newestId):-1,r=ce(d>=0?a.slice(d+1):a);if(d>=0)return{latest:W(r,t?.latest??null),newestId:s};if(r!==null)return{latest:W(r,t?.latest??null),newestId:s};if(typeof i.nextToken!="string")return{latest:null,newestId:s};n=i.nextToken}return{latest:t?.latest??null,newestId:s}}function ue(e,t){return e!=null&&e<=t&&e>t-K}function ge(e,t){return e!=null&&Number.isFinite(e)&&e>0&&e<=t-K}function fe(e,t){const{workspaceId:n,agentId:s,authority:o,nativePairId:i,evidence:a}=e;if(!n||!s||!o||o!==t)return null;const d=JSON.stringify([n,s]);if(i!==d||a?.id!==d)return null;const r=a.clips.find(c=>c.status==="recording");return!r||r.discarding||!Number.isFinite(r.startedAt)||!Number.isFinite(r.pausedMs??0)||r.pausedAt!=null&&!Number.isFinite(r.pausedAt)?null:{workspaceId:n,agentId:s,clipId:r.id,startedAt:r.startedAt,pausedAt:r.pausedAt??null,pausedMs:r.pausedMs??0}}function We(e,t){return t!==void 0&&e!==t?"ignore":e?"stop":"start"}const De=l.createSelector(e=>{const t=e.dockConversation,n=t.workspaceId&&t.agentId?JSON.stringify([t.workspaceId,t.agentId]):null;return fe({workspaceId:t.workspaceId,agentId:t.agentId,authority:t.authority,nativePairId:t.nativeSpeech.pairId,evidence:n?h(t.evidence,n):null},F(e))});l.createSelector(e=>e.hud.active);l.createSelector(e=>e.hud.feed);l.createSelector(e=>e.hud.usage);l.createSelector(e=>e.hud.usageError);const Ee=l.createSelector(e=>e.hud.rateHistory),Ne=l.createSelector(e=>R(e.workspace.workspaces)),He=l.createSelector(e=>{const t=e.hud.usage?.totals;return t?N(t):0}),qe=l.createSelector(e=>e.hud.burnRatePerMin),Pe=l.createSelector(e=>e.hud.burnTrend),xe=l.createSelector(e=>{const{health:t,stats:n,lastUpdated:s,hostLocality:o}=e.daemonHealth,i=n?.hostname;return{online:t!=="down",uptimeSeconds:typeof n?.uptimeSeconds=="number"?n.uptimeSeconds:null,version:n?.version??null,fetchedAtMs:s?Date.parse(s):null,remoteHostname:o==="remote"&&i?i.split(".",1)[0]??i:null}}),Fe=l.createSelector(e=>e.hud.gridFilter);l.createSelector(e=>e.hud.attentionByWorkspaceId);const Ke=l.createSelector((e,t)=>{const n=e.hud?.questionsByAgentId?.[t];if(!n)return!1;const s=e.agentSessions?.byAgentId[t]?.metadata??{};return!x(s,n.messageId)}),Le=l.createSelector(e=>e.hud.takeoverRequestWorkspaceId);function pe(e,t){return t[String(e.id)]??e.displayStatus}const S=l.createSelector(e=>{const t=e.hud.displayStatusByWorkspaceId;return R(e.workspace.workspaces).filter(n=>n.status!==T.Archived&&n.status!==T.Retired&&n.status!==T.Deleted).map(n=>{const s=pe(n,t);return s&&s!==n.displayStatus?{...n,displayStatus:s}:n})});function I(e){const t=e.agentSummary;return!t||!Array.isArray(t.agents)?[]:t.agents.filter(n=>!!n&&typeof n=="object"&&typeof n.id=="string"&&n.status!=="deleted"&&!ie(n.id))}const Ue=l.createSelector(e=>{const t=Object.fromEntries(Y.map(n=>[n,0]));for(const n of S.select(e))for(const s of I(n))t[y(e,s).bucket]+=1;return t}),Ge=l.createSelector(e=>{const t={idle:0,unread:0,progress:0,attention:0,waiting:0,prOpen:0,prMerged:0,failed:0,completed:0,total:0};for(const n of B.select(e))switch(t.total+=1,n.isUnread&&(t.unread+=1),n.isWaiting&&(t.waiting+=1),n.stateKey){case"wait":case"blocked":t.attention+=1;break;case"failed":t.failed+=1;break;case"in_progress":t.progress+=1;break;case"complete":t.completed+=1;break;case"pr_open":case"pr_ready":case"pr_queued":t.prOpen+=1;break;case"pr_merged":t.prMerged+=1;break;default:t.idle+=1}return t}),ke=l.createSelector(e=>{const t={};for(const n of S.select(e))for(const s of I(n))typeof s.name=="string"&&s.name.length>0&&(t[s.id]=s.name);return t});function D(e){if(!e.sinceTs)return 0;const t=Date.parse(e.sinceTs);return Number.isFinite(t)?t:0}const je=l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId,n=e.hud.questionsByAgentId,s=[];for(const o of S.select(e)){const i=String(o.id);let a=!1;for(const r of b(o,e)){const{bucket:c,attentionKind:u,hasQuestion:g}=r;if(c!=="needs-attention"&&c!=="failed"||!r.topLevel||r.isBackground||A(e,r.id))continue;const k=g?n[r.id]:void 0,f=u?_(e.agentSessions?.byAgentId[r.id])?.reason:void 0,p=k?"question":u??void 0;s.push({workspaceId:i,workspaceTitle:o.title,kind:c==="needs-attention"?"agent_waiting":"agent_failed",...c==="needs-attention"&&p?{signal:p}:{},agentName:r.name,message:k?.question??f??null,sinceTs:r.lastActivityTs}),a=!0}const d=t[i];d&&H(d.attention)&&(s.push({workspaceId:i,workspaceTitle:o.title,kind:"workspace_attention",attention:d.attention,message:null,sinceTs:d.raisedAtTs}),a=!0),L.has(w(o))&&!a&&s.push({workspaceId:i,workspaceTitle:o.title,kind:"workspace_attention",message:null,sinceTs:null})}return s.sort((o,i)=>D(i)-D(o))}),Qe=l.createSelector(e=>{const t=ke.select(e);return e.hud.feed.map(n=>({...n,workspaceTitle:h(e.workspace.workspaces,n.source)?.title??null,resolvedAgentName:n.agentName??(n.agentId?t[n.agentId]??null:null)}))}),Se={total:0,completed:0,inProgress:0};function w(e){const t=$(e.displayStatus)?e.displayStatus:"not_started";return Z(t)??"not_started"}const L=new Set(["wait","blocked","failed"]);function Ae(e,t,n){if(t==="failed"){const o=n.find(a=>a.bucket==="failed"&&!A(e,a.id)),i=o?e.agentSessions?.byAgentId[o.id]?.stopReason:null;return{kind:"failed",text:typeof i=="string"&&i.length>0?i:""}}if(t!=="wait"&&t!=="blocked")return null;const s=n.filter(o=>o.topLevel&&!o.isBackground&&!A(e,o.id));for(const o of s){if(!o.hasQuestion)continue;const i=e.hud.questionsByAgentId[o.id];if(i?.question)return{kind:"question",text:i.question}}for(const o of["blocker","discussion"])for(const i of s){if(i.attentionKind!==o)continue;const a=e.agentSessions?.byAgentId[i.id],d=_(a)?.reason;if(d)return{kind:o,text:d}}return{kind:"pending",text:""}}const m=new Set(["running","needs-attention","failed"]);function E(e){const t=typeof e.lastActivity=="string"?Date.parse(e.lastActivity):NaN;return Number.isFinite(t)?t:-1/0}function he(e){const t=n=>{const s=e.get(n.id)?.bucket;return s!==void 0&&m.has(s)?0:1};return(n,s)=>{const o=n.specialist==="spec-writer",i=s.specialist==="spec-writer";if(o!==i)return o?-1:1;const a=t(n)-t(s);if(a!==0)return a;const d=E(n),r=E(s);return d!==r?r-d:n.id<s.id?-1:n.id>s.id?1:0}}function me(e,t){const n=new Set(e.map(r=>r.id)),s=new Map,o=[];for(const r of e){const c=typeof r.parentAgentId=="string"&&r.parentAgentId!==r.id&&n.has(r.parentAgentId)?r.parentAgentId:null;if(c){const u=s.get(c)??[];u.push(r),s.set(c,u)}else o.push(r)}o.sort(t);for(const r of s.values())r.sort(t);const i=[],a=new Set,d=(r,c,u)=>{if(!a.has(r.id)){a.add(r.id),i.push({info:r,depth:c,parentAgentId:u});for(const g of s.get(r.id)??[])d(g,c+1,r.id)}};for(const r of o)d(r,0,null);for(const r of e)d(r,0,null);return i}function y(e,t){const n=e.agentSessions?.byAgentId[t.id],s=n?.metadata??{},o=n?_(n)?.kind??null:null,i=n?Q.select(e,t.id)||typeof n.status=="string"&&C(n.status):C(t.status),a=n?O(typeof n.status=="string"?n.status:t.status):null,d=!!n&&a!=="failed"&&a!=="done"&&(n.isWaitingForOtherAgents===!0||Array.isArray(n.waitingForAgentIds)&&n.waitingForAgentIds.length>0||Array.isArray(n.waitingOnHooks)&&n.waitingOnHooks.length>0||Array.isArray(n.waitingOnPrMonitors)&&n.waitingOnPrMonitors.length>0||Array.isArray(n.waitingOnScriptMonitors)&&n.waitingOnScriptMonitors.length>0),r=!!n&&(n.turnInFlight===!0||n.liveTurnOpen===!0);let c;n?d&&!r&&n.isStreaming!==!0&&n.isProcessing!==!0?c="idle":V.select(e,t.id)?c="running":i?c="idle":c=O(typeof n.status=="string"?n.status:t.status):c=t.isResponding===!0||t.isStreaming===!0?"running":O(t.status);const u=e.hud.questionsByAgentId[t.id],g=c!=="failed"&&!!u&&!x(s,u.messageId);return{bucket:c==="failed"?"failed":o!==null||g?"needs-attention":c,attentionKind:o,hasQuestion:g,isRunning:c==="running"}}function U(e,t){const n=o=>typeof o=="string"&&o!==e.id?o:null,s=o=>({isBackground:o?.isBackground,createdByAgentId:n(o?.createdByAgentId)});return{parentAgentId:n(e.parentAgentId)??n(t?.parentAgentId),isBackground:e.isBackground??t?.isBackground,metadata:s(t?.metadata),agentMetadata:s(t?.agentMetadata)}}function A(e,t){return e.agentSessions?.byAgentId[t]?.notificationsMuted===!0}function ye(e){if(!e)return null;switch(e.kind){case"attention":return e.attention.reason??null;case"live-tool":case"last-tool":{const t=J(e.toolUse.name,e.toolUse.input||{});return t.hidden?null:[t.verb,t.subject,t.path].filter(Boolean).join(" ").trim()||null}default:{const t=e.text||"";return t?t.includes(`
2
- `)?X(t)||null:t:null}}}function b(e,t){const n=I(e),s=new Map(n.map(i=>[i.id,y(t,i)]));return me(n,he(s)).map(({info:i,depth:a,parentAgentId:d})=>{const r=t.agentSessions?.byAgentId[i.id],c=U(i,r),{bucket:u,attentionKind:g,hasQuestion:k}=s.get(i.id)??y(t,i),f=Array.isArray(r?.waitingForAgentIds)?r.waitingForAgentIds.filter(p=>typeof p=="string"):[];return{id:i.id,name:i.name,bucket:u,lastActivityTs:i.lastActivity??null,line:ye(z.select(t,i.id)),parentAgentId:d,depth:a,treePrefix:"",topLevel:q(c)==="topLevel",isBackground:ee(c),attentionKind:g,hasQuestion:k,isWaitingForAgents:r?.isWaitingForOtherAgents===!0||f.length>0||Array.isArray(r?.waitingOnHooks)&&r.waitingOnHooks.length>0||Array.isArray(r?.waitingOnPrMonitors)&&r.waitingOnPrMonitors.length>0||Array.isArray(r?.waitingOnScriptMonitors)&&r.waitingOnScriptMonitors.length>0,waitingForAgentIds:f}})}function Ie(e){const t=new Set;for(const o of e)for(const i of o.waitingForAgentIds)t.add(i);const n=o=>m.has(o.bucket)||o.isWaitingForAgents||t.has(o.id);return e.filter((o,i)=>{if(n(o))return!0;for(let a=i+1;a<e.length&&!(e[a].depth<=o.depth);a++)if(n(e[a]))return!0;return!1}).map((o,i,a)=>{if(o.depth===0)return{...o,treePrefix:""};let d=!0;for(let r=i+1;r<a.length&&!(a[r].depth<o.depth);r++)if(a[r].depth===o.depth){d=!1;break}return{...o,treePrefix:(o.depth>=2?"│ ":"")+(d?"└─":"├─")}})}const B=l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId,n=oe.select(e);return S.select(e).map(s=>{const o=String(s.id),i=n.indexOf(o),a=t[o]?.attention??(typeof s.attention=="string"&&P(s.attention)?s.attention:null),d=b(s,e),r=w(s),c=e.tokenUsage?.byWorkspaceId[o]?.totals,u=e.workspaceTasks?.byWorkspaceId[o]?.stats,g=typeof s.statusMessage=="string"&&s.statusMessage.trim().length>0?s.statusMessage:null;return{workspaceId:o,title:s.title,repoRef:s.repositoryName?`${s.repositoryOwner?`${s.repositoryOwner}/`:""}${s.repositoryName}`:s.branch,stateKey:r,attention:a,isUnread:a===te,isWaiting:s.waiting===!0,statusMessage:g,attentionSnippet:Ae(e,r,d),prNumber:typeof s.prNumber=="number"?s.prNumber:null,keySlot:i===-1?null:i,tasks:u?{total:u.total,completed:u.completed,inProgress:u.inProgress}:Se,tokens:c?N(c):0,agents:Ie(d)}})}),M=4;function we(e,t,n){const s=e.agentSessions?.byAgentId[n.id];return!s||String(s.workspaceId)!==t||s.pendingDeleteAt||q(U(n,s))!=="topLevel"?!1:!A(e,n.id)}const be=l.createSelector(e=>{const t={},n=e.hud.attentionByWorkspaceId;for(const s of S.select(e)){const o=String(s.id),i=new Map,a=(f,p)=>{const v=i.get(f)??[];v.includes(p)||v.push(p),i.set(f,v)},r=I(s).filter(f=>we(e,o,f));for(const f of r){const p=y(e,f);p.bucket==="failed"?a("failed",f.name):p.hasQuestion?a("question",f.name):p.attentionKind==="blocker"?a("blocker",f.name):p.attentionKind==="discussion"&&a("discussion",f.name),p.isRunning&&a("running",f.name)}const c=w(s);c==="failed"&&!i.has("failed")&&i.set("failed",[]),c==="blocked"&&!i.has("blocker")&&i.set("blocker",[]),c==="wait"&&!i.has("question")&&!i.has("blocker")&&!i.has("discussion")&&i.set("needs_input",[]);const u=n[o]?.attention??(typeof s.attention=="string"&&P(s.attention)?s.attention:null);u==="review_required"&&i.set("review",[]),u==="unread"&&i.set("unread",[]),s.activity==="agent_running"&&!i.has("running")&&i.set("running",[]);const g=ne.flatMap(f=>{const p=i.get(f);return p?[{category:f,count:Math.max(1,p.length),agentNames:p}]:[]});if(g.length===0)continue;const k=g.length>M;t[o]={agentCount:r.length,categories:g,visibleCategories:k?g.slice(0,M-1):g,hiddenCategoryCount:k?g.length-(M-1):0}}return t});l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId;let n=0;for(const s of S.select(e)){let o=!1;for(const d of b(s,e))d.topLevel&&!d.isBackground&&!A(e,d.id)&&(d.bucket==="failed"||d.attentionKind!==null||d.hasQuestion)&&(n+=1,o=!0);const i=t[String(s.id)],a=i!==void 0&&H(i.attention);a&&(n+=1),L.has(w(s))&&!o&&!a&&(n+=1)}return n});function ve(e,t,n,s){const o=s.slice().sort((r,c)=>c.createdAt-r.createdAt);for(const r of o){const u=e.agentSessions?.byAgentId[r.agentId]?.metadata?.completionReport;if(typeof u=="string"&&u.trim().length>0)return u}const i=e.workspaceNotes?.byWorkspaceId[t]?.notes,a=i?h(i,n):void 0,d=a?.content||a?.contentPreview;return typeof d=="string"&&d.trim().length>0?d:null}const Ve=l.createSelector((e,t)=>{const n=B.select(e).find(c=>c.workspaceId===t);if(!n)return null;const s=h(e.workspace.workspaces,t),o=s?b(s,e):[],i=new Map(o.map(c=>[c.id,c])),a=e.taskAgentAssociations?.byWorkspaceId[t]?.byNoteId??{},d=e.workspaceTasks?.byWorkspaceId[t],r=d?R(d.tasks).filter(c=>c.status!=="cancelled").map(c=>{const u=Object.values(a[c.id]??{});return{id:c.id,title:c.title,status:c.status,agents:u.map(g=>i.get(g.agentId)).filter(g=>!!g),report:c.status==="complete"?ve(e,t,c.id,u):null,...c.specLinked!==void 0?{specLinked:c.specLinked}:{},...c.dependsOn?{dependsOn:c.dependsOn}:{},...c.conflictsWith?{conflictsWith:c.conflictsWith}:{},...c.unmetDependsOn?{unmetDependsOn:c.unmetDependsOn}:{}}}):[];return{workspaceId:t,title:n.title,repoRef:n.repoRef,statusMessage:n.statusMessage,keySlot:n.keySlot,stats:n.tasks,tasks:r,activeAgents:o.filter(c=>m.has(c.bucket)),idleAgents:o.filter(c=>!m.has(c.bucket))}}),Te=new Set(["failed","blocker","question","discussion","needs_input","review"]);function Oe(e){for(const t of e?.categories??[])switch(t.category){case"failed":return"failure";case"blocker":return"blocker";case"question":return"question";case"review":return"review"}return"none"}const ze=l.createSelector((e,t="recent")=>{const n=B.select(e),s=be.select(e),o=new Map(S.select(e).map(a=>[String(a.id),a])),i={action:[],unread:[],active:[]};for(const a of n){const d=o.get(a.workspaceId);if(!d||d.id===se||!(t==="older"?ge:ue)(e.hud.dockConversationAtByWorkspaceId[a.workspaceId],e.hud.dockRecencyNow))continue;const r=s[a.workspaceId],c=r?.categories??[],u=c.some(p=>Te.has(p.category)),g=a.isUnread,k=c.some(p=>p.category==="running"),f=u?"action":g?"unread":"active";i[f].push({workspace:d,badgeKind:Oe(r),priorityGroup:f,isUnread:g,isRunning:k,isWaiting:a.isWaiting})}return[...i.action,...i.unread,...i.active].sort((a,d)=>e.hud.dockConversationAtByWorkspaceId[String(d.workspace.id)]-e.hud.dockConversationAtByWorkspaceId[String(a.workspace.id)]||String(a.workspace.id).localeCompare(String(d.workspace.id)))}),Xe=l.createSelector(e=>e.hud.dockPlacement),Je=l.createSelector(e=>e.hud.dockPlacementError),Ye=l.createSelector(e=>e.hud.dockFocusRequest),$e=l.createSelector(e=>e.hud.dockCloseRequest),Ze=l.createSelector(e=>e.hud.dockDragStartResult),et=l.createSelector(e=>e.hud.dockResizeStartResult),tt=l.createSelector(e=>({pending:e.hud.dockMachineSwitching,error:e.hud.dockMachineSwitchError})),nt=l.createSelector(e=>{const t=e.hud.dockEditorCompactRequest,n=e.dockConversation,s=n.workspaceId&&n.agentId?h(n.evidence,JSON.stringify([n.workspaceId,n.agentId])):null,o=!!n.nativeSpeech.activeId||!!s?.annotation||s?.clips.some(i=>i.status==="recording")||e.hardwareConsole.pttRecording||e.hardwareConsole.voiceTranscribing;return t&&!o&&e.hud.active&&t.conversationGeneration===n.generation&&t.authority===F(e)&&t.backendId===e.connections.windowBackendId&&t.workspaceId===e.dockConversation.workspaceId&&t.agentId===e.dockConversation.agentId?t:null});export{Ne as A,Ge as B,be as C,$e as a,Ze as b,nt as c,Ye as d,tt as e,Xe as f,Je as g,De as h,ae as i,et as j,ze as k,Ke as l,Ue as m,je as n,qe as o,Pe as p,Qe as q,We as r,Ce as s,Fe as t,Ee as u,xe as v,Le as w,Ve as x,He as y,B as z};
1
+ import{O as G,g as j,ao as Q,al as V,aw as z,p as X,a as J}from"./ClH0Gega.js";import{Iz as l,nw as h,nx as R,II as N,be as T,Y,nj as _,rb as H,rx as $,k2 as Z,rv as B,I_ as O,qS as ee,fE as q,rc as P,_ as te,bc as ne,g as se}from"./tU_ZJtMw.js";import{z as x,aC as oe,v as ie}from"./aos1n-nT.js";import{g as F}from"./DypB-Dwi.js";const re=["[WORKSPACE EVENTS]","[TASK WAKE]","[AGENT MESSAGE]"];function ae(e){const t=e.metadata;if(t&&typeof t=="object"){if(t.type==="question_answers")return!1;if(!G(t))return!0}const n=j(e);return re.some(s=>n.startsWith(s))}const K=1440*60*1e3;function ce(e){let t=null;for(const n of e){if(ae({id:n.id,timestamp:n.createdAt,metadata:n.metadata,contentBlocks:[{type:"text",text:n.preview.trimStart()}]}))continue;const s=Date.parse(n.createdAt);Number.isFinite(s)&&(t===null||s>t)&&(t=s)}return t}const de=50,le=20;function W(e,t){return e===null||t!==null&&t>e?t:e}async function Be(e,t){let n,s=null;for(let o=0;o<le;o++){const i=await e({limit:de,nextToken:n});if(!i.ok)return null;const a=i.items;s===null&&a.length>0&&(s=a[a.length-1].id);const d=t?.newestId!=null?a.findIndex(c=>c.id===t.newestId):-1,r=ce(d>=0?a.slice(d+1):a);if(d>=0)return{latest:W(r,t?.latest??null),newestId:s};if(r!==null)return{latest:W(r,t?.latest??null),newestId:s};if(typeof i.nextToken!="string")return{latest:null,newestId:s};n=i.nextToken}return{latest:t?.latest??null,newestId:s}}function ue(e,t){return e!=null&&e<=t&&e>t-K}function ge(e,t){return e!=null&&Number.isFinite(e)&&e>0&&e<=t-K}function fe(e,t){const{workspaceId:n,agentId:s,authority:o,nativePairId:i,evidence:a}=e;if(!n||!s||!o||o!==t)return null;const d=JSON.stringify([n,s]);if(i!==d||a?.id!==d)return null;const r=a.clips.find(c=>c.status==="recording");return!r||r.discarding||!Number.isFinite(r.startedAt)||!Number.isFinite(r.pausedMs??0)||r.pausedAt!=null&&!Number.isFinite(r.pausedAt)?null:{workspaceId:n,agentId:s,clipId:r.id,startedAt:r.startedAt,pausedAt:r.pausedAt??null,pausedMs:r.pausedMs??0}}function We(e,t){return t!==void 0&&e!==t?"ignore":e?"stop":"start"}const De=l.createSelector(e=>{const t=e.dockConversation,n=t.workspaceId&&t.agentId?JSON.stringify([t.workspaceId,t.agentId]):null;return fe({workspaceId:t.workspaceId,agentId:t.agentId,authority:t.authority,nativePairId:t.nativeSpeech.pairId,evidence:n?h(t.evidence,n):null},F(e))});l.createSelector(e=>e.hud.active);l.createSelector(e=>e.hud.feed);l.createSelector(e=>e.hud.usage);l.createSelector(e=>e.hud.usageError);const Ee=l.createSelector(e=>e.hud.rateHistory),Ne=l.createSelector(e=>R(e.workspace.workspaces)),He=l.createSelector(e=>{const t=e.hud.usage?.totals;return t?N(t):0}),qe=l.createSelector(e=>e.hud.burnRatePerMin),Pe=l.createSelector(e=>e.hud.burnTrend),xe=l.createSelector(e=>{const{health:t,stats:n,lastUpdated:s,hostLocality:o}=e.daemonHealth,i=n?.hostname;return{online:t!=="down",uptimeSeconds:typeof n?.uptimeSeconds=="number"?n.uptimeSeconds:null,version:n?.version??null,fetchedAtMs:s?Date.parse(s):null,remoteHostname:o==="remote"&&i?i.split(".",1)[0]??i:null}}),Fe=l.createSelector(e=>e.hud.gridFilter);l.createSelector(e=>e.hud.attentionByWorkspaceId);const Ke=l.createSelector((e,t)=>{const n=e.hud?.questionsByAgentId?.[t];if(!n)return!1;const s=e.agentSessions?.byAgentId[t]?.metadata??{};return!x(s,n.messageId)}),Le=l.createSelector(e=>e.hud.takeoverRequestWorkspaceId);function pe(e,t){return t[String(e.id)]??e.displayStatus}const S=l.createSelector(e=>{const t=e.hud.displayStatusByWorkspaceId;return R(e.workspace.workspaces).filter(n=>n.status!==T.Archived&&n.status!==T.Retired&&n.status!==T.Deleted).map(n=>{const s=pe(n,t);return s&&s!==n.displayStatus?{...n,displayStatus:s}:n})});function I(e){const t=e.agentSummary;return!t||!Array.isArray(t.agents)?[]:t.agents.filter(n=>!!n&&typeof n=="object"&&typeof n.id=="string"&&n.status!=="deleted"&&!ie(n.id))}const Ue=l.createSelector(e=>{const t=Object.fromEntries(Y.map(n=>[n,0]));for(const n of S.select(e))for(const s of I(n))t[y(e,s).bucket]+=1;return t}),Ge=l.createSelector(e=>{const t={idle:0,unread:0,progress:0,attention:0,waiting:0,prOpen:0,prMerged:0,failed:0,completed:0,total:0};for(const n of C.select(e))switch(t.total+=1,n.isUnread&&(t.unread+=1),n.isWaiting&&(t.waiting+=1),n.stateKey){case"wait":case"blocked":t.attention+=1;break;case"failed":t.failed+=1;break;case"in_progress":t.progress+=1;break;case"complete":t.completed+=1;break;case"pr_open":case"pr_ready":case"pr_queued":t.prOpen+=1;break;case"pr_merged":t.prMerged+=1;break;default:t.idle+=1}return t}),ke=l.createSelector(e=>{const t={};for(const n of S.select(e))for(const s of I(n))typeof s.name=="string"&&s.name.length>0&&(t[s.id]=s.name);return t});function D(e){if(!e.sinceTs)return 0;const t=Date.parse(e.sinceTs);return Number.isFinite(t)?t:0}const je=l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId,n=e.hud.questionsByAgentId,s=[];for(const o of S.select(e)){const i=String(o.id);let a=!1;for(const r of b(o,e)){const{bucket:c,attentionKind:u,hasQuestion:g}=r;if(c!=="needs-attention"&&c!=="failed"||!r.topLevel||r.isBackground||A(e,r.id))continue;const k=g?n[r.id]:void 0,f=u?_(e.agentSessions?.byAgentId[r.id])?.reason:void 0,p=k?"question":u??void 0;s.push({workspaceId:i,workspaceTitle:o.title,kind:c==="needs-attention"?"agent_waiting":"agent_failed",...c==="needs-attention"&&p?{signal:p}:{},agentName:r.name,message:k?.question??f??null,sinceTs:r.lastActivityTs}),a=!0}const d=t[i];d&&H(d.attention)&&(s.push({workspaceId:i,workspaceTitle:o.title,kind:"workspace_attention",attention:d.attention,message:null,sinceTs:d.raisedAtTs}),a=!0),L.has(w(o))&&!a&&s.push({workspaceId:i,workspaceTitle:o.title,kind:"workspace_attention",message:null,sinceTs:null})}return s.sort((o,i)=>D(i)-D(o))}),Qe=l.createSelector(e=>{const t=ke.select(e);return e.hud.feed.map(n=>({...n,workspaceTitle:h(e.workspace.workspaces,n.source)?.title??null,resolvedAgentName:n.agentName??(n.agentId?t[n.agentId]??null:null)}))}),Se={total:0,completed:0,inProgress:0};function w(e){const t=$(e.displayStatus)?e.displayStatus:"not_started";return Z(t)??"not_started"}const L=new Set(["wait","blocked","failed"]);function Ae(e,t,n){if(t==="failed"){const o=n.find(a=>a.bucket==="failed"&&!A(e,a.id)),i=o?e.agentSessions?.byAgentId[o.id]?.stopReason:null;return{kind:"failed",text:typeof i=="string"&&i.length>0?i:""}}if(t!=="wait"&&t!=="blocked")return null;const s=n.filter(o=>o.topLevel&&!o.isBackground&&!A(e,o.id));for(const o of s){if(!o.hasQuestion)continue;const i=e.hud.questionsByAgentId[o.id];if(i?.question)return{kind:"question",text:i.question}}for(const o of["blocker","discussion"])for(const i of s){if(i.attentionKind!==o)continue;const a=e.agentSessions?.byAgentId[i.id],d=_(a)?.reason;if(d)return{kind:o,text:d}}return{kind:"pending",text:""}}const m=new Set(["running","needs-attention","failed"]);function E(e){const t=typeof e.lastActivity=="string"?Date.parse(e.lastActivity):NaN;return Number.isFinite(t)?t:-1/0}function he(e){const t=n=>{const s=e.get(n.id)?.bucket;return s!==void 0&&m.has(s)?0:1};return(n,s)=>{const o=n.specialist==="spec-writer",i=s.specialist==="spec-writer";if(o!==i)return o?-1:1;const a=t(n)-t(s);if(a!==0)return a;const d=E(n),r=E(s);return d!==r?r-d:n.id<s.id?-1:n.id>s.id?1:0}}function me(e,t){const n=new Set(e.map(r=>r.id)),s=new Map,o=[];for(const r of e){const c=typeof r.parentAgentId=="string"&&r.parentAgentId!==r.id&&n.has(r.parentAgentId)?r.parentAgentId:null;if(c){const u=s.get(c)??[];u.push(r),s.set(c,u)}else o.push(r)}o.sort(t);for(const r of s.values())r.sort(t);const i=[],a=new Set,d=(r,c,u)=>{if(!a.has(r.id)){a.add(r.id),i.push({info:r,depth:c,parentAgentId:u});for(const g of s.get(r.id)??[])d(g,c+1,r.id)}};for(const r of o)d(r,0,null);for(const r of e)d(r,0,null);return i}function y(e,t){const n=e.agentSessions?.byAgentId[t.id],s=n?.metadata??{},o=n?_(n)?.kind??null:null,i=n?Q.select(e,t.id)||typeof n.status=="string"&&B(n.status):B(t.status),a=n?O(typeof n.status=="string"?n.status:t.status):null,d=!!n&&a!=="failed"&&a!=="done"&&(n.isWaitingForOtherAgents===!0||Array.isArray(n.waitingForAgentIds)&&n.waitingForAgentIds.length>0||Array.isArray(n.waitingOnHooks)&&n.waitingOnHooks.length>0||Array.isArray(n.waitingOnPrMonitors)&&n.waitingOnPrMonitors.length>0||Array.isArray(n.waitingOnScriptMonitors)&&n.waitingOnScriptMonitors.length>0),r=!!n&&(n.turnInFlight===!0||n.liveTurnOpen===!0);let c;n?d&&!r&&n.isStreaming!==!0&&n.isProcessing!==!0?c="idle":V.select(e,t.id)?c="running":i?c="idle":c=O(typeof n.status=="string"?n.status:t.status):c=t.isResponding===!0||t.isStreaming===!0?"running":O(t.status);const u=e.hud.questionsByAgentId[t.id],g=c!=="failed"&&!!u&&!x(s,u.messageId);return{bucket:c==="failed"?"failed":o!==null||g?"needs-attention":c,attentionKind:o,hasQuestion:g,isRunning:c==="running"}}function U(e,t){const n=o=>typeof o=="string"&&o!==e.id?o:null,s=o=>({isBackground:o?.isBackground,createdByAgentId:n(o?.createdByAgentId)});return{parentAgentId:n(e.parentAgentId)??n(t?.parentAgentId),isBackground:e.isBackground??t?.isBackground,metadata:s(t?.metadata),agentMetadata:s(t?.agentMetadata)}}function A(e,t){return e.agentSessions?.byAgentId[t]?.notificationsMuted===!0}function ye(e){if(!e)return null;switch(e.kind){case"attention":return e.attention.reason??null;case"live-tool":case"last-tool":{const t=J(e.toolUse.name,e.toolUse.input||{});return t.hidden?null:[t.verb,t.subject,t.path].filter(Boolean).join(" ").trim()||null}default:{const t=e.text||"";return t?t.includes(`
2
+ `)?X(t)||null:t:null}}}function b(e,t){const n=I(e),s=new Map(n.map(i=>[i.id,y(t,i)]));return me(n,he(s)).map(({info:i,depth:a,parentAgentId:d})=>{const r=t.agentSessions?.byAgentId[i.id],c=U(i,r),{bucket:u,attentionKind:g,hasQuestion:k}=s.get(i.id)??y(t,i),f=Array.isArray(r?.waitingForAgentIds)?r.waitingForAgentIds.filter(p=>typeof p=="string"):[];return{id:i.id,name:i.name,bucket:u,lastActivityTs:i.lastActivity??null,line:ye(z.select(t,i.id)),parentAgentId:d,depth:a,treePrefix:"",topLevel:q(c)==="topLevel",isBackground:ee(c),attentionKind:g,hasQuestion:k,isWaitingForAgents:r?.isWaitingForOtherAgents===!0||f.length>0||Array.isArray(r?.waitingOnHooks)&&r.waitingOnHooks.length>0||Array.isArray(r?.waitingOnPrMonitors)&&r.waitingOnPrMonitors.length>0||Array.isArray(r?.waitingOnScriptMonitors)&&r.waitingOnScriptMonitors.length>0,waitingForAgentIds:f}})}function Ie(e){const t=new Set;for(const o of e)for(const i of o.waitingForAgentIds)t.add(i);const n=o=>m.has(o.bucket)||o.isWaitingForAgents||t.has(o.id);return e.filter((o,i)=>{if(n(o))return!0;for(let a=i+1;a<e.length&&!(e[a].depth<=o.depth);a++)if(n(e[a]))return!0;return!1}).map((o,i,a)=>{if(o.depth===0)return{...o,treePrefix:""};let d=!0;for(let r=i+1;r<a.length&&!(a[r].depth<o.depth);r++)if(a[r].depth===o.depth){d=!1;break}return{...o,treePrefix:(o.depth>=2?"│ ":"")+(d?"└─":"├─")}})}const C=l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId,n=oe.select(e);return S.select(e).map(s=>{const o=String(s.id),i=n.indexOf(o),a=t[o]?.attention??(typeof s.attention=="string"&&P(s.attention)?s.attention:null),d=b(s,e),r=w(s),c=e.tokenUsage?.byWorkspaceId[o]?.totals,u=e.workspaceTasks?.byWorkspaceId[o]?.stats,g=typeof s.statusMessage=="string"&&s.statusMessage.trim().length>0?s.statusMessage:null;return{workspaceId:o,title:s.title,repoRef:s.repositoryName?`${s.repositoryOwner?`${s.repositoryOwner}/`:""}${s.repositoryName}`:s.branch,stateKey:r,attention:a,isUnread:a===te,isWaiting:s.waiting===!0,statusMessage:g,attentionSnippet:Ae(e,r,d),prNumber:typeof s.prNumber=="number"?s.prNumber:null,keySlot:i===-1?null:i,tasks:u?{total:u.total,completed:u.completed,inProgress:u.inProgress}:Se,tokens:c?N(c):0,agents:Ie(d)}})}),M=4;function we(e,t,n){const s=e.agentSessions?.byAgentId[n.id];return!s||String(s.workspaceId)!==t||s.pendingDeleteAt||q(U(n,s))!=="topLevel"?!1:!A(e,n.id)}const be=l.createSelector(e=>{const t={},n=e.hud.attentionByWorkspaceId;for(const s of S.select(e)){const o=String(s.id),i=new Map,a=(f,p)=>{const v=i.get(f)??[];v.includes(p)||v.push(p),i.set(f,v)},r=I(s).filter(f=>we(e,o,f));for(const f of r){const p=y(e,f);p.bucket==="failed"?a("failed",f.name):p.hasQuestion?a("question",f.name):p.attentionKind==="blocker"?a("blocker",f.name):p.attentionKind==="discussion"&&a("discussion",f.name),p.isRunning&&a("running",f.name)}const c=w(s);c==="failed"&&!i.has("failed")&&i.set("failed",[]),c==="blocked"&&!i.has("blocker")&&i.set("blocker",[]),c==="wait"&&!i.has("question")&&!i.has("blocker")&&!i.has("discussion")&&i.set("needs_input",[]);const u=n[o]?.attention??(typeof s.attention=="string"&&P(s.attention)?s.attention:null);u==="review_required"&&i.set("review",[]),u==="unread"&&i.set("unread",[]),s.activity==="agent_running"&&!i.has("running")&&i.set("running",[]);const g=ne.flatMap(f=>{const p=i.get(f);return p?[{category:f,count:Math.max(1,p.length),agentNames:p}]:[]});if(g.length===0)continue;const k=g.length>M;t[o]={agentCount:r.length,categories:g,visibleCategories:k?g.slice(0,M-1):g,hiddenCategoryCount:k?g.length-(M-1):0}}return t});l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId;let n=0;for(const s of S.select(e)){let o=!1;for(const d of b(s,e))d.topLevel&&!d.isBackground&&!A(e,d.id)&&(d.bucket==="failed"||d.attentionKind!==null||d.hasQuestion)&&(n+=1,o=!0);const i=t[String(s.id)],a=i!==void 0&&H(i.attention);a&&(n+=1),L.has(w(s))&&!o&&!a&&(n+=1)}return n});function ve(e,t,n,s){const o=s.slice().sort((r,c)=>c.createdAt-r.createdAt);for(const r of o){const u=e.agentSessions?.byAgentId[r.agentId]?.metadata?.completionReport;if(typeof u=="string"&&u.trim().length>0)return u}const i=e.workspaceNotes?.byWorkspaceId[t]?.notes,a=i?h(i,n):void 0,d=a?.content||a?.contentPreview;return typeof d=="string"&&d.trim().length>0?d:null}const Ve=l.createSelector((e,t)=>{const n=C.select(e).find(c=>c.workspaceId===t);if(!n)return null;const s=h(e.workspace.workspaces,t),o=s?b(s,e):[],i=new Map(o.map(c=>[c.id,c])),a=e.taskAgentAssociations?.byWorkspaceId[t]?.byNoteId??{},d=e.workspaceTasks?.byWorkspaceId[t],r=d?R(d.tasks).filter(c=>c.status!=="cancelled").map(c=>{const u=Object.values(a[c.id]??{});return{id:c.id,title:c.title,status:c.status,agents:u.map(g=>i.get(g.agentId)).filter(g=>!!g),report:c.status==="complete"?ve(e,t,c.id,u):null,...c.specLinked!==void 0?{specLinked:c.specLinked}:{},...c.dependsOn?{dependsOn:c.dependsOn}:{},...c.conflictsWith?{conflictsWith:c.conflictsWith}:{},...c.unmetDependsOn?{unmetDependsOn:c.unmetDependsOn}:{}}}):[];return{workspaceId:t,title:n.title,repoRef:n.repoRef,statusMessage:n.statusMessage,keySlot:n.keySlot,stats:n.tasks,tasks:r,activeAgents:o.filter(c=>m.has(c.bucket)),idleAgents:o.filter(c=>!m.has(c.bucket))}}),Te=new Set(["failed","blocker","question","discussion","needs_input","review"]);function Oe(e){for(const t of e?.categories??[])switch(t.category){case"failed":return"failure";case"blocker":return"blocker";case"question":return"question";case"review":return"review"}return"none"}const ze=l.createSelector((e,t="recent")=>{const n=C.select(e),s=be.select(e),o=new Map(S.select(e).map(a=>[String(a.id),a])),i={action:[],unread:[],active:[]};for(const a of n){const d=o.get(a.workspaceId);if(!d||d.id===se||!(t==="older"?ge:ue)(e.hud.dockConversationAtByWorkspaceId[a.workspaceId],e.hud.dockRecencyNow))continue;const r=s[a.workspaceId],c=r?.categories??[],u=c.some(p=>Te.has(p.category)),g=a.isUnread,k=c.some(p=>p.category==="running"),f=u?"action":g?"unread":"active";i[f].push({workspace:d,badgeKind:Oe(r),priorityGroup:f,isUnread:g,isRunning:k,isWaiting:a.isWaiting})}return[...i.action,...i.unread,...i.active].sort((a,d)=>e.hud.dockConversationAtByWorkspaceId[String(d.workspace.id)]-e.hud.dockConversationAtByWorkspaceId[String(a.workspace.id)]||String(a.workspace.id).localeCompare(String(d.workspace.id)))}),Xe=l.createSelector(e=>e.hud.dockPlacement),Je=l.createSelector(e=>e.hud.dockPlacementError),Ye=l.createSelector(e=>e.hud.dockFocusRequest),$e=l.createSelector(e=>e.hud.dockCloseRequest),Ze=l.createSelector(e=>e.hud.dockDragStartResult),et=l.createSelector(e=>e.hud.dockResizeStartResult),tt=l.createSelector(e=>({pending:e.hud.dockMachineSwitching,error:e.hud.dockMachineSwitchError})),nt=l.createSelector(e=>{const t=e.hud.dockEditorCompactRequest,n=e.dockConversation,s=n.workspaceId&&n.agentId?h(n.evidence,JSON.stringify([n.workspaceId,n.agentId])):null,o=!!n.nativeSpeech.activeId||!!s?.annotation||s?.clips.some(i=>i.status==="recording")||e.hardwareConsole.pttRecording||e.hardwareConsole.voiceTranscribing;return t&&!o&&e.hud.active&&t.conversationGeneration===n.generation&&t.authority===F(e)&&t.backendId===e.connections.windowBackendId&&t.workspaceId===e.dockConversation.workspaceId&&t.agentId===e.dockConversation.agentId?t:null});export{Ne as A,Ge as B,be as C,$e as a,Ze as b,nt as c,Ye as d,tt as e,Xe as f,Je as g,De as h,ae as i,et as j,ze as k,Ke as l,Ue as m,je as n,qe as o,Pe as p,Qe as q,We as r,Be as s,Fe as t,Ee as u,xe as v,Le as w,Ve as x,He as y,C as z};
@@ -1 +1 @@
1
- import{b as o}from"./Bfi661u9.js";var c=1;function i(){if(!(typeof globalThis>"u"))return globalThis}o(i,"getCaptureGlobal");function p(){return!!i()?.mermaidCaptureSizes}o(p,"shouldCaptureSizes");function u(){return typeof location>"u"?"browser-dev":`${location.pathname}${location.search}`}o(u,"capturedFromLocation");function d(n,r){const t=i();if(!t)return;const e=r.node(),s=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";t.mermaidCapturedSizes??=[];const a={svgId:s,sizes:n};t.mermaidCapturedSizes.push(a),t.mermaidLastCapturedSizes=a}o(d,"emitCapturedSizes");function m(n,r){const t=[];for(const e of r.nodes)e.isGroup||t.push({id:e.id,width:e.width??0,height:e.height??0});t.length!==0&&d({metadata:{captureVersion:c,capturedAt:new Date().toISOString(),capturedFrom:u()},nodes:t},n)}o(m,"captureNodeSizes");export{m as captureNodeSizes,p as shouldCaptureSizes};
1
+ import{b as o}from"./D4gGvbme.js";var c=1;function i(){if(!(typeof globalThis>"u"))return globalThis}o(i,"getCaptureGlobal");function p(){return!!i()?.mermaidCaptureSizes}o(p,"shouldCaptureSizes");function u(){return typeof location>"u"?"browser-dev":`${location.pathname}${location.search}`}o(u,"capturedFromLocation");function d(n,r){const t=i();if(!t)return;const e=r.node(),s=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";t.mermaidCapturedSizes??=[];const a={svgId:s,sizes:n};t.mermaidCapturedSizes.push(a),t.mermaidLastCapturedSizes=a}o(d,"emitCapturedSizes");function m(n,r){const t=[];for(const e of r.nodes)e.isGroup||t.push({id:e.id,width:e.width??0,height:e.height??0});t.length!==0&&d({metadata:{captureVersion:c,capturedAt:new Date().toISOString(),capturedFrom:u()},nodes:t},n)}o(m,"captureNodeSizes");export{m as captureNodeSizes,p as shouldCaptureSizes};
@@ -1,8 +1,8 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/Cdb_pBT1.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/BKW86yq_.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/C4xNNtUj.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/RKjwEkJS.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/D9WJ9yaW.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CEsW1euQ.js","/app/immutable/chunks/CsvSUZwX.js","/app/immutable/chunks/0h3tB2X7.js","/app/immutable/chunks/Bs7Hg6Iw.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/CpHzYkzi.js","/app/immutable/chunks/aQy6qVNs.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DRG7DUhO.js","/app/immutable/chunks/BqRBAXUd.js","/app/immutable/chunks/B_uWHofm.js","/app/immutable/chunks/CJl18r_J.js","/app/immutable/chunks/NhKlePe6.js","/app/immutable/chunks/CxlqEDL_.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/DUyBdSjv.js","/app/immutable/chunks/CUEYQ1xR.js","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/BotBkFiN.js","/app/immutable/chunks/BjFh2SH5.js","/app/immutable/chunks/qvZYvB9N.js","/app/immutable/chunks/CSelYXXo.js","/app/immutable/chunks/zqCR6Knb.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/DctMspbi.js","/app/immutable/chunks/C1N6iAP2.js","/app/immutable/chunks/BIWW5pDn.js","/app/immutable/chunks/BW1uSKLL.js","/app/immutable/chunks/CS4C4Dqz.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/DmY0GWNY.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BB4FgpiZ.js","/app/immutable/chunks/DNWBkvFP.js","/app/immutable/chunks/BtwtItRa.js","/app/immutable/chunks/BcLSwxTf.js","/app/immutable/chunks/Dzr2-f8u.js","/app/immutable/chunks/BqOOOgy5.js","/app/immutable/chunks/BD_lDepV.js","/app/immutable/chunks/NqdaVAll.js"])))=>i.map(i=>d[i]);
2
- import{Iz as n,nH as I,nx as g,nw as k,m2 as Z,qr as Q,i6 as ee,vf as He,jz as $e,CZ as Be,uM as Ve,nO as Ce,m5 as te,q1 as ze,m4 as Ke,lJ as Je,aM as le,lT as Ye,lZ as Xe,Fx as Ze,CX as Qe,zj as et,nM as tt,m7 as st}from"./C4xNNtUj.js";import{b as rt,p as nt,F as at,z as ot}from"./BcLSwxTf.js";import{aX as V,aT as se,cD as v,cG as ue,co as ct,dr as M,cj as it,aU as lt,cE as ut,dl as dt,o as de,O as pt,dn as mt,c3 as ht,ak as ft,au as St,ad as gt,bC as yt,cA as bt,cY as kt,cm as wt,bD as It}from"./BB4FgpiZ.js";import{x as _t}from"./BtwtItRa.js";import{ah as vt,cN as Ct,aX as At,av as Et,p as Rt}from"./NqdaVAll.js";import{f as Tt}from"./Cdb_pBT1.js";import{bo as p,_ as q}from"./BKW86yq_.js";import{i as w}from"./DNWBkvFP.js";import{I as Pt}from"./CEsW1euQ.js";import{L as P}from"./P2s61dnl.js";import{an as Ot,k as Wt,h as O,ag as Nt,t as xt}from"./BD_lDepV.js";import{c as Mt}from"./ChTqQfQN.js";import{w as Lt}from"./DUyBdSjv.js";import{r as x}from"./uXuxG9cN.js";import{aQ as Dt,Q as Ut,U as jt,y as Gt}from"./BjFh2SH5.js";import{M as pe,O as me,h as Ae}from"./CsvSUZwX.js";import{d as qt,o as he,l as fe,s as Se}from"./CIyUrgF0.js";const cr=n.createSelector(e=>e.workspaceShare.open),ir=n.createSelector(e=>e.workspaceShare.workspaceId),lr=n.createSelector(e=>{const{open:t,workspaceId:s,session:r}=e.workspaceShare;return t&&s?{workspaceId:s,session:r}:null}),re=n.createSelector(e=>{const{open:t,workspaceId:s,withheld:r}=e.workspaceShare;return!t||!s||r||I(e.workspaceShare,s).inviteWithheld?!1:V.select(e,s)}),ur=n.createSelector(e=>e.workspaceShare.createRequest),dr=n.createSelector(e=>e.workspaceShare.mutationGeneration),pr=n.createSelector(e=>e.workspaceShare.workspaceTitle),mr=n.createSelector(e=>g(e.workspaceShare.members)),hr=n.createSelector((e,t)=>k(e.workspaceShare.members,t)!==void 0),fr=n.createSelector(e=>e.workspaceShare.open&&e.workspaceShare.workspaceId&&!e.workspaceShare.withheld&&!I(e.workspaceShare,e.workspaceShare.workspaceId).inviteWithheld?g(e.workspaceShare.invites).filter(t=>t.workspaceId===e.workspaceShare.workspaceId):[]),Sr=n.createSelector(e=>{const{principals:t,members:s}=e.workspaceShare;return g(t).filter(r=>!k(s,r.principalId)&&(r.hostRole===void 0||r.hostRole==="guest"))}),gr=n.createSelector(e=>e.workspaceShare.guestCount),yr=n.createSelector(e=>e.workspaceShare.guestLimit),br=n.createSelector(e=>e.workspaceShare.loadStatus==="loading"),kr=n.createSelector(e=>e.workspaceShare.loadError),wr=n.createSelector(e=>e.workspaceShare.creating),Ir=n.createSelector(e=>e.workspaceShare.createError),_r=n.createSelector(e=>e.workspaceShare.createdLink),vr=n.createSelector(e=>e.workspaceShare.revokingInviteId),Cr=n.createSelector(e=>e.workspaceShare.removingPrincipalId),Ar=n.createSelector(e=>e.workspaceShare.addingPrincipalId),Er=n.createSelector(e=>e.workspaceShare.actionError),Rr=n.createSelector((e,t)=>I(e.workspaceShare,t).loadStatus!=="idle"),Tr=n.createSelector((e,t)=>t?g(I(e.workspaceShare,t).members):[]),Pr=n.createSelector((e,t)=>!!t&&!I(e.workspaceShare,t).withheld&&V.select(e,t));n.createSelector((e,t)=>!!t&&I(e.workspaceShare,t).withheld);const Or=n.createSelector((e,t)=>t?I(e.workspaceShare,t).removingPrincipalId:null);n.createSelector((e,t)=>t?I(e.workspaceShare,t).removeError:null);const Wr=n.createSelector(e=>e.workspaceShare.integrationAuth),Nr=n.createSelector(e=>e.workspaceShare.ownerForgeMissing),z=n.createSelector(e=>re.select(e)&&se.select(e)&&e.workspaceShare.sharingContext!==null&&e.workspaceShare.sharingContext===v.select(e)),Ft=n.createSelector(e=>z.select(e)?e.workspaceShare.sharingEnabled:null),xr=n.createSelector(e=>z.select(e)&&e.workspaceShare.sharingChecking),Ht=n.createSelector(e=>z.select(e)&&e.workspaceShare.sharingEnabling),$t=n.createSelector(e=>z.select(e)?e.workspaceShare.sharingError:null),Mr=n.createSelector(e=>{if(!re.select(e))return!1;const t=e.workspaceShare;return!t.integrationAuthLoaded||se.select(e)&&Ft.select(e)===null&&$t.select(e)===null&&!Ht.select(e)?!0:g(t.members).length===0&&(t.loadStatus==="idle"||t.loadStatus==="loading")}),Lr=n.createSelector(e=>re.select(e)&&!!e.workspaceShare.workspaceId&&(se.select(e)||(ge.select(e)?ge.select(e)===ue.select(e)?.principal.id:ct.select(e,e.workspaceShare.workspaceId)))&&ue.select(e)?.capabilities.workspaceGuestRoles===!0),Dr=n.createSelector(e=>e.workspaceShare.pendingRolePrincipalIds),Ur=n.createSelector(e=>e.workspaceShare.roleErrors),ge=n.createSelector(e=>{const t=e.workspaceShare.workspaceId;return t?M.select(e,t)?.ownerPrincipalId??null:null}),Bt=n.createSelector(e=>{const t=v.select(e),s=rt.select(e);return{context:t,workspaceIds:t?s.filter(r=>V.select(e,r)):[]}}),jr=n.createSelector((e,t)=>{const s=I(e.workspaceShare,t);return{context:s.inviteContext,generation:s.inviteGeneration,withheld:s.inviteWithheld}}),Vt=[],zt=n.createSelector((e,t)=>{const s=v.select(e),r=I(e.workspaceShare,t);if(!s||r.inviteContext!==s||r.inviteWithheld||!V.select(e,t))return Vt;const a=e.presence?.context===s?e.presence.members[t]:void 0,o=new Set(a?g(a).flatMap(i=>i.identity?[JSON.stringify([i.identity.provider,i.identity.host.toLowerCase(),i.identity.externalUserId])]:[]):[]),c=new Set;return g(e.workspaceShare.invites).filter(i=>{if(i.workspaceId!==t||!i.pinLogin?.trim()||i.revokedAt||i.redeemedAt&&!i.reusable||!(Date.parse(i.expiresAt)>r.inviteReceivedAt))return!1;const l=i.pinIdentity??(i.pinGithubUserId!==void 0?{provider:"github",host:"github.com",externalUserId:String(i.pinGithubUserId)}:null);if(a&&i.redeemedByPrincipalId&&k(a,i.redeemedByPrincipalId))return!1;if(!l)return!0;const m=JSON.stringify([l.provider,l.host.toLowerCase(),l.externalUserId]);return o.has(m)||c.has(m)?!1:(c.add(m),!0)})}),Gr=n.createSelector(e=>{const s=Bt.select(e).workspaceIds.flatMap(r=>zt.select(e,r).map(a=>Date.parse(a.expiresAt)));return s.length?Math.min(...s):null});function qr(e){return Object.entries(e).some(([t,s])=>s.available&&_t(t,s.authenticated))}const Fr=n.createSelector(e=>e.hostRequirements.git),Hr=n.createSelector(e=>e.hostRequirements.node),$r=n.createSelector(e=>e.hostRequirements.gh),Br=n.createSelector(e=>e.hostRequirements.checking),Vr=n.createSelector(e=>e.hostRequirements.hasCheckedOnce);function Ee(e){const t=e.gitlabAuth?.statusFailed===!0;return vt({labsEnabled:e.userPreferences?.labsPlainFolderWorkspacesEnabled===!0,protocolVersion:e.daemonHealth?.stats?.protocolVersion,githubConnected:e.githubAuth?.isAuthenticated===!0,githubSettled:e.githubAuth?.statusSettled===!0,githubFailed:e.githubAuth?.statusFailed===!0,gitlabConnected:e.gitlabAuth?.isConfigured===!0,gitlabSettled:e.gitlabAuth?.statusReady===!0||t,gitlabFailed:t})}const zr=n.createSelector(Ee),Kt=n.createSelector(e=>!it.select(e)),Kr=n.createSelector(e=>(e.hostRequirements.node.ok||!Kt.select(e))&&(e.hostRequirements.git.available||Ee(e))),Jr=n.createSelector(e=>{const t=e.hostRequirements.providerCli;return t?{context:t.context,warnings:g(t.warnings)}:void 0}),Yr="22.0.0";function Jt(e){return e.length>15?`${e.slice(0,15)}…`:e}function H(e){return e.name?.trim()||Jt(e.clientId)}function Xr(e){const{eligibleClients:t,ownClientId:s,driving:r,pinnedClientId:a}=e,o=t.find(l=>l.clientId===s&&l.connected),c=r!==null&&!r.connected,i=!r||r.clientId===s;return{mode:c?"offline":i?"here":"elsewhere",hostName:r?H(r):o?H(o):"",canSwitchHere:!!(o&&a!==s)}}const Zr=n.createSelector(e=>e?.browserClients?.ownClientId??null),Qr=n.createSelector(e=>e?.browserClients?.ownClientIdConfirmed===!0);n.createSelector(e=>g(e.browserClients.liveClients));const en=n.createSelector((e,t)=>t?e?.browserClients?.byWorkspaceId[t]?.liveClientsLoaded??!1:e?.browserClients?.liveClientsLoaded??!1);n.createSelector((e,t)=>k(e.browserClients.liveClients,t));const tn=n.createSelector((e,t)=>(e?.browserClients?.byWorkspaceId[t]??Z).browserClient),sn=n.createSelector((e,t)=>{const s=e?.browserClients?.byWorkspaceId[t];return s?.pinnedClientId!==void 0||s?.browserClient!=null});function X(e){const t=e.prettyHostname??e.hostname??e.name;return{clientId:e.clientId,...t!==void 0?{name:t}:{},connected:!0}}const rn=n.createSelector((e,t)=>{const s=e?.browserClients??Q,r=s.byWorkspaceId[t]?.liveClients??ee(),a=g(r).filter(y=>y.capabilities.browserExec===!0).map(X),o=(s.byWorkspaceId[t]??Z).browserClient,c=s.byWorkspaceId[t],i=c?.pinnedClientId!==void 0?c.pinnedClientId:o?.source==="workspace"?o.clientId:null,l=i===null?Tt(o):void 0;let m=null;if(o?.resolved){const y=k(r,o.resolved.clientId);m=y?X(y):{...o.resolved,connected:!0}}else o?.source==="workspace"?m={clientId:o.clientId,connected:!1}:l&&(m={clientId:l.clientId,connected:!1});return{eligibleClients:a,ownClientId:s.ownClientId??"",routedVia:o?.source==="default"?l?.via:void 0,driving:m,pinnedClientId:i}}),nn=n.createSelector((e,t)=>{const s=e?.browserClients??Q;if(!s.ownClientId||!s.ownClientIdConfirmed)return!1;const r=s.byWorkspaceId[t]?.liveClients??ee(),a=k(r,s.ownClientId);return a!==void 0&&a.capabilities.browserExec!==!0}),an=n.createSelector((e,t,s)=>{const r=e?.browserClients??Q,a=s?r.byWorkspaceId[s]?.liveClients??ee():r.liveClients,o=s?r.byWorkspaceId[s]?.liveClientsLoaded:r.liveClientsLoaded,c=k(a,t);return c?{name:H(X(c)),connected:!0}:{name:H({clientId:t}),connected:!o}}),on=n.createSelector((e,t)=>(e?.browserClients?.byWorkspaceId[t]??Z).tabsRevision),cn=n.createSelector(e=>Object.entries(e.browserClients?.byWorkspaceId??{}).filter(([,t])=>Object.keys(t.consumers??{}).length>0).map(([t])=>t)),N=new Map;function ln(e,t){return N.set(e,t),()=>{N.get(e)===t&&N.delete(e)}}async function un(e){const t=N.get(e);return t?t():null}function dn(e){N.delete(e)}const Re="From repo config",pn="repo-config";function mn(e,t){return t==="repo-config"?p.workspace_setupScriptEditor_fromRepoConfig_name():t==="custom"?p.workspace_setupScriptEditor_custom_name():e}function Te(e){if(!e||typeof e!="object"||Array.isArray(e))return{setupScript:null};const t=e.setupScript;return{setupScript:typeof t=="string"&&t.trim().length>0?t:null}}function Yt(e){let t;try{t=JSON.parse(e)}catch{return null}return Te(t).setupScript}async function hn(e){if(!e)return null;try{const t=await w(Pt.SETUP_SCRIPTS.READ_REPO_CONFIG,{repoPath:e}),s=t?.success?t.data?.content:null;return typeof s=="string"?Yt(s):null}catch{return null}}async function fn(e,t,s){if(!e||!t)return null;try{const{appClient:r}=await q(async()=>{const{appClient:o}=await import("./Cdb_pBT1.js").then(c=>c.o);return{appClient:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]),import.meta.url),a=await r.integrations.githubRepoConfig(e,t,s);return Te(a.config).setupScript}catch{return null}}function Sn(e){const t=e.setupScript.trim();return t?e.setupScriptNameSource==="repo-config"&&e.setupScriptName===Re&&e.repoConfigScriptRepo===e.repoPath&&t===(e.repoConfigScript??"").trim()?void 0:t:e.explicitChoice?"cd .":void 0}function gn(e){const{repoConfigScript:t,lastUsed:s,genericTemplate:r}=e;return t?{content:t,name:Re,source:"repo-config"}:s?{content:s.content,name:s.nameSource==="repo-config"?"Custom":s.name,source:s.nameSource==="repo-config"?"custom":s.nameSource??"named"}:r?{content:r.content,name:r.name,source:"named"}:{content:"",name:"Custom",source:"custom"}}const Pe="setup-scripts:last-used-by-repo",Oe="setup-scripts:recent-by-repo",$=20,We=10,Xt=["repo-config","custom","named"];function ne(e,t){return t?`${e}\0${t}`:e}function Ne(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e;return typeof t.name=="string"&&typeof t.content=="string"&&t.content.trim().length>0&&typeof t.usedAt=="string"&&(t.nameSource===void 0||Xt.includes(t.nameSource))}function B(){try{const e=localStorage.getItem(Pe);if(!e)return{};const t=JSON.parse(e);if(!t||typeof t!="object"||Array.isArray(t))return{};const s={};for(const[r,a]of Object.entries(t))r&&Ne(a)&&(s[r]=a);return s}catch{return{}}}function xe(){try{const e=localStorage.getItem(Oe);if(!e)return{};const t=JSON.parse(e);if(!t||typeof t!="object"||Array.isArray(t))return{};const s={};for(const[r,a]of Object.entries(t)){if(!r||!Array.isArray(a))continue;const o=a.filter(Ne);o.length>0&&(s[r]=o)}return s}catch{return{}}}function Zt(e,t){return e.name===t.name&&(e.nameSource??"named")===(t.nameSource??"named")&&e.content.trim()===t.content.trim()}function Me(e){return[...e].sort((t,s)=>s.usedAt.localeCompare(t.usedAt))}function Le(e){const t=[];for(const s of e)t.some(r=>Zt(r,s))||t.push(s);return t}function yn(e,t){if(!e)return[];const s=ne(e,t),r=xe()[s]??[],a=B()[s];return Le(Me(a?[...r,a]:r)).slice(0,We).map(c=>({name:c.name,content:c.content,nameSource:c.nameSource??"named",usedAt:c.usedAt}))}function Qt(e,t,s){try{const r=xe(),a=r[e]??(s?[s]:[]);r[e]=Le([t,...Me(a)]).slice(0,We);const o=Object.entries(r);o.length>$&&(o.sort(([,c],[,i])=>i[0].usedAt.localeCompare(c[0].usedAt)),o.length=$),localStorage.setItem(Oe,JSON.stringify(Object.fromEntries(o)))}catch{}}function bn(e,t){if(!e)return;const s=B()[ne(e,t)];return s?{name:s.name,content:s.content,nameSource:s.nameSource??"named"}:void 0}function kn(e,t,s){const r=t.content.trim();if(!e||!r)return;const a=ne(e,s),o={name:t.name,content:r,usedAt:new Date().toISOString(),nameSource:t.nameSource??"named"};Qt(a,o,B()[a]);try{const c=B();c[a]=o;const i=Object.entries(c);i.length>$&&(i.sort(([,l],[,m])=>m.usedAt.localeCompare(l.usedAt)),i.length=$),localStorage.setItem(Pe,JSON.stringify(Object.fromEntries(i)))}catch{}}const es={async isAuthenticated(e){try{return await w(P.IS_AUTHENTICATED,...e===void 0?[]:[{workspaceId:e}])}catch{return!1}},async getAuthState(e=!1,t){try{return await w(P.GET_AUTH_STATE,e,...t===void 0?[]:[{workspaceId:t}])}catch{return{isAuthenticated:!1,requiresDaemonAuth:!0}}},async getStatus(e){try{return await w(P.GET_STATUS,...e===void 0?[]:[{workspaceId:e}])}catch{return{isConfigured:!1,oauthUrl:""}}},async fetchMyIssues(e="assigned",t){return(await this.fetchMyIssuesPage(e,t===void 0?void 0:{workspaceId:t})).issues},async fetchMyIssuesPage(e="assigned",t){try{return await w(P.FETCH_MY_ISSUES,e,t)}catch{return{issues:[],nextToken:null}}},async searchIssues(e,t){return(await this.searchIssuesPage(e,t===void 0?void 0:{workspaceId:t})).issues},async searchIssuesPage(e,t){try{return await w(P.SEARCH_ISSUES,e,t)}catch{return{issues:[],nextToken:null}}}},wn=Object.freeze(Object.defineProperty({__proto__:null,linearAuthClient:es},Symbol.toStringTag,{value:"Module"})),_={IS_AUTHENTICATED:"sentry-auth:is-authenticated",SAVE_CONFIG:"sentry-auth:save-config",GET_AUTH_STATE:"sentry-auth:get-auth-state",LOGOUT:"sentry-auth:logout",FETCH_PROJECTS:"sentry-auth:fetch-projects",FETCH_ISSUES:"sentry-auth:fetch-issues",SEARCH_ISSUES:"sentry-auth:search-issues",GET_ISSUE:"sentry-auth:get-issue"},ts={async isAuthenticated(e){try{return await w(_.IS_AUTHENTICATED,...e===void 0?[]:[{workspaceId:e}])}catch{return!1}},async saveConfig(e,t){return await w(_.SAVE_CONFIG,{organization:e,apiToken:t})},async getAuthState(e){try{return await w(_.GET_AUTH_STATE,...e===void 0?[]:[{workspaceId:e}])}catch{return{isAuthenticated:!1}}},async logout(){await w(_.LOGOUT)},async fetchProjects(e){try{return await w(_.FETCH_PROJECTS,...e===void 0?[]:[{workspaceId:e}])}catch{return[]}},async fetchIssues(e){return(await this.fetchIssuesPage(e)).issues},async fetchIssuesPage(e){try{return await w(_.FETCH_ISSUES,e)}catch{return{issues:[],nextToken:null}}},async searchIssues(e,t){return(await this.searchIssuesPage(e,t)).issues},async searchIssuesPage(e,t,s){try{return await w(_.SEARCH_ISSUES,{query:e,project:t,...s})}catch{return{issues:[],nextToken:null}}},async getIssue(e,t){try{return await w(_.GET_ISSUE,e,...t===void 0?[]:[{workspaceId:t}])}catch{return null}}},In=Object.freeze(Object.defineProperty({__proto__:null,sentryAuthClient:ts},Symbol.toStringTag,{value:"Module"})),ae=n.createSelector(e=>{const t=v.select(e);return!t||!lt.select(e)?null:JSON.stringify([t,e.hostExecution.generation,e.repositoryCheckout.authorityGeneration,e.gitlabAuth.host,e.gitlabAuth.instanceBaseUrl,e.gitlabAuth.statusReady,e.gitlabAuth.isConfigured,e.gitlabAuth.user])}),K=n.createSelector((e,t)=>k(e.repositoryCheckout.forms,t)??null),_n=n.createSelector((e,t)=>{const s=K.select(e,t);return s?.admission===ae.select(e)&&s.status==="ready"?g(s.projects):[]}),vn=n.createSelector((e,t)=>{const s=K.select(e,t);return s?.admission===ae.select(e)&&s.status==="ready"?g(s.branches):[]}),ss=n.createSelector((e,t)=>{const s=K.select(e,t);return!s||s.status!=="ready"||s.admission!==ae.select(e)||!s.capture||!s.project||!s.branch?null:{checkoutId:s.capture.checkoutId,revision:s.capture.revision,projectPath:s.project.projectPath,branch:s.branch.name,commitSha:s.branch.commitSha,mode:s.mode}}),Cn=n.createSelector((e,t)=>{const s=ss.select(e,t);return!!s&&(s.mode==="direct"||K.select(e,t)?.warmStatus==="ready")}),An="__new-workspace__",En="__initializer__",Rn="compact-workspace-initializer-state-prompt",Tn="onboarding-prompt",U=20*1024*1024,ye=Mt("NewWorkspaceDraft");function Pn(e,t){if(e.length>U)return ye.warn("Draft text exceeds the size guard; skipping persistence",{textLength:e.length,limit:U}),null;const s=Ot(t);if(s.length===0)return{text:e};const r=[];let a=e.length+2,o=0;for(const c of s){const i=JSON.stringify(c).length+1;if(a+i>U){o+=1;continue}r.push(c),a+=i}return o>0&&ye.warn("Draft attachments exceed the size guard; persisting the ones that fit",{limit:U,attachmentCount:s.length,droppedCount:o}),r.length>0?{text:e,attachments:r}:{text:e}}const rs="host.providerAuthStatus";function ns(e={}){const t={};return e.workspaceId&&(t.workspaceId=e.workspaceId),typeof e.providerId=="string"&&e.providerId.length>0&&(t.providerId=e.providerId),typeof e.force=="boolean"&&(t.force=e.force),t}function as(e,t){const s=t.toLowerCase(),r=e.toLowerCase();return s.startsWith(r)?/^(['’]s\s+organization)?$/.test(s.slice(r.length)):!1}function os(e){const{email:t,orgName:s}=e??{};return t&&s?as(t,s)?t:`${t} · ${s}`:t||s||void 0}function cs(e){const t={};for(const s of e?.providers??[]){const r={authenticated:s.authenticated??void 0},a=os(s.identity);a!==void 0&&(r.authDetails=a),s.identity?.email&&(r.email=s.identity.email),t[s.id]=r}return t}const is=6e4,E=new Map,j=new Map,A=new Map;let F=0,De=0;const ls=e=>JSON.stringify([ut.select(n.state),De,e.workspaceId??null,e.providerId??"*"]);function us(e){if(e.method!=="events.event"||!e.params)return;const t=e.params,r=(t.event&&typeof t.event=="object"?t.event:t).type;return typeof r=="string"?r:void 0}function J(e){if(F+=1,e)for(const t of E.keys()){const[,,,s]=JSON.parse(t);(s===e||s==="*")&&E.delete(t)}else E.clear()}typeof pe=="function"&&pe(e=>{["provider:auth-changed","host:execution-context-changed"].includes(us(e)??"")&&J()});typeof me=="function"&&me(()=>{De+=1,J()});function ds(e={}){const t=ls(e);if(e.force)J(e.providerId);else{const o=E.get(t);if(o&&o.expiresAt>Date.now())return Promise.resolve(o.verdicts);o&&E.delete(t)}const s=j.get(t);if(!e.force&&s?.generation===F)return s.promise;if(s){const o=A.get(t);if(o)return o.force||=e.force===!0,o.promise;let c;const i=s.promise.catch(()=>({})).then(()=>(A.get(t)===c&&A.delete(t),ds({...e,force:c.force}))).finally(()=>{A.get(t)===c&&A.delete(t)});return c={force:e.force===!0,promise:i},A.set(t,c),i}const r=F,a=Ae(rs,ns(e)).then(cs).then(o=>(r===F&&E.set(t,{verdicts:o,expiresAt:Date.now()+is}),o)).finally(()=>{j.get(t)?.promise===a&&j.delete(t)});return j.set(t,{generation:r,promise:a}),a}function On(e,t=e,s="default",r,a){if(!Lt.select(n.state))return;const o=a??nt.select(n.state,t)??at.select(n.state,t)[0];if(!o)return;const c=ot.select(n.state,t,o),i={type:"discussion",title:r??(s==="new"?p.workspace_discussion_new_title():p.workspace_discussion_title()),workspaceId:e,closable:!0,data:{conversationId:s}},l=c?.tabs.find(m=>He(m,i));s==="new"&&n.dispatch($e(e)),n.dispatch(l?Be(t,l.id,o):Ve(t,i,o,void 0,!0,void 0,!0))}function Wn(e,t){return e.name?.trim()?e.name.trim():e.kind==="workspace"?e.id&&e.id!=="default"?p.workspace_discussion_conversation_title():p.workspace_discussion_title():e.participants.filter(r=>r.principalId!==t).map(r=>r.displayName||r.login||p.workspace_discussion_unknownAuthor_label()).join(", ")||p.workspace_discussion_group_title()}const ps=n.createSelector((e,t,s)=>{const r=Ce(e.repositoryContext,t);return s!==null&&r.binding===s?r:null});n.createSelector((e,t,s)=>{const r=ps.select(e,t.workspaceId,s);return r?.status==="ready"?k(r.roots,x(t))?.context:void 0});const Nn=n.createSelector((e,t)=>{if(t.admission===null||v.select(e)!==t.admission)return null;const s=Ce(e.repositoryContext,t.workspaceId),r=s.ownership;return!r||r.demandId!==t.demandId||r.admission!==t.admission||r.request.workspaceId!==t.workspaceId?null:{status:s.status,scope:s.scope,revision:s.revision,roots:s.status==="ready"?g(s.roots).map(a=>a.context):[],unavailableReason:s.unavailableReason}}),xn=n.createSelector((e,t)=>{if(t.admission===null||v.select(e)!==t.admission)return null;const s=e.repositoryContext.selectionEdits,r=s?k(s,t.editId):void 0;return r&&r.status!=="closed"&&r.owner.admission===t.admission&&x(r.owner.root)===x(t.root)?r:null}),Mn=n.createSelector((e,t)=>{const s=e.repositoryContext.selectionEdits;return!!s&&g(s).some(r=>r.owner.root.workspaceId===t&&r.owner.admission===v.select(e)&&(r.status==="capturing"||r.status==="pending"&&(!r.observation||r.observation.attempt?.status==="pending")))}),Ln=n.createSelector((e,t)=>{if(t.admission===null||v.select(e)!==t.admission||t.hostContext===null||dt.select(e,t.root.workspaceId)!==t.hostContext)return null;const s=e.repositoryContext.nativeReviewAttempts,r=s?k(s,t.attemptId):void 0;return r&&r.status!=="closed"&&r.owner.admission===t.admission&&r.owner.hostContext===t.hostContext&&x(r.owner.root)===x(t.root)?r:null}),Dn=n.createSelector((e,t)=>e.repositoryContext.nativeReviewAttempts?k(e.repositoryContext.nativeReviewAttempts,t):void 0),be={auggie:"npm install -g @augmentcode/auggie","claude-code":"curl -fsSL https://claude.ai/install.sh | bash",codex:"npm i -g @openai/codex",opencode:"curl -fsSL https://opencode.ai/install | bash",droid:"curl -fsSL https://app.factory.ai/cli | sh",grok:"npm i -g @xai-official/grok",cursor:"curl https://cursor.com/install -fsS | bash",cortex:"curl -LsS https://ai.snowflake.com/static/cc-scripts/install.sh | sh"};function Un(e){return Object.hasOwn(be,e)?be[e]:void 0}const ms=["venv",".venv","virtualenv","node_modules","google-cloud-sdk","__pycache__",".pytest_cache",".mypy_cache",".ruff_cache",".tox",".nox"];function hs(e){return e.replace(/\\/g,"/").split("/").filter(t=>t.length>0&&t!==".")}function fs(e){const t=new Set(ms);return hs(e).some(s=>t.has(s))}const Ss=new Set(["lastActivity","statusMessage","statusImageAssetId"]),gs=new Set([".git",".playwright-cli",".svelte-kit",".vite",".turbo",".cache",".parcel-cache",".next",".nuxt",".output","build","coverage","dist","playwright-report","target","test-results"]);function ys(e){return e.replace(/\\/g,"/").split("/").filter(t=>t.length>0&&t!==".")}function bs(e){if(!e.type.startsWith("file:"))return null;const t=e.data,s=t?.relativePath??t?.path??t?.filePath;return typeof s=="string"&&s.length>0?s:null}function ks(e){const t=bs(e);return!t||fs(t)?!1:!ys(t).some(s=>gs.has(s))}function ws(e){if(e.type==="workspace:displayStatus-changed")return!0;if(e.type!=="workspace:updated")return!1;const t=e.data;if(!t?.changes||typeof t.changes!="object"||Array.isArray(t.changes))return!1;const s=Object.keys(t.changes).filter(r=>r!=="workspaceId");return s.length>0&&s.every(r=>Ss.has(r))}function h(e){return typeof e=="string"?e.trim():""}function R(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function ke(e){const t=R(e.data),s=h(t.agentId)||h(e.sessionId),r=h(t.messageId);return s&&r?JSON.stringify([s,r]):""}function Is(e){const t=R(e.data),s={workspaceId:e.workspaceId,closable:!0},r=a=>a?{...s,type:"note",noteId:a,title:h(t.title)||h(t.noteTitle)||p.layout_tabTypes_note_title()}:null;switch(e.type){case"note:created":case"note:updated":case"comment:added":case"comment:resolved":return r(h(t.noteId));case"task:status-changed":return r(h(t.noteId)||h(t.linkedNoteId));case"spec:updated":case"goal:updated":return r("spec");case"agent:created":case"agent:renamed":case"agent:restored":case"agent:updated":case"agent:message":case"agent:user-message:sent":{const a=h(t.agentId)||h(e.sessionId);return a?{...s,type:"agent",agentId:a,title:h(t.agentName)||p.layout_tabTypes_agent_title()}:null}case"file:changed":{const a=h(t.path)||h(t.relativePath);return a&&t.action!=="delete"?{...s,type:"file",filePath:a,title:a.split(/[\\/]/).pop()||a}:null}case"git:commit":{const a=h(t.commit),o=h(t.gitRootId);return a?{...s,type:"changes",title:p.layout_tabTypes_changes_title(),data:{commitHash:a,...o?{gitRootId:o}:{}}}:null}default:return null}}function we(e,t){const s=R(e.data),r=Object.fromEntries(Object.entries(s).filter(([,c])=>typeof c=="string")),a=c=>t?p.workspace_peopleActivity_actorAction_label({name:t,action:c}):c;switch(e.type){case"note:created":case"note:updated":case"note:deleted":case"spec:updated":case"goal:updated":return O({...e,actor:{...e.actor,name:t},data:r});case"agent:created":case"agent:renamed":case"agent:deleted":case"agent:restored":case"git:commit":case"git:push":case"git:pull":case"git:branch":case"git:merge":return a(O({...e,actor:{...e.actor,name:void 0},data:r}));case"agent:updated":return h(s.modelId)||s.completionReportCleared===!0?a(O({...e,actor:{...e.actor,name:void 0},data:s})):null;case"file:changed":return ks(e)?O({...e,actor:{...e.actor,name:t},data:{path:h(s.path)||h(s.relativePath),action:h(s.action)}}):null;case"comment:added":return t?p.events_activity_authorCommented_label({author:t}):p.workspace_peopleActivity_commented_label();case"comment:resolved":return s.resolved===!1?a(p.events_activity_reopenedCommentThread_label()):s.resolved===!0?a(p.events_activity_resolvedCommentThread_label()):null;case"agent:message":case"agent:user-message:sent":{const c=h(s.agentName)||h(s.toAgentName);return a(c?p.workspace_peopleActivity_messagedAgent_label({agent:c}):p.workspace_peopleActivity_sentMessage_label())}case"task:status-changed":return a(O({...e,actor:{...e.actor,name:void 0},data:{taskName:h(s.taskName)||h(s.noteTitle),newStatus:h(s.newStatus)||h(s.status)}}));case"workspace:created":return a(p.events_activity_createdWorkspace_label());case"workspace:updated":{if(ws(e))return null;const c=R(s.changes);if(Object.keys(c).filter(l=>l!=="workspaceId").length===0)return null;const i=h(c.title);return a(i?p.events_activity_renamedWorkspaceTo_label({title:i}):p.events_activity_updatedWorkspace_label())}default:return null}}function W(e,t){const s=h(e);return s===t||/^(user|you|system|unknown|anonymous|local user)$/i.test(s)?"":s}function _s(e,t,s,r){const a=new Map(s.map(u=>[u.principalId,u])),o=new Map;for(const u of t){if(u.workspaceId!==e||u.type!=="agent:last-message")continue;const d=R(u.data),f=de({role:d.role==="user"?"user":"system",author:d.author,metadata:d.metadata}),S=ke(u);if(!f||!S||typeof d.lastUserMessage!="string")continue;const b=Wt({id:h(d.messageId),role:"user",timestamp:u.timestamp,contentBlocks:[{type:"text",text:d.lastUserMessage}],author:f,metadata:d.metadata},r);b&&o.set(S,b)}const c=new Set,i=new Set,l=[];let m=0;for(const u of t){if(u.workspaceId!==e||!h(u.id)||c.has(u.id))continue;const d=Date.parse(u.timestamp);if(!Number.isFinite(d)){m++;continue}const f=R(u.data),S=u.type==="agent:message",b=S?de({role:f.role==="user"?"user":"system",author:f.author,metadata:f.metadata}):null;if(S?!b:u.actor?.type!=="user"){S&&f.role==="user"&&u.actor?.type==="user"&&pt(f.metadata)&&l.push({row:null,timestamp:d,segment:m});continue}const Fe=S?h(f.messageId):"",T=S?ke(u):"";if(T&&i.has(T))continue;const C=h(u.actor?.id),Y=C?a.get(C):void 0,L=b?W(b.displayName,b.principalId??"")||W(b.login,b.principalId??""):W(u.actor.name,C)||W(Y?.displayName,C)||W(Y?.login,C),ce=we(u,"");if(!ce)continue;if(!L){l.push({row:null,timestamp:d,segment:m});continue}const D=S?o.get(T)??null:null,ie=D?p.workspace_peopleActivity_actorAction_label({name:L,action:D}):we(u,L);ie&&(c.add(u.id),T&&i.add(T),l.push({timestamp:d,segment:m,row:{id:u.id,name:L,principalId:b?h(b.principalId)||null:C||null,avatarUrl:b?b.avatarUrl:Y?.avatarUrl??null,label:ie,actionLabel:D??ce,continuation:!1,timestamp:u.timestamp,destination:Is(u),messageId:Fe||null,messagePreview:D}}))}l.sort((u,d)=>d.timestamp-u.timestamp);const y=[];for(const[u,d]of l.entries()){if(!d.row)continue;const f=l[u-1],S=f?f.timestamp-d.timestamp:NaN;d.row.continuation=!!(d.row.principalId&&f?.row?.principalId===d.row.principalId&&f.segment===d.segment&&Number.isFinite(S)&&S>=0&&S<=15*6e4),y.push(d.row)}return y}const jn=n.createSelector(e=>e.workspaceEvents.subscriptionAttempt),Gn=n.createSelector(e=>e.workspaceEvents.subscriptionGeneration),vs=n.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]??te).events),qn=n.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]??te).nextToken),Fn=n.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]?.peopleRequestId??null)!==null),Hn=n.createSelector((e,t)=>e.workspaceEvents.byWorkspaceId[t]?.peopleError??null),$n=n.createSelector((e,t)=>e.workspaceEvents.byWorkspaceId[t]?.peopleInitialized??!1),Ue=n.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]??te).peopleStreams),Bn=n.createSelector((e,t)=>Object.values(Ue.select(e,t)).every(s=>s.initialized&&s.nextToken===null)),Vn=n.createSelector((e,t,s)=>{const r=vs.select(e,t),o=_s(t,r,Ct.select(e,t),M.select(e,t)?.ownerPrincipalId)[s-1]?.timestamp,c=Ue.select(e,t);return["user","message"].filter(i=>{const l=c[i];if(!l.initialized)return!0;if(l.nextToken===null)return!1;const m=r.find(y=>y.id===l.oldestEventId)?.timestamp;return!o||!m||!(Date.parse(m)<=Date.parse(o))})}),zn=n.createSelector((e,t)=>{const s=[],r=new Set,a=new Set,o=c=>{const i=c.block.attachmentId??c.id;if(!r.has(i)){if(!c.block.attachmentId&&c.block.data&&!c.block.dataTruncated){const l=`${c.block.mimeType}/${c.block.data}`;if(a.has(l))return;a.add(l)}r.add(i),s.push(c)}};for(const[c,i]of Object.entries(Nt.select(e,t)))for(const l of g(i))l.imageData&&l.imageMimeType?o({id:`draft/${c}/${l.id}`,name:l.label,block:{type:"image",data:l.imageData,mimeType:l.imageMimeType}}):l.type==="file"&&(l.attachmentId||l.placementStatus)&&o({id:`draft/${c}/${l.id}`,name:l.label,placementStatus:l.placementStatus,block:{type:l.attachmentMimeType?.startsWith("image/")?"image":"file",attachmentId:l.attachmentId,mimeType:l.attachmentMimeType,fileName:l.label,size:l.attachmentSize}});for(const c of mt.select(e,t)){const i=ht.select(e,c),l=[...ft.select(e,c),...St.select(e,c)];for(const m of l)if(m.role==="user")for(const[y,u]of(m.contentBlocks??[]).entries()){if(u.type!=="image"&&!xt(u))continue;const d=u.id?i?.[ze(m.id,u.id)]:void 0,f=d?.status==="loaded"?d.block:u;o({id:`${c}/${m.id}/${u.id??y}`,name:f.fileName,block:f,agentId:c,messageId:m.id,hydration:d})}}return s}),Cs=n.createSelector((e,t)=>e.context.byWorkspaceId[t]??Ke),As=n.createSelector((e,t)=>g(Cs.select(e,t).items)),Kn=n.createSelector((e,t)=>As.select(e,t).filter(s=>!s.parentNoteId)),Jn=n.createSelector((e,t)=>e.agentLock.byWorkspaceId[t]?.lockedAgentIds??je),Yn=n.createSelector((e,t)=>e.agentLock.byWorkspaceId[t]?.lockedFilePaths??je),je={},Xn=n.createSelector((e,t,s)=>{const r=e.gitWrite.byWorkspaceId[t]?.operations;return r?k(r,s):void 0}),Ge=n.createSelector((e,t)=>{const s=e.gitWrite.byWorkspaceId[t]?.operations;return s?g(s):[]}),Zn=n.createSelector((e,t)=>Ge.select(e,t).some(s=>s.status==="queued"||s.status==="running")),Qn=n.createSelector((e,t)=>Ge.select(e,t).filter(s=>s.operation.kind==="partialCommit"&&(s.status==="queued"||s.status==="running")));function Ie(e){return e.title||`PR #${e.number}`}const oe=n.createSelector((e,t)=>{const s=e.gitRoots?.byWorkspaceId?.[t];return s?g(s.gitRoots):[]});function Es(e){return{key:"primary",isPrimary:!0,path:e.worktreePath??e.path,branch:e.branch,repoOwner:e.repositoryOwner,repoName:e.repositoryName,prNumber:e.prNumber,prUrl:e.prUrl,prStatus:e.prStatus,pullRequests:e.pullRequests}}function Rs(e){return{key:e.id,isPrimary:!1,path:e.path,branch:e.branch,repoOwner:e.repoOwner,repoName:e.repoName,prNumber:e.prNumber,prUrl:e.prUrl,prStatus:e.prStatus,pullRequests:e.pullRequests,gitRoot:e}}const ea=n.createSelector((e,t)=>{const s=M.select(e,t),r=oe.select(e,t).map(Rs);return s?[Es(s),...r]:r}),ta=n.createSelector((e,t)=>oe.select(e,t).length>0),sa=n.createSelector(e=>Object.entries(e.gitRoots?.byWorkspaceId??{}).filter(([,t])=>Object.keys(t.consumers??{}).length>0).map(([t])=>t)),Ts=n.createSelector((e,t,s)=>k((e.acceptWorkflow.byWorkspaceId[t]??Je).operations,s)),ra=n.createSelector((e,t,s)=>Ts.select(e,t,s)?.status==="running"),na=n.createSelector((e,t)=>e.acceptWorkflow.byWorkspaceId[t]?.mergeDrawerOpen??!1),aa=n.createSelector((e,t)=>{const s=gt.select(e,t)?.hasRemote??!1,r=M.select(e,t)?.pullRequests?.some(a=>a.status===le.Open||a.status===le.Draft)??!1;return{squash:!1,viaPR:s&&r,pushAfter:s,...e.acceptWorkflow.byWorkspaceId[t]?.mergeOptions}}),oa=n.createSelector(e=>Object.keys(e.acceptWorkflow.byWorkspaceId).filter(t=>e.acceptWorkflow.byWorkspaceId[t].observerRequested)),ca=n.createSelector((e,t)=>{const s=M.select(e,t),r=yt.select(e,t),a=bt.select(e,t),o=s?.repositoryOwner&&s.repositoryName?`${s.repositoryOwner}/${s.repositoryName}`:void 0,c=At(Et(s?.pullRequests,s?.activePullRequest,(i,l)=>Rt(i,s?.repositoryOwner,s?.repositoryName,l),Ie,o),kt.select(e,t),o,oe.select(e,t),Ie).own;return{visible:(e.acceptWorkflow.byWorkspaceId[t]?.consumerCount??0)>0,ready:It.select(e,t),owner:!wt.select(e,t),authenticated:Dt.select(e),pushedCount:r.filter(i=>i.isPushed).length,hasRemote:a.hasRemote,clearReset:a.hasResetToTrunk&&c.some(i=>i.status!=="merged"),clearMerge:!!(a.mergeHeadSha&&r[0]?.hash&&a.mergeHeadSha!==r[0].hash)}}),ia=n.createSelector((e,t,s)=>e.bgExecutor?.byWorkspaceId[t]?.executors[s]??Ye),Ps=n.createSelector((e,t)=>e.prWorkflow.byWorkspaceId[t]??Xe);n.createSelector((e,t,s)=>Ps.select(e,t).operations[s]);const la=n.createSelector(e=>Object.keys(e.noteReadTracking.unreadNoteIds)),ua=n.createSelector(e=>e.noteReadTracking.readRecords),Os="host.providerTestPrompt",Ws=qt("ok",[he({ok:fe(!0)}).passthrough(),he({ok:fe(!1),reason:Se().min(1),message:Se()}).passthrough()]),Ns=3e5;async function da(e){const t=await Ae(Os,{providerId:e.providerId,...e.model?{model:e.model}:{}},{timeoutMs:Ns}),s=Ws.parse(t);return(s.ok||s.reason==="auth-required")&&J(e.providerId),s}const xs=-1,Ms=/^remote-script-lost:\s*/,Ls=["idle","starting","running","restarting","exited"],_e=e=>!!e&&typeof e=="object"&&!Array.isArray(e),ve=e=>typeof e=="string"&&e.trim().length>0;function Ds(e){return _e(e)&&ve(e.remoteAgentId)&&ve(e.nodeId)&&_e(e.runtime)&&Ls.includes(e.runtime.status)}function pa(e){return Array.isArray(e.machineRuns)?e.machineRuns.filter(Ds):[]}function ma(e,t,s){const r=Ut(e.nodeId,s)??{nodeId:e.nodeId,name:p.remoteAgent_location_unknownMachine(),platform:null,state:"ready"};if(s&&s.id===e.nodeId)return r;const a=t?.nodeId===e.nodeId?t:null;return{...r,name:a?.nodeName?.trim()||r.name,platform:jt(a?.placement?.os,a?.placement?.arch)}}function Us(e){return e.status==="exited"&&e.exitCode===xs}function js(e){const t=e.error?.trim().replace(Ms,"").trim();switch(t){case"the machine disconnected":return p.scripts_remote_lostDisconnected_label();case"the machine was removed":return p.scripts_remote_lostRemoved_label();case"the agent was deleted":return p.scripts_remote_lostAgentDeleted_label();case"the agent was stopped for good":return p.scripts_remote_lostAgentStopped_label();default:return t||p.scripts_remote_lostReason_fallback()}}function ha(e){if(Us(e))return{kind:"lost",label:p.scripts_remote_lost_tooltip({reason:js(e)})};const t=Gt(e);switch(t){case"running":return{kind:t,label:p.terminal_quakeOverlay_status_running()};case"restarting":return{kind:t,label:p.workspace_devScripts_restarting_label()};case"idle":return{kind:t,label:p.terminal_quakeOverlay_status_idle()};case"succeeded":return{kind:t,label:p.terminal_quakeOverlay_status_exitedZero()};case"failed":return{kind:t,label:p.terminal_quakeOverlay_status_errorCode({code:e.exitCode??1})};case"stopped":return{kind:t,label:p.terminal_quakeOverlay_status_stoppedSignal({signal:(e.exitCode??128)-128})};default:return{kind:t,label:p.terminal_quakeOverlay_status_exited()}}}const G=e=>typeof e=="string"&&e.length>0,Gs=/\bremote-script-agent-ending:/;function fa(e){return!!e&&Gs.test(e)}function Sa(e){if(!e||typeof e!="object")return null;const t=e.data;if(!t||typeof t!="object")return null;const s=t,r=e instanceof Error&&e.message?{message:e.message}:{};return s.code==="machine-update-required"?{success:!1,code:"machine-update-required",update:s.update==="backend"?"backend":"machine",...G(s.machineVersion)?{machineVersion:s.machineVersion}:{},...G(s.backendVersion)?{backendVersion:s.backendVersion}:{},...r}:s.code==="machine-unreachable"?{success:!1,code:"machine-unreachable",attempts:Array.isArray(s.attempts)?s.attempts.flatMap(o=>{const c=o??{};return G(c.route)&&G(c.error)?[{route:c.route,error:c.error}]:[]}):[],...r}:null}function ga(e){const s=e.filter(a=>a.runtime.status==="running"&&a.runtime.detectedUrl?.trim()).sort((a,o)=>(o.runtime.startedAt??"").localeCompare(a.runtime.startedAt??""))[0],r=s?.runtime.detectedUrl?.trim();return!s||!r?null:{scriptId:s.id,name:s.name,url:r}}const qs={status:"idle",error:null},Fs=n.createSelector((e,t)=>e.workspaceLifecycle.loadByWorkspaceId[t]??qs);n.createSelector((e,t)=>Fs.select(e,t).error);const ya=n.createSelector((e,t)=>k(e.workspace.workspaces,t)??e.workspace.pendingCreations[t]),qe=n.createSelector((e,t)=>e.workspaceLifecycle.sessionPhaseByWorkspaceId[t]),Hs=e=>e==="hydrated"||e==="live",ba=n.createSelector((e,t)=>{const s=qe.select(e,t);return s==="hydrated"||s==="live"}),ka=n.createSelector(e=>{const t=e.workspaceLifecycle.sessionPhaseByWorkspaceId;return Object.keys(t).filter(s=>Hs(t[s]))}),wa=n.createSelector((e,t)=>qe.select(e,t)==="live");function Ia(e){const{selectedProviderId:t,activeProviderId:s,recommitActive:r,dispatch:a}=e;if(t&&!(!r&&t===s))return a(Ze({providerId:t,enabled:!0})),a(Qe(t)),a(et()),t}function _a(e){const t=[];for(const s of e){let r={};if(s.metadata)try{r=JSON.parse(s.metadata)}catch{}const a=[];if(a.push(`[${s.identifier}] ${s.title}`),s.url&&a.push(`URL: ${s.url}`),s.description&&a.push(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DLIkH-mx.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/Y9-4hTF9.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/tU_ZJtMw.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CO4a0yRH.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CrWhihJ_.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CEsW1euQ.js","/app/immutable/chunks/DOH10_LL.js","/app/immutable/chunks/CIpI7Qrh.js","/app/immutable/chunks/cFbB-5Cu.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/CpHzYkzi.js","/app/immutable/chunks/aQy6qVNs.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/D-l6NLYy.js","/app/immutable/chunks/DwrUEXuQ.js","/app/immutable/chunks/C2XebNhA.js","/app/immutable/chunks/GXoNce_4.js","/app/immutable/chunks/BPY8OTRz.js","/app/immutable/chunks/B7myJZdQ.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/5GYSXevc.js","/app/immutable/chunks/BYu-G7r_.js","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/Dn2BQOth.js","/app/immutable/chunks/CD1fj6ns.js","/app/immutable/chunks/Bv2KudWv.js","/app/immutable/chunks/BL2lJmRT.js","/app/immutable/chunks/q6hitSEG.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/BZQDFgmp.js","/app/immutable/chunks/CPKMQWOs.js","/app/immutable/chunks/C6vwP-ay.js","/app/immutable/chunks/BLgIfeYS.js","/app/immutable/chunks/DU9Ky5os.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/Mc93eSxl.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/ClH0Gega.js","/app/immutable/chunks/DNWBkvFP.js","/app/immutable/chunks/aos1n-nT.js","/app/immutable/chunks/ddhULx4L.js","/app/immutable/chunks/DKzgMUBy.js","/app/immutable/chunks/Q9dh-ELL.js","/app/immutable/chunks/jdYPqvvP.js","/app/immutable/chunks/AhLUcdeh.js"])))=>i.map(i=>d[i]);
2
+ import{Iz as n,nH as I,nx as g,nw as k,m2 as Z,qr as Q,i6 as ee,vf as He,jz as $e,CZ as Be,uM as Ve,nO as Ce,m5 as te,q1 as ze,m4 as Ke,lJ as Je,aM as le,lT as Ye,lZ as Xe,Fx as Ze,CX as Qe,zj as et,nM as tt,m7 as st}from"./tU_ZJtMw.js";import{b as rt,p as nt,F as at,z as ot}from"./ddhULx4L.js";import{aX as V,aT as se,cD as v,cG as ue,co as ct,dr as M,cj as it,aU as lt,cE as ut,dl as dt,o as de,O as pt,dn as mt,c3 as ht,ak as ft,au as St,ad as gt,bC as yt,cA as bt,cY as kt,cm as wt,bD as It}from"./ClH0Gega.js";import{x as _t}from"./aos1n-nT.js";import{ah as vt,cN as Ct,aX as At,av as Et,p as Rt}from"./AhLUcdeh.js";import{f as Tt}from"./DLIkH-mx.js";import{bo as p,_ as q}from"./Y9-4hTF9.js";import{i as w}from"./DNWBkvFP.js";import{I as Pt}from"./CEsW1euQ.js";import{L as P}from"./MA6Nl0OX.js";import{an as Ot,k as Wt,h as O,ag as Nt,t as xt}from"./jdYPqvvP.js";import{c as Mt}from"./ChTqQfQN.js";import{w as Lt}from"./5GYSXevc.js";import{r as x}from"./uXuxG9cN.js";import{aQ as Dt,Q as Ut,U as jt,y as Gt}from"./CD1fj6ns.js";import{M as pe,O as me,h as Ae}from"./DOH10_LL.js";import{d as qt,o as he,l as fe,s as Se}from"./CIyUrgF0.js";const cr=n.createSelector(e=>e.workspaceShare.open),ir=n.createSelector(e=>e.workspaceShare.workspaceId),lr=n.createSelector(e=>{const{open:t,workspaceId:s,session:r}=e.workspaceShare;return t&&s?{workspaceId:s,session:r}:null}),re=n.createSelector(e=>{const{open:t,workspaceId:s,withheld:r}=e.workspaceShare;return!t||!s||r||I(e.workspaceShare,s).inviteWithheld?!1:V.select(e,s)}),ur=n.createSelector(e=>e.workspaceShare.createRequest),dr=n.createSelector(e=>e.workspaceShare.mutationGeneration),pr=n.createSelector(e=>e.workspaceShare.workspaceTitle),mr=n.createSelector(e=>g(e.workspaceShare.members)),hr=n.createSelector((e,t)=>k(e.workspaceShare.members,t)!==void 0),fr=n.createSelector(e=>e.workspaceShare.open&&e.workspaceShare.workspaceId&&!e.workspaceShare.withheld&&!I(e.workspaceShare,e.workspaceShare.workspaceId).inviteWithheld?g(e.workspaceShare.invites).filter(t=>t.workspaceId===e.workspaceShare.workspaceId):[]),Sr=n.createSelector(e=>{const{principals:t,members:s}=e.workspaceShare;return g(t).filter(r=>!k(s,r.principalId)&&(r.hostRole===void 0||r.hostRole==="guest"))}),gr=n.createSelector(e=>e.workspaceShare.guestCount),yr=n.createSelector(e=>e.workspaceShare.guestLimit),br=n.createSelector(e=>e.workspaceShare.loadStatus==="loading"),kr=n.createSelector(e=>e.workspaceShare.loadError),wr=n.createSelector(e=>e.workspaceShare.creating),Ir=n.createSelector(e=>e.workspaceShare.createError),_r=n.createSelector(e=>e.workspaceShare.createdLink),vr=n.createSelector(e=>e.workspaceShare.revokingInviteId),Cr=n.createSelector(e=>e.workspaceShare.removingPrincipalId),Ar=n.createSelector(e=>e.workspaceShare.addingPrincipalId),Er=n.createSelector(e=>e.workspaceShare.actionError),Rr=n.createSelector((e,t)=>I(e.workspaceShare,t).loadStatus!=="idle"),Tr=n.createSelector((e,t)=>t?g(I(e.workspaceShare,t).members):[]),Pr=n.createSelector((e,t)=>!!t&&!I(e.workspaceShare,t).withheld&&V.select(e,t));n.createSelector((e,t)=>!!t&&I(e.workspaceShare,t).withheld);const Or=n.createSelector((e,t)=>t?I(e.workspaceShare,t).removingPrincipalId:null);n.createSelector((e,t)=>t?I(e.workspaceShare,t).removeError:null);const Wr=n.createSelector(e=>e.workspaceShare.integrationAuth),Nr=n.createSelector(e=>e.workspaceShare.ownerForgeMissing),z=n.createSelector(e=>re.select(e)&&se.select(e)&&e.workspaceShare.sharingContext!==null&&e.workspaceShare.sharingContext===v.select(e)),Ft=n.createSelector(e=>z.select(e)?e.workspaceShare.sharingEnabled:null),xr=n.createSelector(e=>z.select(e)&&e.workspaceShare.sharingChecking),Ht=n.createSelector(e=>z.select(e)&&e.workspaceShare.sharingEnabling),$t=n.createSelector(e=>z.select(e)?e.workspaceShare.sharingError:null),Mr=n.createSelector(e=>{if(!re.select(e))return!1;const t=e.workspaceShare;return!t.integrationAuthLoaded||se.select(e)&&Ft.select(e)===null&&$t.select(e)===null&&!Ht.select(e)?!0:g(t.members).length===0&&(t.loadStatus==="idle"||t.loadStatus==="loading")}),Lr=n.createSelector(e=>re.select(e)&&!!e.workspaceShare.workspaceId&&(se.select(e)||(ge.select(e)?ge.select(e)===ue.select(e)?.principal.id:ct.select(e,e.workspaceShare.workspaceId)))&&ue.select(e)?.capabilities.workspaceGuestRoles===!0),Dr=n.createSelector(e=>e.workspaceShare.pendingRolePrincipalIds),Ur=n.createSelector(e=>e.workspaceShare.roleErrors),ge=n.createSelector(e=>{const t=e.workspaceShare.workspaceId;return t?M.select(e,t)?.ownerPrincipalId??null:null}),Bt=n.createSelector(e=>{const t=v.select(e),s=rt.select(e);return{context:t,workspaceIds:t?s.filter(r=>V.select(e,r)):[]}}),jr=n.createSelector((e,t)=>{const s=I(e.workspaceShare,t);return{context:s.inviteContext,generation:s.inviteGeneration,withheld:s.inviteWithheld}}),Vt=[],zt=n.createSelector((e,t)=>{const s=v.select(e),r=I(e.workspaceShare,t);if(!s||r.inviteContext!==s||r.inviteWithheld||!V.select(e,t))return Vt;const a=e.presence?.context===s?e.presence.members[t]:void 0,o=new Set(a?g(a).flatMap(i=>i.identity?[JSON.stringify([i.identity.provider,i.identity.host.toLowerCase(),i.identity.externalUserId])]:[]):[]),c=new Set;return g(e.workspaceShare.invites).filter(i=>{if(i.workspaceId!==t||!i.pinLogin?.trim()||i.revokedAt||i.redeemedAt&&!i.reusable||!(Date.parse(i.expiresAt)>r.inviteReceivedAt))return!1;const l=i.pinIdentity??(i.pinGithubUserId!==void 0?{provider:"github",host:"github.com",externalUserId:String(i.pinGithubUserId)}:null);if(a&&i.redeemedByPrincipalId&&k(a,i.redeemedByPrincipalId))return!1;if(!l)return!0;const m=JSON.stringify([l.provider,l.host.toLowerCase(),l.externalUserId]);return o.has(m)||c.has(m)?!1:(c.add(m),!0)})}),Gr=n.createSelector(e=>{const s=Bt.select(e).workspaceIds.flatMap(r=>zt.select(e,r).map(a=>Date.parse(a.expiresAt)));return s.length?Math.min(...s):null});function qr(e){return Object.entries(e).some(([t,s])=>s.available&&_t(t,s.authenticated))}const Fr=n.createSelector(e=>e.hostRequirements.git),Hr=n.createSelector(e=>e.hostRequirements.node),$r=n.createSelector(e=>e.hostRequirements.gh),Br=n.createSelector(e=>e.hostRequirements.checking),Vr=n.createSelector(e=>e.hostRequirements.hasCheckedOnce);function Ee(e){const t=e.gitlabAuth?.statusFailed===!0;return vt({labsEnabled:e.userPreferences?.labsPlainFolderWorkspacesEnabled===!0,protocolVersion:e.daemonHealth?.stats?.protocolVersion,githubConnected:e.githubAuth?.isAuthenticated===!0,githubSettled:e.githubAuth?.statusSettled===!0,githubFailed:e.githubAuth?.statusFailed===!0,gitlabConnected:e.gitlabAuth?.isConfigured===!0,gitlabSettled:e.gitlabAuth?.statusReady===!0||t,gitlabFailed:t})}const zr=n.createSelector(Ee),Kt=n.createSelector(e=>!it.select(e)),Kr=n.createSelector(e=>(e.hostRequirements.node.ok||!Kt.select(e))&&(e.hostRequirements.git.available||Ee(e))),Jr=n.createSelector(e=>{const t=e.hostRequirements.providerCli;return t?{context:t.context,warnings:g(t.warnings)}:void 0}),Yr="22.0.0";function Jt(e){return e.length>15?`${e.slice(0,15)}…`:e}function H(e){return e.name?.trim()||Jt(e.clientId)}function Xr(e){const{eligibleClients:t,ownClientId:s,driving:r,pinnedClientId:a}=e,o=t.find(l=>l.clientId===s&&l.connected),c=r!==null&&!r.connected,i=!r||r.clientId===s;return{mode:c?"offline":i?"here":"elsewhere",hostName:r?H(r):o?H(o):"",canSwitchHere:!!(o&&a!==s)}}const Zr=n.createSelector(e=>e?.browserClients?.ownClientId??null),Qr=n.createSelector(e=>e?.browserClients?.ownClientIdConfirmed===!0);n.createSelector(e=>g(e.browserClients.liveClients));const en=n.createSelector((e,t)=>t?e?.browserClients?.byWorkspaceId[t]?.liveClientsLoaded??!1:e?.browserClients?.liveClientsLoaded??!1);n.createSelector((e,t)=>k(e.browserClients.liveClients,t));const tn=n.createSelector((e,t)=>(e?.browserClients?.byWorkspaceId[t]??Z).browserClient),sn=n.createSelector((e,t)=>{const s=e?.browserClients?.byWorkspaceId[t];return s?.pinnedClientId!==void 0||s?.browserClient!=null});function X(e){const t=e.prettyHostname??e.hostname??e.name;return{clientId:e.clientId,...t!==void 0?{name:t}:{},connected:!0}}const rn=n.createSelector((e,t)=>{const s=e?.browserClients??Q,r=s.byWorkspaceId[t]?.liveClients??ee(),a=g(r).filter(y=>y.capabilities.browserExec===!0).map(X),o=(s.byWorkspaceId[t]??Z).browserClient,c=s.byWorkspaceId[t],i=c?.pinnedClientId!==void 0?c.pinnedClientId:o?.source==="workspace"?o.clientId:null,l=i===null?Tt(o):void 0;let m=null;if(o?.resolved){const y=k(r,o.resolved.clientId);m=y?X(y):{...o.resolved,connected:!0}}else o?.source==="workspace"?m={clientId:o.clientId,connected:!1}:l&&(m={clientId:l.clientId,connected:!1});return{eligibleClients:a,ownClientId:s.ownClientId??"",routedVia:o?.source==="default"?l?.via:void 0,driving:m,pinnedClientId:i}}),nn=n.createSelector((e,t)=>{const s=e?.browserClients??Q;if(!s.ownClientId||!s.ownClientIdConfirmed)return!1;const r=s.byWorkspaceId[t]?.liveClients??ee(),a=k(r,s.ownClientId);return a!==void 0&&a.capabilities.browserExec!==!0}),an=n.createSelector((e,t,s)=>{const r=e?.browserClients??Q,a=s?r.byWorkspaceId[s]?.liveClients??ee():r.liveClients,o=s?r.byWorkspaceId[s]?.liveClientsLoaded:r.liveClientsLoaded,c=k(a,t);return c?{name:H(X(c)),connected:!0}:{name:H({clientId:t}),connected:!o}}),on=n.createSelector((e,t)=>(e?.browserClients?.byWorkspaceId[t]??Z).tabsRevision),cn=n.createSelector(e=>Object.entries(e.browserClients?.byWorkspaceId??{}).filter(([,t])=>Object.keys(t.consumers??{}).length>0).map(([t])=>t)),N=new Map;function ln(e,t){return N.set(e,t),()=>{N.get(e)===t&&N.delete(e)}}async function un(e){const t=N.get(e);return t?t():null}function dn(e){N.delete(e)}const Re="From repo config",pn="repo-config";function mn(e,t){return t==="repo-config"?p.workspace_setupScriptEditor_fromRepoConfig_name():t==="custom"?p.workspace_setupScriptEditor_custom_name():e}function Te(e){if(!e||typeof e!="object"||Array.isArray(e))return{setupScript:null};const t=e.setupScript;return{setupScript:typeof t=="string"&&t.trim().length>0?t:null}}function Yt(e){let t;try{t=JSON.parse(e)}catch{return null}return Te(t).setupScript}async function hn(e){if(!e)return null;try{const t=await w(Pt.SETUP_SCRIPTS.READ_REPO_CONFIG,{repoPath:e}),s=t?.success?t.data?.content:null;return typeof s=="string"?Yt(s):null}catch{return null}}async function fn(e,t,s){if(!e||!t)return null;try{const{appClient:r}=await q(async()=>{const{appClient:o}=await import("./DLIkH-mx.js").then(c=>c.o);return{appClient:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]),import.meta.url),a=await r.integrations.githubRepoConfig(e,t,s);return Te(a.config).setupScript}catch{return null}}function Sn(e){const t=e.setupScript.trim();return t?e.setupScriptNameSource==="repo-config"&&e.setupScriptName===Re&&e.repoConfigScriptRepo===e.repoPath&&t===(e.repoConfigScript??"").trim()?void 0:t:e.explicitChoice?"cd .":void 0}function gn(e){const{repoConfigScript:t,lastUsed:s,genericTemplate:r}=e;return t?{content:t,name:Re,source:"repo-config"}:s?{content:s.content,name:s.nameSource==="repo-config"?"Custom":s.name,source:s.nameSource==="repo-config"?"custom":s.nameSource??"named"}:r?{content:r.content,name:r.name,source:"named"}:{content:"",name:"Custom",source:"custom"}}const Pe="setup-scripts:last-used-by-repo",Oe="setup-scripts:recent-by-repo",$=20,We=10,Xt=["repo-config","custom","named"];function ne(e,t){return t?`${e}\0${t}`:e}function Ne(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e;return typeof t.name=="string"&&typeof t.content=="string"&&t.content.trim().length>0&&typeof t.usedAt=="string"&&(t.nameSource===void 0||Xt.includes(t.nameSource))}function B(){try{const e=localStorage.getItem(Pe);if(!e)return{};const t=JSON.parse(e);if(!t||typeof t!="object"||Array.isArray(t))return{};const s={};for(const[r,a]of Object.entries(t))r&&Ne(a)&&(s[r]=a);return s}catch{return{}}}function xe(){try{const e=localStorage.getItem(Oe);if(!e)return{};const t=JSON.parse(e);if(!t||typeof t!="object"||Array.isArray(t))return{};const s={};for(const[r,a]of Object.entries(t)){if(!r||!Array.isArray(a))continue;const o=a.filter(Ne);o.length>0&&(s[r]=o)}return s}catch{return{}}}function Zt(e,t){return e.name===t.name&&(e.nameSource??"named")===(t.nameSource??"named")&&e.content.trim()===t.content.trim()}function Me(e){return[...e].sort((t,s)=>s.usedAt.localeCompare(t.usedAt))}function Le(e){const t=[];for(const s of e)t.some(r=>Zt(r,s))||t.push(s);return t}function yn(e,t){if(!e)return[];const s=ne(e,t),r=xe()[s]??[],a=B()[s];return Le(Me(a?[...r,a]:r)).slice(0,We).map(c=>({name:c.name,content:c.content,nameSource:c.nameSource??"named",usedAt:c.usedAt}))}function Qt(e,t,s){try{const r=xe(),a=r[e]??(s?[s]:[]);r[e]=Le([t,...Me(a)]).slice(0,We);const o=Object.entries(r);o.length>$&&(o.sort(([,c],[,i])=>i[0].usedAt.localeCompare(c[0].usedAt)),o.length=$),localStorage.setItem(Oe,JSON.stringify(Object.fromEntries(o)))}catch{}}function bn(e,t){if(!e)return;const s=B()[ne(e,t)];return s?{name:s.name,content:s.content,nameSource:s.nameSource??"named"}:void 0}function kn(e,t,s){const r=t.content.trim();if(!e||!r)return;const a=ne(e,s),o={name:t.name,content:r,usedAt:new Date().toISOString(),nameSource:t.nameSource??"named"};Qt(a,o,B()[a]);try{const c=B();c[a]=o;const i=Object.entries(c);i.length>$&&(i.sort(([,l],[,m])=>m.usedAt.localeCompare(l.usedAt)),i.length=$),localStorage.setItem(Pe,JSON.stringify(Object.fromEntries(i)))}catch{}}const es={async isAuthenticated(e){try{return await w(P.IS_AUTHENTICATED,...e===void 0?[]:[{workspaceId:e}])}catch{return!1}},async getAuthState(e=!1,t){try{return await w(P.GET_AUTH_STATE,e,...t===void 0?[]:[{workspaceId:t}])}catch{return{isAuthenticated:!1,requiresDaemonAuth:!0}}},async getStatus(e){try{return await w(P.GET_STATUS,...e===void 0?[]:[{workspaceId:e}])}catch{return{isConfigured:!1,oauthUrl:""}}},async fetchMyIssues(e="assigned",t){return(await this.fetchMyIssuesPage(e,t===void 0?void 0:{workspaceId:t})).issues},async fetchMyIssuesPage(e="assigned",t){try{return await w(P.FETCH_MY_ISSUES,e,t)}catch{return{issues:[],nextToken:null}}},async searchIssues(e,t){return(await this.searchIssuesPage(e,t===void 0?void 0:{workspaceId:t})).issues},async searchIssuesPage(e,t){try{return await w(P.SEARCH_ISSUES,e,t)}catch{return{issues:[],nextToken:null}}}},wn=Object.freeze(Object.defineProperty({__proto__:null,linearAuthClient:es},Symbol.toStringTag,{value:"Module"})),_={IS_AUTHENTICATED:"sentry-auth:is-authenticated",SAVE_CONFIG:"sentry-auth:save-config",GET_AUTH_STATE:"sentry-auth:get-auth-state",LOGOUT:"sentry-auth:logout",FETCH_PROJECTS:"sentry-auth:fetch-projects",FETCH_ISSUES:"sentry-auth:fetch-issues",SEARCH_ISSUES:"sentry-auth:search-issues",GET_ISSUE:"sentry-auth:get-issue"},ts={async isAuthenticated(e){try{return await w(_.IS_AUTHENTICATED,...e===void 0?[]:[{workspaceId:e}])}catch{return!1}},async saveConfig(e,t){return await w(_.SAVE_CONFIG,{organization:e,apiToken:t})},async getAuthState(e){try{return await w(_.GET_AUTH_STATE,...e===void 0?[]:[{workspaceId:e}])}catch{return{isAuthenticated:!1}}},async logout(){await w(_.LOGOUT)},async fetchProjects(e){try{return await w(_.FETCH_PROJECTS,...e===void 0?[]:[{workspaceId:e}])}catch{return[]}},async fetchIssues(e){return(await this.fetchIssuesPage(e)).issues},async fetchIssuesPage(e){try{return await w(_.FETCH_ISSUES,e)}catch{return{issues:[],nextToken:null}}},async searchIssues(e,t){return(await this.searchIssuesPage(e,t)).issues},async searchIssuesPage(e,t,s){try{return await w(_.SEARCH_ISSUES,{query:e,project:t,...s})}catch{return{issues:[],nextToken:null}}},async getIssue(e,t){try{return await w(_.GET_ISSUE,e,...t===void 0?[]:[{workspaceId:t}])}catch{return null}}},In=Object.freeze(Object.defineProperty({__proto__:null,sentryAuthClient:ts},Symbol.toStringTag,{value:"Module"})),ae=n.createSelector(e=>{const t=v.select(e);return!t||!lt.select(e)?null:JSON.stringify([t,e.hostExecution.generation,e.repositoryCheckout.authorityGeneration,e.gitlabAuth.host,e.gitlabAuth.instanceBaseUrl,e.gitlabAuth.statusReady,e.gitlabAuth.isConfigured,e.gitlabAuth.user])}),K=n.createSelector((e,t)=>k(e.repositoryCheckout.forms,t)??null),_n=n.createSelector((e,t)=>{const s=K.select(e,t);return s?.admission===ae.select(e)&&s.status==="ready"?g(s.projects):[]}),vn=n.createSelector((e,t)=>{const s=K.select(e,t);return s?.admission===ae.select(e)&&s.status==="ready"?g(s.branches):[]}),ss=n.createSelector((e,t)=>{const s=K.select(e,t);return!s||s.status!=="ready"||s.admission!==ae.select(e)||!s.capture||!s.project||!s.branch?null:{checkoutId:s.capture.checkoutId,revision:s.capture.revision,projectPath:s.project.projectPath,branch:s.branch.name,commitSha:s.branch.commitSha,mode:s.mode}}),Cn=n.createSelector((e,t)=>{const s=ss.select(e,t);return!!s&&(s.mode==="direct"||K.select(e,t)?.warmStatus==="ready")}),An="__new-workspace__",En="__initializer__",Rn="compact-workspace-initializer-state-prompt",Tn="onboarding-prompt",U=20*1024*1024,ye=Mt("NewWorkspaceDraft");function Pn(e,t){if(e.length>U)return ye.warn("Draft text exceeds the size guard; skipping persistence",{textLength:e.length,limit:U}),null;const s=Ot(t);if(s.length===0)return{text:e};const r=[];let a=e.length+2,o=0;for(const c of s){const i=JSON.stringify(c).length+1;if(a+i>U){o+=1;continue}r.push(c),a+=i}return o>0&&ye.warn("Draft attachments exceed the size guard; persisting the ones that fit",{limit:U,attachmentCount:s.length,droppedCount:o}),r.length>0?{text:e,attachments:r}:{text:e}}const rs="host.providerAuthStatus";function ns(e={}){const t={};return e.workspaceId&&(t.workspaceId=e.workspaceId),typeof e.providerId=="string"&&e.providerId.length>0&&(t.providerId=e.providerId),typeof e.force=="boolean"&&(t.force=e.force),t}function as(e,t){const s=t.toLowerCase(),r=e.toLowerCase();return s.startsWith(r)?/^(['’]s\s+organization)?$/.test(s.slice(r.length)):!1}function os(e){const{email:t,orgName:s}=e??{};return t&&s?as(t,s)?t:`${t} · ${s}`:t||s||void 0}function cs(e){const t={};for(const s of e?.providers??[]){const r={authenticated:s.authenticated??void 0},a=os(s.identity);a!==void 0&&(r.authDetails=a),s.identity?.email&&(r.email=s.identity.email),t[s.id]=r}return t}const is=6e4,E=new Map,j=new Map,A=new Map;let F=0,De=0;const ls=e=>JSON.stringify([ut.select(n.state),De,e.workspaceId??null,e.providerId??"*"]);function us(e){if(e.method!=="events.event"||!e.params)return;const t=e.params,r=(t.event&&typeof t.event=="object"?t.event:t).type;return typeof r=="string"?r:void 0}function J(e){if(F+=1,e)for(const t of E.keys()){const[,,,s]=JSON.parse(t);(s===e||s==="*")&&E.delete(t)}else E.clear()}typeof pe=="function"&&pe(e=>{["provider:auth-changed","host:execution-context-changed"].includes(us(e)??"")&&J()});typeof me=="function"&&me(()=>{De+=1,J()});function ds(e={}){const t=ls(e);if(e.force)J(e.providerId);else{const o=E.get(t);if(o&&o.expiresAt>Date.now())return Promise.resolve(o.verdicts);o&&E.delete(t)}const s=j.get(t);if(!e.force&&s?.generation===F)return s.promise;if(s){const o=A.get(t);if(o)return o.force||=e.force===!0,o.promise;let c;const i=s.promise.catch(()=>({})).then(()=>(A.get(t)===c&&A.delete(t),ds({...e,force:c.force}))).finally(()=>{A.get(t)===c&&A.delete(t)});return c={force:e.force===!0,promise:i},A.set(t,c),i}const r=F,a=Ae(rs,ns(e)).then(cs).then(o=>(r===F&&E.set(t,{verdicts:o,expiresAt:Date.now()+is}),o)).finally(()=>{j.get(t)?.promise===a&&j.delete(t)});return j.set(t,{generation:r,promise:a}),a}function On(e,t=e,s="default",r,a){if(!Lt.select(n.state))return;const o=a??nt.select(n.state,t)??at.select(n.state,t)[0];if(!o)return;const c=ot.select(n.state,t,o),i={type:"discussion",title:r??(s==="new"?p.workspace_discussion_new_title():p.workspace_discussion_title()),workspaceId:e,closable:!0,data:{conversationId:s}},l=c?.tabs.find(m=>He(m,i));s==="new"&&n.dispatch($e(e)),n.dispatch(l?Be(t,l.id,o):Ve(t,i,o,void 0,!0,void 0,!0))}function Wn(e,t){return e.name?.trim()?e.name.trim():e.kind==="workspace"?e.id&&e.id!=="default"?p.workspace_discussion_conversation_title():p.workspace_discussion_title():e.participants.filter(r=>r.principalId!==t).map(r=>r.displayName||r.login||p.workspace_discussion_unknownAuthor_label()).join(", ")||p.workspace_discussion_group_title()}const ps=n.createSelector((e,t,s)=>{const r=Ce(e.repositoryContext,t);return s!==null&&r.binding===s?r:null});n.createSelector((e,t,s)=>{const r=ps.select(e,t.workspaceId,s);return r?.status==="ready"?k(r.roots,x(t))?.context:void 0});const Nn=n.createSelector((e,t)=>{if(t.admission===null||v.select(e)!==t.admission)return null;const s=Ce(e.repositoryContext,t.workspaceId),r=s.ownership;return!r||r.demandId!==t.demandId||r.admission!==t.admission||r.request.workspaceId!==t.workspaceId?null:{status:s.status,scope:s.scope,revision:s.revision,roots:s.status==="ready"?g(s.roots).map(a=>a.context):[],unavailableReason:s.unavailableReason}}),xn=n.createSelector((e,t)=>{if(t.admission===null||v.select(e)!==t.admission)return null;const s=e.repositoryContext.selectionEdits,r=s?k(s,t.editId):void 0;return r&&r.status!=="closed"&&r.owner.admission===t.admission&&x(r.owner.root)===x(t.root)?r:null}),Mn=n.createSelector((e,t)=>{const s=e.repositoryContext.selectionEdits;return!!s&&g(s).some(r=>r.owner.root.workspaceId===t&&r.owner.admission===v.select(e)&&(r.status==="capturing"||r.status==="pending"&&(!r.observation||r.observation.attempt?.status==="pending")))}),Ln=n.createSelector((e,t)=>{if(t.admission===null||v.select(e)!==t.admission||t.hostContext===null||dt.select(e,t.root.workspaceId)!==t.hostContext)return null;const s=e.repositoryContext.nativeReviewAttempts,r=s?k(s,t.attemptId):void 0;return r&&r.status!=="closed"&&r.owner.admission===t.admission&&r.owner.hostContext===t.hostContext&&x(r.owner.root)===x(t.root)?r:null}),Dn=n.createSelector((e,t)=>e.repositoryContext.nativeReviewAttempts?k(e.repositoryContext.nativeReviewAttempts,t):void 0),be={auggie:"npm install -g @augmentcode/auggie","claude-code":"curl -fsSL https://claude.ai/install.sh | bash",codex:"npm i -g @openai/codex",opencode:"curl -fsSL https://opencode.ai/install | bash",droid:"curl -fsSL https://app.factory.ai/cli | sh",grok:"npm i -g @xai-official/grok",cursor:"curl https://cursor.com/install -fsS | bash",cortex:"curl -LsS https://ai.snowflake.com/static/cc-scripts/install.sh | sh"};function Un(e){return Object.hasOwn(be,e)?be[e]:void 0}const ms=["venv",".venv","virtualenv","node_modules","google-cloud-sdk","__pycache__",".pytest_cache",".mypy_cache",".ruff_cache",".tox",".nox"];function hs(e){return e.replace(/\\/g,"/").split("/").filter(t=>t.length>0&&t!==".")}function fs(e){const t=new Set(ms);return hs(e).some(s=>t.has(s))}const Ss=new Set(["lastActivity","statusMessage","statusImageAssetId"]),gs=new Set([".git",".playwright-cli",".svelte-kit",".vite",".turbo",".cache",".parcel-cache",".next",".nuxt",".output","build","coverage","dist","playwright-report","target","test-results"]);function ys(e){return e.replace(/\\/g,"/").split("/").filter(t=>t.length>0&&t!==".")}function bs(e){if(!e.type.startsWith("file:"))return null;const t=e.data,s=t?.relativePath??t?.path??t?.filePath;return typeof s=="string"&&s.length>0?s:null}function ks(e){const t=bs(e);return!t||fs(t)?!1:!ys(t).some(s=>gs.has(s))}function ws(e){if(e.type==="workspace:displayStatus-changed")return!0;if(e.type!=="workspace:updated")return!1;const t=e.data;if(!t?.changes||typeof t.changes!="object"||Array.isArray(t.changes))return!1;const s=Object.keys(t.changes).filter(r=>r!=="workspaceId");return s.length>0&&s.every(r=>Ss.has(r))}function h(e){return typeof e=="string"?e.trim():""}function R(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function ke(e){const t=R(e.data),s=h(t.agentId)||h(e.sessionId),r=h(t.messageId);return s&&r?JSON.stringify([s,r]):""}function Is(e){const t=R(e.data),s={workspaceId:e.workspaceId,closable:!0},r=a=>a?{...s,type:"note",noteId:a,title:h(t.title)||h(t.noteTitle)||p.layout_tabTypes_note_title()}:null;switch(e.type){case"note:created":case"note:updated":case"comment:added":case"comment:resolved":return r(h(t.noteId));case"task:status-changed":return r(h(t.noteId)||h(t.linkedNoteId));case"spec:updated":case"goal:updated":return r("spec");case"agent:created":case"agent:renamed":case"agent:restored":case"agent:updated":case"agent:message":case"agent:user-message:sent":{const a=h(t.agentId)||h(e.sessionId);return a?{...s,type:"agent",agentId:a,title:h(t.agentName)||p.layout_tabTypes_agent_title()}:null}case"file:changed":{const a=h(t.path)||h(t.relativePath);return a&&t.action!=="delete"?{...s,type:"file",filePath:a,title:a.split(/[\\/]/).pop()||a}:null}case"git:commit":{const a=h(t.commit),o=h(t.gitRootId);return a?{...s,type:"changes",title:p.layout_tabTypes_changes_title(),data:{commitHash:a,...o?{gitRootId:o}:{}}}:null}default:return null}}function we(e,t){const s=R(e.data),r=Object.fromEntries(Object.entries(s).filter(([,c])=>typeof c=="string")),a=c=>t?p.workspace_peopleActivity_actorAction_label({name:t,action:c}):c;switch(e.type){case"note:created":case"note:updated":case"note:deleted":case"spec:updated":case"goal:updated":return O({...e,actor:{...e.actor,name:t},data:r});case"agent:created":case"agent:renamed":case"agent:deleted":case"agent:restored":case"git:commit":case"git:push":case"git:pull":case"git:branch":case"git:merge":return a(O({...e,actor:{...e.actor,name:void 0},data:r}));case"agent:updated":return h(s.modelId)||s.completionReportCleared===!0?a(O({...e,actor:{...e.actor,name:void 0},data:s})):null;case"file:changed":return ks(e)?O({...e,actor:{...e.actor,name:t},data:{path:h(s.path)||h(s.relativePath),action:h(s.action)}}):null;case"comment:added":return t?p.events_activity_authorCommented_label({author:t}):p.workspace_peopleActivity_commented_label();case"comment:resolved":return s.resolved===!1?a(p.events_activity_reopenedCommentThread_label()):s.resolved===!0?a(p.events_activity_resolvedCommentThread_label()):null;case"agent:message":case"agent:user-message:sent":{const c=h(s.agentName)||h(s.toAgentName);return a(c?p.workspace_peopleActivity_messagedAgent_label({agent:c}):p.workspace_peopleActivity_sentMessage_label())}case"task:status-changed":return a(O({...e,actor:{...e.actor,name:void 0},data:{taskName:h(s.taskName)||h(s.noteTitle),newStatus:h(s.newStatus)||h(s.status)}}));case"workspace:created":return a(p.events_activity_createdWorkspace_label());case"workspace:updated":{if(ws(e))return null;const c=R(s.changes);if(Object.keys(c).filter(l=>l!=="workspaceId").length===0)return null;const i=h(c.title);return a(i?p.events_activity_renamedWorkspaceTo_label({title:i}):p.events_activity_updatedWorkspace_label())}default:return null}}function W(e,t){const s=h(e);return s===t||/^(user|you|system|unknown|anonymous|local user)$/i.test(s)?"":s}function _s(e,t,s,r){const a=new Map(s.map(u=>[u.principalId,u])),o=new Map;for(const u of t){if(u.workspaceId!==e||u.type!=="agent:last-message")continue;const d=R(u.data),f=de({role:d.role==="user"?"user":"system",author:d.author,metadata:d.metadata}),S=ke(u);if(!f||!S||typeof d.lastUserMessage!="string")continue;const b=Wt({id:h(d.messageId),role:"user",timestamp:u.timestamp,contentBlocks:[{type:"text",text:d.lastUserMessage}],author:f,metadata:d.metadata},r);b&&o.set(S,b)}const c=new Set,i=new Set,l=[];let m=0;for(const u of t){if(u.workspaceId!==e||!h(u.id)||c.has(u.id))continue;const d=Date.parse(u.timestamp);if(!Number.isFinite(d)){m++;continue}const f=R(u.data),S=u.type==="agent:message",b=S?de({role:f.role==="user"?"user":"system",author:f.author,metadata:f.metadata}):null;if(S?!b:u.actor?.type!=="user"){S&&f.role==="user"&&u.actor?.type==="user"&&pt(f.metadata)&&l.push({row:null,timestamp:d,segment:m});continue}const Fe=S?h(f.messageId):"",T=S?ke(u):"";if(T&&i.has(T))continue;const C=h(u.actor?.id),Y=C?a.get(C):void 0,L=b?W(b.displayName,b.principalId??"")||W(b.login,b.principalId??""):W(u.actor.name,C)||W(Y?.displayName,C)||W(Y?.login,C),ce=we(u,"");if(!ce)continue;if(!L){l.push({row:null,timestamp:d,segment:m});continue}const D=S?o.get(T)??null:null,ie=D?p.workspace_peopleActivity_actorAction_label({name:L,action:D}):we(u,L);ie&&(c.add(u.id),T&&i.add(T),l.push({timestamp:d,segment:m,row:{id:u.id,name:L,principalId:b?h(b.principalId)||null:C||null,avatarUrl:b?b.avatarUrl:Y?.avatarUrl??null,label:ie,actionLabel:D??ce,continuation:!1,timestamp:u.timestamp,destination:Is(u),messageId:Fe||null,messagePreview:D}}))}l.sort((u,d)=>d.timestamp-u.timestamp);const y=[];for(const[u,d]of l.entries()){if(!d.row)continue;const f=l[u-1],S=f?f.timestamp-d.timestamp:NaN;d.row.continuation=!!(d.row.principalId&&f?.row?.principalId===d.row.principalId&&f.segment===d.segment&&Number.isFinite(S)&&S>=0&&S<=15*6e4),y.push(d.row)}return y}const jn=n.createSelector(e=>e.workspaceEvents.subscriptionAttempt),Gn=n.createSelector(e=>e.workspaceEvents.subscriptionGeneration),vs=n.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]??te).events),qn=n.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]??te).nextToken),Fn=n.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]?.peopleRequestId??null)!==null),Hn=n.createSelector((e,t)=>e.workspaceEvents.byWorkspaceId[t]?.peopleError??null),$n=n.createSelector((e,t)=>e.workspaceEvents.byWorkspaceId[t]?.peopleInitialized??!1),Ue=n.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]??te).peopleStreams),Bn=n.createSelector((e,t)=>Object.values(Ue.select(e,t)).every(s=>s.initialized&&s.nextToken===null)),Vn=n.createSelector((e,t,s)=>{const r=vs.select(e,t),o=_s(t,r,Ct.select(e,t),M.select(e,t)?.ownerPrincipalId)[s-1]?.timestamp,c=Ue.select(e,t);return["user","message"].filter(i=>{const l=c[i];if(!l.initialized)return!0;if(l.nextToken===null)return!1;const m=r.find(y=>y.id===l.oldestEventId)?.timestamp;return!o||!m||!(Date.parse(m)<=Date.parse(o))})}),zn=n.createSelector((e,t)=>{const s=[],r=new Set,a=new Set,o=c=>{const i=c.block.attachmentId??c.id;if(!r.has(i)){if(!c.block.attachmentId&&c.block.data&&!c.block.dataTruncated){const l=`${c.block.mimeType}/${c.block.data}`;if(a.has(l))return;a.add(l)}r.add(i),s.push(c)}};for(const[c,i]of Object.entries(Nt.select(e,t)))for(const l of g(i))l.imageData&&l.imageMimeType?o({id:`draft/${c}/${l.id}`,name:l.label,block:{type:"image",data:l.imageData,mimeType:l.imageMimeType}}):l.type==="file"&&(l.attachmentId||l.placementStatus)&&o({id:`draft/${c}/${l.id}`,name:l.label,placementStatus:l.placementStatus,block:{type:l.attachmentMimeType?.startsWith("image/")?"image":"file",attachmentId:l.attachmentId,mimeType:l.attachmentMimeType,fileName:l.label,size:l.attachmentSize}});for(const c of mt.select(e,t)){const i=ht.select(e,c),l=[...ft.select(e,c),...St.select(e,c)];for(const m of l)if(m.role==="user")for(const[y,u]of(m.contentBlocks??[]).entries()){if(u.type!=="image"&&!xt(u))continue;const d=u.id?i?.[ze(m.id,u.id)]:void 0,f=d?.status==="loaded"?d.block:u;o({id:`${c}/${m.id}/${u.id??y}`,name:f.fileName,block:f,agentId:c,messageId:m.id,hydration:d})}}return s}),Cs=n.createSelector((e,t)=>e.context.byWorkspaceId[t]??Ke),As=n.createSelector((e,t)=>g(Cs.select(e,t).items)),Kn=n.createSelector((e,t)=>As.select(e,t).filter(s=>!s.parentNoteId)),Jn=n.createSelector((e,t)=>e.agentLock.byWorkspaceId[t]?.lockedAgentIds??je),Yn=n.createSelector((e,t)=>e.agentLock.byWorkspaceId[t]?.lockedFilePaths??je),je={},Xn=n.createSelector((e,t,s)=>{const r=e.gitWrite.byWorkspaceId[t]?.operations;return r?k(r,s):void 0}),Ge=n.createSelector((e,t)=>{const s=e.gitWrite.byWorkspaceId[t]?.operations;return s?g(s):[]}),Zn=n.createSelector((e,t)=>Ge.select(e,t).some(s=>s.status==="queued"||s.status==="running")),Qn=n.createSelector((e,t)=>Ge.select(e,t).filter(s=>s.operation.kind==="partialCommit"&&(s.status==="queued"||s.status==="running")));function Ie(e){return e.title||`PR #${e.number}`}const oe=n.createSelector((e,t)=>{const s=e.gitRoots?.byWorkspaceId?.[t];return s?g(s.gitRoots):[]});function Es(e){return{key:"primary",isPrimary:!0,path:e.worktreePath??e.path,branch:e.branch,repoOwner:e.repositoryOwner,repoName:e.repositoryName,prNumber:e.prNumber,prUrl:e.prUrl,prStatus:e.prStatus,pullRequests:e.pullRequests}}function Rs(e){return{key:e.id,isPrimary:!1,path:e.path,branch:e.branch,repoOwner:e.repoOwner,repoName:e.repoName,prNumber:e.prNumber,prUrl:e.prUrl,prStatus:e.prStatus,pullRequests:e.pullRequests,gitRoot:e}}const ea=n.createSelector((e,t)=>{const s=M.select(e,t),r=oe.select(e,t).map(Rs);return s?[Es(s),...r]:r}),ta=n.createSelector((e,t)=>oe.select(e,t).length>0),sa=n.createSelector(e=>Object.entries(e.gitRoots?.byWorkspaceId??{}).filter(([,t])=>Object.keys(t.consumers??{}).length>0).map(([t])=>t)),Ts=n.createSelector((e,t,s)=>k((e.acceptWorkflow.byWorkspaceId[t]??Je).operations,s)),ra=n.createSelector((e,t,s)=>Ts.select(e,t,s)?.status==="running"),na=n.createSelector((e,t)=>e.acceptWorkflow.byWorkspaceId[t]?.mergeDrawerOpen??!1),aa=n.createSelector((e,t)=>{const s=gt.select(e,t)?.hasRemote??!1,r=M.select(e,t)?.pullRequests?.some(a=>a.status===le.Open||a.status===le.Draft)??!1;return{squash:!1,viaPR:s&&r,pushAfter:s,...e.acceptWorkflow.byWorkspaceId[t]?.mergeOptions}}),oa=n.createSelector(e=>Object.keys(e.acceptWorkflow.byWorkspaceId).filter(t=>e.acceptWorkflow.byWorkspaceId[t].observerRequested)),ca=n.createSelector((e,t)=>{const s=M.select(e,t),r=yt.select(e,t),a=bt.select(e,t),o=s?.repositoryOwner&&s.repositoryName?`${s.repositoryOwner}/${s.repositoryName}`:void 0,c=At(Et(s?.pullRequests,s?.activePullRequest,(i,l)=>Rt(i,s?.repositoryOwner,s?.repositoryName,l),Ie,o),kt.select(e,t),o,oe.select(e,t),Ie).own;return{visible:(e.acceptWorkflow.byWorkspaceId[t]?.consumerCount??0)>0,ready:It.select(e,t),owner:!wt.select(e,t),authenticated:Dt.select(e),pushedCount:r.filter(i=>i.isPushed).length,hasRemote:a.hasRemote,clearReset:a.hasResetToTrunk&&c.some(i=>i.status!=="merged"),clearMerge:!!(a.mergeHeadSha&&r[0]?.hash&&a.mergeHeadSha!==r[0].hash)}}),ia=n.createSelector((e,t,s)=>e.bgExecutor?.byWorkspaceId[t]?.executors[s]??Ye),Ps=n.createSelector((e,t)=>e.prWorkflow.byWorkspaceId[t]??Xe);n.createSelector((e,t,s)=>Ps.select(e,t).operations[s]);const la=n.createSelector(e=>Object.keys(e.noteReadTracking.unreadNoteIds)),ua=n.createSelector(e=>e.noteReadTracking.readRecords),Os="host.providerTestPrompt",Ws=qt("ok",[he({ok:fe(!0)}).passthrough(),he({ok:fe(!1),reason:Se().min(1),message:Se()}).passthrough()]),Ns=3e5;async function da(e){const t=await Ae(Os,{providerId:e.providerId,...e.model?{model:e.model}:{}},{timeoutMs:Ns}),s=Ws.parse(t);return(s.ok||s.reason==="auth-required")&&J(e.providerId),s}const xs=-1,Ms=/^remote-script-lost:\s*/,Ls=["idle","starting","running","restarting","exited"],_e=e=>!!e&&typeof e=="object"&&!Array.isArray(e),ve=e=>typeof e=="string"&&e.trim().length>0;function Ds(e){return _e(e)&&ve(e.remoteAgentId)&&ve(e.nodeId)&&_e(e.runtime)&&Ls.includes(e.runtime.status)}function pa(e){return Array.isArray(e.machineRuns)?e.machineRuns.filter(Ds):[]}function ma(e,t,s){const r=Ut(e.nodeId,s)??{nodeId:e.nodeId,name:p.remoteAgent_location_unknownMachine(),platform:null,state:"ready"};if(s&&s.id===e.nodeId)return r;const a=t?.nodeId===e.nodeId?t:null;return{...r,name:a?.nodeName?.trim()||r.name,platform:jt(a?.placement?.os,a?.placement?.arch)}}function Us(e){return e.status==="exited"&&e.exitCode===xs}function js(e){const t=e.error?.trim().replace(Ms,"").trim();switch(t){case"the machine disconnected":return p.scripts_remote_lostDisconnected_label();case"the machine was removed":return p.scripts_remote_lostRemoved_label();case"the agent was deleted":return p.scripts_remote_lostAgentDeleted_label();case"the agent was stopped for good":return p.scripts_remote_lostAgentStopped_label();default:return t||p.scripts_remote_lostReason_fallback()}}function ha(e){if(Us(e))return{kind:"lost",label:p.scripts_remote_lost_tooltip({reason:js(e)})};const t=Gt(e);switch(t){case"running":return{kind:t,label:p.terminal_quakeOverlay_status_running()};case"restarting":return{kind:t,label:p.workspace_devScripts_restarting_label()};case"idle":return{kind:t,label:p.terminal_quakeOverlay_status_idle()};case"succeeded":return{kind:t,label:p.terminal_quakeOverlay_status_exitedZero()};case"failed":return{kind:t,label:p.terminal_quakeOverlay_status_errorCode({code:e.exitCode??1})};case"stopped":return{kind:t,label:p.terminal_quakeOverlay_status_stoppedSignal({signal:(e.exitCode??128)-128})};default:return{kind:t,label:p.terminal_quakeOverlay_status_exited()}}}const G=e=>typeof e=="string"&&e.length>0,Gs=/\bremote-script-agent-ending:/;function fa(e){return!!e&&Gs.test(e)}function Sa(e){if(!e||typeof e!="object")return null;const t=e.data;if(!t||typeof t!="object")return null;const s=t,r=e instanceof Error&&e.message?{message:e.message}:{};return s.code==="machine-update-required"?{success:!1,code:"machine-update-required",update:s.update==="backend"?"backend":"machine",...G(s.machineVersion)?{machineVersion:s.machineVersion}:{},...G(s.backendVersion)?{backendVersion:s.backendVersion}:{},...r}:s.code==="machine-unreachable"?{success:!1,code:"machine-unreachable",attempts:Array.isArray(s.attempts)?s.attempts.flatMap(o=>{const c=o??{};return G(c.route)&&G(c.error)?[{route:c.route,error:c.error}]:[]}):[],...r}:null}function ga(e){const s=e.filter(a=>a.runtime.status==="running"&&a.runtime.detectedUrl?.trim()).sort((a,o)=>(o.runtime.startedAt??"").localeCompare(a.runtime.startedAt??""))[0],r=s?.runtime.detectedUrl?.trim();return!s||!r?null:{scriptId:s.id,name:s.name,url:r}}const qs={status:"idle",error:null},Fs=n.createSelector((e,t)=>e.workspaceLifecycle.loadByWorkspaceId[t]??qs);n.createSelector((e,t)=>Fs.select(e,t).error);const ya=n.createSelector((e,t)=>k(e.workspace.workspaces,t)??e.workspace.pendingCreations[t]),qe=n.createSelector((e,t)=>e.workspaceLifecycle.sessionPhaseByWorkspaceId[t]),Hs=e=>e==="hydrated"||e==="live",ba=n.createSelector((e,t)=>{const s=qe.select(e,t);return s==="hydrated"||s==="live"}),ka=n.createSelector(e=>{const t=e.workspaceLifecycle.sessionPhaseByWorkspaceId;return Object.keys(t).filter(s=>Hs(t[s]))}),wa=n.createSelector((e,t)=>qe.select(e,t)==="live");function Ia(e){const{selectedProviderId:t,activeProviderId:s,recommitActive:r,dispatch:a}=e;if(t&&!(!r&&t===s))return a(Ze({providerId:t,enabled:!0})),a(Qe(t)),a(et()),t}function _a(e){const t=[];for(const s of e){let r={};if(s.metadata)try{r=JSON.parse(s.metadata)}catch{}const a=[];if(a.push(`[${s.identifier}] ${s.title}`),s.url&&a.push(`URL: ${s.url}`),s.description&&a.push(`
3
3
  Description:
4
4
  ${s.description}`),r.state&&a.push(`Status: ${r.state}`),r.teamName&&a.push(`Team: ${r.teamName}`),r.priority!==void 0){const o=["No priority","Urgent","High","Medium","Low"];a.push(`Priority: ${o[r.priority]||r.priority}`)}r.assignee&&a.push(`Assignee: ${r.assignee}`),t.push({type:s.itemType||"unknown",provider:s.provider,identifier:s.identifier,title:s.title,url:s.url,content:a.join(`
5
- `),metadata:r})}return t}function va(e){const t=[];for(const s of e){if(s.type!=="file")continue;let r=s.meta?.fullPath||s.meta?.path||"";if(!r&&s.id?.startsWith("file-")){const a=s.id.slice(5);(a.startsWith("/")||/^[A-Za-z]:/.test(a))&&(r=a)}if(!r&&s.uri)if(s.uri.startsWith("devspace://file/"))try{r=decodeURIComponent(s.uri.slice(16))}catch{}else s.uri.startsWith("file:")&&(r=s.uri.slice(5));r||(r=s.label||s.meta?.name||""),t.push({type:"file",path:r,title:s.label})}return t}async function Ca(e,t){const s=[];for(const r of e){if(r.type==="terminal")try{const{terminalManager:a}=await q(async()=>{const{terminalManager:l}=await import("./BqRBAXUd.js").then(m=>m.c);return{terminalManager:l}},__vite__mapDeps([23,3,2,18,19,12,8,0,1,4,5,6,7,9,10,11,13,14,15,16,17,20,21,22,24,25,26,27,28,29,30,31,32]),import.meta.url),o=r.meta?.workspaceId||"",c=r.id??"",i=await a.getBufferContent(c,o);i&&s.push({type:"terminal",content:i,title:r.label,metadata:{terminalName:r.label,terminalId:c}})}catch(a){t?.warn("[OnboardingContext] Failed to read terminal buffer:",a)}if(r.type==="script")try{const{selectScriptById:a,selectScriptRuntime:o}=await q(async()=>{const{selectScriptById:S,selectScriptRuntime:b}=await import("./BotBkFiN.js");return{selectScriptById:S,selectScriptRuntime:b}},__vite__mapDeps([33,4,5,3,6,7,8,9,2,10,11,12,34,35,36,15,16,37,38,39,13,14,17,40,41,42,43,44,45,46,47,48,49,21,30,50,19,18,51,52,22,1,53]),import.meta.url),{readScriptContextOutputLines:c}=await q(async()=>{const{readScriptContextOutputLines:S}=await import("./BqOOOgy5.js");return{readScriptContextOutputLines:S}},__vite__mapDeps([54,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,55,49,45,40,36,39,30,42,56,34,35,37,38,41,43,44,46,47,48,50,51,52,53,33]),import.meta.url),i=r.meta?.workspaceId||"",l=r.id??"",m=n.state,y=await c(m,i,l),u=a.select(m,i,l),d=o.select(m,i,l);let f=`Script: ${u?.name||r.label}
5
+ `),metadata:r})}return t}function va(e){const t=[];for(const s of e){if(s.type!=="file")continue;let r=s.meta?.fullPath||s.meta?.path||"";if(!r&&s.id?.startsWith("file-")){const a=s.id.slice(5);(a.startsWith("/")||/^[A-Za-z]:/.test(a))&&(r=a)}if(!r&&s.uri)if(s.uri.startsWith("devspace://file/"))try{r=decodeURIComponent(s.uri.slice(16))}catch{}else s.uri.startsWith("file:")&&(r=s.uri.slice(5));r||(r=s.label||s.meta?.name||""),t.push({type:"file",path:r,title:s.label})}return t}async function Ca(e,t){const s=[];for(const r of e){if(r.type==="terminal")try{const{terminalManager:a}=await q(async()=>{const{terminalManager:l}=await import("./DwrUEXuQ.js").then(m=>m.c);return{terminalManager:l}},__vite__mapDeps([23,3,2,18,19,12,8,0,1,4,5,6,7,9,10,11,13,14,15,16,17,20,21,22,24,25,26,27,28,29,30,31,32]),import.meta.url),o=r.meta?.workspaceId||"",c=r.id??"",i=await a.getBufferContent(c,o);i&&s.push({type:"terminal",content:i,title:r.label,metadata:{terminalName:r.label,terminalId:c}})}catch(a){t?.warn("[OnboardingContext] Failed to read terminal buffer:",a)}if(r.type==="script")try{const{selectScriptById:a,selectScriptRuntime:o}=await q(async()=>{const{selectScriptById:S,selectScriptRuntime:b}=await import("./Dn2BQOth.js");return{selectScriptById:S,selectScriptRuntime:b}},__vite__mapDeps([33,4,5,3,6,7,8,9,2,10,11,12,34,35,36,15,16,37,38,39,13,14,17,40,41,42,43,44,45,46,47,48,49,21,30,50,19,18,51,52,22,1,53]),import.meta.url),{readScriptContextOutputLines:c}=await q(async()=>{const{readScriptContextOutputLines:S}=await import("./Q9dh-ELL.js");return{readScriptContextOutputLines:S}},__vite__mapDeps([54,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,55,49,45,40,36,39,30,42,56,34,35,37,38,41,43,44,46,47,48,50,51,52,53,33]),import.meta.url),i=r.meta?.workspaceId||"",l=r.id??"",m=n.state,y=await c(m,i,l),u=a.select(m,i,l),d=o.select(m,i,l);let f=`Script: ${u?.name||r.label}
6
6
  `;if(f+=`Command: ${u?.command||"unknown"}
7
7
  `,f+=`Status: ${d.status}`,d.exitCode!==null&&d.exitCode!==void 0&&(f+=` (exit code: ${d.exitCode})`),f+=`
8
8
  `,d.detectedUrl&&(f+=`URL: ${d.detectedUrl}
@@ -1 +1 @@
1
- import{ao as s}from"./DYhIMPy1.js";import{d as r}from"./DZZviYVT.js";const t=()=>{const e=r;return{page:{subscribe:e.page.subscribe},navigating:{subscribe:e.navigating.subscribe},updated:e.updated}},c={subscribe(e){return(s?o("page"):t().page).subscribe(e)}};function o(e){try{return t()[e]}catch{throw new Error(`Cannot subscribe to '${e}' store on the server outside of a Svelte component, as it is bound to the current request via component context. This prevents state from leaking between users.For more information, see https://svelte.dev/docs/kit/state-management#avoid-shared-state-on-the-server`)}}export{c as p};
1
+ import{ao as s}from"./DYhIMPy1.js";import{d as r}from"./BVKuTBgW.js";const t=()=>{const e=r;return{page:{subscribe:e.page.subscribe},navigating:{subscribe:e.navigating.subscribe},updated:e.updated}},c={subscribe(e){return(s?o("page"):t().page).subscribe(e)}};function o(e){try{return t()[e]}catch{throw new Error(`Cannot subscribe to '${e}' store on the server outside of a Svelte component, as it is bound to the current request via component context. This prevents state from leaking between users.For more information, see https://svelte.dev/docs/kit/state-management#avoid-shared-state-on-the-server`)}}export{c as p};