@intent-hq/web 2.283.0 → 2.284.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 (316) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{CsGRm74m.js → --3ZEJ9J.js} +1 -1
  3. package/web/app/immutable/chunks/{C6UIN6U-.js → 03ESLWB1.js} +1 -1
  4. package/web/app/immutable/chunks/{86I704nb.js → 0XyrKsuA.js} +1 -1
  5. package/web/app/immutable/chunks/{CqnYcuvr.js → 1rwbAxiY.js} +1 -1
  6. package/web/app/immutable/chunks/{BMFwrOH1.js → 1wcS2GHA.js} +1 -1
  7. package/web/app/immutable/chunks/{CvLXNZbW.js → 32YnGblO.js} +1 -1
  8. package/web/app/immutable/chunks/{5guZ9l7C.js → 4kHCfKWR.js} +1 -1
  9. package/web/app/immutable/chunks/{CMI5HTNV.js → 580ALcE7.js} +1 -1
  10. package/web/app/immutable/chunks/{JWpKjkZt.js → 5BmKVYc1.js} +4 -4
  11. package/web/app/immutable/chunks/{B4NuLgfc.js → 5ZpW5rVB.js} +1 -1
  12. package/web/app/immutable/chunks/{BuYGacYC.js → 7IZupueL.js} +44 -44
  13. package/web/app/immutable/chunks/{DwufXbAm.js → 8n4ougjP.js} +1 -1
  14. package/web/app/immutable/chunks/{D0ubTGV_.js → 8puonPwK.js} +1 -1
  15. package/web/app/immutable/chunks/{DVch_AcI.js → B-kQ0Vz5.js} +1 -1
  16. package/web/app/immutable/chunks/{BlxovLoL.js → B0w4Cxo_.js} +1 -1
  17. package/web/app/immutable/chunks/{Be5Pyj-G.js → B1EuyQvk.js} +1 -1
  18. package/web/app/immutable/chunks/{DjvHPE3r.js → B1P0TORE.js} +1 -1
  19. package/web/app/immutable/chunks/{BSoHy997.js → B1s7HAuZ.js} +1 -1
  20. package/web/app/immutable/chunks/{Dvf5hKr0.js → B3G2wO_D.js} +1 -1
  21. package/web/app/immutable/chunks/{DGTcJSfI.js → B4VDa7RO.js} +1 -1
  22. package/web/app/immutable/chunks/{CDUZ_0Sw.js → B5HPrVzu.js} +1 -1
  23. package/web/app/immutable/chunks/{RykEwldd.js → B5KLQb3J.js} +1 -1
  24. package/web/app/immutable/chunks/{Bjat9loC.js → B7R5ywXv.js} +1 -1
  25. package/web/app/immutable/chunks/{DSMbTvmu.js → B8LfMxTf.js} +1 -1
  26. package/web/app/immutable/chunks/{DEAKghGX.js → B8xgoeqo.js} +1 -1
  27. package/web/app/immutable/chunks/{C85s-gi8.js → B96HYSUr.js} +1 -1
  28. package/web/app/immutable/chunks/{BQkOKtmR.js → B9YdV5Lr.js} +1 -1
  29. package/web/app/immutable/chunks/{QEFaNqbo.js → BAuomW3Q.js} +1 -1
  30. package/web/app/immutable/chunks/{Cnak6su6.js → BAyTpaq3.js} +1 -1
  31. package/web/app/immutable/chunks/{CMU9ws3e.js → BCHni7By.js} +1 -1
  32. package/web/app/immutable/chunks/{Bme6a8ON.js → BCkgwkHF.js} +1 -1
  33. package/web/app/immutable/chunks/{DKhnmIhc.js → BE5jLkkZ.js} +1 -1
  34. package/web/app/immutable/chunks/{BcIZ6c0f.js → BE6av5p4.js} +1 -1
  35. package/web/app/immutable/chunks/{CmTb9opo.js → BEQXbC7q.js} +1 -1
  36. package/web/app/immutable/chunks/{B122KxZy.js → BFDD1pyQ.js} +1 -1
  37. package/web/app/immutable/chunks/{yZjABy7c.js → BHdVwar2.js} +1 -1
  38. package/web/app/immutable/chunks/{UFs8wmaf.js → BIkNHTNp.js} +1 -1
  39. package/web/app/immutable/chunks/{DSad0YxQ.js → BJ5sH6i3.js} +1 -1
  40. package/web/app/immutable/chunks/{CNnCGYha.js → BJwGOB8K.js} +1 -1
  41. package/web/app/immutable/chunks/{wqHUaR0E.js → BKAQdyqG.js} +1 -1
  42. package/web/app/immutable/chunks/{DOWY58Gk.js → BKYBbIMC.js} +1 -1
  43. package/web/app/immutable/chunks/{DzF66VDn.js → BLEfessf.js} +1 -1
  44. package/web/app/immutable/chunks/{PwM42XJW.js → BLjf4WQt.js} +1 -1
  45. package/web/app/immutable/chunks/{BdS003Kb.js → BLjxHwvZ.js} +1 -1
  46. package/web/app/immutable/chunks/{BFnOOmhf.js → BMBobKUo.js} +2 -2
  47. package/web/app/immutable/chunks/{j32IuKtD.js → BNfbL3_i.js} +1 -1
  48. package/web/app/immutable/chunks/{CI86PNUZ.js → BOIoayZB.js} +1 -1
  49. package/web/app/immutable/chunks/{DlmTHr8T.js → BOV2-YtX.js} +1 -1
  50. package/web/app/immutable/chunks/{DWsGxz2C.js → BPQohPc9.js} +1 -1
  51. package/web/app/immutable/chunks/{B5Kd4cOY.js → BQ-Vdhjp.js} +1 -1
  52. package/web/app/immutable/chunks/{Dr6lXyco.js → BQqtq_EY.js} +4 -4
  53. package/web/app/immutable/chunks/BQu3cSOx.js +1 -0
  54. package/web/app/immutable/chunks/{DMbXrJli.js → BRk6sSrF.js} +1 -1
  55. package/web/app/immutable/chunks/{ZJCzYVmw.js → BS6Z2wWv.js} +1 -1
  56. package/web/app/immutable/chunks/{DaMaCbrW.js → BSIOWZWq.js} +1 -1
  57. package/web/app/immutable/chunks/{gYd6zuXF.js → BSLrzoVf.js} +1 -1
  58. package/web/app/immutable/chunks/{cpbf9St3.js → BUtQhKox.js} +1 -1
  59. package/web/app/immutable/chunks/{Bl1nIYdr.js → BXwgWEmz.js} +1 -1
  60. package/web/app/immutable/chunks/{cCabUQP6.js → BYB7SynS.js} +2 -2
  61. package/web/app/immutable/chunks/{D-U5rcFa.js → BYhzE2Id.js} +1 -1
  62. package/web/app/immutable/chunks/{BSt_qcPC.js → BYvXj8cv.js} +1 -1
  63. package/web/app/immutable/chunks/{B8ZK3-zF.js → BZjntufp.js} +1 -1
  64. package/web/app/immutable/chunks/{B241tUXW.js → B_BtFokc.js} +1 -1
  65. package/web/app/immutable/chunks/{UF5lygT0.js → BcemBG1g.js} +4 -4
  66. package/web/app/immutable/chunks/{NyRx-5qE.js → BfCf1CX7.js} +3 -3
  67. package/web/app/immutable/chunks/{g3KZ-aok.js → BghJZEqX.js} +1 -1
  68. package/web/app/immutable/chunks/{BzSa9-IF.js → Bhov0MTz.js} +1 -1
  69. package/web/app/immutable/chunks/{DeSJTI_U.js → Bir-_mB8.js} +1 -1
  70. package/web/app/immutable/chunks/{VzlQnrws.js → Bj2uvmt-.js} +1 -1
  71. package/web/app/immutable/chunks/{VLmrqzTE.js → Bj6-QOR3.js} +1 -1
  72. package/web/app/immutable/chunks/{C8gv124k.js → BjO6mATN.js} +1 -1
  73. package/web/app/immutable/chunks/{DueTjjFx.js → BlhXsK8K.js} +1 -1
  74. package/web/app/immutable/chunks/{DHZ4JjoJ.js → Blhl4Kzo.js} +1 -1
  75. package/web/app/immutable/chunks/{CzT5E1qm.js → BlobiUVj.js} +1 -1
  76. package/web/app/immutable/chunks/{DMl_gv4g.js → BmY5L1Op.js} +1 -1
  77. package/web/app/immutable/chunks/{2UHo-lr0.js → BmeKmSN1.js} +1 -1
  78. package/web/app/immutable/chunks/{DikRK37J.js → Bmnp4Cni.js} +6 -6
  79. package/web/app/immutable/chunks/{BbGMZxWy.js → BnZq-I73.js} +2 -2
  80. package/web/app/immutable/chunks/{CcikvcoO.js → BoffG-0C.js} +1 -1
  81. package/web/app/immutable/chunks/{BLfSGdog.js → BoyajzxN.js} +1 -1
  82. package/web/app/immutable/chunks/{BlEVobud.js → BqSjWCdR.js} +1 -1
  83. package/web/app/immutable/chunks/{jN_7w48e.js → BrXpFLv_.js} +1 -1
  84. package/web/app/immutable/chunks/{C4oKInMh.js → BrvhC6GL.js} +1 -1
  85. package/web/app/immutable/chunks/{DBkSv110.js → BuSZooEw.js} +1 -1
  86. package/web/app/immutable/chunks/{CHb28ISq.js → BvuznwRa.js} +1 -1
  87. package/web/app/immutable/chunks/{BBl02EyB.js → BxFP5cPu.js} +1 -1
  88. package/web/app/immutable/chunks/{D71IW4i3.js → BxUDfZfX.js} +1 -1
  89. package/web/app/immutable/chunks/{DXKXi4fU.js → Byp8PswU.js} +1 -1
  90. package/web/app/immutable/chunks/{DA1BdbaM.js → C-AxUu93.js} +1 -1
  91. package/web/app/immutable/chunks/{B1ZGt7sC.js → C-tRLOED.js} +1 -1
  92. package/web/app/immutable/chunks/C1FIrZNw.js +184 -0
  93. package/web/app/immutable/chunks/{itPVrVkG.js → C1GRqLCq.js} +1 -1
  94. package/web/app/immutable/chunks/{P0y5VMqy.js → C2kpUgbe.js} +1 -1
  95. package/web/app/immutable/chunks/{X8KOCQId.js → C51KzdSG.js} +1 -1
  96. package/web/app/immutable/chunks/{BqgmbqM-.js → C6LRlrtG.js} +1 -1
  97. package/web/app/immutable/chunks/{D98MGnzl.js → C6Lk-C_n.js} +1 -1
  98. package/web/app/immutable/chunks/{DLshetD4.js → C6NP7Wkf.js} +1 -1
  99. package/web/app/immutable/chunks/{CaR7O_Ka.js → C83cffhG.js} +1 -1
  100. package/web/app/immutable/chunks/{BycWLeDe.js → C8yAGnZY.js} +1 -1
  101. package/web/app/immutable/chunks/{inj-bBZM.js → CAS7It7T.js} +1 -1
  102. package/web/app/immutable/chunks/{vlhkmmpx.js → CBF5TBJQ.js} +1 -1
  103. package/web/app/immutable/chunks/{Sqmoz5pv.js → CCU5YAgB.js} +1 -1
  104. package/web/app/immutable/chunks/{BaUre9ae.js → CCzzpn5X.js} +1 -1
  105. package/web/app/immutable/chunks/{J6ix93M3.js → CEZnJlwn.js} +1 -1
  106. package/web/app/immutable/chunks/{C-TcncuL.js → CEd0rr6P.js} +1 -1
  107. package/web/app/immutable/chunks/{U7JWtGAy.js → CEkEURUB.js} +1 -1
  108. package/web/app/immutable/chunks/{BxuhDHqB.js → CG5J-qd_.js} +1 -1
  109. package/web/app/immutable/chunks/{C81WcoAM.js → CHK5bSfe.js} +1 -1
  110. package/web/app/immutable/chunks/{Cc-44AXb.js → CHSBtC7Q.js} +1 -1
  111. package/web/app/immutable/chunks/{B3yw5iey.js → CJaPqUNh.js} +1 -1
  112. package/web/app/immutable/chunks/{D2kpmACf.js → CJuSN2hh.js} +1 -1
  113. package/web/app/immutable/chunks/{Fbmia90H.js → CLCaT9pi.js} +3 -3
  114. package/web/app/immutable/chunks/{3SbVPCw7.js → CLDGr3DL.js} +1 -1
  115. package/web/app/immutable/chunks/{Bt6bgoI-.js → CMqMo1Af.js} +1 -1
  116. package/web/app/immutable/chunks/{BQ1YF879.js → CNzOZ9MW.js} +1 -1
  117. package/web/app/immutable/chunks/{DX5DxI8W.js → CQMmROUx.js} +2 -2
  118. package/web/app/immutable/chunks/{CBWgmFBu.js → CQTIadOp.js} +1 -1
  119. package/web/app/immutable/chunks/{BeYVLVXM.js → CRQOCmwo.js} +7 -7
  120. package/web/app/immutable/chunks/{C723Veio.js → CRqiQDbX.js} +1 -1
  121. package/web/app/immutable/chunks/{Bw0IeVy1.js → CS1d84Cn.js} +1 -1
  122. package/web/app/immutable/chunks/{DdwwnwEU.js → CTthB0JK.js} +1 -1
  123. package/web/app/immutable/chunks/{BTxRR5tz.js → CVBBsS8i.js} +1 -1
  124. package/web/app/immutable/chunks/{DRHN1_Cd.js → CW2_8Qo8.js} +1 -1
  125. package/web/app/immutable/chunks/{D3cS8a_B.js → CWMWrTe0.js} +1 -1
  126. package/web/app/immutable/chunks/{CbGnxjOM.js → CX6Z33tv.js} +1 -1
  127. package/web/app/immutable/chunks/{B1ELYeiC.js → CX89Aogf.js} +1 -1
  128. package/web/app/immutable/chunks/{BMafDnH1.js → CXruy7R4.js} +1 -1
  129. package/web/app/immutable/chunks/{CeXEIZ_X.js → CXu6aWOL.js} +1 -1
  130. package/web/app/immutable/chunks/{CqJYE2BI.js → CYvdhBss.js} +1 -1
  131. package/web/app/immutable/chunks/{PJDGiarN.js → CZ1Jg-sG.js} +1 -1
  132. package/web/app/immutable/chunks/{C8chCNZC.js → CZFoI5QY.js} +2 -2
  133. package/web/app/immutable/chunks/{DpSTAF6f.js → C_fEvnNK.js} +1 -1
  134. package/web/app/immutable/chunks/{BsHwyYum.js → CajYOO74.js} +1 -1
  135. package/web/app/immutable/chunks/{BG8_YibP.js → CbNazQqj.js} +1 -1
  136. package/web/app/immutable/chunks/{Bcoxg00q.js → Cci8BWX_.js} +3 -3
  137. package/web/app/immutable/chunks/{CeH1-IFA.js → Ccj-b14I.js} +1 -1
  138. package/web/app/immutable/chunks/{Dzpx8dBT.js → CclADFoZ.js} +2 -2
  139. package/web/app/immutable/chunks/{BrnKg8z1.js → CeMTgCB3.js} +2 -2
  140. package/web/app/immutable/chunks/{D_PPEYyI.js → CfgPxwA4.js} +1 -1
  141. package/web/app/immutable/chunks/{CcEiTh-4.js → ChYWsi4Z.js} +1 -1
  142. package/web/app/immutable/chunks/{DWjmi9tH.js → CiB1yTSc.js} +3 -3
  143. package/web/app/immutable/chunks/{CptC_Uum.js → CnuSxcLR.js} +1 -1
  144. package/web/app/immutable/chunks/{DN-WSfNU.js → CoEKpjkL.js} +1 -1
  145. package/web/app/immutable/chunks/{DcKxGpqI.js → CoQLGQdj.js} +1 -1
  146. package/web/app/immutable/chunks/{AdAUM0KU.js → Cp9AnykR.js} +1 -1
  147. package/web/app/immutable/chunks/{Z8sIHDod.js → CqyYuyXE.js} +1 -1
  148. package/web/app/immutable/chunks/{C9TPtINb.js → CrPyrftw.js} +3 -3
  149. package/web/app/immutable/chunks/{Dt0exTZ5.js → CsP-2ecL.js} +1 -1
  150. package/web/app/immutable/chunks/{D76C-Lub.js → CtwCGSFA.js} +1 -1
  151. package/web/app/immutable/chunks/{DnsWe2Zg.js → CwYn_cZy.js} +1 -1
  152. package/web/app/immutable/chunks/{Cr8elldh.js → CxDLMfRf.js} +1 -1
  153. package/web/app/immutable/chunks/{DhUVW_9Y.js → CyBNkEuV.js} +1 -1
  154. package/web/app/immutable/chunks/{Djk4k1SJ.js → CyO8AnLs.js} +1 -1
  155. package/web/app/immutable/chunks/{y8Xlt_QT.js → CzTIJ9gY.js} +1 -1
  156. package/web/app/immutable/chunks/{BHUG3Di8.js → CzfXsXYz.js} +1 -1
  157. package/web/app/immutable/chunks/{ClnUtlN_.js → D-aPtTCv.js} +1 -1
  158. package/web/app/immutable/chunks/{DLRsFOmD.js → D0GCGQZA.js} +1 -1
  159. package/web/app/immutable/chunks/{Bh14bdXE.js → D0pR1-a6.js} +1 -1
  160. package/web/app/immutable/chunks/{6WATeGSz.js → D2hiI0dA.js} +1 -1
  161. package/web/app/immutable/chunks/D4Lumjru.js +1 -0
  162. package/web/app/immutable/chunks/D4MoKNoK.js +1 -0
  163. package/web/app/immutable/chunks/{dGE6HMYD.js → D5bYJMaB.js} +1 -1
  164. package/web/app/immutable/chunks/{3HhYuBQ5.js → D5jqrM_N.js} +1 -1
  165. package/web/app/immutable/chunks/{0kUsCNYC.js → D6CS23-9.js} +1 -1
  166. package/web/app/immutable/chunks/{C95TwfNO.js → D6K58w6v.js} +3 -3
  167. package/web/app/immutable/chunks/{C1Yon3Fs.js → D7ht9fTY.js} +1 -1
  168. package/web/app/immutable/chunks/{Ci0ScEWC.js → D805RV1I.js} +1 -1
  169. package/web/app/immutable/chunks/{D6EjWtzp.js → D8GxmJaV.js} +1 -1
  170. package/web/app/immutable/chunks/{Br7_wSvp.js → D8_OuTD3.js} +1 -1
  171. package/web/app/immutable/chunks/{Cb1CevU3.js → D8a6fWF_.js} +1 -1
  172. package/web/app/immutable/chunks/{BkTViBTC.js → D9ZfYqMq.js} +1 -1
  173. package/web/app/immutable/chunks/{DIgbsss0.js → DAY2MDvD.js} +1 -1
  174. package/web/app/immutable/chunks/{C_XVzDtJ.js → DBmzovBA.js} +1 -1
  175. package/web/app/immutable/chunks/DC38WcVm.js +1 -0
  176. package/web/app/immutable/chunks/{BKUFkB2Z.js → DDhakcOb.js} +1 -1
  177. package/web/app/immutable/chunks/{8PEQ8hLc.js → DDi4fKeR.js} +1 -1
  178. package/web/app/immutable/chunks/{BxiiO4Iw.js → DG8rkBW-.js} +1 -1
  179. package/web/app/immutable/chunks/{CxHgNIPx.js → DHBpY1EK.js} +1 -1
  180. package/web/app/immutable/chunks/{CPbL2cqN.js → DI5O_gLl.js} +1 -1
  181. package/web/app/immutable/chunks/{DiLRxk1W.js → DI7pTzx5.js} +1 -1
  182. package/web/app/immutable/chunks/{wESj32Mw.js → DIvWSFnj.js} +1 -1
  183. package/web/app/immutable/chunks/{BjU1p5sL.js → DKwy0FDy.js} +1 -1
  184. package/web/app/immutable/chunks/{DJly-gFW.js → DL5rLLvU.js} +1 -1
  185. package/web/app/immutable/chunks/{Et5QnGoZ.js → DO0tFr72.js} +1 -1
  186. package/web/app/immutable/chunks/{CtSELtkL.js → DOE_TCNp.js} +1 -1
  187. package/web/app/immutable/chunks/{CzI05dO6.js → DOdMtNpo.js} +1 -1
  188. package/web/app/immutable/chunks/{DeDjUs04.js → DPd_IJJ7.js} +1 -1
  189. package/web/app/immutable/chunks/{B_2t4zDu.js → DPfdnkfB.js} +1 -1
  190. package/web/app/immutable/chunks/{BpPk83wC.js → DPvthnru.js} +1 -1
  191. package/web/app/immutable/chunks/{Ba4COzVc.js → DQOyHGtr.js} +1 -1
  192. package/web/app/immutable/chunks/{PhuO6dVo.js → DQ_zmHT9.js} +2 -2
  193. package/web/app/immutable/chunks/{BdMtzsOL.js → DR1QbPSk.js} +1 -1
  194. package/web/app/immutable/chunks/{DlKkI_if.js → DR4RT4VO.js} +1 -1
  195. package/web/app/immutable/chunks/{DF6AYPg_.js → DRYCjR4c.js} +1 -1
  196. package/web/app/immutable/chunks/{DLZWsh5d.js → DSJT83nX.js} +1 -1
  197. package/web/app/immutable/chunks/{C7Y7Xcjq.js → DVwKfMN5.js} +1 -1
  198. package/web/app/immutable/chunks/{CFzvK5D6.js → DWW4w6Jk.js} +1 -1
  199. package/web/app/immutable/chunks/{CbaotZDu.js → DZ-8K7hK.js} +1 -1
  200. package/web/app/immutable/chunks/{Bo3xcJTH.js → DZpe54cf.js} +1 -1
  201. package/web/app/immutable/chunks/{JCCFqsAd.js → D_mcoMIN.js} +1 -1
  202. package/web/app/immutable/chunks/{BOK7tZ0u.js → DbdgMxO8.js} +1 -1
  203. package/web/app/immutable/chunks/{JhrIJH4k.js → DcoQTetB.js} +1 -1
  204. package/web/app/immutable/chunks/{BxQ4u3F0.js → Dd_avILP.js} +1 -1
  205. package/web/app/immutable/chunks/{Cyx56VLF.js → DditQ6Dc.js} +1 -1
  206. package/web/app/immutable/chunks/{CiJsLr2J.js → De4WWpS0.js} +1 -1
  207. package/web/app/immutable/chunks/{-cKrxpnw.js → DeJ360tt.js} +1 -1
  208. package/web/app/immutable/chunks/{FDVvdcz2.js → DgFojmqv.js} +3 -3
  209. package/web/app/immutable/chunks/{N_3EVFPG.js → Di6XfBOT.js} +1 -1
  210. package/web/app/immutable/chunks/{DSpny-f5.js → DjVrYm-R.js} +1 -1
  211. package/web/app/immutable/chunks/{15pYd3N2.js → Djthn66V.js} +2 -2
  212. package/web/app/immutable/chunks/{DcUrbytI.js → Dk3JYfn4.js} +1 -1
  213. package/web/app/immutable/chunks/{zCyqAg-B.js → DkJafW99.js} +1 -1
  214. package/web/app/immutable/chunks/{O93N6pq0.js → Dkj8SIBR.js} +1 -1
  215. package/web/app/immutable/chunks/{Cnz7jMnR.js → DmVYXUKU.js} +1 -1
  216. package/web/app/immutable/chunks/{DheEnqqs.js → Dmip1qZq.js} +1 -1
  217. package/web/app/immutable/chunks/{NHQHo6R8.js → DoBcYmem.js} +51 -51
  218. package/web/app/immutable/chunks/{DLNq3Dzg.js → DpiQDkOO.js} +1 -1
  219. package/web/app/immutable/chunks/{BLKmUQ7j.js → DpyM727L.js} +1 -1
  220. package/web/app/immutable/chunks/{BQniiLor.js → DqUTyEPN.js} +1 -1
  221. package/web/app/immutable/chunks/{BGWyYsdo.js → Dq_FaIX5.js} +1 -1
  222. package/web/app/immutable/chunks/{CjNKHPKC.js → Ds-TYeKV.js} +2 -2
  223. package/web/app/immutable/chunks/{BEJg4Sbf.js → Ds7can9q.js} +1 -1
  224. package/web/app/immutable/chunks/DsYKN9zh.js +1 -0
  225. package/web/app/immutable/chunks/{CQS12qgy.js → DwbzbVQ3.js} +1 -1
  226. package/web/app/immutable/chunks/{CpTvuo0c.js → Dwola7mR.js} +1 -1
  227. package/web/app/immutable/chunks/{Clzmvd7M.js → DwwMc3td.js} +1 -1
  228. package/web/app/immutable/chunks/{DsEsCHJ8.js → DxyRwm0L.js} +1 -1
  229. package/web/app/immutable/chunks/{CtrmC64x.js → DyQA18KQ.js} +1 -1
  230. package/web/app/immutable/chunks/{Cc3IoHk5.js → DyaiTi8A.js} +2 -2
  231. package/web/app/immutable/chunks/{DvIWu0bM.js → DzMB8eQW.js} +1 -1
  232. package/web/app/immutable/chunks/{DnGYdVeC.js → Dzk1FZ-5.js} +1 -1
  233. package/web/app/immutable/chunks/{ytSsfHOi.js → EPni7PhH.js} +1 -1
  234. package/web/app/immutable/chunks/{BLdRIYgd.js → FcnPtqUv.js} +1 -1
  235. package/web/app/immutable/chunks/{BRiTnHjR.js → GJVVHDkb.js} +1 -1
  236. package/web/app/immutable/chunks/{bG4sEGuX.js → H_dyzYix.js} +1 -1
  237. package/web/app/immutable/chunks/{OtBI4VRo.js → HfuFYz2u.js} +1 -1
  238. package/web/app/immutable/chunks/{B8eIPDu7.js → IrWlayTZ.js} +1 -1
  239. package/web/app/immutable/chunks/{Z5jotNHL.js → J2ZKQ-lu.js} +1 -1
  240. package/web/app/immutable/chunks/{E5HQjq_O.js → JqZ92YB_.js} +1 -1
  241. package/web/app/immutable/chunks/{CONx2grg.js → Jyr4akMd.js} +1 -1
  242. package/web/app/immutable/chunks/{DehyflGo.js → LFOlphb5.js} +1 -1
  243. package/web/app/immutable/chunks/{DO3zoQaK.js → LOxI5KoQ.js} +1 -1
  244. package/web/app/immutable/chunks/{D8EZluP_.js → LoyMyTg_.js} +1 -1
  245. package/web/app/immutable/chunks/{8xUKp1ov.js → NfelpfPi.js} +1 -1
  246. package/web/app/immutable/chunks/{Dq-W9mGx.js → OX_6myWb.js} +3 -3
  247. package/web/app/immutable/chunks/{CJmNIYA9.js → RAzXpC6i.js} +1 -1
  248. package/web/app/immutable/chunks/{PQ1Aq9aw.js → Ri_Gwy-5.js} +1 -1
  249. package/web/app/immutable/chunks/{B45Lzffx.js → S9ot6IO_.js} +1 -1
  250. package/web/app/immutable/chunks/Sk9pLJI5.js +6 -0
  251. package/web/app/immutable/chunks/{DoxEq2_M.js → Tpzyol5T.js} +2 -2
  252. package/web/app/immutable/chunks/{cZgi-_WA.js → U9YbfUz9.js} +1 -1
  253. package/web/app/immutable/chunks/{KLMKvNSD.js → WVYGrHqE.js} +1 -1
  254. package/web/app/immutable/chunks/{BAR22MDD.js → WZHg24tN.js} +1 -1
  255. package/web/app/immutable/chunks/{mxfq8-qS.js → Y4N0iJyK.js} +1 -1
  256. package/web/app/immutable/chunks/{Dq6jwHZ6.js → ZYYtufHC.js} +1 -1
  257. package/web/app/immutable/chunks/{WwLuvBZd.js → _cj4xlwz.js} +1 -1
  258. package/web/app/immutable/chunks/{Bar8ZAyw.js → aVNMqNTp.js} +1 -1
  259. package/web/app/immutable/chunks/{z8qxf2tv.js → bin8Us0N.js} +1 -1
  260. package/web/app/immutable/chunks/{B6f4X6Cq.js → bjlKIwQF.js} +1 -1
  261. package/web/app/immutable/chunks/{DCVW2Y_h.js → cesw6DqW.js} +1 -1
  262. package/web/app/immutable/chunks/{XM2hxWVx.js → cfTDb37Y.js} +1 -1
  263. package/web/app/immutable/chunks/{CE-1ma0H.js → dimBDqRX.js} +1 -1
  264. package/web/app/immutable/chunks/{De5CT8ah.js → fJdmRaXe.js} +1 -1
  265. package/web/app/immutable/chunks/{Byw2XPN_.js → fxR7QMV8.js} +1 -1
  266. package/web/app/immutable/chunks/{CelyhwOb.js → gNzz3jGE.js} +1 -1
  267. package/web/app/immutable/chunks/{Bh5viRl2.js → goXBWNik.js} +1 -1
  268. package/web/app/immutable/chunks/{Buyr-7cI.js → i_sqIi_B.js} +1 -1
  269. package/web/app/immutable/chunks/{DU0lunxS.js → k5qVf45I.js} +1 -1
  270. package/web/app/immutable/chunks/{24W0Bn2s.js → kjKGIJZ6.js} +1 -1
  271. package/web/app/immutable/chunks/{DfwITmIi.js → lKWYFdqV.js} +1 -1
  272. package/web/app/immutable/chunks/{B-fzbhlo.js → lLF0vfI3.js} +1 -1
  273. package/web/app/immutable/chunks/{CuaTp0m1.js → lflImyZ6.js} +2 -2
  274. package/web/app/immutable/chunks/{Bd9QEf8t.js → mf6N49ed.js} +1 -1
  275. package/web/app/immutable/chunks/{kYkRNrrI.js → oCNF8vh8.js} +1 -1
  276. package/web/app/immutable/chunks/{BWShw5FX.js → oPjZ8e3L.js} +1 -1
  277. package/web/app/immutable/chunks/{tLKcAW4W.js → oU2ii1bq.js} +1 -1
  278. package/web/app/immutable/chunks/{C1itrH63.js → pIvHob4a.js} +1 -1
  279. package/web/app/immutable/chunks/{ClyMCKaV.js → pl6-mRrC.js} +1 -1
  280. package/web/app/immutable/chunks/{CDTxQX_O.js → qb0bPcr5.js} +1 -1
  281. package/web/app/immutable/chunks/{C__5IrZC.js → rL78ODLZ.js} +3 -3
  282. package/web/app/immutable/chunks/{Bx-glu6w.js → syg_Gxp6.js} +1 -1
  283. package/web/app/immutable/chunks/v3KbAU5c.js +3 -0
  284. package/web/app/immutable/chunks/{DFBOrRiy.js → vICHfDZm.js} +1 -1
  285. package/web/app/immutable/chunks/{woMOP93x.js → wXtCM_sb.js} +1 -1
  286. package/web/app/immutable/entry/{app.DvoVvHKR.js → app.Cn1_ubOc.js} +3 -3
  287. package/web/app/immutable/entry/start.7mFy7hlx.js +1 -0
  288. package/web/app/immutable/nodes/{0.CUhABBgA.js → 0.wKUTDWdz.js} +1 -1
  289. package/web/app/immutable/nodes/{1.D60NQVeb.js → 1.DxJUaPzW.js} +1 -1
  290. package/web/app/immutable/nodes/{10.C1M6IFRf.js → 10.eeMW9oGM.js} +1 -1
  291. package/web/app/immutable/nodes/{11.CIL0R940.js → 11.DzMcYtgT.js} +1 -1
  292. package/web/app/immutable/nodes/{12.B3DoWG9l.js → 12.BS7aI1vv.js} +1 -1
  293. package/web/app/immutable/nodes/{13.DIkr4OJs.js → 13.Dj6DavrI.js} +3 -3
  294. package/web/app/immutable/nodes/{14.BnWbXEMM.js → 14.DMbmYykJ.js} +2 -2
  295. package/web/app/immutable/nodes/{15.CWOWBkmh.js → 15.BWo3i95L.js} +1 -1
  296. package/web/app/immutable/nodes/{16.DRycmOMe.js → 16.D7z1ouJw.js} +2 -2
  297. package/web/app/immutable/nodes/{2.BnNXzTi0.js → 2.BHOa4yl6.js} +4 -4
  298. package/web/app/immutable/nodes/{3.B1Qb3sEW.js → 3.DLeJMfu1.js} +1 -1
  299. package/web/app/immutable/nodes/{4.TFhi0XIx.js → 4.BEPpJpXB.js} +1 -1
  300. package/web/app/immutable/nodes/{5.BGgJOCw5.js → 5.Cb4CR-KH.js} +2 -2
  301. package/web/app/immutable/nodes/{6.CCZIKTds.js → 6.Bko4vkVy.js} +1 -1
  302. package/web/app/immutable/nodes/{7.CXxgyB8T.js → 7.z66lh95v.js} +1 -1
  303. package/web/app/immutable/nodes/{8.Dcka7hLW.js → 8.Cykwxl0x.js} +4 -4
  304. package/web/app/immutable/nodes/{9.DemnlG5Y.js → 9.Bm3FCmVg.js} +5 -5
  305. package/web/app/version.json +1 -1
  306. package/web/generated/paraglide.js +49 -49
  307. package/web/index.html +18 -18
  308. package/web/app/immutable/chunks/BNADo1Q7.js +0 -1
  309. package/web/app/immutable/chunks/CKKsJ8BG.js +0 -1
  310. package/web/app/immutable/chunks/DEI12D8u.js +0 -1
  311. package/web/app/immutable/chunks/DS2ohrPS.js +0 -1
  312. package/web/app/immutable/chunks/DeiP0erP.js +0 -3
  313. package/web/app/immutable/chunks/DpPiqmjZ.js +0 -184
  314. package/web/app/immutable/chunks/DwhTx6cH.js +0 -1
  315. package/web/app/immutable/chunks/plw0uyc9.js +0 -6
  316. package/web/app/immutable/entry/start.CiTIdCqa.js +0 -1
@@ -1 +1 @@
1
- var j=Object.defineProperty;var V=(s,e,t)=>e in s?j(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var n=(s,e,t)=>V(s,typeof e!="symbol"?e+"":e,t);import{f as x,j as G,p as z}from"./DVkfuwKw.js";import{u as J,o as T,e as A,s as b,l as N,n as U}from"./CpHIRYx9.js";import{bo as $}from"./DEI12D8u.js";class u extends Error{constructor(t){super(t.message);n(this,"code");n(this,"data");n(this,"rpcCode");this.name="BackendError",this.code=t.code,this.data=t.data,this.rpcCode=t.rpcCode}}function Ee(s){return!s||typeof s!="object"?!1:typeof s.rpcCode=="number"}const K=-32003;function Ae(s){return!s||typeof s!="object"?!1:s.rpcCode===K}const Ce=x.refine(s=>s.repository.provider==="github"&&s.kind==="pull-request"||s.repository.provider==="gitlab"&&s.kind==="merge-request"),Oe=J([T({state:A(["available","pending","reconnect-required","restricted","disabled","unsupported","unavailable","unknown"])}),T({state:N("backoff"),retryAt:b()}),T({state:N("unresolved"),reason:A(["missing-provenance","unverified-import","invalid-target","missing-authority","unknown"]).catch("unknown")})]).catch({state:"unknown"}),Ne=T({backendId:b().min(1),sessionId:b().min(1),workspaceId:b().min(1)}).strict();function v(s){return typeof s=="number"&&Number.isSafeInteger(s)&&s>=1}function _e(s){if(s.resource||s.monitorAvailability||s.title===null||s.url===null||s.lastSnapshot===null)return!1;const e=s.lastSnapshot;return!e||!e.availability&&e.isDraft!==null&&e.hasConflicts!==null&&e.isBehind!==null&&Object.values(e.checks).every(t=>t!==null)&&e.approvals.decision!==null&&e.approvals.have!==null&&e.approvals.changesRequested!==null}const Ie=new Set(["agent.getConversation","agent.listUserMessages","agent.getMessageBlock","chat.subscribe","chat.unsubscribe"]);class Y{constructor(e,t,i,o,a,d,y){n(this,"ready");n(this,"acknowledged",!1);n(this,"closed",!1);n(this,"id",0);n(this,"pending",new Map);n(this,"listeners",new Set);n(this,"rejectReady");n(this,"timer");this.socket=e,this.currentSource=o,this.timeoutMs=a,this.onFailure=y,this.ready=new Promise((m,r)=>{this.rejectReady=r,e.onopen=()=>{if(!this.current())return this.fail();this.send("client.hello",{clientId:t,connectionRole:"review-monitor",capabilities:{reviewMonitoring:i}}).then(f=>{const c=f;if(!this.current()||c?.clientId!==t||c?.connectionRole!=="review-monitor"||!v(c?.server?.capabilities?.reviewMonitoring))return this.fail();this.acknowledged=!0,clearTimeout(this.timer),m()},()=>this.fail())}}),this.timer=setTimeout(()=>this.fail(),d),e.onerror=()=>this.fail(),e.onclose=()=>this.fail(),e.onmessage=({data:m})=>{if(!this.current()||typeof m!="string")return;let r;try{r=JSON.parse(m)}catch{return}if(!r||typeof r!="object")return;if(typeof r.method=="string"){if(r.id!=null){try{e.send(JSON.stringify({jsonrpc:"2.0",id:r.id,error:{code:-32601,message:"Method not found"}}))}catch{this.fail()}return}if(this.acknowledged)for(const c of[...this.listeners])c({method:r.method,params:r.params});return}if(typeof r.id!="number")return;const f=this.pending.get(r.id);if(f)if(this.pending.delete(r.id),clearTimeout(f.timer),r.error){const c=r.error.data,g=c&&typeof c=="object"&&"code"in c&&typeof c.code=="string"?c.code:"SERVER_ERROR";f.reject(new u({code:g,message:typeof r.error.message=="string"?r.error.message:"Monitor request failed",data:c,rpcCode:typeof r.error.code=="number"?r.error.code:void 0}))}else f.resolve(r.result)}}current(){return!this.closed&&this.currentSource()}onNotification(e){return this.listeners.add(e),()=>this.listeners.delete(e)}request(e,t){return!this.acknowledged||e==="client.hello"?Promise.reject(this.unavailable()):this.send(e,t)}close(){if(this.closed)return;this.closed=!0,this.acknowledged=!1,clearTimeout(this.timer);const e=this.unavailable();this.rejectReady(e);for(const t of this.pending.values())clearTimeout(t.timer),t.reject(e);this.pending.clear(),this.listeners.clear(),this.socket.onopen=this.socket.onmessage=this.socket.onerror=this.socket.onclose=null;try{this.socket.close()}catch{}}fail(){this.closed||(this.close(),this.onFailure())}unavailable(){return new u({code:"PR_MONITOR_SESSION_RETIRED",message:"Monitor attachment unavailable"})}send(e,t){if(!this.current())return Promise.reject(this.unavailable());const i=++this.id;return new Promise((o,a)=>{const d=setTimeout(()=>{this.pending.delete(i),a(new u({code:"TIMEOUT",message:`JSON-RPC request timed out: ${e}`}))},this.timeoutMs);this.pending.set(i,{resolve:o,reject:a,timer:d});try{this.socket.send(JSON.stringify({jsonrpc:"2.0",id:i,method:e,params:t}))}catch{this.fail()}})}}const X=["agentNodes","localNodeIsolation","agentPlatformRouting","workspaceMembershipEvents","rawScreenshotRetention","chiefAttachments","noteTruncatedRead","remoteMachines","remoteInitialAgent","remoteLinkTraffic"];function Q(s){return Object.freeze(Object.fromEntries(X.map(e=>[e,s?.[e]===1?1:0])))}function Z(s){if(!G(s,11,1))throw new Error($.files_secondaryRoot_unsupported_error())}function ee(s,e,t){te(s,e)&&Z(t)}function te(s,e){if(s!=="file.read"&&s!=="file.readChunk")return!1;const t=e?.gitRootId;return typeof t=="string"&&!!t.trim()}const _=-32012,se="system.startupStatus",ne=1e3,L=1e3,F=3e4,w=U().int().nonnegative().max(Number.MAX_SAFE_INTEGER),ie=T({completedNotes:w,totalNotes:w,processedSourceBytes:w,totalSourceBytes:w}).refine(s=>s.completedNotes<=s.totalNotes&&s.processedSourceBytes<=s.totalSourceBytes),oe=T({startupStatus:N(1),daemonVersion:b().min(1).optional(),attemptId:b().min(1),phase:A(["preparing","indexing","finalizing","ready","failed"]),elapsedMs:w,phaseElapsedMs:w,progressAgeMs:w,retryAfterMs:U().int().min(L).max(F).optional(),progress:ie.optional(),estimatedRemainingMs:w.optional(),finalizingStep:A(["anchors","committing","services"]).optional(),failure:T({code:b().min(1),message:b().min(1)}).optional()}).refine(s=>(s.phase==="ready"||s.phase==="failed"?s.retryAfterMs===void 0:s.retryAfterMs!==void 0)&&(s.phase==="finalizing"?s.finalizingStep!==void 0:s.finalizingStep===void 0)&&(s.phase==="failed"?s.failure!==void 0:s.failure===void 0)&&(s.estimatedRemainingMs===void 0||s.phase==="indexing"));function B(s){const e=oe.safeParse(s);return e.success?e.data:null}function P(s){const e=typeof s=="number"&&Number.isFinite(s)?s:ne;return Math.min(F,Math.max(L,e))}function re(s){const e=s;return typeof e.rpcCode=="number"?e.rpcCode:typeof e.code=="number"?e.code:void 0}function q(s){if(!s||typeof s!="object"||re(s)!==_)return;const e=s.data??{},t=B(e.startup);if(e.code==="daemon-startup-failed"){const i=e.startup?.failure?.message,o=s.message;return{kind:"failed",message:typeof i=="string"&&i.trim()?i:typeof o=="string"?o:"",snapshot:t}}if(!(e.code!=="daemon-not-ready"||e.retryable!==!0))return{kind:"not-ready",retryAfterMs:P(e.retryAfterMs),snapshot:t}}function D(s){const e=s.snapshot??void 0;return s.state==="failed"?{code:_,message:"Daemon startup failed",data:{code:"daemon-startup-failed",retryable:!1,startup:e}}:{code:_,message:"Daemon not ready",data:{code:"daemon-not-ready",retryable:!0,retryAfterMs:P(e?.retryAfterMs),startup:e}}}const ae=5e3,ce=5e3,le=3e4;function he(s){const e=s.snapshot;return JSON.stringify([s.state,s.available,e?.attemptId,e?.phase,e?.finalizingStep,e?.progress?.completedNotes,e?.progress?.totalNotes,e?.estimatedRemainingMs===void 0,(e?.progressAgeMs??0)>=le])}class ue{constructor(e){n(this,"generation",0);n(this,"timer",null);n(this,"snapshot",null);n(this,"lastKey",null);n(this,"lastPublishedAt",0);this.host=e}start(e){this.stop(),this.snapshot=e.snapshot??this.snapshot,this.publish({state:"starting",snapshot:this.snapshot,available:e.snapshot!==null},!0),this.schedule(e.retryAfterMs)}stop(){this.generation++,this.timer&&(clearTimeout(this.timer),this.timer=null)}reset(){this.stop(),this.snapshot=null,this.lastKey=null,this.lastPublishedAt=0}publish(e,t=!1){const i=he(e),o=Date.now();!t&&i===this.lastKey&&o-this.lastPublishedAt<ce||(this.lastKey=i,this.lastPublishedAt=o,this.host.publish(e))}schedule(e){const t=this.generation;this.timer=setTimeout(()=>{if(this.timer=null,t!==this.generation)return;const i=()=>this.poll(t);this.host.track?this.host.track(i):i()},e)}async poll(e){let t;try{t=B(await this.host.request())}catch(i){if(e!==this.generation)return;const o=q(i);if(o?.kind==="failed"){this.stop(),this.host.fail(o.message,o.snapshot);return}if(o?.kind==="not-ready"){this.snapshot=o.snapshot??this.snapshot,this.publish({state:"starting",snapshot:this.snapshot,available:o.snapshot!==null}),this.schedule(o.retryAfterMs);return}this.unavailable();return}if(e===this.generation){if(t===null){this.unavailable();return}if(this.snapshot=t,t.phase==="failed"){this.stop(),this.host.fail(t.failure?.message??"",t);return}if(t.phase==="ready"){this.stop(),this.publish({state:"starting",snapshot:t,available:!0},!0),this.host.handoff(!0);return}this.publish({state:"starting",snapshot:t,available:!0}),this.schedule(P(t.retryAfterMs))}}unavailable(){this.stop(),this.publish({state:"starting",snapshot:this.snapshot,available:!1},!0),this.host.handoff(!1)}}function Pe(s=(()=>{const e=globalThis.__INTENT_RUNTIME_CONFIG__;return e?.intentdWsUrl!==void 0?e.intentdWsUrl:typeof process>"u"?void 0:""})()){if(typeof s!="string")return;const e=s.trim();if(!e)return;if(e.startsWith("/")&&!e.startsWith("//")&&!e.includes("\\")){const o=globalThis.location;if(o?.host&&(o.protocol==="http:"||o.protocol==="https:"))return`${o.protocol==="https:"?"wss:":"ws:"}//${o.host}${e}`;console.warn("[browser-websocket-transport] Ignoring same-origin WebSocket path without an HTTP page origin");return}let t;try{t=new URL(e)}catch{console.warn("[browser-websocket-transport] Ignoring browser WebSocket URL: expected ws:// or wss://");return}if(t.protocol!=="ws:"&&t.protocol!=="wss:"){console.warn("[browser-websocket-transport] Ignoring browser WebSocket URL: expected ws:// or wss://");return}const i=t.hostname==="localhost"||t.hostname==="127.0.0.1"||t.hostname==="[::1]";if(t.protocol==="ws:"&&!i){console.warn("[browser-websocket-transport] Ignoring insecure remote WebSocket URL: use wss://");return}return e}function de(s){try{const e=new URL(s);return e.username="",e.password="",e.search="",e.hash="",e.toString()}catch{return s.replace(/[?#].*$/,"").replace(/^([a-z][a-z0-9+.-]*:\/\/)[^/]*@/i,"$1")}}const fe={[-32700]:"PARSE_ERROR",[-32600]:"INVALID_REQUEST",[-32601]:"METHOD_NOT_FOUND",[-32602]:"INVALID_PARAMS",[-32603]:"INTERNAL_ERROR"};function pe(s){const e=fe[s];return e||(s<=-32e3&&s>=-32099?"SERVER_ERROR":"UNKNOWN_ERROR")}function me(s){if(s&&typeof s=="object"&&"code"in s){const e=s.code;if(typeof e=="string"&&e.length>0)return e}}function O(s){const e=me(s.data)??pe(s.code),t=s.data&&typeof s.data=="object"?{...s.data,code:e}:typeof s.data=="string"&&s.data.length>0?{code:e,detail:s.data}:{code:e};return{code:e,message:s.message,data:t,rpcCode:s.code}}function E(s){if(s instanceof u)return s;const e=s instanceof Error?s.message:String(s);return new u({code:"TRANSPORT_ERROR",message:e,data:{code:"TRANSPORT_ERROR"}})}const ge=3e4,ye=1e3,Re=3e4,Se=1e4,be=5e3;class we{constructor(e){n(this,"url");n(this,"webSocketFactory");n(this,"requestTimeoutMs");n(this,"reconnectDelayMs");n(this,"maxReconnectDelayMs");n(this,"connectTimeoutMs");n(this,"socket",null);n(this,"connected",!1);n(this,"connecting",!1);n(this,"disposed",!1);n(this,"requestId",0);n(this,"currentReconnectDelay");n(this,"reconnectTimer",null);n(this,"connectTimer",null);n(this,"connectWaiters",[]);n(this,"clientId");n(this,"helloConfirmed",!1);n(this,"acknowledgedHello",null);n(this,"nodeCapabilities",null);n(this,"capabilityHelloGeneration",0);n(this,"reviewMonitoring");n(this,"reviewMonitoringRecipient");n(this,"reviewMonitoringEnabled",!1);n(this,"ordinaryHello",!1);n(this,"monitorRetry",null);n(this,"monitorRetirements",new Set);n(this,"monitorReady",new Set);n(this,"protocolVersion",null);n(this,"helloError",new u({code:"UNAVAILABLE",message:"client.hello has not completed on this connection"}));n(this,"pending",new Map);n(this,"hasBeenConnected",!1);n(this,"hasConnectionFailed",!1);n(this,"notificationHandlers",new Set);n(this,"reconnectedHandlers",new Set);n(this,"statusHandlers",new Set);n(this,"lastNotifiedStatus","disconnected");n(this,"startupState",null);n(this,"startupSocket",null);n(this,"startupPoller",new ue({request:()=>{const e=this.startupSocket;return e?this.requestOnSocket(se,void 0,{timeoutMs:ae},e):Promise.reject(this.startupRefusal())},publish:e=>this.updateStartup(e),handoff:e=>this.startupHandoff(e),fail:(e,t)=>this.failStartup(e,t)}));n(this,"startupHandlers",new Set);this.reviewMonitoringEnabled=v(e.reviewMonitoring),this.reviewMonitoringRecipient=v(e.reviewMonitoring)?e.reviewMonitoring:void 0,this.url=e.url,this.webSocketFactory=e.webSocketFactory??(t=>new WebSocket(t)),this.requestTimeoutMs=e.requestTimeoutMs??ge,this.reconnectDelayMs=e.reconnectDelayMs??ye,this.maxReconnectDelayMs=e.maxReconnectDelayMs??Re,this.connectTimeoutMs=e.connectTimeoutMs??Se,this.currentReconnectDelay=this.reconnectDelayMs}isAvailable(){return!this.disposed}async readPrincipal(){if(this.disposed)throw new u({code:"UNAVAILABLE",message:"Backend transport disposed"});const e=await this.ensureConnected(),t=this.capabilityHelloGeneration,i=structuredClone(this.acknowledgedHello),o=()=>!this.disposed&&this.connected&&this.socket===e&&this.capabilityHelloGeneration===t&&this.acknowledgedHello!==null;if(!o())throw this.helloError;const a=await this.requestOnSocket("principal.me",{},void 0,e);if(!o())throw new u({code:"UNAVAILABLE",message:"Principal discovery connection changed"});return{hello:i,principal:a}}async observeNodeCapabilities(){if(this.disposed)throw new u({code:"UNAVAILABLE",message:"Backend transport disposed"});const e=await this.ensureConnected();if(this.disposed||!this.connected||this.socket!==e)throw new u({code:"UNAVAILABLE",message:"Backend connection changed"});return{server:{capabilities:this.nodeCapabilities}}}onMonitorReconnected(e){this.monitorReady.add(e);const t=this.onReconnected(e);return()=>{this.monitorReady.delete(e),t()}}prMonitorBackendId(){return de(this.url)}async capturePrMonitorSession(e){const t=await this.ensureConnected(),i=this.capabilityHelloGeneration,o=()=>new u({code:"PR_MONITOR_SESSION_RETIRED",message:"Monitor connection unavailable"});let a,d=!1;const y=new Set,m=new Set,r=()=>{if(!d){d=!0,this.monitorRetirements.delete(r),a?.close();for(const l of y)l();y.clear()}},f=()=>!d&&!this.disposed&&this.connected&&this.helloConfirmed&&this.socket===t&&i===this.capabilityHelloGeneration,c=()=>f()&&(!a||a.current());if(!c())throw o();this.monitorRetirements.add(r);const g=v(this.reviewMonitoring);let M=g?"consumer-pending":"unsupported";if(g&&this.reviewMonitoringEnabled&&this.ordinaryHello&&this.clientId)try{if(a=new Y(this.webSocketFactory(this.url),this.clientId,Math.min(this.reviewMonitoringRecipient,this.reviewMonitoring),f,this.requestTimeoutMs,this.connectTimeoutMs,()=>{const l=f();r(),l&&this.scheduleMonitorRecovery(t,i)}),await a.ready,!c())throw o();M="supported"}catch(l){const p=f();throw r(),p&&this.scheduleMonitorRecovery(t,i),l}const R=(l,p)=>a?a.request(l,p):this.requestOnSocket(l,p,void 0,t);return{origin:{backendId:this.prMonitorBackendId(),sessionId:crypto.randomUUID(),workspaceId:e},support:M,onRetired(l){return c()?(y.add(l),()=>{y.delete(l)}):(l(),()=>{})},onNotification:l=>(a??this).onNotification(p=>{c()&&l(p)}),request:async(l,p)=>{if(!c()||M==="consumer-pending"||p.workspaceId!==e)throw o();const k=await R(l,p),h=l==="events.subscribe"?k?.subscriptionId:void 0;if(!c())throw h&&this.socket===t&&this.connected&&i===this.capabilityHelloGeneration&&R("events.unsubscribe",{workspaceId:e,subscriptionId:h}).catch(()=>{}),o();return h&&m.add(h),l==="events.unsubscribe"&&m.delete(String(p.subscriptionId)),k},release:async()=>{const l=c();r(),l&&!a&&await Promise.all([...m].map(p=>this.requestOnSocket("events.unsubscribe",{workspaceId:e,subscriptionId:p},void 0,t).catch(()=>{})))}}}request(e,t,i){return this.requestOnSocket(e,t,i)}requestOnSocket(e,t,i,o){if(i?.localMachine)return Promise.reject(new u({code:"UNAVAILABLE",message:"Local machine requests require the desktop bridge"}));if(this.disposed)return Promise.reject(new u({code:"UNAVAILABLE",message:"Backend transport disposed"}));if(!o&&this.startupState?.state==="starting")return Promise.reject(new u(O(D(this.startupState))));const a=++this.requestId,d=i?.timeoutMs,y=typeof d=="number"&&Number.isFinite(d)&&d>0?d:this.requestTimeoutMs;return new Promise((m,r)=>{let f=!1;const c=setTimeout(()=>{f=!0,this.pending.delete(a),r(new u({code:"TIMEOUT",message:`JSON-RPC request timed out: ${e}`,data:{code:"TIMEOUT"}}))},y),g=R=>{clearTimeout(c),r(E(R))},M=R=>{if(f)return;if(this.disposed||this.socket!==R){g(new u({code:"TRANSPORT_ERROR",message:"Connection replaced"}));return}if(e==="presence.update"&&!this.helloConfirmed){g(this.helloError);return}try{ee(e,t,this.protocolVersion)}catch(h){g(h);return}let l=e==="client.hello"&&this.clientId?{clientId:this.clientId,...t}:t;if(e==="client.hello"){const h={...l},S={...h.capabilities};Object.prototype.hasOwnProperty.call(S,"reviewMonitoring")&&(this.reviewMonitoringEnabled=this.reviewMonitoringRecipient!==void 0&&v(S.reviewMonitoring)),delete S.reviewMonitoring,delete h.connectionRole,h.capabilities!==void 0&&(h.capabilities=S),l=h}const p=JSON.stringify({jsonrpc:"2.0",id:a,method:e,params:l}),k=e==="client.hello"?++this.capabilityHelloGeneration:0;if(e==="client.hello"){this.helloConfirmed=!1,this.ordinaryHello=!1,this.clearMonitorRecovery(),this.nodeCapabilities=null,this.reviewMonitoring=void 0;for(const h of[...this.monitorRetirements])h();this.acknowledgedHello=null}this.pending.set(a,{method:e,timeout:c,resolve:h=>{if(e==="client.hello"&&this.socket===R&&k===this.capabilityHelloGeneration){const S=h?.clientId;if(typeof S=="string"&&S.length>0){const H=h.server?.capabilities;if(this.clientId=S,this.reviewMonitoring=H?.reviewMonitoring,this.ordinaryHello=h.connectionRole===void 0,this.acknowledgedHello=structuredClone(h),this.nodeCapabilities=Q(H),this.protocolVersion=z(h.protocolVersion),this.helloConfirmed=!0,this.connected)for(const W of this.monitorReady)W()}}m(h)},reject:r});try{R.send(p)}catch(h){clearTimeout(c),this.pending.delete(a),r(E(h))}};o?M(o):this.connected&&this.socket?M(this.socket):this.ensureConnected().then(M,g)})}async subscribe(e){return this.request("events.subscribe",e)}async unsubscribe(e,t){try{await this.request("events.unsubscribe",{subscriptionId:e,...t!==void 0?{workspaceId:t}:{}})}catch{}}onNotification(e){return this.notificationHandlers.add(e),()=>this.notificationHandlers.delete(e)}onReconnected(e){return this.reconnectedHandlers.add(e),()=>this.reconnectedHandlers.delete(e)}getConnectionStatus(){return this.connected?"connected":this.connecting?"connecting":"disconnected"}getStartupState(){return this.startupState}onStartupChange(e){return this.startupHandlers.add(e),()=>this.startupHandlers.delete(e)}onConnectionStatusChange(e){return this.statusHandlers.add(e),()=>this.statusHandlers.delete(e)}dispose(){if(this.disposed)return;this.disposed=!0,this.clearReconnect(),this.clearConnectTimer();const e=new u({code:"UNAVAILABLE",message:"Backend transport disposed"});this.failPending(e),this.failWaiters(e),this.teardownSocket(),this.connected=!1,this.connecting=!1,this.notifyStatusChange(),this.notificationHandlers.clear(),this.reconnectedHandlers.clear(),this.statusHandlers.clear(),this.startupHandlers.clear()}ensureConnected(){return this.connected&&this.socket?Promise.resolve(this.socket):new Promise((e,t)=>{this.connectWaiters.push({resolve:e,reject:t}),this.start()})}start(){this.disposed||this.socket||this.connecting||this.reconnectTimer||this.connect()}connect(){this.clearReconnect(),this.connecting=!0,this.notifyStatusChange();let e;try{e=this.webSocketFactory(this.url)}catch(t){this.connecting=!1,this.onConnectionFailure(E(t));return}this.socket=e,this.helloConfirmed=!1,this.connectTimer=setTimeout(()=>{this.connectTimer=null,!(this.socket!==e||this.connected)&&(this.connecting=!1,this.onConnectionFailure(new u({code:"TRANSPORT_ERROR",message:`WebSocket connect attempt timed out after ${this.connectTimeoutMs}ms`})))},this.connectTimeoutMs),e.onopen=()=>{this.socket===e&&this.onConnected(e)},e.onmessage=t=>{this.socket===e&&this.onMessage(t.data)},e.onerror=null,e.onclose=()=>{this.socket===e&&(this.connecting=!1,this.onConnectionFailure(new u({code:"TRANSPORT_ERROR",message:"WebSocket connection closed"})))}}onConnected(e){this.clearConnectTimer(),this.performHelloHandshake(e)}async performHelloHandshake(e){try{await this.requestOnSocket("client.hello",{},{timeoutMs:Math.min(this.requestTimeoutMs,be)},e)}catch(o){if(this.disposed||this.socket!==e)return;const a=q(o);if(a){this.enterStartup(e,a);return}this.helloError=E(o)}if(this.disposed||this.socket!==e)return;this.startupPoller.reset(),this.startupSocket=null;const t=this.startupState!==null;this.startupState=null,this.connecting=!1,this.connected=!0,this.currentReconnectDelay=this.reconnectDelayMs;const i=this.hasBeenConnected||this.hasConnectionFailed;if(this.hasBeenConnected=!0,this.hasConnectionFailed=!1,this.notifyStatusChange(),t)for(const o of[...this.startupHandlers])o(null);if(this.flushWaiters(e),i)for(const o of[...this.reconnectedHandlers])o()}onConnectionFailure(e){if(this.clearConnectTimer(),!this.disposed){if(this.startupSocket!==null&&this.startupSocket===this.socket){this.startupHandoff(!0);return}this.startupState?.state==="starting"&&(this.startupPoller.reset(),this.updateStartup(null)),this.hasConnectionFailed=!0,this.connected=!1,this.notifyStatusChange(),this.teardownSocket(),this.failPending(e),this.failWaiters(e),this.scheduleReconnect()}}notifyStatusChange(){const e=this.getConnectionStatus();if(e!==this.lastNotifiedStatus){this.lastNotifiedStatus=e;for(const t of[...this.statusHandlers])t(e)}}onMessage(e){if(typeof e!="string")return;let t;try{t=JSON.parse(e)}catch{console.warn("[browser-websocket-transport] Dropping unparseable frame");return}if(!t||typeof t!="object")return;const i=typeof t.method=="string",o=t.id!=null;if(i&&o){this.sendFrame({jsonrpc:"2.0",id:t.id,error:{code:-32601,message:`Method not found: ${String(t.method)}`}});return}if(o){const a=Number(t.id),d=this.pending.get(a);if(!d)return;this.pending.delete(a),clearTimeout(d.timeout),t.error?d.reject(new u(O(t.error))):d.resolve(t.result);return}if(i){const a={method:t.method,params:t.params};for(const d of[...this.notificationHandlers])d(a)}}sendFrame(e){try{this.socket?.send(JSON.stringify(e))}catch{}}scheduleReconnect(){if(this.disposed||this.reconnectTimer)return;const e=this.currentReconnectDelay;this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.currentReconnectDelay=Math.min(e*2,this.maxReconnectDelayMs),this.disposed||this.connect()},e)}clearReconnect(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}clearConnectTimer(){this.connectTimer&&(clearTimeout(this.connectTimer),this.connectTimer=null)}scheduleMonitorRecovery(e,t){this.monitorRetry||this.disposed||(this.monitorRetry=setTimeout(()=>{if(this.monitorRetry=null,!this.disposed&&this.connected&&this.socket===e&&this.capabilityHelloGeneration===t)for(const i of[...this.monitorReady])i()},this.reconnectDelayMs))}clearMonitorRecovery(){this.monitorRetry&&clearTimeout(this.monitorRetry),this.monitorRetry=null}teardownSocket(){this.startupPoller.stop(),this.startupSocket=null,this.reviewMonitoring=void 0,this.clearMonitorRecovery();for(const t of[...this.monitorRetirements])t();if(this.acknowledgedHello=null,this.nodeCapabilities=null,this.capabilityHelloGeneration+=1,this.protocolVersion=null,!this.socket)return;const e=this.socket;this.socket=null,e.onopen=null,e.onmessage=null,e.onerror=null,e.onclose=null;try{e.close()}catch{}}updateStartup(e){this.startupState=e?Object.freeze({...e}):null;for(const t of[...this.startupHandlers])t(this.startupState)}startupRefusal(){return this.startupState?new u(O(D(this.startupState))):new u({code:"TRANSPORT_ERROR",message:"WebSocket connection closed"})}enterStartup(e,t){if(this.hasConnectionFailed=!0,t.kind==="failed"){this.failStartup(t.message,t.snapshot);return}this.startupSocket=e,this.startupPoller.start(t),this.failWaiters(this.startupRefusal())}startupHandoff(e){const t=this.startupRefusal();if(this.teardownSocket(),this.failPending(t),this.disposed)return;this.connecting=!0,this.notifyStatusChange(),this.clearReconnect();let i=this.reconnectDelayMs;e?this.currentReconnectDelay=this.reconnectDelayMs:(i=this.currentReconnectDelay,this.currentReconnectDelay=Math.min(i*2,this.maxReconnectDelayMs)),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.disposed||this.connect()},i)}failStartup(e,t){this.startupPoller.stop(),this.startupSocket=null,this.hasConnectionFailed=!0,this.updateStartup({state:"failed",snapshot:t,available:t!==null,message:e}),this.connecting=!1,this.onConnectionFailure(this.startupRefusal())}failPending(e){for(const t of this.pending.values())clearTimeout(t.timeout),t.reject(e);this.pending.clear()}flushWaiters(e){const t=this.connectWaiters;this.connectWaiters=[];for(const i of t)i.resolve(e)}failWaiters(e){const t=this.connectWaiters;this.connectWaiters=[];for(const i of t)i.reject(e)}}function He(s){return new we(s)}let C=null;const I=new Set;function De(s){C=s;for(const e of[...I])e(s)}function Ue(){return C}function Le(s){return I.add(s),C&&s(C),()=>I.delete(s)}export{u as B,Oe as M,Ne as P,Ie as R,Ce as a,Ae as b,He as c,_e as d,Pe as e,v as f,Ue as g,Ee as i,Le as o,De as r,de as s};
1
+ var j=Object.defineProperty;var V=(s,e,t)=>e in s?j(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var n=(s,e,t)=>V(s,typeof e!="symbol"?e+"":e,t);import{f as x,j as G,p as z}from"./DVkfuwKw.js";import{u as J,o as T,e as A,s as b,l as N,n as U}from"./CpHIRYx9.js";import{bo as $}from"./D4MoKNoK.js";class u extends Error{constructor(t){super(t.message);n(this,"code");n(this,"data");n(this,"rpcCode");this.name="BackendError",this.code=t.code,this.data=t.data,this.rpcCode=t.rpcCode}}function Ee(s){return!s||typeof s!="object"?!1:typeof s.rpcCode=="number"}const K=-32003;function Ae(s){return!s||typeof s!="object"?!1:s.rpcCode===K}const Ce=x.refine(s=>s.repository.provider==="github"&&s.kind==="pull-request"||s.repository.provider==="gitlab"&&s.kind==="merge-request"),Oe=J([T({state:A(["available","pending","reconnect-required","restricted","disabled","unsupported","unavailable","unknown"])}),T({state:N("backoff"),retryAt:b()}),T({state:N("unresolved"),reason:A(["missing-provenance","unverified-import","invalid-target","missing-authority","unknown"]).catch("unknown")})]).catch({state:"unknown"}),Ne=T({backendId:b().min(1),sessionId:b().min(1),workspaceId:b().min(1)}).strict();function v(s){return typeof s=="number"&&Number.isSafeInteger(s)&&s>=1}function _e(s){if(s.resource||s.monitorAvailability||s.title===null||s.url===null||s.lastSnapshot===null)return!1;const e=s.lastSnapshot;return!e||!e.availability&&e.isDraft!==null&&e.hasConflicts!==null&&e.isBehind!==null&&Object.values(e.checks).every(t=>t!==null)&&e.approvals.decision!==null&&e.approvals.have!==null&&e.approvals.changesRequested!==null}const Ie=new Set(["agent.getConversation","agent.listUserMessages","agent.getMessageBlock","chat.subscribe","chat.unsubscribe"]);class Y{constructor(e,t,i,o,a,d,y){n(this,"ready");n(this,"acknowledged",!1);n(this,"closed",!1);n(this,"id",0);n(this,"pending",new Map);n(this,"listeners",new Set);n(this,"rejectReady");n(this,"timer");this.socket=e,this.currentSource=o,this.timeoutMs=a,this.onFailure=y,this.ready=new Promise((m,r)=>{this.rejectReady=r,e.onopen=()=>{if(!this.current())return this.fail();this.send("client.hello",{clientId:t,connectionRole:"review-monitor",capabilities:{reviewMonitoring:i}}).then(f=>{const c=f;if(!this.current()||c?.clientId!==t||c?.connectionRole!=="review-monitor"||!v(c?.server?.capabilities?.reviewMonitoring))return this.fail();this.acknowledged=!0,clearTimeout(this.timer),m()},()=>this.fail())}}),this.timer=setTimeout(()=>this.fail(),d),e.onerror=()=>this.fail(),e.onclose=()=>this.fail(),e.onmessage=({data:m})=>{if(!this.current()||typeof m!="string")return;let r;try{r=JSON.parse(m)}catch{return}if(!r||typeof r!="object")return;if(typeof r.method=="string"){if(r.id!=null){try{e.send(JSON.stringify({jsonrpc:"2.0",id:r.id,error:{code:-32601,message:"Method not found"}}))}catch{this.fail()}return}if(this.acknowledged)for(const c of[...this.listeners])c({method:r.method,params:r.params});return}if(typeof r.id!="number")return;const f=this.pending.get(r.id);if(f)if(this.pending.delete(r.id),clearTimeout(f.timer),r.error){const c=r.error.data,g=c&&typeof c=="object"&&"code"in c&&typeof c.code=="string"?c.code:"SERVER_ERROR";f.reject(new u({code:g,message:typeof r.error.message=="string"?r.error.message:"Monitor request failed",data:c,rpcCode:typeof r.error.code=="number"?r.error.code:void 0}))}else f.resolve(r.result)}}current(){return!this.closed&&this.currentSource()}onNotification(e){return this.listeners.add(e),()=>this.listeners.delete(e)}request(e,t){return!this.acknowledged||e==="client.hello"?Promise.reject(this.unavailable()):this.send(e,t)}close(){if(this.closed)return;this.closed=!0,this.acknowledged=!1,clearTimeout(this.timer);const e=this.unavailable();this.rejectReady(e);for(const t of this.pending.values())clearTimeout(t.timer),t.reject(e);this.pending.clear(),this.listeners.clear(),this.socket.onopen=this.socket.onmessage=this.socket.onerror=this.socket.onclose=null;try{this.socket.close()}catch{}}fail(){this.closed||(this.close(),this.onFailure())}unavailable(){return new u({code:"PR_MONITOR_SESSION_RETIRED",message:"Monitor attachment unavailable"})}send(e,t){if(!this.current())return Promise.reject(this.unavailable());const i=++this.id;return new Promise((o,a)=>{const d=setTimeout(()=>{this.pending.delete(i),a(new u({code:"TIMEOUT",message:`JSON-RPC request timed out: ${e}`}))},this.timeoutMs);this.pending.set(i,{resolve:o,reject:a,timer:d});try{this.socket.send(JSON.stringify({jsonrpc:"2.0",id:i,method:e,params:t}))}catch{this.fail()}})}}const X=["agentNodes","localNodeIsolation","agentPlatformRouting","workspaceMembershipEvents","rawScreenshotRetention","chiefAttachments","noteTruncatedRead","remoteMachines","remoteInitialAgent","remoteLinkTraffic"];function Q(s){return Object.freeze(Object.fromEntries(X.map(e=>[e,s?.[e]===1?1:0])))}function Z(s){if(!G(s,11,1))throw new Error($.files_secondaryRoot_unsupported_error())}function ee(s,e,t){te(s,e)&&Z(t)}function te(s,e){if(s!=="file.read"&&s!=="file.readChunk")return!1;const t=e?.gitRootId;return typeof t=="string"&&!!t.trim()}const _=-32012,se="system.startupStatus",ne=1e3,L=1e3,F=3e4,w=U().int().nonnegative().max(Number.MAX_SAFE_INTEGER),ie=T({completedNotes:w,totalNotes:w,processedSourceBytes:w,totalSourceBytes:w}).refine(s=>s.completedNotes<=s.totalNotes&&s.processedSourceBytes<=s.totalSourceBytes),oe=T({startupStatus:N(1),daemonVersion:b().min(1).optional(),attemptId:b().min(1),phase:A(["preparing","indexing","finalizing","ready","failed"]),elapsedMs:w,phaseElapsedMs:w,progressAgeMs:w,retryAfterMs:U().int().min(L).max(F).optional(),progress:ie.optional(),estimatedRemainingMs:w.optional(),finalizingStep:A(["anchors","committing","services"]).optional(),failure:T({code:b().min(1),message:b().min(1)}).optional()}).refine(s=>(s.phase==="ready"||s.phase==="failed"?s.retryAfterMs===void 0:s.retryAfterMs!==void 0)&&(s.phase==="finalizing"?s.finalizingStep!==void 0:s.finalizingStep===void 0)&&(s.phase==="failed"?s.failure!==void 0:s.failure===void 0)&&(s.estimatedRemainingMs===void 0||s.phase==="indexing"));function B(s){const e=oe.safeParse(s);return e.success?e.data:null}function P(s){const e=typeof s=="number"&&Number.isFinite(s)?s:ne;return Math.min(F,Math.max(L,e))}function re(s){const e=s;return typeof e.rpcCode=="number"?e.rpcCode:typeof e.code=="number"?e.code:void 0}function q(s){if(!s||typeof s!="object"||re(s)!==_)return;const e=s.data??{},t=B(e.startup);if(e.code==="daemon-startup-failed"){const i=e.startup?.failure?.message,o=s.message;return{kind:"failed",message:typeof i=="string"&&i.trim()?i:typeof o=="string"?o:"",snapshot:t}}if(!(e.code!=="daemon-not-ready"||e.retryable!==!0))return{kind:"not-ready",retryAfterMs:P(e.retryAfterMs),snapshot:t}}function D(s){const e=s.snapshot??void 0;return s.state==="failed"?{code:_,message:"Daemon startup failed",data:{code:"daemon-startup-failed",retryable:!1,startup:e}}:{code:_,message:"Daemon not ready",data:{code:"daemon-not-ready",retryable:!0,retryAfterMs:P(e?.retryAfterMs),startup:e}}}const ae=5e3,ce=5e3,le=3e4;function he(s){const e=s.snapshot;return JSON.stringify([s.state,s.available,e?.attemptId,e?.phase,e?.finalizingStep,e?.progress?.completedNotes,e?.progress?.totalNotes,e?.estimatedRemainingMs===void 0,(e?.progressAgeMs??0)>=le])}class ue{constructor(e){n(this,"generation",0);n(this,"timer",null);n(this,"snapshot",null);n(this,"lastKey",null);n(this,"lastPublishedAt",0);this.host=e}start(e){this.stop(),this.snapshot=e.snapshot??this.snapshot,this.publish({state:"starting",snapshot:this.snapshot,available:e.snapshot!==null},!0),this.schedule(e.retryAfterMs)}stop(){this.generation++,this.timer&&(clearTimeout(this.timer),this.timer=null)}reset(){this.stop(),this.snapshot=null,this.lastKey=null,this.lastPublishedAt=0}publish(e,t=!1){const i=he(e),o=Date.now();!t&&i===this.lastKey&&o-this.lastPublishedAt<ce||(this.lastKey=i,this.lastPublishedAt=o,this.host.publish(e))}schedule(e){const t=this.generation;this.timer=setTimeout(()=>{if(this.timer=null,t!==this.generation)return;const i=()=>this.poll(t);this.host.track?this.host.track(i):i()},e)}async poll(e){let t;try{t=B(await this.host.request())}catch(i){if(e!==this.generation)return;const o=q(i);if(o?.kind==="failed"){this.stop(),this.host.fail(o.message,o.snapshot);return}if(o?.kind==="not-ready"){this.snapshot=o.snapshot??this.snapshot,this.publish({state:"starting",snapshot:this.snapshot,available:o.snapshot!==null}),this.schedule(o.retryAfterMs);return}this.unavailable();return}if(e===this.generation){if(t===null){this.unavailable();return}if(this.snapshot=t,t.phase==="failed"){this.stop(),this.host.fail(t.failure?.message??"",t);return}if(t.phase==="ready"){this.stop(),this.publish({state:"starting",snapshot:t,available:!0},!0),this.host.handoff(!0);return}this.publish({state:"starting",snapshot:t,available:!0}),this.schedule(P(t.retryAfterMs))}}unavailable(){this.stop(),this.publish({state:"starting",snapshot:this.snapshot,available:!1},!0),this.host.handoff(!1)}}function Pe(s=(()=>{const e=globalThis.__INTENT_RUNTIME_CONFIG__;return e?.intentdWsUrl!==void 0?e.intentdWsUrl:typeof process>"u"?void 0:""})()){if(typeof s!="string")return;const e=s.trim();if(!e)return;if(e.startsWith("/")&&!e.startsWith("//")&&!e.includes("\\")){const o=globalThis.location;if(o?.host&&(o.protocol==="http:"||o.protocol==="https:"))return`${o.protocol==="https:"?"wss:":"ws:"}//${o.host}${e}`;console.warn("[browser-websocket-transport] Ignoring same-origin WebSocket path without an HTTP page origin");return}let t;try{t=new URL(e)}catch{console.warn("[browser-websocket-transport] Ignoring browser WebSocket URL: expected ws:// or wss://");return}if(t.protocol!=="ws:"&&t.protocol!=="wss:"){console.warn("[browser-websocket-transport] Ignoring browser WebSocket URL: expected ws:// or wss://");return}const i=t.hostname==="localhost"||t.hostname==="127.0.0.1"||t.hostname==="[::1]";if(t.protocol==="ws:"&&!i){console.warn("[browser-websocket-transport] Ignoring insecure remote WebSocket URL: use wss://");return}return e}function de(s){try{const e=new URL(s);return e.username="",e.password="",e.search="",e.hash="",e.toString()}catch{return s.replace(/[?#].*$/,"").replace(/^([a-z][a-z0-9+.-]*:\/\/)[^/]*@/i,"$1")}}const fe={[-32700]:"PARSE_ERROR",[-32600]:"INVALID_REQUEST",[-32601]:"METHOD_NOT_FOUND",[-32602]:"INVALID_PARAMS",[-32603]:"INTERNAL_ERROR"};function pe(s){const e=fe[s];return e||(s<=-32e3&&s>=-32099?"SERVER_ERROR":"UNKNOWN_ERROR")}function me(s){if(s&&typeof s=="object"&&"code"in s){const e=s.code;if(typeof e=="string"&&e.length>0)return e}}function O(s){const e=me(s.data)??pe(s.code),t=s.data&&typeof s.data=="object"?{...s.data,code:e}:typeof s.data=="string"&&s.data.length>0?{code:e,detail:s.data}:{code:e};return{code:e,message:s.message,data:t,rpcCode:s.code}}function E(s){if(s instanceof u)return s;const e=s instanceof Error?s.message:String(s);return new u({code:"TRANSPORT_ERROR",message:e,data:{code:"TRANSPORT_ERROR"}})}const ge=3e4,ye=1e3,Re=3e4,Se=1e4,be=5e3;class we{constructor(e){n(this,"url");n(this,"webSocketFactory");n(this,"requestTimeoutMs");n(this,"reconnectDelayMs");n(this,"maxReconnectDelayMs");n(this,"connectTimeoutMs");n(this,"socket",null);n(this,"connected",!1);n(this,"connecting",!1);n(this,"disposed",!1);n(this,"requestId",0);n(this,"currentReconnectDelay");n(this,"reconnectTimer",null);n(this,"connectTimer",null);n(this,"connectWaiters",[]);n(this,"clientId");n(this,"helloConfirmed",!1);n(this,"acknowledgedHello",null);n(this,"nodeCapabilities",null);n(this,"capabilityHelloGeneration",0);n(this,"reviewMonitoring");n(this,"reviewMonitoringRecipient");n(this,"reviewMonitoringEnabled",!1);n(this,"ordinaryHello",!1);n(this,"monitorRetry",null);n(this,"monitorRetirements",new Set);n(this,"monitorReady",new Set);n(this,"protocolVersion",null);n(this,"helloError",new u({code:"UNAVAILABLE",message:"client.hello has not completed on this connection"}));n(this,"pending",new Map);n(this,"hasBeenConnected",!1);n(this,"hasConnectionFailed",!1);n(this,"notificationHandlers",new Set);n(this,"reconnectedHandlers",new Set);n(this,"statusHandlers",new Set);n(this,"lastNotifiedStatus","disconnected");n(this,"startupState",null);n(this,"startupSocket",null);n(this,"startupPoller",new ue({request:()=>{const e=this.startupSocket;return e?this.requestOnSocket(se,void 0,{timeoutMs:ae},e):Promise.reject(this.startupRefusal())},publish:e=>this.updateStartup(e),handoff:e=>this.startupHandoff(e),fail:(e,t)=>this.failStartup(e,t)}));n(this,"startupHandlers",new Set);this.reviewMonitoringEnabled=v(e.reviewMonitoring),this.reviewMonitoringRecipient=v(e.reviewMonitoring)?e.reviewMonitoring:void 0,this.url=e.url,this.webSocketFactory=e.webSocketFactory??(t=>new WebSocket(t)),this.requestTimeoutMs=e.requestTimeoutMs??ge,this.reconnectDelayMs=e.reconnectDelayMs??ye,this.maxReconnectDelayMs=e.maxReconnectDelayMs??Re,this.connectTimeoutMs=e.connectTimeoutMs??Se,this.currentReconnectDelay=this.reconnectDelayMs}isAvailable(){return!this.disposed}async readPrincipal(){if(this.disposed)throw new u({code:"UNAVAILABLE",message:"Backend transport disposed"});const e=await this.ensureConnected(),t=this.capabilityHelloGeneration,i=structuredClone(this.acknowledgedHello),o=()=>!this.disposed&&this.connected&&this.socket===e&&this.capabilityHelloGeneration===t&&this.acknowledgedHello!==null;if(!o())throw this.helloError;const a=await this.requestOnSocket("principal.me",{},void 0,e);if(!o())throw new u({code:"UNAVAILABLE",message:"Principal discovery connection changed"});return{hello:i,principal:a}}async observeNodeCapabilities(){if(this.disposed)throw new u({code:"UNAVAILABLE",message:"Backend transport disposed"});const e=await this.ensureConnected();if(this.disposed||!this.connected||this.socket!==e)throw new u({code:"UNAVAILABLE",message:"Backend connection changed"});return{server:{capabilities:this.nodeCapabilities}}}onMonitorReconnected(e){this.monitorReady.add(e);const t=this.onReconnected(e);return()=>{this.monitorReady.delete(e),t()}}prMonitorBackendId(){return de(this.url)}async capturePrMonitorSession(e){const t=await this.ensureConnected(),i=this.capabilityHelloGeneration,o=()=>new u({code:"PR_MONITOR_SESSION_RETIRED",message:"Monitor connection unavailable"});let a,d=!1;const y=new Set,m=new Set,r=()=>{if(!d){d=!0,this.monitorRetirements.delete(r),a?.close();for(const l of y)l();y.clear()}},f=()=>!d&&!this.disposed&&this.connected&&this.helloConfirmed&&this.socket===t&&i===this.capabilityHelloGeneration,c=()=>f()&&(!a||a.current());if(!c())throw o();this.monitorRetirements.add(r);const g=v(this.reviewMonitoring);let M=g?"consumer-pending":"unsupported";if(g&&this.reviewMonitoringEnabled&&this.ordinaryHello&&this.clientId)try{if(a=new Y(this.webSocketFactory(this.url),this.clientId,Math.min(this.reviewMonitoringRecipient,this.reviewMonitoring),f,this.requestTimeoutMs,this.connectTimeoutMs,()=>{const l=f();r(),l&&this.scheduleMonitorRecovery(t,i)}),await a.ready,!c())throw o();M="supported"}catch(l){const p=f();throw r(),p&&this.scheduleMonitorRecovery(t,i),l}const R=(l,p)=>a?a.request(l,p):this.requestOnSocket(l,p,void 0,t);return{origin:{backendId:this.prMonitorBackendId(),sessionId:crypto.randomUUID(),workspaceId:e},support:M,onRetired(l){return c()?(y.add(l),()=>{y.delete(l)}):(l(),()=>{})},onNotification:l=>(a??this).onNotification(p=>{c()&&l(p)}),request:async(l,p)=>{if(!c()||M==="consumer-pending"||p.workspaceId!==e)throw o();const k=await R(l,p),h=l==="events.subscribe"?k?.subscriptionId:void 0;if(!c())throw h&&this.socket===t&&this.connected&&i===this.capabilityHelloGeneration&&R("events.unsubscribe",{workspaceId:e,subscriptionId:h}).catch(()=>{}),o();return h&&m.add(h),l==="events.unsubscribe"&&m.delete(String(p.subscriptionId)),k},release:async()=>{const l=c();r(),l&&!a&&await Promise.all([...m].map(p=>this.requestOnSocket("events.unsubscribe",{workspaceId:e,subscriptionId:p},void 0,t).catch(()=>{})))}}}request(e,t,i){return this.requestOnSocket(e,t,i)}requestOnSocket(e,t,i,o){if(i?.localMachine)return Promise.reject(new u({code:"UNAVAILABLE",message:"Local machine requests require the desktop bridge"}));if(this.disposed)return Promise.reject(new u({code:"UNAVAILABLE",message:"Backend transport disposed"}));if(!o&&this.startupState?.state==="starting")return Promise.reject(new u(O(D(this.startupState))));const a=++this.requestId,d=i?.timeoutMs,y=typeof d=="number"&&Number.isFinite(d)&&d>0?d:this.requestTimeoutMs;return new Promise((m,r)=>{let f=!1;const c=setTimeout(()=>{f=!0,this.pending.delete(a),r(new u({code:"TIMEOUT",message:`JSON-RPC request timed out: ${e}`,data:{code:"TIMEOUT"}}))},y),g=R=>{clearTimeout(c),r(E(R))},M=R=>{if(f)return;if(this.disposed||this.socket!==R){g(new u({code:"TRANSPORT_ERROR",message:"Connection replaced"}));return}if(e==="presence.update"&&!this.helloConfirmed){g(this.helloError);return}try{ee(e,t,this.protocolVersion)}catch(h){g(h);return}let l=e==="client.hello"&&this.clientId?{clientId:this.clientId,...t}:t;if(e==="client.hello"){const h={...l},S={...h.capabilities};Object.prototype.hasOwnProperty.call(S,"reviewMonitoring")&&(this.reviewMonitoringEnabled=this.reviewMonitoringRecipient!==void 0&&v(S.reviewMonitoring)),delete S.reviewMonitoring,delete h.connectionRole,h.capabilities!==void 0&&(h.capabilities=S),l=h}const p=JSON.stringify({jsonrpc:"2.0",id:a,method:e,params:l}),k=e==="client.hello"?++this.capabilityHelloGeneration:0;if(e==="client.hello"){this.helloConfirmed=!1,this.ordinaryHello=!1,this.clearMonitorRecovery(),this.nodeCapabilities=null,this.reviewMonitoring=void 0;for(const h of[...this.monitorRetirements])h();this.acknowledgedHello=null}this.pending.set(a,{method:e,timeout:c,resolve:h=>{if(e==="client.hello"&&this.socket===R&&k===this.capabilityHelloGeneration){const S=h?.clientId;if(typeof S=="string"&&S.length>0){const H=h.server?.capabilities;if(this.clientId=S,this.reviewMonitoring=H?.reviewMonitoring,this.ordinaryHello=h.connectionRole===void 0,this.acknowledgedHello=structuredClone(h),this.nodeCapabilities=Q(H),this.protocolVersion=z(h.protocolVersion),this.helloConfirmed=!0,this.connected)for(const W of this.monitorReady)W()}}m(h)},reject:r});try{R.send(p)}catch(h){clearTimeout(c),this.pending.delete(a),r(E(h))}};o?M(o):this.connected&&this.socket?M(this.socket):this.ensureConnected().then(M,g)})}async subscribe(e){return this.request("events.subscribe",e)}async unsubscribe(e,t){try{await this.request("events.unsubscribe",{subscriptionId:e,...t!==void 0?{workspaceId:t}:{}})}catch{}}onNotification(e){return this.notificationHandlers.add(e),()=>this.notificationHandlers.delete(e)}onReconnected(e){return this.reconnectedHandlers.add(e),()=>this.reconnectedHandlers.delete(e)}getConnectionStatus(){return this.connected?"connected":this.connecting?"connecting":"disconnected"}getStartupState(){return this.startupState}onStartupChange(e){return this.startupHandlers.add(e),()=>this.startupHandlers.delete(e)}onConnectionStatusChange(e){return this.statusHandlers.add(e),()=>this.statusHandlers.delete(e)}dispose(){if(this.disposed)return;this.disposed=!0,this.clearReconnect(),this.clearConnectTimer();const e=new u({code:"UNAVAILABLE",message:"Backend transport disposed"});this.failPending(e),this.failWaiters(e),this.teardownSocket(),this.connected=!1,this.connecting=!1,this.notifyStatusChange(),this.notificationHandlers.clear(),this.reconnectedHandlers.clear(),this.statusHandlers.clear(),this.startupHandlers.clear()}ensureConnected(){return this.connected&&this.socket?Promise.resolve(this.socket):new Promise((e,t)=>{this.connectWaiters.push({resolve:e,reject:t}),this.start()})}start(){this.disposed||this.socket||this.connecting||this.reconnectTimer||this.connect()}connect(){this.clearReconnect(),this.connecting=!0,this.notifyStatusChange();let e;try{e=this.webSocketFactory(this.url)}catch(t){this.connecting=!1,this.onConnectionFailure(E(t));return}this.socket=e,this.helloConfirmed=!1,this.connectTimer=setTimeout(()=>{this.connectTimer=null,!(this.socket!==e||this.connected)&&(this.connecting=!1,this.onConnectionFailure(new u({code:"TRANSPORT_ERROR",message:`WebSocket connect attempt timed out after ${this.connectTimeoutMs}ms`})))},this.connectTimeoutMs),e.onopen=()=>{this.socket===e&&this.onConnected(e)},e.onmessage=t=>{this.socket===e&&this.onMessage(t.data)},e.onerror=null,e.onclose=()=>{this.socket===e&&(this.connecting=!1,this.onConnectionFailure(new u({code:"TRANSPORT_ERROR",message:"WebSocket connection closed"})))}}onConnected(e){this.clearConnectTimer(),this.performHelloHandshake(e)}async performHelloHandshake(e){try{await this.requestOnSocket("client.hello",{},{timeoutMs:Math.min(this.requestTimeoutMs,be)},e)}catch(o){if(this.disposed||this.socket!==e)return;const a=q(o);if(a){this.enterStartup(e,a);return}this.helloError=E(o)}if(this.disposed||this.socket!==e)return;this.startupPoller.reset(),this.startupSocket=null;const t=this.startupState!==null;this.startupState=null,this.connecting=!1,this.connected=!0,this.currentReconnectDelay=this.reconnectDelayMs;const i=this.hasBeenConnected||this.hasConnectionFailed;if(this.hasBeenConnected=!0,this.hasConnectionFailed=!1,this.notifyStatusChange(),t)for(const o of[...this.startupHandlers])o(null);if(this.flushWaiters(e),i)for(const o of[...this.reconnectedHandlers])o()}onConnectionFailure(e){if(this.clearConnectTimer(),!this.disposed){if(this.startupSocket!==null&&this.startupSocket===this.socket){this.startupHandoff(!0);return}this.startupState?.state==="starting"&&(this.startupPoller.reset(),this.updateStartup(null)),this.hasConnectionFailed=!0,this.connected=!1,this.notifyStatusChange(),this.teardownSocket(),this.failPending(e),this.failWaiters(e),this.scheduleReconnect()}}notifyStatusChange(){const e=this.getConnectionStatus();if(e!==this.lastNotifiedStatus){this.lastNotifiedStatus=e;for(const t of[...this.statusHandlers])t(e)}}onMessage(e){if(typeof e!="string")return;let t;try{t=JSON.parse(e)}catch{console.warn("[browser-websocket-transport] Dropping unparseable frame");return}if(!t||typeof t!="object")return;const i=typeof t.method=="string",o=t.id!=null;if(i&&o){this.sendFrame({jsonrpc:"2.0",id:t.id,error:{code:-32601,message:`Method not found: ${String(t.method)}`}});return}if(o){const a=Number(t.id),d=this.pending.get(a);if(!d)return;this.pending.delete(a),clearTimeout(d.timeout),t.error?d.reject(new u(O(t.error))):d.resolve(t.result);return}if(i){const a={method:t.method,params:t.params};for(const d of[...this.notificationHandlers])d(a)}}sendFrame(e){try{this.socket?.send(JSON.stringify(e))}catch{}}scheduleReconnect(){if(this.disposed||this.reconnectTimer)return;const e=this.currentReconnectDelay;this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.currentReconnectDelay=Math.min(e*2,this.maxReconnectDelayMs),this.disposed||this.connect()},e)}clearReconnect(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}clearConnectTimer(){this.connectTimer&&(clearTimeout(this.connectTimer),this.connectTimer=null)}scheduleMonitorRecovery(e,t){this.monitorRetry||this.disposed||(this.monitorRetry=setTimeout(()=>{if(this.monitorRetry=null,!this.disposed&&this.connected&&this.socket===e&&this.capabilityHelloGeneration===t)for(const i of[...this.monitorReady])i()},this.reconnectDelayMs))}clearMonitorRecovery(){this.monitorRetry&&clearTimeout(this.monitorRetry),this.monitorRetry=null}teardownSocket(){this.startupPoller.stop(),this.startupSocket=null,this.reviewMonitoring=void 0,this.clearMonitorRecovery();for(const t of[...this.monitorRetirements])t();if(this.acknowledgedHello=null,this.nodeCapabilities=null,this.capabilityHelloGeneration+=1,this.protocolVersion=null,!this.socket)return;const e=this.socket;this.socket=null,e.onopen=null,e.onmessage=null,e.onerror=null,e.onclose=null;try{e.close()}catch{}}updateStartup(e){this.startupState=e?Object.freeze({...e}):null;for(const t of[...this.startupHandlers])t(this.startupState)}startupRefusal(){return this.startupState?new u(O(D(this.startupState))):new u({code:"TRANSPORT_ERROR",message:"WebSocket connection closed"})}enterStartup(e,t){if(this.hasConnectionFailed=!0,t.kind==="failed"){this.failStartup(t.message,t.snapshot);return}this.startupSocket=e,this.startupPoller.start(t),this.failWaiters(this.startupRefusal())}startupHandoff(e){const t=this.startupRefusal();if(this.teardownSocket(),this.failPending(t),this.disposed)return;this.connecting=!0,this.notifyStatusChange(),this.clearReconnect();let i=this.reconnectDelayMs;e?this.currentReconnectDelay=this.reconnectDelayMs:(i=this.currentReconnectDelay,this.currentReconnectDelay=Math.min(i*2,this.maxReconnectDelayMs)),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.disposed||this.connect()},i)}failStartup(e,t){this.startupPoller.stop(),this.startupSocket=null,this.hasConnectionFailed=!0,this.updateStartup({state:"failed",snapshot:t,available:t!==null,message:e}),this.connecting=!1,this.onConnectionFailure(this.startupRefusal())}failPending(e){for(const t of this.pending.values())clearTimeout(t.timeout),t.reject(e);this.pending.clear()}flushWaiters(e){const t=this.connectWaiters;this.connectWaiters=[];for(const i of t)i.resolve(e)}failWaiters(e){const t=this.connectWaiters;this.connectWaiters=[];for(const i of t)i.reject(e)}}function He(s){return new we(s)}let C=null;const I=new Set;function De(s){C=s;for(const e of[...I])e(s)}function Ue(){return C}function Le(s){return I.add(s),C&&s(C),()=>I.delete(s)}export{u as B,Oe as M,Ne as P,Ie as R,Ce as a,Ae as b,He as c,_e as d,Pe as e,v as f,Ue as g,Ee as i,Le as o,De as r,de as s};
@@ -1 +1 @@
1
- import{a,r as w,ad as x}from"./BeYVLVXM.js";var g=a((e,t,i,r)=>{e.attr("class",i);const{width:o,height:h,x:n,y:c}=u(e,t);w(e,h,o,r);const s=d(n,c,o,h,t);e.attr("viewBox",s),x.debug(`viewBox configured: ${s} with padding: ${t}`)},"setupViewPortForSVG"),u=a((e,t)=>{const i=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+t*2,height:i.height+t*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),d=a((e,t,i,r,o)=>`${e-o} ${t-o} ${i} ${r}`,"createViewBox");export{g as s};
1
+ import{a,r as w,ad as x}from"./CRQOCmwo.js";var g=a((e,t,i,r)=>{e.attr("class",i);const{width:o,height:h,x:n,y:c}=u(e,t);w(e,h,o,r);const s=d(n,c,o,h,t);e.attr("viewBox",s),x.debug(`viewBox configured: ${s} with padding: ${t}`)},"setupViewPortForSVG"),u=a((e,t)=>{const i=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+t*2,height:i.height+t*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),d=a((e,t,i,r,o)=>`${e-o} ${t-o} ${i} ${r}`,"createViewBox");export{g as s};
@@ -0,0 +1 @@
1
+ import{nv as r}from"./C51KzdSG.js";import{aA as o}from"./dimBDqRX.js";function c(n,e){if(!e)return!0;const t=o.select(n,e);return!!t&&!r(t)}export{c};