remoteclaw 0.3.0 → 0.4.0-next.20260408080907.3e8e47a

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 (218) hide show
  1. package/dist/{accounts-C9z3KfNC.js → accounts-CN28BXFN.js} +1 -1
  2. package/dist/{accounts-MiOVcsni.js → accounts-DRLU2Il7.js} +21 -21
  3. package/dist/{accounts-CdatD2X-.js → accounts-dohNnqRa.js} +1 -1
  4. package/dist/{acp-cli-CZYKJM9V.js → acp-cli-DXElCJMk.js} +2 -2
  5. package/dist/{acp-cli-um6atNCz.js → acp-cli-DXww_qmF.js} +2 -2
  6. package/dist/{active-listener-DmILif52.js → active-listener-D0mvSHJ0.js} +1 -1
  7. package/dist/{agent-CPXVI9S6.js → agent-DgJKd3O9.js} +110 -110
  8. package/dist/{agent-scope-C3waSMTH.js → agent-scope-DOLYX1FC.js} +1 -1
  9. package/dist/{agents-B413IAS3.js → agents-BxVl1uUO.js} +2 -2
  10. package/dist/{audit-DAim-l8B.js → audit-BnDRbZwo.js} +2 -2
  11. package/dist/{audit-D-s5Gj6d.js → audit-MEo6woqZ.js} +2 -2
  12. package/dist/{banner-Bx5oeJjN.js → banner-QYEG_gqZ.js} +1 -1
  13. package/dist/{bindings-DJbmBuzX.js → bindings-DSoShrGE.js} +2 -2
  14. package/dist/boot/handler.js +43 -43
  15. package/dist/{browser-cli-C9gtPD6n.js → browser-cli-U0pSKuG8.js} +3 -3
  16. package/dist/{browser-cli-0znWBmUM.js → browser-cli-vrkIpQJj.js} +3 -3
  17. package/dist/build-info.json +3 -3
  18. package/dist/{call-DBeWHgQe.js → call-BfdxmHkH.js} +1 -1
  19. package/dist/{call-CN1qXA9V.js → call-DGVTr9Yi.js} +1 -1
  20. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  21. package/dist/{channel-activity-DbG6MuyO.js → channel-activity-2-UmOVHm.js} +2 -2
  22. package/dist/{channel-options-Dbt2kBhw.js → channel-options-7bnarkxl.js} +1 -1
  23. package/dist/{channel-options-DlscfV-J.js → channel-options-BlVooPhv.js} +1 -1
  24. package/dist/{channel-web-IQkUiqVO.js → channel-web-bKO1r82S.js} +1 -1
  25. package/dist/{channel-web-B1jA1wkR.js → channel-web-g85jVYrn.js} +1 -1
  26. package/dist/{channels-cli-DsiDcd3s.js → channels-cli-Cpkq4_rv.js} +9 -9
  27. package/dist/{channels-cli-DgQKvxBF.js → channels-cli-DbGfEDJE.js} +9 -9
  28. package/dist/{chrome-BI45yh1U.js → chrome-BYp_vNf0.js} +9 -9
  29. package/dist/{chunk-CqY4MoZn.js → chunk-DxX4tOmh.js} +1 -1
  30. package/dist/cli/daemon-cli.js +1 -1
  31. package/dist/{cli-BueA9wgL.js → cli-C2vDj6ng.js} +5 -5
  32. package/dist/{cli-CFfNCPhJ.js → cli-SaHXtde0.js} +5 -5
  33. package/dist/{client-CKDI-QrF.js → client-BwMSjsHK.js} +1 -2
  34. package/dist/{client-CbOR97YL.js → client-rhHFI_3y.js} +5 -6
  35. package/dist/command-logger/handler.js +1 -1
  36. package/dist/{command-registry-MfHK9qQF.js → command-registry-CsJZLosK.js} +10 -10
  37. package/dist/{commands-registry-BlJMsRJB.js → commands-registry-CIQO5bgN.js} +3 -3
  38. package/dist/{completion-cli-DfF52hZY.js → completion-cli-D6kgburO.js} +1 -1
  39. package/dist/{completion-cli-AgsD7zOd.js → completion-cli-DbqKPlDC.js} +2 -2
  40. package/dist/{config-DU81RD_3.js → config-CFn8dUO2.js} +42 -42
  41. package/dist/{config-cli-F5Vibw1l.js → config-cli-Clf978Uj.js} +1 -1
  42. package/dist/{config-cli-BZnaobcJ.js → config-cli-Db13Zgj9.js} +1 -1
  43. package/dist/{configure-BaCWc30B.js → configure-BuNjEJMl.js} +4 -4
  44. package/dist/{configure-Dbx9-F76.js → configure-cfWvGNtm.js} +4 -4
  45. package/dist/control-ui/assets/{index-yQsCaNkQ.js → index-CDYhhmPq.js} +2 -3
  46. package/dist/control-ui/assets/index-CDYhhmPq.js.map +1 -0
  47. package/dist/control-ui/index.html +1 -1
  48. package/dist/{cron-cli-D3r1hTXs.js → cron-cli-BkbWH594.js} +3 -3
  49. package/dist/{cron-cli-CPX7UyfW.js → cron-cli-Dk0LEMLF.js} +3 -3
  50. package/dist/{daemon-cli-D9HOp-wC.js → daemon-cli-ByTatLeu.js} +2 -2
  51. package/dist/{daemon-cli-0XbbfQlM.js → daemon-cli-DwXX2cxq.js} +2 -2
  52. package/dist/daemon-cli.js +1 -2
  53. package/dist/{deliver-vCMc7-Ne.js → deliver-DLf4Hwv7.js} +17 -17
  54. package/dist/{devices-cli-CMXq-9QX.js → devices-cli-Iw12o5hh.js} +2 -2
  55. package/dist/{devices-cli-Z5fO1vqJ.js → devices-cli-bO90_hYC.js} +2 -2
  56. package/dist/{dispatcher-BJMFRJXH.js → dispatcher-CughfOXq.js} +1 -1
  57. package/dist/{dock-CRlZk5n0.js → dock-DPKoXYpu.js} +5 -5
  58. package/dist/{doctor-completion-ALXT0raD.js → doctor-completion-CgvrDIRW.js} +1 -1
  59. package/dist/{doctor-completion-CUi0PcIz.js → doctor-completion-ek7ngaIu.js} +1 -1
  60. package/dist/entry.js +2 -2
  61. package/dist/{env-D1RbxWjD.js → env-Da8bZru0.js} +1 -1
  62. package/dist/{errors-f5AmlN2c.js → errors-tkjds7MX.js} +1 -1
  63. package/dist/{fetch-B_BFCmqd.js → fetch-UZX5WDiz.js} +2 -2
  64. package/dist/{file-lock-CFAdm679.js → file-lock-CaaUYvTj.js} +1 -1
  65. package/dist/{gateway-cli-BdhpZr-z.js → gateway-cli-BIKIVrrz.js} +25 -36
  66. package/dist/{gateway-cli-DXgvlY4l.js → gateway-cli-DrAmuEjF.js} +29 -40
  67. package/dist/{gateway-rpc-B4Vx7wxT.js → gateway-rpc-BTqYB77Y.js} +1 -1
  68. package/dist/{gateway-rpc-BZAXatwS.js → gateway-rpc-UR_0F8YL.js} +1 -1
  69. package/dist/{health-DcGnXkR2.js → health-BzsWGFcG.js} +4 -4
  70. package/dist/{health-B-UojxW3.js → health-DA8jYfJq.js} +4 -4
  71. package/dist/{heartbeat-visibility-enjUx1yb.js → heartbeat-visibility-BfP9OlVW.js} +1 -1
  72. package/dist/{heartbeat-visibility-CPw9_F6j.js → heartbeat-visibility-zuosFE5e.js} +1 -1
  73. package/dist/{hooks-cli-8TpE2jcJ.js → hooks-cli-BxkOcZgN.js} +6 -6
  74. package/dist/{hooks-cli-OPVkrmHt.js → hooks-cli-D8z4LTJ5.js} +6 -6
  75. package/dist/{image-ops-lFyH2gYh.js → image-ops-BRUdJGcI.js} +14 -14
  76. package/dist/index.js +10 -10
  77. package/dist/{ip-DGa1vDAY.js → ip-CPECnBra.js} +3 -3
  78. package/dist/{ir-B0JWNy-x.js → ir-DYwnCt1n.js} +14 -14
  79. package/dist/json-file-B4_OWb2G.js +25 -0
  80. package/dist/{logger-BIagVaVQ.js → logger-BPwyikZe.js} +1 -1
  81. package/dist/{login-Bg8zZbHw.js → login-YHIbSL4_.js} +6 -6
  82. package/dist/{login-qr-Bdg15DTZ.js → login-qr-C9x03Swh.js} +8 -8
  83. package/dist/{logs-cli-DIcrxZ2U.js → logs-cli-CvLEhzSX.js} +3 -3
  84. package/dist/{logs-cli-BFunKVeM.js → logs-cli-RyVr7MHT.js} +3 -3
  85. package/dist/{markdown-tables-ku0nA2hq.js → markdown-tables-Ci6ZBGA6.js} +1 -1
  86. package/dist/{message-action-names-BqwEWo4Q.js → message-action-names-CjLZ2bpu.js} +3 -3
  87. package/dist/{message-action-names-C9H2ORdS.js → message-action-names-lNfr4z6A.js} +3 -3
  88. package/dist/{message-channel-qtGdeQW0.js → message-channel-B4owbzlP.js} +1 -1
  89. package/dist/{node-cli-z_widOTQ.js → node-cli-CfFMpf-K.js} +4 -4
  90. package/dist/{node-cli-Bc8ggZmO.js → node-cli-DqCgQdlQ.js} +1 -1
  91. package/dist/{nodes-cli-C_1N-mxu.js → nodes-cli-ByKsM0p8.js} +2 -2
  92. package/dist/{nodes-cli-Nvc3Nb42.js → nodes-cli-CaoUBMkN.js} +2 -2
  93. package/dist/{npm-resolution-CaRMmPZx.js → npm-resolution-0UgK1-jN.js} +1 -1
  94. package/dist/{npm-resolution-CmJbvGR2.js → npm-resolution-BpRAF1Bp.js} +1 -1
  95. package/dist/{onboard-jCn-Gmvq.js → onboard-CEirgdeh.js} +3 -3
  96. package/dist/{onboard-channels-BXHCiKDA.js → onboard-channels--ZUR7cmJ.js} +2 -2
  97. package/dist/{onboard-channels-Dw83Aet0.js → onboard-channels-B3eNYseK.js} +2 -2
  98. package/dist/{onboard-helpers-CxrtNSAc.js → onboard-helpers-BhrpfTUR.js} +1 -1
  99. package/dist/{onboard-helpers-fKxenvco.js → onboard-helpers-COuhQz6m.js} +1 -1
  100. package/dist/{onboard-remote-ZcJupana.js → onboard-remote-DnwQ0G17.js} +1 -1
  101. package/dist/{onboard-remote-BA_0c6Nm.js → onboard-remote-DphuWKuU.js} +1 -1
  102. package/dist/{onboard-BRn1D6f9.js → onboard-resYhy3Y.js} +3 -3
  103. package/dist/{onboarding-CDY-9-Sd.js → onboarding-B9w43baj.js} +5 -5
  104. package/dist/{onboarding-CxYy5wi-.js → onboarding-CPNeZMph.js} +5 -5
  105. package/dist/{onboarding.finalize-B36LFijm.js → onboarding.finalize-BIZa2sWe.js} +10 -10
  106. package/dist/{onboarding.finalize-w40WCQWn.js → onboarding.finalize-BzIGEedE.js} +11 -11
  107. package/dist/{onboarding.gateway-config-Dk2-P6Rk.js → onboarding.gateway-config-CKXL2kfw.js} +3 -3
  108. package/dist/{onboarding.gateway-config-DHdlGrFA.js → onboarding.gateway-config-DovdnLnl.js} +3 -3
  109. package/dist/{outbound-DX2NbTg0.js → outbound-BJLk4kS8.js} +6 -6
  110. package/dist/{outbound-attachment-D7RDOXi0.js → outbound-attachment-B5Cjh_SL.js} +6 -6
  111. package/dist/{plugin-registry-C_QJlanU.js → plugin-registry-Bi9mSu3S.js} +1 -1
  112. package/dist/{plugin-registry-BxaSqAZl.js → plugin-registry-CKzUH7XU.js} +1 -1
  113. package/dist/plugin-sdk/{channel-web-JZL1IH5o.js → channel-web-C2FBAuHN.js} +4 -4
  114. package/dist/plugin-sdk/cron/types.d.ts +1 -2
  115. package/dist/plugin-sdk/{deliver-BP6RTwO9.js → deliver-Bc-NpAUs.js} +1 -1
  116. package/dist/plugin-sdk/gateway/protocol/schema/cron.d.ts +1 -2
  117. package/dist/plugin-sdk/index.js +5 -5
  118. package/dist/plugin-sdk/{reply-DzzvL8ll.js → reply-DJu2wAo-.js} +5 -5
  119. package/dist/plugin-sdk/{reply-payloads-DX-JuEui.js → reply-payloads-DnCbkerV.js} +6 -6
  120. package/dist/plugin-sdk/{subagent-registry-CyUlUl0_.js → subagent-registry-BUwhHtwY.js} +5 -6
  121. package/dist/plugin-sdk/{web-CZ3ftu0k.js → web-DiFCKqEO.js} +5 -5
  122. package/dist/{plugins-DTfH-JPT.js → plugins-CctkSBGc.js} +9 -9
  123. package/dist/{plugins-cli-XCFANEfz.js → plugins-cli-BewiDXTD.js} +6 -6
  124. package/dist/{plugins-cli-DKB1xg4F.js → plugins-cli-CpzH0NXK.js} +6 -6
  125. package/dist/{preflight-DvLcTuNh.js → preflight-lGHsRgqc.js} +11 -11
  126. package/dist/{process-scoped-map-33Fk9RPa.js → process-scoped-map-D4BD-w7o.js} +2 -2
  127. package/dist/{program-BjxR1co_.js → program-CbCzvvif.js} +11 -11
  128. package/dist/{program-context-DsvgsEl0.js → program-context-Ctf3l4X8.js} +27 -27
  129. package/dist/{prompt-select-styled-vk8j6CmK.js → prompt-select-styled-Cj4W_Dqv.js} +5 -5
  130. package/dist/{prompt-select-styled-BYHaTALW.js → prompt-select-styled-DNMzmVlR.js} +5 -5
  131. package/dist/{provider-dispatcher-C-sLuxYs.js → provider-dispatcher-Bb5vYupp.js} +7 -7
  132. package/dist/{push-apns-CNv1GoMn.js → push-apns-BIyQdGhk.js} +1 -1
  133. package/dist/{push-apns-qx2uYWUp.js → push-apns-CkjeaIsW.js} +1 -1
  134. package/dist/{pw-ai-FRHJIdDq.js → pw-ai-DOegLCiu.js} +1 -1
  135. package/dist/{redact-CDx8YS4g.js → redact-B55JKeO3.js} +1 -1
  136. package/dist/{register.agent-C-Fg4cf4.js → register.agent-C9hQOmYp.js} +7 -7
  137. package/dist/{register.agent-Cuk_TIrS.js → register.agent-CMK3j1Lc.js} +8 -8
  138. package/dist/{register.configure-DSw7woR8.js → register.configure-CISpp_rK.js} +10 -10
  139. package/dist/{register.configure-C9FWEXbd.js → register.configure-Cnb1yRuL.js} +10 -10
  140. package/dist/{register.maintenance-Cj1hzBK0.js → register.maintenance-B6AJikD4.js} +10 -10
  141. package/dist/{register.maintenance-BhiqbZok.js → register.maintenance-CaM_m0FT.js} +11 -11
  142. package/dist/{register.message-vZjrOwLv.js → register.message-BZWXlNbJ.js} +7 -7
  143. package/dist/{register.message-4GtD0A2D.js → register.message-Du6wmACd.js} +7 -7
  144. package/dist/{register.onboard-BYCi6HaY.js → register.onboard-CllCMHwO.js} +5 -5
  145. package/dist/{register.onboard-DJR3wU-Y.js → register.onboard-DJgKstcj.js} +5 -5
  146. package/dist/{register.setup-M1ZdFWZ4.js → register.setup-CNaLqZ0z.js} +5 -5
  147. package/dist/{register.setup-CvP6kQhG.js → register.setup-Kbzp8pfw.js} +5 -5
  148. package/dist/{register.status-health-sessions-DSPat5UA.js → register.status-health-sessions-BtkC1XB5.js} +8 -8
  149. package/dist/{register.status-health-sessions-mAecyGFQ.js → register.status-health-sessions-CoJJYzCp.js} +8 -8
  150. package/dist/{register.subclis-VePTbq4_.js → register.subclis-BO_iK11D.js} +18 -18
  151. package/dist/{replies-DxqdY1hm.js → replies-BwEsVtIK.js} +3 -3
  152. package/dist/{reply-BdJ9SK4i.js → reply-D74cTq0M.js} +5 -5
  153. package/dist/{reply-payloads-B2g7ZobQ.js → reply-payloads-DmlIzspj.js} +4 -4
  154. package/dist/{reply-prefix-C90j668y.js → reply-prefix-7DSWdNx-.js} +1 -1
  155. package/dist/{resolve-route-Dl-E83dz.js → resolve-route-C0YR4sSl.js} +4 -4
  156. package/dist/{response-prefix-template-C2WPRq7i.js → response-prefix-template-BuF-oJxD.js} +1 -1
  157. package/dist/{run-main-wJgNSKIf.js → run-main-Bf7YoduO.js} +15 -15
  158. package/dist/{security-cli-4XRIMYgf.js → security-cli-Bb-p21yk.js} +3 -3
  159. package/dist/{security-cli-D_UAhFG5.js → security-cli-BfXz6SdN.js} +3 -3
  160. package/dist/{send-DQ6q8vTq.js → send-BDDeUGnx.js} +29 -29
  161. package/dist/{send-X3ITCG78.js → send-BxUmDoF2.js} +8 -8
  162. package/dist/{send-DtpHpP2c.js → send-Dcp1nCP_.js} +6 -6
  163. package/dist/{send-Bbd7Y8bY.js → send-DhNFSNPC.js} +7 -7
  164. package/dist/{send-DTxcri7v.js → send-DjxijmaI.js} +9 -9
  165. package/dist/{server-DCLxA4hq.js → server-B-h2QFj5.js} +3 -3
  166. package/dist/{server-lifecycle-CGgMOvOs.js → server-lifecycle-CWKAZdFR.js} +4 -4
  167. package/dist/{server-node-events-DDjnC7XJ.js → server-node-events-CbKxAE8y.js} +6 -6
  168. package/dist/{server-node-events-C320Boij.js → server-node-events-ChgWL-B1.js} +6 -6
  169. package/dist/{session-B8upZNGM.js → session-DB3FhZhs.js} +8 -8
  170. package/dist/{sessions-DdhUGazS.js → sessions-C-YRMvTW.js} +50 -50
  171. package/dist/{status-DLyjQh5n.js → status-BL4I8muJ.js} +5 -5
  172. package/dist/{status-skw-nqEo.js → status-BkWlXaPZ.js} +5 -5
  173. package/dist/{subagent-registry-B1SYoLI4.js → subagent-registry-BSBf2I0i.js} +1 -1
  174. package/dist/{subagent-registry-Bmo1DnZ5.js → subagent-registry-BiiARmU7.js} +1 -1
  175. package/dist/{subagent-registry-DPtfKonX.js → subagent-registry-CpGt2TUX.js} +43 -44
  176. package/dist/{subsystem-CfLsKM2e.js → subsystem-c5jT6OSn.js} +21 -21
  177. package/dist/{system-cli-B0kQnnS6.js → system-cli-BkRH6Miq.js} +3 -3
  178. package/dist/{system-cli-DZsfAA2I.js → system-cli-KBlaHrnL.js} +3 -3
  179. package/dist/{tables-4OKfrTZm.js → tables-DL0P9FF1.js} +1 -1
  180. package/dist/{target-errors-kh5oVqwm.js → target-errors-Certc-lV.js} +2 -2
  181. package/dist/{tokens-BsEnMhqu.js → tokens-XXLcdQ7I.js} +1 -1
  182. package/dist/{tool-images-PTPfZAIF.js → tool-images-BeSNIP1W.js} +2 -2
  183. package/dist/{tui-ByFabUI6.js → tui-59fonAzB.js} +2 -2
  184. package/dist/{tui-CsByCGLN.js → tui-Dlorhi1U.js} +2 -2
  185. package/dist/{tui-cli-Di7TqQX1.js → tui-cli-CKir_bjk.js} +3 -3
  186. package/dist/{tui-cli-BGLe1Ket.js → tui-cli-CcwU7c6I.js} +3 -3
  187. package/dist/{update-cli-oRco-BPW.js → update-cli-BKjYrKVT.js} +12 -12
  188. package/dist/{update-cli-YqyhYDEO.js → update-cli-DqKPfsSR.js} +11 -11
  189. package/dist/{web-CzO8bqLm.js → web-BDMQQEgA.js} +6 -6
  190. package/dist/{web-DZRW_M9U.js → web-DOfRhaVg.js} +47 -47
  191. package/dist/{web-CTdR-MFM.js → web-JRkIX16S.js} +6 -6
  192. package/dist/{whatsapp-actions-0DuRlF-I.js → whatsapp-actions-Cc9_atSz.js} +19 -19
  193. package/extensions/bluebubbles/package.json +1 -1
  194. package/extensions/diagnostics-otel/package.json +1 -1
  195. package/extensions/discord/package.json +1 -1
  196. package/extensions/feishu/package.json +1 -1
  197. package/extensions/googlechat/package.json +1 -1
  198. package/extensions/imessage/package.json +1 -1
  199. package/extensions/irc/package.json +1 -1
  200. package/extensions/line/package.json +1 -1
  201. package/extensions/matrix/package.json +1 -1
  202. package/extensions/mattermost/package.json +1 -1
  203. package/extensions/msteams/package.json +1 -1
  204. package/extensions/nextcloud-talk/package.json +1 -1
  205. package/extensions/nostr/package.json +1 -1
  206. package/extensions/signal/package.json +1 -1
  207. package/extensions/slack/package.json +1 -1
  208. package/extensions/synology-chat/package.json +1 -1
  209. package/extensions/telegram/package.json +1 -1
  210. package/extensions/tlon/package.json +1 -1
  211. package/extensions/twitch/package.json +1 -1
  212. package/extensions/voice-call/package.json +1 -1
  213. package/extensions/whatsapp/package.json +1 -1
  214. package/extensions/zalo/package.json +1 -1
  215. package/extensions/zalouser/package.json +1 -1
  216. package/package.json +1 -1
  217. package/dist/control-ui/assets/index-yQsCaNkQ.js.map +0 -1
  218. package/dist/json-file-CRyYLqpu.js +0 -25
@@ -1,5 +1,5 @@
1
1
  import { f as normalizeAccountId } from "./session-key-mz5XTzKi.js";
2
- import { r as createAccountListHelpers } from "./accounts-MiOVcsni.js";
2
+ import { r as createAccountListHelpers } from "./accounts-DRLU2Il7.js";
3
3
  import { t as resolveAccountEntry } from "./account-lookup-C0ndrpt-.js";
4
4
 
5
5
  //#region src/imessage/accounts.ts
@@ -1,10 +1,10 @@
1
- import { B as info, M as resolveUserPath, O as jidToE164, W as success, ot as resolveOAuthDir, q as getChildLogger, r as defaultRuntime } from "./subsystem-CfLsKM2e.js";
1
+ import { B as info, M as resolveUserPath, O as jidToE164, W as success, ot as resolveOAuthDir, q as getChildLogger, r as defaultRuntime } from "./subsystem-c5jT6OSn.js";
2
2
  import { d as DEFAULT_ACCOUNT_ID, f as normalizeAccountId, p as normalizeOptionalAccountId } from "./session-key-mz5XTzKi.js";
3
- import { n as formatCliCommand } from "./env-D1RbxWjD.js";
3
+ import { n as formatCliCommand } from "./env-Da8bZru0.js";
4
4
  import { t as resolveAccountEntry } from "./account-lookup-C0ndrpt-.js";
5
5
  import path from "node:path";
6
- import fs from "node:fs";
7
- import fs$1 from "node:fs/promises";
6
+ import fsSync from "node:fs";
7
+ import fs from "node:fs/promises";
8
8
 
9
9
  //#region src/web/auth-store.ts
10
10
  function resolveDefaultWebAuthDir() {
@@ -19,7 +19,7 @@ function resolveWebCredsBackupPath(authDir) {
19
19
  }
20
20
  function hasWebCredsSync(authDir) {
21
21
  try {
22
- const stats = fs.statSync(resolveWebCredsPath(authDir));
22
+ const stats = fsSync.statSync(resolveWebCredsPath(authDir));
23
23
  return stats.isFile() && stats.size > 1;
24
24
  } catch {
25
25
  return false;
@@ -27,10 +27,10 @@ function hasWebCredsSync(authDir) {
27
27
  }
28
28
  function readCredsJsonRaw(filePath) {
29
29
  try {
30
- if (!fs.existsSync(filePath)) return null;
31
- const stats = fs.statSync(filePath);
30
+ if (!fsSync.existsSync(filePath)) return null;
31
+ const stats = fsSync.statSync(filePath);
32
32
  if (!stats.isFile() || stats.size <= 1) return null;
33
- return fs.readFileSync(filePath, "utf-8");
33
+ return fsSync.readFileSync(filePath, "utf-8");
34
34
  } catch {
35
35
  return null;
36
36
  }
@@ -48,9 +48,9 @@ function maybeRestoreCredsFromBackup(authDir) {
48
48
  const backupRaw = readCredsJsonRaw(backupPath);
49
49
  if (!backupRaw) return;
50
50
  JSON.parse(backupRaw);
51
- fs.copyFileSync(backupPath, credsPath);
51
+ fsSync.copyFileSync(backupPath, credsPath);
52
52
  try {
53
- fs.chmodSync(credsPath, 384);
53
+ fsSync.chmodSync(credsPath, 384);
54
54
  } catch {}
55
55
  logger.warn({ credsPath }, "restored corrupted WhatsApp creds.json from backup");
56
56
  } catch {}
@@ -60,14 +60,14 @@ async function webAuthExists(authDir = resolveDefaultWebAuthDir()) {
60
60
  maybeRestoreCredsFromBackup(resolvedAuthDir);
61
61
  const credsPath = resolveWebCredsPath(resolvedAuthDir);
62
62
  try {
63
- await fs$1.access(resolvedAuthDir);
63
+ await fs.access(resolvedAuthDir);
64
64
  } catch {
65
65
  return false;
66
66
  }
67
67
  try {
68
- const stats = await fs$1.stat(credsPath);
68
+ const stats = await fs.stat(credsPath);
69
69
  if (!stats.isFile() || stats.size <= 1) return false;
70
- const raw = await fs$1.readFile(credsPath, "utf-8");
70
+ const raw = await fs.readFile(credsPath, "utf-8");
71
71
  JSON.parse(raw);
72
72
  return true;
73
73
  } catch {
@@ -75,7 +75,7 @@ async function webAuthExists(authDir = resolveDefaultWebAuthDir()) {
75
75
  }
76
76
  }
77
77
  async function clearLegacyBaileysAuthState(authDir) {
78
- const entries = await fs$1.readdir(authDir, { withFileTypes: true });
78
+ const entries = await fs.readdir(authDir, { withFileTypes: true });
79
79
  const shouldDelete = (name) => {
80
80
  if (name === "oauth.json") return false;
81
81
  if (name === "creds.json" || name === "creds.json.bak") return true;
@@ -85,7 +85,7 @@ async function clearLegacyBaileysAuthState(authDir) {
85
85
  await Promise.all(entries.map(async (entry) => {
86
86
  if (!entry.isFile()) return;
87
87
  if (!shouldDelete(entry.name)) return;
88
- await fs$1.rm(path.join(authDir, entry.name), { force: true });
88
+ await fs.rm(path.join(authDir, entry.name), { force: true });
89
89
  }));
90
90
  }
91
91
  async function logoutWeb(params) {
@@ -96,7 +96,7 @@ async function logoutWeb(params) {
96
96
  return false;
97
97
  }
98
98
  if (params.isLegacyAuthDir) await clearLegacyBaileysAuthState(resolvedAuthDir);
99
- else await fs$1.rm(resolvedAuthDir, {
99
+ else await fs.rm(resolvedAuthDir, {
100
100
  recursive: true,
101
101
  force: true
102
102
  });
@@ -106,11 +106,11 @@ async function logoutWeb(params) {
106
106
  function readWebSelfId(authDir = resolveDefaultWebAuthDir()) {
107
107
  try {
108
108
  const credsPath = resolveWebCredsPath(resolveUserPath(authDir));
109
- if (!fs.existsSync(credsPath)) return {
109
+ if (!fsSync.existsSync(credsPath)) return {
110
110
  e164: null,
111
111
  jid: null
112
112
  };
113
- const raw = fs.readFileSync(credsPath, "utf-8");
113
+ const raw = fsSync.readFileSync(credsPath, "utf-8");
114
114
  const jid = JSON.parse(raw)?.me?.id ?? null;
115
115
  return {
116
116
  e164: jid ? jidToE164(jid, { authDir }) : null,
@@ -129,7 +129,7 @@ function readWebSelfId(authDir = resolveDefaultWebAuthDir()) {
129
129
  */
130
130
  function getWebAuthAgeMs(authDir = resolveDefaultWebAuthDir()) {
131
131
  try {
132
- const stats = fs.statSync(resolveWebCredsPath(resolveUserPath(authDir)));
132
+ const stats = fsSync.statSync(resolveWebCredsPath(resolveUserPath(authDir)));
133
133
  return Date.now() - stats.mtimeMs;
134
134
  } catch {
135
135
  return null;
@@ -194,7 +194,7 @@ function listWhatsAppAuthDirs(cfg) {
194
194
  accountId
195
195
  }).authDir);
196
196
  try {
197
- const entries = fs.readdirSync(whatsappDir, { withFileTypes: true });
197
+ const entries = fsSync.readdirSync(whatsappDir, { withFileTypes: true });
198
198
  for (const entry of entries) {
199
199
  if (!entry.isDirectory()) continue;
200
200
  authDirs.add(path.join(whatsappDir, entry.name));
@@ -216,7 +216,7 @@ function resolveLegacyAuthDir() {
216
216
  }
217
217
  function legacyAuthExists(authDir) {
218
218
  try {
219
- return fs.existsSync(path.join(authDir, "creds.json"));
219
+ return fsSync.existsSync(path.join(authDir, "creds.json"));
220
220
  } catch {
221
221
  return false;
222
222
  }
@@ -1,5 +1,5 @@
1
1
  import { f as normalizeAccountId } from "./session-key-mz5XTzKi.js";
2
- import { r as createAccountListHelpers } from "./accounts-MiOVcsni.js";
2
+ import { r as createAccountListHelpers } from "./accounts-DRLU2Il7.js";
3
3
  import { t as resolveAccountEntry } from "./account-lookup-C0ndrpt-.js";
4
4
 
5
5
  //#region src/signal/accounts.ts
@@ -8,8 +8,8 @@ import "./env-O1qys0Yl.js";
8
8
  import "./host-env-security-CJMD0__Z.js";
9
9
  import "./ip-CPfpVqH_.js";
10
10
  import { r as VERSION } from "./env-vars-CIYxLH7a.js";
11
- import { t as GatewayClient } from "./client-CKDI-QrF.js";
12
- import { t as buildGatewayConnectionDetails } from "./call-DBeWHgQe.js";
11
+ import { t as GatewayClient } from "./client-BwMSjsHK.js";
12
+ import { t as buildGatewayConnectionDetails } from "./call-BfdxmHkH.js";
13
13
  import { t as resolveGatewayCredentialsFromConfig } from "./credentials-yZrNz8pC.js";
14
14
  import "./net-DGW2XKNq.js";
15
15
  import "./logger-Q2ni4D5p.js";
@@ -6,8 +6,8 @@ import { t as VERSION } from "./version-CQio0YKD.js";
6
6
  import "./env-vars-lo144SD0.js";
7
7
  import "./agent-scope-DVOTiq3T.js";
8
8
  import { f as GATEWAY_CLIENT_MODES, p as GATEWAY_CLIENT_NAMES } from "./message-channel-BHrK-j5D.js";
9
- import { t as GatewayClient } from "./client-CbOR97YL.js";
10
- import { t as buildGatewayConnectionDetails } from "./call-CN1qXA9V.js";
9
+ import { t as GatewayClient } from "./client-rhHFI_3y.js";
10
+ import { t as buildGatewayConnectionDetails } from "./call-DGVTr9Yi.js";
11
11
  import { t as resolveGatewayCredentialsFromConfig } from "./credentials-DPRI4PMC.js";
12
12
  import "./net-C8zcYejg.js";
13
13
  import "./logger-CMJ1nP44.js";
@@ -1,5 +1,5 @@
1
1
  import { d as DEFAULT_ACCOUNT_ID } from "./session-key-mz5XTzKi.js";
2
- import { n as formatCliCommand } from "./env-D1RbxWjD.js";
2
+ import { n as formatCliCommand } from "./env-Da8bZru0.js";
3
3
 
4
4
  //#region src/web/active-listener.ts
5
5
  const listeners = /* @__PURE__ */ new Map();