@intent-hq/web 2.312.0 → 2.313.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (265) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{B2aHvKzW.js → -URcs0EB.js} +2 -2
  3. package/web/app/immutable/chunks/{C46TnD1H.js → 19F8thw1.js} +1 -1
  4. package/web/app/immutable/chunks/{B1Yylqx8.js → 1wCbR4ud.js} +1 -1
  5. package/web/app/immutable/chunks/{C6_fF-vn.js → 2O2vJlPl.js} +1 -1
  6. package/web/app/immutable/chunks/2zKcFAvZ.js +1 -0
  7. package/web/app/immutable/chunks/3V4Tx4nH.js +1 -0
  8. package/web/app/immutable/chunks/{DMiVWfnj.js → 4CMzT_BI.js} +1 -1
  9. package/web/app/immutable/chunks/{DsKjRYyi.js → 4wFlAApS.js} +1 -1
  10. package/web/app/immutable/chunks/{C8M-Eryf.js → 6rzwTXJx.js} +1 -1
  11. package/web/app/immutable/chunks/{Ddfj4iOJ.js → 7IyNIHph.js} +1 -1
  12. package/web/app/immutable/chunks/{CiN55CeC.js → 7ZJvg7ev.js} +1 -1
  13. package/web/app/immutable/chunks/{B63GdhMJ.js → 992RyGqf.js} +1 -1
  14. package/web/app/immutable/chunks/{ChqSx7V8.js → 9sI_nbHm.js} +1 -1
  15. package/web/app/immutable/chunks/{B4eSJ_b5.js → A3beYjJS.js} +29 -29
  16. package/web/app/immutable/chunks/{DjeoEINQ.js → AF5xKPfV.js} +1 -1
  17. package/web/app/immutable/chunks/{BDPd3Gxs.js → AGSVFpXc.js} +1 -1
  18. package/web/app/immutable/chunks/{SU_Zxid7.js → AHQMxoVk.js} +1 -1
  19. package/web/app/immutable/chunks/{D25S3m8c.js → B-xGvc_0.js} +1 -1
  20. package/web/app/immutable/chunks/{DB5R3D7Y.js → B0qtRhuw.js} +1 -1
  21. package/web/app/immutable/chunks/{I6iBDGZz.js → B1YnvfKo.js} +1 -1
  22. package/web/app/immutable/chunks/{LnbsKux_.js → B2RRuLl5.js} +1 -1
  23. package/web/app/immutable/chunks/{CHk37LgR.js → B2st7VbN.js} +1 -1
  24. package/web/app/immutable/chunks/{CPy8SeUf.js → B3W2oJ3u.js} +2 -2
  25. package/web/app/immutable/chunks/{DaUwNiAB.js → B6Eksue8.js} +3 -3
  26. package/web/app/immutable/chunks/{BlvwJgNV.js → B6QJA3k0.js} +1 -1
  27. package/web/app/immutable/chunks/{CWKTWYM7.js → B6mHy78M.js} +1 -1
  28. package/web/app/immutable/chunks/{CIx9_tZJ.js → B88eFHaH.js} +1 -1
  29. package/web/app/immutable/chunks/{BXmFIcIP.js → B8VhjfbW.js} +1 -1
  30. package/web/app/immutable/chunks/BAqR9jtB.js +1 -0
  31. package/web/app/immutable/chunks/{BEBrFxQu.js → BAssmU5H.js} +1 -1
  32. package/web/app/immutable/chunks/{B195Jf7v.js → BCoW5DN6.js} +3 -3
  33. package/web/app/immutable/chunks/{CVVkCR3K.js → BDGDJyji.js} +1 -1
  34. package/web/app/immutable/chunks/{DGjSXQQ8.js → BDXCy3lH.js} +1 -1
  35. package/web/app/immutable/chunks/{htWd8PdL.js → BE-b7v7R.js} +1 -1
  36. package/web/app/immutable/chunks/{daIBqHmL.js → BESrHe_0.js} +1 -1
  37. package/web/app/immutable/chunks/{-g2yD8nW.js → BGGxKX5q.js} +1 -1
  38. package/web/app/immutable/chunks/{B1fMeJph.js → BHqHNrOT.js} +1 -1
  39. package/web/app/immutable/chunks/{B6tJ7e7m.js → BIZcuYRW.js} +2 -2
  40. package/web/app/immutable/chunks/{Cu9hF6Lj.js → BMkc6ng0.js} +1 -1
  41. package/web/app/immutable/chunks/{BY5CEwGM.js → BNasdn-P.js} +1 -1
  42. package/web/app/immutable/chunks/{B95izTqM.js → BOQCK4ni.js} +1 -1
  43. package/web/app/immutable/chunks/{DU64vtBR.js → BPk16bSc.js} +1 -1
  44. package/web/app/immutable/chunks/{Dm_KenRX.js → BQFqw3YD.js} +1 -1
  45. package/web/app/immutable/chunks/{U838LLRH.js → BRIkzo-E.js} +1 -1
  46. package/web/app/immutable/chunks/{CcnOA9dj.js → BRNfUSNR.js} +1 -1
  47. package/web/app/immutable/chunks/{DaA44xVk.js → BSwWMzab.js} +5 -5
  48. package/web/app/immutable/chunks/{B1LFg8Ni.js → BUjtm23k.js} +1 -1
  49. package/web/app/immutable/chunks/{K1Aj4aiz.js → BVkJyN1U.js} +2 -2
  50. package/web/app/immutable/chunks/{D6Tu0KcL.js → BW6fyv0T.js} +6 -6
  51. package/web/app/immutable/chunks/B_-1t0b5.js +1 -0
  52. package/web/app/immutable/chunks/{qCTbBtmS.js → B_CpN824.js} +1 -1
  53. package/web/app/immutable/chunks/{3xBR6H3M.js → BaWcyleE.js} +1 -1
  54. package/web/app/immutable/chunks/{DNPjjQTW.js → Bc-8qHYh.js} +1 -1
  55. package/web/app/immutable/chunks/{Bg-wwj8e.js → Bc2zOKbx.js} +1 -1
  56. package/web/app/immutable/chunks/{Cts5KPIk.js → Bc3_ahSr.js} +1 -1
  57. package/web/app/immutable/chunks/{wFaVm_je.js → BcVu_y1Z.js} +1 -1
  58. package/web/app/immutable/chunks/{Bgo6QmNg.js → Bf1tCDQg.js} +1 -1
  59. package/web/app/immutable/chunks/{BVEbTxE_.js → Bfc094Ub.js} +1 -1
  60. package/web/app/immutable/chunks/{D728aNnl.js → BgyuoEGq.js} +1 -1
  61. package/web/app/immutable/chunks/{bcv2TMVC.js → BjqGlL_Y.js} +1 -1
  62. package/web/app/immutable/chunks/{Brz_LsyP.js → Bl_iEh1f.js} +1 -1
  63. package/web/app/immutable/chunks/Br5d6l04.js +1 -0
  64. package/web/app/immutable/chunks/{BPso9ZTU.js → BssmMBl2.js} +1 -1
  65. package/web/app/immutable/chunks/{DHQetc-m.js → BtAYzBSd.js} +1 -1
  66. package/web/app/immutable/chunks/{Bqekhi5h.js → Bu6sHonm.js} +1 -1
  67. package/web/app/immutable/chunks/{Bj1XwsOw.js → Bvq2wF7r.js} +7 -7
  68. package/web/app/immutable/chunks/{CwAr2bfc.js → BxiJOwnz.js} +1 -1
  69. package/web/app/immutable/chunks/{DPHQ6GUU.js → By8e6LYt.js} +1 -1
  70. package/web/app/immutable/chunks/{CMNPJIlE.js → C-fnz5X4.js} +1 -1
  71. package/web/app/immutable/chunks/{BG1ODLUu.js → C-li4cfO.js} +1 -1
  72. package/web/app/immutable/chunks/{Civ86Ers.js → C0VJEx2v.js} +1 -1
  73. package/web/app/immutable/chunks/{BUJT8nbP.js → C11wqToa.js} +1 -1
  74. package/web/app/immutable/chunks/{D8Iqos3S.js → C1XicA-w.js} +1 -1
  75. package/web/app/immutable/chunks/{Z7mWElPD.js → C2Cq4c9l.js} +1 -1
  76. package/web/app/immutable/chunks/{DyLPqvAi.js → C2m8Iivv.js} +1 -1
  77. package/web/app/immutable/chunks/{YdCQJnUj.js → C48G3Oh4.js} +1 -1
  78. package/web/app/immutable/chunks/{CKcLU7Ix.js → C5Nz-crT.js} +1 -1
  79. package/web/app/immutable/chunks/{C8G4GKsE.js → C6L7wkhi.js} +1 -1
  80. package/web/app/immutable/chunks/{DhmDkL56.js → C6XSZJri.js} +1 -1
  81. package/web/app/immutable/chunks/{lGuvxH0P.js → C6aPQebU.js} +1 -1
  82. package/web/app/immutable/chunks/{vOfkzWZD.js → C6gBBEr6.js} +1 -1
  83. package/web/app/immutable/chunks/{Co9bnw2t.js → C6krgOsR.js} +11 -11
  84. package/web/app/immutable/chunks/{BUhKOoKe.js → C80u9j_3.js} +2 -2
  85. package/web/app/immutable/chunks/{Z5fbCd-X.js → C8PuI333.js} +4 -4
  86. package/web/app/immutable/chunks/{QiI6ZCof.js → C8_w7W1W.js} +4 -4
  87. package/web/app/immutable/chunks/{D7b_n5fi.js → C9gP-gRX.js} +3 -3
  88. package/web/app/immutable/chunks/{cLppJexf.js → CA7UZgrf.js} +1 -1
  89. package/web/app/immutable/chunks/{aHlukoGt.js → CAn8DYJP.js} +1 -1
  90. package/web/app/immutable/chunks/{BnAX9yTi.js → CBTot2K1.js} +1 -1
  91. package/web/app/immutable/chunks/{0KiNbR5l.js → CBwn70Pq.js} +1 -1
  92. package/web/app/immutable/chunks/{5jwgbfJ7.js → CBzaXebB.js} +1 -1
  93. package/web/app/immutable/chunks/{SAR1HpYu.js → CCCBFmfe.js} +3 -3
  94. package/web/app/immutable/chunks/{M4M675TN.js → CE8vXfAM.js} +1 -1
  95. package/web/app/immutable/chunks/{BNn2h7IG.js → CG-371Y6.js} +1 -1
  96. package/web/app/immutable/chunks/{HHVVLLOo.js → CICEz2Qq.js} +1 -1
  97. package/web/app/immutable/chunks/{ZaVuh6Ie.js → CJtH5G9P.js} +1 -1
  98. package/web/app/immutable/chunks/{BIwSEl2U.js → CKH-l4ig.js} +1 -1
  99. package/web/app/immutable/chunks/{BioErF0E.js → CKWaKOqs.js} +1 -1
  100. package/web/app/immutable/chunks/CMvHzajx.js +1 -0
  101. package/web/app/immutable/chunks/{i6q5e9Bi.js → CN_VK1iL.js} +1 -1
  102. package/web/app/immutable/chunks/{8ZUxx0Co.js → COpjcilg.js} +1 -1
  103. package/web/app/immutable/chunks/{DFo_icpD.js → CP06IBS7.js} +1 -1
  104. package/web/app/immutable/chunks/{BqK5afB2.js → CQMd4GmI.js} +1 -1
  105. package/web/app/immutable/chunks/{CWlxHxOH.js → CQbq623l.js} +1 -1
  106. package/web/app/immutable/chunks/{Co6qQZL7.js → CTX5Fuc9.js} +2 -2
  107. package/web/app/immutable/chunks/{dzprHFyK.js → CTfHCA2Y.js} +1 -1
  108. package/web/app/immutable/chunks/CUPAS0zd.js +1 -0
  109. package/web/app/immutable/chunks/{DlM5T-ri.js → CW1tBVLY.js} +1 -1
  110. package/web/app/immutable/chunks/{CXqStKXr.js → CWaCCzEn.js} +1 -1
  111. package/web/app/immutable/chunks/{BP22EbgY.js → CXNySl0c.js} +1 -1
  112. package/web/app/immutable/chunks/{QfXYPrZH.js → CYmZhCDN.js} +2 -2
  113. package/web/app/immutable/chunks/CZI4_vlI.js +1 -0
  114. package/web/app/immutable/chunks/{BtTToJTU.js → C_KYY7ZK.js} +3 -3
  115. package/web/app/immutable/chunks/{BBg1ABUj.js → Cb6WrSKY.js} +1 -1
  116. package/web/app/immutable/chunks/{BFbKEECb.js → Cb7SCycF.js} +1 -1
  117. package/web/app/immutable/chunks/{tA5hPyrR.js → Cbh1BCiS.js} +2 -2
  118. package/web/app/immutable/chunks/{BlZonKZY.js → CbpiaYyP.js} +1 -1
  119. package/web/app/immutable/chunks/{DEA2ISnw.js → CcGPnEzl.js} +1 -1
  120. package/web/app/immutable/chunks/{B6RmASgD.js → Ccf4dYFA.js} +1 -1
  121. package/web/app/immutable/chunks/{CWlg1b-s.js → CeQYwwry.js} +1 -1
  122. package/web/app/immutable/chunks/{Yu0gam1U.js → CelhKzDn.js} +1 -1
  123. package/web/app/immutable/chunks/{C6AEaqMK.js → ClfTOQ5L.js} +1 -1
  124. package/web/app/immutable/chunks/{BYLg_iMr.js → CoKEteoj.js} +1 -1
  125. package/web/app/immutable/chunks/{BsLhCljI.js → Cop9b2dY.js} +1 -1
  126. package/web/app/immutable/chunks/{BNVixDQg.js → Cpwl5RRn.js} +1 -1
  127. package/web/app/immutable/chunks/{BawsvKy-.js → CqzZhYYx.js} +1 -1
  128. package/web/app/immutable/chunks/{CFyiOaFx.js → CsTPrgDm.js} +3 -3
  129. package/web/app/immutable/chunks/{wV3lKTnH.js → Ctl9Ux7T.js} +1 -1
  130. package/web/app/immutable/chunks/{CLevwIvK.js → CxO_9nE4.js} +1 -1
  131. package/web/app/immutable/chunks/{DRwfCI3n.js → CzRl1R1n.js} +1 -1
  132. package/web/app/immutable/chunks/{li27w4Od.js → CzrG_lpv.js} +1 -1
  133. package/web/app/immutable/chunks/{DUIaBcOd.js → D-8WC0DU.js} +2 -2
  134. package/web/app/immutable/chunks/{C1SG0POo.js → D-XHjwsv.js} +1 -1
  135. package/web/app/immutable/chunks/{CwwcEFDp.js → D-rJNj43.js} +1 -1
  136. package/web/app/immutable/chunks/{CgIYxUJQ.js → D0Dsw2tV.js} +1 -1
  137. package/web/app/immutable/chunks/{Dwxm4mRs.js → D2uybU7F.js} +2 -2
  138. package/web/app/immutable/chunks/{CXsLrVJH.js → D47PZJI_.js} +1 -1
  139. package/web/app/immutable/chunks/{Cee62BOx.js → D4qqUzAr.js} +1 -1
  140. package/web/app/immutable/chunks/{BP56q1O2.js → D5XH3yqM.js} +2 -2
  141. package/web/app/immutable/chunks/{onlOqkEU.js → D62gE1G0.js} +22 -22
  142. package/web/app/immutable/chunks/{BPvrn9n_.js → D84mJH5u.js} +2 -2
  143. package/web/app/immutable/chunks/{ffaoYO6L.js → D9SqGY86.js} +1 -1
  144. package/web/app/immutable/chunks/{CcoNUQ4q.js → DAtBKOQq.js} +1 -1
  145. package/web/app/immutable/chunks/{BwRcoxdV.js → DBUJXdXR.js} +1 -1
  146. package/web/app/immutable/chunks/{DiN36N-2.js → DChetNRi.js} +2 -2
  147. package/web/app/immutable/chunks/{xXCdIyF3.js → DD-f8Y3V.js} +1 -1
  148. package/web/app/immutable/chunks/{66T_vlm_.js → DESxr5Rj.js} +1 -1
  149. package/web/app/immutable/chunks/{CJ4_4cNv.js → DFq6CFhq.js} +1 -1
  150. package/web/app/immutable/chunks/{BRYVEoAL.js → DGAww3vc.js} +1 -1
  151. package/web/app/immutable/chunks/{B_mg6-Vc.js → DH9gMPGd.js} +1 -1
  152. package/web/app/immutable/chunks/{vV7Eo_ua.js → DKXEy5Lq.js} +1 -1
  153. package/web/app/immutable/chunks/{OeYTP1p9.js → DL9BUVq-.js} +1 -1
  154. package/web/app/immutable/chunks/{DPQGeIyJ.js → DNYGh_FV.js} +2 -2
  155. package/web/app/immutable/chunks/{Bl-s542_.js → DNo4fphO.js} +1 -1
  156. package/web/app/immutable/chunks/{BVNJnx5b.js → DO2cS8JO.js} +1 -1
  157. package/web/app/immutable/chunks/{19JeQ6BX.js → DOnT_3WY.js} +1 -1
  158. package/web/app/immutable/chunks/{Bd8zPJ0R.js → DOzphY7c.js} +1 -1
  159. package/web/app/immutable/chunks/{DwCiT34L.js → DPG0D59v.js} +1 -1
  160. package/web/app/immutable/chunks/{DQpR_z9x.js → DQNmQX9F.js} +1 -1
  161. package/web/app/immutable/chunks/{rpm2NzpE.js → DQRxUuCh.js} +1 -1
  162. package/web/app/immutable/chunks/{CddrLe5o.js → DSOeLuN2.js} +1 -1
  163. package/web/app/immutable/chunks/{Pow4u-14.js → DSRwOSd4.js} +1 -1
  164. package/web/app/immutable/chunks/{CIL9eyec.js → DTMKqgRU.js} +1 -1
  165. package/web/app/immutable/chunks/{CpLMWsmF.js → DUdpP1ED.js} +1 -1
  166. package/web/app/immutable/chunks/{DFV_t0gv.js → DUrqH6OL.js} +1 -1
  167. package/web/app/immutable/chunks/{CwBMLcFF.js → DW9ZR5Up.js} +1 -1
  168. package/web/app/immutable/chunks/{0BDej8J9.js → DWccAyE3.js} +1 -1
  169. package/web/app/immutable/chunks/{BMoOyvL9.js → DY6JypjK.js} +1 -1
  170. package/web/app/immutable/chunks/{CR_HWuhj.js → DYrH45vr.js} +1 -1
  171. package/web/app/immutable/chunks/{CsQu3MKC.js → DcYvv2Iw.js} +1 -1
  172. package/web/app/immutable/chunks/{B1XZ9Wy8.js → DgfdSIWo.js} +1 -1
  173. package/web/app/immutable/chunks/{xQjZTcxq.js → DhAv1XMF.js} +1 -1
  174. package/web/app/immutable/chunks/{C9Ba8Wsx.js → DiCMHWTR.js} +1 -1
  175. package/web/app/immutable/chunks/{CMmlAySy.js → DijSalri.js} +1 -1
  176. package/web/app/immutable/chunks/{ZS63KZzT.js → DkI_jPOw.js} +4 -4
  177. package/web/app/immutable/chunks/{C1-APN-K.js → DkrnUdRW.js} +1 -1
  178. package/web/app/immutable/chunks/{CQolNqfo.js → DlKVdWHt.js} +8 -8
  179. package/web/app/immutable/chunks/{CHKw7UrD.js → DmsGklpx.js} +1 -1
  180. package/web/app/immutable/chunks/{DCYjhyno.js → DoCNcHnE.js} +3 -3
  181. package/web/app/immutable/chunks/{X868iZaW.js → DsU6W5Yf.js} +1 -1
  182. package/web/app/immutable/chunks/{17TgXovQ.js → DulsjrO4.js} +1 -1
  183. package/web/app/immutable/chunks/{sbHX8DXH.js → DvC622kv.js} +1 -1
  184. package/web/app/immutable/chunks/{BGpTsVFh.js → Dvil1FCS.js} +1 -1
  185. package/web/app/immutable/chunks/{CtZpQlR0.js → DwPGocEY.js} +2 -2
  186. package/web/app/immutable/chunks/{CUhYwYxv.js → DwbQaKgL.js} +1 -1
  187. package/web/app/immutable/chunks/{BlzuC8vd.js → DwgP_YcK.js} +2 -2
  188. package/web/app/immutable/chunks/{BqddjWz6.js → DxZSyekB.js} +1 -1
  189. package/web/app/immutable/chunks/{BJ9Pk-Qc.js → Dz6YK0K2.js} +1 -1
  190. package/web/app/immutable/chunks/{BwN9PPwq.js → DzfdD6YD.js} +1 -1
  191. package/web/app/immutable/chunks/EEJgvLyS.js +1 -0
  192. package/web/app/immutable/chunks/{ZjB_ER6s.js → HWP1BG2L.js} +1 -1
  193. package/web/app/immutable/chunks/{-dq3wJnW.js → Io79CQwx.js} +1 -1
  194. package/web/app/immutable/chunks/{Q3Bjy5v7.js → LSDVwgG8.js} +2 -2
  195. package/web/app/immutable/chunks/{CmZ4R63v.js → MED7rLah.js} +1 -1
  196. package/web/app/immutable/chunks/{CFKI_75v.js → MgJqQwQp.js} +3 -3
  197. package/web/app/immutable/chunks/{Ba7aiW_M.js → NYwlcfYt.js} +1 -1
  198. package/web/app/immutable/chunks/{T-DUA-1O.js → OpYhygEs.js} +1 -1
  199. package/web/app/immutable/chunks/{DYe4BNIz.js → QCq950da.js} +1 -1
  200. package/web/app/immutable/chunks/{uxsR8mHg.js → TP4sXUzS.js} +1 -1
  201. package/web/app/immutable/chunks/{8rrBGDgQ.js → UuiGcpAE.js} +1 -1
  202. package/web/app/immutable/chunks/{CpbXsTys.js → XzWc0fs1.js} +1 -1
  203. package/web/app/immutable/chunks/{rWFIPcdV.js → Y6LratEc.js} +1 -1
  204. package/web/app/immutable/chunks/{BqAelQe2.js → ZUZF8K3P.js} +1 -1
  205. package/web/app/immutable/chunks/{ICkI56ZY.js → _4p7wl12.js} +1 -1
  206. package/web/app/immutable/chunks/{Bk-q0J3W.js → _bllxFVr.js} +1 -1
  207. package/web/app/immutable/chunks/{CjJ2aG8c.js → a6K5_NPk.js} +1 -1
  208. package/web/app/immutable/chunks/{CDGEKoBr.js → aegF9YRH.js} +1 -1
  209. package/web/app/immutable/chunks/{BDF6V5e0.js → dKjrvSqn.js} +1 -1
  210. package/web/app/immutable/chunks/{OAsZcRpW.js → dX_oN6Xt.js} +1 -1
  211. package/web/app/immutable/chunks/{URtDzPe4.js → gsqPz4Y0.js} +1 -1
  212. package/web/app/immutable/chunks/{C6JSYFyu.js → hacdNVQl.js} +1 -1
  213. package/web/app/immutable/chunks/{BIsm3Ahi.js → jnmyog2T.js} +1 -1
  214. package/web/app/immutable/chunks/jq7ACadW.js +1 -0
  215. package/web/app/immutable/chunks/{BeJPCJYr.js → kdf0l6Z-.js} +6 -6
  216. package/web/app/immutable/chunks/{GiRbWuMt.js → nHQ6ExVj.js} +1 -1
  217. package/web/app/immutable/chunks/{DexjcGy5.js → nt8jKVrH.js} +1 -1
  218. package/web/app/immutable/chunks/{RGxIilBQ.js → q4Mp6azq.js} +4 -4
  219. package/web/app/immutable/chunks/{DdRYjUTh.js → qHcHiO2c.js} +1 -1
  220. package/web/app/immutable/chunks/{D08RO1VG.js → qIh42_HI.js} +1 -1
  221. package/web/app/immutable/chunks/{C3ePiQWu.js → qcgLBz2O.js} +1 -1
  222. package/web/app/immutable/chunks/{D4dn9g8x.js → qr2Z9jBR.js} +1 -1
  223. package/web/app/immutable/chunks/{EyZ0nhwB.js → sg8Cer3T.js} +4 -4
  224. package/web/app/immutable/chunks/{Db_s6atq.js → tSV1knJu.js} +1 -1
  225. package/web/app/immutable/chunks/{Frujgmwq.js → usUeYWMe.js} +1 -1
  226. package/web/app/immutable/chunks/{Bh9tHAiY.js → x8WBzABF.js} +49 -49
  227. package/web/app/immutable/chunks/{C44r02pn.js → xfGEIVf6.js} +1 -1
  228. package/web/app/immutable/chunks/{BjPJabzV.js → yNufUFm8.js} +1 -1
  229. package/web/app/immutable/chunks/{3U-mPo_x.js → y_yPvfwh.js} +1 -1
  230. package/web/app/immutable/entry/{app.zU9yYpXi.js → app.BlqNT7Cr.js} +3 -3
  231. package/web/app/immutable/entry/start.DaNUqzZq.js +1 -0
  232. package/web/app/immutable/nodes/{0.CpVAzuif.js → 0.ShO9PneW.js} +1 -1
  233. package/web/app/immutable/nodes/{1.DRuW-6VC.js → 1.CWY9gUhn.js} +1 -1
  234. package/web/app/immutable/nodes/{10.DKrkS2Ck.js → 10.BPcvGGhE.js} +4 -4
  235. package/web/app/immutable/nodes/{11.C3gubzv3.js → 11.BtNxR4dm.js} +1 -1
  236. package/web/app/immutable/nodes/{12.DwCDRGkT.js → 12.DQmthXqN.js} +1 -1
  237. package/web/app/immutable/nodes/{13.CUd5S4Yi.js → 13.pfWPVnQT.js} +3 -3
  238. package/web/app/immutable/nodes/{14.u0qAwLFY.js → 14.C46jjudj.js} +2 -2
  239. package/web/app/immutable/nodes/{15.D5mdZsCG.js → 15.CkuJDDnR.js} +1 -1
  240. package/web/app/immutable/nodes/{16.Di9o_NeI.js → 16.DxDrMp3A.js} +2 -2
  241. package/web/app/immutable/nodes/2.BY4xMtJS.js +9 -0
  242. package/web/app/immutable/nodes/{3.BdPudEJY.js → 3.RPzUk4Sw.js} +1 -1
  243. package/web/app/immutable/nodes/4.ZFgOw7Ux.js +1 -0
  244. package/web/app/immutable/nodes/5.BKaPpN7j.js +5 -0
  245. package/web/app/immutable/nodes/{6.TDtUMw8i.js → 6.BqCf3vb3.js} +1 -1
  246. package/web/app/immutable/nodes/{7.heLExSUY.js → 7.CJYSYpjI.js} +1 -1
  247. package/web/app/immutable/nodes/{8.iXetk1_-.js → 8.B_FmoLB7.js} +4 -4
  248. package/web/app/immutable/nodes/{9.Bq9HwFsC.js → 9.p1SC8ote.js} +5 -5
  249. package/web/app/version.json +1 -1
  250. package/web/generated/paraglide.js +49 -49
  251. package/web/index.html +18 -18
  252. package/web/app/immutable/chunks/7FhPODJU.js +0 -1
  253. package/web/app/immutable/chunks/B-EQoMaE.js +0 -1
  254. package/web/app/immutable/chunks/BV49_RX-.js +0 -1
  255. package/web/app/immutable/chunks/BzwgImum.js +0 -1
  256. package/web/app/immutable/chunks/C-BI-o7z.js +0 -1
  257. package/web/app/immutable/chunks/CGtpSJYQ.js +0 -1
  258. package/web/app/immutable/chunks/CHmKgzDw.js +0 -1
  259. package/web/app/immutable/chunks/CfR8DHmm.js +0 -1
  260. package/web/app/immutable/chunks/CqtVr5NT.js +0 -1
  261. package/web/app/immutable/chunks/D1jYkFlI.js +0 -1
  262. package/web/app/immutable/entry/start.DtsLJnWx.js +0 -1
  263. package/web/app/immutable/nodes/2.CjuG4Yin.js +0 -9
  264. package/web/app/immutable/nodes/4.DvwRKOcg.js +0 -1
  265. package/web/app/immutable/nodes/5.gCklR-Wk.js +0 -5
@@ -1,4 +1,4 @@
1
- var Ju=Object.defineProperty;var e1=(t,e,r)=>e in t?Ju(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var se=(t,e,r)=>e1(t,typeof e!="symbol"?e+"":e,r);import{cA as Gt,aS as t1,dm as Rl,Z as z0,X as va,Y as r1,W as n1,a0 as a1,aa as i1,S as s1,dO as o1,L as l1,b8 as Dl,cD as o0,dl as Nl,aR as c1,aV as u1,cl as h1,c7 as d1,dh as Va,dI as m1,dB as p1,ax as Bn,ak as f1,as as Si,dy as g1,dD as _l,dA as v1}from"./BMoOyvL9.js";import{D as Ns,bo as b1,bE as y1,aV as w1}from"./BUhKOoKe.js";import{K as k1,D as n0}from"./8rrBGDgQ.js";import{xG as fn,Hm as E,n3 as ve,n2 as Se,aQ as x1,g as Ll,y as Re,bi as l0,jI as Ai,lm as gn,an as Vt,ll as _s,lv as Ls,ls as Os,jf as Ol,gg as Ka,FT as S1,se as A1,z0 as T1,o6 as E1,m8 as vn,AB as M1,io as C1,lF as I1,lg as z1}from"./DaA44xVk.js";import{bo as ne}from"./BV49_RX-.js";import{t as rt}from"./Brz_LsyP.js";import{T as R1,x as xr,y as Sr}from"./QiI6ZCof.js";import{a as c0}from"./BJzHxIyr.js";import{o as me,r as jt,e as u0,s as V,_ as Ye,l as h0,g as D1,n as Le,c as lr,b as He,u as N1,d as _1}from"./UyBYtOpv.js";import{j as Pl}from"./BlOn95cv.js";import{r as L1}from"./B6RmASgD.js";import{b as O1}from"./Civ86Ers.js";import{i as je}from"./B1fMeJph.js";import{l as ba,c as P1}from"./ChTqQfQN.js";import{ax as d0}from"./D7b_n5fi.js";import{i as Ps}from"./DRwfCI3n.js";import{f as Ti,x as $l,y as Bl,j as $1,v as ql,o as B1,r as q1}from"./B2aHvKzW.js";const We=[];for(let t=0;t<256;++t)We.push((t+256).toString(16).slice(1));function F1(t,e=0){return(We[t[e+0]]+We[t[e+1]]+We[t[e+2]]+We[t[e+3]]+"-"+We[t[e+4]]+We[t[e+5]]+"-"+We[t[e+6]]+We[t[e+7]]+"-"+We[t[e+8]]+We[t[e+9]]+"-"+We[t[e+10]]+We[t[e+11]]+We[t[e+12]]+We[t[e+13]]+We[t[e+14]]+We[t[e+15]]).toLowerCase()}const H1=new Uint8Array(16);function U1(){return crypto.getRandomValues(H1)}function Ei(t,e,r){return crypto.randomUUID?crypto.randomUUID():W1(t)}function W1(t,e,r){t=t||{};const n=t.random??t.rng?.()??U1();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,F1(n)}function Mi(t,e){if(t.repositoryIdentity===null)return null;if(t.repositoryIdentity){const{provider:a,instanceBaseUrl:i,projectPath:s}=t.repositoryIdentity,o=Mi({...t,repositoryIdentity:void 0,githubUrl:`${i}/${s}`},a==="gitlab"?i:void 0);return o?.provider===a?o:null}const r=t.githubUrl;if(!r)return null;const n=/^(?:https:\/\/github\.com\/|git@github\.com:)([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+?)(?:\.git)?\/?$/i.exec(r);return n&&!n.slice(1).some(a=>a==="."||a==="..")?{provider:"github",instanceBaseUrl:"https://github.com",projectPath:`${n[1]}/${n[2]}`}:e?k1(r.replace(/\.git\/?$/,""),e):null}function m5(t,e){return t.type==="local"?t.plainFolder?"folder":"local":Mi(t,e)?.provider==="gitlab"?"gitlab":"github"}function Fl(t){const e=t.split(/[\\/]/).filter(Boolean);return e[e.length-1]??""}function p5(t){if(t.type!=="local")return{ownerPrefix:t.owner,primary:t.name};const e=Fl(t.path)||t.name,r=t.owner?`${t.owner}/${t.name}`:void 0;return{primary:e,suffix:r}}function f5(t){return t.type==="local"&&t.path?t.path:void 0}const G1=["/.clones/","/.repo-cache/"];function g5(t){const e=t.replaceAll("\\","/");return G1.some(r=>e.includes(r))}function v5(t){const e=new Set;for(const r of t){const{repositoryPath:n,worktreePath:a}=r;n&&a&&n===a&&e.add(n)}return e}function j1(t){return t.includes("\\")||t.includes(":")||t.startsWith("/")?void 0:/^([^/]+)\/[^/]+$/.exec(t)?.[1]}function b5(t,e){const{selectedValue:r,selectedRepoType:n,confirmedGithubUrl:a}=t;if(!(n!=="github"||!r)){if(a){const i=e(a)?.owner;if(i)return i}return e(r)?.owner??j1(r)}}function y5(t,e){const r=e.trim().toLowerCase();return r===""?!0:[t.name,t.path,Fl(t.path),t.owner,t.owner?`${t.owner}/${t.name}`:void 0].some(a=>a?.toLowerCase().includes(r)??!1)}const V1="known-repos",K1=6e4;function Y1({saved:t,source:e,dismissed:r,mode:n}){if(!e)return[...t];const a=new Map;if(n==="all")for(const s of[...e.repos,...t]){const o=fn(s);a.has(o)||a.set(o,s)}else{for(const s of t)a.set(fn(s),s);for(const s of e.repos)a.set(fn(s),s)}const i=[...a.values()].filter(s=>!r[fn(s)]);return n==="all"?i:i.slice(0,9)}function w5(t){const e=t.lastUsedAt?Date.parse(t.lastUsedAt):NaN;return Number.isFinite(e)?e:0}function k5({visible:t,admission:e,entry:r,readyAt:n,now:a}){return!t||!e?"skip":!r||r.admission!==e?"load":r.status==="pending"?"reuse":r.status==="ready"&&n?.requestId===r.requestId&&a-n.at<K1?"skip":"load"}function x5(t,e){if(t.type==="local")return t.plainFolder?{repoPath:t.path,plainFolder:!0}:{repoPath:t.path};const r=Mi(t,e);return r?.provider==="gitlab"?{repositoryCheckoutDraft:{instanceBaseUrl:r.instanceBaseUrl,projectPath:r.projectPath}}:r?{githubUrl:`https://github.com/${r.projectPath}`,exactRemote:!0}:{githubUrl:t.githubUrl||`https://github.com/${t.path}`,exactRemote:!0}}function X1({compactFormState:t,lastSubmittedAgent:e,specialists:r,orchestratorId:n}){if(t?.isTeamMode??e?.isTeamMode??!1)return n;const i=o=>r.some(c=>c.id===o),s=t?.selectedSpecialist!==void 0?t.selectedSpecialist:e?.selectedSpecialist!==void 0?e.selectedSpecialist:i(Ns)?Ns:null;return s===null||!i(s)?null:s}const S5=E.createSelector(t=>t.workspaceInitializer.hydrated),A5=E.createSelector(t=>t.workspaceInitializer.compactFormState),T5=E.createSelector(t=>t.workspaceInitializer.onboardingFormState),E5=E.createSelector(t=>t.workspaceInitializer.lastSelectedRepo),M5=E.createSelector(t=>t.workspaceInitializer.branchByRepo),C5=E.createSelector(t=>t.workspaceInitializer.defaultParentPath),I5=E.createSelector(t=>ve(t.workspaceInitializer.recentRepos)),z5=E.createSelector((t,e)=>Se(t.workspaceInitializer.recentRepoRefreshes,e)),R5=E.createSelector((t,e)=>Se(t.workspaceInitializer.directoryStatusChecks,e)),D5=E.createSelector(t=>t.workspaceInitializer.dismissedRecentRepoKeys),N5=E.createSelector(t=>ve(t.workspaceInitializer.remoteSetups)),_5=E.createSelector(t=>t.workspaceInitializer.lastSubmittedAgent),L5=E.createSelector(t=>t.workspaceInitializer.agentByRepo),O5=E.createSelector(t=>t.workspaceInitializer.recentSpecialistIds),P5=E.createSelector((t,e)=>t.workspaceInitializer.agentByRepo[e]??null),$5=E.createSelector(t=>t.workspaceInitializer.pendingGitHubPrefill),B5=E.createSelector((t,e)=>({restore:Se(t.workspaceInitializer.draftRestores,e),clear:Se(t.workspaceInitializer.draftClears,e)})),q5=E.createSelector((t,e,r)=>{const n=Se(t.workspaceInitializer.initializationOutcomes,e);return n?.resourceId===r?n:void 0}),F5=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationOutcomes,e)),H5=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationResumes,e)),U5=E.createSelector(t=>X1({compactFormState:t.workspaceInitializer.compactFormState,lastSubmittedAgent:t.workspaceInitializer.lastSubmittedAgent,specialists:y1.select(t),orchestratorId:b1.select(t)?.id??null})),Z1=E.createSelector(t=>{const e=t.workspaceInitializer.gitCheckRequest,r=Gt.select(t);return e&&r&&t1.select(t)?JSON.stringify([r,e]):null}),W5=E.createSelector(t=>{const e=Z1.select(t),r=t.workspaceInitializer.gitCheck;return e&&r?.context===e?r.available:null}),Q1=E.createSelector(t=>{const e=Se(t.workspaceInitializer.recentRepoRefreshes,V1),r=Gt.select(t);return Y1({saved:ve(t.workspaceInitializer.recentRepos),source:e&&r&&e.admission===r?e:null,dismissed:t.workspaceInitializer.dismissedRecentRepoKeys,mode:"all"})}),G5=E.createSelector(t=>Rl.select(t)?Q1.select(t):[]),j5=E.createSelector(t=>w1.select(t)||void 0),$s="workspace-debug-flags",bn={enableCreationAnimation:!0,animationDuration:300,enablePageTransitions:!0,enableComponentTransitions:!0,showDebugInfo:!1,showPerformanceMetrics:!1,logStateChanges:!1,enableAutofocus:!0,enableBranchCaching:!0,enableFormPersistence:!0,simulateSlowNetwork:!1,simulateErrors:!1,networkDelay:0};class J1{constructor(){se(this,"flags");se(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return bn;try{const e=localStorage.getItem($s);if(e)return{...bn,...JSON.parse(e)}}catch(e){ba.error("Failed to load debug flags:",e)}return bn}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem($s,JSON.stringify(this.flags))}catch(e){ba.error("Failed to save debug flags:",e)}this.listeners.forEach(e=>e(this.flags))}}get(e){return this.flags[e]}set(e,r){this.flags[e]=r,this.saveFlags()}toggle(e){typeof this.flags[e]=="boolean"&&(this.flags[e]=!this.flags[e],this.saveFlags())}reset(){this.flags={...bn},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),ba.info("Debug panel:",this.flags.showDebugInfo?"ON":"OFF")}async simulateDelay(e){return this.flags.simulateSlowNetwork&&this.flags.networkDelay>0&&await new Promise(r=>setTimeout(r,this.flags.networkDelay)),e}}const ya=new J1;function V5(t){if(!t)return"";let e=t;return e=e.replace(/\*\*(.+?)\*\*/g,"$1"),e=e.replace(/__(.+?)__/g,"$1"),e=e.replace(/(?<!\*)\*(?!\*)(.+?)(?<!\*)\*(?!\*)/g,"$1"),e=e.replace(/(?<!_)_(?!_)(.+?)(?<!_)_(?!_)/g,"$1"),e=e.replace(/~~(.+?)~~/g,"$1"),e=e.replace(/`([^`]+)`/g,"$1"),e=e.replace(/\[([^\]]+)\]\([^)]+\)/g,"$1"),e=e.replace(/^#{1,6}\s+/gm,""),e=e.replace(/^\*+\s*/gm,""),e=e.replace(/\s*\*+$/gm,""),e.trim()}function eh(t){return t.charAt(0).toUpperCase()+t.slice(1)}function K5(t){if(!t||t.trim().length===0)return ne.workspace_sidebarHeader_branchEmpty_error();if(/[\s~^:\\?*\[\\]/.test(t))return ne.workspace_sidebarHeader_branchInvalidChars_error();if(t.includes("@{"))return ne.workspace_sidebarChanges_branchAtBrace_error({seq:"@{"});if(t==="@")return ne.workspace_sidebarChanges_branchAt_error({symbol:"@"});if(t.startsWith("."))return ne.workspace_sidebarHeader_branchStartsDot_error();if(t.endsWith(".lock"))return ne.workspace_sidebarHeader_branchEndsLock_error();if(t.includes(".."))return ne.workspace_sidebarHeader_branchDoubleDot_error();if(t.startsWith("/")||t.endsWith("/"))return ne.workspace_sidebarHeader_branchSlashEnds_error();if(t.includes("//"))return ne.workspace_sidebarHeader_branchDoubleSlash_error();if(t.startsWith("-"))return ne.workspace_sidebarHeader_branchStartsDash_error();if(t.endsWith("."))return ne.workspace_sidebarChanges_branchEndsPeriod_error();const e=t.split("/");for(const r of e){if(r.startsWith("."))return ne.workspace_sidebarChanges_branchComponentStartsDot_error();if(r.endsWith(".lock"))return ne.workspace_sidebarChanges_branchComponentEndsLock_error()}if(t.length>250)return ne.workspace_sidebarHeader_branchTooLong_error()}function Y5(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function Ya(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function X5(t,e){return`${e}:${t.agentId??"manual"}`}function th(t,e){if(t.length===0||e>=t.length)return 0;const r=Math.max(0,e);let n=0;for(let a=r;a<t.length;a++)t[a].isPushed||n++;return n}function rh(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed&&n++;return n}function nh(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed||n++;return n}function Z5(t,e,r,n){const a=th(t,e),i=n?` (origin/${n})`:"";return r?a===1?ne.workspace_sidebarChanges_addToPr_one({suffix:i}):ne.workspace_sidebarChanges_addToPr_many({count:rt(a),suffix:i}):a===1?ne.workspace_sidebarChanges_pushToRemote_one({suffix:i}):ne.workspace_sidebarChanges_pushToRemote_many({count:rt(a),suffix:i})}function Q5(t,e,r){const n=rh(t,e),a=r?` (origin/${r})`:"";return n===1?ne.workspace_sidebarChanges_undoPush_one({suffix:a}):ne.workspace_sidebarChanges_undoPush_many({count:rt(n),suffix:a})}function J5(t,e){const r=nh(t,e);return r===1?ne.workspace_sidebarChanges_undoCommit_one():ne.workspace_sidebarChanges_undoCommit_many({count:rt(r)})}function e3(t,e){return e===0&&t.length>0}function t3(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function r3(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function n3(t,e,r){return r?.path===t&&r?.staged===e}function a3(t){if(t.length===0)return[];const e=new Map,r=[...t].sort((n,a)=>n.timestamp-a.timestamp);for(const n of r)for(const a of n.files??[]){const i=e.get(a.path);i?e.set(a.path,{additions:i.additions+(a.additions||0),deletions:i.deletions+(a.deletions||0)}):e.set(a.path,{additions:a.additions||0,deletions:a.deletions||0})}return Array.from(e.entries()).map(([n,a])=>({path:n,additions:a.additions,deletions:a.deletions,staged:!1}))}function i3(t,e,r){const n=new Set;let a=0,i=0;for(const s of t)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of e)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of r)for(const o of s.files||[])n.add(o.path),a+=o.additions||0,i+=o.deletions||0;return{totalFilesChanged:n.size,totalAdditions:a,totalDeletions:i}}function ah(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function s3(t,e,r,n,a){if(t&&t.length>0){const i=a?.split("/")[0];return t.map(s=>{const o=s.url||r(s.number),c=ah(s.url),h=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:Ya(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:h,crossRepoDisplay:h?Ci(h,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:Ya(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function o3(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??x1.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function ih(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function wa(t,e,r){if(e.length===0)return t;const n=r?.split("/")[0],a=t.map(i=>({...i}));for(const i of e){const s=!i.resource&&!i.monitorAvailability&&(!r||i.repo===r),o=z0(i),c=o.toLowerCase(),h=a.find(m=>!!o&&m.url.toLowerCase()===c||(i.resource||i.monitorAvailability?m.monitorIdentity===va(i):!m.resource&&!m.monitorAvailability&&(s?!m.crossRepo&&m.number===i.prNumber:m.crossRepo===i.repo&&m.number===i.prNumber)));if(h){h.monitorAgentId=i.agentId,h.resource=i.resource,h.monitorAvailability=i.monitorAvailability,h.monitorIdentity=i.resource||i.monitorAvailability?va(i):void 0,h.monitorSnapshot=i.lastSnapshot??h.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${r1(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?va(i):void 0,url:o,htmlUrl:o,status:ih(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:Ci(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function Ci(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function l3(t,e,r,n,a){const i=r?.toLowerCase(),s=new Set;for(const S of n)S.repoOwner&&S.repoName&&s.add(`${S.repoOwner}/${S.repoName}`.toLowerCase());let o=t;const c=[],h=[];if(t.some(S=>S.crossRepo)){o=[];for(const S of t)S.crossRepo?s.has(S.crossRepo.toLowerCase())?c.push(S):h.push(S):o.push(S)}const m=[],g=[],v=[];for(const S of e){const C=S.repo.toLowerCase();z0(S)&&o.some(W=>W.url===z0(S))||!S.resource&&!S.monitorAvailability&&(!i||C===i)?m.push(S):z0(S)&&c.some(W=>W.url===z0(S))||!S.resource&&!S.monitorAvailability&&s.has(C)?g.push(S):v.push(S)}const w=wa(o,m,r),A=r?.split("/")[0],M=new Set([...w,...c,...h].map(S=>`${(S.crossRepo??r??"").toLowerCase()}#${S.number}`)),D=[...c];for(const S of n){if(!S.repoOwner||!S.repoName)continue;const C=`${S.repoOwner}/${S.repoName}`;for(const W of S.pullRequests??[]){const X=`${C.toLowerCase()}#${W.number}`;if(M.has(X))continue;M.add(X);const Y=W.url||`https://github.com/${C}/pull/${W.number}`,T=i!==void 0&&C.toLowerCase()===i;D.push({number:W.number,title:a(W),url:Y,htmlUrl:Y,status:Ya(W.status),createdAt:W.createdAt,updatedAt:W.updatedAt,crossRepo:T?void 0:C,crossRepoDisplay:T?void 0:Ci(C,A)})}}return{own:w,otherRoots:wa(D,g,r),otherTracked:wa(h,v,r)}}function Bs(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function c3(t){const e=t.status==="merged"?ne.workspace_prSection_merged_label():t.status==="closed"?ne.workspace_prSection_closed_label():t.status==="draft"?ne.workspace_prSection_statusDraft_label():Bs(t)?ne.workspace_prSection_statusQueued_label():ne.workspace_prSection_statusOpen_label(),r=[n1(t)??e],n=Bs(t)?R1(t.monitorSnapshot?.mergeQueue):null;n&&r.push(n);const a=t.status==="merged"||t.status==="closed"?void 0:t.monitorSnapshot;return a&&(a.checks.total===null||a.checks.passed===null||a.checks.failed===null||a.checks.pending===null||a.availability&&a.availability.checks!=="available"?r.push(ne.chat_monitoredPrs_hover_checksUnknown_label()):a.checks.total>0&&r.push(ne.workspace_prSection_statusChecks_tooltip({passed:rt(a.checks.passed),failed:rt(a.checks.failed),pending:rt(a.checks.pending)})),r.push(a.approvals.have===null||a.availability&&a.availability.approvals!=="available"?ne.chat_monitoredPrs_hover_approvalsUnknown_label():a.approvals.needed!=null?ne.workspace_prSection_statusApprovalsOfNeeded_tooltip({count:rt(a.approvals.have),needed:rt(a.approvals.needed)}):ne.workspace_prSection_statusApprovals_tooltip({count:rt(a.approvals.have)})),a.approvals.changesRequested!==null&&a.approvals.changesRequested>0&&r.push(ne.workspace_prSection_statusChangesRequested_tooltip({count:rt(a.approvals.changesRequested)})),a.availability&&a.availability.discussions!=="available"?r.push(ne.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()):typeof a.threads.unresolved=="number"?a.threads.unresolved>0&&r.push(ne.workspace_prSection_statusUnresolvedThreads_tooltip({count:rt(a.threads.unresolved)})):a.threads.resolutionRequired&&r.push(ne.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()),a.mergeBlockedReason&&r.push(eh(a.mergeBlockedReason))),r.join(`
1
+ var Ju=Object.defineProperty;var e1=(t,e,r)=>e in t?Ju(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var se=(t,e,r)=>e1(t,typeof e!="symbol"?e+"":e,r);import{cA as Gt,aS as t1,dm as Rl,Z as z0,X as va,Y as r1,W as n1,a0 as a1,aa as i1,S as s1,dO as o1,L as l1,b8 as Dl,cD as o0,dl as Nl,aR as c1,aV as u1,cl as h1,c7 as d1,dh as Va,dI as m1,dB as p1,ax as Bn,ak as f1,as as Si,dy as g1,dD as _l,dA as v1}from"./DY6JypjK.js";import{D as Ns,bo as b1,bE as y1,aV as w1}from"./C80u9j_3.js";import{K as k1,D as n0}from"./UuiGcpAE.js";import{xJ as fn,Hp as E,n5 as ve,n4 as Se,aQ as x1,g as Ll,y as Re,bi as l0,jK as Ai,lo as gn,an as Vt,ln as _s,lx as Ls,lu as Os,jh as Ol,gg as Ka,FW as S1,sg as A1,z3 as T1,o8 as E1,ma as vn,AE as M1,iq as C1,lH as I1,li as z1}from"./BSwWMzab.js";import{bo as ne}from"./BAqR9jtB.js";import{t as rt}from"./Bl_iEh1f.js";import{T as R1,x as xr,y as Sr}from"./C8_w7W1W.js";import{a as c0}from"./BJzHxIyr.js";import{o as me,r as jt,e as u0,s as V,_ as Ye,l as h0,g as D1,n as Le,c as lr,b as He,u as N1,d as _1}from"./UyBYtOpv.js";import{j as Pl}from"./BlOn95cv.js";import{r as L1}from"./Ccf4dYFA.js";import{b as O1}from"./C0VJEx2v.js";import{i as je}from"./BHqHNrOT.js";import{l as ba,c as P1}from"./ChTqQfQN.js";import{ax as d0}from"./C9gP-gRX.js";import{i as Ps}from"./CzRl1R1n.js";import{f as Ti,x as $l,y as Bl,j as $1,v as ql,o as B1,r as q1}from"./-URcs0EB.js";const We=[];for(let t=0;t<256;++t)We.push((t+256).toString(16).slice(1));function F1(t,e=0){return(We[t[e+0]]+We[t[e+1]]+We[t[e+2]]+We[t[e+3]]+"-"+We[t[e+4]]+We[t[e+5]]+"-"+We[t[e+6]]+We[t[e+7]]+"-"+We[t[e+8]]+We[t[e+9]]+"-"+We[t[e+10]]+We[t[e+11]]+We[t[e+12]]+We[t[e+13]]+We[t[e+14]]+We[t[e+15]]).toLowerCase()}const H1=new Uint8Array(16);function U1(){return crypto.getRandomValues(H1)}function Ei(t,e,r){return crypto.randomUUID?crypto.randomUUID():W1(t)}function W1(t,e,r){t=t||{};const n=t.random??t.rng?.()??U1();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,F1(n)}function Mi(t,e){if(t.repositoryIdentity===null)return null;if(t.repositoryIdentity){const{provider:a,instanceBaseUrl:i,projectPath:s}=t.repositoryIdentity,o=Mi({...t,repositoryIdentity:void 0,githubUrl:`${i}/${s}`},a==="gitlab"?i:void 0);return o?.provider===a?o:null}const r=t.githubUrl;if(!r)return null;const n=/^(?:https:\/\/github\.com\/|git@github\.com:)([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+?)(?:\.git)?\/?$/i.exec(r);return n&&!n.slice(1).some(a=>a==="."||a==="..")?{provider:"github",instanceBaseUrl:"https://github.com",projectPath:`${n[1]}/${n[2]}`}:e?k1(r.replace(/\.git\/?$/,""),e):null}function m5(t,e){return t.type==="local"?t.plainFolder?"folder":"local":Mi(t,e)?.provider==="gitlab"?"gitlab":"github"}function Fl(t){const e=t.split(/[\\/]/).filter(Boolean);return e[e.length-1]??""}function p5(t){if(t.type!=="local")return{ownerPrefix:t.owner,primary:t.name};const e=Fl(t.path)||t.name,r=t.owner?`${t.owner}/${t.name}`:void 0;return{primary:e,suffix:r}}function f5(t){return t.type==="local"&&t.path?t.path:void 0}const G1=["/.clones/","/.repo-cache/"];function g5(t){const e=t.replaceAll("\\","/");return G1.some(r=>e.includes(r))}function v5(t){const e=new Set;for(const r of t){const{repositoryPath:n,worktreePath:a}=r;n&&a&&n===a&&e.add(n)}return e}function j1(t){return t.includes("\\")||t.includes(":")||t.startsWith("/")?void 0:/^([^/]+)\/[^/]+$/.exec(t)?.[1]}function b5(t,e){const{selectedValue:r,selectedRepoType:n,confirmedGithubUrl:a}=t;if(!(n!=="github"||!r)){if(a){const i=e(a)?.owner;if(i)return i}return e(r)?.owner??j1(r)}}function y5(t,e){const r=e.trim().toLowerCase();return r===""?!0:[t.name,t.path,Fl(t.path),t.owner,t.owner?`${t.owner}/${t.name}`:void 0].some(a=>a?.toLowerCase().includes(r)??!1)}const V1="known-repos",K1=6e4;function Y1({saved:t,source:e,dismissed:r,mode:n}){if(!e)return[...t];const a=new Map;if(n==="all")for(const s of[...e.repos,...t]){const o=fn(s);a.has(o)||a.set(o,s)}else{for(const s of t)a.set(fn(s),s);for(const s of e.repos)a.set(fn(s),s)}const i=[...a.values()].filter(s=>!r[fn(s)]);return n==="all"?i:i.slice(0,9)}function w5(t){const e=t.lastUsedAt?Date.parse(t.lastUsedAt):NaN;return Number.isFinite(e)?e:0}function k5({visible:t,admission:e,entry:r,readyAt:n,now:a}){return!t||!e?"skip":!r||r.admission!==e?"load":r.status==="pending"?"reuse":r.status==="ready"&&n?.requestId===r.requestId&&a-n.at<K1?"skip":"load"}function x5(t,e){if(t.type==="local")return t.plainFolder?{repoPath:t.path,plainFolder:!0}:{repoPath:t.path};const r=Mi(t,e);return r?.provider==="gitlab"?{repositoryCheckoutDraft:{instanceBaseUrl:r.instanceBaseUrl,projectPath:r.projectPath}}:r?{githubUrl:`https://github.com/${r.projectPath}`,exactRemote:!0}:{githubUrl:t.githubUrl||`https://github.com/${t.path}`,exactRemote:!0}}function X1({compactFormState:t,lastSubmittedAgent:e,specialists:r,orchestratorId:n}){if(t?.isTeamMode??e?.isTeamMode??!1)return n;const i=o=>r.some(c=>c.id===o),s=t?.selectedSpecialist!==void 0?t.selectedSpecialist:e?.selectedSpecialist!==void 0?e.selectedSpecialist:i(Ns)?Ns:null;return s===null||!i(s)?null:s}const S5=E.createSelector(t=>t.workspaceInitializer.hydrated),A5=E.createSelector(t=>t.workspaceInitializer.compactFormState),T5=E.createSelector(t=>t.workspaceInitializer.onboardingFormState),E5=E.createSelector(t=>t.workspaceInitializer.lastSelectedRepo),M5=E.createSelector(t=>t.workspaceInitializer.branchByRepo),C5=E.createSelector(t=>t.workspaceInitializer.defaultParentPath),I5=E.createSelector(t=>ve(t.workspaceInitializer.recentRepos)),z5=E.createSelector((t,e)=>Se(t.workspaceInitializer.recentRepoRefreshes,e)),R5=E.createSelector((t,e)=>Se(t.workspaceInitializer.directoryStatusChecks,e)),D5=E.createSelector(t=>t.workspaceInitializer.dismissedRecentRepoKeys),N5=E.createSelector(t=>ve(t.workspaceInitializer.remoteSetups)),_5=E.createSelector(t=>t.workspaceInitializer.lastSubmittedAgent),L5=E.createSelector(t=>t.workspaceInitializer.agentByRepo),O5=E.createSelector(t=>t.workspaceInitializer.recentSpecialistIds),P5=E.createSelector((t,e)=>t.workspaceInitializer.agentByRepo[e]??null),$5=E.createSelector(t=>t.workspaceInitializer.pendingGitHubPrefill),B5=E.createSelector((t,e)=>({restore:Se(t.workspaceInitializer.draftRestores,e),clear:Se(t.workspaceInitializer.draftClears,e)})),q5=E.createSelector((t,e,r)=>{const n=Se(t.workspaceInitializer.initializationOutcomes,e);return n?.resourceId===r?n:void 0}),F5=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationOutcomes,e)),H5=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationResumes,e)),U5=E.createSelector(t=>X1({compactFormState:t.workspaceInitializer.compactFormState,lastSubmittedAgent:t.workspaceInitializer.lastSubmittedAgent,specialists:y1.select(t),orchestratorId:b1.select(t)?.id??null})),Z1=E.createSelector(t=>{const e=t.workspaceInitializer.gitCheckRequest,r=Gt.select(t);return e&&r&&t1.select(t)?JSON.stringify([r,e]):null}),W5=E.createSelector(t=>{const e=Z1.select(t),r=t.workspaceInitializer.gitCheck;return e&&r?.context===e?r.available:null}),Q1=E.createSelector(t=>{const e=Se(t.workspaceInitializer.recentRepoRefreshes,V1),r=Gt.select(t);return Y1({saved:ve(t.workspaceInitializer.recentRepos),source:e&&r&&e.admission===r?e:null,dismissed:t.workspaceInitializer.dismissedRecentRepoKeys,mode:"all"})}),G5=E.createSelector(t=>Rl.select(t)?Q1.select(t):[]),j5=E.createSelector(t=>w1.select(t)||void 0),$s="workspace-debug-flags",bn={enableCreationAnimation:!0,animationDuration:300,enablePageTransitions:!0,enableComponentTransitions:!0,showDebugInfo:!1,showPerformanceMetrics:!1,logStateChanges:!1,enableAutofocus:!0,enableBranchCaching:!0,enableFormPersistence:!0,simulateSlowNetwork:!1,simulateErrors:!1,networkDelay:0};class J1{constructor(){se(this,"flags");se(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return bn;try{const e=localStorage.getItem($s);if(e)return{...bn,...JSON.parse(e)}}catch(e){ba.error("Failed to load debug flags:",e)}return bn}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem($s,JSON.stringify(this.flags))}catch(e){ba.error("Failed to save debug flags:",e)}this.listeners.forEach(e=>e(this.flags))}}get(e){return this.flags[e]}set(e,r){this.flags[e]=r,this.saveFlags()}toggle(e){typeof this.flags[e]=="boolean"&&(this.flags[e]=!this.flags[e],this.saveFlags())}reset(){this.flags={...bn},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),ba.info("Debug panel:",this.flags.showDebugInfo?"ON":"OFF")}async simulateDelay(e){return this.flags.simulateSlowNetwork&&this.flags.networkDelay>0&&await new Promise(r=>setTimeout(r,this.flags.networkDelay)),e}}const ya=new J1;function V5(t){if(!t)return"";let e=t;return e=e.replace(/\*\*(.+?)\*\*/g,"$1"),e=e.replace(/__(.+?)__/g,"$1"),e=e.replace(/(?<!\*)\*(?!\*)(.+?)(?<!\*)\*(?!\*)/g,"$1"),e=e.replace(/(?<!_)_(?!_)(.+?)(?<!_)_(?!_)/g,"$1"),e=e.replace(/~~(.+?)~~/g,"$1"),e=e.replace(/`([^`]+)`/g,"$1"),e=e.replace(/\[([^\]]+)\]\([^)]+\)/g,"$1"),e=e.replace(/^#{1,6}\s+/gm,""),e=e.replace(/^\*+\s*/gm,""),e=e.replace(/\s*\*+$/gm,""),e.trim()}function eh(t){return t.charAt(0).toUpperCase()+t.slice(1)}function K5(t){if(!t||t.trim().length===0)return ne.workspace_sidebarHeader_branchEmpty_error();if(/[\s~^:\\?*\[\\]/.test(t))return ne.workspace_sidebarHeader_branchInvalidChars_error();if(t.includes("@{"))return ne.workspace_sidebarChanges_branchAtBrace_error({seq:"@{"});if(t==="@")return ne.workspace_sidebarChanges_branchAt_error({symbol:"@"});if(t.startsWith("."))return ne.workspace_sidebarHeader_branchStartsDot_error();if(t.endsWith(".lock"))return ne.workspace_sidebarHeader_branchEndsLock_error();if(t.includes(".."))return ne.workspace_sidebarHeader_branchDoubleDot_error();if(t.startsWith("/")||t.endsWith("/"))return ne.workspace_sidebarHeader_branchSlashEnds_error();if(t.includes("//"))return ne.workspace_sidebarHeader_branchDoubleSlash_error();if(t.startsWith("-"))return ne.workspace_sidebarHeader_branchStartsDash_error();if(t.endsWith("."))return ne.workspace_sidebarChanges_branchEndsPeriod_error();const e=t.split("/");for(const r of e){if(r.startsWith("."))return ne.workspace_sidebarChanges_branchComponentStartsDot_error();if(r.endsWith(".lock"))return ne.workspace_sidebarChanges_branchComponentEndsLock_error()}if(t.length>250)return ne.workspace_sidebarHeader_branchTooLong_error()}function Y5(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function Ya(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function X5(t,e){return`${e}:${t.agentId??"manual"}`}function th(t,e){if(t.length===0||e>=t.length)return 0;const r=Math.max(0,e);let n=0;for(let a=r;a<t.length;a++)t[a].isPushed||n++;return n}function rh(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed&&n++;return n}function nh(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed||n++;return n}function Z5(t,e,r,n){const a=th(t,e),i=n?` (origin/${n})`:"";return r?a===1?ne.workspace_sidebarChanges_addToPr_one({suffix:i}):ne.workspace_sidebarChanges_addToPr_many({count:rt(a),suffix:i}):a===1?ne.workspace_sidebarChanges_pushToRemote_one({suffix:i}):ne.workspace_sidebarChanges_pushToRemote_many({count:rt(a),suffix:i})}function Q5(t,e,r){const n=rh(t,e),a=r?` (origin/${r})`:"";return n===1?ne.workspace_sidebarChanges_undoPush_one({suffix:a}):ne.workspace_sidebarChanges_undoPush_many({count:rt(n),suffix:a})}function J5(t,e){const r=nh(t,e);return r===1?ne.workspace_sidebarChanges_undoCommit_one():ne.workspace_sidebarChanges_undoCommit_many({count:rt(r)})}function e3(t,e){return e===0&&t.length>0}function t3(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function r3(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function n3(t,e,r){return r?.path===t&&r?.staged===e}function a3(t){if(t.length===0)return[];const e=new Map,r=[...t].sort((n,a)=>n.timestamp-a.timestamp);for(const n of r)for(const a of n.files??[]){const i=e.get(a.path);i?e.set(a.path,{additions:i.additions+(a.additions||0),deletions:i.deletions+(a.deletions||0)}):e.set(a.path,{additions:a.additions||0,deletions:a.deletions||0})}return Array.from(e.entries()).map(([n,a])=>({path:n,additions:a.additions,deletions:a.deletions,staged:!1}))}function i3(t,e,r){const n=new Set;let a=0,i=0;for(const s of t)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of e)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of r)for(const o of s.files||[])n.add(o.path),a+=o.additions||0,i+=o.deletions||0;return{totalFilesChanged:n.size,totalAdditions:a,totalDeletions:i}}function ah(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function s3(t,e,r,n,a){if(t&&t.length>0){const i=a?.split("/")[0];return t.map(s=>{const o=s.url||r(s.number),c=ah(s.url),h=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:Ya(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:h,crossRepoDisplay:h?Ci(h,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:Ya(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function o3(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??x1.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function ih(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function wa(t,e,r){if(e.length===0)return t;const n=r?.split("/")[0],a=t.map(i=>({...i}));for(const i of e){const s=!i.resource&&!i.monitorAvailability&&(!r||i.repo===r),o=z0(i),c=o.toLowerCase(),h=a.find(m=>!!o&&m.url.toLowerCase()===c||(i.resource||i.monitorAvailability?m.monitorIdentity===va(i):!m.resource&&!m.monitorAvailability&&(s?!m.crossRepo&&m.number===i.prNumber:m.crossRepo===i.repo&&m.number===i.prNumber)));if(h){h.monitorAgentId=i.agentId,h.resource=i.resource,h.monitorAvailability=i.monitorAvailability,h.monitorIdentity=i.resource||i.monitorAvailability?va(i):void 0,h.monitorSnapshot=i.lastSnapshot??h.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${r1(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?va(i):void 0,url:o,htmlUrl:o,status:ih(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:Ci(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function Ci(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function l3(t,e,r,n,a){const i=r?.toLowerCase(),s=new Set;for(const S of n)S.repoOwner&&S.repoName&&s.add(`${S.repoOwner}/${S.repoName}`.toLowerCase());let o=t;const c=[],h=[];if(t.some(S=>S.crossRepo)){o=[];for(const S of t)S.crossRepo?s.has(S.crossRepo.toLowerCase())?c.push(S):h.push(S):o.push(S)}const m=[],g=[],v=[];for(const S of e){const C=S.repo.toLowerCase();z0(S)&&o.some(W=>W.url===z0(S))||!S.resource&&!S.monitorAvailability&&(!i||C===i)?m.push(S):z0(S)&&c.some(W=>W.url===z0(S))||!S.resource&&!S.monitorAvailability&&s.has(C)?g.push(S):v.push(S)}const w=wa(o,m,r),A=r?.split("/")[0],M=new Set([...w,...c,...h].map(S=>`${(S.crossRepo??r??"").toLowerCase()}#${S.number}`)),D=[...c];for(const S of n){if(!S.repoOwner||!S.repoName)continue;const C=`${S.repoOwner}/${S.repoName}`;for(const W of S.pullRequests??[]){const X=`${C.toLowerCase()}#${W.number}`;if(M.has(X))continue;M.add(X);const Y=W.url||`https://github.com/${C}/pull/${W.number}`,T=i!==void 0&&C.toLowerCase()===i;D.push({number:W.number,title:a(W),url:Y,htmlUrl:Y,status:Ya(W.status),createdAt:W.createdAt,updatedAt:W.updatedAt,crossRepo:T?void 0:C,crossRepoDisplay:T?void 0:Ci(C,A)})}}return{own:w,otherRoots:wa(D,g,r),otherTracked:wa(h,v,r)}}function Bs(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function c3(t){const e=t.status==="merged"?ne.workspace_prSection_merged_label():t.status==="closed"?ne.workspace_prSection_closed_label():t.status==="draft"?ne.workspace_prSection_statusDraft_label():Bs(t)?ne.workspace_prSection_statusQueued_label():ne.workspace_prSection_statusOpen_label(),r=[n1(t)??e],n=Bs(t)?R1(t.monitorSnapshot?.mergeQueue):null;n&&r.push(n);const a=t.status==="merged"||t.status==="closed"?void 0:t.monitorSnapshot;return a&&(a.checks.total===null||a.checks.passed===null||a.checks.failed===null||a.checks.pending===null||a.availability&&a.availability.checks!=="available"?r.push(ne.chat_monitoredPrs_hover_checksUnknown_label()):a.checks.total>0&&r.push(ne.workspace_prSection_statusChecks_tooltip({passed:rt(a.checks.passed),failed:rt(a.checks.failed),pending:rt(a.checks.pending)})),r.push(a.approvals.have===null||a.availability&&a.availability.approvals!=="available"?ne.chat_monitoredPrs_hover_approvalsUnknown_label():a.approvals.needed!=null?ne.workspace_prSection_statusApprovalsOfNeeded_tooltip({count:rt(a.approvals.have),needed:rt(a.approvals.needed)}):ne.workspace_prSection_statusApprovals_tooltip({count:rt(a.approvals.have)})),a.approvals.changesRequested!==null&&a.approvals.changesRequested>0&&r.push(ne.workspace_prSection_statusChangesRequested_tooltip({count:rt(a.approvals.changesRequested)})),a.availability&&a.availability.discussions!=="available"?r.push(ne.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()):typeof a.threads.unresolved=="number"?a.threads.unresolved>0&&r.push(ne.workspace_prSection_statusUnresolvedThreads_tooltip({count:rt(a.threads.unresolved)})):a.threads.resolutionRequired&&r.push(ne.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()),a.mergeBlockedReason&&r.push(eh(a.mergeBlockedReason))),r.join(`
2
2
  `)}function u3(t,e){return e.has(t??"manual")}function h3(t,e){return{path:t.relativePath,additions:t.stats.additions,deletions:t.stats.deletions,staged:e,status:t.status,attribution:t.attribution?.agent?{agentId:t.attribution.agent.agentId,agentName:t.attribution.agent.agentName,sessionId:t.attribution.agent.sessionId,turnNumber:t.attribution.agent.turnNumber,timestamp:t.attribution.timestamp}:void 0}}const Hl=500;function d3(t,e=Hl){const r=Math.max(0,Math.floor(e));return t.length<=r?{visible:t,shown:t.length,hiddenCount:0}:{visible:t.slice(0,r),shown:r,hiddenCount:t.length-r}}function m3(t,e,r=Hl){let n=Math.max(0,Math.floor(r)),a=0,i=0;return{groups:t.map(o=>{if(e(o))return{group:o,visibleFiles:[]};const c=Math.min(n,o.files.length);return n-=c,a+=c,i+=o.files.length-c,{group:o,visibleFiles:c===o.files.length?o.files:o.files.slice(0,c)}}),shown:a,hiddenCount:i}}function p3(t){if(t.hiddenCount<=0)return"";const e=rt(t.shown),r=rt(t.shown+t.hiddenCount);return t.hiddenCount===1?ne.workspace_fileChanges_hiddenFiles_one({shown:e,total:r}):ne.workspace_fileChanges_hiddenFiles_many({shown:e,total:r,count:rt(t.hiddenCount)})}function sh(t){if(!t)return{};try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Xa(t){return t.startsWith("@")?t.slice(1):t}function oh(t,e,r,n){const a=t.fullPath||t.path||t.filename;if(a)return Xa(String(a));const i=[r,e,n.trim()].map(Xa).filter(Boolean),s=i.find(o=>o.includes("/"))??i[0];return s?a1(s).path:void 0}function lh(t){const e=t.line??t.startLine??t.range?.start;return typeof e=="number"&&Number.isFinite(e)?e:void 0}function ch(t){if(!t||t.getAttribute("data-mention")===null)return null;const e=t.getAttribute("data-type")||"",r=t.getAttribute("data-id")||"",n=t.getAttribute("data-label")||"",a=t.getAttribute("data-uri")||"",i=sh(t.getAttribute("data-meta")),s={type:e,id:r,label:n,uri:a,meta:i},o=a.startsWith("intent://")?a:typeof i.fullUrl=="string"&&i.fullUrl.startsWith("intent://")?i.fullUrl:void 0;if(o&&(s.intentUrl=o),e==="file"||e==="file-range"){const c=oh(i,n,r,t.textContent||"");c&&(s.filePath=c);const h=lh(i);h!==void 0&&(s.line=h)}else if(e==="folder"||e==="source-folder"){const c=i.fullPath||i.path||r||n,h=c?Xa(String(c)).replace(/\/+$/,""):"";h&&(s.folderPath=h)}else if(e==="note"||e==="note-range"){const c=i.noteId||r;c&&(s.note=i.isExternalLink&&i.workspaceId?{id:c,workspaceId:String(i.workspaceId)}:{id:c})}return s}function f3(t){return{sidebarTabId:"files",type:"file",filePath:`${t}/`}}function Ii(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Lr=Ii();function Ul(t){Lr=t}var Ir={exec:()=>null};function Kr(t){let e=[];return r=>{let n=Math.max(0,Math.min(3,r-1)),a=e[n];return a||(a=t(n),e[n]=a),a}}function ce(t,e=""){let r=typeof t=="string"?t:t.source,n={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(Ke.caret,"$1"),r=r.replace(a,s),n},getRegex:()=>new RegExp(r,e)};return n}var uh=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),Ke={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Kr(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Kr(t=>new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Kr(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:Kr(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:Kr(t=>new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Kr(t=>new RegExp(`^ {0,${t}}>`))},hh=/^(?:[ \t]*(?:\n|$))+/,dh=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,mh=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,U0=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ph=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,zi=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Wl=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Gl=ce(Wl).replace(/bull/g,zi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),fh=ce(Wl).replace(/bull/g,zi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Ri=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,gh=/^[^\n]+/,Di=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,vh=ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Di).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),bh=ce(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,zi).getRegex(),qn="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ni=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,yh=ce("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Ni).replace("tag",qn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),jl=t=>ce(Ri).replace("hr",U0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",t).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qn).getRegex(),wh=jl(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),kh=jl(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),xh=ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",kh).getRegex(),_i={blockquote:xh,code:dh,def:vh,fences:mh,heading:ph,hr:U0,html:yh,lheading:Gl,list:bh,newline:hh,paragraph:wh,table:Ir,text:gh},qs=ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",U0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qn).getRegex(),Sh={..._i,lheading:fh,table:qs,paragraph:ce(Ri).replace("hr",U0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",qs).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qn).getRegex()},Ah={..._i,html:ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ni).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ir,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ce(Ri).replace("hr",U0).replace("heading",` *#{1,6} *[^
3
3
  ]`).replace("lheading",Gl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Th=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Eh=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Vl=/^( {2,}|\\)\n(?!\s*$)/,Mh=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Kt=/[\p{P}\p{S}]/u,m0=/[\s\p{P}\p{S}]/u,W0=/[^\s\p{P}\p{S}]/u,Ch=ce(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,m0).getRegex(),Ih=/[\p{Pi}\p{Ps}"']/u,Kl=/(?!~)[\p{P}\p{S}]/u,zh=/(?!~)[\s\p{P}\p{S}]/u,Rh=/(?:[^\s\p{P}\p{S}]|~)/u,Dh=ce(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",uh?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Yl=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Nh=ce(Yl,"u").replace(/punct/g,Kt).getRegex(),_h=ce(Yl,"u").replace(/punct/g,Kl).getRegex(),Lh=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Oh=ce(Lh,"u").replace(/openQuote/g,Ih).replace(/punct/g,Kt).getRegex(),Xl="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ph=ce(Xl,"gu").replace(/notPunctSpace/g,W0).replace(/punctSpace/g,m0).replace(/punct/g,Kt).getRegex(),$h=ce(Xl,"gu").replace(/notPunctSpace/g,Rh).replace(/punctSpace/g,zh).replace(/punct/g,Kl).getRegex(),Bh="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",qh=ce(Bh,"gu").replace(/notPunctSpace/g,W0).replace(/punctSpace/g,m0).replace(/punct/g,Kt).getRegex(),Fh=ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,W0).replace(/punctSpace/g,m0).replace(/punct/g,Kt).getRegex(),Hh="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",Uh=ce(Hh,"gu").replace(/notPunctSpace/g,W0).replace(/punctSpace/g,m0).replace(/punct/g,Kt).getRegex(),Wh=ce(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Kt).getRegex(),Gh="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",jh=ce(Gh,"gu").replace(/notPunctSpace/g,W0).replace(/punctSpace/g,m0).replace(/punct/g,Kt).getRegex(),Vh=ce(/\\(punct)/,"gu").replace(/punct/g,Kt).getRegex(),Kh=ce(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Yh=ce(Ni).replace("(?:-->|$)","-->").getRegex(),Xh=ce("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Yh).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Nn=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Zh=ce(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Nn).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Zl=ce(/^!?\[(label)\]\[(ref)\]/).replace("label",Nn).replace("ref",Di).getRegex(),Ql=ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",Di).getRegex(),Qh=ce("reflink|nolink(?!\\()","g").replace("reflink",Zl).replace("nolink",Ql).getRegex(),Fs=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Li={_backpedal:Ir,anyPunctuation:Vh,autolink:Kh,blockSkip:Dh,br:Vl,code:Eh,del:Ir,delLDelim:Ir,delRDelim:Ir,emStrongLDelim:Nh,emStrongRDelimAst:Ph,emStrongRDelimUnd:Fh,escape:Th,link:Zh,nolink:Ql,punctuation:Ch,reflink:Zl,reflinkSearch:Qh,tag:Xh,text:Mh,url:Ir},Jh={...Li,emStrongLDelim:Oh,emStrongRDelimAst:qh,emStrongRDelimUnd:Uh,link:ce(/^!?\[(label)\]\((.*?)\)/).replace("label",Nn).getRegex(),reflink:ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Nn).getRegex()},Za={...Li,emStrongRDelimAst:$h,emStrongLDelim:_h,delLDelim:Wh,delRDelim:jh,url:ce(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Fs).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ce(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Fs).getRegex()},ed={...Za,br:ce(Vl).replace("{2,}","*").getRegex(),text:ce(Za.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},yn={normal:_i,gfm:Sh,pedantic:Ah},x0={normal:Li,gfm:Za,breaks:ed,pedantic:Jh},td={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Hs=t=>td[t];function Dt(t,e){if(e){if(Ke.escapeTest.test(t))return t.replace(Ke.escapeReplace,Hs)}else if(Ke.escapeTestNoEncode.test(t))return t.replace(Ke.escapeReplaceNoEncode,Hs);return t}function Us(t){try{t=encodeURI(t).replace(Ke.percentDecode,"%")}catch{return null}return t}function Ws(t,e){let r=t.replace(Ke.findPipe,(i,s,o)=>{let c=!1,h=s;for(;--h>=0&&o[h]==="\\";)c=!c;return c?"|":" |"}),n=r.split(Ke.splitPipe),a=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;a<n.length;a++)n[a]=n[a].trim().replace(Ke.slashPipe,"|");return n}function rr(t,e,r){let n=t.length;if(n===0)return"";let a=0;for(;a<n&&t.charAt(n-a-1)===e;)a++;return t.slice(0,n-a)}function Gs(t){let e=t.split(`
4
4
  `),r=e.length-1;for(;r>=0&&Ke.blankLine.test(e[r]);)r--;return e.length-r<=2?t:e.slice(0,r+1).join(`
@@ -1,4 +1,4 @@
1
- import{bo as b,t as wt,bq as V,a_ as D,by as Tt,bs as xt,b as kt,bu as N}from"./BV49_RX-.js";import{bs as It,ca as J,aD as t,a7 as At,ay as Q,W as w,bn as Pt,bS as F,c9 as f,aA as M,aB as x,a5 as I,bA as A,bl as P,b_ as E,bO as S}from"./DYhIMPy1.js";import{E as St}from"./8rrBGDgQ.js";import{c as Wt}from"./LnbsKux_.js";import{C as R}from"./DypB-Dwi.js";import{L as $t}from"./D8dE5NKO.js";import"./CMNPJIlE.js";import"./DU64vtBR.js";import"./C9Ba8Wsx.js";import{be as Dt}from"./vV7Eo_ua.js";import"./D7b_n5fi.js";import"./DaUwNiAB.js";import{Hm as B,HT as Nt,I7 as Ft,HY as Et,tV as Bt}from"./DaA44xVk.js";import{T as Lt}from"./BP22EbgY.js";import{g as Ut}from"./DfN8_dcw.js";import{dl as Ot}from"./BMoOyvL9.js";import{bN as Ht,bK as jt,b5 as Vt}from"./li27w4Od.js";import"./Ddfj4iOJ.js";import{M as Mt}from"./BDPd3Gxs.js";import{V as qt}from"./CWlg1b-s.js";import{O as Rt}from"./Cee62BOx.js";import{c as Gt}from"./ChTqQfQN.js";import{i as Kt}from"./H2jLkRRS.js";const T=new $t({category:"change-converters"});function q(e,n){return e.path||e.file||e.filePath||e.relativePath||n?.filePath}function X(e,n){return{additions:e.additions??n?.additions??0,deletions:e.deletions??n?.deletions??0,binary:e.binary??!1}}function Yt(e,n){if(n.actor?.type==="agent"&&n.actor.id){const r=n.actor;return{agentId:r.id,agentName:r.name||b.fileTracking_changeTimeline_agent_fallback(),sessionId:r.sessionId||e.sessionId||"",turnNumber:r.turnNumber??e.turnNumber??0,messageId:r.messageId,timestamp:new Date(n.timestamp).getTime()}}if(e.agentId)return{agentId:e.agentId,agentName:e.agentName||b.fileTracking_changeTimeline_agent_fallback(),sessionId:e.sessionId||"",turnNumber:e.turnNumber||0,timestamp:new Date(n.timestamp).getTime()}}function Z(e,n){return{timestamp:new Date(e.timestamp).getTime(),manual:e.actor?.type==="user",agent:Yt(n,e)}}function tt(e,n){return{oldContent:n?.oldContent??e.oldContent,newContent:n?.newContent??e.newContent,diff:e.diff??n?.diff}}function et(e,n,r){return r!==void 0?`${e}-${n}-${r}`:`${e}-${n}`}function zt(e){try{const n=e.data||{},r=e.codeChange;T.debug("Converting event to TrackedChange",{eventType:e.type,eventId:e.id,hasData:!!n,hasCodeChange:!!r});const c=q(n,r);if(e.type.startsWith("file:")&&c){const d=X(n,r);return T.debug("Creating TrackedChange for file event",{filePath:c,stats:d,hasDiff:!!(n.diff||r?.diff)}),[{id:et("event",e.id),file:c,relativePath:c,stage:R.Unstaged,stats:d,attribution:Z(e,n),content:tt(n,r)}]}return(e.type==="agent:completed"||e.type.startsWith("agent:"))&&n.fileChanges&&Array.isArray(n.fileChanges)?(T.debug("Creating TrackedChanges for agent event",{eventType:e.type,fileChangesCount:n.fileChanges.length,agentId:n.agentId}),n.fileChanges.filter(d=>q(d)?!0:(T.warn("Skipping file change without path",{change:d}),!1)).map((d,s)=>{const v=q(d);if(!v)throw new Error("file change without path");return{id:et("event",e.id,s),file:v,relativePath:v,stage:R.Unstaged,stats:X(d),attribution:Z(e,n),content:tt(d)}})):(T.debug("No TrackedChanges created for event",{eventType:e.type,eventId:e.id,hasFilePath:!!c,hasFileChanges:!!(n.fileChanges&&Array.isArray(n.fileChanges))}),[])}catch(n){return T.error("Error converting event to TrackedChange",n instanceof Error?n:new Error(String(n)),{eventType:e.type,eventId:e.id}),[]}}function Jt(e){if(!e)return{oldContent:"",newContent:""};const n=[],r=[],c=e.split(`
1
+ import{bo as b,t as wt,bq as M,a_ as D,by as Tt,bs as xt,b as kt,bu as N}from"./BAqR9jtB.js";import{bs as It,ca as J,aD as t,a7 as At,ay as Q,W as w,bn as Pt,bS as F,c9 as f,aA as V,aB as x,a5 as I,bA as A,bl as P,b_ as E,bO as S}from"./DYhIMPy1.js";import{E as St}from"./UuiGcpAE.js";import{c as Wt}from"./B2RRuLl5.js";import{C as R}from"./DypB-Dwi.js";import{L as $t}from"./D8dE5NKO.js";import"./C-fnz5X4.js";import"./BPk16bSc.js";import"./DiCMHWTR.js";import{be as Dt}from"./DKXEy5Lq.js";import"./C9gP-gRX.js";import"./B6Eksue8.js";import{Hp as B,HW as Nt,Ia as Ft,H$ as Et,tY as Bt}from"./BSwWMzab.js";import{T as Lt}from"./CXNySl0c.js";import{g as Ut}from"./DfN8_dcw.js";import{dl as Ot}from"./DY6JypjK.js";import{bN as Ht,bK as jt,b5 as Mt}from"./CzrG_lpv.js";import"./7IyNIHph.js";import{M as Vt}from"./AGSVFpXc.js";import{V as qt}from"./CeQYwwry.js";import{O as Rt}from"./D4qqUzAr.js";import{c as Gt}from"./ChTqQfQN.js";import{i as Kt}from"./H2jLkRRS.js";const T=new $t({category:"change-converters"});function q(e,n){return e.path||e.file||e.filePath||e.relativePath||n?.filePath}function X(e,n){return{additions:e.additions??n?.additions??0,deletions:e.deletions??n?.deletions??0,binary:e.binary??!1}}function Yt(e,n){if(n.actor?.type==="agent"&&n.actor.id){const r=n.actor;return{agentId:r.id,agentName:r.name||b.fileTracking_changeTimeline_agent_fallback(),sessionId:r.sessionId||e.sessionId||"",turnNumber:r.turnNumber??e.turnNumber??0,messageId:r.messageId,timestamp:new Date(n.timestamp).getTime()}}if(e.agentId)return{agentId:e.agentId,agentName:e.agentName||b.fileTracking_changeTimeline_agent_fallback(),sessionId:e.sessionId||"",turnNumber:e.turnNumber||0,timestamp:new Date(n.timestamp).getTime()}}function Z(e,n){return{timestamp:new Date(e.timestamp).getTime(),manual:e.actor?.type==="user",agent:Yt(n,e)}}function tt(e,n){return{oldContent:n?.oldContent??e.oldContent,newContent:n?.newContent??e.newContent,diff:e.diff??n?.diff}}function et(e,n,r){return r!==void 0?`${e}-${n}-${r}`:`${e}-${n}`}function zt(e){try{const n=e.data||{},r=e.codeChange;T.debug("Converting event to TrackedChange",{eventType:e.type,eventId:e.id,hasData:!!n,hasCodeChange:!!r});const c=q(n,r);if(e.type.startsWith("file:")&&c){const d=X(n,r);return T.debug("Creating TrackedChange for file event",{filePath:c,stats:d,hasDiff:!!(n.diff||r?.diff)}),[{id:et("event",e.id),file:c,relativePath:c,stage:R.Unstaged,stats:d,attribution:Z(e,n),content:tt(n,r)}]}return(e.type==="agent:completed"||e.type.startsWith("agent:"))&&n.fileChanges&&Array.isArray(n.fileChanges)?(T.debug("Creating TrackedChanges for agent event",{eventType:e.type,fileChangesCount:n.fileChanges.length,agentId:n.agentId}),n.fileChanges.filter(d=>q(d)?!0:(T.warn("Skipping file change without path",{change:d}),!1)).map((d,s)=>{const v=q(d);if(!v)throw new Error("file change without path");return{id:et("event",e.id,s),file:v,relativePath:v,stage:R.Unstaged,stats:X(d),attribution:Z(e,n),content:tt(d)}})):(T.debug("No TrackedChanges created for event",{eventType:e.type,eventId:e.id,hasFilePath:!!c,hasFileChanges:!!(n.fileChanges&&Array.isArray(n.fileChanges))}),[])}catch(n){return T.error("Error converting event to TrackedChange",n instanceof Error?n:new Error(String(n)),{eventType:e.type,eventId:e.id}),[]}}function Jt(e){if(!e)return{oldContent:"",newContent:""};const n=[],r=[],c=e.split(`
2
2
  `);c.length>0&&c[c.length-1]===""&&c.pop();let d=!1;for(const s of c)if(!(s.startsWith("diff --git")||s.startsWith("index ")||s.startsWith("--- ")||s.startsWith("+++ ")||s.startsWith("\"))){if(s.startsWith("@@")){d=!0;continue}d&&(s.startsWith("+")?r.push(s.slice(1)):s.startsWith("-")?n.push(s.slice(1)):s.startsWith(" ")?(n.push(s.slice(1)),r.push(s.slice(1))):s===""&&(n.push(""),r.push("")))}return{oldContent:n.join(`
3
3
  `),newContent:r.join(`
4
- `)}}var Qt=x("<!> <!>",1),Xt=x('<div class="flex items-center gap-1.5 px-3 py-1.5 text-xs text-subtle bg-muted/50 border-b border-border"><span> </span></div>'),Zt=x('<div class="flex flex-col h-full"><!> <div class="flex-1 min-h-0"><!></div></div>'),te=x('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p> <p class="text-xs opacity-70"> </p></div>'),ee=x('<p class="text-xs opacity-70"> </p>'),ne=x('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p> <!></div>');function ae(e,n){if(new.target)return wt({component:ae,...e});It(n,!0);const r=()=>N(lt,"$workspace",v),c=()=>N(st,"$foldUnchanged",v),d=()=>N(rt,"$lineWrapping",v),s=()=>N(ot,"$diffSideBySide",v),[v,nt]=xt(),at=a=>{qt(a,{embedded:!0,get foldEnabled(){return c()},onToggleFold:()=>B.dispatch(Et()),get wrapEnabled(){return d()},onToggleWrap:()=>B.dispatch(Ft()),get splitEnabled(){return s()},onToggleSplit:()=>B.dispatch(Nt())})},it=a=>{var i=Qt(),g=Q(i);{let m=f(()=>b.layout_diffHeader_goToFile_tooltip());Wt(g,()=>Mt,(l,h)=>{h(l,{get icon(){return Dt},get label(){return t(m)},onclick:$=>ut()})})}var y=F(g,2);{var C=m=>{Rt(m,{get filePath(){return t(K)},get workspaceId(){return _()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return t(O)}})};D(y,m=>{t(K)&&m(C)})}w(a,i)},rt=Ht(),st=jt(),ot=Vt(),dt=Gt("ActivityChangesTabType");let L=V(n,"tab",7),_=V(n,"workspaceId",7),U=V(n,"isActive",7);const G=Ut(),lt=Ot(_()),O=f(()=>r()?.worktreePath||r()?.repositoryPath||void 0),o=f(()=>L().data?.event),ct=f(()=>t(o)?zt(t(o)):[]),u=f(()=>t(ct)[0]),p=f(()=>t(u)?.relativePath||t(u)?.file||null),K=f(()=>t(p)&&t(O)?Kt(t(p))?t(p):`${t(O)}/${t(p)}`:null),H=f(()=>()=>{if(!t(o))return null;const a=t(o).data,i=t(o).codeChange;return a?.diff||i?.diff||t(u)?.content?.diff||null}),Y=f(()=>()=>t(u)?.content?!!(t(u).content.oldContent&&t(u).content.newContent):!1);function ft(a){if(!a)return;const i=a.match(/@@ -(\d+)/);return i?parseInt(i[1],10):void 0}const k=f(()=>{if(t(Y)()&&t(u)?.content)return{oldContent:t(u).content.oldContent??"",newContent:t(u).content.newContent??""};const a=t(H)();return a?Jt(a):null}),W=f(()=>ft(t(H)())),pt=f(()=>t(W)!==void 0&&t(W)>1),gt=f(()=>{const a=t(p)||"",i=t(o)?.data||{};return{id:`activity-${t(o)?.id||"unknown"}-${a}`,file:a,relativePath:a,stage:R.Committed,status:t(u)?.status||"modified",stats:{additions:i?.additions||t(u)?.stats?.additions||0,deletions:i?.deletions||t(u)?.stats?.deletions||0},attribution:{timestamp:t(o)?.timestamp?new Date(t(o).timestamp).getTime():Date.now()},content:t(k)?{oldContent:t(k).oldContent,newContent:t(k).newContent}:void 0}});function ut(a){if(!t(p))return;const g={type:"file",title:t(p).split("/").pop()||t(p),closable:!0,filePath:t(p),workspaceId:_()};B.dispatch(Bt(_(),g))}J(()=>{!G||!U()||G.registerActions({display:at,actions:it})}),J(()=>{if(t(o)){const a=t(o).data;dt.debug("Activity event diff info",{eventType:t(o).type,eventId:t(o).id,filePath:t(p),hasDiffString:!!t(H)(),hasOldNewContent:t(Y)(),hasDiffContents:!!t(k),dataAdditions:a?.additions,dataDeletions:a?.deletions})}});var ht={get tab(){return L()},set tab(a){L(a),M()},get workspaceId(){return _()},set workspaceId(a){_(a),M()},get isActive(){return U()},set isActive(a){U(a),M()},$set:Tt,$on:(a,i)=>kt(n,a,i)},z=At(),mt=Q(z);{var vt=a=>{var i=Zt(),g=I(i);{var y=l=>{var h=Xt(),$=I(h),j=P($,!0);A(h),E(_t=>S(j,_t),[()=>b.layout_activityChanges_partialDiff_label({line:t(W)??0})]),w(l,h)};D(g,l=>{t(pt)&&l(y)})}var C=F(g,2),m=I(C);St(m,()=>`${t(o)?.id}-${t(p)}`,l=>{{let h=f(()=>s()?"split":"unified");Lt(l,{get change(){return t(gt)},get workspaceId(){return _()},get viewMode(){return t(h)},get foldUnchanged(){return c()},get lineWrapping(){return d()},get lineOffset(){return t(W)}})}}),A(C),A(i),w(a,i)},yt=a=>{var i=te(),g=I(i),y=P(g,!0),C=F(g,2),m=P(C,!0);A(i),E((l,h)=>{S(y,l),S(m,h)},[()=>b.layout_activityChanges_noDiffStored_label(),()=>b.layout_activityChanges_diffNotCaptured_description()]),w(a,i)},Ct=a=>{var i=ne(),g=I(i),y=P(g,!0),C=F(g,2);{var m=l=>{var h=ee(),$=P(h,!0);E(j=>S($,j),[()=>b.layout_activityChanges_eventType_label({type:t(o).type})]),w(l,h)};D(C,l=>{t(o)&&l(m)})}A(i),E(l=>S(y,l),[()=>b.layout_activityChanges_noChanges_label()]),w(a,i)};D(mt,a=>{t(p)&&t(k)?a(vt):t(p)?a(yt,1):a(Ct,-1)})}w(e,z);var bt=Pt(ht);return nt(),bt}export{ae as default};
4
+ `)}}var Qt=x("<!> <!>",1),Xt=x('<div class="flex items-center gap-1.5 px-3 py-1.5 text-xs text-subtle bg-muted/50 border-b border-border"><span> </span></div>'),Zt=x('<div class="flex flex-col h-full"><!> <div class="flex-1 min-h-0"><!></div></div>'),te=x('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p> <p class="text-xs opacity-70"> </p></div>'),ee=x('<p class="text-xs opacity-70"> </p>'),ne=x('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p> <!></div>');function ae(e,n){if(new.target)return wt({component:ae,...e});It(n,!0);const r=()=>N(lt,"$workspace",v),c=()=>N(st,"$foldUnchanged",v),d=()=>N(rt,"$lineWrapping",v),s=()=>N(ot,"$diffSideBySide",v),[v,nt]=xt(),at=a=>{qt(a,{embedded:!0,get foldEnabled(){return c()},onToggleFold:()=>B.dispatch(Et()),get wrapEnabled(){return d()},onToggleWrap:()=>B.dispatch(Ft()),get splitEnabled(){return s()},onToggleSplit:()=>B.dispatch(Nt())})},it=a=>{var i=Qt(),g=Q(i);{let m=f(()=>b.layout_diffHeader_goToFile_tooltip());Wt(g,()=>Vt,(l,h)=>{h(l,{get icon(){return Dt},get label(){return t(m)},onclick:$=>ut()})})}var y=F(g,2);{var C=m=>{Rt(m,{get filePath(){return t(K)},get workspaceId(){return _()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return t(O)}})};D(y,m=>{t(K)&&m(C)})}w(a,i)},rt=Ht(),st=jt(),ot=Mt(),dt=Gt("ActivityChangesTabType");let L=M(n,"tab",7),_=M(n,"workspaceId",7),U=M(n,"isActive",7);const G=Ut(),lt=Ot(_()),O=f(()=>r()?.worktreePath||r()?.repositoryPath||void 0),o=f(()=>L().data?.event),ct=f(()=>t(o)?zt(t(o)):[]),u=f(()=>t(ct)[0]),p=f(()=>t(u)?.relativePath||t(u)?.file||null),K=f(()=>t(p)&&t(O)?Kt(t(p))?t(p):`${t(O)}/${t(p)}`:null),H=f(()=>()=>{if(!t(o))return null;const a=t(o).data,i=t(o).codeChange;return a?.diff||i?.diff||t(u)?.content?.diff||null}),Y=f(()=>()=>t(u)?.content?!!(t(u).content.oldContent&&t(u).content.newContent):!1);function ft(a){if(!a)return;const i=a.match(/@@ -(\d+)/);return i?parseInt(i[1],10):void 0}const k=f(()=>{if(t(Y)()&&t(u)?.content)return{oldContent:t(u).content.oldContent??"",newContent:t(u).content.newContent??""};const a=t(H)();return a?Jt(a):null}),W=f(()=>ft(t(H)())),pt=f(()=>t(W)!==void 0&&t(W)>1),gt=f(()=>{const a=t(p)||"",i=t(o)?.data||{};return{id:`activity-${t(o)?.id||"unknown"}-${a}`,file:a,relativePath:a,stage:R.Committed,status:t(u)?.status||"modified",stats:{additions:i?.additions||t(u)?.stats?.additions||0,deletions:i?.deletions||t(u)?.stats?.deletions||0},attribution:{timestamp:t(o)?.timestamp?new Date(t(o).timestamp).getTime():Date.now()},content:t(k)?{oldContent:t(k).oldContent,newContent:t(k).newContent}:void 0}});function ut(a){if(!t(p))return;const g={type:"file",title:t(p).split("/").pop()||t(p),closable:!0,filePath:t(p),workspaceId:_()};B.dispatch(Bt(_(),g))}J(()=>{!G||!U()||G.registerActions({display:at,actions:it})}),J(()=>{if(t(o)){const a=t(o).data;dt.debug("Activity event diff info",{eventType:t(o).type,eventId:t(o).id,filePath:t(p),hasDiffString:!!t(H)(),hasOldNewContent:t(Y)(),hasDiffContents:!!t(k),dataAdditions:a?.additions,dataDeletions:a?.deletions})}});var ht={get tab(){return L()},set tab(a){L(a),V()},get workspaceId(){return _()},set workspaceId(a){_(a),V()},get isActive(){return U()},set isActive(a){U(a),V()},$set:Tt,$on:(a,i)=>kt(n,a,i)},z=At(),mt=Q(z);{var vt=a=>{var i=Zt(),g=I(i);{var y=l=>{var h=Xt(),$=I(h),j=P($,!0);A(h),E(_t=>S(j,_t),[()=>b.layout_activityChanges_partialDiff_label({line:t(W)??0})]),w(l,h)};D(g,l=>{t(pt)&&l(y)})}var C=F(g,2),m=I(C);St(m,()=>`${t(o)?.id}-${t(p)}`,l=>{{let h=f(()=>s()?"split":"unified");Lt(l,{get change(){return t(gt)},get workspaceId(){return _()},get viewMode(){return t(h)},get foldUnchanged(){return c()},get lineWrapping(){return d()},get lineOffset(){return t(W)}})}}),A(C),A(i),w(a,i)},yt=a=>{var i=te(),g=I(i),y=P(g,!0),C=F(g,2),m=P(C,!0);A(i),E((l,h)=>{S(y,l),S(m,h)},[()=>b.layout_activityChanges_noDiffStored_label(),()=>b.layout_activityChanges_diffNotCaptured_description()]),w(a,i)},Ct=a=>{var i=ne(),g=I(i),y=P(g,!0),C=F(g,2);{var m=l=>{var h=ee(),$=P(h,!0);E(j=>S($,j),[()=>b.layout_activityChanges_eventType_label({type:t(o).type})]),w(l,h)};D(C,l=>{t(o)&&l(m)})}A(i),E(l=>S(y,l),[()=>b.layout_activityChanges_noChanges_label()]),w(a,i)};D(mt,a=>{t(p)&&t(k)?a(vt):t(p)?a(yt,1):a(Ct,-1)})}w(e,z);var bt=Pt(ht);return nt(),bt}export{ae as default};
@@ -1 +1 @@
1
- var f=Object.defineProperty;var y=(s,t,e)=>t in s?f(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var i=(s,t,e)=>y(s,typeof t!="symbol"?t+"":t,e);import{F as m}from"./8rrBGDgQ.js";import{b as p}from"./D728aNnl.js";function b(s){const t=s??document.activeElement;return t?!!(t.classList?.contains("xterm")||t.classList?.contains("xterm-helper-textarea")||typeof t.closest=="function"&&t.closest(".xterm")||typeof t.closest=="function"&&t.closest(".terminal-panel")):!1}function K(s){const t=s??document.activeElement;if(!t)return!1;if(p(t))return!0;const e=typeof t.closest=="function";return!!(t.classList?.contains("monaco-editor")||t.classList?.contains("inputarea")||e&&t.closest(".monaco-editor")||t.classList?.contains("cm-content")||e&&t.closest(".cm-editor")||t.classList?.contains("ProseMirror")||e&&t.closest(".ProseMirror"))}class E{constructor(){i(this,"shortcuts",new Map);i(this,"dynamicShortcuts",[]);i(this,"enabled",!1);i(this,"boundHandler",null);i(this,"localFallbacks",new WeakMap);i(this,"boundLocalFallback",t=>{const e=this.localFallbacks.get(t);this.localFallbacks.delete(t),!(!e||t.defaultPrevented)&&(t.preventDefault(),t.stopPropagation(),e.action())});this.boundHandler=this.handleKeyDown.bind(this)}register(t){if(t.binding){this.dynamicShortcuts.push(t);return}const e=this.getShortcutKey(t);this.shortcuts.set(e,t)}unregister(t){const e=this.getShortcutKey(t);this.shortcuts.delete(e)}enable(){!this.enabled&&this.boundHandler&&(window.addEventListener("keydown",this.boundHandler,!0),this.enabled=!0)}disable(){this.enabled&&this.boundHandler&&(window.removeEventListener("keydown",this.boundHandler,!0),window.removeEventListener("keydown",this.boundLocalFallback),this.localFallbacks=new WeakMap,this.enabled=!1)}attach(){this.enable()}detach(){this.disable()}handleKeyDown(t){const e=t.target;if(e.closest?.("[data-shortcut-input], [data-shortcut-entry]"))return;const o=b(e),c=K(e),r=[];t.ctrlKey&&r.push("ctrl"),t.metaKey&&r.push("meta"),t.shiftKey&&r.push("shift"),t.altKey&&r.push("alt");let l=t.key.toLowerCase();t.altKey&&t.code.startsWith("Key")?l=t.code.slice(3).toLowerCase():t.altKey&&t.code.startsWith("Digit")&&(l=t.code.slice(5)),r.push(l);const d=r.join("+"),u=typeof navigator<"u"&&navigator.platform.toUpperCase().includes("MAC"),a=[...this.dynamicShortcuts].reverse().find(({binding:n,enabled:h})=>n&&k(t,n(),u)&&(!h||h(t)))??this.shortcuts.get(d);if(a){if(o&&!a.allowInTerminal||a.ignoreRepeat&&t.repeat||a.enabled&&!a.enabled(t)||a.skipInEditableElements&&c)return;const n=u?t.metaKey||t.altKey:t.ctrlKey||t.metaKey||t.altKey;if(!c||n||a.global){if(a.preferLocal){this.localFallbacks.set(t,a),window.removeEventListener("keydown",this.boundLocalFallback),window.addEventListener("keydown",this.boundLocalFallback);return}t.preventDefault(),t.stopPropagation(),a.action()}}}getShortcutKey(t){const e=[];return t.ctrl&&e.push("ctrl"),t.meta&&e.push("meta"),t.shift&&e.push("shift"),t.alt&&e.push("alt"),e.push(t.key.toLowerCase()),e.join("+")}getShortcuts(){return Array.from(this.shortcuts.values())}clear(){this.shortcuts.clear(),this.dynamicShortcuts=[]}destroy(){this.detach(),this.clear()}}function k(s,t,e){const o=s.altKey&&s.code.startsWith("Key")?s.code.slice(3):s.altKey&&s.code.startsWith("Digit")?s.code.slice(5):s.key;return m({key:o,metaKey:s.metaKey,ctrlKey:s.ctrlKey,altKey:s.altKey,shiftKey:s.shiftKey},t,e)}export{E as K,b as a,K as i};
1
+ var f=Object.defineProperty;var y=(s,t,e)=>t in s?f(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var i=(s,t,e)=>y(s,typeof t!="symbol"?t+"":t,e);import{F as m}from"./UuiGcpAE.js";import{b as p}from"./BgyuoEGq.js";function b(s){const t=s??document.activeElement;return t?!!(t.classList?.contains("xterm")||t.classList?.contains("xterm-helper-textarea")||typeof t.closest=="function"&&t.closest(".xterm")||typeof t.closest=="function"&&t.closest(".terminal-panel")):!1}function K(s){const t=s??document.activeElement;if(!t)return!1;if(p(t))return!0;const e=typeof t.closest=="function";return!!(t.classList?.contains("monaco-editor")||t.classList?.contains("inputarea")||e&&t.closest(".monaco-editor")||t.classList?.contains("cm-content")||e&&t.closest(".cm-editor")||t.classList?.contains("ProseMirror")||e&&t.closest(".ProseMirror"))}class E{constructor(){i(this,"shortcuts",new Map);i(this,"dynamicShortcuts",[]);i(this,"enabled",!1);i(this,"boundHandler",null);i(this,"localFallbacks",new WeakMap);i(this,"boundLocalFallback",t=>{const e=this.localFallbacks.get(t);this.localFallbacks.delete(t),!(!e||t.defaultPrevented)&&(t.preventDefault(),t.stopPropagation(),e.action())});this.boundHandler=this.handleKeyDown.bind(this)}register(t){if(t.binding){this.dynamicShortcuts.push(t);return}const e=this.getShortcutKey(t);this.shortcuts.set(e,t)}unregister(t){const e=this.getShortcutKey(t);this.shortcuts.delete(e)}enable(){!this.enabled&&this.boundHandler&&(window.addEventListener("keydown",this.boundHandler,!0),this.enabled=!0)}disable(){this.enabled&&this.boundHandler&&(window.removeEventListener("keydown",this.boundHandler,!0),window.removeEventListener("keydown",this.boundLocalFallback),this.localFallbacks=new WeakMap,this.enabled=!1)}attach(){this.enable()}detach(){this.disable()}handleKeyDown(t){const e=t.target;if(e.closest?.("[data-shortcut-input], [data-shortcut-entry]"))return;const o=b(e),c=K(e),r=[];t.ctrlKey&&r.push("ctrl"),t.metaKey&&r.push("meta"),t.shiftKey&&r.push("shift"),t.altKey&&r.push("alt");let l=t.key.toLowerCase();t.altKey&&t.code.startsWith("Key")?l=t.code.slice(3).toLowerCase():t.altKey&&t.code.startsWith("Digit")&&(l=t.code.slice(5)),r.push(l);const d=r.join("+"),u=typeof navigator<"u"&&navigator.platform.toUpperCase().includes("MAC"),a=[...this.dynamicShortcuts].reverse().find(({binding:n,enabled:h})=>n&&k(t,n(),u)&&(!h||h(t)))??this.shortcuts.get(d);if(a){if(o&&!a.allowInTerminal||a.ignoreRepeat&&t.repeat||a.enabled&&!a.enabled(t)||a.skipInEditableElements&&c)return;const n=u?t.metaKey||t.altKey:t.ctrlKey||t.metaKey||t.altKey;if(!c||n||a.global){if(a.preferLocal){this.localFallbacks.set(t,a),window.removeEventListener("keydown",this.boundLocalFallback),window.addEventListener("keydown",this.boundLocalFallback);return}t.preventDefault(),t.stopPropagation(),a.action()}}}getShortcutKey(t){const e=[];return t.ctrl&&e.push("ctrl"),t.meta&&e.push("meta"),t.shift&&e.push("shift"),t.alt&&e.push("alt"),e.push(t.key.toLowerCase()),e.join("+")}getShortcuts(){return Array.from(this.shortcuts.values())}clear(){this.shortcuts.clear(),this.dynamicShortcuts=[]}destroy(){this.detach(),this.clear()}}function k(s,t,e){const o=s.altKey&&s.code.startsWith("Key")?s.code.slice(3):s.altKey&&s.code.startsWith("Digit")?s.code.slice(5):s.key;return m({key:o,metaKey:s.metaKey,ctrlKey:s.ctrlKey,altKey:s.altKey,shiftKey:s.shiftKey},t,e)}export{E as K,b as a,K as i};
@@ -1 +1 @@
1
- import{t as g,bq as n,bt as v,by as b,br as h,b as x}from"./BV49_RX-.js";import{bs as y,a7 as S,ay as w,aD as _,W as k,bn as z,aA as i,c9 as C}from"./DYhIMPy1.js";import{c as A}from"./LnbsKux_.js";import{f as I,p as M}from"./DU64vtBR.js";import{S as P}from"./Cu9hF6Lj.js";var W=new Set(["$$slots","$$events","$$legacy","ref","class","data-slot"]);function D(l,t){if(new.target)return g({component:D,...l});y(t,!0);let a=n(t,"ref",15,null),r=n(t,"class",7),s=n(t,"data-slot",7,"separator"),c=h(t,W);var m={get ref(){return a()},set ref(e=null){a(e),i()},get class(){return r()},set class(e){r(e),i()},get"data-slot"(){return s()},set"data-slot"(e="separator"){s(e),i()},$set:b,$on:(e,o)=>x(t,e,o)},p=S(),d=w(p);{let e=C(()=>I("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",r()));A(d,()=>P,(o,u)=>{u(o,v({get"data-slot"(){return s()},get class(){return _(e)}},()=>c,{get ref(){return a()},set ref(f){a(f)}}))})}return k(l,p),z(m)}const F=[{id:"separator-state-matrix",title:"Separator states",states:["horizontal","vertical","decorative","semantic","compact","zoom-200","light","dark"],themes:["light","dark","high-contrast"],viewport:"both"}];M({id:"separator",source:"src/lib/components/ui/separator/separator.svelte",publicImport:"$lib/components/ui/separator",legacyImports:["$lib/components/ui/separator/index.js"],exports:["Root","Separator","separatorMetadata"],category:"primitive",owner:"design-system",callers:["src/features/discussions/components/DiscussionMentionPicker.svelte","src/features/home/HomeAssistantThreads.svelte","src/features/workspace-sharing/components/WorkspaceSharingSetup.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/components/file-explorer/file-explorer-layout.svelte","src/lib/components/ui/sidebar/sidebar-separator.svelte","src/lib/components/workspace/WorkspaceAgentsList.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/separator/separator.test.ts",removalGate:"Retain while exported and orientation, semantic, and fixture tests pass.",dynamicImports:[],fixtures:F});export{D as S};
1
+ import{t as g,bq as n,bt as v,by as b,br as h,b as x}from"./BAqR9jtB.js";import{bs as y,a7 as S,ay as w,aD as _,W as k,bn as z,aA as i,c9 as C}from"./DYhIMPy1.js";import{c as A}from"./B2RRuLl5.js";import{f as I,p as M}from"./BPk16bSc.js";import{S as P}from"./BMkc6ng0.js";var W=new Set(["$$slots","$$events","$$legacy","ref","class","data-slot"]);function D(l,t){if(new.target)return g({component:D,...l});y(t,!0);let a=n(t,"ref",15,null),r=n(t,"class",7),s=n(t,"data-slot",7,"separator"),c=h(t,W);var m={get ref(){return a()},set ref(e=null){a(e),i()},get class(){return r()},set class(e){r(e),i()},get"data-slot"(){return s()},set"data-slot"(e="separator"){s(e),i()},$set:b,$on:(e,o)=>x(t,e,o)},p=S(),d=w(p);{let e=C(()=>I("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",r()));A(d,()=>P,(o,u)=>{u(o,v({get"data-slot"(){return s()},get class(){return _(e)}},()=>c,{get ref(){return a()},set ref(f){a(f)}}))})}return k(l,p),z(m)}const F=[{id:"separator-state-matrix",title:"Separator states",states:["horizontal","vertical","decorative","semantic","compact","zoom-200","light","dark"],themes:["light","dark","high-contrast"],viewport:"both"}];M({id:"separator",source:"src/lib/components/ui/separator/separator.svelte",publicImport:"$lib/components/ui/separator",legacyImports:["$lib/components/ui/separator/index.js"],exports:["Root","Separator","separatorMetadata"],category:"primitive",owner:"design-system",callers:["src/features/discussions/components/DiscussionMentionPicker.svelte","src/features/home/HomeAssistantThreads.svelte","src/features/workspace-sharing/components/WorkspaceSharingSetup.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/components/file-explorer/file-explorer-layout.svelte","src/lib/components/ui/sidebar/sidebar-separator.svelte","src/lib/components/workspace/WorkspaceAgentsList.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/separator/separator.test.ts",removalGate:"Retain while exported and orientation, semantic, and fixture tests pass.",dynamicImports:[],fixtures:F});export{D as S};
@@ -1 +1 @@
1
- import{o as y,e as I,s as S,g as A}from"./BUJT8nbP.js";function U(){return!0}const o=new Date().toISOString(),d=[{id:"mock-ws-1",title:"Example Project",branch:"feature/demo",baseRef:"main",changesets:[],timeline:[],conversationInfo:[],status:"Active",createdAt:o,updatedAt:o,lastActivity:o,repositoryPath:"/Users/demo/projects/example",repositoryOwner:"demo",repositoryName:"example-project",tags:[],agentSummary:{agentIds:["agent-1"]}},{id:"mock-ws-2",title:"Design System",branch:"feature/tokens",baseRef:"main",changesets:[],timeline:[],conversationInfo:[],status:"Active",createdAt:o,updatedAt:o,lastActivity:o,repositoryPath:"/Users/demo/projects/design-system",repositoryOwner:"demo",repositoryName:"design-system",tags:[]}],g=[{path:"workspaceInitializer.state",label:"Workspace initializer state",description:"Browser-preview workspace initializer state.",category:"workspace",type:"object",defaultValue:{},value:{hydrated:!0}},{path:"hardwareConsole.state",label:"Hardware console state",description:"Browser-preview hardware console state.",category:"hardwareConsole",type:"object",defaultValue:{},value:{}},{path:"rtk.enabled",label:"RTK enabled",description:"Use RTK compressed command output.",category:"tools",type:"boolean",defaultValue:!1,value:!1,origin:"default"}];let l=0;function C(t){const e=g.find(a=>a.path===t);if(!e)return m("INVALID_PARAMS",-32602,`Browser mock: setting "${String(t)}" not found`);const{value:r,origin:s,...i}=e;return{path:e.path,value:r,definition:i,...s?{origin:s}:{},revision:l}}function M(t){return Array.isArray(t)?Object.fromEntries(t.filter(e=>typeof e=="string").map(e=>[e,{available:!1}])):{}}let w=0,B=0;const W=crypto.randomUUID(),p=Symbol("browser-mock-error");function m(t,e,r){return{[p]:{code:t,message:r,data:{code:t},rpcCode:e}}}function R(t){return typeof t=="object"&&t!==null&&p in t}function T(t,e){if(t==="workspace.list")return{workspaces:d};if(t==="workspace.get"){const r=d.find(s=>s.id===e?.workspaceId);return r?{workspace:r}:m("INVALID_PARAMS",-32602,`Browser mock: workspace "${String(e?.workspaceId)}" not found`)}if(t==="task.listAgentLinks")return{links:[],linksByNoteId:{}};if(t==="workspace.getTokenUsage")return{tokenUsage:{byAgentId:{},totals:{inputTokens:0,outputTokens:0,cacheReadTokens:0,cacheCreationTokens:0},byModel:{},byAgentModel:[],lastScanAt:null}};if(t==="workspace.getContext")return{items:[]};if(t==="script.list")return{scripts:[]};if(t==="terminal.list")return{terminals:[],daemonBootId:W};if(t==="terminal.create")return{terminalId:`browser-mock-terminal-${++B}`};if(t==="terminal.write"||t==="terminal.resize"||t==="terminal.kill")return{ok:!0};if(t==="terminal.getBuffer")return{terminalId:String(e?.terminalId??""),data:""};if(t==="terminal.readOutput")return"";if(t==="agent.listActive")return{streams:[]};if(t==="prMonitor.list")return{monitors:[]};if(t==="gitRoot.list")return{gitRoots:[]};if(t==="file.tree")return[];if(t==="file-tracking.getChanges")return{changes:[],truncated:!1,totalCount:0};if(t==="file-tracking.loadCommits")return{commits:[],boundarySha:null,nextToken:null};if(t==="repo.list")return{repos:[]};if(t==="settings.list")return{settings:g,revision:l};if(t==="settings.get")return C(e?.path);if(t==="settings.update"){const r=Array.isArray(e?.changes)?e.changes:[],s=[];for(const i of r){if(typeof i!="object"||i===null)continue;const{path:a,value:c}=i,u=g.find(v=>v.path===a);u&&(u.value=c,s.push({path:u.path,value:c,...u.origin?{origin:u.origin}:{}}))}return s.length>0&&(l+=1),{applied:s,revision:l}}if(t==="host.checkAuggie"||t==="host.findBinary")return{available:!1};if(t==="host.toolAvailability")return{tools:M(e?.tools)};if(t==="host.providerAuthStatus")return{providers:[]};if(t==="host.providerDiscovery")return{providers:[]};if(t==="system.status")return{running:!0,listenMode:"browser-mock",version:"0.0.0-browser",protocolVersion:"0.0.0-browser",host:{os:"browser",arch:"browser",locality:"local"}};if(t==="agent.list")return{agents:[],retiredCount:0};if(t==="agent.listInterrupted")return{agents:[]};if(t==="models.list")return{models:[]};if(t==="skill.list")return{skills:[]};if(t==="search.fileNames")return{files:[]};if(t==="comment.list")return{threads:[]};if(t==="task.list")return{tasks:[],stats:{total:0,completed:0,inProgress:0}};if(t==="note.list")return{notes:[]};if(t==="git.status")return{branch:"",ahead:0,behind:0,diverged:!1,files:[],hasUncommittedChanges:!1,hasUntrackedFiles:!1};if(t==="event.query")return e?.paginate===!0||typeof e?.nextToken=="string"?{items:[],nextToken:null}:[];if(t==="events.subscribe")return{subscriptionId:`browser-mock-sub-${++w}`};if(t==="events.unsubscribe")return{}}function O(t,e){if(t==="backend:request"){const r=e?.method;if(typeof r!="string"||r.length===0)return{ok:!1,error:{code:"INVALID_PARAMS",message:"method is required"}};const s=T(r,e?.params);return R(s)?{ok:!1,error:s[p]}:s!==void 0?{ok:!0,result:s}:{ok:!1,error:{code:"NOT_IMPLEMENTED",message:`Browser mock: backend method "${r}" not implemented`}}}if(t==="backend:subscribe")return{ok:!0,result:{subscriptionId:`browser-mock-sub-${++w}`}};if(t==="backend:unsubscribe")return{ok:!0,result:{}};if(t==="backend:get-status"){const r=A();if(r)return{status:r.getStatus(),daemonStartup:r.getStartupState(),transport:{mode:"external-ws",target:r.getTarget()}};const s=I();return s?{status:"connecting",transport:{mode:"external-ws",target:S(s)}}:{status:"connected",transport:"browser-mock"}}}function P(t,e){const r=O(t,e);return r!==void 0?r:t==="workspace:list"?{success:!0,data:d}:t==="workspace:get-recent-repositories"?{success:!0,data:[]}:t==="workspace:get-settings"||t==="workspace:getSettings"?{success:!0,data:{}}:t==="app:version"||t==="app:get-version"?{success:!0,data:"0.0.0-browser"}:t==="system:get-info"?{success:!0,data:{platform:"browser",arch:"wasm",hostname:"localhost"}}:t.endsWith(":get-models")?{success:!0,data:[]}:t==="providers:get-availability"?{success:!0,data:{}}:t==="providers:get-paths"?{success:!0,data:{}}:t==="feature-codes:get-active"?{features:[]}:t==="config:get"||t==="config:get-all"||t==="config:getAll"?{success:!0,data:{}}:t==="settings:get"||t==="settings:getAll"?{success:!0,data:{}}:t==="auto-update:get-state"?{success:!0,data:{channel:"stable",status:"idle"}}:t.startsWith("window:")?{success:!0}:t==="panel-layout:load"?{success:!0,data:null}:t==="first-visit-state:load"?{success:!0,data:null}:t==="rules:list"||t==="rules:load-workspace"?{success:!0,data:[]}:t.startsWith("specialists:")?{success:!0,data:[]}:t.startsWith("user-rules:")?{success:!0,data:t.includes("get-all")?[]:""}:t.startsWith("git:")?{success:!0,data:null}:t.startsWith("persistence:")||t.startsWith("storage:")?{success:!0,data:null}:t.startsWith("notes:")?{success:!0,data:t.includes("list")?[]:null}:t.startsWith("agent:")?{success:!0,data:null}:t.startsWith("log:")?{success:!0,data:null}:t.startsWith("user-mcp:")||t.startsWith("mcp:")?{success:!0,data:t.includes("list")?[]:null}:t==="skills:list"?{success:!0,data:[]}:t.includes("-auth:")||t.includes("auth:")?{success:!0,data:{authenticated:!1}}:t.startsWith("dialog:")?{success:!0,data:{canceled:!0,filePaths:[]}}:(console.debug(`[BrowserMock] Unhandled IPC channel: ${t}`),{success:!1,error:`Browser mock: channel "${t}" not implemented`})}const n=[];function f(t,e){for(const r of[...n])r.channel===t&&r.callback(e)}let k=0;const x={invoke:async(t,e)=>(console.warn(`[BrowserMock] Serving MOCK response for IPC channel '${t}' — this is dev-only mock data, not a real bridge`),P(t,e)),send:(t,...e)=>{},on:(t,e)=>{const r=`browser-mock-${++k}`;return n.push({id:r,channel:t,callback:e}),r},off:(t,e)=>{},offById:(t,e)=>{const r=n.findIndex(s=>s.id===e);r!==-1&&n.splice(r,1)},removeAllListeners:t=>{for(let e=n.length-1;e>=0;e--)n[e].channel===t&&n.splice(e,1)},once:(t,e)=>{const r=`browser-mock-${++k}`,s=(...i)=>{e(...i);const a=n.findIndex(c=>c.id===r);a!==-1&&n.splice(a,1)};n.push({id:r,channel:t,callback:s})},getPathForFile:t=>"",platform:"darwin",arch:"arm64",versions:{node:"20.0.0",chrome:"120.0.0",electron:"0.0.0-browser"}};function D(){return typeof window>"u"||window.electronAPI?!1:(console.warn("[BrowserMock] Installing mock electronAPI for browser-mode rendering — all IPC responses are DEV MOCKS"),window.electronAPI=x,_(),!0)}let b=!1;function _(){if(b)return;b=!0;let t=null,e=null,r=null;y(s=>{t?.(),e?.(),r?.(),t=s.onStatusChange(i=>{f("backend:status",{status:i,daemonStartup:s.getStartupState(),transport:{mode:"external-ws",target:s.getTarget()}})}),r=s.onStartupChange(i=>{f("backend:status",{status:s.getStatus(),daemonStartup:i,transport:{mode:"external-ws",target:s.getTarget()}})}),e=s.onReconnected(()=>{f("backend:status",{status:"connected",reconnected:!0,transport:{mode:"external-ws",target:s.getTarget()}})})})}D();export{D as installBrowserMock,U as isBrowserMockEnabled};
1
+ import{o as y,e as I,s as S,g as A}from"./C11wqToa.js";function U(){return!0}const o=new Date().toISOString(),d=[{id:"mock-ws-1",title:"Example Project",branch:"feature/demo",baseRef:"main",changesets:[],timeline:[],conversationInfo:[],status:"Active",createdAt:o,updatedAt:o,lastActivity:o,repositoryPath:"/Users/demo/projects/example",repositoryOwner:"demo",repositoryName:"example-project",tags:[],agentSummary:{agentIds:["agent-1"]}},{id:"mock-ws-2",title:"Design System",branch:"feature/tokens",baseRef:"main",changesets:[],timeline:[],conversationInfo:[],status:"Active",createdAt:o,updatedAt:o,lastActivity:o,repositoryPath:"/Users/demo/projects/design-system",repositoryOwner:"demo",repositoryName:"design-system",tags:[]}],g=[{path:"workspaceInitializer.state",label:"Workspace initializer state",description:"Browser-preview workspace initializer state.",category:"workspace",type:"object",defaultValue:{},value:{hydrated:!0}},{path:"hardwareConsole.state",label:"Hardware console state",description:"Browser-preview hardware console state.",category:"hardwareConsole",type:"object",defaultValue:{},value:{}},{path:"rtk.enabled",label:"RTK enabled",description:"Use RTK compressed command output.",category:"tools",type:"boolean",defaultValue:!1,value:!1,origin:"default"}];let l=0;function C(t){const e=g.find(a=>a.path===t);if(!e)return m("INVALID_PARAMS",-32602,`Browser mock: setting "${String(t)}" not found`);const{value:r,origin:s,...i}=e;return{path:e.path,value:r,definition:i,...s?{origin:s}:{},revision:l}}function M(t){return Array.isArray(t)?Object.fromEntries(t.filter(e=>typeof e=="string").map(e=>[e,{available:!1}])):{}}let w=0,B=0;const W=crypto.randomUUID(),p=Symbol("browser-mock-error");function m(t,e,r){return{[p]:{code:t,message:r,data:{code:t},rpcCode:e}}}function R(t){return typeof t=="object"&&t!==null&&p in t}function T(t,e){if(t==="workspace.list")return{workspaces:d};if(t==="workspace.get"){const r=d.find(s=>s.id===e?.workspaceId);return r?{workspace:r}:m("INVALID_PARAMS",-32602,`Browser mock: workspace "${String(e?.workspaceId)}" not found`)}if(t==="task.listAgentLinks")return{links:[],linksByNoteId:{}};if(t==="workspace.getTokenUsage")return{tokenUsage:{byAgentId:{},totals:{inputTokens:0,outputTokens:0,cacheReadTokens:0,cacheCreationTokens:0},byModel:{},byAgentModel:[],lastScanAt:null}};if(t==="workspace.getContext")return{items:[]};if(t==="script.list")return{scripts:[]};if(t==="terminal.list")return{terminals:[],daemonBootId:W};if(t==="terminal.create")return{terminalId:`browser-mock-terminal-${++B}`};if(t==="terminal.write"||t==="terminal.resize"||t==="terminal.kill")return{ok:!0};if(t==="terminal.getBuffer")return{terminalId:String(e?.terminalId??""),data:""};if(t==="terminal.readOutput")return"";if(t==="agent.listActive")return{streams:[]};if(t==="prMonitor.list")return{monitors:[]};if(t==="gitRoot.list")return{gitRoots:[]};if(t==="file.tree")return[];if(t==="file-tracking.getChanges")return{changes:[],truncated:!1,totalCount:0};if(t==="file-tracking.loadCommits")return{commits:[],boundarySha:null,nextToken:null};if(t==="repo.list")return{repos:[]};if(t==="settings.list")return{settings:g,revision:l};if(t==="settings.get")return C(e?.path);if(t==="settings.update"){const r=Array.isArray(e?.changes)?e.changes:[],s=[];for(const i of r){if(typeof i!="object"||i===null)continue;const{path:a,value:c}=i,u=g.find(v=>v.path===a);u&&(u.value=c,s.push({path:u.path,value:c,...u.origin?{origin:u.origin}:{}}))}return s.length>0&&(l+=1),{applied:s,revision:l}}if(t==="host.checkAuggie"||t==="host.findBinary")return{available:!1};if(t==="host.toolAvailability")return{tools:M(e?.tools)};if(t==="host.providerAuthStatus")return{providers:[]};if(t==="host.providerDiscovery")return{providers:[]};if(t==="system.status")return{running:!0,listenMode:"browser-mock",version:"0.0.0-browser",protocolVersion:"0.0.0-browser",host:{os:"browser",arch:"browser",locality:"local"}};if(t==="agent.list")return{agents:[],retiredCount:0};if(t==="agent.listInterrupted")return{agents:[]};if(t==="models.list")return{models:[]};if(t==="skill.list")return{skills:[]};if(t==="search.fileNames")return{files:[]};if(t==="comment.list")return{threads:[]};if(t==="task.list")return{tasks:[],stats:{total:0,completed:0,inProgress:0}};if(t==="note.list")return{notes:[]};if(t==="git.status")return{branch:"",ahead:0,behind:0,diverged:!1,files:[],hasUncommittedChanges:!1,hasUntrackedFiles:!1};if(t==="event.query")return e?.paginate===!0||typeof e?.nextToken=="string"?{items:[],nextToken:null}:[];if(t==="events.subscribe")return{subscriptionId:`browser-mock-sub-${++w}`};if(t==="events.unsubscribe")return{}}function O(t,e){if(t==="backend:request"){const r=e?.method;if(typeof r!="string"||r.length===0)return{ok:!1,error:{code:"INVALID_PARAMS",message:"method is required"}};const s=T(r,e?.params);return R(s)?{ok:!1,error:s[p]}:s!==void 0?{ok:!0,result:s}:{ok:!1,error:{code:"NOT_IMPLEMENTED",message:`Browser mock: backend method "${r}" not implemented`}}}if(t==="backend:subscribe")return{ok:!0,result:{subscriptionId:`browser-mock-sub-${++w}`}};if(t==="backend:unsubscribe")return{ok:!0,result:{}};if(t==="backend:get-status"){const r=A();if(r)return{status:r.getStatus(),daemonStartup:r.getStartupState(),transport:{mode:"external-ws",target:r.getTarget()}};const s=I();return s?{status:"connecting",transport:{mode:"external-ws",target:S(s)}}:{status:"connected",transport:"browser-mock"}}}function P(t,e){const r=O(t,e);return r!==void 0?r:t==="workspace:list"?{success:!0,data:d}:t==="workspace:get-recent-repositories"?{success:!0,data:[]}:t==="workspace:get-settings"||t==="workspace:getSettings"?{success:!0,data:{}}:t==="app:version"||t==="app:get-version"?{success:!0,data:"0.0.0-browser"}:t==="system:get-info"?{success:!0,data:{platform:"browser",arch:"wasm",hostname:"localhost"}}:t.endsWith(":get-models")?{success:!0,data:[]}:t==="providers:get-availability"?{success:!0,data:{}}:t==="providers:get-paths"?{success:!0,data:{}}:t==="feature-codes:get-active"?{features:[]}:t==="config:get"||t==="config:get-all"||t==="config:getAll"?{success:!0,data:{}}:t==="settings:get"||t==="settings:getAll"?{success:!0,data:{}}:t==="auto-update:get-state"?{success:!0,data:{channel:"stable",status:"idle"}}:t.startsWith("window:")?{success:!0}:t==="panel-layout:load"?{success:!0,data:null}:t==="first-visit-state:load"?{success:!0,data:null}:t==="rules:list"||t==="rules:load-workspace"?{success:!0,data:[]}:t.startsWith("specialists:")?{success:!0,data:[]}:t.startsWith("user-rules:")?{success:!0,data:t.includes("get-all")?[]:""}:t.startsWith("git:")?{success:!0,data:null}:t.startsWith("persistence:")||t.startsWith("storage:")?{success:!0,data:null}:t.startsWith("notes:")?{success:!0,data:t.includes("list")?[]:null}:t.startsWith("agent:")?{success:!0,data:null}:t.startsWith("log:")?{success:!0,data:null}:t.startsWith("user-mcp:")||t.startsWith("mcp:")?{success:!0,data:t.includes("list")?[]:null}:t==="skills:list"?{success:!0,data:[]}:t.includes("-auth:")||t.includes("auth:")?{success:!0,data:{authenticated:!1}}:t.startsWith("dialog:")?{success:!0,data:{canceled:!0,filePaths:[]}}:(console.debug(`[BrowserMock] Unhandled IPC channel: ${t}`),{success:!1,error:`Browser mock: channel "${t}" not implemented`})}const n=[];function f(t,e){for(const r of[...n])r.channel===t&&r.callback(e)}let k=0;const x={invoke:async(t,e)=>(console.warn(`[BrowserMock] Serving MOCK response for IPC channel '${t}' — this is dev-only mock data, not a real bridge`),P(t,e)),send:(t,...e)=>{},on:(t,e)=>{const r=`browser-mock-${++k}`;return n.push({id:r,channel:t,callback:e}),r},off:(t,e)=>{},offById:(t,e)=>{const r=n.findIndex(s=>s.id===e);r!==-1&&n.splice(r,1)},removeAllListeners:t=>{for(let e=n.length-1;e>=0;e--)n[e].channel===t&&n.splice(e,1)},once:(t,e)=>{const r=`browser-mock-${++k}`,s=(...i)=>{e(...i);const a=n.findIndex(c=>c.id===r);a!==-1&&n.splice(a,1)};n.push({id:r,channel:t,callback:s})},getPathForFile:t=>"",platform:"darwin",arch:"arm64",versions:{node:"20.0.0",chrome:"120.0.0",electron:"0.0.0-browser"}};function D(){return typeof window>"u"||window.electronAPI?!1:(console.warn("[BrowserMock] Installing mock electronAPI for browser-mode rendering — all IPC responses are DEV MOCKS"),window.electronAPI=x,_(),!0)}let b=!1;function _(){if(b)return;b=!0;let t=null,e=null,r=null;y(s=>{t?.(),e?.(),r?.(),t=s.onStatusChange(i=>{f("backend:status",{status:i,daemonStartup:s.getStartupState(),transport:{mode:"external-ws",target:s.getTarget()}})}),r=s.onStartupChange(i=>{f("backend:status",{status:s.getStatus(),daemonStartup:i,transport:{mode:"external-ws",target:s.getTarget()}})}),e=s.onReconnected(()=>{f("backend:status",{status:"connected",reconnected:!0,transport:{mode:"external-ws",target:s.getTarget()}})})})}D();export{D as installBrowserMock,U as isBrowserMockEnabled};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/B6tJ7e7m.js","/app/immutable/chunks/BV49_RX-.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/DaA44xVk.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/BlOn95cv.js","/app/immutable/chunks/UyBYtOpv.js","/app/immutable/chunks/C9Ba8Wsx.js","/app/immutable/chunks/8rrBGDgQ.js","/app/immutable/chunks/QiI6ZCof.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/D7b_n5fi.js","/app/immutable/chunks/DU64vtBR.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/LnbsKux_.js","/app/immutable/chunks/BUJT8nbP.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/DRwfCI3n.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DHQetc-m.js","/app/immutable/chunks/tA5hPyrR.js","/app/immutable/chunks/DNPjjQTW.js","/app/immutable/chunks/Brz_LsyP.js","/app/immutable/chunks/CiN55CeC.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/vV7Eo_ua.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BMoOyvL9.js","/app/immutable/chunks/B6RmASgD.js","/app/immutable/chunks/Civ86Ers.js","/app/immutable/chunks/C1-APN-K.js","/app/immutable/chunks/DMiVWfnj.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/CMmlAySy.js","/app/immutable/chunks/D6Tu0KcL.js"])))=>i.map(i=>d[i]);
2
- import{_ as i}from"./BV49_RX-.js";import{c as m}from"./ChTqQfQN.js";function d(){return typeof window<"u"&&window.location.pathname.startsWith("/hud")}let _=0;function f(){_+=1}function E(){return _}const h=m("Navigation"),w="settings-previous-path";function r(t){return/^\/settings(?:[/?#]|$)/.test(t)}async function l(t,a={}){if(d()||typeof window<"u"&&/^\/dock(?:\/|$)/.test(window.location.pathname)){h.debug("Ignoring navigation in auxiliary window",{route:t});return}const c=a.assistantContent||t.startsWith("intent://")||/^https?:\/\//.test(t);if(c||f(),c){const{showAssistantContent:n}=await i(async()=>{const{showAssistantContent:e}=await import("./B6tJ7e7m.js");return{showAssistantContent:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35]),import.meta.url);if(await n(t,{preserveFocus:!0,background:a.assistantContent===!0,agentId:a.assistantAgentId})){if(a.assistantContent)return;const{openPanel:e}=await i(async()=>{const{openPanel:o}=await import("./DaA44xVk.js").then(s=>s.H3);return{openPanel:o}},__vite__mapDeps([3,4,2,5,6,7,8,9,1,10]),import.meta.url),{store:g}=await i(async()=>{const{store:o}=await import("./DMiVWfnj.js");return{store:o}},__vite__mapDeps([36,3,4,2,5,6,7,8,9,1,10,37,38]),import.meta.url);g.dispatch(e("chief"));const{goto:p}=await i(async()=>{const{goto:o}=await import("./D6Tu0KcL.js").then(s=>s.n);return{goto:o}},__vite__mapDeps([39,2]),import.meta.url);window.location.pathname!=="/"&&await p("/");return}}if(r(t)&&typeof window<"u"&&typeof sessionStorage<"u"&&!r(window.location.pathname)){const n=new URL(window.location.href);sessionStorage.setItem(w,n.pathname+n.search+n.hash)}const{goto:u}=await i(async()=>{const{goto:n}=await import("./D6Tu0KcL.js").then(e=>e.n);return{goto:n}},__vite__mapDeps([39,2]),import.meta.url);return a.state?u(t,{state:a.state}):u(t)}const P=Object.freeze(Object.defineProperty({__proto__:null,SETTINGS_PREV_PATH_KEY:w,isHudWindowRenderer:d,isSettingsRoute:r,navigateToRoute:l},Symbol.toStringTag,{value:"Module"}));export{w as S,r as a,f as b,E as c,P as d,d as i,l as n};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BIZcuYRW.js","/app/immutable/chunks/BAqR9jtB.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/BSwWMzab.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/BlOn95cv.js","/app/immutable/chunks/UyBYtOpv.js","/app/immutable/chunks/DiCMHWTR.js","/app/immutable/chunks/UuiGcpAE.js","/app/immutable/chunks/C8_w7W1W.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/C9gP-gRX.js","/app/immutable/chunks/BPk16bSc.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/B2RRuLl5.js","/app/immutable/chunks/C11wqToa.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/CzRl1R1n.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/BtAYzBSd.js","/app/immutable/chunks/Cbh1BCiS.js","/app/immutable/chunks/Bc-8qHYh.js","/app/immutable/chunks/Bl_iEh1f.js","/app/immutable/chunks/7ZJvg7ev.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/DKXEy5Lq.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/DY6JypjK.js","/app/immutable/chunks/Ccf4dYFA.js","/app/immutable/chunks/C0VJEx2v.js","/app/immutable/chunks/DkrnUdRW.js","/app/immutable/chunks/4CMzT_BI.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/DijSalri.js","/app/immutable/chunks/BW6fyv0T.js"])))=>i.map(i=>d[i]);
2
+ import{_ as i}from"./BAqR9jtB.js";import{c as m}from"./ChTqQfQN.js";function d(){return typeof window<"u"&&window.location.pathname.startsWith("/hud")}let _=0;function f(){_+=1}function E(){return _}const h=m("Navigation"),w="settings-previous-path";function r(t){return/^\/settings(?:[/?#]|$)/.test(t)}async function l(t,a={}){if(d()||typeof window<"u"&&/^\/dock(?:\/|$)/.test(window.location.pathname)){h.debug("Ignoring navigation in auxiliary window",{route:t});return}const c=a.assistantContent||t.startsWith("intent://")||/^https?:\/\//.test(t);if(c||f(),c){const{showAssistantContent:n}=await i(async()=>{const{showAssistantContent:e}=await import("./BIZcuYRW.js");return{showAssistantContent:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35]),import.meta.url);if(await n(t,{preserveFocus:!0,background:a.assistantContent===!0,agentId:a.assistantAgentId})){if(a.assistantContent)return;const{openPanel:e}=await i(async()=>{const{openPanel:o}=await import("./BSwWMzab.js").then(s=>s.H6);return{openPanel:o}},__vite__mapDeps([3,4,2,5,6,7,8,9,1,10]),import.meta.url),{store:g}=await i(async()=>{const{store:o}=await import("./4CMzT_BI.js");return{store:o}},__vite__mapDeps([36,3,4,2,5,6,7,8,9,1,10,37,38]),import.meta.url);g.dispatch(e("chief"));const{goto:p}=await i(async()=>{const{goto:o}=await import("./BW6fyv0T.js").then(s=>s.n);return{goto:o}},__vite__mapDeps([39,2]),import.meta.url);window.location.pathname!=="/"&&await p("/");return}}if(r(t)&&typeof window<"u"&&typeof sessionStorage<"u"&&!r(window.location.pathname)){const n=new URL(window.location.href);sessionStorage.setItem(w,n.pathname+n.search+n.hash)}const{goto:u}=await i(async()=>{const{goto:n}=await import("./BW6fyv0T.js").then(e=>e.n);return{goto:n}},__vite__mapDeps([39,2]),import.meta.url);return a.state?u(t,{state:a.state}):u(t)}const P=Object.freeze(Object.defineProperty({__proto__:null,SETTINGS_PREV_PATH_KEY:w,isHudWindowRenderer:d,isSettingsRoute:r,navigateToRoute:l},Symbol.toStringTag,{value:"Module"}));export{w as S,r as a,f as b,E as c,P as d,d as i,l as n};
@@ -1 +1 @@
1
- import{g as l,r as m,d as n}from"./BnAX9yTi.js";import{p}from"./M4M675TN.js";import{b as t,ay as o}from"./RGxIilBQ.js";import{M as u,a as f}from"./CwAr2bfc.js";var c=f().RailroadEbnf.parser.LangiumParser,s=t(e=>{const r=e.alternatives.map(E);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformChoice"),E=t(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),i=t(e=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return s(e.element);case"EbnfOptional":return{type:"optional",element:s(e.element)};case"EbnfRepetition":return{type:"repetition",element:s(e.element),min:0,max:1/0};default:throw new Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),b=t((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},i(r.except)]};default:throw new Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),y=t(e=>e.postfixes.reduce((r,a)=>b(r,a),i(e.base)),"transformTerm"),d=t(e=>({name:e.name,definition:s(e.definition)}),"transformRule"),v=t(e=>{p(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(d(r)))},"populateDb"),g={parse:t(e=>{n.clear(),o.debug("[EBNF Parser] Starting Langium parse");const r=c.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const a=r.value;o.debug("[EBNF Parser] Parsed rules:",a.rules.length),v(a),o.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:n}},N={parser:g,db:n,renderer:m,styles:l};export{N as diagram};
1
+ import{g as l,r as m,d as n}from"./CBTot2K1.js";import{p}from"./CE8vXfAM.js";import{b as t,ay as o}from"./q4Mp6azq.js";import{M as u,a as f}from"./BxiJOwnz.js";var c=f().RailroadEbnf.parser.LangiumParser,s=t(e=>{const r=e.alternatives.map(E);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformChoice"),E=t(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),i=t(e=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return s(e.element);case"EbnfOptional":return{type:"optional",element:s(e.element)};case"EbnfRepetition":return{type:"repetition",element:s(e.element),min:0,max:1/0};default:throw new Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),b=t((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},i(r.except)]};default:throw new Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),y=t(e=>e.postfixes.reduce((r,a)=>b(r,a),i(e.base)),"transformTerm"),d=t(e=>({name:e.name,definition:s(e.definition)}),"transformRule"),v=t(e=>{p(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(d(r)))},"populateDb"),g={parse:t(e=>{n.clear(),o.debug("[EBNF Parser] Starting Langium parse");const r=c.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const a=r.value;o.debug("[EBNF Parser] Parsed rules:",a.rules.length),v(a),o.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:n}},N={parser:g,db:n,renderer:m,styles:l};export{N as diagram};
@@ -1 +1 @@
1
- import{t as mt,bq as m,a_ as D,by as _t,bs as gt,b as vt,bo as x,bu as be,bt as Te}from"./BV49_RX-.js";import{bs as ht,cd as yt,ca as wt,bk as xt,a7 as N,ay as _,W as r,bn as kt,aA as g,aD as t,bS as z,a5 as me,bH as Le,bA as _e,b_ as M,aB as E,c9 as o,bf as It,bl as oe,bO as ae,bV as Ct}from"./DYhIMPy1.js";import{k as $t,h as Pt,s as Be,c as At}from"./DU64vtBR.js";import{s as Me}from"./C9Ba8Wsx.js";import{c as S}from"./LnbsKux_.js";import{cF as Et,bl as Ot,aK as Ft,F as ne,aX as Tt,aL as Lt,bm as Bt,a7 as Ve,av as Dt}from"./vV7Eo_ua.js";import{W as Nt,T as zt,G as St,C as Rt,X as Ht,J as Wt,V as Mt}from"./xXCdIyF3.js";import{f as ge}from"./D7b_n5fi.js";import{i as Vt}from"./DaUwNiAB.js";import{n as Gt,R as jt,r as qt,q as Kt,p as Xt,o as Ge}from"./BVNJnx5b.js";import{n as ve}from"./DNPjjQTW.js";import{c as Jt}from"./ChTqQfQN.js";import"./CiN55CeC.js";import{Hm as je,mn as Ut,Eb as Yt}from"./DaA44xVk.js";import{v as Qt}from"./8rrBGDgQ.js";import{i as J}from"./B1fMeJph.js";import{bn as Zt,b4 as er,b2 as tr}from"./BUhKOoKe.js";import{ck as rr}from"./BMoOyvL9.js";import{t as or}from"./H2jLkRRS.js";const ar={cursor:Rt,ghostty:St,terminal:zt,warp:Nt},nr={vscode:Mt,jetbrains:Wt,xcode:Ht};function sr(O){return ar[O.id]??nr[O.handlerType]??null}function qe(O){return O==="terminal"?Et:O==="finder"?Ot:Ft}const ir="shrink-0 text-muted-foreground hover:text-foreground focus-visible:text-foreground [&_svg]:size-4",De="finder",lr={id:De,name:"Finder",shortLabel:"Finder",appName:"Finder",category:"finder",handlerType:"finder",installed:!0,priority:0};function cr(O,s=[]){const se=new Set(s),U=O.filter(({installed:Y,id:ye})=>Y&&!se.has(ye));return U.some(({id:Y})=>Y===De)||se.has(De)?U:[...U,lr]}var dr=E('<img alt="" class="size-4"/>'),ur=E('<kbd class="type-caption ml-4 text-muted-foreground" aria-hidden="true"> </kbd>'),pr=E('<span class="min-w-0 flex-1 truncate"> </span> <!>',1),fr=E("<span> </span>"),he=E("<!> <!>",1),br=E("<span><!></span>"),mr=E('<img class="w-4 h-4"/>'),_r=E('<!> <span class="text-muted-foreground"> </span>',1),gr=E('<div class="inline-flex items-stretch rounded-md border border-border" data-open-combo-control=""><!> <!></div>'),vr=E('<div class="type-caption px-2 py-1.5 text-subtle"> </div>'),hr=E('<div class="w-60 max-w-full"><!> <!> <!></div>'),yr=E("<div><!></div>");function wr(O,s){if(new.target)return mt({component:wr,...O});ht(s,!0);const se=()=>be(Je,"$installedEditors$",ie),U=()=>be(Ue,"$hiddenEditorIds$",ie),Y=()=>be(Ye,"$isWorkspaceHostLocal$",ie),ye=()=>be(Xe,"$openAction",ie),[ie,Ke]=gt(),le=(e,d=It)=>{var u=N(),p=_(u);S(p,()=>jt,(te,j)=>{j(te,{get value(){return t(v).id},children:(F,B)=>{var I=N(),T=_(I);Pt(T,17,d,C=>C.id,(C,c)=>{var q=N(),h=_(q);{const $=a=>{var i=N(),y=_(i);{var H=l=>{var A=dr();M(()=>Be(A,"src",`data:image/png;base64,${t(c).iconBase64??""}`)),r(l,A)},b=l=>{const A=o(()=>t(c).icon);var W=N(),L=_(W);S(L,()=>t(A),(K,re)=>{re(K,{size:16})}),r(l,W)},P=l=>{{let A=o(()=>t(c).faIcon??qe(t(c).category));ne(l,{get icon(){return t(A)},class:"size-4 text-muted-foreground"})}};D(y,l=>{t(c).iconBase64?l(H):t(c).icon?l(b,1):l(P,-1)})}r(a,i)};let n=o(()=>!k());S(h,()=>Gt,(a,i)=>{i(a,{get value(){return t(c).id},closeOnSelect:!0,get disabled(){return t(n)},onSelect:()=>tt(t(c).id),get textValue(){return t(c).label},leading:$,children:(y,H)=>{var b=pr(),P=_(b),l=oe(P,!0),A=z(P,2);{var W=L=>{var K=ur(),re=oe(K,!0);M(()=>ae(re,t(c).shortcut)),r(L,K)};D(A,L=>{t(c).shortcut&&L(W)})}M(()=>ae(l,t(c).label)),r(y,b)},$$slots:{leading:!0,default:!0}})})}r(C,q)}),r(F,I)},$$slots:{default:!0}})}),r(e,u)},Ne=Jt("OpenComboButton");let k=m(s,"filePath",7),ce=m(s,"workspaceId",7,""),de=m(s,"isDirectory",7,!0),we=m(s,"workspaceFolderPath",7),xe=m(s,"class",7,""),ue=m(s,"headerText",7),ke=m(s,"usePortal",7,!0),Ie=m(s,"side",7,"bottom"),V=m(s,"variant",7,"default"),Q=m(s,"branchName",7),Ce=m(s,"compact",7,!1),$e=m(s,"embedded",7,!1),Z=m(s,"inline",7,!1),G=m(s,"iconOnly",7,!1),R=m(s,"children",7,void 0);const ze=o(()=>V()==="sidebar"?"bg-sidebar hover:bg-sidebar/80":"bg-background hover:bg-muted"),Pe=yt(ce());wt(()=>{Pe.set(ce())});const Xe=Zt(),Je=er(Pe),Ue=tr(),Ye=rr(Pe);let ee=Ct(!1);xt(()=>{je.dispatch(Ut())});function Qe(e){return{id:e.id,label:e.name,shortLabel:e.shortLabel,icon:sr(e),shortcut:e.shortcut,handlerType:e.handlerType,appName:e.appName,category:e.category,iconBase64:e.iconBase64}}const Ze=Qt("externalEditors");let f=o(()=>{const e=se(),d=cr(e,U()).map(Qe),u={id:"other",label:x.ui_openCombo_other_label(),shortLabel:x.ui_openCombo_other_label(),icon:null,faIcon:Bt,handlerType:"generic"},p=[{id:"copy",label:x.ui_openCombo_copyPath_label(),shortLabel:x.ui_openCombo_copy_shortLabel(),icon:null,faIcon:Tt},...Q()?[{id:"copy-branch",label:x.ui_openCombo_copyBranch_label(),shortLabel:x.ui_openCombo_copyBranch_shortLabel(),icon:null,faIcon:Lt}]:[]];return!Ze||!Y()?p:[...d,u,...p]});const pe=o(()=>t(f).some(e=>e.id!=="copy"&&e.id!=="copy-branch")),fe=o(()=>t(f).filter(e=>e.id!=="copy"&&e.id!=="copy-branch")),Se=o(()=>t(f).filter(e=>e.id==="copy"||e.id==="copy-branch")),v=o(()=>t(pe)?t(f).find(e=>e.id===ye())||t(f)[0]:t(f).find(e=>e.id==="copy")||t(f)[0]),Ae=o(()=>t(pe)?x.ui_openCombo_openIn_tooltip({name:t(v).label}):t(v).label);function Ee(){if(de())return k();const e=we()||k().substring(0,k().lastIndexOf("/"));return e?{folder:e,file:k()}:k()}async function Oe(e){if(!k())return;const d=de()?k():k().substring(0,k().lastIndexOf("/"));try{if(e==="copy"){await navigator.clipboard.writeText(or(k())),ve.success(x.ui_openCombo_pathCopied_label());return}if(e==="copy-branch"){Q()&&(await navigator.clipboard.writeText(Q()),ve.success(x.ui_openCombo_branchCopied_label()));return}if(e==="other"){const p=await J("external-editors:open-with-other",{path:d});p?.success?Le(ee,!1):p?.error&&p.error!=="No application selected"&&ve.error(p.error);return}const u=t(f).find(p=>p.id===e);if(!u){Ne.warn(`Unknown action: ${e}`);return}switch(u.handlerType){case"finder":await J("shell:showItemInFolder",{path:d});break;case"vscode":await J("vscode:open",Ee());break;case"jetbrains":await J("jetbrains:open",Ee());break;case"xcode":await J("xcode:open",Ee());break;case"generic":default:{await J("external-editors:open",{editorId:u.id,path:d});break}}}catch(u){Ne.error(`Failed to execute action ${e}:`,u),ve.error(u instanceof Error?u.message:x.ui_openCombo_openFailed_error({name:e}))}}function Fe(e){e.stopPropagation(),Oe(t(v).id)}function et(e){e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),e.stopPropagation(),Oe(t(v).id))}function Re(e){e.stopPropagation()}function tt(e){je.dispatch(Yt(e)),Oe(e),Le(ee,!1)}var rt={get filePath(){return k()},set filePath(e){k(e),g()},get workspaceId(){return ce()},set workspaceId(e=""){ce(e),g()},get isDirectory(){return de()},set isDirectory(e=!0){de(e),g()},get workspaceFolderPath(){return we()},set workspaceFolderPath(e){we(e),g()},get class(){return xe()},set class(e=""){xe(e),g()},get headerText(){return ue()},set headerText(e){ue(e),g()},get usePortal(){return ke()},set usePortal(e=!0){ke(e),g()},get side(){return Ie()},set side(e="bottom"){Ie(e),g()},get variant(){return V()},set variant(e="default"){V(e),g()},get branchName(){return Q()},set branchName(e){Q(e),g()},get compact(){return Ce()},set compact(e=!1){Ce(e),g()},get embedded(){return $e()},set embedded(e=!1){$e(e),g()},get inline(){return Z()},set inline(e=!1){Z(e),g()},get iconOnly(){return G()},set iconOnly(e=!1){G(e),g()},get children(){return R()},set children(e=void 0){R(e),g()},$set:_t,$on:(e,d)=>vt(s,e,d)},He=N(),ot=_(He);{var at=e=>{var d=he(),u=_(d);{var p=j=>{var F=he(),B=_(F);S(B,()=>Xt,(T,C)=>{C(T,{children:(c,q)=>{var h=he(),$=_(h);S($,()=>qt,(a,i)=>{i(a,{get icon(){return Ve},children:(y,H)=>{var b=fr(),P=oe(b,!0);M(l=>ae(P,l),[()=>x.ui_openCombo_openInApp_tooltip()]),r(y,b)},$$slots:{default:!0}})});var n=z($,2);S(n,()=>Kt,(a,i)=>{i(a,{class:"w-60",children:(y,H)=>{le(y,()=>t(fe))},$$slots:{default:!0}})}),r(c,h)},$$slots:{default:!0}})});var I=z(B,2);S(I,()=>Ge,(T,C)=>{C(T,{})}),r(j,F)};D(u,j=>{t(fe).length&&j(p)})}var te=z(u,2);le(te,()=>t(Se)),r(e,d)},nt=e=>{var d=yr(),u=me(d);{const p=(F,B)=>{let I=()=>(B?.()).props;var T=N(),C=_(T);{var c=n=>{var a=br();At(a,()=>({role:"button",tabindex:"0",onclick:t(f).length>1?void 0:Fe,onkeydown:t(f).length>1?void 0:et,...t(f).length>1?I():{},class:"cursor-pointer break-words rounded-sm text-inherit underline decoration-muted-foreground/20 underline-offset-2 hover:decoration-current focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",title:t(Ae)}));var i=me(a);Me(i,R),_e(a),r(n,a)},q=n=>{{let a=o(()=>t(f).length>1?void 0:Fe),i=o(()=>G()&&V()!=="sidebar"?"plain":"ghost"),y=o(()=>G()?V()==="sidebar"?"icon-compact":"icon-sm":void 0),H=o(()=>G()&&V()==="sidebar"&&t(ee)),b=o(()=>!G()),P=o(()=>G()?V()==="sidebar"?ir:"cursor-pointer text-muted-foreground hover:text-foreground focus-visible:text-foreground":"cursor-pointer");ge(n,Te({type:"button",get onclick(){return t(a)}},()=>t(f).length>1?I():{},{get variant(){return t(i)},get size(){return t(y)},get active(){return t(H)},get wrapContent(){return t(b)},get class(){return t(P)},get title(){return t(Ae)},children:(l,A)=>{var W=N(),L=_(W);Me(L,R),r(l,W)},$$slots:{default:!0}}))}},h=n=>{{let a=o(()=>x.ui_openCombo_openInApp_tooltip());ge(n,Te(I,{variant:"ghost-light",size:"icon-xs",get tooltip(){return t(a)},tooltipSide:"bottom",children:(i,y)=>{ne(i,{get icon(){return Ve},size:"xs"})},$$slots:{default:!0}}))}},$=n=>{var a=gr(),i=me(a);{let b=o(()=>t(f).length>1?"rounded-r-none":""),P=o(()=>t(ze)),l=o(()=>t(pe)?t(Ae):void 0);ge(i,{type:"button",variant:"ghost",size:"sm",get class(){return`gap-1.5 px-2 ${t(b)??""} ${t(P)??""}`},onpointerdown:Re,onkeydown:Re,onclick:Fe,get title(){return t(l)},children:(A,W)=>{var L=_r(),K=_(L);{var re=w=>{var X=mr();M(()=>{Be(X,"src",`data:image/png;base64,${t(v).iconBase64??""}`),Be(X,"alt",t(v).label)}),r(w,X)},it=w=>{const X=o(()=>t(v).icon);var We=N(),pt=_(We);S(pt,()=>t(X),(ft,bt)=>{bt(ft,{size:14})}),r(w,We)},lt=w=>{ne(w,{get icon(){return t(v).faIcon},class:"w-3.5 h-3.5 opacity-60"})},ct=w=>{{let X=o(()=>qe(t(v).category));ne(w,{get icon(){return t(X)},class:"w-3.5 h-3.5 opacity-60"})}};D(K,w=>{t(v).iconBase64?w(re):t(v).icon?w(it,1):t(v).faIcon?w(lt,2):w(ct,-1)})}var dt=z(K,2),ut=oe(dt,!0);M(w=>ae(ut,w),[()=>t(pe)?x.ui_openCombo_open_label():t(v).label]),r(A,L)},$$slots:{default:!0}})}var y=z(i,2);{var H=b=>{{let P=o(()=>x.ui_openCombo_openInApp_tooltip());ge(b,Te(I,{type:"button",variant:"ghost",size:"icon-sm",get"aria-label"(){return t(P)},get class(){return`rounded-l-none border-l border-border ${t(ze)??""}`},children:(l,A)=>{ne(l,{get icon(){return Dt},class:"size-3! text-muted-foreground"})},$$slots:{default:!0}}))}};D(y,b=>{t(f).length>1&&b(H)})}_e(a),r(n,a)};D(C,n=>{Z()&&R()?n(c):R()?n(q,1):Ce()?n(h,2):n($,-1)})}r(F,T)},te=F=>{var B=hr(),I=me(B);{var T=h=>{var $=vr(),n=oe($,!0);M(()=>ae(n,ue())),r(h,$)};D(I,h=>{ue()&&h(T)})}var C=z(I,2);{var c=h=>{var $=he(),n=_($);le(n,()=>t(fe));var a=z(n,2);S(a,()=>Ge,(i,y)=>{y(i,{})}),r(h,$)};D(C,h=>{t(fe).length&&h(c)})}var q=z(C,2);le(q,()=>t(Se)),_e(B),r(F,B)};let j=o(()=>Z()&&R()?"contents!":"");Vt(u,{align:"end",get portal(){return ke()},get side(){return Ie()},get class(){return t(j)},get open(){return t(ee)},set open(F){Le(ee,F,!0)},trigger:p,content:te,$$slots:{trigger:!0,content:!0}})}_e(d),M(()=>$t(d,1,`${Z()&&R()?"contents":"inline-flex items-center"} ${xe()??""}`)),r(e,d)};D(ot,e=>{$e()?e(at):e(nt,-1)})}r(O,He);var st=kt(rt);return Ke(),st}export{wr as O,sr as a,qe as r,ir as s};
1
+ import{t as _t,bq as _,a_ as D,by as mt,bs as gt,b as vt,bo as x,bu as be,bt as Te}from"./BAqR9jtB.js";import{bs as ht,cd as yt,ca as wt,bk as xt,a7 as N,ay as m,W as r,bn as kt,aA as g,aD as t,bS as z,a5 as _e,bH as Le,bA as me,b_ as M,aB as E,c9 as o,bf as It,bl as oe,bO as ae,bV as Ct}from"./DYhIMPy1.js";import{k as $t,h as Pt,s as Be,c as At}from"./BPk16bSc.js";import{s as Me}from"./DiCMHWTR.js";import{c as S}from"./B2RRuLl5.js";import{cF as Et,bl as Ot,aK as Ft,F as ne,aX as Tt,aL as Lt,bm as Bt,a7 as Ve,av as Dt}from"./DKXEy5Lq.js";import{W as Nt,T as zt,G as St,C as Rt,X as Ht,J as Wt,V as Mt}from"./DD-f8Y3V.js";import{f as ge}from"./C9gP-gRX.js";import{i as Vt}from"./B6Eksue8.js";import{n as Gt,R as jt,r as qt,q as Kt,p as Xt,o as Ge}from"./DO2cS8JO.js";import{n as ve}from"./Bc-8qHYh.js";import{c as Jt}from"./ChTqQfQN.js";import"./7ZJvg7ev.js";import{Hp as je,mp as Ut,Ee as Yt}from"./BSwWMzab.js";import{v as Qt}from"./UuiGcpAE.js";import{i as J}from"./BHqHNrOT.js";import{bn as Zt,b4 as er,b2 as tr}from"./C80u9j_3.js";import{ck as rr}from"./DY6JypjK.js";import{t as or}from"./H2jLkRRS.js";const ar={cursor:Rt,ghostty:St,terminal:zt,warp:Nt},nr={vscode:Mt,jetbrains:Wt,xcode:Ht};function sr(O){return ar[O.id]??nr[O.handlerType]??null}function qe(O){return O==="terminal"?Et:O==="finder"?Ot:Ft}const ir="shrink-0 text-muted-foreground hover:text-foreground focus-visible:text-foreground [&_svg]:size-4",De="finder",lr={id:De,name:"Finder",shortLabel:"Finder",appName:"Finder",category:"finder",handlerType:"finder",installed:!0,priority:0};function cr(O,s=[]){const se=new Set(s),U=O.filter(({installed:Y,id:ye})=>Y&&!se.has(ye));return U.some(({id:Y})=>Y===De)||se.has(De)?U:[...U,lr]}var dr=E('<img alt="" class="size-4"/>'),ur=E('<kbd class="type-caption ml-4 text-muted-foreground" aria-hidden="true"> </kbd>'),pr=E('<span class="min-w-0 flex-1 truncate"> </span> <!>',1),fr=E("<span> </span>"),he=E("<!> <!>",1),br=E("<span><!></span>"),_r=E('<img class="w-4 h-4"/>'),mr=E('<!> <span class="text-muted-foreground"> </span>',1),gr=E('<div class="inline-flex items-stretch rounded-md border border-border" data-open-combo-control=""><!> <!></div>'),vr=E('<div class="type-caption px-2 py-1.5 text-subtle"> </div>'),hr=E('<div class="w-60 max-w-full"><!> <!> <!></div>'),yr=E("<div><!></div>");function wr(O,s){if(new.target)return _t({component:wr,...O});ht(s,!0);const se=()=>be(Je,"$installedEditors$",ie),U=()=>be(Ue,"$hiddenEditorIds$",ie),Y=()=>be(Ye,"$isWorkspaceHostLocal$",ie),ye=()=>be(Xe,"$openAction",ie),[ie,Ke]=gt(),le=(e,d=It)=>{var u=N(),p=m(u);S(p,()=>jt,(te,j)=>{j(te,{get value(){return t(v).id},children:(F,B)=>{var I=N(),T=m(I);Pt(T,17,d,C=>C.id,(C,c)=>{var q=N(),h=m(q);{const $=a=>{var i=N(),y=m(i);{var H=l=>{var A=dr();M(()=>Be(A,"src",`data:image/png;base64,${t(c).iconBase64??""}`)),r(l,A)},b=l=>{const A=o(()=>t(c).icon);var W=N(),L=m(W);S(L,()=>t(A),(K,re)=>{re(K,{size:16})}),r(l,W)},P=l=>{{let A=o(()=>t(c).faIcon??qe(t(c).category));ne(l,{get icon(){return t(A)},class:"size-4 text-muted-foreground"})}};D(y,l=>{t(c).iconBase64?l(H):t(c).icon?l(b,1):l(P,-1)})}r(a,i)};let n=o(()=>!k());S(h,()=>Gt,(a,i)=>{i(a,{get value(){return t(c).id},closeOnSelect:!0,get disabled(){return t(n)},onSelect:()=>tt(t(c).id),get textValue(){return t(c).label},leading:$,children:(y,H)=>{var b=pr(),P=m(b),l=oe(P,!0),A=z(P,2);{var W=L=>{var K=ur(),re=oe(K,!0);M(()=>ae(re,t(c).shortcut)),r(L,K)};D(A,L=>{t(c).shortcut&&L(W)})}M(()=>ae(l,t(c).label)),r(y,b)},$$slots:{leading:!0,default:!0}})})}r(C,q)}),r(F,I)},$$slots:{default:!0}})}),r(e,u)},Ne=Jt("OpenComboButton");let k=_(s,"filePath",7),ce=_(s,"workspaceId",7,""),de=_(s,"isDirectory",7,!0),we=_(s,"workspaceFolderPath",7),xe=_(s,"class",7,""),ue=_(s,"headerText",7),ke=_(s,"usePortal",7,!0),Ie=_(s,"side",7,"bottom"),V=_(s,"variant",7,"default"),Q=_(s,"branchName",7),Ce=_(s,"compact",7,!1),$e=_(s,"embedded",7,!1),Z=_(s,"inline",7,!1),G=_(s,"iconOnly",7,!1),R=_(s,"children",7,void 0);const ze=o(()=>V()==="sidebar"?"bg-sidebar hover:bg-sidebar/80":"bg-background hover:bg-muted"),Pe=yt(ce());wt(()=>{Pe.set(ce())});const Xe=Zt(),Je=er(Pe),Ue=tr(),Ye=rr(Pe);let ee=Ct(!1);xt(()=>{je.dispatch(Ut())});function Qe(e){return{id:e.id,label:e.name,shortLabel:e.shortLabel,icon:sr(e),shortcut:e.shortcut,handlerType:e.handlerType,appName:e.appName,category:e.category,iconBase64:e.iconBase64}}const Ze=Qt("externalEditors");let f=o(()=>{const e=se(),d=cr(e,U()).map(Qe),u={id:"other",label:x.ui_openCombo_other_label(),shortLabel:x.ui_openCombo_other_label(),icon:null,faIcon:Bt,handlerType:"generic"},p=[{id:"copy",label:x.ui_openCombo_copyPath_label(),shortLabel:x.ui_openCombo_copy_shortLabel(),icon:null,faIcon:Tt},...Q()?[{id:"copy-branch",label:x.ui_openCombo_copyBranch_label(),shortLabel:x.ui_openCombo_copyBranch_shortLabel(),icon:null,faIcon:Lt}]:[]];return!Ze||!Y()?p:[...d,u,...p]});const pe=o(()=>t(f).some(e=>e.id!=="copy"&&e.id!=="copy-branch")),fe=o(()=>t(f).filter(e=>e.id!=="copy"&&e.id!=="copy-branch")),Se=o(()=>t(f).filter(e=>e.id==="copy"||e.id==="copy-branch")),v=o(()=>t(pe)?t(f).find(e=>e.id===ye())||t(f)[0]:t(f).find(e=>e.id==="copy")||t(f)[0]),Ae=o(()=>t(pe)?x.ui_openCombo_openIn_tooltip({name:t(v).label}):t(v).label);function Ee(){if(de())return k();const e=we()||k().substring(0,k().lastIndexOf("/"));return e?{folder:e,file:k()}:k()}async function Oe(e){if(!k())return;const d=de()?k():k().substring(0,k().lastIndexOf("/"));try{if(e==="copy"){await navigator.clipboard.writeText(or(k())),ve.success(x.ui_openCombo_pathCopied_label());return}if(e==="copy-branch"){Q()&&(await navigator.clipboard.writeText(Q()),ve.success(x.ui_openCombo_branchCopied_label()));return}if(e==="other"){const p=await J("external-editors:open-with-other",{path:d});p?.success?Le(ee,!1):p?.error&&p.error!=="No application selected"&&ve.error(p.error);return}const u=t(f).find(p=>p.id===e);if(!u){Ne.warn(`Unknown action: ${e}`);return}switch(u.handlerType){case"finder":await J("shell:showItemInFolder",{path:d});break;case"vscode":await J("vscode:open",Ee());break;case"jetbrains":await J("jetbrains:open",Ee());break;case"xcode":await J("xcode:open",Ee());break;case"generic":default:{await J("external-editors:open",{editorId:u.id,path:d});break}}}catch(u){Ne.error(`Failed to execute action ${e}:`,u),ve.error(u instanceof Error?u.message:x.ui_openCombo_openFailed_error({name:e}))}}function Fe(e){e.stopPropagation(),Oe(t(v).id)}function et(e){e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),e.stopPropagation(),Oe(t(v).id))}function Re(e){e.stopPropagation()}function tt(e){je.dispatch(Yt(e)),Oe(e),Le(ee,!1)}var rt={get filePath(){return k()},set filePath(e){k(e),g()},get workspaceId(){return ce()},set workspaceId(e=""){ce(e),g()},get isDirectory(){return de()},set isDirectory(e=!0){de(e),g()},get workspaceFolderPath(){return we()},set workspaceFolderPath(e){we(e),g()},get class(){return xe()},set class(e=""){xe(e),g()},get headerText(){return ue()},set headerText(e){ue(e),g()},get usePortal(){return ke()},set usePortal(e=!0){ke(e),g()},get side(){return Ie()},set side(e="bottom"){Ie(e),g()},get variant(){return V()},set variant(e="default"){V(e),g()},get branchName(){return Q()},set branchName(e){Q(e),g()},get compact(){return Ce()},set compact(e=!1){Ce(e),g()},get embedded(){return $e()},set embedded(e=!1){$e(e),g()},get inline(){return Z()},set inline(e=!1){Z(e),g()},get iconOnly(){return G()},set iconOnly(e=!1){G(e),g()},get children(){return R()},set children(e=void 0){R(e),g()},$set:mt,$on:(e,d)=>vt(s,e,d)},He=N(),ot=m(He);{var at=e=>{var d=he(),u=m(d);{var p=j=>{var F=he(),B=m(F);S(B,()=>Xt,(T,C)=>{C(T,{children:(c,q)=>{var h=he(),$=m(h);S($,()=>qt,(a,i)=>{i(a,{get icon(){return Ve},children:(y,H)=>{var b=fr(),P=oe(b,!0);M(l=>ae(P,l),[()=>x.ui_openCombo_openInApp_tooltip()]),r(y,b)},$$slots:{default:!0}})});var n=z($,2);S(n,()=>Kt,(a,i)=>{i(a,{class:"w-60",children:(y,H)=>{le(y,()=>t(fe))},$$slots:{default:!0}})}),r(c,h)},$$slots:{default:!0}})});var I=z(B,2);S(I,()=>Ge,(T,C)=>{C(T,{})}),r(j,F)};D(u,j=>{t(fe).length&&j(p)})}var te=z(u,2);le(te,()=>t(Se)),r(e,d)},nt=e=>{var d=yr(),u=_e(d);{const p=(F,B)=>{let I=()=>(B?.()).props;var T=N(),C=m(T);{var c=n=>{var a=br();At(a,()=>({role:"button",tabindex:"0",onclick:t(f).length>1?void 0:Fe,onkeydown:t(f).length>1?void 0:et,...t(f).length>1?I():{},class:"cursor-pointer break-words rounded-sm text-inherit underline decoration-muted-foreground/20 underline-offset-2 hover:decoration-current focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",title:t(Ae)}));var i=_e(a);Me(i,R),me(a),r(n,a)},q=n=>{{let a=o(()=>t(f).length>1?void 0:Fe),i=o(()=>G()&&V()!=="sidebar"?"plain":"ghost"),y=o(()=>G()?V()==="sidebar"?"icon-compact":"icon-sm":void 0),H=o(()=>G()&&V()==="sidebar"&&t(ee)),b=o(()=>!G()),P=o(()=>G()?V()==="sidebar"?ir:"cursor-pointer text-muted-foreground hover:text-foreground focus-visible:text-foreground":"cursor-pointer");ge(n,Te({type:"button",get onclick(){return t(a)}},()=>t(f).length>1?I():{},{get variant(){return t(i)},get size(){return t(y)},get active(){return t(H)},get wrapContent(){return t(b)},get class(){return t(P)},get title(){return t(Ae)},children:(l,A)=>{var W=N(),L=m(W);Me(L,R),r(l,W)},$$slots:{default:!0}}))}},h=n=>{{let a=o(()=>x.ui_openCombo_openInApp_tooltip());ge(n,Te(I,{variant:"ghost-light",size:"icon-xs",get tooltip(){return t(a)},tooltipSide:"bottom",children:(i,y)=>{ne(i,{get icon(){return Ve},size:"xs"})},$$slots:{default:!0}}))}},$=n=>{var a=gr(),i=_e(a);{let b=o(()=>t(f).length>1?"rounded-r-none":""),P=o(()=>t(ze)),l=o(()=>t(pe)?t(Ae):void 0);ge(i,{type:"button",variant:"ghost",size:"sm",get class(){return`gap-1.5 px-2 ${t(b)??""} ${t(P)??""}`},onpointerdown:Re,onkeydown:Re,onclick:Fe,get title(){return t(l)},children:(A,W)=>{var L=mr(),K=m(L);{var re=w=>{var X=_r();M(()=>{Be(X,"src",`data:image/png;base64,${t(v).iconBase64??""}`),Be(X,"alt",t(v).label)}),r(w,X)},it=w=>{const X=o(()=>t(v).icon);var We=N(),pt=m(We);S(pt,()=>t(X),(ft,bt)=>{bt(ft,{size:14})}),r(w,We)},lt=w=>{ne(w,{get icon(){return t(v).faIcon},class:"w-3.5 h-3.5 opacity-60"})},ct=w=>{{let X=o(()=>qe(t(v).category));ne(w,{get icon(){return t(X)},class:"w-3.5 h-3.5 opacity-60"})}};D(K,w=>{t(v).iconBase64?w(re):t(v).icon?w(it,1):t(v).faIcon?w(lt,2):w(ct,-1)})}var dt=z(K,2),ut=oe(dt,!0);M(w=>ae(ut,w),[()=>t(pe)?x.ui_openCombo_open_label():t(v).label]),r(A,L)},$$slots:{default:!0}})}var y=z(i,2);{var H=b=>{{let P=o(()=>x.ui_openCombo_openInApp_tooltip());ge(b,Te(I,{type:"button",variant:"ghost",size:"icon-sm",get"aria-label"(){return t(P)},get class(){return`rounded-l-none border-l border-border ${t(ze)??""}`},children:(l,A)=>{ne(l,{get icon(){return Dt},class:"size-3! text-muted-foreground"})},$$slots:{default:!0}}))}};D(y,b=>{t(f).length>1&&b(H)})}me(a),r(n,a)};D(C,n=>{Z()&&R()?n(c):R()?n(q,1):Ce()?n(h,2):n($,-1)})}r(F,T)},te=F=>{var B=hr(),I=_e(B);{var T=h=>{var $=vr(),n=oe($,!0);M(()=>ae(n,ue())),r(h,$)};D(I,h=>{ue()&&h(T)})}var C=z(I,2);{var c=h=>{var $=he(),n=m($);le(n,()=>t(fe));var a=z(n,2);S(a,()=>Ge,(i,y)=>{y(i,{})}),r(h,$)};D(C,h=>{t(fe).length&&h(c)})}var q=z(C,2);le(q,()=>t(Se)),me(B),r(F,B)};let j=o(()=>Z()&&R()?"contents!":"");Vt(u,{align:"end",get portal(){return ke()},get side(){return Ie()},get class(){return t(j)},get open(){return t(ee)},set open(F){Le(ee,F,!0)},trigger:p,content:te,$$slots:{trigger:!0,content:!0}})}me(d),M(()=>$t(d,1,`${Z()&&R()?"contents":"inline-flex items-center"} ${xe()??""}`)),r(e,d)};D(ot,e=>{$e()?e(at):e(nt,-1)})}r(O,He);var st=kt(rt);return Ke(),st}export{wr as O,sr as a,qe as r,ir as s};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CWKTWYM7.js","/app/immutable/chunks/DaA44xVk.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/BlOn95cv.js","/app/immutable/chunks/UyBYtOpv.js","/app/immutable/chunks/C9Ba8Wsx.js","/app/immutable/chunks/BV49_RX-.js","/app/immutable/chunks/8rrBGDgQ.js","/app/immutable/chunks/Civ86Ers.js","/app/immutable/chunks/DHQetc-m.js"])))=>i.map(i=>d[i]);
2
- import{t as Kt,bq as Y,a_ as D,by as Qt,bu as T,bs as Gt,b as Nt,bo as i,_ as Jt}from"./BV49_RX-.js";import{bs as Yt,ca as A,bH as U,c5 as ft,aD as Z,bj as Zt,a5 as F,bS as p,bA as C,b_ as y,W as g,bn as te,cd as tt,bV as _t,c9 as ee,aA as et,bl as q,bO as k,ay as vt,aB as w}from"./DYhIMPy1.js";import{k as xt,l as re}from"./DU64vtBR.js";import{b as se}from"./BaIAhI85.js";import{b as ae}from"./4xlJdO9z.js";import{Hm as u,Bd as ne,B3 as ie,B2 as oe,Hg as le,AQ as ce,i9 as ue,iA as de}from"./DaA44xVk.js";import{a as pe,T as me,D as fe,L as _e,o as ve}from"./DCYjhyno.js";import{F as rt,c_ as xe,c7 as he,cW as ge}from"./vV7Eo_ua.js";import{f as ht}from"./D7b_n5fi.js";import{n as Q}from"./DNPjjQTW.js";import"./C9Ba8Wsx.js";import"./ChTqQfQN.js";import"./CiN55CeC.js";import{r as be}from"./xQjZTcxq.js";import{selectScriptById as st,selectScriptRuntime as ye,selectScriptOutput as gt,selectScriptRetainedOutput as ke,selectCanDeleteScript as bt}from"./BlZonKZY.js";import{g as we}from"./B6RmASgD.js";import{bQ as Se,dG as $e,dh as yt}from"./BMoOyvL9.js";import"./CcnOA9dj.js";import"./B2aHvKzW.js";import"./B_mg6-Vc.js";import{c as Ae}from"./DB5R3D7Y.js";import{B as kt}from"./BUhKOoKe.js";var wt=w("<!> ",1),Fe=w('<div class="bg-danger-background/20 border-y border-danger/20 px-3 py-1.5 flex items-center justify-between"><div class="flex items-center gap-2 text-sm text-danger font-medium"><div class="w-4 h-4 rounded-full bg-danger-background flex items-center justify-center"><!></div> <span> </span></div> <!></div>'),Ce=w('<pre class="retained-text px-3 pb-3 text-xs svelte-115p4sl"> </pre>'),Oe=w('<p class="px-3 pb-3 text-xs text-muted-foreground" role="status"> </p>'),Le=w('<details class="retained-output border-b border-border svelte-115p4sl"><summary class="cursor-pointer px-3 py-2 text-xs text-muted-foreground"> </summary> <p class="px-3 pb-2 text-xs text-muted-foreground"> </p> <!></details>'),Re=w('<div class="px-3 py-1 text-xs text-muted-foreground"> </div>'),Be=w('<code class="text-muted-foreground font-mono text-xs"> </code>'),Ie=w('<div class="flex-1 flex items-center justify-center px-4 py-8"><div class="flex items-center gap-3 text-sm"><span class="text-subtle font-mono">$</span> <!> <!></div></div>'),De=w('<div><!> <!> <!> <!> <div><div class="xterm-output svelte-115p4sl"></div></div></div>');function Te(_,m){if(new.target)return Kt({component:Te,..._});Yt(m,!0);const H=()=>T(Bt,"$outputAuthority",O),o=()=>T(Ft,"$runtime$",O),v=()=>T(Ct,"$output$",O),E=()=>T(Rt,"$codeFontFamilyCSS",O),f=()=>T(Ot,"$retainedOutput$",O),St=()=>T(Lt,"$hidesAgentLifecycleActions$",O),at=()=>T(At,"$script$",O),[O,$t]=Gt();let S=Y(m,"scriptId",7),x=Y(m,"workspaceId",7),G=Y(m,"class",7,"");const L=tt(""),M=tt(""),nt=tt("");let N=_t(!1);A(()=>L.set(x())),A(()=>M.set(S()));let R,n=null,P=null,V=null,j=null,B=null,z=null;const At=st(L,M),Ft=ye(L,M),Ct=gt(L,M),Ot=ke(L,M,nt),Lt=Se(L),Rt=we(),Bt=$e(L),it=crypto.randomUUID();A(()=>{const t=x();return S(),()=>{t&&u.dispatch(ne(t,it))}}),A(()=>{const t=x(),e=S(),s=H(),r=o();if(!s||!t||!e)return;r.status,r.startedAt;const l=crypto.randomUUID();return nt.set(l),U(N,ft(()=>v().chunks.length===0),!0),u.dispatch(ie(t,e,l)),()=>u.dispatch(oe(t,e,l))});let X=_t(0);const It=ee(()=>o().status==="exited"&&o().exitCode!=null&&o().exitCode!==0&&o().exitCode<128);function Dt(){if(!R||n)return;j=new me(R);const t=j.getCurrentTheme();n=new fe({allowProposedApi:!0,fontFamily:E(),fontSize:13,lineHeight:1.2,letterSpacing:0,cursorBlink:!1,cursorStyle:"underline",cursorWidth:1,scrollback:1e4,allowTransparency:!0,convertEol:!0,disableStdin:!0,drawBoldTextInBrightColors:!0,theme:t}),n.attachCustomKeyEventHandler(s=>{const r=s.metaKey||s.ctrlKey;return!(r&&s.key==="`"||r&&s.key==="j"||r&&s.key==="k")}),P=new ve,n.loadAddon(P);const e=new _e((s,r)=>{try{const l=new URL(r);l.hostname==="localhost"||l.hostname==="127.0.0.1"?be(r).then(b=>{Jt(async()=>{const{getPanelLayoutManager:c}=await import("./CWKTWYM7.js").then(h=>h.p);return{getPanelLayoutManager:c}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url).then(({getPanelLayoutManager:c})=>{c(x()).openBrowserPanel(b.url,void 0,void 0,b.requestedUrl)}).catch(()=>{window.open(b.url,"_blank")})}):window.open(r,"_blank")}catch{window.open(r,"_blank")}});n.loadAddon(e),n.open(R),j.applyTheme(n),z=requestAnimationFrame(()=>{z=null,P?.fit()}),V=new ResizeObserver(()=>{P?.fit()}),V.observe(R),Tt()}function Tt(){if(!n)return;const t=gt.select(u.state,x(),S());t.chunks.length>0&&n.write(t.chunks.map(e=>e.text).join("")),U(X,t.dropped+t.chunks.length)}function ot(){B!==null&&(cancelAnimationFrame(B),B=null),z!==null&&(cancelAnimationFrame(z),z=null),V?.disconnect(),V=null,j?.dispose(),j=null;const t=n;n=null,P=null,U(X,0),t&&pe(t)}A(()=>{const t=v(),e=ft(()=>Z(X)),s=t.dropped+t.chunks.length;if(!n||s<=e)return;const r=Math.max(e-t.dropped,0);n.write(t.chunks.slice(r).map(l=>l.text).join("")),U(X,s)}),A(()=>{const t=E();n&&n.options.fontFamily!==t&&(n.options.fontFamily=t)});function qt(){u.dispatch(le(x(),S()))}function Et(){if(!x()){Q.error(i.terminal_scriptOutput_noWorkspace_error());return}u.dispatch(ue(x(),S(),f()?.text,it))}A(()=>{o().status==="idle"&&v().chunks.length===0&&ot()}),A(()=>{!(o().status==="idle"&&v().chunks.length===0)&&R&&!n&&(B!==null&&cancelAnimationFrame(B),B=requestAnimationFrame(()=>{B=null,Dt()}))}),Zt(()=>{ot()});var Wt={get scriptId(){return S()},set scriptId(t){S(t),et()},get workspaceId(){return x()},set workspaceId(t){x(t),et()},get class(){return G()},set class(t=""){G(t),et()},$set:Qt,$on:(t,e)=>Nt(m,t,e)},K=De(),lt=F(K);{var Mt=t=>{var e=Fe(),s=F(e),r=F(s),l=F(r);rt(l,{get icon(){return xe},size:"xs"}),C(r);var b=p(r,2),c=q(b,!0);C(s);var h=p(s,2);{var $=a=>{ht(a,{variant:"outline",size:"sm",class:"h-7 text-xs bg-background border border-border text-danger",onclick:Et,children:(d,I)=>{var W=wt(),mt=vt(W);rt(mt,{get icon(){return ge},size:"sm",class:"mr-1.5"});var Vt=p(mt);y(Xt=>k(Vt,` ${Xt??""}`),[()=>i.terminal_scriptOutput_askAiToFix_label()]),g(d,W)},$$slots:{default:!0}})};D(h,a=>{St()||a($)})}C(e),y(a=>k(c,a),[()=>i.terminal_scriptOutput_buildFailed_label({exitCode:o().exitCode??0})]),g(t,e)};D(lt,t=>{Z(It)&&t(Mt)})}var ct=p(lt,2);{var Pt=t=>{var e=Le(),s=F(e),r=q(s,!0),l=p(s,2),b=q(l,!0),c=p(l,2);{var h=a=>{var d=Ce();let I;var W=q(d,!0);y(()=>{I=re(d,"",I,{"font-family":E()}),k(W,f().text)}),g(a,d)},$=a=>{var d=Oe(),I=q(d,!0);y(W=>k(I,W),[()=>f().status==="loading"?i.terminal_scriptOutput_retainedLoading_label():i.terminal_scriptOutput_retainedUnavailable_label()]),g(a,d)};D(c,a=>{f().status==="available"?a(h):a($,-1)})}C(e),y((a,d)=>{k(r,a),k(b,d)},[()=>i.terminal_scriptOutput_retained_label(),()=>i.terminal_scriptOutput_retained_description()]),ae("open","toggle",e,a=>U(N,a),()=>Z(N)),g(t,e)};D(ct,t=>{f()&&t(Pt)})}var ut=p(ct,2);{var jt=t=>{var e=Re(),s=q(e,!0);y(r=>k(s,r),[()=>i.terminal_scriptOutput_live_label()]),g(t,e)};D(ut,t=>{v().chunks.length>0&&f()&&t(jt)})}var dt=p(ut,2);{var zt=t=>{var e=Ie(),s=F(e),r=p(F(s),2);{var l=c=>{var h=Be(),$=q(h,!0);y(a=>k($,a),[()=>ce(at())]),g(c,h)};D(r,c=>{at()&&c(l)})}var b=p(r,2);ht(b,{variant:"ghost",size:"xs",onclick:qt,class:"text-muted-foreground hover:text-foreground",children:(c,h)=>{var $=wt(),a=vt($);rt(a,{get icon(){return he},class:"h-3 w-3 mr-1"});var d=p(a);y(I=>k(d,` ${I??""}`),[()=>i.terminal_scriptOutput_run_label()]),g(c,$)},$$slots:{default:!0}}),C(s),C(e),g(t,e)};D(dt,t=>{o().status==="idle"&&v().chunks.length===0&&t(zt)})}var J=p(dt,2);let pt;var Ut=F(J);se(Ut,t=>R=t,()=>R),C(J),C(K),y(()=>{xt(K,1,`script-output-viewer ${G()??""}`,"svelte-115p4sl"),pt=xt(J,1,"flex-1 relative overflow-hidden",null,pt,{hidden:o().status==="idle"&&v().chunks.length===0})}),g(_,K);var Ht=te(Wt);return $t(),Ht}async function ar(_,m,H){const o=st.select(u.state,_,m);if(!o||!H()||!bt.select(u.state,_,m))return;const v=kt(o.runtime?.status),E=yt.select(u.state,_);if(!E){Q.error(i.workspace_client_accessChanged_error());return}if(!await Ae({title:i.scripts_delete_title({name:o.name}),description:v?i.scripts_delete_running_description():i.scripts_delete_description(),confirmLabel:i.scripts_delete_label(),destructive:!0}))return;if(E!==yt.select(u.state,_)){Q.error(i.workspace_client_accessChanged_error());return}const f=st.select(u.state,_,m);if(!H()||!f||f.createdAt!==o.createdAt||f.name!==o.name||!v&&kt(f.runtime?.status)||!bt.select(u.state,_,m)){Q.error(i.scripts_delete_changed_error());return}u.dispatch(de(_,m,i.terminal_quakeOverlay_deleteScriptFailed_error()))}export{Te as S,ar as c};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/B6mHy78M.js","/app/immutable/chunks/BSwWMzab.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/BlOn95cv.js","/app/immutable/chunks/UyBYtOpv.js","/app/immutable/chunks/DiCMHWTR.js","/app/immutable/chunks/BAqR9jtB.js","/app/immutable/chunks/UuiGcpAE.js","/app/immutable/chunks/C0VJEx2v.js","/app/immutable/chunks/BtAYzBSd.js"])))=>i.map(i=>d[i]);
2
+ import{t as Kt,bq as Y,a_ as T,by as Gt,bu as D,bs as Nt,b as Qt,bo as i,_ as Jt}from"./BAqR9jtB.js";import{bs as Yt,ca as A,bH as U,c5 as ft,aD as Z,bj as Zt,a5 as C,bS as p,bA as F,b_ as y,W as g,bn as te,cd as tt,bV as _t,c9 as ee,aA as et,bl as q,bO as k,ay as vt,aB as w}from"./DYhIMPy1.js";import{k as xt,l as re}from"./BPk16bSc.js";import{b as se}from"./BaIAhI85.js";import{b as ae}from"./4xlJdO9z.js";import{Hp as u,Bg as ne,B6 as ie,B5 as oe,Hj as le,AT as ce,ib as ue,iC as de}from"./BSwWMzab.js";import{a as pe,T as me,D as fe,L as _e,o as ve}from"./DoCNcHnE.js";import{F as rt,c_ as xe,c7 as he,cW as ge}from"./DKXEy5Lq.js";import{f as ht}from"./C9gP-gRX.js";import{n as G}from"./Bc-8qHYh.js";import"./DiCMHWTR.js";import"./ChTqQfQN.js";import"./7ZJvg7ev.js";import{r as be}from"./DhAv1XMF.js";import{selectScriptById as st,selectScriptRuntime as ye,selectScriptOutput as gt,selectScriptRetainedOutput as ke,selectCanDeleteScript as bt}from"./CbpiaYyP.js";import{g as we}from"./Ccf4dYFA.js";import{bQ as Se,dG as $e,dh as yt}from"./DY6JypjK.js";import"./BRNfUSNR.js";import"./-URcs0EB.js";import"./DH9gMPGd.js";import{c as Ae}from"./B0qtRhuw.js";import{B as kt}from"./C80u9j_3.js";var wt=w("<!> ",1),Ce=w('<div class="bg-danger-background/20 border-y border-danger/20 px-3 py-1.5 flex items-center justify-between"><div class="flex items-center gap-2 text-sm text-danger font-medium"><div class="w-4 h-4 rounded-full bg-danger-background flex items-center justify-center"><!></div> <span> </span></div> <!></div>'),Fe=w('<pre class="retained-text px-3 pb-3 text-xs svelte-115p4sl"> </pre>'),Oe=w('<p class="px-3 pb-3 text-xs text-muted-foreground" role="status"> </p>'),Le=w('<details class="retained-output border-b border-border svelte-115p4sl"><summary class="cursor-pointer px-3 py-2 text-xs text-muted-foreground"> </summary> <p class="px-3 pb-2 text-xs text-muted-foreground"> </p> <!></details>'),Re=w('<div class="px-3 py-1 text-xs text-muted-foreground"> </div>'),Be=w('<code class="text-muted-foreground font-mono text-xs"> </code>'),Ie=w('<div class="flex-1 flex items-center justify-center px-4 py-8"><div class="flex items-center gap-3 text-sm"><span class="text-subtle font-mono">$</span> <!> <!></div></div>'),Te=w('<div><!> <!> <!> <!> <div><div class="xterm-output svelte-115p4sl"></div></div></div>');function De(_,m){if(new.target)return Kt({component:De,..._});Yt(m,!0);const H=()=>D(Bt,"$outputAuthority",O),o=()=>D(Ct,"$runtime$",O),v=()=>D(Ft,"$output$",O),E=()=>D(Rt,"$codeFontFamilyCSS",O),f=()=>D(Ot,"$retainedOutput$",O),St=()=>D(Lt,"$hidesAgentLifecycleActions$",O),at=()=>D(At,"$script$",O),[O,$t]=Nt();let S=Y(m,"scriptId",7),x=Y(m,"workspaceId",7),N=Y(m,"class",7,"");const L=tt(""),j=tt(""),nt=tt("");let Q=_t(!1);A(()=>L.set(x())),A(()=>j.set(S()));let R,n=null,M=null,V=null,P=null,B=null,z=null;const At=st(L,j),Ct=ye(L,j),Ft=gt(L,j),Ot=ke(L,j,nt),Lt=Se(L),Rt=we(),Bt=$e(L),it=crypto.randomUUID();A(()=>{const t=x();return S(),()=>{t&&u.dispatch(ne(t,it))}}),A(()=>{const t=x(),e=S(),s=H(),r=o();if(!s||!t||!e)return;r.status,r.startedAt;const l=crypto.randomUUID();return nt.set(l),U(Q,ft(()=>v().chunks.length===0),!0),u.dispatch(ie(t,e,l)),()=>u.dispatch(oe(t,e,l))});let X=_t(0);const It=ee(()=>o().status==="exited"&&o().exitCode!=null&&o().exitCode!==0&&o().exitCode<128);function Tt(){if(!R||n)return;P=new me(R);const t=P.getCurrentTheme();n=new fe({allowProposedApi:!0,fontFamily:E(),fontSize:13,lineHeight:1.2,letterSpacing:0,cursorBlink:!1,cursorStyle:"underline",cursorWidth:1,scrollback:1e4,allowTransparency:!0,convertEol:!0,disableStdin:!0,drawBoldTextInBrightColors:!0,theme:t}),n.attachCustomKeyEventHandler(s=>{const r=s.metaKey||s.ctrlKey;return!(r&&s.key==="`"||r&&s.key==="j"||r&&s.key==="k")}),M=new ve,n.loadAddon(M);const e=new _e((s,r)=>{try{const l=new URL(r);l.hostname==="localhost"||l.hostname==="127.0.0.1"?be(r).then(b=>{Jt(async()=>{const{getPanelLayoutManager:c}=await import("./B6mHy78M.js").then(h=>h.p);return{getPanelLayoutManager:c}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url).then(({getPanelLayoutManager:c})=>{c(x()).openBrowserPanel(b.url,void 0,void 0,b.requestedUrl)}).catch(()=>{window.open(b.url,"_blank")})}):window.open(r,"_blank")}catch{window.open(r,"_blank")}});n.loadAddon(e),n.open(R),P.applyTheme(n),z=requestAnimationFrame(()=>{z=null,M?.fit()}),V=new ResizeObserver(()=>{M?.fit()}),V.observe(R),Dt()}function Dt(){if(!n)return;const t=gt.select(u.state,x(),S());t.chunks.length>0&&n.write(t.chunks.map(e=>e.text).join("")),U(X,t.dropped+t.chunks.length)}function ot(){B!==null&&(cancelAnimationFrame(B),B=null),z!==null&&(cancelAnimationFrame(z),z=null),V?.disconnect(),V=null,P?.dispose(),P=null;const t=n;n=null,M=null,U(X,0),t&&pe(t)}A(()=>{const t=v(),e=ft(()=>Z(X)),s=t.dropped+t.chunks.length;if(!n||s<=e)return;const r=Math.max(e-t.dropped,0);n.write(t.chunks.slice(r).map(l=>l.text).join("")),U(X,s)}),A(()=>{const t=E();n&&n.options.fontFamily!==t&&(n.options.fontFamily=t)});function qt(){u.dispatch(le(x(),S()))}function Et(){if(!x()){G.error(i.terminal_scriptOutput_noWorkspace_error());return}u.dispatch(ue(x(),S(),f()?.text,it))}A(()=>{o().status==="idle"&&v().chunks.length===0&&ot()}),A(()=>{!(o().status==="idle"&&v().chunks.length===0)&&R&&!n&&(B!==null&&cancelAnimationFrame(B),B=requestAnimationFrame(()=>{B=null,Tt()}))}),Zt(()=>{ot()});var Wt={get scriptId(){return S()},set scriptId(t){S(t),et()},get workspaceId(){return x()},set workspaceId(t){x(t),et()},get class(){return N()},set class(t=""){N(t),et()},$set:Gt,$on:(t,e)=>Qt(m,t,e)},K=Te(),lt=C(K);{var jt=t=>{var e=Ce(),s=C(e),r=C(s),l=C(r);rt(l,{get icon(){return xe},size:"xs"}),F(r);var b=p(r,2),c=q(b,!0);F(s);var h=p(s,2);{var $=a=>{ht(a,{variant:"outline",size:"sm",class:"h-7 text-xs bg-background border border-border text-danger",onclick:Et,children:(d,I)=>{var W=wt(),mt=vt(W);rt(mt,{get icon(){return ge},size:"sm",class:"mr-1.5"});var Vt=p(mt);y(Xt=>k(Vt,` ${Xt??""}`),[()=>i.terminal_scriptOutput_askAiToFix_label()]),g(d,W)},$$slots:{default:!0}})};T(h,a=>{St()||a($)})}F(e),y(a=>k(c,a),[()=>i.terminal_scriptOutput_buildFailed_label({exitCode:o().exitCode??0})]),g(t,e)};T(lt,t=>{Z(It)&&t(jt)})}var ct=p(lt,2);{var Mt=t=>{var e=Le(),s=C(e),r=q(s,!0),l=p(s,2),b=q(l,!0),c=p(l,2);{var h=a=>{var d=Fe();let I;var W=q(d,!0);y(()=>{I=re(d,"",I,{"font-family":E()}),k(W,f().text)}),g(a,d)},$=a=>{var d=Oe(),I=q(d,!0);y(W=>k(I,W),[()=>f().status==="loading"?i.terminal_scriptOutput_retainedLoading_label():i.terminal_scriptOutput_retainedUnavailable_label()]),g(a,d)};T(c,a=>{f().status==="available"?a(h):a($,-1)})}F(e),y((a,d)=>{k(r,a),k(b,d)},[()=>i.terminal_scriptOutput_retained_label(),()=>i.terminal_scriptOutput_retained_description()]),ae("open","toggle",e,a=>U(Q,a),()=>Z(Q)),g(t,e)};T(ct,t=>{f()&&t(Mt)})}var ut=p(ct,2);{var Pt=t=>{var e=Re(),s=q(e,!0);y(r=>k(s,r),[()=>i.terminal_scriptOutput_live_label()]),g(t,e)};T(ut,t=>{v().chunks.length>0&&f()&&t(Pt)})}var dt=p(ut,2);{var zt=t=>{var e=Ie(),s=C(e),r=p(C(s),2);{var l=c=>{var h=Be(),$=q(h,!0);y(a=>k($,a),[()=>ce(at())]),g(c,h)};T(r,c=>{at()&&c(l)})}var b=p(r,2);ht(b,{variant:"ghost",size:"xs",onclick:qt,class:"text-muted-foreground hover:text-foreground",children:(c,h)=>{var $=wt(),a=vt($);rt(a,{get icon(){return he},class:"h-3 w-3 mr-1"});var d=p(a);y(I=>k(d,` ${I??""}`),[()=>i.terminal_scriptOutput_run_label()]),g(c,$)},$$slots:{default:!0}}),F(s),F(e),g(t,e)};T(dt,t=>{o().status==="idle"&&v().chunks.length===0&&t(zt)})}var J=p(dt,2);let pt;var Ut=C(J);se(Ut,t=>R=t,()=>R),F(J),F(K),y(()=>{xt(K,1,`script-output-viewer ${N()??""}`,"svelte-115p4sl"),pt=xt(J,1,"flex-1 relative overflow-hidden",null,pt,{hidden:o().status==="idle"&&v().chunks.length===0})}),g(_,K);var Ht=te(Wt);return $t(),Ht}async function ar(_,m,H){const o=st.select(u.state,_,m);if(!o||!H()||!bt.select(u.state,_,m))return;const v=kt(o.runtime?.status),E=yt.select(u.state,_);if(!E){G.error(i.workspace_client_accessChanged_error());return}if(!await Ae({title:i.scripts_delete_title({name:o.name}),description:v?i.scripts_delete_running_description():i.scripts_delete_description(),confirmLabel:i.scripts_delete_label(),destructive:!0}))return;if(E!==yt.select(u.state,_)){G.error(i.workspace_client_accessChanged_error());return}const f=st.select(u.state,_,m);if(!H()||!f||f.createdAt!==o.createdAt||f.name!==o.name||!v&&kt(f.runtime?.status)||!bt.select(u.state,_,m)){G.error(i.scripts_delete_changed_error());return}u.dispatch(de(_,m,i.terminal_quakeOverlay_deleteScriptFailed_error()))}export{De as S,ar as c};