@qqbrowser/openclaw-qbot 0.0.142 → 0.0.144

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 (257) hide show
  1. package/dist/{agents-Bpp_F5In.js → agents-D3Z05GqK.js} +2 -2
  2. package/dist/{agents.config-DfIJAGcd.js → agents.config-BUQjISaN.js} +2 -2
  3. package/dist/{agents.config-B6LRG9eP.js → agents.config-BvxrGqOT.js} +2 -2
  4. package/dist/{auth-choice-DvTApGhx.js → auth-choice-CYGzLW73.js} +2 -2
  5. package/dist/{auth-choice-EQdNd7jO.js → auth-choice-DJn6683d.js} +2 -2
  6. package/dist/{banner-9u45RL26.js → banner-xQa2kS6O.js} +2 -2
  7. package/dist/build-info.json +3 -3
  8. package/dist/bundled/boot-md/handler.js +1 -1
  9. package/dist/bundled/session-memory/handler.js +1 -1
  10. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  11. package/dist/{channel-options-D2syI791.js → channel-options-BurUBfoY.js} +2 -2
  12. package/dist/{channel-options-CEIzjOno.js → channel-options-Ce8uNnAp.js} +2 -2
  13. package/dist/{channel-web-BrElpZAc.js → channel-web-D5TgFlMz.js} +2 -2
  14. package/dist/{channel-web-CxHbET4B.js → channel-web-D7FkrASC.js} +2 -2
  15. package/dist/{channels-cli-BmAJuuRs.js → channels-cli-BfzZrnkt.js} +2 -2
  16. package/dist/{channels-cli-Dgosczr6.js → channels-cli-DFI6F6G0.js} +2 -2
  17. package/dist/{cli-D8T2tphD.js → cli-CMLvfh6N.js} +2 -2
  18. package/dist/{cli-BcnoCo4z.js → cli-MTpYYgjl.js} +2 -2
  19. package/dist/{command-registry-CfuXCRwV.js → command-registry-CSBvrqwW.js} +2 -2
  20. package/dist/{compact-Dg66DXx_.js → compact-BEeB6bwq.js} +7 -7
  21. package/dist/{compact.runtime-3mTLUPqu.js → compact.runtime-BC7F7HPJ.js} +1 -1
  22. package/dist/{compact.runtime-DcTdUW4o.js → compact.runtime-BTUQRS-2.js} +1 -1
  23. package/dist/{compact.runtime-Bhewj5vA.js → compact.runtime-C0GyLWem.js} +1 -1
  24. package/dist/{compact.runtime-XXtYlNJN.js → compact.runtime-CrOFsO5D.js} +1 -1
  25. package/dist/{completion-cli-BZi4nuQb.js → completion-cli-Bizog38J.js} +2 -2
  26. package/dist/{completion-cli-C40TWdsv.js → completion-cli-W1_FoDFF.js} +2 -2
  27. package/dist/{config-cli-CBte2b1h.js → config-cli-B9hEiZsw.js} +2 -2
  28. package/dist/{config-cli-1ojSLwAj.js → config-cli-BNTGUqL_.js} +2 -2
  29. package/dist/{configure-kod4tmZa.js → configure-DForkh7R.js} +2 -2
  30. package/dist/{configure-DJrNDEpR.js → configure-DR77VUCy.js} +2 -2
  31. package/dist/{deps-send-whatsapp.runtime-C4O9crnk.js → deps-send-whatsapp.runtime-BuIiTn5n.js} +1 -1
  32. package/dist/{deps-send-whatsapp.runtime-5Lot99zq.js → deps-send-whatsapp.runtime-C4hGmfeP.js} +1 -1
  33. package/dist/{deps-send-whatsapp.runtime-LiNvHd_E.js → deps-send-whatsapp.runtime-CYlLppMS.js} +1 -1
  34. package/dist/{deps-send-whatsapp.runtime-Bg-_kVX6.js → deps-send-whatsapp.runtime-FY-HuZ5S.js} +1 -1
  35. package/dist/{doctor-completion-BJ6steqx.js → doctor-completion-Da0cocZX.js} +2 -2
  36. package/dist/{doctor-completion-DMJhfrtC.js → doctor-completion-DpCWb88H.js} +2 -2
  37. package/dist/entry.js +1 -1
  38. package/dist/extensionAPI.js +1 -1
  39. package/dist/{gateway-cli-CKu0FA7D.js → gateway-cli-C4YOlz3m.js} +6 -6
  40. package/dist/{gateway-cli-C_s9eMlC.js → gateway-cli-D78GfbjG.js} +6 -6
  41. package/dist/{health-PaRHFItm.js → health-DBu0V1Y-.js} +2 -2
  42. package/dist/{health-BgOggK9k.js → health-RQzDNQwf.js} +2 -2
  43. package/dist/{hooks-cli-CsBrScq0.js → hooks-cli-B3eDoEHO.js} +2 -2
  44. package/dist/{hooks-cli-BzyzTNBx.js → hooks-cli-xgORhqZ2.js} +2 -2
  45. package/dist/index.js +2 -2
  46. package/dist/llm-slug-generator.js +1 -1
  47. package/dist/{models-C_Vg3Cty.js → models-BEO5lvkx.js} +2 -2
  48. package/dist/{models-cli-CDZliTXq.js → models-cli-BbcJ6A0F.js} +2 -2
  49. package/dist/{models-cli-bGr8jwAb.js → models-cli-Dacwv6BY.js} +2 -2
  50. package/dist/{npm-resolution-DWPloph4.js → npm-resolution-Bui58Ks1.js} +2 -2
  51. package/dist/{npm-resolution-BnJGLwhi.js → npm-resolution-Ct6MRtq6.js} +2 -2
  52. package/dist/{onboard-B0BNCQaO.js → onboard-2iF3lTUI.js} +3 -3
  53. package/dist/{onboard-CjVhdaiR.js → onboard-B9ouFJC7.js} +3 -3
  54. package/dist/{onboard-channels-CZK_7xMR.js → onboard-channels-BXReNh4B.js} +2 -2
  55. package/dist/{onboard-channels-BMIOddLN.js → onboard-channels-CjXCpXI-.js} +2 -2
  56. package/dist/{onboarding-B6ixWwgp.js → onboarding-BTBbx6Ka.js} +2 -2
  57. package/dist/{onboarding-ouEqUuUr.js → onboarding-TkoOoq9D.js} +2 -2
  58. package/dist/{onboarding.finalize-Bgat5Npc.js → onboarding.finalize-C9QGFQpa.js} +2 -2
  59. package/dist/{onboarding.finalize-DsMVlTcH.js → onboarding.finalize-CwjLMPKK.js} +2 -2
  60. package/dist/{pi-embedded-BZSn84Bh.js → pi-embedded-B_6OtP8m.js} +7 -7
  61. package/dist/{pi-embedded-Dsz7p3MF.js → pi-embedded-DjX-gdoY.js} +7 -7
  62. package/dist/{plugin-registry-CIBiHZH1.js → plugin-registry-CI5K3iWc.js} +2 -2
  63. package/dist/{plugin-registry-C6dY-Et7.js → plugin-registry-CYlBYbc8.js} +2 -2
  64. package/dist/plugin-sdk/{channel-web-9zn1Itpg.cjs → channel-web-BSUPSLCU.cjs} +2 -2
  65. package/dist/plugin-sdk/{channel-web-4ZQVqsrt.js → channel-web-CeSPyNTh.js} +2 -2
  66. package/dist/plugin-sdk/{channel-web-BrB00HKH.js → channel-web-Cptth4mc.js} +2 -2
  67. package/dist/plugin-sdk/{channel-web-DN5La-Ol.cjs → channel-web-D4x22KPN.cjs} +2 -2
  68. package/dist/plugin-sdk/{compact.runtime-8oUv1ld1.cjs → compact.runtime-BDgWntMu.cjs} +1 -1
  69. package/dist/plugin-sdk/{compact.runtime-CmJayEYX.js → compact.runtime-BJFMaTF4.js} +1 -1
  70. package/dist/plugin-sdk/{compact.runtime-BjJCBESR.cjs → compact.runtime-BWadwUyE.cjs} +1 -1
  71. package/dist/plugin-sdk/{compact.runtime-ALKRoVEG.js → compact.runtime-Bfu2rMai.js} +1 -1
  72. package/dist/plugin-sdk/{compact.runtime-DBlESOSV.cjs → compact.runtime-Cg47oUHq.cjs} +1 -1
  73. package/dist/plugin-sdk/{compact.runtime-Dmc0G6Yn.js → compact.runtime-CqK86P7R.js} +1 -1
  74. package/dist/plugin-sdk/{compact.runtime-Chumwp0K.cjs → compact.runtime-CqrB25-A.cjs} +1 -1
  75. package/dist/plugin-sdk/{compact.runtime-Ddfxp3fz.js → compact.runtime-DeATtENL.js} +1 -1
  76. package/dist/plugin-sdk/{compact.runtime-C_dc78Lp.cjs → compact.runtime-GMu30Jmw.cjs} +1 -1
  77. package/dist/plugin-sdk/{compact.runtime-ZrApPcrV.js → compact.runtime-YFzugj-k.js} +1 -1
  78. package/dist/plugin-sdk/{compact.runtime-BF4SCZ-5.js → compact.runtime-a8Z4_6wu.js} +1 -1
  79. package/dist/plugin-sdk/{compact.runtime-CbzQiVEW.cjs → compact.runtime-jGNfnpo2.cjs} +1 -1
  80. package/dist/plugin-sdk/compat.cjs +1 -1
  81. package/dist/plugin-sdk/compat.js +1 -1
  82. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-BEDFRjff.js → deps-send-whatsapp.runtime-23E2Ab5R.js} +1 -1
  83. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-QY0XTSgX.cjs → deps-send-whatsapp.runtime-B1oA3XBA.cjs} +1 -1
  84. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-Du_3Rw7K.cjs → deps-send-whatsapp.runtime-C8q_3sOf.cjs} +1 -1
  85. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-DMeaTnvE.cjs → deps-send-whatsapp.runtime-CsebM75z.cjs} +1 -1
  86. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-CrVVnzLl.js → deps-send-whatsapp.runtime-D3mYdwaT.js} +1 -1
  87. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-DR4rvUQL.js → deps-send-whatsapp.runtime-DDwUEbJ8.js} +1 -1
  88. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-BULlOkpi.cjs → deps-send-whatsapp.runtime-Di3p_3Eh.cjs} +1 -1
  89. package/dist/plugin-sdk/{deps-send-whatsapp.runtime--uXLMs1C.js → deps-send-whatsapp.runtime-JzRD4jTI.js} +1 -1
  90. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-BRjb9631.cjs → deps-send-whatsapp.runtime-gEp895yA.cjs} +1 -1
  91. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-VQXeRmRl.js → deps-send-whatsapp.runtime-iV5E6CHf.js} +1 -1
  92. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-2Us9O7dL.cjs → deps-send-whatsapp.runtime-k0yGrhs2.cjs} +1 -1
  93. package/dist/plugin-sdk/{deps-send-whatsapp.runtime-BfV5Q2fx.js → deps-send-whatsapp.runtime-v3sqBoDg.js} +1 -1
  94. package/dist/plugin-sdk/{dispatch-C2YTqGlf.js → dispatch-3PrSaGZi.js} +7 -7
  95. package/dist/plugin-sdk/{dispatch-DHbSBeFJ.js → dispatch-Bcf1uPHo.js} +7 -7
  96. package/dist/plugin-sdk/{dispatch-SWyfAZT0.cjs → dispatch-BgGE9usQ.cjs} +7 -7
  97. package/dist/plugin-sdk/{dispatch-BYlcmJ9u.js → dispatch-BhUN9ZDP.js} +7 -7
  98. package/dist/plugin-sdk/{dispatch-DK5ub8qa.cjs → dispatch-C3k8j6Zb.cjs} +7 -7
  99. package/dist/plugin-sdk/{dispatch-DCSwqteL.js → dispatch-C_gJPvbD.js} +7 -7
  100. package/dist/plugin-sdk/{dispatch-5v3v8zzA.js → dispatch-Df8B7owq.js} +7 -7
  101. package/dist/plugin-sdk/{dispatch-CNy3g9ma.cjs → dispatch-YK0qHNtb.cjs} +7 -7
  102. package/dist/plugin-sdk/{dispatch-B6UbZCpL.cjs → dispatch-_fZDA253.cjs} +7 -7
  103. package/dist/plugin-sdk/{dispatch-mR2vLkGa.cjs → dispatch-wEH2eS4y.cjs} +7 -7
  104. package/dist/plugin-sdk/index.cjs +1 -1
  105. package/dist/plugin-sdk/index.js +1 -1
  106. package/dist/plugin-sdk/irc.cjs +1 -1
  107. package/dist/plugin-sdk/irc.js +1 -1
  108. package/dist/plugin-sdk/matrix.cjs +1 -1
  109. package/dist/plugin-sdk/matrix.js +1 -1
  110. package/dist/plugin-sdk/msteams.cjs +1 -1
  111. package/dist/plugin-sdk/msteams.js +1 -1
  112. package/dist/plugin-sdk/nextcloud-talk.cjs +1 -1
  113. package/dist/plugin-sdk/nextcloud-talk.js +1 -1
  114. package/dist/plugin-sdk/{reply-0zCEbT4w.cjs → reply-BoWg-IXT.cjs} +7 -7
  115. package/dist/plugin-sdk/{reply-D-f2bbXy.js → reply-bS9U9BwG.js} +7 -7
  116. package/dist/plugin-sdk/{slash-dispatch.runtime-CNhhOTEP.js → slash-dispatch.runtime-4y3z-kPo.js} +1 -1
  117. package/dist/plugin-sdk/{slash-dispatch.runtime-B3b2L4iH.js → slash-dispatch.runtime-BRr9YGOs.js} +1 -1
  118. package/dist/plugin-sdk/{slash-dispatch.runtime-CPPp4KKH.cjs → slash-dispatch.runtime-BtdMVJQe.cjs} +1 -1
  119. package/dist/plugin-sdk/{slash-dispatch.runtime-Dw9M-fvv.js → slash-dispatch.runtime-C6iak1_0.js} +1 -1
  120. package/dist/plugin-sdk/{slash-dispatch.runtime-BoTYqNiv.js → slash-dispatch.runtime-CMx727dE.js} +1 -1
  121. package/dist/plugin-sdk/{slash-dispatch.runtime-CaWoVNJu.cjs → slash-dispatch.runtime-CXXaAMYa.cjs} +1 -1
  122. package/dist/plugin-sdk/{slash-dispatch.runtime-DbheDKxM.cjs → slash-dispatch.runtime-Cvom2Onl.cjs} +1 -1
  123. package/dist/plugin-sdk/{slash-dispatch.runtime-DpBWBF7J.js → slash-dispatch.runtime-D00kIROj.js} +1 -1
  124. package/dist/plugin-sdk/{slash-dispatch.runtime-DSQ2U0MM.cjs → slash-dispatch.runtime-DEu-D4XB.cjs} +1 -1
  125. package/dist/plugin-sdk/{slash-dispatch.runtime-Bu6Gwr3m.cjs → slash-dispatch.runtime-DG7_jQXD.cjs} +1 -1
  126. package/dist/plugin-sdk/{slash-dispatch.runtime-CCEMBSm2.cjs → slash-dispatch.runtime-DVP1q-_z.cjs} +1 -1
  127. package/dist/plugin-sdk/{slash-dispatch.runtime-Dm_cVnlq.js → slash-dispatch.runtime-U6qjtCfd.js} +1 -1
  128. package/dist/plugin-sdk/{subagent-registry-runtime-bVH8kl6Y.js → subagent-registry-runtime-BD_DkCmR.js} +1 -1
  129. package/dist/plugin-sdk/{subagent-registry-runtime-Der4fbZK.cjs → subagent-registry-runtime-BWiMCyG_.cjs} +1 -1
  130. package/dist/plugin-sdk/{subagent-registry-runtime-Pp_rfnk0.js → subagent-registry-runtime-C6vGkwe9.js} +1 -1
  131. package/dist/plugin-sdk/{subagent-registry-runtime-B0cZ_eaC.cjs → subagent-registry-runtime-CCcI3vhb.cjs} +1 -1
  132. package/dist/plugin-sdk/{subagent-registry-runtime-B-P4w-z9.js → subagent-registry-runtime-CDCU--WW.js} +1 -1
  133. package/dist/plugin-sdk/{subagent-registry-runtime-Ciev9m2W.cjs → subagent-registry-runtime-D98xiwmA.cjs} +1 -1
  134. package/dist/plugin-sdk/{subagent-registry-runtime-DBPvxiJW.cjs → subagent-registry-runtime-LebBdxD7.cjs} +1 -1
  135. package/dist/plugin-sdk/{subagent-registry-runtime-BfmeSbXD.cjs → subagent-registry-runtime-MfHdezNY.cjs} +1 -1
  136. package/dist/plugin-sdk/{subagent-registry-runtime-CL0sdx5J.cjs → subagent-registry-runtime-bMabqk9V.cjs} +1 -1
  137. package/dist/plugin-sdk/{subagent-registry-runtime-DH_Jx5hU.js → subagent-registry-runtime-h3qrqiJH.js} +1 -1
  138. package/dist/plugin-sdk/{subagent-registry-runtime-CEvE9keW.js → subagent-registry-runtime-tmI7JUke.js} +1 -1
  139. package/dist/plugin-sdk/{subagent-registry-runtime-Du8BhjzJ.js → subagent-registry-runtime-uC8wbfNS.js} +1 -1
  140. package/dist/plugin-sdk/{web-BdnQzLgF.js → web-9Os8v8Cu.js} +2 -2
  141. package/dist/plugin-sdk/{web-pcTha_l7.cjs → web-BQ9hOKe8.cjs} +2 -2
  142. package/dist/plugin-sdk/{web-C9T7tf6w.js → web-Bjk0MWu3.js} +2 -2
  143. package/dist/plugin-sdk/{web-_tj8xNZE.js → web-BsmnVZaX.js} +2 -2
  144. package/dist/plugin-sdk/{web-B2PwjHsu.cjs → web-CUbdclQS.cjs} +2 -2
  145. package/dist/plugin-sdk/{web-CcYBsmAj.cjs → web-C_Vx3mgY.cjs} +1 -1
  146. package/dist/plugin-sdk/{web-BZoOYDwf.js → web-Cdo1e0C7.js} +1 -1
  147. package/dist/plugin-sdk/{web-CODD4ksc.cjs → web-CfTkaUMk.cjs} +2 -2
  148. package/dist/plugin-sdk/{web-24o5tNe3.js → web-DkmdYSZ8.js} +1 -1
  149. package/dist/plugin-sdk/{web-B-QDcVRv.cjs → web-DpGXJ6SQ.cjs} +2 -2
  150. package/dist/plugin-sdk/{web-Czl9vNVv.cjs → web-DuF9udb6.cjs} +1 -1
  151. package/dist/plugin-sdk/{web-CkdCvvR-.js → web-Jr2J55LO.js} +2 -2
  152. package/dist/plugin-sdk/whatsapp.cjs +1 -1
  153. package/dist/plugin-sdk/whatsapp.js +1 -1
  154. package/dist/{plugins-cli-BiVMAr5T.js → plugins-cli-BzJeq-CW.js} +2 -2
  155. package/dist/{plugins-cli-BbjMbzJU.js → plugins-cli-o74CJV4A.js} +2 -2
  156. package/dist/{program-BrAZTwFr.js → program-CCS3CIqA.js} +3 -3
  157. package/dist/{program-context-B9ydtPje.js → program-context-lyPXjPfN.js} +2 -2
  158. package/dist/{prompt-select-styled-DIOWLjl0.js → prompt-select-styled-DmTwJKOO.js} +2 -2
  159. package/dist/{prompt-select-styled-BeJNbzSa.js → prompt-select-styled-Z30OVmpM.js} +2 -2
  160. package/dist/{provider-auth-helpers-pBVCjBj9.js → provider-auth-helpers-BzlcSA6U.js} +2 -2
  161. package/dist/{provider-auth-helpers-1lU43eTW.js → provider-auth-helpers-CDIiLD1m.js} +2 -2
  162. package/dist/{push-apns-BGUOmD5M.js → push-apns-CrAWstBo.js} +2 -2
  163. package/dist/{push-apns-B_a2MBJ4.js → push-apns-CrMV74Qs.js} +2 -2
  164. package/dist/{register.agent-CX78s_X9.js → register.agent-CisptTv_.js} +2 -2
  165. package/dist/{register.agent-DLDKQENq.js → register.agent-Dl2Ef-K5.js} +2 -2
  166. package/dist/{register.configure-BA5u9hT3.js → register.configure-CvPihXst.js} +2 -2
  167. package/dist/{register.configure-BhPtf3Qo.js → register.configure-D8bJJ16k.js} +2 -2
  168. package/dist/{register.maintenance-r_MzNK3-.js → register.maintenance-COWBeetm.js} +2 -2
  169. package/dist/{register.maintenance-BhsBepKS.js → register.maintenance-vhmmqtIi.js} +2 -2
  170. package/dist/{register.message-CTF--Z2a.js → register.message-3zVHQZ27.js} +2 -2
  171. package/dist/{register.message-jcZ875be.js → register.message-CM_Qudzn.js} +2 -2
  172. package/dist/{register.onboard-CNwnStUk.js → register.onboard-CJZKG0PP.js} +2 -2
  173. package/dist/{register.onboard-C3yL50_c.js → register.onboard-CaFl_mB1.js} +2 -2
  174. package/dist/{register.setup-BRJMzgfU.js → register.setup-CSW03BKj.js} +2 -2
  175. package/dist/{register.setup-BvsS-zgm.js → register.setup-DDkBFyvF.js} +2 -2
  176. package/dist/{register.status-health-sessions-Dqmkw820.js → register.status-health-sessions-BXiMraHZ.js} +2 -2
  177. package/dist/{register.status-health-sessions-DVc__2pc.js → register.status-health-sessions-Bo9VWxLG.js} +2 -2
  178. package/dist/{register.subclis-D-24j83X.js → register.subclis-B_0ZS-_K.js} +2 -2
  179. package/dist/{reply-l-Y47HP4.js → reply-CjyZeZ-j.js} +7 -7
  180. package/dist/{run-main-B_YBE_TN.js → run-main-CV49c7uu.js} +2 -2
  181. package/dist/{server-node-events-CFSY_-4t.js → server-node-events-BWiQg1NL.js} +2 -2
  182. package/dist/{server-node-events-ZFwmPwQ-.js → server-node-events-DicMyck-.js} +2 -2
  183. package/dist/{slash-dispatch.runtime-pdAIQrzR.js → slash-dispatch.runtime-CGgP5dBX.js} +1 -1
  184. package/dist/{slash-dispatch.runtime-CKWXmLO1.js → slash-dispatch.runtime-CknX8Fkv.js} +1 -1
  185. package/dist/{slash-dispatch.runtime-DIR5H2MY.js → slash-dispatch.runtime-CoKGpcpS.js} +1 -1
  186. package/dist/{slash-dispatch.runtime-14ABU-DD.js → slash-dispatch.runtime-pSpPe8qL.js} +1 -1
  187. package/dist/{status-DYqPF0rB.js → status-BoL8-JxA.js} +2 -2
  188. package/dist/{status-JIPeVrsc.js → status-DEAX-TLb.js} +2 -2
  189. package/dist/{subagent-registry-runtime-rPbwTnju.js → subagent-registry-runtime-2Nh6-7ym.js} +1 -1
  190. package/dist/{subagent-registry-runtime-DTVXQJOP.js → subagent-registry-runtime-CG_2Atu3.js} +1 -1
  191. package/dist/{subagent-registry-runtime-Cj4CKKl_.js → subagent-registry-runtime-Cc264UfD.js} +1 -1
  192. package/dist/{subagent-registry-runtime-8_ktZPZB.js → subagent-registry-runtime-CpYm78z3.js} +1 -1
  193. package/dist/{update-cli-YrBbmw4f.js → update-cli--P65ciut.js} +2 -2
  194. package/dist/{update-cli-BwBMOeP0.js → update-cli-Ibrshx_w.js} +2 -2
  195. package/dist/{update-runner-BvtyRBD2.js → update-runner-CvWH2ZAc.js} +2 -2
  196. package/dist/{update-runner-DYamgo1V.js → update-runner-mMbwEOlU.js} +2 -2
  197. package/dist/{web-DwcxsgH0.js → web-ARUUCMQo.js} +2 -2
  198. package/dist/{web-C15yQ-wI.js → web-C6jRFeYp.js} +1 -1
  199. package/dist/{web-C6So15hm.js → web-CDXYiCsB.js} +1 -1
  200. package/dist/{web-Cq3xWCaD.js → web-CiagxaWr.js} +2 -2
  201. package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +42 -42
  202. package/node_modules/@aws-sdk/core/dist-cjs/index.js +17 -0
  203. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +17 -0
  204. package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.js +1 -0
  205. package/node_modules/@aws-sdk/core/dist-es/submodules/client/longPollMiddleware.js +15 -0
  206. package/node_modules/@aws-sdk/core/package.json +11 -11
  207. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  208. package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
  209. package/node_modules/@aws-sdk/credential-provider-ini/package.json +14 -14
  210. package/node_modules/@aws-sdk/credential-provider-login/package.json +8 -8
  211. package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
  212. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  213. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  214. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
  215. package/node_modules/@aws-sdk/eventstream-handler-node/package.json +4 -4
  216. package/node_modules/@aws-sdk/middleware-eventstream/package.json +4 -4
  217. package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
  218. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  219. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
  220. package/node_modules/@aws-sdk/middleware-user-agent/package.json +8 -8
  221. package/node_modules/@aws-sdk/middleware-websocket/package.json +9 -9
  222. package/node_modules/@aws-sdk/nested-clients/package.json +32 -32
  223. package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
  224. package/node_modules/@aws-sdk/token-providers/package.json +7 -7
  225. package/node_modules/@aws-sdk/types/package.json +2 -2
  226. package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
  227. package/node_modules/@aws-sdk/util-format-url/package.json +4 -4
  228. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  229. package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
  230. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  231. package/node_modules/@whiskeysockets/baileys/node_modules/p-queue/dist/index.js +1 -0
  232. package/node_modules/@whiskeysockets/baileys/node_modules/p-queue/package.json +1 -1
  233. package/node_modules/content-disposition/index.js +118 -40
  234. package/node_modules/content-disposition/package.json +8 -11
  235. package/node_modules/path-expression-matcher/lib/pem.cjs +1 -1
  236. package/node_modules/path-expression-matcher/lib/pem.d.cts +18 -0
  237. package/node_modules/path-expression-matcher/lib/pem.min.js +1 -1
  238. package/node_modules/path-expression-matcher/package.json +1 -1
  239. package/node_modules/path-expression-matcher/src/Expression.js +2 -2
  240. package/node_modules/path-expression-matcher/src/ExpressionSet.js +24 -4
  241. package/package.json +1 -1
  242. package/preset-config.json +1 -1
  243. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/LICENSE +0 -201
  244. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/README.md +0 -62
  245. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +0 -157
  246. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/constants.js +0 -2
  247. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromEnvSigningName.js +0 -16
  248. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +0 -81
  249. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js +0 -8
  250. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +0 -11
  251. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +0 -10
  252. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/index.js +0 -4
  253. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/nodeProvider.js +0 -5
  254. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js +0 -7
  255. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js +0 -7
  256. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js +0 -8
  257. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +0 -70
@@ -1 +1 @@
1
- import{L as e,Y as t,h as n,o as r,r as i,x as a}from"./dispatch-BYlcmJ9u.js";import"./send-BNBJ4CF8.js";import"./paths-D55o_j8-.js";import{br as o}from"./model-auth-Cc-8H6Cu.js";import"./logger-C210xuWx.js";import"./paths-DhSjTRMz.js";import"./proxy-env-BlrHtJWH.js";import"./github-copilot-token-ylX_gawo.js";import"./send-DeU-T5ps.js";import"./fetch-guard-DE9BslxX.js";import"./send-D75OGJco.js";import"./deliver-DkfCVM78.js";import"./diagnostic-CLUtpxAp.js";import"./pi-model-discovery-zCuISPPq.js";import"./audio-transcription-runner-BdY-TMcc.js";import"./image-Bte8cr4F.js";import"./api-key-rotation-ClIwV8yq.js";import"./local-roots-bWA2msT0.js";import"./proxy-fetch-ClOb2LUH.js";import"./tokens-B20KNIDD.js";import"./commands-registry-D2gv242l.js";import"./fetch-C3LEMysf.js";import{m as s,s as c}from"./ir-hQ6EW92h.js";import"./render-DhTJXP1U.js";import"./target-errors-Buo5pfom.js";import"./channel-activity-spvDzlTl.js";import"./tables-lbv-0tl3.js";import"./send-CyyzWwDr.js";import"./fetch-BMYDLRWo.js";import"./skill-commands-KzwEqk5p.js";import"./outbound-attachment-BXhbJils.js";import"./send-DPpBLiL4.js";import"./query-expansion-DF4LMxRQ.js";import"./manager-932XljTT.js";export{t as createReplyPrefixOptions,r as deliverSlackSlashReplies,a as dispatchReplyWithDispatcher,e as finalizeInboundContext,i as recordInboundSessionMetaSafe,n as resolveAgentRoute,s as resolveChunkMode,o as resolveConversationLabel,c as resolveMarkdownTableMode};
1
+ import{L as e,Y as t,h as n,o as r,r as i,x as a}from"./dispatch-BhUN9ZDP.js";import"./send-BNBJ4CF8.js";import"./paths-D55o_j8-.js";import{br as o}from"./model-auth-Cc-8H6Cu.js";import"./logger-C210xuWx.js";import"./paths-DhSjTRMz.js";import"./proxy-env-BlrHtJWH.js";import"./github-copilot-token-ylX_gawo.js";import"./send-DeU-T5ps.js";import"./fetch-guard-DE9BslxX.js";import"./send-D75OGJco.js";import"./deliver-DkfCVM78.js";import"./diagnostic-CLUtpxAp.js";import"./pi-model-discovery-zCuISPPq.js";import"./audio-transcription-runner-BdY-TMcc.js";import"./image-Bte8cr4F.js";import"./api-key-rotation-ClIwV8yq.js";import"./local-roots-bWA2msT0.js";import"./proxy-fetch-ClOb2LUH.js";import"./tokens-B20KNIDD.js";import"./commands-registry-D2gv242l.js";import"./fetch-C3LEMysf.js";import{m as s,s as c}from"./ir-hQ6EW92h.js";import"./render-DhTJXP1U.js";import"./target-errors-Buo5pfom.js";import"./channel-activity-spvDzlTl.js";import"./tables-lbv-0tl3.js";import"./send-CyyzWwDr.js";import"./fetch-BMYDLRWo.js";import"./skill-commands-KzwEqk5p.js";import"./outbound-attachment-BXhbJils.js";import"./send-DPpBLiL4.js";import"./query-expansion-DF4LMxRQ.js";import"./manager-932XljTT.js";export{t as createReplyPrefixOptions,r as deliverSlackSlashReplies,a as dispatchReplyWithDispatcher,e as finalizeInboundContext,i as recordInboundSessionMetaSafe,n as resolveAgentRoute,s as resolveChunkMode,o as resolveConversationLabel,c as resolveMarkdownTableMode};
@@ -1 +1 @@
1
- import"./paths-CXgWvWAM.js";import"./utils-BJtJR72k.js";import"./paths-rO4ehkyU.js";import{Kn as e}from"./model-auth-Cw3fuhm_.js";import"./target-errors-DXqwykNX.js";import{V as t,Y as n,a as r,c as i,v as a,w as o}from"./dispatch-DCSwqteL.js";import"./send-DPgRTM8s.js";import"./send-BrAHLYBR.js";import"./proxy-env-m9eG3uZN.js";import"./github-copilot-token-C8j8_NjX.js";import"./send-DvDCmTQf.js";import"./fetch-guard-DXe8oqEE.js";import"./deliver-B0fB4hAV.js";import"./diagnostic-vsjHZ_fY.js";import"./pi-model-discovery-Bor7jHYd.js";import"./audio-transcription-runner-BLAxZL-U.js";import"./image-CDI5SqeR.js";import"./api-key-rotation-DaFFZfk5.js";import"./local-roots-Ca8KoAAp.js";import"./proxy-fetch-YCVHz7Rl.js";import"./tokens-DgPZk2Uu.js";import"./commands-registry-kRjFifgj.js";import"./fetch-B1GR6-u4.js";import{m as s,s as c}from"./ir-8rDh7div.js";import"./render-Djx15dPh.js";import"./channel-activity-BRHvpV0C.js";import"./tables-XYb3T-vE.js";import"./send-Bt2eFBk2.js";import"./fetch-J0IzopiJ.js";import"./skill-commands-BwrYJu7Z.js";import"./outbound-attachment-CfN9OvMC.js";import"./send-A2s5sPTd.js";import"./query-expansion-Cb2vnF6y.js";import"./manager-CbGA_JDa.js";export{n as createReplyPrefixOptions,i as deliverSlackSlashReplies,o as dispatchReplyWithDispatcher,t as finalizeInboundContext,r as recordInboundSessionMetaSafe,a as resolveAgentRoute,s as resolveChunkMode,e as resolveConversationLabel,c as resolveMarkdownTableMode};
1
+ import"./paths-CXgWvWAM.js";import"./utils-BJtJR72k.js";import"./paths-rO4ehkyU.js";import{Kn as e}from"./model-auth-Cw3fuhm_.js";import"./target-errors-DXqwykNX.js";import{V as t,Y as n,a as r,c as i,v as a,w as o}from"./dispatch-C_gJPvbD.js";import"./send-DPgRTM8s.js";import"./send-BrAHLYBR.js";import"./proxy-env-m9eG3uZN.js";import"./github-copilot-token-C8j8_NjX.js";import"./send-DvDCmTQf.js";import"./fetch-guard-DXe8oqEE.js";import"./deliver-B0fB4hAV.js";import"./diagnostic-vsjHZ_fY.js";import"./pi-model-discovery-Bor7jHYd.js";import"./audio-transcription-runner-BLAxZL-U.js";import"./image-CDI5SqeR.js";import"./api-key-rotation-DaFFZfk5.js";import"./local-roots-Ca8KoAAp.js";import"./proxy-fetch-YCVHz7Rl.js";import"./tokens-DgPZk2Uu.js";import"./commands-registry-kRjFifgj.js";import"./fetch-B1GR6-u4.js";import{m as s,s as c}from"./ir-8rDh7div.js";import"./render-Djx15dPh.js";import"./channel-activity-BRHvpV0C.js";import"./tables-XYb3T-vE.js";import"./send-Bt2eFBk2.js";import"./fetch-J0IzopiJ.js";import"./skill-commands-BwrYJu7Z.js";import"./outbound-attachment-CfN9OvMC.js";import"./send-A2s5sPTd.js";import"./query-expansion-Cb2vnF6y.js";import"./manager-CbGA_JDa.js";export{n as createReplyPrefixOptions,i as deliverSlackSlashReplies,o as dispatchReplyWithDispatcher,t as finalizeInboundContext,r as recordInboundSessionMetaSafe,a as resolveAgentRoute,s as resolveChunkMode,e as resolveConversationLabel,c as resolveMarkdownTableMode};
@@ -1 +1 @@
1
- require(`./paths-Bcdg3ma0.cjs`),require(`./paths-CIcxeNL-.cjs`),require(`./utils-PPIvU9qw.cjs`);const e=require(`./model-auth-BwajGuoF.cjs`);require(`./target-errors-9cdJA1L2.cjs`);const t=require(`./dispatch-mR2vLkGa.cjs`);require(`./send-CxMiTtxI.cjs`),require(`./send-CuX4LcJ3.cjs`),require(`./proxy-env-D48qBPAr.cjs`),require(`./github-copilot-token-C1O2cBqk.cjs`),require(`./send-DZr98eqE.cjs`),require(`./fetch-guard-DLNzldn9.cjs`),require(`./deliver-C-tChWTI.cjs`),require(`./diagnostic-Cu1PGj0E.cjs`),require(`./pi-model-discovery-DMrqvV1O.cjs`),require(`./audio-transcription-runner-ClGibmMi.cjs`),require(`./image-DJyEMzkq.cjs`),require(`./api-key-rotation-Bj1A9Slo.cjs`),require(`./local-roots-D4i3H0UG.cjs`),require(`./proxy-fetch-BwXFVsHE.cjs`),require(`./tokens-CnB4dJmp.cjs`),require(`./commands-registry-DkUhCIDk.cjs`),require(`./fetch-CZewCAvu.cjs`);const n=require(`./ir-DSuLr2UE.cjs`);require(`./render-g5VlmgpF.cjs`),require(`./channel-activity-CgXnZ0GC.cjs`),require(`./tables-Bk8lHaPx.cjs`),require(`./send-B3aEYvqG.cjs`),require(`./fetch-BN9y3kTg.cjs`),require(`./skill-commands-BoTeA376.cjs`),require(`./outbound-attachment-BDwI_tn0.cjs`),require(`./send-C4cyMW4S.cjs`),require(`./query-expansion-cpXCyoDy.cjs`),require(`./manager-DIS4ywpb.cjs`),exports.createReplyPrefixOptions=t.Y,exports.deliverSlackSlashReplies=t.c,exports.dispatchReplyWithDispatcher=t.w,exports.finalizeInboundContext=t.V,exports.recordInboundSessionMetaSafe=t.a,exports.resolveAgentRoute=t.v,exports.resolveChunkMode=n.m,exports.resolveConversationLabel=e.qn,exports.resolveMarkdownTableMode=n.s;
1
+ require(`./paths-Bcdg3ma0.cjs`),require(`./paths-CIcxeNL-.cjs`),require(`./utils-PPIvU9qw.cjs`);const e=require(`./model-auth-BwajGuoF.cjs`);require(`./target-errors-9cdJA1L2.cjs`);const t=require(`./dispatch-wEH2eS4y.cjs`);require(`./send-CxMiTtxI.cjs`),require(`./send-CuX4LcJ3.cjs`),require(`./proxy-env-D48qBPAr.cjs`),require(`./github-copilot-token-C1O2cBqk.cjs`),require(`./send-DZr98eqE.cjs`),require(`./fetch-guard-DLNzldn9.cjs`),require(`./deliver-C-tChWTI.cjs`),require(`./diagnostic-Cu1PGj0E.cjs`),require(`./pi-model-discovery-DMrqvV1O.cjs`),require(`./audio-transcription-runner-ClGibmMi.cjs`),require(`./image-DJyEMzkq.cjs`),require(`./api-key-rotation-Bj1A9Slo.cjs`),require(`./local-roots-D4i3H0UG.cjs`),require(`./proxy-fetch-BwXFVsHE.cjs`),require(`./tokens-CnB4dJmp.cjs`),require(`./commands-registry-DkUhCIDk.cjs`),require(`./fetch-CZewCAvu.cjs`);const n=require(`./ir-DSuLr2UE.cjs`);require(`./render-g5VlmgpF.cjs`),require(`./channel-activity-CgXnZ0GC.cjs`),require(`./tables-Bk8lHaPx.cjs`),require(`./send-B3aEYvqG.cjs`),require(`./fetch-BN9y3kTg.cjs`),require(`./skill-commands-BoTeA376.cjs`),require(`./outbound-attachment-BDwI_tn0.cjs`),require(`./send-C4cyMW4S.cjs`),require(`./query-expansion-cpXCyoDy.cjs`),require(`./manager-DIS4ywpb.cjs`),exports.createReplyPrefixOptions=t.Y,exports.deliverSlackSlashReplies=t.c,exports.dispatchReplyWithDispatcher=t.w,exports.finalizeInboundContext=t.V,exports.recordInboundSessionMetaSafe=t.a,exports.resolveAgentRoute=t.v,exports.resolveChunkMode=n.m,exports.resolveConversationLabel=e.qn,exports.resolveMarkdownTableMode=n.s;
@@ -1 +1 @@
1
- import{J as e,S as t,g as n,o as r,r as i,z as a}from"./dispatch-5v3v8zzA.js";import"./paths-Do0djuaj.js";import{_r as o}from"./model-auth-CycDtQl-.js";import"./logger-DJGHvDbX.js";import"./paths-CtrEseGU.js";import"./proxy-env-MEjSyzTr.js";import"./github-copilot-token-vKAKX6iE.js";import"./send-CmO9z2-b.js";import"./send-CicLiXB4.js";import"./send-XMOZsJcs.js";import"./deliver-D1P0FNTu.js";import"./diagnostic-Efe4b81B.js";import"./pi-model-discovery-Dqq9Vm8o.js";import"./audio-transcription-runner-B54MyF1_.js";import"./image-B6HEHWlJ.js";import"./fetch-guard-_fifU0fX.js";import"./api-key-rotation-CXY0AyM1.js";import"./local-roots-D0yN794S.js";import"./proxy-fetch-DXt2R_Z5.js";import"./tokens-BqABmXSe.js";import"./commands-registry-Cnr6PvIw.js";import"./fetch-BtZY623f.js";import{m as s,s as c}from"./ir-Dgc6qZMX.js";import"./render-DhTJXP1U.js";import"./target-errors-BZRN-lPd.js";import"./channel-activity-CmYpOPAn.js";import"./tables-BlNIkMV8.js";import"./send-Bq787fi_.js";import"./fetch-7Iq9POda.js";import"./skill-commands-Ny38ZFIC.js";import"./outbound-attachment-CftilZWd.js";import"./send-GuISe9C82.js";import"./query-expansion-CAboqtWr.js";import"./manager-CGHd5p2T.js";export{e as createReplyPrefixOptions,r as deliverSlackSlashReplies,t as dispatchReplyWithDispatcher,a as finalizeInboundContext,i as recordInboundSessionMetaSafe,n as resolveAgentRoute,s as resolveChunkMode,o as resolveConversationLabel,c as resolveMarkdownTableMode};
1
+ import{J as e,S as t,g as n,o as r,r as i,z as a}from"./dispatch-Df8B7owq.js";import"./paths-Do0djuaj.js";import{_r as o}from"./model-auth-CycDtQl-.js";import"./logger-DJGHvDbX.js";import"./paths-CtrEseGU.js";import"./proxy-env-MEjSyzTr.js";import"./github-copilot-token-vKAKX6iE.js";import"./send-CmO9z2-b.js";import"./send-CicLiXB4.js";import"./send-XMOZsJcs.js";import"./deliver-D1P0FNTu.js";import"./diagnostic-Efe4b81B.js";import"./pi-model-discovery-Dqq9Vm8o.js";import"./audio-transcription-runner-B54MyF1_.js";import"./image-B6HEHWlJ.js";import"./fetch-guard-_fifU0fX.js";import"./api-key-rotation-CXY0AyM1.js";import"./local-roots-D0yN794S.js";import"./proxy-fetch-DXt2R_Z5.js";import"./tokens-BqABmXSe.js";import"./commands-registry-Cnr6PvIw.js";import"./fetch-BtZY623f.js";import{m as s,s as c}from"./ir-Dgc6qZMX.js";import"./render-DhTJXP1U.js";import"./target-errors-BZRN-lPd.js";import"./channel-activity-CmYpOPAn.js";import"./tables-BlNIkMV8.js";import"./send-Bq787fi_.js";import"./fetch-7Iq9POda.js";import"./skill-commands-Ny38ZFIC.js";import"./outbound-attachment-CftilZWd.js";import"./send-GuISe9C82.js";import"./query-expansion-CAboqtWr.js";import"./manager-CGHd5p2T.js";export{e as createReplyPrefixOptions,r as deliverSlackSlashReplies,t as dispatchReplyWithDispatcher,a as finalizeInboundContext,i as recordInboundSessionMetaSafe,n as resolveAgentRoute,s as resolveChunkMode,o as resolveConversationLabel,c as resolveMarkdownTableMode};
@@ -1 +1 @@
1
- import"./paths-cBAF6Bj0.js";import{_o as e}from"./sessions-DxXXAfdI.js";import"./logger-vBDTZWl3.js";import"./paths-CnHSNSeR.js";import"./proxy-env-B765haXA.js";import"./send-D-qD7BCb.js";import"./common-B6fDMl_i.js";import"./send-C4ZFbUux.js";import{J as t,T as n,i as r,j as i,m as a,s as o}from"./reply-D-f2bbXy.js";import"./github-copilot-token-N8vnLZPw.js";import"./send-BTE2rI1E.js";import"./tokens-B8ys7Q2e.js";import"./audio-transcription-runner-BIqM5H5q.js";import"./image-CWnsS03L.js";import"./fetch-guard-CY03i4gu.js";import"./api-key-rotation-DcREl_0x.js";import"./local-roots-tee85Q-1.js";import"./proxy-fetch-CYVChsKE.js";import"./deliver-vYe_sYOL.js";import"./commands-registry-MCsWR5Vf.js";import"./fetch-CCLWsYaQ.js";import"./diagnostic-CkePwN5F.js";import"./pi-model-discovery-BuEMyAsU.js";import{m as s,s as c}from"./ir-OBi5zaEW.js";import"./render-CBsnn-2A.js";import"./send-CEfs0Fsr.js";import"./outbound-attachment-DQYtdTUw.js";import"./send-B2qa7CSk.js";import"./channel-activity-D7tpmatp.js";import"./tables-BIDWwpX8.js";import"./fetch-C-HRWp5R.js";import"./skill-commands-Hmuw0PPK.js";import"./query-expansion-C_DnhmUy.js";import"./manager-MR9stU_p.js";export{a as createReplyPrefixOptions,o as deliverSlackSlashReplies,n as dispatchReplyWithDispatcher,t as finalizeInboundContext,r as recordInboundSessionMetaSafe,i as resolveAgentRoute,s as resolveChunkMode,e as resolveConversationLabel,c as resolveMarkdownTableMode};
1
+ import"./paths-cBAF6Bj0.js";import{_o as e}from"./sessions-DxXXAfdI.js";import"./logger-vBDTZWl3.js";import"./paths-CnHSNSeR.js";import"./proxy-env-B765haXA.js";import"./send-D-qD7BCb.js";import"./common-B6fDMl_i.js";import"./send-C4ZFbUux.js";import{J as t,T as n,i as r,j as i,m as a,s as o}from"./reply-bS9U9BwG.js";import"./github-copilot-token-N8vnLZPw.js";import"./send-BTE2rI1E.js";import"./tokens-B8ys7Q2e.js";import"./audio-transcription-runner-BIqM5H5q.js";import"./image-CWnsS03L.js";import"./fetch-guard-CY03i4gu.js";import"./api-key-rotation-DcREl_0x.js";import"./local-roots-tee85Q-1.js";import"./proxy-fetch-CYVChsKE.js";import"./deliver-vYe_sYOL.js";import"./commands-registry-MCsWR5Vf.js";import"./fetch-CCLWsYaQ.js";import"./diagnostic-CkePwN5F.js";import"./pi-model-discovery-BuEMyAsU.js";import{m as s,s as c}from"./ir-OBi5zaEW.js";import"./render-CBsnn-2A.js";import"./send-CEfs0Fsr.js";import"./outbound-attachment-DQYtdTUw.js";import"./send-B2qa7CSk.js";import"./channel-activity-D7tpmatp.js";import"./tables-BIDWwpX8.js";import"./fetch-C-HRWp5R.js";import"./skill-commands-Hmuw0PPK.js";import"./query-expansion-C_DnhmUy.js";import"./manager-MR9stU_p.js";export{a as createReplyPrefixOptions,o as deliverSlackSlashReplies,n as dispatchReplyWithDispatcher,t as finalizeInboundContext,r as recordInboundSessionMetaSafe,i as resolveAgentRoute,s as resolveChunkMode,e as resolveConversationLabel,c as resolveMarkdownTableMode};
@@ -1 +1 @@
1
- require(`./paths-Bcdg3ma0.cjs`);const e=require(`./dispatch-B6UbZCpL.cjs`);require(`./paths-Cqca1YmF.cjs`);const t=require(`./model-auth-TFUxaK0f.cjs`);require(`./logger-DPlqYkRm.cjs`),require(`./proxy-env-a590sPAz.cjs`),require(`./github-copilot-token-CCrgp2py.cjs`),require(`./send-EvcsiFBC.cjs`),require(`./send-Bq6Mqs9G.cjs`),require(`./send-CJGLeSJ8.cjs`),require(`./deliver-BrfVwkYz.cjs`),require(`./diagnostic-D7A9cQYf.cjs`),require(`./pi-model-discovery-DGoPUzBj.cjs`),require(`./audio-transcription-runner-CMsp7bhn.cjs`),require(`./image-BxafJgQ6.cjs`),require(`./fetch-guard-DB85MORy.cjs`),require(`./api-key-rotation-wFUVOOfM.cjs`),require(`./local-roots-BmhNPIJm.cjs`),require(`./proxy-fetch-DPOhfrou.cjs`),require(`./tokens-g5KWvWhD.cjs`),require(`./commands-registry-5lStNoKW.cjs`),require(`./fetch-ClKErpni.cjs`);const n=require(`./ir-CveCWs8q.cjs`);require(`./render-DxBO2Blp.cjs`),require(`./target-errors-DeNJ10ks.cjs`),require(`./channel-activity-CVOp-PL4.cjs`),require(`./tables-BtVUf77b.cjs`),require(`./send-DZ4szmEa.cjs`),require(`./fetch-BY6lVRlY.cjs`),require(`./skill-commands-B4wI8ETo.cjs`),require(`./outbound-attachment-B8-ZVX2i.cjs`),require(`./send-BAoqP09M.cjs`),require(`./query-expansion-DCeqywxh.cjs`),require(`./manager-CmAH_a7A.cjs`),exports.createReplyPrefixOptions=e.J,exports.deliverSlackSlashReplies=e.o,exports.dispatchReplyWithDispatcher=e.S,exports.finalizeInboundContext=e.z,exports.recordInboundSessionMetaSafe=e.r,exports.resolveAgentRoute=e.g,exports.resolveChunkMode=n.m,exports.resolveConversationLabel=t.vr,exports.resolveMarkdownTableMode=n.s;
1
+ require(`./paths-Bcdg3ma0.cjs`);const e=require(`./dispatch-_fZDA253.cjs`);require(`./paths-Cqca1YmF.cjs`);const t=require(`./model-auth-TFUxaK0f.cjs`);require(`./logger-DPlqYkRm.cjs`),require(`./proxy-env-a590sPAz.cjs`),require(`./github-copilot-token-CCrgp2py.cjs`),require(`./send-EvcsiFBC.cjs`),require(`./send-Bq6Mqs9G.cjs`),require(`./send-CJGLeSJ8.cjs`),require(`./deliver-BrfVwkYz.cjs`),require(`./diagnostic-D7A9cQYf.cjs`),require(`./pi-model-discovery-DGoPUzBj.cjs`),require(`./audio-transcription-runner-CMsp7bhn.cjs`),require(`./image-BxafJgQ6.cjs`),require(`./fetch-guard-DB85MORy.cjs`),require(`./api-key-rotation-wFUVOOfM.cjs`),require(`./local-roots-BmhNPIJm.cjs`),require(`./proxy-fetch-DPOhfrou.cjs`),require(`./tokens-g5KWvWhD.cjs`),require(`./commands-registry-5lStNoKW.cjs`),require(`./fetch-ClKErpni.cjs`);const n=require(`./ir-CveCWs8q.cjs`);require(`./render-DxBO2Blp.cjs`),require(`./target-errors-DeNJ10ks.cjs`),require(`./channel-activity-CVOp-PL4.cjs`),require(`./tables-BtVUf77b.cjs`),require(`./send-DZ4szmEa.cjs`),require(`./fetch-BY6lVRlY.cjs`),require(`./skill-commands-B4wI8ETo.cjs`),require(`./outbound-attachment-B8-ZVX2i.cjs`),require(`./send-BAoqP09M.cjs`),require(`./query-expansion-DCeqywxh.cjs`),require(`./manager-CmAH_a7A.cjs`),exports.createReplyPrefixOptions=e.J,exports.deliverSlackSlashReplies=e.o,exports.dispatchReplyWithDispatcher=e.S,exports.finalizeInboundContext=e.z,exports.recordInboundSessionMetaSafe=e.r,exports.resolveAgentRoute=e.g,exports.resolveChunkMode=n.m,exports.resolveConversationLabel=t.vr,exports.resolveMarkdownTableMode=n.s;
@@ -1 +1 @@
1
- require(`./paths-Bcdg3ma0.cjs`),require(`./paths-D90l3h_o.cjs`);const e=require(`./sessions-Dz5JUL8j.cjs`);require(`./logger-DUYnS-W3.cjs`),require(`./proxy-env-DQoJjkWE.cjs`),require(`./send-D3imkSlz.cjs`),require(`./common-B4iFXuoZ.cjs`),require(`./send-Co_Wy2kT.cjs`);const t=require(`./reply-0zCEbT4w.cjs`);require(`./github-copilot-token-zskwAEpd.cjs`),require(`./send-CFuJjCNB.cjs`),require(`./tokens-CXsPDJTr.cjs`),require(`./audio-transcription-runner-CH5CoZrF.cjs`),require(`./image-DegWnAZU.cjs`),require(`./fetch-guard-CIJUkBIL.cjs`),require(`./api-key-rotation-DDCwA0KM.cjs`),require(`./local-roots-Cu7YCpql.cjs`),require(`./proxy-fetch-BzcKzknk.cjs`),require(`./deliver-DCrO9mvv.cjs`),require(`./commands-registry-CtYCWfuM.cjs`),require(`./fetch-ClKErpni.cjs`),require(`./diagnostic-8iX73nz_.cjs`),require(`./pi-model-discovery-D5xlUS2J.cjs`);const n=require(`./ir-C3VNqnc2.cjs`);require(`./render-6fCdtAr6.cjs`),require(`./send-Cox_iyYB.cjs`),require(`./outbound-attachment-Cujprd6T.cjs`),require(`./send-61GHLNYP.cjs`),require(`./channel-activity-CLUi31fX.cjs`),require(`./tables-CnrHab5d.cjs`),require(`./fetch-DQxuOB8o.cjs`),require(`./skill-commands-KyN0FGaC.cjs`),require(`./query-expansion-0zYzKrrd.cjs`),require(`./manager-gE9187gu.cjs`),exports.createReplyPrefixOptions=t.m,exports.deliverSlackSlashReplies=t.s,exports.dispatchReplyWithDispatcher=t.T,exports.finalizeInboundContext=t.J,exports.recordInboundSessionMetaSafe=t.i,exports.resolveAgentRoute=t.j,exports.resolveChunkMode=n.m,exports.resolveConversationLabel=e.xo,exports.resolveMarkdownTableMode=n.s;
1
+ require(`./paths-Bcdg3ma0.cjs`),require(`./paths-D90l3h_o.cjs`);const e=require(`./sessions-Dz5JUL8j.cjs`);require(`./logger-DUYnS-W3.cjs`),require(`./proxy-env-DQoJjkWE.cjs`),require(`./send-D3imkSlz.cjs`),require(`./common-B4iFXuoZ.cjs`),require(`./send-Co_Wy2kT.cjs`);const t=require(`./reply-BoWg-IXT.cjs`);require(`./github-copilot-token-zskwAEpd.cjs`),require(`./send-CFuJjCNB.cjs`),require(`./tokens-CXsPDJTr.cjs`),require(`./audio-transcription-runner-CH5CoZrF.cjs`),require(`./image-DegWnAZU.cjs`),require(`./fetch-guard-CIJUkBIL.cjs`),require(`./api-key-rotation-DDCwA0KM.cjs`),require(`./local-roots-Cu7YCpql.cjs`),require(`./proxy-fetch-BzcKzknk.cjs`),require(`./deliver-DCrO9mvv.cjs`),require(`./commands-registry-CtYCWfuM.cjs`),require(`./fetch-ClKErpni.cjs`),require(`./diagnostic-8iX73nz_.cjs`),require(`./pi-model-discovery-D5xlUS2J.cjs`);const n=require(`./ir-C3VNqnc2.cjs`);require(`./render-6fCdtAr6.cjs`),require(`./send-Cox_iyYB.cjs`),require(`./outbound-attachment-Cujprd6T.cjs`),require(`./send-61GHLNYP.cjs`),require(`./channel-activity-CLUi31fX.cjs`),require(`./tables-CnrHab5d.cjs`),require(`./fetch-DQxuOB8o.cjs`),require(`./skill-commands-KyN0FGaC.cjs`),require(`./query-expansion-0zYzKrrd.cjs`),require(`./manager-gE9187gu.cjs`),exports.createReplyPrefixOptions=t.m,exports.deliverSlackSlashReplies=t.s,exports.dispatchReplyWithDispatcher=t.T,exports.finalizeInboundContext=t.J,exports.recordInboundSessionMetaSafe=t.i,exports.resolveAgentRoute=t.j,exports.resolveChunkMode=n.m,exports.resolveConversationLabel=e.xo,exports.resolveMarkdownTableMode=n.s;
@@ -1 +1 @@
1
- import"./paths-piJASC5k.js";import"./paths-BpQOWYiT.js";import"./logger-DwWqfo66.js";import{mn as e}from"./model-auth-C1YL9HcW.js";import"./proxy-env-DGzNnnJh.js";import"./send-BlWuQHYB.js";import"./send-CL0W7jLW.js";import{L as t,S as n,a as r,c as i,g as a,q as o}from"./dispatch-DHbSBeFJ.js";import"./tokens-BPc1fcZ3.js";import"./deliver-Dkh3lqXR.js";import"./github-copilot-token-Bt4PduRB.js";import"./fetch-guard-DSvAbvSx.js";import"./send-3VNTSIhr.js";import"./local-roots-DGe-SRNu.js";import{d as s,i as c}from"./ir-ynWQeZD9.js";import"./diagnostic-EqHqw9xo.js";import"./pi-model-discovery-D5tLf04u.js";import"./audio-transcription-runner-BVmaaA2k.js";import"./image-aG-5S1vd.js";import"./api-key-rotation-D5Nr1xl3.js";import"./proxy-fetch-Del551nu.js";import"./commands-registry-DI2vPscP.js";import"./fetch-B1GR6-u4.js";import"./render-DhTJXP1U.js";import"./target-errors-CFzzcffg.js";import"./channel-activity-CKfWFchu.js";import"./tables-C4j5Bar_.js";import"./send-De4qiprb.js";import"./fetch-B27H-XCf.js";import"./skill-commands-DWDtyCtB.js";import"./outbound-attachment-Bgf1pCh8.js";import"./send-6q4owAw0.js";import"./query-expansion-r_iXkNzt.js";import"./manager-DfdDglld.js";export{o as createReplyPrefixOptions,i as deliverSlackSlashReplies,n as dispatchReplyWithDispatcher,t as finalizeInboundContext,r as recordInboundSessionMetaSafe,a as resolveAgentRoute,s as resolveChunkMode,e as resolveConversationLabel,c as resolveMarkdownTableMode};
1
+ import"./paths-piJASC5k.js";import"./paths-BpQOWYiT.js";import"./logger-DwWqfo66.js";import{mn as e}from"./model-auth-C1YL9HcW.js";import"./proxy-env-DGzNnnJh.js";import"./send-BlWuQHYB.js";import"./send-CL0W7jLW.js";import{L as t,S as n,a as r,c as i,g as a,q as o}from"./dispatch-Bcf1uPHo.js";import"./tokens-BPc1fcZ3.js";import"./deliver-Dkh3lqXR.js";import"./github-copilot-token-Bt4PduRB.js";import"./fetch-guard-DSvAbvSx.js";import"./send-3VNTSIhr.js";import"./local-roots-DGe-SRNu.js";import{d as s,i as c}from"./ir-ynWQeZD9.js";import"./diagnostic-EqHqw9xo.js";import"./pi-model-discovery-D5tLf04u.js";import"./audio-transcription-runner-BVmaaA2k.js";import"./image-aG-5S1vd.js";import"./api-key-rotation-D5Nr1xl3.js";import"./proxy-fetch-Del551nu.js";import"./commands-registry-DI2vPscP.js";import"./fetch-B1GR6-u4.js";import"./render-DhTJXP1U.js";import"./target-errors-CFzzcffg.js";import"./channel-activity-CKfWFchu.js";import"./tables-C4j5Bar_.js";import"./send-De4qiprb.js";import"./fetch-B27H-XCf.js";import"./skill-commands-DWDtyCtB.js";import"./outbound-attachment-Bgf1pCh8.js";import"./send-6q4owAw0.js";import"./query-expansion-r_iXkNzt.js";import"./manager-DfdDglld.js";export{o as createReplyPrefixOptions,i as deliverSlackSlashReplies,n as dispatchReplyWithDispatcher,t as finalizeInboundContext,r as recordInboundSessionMetaSafe,a as resolveAgentRoute,s as resolveChunkMode,e as resolveConversationLabel,c as resolveMarkdownTableMode};
@@ -1 +1 @@
1
- require(`./paths-BvlJvmRS.cjs`),require(`./paths-Chp3zwtq.cjs`),require(`./logger-BlddiV_d.cjs`);const e=require(`./model-auth-BpS4IWDi.cjs`);require(`./proxy-env-DWw9TnOj.cjs`),require(`./send-Cm7bEwx-.cjs`),require(`./send-h--iKoQE.cjs`);const t=require(`./dispatch-SWyfAZT0.cjs`);require(`./tokens-DtrljGtQ.cjs`),require(`./deliver-DsFtXFyr.cjs`),require(`./github-copilot-token-DoHgkI2r.cjs`),require(`./fetch-guard-Cz-cgYmR.cjs`),require(`./send-C8f5H4XV.cjs`),require(`./local-roots-C5UoE741.cjs`);const n=require(`./ir-CZOtKajq.cjs`);require(`./diagnostic-CVS4k9hh.cjs`),require(`./pi-model-discovery-DoY7qnlI.cjs`),require(`./audio-transcription-runner-By3lSLub.cjs`),require(`./image-CTgwucug.cjs`),require(`./api-key-rotation-DHMvXm70.cjs`),require(`./proxy-fetch-BaA3JYgW.cjs`),require(`./commands-registry-DsMbmie-.cjs`),require(`./fetch-CZewCAvu.cjs`),require(`./render-DxBO2Blp.cjs`),require(`./target-errors-BrwqillR.cjs`),require(`./channel-activity-CwaMf9qT.cjs`),require(`./tables-CZGtYzDC.cjs`),require(`./send-CSGh_GVr.cjs`),require(`./fetch-DUMEaqum.cjs`),require(`./skill-commands-BzkMuA58.cjs`),require(`./outbound-attachment-1pf06Oiu.cjs`),require(`./send-JVdUTsN1.cjs`),require(`./query-expansion-BYSjmpkV.cjs`),require(`./manager-DQ2C-2IU.cjs`),exports.createReplyPrefixOptions=t.q,exports.deliverSlackSlashReplies=t.c,exports.dispatchReplyWithDispatcher=t.S,exports.finalizeInboundContext=t.L,exports.recordInboundSessionMetaSafe=t.a,exports.resolveAgentRoute=t.g,exports.resolveChunkMode=n.d,exports.resolveConversationLabel=e.hn,exports.resolveMarkdownTableMode=n.i;
1
+ require(`./paths-BvlJvmRS.cjs`),require(`./paths-Chp3zwtq.cjs`),require(`./logger-BlddiV_d.cjs`);const e=require(`./model-auth-BpS4IWDi.cjs`);require(`./proxy-env-DWw9TnOj.cjs`),require(`./send-Cm7bEwx-.cjs`),require(`./send-h--iKoQE.cjs`);const t=require(`./dispatch-BgGE9usQ.cjs`);require(`./tokens-DtrljGtQ.cjs`),require(`./deliver-DsFtXFyr.cjs`),require(`./github-copilot-token-DoHgkI2r.cjs`),require(`./fetch-guard-Cz-cgYmR.cjs`),require(`./send-C8f5H4XV.cjs`),require(`./local-roots-C5UoE741.cjs`);const n=require(`./ir-CZOtKajq.cjs`);require(`./diagnostic-CVS4k9hh.cjs`),require(`./pi-model-discovery-DoY7qnlI.cjs`),require(`./audio-transcription-runner-By3lSLub.cjs`),require(`./image-CTgwucug.cjs`),require(`./api-key-rotation-DHMvXm70.cjs`),require(`./proxy-fetch-BaA3JYgW.cjs`),require(`./commands-registry-DsMbmie-.cjs`),require(`./fetch-CZewCAvu.cjs`),require(`./render-DxBO2Blp.cjs`),require(`./target-errors-BrwqillR.cjs`),require(`./channel-activity-CwaMf9qT.cjs`),require(`./tables-CZGtYzDC.cjs`),require(`./send-CSGh_GVr.cjs`),require(`./fetch-DUMEaqum.cjs`),require(`./skill-commands-BzkMuA58.cjs`),require(`./outbound-attachment-1pf06Oiu.cjs`),require(`./send-JVdUTsN1.cjs`),require(`./query-expansion-BYSjmpkV.cjs`),require(`./manager-DQ2C-2IU.cjs`),exports.createReplyPrefixOptions=t.q,exports.deliverSlackSlashReplies=t.c,exports.dispatchReplyWithDispatcher=t.S,exports.finalizeInboundContext=t.L,exports.recordInboundSessionMetaSafe=t.a,exports.resolveAgentRoute=t.g,exports.resolveChunkMode=n.d,exports.resolveConversationLabel=e.hn,exports.resolveMarkdownTableMode=n.i;
@@ -1 +1 @@
1
- require(`./paths-Bcdg3ma0.cjs`);const e=require(`./dispatch-CNy3g9ma.cjs`);require(`./send-D-HZnehy.cjs`),require(`./paths-Dd7r1qlB.cjs`);const t=require(`./model-auth-D-7xiXhK.cjs`);require(`./logger-6O6OsYBL.cjs`),require(`./proxy-env-k93igu7v.cjs`),require(`./github-copilot-token-BHdMLLqf.cjs`),require(`./send-DV_afQnj.cjs`),require(`./fetch-guard-8I7EHbDM.cjs`),require(`./send-CQtITZ7k.cjs`),require(`./deliver-CjQPkWS-.cjs`),require(`./diagnostic-D0oCfBju.cjs`),require(`./pi-model-discovery-B9boErNZ.cjs`),require(`./audio-transcription-runner-g7L0m-Z5.cjs`),require(`./image-CuOIoxl2.cjs`),require(`./api-key-rotation-X-5Fb7av.cjs`),require(`./local-roots-CeAYfmPb.cjs`),require(`./proxy-fetch-qbrYAz8k.cjs`),require(`./tokens-CytSl1X8.cjs`),require(`./commands-registry-SHZVq_qf.cjs`),require(`./fetch-Bi8krAaT.cjs`);const n=require(`./ir-DanxCjD-.cjs`);require(`./render-DxBO2Blp.cjs`),require(`./target-errors-BEkhKWCq.cjs`),require(`./channel-activity-D5D5tBWf.cjs`),require(`./tables-NrdtIJGp.cjs`),require(`./send-DB4i1kUy.cjs`),require(`./fetch-BjXhwqrE.cjs`),require(`./skill-commands-CIAf9cWN.cjs`),require(`./outbound-attachment-COgf85S8.cjs`),require(`./send-DBjzdBda.cjs`),require(`./query-expansion-DKJkqmNM.cjs`),require(`./manager-CdD7HaGW.cjs`),exports.createReplyPrefixOptions=e.Y,exports.deliverSlackSlashReplies=e.o,exports.dispatchReplyWithDispatcher=e.x,exports.finalizeInboundContext=e.L,exports.recordInboundSessionMetaSafe=e.r,exports.resolveAgentRoute=e.h,exports.resolveChunkMode=n.m,exports.resolveConversationLabel=t.xr,exports.resolveMarkdownTableMode=n.s;
1
+ require(`./paths-Bcdg3ma0.cjs`);const e=require(`./dispatch-YK0qHNtb.cjs`);require(`./send-D-HZnehy.cjs`),require(`./paths-Dd7r1qlB.cjs`);const t=require(`./model-auth-D-7xiXhK.cjs`);require(`./logger-6O6OsYBL.cjs`),require(`./proxy-env-k93igu7v.cjs`),require(`./github-copilot-token-BHdMLLqf.cjs`),require(`./send-DV_afQnj.cjs`),require(`./fetch-guard-8I7EHbDM.cjs`),require(`./send-CQtITZ7k.cjs`),require(`./deliver-CjQPkWS-.cjs`),require(`./diagnostic-D0oCfBju.cjs`),require(`./pi-model-discovery-B9boErNZ.cjs`),require(`./audio-transcription-runner-g7L0m-Z5.cjs`),require(`./image-CuOIoxl2.cjs`),require(`./api-key-rotation-X-5Fb7av.cjs`),require(`./local-roots-CeAYfmPb.cjs`),require(`./proxy-fetch-qbrYAz8k.cjs`),require(`./tokens-CytSl1X8.cjs`),require(`./commands-registry-SHZVq_qf.cjs`),require(`./fetch-Bi8krAaT.cjs`);const n=require(`./ir-DanxCjD-.cjs`);require(`./render-DxBO2Blp.cjs`),require(`./target-errors-BEkhKWCq.cjs`),require(`./channel-activity-D5D5tBWf.cjs`),require(`./tables-NrdtIJGp.cjs`),require(`./send-DB4i1kUy.cjs`),require(`./fetch-BjXhwqrE.cjs`),require(`./skill-commands-CIAf9cWN.cjs`),require(`./outbound-attachment-COgf85S8.cjs`),require(`./send-DBjzdBda.cjs`),require(`./query-expansion-DKJkqmNM.cjs`),require(`./manager-CdD7HaGW.cjs`),exports.createReplyPrefixOptions=e.Y,exports.deliverSlackSlashReplies=e.o,exports.dispatchReplyWithDispatcher=e.x,exports.finalizeInboundContext=e.L,exports.recordInboundSessionMetaSafe=e.r,exports.resolveAgentRoute=e.h,exports.resolveChunkMode=n.m,exports.resolveConversationLabel=t.xr,exports.resolveMarkdownTableMode=n.s;
@@ -1 +1 @@
1
- require(`./paths-BvlJvmRS.cjs`),require(`./paths-BPlgbwrb.cjs`);const e=require(`./config-rBz8C_Hi.cjs`),t=require(`./dispatch-DK5ub8qa.cjs`);require(`./github-copilot-token-TMkfxxD2.cjs`),require(`./logger-Bm93ZKOk.cjs`),require(`./proxy-env-Bcl14j2_.cjs`),require(`./send-CLl490Gb.cjs`),require(`./fetch-lw-aF17e.cjs`),require(`./channel-activity-BGK-Bj2_.cjs`),require(`./fetch-guard-DY9jpsXo.cjs`),require(`./local-roots-wTkpE7go.cjs`);const n=require(`./ir-DAxY-7c1.cjs`);require(`./render-CzHaQB0d.cjs`),require(`./tables-Bp0a2WRP.cjs`),require(`./send-Bnvt7ZUE.cjs`),require(`./target-errors-Dd6CopYF.cjs`),require(`./send-D_1K0zmx.cjs`),require(`./deliver-DQLekoj2.cjs`),require(`./diagnostic-DXscFT8t.cjs`),require(`./pi-model-discovery-BJ8wTgFH.cjs`),require(`./audio-transcription-runner-QfEC19vE.cjs`),require(`./image-CoksjGBL.cjs`),require(`./api-key-rotation-CFPNzksf.cjs`),require(`./proxy-fetch-DH7VIiBH.cjs`),require(`./tokens-Dq2wDF3_.cjs`),require(`./commands-registry-C8wnXqNa.cjs`),require(`./send-CDwTrbgT.cjs`),require(`./fetch-DpwR_cJU.cjs`),require(`./skill-commands-CKc7JO_c.cjs`),require(`./outbound-attachment-FqWC0WJx.cjs`),require(`./send-D5UwpCoU.cjs`),require(`./query-expansion-DO2CFW4z.cjs`),require(`./manager-DdvFnsT7.cjs`),exports.createReplyPrefixOptions=t.A,exports.deliverSlackSlashReplies=t.p,exports.dispatchReplyWithDispatcher=t.nt,exports.finalizeInboundContext=t.wt,exports.recordInboundSessionMetaSafe=t.u,exports.resolveAgentRoute=t.G,exports.resolveChunkMode=n.d,exports.resolveConversationLabel=e.Io,exports.resolveMarkdownTableMode=n.i;
1
+ require(`./paths-BvlJvmRS.cjs`),require(`./paths-BPlgbwrb.cjs`);const e=require(`./config-rBz8C_Hi.cjs`),t=require(`./dispatch-C3k8j6Zb.cjs`);require(`./github-copilot-token-TMkfxxD2.cjs`),require(`./logger-Bm93ZKOk.cjs`),require(`./proxy-env-Bcl14j2_.cjs`),require(`./send-CLl490Gb.cjs`),require(`./fetch-lw-aF17e.cjs`),require(`./channel-activity-BGK-Bj2_.cjs`),require(`./fetch-guard-DY9jpsXo.cjs`),require(`./local-roots-wTkpE7go.cjs`);const n=require(`./ir-DAxY-7c1.cjs`);require(`./render-CzHaQB0d.cjs`),require(`./tables-Bp0a2WRP.cjs`),require(`./send-Bnvt7ZUE.cjs`),require(`./target-errors-Dd6CopYF.cjs`),require(`./send-D_1K0zmx.cjs`),require(`./deliver-DQLekoj2.cjs`),require(`./diagnostic-DXscFT8t.cjs`),require(`./pi-model-discovery-BJ8wTgFH.cjs`),require(`./audio-transcription-runner-QfEC19vE.cjs`),require(`./image-CoksjGBL.cjs`),require(`./api-key-rotation-CFPNzksf.cjs`),require(`./proxy-fetch-DH7VIiBH.cjs`),require(`./tokens-Dq2wDF3_.cjs`),require(`./commands-registry-C8wnXqNa.cjs`),require(`./send-CDwTrbgT.cjs`),require(`./fetch-DpwR_cJU.cjs`),require(`./skill-commands-CKc7JO_c.cjs`),require(`./outbound-attachment-FqWC0WJx.cjs`),require(`./send-D5UwpCoU.cjs`),require(`./query-expansion-DO2CFW4z.cjs`),require(`./manager-DdvFnsT7.cjs`),exports.createReplyPrefixOptions=t.A,exports.deliverSlackSlashReplies=t.p,exports.dispatchReplyWithDispatcher=t.nt,exports.finalizeInboundContext=t.wt,exports.recordInboundSessionMetaSafe=t.u,exports.resolveAgentRoute=t.G,exports.resolveChunkMode=n.d,exports.resolveConversationLabel=e.Io,exports.resolveMarkdownTableMode=n.i;
@@ -1 +1 @@
1
- import"./paths-J4JUiRsa.js";import{Fo as e}from"./config-ByA2hluR.js";import{A as t,G as n,nt as r,p as i,u as a,wt as o}from"./dispatch-C2YTqGlf.js";import"./paths-DaRoqzBQ.js";import"./github-copilot-token-C1hiDugd.js";import"./logger-BtrWb0dj.js";import"./proxy-env-t6hcaFqC.js";import"./send-DtjJM0LO.js";import"./fetch-DBRI0sKI.js";import"./channel-activity-DpxSOlXF.js";import"./fetch-guard-DbOZYxyN.js";import"./local-roots-5udQUs81.js";import{d as s,i as c}from"./ir-Bh6lKGdS.js";import"./render-DGmfCIRG.js";import"./tables-DtslIPYw.js";import"./send-DaLB9Lca.js";import"./target-errors-DFmK5loi.js";import"./send-NpNVFRmY.js";import"./deliver-BOLmjIJ3.js";import"./diagnostic-DGLX0zXU.js";import"./pi-model-discovery-Bb2vCP6M.js";import"./audio-transcription-runner-pVTD93vq.js";import"./image-TCSQZpr6.js";import"./api-key-rotation-_VfXYfHS.js";import"./proxy-fetch-B9aXJVe-.js";import"./tokens-AAdZjj0M.js";import"./commands-registry-DcBvmwSU.js";import"./send-IoGcE0w2.js";import"./fetch-BVEVk5YF.js";import"./skill-commands-Cvb6oXym.js";import"./outbound-attachment-CvSHb9ci.js";import"./send-DWuChr46.js";import"./query-expansion-DyCDaZbL.js";import"./manager-WwW37IUu.js";export{t as createReplyPrefixOptions,i as deliverSlackSlashReplies,r as dispatchReplyWithDispatcher,o as finalizeInboundContext,a as recordInboundSessionMetaSafe,n as resolveAgentRoute,s as resolveChunkMode,e as resolveConversationLabel,c as resolveMarkdownTableMode};
1
+ import"./paths-J4JUiRsa.js";import{Fo as e}from"./config-ByA2hluR.js";import{A as t,G as n,nt as r,p as i,u as a,wt as o}from"./dispatch-3PrSaGZi.js";import"./paths-DaRoqzBQ.js";import"./github-copilot-token-C1hiDugd.js";import"./logger-BtrWb0dj.js";import"./proxy-env-t6hcaFqC.js";import"./send-DtjJM0LO.js";import"./fetch-DBRI0sKI.js";import"./channel-activity-DpxSOlXF.js";import"./fetch-guard-DbOZYxyN.js";import"./local-roots-5udQUs81.js";import{d as s,i as c}from"./ir-Bh6lKGdS.js";import"./render-DGmfCIRG.js";import"./tables-DtslIPYw.js";import"./send-DaLB9Lca.js";import"./target-errors-DFmK5loi.js";import"./send-NpNVFRmY.js";import"./deliver-BOLmjIJ3.js";import"./diagnostic-DGLX0zXU.js";import"./pi-model-discovery-Bb2vCP6M.js";import"./audio-transcription-runner-pVTD93vq.js";import"./image-TCSQZpr6.js";import"./api-key-rotation-_VfXYfHS.js";import"./proxy-fetch-B9aXJVe-.js";import"./tokens-AAdZjj0M.js";import"./commands-registry-DcBvmwSU.js";import"./send-IoGcE0w2.js";import"./fetch-BVEVk5YF.js";import"./skill-commands-Cvb6oXym.js";import"./outbound-attachment-CvSHb9ci.js";import"./send-DWuChr46.js";import"./query-expansion-DyCDaZbL.js";import"./manager-WwW37IUu.js";export{t as createReplyPrefixOptions,i as deliverSlackSlashReplies,r as dispatchReplyWithDispatcher,o as finalizeInboundContext,a as recordInboundSessionMetaSafe,n as resolveAgentRoute,s as resolveChunkMode,e as resolveConversationLabel,c as resolveMarkdownTableMode};
@@ -1 +1 @@
1
- import"./paths-piJASC5k.js";import"./paths-BpQOWYiT.js";import"./logger-DwWqfo66.js";import"./model-auth-C1YL9HcW.js";import"./proxy-env-DGzNnnJh.js";import"./send-BlWuQHYB.js";import"./send-CL0W7jLW.js";import{A as e,F as t,M as n,N as r,O as i,P as a,j as o,k as s}from"./dispatch-DHbSBeFJ.js";import"./tokens-BPc1fcZ3.js";import"./deliver-Dkh3lqXR.js";import"./github-copilot-token-Bt4PduRB.js";import"./fetch-guard-DSvAbvSx.js";import"./send-3VNTSIhr.js";import"./local-roots-DGe-SRNu.js";import"./ir-ynWQeZD9.js";import"./diagnostic-EqHqw9xo.js";import"./pi-model-discovery-D5tLf04u.js";import"./audio-transcription-runner-BVmaaA2k.js";import"./image-aG-5S1vd.js";import"./api-key-rotation-D5Nr1xl3.js";import"./proxy-fetch-Del551nu.js";import"./commands-registry-DI2vPscP.js";import"./fetch-B1GR6-u4.js";import"./render-DhTJXP1U.js";import"./target-errors-CFzzcffg.js";import"./channel-activity-CKfWFchu.js";import"./tables-C4j5Bar_.js";import"./send-De4qiprb.js";import"./fetch-B27H-XCf.js";import"./skill-commands-DWDtyCtB.js";import"./outbound-attachment-Bgf1pCh8.js";import"./send-6q4owAw0.js";import"./query-expansion-r_iXkNzt.js";import"./manager-DfdDglld.js";export{i as countActiveDescendantRuns,s as countPendingDescendantRuns,e as countPendingDescendantRunsExcludingRun,o as isSubagentSessionRunActive,n as listSubagentRunsForRequester,r as replaceSubagentRunAfterSteer,a as resolveRequesterForChildSession,t as shouldIgnorePostCompletionAnnounceForSession};
1
+ import"./paths-piJASC5k.js";import"./paths-BpQOWYiT.js";import"./logger-DwWqfo66.js";import"./model-auth-C1YL9HcW.js";import"./proxy-env-DGzNnnJh.js";import"./send-BlWuQHYB.js";import"./send-CL0W7jLW.js";import{A as e,F as t,M as n,N as r,O as i,P as a,j as o,k as s}from"./dispatch-Bcf1uPHo.js";import"./tokens-BPc1fcZ3.js";import"./deliver-Dkh3lqXR.js";import"./github-copilot-token-Bt4PduRB.js";import"./fetch-guard-DSvAbvSx.js";import"./send-3VNTSIhr.js";import"./local-roots-DGe-SRNu.js";import"./ir-ynWQeZD9.js";import"./diagnostic-EqHqw9xo.js";import"./pi-model-discovery-D5tLf04u.js";import"./audio-transcription-runner-BVmaaA2k.js";import"./image-aG-5S1vd.js";import"./api-key-rotation-D5Nr1xl3.js";import"./proxy-fetch-Del551nu.js";import"./commands-registry-DI2vPscP.js";import"./fetch-B1GR6-u4.js";import"./render-DhTJXP1U.js";import"./target-errors-CFzzcffg.js";import"./channel-activity-CKfWFchu.js";import"./tables-C4j5Bar_.js";import"./send-De4qiprb.js";import"./fetch-B27H-XCf.js";import"./skill-commands-DWDtyCtB.js";import"./outbound-attachment-Bgf1pCh8.js";import"./send-6q4owAw0.js";import"./query-expansion-r_iXkNzt.js";import"./manager-DfdDglld.js";export{i as countActiveDescendantRuns,s as countPendingDescendantRuns,e as countPendingDescendantRunsExcludingRun,o as isSubagentSessionRunActive,n as listSubagentRunsForRequester,r as replaceSubagentRunAfterSteer,a as resolveRequesterForChildSession,t as shouldIgnorePostCompletionAnnounceForSession};
@@ -1 +1 @@
1
- require(`./paths-BvlJvmRS.cjs`),require(`./paths-BPlgbwrb.cjs`),require(`./config-rBz8C_Hi.cjs`);const e=require(`./dispatch-DK5ub8qa.cjs`);require(`./github-copilot-token-TMkfxxD2.cjs`),require(`./logger-Bm93ZKOk.cjs`),require(`./proxy-env-Bcl14j2_.cjs`),require(`./send-CLl490Gb.cjs`),require(`./fetch-lw-aF17e.cjs`),require(`./channel-activity-BGK-Bj2_.cjs`),require(`./fetch-guard-DY9jpsXo.cjs`),require(`./local-roots-wTkpE7go.cjs`),require(`./ir-DAxY-7c1.cjs`),require(`./render-CzHaQB0d.cjs`),require(`./tables-Bp0a2WRP.cjs`),require(`./send-Bnvt7ZUE.cjs`),require(`./target-errors-Dd6CopYF.cjs`),require(`./send-D_1K0zmx.cjs`),require(`./deliver-DQLekoj2.cjs`),require(`./diagnostic-DXscFT8t.cjs`),require(`./pi-model-discovery-BJ8wTgFH.cjs`),require(`./audio-transcription-runner-QfEC19vE.cjs`),require(`./image-CoksjGBL.cjs`),require(`./api-key-rotation-CFPNzksf.cjs`),require(`./proxy-fetch-DH7VIiBH.cjs`),require(`./tokens-Dq2wDF3_.cjs`),require(`./commands-registry-C8wnXqNa.cjs`),require(`./send-CDwTrbgT.cjs`),require(`./fetch-DpwR_cJU.cjs`),require(`./skill-commands-CKc7JO_c.cjs`),require(`./outbound-attachment-FqWC0WJx.cjs`),require(`./send-D5UwpCoU.cjs`),require(`./query-expansion-DO2CFW4z.cjs`),require(`./manager-DdvFnsT7.cjs`),exports.countActiveDescendantRuns=e.lt,exports.countPendingDescendantRuns=e.ut,exports.countPendingDescendantRunsExcludingRun=e.dt,exports.isSubagentSessionRunActive=e.ft,exports.listSubagentRunsForRequester=e.pt,exports.replaceSubagentRunAfterSteer=e.mt,exports.resolveRequesterForChildSession=e.ht,exports.shouldIgnorePostCompletionAnnounceForSession=e.gt;
1
+ require(`./paths-BvlJvmRS.cjs`),require(`./paths-BPlgbwrb.cjs`),require(`./config-rBz8C_Hi.cjs`);const e=require(`./dispatch-C3k8j6Zb.cjs`);require(`./github-copilot-token-TMkfxxD2.cjs`),require(`./logger-Bm93ZKOk.cjs`),require(`./proxy-env-Bcl14j2_.cjs`),require(`./send-CLl490Gb.cjs`),require(`./fetch-lw-aF17e.cjs`),require(`./channel-activity-BGK-Bj2_.cjs`),require(`./fetch-guard-DY9jpsXo.cjs`),require(`./local-roots-wTkpE7go.cjs`),require(`./ir-DAxY-7c1.cjs`),require(`./render-CzHaQB0d.cjs`),require(`./tables-Bp0a2WRP.cjs`),require(`./send-Bnvt7ZUE.cjs`),require(`./target-errors-Dd6CopYF.cjs`),require(`./send-D_1K0zmx.cjs`),require(`./deliver-DQLekoj2.cjs`),require(`./diagnostic-DXscFT8t.cjs`),require(`./pi-model-discovery-BJ8wTgFH.cjs`),require(`./audio-transcription-runner-QfEC19vE.cjs`),require(`./image-CoksjGBL.cjs`),require(`./api-key-rotation-CFPNzksf.cjs`),require(`./proxy-fetch-DH7VIiBH.cjs`),require(`./tokens-Dq2wDF3_.cjs`),require(`./commands-registry-C8wnXqNa.cjs`),require(`./send-CDwTrbgT.cjs`),require(`./fetch-DpwR_cJU.cjs`),require(`./skill-commands-CKc7JO_c.cjs`),require(`./outbound-attachment-FqWC0WJx.cjs`),require(`./send-D5UwpCoU.cjs`),require(`./query-expansion-DO2CFW4z.cjs`),require(`./manager-DdvFnsT7.cjs`),exports.countActiveDescendantRuns=e.lt,exports.countPendingDescendantRuns=e.ut,exports.countPendingDescendantRunsExcludingRun=e.dt,exports.isSubagentSessionRunActive=e.ft,exports.listSubagentRunsForRequester=e.pt,exports.replaceSubagentRunAfterSteer=e.mt,exports.resolveRequesterForChildSession=e.ht,exports.shouldIgnorePostCompletionAnnounceForSession=e.gt;
@@ -1 +1 @@
1
- import{A as e,F as t,I as n,L as r,M as i,N as a,P as o,j as s}from"./dispatch-5v3v8zzA.js";import"./paths-Do0djuaj.js";import"./model-auth-CycDtQl-.js";import"./logger-DJGHvDbX.js";import"./paths-CtrEseGU.js";import"./proxy-env-MEjSyzTr.js";import"./github-copilot-token-vKAKX6iE.js";import"./send-CmO9z2-b.js";import"./send-CicLiXB4.js";import"./send-XMOZsJcs.js";import"./deliver-D1P0FNTu.js";import"./diagnostic-Efe4b81B.js";import"./pi-model-discovery-Dqq9Vm8o.js";import"./audio-transcription-runner-B54MyF1_.js";import"./image-B6HEHWlJ.js";import"./fetch-guard-_fifU0fX.js";import"./api-key-rotation-CXY0AyM1.js";import"./local-roots-D0yN794S.js";import"./proxy-fetch-DXt2R_Z5.js";import"./tokens-BqABmXSe.js";import"./commands-registry-Cnr6PvIw.js";import"./fetch-BtZY623f.js";import"./ir-Dgc6qZMX.js";import"./render-DhTJXP1U.js";import"./target-errors-BZRN-lPd.js";import"./channel-activity-CmYpOPAn.js";import"./tables-BlNIkMV8.js";import"./send-Bq787fi_.js";import"./fetch-7Iq9POda.js";import"./skill-commands-Ny38ZFIC.js";import"./outbound-attachment-CftilZWd.js";import"./send-GuISe9C82.js";import"./query-expansion-CAboqtWr.js";import"./manager-CGHd5p2T.js";export{e as countActiveDescendantRuns,s as countPendingDescendantRuns,i as countPendingDescendantRunsExcludingRun,a as isSubagentSessionRunActive,o as listSubagentRunsForRequester,t as replaceSubagentRunAfterSteer,n as resolveRequesterForChildSession,r as shouldIgnorePostCompletionAnnounceForSession};
1
+ import{A as e,F as t,I as n,L as r,M as i,N as a,P as o,j as s}from"./dispatch-Df8B7owq.js";import"./paths-Do0djuaj.js";import"./model-auth-CycDtQl-.js";import"./logger-DJGHvDbX.js";import"./paths-CtrEseGU.js";import"./proxy-env-MEjSyzTr.js";import"./github-copilot-token-vKAKX6iE.js";import"./send-CmO9z2-b.js";import"./send-CicLiXB4.js";import"./send-XMOZsJcs.js";import"./deliver-D1P0FNTu.js";import"./diagnostic-Efe4b81B.js";import"./pi-model-discovery-Dqq9Vm8o.js";import"./audio-transcription-runner-B54MyF1_.js";import"./image-B6HEHWlJ.js";import"./fetch-guard-_fifU0fX.js";import"./api-key-rotation-CXY0AyM1.js";import"./local-roots-D0yN794S.js";import"./proxy-fetch-DXt2R_Z5.js";import"./tokens-BqABmXSe.js";import"./commands-registry-Cnr6PvIw.js";import"./fetch-BtZY623f.js";import"./ir-Dgc6qZMX.js";import"./render-DhTJXP1U.js";import"./target-errors-BZRN-lPd.js";import"./channel-activity-CmYpOPAn.js";import"./tables-BlNIkMV8.js";import"./send-Bq787fi_.js";import"./fetch-7Iq9POda.js";import"./skill-commands-Ny38ZFIC.js";import"./outbound-attachment-CftilZWd.js";import"./send-GuISe9C82.js";import"./query-expansion-CAboqtWr.js";import"./manager-CGHd5p2T.js";export{e as countActiveDescendantRuns,s as countPendingDescendantRuns,i as countPendingDescendantRunsExcludingRun,a as isSubagentSessionRunActive,o as listSubagentRunsForRequester,t as replaceSubagentRunAfterSteer,n as resolveRequesterForChildSession,r as shouldIgnorePostCompletionAnnounceForSession};
@@ -1 +1 @@
1
- require(`./paths-Bcdg3ma0.cjs`);const e=require(`./dispatch-CNy3g9ma.cjs`);require(`./send-D-HZnehy.cjs`),require(`./paths-Dd7r1qlB.cjs`),require(`./model-auth-D-7xiXhK.cjs`),require(`./logger-6O6OsYBL.cjs`),require(`./proxy-env-k93igu7v.cjs`),require(`./github-copilot-token-BHdMLLqf.cjs`),require(`./send-DV_afQnj.cjs`),require(`./fetch-guard-8I7EHbDM.cjs`),require(`./send-CQtITZ7k.cjs`),require(`./deliver-CjQPkWS-.cjs`),require(`./diagnostic-D0oCfBju.cjs`),require(`./pi-model-discovery-B9boErNZ.cjs`),require(`./audio-transcription-runner-g7L0m-Z5.cjs`),require(`./image-CuOIoxl2.cjs`),require(`./api-key-rotation-X-5Fb7av.cjs`),require(`./local-roots-CeAYfmPb.cjs`),require(`./proxy-fetch-qbrYAz8k.cjs`),require(`./tokens-CytSl1X8.cjs`),require(`./commands-registry-SHZVq_qf.cjs`),require(`./fetch-Bi8krAaT.cjs`),require(`./ir-DanxCjD-.cjs`),require(`./render-DxBO2Blp.cjs`),require(`./target-errors-BEkhKWCq.cjs`),require(`./channel-activity-D5D5tBWf.cjs`),require(`./tables-NrdtIJGp.cjs`),require(`./send-DB4i1kUy.cjs`),require(`./fetch-BjXhwqrE.cjs`),require(`./skill-commands-CIAf9cWN.cjs`),require(`./outbound-attachment-COgf85S8.cjs`),require(`./send-DBjzdBda.cjs`),require(`./query-expansion-DKJkqmNM.cjs`),require(`./manager-CdD7HaGW.cjs`),exports.countActiveDescendantRuns=e.k,exports.countPendingDescendantRuns=e.A,exports.countPendingDescendantRunsExcludingRun=e.j,exports.isSubagentSessionRunActive=e.M,exports.listSubagentRunsForRequester=e.N,exports.replaceSubagentRunAfterSteer=e.P,exports.resolveRequesterForChildSession=e.F,exports.shouldIgnorePostCompletionAnnounceForSession=e.I;
1
+ require(`./paths-Bcdg3ma0.cjs`);const e=require(`./dispatch-YK0qHNtb.cjs`);require(`./send-D-HZnehy.cjs`),require(`./paths-Dd7r1qlB.cjs`),require(`./model-auth-D-7xiXhK.cjs`),require(`./logger-6O6OsYBL.cjs`),require(`./proxy-env-k93igu7v.cjs`),require(`./github-copilot-token-BHdMLLqf.cjs`),require(`./send-DV_afQnj.cjs`),require(`./fetch-guard-8I7EHbDM.cjs`),require(`./send-CQtITZ7k.cjs`),require(`./deliver-CjQPkWS-.cjs`),require(`./diagnostic-D0oCfBju.cjs`),require(`./pi-model-discovery-B9boErNZ.cjs`),require(`./audio-transcription-runner-g7L0m-Z5.cjs`),require(`./image-CuOIoxl2.cjs`),require(`./api-key-rotation-X-5Fb7av.cjs`),require(`./local-roots-CeAYfmPb.cjs`),require(`./proxy-fetch-qbrYAz8k.cjs`),require(`./tokens-CytSl1X8.cjs`),require(`./commands-registry-SHZVq_qf.cjs`),require(`./fetch-Bi8krAaT.cjs`),require(`./ir-DanxCjD-.cjs`),require(`./render-DxBO2Blp.cjs`),require(`./target-errors-BEkhKWCq.cjs`),require(`./channel-activity-D5D5tBWf.cjs`),require(`./tables-NrdtIJGp.cjs`),require(`./send-DB4i1kUy.cjs`),require(`./fetch-BjXhwqrE.cjs`),require(`./skill-commands-CIAf9cWN.cjs`),require(`./outbound-attachment-COgf85S8.cjs`),require(`./send-DBjzdBda.cjs`),require(`./query-expansion-DKJkqmNM.cjs`),require(`./manager-CdD7HaGW.cjs`),exports.countActiveDescendantRuns=e.k,exports.countPendingDescendantRuns=e.A,exports.countPendingDescendantRunsExcludingRun=e.j,exports.isSubagentSessionRunActive=e.M,exports.listSubagentRunsForRequester=e.N,exports.replaceSubagentRunAfterSteer=e.P,exports.resolveRequesterForChildSession=e.F,exports.shouldIgnorePostCompletionAnnounceForSession=e.I;
@@ -1 +1 @@
1
- import"./paths-J4JUiRsa.js";import"./config-ByA2hluR.js";import{dt as e,ft as t,gt as n,ht as r,lt as i,mt as a,pt as o,ut as s}from"./dispatch-C2YTqGlf.js";import"./paths-DaRoqzBQ.js";import"./github-copilot-token-C1hiDugd.js";import"./logger-BtrWb0dj.js";import"./proxy-env-t6hcaFqC.js";import"./send-DtjJM0LO.js";import"./fetch-DBRI0sKI.js";import"./channel-activity-DpxSOlXF.js";import"./fetch-guard-DbOZYxyN.js";import"./local-roots-5udQUs81.js";import"./ir-Bh6lKGdS.js";import"./render-DGmfCIRG.js";import"./tables-DtslIPYw.js";import"./send-DaLB9Lca.js";import"./target-errors-DFmK5loi.js";import"./send-NpNVFRmY.js";import"./deliver-BOLmjIJ3.js";import"./diagnostic-DGLX0zXU.js";import"./pi-model-discovery-Bb2vCP6M.js";import"./audio-transcription-runner-pVTD93vq.js";import"./image-TCSQZpr6.js";import"./api-key-rotation-_VfXYfHS.js";import"./proxy-fetch-B9aXJVe-.js";import"./tokens-AAdZjj0M.js";import"./commands-registry-DcBvmwSU.js";import"./send-IoGcE0w2.js";import"./fetch-BVEVk5YF.js";import"./skill-commands-Cvb6oXym.js";import"./outbound-attachment-CvSHb9ci.js";import"./send-DWuChr46.js";import"./query-expansion-DyCDaZbL.js";import"./manager-WwW37IUu.js";export{i as countActiveDescendantRuns,s as countPendingDescendantRuns,e as countPendingDescendantRunsExcludingRun,t as isSubagentSessionRunActive,o as listSubagentRunsForRequester,a as replaceSubagentRunAfterSteer,r as resolveRequesterForChildSession,n as shouldIgnorePostCompletionAnnounceForSession};
1
+ import"./paths-J4JUiRsa.js";import"./config-ByA2hluR.js";import{dt as e,ft as t,gt as n,ht as r,lt as i,mt as a,pt as o,ut as s}from"./dispatch-3PrSaGZi.js";import"./paths-DaRoqzBQ.js";import"./github-copilot-token-C1hiDugd.js";import"./logger-BtrWb0dj.js";import"./proxy-env-t6hcaFqC.js";import"./send-DtjJM0LO.js";import"./fetch-DBRI0sKI.js";import"./channel-activity-DpxSOlXF.js";import"./fetch-guard-DbOZYxyN.js";import"./local-roots-5udQUs81.js";import"./ir-Bh6lKGdS.js";import"./render-DGmfCIRG.js";import"./tables-DtslIPYw.js";import"./send-DaLB9Lca.js";import"./target-errors-DFmK5loi.js";import"./send-NpNVFRmY.js";import"./deliver-BOLmjIJ3.js";import"./diagnostic-DGLX0zXU.js";import"./pi-model-discovery-Bb2vCP6M.js";import"./audio-transcription-runner-pVTD93vq.js";import"./image-TCSQZpr6.js";import"./api-key-rotation-_VfXYfHS.js";import"./proxy-fetch-B9aXJVe-.js";import"./tokens-AAdZjj0M.js";import"./commands-registry-DcBvmwSU.js";import"./send-IoGcE0w2.js";import"./fetch-BVEVk5YF.js";import"./skill-commands-Cvb6oXym.js";import"./outbound-attachment-CvSHb9ci.js";import"./send-DWuChr46.js";import"./query-expansion-DyCDaZbL.js";import"./manager-WwW37IUu.js";export{i as countActiveDescendantRuns,s as countPendingDescendantRuns,e as countPendingDescendantRunsExcludingRun,t as isSubagentSessionRunActive,o as listSubagentRunsForRequester,a as replaceSubagentRunAfterSteer,r as resolveRequesterForChildSession,n as shouldIgnorePostCompletionAnnounceForSession};
@@ -1 +1 @@
1
- require(`./paths-Bcdg3ma0.cjs`);const e=require(`./dispatch-B6UbZCpL.cjs`);require(`./paths-Cqca1YmF.cjs`),require(`./model-auth-TFUxaK0f.cjs`),require(`./logger-DPlqYkRm.cjs`),require(`./proxy-env-a590sPAz.cjs`),require(`./github-copilot-token-CCrgp2py.cjs`),require(`./send-EvcsiFBC.cjs`),require(`./send-Bq6Mqs9G.cjs`),require(`./send-CJGLeSJ8.cjs`),require(`./deliver-BrfVwkYz.cjs`),require(`./diagnostic-D7A9cQYf.cjs`),require(`./pi-model-discovery-DGoPUzBj.cjs`),require(`./audio-transcription-runner-CMsp7bhn.cjs`),require(`./image-BxafJgQ6.cjs`),require(`./fetch-guard-DB85MORy.cjs`),require(`./api-key-rotation-wFUVOOfM.cjs`),require(`./local-roots-BmhNPIJm.cjs`),require(`./proxy-fetch-DPOhfrou.cjs`),require(`./tokens-g5KWvWhD.cjs`),require(`./commands-registry-5lStNoKW.cjs`),require(`./fetch-ClKErpni.cjs`),require(`./ir-CveCWs8q.cjs`),require(`./render-DxBO2Blp.cjs`),require(`./target-errors-DeNJ10ks.cjs`),require(`./channel-activity-CVOp-PL4.cjs`),require(`./tables-BtVUf77b.cjs`),require(`./send-DZ4szmEa.cjs`),require(`./fetch-BY6lVRlY.cjs`),require(`./skill-commands-B4wI8ETo.cjs`),require(`./outbound-attachment-B8-ZVX2i.cjs`),require(`./send-BAoqP09M.cjs`),require(`./query-expansion-DCeqywxh.cjs`),require(`./manager-CmAH_a7A.cjs`),exports.countActiveDescendantRuns=e.A,exports.countPendingDescendantRuns=e.j,exports.countPendingDescendantRunsExcludingRun=e.M,exports.isSubagentSessionRunActive=e.N,exports.listSubagentRunsForRequester=e.P,exports.replaceSubagentRunAfterSteer=e.F,exports.resolveRequesterForChildSession=e.I,exports.shouldIgnorePostCompletionAnnounceForSession=e.L;
1
+ require(`./paths-Bcdg3ma0.cjs`);const e=require(`./dispatch-_fZDA253.cjs`);require(`./paths-Cqca1YmF.cjs`),require(`./model-auth-TFUxaK0f.cjs`),require(`./logger-DPlqYkRm.cjs`),require(`./proxy-env-a590sPAz.cjs`),require(`./github-copilot-token-CCrgp2py.cjs`),require(`./send-EvcsiFBC.cjs`),require(`./send-Bq6Mqs9G.cjs`),require(`./send-CJGLeSJ8.cjs`),require(`./deliver-BrfVwkYz.cjs`),require(`./diagnostic-D7A9cQYf.cjs`),require(`./pi-model-discovery-DGoPUzBj.cjs`),require(`./audio-transcription-runner-CMsp7bhn.cjs`),require(`./image-BxafJgQ6.cjs`),require(`./fetch-guard-DB85MORy.cjs`),require(`./api-key-rotation-wFUVOOfM.cjs`),require(`./local-roots-BmhNPIJm.cjs`),require(`./proxy-fetch-DPOhfrou.cjs`),require(`./tokens-g5KWvWhD.cjs`),require(`./commands-registry-5lStNoKW.cjs`),require(`./fetch-ClKErpni.cjs`),require(`./ir-CveCWs8q.cjs`),require(`./render-DxBO2Blp.cjs`),require(`./target-errors-DeNJ10ks.cjs`),require(`./channel-activity-CVOp-PL4.cjs`),require(`./tables-BtVUf77b.cjs`),require(`./send-DZ4szmEa.cjs`),require(`./fetch-BY6lVRlY.cjs`),require(`./skill-commands-B4wI8ETo.cjs`),require(`./outbound-attachment-B8-ZVX2i.cjs`),require(`./send-BAoqP09M.cjs`),require(`./query-expansion-DCeqywxh.cjs`),require(`./manager-CmAH_a7A.cjs`),exports.countActiveDescendantRuns=e.A,exports.countPendingDescendantRuns=e.j,exports.countPendingDescendantRunsExcludingRun=e.M,exports.isSubagentSessionRunActive=e.N,exports.listSubagentRunsForRequester=e.P,exports.replaceSubagentRunAfterSteer=e.F,exports.resolveRequesterForChildSession=e.I,exports.shouldIgnorePostCompletionAnnounceForSession=e.L;
@@ -1 +1 @@
1
- require(`./paths-Bcdg3ma0.cjs`),require(`./paths-D90l3h_o.cjs`),require(`./sessions-Dz5JUL8j.cjs`),require(`./logger-DUYnS-W3.cjs`),require(`./proxy-env-DQoJjkWE.cjs`),require(`./send-D3imkSlz.cjs`),require(`./common-B4iFXuoZ.cjs`),require(`./send-Co_Wy2kT.cjs`);const e=require(`./reply-0zCEbT4w.cjs`);require(`./github-copilot-token-zskwAEpd.cjs`),require(`./send-CFuJjCNB.cjs`),require(`./tokens-CXsPDJTr.cjs`),require(`./audio-transcription-runner-CH5CoZrF.cjs`),require(`./image-DegWnAZU.cjs`),require(`./fetch-guard-CIJUkBIL.cjs`),require(`./api-key-rotation-DDCwA0KM.cjs`),require(`./local-roots-Cu7YCpql.cjs`),require(`./proxy-fetch-BzcKzknk.cjs`),require(`./deliver-DCrO9mvv.cjs`),require(`./commands-registry-CtYCWfuM.cjs`),require(`./fetch-ClKErpni.cjs`),require(`./diagnostic-8iX73nz_.cjs`),require(`./pi-model-discovery-D5xlUS2J.cjs`),require(`./ir-C3VNqnc2.cjs`),require(`./render-6fCdtAr6.cjs`),require(`./send-Cox_iyYB.cjs`),require(`./outbound-attachment-Cujprd6T.cjs`),require(`./send-61GHLNYP.cjs`),require(`./channel-activity-CLUi31fX.cjs`),require(`./tables-CnrHab5d.cjs`),require(`./fetch-DQxuOB8o.cjs`),require(`./skill-commands-KyN0FGaC.cjs`),require(`./query-expansion-0zYzKrrd.cjs`),require(`./manager-gE9187gu.cjs`),exports.countActiveDescendantRuns=e.L,exports.countPendingDescendantRuns=e.R,exports.countPendingDescendantRunsExcludingRun=e.z,exports.isSubagentSessionRunActive=e.B,exports.listSubagentRunsForRequester=e.V,exports.replaceSubagentRunAfterSteer=e.H,exports.resolveRequesterForChildSession=e.U,exports.shouldIgnorePostCompletionAnnounceForSession=e.W;
1
+ require(`./paths-Bcdg3ma0.cjs`),require(`./paths-D90l3h_o.cjs`),require(`./sessions-Dz5JUL8j.cjs`),require(`./logger-DUYnS-W3.cjs`),require(`./proxy-env-DQoJjkWE.cjs`),require(`./send-D3imkSlz.cjs`),require(`./common-B4iFXuoZ.cjs`),require(`./send-Co_Wy2kT.cjs`);const e=require(`./reply-BoWg-IXT.cjs`);require(`./github-copilot-token-zskwAEpd.cjs`),require(`./send-CFuJjCNB.cjs`),require(`./tokens-CXsPDJTr.cjs`),require(`./audio-transcription-runner-CH5CoZrF.cjs`),require(`./image-DegWnAZU.cjs`),require(`./fetch-guard-CIJUkBIL.cjs`),require(`./api-key-rotation-DDCwA0KM.cjs`),require(`./local-roots-Cu7YCpql.cjs`),require(`./proxy-fetch-BzcKzknk.cjs`),require(`./deliver-DCrO9mvv.cjs`),require(`./commands-registry-CtYCWfuM.cjs`),require(`./fetch-ClKErpni.cjs`),require(`./diagnostic-8iX73nz_.cjs`),require(`./pi-model-discovery-D5xlUS2J.cjs`),require(`./ir-C3VNqnc2.cjs`),require(`./render-6fCdtAr6.cjs`),require(`./send-Cox_iyYB.cjs`),require(`./outbound-attachment-Cujprd6T.cjs`),require(`./send-61GHLNYP.cjs`),require(`./channel-activity-CLUi31fX.cjs`),require(`./tables-CnrHab5d.cjs`),require(`./fetch-DQxuOB8o.cjs`),require(`./skill-commands-KyN0FGaC.cjs`),require(`./query-expansion-0zYzKrrd.cjs`),require(`./manager-gE9187gu.cjs`),exports.countActiveDescendantRuns=e.L,exports.countPendingDescendantRuns=e.R,exports.countPendingDescendantRunsExcludingRun=e.z,exports.isSubagentSessionRunActive=e.B,exports.listSubagentRunsForRequester=e.V,exports.replaceSubagentRunAfterSteer=e.H,exports.resolveRequesterForChildSession=e.U,exports.shouldIgnorePostCompletionAnnounceForSession=e.W;
@@ -1 +1 @@
1
- require(`./paths-Bcdg3ma0.cjs`),require(`./paths-CIcxeNL-.cjs`),require(`./utils-PPIvU9qw.cjs`),require(`./model-auth-BwajGuoF.cjs`),require(`./target-errors-9cdJA1L2.cjs`);const e=require(`./dispatch-mR2vLkGa.cjs`);require(`./send-CxMiTtxI.cjs`),require(`./send-CuX4LcJ3.cjs`),require(`./proxy-env-D48qBPAr.cjs`),require(`./github-copilot-token-C1O2cBqk.cjs`),require(`./send-DZr98eqE.cjs`),require(`./fetch-guard-DLNzldn9.cjs`),require(`./deliver-C-tChWTI.cjs`),require(`./diagnostic-Cu1PGj0E.cjs`),require(`./pi-model-discovery-DMrqvV1O.cjs`),require(`./audio-transcription-runner-ClGibmMi.cjs`),require(`./image-DJyEMzkq.cjs`),require(`./api-key-rotation-Bj1A9Slo.cjs`),require(`./local-roots-D4i3H0UG.cjs`),require(`./proxy-fetch-BwXFVsHE.cjs`),require(`./tokens-CnB4dJmp.cjs`),require(`./commands-registry-DkUhCIDk.cjs`),require(`./fetch-CZewCAvu.cjs`),require(`./ir-DSuLr2UE.cjs`),require(`./render-g5VlmgpF.cjs`),require(`./channel-activity-CgXnZ0GC.cjs`),require(`./tables-Bk8lHaPx.cjs`),require(`./send-B3aEYvqG.cjs`),require(`./fetch-BN9y3kTg.cjs`),require(`./skill-commands-BoTeA376.cjs`),require(`./outbound-attachment-BDwI_tn0.cjs`),require(`./send-C4cyMW4S.cjs`),require(`./query-expansion-cpXCyoDy.cjs`),require(`./manager-DIS4ywpb.cjs`),exports.countActiveDescendantRuns=e.M,exports.countPendingDescendantRuns=e.N,exports.countPendingDescendantRunsExcludingRun=e.P,exports.isSubagentSessionRunActive=e.F,exports.listSubagentRunsForRequester=e.I,exports.replaceSubagentRunAfterSteer=e.L,exports.resolveRequesterForChildSession=e.R,exports.shouldIgnorePostCompletionAnnounceForSession=e.z;
1
+ require(`./paths-Bcdg3ma0.cjs`),require(`./paths-CIcxeNL-.cjs`),require(`./utils-PPIvU9qw.cjs`),require(`./model-auth-BwajGuoF.cjs`),require(`./target-errors-9cdJA1L2.cjs`);const e=require(`./dispatch-wEH2eS4y.cjs`);require(`./send-CxMiTtxI.cjs`),require(`./send-CuX4LcJ3.cjs`),require(`./proxy-env-D48qBPAr.cjs`),require(`./github-copilot-token-C1O2cBqk.cjs`),require(`./send-DZr98eqE.cjs`),require(`./fetch-guard-DLNzldn9.cjs`),require(`./deliver-C-tChWTI.cjs`),require(`./diagnostic-Cu1PGj0E.cjs`),require(`./pi-model-discovery-DMrqvV1O.cjs`),require(`./audio-transcription-runner-ClGibmMi.cjs`),require(`./image-DJyEMzkq.cjs`),require(`./api-key-rotation-Bj1A9Slo.cjs`),require(`./local-roots-D4i3H0UG.cjs`),require(`./proxy-fetch-BwXFVsHE.cjs`),require(`./tokens-CnB4dJmp.cjs`),require(`./commands-registry-DkUhCIDk.cjs`),require(`./fetch-CZewCAvu.cjs`),require(`./ir-DSuLr2UE.cjs`),require(`./render-g5VlmgpF.cjs`),require(`./channel-activity-CgXnZ0GC.cjs`),require(`./tables-Bk8lHaPx.cjs`),require(`./send-B3aEYvqG.cjs`),require(`./fetch-BN9y3kTg.cjs`),require(`./skill-commands-BoTeA376.cjs`),require(`./outbound-attachment-BDwI_tn0.cjs`),require(`./send-C4cyMW4S.cjs`),require(`./query-expansion-cpXCyoDy.cjs`),require(`./manager-DIS4ywpb.cjs`),exports.countActiveDescendantRuns=e.M,exports.countPendingDescendantRuns=e.N,exports.countPendingDescendantRunsExcludingRun=e.P,exports.isSubagentSessionRunActive=e.F,exports.listSubagentRunsForRequester=e.I,exports.replaceSubagentRunAfterSteer=e.L,exports.resolveRequesterForChildSession=e.R,exports.shouldIgnorePostCompletionAnnounceForSession=e.z;
@@ -1 +1 @@
1
- require(`./paths-BvlJvmRS.cjs`),require(`./paths-Chp3zwtq.cjs`),require(`./logger-BlddiV_d.cjs`),require(`./model-auth-BpS4IWDi.cjs`),require(`./proxy-env-DWw9TnOj.cjs`),require(`./send-Cm7bEwx-.cjs`),require(`./send-h--iKoQE.cjs`);const e=require(`./dispatch-SWyfAZT0.cjs`);require(`./tokens-DtrljGtQ.cjs`),require(`./deliver-DsFtXFyr.cjs`),require(`./github-copilot-token-DoHgkI2r.cjs`),require(`./fetch-guard-Cz-cgYmR.cjs`),require(`./send-C8f5H4XV.cjs`),require(`./local-roots-C5UoE741.cjs`),require(`./ir-CZOtKajq.cjs`),require(`./diagnostic-CVS4k9hh.cjs`),require(`./pi-model-discovery-DoY7qnlI.cjs`),require(`./audio-transcription-runner-By3lSLub.cjs`),require(`./image-CTgwucug.cjs`),require(`./api-key-rotation-DHMvXm70.cjs`),require(`./proxy-fetch-BaA3JYgW.cjs`),require(`./commands-registry-DsMbmie-.cjs`),require(`./fetch-CZewCAvu.cjs`),require(`./render-DxBO2Blp.cjs`),require(`./target-errors-BrwqillR.cjs`),require(`./channel-activity-CwaMf9qT.cjs`),require(`./tables-CZGtYzDC.cjs`),require(`./send-CSGh_GVr.cjs`),require(`./fetch-DUMEaqum.cjs`),require(`./skill-commands-BzkMuA58.cjs`),require(`./outbound-attachment-1pf06Oiu.cjs`),require(`./send-JVdUTsN1.cjs`),require(`./query-expansion-BYSjmpkV.cjs`),require(`./manager-DQ2C-2IU.cjs`),exports.countActiveDescendantRuns=e.O,exports.countPendingDescendantRuns=e.k,exports.countPendingDescendantRunsExcludingRun=e.A,exports.isSubagentSessionRunActive=e.j,exports.listSubagentRunsForRequester=e.M,exports.replaceSubagentRunAfterSteer=e.N,exports.resolveRequesterForChildSession=e.P,exports.shouldIgnorePostCompletionAnnounceForSession=e.F;
1
+ require(`./paths-BvlJvmRS.cjs`),require(`./paths-Chp3zwtq.cjs`),require(`./logger-BlddiV_d.cjs`),require(`./model-auth-BpS4IWDi.cjs`),require(`./proxy-env-DWw9TnOj.cjs`),require(`./send-Cm7bEwx-.cjs`),require(`./send-h--iKoQE.cjs`);const e=require(`./dispatch-BgGE9usQ.cjs`);require(`./tokens-DtrljGtQ.cjs`),require(`./deliver-DsFtXFyr.cjs`),require(`./github-copilot-token-DoHgkI2r.cjs`),require(`./fetch-guard-Cz-cgYmR.cjs`),require(`./send-C8f5H4XV.cjs`),require(`./local-roots-C5UoE741.cjs`),require(`./ir-CZOtKajq.cjs`),require(`./diagnostic-CVS4k9hh.cjs`),require(`./pi-model-discovery-DoY7qnlI.cjs`),require(`./audio-transcription-runner-By3lSLub.cjs`),require(`./image-CTgwucug.cjs`),require(`./api-key-rotation-DHMvXm70.cjs`),require(`./proxy-fetch-BaA3JYgW.cjs`),require(`./commands-registry-DsMbmie-.cjs`),require(`./fetch-CZewCAvu.cjs`),require(`./render-DxBO2Blp.cjs`),require(`./target-errors-BrwqillR.cjs`),require(`./channel-activity-CwaMf9qT.cjs`),require(`./tables-CZGtYzDC.cjs`),require(`./send-CSGh_GVr.cjs`),require(`./fetch-DUMEaqum.cjs`),require(`./skill-commands-BzkMuA58.cjs`),require(`./outbound-attachment-1pf06Oiu.cjs`),require(`./send-JVdUTsN1.cjs`),require(`./query-expansion-BYSjmpkV.cjs`),require(`./manager-DQ2C-2IU.cjs`),exports.countActiveDescendantRuns=e.O,exports.countPendingDescendantRuns=e.k,exports.countPendingDescendantRunsExcludingRun=e.A,exports.isSubagentSessionRunActive=e.j,exports.listSubagentRunsForRequester=e.M,exports.replaceSubagentRunAfterSteer=e.N,exports.resolveRequesterForChildSession=e.P,exports.shouldIgnorePostCompletionAnnounceForSession=e.F;
@@ -1 +1 @@
1
- import"./paths-cBAF6Bj0.js";import"./sessions-DxXXAfdI.js";import"./logger-vBDTZWl3.js";import"./paths-CnHSNSeR.js";import"./proxy-env-B765haXA.js";import"./send-D-qD7BCb.js";import"./common-B6fDMl_i.js";import"./send-C4ZFbUux.js";import{B as e,H as t,L as n,R as r,U as i,V as a,W as o,z as s}from"./reply-D-f2bbXy.js";import"./github-copilot-token-N8vnLZPw.js";import"./send-BTE2rI1E.js";import"./tokens-B8ys7Q2e.js";import"./audio-transcription-runner-BIqM5H5q.js";import"./image-CWnsS03L.js";import"./fetch-guard-CY03i4gu.js";import"./api-key-rotation-DcREl_0x.js";import"./local-roots-tee85Q-1.js";import"./proxy-fetch-CYVChsKE.js";import"./deliver-vYe_sYOL.js";import"./commands-registry-MCsWR5Vf.js";import"./fetch-CCLWsYaQ.js";import"./diagnostic-CkePwN5F.js";import"./pi-model-discovery-BuEMyAsU.js";import"./ir-OBi5zaEW.js";import"./render-CBsnn-2A.js";import"./send-CEfs0Fsr.js";import"./outbound-attachment-DQYtdTUw.js";import"./send-B2qa7CSk.js";import"./channel-activity-D7tpmatp.js";import"./tables-BIDWwpX8.js";import"./fetch-C-HRWp5R.js";import"./skill-commands-Hmuw0PPK.js";import"./query-expansion-C_DnhmUy.js";import"./manager-MR9stU_p.js";export{n as countActiveDescendantRuns,r as countPendingDescendantRuns,s as countPendingDescendantRunsExcludingRun,e as isSubagentSessionRunActive,a as listSubagentRunsForRequester,t as replaceSubagentRunAfterSteer,i as resolveRequesterForChildSession,o as shouldIgnorePostCompletionAnnounceForSession};
1
+ import"./paths-cBAF6Bj0.js";import"./sessions-DxXXAfdI.js";import"./logger-vBDTZWl3.js";import"./paths-CnHSNSeR.js";import"./proxy-env-B765haXA.js";import"./send-D-qD7BCb.js";import"./common-B6fDMl_i.js";import"./send-C4ZFbUux.js";import{B as e,H as t,L as n,R as r,U as i,V as a,W as o,z as s}from"./reply-bS9U9BwG.js";import"./github-copilot-token-N8vnLZPw.js";import"./send-BTE2rI1E.js";import"./tokens-B8ys7Q2e.js";import"./audio-transcription-runner-BIqM5H5q.js";import"./image-CWnsS03L.js";import"./fetch-guard-CY03i4gu.js";import"./api-key-rotation-DcREl_0x.js";import"./local-roots-tee85Q-1.js";import"./proxy-fetch-CYVChsKE.js";import"./deliver-vYe_sYOL.js";import"./commands-registry-MCsWR5Vf.js";import"./fetch-CCLWsYaQ.js";import"./diagnostic-CkePwN5F.js";import"./pi-model-discovery-BuEMyAsU.js";import"./ir-OBi5zaEW.js";import"./render-CBsnn-2A.js";import"./send-CEfs0Fsr.js";import"./outbound-attachment-DQYtdTUw.js";import"./send-B2qa7CSk.js";import"./channel-activity-D7tpmatp.js";import"./tables-BIDWwpX8.js";import"./fetch-C-HRWp5R.js";import"./skill-commands-Hmuw0PPK.js";import"./query-expansion-C_DnhmUy.js";import"./manager-MR9stU_p.js";export{n as countActiveDescendantRuns,r as countPendingDescendantRuns,s as countPendingDescendantRunsExcludingRun,e as isSubagentSessionRunActive,a as listSubagentRunsForRequester,t as replaceSubagentRunAfterSteer,i as resolveRequesterForChildSession,o as shouldIgnorePostCompletionAnnounceForSession};
@@ -1 +1 @@
1
- import"./paths-CXgWvWAM.js";import"./utils-BJtJR72k.js";import"./paths-rO4ehkyU.js";import"./model-auth-Cw3fuhm_.js";import"./target-errors-DXqwykNX.js";import{F as e,I as t,L as n,M as r,N as i,P as a,R as o,z as s}from"./dispatch-DCSwqteL.js";import"./send-DPgRTM8s.js";import"./send-BrAHLYBR.js";import"./proxy-env-m9eG3uZN.js";import"./github-copilot-token-C8j8_NjX.js";import"./send-DvDCmTQf.js";import"./fetch-guard-DXe8oqEE.js";import"./deliver-B0fB4hAV.js";import"./diagnostic-vsjHZ_fY.js";import"./pi-model-discovery-Bor7jHYd.js";import"./audio-transcription-runner-BLAxZL-U.js";import"./image-CDI5SqeR.js";import"./api-key-rotation-DaFFZfk5.js";import"./local-roots-Ca8KoAAp.js";import"./proxy-fetch-YCVHz7Rl.js";import"./tokens-DgPZk2Uu.js";import"./commands-registry-kRjFifgj.js";import"./fetch-B1GR6-u4.js";import"./ir-8rDh7div.js";import"./render-Djx15dPh.js";import"./channel-activity-BRHvpV0C.js";import"./tables-XYb3T-vE.js";import"./send-Bt2eFBk2.js";import"./fetch-J0IzopiJ.js";import"./skill-commands-BwrYJu7Z.js";import"./outbound-attachment-CfN9OvMC.js";import"./send-A2s5sPTd.js";import"./query-expansion-Cb2vnF6y.js";import"./manager-CbGA_JDa.js";export{r as countActiveDescendantRuns,i as countPendingDescendantRuns,a as countPendingDescendantRunsExcludingRun,e as isSubagentSessionRunActive,t as listSubagentRunsForRequester,n as replaceSubagentRunAfterSteer,o as resolveRequesterForChildSession,s as shouldIgnorePostCompletionAnnounceForSession};
1
+ import"./paths-CXgWvWAM.js";import"./utils-BJtJR72k.js";import"./paths-rO4ehkyU.js";import"./model-auth-Cw3fuhm_.js";import"./target-errors-DXqwykNX.js";import{F as e,I as t,L as n,M as r,N as i,P as a,R as o,z as s}from"./dispatch-C_gJPvbD.js";import"./send-DPgRTM8s.js";import"./send-BrAHLYBR.js";import"./proxy-env-m9eG3uZN.js";import"./github-copilot-token-C8j8_NjX.js";import"./send-DvDCmTQf.js";import"./fetch-guard-DXe8oqEE.js";import"./deliver-B0fB4hAV.js";import"./diagnostic-vsjHZ_fY.js";import"./pi-model-discovery-Bor7jHYd.js";import"./audio-transcription-runner-BLAxZL-U.js";import"./image-CDI5SqeR.js";import"./api-key-rotation-DaFFZfk5.js";import"./local-roots-Ca8KoAAp.js";import"./proxy-fetch-YCVHz7Rl.js";import"./tokens-DgPZk2Uu.js";import"./commands-registry-kRjFifgj.js";import"./fetch-B1GR6-u4.js";import"./ir-8rDh7div.js";import"./render-Djx15dPh.js";import"./channel-activity-BRHvpV0C.js";import"./tables-XYb3T-vE.js";import"./send-Bt2eFBk2.js";import"./fetch-J0IzopiJ.js";import"./skill-commands-BwrYJu7Z.js";import"./outbound-attachment-CfN9OvMC.js";import"./send-A2s5sPTd.js";import"./query-expansion-Cb2vnF6y.js";import"./manager-CbGA_JDa.js";export{r as countActiveDescendantRuns,i as countPendingDescendantRuns,a as countPendingDescendantRunsExcludingRun,e as isSubagentSessionRunActive,t as listSubagentRunsForRequester,n as replaceSubagentRunAfterSteer,o as resolveRequesterForChildSession,s as shouldIgnorePostCompletionAnnounceForSession};
@@ -1 +1 @@
1
- import{A as e,F as t,I as n,M as r,N as i,P as a,j as o,k as s}from"./dispatch-BYlcmJ9u.js";import"./send-BNBJ4CF8.js";import"./paths-D55o_j8-.js";import"./model-auth-Cc-8H6Cu.js";import"./logger-C210xuWx.js";import"./paths-DhSjTRMz.js";import"./proxy-env-BlrHtJWH.js";import"./github-copilot-token-ylX_gawo.js";import"./send-DeU-T5ps.js";import"./fetch-guard-DE9BslxX.js";import"./send-D75OGJco.js";import"./deliver-DkfCVM78.js";import"./diagnostic-CLUtpxAp.js";import"./pi-model-discovery-zCuISPPq.js";import"./audio-transcription-runner-BdY-TMcc.js";import"./image-Bte8cr4F.js";import"./api-key-rotation-ClIwV8yq.js";import"./local-roots-bWA2msT0.js";import"./proxy-fetch-ClOb2LUH.js";import"./tokens-B20KNIDD.js";import"./commands-registry-D2gv242l.js";import"./fetch-C3LEMysf.js";import"./ir-hQ6EW92h.js";import"./render-DhTJXP1U.js";import"./target-errors-Buo5pfom.js";import"./channel-activity-spvDzlTl.js";import"./tables-lbv-0tl3.js";import"./send-CyyzWwDr.js";import"./fetch-BMYDLRWo.js";import"./skill-commands-KzwEqk5p.js";import"./outbound-attachment-BXhbJils.js";import"./send-DPpBLiL4.js";import"./query-expansion-DF4LMxRQ.js";import"./manager-932XljTT.js";export{s as countActiveDescendantRuns,e as countPendingDescendantRuns,o as countPendingDescendantRunsExcludingRun,r as isSubagentSessionRunActive,i as listSubagentRunsForRequester,a as replaceSubagentRunAfterSteer,t as resolveRequesterForChildSession,n as shouldIgnorePostCompletionAnnounceForSession};
1
+ import{A as e,F as t,I as n,M as r,N as i,P as a,j as o,k as s}from"./dispatch-BhUN9ZDP.js";import"./send-BNBJ4CF8.js";import"./paths-D55o_j8-.js";import"./model-auth-Cc-8H6Cu.js";import"./logger-C210xuWx.js";import"./paths-DhSjTRMz.js";import"./proxy-env-BlrHtJWH.js";import"./github-copilot-token-ylX_gawo.js";import"./send-DeU-T5ps.js";import"./fetch-guard-DE9BslxX.js";import"./send-D75OGJco.js";import"./deliver-DkfCVM78.js";import"./diagnostic-CLUtpxAp.js";import"./pi-model-discovery-zCuISPPq.js";import"./audio-transcription-runner-BdY-TMcc.js";import"./image-Bte8cr4F.js";import"./api-key-rotation-ClIwV8yq.js";import"./local-roots-bWA2msT0.js";import"./proxy-fetch-ClOb2LUH.js";import"./tokens-B20KNIDD.js";import"./commands-registry-D2gv242l.js";import"./fetch-C3LEMysf.js";import"./ir-hQ6EW92h.js";import"./render-DhTJXP1U.js";import"./target-errors-Buo5pfom.js";import"./channel-activity-spvDzlTl.js";import"./tables-lbv-0tl3.js";import"./send-CyyzWwDr.js";import"./fetch-BMYDLRWo.js";import"./skill-commands-KzwEqk5p.js";import"./outbound-attachment-BXhbJils.js";import"./send-DPpBLiL4.js";import"./query-expansion-DF4LMxRQ.js";import"./manager-932XljTT.js";export{s as countActiveDescendantRuns,e as countPendingDescendantRuns,o as countPendingDescendantRunsExcludingRun,r as isSubagentSessionRunActive,i as listSubagentRunsForRequester,a as replaceSubagentRunAfterSteer,t as resolveRequesterForChildSession,n as shouldIgnorePostCompletionAnnounceForSession};
@@ -1,6 +1,6 @@
1
- import{gt as e,ht as t,s as n,vt as r,xt as i}from"./paths-CXgWvWAM.js";import{B as a,K as o,M as s,O as c,R as l,d as u,l as d,m as f,n as p,u as m,x as h,y as g}from"./utils-BJtJR72k.js";import"./paths-rO4ehkyU.js";import{Ct as _,Dt as v,Fs as y,Hs as b,Is as x,Jn as S,Js as C,Ls as w,Or as T,Rs as ee,Tt as E,Un as D,Wi as O,Wn as k,Ws as A,tc as te,zs as j}from"./model-auth-Cw3fuhm_.js";import"./target-errors-DXqwykNX.js";import{A as M,B as ne,C as N,D as P,E as re,G as F,K as I,O as ie,S as ae,T as L,U as oe,V as se,W as R,X as ce,Y as z,Z as B,_ as V,b as le,d as ue,f as H,g as U,h as W,j as G,k as de,l as fe,m as pe,o as me,p as he,q as ge,r as _e,s as ve,u as ye,v as be,x as xe,y as Se}from"./dispatch-DCSwqteL.js";import{$ as Ce,ct as we,lt as Te}from"./send-DPgRTM8s.js";import{Mt as Ee,Nt as De,Pt as Oe}from"./send-BrAHLYBR.js";import"./proxy-env-m9eG3uZN.js";import"./github-copilot-token-C8j8_NjX.js";import"./send-DvDCmTQf.js";import"./fetch-guard-DXe8oqEE.js";import"./deliver-B0fB4hAV.js";import"./diagnostic-vsjHZ_fY.js";import"./pi-model-discovery-Bor7jHYd.js";import{f as ke}from"./audio-transcription-runner-BLAxZL-U.js";import"./image-CDI5SqeR.js";import"./api-key-rotation-DaFFZfk5.js";import{t as Ae}from"./local-roots-Ca8KoAAp.js";import"./proxy-fetch-YCVHz7Rl.js";import"./tokens-DgPZk2Uu.js";import"./commands-registry-kRjFifgj.js";import"./fetch-B1GR6-u4.js";import{a as je,d as Me,h as Ne,m as Pe,s as Fe}from"./ir-8rDh7div.js";import"./render-Djx15dPh.js";import{n as Ie}from"./channel-activity-BRHvpV0C.js";import{t as Le}from"./tables-XYb3T-vE.js";import"./send-Bt2eFBk2.js";import"./fetch-J0IzopiJ.js";import"./skill-commands-BwrYJu7Z.js";import"./outbound-attachment-CfN9OvMC.js";import"./send-A2s5sPTd.js";import{r as Re}from"./active-listener-ILBdBHMv.js";import"./query-expansion-Cb2vnF6y.js";import"./manager-CbGA_JDa.js";import{i as ze,r as Be,t as Ve}from"./outbound-BlWsUmjQ.js";import{i as He,n as K,r as Ue,t as We}from"./session-CCYDbcyV.js";import{t as Ge}from"./login-BIbt7ZL_.js";import{randomUUID as Ke}from"node:crypto";import{DisconnectReason as qe,downloadMediaMessage as Je,extractMessageContent as Ye,getContentType as Xe,isJidGroup as Ze,normalizeMessageContent as q}from"@whiskeysockets/baileys";const Qe={initialMs:2e3,maxMs:3e4,factor:1.8,jitter:.25,maxAttempts:12};function $e(e,t){let n=t??e.web?.heartbeatSeconds;return typeof n==`number`&&n>0?n:60}function et(e,t){let n=e.web?.reconnect??{},r=t??{},i={...Qe,...n,...r};return i.initialMs=Math.max(250,i.initialMs),i.maxMs=Math.max(i.initialMs,i.maxMs),i.factor=p(i.factor,1.1,10),i.jitter=p(i.jitter,0,1),i.maxAttempts=Math.max(0,Math.floor(i.maxAttempts)),i}function J(){return Ke()}const Y=c(`gateway/channels/whatsapp`),X=Y.child(`inbound`),Z=Y.child(`outbound`),tt=Y.child(`heartbeat`);function nt(){return setInterval(()=>{},1e6).unref(),new Promise(()=>{})}const rt=ne({ttlMs:20*6e4,maxSize:5e3});function it(e){return rt.check(e)}const at=new Set([`FN`,`N`,`TEL`]);function ot(e){if(!e)return{phones:[]};let t=e.split(/\r?\n/),n,r,i=[];for(let e of t){let t=e.trim();if(!t)continue;let a=t.indexOf(`:`);if(a===-1)continue;let o=t.slice(0,a).toUpperCase(),s=t.slice(a+1).trim();if(!s)continue;let c=st(o);if(!c||!at.has(c))continue;let l=ct(s);if(l){if(c===`FN`&&!r){r=lt(l);continue}if(c===`N`&&!n){n=lt(l);continue}if(c===`TEL`){let e=ut(l);e&&i.push(e)}}}return{name:r??n,phones:i}}function st(e){let[t]=e.split(`;`);if(!t)return;let n=t.split(`.`);return n[n.length-1]||void 0}function ct(e){return e.replace(/\\n/gi,` `).replace(/\\,/g,`,`).replace(/\\;/g,`;`).trim()}function lt(e){return e.replace(/;/g,` `).replace(/\s+/g,` `).trim()}function ut(e){let t=e.trim();return t?t.toLowerCase().startsWith(`tel:`)?t.slice(4).trim():t:``}function Q(e){return q(e)}function dt(e){if(!e)return;let t=Xe(e),n=t?e[t]:void 0,r=n&&typeof n==`object`&&`contextInfo`in n?n.contextInfo:void 0;if(r)return r;let i=e.extendedTextMessage?.contextInfo??e.imageMessage?.contextInfo??e.videoMessage?.contextInfo??e.documentMessage?.contextInfo??e.audioMessage?.contextInfo??e.stickerMessage?.contextInfo??e.buttonsResponseMessage?.contextInfo??e.listResponseMessage?.contextInfo??e.templateButtonReplyMessage?.contextInfo??e.interactiveResponseMessage?.contextInfo??e.buttonsMessage?.contextInfo??e.listMessage?.contextInfo;if(i)return i;for(let t of Object.values(e)){if(!t||typeof t!=`object`||!(`contextInfo`in t))continue;let e=t.contextInfo;if(e)return e}}function ft(e){let t=Q(e);if(!t)return;let n=[t.extendedTextMessage?.contextInfo?.mentionedJid,t.extendedTextMessage?.contextInfo?.quotedMessage?.extendedTextMessage?.contextInfo?.mentionedJid,t.imageMessage?.contextInfo?.mentionedJid,t.videoMessage?.contextInfo?.mentionedJid,t.documentMessage?.contextInfo?.mentionedJid,t.audioMessage?.contextInfo?.mentionedJid,t.stickerMessage?.contextInfo?.mentionedJid,t.buttonsResponseMessage?.contextInfo?.mentionedJid,t.listResponseMessage?.contextInfo?.mentionedJid].flatMap(e=>e??[]).filter(Boolean);if(n.length!==0)return Array.from(new Set(n))}function pt(e){let t=Q(e);if(!t)return;let n=Ye(t),r=[t,n&&n!==t?n:void 0];for(let e of r){if(!e)continue;if(typeof e.conversation==`string`&&e.conversation.trim())return e.conversation.trim();let t=e.extendedTextMessage?.text;if(t?.trim())return t.trim();let n=e.imageMessage?.caption??e.videoMessage?.caption??e.documentMessage?.caption;if(n?.trim())return n.trim()}let i=ht(t)??(n&&n!==t?ht(n):void 0);if(i)return i}function mt(e){let t=Q(e);if(t){if(t.imageMessage)return`<media:image>`;if(t.videoMessage)return`<media:video>`;if(t.audioMessage)return`<media:audio>`;if(t.documentMessage)return`<media:document>`;if(t.stickerMessage)return`<media:sticker>`}}function ht(e){let t=Q(e);if(!t)return;let n=t.contactMessage??void 0;if(n){let{name:e,phones:t}=gt({displayName:n.displayName,vcard:n.vcard});return _t(e,t)}let r=t.contactsArrayMessage?.contacts??void 0;if(!(!r||r.length===0))return vt(r.map(e=>gt({displayName:e.displayName,vcard:e.vcard})).map(e=>yt(e.name,e.phones)).filter(e=>!!e),r.length)}function gt(e){let t=(e.displayName??``).trim(),n=ot(e.vcard??void 0);return{name:t||n.name,phones:n.phones}}function _t(e,t){let n=yt(e,t);return n?`<contact: ${n}>`:`<contact>`}function vt(e,t){let n=e.map(e=>e.trim()).filter(Boolean);if(n.length===0)return`<contacts: ${t} ${t===1?`contact`:`contacts`}>`;let r=Math.max(t-n.length,0),i=r>0?` +${r} more`:``;return`<contacts: ${n.join(`, `)}${i}>`}function yt(e,t){let n=[e,bt(t)].filter(e=>!!e);if(n.length!==0)return n.join(`, `)}function bt(e){let t=e?.map(e=>e.trim()).filter(Boolean)??[];if(t.length===0)return;let{shown:n,remaining:r}=xt(t,t.length,1),[i]=n;if(i)return r===0?i:`${i} (+${r} more)`}function xt(e,t,n){let r=e.slice(0,n);return{shown:r,remaining:Math.max(t-r.length,0)}}function St(e){let t=Q(e);if(!t)return null;let n=t.liveLocationMessage??void 0;if(n){let e=n.degreesLatitude,t=n.degreesLongitude;if(e!=null&&t!=null){let r=Number(e),i=Number(t);if(Number.isFinite(r)&&Number.isFinite(i))return{latitude:r,longitude:i,accuracy:n.accuracyInMeters??void 0,caption:n.caption??void 0,source:`live`,isLive:!0}}}let r=t.locationMessage??void 0;if(r){let e=r.degreesLatitude,t=r.degreesLongitude;if(e!=null&&t!=null){let n=Number(e),i=Number(t);if(Number.isFinite(n)&&Number.isFinite(i)){let e=!!r.isLive;return{latitude:n,longitude:i,accuracy:r.accuracyInMeters??void 0,name:r.name??void 0,address:r.address??void 0,caption:r.comment??void 0,source:e?`live`:r.name||r.address?`place`:`pin`,isLive:e}}}}return null}function Ct(e){let t=Q(e);if(!t)return null;let n=dt(t),r=q(n?.quotedMessage);if(!r)return null;let i=St(r),a=i?we(i):void 0,o=[pt(r),a].filter(Boolean).join(`
1
+ import{gt as e,ht as t,s as n,vt as r,xt as i}from"./paths-CXgWvWAM.js";import{B as a,K as o,M as s,O as c,R as l,d as u,l as d,m as f,n as p,u as m,x as h,y as g}from"./utils-BJtJR72k.js";import"./paths-rO4ehkyU.js";import{Ct as _,Dt as v,Fs as y,Hs as b,Is as x,Jn as S,Js as C,Ls as w,Or as T,Rs as ee,Tt as E,Un as D,Wi as O,Wn as k,Ws as A,tc as te,zs as j}from"./model-auth-Cw3fuhm_.js";import"./target-errors-DXqwykNX.js";import{A as M,B as ne,C as N,D as P,E as re,G as F,K as I,O as ie,S as ae,T as L,U as oe,V as se,W as R,X as ce,Y as z,Z as B,_ as V,b as le,d as ue,f as H,g as U,h as W,j as G,k as de,l as fe,m as pe,o as me,p as he,q as ge,r as _e,s as ve,u as ye,v as be,x as xe,y as Se}from"./dispatch-C_gJPvbD.js";import{$ as Ce,ct as we,lt as Te}from"./send-DPgRTM8s.js";import{Mt as Ee,Nt as De,Pt as Oe}from"./send-BrAHLYBR.js";import"./proxy-env-m9eG3uZN.js";import"./github-copilot-token-C8j8_NjX.js";import"./send-DvDCmTQf.js";import"./fetch-guard-DXe8oqEE.js";import"./deliver-B0fB4hAV.js";import"./diagnostic-vsjHZ_fY.js";import"./pi-model-discovery-Bor7jHYd.js";import{f as ke}from"./audio-transcription-runner-BLAxZL-U.js";import"./image-CDI5SqeR.js";import"./api-key-rotation-DaFFZfk5.js";import{t as Ae}from"./local-roots-Ca8KoAAp.js";import"./proxy-fetch-YCVHz7Rl.js";import"./tokens-DgPZk2Uu.js";import"./commands-registry-kRjFifgj.js";import"./fetch-B1GR6-u4.js";import{a as je,d as Me,h as Ne,m as Pe,s as Fe}from"./ir-8rDh7div.js";import"./render-Djx15dPh.js";import{n as Ie}from"./channel-activity-BRHvpV0C.js";import{t as Le}from"./tables-XYb3T-vE.js";import"./send-Bt2eFBk2.js";import"./fetch-J0IzopiJ.js";import"./skill-commands-BwrYJu7Z.js";import"./outbound-attachment-CfN9OvMC.js";import"./send-A2s5sPTd.js";import{r as Re}from"./active-listener-ILBdBHMv.js";import"./query-expansion-Cb2vnF6y.js";import"./manager-CbGA_JDa.js";import{i as ze,r as Be,t as Ve}from"./outbound-BlWsUmjQ.js";import{i as He,n as K,r as Ue,t as We}from"./session-CCYDbcyV.js";import{t as Ge}from"./login-BIbt7ZL_.js";import{randomUUID as Ke}from"node:crypto";import{DisconnectReason as qe,downloadMediaMessage as Je,extractMessageContent as Ye,getContentType as Xe,isJidGroup as Ze,normalizeMessageContent as q}from"@whiskeysockets/baileys";const Qe={initialMs:2e3,maxMs:3e4,factor:1.8,jitter:.25,maxAttempts:12};function $e(e,t){let n=t??e.web?.heartbeatSeconds;return typeof n==`number`&&n>0?n:60}function et(e,t){let n=e.web?.reconnect??{},r=t??{},i={...Qe,...n,...r};return i.initialMs=Math.max(250,i.initialMs),i.maxMs=Math.max(i.initialMs,i.maxMs),i.factor=p(i.factor,1.1,10),i.jitter=p(i.jitter,0,1),i.maxAttempts=Math.max(0,Math.floor(i.maxAttempts)),i}function J(){return Ke()}const Y=c(`gateway/channels/whatsapp`),X=Y.child(`inbound`),Z=Y.child(`outbound`),tt=Y.child(`heartbeat`);function nt(){return setInterval(()=>{},1e6).unref(),new Promise(()=>{})}const rt=ne({ttlMs:20*6e4,maxSize:5e3});function it(e){return rt.check(e)}const at=new Set([`FN`,`N`,`TEL`]);function ot(e){if(!e)return{phones:[]};let t=e.split(/\r?\n/),n,r,i=[];for(let e of t){let t=e.trim();if(!t)continue;let a=t.indexOf(`:`);if(a===-1)continue;let o=t.slice(0,a).toUpperCase(),s=t.slice(a+1).trim();if(!s)continue;let c=st(o);if(!c||!at.has(c))continue;let l=ct(s);if(l){if(c===`FN`&&!r){r=lt(l);continue}if(c===`N`&&!n){n=lt(l);continue}if(c===`TEL`){let e=ut(l);e&&i.push(e)}}}return{name:r??n,phones:i}}function st(e){let[t]=e.split(`;`);if(!t)return;let n=t.split(`.`);return n[n.length-1]||void 0}function ct(e){return e.replace(/\\n/gi,` `).replace(/\\,/g,`,`).replace(/\\;/g,`;`).trim()}function lt(e){return e.replace(/;/g,` `).replace(/\s+/g,` `).trim()}function ut(e){let t=e.trim();return t?t.toLowerCase().startsWith(`tel:`)?t.slice(4).trim():t:``}function Q(e){return q(e)}function dt(e){if(!e)return;let t=Xe(e),n=t?e[t]:void 0,r=n&&typeof n==`object`&&`contextInfo`in n?n.contextInfo:void 0;if(r)return r;let i=e.extendedTextMessage?.contextInfo??e.imageMessage?.contextInfo??e.videoMessage?.contextInfo??e.documentMessage?.contextInfo??e.audioMessage?.contextInfo??e.stickerMessage?.contextInfo??e.buttonsResponseMessage?.contextInfo??e.listResponseMessage?.contextInfo??e.templateButtonReplyMessage?.contextInfo??e.interactiveResponseMessage?.contextInfo??e.buttonsMessage?.contextInfo??e.listMessage?.contextInfo;if(i)return i;for(let t of Object.values(e)){if(!t||typeof t!=`object`||!(`contextInfo`in t))continue;let e=t.contextInfo;if(e)return e}}function ft(e){let t=Q(e);if(!t)return;let n=[t.extendedTextMessage?.contextInfo?.mentionedJid,t.extendedTextMessage?.contextInfo?.quotedMessage?.extendedTextMessage?.contextInfo?.mentionedJid,t.imageMessage?.contextInfo?.mentionedJid,t.videoMessage?.contextInfo?.mentionedJid,t.documentMessage?.contextInfo?.mentionedJid,t.audioMessage?.contextInfo?.mentionedJid,t.stickerMessage?.contextInfo?.mentionedJid,t.buttonsResponseMessage?.contextInfo?.mentionedJid,t.listResponseMessage?.contextInfo?.mentionedJid].flatMap(e=>e??[]).filter(Boolean);if(n.length!==0)return Array.from(new Set(n))}function pt(e){let t=Q(e);if(!t)return;let n=Ye(t),r=[t,n&&n!==t?n:void 0];for(let e of r){if(!e)continue;if(typeof e.conversation==`string`&&e.conversation.trim())return e.conversation.trim();let t=e.extendedTextMessage?.text;if(t?.trim())return t.trim();let n=e.imageMessage?.caption??e.videoMessage?.caption??e.documentMessage?.caption;if(n?.trim())return n.trim()}let i=ht(t)??(n&&n!==t?ht(n):void 0);if(i)return i}function mt(e){let t=Q(e);if(t){if(t.imageMessage)return`<media:image>`;if(t.videoMessage)return`<media:video>`;if(t.audioMessage)return`<media:audio>`;if(t.documentMessage)return`<media:document>`;if(t.stickerMessage)return`<media:sticker>`}}function ht(e){let t=Q(e);if(!t)return;let n=t.contactMessage??void 0;if(n){let{name:e,phones:t}=gt({displayName:n.displayName,vcard:n.vcard});return _t(e,t)}let r=t.contactsArrayMessage?.contacts??void 0;if(!(!r||r.length===0))return vt(r.map(e=>gt({displayName:e.displayName,vcard:e.vcard})).map(e=>yt(e.name,e.phones)).filter(e=>!!e),r.length)}function gt(e){let t=(e.displayName??``).trim(),n=ot(e.vcard??void 0);return{name:t||n.name,phones:n.phones}}function _t(e,t){let n=yt(e,t);return n?`<contact: ${n}>`:`<contact>`}function vt(e,t){let n=e.map(e=>e.trim()).filter(Boolean);if(n.length===0)return`<contacts: ${t} ${t===1?`contact`:`contacts`}>`;let r=Math.max(t-n.length,0),i=r>0?` +${r} more`:``;return`<contacts: ${n.join(`, `)}${i}>`}function yt(e,t){let n=[e,bt(t)].filter(e=>!!e);if(n.length!==0)return n.join(`, `)}function bt(e){let t=e?.map(e=>e.trim()).filter(Boolean)??[];if(t.length===0)return;let{shown:n,remaining:r}=xt(t,t.length,1),[i]=n;if(i)return r===0?i:`${i} (+${r} more)`}function xt(e,t,n){let r=e.slice(0,n);return{shown:r,remaining:Math.max(t-r.length,0)}}function St(e){let t=Q(e);if(!t)return null;let n=t.liveLocationMessage??void 0;if(n){let e=n.degreesLatitude,t=n.degreesLongitude;if(e!=null&&t!=null){let r=Number(e),i=Number(t);if(Number.isFinite(r)&&Number.isFinite(i))return{latitude:r,longitude:i,accuracy:n.accuracyInMeters??void 0,caption:n.caption??void 0,source:`live`,isLive:!0}}}let r=t.locationMessage??void 0;if(r){let e=r.degreesLatitude,t=r.degreesLongitude;if(e!=null&&t!=null){let n=Number(e),i=Number(t);if(Number.isFinite(n)&&Number.isFinite(i)){let e=!!r.isLive;return{latitude:n,longitude:i,accuracy:r.accuracyInMeters??void 0,name:r.name??void 0,address:r.address??void 0,caption:r.comment??void 0,source:e?`live`:r.name||r.address?`place`:`pin`,isLive:e}}}}return null}function Ct(e){let t=Q(e);if(!t)return null;let n=dt(t),r=q(n?.quotedMessage);if(!r)return null;let i=St(r),a=i?we(i):void 0,o=[pt(r),a].filter(Boolean).join(`
2
2
  `).trim();if(o||=mt(r),!o){let e=r?Xe(r):void 0;return l(`Quoted message missing extractable body${e?` (type ${e})`:``}`),null}let s=n?.participant??void 0,c=s?m(s)??s:void 0,u=c??`unknown sender`;return{id:n?.stanzaId?String(n.stanzaId):void 0,body:o,sender:u,senderJid:s,senderE164:c}}function wt(e){return De({providerConfigPresent:e.providerConfigPresent,groupPolicy:e.groupPolicy,defaultGroupPolicy:e.defaultGroupPolicy})}async function Tt(e){let t=O(),n=y({cfg:t,accountId:e.accountId}),r=n.dmPolicy??`pairing`,i=n.allowFrom??[],a=await oe({provider:`whatsapp`,accountId:n.accountId,dmPolicy:r}),o=i.length===0&&e.selfE164?[e.selfE164]:[],s=i.length>0?i:o,c=n.groupAllowFrom??(i.length>0?i:void 0),f=e.from===e.selfE164,p=n.selfChatMode??d(e.selfE164,i),m=typeof e.pairingGraceMs==`number`&&e.pairingGraceMs>0?e.pairingGraceMs:3e4,h=typeof e.connectedAtMs==`number`&&typeof e.messageTimestampMs==`number`&&e.messageTimestampMs<e.connectedAtMs-m,g=Ee(t),{groupPolicy:_,providerMissingFallbackApplied:v}=wt({providerConfigPresent:t.channels?.whatsapp!==void 0,groupPolicy:n.groupPolicy,defaultGroupPolicy:g});Oe({providerMissingFallbackApplied:v,providerKey:`whatsapp`,accountId:n.accountId,log:e=>l(e)});let b=u(e.from),x=typeof e.senderE164==`string`?u(e.senderE164):null,S=F({isGroup:e.group,dmPolicy:r,groupPolicy:_,allowFrom:e.group?i:s,groupAllowFrom:c,storeAllowFrom:a,isSenderAllowed:t=>{if(t.includes(`*`))return!0;let n=new Set(t.map(e=>u(String(e))).filter(e=>!!e));return!e.group&&f?!0:e.group?!!(x&&n.has(x)):n.has(b)}});if(e.group&&S.decision!==`allow`)return S.reason===`groupPolicy=disabled`?l(`Blocked group message (groupPolicy: disabled)`):S.reason===`groupPolicy=allowlist (empty allowlist)`?l(`Blocked group message (groupPolicy: allowlist, no groupAllowFrom)`):l(`Blocked group message from ${e.senderE164??`unknown sender`} (groupPolicy: allowlist)`),{allowed:!1,shouldMarkRead:!1,isSelfChat:p,resolvedAccountId:n.accountId};if(!e.group){if(e.isFromMe&&!f)return l(`Skipping outbound DM (fromMe); no pairing reply needed.`),{allowed:!1,shouldMarkRead:!1,isSelfChat:p,resolvedAccountId:n.accountId};if(S.decision===`block`&&S.reason===`dmPolicy=disabled`)return l(`Blocked dm (dmPolicy: disabled)`),{allowed:!1,shouldMarkRead:!1,isSelfChat:p,resolvedAccountId:n.accountId};if(S.decision===`pairing`&&!f){let t=e.from;return h?l(`Skipping pairing reply for historical DM from ${t}.`):await ge({channel:`whatsapp`,senderId:t,senderIdLine:`Your WhatsApp phone number: ${t}`,meta:{name:(e.pushName??``).trim()||void 0},upsertPairingRequest:async({id:e,meta:t})=>await Ce({channel:`whatsapp`,id:e,accountId:n.accountId,meta:t}),onCreated:()=>{l(`whatsapp pairing request sender=${t} name=${e.pushName??`unknown`}`)},sendPairingReply:async t=>{await e.sock.sendMessage(e.remoteJid,{text:t})},onReplyError:e=>{l(`whatsapp pairing reply failed for ${t}: ${String(e)}`)}}),{allowed:!1,shouldMarkRead:!1,isSelfChat:p,resolvedAccountId:n.accountId}}if(S.decision!==`allow`)return l(`Blocked unauthorized sender ${e.from} (dmPolicy=${r})`),{allowed:!1,shouldMarkRead:!1,isSelfChat:p,resolvedAccountId:n.accountId}}return{allowed:!0,shouldMarkRead:!0,isSelfChat:p,resolvedAccountId:n.accountId}}function Et(e){return q(e)}function Dt(e){let t=e.imageMessage?.mimetype??e.videoMessage?.mimetype??e.documentMessage?.mimetype??e.audioMessage?.mimetype??e.stickerMessage?.mimetype??void 0;if(t)return t;if(e.audioMessage)return`audio/ogg; codecs=opus`;if(e.imageMessage)return`image/jpeg`;if(e.videoMessage)return`video/mp4`;if(e.stickerMessage)return`image/webp`}async function Ot(e,t){let n=Et(e.message);if(!n)return;let r=Dt(n),i=n.documentMessage?.fileName??void 0;if(!(!n.imageMessage&&!n.videoMessage&&!n.documentMessage&&!n.audioMessage&&!n.stickerMessage))try{return{buffer:await Je(e,`buffer`,{},{reuploadRequest:t.updateMediaMessage,logger:t.logger}),mimetype:r,fileName:i}}catch(e){l(`downloadMediaMessage failed: ${String(e)}`);return}}function kt(e){Ie({channel:`whatsapp`,accountId:e,direction:`outbound`})}function At(e){return typeof e==`object`&&e&&`key`in e?String(e.key?.id??`unknown`):`unknown`}function jt(e){return{sendMessage:async(t,n,r,i,a)=>{let o=h(t),s;if(r&&i)if(i.startsWith(`image/`))s={image:r,caption:n||void 0,mimetype:i};else if(i.startsWith(`audio/`))s={audio:r,ptt:!0,mimetype:i};else if(i.startsWith(`video/`)){let e=a?.gifPlayback;s={video:r,caption:n||void 0,mimetype:i,...e?{gifPlayback:!0}:{}}}else s={document:r,fileName:a?.fileName?.trim()||`file`,caption:n||void 0,mimetype:i};else s={text:n};let c=await e.sock.sendMessage(o,s);return kt(a?.accountId??e.defaultAccountId),{messageId:At(c)}},sendPoll:async(t,n)=>{let r=h(t),i=await e.sock.sendMessage(r,{poll:{name:n.question,values:n.options,selectableCount:n.maxSelections??1}});return kt(e.defaultAccountId),{messageId:At(i)}},sendReaction:async(t,n,r,i,a)=>{let o=h(t);await e.sock.sendMessage(o,{react:{text:r,key:{remoteJid:o,id:n,fromMe:i,participant:a?h(a):void 0}}})},sendComposingTo:async t=>{let n=h(t);await e.sock.sendPresenceUpdate(`composing`,n)}}}async function Mt(e){let t=o({module:`web-inbound`}),n=c(`gateway/channels/whatsapp`).child(`inbound`),r=await We(!1,e.verbose,{authDir:e.authDir});await He(r);let i=Date.now(),s=null,u=new Promise(e=>{s=e}),d=e=>{if(!s)return;let t=s;s=null,t(e)};try{await r.sendPresenceUpdate(`available`),a()&&l(`Sent global 'available' presence on connect`)}catch(e){l(`Failed to send 'available' presence on connect: ${String(e)}`)}let p=r.user?.id,h=p?m(p):null,g=L({debounceMs:e.debounceMs??0,buildKey:e=>{let t=e.chatType===`group`?e.senderJid??e.senderE164??e.senderName??e.from:e.from;if(!t)return null;let n=e.chatType===`group`?e.chatId:e.from;return`${e.accountId}:${n}:${t}`},shouldDebounce:e.shouldDebounce,onFlush:async t=>{let n=t.at(-1);if(!n)return;if(t.length===1){await e.onMessage(n);return}let r=new Set;for(let e of t)for(let t of e.mentionedJids??[])r.add(t);let i=t.map(e=>e.body).filter(Boolean).join(`
3
3
  `),a={...n,body:i,mentionedJids:r.size>0?Array.from(r):void 0};await e.onMessage(a)},onError:e=>{t.error({error:String(e)},`failed handling inbound web message`),n.error(`Failed handling inbound web message: ${String(e)}`)}}),_=new Map,v=300*1e3,y=r.signalRepository?.lidMapping,b=async t=>f(t,{authDir:e.authDir,lidLookup:y}),x=async e=>{let t=_.get(e);if(t&&t.expires>Date.now())return t;try{let t=await r.groupMetadata(e),n=(await Promise.all(t.participants?.map(async e=>await b(e.id)??e.id)??[])).filter(Boolean)??[],i={subject:t.subject,participants:n,expires:Date.now()+v};return _.set(e,i),i}catch(t){return l(`Failed to fetch group metadata for ${e}: ${String(t)}`),{expires:Date.now()+v}}},S=async t=>{let n=t.key?.id??void 0,a=t.key?.remoteJid;if(!a||a.endsWith(`@status`)||a.endsWith(`@broadcast`))return null;let o=Ze(a)===!0;if(n&&it(`${e.accountId}:${a}:${n}`))return null;let s=t.key?.participant??void 0,c=o?a:await b(a);if(!c)return null;let l=o?s?await b(s):null:c,u,d;if(o){let e=await x(a);u=e.subject,d=e.participants}let f=t.messageTimestamp?Number(t.messageTimestamp)*1e3:void 0,p=await Tt({accountId:e.accountId,from:c,selfE164:h,senderE164:l,group:o,pushName:t.pushName??void 0,isFromMe:!!t.key?.fromMe,messageTimestampMs:f,connectedAtMs:i,sock:{sendMessage:(e,t)=>r.sendMessage(e,t)},remoteJid:a});return p.allowed?{id:n,remoteJid:a,group:o,participantJid:s,from:c,senderE164:l,groupSubject:u,groupParticipants:d,messageTimestampMs:f,access:p}:null},C=async t=>{let{id:n,remoteJid:i,participantJid:o,access:s}=t;if(n&&!s.isSelfChat&&e.sendReadReceipts!==!1)try{await r.readMessages([{remoteJid:i,id:n,participant:o,fromMe:!1}]),a()&&l(`Marked message ${n} as read for ${i}${o?` (participant ${o})`:``}`)}catch(e){l(`Failed to mark message ${n} read: ${String(e)}`)}else n&&s.isSelfChat&&a()&&l(`Self-chat mode: skipping read receipt for ${n}`)},w=async t=>{let n=St(t.message??void 0),i=n?we(n):void 0,a=pt(t.message??void 0);if(i&&(a=[a,i].filter(Boolean).join(`
4
4
  `).trim()),!a&&(a=mt(t.message??void 0),!a))return null;let o=Ct(t.message),s,c,u;try{let n=await Ot(t,r);if(n){let t=(typeof e.mediaMaxMb==`number`&&e.mediaMaxMb>0?e.mediaMaxMb:50)*1024*1024;s=(await T(n.buffer,n.mimetype,`inbound`,t,n.fileName)).path,c=n.mimetype,u=n.fileName}}catch(e){l(`Inbound media download failed: ${String(e)}`)}return{body:a,location:n??void 0,replyContext:o,mediaPath:s,mediaType:c,mediaFileName:u}},ee=async(e,i,a)=>{let o=i.remoteJid,s=async()=>{try{await r.sendPresenceUpdate(`composing`,o)}catch(e){l(`Presence update failed: ${String(e)}`)}},c=async e=>{await r.sendMessage(o,{text:e})},u=async e=>{await r.sendMessage(o,e)},d=i.messageTimestampMs,f=ft(e.message),m=e.pushName??void 0;t.info({from:i.from,to:h??`me`,body:a.body,mediaPath:a.mediaPath,mediaType:a.mediaType,mediaFileName:a.mediaFileName,timestamp:d},`inbound message`);let _={id:i.id,from:i.from,conversationId:i.from,to:h??`me`,accountId:i.access.resolvedAccountId,body:a.body,pushName:m,timestamp:d,chatType:i.group?`group`:`direct`,chatId:i.remoteJid,senderJid:i.participantJid,senderE164:i.senderE164??void 0,senderName:m,replyToId:a.replyContext?.id,replyToBody:a.replyContext?.body,replyToSender:a.replyContext?.sender,replyToSenderJid:a.replyContext?.senderJid,replyToSenderE164:a.replyContext?.senderE164,groupSubject:i.groupSubject,groupParticipants:i.groupParticipants,mentionedJids:f??void 0,selfJid:p,selfE164:h,fromMe:!!e.key?.fromMe,location:a.location??void 0,sendComposing:s,reply:c,sendMedia:u,mediaPath:a.mediaPath,mediaType:a.mediaType,mediaFileName:a.mediaFileName};try{Promise.resolve(g.enqueue(_)).catch(e=>{t.error({error:String(e)},`failed handling inbound web message`),n.error(`Failed handling inbound web message: ${String(e)}`)})}catch(e){t.error({error:String(e)},`failed handling inbound web message`),n.error(`Failed handling inbound web message: ${String(e)}`)}},E=async t=>{if(!(t.type!==`notify`&&t.type!==`append`))for(let n of t.messages??[]){Ie({channel:`whatsapp`,accountId:e.accountId,direction:`inbound`});let r=await S(n);if(!r||(await C(r),t.type===`append`))continue;let i=await w(n);i&&await ee(n,r,i)}};r.ev.on(`messages.upsert`,E);let D=e=>{try{if(e.connection===`close`){let t=Ue(e.lastDisconnect?.error);d({status:t,isLoggedOut:t===qe.loggedOut,error:e.lastDisconnect?.error})}}catch(e){t.error({error:String(e)},`connection.update handler error`),d({status:void 0,isLoggedOut:!1,error:e})}};return r.ev.on(`connection.update`,D),{close:async()=>{try{let e=r.ev,t=E,n=D;typeof e.off==`function`?(e.off(`messages.upsert`,t),e.off(`connection.update`,n)):typeof e.removeListener==`function`&&(e.removeListener(`messages.upsert`,t),e.removeListener(`connection.update`,n)),r.ws?.close()}catch(e){l(`Socket close failed: ${String(e)}`)}},onClose:u,signalClose:e=>{d(e??{status:void 0,isLoggedOut:!1,error:`closed`})},...jt({sock:{sendMessage:(e,t)=>r.sendMessage(e,t),sendPresenceUpdate:(e,t)=>r.sendPresenceUpdate(e,t)},defaultAccountId:e.accountId})}}function Nt(e,t){return{mentionRegexes:M(e,t),allowFrom:e.channels?.whatsapp?.allowFrom}}function Pt(e,t){let n=t?{authDir:t}:void 0;return{normalizedMentions:e.mentionedJids?.length?e.mentionedJids.map(e=>m(e,n)??e).filter(Boolean):[],selfE164:e.selfE164??(e.selfJid?m(e.selfJid,n):null),selfJid:e.selfJid?e.selfJid.replace(/:\\d+/,``):null}}function Ft(e,t,n){let r=e=>G(e),i=d(n.selfE164,t.allowFrom);if((e.mentionedJids?.length??0)>0&&!i)return!!(n.selfE164&&n.normalizedMentions.includes(n.selfE164)||n.selfJid&&n.normalizedMentions.includes(n.selfJid));let a=r(e.body);if(t.mentionRegexes.some(e=>e.test(a)))return!0;if(n.selfE164){let t=n.selfE164.replace(/\D/g,``);if(t){if(a.replace(/[^\d]/g,``).includes(t))return!0;let n=e.body.replace(/[\s-]/g,``);if(RegExp(`\\+?${t}`,`i`).test(n))return!0}}return!1}function It(e,t,n){let r=Pt(e,n);return{wasMentioned:Ft(e,t,r),details:{from:e.from,body:e.body,bodyClean:G(e.body),mentionedJids:e.mentionedJids??null,normalizedMentionedJids:r.normalizedMentions.length?r.normalizedMentions:null,selfJid:e.selfJid??null,selfJidBare:r.selfJid,selfE164:e.selfE164??null,resolvedSelfE164:r.selfE164}}}function Lt(e,t){let n=e.allowFrom;return(Array.isArray(n)&&n.length>0?n:t?[t]:[]).filter(e=>!!(e&&e!==`*`)).map(e=>u(e)).filter(e=>!!e)}function Rt(e){let t=new Set,n=Math.max(1,e.maxItems??100),r=e=>`combined:${e.sessionKey}:${e.combinedBody}`,i=()=>{for(;t.size>n;){let e=t.values().next().value;if(!e)break;t.delete(e)}};return{rememberText:(n,a)=>{n&&(t.add(n),a.combinedBody&&a.combinedBodySessionKey&&t.add(r({sessionKey:a.combinedBodySessionKey,combinedBody:a.combinedBody})),a.logVerboseMessage&&e.logVerbose?.(`Added to echo detection set (size now: ${t.size}): ${n.substring(0,50)}...`),i())},has:e=>t.has(e),forget:e=>{t.delete(e)},buildCombinedKey:r}}function zt(n){let r=U({agentId:n.agentId,channel:`whatsapp`,accountId:n.route.accountId,peer:{kind:n.msg.chatType===`group`?`group`:`direct`,id:n.peerId},dmScope:n.cfg.session?.dmScope,identityLinks:n.cfg.session?.identityLinks}),i=e({agentId:n.agentId,mainKey:t});return{sessionKey:r,mainSessionKey:i,lastRoutePolicy:V({sessionKey:r,mainSessionKey:i})}}async function Bt(e){let t=e.cfg.broadcast?.[e.peerId];if(!t||!Array.isArray(t)||t.length===0)return!1;let n=e.cfg.broadcast?.strategy||`parallel`;X.info(`Broadcasting message to ${t.length} agents (${n})`);let r=e.cfg.agents?.list?.map(e=>i(e.id)),a=(r?.length??0)>0,o=e.msg.chatType===`group`?e.groupHistories.get(e.groupHistoryKey)??[]:void 0,s=async t=>{let n=i(t);if(a&&!r?.includes(n))return X.warn(`Broadcast agent ${t} not found in agents.list; skipping`),!1;let s=zt({cfg:e.cfg,msg:e.msg,route:e.route,peerId:e.peerId,agentId:n}),c={...e.route,agentId:n,...s};try{return await e.processMessage(e.msg,c,e.groupHistoryKey,{groupHistory:o,suppressGroupHistoryClear:!0})}catch(e){return X.error(`Broadcast agent ${t} failed: ${K(e)}`),!1}};if(n===`sequential`)for(let e of t)await s(e);else await Promise.allSettled(t.map(s));return e.msg.chatType===`group`&&e.groupHistories.set(e.groupHistoryKey,[]),!0}function Vt(e,t,n){let r=e;for(let e of t)r=r.replace(e,` `);if(n){let e=n.replace(/\D/g,``);if(e){let t=RegExp(`\\+?${e}`,`g`);r=r.replace(t,` `)}}return r.replace(/\s+/g,` `).trim()}function Ht(e,t){let n=S({From:t,ChatType:`group`,Provider:`whatsapp`})?.id,r=e.channels?.whatsapp,i=!!(r?.groupAllowFrom?.length||r?.allowFrom?.length);return D({cfg:e,channel:`whatsapp`,groupId:n??t,hasGroupAllowFrom:i})}function Ut(e,t){let n=S({From:t,ChatType:`group`,Provider:`whatsapp`})?.id;return k({cfg:e,channel:`whatsapp`,groupId:n??t})}function Wt(e){let t=_(n(e.cfg.session?.store,{agentId:e.agentId}))[e.sessionKey],r=Ut(e.cfg,e.conversationId)?`mention`:`always`;return me(t?.groupActivation)??r}function Gt(e,t,n){for(let r of e){let e=u(r)??r;!e||t.has(e)||(t.add(e),n.push(e))}}function Kt(e,t,n,r){if(!n||!r)return;let i=u(n)??n;if(!i)return;let a=e.get(t);a||(a=new Map,e.set(t,a)),a.set(i,r)}function qt(e){let{participants:t,roster:n,fallbackE164:r}=e,i=new Set,a=[];if(t?.length&&Gt(t,i,a),n&&Gt(n.keys(),i,a),a.length===0&&r){let e=u(r)??r;e&&a.push(e)}if(a.length!==0)return a.map(e=>{let t=n?.get(e);return t?`${t} (${e})`:e}).join(`, `)}function Jt(e,t){let n=u(t.senderE164??``);return n?Lt(e,t.selfE164??void 0).includes(n):!1}function Yt(e){let t=e.msg.senderName&&e.msg.senderE164?`${e.msg.senderName} (${e.msg.senderE164})`:e.msg.senderName??e.msg.senderE164??`Unknown`;W({historyMap:e.groupHistories,historyKey:e.groupHistoryKey,limit:e.groupHistoryLimit,entry:{sender:t,body:e.msg.body,timestamp:e.msg.timestamp,id:e.msg.id,senderJid:e.msg.senderJid}})}function Xt(e,t){return e.logVerbose(t),Yt({msg:e.msg,groupHistories:e.groupHistories,groupHistoryKey:e.groupHistoryKey,groupHistoryLimit:e.groupHistoryLimit}),{shouldProcess:!1}}function Zt(e){let t=Ht(e.cfg,e.conversationId);if(t.allowlistEnabled&&!t.allowed)return e.logVerbose(`Skipping group message ${e.conversationId} (not in allowlist)`),{shouldProcess:!1};Kt(e.groupMemberNames,e.groupHistoryKey,e.msg.senderE164,e.msg.senderName);let n=Nt(e.cfg,e.agentId),r=Vt(e.msg.body,n.mentionRegexes,e.msg.selfE164),i=ve(r),a=Jt(e.baseMentionConfig,e.msg),o=a&&ie(r,e.cfg);if(i.hasCommand&&!a)return Xt(e,`Ignoring /activation from non-owner in group ${e.conversationId}`);let s=It(e.msg,n,e.authDir);e.replyLogger.debug({conversationId:e.conversationId,wasMentioned:s.wasMentioned,...s.details},`group mention debug`);let c=s.wasMentioned,l=Wt({cfg:e.cfg,agentId:e.agentId,sessionKey:e.sessionKey,conversationId:e.conversationId})!==`always`,d=e.msg.selfJid?.replace(/:\\d+/,``),f=e.msg.replyToSenderJid?.replace(/:\\d+/,``),p=e.msg.selfE164?u(e.msg.selfE164):null,m=e.msg.replyToSenderE164?u(e.msg.replyToSenderE164):null,h=he({requireMention:l,canDetectMention:!0,wasMentioned:c,implicitMention:!!(d&&f&&d===f||p&&m&&p===m),shouldBypassMention:o});return e.msg.wasMentioned=h.effectiveWasMentioned,!o&&l&&h.shouldSkip?Xt(e,`Group message stored for context (no mention detected) in ${e.conversationId}: ${e.msg.body}`):{shouldProcess:!0}}function Qt(e,t){e.add(t),t.finally(()=>{e.delete(t)})}function $t(e){let t=n(e.cfg.session?.store,{agentId:e.storeAgentId}),r=v({storePath:t,sessionKey:e.sessionKey,deliveryContext:{channel:e.channel,to:e.to,accountId:e.accountId},ctx:e.ctx}).catch(n=>{e.warn({error:K(n),storePath:t,sessionKey:e.sessionKey,to:e.to},`failed updating last route`)});Qt(e.backgroundTasks,r)}function en(e){return e.chatType===`group`?e.conversationId??e.from:e.senderE164?u(e.senderE164)??e.senderE164:e.from.includes(`@`)?m(e.from)??e.from:u(e.from)??e.from}function $(e,t=400){return!e||e.length<=t?e:`${e.slice(0,t)}… (truncated ${e.length-t} chars)`}function tn(e){let t=(e instanceof Error?`${e.message}\n${e.stack??``}`:(e=>{if(e==null)return``;if(typeof e==`string`)return e;if(e instanceof Error)return`${e.message}\n${e.stack??``}`;if(typeof e==`object`)try{return JSON.stringify(e)}catch{return Object.prototype.toString.call(e)}return typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`?String(e):typeof e==`symbol`?e.description??e.toString():typeof e==`function`?e.name?`[function ${e.name}]`:`[function]`:Object.prototype.toString.call(e)})(e)).toLowerCase();return t.includes(`unsupported state or unable to authenticate data`)||t.includes(`bad mac`)?t.includes(`@whiskeysockets/baileys`)||t.includes(`baileys`)||t.includes(`noise-handler`)||t.includes(`aesdecryptgcm`):!1}function nn(e){if(e.isReasoning===!0)return!0;let t=e.text;return typeof t==`string`?t.trimStart().toLowerCase().startsWith(`reasoning:`):!1}async function rn(e){let{replyResult:t,msg:n,maxMediaBytes:r,textLimit:i,replyLogger:o,connectionId:s,skipLog:c}=e,u=Date.now();if(nn(t)){Z.debug(`Suppressed reasoning payload to ${n.from}`);return}let d=e.tableMode??`code`,f=e.chunkMode??`length`,p=Me(ze(Le(t.text||``,d)),i,f),m=t.mediaUrls?.length?t.mediaUrls:t.mediaUrl?[t.mediaUrl]:[],h=async(e,t,r=3)=>{let i;for(let a=1;a<=r;a++)try{return await e()}catch(e){i=e;let o=K(e),s=a===r;if(!/closed|reset|timed\s*out|disconnect/i.test(o)||s)throw e;let c=500*a;l(`Retrying ${t} to ${n.from} after failure (${a}/${r-1}) in ${c}ms: ${o}`),await g(c)}throw i};if(m.length===0&&p.length){let e=p.length;for(let[t,r]of p.entries()){let i=Date.now();if(await h(()=>n.reply(r),`text`),!c){let r=Date.now()-i;Z.debug(`Sent chunk ${t+1}/${e} to ${n.from} (${r.toFixed(0)}ms)`)}}o.info({correlationId:n.id??J(),connectionId:s??null,to:n.from,from:n.to,text:$(t.text,240),mediaUrl:null,mediaSizeBytes:null,mediaKind:null,durationMs:Date.now()-u},`auto-reply sent (text)`);return}let _=[...p];for(let[t,i]of m.entries()){let c=t===0&&_.shift()||void 0;try{let t=await je(i,{maxBytes:r,localRoots:e.mediaLocalRoots});if(a()&&(l(`Web auto-reply media size: ${(t.buffer.length/(1024*1024)).toFixed(2)}MB`),l(`Web auto-reply media source: ${i} (kind ${t.kind})`)),t.kind===`image`)await h(()=>n.sendMedia({image:t.buffer,caption:c,mimetype:t.contentType}),`media:image`);else if(t.kind===`audio`)await h(()=>n.sendMedia({audio:t.buffer,ptt:!0,mimetype:t.contentType,caption:c}),`media:audio`);else if(t.kind===`video`)await h(()=>n.sendMedia({video:t.buffer,caption:c,mimetype:t.contentType}),`media:video`);else{let e=t.fileName??i.split(`/`).pop()??`file`,r=t.contentType??`application/octet-stream`;await h(()=>n.sendMedia({document:t.buffer,fileName:e,caption:c,mimetype:r}),`media:document`)}Z.info(`Sent media reply to ${n.from} (${(t.buffer.length/(1024*1024)).toFixed(2)}MB)`),o.info({correlationId:n.id??J(),connectionId:s??null,to:n.from,from:n.to,text:c??null,mediaUrl:i,mediaSizeBytes:t.buffer.length,mediaKind:t.kind,durationMs:Date.now()-u},`auto-reply sent (media)`)}catch(e){if(Z.error(`Failed sending web media to ${n.from}: ${K(e)}`),o.warn({err:e,mediaUrl:i},`failed to send web media reply`),t===0){let t=e instanceof Error?`⚠️ Media failed: ${e.message}`:`⚠️ Media failed.`,r=[_.shift()??c??``,t].filter(Boolean).join(`
5
5
  `);r&&(Z.warn(`Media skipped; sent text-only to ${n.from}`),await n.reply(r))}}}for(let e of _)await n.reply(e)}function an(e){if(!e.msg.id)return;let t=e.cfg.channels?.whatsapp?.ackReaction,n=(t?.emoji??``).trim(),r=t?.direct??!0,i=t?.group??`mentions`,a=e.msg.conversationId??e.msg.from,o=e.msg.chatType===`group`?Wt({cfg:e.cfg,agentId:e.agentId,sessionKey:e.sessionKey,conversationId:a}):null;ae({emoji:n,isDirect:e.msg.chatType===`direct`,isGroup:e.msg.chatType===`group`,directEnabled:r,groupMode:i,wasMentioned:e.msg.wasMentioned===!0,groupActivated:o===`always`})&&(e.info({chatId:e.msg.chatId,messageId:e.msg.id,emoji:n},`sending ack reaction`),Be(e.msg.chatId,e.msg.id,n,{verbose:e.verbose,fromMe:!1,participant:e.msg.senderJid,accountId:e.accountId}).catch(t=>{e.warn({error:K(t),chatId:e.msg.chatId,messageId:e.msg.id},`failed to send ack reaction`),l(`WhatsApp ack reaction failed for chat ${e.msg.chatId}: ${K(t)}`)}))}function on(e){return e.replyToBody?`[Replying to ${e.replyToSender??`unknown sender`}${e.replyToId?` id:${e.replyToId}`:``}]\n${e.replyToBody}\n[/Replying]`:null}function sn(e){let{cfg:t,msg:n,agentId:r,previousTimestamp:i,envelope:a}=e,o=B(t,r,{configured:t.channels?.whatsapp?.messagePrefix,hasAllowFrom:(t.channels?.whatsapp?.allowFrom?.length??0)>0}),s=o?`${o} `:``,c=on(n),l=`${s}${n.body}${c?`\n\n${c}`:``}`;return P({channel:`WhatsApp`,from:n.chatType===`group`?n.from:n.from?.replace(/^whatsapp:/,``),timestamp:n.timestamp,body:l,chatType:n.chatType,sender:{name:n.senderName,e164:n.senderE164,id:n.senderJid},previousTimestamp:i,envelope:a,fromMe:n.fromMe})}async function cn(e){let t=e.cfg.commands?.useAccessGroups!==!1;if(!t)return!0;let n=e.msg.chatType===`group`,r=u(n?e.msg.senderE164??``:e.msg.senderE164??e.msg.from??``);if(!r)return!1;let i=y({cfg:e.cfg,accountId:e.msg.accountId}),a=i.dmPolicy??`pairing`,o=i.groupPolicy??`allowlist`,s=i.allowFrom??[],c=i.groupAllowFrom??(s.length>0?s:void 0),l=n?[]:await oe({provider:`whatsapp`,accountId:e.msg.accountId,dmPolicy:a});return R({isGroup:n,dmPolicy:a,groupPolicy:o,allowFrom:s.length>0?s:e.msg.selfE164?[e.msg.selfE164]:[],groupAllowFrom:c,storeAllowFrom:l,isSenderAllowed:e=>e.includes(`*`)?!0:e.map(e=>u(String(e))).filter(e=>!!e).includes(r),command:{useAccessGroups:t,allowTextCommands:!0,hasControlCommand:!0}}).commandAuthorized}function ln(e){let t=y({cfg:e.cfg,accountId:e.msg.accountId});return I({dmScope:e.cfg.session?.dmScope,allowFrom:t.allowFrom,normalizeEntry:e=>u(e)})}async function un(e){let t=e.msg.conversationId??e.msg.from,{storePath:n,envelopeOptions:r,previousTimestamp:i}=fe({cfg:e.cfg,agentId:e.route.agentId,sessionKey:e.route.sessionKey}),o=sn({cfg:e.cfg,msg:e.msg,agentId:e.route.agentId,previousTimestamp:i,envelope:r}),s=!1;if(e.msg.chatType===`group`){let n=e.groupHistory??e.groupHistories.get(e.groupHistoryKey)??[];n.length>0&&(o=pe({entries:n.map(e=>({sender:e.sender,body:e.body,timestamp:e.timestamp})),currentMessage:o,excludeLast:!1,formatEntry:e=>P({channel:`WhatsApp`,from:t,timestamp:e.timestamp,body:e.body,chatType:`group`,senderLabel:e.sender,envelope:r})})),s=!(e.suppressGroupHistoryClear??!1)}let c=e.buildCombinedEchoKey({sessionKey:e.route.sessionKey,combinedBody:o});if(e.echoHas(c))return l(`Skipping auto-reply: detected echo for combined message`),e.echoForget(c),!1;an({cfg:e.cfg,msg:e.msg,agentId:e.route.agentId,sessionKey:e.route.sessionKey,conversationId:t,verbose:e.verbose,accountId:e.route.accountId,info:e.replyLogger.info.bind(e.replyLogger),warn:e.replyLogger.warn.bind(e.replyLogger)});let d=e.msg.id??J();e.replyLogger.info({connectionId:e.connectionId,correlationId:d,from:e.msg.chatType===`group`?t:e.msg.from,to:e.msg.to,body:$(o,240),mediaType:e.msg.mediaType??null,mediaPath:e.msg.mediaPath??null},`inbound web message`);let f=e.msg.chatType===`group`?t:e.msg.from,p=e.msg.mediaType?`, ${e.msg.mediaType}`:``;X.info(`Inbound message ${f} -> ${e.msg.to} (${e.msg.chatType}${p}, ${o.length} chars)`),a()&&X.debug(`Inbound body: ${$(o,400)}`);let h=e.msg.chatType===`group`?void 0:e.msg.senderE164?u(e.msg.senderE164):e.msg.from.includes(`@`)?m(e.msg.from):u(e.msg.from),g=e.maxMediaTextChunkLimit??Ne(e.cfg,`whatsapp`),_=Pe(e.cfg,`whatsapp`,e.route.accountId),v=Fe({cfg:e.cfg,channel:`whatsapp`,accountId:e.route.accountId}),y=Ae(e.cfg,e.route.agentId),b=!1,x=!1,S=de(e.msg.body,e.cfg)?await cn({cfg:e.cfg,msg:e.msg}):void 0,C=e.cfg.messages?.responsePrefix,{onModelSelected:w,...T}=z({cfg:e.cfg,agentId:e.route.agentId,channel:`whatsapp`,accountId:e.route.accountId}),ee=e.msg.chatType!==`group`&&!!e.msg.selfE164&&u(e.msg.from)===u(e.msg.selfE164??``),D=T.responsePrefix??(C===void 0&&ee?ce(e.cfg,e.route.agentId):void 0),O=e.msg.chatType===`group`?(e.groupHistory??e.groupHistories.get(e.groupHistoryKey)??[]).map(e=>({sender:e.sender,body:e.body,timestamp:e.timestamp})):void 0,k=se({Body:o,BodyForAgent:e.msg.body,InboundHistory:O,RawBody:e.msg.body,CommandBody:e.msg.body,From:e.msg.from,To:e.msg.to,SessionKey:e.route.sessionKey,AccountId:e.route.accountId,MessageSid:e.msg.id,ReplyToId:e.msg.replyToId,ReplyToBody:e.msg.replyToBody,ReplyToSender:e.msg.replyToSender,MediaPath:e.msg.mediaPath,MediaUrl:e.msg.mediaUrl,MediaType:e.msg.mediaType,ChatType:e.msg.chatType,ConversationLabel:e.msg.chatType===`group`?t:e.msg.from,GroupSubject:e.msg.groupSubject,GroupMembers:qt({participants:e.msg.groupParticipants,roster:e.groupMemberNames.get(e.groupHistoryKey),fallbackE164:e.msg.senderE164}),SenderName:e.msg.senderName,SenderId:e.msg.senderJid?.trim()||e.msg.senderE164,SenderE164:e.msg.senderE164,CommandAuthorized:S,WasMentioned:e.msg.wasMentioned,...e.msg.location?Te(e.msg.location):{},Provider:`whatsapp`,Surface:`whatsapp`,OriginatingChannel:`whatsapp`,OriginatingTo:e.msg.from}),A=ln({cfg:e.cfg,msg:e.msg}),te=!A||A===h,j=Se({route:e.route,sessionKey:e.route.sessionKey});h&&j===e.route.mainSessionKey&&te?$t({cfg:e.cfg,backgroundTasks:e.backgroundTasks,storeAgentId:e.route.agentId,sessionKey:e.route.mainSessionKey,channel:`whatsapp`,to:h,accountId:e.route.accountId,ctx:k,warn:e.replyLogger.warn.bind(e.replyLogger)}):h&&j===e.route.mainSessionKey&&A&&l(`Skipping main-session last route update for ${h} (pinned owner ${A})`);let M=E({storePath:n,sessionKey:e.route.sessionKey,ctx:k}).catch(t=>{e.replyLogger.warn({error:K(t),storePath:n,sessionKey:e.route.sessionKey},`failed updating session meta`)});Qt(e.backgroundTasks,M);let{queuedFinal:ne}=await N({ctx:k,cfg:e.cfg,replyResolver:e.replyResolver,dispatcherOptions:{...T,responsePrefix:D,onHeartbeatStrip:()=>{b||(b=!0,l(`Stripped stray HEARTBEAT_OK token from web reply`))},deliver:async(n,r)=>{if(r.kind!==`final`)return;await rn({replyResult:n,msg:e.msg,mediaLocalRoots:y,maxMediaBytes:e.maxMediaBytes,textLimit:g,chunkMode:_,replyLogger:e.replyLogger,connectionId:e.connectionId,skipLog:!1,tableMode:v}),x=!0;let i=n.text?!0:void 0;e.rememberSentText(n.text,{combinedBody:o,combinedBodySessionKey:e.route.sessionKey,logVerboseMessage:i});let s=e.msg.chatType===`group`?t:e.msg.from??`unknown`,c=!!(n.mediaUrl||n.mediaUrls?.length);if(Z.info(`Auto-replied to ${s}${c?` (media)`:``}`),a()){let e=n.text==null?`<media>`:$(n.text,400);Z.debug(`Reply body: ${e}${c?` (media)`:``}`)}},onError:(n,r)=>{let i=r.kind===`tool`?`tool update`:r.kind===`block`?`block update`:`auto-reply`;Z.error(`Failed sending web ${i} to ${e.msg.from??t}: ${K(n)}`)},onReplyStart:e.msg.sendComposing},replyOptions:{disableBlockStreaming:!0,onModelSelected:w}});return ne?(s&&e.groupHistories.set(e.groupHistoryKey,[]),x):(s&&e.groupHistories.set(e.groupHistoryKey,[]),l(`Skipping auto-reply: silent token or no text/media returned from resolver`),!1)}function dn(e){let t=async(t,n,r,i)=>un({cfg:e.cfg,msg:t,route:n,groupHistoryKey:r,groupHistories:e.groupHistories,groupMemberNames:e.groupMemberNames,connectionId:e.connectionId,verbose:e.verbose,maxMediaBytes:e.maxMediaBytes,replyResolver:e.replyResolver,replyLogger:e.replyLogger,backgroundTasks:e.backgroundTasks,rememberSentText:e.echoTracker.rememberText,echoHas:e.echoTracker.has,echoForget:e.echoTracker.forget,buildCombinedEchoKey:e.echoTracker.buildCombinedKey,groupHistory:i?.groupHistory,suppressGroupHistoryClear:i?.suppressGroupHistoryClear});return async n=>{let i=n.conversationId??n.from,a=en(n),o=be({cfg:O(),channel:`whatsapp`,accountId:n.accountId,peer:{kind:n.chatType===`group`?`group`:`direct`,id:a}}),s=n.chatType===`group`?r({channel:`whatsapp`,accountId:o.accountId,peerKind:`group`,peerId:a}):o.sessionKey;if(n.from===n.to&&l(`📱 Same-phone mode detected (from === to: ${n.from})`),e.echoTracker.has(n.body)){l(`Skipping auto-reply: detected echo (message matches recently sent text)`),e.echoTracker.forget(n.body);return}if(n.chatType===`group`){let t={From:n.from,To:n.to,SessionKey:o.sessionKey,AccountId:o.accountId,ChatType:n.chatType,ConversationLabel:i,GroupSubject:n.groupSubject,SenderName:n.senderName,SenderId:n.senderJid?.trim()||n.senderE164,SenderE164:n.senderE164,Provider:`whatsapp`,Surface:`whatsapp`,OriginatingChannel:`whatsapp`,OriginatingTo:i};if($t({cfg:e.cfg,backgroundTasks:e.backgroundTasks,storeAgentId:o.agentId,sessionKey:o.sessionKey,channel:`whatsapp`,to:i,accountId:o.accountId,ctx:t,warn:e.replyLogger.warn.bind(e.replyLogger)}),!Zt({cfg:e.cfg,msg:n,conversationId:i,groupHistoryKey:s,agentId:o.agentId,sessionKey:o.sessionKey,baseMentionConfig:e.baseMentionConfig,authDir:e.account.authDir,groupHistories:e.groupHistories,groupHistoryLimit:e.groupHistoryLimit,groupMemberNames:e.groupMemberNames,logVerbose:l,replyLogger:e.replyLogger}).shouldProcess)return}else !n.senderE164&&a&&a.startsWith(`+`)&&(n.senderE164=u(a)??n.senderE164);await Bt({cfg:e.cfg,msg:n,peerId:a,route:o,groupHistoryKey:s,groupHistories:e.groupHistories,processMessage:t})||await t(n,o,s)}}function fn(e){return e===440}async function pn(e,t=Mt,n=!0,r=_e,i=s,a,c={}){let u=J(),d=o({module:`web-auto-reply`,runId:u}),f=o({module:`web-heartbeat`,runId:u}),p=o({module:`web-reconnect`,runId:u}),m={running:!0,connected:!1,reconnectAttempts:0,lastConnectedAt:null,lastDisconnect:null,lastMessageAt:null,lastEventAt:null,lastError:null},h=()=>{c.statusSink?.({...m,lastDisconnect:m.lastDisconnect?{...m.lastDisconnect}:null})};h();let g=O(),_=y({cfg:g,accountId:c.accountId}),v={...g,channels:{...g.channels,whatsapp:{...g.channels?.whatsapp,ackReaction:_.ackReaction,messagePrefix:_.messagePrefix,allowFrom:_.allowFrom,groupAllowFrom:_.groupAllowFrom,groupPolicy:_.groupPolicy,textChunkLimit:_.textChunkLimit,chunkMode:_.chunkMode,mediaMaxMb:_.mediaMaxMb,blockStreaming:_.blockStreaming,groups:_.groups}}},b=x(_),S=$e(v,c.heartbeatSeconds),C=et(v,c.reconnect),w=Nt(v),T=v.channels?.whatsapp?.accounts?.[c.accountId??``]?.historyLimit??v.channels?.whatsapp?.historyLimit??v.messages?.groupChat?.historyLimit??50,E=new Map,D=new Map,k=Rt({maxItems:100,logVerbose:l}),j=c.sleep??((e,t)=>H(e,t??a)),M=()=>a?.aborted===!0,ne=a&&new Promise(e=>a.addEventListener(`abort`,()=>e(`aborted`),{once:!0})),N=process.getMaxListeners?.()??10;process.setMaxListeners&&N<50&&process.setMaxListeners(50);let P=!1,F=()=>{P=!0};process.once(`SIGINT`,F);let I=0;for(;!M();){let o=J(),s=Date.now(),u=null,g=null,y=null,x=0,O=null,N=c.messageTimeoutMs??1800*1e3,ae=c.watchdogCheckMs??60*1e3,L=new Set,oe=dn({cfg:v,verbose:e,connectionId:o,maxMediaBytes:b,groupHistoryLimit:T,groupHistories:E,groupMemberNames:D,echoTracker:k,backgroundTasks:L,replyResolver:r??_e,replyLogger:d,baseMentionConfig:w,account:_}),se=re({cfg:v,channel:`whatsapp`}),R=await(t??Mt)({verbose:e,accountId:_.accountId,authDir:_.authDir,mediaMaxMb:_.mediaMaxMb,sendReadReceipts:_.sendReadReceipts,debounceMs:se,shouldDebounce:e=>e.mediaPath||e.mediaType||e.location||e.replyToId||e.replyToBody?!1:!ie(e.body,v),onMessage:async e=>{x+=1,y=Date.now(),m.lastMessageAt=y,m.lastEventAt=y,h(),await oe(e)}});Object.assign(m,ye()),m.lastError=null,h();let{e164:ce}=A(_.authDir),z=be({cfg:v,channel:`whatsapp`,accountId:_.accountId});le(`WhatsApp gateway connected${ce?` as ${ce}`:``}.`,{sessionKey:z.sessionKey}),Re(_.accountId,R),O=ke(e=>{if(!tn(e))return!1;let t=K(e);return p.warn({connectionId:o,error:t},`web reconnect: unhandled rejection from WhatsApp socket; forcing reconnect`),R.signalClose?.({status:499,isLoggedOut:!1,error:e}),!0});let B=async()=>{Re(_.accountId,null),O&&=(O(),null),u&&clearInterval(u),g&&clearInterval(g),L.size>0&&(await Promise.allSettled(L),L.clear());try{await R.close()}catch(e){l(`Socket close failed: ${K(e)}`)}};if(n&&(u=setInterval(()=>{let e=ee(_.authDir),t=y?Math.floor((Date.now()-y)/6e4):null,n={connectionId:o,reconnectAttempts:I,messagesHandled:x,lastMessageAt:y,authAgeMs:e,uptimeMs:Date.now()-s,...t!==null&&t>30?{minutesSinceLastMessage:t}:{}};t&&t>30?f.warn(n,`⚠️ web gateway heartbeat - no messages in 30+ minutes`):f.info(n,`web gateway heartbeat`)},S*1e3),g=setInterval(()=>{if(!y)return;let e=Date.now()-y;if(e<=N)return;let t=Math.floor(e/6e4);f.warn({connectionId:o,minutesSinceLastMessage:t,lastMessageAt:new Date(y),messagesHandled:x},`Message timeout detected - forcing reconnect`),tt.warn(`No messages received in ${t}m - restarting connection`),B().catch(e=>{l(`Close listener failed: ${K(e)}`)}),R.signalClose?.({status:499,isLoggedOut:!1,error:`watchdog-timeout`})},ae)),Y.info(`Listening for personal WhatsApp inbound messages.`),(process.stdout.isTTY||process.stderr.isTTY)&&Y.raw(`Ctrl+C to stop.`),!n){await B(),process.removeListener(`SIGINT`,F);return}let V=await Promise.race([R.onClose?.catch(e=>(p.error({error:K(e)},`listener.onClose rejected`),{status:500,isLoggedOut:!1,error:e}))??nt(),ne??nt()]);if(Date.now()-s>S*1e3&&(I=0),m.reconnectAttempts=I,h(),M()||P||V===`aborted`){await B();break}let H=(typeof V==`object`&&V&&`status`in V?V.status:void 0)??`unknown`,U=typeof V==`object`&&V&&`isLoggedOut`in V&&V.isLoggedOut,W=K(V);if(m.connected=!1,m.lastEventAt=Date.now(),m.lastDisconnect={at:m.lastEventAt,status:typeof H==`number`?H:void 0,error:W,loggedOut:!!U},m.lastError=W,m.reconnectAttempts=I,h(),p.info({connectionId:o,status:H,loggedOut:U,reconnectAttempts:I,error:W},`web reconnect: connection closed`),le(`WhatsApp gateway disconnected (status ${H??`unknown`})`,{sessionKey:z.sessionKey}),U){i.error(`WhatsApp session logged out. Run \`${te(`openclaw channels login --channel web`)}\` to relink.`),await B();break}if(fn(H)){p.warn({connectionId:o,status:H,error:W},`web reconnect: non-retryable close status; stopping monitor`),i.error(`WhatsApp Web connection closed (status ${H}: session conflict). Resolve conflicting WhatsApp Web sessions, then relink with \`${te(`openclaw channels login --channel web`)}\`. Stopping web monitoring.`),await B();break}if(I+=1,m.reconnectAttempts=I,h(),C.maxAttempts>0&&I>=C.maxAttempts){p.warn({connectionId:o,status:H,reconnectAttempts:I,maxAttempts:C.maxAttempts},`web reconnect: max attempts reached; continuing in degraded mode`),i.error(`WhatsApp Web reconnect: max attempts reached (${I}/${C.maxAttempts}). Stopping web monitoring.`),await B();break}let G=ue(C,I);p.info({connectionId:o,status:H,reconnectAttempts:I,maxAttempts:C.maxAttempts||`unlimited`,delayMs:G},`web reconnect: scheduling retry`),i.error(`WhatsApp Web connection closed (status ${H}). Retry ${I}/${C.maxAttempts||`∞`} in ${xe(G)}… (${W})`),await B();try{await j(G,a)}catch{break}}m.running=!1,m.connected=!1,m.lastEventAt=Date.now(),h(),process.removeListener(`SIGINT`,F)}export{w as WA_WEB_AUTH_DIR,We as createWaSocket,j as logWebSelfId,Ge as loginWeb,pn as monitorWebChannel,Mt as monitorWebInbox,b as pickWebChannel,Ve as sendMessageWhatsApp,He as waitForWaConnection,C as webAuthExists};
6
- //# sourceMappingURL=web-BdnQzLgF.js.map
6
+ //# sourceMappingURL=web-9Os8v8Cu.js.map
@@ -1,6 +1,6 @@
1
- require(`./paths-Bcdg3ma0.cjs`);const e=require(`./dispatch-CNy3g9ma.cjs`),t=require(`./send-D-HZnehy.cjs`),n=require(`./paths-Dd7r1qlB.cjs`),r=require(`./model-auth-D-7xiXhK.cjs`),i=require(`./logger-6O6OsYBL.cjs`);require(`./proxy-env-k93igu7v.cjs`),require(`./github-copilot-token-BHdMLLqf.cjs`),require(`./send-DV_afQnj.cjs`),require(`./fetch-guard-8I7EHbDM.cjs`);const a=require(`./send-CQtITZ7k.cjs`);require(`./deliver-CjQPkWS-.cjs`),require(`./diagnostic-D0oCfBju.cjs`),require(`./pi-model-discovery-B9boErNZ.cjs`);const o=require(`./audio-transcription-runner-g7L0m-Z5.cjs`);require(`./image-CuOIoxl2.cjs`),require(`./api-key-rotation-X-5Fb7av.cjs`);const s=require(`./local-roots-CeAYfmPb.cjs`);require(`./proxy-fetch-qbrYAz8k.cjs`),require(`./tokens-CytSl1X8.cjs`),require(`./commands-registry-SHZVq_qf.cjs`),require(`./fetch-Bi8krAaT.cjs`);const c=require(`./ir-DanxCjD-.cjs`);require(`./render-DxBO2Blp.cjs`),require(`./target-errors-BEkhKWCq.cjs`);const l=require(`./channel-activity-D5D5tBWf.cjs`),u=require(`./tables-NrdtIJGp.cjs`);require(`./send-DB4i1kUy.cjs`),require(`./fetch-BjXhwqrE.cjs`),require(`./skill-commands-CIAf9cWN.cjs`),require(`./outbound-attachment-COgf85S8.cjs`),require(`./send-DBjzdBda.cjs`);const d=require(`./active-listener-B_Mxemq7.cjs`);require(`./query-expansion-DKJkqmNM.cjs`),require(`./manager-CdD7HaGW.cjs`);const f=require(`./outbound-fZ1WJGfe.cjs`),p=require(`./session-BRgGsw96.cjs`),m=require(`./login-pZnnpj38.cjs`);let h=require(`node:crypto`),g=require(`@whiskeysockets/baileys`);const _={initialMs:2e3,maxMs:3e4,factor:1.8,jitter:.25,maxAttempts:12};function v(e,t){let n=t??e.web?.heartbeatSeconds;return typeof n==`number`&&n>0?n:60}function y(e,t){let n=e.web?.reconnect??{},r=t??{},a={..._,...n,...r};return a.initialMs=Math.max(250,a.initialMs),a.maxMs=Math.max(a.initialMs,a.maxMs),a.factor=i.o(a.factor,1.1,10),a.jitter=i.o(a.jitter,0,1),a.maxAttempts=Math.max(0,Math.floor(a.maxAttempts)),a}function b(){return(0,h.randomUUID)()}const x=i.O(`gateway/channels/whatsapp`),S=x.child(`inbound`),C=x.child(`outbound`),ee=x.child(`heartbeat`);function w(){return setInterval(()=>{},1e6).unref(),new Promise(()=>{})}const T=e.R({ttlMs:20*6e4,maxSize:5e3});function E(e){return T.check(e)}const D=new Set([`FN`,`N`,`TEL`]);function O(e){if(!e)return{phones:[]};let t=e.split(/\r?\n/),n,r,i=[];for(let e of t){let t=e.trim();if(!t)continue;let a=t.indexOf(`:`);if(a===-1)continue;let o=t.slice(0,a).toUpperCase(),s=t.slice(a+1).trim();if(!s)continue;let c=k(o);if(!c||!D.has(c))continue;let l=A(s);if(l){if(c===`FN`&&!r){r=j(l);continue}if(c===`N`&&!n){n=j(l);continue}if(c===`TEL`){let e=M(l);e&&i.push(e)}}}return{name:r??n,phones:i}}function k(e){let[t]=e.split(`;`);if(!t)return;let n=t.split(`.`);return n[n.length-1]||void 0}function A(e){return e.replace(/\\n/gi,` `).replace(/\\,/g,`,`).replace(/\\;/g,`;`).trim()}function j(e){return e.replace(/;/g,` `).replace(/\s+/g,` `).trim()}function M(e){let t=e.trim();return t?t.toLowerCase().startsWith(`tel:`)?t.slice(4).trim():t:``}function N(e){return(0,g.normalizeMessageContent)(e)}function P(e){if(!e)return;let t=(0,g.getContentType)(e),n=t?e[t]:void 0,r=n&&typeof n==`object`&&`contextInfo`in n?n.contextInfo:void 0;if(r)return r;let i=e.extendedTextMessage?.contextInfo??e.imageMessage?.contextInfo??e.videoMessage?.contextInfo??e.documentMessage?.contextInfo??e.audioMessage?.contextInfo??e.stickerMessage?.contextInfo??e.buttonsResponseMessage?.contextInfo??e.listResponseMessage?.contextInfo??e.templateButtonReplyMessage?.contextInfo??e.interactiveResponseMessage?.contextInfo??e.buttonsMessage?.contextInfo??e.listMessage?.contextInfo;if(i)return i;for(let t of Object.values(e)){if(!t||typeof t!=`object`||!(`contextInfo`in t))continue;let e=t.contextInfo;if(e)return e}}function F(e){let t=N(e);if(!t)return;let n=[t.extendedTextMessage?.contextInfo?.mentionedJid,t.extendedTextMessage?.contextInfo?.quotedMessage?.extendedTextMessage?.contextInfo?.mentionedJid,t.imageMessage?.contextInfo?.mentionedJid,t.videoMessage?.contextInfo?.mentionedJid,t.documentMessage?.contextInfo?.mentionedJid,t.audioMessage?.contextInfo?.mentionedJid,t.stickerMessage?.contextInfo?.mentionedJid,t.buttonsResponseMessage?.contextInfo?.mentionedJid,t.listResponseMessage?.contextInfo?.mentionedJid].flatMap(e=>e??[]).filter(Boolean);if(n.length!==0)return Array.from(new Set(n))}function I(e){let t=N(e);if(!t)return;let n=(0,g.extractMessageContent)(t),r=[t,n&&n!==t?n:void 0];for(let e of r){if(!e)continue;if(typeof e.conversation==`string`&&e.conversation.trim())return e.conversation.trim();let t=e.extendedTextMessage?.text;if(t?.trim())return t.trim();let n=e.imageMessage?.caption??e.videoMessage?.caption??e.documentMessage?.caption;if(n?.trim())return n.trim()}let i=R(t)??(n&&n!==t?R(n):void 0);if(i)return i}function L(e){let t=N(e);if(t){if(t.imageMessage)return`<media:image>`;if(t.videoMessage)return`<media:video>`;if(t.audioMessage)return`<media:audio>`;if(t.documentMessage)return`<media:document>`;if(t.stickerMessage)return`<media:sticker>`}}function R(e){let t=N(e);if(!t)return;let n=t.contactMessage??void 0;if(n){let{name:e,phones:t}=z({displayName:n.displayName,vcard:n.vcard});return B(e,t)}let r=t.contactsArrayMessage?.contacts??void 0;if(!(!r||r.length===0))return V(r.map(e=>z({displayName:e.displayName,vcard:e.vcard})).map(e=>H(e.name,e.phones)).filter(e=>!!e),r.length)}function z(e){let t=(e.displayName??``).trim(),n=O(e.vcard??void 0);return{name:t||n.name,phones:n.phones}}function B(e,t){let n=H(e,t);return n?`<contact: ${n}>`:`<contact>`}function V(e,t){let n=e.map(e=>e.trim()).filter(Boolean);if(n.length===0)return`<contacts: ${t} ${t===1?`contact`:`contacts`}>`;let r=Math.max(t-n.length,0),i=r>0?` +${r} more`:``;return`<contacts: ${n.join(`, `)}${i}>`}function H(e,t){let n=[e,U(t)].filter(e=>!!e);if(n.length!==0)return n.join(`, `)}function U(e){let t=e?.map(e=>e.trim()).filter(Boolean)??[];if(t.length===0)return;let{shown:n,remaining:r}=te(t,t.length,1),[i]=n;if(i)return r===0?i:`${i} (+${r} more)`}function te(e,t,n){let r=e.slice(0,n);return{shown:r,remaining:Math.max(t-r.length,0)}}function ne(e){let t=N(e);if(!t)return null;let n=t.liveLocationMessage??void 0;if(n){let e=n.degreesLatitude,t=n.degreesLongitude;if(e!=null&&t!=null){let r=Number(e),i=Number(t);if(Number.isFinite(r)&&Number.isFinite(i))return{latitude:r,longitude:i,accuracy:n.accuracyInMeters??void 0,caption:n.caption??void 0,source:`live`,isLive:!0}}}let r=t.locationMessage??void 0;if(r){let e=r.degreesLatitude,t=r.degreesLongitude;if(e!=null&&t!=null){let n=Number(e),i=Number(t);if(Number.isFinite(n)&&Number.isFinite(i)){let e=!!r.isLive;return{latitude:n,longitude:i,accuracy:r.accuracyInMeters??void 0,name:r.name??void 0,address:r.address??void 0,caption:r.comment??void 0,source:e?`live`:r.name||r.address?`place`:`pin`,isLive:e}}}}return null}function W(e){let t=N(e);if(!t)return null;let n=P(t),r=(0,g.normalizeMessageContent)(n?.quotedMessage);if(!r)return null;let o=ne(r),s=o?a.J(o):void 0,c=[I(r),s].filter(Boolean).join(`
1
+ require(`./paths-Bcdg3ma0.cjs`);const e=require(`./dispatch-YK0qHNtb.cjs`),t=require(`./send-D-HZnehy.cjs`),n=require(`./paths-Dd7r1qlB.cjs`),r=require(`./model-auth-D-7xiXhK.cjs`),i=require(`./logger-6O6OsYBL.cjs`);require(`./proxy-env-k93igu7v.cjs`),require(`./github-copilot-token-BHdMLLqf.cjs`),require(`./send-DV_afQnj.cjs`),require(`./fetch-guard-8I7EHbDM.cjs`);const a=require(`./send-CQtITZ7k.cjs`);require(`./deliver-CjQPkWS-.cjs`),require(`./diagnostic-D0oCfBju.cjs`),require(`./pi-model-discovery-B9boErNZ.cjs`);const o=require(`./audio-transcription-runner-g7L0m-Z5.cjs`);require(`./image-CuOIoxl2.cjs`),require(`./api-key-rotation-X-5Fb7av.cjs`);const s=require(`./local-roots-CeAYfmPb.cjs`);require(`./proxy-fetch-qbrYAz8k.cjs`),require(`./tokens-CytSl1X8.cjs`),require(`./commands-registry-SHZVq_qf.cjs`),require(`./fetch-Bi8krAaT.cjs`);const c=require(`./ir-DanxCjD-.cjs`);require(`./render-DxBO2Blp.cjs`),require(`./target-errors-BEkhKWCq.cjs`);const l=require(`./channel-activity-D5D5tBWf.cjs`),u=require(`./tables-NrdtIJGp.cjs`);require(`./send-DB4i1kUy.cjs`),require(`./fetch-BjXhwqrE.cjs`),require(`./skill-commands-CIAf9cWN.cjs`),require(`./outbound-attachment-COgf85S8.cjs`),require(`./send-DBjzdBda.cjs`);const d=require(`./active-listener-B_Mxemq7.cjs`);require(`./query-expansion-DKJkqmNM.cjs`),require(`./manager-CdD7HaGW.cjs`);const f=require(`./outbound-fZ1WJGfe.cjs`),p=require(`./session-BRgGsw96.cjs`),m=require(`./login-pZnnpj38.cjs`);let h=require(`node:crypto`),g=require(`@whiskeysockets/baileys`);const _={initialMs:2e3,maxMs:3e4,factor:1.8,jitter:.25,maxAttempts:12};function v(e,t){let n=t??e.web?.heartbeatSeconds;return typeof n==`number`&&n>0?n:60}function y(e,t){let n=e.web?.reconnect??{},r=t??{},a={..._,...n,...r};return a.initialMs=Math.max(250,a.initialMs),a.maxMs=Math.max(a.initialMs,a.maxMs),a.factor=i.o(a.factor,1.1,10),a.jitter=i.o(a.jitter,0,1),a.maxAttempts=Math.max(0,Math.floor(a.maxAttempts)),a}function b(){return(0,h.randomUUID)()}const x=i.O(`gateway/channels/whatsapp`),S=x.child(`inbound`),C=x.child(`outbound`),ee=x.child(`heartbeat`);function w(){return setInterval(()=>{},1e6).unref(),new Promise(()=>{})}const T=e.R({ttlMs:20*6e4,maxSize:5e3});function E(e){return T.check(e)}const D=new Set([`FN`,`N`,`TEL`]);function O(e){if(!e)return{phones:[]};let t=e.split(/\r?\n/),n,r,i=[];for(let e of t){let t=e.trim();if(!t)continue;let a=t.indexOf(`:`);if(a===-1)continue;let o=t.slice(0,a).toUpperCase(),s=t.slice(a+1).trim();if(!s)continue;let c=k(o);if(!c||!D.has(c))continue;let l=A(s);if(l){if(c===`FN`&&!r){r=j(l);continue}if(c===`N`&&!n){n=j(l);continue}if(c===`TEL`){let e=M(l);e&&i.push(e)}}}return{name:r??n,phones:i}}function k(e){let[t]=e.split(`;`);if(!t)return;let n=t.split(`.`);return n[n.length-1]||void 0}function A(e){return e.replace(/\\n/gi,` `).replace(/\\,/g,`,`).replace(/\\;/g,`;`).trim()}function j(e){return e.replace(/;/g,` `).replace(/\s+/g,` `).trim()}function M(e){let t=e.trim();return t?t.toLowerCase().startsWith(`tel:`)?t.slice(4).trim():t:``}function N(e){return(0,g.normalizeMessageContent)(e)}function P(e){if(!e)return;let t=(0,g.getContentType)(e),n=t?e[t]:void 0,r=n&&typeof n==`object`&&`contextInfo`in n?n.contextInfo:void 0;if(r)return r;let i=e.extendedTextMessage?.contextInfo??e.imageMessage?.contextInfo??e.videoMessage?.contextInfo??e.documentMessage?.contextInfo??e.audioMessage?.contextInfo??e.stickerMessage?.contextInfo??e.buttonsResponseMessage?.contextInfo??e.listResponseMessage?.contextInfo??e.templateButtonReplyMessage?.contextInfo??e.interactiveResponseMessage?.contextInfo??e.buttonsMessage?.contextInfo??e.listMessage?.contextInfo;if(i)return i;for(let t of Object.values(e)){if(!t||typeof t!=`object`||!(`contextInfo`in t))continue;let e=t.contextInfo;if(e)return e}}function F(e){let t=N(e);if(!t)return;let n=[t.extendedTextMessage?.contextInfo?.mentionedJid,t.extendedTextMessage?.contextInfo?.quotedMessage?.extendedTextMessage?.contextInfo?.mentionedJid,t.imageMessage?.contextInfo?.mentionedJid,t.videoMessage?.contextInfo?.mentionedJid,t.documentMessage?.contextInfo?.mentionedJid,t.audioMessage?.contextInfo?.mentionedJid,t.stickerMessage?.contextInfo?.mentionedJid,t.buttonsResponseMessage?.contextInfo?.mentionedJid,t.listResponseMessage?.contextInfo?.mentionedJid].flatMap(e=>e??[]).filter(Boolean);if(n.length!==0)return Array.from(new Set(n))}function I(e){let t=N(e);if(!t)return;let n=(0,g.extractMessageContent)(t),r=[t,n&&n!==t?n:void 0];for(let e of r){if(!e)continue;if(typeof e.conversation==`string`&&e.conversation.trim())return e.conversation.trim();let t=e.extendedTextMessage?.text;if(t?.trim())return t.trim();let n=e.imageMessage?.caption??e.videoMessage?.caption??e.documentMessage?.caption;if(n?.trim())return n.trim()}let i=R(t)??(n&&n!==t?R(n):void 0);if(i)return i}function L(e){let t=N(e);if(t){if(t.imageMessage)return`<media:image>`;if(t.videoMessage)return`<media:video>`;if(t.audioMessage)return`<media:audio>`;if(t.documentMessage)return`<media:document>`;if(t.stickerMessage)return`<media:sticker>`}}function R(e){let t=N(e);if(!t)return;let n=t.contactMessage??void 0;if(n){let{name:e,phones:t}=z({displayName:n.displayName,vcard:n.vcard});return B(e,t)}let r=t.contactsArrayMessage?.contacts??void 0;if(!(!r||r.length===0))return V(r.map(e=>z({displayName:e.displayName,vcard:e.vcard})).map(e=>H(e.name,e.phones)).filter(e=>!!e),r.length)}function z(e){let t=(e.displayName??``).trim(),n=O(e.vcard??void 0);return{name:t||n.name,phones:n.phones}}function B(e,t){let n=H(e,t);return n?`<contact: ${n}>`:`<contact>`}function V(e,t){let n=e.map(e=>e.trim()).filter(Boolean);if(n.length===0)return`<contacts: ${t} ${t===1?`contact`:`contacts`}>`;let r=Math.max(t-n.length,0),i=r>0?` +${r} more`:``;return`<contacts: ${n.join(`, `)}${i}>`}function H(e,t){let n=[e,U(t)].filter(e=>!!e);if(n.length!==0)return n.join(`, `)}function U(e){let t=e?.map(e=>e.trim()).filter(Boolean)??[];if(t.length===0)return;let{shown:n,remaining:r}=te(t,t.length,1),[i]=n;if(i)return r===0?i:`${i} (+${r} more)`}function te(e,t,n){let r=e.slice(0,n);return{shown:r,remaining:Math.max(t-r.length,0)}}function ne(e){let t=N(e);if(!t)return null;let n=t.liveLocationMessage??void 0;if(n){let e=n.degreesLatitude,t=n.degreesLongitude;if(e!=null&&t!=null){let r=Number(e),i=Number(t);if(Number.isFinite(r)&&Number.isFinite(i))return{latitude:r,longitude:i,accuracy:n.accuracyInMeters??void 0,caption:n.caption??void 0,source:`live`,isLive:!0}}}let r=t.locationMessage??void 0;if(r){let e=r.degreesLatitude,t=r.degreesLongitude;if(e!=null&&t!=null){let n=Number(e),i=Number(t);if(Number.isFinite(n)&&Number.isFinite(i)){let e=!!r.isLive;return{latitude:n,longitude:i,accuracy:r.accuracyInMeters??void 0,name:r.name??void 0,address:r.address??void 0,caption:r.comment??void 0,source:e?`live`:r.name||r.address?`place`:`pin`,isLive:e}}}}return null}function W(e){let t=N(e);if(!t)return null;let n=P(t),r=(0,g.normalizeMessageContent)(n?.quotedMessage);if(!r)return null;let o=ne(r),s=o?a.J(o):void 0,c=[I(r),s].filter(Boolean).join(`
2
2
  `).trim();if(c||=L(r),!c){let e=r?(0,g.getContentType)(r):void 0;return i.R(`Quoted message missing extractable body${e?` (type ${e})`:``}`),null}let l=n?.participant??void 0,u=l?i.m(l)??l:void 0,d=u??`unknown sender`;return{id:n?.stanzaId?String(n.stanzaId):void 0,body:c,sender:d,senderJid:l,senderE164:u}}function re(e){return t.Mt({providerConfigPresent:e.providerConfigPresent,groupPolicy:e.groupPolicy,defaultGroupPolicy:e.defaultGroupPolicy})}async function ie(n){let o=r.Oa(),s=r.Gn({cfg:o,accountId:n.accountId}),c=s.dmPolicy??`pairing`,l=s.allowFrom??[],u=await e.V({provider:`whatsapp`,accountId:s.accountId,dmPolicy:c}),d=l.length===0&&n.selfE164?[n.selfE164]:[],f=l.length>0?l:d,p=s.groupAllowFrom??(l.length>0?l:void 0),m=n.from===n.selfE164,h=s.selfChatMode??i.p(n.selfE164,l),g=typeof n.pairingGraceMs==`number`&&n.pairingGraceMs>0?n.pairingGraceMs:3e4,_=typeof n.connectedAtMs==`number`&&typeof n.messageTimestampMs==`number`&&n.messageTimestampMs<n.connectedAtMs-g,v=t.jt(o),{groupPolicy:y,providerMissingFallbackApplied:b}=re({providerConfigPresent:o.channels?.whatsapp!==void 0,groupPolicy:s.groupPolicy,defaultGroupPolicy:v});t.Nt({providerMissingFallbackApplied:b,providerKey:`whatsapp`,accountId:s.accountId,log:e=>i.R(e)});let x=i.h(n.from),S=typeof n.senderE164==`string`?i.h(n.senderE164):null,C=e.U({isGroup:n.group,dmPolicy:c,groupPolicy:y,allowFrom:n.group?l:f,groupAllowFrom:p,storeAllowFrom:u,isSenderAllowed:e=>{if(e.includes(`*`))return!0;let t=new Set(e.map(e=>i.h(String(e))).filter(e=>!!e));return!n.group&&m?!0:n.group?!!(S&&t.has(S)):t.has(x)}});if(n.group&&C.decision!==`allow`)return C.reason===`groupPolicy=disabled`?i.R(`Blocked group message (groupPolicy: disabled)`):C.reason===`groupPolicy=allowlist (empty allowlist)`?i.R(`Blocked group message (groupPolicy: allowlist, no groupAllowFrom)`):i.R(`Blocked group message from ${n.senderE164??`unknown sender`} (groupPolicy: allowlist)`),{allowed:!1,shouldMarkRead:!1,isSelfChat:h,resolvedAccountId:s.accountId};if(!n.group){if(n.isFromMe&&!m)return i.R(`Skipping outbound DM (fromMe); no pairing reply needed.`),{allowed:!1,shouldMarkRead:!1,isSelfChat:h,resolvedAccountId:s.accountId};if(C.decision===`block`&&C.reason===`dmPolicy=disabled`)return i.R(`Blocked dm (dmPolicy: disabled)`),{allowed:!1,shouldMarkRead:!1,isSelfChat:h,resolvedAccountId:s.accountId};if(C.decision===`pairing`&&!m){let t=n.from;return _?i.R(`Skipping pairing reply for historical DM from ${t}.`):await e.z({channel:`whatsapp`,senderId:t,senderIdLine:`Your WhatsApp phone number: ${t}`,meta:{name:(n.pushName??``).trim()||void 0},upsertPairingRequest:async({id:e,meta:t})=>await a.tt({channel:`whatsapp`,id:e,accountId:s.accountId,meta:t}),onCreated:()=>{i.R(`whatsapp pairing request sender=${t} name=${n.pushName??`unknown`}`)},sendPairingReply:async e=>{await n.sock.sendMessage(n.remoteJid,{text:e})},onReplyError:e=>{i.R(`whatsapp pairing reply failed for ${t}: ${String(e)}`)}}),{allowed:!1,shouldMarkRead:!1,isSelfChat:h,resolvedAccountId:s.accountId}}if(C.decision!==`allow`)return i.R(`Blocked unauthorized sender ${n.from} (dmPolicy=${c})`),{allowed:!1,shouldMarkRead:!1,isSelfChat:h,resolvedAccountId:s.accountId}}return{allowed:!0,shouldMarkRead:!0,isSelfChat:h,resolvedAccountId:s.accountId}}function G(e){return(0,g.normalizeMessageContent)(e)}function K(e){let t=e.imageMessage?.mimetype??e.videoMessage?.mimetype??e.documentMessage?.mimetype??e.audioMessage?.mimetype??e.stickerMessage?.mimetype??void 0;if(t)return t;if(e.audioMessage)return`audio/ogg; codecs=opus`;if(e.imageMessage)return`image/jpeg`;if(e.videoMessage)return`video/mp4`;if(e.stickerMessage)return`image/webp`}async function ae(e,t){let n=G(e.message);if(!n)return;let r=K(n),a=n.documentMessage?.fileName??void 0;if(!(!n.imageMessage&&!n.videoMessage&&!n.documentMessage&&!n.audioMessage&&!n.stickerMessage))try{return{buffer:await(0,g.downloadMediaMessage)(e,`buffer`,{},{reuploadRequest:t.updateMediaMessage,logger:t.logger}),mimetype:r,fileName:a}}catch(e){i.R(`downloadMediaMessage failed: ${String(e)}`);return}}function q(e){l.n({channel:`whatsapp`,accountId:e,direction:`outbound`})}function J(e){return typeof e==`object`&&e&&`key`in e?String(e.key?.id??`unknown`):`unknown`}function Y(e){return{sendMessage:async(t,n,r,a,o)=>{let s=i.T(t),c;if(r&&a)if(a.startsWith(`image/`))c={image:r,caption:n||void 0,mimetype:a};else if(a.startsWith(`audio/`))c={audio:r,ptt:!0,mimetype:a};else if(a.startsWith(`video/`)){let e=o?.gifPlayback;c={video:r,caption:n||void 0,mimetype:a,...e?{gifPlayback:!0}:{}}}else c={document:r,fileName:o?.fileName?.trim()||`file`,caption:n||void 0,mimetype:a};else c={text:n};let l=await e.sock.sendMessage(s,c);return q(o?.accountId??e.defaultAccountId),{messageId:J(l)}},sendPoll:async(t,n)=>{let r=i.T(t),a=await e.sock.sendMessage(r,{poll:{name:n.question,values:n.options,selectableCount:n.maxSelections??1}});return q(e.defaultAccountId),{messageId:J(a)}},sendReaction:async(t,n,r,a,o)=>{let s=i.T(t);await e.sock.sendMessage(s,{react:{text:r,key:{remoteJid:s,id:n,fromMe:a,participant:o?i.T(o):void 0}}})},sendComposingTo:async t=>{let n=i.T(t);await e.sock.sendPresenceUpdate(`composing`,n)}}}async function oe(t){let n=i.K({module:`web-inbound`}),o=i.O(`gateway/channels/whatsapp`).child(`inbound`),s=await p.t(!1,t.verbose,{authDir:t.authDir});await p.i(s);let c=Date.now(),u=null,d=new Promise(e=>{u=e}),f=e=>{if(!u)return;let t=u;u=null,t(e)};try{await s.sendPresenceUpdate(`available`),i.B()&&i.R(`Sent global 'available' presence on connect`)}catch(e){i.R(`Failed to send 'available' presence on connect: ${String(e)}`)}let m=s.user?.id,h=m?i.m(m):null,_=e.S({debounceMs:t.debounceMs??0,buildKey:e=>{let t=e.chatType===`group`?e.senderJid??e.senderE164??e.senderName??e.from:e.from;if(!t)return null;let n=e.chatType===`group`?e.chatId:e.from;return`${e.accountId}:${n}:${t}`},shouldDebounce:t.shouldDebounce,onFlush:async e=>{let n=e.at(-1);if(!n)return;if(e.length===1){await t.onMessage(n);return}let r=new Set;for(let t of e)for(let e of t.mentionedJids??[])r.add(e);let i=e.map(e=>e.body).filter(Boolean).join(`
3
3
  `),a={...n,body:i,mentionedJids:r.size>0?Array.from(r):void 0};await t.onMessage(a)},onError:e=>{n.error({error:String(e)},`failed handling inbound web message`),o.error(`Failed handling inbound web message: ${String(e)}`)}}),v=new Map,y=300*1e3,b=s.signalRepository?.lidMapping,x=async e=>i.v(e,{authDir:t.authDir,lidLookup:b}),S=async e=>{let t=v.get(e);if(t&&t.expires>Date.now())return t;try{let t=await s.groupMetadata(e),n=(await Promise.all(t.participants?.map(async e=>await x(e.id)??e.id)??[])).filter(Boolean)??[],r={subject:t.subject,participants:n,expires:Date.now()+y};return v.set(e,r),r}catch(t){return i.R(`Failed to fetch group metadata for ${e}: ${String(t)}`),{expires:Date.now()+y}}},C=async e=>{let n=e.key?.id??void 0,r=e.key?.remoteJid;if(!r||r.endsWith(`@status`)||r.endsWith(`@broadcast`))return null;let i=(0,g.isJidGroup)(r)===!0;if(n&&E(`${t.accountId}:${r}:${n}`))return null;let a=e.key?.participant??void 0,o=i?r:await x(r);if(!o)return null;let l=i?a?await x(a):null:o,u,d;if(i){let e=await S(r);u=e.subject,d=e.participants}let f=e.messageTimestamp?Number(e.messageTimestamp)*1e3:void 0,p=await ie({accountId:t.accountId,from:o,selfE164:h,senderE164:l,group:i,pushName:e.pushName??void 0,isFromMe:!!e.key?.fromMe,messageTimestampMs:f,connectedAtMs:c,sock:{sendMessage:(e,t)=>s.sendMessage(e,t)},remoteJid:r});return p.allowed?{id:n,remoteJid:r,group:i,participantJid:a,from:o,senderE164:l,groupSubject:u,groupParticipants:d,messageTimestampMs:f,access:p}:null},ee=async e=>{let{id:n,remoteJid:r,participantJid:a,access:o}=e;if(n&&!o.isSelfChat&&t.sendReadReceipts!==!1)try{await s.readMessages([{remoteJid:r,id:n,participant:a,fromMe:!1}]),i.B()&&i.R(`Marked message ${n} as read for ${r}${a?` (participant ${a})`:``}`)}catch(e){i.R(`Failed to mark message ${n} read: ${String(e)}`)}else n&&o.isSelfChat&&i.B()&&i.R(`Self-chat mode: skipping read receipt for ${n}`)},w=async e=>{let n=ne(e.message??void 0),o=n?a.J(n):void 0,c=I(e.message??void 0);if(o&&(c=[c,o].filter(Boolean).join(`
4
4
  `).trim()),!c&&(c=L(e.message??void 0),!c))return null;let l=W(e.message),u,d,f;try{let n=await ae(e,s);if(n){let e=(typeof t.mediaMaxMb==`number`&&t.mediaMaxMb>0?t.mediaMaxMb:50)*1024*1024;u=(await r.ci(n.buffer,n.mimetype,`inbound`,e,n.fileName)).path,d=n.mimetype,f=n.fileName}}catch(e){i.R(`Inbound media download failed: ${String(e)}`)}return{body:c,location:n??void 0,replyContext:l,mediaPath:u,mediaType:d,mediaFileName:f}},T=async(e,t,r)=>{let a=t.remoteJid,c=async()=>{try{await s.sendPresenceUpdate(`composing`,a)}catch(e){i.R(`Presence update failed: ${String(e)}`)}},l=async e=>{await s.sendMessage(a,{text:e})},u=async e=>{await s.sendMessage(a,e)},d=t.messageTimestampMs,f=F(e.message),p=e.pushName??void 0;n.info({from:t.from,to:h??`me`,body:r.body,mediaPath:r.mediaPath,mediaType:r.mediaType,mediaFileName:r.mediaFileName,timestamp:d},`inbound message`);let g={id:t.id,from:t.from,conversationId:t.from,to:h??`me`,accountId:t.access.resolvedAccountId,body:r.body,pushName:p,timestamp:d,chatType:t.group?`group`:`direct`,chatId:t.remoteJid,senderJid:t.participantJid,senderE164:t.senderE164??void 0,senderName:p,replyToId:r.replyContext?.id,replyToBody:r.replyContext?.body,replyToSender:r.replyContext?.sender,replyToSenderJid:r.replyContext?.senderJid,replyToSenderE164:r.replyContext?.senderE164,groupSubject:t.groupSubject,groupParticipants:t.groupParticipants,mentionedJids:f??void 0,selfJid:m,selfE164:h,fromMe:!!e.key?.fromMe,location:r.location??void 0,sendComposing:c,reply:l,sendMedia:u,mediaPath:r.mediaPath,mediaType:r.mediaType,mediaFileName:r.mediaFileName};try{Promise.resolve(_.enqueue(g)).catch(e=>{n.error({error:String(e)},`failed handling inbound web message`),o.error(`Failed handling inbound web message: ${String(e)}`)})}catch(e){n.error({error:String(e)},`failed handling inbound web message`),o.error(`Failed handling inbound web message: ${String(e)}`)}},D=async e=>{if(!(e.type!==`notify`&&e.type!==`append`))for(let n of e.messages??[]){l.n({channel:`whatsapp`,accountId:t.accountId,direction:`inbound`});let r=await C(n);if(!r||(await ee(r),e.type===`append`))continue;let i=await w(n);i&&await T(n,r,i)}};s.ev.on(`messages.upsert`,D);let O=e=>{try{if(e.connection===`close`){let t=p.r(e.lastDisconnect?.error);f({status:t,isLoggedOut:t===g.DisconnectReason.loggedOut,error:e.lastDisconnect?.error})}}catch(e){n.error({error:String(e)},`connection.update handler error`),f({status:void 0,isLoggedOut:!1,error:e})}};return s.ev.on(`connection.update`,O),{close:async()=>{try{let e=s.ev,t=D,n=O;typeof e.off==`function`?(e.off(`messages.upsert`,t),e.off(`connection.update`,n)):typeof e.removeListener==`function`&&(e.removeListener(`messages.upsert`,t),e.removeListener(`connection.update`,n)),s.ws?.close()}catch(e){i.R(`Socket close failed: ${String(e)}`)}},onClose:d,signalClose:e=>{f(e??{status:void 0,isLoggedOut:!1,error:`closed`})},...Y({sock:{sendMessage:(e,t)=>s.sendMessage(e,t),sendPresenceUpdate:(e,t)=>s.sendPresenceUpdate(e,t)},defaultAccountId:t.accountId})}}function X(t,n){return{mentionRegexes:e.D(t,n),allowFrom:t.channels?.whatsapp?.allowFrom}}function Z(e,t){let n=t?{authDir:t}:void 0;return{normalizedMentions:e.mentionedJids?.length?e.mentionedJids.map(e=>i.m(e,n)??e).filter(Boolean):[],selfE164:e.selfE164??(e.selfJid?i.m(e.selfJid,n):null),selfJid:e.selfJid?e.selfJid.replace(/:\\d+/,``):null}}function Q(t,n,r){let a=t=>e.O(t),o=i.p(r.selfE164,n.allowFrom);if((t.mentionedJids?.length??0)>0&&!o)return!!(r.selfE164&&r.normalizedMentions.includes(r.selfE164)||r.selfJid&&r.normalizedMentions.includes(r.selfJid));let s=a(t.body);if(n.mentionRegexes.some(e=>e.test(s)))return!0;if(r.selfE164){let e=r.selfE164.replace(/\D/g,``);if(e){if(s.replace(/[^\d]/g,``).includes(e))return!0;let n=t.body.replace(/[\s-]/g,``);if(RegExp(`\\+?${e}`,`i`).test(n))return!0}}return!1}function se(t,n,r){let i=Z(t,r);return{wasMentioned:Q(t,n,i),details:{from:t.from,body:t.body,bodyClean:e.O(t.body),mentionedJids:t.mentionedJids??null,normalizedMentionedJids:i.normalizedMentions.length?i.normalizedMentions:null,selfJid:t.selfJid??null,selfJidBare:i.selfJid,selfE164:t.selfE164??null,resolvedSelfE164:i.selfE164}}}function ce(e,t){let n=e.allowFrom;return(Array.isArray(n)&&n.length>0?n:t?[t]:[]).filter(e=>!!(e&&e!==`*`)).map(e=>i.h(e)).filter(e=>!!e)}function le(e){let t=new Set,n=Math.max(1,e.maxItems??100),r=e=>`combined:${e.sessionKey}:${e.combinedBody}`,i=()=>{for(;t.size>n;){let e=t.values().next().value;if(!e)break;t.delete(e)}};return{rememberText:(n,a)=>{n&&(t.add(n),a.combinedBody&&a.combinedBodySessionKey&&t.add(r({sessionKey:a.combinedBodySessionKey,combinedBody:a.combinedBody})),a.logVerboseMessage&&e.logVerbose?.(`Added to echo detection set (size now: ${t.size}): ${n.substring(0,50)}...`),i())},has:e=>t.has(e),forget:e=>{t.delete(e)},buildCombinedKey:r}}function ue(t){let r=e.p({agentId:t.agentId,channel:`whatsapp`,accountId:t.route.accountId,peer:{kind:t.msg.chatType===`group`?`group`:`direct`,id:t.peerId},dmScope:t.cfg.session?.dmScope,identityLinks:t.cfg.session?.identityLinks}),i=n.Dt({agentId:t.agentId,mainKey:n.Et});return{sessionKey:r,mainSessionKey:i,lastRoutePolicy:e.m({sessionKey:r,mainSessionKey:i})}}async function de(e){let t=e.cfg.broadcast?.[e.peerId];if(!t||!Array.isArray(t)||t.length===0)return!1;let r=e.cfg.broadcast?.strategy||`parallel`;S.info(`Broadcasting message to ${t.length} agents (${r})`);let i=e.cfg.agents?.list?.map(e=>n.Mt(e.id)),a=(i?.length??0)>0,o=e.msg.chatType===`group`?e.groupHistories.get(e.groupHistoryKey)??[]:void 0,s=async t=>{let r=n.Mt(t);if(a&&!i?.includes(r))return S.warn(`Broadcast agent ${t} not found in agents.list; skipping`),!1;let s=ue({cfg:e.cfg,msg:e.msg,route:e.route,peerId:e.peerId,agentId:r}),c={...e.route,agentId:r,...s};try{return await e.processMessage(e.msg,c,e.groupHistoryKey,{groupHistory:o,suppressGroupHistoryClear:!0})}catch(e){return S.error(`Broadcast agent ${t} failed: ${p.n(e)}`),!1}};if(r===`sequential`)for(let e of t)await s(e);else await Promise.allSettled(t.map(s));return e.msg.chatType===`group`&&e.groupHistories.set(e.groupHistoryKey,[]),!0}function fe(e,t,n){let r=e;for(let e of t)r=r.replace(e,` `);if(n){let e=n.replace(/\D/g,``);if(e){let t=RegExp(`\\+?${e}`,`g`);r=r.replace(t,` `)}}return r.replace(/\s+/g,` `).trim()}function pe(e,t){let n=r.Cr({From:t,ChatType:`group`,Provider:`whatsapp`})?.id,i=e.channels?.whatsapp,a=!!(i?.groupAllowFrom?.length||i?.allowFrom?.length);return r._r({cfg:e,channel:`whatsapp`,groupId:n??t,hasGroupAllowFrom:a})}function me(e,t){let n=r.Cr({From:t,ChatType:`group`,Provider:`whatsapp`})?.id;return r.vr({cfg:e,channel:`whatsapp`,groupId:n??t})}function he(t){let i=r.kt(n.s(t.cfg.session?.store,{agentId:t.agentId}))[t.sessionKey],a=me(t.cfg,t.conversationId)?`mention`:`always`;return e.i(i?.groupActivation)??a}function ge(e,t,n){for(let r of e){let e=i.h(r)??r;!e||t.has(e)||(t.add(e),n.push(e))}}function _e(e,t,n,r){if(!n||!r)return;let a=i.h(n)??n;if(!a)return;let o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(a,r)}function ve(e){let{participants:t,roster:n,fallbackE164:r}=e,a=new Set,o=[];if(t?.length&&ge(t,a,o),n&&ge(n.keys(),a,o),o.length===0&&r){let e=i.h(r)??r;e&&o.push(e)}if(o.length!==0)return o.map(e=>{let t=n?.get(e);return t?`${t} (${e})`:e}).join(`, `)}function ye(e,t){let n=i.h(t.senderE164??``);return n?ce(e,t.selfE164??void 0).includes(n):!1}function be(t){let n=t.msg.senderName&&t.msg.senderE164?`${t.msg.senderName} (${t.msg.senderE164})`:t.msg.senderName??t.msg.senderE164??`Unknown`;e.f({historyMap:t.groupHistories,historyKey:t.groupHistoryKey,limit:t.groupHistoryLimit,entry:{sender:n,body:t.msg.body,timestamp:t.msg.timestamp,id:t.msg.id,senderJid:t.msg.senderJid}})}function xe(e,t){return e.logVerbose(t),be({msg:e.msg,groupHistories:e.groupHistories,groupHistoryKey:e.groupHistoryKey,groupHistoryLimit:e.groupHistoryLimit}),{shouldProcess:!1}}function Se(t){let n=pe(t.cfg,t.conversationId);if(n.allowlistEnabled&&!n.allowed)return t.logVerbose(`Skipping group message ${t.conversationId} (not in allowlist)`),{shouldProcess:!1};_e(t.groupMemberNames,t.groupHistoryKey,t.msg.senderE164,t.msg.senderName);let r=X(t.cfg,t.agentId),a=fe(t.msg.body,r.mentionRegexes,t.msg.selfE164),o=e.a(a),s=ye(t.baseMentionConfig,t.msg),c=s&&e.T(a,t.cfg);if(o.hasCommand&&!s)return xe(t,`Ignoring /activation from non-owner in group ${t.conversationId}`);let l=se(t.msg,r,t.authDir);t.replyLogger.debug({conversationId:t.conversationId,wasMentioned:l.wasMentioned,...l.details},`group mention debug`);let u=l.wasMentioned,d=he({cfg:t.cfg,agentId:t.agentId,sessionKey:t.sessionKey,conversationId:t.conversationId})!==`always`,f=t.msg.selfJid?.replace(/:\\d+/,``),p=t.msg.replyToSenderJid?.replace(/:\\d+/,``),m=t.msg.selfE164?i.h(t.msg.selfE164):null,h=t.msg.replyToSenderE164?i.h(t.msg.replyToSenderE164):null,g=e.Q({requireMention:d,canDetectMention:!0,wasMentioned:u,implicitMention:!!(f&&p&&f===p||m&&h&&m===h),shouldBypassMention:c});return t.msg.wasMentioned=g.effectiveWasMentioned,!c&&d&&g.shouldSkip?xe(t,`Group message stored for context (no mention detected) in ${t.conversationId}: ${t.msg.body}`):{shouldProcess:!0}}function Ce(e,t){e.add(t),t.finally(()=>{e.delete(t)})}function we(e){let t=n.s(e.cfg.session?.store,{agentId:e.storeAgentId}),i=r.Nt({storePath:t,sessionKey:e.sessionKey,deliveryContext:{channel:e.channel,to:e.to,accountId:e.accountId},ctx:e.ctx}).catch(n=>{e.warn({error:p.n(n),storePath:t,sessionKey:e.sessionKey,to:e.to},`failed updating last route`)});Ce(e.backgroundTasks,i)}function Te(e){return e.chatType===`group`?e.conversationId??e.from:e.senderE164?i.h(e.senderE164)??e.senderE164:e.from.includes(`@`)?i.m(e.from)??e.from:i.h(e.from)??e.from}function $(e,t=400){return!e||e.length<=t?e:`${e.slice(0,t)}… (truncated ${e.length-t} chars)`}function Ee(e){let t=(e instanceof Error?`${e.message}\n${e.stack??``}`:(e=>{if(e==null)return``;if(typeof e==`string`)return e;if(e instanceof Error)return`${e.message}\n${e.stack??``}`;if(typeof e==`object`)try{return JSON.stringify(e)}catch{return Object.prototype.toString.call(e)}return typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`?String(e):typeof e==`symbol`?e.description??e.toString():typeof e==`function`?e.name?`[function ${e.name}]`:`[function]`:Object.prototype.toString.call(e)})(e)).toLowerCase();return t.includes(`unsupported state or unable to authenticate data`)||t.includes(`bad mac`)?t.includes(`@whiskeysockets/baileys`)||t.includes(`baileys`)||t.includes(`noise-handler`)||t.includes(`aesdecryptgcm`):!1}function De(e){if(e.isReasoning===!0)return!0;let t=e.text;return typeof t==`string`?t.trimStart().toLowerCase().startsWith(`reasoning:`):!1}async function Oe(e){let{replyResult:t,msg:n,maxMediaBytes:r,textLimit:a,replyLogger:o,connectionId:s,skipLog:l}=e,d=Date.now();if(De(t)){C.debug(`Suppressed reasoning payload to ${n.from}`);return}let m=e.tableMode??`code`,h=e.chunkMode??`length`,g=c.d(f.i(u.t(t.text||``,m)),a,h),_=t.mediaUrls?.length?t.mediaUrls:t.mediaUrl?[t.mediaUrl]:[],v=async(e,t,r=3)=>{let a;for(let o=1;o<=r;o++)try{return await e()}catch(e){a=e;let s=p.n(e),c=o===r;if(!/closed|reset|timed\s*out|disconnect/i.test(s)||c)throw e;let l=500*o;i.R(`Retrying ${t} to ${n.from} after failure (${o}/${r-1}) in ${l}ms: ${s}`),await i.C(l)}throw a};if(_.length===0&&g.length){let e=g.length;for(let[t,r]of g.entries()){let i=Date.now();if(await v(()=>n.reply(r),`text`),!l){let r=Date.now()-i;C.debug(`Sent chunk ${t+1}/${e} to ${n.from} (${r.toFixed(0)}ms)`)}}o.info({correlationId:n.id??b(),connectionId:s??null,to:n.from,from:n.to,text:$(t.text,240),mediaUrl:null,mediaSizeBytes:null,mediaKind:null,durationMs:Date.now()-d},`auto-reply sent (text)`);return}let y=[...g];for(let[t,a]of _.entries()){let l=t===0&&y.shift()||void 0;try{let t=await c.a(a,{maxBytes:r,localRoots:e.mediaLocalRoots});if(i.B()&&(i.R(`Web auto-reply media size: ${(t.buffer.length/(1024*1024)).toFixed(2)}MB`),i.R(`Web auto-reply media source: ${a} (kind ${t.kind})`)),t.kind===`image`)await v(()=>n.sendMedia({image:t.buffer,caption:l,mimetype:t.contentType}),`media:image`);else if(t.kind===`audio`)await v(()=>n.sendMedia({audio:t.buffer,ptt:!0,mimetype:t.contentType,caption:l}),`media:audio`);else if(t.kind===`video`)await v(()=>n.sendMedia({video:t.buffer,caption:l,mimetype:t.contentType}),`media:video`);else{let e=t.fileName??a.split(`/`).pop()??`file`,r=t.contentType??`application/octet-stream`;await v(()=>n.sendMedia({document:t.buffer,fileName:e,caption:l,mimetype:r}),`media:document`)}C.info(`Sent media reply to ${n.from} (${(t.buffer.length/(1024*1024)).toFixed(2)}MB)`),o.info({correlationId:n.id??b(),connectionId:s??null,to:n.from,from:n.to,text:l??null,mediaUrl:a,mediaSizeBytes:t.buffer.length,mediaKind:t.kind,durationMs:Date.now()-d},`auto-reply sent (media)`)}catch(e){if(C.error(`Failed sending web media to ${n.from}: ${p.n(e)}`),o.warn({err:e,mediaUrl:a},`failed to send web media reply`),t===0){let t=e instanceof Error?`⚠️ Media failed: ${e.message}`:`⚠️ Media failed.`,r=[y.shift()??l??``,t].filter(Boolean).join(`
5
5
  `);r&&(C.warn(`Media skipped; sent text-only to ${n.from}`),await n.reply(r))}}}for(let e of y)await n.reply(e)}function ke(t){if(!t.msg.id)return;let n=t.cfg.channels?.whatsapp?.ackReaction,r=(n?.emoji??``).trim(),a=n?.direct??!0,o=n?.group??`mentions`,s=t.msg.conversationId??t.msg.from,c=t.msg.chatType===`group`?he({cfg:t.cfg,agentId:t.agentId,sessionKey:t.sessionKey,conversationId:s}):null;e.y({emoji:r,isDirect:t.msg.chatType===`direct`,isGroup:t.msg.chatType===`group`,directEnabled:a,groupMode:o,wasMentioned:t.msg.wasMentioned===!0,groupActivated:c===`always`})&&(t.info({chatId:t.msg.chatId,messageId:t.msg.id,emoji:r},`sending ack reaction`),f.r(t.msg.chatId,t.msg.id,r,{verbose:t.verbose,fromMe:!1,participant:t.msg.senderJid,accountId:t.accountId}).catch(e=>{t.warn({error:p.n(e),chatId:t.msg.chatId,messageId:t.msg.id},`failed to send ack reaction`),i.R(`WhatsApp ack reaction failed for chat ${t.msg.chatId}: ${p.n(e)}`)}))}function Ae(e){return e.replyToBody?`[Replying to ${e.replyToSender??`unknown sender`}${e.replyToId?` id:${e.replyToId}`:``}]\n${e.replyToBody}\n[/Replying]`:null}function je(t){let{cfg:n,msg:r,agentId:i,previousTimestamp:a,envelope:o}=t,s=e.Z(n,i,{configured:n.channels?.whatsapp?.messagePrefix,hasAllowFrom:(n.channels?.whatsapp?.allowFrom?.length??0)>0}),c=s?`${s} `:``,l=Ae(r),u=`${c}${r.body}${l?`\n\n${l}`:``}`;return e.w({channel:`WhatsApp`,from:r.chatType===`group`?r.from:r.from?.replace(/^whatsapp:/,``),timestamp:r.timestamp,body:u,chatType:r.chatType,sender:{name:r.senderName,e164:r.senderE164,id:r.senderJid},previousTimestamp:a,envelope:o,fromMe:r.fromMe})}async function Me(t){let n=t.cfg.commands?.useAccessGroups!==!1;if(!n)return!0;let a=t.msg.chatType===`group`,o=i.h(a?t.msg.senderE164??``:t.msg.senderE164??t.msg.from??``);if(!o)return!1;let s=r.Gn({cfg:t.cfg,accountId:t.msg.accountId}),c=s.dmPolicy??`pairing`,l=s.groupPolicy??`allowlist`,u=s.allowFrom??[],d=s.groupAllowFrom??(u.length>0?u:void 0),f=a?[]:await e.V({provider:`whatsapp`,accountId:t.msg.accountId,dmPolicy:c});return e.H({isGroup:a,dmPolicy:c,groupPolicy:l,allowFrom:u.length>0?u:t.msg.selfE164?[t.msg.selfE164]:[],groupAllowFrom:d,storeAllowFrom:f,isSenderAllowed:e=>e.includes(`*`)?!0:e.map(e=>i.h(String(e))).filter(e=>!!e).includes(o),command:{useAccessGroups:n,allowTextCommands:!0,hasControlCommand:!0}}).commandAuthorized}function Ne(t){let n=r.Gn({cfg:t.cfg,accountId:t.msg.accountId});return e.W({dmScope:t.cfg.session?.dmScope,allowFrom:n.allowFrom,normalizeEntry:e=>i.h(e)})}async function Pe(t){let n=t.msg.conversationId??t.msg.from,{storePath:o,envelopeOptions:l,previousTimestamp:u}=e.s({cfg:t.cfg,agentId:t.route.agentId,sessionKey:t.route.sessionKey}),d=je({cfg:t.cfg,msg:t.msg,agentId:t.route.agentId,previousTimestamp:u,envelope:l}),f=!1;if(t.msg.chatType===`group`){let r=t.groupHistory??t.groupHistories.get(t.groupHistoryKey)??[];r.length>0&&(d=e.d({entries:r.map(e=>({sender:e.sender,body:e.body,timestamp:e.timestamp})),currentMessage:d,excludeLast:!1,formatEntry:t=>e.w({channel:`WhatsApp`,from:n,timestamp:t.timestamp,body:t.body,chatType:`group`,senderLabel:t.sender,envelope:l})})),f=!(t.suppressGroupHistoryClear??!1)}let m=t.buildCombinedEchoKey({sessionKey:t.route.sessionKey,combinedBody:d});if(t.echoHas(m))return i.R(`Skipping auto-reply: detected echo for combined message`),t.echoForget(m),!1;ke({cfg:t.cfg,msg:t.msg,agentId:t.route.agentId,sessionKey:t.route.sessionKey,conversationId:n,verbose:t.verbose,accountId:t.route.accountId,info:t.replyLogger.info.bind(t.replyLogger),warn:t.replyLogger.warn.bind(t.replyLogger)});let h=t.msg.id??b();t.replyLogger.info({connectionId:t.connectionId,correlationId:h,from:t.msg.chatType===`group`?n:t.msg.from,to:t.msg.to,body:$(d,240),mediaType:t.msg.mediaType??null,mediaPath:t.msg.mediaPath??null},`inbound web message`);let g=t.msg.chatType===`group`?n:t.msg.from,_=t.msg.mediaType?`, ${t.msg.mediaType}`:``;S.info(`Inbound message ${g} -> ${t.msg.to} (${t.msg.chatType}${_}, ${d.length} chars)`),i.B()&&S.debug(`Inbound body: ${$(d,400)}`);let v=t.msg.chatType===`group`?void 0:t.msg.senderE164?i.h(t.msg.senderE164):t.msg.from.includes(`@`)?i.m(t.msg.from):i.h(t.msg.from),y=t.maxMediaTextChunkLimit??c.h(t.cfg,`whatsapp`),x=c.m(t.cfg,`whatsapp`,t.route.accountId),ee=c.s({cfg:t.cfg,channel:`whatsapp`,accountId:t.route.accountId}),w=s.t(t.cfg,t.route.agentId),T=!1,E=!1,D=e.E(t.msg.body,t.cfg)?await Me({cfg:t.cfg,msg:t.msg}):void 0,O=t.cfg.messages?.responsePrefix,{onModelSelected:k,...A}=e.Y({cfg:t.cfg,agentId:t.route.agentId,channel:`whatsapp`,accountId:t.route.accountId}),j=t.msg.chatType!==`group`&&!!t.msg.selfE164&&i.h(t.msg.from)===i.h(t.msg.selfE164??``),M=A.responsePrefix??(O===void 0&&j?e.X(t.cfg,t.route.agentId):void 0),N=t.msg.chatType===`group`?(t.groupHistory??t.groupHistories.get(t.groupHistoryKey)??[]).map(e=>({sender:e.sender,body:e.body,timestamp:e.timestamp})):void 0,P=e.L({Body:d,BodyForAgent:t.msg.body,InboundHistory:N,RawBody:t.msg.body,CommandBody:t.msg.body,From:t.msg.from,To:t.msg.to,SessionKey:t.route.sessionKey,AccountId:t.route.accountId,MessageSid:t.msg.id,ReplyToId:t.msg.replyToId,ReplyToBody:t.msg.replyToBody,ReplyToSender:t.msg.replyToSender,MediaPath:t.msg.mediaPath,MediaUrl:t.msg.mediaUrl,MediaType:t.msg.mediaType,ChatType:t.msg.chatType,ConversationLabel:t.msg.chatType===`group`?n:t.msg.from,GroupSubject:t.msg.groupSubject,GroupMembers:ve({participants:t.msg.groupParticipants,roster:t.groupMemberNames.get(t.groupHistoryKey),fallbackE164:t.msg.senderE164}),SenderName:t.msg.senderName,SenderId:t.msg.senderJid?.trim()||t.msg.senderE164,SenderE164:t.msg.senderE164,CommandAuthorized:D,WasMentioned:t.msg.wasMentioned,...t.msg.location?a.Y(t.msg.location):{},Provider:`whatsapp`,Surface:`whatsapp`,OriginatingChannel:`whatsapp`,OriginatingTo:t.msg.from}),F=Ne({cfg:t.cfg,msg:t.msg}),I=!F||F===v,L=e.g({route:t.route,sessionKey:t.route.sessionKey});v&&L===t.route.mainSessionKey&&I?we({cfg:t.cfg,backgroundTasks:t.backgroundTasks,storeAgentId:t.route.agentId,sessionKey:t.route.mainSessionKey,channel:`whatsapp`,to:v,accountId:t.route.accountId,ctx:P,warn:t.replyLogger.warn.bind(t.replyLogger)}):v&&L===t.route.mainSessionKey&&F&&i.R(`Skipping main-session last route update for ${v} (pinned owner ${F})`);let R=r.jt({storePath:o,sessionKey:t.route.sessionKey,ctx:P}).catch(e=>{t.replyLogger.warn({error:p.n(e),storePath:o,sessionKey:t.route.sessionKey},`failed updating session meta`)});Ce(t.backgroundTasks,R);let{queuedFinal:z}=await e.b({ctx:P,cfg:t.cfg,replyResolver:t.replyResolver,dispatcherOptions:{...A,responsePrefix:M,onHeartbeatStrip:()=>{T||(T=!0,i.R(`Stripped stray HEARTBEAT_OK token from web reply`))},deliver:async(e,r)=>{if(r.kind!==`final`)return;await Oe({replyResult:e,msg:t.msg,mediaLocalRoots:w,maxMediaBytes:t.maxMediaBytes,textLimit:y,chunkMode:x,replyLogger:t.replyLogger,connectionId:t.connectionId,skipLog:!1,tableMode:ee}),E=!0;let a=e.text?!0:void 0;t.rememberSentText(e.text,{combinedBody:d,combinedBodySessionKey:t.route.sessionKey,logVerboseMessage:a});let o=t.msg.chatType===`group`?n:t.msg.from??`unknown`,s=!!(e.mediaUrl||e.mediaUrls?.length);if(C.info(`Auto-replied to ${o}${s?` (media)`:``}`),i.B()){let t=e.text==null?`<media>`:$(e.text,400);C.debug(`Reply body: ${t}${s?` (media)`:``}`)}},onError:(e,r)=>{let i=r.kind===`tool`?`tool update`:r.kind===`block`?`block update`:`auto-reply`;C.error(`Failed sending web ${i} to ${t.msg.from??n}: ${p.n(e)}`)},onReplyStart:t.msg.sendComposing},replyOptions:{disableBlockStreaming:!0,onModelSelected:k}});return z?(f&&t.groupHistories.set(t.groupHistoryKey,[]),E):(f&&t.groupHistories.set(t.groupHistoryKey,[]),i.R(`Skipping auto-reply: silent token or no text/media returned from resolver`),!1)}function Fe(t){let a=async(e,n,r,i)=>Pe({cfg:t.cfg,msg:e,route:n,groupHistoryKey:r,groupHistories:t.groupHistories,groupMemberNames:t.groupMemberNames,connectionId:t.connectionId,verbose:t.verbose,maxMediaBytes:t.maxMediaBytes,replyResolver:t.replyResolver,replyLogger:t.replyLogger,backgroundTasks:t.backgroundTasks,rememberSentText:t.echoTracker.rememberText,echoHas:t.echoTracker.has,echoForget:t.echoTracker.forget,buildCombinedEchoKey:t.echoTracker.buildCombinedKey,groupHistory:i?.groupHistory,suppressGroupHistoryClear:i?.suppressGroupHistoryClear});return async o=>{let s=o.conversationId??o.from,c=Te(o),l=e.h({cfg:r.Oa(),channel:`whatsapp`,accountId:o.accountId,peer:{kind:o.chatType===`group`?`group`:`direct`,id:c}}),u=o.chatType===`group`?n.kt({channel:`whatsapp`,accountId:l.accountId,peerKind:`group`,peerId:c}):l.sessionKey;if(o.from===o.to&&i.R(`📱 Same-phone mode detected (from === to: ${o.from})`),t.echoTracker.has(o.body)){i.R(`Skipping auto-reply: detected echo (message matches recently sent text)`),t.echoTracker.forget(o.body);return}if(o.chatType===`group`){let e={From:o.from,To:o.to,SessionKey:l.sessionKey,AccountId:l.accountId,ChatType:o.chatType,ConversationLabel:s,GroupSubject:o.groupSubject,SenderName:o.senderName,SenderId:o.senderJid?.trim()||o.senderE164,SenderE164:o.senderE164,Provider:`whatsapp`,Surface:`whatsapp`,OriginatingChannel:`whatsapp`,OriginatingTo:s};if(we({cfg:t.cfg,backgroundTasks:t.backgroundTasks,storeAgentId:l.agentId,sessionKey:l.sessionKey,channel:`whatsapp`,to:s,accountId:l.accountId,ctx:e,warn:t.replyLogger.warn.bind(t.replyLogger)}),!Se({cfg:t.cfg,msg:o,conversationId:s,groupHistoryKey:u,agentId:l.agentId,sessionKey:l.sessionKey,baseMentionConfig:t.baseMentionConfig,authDir:t.account.authDir,groupHistories:t.groupHistories,groupHistoryLimit:t.groupHistoryLimit,groupMemberNames:t.groupMemberNames,logVerbose:i.R,replyLogger:t.replyLogger}).shouldProcess)return}else !o.senderE164&&c&&c.startsWith(`+`)&&(o.senderE164=i.h(c)??o.senderE164);await de({cfg:t.cfg,msg:o,peerId:c,route:l,groupHistoryKey:u,groupHistories:t.groupHistories,processMessage:a})||await a(o,l,u)}}function Ie(e){return e===440}async function Le(t,n=oe,a=!0,s=e.t,c=i.M,l,u={}){let f=b(),m=i.K({module:`web-auto-reply`,runId:f}),h=i.K({module:`web-heartbeat`,runId:f}),g=i.K({module:`web-reconnect`,runId:f}),_={running:!0,connected:!1,reconnectAttempts:0,lastConnectedAt:null,lastDisconnect:null,lastMessageAt:null,lastEventAt:null,lastError:null},S=()=>{u.statusSink?.({..._,lastDisconnect:_.lastDisconnect?{..._.lastDisconnect}:null})};S();let C=r.Oa(),T=r.Gn({cfg:C,accountId:u.accountId}),E={...C,channels:{...C.channels,whatsapp:{...C.channels?.whatsapp,ackReaction:T.ackReaction,messagePrefix:T.messagePrefix,allowFrom:T.allowFrom,groupAllowFrom:T.groupAllowFrom,groupPolicy:T.groupPolicy,textChunkLimit:T.textChunkLimit,chunkMode:T.chunkMode,mediaMaxMb:T.mediaMaxMb,blockStreaming:T.blockStreaming,groups:T.groups}}},D=r.Kn(T),O=v(E,u.heartbeatSeconds),k=y(E,u.reconnect),A=X(E),j=E.channels?.whatsapp?.accounts?.[u.accountId??``]?.historyLimit??E.channels?.whatsapp?.historyLimit??E.messages?.groupChat?.historyLimit??50,M=new Map,N=new Map,P=le({maxItems:100,logVerbose:i.R}),F=u.sleep??((t,n)=>e.u(t,n??l)),I=()=>l?.aborted===!0,L=l&&new Promise(e=>l.addEventListener(`abort`,()=>e(`aborted`),{once:!0})),R=process.getMaxListeners?.()??10;process.setMaxListeners&&R<50&&process.setMaxListeners(50);let z=!1,B=()=>{z=!0};process.once(`SIGINT`,B);let V=0;for(;!I();){let f=b(),v=Date.now(),y=null,C=null,R=null,H=0,U=null,te=u.messageTimeoutMs??1800*1e3,ne=u.watchdogCheckMs??60*1e3,W=new Set,re=Fe({cfg:E,verbose:t,connectionId:f,maxMediaBytes:D,groupHistoryLimit:j,groupHistories:M,groupMemberNames:N,echoTracker:P,backgroundTasks:W,replyResolver:s??e.t,replyLogger:m,baseMentionConfig:A,account:T}),ie=e.C({cfg:E,channel:`whatsapp`}),G=await(n??oe)({verbose:t,accountId:T.accountId,authDir:T.authDir,mediaMaxMb:T.mediaMaxMb,sendReadReceipts:T.sendReadReceipts,debounceMs:ie,shouldDebounce:t=>t.mediaPath||t.mediaType||t.location||t.replyToId||t.replyToBody?!1:!e.T(t.body,E),onMessage:async e=>{H+=1,R=Date.now(),_.lastMessageAt=R,_.lastEventAt=R,S(),await re(e)}});Object.assign(_,e.c()),_.lastError=null,S();let{e164:K}=r.er(T.authDir),ae=e.h({cfg:E,channel:`whatsapp`,accountId:T.accountId});e._(`WhatsApp gateway connected${K?` as ${K}`:``}.`,{sessionKey:ae.sessionKey}),d.r(T.accountId,G),U=o.f(e=>{if(!Ee(e))return!1;let t=p.n(e);return g.warn({connectionId:f,error:t},`web reconnect: unhandled rejection from WhatsApp socket; forcing reconnect`),G.signalClose?.({status:499,isLoggedOut:!1,error:e}),!0});let q=async()=>{d.r(T.accountId,null),U&&=(U(),null),y&&clearInterval(y),C&&clearInterval(C),W.size>0&&(await Promise.allSettled(W),W.clear());try{await G.close()}catch(e){i.R(`Socket close failed: ${p.n(e)}`)}};if(a&&(y=setInterval(()=>{let e=r.Jn(T.authDir),t=R?Math.floor((Date.now()-R)/6e4):null,n={connectionId:f,reconnectAttempts:V,messagesHandled:H,lastMessageAt:R,authAgeMs:e,uptimeMs:Date.now()-v,...t!==null&&t>30?{minutesSinceLastMessage:t}:{}};t&&t>30?h.warn(n,`⚠️ web gateway heartbeat - no messages in 30+ minutes`):h.info(n,`web gateway heartbeat`)},O*1e3),C=setInterval(()=>{if(!R)return;let e=Date.now()-R;if(e<=te)return;let t=Math.floor(e/6e4);h.warn({connectionId:f,minutesSinceLastMessage:t,lastMessageAt:new Date(R),messagesHandled:H},`Message timeout detected - forcing reconnect`),ee.warn(`No messages received in ${t}m - restarting connection`),q().catch(e=>{i.R(`Close listener failed: ${p.n(e)}`)}),G.signalClose?.({status:499,isLoggedOut:!1,error:`watchdog-timeout`})},ne)),x.info(`Listening for personal WhatsApp inbound messages.`),(process.stdout.isTTY||process.stderr.isTTY)&&x.raw(`Ctrl+C to stop.`),!a){await q(),process.removeListener(`SIGINT`,B);return}let J=await Promise.race([G.onClose?.catch(e=>(g.error({error:p.n(e)},`listener.onClose rejected`),{status:500,isLoggedOut:!1,error:e}))??w(),L??w()]);if(Date.now()-v>O*1e3&&(V=0),_.reconnectAttempts=V,S(),I()||z||J===`aborted`){await q();break}let Y=(typeof J==`object`&&J&&`status`in J?J.status:void 0)??`unknown`,X=typeof J==`object`&&J&&`isLoggedOut`in J&&J.isLoggedOut,Z=p.n(J);if(_.connected=!1,_.lastEventAt=Date.now(),_.lastDisconnect={at:_.lastEventAt,status:typeof Y==`number`?Y:void 0,error:Z,loggedOut:!!X},_.lastError=Z,_.reconnectAttempts=V,S(),g.info({connectionId:f,status:Y,loggedOut:X,reconnectAttempts:V,error:Z},`web reconnect: connection closed`),e._(`WhatsApp gateway disconnected (status ${Y??`unknown`})`,{sessionKey:ae.sessionKey}),X){c.error(`WhatsApp session logged out. Run \`${r.ic(`openclaw channels login --channel web`)}\` to relink.`),await q();break}if(Ie(Y)){g.warn({connectionId:f,status:Y,error:Z},`web reconnect: non-retryable close status; stopping monitor`),c.error(`WhatsApp Web connection closed (status ${Y}: session conflict). Resolve conflicting WhatsApp Web sessions, then relink with \`${r.ic(`openclaw channels login --channel web`)}\`. Stopping web monitoring.`),await q();break}if(V+=1,_.reconnectAttempts=V,S(),k.maxAttempts>0&&V>=k.maxAttempts){g.warn({connectionId:f,status:Y,reconnectAttempts:V,maxAttempts:k.maxAttempts},`web reconnect: max attempts reached; continuing in degraded mode`),c.error(`WhatsApp Web reconnect: max attempts reached (${V}/${k.maxAttempts}). Stopping web monitoring.`),await q();break}let Q=e.l(k,V);g.info({connectionId:f,status:Y,reconnectAttempts:V,maxAttempts:k.maxAttempts||`unlimited`,delayMs:Q},`web reconnect: scheduling retry`),c.error(`WhatsApp Web connection closed (status ${Y}). Retry ${V}/${k.maxAttempts||`∞`} in ${e.v(Q)}… (${Z})`),await q();try{await F(Q,l)}catch{break}}_.running=!1,_.connected=!1,_.lastEventAt=Date.now(),S(),process.removeListener(`SIGINT`,B)}exports.WA_WEB_AUTH_DIR=r.qn,exports.createWaSocket=p.t,exports.logWebSelfId=r.Yn,exports.loginWeb=m.t,exports.monitorWebChannel=Le,exports.monitorWebInbox=oe,exports.pickWebChannel=r.Qn,exports.sendMessageWhatsApp=f.t,exports.waitForWaConnection=p.i,exports.webAuthExists=r.ir;
6
- //# sourceMappingURL=web-pcTha_l7.cjs.map
6
+ //# sourceMappingURL=web-BQ9hOKe8.cjs.map