wednesdayai 0.4.12-dev.720 → 0.4.12-dev.722

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 (446) hide show
  1. package/dist/{acp-cli-pyfXjm-X.js → acp-cli-DXVeP5by.js} +11 -11
  2. package/dist/{agent-scope-Dw728gHk.js → agent-scope-Dt0TVWFY.js} +20 -20
  3. package/dist/{agent-turn-enqueue-BNvNiMpq.js → agent-turn-enqueue-CsHMHVsf.js} +5 -5
  4. package/dist/{agent-turn-enqueue-Ca6nDySG.js → agent-turn-enqueue-QcHb-Wlq.js} +4 -4
  5. package/dist/{agent-turn-execute-DLS3hVZN.js → agent-turn-execute-pkDSwyuf.js} +186 -186
  6. package/dist/{agent-turn-recovery-adapter-D2yM42JV.js → agent-turn-recovery-adapter-CL4IrGUo.js} +1 -1
  7. package/dist/{agent-turn-recovery-adapter-BhqXEKaC.js → agent-turn-recovery-adapter-Dw5-XbMI.js} +3 -3
  8. package/dist/{agent-turn-runner-CNzxqAVO.js → agent-turn-runner-CUoz_Fkl.js} +1 -1
  9. package/dist/{agent-turn-runner-BDS9k--2.js → agent-turn-runner-DoHGgNPh.js} +4 -4
  10. package/dist/{agent-turn-runner-lDarvfDi.js → agent-turn-runner-LlrD6k2x.js} +3 -3
  11. package/dist/{agents-CCi5d3rh.js → agents-TOaKn6gk.js} +17 -17
  12. package/dist/{agents.config-D1RGbjKF.js → agents.config-96ueVlOH.js} +2 -2
  13. package/dist/{agents.config-BiZOgm5C.js → agents.config-DWMgN4qH.js} +1 -1
  14. package/dist/{api-key-rotation-BDa6RvrU.js → api-key-rotation-DiMQTef3.js} +1 -1
  15. package/dist/{audio-preflight-DvDzBaci.js → audio-preflight-B_5sTSyb.js} +5 -5
  16. package/dist/{audio-preflight-DxY7sUFD.js → audio-preflight-CO3ozqOb.js} +35 -35
  17. package/dist/{audio-preflight-DK8V6rCg.js → audio-preflight-p84ph4C7.js} +6 -6
  18. package/dist/{audio-transcription-runner-D-iXNE6Y.js → audio-transcription-runner-CsQR8LpS.js} +1 -1
  19. package/dist/{audio-transcription-runner-N8I-G4DN.js → audio-transcription-runner-Gr8vN3AS.js} +26 -26
  20. package/dist/{audio-transcription-runner-DFQtapUX.js → audio-transcription-runner-XFfvRPXl.js} +1 -1
  21. package/dist/{audit-3p1cCyN-.js → audit-8O6sjQPv.js} +29 -29
  22. package/dist/{audit-Dz2E9h1H.js → audit-CzREkjwC.js} +3 -3
  23. package/dist/{auth-BdqTyBRn.js → auth-Cx-Q9zgv.js} +4 -4
  24. package/dist/{auth-choice-Bn539iDJ.js → auth-choice-C0dQwQuu.js} +15 -15
  25. package/dist/{auth-choice-BjBu2HIJ.js → auth-choice-DtRePxUx.js} +13 -13
  26. package/dist/{auth-choice-CtjeyUxN.js → auth-choice-s0pWvSbn.js} +1 -1
  27. package/dist/{auth-choice.apply-helpers-BjbwkC61.js → auth-choice.apply-helpers-Bplvajjf.js} +1 -1
  28. package/dist/{auth-token-BhGJiF3k.js → auth-token-xxEJDMxh.js} +2 -2
  29. package/dist/{banner-DeTwUKJw.js → banner-BwICuMvl.js} +4 -4
  30. package/dist/{bonjour-discovery-Df2P-Q7o.js → bonjour-discovery-B1GbNHC3.js} +3 -3
  31. package/dist/{browser-cli-CM2fkqWj.js → browser-cli-NV-pdj3F.js} +19 -19
  32. package/dist/build-info.json +3 -3
  33. package/dist/bundled/boot-md/handler.js +12 -12
  34. package/dist/bundled/session-journal/handler.js +12 -12
  35. package/dist/bundled/session-memory/handler.js +12 -12
  36. package/dist/{call-UfwN5rR7.js → call-PE59cW0J.js} +12 -12
  37. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  38. package/dist/{channel-account-context-BeP04lVU.js → channel-account-context-DM1npKXX.js} +6 -6
  39. package/dist/{channel-activity-DF1lamZi.js → channel-activity-SqK9nKf7.js} +2 -2
  40. package/dist/{channel-options-HOe8Wb7T.js → channel-options-BmfLwNE6.js} +3 -3
  41. package/dist/{channel-options-CPd94dTo.js → channel-options-CurDeT7Z.js} +1 -1
  42. package/dist/{channel-selection-CNMEexgg.js → channel-selection-DfNPCJXK.js} +1 -1
  43. package/dist/{channels-cli-CvJYuVVM.js → channels-cli-CZqlXMjZ.js} +114 -114
  44. package/dist/{channels-cli-BJlbTkJA.js → channels-cli-D2PB80Ed.js} +23 -23
  45. package/dist/{channels-status-issues-CdhIpbIH.js → channels-status-issues-B4p6AXBG.js} +1 -1
  46. package/dist/{chrome-Ch-PRzot.js → chrome-BsgpiutB.js} +6 -6
  47. package/dist/{chrome-nLlFTBUI.js → chrome-FHxGdLnd.js} +8 -8
  48. package/dist/{chunk-dZYOJUMQ.js → chunk-DiXpyRAz.js} +2 -2
  49. package/dist/{clack-prompter-DGDmJDVW.js → clack-prompter-fldgCPEr.js} +5 -5
  50. package/dist/{clawbot-cli-krI9B7O9.js → clawbot-cli-C91sysrP.js} +15 -15
  51. package/dist/cli/daemon-cli.js +1 -1
  52. package/dist/cli-DJUeQG1g.js +164 -0
  53. package/dist/{cli-Clb9hAIp.js → cli-YKA_HQlq.js} +17 -17
  54. package/dist/{client-BGqFY5o-.js → client-DN-SMVBn.js} +3 -3
  55. package/dist/{client-profiles-CRejJ0SL.js → client-profiles-DEoACLX5.js} +2 -2
  56. package/dist/{clipboard-DnrCtTv6.js → clipboard-DczD_L5d.js} +1 -1
  57. package/dist/{command-queue-BoBsMaob.js → command-queue-B3_VRNOr.js} +1 -1
  58. package/dist/{command-queue-CK20dQVc.js → command-queue-Bn2PHabT.js} +1 -1
  59. package/dist/{command-queue-DmPFhCm2.js → command-queue-CkNuNlmY.js} +1 -1
  60. package/dist/{command-registry-C7V01SL9.js → command-registry-Dok3-b8T.js} +14 -14
  61. package/dist/{command-secret-targets-DtnfBTvl.js → command-secret-targets-CJ1czw_Q.js} +4 -4
  62. package/dist/{commands-Byb21m-W.js → commands-Csxgimkc.js} +1 -1
  63. package/dist/{commands-registry-fXBoHxbT.js → commands-registry-Dx5QvNqH.js} +3 -3
  64. package/dist/{completion-cli-C1TbI3Nq.js → completion-cli-Ctg9QIDB.js} +16 -16
  65. package/dist/{completion-cli-Nhp2rZs6.js → completion-cli-DzgbSYNf.js} +1 -1
  66. package/dist/{config-CRFk9Bjq.js → config-BPACL-n5.js} +51 -51
  67. package/dist/{config-cli-BbSkPwpp.js → config-cli-BUrIABmo.js} +1 -1
  68. package/dist/{config-cli-BZACiXqP.js → config-cli-Bp3NVXJ8.js} +10 -10
  69. package/dist/{config-guard-D407qaoD.js → config-guard-CdfLkwSv.js} +4 -4
  70. package/dist/{config-validation-KuIoSFk6.js → config-validation-BdrPl8og.js} +2 -2
  71. package/dist/{configure-DPlcHPb2.js → configure-CAdfZJx3.js} +3 -3
  72. package/dist/{configure-Cqjr_du7.js → configure-CFjjPHas.js} +25 -25
  73. package/dist/{control-ui-assets-CZc_jZ5P.js → control-ui-assets-BXkk_vKO.js} +3 -3
  74. package/dist/{controller-DhhnKGZm.js → controller-CyFBTP5K.js} +1 -1
  75. package/dist/{credentials-QcQyEdJH.js → credentials-DVI9X-9y.js} +1 -1
  76. package/dist/{cron-cli-CaA0d8t9.js → cron-cli-BuVrA_FU.js} +13 -13
  77. package/dist/{daemon-cli-BHHTg_VA.js → daemon-cli-D874Hxry.js} +19 -19
  78. package/dist/daemon-cli.js +7 -7
  79. package/dist/{daemon-install-E2_ktpUO.js → daemon-install-BuETscSF.js} +11 -11
  80. package/dist/{daemon-install-helpers-Di-kgTCh.js → daemon-install-helpers-CKbnFsNZ.js} +13 -13
  81. package/dist/{deliver-CaBp0YZL.js → deliver-BLp1Q7uO.js} +9 -9
  82. package/dist/{deliver-DFUO2CfJ.js → deliver-CXqNQ8yi.js} +1 -1
  83. package/dist/{deliver-DZG38ZGm.js → deliver-rLn-23ud.js} +1 -1
  84. package/dist/{devices-cli-CyO1xf6G.js → devices-cli-PIMtgiCQ.js} +12 -12
  85. package/dist/{diagnostic-DBbvGWxf.js → diagnostic-85mWzvQi.js} +1 -1
  86. package/dist/{diagnostic-DgDaUn7q.js → diagnostic-Bbg-zObh.js} +1 -1
  87. package/dist/{diagnostic-CyH49cpU.js → diagnostic-u64kcpDQ.js} +3 -3
  88. package/dist/{diagnostics-BMCo9z-e.js → diagnostics-C6ntZHc3.js} +5 -5
  89. package/dist/{directory-cli-Bp8CPJAj.js → directory-cli-ByC5Q1X3.js} +10 -10
  90. package/dist/{dm-policy-shared-DFPi7Zr2.js → dm-policy-shared-CV1uWhMc.js} +4 -4
  91. package/dist/{dns-cli-BIvl-4eO.js → dns-cli-BlEBJkZs.js} +10 -10
  92. package/dist/{docs-cli-C96pCTO9.js → docs-cli-DC1z-BLX.js} +9 -9
  93. package/dist/{doctor-completion-aQBy29mi.js → doctor-completion-Cfe2nTpN.js} +1 -1
  94. package/dist/{doctor-completion-BeQ5D1_M.js → doctor-completion-CpGKbe63.js} +3 -3
  95. package/dist/{doctor-config-flow-C2Gtj2Ld.js → doctor-config-flow-gOmD0dFV.js} +14 -14
  96. package/dist/{enable-DW_1rt5K.js → enable-p_l_FcJp.js} +2 -2
  97. package/dist/entry.js +4 -4
  98. package/dist/{exec-approvals-BL3RknaU.js → exec-approvals-C3o7bTbp.js} +1 -1
  99. package/dist/{exec-approvals-allowlist-UZiLlQZY.js → exec-approvals-allowlist-CNWI56tZ.js} +1 -1
  100. package/dist/{exec-approvals-cli-vu_X-YzH.js → exec-approvals-cli-BShAvkW4.js} +22 -22
  101. package/dist/{exec-safe-bin-runtime-policy-kCGsE7iL.js → exec-safe-bin-runtime-policy-C3eU8CKJ.js} +2 -2
  102. package/dist/{exec-DirIo9VQ.js → exec-vJi_ETQy.js} +2 -2
  103. package/dist/{extension-relay-auth-BE4YupGc.js → extension-relay-auth-DD-U9VUc.js} +10 -10
  104. package/dist/{fetch-cHZPcwpd.js → fetch-ByEEe-Yd.js} +5 -5
  105. package/dist/{fetch-guard-Dp0XbWAV.js → fetch-guard-BzXFjlMV.js} +3 -3
  106. package/dist/{fs-safe-D7SLKk8k.js → fs-safe-CByGgR59.js} +25 -25
  107. package/dist/{gateway-cli-k85i40XY.js → gateway-cli-3YUOWIal.js} +524 -283
  108. package/dist/{gateway-cli-DO1ZdC57.js → gateway-cli-CDCwUJ0Z.js} +356 -115
  109. package/dist/{gateway-rpc-DU3hSTzG.js → gateway-rpc-DOfMq6W1.js} +3 -3
  110. package/dist/{globals-BvFc3LRQ.js → globals-ZyVsnNcg.js} +7 -7
  111. package/dist/{gmail-setup-utils-DxQW0vvG.js → gmail-setup-utils-BzuIKryU.js} +2 -2
  112. package/dist/{health-joZ3P32_.js → health-B5jHSu9i.js} +8 -8
  113. package/dist/{health-yflM7Rsw.js → health-BEgp6PEF.js} +2 -2
  114. package/dist/{health-format-DxSGV0xs.js → health-format-DX1WwWnG.js} +1 -1
  115. package/dist/{heartbeat-tick-D26lWjWr.js → heartbeat-tick-By0WI8YD.js} +1 -1
  116. package/dist/{help-format-BuYYzCrK.js → help-format-DuL_Y84f.js} +1 -1
  117. package/dist/{hooks-cli-Bqx4BeE7.js → hooks-cli-D1_UuIh4.js} +19 -19
  118. package/dist/{hooks-cli-HMujIPDt.js → hooks-cli-Dy5LfGKt.js} +105 -105
  119. package/dist/{hooks-status-BIpoTNG2.js → hooks-status-C6mtKL68.js} +2 -2
  120. package/dist/{image-ops-BH5tZFXZ.js → image-ops-Cq6SZYWW.js} +11 -11
  121. package/dist/{incident-install-BVVufsbF.js → incident-install-B626HvYY.js} +11 -11
  122. package/dist/index.js +21 -21
  123. package/dist/{inspect-ALwqX-AP.js → inspect-LfUprDjx.js} +4 -4
  124. package/dist/{install-safe-path-B8ogENI2.js → install-safe-path-4YfMRsxN.js} +25 -25
  125. package/dist/{installs-BZc_r32M.js → installs-4lGALZOo.js} +10 -10
  126. package/dist/{installs-DhvxSfA2.js → installs-puN7yKHH.js} +1 -1
  127. package/dist/{ipv4-BQfY4Nz0.js → ipv4-BA1qFtVZ.js} +2 -2
  128. package/dist/{ir-Bphccx2x.js → ir-B3r0eIJW.js} +8 -8
  129. package/dist/{issue-format-eKDAjB9C.js → issue-format-BG8o87sf.js} +1 -1
  130. package/dist/{lifecycle-core-CIW7Nndu.js → lifecycle-core-CuMY0U_8.js} +9 -9
  131. package/dist/{links-oxBAdiT5.js → links-BZDTcdHU.js} +1 -1
  132. package/dist/{live-repair-CK2uu1bb.js → live-repair-BF2elTcB.js} +10 -10
  133. package/dist/llm-slug-generator.js +12 -12
  134. package/dist/{log-tail-Cu_iMzte.js → log-tail-Dg2oYTZ6.js} +7 -7
  135. package/dist/{logger-DygiqHXJ.js → logger-B1oXl7GT.js} +2 -2
  136. package/dist/{logging-DT83g6VT.js → logging-DgKdQHpc.js} +1 -1
  137. package/dist/{logs-cli-OJbjnEG9.js → logs-cli-CrUZySOS.js} +18 -18
  138. package/dist/{manager-DbUdXsY9.js → manager-PSj0t5kg.js} +16 -16
  139. package/dist/{markdown-tables-DBBxKcll.js → markdown-tables-BcUNsqVQ.js} +1 -1
  140. package/dist/{memory-cli-OhwCkNE-.js → memory-cli-DVqLwNhN.js} +18 -18
  141. package/dist/{model-D56FsZ1w.js → model-BbeosLtF.js} +2 -2
  142. package/dist/{model-catalog-CLFSsgfj.js → model-catalog-Bjfzg68Q.js} +4 -4
  143. package/dist/{model-picker-DBwSCw_9.js → model-picker-JQM5rw_w.js} +4 -4
  144. package/dist/{models-m1jUnKvs.js → models-Kq9m-LfF.js} +23 -23
  145. package/dist/{models-cli-BWXMokU_.js → models-cli-B4wVcMjJ.js} +105 -105
  146. package/dist/{models-cli-CC42HgJD.js → models-cli-dyUiDMqX.js} +17 -17
  147. package/dist/{models-config-BDhVodK4.js → models-config-BMgEFu57.js} +7 -7
  148. package/dist/{node-cli-Cd6_BySw.js → node-cli-DGi3DELS.js} +41 -41
  149. package/dist/{node-cli-CR7U5VZ3.js → node-cli-Dm9lnwVF.js} +3 -3
  150. package/dist/{node-command-policy-B4-mf1hM.js → node-command-policy-C1Fy9dcA.js} +1 -1
  151. package/dist/{node-service-DlskRE2h.js → node-service-Ys7JZFz-.js} +1 -1
  152. package/dist/{nodes-cli-B_iLcTCz.js → nodes-cli-Bp2RePXd.js} +24 -24
  153. package/dist/{nodes-screen-DGsjKglY.js → nodes-screen-DANf1hC-.js} +8 -8
  154. package/dist/{note-QFI8C-0H.js → note-CWaaN_Hi.js} +2 -2
  155. package/dist/{npm-pack-install-BNQ7dpDL.js → npm-pack-install-BgBpeTJk.js} +1 -1
  156. package/dist/{npm-pack-install-DrAALuzR.js → npm-pack-install-Dlm0MIZy.js} +24 -24
  157. package/dist/{npm-resolution-DWT08Jg9.js → npm-resolution-DWE5khjC.js} +2 -2
  158. package/dist/{npm-resolution-CznyJdS_.js → npm-resolution-Ey8dK3VI.js} +5 -5
  159. package/dist/{oauth-tls-preflight-iGljnxA8.js → oauth-tls-preflight-DJESrRid.js} +1 -1
  160. package/dist/{onboard-DprdwW6T.js → onboard-CneU0GqJ.js} +11 -11
  161. package/dist/{onboard-channels-eDRUfcgC.js → onboard-channels-B1oC1rop.js} +2 -2
  162. package/dist/{onboard-channels-BN5zmpQb.js → onboard-channels-Bm2XVN3C.js} +21 -21
  163. package/dist/{onboard-custom-rapGXTfP.js → onboard-custom-Bz-7TT12.js} +4 -4
  164. package/dist/{onboard-helpers-BlOvn-As.js → onboard-helpers-DNbkQX5v.js} +13 -13
  165. package/dist/{onboard-hooks-C2X1aAwg.js → onboard-hooks-CCtE4bqF.js} +7 -7
  166. package/dist/{onboard-remote-CmifKZ42.js → onboard-remote-DsBkNMeO.js} +5 -5
  167. package/dist/{onboard-skills-Cbv5AZ8C.js → onboard-skills-DX_x-MfC.js} +4 -4
  168. package/dist/{onboard-DRGIVMAs.js → onboard-trNO818c.js} +2 -2
  169. package/dist/{onboarding-1IkfvnYe.js → onboarding-BKoaWOxQ.js} +3 -3
  170. package/dist/{onboarding-DjLzxd2p.js → onboarding-R2m4j7Dp.js} +18 -18
  171. package/dist/{onboarding.finalize-CCnljJ0b.js → onboarding.finalize-B6K3hYJZ.js} +113 -113
  172. package/dist/{onboarding.finalize-xkxyNe63.js → onboarding.finalize-C0X_xaHh.js} +22 -22
  173. package/dist/{onboarding.gateway-config-DOTfpREQ.js → onboarding.gateway-config-DKLUe3Ul.js} +16 -16
  174. package/dist/{onboarding.secret-input-DH2Ce8GL.js → onboarding.secret-input-YvW1rg1V.js} +1 -1
  175. package/dist/{openai-model-default-DsBVhW_k.js → openai-model-default-CuWReftl.js} +2 -2
  176. package/dist/{openclaw-root-CvJ5CJns.js → openclaw-root-B6Tk0FH8.js} +2 -2
  177. package/dist/{operator-commands-JUXdOhQX.js → operator-commands-BmGo9Ngv.js} +5 -5
  178. package/dist/{operator-commands-DX-cb3Ye.js → operator-commands-EsKoI4yV.js} +2 -2
  179. package/dist/{outbound-attachment-DXvNKE87.js → outbound-attachment-DJ3uYvUI.js} +2 -2
  180. package/dist/{outbound-message-hooks-C0BAHo6-.js → outbound-message-hooks-BBtH97ZV.js} +4 -4
  181. package/dist/{pairing-cli-Cl5sMYgP.js → pairing-cli-CzdmBLwS.js} +10 -10
  182. package/dist/{pairing-labels-BMQWK5UC.js → pairing-labels-DYgJqxe0.js} +1 -1
  183. package/dist/{pairing-store-CVHmKK9w.js → pairing-store-BZFrD-fJ.js} +2 -2
  184. package/dist/{path-alias-guards-Dwpja4Ts.js → path-alias-guards-CHFrrzxZ.js} +3 -3
  185. package/dist/{path-safety-tNRAPoSe.js → path-safety-CCSB65fm.js} +1 -1
  186. package/dist/{pi-embedded-CZ0PhG7T.js → pi-embedded-COs_yO7U.js} +28 -28
  187. package/dist/{pi-embedded-helpers-CcG8tJG8.js → pi-embedded-helpers-BYLOFsUc.js} +3 -3
  188. package/dist/{pi-embedded-helpers-C6VayjB1.js → pi-embedded-helpers-C9XqX-Jq.js} +8 -8
  189. package/dist/{pi-embedded-helpers-D__rRuFh.js → pi-embedded-helpers-DIUrv2Ua.js} +1 -1
  190. package/dist/pi-embedded-recovery-adapter-8xq2SINa.js +60 -0
  191. package/dist/{pi-embedded-recovery-adapter-BJvKUFHn.js → pi-embedded-recovery-adapter-BHTdeEKa.js} +8 -8
  192. package/dist/{pi-embedded-recovery-adapter-BtqhGYD7.js → pi-embedded-recovery-adapter-DPjgp8q4.js} +3 -3
  193. package/dist/{pi-embedded-recovery-adapter-DS_uqVd7.js → pi-embedded-recovery-adapter-DytV4fjp.js} +2 -2
  194. package/dist/{pi-embedded-utils-CBwHE9Fa.js → pi-embedded-utils-BV_Dtzrw.js} +2 -2
  195. package/dist/{pi-embedded-utils-BOgoLC6a.js → pi-embedded-utils-BetZbS6i.js} +1 -1
  196. package/dist/{pi-embedded-utils-Wab6FAbw.js → pi-embedded-utils-DOtaZ7KV.js} +1 -1
  197. package/dist/{pi-model-discovery-dD_F5Zs_.js → pi-model-discovery-CZ9wxcE8.js} +1 -1
  198. package/dist/{pi-tools.policy-D-HUyDCX.js → pi-tools.policy-B7YiM0PW.js} +1 -1
  199. package/dist/{plugin-owned-work-recovery-adapter-DSTbgdf1.js → plugin-owned-work-recovery-adapter-CCMhA7pp.js} +7 -7
  200. package/dist/{plugin-registry-NO8bBmB-.js → plugin-registry-AEemJBCl.js} +1 -1
  201. package/dist/{plugin-registry-D1W5p4FN.js → plugin-registry-BjZ0q-dW.js} +4 -4
  202. package/dist/plugin-sdk/{agent-turn-execute-rfDl5JIk.js → agent-turn-execute-DoRgVKVO.js} +12 -12
  203. package/dist/plugin-sdk/{agent-turn-runner-CWFiK-TQ.js → agent-turn-runner-pU0RGvg6.js} +3 -3
  204. package/dist/plugin-sdk/{audio-preflight-Ch7wu2kR.js → audio-preflight-8hRbl8Io.js} +5 -5
  205. package/dist/plugin-sdk/{audio-transcription-runner-PQrzjXaP.js → audio-transcription-runner-CUsZFiEA.js} +1 -1
  206. package/dist/plugin-sdk/{chrome-nvzkZjx1.js → chrome-VZ0Zuu2w.js} +8 -8
  207. package/dist/plugin-sdk/{command-queue-Ctf3I4mj.js → command-queue-CbgNIrv6.js} +1 -1
  208. package/dist/plugin-sdk/{deliver-CvAny_u3.js → deliver-B7W4NNsR.js} +1 -1
  209. package/dist/plugin-sdk/{deliver-CLdBSfw5.js → deliver-CJP9TznW.js} +3 -3
  210. package/dist/plugin-sdk/{diagnostic-HwC2DvTv.js → diagnostic-BRUM6uNI.js} +1 -1
  211. package/dist/plugin-sdk/{pi-embedded-helpers-Cgger0dQ.js → pi-embedded-helpers-B-OOYT64.js} +3 -3
  212. package/dist/plugin-sdk/{pi-embedded-utils-BSR4yhc7.js → pi-embedded-utils-BoSGTbYO.js} +1 -1
  213. package/dist/plugin-sdk/{provider-dispatcher-UGV7dmN-.js → provider-dispatcher-CNLIHg-v.js} +12 -12
  214. package/dist/plugin-sdk/{provider-image-DWx_4D5v.js → provider-image-L_SRDPHU.js} +4 -4
  215. package/dist/plugin-sdk/{provider-image-CHcGL0EF.js → provider-image-zNa1Cccq.js} +1 -1
  216. package/dist/plugin-sdk/{pw-ai-D0hna1cK.js → pw-ai-JJrE-B1e.js} +1 -1
  217. package/dist/plugin-sdk/{runs-BW0cihzp.js → runs-CPA1-H-2.js} +5 -5
  218. package/dist/plugin-sdk/{runs-CljUZhIq.js → runs-H2FY7UEk.js} +3 -3
  219. package/dist/plugin-sdk/{send-BBYSrSTF.js → send-CF3PEjRy.js} +1 -1
  220. package/dist/plugin-sdk/{send-DXmuCfmg.js → send-CzxwgKvR.js} +2 -2
  221. package/dist/plugin-sdk/src/gateway/storage-startup-gate.d.ts +28 -8
  222. package/dist/plugin-sdk/{subagent-registry-C-Vy-p1q.js → subagent-registry-CAdT47aY.js} +12 -12
  223. package/dist/plugin-sdk/testing.js +12 -12
  224. package/dist/plugin-sdk/{tools--CF9HsHp.js → tools-3raTfdu5.js} +32 -32
  225. package/dist/{plugins-cli-DJJuzULB.js → plugins-cli-CjgLVUxJ.js} +108 -108
  226. package/dist/{plugins-cli-6f208X2l.js → plugins-cli-Di9VhU7J.js} +22 -22
  227. package/dist/{polling-timeout-L7Tp4szs.js → polling-timeout-DoMlNx_D.js} +2 -2
  228. package/dist/{ports-CwKtoFkm.js → ports-BxjQwKMc.js} +2 -2
  229. package/dist/{ports-J_cZ4_9V.js → ports-QWAeZ9Is.js} +3 -3
  230. package/dist/{program-P3xjiqt2.js → program-Dus5j4vB.js} +104 -104
  231. package/dist/{program-context-BnUPq4h0.js → program-context-CQrxOpXH.js} +22 -22
  232. package/dist/{progress-DFaFyDmB.js → progress-Dc4ihErK.js} +2 -2
  233. package/dist/{prompt-select-styled-BqvHWNWF.js → prompt-select-styled-D1Kc5Amb.js} +47 -47
  234. package/dist/{prompt-select-styled-zQtF-vV8.js → prompt-select-styled-D3Li9uy2.js} +6 -6
  235. package/dist/{prompt-style-CO6JkEel.js → prompt-style-XoPngT10.js} +1 -1
  236. package/dist/{provider-auth-helpers-BYuzSj8t.js → provider-auth-helpers-B5HQVptJ.js} +6 -6
  237. package/dist/{provider-image-DysCwCWi.js → provider-image-BICZzOki.js} +1 -1
  238. package/dist/{provider-image-NyTXaEL4.js → provider-image-BllyLBJM.js} +1 -1
  239. package/dist/{provider-image-BVRCttNV.js → provider-image-Bsivqxw8.js} +6 -6
  240. package/dist/{proxy-m4Mv3Vy0.js → proxy-Ba9wFNmC.js} +1 -1
  241. package/dist/{proxy-env-BVlcuMzr.js → proxy-env-DzG6q8Hh.js} +1 -1
  242. package/dist/{proxy-fetch-D1upsMhs.js → proxy-fetch-BqVhGKFd.js} +1 -1
  243. package/dist/{push-apns-RSo8eOEB.js → push-apns-BcZzA03X.js} +8 -8
  244. package/dist/{push-apns-D356cj0x.js → push-apns-qUm5cL9P.js} +2 -2
  245. package/dist/{pw-ai-B8pA3baY.js → pw-ai-CXSJw34w.js} +1 -1
  246. package/dist/{pw-ai-DAv_QGa9.js → pw-ai-Ci1kADkJ.js} +18 -18
  247. package/dist/{pw-ai-BXBbuCbh.js → pw-ai-DT3fj2Kt.js} +1 -1
  248. package/dist/{qmd-manager-qYKR5h5G.js → qmd-manager-IztYub3L.js} +23 -23
  249. package/dist/{qr-cli-BauN15DE.js → qr-cli-DhJ37DZK.js} +8 -8
  250. package/dist/{query-expansion-Bf7wd2Iw.js → query-expansion-BydaUlRH.js} +13 -13
  251. package/dist/{reconcile-bundled-DyXp6UFb.js → reconcile-bundled-CAKTvY-C.js} +3 -3
  252. package/dist/{reconcile-bundled-CYRLOXKB.js → reconcile-bundled-DJKaKSgk.js} +1 -1
  253. package/dist/{recorder-CMNhAFwu.js → recorder-Ca_njjjH.js} +2 -2
  254. package/dist/{recovery-adapter-DcDYSG4s.js → recovery-adapter-BT12fVyO.js} +8 -8
  255. package/dist/{recovery-adapter-Dp82nx48.js → recovery-adapter-CPQ9-014.js} +2 -2
  256. package/dist/{recovery-adapter-Cd74qcsK.js → recovery-adapter-DF25-zSH.js} +1 -1
  257. package/dist/{recovery-adapter-eslk30An.js → recovery-adapter-Df87xZQp.js} +34 -34
  258. package/dist/{recovery-adapter-ClfDS4Ov.js → recovery-adapter-okaOo6tO.js} +4 -4
  259. package/dist/{recovery-prompt-TVvxel5J.js → recovery-prompt-CRcPgKcT.js} +1 -1
  260. package/dist/{redact-snapshot-D7BZusrG.js → redact-snapshot--nD7TrF-.js} +2 -2
  261. package/dist/{register.agent-DHl47XYk.js → register.agent-BCNYDn8G.js} +22 -22
  262. package/dist/{register.agent-9DDYWINr.js → register.agent-CqGVQ2N1.js} +117 -117
  263. package/dist/{register.configure-CndtmXxY.js → register.configure-CPTDt8eL.js} +23 -23
  264. package/dist/register.configure-DxdNTBIk.js +168 -0
  265. package/dist/{register.maintenance-BWVbf3vi.js → register.maintenance-BOCv2N1t.js} +23 -23
  266. package/dist/{register.maintenance-B0m4vFl_.js → register.maintenance-CFjB31Z5.js} +125 -125
  267. package/dist/{register.message-BTvJee4k.js → register.message-CiT53tgD.js} +98 -98
  268. package/dist/{register.message-D_XRcga3.js → register.message-dqrK9EsG.js} +18 -18
  269. package/dist/{register.onboard-C9pmJhys.js → register.onboard-BKoeYDAF.js} +21 -21
  270. package/dist/{register.onboard-BOHf4ODS.js → register.onboard-xtBBqce9.js} +2 -2
  271. package/dist/{register.setup-Dc4c4RwB.js → register.setup-qHCNX6LC.js} +2 -2
  272. package/dist/{register.setup-CmChnAXy.js → register.setup-xIVMlLYx.js} +24 -24
  273. package/dist/{register.status-health-sessions-DcfcD5-d.js → register.status-health-sessions-CaxJw1rr.js} +20 -20
  274. package/dist/{register.status-health-sessions-HmPpPcsK.js → register.status-health-sessions-D4hMq0I7.js} +115 -115
  275. package/dist/{register.subclis-BlaRgswl.js → register.subclis-srwCZnD0.js} +34 -34
  276. package/dist/{replay-C9MQSD5C.js → replay-B9P8F4Td.js} +1 -1
  277. package/dist/{replies-aExjMxzn.js → replies-BNP-F_lm.js} +4 -4
  278. package/dist/{reply-C9VXFn4R.js → reply-B_SiN91-.js} +24 -24
  279. package/dist/{reply-directives-B3iuHT4J.js → reply-directives-Bc2RQAcJ.js} +2 -2
  280. package/dist/{reply-prefix-V-IxyeUB.js → reply-prefix-B8M4IWrd.js} +1 -1
  281. package/dist/{resolve-route-D0rmcC0-.js → resolve-route-KBL5oj6U.js} +4 -4
  282. package/dist/{rpc-DpE8vp-c.js → rpc-htgXg_yf.js} +3 -3
  283. package/dist/{run-main-BZA73lMf.js → run-main-BzfK-GcH.js} +117 -117
  284. package/dist/{runs-RYsbIfCS.js → runs-BW5fW5nB.js} +3 -3
  285. package/dist/{runs-BAm5mg_D.js → runs-BjLs5ozo.js} +6 -6
  286. package/dist/{runs-CHfKOgl6.js → runs-DGWNXyKA.js} +3 -3
  287. package/dist/{runtime-CK9AbML9.js → runtime-ACR3KU8j.js} +4 -4
  288. package/dist/{runtime-config-collectors-Q9nEWUTc.js → runtime-config-collectors-BVWO6FhK.js} +1 -1
  289. package/dist/{runtime-guard-fIvyv07S.js → runtime-guard-DchtXvGj.js} +1 -1
  290. package/dist/{sandbox-BqX3VN9w.js → sandbox-7YCCMJoM.js} +1 -1
  291. package/dist/{sandbox-DzgYdBHo.js → sandbox-BpdiWabc.js} +18 -18
  292. package/dist/{sandbox-cli-DS0rOY-2.js → sandbox-cli-Dv0Viev8.js} +2 -2
  293. package/dist/{sandbox-cli-Bdiy-JBA.js → sandbox-cli-UfXu5kvh.js} +25 -25
  294. package/dist/{secrets-cli-BgSYbUnm.js → secrets-cli-DD5pd5lU.js} +15 -15
  295. package/dist/{security-cli-DmfWrKBb.js → security-cli-DCKCspHc.js} +42 -42
  296. package/dist/{security-cli-BmLzna2E.js → security-cli-DRALCMFL.js} +4 -4
  297. package/dist/{send-DVTzquty.js → send-BBFfvgK9.js} +14 -14
  298. package/dist/{send-o7L9XTU3.js → send-BVisLSq7.js} +6 -6
  299. package/dist/{send-DVEBYs7q.js → send-B_t3X0hK.js} +7 -7
  300. package/dist/{send-CDuS9tHa.js → send-CZsC4D3G.js} +12 -12
  301. package/dist/{send-DSEM68Bg.js → send-CwCEyog7.js} +6 -6
  302. package/dist/{send-BFS-Gw56.js → send-DEFcgo-1.js} +1 -1
  303. package/dist/{send-PUOLKFU6.js → send-s0RNLFLX.js} +1 -1
  304. package/dist/{server-Cxvaq-2t.js → server-DWJmtex3.js} +4 -4
  305. package/dist/{server-context-RkR0AfjN.js → server-context-BEjWhzMi.js} +12 -12
  306. package/dist/{server-context-Ckaq9jDj.js → server-context-CQQ6Q5Kp.js} +2 -2
  307. package/dist/{server-lifecycle-nFfq19cU.js → server-lifecycle-B9IQKSom.js} +1 -1
  308. package/dist/{server-lifecycle-B8yCvRvX.js → server-lifecycle-C3hCCbXm.js} +3 -3
  309. package/dist/{server-middleware-B6bN1rYO.js → server-middleware-CrJMxxfQ.js} +1 -1
  310. package/dist/{server-node-events-CgVi6hsa.js → server-node-events-8k0OLCvW.js} +97 -97
  311. package/dist/{server-node-events-BYL12z2h.js → server-node-events-BYTgaAay.js} +18 -18
  312. package/dist/{server-CtXro2Oa.js → server-y8WhCQvu.js} +24 -24
  313. package/dist/{service-BVB5AQS4.js → service-Dkcqg-rd.js} +15 -15
  314. package/dist/{session-consumer-agents-WuG2FJYp.js → session-consumer-agents-5ORspv9c.js} +1 -1
  315. package/dist/{session-consumer-claim-sweep-BcfThIOH.js → session-consumer-claim-sweep-eBEe4crh.js} +7 -7
  316. package/dist/{session-key-resolution-D__Pd_mB.js → session-key-resolution-CvnTXaSw.js} +4 -4
  317. package/dist/{session-meta-YzxyVCeI.js → session-meta-Bd0mS7MT.js} +1 -1
  318. package/dist/{session-storage-DFsXIZwp.js → session-storage-Pnf4SMXY.js} +6 -6
  319. package/dist/{session-utils-B2PSRqVy.js → session-utils-CrCJ-7yK.js} +5 -5
  320. package/dist/{sessions-CJHCMakP.js → sessions-BlXxa7bM.js} +4 -4
  321. package/dist/{sessions-Q3WrKAAg.js → sessions-DFDrcshi.js} +16 -16
  322. package/dist/{sessions-CfKrfL19.js → sessions-ck0v65PE.js} +4 -4
  323. package/dist/{sessions-claims-status-k3n7GnFf.js → sessions-claims-status-BWkOZDb1.js} +11 -11
  324. package/dist/{shared-D__JxAlY.js → shared-BZXtBEEK.js} +3 -3
  325. package/dist/{shared-DerjPYzv.js → shared-Cj18nzyW.js} +2 -2
  326. package/dist/{skill-commands-DbmH_7xm.js → skill-commands-uhWJKPrM.js} +7 -7
  327. package/dist/{skill-scanner-CZhas7UB.js → skill-scanner-BrEkff8K.js} +7 -7
  328. package/dist/{skills-ZklHNqsc.js → skills-D3kpiNaJ.js} +6 -6
  329. package/dist/{skills-cli-Dj4NTcCE.js → skills-cli-DAJDC2x2.js} +9 -9
  330. package/dist/{skills-install-B7k9HIIw.js → skills-install-B23U6yk5.js} +9 -9
  331. package/dist/{skills-status-BEsBhRkz.js → skills-status-DEdp3c6y.js} +3 -3
  332. package/dist/{status-CbJxUaE5.js → status-BacPIpt6.js} +35 -35
  333. package/dist/{status-BBq1TMwB.js → status-BsGjriqM.js} +4 -4
  334. package/dist/{status.update-Dhleef_a.js → status.update-C4YRQzqD.js} +2 -2
  335. package/dist/{store-AQt3mu5T.js → store-BFf8dvdk.js} +7 -7
  336. package/dist/{subsystem-CXwk-lx3.js → subsystem-DLKs6VzZ.js} +1 -1
  337. package/dist/{supervisor-recovery-adapter-DVA_i7Fv.js → supervisor-recovery-adapter-BIN1RCIY.js} +7 -7
  338. package/dist/{system-cli-Dja3Rqeg.js → system-cli-LSxX4WjX.js} +13 -13
  339. package/dist/{system-run-command-Cv1h27tf.js → system-run-command-Dl8UC6hO.js} +2 -2
  340. package/dist/{systemd-Cjr55Dzl.js → systemd-BJqlwupF.js} +11 -11
  341. package/dist/{systemd-hints-Dd6VtLsV.js → systemd-hints-Cp0IfOPD.js} +9 -9
  342. package/dist/{systemd-linger-CoejU-0l.js → systemd-linger-Dk1GWduD.js} +2 -2
  343. package/dist/{table-CuH5YX2S.js → table-H366JkfJ.js} +2 -2
  344. package/dist/{tables-BBiYzs81.js → tables-CCEXTXTG.js} +1 -1
  345. package/dist/{tailnet-cZK3OCUB.js → tailnet-BSKE3pk_.js} +1 -1
  346. package/dist/{tailscale-DVz4yfpc.js → tailscale-BrZL_MiW.js} +2 -2
  347. package/dist/{task-pipeline-boot-yTQaBch8.js → task-pipeline-boot-CM-3tH09.js} +97 -97
  348. package/dist/{task-pipeline-boot-CUdpZ3t3.js → task-pipeline-boot-Dihxq0Tg.js} +18 -18
  349. package/dist/{task-runlog-retention-BdL6aGzZ.js → task-runlog-retention-DCbMK2T8.js} +67 -12
  350. package/dist/{task-runlog-retention-DhORDPYJ.js → task-runlog-retention-GZu-QuBY.js} +64 -9
  351. package/dist/{tasks-DKKuqmaV.js → tasks-Dm1ljmuN.js} +11 -11
  352. package/dist/{tokens-x3WbTUiR.js → tokens-B6PaaeVv.js} +1 -1
  353. package/dist/{tool-display-CO_Gj1t5.js → tool-display-DiZGbhL2.js} +1 -1
  354. package/dist/{tool-loop-detection-CGxEpEyN.js → tool-loop-detection-DHQv318m.js} +2 -2
  355. package/dist/{trash-BDCU6Fb2.js → trash-DNkuLhfz.js} +3 -3
  356. package/dist/{tui-DgQvXSe6.js → tui-DQwfx20_.js} +1 -1
  357. package/dist/{tui-wtR2jl1B.js → tui-X8LP2ykY.js} +8 -8
  358. package/dist/{tui-cli-CNz7Mg8b.js → tui-cli-DFen3XYb.js} +4 -4
  359. package/dist/{tui-cli-D4GLKISY.js → tui-cli-Dhj11694.js} +31 -31
  360. package/dist/{update-BEgLahg5.js → update-CYcHPlAS.js} +3 -3
  361. package/dist/{update-CVYwBE80.js → update-VuewNwzn.js} +1 -1
  362. package/dist/{update-cli-DhfSepno.js → update-cli-DE0ttohR.js} +26 -26
  363. package/dist/{update-cli-D-GilQk7.js → update-cli-DECVfh7L.js} +135 -135
  364. package/dist/{update-runner-ha2YJZBG.js → update-runner-C8NxlRy7.js} +18 -18
  365. package/dist/{update-runner-BTMpYRTQ.js → update-runner-CBbs-iN_.js} +1 -1
  366. package/dist/{user-run-recording-BR_U9osf.js → user-run-recording-DXNyfjMq.js} +2 -2
  367. package/dist/{validation-cli-hVAwTijW.js → validation-cli-D8dTZ830.js} +18 -18
  368. package/dist/{validation-cli-BwvVf8tp.js → validation-cli-Di7B-mhn.js} +97 -97
  369. package/dist/{web-cli-BtQrD08h.js → web-cli-B0hbvEsp.js} +3 -3
  370. package/dist/{web-client-assets-COSve3Rq.js → web-client-assets-nkeo2cLh.js} +1 -1
  371. package/dist/{webhooks-cli-B7OIieVk.js → webhooks-cli-Rne_IilT.js} +10 -10
  372. package/dist/{widearea-dns-B9lNb6ro.js → widearea-dns-B1ALOpPn.js} +1 -1
  373. package/dist/{with-timeout-CuFl-tDg.js → with-timeout-BfG7k9-4.js} +2 -2
  374. package/dist/{with-timeout-DIENRALL.js → with-timeout-CpZZ4mMw.js} +6 -6
  375. package/dist/{workspace-Dt30ZPzK.js → workspace-DkkkJ4GX.js} +2 -2
  376. package/dist/{workspace-dirs-CCmfLlPy.js → workspace-dirs-mzsfTPed.js} +1 -1
  377. package/dist/{ws-CBDMKFAM.js → ws-DESjYW7M.js} +2 -2
  378. package/dist/{wsl-C9d12M7y.js → wsl-BisEqrSr.js} +2 -2
  379. package/extensions/acpx/package.json +1 -1
  380. package/extensions/anthropic/package.json +1 -1
  381. package/extensions/bifrost/package.json +1 -1
  382. package/extensions/bluebubbles/package.json +1 -1
  383. package/extensions/copilot-proxy/package.json +1 -1
  384. package/extensions/deepgram/package.json +1 -1
  385. package/extensions/deepinfra/package.json +1 -1
  386. package/extensions/diagnostics-otel/package.json +1 -1
  387. package/extensions/diffs/package.json +1 -1
  388. package/extensions/discord/package.json +1 -1
  389. package/extensions/dream-cycle/package.json +1 -1
  390. package/extensions/elevenlabs/package.json +1 -1
  391. package/extensions/elevenlabs/src/streaming-speech-provider-faults.test.ts +2 -2
  392. package/extensions/elevenlabs/src/streaming-speech-provider.test.ts +19 -5
  393. package/extensions/elevenlabs/src/streaming-speech-provider.ts +3 -1
  394. package/extensions/feishu/package.json +1 -1
  395. package/extensions/gemini-search/package.json +1 -1
  396. package/extensions/google/package.json +1 -1
  397. package/extensions/google-gemini-cli-auth/package.json +1 -1
  398. package/extensions/googlechat/package.json +1 -1
  399. package/extensions/grok-search/package.json +1 -1
  400. package/extensions/groq/package.json +1 -1
  401. package/extensions/imessage/package.json +1 -1
  402. package/extensions/irc/package.json +1 -1
  403. package/extensions/kimi-search/package.json +1 -1
  404. package/extensions/learning-core/package.json +1 -1
  405. package/extensions/line/package.json +1 -1
  406. package/extensions/llm-task/package.json +1 -1
  407. package/extensions/lobster/package.json +1 -1
  408. package/extensions/matrix/CHANGELOG.md +1 -1
  409. package/extensions/matrix/package.json +1 -1
  410. package/extensions/mattermost/package.json +1 -1
  411. package/extensions/memory-core/package.json +1 -1
  412. package/extensions/memory-lancedb/package.json +1 -1
  413. package/extensions/minimax/package.json +1 -1
  414. package/extensions/minimax-portal-auth/package.json +1 -1
  415. package/extensions/mistral/package.json +1 -1
  416. package/extensions/moonshot/package.json +1 -1
  417. package/extensions/msteams/CHANGELOG.md +1 -1
  418. package/extensions/msteams/package.json +1 -1
  419. package/extensions/nextcloud-talk/package.json +1 -1
  420. package/extensions/nostr/CHANGELOG.md +1 -1
  421. package/extensions/nostr/package.json +1 -1
  422. package/extensions/open-prose/package.json +1 -1
  423. package/extensions/openai/package.json +1 -1
  424. package/extensions/openai-realtime/package.json +1 -1
  425. package/extensions/openrouter/package.json +1 -1
  426. package/extensions/perplexity-search/package.json +1 -1
  427. package/extensions/searxng-search/package.json +1 -1
  428. package/extensions/signal/package.json +1 -1
  429. package/extensions/slack/package.json +1 -1
  430. package/extensions/synology-chat/package.json +1 -1
  431. package/extensions/telegram/package.json +1 -1
  432. package/extensions/tlon/package.json +1 -1
  433. package/extensions/twitch/CHANGELOG.md +1 -1
  434. package/extensions/twitch/package.json +1 -1
  435. package/extensions/voice-call/CHANGELOG.md +1 -1
  436. package/extensions/voice-call/package.json +1 -1
  437. package/extensions/whatsapp/package.json +1 -1
  438. package/extensions/zai/package.json +1 -1
  439. package/extensions/zalo/CHANGELOG.md +1 -1
  440. package/extensions/zalo/package.json +1 -1
  441. package/extensions/zalouser/CHANGELOG.md +1 -1
  442. package/extensions/zalouser/package.json +1 -1
  443. package/package.json +1 -1
  444. package/dist/cli-CAr3GVB1.js +0 -164
  445. package/dist/pi-embedded-recovery-adapter-CpGvtObS.js +0 -60
  446. package/dist/register.configure-C2X-xBB6.js +0 -168
@@ -1,128 +1,128 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
2
- import { B as openBoundaryFile, Ct as shortenHomeInString, Dt as truncateUtf16Safe, Et as sliceUtf16Safe, N as INCLUDE_KEY, O as normalizeLogLevel, Ot as resolvePreferredOpenClawTmpDir, Tt as sleep$1, V as openBoundaryFileSync, Z as normalizeWindowsPathForComparison, _t as normalizeE164, a as logVerbose, c as shouldLogVerbose, et as isDangerousHostEnvVarName, gt as isRecord$1, lt as clampInt, m as getChildLogger, mt as escapeRegExp, p as theme, st as CONFIG_DIR, t as danger, u as warn, wt as shortenHomePath, x as appendFileLog, xt as resolveUserPath } from "./globals-BvFc3LRQ.js";
2
+ import { B as openBoundaryFile, Ct as shortenHomeInString, Dt as truncateUtf16Safe, Et as sliceUtf16Safe, N as INCLUDE_KEY, O as normalizeLogLevel, Ot as resolvePreferredOpenClawTmpDir, Tt as sleep$1, V as openBoundaryFileSync, Z as normalizeWindowsPathForComparison, _t as normalizeE164, a as logVerbose, c as shouldLogVerbose, et as isDangerousHostEnvVarName, gt as isRecord$1, lt as clampInt, m as getChildLogger, mt as escapeRegExp, p as theme, st as CONFIG_DIR, t as danger, u as warn, wt as shortenHomePath, x as appendFileLog, xt as resolveUserPath } from "./globals-ZyVsnNcg.js";
3
3
  import { g as resolveStateDir, r as STATE_DIR, u as resolveGatewayPort, y as resolveRequiredHomeDir } from "./paths-BMo6kTge.js";
4
4
  import { t as isPlainObject } from "./plain-object-CLm2c5Nu.js";
5
5
  import { t as isBlockedObjectKey } from "./prototype-keys-CQu4EAAe.js";
6
- import { m as defaultRuntime, p as createNonExitingRuntime, t as createSubsystemLogger } from "./subsystem-CXwk-lx3.js";
6
+ import { m as defaultRuntime, p as createNonExitingRuntime, t as createSubsystemLogger } from "./subsystem-DLKs6VzZ.js";
7
7
  import { t as parseBooleanValue$1 } from "./boolean-Bb19hm9Y.js";
8
8
  import { r as isTruthyEnvValue } from "./entry.js";
9
- import { $ as isAvatarHttpUrl, $a as normalizeWhatsAppTarget, $i as buildInboundMetaSystemPrompt, $n as normalizeSessionDeliveryFields, $o as listBufferedPluginTaskPasses, $t as createPluginRegistry, A as resolveExecPolicyPreset, Aa as getChannelDock, An as getActivePreservationLease, Ao as GATEWAY_CLIENT_IDS, Ar as jsonUtf8Bytes, Bo as acquireSessionWriteLock, C as normalizeScpRemoteHost, Cc as modelKey, Co as isMarkdownCapableMessageChannel, Cr as parseInlineDirectives$1, Da as listChannelPlugins, Do as resolveGatewayMessageChannel, Dr as applyInputProvenanceToUserMessage, Dt as safeStatSync, Ea as getChannelPlugin, Ec as normalizeProviderId, Eo as normalizeMessageChannel, Et as isPathInside, Eu as resolveOpenClawAgentDir, Fa as listTelegramAccountIds, Fc as resolveReasoningDefault, Fl as markAuthProfileUsed, Ga as resolveSlackReplyToMode, Gn as updateSessionStore, Ho as resolveSessionLockMaxHoldFromTimeout, Ht as getActivePluginRegistry, Io as normalizeAtHashSlug, Iu as normalizeSecretInput, Ja as listEnabledSignalAccounts, Ji as sanitizeJsonb, Jn as resolveCacheTtlMs$1, Js as applyMergePatch, Jt as setActivePluginRegistry, Ju as DEFAULT_MODEL, Ka as resolveSlackAppToken, Kn as updateSessionStoreEntry, Kt as requireActivePluginRegistry, Ku as splitTrailingAuthProfile, La as resolveTelegramAccount, Lc as resolveSubagentSpawnModelSelection, Ll as resolveProfilesUnavailableReason, Ln as readSessionUpdatedAt, Lo as normalizeHyphenSlug, Lt as normalizeAnyChannelId, Ma as normalizeSignalMessagingTarget, Mc as resolveDefaultModelForAgent, Ml as getSoonestCooldownExpiry, Mn as isPreservationArmed, Mo as GATEWAY_CLIENT_NAMES, Mt as CHAT_CHANNEL_ORDER, Na as createTelegramActionGate, Nl as isProfileInCooldown, Nn as loadSessionStore, Oa as normalizeChannelId$1, Oc as parseModelRef, Oo as resolveMessageChannel, Or as hasInterSessionUserProvenance, Ou as withFileLock, Pa as listEnabledTelegramAccounts, Pc as resolveModelRefFromString, Pl as markAuthProfileFailure, Q as isAvatarDataUrl, Qa as isWhatsAppGroupJid, Qi as toJsonValue$1, Qn as normalizeDeliveryContext, Qu as resolveShellEnvFallbackTimeoutMs, Ra as resolveTelegramToken, Rc as resolveThinkingDefault, Rl as resolveApiKeyForProfile, Rn as recordSessionMetaFromInbound, Ro as normalizeStringEntries, Rt as normalizeChannelId$2, S as resolveIMessageRemoteAttachmentRoots, Sa as resolveMainSessionKey, Sc as isCliProvider, Sn as triggerInternalHook, So as isInternalMessageChannel, Ss as buildEnforcedShellCommand, To as listDeliverableMessageChannels, Tt as discoverOpenClawPlugins, Tu as resolveAuthStorePathForDisplay, Un as syncConfiguredSessionTranscriptToRuntime, Uo as readTaskWorkStates, Ut as getActivePluginRegistryKey, Uu as normalizeResolvedSecretInputString, Vt as getActiveGatewayPluginRegistry, Wa as resolveSlackAccount, Wn as updateLastRoute, Xi as createCurrentUserPromptEnvelope, Xn as deliveryContextKey, Xt as addRegisteredPluginApi, Yi as sha256, Yn as deliveryContextFromSession, Yu as DEFAULT_PROVIDER, Z as AVATAR_MAX_BYTES, Za as resolveSignalAccount, Zi as mergePromptContributions, Zn as mergeDeliveryContext, Zo as discardBufferedPluginTaskPasses, Zt as clearRegisteredPluginApis, Zu as getShellPathFromLoginShell, _ as resolveTelegramCustomCommands, _a as resolveFreshSessionTotalTokens, _c as buildConfiguredAllowlistKeys, _i as DB_SESSION_HYDRATION_LIMIT, _l as requireApiKey, _o as resolveGroupSessionKey, _t as normalizePluginsConfig, ai as extractDeliveryInfo, an as normalizePluginHttpPath, ao as createDiscordActionGate, ba as resolveAgentMainSessionKey, bi as onSessionTranscriptUpdate, bl as resolveEnvApiKey, bn as createInternalHookEvent, bt as resolveMemorySlotDecision, c as readConfigFileSnapshot, ca as resolveSessionKey, cn as clearPluginCommands, cs as resetConfigOverrides, da as resolveChannelResetConfig, dl as buildAssistantMessage, dn as listPluginCommands, do as resolveChannelGroupPolicy, ds as getConfigValueAtPath, du as dedupeProfileIds, ea as buildInboundUserContextPrefix, ec as mapStreamingModeToSlackLegacyDraftStreamMode, er as normalizeAccountId$3, f as writeConfigFile, fa as resolveSessionResetPolicy, fc as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, fi as withPreservationWriterPermit, fl as buildAssistantMessageWithZeroUsage, fn as matchPluginCommand, fo as resolveChannelGroupRequireMention, fs as parseConfigPath, fu as listProfilesForProvider, g as normalizeTelegramCommandName, ga as mergeSessionEntry, gc as buildAllowedModelSet, gi as drainPendingPrimaryWrites, gl as getCustomProviderApiKey, h as TELEGRAM_COMMAND_NAME_PATTERN, ha as DEFAULT_RESET_TRIGGERS, hi as createPrimaryWriteInterceptor, hl as getApiKeyForModel, ho as resolveAccountEntry, ht as isBundledChannelEnabledByChannelConfig, ia as resolveSenderLabel, io as resolveIMessageAccount, is as RecoveryAdmissionError, ja as listChannelDocks, jc as resolveConfiguredModelRef, jl as resolveAuthProfileOrder, jn as getConfiguredSessionStorageRuntime, jo as GATEWAY_CLIENT_MODES, ju as resolveAuthProfileDisplayLabel, kr as normalizeInputProvenance, la as evaluateSessionFreshness, ll as OLLAMA_NATIVE_BASE_URL, ln as executePluginCommand, lo as resolveDiscordAccount, ls as setConfigOverride, lt as loadPluginManifestRegistry, ma as resolveThreadFlag, ml as buildUsageWithNoCost, ms as unsetConfigValueAtPath, mt as applyTestPluginDefaults, na as formatZonedTimestamp, nc as resolveSlackNativeStreaming, ni as writeJsonAtomic, nr as archiveSessionTranscripts, nt as isSupportedLocalAvatarExtension, o as loadConfig, oi as parseSessionThreadInfo, on as buildPluginHealthReport, ot as validateJsonSchemaValue, p as validateConfigObjectWithPlugins, pa as resolveSessionResetType, pc as resolveAgentMaxConcurrent, pi as isJsonlSessionBackend, pl as buildStreamErrorAssistantMessage, pn as registerPluginCommand, ps as setConfigValueAtPath, pt as BUNDLED_ENABLED_BY_DEFAULT, pu as markAuthProfileGood, qa as resolveSlackBotToken, qn as isCacheEnabled, qu as DEFAULT_CONTEXT_TOKENS, ra as resolveTimezone, rc as resolveSlackStreamingMode, ri as parseDurationMs, rr as capArrayByJsonBytes, si as appendAssistantMessageToSessionTranscript, so as listEnabledDiscordAccounts, ss as getConfigOverrides, ta as formatUtcTimestamp, tc as resolveDiscordPreviewStreamMode, td as resolveOwnerDisplaySetting, tl as retryAsync, to as resolveWhatsAppAccount, ts as replaceBufferedPluginTaskPasses, tt as isPathWithinRoot, ui as resolveAndPersistSessionFile, ul as createOllamaStreamFn, un as getPluginCommandSpecs, uo as normalizeDiscordToken, us as unsetConfigOverride, va as setSessionRuntimeModel, vc as buildModelAliasIndex, vi as hydrateSessionManagerFromDb, vl as resolveApiKeyForProvider, vo as INTERNAL_MESSAGE_CHANNEL, vt as resolveEffectiveEnableState, vu as ensureAuthProfileStore, w as parseNonNegativeByteSize, wa as deriveSessionMetaPatch, wc as normalizeModelRef$2, x as resolveIMessageAttachmentRoots, xa as resolveExplicitAgentSessionKey, xl as resolveModelAuthMode, xo as isGatewayMessageChannel, y as isInboundPathAllowed, ya as canonicalizeMainSessionAlias, yc as findNormalizedProviderValue, yi as emitSessionTranscriptUpdate, yo as isDeliverableMessageChannel, za as buildChannelAccountBindings, zo as normalizeStringEntriesLower } from "./config-CRFk9Bjq.js";
9
+ import { $ as isAvatarHttpUrl, $a as normalizeWhatsAppTarget, $i as buildInboundMetaSystemPrompt, $n as normalizeSessionDeliveryFields, $o as listBufferedPluginTaskPasses, $t as createPluginRegistry, A as resolveExecPolicyPreset, Aa as getChannelDock, An as getActivePreservationLease, Ao as GATEWAY_CLIENT_IDS, Ar as jsonUtf8Bytes, Bo as acquireSessionWriteLock, C as normalizeScpRemoteHost, Cc as modelKey, Co as isMarkdownCapableMessageChannel, Cr as parseInlineDirectives$1, Da as listChannelPlugins, Do as resolveGatewayMessageChannel, Dr as applyInputProvenanceToUserMessage, Dt as safeStatSync, Ea as getChannelPlugin, Ec as normalizeProviderId, Eo as normalizeMessageChannel, Et as isPathInside, Eu as resolveOpenClawAgentDir, Fa as listTelegramAccountIds, Fc as resolveReasoningDefault, Fl as markAuthProfileUsed, Ga as resolveSlackReplyToMode, Gn as updateSessionStore, Ho as resolveSessionLockMaxHoldFromTimeout, Ht as getActivePluginRegistry, Io as normalizeAtHashSlug, Iu as normalizeSecretInput, Ja as listEnabledSignalAccounts, Ji as sanitizeJsonb, Jn as resolveCacheTtlMs$1, Js as applyMergePatch, Jt as setActivePluginRegistry, Ju as DEFAULT_MODEL, Ka as resolveSlackAppToken, Kn as updateSessionStoreEntry, Kt as requireActivePluginRegistry, Ku as splitTrailingAuthProfile, La as resolveTelegramAccount, Lc as resolveSubagentSpawnModelSelection, Ll as resolveProfilesUnavailableReason, Ln as readSessionUpdatedAt, Lo as normalizeHyphenSlug, Lt as normalizeAnyChannelId, Ma as normalizeSignalMessagingTarget, Mc as resolveDefaultModelForAgent, Ml as getSoonestCooldownExpiry, Mn as isPreservationArmed, Mo as GATEWAY_CLIENT_NAMES, Mt as CHAT_CHANNEL_ORDER, Na as createTelegramActionGate, Nl as isProfileInCooldown, Nn as loadSessionStore, Oa as normalizeChannelId$1, Oc as parseModelRef, Oo as resolveMessageChannel, Or as hasInterSessionUserProvenance, Ou as withFileLock, Pa as listEnabledTelegramAccounts, Pc as resolveModelRefFromString, Pl as markAuthProfileFailure, Q as isAvatarDataUrl, Qa as isWhatsAppGroupJid, Qi as toJsonValue$1, Qn as normalizeDeliveryContext, Qu as resolveShellEnvFallbackTimeoutMs, Ra as resolveTelegramToken, Rc as resolveThinkingDefault, Rl as resolveApiKeyForProfile, Rn as recordSessionMetaFromInbound, Ro as normalizeStringEntries, Rt as normalizeChannelId$2, S as resolveIMessageRemoteAttachmentRoots, Sa as resolveMainSessionKey, Sc as isCliProvider, Sn as triggerInternalHook, So as isInternalMessageChannel, Ss as buildEnforcedShellCommand, To as listDeliverableMessageChannels, Tt as discoverOpenClawPlugins, Tu as resolveAuthStorePathForDisplay, Un as syncConfiguredSessionTranscriptToRuntime, Uo as readTaskWorkStates, Ut as getActivePluginRegistryKey, Uu as normalizeResolvedSecretInputString, Vt as getActiveGatewayPluginRegistry, Wa as resolveSlackAccount, Wn as updateLastRoute, Xi as createCurrentUserPromptEnvelope, Xn as deliveryContextKey, Xt as addRegisteredPluginApi, Yi as sha256, Yn as deliveryContextFromSession, Yu as DEFAULT_PROVIDER, Z as AVATAR_MAX_BYTES, Za as resolveSignalAccount, Zi as mergePromptContributions, Zn as mergeDeliveryContext, Zo as discardBufferedPluginTaskPasses, Zt as clearRegisteredPluginApis, Zu as getShellPathFromLoginShell, _ as resolveTelegramCustomCommands, _a as resolveFreshSessionTotalTokens, _c as buildConfiguredAllowlistKeys, _i as DB_SESSION_HYDRATION_LIMIT, _l as requireApiKey, _o as resolveGroupSessionKey, _t as normalizePluginsConfig, ai as extractDeliveryInfo, an as normalizePluginHttpPath, ao as createDiscordActionGate, ba as resolveAgentMainSessionKey, bi as onSessionTranscriptUpdate, bl as resolveEnvApiKey, bn as createInternalHookEvent, bt as resolveMemorySlotDecision, c as readConfigFileSnapshot, ca as resolveSessionKey, cn as clearPluginCommands, cs as resetConfigOverrides, da as resolveChannelResetConfig, dl as buildAssistantMessage, dn as listPluginCommands, do as resolveChannelGroupPolicy, ds as getConfigValueAtPath, du as dedupeProfileIds, ea as buildInboundUserContextPrefix, ec as mapStreamingModeToSlackLegacyDraftStreamMode, er as normalizeAccountId$3, f as writeConfigFile, fa as resolveSessionResetPolicy, fc as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, fi as withPreservationWriterPermit, fl as buildAssistantMessageWithZeroUsage, fn as matchPluginCommand, fo as resolveChannelGroupRequireMention, fs as parseConfigPath, fu as listProfilesForProvider, g as normalizeTelegramCommandName, ga as mergeSessionEntry, gc as buildAllowedModelSet, gi as drainPendingPrimaryWrites, gl as getCustomProviderApiKey, h as TELEGRAM_COMMAND_NAME_PATTERN, ha as DEFAULT_RESET_TRIGGERS, hi as createPrimaryWriteInterceptor, hl as getApiKeyForModel, ho as resolveAccountEntry, ht as isBundledChannelEnabledByChannelConfig, ia as resolveSenderLabel, io as resolveIMessageAccount, is as RecoveryAdmissionError, ja as listChannelDocks, jc as resolveConfiguredModelRef, jl as resolveAuthProfileOrder, jn as getConfiguredSessionStorageRuntime, jo as GATEWAY_CLIENT_MODES, ju as resolveAuthProfileDisplayLabel, kr as normalizeInputProvenance, la as evaluateSessionFreshness, ll as OLLAMA_NATIVE_BASE_URL, ln as executePluginCommand, lo as resolveDiscordAccount, ls as setConfigOverride, lt as loadPluginManifestRegistry, ma as resolveThreadFlag, ml as buildUsageWithNoCost, ms as unsetConfigValueAtPath, mt as applyTestPluginDefaults, na as formatZonedTimestamp, nc as resolveSlackNativeStreaming, ni as writeJsonAtomic, nr as archiveSessionTranscripts, nt as isSupportedLocalAvatarExtension, o as loadConfig, oi as parseSessionThreadInfo, on as buildPluginHealthReport, ot as validateJsonSchemaValue, p as validateConfigObjectWithPlugins, pa as resolveSessionResetType, pc as resolveAgentMaxConcurrent, pi as isJsonlSessionBackend, pl as buildStreamErrorAssistantMessage, pn as registerPluginCommand, ps as setConfigValueAtPath, pt as BUNDLED_ENABLED_BY_DEFAULT, pu as markAuthProfileGood, qa as resolveSlackBotToken, qn as isCacheEnabled, qu as DEFAULT_CONTEXT_TOKENS, ra as resolveTimezone, rc as resolveSlackStreamingMode, ri as parseDurationMs, rr as capArrayByJsonBytes, si as appendAssistantMessageToSessionTranscript, so as listEnabledDiscordAccounts, ss as getConfigOverrides, ta as formatUtcTimestamp, tc as resolveDiscordPreviewStreamMode, td as resolveOwnerDisplaySetting, tl as retryAsync, to as resolveWhatsAppAccount, ts as replaceBufferedPluginTaskPasses, tt as isPathWithinRoot, ui as resolveAndPersistSessionFile, ul as createOllamaStreamFn, un as getPluginCommandSpecs, uo as normalizeDiscordToken, us as unsetConfigOverride, va as setSessionRuntimeModel, vc as buildModelAliasIndex, vi as hydrateSessionManagerFromDb, vl as resolveApiKeyForProvider, vo as INTERNAL_MESSAGE_CHANNEL, vt as resolveEffectiveEnableState, vu as ensureAuthProfileStore, w as parseNonNegativeByteSize, wa as deriveSessionMetaPatch, wc as normalizeModelRef$2, x as resolveIMessageAttachmentRoots, xa as resolveExplicitAgentSessionKey, xl as resolveModelAuthMode, xo as isGatewayMessageChannel, y as isInboundPathAllowed, ya as canonicalizeMainSessionAlias, yc as findNormalizedProviderValue, yi as emitSessionTranscriptUpdate, yo as isDeliverableMessageChannel, za as buildChannelAccountBindings, zo as normalizeStringEntriesLower } from "./config-BPACL-n5.js";
10
10
  import { t as VERSION } from "./version-D_9__Xw6.js";
11
11
  import { C as normalizeOptionalAccountId, D as deriveSessionChatType, E as WAKE_GATE_SESSION_KEY_SEGMENT, M as isSubagentSessionKey, N as parseAgentSessionKey, O as getSubagentDepth, P as resolveThreadParentSessionKey, S as normalizeAccountId$4, T as HEARTBEAT_SESSION_KEY_SEGMENT, _ as resolveThreadSessionKeys, a as classifySessionKeyShape, b as toAgentStoreSessionKey, d as normalizeAgentId, f as normalizeMainKey, g as resolveLinkedPeerIdForChannel, h as resolveConfiguredCanonicalIdentity, j as isCronSessionKey, k as isAcpSessionKey, l as isKnownAgentMainSessionKey, m as resolveCanonicalIdentity, p as resolveAgentIdFromSessionKey, r as buildAgentMainSessionKey, t as DEFAULT_AGENT_ID, u as isValidAgentId, v as sanitizeAgentId, w as BACKGROUND_SESSION_KEY_SEGMENT, x as DEFAULT_ACCOUNT_ID } from "./session-key-D4YLCjDF.js";
12
- import { D as filterBootstrapFilesForSession, E as ensureAgentWorkspace, F as resolveAgentModelPrimaryValue, I as toAgentModelListLike, P as resolveAgentModelFallbackValues, _ 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, y as DEFAULT_HEARTBEAT_FILENAME } from "./agent-scope-Dw728gHk.js";
13
- import { i as logWarn, n as logError, r as logInfo, t as logDebug } from "./logger-DygiqHXJ.js";
14
- import { n as runExec, r as spawnWithFallback, t as runCommandWithTimeout } from "./exec-DirIo9VQ.js";
15
- import { n as resolveOpenClawPackageRoot } from "./openclaw-root-CvJ5CJns.js";
12
+ import { D as filterBootstrapFilesForSession, E as ensureAgentWorkspace, F as resolveAgentModelPrimaryValue, I as toAgentModelListLike, P as resolveAgentModelFallbackValues, _ 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, y as DEFAULT_HEARTBEAT_FILENAME } from "./agent-scope-Dt0TVWFY.js";
13
+ import { i as logWarn, n as logError, r as logInfo, t as logDebug } from "./logger-B1oXl7GT.js";
14
+ import { n as runExec, r as spawnWithFallback, t as runCommandWithTimeout } from "./exec-vJi_ETQy.js";
15
+ import { n as resolveOpenClawPackageRoot } from "./openclaw-root-B6Tk0FH8.js";
16
16
  import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken } from "./github-copilot-token-CvN6iidT.js";
17
17
  import { t as formatCliCommand } from "./command-format-N4aQiv3X.js";
18
18
  import { t as runTasksWithConcurrency } from "./run-with-concurrency-CEV6qf-x.js";
19
19
  import { c as optionalStringEnum, f as applyTargetToParams, l as stringEnum, m as actionRequiresTarget, o as channelTargetSchema, p as actionHasTarget, s as channelTargetsSchema } from "./retry-policy-BdHwnvOa.js";
20
20
  import { c as resolveSessionFilePath, l as resolveSessionFilePathOptions, m as resolveStorePath, s as resolveDefaultSessionStorePath, u as resolveSessionTranscriptPath } from "./artifacts-C9Cr_S5Y.js";
21
21
  import { n as resolveConversationLabel, r as normalizeChatType } from "./conversation-label-BPhkn_eM.js";
22
- import { a as createSlackWebClient, c as validateSlackBlocksArray, d as resolveSlackChannelId, i as normalizeSlackOutboundText, l as buildSlackBlocksFallbackText, o as resolveSlackWebClientOptions, s as parseSlackBlocksInput, t as sendMessageSlack, u as parseSlackTarget } from "./send-DVEBYs7q.js";
23
- import { $ as fetchChannelPermissionsDiscord, A as unpinMessageDiscord, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveTimestampMs, D as pinMessageDiscord, Dt as normalizeChannelSlug, E as listThreadsDiscord, Et as buildChannelKeyCandidates, 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 resolveChannelEntryMatchWithFallback, P as fetchChannelInfoDiscord, Q as stripUndefinedFields, R as kickMemberDiscord, S as deleteMessageDiscord, St as resolveDiscordSystemLocation, T as listPinsDiscord, Tt as applyChannelMatchMeta, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendPollDiscord, _t as resolveDiscordShouldRequireMention, a as removeReactionDiscord, at as resolveDiscordChannelId, b as sendWebhookMessageDiscord, bt as formatDiscordReactionEmoji, c as formatDiscordComponentEventText, ct as isDiscordGroupAllowedByPolicy, d as parseDiscordModalCustomId, dt as resolveDiscordAllowListMatch, et as hasAnyGuildPermissionDiscord, f as parseDiscordModalCustomIdForCarbon, ft as resolveDiscordChannelConfigWithFallback, g as sendMessageDiscord, gt as resolveDiscordOwnerAllowFrom, h as resolveDiscordModalEntry, ht as resolveDiscordOwnerAccess, i as removeOwnReactionsDiscord, it as parseDiscordTarget, j as addRoleDiscord, k as searchMessagesDiscord, l as parseDiscordComponentCustomId, lt as normalizeDiscordAllowList, m as resolveDiscordComponentEntry, mt as resolveDiscordMemberAccessState, n as fetchReactionsDiscord, nt as createDiscordClient, o as sendDiscordComponentMessage, ot as listDiscordDirectoryGroupsLive, p as readDiscordComponentSpec, pt as resolveDiscordGuildEntry, q as deleteChannelDiscord, r as reactMessageDiscord, rt as createDiscordRestClient, s as createDiscordFormModal, st as listDiscordDirectoryPeersLive, tt as chunkDiscordTextWithMode, u as parseDiscordComponentCustomIdForCarbon, ut as normalizeDiscordSlug, v as sendStickerDiscord, vt as resolveGroupDmAllow, w as fetchMessageDiscord, wt as fetchDiscord, x as createThreadDiscord, xt as formatDiscordUserTag, y as sendVoiceMessageDiscord, yt as shouldEmitDiscordReactionNotification, z as listGuildChannelsDiscord } from "./send-DVTzquty.js";
22
+ import { a as createSlackWebClient, c as validateSlackBlocksArray, d as resolveSlackChannelId, i as normalizeSlackOutboundText, l as buildSlackBlocksFallbackText, o as resolveSlackWebClientOptions, s as parseSlackBlocksInput, t as sendMessageSlack, u as parseSlackTarget } from "./send-B_t3X0hK.js";
23
+ import { $ as fetchChannelPermissionsDiscord, A as unpinMessageDiscord, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveTimestampMs, D as pinMessageDiscord, Dt as normalizeChannelSlug, E as listThreadsDiscord, Et as buildChannelKeyCandidates, 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 resolveChannelEntryMatchWithFallback, P as fetchChannelInfoDiscord, Q as stripUndefinedFields, R as kickMemberDiscord, S as deleteMessageDiscord, St as resolveDiscordSystemLocation, T as listPinsDiscord, Tt as applyChannelMatchMeta, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendPollDiscord, _t as resolveDiscordShouldRequireMention, a as removeReactionDiscord, at as resolveDiscordChannelId, b as sendWebhookMessageDiscord, bt as formatDiscordReactionEmoji, c as formatDiscordComponentEventText, ct as isDiscordGroupAllowedByPolicy, d as parseDiscordModalCustomId, dt as resolveDiscordAllowListMatch, et as hasAnyGuildPermissionDiscord, f as parseDiscordModalCustomIdForCarbon, ft as resolveDiscordChannelConfigWithFallback, g as sendMessageDiscord, gt as resolveDiscordOwnerAllowFrom, h as resolveDiscordModalEntry, ht as resolveDiscordOwnerAccess, i as removeOwnReactionsDiscord, it as parseDiscordTarget, j as addRoleDiscord, k as searchMessagesDiscord, l as parseDiscordComponentCustomId, lt as normalizeDiscordAllowList, m as resolveDiscordComponentEntry, mt as resolveDiscordMemberAccessState, n as fetchReactionsDiscord, nt as createDiscordClient, o as sendDiscordComponentMessage, ot as listDiscordDirectoryGroupsLive, p as readDiscordComponentSpec, pt as resolveDiscordGuildEntry, q as deleteChannelDiscord, r as reactMessageDiscord, rt as createDiscordRestClient, s as createDiscordFormModal, st as listDiscordDirectoryPeersLive, tt as chunkDiscordTextWithMode, u as parseDiscordComponentCustomIdForCarbon, ut as normalizeDiscordSlug, v as sendStickerDiscord, vt as resolveGroupDmAllow, w as fetchMessageDiscord, wt as fetchDiscord, x as createThreadDiscord, xt as formatDiscordUserTag, y as sendVoiceMessageDiscord, yt as shouldEmitDiscordReactionNotification, z as listGuildChannelsDiscord } from "./send-BBFfvgK9.js";
24
24
  import { c as derivePromptTokens, d as makeZeroUsageSnapshot, f as normalizeUsage, l as deriveSessionTotalTokens, u as hasNonzeroUsage } from "./chat-envelope-DfuAGxmg.js";
25
25
  import { c as isDiagnosticsEnabled, s as emitDiagnosticEvent } from "./task-run-types-B6n0W8Rb.js";
26
26
  import { t as redactIdentifier } from "./redact-identifier-BcqQpFrh.js";
27
- import { c as enqueueAgentTurn, d as mergeDelayedAgentTurn, f as peekDelayedAgentTurn, i as agentTurnIdempotencyKey, l as isClaimableAgentTurnWorkId, m as KeyedAsyncQueue, o as clearDelayedReleaseHold, p as setDelayedReleaseHold } from "./agent-turn-enqueue-BNvNiMpq.js";
27
+ import { c as enqueueAgentTurn, d as mergeDelayedAgentTurn, f as peekDelayedAgentTurn, i as agentTurnIdempotencyKey, l as isClaimableAgentTurnWorkId, m as KeyedAsyncQueue, o as clearDelayedReleaseHold, p as setDelayedReleaseHold } from "./agent-turn-enqueue-CsHMHVsf.js";
28
28
  import { t as CommandLane } from "./lanes-BN1DVTrA.js";
29
- import { i as getAgentTurnRuntime, o as tryGetAgentTurnRuntime } from "./agent-turn-runner-BDS9k--2.js";
30
- import { o as resolveSessionRunStore, r as inferSessionRunKind, t as createSessionRunRecorder } from "./recorder-CMNhAFwu.js";
31
- import { A as isFailoverAssistantError, B as isTimeoutErrorMessage, C as formatRawAssistantErrorForUi, D as isCloudCodeAssistFormatError, E as isBillingAssistantError, F as isTransientHttpError, G as sanitizeGoogleTurnOrdering, H as ensureSessionHeader, I as parseImageDimensionError, L as parseImageSizeError, M as isLikelyContextOverflowError, N as isRateLimitAssistantError, O as isCompactionFailureError, P as isRawApiErrorPayload, R as sanitizeUserFacingText, S as formatBillingErrorMessage, T as isAuthAssistantError, U as resolveBootstrapMaxChars, V as buildBootstrapContextFiles, W as resolveBootstrapTotalMaxChars, _ as downgradeOpenAIReasoningBlocks, a as isMessagingToolDuplicateNormalized, b as classifyFailoverReason, c as sanitizeImageBlocks, d as canonicalizeBase64, f as estimateBase64DecodedBytes, g as downgradeOpenAIFunctionCallReasoningPairs, h as sanitizeToolCallIdsForCloudCodeAssist, j as isFailoverErrorMessage, k as isContextOverflowError, l as sanitizeToolResultImages, m as extractToolResultId, n as validateGeminiTurns, o as normalizeTextForComparison, p as extractToolCallsFromAssistant, r as pickFallbackThinkingLevel, s as sanitizeSessionMessagesImages, t as validateAnthropicTurns, u as resolveImageSanitizationLimits, v as isGoogleModelApi, w as getApiErrorPayloadFingerprint, x as formatAssistantErrorText, y as BILLING_ERROR_USER_MESSAGE, z as isAuthPermanentErrorMessage } from "./pi-embedded-helpers-C6VayjB1.js";
32
- 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, x as expandToolGroups, y as mergeAlsoAllowPolicy } from "./sandbox-DzgYdBHo.js";
33
- import { c as resolveExistingPathsWithinRoot, g as DEFAULT_AI_SNAPSHOT_MAX_CHARS, s as DEFAULT_UPLOAD_DIR } from "./extension-relay-auth-BE4YupGc.js";
34
- import { i as isLoopbackHost, u as resolveClientIp } from "./ws-CBDMKFAM.js";
35
- import { r as trimToUndefined, t as resolveGatewayCredentialsFromConfig } from "./credentials-QcQyEdJH.js";
36
- import { a as resolveBrowserControlAuth } from "./server-context-RkR0AfjN.js";
37
- 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-ZklHNqsc.js";
38
- import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-Dwpja4Ts.js";
29
+ import { i as getAgentTurnRuntime, o as tryGetAgentTurnRuntime } from "./agent-turn-runner-DoHGgNPh.js";
30
+ import { o as resolveSessionRunStore, r as inferSessionRunKind, t as createSessionRunRecorder } from "./recorder-Ca_njjjH.js";
31
+ import { A as isFailoverAssistantError, B as isTimeoutErrorMessage, C as formatRawAssistantErrorForUi, D as isCloudCodeAssistFormatError, E as isBillingAssistantError, F as isTransientHttpError, G as sanitizeGoogleTurnOrdering, H as ensureSessionHeader, I as parseImageDimensionError, L as parseImageSizeError, M as isLikelyContextOverflowError, N as isRateLimitAssistantError, O as isCompactionFailureError, P as isRawApiErrorPayload, R as sanitizeUserFacingText, S as formatBillingErrorMessage, T as isAuthAssistantError, U as resolveBootstrapMaxChars, V as buildBootstrapContextFiles, W as resolveBootstrapTotalMaxChars, _ as downgradeOpenAIReasoningBlocks, a as isMessagingToolDuplicateNormalized, b as classifyFailoverReason, c as sanitizeImageBlocks, d as canonicalizeBase64, f as estimateBase64DecodedBytes, g as downgradeOpenAIFunctionCallReasoningPairs, h as sanitizeToolCallIdsForCloudCodeAssist, j as isFailoverErrorMessage, k as isContextOverflowError, l as sanitizeToolResultImages, m as extractToolResultId, n as validateGeminiTurns, o as normalizeTextForComparison, p as extractToolCallsFromAssistant, r as pickFallbackThinkingLevel, s as sanitizeSessionMessagesImages, t as validateAnthropicTurns, u as resolveImageSanitizationLimits, v as isGoogleModelApi, w as getApiErrorPayloadFingerprint, x as formatAssistantErrorText, y as BILLING_ERROR_USER_MESSAGE, z as isAuthPermanentErrorMessage } from "./pi-embedded-helpers-C9XqX-Jq.js";
32
+ 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, x as expandToolGroups, y as mergeAlsoAllowPolicy } from "./sandbox-BpdiWabc.js";
33
+ import { c as resolveExistingPathsWithinRoot, g as DEFAULT_AI_SNAPSHOT_MAX_CHARS, s as DEFAULT_UPLOAD_DIR } from "./extension-relay-auth-DD-U9VUc.js";
34
+ import { i as isLoopbackHost, u as resolveClientIp } from "./ws-DESjYW7M.js";
35
+ import { r as trimToUndefined, t as resolveGatewayCredentialsFromConfig } from "./credentials-DVI9X-9y.js";
36
+ import { a as resolveBrowserControlAuth } from "./server-context-BEjWhzMi.js";
37
+ 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-D3kpiNaJ.js";
38
+ import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-CHFrrzxZ.js";
39
39
  import { a as testRegexWithBoundedInput, i as compileSafeRegex, n as redactSensitiveText } from "./redact-BWPFahWo.js";
40
40
  import { a as formatUncaughtError, c as readErrorName, i as formatErrorMessage, o as hasErrnoCode, r as formatErrorChainMessage, t as collectErrorGraphCandidates } from "./errors-Bf0TUXNT.js";
41
- import { i as openFileWithinRoot, l as writeFileWithinRoot, n as copyFileWithinRoot, o as readFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-D7SLKk8k.js";
42
- import { a as isBlockedHostnameOrIp, l as normalizeHostname, n as SsrFBlockedError } from "./proxy-env-BVlcuMzr.js";
43
- 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-BH5tZFXZ.js";
44
- import { i as saveMediaBuffer, r as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-AQt3mu5T.js";
45
- import { r as resolveBrowserConfig } from "./trash-BDCU6Fb2.js";
46
- import { i as resolveLsofCommandSync } from "./ports-J_cZ4_9V.js";
41
+ import { i as openFileWithinRoot, l as writeFileWithinRoot, n as copyFileWithinRoot, o as readFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-CByGgR59.js";
42
+ import { a as isBlockedHostnameOrIp, l as normalizeHostname, n as SsrFBlockedError } from "./proxy-env-DzG6q8Hh.js";
43
+ 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-Cq6SZYWW.js";
44
+ import { i as saveMediaBuffer, r as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-BFf8dvdk.js";
45
+ import { r as resolveBrowserConfig } from "./trash-DNkuLhfz.js";
46
+ import { i as resolveLsofCommandSync } from "./ports-QWAeZ9Is.js";
47
47
  import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-C60x4trY.js";
48
48
  import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-C6AVByhV.js";
49
49
  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-NawgaQgc.js";
50
- import { a as resolveAgentIdentity, i as resolveAckReaction, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig, t as createReplyPrefixOptions } from "./reply-prefix-V-IxyeUB.js";
51
- import { a as stripSilentToken, i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-x3WbTUiR.js";
52
- import { a as getMachineDisplayName, i as startBrowserControlServiceFromConfig, n as createBrowserRouteDispatcher, r as createBrowserControlContext, t as withTimeout$4 } from "./with-timeout-DIENRALL.js";
53
- import { _ as buildPluginRuntimeIdentity, a as toInternalMessageReceivedContext, b as resolveProviderRuntimeIdentity, c as toPluginMessageReceivedEvent, d as resolveOutboundSessionId, f as getGlobalHookRunner, g as promptBuildResultToContribution, i as toInternalMessagePreprocessedContext, l as fireAndForgetHook, n as createMessageSentEmitter, o as toInternalMessageTranscribedContext, p as initializeGlobalHookRunner, r as deriveInboundMessageHookContext, s as toPluginMessageContext, t as applyMessageSendingHook, u as buildOutboundSessionContext, v as buildPluginTurnIdentity, y as resolveProviderPromptCacheKey } from "./outbound-message-hooks-C0BAHo6-.js";
54
- import { C as logToolExecutionStarted, D as recordSystemPromptHashComparison, E as logWebhookReceived, F as resetCommandPollCount, M as stopDiagnosticHeartbeat, N as boundDiagnosticContent, O as refreshRunProgress, P as recordCommandPoll, S as logToolExecutionCompleted, T as logWebhookProcessed, c as logMessageQueued, f as logRunCompleted, j as startDiagnosticHeartbeat, m as logSessionStateChange, p as logRunStarted, s as logMessageProcessed, u as logModelCallError, w as logWebhookError, x as logToolExecutionBlocked } from "./diagnostic-CyH49cpU.js";
50
+ import { a as resolveAgentIdentity, i as resolveAckReaction, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig, t as createReplyPrefixOptions } from "./reply-prefix-B8M4IWrd.js";
51
+ import { a as stripSilentToken, i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-B6PaaeVv.js";
52
+ import { a as getMachineDisplayName, i as startBrowserControlServiceFromConfig, n as createBrowserRouteDispatcher, r as createBrowserControlContext, t as withTimeout$4 } from "./with-timeout-CpZZ4mMw.js";
53
+ import { _ as buildPluginRuntimeIdentity, a as toInternalMessageReceivedContext, b as resolveProviderRuntimeIdentity, c as toPluginMessageReceivedEvent, d as resolveOutboundSessionId, f as getGlobalHookRunner, g as promptBuildResultToContribution, i as toInternalMessagePreprocessedContext, l as fireAndForgetHook, n as createMessageSentEmitter, o as toInternalMessageTranscribedContext, p as initializeGlobalHookRunner, r as deriveInboundMessageHookContext, s as toPluginMessageContext, t as applyMessageSendingHook, u as buildOutboundSessionContext, v as buildPluginTurnIdentity, y as resolveProviderPromptCacheKey } from "./outbound-message-hooks-BBtH97ZV.js";
54
+ import { C as logToolExecutionStarted, D as recordSystemPromptHashComparison, E as logWebhookReceived, F as resetCommandPollCount, M as stopDiagnosticHeartbeat, N as boundDiagnosticContent, O as refreshRunProgress, P as recordCommandPoll, S as logToolExecutionCompleted, T as logWebhookProcessed, c as logMessageQueued, f as logRunCompleted, j as startDiagnosticHeartbeat, m as logSessionStateChange, p as logRunStarted, s as logMessageProcessed, u as logModelCallError, w as logWebhookError, x as logToolExecutionBlocked } from "./diagnostic-u64kcpDQ.js";
55
55
  import { d as redactChannelCorrelation, o as getDiagnosticSessionState } from "./diagnostic-session-state-DCr9T3zW.js";
56
- import { i as enqueueCommandInLane, l as isQueuedCommandCancellation, n as clearCommandLane, o as getCommandLaneSnapshots, s as getQueueSize, t as CommandLaneAbortedError } from "./command-queue-BoBsMaob.js";
57
- import { $ as resolveTelegramMediaPlaceholder, A as releaseAccountOwner, B as buildTelegramGroupFrom, C as fingerprintTelegramToken, D as recordUpdate, E as recordState, F as resolveCronStorePath, G as describeReplyTarget, H as buildTelegramParentPeer, J as hasBotMention, K as expandTextLinks, L as buildGroupLabel, M as splitTelegramCaption, N as withTelegramApiErrorLogging, O as recordWebhook, P as loadCronStore, Q as resolveTelegramGroupAllowFromContext, R as buildSenderLabel, T as recordApiRequest, U as buildTelegramThreadParams, V as buildTelegramGroupPeerId, W as buildTypingThreadParams, X as resolveTelegramDirectPeerId, Y as normalizeForwardedContext, Z as resolveTelegramForumThreadId, _ as isTelegramEditMayHaveLandedError, a as reactMessageTelegram, at as normalizeDmAllowFromWithStore$1, b as renderTelegramHtmlText, c as sendStickerTelegram, ct as toLocationContext, d as wasSentByBot, dt as resolveTelegramTargetChatType, et as resolveTelegramReplyId, f as extractTelegramErrorText, g as isTelegramClientRejection, h as isSafeToRetrySendError, i as editMessageTelegram, it as normalizeAllowFrom$2, j as resolveTelegramFetch, k as registerAccount, lt as isVoiceCompatibleAudio, m as isRecoverableTelegramNetworkError, n as createForumTopicTelegram, nt as resolveTelegramThreadSpec, o as sendMessageTelegram, ot as resolveSenderAllowMatch$1, p as isDefiniteTelegramRequestNonDeliveryError, q as extractTelegramLocation, r as deleteMessageTelegram, rt as isSenderAllowed$1, s as sendPollTelegram, st as formatLocationText, t as buildInlineKeyboard, tt as resolveTelegramStreamMode, u as resolveTelegramVoiceSend, ut as parseTelegramTarget, v as markdownToTelegramChunks, w as getTelegramFleetSupervisor, x as wrapFileReferencesInHtml, y as markdownToTelegramHtml, z as buildSenderName } from "./send-CDuS9tHa.js";
58
- import { i as buildModelAliasLines, n as resolveModel } from "./model-D56FsZ1w.js";
59
- import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-dD_F5Zs_.js";
56
+ import { i as enqueueCommandInLane, l as isQueuedCommandCancellation, n as clearCommandLane, o as getCommandLaneSnapshots, s as getQueueSize, t as CommandLaneAbortedError } from "./command-queue-B3_VRNOr.js";
57
+ import { $ as resolveTelegramMediaPlaceholder, A as releaseAccountOwner, B as buildTelegramGroupFrom, C as fingerprintTelegramToken, D as recordUpdate, E as recordState, F as resolveCronStorePath, G as describeReplyTarget, H as buildTelegramParentPeer, J as hasBotMention, K as expandTextLinks, L as buildGroupLabel, M as splitTelegramCaption, N as withTelegramApiErrorLogging, O as recordWebhook, P as loadCronStore, Q as resolveTelegramGroupAllowFromContext, R as buildSenderLabel, T as recordApiRequest, U as buildTelegramThreadParams, V as buildTelegramGroupPeerId, W as buildTypingThreadParams, X as resolveTelegramDirectPeerId, Y as normalizeForwardedContext, Z as resolveTelegramForumThreadId, _ as isTelegramEditMayHaveLandedError, a as reactMessageTelegram, at as normalizeDmAllowFromWithStore$1, b as renderTelegramHtmlText, c as sendStickerTelegram, ct as toLocationContext, d as wasSentByBot, dt as resolveTelegramTargetChatType, et as resolveTelegramReplyId, f as extractTelegramErrorText, g as isTelegramClientRejection, h as isSafeToRetrySendError, i as editMessageTelegram, it as normalizeAllowFrom$2, j as resolveTelegramFetch, k as registerAccount, lt as isVoiceCompatibleAudio, m as isRecoverableTelegramNetworkError, n as createForumTopicTelegram, nt as resolveTelegramThreadSpec, o as sendMessageTelegram, ot as resolveSenderAllowMatch$1, p as isDefiniteTelegramRequestNonDeliveryError, q as extractTelegramLocation, r as deleteMessageTelegram, rt as isSenderAllowed$1, s as sendPollTelegram, st as formatLocationText, t as buildInlineKeyboard, tt as resolveTelegramStreamMode, u as resolveTelegramVoiceSend, ut as parseTelegramTarget, v as markdownToTelegramChunks, w as getTelegramFleetSupervisor, x as wrapFileReferencesInHtml, y as markdownToTelegramHtml, z as buildSenderName } from "./send-CZsC4D3G.js";
58
+ import { i as buildModelAliasLines, n as resolveModel } from "./model-BbeosLtF.js";
59
+ import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-CZ9wxcE8.js";
60
60
  import { n as docsSiteUrl, t as DOCS_SITE_URL } from "./docs-site-CknyeB6K.js";
61
- import { t as ensureOpenClawModelsJson } from "./models-config-BDhVodK4.js";
62
- import { n as evaluateShellAllowlist, r as resolveAllowAlwaysPatterns } from "./exec-approvals-allowlist-UZiLlQZY.js";
63
- import { n as resolveExecSafeBinRuntimePolicy, r as resolveMergedSafeBinProfileFixtures } from "./exec-safe-bin-runtime-policy-kCGsE7iL.js";
64
- import { n as resolveLearningWorkspaceDir, t as resolveSessionConsumerAgentIds } from "./session-consumer-agents-WuG2FJYp.js";
65
- import { n as loadModelCatalog, r as modelSupportsVision, t as findModelInCatalog } from "./model-catalog-CLFSsgfj.js";
66
- import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit, t as MediaFetchError } from "./fetch-cHZPcwpd.js";
67
- import { C as stripCarriedTranscriptFromBody, D as registerUnhandledRejectionHandler, a as resolveAutoImageModel, d as resolveConcurrency, g as CLI_OUTPUT_MAX_BUFFER, h as resolveMediaUnderstandingScope, i as normalizeMediaAttachments, k as resolveAttachmentKind, l as applyTemplate, m as normalizeMediaUnderstandingChatType, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, p as resolveTimeoutMs$1, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, w as buildRandomTempFilePath } from "./audio-transcription-runner-N8I-G4DN.js";
61
+ import { t as ensureOpenClawModelsJson } from "./models-config-BMgEFu57.js";
62
+ import { n as evaluateShellAllowlist, r as resolveAllowAlwaysPatterns } from "./exec-approvals-allowlist-CNWI56tZ.js";
63
+ import { n as resolveExecSafeBinRuntimePolicy, r as resolveMergedSafeBinProfileFixtures } from "./exec-safe-bin-runtime-policy-C3eU8CKJ.js";
64
+ import { n as resolveLearningWorkspaceDir, t as resolveSessionConsumerAgentIds } from "./session-consumer-agents-5ORspv9c.js";
65
+ import { n as loadModelCatalog, r as modelSupportsVision, t as findModelInCatalog } from "./model-catalog-Bjfzg68Q.js";
66
+ import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit, t as MediaFetchError } from "./fetch-ByEEe-Yd.js";
67
+ import { C as stripCarriedTranscriptFromBody, D as registerUnhandledRejectionHandler, a as resolveAutoImageModel, d as resolveConcurrency, g as CLI_OUTPUT_MAX_BUFFER, h as resolveMediaUnderstandingScope, i as normalizeMediaAttachments, k as resolveAttachmentKind, l as applyTemplate, m as normalizeMediaUnderstandingChatType, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, p as resolveTimeoutMs$1, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, w as buildRandomTempFilePath } from "./audio-transcription-runner-Gr8vN3AS.js";
68
68
  import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-Wg2M0G8N.js";
69
- import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-Dp0XbWAV.js";
70
- import { r as makeProxyFetch } from "./proxy-fetch-D1upsMhs.js";
71
- import { a as decodeDataUrl, i as coerceImageModelConfig, o as resolveProviderVisionModelFromConfig, r as coerceImageAssistantText, s as minimaxUnderstandImage } from "./provider-image-BVRCttNV.js";
72
- import { a as formatReasoningMessage, d as stripThinkingTagsFromText, f as stripReasoningTagsFromText, h as extractTextFromChatContent, l as stripDowngradedToolCallText, m as isInsideCode, n as extractAssistantThinking, o as inferToolMetaFromArgs, p as findCodeRegions, s as isAssistantMessage, t as extractAssistantText$1, u as stripMinimaxToolCallXml } from "./pi-embedded-utils-CBwHE9Fa.js";
73
- import { n as formatToolSummary, r as resolveToolDisplay } from "./tool-display-CO_Gj1t5.js";
69
+ import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-BzXFjlMV.js";
70
+ import { r as makeProxyFetch } from "./proxy-fetch-BqVhGKFd.js";
71
+ import { a as decodeDataUrl, i as coerceImageModelConfig, o as resolveProviderVisionModelFromConfig, r as coerceImageAssistantText, s as minimaxUnderstandImage } from "./provider-image-Bsivqxw8.js";
72
+ import { a as formatReasoningMessage, d as stripThinkingTagsFromText, f as stripReasoningTagsFromText, h as extractTextFromChatContent, l as stripDowngradedToolCallText, m as isInsideCode, n as extractAssistantThinking, o as inferToolMetaFromArgs, p as findCodeRegions, s as isAssistantMessage, t as extractAssistantText$1, u as stripMinimaxToolCallXml } from "./pi-embedded-utils-BV_Dtzrw.js";
73
+ import { n as formatToolSummary, r as resolveToolDisplay } from "./tool-display-DiZGbhL2.js";
74
74
  import { i as resolveModelCostConfig, n as formatTokenCount$2, r as formatUsd, t as estimateUsageCost } from "./usage-format-DFNB1c7t.js";
75
75
  import { n as isSafeFenceBreak, r as parseFenceSpans, t as findFenceSpanAt } from "./fences-BSm8V_DY.js";
76
- import { a as chunkText, c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, l as resolveChunkMode, o as chunkTextWithMode, r as chunkMarkdownText, t as chunkByNewline, u as resolveChunkNewlinePacking } from "./chunk-dZYOJUMQ.js";
77
- import { n as resolveMarkdownTableMode } from "./markdown-tables-DBBxKcll.js";
78
- import { a as loadWebMedia, i as getDefaultLocalRoots, o as loadWebMediaRaw } from "./ir-Bphccx2x.js";
79
- import { a as resolveNativeSkillsEnabled, i as resolveNativeCommandsEnabled, n as isNativeCommandsExplicitlyDisabled, r as isRestartEnabled, t as isCommandFlagEnabled } from "./commands-Byb21m-W.js";
80
- import { a as listChatCommands, c as listNativeCommandSpecsForConfig, d as parseCommandArgs, f as resolveCommandArgChoices, h as shouldHandleTextCommands, i as isCommandEnabled, l as maybeResolveTextAlias, m as serializeCommandArgs, o as listChatCommandsForConfig, p as resolveCommandArgMenu, r as findCommandByNativeName, s as listNativeCommandSpecs, t as buildCommandTextFromArgs, u as normalizeCommandBody } from "./commands-registry-fXBoHxbT.js";
76
+ import { a as chunkText, c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, l as resolveChunkMode, o as chunkTextWithMode, r as chunkMarkdownText, t as chunkByNewline, u as resolveChunkNewlinePacking } from "./chunk-DiXpyRAz.js";
77
+ import { n as resolveMarkdownTableMode } from "./markdown-tables-BcUNsqVQ.js";
78
+ import { a as loadWebMedia, i as getDefaultLocalRoots, o as loadWebMediaRaw } from "./ir-B3r0eIJW.js";
79
+ import { a as resolveNativeSkillsEnabled, i as resolveNativeCommandsEnabled, n as isNativeCommandsExplicitlyDisabled, r as isRestartEnabled, t as isCommandFlagEnabled } from "./commands-Csxgimkc.js";
80
+ import { a as listChatCommands, c as listNativeCommandSpecsForConfig, d as parseCommandArgs, f as resolveCommandArgChoices, h as shouldHandleTextCommands, i as isCommandEnabled, l as maybeResolveTextAlias, m as serializeCommandArgs, o as listChatCommandsForConfig, p as resolveCommandArgMenu, r as findCommandByNativeName, s as listNativeCommandSpecs, t as buildCommandTextFromArgs, u as normalizeCommandBody } from "./commands-registry-Dx5QvNqH.js";
81
81
  import { a as AcpRuntimeError, i as ACP_ERROR_CODES, n as requireAcpRuntimeBackend, o as toAcpRuntimeError, r as waitForAcpRuntimeBackendHealthy, s as withAcpRuntimeErrorBoundary, t as getAcpRuntimeBackend } from "./registry-DXmhuMNN.js";
82
- import { t as GatewayClient, yn as SESSION_LABEL_MAX_LENGTH } from "./client-BGqFY5o-.js";
83
- import { b as resolveLeastPrivilegeOperatorScopesForMethod, i as callGatewayLeastPrivilege, n as callGateway, s as randomIdempotencyKey, t as buildGatewayConnectionDetails } from "./call-UfwN5rR7.js";
84
- import { C as endModelCall, D as onAgentEvent, O as registerAgentRunContext, S as createInlineCodeState, T as emitAgentEvent, _ as handleMessageEnd, b as emitEmbeddedAgentEvent, g as waitForEmbeddedPiRunEnd, h as setActiveEmbeddedRun, i as endInFlightEmbeddedAttempt, n as beginInFlightEmbeddedAttempt, p as queueEmbeddedPiMessage, r as clearActiveEmbeddedRun, s as isEmbeddedPiRunActive, t as abortEmbeddedPiRun, u as isEmbeddedPiRunStreaming, v as handleMessageStart, w as clearAgentRunContext, x as buildCodeSpanIndex, y as handleMessageUpdate } from "./runs-BAm5mg_D.js";
85
- import { _ as resolveReplyToMode, a as normalizeOutboundPayloadsForJson, b as normalizeTargetForProvider, c as loadChannelOutboundAdapter, d as filterMessagingToolDuplicates, f as filterMessagingToolMediaDuplicates, g as createReplyToModeFilterForChannel, h as shouldSuppressReasoningPayload, i as normalizeOutboundPayloads, l as applyReplyTagsToPayload, m as shouldSuppressMessagingToolReplies, o as normalizeReplyPayloadsForDelivery, p as isRenderablePayload, r as formatOutboundPayloadLog, s as throwIfAborted, t as deliverOutboundPayloads, u as applyReplyThreading, v as buildTargetResolverSignature, y as normalizeChannelTargetInput } from "./deliver-CaBp0YZL.js";
86
- import { i as AGENT_LANE_SUBAGENT, r as AGENT_LANE_NESTED, t as startUserSessionRun } from "./user-run-recording-BR_U9osf.js";
82
+ import { t as GatewayClient, yn as SESSION_LABEL_MAX_LENGTH } from "./client-DN-SMVBn.js";
83
+ import { b as resolveLeastPrivilegeOperatorScopesForMethod, i as callGatewayLeastPrivilege, n as callGateway, s as randomIdempotencyKey, t as buildGatewayConnectionDetails } from "./call-PE59cW0J.js";
84
+ import { C as endModelCall, D as onAgentEvent, O as registerAgentRunContext, S as createInlineCodeState, T as emitAgentEvent, _ as handleMessageEnd, b as emitEmbeddedAgentEvent, g as waitForEmbeddedPiRunEnd, h as setActiveEmbeddedRun, i as endInFlightEmbeddedAttempt, n as beginInFlightEmbeddedAttempt, p as queueEmbeddedPiMessage, r as clearActiveEmbeddedRun, s as isEmbeddedPiRunActive, t as abortEmbeddedPiRun, u as isEmbeddedPiRunStreaming, v as handleMessageStart, w as clearAgentRunContext, x as buildCodeSpanIndex, y as handleMessageUpdate } from "./runs-BjLs5ozo.js";
85
+ import { _ as resolveReplyToMode, a as normalizeOutboundPayloadsForJson, b as normalizeTargetForProvider, c as loadChannelOutboundAdapter, d as filterMessagingToolDuplicates, f as filterMessagingToolMediaDuplicates, g as createReplyToModeFilterForChannel, h as shouldSuppressReasoningPayload, i as normalizeOutboundPayloads, l as applyReplyTagsToPayload, m as shouldSuppressMessagingToolReplies, o as normalizeReplyPayloadsForDelivery, p as isRenderablePayload, r as formatOutboundPayloadLog, s as throwIfAborted, t as deliverOutboundPayloads, u as applyReplyThreading, v as buildTargetResolverSignature, y as normalizeChannelTargetInput } from "./deliver-BLp1Q7uO.js";
86
+ import { i as AGENT_LANE_SUBAGENT, r as AGENT_LANE_NESTED, t as startUserSessionRun } from "./user-run-recording-DXNyfjMq.js";
87
87
  import { r as normalizeInboundTextNewlines, t as finalizeInboundContext } from "./inbound-context-6eG5oPr9.js";
88
88
  import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch--Fn4tlfW.js";
89
89
  import { n as formatTimeAgo } from "./format-relative-BDwAggS5.js";
90
- 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-CVHmKK9w.js";
91
- import { a as maxAsk, d as requiresExecApproval, f as resolveExecApprovals, n as addAllowlistEntry, p as resolveExecApprovalsFromFile, s as minSecurity, u as recordAllowlistUse } from "./exec-approvals-BL3RknaU.js";
92
- 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-DGsjKglY.js";
90
+ 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-BZFrD-fJ.js";
91
+ import { a as maxAsk, d as requiresExecApproval, f as resolveExecApprovals, n as addAllowlistEntry, p as resolveExecApprovalsFromFile, s as minSecurity, u as recordAllowlistUse } from "./exec-approvals-C3o7bTbp.js";
92
+ 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-DANf1hC-.js";
93
93
  import { t as killProcessTree$1 } from "./kill-tree-3YxTMF9i.js";
94
- import { n as formatExecCommand } from "./system-run-command-Cv1h27tf.js";
94
+ import { n as formatExecCommand } from "./system-run-command-Dl8UC6hO.js";
95
95
  import { i as parsePairingList, n as resolveNodeIdFromNodeList, r as parseNodeList, t as resolveNodeFromNodeList } from "./node-resolve-Cz4p4shw.js";
96
96
  import { i as formatDurationSeconds, r as formatDurationPrecise, t as formatDurationCompact$1 } from "./format-duration-CsAbUoUJ.js";
97
- import { a as loadCombinedSessionStoreForGateway, d as resolveContextTokensForModel, f as computeBackoff, p as sleepWithAbort, u as lookupContextTokens } from "./session-utils-B2PSRqVy.js";
98
- import { b as ensureSkillsWatcher, i as resolveSkillCommandInvocation, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, r as listSkillCommandsForWorkspace, t as listReservedChatSlashCommandNames, x as getSkillsSnapshotVersion } from "./skill-commands-DbmH_7xm.js";
99
- import { t as redactConfigObject } from "./redact-snapshot-D7BZusrG.js";
100
- import { a as createDiscordRetryRunner, i as normalizePollInput, n as recordChannelActivity, t as getChannelActivity } from "./channel-activity-DF1lamZi.js";
97
+ import { a as loadCombinedSessionStoreForGateway, d as resolveContextTokensForModel, f as computeBackoff, p as sleepWithAbort, u as lookupContextTokens } from "./session-utils-CrCJ-7yK.js";
98
+ import { b as ensureSkillsWatcher, i as resolveSkillCommandInvocation, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, r as listSkillCommandsForWorkspace, t as listReservedChatSlashCommandNames, x as getSkillsSnapshotVersion } from "./skill-commands-uhWJKPrM.js";
99
+ import { t as redactConfigObject } from "./redact-snapshot--nD7TrF-.js";
100
+ import { a as createDiscordRetryRunner, i as normalizePollInput, n as recordChannelActivity, t as getChannelActivity } from "./channel-activity-SqK9nKf7.js";
101
101
  import { t as buildOutboundMediaLoadOptions } from "./load-options-DaWVIdne.js";
102
- import { t as convertMarkdownTables } from "./tables-BBiYzs81.js";
102
+ import { t as convertMarkdownTables } from "./tables-CCEXTXTG.js";
103
103
  import { p as resolveGatewaySystemdServiceName, u as resolveGatewayLaunchAgentLabel } from "./constants-BFfVAxyG.js";
104
104
  import { n as loadCostUsageSummary, r as loadSessionCostSummary } from "./session-cost-usage-BTDAzt-T.js";
105
105
  import { i as parseAbsoluteTimeMs, r as resolveDefaultCronStaggerMs, t as normalizeCronStaggerMs } from "./stagger-CT5G1TCV.js";
106
- import { a as normalizeHttpWebhookUrl, o as inferLegacyName, r as isPipelineHeartbeatInFlight } from "./heartbeat-tick-D26lWjWr.js";
107
- import { a as resolvePinnedMainDmOwnerFromAllowlist, c as filterToolsByPolicy, d as resolveGroupToolPolicy, f as resolveSubagentToolPolicy, i as resolveDmGroupAccessWithLists, l as isToolAllowedByPolicies, n as readStoreAllowFromForDmPolicy, o as resolveCommandAuthorizedFromAuthorizers, s as resolveControlCommandGate, t as DM_GROUP_ACCESS_REASON, u as resolveEffectiveToolPolicy } from "./dm-policy-shared-DFPi7Zr2.js";
108
- import { n as splitMediaFromOutput, t as parseReplyDirectives } from "./reply-directives-B3iuHT4J.js";
109
- import { n as resolveMessageChannelSelection, t as listConfiguredMessageChannels } from "./channel-selection-CNMEexgg.js";
110
- import { i as applyPluginAutoEnable, r as resolveTelegramPollingTimeout } from "./polling-timeout-L7Tp4szs.js";
111
- import { a as resolveSignalRpcContext, c as streamSignalEvents, n as sendReadReceiptSignal, o as signalCheck, r as sendTypingSignal, s as signalRpcRequest, t as sendMessageSignal } from "./send-DSEM68Bg.js";
112
- import { a as formatIMessageChatTarget, c as parseIMessageTarget, i as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, o as isAllowedIMessageSender, r as createIMessageRpcClient, s as normalizeIMessageHandle, t as sendMessageIMessage } from "./send-o7L9XTU3.js";
113
- import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-D0rmcC0-.js";
106
+ import { a as normalizeHttpWebhookUrl, o as inferLegacyName, r as isPipelineHeartbeatInFlight } from "./heartbeat-tick-By0WI8YD.js";
107
+ import { a as resolvePinnedMainDmOwnerFromAllowlist, c as filterToolsByPolicy, d as resolveGroupToolPolicy, f as resolveSubagentToolPolicy, i as resolveDmGroupAccessWithLists, l as isToolAllowedByPolicies, n as readStoreAllowFromForDmPolicy, o as resolveCommandAuthorizedFromAuthorizers, s as resolveControlCommandGate, t as DM_GROUP_ACCESS_REASON, u as resolveEffectiveToolPolicy } from "./dm-policy-shared-CV1uWhMc.js";
108
+ import { n as splitMediaFromOutput, t as parseReplyDirectives } from "./reply-directives-Bc2RQAcJ.js";
109
+ import { n as resolveMessageChannelSelection, t as listConfiguredMessageChannels } from "./channel-selection-DfNPCJXK.js";
110
+ import { i as applyPluginAutoEnable, r as resolveTelegramPollingTimeout } from "./polling-timeout-DoMlNx_D.js";
111
+ import { a as resolveSignalRpcContext, c as streamSignalEvents, n as sendReadReceiptSignal, o as signalCheck, r as sendTypingSignal, s as signalRpcRequest, t as sendMessageSignal } from "./send-CwCEyog7.js";
112
+ import { a as formatIMessageChatTarget, c as parseIMessageTarget, i as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, o as isAllowedIMessageSender, r as createIMessageRpcClient, s as normalizeIMessageHandle, t as sendMessageIMessage } from "./send-BVisLSq7.js";
113
+ import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-KBL5oj6U.js";
114
114
  import { n as isSenderIdAllowed, r as mergeDmAllowFromSources, t as firstDefined$1 } from "./allow-from-CrohZBvI.js";
115
115
  import { t as parseTimeoutMs } from "./parse-timeout-BLJlOyi9.js";
116
- import { t as createTelegramPollingTransport } from "./proxy-m4Mv3Vy0.js";
116
+ import { t as createTelegramPollingTransport } from "./proxy-Ba9wFNmC.js";
117
117
  import { n as isDangerousNameMatchingEnabled } from "./dangerous-name-matching-PRkNIyQj.js";
118
- import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-aExjMxzn.js";
118
+ import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-BNP-F_lm.js";
119
119
  import { t as withTimeout$5 } from "./with-timeout-zSqNoBH6.js";
120
- import { s as resolveCommandSecretRefsViaGateway, t as getAgentRuntimeCommandSecretTargetIds } from "./command-secret-targets-DtnfBTvl.js";
121
- import { r as detectBinary } from "./onboard-helpers-BlOvn-As.js";
122
- import { t as resolvePairingIdLabel } from "./pairing-labels-BMQWK5UC.js";
123
- import { t as recordInboundSessionMetaSafe } from "./session-meta-YzxyVCeI.js";
124
- import { i as resolveMemoryBackendConfig, n as registerMemoryCli, r as getMemorySearchManager } from "./memory-cli-OhwCkNE-.js";
125
- import { r as resolveMemorySearchConfig } from "./manager-DbUdXsY9.js";
120
+ import { s as resolveCommandSecretRefsViaGateway, t as getAgentRuntimeCommandSecretTargetIds } from "./command-secret-targets-CJ1czw_Q.js";
121
+ import { r as detectBinary } from "./onboard-helpers-DNbkQX5v.js";
122
+ import { t as resolvePairingIdLabel } from "./pairing-labels-DYgJqxe0.js";
123
+ import { t as recordInboundSessionMetaSafe } from "./session-meta-Bd0mS7MT.js";
124
+ import { i as resolveMemoryBackendConfig, n as registerMemoryCli, r as getMemorySearchManager } from "./memory-cli-DVqLwNhN.js";
125
+ import { r as resolveMemorySearchConfig } from "./manager-PSj0t5kg.js";
126
126
  import { i as resolveContextWindowInfo, n as CONTEXT_WINDOW_WARN_BELOW_TOKENS, r as evaluateContextWindowGuard, t as CONTEXT_WINDOW_HARD_MIN_TOKENS } from "./context-window-guard-CLxA7ymv.js";
127
127
  import { createRequire } from "node:module";
128
128
  import { execFileSync, spawn, spawnSync } from "node:child_process";
@@ -131,7 +131,7 @@ import os, { homedir } from "node:os";
131
131
  import path, { basename, isAbsolute } from "node:path";
132
132
  import fs, { existsSync, mkdirSync, mkdtempSync, promises, readFileSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
133
133
  import JSON5 from "json5";
134
- import fsPromises from "node:fs/promises";
134
+ import fs$1 from "node:fs/promises";
135
135
  import { inspect } from "node:util";
136
136
  import crypto, { createHash, createHmac, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
137
137
  import { complete, completeSimple, createAssistantMessageEventStream, streamSimple } from "@mariozechner/pi-ai";
@@ -764,7 +764,7 @@ function resolveWorkspaceLane(params) {
764
764
  }
765
765
  async function pathExists(targetPath) {
766
766
  try {
767
- await fsPromises.access(targetPath);
767
+ await fs$1.access(targetPath);
768
768
  return true;
769
769
  } catch {
770
770
  return false;
@@ -772,7 +772,7 @@ async function pathExists(targetPath) {
772
772
  }
773
773
  async function getExistingPathState(targetPath) {
774
774
  try {
775
- const stats = await fsPromises.lstat(targetPath);
775
+ const stats = await fs$1.lstat(targetPath);
776
776
  if (stats.isSymbolicLink()) return "other";
777
777
  return stats.isDirectory() ? "directory" : "other";
778
778
  } catch {
@@ -781,7 +781,7 @@ async function getExistingPathState(targetPath) {
781
781
  }
782
782
  async function pathLexicallyExists(targetPath) {
783
783
  try {
784
- await fsPromises.lstat(targetPath);
784
+ await fs$1.lstat(targetPath);
785
785
  return true;
786
786
  } catch {
787
787
  return false;
@@ -843,7 +843,7 @@ async function resolveWorkspaceLaneForTurn(params) {
843
843
  reason: "workspace lane path exists and is not a directory"
844
844
  });
845
845
  const existed = pathState === "directory";
846
- if (!existed) await fsPromises.mkdir(resolution.effectiveWorkspaceDir, { recursive: true });
846
+ if (!existed) await fs$1.mkdir(resolution.effectiveWorkspaceDir, { recursive: true });
847
847
  for (const file of config?.copiedOnCreate ?? DEFAULT_COPIED_ON_CREATE_FILES) {
848
848
  const decision = await copyIfMissing({
849
849
  sourceRoot: resolution.personaWorkspaceDir,
@@ -4117,8 +4117,8 @@ const defaultDeps = {
4117
4117
  runEmbeddedPiAgent: (params) => runEmbeddedPiAgent(params),
4118
4118
  runDirectAnalysis,
4119
4119
  loadConfig,
4120
- mkdtemp: fsPromises.mkdtemp,
4121
- rm: fsPromises.rm,
4120
+ mkdtemp: fs$1.mkdtemp,
4121
+ rm: fs$1.rm,
4122
4122
  now: () => Date.now(),
4123
4123
  randomUUID: crypto.randomUUID
4124
4124
  };
@@ -5540,7 +5540,7 @@ async function imageResult(params) {
5540
5540
  }, params.label, params.imageSanitization);
5541
5541
  }
5542
5542
  async function imageResultFromFile(params) {
5543
- const buf = await fsPromises.readFile(params.path);
5543
+ const buf = await fs$1.readFile(params.path);
5544
5544
  const mimeType = await detectMime({ buffer: buf.slice(0, 256) }) ?? "image/png";
5545
5545
  return await imageResult({
5546
5546
  label: params.label,
@@ -6334,7 +6334,7 @@ async function resolveAgentSessionDirs(stateDir) {
6334
6334
  const agentsDir = path.join(stateDir, "agents");
6335
6335
  let entries = [];
6336
6336
  try {
6337
- entries = await fsPromises.readdir(agentsDir, { withFileTypes: true });
6337
+ entries = await fs$1.readdir(agentsDir, { withFileTypes: true });
6338
6338
  } catch (err) {
6339
6339
  if (err.code === "ENOENT") return [];
6340
6340
  throw err;
@@ -8140,7 +8140,7 @@ async function routeReply(params) {
8140
8140
  const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
8141
8141
  const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
8142
8142
  try {
8143
- const { deliverOutboundPayloads } = await import("./deliver-CaBp0YZL.js").then((n) => n.n);
8143
+ const { deliverOutboundPayloads } = await import("./deliver-BLp1Q7uO.js").then((n) => n.n);
8144
8144
  const outboundSession = buildOutboundSessionContext({
8145
8145
  cfg,
8146
8146
  agentId: resolvedAgentId,
@@ -13281,7 +13281,7 @@ async function sendTranscriptEcho(params) {
13281
13281
  }
13282
13282
  const text = formatEchoTranscript(transcript, params.format ?? DEFAULT_ECHO_TRANSCRIPT_FORMAT);
13283
13283
  try {
13284
- const { deliverOutboundPayloads } = await import("./deliver-CaBp0YZL.js").then((n) => n.n);
13284
+ const { deliverOutboundPayloads } = await import("./deliver-BLp1Q7uO.js").then((n) => n.n);
13285
13285
  await deliverOutboundPayloads({
13286
13286
  cfg,
13287
13287
  channel: normalizedChannel,
@@ -17998,7 +17998,7 @@ async function resolveSandboxWorkdir(params) {
17998
17998
  cwd: process.cwd(),
17999
17999
  root: params.sandbox.workspaceDir
18000
18000
  });
18001
- if (!(await fsPromises.stat(resolved.resolved)).isDirectory()) throw new Error("workdir is not a directory");
18001
+ if (!(await fs$1.stat(resolved.resolved)).isDirectory()) throw new Error("workdir is not a directory");
18002
18002
  const relative = resolved.relative ? resolved.relative.split(path.sep).join(path.posix.sep) : "";
18003
18003
  const containerWorkdir = relative ? path.posix.join(params.sandbox.containerWorkdir, relative) : params.sandbox.containerWorkdir;
18004
18004
  return {
@@ -19248,13 +19248,13 @@ async function validateScriptFileForShellBleed(params) {
19248
19248
  cwd: params.workdir,
19249
19249
  root: params.workdir
19250
19250
  });
19251
- stat = await fsPromises.stat(absPath);
19251
+ stat = await fs$1.stat(absPath);
19252
19252
  } catch {
19253
19253
  return;
19254
19254
  }
19255
19255
  if (!stat.isFile()) return;
19256
19256
  if (stat.size > 512 * 1024) return;
19257
- const content = await fsPromises.readFile(absPath, "utf-8");
19257
+ const content = await fs$1.readFile(absPath, "utf-8");
19258
19258
  const first = /\$[A-Z_][A-Z0-9_]{1,}/g.exec(content);
19259
19259
  if (first) {
19260
19260
  const idx = first.index;
@@ -28426,7 +28426,7 @@ async function emitResetCommandHooks(params) {
28426
28426
  try {
28427
28427
  const messages = [];
28428
28428
  if (sessionFile) {
28429
- const content = await fsPromises.readFile(sessionFile, "utf-8");
28429
+ const content = await fs$1.readFile(sessionFile, "utf-8");
28430
28430
  for (const line of content.split("\n")) {
28431
28431
  if (!line.trim()) continue;
28432
28432
  try {
@@ -29216,7 +29216,7 @@ async function createModelSelectionState(params) {
29216
29216
  }
29217
29217
  }
29218
29218
  if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
29219
- const { ensureAuthProfileStore } = await import("./config-CRFk9Bjq.js").then((n) => n.Al);
29219
+ const { ensureAuthProfileStore } = await import("./config-BPACL-n5.js").then((n) => n.Al);
29220
29220
  const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
29221
29221
  const providerKey = normalizeProviderId(provider);
29222
29222
  if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
@@ -32673,7 +32673,7 @@ async function readJsonlFromPath(jsonlPath) {
32673
32673
  if (shouldLogVerbose()) logVerbose(`Blocked canvas jsonlPath outside allowed roots: ${resolved}`);
32674
32674
  throw new Error("jsonlPath outside allowed roots");
32675
32675
  }
32676
- const canonical = await fsPromises.realpath(resolved).catch(() => resolved);
32676
+ const canonical = await fs$1.realpath(resolved).catch(() => resolved);
32677
32677
  if (!isInboundPathAllowed({
32678
32678
  filePath: canonical,
32679
32679
  roots
@@ -32681,7 +32681,7 @@ async function readJsonlFromPath(jsonlPath) {
32681
32681
  if (shouldLogVerbose()) logVerbose(`Blocked canvas jsonlPath outside allowed roots: ${canonical}`);
32682
32682
  throw new Error("jsonlPath outside allowed roots");
32683
32683
  }
32684
- return await fsPromises.readFile(canonical, "utf8");
32684
+ return await fs$1.readFile(canonical, "utf8");
32685
32685
  }
32686
32686
  const CanvasToolSchema = Type.Object({
32687
32687
  action: stringEnum(CANVAS_ACTIONS),
@@ -33510,27 +33510,27 @@ function resolveRestartSentinelPath(env = process.env) {
33510
33510
  }
33511
33511
  async function writeRestartSentinel(payload, env = process.env) {
33512
33512
  const filePath = resolveRestartSentinelPath(env);
33513
- await fsPromises.mkdir(path.dirname(filePath), { recursive: true });
33513
+ await fs$1.mkdir(path.dirname(filePath), { recursive: true });
33514
33514
  const data = {
33515
33515
  version: 1,
33516
33516
  payload
33517
33517
  };
33518
- await fsPromises.writeFile(filePath, `${JSON.stringify(data, null, 2)}\n`, "utf-8");
33518
+ await fs$1.writeFile(filePath, `${JSON.stringify(data, null, 2)}\n`, "utf-8");
33519
33519
  return filePath;
33520
33520
  }
33521
33521
  async function readRestartSentinel(env = process.env) {
33522
33522
  const filePath = resolveRestartSentinelPath(env);
33523
33523
  try {
33524
- const raw = await fsPromises.readFile(filePath, "utf-8");
33524
+ const raw = await fs$1.readFile(filePath, "utf-8");
33525
33525
  let parsed;
33526
33526
  try {
33527
33527
  parsed = JSON.parse(raw);
33528
33528
  } catch {
33529
- await fsPromises.unlink(filePath).catch(() => {});
33529
+ await fs$1.unlink(filePath).catch(() => {});
33530
33530
  return null;
33531
33531
  }
33532
33532
  if (!parsed || parsed.version !== 1 || !parsed.payload) {
33533
- await fsPromises.unlink(filePath).catch(() => {});
33533
+ await fs$1.unlink(filePath).catch(() => {});
33534
33534
  return null;
33535
33535
  }
33536
33536
  return parsed;
@@ -33542,7 +33542,7 @@ async function consumeRestartSentinel(env = process.env) {
33542
33542
  const filePath = resolveRestartSentinelPath(env);
33543
33543
  const parsed = await readRestartSentinel(env);
33544
33544
  if (!parsed) return null;
33545
- await fsPromises.unlink(filePath).catch(() => {});
33545
+ await fs$1.unlink(filePath).catch(() => {});
33546
33546
  return parsed;
33547
33547
  }
33548
33548
  function formatRestartSentinelMessage(payload) {
@@ -43991,18 +43991,18 @@ function appendImagePathsToPrompt(prompt, paths) {
43991
43991
  return `${trimmed}${trimmed ? "\n\n" : ""}${paths.join("\n")}`;
43992
43992
  }
43993
43993
  async function writeCliImages(images) {
43994
- const tempDir = await fsPromises.mkdtemp(path.join(os.tmpdir(), "openclaw-cli-images-"));
43994
+ const tempDir = await fs$1.mkdtemp(path.join(os.tmpdir(), "openclaw-cli-images-"));
43995
43995
  const paths = [];
43996
43996
  for (let i = 0; i < images.length; i += 1) {
43997
43997
  const image = images[i];
43998
43998
  const ext = resolveImageExtension(image.mimeType);
43999
43999
  const filePath = path.join(tempDir, `image-${i + 1}.${ext}`);
44000
44000
  const buffer = Buffer.from(image.data, "base64");
44001
- await fsPromises.writeFile(filePath, buffer, { mode: 384 });
44001
+ await fs$1.writeFile(filePath, buffer, { mode: 384 });
44002
44002
  paths.push(filePath);
44003
44003
  }
44004
44004
  const cleanup = async () => {
44005
- await fsPromises.rm(tempDir, {
44005
+ await fs$1.rm(tempDir, {
44006
44006
  recursive: true,
44007
44007
  force: true
44008
44008
  });
@@ -48117,7 +48117,7 @@ async function deliverSessionMaintenanceWarning(params) {
48117
48117
  return;
48118
48118
  }
48119
48119
  try {
48120
- const { deliverOutboundPayloads } = await import("./deliver-CaBp0YZL.js").then((n) => n.n);
48120
+ const { deliverOutboundPayloads } = await import("./deliver-BLp1Q7uO.js").then((n) => n.n);
48121
48121
  const outboundSession = buildOutboundSessionContext({
48122
48122
  cfg: params.cfg,
48123
48123
  sessionKey: params.sessionKey
@@ -48650,7 +48650,7 @@ async function stageSandboxMedia(params) {
48650
48650
  const remoteMediaCacheDir = ctx.MediaRemoteHost ? path.join(workspaceDir, ".openclaw", "media", "remote-cache", sessionKey) : null;
48651
48651
  const effectiveWorkspaceDir = sandbox?.workspaceDir ?? remoteMediaCacheDir;
48652
48652
  if (!effectiveWorkspaceDir) return;
48653
- await fsPromises.mkdir(effectiveWorkspaceDir, { recursive: true });
48653
+ await fs$1.mkdir(effectiveWorkspaceDir, { recursive: true });
48654
48654
  const remoteAttachmentRoots = resolveIMessageRemoteAttachmentRoots({
48655
48655
  cfg,
48656
48656
  accountId: ctx.AccountId
@@ -48709,8 +48709,8 @@ async function stageLocalFileIntoRoot(params) {
48709
48709
  }
48710
48710
  async function stageRemoteFileIntoRoot(params) {
48711
48711
  const tmpRoot = resolvePreferredOpenClawTmpDir();
48712
- await fsPromises.mkdir(tmpRoot, { recursive: true });
48713
- const tmpDir = await fsPromises.mkdtemp(path.join(tmpRoot, "stage-sandbox-media-"));
48712
+ await fs$1.mkdir(tmpRoot, { recursive: true });
48713
+ const tmpDir = await fs$1.mkdtemp(path.join(tmpRoot, "stage-sandbox-media-"));
48714
48714
  const tmpPath = path.join(tmpDir, "download");
48715
48715
  try {
48716
48716
  await scpFile(params.remoteHost, params.remotePath, tmpPath);
@@ -48721,7 +48721,7 @@ async function stageRemoteFileIntoRoot(params) {
48721
48721
  maxBytes: params.maxBytes
48722
48722
  });
48723
48723
  } finally {
48724
- await fsPromises.rm(tmpDir, {
48724
+ await fs$1.rm(tmpDir, {
48725
48725
  recursive: true,
48726
48726
  force: true
48727
48727
  }).catch(() => {});
@@ -53238,8 +53238,8 @@ async function describeStickerImage(params) {
53238
53238
  const { provider, model } = resolved;
53239
53239
  logVerbose(`telegram: describing sticker with ${provider}/${model}`);
53240
53240
  try {
53241
- const buffer = await fsPromises.readFile(imagePath);
53242
- const { describeImageWithModel } = await import("./provider-image-BVRCttNV.js").then((n) => n.n);
53241
+ const buffer = await fs$1.readFile(imagePath);
53242
+ const { describeImageWithModel } = await import("./provider-image-Bsivqxw8.js").then((n) => n.n);
53243
53243
  return (await describeImageWithModel({
53244
53244
  buffer,
53245
53245
  fileName: "sticker.webp",
@@ -54829,7 +54829,7 @@ async function resolveDiscordPreflightAudioMentionContext(params) {
54829
54829
  let transcript;
54830
54830
  let carry;
54831
54831
  if (needsPreflightTranscription) try {
54832
- const { transcribeFirstAudio } = await import("./audio-preflight-DxY7sUFD.js");
54832
+ const { transcribeFirstAudio } = await import("./audio-preflight-CO3ozqOb.js");
54833
54833
  const uploadable = audioAttachments.filter((att) => typeof att.url === "string" && att.url.length > 0);
54834
54834
  if (uploadable.length > 0) {
54835
54835
  const preflight = await transcribeFirstAudio({
@@ -59511,23 +59511,23 @@ function createDefaultDeps() {
59511
59511
  };
59512
59512
  },
59513
59513
  sendMessageTelegram: async (...args) => {
59514
- const { sendMessageTelegram } = await import("./send-CDuS9tHa.js").then((n) => n.l);
59514
+ const { sendMessageTelegram } = await import("./send-CZsC4D3G.js").then((n) => n.l);
59515
59515
  return await sendMessageTelegram(...args);
59516
59516
  },
59517
59517
  sendMessageDiscord: async (...args) => {
59518
- const { sendMessageDiscord } = await import("./send-DVTzquty.js").then((n) => n.t);
59518
+ const { sendMessageDiscord } = await import("./send-BBFfvgK9.js").then((n) => n.t);
59519
59519
  return await sendMessageDiscord(...args);
59520
59520
  },
59521
59521
  sendMessageSlack: async (...args) => {
59522
- const { sendMessageSlack } = await import("./send-DVEBYs7q.js").then((n) => n.n);
59522
+ const { sendMessageSlack } = await import("./send-B_t3X0hK.js").then((n) => n.n);
59523
59523
  return await sendMessageSlack(...args);
59524
59524
  },
59525
59525
  sendMessageSignal: async (...args) => {
59526
- const { sendMessageSignal } = await import("./send-DSEM68Bg.js").then((n) => n.i);
59526
+ const { sendMessageSignal } = await import("./send-CwCEyog7.js").then((n) => n.i);
59527
59527
  return await sendMessageSignal(...args);
59528
59528
  },
59529
59529
  sendMessageIMessage: async (...args) => {
59530
- const { sendMessageIMessage } = await import("./send-o7L9XTU3.js").then((n) => n.n);
59530
+ const { sendMessageIMessage } = await import("./send-BVisLSq7.js").then((n) => n.n);
59531
59531
  return await sendMessageIMessage(...args);
59532
59532
  }
59533
59533
  };
@@ -60460,9 +60460,9 @@ async function agentCommandInternal(requestedOpts, runtime = defaultRuntime, dep
60460
60460
  }
60461
60461
  }
60462
60462
  if (modelRun) {
60463
- modelRunScratchDir = await fsPromises.mkdtemp(path.join(resolvePreferredOpenClawTmpDir(), "openclaw-model-run-"));
60463
+ modelRunScratchDir = await fs$1.mkdtemp(path.join(resolvePreferredOpenClawTmpDir(), "openclaw-model-run-"));
60464
60464
  const scratchFile = path.join(modelRunScratchDir, "session.jsonl");
60465
- await fsPromises.copyFile(sessionFile, scratchFile).catch(() => {});
60465
+ await fs$1.copyFile(sessionFile, scratchFile).catch(() => {});
60466
60466
  sessionFile = scratchFile;
60467
60467
  }
60468
60468
  const startedAt = Date.now();
@@ -60579,7 +60579,7 @@ async function agentCommandInternal(requestedOpts, runtime = defaultRuntime, dep
60579
60579
  else if (!runThrew) if (result?.meta.error) await sessionRun?.fail(new Error(result.meta.error.message));
60580
60580
  else await sessionRun?.complete();
60581
60581
  clearAgentRunContext(runId);
60582
- if (modelRunScratchDir) await fsPromises.rm(modelRunScratchDir, {
60582
+ if (modelRunScratchDir) await fs$1.rm(modelRunScratchDir, {
60583
60583
  recursive: true,
60584
60584
  force: true,
60585
60585
  maxRetries: 10,
@@ -60733,10 +60733,10 @@ function estimateDurationSeconds(pcm) {
60733
60733
  return pcm.length / (bytesPerSample * SAMPLE_RATE);
60734
60734
  }
60735
60735
  async function writeWavFile(pcm) {
60736
- const tempDir = await fsPromises.mkdtemp(path.join(resolvePreferredOpenClawTmpDir(), "discord-voice-"));
60736
+ const tempDir = await fs$1.mkdtemp(path.join(resolvePreferredOpenClawTmpDir(), "discord-voice-"));
60737
60737
  const filePath = path.join(tempDir, `segment-${randomUUID()}.wav`);
60738
60738
  const wav = buildWavBuffer(pcm);
60739
- await fsPromises.writeFile(filePath, wav);
60739
+ await fs$1.writeFile(filePath, wav);
60740
60740
  scheduleTempCleanup(tempDir);
60741
60741
  return {
60742
60742
  path: filePath,
@@ -60745,7 +60745,7 @@ async function writeWavFile(pcm) {
60745
60745
  }
60746
60746
  function scheduleTempCleanup(tempDir, delayMs = 1800 * 1e3) {
60747
60747
  setTimeout(() => {
60748
- fsPromises.rm(tempDir, {
60748
+ fs$1.rm(tempDir, {
60749
60749
  recursive: true,
60750
60750
  force: true
60751
60751
  }).catch((err) => {
@@ -65069,7 +65069,7 @@ function normalizeAllowList$1(list) {
65069
65069
  async function detectRemoteHostFromCliPath(cliPath) {
65070
65070
  try {
65071
65071
  const expanded = cliPath.startsWith("~") ? cliPath.replace(/^~/, process.env.HOME ?? "") : cliPath;
65072
- const content = await fsPromises.readFile(expanded, "utf8");
65072
+ const content = await fs$1.readFile(expanded, "utf8");
65073
65073
  const userHostMatch = content.match(/\bssh\b[^\n]*?\s+([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+)/);
65074
65074
  if (userHostMatch) return userHostMatch[1];
65075
65075
  return content.match(/\bssh\b[^\n]*?\s+([a-zA-Z][a-zA-Z0-9._-]*)\s+\S*\bimsg\b/)?.[1];
@@ -71823,7 +71823,7 @@ function readSlackExternalArgMenuToken(raw) {
71823
71823
  }
71824
71824
  let commandsRegistry;
71825
71825
  async function getCommandsRegistry() {
71826
- if (!commandsRegistry) commandsRegistry = await import("./commands-registry-fXBoHxbT.js").then((n) => n.n);
71826
+ if (!commandsRegistry) commandsRegistry = await import("./commands-registry-Dx5QvNqH.js").then((n) => n.n);
71827
71827
  return commandsRegistry;
71828
71828
  }
71829
71829
  function encodeSlackCommandArgValue(parts) {
@@ -72153,14 +72153,14 @@ async function registerSlackMonitorSlashCommands(params) {
72153
72153
  const channelName = channelInfo?.name;
72154
72154
  const roomLabel = channelName ? `#${channelName}` : `#${command.channel_id}`;
72155
72155
  const [{ resolveAgentRoute }, { finalizeInboundContext }, { dispatchReplyWithDispatcher }] = await Promise.all([
72156
- import("./resolve-route-D0rmcC0-.js").then((n) => n.r),
72156
+ import("./resolve-route-KBL5oj6U.js").then((n) => n.r),
72157
72157
  import("./inbound-context-6eG5oPr9.js").then((n) => n.n),
72158
72158
  Promise.resolve().then(() => provider_dispatcher_exports)
72159
72159
  ]);
72160
72160
  const [{ resolveConversationLabel }, { createReplyPrefixOptions }, { recordInboundSessionMetaSafe }] = await Promise.all([
72161
72161
  import("./conversation-label-BPhkn_eM.js").then((n) => n.t),
72162
- import("./reply-prefix-V-IxyeUB.js").then((n) => n.n),
72163
- import("./session-meta-YzxyVCeI.js").then((n) => n.n)
72162
+ import("./reply-prefix-B8M4IWrd.js").then((n) => n.n),
72163
+ import("./session-meta-Bd0mS7MT.js").then((n) => n.n)
72164
72164
  ]);
72165
72165
  const route = resolveAgentRoute({
72166
72166
  cfg,
@@ -72225,9 +72225,9 @@ async function registerSlackMonitorSlashCommands(params) {
72225
72225
  });
72226
72226
  const deliverSlashPayloads = async (replies) => {
72227
72227
  const [{ deliverSlackSlashReplies }, { resolveChunkMode, resolveChunkNewlinePacking }, { resolveMarkdownTableMode }] = await Promise.all([
72228
- import("./replies-aExjMxzn.js").then((n) => n.r),
72229
- import("./chunk-dZYOJUMQ.js").then((n) => n.s),
72230
- import("./markdown-tables-DBBxKcll.js").then((n) => n.t)
72228
+ import("./replies-BNP-F_lm.js").then((n) => n.r),
72229
+ import("./chunk-DiXpyRAz.js").then((n) => n.s),
72230
+ import("./markdown-tables-BcUNsqVQ.js").then((n) => n.t)
72231
72231
  ]);
72232
72232
  await deliverSlackSlashReplies({
72233
72233
  replies,
@@ -72281,7 +72281,7 @@ async function registerSlackMonitorSlashCommands(params) {
72281
72281
  let nativeCommands = [];
72282
72282
  if (nativeEnabled) {
72283
72283
  reg = await getCommandsRegistry();
72284
- const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-DbmH_7xm.js").then((n) => n.a)).listSkillCommandsForAgents({ cfg }) : [];
72284
+ const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-uhWJKPrM.js").then((n) => n.a)).listSkillCommandsForAgents({ cfg }) : [];
72285
72285
  nativeCommands = reg.listNativeCommandSpecsForConfig(cfg, {
72286
72286
  skillCommands,
72287
72287
  provider: "slack"
@@ -72800,7 +72800,7 @@ async function auditTelegramGroupMembership(params) {
72800
72800
  groups: [],
72801
72801
  elapsedMs: Date.now() - started
72802
72802
  };
72803
- const fetcher = params.proxyUrl ? (await import("./proxy-m4Mv3Vy0.js").then((n) => n.n)).makeProxyFetch(params.proxyUrl) : fetch;
72803
+ const fetcher = params.proxyUrl ? (await import("./proxy-Ba9wFNmC.js").then((n) => n.n)).makeProxyFetch(params.proxyUrl) : fetch;
72804
72804
  const { fetchWithTimeout } = await import("./fetch-timeout-Wg2M0G8N.js").then((n) => n.r);
72805
72805
  const base = `${TELEGRAM_API_BASE$1}/bot${token}`;
72806
72806
  const groups = [];
@@ -75334,7 +75334,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
75334
75334
  let audioPreflightCarry;
75335
75335
  const audioConfigEnabled = cfg.tools?.media?.audio && cfg.tools.media.audio.enabled !== false;
75336
75336
  if (hasAudio && !hasUserText && !disableAudioPreflight && (isGroup && requireMention && mentionRegexes.length > 0 || audioConfigEnabled === true)) try {
75337
- const { transcribeFirstAudio } = await import("./audio-preflight-DxY7sUFD.js");
75337
+ const { transcribeFirstAudio } = await import("./audio-preflight-CO3ozqOb.js");
75338
75338
  const preflight = await transcribeFirstAudio({
75339
75339
  ctx: {
75340
75340
  MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
@@ -76805,7 +76805,7 @@ function resolveCommandHashPath(accountId, botIdentity) {
76805
76805
  }
76806
76806
  async function readCachedCommandHash(accountId, botIdentity) {
76807
76807
  try {
76808
- return (await fsPromises.readFile(resolveCommandHashPath(accountId, botIdentity), "utf-8")).trim();
76808
+ return (await fs$1.readFile(resolveCommandHashPath(accountId, botIdentity), "utf-8")).trim();
76809
76809
  } catch {
76810
76810
  return null;
76811
76811
  }
@@ -76813,8 +76813,8 @@ async function readCachedCommandHash(accountId, botIdentity) {
76813
76813
  async function writeCachedCommandHash(accountId, botIdentity, hash) {
76814
76814
  const filePath = resolveCommandHashPath(accountId, botIdentity);
76815
76815
  try {
76816
- await fsPromises.mkdir(path.dirname(filePath), { recursive: true });
76817
- await fsPromises.writeFile(filePath, hash, "utf-8");
76816
+ await fs$1.mkdir(path.dirname(filePath), { recursive: true });
76817
+ await fs$1.writeFile(filePath, hash, "utf-8");
76818
76818
  } catch {}
76819
76819
  }
76820
76820
  function syncTelegramMenuCommands(params) {
@@ -77998,7 +77998,7 @@ function safeParseState(raw) {
77998
77998
  async function readTelegramUpdateOffset(params) {
77999
77999
  const filePath = resolveTelegramUpdateOffsetPath(params.accountId, params.env);
78000
78000
  try {
78001
- const parsed = safeParseState(await fsPromises.readFile(filePath, "utf-8"));
78001
+ const parsed = safeParseState(await fs$1.readFile(filePath, "utf-8"));
78002
78002
  const expectedBotId = extractBotIdFromToken(params.botToken);
78003
78003
  if (expectedBotId && parsed?.botId && parsed.botId !== expectedBotId) return null;
78004
78004
  if (expectedBotId && parsed?.botId === null) return null;
@@ -78022,7 +78022,7 @@ async function writeTelegramUpdateOffset(params) {
78022
78022
  async function deleteTelegramUpdateOffset(params) {
78023
78023
  const filePath = resolveTelegramUpdateOffsetPath(params.accountId, params.env);
78024
78024
  try {
78025
- await fsPromises.unlink(filePath);
78025
+ await fs$1.unlink(filePath);
78026
78026
  } catch (err) {
78027
78027
  if (err.code === "ENOENT") return;
78028
78028
  throw err;
@@ -79806,7 +79806,7 @@ function createPluginRuntime(options = {}) {
79806
79806
  workStates: readTaskWorkStates
79807
79807
  },
79808
79808
  resolveLearningWorkspaceDir: (agentId) => resolveLearningWorkspaceDir(loadConfig(), agentId),
79809
- sessions: { startUserRun: async (params) => (await import("./user-run-recording-BR_U9osf.js").then((n) => n.n)).startUserSessionRun(params) }
79809
+ sessions: { startUserRun: async (params) => (await import("./user-run-recording-DXNyfjMq.js").then((n) => n.n)).startUserSessionRun(params) }
79810
79810
  };
79811
79811
  Object.defineProperty(runtime, "analysis", {
79812
79812
  enumerable: true,
@@ -80691,7 +80691,7 @@ function resolvePluginWebSearchProviders(params) {
80691
80691
  //#endregion
80692
80692
  //#region src/agents/apply-patch-update.ts
80693
80693
  async function defaultReadFile(filePath) {
80694
- return fsPromises.readFile(filePath, "utf8");
80694
+ return fs$1.readFile(filePath, "utf8");
80695
80695
  }
80696
80696
  async function applyUpdateHunk(filePath, chunks, options) {
80697
80697
  const originalLines = (await (options?.readFile ?? defaultReadFile)(filePath).catch((err) => {
@@ -81012,7 +81012,7 @@ function resolvePatchFileOps(options) {
81012
81012
  const workspaceOnly = options.workspaceOnly !== false;
81013
81013
  return {
81014
81014
  readFile: async (filePath) => {
81015
- if (!workspaceOnly) return await fsPromises.readFile(filePath, "utf8");
81015
+ if (!workspaceOnly) return await fs$1.readFile(filePath, "utf8");
81016
81016
  const opened = await openBoundaryFile({
81017
81017
  absolutePath: filePath,
81018
81018
  rootPath: options.cwd,
@@ -81027,7 +81027,7 @@ function resolvePatchFileOps(options) {
81027
81027
  },
81028
81028
  writeFile: async (filePath, content) => {
81029
81029
  if (!workspaceOnly) {
81030
- await fsPromises.writeFile(filePath, content, "utf8");
81030
+ await fs$1.writeFile(filePath, content, "utf8");
81031
81031
  return;
81032
81032
  }
81033
81033
  const relative = toRelativeSandboxPath(options.cwd, filePath);
@@ -81038,8 +81038,8 @@ function resolvePatchFileOps(options) {
81038
81038
  encoding: "utf8"
81039
81039
  });
81040
81040
  },
81041
- remove: (filePath) => fsPromises.rm(filePath),
81042
- mkdirp: (dir) => fsPromises.mkdir(dir, { recursive: true }).then(() => {})
81041
+ remove: (filePath) => fs$1.rm(filePath),
81042
+ mkdirp: (dir) => fs$1.mkdir(dir, { recursive: true }).then(() => {})
81043
81043
  };
81044
81044
  }
81045
81045
  async function ensureDir(filePath, ops) {
@@ -81318,7 +81318,7 @@ async function recordLoopOutcome(args) {
81318
81318
  if (!args.ctx?.sessionKey) return;
81319
81319
  try {
81320
81320
  const { getDiagnosticSessionState } = await import("./diagnostic-session-state-DCr9T3zW.js").then((n) => n.n);
81321
- const { recordToolCallOutcome } = await import("./tool-loop-detection-CGxEpEyN.js");
81321
+ const { recordToolCallOutcome } = await import("./tool-loop-detection-DHQv318m.js");
81322
81322
  recordToolCallOutcome(getDiagnosticSessionState({
81323
81323
  sessionKey: args.ctx.sessionKey,
81324
81324
  sessionId: args.ctx?.agentId
@@ -81345,8 +81345,8 @@ async function runBeforeToolCallHook(args) {
81345
81345
  const params = args.params;
81346
81346
  if (args.ctx?.sessionKey) {
81347
81347
  const { getDiagnosticSessionState } = await import("./diagnostic-session-state-DCr9T3zW.js").then((n) => n.n);
81348
- const { logToolLoopAction } = await import("./diagnostic-CyH49cpU.js").then((n) => n.r);
81349
- const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-CGxEpEyN.js");
81348
+ const { logToolLoopAction } = await import("./diagnostic-u64kcpDQ.js").then((n) => n.r);
81349
+ const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-DHQv318m.js");
81350
81350
  const sessionState = getDiagnosticSessionState({
81351
81351
  sessionKey: args.ctx.sessionKey,
81352
81352
  sessionId: args.ctx?.agentId
@@ -81576,7 +81576,7 @@ function wrapHostEditToolWithPostWriteRecovery(base, root) {
81576
81576
  if (!pathParam || !newText) throw err;
81577
81577
  try {
81578
81578
  const absolutePath = resolveHostEditPath(root, pathParam);
81579
- const content = await fsPromises.readFile(absolutePath, "utf-8");
81579
+ const content = await fs$1.readFile(absolutePath, "utf-8");
81580
81580
  const hasNew = content.includes(newText);
81581
81581
  const stillHasOld = oldText !== void 0 && oldText.length > 0 && content.includes(oldText);
81582
81582
  if (hasNew && !stillHasOld) return {
@@ -82067,14 +82067,14 @@ function createSandboxEditOperations(params) {
82067
82067
  }
82068
82068
  async function writeHostFile(absolutePath, content) {
82069
82069
  const resolved = path.resolve(absolutePath);
82070
- await fsPromises.mkdir(path.dirname(resolved), { recursive: true });
82071
- await fsPromises.writeFile(resolved, content, "utf-8");
82070
+ await fs$1.mkdir(path.dirname(resolved), { recursive: true });
82071
+ await fs$1.writeFile(resolved, content, "utf-8");
82072
82072
  }
82073
82073
  function createHostWriteOperations(root, options) {
82074
82074
  if (!(options?.workspaceOnly ?? false)) return {
82075
82075
  mkdir: async (dir) => {
82076
82076
  const resolved = path.resolve(dir);
82077
- await fsPromises.mkdir(resolved, { recursive: true });
82077
+ await fs$1.mkdir(resolved, { recursive: true });
82078
82078
  },
82079
82079
  writeFile: writeHostFile
82080
82080
  };
@@ -82087,7 +82087,7 @@ function createHostWriteOperations(root, options) {
82087
82087
  cwd: root,
82088
82088
  root
82089
82089
  });
82090
- await fsPromises.mkdir(resolved, { recursive: true });
82090
+ await fs$1.mkdir(resolved, { recursive: true });
82091
82091
  },
82092
82092
  writeFile: async (absolutePath, content) => {
82093
82093
  await writeFileWithinRoot({
@@ -82103,12 +82103,12 @@ function createHostEditOperations(root, options) {
82103
82103
  if (!(options?.workspaceOnly ?? false)) return {
82104
82104
  readFile: async (absolutePath) => {
82105
82105
  const resolved = path.resolve(absolutePath);
82106
- return await fsPromises.readFile(resolved);
82106
+ return await fs$1.readFile(resolved);
82107
82107
  },
82108
82108
  writeFile: writeHostFile,
82109
82109
  access: async (absolutePath) => {
82110
82110
  const resolved = path.resolve(absolutePath);
82111
- await fsPromises.access(resolved);
82111
+ await fs$1.access(resolved);
82112
82112
  }
82113
82113
  };
82114
82114
  return {
@@ -83043,7 +83043,7 @@ async function repairSessionFileIfNeeded(params) {
83043
83043
  };
83044
83044
  let content;
83045
83045
  try {
83046
- content = await fsPromises.readFile(sessionFile, "utf-8");
83046
+ content = await fs$1.readFile(sessionFile, "utf-8");
83047
83047
  } catch (err) {
83048
83048
  if (err?.code === "ENOENT") return {
83049
83049
  repaired: false,
@@ -83091,15 +83091,15 @@ async function repairSessionFileIfNeeded(params) {
83091
83091
  const backupPath = `${sessionFile}.bak-${process.pid}-${Date.now()}`;
83092
83092
  const tmpPath = `${sessionFile}.repair-${process.pid}-${Date.now()}.tmp`;
83093
83093
  try {
83094
- const stat = await fsPromises.stat(sessionFile).catch(() => null);
83095
- await fsPromises.writeFile(backupPath, content, "utf-8");
83096
- if (stat) await fsPromises.chmod(backupPath, stat.mode);
83097
- await fsPromises.writeFile(tmpPath, cleaned, "utf-8");
83098
- if (stat) await fsPromises.chmod(tmpPath, stat.mode);
83099
- await fsPromises.rename(tmpPath, sessionFile);
83094
+ const stat = await fs$1.stat(sessionFile).catch(() => null);
83095
+ await fs$1.writeFile(backupPath, content, "utf-8");
83096
+ if (stat) await fs$1.chmod(backupPath, stat.mode);
83097
+ await fs$1.writeFile(tmpPath, cleaned, "utf-8");
83098
+ if (stat) await fs$1.chmod(tmpPath, stat.mode);
83099
+ await fs$1.rename(tmpPath, sessionFile);
83100
83100
  } catch (err) {
83101
83101
  try {
83102
- await fsPromises.unlink(tmpPath);
83102
+ await fs$1.unlink(tmpPath);
83103
83103
  } catch (cleanupErr) {
83104
83104
  params.warn?.(`session file repair cleanup failed: ${cleanupErr instanceof Error ? cleanupErr.message : "unknown error"} (${path.basename(tmpPath)})`);
83105
83105
  }
@@ -84791,7 +84791,7 @@ async function prewarmSessionFile(sessionFile) {
84791
84791
  if (!isSessionManagerCacheEnabled()) return;
84792
84792
  if (isSessionManagerCached(sessionFile)) return;
84793
84793
  try {
84794
- const handle = await fsPromises.open(sessionFile, "r");
84794
+ const handle = await fs$1.open(sessionFile, "r");
84795
84795
  try {
84796
84796
  const buffer = Buffer$1.alloc(4096);
84797
84797
  await handle.read(buffer, 0, buffer.length, 0);
@@ -85542,7 +85542,7 @@ async function compactEmbeddedPiSessionDirect(params) {
85542
85542
  } catch (err) {
85543
85543
  return fail(describeUnknownError(err));
85544
85544
  }
85545
- await fsPromises.mkdir(resolvedWorkspace, { recursive: true });
85545
+ await fs$1.mkdir(resolvedWorkspace, { recursive: true });
85546
85546
  const sandboxSessionKey = params.sessionKey?.trim() || params.sessionId;
85547
85547
  const sandbox = await resolveSandboxContext({
85548
85548
  config: params.config,
@@ -85551,7 +85551,7 @@ async function compactEmbeddedPiSessionDirect(params) {
85551
85551
  workspaceLane: params.workspaceLane
85552
85552
  });
85553
85553
  const effectiveWorkspace = sandbox?.enabled ? sandbox.workspaceAccess === "rw" ? resolvedWorkspace : sandbox.workspaceDir : resolvedWorkspace;
85554
- await fsPromises.mkdir(effectiveWorkspace, { recursive: true });
85554
+ await fs$1.mkdir(effectiveWorkspace, { recursive: true });
85555
85555
  if (!(isPreservationArmed() || !isJsonlSessionBackend())) await ensureSessionHeader({
85556
85556
  sessionFile: params.sessionFile,
85557
85557
  sessionId: params.sessionId,
@@ -89333,7 +89333,7 @@ async function prepareSessionManagerForRun(params) {
89333
89333
  header.id = params.sessionId;
89334
89334
  header.cwd = params.cwd;
89335
89335
  sm.sessionId = params.sessionId;
89336
- await fsPromises.writeFile(params.sessionFile, "", "utf-8");
89336
+ await fs$1.writeFile(params.sessionFile, "", "utf-8");
89337
89337
  sm.flushed = false;
89338
89338
  }
89339
89339
  }
@@ -91015,7 +91015,7 @@ async function runEmbeddedAttempt(params) {
91015
91015
  const runAbortController = new AbortController();
91016
91016
  const currentUserTurnForStorage = resolveCurrentUserTurnForStorage(params);
91017
91017
  log$27.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"}`);
91018
- await fsPromises.mkdir(resolvedWorkspace, { recursive: true });
91018
+ await fs$1.mkdir(resolvedWorkspace, { recursive: true });
91019
91019
  const sandboxSessionKey = params.sessionKey?.trim() || params.sessionId;
91020
91020
  const toolSessionKey = params.toolSessionKey?.trim() || sandboxSessionKey;
91021
91021
  const sandbox = params.skipSandbox ? null : await resolveSandboxContext({
@@ -91025,7 +91025,7 @@ async function runEmbeddedAttempt(params) {
91025
91025
  workspaceLane: params.workspaceLane
91026
91026
  });
91027
91027
  const effectiveWorkspace = sandbox?.enabled ? sandbox.workspaceAccess === "rw" ? resolvedWorkspace : sandbox.workspaceDir : resolvedWorkspace;
91028
- await fsPromises.mkdir(effectiveWorkspace, { recursive: true });
91028
+ await fs$1.mkdir(effectiveWorkspace, { recursive: true });
91029
91029
  let restoreSkillEnv;
91030
91030
  const releaseWorkspaceCwd = params.skipCwdChange ? void 0 : acquireWorkspaceCwd(effectiveWorkspace);
91031
91031
  try {
@@ -91410,7 +91410,7 @@ async function runEmbeddedAttempt(params) {
91410
91410
  sessionFile: params.sessionFile,
91411
91411
  warn: (message) => log$27.warn(message)
91412
91412
  });
91413
- const hadSessionFile = await fsPromises.stat(params.sessionFile).then(() => true).catch(() => false);
91413
+ const hadSessionFile = await fs$1.stat(params.sessionFile).then(() => true).catch(() => false);
91414
91414
  if (!params.skipSessionManagerCache) await prewarmSessionFile(params.sessionFile);
91415
91415
  sessionManager = guardSessionManager(SessionManager.open(params.sessionFile), {
91416
91416
  agentId: sessionAgentId,
@@ -92818,7 +92818,7 @@ async function runEmbeddedPiAgent(params) {
92818
92818
  const copilotAuthRetry = authRetryPending;
92819
92819
  authRetryPending = false;
92820
92820
  attemptedThinking.add(thinkLevel);
92821
- await fsPromises.mkdir(resolvedWorkspace, { recursive: true });
92821
+ await fs$1.mkdir(resolvedWorkspace, { recursive: true });
92822
92822
  const prompt = provider === "anthropic" ? scrubAnthropicRefusalMagic(params.prompt) : params.prompt;
92823
92823
  const attempt = await runEmbeddedAttempt({
92824
92824
  sessionId: params.sessionId,
@@ -93971,7 +93971,7 @@ async function runModelGate(spec, ctx) {
93971
93971
  const isolatedSessionId = randomNonce;
93972
93972
  const isolatedRunId = randomNonce;
93973
93973
  const tmpBaseDir = resolvePreferredOpenClawTmpDir();
93974
- tmpDir = await fsPromises.mkdtemp(path.join(tmpBaseDir, "wake-gate-"));
93974
+ tmpDir = await fs$1.mkdtemp(path.join(tmpBaseDir, "wake-gate-"));
93975
93975
  const sessionFile = path.join(tmpDir, "session.json");
93976
93976
  const workspaceDir = tmpDir;
93977
93977
  const prompt = spec.prompt ?? DEFAULT_MODEL_PROMPT;
@@ -94030,7 +94030,7 @@ async function runModelGate(spec, ctx) {
94030
94030
  log$1.warn("model gate error", { error: err instanceof Error ? err.message : String(err) });
94031
94031
  return { wake: false };
94032
94032
  } finally {
94033
- if (tmpDir) await fsPromises.rm(tmpDir, {
94033
+ if (tmpDir) await fs$1.rm(tmpDir, {
94034
94034
  recursive: true,
94035
94035
  force: true
94036
94036
  }).catch(() => void 0);
@@ -94329,7 +94329,7 @@ async function pruneHeartbeatTranscript(params) {
94329
94329
  if (!transcriptPath || typeof preHeartbeatSize !== "number" || preHeartbeatSize < 0) return;
94330
94330
  const pruneEnd = typeof postHeartbeatWriteSize === "number" && postHeartbeatWriteSize >= preHeartbeatSize ? postHeartbeatWriteSize : void 0;
94331
94331
  try {
94332
- const content = await fsPromises.readFile(transcriptPath, "utf8");
94332
+ const content = await fs$1.readFile(transcriptPath, "utf8");
94333
94333
  const currentBytes = Buffer.byteLength(content, "utf8");
94334
94334
  if (currentBytes <= preHeartbeatSize) return;
94335
94335
  const buf = Buffer.from(content, "utf8");
@@ -94357,10 +94357,10 @@ async function pruneHeartbeatTranscript(params) {
94357
94357
  const rewritten = preText + (keptRegionLines.length > 0 ? keptRegionLines.join("\n") + (heartbeatRegion.endsWith("\n") ? "\n" : "") : "") + concurrentTail;
94358
94358
  const tmp = `${transcriptPath}.${process.pid}.${randomBytes(8).toString("hex")}.tmp`;
94359
94359
  try {
94360
- await fsPromises.writeFile(tmp, rewritten, "utf8");
94361
- await fsPromises.rename(tmp, transcriptPath);
94360
+ await fs$1.writeFile(tmp, rewritten, "utf8");
94361
+ await fs$1.rename(tmp, transcriptPath);
94362
94362
  } catch (err) {
94363
- await fsPromises.unlink(tmp).catch(() => {});
94363
+ await fs$1.unlink(tmp).catch(() => {});
94364
94364
  throw err;
94365
94365
  }
94366
94366
  } catch (err) {
@@ -94382,7 +94382,7 @@ async function captureTranscriptState(params) {
94382
94382
  });
94383
94383
  return {
94384
94384
  transcriptPath,
94385
- preHeartbeatSize: (await fsPromises.stat(transcriptPath)).size
94385
+ preHeartbeatSize: (await fs$1.stat(transcriptPath)).size
94386
94386
  };
94387
94387
  } catch {
94388
94388
  return {};
@@ -94396,7 +94396,7 @@ async function captureTranscriptState(params) {
94396
94396
  async function withPostHeartbeatWriteSize(transcriptState) {
94397
94397
  if (!transcriptState.transcriptPath) return transcriptState;
94398
94398
  try {
94399
- const stat = await fsPromises.stat(transcriptState.transcriptPath);
94399
+ const stat = await fs$1.stat(transcriptState.transcriptPath);
94400
94400
  return {
94401
94401
  ...transcriptState,
94402
94402
  postHeartbeatWriteSize: stat.size
@@ -94518,7 +94518,7 @@ async function resolveHeartbeatPreflight(params) {
94518
94518
  const workspaceDir = resolveAgentWorkspaceDir(params.cfg, params.agentId);
94519
94519
  const heartbeatFilePath = path.join(workspaceDir, DEFAULT_HEARTBEAT_FILENAME);
94520
94520
  try {
94521
- if (isHeartbeatContentEffectivelyEmpty(await fsPromises.readFile(heartbeatFilePath, "utf-8"))) return {
94521
+ if (isHeartbeatContentEffectivelyEmpty(await fs$1.readFile(heartbeatFilePath, "utf-8"))) return {
94522
94522
  ...basePreflight,
94523
94523
  skipReason: "empty-heartbeat-file"
94524
94524
  };
@@ -95895,4 +95895,4 @@ async function runMainAgentTurn(payload, opts) {
95895
95895
  }
95896
95896
 
95897
95897
  //#endregion
95898
- export { buildHistoryContextFromEntries as $, getTtsProvider as $n, consumeGatewaySigusr1RestartAuthorization as $t, loadOpenClawPlugins as A, extractImageContentFromSource as An, readRestartSentinel as At, resolveDiscordChannelAllowlist as B, subagent_registry_exports as Bn, buildSafeExternalPrompt as Bt, buildDefaultToolPolicyPipelineSteps as C, resolveDiscordUserAllowlist as Cn, resetDirectoryCache as Ct, createPluginLoaderLogger as D, DEFAULT_INPUT_MAX_REDIRECTS as Dn, consumeRestartSentinel as Dt, resolvePluginTools as E, DEFAULT_INPUT_IMAGE_MIMES as En, describeFailoverError as Et, resolveAgentOutboundIdentity as F, isAbortRequestText as Fn, normalizeCronJobPatch as Ft, resolveAgentOutboundTarget as G, clearSessionQueues as Gn, persistBrowserProxyFiles as Gt, agentCommandFromIngress as H, resolveAnnounceTargetFromKey as Hn, getHookType as Ht, resolveSlackChannelAllowlist as I, stopSubagentsForRequester as In, migrateLegacyCronPayload as It, createOutboundSendDeps$1 as J, getAcpSessionManager as Jn, buildAuthHealthSummary as Jt, createOutboundSendDeps as K, getExistingFollowupQueue as Kn, resolveSessionAuthProfileOverride as Kt, handleSlackHttpRequest as L, countActiveDescendantRuns as Ln, buildDeliveryFromLegacyPayload as Lt, createPluginRuntime as M, resolveInputFileLimits as Mn, trimLogTail as Mt, requestNudge as N, normalizeSendPolicy as Nn, writeRestartSentinel as Nt, clearPluginRegistryCaches as O, DEFAULT_INPUT_TIMEOUT_MS as On, formatDoctorNonInteractiveHint as Ot, deleteTelegramUpdateOffset as P, resolveSendPolicy as Pn, normalizeCronJobCreate as Pt, parseIdentityMarkdown as Q, DEFAULT_MAX_PARALLEL as Qn, parseVerboseOverride as Qt, readJsonBodyWithLimit as R, initSubagentRegistry as Rn, hasLegacyDeliveryHints as Rt, applyToolPolicyPipeline as S, resolveSlackUserAllowlist as Sn, formatTargetDisplay as St, getPluginToolMeta as T, DEFAULT_INPUT_IMAGE_MAX_BYTES as Tn, runWithModelFallback as Tt, resolveSessionKeyForRequest as U, readLatestAssistantReply as Un, isExternalHookSession as Ut, agentCommand as V, runSubagentAnnounceFlow as Vn, detectSuspiciousPatterns as Vt, resolveAgentDeliveryPlan as W, resolveAgentTimeoutMs as Wn, applyBrowserProxyPaths as Wt, identityHasValues as X, ToolInputError as Xn, applyModelOverrideToSessionEntry as Xt, resolveAgentAvatar as Y, resolveAgentSessionDirs as Yn, formatRemainingShort as Yt, loadAgentIdentityFromWorkspace as Z, setTaskPipelineStatus as Zn, applyVerboseOverride as Zt, prepareSessionManagerForRun as _, isSystemEventContextChanged as _n, resolveOutboundSessionRoute as _t, runHeartbeatOnce as a, setGatewaySigusr1RestartPolicy as an, resolveTtsPrefsPath as ar, buildChannelSummary as at, resolvePluginProviders as b, isRetryableHeartbeatBusySkipReason as bn, resolveSessionDeliveryTarget as bt, startHeartbeatRunner as c, unbindThreadBindingsBySessionKey as cn, setTtsProvider as cr, resolveChannelAccountConfigured as ct, getLastHeartbeatEvent as d, formatUsageReportLines as dn, OPENAI_TTS_VOICES as dr, getCliSessionId as dt, deferGatewayRestartUntilIdle as en, isTtsEnabled as er, provider_dispatcher_exports as et, onHeartbeatEvent as f, formatUsageWindowSummary as fn, DEFAULT_HEARTBEAT_ACK_MAX_CHARS as fr, setCliSessionId as ft, runEmbeddedPiAgent as g, enqueueSystemEvent as gn, clearBootstrapSnapshot as gr, ensureOutboundSessionEntry as gt, resolveCronSession as h, resolveCommitHash as hn, resolveUserTimezone as hr, runMessageAction as ht, resolveHeartbeatSummaryForAgent as i, scheduleGatewaySigusr1Restart as in, resolveTtsConfig as ir, getTotalPendingReplies as it, takePendingActivationMigration as j, normalizeMimeList as jn, summarizeRestartSentinel as jt, getLoadedAnalysisConcurrency as k, extractFileContentFromSource as kn, formatRestartSentinelMessage as kt, runWakeGate as l, normalizeGroupActivation as ln, textToSpeech as lr, resolveChannelAccountEnabled as lt, isCronSystemEvent as m, maskApiKey as mn, resolveCronStyleNow as mr, createOpenClawTools as mt, runMainAgentTurn as n, isGatewaySigusr1RestartExternallyAllowed as nn, resolveTtsApiKey as nr, setDispatchInboundAdmissionRejectionFor as nt, setHeartbeatTaskEnqueue as o, setPreRestartDeferralCheck as on, resolveTtsProviderOrder as or, buildChannelAccountSnapshot as ot, redactSensitiveHeartbeatEvent as p, resolveUsageProviderId as pn, stripHeartbeatToken as pr, runCliAgent as pt, createDefaultDeps as q, removeQueuedFollowupRun as qn, DEFAULT_OAUTH_WARN_MS as qt, resolveHeartbeatConfig as r, markGatewaySigusr1RestartHandled as rn, resolveTtsAutoMode as rr, createReplyDispatcher as rt, setHeartbeatsEnabled as s, triggerOpenClawRestart as sn, setTtsEnabled as sr, formatChannelAllowFrom as st, agent_turn_execute_exports as t, emitGatewayRestart as tn, isTtsProviderConfigured as tr, dispatchInboundMessage as tt, resolveHeartbeatVisibility as u, loadProviderUsageSummary as un, OPENAI_TTS_MODELS as ur, BARE_SESSION_RESET_PROMPT as ut, snapshotRunPendingWrites as v, peekSystemEventEntries as vn, resolveHeartbeatDeliveryTarget as vt, sniffMimeFromBase64 as w, ACP_SESSION_IDENTITY_RENDERER_VERSION as wn, CHANNEL_MESSAGE_ACTION_NAMES as wt, resolveExecConfig as x, requestHeartbeatNow as xn, resolveOutboundChannelPlugin as xt, waitForPendingWrites as y, peekSystemEvents as yn, resolveOutboundTarget as yt, requestBodyErrorToText as z, listDescendantRunsForRequester as zn, stripLegacyDeliveryFields as zt };
95898
+ export { buildHistoryContextFromEntries as $, DEFAULT_MAX_PARALLEL as $n, consumeGatewaySigusr1RestartAuthorization as $t, loadOpenClawPlugins as A, extractImageContentFromSource as An, readRestartSentinel as At, resolveDiscordChannelAllowlist as B, subagent_registry_exports as Bn, buildSafeExternalPrompt as Bt, buildDefaultToolPolicyPipelineSteps as C, resolveDiscordUserAllowlist as Cn, resetDirectoryCache as Ct, createPluginLoaderLogger as D, DEFAULT_INPUT_MAX_REDIRECTS as Dn, consumeRestartSentinel as Dt, resolvePluginTools as E, DEFAULT_INPUT_IMAGE_MIMES as En, describeFailoverError as Et, resolveAgentOutboundIdentity as F, isAbortRequestText as Fn, normalizeCronJobPatch as Ft, resolveAgentOutboundTarget as G, clearSessionQueues as Gn, persistBrowserProxyFiles as Gt, agentCommandFromIngress as H, resolveAnnounceTargetFromKey as Hn, getHookType as Ht, resolveSlackChannelAllowlist as I, stopSubagentsForRequester as In, migrateLegacyCronPayload as It, createOutboundSendDeps$1 as J, getAcpSessionManager as Jn, buildAuthHealthSummary as Jt, createOutboundSendDeps as K, getExistingFollowupQueue as Kn, resolveSessionAuthProfileOverride as Kt, handleSlackHttpRequest as L, countActiveDescendantRuns as Ln, buildDeliveryFromLegacyPayload as Lt, createPluginRuntime as M, resolveInputFileLimits as Mn, trimLogTail as Mt, requestNudge as N, normalizeSendPolicy as Nn, writeRestartSentinel as Nt, clearPluginRegistryCaches as O, DEFAULT_INPUT_TIMEOUT_MS as On, formatDoctorNonInteractiveHint as Ot, deleteTelegramUpdateOffset as P, resolveSendPolicy as Pn, normalizeCronJobCreate as Pt, parseIdentityMarkdown as Q, setTaskPipelineStatus as Qn, parseVerboseOverride as Qt, readJsonBodyWithLimit as R, initSubagentRegistry as Rn, hasLegacyDeliveryHints as Rt, applyToolPolicyPipeline as S, resolveSlackUserAllowlist as Sn, formatTargetDisplay as St, getPluginToolMeta as T, DEFAULT_INPUT_IMAGE_MAX_BYTES as Tn, runWithModelFallback as Tt, resolveSessionKeyForRequest as U, readLatestAssistantReply as Un, isExternalHookSession as Ut, agentCommand as V, runSubagentAnnounceFlow as Vn, detectSuspiciousPatterns as Vt, resolveAgentDeliveryPlan as W, resolveAgentTimeoutMs as Wn, applyBrowserProxyPaths as Wt, identityHasValues as X, ToolInputError as Xn, applyModelOverrideToSessionEntry as Xt, resolveAgentAvatar as Y, resolveAgentSessionDirs as Yn, formatRemainingShort as Yt, loadAgentIdentityFromWorkspace as Z, getTaskPipelineStatus as Zn, applyVerboseOverride as Zt, prepareSessionManagerForRun as _, isSystemEventContextChanged as _n, clearBootstrapSnapshot as _r, resolveOutboundSessionRoute as _t, runHeartbeatOnce as a, setGatewaySigusr1RestartPolicy as an, resolveTtsConfig as ar, buildChannelSummary as at, resolvePluginProviders as b, isRetryableHeartbeatBusySkipReason as bn, resolveSessionDeliveryTarget as bt, startHeartbeatRunner as c, unbindThreadBindingsBySessionKey as cn, setTtsEnabled as cr, resolveChannelAccountConfigured as ct, getLastHeartbeatEvent as d, formatUsageReportLines as dn, OPENAI_TTS_MODELS as dr, getCliSessionId as dt, deferGatewayRestartUntilIdle as en, getTtsProvider as er, provider_dispatcher_exports as et, onHeartbeatEvent as f, formatUsageWindowSummary as fn, OPENAI_TTS_VOICES as fr, setCliSessionId as ft, runEmbeddedPiAgent as g, enqueueSystemEvent as gn, resolveUserTimezone as gr, ensureOutboundSessionEntry as gt, resolveCronSession as h, resolveCommitHash as hn, resolveCronStyleNow as hr, runMessageAction as ht, resolveHeartbeatSummaryForAgent as i, scheduleGatewaySigusr1Restart as in, resolveTtsAutoMode as ir, getTotalPendingReplies as it, takePendingActivationMigration as j, normalizeMimeList as jn, summarizeRestartSentinel as jt, getLoadedAnalysisConcurrency as k, extractFileContentFromSource as kn, formatRestartSentinelMessage as kt, runWakeGate as l, normalizeGroupActivation as ln, setTtsProvider as lr, resolveChannelAccountEnabled as lt, isCronSystemEvent as m, maskApiKey as mn, stripHeartbeatToken as mr, createOpenClawTools as mt, runMainAgentTurn as n, isGatewaySigusr1RestartExternallyAllowed as nn, isTtsProviderConfigured as nr, setDispatchInboundAdmissionRejectionFor as nt, setHeartbeatTaskEnqueue as o, setPreRestartDeferralCheck as on, resolveTtsPrefsPath as or, buildChannelAccountSnapshot as ot, redactSensitiveHeartbeatEvent as p, resolveUsageProviderId as pn, DEFAULT_HEARTBEAT_ACK_MAX_CHARS as pr, runCliAgent as pt, createDefaultDeps as q, removeQueuedFollowupRun as qn, DEFAULT_OAUTH_WARN_MS as qt, resolveHeartbeatConfig as r, markGatewaySigusr1RestartHandled as rn, resolveTtsApiKey as rr, createReplyDispatcher as rt, setHeartbeatsEnabled as s, triggerOpenClawRestart as sn, resolveTtsProviderOrder as sr, formatChannelAllowFrom as st, agent_turn_execute_exports as t, emitGatewayRestart as tn, isTtsEnabled as tr, dispatchInboundMessage as tt, resolveHeartbeatVisibility as u, loadProviderUsageSummary as un, textToSpeech as ur, BARE_SESSION_RESET_PROMPT as ut, snapshotRunPendingWrites as v, peekSystemEventEntries as vn, resolveHeartbeatDeliveryTarget as vt, sniffMimeFromBase64 as w, ACP_SESSION_IDENTITY_RENDERER_VERSION as wn, CHANNEL_MESSAGE_ACTION_NAMES as wt, resolveExecConfig as x, requestHeartbeatNow as xn, resolveOutboundChannelPlugin as xt, waitForPendingWrites as y, peekSystemEvents as yn, resolveOutboundTarget as yt, requestBodyErrorToText as z, listDescendantRunsForRequester as zn, stripLegacyDeliveryFields as zt };