openclaw-multi-auto 1.6.5 → 1.6.7

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 (423) hide show
  1. package/dist/{accounts-4vg8osA5.js → accounts-BPt-s1cW.js} +7 -7
  2. package/dist/{accounts-L9ByEpnP.js → accounts-C9HcPI9h.js} +2 -2
  3. package/dist/{accounts-BgOnManD.js → accounts-CC3alHma.js} +1 -1
  4. package/dist/{accounts-CXo4Ac3z.js → accounts-CNIODbBr.js} +1 -1
  5. package/dist/{accounts-BOzyfwW4.js → accounts-C_lW3Ag9.js} +2 -2
  6. package/dist/{accounts-yfBeCZtS.js → accounts-Tgelvk0C.js} +17 -17
  7. package/dist/{acp-cli-B2w71bEK.js → acp-cli-DjB0ovMh.js} +8 -8
  8. package/dist/{active-listener-D1yqT1cw.js → active-listener-BEdprTkn.js} +2 -2
  9. package/dist/{agent-scope-BbO_VBbv.js → agent-scope-CNJUPFcR.js} +17 -17
  10. package/dist/{agents.config-y8kHMoox.js → agents.config-Dh5Lcv4N.js} +2 -2
  11. package/dist/{api-key-rotation-DtsNS2Nb.js → api-key-rotation-BJpKWXy0.js} +2 -2
  12. package/dist/{api-key-rotation-CzacqD3s.js → api-key-rotation-PzGuOQm_.js} +1 -1
  13. package/dist/{audio-preflight-DpxQCpsA.js → audio-preflight-BMvgEQ5j.js} +32 -32
  14. package/dist/{audio-preflight-CiANHFx-.js → audio-preflight-DOYiMo_d.js} +34 -34
  15. package/dist/{audio-transcription-runner-28fcRNNi.js → audio-transcription-runner-gLFfz8fr.js} +12 -12
  16. package/dist/{audio-transcription-runner-B9-J1DUd.js → audio-transcription-runner-sLK1yiya.js} +23 -23
  17. package/dist/{audit-BBbzzHkv.js → audit-BSvn3dTQ.js} +29 -29
  18. package/dist/{audit-membership-runtime-DWyHWAHM.js → audit-membership-runtime-Dntemq07.js} +4 -4
  19. package/dist/{auth-B_YGaEcP.js → auth-C_LDvTxu.js} +1 -1
  20. package/dist/{auth-choice-CV87PVB8.js → auth-choice-Bu5kPuhF.js} +11 -11
  21. package/dist/{auth-choice-gf8aEhcg.js → auth-choice-fpoHu7pV.js} +13 -13
  22. package/dist/{auth-choice.apply-helpers-IK7zIZHi.js → auth-choice.apply-helpers-RNa-mjTS.js} +1 -1
  23. package/dist/{auth-token-D2V9CMur.js → auth-token-CktupXSw.js} +1 -1
  24. package/dist/{bonjour-discovery-BC_XEtg4.js → bonjour-discovery-DvVDs7rm.js} +1 -1
  25. package/dist/{browser-cli-BEWtuR6r.js → browser-cli-DuYjaYLJ.js} +12 -12
  26. package/dist/build-info.json +3 -3
  27. package/dist/bundled/boot-md/handler.js +51 -51
  28. package/dist/bundled/bootstrap-extra-files/handler.js +6 -6
  29. package/dist/bundled/command-logger/handler.js +2 -2
  30. package/dist/bundled/session-memory/handler.js +51 -51
  31. package/dist/{call-YJ9zjeji.js → call-eK-5ynwM.js} +10 -10
  32. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  33. package/dist/{channel-account-context-CJ_25Q5X.js → channel-account-context-BQD0zpuF.js} +5 -5
  34. package/dist/{channel-activity-xHOMiarp.js → channel-activity-BDnjYF7B.js} +3 -3
  35. package/dist/{channel-activity-BHb0aL0J.js → channel-activity-w-iWKqZg.js} +1 -1
  36. package/dist/{channel-options-8OGfdfdc.js → channel-options-o5oDDArl.js} +3 -3
  37. package/dist/{channel-selection-D21oKnM0.js → channel-selection-HaUsJ3kL.js} +1 -1
  38. package/dist/{channel-web-BXHQWjc6.js → channel-web-JuhY6j_M.js} +16 -16
  39. package/dist/{channels-cli-ByTcIaZC.js → channels-cli-aZhDWAhv.js} +92 -92
  40. package/dist/{channels-status-issues-Cva3QRlu.js → channels-status-issues-Bi69DlUp.js} +1 -1
  41. package/dist/{chrome-DBMFZ1ho.js → chrome-CQR5U4Oc.js} +4 -4
  42. package/dist/{chrome-DwizpzOC.js → chrome-DxxEKrY7.js} +18 -18
  43. package/dist/{clawbot-cli-DpZDxNOd.js → clawbot-cli-DJzN7m49.js} +11 -11
  44. package/dist/cli/daemon-cli.js +1 -1
  45. package/dist/{cli-bsDX2k8k.js → cli-fGEJw7Bh.js} +72 -72
  46. package/dist/{client-D9sBKoZI.js → client-BEwDNigg.js} +2 -2
  47. package/dist/{command-secret-targets-SH5qP5X_.js → command-secret-targets-qpSAI_K2.js} +4 -4
  48. package/dist/{commands-DUzVNM-Q.js → commands-BaXA2bSJ.js} +1 -1
  49. package/dist/{commands-registry-C2INbVUe.js → commands-registry-D-nkNP-x.js} +3 -3
  50. package/dist/{commands-registry-V1zZ5pPC.js → commands-registry-D5qXbFJn.js} +4 -4
  51. package/dist/{completion-cli-4GVy2WHG.js → completion-cli-D-Vt6klA.js} +12 -12
  52. package/dist/{config-cli-ByWpkmkG.js → config-cli-D7CkjeZo.js} +7 -7
  53. package/dist/{config-guard-ofLFxSQh.js → config-guard-B1hrQ4RG.js} +16 -16
  54. package/dist/{config-validation-9QNDxE74.js → config-validation-CZ59Kb8S.js} +3 -3
  55. package/dist/{configure-JiVnjIlt.js → configure-BTMq-WnT.js} +17 -17
  56. package/dist/{control-ui-assets-D7bG2PFs.js → control-ui-assets-DR9xNC3f.js} +1 -1
  57. package/dist/{cron-cli-DuHdcQFw.js → cron-cli-CvFNRfgv.js} +11 -11
  58. package/dist/{daemon-cli-Do_4dH0e.js → daemon-cli-Bb7Q2DPz.js} +15 -15
  59. package/dist/{daemon-install-helpers-Pex1FHrG.js → daemon-install-helpers-BYWgt_7u.js} +11 -11
  60. package/dist/{daemon-install-C0_0OAHU.js → daemon-install-mDWE60H-.js} +4 -4
  61. package/dist/{deliver-D4o6VIur.js → deliver-DbdywYJE.js} +21 -21
  62. package/dist/{deliver-B05oD9oA.js → deliver-DuqANTNs.js} +7 -7
  63. package/dist/deliver-runtime-BFs7iAZF.js +36 -0
  64. package/dist/deliver-runtime-CBjIBIWj.js +61 -0
  65. package/dist/deps-send-discord.runtime-Ch7m0GFO.js +36 -0
  66. package/dist/deps-send-discord.runtime-DZUccI6Z.js +26 -0
  67. package/dist/deps-send-imessage.runtime-BBXNUMFu.js +35 -0
  68. package/dist/deps-send-imessage.runtime-CF3OpoqY.js +25 -0
  69. package/dist/deps-send-signal.runtime-Cw4-ozeO.js +24 -0
  70. package/dist/deps-send-signal.runtime-DVVQsW-M.js +34 -0
  71. package/dist/deps-send-slack.runtime-BDsDhS1P.js +22 -0
  72. package/dist/deps-send-slack.runtime-Bm60sFNH.js +32 -0
  73. package/dist/deps-send-telegram.runtime-D_4xVasO.js +27 -0
  74. package/dist/{deps-send-telegram.runtime-IVPYXaID.js → deps-send-telegram.runtime-TOpNwBFj.js} +16 -16
  75. package/dist/deps-send-whatsapp.runtime-B2i2JcV5.js +118 -0
  76. package/dist/deps-send-whatsapp.runtime-DK8jqd14.js +60 -0
  77. package/dist/{devices-cli-D0SxzElB.js → devices-cli-DVXzYwja.js} +8 -8
  78. package/dist/{diagnostic-v2TGEcgC.js → diagnostic-CL9h6IXx.js} +1 -1
  79. package/dist/{diagnostic-Bn4PZjMZ.js → diagnostic-Co6Kghr-.js} +2 -2
  80. package/dist/{diagnostics-CBcbp7BB.js → diagnostics-CwWdfrvB.js} +5 -5
  81. package/dist/{directory-cli-A0q9Ftjc.js → directory-cli-DL2TKoz1.js} +7 -7
  82. package/dist/{dns-cli-hyt6Wvvq.js → dns-cli-DOHzu8H-.js} +5 -5
  83. package/dist/{dock-SpSqP4RS.js → dock-BR4hdehX.js} +4 -4
  84. package/dist/{docs-cli-CJfXaxzc.js → docs-cli-D1S8CZJy.js} +4 -4
  85. package/dist/{doctor-completion-CDRZEttH.js → doctor-completion-CkEHCVMO.js} +2 -2
  86. package/dist/{doctor-config-flow-kZl_wy2A.js → doctor-config-flow-DQNZsEku.js} +15 -15
  87. package/dist/{enable-B27E5MMW.js → enable-V7r6GCwn.js} +1 -1
  88. package/dist/{plugin-sdk/errors-B3cHyZZA.js → errors-xt401nuk.js} +1 -1
  89. package/dist/{exec-approvals-allowlist-BOUCQu6B.js → exec-approvals-allowlist-CtUT02un.js} +1 -1
  90. package/dist/{exec-approvals-cli-_cqBqjTA.js → exec-approvals-cli-CsCqi3wl.js} +16 -16
  91. package/dist/{exec-safe-bin-runtime-policy-CkhpnueN.js → exec-safe-bin-runtime-policy-CSBwsuHS.js} +2 -2
  92. package/dist/{fetch-BlJWzEP6.js → fetch-DuraYswo.js} +5 -5
  93. package/dist/{fetch-guard-NyNh7p-s.js → fetch-guard-Ca0W-yZr.js} +1 -1
  94. package/dist/{fetch-guard-ChYBwfiy.js → fetch-guard-DWr0d00H.js} +2 -2
  95. package/dist/{frontmatter-CvaMP376.js → frontmatter-BkTfEZ93.js} +3 -3
  96. package/dist/{fs-safe-0jAo_Whb.js → fs-safe-CTYUrIgQ.js} +4 -4
  97. package/dist/{fs-safe-mG29clJ9.js → fs-safe-D_adQJX4.js} +24 -24
  98. package/dist/{gateway-cli-94YTdTAa.js → gateway-cli-C5cq5Fv9.js} +152 -152
  99. package/dist/{gateway-rpc-NhXLPpJx.js → gateway-rpc-C32KFHnD.js} +1 -1
  100. package/dist/{github-copilot-token-D13V9YBz.js → github-copilot-token-BDioPmd6.js} +7 -7
  101. package/dist/{health-B99KJscL.js → health-yuGFUIWJ.js} +11 -11
  102. package/dist/{hooks-cli-C01QhY4h.js → hooks-cli-CXWcvFYo.js} +80 -80
  103. package/dist/{hooks-status-CZNGtyrM.js → hooks-status-Bjjm7teR.js} +1 -1
  104. package/dist/{image-BaqqhHHh.js → image-CDKYPK1-.js} +5 -5
  105. package/dist/{image-Bbn53mzj.js → image-eT7Y-nP5.js} +6 -6
  106. package/dist/{image-ops-CKnT_r12.js → image-ops-BTwvusXV.js} +10 -10
  107. package/dist/{image-ops-CehkHxmW.js → image-ops-BuUnEOE0.js} +2 -2
  108. package/dist/image-runtime-BcAK3n8a.js +29 -0
  109. package/dist/image-runtime-Csw6M1GE.js +55 -0
  110. package/dist/index.js +82 -82
  111. package/dist/{inspect-XHunUBlV.js → inspect-lNlGLW_c.js} +4 -4
  112. package/dist/{install-safe-path-om__n8TQ.js → install-safe-path-BNRYD-KJ.js} +25 -25
  113. package/dist/{installs-Z0VR0SY2.js → installs-BB_8nllr.js} +9 -9
  114. package/dist/{ipv4-NJiClroF.js → ipv4-CPzn5xIX.js} +1 -1
  115. package/dist/{ir-DAP-B-Xw.js → ir-B83looB-.js} +8 -8
  116. package/dist/{ir-ChJe1hY6.js → ir-BdjoGJyL.js} +8 -8
  117. package/dist/{issue-format-G-7IkANX.js → issue-format-D_MHPECu.js} +1 -1
  118. package/dist/{json-files-D6M304Qd.js → json-files-DIEpaxUj.js} +8 -8
  119. package/dist/{legacy-names-TyzbVqa_.js → legacy-names-DOC03BkU.js} +1 -1
  120. package/dist/{lifecycle-core-BcIuIPMF.js → lifecycle-core-C2u5W-Xd.js} +5 -5
  121. package/dist/llm-slug-generator.js +51 -51
  122. package/dist/{local-roots-BCYAjsgu.js → local-roots-_noFNwvo.js} +3 -3
  123. package/dist/{logger-DMZQQtxK.js → logger-BfjWMCSD.js} +7 -7
  124. package/dist/{login-D7cZyPrd.js → login-CbJ7lelX.js} +3 -3
  125. package/dist/{login-DiCctRo1.js → login-CrIwcrVI.js} +5 -5
  126. package/dist/{login-qr-DPVFxhjZ.js → login-qr-9cwofnkY.js} +6 -6
  127. package/dist/{login-qr-MUbXgjtd.js → login-qr-BpPDZdl_.js} +10 -10
  128. package/dist/{logs-cli-CtEDxmDk.js → logs-cli-RYm8XZEC.js} +9 -9
  129. package/dist/{manager-BW_NSIMl.js → manager-1bvuGrNR.js} +13 -13
  130. package/dist/{manager-CSnZM2Iw.js → manager-Dbz9CyPw.js} +14 -14
  131. package/dist/{manager-runtime-aMwRbhZ3.js → manager-runtime-DsniMUxY.js} +9 -9
  132. package/dist/manager-runtime-FO1Sx3W8.js +18 -0
  133. package/dist/{manifest-registry-D74D25g7.js → manifest-registry-QfHOpQrg.js} +1 -1
  134. package/dist/{memory-cli-CCMIlraX.js → memory-cli-CLBPPSow.js} +12 -12
  135. package/dist/{model-CnHxvu4o.js → model-CfB7nuUK.js} +2 -2
  136. package/dist/{model-catalog-QXAt20Vy.js → model-catalog-BH55qLYK.js} +3 -3
  137. package/dist/{model-picker-ByrLHc9_.js → model-picker-D3xDEPDv.js} +4 -4
  138. package/dist/{model-selection-DqSNdtby.js → model-selection-DZM1M4yx.js} +16 -16
  139. package/dist/{model-selection-idoqPmw0.js → model-selection-Dna0Gz1k.js} +43 -43
  140. package/dist/{models-cli-C0mrlgSL.js → models-cli-DlFeSGXD.js} +81 -81
  141. package/dist/{models-config-5EhgxVMQ.js → models-config-BLJwyO9D.js} +6 -6
  142. package/dist/{node-cli-DdKfRYhS.js → node-cli-Dcn7Lxvr.js} +33 -33
  143. package/dist/{node-command-policy-D-hu0n3w.js → node-command-policy-DfcI_g5B.js} +1 -1
  144. package/dist/{node-service--hFCI8Ok.js → node-service-CIXWfpdM.js} +1 -1
  145. package/dist/{nodes-cli-BmjFvKQh.js → nodes-cli-CtIY3Wdi.js} +16 -16
  146. package/dist/{nodes-screen-CCNot0xV.js → nodes-screen-DgLXnfNX.js} +7 -7
  147. package/dist/{npm-pack-install-DSR8-nhr.js → npm-pack-install-BmT2Qku8.js} +18 -18
  148. package/dist/{npm-resolution-dr4H2dBm.js → npm-resolution-Ch4kSz-J.js} +4 -4
  149. package/dist/{onboard-channels-QzPuUsu5.js → onboard-channels-CZMeimvm.js} +21 -21
  150. package/dist/{onboard-custom-pyXzjp5z.js → onboard-custom-Bk9lP_gS.js} +4 -4
  151. package/dist/{onboard-helpers-ByC3v1-U.js → onboard-helpers-C51uqagK.js} +10 -10
  152. package/dist/{onboard-hooks-C2cFv3_-.js → onboard-hooks-B4RFbzBs.js} +4 -4
  153. package/dist/{onboard-CyDS1PdS.js → onboard-pvZeQwGW.js} +6 -6
  154. package/dist/{onboard-remote-DHZv5w4W.js → onboard-remote-CmB2v7g1.js} +4 -4
  155. package/dist/{onboard-skills-D_R383gZ.js → onboard-skills-B52kyElD.js} +4 -4
  156. package/dist/{onboarding-Df6qbE08.js → onboarding-BQS8Nd_E.js} +14 -14
  157. package/dist/{onboarding.finalize-DkEbxmLj.js → onboarding.finalize-1BqhSubV.js} +85 -85
  158. package/dist/{onboarding.gateway-config-DttU83Zb.js → onboarding.gateway-config-BIkI8VxE.js} +18 -18
  159. package/dist/{onboarding.secret-input-BJILGy22.js → onboarding.secret-input-Dz6lMbgK.js} +1 -1
  160. package/dist/{openai-model-default-uuDOWnTl.js → openai-model-default-LC7S-YJ9.js} +2 -2
  161. package/dist/{openclaw-root-DeEQQJyX.js → openclaw-root-DG6I1Pl4.js} +8 -8
  162. package/dist/{outbound-B0HGMG3V.js → outbound-C2sayF6_.js} +3 -3
  163. package/dist/{outbound-C2kanETZ.js → outbound-ChDjtuD6.js} +6 -6
  164. package/dist/{outbound-attachment-Ccf9O8B8.js → outbound-attachment-BMKxLFNL.js} +2 -2
  165. package/dist/{outbound-attachment-DBrYWX8h.js → outbound-attachment-DqHlD21U.js} +2 -2
  166. package/dist/{pairing-cli-L76jWxbm.js → pairing-cli-BiogXen1.js} +8 -8
  167. package/dist/{pairing-labels-D9vsJ1yc.js → pairing-labels-OxEX3p5e.js} +1 -1
  168. package/dist/{pairing-store-qlIFCeZB.js → pairing-store-CxcCXceV.js} +3 -3
  169. package/dist/{path-alias-guards-DqXRZmsL.js → path-alias-guards-BzvdLvTI.js} +1 -1
  170. package/dist/{path-alias-guards-BzAaCM2k.js → path-alias-guards-CY88Htx_.js} +3 -3
  171. package/dist/{path-safety-BtMBl7vC.js → path-safety-dy_YlK3a.js} +1 -1
  172. package/dist/{paths-CCxysrzL.js → paths-Bkr-BCxW.js} +4 -4
  173. package/dist/{paths-1ThfklTP.js → paths-C48pWRFv.js} +9 -9
  174. package/dist/{paths-C6TxBCvO.js → paths-Cvc9EM8Y.js} +5 -5
  175. package/dist/{pi-embedded-BaGj07T0.js → pi-embedded-BQQa91aA.js} +158 -158
  176. package/dist/{pi-embedded-helpers-wy0DZvx1.js → pi-embedded-helpers-CLXm10bV.js} +52 -52
  177. package/dist/{pi-embedded-helpers-DXrnVbBZ.js → pi-embedded-helpers-CuG0ngBL.js} +6 -6
  178. package/dist/{pi-model-discovery-BKbDxeIp.js → pi-model-discovery-Drm3mYtt.js} +1 -1
  179. package/dist/{pi-model-discovery-BGgOlX8N.js → pi-model-discovery-Dymwdjt0.js} +7 -7
  180. package/dist/pi-model-discovery-runtime-BeY4EUPp.js +11 -0
  181. package/dist/{pi-model-discovery-runtime-CpLmZvoC.js → pi-model-discovery-runtime-CCZ87Xog.js} +5 -5
  182. package/dist/{pi-tools.before-tool-call.runtime-BuLxSyx9.js → pi-tools.before-tool-call.runtime-Cwab_5W1.js} +9 -9
  183. package/dist/{pi-tools.before-tool-call.runtime-81kH9GUj.js → pi-tools.before-tool-call.runtime-CxMxsbgT.js} +5 -5
  184. package/dist/{pi-tools.policy-BC7YGcon.js → pi-tools.policy-DaB-Ff9f.js} +5 -5
  185. package/dist/{plugin-auto-enable-CIeegxhY.js → plugin-auto-enable-DOlffoVt.js} +3 -3
  186. package/dist/{plugin-registry-D8JSGXQX.js → plugin-registry-DfKKSRKU.js} +3 -3
  187. package/dist/plugin-sdk/{accounts-C3m65--E.js → accounts-BJAXxY46.js} +2 -2
  188. package/dist/plugin-sdk/{accounts-CNCCkdEF.js → accounts-C1j7HSL0.js} +3 -3
  189. package/dist/plugin-sdk/{accounts-BslAlVYS.js → accounts-DyFCXtHv.js} +2 -2
  190. package/dist/plugin-sdk/{active-listener-CkPnMUkB.js → active-listener-CftX5jLD.js} +2 -2
  191. package/dist/plugin-sdk/{api-key-rotation-BXnNsojA.js → api-key-rotation-8nyyt1kx.js} +2 -2
  192. package/dist/plugin-sdk/{audio-preflight-CtO4fFvp.js → audio-preflight-C_aSAPR1.js} +26 -26
  193. package/dist/plugin-sdk/{audio-transcription-runner-DnxvOS1-.js → audio-transcription-runner-CB53F7_7.js} +11 -11
  194. package/dist/plugin-sdk/{audit-membership-runtime-BpfoSk8M.js → audit-membership-runtime-BXndI4LG.js} +2 -2
  195. package/dist/plugin-sdk/{channel-activity-WJYxcJ3S.js → channel-activity-C5y8AgAV.js} +3 -3
  196. package/dist/plugin-sdk/{channel-web-dO5k3ubM.js → channel-web-DBTRO03V.js} +18 -18
  197. package/dist/plugin-sdk/{chrome-CjNTuJML.js → chrome-f00sZkDX.js} +6 -6
  198. package/dist/plugin-sdk/{commands-registry-CdYjoI0i.js → commands-registry-BJ_NxG2F.js} +4 -4
  199. package/dist/plugin-sdk/{common-oYc5vPFl.js → common-Cf27Jwxu.js} +2 -2
  200. package/dist/plugin-sdk/{config-B1z-UxQ3.js → config-CHQrpx-Q.js} +7 -7
  201. package/dist/plugin-sdk/{deliver-D5_6T567.js → deliver-DNEuetST.js} +10 -10
  202. package/dist/plugin-sdk/deliver-runtime-BFdqklJM.js +32 -0
  203. package/dist/plugin-sdk/deps-send-discord.runtime-DuqpYwU0.js +23 -0
  204. package/dist/plugin-sdk/deps-send-imessage.runtime-CZ2rS8Lb.js +22 -0
  205. package/dist/plugin-sdk/deps-send-signal.runtime-BdqiWhIh.js +21 -0
  206. package/dist/plugin-sdk/deps-send-slack.runtime-04s36qiC.js +19 -0
  207. package/dist/plugin-sdk/deps-send-telegram.runtime-LE5tkPvr.js +24 -0
  208. package/dist/plugin-sdk/deps-send-whatsapp.runtime-Bz57lobC.js +57 -0
  209. package/dist/plugin-sdk/{diagnostic-Bxxu0ig-.js → diagnostic-LYUUmjJ5.js} +2 -2
  210. package/dist/{errors-CCLeFWAg.js → plugin-sdk/errors-CtMWwS2Z.js} +1 -1
  211. package/dist/plugin-sdk/{fetch-guard-Dcgod0tg.js → fetch-guard-CxYB5Kg6.js} +2 -2
  212. package/dist/plugin-sdk/{fs-safe-BaKqI3G4.js → fs-safe-DtfhxbrI.js} +3 -3
  213. package/dist/plugin-sdk/{image-B2mQW9Rb.js → image-BwjYjRHx.js} +6 -6
  214. package/dist/plugin-sdk/{image-ops-Cbzr4U9l.js → image-ops-BnZKcbd6.js} +2 -2
  215. package/dist/plugin-sdk/image-runtime-B8twoubs.js +25 -0
  216. package/dist/plugin-sdk/{ir-ZEmrTr4J.js → ir-Z4hX67TJ.js} +7 -7
  217. package/dist/plugin-sdk/{local-roots-CIPRxA-4.js → local-roots-KhjQw04O.js} +4 -4
  218. package/dist/plugin-sdk/{logger-CvPFVOgT.js → logger-DHIIvMxj.js} +2 -2
  219. package/dist/plugin-sdk/{login-CCTew9bt.js → login-C31642Ld.js} +4 -4
  220. package/dist/plugin-sdk/{login-qr-BI3Vi_wJ.js → login-qr--y2SG_Ue.js} +5 -5
  221. package/dist/plugin-sdk/{manager-BEoYPn7R.js → manager-2UZBMCc7.js} +8 -8
  222. package/dist/plugin-sdk/manager-runtime-CMeLwose.js +15 -0
  223. package/dist/plugin-sdk/{outbound-ByOw1K6W.js → outbound-Ba0QUI5h.js} +5 -5
  224. package/dist/plugin-sdk/{outbound-attachment-BzVhxRRw.js → outbound-attachment-B1Laso-8.js} +2 -2
  225. package/dist/plugin-sdk/{path-alias-guards-sWayacde.js → path-alias-guards-C7Vm5DZ1.js} +1 -1
  226. package/dist/plugin-sdk/{paths-Dpg3qxcl.js → paths-DopV9PQG.js} +1 -1
  227. package/dist/plugin-sdk/{pi-embedded-helpers-DIxXkGJf.js → pi-embedded-helpers-DnA_OCzP.js} +16 -16
  228. package/dist/plugin-sdk/{pi-model-discovery-DM_2uFtj.js → pi-model-discovery-DdPqXk8f.js} +1 -1
  229. package/dist/plugin-sdk/pi-model-discovery-runtime-D8CJhtJY.js +8 -0
  230. package/dist/plugin-sdk/{pi-tools.before-tool-call.runtime-w1dqL_ty.js → pi-tools.before-tool-call.runtime-DxFHiLUE.js} +4 -4
  231. package/dist/plugin-sdk/{plugins-C4USiH29.js → plugins-CbCt4osF.js} +4 -4
  232. package/dist/plugin-sdk/{proxy-env-ET-rp8eg.js → proxy-env-C63mMdas.js} +1 -1
  233. package/dist/{proxy-fetch-CCjEYbFm.js → plugin-sdk/proxy-fetch-Ch95c_Y2.js} +1 -1
  234. package/dist/plugin-sdk/{pw-ai-CyOt3RDA.js → pw-ai-DpJk62D4.js} +9 -9
  235. package/dist/plugin-sdk/{qmd-manager-BySdoVR7.js → qmd-manager-Ca-iSfEE.js} +7 -7
  236. package/dist/plugin-sdk/{query-expansion-C6uS-7lj.js → query-expansion-B_Xe41Ab.js} +4 -4
  237. package/dist/plugin-sdk/{redact-Bvxt1T_Q.js → redact-hp9TOulW.js} +1 -1
  238. package/dist/plugin-sdk/{reply-CTCSeQqW.js → reply-CovBlFea.js} +73 -73
  239. package/dist/plugin-sdk/{resolve-outbound-target-Bw8YNANu.js → resolve-outbound-target-BbrHgyUk.js} +2 -2
  240. package/dist/plugin-sdk/{run-with-concurrency-C_KCHwvf.js → run-with-concurrency-BR1DXa8T.js} +1 -1
  241. package/dist/plugin-sdk/runtime-whatsapp-login.runtime-SkO91TZH.js +10 -0
  242. package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-B0VWK5hm.js +19 -0
  243. package/dist/plugin-sdk/{send-C0w6xP2x.js → send-BTztm3D2.js} +6 -6
  244. package/dist/plugin-sdk/{send-qPyNGSe4.js → send-BXpXBwM_.js} +13 -13
  245. package/dist/plugin-sdk/{send-BZ6nYFZr.js → send-BvAtLLPl.js} +5 -5
  246. package/dist/plugin-sdk/{send-CFf-1V89.js → send-CWJUuG0i.js} +8 -8
  247. package/dist/plugin-sdk/{send-CY-Qfwia.js → send-EcglC4cG.js} +7 -7
  248. package/dist/plugin-sdk/{session-COrvpvUQ.js → session-k256LJZT.js} +3 -3
  249. package/dist/plugin-sdk/signal.js +2 -2
  250. package/dist/plugin-sdk/{skill-commands-DZqhtmiv.js → skill-commands-DoRqLzxm.js} +4 -4
  251. package/dist/plugin-sdk/{skills-Cw_vXEJb.js → skills-QudILG6e.js} +6 -6
  252. package/dist/plugin-sdk/slash-commands.runtime-DS6vCNSL.js +13 -0
  253. package/dist/plugin-sdk/slash-dispatch.runtime-BXrxb2wd.js +52 -0
  254. package/dist/plugin-sdk/slash-skill-commands.runtime-Bd6qQ2oT.js +16 -0
  255. package/dist/plugin-sdk/{store-CMHj6IIw.js → store-BbDQw3g6.js} +2 -2
  256. package/dist/plugin-sdk/subagent-registry-runtime-1uwQbuXj.js +52 -0
  257. package/dist/plugin-sdk/{tables-CSqrHsKL.js → tables-BhvloMKN.js} +1 -1
  258. package/dist/plugin-sdk/{thinking-DOnsR_A8.js → thinking-URzkT-3p.js} +7 -7
  259. package/dist/{tokens-DxnY9ui_.js → plugin-sdk/tokens-B1PW5Ayy.js} +1 -1
  260. package/dist/plugin-sdk/{tool-images-eEfOVkzf.js → tool-images-xpqbP6RR.js} +2 -2
  261. package/dist/plugin-sdk/web-B74yhL2N.js +56 -0
  262. package/dist/plugin-sdk/{whatsapp-actions-xcleMoMv.js → whatsapp-actions-RcZ6vp61.js} +17 -17
  263. package/dist/plugin-sdk/whatsapp.js +50 -50
  264. package/dist/{plugins-CWkRQYDj.js → plugins-4Rj4OjLY.js} +11 -11
  265. package/dist/{plugins-TLur5wHC.js → plugins-DaN4Jp7R.js} +2 -2
  266. package/dist/{plugins-cli-e8svgZ6i.js → plugins-cli-540srne6.js} +82 -82
  267. package/dist/{ports-CfTWPxj9.js → ports-B6f6PDVD.js} +2 -2
  268. package/dist/{ports-BE9ZTYml.js → ports-DX1Cxj7W.js} +1 -1
  269. package/dist/{program-context-DNYbQrvx.js → program-context-iEkoyF3D.js} +41 -41
  270. package/dist/{prompt-select-styled-B7A4T4-F.js → prompt-select-styled-C1MS6ea1.js} +40 -40
  271. package/dist/{provider-auth-helpers-DolkcfyF.js → provider-auth-helpers-BeZKOpzW.js} +5 -5
  272. package/dist/{proxy-env-Cq5gdrbj.js → proxy-env-DlmzDx8x.js} +1 -1
  273. package/dist/{proxy-env-hdF2jCzB.js → proxy-env-R4DbTLy-.js} +1 -1
  274. package/dist/{plugin-sdk/proxy-fetch-uDXGKG3Z.js → proxy-fetch-B2pEfjbR.js} +1 -1
  275. package/dist/{push-apns-COJt9ulg.js → push-apns-wRpQOiqI.js} +5 -5
  276. package/dist/{pw-ai-Cl1Lc7RC.js → pw-ai-DNMjFMqH.js} +14 -14
  277. package/dist/{pw-ai-CICkGw_S.js → pw-ai-DP_aLfwB.js} +18 -18
  278. package/dist/{qmd-manager-BsYsO9Ii.js → qmd-manager-BtIKUaO9.js} +10 -10
  279. package/dist/{qmd-manager-CT6j2ntm.js → qmd-manager-DP6UdQoL.js} +20 -20
  280. package/dist/{qr-cli-CKPDy5Oq.js → qr-cli-7lXeTSek.js} +2 -2
  281. package/dist/{query-expansion-DtLc3wjL.js → query-expansion-CX-1fS52.js} +6 -6
  282. package/dist/{query-expansion-DmxOigqX.js → query-expansion-bOaotSTR.js} +12 -12
  283. package/dist/{redact-ClbcYG1J.js → redact-COik8ET1.js} +1 -1
  284. package/dist/{redact-snapshot-C6NRnnHx.js → redact-snapshot-D6W9dz8Q.js} +1 -1
  285. package/dist/{register.agent-D4BrsIbk.js → register.agent-Bjkfci3x.js} +97 -97
  286. package/dist/register.configure-BEkx9CQc.js +164 -0
  287. package/dist/{register.maintenance-x2-poSUG.js → register.maintenance-ErXA_uuU.js} +93 -93
  288. package/dist/{register.message-NeUR5N0O.js → register.message-vHhFsp94.js} +73 -73
  289. package/dist/{register.onboard-Cdh-N4A9.js → register.onboard-BgvfFczx.js} +18 -18
  290. package/dist/{register.setup-B3ADFeTG.js → register.setup-Bel3kQD6.js} +21 -21
  291. package/dist/{register.status-health-sessions-zRCJ2e-L.js → register.status-health-sessions-BEhwEKZV.js} +86 -86
  292. package/dist/{reply-BFrmGuXU.js → reply-9D8ZuOqr.js} +149 -149
  293. package/dist/{rpc-DUJUbW2t.js → rpc-BSqhmmbX.js} +1 -1
  294. package/dist/{run-with-concurrency-D_ZpbgEG.js → run-with-concurrency-BgYfgkXT.js} +4 -4
  295. package/dist/{runtime-DTxtPm0I.js → runtime-BHbS8ZHw.js} +3 -3
  296. package/dist/{runtime-config-collectors-BEvlZaJw.js → runtime-config-collectors-CXxR70dG.js} +1 -1
  297. package/dist/{runtime-whatsapp-login.runtime-DLNWSVqX.js → runtime-whatsapp-login.runtime-BkF8zMbl.js} +7 -7
  298. package/dist/runtime-whatsapp-login.runtime-DUb55byQ.js +13 -0
  299. package/dist/runtime-whatsapp-outbound.runtime-Bii_xSfI.js +22 -0
  300. package/dist/runtime-whatsapp-outbound.runtime-CdzmGvC6.js +32 -0
  301. package/dist/{sandbox-C0HLb5d5.js → sandbox-HvaJFfqL.js} +18 -18
  302. package/dist/{sandbox-cli-CHpGeoro.js → sandbox-cli-Cyu9YZx0.js} +25 -25
  303. package/dist/{secrets-cli-DgQQmw65.js → secrets-cli-B-aLO0SY.js} +11 -11
  304. package/dist/{security-cli-W-7xXDn1.js → security-cli-DZTjYQ-D.js} +42 -42
  305. package/dist/{send-Dx2RkUOZ.js → send-6lz6rNVP.js} +6 -6
  306. package/dist/{send-tsYgRPrs.js → send-7ekhdACO.js} +5 -5
  307. package/dist/{send-vmONuVgL.js → send-BHTiZcH3.js} +26 -26
  308. package/dist/{send-CJrrDXqE.js → send-BcAN5-hD.js} +11 -11
  309. package/dist/{send-BUFnD0eE.js → send-BlhxqBI9.js} +6 -6
  310. package/dist/{send-Ddtb8gLT.js → send-C9SevGlM.js} +4 -4
  311. package/dist/{send-D3BV3zCy.js → send-CVzWMFl1.js} +8 -8
  312. package/dist/{send-Bj776ESJ.js → send-L7gRiwyd.js} +7 -7
  313. package/dist/{send-DcxmcFi_.js → send-PE6cwoTe.js} +8 -8
  314. package/dist/{send-BQERFNyo.js → send-dfu6_rgf.js} +5 -5
  315. package/dist/{server-Bzgq55gk.js → server-ChrqZt3H.js} +20 -20
  316. package/dist/{server-context-DCpD_bA8.js → server-context-BhpOEoCB.js} +12 -12
  317. package/dist/{server-lifecycle-B2SzHMkK.js → server-lifecycle-BYHavdLd.js} +2 -2
  318. package/dist/{server-middleware-C_u_M_FK.js → server-middleware-BzsDWK_f.js} +1 -1
  319. package/dist/{server-node-events-BS0Yy6SL.js → server-node-events-CN7o3YoN.js} +73 -73
  320. package/dist/{service-DhcBUav5.js → service-qQCNqvmY.js} +15 -15
  321. package/dist/{session-D6FZ4tQ8.js → session-CdQJLohq.js} +1 -1
  322. package/dist/{session-A4QhBRvH.js → session-D8ImowSs.js} +8 -8
  323. package/dist/{sessions-CRTJuMXp.js → sessions-Fm2Lx117.js} +15 -15
  324. package/dist/{shared-DOUEV_Eq.js → shared-26KZSqMI.js} +1 -1
  325. package/dist/{shared-BXXG3vT8.js → shared-CWdEWtsZ.js} +3 -3
  326. package/dist/{skill-commands-CMzBZKG2.js → skill-commands-DNqJ-kwn.js} +9 -9
  327. package/dist/{skill-commands-BgzZkiJz.js → skill-commands-De4NUpNz.js} +5 -5
  328. package/dist/{skill-scanner-DcrwF2Fr.js → skill-scanner-BtrQE0gO.js} +6 -6
  329. package/dist/{skills-CE_iqvM5.js → skills-7ODkHQYp.js} +22 -22
  330. package/dist/{skills-4CjDh8J_.js → skills-Sy3onNq_.js} +3 -3
  331. package/dist/{skills-cli-CRB7e30Z.js → skills-cli-DiN4xbFz.js} +5 -5
  332. package/dist/{skills-install-DOKJADrz.js → skills-install-DksQkSIq.js} +6 -6
  333. package/dist/{skills-status-BWqCvt0g.js → skills-status-BZptMdLx.js} +1 -1
  334. package/dist/{slash-commands.runtime-DSjg6jg8.js → slash-commands.runtime-Becs7mLt.js} +11 -11
  335. package/dist/slash-commands.runtime-CVw6566g.js +16 -0
  336. package/dist/slash-dispatch.runtime-B9Ygtzi4.js +56 -0
  337. package/dist/slash-dispatch.runtime-BGHMR1xK.js +113 -0
  338. package/dist/{slash-skill-commands.runtime-DwvIfTev.js → slash-skill-commands.runtime-BqcgqTMM.js} +15 -15
  339. package/dist/slash-skill-commands.runtime-DxZ4z5h6.js +20 -0
  340. package/dist/{status-BiX1kbtY.js → status-CaG5OT-N.js} +26 -26
  341. package/dist/{status.update-QMbtfb38.js → status.update-DR8lt70f.js} +2 -2
  342. package/dist/{store-s4dlu9ZQ.js → store-B7o63XvV.js} +5 -5
  343. package/dist/{store--eR1R_UX.js → store-D89wDcz9.js} +2 -2
  344. package/dist/subagent-registry-runtime-0qZtQB7_.js +113 -0
  345. package/dist/subagent-registry-runtime-DL1Wv7nA.js +56 -0
  346. package/dist/{subsystem-Di1z8l0Z.js → subsystem-B45WV3qB.js} +14 -14
  347. package/dist/{system-cli-Dz6Xu0cZ.js → system-cli-CpyvQedP.js} +9 -9
  348. package/dist/{system-run-command-MvTaWm_5.js → system-run-command-B7_IasTx.js} +1 -1
  349. package/dist/{systemd-V-rr1rHU.js → systemd-DotMzkho.js} +9 -9
  350. package/dist/{systemd-hints-BanLoKAv.js → systemd-hints-B1n_Cmj7.js} +6 -6
  351. package/dist/{systemd-linger-CWkk4GBp.js → systemd-linger-la785pXY.js} +1 -1
  352. package/dist/{tables-D6c57Lrs.js → tables-B3d05drH.js} +1 -1
  353. package/dist/{tables-d739Y1xW.js → tables-mE4cJBN2.js} +1 -1
  354. package/dist/{tailnet-DuRcvzVE.js → tailnet-CSHZafwU.js} +1 -1
  355. package/dist/{target-errors-u7pjywIy.js → target-errors-CCgPtzPv.js} +4 -4
  356. package/dist/{target-errors-CBI2Ga0y.js → target-errors-mnlwhAjP.js} +2 -2
  357. package/dist/{thinking-DXYisHiZ.js → thinking-BeGmb5k6.js} +7 -7
  358. package/dist/{plugin-sdk/tokens-BDr0Z9o3.js → tokens-q32vI39c.js} +1 -1
  359. package/dist/{tool-images-6ceVT7-i.js → tool-images-Bhog1Yix.js} +1 -1
  360. package/dist/{tool-images-2cBx1W8h.js → tool-images-RZdHiZcG.js} +2 -2
  361. package/dist/{tui-DIVVG-0Y.js → tui-DoROfmXy.js} +6 -6
  362. package/dist/{tui-cli-DdB0uJii.js → tui-cli-Axgy0FU4.js} +32 -32
  363. package/dist/{update-cli-B0ekEE4A.js → update-cli-Dudao0uZ.js} +102 -102
  364. package/dist/{update-runner-gVTOOfSH.js → update-runner-B_J4-cY6.js} +16 -16
  365. package/dist/{update-C4nonzOq.js → update-xgJWkTh1.js} +3 -3
  366. package/dist/{web-CzWRVmFt.js → web-Btj-e8kN.js} +55 -55
  367. package/dist/web-QKn04c6k.js +117 -0
  368. package/dist/{webhooks-cli-D2omOmfe.js → webhooks-cli-HRhGQtAq.js} +6 -6
  369. package/dist/{whatsapp-actions-iEArE_Ez.js → whatsapp-actions-BHbJJyqw.js} +21 -21
  370. package/dist/{whatsapp-actions-Ds8L0msY.js → whatsapp-actions-s6qkgp-7.js} +17 -17
  371. package/dist/{with-timeout-DW6XbMi-.js → with-timeout-OltBBBXv.js} +3 -3
  372. package/dist/{workspace-B7XBLNce.js → workspace-B3uGN7Xe.js} +1 -1
  373. package/dist/{workspace-CUVC6GX1.js → workspace-U-DyR64O.js} +20 -20
  374. package/dist/{workspace-dirs-Ds-g-s99.js → workspace-dirs-0V-76Wmq.js} +1 -1
  375. package/dist/{ws-BNW54x9_.js → ws-BrCPoV7j.js} +2 -2
  376. package/dist/{wsl-CgxzAzRe.js → wsl-wYxPJ8EO.js} +2 -2
  377. package/package.json +1 -1
  378. package/scripts/create-instance.sh +125 -83
  379. package/dist/deliver-runtime-DGrrnFpY.js +0 -61
  380. package/dist/deliver-runtime-P-G3bPjW.js +0 -36
  381. package/dist/deps-send-discord.runtime-DAPWkSXf.js +0 -36
  382. package/dist/deps-send-discord.runtime-DnbhTFX9.js +0 -26
  383. package/dist/deps-send-imessage.runtime-BOiQ6mDx.js +0 -25
  384. package/dist/deps-send-imessage.runtime-DWqR6W7h.js +0 -35
  385. package/dist/deps-send-signal.runtime-CTcl388M.js +0 -24
  386. package/dist/deps-send-signal.runtime-Ce60L81Z.js +0 -34
  387. package/dist/deps-send-slack.runtime-CCqBz4Kg.js +0 -22
  388. package/dist/deps-send-slack.runtime-s0pqdhHR.js +0 -32
  389. package/dist/deps-send-telegram.runtime-DGSKTCpH.js +0 -27
  390. package/dist/deps-send-whatsapp.runtime-CJkTHkah.js +0 -60
  391. package/dist/deps-send-whatsapp.runtime-bRJ5Zed1.js +0 -118
  392. package/dist/image-runtime-CVv2ra9J.js +0 -29
  393. package/dist/image-runtime-D9iVXh4M.js +0 -55
  394. package/dist/manager-runtime-BN6VevdC.js +0 -18
  395. package/dist/pi-model-discovery-runtime-Bwmi4Ev8.js +0 -11
  396. package/dist/plugin-sdk/deliver-runtime-C5dgvvga.js +0 -32
  397. package/dist/plugin-sdk/deps-send-discord.runtime-Dg4N7PHJ.js +0 -23
  398. package/dist/plugin-sdk/deps-send-imessage.runtime-0OEwzMQm.js +0 -22
  399. package/dist/plugin-sdk/deps-send-signal.runtime-BM1jRt3G.js +0 -21
  400. package/dist/plugin-sdk/deps-send-slack.runtime-1E3BYRdF.js +0 -19
  401. package/dist/plugin-sdk/deps-send-telegram.runtime-DNCxIflA.js +0 -24
  402. package/dist/plugin-sdk/deps-send-whatsapp.runtime-OLwr-9c8.js +0 -57
  403. package/dist/plugin-sdk/image-runtime-BFm45j49.js +0 -25
  404. package/dist/plugin-sdk/manager-runtime-DxclHQ4U.js +0 -15
  405. package/dist/plugin-sdk/pi-model-discovery-runtime-BuzvkvNR.js +0 -8
  406. package/dist/plugin-sdk/runtime-whatsapp-login.runtime-BxgRDkhc.js +0 -10
  407. package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-elOqrkfg.js +0 -19
  408. package/dist/plugin-sdk/slash-commands.runtime-D67JLweo.js +0 -13
  409. package/dist/plugin-sdk/slash-dispatch.runtime-DvcpvCJ0.js +0 -52
  410. package/dist/plugin-sdk/slash-skill-commands.runtime-BM1x3azR.js +0 -16
  411. package/dist/plugin-sdk/subagent-registry-runtime-1lbDyRzz.js +0 -52
  412. package/dist/plugin-sdk/web-BLyT64pW.js +0 -56
  413. package/dist/register.configure-B8qyHllb.js +0 -164
  414. package/dist/runtime-whatsapp-login.runtime-IeylZEl4.js +0 -13
  415. package/dist/runtime-whatsapp-outbound.runtime-ClBRuLsq.js +0 -22
  416. package/dist/runtime-whatsapp-outbound.runtime-bK_Rub3q.js +0 -32
  417. package/dist/slash-commands.runtime-Cpn2tYW4.js +0 -16
  418. package/dist/slash-dispatch.runtime-DcGK4xow.js +0 -113
  419. package/dist/slash-dispatch.runtime-DoBAQBU5.js +0 -56
  420. package/dist/slash-skill-commands.runtime-DKMvvdDW.js +0 -20
  421. package/dist/subagent-registry-runtime-D5KDyK6C.js +0 -113
  422. package/dist/subagent-registry-runtime-ppWS3tVu.js +0 -56
  423. package/dist/web-C0Ki9gxL.js +0 -117
@@ -2,13 +2,13 @@ import { g as resolveStateDir, r as STATE_DIR, u as resolveGatewayPort, y as res
2
2
  import { E as normalizeLogLevel, R as FLAG_TERMINATOR, a as logVerbose, c as shouldLogVerbose, k as resolvePreferredOpenClawTmpDir, m as getChildLogger, p as theme, t as danger, u as warn, z as consumeRootOptionToken } from "./globals-BawKHR8h.js";
3
3
  import { C as sleep$1, D as isPlainObject, E as truncateUtf16Safe, S as shortenHomePath, d as isRecord$1, i as clampInt, l as escapeRegExp, m as normalizeE164, t as CONFIG_DIR, w as sliceUtf16Safe, x as shortenHomeInString, y as resolveUserPath } from "./utils-CokqDAE4.js";
4
4
  import { a as normalizeElevatedLevel, c as normalizeUsageDisplay, d as supportsXHighThinking, l as normalizeVerboseLevel, n as formatXHighModelHint, o as normalizeReasoningLevel, s as normalizeThinkLevel, t as formatThinkingLevels, u as resolveResponseUsageMode } from "./thinking-44rmAw5o.js";
5
- import { D as filterBootstrapFilesForSession, E as ensureAgentWorkspace, M as resolveAgentModelFallbackValues, N as resolveAgentModelPrimaryValue, P as toAgentModelListLike, _ as DEFAULT_AGENT_WORKSPACE_DIR, a as resolveAgentDir, b as DEFAULT_IDENTITY_FILENAME, d as resolveDefaultAgentId, f as resolveEffectiveModelFallbacks, h as resolveSessionAgentIds, i as resolveAgentConfig, k as loadWorkspaceBootstrapFiles, l as resolveAgentSkillsFilter, m as resolveSessionAgentId, p as resolveRunModelFallbacksOverride, r as listAgentIds, t as hasConfiguredModelFallbacks, u as resolveAgentWorkspaceDir, v as DEFAULT_BOOTSTRAP_FILENAME } from "./agent-scope-BbO_VBbv.js";
5
+ import { D as filterBootstrapFilesForSession, E as ensureAgentWorkspace, M as resolveAgentModelFallbackValues, N as resolveAgentModelPrimaryValue, P as toAgentModelListLike, _ as DEFAULT_AGENT_WORKSPACE_DIR, a as resolveAgentDir, b as DEFAULT_IDENTITY_FILENAME, d as resolveDefaultAgentId, f as resolveEffectiveModelFallbacks, h as resolveSessionAgentIds, i as resolveAgentConfig, k as loadWorkspaceBootstrapFiles, l as resolveAgentSkillsFilter, m as resolveSessionAgentId, p as resolveRunModelFallbacksOverride, r as listAgentIds, t as hasConfiguredModelFallbacks, u as resolveAgentWorkspaceDir, v as DEFAULT_BOOTSTRAP_FILENAME } from "./agent-scope-CNJUPFcR.js";
6
6
  import { d as defaultRuntime, t as createSubsystemLogger, u as createNonExitingRuntime } from "./subsystem-BiaB_3Ei.js";
7
7
  import { C as isCronRunSessionKey, D as resolveThreadParentSessionKey, E as parseAgentSessionKey, S as isAcpSessionKey, T as isSubagentSessionKey, _ as normalizeAccountId$2, b as deriveSessionChatType, c as normalizeAgentId, d as resolveThreadSessionKeys, f as sanitizeAgentId, g as DEFAULT_ACCOUNT_ID, i as buildAgentPeerSessionKey, l as normalizeMainKey, n as DEFAULT_MAIN_KEY, o as classifySessionKeyShape, p as scopedHeartbeatWakeOptions, r as buildAgentMainSessionKey, s as isValidAgentId, t as DEFAULT_AGENT_ID, u as resolveAgentIdFromSessionKey, v as normalizeOptionalAccountId, w as isCronSessionKey, x as getSubagentDepth, y as isBlockedObjectKey } from "./session-key-CIXZm7v4.js";
8
- import { a as openBoundaryFileSync, h as normalizeWindowsPathForComparison, i as openBoundaryFile, t as resolveOpenClawPackageRoot } from "./openclaw-root-DeEQQJyX.js";
8
+ import { a as openBoundaryFileSync, h as normalizeWindowsPathForComparison, i as openBoundaryFile, t as resolveOpenClawPackageRoot } from "./openclaw-root-DG6I1Pl4.js";
9
9
  import { i as logWarn, n as logError, r as logInfo, t as logDebug } from "./logger-fgPrvtjf.js";
10
10
  import { n as runExec, r as spawnWithFallback, t as runCommandWithTimeout } from "./exec-Cu2obwh9.js";
11
- import { $ as buildUsageWithNoCost, $n as validateJsonSchemaValue, $t as loadConfig, Ai as resolveAuthProfileDisplayLabel, B as retryAsync, Bi as DEFAULT_MODEL, Dn as parseDurationMs, Dt as resolveTokenExpiryState, Ei as withFileLock, Et as evaluateStoredCredentialEligibility, Fi as normalizeSecretInput, Gn as isAvatarDataUrl, J as OLLAMA_NATIVE_BASE_URL, Jn as isPathWithinRoot, Jr as resolveDiscordPreviewStreamMode, Kn as isAvatarHttpUrl, Q as buildStreamErrorAssistantMessage, Qn as resolveAvatarMime, Ri as splitTrailingAuthProfile, S as resolveThinkingDefault, St as markAuthProfileUsed, Ti as resolveOpenClawAgentDir, Tt as resolveApiKeyForProfile, Vi as DEFAULT_PROVIDER, Vr as applyMergePatch, Wn as AVATAR_MAX_BYTES, X as buildAssistantMessage, Xn as isWorkspaceRelativeAvatarPath, Xr as resolveSlackStreamingMode, Y as createOllamaStreamFn, Yn as isSupportedLocalAvatarExtension, Yr as resolveSlackNativeStreaming, Z as buildAssistantMessageWithZeroUsage, _n as parseNonNegativeByteSize, _t as resolveAuthProfileOrder, ai as getShellPathFromLoginShell, an as writeConfigFile, ar as getConfigValueAtPath, at as resolveEnvApiKey, bt as isProfileInCooldown, c as modelKey, cn as TELEGRAM_COMMAND_NAME_PATTERN, cr as unsetConfigValueAtPath, d as normalizeProviderId, di as dedupeProfileIds, et as getApiKeyForModel, f as parseModelRef, fi as listProfilesForProvider, fn as isInboundPathAllowed, g as resolveDefaultModelForAgent, gn as normalizeScpRemoteHost, gr as buildEnforcedShellCommand, h as resolveConfiguredModelRef, hn as resolveIMessageRemoteAttachmentRoots, i as findNormalizedProviderValue, ir as unsetConfigOverride, l as normalizeModelRef$2, li as resolveOwnerDisplaySetting, ln as normalizeTelegramCommandName, mn as resolveIMessageAttachmentRoots, n as buildConfiguredAllowlistKeys, ni as resolveAgentMaxConcurrent, nr as resetConfigOverrides, nt as requireApiKey, o as inferUniqueProviderFromConfiguredModels, oi as resolveShellEnvFallbackTimeoutMs, on as validateConfigObjectWithPlugins, or as parseConfigPath, ot as resolveModelAuthMode, pi as markAuthProfileGood, qr as mapStreamingModeToSlackLegacyDraftStreamMode, r as buildModelAliasIndex, rn as resolveConfigSnapshotHash, rr as setConfigOverride, rt as resolveApiKeyForProvider, s as isCliProvider, sr as setConfigValueAtPath, t as buildAllowedModelSet, ti as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, tn as readConfigFileSnapshot, tr as getConfigOverrides, tt as getCustomProviderApiKey, un as resolveTelegramCustomCommands, v as resolveModelRefFromString, vi as ensureAuthProfileStore, vt as clearExpiredCooldowns, wi as resolveAuthStorePathForDisplay, wt as resolveProfilesUnavailableReason, x as resolveSubagentSpawnModelSelection, xt as markAuthProfileFailure, y as resolveReasoningDefault, yt as getSoonestCooldownExpiry, z as resolveRetryConfig, zi as DEFAULT_CONTEXT_TOKENS } from "./model-selection-DqSNdtby.js";
11
+ import { $ as buildUsageWithNoCost, $n as validateJsonSchemaValue, $t as loadConfig, Ai as resolveAuthProfileDisplayLabel, B as retryAsync, Bi as DEFAULT_MODEL, Dn as parseDurationMs, Dt as resolveTokenExpiryState, Ei as withFileLock, Et as evaluateStoredCredentialEligibility, Fi as normalizeSecretInput, Gn as isAvatarDataUrl, J as OLLAMA_NATIVE_BASE_URL, Jn as isPathWithinRoot, Jr as resolveDiscordPreviewStreamMode, Kn as isAvatarHttpUrl, Q as buildStreamErrorAssistantMessage, Qn as resolveAvatarMime, Ri as splitTrailingAuthProfile, S as resolveThinkingDefault, St as markAuthProfileUsed, Ti as resolveOpenClawAgentDir, Tt as resolveApiKeyForProfile, Vi as DEFAULT_PROVIDER, Vr as applyMergePatch, Wn as AVATAR_MAX_BYTES, X as buildAssistantMessage, Xn as isWorkspaceRelativeAvatarPath, Xr as resolveSlackStreamingMode, Y as createOllamaStreamFn, Yn as isSupportedLocalAvatarExtension, Yr as resolveSlackNativeStreaming, Z as buildAssistantMessageWithZeroUsage, _n as parseNonNegativeByteSize, _t as resolveAuthProfileOrder, ai as getShellPathFromLoginShell, an as writeConfigFile, ar as getConfigValueAtPath, at as resolveEnvApiKey, bt as isProfileInCooldown, c as modelKey, cn as TELEGRAM_COMMAND_NAME_PATTERN, cr as unsetConfigValueAtPath, d as normalizeProviderId, di as dedupeProfileIds, et as getApiKeyForModel, f as parseModelRef, fi as listProfilesForProvider, fn as isInboundPathAllowed, g as resolveDefaultModelForAgent, gn as normalizeScpRemoteHost, gr as buildEnforcedShellCommand, h as resolveConfiguredModelRef, hn as resolveIMessageRemoteAttachmentRoots, i as findNormalizedProviderValue, ir as unsetConfigOverride, l as normalizeModelRef$2, li as resolveOwnerDisplaySetting, ln as normalizeTelegramCommandName, mn as resolveIMessageAttachmentRoots, n as buildConfiguredAllowlistKeys, ni as resolveAgentMaxConcurrent, nr as resetConfigOverrides, nt as requireApiKey, o as inferUniqueProviderFromConfiguredModels, oi as resolveShellEnvFallbackTimeoutMs, on as validateConfigObjectWithPlugins, or as parseConfigPath, ot as resolveModelAuthMode, pi as markAuthProfileGood, qr as mapStreamingModeToSlackLegacyDraftStreamMode, r as buildModelAliasIndex, rn as resolveConfigSnapshotHash, rr as setConfigOverride, rt as resolveApiKeyForProvider, s as isCliProvider, sr as setConfigValueAtPath, t as buildAllowedModelSet, ti as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, tn as readConfigFileSnapshot, tr as getConfigOverrides, tt as getCustomProviderApiKey, un as resolveTelegramCustomCommands, v as resolveModelRefFromString, vi as ensureAuthProfileStore, vt as clearExpiredCooldowns, wi as resolveAuthStorePathForDisplay, wt as resolveProfilesUnavailableReason, x as resolveSubagentSpawnModelSelection, xt as markAuthProfileFailure, y as resolveReasoningDefault, yt as getSoonestCooldownExpiry, z as resolveRetryConfig, zi as DEFAULT_CONTEXT_TOKENS } from "./model-selection-DZM1M4yx.js";
12
12
  import { E as triggerInternalHook, M as normalizeResolvedSecretInputString, S as matchPluginCommand, _ as normalizePluginHttpPath, b as getPluginCommandSpecs, c as normalizeChannelId$1, d as getActivePluginRegistryKey, g as createPluginRegistry, k as coerceSecretRef, m as setActivePluginRegistry, n as CHAT_CHANNEL_ORDER, p as requireActivePluginRegistry, s as normalizeAnyChannelId, u as getActivePluginRegistry, v as clearPluginCommands, w as createInternalHookEvent, x as listPluginCommands, y as executePluginCommand } from "./registry-CTtrVpZB.js";
13
13
  import { a as saveJsonFile, i as loadJsonFile } from "./github-copilot-token-b6kJVrW-.js";
14
14
  import { t as formatCliCommand } from "./command-format-Gp1OUMPH.js";
@@ -16,94 +16,94 @@ import { t as parseBooleanValue$1 } from "./boolean-BsqeuxE6.js";
16
16
  import { t as isTruthyEnvValue } from "./env-CNF75H3c.js";
17
17
  import { n as isDangerousHostEnvVarName } from "./host-env-security-DkAVVuaw.js";
18
18
  import { r as VERSION } from "./env-vars-ausEv-bN.js";
19
- import { a as safeStatSync, d as normalizePluginsConfig, f as resolveEffectiveEnableState, i as isPathInside, l as applyTestPluginDefaults, n as loadPluginManifestRegistry, p as resolveMemorySlotDecision, r as discoverOpenClawPlugins } from "./manifest-registry-D74D25g7.js";
20
- import { a as resolveChannelGroupRequireMention, c as normalizeHyphenSlug, i as resolveChannelGroupPolicy, l as normalizeStringEntries, n as listChannelDocks, r as normalizeSignalMessagingTarget, s as normalizeAtHashSlug, t as getChannelDock, u as normalizeStringEntriesLower } from "./dock-SpSqP4RS.js";
19
+ import { a as safeStatSync, d as normalizePluginsConfig, f as resolveEffectiveEnableState, i as isPathInside, l as applyTestPluginDefaults, n as loadPluginManifestRegistry, p as resolveMemorySlotDecision, r as discoverOpenClawPlugins } from "./manifest-registry-QfHOpQrg.js";
20
+ import { a as resolveChannelGroupRequireMention, c as normalizeHyphenSlug, i as resolveChannelGroupPolicy, l as normalizeStringEntries, n as listChannelDocks, r as normalizeSignalMessagingTarget, s as normalizeAtHashSlug, t as getChannelDock, u as normalizeStringEntriesLower } from "./dock-BR4hdehX.js";
21
21
  import { t as runTasksWithConcurrency } from "./run-with-concurrency-C3sn1gEK.js";
22
22
  import { a as isInternalMessageChannel, c as listDeliverableMessageChannels, d as resolveMessageChannel, h as GATEWAY_CLIENT_NAMES, i as isGatewayMessageChannel, l as normalizeMessageChannel, m as GATEWAY_CLIENT_MODES, n as isDeliverableMessageChannel, o as isMarkdownCapableMessageChannel, p as GATEWAY_CLIENT_IDS, t as INTERNAL_MESSAGE_CHANNEL, u as resolveGatewayMessageChannel } from "./message-channel-S2KEwruz.js";
23
- import { $ as stripUndefinedFields, A as unpinMessageDiscord, At as resolveChannelEntryMatchWithFallback, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveDiscordSystemLocation, D as pinMessageDiscord, Dt as applyChannelMatchMeta, E as listThreadsDiscord, Et as fetchDiscord, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, Ot as buildChannelKeyCandidates, P as fetchChannelInfoDiscord, Q as sendDiscordText, R as kickMemberDiscord, S as deleteMessageDiscord, St as formatDiscordUserTag, T as listPinsDiscord, Tt as DiscordApiError, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendStickerDiscord, _t as resolveDiscordOwnerAllowFrom, a as sendDiscordComponentMessage, at as parseDiscordTarget, b as formatMention, bt as shouldEmitDiscordReactionNotification, c as parseDiscordComponentCustomId, ct as listDiscordDirectoryPeersLive, d as parseDiscordModalCustomIdForCarbon, dt as normalizeDiscordSlug, et as fetchChannelPermissionsDiscord, f as readDiscordComponentSpec, ft as resolveDiscordAllowListMatch, g as sendPollDiscord, gt as resolveDiscordOwnerAccess, h as sendMessageDiscord, ht as resolveDiscordMemberAccessState, i as removeReactionDiscord, it as chunkDiscordTextWithMode, j as addRoleDiscord, k as searchMessagesDiscord, kt as normalizeChannelSlug, l as parseDiscordComponentCustomIdForCarbon, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordModalEntry, mt as resolveDiscordGuildEntry, n as reactMessageDiscord, nt as createDiscordClient, o as createDiscordFormModal, ot as resolveDiscordChannelId, p as resolveDiscordComponentEntry, pt as resolveDiscordChannelConfigWithFallback, q as deleteChannelDiscord, r as removeOwnReactionsDiscord, rt as createDiscordRestClient, s as formatDiscordComponentEventText, st as listDiscordDirectoryGroupsLive, t as fetchReactionsDiscord, tt as hasAnyGuildPermissionDiscord, u as parseDiscordModalCustomId, ut as normalizeDiscordAllowList, v as sendVoiceMessageDiscord, vt as resolveDiscordShouldRequireMention, w as fetchMessageDiscord, wt as resolveTimestampMs, x as createThreadDiscord, xt as formatDiscordReactionEmoji, y as sendWebhookMessageDiscord, yt as resolveGroupDmAllow, z as listGuildChannelsDiscord } from "./send-CJrrDXqE.js";
24
- import { A as normalizeDiscordToken, C as isWhatsAppGroupJid, D as listEnabledDiscordAccounts, S as resolveSlackBotToken, T as createDiscordActionGate, a as createTelegramActionGate, b as resolveSlackReplyToMode, h as listBindings, j as normalizeChatType, k as resolveDiscordAccount, l as resolveTelegramAccount, m as buildChannelAccountBindings, n as listChannelPlugins, o as listEnabledTelegramAccounts, r as normalizeChannelId$2, s as listTelegramAccountIds, t as getChannelPlugin, u as resolveTelegramToken, w as normalizeWhatsAppTarget, x as resolveSlackAppToken, y as resolveSlackAccount } from "./plugins-TLur5wHC.js";
25
- import { $ as resolveMainSessionKey, B as resolveSessionKey, C as normalizeSessionDeliveryFields, D as capArrayByJsonBytes, E as archiveSessionTranscripts, F as parseInlineDirectives$1, G as resolveThreadFlag, H as resolveChannelResetConfig, J as resolveFreshSessionTotalTokens, K as DEFAULT_RESET_TRIGGERS, Q as resolveExplicitAgentSessionKey, R as jsonUtf8Bytes, S as normalizeDeliveryContext, U as resolveSessionResetPolicy, V as evaluateSessionFreshness, W as resolveSessionResetType, X as canonicalizeMainSessionAlias, Y as setSessionRuntimeModel, Z as resolveAgentMainSessionKey, _ as isCacheEnabled, a as resolveAndPersistSessionFile, at as buildGroupDisplayName, b as deliveryContextKey, c as recordSessionMetaFromInbound, d as updateSessionStore, f as updateSessionStoreEntry, j as readSessionTitleFieldsFromTranscript, lt as resolveSessionLockMaxHoldFromTimeout, n as parseSessionThreadInfo, o as loadSessionStore, ot as resolveGroupSessionKey, q as mergeSessionEntry, r as appendAssistantMessageToSessionTranscript, s as readSessionUpdatedAt, st as acquireSessionWriteLock, t as extractDeliveryInfo, tt as deriveSessionMetaPatch, u as updateLastRoute, ut as resolveConversationLabel, v as resolveCacheTtlMs$1, w as normalizeAccountId$3, x as mergeDeliveryContext, y as deliveryContextFromSession } from "./sessions-CRTJuMXp.js";
26
- import { _ as CLI_OUTPUT_MAX_BUFFER, a as resolveAutoImageModel, c as buildRandomTempFilePath, f as resolveAttachmentKind, g as resolveMediaUnderstandingScope, h as normalizeMediaUnderstandingChatType, i as normalizeMediaAttachments, m as resolveTimeoutMs$1, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, p as resolveConcurrency, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as registerUnhandledRejectionHandler, v as applyTemplate } from "./audio-transcription-runner-B9-J1DUd.js";
27
- import { _ as stripReasoningTagsFromText, a as resolveProviderVisionModelFromConfig, b as extractTextFromChatContent, c as extractThinkingFromTaggedStream, d as inferToolMetaFromArgs, f as isAssistantMessage, g as stripThinkingTagsFromText, h as stripMinimaxToolCallXml, i as decodeDataUrl, l as extractThinkingFromTaggedText, m as stripDowngradedToolCallText, n as coerceImageAssistantText, o as extractAssistantText$1, p as promoteThinkingTagsToBlocks, r as coerceImageModelConfig, s as extractAssistantThinking, u as formatReasoningMessage, v as findCodeRegions, x as minimaxUnderstandImage, y as isInsideCode } from "./image-BaqqhHHh.js";
28
- import { t as ensureOpenClawModelsJson } from "./models-config-5EhgxVMQ.js";
29
- import { A as isTransientHttpError, B as resolveBootstrapTotalMaxChars, C as isCompactionFailureError, D as isLikelyContextOverflowError, E as isFailoverErrorMessage, F as isTimeoutErrorMessage, I as buildBootstrapContextFiles, L as ensureSessionHeader, M as parseImageSizeError, N as sanitizeUserFacingText, O as isRateLimitAssistantError, P as isAuthPermanentErrorMessage, R as resolveBootstrapMaxChars, S as isCloudCodeAssistFormatError, T as isFailoverAssistantError, V as sanitizeGoogleTurnOrdering, _ as formatBillingErrorMessage, a as isMessagingToolDuplicateNormalized, b as isAuthAssistantError, c as extractToolCallsFromAssistant, d as downgradeOpenAIFunctionCallReasoningPairs, f as downgradeOpenAIReasoningBlocks, g as formatAssistantErrorText, h as classifyFailoverReason, j as parseImageDimensionError, k as isRawApiErrorPayload, l as extractToolResultId, m as BILLING_ERROR_USER_MESSAGE, n as validateGeminiTurns, o as normalizeTextForComparison, p as isGoogleModelApi, r as pickFallbackThinkingLevel, s as sanitizeSessionMessagesImages, t as validateAnthropicTurns, u as sanitizeToolCallIdsForCloudCodeAssist, v as formatRawAssistantErrorForUi, w as isContextOverflowError, x as isBillingAssistantError, y as getApiErrorPayloadFingerprint, z as resolveBootstrapPromptTruncationWarningMode } from "./pi-embedded-helpers-DXrnVbBZ.js";
30
- import { C as resolveToolProfilePolicy, S as normalizeToolName, T as matchesAnyGlobPattern, _ as collectExplicitAllowlist, a as ensureSandboxWorkspaceForSession, b as stripPluginOnlyAllowlist, c as resolveSandboxRuntimeStatus, d as getBridgeAuthForPort, f as resolveSandboxConfigForAgent, g as buildPluginToolGroups, h as applyOwnerOnlyToolPolicy, o as resolveSandboxContext, v as expandPolicyWithPluginGroups, w as compileGlobPatterns, y as mergeAlsoAllowPolicy } from "./sandbox-C0HLb5d5.js";
31
- import { j as DEFAULT_AI_SNAPSHOT_MAX_CHARS } from "./chrome-DBMFZ1ho.js";
32
- import { i as isLoopbackHost } from "./ws-BNW54x9_.js";
23
+ import { $ as stripUndefinedFields, A as unpinMessageDiscord, At as resolveChannelEntryMatchWithFallback, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveDiscordSystemLocation, D as pinMessageDiscord, Dt as applyChannelMatchMeta, E as listThreadsDiscord, Et as fetchDiscord, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, Ot as buildChannelKeyCandidates, P as fetchChannelInfoDiscord, Q as sendDiscordText, R as kickMemberDiscord, S as deleteMessageDiscord, St as formatDiscordUserTag, T as listPinsDiscord, Tt as DiscordApiError, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendStickerDiscord, _t as resolveDiscordOwnerAllowFrom, a as sendDiscordComponentMessage, at as parseDiscordTarget, b as formatMention, bt as shouldEmitDiscordReactionNotification, c as parseDiscordComponentCustomId, ct as listDiscordDirectoryPeersLive, d as parseDiscordModalCustomIdForCarbon, dt as normalizeDiscordSlug, et as fetchChannelPermissionsDiscord, f as readDiscordComponentSpec, ft as resolveDiscordAllowListMatch, g as sendPollDiscord, gt as resolveDiscordOwnerAccess, h as sendMessageDiscord, ht as resolveDiscordMemberAccessState, i as removeReactionDiscord, it as chunkDiscordTextWithMode, j as addRoleDiscord, k as searchMessagesDiscord, kt as normalizeChannelSlug, l as parseDiscordComponentCustomIdForCarbon, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordModalEntry, mt as resolveDiscordGuildEntry, n as reactMessageDiscord, nt as createDiscordClient, o as createDiscordFormModal, ot as resolveDiscordChannelId, p as resolveDiscordComponentEntry, pt as resolveDiscordChannelConfigWithFallback, q as deleteChannelDiscord, r as removeOwnReactionsDiscord, rt as createDiscordRestClient, s as formatDiscordComponentEventText, st as listDiscordDirectoryGroupsLive, t as fetchReactionsDiscord, tt as hasAnyGuildPermissionDiscord, u as parseDiscordModalCustomId, ut as normalizeDiscordAllowList, v as sendVoiceMessageDiscord, vt as resolveDiscordShouldRequireMention, w as fetchMessageDiscord, wt as resolveTimestampMs, x as createThreadDiscord, xt as formatDiscordReactionEmoji, y as sendWebhookMessageDiscord, yt as resolveGroupDmAllow, z as listGuildChannelsDiscord } from "./send-BcAN5-hD.js";
24
+ import { A as normalizeDiscordToken, C as isWhatsAppGroupJid, D as listEnabledDiscordAccounts, S as resolveSlackBotToken, T as createDiscordActionGate, a as createTelegramActionGate, b as resolveSlackReplyToMode, h as listBindings, j as normalizeChatType, k as resolveDiscordAccount, l as resolveTelegramAccount, m as buildChannelAccountBindings, n as listChannelPlugins, o as listEnabledTelegramAccounts, r as normalizeChannelId$2, s as listTelegramAccountIds, t as getChannelPlugin, u as resolveTelegramToken, w as normalizeWhatsAppTarget, x as resolveSlackAppToken, y as resolveSlackAccount } from "./plugins-DaN4Jp7R.js";
25
+ import { $ as resolveMainSessionKey, B as resolveSessionKey, C as normalizeSessionDeliveryFields, D as capArrayByJsonBytes, E as archiveSessionTranscripts, F as parseInlineDirectives$1, G as resolveThreadFlag, H as resolveChannelResetConfig, J as resolveFreshSessionTotalTokens, K as DEFAULT_RESET_TRIGGERS, Q as resolveExplicitAgentSessionKey, R as jsonUtf8Bytes, S as normalizeDeliveryContext, U as resolveSessionResetPolicy, V as evaluateSessionFreshness, W as resolveSessionResetType, X as canonicalizeMainSessionAlias, Y as setSessionRuntimeModel, Z as resolveAgentMainSessionKey, _ as isCacheEnabled, a as resolveAndPersistSessionFile, at as buildGroupDisplayName, b as deliveryContextKey, c as recordSessionMetaFromInbound, d as updateSessionStore, f as updateSessionStoreEntry, j as readSessionTitleFieldsFromTranscript, lt as resolveSessionLockMaxHoldFromTimeout, n as parseSessionThreadInfo, o as loadSessionStore, ot as resolveGroupSessionKey, q as mergeSessionEntry, r as appendAssistantMessageToSessionTranscript, s as readSessionUpdatedAt, st as acquireSessionWriteLock, t as extractDeliveryInfo, tt as deriveSessionMetaPatch, u as updateLastRoute, ut as resolveConversationLabel, v as resolveCacheTtlMs$1, w as normalizeAccountId$3, x as mergeDeliveryContext, y as deliveryContextFromSession } from "./sessions-Fm2Lx117.js";
26
+ import { _ as CLI_OUTPUT_MAX_BUFFER, a as resolveAutoImageModel, c as buildRandomTempFilePath, f as resolveAttachmentKind, g as resolveMediaUnderstandingScope, h as normalizeMediaUnderstandingChatType, i as normalizeMediaAttachments, m as resolveTimeoutMs$1, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, p as resolveConcurrency, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as registerUnhandledRejectionHandler, v as applyTemplate } from "./audio-transcription-runner-sLK1yiya.js";
27
+ import { _ as stripReasoningTagsFromText, a as resolveProviderVisionModelFromConfig, b as extractTextFromChatContent, c as extractThinkingFromTaggedStream, d as inferToolMetaFromArgs, f as isAssistantMessage, g as stripThinkingTagsFromText, h as stripMinimaxToolCallXml, i as decodeDataUrl, l as extractThinkingFromTaggedText, m as stripDowngradedToolCallText, n as coerceImageAssistantText, o as extractAssistantText$1, p as promoteThinkingTagsToBlocks, r as coerceImageModelConfig, s as extractAssistantThinking, u as formatReasoningMessage, v as findCodeRegions, x as minimaxUnderstandImage, y as isInsideCode } from "./image-CDKYPK1-.js";
28
+ import { t as ensureOpenClawModelsJson } from "./models-config-BLJwyO9D.js";
29
+ import { A as isTransientHttpError, B as resolveBootstrapTotalMaxChars, C as isCompactionFailureError, D as isLikelyContextOverflowError, E as isFailoverErrorMessage, F as isTimeoutErrorMessage, I as buildBootstrapContextFiles, L as ensureSessionHeader, M as parseImageSizeError, N as sanitizeUserFacingText, O as isRateLimitAssistantError, P as isAuthPermanentErrorMessage, R as resolveBootstrapMaxChars, S as isCloudCodeAssistFormatError, T as isFailoverAssistantError, V as sanitizeGoogleTurnOrdering, _ as formatBillingErrorMessage, a as isMessagingToolDuplicateNormalized, b as isAuthAssistantError, c as extractToolCallsFromAssistant, d as downgradeOpenAIFunctionCallReasoningPairs, f as downgradeOpenAIReasoningBlocks, g as formatAssistantErrorText, h as classifyFailoverReason, j as parseImageDimensionError, k as isRawApiErrorPayload, l as extractToolResultId, m as BILLING_ERROR_USER_MESSAGE, n as validateGeminiTurns, o as normalizeTextForComparison, p as isGoogleModelApi, r as pickFallbackThinkingLevel, s as sanitizeSessionMessagesImages, t as validateAnthropicTurns, u as sanitizeToolCallIdsForCloudCodeAssist, v as formatRawAssistantErrorForUi, w as isContextOverflowError, x as isBillingAssistantError, y as getApiErrorPayloadFingerprint, z as resolveBootstrapPromptTruncationWarningMode } from "./pi-embedded-helpers-CuG0ngBL.js";
30
+ import { C as resolveToolProfilePolicy, S as normalizeToolName, T as matchesAnyGlobPattern, _ as collectExplicitAllowlist, a as ensureSandboxWorkspaceForSession, b as stripPluginOnlyAllowlist, c as resolveSandboxRuntimeStatus, d as getBridgeAuthForPort, f as resolveSandboxConfigForAgent, g as buildPluginToolGroups, h as applyOwnerOnlyToolPolicy, o as resolveSandboxContext, v as expandPolicyWithPluginGroups, w as compileGlobPatterns, y as mergeAlsoAllowPolicy } from "./sandbox-HvaJFfqL.js";
31
+ import { j as DEFAULT_AI_SNAPSHOT_MAX_CHARS } from "./chrome-CQR5U4Oc.js";
32
+ import { i as isLoopbackHost } from "./ws-BrCPoV7j.js";
33
33
  import { r as trimToUndefined, t as resolveGatewayCredentialsFromConfig } from "./credentials-DWbOUxWG.js";
34
- import { c as resolveBrowserControlAuth, i as resolveBrowserConfig } from "./server-context-DCpD_bA8.js";
35
- import { a as resolveSkillsPromptForRun, d as resolveSandboxInputPath, h as applySkillEnvOverridesFromSnapshot, i as loadWorkspaceSkillEntries, l as assertMediaNotDataUrl, m as applySkillEnvOverrides, p as resolveSandboxedMediaSource, r as buildWorkspaceSkillSnapshot, u as assertSandboxPath } from "./skills-4CjDh8J_.js";
36
- import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-BzAaCM2k.js";
37
- import { i as resolveExistingPathsWithinRoot, r as DEFAULT_UPLOAD_DIR } from "./paths-1ThfklTP.js";
34
+ import { c as resolveBrowserControlAuth, i as resolveBrowserConfig } from "./server-context-BhpOEoCB.js";
35
+ import { a as resolveSkillsPromptForRun, d as resolveSandboxInputPath, h as applySkillEnvOverridesFromSnapshot, i as loadWorkspaceSkillEntries, l as assertMediaNotDataUrl, m as applySkillEnvOverrides, p as resolveSandboxedMediaSource, r as buildWorkspaceSkillSnapshot, u as assertSandboxPath } from "./skills-Sy3onNq_.js";
36
+ import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-CY88Htx_.js";
37
+ import { i as resolveExistingPathsWithinRoot, r as DEFAULT_UPLOAD_DIR } from "./paths-C48pWRFv.js";
38
38
  import { a as testRegexWithBoundedInput, i as compileSafeRegex, n as redactSensitiveText } from "./redact-sDsI6gV3.js";
39
39
  import { i as formatUncaughtError, r as formatErrorMessage, s as readErrorName } from "./errors-BkPBAjci.js";
40
- import { i as openFileWithinRoot, l as writeFileWithinRoot, n as copyFileWithinRoot, o as readFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-mG29clJ9.js";
41
- import { a as isBlockedHostnameOrIp, c as normalizeHostname, n as SsrFBlockedError } from "./proxy-env-hdF2jCzB.js";
42
- import { c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, g as MAX_IMAGE_BYTES, i as getImageMetadata, l as extensionForMime, m as kindFromMime, p as isGifMedia, s as resizeToJpeg, v as mediaKindFromMime } from "./image-ops-CKnT_r12.js";
43
- import { i as saveMediaBuffer, r as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-s4dlu9ZQ.js";
44
- import { s as resolveLsofCommandSync } from "./ports-CfTWPxj9.js";
40
+ import { i as openFileWithinRoot, l as writeFileWithinRoot, n as copyFileWithinRoot, o as readFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-D_adQJX4.js";
41
+ import { a as isBlockedHostnameOrIp, c as normalizeHostname, n as SsrFBlockedError } from "./proxy-env-R4DbTLy-.js";
42
+ import { c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, g as MAX_IMAGE_BYTES, i as getImageMetadata, l as extensionForMime, m as kindFromMime, p as isGifMedia, s as resizeToJpeg, v as mediaKindFromMime } from "./image-ops-BTwvusXV.js";
43
+ import { i as saveMediaBuffer, r as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-B7o63XvV.js";
44
+ import { s as resolveLsofCommandSync } from "./ports-B6f6PDVD.js";
45
45
  import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-CO1VkMEt.js";
46
- import { r as writeJsonAtomic } from "./json-files-D6M304Qd.js";
47
- import { _ as webAuthExists, c as logWebSelfId, i as resolveWhatsAppAccount, l as logoutWeb, p as readWebSelfId, s as getWebAuthAgeMs, y as resolveAccountEntry } from "./accounts-4vg8osA5.js";
48
- import { r as resolveIMessageAccount } from "./accounts-BgOnManD.js";
49
- import { i as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-CXo4Ac3z.js";
50
- import { a as validateSlackBlocksArray, c as resolveSlackWebClientOptions, i as parseSlackBlocksInput, l as parseSlackTarget, n as markdownToSlackMrkdwnChunks, o as buildSlackBlocksFallbackText, r as normalizeSlackOutboundText, s as createSlackWebClient, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-Ddtb8gLT.js";
46
+ import { r as writeJsonAtomic } from "./json-files-DIEpaxUj.js";
47
+ import { _ as webAuthExists, c as logWebSelfId, i as resolveWhatsAppAccount, l as logoutWeb, p as readWebSelfId, s as getWebAuthAgeMs, y as resolveAccountEntry } from "./accounts-BPt-s1cW.js";
48
+ import { r as resolveIMessageAccount } from "./accounts-CC3alHma.js";
49
+ import { i as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-CNIODbBr.js";
50
+ import { a as validateSlackBlocksArray, c as resolveSlackWebClientOptions, i as parseSlackBlocksInput, l as parseSlackTarget, n as markdownToSlackMrkdwnChunks, o as buildSlackBlocksFallbackText, r as normalizeSlackOutboundText, s as createSlackWebClient, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-C9SevGlM.js";
51
51
  import { c as resolveStorePath, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, r as resolveSessionFilePathOptions, t as resolveDefaultSessionStorePath } from "./paths-D24h0XR4.js";
52
52
  import { i as normalizeInputProvenance, n as applyInputProvenanceToUserMessage, r as hasInterSessionUserProvenance } from "./input-provenance-K1purPKY.js";
53
53
  import { n as onSessionTranscriptUpdate, t as emitSessionTranscriptUpdate } from "./transcript-events-BtGqtPqd.js";
54
- import { a as canonicalizeBase64, i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, o as estimateBase64DecodedBytes, r as sanitizeToolResultImages } from "./tool-images-6ceVT7-i.js";
54
+ import { a as canonicalizeBase64, i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, o as estimateBase64DecodedBytes, r as sanitizeToolResultImages } from "./tool-images-Bhog1Yix.js";
55
55
  import { n as formatToolSummary, r as resolveToolDisplay } from "./tool-display-D1uTM_Dm.js";
56
56
  import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-BTot-we4.js";
57
- import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-NyNh7p-s.js";
58
- import { a as readResponseWithLimit, i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, r as MediaFetchError, t as getAgentScopedMediaLocalRoots } from "./local-roots-BCYAjsgu.js";
59
- import { n as loadModelCatalog, r as modelSupportsVision, t as findModelInCatalog } from "./model-catalog-QXAt20Vy.js";
57
+ import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-Ca0W-yZr.js";
58
+ import { a as readResponseWithLimit, i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, r as MediaFetchError, t as getAgentScopedMediaLocalRoots } from "./local-roots-_noFNwvo.js";
59
+ import { n as loadModelCatalog, r as modelSupportsVision, t as findModelInCatalog } from "./model-catalog-BH55qLYK.js";
60
60
  import { t as makeProxyFetch } from "./proxy-fetch-DVvCU_Cg.js";
61
61
  import { a as stripSilentToken, i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-4XdPiPs_.js";
62
- import { A as initializeGlobalHookRunner, C as shouldSuppressReasoningPayload, D as normalizeChannelTargetInput, E as buildTargetResolverSignature, O as normalizeTargetForProvider, S as shouldSuppressMessagingToolReplies, T as resolveReplyToMode, _ as applyReplyTagsToPayload, a as normalizeOutboundPayloadsForJson, b as filterMessagingToolMediaDuplicates, c as parseReplyDirectives, d as toInternalMessagePreprocessedContext, f as toInternalMessageReceivedContext, g as fireAndForgetHook, h as toPluginMessageReceivedEvent, i as normalizeOutboundPayloads, k as getGlobalHookRunner, l as splitMediaFromOutput, m as toPluginMessageContext, o as normalizeReplyPayloadsForDelivery, p as toInternalMessageTranscribedContext, r as formatOutboundPayloadLog, s as throwIfAborted, t as deliverOutboundPayloads, u as deriveInboundMessageHookContext, v as applyReplyThreading, w as createReplyToModeFilterForChannel, x as isRenderablePayload, y as filterMessagingToolDuplicates } from "./deliver-B05oD9oA.js";
63
- import { a as resolveNativeSkillsEnabled, i as resolveNativeCommandsEnabled, n as isNativeCommandsExplicitlyDisabled, r as isRestartEnabled, t as isCommandFlagEnabled } from "./commands-DUzVNM-Q.js";
64
- import { a as listChatCommandsForConfig, c as maybeResolveTextAlias, d as resolveCommandArgChoices, f as resolveCommandArgMenu, i as listChatCommands, l as normalizeCommandBody, m as shouldHandleTextCommands, n as findCommandByNativeName, o as listNativeCommandSpecs, p as serializeCommandArgs, r as isCommandEnabled, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as parseCommandArgs } from "./commands-registry-C2INbVUe.js";
65
- import { Ft as SESSION_LABEL_MAX_LENGTH, t as GatewayClient } from "./client-D9sBKoZI.js";
66
- import { a as randomIdempotencyKey, f as resolveLeastPrivilegeOperatorScopesForMethod, n as callGateway, r as callGatewayLeastPrivilege, t as buildGatewayConnectionDetails } from "./call-YJ9zjeji.js";
62
+ import { A as initializeGlobalHookRunner, C as shouldSuppressReasoningPayload, D as normalizeChannelTargetInput, E as buildTargetResolverSignature, O as normalizeTargetForProvider, S as shouldSuppressMessagingToolReplies, T as resolveReplyToMode, _ as applyReplyTagsToPayload, a as normalizeOutboundPayloadsForJson, b as filterMessagingToolMediaDuplicates, c as parseReplyDirectives, d as toInternalMessagePreprocessedContext, f as toInternalMessageReceivedContext, g as fireAndForgetHook, h as toPluginMessageReceivedEvent, i as normalizeOutboundPayloads, k as getGlobalHookRunner, l as splitMediaFromOutput, m as toPluginMessageContext, o as normalizeReplyPayloadsForDelivery, p as toInternalMessageTranscribedContext, r as formatOutboundPayloadLog, s as throwIfAborted, t as deliverOutboundPayloads, u as deriveInboundMessageHookContext, v as applyReplyThreading, w as createReplyToModeFilterForChannel, x as isRenderablePayload, y as filterMessagingToolDuplicates } from "./deliver-DuqANTNs.js";
63
+ import { a as resolveNativeSkillsEnabled, i as resolveNativeCommandsEnabled, n as isNativeCommandsExplicitlyDisabled, r as isRestartEnabled, t as isCommandFlagEnabled } from "./commands-BaXA2bSJ.js";
64
+ import { a as listChatCommandsForConfig, c as maybeResolveTextAlias, d as resolveCommandArgChoices, f as resolveCommandArgMenu, i as listChatCommands, l as normalizeCommandBody, m as shouldHandleTextCommands, n as findCommandByNativeName, o as listNativeCommandSpecs, p as serializeCommandArgs, r as isCommandEnabled, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as parseCommandArgs } from "./commands-registry-D-nkNP-x.js";
65
+ import { Ft as SESSION_LABEL_MAX_LENGTH, t as GatewayClient } from "./client-BEwDNigg.js";
66
+ import { a as randomIdempotencyKey, f as resolveLeastPrivilegeOperatorScopesForMethod, n as callGateway, r as callGatewayLeastPrivilege, t as buildGatewayConnectionDetails } from "./call-eK-5ynwM.js";
67
67
  import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-D6Usyaj-.js";
68
68
  import { n as formatTimeAgo } from "./format-relative-DQEv82Cs.js";
69
- import { c as readJsonFileWithFallback, d as listPairingChannels, i as readChannelAllowFromStore, l as writeJsonFileAtomically, o as removeChannelAllowFromStoreEntry, s as upsertChannelPairingRequest, t as addChannelAllowFromStoreEntry } from "./pairing-store-qlIFCeZB.js";
69
+ import { c as readJsonFileWithFallback, d as listPairingChannels, i as readChannelAllowFromStore, l as writeJsonFileAtomically, o as removeChannelAllowFromStoreEntry, s as upsertChannelPairingRequest, t as addChannelAllowFromStoreEntry } from "./pairing-store-CxcCXceV.js";
70
70
  import { d as resolveExecApprovals, f as resolveExecApprovalsFromFile, i as maxAsk, l as recordAllowlistUse, n as addAllowlistEntry, o as minSecurity, u as requiresExecApproval } from "./exec-approvals-QfWL5pgV.js";
71
- import { n as evaluateShellAllowlist, r as resolveAllowAlwaysPatterns } from "./exec-approvals-allowlist-BOUCQu6B.js";
72
- import { n as resolveExecSafeBinRuntimePolicy, r as resolveMergedSafeBinProfileFixtures } from "./exec-safe-bin-runtime-policy-CkhpnueN.js";
73
- import { C as mergePathPrepend, S as findPathKey, a as canvasSnapshotTempPath, b as buildNodeShellCommand, c as parseCameraClipPayload, d as writeCameraClipPayloadToFile, f as writeCameraPayloadToFile, i as parseEnvPairs, l as parseCameraSnapPayload, n as screenRecordTempPath, o as parseCanvasSnapshotPayload, p as parsePreparedSystemRunPayload, r as writeScreenRecordToFile, s as cameraTempPath, t as parseScreenRecordPayload, u as writeBase64ToFile, w as normalizePathPrepend, x as applyPathPrepend } from "./nodes-screen-CCNot0xV.js";
71
+ import { n as evaluateShellAllowlist, r as resolveAllowAlwaysPatterns } from "./exec-approvals-allowlist-CtUT02un.js";
72
+ import { n as resolveExecSafeBinRuntimePolicy, r as resolveMergedSafeBinProfileFixtures } from "./exec-safe-bin-runtime-policy-CSBwsuHS.js";
73
+ import { C as mergePathPrepend, S as findPathKey, a as canvasSnapshotTempPath, b as buildNodeShellCommand, c as parseCameraClipPayload, d as writeCameraClipPayloadToFile, f as writeCameraPayloadToFile, i as parseEnvPairs, l as parseCameraSnapPayload, n as screenRecordTempPath, o as parseCanvasSnapshotPayload, p as parsePreparedSystemRunPayload, r as writeScreenRecordToFile, s as cameraTempPath, t as parseScreenRecordPayload, u as writeBase64ToFile, w as normalizePathPrepend, x as applyPathPrepend } from "./nodes-screen-DgLXnfNX.js";
74
74
  import { t as killProcessTree$1 } from "./kill-tree-B3eImH-F.js";
75
- import { a as ToolInputError, c as imageResultFromFile, d as readNumberParam, f as readReactionParams, h as readStringParam, l as jsonResult, m as readStringOrNumberParam, n as missingTargetError, o as createActionGate, p as readStringArrayParam, r as unknownTargetError, s as imageResult, t as ambiguousTargetError, u as parseAvailableTags } from "./target-errors-u7pjywIy.js";
76
- import { t as formatExecCommand } from "./system-run-command-MvTaWm_5.js";
75
+ import { a as ToolInputError, c as imageResultFromFile, d as readNumberParam, f as readReactionParams, h as readStringParam, l as jsonResult, m as readStringOrNumberParam, n as missingTargetError, o as createActionGate, p as readStringArrayParam, r as unknownTargetError, s as imageResult, t as ambiguousTargetError, u as parseAvailableTags } from "./target-errors-CCgPtzPv.js";
76
+ import { t as formatExecCommand } from "./system-run-command-B7_IasTx.js";
77
77
  import { i as parsePairingList, n as resolveNodeIdFromNodeList, r as parseNodeList, t as resolveNodeFromNodeList } from "./node-resolve-BeyCAGYI.js";
78
78
  import { i as formatDurationSeconds, r as formatDurationPrecise, t as formatDurationCompact$1 } from "./format-duration-XLSvPvzN.js";
79
- import { a as logMessageQueued, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, h as getDiagnosticSessionState, i as logMessageProcessed, l as logWebhookProcessed, m as isDiagnosticsEnabled, n as logLaneDequeue, o as logSessionStateChange, p as emitDiagnosticEvent, r as logLaneEnqueue, t as diag, u as logWebhookReceived } from "./diagnostic-v2TGEcgC.js";
79
+ import { a as logMessageQueued, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, h as getDiagnosticSessionState, i as logMessageProcessed, l as logWebhookProcessed, m as isDiagnosticsEnabled, n as logLaneDequeue, o as logSessionStateChange, p as emitDiagnosticEvent, r as logLaneEnqueue, t as diag, u as logWebhookReceived } from "./diagnostic-CL9h6IXx.js";
80
80
  import { n as recordCommandPoll, r as resetCommandPollCount } from "./command-poll-backoff-Cgt3YiSW.js";
81
- import { a as getMachineDisplayName, i as startBrowserControlServiceFromConfig, n as createBrowserRouteDispatcher, r as createBrowserControlContext, t as withTimeout$4 } from "./with-timeout-DW6XbMi-.js";
81
+ import { a as getMachineDisplayName, i as startBrowserControlServiceFromConfig, n as createBrowserRouteDispatcher, r as createBrowserControlContext, t as withTimeout$4 } from "./with-timeout-OltBBBXv.js";
82
82
  import { i as resolveTelegramTargetChatType, r as parseTelegramTarget } from "./targets-wKNR_8O8.js";
83
- import { A as describeReplyTarget, B as resolveTelegramStreamMode, C as buildSenderLabel, D as buildTelegramParentPeer, E as buildTelegramGroupPeerId, F as resolveTelegramDirectPeerId, G as resolveSenderAllowMatch$1, H as isSenderAllowed$1, I as resolveTelegramForumThreadId, J as isVoiceCompatibleAudio, K as formatLocationText, L as resolveTelegramGroupAllowFromContext, M as extractTelegramLocation, N as hasBotMention, O as buildTelegramThreadParams, P as normalizeForwardedContext, R as resolveTelegramMediaPlaceholder, S as buildGroupLabel, T as buildTelegramGroupFrom, U as normalizeAllowFrom$2, V as resolveTelegramThreadSpec, W as normalizeDmAllowFromWithStore$1, _ as renderTelegramHtmlText, a as reactMessageTelegram, b as splitTelegramCaption, c as sendStickerTelegram, d as resolveCronStorePath, g as markdownToTelegramHtml, h as markdownToTelegramChunks, i as editMessageTelegram, j as expandTextLinks, k as buildTypingThreadParams, l as resolveTelegramVoiceSend, m as isRecoverableTelegramNetworkError, n as createForumTopicTelegram, o as sendMessageTelegram, p as wasSentByBot, q as toLocationContext, r as deleteMessageTelegram, s as sendPollTelegram, t as buildInlineKeyboard, u as loadCronStore, v as wrapFileReferencesInHtml, w as buildSenderName, x as withTelegramApiErrorLogging, y as resolveTelegramFetch, z as resolveTelegramReplyId } from "./send-D3BV3zCy.js";
84
- import { i as buildModelAliasLines, n as resolveModel } from "./model-CnHxvu4o.js";
85
- import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-BKbDxeIp.js";
86
- import { _ as isSafeFenceBreak, a as loadWebMedia, c as chunkByNewline, d as chunkMarkdownTextWithMode, f as chunkText, g as findFenceSpanAt, h as resolveTextChunkLimit, i as getDefaultLocalRoots, m as resolveChunkMode, o as loadWebMediaRaw, p as chunkTextWithMode, s as resolveMarkdownTableMode, u as chunkMarkdownText, v as parseFenceSpans } from "./ir-ChJe1hY6.js";
87
- import { n as resolveMessageChannelSelection, t as listConfiguredMessageChannels } from "./channel-selection-D21oKnM0.js";
83
+ import { A as describeReplyTarget, B as resolveTelegramStreamMode, C as buildSenderLabel, D as buildTelegramParentPeer, E as buildTelegramGroupPeerId, F as resolveTelegramDirectPeerId, G as resolveSenderAllowMatch$1, H as isSenderAllowed$1, I as resolveTelegramForumThreadId, J as isVoiceCompatibleAudio, K as formatLocationText, L as resolveTelegramGroupAllowFromContext, M as extractTelegramLocation, N as hasBotMention, O as buildTelegramThreadParams, P as normalizeForwardedContext, R as resolveTelegramMediaPlaceholder, S as buildGroupLabel, T as buildTelegramGroupFrom, U as normalizeAllowFrom$2, V as resolveTelegramThreadSpec, W as normalizeDmAllowFromWithStore$1, _ as renderTelegramHtmlText, a as reactMessageTelegram, b as splitTelegramCaption, c as sendStickerTelegram, d as resolveCronStorePath, g as markdownToTelegramHtml, h as markdownToTelegramChunks, i as editMessageTelegram, j as expandTextLinks, k as buildTypingThreadParams, l as resolveTelegramVoiceSend, m as isRecoverableTelegramNetworkError, n as createForumTopicTelegram, o as sendMessageTelegram, p as wasSentByBot, q as toLocationContext, r as deleteMessageTelegram, s as sendPollTelegram, t as buildInlineKeyboard, u as loadCronStore, v as wrapFileReferencesInHtml, w as buildSenderName, x as withTelegramApiErrorLogging, y as resolveTelegramFetch, z as resolveTelegramReplyId } from "./send-CVzWMFl1.js";
84
+ import { i as buildModelAliasLines, n as resolveModel } from "./model-CfB7nuUK.js";
85
+ import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-Drm3mYtt.js";
86
+ import { _ as isSafeFenceBreak, a as loadWebMedia, c as chunkByNewline, d as chunkMarkdownTextWithMode, f as chunkText, g as findFenceSpanAt, h as resolveTextChunkLimit, i as getDefaultLocalRoots, m as resolveChunkMode, o as loadWebMediaRaw, p as chunkTextWithMode, s as resolveMarkdownTableMode, u as chunkMarkdownText, v as parseFenceSpans } from "./ir-BdjoGJyL.js";
87
+ import { n as resolveMessageChannelSelection, t as listConfiguredMessageChannels } from "./channel-selection-HaUsJ3kL.js";
88
88
  import { n as normalizePollInput } from "./polls-Dc-wk6Mc.js";
89
- import { t as applyPluginAutoEnable } from "./plugin-auto-enable-CIeegxhY.js";
90
- import { a as signalCheck, i as resolveSignalRpcContext, n as sendReadReceiptSignal, o as signalRpcRequest, r as sendTypingSignal, s as streamSignalEvents, t as sendMessageSignal } from "./send-tsYgRPrs.js";
89
+ import { t as applyPluginAutoEnable } from "./plugin-auto-enable-DOlffoVt.js";
90
+ import { a as signalCheck, i as resolveSignalRpcContext, n as sendReadReceiptSignal, o as signalRpcRequest, r as sendTypingSignal, s as streamSignalEvents, t as sendMessageSignal } from "./send-7ekhdACO.js";
91
91
  import { t as buildOutboundMediaLoadOptions } from "./load-options-CQcHt2f2.js";
92
- import { a as isAllowedIMessageSender, i as formatIMessageChatTarget, n as createIMessageRpcClient, o as normalizeIMessageHandle, r as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, s as parseIMessageTarget, t as sendMessageIMessage } from "./send-BUFnD0eE.js";
92
+ import { a as isAllowedIMessageSender, i as formatIMessageChatTarget, n as createIMessageRpcClient, o as normalizeIMessageHandle, r as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, s as parseIMessageTarget, t as sendMessageIMessage } from "./send-BlhxqBI9.js";
93
93
  import { n as isSenderIdAllowed, r as mergeDmAllowFromSources, t as firstDefined$1 } from "./allow-from-CsQJtEUH.js";
94
- import { a as resolveSubagentToolPolicy, c as readStoreAllowFromForDmPolicy, d as resolveDmGroupAccessWithLists, f as resolvePinnedMainDmOwnerFromAllowlist, i as resolveGroupToolPolicy, m as resolveControlCommandGate, n as isToolAllowedByPolicies, p as resolveCommandAuthorizedFromAuthorizers, r as resolveEffectiveToolPolicy, s as DM_GROUP_ACCESS_REASON, t as filterToolsByPolicy } from "./pi-tools.policy-BC7YGcon.js";
95
- import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-BHb0aL0J.js";
96
- import { t as convertMarkdownTables } from "./tables-D6c57Lrs.js";
94
+ import { a as resolveSubagentToolPolicy, c as readStoreAllowFromForDmPolicy, d as resolveDmGroupAccessWithLists, f as resolvePinnedMainDmOwnerFromAllowlist, i as resolveGroupToolPolicy, m as resolveControlCommandGate, n as isToolAllowedByPolicies, p as resolveCommandAuthorizedFromAuthorizers, r as resolveEffectiveToolPolicy, s as DM_GROUP_ACCESS_REASON, t as filterToolsByPolicy } from "./pi-tools.policy-DaB-Ff9f.js";
95
+ import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-w-iWKqZg.js";
96
+ import { t as convertMarkdownTables } from "./tables-B3d05drH.js";
97
97
  import { n as isDangerousNameMatchingEnabled } from "./dangerous-name-matching-CN1u5zht.js";
98
- import { a as getRemoteSkillEligibility, b as getSkillsSnapshotVersion, i as resolveSkillCommandInvocation, n as listSkillCommandsForAgents, r as listSkillCommandsForWorkspace, t as listReservedChatSlashCommandNames, y as ensureSkillsWatcher } from "./skill-commands-BgzZkiJz.js";
98
+ import { a as getRemoteSkillEligibility, b as getSkillsSnapshotVersion, i as resolveSkillCommandInvocation, n as listSkillCommandsForAgents, r as listSkillCommandsForWorkspace, t as listReservedChatSlashCommandNames, y as ensureSkillsWatcher } from "./skill-commands-De4NUpNz.js";
99
99
  import { i as redactIdentifier, t as getActiveWebListener } from "./active-listener-Bc3_apM1.js";
100
- import { s as resolveCommandSecretRefsViaGateway, t as getAgentRuntimeCommandSecretTargetIds } from "./command-secret-targets-SH5qP5X_.js";
100
+ import { s as resolveCommandSecretRefsViaGateway, t as getAgentRuntimeCommandSecretTargetIds } from "./command-secret-targets-qpSAI_K2.js";
101
101
  import { c as hasNonzeroUsage, l as makeZeroUsageSnapshot, n as loadCostUsageSummary, o as derivePromptTokens, r as loadSessionCostSummary, s as deriveSessionTotalTokens, u as normalizeUsage } from "./session-cost-usage-BY7a_j5T.js";
102
- import { r as detectBinary } from "./onboard-helpers-ByC3v1-U.js";
103
- import { t as resolvePairingIdLabel } from "./pairing-labels-D9vsJ1yc.js";
102
+ import { r as detectBinary } from "./onboard-helpers-C51uqagK.js";
103
+ import { t as resolvePairingIdLabel } from "./pairing-labels-OxEX3p5e.js";
104
104
  import { i as resolveModelCostConfig, n as formatTokenCount$2, r as formatUsd, t as estimateUsageCost } from "./usage-format-CpAFclrX.js";
105
- import { i as resolveMemoryBackendConfig, n as registerMemoryCli, r as getMemorySearchManager } from "./memory-cli-CCMIlraX.js";
106
- import { r as resolveMemorySearchConfig } from "./manager-CSnZM2Iw.js";
105
+ import { i as resolveMemoryBackendConfig, n as registerMemoryCli, r as getMemorySearchManager } from "./memory-cli-CLBPPSow.js";
106
+ import { r as resolveMemorySearchConfig } from "./manager-Dbz9CyPw.js";
107
107
  import { i as parseAbsoluteTimeMs, r as resolveDefaultCronStaggerMs, t as normalizeCronStaggerMs } from "./stagger-DL-XRpny.js";
108
108
  import { f as resolveGatewaySystemdServiceName, l as resolveGatewayLaunchAgentLabel } from "./constants-B6D1y3V2.js";
109
109
  import { t as parseTimeoutMs } from "./parse-timeout-BwFhOmlt.js";
@@ -115,7 +115,7 @@ import os, { homedir } from "node:os";
115
115
  import path, { isAbsolute } from "node:path";
116
116
  import JSON5 from "json5";
117
117
  import { inspect } from "node:util";
118
- import fs$1 from "node:fs/promises";
118
+ import fsPromises from "node:fs/promises";
119
119
  import { execFileSync, spawn, spawnSync } from "node:child_process";
120
120
  import crypto, { createHash, createHmac, randomBytes, randomUUID } from "node:crypto";
121
121
  import { complete, completeSimple, createAssistantMessageEventStream, streamSimple } from "@mariozechner/pi-ai";
@@ -1081,7 +1081,7 @@ async function runWithConcurrency(tasks, limit) {
1081
1081
  //#region src/media-understanding/echo-transcript.ts
1082
1082
  let deliverRuntimePromise$2 = null;
1083
1083
  function loadDeliverRuntime$2() {
1084
- deliverRuntimePromise$2 ??= import("./deliver-runtime-DGrrnFpY.js");
1084
+ deliverRuntimePromise$2 ??= import("./deliver-runtime-CBjIBIWj.js");
1085
1085
  return deliverRuntimePromise$2;
1086
1086
  }
1087
1087
  const DEFAULT_ECHO_TRANSCRIPT_FORMAT = "📝 \"{transcript}\"";
@@ -2427,7 +2427,7 @@ async function resolveAgentSessionDirs(stateDir) {
2427
2427
  const agentsDir = path.join(stateDir, "agents");
2428
2428
  let entries = [];
2429
2429
  try {
2430
- entries = await fs$1.readdir(agentsDir, { withFileTypes: true });
2430
+ entries = await fsPromises.readdir(agentsDir, { withFileTypes: true });
2431
2431
  } catch (err) {
2432
2432
  if (err.code === "ENOENT") return [];
2433
2433
  throw err;
@@ -8289,7 +8289,7 @@ async function resolveSandboxWorkdir(params) {
8289
8289
  cwd: process.cwd(),
8290
8290
  root: params.sandbox.workspaceDir
8291
8291
  });
8292
- if (!(await fs$1.stat(resolved.resolved)).isDirectory()) throw new Error("workdir is not a directory");
8292
+ if (!(await fsPromises.stat(resolved.resolved)).isDirectory()) throw new Error("workdir is not a directory");
8293
8293
  const relative = resolved.relative ? resolved.relative.split(path.sep).join(path.posix.sep) : "";
8294
8294
  const containerWorkdir = relative ? path.posix.join(params.sandbox.containerWorkdir, relative) : params.sandbox.containerWorkdir;
8295
8295
  return {
@@ -9533,13 +9533,13 @@ async function validateScriptFileForShellBleed(params) {
9533
9533
  cwd: params.workdir,
9534
9534
  root: params.workdir
9535
9535
  });
9536
- stat = await fs$1.stat(absPath);
9536
+ stat = await fsPromises.stat(absPath);
9537
9537
  } catch {
9538
9538
  return;
9539
9539
  }
9540
9540
  if (!stat.isFile()) return;
9541
9541
  if (stat.size > 512 * 1024) return;
9542
- const content = await fs$1.readFile(absPath, "utf-8");
9542
+ const content = await fsPromises.readFile(absPath, "utf-8");
9543
9543
  const first = /\$[A-Z_][A-Z0-9_]{1,}/g.exec(content);
9544
9544
  if (first) {
9545
9545
  const idx = first.index;
@@ -15584,7 +15584,7 @@ function normalizeReplyPayload(payload, opts = {}) {
15584
15584
  */
15585
15585
  let deliverRuntimePromise$1 = null;
15586
15586
  function loadDeliverRuntime$1() {
15587
- deliverRuntimePromise$1 ??= import("./deliver-runtime-DGrrnFpY.js");
15587
+ deliverRuntimePromise$1 ??= import("./deliver-runtime-CBjIBIWj.js");
15588
15588
  return deliverRuntimePromise$1;
15589
15589
  }
15590
15590
  /**
@@ -16334,7 +16334,7 @@ const DEFAULT_SUBAGENT_ANNOUNCE_TIMEOUT_MS = 6e4;
16334
16334
  const MAX_TIMER_SAFE_TIMEOUT_MS = 2147e6;
16335
16335
  let subagentRegistryRuntimePromise = null;
16336
16336
  function loadSubagentRegistryRuntime() {
16337
- subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-D5KDyK6C.js");
16337
+ subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-0qZtQB7_.js");
16338
16338
  return subagentRegistryRuntimePromise;
16339
16339
  }
16340
16340
  const DIRECT_ANNOUNCE_TRANSIENT_RETRY_DELAYS_MS = FAST_TEST_MODE ? [
@@ -26071,7 +26071,7 @@ const VISION_PROVIDERS = [
26071
26071
  ];
26072
26072
  let imageRuntimePromise = null;
26073
26073
  function loadImageRuntime() {
26074
- imageRuntimePromise ??= import("./image-runtime-D9iVXh4M.js");
26074
+ imageRuntimePromise ??= import("./image-runtime-Csw6M1GE.js");
26075
26075
  return imageRuntimePromise;
26076
26076
  }
26077
26077
  /**
@@ -26137,7 +26137,7 @@ async function describeStickerImage(params) {
26137
26137
  const { provider, model } = resolved;
26138
26138
  logVerbose(`telegram: describing sticker with ${provider}/${model}`);
26139
26139
  try {
26140
- const buffer = await fs$1.readFile(imagePath);
26140
+ const buffer = await fsPromises.readFile(imagePath);
26141
26141
  const { describeImageWithModel } = await loadImageRuntime();
26142
26142
  return (await describeImageWithModel({
26143
26143
  buffer,
@@ -28353,7 +28353,7 @@ async function resolveDiscordPreflightAudioMentionContext(params) {
28353
28353
  const needsPreflightTranscription = !params.isDirectMessage && params.shouldRequireMention && hasAudioAttachment && !hasTypedText && params.mentionRegexes.length > 0;
28354
28354
  let transcript;
28355
28355
  if (needsPreflightTranscription) try {
28356
- const { transcribeFirstAudio } = await import("./audio-preflight-CiANHFx-.js");
28356
+ const { transcribeFirstAudio } = await import("./audio-preflight-DOYiMo_d.js");
28357
28357
  const audioUrls = audioAttachments.map((att) => att.url).filter((url) => typeof url === "string" && url.length > 0);
28358
28358
  if (audioUrls.length > 0) transcript = await transcribeFirstAudio({
28359
28359
  ctx: {
@@ -31990,7 +31990,7 @@ function ensureContextWindowCacheLoaded() {
31990
31990
  await ensureOpenClawModelsJson(cfg);
31991
31991
  } catch {}
31992
31992
  try {
31993
- const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-BKbDxeIp.js").then((n) => n.r);
31993
+ const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-Drm3mYtt.js").then((n) => n.r);
31994
31994
  const agentDir = resolveOpenClawAgentDir();
31995
31995
  const modelRegistry = discoverModels(discoverAuthStorage(agentDir), agentDir);
31996
31996
  applyDiscoveredContextWindows({
@@ -32336,7 +32336,7 @@ async function createModelSelectionState(params) {
32336
32336
  }
32337
32337
  }
32338
32338
  if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
32339
- const { ensureAuthProfileStore } = await import("./model-selection-DqSNdtby.js").then((n) => n.ht);
32339
+ const { ensureAuthProfileStore } = await import("./model-selection-DZM1M4yx.js").then((n) => n.ht);
32340
32340
  const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
32341
32341
  const providerKey = normalizeProviderId(provider);
32342
32342
  if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
@@ -36386,18 +36386,18 @@ function appendImagePathsToPrompt(prompt, paths) {
36386
36386
  return `${trimmed}${trimmed ? "\n\n" : ""}${paths.join("\n")}`;
36387
36387
  }
36388
36388
  async function writeCliImages(images) {
36389
- const tempDir = await fs$1.mkdtemp(path.join(os.tmpdir(), "openclaw-cli-images-"));
36389
+ const tempDir = await fsPromises.mkdtemp(path.join(os.tmpdir(), "openclaw-cli-images-"));
36390
36390
  const paths = [];
36391
36391
  for (let i = 0; i < images.length; i += 1) {
36392
36392
  const image = images[i];
36393
36393
  const ext = resolveImageExtension(image.mimeType);
36394
36394
  const filePath = path.join(tempDir, `image-${i + 1}.${ext}`);
36395
36395
  const buffer = Buffer.from(image.data, "base64");
36396
- await fs$1.writeFile(filePath, buffer, { mode: 384 });
36396
+ await fsPromises.writeFile(filePath, buffer, { mode: 384 });
36397
36397
  paths.push(filePath);
36398
36398
  }
36399
36399
  const cleanup = async () => {
36400
- await fs$1.rm(tempDir, {
36400
+ await fsPromises.rm(tempDir, {
36401
36401
  recursive: true,
36402
36402
  force: true
36403
36403
  });
@@ -37417,27 +37417,27 @@ let slackSenderRuntimePromise = null;
37417
37417
  let signalSenderRuntimePromise = null;
37418
37418
  let imessageSenderRuntimePromise = null;
37419
37419
  function loadWhatsAppSenderRuntime() {
37420
- whatsappSenderRuntimePromise ??= import("./deps-send-whatsapp.runtime-bRJ5Zed1.js");
37420
+ whatsappSenderRuntimePromise ??= import("./deps-send-whatsapp.runtime-B2i2JcV5.js");
37421
37421
  return whatsappSenderRuntimePromise;
37422
37422
  }
37423
37423
  function loadTelegramSenderRuntime() {
37424
- telegramSenderRuntimePromise ??= import("./deps-send-telegram.runtime-IVPYXaID.js");
37424
+ telegramSenderRuntimePromise ??= import("./deps-send-telegram.runtime-TOpNwBFj.js");
37425
37425
  return telegramSenderRuntimePromise;
37426
37426
  }
37427
37427
  function loadDiscordSenderRuntime() {
37428
- discordSenderRuntimePromise ??= import("./deps-send-discord.runtime-DAPWkSXf.js");
37428
+ discordSenderRuntimePromise ??= import("./deps-send-discord.runtime-Ch7m0GFO.js");
37429
37429
  return discordSenderRuntimePromise;
37430
37430
  }
37431
37431
  function loadSlackSenderRuntime() {
37432
- slackSenderRuntimePromise ??= import("./deps-send-slack.runtime-s0pqdhHR.js");
37432
+ slackSenderRuntimePromise ??= import("./deps-send-slack.runtime-Bm60sFNH.js");
37433
37433
  return slackSenderRuntimePromise;
37434
37434
  }
37435
37435
  function loadSignalSenderRuntime() {
37436
- signalSenderRuntimePromise ??= import("./deps-send-signal.runtime-Ce60L81Z.js");
37436
+ signalSenderRuntimePromise ??= import("./deps-send-signal.runtime-DVVQsW-M.js");
37437
37437
  return signalSenderRuntimePromise;
37438
37438
  }
37439
37439
  function loadIMessageSenderRuntime() {
37440
- imessageSenderRuntimePromise ??= import("./deps-send-imessage.runtime-DWqR6W7h.js");
37440
+ imessageSenderRuntimePromise ??= import("./deps-send-imessage.runtime-BBXNUMFu.js");
37441
37441
  return imessageSenderRuntimePromise;
37442
37442
  }
37443
37443
  function createDefaultDeps() {
@@ -38644,10 +38644,10 @@ function estimateDurationSeconds(pcm) {
38644
38644
  return pcm.length / (bytesPerSample * SAMPLE_RATE);
38645
38645
  }
38646
38646
  async function writeWavFile(pcm) {
38647
- const tempDir = await fs$1.mkdtemp(path.join(resolvePreferredOpenClawTmpDir(), "discord-voice-"));
38647
+ const tempDir = await fsPromises.mkdtemp(path.join(resolvePreferredOpenClawTmpDir(), "discord-voice-"));
38648
38648
  const filePath = path.join(tempDir, `segment-${randomUUID()}.wav`);
38649
38649
  const wav = buildWavBuffer(pcm);
38650
- await fs$1.writeFile(filePath, wav);
38650
+ await fsPromises.writeFile(filePath, wav);
38651
38651
  scheduleTempCleanup(tempDir);
38652
38652
  return {
38653
38653
  path: filePath,
@@ -38656,7 +38656,7 @@ async function writeWavFile(pcm) {
38656
38656
  }
38657
38657
  function scheduleTempCleanup(tempDir, delayMs = 1800 * 1e3) {
38658
38658
  setTimeout(() => {
38659
- fs$1.rm(tempDir, {
38659
+ fsPromises.rm(tempDir, {
38660
38660
  recursive: true,
38661
38661
  force: true
38662
38662
  }).catch((err) => {
@@ -43222,7 +43222,7 @@ function normalizeAllowList$1(list) {
43222
43222
  async function detectRemoteHostFromCliPath(cliPath) {
43223
43223
  try {
43224
43224
  const expanded = cliPath.startsWith("~") ? cliPath.replace(/^~/, process.env.HOME ?? "") : cliPath;
43225
- const content = await fs$1.readFile(expanded, "utf8");
43225
+ const content = await fsPromises.readFile(expanded, "utf8");
43226
43226
  const userHostMatch = content.match(/\bssh\b[^\n]*?\s+([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+)/);
43227
43227
  if (userHostMatch) return userHostMatch[1];
43228
43228
  return content.match(/\bssh\b[^\n]*?\s+([a-zA-Z][a-zA-Z0-9._-]*)\s+\S*\bimsg\b/)?.[1];
@@ -50191,15 +50191,15 @@ let slashCommandsRuntimePromise = null;
50191
50191
  let slashDispatchRuntimePromise = null;
50192
50192
  let slashSkillCommandsRuntimePromise = null;
50193
50193
  function loadSlashCommandsRuntime() {
50194
- slashCommandsRuntimePromise ??= import("./slash-commands.runtime-DSjg6jg8.js");
50194
+ slashCommandsRuntimePromise ??= import("./slash-commands.runtime-Becs7mLt.js");
50195
50195
  return slashCommandsRuntimePromise;
50196
50196
  }
50197
50197
  function loadSlashDispatchRuntime() {
50198
- slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime-DcGK4xow.js");
50198
+ slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime-BGHMR1xK.js");
50199
50199
  return slashDispatchRuntimePromise;
50200
50200
  }
50201
50201
  function loadSlashSkillCommandsRuntime() {
50202
- slashSkillCommandsRuntimePromise ??= import("./slash-skill-commands.runtime-DwvIfTev.js");
50202
+ slashSkillCommandsRuntimePromise ??= import("./slash-skill-commands.runtime-BqcgqTMM.js");
50203
50203
  return slashSkillCommandsRuntimePromise;
50204
50204
  }
50205
50205
  const slackExternalArgMenuStore = createSlackExternalArgMenuStore();
@@ -55869,7 +55869,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
55869
55869
  const disableAudioPreflight = firstDefined$1(topicConfig?.disableAudioPreflight, groupConfig?.disableAudioPreflight) === true;
55870
55870
  let preflightTranscript;
55871
55871
  if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0 && !disableAudioPreflight) try {
55872
- const { transcribeFirstAudio } = await import("./audio-preflight-CiANHFx-.js");
55872
+ const { transcribeFirstAudio } = await import("./audio-preflight-DOYiMo_d.js");
55873
55873
  preflightTranscript = await transcribeFirstAudio({
55874
55874
  ctx: {
55875
55875
  MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
@@ -57340,7 +57340,7 @@ function resolveCommandHashPath(accountId, botIdentity) {
57340
57340
  }
57341
57341
  async function readCachedCommandHash(accountId, botIdentity) {
57342
57342
  try {
57343
- return (await fs$1.readFile(resolveCommandHashPath(accountId, botIdentity), "utf-8")).trim();
57343
+ return (await fsPromises.readFile(resolveCommandHashPath(accountId, botIdentity), "utf-8")).trim();
57344
57344
  } catch {
57345
57345
  return null;
57346
57346
  }
@@ -57348,8 +57348,8 @@ async function readCachedCommandHash(accountId, botIdentity) {
57348
57348
  async function writeCachedCommandHash(accountId, botIdentity, hash) {
57349
57349
  const filePath = resolveCommandHashPath(accountId, botIdentity);
57350
57350
  try {
57351
- await fs$1.mkdir(path.dirname(filePath), { recursive: true });
57352
- await fs$1.writeFile(filePath, hash, "utf-8");
57351
+ await fsPromises.mkdir(path.dirname(filePath), { recursive: true });
57352
+ await fsPromises.writeFile(filePath, hash, "utf-8");
57353
57353
  } catch {}
57354
57354
  }
57355
57355
  function syncTelegramMenuCommands(params) {
@@ -58193,7 +58193,7 @@ function safeParseState(raw) {
58193
58193
  async function readTelegramUpdateOffset(params) {
58194
58194
  const filePath = resolveTelegramUpdateOffsetPath(params.accountId, params.env);
58195
58195
  try {
58196
- const parsed = safeParseState(await fs$1.readFile(filePath, "utf-8"));
58196
+ const parsed = safeParseState(await fsPromises.readFile(filePath, "utf-8"));
58197
58197
  const expectedBotId = extractBotIdFromToken(params.botToken);
58198
58198
  if (expectedBotId && parsed?.botId && parsed.botId !== expectedBotId) return null;
58199
58199
  if (expectedBotId && parsed?.botId === null) return null;
@@ -58217,7 +58217,7 @@ async function writeTelegramUpdateOffset(params) {
58217
58217
  async function deleteTelegramUpdateOffset(params) {
58218
58218
  const filePath = resolveTelegramUpdateOffsetPath(params.accountId, params.env);
58219
58219
  try {
58220
- await fs$1.unlink(filePath);
58220
+ await fsPromises.unlink(filePath);
58221
58221
  } catch (err) {
58222
58222
  if (err.code === "ENOENT") return;
58223
58223
  throw err;
@@ -58691,7 +58691,7 @@ function createWhatsAppLoginTool() {
58691
58691
  force: Type.Optional(Type.Boolean())
58692
58692
  }),
58693
58693
  execute: async (_toolCallId, args) => {
58694
- const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-DPVFxhjZ.js");
58694
+ const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-9cwofnkY.js");
58695
58695
  if ((args?.action ?? "start") === "wait") {
58696
58696
  const result = await waitForWebLogin({ timeoutMs: typeof args.timeoutMs === "number" ? args.timeoutMs : void 0 });
58697
58697
  return {
@@ -58766,23 +58766,23 @@ let webOutboundPromise = null;
58766
58766
  let webLoginPromise = null;
58767
58767
  let whatsappActionsPromise = null;
58768
58768
  function loadWebOutbound() {
58769
- webOutboundPromise ??= import("./runtime-whatsapp-outbound.runtime-bK_Rub3q.js");
58769
+ webOutboundPromise ??= import("./runtime-whatsapp-outbound.runtime-CdzmGvC6.js");
58770
58770
  return webOutboundPromise;
58771
58771
  }
58772
58772
  function loadWebLogin() {
58773
- webLoginPromise ??= import("./runtime-whatsapp-login.runtime-DLNWSVqX.js");
58773
+ webLoginPromise ??= import("./runtime-whatsapp-login.runtime-BkF8zMbl.js");
58774
58774
  return webLoginPromise;
58775
58775
  }
58776
58776
  function loadWebLoginQr() {
58777
- webLoginQrPromise ??= import("./login-qr-DPVFxhjZ.js");
58777
+ webLoginQrPromise ??= import("./login-qr-9cwofnkY.js");
58778
58778
  return webLoginQrPromise;
58779
58779
  }
58780
58780
  function loadWebChannel() {
58781
- webChannelPromise ??= import("./web-C0Ki9gxL.js");
58781
+ webChannelPromise ??= import("./web-QKn04c6k.js");
58782
58782
  return webChannelPromise;
58783
58783
  }
58784
58784
  function loadWhatsAppActions() {
58785
- whatsappActionsPromise ??= import("./whatsapp-actions-Ds8L0msY.js");
58785
+ whatsappActionsPromise ??= import("./whatsapp-actions-s6qkgp-7.js");
58786
58786
  return whatsappActionsPromise;
58787
58787
  }
58788
58788
  function createRuntimeWhatsApp() {
@@ -60094,7 +60094,7 @@ function resolvePluginTools(params) {
60094
60094
  //#endregion
60095
60095
  //#region src/agents/apply-patch-update.ts
60096
60096
  async function defaultReadFile(filePath) {
60097
- return fs$1.readFile(filePath, "utf8");
60097
+ return fsPromises.readFile(filePath, "utf8");
60098
60098
  }
60099
60099
  async function applyUpdateHunk(filePath, chunks, options) {
60100
60100
  const originalLines = (await (options?.readFile ?? defaultReadFile)(filePath).catch((err) => {
@@ -60415,7 +60415,7 @@ function resolvePatchFileOps(options) {
60415
60415
  const workspaceOnly = options.workspaceOnly !== false;
60416
60416
  return {
60417
60417
  readFile: async (filePath) => {
60418
- if (!workspaceOnly) return await fs$1.readFile(filePath, "utf8");
60418
+ if (!workspaceOnly) return await fsPromises.readFile(filePath, "utf8");
60419
60419
  const opened = await openBoundaryFile({
60420
60420
  absolutePath: filePath,
60421
60421
  rootPath: options.cwd,
@@ -60430,7 +60430,7 @@ function resolvePatchFileOps(options) {
60430
60430
  },
60431
60431
  writeFile: async (filePath, content) => {
60432
60432
  if (!workspaceOnly) {
60433
- await fs$1.writeFile(filePath, content, "utf8");
60433
+ await fsPromises.writeFile(filePath, content, "utf8");
60434
60434
  return;
60435
60435
  }
60436
60436
  const relative = toRelativeSandboxPath(options.cwd, filePath);
@@ -60441,8 +60441,8 @@ function resolvePatchFileOps(options) {
60441
60441
  encoding: "utf8"
60442
60442
  });
60443
60443
  },
60444
- remove: (filePath) => fs$1.rm(filePath),
60445
- mkdirp: (dir) => fs$1.mkdir(dir, { recursive: true }).then(() => {})
60444
+ remove: (filePath) => fsPromises.rm(filePath),
60445
+ mkdirp: (dir) => fsPromises.mkdir(dir, { recursive: true }).then(() => {})
60446
60446
  };
60447
60447
  }
60448
60448
  async function ensureDir(filePath, ops) {
@@ -61896,7 +61896,7 @@ async function readJsonlFromPath(jsonlPath) {
61896
61896
  if (shouldLogVerbose()) logVerbose(`Blocked canvas jsonlPath outside allowed roots: ${resolved}`);
61897
61897
  throw new Error("jsonlPath outside allowed roots");
61898
61898
  }
61899
- const canonical = await fs$1.realpath(resolved).catch(() => resolved);
61899
+ const canonical = await fsPromises.realpath(resolved).catch(() => resolved);
61900
61900
  if (!isInboundPathAllowed({
61901
61901
  filePath: canonical,
61902
61902
  roots
@@ -61904,7 +61904,7 @@ async function readJsonlFromPath(jsonlPath) {
61904
61904
  if (shouldLogVerbose()) logVerbose(`Blocked canvas jsonlPath outside allowed roots: ${canonical}`);
61905
61905
  throw new Error("jsonlPath outside allowed roots");
61906
61906
  }
61907
- return await fs$1.readFile(canonical, "utf8");
61907
+ return await fsPromises.readFile(canonical, "utf8");
61908
61908
  }
61909
61909
  const CanvasToolSchema = Type.Object({
61910
61910
  action: stringEnum(CANVAS_ACTIONS),
@@ -62719,27 +62719,27 @@ function resolveRestartSentinelPath(env = process.env) {
62719
62719
  }
62720
62720
  async function writeRestartSentinel(payload, env = process.env) {
62721
62721
  const filePath = resolveRestartSentinelPath(env);
62722
- await fs$1.mkdir(path.dirname(filePath), { recursive: true });
62722
+ await fsPromises.mkdir(path.dirname(filePath), { recursive: true });
62723
62723
  const data = {
62724
62724
  version: 1,
62725
62725
  payload
62726
62726
  };
62727
- await fs$1.writeFile(filePath, `${JSON.stringify(data, null, 2)}\n`, "utf-8");
62727
+ await fsPromises.writeFile(filePath, `${JSON.stringify(data, null, 2)}\n`, "utf-8");
62728
62728
  return filePath;
62729
62729
  }
62730
62730
  async function readRestartSentinel(env = process.env) {
62731
62731
  const filePath = resolveRestartSentinelPath(env);
62732
62732
  try {
62733
- const raw = await fs$1.readFile(filePath, "utf-8");
62733
+ const raw = await fsPromises.readFile(filePath, "utf-8");
62734
62734
  let parsed;
62735
62735
  try {
62736
62736
  parsed = JSON.parse(raw);
62737
62737
  } catch {
62738
- await fs$1.unlink(filePath).catch(() => {});
62738
+ await fsPromises.unlink(filePath).catch(() => {});
62739
62739
  return null;
62740
62740
  }
62741
62741
  if (!parsed || parsed.version !== 1 || !parsed.payload) {
62742
- await fs$1.unlink(filePath).catch(() => {});
62742
+ await fsPromises.unlink(filePath).catch(() => {});
62743
62743
  return null;
62744
62744
  }
62745
62745
  return parsed;
@@ -62751,7 +62751,7 @@ async function consumeRestartSentinel(env = process.env) {
62751
62751
  const filePath = resolveRestartSentinelPath(env);
62752
62752
  const parsed = await readRestartSentinel(env);
62753
62753
  if (!parsed) return null;
62754
- await fs$1.unlink(filePath).catch(() => {});
62754
+ await fsPromises.unlink(filePath).catch(() => {});
62755
62755
  return parsed;
62756
62756
  }
62757
62757
  function formatRestartSentinelMessage(payload) {
@@ -70569,7 +70569,7 @@ const LOOP_WARNING_BUCKET_SIZE = 10;
70569
70569
  const MAX_LOOP_WARNING_KEYS = 256;
70570
70570
  let beforeToolCallRuntimePromise = null;
70571
70571
  function loadBeforeToolCallRuntime() {
70572
- beforeToolCallRuntimePromise ??= import("./pi-tools.before-tool-call.runtime-81kH9GUj.js");
70572
+ beforeToolCallRuntimePromise ??= import("./pi-tools.before-tool-call.runtime-CxMxsbgT.js");
70573
70573
  return beforeToolCallRuntimePromise;
70574
70574
  }
70575
70575
  function buildAdjustedParamsKey(params) {
@@ -70807,7 +70807,7 @@ function wrapHostEditToolWithPostWriteRecovery(base, root) {
70807
70807
  if (!pathParam || !newText) throw err;
70808
70808
  try {
70809
70809
  const absolutePath = resolveHostEditPath(root, pathParam);
70810
- const content = await fs$1.readFile(absolutePath, "utf-8");
70810
+ const content = await fsPromises.readFile(absolutePath, "utf-8");
70811
70811
  const hasNew = content.includes(newText);
70812
70812
  const stillHasOld = oldText !== void 0 && oldText.length > 0 && content.includes(oldText);
70813
70813
  if (hasNew && !stillHasOld) return {
@@ -71289,14 +71289,14 @@ function createSandboxEditOperations(params) {
71289
71289
  }
71290
71290
  async function writeHostFile(absolutePath, content) {
71291
71291
  const resolved = path.resolve(absolutePath);
71292
- await fs$1.mkdir(path.dirname(resolved), { recursive: true });
71293
- await fs$1.writeFile(resolved, content, "utf-8");
71292
+ await fsPromises.mkdir(path.dirname(resolved), { recursive: true });
71293
+ await fsPromises.writeFile(resolved, content, "utf-8");
71294
71294
  }
71295
71295
  function createHostWriteOperations(root, options) {
71296
71296
  if (!(options?.workspaceOnly ?? false)) return {
71297
71297
  mkdir: async (dir) => {
71298
71298
  const resolved = path.resolve(dir);
71299
- await fs$1.mkdir(resolved, { recursive: true });
71299
+ await fsPromises.mkdir(resolved, { recursive: true });
71300
71300
  },
71301
71301
  writeFile: writeHostFile
71302
71302
  };
@@ -71309,7 +71309,7 @@ function createHostWriteOperations(root, options) {
71309
71309
  cwd: root,
71310
71310
  root
71311
71311
  });
71312
- await fs$1.mkdir(resolved, { recursive: true });
71312
+ await fsPromises.mkdir(resolved, { recursive: true });
71313
71313
  },
71314
71314
  writeFile: async (absolutePath, content) => {
71315
71315
  await writeFileWithinRoot({
@@ -71325,12 +71325,12 @@ function createHostEditOperations(root, options) {
71325
71325
  if (!(options?.workspaceOnly ?? false)) return {
71326
71326
  readFile: async (absolutePath) => {
71327
71327
  const resolved = path.resolve(absolutePath);
71328
- return await fs$1.readFile(resolved);
71328
+ return await fsPromises.readFile(resolved);
71329
71329
  },
71330
71330
  writeFile: writeHostFile,
71331
71331
  access: async (absolutePath) => {
71332
71332
  const resolved = path.resolve(absolutePath);
71333
- await fs$1.access(resolved);
71333
+ await fsPromises.access(resolved);
71334
71334
  }
71335
71335
  };
71336
71336
  return {
@@ -72168,7 +72168,7 @@ async function repairSessionFileIfNeeded(params) {
72168
72168
  };
72169
72169
  let content;
72170
72170
  try {
72171
- content = await fs$1.readFile(sessionFile, "utf-8");
72171
+ content = await fsPromises.readFile(sessionFile, "utf-8");
72172
72172
  } catch (err) {
72173
72173
  if (err?.code === "ENOENT") return {
72174
72174
  repaired: false,
@@ -72216,15 +72216,15 @@ async function repairSessionFileIfNeeded(params) {
72216
72216
  const backupPath = `${sessionFile}.bak-${process.pid}-${Date.now()}`;
72217
72217
  const tmpPath = `${sessionFile}.repair-${process.pid}-${Date.now()}.tmp`;
72218
72218
  try {
72219
- const stat = await fs$1.stat(sessionFile).catch(() => null);
72220
- await fs$1.writeFile(backupPath, content, "utf-8");
72221
- if (stat) await fs$1.chmod(backupPath, stat.mode);
72222
- await fs$1.writeFile(tmpPath, cleaned, "utf-8");
72223
- if (stat) await fs$1.chmod(tmpPath, stat.mode);
72224
- await fs$1.rename(tmpPath, sessionFile);
72219
+ const stat = await fsPromises.stat(sessionFile).catch(() => null);
72220
+ await fsPromises.writeFile(backupPath, content, "utf-8");
72221
+ if (stat) await fsPromises.chmod(backupPath, stat.mode);
72222
+ await fsPromises.writeFile(tmpPath, cleaned, "utf-8");
72223
+ if (stat) await fsPromises.chmod(tmpPath, stat.mode);
72224
+ await fsPromises.rename(tmpPath, sessionFile);
72225
72225
  } catch (err) {
72226
72226
  try {
72227
- await fs$1.unlink(tmpPath);
72227
+ await fsPromises.unlink(tmpPath);
72228
72228
  } catch (cleanupErr) {
72229
72229
  params.warn?.(`session file repair cleanup failed: ${cleanupErr instanceof Error ? cleanupErr.message : "unknown error"} (${path.basename(tmpPath)})`);
72230
72230
  }
@@ -74690,7 +74690,7 @@ async function prewarmSessionFile(sessionFile) {
74690
74690
  if (!isSessionManagerCacheEnabled()) return;
74691
74691
  if (isSessionManagerCached(sessionFile)) return;
74692
74692
  try {
74693
- const handle = await fs$1.open(sessionFile, "r");
74693
+ const handle = await fsPromises.open(sessionFile, "r");
74694
74694
  try {
74695
74695
  const buffer = Buffer$1.alloc(4096);
74696
74696
  await handle.read(buffer, 0, buffer.length, 0);
@@ -75057,7 +75057,7 @@ async function compactEmbeddedPiSessionDirect(params) {
75057
75057
  } catch (err) {
75058
75058
  return fail(describeUnknownError(err));
75059
75059
  }
75060
- await fs$1.mkdir(resolvedWorkspace, { recursive: true });
75060
+ await fsPromises.mkdir(resolvedWorkspace, { recursive: true });
75061
75061
  const sandboxSessionKey = params.sessionKey?.trim() || params.sessionId;
75062
75062
  const sandbox = await resolveSandboxContext({
75063
75063
  config: params.config,
@@ -75065,7 +75065,7 @@ async function compactEmbeddedPiSessionDirect(params) {
75065
75065
  workspaceDir: resolvedWorkspace
75066
75066
  });
75067
75067
  const effectiveWorkspace = sandbox?.enabled ? sandbox.workspaceAccess === "rw" ? resolvedWorkspace : sandbox.workspaceDir : resolvedWorkspace;
75068
- await fs$1.mkdir(effectiveWorkspace, { recursive: true });
75068
+ await fsPromises.mkdir(effectiveWorkspace, { recursive: true });
75069
75069
  await ensureSessionHeader({
75070
75070
  sessionFile: params.sessionFile,
75071
75071
  sessionId: params.sessionId,
@@ -75950,12 +75950,12 @@ function getQueuedFileWriter(writers, filePath) {
75950
75950
  const existing = writers.get(filePath);
75951
75951
  if (existing) return existing;
75952
75952
  const dir = path.dirname(filePath);
75953
- const ready = fs$1.mkdir(dir, { recursive: true }).catch(() => void 0);
75953
+ const ready = fsPromises.mkdir(dir, { recursive: true }).catch(() => void 0);
75954
75954
  let queue = Promise.resolve();
75955
75955
  const writer = {
75956
75956
  filePath,
75957
75957
  write: (line) => {
75958
- queue = queue.then(() => ready).then(() => fs$1.appendFile(filePath, line, "utf8")).catch(() => void 0);
75958
+ queue = queue.then(() => ready).then(() => fsPromises.appendFile(filePath, line, "utf8")).catch(() => void 0);
75959
75959
  }
75960
75960
  };
75961
75961
  writers.set(filePath, writer);
@@ -78873,7 +78873,7 @@ async function prepareSessionManagerForRun(params) {
78873
78873
  return;
78874
78874
  }
78875
78875
  if (params.hadSessionFile && header && !hasAssistant) {
78876
- await fs$1.writeFile(params.sessionFile, "", "utf-8");
78876
+ await fsPromises.writeFile(params.sessionFile, "", "utf-8");
78877
78877
  sm.fileEntries = [header];
78878
78878
  sm.byId?.clear?.();
78879
78879
  sm.labelsById?.clear?.();
@@ -79591,7 +79591,7 @@ async function runEmbeddedAttempt(params) {
79591
79591
  const prevCwd = process.cwd();
79592
79592
  const runAbortController = new AbortController();
79593
79593
  log$6.debug(`embedded run start: runId=${params.runId} sessionId=${params.sessionId} provider=${params.provider} model=${params.modelId} thinking=${params.thinkLevel} messageChannel=${params.messageChannel ?? params.messageProvider ?? "unknown"}`);
79594
- await fs$1.mkdir(resolvedWorkspace, { recursive: true });
79594
+ await fsPromises.mkdir(resolvedWorkspace, { recursive: true });
79595
79595
  const sandboxSessionKey = params.sessionKey?.trim() || params.sessionId;
79596
79596
  const sandbox = await resolveSandboxContext({
79597
79597
  config: params.config,
@@ -79599,7 +79599,7 @@ async function runEmbeddedAttempt(params) {
79599
79599
  workspaceDir: resolvedWorkspace
79600
79600
  });
79601
79601
  const effectiveWorkspace = sandbox?.enabled ? sandbox.workspaceAccess === "rw" ? resolvedWorkspace : sandbox.workspaceDir : resolvedWorkspace;
79602
- await fs$1.mkdir(effectiveWorkspace, { recursive: true });
79602
+ await fsPromises.mkdir(effectiveWorkspace, { recursive: true });
79603
79603
  let restoreSkillEnv;
79604
79604
  process.chdir(effectiveWorkspace);
79605
79605
  try {
@@ -79869,7 +79869,7 @@ async function runEmbeddedAttempt(params) {
79869
79869
  sessionFile: params.sessionFile,
79870
79870
  warn: (message) => log$6.warn(message)
79871
79871
  });
79872
- const hadSessionFile = await fs$1.stat(params.sessionFile).then(() => true).catch(() => false);
79872
+ const hadSessionFile = await fsPromises.stat(params.sessionFile).then(() => true).catch(() => false);
79873
79873
  const transcriptPolicy = resolveTranscriptPolicy({
79874
79874
  modelApi: params.model?.api,
79875
79875
  provider: params.provider,
@@ -80998,7 +80998,7 @@ async function runEmbeddedPiAgent(params) {
80998
80998
  const copilotAuthRetry = authRetryPending;
80999
80999
  authRetryPending = false;
81000
81000
  attemptedThinking.add(thinkLevel);
81001
- await fs$1.mkdir(resolvedWorkspace, { recursive: true });
81001
+ await fsPromises.mkdir(resolvedWorkspace, { recursive: true });
81002
81002
  const prompt = provider === "anthropic" ? scrubAnthropicRefusalMagic(params.prompt) : params.prompt;
81003
81003
  const attempt = await runEmbeddedAttempt({
81004
81004
  sessionId: params.sessionId,
@@ -83312,7 +83312,7 @@ async function emitResetCommandHooks(params) {
83312
83312
  try {
83313
83313
  const messages = [];
83314
83314
  if (sessionFile) {
83315
- const content = await fs$1.readFile(sessionFile, "utf-8");
83315
+ const content = await fsPromises.readFile(sessionFile, "utf-8");
83316
83316
  for (const line of content.split("\n")) {
83317
83317
  if (!line.trim()) continue;
83318
83318
  try {
@@ -88344,7 +88344,7 @@ const warnedContexts = /* @__PURE__ */ new Map();
88344
88344
  const log$1 = createSubsystemLogger("session-maintenance-warning");
88345
88345
  let deliverRuntimePromise = null;
88346
88346
  function loadDeliverRuntime() {
88347
- deliverRuntimePromise ??= import("./deliver-runtime-DGrrnFpY.js");
88347
+ deliverRuntimePromise ??= import("./deliver-runtime-CBjIBIWj.js");
88348
88348
  return deliverRuntimePromise;
88349
88349
  }
88350
88350
  function shouldSendWarning() {
@@ -88925,7 +88925,7 @@ async function stageSandboxMedia(params) {
88925
88925
  const remoteMediaCacheDir = ctx.MediaRemoteHost ? path.join(CONFIG_DIR, "media", "remote-cache", sessionKey) : null;
88926
88926
  const effectiveWorkspaceDir = sandbox?.workspaceDir ?? remoteMediaCacheDir;
88927
88927
  if (!effectiveWorkspaceDir) return;
88928
- await fs$1.mkdir(effectiveWorkspaceDir, { recursive: true });
88928
+ await fsPromises.mkdir(effectiveWorkspaceDir, { recursive: true });
88929
88929
  const remoteAttachmentRoots = resolveIMessageRemoteAttachmentRoots({
88930
88930
  cfg,
88931
88931
  accountId: ctx.AccountId
@@ -88984,8 +88984,8 @@ async function stageLocalFileIntoRoot(params) {
88984
88984
  }
88985
88985
  async function stageRemoteFileIntoRoot(params) {
88986
88986
  const tmpRoot = resolvePreferredOpenClawTmpDir();
88987
- await fs$1.mkdir(tmpRoot, { recursive: true });
88988
- const tmpDir = await fs$1.mkdtemp(path.join(tmpRoot, "stage-sandbox-media-"));
88987
+ await fsPromises.mkdir(tmpRoot, { recursive: true });
88988
+ const tmpDir = await fsPromises.mkdtemp(path.join(tmpRoot, "stage-sandbox-media-"));
88989
88989
  const tmpPath = path.join(tmpDir, "download");
88990
88990
  try {
88991
88991
  await scpFile(params.remoteHost, params.remotePath, tmpPath);
@@ -88996,7 +88996,7 @@ async function stageRemoteFileIntoRoot(params) {
88996
88996
  maxBytes: params.maxBytes
88997
88997
  });
88998
88998
  } finally {
88999
- await fs$1.rm(tmpDir, {
88999
+ await fsPromises.rm(tmpDir, {
89000
89000
  recursive: true,
89001
89001
  force: true
89002
89002
  }).catch(() => {});