@intent-hq/web 2.348.0 → 2.349.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (268) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{0Vx84DUP.js → -QpofkRx.js} +25 -25
  3. package/web/app/immutable/chunks/{Cn_Rbwyb.js → 0Ys9jF9i.js} +1 -1
  4. package/web/app/immutable/chunks/{Bqhh4FH7.js → 0vrZgCji.js} +1 -1
  5. package/web/app/immutable/chunks/{2F-Ze5uG.js → 2CGxw1E-.js} +1 -1
  6. package/web/app/immutable/chunks/{hW3N4eWd.js → 5SqYTp29.js} +1 -1
  7. package/web/app/immutable/chunks/{CIvmWNlW.js → 9YwuUfsE.js} +1 -1
  8. package/web/app/immutable/chunks/{DR_T7fiX.js → B0rIXGc4.js} +1 -1
  9. package/web/app/immutable/chunks/{BfyBZYmK.js → B1yX4XGq.js} +1 -1
  10. package/web/app/immutable/chunks/{CB8I0xcf.js → B21_6eW6.js} +1 -1
  11. package/web/app/immutable/chunks/{D6EREClH.js → B2eAyNSi.js} +1 -1
  12. package/web/app/immutable/chunks/{CBiHrObN.js → B3RsHzWp.js} +1 -1
  13. package/web/app/immutable/chunks/{Cy-Gmjfw.js → B3SGnWra.js} +1 -1
  14. package/web/app/immutable/chunks/{CFnuU2Q9.js → B4CR5dfb.js} +1 -1
  15. package/web/app/immutable/chunks/{Btz71F4v.js → B51DLOiX.js} +1 -1
  16. package/web/app/immutable/chunks/{Bbk1k0zD.js → B5G4SPkG.js} +1 -1
  17. package/web/app/immutable/chunks/{3eJAoKag.js → B7Df-Pbj.js} +2 -2
  18. package/web/app/immutable/chunks/{COcWmgqo.js → B7lF313M.js} +1 -1
  19. package/web/app/immutable/chunks/{BWBs_VhF.js → B8MtVUO1.js} +1 -1
  20. package/web/app/immutable/chunks/{DIaPAOHO.js → B9CbdVRS.js} +1 -1
  21. package/web/app/immutable/chunks/{Fz0URFlj.js → B9O5QYHa.js} +1 -1
  22. package/web/app/immutable/chunks/{Qz-8JMY9.js → B9lVck2z.js} +1 -1
  23. package/web/app/immutable/chunks/{B69VjfVW.js → BFU2DTxE.js} +1 -1
  24. package/web/app/immutable/chunks/{CGw07Xyz.js → BFllbeCZ.js} +1 -1
  25. package/web/app/immutable/chunks/{3Y6lb7OZ.js → BHeDLdQn.js} +1 -1
  26. package/web/app/immutable/chunks/{CMgf2JhK.js → BHqqRyT8.js} +1 -1
  27. package/web/app/immutable/chunks/{gd66hMGv.js → BIBA0Biz.js} +1 -1
  28. package/web/app/immutable/chunks/{C8eS8Wxk.js → BJbIj2f5.js} +3 -3
  29. package/web/app/immutable/chunks/{BB2E6zUl.js → BJlw6wnz.js} +1 -1
  30. package/web/app/immutable/chunks/{CV2DFyPr.js → BJm_eT-U.js} +1 -1
  31. package/web/app/immutable/chunks/{COEzShcb.js → BKawFF96.js} +2 -2
  32. package/web/app/immutable/chunks/BKdLSL00.js +1 -0
  33. package/web/app/immutable/chunks/{BCiuPd8v.js → BLAOZHWQ.js} +1 -1
  34. package/web/app/immutable/chunks/{BeIO7jOE.js → BLLsZVvW.js} +1 -1
  35. package/web/app/immutable/chunks/{CipMzp9h.js → BLOjz32P.js} +1 -1
  36. package/web/app/immutable/chunks/{DNIjwT-T.js → BMOxNEff.js} +1 -1
  37. package/web/app/immutable/chunks/{mSFHDc3j.js → BNS1LCAy.js} +1 -1
  38. package/web/app/immutable/chunks/{wm0Oy5pp.js → BNodOXul.js} +1 -1
  39. package/web/app/immutable/chunks/{C0OVkc7f.js → BPrwAqEs.js} +1 -1
  40. package/web/app/immutable/chunks/{BRxcN_af.js → BRPmfbNP.js} +1 -1
  41. package/web/app/immutable/chunks/{ShK1ywMo.js → BRadcq2w.js} +2 -2
  42. package/web/app/immutable/chunks/{B_82dd46.js → BRomtsr7.js} +1 -1
  43. package/web/app/immutable/chunks/{DsM8cZvP.js → BTHEWI_S.js} +1 -1
  44. package/web/app/immutable/chunks/{BnbzkcOJ.js → BTUjIyAV.js} +1 -1
  45. package/web/app/immutable/chunks/{BNYHFEBz.js → BWzmS9rr.js} +1 -1
  46. package/web/app/immutable/chunks/{DP4AQNt-.js → BYBv_fLl.js} +3 -3
  47. package/web/app/immutable/chunks/{B0wbZnxi.js → B_Tk6TVS.js} +1 -1
  48. package/web/app/immutable/chunks/{CEw_Ojs2.js → BaV_HcgG.js} +1 -1
  49. package/web/app/immutable/chunks/{C4rFO2Hf.js → Baz0g_kI.js} +1 -1
  50. package/web/app/immutable/chunks/{kVzVNgmU.js → Bb5T6-Tv.js} +2 -2
  51. package/web/app/immutable/chunks/{DAXBrrD-.js → BbgSAX3i.js} +1 -1
  52. package/web/app/immutable/chunks/{-dJluFvm.js → BcDnMnye.js} +1 -1
  53. package/web/app/immutable/chunks/{DDLB_hVd.js → BdyAQuf8.js} +1 -1
  54. package/web/app/immutable/chunks/{7Kg0aRC7.js → BdzBn7bA.js} +1 -1
  55. package/web/app/immutable/chunks/{CUFDAb6B.js → BeCIalNK.js} +1 -1
  56. package/web/app/immutable/chunks/{DNhivPW8.js → BeQfIbwM.js} +1 -1
  57. package/web/app/immutable/chunks/{CojufscG.js → BfHcmF2O.js} +1 -1
  58. package/web/app/immutable/chunks/{CWKqJsJy.js → BgUSjvxc.js} +1 -1
  59. package/web/app/immutable/chunks/{CsKSizCz.js → BjFyT_W2.js} +1 -1
  60. package/web/app/immutable/chunks/{C8vhldb0.js → Bjp6Z7YT.js} +1 -1
  61. package/web/app/immutable/chunks/{4juZDnmT.js → Bkf7F_Qx.js} +1 -1
  62. package/web/app/immutable/chunks/{Bo8Vb7mw.js → BmagX6n5.js} +1 -1
  63. package/web/app/immutable/chunks/BnJDHHUb.js +1 -0
  64. package/web/app/immutable/chunks/{CEixATbX.js → Bpb2sW6o.js} +1 -1
  65. package/web/app/immutable/chunks/{CY_11EtD.js → BpftDedA.js} +1 -1
  66. package/web/app/immutable/chunks/{DuncjXt7.js → BqobArwh.js} +1 -1
  67. package/web/app/immutable/chunks/{8-qXyFVf.js → Bsismerr.js} +1 -1
  68. package/web/app/immutable/chunks/{BFnV2iJZ.js → BtKOOSsW.js} +1 -1
  69. package/web/app/immutable/chunks/{IYJiuR5Y.js → Bu9v967D.js} +1 -1
  70. package/web/app/immutable/chunks/{CcJbyRBU.js → Bw5h0b4B.js} +1 -1
  71. package/web/app/immutable/chunks/{BHS_T8V0.js → Bw6C51Z8.js} +1 -1
  72. package/web/app/immutable/chunks/{Bi4olNhp.js → BwUnz25X.js} +1 -1
  73. package/web/app/immutable/chunks/{CHK9comt.js → BwYW1dkK.js} +1 -1
  74. package/web/app/immutable/chunks/{ADSB-roI.js → By_us5QF.js} +1 -1
  75. package/web/app/immutable/chunks/{C8aWNHHq.js → BzXXtRZY.js} +2 -2
  76. package/web/app/immutable/chunks/{BZMcByQ2.js → C-enyvpk.js} +1 -1
  77. package/web/app/immutable/chunks/{DvfHX1n9.js → C-vkWK8U.js} +1 -1
  78. package/web/app/immutable/chunks/{B5varbso.js → C-wtKDF4.js} +1 -1
  79. package/web/app/immutable/chunks/{Cy8AeYBK.js → C17Klvq4.js} +1 -1
  80. package/web/app/immutable/chunks/{CoHCPcUH.js → C1HHC_7R.js} +1 -1
  81. package/web/app/immutable/chunks/{DHO9Wxu6.js → C20jcbNk.js} +1 -1
  82. package/web/app/immutable/chunks/{D8a7_5Ny.js → C2XB0GY0.js} +1 -1
  83. package/web/app/immutable/chunks/{DsQW_Oo3.js → C5uQZx4q.js} +1 -1
  84. package/web/app/immutable/chunks/{CIjm5Ho8.js → C6liPF0f.js} +1 -1
  85. package/web/app/immutable/chunks/{DVeWWknf.js → C73NY2AB.js} +1 -1
  86. package/web/app/immutable/chunks/{hwOnI0Qg.js → C7Wb4_Fy.js} +1 -1
  87. package/web/app/immutable/chunks/{n7G96yg-.js → C8_8H2HU.js} +2 -2
  88. package/web/app/immutable/chunks/{B5o_1DGD.js → C9qO9uPq.js} +1 -1
  89. package/web/app/immutable/chunks/{CpXOs3du.js → CA0nf0gO.js} +1 -1
  90. package/web/app/immutable/chunks/{BfuGl5Yh.js → CAKCzVLn.js} +1 -1
  91. package/web/app/immutable/chunks/{Dl2IplSW.js → CCoYF4yh.js} +1 -1
  92. package/web/app/immutable/chunks/{VlCONpJu.js → CE90SUHM.js} +3 -3
  93. package/web/app/immutable/chunks/{SK6qKYG6.js → CESQT1SZ.js} +1 -1
  94. package/web/app/immutable/chunks/{DmpGcxj7.js → CFPsFOEM.js} +1 -1
  95. package/web/app/immutable/chunks/{fZqCaChB.js → CHJZj-fd.js} +1 -1
  96. package/web/app/immutable/chunks/{D10dSkvY.js → CIOLxD2z.js} +1 -1
  97. package/web/app/immutable/chunks/{DGD-U5Bo.js → CJyP11U5.js} +1 -1
  98. package/web/app/immutable/chunks/{DTMC7Bz7.js → CM7GBUHK.js} +1 -1
  99. package/web/app/immutable/chunks/{BJx6o7Ck.js → CMDErhcM.js} +1 -1
  100. package/web/app/immutable/chunks/{BgBv_oVS.js → CNttRhcj.js} +1 -1
  101. package/web/app/immutable/chunks/{DbqjhTxc.js → CQk97DU6.js} +1 -1
  102. package/web/app/immutable/chunks/{ClNwh2X4.js → CQnuk5Vr.js} +1 -1
  103. package/web/app/immutable/chunks/{CMXGjuKe.js → CSHUdNXY.js} +1 -1
  104. package/web/app/immutable/chunks/CT36W95j.js +1 -0
  105. package/web/app/immutable/chunks/{DDR5ATRf.js → CTA4usCn.js} +1 -1
  106. package/web/app/immutable/chunks/{D6_UiQP2.js → CTBZsDJn.js} +1 -1
  107. package/web/app/immutable/chunks/{AsDAWvyv.js → CU5gGNrG.js} +1 -1
  108. package/web/app/immutable/chunks/{DEit52eN.js → CUyvQglq.js} +1 -1
  109. package/web/app/immutable/chunks/{hSO5HDzm.js → CVc3afbh.js} +3 -3
  110. package/web/app/immutable/chunks/{D9ypzy3_.js → CXrz3Q9k.js} +2 -2
  111. package/web/app/immutable/chunks/{DWZFevW5.js → C_p41hnk.js} +1 -1
  112. package/web/app/immutable/chunks/{BMZTgpKM.js → Ca30sbat.js} +4 -4
  113. package/web/app/immutable/chunks/{CS9rwHkY.js → Cayy-ftZ.js} +1 -1
  114. package/web/app/immutable/chunks/{Cw6V9axU.js → CbAeWmeg.js} +1 -1
  115. package/web/app/immutable/chunks/{4pmevG3-.js → CcWSFJ-V.js} +1 -1
  116. package/web/app/immutable/chunks/{BzfZfCQf.js → Ce3Ams7F.js} +1 -1
  117. package/web/app/immutable/chunks/{RFiIZzYq.js → CgQUkF-P.js} +1 -1
  118. package/web/app/immutable/chunks/{CxHceMFQ.js → Ch4_kkqM.js} +1 -1
  119. package/web/app/immutable/chunks/{DbaWuKaJ.js → CiLRDPyT.js} +1 -1
  120. package/web/app/immutable/chunks/ClBJ4iZ6.js +1 -0
  121. package/web/app/immutable/chunks/{Cr-VSi-M.js → ClKki07I.js} +1 -1
  122. package/web/app/immutable/chunks/{DJq2OFOa.js → ClQp3PSY.js} +2 -2
  123. package/web/app/immutable/chunks/{lqRrFWoK.js → CmG1GbmA.js} +1 -1
  124. package/web/app/immutable/chunks/{CWmwYDNG.js → Cn5kmzaj.js} +1 -1
  125. package/web/app/immutable/chunks/{CWFSIfn9.js → Cnd7G5VB.js} +1 -1
  126. package/web/app/immutable/chunks/{CZuVFY9F.js → Co3f6qKm.js} +1 -1
  127. package/web/app/immutable/chunks/{CZ56Xi_v.js → CtiseZKO.js} +1 -1
  128. package/web/app/immutable/chunks/{DMhC9LKs.js → CtnRAN1I.js} +1 -1
  129. package/web/app/immutable/chunks/{5zeKz6ol.js → Ctp2YBhQ.js} +1 -1
  130. package/web/app/immutable/chunks/{DhiahJsn.js → Cu-I2HTr.js} +1 -1
  131. package/web/app/immutable/chunks/{C2RkweJs.js → CuK2Zw46.js} +1 -1
  132. package/web/app/immutable/chunks/{G_T2qAAV.js → Cw3xVp_u.js} +1 -1
  133. package/web/app/immutable/chunks/{KmtLXugw.js → Cw7ROLv9.js} +1 -1
  134. package/web/app/immutable/chunks/{CT1z3096.js → CyZzaZYX.js} +1 -1
  135. package/web/app/immutable/chunks/{U7noOj6Q.js → CyhLcHZ_.js} +1 -1
  136. package/web/app/immutable/chunks/{DauNXbYG.js → Cyu02R5O.js} +1 -1
  137. package/web/app/immutable/chunks/{BkbXY6dY.js → D-5Zsg_M.js} +1 -1
  138. package/web/app/immutable/chunks/{Zbow58Yt.js → D-IkFfCX.js} +1 -1
  139. package/web/app/immutable/chunks/{DRBNGj_-.js → D0yYfpFT.js} +1 -1
  140. package/web/app/immutable/chunks/{CMlQo89-.js → D1QW0Kek.js} +1 -1
  141. package/web/app/immutable/chunks/{DlZTlvi9.js → D1WSBSxV.js} +1 -1
  142. package/web/app/immutable/chunks/{BrhnR-ID.js → D4LrTene.js} +1 -1
  143. package/web/app/immutable/chunks/{XnpstU-2.js → D4bOZmAv.js} +1 -1
  144. package/web/app/immutable/chunks/{CDbqbXk4.js → D4nVXLyT.js} +1 -1
  145. package/web/app/immutable/chunks/{B12HSa3p.js → D4r0rKFl.js} +1 -1
  146. package/web/app/immutable/chunks/{C-gBprWE.js → D8oCNZJt.js} +3 -3
  147. package/web/app/immutable/chunks/{Co17KOMP.js → D9BiEPlJ.js} +1 -1
  148. package/web/app/immutable/chunks/{DH8xXeC1.js → D9xzAHI_.js} +1 -1
  149. package/web/app/immutable/chunks/{BWVi-EJ0.js → DAPuPOz3.js} +1 -1
  150. package/web/app/immutable/chunks/{BLWZRT3p.js → DBigkuTi.js} +1 -1
  151. package/web/app/immutable/chunks/{BgQrVLPV.js → DCZ5UGy-.js} +4 -4
  152. package/web/app/immutable/chunks/{CjlaSeGJ.js → DDgbK4p-.js} +1 -1
  153. package/web/app/immutable/chunks/{CFtvHvEH.js → DFXV1wIW.js} +3 -3
  154. package/web/app/immutable/chunks/{ButPbiBY.js → DFl_UPDl.js} +1 -1
  155. package/web/app/immutable/chunks/{1EEYpvtO.js → DHClt9az.js} +1 -1
  156. package/web/app/immutable/chunks/{G3wMjZ9O.js → DJiBCJAD.js} +1 -1
  157. package/web/app/immutable/chunks/{BTR3RbCu.js → DJkyIBda.js} +1 -1
  158. package/web/app/immutable/chunks/{Cwf8tFwL.js → DJz4QGRL.js} +1 -1
  159. package/web/app/immutable/chunks/{Djp1SSHW.js → DK1WtQKR.js} +3 -3
  160. package/web/app/immutable/chunks/{De4CKtf6.js → DKkMoi_7.js} +1 -1
  161. package/web/app/immutable/chunks/{BgfkhG1x.js → DLyvIErQ.js} +1 -1
  162. package/web/app/immutable/chunks/{CizJ7rQ5.js → DMJ_kXWl.js} +1 -1
  163. package/web/app/immutable/chunks/{t1ZXWA1s.js → DNy6UqlX.js} +1 -1
  164. package/web/app/immutable/chunks/{E3Zijj0F.js → DNzfQenZ.js} +1 -1
  165. package/web/app/immutable/chunks/{BW9zIwc0.js → DOjarwrj.js} +2 -2
  166. package/web/app/immutable/chunks/{MSmU5tc0.js → DPevKyzH.js} +4 -4
  167. package/web/app/immutable/chunks/{BcqStwzo.js → DQh8iE7C.js} +1 -1
  168. package/web/app/immutable/chunks/{BLXS06dm.js → DR-BIfRu.js} +1 -1
  169. package/web/app/immutable/chunks/{Bt4kKs00.js → DSWBNeO8.js} +1 -1
  170. package/web/app/immutable/chunks/{Cmt1ga7s.js → DSWXlbxm.js} +1 -1
  171. package/web/app/immutable/chunks/{CXAeontZ.js → DThHr-M9.js} +1 -1
  172. package/web/app/immutable/chunks/{CDPO_wX9.js → DZ7i3acf.js} +1 -1
  173. package/web/app/immutable/chunks/{fsqlfl9k.js → DZVkFfA6.js} +1 -1
  174. package/web/app/immutable/chunks/DZyjGspJ.js +408 -0
  175. package/web/app/immutable/chunks/{CvWGOqV6.js → D_rHnmLE.js} +1 -1
  176. package/web/app/immutable/chunks/{DTYxFA3y.js → DbxGcVeS.js} +5 -5
  177. package/web/app/immutable/chunks/{2Lw-DzvO.js → DgOx26JX.js} +1 -1
  178. package/web/app/immutable/chunks/{C8y1Abl_.js → Dgv1nn7D.js} +1 -1
  179. package/web/app/immutable/chunks/{C9sB2HsS.js → DjhrVk-G.js} +1 -1
  180. package/web/app/immutable/chunks/{nXbhxidw.js → DkJKEJ06.js} +1 -1
  181. package/web/app/immutable/chunks/{DTG9_7_9.js → Dn-5sae7.js} +1 -1
  182. package/web/app/immutable/chunks/{DEfRWwmu.js → DozUkl5C.js} +4 -4
  183. package/web/app/immutable/chunks/{DPuyFsTN.js → DpNO08YA.js} +1 -1
  184. package/web/app/immutable/chunks/{DaYj80Qs.js → Dsa4n88U.js} +1 -1
  185. package/web/app/immutable/chunks/{BFmjOdeB.js → Du0V4O1Q.js} +1 -1
  186. package/web/app/immutable/chunks/{CrmW6ekG.js → DvvIOlOp.js} +1 -1
  187. package/web/app/immutable/chunks/{DqZi8n0P.js → DwvH6ihg.js} +1 -1
  188. package/web/app/immutable/chunks/{BXPefMgB.js → DxWZwZdx.js} +1 -1
  189. package/web/app/immutable/chunks/{CZL7jnx7.js → Dy3Z_3JL.js} +1 -1
  190. package/web/app/immutable/chunks/{Tx7lrkZd.js → Dz1riI3m.js} +1 -1
  191. package/web/app/immutable/chunks/{F8LkPv3G.js → EMb2ha4n.js} +1 -1
  192. package/web/app/immutable/chunks/{CYYhQFAn.js → ERFmpNRs.js} +1 -1
  193. package/web/app/immutable/chunks/{JyTruf69.js → EhMQOMj3.js} +1 -1
  194. package/web/app/immutable/chunks/{Be5MJLTH.js → Fq8M_XAT.js} +1 -1
  195. package/web/app/immutable/chunks/{DZjCsshe.js → GpPmLIf8.js} +1 -1
  196. package/web/app/immutable/chunks/{DG0FHH4R.js → Gq5VdtSX.js} +1 -1
  197. package/web/app/immutable/chunks/{oG2g18ab.js → Gz_dGLcm.js} +1 -1
  198. package/web/app/immutable/chunks/{BT5gFy0f.js → H0FtMLfI.js} +1 -1
  199. package/web/app/immutable/chunks/{lfjw8hnT.js → IOLk9WTr.js} +1 -1
  200. package/web/app/immutable/chunks/{Bg8aMuhb.js → JzReAjFF.js} +1 -1
  201. package/web/app/immutable/chunks/{BriVbLDU.js → K6Z_l6pq.js} +1 -1
  202. package/web/app/immutable/chunks/{0aynuPUC.js → LMNLZ1NY.js} +1 -1
  203. package/web/app/immutable/chunks/{oNe1xT1B.js → MpnM4XaB.js} +1 -1
  204. package/web/app/immutable/chunks/{Hp_5KBak.js → NBz8yHrY.js} +1 -1
  205. package/web/app/immutable/chunks/{CdfwUBxI.js → NSYi6AlX.js} +1 -1
  206. package/web/app/immutable/chunks/{0KTgJhJS.js → PysgAWQl.js} +2 -2
  207. package/web/app/immutable/chunks/{D-uVnCxU.js → QZ612f-7.js} +1 -1
  208. package/web/app/immutable/chunks/{Bj1VmHmJ.js → QiHSe7pE.js} +1 -1
  209. package/web/app/immutable/chunks/{DPiwgBxV.js → RAtz5BJe.js} +1 -1
  210. package/web/app/immutable/chunks/{C59xgYPp.js → T-UCXbJS.js} +1 -1
  211. package/web/app/immutable/chunks/{CwxaNadx.js → TRV263rQ.js} +1 -1
  212. package/web/app/immutable/chunks/{BcAaHHj_.js → UkcaZDPC.js} +1 -1
  213. package/web/app/immutable/chunks/{BILCfAeY.js → VH54VSPn.js} +1 -1
  214. package/web/app/immutable/chunks/{CDGcnZR5.js → VlylMxmA.js} +1 -1
  215. package/web/app/immutable/chunks/{DR7XO1uo.js → WvnHVkBo.js} +1 -1
  216. package/web/app/immutable/chunks/{C111lYGO.js → Y7H0Q9T9.js} +1 -1
  217. package/web/app/immutable/chunks/{CIUOjVit.js → _639dNbm.js} +1 -1
  218. package/web/app/immutable/chunks/{bp1OJROF.js → aQ1wweeY.js} +1 -1
  219. package/web/app/immutable/chunks/{BzW_8cyh.js → cjWrgEc5.js} +1 -1
  220. package/web/app/immutable/chunks/{CbsveYrS.js → e5cMrke8.js} +1 -1
  221. package/web/app/immutable/chunks/{COokUMpm.js → jeQJPkPX.js} +1 -1
  222. package/web/app/immutable/chunks/{Bi9J7ZWc.js → jvSooljK.js} +1 -1
  223. package/web/app/immutable/chunks/{wEDjfGMo.js → lbBEThX6.js} +1 -1
  224. package/web/app/immutable/chunks/{T5gyQ5hy.js → mp0CeHil.js} +1 -1
  225. package/web/app/immutable/chunks/{CP9eXkGz.js → ndibvDk5.js} +1 -1
  226. package/web/app/immutable/chunks/{tbq-oxb3.js → o3xy8uhx.js} +1 -1
  227. package/web/app/immutable/chunks/{aBVNuo2p.js → ra3YYtwY.js} +1 -1
  228. package/web/app/immutable/chunks/u2UWf7Y4.js +2 -0
  229. package/web/app/immutable/chunks/{e8UxY0el.js → u8LnBJs1.js} +1 -1
  230. package/web/app/immutable/chunks/{axg0Ndkk.js → utDAmz_H.js} +1 -1
  231. package/web/app/immutable/chunks/{BB12pUFu.js → v9ob0vCO.js} +1 -1
  232. package/web/app/immutable/chunks/{CUH-D27g.js → vxHAGoo-.js} +1 -1
  233. package/web/app/immutable/chunks/{CDkIMW0_.js → wzM9lg7r.js} +1 -1
  234. package/web/app/immutable/chunks/{B30jTa2N.js → xKssrPyL.js} +1 -1
  235. package/web/app/immutable/chunks/{gTulAhJn.js → xmUlEbpq.js} +1 -1
  236. package/web/app/immutable/chunks/{Bfg47dIU.js → ycNH2fN8.js} +1 -1
  237. package/web/app/immutable/entry/{app.Dm8wR6Rj.js → app.B5_j9_5M.js} +3 -3
  238. package/web/app/immutable/entry/start.mb9UH8tB.js +1 -0
  239. package/web/app/immutable/nodes/{0.CwEG7GgD.js → 0.DHuGbpUL.js} +1 -1
  240. package/web/app/immutable/nodes/{1.DqpCQ0oj.js → 1.WwJLTbbm.js} +1 -1
  241. package/web/app/immutable/nodes/{10.cnSuSi5Z.js → 10.CPuWWcG0.js} +1 -1
  242. package/web/app/immutable/nodes/{11.CC3qLADs.js → 11.D_8o4hy2.js} +1 -1
  243. package/web/app/immutable/nodes/{12.DSb5Am3H.js → 12.CZZ5SuMc.js} +1 -1
  244. package/web/app/immutable/nodes/{13.CCDV1skO.js → 13.BCLve-7_.js} +3 -3
  245. package/web/app/immutable/nodes/{14.DeCwT4BN.js → 14.BcQJ7NXl.js} +1 -1
  246. package/web/app/immutable/nodes/{15.k51Sg7jX.js → 15.ClAlFdyg.js} +1 -1
  247. package/web/app/immutable/nodes/{16.DpXdz_jE.js → 16.CuGK30BG.js} +1 -1
  248. package/web/app/immutable/nodes/{17.D8r3aG2k.js → 17.D7rHJr6p.js} +1 -1
  249. package/web/app/immutable/nodes/{18.BqQgYdRA.js → 18.zJtnTeH6.js} +2 -2
  250. package/web/app/immutable/nodes/{2.B6rlXtKu.js → 2.0AUsew1o.js} +4 -4
  251. package/web/app/immutable/nodes/{3.C3QOw0-1.js → 3.BAKoHu3T.js} +1 -1
  252. package/web/app/immutable/nodes/{4.w6LAxxf2.js → 4.DvgOQOfh.js} +1 -1
  253. package/web/app/immutable/nodes/{5.iL_EURMh.js → 5.B3LUyqZc.js} +1 -1
  254. package/web/app/immutable/nodes/{6.ycdot7zh.js → 6.CQSK8GlV.js} +1 -1
  255. package/web/app/immutable/nodes/{7.HdIw4pKx.js → 7.C0YP__gO.js} +1 -1
  256. package/web/app/immutable/nodes/8.CCQs8dWr.js +14 -0
  257. package/web/app/immutable/nodes/{9.gXjT92Zl.js → 9.BLr02eF_.js} +5 -5
  258. package/web/app/version.json +1 -1
  259. package/web/generated/paraglide.js +45 -45
  260. package/web/index.html +18 -18
  261. package/web/app/immutable/chunks/BQy38IRs.js +0 -1
  262. package/web/app/immutable/chunks/BvIap_Mf.js +0 -408
  263. package/web/app/immutable/chunks/CD8un3Yt.js +0 -1
  264. package/web/app/immutable/chunks/CiyfjWlF.js +0 -1
  265. package/web/app/immutable/chunks/DUCyNlB1.js +0 -1
  266. package/web/app/immutable/chunks/_EdWPAoo.js +0 -2
  267. package/web/app/immutable/entry/start.D6r48319.js +0 -1
  268. package/web/app/immutable/nodes/8.B8D0hgU8.js +0 -14
@@ -1,4 +1,4 @@
1
- var $l=Object.defineProperty;var Ol=(r,t,n)=>t in r?$l(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n;var kn=(r,t,n)=>Ol(r,typeof t!="symbol"?t+"":t,n);import{t as It,bq as g,by as St,b as Tt,bo as f,bs as Kn,bu as dr,bt as ql,br as ha}from"./BQy38IRs.js";import{ai as aa,bs as Ct,ca as sr,aD as e,bH as j,ay as xe,bS as T,a7 as Rt,W as u,a5 as z,bA as R,bn as At,c9 as s,bV as we,aA as m,b_ as $,aj as Sr,aB as I,be as gr,b$ as Or,bO as J,bf as or,c0 as Cn,bl as oe,bj as jn,c6 as Dl,bo as za,br as Yr,am as Dn,ax as Bn,bk as as,aw as va,bz as ss,cb as ms,c5 as Ha,aC as xr,cd as _o,bv as Bl}from"./DYhIMPy1.js";import{i as B}from"./CWmwYDNG.js";import{g as Tr,e as _n,p as ps,i as Yn,I as Fl,h as eo,X as _i,o as zl}from"./CcJbyRBU.js";import{I as Kt,F as qa,c as ea,j as Wl,s as yi,p as to,y as Hl,u as Ul,t as $r,g as oa,B as ws,E as os,S as jl}from"./Zbow58Yt.js";import{s as te,f as ze,g as _a,c as kt,e as ar,b as ya,p as Vl,S as Kl,C as Gl}from"./CwxaNadx.js";import{b as cn}from"./BaIAhI85.js";import{f as Xe,ae as ro,a_ as Ql}from"./DH8xXeC1.js";import{J as Zl,O as Jl,Q as xs}from"./DJq2OFOa.js";import"./Co17KOMP.js";import"./CIUOjVit.js";import"./BLWZRT3p.js";import{s as Ln}from"./1EEYpvtO.js";import{F as jt,a0 as zs,bc as Tn,cF as no,aq as bi,aV as wi,aG as Xl,c4 as Yl,a2 as is,aJ as ed,cI as td,cH as rd,$ as vs,as as ao,I as yo,af as nd,bq as ad,aO as sd,aT as od,bF as id,ak as ld,cx as dd,ay as bo,aL as wo,bX as ks,aE as Ua,cR as cd,c6 as ud,bj as fd,b as gd,ck as md,ac as pd,b6 as Is,cm as xa,cA as vd,a as hd}from"./CvWGOqV6.js";import{c as xi,A as _d,x as yd}from"./BFmjOdeB.js";import{b as Ss,V as xo}from"./nXbhxidw.js";import{a as ki,b7 as Pr,A as Ga,ao as Ii,s as bd,n as Si,d as wd,I as xd,R as kd,ax as Id,a0 as Sd}from"./MSmU5tc0.js";import{bX as Ti,j as Qa,a6 as Ws,al as ls,F as Td,au as Za,aN as Cd,aQ as ko}from"./C4rFO2Hf.js";import{t as ia,o as Ad}from"./DWZFevW5.js";import{c3 as Ja,aC as Da,cQ as Ci,cS as Vn,bU as hs,j as Md,cJ as Ai,cP as _s,cO as Mi,cM as Pi,g as Nn,aa as Pd,ab as Rd,ax as Ed,s as Nd,K as Ld,W as Io,v as Ri,dO as $d,at as Od,k as qd,u as Ts,a6 as Dd,n as Bd,O as Fd,o as zd,S as Wd,R as Hd,a0 as Ud,q as Ei,r as Ni,l as jd,cT as Vd,a4 as Kd,D as Gd,x as Qd,V as So}from"./DPuyFsTN.js";import{Iv as yt,oA as Zd,t9 as Xa,np as To,v1 as Li,v3 as $i,ro as Jd,x$ as ds,uk as Oi,nk as qi,bf as Ya,y0 as Xd,q2 as Yd,sG as ec,uW as Di,nj as tc,mq as rc,i as nc,ys as ac,yp as sc,yr as oc}from"./Bo8Vb7mw.js";import{a2 as ic,x as Cs,a0 as lc,O as As,V as dc,_ as cc,j as uc,o as ka,M as fa,p as fc,F as gc,u as mc,s as pc,L as Ms,J as vc,y as hc,K as _c,Z as Ma,Q as ja,N as Co,m as Ao,E as yc,c as Ps,B as Mo,z as bc,v as Po,H as Pa,P as wc,G as xc,i as kc,R as Ic,T as Sc,A as Tc,g as Cc,b as Ac,D as Mc,f as Pc,e as Rc,a as Ec,C as Nc,h as Lc,U as Bi,a3 as $c,t as Oc,k as qc,d as Ro}from"./C8eS8Wxk.js";import{i as Dc,e as Bc}from"./CGw07Xyz.js";import{g as Rs}from"./BvFAWM27.js";import{M as Ia,C as Ra}from"./BMZTgpKM.js";import{C as Eo}from"./0aynuPUC.js";import"./CEixATbX.js";import{P as Fc}from"./D8a7_5Ny.js";import"./CMgf2JhK.js";import{c as Fi}from"./ChTqQfQN.js";import{S as zc}from"./CUFDAb6B.js";import{D as No,M as Wc}from"./DEfRWwmu.js";import{b as Hc,s as na,c as cs}from"./BFnV2iJZ.js";import{O as es,y as Es,E as Ns,B as Ls,N as Uc,m as jc,l as Vc,d as us,C as Lo,f as Kc,e as Gc,g as Qc}from"./CZuVFY9F.js";import{a as zi,s as $o}from"./BsieX9dN.js";import{f as Zc}from"./BdWqymET.js";import{c as dn}from"./DUCyNlB1.js";import{P as Jc}from"./CHK9comt.js";import{v as $s,t as Os,K as Oo,h as Xc}from"./C8aWNHHq.js";import{R as Hs,C as ys,k as Yc,h as eu,g as tu,i as qo,P as ru}from"./COcWmgqo.js";import"./DGD-U5Bo.js";import{R as Do,x as Na,o as Wi}from"./ShK1ywMo.js";import{B as nu}from"./DRBNGj_-.js";import{o as Hi,r as au,e as su}from"./Hp_5KBak.js";import{o as Ui}from"./D9ypzy3_.js";import{g as so}from"./oNe1xT1B.js";import{a as ou,M as iu}from"./CizJ7rQ5.js";import{c as Sa}from"./RFiIZzYq.js";import{A as lu}from"./BB12pUFu.js";import{f as du,d as cu}from"./8-qXyFVf.js";import{a8 as uu,N as fu,Y as gu,K as Bo,X as mu,v as pu}from"./DP4AQNt-.js";import{a as vu}from"./CC7to1B5.js";import{k as hu}from"./B30jTa2N.js";import{S as _u}from"./B5o_1DGD.js";import{u as yu,a as bu,c as Fo,S as wu}from"./DfxQWSVU.js";import{T as Us}from"./DIaPAOHO.js";import"./BTR3RbCu.js";import{g as xu}from"./DDLB_hVd.js";import{a as ku}from"./BLXS06dm.js";import{b as Iu}from"./fZqCaChB.js";import{b as zo}from"./p7znhYIU.js";import{g as Su,i as Tu,a as Cu}from"./CWKqJsJy.js";import{n as Wo,o as Ho,b as ma,s as Ta,_ as qs,e as Au}from"./CIyUrgF0.js";import{b7 as Un,L as Mu}from"./lqRrFWoK.js";import{x as Pu}from"./hSO5HDzm.js";import{c as Ru}from"./DTYxFA3y.js";function Eu(r){if(!r||typeof r!="object")return null;const t=r;if(t.type!=="script_monitor_wake"||t.source!=="system")return null;const{scriptName:n,scriptId:a,runId:o,monitorId:i,workspaceId:d,reason:c}=t;if(typeof n!="string"||typeof a!="string"||!a||typeof o!="string"||!o||typeof i!="string"||!i||typeof d!="string"||!d||c!=="finished"&&c!=="ttl-expired"&&c!=="output-match"&&c!=="line-count")return null;const h=t.trigger;return{scriptName:n,scriptId:a,runId:o,monitorId:i,workspaceId:d,reason:c,...c==="output-match"&&typeof h?.matchedLine=="string"?{matchedLine:h.matchedLine}:{}}}function Nu(r){return r?.type==="script_monitor_wake"&&!("remoteAgentId"in r)}function Lu(r,t,n,a=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const o=r.messageMetadata?.fromPrincipalId??r.author?.principalId,i=uu(r)&&r.author?.principalId!==null&&o===t;return{edit:i,remove:i||t===n||a,sendNow:(i||a)&&!ji(r)}}function Ca(r,t){if(t)return r.find(n=>n.editing&&n.editingMessageId?n.editingMessageId===t:n.id===t)}function ji(r){return Nu(r.messageMetadata)&&typeof r.messageMetadata?.monitorId=="string"}function Uo(r,t=Date.now()){const n=r.messageMetadata,a=n?.fromPrincipalId,o=n&&Object.hasOwn(n,"humanAuthor")&&!(typeof a=="string"&&a.length>0),i=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!i&&!o&&!ji(r)}const G_="pl-3.5! pr-2!";var $u=I('<span class="tile-remove-slot svelte-d8pwpf"><!></span>'),jo=I('<span class="attachment-status svelte-d8pwpf"> </span>'),Ou=I('<div class="file-image tile svelte-d8pwpf" data-kind="file"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),qu=I("<!><span> </span>",1),Du=I('<img alt="" draggable="false"/>'),Bu=I('<span class="summary svelte-d8pwpf" data-clip-summary=""> </span>'),Fu=I('<span class="clip svelte-d8pwpf"><span class="record-dot svelte-d8pwpf" aria-hidden="true"></span><span class="duration svelte-d8pwpf"> </span><!></span>'),zu=I('<div class="tile svelte-d8pwpf"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),Wu=I('<div class="attachment-row svelte-d8pwpf" role="group" data-dock-media-attachments=""></div>'),Hu=I("<!> <!> <!>",1),Uu=I('<img draggable="false" class="svelte-d8pwpf"/>'),ju=I('<video controls="" playsinline="" class="svelte-d8pwpf"></video>',2),Vu=I('<div class="media-viewer svelte-d8pwpf"><!></div>'),Ku=I("<!> <!>",1);function Gu(r,t){if(new.target)return It({component:Gu,...r});Ct(t,!0);const n=(O,ye=or,pe=or)=>{var A=$u(),ge=z(A);Xe(ge,{variant:"secondary",size:"icon-sm",class:"tile-action tile-remove",get disabled(){return i()},get"aria-label"(){return pe()},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return pe()},onclick:()=>q(ye()),children:(Te,Be)=>{Ss(Te,{glyph:"x"})},$$slots:{default:!0}}),R(A),u(O,A)};let a=g(t,"items",7),o=g(t,"labels",7),i=g(t,"disabled",7,!1),d=g(t,"onMarkUp",7),c=g(t,"onEdit",7),h=g(t,"onRemove",7),v=g(t,"onRetry",7),b=g(t,"onCopy",7),k=g(t,"onMenu",7);const N=O=>O.owner==="attachment"?2:{image:0,clip:1,file:2}[O.kind],Y=s(()=>[...a()].sort((O,ye)=>N(O)-N(ye)));let S=we(null),D=we(!1),ie=we(null),X=null;const M=s(()=>a().find(O=>O.id===e(ie)));sr(()=>{(!e(M)||e(M).kind==="image"&&!W(e(M)))&&j(D,!1)});function W(O){return O.kind==="image"&&O.status!=="placing"&&O.status!=="failed"&&O.url.trim().length>0}function E(O){return O.kind==="image"?o().image(O.markCount):O.kind==="clip"?O.summary?`${o().clip(O.duration)} ${O.summary}`:o().clip(O.duration):O.name}function ne(O,ye){if(!(i()||O.kind==="file"||O.kind==="image"&&!W(O)||O.kind==="clip"&&(!O.url||O.recording))){if((O.kind==="clip"||O.kind==="image")&&c()){c()(O.id);return}X=ye,j(ie,O.id,!0),j(D,!0)}}async function q(O){i()||(e(ie)===O&&j(D,!1),h()(O),await Cn(),(!document.activeElement||document.activeElement===document.body)&&e(S)?.querySelector("button:not(:disabled)")?.focus())}function F(O){const ye=a().find(pe=>pe.id===O);i()||!ye||!W(ye)||(j(D,!1),c()?c()(O):d()(O))}function ae(O,ye){O.key!=="Delete"||i()||(O.preventDefault(),O.stopPropagation(),q(ye))}function C(O){return O.status==="placing"||O.status==="failed"?!1:O.kind==="image"?!!O.file||W(O):O.kind==="clip"&&!O.recording&&!!O.url}function ee(O,ye){const pe=Zl()?O.metaKey:O.ctrlKey,A=O.key.toLowerCase();if(pe&&!O.shiftKey&&!O.altKey&&(A==="c"||A==="x")){if(!b()||!C(ye)||(O.preventDefault(),O.stopPropagation(),A==="x"&&i()))return;b()(ye.id,A==="x");return}ae(O,ye.id)}function le(O,ye){!k()||!C(ye)||(O.preventDefault(),k()(ye.id))}var me={get items(){return a()},set items(O){a(O),m()},get labels(){return o()},set labels(O){o(O),m()},get disabled(){return i()},set disabled(O=!1){i(O),m()},get onMarkUp(){return d()},set onMarkUp(O){d(O),m()},get onEdit(){return c()},set onEdit(O){c(O),m()},get onRemove(){return h()},set onRemove(O){h(O),m()},get onRetry(){return v()},set onRetry(O){v(O),m()},get onCopy(){return b()},set onCopy(O){b(O),m()},get onMenu(){return k()},set onMenu(O){k(O),m()},$set:St,$on:(O,ye)=>Tt(t,O,ye)},_e=Ku(),Re=xe(_e);{var Le=O=>{var ye=Wu();Tr(ye,21,()=>e(Y),pe=>pe.id,(pe,A)=>{var ge=Rt(),Te=xe(ge);{var Be=P=>{var Q=Ou(),re=z(Q);{let G=s(()=>i()||e(A).status==="placing");ki(re,{get id(){return e(A).id},get name(){return e(A).file.name},get type(){return e(A).file.imageMimeType},get imageData(){return e(A).file.imageData},get imageMimeType(){return e(A).file.imageMimeType},variant:"thumbnail",thumbnailClass:"size-full",class:"size-full",get disabled(){return e(G)},get placementStatus(){return e(A).status},get placementError(){return e(A).error}})}var se=T(re,2);{var ce=G=>{var Ee=jo(),De=oe(Ee,!0);$(()=>{te(Ee,"data-failed",e(A).status==="failed"||void 0),te(Ee,"role",e(A).status==="failed"?"alert":"status"),te(Ee,"title",e(A).error),J(De,e(A).status==="failed"?e(A).error??o().attachmentFailed:o().attachmentPending)}),u(G,Ee)};B(se,G=>{e(A).status&&G(ce)})}var w=T(se,2),Se=z(w);{var Ae=G=>{Xe(G,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(A).id),children:(Ee,De)=>{jt(Ee,{get icon(){return zs},size:16})},$$slots:{default:!0}})};B(Se,G=>{e(A).status==="failed"&&v()&&G(Ae)})}var L=T(Se,2);{let G=s(()=>f.chat_attachmentPreview_remove_ariaLabel({name:e(A).file.name}));n(L,()=>e(A).id,()=>e(G))}R(w),R(Q),$(()=>te(Q,"data-attachment-id",e(A).id)),Sr("keydown",Q,G=>ee(G,e(A))),Sr("contextmenu",Q,G=>le(G,e(A))),Kt(1,Q,()=>qa,()=>({tier:"fast",y:3,scale:.98})),Kt(2,Q,()=>ea,()=>({tier:"fast"})),u(P,Q)},Ce=P=>{const Q=s(()=>e(A).kind==="image"&&!W(e(A))&&e(A).status!=="failed");var re=zu(),se=z(re);{var ce=ve=>{Xe(ve,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile file",get"aria-label"(){return e(A).name},get disabled(){return i()},onkeydown:Oe=>ae(Oe,e(A).id),children:(Oe,U)=>{var ue=qu(),ot=xe(ue);jt(ot,{get icon(){return Tn},size:20});var xt=T(ot),mt=oe(xt,!0);$(()=>J(mt,e(A).name)),u(Oe,ue)},$$slots:{default:!0}})},w=ve=>{{let Oe=s(()=>E(e(A))),U=s(()=>i()||e(A).kind==="clip"&&(e(A).recording||!e(A).url));Xe(ve,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile",get"aria-label"(){return e(Oe)},get disabled(){return e(U)},onkeydown:ue=>ee(ue,e(A)),onclick:ue=>{ue.currentTarget instanceof HTMLElement&&ne(e(A),ue.currentTarget)},children:(ue,ot)=>{var xt=Rt(),mt=xe(xt);{var Ft=je=>{var bt=Du();$(()=>te(bt,"src",e(A).url)),u(je,bt)},pt=je=>{var bt=Fu(),at=T(z(bt)),dt=oe(at,!0),$e=T(at);{var ft=K=>{var _=Bu(),he=oe(_,!0);$(()=>J(he,e(A).summary)),u(K,_)};B($e,K=>{e(A).summary&&K(ft)})}R(bt),$(()=>J(dt,e(A).duration)),u(je,bt)};B(mt,je=>{e(A).kind==="image"?je(Ft):je(pt,-1)})}u(ue,xt)},$$slots:{default:!0}})}},Se=s(()=>e(A).kind!=="image"||W(e(A)));B(se,ve=>{e(A).kind==="file"?ve(ce):e(Se)&&ve(w,1)})}var Ae=T(se,2);{var L=ve=>{var Oe=jo(),U=oe(Oe,!0);$(()=>{te(Oe,"data-failed",e(A).status==="failed"||void 0),te(Oe,"role",e(A).status==="failed"?"alert":"status"),te(Oe,"title",e(A).error),J(U,e(A).status==="failed"?e(A).error??o().attachmentFailed:o().attachmentPending)}),u(ve,Oe)};B(Ae,ve=>{(e(A).status||e(Q))&&ve(L)})}var G=T(Ae,2),Ee=z(G);{var De=ve=>{Xe(ve,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(A).id),children:(Oe,U)=>{jt(Oe,{get icon(){return zs},size:16})},$$slots:{default:!0}})},Je=ve=>{{let Oe=s(()=>c()?o().edit:o().markUp),U=s(()=>c()?o().edit:o().markUp);Xe(ve,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e(Oe)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(U)},onclick:()=>F(e(A).id),children:(ue,ot)=>{Ss(ue,{glyph:"pencil"})},$$slots:{default:!0}})}},Ge=s(()=>W(e(A))),Bt=ve=>{{let Oe=s(()=>c()?o().edit:o().play),U=s(()=>c()?o().edit:o().play);Xe(ve,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e(Oe)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(U)},onclick:ue=>{ue.currentTarget instanceof HTMLElement&&ne(e(A),ue.currentTarget)},children:(ue,ot)=>{{let xt=s(()=>c()?"pencil":"play");Ss(ue,{get glyph(){return e(xt)}})}},$$slots:{default:!0}})}};B(Ee,ve=>{e(A).status==="failed"&&v()?ve(De):e(Ge)?ve(Je,1):e(A).kind==="clip"&&!e(A).recording&&e(A).url&&ve(Bt,2)})}var ke=T(Ee,2);n(ke,()=>e(A).id,()=>o().remove),R(G),R(re),$(()=>{te(re,"data-kind",e(A).kind),te(re,"data-attachment-id",e(A).id),te(re,"aria-busy",e(Q)||void 0)}),Sr("contextmenu",re,ve=>le(ve,e(A))),Kt(1,re,()=>qa,()=>({tier:"fast",y:3,scale:.98})),Kt(2,re,()=>ea,()=>({tier:"fast"})),u(P,re)};B(Te,P=>{e(A).kind==="image"&&e(A).file?P(Be):P(Ce,-1)})}u(pe,ge)}),R(ye),cn(ye,pe=>j(S,pe),()=>e(S)),$(()=>te(ye,"aria-label",o().attachments)),u(O,ye)};B(Re,O=>{e(Y).length&&O(Le)})}var Ke=T(Re,2);{const O=pe=>{var A=Rt(),ge=xe(A);{var Te=Be=>{var Ce=Hu(),P=xe(Ce);{var Q=w=>{Xe(w,{variant:"primary",get disabled(){return i()},onclick:()=>e(M)&&F(e(M).id),children:(Se,Ae)=>{gr();var L=Or();$(()=>J(L,o().markUp)),u(Se,L)},$$slots:{default:!0}})},re=s(()=>W(e(M)));B(P,w=>{e(re)&&w(Q)})}var se=T(P,2);Xe(se,{variant:"secondary",get disabled(){return i()},onclick:()=>e(M)&&q(e(M).id),children:(w,Se)=>{gr();var Ae=Or();$(()=>J(Ae,o().remove)),u(w,Ae)},$$slots:{default:!0}});var ce=T(se,2);Xe(ce,{variant:"ghost-light",onclick:()=>{j(D,!1)},children:(w,Se)=>{gr();var Ae=Or();$(()=>J(Ae,o().done)),u(w,Ae)},$$slots:{default:!0}}),u(Be,Ce)};B(ge,Be=>{e(M)&&e(M).kind!=="file"&&Be(Te)})}u(pe,A)};let ye=s(()=>e(M)?E(e(M)):o().attachments);xi(Ke,{get title(){return e(ye)},size:"wide",showCloseButton:!1,onCloseAutoFocus:pe=>{pe.preventDefault(),X?.isConnected?X.focus():e(S)?.querySelector("button:not(:disabled)")?.focus()},get open(){return e(D)},set open(pe){j(D,pe,!0)},footer:O,children:(pe,A)=>{var ge=Rt(),Te=xe(ge);{var Be=Ce=>{var P=Vu(),Q=z(P);{var re=w=>{var Se=Uu();$(Ae=>{te(Se,"src",e(M).url),te(Se,"alt",Ae)},[()=>E(e(M))]),u(w,Se)},se=s(()=>e(M).kind==="image"&&W(e(M))),ce=w=>{var Se=ju();$(Ae=>{te(Se,"src",e(M).url),te(Se,"aria-label",Ae)},[()=>E(e(M))]),u(w,Se)};B(Q,w=>{e(se)?w(re):e(M).kind==="clip"&&e(M).url&&w(ce,1)})}R(P),u(Ce,P)};B(Te,Ce=>{e(M)&&e(M).kind!=="file"&&Ce(Be)})}u(pe,ge)},$$slots:{footer:!0,default:!0}})}return u(r,_e),At(me)}aa(["keydown","contextmenu"]);var Qu=I("<!> ",1),Zu=I('<div class="flex flex-col gap-2 px-4 py-3 bg-muted/30 border border-border rounded-lg my-4"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="shrink-0 text-subtle"><!></div> <div class="font-medium text-sm"> </div></div> <div class="flex items-center gap-1"><!> <!></div></div> <div class="text-xs text-subtle"> </div> <pre class="text-xs bg-background/50 rounded p-2 overflow-x-auto max-h-40 overflow-y-auto font-mono"> </pre></div>');function Vi(r,t){if(new.target)return It({component:Vi,...r});Ct(t,!0);let n=g(t,"name",7),a=g(t,"description",7),o=g(t,"content",7),i=g(t,"onUseScript",7),d=we(!1);function c(){navigator.clipboard.writeText(o()),j(d,!0),setTimeout(()=>{j(d,!1)},2e3)}function h(){i()?.({name:n(),description:a(),content:o()})}var v={get name(){return n()},set name(C){n(C),m()},get description(){return a()},set description(C){a(C),m()},get content(){return o()},set content(C){o(C),m()},get onUseScript(){return i()},set onUseScript(C){i(C),m()},$set:St,$on:(C,ee)=>Tt(t,C,ee)},b=Zu(),k=z(b),N=z(k),Y=z(N),S=z(Y);jt(S,{get icon(){return no},size:"sm"}),R(Y);var D=T(Y,2),ie=oe(D,!0);R(N);var X=T(N,2),M=z(X);Xe(M,{variant:"ghost-light",size:"sm",onclick:c,class:"h-7 px-2",children:(C,ee)=>{var le=Qu(),me=xe(le);{let Re=s(()=>e(d)?bi:wi);jt(me,{get icon(){return e(Re)},class:"mr-1"})}var _e=T(me);$(Re=>J(_e,` ${Re??""}`),[()=>e(d)?f.chat_shared_copied_label():f.chat_shared_copy_label()]),u(C,le)},$$slots:{default:!0}});var W=T(M,2);{var E=C=>{Xe(C,{variant:"ghost-light",size:"sm",onclick:h,class:"h-7 px-2",children:(ee,le)=>{gr();var me=Or();$(_e=>J(me,_e),[()=>f.chat_setupScriptCard_useScript_label()]),u(ee,me)},$$slots:{default:!0}})};B(W,C=>{i()&&C(E)})}R(X),R(k);var ne=T(k,2),q=oe(ne,!0),F=T(ne,2),ae=oe(F,!0);return R(b),$(()=>{J(ie,n()),J(q,a()),J(ae,o())}),u(r,b),At(v)}const wr={toolStart:/(?:\x1B\[\d+m)?🔧\s+(?:Tool call:\s+)?(.+?)(?:\x1B\[0m)?$/,toolDetail:/(?:[└├]─\s+(.+)$|^\s{3,}(.+)$)/,toolResult:/(?:\x1B\[\d+m)?📋\s+Tool result:\s+(.+?)(?:\x1B\[0m)?$/,toolSuccess:/[✓✔✅]\s+(.+)$/,toolError:/[❌✗❎]\s+(.+)$/,sessionInfo:/[Ss]ession:\s*([a-f0-9-]+)/,resumedSession:/📂?\s*Resumed session/i,assistantMarker:/🤖/,systemMarker:/💻/,userMarker:/👤/,thinkingMarker:/🤔\s*Thinking/i,waitingMarker:/^⏳\s+Running/i,indexingProgress:/^Indexing:\s*\[.*\]\s*\d+%/,agentDigest:/<agent_digest>([\s\S]*?)<\/agent_digest>/,setupScript:/<setup_script\s+name="([^"]+)"\s+description="([^"]+)">([\s\S]*?)<\/setup_script>/};class Ju{constructor(){kn(this,"buffer","");kn(this,"currentToolName",null);kn(this,"currentToolId",null);kn(this,"lastToolId",null);kn(this,"currentToolParams",[]);kn(this,"currentToolResultContent",[]);kn(this,"inToolResult",!1);kn(this,"inCodeBlock",!1);kn(this,"codeBlockLanguage","");kn(this,"codeBlockContent","");kn(this,"characterBuffer","");kn(this,"inCharacterMode",!1);kn(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const o=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const c=this.currentToolResultContent.some(v=>v.startsWith("❌")||v.startsWith("Error:")),h=this.currentToolResultContent.map(v=>v.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
1
+ var $l=Object.defineProperty;var Ol=(r,t,n)=>t in r?$l(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n;var kn=(r,t,n)=>Ol(r,typeof t!="symbol"?t+"":t,n);import{t as It,bq as g,by as St,b as Tt,bo as f,bs as Kn,bu as dr,bt as ql,br as ha}from"./CT36W95j.js";import{ai as aa,bs as Ct,ca as sr,aD as e,bH as j,ay as xe,bS as T,a7 as Rt,W as u,a5 as z,bA as R,bn as At,c9 as s,bV as we,aA as m,b_ as $,aj as Sr,aB as I,be as gr,b$ as Or,bO as J,bf as or,c0 as Cn,bl as oe,bj as jn,c6 as Dl,bo as za,br as Yr,am as Dn,ax as Bn,bk as as,aw as va,bz as ss,cb as ms,c5 as Ha,aC as xr,cd as _o,bv as Bl}from"./DYhIMPy1.js";import{i as B}from"./Cn5kmzaj.js";import{g as Tr,e as _n,p as ps,i as Yn,I as Fl,h as eo,X as _i,o as zl}from"./Bw5h0b4B.js";import{I as Kt,F as qa,c as ea,j as Wl,s as yi,p as to,y as Hl,u as Ul,t as $r,g as oa,B as ws,E as os,S as jl}from"./D-IkFfCX.js";import{s as te,f as ze,g as _a,c as kt,e as ar,b as ya,p as Vl,S as Kl,C as Gl}from"./TRV263rQ.js";import{b as cn}from"./BaIAhI85.js";import{f as Xe,ae as ro,a_ as Ql}from"./D9xzAHI_.js";import{J as Zl,O as Jl,Q as xs}from"./ClQp3PSY.js";import"./D9BiEPlJ.js";import"./_639dNbm.js";import"./DBigkuTi.js";import{s as Ln}from"./DHClt9az.js";import{F as jt,a0 as zs,bc as Tn,cF as no,aq as bi,aV as wi,aG as Xl,c4 as Yl,a2 as is,aJ as ed,cI as td,cH as rd,$ as vs,as as ao,I as yo,af as nd,bq as ad,aO as sd,aT as od,bF as id,ak as ld,cx as dd,ay as bo,aL as wo,bX as ks,aE as Ua,cR as cd,c6 as ud,bj as fd,b as gd,ck as md,ac as pd,b6 as Is,cm as xa,cA as vd,a as hd}from"./D_rHnmLE.js";import{c as xi,A as _d,x as yd}from"./Du0V4O1Q.js";import{b as Ss,V as xo}from"./DkJKEJ06.js";import{a as ki,b7 as Pr,A as Ga,ao as Ii,s as bd,n as Si,d as wd,I as xd,R as kd,ax as Id,a0 as Sd}from"./DPevKyzH.js";import{bX as Ti,j as Qa,a6 as Ws,al as ls,F as Td,au as Za,aN as Cd,aQ as ko}from"./Baz0g_kI.js";import{t as ia,o as Ad}from"./C_p41hnk.js";import{c3 as Ja,aC as Da,cQ as Ci,cS as Vn,bU as hs,j as Md,cJ as Ai,cP as _s,cO as Mi,cM as Pi,g as Nn,aa as Pd,ab as Rd,ax as Ed,s as Nd,K as Ld,W as Io,v as Ri,dO as $d,at as Od,k as qd,u as Ts,a6 as Dd,n as Bd,O as Fd,o as zd,S as Wd,R as Hd,a0 as Ud,q as Ei,r as Ni,l as jd,cT as Vd,a4 as Kd,D as Gd,x as Qd,V as So}from"./DpNO08YA.js";import{Iv as yt,oA as Zd,t9 as Xa,np as To,v1 as Li,v3 as $i,ro as Jd,x$ as ds,uk as Oi,nk as qi,bf as Ya,y0 as Xd,q2 as Yd,sG as ec,uW as Di,nj as tc,mq as rc,i as nc,ys as ac,yp as sc,yr as oc}from"./BmagX6n5.js";import{a2 as ic,x as Cs,a0 as lc,O as As,V as dc,_ as cc,j as uc,o as ka,M as fa,p as fc,F as gc,u as mc,s as pc,L as Ms,J as vc,y as hc,K as _c,Z as Ma,Q as ja,N as Co,m as Ao,E as yc,c as Ps,B as Mo,z as bc,v as Po,H as Pa,P as wc,G as xc,i as kc,R as Ic,T as Sc,A as Tc,g as Cc,b as Ac,D as Mc,f as Pc,e as Rc,a as Ec,C as Nc,h as Lc,U as Bi,a3 as $c,t as Oc,k as qc,d as Ro}from"./BJbIj2f5.js";import{i as Dc,e as Bc}from"./BFllbeCZ.js";import{g as Rs}from"./BvFAWM27.js";import{M as Ia,C as Ra}from"./Ca30sbat.js";import{C as Eo}from"./LMNLZ1NY.js";import"./Bpb2sW6o.js";import{P as Fc}from"./C2XB0GY0.js";import"./BHqqRyT8.js";import{c as Fi}from"./ChTqQfQN.js";import{S as zc}from"./BeCIalNK.js";import{D as No,M as Wc}from"./DozUkl5C.js";import{b as Hc,s as na,c as cs}from"./BtKOOSsW.js";import{O as es,y as Es,E as Ns,B as Ls,N as Uc,m as jc,l as Vc,d as us,C as Lo,f as Kc,e as Gc,g as Qc}from"./Co3f6qKm.js";import{a as zi,s as $o}from"./BsieX9dN.js";import{f as Zc}from"./BdWqymET.js";import{c as dn}from"./BKdLSL00.js";import{P as Jc}from"./BwYW1dkK.js";import{v as $s,t as Os,K as Oo,h as Xc}from"./BzXXtRZY.js";import{R as Hs,C as ys,k as Yc,h as eu,g as tu,i as qo,P as ru}from"./B7lF313M.js";import"./CJyP11U5.js";import{R as Do,x as Na,o as Wi}from"./BRadcq2w.js";import{B as nu}from"./D0yYfpFT.js";import{o as Hi,r as au,e as su}from"./NBz8yHrY.js";import{o as Ui}from"./CXrz3Q9k.js";import{g as so}from"./MpnM4XaB.js";import{a as ou,M as iu}from"./DMJ_kXWl.js";import{c as Sa}from"./CgQUkF-P.js";import{A as lu}from"./v9ob0vCO.js";import{f as du,d as cu}from"./Bsismerr.js";import{a8 as uu,N as fu,Y as gu,K as Bo,X as mu,v as pu}from"./BYBv_fLl.js";import{a as vu}from"./CC7to1B5.js";import{k as hu}from"./xKssrPyL.js";import{S as _u}from"./C9qO9uPq.js";import{u as yu,a as bu,c as Fo,S as wu}from"./DfxQWSVU.js";import{T as Us}from"./B9CbdVRS.js";import"./DJkyIBda.js";import{g as xu}from"./BdyAQuf8.js";import{a as ku}from"./DR-BIfRu.js";import{b as Iu}from"./CHJZj-fd.js";import{b as zo}from"./p7znhYIU.js";import{g as Su,i as Tu,a as Cu}from"./BgUSjvxc.js";import{n as Wo,o as Ho,b as ma,s as Ta,_ as qs,e as Au}from"./CIyUrgF0.js";import{b7 as Un,L as Mu}from"./CmG1GbmA.js";import{x as Pu}from"./CVc3afbh.js";import{c as Ru}from"./DbxGcVeS.js";function Eu(r){if(!r||typeof r!="object")return null;const t=r;if(t.type!=="script_monitor_wake"||t.source!=="system")return null;const{scriptName:n,scriptId:a,runId:o,monitorId:i,workspaceId:d,reason:c}=t;if(typeof n!="string"||typeof a!="string"||!a||typeof o!="string"||!o||typeof i!="string"||!i||typeof d!="string"||!d||c!=="finished"&&c!=="ttl-expired"&&c!=="output-match"&&c!=="line-count")return null;const h=t.trigger;return{scriptName:n,scriptId:a,runId:o,monitorId:i,workspaceId:d,reason:c,...c==="output-match"&&typeof h?.matchedLine=="string"?{matchedLine:h.matchedLine}:{}}}function Nu(r){return r?.type==="script_monitor_wake"&&!("remoteAgentId"in r)}function Lu(r,t,n,a=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const o=r.messageMetadata?.fromPrincipalId??r.author?.principalId,i=uu(r)&&r.author?.principalId!==null&&o===t;return{edit:i,remove:i||t===n||a,sendNow:(i||a)&&!ji(r)}}function Ca(r,t){if(t)return r.find(n=>n.editing&&n.editingMessageId?n.editingMessageId===t:n.id===t)}function ji(r){return Nu(r.messageMetadata)&&typeof r.messageMetadata?.monitorId=="string"}function Uo(r,t=Date.now()){const n=r.messageMetadata,a=n?.fromPrincipalId,o=n&&Object.hasOwn(n,"humanAuthor")&&!(typeof a=="string"&&a.length>0),i=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!i&&!o&&!ji(r)}const G_="pl-3.5! pr-2!";var $u=I('<span class="tile-remove-slot svelte-d8pwpf"><!></span>'),jo=I('<span class="attachment-status svelte-d8pwpf"> </span>'),Ou=I('<div class="file-image tile svelte-d8pwpf" data-kind="file"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),qu=I("<!><span> </span>",1),Du=I('<img alt="" draggable="false"/>'),Bu=I('<span class="summary svelte-d8pwpf" data-clip-summary=""> </span>'),Fu=I('<span class="clip svelte-d8pwpf"><span class="record-dot svelte-d8pwpf" aria-hidden="true"></span><span class="duration svelte-d8pwpf"> </span><!></span>'),zu=I('<div class="tile svelte-d8pwpf"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),Wu=I('<div class="attachment-row svelte-d8pwpf" role="group" data-dock-media-attachments=""></div>'),Hu=I("<!> <!> <!>",1),Uu=I('<img draggable="false" class="svelte-d8pwpf"/>'),ju=I('<video controls="" playsinline="" class="svelte-d8pwpf"></video>',2),Vu=I('<div class="media-viewer svelte-d8pwpf"><!></div>'),Ku=I("<!> <!>",1);function Gu(r,t){if(new.target)return It({component:Gu,...r});Ct(t,!0);const n=(O,ye=or,pe=or)=>{var A=$u(),ge=z(A);Xe(ge,{variant:"secondary",size:"icon-sm",class:"tile-action tile-remove",get disabled(){return i()},get"aria-label"(){return pe()},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return pe()},onclick:()=>q(ye()),children:(Te,Be)=>{Ss(Te,{glyph:"x"})},$$slots:{default:!0}}),R(A),u(O,A)};let a=g(t,"items",7),o=g(t,"labels",7),i=g(t,"disabled",7,!1),d=g(t,"onMarkUp",7),c=g(t,"onEdit",7),h=g(t,"onRemove",7),v=g(t,"onRetry",7),b=g(t,"onCopy",7),k=g(t,"onMenu",7);const N=O=>O.owner==="attachment"?2:{image:0,clip:1,file:2}[O.kind],Y=s(()=>[...a()].sort((O,ye)=>N(O)-N(ye)));let S=we(null),D=we(!1),ie=we(null),X=null;const M=s(()=>a().find(O=>O.id===e(ie)));sr(()=>{(!e(M)||e(M).kind==="image"&&!W(e(M)))&&j(D,!1)});function W(O){return O.kind==="image"&&O.status!=="placing"&&O.status!=="failed"&&O.url.trim().length>0}function E(O){return O.kind==="image"?o().image(O.markCount):O.kind==="clip"?O.summary?`${o().clip(O.duration)} ${O.summary}`:o().clip(O.duration):O.name}function ne(O,ye){if(!(i()||O.kind==="file"||O.kind==="image"&&!W(O)||O.kind==="clip"&&(!O.url||O.recording))){if((O.kind==="clip"||O.kind==="image")&&c()){c()(O.id);return}X=ye,j(ie,O.id,!0),j(D,!0)}}async function q(O){i()||(e(ie)===O&&j(D,!1),h()(O),await Cn(),(!document.activeElement||document.activeElement===document.body)&&e(S)?.querySelector("button:not(:disabled)")?.focus())}function F(O){const ye=a().find(pe=>pe.id===O);i()||!ye||!W(ye)||(j(D,!1),c()?c()(O):d()(O))}function ae(O,ye){O.key!=="Delete"||i()||(O.preventDefault(),O.stopPropagation(),q(ye))}function C(O){return O.status==="placing"||O.status==="failed"?!1:O.kind==="image"?!!O.file||W(O):O.kind==="clip"&&!O.recording&&!!O.url}function ee(O,ye){const pe=Zl()?O.metaKey:O.ctrlKey,A=O.key.toLowerCase();if(pe&&!O.shiftKey&&!O.altKey&&(A==="c"||A==="x")){if(!b()||!C(ye)||(O.preventDefault(),O.stopPropagation(),A==="x"&&i()))return;b()(ye.id,A==="x");return}ae(O,ye.id)}function le(O,ye){!k()||!C(ye)||(O.preventDefault(),k()(ye.id))}var me={get items(){return a()},set items(O){a(O),m()},get labels(){return o()},set labels(O){o(O),m()},get disabled(){return i()},set disabled(O=!1){i(O),m()},get onMarkUp(){return d()},set onMarkUp(O){d(O),m()},get onEdit(){return c()},set onEdit(O){c(O),m()},get onRemove(){return h()},set onRemove(O){h(O),m()},get onRetry(){return v()},set onRetry(O){v(O),m()},get onCopy(){return b()},set onCopy(O){b(O),m()},get onMenu(){return k()},set onMenu(O){k(O),m()},$set:St,$on:(O,ye)=>Tt(t,O,ye)},_e=Ku(),Re=xe(_e);{var Le=O=>{var ye=Wu();Tr(ye,21,()=>e(Y),pe=>pe.id,(pe,A)=>{var ge=Rt(),Te=xe(ge);{var Be=P=>{var Q=Ou(),re=z(Q);{let G=s(()=>i()||e(A).status==="placing");ki(re,{get id(){return e(A).id},get name(){return e(A).file.name},get type(){return e(A).file.imageMimeType},get imageData(){return e(A).file.imageData},get imageMimeType(){return e(A).file.imageMimeType},variant:"thumbnail",thumbnailClass:"size-full",class:"size-full",get disabled(){return e(G)},get placementStatus(){return e(A).status},get placementError(){return e(A).error}})}var se=T(re,2);{var ce=G=>{var Ee=jo(),De=oe(Ee,!0);$(()=>{te(Ee,"data-failed",e(A).status==="failed"||void 0),te(Ee,"role",e(A).status==="failed"?"alert":"status"),te(Ee,"title",e(A).error),J(De,e(A).status==="failed"?e(A).error??o().attachmentFailed:o().attachmentPending)}),u(G,Ee)};B(se,G=>{e(A).status&&G(ce)})}var w=T(se,2),Se=z(w);{var Ae=G=>{Xe(G,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(A).id),children:(Ee,De)=>{jt(Ee,{get icon(){return zs},size:16})},$$slots:{default:!0}})};B(Se,G=>{e(A).status==="failed"&&v()&&G(Ae)})}var L=T(Se,2);{let G=s(()=>f.chat_attachmentPreview_remove_ariaLabel({name:e(A).file.name}));n(L,()=>e(A).id,()=>e(G))}R(w),R(Q),$(()=>te(Q,"data-attachment-id",e(A).id)),Sr("keydown",Q,G=>ee(G,e(A))),Sr("contextmenu",Q,G=>le(G,e(A))),Kt(1,Q,()=>qa,()=>({tier:"fast",y:3,scale:.98})),Kt(2,Q,()=>ea,()=>({tier:"fast"})),u(P,Q)},Ce=P=>{const Q=s(()=>e(A).kind==="image"&&!W(e(A))&&e(A).status!=="failed");var re=zu(),se=z(re);{var ce=ve=>{Xe(ve,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile file",get"aria-label"(){return e(A).name},get disabled(){return i()},onkeydown:Oe=>ae(Oe,e(A).id),children:(Oe,U)=>{var ue=qu(),ot=xe(ue);jt(ot,{get icon(){return Tn},size:20});var xt=T(ot),mt=oe(xt,!0);$(()=>J(mt,e(A).name)),u(Oe,ue)},$$slots:{default:!0}})},w=ve=>{{let Oe=s(()=>E(e(A))),U=s(()=>i()||e(A).kind==="clip"&&(e(A).recording||!e(A).url));Xe(ve,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile",get"aria-label"(){return e(Oe)},get disabled(){return e(U)},onkeydown:ue=>ee(ue,e(A)),onclick:ue=>{ue.currentTarget instanceof HTMLElement&&ne(e(A),ue.currentTarget)},children:(ue,ot)=>{var xt=Rt(),mt=xe(xt);{var Ft=je=>{var bt=Du();$(()=>te(bt,"src",e(A).url)),u(je,bt)},pt=je=>{var bt=Fu(),at=T(z(bt)),dt=oe(at,!0),$e=T(at);{var ft=K=>{var _=Bu(),he=oe(_,!0);$(()=>J(he,e(A).summary)),u(K,_)};B($e,K=>{e(A).summary&&K(ft)})}R(bt),$(()=>J(dt,e(A).duration)),u(je,bt)};B(mt,je=>{e(A).kind==="image"?je(Ft):je(pt,-1)})}u(ue,xt)},$$slots:{default:!0}})}},Se=s(()=>e(A).kind!=="image"||W(e(A)));B(se,ve=>{e(A).kind==="file"?ve(ce):e(Se)&&ve(w,1)})}var Ae=T(se,2);{var L=ve=>{var Oe=jo(),U=oe(Oe,!0);$(()=>{te(Oe,"data-failed",e(A).status==="failed"||void 0),te(Oe,"role",e(A).status==="failed"?"alert":"status"),te(Oe,"title",e(A).error),J(U,e(A).status==="failed"?e(A).error??o().attachmentFailed:o().attachmentPending)}),u(ve,Oe)};B(Ae,ve=>{(e(A).status||e(Q))&&ve(L)})}var G=T(Ae,2),Ee=z(G);{var De=ve=>{Xe(ve,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(A).id),children:(Oe,U)=>{jt(Oe,{get icon(){return zs},size:16})},$$slots:{default:!0}})},Je=ve=>{{let Oe=s(()=>c()?o().edit:o().markUp),U=s(()=>c()?o().edit:o().markUp);Xe(ve,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e(Oe)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(U)},onclick:()=>F(e(A).id),children:(ue,ot)=>{Ss(ue,{glyph:"pencil"})},$$slots:{default:!0}})}},Ge=s(()=>W(e(A))),Bt=ve=>{{let Oe=s(()=>c()?o().edit:o().play),U=s(()=>c()?o().edit:o().play);Xe(ve,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e(Oe)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(U)},onclick:ue=>{ue.currentTarget instanceof HTMLElement&&ne(e(A),ue.currentTarget)},children:(ue,ot)=>{{let xt=s(()=>c()?"pencil":"play");Ss(ue,{get glyph(){return e(xt)}})}},$$slots:{default:!0}})}};B(Ee,ve=>{e(A).status==="failed"&&v()?ve(De):e(Ge)?ve(Je,1):e(A).kind==="clip"&&!e(A).recording&&e(A).url&&ve(Bt,2)})}var ke=T(Ee,2);n(ke,()=>e(A).id,()=>o().remove),R(G),R(re),$(()=>{te(re,"data-kind",e(A).kind),te(re,"data-attachment-id",e(A).id),te(re,"aria-busy",e(Q)||void 0)}),Sr("contextmenu",re,ve=>le(ve,e(A))),Kt(1,re,()=>qa,()=>({tier:"fast",y:3,scale:.98})),Kt(2,re,()=>ea,()=>({tier:"fast"})),u(P,re)};B(Te,P=>{e(A).kind==="image"&&e(A).file?P(Be):P(Ce,-1)})}u(pe,ge)}),R(ye),cn(ye,pe=>j(S,pe),()=>e(S)),$(()=>te(ye,"aria-label",o().attachments)),u(O,ye)};B(Re,O=>{e(Y).length&&O(Le)})}var Ke=T(Re,2);{const O=pe=>{var A=Rt(),ge=xe(A);{var Te=Be=>{var Ce=Hu(),P=xe(Ce);{var Q=w=>{Xe(w,{variant:"primary",get disabled(){return i()},onclick:()=>e(M)&&F(e(M).id),children:(Se,Ae)=>{gr();var L=Or();$(()=>J(L,o().markUp)),u(Se,L)},$$slots:{default:!0}})},re=s(()=>W(e(M)));B(P,w=>{e(re)&&w(Q)})}var se=T(P,2);Xe(se,{variant:"secondary",get disabled(){return i()},onclick:()=>e(M)&&q(e(M).id),children:(w,Se)=>{gr();var Ae=Or();$(()=>J(Ae,o().remove)),u(w,Ae)},$$slots:{default:!0}});var ce=T(se,2);Xe(ce,{variant:"ghost-light",onclick:()=>{j(D,!1)},children:(w,Se)=>{gr();var Ae=Or();$(()=>J(Ae,o().done)),u(w,Ae)},$$slots:{default:!0}}),u(Be,Ce)};B(ge,Be=>{e(M)&&e(M).kind!=="file"&&Be(Te)})}u(pe,A)};let ye=s(()=>e(M)?E(e(M)):o().attachments);xi(Ke,{get title(){return e(ye)},size:"wide",showCloseButton:!1,onCloseAutoFocus:pe=>{pe.preventDefault(),X?.isConnected?X.focus():e(S)?.querySelector("button:not(:disabled)")?.focus()},get open(){return e(D)},set open(pe){j(D,pe,!0)},footer:O,children:(pe,A)=>{var ge=Rt(),Te=xe(ge);{var Be=Ce=>{var P=Vu(),Q=z(P);{var re=w=>{var Se=Uu();$(Ae=>{te(Se,"src",e(M).url),te(Se,"alt",Ae)},[()=>E(e(M))]),u(w,Se)},se=s(()=>e(M).kind==="image"&&W(e(M))),ce=w=>{var Se=ju();$(Ae=>{te(Se,"src",e(M).url),te(Se,"aria-label",Ae)},[()=>E(e(M))]),u(w,Se)};B(Q,w=>{e(se)?w(re):e(M).kind==="clip"&&e(M).url&&w(ce,1)})}R(P),u(Ce,P)};B(Te,Ce=>{e(M)&&e(M).kind!=="file"&&Ce(Be)})}u(pe,ge)},$$slots:{footer:!0,default:!0}})}return u(r,_e),At(me)}aa(["keydown","contextmenu"]);var Qu=I("<!> ",1),Zu=I('<div class="flex flex-col gap-2 px-4 py-3 bg-muted/30 border border-border rounded-lg my-4"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="shrink-0 text-subtle"><!></div> <div class="font-medium text-sm"> </div></div> <div class="flex items-center gap-1"><!> <!></div></div> <div class="text-xs text-subtle"> </div> <pre class="text-xs bg-background/50 rounded p-2 overflow-x-auto max-h-40 overflow-y-auto font-mono"> </pre></div>');function Vi(r,t){if(new.target)return It({component:Vi,...r});Ct(t,!0);let n=g(t,"name",7),a=g(t,"description",7),o=g(t,"content",7),i=g(t,"onUseScript",7),d=we(!1);function c(){navigator.clipboard.writeText(o()),j(d,!0),setTimeout(()=>{j(d,!1)},2e3)}function h(){i()?.({name:n(),description:a(),content:o()})}var v={get name(){return n()},set name(C){n(C),m()},get description(){return a()},set description(C){a(C),m()},get content(){return o()},set content(C){o(C),m()},get onUseScript(){return i()},set onUseScript(C){i(C),m()},$set:St,$on:(C,ee)=>Tt(t,C,ee)},b=Zu(),k=z(b),N=z(k),Y=z(N),S=z(Y);jt(S,{get icon(){return no},size:"sm"}),R(Y);var D=T(Y,2),ie=oe(D,!0);R(N);var X=T(N,2),M=z(X);Xe(M,{variant:"ghost-light",size:"sm",onclick:c,class:"h-7 px-2",children:(C,ee)=>{var le=Qu(),me=xe(le);{let Re=s(()=>e(d)?bi:wi);jt(me,{get icon(){return e(Re)},class:"mr-1"})}var _e=T(me);$(Re=>J(_e,` ${Re??""}`),[()=>e(d)?f.chat_shared_copied_label():f.chat_shared_copy_label()]),u(C,le)},$$slots:{default:!0}});var W=T(M,2);{var E=C=>{Xe(C,{variant:"ghost-light",size:"sm",onclick:h,class:"h-7 px-2",children:(ee,le)=>{gr();var me=Or();$(_e=>J(me,_e),[()=>f.chat_setupScriptCard_useScript_label()]),u(ee,me)},$$slots:{default:!0}})};B(W,C=>{i()&&C(E)})}R(X),R(k);var ne=T(k,2),q=oe(ne,!0),F=T(ne,2),ae=oe(F,!0);return R(b),$(()=>{J(ie,n()),J(q,a()),J(ae,o())}),u(r,b),At(v)}const wr={toolStart:/(?:\x1B\[\d+m)?🔧\s+(?:Tool call:\s+)?(.+?)(?:\x1B\[0m)?$/,toolDetail:/(?:[└├]─\s+(.+)$|^\s{3,}(.+)$)/,toolResult:/(?:\x1B\[\d+m)?📋\s+Tool result:\s+(.+?)(?:\x1B\[0m)?$/,toolSuccess:/[✓✔✅]\s+(.+)$/,toolError:/[❌✗❎]\s+(.+)$/,sessionInfo:/[Ss]ession:\s*([a-f0-9-]+)/,resumedSession:/📂?\s*Resumed session/i,assistantMarker:/🤖/,systemMarker:/💻/,userMarker:/👤/,thinkingMarker:/🤔\s*Thinking/i,waitingMarker:/^⏳\s+Running/i,indexingProgress:/^Indexing:\s*\[.*\]\s*\d+%/,agentDigest:/<agent_digest>([\s\S]*?)<\/agent_digest>/,setupScript:/<setup_script\s+name="([^"]+)"\s+description="([^"]+)">([\s\S]*?)<\/setup_script>/};class Ju{constructor(){kn(this,"buffer","");kn(this,"currentToolName",null);kn(this,"currentToolId",null);kn(this,"lastToolId",null);kn(this,"currentToolParams",[]);kn(this,"currentToolResultContent",[]);kn(this,"inToolResult",!1);kn(this,"inCodeBlock",!1);kn(this,"codeBlockLanguage","");kn(this,"codeBlockContent","");kn(this,"characterBuffer","");kn(this,"inCharacterMode",!1);kn(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const o=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const c=this.currentToolResultContent.some(v=>v.startsWith("❌")||v.startsWith("Error:")),h=this.currentToolResultContent.map(v=>v.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
2
2
  `);o.push({type:"tool_result",content:h,metadata:{toolId:this.currentToolId,isError:c}}),this.lastToolId=this.currentToolId,this.currentToolId=null,this.inToolResult=!1,this.currentToolResultContent=[]}const i=t.indexOf("🤖"),d=t.substring(i+2);if(this.inCharacterMode=!0,this.characterBuffer="",d&&d.trim()&&d!==`
3
3
  `){const c=d.replace(/^\n/,"");c&&(this.characterBuffer=c)}return o}if(this.inCharacterMode){if(t.trim()===""&&this.characterBuffer==="")return[];if(t.includes(`
4
4
  `)&&this.characterBuffer.length>0){const o=t.substring(0,t.indexOf(`
@@ -1 +1 @@
1
- import{Iv as s,B7 as g,nR as I,CO as v,nx as L,mc as o,ny as b,hV as h,nu as w,nn as m,nG as f,h$ as C,rp as O,vf as y}from"./Bo8Vb7mw.js";import{g as T}from"./XnpstU-2.js";const A=s.createSelector(e=>e.tabState.isDragging),R=s.createSelector(e=>e.tabState.scrollPositions),j=s.createSelector(e=>e.tabState.currentTabId),B=s.createSelector((e,t)=>e.tabState.openTabs[t]===!0),E=s.createSelector(e=>e.tabState.mountedBrowserTabLeases),G=s.createSelector(e=>e.tabState.browserTabRecoveryRequests),M=s.createSelector(e=>e.tabState.browserTabNavigations),_=s.createSelector(e=>e.tabState.browserTabsAgentDrawing),D=s.createSelector(e=>e.connections?.hasReceivedList===!0&&e.tabState.hydratedBackendId===T(e)),H=s.createSelector(e=>e.tabState.workspaceStacks.flatMap(t=>t)),W=[],S=new WeakMap;function N(e){const t=e.tabGroups;if(!t)return W;let a=S.get(t);return a||(a=I(e),S.set(t,a)),a}const x=s.createSelector(e=>{if(e.userPreferences?.labsTabGroupsEnabled!==!0)return null;const{openTabGroupId:t,currentTabId:a}=e.tabState;return g(I(e.tabState),a,t)}),z=s.createSelector(e=>e.userPreferences?.labsTabGroupsEnabled===!0),F=s.createSelector(e=>e.userPreferences?.labsTabGroupsEnabled===!0?N(e.tabState):W),V=s.createSelector(e=>Object.keys(e.tabState.openTabs).filter(t=>e.tabState.openTabs[t]===!0)),q=s.createSelector(e=>{const{recentlyClosedTabIds:t,recentlyClosedTabAt:a,openTabs:r}=e.tabState;for(let n=t.length-1;n>=0;n--){const c=t[n];if(!r[c])return{workspaceId:c,closedAt:a[c]??0}}return null}),J=s.createSelector(e=>v(e.tabState)),p=[],K=s.createSelector(e=>{if(e.connections&&!e.connections.hasReceivedList)return p;const t=T(e);if(e.tabState.hydratedBackendId!==t||!e.workspace.hasLoaded||e.workspace.loadedBackendId!==t||e.workspace.workspaces.ids.length===0)return p;const a=e.tabState.workspaceStacks.flatMap(r=>r).filter(r=>e.tabState.optimisticTabs[r]||e.workspace.pendingCreations[r]||e.workspace.pendingDeletions[r]?!1:!L(e.workspace.workspaces,r));return a.length===0?p:a}),se=Object.freeze(Object.defineProperty({__proto__:null,selectActiveWorkspaceIds:V,selectAllScrollPositions:R,selectBrowserTabNavigations:M,selectBrowserTabRecoveryRequests:G,selectBrowserTabsAgentDrawing:_,selectCurrentWorkspaceTabId:j,selectIsDragging:A,selectIsWorkspaceTabOpen:B,selectLastClosedWorkspaceTab:q,selectMountedBrowserTabLeases:E,selectOpenWorkspaceTabGroupId:x,selectPersistedWorkspaceTabsState:J,selectWorkspaceTabGroups:F,selectWorkspaceTabGroupsEnabled:z,selectWorkspaceTabOrder:H,selectWorkspaceTabsHydrated:D,selectWorkspaceTabsToReconcile:K},Symbol.toStringTag,{value:"Module"}));function Q(e,t){return t?JSON.stringify(["git-root",t,e]):e}const d=[];function U(e){return!!e&&e!=="new"&&!e.startsWith("optimistic-")&&e!=="undefined"}const re=s.createSelector((e,t)=>e.panelLayout.byWorkspaceId[t]??o),ne=s.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).pendingPanelReveal??null),k={count:0,isOpen:!1,isActive:!1,isOpenElsewhere:!1};function oe(e,t,a,r){if(r.workspaceId&&r.workspaceId!==a)return k;const n=r,c=e.filter(l=>(!l.workspaceId||l.workspaceId===a)&&y(l,n));if(c.length===0)return k;const u=!!t&&(!t.workspaceId||t.workspaceId===a)&&y(t,n);return{count:c.length,isOpen:!0,isActive:u,isOpenElsewhere:!u}}const ce=s.createSelector(e=>e.panelLayout.byWorkspaceId),le=s.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).root),ie=s.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).expandedPanelId),ue=s.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).panels),pe=s.createSelector((e,t,a)=>(e.panelLayout.byWorkspaceId[t]??o).panels[a]),de=s.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).focusedPanelId),be=s.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return a.focusedPanelId?a.panels[a.focusedPanelId]:void 0});s.createSelector(e=>Object.fromEntries(Object.entries(e.panelLayout.byWorkspaceId).map(([t,a])=>{const r=a.focusedPanelId,n=r?a.panels[r]:void 0;return[t,{panelId:n?r:null,activeTabId:n?.activeTabId??null}]})));const fe=s.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).restoreStatus),ye=s.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;if(!a.focusedPanelId)return;const r=a.panels[a.focusedPanelId];if(!(!r||!r.activeTabId))return r.tabs.find(n=>n.id===r.activeTabId)}),Se=s.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;for(let r=a.focusHistory.length-1;r>=0;r-=1){const n=a.focusHistory[r],c=a.panels[n.panelId]?.tabs.find(u=>u.id===n.tabId);if(c?.type==="agent")return c}}),ke=s.createSelector((e,t,a)=>{const n=(e.panelLayout.byWorkspaceId[t]??o).panels[a];if(!(!n||!n.activeTabId))return n.tabs.find(c=>c.id===n.activeTabId)}),Ie=s.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return Object.values(a.panels).flatMap(r=>r.tabs)}),Te=s.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return b(a.hiddenTabs??o.hiddenTabs)});function $(e){const t=[];for(const a of Object.values(e.panels))for(const r of a.tabs)r.type==="browser"&&t.push({tab:r,visibility:"visible",displayed:a.activeTabId===r.id});for(const a of b(e.hiddenTabs??o.hiddenTabs))a.type==="browser"&&t.push({tab:a,visibility:"hidden",displayed:!1});return t}const X=s.createSelector((e,t)=>{const a=e?.panelLayout?.byWorkspaceId[t]??o;return $(a).length>0}),We=s.createSelector(e=>Object.keys(e.panelLayout.byWorkspaceId).filter(t=>X.select(e,t)));s.createSelector(e=>Object.fromEntries(Object.entries(e.panelLayout.byWorkspaceId).map(([t,a])=>{const r=Object.values(a.panels).some(n=>n.tabs.length>0);return[t,r?h(a.root):0]})));const Pe=s.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return w(a.root,a.panels)});s.createSelector(e=>Object.fromEntries(Object.entries(e.panelLayout.byWorkspaceId).map(([t,a])=>[t,a.canvasWidth??m(a.root,a.panels,"content")])));const ge=s.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).canvasWidth),ve=s.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).canvasWidthSource),Le=s.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).columnCount);s.createSelector(e=>Object.fromEntries(Object.entries(e.panelLayout.byWorkspaceId).map(([t,a])=>[t,a.restoreStatus])));const he=s.createSelector((e,t,a=!1)=>{if(!U(t))return d;const r=e.panelLayout.byWorkspaceId[t],n=e.files.byWorkspaceId[t];if(!n)return d;if(!r)return a?[...n.files.ids].sort((l,i)=>l.localeCompare(i)):d;const c=new Set;for(const l of Object.values(r.panels))for(const i of l.tabs)i.type==="file"&&typeof i.filePath=="string"&&i.filePath.length>0&&c.add(Q(i.filePath,typeof i.data?.gitRootId=="string"?i.data.gitRootId:void 0));const u=[];for(const l of n.files.ids)c.has(l)||u.push(l);return u.length===0?d:(u.sort((l,i)=>l.localeCompare(i)),u)}),we=s.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return f(a.root)});function P(e){return f(e.root).flatMap(t=>{const a=e.panels[t];return a?[{panelId:t,panes:a.tabs,activePaneId:a.activeTabId,attentionPaneIds:a.attentionTabIds??[]}]:[]})}const me=s.createSelector((e,t)=>P(e.panelLayout.byWorkspaceId[t]??o));s.createSelector((e,t,a)=>P(e.panelLayout.byWorkspaceId[t]??o).find(r=>r.panelId===a));function Y(e){return f(e.root).flatMap(t=>{const a=e.panels[t];if(!a)return[];const n=a.tabs.find(c=>c.id===a.activeTabId)??a.tabs[0];return[{id:t,title:n?.title??"",type:n?.type}]})}s.createSelector((e,t)=>Y(e.panelLayout.byWorkspaceId[t]??o));const Z=s.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).recentlyClosed),ee=s.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return b(a.recentlyClosedColumns??C("historyId")).find(r=>O(a,r))??null}),Ce=s.createSelector((e,t)=>{const a=Z.select(e,t)[0]??null,r=ee.select(e,t);return r&&(!a||r.closedAt>=a.closedAt)?{kind:"column",closedAt:r.closedAt}:a?{kind:"tab",closedAt:a.closedAt}:null});export{ge as A,ve as B,Le as C,Pe as D,me as E,we as F,le as G,re as H,ce as I,ue as J,ne as K,J as L,Z as M,fe as N,F as O,z as P,H as Q,D as R,K as S,se as T,ke as a,V as b,$ as c,R as d,Ie as e,Q as f,oe as g,M as h,G as i,_ as j,We as k,j as l,ie as m,he as n,be as o,de as p,Te as q,A as r,ye as s,B as t,q as u,Ce as v,Se as w,E as x,x as y,pe as z};
1
+ import{Iv as s,B7 as g,nR as I,CO as v,nx as L,mc as o,ny as b,hV as h,nu as w,nn as m,nG as f,h$ as C,rp as O,vf as y}from"./BmagX6n5.js";import{g as T}from"./D4bOZmAv.js";const A=s.createSelector(e=>e.tabState.isDragging),R=s.createSelector(e=>e.tabState.scrollPositions),j=s.createSelector(e=>e.tabState.currentTabId),B=s.createSelector((e,t)=>e.tabState.openTabs[t]===!0),E=s.createSelector(e=>e.tabState.mountedBrowserTabLeases),G=s.createSelector(e=>e.tabState.browserTabRecoveryRequests),M=s.createSelector(e=>e.tabState.browserTabNavigations),_=s.createSelector(e=>e.tabState.browserTabsAgentDrawing),D=s.createSelector(e=>e.connections?.hasReceivedList===!0&&e.tabState.hydratedBackendId===T(e)),H=s.createSelector(e=>e.tabState.workspaceStacks.flatMap(t=>t)),W=[],S=new WeakMap;function N(e){const t=e.tabGroups;if(!t)return W;let a=S.get(t);return a||(a=I(e),S.set(t,a)),a}const x=s.createSelector(e=>{if(e.userPreferences?.labsTabGroupsEnabled!==!0)return null;const{openTabGroupId:t,currentTabId:a}=e.tabState;return g(I(e.tabState),a,t)}),z=s.createSelector(e=>e.userPreferences?.labsTabGroupsEnabled===!0),F=s.createSelector(e=>e.userPreferences?.labsTabGroupsEnabled===!0?N(e.tabState):W),V=s.createSelector(e=>Object.keys(e.tabState.openTabs).filter(t=>e.tabState.openTabs[t]===!0)),q=s.createSelector(e=>{const{recentlyClosedTabIds:t,recentlyClosedTabAt:a,openTabs:r}=e.tabState;for(let n=t.length-1;n>=0;n--){const c=t[n];if(!r[c])return{workspaceId:c,closedAt:a[c]??0}}return null}),J=s.createSelector(e=>v(e.tabState)),p=[],K=s.createSelector(e=>{if(e.connections&&!e.connections.hasReceivedList)return p;const t=T(e);if(e.tabState.hydratedBackendId!==t||!e.workspace.hasLoaded||e.workspace.loadedBackendId!==t||e.workspace.workspaces.ids.length===0)return p;const a=e.tabState.workspaceStacks.flatMap(r=>r).filter(r=>e.tabState.optimisticTabs[r]||e.workspace.pendingCreations[r]||e.workspace.pendingDeletions[r]?!1:!L(e.workspace.workspaces,r));return a.length===0?p:a}),se=Object.freeze(Object.defineProperty({__proto__:null,selectActiveWorkspaceIds:V,selectAllScrollPositions:R,selectBrowserTabNavigations:M,selectBrowserTabRecoveryRequests:G,selectBrowserTabsAgentDrawing:_,selectCurrentWorkspaceTabId:j,selectIsDragging:A,selectIsWorkspaceTabOpen:B,selectLastClosedWorkspaceTab:q,selectMountedBrowserTabLeases:E,selectOpenWorkspaceTabGroupId:x,selectPersistedWorkspaceTabsState:J,selectWorkspaceTabGroups:F,selectWorkspaceTabGroupsEnabled:z,selectWorkspaceTabOrder:H,selectWorkspaceTabsHydrated:D,selectWorkspaceTabsToReconcile:K},Symbol.toStringTag,{value:"Module"}));function Q(e,t){return t?JSON.stringify(["git-root",t,e]):e}const d=[];function U(e){return!!e&&e!=="new"&&!e.startsWith("optimistic-")&&e!=="undefined"}const re=s.createSelector((e,t)=>e.panelLayout.byWorkspaceId[t]??o),ne=s.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).pendingPanelReveal??null),k={count:0,isOpen:!1,isActive:!1,isOpenElsewhere:!1};function oe(e,t,a,r){if(r.workspaceId&&r.workspaceId!==a)return k;const n=r,c=e.filter(l=>(!l.workspaceId||l.workspaceId===a)&&y(l,n));if(c.length===0)return k;const u=!!t&&(!t.workspaceId||t.workspaceId===a)&&y(t,n);return{count:c.length,isOpen:!0,isActive:u,isOpenElsewhere:!u}}const ce=s.createSelector(e=>e.panelLayout.byWorkspaceId),le=s.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).root),ie=s.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).expandedPanelId),ue=s.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).panels),pe=s.createSelector((e,t,a)=>(e.panelLayout.byWorkspaceId[t]??o).panels[a]),de=s.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).focusedPanelId),be=s.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return a.focusedPanelId?a.panels[a.focusedPanelId]:void 0});s.createSelector(e=>Object.fromEntries(Object.entries(e.panelLayout.byWorkspaceId).map(([t,a])=>{const r=a.focusedPanelId,n=r?a.panels[r]:void 0;return[t,{panelId:n?r:null,activeTabId:n?.activeTabId??null}]})));const fe=s.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).restoreStatus),ye=s.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;if(!a.focusedPanelId)return;const r=a.panels[a.focusedPanelId];if(!(!r||!r.activeTabId))return r.tabs.find(n=>n.id===r.activeTabId)}),Se=s.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;for(let r=a.focusHistory.length-1;r>=0;r-=1){const n=a.focusHistory[r],c=a.panels[n.panelId]?.tabs.find(u=>u.id===n.tabId);if(c?.type==="agent")return c}}),ke=s.createSelector((e,t,a)=>{const n=(e.panelLayout.byWorkspaceId[t]??o).panels[a];if(!(!n||!n.activeTabId))return n.tabs.find(c=>c.id===n.activeTabId)}),Ie=s.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return Object.values(a.panels).flatMap(r=>r.tabs)}),Te=s.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return b(a.hiddenTabs??o.hiddenTabs)});function $(e){const t=[];for(const a of Object.values(e.panels))for(const r of a.tabs)r.type==="browser"&&t.push({tab:r,visibility:"visible",displayed:a.activeTabId===r.id});for(const a of b(e.hiddenTabs??o.hiddenTabs))a.type==="browser"&&t.push({tab:a,visibility:"hidden",displayed:!1});return t}const X=s.createSelector((e,t)=>{const a=e?.panelLayout?.byWorkspaceId[t]??o;return $(a).length>0}),We=s.createSelector(e=>Object.keys(e.panelLayout.byWorkspaceId).filter(t=>X.select(e,t)));s.createSelector(e=>Object.fromEntries(Object.entries(e.panelLayout.byWorkspaceId).map(([t,a])=>{const r=Object.values(a.panels).some(n=>n.tabs.length>0);return[t,r?h(a.root):0]})));const Pe=s.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return w(a.root,a.panels)});s.createSelector(e=>Object.fromEntries(Object.entries(e.panelLayout.byWorkspaceId).map(([t,a])=>[t,a.canvasWidth??m(a.root,a.panels,"content")])));const ge=s.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).canvasWidth),ve=s.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).canvasWidthSource),Le=s.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).columnCount);s.createSelector(e=>Object.fromEntries(Object.entries(e.panelLayout.byWorkspaceId).map(([t,a])=>[t,a.restoreStatus])));const he=s.createSelector((e,t,a=!1)=>{if(!U(t))return d;const r=e.panelLayout.byWorkspaceId[t],n=e.files.byWorkspaceId[t];if(!n)return d;if(!r)return a?[...n.files.ids].sort((l,i)=>l.localeCompare(i)):d;const c=new Set;for(const l of Object.values(r.panels))for(const i of l.tabs)i.type==="file"&&typeof i.filePath=="string"&&i.filePath.length>0&&c.add(Q(i.filePath,typeof i.data?.gitRootId=="string"?i.data.gitRootId:void 0));const u=[];for(const l of n.files.ids)c.has(l)||u.push(l);return u.length===0?d:(u.sort((l,i)=>l.localeCompare(i)),u)}),we=s.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return f(a.root)});function P(e){return f(e.root).flatMap(t=>{const a=e.panels[t];return a?[{panelId:t,panes:a.tabs,activePaneId:a.activeTabId,attentionPaneIds:a.attentionTabIds??[]}]:[]})}const me=s.createSelector((e,t)=>P(e.panelLayout.byWorkspaceId[t]??o));s.createSelector((e,t,a)=>P(e.panelLayout.byWorkspaceId[t]??o).find(r=>r.panelId===a));function Y(e){return f(e.root).flatMap(t=>{const a=e.panels[t];if(!a)return[];const n=a.tabs.find(c=>c.id===a.activeTabId)??a.tabs[0];return[{id:t,title:n?.title??"",type:n?.type}]})}s.createSelector((e,t)=>Y(e.panelLayout.byWorkspaceId[t]??o));const Z=s.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).recentlyClosed),ee=s.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return b(a.recentlyClosedColumns??C("historyId")).find(r=>O(a,r))??null}),Ce=s.createSelector((e,t)=>{const a=Z.select(e,t)[0]??null,r=ee.select(e,t);return r&&(!a||r.closedAt>=a.closedAt)?{kind:"column",closedAt:r.closedAt}:a?{kind:"tab",closedAt:a.closedAt}:null});export{ge as A,ve as B,Le as C,Pe as D,me as E,we as F,le as G,re as H,ce as I,ue as J,ne as K,J as L,Z as M,fe as N,F as O,z as P,H as Q,D as R,K as S,se as T,ke as a,V as b,$ as c,R as d,Ie as e,Q as f,oe as g,M as h,G as i,_ as j,We as k,j as l,ie as m,he as n,be as o,de as p,Te as q,A as r,ye as s,B as t,q as u,Ce as v,Se as w,E as x,x as y,pe as z};
@@ -1,2 +1,2 @@
1
- import{t as ht,bq as _,bo as g,by as bt,b as xt}from"./BQy38IRs.js";import{bs as yt,a7 as kt,ay as Q,W as p,bn as At,aA as h,a5 as F,bS as u,bl as S,bA as W,aD as e,b_ as D,bO as x,aB as k,bH as et,c9 as y,bV as at,be as wt,b$ as It}from"./DYhIMPy1.js";import{i as f}from"./CWmwYDNG.js";import{I as Bt,g as Ct}from"./CcJbyRBU.js";import{I as Pt,D as zt}from"./Zbow58Yt.js";import{f as M}from"./DH8xXeC1.js";import"./DJq2OFOa.js";import"./CwxaNadx.js";import"./1EEYpvtO.js";import{F as rt,c9 as Rt,cl as St,aq as Wt}from"./CvWGOqV6.js";import{e as Dt}from"./ShK1ywMo.js";import{D as Lt}from"./CEixATbX.js";import{Iv as $t,uk as qt}from"./Bo8Vb7mw.js";import{g as Ht}from"./D9ypzy3_.js";var Nt=k('<span class="type-caption shrink-0 font-medium text-success"> </span>'),Ft=k('<!> <span class="type-body flex-1 truncate text-left font-medium text-foreground"> </span> <span class="type-caption shrink-0 tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span> <!>',1),Mt=k("<!> ",1),Ot=k('<div class="mb-2 flex gap-1"></div>'),Vt=k('<div class="border-t border-border p-2"><!> <!></div>'),jt=k('<div class="ws-block-widget type-body my-2 overflow-hidden rounded-md border border-border bg-card text-foreground shadow-(--elevation-raised)"><div class="flex min-h-9 items-center gap-2 px-3 py-1.5"><!> <!> <!></div> <!></div>'),Et=k('<div class="ws-block-widget type-caption my-2 text-muted-foreground"> </div>');function Tt(U,n){if(new.target)return ht({component:Tt,...U});yt(n,!0);let A=_(n,"patches",7),O=_(n,"label",23,()=>g.ui_patchBlock_label()),V=_(n,"lastApply",7),w=_(n,"linkedAgentId",7),L=_(n,"workspaceId",7),P=_(n,"applying",7,!1),$=_(n,"onApply",7),q=_(n,"onRevert",7),j=at(!1),E=at(0),z=y(()=>A()?.[e(E)]),T=y(()=>V()?.status==="success");function st(t){const o=t.split(`
1
+ import{t as ht,bq as _,bo as g,by as bt,b as xt}from"./CT36W95j.js";import{bs as yt,a7 as kt,ay as Q,W as p,bn as At,aA as h,a5 as F,bS as u,bl as S,bA as W,aD as e,b_ as D,bO as x,aB as k,bH as et,c9 as y,bV as at,be as wt,b$ as It}from"./DYhIMPy1.js";import{i as f}from"./Cn5kmzaj.js";import{I as Bt,g as Ct}from"./Bw5h0b4B.js";import{I as Pt,D as zt}from"./D-IkFfCX.js";import{f as M}from"./D9xzAHI_.js";import"./ClQp3PSY.js";import"./TRV263rQ.js";import"./DHClt9az.js";import{F as rt,c9 as Rt,cl as St,aq as Wt}from"./D_rHnmLE.js";import{e as Dt}from"./BRadcq2w.js";import{D as Lt}from"./Bpb2sW6o.js";import{Iv as $t,uk as qt}from"./BmagX6n5.js";import{g as Ht}from"./CXrz3Q9k.js";var Nt=k('<span class="type-caption shrink-0 font-medium text-success"> </span>'),Ft=k('<!> <span class="type-body flex-1 truncate text-left font-medium text-foreground"> </span> <span class="type-caption shrink-0 tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span> <!>',1),Mt=k("<!> ",1),Ot=k('<div class="mb-2 flex gap-1"></div>'),Vt=k('<div class="border-t border-border p-2"><!> <!></div>'),jt=k('<div class="ws-block-widget type-body my-2 overflow-hidden rounded-md border border-border bg-card text-foreground shadow-(--elevation-raised)"><div class="flex min-h-9 items-center gap-2 px-3 py-1.5"><!> <!> <!></div> <!></div>'),Et=k('<div class="ws-block-widget type-caption my-2 text-muted-foreground"> </div>');function Tt(U,n){if(new.target)return ht({component:Tt,...U});yt(n,!0);let A=_(n,"patches",7),O=_(n,"label",23,()=>g.ui_patchBlock_label()),V=_(n,"lastApply",7),w=_(n,"linkedAgentId",7),L=_(n,"workspaceId",7),P=_(n,"applying",7,!1),$=_(n,"onApply",7),q=_(n,"onRevert",7),j=at(!1),E=at(0),z=y(()=>A()?.[e(E)]),T=y(()=>V()?.status==="success");function st(t){const o=t.split(`
2
2
  `);let v=0,b=0;for(const I of o)I.startsWith("+")&&!I.startsWith("+++")?v++:I.startsWith("-")&&!I.startsWith("---")&&b++;return{addCount:v,removeCount:b}}let X=y(()=>e(z)?st(e(z).diff):{addCount:0,removeCount:0}),G=y(()=>P()?{label:g.ui_patchBlock_applying_label(),icon:null}:e(T)?{label:g.ui_patchBlock_revert_label(),icon:St}:{label:g.ui_patchBlock_apply_label(),icon:Wt}),nt=y(()=>!!($()||q()));function ot(){et(j,!e(j))}function lt(){e(T)?q()?.():$()?.()}var it={get patches(){return A()},set patches(t){A(t),h()},get label(){return O()},set label(t=g.ui_patchBlock_label()){O(t),h()},get lastApply(){return V()},set lastApply(t){V(t),h()},get linkedAgentId(){return w()},set linkedAgentId(t){w(t),h()},get workspaceId(){return L()},set workspaceId(t){L(t),h()},get applying(){return P()},set applying(t=!1){P(t),h()},get onApply(){return $()},set onApply(t){$(t),h()},get onRevert(){return q()},set onRevert(t){q(t),h()},$set:bt,$on:(t,o)=>xt(n,t,o)},Y=kt(),ct=Q(Y);{var dt=t=>{var o=jt(),v=F(o),b=F(v);{var I=a=>{{let c=y(()=>g.ui_patchBlock_viewAgent_tooltip());M(a,{variant:"plain",size:"icon-compact",iconOnly:!0,class:"size-4! shrink-0 rounded-sm! transition-opacity hover:opacity-80",onclick:l=>{L()&&$t.dispatch(qt(L(),{agentId:w(),...Ht(l)}))},get title(){return e(c)},children:(l,m)=>{Dt(l,{get agentId(){return w()},variant:"compact"})},$$slots:{default:!0}})}};f(b,a=>{w()&&a(I)})}var Z=u(b,2);M(Z,{variant:"plain",size:"compact",class:"h-auto! min-w-0 flex-1 shrink items-center justify-start gap-2 px-0! py-0! text-muted-foreground transition-colors hover:text-foreground",truncateLabel:!1,labelClass:"flex min-w-0 flex-1 items-center gap-2",onclick:ot,children:(a,c)=>{var l=Ft(),m=Q(l);{var B=i=>{rt(i,{get icon(){return Rt},size:10,class:"text-muted-foreground"})};f(m,i=>{w()||i(B)})}var C=u(m,2),s=S(C,!0),d=u(C,2),r=F(d),R=S(r),H=u(r,2),J=S(H);W(d);var K=u(d,2);{var tt=i=>{var N=Nt(),_t=S(N,!0);D(gt=>x(_t,gt),[()=>g.ui_patchBlock_applied_label()]),p(i,N)};f(K,i=>{e(T)&&i(tt)})}D(()=>{x(s,O()),x(R,`+${e(X).addCount??""}`),x(J,`-${e(X).removeCount??""}`)}),p(a,l)},$$slots:{default:!0}});var ut=u(Z,2);{var ft=a=>{M(a,{variant:"ghost-light",size:"sm",class:"type-caption shrink-0",onclick:lt,get disabled(){return P()},children:(c,l)=>{var m=Mt(),B=Q(m);{var C=r=>{Bt(r,{size:12})},s=r=>{rt(r,{get icon(){return e(G).icon},size:"xs"})};f(B,r=>{P()?r(C):e(G).icon&&r(s,1)})}var d=u(B);D(()=>x(d,` ${e(G).label??""}`)),p(c,m)},$$slots:{default:!0}})};f(ut,a=>{e(nt)&&a(ft)})}W(v);var vt=u(v,2);{var mt=a=>{var c=Vt(),l=F(c);{var m=s=>{var d=Ot();Ct(d,23,A,(r,R)=>`patch-${R}-${r.filePath}`,(r,R,H)=>{{let J=y(()=>e(H)===e(E)?"default":"ghost-light");M(r,{get variant(){return e(J)},size:"sm",class:"type-caption",onclick:()=>et(E,e(H),!0),children:(K,tt)=>{wt();var i=It();D(N=>x(i,N),[()=>e(R).filePath.split("/").pop()]),p(K,i)},$$slots:{default:!0}})}}),W(d),p(s,d)};f(l,s=>{A().length>1&&s(m)})}var B=u(l,2);{var C=s=>{Lt(s,{get patch(){return e(z).diff},get fileName(){return e(z).filePath},showHeader:!0,showStats:!0,showLineNumbers:!0,maxHeight:"300px",collapsible:!1,class:"overflow-hidden rounded-sm border border-border"})};f(B,s=>{e(z)&&s(C)})}W(c),Pt(3,c,()=>zt,()=>({tier:"moderate"})),p(a,c)};f(vt,a=>{e(j)&&a(mt)})}W(o),p(t,o)},pt=t=>{var o=Et(),v=S(o,!0);D(b=>x(v,b),[()=>g.ui_patchBlock_invalid_error()]),p(t,o)};f(ct,t=>{A()?.length?t(dt):t(pt,-1)})}return p(U,Y),At(it)}export{Tt as P};
@@ -1,4 +1,4 @@
1
- import{t as He,bq as v,bo as d,by as je,b as Ze,bt as or,bu as _t,bs as Ur}from"./BQy38IRs.js";import{bs as Xe,ay as X,be as ut,b$ as nt,b_ as q,bO as Y,W as y,bS as m,aD as e,a7 as ht,bl as xe,bn as Ye,c9 as c,aA as p,aB as re,ca as Le,c0 as pt,bH as s,a5 as oe,bA as ne,bV as V,br as Ct,bk as Ar,bj as Br,bf as Lo,bo as Nr,c5 as kt,aw as Yt,bz as Fo,cd as qt}from"./DYhIMPy1.js";import{i as be}from"./CWmwYDNG.js";import{c as Q}from"./RFiIZzYq.js";import{g as yr,i as Ro,I as So,e as It}from"./CcJbyRBU.js";import{f as Lt,s as Me,g as To}from"./CwxaNadx.js";import{b as wt}from"./BaIAhI85.js";import{d as xr}from"./BgQrVLPV.js";import{k as $o}from"./B30jTa2N.js";import{c as nr}from"./ChTqQfQN.js";import{a as Uo}from"./CC7to1B5.js";import{f as Be}from"./DH8xXeC1.js";import{F as Ao}from"./DJq2OFOa.js";import{k as st}from"./COcWmgqo.js";import{s as Bo}from"./1EEYpvtO.js";import{ck as Or,F as _e,a4 as No,aV as Oo,an as Mo,cF as Do,aI as Ko,aW as Jt,Y as ar,_ as ir,aZ as Mr,as as Vo,ay as Dr,cO as Wo,cd as Kr,bO as Vr,ci as zo}from"./CvWGOqV6.js";import"./DGD-U5Bo.js";import{Iv as Pe,fM as Go,bs as qo,zf as Ho,yC as jo,Ku as Cr,dJ as Zo,bM as Xo,Kt as Yo,uk as Jo,Kr as kr,gs as Qo,tH as en,Ks as tn,K7 as Ir,Kq as Er}from"./Bo8Vb7mw.js";import"./DEit52eN.js";import{R as rn,k as Ht,l as dt,j as on,i as qe,p as Wr,h as zr,K as nn,m as an,o as sn,n as ln,M as Gr,d as dn}from"./BFmjOdeB.js";import{a as qr,B as Et}from"./BvFAWM27.js";import{cu as un}from"./CXAeontZ.js";import{ac as cn,D as fn}from"./C8aWNHHq.js";import{w as gn,K as vn}from"./DHO9Wxu6.js";import{I as $t}from"./DDLB_hVd.js";import{d as pn}from"./0Vx84DUP.js";import{G as wn,I as bn}from"./ggQuSgBM.js";import{a3 as mn,ae as _n}from"./MSmU5tc0.js";import{i as Qt}from"./DJ8_lZZl.js";import{i as hn,a as yn}from"./BriVbLDU.js";import{B as xn,m as Cn,n as kn}from"./ShK1ywMo.js";import"./CHK9comt.js";import{t as Ke}from"./Zbow58Yt.js";import{M as Hr}from"./CEw_Ojs2.js";import"./Co17KOMP.js";import"./CIUOjVit.js";import{b as In}from"./fZqCaChB.js";import"./BLWZRT3p.js";import{o as Pr,s as lt,n as St}from"./CIyUrgF0.js";import{g as En}from"./DfN8_dcw.js";import{f as Pn}from"./8-qXyFVf.js";import{ay as Ln,$ as Fn}from"./VlCONpJu.js";import{aO as Rn}from"./DPuyFsTN.js";function Sn(o,r){return o.loadURL(r)}function Tn(o){return{previousUrlProp:o||null}}function Lr(o,r){o.previousUrlProp=r}function $n(o,r,i){const b=i||r;return o.previousUrlProp===b?null:(o.previousUrlProp=b,b)}function Un(o,r,i){return r?o.previousUrlProp===null?(o.previousUrlProp=r,{shouldLoad:!1,targetUrl:null}):r===o.previousUrlProp?{shouldLoad:!1,targetUrl:null}:i.webviewReady?(o.previousUrlProp=r,i.isValidBrowserUrl(r)?{shouldLoad:!0,targetUrl:r}:{shouldLoad:!1,targetUrl:null}):{shouldLoad:!1,targetUrl:null}:{shouldLoad:!1,targetUrl:null}}const jr=nr("TabBoundsReporter"),An=150;function jt(o,r,i){!(r>0)||!(i>0)||window.electronAPI?.invoke("browser:report-tab-bounds",{tabId:o,width:r,height:i}).catch(b=>{jr.debug("Failed to report tab bounds",{tabId:o,error:b})})}function Fr(o){window.electronAPI?.invoke("browser:report-tab-bounds",{tabId:o}).catch(r=>{jr.debug("Failed to clear tab bounds",{tabId:o,error:r})})}function Bn(o,r){let i=r,b;const x=typeof ResizeObserver>"u"?void 0:new ResizeObserver(C=>{if(!i)return;const h=C[C.length-1]?.contentRect;if(!h)return;const N=i;clearTimeout(b),b=setTimeout(()=>{jt(N,h.width,h.height)},An)});if(x?.observe(o),i){const C=o.getBoundingClientRect();jt(i,C.width,C.height)}return{update(C){if(C!==i&&(clearTimeout(b),i&&Fr(i),i=C,i)){const h=o.getBoundingClientRect();jt(i,h.width,h.height)}},destroy(){clearTimeout(b),x?.disconnect(),i&&Fr(i)}}}function Zr(o){let r=o.trim();if(!r)return null;/^[a-z][a-z0-9+.-]*:\/\//i.test(r)||(r=(r.includes("localhost")||r.includes("127.0.0.1")||r.includes("0.0.0.0")?"http://":"https://")+r);try{return new URL(r),r}catch{return null}}function ot(o,r=typeof window<"u"?window.location.origin:""){return o==="about:blank"||Xr(o,r)}function Xr(o,r=typeof window<"u"?window.location.origin:""){if(!o)return!1;try{const i=new URL(o);return qr.NAVIGATION_ALLOWED.includes(i.protocol)&&i.origin!==r}catch{return!1}}const er="__INTENT_PANEL_BRACKET__:",Nn=`
1
+ import{t as He,bq as v,bo as d,by as je,b as Ze,bt as or,bu as _t,bs as Ur}from"./CT36W95j.js";import{bs as Xe,ay as X,be as ut,b$ as nt,b_ as q,bO as Y,W as y,bS as m,aD as e,a7 as ht,bl as xe,bn as Ye,c9 as c,aA as p,aB as re,ca as Le,c0 as pt,bH as s,a5 as oe,bA as ne,bV as V,br as Ct,bk as Ar,bj as Br,bf as Lo,bo as Nr,c5 as kt,aw as Yt,bz as Fo,cd as qt}from"./DYhIMPy1.js";import{i as be}from"./Cn5kmzaj.js";import{c as Q}from"./CgQUkF-P.js";import{g as yr,i as Ro,I as So,e as It}from"./Bw5h0b4B.js";import{f as Lt,s as Me,g as To}from"./TRV263rQ.js";import{b as wt}from"./BaIAhI85.js";import{d as xr}from"./DCZ5UGy-.js";import{k as $o}from"./xKssrPyL.js";import{c as nr}from"./ChTqQfQN.js";import{a as Uo}from"./CC7to1B5.js";import{f as Be}from"./D9xzAHI_.js";import{F as Ao}from"./ClQp3PSY.js";import{k as st}from"./B7lF313M.js";import{s as Bo}from"./DHClt9az.js";import{ck as Or,F as _e,a4 as No,aV as Oo,an as Mo,cF as Do,aI as Ko,aW as Jt,Y as ar,_ as ir,aZ as Mr,as as Vo,ay as Dr,cO as Wo,cd as Kr,bO as Vr,ci as zo}from"./D_rHnmLE.js";import"./CJyP11U5.js";import{Iv as Pe,fM as Go,bs as qo,zf as Ho,yC as jo,Ku as Cr,dJ as Zo,bM as Xo,Kt as Yo,uk as Jo,Kr as kr,gs as Qo,tH as en,Ks as tn,K7 as Ir,Kq as Er}from"./BmagX6n5.js";import"./CUyvQglq.js";import{R as rn,k as Ht,l as dt,j as on,i as qe,p as Wr,h as zr,K as nn,m as an,o as sn,n as ln,M as Gr,d as dn}from"./Du0V4O1Q.js";import{a as qr,B as Et}from"./BvFAWM27.js";import{cu as un}from"./DThHr-M9.js";import{ac as cn,D as fn}from"./BzXXtRZY.js";import{w as gn,K as vn}from"./C20jcbNk.js";import{I as $t}from"./BdyAQuf8.js";import{d as pn}from"./-QpofkRx.js";import{G as wn,I as bn}from"./ggQuSgBM.js";import{a3 as mn,ae as _n}from"./DPevKyzH.js";import{i as Qt}from"./DJ8_lZZl.js";import{i as hn,a as yn}from"./K6Z_l6pq.js";import{B as xn,m as Cn,n as kn}from"./BRadcq2w.js";import"./BwYW1dkK.js";import{t as Ke}from"./D-IkFfCX.js";import{M as Hr}from"./BaV_HcgG.js";import"./D9BiEPlJ.js";import"./_639dNbm.js";import{b as In}from"./CHJZj-fd.js";import"./DBigkuTi.js";import{o as Pr,s as lt,n as St}from"./CIyUrgF0.js";import{g as En}from"./DfN8_dcw.js";import{f as Pn}from"./Bsismerr.js";import{ay as Ln,$ as Fn}from"./CE90SUHM.js";import{aO as Rn}from"./DpNO08YA.js";function Sn(o,r){return o.loadURL(r)}function Tn(o){return{previousUrlProp:o||null}}function Lr(o,r){o.previousUrlProp=r}function $n(o,r,i){const b=i||r;return o.previousUrlProp===b?null:(o.previousUrlProp=b,b)}function Un(o,r,i){return r?o.previousUrlProp===null?(o.previousUrlProp=r,{shouldLoad:!1,targetUrl:null}):r===o.previousUrlProp?{shouldLoad:!1,targetUrl:null}:i.webviewReady?(o.previousUrlProp=r,i.isValidBrowserUrl(r)?{shouldLoad:!0,targetUrl:r}:{shouldLoad:!1,targetUrl:null}):{shouldLoad:!1,targetUrl:null}:{shouldLoad:!1,targetUrl:null}}const jr=nr("TabBoundsReporter"),An=150;function jt(o,r,i){!(r>0)||!(i>0)||window.electronAPI?.invoke("browser:report-tab-bounds",{tabId:o,width:r,height:i}).catch(b=>{jr.debug("Failed to report tab bounds",{tabId:o,error:b})})}function Fr(o){window.electronAPI?.invoke("browser:report-tab-bounds",{tabId:o}).catch(r=>{jr.debug("Failed to clear tab bounds",{tabId:o,error:r})})}function Bn(o,r){let i=r,b;const x=typeof ResizeObserver>"u"?void 0:new ResizeObserver(C=>{if(!i)return;const h=C[C.length-1]?.contentRect;if(!h)return;const N=i;clearTimeout(b),b=setTimeout(()=>{jt(N,h.width,h.height)},An)});if(x?.observe(o),i){const C=o.getBoundingClientRect();jt(i,C.width,C.height)}return{update(C){if(C!==i&&(clearTimeout(b),i&&Fr(i),i=C,i)){const h=o.getBoundingClientRect();jt(i,h.width,h.height)}},destroy(){clearTimeout(b),x?.disconnect(),i&&Fr(i)}}}function Zr(o){let r=o.trim();if(!r)return null;/^[a-z][a-z0-9+.-]*:\/\//i.test(r)||(r=(r.includes("localhost")||r.includes("127.0.0.1")||r.includes("0.0.0.0")?"http://":"https://")+r);try{return new URL(r),r}catch{return null}}function ot(o,r=typeof window<"u"?window.location.origin:""){return o==="about:blank"||Xr(o,r)}function Xr(o,r=typeof window<"u"?window.location.origin:""){if(!o)return!1;try{const i=new URL(o);return qr.NAVIGATION_ALLOWED.includes(i.protocol)&&i.origin!==r}catch{return!1}}const er="__INTENT_PANEL_BRACKET__:",Nn=`
2
2
  (function() {
3
3
  if (window.__augmentKeyboardInterceptorInstalled) return;
4
4
  window.__augmentKeyboardInterceptorInstalled = true;
@@ -1 +1 @@
1
- import{t as ht,bq as E,by as $t,bs as It,b as bt,bu as d}from"./BQy38IRs.js";import{bs as yt,ca as k,aD as t,c9 as s,a7 as Ct,ay as Rt,W as kt,bn as wt,bH as q,bV as H,aA as U}from"./DYhIMPy1.js";import{k as At}from"./B30jTa2N.js";import{b as Dt}from"./BaIAhI85.js";import{Iv as a,ev as Pt,ew as St,nV as Et,zg as Ut,nZ as _t,n_ as Ft,J0 as Tt,Jg as vt,J5 as xt,v3 as Wt,uk as Lt}from"./Bo8Vb7mw.js";import{b7 as qt}from"./MSmU5tc0.js";import{g as Ht}from"./DfN8_dcw.js";import{dr as Nt,bN as Ot,bC as Bt,bG as Mt,bE as Gt}from"./DPuyFsTN.js";import{af as Jt}from"./VlCONpJu.js";import{C as Kt}from"./DbqjhTxc.js";import{V as Vt}from"./CDGcnZR5.js";import{bR as jt,bL as zt,b6 as Zt}from"./C4rFO2Hf.js";import{i as Qt}from"./H2jLkRRS.js";function Xt(_,f){if(new.target)return ht({component:Xt,..._});yt(f,!0);const N=()=>d(Y,"$gitRoots$",n),F=()=>d(X,"$workspace",n),O=()=>d(st,"$ftCommits$",n),B=()=>d(ot,"$ftOlderCommits$",n),y=()=>d(tt,"$commitRead$",n),M=()=>d(Z,"$foldUnchanged",n),G=()=>d(z,"$lineWrapping",n),J=()=>d(Q,"$diffSideBySide",n),K=()=>d(at,"$ftLoading$",n),[n,V]=It(),j=e=>{Vt(e,{embedded:!0,showExpand:!0,get expanded(){return t(C)},onToggleExpand:()=>{q(C,!t(C)),t(C)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return M()},onToggleFold:()=>a.dispatch(xt()),get wrapEnabled(){return G()},onToggleWrap:()=>a.dispatch(vt()),get splitEnabled(){return J()},onToggleSplit:()=>a.dispatch(Tt())})},z=jt(),Z=zt(),Q=Zt();let h=E(f,"tab",7),i=E(f,"workspaceId",7),$=E(f,"isActive",7);const T=Ht(),g=qt(()=>i()),X=Nt(g),Y=Jt(g),w=crypto.randomUUID(),tt=Ot(g,w),c=s(()=>h().data?.commitHash||""),v=s(()=>h().data?.commitMessage||"");k(()=>{const e=i();if(!(!$()||!e||t(r)))return a.dispatch(Pt(e,"history")),()=>a.dispatch(St(e,"history"))});const r=s(()=>h().data?.gitRootId||""),x=s(()=>t(r)&&N().find(e=>e.id===t(r))?.path||""),et=s(()=>t(x)||F()?.worktreePath||F()?.repositoryPath||""),st=Bt(g),ot=Mt(g),at=Gt(g),nt=s(()=>O()||[]),it=s(()=>B()||[]),p=s(()=>t(r)?void 0:t(nt).find(e=>e.hash===t(c))||t(it).find(e=>e.hash===t(c))),A=s(()=>t(p)?.files||[]),D=s(()=>y()?.request.kind==="commitDetails"&&y().request.commitHash===t(c)&&(y().request.gitRootId??"")===t(r)?y():void 0),l=s(()=>t(D)?.result?.kind==="commitDetails"?t(D).result.details:null),rt=s(()=>t(l)?t(l).fileDetails.length>0?t(l).fileDetails:t(l).files.map(e=>({path:e,additions:0,deletions:0})):[]),dt=s(()=>t(D)?.loading??!1);k(()=>{const e=t(c),o=i(),I=t(r);if(!e||!o||t(A).length>0)return;const u=crypto.randomUUID();return a.dispatch(Et(o,w,u,{kind:"commitDetails",commitHash:e,gitRootId:I||void 0})),()=>a.dispatch(Ut(o,w,u))});const ct=s(()=>t(A).length>0?t(A):t(rt));let C=H(!0),R=H(null);const lt=s(()=>t(ct).map(e=>{const o=typeof e=="string"?e:e.path||"",I=typeof e=="string"?0:e.additions||0,u=typeof e=="string"?0:e.deletions||0;return{filePath:Qt(o)?o:`${t(et)}/${o}`,action:"modify",additions:I,deletions:u,toolName:"local",toolCallId:`commit-${t(c)}-${o}`,staged:!1,category:"committed",commitHash:t(c),commitMessage:t(v)}}));k(()=>{!T||!$()||T.registerActions({display:j})});const W=crypto.randomUUID();k(()=>{const e=i();if(!(!($()&&t(r))||!e))return a.dispatch(_t(e,W)),()=>a.dispatch(Ft(e,W))});var mt={get tab(){return h()},set tab(e){h(e),U()},get workspaceId(){return i()},set workspaceId(e){i(e),U()},get isActive(){return $()},set isActive(e){$(e),U()},$set:$t,$on:(e,o)=>bt(f,e,o)},L=Ct(),gt=Rt(L);At(gt,()=>JSON.stringify([i(),t(r),t(c)]),e=>{{let o=s(()=>K()||t(dt)),I=s(()=>t(r)||void 0),u=s(()=>t(x)||void 0),ut=s(()=>({hash:t(c),message:t(v),author:t(p)?.author||t(l)?.author,authorEmail:t(p)?.authorEmail||t(l)?.authorEmail,date:t(p)?.date||t(l)?.date,agentId:t(p)?.agentId,linkedNoteId:t(p)?.linkedNoteId}));Dt(Kt(e,{get isLoading(){return t(o)},get changes(){return t(lt)},get gitRootId(){return t(I)},get gitRootPath(){return t(u)},get commitInfo(){return t(ut)},onOpenAgent:(b,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(Lt(i(),{agentId:b,openInAdjacentPanel:P,sourcePanelId:S}))},onOpenNote:(b,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(Wt(i(),b,{openInAdjacentPanel:P,sourcePanelId:S}))}}),b=>q(R,b,!0),()=>t(R))}}),kt(_,L);var pt=wt(mt);return V(),pt}export{Xt as default};
1
+ import{t as ht,bq as E,by as $t,bs as It,b as bt,bu as d}from"./CT36W95j.js";import{bs as yt,ca as k,aD as t,c9 as s,a7 as Ct,ay as Rt,W as kt,bn as wt,bH as q,bV as H,aA as U}from"./DYhIMPy1.js";import{k as At}from"./xKssrPyL.js";import{b as Dt}from"./BaIAhI85.js";import{Iv as a,ev as Pt,ew as St,nV as Et,zg as Ut,nZ as _t,n_ as Ft,J0 as Tt,Jg as vt,J5 as xt,v3 as Wt,uk as Lt}from"./BmagX6n5.js";import{b7 as qt}from"./DPevKyzH.js";import{g as Ht}from"./DfN8_dcw.js";import{dr as Nt,bN as Ot,bC as Bt,bG as Mt,bE as Gt}from"./DpNO08YA.js";import{af as Jt}from"./CE90SUHM.js";import{C as Kt}from"./CQk97DU6.js";import{V as Vt}from"./VlylMxmA.js";import{bR as jt,bL as zt,b6 as Zt}from"./Baz0g_kI.js";import{i as Qt}from"./H2jLkRRS.js";function Xt(_,f){if(new.target)return ht({component:Xt,..._});yt(f,!0);const N=()=>d(Y,"$gitRoots$",n),F=()=>d(X,"$workspace",n),O=()=>d(st,"$ftCommits$",n),B=()=>d(ot,"$ftOlderCommits$",n),y=()=>d(tt,"$commitRead$",n),M=()=>d(Z,"$foldUnchanged",n),G=()=>d(z,"$lineWrapping",n),J=()=>d(Q,"$diffSideBySide",n),K=()=>d(at,"$ftLoading$",n),[n,V]=It(),j=e=>{Vt(e,{embedded:!0,showExpand:!0,get expanded(){return t(C)},onToggleExpand:()=>{q(C,!t(C)),t(C)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return M()},onToggleFold:()=>a.dispatch(xt()),get wrapEnabled(){return G()},onToggleWrap:()=>a.dispatch(vt()),get splitEnabled(){return J()},onToggleSplit:()=>a.dispatch(Tt())})},z=jt(),Z=zt(),Q=Zt();let h=E(f,"tab",7),i=E(f,"workspaceId",7),$=E(f,"isActive",7);const T=Ht(),g=qt(()=>i()),X=Nt(g),Y=Jt(g),w=crypto.randomUUID(),tt=Ot(g,w),c=s(()=>h().data?.commitHash||""),v=s(()=>h().data?.commitMessage||"");k(()=>{const e=i();if(!(!$()||!e||t(r)))return a.dispatch(Pt(e,"history")),()=>a.dispatch(St(e,"history"))});const r=s(()=>h().data?.gitRootId||""),x=s(()=>t(r)&&N().find(e=>e.id===t(r))?.path||""),et=s(()=>t(x)||F()?.worktreePath||F()?.repositoryPath||""),st=Bt(g),ot=Mt(g),at=Gt(g),nt=s(()=>O()||[]),it=s(()=>B()||[]),p=s(()=>t(r)?void 0:t(nt).find(e=>e.hash===t(c))||t(it).find(e=>e.hash===t(c))),A=s(()=>t(p)?.files||[]),D=s(()=>y()?.request.kind==="commitDetails"&&y().request.commitHash===t(c)&&(y().request.gitRootId??"")===t(r)?y():void 0),l=s(()=>t(D)?.result?.kind==="commitDetails"?t(D).result.details:null),rt=s(()=>t(l)?t(l).fileDetails.length>0?t(l).fileDetails:t(l).files.map(e=>({path:e,additions:0,deletions:0})):[]),dt=s(()=>t(D)?.loading??!1);k(()=>{const e=t(c),o=i(),I=t(r);if(!e||!o||t(A).length>0)return;const u=crypto.randomUUID();return a.dispatch(Et(o,w,u,{kind:"commitDetails",commitHash:e,gitRootId:I||void 0})),()=>a.dispatch(Ut(o,w,u))});const ct=s(()=>t(A).length>0?t(A):t(rt));let C=H(!0),R=H(null);const lt=s(()=>t(ct).map(e=>{const o=typeof e=="string"?e:e.path||"",I=typeof e=="string"?0:e.additions||0,u=typeof e=="string"?0:e.deletions||0;return{filePath:Qt(o)?o:`${t(et)}/${o}`,action:"modify",additions:I,deletions:u,toolName:"local",toolCallId:`commit-${t(c)}-${o}`,staged:!1,category:"committed",commitHash:t(c),commitMessage:t(v)}}));k(()=>{!T||!$()||T.registerActions({display:j})});const W=crypto.randomUUID();k(()=>{const e=i();if(!(!($()&&t(r))||!e))return a.dispatch(_t(e,W)),()=>a.dispatch(Ft(e,W))});var mt={get tab(){return h()},set tab(e){h(e),U()},get workspaceId(){return i()},set workspaceId(e){i(e),U()},get isActive(){return $()},set isActive(e){$(e),U()},$set:$t,$on:(e,o)=>bt(f,e,o)},L=Ct(),gt=Rt(L);At(gt,()=>JSON.stringify([i(),t(r),t(c)]),e=>{{let o=s(()=>K()||t(dt)),I=s(()=>t(r)||void 0),u=s(()=>t(x)||void 0),ut=s(()=>({hash:t(c),message:t(v),author:t(p)?.author||t(l)?.author,authorEmail:t(p)?.authorEmail||t(l)?.authorEmail,date:t(p)?.date||t(l)?.date,agentId:t(p)?.agentId,linkedNoteId:t(p)?.linkedNoteId}));Dt(Kt(e,{get isLoading(){return t(o)},get changes(){return t(lt)},get gitRootId(){return t(I)},get gitRootPath(){return t(u)},get commitInfo(){return t(ut)},onOpenAgent:(b,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(Lt(i(),{agentId:b,openInAdjacentPanel:P,sourcePanelId:S}))},onOpenNote:(b,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(Wt(i(),b,{openInAdjacentPanel:P,sourcePanelId:S}))}}),b=>q(R,b,!0),()=>t(R))}}),kt(_,L);var pt=wt(mt);return V(),pt}export{Xt as default};
@@ -1,4 +1,4 @@
1
- import{b as p,ay as C,aX as H,W as _,r as q,a6 as G,B as U,aV as j,X as K}from"./DEfRWwmu.js";var A="",M="",O="",D=[],b=new Map,v=p(e=>j(e,K()),"sanitizeText"),y=p(e=>{switch(e.type){case"terminal":return{...e,value:v(e.value)};case"nonterminal":return{...e,name:v(e.name)};case"sequence":return{...e,elements:e.elements.map(y)};case"choice":return{...e,alternatives:e.alternatives.map(y)};case"optional":return{...e,element:y(e.element)};case"repetition":return{...e,element:y(e.element),separator:e.separator?y(e.separator):void 0};case"special":return{...e,text:v(e.text)}}},"sanitizeAstNode"),J=p(()=>{A="",M="",O="",D.length=0,b.clear(),q(),C.debug("[Railroad] Database cleared")},"clear"),Y=p(e=>{A=v(e),C.debug("[Railroad] Title set:",e)},"setTitle"),P=p(()=>A,"getTitle"),Q=p(e=>{const i={...e,name:v(e.name),definition:y(e.definition),comment:e.comment?v(e.comment):void 0};C.debug("[Railroad] Adding rule:",i.name),b.has(i.name)&&C.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),D.push(i),b.set(i.name,i)},"addRule"),Z=p(()=>D,"getRules"),V=p(e=>b.get(e),"getRule"),ee=p(e=>{M=v(e).replace(/^\s+/g,""),C.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),te=p(()=>M,"getAccTitle"),re=p(e=>{O=v(e).replace(/\n\s+/g,`
1
+ import{b as p,ay as C,aX as H,W as _,r as q,a6 as G,B as U,aV as j,X as K}from"./DozUkl5C.js";var A="",M="",O="",D=[],b=new Map,v=p(e=>j(e,K()),"sanitizeText"),y=p(e=>{switch(e.type){case"terminal":return{...e,value:v(e.value)};case"nonterminal":return{...e,name:v(e.name)};case"sequence":return{...e,elements:e.elements.map(y)};case"choice":return{...e,alternatives:e.alternatives.map(y)};case"optional":return{...e,element:y(e.element)};case"repetition":return{...e,element:y(e.element),separator:e.separator?y(e.separator):void 0};case"special":return{...e,text:v(e.text)}}},"sanitizeAstNode"),J=p(()=>{A="",M="",O="",D.length=0,b.clear(),q(),C.debug("[Railroad] Database cleared")},"clear"),Y=p(e=>{A=v(e),C.debug("[Railroad] Title set:",e)},"setTitle"),P=p(()=>A,"getTitle"),Q=p(e=>{const i={...e,name:v(e.name),definition:y(e.definition),comment:e.comment?v(e.comment):void 0};C.debug("[Railroad] Adding rule:",i.name),b.has(i.name)&&C.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),D.push(i),b.set(i.name,i)},"addRule"),Z=p(()=>D,"getRules"),V=p(e=>b.get(e),"getRule"),ee=p(e=>{M=v(e).replace(/^\s+/g,""),C.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),te=p(()=>M,"getAccTitle"),re=p(e=>{O=v(e).replace(/\n\s+/g,`
2
2
  `),C.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),ie=p(()=>O,"getAccDescription"),ae=Y,ne=P,oe={clear:J,setTitle:Y,getTitle:P,addRule:Q,getRules:Z,getRule:V,setAccTitle:ee,getAccTitle:te,setAccDescription:re,getAccDescription:ie,setDiagramTitle:ae,getDiagramTitle:ne},f={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},le=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,se=/^[\w "',.-]+$/,de=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),L=p(e=>e?Object.keys(e).every(i=>i==="railroad"||de.has(i)):!1,"isRailroadStyleOptions"),ce=p(e=>e?"railroad"in e&&e.railroad?e.railroad:L(e)?e:{}:{},"extractRailroadOverrides"),me=p(e=>{if(!e||L(e))return{};const{railroad:i,svgId:n,theme:a,look:t,...r}=e;return r},"extractThemeOverrides"),m=p((e,i)=>{if(typeof e!="string")return i;const n=e.trim();return le.test(n)?n:i},"sanitizeColorValue"),X=p((e,i)=>{if(typeof e!="string")return i;const n=e.trim();return se.test(n)?n:i},"sanitizeFontFamilyValue"),F=p((e,i)=>{const n=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(n)&&n>=0?n:i},"sanitizeNumberValue"),he=p(e=>{const i=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(i)&&i>0?i:void 0},"parseThemeFontSize"),pe=p(e=>{const i=X(e.fontFamily,f.fontFamily),n=he(e.fontSize)??f.fontSize;return{...f,fontFamily:i,fontSize:n,terminalFill:m(e.secondBkg??e.secondaryColor,f.terminalFill),terminalStroke:m(e.secondaryBorderColor??e.lineColor,f.terminalStroke),terminalTextColor:m(e.secondaryTextColor??e.textColor,f.terminalTextColor),nonTerminalFill:m(e.mainBkg??e.background,f.nonTerminalFill),nonTerminalStroke:m(e.primaryBorderColor??e.lineColor,f.nonTerminalStroke),nonTerminalTextColor:m(e.primaryTextColor??e.textColor,f.nonTerminalTextColor),lineColor:m(e.lineColor,f.lineColor),markerFill:m(e.lineColor,f.markerFill),commentFill:m(e.labelBackground??e.tertiaryColor,f.commentFill),commentStroke:m(e.tertiaryBorderColor??e.lineColor,f.commentStroke),commentTextColor:m(e.tertiaryTextColor??e.textColor,f.commentTextColor),specialFill:m(e.tertiaryColor??e.secondaryColor,f.specialFill),specialStroke:m(e.tertiaryBorderColor??e.secondaryBorderColor,f.specialStroke),ruleNameColor:m(e.titleColor??e.textColor,f.ruleNameColor)}},"buildThemeDefaults"),E=p(e=>{const i=_(),n={...G(),...i.themeVariables??{},...me(e)},a=pe(n),t={...i.railroad??{},...ce(e)};return{compactMode:t.compactMode??a.compactMode,padding:F(t.padding,a.padding),verticalSeparation:F(t.verticalSeparation,a.verticalSeparation),horizontalSeparation:F(t.horizontalSeparation,a.horizontalSeparation),arcRadius:F(t.arcRadius,a.arcRadius),fontSize:F(t.fontSize,a.fontSize),fontFamily:X(t.fontFamily,a.fontFamily),terminalFill:m(t.terminalFill,a.terminalFill),terminalStroke:m(t.terminalStroke,a.terminalStroke),terminalTextColor:m(t.terminalTextColor,a.terminalTextColor),nonTerminalFill:m(t.nonTerminalFill,a.nonTerminalFill),nonTerminalStroke:m(t.nonTerminalStroke,a.nonTerminalStroke),nonTerminalTextColor:m(t.nonTerminalTextColor,a.nonTerminalTextColor),lineColor:m(t.lineColor,a.lineColor),strokeWidth:F(t.strokeWidth,a.strokeWidth),markerFill:m(t.markerFill,a.markerFill),commentFill:m(t.commentFill,a.commentFill),commentStroke:m(t.commentStroke,a.commentStroke),commentTextColor:m(t.commentTextColor,a.commentTextColor),specialFill:m(t.specialFill,a.specialFill),specialStroke:m(t.specialStroke,a.specialStroke),ruleNameColor:m(t.ruleNameColor,a.ruleNameColor),showMarkers:t.showMarkers??a.showMarkers,markerRadius:F(t.markerRadius,a.markerRadius)}},"buildRailroadStyleOptions"),Te=p(e=>{const{fontFamily:i,fontSize:n,terminalFill:a,terminalStroke:t,terminalTextColor:r,nonTerminalFill:o,nonTerminalStroke:g,nonTerminalTextColor:l,lineColor:s,strokeWidth:h,markerFill:u,commentFill:c,commentStroke:w,commentTextColor:d,specialFill:T,specialStroke:z,ruleNameColor:S}=E(e);return`
3
3
  .railroad-diagram {
4
4
  font-family: ${i};
@@ -1 +1 @@
1
- import{t as V,bq as d,by as B,b as F,bo as L}from"./BQy38IRs.js";import{bs as H,b_ as E,W as _,bn as j,aA as p,aC as T,a7 as I,ay as O,aD as r,a5 as U,bS as X,bH as b,bA as Y,be as Z,b$ as $,bO as ee,c9 as c,aB as te,bV as k,bk as re}from"./DYhIMPy1.js";import{s as ne,f as ie,c as oe}from"./CwxaNadx.js";import{i as P}from"./CWmwYDNG.js";import{k as se}from"./B30jTa2N.js";import{I as ae}from"./DDLB_hVd.js";import"./Co17KOMP.js";import{L as le}from"./BFmjOdeB.js";import"./CIUOjVit.js";import{D as ue,b as z}from"./fZqCaChB.js";import{r as ce,q as y}from"./DR7XO1uo.js";var fe=T('<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M12 15.82L12 23.76M4.44 21L8.35 16.35A1.96 1.96 0 0 0 6.4 12.99L0.42 14.04M1.82 6.12L7.08 9.16A1.96 1.96 0 0 0 10.06 6.66L7.98 0.95M16.02 0.95L13.94 6.66A1.96 1.96 0 0 0 16.92 9.16L22.18 6.12M23.58 14.04L17.6 12.99A1.96 1.96 0 0 0 15.65 16.35L19.56 21" stroke="currentColor" stroke-width="2.06" stroke-linecap="butt" stroke-linejoin="round"></path></svg>');function me(f,o){if(new.target)return V({component:me,...f});H(o,!0);let e=d(o,"width",7,24),n=d(o,"class",7,"");var s={get width(){return e()},set width(a=24){e(a),p()},get class(){return n()},set class(a=""){n(a),p()},$set:B,$on:(a,m)=>F(o,a,m)},l=fe();return E(()=>{ne(l,"width",e()),ie(l,0,oe(n()))}),_(f,l),j(s)}var de=te('<div class="grid gap-2"><!> <!></div>');function G(f,o){if(new.target)return V({component:G,...f});H(o,!0);let e=d(o,"request",7),n=d(o,"value",15,""),s=d(o,"busy",7,!1),l=d(o,"static",7,!1),a=d(o,"onAccept",7),m=d(o,"onCancel",7),v=k(null);var A={get request(){return e()},set request(t){e(t),p()},get value(){return n()},set value(t=""){n(t),p()},get busy(){return s()},set busy(t=!1){s(t),p()},get static(){return l()},set static(t=!1){l(t),p()},get onAccept(){return a()},set onAccept(t){a(t),p()},get onCancel(){return m()},set onCancel(t){m(t),p()},$set:B,$on:(t,g)=>F(o,t,g)},h=I(),i=O(h);{var u=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_bulkActionConfirm_confirm_label()),M=c(()=>e().options.cancelLabel??L.modals_bulkActionConfirm_cancel_label()),S=c(()=>e().options.destructive??!1);ue(t,{open:!0,get static(){return l()},get title(){return e().options.title},get description(){return e().options.description},get confirmLabel(){return r(g)},get cancelLabel(){return r(M)},get destructive(){return r(S)},get busy(){return s()},onConfirm:()=>a()(n()),get onCancel(){return m()}})}},q=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_input_confirm_label()),M=c(()=>e().options.cancelLabel??L.modals_input_cancel_label()),S=c(()=>!e().options.field.required||n().trim().length>0);z(t,{open:!0,get static(){return l()},get title(){return e().options.title},get description(){return e().options.description},get submitLabel(){return r(g)},get cancelLabel(){return r(M)},get canSubmit(){return r(S)},get busy(){return s()},get initialFocus(){return r(v)},onSubmit:()=>a()(n()),get onCancel(){return m()},children:(J,ge)=>{var D=de(),N=U(D);{var K=C=>{le(C,{for:"confirm-prompt-field",children:(R,w)=>{Z();var W=$();E(()=>ee(W,e().options.field.label)),_(R,W)},$$slots:{default:!0}})};P(N,C=>{e().options.field.label&&C(K)})}var Q=X(N,2);{let C=c(()=>e().options.field.type??"text"),R=c(()=>e().options.field.label?void 0:e().options.title);ae(Q,{id:"confirm-prompt-field",get type(){return r(C)},get placeholder(){return e().options.field.placeholder},get"aria-label"(){return r(R)},get ref(){return r(v)},set ref(w){b(v,w,!0)},get value(){return n()},set value(w){n(w)}})}Y(D),_(J,D)},$$slots:{default:!0}})}},x=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_input_confirm_label());z(t,{open:!0,get static(){return l()},role:"alertdialog",get title(){return e().options.title},get description(){return e().options.description},get submitLabel(){return r(g)},showCancel:!1,dismissOnInteractOutside:!1,get busy(){return s()},onSubmit:()=>a()(n()),onCancel:()=>a()(n())})}};P(i,t=>{e()?.kind==="confirm"?t(u):e()?.kind==="prompt"?t(q,1):e()?.kind==="alert"&&t(x,2)})}return _(f,h),j(A)}function pe(f,o){if(new.target)return V({component:pe,...f});H(o,!0);let e=k(null),n=k(""),s=k(!1);re(()=>ce(i=>{b(e,i,!0),b(n,i?.kind==="prompt"?i.options.field.initialValue??"":"",!0),b(s,!1)}));function l(){!r(e)||r(s)||y(r(e).id,r(e).kind==="confirm"?!1:null)}async function a(){if(!r(e)||r(s))return;const i=r(e);b(s,!0);try{i.kind==="confirm"?(await i.options.onConfirm?.(),y(i.id,!0)):i.kind==="prompt"?(await i.options.onConfirm?.(r(n).trim()),y(i.id,r(n).trim())):y(i.id,void 0)}catch(u){throw console.error("Confirm action failed:",u),b(s,!1),u}}var m={$set:B,$on:(i,u)=>F(o,i,u)},v=I(),A=O(v);{var h=i=>{var u=I(),q=O(u);se(q,()=>r(e).id,x=>{G(x,{get request(){return r(e)},get busy(){return r(s)},onAccept:a,onCancel:l,get value(){return r(n)},set value(t){b(n,t,!0)}})}),_(i,u)};P(A,i=>{r(e)&&i(h)})}return _(f,v),j(m)}export{pe as C,me as L};
1
+ import{t as V,bq as d,by as B,b as F,bo as L}from"./CT36W95j.js";import{bs as H,b_ as E,W as _,bn as j,aA as p,aC as T,a7 as I,ay as O,aD as r,a5 as U,bS as X,bH as b,bA as Y,be as Z,b$ as $,bO as ee,c9 as c,aB as te,bV as k,bk as re}from"./DYhIMPy1.js";import{s as ne,f as ie,c as oe}from"./TRV263rQ.js";import{i as P}from"./Cn5kmzaj.js";import{k as se}from"./xKssrPyL.js";import{I as ae}from"./BdyAQuf8.js";import"./D9BiEPlJ.js";import{L as le}from"./Du0V4O1Q.js";import"./_639dNbm.js";import{D as ue,b as z}from"./CHJZj-fd.js";import{r as ce,q as y}from"./WvnHVkBo.js";var fe=T('<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M12 15.82L12 23.76M4.44 21L8.35 16.35A1.96 1.96 0 0 0 6.4 12.99L0.42 14.04M1.82 6.12L7.08 9.16A1.96 1.96 0 0 0 10.06 6.66L7.98 0.95M16.02 0.95L13.94 6.66A1.96 1.96 0 0 0 16.92 9.16L22.18 6.12M23.58 14.04L17.6 12.99A1.96 1.96 0 0 0 15.65 16.35L19.56 21" stroke="currentColor" stroke-width="2.06" stroke-linecap="butt" stroke-linejoin="round"></path></svg>');function me(f,o){if(new.target)return V({component:me,...f});H(o,!0);let e=d(o,"width",7,24),n=d(o,"class",7,"");var s={get width(){return e()},set width(a=24){e(a),p()},get class(){return n()},set class(a=""){n(a),p()},$set:B,$on:(a,m)=>F(o,a,m)},l=fe();return E(()=>{ne(l,"width",e()),ie(l,0,oe(n()))}),_(f,l),j(s)}var de=te('<div class="grid gap-2"><!> <!></div>');function G(f,o){if(new.target)return V({component:G,...f});H(o,!0);let e=d(o,"request",7),n=d(o,"value",15,""),s=d(o,"busy",7,!1),l=d(o,"static",7,!1),a=d(o,"onAccept",7),m=d(o,"onCancel",7),v=k(null);var A={get request(){return e()},set request(t){e(t),p()},get value(){return n()},set value(t=""){n(t),p()},get busy(){return s()},set busy(t=!1){s(t),p()},get static(){return l()},set static(t=!1){l(t),p()},get onAccept(){return a()},set onAccept(t){a(t),p()},get onCancel(){return m()},set onCancel(t){m(t),p()},$set:B,$on:(t,g)=>F(o,t,g)},h=I(),i=O(h);{var u=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_bulkActionConfirm_confirm_label()),M=c(()=>e().options.cancelLabel??L.modals_bulkActionConfirm_cancel_label()),S=c(()=>e().options.destructive??!1);ue(t,{open:!0,get static(){return l()},get title(){return e().options.title},get description(){return e().options.description},get confirmLabel(){return r(g)},get cancelLabel(){return r(M)},get destructive(){return r(S)},get busy(){return s()},onConfirm:()=>a()(n()),get onCancel(){return m()}})}},q=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_input_confirm_label()),M=c(()=>e().options.cancelLabel??L.modals_input_cancel_label()),S=c(()=>!e().options.field.required||n().trim().length>0);z(t,{open:!0,get static(){return l()},get title(){return e().options.title},get description(){return e().options.description},get submitLabel(){return r(g)},get cancelLabel(){return r(M)},get canSubmit(){return r(S)},get busy(){return s()},get initialFocus(){return r(v)},onSubmit:()=>a()(n()),get onCancel(){return m()},children:(J,ge)=>{var D=de(),N=U(D);{var K=C=>{le(C,{for:"confirm-prompt-field",children:(R,w)=>{Z();var W=$();E(()=>ee(W,e().options.field.label)),_(R,W)},$$slots:{default:!0}})};P(N,C=>{e().options.field.label&&C(K)})}var Q=X(N,2);{let C=c(()=>e().options.field.type??"text"),R=c(()=>e().options.field.label?void 0:e().options.title);ae(Q,{id:"confirm-prompt-field",get type(){return r(C)},get placeholder(){return e().options.field.placeholder},get"aria-label"(){return r(R)},get ref(){return r(v)},set ref(w){b(v,w,!0)},get value(){return n()},set value(w){n(w)}})}Y(D),_(J,D)},$$slots:{default:!0}})}},x=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_input_confirm_label());z(t,{open:!0,get static(){return l()},role:"alertdialog",get title(){return e().options.title},get description(){return e().options.description},get submitLabel(){return r(g)},showCancel:!1,dismissOnInteractOutside:!1,get busy(){return s()},onSubmit:()=>a()(n()),onCancel:()=>a()(n())})}};P(i,t=>{e()?.kind==="confirm"?t(u):e()?.kind==="prompt"?t(q,1):e()?.kind==="alert"&&t(x,2)})}return _(f,h),j(A)}function pe(f,o){if(new.target)return V({component:pe,...f});H(o,!0);let e=k(null),n=k(""),s=k(!1);re(()=>ce(i=>{b(e,i,!0),b(n,i?.kind==="prompt"?i.options.field.initialValue??"":"",!0),b(s,!1)}));function l(){!r(e)||r(s)||y(r(e).id,r(e).kind==="confirm"?!1:null)}async function a(){if(!r(e)||r(s))return;const i=r(e);b(s,!0);try{i.kind==="confirm"?(await i.options.onConfirm?.(),y(i.id,!0)):i.kind==="prompt"?(await i.options.onConfirm?.(r(n).trim()),y(i.id,r(n).trim())):y(i.id,void 0)}catch(u){throw console.error("Confirm action failed:",u),b(s,!1),u}}var m={$set:B,$on:(i,u)=>F(o,i,u)},v=I(),A=O(v);{var h=i=>{var u=I(),q=O(u);se(q,()=>r(e).id,x=>{G(x,{get request(){return r(e)},get busy(){return r(s)},onAccept:a,onCancel:l,get value(){return r(n)},set value(t){b(n,t,!0)}})}),_(i,u)};P(A,i=>{r(e)&&i(h)})}return _(f,v),j(m)}export{pe as C,me as L};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BriVbLDU.js","/app/immutable/chunks/COcWmgqo.js","/app/immutable/chunks/ggQuSgBM.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/BQy38IRs.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/CWmwYDNG.js","/app/immutable/chunks/CwxaNadx.js","/app/immutable/chunks/1EEYpvtO.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/DH8xXeC1.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/CcJbyRBU.js","/app/immutable/chunks/DJq2OFOa.js","/app/immutable/chunks/CizJ7rQ5.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/RFiIZzYq.js","/app/immutable/chunks/B30jTa2N.js","/app/immutable/chunks/Zbow58Yt.js","/app/immutable/chunks/DGD-U5Bo.js","/app/immutable/chunks/Bo8Vb7mw.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CWKqJsJy.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/CvWGOqV6.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/7Kg0aRC7.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/hSO5HDzm.js","/app/immutable/chunks/D_Kq1QRo.js","/app/immutable/chunks/BDDVFcm3.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/XnpstU-2.js","/app/immutable/chunks/DPuyFsTN.js","/app/immutable/chunks/CGw07Xyz.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/kVzVNgmU.js","/app/immutable/chunks/2Lw-DzvO.js"])))=>i.map(i=>d[i]);
2
- import{bo as h,_ as x}from"./BQy38IRs.js";import{i as f,Iv as a,dc as P,GT as S,yz as q,F3 as N,vc as R,qy as W,uM as H,Ky as U}from"./Bo8Vb7mw.js";import{d as y}from"./hSO5HDzm.js";import{E as V}from"./DJq2OFOa.js";import{parseIntentLink as j}from"./COEzShcb.js";import{k as I}from"./COcWmgqo.js";import"./DYhIMPy1.js";import"./CwxaNadx.js";import"./1EEYpvtO.js";import"./ChTqQfQN.js";import"./DGD-U5Bo.js";import{I as B,q as C,H as L}from"./DHO9Wxu6.js";import{dr as D}from"./DPuyFsTN.js";import{p as M,o as z,h as K}from"./COokUMpm.js";const p="assistant-content",$=a.createSelector(t=>{const r=M.select(t),s=z.select(t),e=K.select(t).find(i=>i.agentId===s)??r.find(i=>i.isActive)??r.find(i=>i.messageCount>0)??r[0];return P(e?.agentId??null)}),O=new Map;function G(t,r=!1){const s=O.get(t)??{explicit:0,background:0},e={explicit:s.explicit+(r?0:1),background:s.background+(r?1:0)};return O.set(t,e),r?e:{explicit:e.explicit}}function m(t,r){const s=O.get(t);return s!==void 0&&r.explicit===s.explicit&&(r.background===void 0||r.background===s.background)}async function J(t){a.dispatch(R(t)),L.select(a.state,t).restoreStatus==="pending"&&await new Promise(r=>{const s=L.withStore(a)(t).subscribe(e=>{e.restoreStatus!=="pending"&&(r(),queueMicrotask(()=>s()))})})}function _(t,r,s){const e=L.select(a.state,s);if(!e.panels[p]||Object.keys(e.panels).some(i=>i!==p)){const i=e.panels[p],d=Object.values(e.panels).flatMap(n=>n.tabs.filter(o=>o.type!=="agent"||o.workspaceId!==f)),c=d.some(n=>n.id===i?.activeTabId)?i?.activeTabId??null:d.at(-1)?.id??null;a.dispatch(W(s,{root:{type:"panel",panelId:p},panels:{[p]:{id:p,tabs:d,activeTabId:c}},focusedPanelId:e.focusedPanelId===p?p:null,hiddenTabs:C.select(a.state,s)}))}a.dispatch(H(s,t,p,void 0,!0,void 0,!1,r.background||r.preserveFocus,void 0,r.background))}async function de(t,r={}){try{return await Q(t,r)}catch(s){return I.error(h.ui_linkHandler_notFound_title(),{description:s instanceof Error?s.message:String(s)}),!0}}async function Q(t,r){const s=/^intent:\/\/local\/([^/?#]+)\/agent\/([^/?#]+)$/.exec(t),e=t.startsWith("intent://")?j(t):null,i=e?.valid&&e.type==="workspace"?[t,e.resourceId]:/^\/workspace\/([^/?#]+)\/?$/.exec(t),d=/^https?:\/\//.test(t)&&!V(t);if(!i&&!s&&!d&&!(e?.valid&&["file","message","note","task"].includes(e.type))||i&&[f,"new"].includes(i[1]))return!1;const c=M.select(a.state),n=r.agentId?P(r.agentId):r.background?c.length===1?P(c[0].agentId):null:r.layoutId??$.select(a.state);if(!n)return!0;const o=G(n,r.background);if(await J(n),!m(n,o))return!0;if(i){const u=i[1],g=await y.workspaces.get(u);return m(n,o)?g?(a.dispatch(S(g)),_({type:"workspace",title:g.title,workspaceId:u,closable:!0},r,n),!0):(I.error(h.workspace_loader_notFound_title()),!0):!0}if(s)return T(s[1],s[2],r,n,o);if(d){const{resolveBrowserLinkForOpen:u}=await x(async()=>{const{resolveBrowserLinkForOpen:v}=await import("./BriVbLDU.js").then(w=>w.b);return{resolveBrowserLinkForOpen:v}},__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]),import.meta.url),g=await u(t);return m(n,o)&&_({type:"browser",title:new URL(t).hostname,browserUrl:g.url,browserRequestedUrl:g.requestedUrl,workspaceId:f,closable:!0},r,n),!0}if(!e?.valid)return!1;const b=e.workspaceId??f;if(e.type==="file"){const u=await y.workspaces.get(b);return m(n,o)?u?(a.dispatch(S(u)),_({type:"file",title:e.resourceId.split("/").at(-1)??e.resourceId,filePath:e.resourceId,workspaceId:b,closable:!0,data:{line:e.line,filePathIsLiteral:!0}},r,n),!0):(I.error(h.workspace_loader_notFound_title()),!0):!0}if(e.type==="message"&&e.agentId)return T(b,e.agentId,r,n,o,e.resourceId);if(e.type!=="note"&&e.type!=="task")return!1;const l=e.workspaceId??f,[k,A]=await Promise.all([a.dispatch(q(l,e.resourceId)),Promise.resolve(D.select(a.state,l)??y.workspaces.get(l)).catch(()=>null)]);if(!m(n,o))return!0;if(!k||String(k.workspaceId)!==l)return I.error(h.ui_linkHandler_notFound_title(),{description:h.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:l})}),!0;A&&String(A.id)===l&&a.dispatch(S(A));const E=Object.entries(B.select(a.state)).some(([u,g])=>{const v=w=>w.type==="note"&&w.noteId===String(k.id)&&(w.workspaceId??u)===l;return Object.values(g.panels).some(w=>w.tabs.some(v))||C.select(a.state,u).some(v)}),F=a.state.transientUi.byWorkspaceId[l]?.noteViewModeByNoteId[String(k.id)];return!E&&(!r.background||F===void 0)&&a.dispatch(N(l,String(k.id),"editor")),_({type:"note",title:k.title,noteId:String(k.id),workspaceId:l,closable:!0},r,n),!0}async function T(t,r,s,e,i,d){const c=await y.agents.get(r,t===f?void 0:t);t===f&&c&&(t=String(c.workspaceId));const n=t===f?null:await y.workspaces.get(t);if(!m(e,i))return!0;if(!n&&t!==f||!c||String(c.workspaceId)!==t)return I.error(h.ui_linkHandler_notFound_title()),!0;if(n&&a.dispatch(S(n)),a.dispatch(U(c)),_({type:"agent",title:c.name??r,agentId:r,workspaceId:t,closable:!0},s,e),d&&!s.background){const{openMessage:o}=await x(async()=>{const{openMessage:b}=await import("./7Kg0aRC7.js");return{openMessage:b}},__vite__mapDeps([31,32,33,34,4,5,21,22,23,24,3,8,25,15,2,13,14,7,9,16,35,36,37,38,39,27,17,6,12,40,19,41,42,43]),import.meta.url);o({workspaceId:t,agentId:r,messageId:d,contentAlreadyOpen:!0})}return!0}export{p as ASSISTANT_CONTENT_PANEL_ID,$ as selectAssistantPanelLayoutId,de as showAssistantContent};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/K6Z_l6pq.js","/app/immutable/chunks/B7lF313M.js","/app/immutable/chunks/ggQuSgBM.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CT36W95j.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/Cn5kmzaj.js","/app/immutable/chunks/TRV263rQ.js","/app/immutable/chunks/DHClt9az.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/D9xzAHI_.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/Bw5h0b4B.js","/app/immutable/chunks/ClQp3PSY.js","/app/immutable/chunks/DMJ_kXWl.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/CgQUkF-P.js","/app/immutable/chunks/xKssrPyL.js","/app/immutable/chunks/D-IkFfCX.js","/app/immutable/chunks/CJyP11U5.js","/app/immutable/chunks/BmagX6n5.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BgUSjvxc.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/D_rHnmLE.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BdzBn7bA.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/CVc3afbh.js","/app/immutable/chunks/D_Kq1QRo.js","/app/immutable/chunks/BDDVFcm3.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/D4bOZmAv.js","/app/immutable/chunks/DpNO08YA.js","/app/immutable/chunks/BFllbeCZ.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/Bb5T6-Tv.js","/app/immutable/chunks/DgOx26JX.js"])))=>i.map(i=>d[i]);
2
+ import{bo as h,_ as x}from"./CT36W95j.js";import{i as f,Iv as a,dc as P,GT as S,yz as q,F3 as N,vc as R,qy as W,uM as H,Ky as U}from"./BmagX6n5.js";import{d as y}from"./CVc3afbh.js";import{E as V}from"./ClQp3PSY.js";import{parseIntentLink as j}from"./BKawFF96.js";import{k as I}from"./B7lF313M.js";import"./DYhIMPy1.js";import"./TRV263rQ.js";import"./DHClt9az.js";import"./ChTqQfQN.js";import"./CJyP11U5.js";import{I as B,q as C,H as L}from"./C20jcbNk.js";import{dr as D}from"./DpNO08YA.js";import{p as M,o as z,h as K}from"./jeQJPkPX.js";const p="assistant-content",$=a.createSelector(t=>{const r=M.select(t),s=z.select(t),e=K.select(t).find(i=>i.agentId===s)??r.find(i=>i.isActive)??r.find(i=>i.messageCount>0)??r[0];return P(e?.agentId??null)}),O=new Map;function G(t,r=!1){const s=O.get(t)??{explicit:0,background:0},e={explicit:s.explicit+(r?0:1),background:s.background+(r?1:0)};return O.set(t,e),r?e:{explicit:e.explicit}}function m(t,r){const s=O.get(t);return s!==void 0&&r.explicit===s.explicit&&(r.background===void 0||r.background===s.background)}async function J(t){a.dispatch(R(t)),L.select(a.state,t).restoreStatus==="pending"&&await new Promise(r=>{const s=L.withStore(a)(t).subscribe(e=>{e.restoreStatus!=="pending"&&(r(),queueMicrotask(()=>s()))})})}function _(t,r,s){const e=L.select(a.state,s);if(!e.panels[p]||Object.keys(e.panels).some(i=>i!==p)){const i=e.panels[p],d=Object.values(e.panels).flatMap(n=>n.tabs.filter(o=>o.type!=="agent"||o.workspaceId!==f)),c=d.some(n=>n.id===i?.activeTabId)?i?.activeTabId??null:d.at(-1)?.id??null;a.dispatch(W(s,{root:{type:"panel",panelId:p},panels:{[p]:{id:p,tabs:d,activeTabId:c}},focusedPanelId:e.focusedPanelId===p?p:null,hiddenTabs:C.select(a.state,s)}))}a.dispatch(H(s,t,p,void 0,!0,void 0,!1,r.background||r.preserveFocus,void 0,r.background))}async function de(t,r={}){try{return await Q(t,r)}catch(s){return I.error(h.ui_linkHandler_notFound_title(),{description:s instanceof Error?s.message:String(s)}),!0}}async function Q(t,r){const s=/^intent:\/\/local\/([^/?#]+)\/agent\/([^/?#]+)$/.exec(t),e=t.startsWith("intent://")?j(t):null,i=e?.valid&&e.type==="workspace"?[t,e.resourceId]:/^\/workspace\/([^/?#]+)\/?$/.exec(t),d=/^https?:\/\//.test(t)&&!V(t);if(!i&&!s&&!d&&!(e?.valid&&["file","message","note","task"].includes(e.type))||i&&[f,"new"].includes(i[1]))return!1;const c=M.select(a.state),n=r.agentId?P(r.agentId):r.background?c.length===1?P(c[0].agentId):null:r.layoutId??$.select(a.state);if(!n)return!0;const o=G(n,r.background);if(await J(n),!m(n,o))return!0;if(i){const u=i[1],g=await y.workspaces.get(u);return m(n,o)?g?(a.dispatch(S(g)),_({type:"workspace",title:g.title,workspaceId:u,closable:!0},r,n),!0):(I.error(h.workspace_loader_notFound_title()),!0):!0}if(s)return T(s[1],s[2],r,n,o);if(d){const{resolveBrowserLinkForOpen:u}=await x(async()=>{const{resolveBrowserLinkForOpen:v}=await import("./K6Z_l6pq.js").then(w=>w.b);return{resolveBrowserLinkForOpen:v}},__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]),import.meta.url),g=await u(t);return m(n,o)&&_({type:"browser",title:new URL(t).hostname,browserUrl:g.url,browserRequestedUrl:g.requestedUrl,workspaceId:f,closable:!0},r,n),!0}if(!e?.valid)return!1;const b=e.workspaceId??f;if(e.type==="file"){const u=await y.workspaces.get(b);return m(n,o)?u?(a.dispatch(S(u)),_({type:"file",title:e.resourceId.split("/").at(-1)??e.resourceId,filePath:e.resourceId,workspaceId:b,closable:!0,data:{line:e.line,filePathIsLiteral:!0}},r,n),!0):(I.error(h.workspace_loader_notFound_title()),!0):!0}if(e.type==="message"&&e.agentId)return T(b,e.agentId,r,n,o,e.resourceId);if(e.type!=="note"&&e.type!=="task")return!1;const l=e.workspaceId??f,[k,A]=await Promise.all([a.dispatch(q(l,e.resourceId)),Promise.resolve(D.select(a.state,l)??y.workspaces.get(l)).catch(()=>null)]);if(!m(n,o))return!0;if(!k||String(k.workspaceId)!==l)return I.error(h.ui_linkHandler_notFound_title(),{description:h.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:l})}),!0;A&&String(A.id)===l&&a.dispatch(S(A));const E=Object.entries(B.select(a.state)).some(([u,g])=>{const v=w=>w.type==="note"&&w.noteId===String(k.id)&&(w.workspaceId??u)===l;return Object.values(g.panels).some(w=>w.tabs.some(v))||C.select(a.state,u).some(v)}),F=a.state.transientUi.byWorkspaceId[l]?.noteViewModeByNoteId[String(k.id)];return!E&&(!r.background||F===void 0)&&a.dispatch(N(l,String(k.id),"editor")),_({type:"note",title:k.title,noteId:String(k.id),workspaceId:l,closable:!0},r,n),!0}async function T(t,r,s,e,i,d){const c=await y.agents.get(r,t===f?void 0:t);t===f&&c&&(t=String(c.workspaceId));const n=t===f?null:await y.workspaces.get(t);if(!m(e,i))return!0;if(!n&&t!==f||!c||String(c.workspaceId)!==t)return I.error(h.ui_linkHandler_notFound_title()),!0;if(n&&a.dispatch(S(n)),a.dispatch(U(c)),_({type:"agent",title:c.name??r,agentId:r,workspaceId:t,closable:!0},s,e),d&&!s.background){const{openMessage:o}=await x(async()=>{const{openMessage:b}=await import("./BdzBn7bA.js");return{openMessage:b}},__vite__mapDeps([31,32,33,34,4,5,21,22,23,24,3,8,25,15,2,13,14,7,9,16,35,36,37,38,39,27,17,6,12,40,19,41,42,43]),import.meta.url);o({workspaceId:t,agentId:r,messageId:d,contentAlreadyOpen:!0})}return!0}export{p as ASSISTANT_CONTENT_PANEL_ID,$ as selectAssistantPanelLayoutId,de as showAssistantContent};
@@ -1 +1 @@
1
- import{t as l,bq as i,by as m,b as u}from"./BQy38IRs.js";import{bs as f,bI as _,c5 as b,a7 as g,ay as h,W as v,bn as y,aA as o}from"./DYhIMPy1.js";import{s as z}from"./1EEYpvtO.js";import{a5 as C}from"./DH8xXeC1.js";function S(s,t){if(new.target)return l({component:S,...s});f(t,!0);let a=i(t,"size",7,"default"),r=i(t,"children",7);_(C,b(()=>a()));var p={get size(){return a()},set size(e="default"){a(e),o()},get children(){return r()},set children(e){r(e),o()},$set:m,$on:(e,d)=>u(t,e,d)},n=g(),c=h(n);return z(c,r),v(s,n),y(p)}export{S};
1
+ import{t as l,bq as i,by as m,b as u}from"./CT36W95j.js";import{bs as f,bI as _,c5 as b,a7 as g,ay as h,W as v,bn as y,aA as o}from"./DYhIMPy1.js";import{s as z}from"./DHClt9az.js";import{a5 as C}from"./D9xzAHI_.js";function S(s,t){if(new.target)return l({component:S,...s});f(t,!0);let a=i(t,"size",7,"default"),r=i(t,"children",7);_(C,b(()=>a()));var p={get size(){return a()},set size(e="default"){a(e),o()},get children(){return r()},set children(e){r(e),o()},$set:m,$on:(e,d)=>u(t,e,d)},n=g(),c=h(n);return z(c,r),v(s,n),y(p)}export{S};
@@ -1 +1 @@
1
- import{o as y,e as I,s as S,g as A}from"./CizJ7rQ5.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 R=crypto.randomUUID(),p=Symbol("browser-mock-error");function m(t,e,r){return{[p]:{code:t,message:r,data:{code:t},rpcCode:e}}}function T(t){return typeof t=="object"&&t!==null&&p in t}function W(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:R};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=W(r,e?.params);return T(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==="providers: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"./DMJ_kXWl.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 R=crypto.randomUUID(),p=Symbol("browser-mock-error");function m(t,e,r){return{[p]:{code:t,message:r,data:{code:t},rpcCode:e}}}function T(t){return typeof t=="object"&&t!==null&&p in t}function W(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:R};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=W(r,e?.params);return T(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==="providers: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 +1 @@
1
- import{l as e}from"./CFtvHvEH.js";const t={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:e.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},s={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","type","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/f'{1,3}/,"string.escape","@fStringBody"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/f"{1,3}/,"string.escape","@fDblStringBody"],[/"/,"string.escape","@dblStringBody"]],fStringBody:[[/[^\\'\{\}]+$/,"string","@popall"],[/[^\\'\{\}]+/,"string"],[/\{[^\}':!=]+/,"identifier","@fStringDetail"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],fDblStringBody:[[/[^\\"\{\}]+$/,"string","@popall"],[/[^\\"\{\}]+/,"string"],[/\{[^\}':!=]+/,"identifier","@fStringDetail"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]],fStringDetail:[[/[:][^}]+/,"string"],[/[!][ars]/,"string"],[/=/,"string"],[/\}/,"identifier","@pop"]]}};export{t as conf,s as language};
1
+ import{l as e}from"./DFXV1wIW.js";const t={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:e.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},s={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","type","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/f'{1,3}/,"string.escape","@fStringBody"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/f"{1,3}/,"string.escape","@fDblStringBody"],[/"/,"string.escape","@dblStringBody"]],fStringBody:[[/[^\\'\{\}]+$/,"string","@popall"],[/[^\\'\{\}]+/,"string"],[/\{[^\}':!=]+/,"identifier","@fStringDetail"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],fDblStringBody:[[/[^\\"\{\}]+$/,"string","@popall"],[/[^\\"\{\}]+/,"string"],[/\{[^\}':!=]+/,"identifier","@fStringDetail"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]],fStringDetail:[[/[:][^}]+/,"string"],[/[!][ars]/,"string"],[/=/,"string"],[/\}/,"identifier","@pop"]]}};export{t as conf,s as language};