openclaw-multi-auto 1.4.4 → 1.4.6

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 (315) hide show
  1. package/dist/{accounts-BVgYdU9W.js → accounts-BtEMxtPK.js} +1 -1
  2. package/dist/{accounts-BU-CeDai.js → accounts-CUYZBSKh.js} +1 -1
  3. package/dist/{accounts-DJaYqD2E.js → accounts-khXX75l1.js} +7 -7
  4. package/dist/{acp-cli-oWFHnS7i.js → acp-cli-CA2oCCEA.js} +8 -8
  5. package/dist/{agent-scope-BRElciAf.js → agent-scope-NQ9CtXYN.js} +17 -17
  6. package/dist/{agents-CujsWz9d.js → agents-BWVlofyv.js} +14 -14
  7. package/dist/{agents.config-C42STger.js → agents.config-QVfqc4C-.js} +2 -2
  8. package/dist/{api-key-rotation-BbuLHl0_.js → api-key-rotation-Vix80AUw.js} +1 -1
  9. package/dist/{audio-preflight-Yg1vzPE1.js → audio-preflight-DUtdCXjJ.js} +34 -34
  10. package/dist/{audio-transcription-runner-D1cvrZ6s.js → audio-transcription-runner-DYKvqK54.js} +23 -23
  11. package/dist/{audit-DtlAv66L.js → audit-oC--RZy0.js} +29 -29
  12. package/dist/{auth-Mj21c_GN.js → auth-YB6m93-M.js} +1 -1
  13. package/dist/{auth-choice-CEycltU4.js → auth-choice-CsSQLEkP.js} +13 -13
  14. package/dist/{auth-choice-CGHVedXa.js → auth-choice-gp-h1aBd.js} +11 -11
  15. package/dist/{auth-choice.apply-helpers-D4YQXYfc.js → auth-choice.apply-helpers-CPpuynsT.js} +1 -1
  16. package/dist/{auth-profiles-CdLTlJLc.js → auth-profiles-15pq9j9V.js} +16 -16
  17. package/dist/{auth-token-7kzDLVhb.js → auth-token-Bwn8N6KA.js} +1 -1
  18. package/dist/{banner-CpzKVd4-.js → banner-hcZ0XNXv.js} +2 -2
  19. package/dist/{bonjour-discovery-BuS9wF_p.js → bonjour-discovery-2btw06uD.js} +1 -1
  20. package/dist/{browser-cli-BVtbvQ3Z.js → browser-cli-C4PdLYHy.js} +12 -12
  21. package/dist/build-info.json +3 -3
  22. package/dist/{call-Dp9SDkqK.js → call-CZgRbVYm.js} +10 -10
  23. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  24. package/dist/{channel-account-context-ESLVGdUf.js → channel-account-context-BYiOuxnf.js} +5 -5
  25. package/dist/{channel-activity-LfmEkdDN.js → channel-activity-D9K6yeu8.js} +1 -1
  26. package/dist/{channel-options-CsYaFB_4.js → channel-options-DJkf_8wi.js} +3 -3
  27. package/dist/{channel-selection-DFJsYFPo.js → channel-selection-BpIsCVV5.js} +1 -1
  28. package/dist/{channel-web-DzRsJEE4.js → channel-web-wb1My1Yi.js} +17 -17
  29. package/dist/{channels-cli-CpfeOXtJ.js → channels-cli-DlQONtY9.js} +93 -93
  30. package/dist/{channels-status-issues-6V9ktlZD.js → channels-status-issues-Hj-GOSVm.js} +1 -1
  31. package/dist/{chrome-CyM61Cn2.js → chrome-L_icBVLq.js} +4 -4
  32. package/dist/{clawbot-cli-COtnakIJ.js → clawbot-cli-CyTZUVIJ.js} +11 -11
  33. package/dist/cli/daemon-cli.js +1 -1
  34. package/dist/{cli-jnT1hYPO.js → cli-CNTrB-ni.js} +73 -73
  35. package/dist/{client-C-wA75vx.js → client-g0366Z73.js} +2 -2
  36. package/dist/{command-registry-g5tDqdAU.js → command-registry-VOmumlmD.js} +11 -11
  37. package/dist/{command-secret-targets-u3eWn-W3.js → command-secret-targets-CIMuIdbL.js} +4 -4
  38. package/dist/{commands-C8pWcFs_.js → commands-DU7At3rY.js} +1 -1
  39. package/dist/{commands-registry-J6nVL3BQ.js → commands-registry-B_WUa9KB.js} +3 -3
  40. package/dist/{completion-cli-DQsyli3B.js → completion-cli-pqdmKVTo.js} +13 -13
  41. package/dist/{config-cli-DUycVHoC.js → config-cli-BqznmzlM.js} +7 -7
  42. package/dist/{config-guard--Obk2MGi.js → config-guard-D8jiLjr7.js} +3 -3
  43. package/dist/{config-validation-iOxszdEd.js → config-validation-BngLiGoq.js} +3 -3
  44. package/dist/{configure-Al_pz_5z.js → configure-B--Umf_O.js} +17 -17
  45. package/dist/{control-ui-assets-DpjfNcTC.js → control-ui-assets-C9ewbI8z.js} +1 -1
  46. package/dist/{cron-cli-CQ5EZw_b.js → cron-cli-DCRPpI1m.js} +11 -11
  47. package/dist/{daemon-cli-Bb80Mzv5.js → daemon-cli-DtBzKM_d.js} +15 -15
  48. package/dist/{daemon-install-B09ifLcJ.js → daemon-install-ckPBUAjJ.js} +4 -4
  49. package/dist/{daemon-install-helpers-CYpECiEx.js → daemon-install-helpers-BWf-PrgA.js} +11 -11
  50. package/dist/{deliver-CxF9h9PE.js → deliver-b93aBgie.js} +7 -7
  51. package/dist/deliver-runtime-CdWd-JQI.js +61 -0
  52. package/dist/deps-send-discord.runtime-BltWu9GW.js +36 -0
  53. package/dist/deps-send-imessage.runtime-CdCif3t7.js +35 -0
  54. package/dist/deps-send-signal.runtime-fHqkSmMW.js +34 -0
  55. package/dist/deps-send-slack.runtime-CkyZO7ln.js +32 -0
  56. package/dist/{deps-send-telegram.runtime-B6wp3kx8.js → deps-send-telegram.runtime-C--B69CN.js} +16 -16
  57. package/dist/deps-send-whatsapp.runtime-BkoMLlCM.js +119 -0
  58. package/dist/{devices-cli-C0dUbeL4.js → devices-cli-D6V059Dh.js} +8 -8
  59. package/dist/{diagnostic-BfiudAAN.js → diagnostic-BpP9UBCE.js} +1 -1
  60. package/dist/{diagnostics-DCWM_8Ur.js → diagnostics---0c2_jo.js} +5 -5
  61. package/dist/{directory-cli-Dlws13Di.js → directory-cli-RYC34-EU.js} +7 -7
  62. package/dist/{dns-cli-But7QdAw.js → dns-cli-CElNoV5S.js} +5 -5
  63. package/dist/{dock-BbUkruOF.js → dock-nA2DVPCV.js} +4 -4
  64. package/dist/{docs-cli-Ck2IKAtw.js → docs-cli-Bv7ltPvi.js} +4 -4
  65. package/dist/{doctor-completion-Nat1HXE1.js → doctor-completion-CQIiN7rY.js} +2 -2
  66. package/dist/{doctor-config-flow-WCCoUXeB.js → doctor-config-flow-BOAryh5P.js} +15 -15
  67. package/dist/{enable-C3H8BtN4.js → enable-688HYBNS.js} +1 -1
  68. package/dist/entry.js +2 -2
  69. package/dist/{exec-approvals-allowlist-ySf2Yo5n.js → exec-approvals-allowlist-C0Eya3rT.js} +1 -1
  70. package/dist/{exec-approvals-cli-DhLLOys6.js → exec-approvals-cli-BYYerKp8.js} +16 -16
  71. package/dist/{exec-safe-bin-runtime-policy-DnXViOlF.js → exec-safe-bin-runtime-policy-BmJmfDRo.js} +2 -2
  72. package/dist/{fetch-D-SiVqBm.js → fetch-BhAHVdwx.js} +3 -3
  73. package/dist/{fetch-guard-CKYBfJ66.js → fetch-guard-BbBdhWz_.js} +1 -1
  74. package/dist/{fs-safe-jMDpsYew.js → fs-safe-CFLs-j60.js} +24 -24
  75. package/dist/{gateway-cli--atF6LYo.js → gateway-cli-DOYWSRqa.js} +153 -153
  76. package/dist/{gateway-rpc-DYyQQ1z9.js → gateway-rpc-w6t8Eq_1.js} +1 -1
  77. package/dist/{health-BDJ72U4Z.js → health-C1EstYHd.js} +11 -11
  78. package/dist/{hooks-cli-r0UX8B9a.js → hooks-cli-BFMve5sG.js} +81 -81
  79. package/dist/{hooks-status-CxBdpBry.js → hooks-status-DBnEWOEP.js} +1 -1
  80. package/dist/{image-CyHTO86Q.js → image-Bw71y73Q.js} +5 -5
  81. package/dist/{image-ops-pjs5W0CZ.js → image-ops-AJL9tN3_.js} +10 -10
  82. package/dist/image-runtime-6jhrqcle.js +55 -0
  83. package/dist/{inspect-BeU4yMp2.js → inspect-CUxeDA8c.js} +4 -4
  84. package/dist/{install-safe-path-BiL8OJvK.js → install-safe-path-BX58wFBl.js} +25 -25
  85. package/dist/{installs-BwKmG0Uy.js → installs-B-xr0Fzq.js} +9 -9
  86. package/dist/{ipv4-BoGwfnEw.js → ipv4-C4Yt-xid.js} +1 -1
  87. package/dist/{ir-Da7Ahsqc.js → ir-otKVkb4a.js} +8 -8
  88. package/dist/{issue-format-CJ89_-9v.js → issue-format-DSksfKiV.js} +1 -1
  89. package/dist/{json-files-CuJjdF_0.js → json-files-rR19q30D.js} +8 -8
  90. package/dist/{lifecycle-core-BzuWBBm8.js → lifecycle-core-DVwen0ks.js} +5 -5
  91. package/dist/{login-VkQ9MW3d.js → login-BcRaGQb6.js} +3 -3
  92. package/dist/{login-qr-BVMQ-xQz.js → login-qr-C9D47WEZ.js} +6 -6
  93. package/dist/{logs-cli-DWHhSnWs.js → logs-cli-B3TG2lp8.js} +9 -9
  94. package/dist/{manager-BUBwl6M6.js → manager-iwcRf3Xc.js} +14 -14
  95. package/dist/{manager-runtime-H9iQnw64.js → manager-runtime-D3KqpRT7.js} +9 -9
  96. package/dist/{manifest-registry-DVviqWVY.js → manifest-registry-CJb8odRF.js} +1 -1
  97. package/dist/{memory-cli-DarWCbU6.js → memory-cli-DGsJx7YM.js} +12 -12
  98. package/dist/{model-BLV8y_N-.js → model-B792l3Cn.js} +2 -2
  99. package/dist/{model-catalog-DTcBkUlX.js → model-catalog-DZ6kl2Ko.js} +3 -3
  100. package/dist/{model-picker-D-fTOOzb.js → model-picker-6fHys0wK.js} +4 -4
  101. package/dist/{models-CmjutMmh.js → models-DerrMmwF.js} +17 -17
  102. package/dist/{models-cli-BZFQX22p.js → models-cli-BkTZg_4v.js} +78 -78
  103. package/dist/{models-config-DNcDbV_G.js → models-config-Dabs9Kdv.js} +6 -6
  104. package/dist/{net-D5fSREu4.js → net-BAIqYNz0.js} +2 -2
  105. package/dist/{node-cli-Cnq-PJTp.js → node-cli-DoEq4zeG.js} +33 -33
  106. package/dist/{node-command-policy-B5BMBBJP.js → node-command-policy-DRhSc90G.js} +1 -1
  107. package/dist/{node-service-BpYZAvpl.js → node-service-CcgtNIeT.js} +1 -1
  108. package/dist/{nodes-cli-CkrDOWpv.js → nodes-cli--d9RiCnK.js} +16 -16
  109. package/dist/{nodes-screen-DfsQohWd.js → nodes-screen-BTND5VDq.js} +7 -7
  110. package/dist/{npm-pack-install-E-mkrZ55.js → npm-pack-install-CGUDOSKz.js} +18 -18
  111. package/dist/{npm-resolution-BUUmg5ON.js → npm-resolution-CAoULCWM.js} +4 -4
  112. package/dist/{onboard-DINGSS9R.js → onboard-CMZRkPVc.js} +6 -6
  113. package/dist/{onboard-channels-Di4MjWDY.js → onboard-channels-SlJu6XWJ.js} +21 -21
  114. package/dist/{onboard-custom-DITBQuWQ.js → onboard-custom-EzfL89yz.js} +4 -4
  115. package/dist/{onboard-helpers-DO7u2ZOy.js → onboard-helpers-lGpaVp03.js} +10 -10
  116. package/dist/{onboard-hooks-K02_ZWDq.js → onboard-hooks-B7TMiJoY.js} +4 -4
  117. package/dist/{onboard-remote-5-ugiSN2.js → onboard-remote-nvWS7on7.js} +4 -4
  118. package/dist/{onboard-skills-CSzbC2KZ.js → onboard-skills-hz91W03u.js} +4 -4
  119. package/dist/{onboarding-BM4dvUK6.js → onboarding-CTPuMVQI.js} +14 -14
  120. package/dist/{onboarding.finalize-p_RDh7ET.js → onboarding.finalize-DLzl5ZOg.js} +87 -87
  121. package/dist/{onboarding.gateway-config-DldlRfms.js → onboarding.gateway-config-C4MoTr60.js} +18 -18
  122. package/dist/{onboarding.secret-input-BIRIJiCU.js → onboarding.secret-input-BFD0OW4X.js} +1 -1
  123. package/dist/{openai-model-default-CY2Nk4cn.js → openai-model-default-h4LbSR7f.js} +2 -2
  124. package/dist/{openclaw-root-BFfBQ6FD.js → openclaw-root-BU3lu8pM.js} +8 -8
  125. package/dist/{outbound-attachment-DfWsfe2N.js → outbound-attachment-CAJBGcna.js} +2 -2
  126. package/dist/{outbound-DPdJe7e1.js → outbound-kbHYt1JW.js} +3 -3
  127. package/dist/{pairing-cli-D2VZxWg3.js → pairing-cli-CXbmkz7Z.js} +8 -8
  128. package/dist/{pairing-labels-D4rnJ5pJ.js → pairing-labels-CaPLIhlh.js} +1 -1
  129. package/dist/{pairing-store-BXArq4hn.js → pairing-store-Brs9aNn_.js} +3 -3
  130. package/dist/{path-alias-guards-DbNvNQar.js → path-alias-guards-DhIwq92y.js} +3 -3
  131. package/dist/{path-safety-ClQO4BB6.js → path-safety-BjIM4N4t.js} +1 -1
  132. package/dist/{paths-BB_1ZWOj.js → paths-Cv63xST_.js} +9 -9
  133. package/dist/{pi-embedded-helpers-oXDyXTD8.js → pi-embedded-helpers-DC2OtKrl.js} +6 -6
  134. package/dist/{pi-model-discovery-CECkJMCt.js → pi-model-discovery-DOb5RTev.js} +1 -1
  135. package/dist/{pi-model-discovery-runtime-g7UP-SFR.js → pi-model-discovery-runtime-DShjmiiF.js} +5 -5
  136. package/dist/{pi-tools.before-tool-call.runtime-Df7B-ggW.js → pi-tools.before-tool-call.runtime-B079pVah.js} +5 -5
  137. package/dist/{pi-tools.policy-CydUEzFi.js → pi-tools.policy-DZ-X86Va.js} +5 -5
  138. package/dist/{plugin-auto-enable-BE4ZVjAL.js → plugin-auto-enable-BCMqEDjQ.js} +3 -3
  139. package/dist/{plugin-registry-DXW3eyib.js → plugin-registry-BPlCWMur.js} +3 -3
  140. package/dist/plugin-sdk/index.js +50 -50
  141. package/dist/{plugins-VAZrrfgw.js → plugins-DCxT-37x.js} +2 -2
  142. package/dist/{plugins-cli-BQJOOVMx.js → plugins-cli-D9ILEfyb.js} +83 -83
  143. package/dist/{ports-DMkRSlnH.js → ports-BlCLhwbc.js} +1 -1
  144. package/dist/{ports-DogAV7pa.js → ports-CER5YPnN.js} +2 -2
  145. package/dist/{program-BA11qFx1.js → program-CV56xn7w.js} +81 -81
  146. package/dist/{prompt-select-styled-B0GS28ia.js → prompt-select-styled-BOa5I_PU.js} +40 -40
  147. package/dist/{provider-auth-helpers-CrGL-jik.js → provider-auth-helpers-c6mNCUXO.js} +5 -5
  148. package/dist/{proxy-env-wKO3g8Yv.js → proxy-env-BMrSVckF.js} +1 -1
  149. package/dist/{push-apns-BEwBjZ0a.js → push-apns-FOkPD05E.js} +5 -5
  150. package/dist/{pw-ai-CnbxziFP.js → pw-ai-CxBU3aK5.js} +18 -18
  151. package/dist/{qmd-manager-Dp6PJ8zQ.js → qmd-manager-DEJMqoGd.js} +20 -20
  152. package/dist/{qr-cli-CFz9kS5X.js → qr-cli-BD2jK4fg.js} +2 -2
  153. package/dist/{query-expansion-BrSWVbaE.js → query-expansion-1UTIWjP6.js} +12 -12
  154. package/dist/{redact-snapshot-Bs4goggz.js → redact-snapshot-D_qQD4A-.js} +1 -1
  155. package/dist/{register.agent-D641ju8B.js → register.agent-tbPA5YAy.js} +94 -94
  156. package/dist/register.configure-DuwRrXc2.js +165 -0
  157. package/dist/{register.maintenance-BFkk8MEH.js → register.maintenance-DrqDlV5b.js} +95 -95
  158. package/dist/{register.message-D5uE_Hop.js → register.message-CoKXNaU0.js} +74 -74
  159. package/dist/{register.onboard-zHFvSwFr.js → register.onboard-CSWOSL9O.js} +18 -18
  160. package/dist/{register.setup-uTbv3_P1.js → register.setup-DBx5JX6h.js} +21 -21
  161. package/dist/{register.status-health-sessions-CB7t-JQx.js → register.status-health-sessions-D1bPtfep.js} +88 -88
  162. package/dist/{register.subclis-MEiNmuy5.js → register.subclis-QGJNmjss.js} +31 -31
  163. package/dist/{rpc-DVfuVmy9.js → rpc-DkMrTUww.js} +1 -1
  164. package/dist/{run-main-mrvunzuy.js → run-main-CPftxqTe.js} +92 -92
  165. package/dist/{runtime-C87FQrrv.js → runtime-MAH2Oph4.js} +3 -3
  166. package/dist/{runtime-config-collectors-BQaC477D.js → runtime-config-collectors-BJMV6Mt1.js} +1 -1
  167. package/dist/{runtime-whatsapp-login.runtime-DjdgScUI.js → runtime-whatsapp-login.runtime-CGYWl9eB.js} +7 -7
  168. package/dist/{runtime-whatsapp-outbound.runtime-B74K7opl.js → runtime-whatsapp-outbound.runtime-hZEfYaRM.js} +15 -15
  169. package/dist/{sandbox-Ct-_lzi1.js → sandbox-0TbzPJaS.js} +18 -18
  170. package/dist/{sandbox-cli-C3RoXFRE.js → sandbox-cli-NLaxffXl.js} +25 -25
  171. package/dist/{secrets-cli-B3hqCxvs.js → secrets-cli-KLGbYet6.js} +11 -11
  172. package/dist/{security-cli-DcHIyXr7.js → security-cli-EIEkcYVb.js} +42 -42
  173. package/dist/{send-CnRP4P-G.js → send-BW-ZtYG3.js} +5 -5
  174. package/dist/{send-2zKwf9NW.js → send-BtZAqquW.js} +11 -11
  175. package/dist/{send-DAQAKa9Z.js → send-CxgWxXZc.js} +6 -6
  176. package/dist/{send-5o2p_xjn.js → send-DAMtu9kK.js} +4 -4
  177. package/dist/{send-u1Bo4CSn.js → send-sC6ka831.js} +8 -8
  178. package/dist/{server-context-8pDe2iyd.js → server-context-HJVwPQYn.js} +12 -12
  179. package/dist/{server-Ci4xtuR9.js → server-kUElNhlY.js} +20 -20
  180. package/dist/{server-lifecycle-k5daSrde.js → server-lifecycle-BE32unpZ.js} +2 -2
  181. package/dist/{server-middleware-DMiFT9xU.js → server-middleware-AS2VOYkK.js} +1 -1
  182. package/dist/{server-node-events-BmnPjNXE.js → server-node-events-DkbZzI6P.js} +74 -74
  183. package/dist/{service-BhOFtHSw.js → service-CyStNr3d.js} +15 -15
  184. package/dist/{session-DkOjpX3_.js → session-CaCx4rPH.js} +1 -1
  185. package/dist/{session-utils-DKRmXD2l.js → session-utils-CGqb1oeq.js} +6 -6
  186. package/dist/{sessions-svLGrv0Z.js → sessions-BV6HNW4h.js} +4 -4
  187. package/dist/{sessions-BOWPuhe5.js → sessions-BmVDW-7q.js} +15 -15
  188. package/dist/{shared-CjuadLFV.js → shared-DUQavBtY.js} +3 -3
  189. package/dist/{shared-CbAkLNrg.js → shared-JW74idb0.js} +1 -1
  190. package/dist/{skill-commands-TpUsdjev.js → skill-commands-WtIJG0CI.js} +5 -5
  191. package/dist/{skill-scanner-BZvvItef.js → skill-scanner-DIFsGcqE.js} +6 -6
  192. package/dist/{skills-DR-vacol.js → skills-7T9PwwL6.js} +3 -3
  193. package/dist/{skills-cli-oay0tY8Z.js → skills-cli-DPavvthL.js} +5 -5
  194. package/dist/{skills-install-Vmi7xYfa.js → skills-install-BoLfaoWv.js} +6 -6
  195. package/dist/{skills-status-BmN697ff.js → skills-status-CK5Gnf6i.js} +1 -1
  196. package/dist/{slash-commands.runtime-BfaheruW.js → slash-commands.runtime-CMGx2xHy.js} +11 -11
  197. package/dist/slash-dispatch.runtime-BAeJXa56.js +114 -0
  198. package/dist/{slash-skill-commands.runtime-D34BKAN-.js → slash-skill-commands.runtime-ChU2tck2.js} +15 -15
  199. package/dist/{status-BcQchPaC.js → status-Bp-K1BEf.js} +27 -27
  200. package/dist/{status.update-B20UBTDq.js → status.update-ZYUSggzS.js} +2 -2
  201. package/dist/{store-DDkqo1sO.js → store-DeASfYEV.js} +5 -5
  202. package/dist/{subagent-registry-CPxHbyN5.js → subagent-registry-8qHIVhRq.js} +149 -149
  203. package/dist/subagent-registry-runtime-DVomlbm6.js +114 -0
  204. package/dist/{system-cli-D2yIJoKU.js → system-cli-C2xNfuQM.js} +9 -9
  205. package/dist/{system-run-command-BmhbnLTE.js → system-run-command-BPWZk7KI.js} +1 -1
  206. package/dist/{systemd-DjWVSbAG.js → systemd-Cf-0XKYu.js} +9 -9
  207. package/dist/{systemd-hints-Do-aQ9jw.js → systemd-hints-CYllYKO0.js} +6 -6
  208. package/dist/{systemd-linger-DpmnYgKU.js → systemd-linger-zllO90bD.js} +1 -1
  209. package/dist/{tables-BxyIF0w4.js → tables-CV7Afb0h.js} +1 -1
  210. package/dist/{tailnet-0_FsdHP-.js → tailnet-DJFUq7_R.js} +1 -1
  211. package/dist/{plugin-sdk/target-errors-Blia4S69.js → target-errors-iVxliVqA.js} +4 -4
  212. package/dist/{tool-images-CNPfeCmU.js → tool-images-Bn6dB14u.js} +1 -1
  213. package/dist/{tui-DL6NZZEa.js → tui-DTVy-YhN.js} +6 -6
  214. package/dist/{tui-cli-BNAYhvpu.js → tui-cli-CexRLJ3a.js} +32 -32
  215. package/dist/{update-DlS-d52F.js → update-DijPxK0g.js} +3 -3
  216. package/dist/{update-cli-D8-DqIs2.js → update-cli-9NslG4yR.js} +104 -104
  217. package/dist/{update-runner-CzTQ7BJT.js → update-runner-B6_UqreW.js} +16 -16
  218. package/dist/web-DGoa03ue.js +118 -0
  219. package/dist/{webhooks-cli-QdaQhvbT.js → webhooks-cli-B4ZcXTtw.js} +6 -6
  220. package/dist/{whatsapp-actions-Bp8F0cOF.js → whatsapp-actions-Jm4VW1Ve.js} +17 -17
  221. package/dist/{with-timeout-BMMWHlH3.js → with-timeout-C8-tY12i.js} +3 -3
  222. package/dist/{workspace-v76gFdZu.js → workspace-CIGzK2_w.js} +1 -1
  223. package/dist/{workspace-dirs-Cz_Zgtg2.js → workspace-dirs-D4SMysgC.js} +1 -1
  224. package/dist/{wsl-CvQfS6aU.js → wsl-CsGe5QCP.js} +2 -2
  225. package/extensions/googlechat/node_modules/.bin/openclaw +2 -2
  226. package/extensions/memory-core/node_modules/.bin/openclaw +2 -2
  227. package/package.json +1 -1
  228. package/scripts/create-instance.sh +1 -1
  229. package/scripts/install-maca.sh +78 -87
  230. package/dist/deliver-runtime-DixuU_uB.js +0 -61
  231. package/dist/deps-send-discord.runtime-CDcLcDSt.js +0 -36
  232. package/dist/deps-send-imessage.runtime-BGPUVMIE.js +0 -35
  233. package/dist/deps-send-signal.runtime-DQDD44_O.js +0 -34
  234. package/dist/deps-send-slack.runtime-Cpy77gBG.js +0 -32
  235. package/dist/deps-send-whatsapp.runtime-D2sVAclS.js +0 -119
  236. package/dist/image-runtime-B2qh5seQ.js +0 -55
  237. package/dist/plugin-sdk/accounts-CJWOBzwB.js +0 -35
  238. package/dist/plugin-sdk/accounts-DP1-L-QS.js +0 -288
  239. package/dist/plugin-sdk/accounts-DZhWlEg3.js +0 -46
  240. package/dist/plugin-sdk/active-listener-B_sLJTXM.js +0 -50
  241. package/dist/plugin-sdk/api-key-rotation-BRE4X2tf.js +0 -181
  242. package/dist/plugin-sdk/audio-preflight-DGEUDxxR.js +0 -69
  243. package/dist/plugin-sdk/audio-transcription-runner-DkoPNPYt.js +0 -2176
  244. package/dist/plugin-sdk/audit-membership-runtime-DSBHHw7o.js +0 -58
  245. package/dist/plugin-sdk/channel-activity-F3d0yUwy.js +0 -94
  246. package/dist/plugin-sdk/channel-web-QF7EpjeP.js +0 -2256
  247. package/dist/plugin-sdk/chrome-BXoCyCkY.js +0 -2415
  248. package/dist/plugin-sdk/commands-registry-t7cXBTfN.js +0 -1125
  249. package/dist/plugin-sdk/config-BkEnz2Po.js +0 -17913
  250. package/dist/plugin-sdk/deliver-B6AG_l67.js +0 -1694
  251. package/dist/plugin-sdk/deliver-runtime-D585kJZc.js +0 -32
  252. package/dist/plugin-sdk/deps-send-discord.runtime-a_OKY2js.js +0 -23
  253. package/dist/plugin-sdk/deps-send-imessage.runtime-Baxy9TD4.js +0 -22
  254. package/dist/plugin-sdk/deps-send-signal.runtime-BwXoCrFl.js +0 -21
  255. package/dist/plugin-sdk/deps-send-slack.runtime-CLmKjgso.js +0 -19
  256. package/dist/plugin-sdk/deps-send-telegram.runtime-BKfdBKnZ.js +0 -24
  257. package/dist/plugin-sdk/deps-send-whatsapp.runtime-BOTwkbx_.js +0 -57
  258. package/dist/plugin-sdk/diagnostic-CsP-lEkI.js +0 -319
  259. package/dist/plugin-sdk/errors-DaiAM-yU.js +0 -54
  260. package/dist/plugin-sdk/fetch-guard-DETCcJzQ.js +0 -156
  261. package/dist/plugin-sdk/fs-safe-B8y811FR.js +0 -352
  262. package/dist/plugin-sdk/image-DjTEkYZE.js +0 -2310
  263. package/dist/plugin-sdk/image-ops-BSiMpAw4.js +0 -584
  264. package/dist/plugin-sdk/image-runtime-6xPp8m5a.js +0 -25
  265. package/dist/plugin-sdk/ir-DQ7_HbvK.js +0 -1296
  266. package/dist/plugin-sdk/local-roots-BUP4YBmR.js +0 -186
  267. package/dist/plugin-sdk/logger-CZY9KIoY.js +0 -1163
  268. package/dist/plugin-sdk/login-BxEKLlCo.js +0 -57
  269. package/dist/plugin-sdk/login-qr-BQIpMPr9.js +0 -320
  270. package/dist/plugin-sdk/manager-I6KbPihW.js +0 -3917
  271. package/dist/plugin-sdk/manager-runtime-CFfYYWIQ.js +0 -15
  272. package/dist/plugin-sdk/outbound-NS6UHnB6.js +0 -212
  273. package/dist/plugin-sdk/outbound-attachment-Dy6fyf6H.js +0 -19
  274. package/dist/plugin-sdk/path-alias-guards-DBjLbIX_.js +0 -43
  275. package/dist/plugin-sdk/paths-vTM3Lh3X.js +0 -166
  276. package/dist/plugin-sdk/pi-embedded-helpers-1R1gu7eX.js +0 -9627
  277. package/dist/plugin-sdk/pi-model-discovery-runtime-Do9o-dUd.js +0 -8
  278. package/dist/plugin-sdk/pi-model-discovery-v-XPUOOf.js +0 -134
  279. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-D4sFsIks.js +0 -354
  280. package/dist/plugin-sdk/plugins-DeBZB9l_.js +0 -864
  281. package/dist/plugin-sdk/proxy-fetch-ChxOhWF4.js +0 -38
  282. package/dist/plugin-sdk/pw-ai-DEOmCSSC.js +0 -1938
  283. package/dist/plugin-sdk/qmd-manager-HyYKoEch.js +0 -1448
  284. package/dist/plugin-sdk/query-expansion-CeyKUeDW.js +0 -1011
  285. package/dist/plugin-sdk/redact-DjVX-1N3.js +0 -319
  286. package/dist/plugin-sdk/reply-DAo_Jt8K.js +0 -97916
  287. package/dist/plugin-sdk/resolve-outbound-target-B42qgQS9.js +0 -40
  288. package/dist/plugin-sdk/run-with-concurrency-Bt_ks0Qa.js +0 -1994
  289. package/dist/plugin-sdk/runtime-whatsapp-login.runtime-B6W989eF.js +0 -10
  290. package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-c_GDFy37.js +0 -19
  291. package/dist/plugin-sdk/send-CQpMudwO.js +0 -2587
  292. package/dist/plugin-sdk/send-DQHLzVyO.js +0 -414
  293. package/dist/plugin-sdk/send-DTB24bEF.js +0 -3135
  294. package/dist/plugin-sdk/send-DfHadjZ_.js +0 -503
  295. package/dist/plugin-sdk/send-XXlW2iny.js +0 -540
  296. package/dist/plugin-sdk/session-6TF6MyaC.js +0 -169
  297. package/dist/plugin-sdk/skill-commands-CkGeFUMl.js +0 -342
  298. package/dist/plugin-sdk/skills-CBkHBYPq.js +0 -1428
  299. package/dist/plugin-sdk/slash-commands.runtime-CxliuGaP.js +0 -13
  300. package/dist/plugin-sdk/slash-dispatch.runtime-DFaeYlJQ.js +0 -52
  301. package/dist/plugin-sdk/slash-skill-commands.runtime-0M0OLCxq.js +0 -16
  302. package/dist/plugin-sdk/ssrf-cFtplYtS.js +0 -202
  303. package/dist/plugin-sdk/store-5nyxY3WU.js +0 -81
  304. package/dist/plugin-sdk/subagent-registry-runtime-DCtmDwna.js +0 -52
  305. package/dist/plugin-sdk/tables-C47P4GTN.js +0 -55
  306. package/dist/plugin-sdk/thinking-Bo2eosVa.js +0 -1206
  307. package/dist/plugin-sdk/tokens-DgNRBwIg.js +0 -52
  308. package/dist/plugin-sdk/tool-images-Gk_-0y2N.js +0 -274
  309. package/dist/plugin-sdk/web-CVxZbXyH.js +0 -56
  310. package/dist/plugin-sdk/whatsapp-actions-Bw0H9g-n.js +0 -80
  311. package/dist/register.configure-BrDOSLIq.js +0 -165
  312. package/dist/slash-dispatch.runtime-D0xInkf3.js +0 -114
  313. package/dist/subagent-registry-runtime-SkB2tTaE.js +0 -114
  314. package/dist/target-errors-KOHiT_JA.js +0 -195
  315. package/dist/web-DWiOofzq.js +0 -118
@@ -1,55 +0,0 @@
1
- import "./globals-ENg_AXRt.js";
2
- import "./paths-BMo6kTge.js";
3
- import "./subsystem-BmoaLBy-.js";
4
- import "./boolean-DtWR5bt3.js";
5
- import "./auth-profiles-CdLTlJLc.js";
6
- import "./agent-scope-BRElciAf.js";
7
- import "./utils-6WlODK5w.js";
8
- import "./openclaw-root-BFfBQ6FD.js";
9
- import "./logger-9wCpWqHD.js";
10
- import "./exec-GR2kPVc1.js";
11
- import "./registry-C3qkO1RG.js";
12
- import "./github-copilot-token-Byc_YVYE.js";
13
- import "./host-env-security-lcjXF83D.js";
14
- import "./version-DdJhsIqk.js";
15
- import "./env-vars-mSSOl7Rv.js";
16
- import "./manifest-registry-DVviqWVY.js";
17
- import "./dock-BbUkruOF.js";
18
- import "./frontmatter-D2o8_Jfu.js";
19
- import "./skills-DR-vacol.js";
20
- import "./path-alias-guards-DbNvNQar.js";
21
- import "./message-channel-CIqYyQ36.js";
22
- import "./sessions-BOWPuhe5.js";
23
- import "./plugins-VAZrrfgw.js";
24
- import "./accounts-DJaYqD2E.js";
25
- import "./accounts-BU-CeDai.js";
26
- import "./logging-CcxUDNcI.js";
27
- import "./accounts-BVgYdU9W.js";
28
- import "./paths-DvFmz0MB.js";
29
- import "./chat-envelope-D3RSz140.js";
30
- import "./net-D5fSREu4.js";
31
- import "./tailnet-0_FsdHP-.js";
32
- import "./image-ops-pjs5W0CZ.js";
33
- import "./pi-embedded-helpers-oXDyXTD8.js";
34
- import "./sandbox-Ct-_lzi1.js";
35
- import "./tool-catalog-C04U7H3F.js";
36
- import "./chrome-CyM61Cn2.js";
37
- import "./tailscale-aXobtl7f.js";
38
- import "./auth-Mj21c_GN.js";
39
- import "./server-context-8pDe2iyd.js";
40
- import "./paths-BB_1ZWOj.js";
41
- import "./redact-TY4yJzrg.js";
42
- import "./errors-BbXSsOtF.js";
43
- import "./fs-safe-jMDpsYew.js";
44
- import "./proxy-env-wKO3g8Yv.js";
45
- import "./store-DDkqo1sO.js";
46
- import "./ports-DogAV7pa.js";
47
- import "./trash-C6zcuM95.js";
48
- import "./server-middleware-DMiFT9xU.js";
49
- import "./tool-images-CNPfeCmU.js";
50
- import "./thinking-CrcT589P.js";
51
- import "./models-config-DNcDbV_G.js";
52
- import { t as describeImageWithModel } from "./image-CyHTO86Q.js";
53
- import "./tool-display-CvlNC8XD.js";
54
-
55
- export { describeImageWithModel };
@@ -1,35 +0,0 @@
1
- import { ot as normalizeAccountId } from "./run-with-concurrency-Bt_ks0Qa.js";
2
- import { v as resolveAccountEntry, y as createAccountListHelpers } from "./accounts-DP1-L-QS.js";
3
-
4
- //#region src/imessage/accounts.ts
5
- const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("imessage");
6
- const listIMessageAccountIds = listAccountIds;
7
- const resolveDefaultIMessageAccountId = resolveDefaultAccountId;
8
- function resolveAccountConfig(cfg, accountId) {
9
- return resolveAccountEntry(cfg.channels?.imessage?.accounts, accountId);
10
- }
11
- function mergeIMessageAccountConfig(cfg, accountId) {
12
- const { accounts: _ignored, ...base } = cfg.channels?.imessage ?? {};
13
- const account = resolveAccountConfig(cfg, accountId) ?? {};
14
- return {
15
- ...base,
16
- ...account
17
- };
18
- }
19
- function resolveIMessageAccount(params) {
20
- const accountId = normalizeAccountId(params.accountId);
21
- const baseEnabled = params.cfg.channels?.imessage?.enabled !== false;
22
- const merged = mergeIMessageAccountConfig(params.cfg, accountId);
23
- const accountEnabled = merged.enabled !== false;
24
- const configured = Boolean(merged.cliPath?.trim() || merged.dbPath?.trim() || merged.service || merged.region?.trim() || merged.allowFrom && merged.allowFrom.length > 0 || merged.groupAllowFrom && merged.groupAllowFrom.length > 0 || merged.dmPolicy || merged.groupPolicy || typeof merged.includeAttachments === "boolean" || merged.attachmentRoots && merged.attachmentRoots.length > 0 || merged.remoteAttachmentRoots && merged.remoteAttachmentRoots.length > 0 || typeof merged.mediaMaxMb === "number" || typeof merged.textChunkLimit === "number" || merged.groups && Object.keys(merged.groups).length > 0);
25
- return {
26
- accountId,
27
- enabled: baseEnabled && accountEnabled,
28
- name: merged.name?.trim() || void 0,
29
- config: merged,
30
- configured
31
- };
32
- }
33
-
34
- //#endregion
35
- export { resolveDefaultIMessageAccountId as n, resolveIMessageAccount as r, listIMessageAccountIds as t };
@@ -1,288 +0,0 @@
1
- import { at as DEFAULT_ACCOUNT_ID, ot as normalizeAccountId, st as normalizeOptionalAccountId } from "./run-with-concurrency-Bt_ks0Qa.js";
2
- import { o as resolveOAuthDir } from "./paths-MKyEVmEb.js";
3
- import { Pr as formatCliCommand } from "./config-BkEnz2Po.js";
4
- import { B as success, E as resolveUserPath, G as getChildLogger, I as info, c as defaultRuntime, x as jidToE164 } from "./logger-CZY9KIoY.js";
5
- import fs from "node:fs";
6
- import path from "node:path";
7
- import fs$1 from "node:fs/promises";
8
-
9
- //#region src/channels/plugins/account-helpers.ts
10
- function createAccountListHelpers(channelKey) {
11
- function resolveConfiguredDefaultAccountId(cfg) {
12
- const channel = cfg.channels?.[channelKey];
13
- const preferred = normalizeOptionalAccountId(typeof channel?.defaultAccount === "string" ? channel.defaultAccount : void 0);
14
- if (!preferred) return;
15
- if (listAccountIds(cfg).some((id) => normalizeAccountId(id) === preferred)) return preferred;
16
- }
17
- function listConfiguredAccountIds(cfg) {
18
- const accounts = (cfg.channels?.[channelKey])?.accounts;
19
- if (!accounts || typeof accounts !== "object") return [];
20
- return Object.keys(accounts).filter(Boolean);
21
- }
22
- function listAccountIds(cfg) {
23
- const ids = listConfiguredAccountIds(cfg);
24
- if (ids.length === 0) return [DEFAULT_ACCOUNT_ID];
25
- return ids.toSorted((a, b) => a.localeCompare(b));
26
- }
27
- function resolveDefaultAccountId(cfg) {
28
- const preferred = resolveConfiguredDefaultAccountId(cfg);
29
- if (preferred) return preferred;
30
- const ids = listAccountIds(cfg);
31
- if (ids.includes(DEFAULT_ACCOUNT_ID)) return DEFAULT_ACCOUNT_ID;
32
- return ids[0] ?? DEFAULT_ACCOUNT_ID;
33
- }
34
- return {
35
- listConfiguredAccountIds,
36
- listAccountIds,
37
- resolveDefaultAccountId
38
- };
39
- }
40
-
41
- //#endregion
42
- //#region src/routing/account-lookup.ts
43
- function resolveAccountEntry(accounts, accountId) {
44
- if (!accounts || typeof accounts !== "object") return;
45
- if (Object.hasOwn(accounts, accountId)) return accounts[accountId];
46
- const normalized = accountId.toLowerCase();
47
- const matchKey = Object.keys(accounts).find((key) => key.toLowerCase() === normalized);
48
- return matchKey ? accounts[matchKey] : void 0;
49
- }
50
-
51
- //#endregion
52
- //#region src/web/auth-store.ts
53
- function resolveDefaultWebAuthDir() {
54
- return path.join(resolveOAuthDir(), "whatsapp", DEFAULT_ACCOUNT_ID);
55
- }
56
- const WA_WEB_AUTH_DIR = resolveDefaultWebAuthDir();
57
- function resolveWebCredsPath(authDir) {
58
- return path.join(authDir, "creds.json");
59
- }
60
- function resolveWebCredsBackupPath(authDir) {
61
- return path.join(authDir, "creds.json.bak");
62
- }
63
- function hasWebCredsSync(authDir) {
64
- try {
65
- const stats = fs.statSync(resolveWebCredsPath(authDir));
66
- return stats.isFile() && stats.size > 1;
67
- } catch {
68
- return false;
69
- }
70
- }
71
- function readCredsJsonRaw(filePath) {
72
- try {
73
- if (!fs.existsSync(filePath)) return null;
74
- const stats = fs.statSync(filePath);
75
- if (!stats.isFile() || stats.size <= 1) return null;
76
- return fs.readFileSync(filePath, "utf-8");
77
- } catch {
78
- return null;
79
- }
80
- }
81
- function maybeRestoreCredsFromBackup(authDir) {
82
- const logger = getChildLogger({ module: "web-session" });
83
- try {
84
- const credsPath = resolveWebCredsPath(authDir);
85
- const backupPath = resolveWebCredsBackupPath(authDir);
86
- const raw = readCredsJsonRaw(credsPath);
87
- if (raw) {
88
- JSON.parse(raw);
89
- return;
90
- }
91
- const backupRaw = readCredsJsonRaw(backupPath);
92
- if (!backupRaw) return;
93
- JSON.parse(backupRaw);
94
- fs.copyFileSync(backupPath, credsPath);
95
- try {
96
- fs.chmodSync(credsPath, 384);
97
- } catch {}
98
- logger.warn({ credsPath }, "restored corrupted WhatsApp creds.json from backup");
99
- } catch {}
100
- }
101
- async function webAuthExists(authDir = resolveDefaultWebAuthDir()) {
102
- const resolvedAuthDir = resolveUserPath(authDir);
103
- maybeRestoreCredsFromBackup(resolvedAuthDir);
104
- const credsPath = resolveWebCredsPath(resolvedAuthDir);
105
- try {
106
- await fs$1.access(resolvedAuthDir);
107
- } catch {
108
- return false;
109
- }
110
- try {
111
- const stats = await fs$1.stat(credsPath);
112
- if (!stats.isFile() || stats.size <= 1) return false;
113
- const raw = await fs$1.readFile(credsPath, "utf-8");
114
- JSON.parse(raw);
115
- return true;
116
- } catch {
117
- return false;
118
- }
119
- }
120
- async function clearLegacyBaileysAuthState(authDir) {
121
- const entries = await fs$1.readdir(authDir, { withFileTypes: true });
122
- const shouldDelete = (name) => {
123
- if (name === "oauth.json") return false;
124
- if (name === "creds.json" || name === "creds.json.bak") return true;
125
- if (!name.endsWith(".json")) return false;
126
- return /^(app-state-sync|session|sender-key|pre-key)-/.test(name);
127
- };
128
- await Promise.all(entries.map(async (entry) => {
129
- if (!entry.isFile()) return;
130
- if (!shouldDelete(entry.name)) return;
131
- await fs$1.rm(path.join(authDir, entry.name), { force: true });
132
- }));
133
- }
134
- async function logoutWeb(params) {
135
- const runtime = params.runtime ?? defaultRuntime;
136
- const resolvedAuthDir = resolveUserPath(params.authDir ?? resolveDefaultWebAuthDir());
137
- if (!await webAuthExists(resolvedAuthDir)) {
138
- runtime.log(info("No WhatsApp Web session found; nothing to delete."));
139
- return false;
140
- }
141
- if (params.isLegacyAuthDir) await clearLegacyBaileysAuthState(resolvedAuthDir);
142
- else await fs$1.rm(resolvedAuthDir, {
143
- recursive: true,
144
- force: true
145
- });
146
- runtime.log(success("Cleared WhatsApp Web credentials."));
147
- return true;
148
- }
149
- function readWebSelfId(authDir = resolveDefaultWebAuthDir()) {
150
- try {
151
- const credsPath = resolveWebCredsPath(resolveUserPath(authDir));
152
- if (!fs.existsSync(credsPath)) return {
153
- e164: null,
154
- jid: null
155
- };
156
- const raw = fs.readFileSync(credsPath, "utf-8");
157
- const jid = JSON.parse(raw)?.me?.id ?? null;
158
- return {
159
- e164: jid ? jidToE164(jid, { authDir }) : null,
160
- jid
161
- };
162
- } catch {
163
- return {
164
- e164: null,
165
- jid: null
166
- };
167
- }
168
- }
169
- /**
170
- * Return the age (in milliseconds) of the cached WhatsApp web auth state, or null when missing.
171
- * Helpful for heartbeats/observability to spot stale credentials.
172
- */
173
- function getWebAuthAgeMs(authDir = resolveDefaultWebAuthDir()) {
174
- try {
175
- const stats = fs.statSync(resolveWebCredsPath(resolveUserPath(authDir)));
176
- return Date.now() - stats.mtimeMs;
177
- } catch {
178
- return null;
179
- }
180
- }
181
- function logWebSelfId(authDir = resolveDefaultWebAuthDir(), runtime = defaultRuntime, includeChannelPrefix = false) {
182
- const { e164, jid } = readWebSelfId(authDir);
183
- const details = e164 || jid ? `${e164 ?? "unknown"}${jid ? ` (jid ${jid})` : ""}` : "unknown";
184
- const prefix = includeChannelPrefix ? "Web Channel: " : "";
185
- runtime.log(info(`${prefix}${details}`));
186
- }
187
- async function pickWebChannel(pref, authDir = resolveDefaultWebAuthDir()) {
188
- const choice = pref === "auto" ? "web" : pref;
189
- if (!await webAuthExists(authDir)) throw new Error(`No WhatsApp Web session found. Run \`${formatCliCommand("openclaw channels login --channel whatsapp --verbose")}\` to link.`);
190
- return choice;
191
- }
192
-
193
- //#endregion
194
- //#region src/web/accounts.ts
195
- const { listConfiguredAccountIds, listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("whatsapp");
196
- const listWhatsAppAccountIds = listAccountIds;
197
- const resolveDefaultWhatsAppAccountId = resolveDefaultAccountId;
198
- function listWhatsAppAuthDirs(cfg) {
199
- const oauthDir = resolveOAuthDir();
200
- const whatsappDir = path.join(oauthDir, "whatsapp");
201
- const authDirs = new Set([oauthDir, path.join(whatsappDir, DEFAULT_ACCOUNT_ID)]);
202
- const accountIds = listConfiguredAccountIds(cfg);
203
- for (const accountId of accountIds) authDirs.add(resolveWhatsAppAuthDir({
204
- cfg,
205
- accountId
206
- }).authDir);
207
- try {
208
- const entries = fs.readdirSync(whatsappDir, { withFileTypes: true });
209
- for (const entry of entries) {
210
- if (!entry.isDirectory()) continue;
211
- authDirs.add(path.join(whatsappDir, entry.name));
212
- }
213
- } catch {}
214
- return Array.from(authDirs);
215
- }
216
- function hasAnyWhatsAppAuth(cfg) {
217
- return listWhatsAppAuthDirs(cfg).some((authDir) => hasWebCredsSync(authDir));
218
- }
219
- function resolveAccountConfig(cfg, accountId) {
220
- return resolveAccountEntry(cfg.channels?.whatsapp?.accounts, accountId);
221
- }
222
- function resolveDefaultAuthDir(accountId) {
223
- return path.join(resolveOAuthDir(), "whatsapp", normalizeAccountId(accountId));
224
- }
225
- function resolveLegacyAuthDir() {
226
- return resolveOAuthDir();
227
- }
228
- function legacyAuthExists(authDir) {
229
- try {
230
- return fs.existsSync(path.join(authDir, "creds.json"));
231
- } catch {
232
- return false;
233
- }
234
- }
235
- function resolveWhatsAppAuthDir(params) {
236
- const accountId = params.accountId.trim() || DEFAULT_ACCOUNT_ID;
237
- const configured = resolveAccountConfig(params.cfg, accountId)?.authDir?.trim();
238
- if (configured) return {
239
- authDir: resolveUserPath(configured),
240
- isLegacy: false
241
- };
242
- const defaultDir = resolveDefaultAuthDir(accountId);
243
- if (accountId === DEFAULT_ACCOUNT_ID) {
244
- const legacyDir = resolveLegacyAuthDir();
245
- if (legacyAuthExists(legacyDir) && !legacyAuthExists(defaultDir)) return {
246
- authDir: legacyDir,
247
- isLegacy: true
248
- };
249
- }
250
- return {
251
- authDir: defaultDir,
252
- isLegacy: false
253
- };
254
- }
255
- function resolveWhatsAppAccount(params) {
256
- const rootCfg = params.cfg.channels?.whatsapp;
257
- const accountId = params.accountId?.trim() || resolveDefaultWhatsAppAccountId(params.cfg);
258
- const accountCfg = resolveAccountConfig(params.cfg, accountId);
259
- const enabled = accountCfg?.enabled !== false;
260
- const { authDir, isLegacy } = resolveWhatsAppAuthDir({
261
- cfg: params.cfg,
262
- accountId
263
- });
264
- return {
265
- accountId,
266
- name: accountCfg?.name?.trim() || void 0,
267
- enabled,
268
- sendReadReceipts: accountCfg?.sendReadReceipts ?? rootCfg?.sendReadReceipts ?? true,
269
- messagePrefix: accountCfg?.messagePrefix ?? rootCfg?.messagePrefix ?? params.cfg.messages?.messagePrefix,
270
- authDir,
271
- isLegacyAuthDir: isLegacy,
272
- selfChatMode: accountCfg?.selfChatMode ?? rootCfg?.selfChatMode,
273
- dmPolicy: accountCfg?.dmPolicy ?? rootCfg?.dmPolicy,
274
- allowFrom: accountCfg?.allowFrom ?? rootCfg?.allowFrom,
275
- groupAllowFrom: accountCfg?.groupAllowFrom ?? rootCfg?.groupAllowFrom,
276
- groupPolicy: accountCfg?.groupPolicy ?? rootCfg?.groupPolicy,
277
- textChunkLimit: accountCfg?.textChunkLimit ?? rootCfg?.textChunkLimit,
278
- chunkMode: accountCfg?.chunkMode ?? rootCfg?.chunkMode,
279
- mediaMaxMb: accountCfg?.mediaMaxMb ?? rootCfg?.mediaMaxMb,
280
- blockStreaming: accountCfg?.blockStreaming ?? rootCfg?.blockStreaming,
281
- ackReaction: accountCfg?.ackReaction ?? rootCfg?.ackReaction,
282
- groups: accountCfg?.groups ?? rootCfg?.groups,
283
- debounceMs: accountCfg?.debounceMs ?? rootCfg?.debounceMs
284
- };
285
- }
286
-
287
- //#endregion
288
- export { webAuthExists as _, resolveWhatsAppAuthDir as a, logWebSelfId as c, pickWebChannel as d, readCredsJsonRaw as f, resolveWebCredsPath as g, resolveWebCredsBackupPath as h, resolveWhatsAppAccount as i, logoutWeb as l, resolveDefaultWebAuthDir as m, listWhatsAppAccountIds as n, WA_WEB_AUTH_DIR as o, readWebSelfId as p, resolveDefaultWhatsAppAccountId as r, getWebAuthAgeMs as s, hasAnyWhatsAppAuth as t, maybeRestoreCredsFromBackup as u, resolveAccountEntry as v, createAccountListHelpers as y };
@@ -1,46 +0,0 @@
1
- import { ot as normalizeAccountId } from "./run-with-concurrency-Bt_ks0Qa.js";
2
- import { v as resolveAccountEntry, y as createAccountListHelpers } from "./accounts-DP1-L-QS.js";
3
-
4
- //#region src/signal/accounts.ts
5
- const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("signal");
6
- const listSignalAccountIds = listAccountIds;
7
- const resolveDefaultSignalAccountId = resolveDefaultAccountId;
8
- function resolveAccountConfig(cfg, accountId) {
9
- return resolveAccountEntry(cfg.channels?.signal?.accounts, accountId);
10
- }
11
- function mergeSignalAccountConfig(cfg, accountId) {
12
- const { accounts: _ignored, ...base } = cfg.channels?.signal ?? {};
13
- const account = resolveAccountConfig(cfg, accountId) ?? {};
14
- return {
15
- ...base,
16
- ...account
17
- };
18
- }
19
- function resolveSignalAccount(params) {
20
- const accountId = normalizeAccountId(params.accountId);
21
- const baseEnabled = params.cfg.channels?.signal?.enabled !== false;
22
- const merged = mergeSignalAccountConfig(params.cfg, accountId);
23
- const accountEnabled = merged.enabled !== false;
24
- const enabled = baseEnabled && accountEnabled;
25
- const host = merged.httpHost?.trim() || "127.0.0.1";
26
- const port = merged.httpPort ?? 8080;
27
- const baseUrl = merged.httpUrl?.trim() || `http://${host}:${port}`;
28
- const configured = Boolean(merged.account?.trim() || merged.httpUrl?.trim() || merged.cliPath?.trim() || merged.httpHost?.trim() || typeof merged.httpPort === "number" || typeof merged.autoStart === "boolean");
29
- return {
30
- accountId,
31
- enabled,
32
- name: merged.name?.trim() || void 0,
33
- baseUrl,
34
- configured,
35
- config: merged
36
- };
37
- }
38
- function listEnabledSignalAccounts(cfg) {
39
- return listSignalAccountIds(cfg).map((accountId) => resolveSignalAccount({
40
- cfg,
41
- accountId
42
- })).filter((account) => account.enabled);
43
- }
44
-
45
- //#endregion
46
- export { resolveSignalAccount as i, listSignalAccountIds as n, resolveDefaultSignalAccountId as r, listEnabledSignalAccounts as t };
@@ -1,50 +0,0 @@
1
- import { at as DEFAULT_ACCOUNT_ID } from "./run-with-concurrency-Bt_ks0Qa.js";
2
- import { Pr as formatCliCommand } from "./config-BkEnz2Po.js";
3
- import crypto from "node:crypto";
4
-
5
- //#region src/logging/redact-identifier.ts
6
- function sha256HexPrefix(value, len = 12) {
7
- const safeLen = Number.isFinite(len) ? Math.max(1, Math.floor(len)) : 12;
8
- return crypto.createHash("sha256").update(value).digest("hex").slice(0, safeLen);
9
- }
10
- function redactIdentifier(value, opts) {
11
- const trimmed = value?.trim();
12
- if (!trimmed) return "-";
13
- return `sha256:${sha256HexPrefix(trimmed, opts?.len ?? 12)}`;
14
- }
15
-
16
- //#endregion
17
- //#region src/web/active-listener.ts
18
- const listeners = /* @__PURE__ */ new Map();
19
- function resolveWebAccountId(accountId) {
20
- return (accountId ?? "").trim() || DEFAULT_ACCOUNT_ID;
21
- }
22
- function requireActiveWebListener(accountId) {
23
- const id = resolveWebAccountId(accountId);
24
- const listener = listeners.get(id) ?? null;
25
- if (!listener) throw new Error(`No active WhatsApp Web listener (account: ${id}). Start the gateway, then link WhatsApp with: ${formatCliCommand(`openclaw channels login --channel whatsapp --account ${id}`)}.`);
26
- return {
27
- accountId: id,
28
- listener
29
- };
30
- }
31
- function setActiveWebListener(accountIdOrListener, maybeListener) {
32
- const { accountId, listener } = typeof accountIdOrListener === "string" ? {
33
- accountId: accountIdOrListener,
34
- listener: maybeListener ?? null
35
- } : {
36
- accountId: DEFAULT_ACCOUNT_ID,
37
- listener: accountIdOrListener ?? null
38
- };
39
- const id = resolveWebAccountId(accountId);
40
- if (!listener) listeners.delete(id);
41
- else listeners.set(id, listener);
42
- if (id === DEFAULT_ACCOUNT_ID) {}
43
- }
44
- function getActiveWebListener(accountId) {
45
- const id = resolveWebAccountId(accountId);
46
- return listeners.get(id) ?? null;
47
- }
48
-
49
- //#endregion
50
- export { redactIdentifier as i, requireActiveWebListener as n, setActiveWebListener as r, getActiveWebListener as t };
@@ -1,181 +0,0 @@
1
- import { jn as normalizeProviderId } from "./config-BkEnz2Po.js";
2
- import { r as formatErrorMessage } from "./errors-DaiAM-yU.js";
3
-
4
- //#region src/infra/gemini-auth.ts
5
- /**
6
- * Shared Gemini authentication utilities.
7
- *
8
- * Supports both traditional API keys and OAuth JSON format.
9
- */
10
- /**
11
- * Parse Gemini API key and return appropriate auth headers.
12
- *
13
- * OAuth format: `{"token": "...", "projectId": "..."}`
14
- *
15
- * @param apiKey - Either a traditional API key string or OAuth JSON
16
- * @returns Headers object with appropriate authentication
17
- */
18
- function parseGeminiAuth(apiKey) {
19
- if (apiKey.startsWith("{")) try {
20
- const parsed = JSON.parse(apiKey);
21
- if (typeof parsed.token === "string" && parsed.token) return { headers: {
22
- Authorization: `Bearer ${parsed.token}`,
23
- "Content-Type": "application/json"
24
- } };
25
- } catch {}
26
- return { headers: {
27
- "x-goog-api-key": apiKey,
28
- "Content-Type": "application/json"
29
- } };
30
- }
31
-
32
- //#endregion
33
- //#region src/agents/live-auth-keys.ts
34
- const KEY_SPLIT_RE = /[\s,;]+/g;
35
- const GOOGLE_LIVE_SINGLE_KEY = "OPENCLAW_LIVE_GEMINI_KEY";
36
- const PROVIDER_PREFIX_OVERRIDES = {
37
- google: "GEMINI",
38
- "google-vertex": "GEMINI"
39
- };
40
- const PROVIDER_API_KEY_CONFIG = {
41
- anthropic: {
42
- liveSingle: "OPENCLAW_LIVE_ANTHROPIC_KEY",
43
- listVar: "OPENCLAW_LIVE_ANTHROPIC_KEYS",
44
- primaryVar: "ANTHROPIC_API_KEY",
45
- prefixedVar: "ANTHROPIC_API_KEY_"
46
- },
47
- google: {
48
- liveSingle: GOOGLE_LIVE_SINGLE_KEY,
49
- listVar: "GEMINI_API_KEYS",
50
- primaryVar: "GEMINI_API_KEY",
51
- prefixedVar: "GEMINI_API_KEY_"
52
- },
53
- "google-vertex": {
54
- liveSingle: GOOGLE_LIVE_SINGLE_KEY,
55
- listVar: "GEMINI_API_KEYS",
56
- primaryVar: "GEMINI_API_KEY",
57
- prefixedVar: "GEMINI_API_KEY_"
58
- },
59
- openai: {
60
- liveSingle: "OPENCLAW_LIVE_OPENAI_KEY",
61
- listVar: "OPENAI_API_KEYS",
62
- primaryVar: "OPENAI_API_KEY",
63
- prefixedVar: "OPENAI_API_KEY_"
64
- }
65
- };
66
- function parseKeyList(raw) {
67
- if (!raw) return [];
68
- return raw.split(KEY_SPLIT_RE).map((value) => value.trim()).filter(Boolean);
69
- }
70
- function collectEnvPrefixedKeys(prefix) {
71
- const keys = [];
72
- for (const [name, value] of Object.entries(process.env)) {
73
- if (!name.startsWith(prefix)) continue;
74
- const trimmed = value?.trim();
75
- if (!trimmed) continue;
76
- keys.push(trimmed);
77
- }
78
- return keys;
79
- }
80
- function resolveProviderApiKeyConfig(provider) {
81
- const normalized = normalizeProviderId(provider);
82
- const custom = PROVIDER_API_KEY_CONFIG[normalized];
83
- const base = PROVIDER_PREFIX_OVERRIDES[normalized] ?? normalized.toUpperCase().replace(/-/g, "_");
84
- const liveSingle = custom?.liveSingle ?? `OPENCLAW_LIVE_${base}_KEY`;
85
- const listVar = custom?.listVar ?? `${base}_API_KEYS`;
86
- const primaryVar = custom?.primaryVar ?? `${base}_API_KEY`;
87
- const prefixedVar = custom?.prefixedVar ?? `${base}_API_KEY_`;
88
- if (normalized === "google" || normalized === "google-vertex") return {
89
- liveSingle,
90
- listVar,
91
- primaryVar,
92
- prefixedVar,
93
- fallbackVars: ["GOOGLE_API_KEY"]
94
- };
95
- return {
96
- liveSingle,
97
- listVar,
98
- primaryVar,
99
- prefixedVar,
100
- fallbackVars: []
101
- };
102
- }
103
- function collectProviderApiKeys(provider) {
104
- const config = resolveProviderApiKeyConfig(provider);
105
- const forcedSingle = config.liveSingle ? process.env[config.liveSingle]?.trim() : void 0;
106
- if (forcedSingle) return [forcedSingle];
107
- const fromList = parseKeyList(config.listVar ? process.env[config.listVar] : void 0);
108
- const primary = config.primaryVar ? process.env[config.primaryVar]?.trim() : void 0;
109
- const fromPrefixed = config.prefixedVar ? collectEnvPrefixedKeys(config.prefixedVar) : [];
110
- const fallback = config.fallbackVars.map((envVar) => process.env[envVar]?.trim()).filter(Boolean);
111
- const seen = /* @__PURE__ */ new Set();
112
- const add = (value) => {
113
- if (!value) return;
114
- if (seen.has(value)) return;
115
- seen.add(value);
116
- };
117
- for (const value of fromList) add(value);
118
- add(primary);
119
- for (const value of fromPrefixed) add(value);
120
- for (const value of fallback) add(value);
121
- return Array.from(seen);
122
- }
123
- function isApiKeyRateLimitError(message) {
124
- const lower = message.toLowerCase();
125
- if (lower.includes("rate_limit")) return true;
126
- if (lower.includes("rate limit")) return true;
127
- if (lower.includes("429")) return true;
128
- if (lower.includes("quota exceeded") || lower.includes("quota_exceeded")) return true;
129
- if (lower.includes("resource exhausted") || lower.includes("resource_exhausted")) return true;
130
- if (lower.includes("too many requests")) return true;
131
- return false;
132
- }
133
-
134
- //#endregion
135
- //#region src/agents/api-key-rotation.ts
136
- function dedupeApiKeys(raw) {
137
- const seen = /* @__PURE__ */ new Set();
138
- const keys = [];
139
- for (const value of raw) {
140
- const apiKey = value.trim();
141
- if (!apiKey || seen.has(apiKey)) continue;
142
- seen.add(apiKey);
143
- keys.push(apiKey);
144
- }
145
- return keys;
146
- }
147
- function collectProviderApiKeysForExecution(params) {
148
- const { primaryApiKey, provider } = params;
149
- return dedupeApiKeys([primaryApiKey?.trim() ?? "", ...collectProviderApiKeys(provider)]);
150
- }
151
- async function executeWithApiKeyRotation(params) {
152
- const keys = dedupeApiKeys(params.apiKeys);
153
- if (keys.length === 0) throw new Error(`No API keys configured for provider "${params.provider}".`);
154
- let lastError;
155
- for (let attempt = 0; attempt < keys.length; attempt += 1) {
156
- const apiKey = keys[attempt];
157
- try {
158
- return await params.execute(apiKey);
159
- } catch (error) {
160
- lastError = error;
161
- const message = formatErrorMessage(error);
162
- if (!(params.shouldRetry ? params.shouldRetry({
163
- apiKey,
164
- error,
165
- attempt,
166
- message
167
- }) : isApiKeyRateLimitError(message)) || attempt + 1 >= keys.length) break;
168
- params.onRetry?.({
169
- apiKey,
170
- error,
171
- attempt,
172
- message
173
- });
174
- }
175
- }
176
- if (lastError === void 0) throw new Error(`Failed to run API request for ${params.provider}.`);
177
- throw lastError;
178
- }
179
-
180
- //#endregion
181
- export { executeWithApiKeyRotation as n, parseGeminiAuth as r, collectProviderApiKeysForExecution as t };