winclaw 2026.3.21 → 2026.3.22

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 (338) hide show
  1. package/dist/{accounts-CTJXIABG.js → accounts-8qwgz384.js} +1 -1
  2. package/dist/{accounts-CLKFSM00.js → accounts-BpS-Awr5.js} +1 -1
  3. package/dist/{accounts-cYG8442L.js → accounts-BrWJjaKS.js} +7 -7
  4. package/dist/{acp-cli-BbN2vTHD.js → acp-cli-BMM5ssNE.js} +8 -8
  5. package/dist/{agent-scope-D-i-vMLS.js → agent-scope-Dany4R2i.js} +17 -17
  6. package/dist/{agents-_gcdm-kb.js → agents-AMH_Bmb6.js} +14 -14
  7. package/dist/{agents.config-BkgsJJng.js → agents.config-6n_jmCMa.js} +2 -2
  8. package/dist/{api-key-rotation-D_JdsLIl.js → api-key-rotation-C9ywPLG3.js} +1 -1
  9. package/dist/{audio-preflight-CdgtLVh2.js → audio-preflight-D7UvXGlQ.js} +34 -34
  10. package/dist/{audio-preflight-CBWXmKyj.js → audio-preflight-DHeEYciJ.js} +4 -4
  11. package/dist/{audio-transcription-runner-DpvjaNmr.js → audio-transcription-runner-1-9PFrzh.js} +1 -1
  12. package/dist/{audio-transcription-runner-DGZYB2Wq.js → audio-transcription-runner-nnwJufig.js} +23 -23
  13. package/dist/{audit-DdcsBl_-.js → audit-DV_kf1sd.js} +29 -29
  14. package/dist/{auth-CU4HqNch.js → auth-Ahj-1B5R.js} +1 -1
  15. package/dist/{auth-choice-CtzD_rrW.js → auth-choice-NjkwJsBG.js} +13 -13
  16. package/dist/{auth-choice-i771W71t.js → auth-choice-dFTD1hLR.js} +11 -11
  17. package/dist/{auth-choice.apply-helpers-Bmj9LZnO.js → auth-choice.apply-helpers-ClzwLPaB.js} +1 -1
  18. package/dist/{auth-profiles-CmoHF97e.js → auth-profiles-DF0cLC20.js} +16 -16
  19. package/dist/{auth-token-C_S_Uszj.js → auth-token-BXCBtI3p.js} +1 -1
  20. package/dist/{banner-C-01b-if.js → banner-BB4DFL8E.js} +2 -2
  21. package/dist/{bonjour-discovery-BxCVyJLG.js → bonjour-discovery-BVSpbdjs.js} +1 -1
  22. package/dist/{browser-cli-Rt_P1-M1.js → browser-cli-DAcccrxR.js} +12 -12
  23. package/dist/build-info.json +2 -2
  24. package/dist/bundled/boot-md/handler.js +6 -6
  25. package/dist/bundled/session-memory/handler.js +6 -6
  26. package/dist/{call-BLyRfBMl.js → call-DEKH5GO9.js} +10 -10
  27. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  28. package/dist/{channel-account-context-B4ofKr9t.js → channel-account-context-D4Yftz20.js} +5 -5
  29. package/dist/{channel-activity-CPWF8YR5.js → channel-activity-D03SwGPA.js} +1 -1
  30. package/dist/{channel-options-it9Z3dNk.js → channel-options-C7dYNZsy.js} +3 -3
  31. package/dist/{channel-selection-5G2iw3CB.js → channel-selection-Bke39fer.js} +1 -1
  32. package/dist/{channel-web-CJ_jcZSw.js → channel-web-BOrAGcza.js} +17 -17
  33. package/dist/{channels-cli-miFqkj2-.js → channels-cli-4YLI7Ar_.js} +93 -93
  34. package/dist/{channels-status-issues-DpfEWI4l.js → channels-status-issues-wCgCdUDu.js} +1 -1
  35. package/dist/{chrome-RAfAR4xV.js → chrome-BDFA9lPV.js} +4 -4
  36. package/dist/{chrome-GsaZ074n.js → chrome-Cr8R7xl_.js} +8 -8
  37. package/dist/{clawbot-cli-HvFYYAc6.js → clawbot-cli-B96xAtzs.js} +11 -11
  38. package/dist/cli/daemon-cli.js +1 -1
  39. package/dist/cli-BozE7JCS.js +154 -0
  40. package/dist/{client-DCxDsURZ.js → client-jNFqrgw6.js} +2 -2
  41. package/dist/{command-registry-m8nfRV-J.js → command-registry-qDpes5Yr.js} +11 -11
  42. package/dist/{command-secret-targets-BfqkoJyp.js → command-secret-targets-Dd4qCPSg.js} +4 -4
  43. package/dist/{commands-4mnxaSoA.js → commands-DmBkhPD-.js} +1 -1
  44. package/dist/{commands-registry-h5KiQe_S.js → commands-registry-BB289Bg8.js} +3 -3
  45. package/dist/{completion-cli-B-8mTxbh.js → completion-cli-DzZieT3i.js} +13 -13
  46. package/dist/{config-cli-1ecjxVfC.js → config-cli-Dk1yc6M9.js} +7 -7
  47. package/dist/{config-guard-DlzKrdcR.js → config-guard-3fwTO4Mb.js} +3 -3
  48. package/dist/{config-validation-E-3Wz4C4.js → config-validation-5pIaju5U.js} +3 -3
  49. package/dist/{configure-B-tOY-wa.js → configure-CuqZCxTb.js} +17 -17
  50. package/dist/{control-ui-assets-B0DdamQU.js → control-ui-assets-5F0FEjfM.js} +1 -1
  51. package/dist/{cron-cli-DpVGzupl.js → cron-cli-BIa0VxDk.js} +11 -11
  52. package/dist/{daemon-cli-CqwUFobu.js → daemon-cli-BE11O7QX.js} +16 -16
  53. package/dist/{daemon-install-C029NlXk.js → daemon-install-DNhR8NtL.js} +4 -4
  54. package/dist/{daemon-install-helpers-D1YQ03lO.js → daemon-install-helpers-DWmF3oFP.js} +11 -11
  55. package/dist/{deliver-BX-UVg7x.js → deliver-CqiBzHnh.js} +7 -7
  56. package/dist/{deliver-CtyrAYix.js → deliver-r4_Yp7-C.js} +1 -1
  57. package/dist/{deliver-runtime-Bvh4te8E.js → deliver-runtime-CIXUsI5k.js} +3 -3
  58. package/dist/deliver-runtime-DJsAB9LW.js +57 -0
  59. package/dist/deps-send-discord.runtime-M8Cl0fms.js +32 -0
  60. package/dist/deps-send-imessage.runtime-Bing_Bvm.js +31 -0
  61. package/dist/deps-send-signal.runtime-CEnhoskG.js +30 -0
  62. package/dist/deps-send-slack.runtime-DeKWrOdA.js +28 -0
  63. package/dist/deps-send-telegram.runtime-K5LxxPog.js +34 -0
  64. package/dist/{deps-send-whatsapp.runtime-BJV7VcRP.js → deps-send-whatsapp.runtime-BXDQiU2D.js} +7 -7
  65. package/dist/deps-send-whatsapp.runtime-Cie2nrT8.js +115 -0
  66. package/dist/{devices-cli-Cpq_Gt1l.js → devices-cli-BJgUG9fc.js} +8 -8
  67. package/dist/{diagnostic-DIPYflOJ.js → diagnostic-BCcd-_zI.js} +1 -1
  68. package/dist/{diagnostics-KfpqzhsS.js → diagnostics-BDjbQJxP.js} +5 -5
  69. package/dist/{directory-cli-CPBPE8N1.js → directory-cli-CJ_l_BnF.js} +7 -7
  70. package/dist/{dns-cli-CI7HzCVI.js → dns-cli-CFau82Y7.js} +5 -5
  71. package/dist/{dock-ClcGZ0LV.js → dock-C-w5XvOS.js} +4 -4
  72. package/dist/{docs-cli-DkQBHXw-.js → docs-cli-BRob5CHm.js} +4 -4
  73. package/dist/{doctor-completion-DEdT-_9v.js → doctor-completion-DB39JNV7.js} +2 -2
  74. package/dist/{doctor-config-flow-D6rEqOwb.js → doctor-config-flow-BzYwmYwv.js} +15 -15
  75. package/dist/{enable-sRe0nI5a.js → enable-Qw-mz6ta.js} +1 -1
  76. package/dist/entry.js +2 -2
  77. package/dist/{exec-approvals-allowlist-B5ZdMbz6.js → exec-approvals-allowlist-BkdJCc3F.js} +1 -1
  78. package/dist/{exec-approvals-cli-BFxdGk9c.js → exec-approvals-cli-DsDGgzyV.js} +16 -16
  79. package/dist/{exec-safe-bin-runtime-policy-CB8atBLm.js → exec-safe-bin-runtime-policy-C5pAgyiz.js} +2 -2
  80. package/dist/{fetch-CdvuNDFE.js → fetch-BwrGQrFL.js} +3 -3
  81. package/dist/{fetch-guard-D-W6TRJN.js → fetch-guard-CHht1LfT.js} +1 -1
  82. package/dist/{plugin-sdk/fs-safe-DRACrdwg.js → fs-safe-B8J4dv27.js} +6 -6
  83. package/dist/{gateway-cli-C_4mlmOW.js → gateway-cli-BdyXCC2C.js} +154 -154
  84. package/dist/{gateway-rpc-Dg3CGljP.js → gateway-rpc-ICMh7-Qs.js} +1 -1
  85. package/dist/{health-C5a0wlfE.js → health-Boe965-L.js} +11 -11
  86. package/dist/{hooks-cli-C79J_WG7.js → hooks-cli-DI0sn396.js} +81 -81
  87. package/dist/{hooks-status-Cjg5SLpX.js → hooks-status-CQjtRM1s.js} +1 -1
  88. package/dist/{image-7s8Q2r40.js → image-DoOVDHql.js} +1 -1
  89. package/dist/{image-EjGWXbei.js → image-Dpt9TurJ.js} +5 -5
  90. package/dist/{image-ops-eFMqXMDE.js → image-ops-DWGnyTvC.js} +10 -10
  91. package/dist/image-runtime-HfAsK5X3.js +51 -0
  92. package/dist/{image-runtime-QNP_uABR.js → image-runtime-Wym8Keh3.js} +3 -3
  93. package/dist/{inspect-XmcWN97u.js → inspect-DbVcDDi7.js} +4 -4
  94. package/dist/{install-safe-path-DNotGe9T.js → install-safe-path-FR9r9Dmi.js} +25 -25
  95. package/dist/{installs-zKF10nZF.js → installs-7zsfIb7P.js} +9 -9
  96. package/dist/{ipv4-DIKCnoyz.js → ipv4-CfrDjvjo.js} +1 -1
  97. package/dist/{ir-CJPPU4LU.js → ir-B-FffSKU.js} +8 -8
  98. package/dist/{issue-format-DCF2SXK_.js → issue-format-NmLUfbBT.js} +1 -1
  99. package/dist/{json-files-kWpauJWO.js → json-files-D9ZHO8Ud.js} +8 -8
  100. package/dist/{lifecycle-core-BLhI5nRz.js → lifecycle-core-Di83_FGS.js} +5 -5
  101. package/dist/llm-slug-generator.js +6 -6
  102. package/dist/{login-D26qK4NQ.js → login-BrdFlfV0.js} +3 -3
  103. package/dist/{login-qr-CMgMlRCI.js → login-qr-Ci3FVgS9.js} +6 -6
  104. package/dist/{logs-cli-Cn7bGSc7.js → logs-cli-DUl4D14l.js} +9 -9
  105. package/dist/{manager-f6tniCBN.js → manager-2Wice7pq.js} +14 -14
  106. package/dist/manager-runtime-BrpO8pJp.js +22 -0
  107. package/dist/{manifest-registry-CI-UuKUO.js → manifest-registry-_liSV_Vx.js} +1 -1
  108. package/dist/{memory-cli-C2Yq9ryD.js → memory-cli-BgZK6A-T.js} +12 -12
  109. package/dist/{model-CXGHDOeN.js → model-C4J88Gi3.js} +2 -2
  110. package/dist/{model-catalog-08ftNXDk.js → model-catalog-BYxSwIkt.js} +3 -3
  111. package/dist/{model-picker-CTRi5Yhj.js → model-picker-DAr8DpKu.js} +4 -4
  112. package/dist/{models-Do96D4zT.js → models-DqwqcGxg.js} +17 -17
  113. package/dist/{models-cli-pblTciC_.js → models-cli-BFfUYhHp.js} +78 -78
  114. package/dist/{models-config-DYJ-p9kt.js → models-config-CJq2ywhf.js} +6 -6
  115. package/dist/{net-DQYHvbkN.js → net-C7TXXUto.js} +2 -2
  116. package/dist/{node-cli-CsQwAHzH.js → node-cli-DMpZsjse.js} +33 -33
  117. package/dist/{node-command-policy-BHdicfMO.js → node-command-policy-DGMJi4xw.js} +1 -1
  118. package/dist/{node-service-CLtiUeNO.js → node-service-L9-L8-7x.js} +1 -1
  119. package/dist/{nodes-cli-Dlilj-Pf.js → nodes-cli-BcyY77Cc.js} +16 -16
  120. package/dist/{nodes-screen-CL-8raxt.js → nodes-screen-B6QVlwKO.js} +7 -7
  121. package/dist/{npm-pack-install-DZvYhRnM.js → npm-pack-install-B3VCcNWC.js} +18 -18
  122. package/dist/{npm-resolution-DE7xcGkg.js → npm-resolution-0-Scs5nn.js} +4 -4
  123. package/dist/{onboard-CReGZ3G9.js → onboard-C9gtA3_b.js} +6 -6
  124. package/dist/{onboard-channels-ljMkIe7O.js → onboard-channels-NBqfiIc3.js} +21 -21
  125. package/dist/{onboard-custom-DoJDTzAW.js → onboard-custom-Cv61U_sa.js} +4 -4
  126. package/dist/{onboard-helpers-7lOdCHhD.js → onboard-helpers-Djj9SkyR.js} +10 -10
  127. package/dist/{onboard-hooks-BTD0YhRI.js → onboard-hooks-DRkLf5gL.js} +4 -4
  128. package/dist/{onboard-remote-Bj9uk3zW.js → onboard-remote-o8XtWCa_.js} +4 -4
  129. package/dist/{onboard-skills-1KAA9UrK.js → onboard-skills-TATKa-gc.js} +4 -4
  130. package/dist/{onboarding-CoH1hPY0.js → onboarding-C_LQ6doG.js} +14 -14
  131. package/dist/{onboarding.finalize-DzRWtkmA.js → onboarding.finalize-uHWzNBrm.js} +87 -87
  132. package/dist/{onboarding.gateway-config-s11ZLxLE.js → onboarding.gateway-config-ByvXJY2k.js} +18 -18
  133. package/dist/{onboarding.secret-input-D5VKqHdN.js → onboarding.secret-input-Cw4uIgyl.js} +1 -1
  134. package/dist/{openai-model-default-sYh2slgj.js → openai-model-default-Db9joqm4.js} +2 -2
  135. package/dist/{outbound-D0KF3CHY.js → outbound-DgsIsXfj.js} +3 -3
  136. package/dist/{outbound-attachment-CEC4H3tX.js → outbound-attachment-CjhkSZBR.js} +2 -2
  137. package/dist/{pairing-cli-4Nrc-V_v.js → pairing-cli-D0KKynjI.js} +8 -8
  138. package/dist/{pairing-labels-e3Pnen1C.js → pairing-labels-Ev8O2qBX.js} +1 -1
  139. package/dist/{pairing-store-Kslw_Wa0.js → pairing-store-CI0hWzZk.js} +3 -3
  140. package/dist/{plugin-sdk/path-alias-guards-CaCBZRHc.js → path-alias-guards-BoydiaPL.js} +1 -1
  141. package/dist/{path-safety-Cq9rwfZN.js → path-safety-CSCsbd-j.js} +1 -1
  142. package/dist/{paths-C5mR1YC-.js → paths-BVQ0udwc.js} +9 -9
  143. package/dist/{pi-embedded-DUO1eQ_J.js → pi-embedded-CD3oPGOP.js} +24 -24
  144. package/dist/{pi-embedded-helpers-BWpzwT6B.js → pi-embedded-helpers-Be8qWeKb.js} +6 -6
  145. package/dist/{pi-embedded-helpers-BMGRFCuV.js → pi-embedded-helpers-BthBxPYi.js} +3 -3
  146. package/dist/{pi-model-discovery-CibSv4gC.js → pi-model-discovery-CgxnCHvU.js} +1 -1
  147. package/dist/{pi-model-discovery-runtime-DhBE8w94.js → pi-model-discovery-runtime-CqYOz48r.js} +5 -5
  148. package/dist/{pi-tools.before-tool-call.runtime-D6h4CmLs.js → pi-tools.before-tool-call.runtime-CPnt06zM.js} +5 -5
  149. package/dist/{pi-tools.policy-BqpmC_c4.js → pi-tools.policy-DGbCC2Ji.js} +5 -5
  150. package/dist/{plugin-auto-enable-DnSZLbIH.js → plugin-auto-enable-Crpu18wt.js} +3 -3
  151. package/dist/{plugin-registry-DckyegZB.js → plugin-registry-Dbu4pN4B.js} +3 -3
  152. package/dist/plugin-sdk/imessage.js +2 -2
  153. package/dist/plugin-sdk/index.js +50 -50
  154. package/dist/plugin-sdk/mattermost.js +3 -3
  155. package/dist/plugin-sdk/signal.js +2 -2
  156. package/dist/plugin-sdk/telegram.js +2 -2
  157. package/dist/{plugins-C1OgLvb4.js → plugins-IFacUN_Q.js} +2 -2
  158. package/dist/{plugins-cli-C6Oo9R6E.js → plugins-cli-CCpaWcyg.js} +83 -83
  159. package/dist/{ports-CfOim1GC.js → ports-DqZBwUsy.js} +2 -2
  160. package/dist/{ports-Dw-3Gxsb.js → ports-FLn4cVl7.js} +1 -1
  161. package/dist/{probe-D3f6QMfy.js → probe-CHRXpP2F.js} +2 -2
  162. package/dist/{program-CEJ6CsoR.js → program-Br4Re78f.js} +81 -81
  163. package/dist/{prompt-select-styled-D-f3R2mt.js → prompt-select-styled-w-CGGgrT.js} +40 -40
  164. package/dist/{provider-auth-helpers-CN4iPBfs.js → provider-auth-helpers-BVCos07y.js} +5 -5
  165. package/dist/{proxy-env-B7GwrH5p.js → proxy-env-Bx8OhutV.js} +1 -1
  166. package/dist/{push-apns-BEZdCQsM.js → push-apns-Cdl2nskU.js} +5 -5
  167. package/dist/{pw-ai-Ckb-165q.js → pw-ai-BpQw305H.js} +18 -18
  168. package/dist/{pw-ai-D6e8FGb0.js → pw-ai-CJfoHUhH.js} +1 -1
  169. package/dist/{plugin-sdk/qmd-manager-JiY1T3wh.js → qmd-manager-COHJs6wn.js} +15 -11
  170. package/dist/{qr-cli-BI54tdt3.js → qr-cli-Bzo00_vR.js} +2 -2
  171. package/dist/{query-expansion-Cja4xprw.js → query-expansion-IQFdQdeu.js} +12 -12
  172. package/dist/{redact-snapshot-YrAxVxTI.js → redact-snapshot-Bfefch_D.js} +1 -1
  173. package/dist/{register.agent-BjxrirHi.js → register.agent-CVpohSrc.js} +94 -94
  174. package/dist/register.configure-CiIuig3f.js +162 -0
  175. package/dist/{register.maintenance-BfdiJ7KX.js → register.maintenance-CpVfbR8z.js} +95 -95
  176. package/dist/{register.message-BszoJEBm.js → register.message-CJErVRcL.js} +74 -74
  177. package/dist/{register.onboard-CbJU4Y-3.js → register.onboard-Cm5fn9dF.js} +18 -18
  178. package/dist/{register.setup-BTTBsCT0.js → register.setup-DIBDbMN8.js} +21 -21
  179. package/dist/{register.status-health-sessions-C3Ji8sqv.js → register.status-health-sessions-Bu3abDYw.js} +89 -89
  180. package/dist/{register.subclis-2iN-TxPh.js → register.subclis-DTiQUgvr.js} +31 -31
  181. package/dist/{rpc-4GcuaLHq.js → rpc-CkwrblZ9.js} +1 -1
  182. package/dist/{run-main-BEtPk_9z.js → run-main-4p7ridqP.js} +92 -92
  183. package/dist/{runtime-4RU4PT-H.js → runtime-C-9xWVep.js} +3 -3
  184. package/dist/{runtime-config-collectors-Ca2llf68.js → runtime-config-collectors-vw9ITu9W.js} +1 -1
  185. package/dist/{runtime-whatsapp-login.runtime-DOTrH3Wz.js → runtime-whatsapp-login.runtime-CrytFUOh.js} +7 -7
  186. package/dist/runtime-whatsapp-outbound.runtime-DOHkvY0R.js +28 -0
  187. package/dist/{sandbox-D19lOCVP.js → sandbox-CDjV0Crv.js} +18 -18
  188. package/dist/{sandbox-cli-DAZxiFQz.js → sandbox-cli-CyS9Kzp1.js} +25 -25
  189. package/dist/{secrets-cli-Bd2eDDOJ.js → secrets-cli-BPXW13bC.js} +11 -11
  190. package/dist/{security-cli-C6oO69to.js → security-cli-DfuX1PAw.js} +43 -43
  191. package/dist/{send-DR5zNR-6.js → send-BTQQeOIu.js} +6 -6
  192. package/dist/{send-3vnK2por.js → send-CFsJh6px.js} +11 -11
  193. package/dist/{send-DTvtOsK3.js → send-CM55Cnqy.js} +4 -4
  194. package/dist/{send-Bz5LPBFx.js → send-D7wKzeqg.js} +8 -8
  195. package/dist/{send-CEgqE2b1.js → send-DUJqLDEQ.js} +5 -5
  196. package/dist/{server-vPpafyBR.js → server-57rjxu9J.js} +20 -20
  197. package/dist/{server-context-FT_S05Zu.js → server-context-DdGwcBos.js} +12 -12
  198. package/dist/{server-lifecycle-YV61YmRr.js → server-lifecycle-TD7uRUJM.js} +2 -2
  199. package/dist/{server-middleware-BPI-0Duw.js → server-middleware-Dqzu_N47.js} +1 -1
  200. package/dist/{server-node-events-BozhXo6J.js → server-node-events-CstHr-4q.js} +74 -74
  201. package/dist/{service-Aratsspm.js → service-B45ntxm9.js} +15 -15
  202. package/dist/{session-C4iQQHfw.js → session-BO7rj_9P.js} +1 -1
  203. package/dist/{session-utils-CTpXGSxL.js → session-utils-DqzU9P2d.js} +6 -6
  204. package/dist/{sessions-CZvR93mC.js → sessions-BPbCt7hk.js} +4 -4
  205. package/dist/{sessions-Cvvux3S6.js → sessions-BUNwVEqF.js} +15 -15
  206. package/dist/{shared-ByZODVse.js → shared-CeHWQzSU.js} +3 -3
  207. package/dist/{shared-Cj-SPh02.js → shared-CpqkgNHp.js} +1 -1
  208. package/dist/{skill-commands-CzaT61kL.js → skill-commands-BlmjGaIe.js} +5 -5
  209. package/dist/{skill-scanner-DqqhF5of.js → skill-scanner-DOOfjrYo.js} +6 -6
  210. package/dist/{skills-BpN5EUZU.js → skills-CFYm0xdh.js} +3 -3
  211. package/dist/{skills-cli-Bk2WM5gn.js → skills-cli-Dmbm2-L8.js} +5 -5
  212. package/dist/{skills-install-0pjIZu1-.js → skills-install-DSB3T8VY.js} +6 -6
  213. package/dist/{skills-status-Bu28FGtt.js → skills-status-CmWpjTMz.js} +1 -1
  214. package/dist/{slash-commands.runtime-CU--cvcd.js → slash-commands.runtime-CTVGYo20.js} +11 -11
  215. package/dist/{slash-dispatch.runtime-DDLolsGY.js → slash-dispatch.runtime-CQmhrE1-.js} +6 -6
  216. package/dist/slash-dispatch.runtime-yKnwVCI5.js +110 -0
  217. package/dist/slash-skill-commands.runtime-BCG9eUm1.js +29 -0
  218. package/dist/{status-B5hylgEQ.js → status-DPFQHdBI.js} +28 -28
  219. package/dist/{status.update-CdaaXiD4.js → status.update-ZhDibzTU.js} +2 -2
  220. package/dist/{store-LSg8jeyh.js → store-Dgl-neCe.js} +5 -5
  221. package/dist/{subagent-registry-iD-ynHA9.js → subagent-registry-DPqc72Pw.js} +149 -149
  222. package/dist/{subagent-registry-runtime-DfMDVaOY.js → subagent-registry-runtime-BYxLgcCY.js} +6 -6
  223. package/dist/subagent-registry-runtime-DE-5902Y.js +110 -0
  224. package/dist/{system-cli-B8wmT3y0.js → system-cli-BiiO_z6k.js} +9 -9
  225. package/dist/{system-run-command-Ft0meR8i.js → system-run-command-CUMrwy8H.js} +1 -1
  226. package/dist/{systemd-CVY4-XuL.js → systemd-BNMfPHLS.js} +9 -9
  227. package/dist/{systemd-hints-GPX9Y1X7.js → systemd-hints-O9SJa5Ku.js} +6 -6
  228. package/dist/{systemd-linger-CyioH9ho.js → systemd-linger-CDgtOmPf.js} +1 -1
  229. package/dist/{tables-B6p8P9wY.js → tables-Bjpb4vEC.js} +1 -1
  230. package/dist/{tailnet-yScEfa2T.js → tailnet-C4yxhmDk.js} +1 -1
  231. package/dist/{plugin-sdk/target-errors-Hoj2qirZ.js → target-errors-Bd8kj4z9.js} +2 -2
  232. package/dist/{tool-images-Cp3hNFNZ.js → tool-images-DbchBdq5.js} +1 -1
  233. package/dist/{tui-BPqNtl51.js → tui-BVOPPCMP.js} +6 -6
  234. package/dist/{tui-cli-BZE2zssw.js → tui-cli-B2jmEXCo.js} +32 -32
  235. package/dist/{update-u6OtnABh.js → update-DF240Zd0.js} +3 -3
  236. package/dist/{update-cli-C1nysDmM.js → update-cli-PDG-KYWB.js} +105 -105
  237. package/dist/{update-runner-BpzbDTnQ.js → update-runner-BkpGT3AA.js} +16 -16
  238. package/dist/{web-CodV11ZY.js → web-0SOsmYmI.js} +6 -6
  239. package/dist/web-20qjCzeI.js +114 -0
  240. package/dist/{webhooks-cli-D4O_OfXU.js → webhooks-cli-N_vV0iXR.js} +6 -6
  241. package/dist/{whatsapp-actions-By2rV868.js → whatsapp-actions-X768ziyc.js} +17 -17
  242. package/dist/{winclaw-root-D0OUuGl7.js → winclaw-root-DEqOOeOw.js} +8 -8
  243. package/dist/{with-timeout-Cng0KnPd.js → with-timeout-DJb5ULbL.js} +3 -3
  244. package/dist/{workspace-vYy4qLQz.js → workspace-Cx-f7PO5.js} +1 -1
  245. package/dist/{workspace-dirs-C13vnqQQ.js → workspace-dirs-C5erYAob.js} +1 -1
  246. package/dist/{wsl-C9d12M7y.js → wsl-BisEqrSr.js} +2 -2
  247. package/package.json +1 -1
  248. package/dist/cli-Da0pNyXg.js +0 -154
  249. package/dist/deliver-runtime-Co5o7uv0.js +0 -57
  250. package/dist/deps-send-discord.runtime-D0BtA9iO.js +0 -32
  251. package/dist/deps-send-imessage.runtime-89fweiea.js +0 -31
  252. package/dist/deps-send-signal.runtime-BA3mNq_v.js +0 -30
  253. package/dist/deps-send-slack.runtime-DiA-Ieod.js +0 -28
  254. package/dist/deps-send-telegram.runtime-C9bLOnbt.js +0 -34
  255. package/dist/deps-send-whatsapp.runtime-Dflrvnq-.js +0 -115
  256. package/dist/fs-safe-Dha0DfFC.js +0 -352
  257. package/dist/image-runtime-CGAobfgI.js +0 -51
  258. package/dist/manager-runtime-BifbXCuI.js +0 -22
  259. package/dist/path-alias-guards-9OJ1UBCd.js +0 -43
  260. package/dist/plugin-sdk/accounts-B9lBByhz.js +0 -35
  261. package/dist/plugin-sdk/accounts-Bl6fp04N.js +0 -288
  262. package/dist/plugin-sdk/accounts-CQWq_42g.js +0 -46
  263. package/dist/plugin-sdk/active-listener-Dc-P7jeX.js +0 -50
  264. package/dist/plugin-sdk/api-key-rotation-DSOB99GV.js +0 -181
  265. package/dist/plugin-sdk/audio-preflight-DYTxAG0v.js +0 -69
  266. package/dist/plugin-sdk/audio-transcription-runner-Bndij5Q1.js +0 -2176
  267. package/dist/plugin-sdk/audit-membership-runtime-ZTTIhQhs.js +0 -58
  268. package/dist/plugin-sdk/channel-activity-ChRCQNSc.js +0 -94
  269. package/dist/plugin-sdk/channel-web-CfZNFYCV.js +0 -2256
  270. package/dist/plugin-sdk/chrome-DNpRdbZ1.js +0 -2415
  271. package/dist/plugin-sdk/commands-registry-Bq1HqcJU.js +0 -1125
  272. package/dist/plugin-sdk/config-Cyo0rHBx.js +0 -17959
  273. package/dist/plugin-sdk/deliver-mBruQPRt.js +0 -1719
  274. package/dist/plugin-sdk/deliver-runtime-ByVt0evu.js +0 -32
  275. package/dist/plugin-sdk/deps-send-discord.runtime-C2fc3t93.js +0 -23
  276. package/dist/plugin-sdk/deps-send-imessage.runtime-D4m7X6j4.js +0 -22
  277. package/dist/plugin-sdk/deps-send-signal.runtime-DwGJRjyX.js +0 -21
  278. package/dist/plugin-sdk/deps-send-slack.runtime-7J491hID.js +0 -19
  279. package/dist/plugin-sdk/deps-send-telegram.runtime-DAKGyd6b.js +0 -24
  280. package/dist/plugin-sdk/deps-send-whatsapp.runtime-BxQ5tZO2.js +0 -57
  281. package/dist/plugin-sdk/diagnostic-B3ZoSFoM.js +0 -319
  282. package/dist/plugin-sdk/errors-DdSHGcgi.js +0 -54
  283. package/dist/plugin-sdk/fetch-guard-Uhk4tySC.js +0 -156
  284. package/dist/plugin-sdk/image-CEBZ8sRh.js +0 -2314
  285. package/dist/plugin-sdk/image-ops-Dye2ozSZ.js +0 -584
  286. package/dist/plugin-sdk/image-runtime-CabQkSZn.js +0 -25
  287. package/dist/plugin-sdk/ir-CruONUHn.js +0 -1296
  288. package/dist/plugin-sdk/local-roots-BYSlR-at.js +0 -186
  289. package/dist/plugin-sdk/logger-C_vnHQg2.js +0 -1163
  290. package/dist/plugin-sdk/login-bdsdinOj.js +0 -57
  291. package/dist/plugin-sdk/login-qr-BYAvyop9.js +0 -320
  292. package/dist/plugin-sdk/manager-AOQxrU7P.js +0 -3929
  293. package/dist/plugin-sdk/manager-runtime-CijO5giX.js +0 -15
  294. package/dist/plugin-sdk/outbound-FdiP5J7H.js +0 -212
  295. package/dist/plugin-sdk/outbound-attachment-DZphVgq7.js +0 -19
  296. package/dist/plugin-sdk/paths-ICLB349I.js +0 -166
  297. package/dist/plugin-sdk/pi-embedded-helpers-tHjfJzH4.js +0 -9627
  298. package/dist/plugin-sdk/pi-model-discovery-DQV-B6bn.js +0 -134
  299. package/dist/plugin-sdk/pi-model-discovery-runtime-MJmZTIax.js +0 -8
  300. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-7DPjo7Ey.js +0 -354
  301. package/dist/plugin-sdk/plugins-BQHnLb2v.js +0 -864
  302. package/dist/plugin-sdk/proxy-fetch-BpMu-RpD.js +0 -38
  303. package/dist/plugin-sdk/pw-ai-DAMRoo8O.js +0 -1938
  304. package/dist/plugin-sdk/query-expansion-CuaTloKx.js +0 -1011
  305. package/dist/plugin-sdk/redact-BznLQ6I5.js +0 -319
  306. package/dist/plugin-sdk/reply-Cx_4UtvJ.js +0 -100211
  307. package/dist/plugin-sdk/resolve-outbound-target-BDjhohcf.js +0 -40
  308. package/dist/plugin-sdk/run-with-concurrency-BcPenaKJ.js +0 -1994
  309. package/dist/plugin-sdk/runtime-whatsapp-login.runtime-DqezqoLI.js +0 -10
  310. package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-Dgnv_x4o.js +0 -19
  311. package/dist/plugin-sdk/send-BWz-g7wE.js +0 -540
  312. package/dist/plugin-sdk/send-DB9pUM0k.js +0 -414
  313. package/dist/plugin-sdk/send-QPap4wBN.js +0 -503
  314. package/dist/plugin-sdk/send-gz4Lq5tL.js +0 -2587
  315. package/dist/plugin-sdk/send-tyEtWeMX.js +0 -3135
  316. package/dist/plugin-sdk/session-88GgvJcW.js +0 -169
  317. package/dist/plugin-sdk/skill-commands-ClwX3DoE.js +0 -353
  318. package/dist/plugin-sdk/skills-B2FPl9ca.js +0 -1428
  319. package/dist/plugin-sdk/slash-commands.runtime-CGAfyDkY.js +0 -13
  320. package/dist/plugin-sdk/slash-dispatch.runtime-DN7TWAWh.js +0 -52
  321. package/dist/plugin-sdk/slash-skill-commands.runtime-C4i9B-79.js +0 -16
  322. package/dist/plugin-sdk/ssrf-D3NQgatK.js +0 -202
  323. package/dist/plugin-sdk/store-CDmdRGxP.js +0 -81
  324. package/dist/plugin-sdk/subagent-registry-runtime-CprGCjIU.js +0 -52
  325. package/dist/plugin-sdk/tables-j2CMtAoX.js +0 -55
  326. package/dist/plugin-sdk/thinking-Dh6B0ZhB.js +0 -1206
  327. package/dist/plugin-sdk/tokens-PExiD061.js +0 -52
  328. package/dist/plugin-sdk/tool-images-D7ah30xm.js +0 -274
  329. package/dist/plugin-sdk/web-D9wJfMr_.js +0 -56
  330. package/dist/plugin-sdk/whatsapp-actions-BjarJorO.js +0 -80
  331. package/dist/qmd-manager-oU4X85hj.js +0 -1452
  332. package/dist/register.configure-MduIRRMt.js +0 -162
  333. package/dist/runtime-whatsapp-outbound.runtime-CNnM5MdE.js +0 -28
  334. package/dist/slash-dispatch.runtime-D5Cl7j1v.js +0 -110
  335. package/dist/slash-skill-commands.runtime-DnvHGcVS.js +0 -29
  336. package/dist/subagent-registry-runtime-LH0OBaWN.js +0 -110
  337. package/dist/target-errors-HJQQHC3B.js +0 -195
  338. package/dist/web-DxHq9RWt.js +0 -114
@@ -1,109 +1,109 @@
1
1
  import { E as logVerbose, F as getChildLogger, P as theme, S as danger, U as normalizeLogLevel, _ as defaultRuntime, et as resolveGatewayPort, g as createNonExitingRuntime, j as warn, k as shouldLogVerbose, mt as resolveRequiredHomeDir, o as parseBooleanValue$1, ot as resolveStateDir, q as STATE_DIR, r as isTruthyEnvValue, s as createSubsystemLogger, st as resolvePreferredWinClawTmpDir } from "./entry.js";
2
- import { Ar as resolveModelRefFromString, At as AVATAR_MAX_BYTES, Cr as normalizeProviderId, Dn as applyMergePatch, Dr as resolveConfiguredModelRef, Fi as splitTrailingAuthProfile, Fn as resolveSlackNativeStreaming, Ft as isSupportedLocalAvatarExtension, G as writeConfigFile, Gn as resolveOwnerDisplaySetting, Gt as getConfigValueAtPath, Hn as resolveAgentMaxConcurrent, Ht as resetConfigOverrides, Ii as DEFAULT_CONTEXT_TOKENS, In as resolveSlackStreamingMode, J as TELEGRAM_COMMAND_NAME_PATTERN, Jn as listProfilesForProvider, Jt as unsetConfigValueAtPath, K as validateConfigObjectWithPlugins, Kt as parseConfigPath, Li as DEFAULT_MODEL, Mi as normalizeSecretInput, Mt as isAvatarHttpUrl, Nn as mapStreamingModeToSlackLegacyDraftStreamMode, Nr as resolveSubagentSpawnModelSelection, Or as resolveDefaultModelForAgent, Pn as resolveDiscordPreviewStreamMode, Pr as resolveThinkingDefault, Pt as isPathWithinRoot, Q as isInboundPathAllowed, Qr as retryAsync, Ri as DEFAULT_PROVIDER, U as resolveConfigSnapshotHash, Ut as setConfigOverride, V as readConfigFileSnapshot, Vn as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, Vt as getConfigOverrides, Wt as unsetConfigOverride, X as resolveTelegramCustomCommands, Y as normalizeTelegramCommandName, Yn as markAuthProfileGood, Zr as resolveRetryConfig, _i as resolveEnvApiKey, a as getSoonestCooldownExpiry, bi as getShellPathFromLoginShell, br as modelKey, c as markAuthProfileUsed, ci as buildAssistantMessage, cr as resolveWinClawAgentDir, d as resolveApiKeyForProfile, di as buildUsageWithNoCost, er as ensureAuthProfileStore, et as resolveIMessageAttachmentRoots, f as evaluateStoredCredentialEligibility, fi as getApiKeyForModel, gr as findNormalizedProviderValue, hi as resolveApiKeyForProvider, hr as buildModelAliasIndex, i as clearExpiredCooldowns, jr as resolveReasoningDefault, jt as isAvatarDataUrl, li as buildAssistantMessageWithZeroUsage, lr as withFileLock, mi as requireApiKey, mr as buildConfiguredAllowlistKeys, nn as buildEnforcedShellCommand, nt as normalizeScpRemoteHost, o as isProfileInCooldown, oi as OLLAMA_NATIVE_BASE_URL, p as resolveTokenExpiryState, pi as getCustomProviderApiKey, pr as buildAllowedModelSet, pt as parseDurationMs, qn as dedupeProfileIds, qt as setConfigValueAtPath, r as resolveAuthProfileOrder, rt as parseNonNegativeByteSize, s as markAuthProfileFailure, si as createOllamaStreamFn, sr as resolveAuthStorePathForDisplay, tt as resolveIMessageRemoteAttachmentRoots, u as resolveProfilesUnavailableReason, ui as buildStreamErrorAssistantMessage, vi as resolveModelAuthMode, xi as resolveShellEnvFallbackTimeoutMs, xr as normalizeModelRef$2, yr as isCliProvider, z as loadConfig, zi as resolveAuthProfileDisplayLabel, zt as validateJsonSchemaValue } from "./auth-profiles-CmoHF97e.js";
2
+ import { Ar as resolveModelRefFromString, At as AVATAR_MAX_BYTES, Cr as normalizeProviderId, Dn as applyMergePatch, Dr as resolveConfiguredModelRef, Fi as splitTrailingAuthProfile, Fn as resolveSlackNativeStreaming, Ft as isSupportedLocalAvatarExtension, G as writeConfigFile, Gn as resolveOwnerDisplaySetting, Gt as getConfigValueAtPath, Hn as resolveAgentMaxConcurrent, Ht as resetConfigOverrides, Ii as DEFAULT_CONTEXT_TOKENS, In as resolveSlackStreamingMode, J as TELEGRAM_COMMAND_NAME_PATTERN, Jn as listProfilesForProvider, Jt as unsetConfigValueAtPath, K as validateConfigObjectWithPlugins, Kt as parseConfigPath, Li as DEFAULT_MODEL, Mi as normalizeSecretInput, Mt as isAvatarHttpUrl, Nn as mapStreamingModeToSlackLegacyDraftStreamMode, Nr as resolveSubagentSpawnModelSelection, Or as resolveDefaultModelForAgent, Pn as resolveDiscordPreviewStreamMode, Pr as resolveThinkingDefault, Pt as isPathWithinRoot, Q as isInboundPathAllowed, Qr as retryAsync, Ri as DEFAULT_PROVIDER, U as resolveConfigSnapshotHash, Ut as setConfigOverride, V as readConfigFileSnapshot, Vn as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, Vt as getConfigOverrides, Wt as unsetConfigOverride, X as resolveTelegramCustomCommands, Y as normalizeTelegramCommandName, Yn as markAuthProfileGood, Zr as resolveRetryConfig, _i as resolveEnvApiKey, a as getSoonestCooldownExpiry, bi as getShellPathFromLoginShell, br as modelKey, c as markAuthProfileUsed, ci as buildAssistantMessage, cr as resolveWinClawAgentDir, d as resolveApiKeyForProfile, di as buildUsageWithNoCost, er as ensureAuthProfileStore, et as resolveIMessageAttachmentRoots, f as evaluateStoredCredentialEligibility, fi as getApiKeyForModel, gr as findNormalizedProviderValue, hi as resolveApiKeyForProvider, hr as buildModelAliasIndex, i as clearExpiredCooldowns, jr as resolveReasoningDefault, jt as isAvatarDataUrl, li as buildAssistantMessageWithZeroUsage, lr as withFileLock, mi as requireApiKey, mr as buildConfiguredAllowlistKeys, nn as buildEnforcedShellCommand, nt as normalizeScpRemoteHost, o as isProfileInCooldown, oi as OLLAMA_NATIVE_BASE_URL, p as resolveTokenExpiryState, pi as getCustomProviderApiKey, pr as buildAllowedModelSet, pt as parseDurationMs, qn as dedupeProfileIds, qt as setConfigValueAtPath, r as resolveAuthProfileOrder, rt as parseNonNegativeByteSize, s as markAuthProfileFailure, si as createOllamaStreamFn, sr as resolveAuthStorePathForDisplay, tt as resolveIMessageRemoteAttachmentRoots, u as resolveProfilesUnavailableReason, ui as buildStreamErrorAssistantMessage, vi as resolveModelAuthMode, xi as resolveShellEnvFallbackTimeoutMs, xr as normalizeModelRef$2, yr as isCliProvider, z as loadConfig, zi as resolveAuthProfileDisplayLabel, zt as validateJsonSchemaValue } from "./auth-profiles-DF0cLC20.js";
3
3
  import { t as formatCliCommand } from "./command-format-C2YuTuPp.js";
4
- import { D as filterBootstrapFilesForSession, E as ensureAgentWorkspace, M as resolveAgentModelFallbackValues, N as resolveAgentModelPrimaryValue, P as toAgentModelListLike, _ as DEFAULT_AGENT_WORKSPACE_DIR, a as resolveAgentDir, b as DEFAULT_IDENTITY_FILENAME, d as resolveDefaultAgentId, f as resolveEffectiveModelFallbacks, h as resolveSessionAgentIds, i as resolveAgentConfig, k as loadWorkspaceBootstrapFiles, l as resolveAgentSkillsFilter, m as resolveSessionAgentId, p as resolveRunModelFallbacksOverride, r as listAgentIds, t as hasConfiguredModelFallbacks, u as resolveAgentWorkspaceDir, v as DEFAULT_BOOTSTRAP_FILENAME } from "./agent-scope-D-i-vMLS.js";
4
+ import { D as filterBootstrapFilesForSession, E as ensureAgentWorkspace, M as resolveAgentModelFallbackValues, N as resolveAgentModelPrimaryValue, P as toAgentModelListLike, _ as DEFAULT_AGENT_WORKSPACE_DIR, a as resolveAgentDir, b as DEFAULT_IDENTITY_FILENAME, d as resolveDefaultAgentId, f as resolveEffectiveModelFallbacks, h as resolveSessionAgentIds, i as resolveAgentConfig, k as loadWorkspaceBootstrapFiles, l as resolveAgentSkillsFilter, m as resolveSessionAgentId, p as resolveRunModelFallbacksOverride, r as listAgentIds, t as hasConfiguredModelFallbacks, u as resolveAgentWorkspaceDir, v as DEFAULT_BOOTSTRAP_FILENAME } from "./agent-scope-Dany4R2i.js";
5
5
  import { D as resolveThreadParentSessionKey, E as parseAgentSessionKey, S as isAcpSessionKey, T as isSubagentSessionKey, _ as normalizeAccountId$2, b as deriveSessionChatType, c as normalizeAgentId, d as resolveThreadSessionKeys, f as sanitizeAgentId, g as DEFAULT_ACCOUNT_ID, i as buildAgentPeerSessionKey, l as normalizeMainKey, n as DEFAULT_MAIN_KEY, o as classifySessionKeyShape, p as scopedHeartbeatWakeOptions, r as buildAgentMainSessionKey, s as isValidAgentId, t as DEFAULT_AGENT_ID, u as resolveAgentIdFromSessionKey, v as normalizeOptionalAccountId, w as isCronSessionKey, x as getSubagentDepth, y as isBlockedObjectKey } from "./session-key-9-yI-GU_.js";
6
6
  import { C as sliceUtf16Safe, E as isPlainObject, S as sleep$1, T as truncateUtf16Safe, b as shortenHomeInString, c as escapeRegExp, p as normalizeE164, r as clampInt, t as CONFIG_DIR, u as isRecord$1, v as resolveUserPath, x as shortenHomePath } from "./utils-hiIKrqOK.js";
7
- import { a as openBoundaryFileSync, h as normalizeWindowsPathForComparison, i as openBoundaryFile, t as resolveWinClawPackageRoot } from "./winclaw-root-D0OUuGl7.js";
7
+ import { a as openBoundaryFileSync, h as normalizeWindowsPathForComparison, i as openBoundaryFile, t as resolveWinClawPackageRoot } from "./winclaw-root-DEqOOeOw.js";
8
8
  import { i as logWarn, n as logError, r as logInfo, t as logDebug } from "./logger-BcqRk323.js";
9
9
  import { n as runExec, r as spawnWithFallback, t as runCommandWithTimeout } from "./exec-CaapFZaD.js";
10
10
  import { E as triggerInternalHook, M as normalizeResolvedSecretInputString, S as matchPluginCommand, _ as normalizePluginHttpPath, b as getPluginCommandSpecs, c as normalizeChannelId$1, d as getActivePluginRegistryKey, g as createPluginRegistry, k as coerceSecretRef, m as setActivePluginRegistry, n as CHAT_CHANNEL_ORDER, p as requireActivePluginRegistry, s as normalizeAnyChannelId, u as getActivePluginRegistry, v as clearPluginCommands, w as createInternalHookEvent, x as listPluginCommands, y as executePluginCommand } from "./registry-BcRQUSsJ.js";
11
11
  import { a as saveJsonFile, i as loadJsonFile } from "./github-copilot-token-DHTToceK.js";
12
12
  import { n as isDangerousHostEnvVarName } from "./host-env-security-CIiLt2Mi.js";
13
13
  import { t as VERSION } from "./version-TiOyTfO4.js";
14
- import { a as safeStatSync, d as normalizePluginsConfig, f as resolveEffectiveEnableState, i as isPathInside, l as applyTestPluginDefaults, n as loadPluginManifestRegistry, p as resolveMemorySlotDecision, r as discoverWinClawPlugins } from "./manifest-registry-CI-UuKUO.js";
15
- import { a as resolveChannelGroupRequireMention, c as normalizeHyphenSlug, i as resolveChannelGroupPolicy, l as normalizeStringEntries, n as listChannelDocks, r as normalizeSignalMessagingTarget, s as normalizeAtHashSlug, t as getChannelDock, u as normalizeStringEntriesLower } from "./dock-ClcGZ0LV.js";
14
+ import { a as safeStatSync, d as normalizePluginsConfig, f as resolveEffectiveEnableState, i as isPathInside, l as applyTestPluginDefaults, n as loadPluginManifestRegistry, p as resolveMemorySlotDecision, r as discoverWinClawPlugins } from "./manifest-registry-_liSV_Vx.js";
15
+ import { a as resolveChannelGroupRequireMention, c as normalizeHyphenSlug, i as resolveChannelGroupPolicy, l as normalizeStringEntries, n as listChannelDocks, r as normalizeSignalMessagingTarget, s as normalizeAtHashSlug, t as getChannelDock, u as normalizeStringEntriesLower } from "./dock-C-w5XvOS.js";
16
16
  import { t as runTasksWithConcurrency } from "./run-with-concurrency-CzLnwXXV.js";
17
17
  import { n as recordCommandPoll, r as resetCommandPollCount } from "./command-poll-backoff-CBD1NkP5.js";
18
- import { i as buildModelAliasLines, n as resolveModel } from "./model-CXGHDOeN.js";
19
- import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-CibSv4gC.js";
20
- import { a as logMessageQueued, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, h as getDiagnosticSessionState, i as logMessageProcessed, l as logWebhookProcessed, m as isDiagnosticsEnabled, n as logLaneDequeue, o as logSessionStateChange, p as emitDiagnosticEvent, r as logLaneEnqueue, t as diag, u as logWebhookReceived } from "./diagnostic-DIPYflOJ.js";
21
- 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-BpN5EUZU.js";
22
- import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-9OJ1UBCd.js";
18
+ import { i as buildModelAliasLines, n as resolveModel } from "./model-C4J88Gi3.js";
19
+ import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-CgxnCHvU.js";
20
+ import { a as logMessageQueued, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, h as getDiagnosticSessionState, i as logMessageProcessed, l as logWebhookProcessed, m as isDiagnosticsEnabled, n as logLaneDequeue, o as logSessionStateChange, p as emitDiagnosticEvent, r as logLaneEnqueue, t as diag, u as logWebhookReceived } from "./diagnostic-BCcd-_zI.js";
21
+ 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-CFYm0xdh.js";
22
+ import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-BoydiaPL.js";
23
23
  import { a as isInternalMessageChannel, c as listDeliverableMessageChannels, d as resolveMessageChannel, h as GATEWAY_CLIENT_NAMES, i as isGatewayMessageChannel, l as normalizeMessageChannel, m as GATEWAY_CLIENT_MODES, n as isDeliverableMessageChannel, o as isMarkdownCapableMessageChannel, p as GATEWAY_CLIENT_IDS, t as INTERNAL_MESSAGE_CHANNEL, u as resolveGatewayMessageChannel } from "./message-channel-DINJBdD0.js";
24
- import { C as normalizeSessionDeliveryFields, D as capArrayByJsonBytes, E as archiveSessionTranscripts, F as parseInlineDirectives$1, G as resolveSessionResetPolicy, H as resolveSessionKey, J as DEFAULT_RESET_TRIGGERS, K as resolveSessionResetType, R as jsonUtf8Bytes, S as normalizeDeliveryContext, U as evaluateSessionFreshness, V as resolveSessionLockMaxHoldFromTimeout, W as resolveChannelResetConfig, X as resolveFreshSessionTotalTokens, Y as mergeSessionEntry, Z as setSessionRuntimeModel, _ as isCacheEnabled, a as resolveAndPersistSessionFile, at as resolveConversationLabel, b as deliveryContextKey, c as recordSessionMetaFromInbound, d as updateSessionStore, et as resolveExplicitAgentSessionKey, f as updateSessionStoreEntry, lt as resolveGroupSessionKey, n as parseSessionThreadInfo, o as loadSessionStore, q as resolveThreadFlag, r as appendAssistantMessageToSessionTranscript, rt as deriveSessionMetaPatch, s as readSessionUpdatedAt, t as extractDeliveryInfo, tt as resolveMainSessionKey, u as updateLastRoute, v as resolveCacheTtlMs$1, w as normalizeAccountId$3, x as mergeDeliveryContext, y as deliveryContextFromSession, z as acquireSessionWriteLock } from "./sessions-Cvvux3S6.js";
25
- import { A as normalizeDiscordToken, C as isWhatsAppGroupJid, D as listEnabledDiscordAccounts, S as resolveSlackBotToken, T as createDiscordActionGate, a as createTelegramActionGate, b as resolveSlackReplyToMode, h as listBindings, j as normalizeChatType, k as resolveDiscordAccount, l as resolveTelegramAccount, m as buildChannelAccountBindings, n as listChannelPlugins, o as listEnabledTelegramAccounts, r as normalizeChannelId$2, s as listTelegramAccountIds, t as getChannelPlugin, u as resolveTelegramToken, w as normalizeWhatsAppTarget, x as resolveSlackAppToken, y as resolveSlackAccount } from "./plugins-C1OgLvb4.js";
26
- import { _ as webAuthExists, c as logWebSelfId, i as resolveWhatsAppAccount, l as logoutWeb, p as readWebSelfId, s as getWebAuthAgeMs, y as resolveAccountEntry } from "./accounts-cYG8442L.js";
27
- import { r as resolveIMessageAccount } from "./accounts-CTJXIABG.js";
28
- import { i as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-CLKFSM00.js";
29
- import { a as resolveSlackWebClientOptions, c as buildSlackBlocksFallbackText, i as createSlackWebClient, l as parseSlackTarget, n as markdownToSlackMrkdwnChunks, o as parseSlackBlocksInput, r as normalizeSlackOutboundText, s as validateSlackBlocksArray, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-DTvtOsK3.js";
30
- import { $ as stripUndefinedFields, A as unpinMessageDiscord, At as resolveChannelEntryMatchWithFallback, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveDiscordSystemLocation, D as pinMessageDiscord, Dt as applyChannelMatchMeta, E as listThreadsDiscord, Et as fetchDiscord, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, Ot as buildChannelKeyCandidates, P as fetchChannelInfoDiscord, Q as sendDiscordText, R as kickMemberDiscord, S as deleteMessageDiscord, St as formatDiscordUserTag, T as listPinsDiscord, Tt as DiscordApiError, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendStickerDiscord, _t as resolveDiscordOwnerAllowFrom, a as sendDiscordComponentMessage, at as parseDiscordTarget, b as formatMention, bt as shouldEmitDiscordReactionNotification, c as parseDiscordComponentCustomId, ct as listDiscordDirectoryPeersLive, d as parseDiscordModalCustomIdForCarbon, dt as normalizeDiscordSlug, et as fetchChannelPermissionsDiscord, f as readDiscordComponentSpec, ft as resolveDiscordAllowListMatch, g as sendPollDiscord, gt as resolveDiscordOwnerAccess, h as sendMessageDiscord, ht as resolveDiscordMemberAccessState, i as removeReactionDiscord, it as createDiscordRestClient, j as addRoleDiscord, k as searchMessagesDiscord, kt as normalizeChannelSlug, l as parseDiscordComponentCustomIdForCarbon, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordModalEntry, mt as resolveDiscordGuildEntry, n as reactMessageDiscord, nt as chunkDiscordTextWithMode, o as createDiscordFormModal, ot as resolveDiscordChannelId, p as resolveDiscordComponentEntry, pt as resolveDiscordChannelConfigWithFallback, q as deleteChannelDiscord, r as removeOwnReactionsDiscord, rt as createDiscordClient, s as formatDiscordComponentEventText, st as listDiscordDirectoryGroupsLive, t as fetchReactionsDiscord, tt as hasAnyGuildPermissionDiscord, u as parseDiscordModalCustomId, ut as normalizeDiscordAllowList, v as sendVoiceMessageDiscord, vt as resolveDiscordShouldRequireMention, w as fetchMessageDiscord, wt as resolveTimestampMs, x as createThreadDiscord, xt as formatDiscordReactionEmoji, y as sendWebhookMessageDiscord, yt as resolveGroupDmAllow, z as listGuildChannelsDiscord } from "./send-3vnK2por.js";
24
+ import { C as normalizeSessionDeliveryFields, D as capArrayByJsonBytes, E as archiveSessionTranscripts, F as parseInlineDirectives$1, G as resolveSessionResetPolicy, H as resolveSessionKey, J as DEFAULT_RESET_TRIGGERS, K as resolveSessionResetType, R as jsonUtf8Bytes, S as normalizeDeliveryContext, U as evaluateSessionFreshness, V as resolveSessionLockMaxHoldFromTimeout, W as resolveChannelResetConfig, X as resolveFreshSessionTotalTokens, Y as mergeSessionEntry, Z as setSessionRuntimeModel, _ as isCacheEnabled, a as resolveAndPersistSessionFile, at as resolveConversationLabel, b as deliveryContextKey, c as recordSessionMetaFromInbound, d as updateSessionStore, et as resolveExplicitAgentSessionKey, f as updateSessionStoreEntry, lt as resolveGroupSessionKey, n as parseSessionThreadInfo, o as loadSessionStore, q as resolveThreadFlag, r as appendAssistantMessageToSessionTranscript, rt as deriveSessionMetaPatch, s as readSessionUpdatedAt, t as extractDeliveryInfo, tt as resolveMainSessionKey, u as updateLastRoute, v as resolveCacheTtlMs$1, w as normalizeAccountId$3, x as mergeDeliveryContext, y as deliveryContextFromSession, z as acquireSessionWriteLock } from "./sessions-BUNwVEqF.js";
25
+ import { A as normalizeDiscordToken, C as isWhatsAppGroupJid, D as listEnabledDiscordAccounts, S as resolveSlackBotToken, T as createDiscordActionGate, a as createTelegramActionGate, b as resolveSlackReplyToMode, h as listBindings, j as normalizeChatType, k as resolveDiscordAccount, l as resolveTelegramAccount, m as buildChannelAccountBindings, n as listChannelPlugins, o as listEnabledTelegramAccounts, r as normalizeChannelId$2, s as listTelegramAccountIds, t as getChannelPlugin, u as resolveTelegramToken, w as normalizeWhatsAppTarget, x as resolveSlackAppToken, y as resolveSlackAccount } from "./plugins-IFacUN_Q.js";
26
+ import { _ as webAuthExists, c as logWebSelfId, i as resolveWhatsAppAccount, l as logoutWeb, p as readWebSelfId, s as getWebAuthAgeMs, y as resolveAccountEntry } from "./accounts-BrWJjaKS.js";
27
+ import { r as resolveIMessageAccount } from "./accounts-8qwgz384.js";
28
+ import { i as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-BpS-Awr5.js";
29
+ import { a as resolveSlackWebClientOptions, c as buildSlackBlocksFallbackText, i as createSlackWebClient, l as parseSlackTarget, n as markdownToSlackMrkdwnChunks, o as parseSlackBlocksInput, r as normalizeSlackOutboundText, s as validateSlackBlocksArray, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-CM55Cnqy.js";
30
+ import { $ as stripUndefinedFields, A as unpinMessageDiscord, At as resolveChannelEntryMatchWithFallback, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveDiscordSystemLocation, D as pinMessageDiscord, Dt as applyChannelMatchMeta, E as listThreadsDiscord, Et as fetchDiscord, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, Ot as buildChannelKeyCandidates, P as fetchChannelInfoDiscord, Q as sendDiscordText, R as kickMemberDiscord, S as deleteMessageDiscord, St as formatDiscordUserTag, T as listPinsDiscord, Tt as DiscordApiError, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendStickerDiscord, _t as resolveDiscordOwnerAllowFrom, a as sendDiscordComponentMessage, at as parseDiscordTarget, b as formatMention, bt as shouldEmitDiscordReactionNotification, c as parseDiscordComponentCustomId, ct as listDiscordDirectoryPeersLive, d as parseDiscordModalCustomIdForCarbon, dt as normalizeDiscordSlug, et as fetchChannelPermissionsDiscord, f as readDiscordComponentSpec, ft as resolveDiscordAllowListMatch, g as sendPollDiscord, gt as resolveDiscordOwnerAccess, h as sendMessageDiscord, ht as resolveDiscordMemberAccessState, i as removeReactionDiscord, it as createDiscordRestClient, j as addRoleDiscord, k as searchMessagesDiscord, kt as normalizeChannelSlug, l as parseDiscordComponentCustomIdForCarbon, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordModalEntry, mt as resolveDiscordGuildEntry, n as reactMessageDiscord, nt as chunkDiscordTextWithMode, o as createDiscordFormModal, ot as resolveDiscordChannelId, p as resolveDiscordComponentEntry, pt as resolveDiscordChannelConfigWithFallback, q as deleteChannelDiscord, r as removeOwnReactionsDiscord, rt as createDiscordClient, s as formatDiscordComponentEventText, st as listDiscordDirectoryGroupsLive, t as fetchReactionsDiscord, tt as hasAnyGuildPermissionDiscord, u as parseDiscordModalCustomId, ut as normalizeDiscordAllowList, v as sendVoiceMessageDiscord, vt as resolveDiscordShouldRequireMention, w as fetchMessageDiscord, wt as resolveTimestampMs, x as createThreadDiscord, xt as formatDiscordReactionEmoji, y as sendWebhookMessageDiscord, yt as resolveGroupDmAllow, z as listGuildChannelsDiscord } from "./send-CFsJh6px.js";
31
31
  import { c as resolveStorePath, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, r as resolveSessionFilePathOptions, t as resolveDefaultSessionStorePath } from "./paths-ByCv35uy.js";
32
32
  import { i as normalizeInputProvenance, n as applyInputProvenanceToUserMessage, r as hasInterSessionUserProvenance } from "./input-provenance-CVQcfcqs.js";
33
- import { r as writeJsonAtomic } from "./json-files-kWpauJWO.js";
33
+ import { r as writeJsonAtomic } from "./json-files-D9ZHO8Ud.js";
34
34
  import { n as onSessionTranscriptUpdate, t as emitSessionTranscriptUpdate } from "./transcript-events-ByYgonIF.js";
35
- import { Ft as SESSION_LABEL_MAX_LENGTH, nn as loadOrCreateDeviceIdentity, t as GatewayClient } from "./client-DCxDsURZ.js";
36
- import { a as randomIdempotencyKey, f as resolveLeastPrivilegeOperatorScopesForMethod, n as callGateway, r as callGatewayLeastPrivilege, t as buildGatewayConnectionDetails } from "./call-BLyRfBMl.js";
37
- import { r as isLoopbackHost } from "./net-DQYHvbkN.js";
35
+ import { Ft as SESSION_LABEL_MAX_LENGTH, nn as loadOrCreateDeviceIdentity, t as GatewayClient } from "./client-jNFqrgw6.js";
36
+ import { a as randomIdempotencyKey, f as resolveLeastPrivilegeOperatorScopesForMethod, n as callGateway, r as callGatewayLeastPrivilege, t as buildGatewayConnectionDetails } from "./call-DEKH5GO9.js";
37
+ import { r as isLoopbackHost } from "./net-C7TXXUto.js";
38
38
  import { r as trimToUndefined, t as resolveGatewayCredentialsFromConfig } from "./credentials-D4_agdBB.js";
39
39
  import { a as stripSilentToken, i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-30uTrUKf.js";
40
- import { a as getMachineDisplayName, i as startBrowserControlServiceFromConfig, n as createBrowserRouteDispatcher, r as createBrowserControlContext, t as withTimeout$4 } from "./with-timeout-Cng0KnPd.js";
40
+ import { a as getMachineDisplayName, i as startBrowserControlServiceFromConfig, n as createBrowserRouteDispatcher, r as createBrowserControlContext, t as withTimeout$4 } from "./with-timeout-DJb5ULbL.js";
41
41
  import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-CRVHgtmO.js";
42
- import { A as initializeGlobalHookRunner, C as toInternalMessagePreprocessedContext, D as toPluginMessageReceivedEvent, E as toPluginMessageContext, O as fireAndForgetHook, S as deriveInboundMessageHookContext, T as toInternalMessageTranscribedContext, _ as createReplyToModeFilterForChannel, a as normalizeOutboundPayloadsForJson, b as normalizeChannelTargetInput, c as parseReplyDirectives, d as applyReplyThreading, f as filterMessagingToolDuplicates, g as shouldSuppressReasoningPayload, h as shouldSuppressMessagingToolReplies, i as normalizeOutboundPayloads, k as getGlobalHookRunner, l as splitMediaFromOutput, m as isRenderablePayload, o as normalizeReplyPayloadsForDelivery, p as filterMessagingToolMediaDuplicates, r as formatOutboundPayloadLog, s as throwIfAborted, t as deliverOutboundPayloads, u as applyReplyTagsToPayload, v as resolveReplyToMode, w as toInternalMessageReceivedContext, x as normalizeTargetForProvider, y as buildTargetResolverSignature } from "./deliver-BX-UVg7x.js";
42
+ import { A as initializeGlobalHookRunner, C as toInternalMessagePreprocessedContext, D as toPluginMessageReceivedEvent, E as toPluginMessageContext, O as fireAndForgetHook, S as deriveInboundMessageHookContext, T as toInternalMessageTranscribedContext, _ as createReplyToModeFilterForChannel, a as normalizeOutboundPayloadsForJson, b as normalizeChannelTargetInput, c as parseReplyDirectives, d as applyReplyThreading, f as filterMessagingToolDuplicates, g as shouldSuppressReasoningPayload, h as shouldSuppressMessagingToolReplies, i as normalizeOutboundPayloads, k as getGlobalHookRunner, l as splitMediaFromOutput, m as isRenderablePayload, o as normalizeReplyPayloadsForDelivery, p as filterMessagingToolMediaDuplicates, r as formatOutboundPayloadLog, s as throwIfAborted, t as deliverOutboundPayloads, u as applyReplyTagsToPayload, v as resolveReplyToMode, w as toInternalMessageReceivedContext, x as normalizeTargetForProvider, y as buildTargetResolverSignature } from "./deliver-CqiBzHnh.js";
43
43
  import { i as resolveTelegramTargetChatType, r as parseTelegramTarget } from "./targets-yNRgpXkX.js";
44
- 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-eFMqXMDE.js";
45
- import { A as describeReplyTarget, B as resolveTelegramStreamMode, C as buildSenderLabel, D as buildTelegramParentPeer, E as buildTelegramGroupPeerId, F as resolveTelegramDirectPeerId, G as resolveSenderAllowMatch$1, H as isSenderAllowed$1, I as resolveTelegramForumThreadId, J as isVoiceCompatibleAudio, K as formatLocationText, L as resolveTelegramGroupAllowFromContext, M as extractTelegramLocation, N as hasBotMention, O as buildTelegramThreadParams, P as normalizeForwardedContext, R as resolveTelegramMediaPlaceholder, S as buildGroupLabel, T as buildTelegramGroupFrom, U as normalizeAllowFrom$2, V as resolveTelegramThreadSpec, W as normalizeDmAllowFromWithStore$1, _ as splitTelegramCaption, a as reactMessageTelegram, b as resolveCronStorePath, c as sendStickerTelegram, d as isRecoverableTelegramNetworkError, f as markdownToTelegramChunks, g as resolveTelegramFetch, h as wrapFileReferencesInHtml, i as editMessageTelegram, j as expandTextLinks, k as buildTypingThreadParams, l as resolveTelegramVoiceSend, m as renderTelegramHtmlText, n as createForumTopicTelegram, o as sendMessageTelegram, p as markdownToTelegramHtml, q as toLocationContext, r as deleteMessageTelegram, s as sendPollTelegram, t as buildInlineKeyboard, u as wasSentByBot, v as withTelegramApiErrorLogging, w as buildSenderName, y as loadCronStore, z as resolveTelegramReplyId } from "./send-Bz5LPBFx.js";
46
- import { A as isTransientHttpError$1, B as resolveBootstrapTotalMaxChars, C as isCompactionFailureError, D as isLikelyContextOverflowError, E as isFailoverErrorMessage, F as isTimeoutErrorMessage, I as buildBootstrapContextFiles, L as ensureSessionHeader, M as parseImageSizeError, N as sanitizeUserFacingText, O as isRateLimitAssistantError, P as isAuthPermanentErrorMessage, R as resolveBootstrapMaxChars, S as isCloudCodeAssistFormatError, T as isFailoverAssistantError, V as sanitizeGoogleTurnOrdering, _ as formatBillingErrorMessage, a as isMessagingToolDuplicateNormalized, b as isAuthAssistantError, c as extractToolCallsFromAssistant, d as downgradeOpenAIFunctionCallReasoningPairs, f as downgradeOpenAIReasoningBlocks, g as formatAssistantErrorText, h as classifyFailoverReason, j as parseImageDimensionError, k as isRawApiErrorPayload, l as extractToolResultId, m as BILLING_ERROR_USER_MESSAGE, n as validateGeminiTurns, o as normalizeTextForComparison, p as isGoogleModelApi, r as pickFallbackThinkingLevel, s as sanitizeSessionMessagesImages, t as validateAnthropicTurns, u as sanitizeToolCallIdsForCloudCodeAssist, v as formatRawAssistantErrorForUi, w as isContextOverflowError, x as isBillingAssistantError, y as getApiErrorPayloadFingerprint, z as resolveBootstrapPromptTruncationWarningMode } from "./pi-embedded-helpers-BWpzwT6B.js";
47
- import { C as resolveToolProfilePolicy, S as normalizeToolName, T as matchesAnyGlobPattern, _ as collectExplicitAllowlist, a as ensureSandboxWorkspaceForSession, b as stripPluginOnlyAllowlist, c as resolveSandboxRuntimeStatus, d as getBridgeAuthForPort, f as resolveSandboxConfigForAgent, g as buildPluginToolGroups, h as applyOwnerOnlyToolPolicy, o as resolveSandboxContext, v as expandPolicyWithPluginGroups, w as compileGlobPatterns, y as mergeAlsoAllowPolicy } from "./sandbox-D19lOCVP.js";
48
- import { j as DEFAULT_AI_SNAPSHOT_MAX_CHARS } from "./chrome-RAfAR4xV.js";
49
- import { c as resolveBrowserControlAuth, i as resolveBrowserConfig } from "./server-context-FT_S05Zu.js";
50
- import { i as resolveExistingPathsWithinRoot, r as DEFAULT_UPLOAD_DIR } from "./paths-C5mR1YC-.js";
44
+ 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-DWGnyTvC.js";
45
+ import { A as describeReplyTarget, B as resolveTelegramStreamMode, C as buildSenderLabel, D as buildTelegramParentPeer, E as buildTelegramGroupPeerId, F as resolveTelegramDirectPeerId, G as resolveSenderAllowMatch$1, H as isSenderAllowed$1, I as resolveTelegramForumThreadId, J as isVoiceCompatibleAudio, K as formatLocationText, L as resolveTelegramGroupAllowFromContext, M as extractTelegramLocation, N as hasBotMention, O as buildTelegramThreadParams, P as normalizeForwardedContext, R as resolveTelegramMediaPlaceholder, S as buildGroupLabel, T as buildTelegramGroupFrom, U as normalizeAllowFrom$2, V as resolveTelegramThreadSpec, W as normalizeDmAllowFromWithStore$1, _ as splitTelegramCaption, a as reactMessageTelegram, b as resolveCronStorePath, c as sendStickerTelegram, d as isRecoverableTelegramNetworkError, f as markdownToTelegramChunks, g as resolveTelegramFetch, h as wrapFileReferencesInHtml, i as editMessageTelegram, j as expandTextLinks, k as buildTypingThreadParams, l as resolveTelegramVoiceSend, m as renderTelegramHtmlText, n as createForumTopicTelegram, o as sendMessageTelegram, p as markdownToTelegramHtml, q as toLocationContext, r as deleteMessageTelegram, s as sendPollTelegram, t as buildInlineKeyboard, u as wasSentByBot, v as withTelegramApiErrorLogging, w as buildSenderName, y as loadCronStore, z as resolveTelegramReplyId } from "./send-D7wKzeqg.js";
46
+ import { A as isTransientHttpError$1, B as resolveBootstrapTotalMaxChars, C as isCompactionFailureError, D as isLikelyContextOverflowError, E as isFailoverErrorMessage, F as isTimeoutErrorMessage, I as buildBootstrapContextFiles, L as ensureSessionHeader, M as parseImageSizeError, N as sanitizeUserFacingText, O as isRateLimitAssistantError, P as isAuthPermanentErrorMessage, R as resolveBootstrapMaxChars, S as isCloudCodeAssistFormatError, T as isFailoverAssistantError, V as sanitizeGoogleTurnOrdering, _ as formatBillingErrorMessage, a as isMessagingToolDuplicateNormalized, b as isAuthAssistantError, c as extractToolCallsFromAssistant, d as downgradeOpenAIFunctionCallReasoningPairs, f as downgradeOpenAIReasoningBlocks, g as formatAssistantErrorText, h as classifyFailoverReason, j as parseImageDimensionError, k as isRawApiErrorPayload, l as extractToolResultId, m as BILLING_ERROR_USER_MESSAGE, n as validateGeminiTurns, o as normalizeTextForComparison, p as isGoogleModelApi, r as pickFallbackThinkingLevel, s as sanitizeSessionMessagesImages, t as validateAnthropicTurns, u as sanitizeToolCallIdsForCloudCodeAssist, v as formatRawAssistantErrorForUi, w as isContextOverflowError, x as isBillingAssistantError, y as getApiErrorPayloadFingerprint, z as resolveBootstrapPromptTruncationWarningMode } from "./pi-embedded-helpers-Be8qWeKb.js";
47
+ import { C as resolveToolProfilePolicy, S as normalizeToolName, T as matchesAnyGlobPattern, _ as collectExplicitAllowlist, a as ensureSandboxWorkspaceForSession, b as stripPluginOnlyAllowlist, c as resolveSandboxRuntimeStatus, d as getBridgeAuthForPort, f as resolveSandboxConfigForAgent, g as buildPluginToolGroups, h as applyOwnerOnlyToolPolicy, o as resolveSandboxContext, v as expandPolicyWithPluginGroups, w as compileGlobPatterns, y as mergeAlsoAllowPolicy } from "./sandbox-CDjV0Crv.js";
48
+ import { j as DEFAULT_AI_SNAPSHOT_MAX_CHARS } from "./chrome-BDFA9lPV.js";
49
+ import { c as resolveBrowserControlAuth, i as resolveBrowserConfig } from "./server-context-DdGwcBos.js";
50
+ import { i as resolveExistingPathsWithinRoot, r as DEFAULT_UPLOAD_DIR } from "./paths-BVQ0udwc.js";
51
51
  import { a as testRegexWithBoundedInput, i as compileSafeRegex, n as redactSensitiveText } from "./redact-D1OBirZT.js";
52
52
  import { i as formatUncaughtError, r as formatErrorMessage, s as readErrorName } from "./errors-Dt_4okVn.js";
53
- import { i as openFileWithinRoot, l as writeFileWithinRoot, n as copyFileWithinRoot, o as readFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-Dha0DfFC.js";
54
- import { a as isBlockedHostnameOrIp, c as normalizeHostname, n as SsrFBlockedError } from "./proxy-env-B7GwrH5p.js";
55
- import { i as saveMediaBuffer, r as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-LSg8jeyh.js";
56
- import { i as resolveLsofCommandSync } from "./ports-CfOim1GC.js";
57
- import { a as canonicalizeBase64, i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, o as estimateBase64DecodedBytes, r as sanitizeToolResultImages } from "./tool-images-Cp3hNFNZ.js";
53
+ import { i as openFileWithinRoot, l as writeFileWithinRoot, n as copyFileWithinRoot, o as readFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-B8J4dv27.js";
54
+ import { a as isBlockedHostnameOrIp, c as normalizeHostname, n as SsrFBlockedError } from "./proxy-env-Bx8OhutV.js";
55
+ import { i as saveMediaBuffer, r as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-Dgl-neCe.js";
56
+ import { i as resolveLsofCommandSync } from "./ports-DqZBwUsy.js";
57
+ import { a as canonicalizeBase64, i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, o as estimateBase64DecodedBytes, r as sanitizeToolResultImages } from "./tool-images-DbchBdq5.js";
58
58
  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-BxCyPtl0.js";
59
- import { t as ensureWinClawModelsJson } from "./models-config-DYJ-p9kt.js";
60
- import { n as evaluateShellAllowlist, r as resolveAllowAlwaysPatterns } from "./exec-approvals-allowlist-B5ZdMbz6.js";
61
- import { n as resolveExecSafeBinRuntimePolicy, r as resolveMergedSafeBinProfileFixtures } from "./exec-safe-bin-runtime-policy-CB8atBLm.js";
62
- import { n as loadModelCatalog, r as modelSupportsVision, t as findModelInCatalog } from "./model-catalog-08ftNXDk.js";
63
- import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit, t as MediaFetchError } from "./fetch-CdvuNDFE.js";
64
- import { a as resolveAutoImageModel, c as applyTemplate, d as normalizeMediaUnderstandingChatType, f as resolveMediaUnderstandingScope, g as registerUnhandledRejectionHandler, i as normalizeMediaAttachments, l as resolveConcurrency, m as buildRandomTempFilePath, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, p as CLI_OUTPUT_MAX_BUFFER, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as resolveTimeoutMs$1, v as resolveAttachmentKind } from "./audio-transcription-runner-DGZYB2Wq.js";
59
+ import { t as ensureWinClawModelsJson } from "./models-config-CJq2ywhf.js";
60
+ import { n as evaluateShellAllowlist, r as resolveAllowAlwaysPatterns } from "./exec-approvals-allowlist-BkdJCc3F.js";
61
+ import { n as resolveExecSafeBinRuntimePolicy, r as resolveMergedSafeBinProfileFixtures } from "./exec-safe-bin-runtime-policy-C5pAgyiz.js";
62
+ import { n as loadModelCatalog, r as modelSupportsVision, t as findModelInCatalog } from "./model-catalog-BYxSwIkt.js";
63
+ import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit, t as MediaFetchError } from "./fetch-BwrGQrFL.js";
64
+ import { a as resolveAutoImageModel, c as applyTemplate, d as normalizeMediaUnderstandingChatType, f as resolveMediaUnderstandingScope, g as registerUnhandledRejectionHandler, i as normalizeMediaAttachments, l as resolveConcurrency, m as buildRandomTempFilePath, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, p as CLI_OUTPUT_MAX_BUFFER, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as resolveTimeoutMs$1, v as resolveAttachmentKind } from "./audio-transcription-runner-nnwJufig.js";
65
65
  import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-B3GDS_vc.js";
66
- import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-D-W6TRJN.js";
67
- import { _ as stripReasoningTagsFromText, a as resolveProviderVisionModelFromConfig, b as extractTextFromChatContent, c as extractThinkingFromTaggedStream, d as inferToolMetaFromArgs, f as isAssistantMessage, g as stripThinkingTagsFromText, h as stripMinimaxToolCallXml, i as decodeDataUrl, l as extractThinkingFromTaggedText, m as stripDowngradedToolCallText, n as coerceImageAssistantText, o as extractAssistantText$1, p as promoteThinkingTagsToBlocks, r as coerceImageModelConfig, s as extractAssistantThinking, u as formatReasoningMessage, v as findCodeRegions, x as minimaxUnderstandImage, y as isInsideCode } from "./image-EjGWXbei.js";
66
+ import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-CHht1LfT.js";
67
+ import { _ as stripReasoningTagsFromText, a as resolveProviderVisionModelFromConfig, b as extractTextFromChatContent, c as extractThinkingFromTaggedStream, d as inferToolMetaFromArgs, f as isAssistantMessage, g as stripThinkingTagsFromText, h as stripMinimaxToolCallXml, i as decodeDataUrl, l as extractThinkingFromTaggedText, m as stripDowngradedToolCallText, n as coerceImageAssistantText, o as extractAssistantText$1, p as promoteThinkingTagsToBlocks, r as coerceImageModelConfig, s as extractAssistantThinking, u as formatReasoningMessage, v as findCodeRegions, x as minimaxUnderstandImage, y as isInsideCode } from "./image-Dpt9TurJ.js";
68
68
  import { n as formatToolSummary, r as resolveToolDisplay } from "./tool-display-DRwMjyJE.js";
69
69
  import { t as makeProxyFetch } from "./proxy-fetch-BqEHARvZ.js";
70
- import { _ as isSafeFenceBreak, a as loadWebMedia, c as chunkByNewline, d as chunkMarkdownTextWithMode, f as chunkText, g as findFenceSpanAt, h as resolveTextChunkLimit, i as getDefaultLocalRoots, m as resolveChunkMode, p as chunkTextWithMode, s as resolveMarkdownTableMode, u as chunkMarkdownText, v as parseFenceSpans } from "./ir-CJPPU4LU.js";
71
- import { a as ToolInputError, c as imageResultFromFile, d as readNumberParam, f as readReactionParams, h as readStringParam, l as jsonResult, m as readStringOrNumberParam, n as missingTargetError, o as createActionGate, p as readStringArrayParam, r as unknownTargetError, s as imageResult, t as ambiguousTargetError, u as parseAvailableTags } from "./target-errors-HJQQHC3B.js";
72
- import { a as resolveNativeSkillsEnabled, i as resolveNativeCommandsEnabled, n as isNativeCommandsExplicitlyDisabled, r as isRestartEnabled, t as isCommandFlagEnabled } from "./commands-4mnxaSoA.js";
73
- import { a as listChatCommandsForConfig, c as maybeResolveTextAlias, d as resolveCommandArgChoices, f as resolveCommandArgMenu, i as listChatCommands, l as normalizeCommandBody, m as shouldHandleTextCommands, n as findCommandByNativeName, o as listNativeCommandSpecs, p as serializeCommandArgs, r as isCommandEnabled, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as parseCommandArgs } from "./commands-registry-h5KiQe_S.js";
70
+ import { _ as isSafeFenceBreak, a as loadWebMedia, c as chunkByNewline, d as chunkMarkdownTextWithMode, f as chunkText, g as findFenceSpanAt, h as resolveTextChunkLimit, i as getDefaultLocalRoots, m as resolveChunkMode, p as chunkTextWithMode, s as resolveMarkdownTableMode, u as chunkMarkdownText, v as parseFenceSpans } from "./ir-B-FffSKU.js";
71
+ import { a as ToolInputError, c as imageResultFromFile, d as readNumberParam, f as readReactionParams, h as readStringParam, l as jsonResult, m as readStringOrNumberParam, n as missingTargetError, o as createActionGate, p as readStringArrayParam, r as unknownTargetError, s as imageResult, t as ambiguousTargetError, u as parseAvailableTags } from "./target-errors-Bd8kj4z9.js";
72
+ import { a as resolveNativeSkillsEnabled, i as resolveNativeCommandsEnabled, n as isNativeCommandsExplicitlyDisabled, r as isRestartEnabled, t as isCommandFlagEnabled } from "./commands-DmBkhPD-.js";
73
+ import { a as listChatCommandsForConfig, c as maybeResolveTextAlias, d as resolveCommandArgChoices, f as resolveCommandArgMenu, i as listChatCommands, l as normalizeCommandBody, m as shouldHandleTextCommands, n as findCommandByNativeName, o as listNativeCommandSpecs, p as serializeCommandArgs, r as isCommandEnabled, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as parseCommandArgs } from "./commands-registry-BB289Bg8.js";
74
74
  import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-D7LmzGoN.js";
75
75
  import { n as formatTimeAgo } from "./format-relative-TyajjYxu.js";
76
- 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-Kslw_Wa0.js";
76
+ 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-CI0hWzZk.js";
77
77
  import { d as resolveExecApprovals, f as resolveExecApprovalsFromFile, i as maxAsk, l as recordAllowlistUse, n as addAllowlistEntry, o as minSecurity, u as requiresExecApproval } from "./exec-approvals-DJQZoZxK.js";
78
- 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-CL-8raxt.js";
78
+ 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-B6QVlwKO.js";
79
79
  import { t as killProcessTree$1 } from "./kill-tree-N_tCnsPC.js";
80
- import { t as formatExecCommand } from "./system-run-command-Ft0meR8i.js";
80
+ import { t as formatExecCommand } from "./system-run-command-CUMrwy8H.js";
81
81
  import { i as parsePairingList, n as resolveNodeIdFromNodeList, r as parseNodeList, t as resolveNodeFromNodeList } from "./node-resolve-D7OaQC18.js";
82
82
  import { i as formatDurationSeconds, r as formatDurationPrecise, t as formatDurationCompact$1 } from "./format-duration-DLCmyMPh.js";
83
- import { a as loadCombinedSessionStoreForGateway, d as resolveContextTokensForModel, f as computeBackoff, p as sleepWithAbort, u as lookupContextTokens } from "./session-utils-CTpXGSxL.js";
83
+ import { a as loadCombinedSessionStoreForGateway, d as resolveContextTokensForModel, f as computeBackoff, p as sleepWithAbort, u as lookupContextTokens } from "./session-utils-DqzU9P2d.js";
84
84
  import { c as hasNonzeroUsage, l as makeZeroUsageSnapshot, n as loadCostUsageSummary, o as derivePromptTokens, r as loadSessionCostSummary, s as deriveSessionTotalTokens, u as normalizeUsage } from "./session-cost-usage-Bv0xEXGE.js";
85
85
  import { i as resolveModelCostConfig, n as formatTokenCount$2, r as formatUsd, t as estimateUsageCost } from "./usage-format-rxT5cEAf.js";
86
- import { a as getRemoteSkillEligibility, b as getSkillsSnapshotVersion, i as resolveSkillCommandInvocation, n as listSkillCommandsForAgents, r as listSkillCommandsForWorkspace, t as listReservedChatSlashCommandNames, y as ensureSkillsWatcher } from "./skill-commands-CzaT61kL.js";
87
- import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-CPWF8YR5.js";
86
+ import { a as getRemoteSkillEligibility, b as getSkillsSnapshotVersion, i as resolveSkillCommandInvocation, n as listSkillCommandsForAgents, r as listSkillCommandsForWorkspace, t as listReservedChatSlashCommandNames, y as ensureSkillsWatcher } from "./skill-commands-BlmjGaIe.js";
87
+ import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-D03SwGPA.js";
88
88
  import { t as buildOutboundMediaLoadOptions } from "./load-options-BgtwR0C2.js";
89
89
  import { n as normalizePollInput } from "./polls-DKYugoIe.js";
90
- import { t as convertMarkdownTables } from "./tables-B6p8P9wY.js";
90
+ import { t as convertMarkdownTables } from "./tables-Bjpb4vEC.js";
91
91
  import { f as resolveGatewaySystemdServiceName, l as resolveGatewayLaunchAgentLabel } from "./constants-DgixEexA.js";
92
92
  import { i as parseAbsoluteTimeMs, r as resolveDefaultCronStaggerMs, t as normalizeCronStaggerMs } from "./stagger-CT5G1TCV.js";
93
- import { n as resolveMessageChannelSelection, t as listConfiguredMessageChannels } from "./channel-selection-5G2iw3CB.js";
94
- import { t as applyPluginAutoEnable } from "./plugin-auto-enable-DnSZLbIH.js";
95
- import { a as signalCheck, i as resolveSignalRpcContext, n as sendReadReceiptSignal, o as signalRpcRequest, r as sendTypingSignal, s as streamSignalEvents, t as sendMessageSignal } from "./send-CEgqE2b1.js";
96
- import { a as isAllowedIMessageSender, i as formatIMessageChatTarget, n as createIMessageRpcClient, o as normalizeIMessageHandle, r as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, s as parseIMessageTarget, t as sendMessageIMessage } from "./send-DR5zNR-6.js";
93
+ import { n as resolveMessageChannelSelection, t as listConfiguredMessageChannels } from "./channel-selection-Bke39fer.js";
94
+ import { t as applyPluginAutoEnable } from "./plugin-auto-enable-Crpu18wt.js";
95
+ import { a as signalCheck, i as resolveSignalRpcContext, n as sendReadReceiptSignal, o as signalRpcRequest, r as sendTypingSignal, s as streamSignalEvents, t as sendMessageSignal } from "./send-DUJqLDEQ.js";
96
+ import { a as isAllowedIMessageSender, i as formatIMessageChatTarget, n as createIMessageRpcClient, o as normalizeIMessageHandle, r as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, s as parseIMessageTarget, t as sendMessageIMessage } from "./send-BTQQeOIu.js";
97
97
  import { n as isSenderIdAllowed, r as mergeDmAllowFromSources, t as firstDefined$1 } from "./allow-from-Cdp2QhmS.js";
98
98
  import { t as parseTimeoutMs } from "./parse-timeout-8ROOCBsU.js";
99
99
  import { i as redactIdentifier, t as getActiveWebListener } from "./active-listener-Cgm4TgO4.js";
100
- import { a as resolveSubagentToolPolicy, c as readStoreAllowFromForDmPolicy, d as resolveDmGroupAccessWithLists, f as resolvePinnedMainDmOwnerFromAllowlist, i as resolveGroupToolPolicy, m as resolveControlCommandGate, n as isToolAllowedByPolicies, p as resolveCommandAuthorizedFromAuthorizers, r as resolveEffectiveToolPolicy, s as DM_GROUP_ACCESS_REASON, t as filterToolsByPolicy } from "./pi-tools.policy-BqpmC_c4.js";
100
+ import { a as resolveSubagentToolPolicy, c as readStoreAllowFromForDmPolicy, d as resolveDmGroupAccessWithLists, f as resolvePinnedMainDmOwnerFromAllowlist, i as resolveGroupToolPolicy, m as resolveControlCommandGate, n as isToolAllowedByPolicies, p as resolveCommandAuthorizedFromAuthorizers, r as resolveEffectiveToolPolicy, s as DM_GROUP_ACCESS_REASON, t as filterToolsByPolicy } from "./pi-tools.policy-DGbCC2Ji.js";
101
101
  import { n as isDangerousNameMatchingEnabled } from "./dangerous-name-matching-PRkNIyQj.js";
102
- import { s as resolveCommandSecretRefsViaGateway, t as getAgentRuntimeCommandSecretTargetIds } from "./command-secret-targets-BfqkoJyp.js";
103
- import { r as detectBinary } from "./onboard-helpers-7lOdCHhD.js";
104
- import { t as resolvePairingIdLabel } from "./pairing-labels-e3Pnen1C.js";
105
- import { i as resolveMemoryBackendConfig, n as registerMemoryCli, r as getMemorySearchManager } from "./memory-cli-C2Yq9ryD.js";
106
- import { r as resolveMemorySearchConfig } from "./manager-f6tniCBN.js";
102
+ import { s as resolveCommandSecretRefsViaGateway, t as getAgentRuntimeCommandSecretTargetIds } from "./command-secret-targets-Dd4qCPSg.js";
103
+ import { r as detectBinary } from "./onboard-helpers-Djj9SkyR.js";
104
+ import { t as resolvePairingIdLabel } from "./pairing-labels-Ev8O2qBX.js";
105
+ import { i as resolveMemoryBackendConfig, n as registerMemoryCli, r as getMemorySearchManager } from "./memory-cli-BgZK6A-T.js";
106
+ import { r as resolveMemorySearchConfig } from "./manager-2Wice7pq.js";
107
107
  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-Bs0PeDpo.js";
108
108
  import { createRequire } from "node:module";
109
109
  import { execFileSync, spawn, spawnSync } from "node:child_process";
@@ -113,7 +113,7 @@ import path, { isAbsolute } from "node:path";
113
113
  import fs, { createWriteStream, existsSync, mkdirSync, mkdtempSync, promises, readFileSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
114
114
  import JSON5 from "json5";
115
115
  import { inspect } from "node:util";
116
- import fsPromises, { appendFile, mkdir } from "node:fs/promises";
116
+ import fs$1, { appendFile, mkdir } from "node:fs/promises";
117
117
  import { complete, completeSimple, createAssistantMessageEventStream, streamSimple } from "@mariozechner/pi-ai";
118
118
  import crypto, { createHash, createHmac, randomBytes, randomUUID } from "node:crypto";
119
119
  import { CURRENT_SESSION_VERSION, DefaultResourceLoader, SessionManager, SettingsManager, codingTools, createAgentSession, createEditTool, createReadTool, createWriteTool, estimateTokens, generateSummary, readTool } from "@mariozechner/pi-coding-agent";
@@ -5161,7 +5161,7 @@ async function resolveAgentSessionDirs(stateDir) {
5161
5161
  const agentsDir = path.join(stateDir, "agents");
5162
5162
  let entries = [];
5163
5163
  try {
5164
- entries = await fsPromises.readdir(agentsDir, { withFileTypes: true });
5164
+ entries = await fs$1.readdir(agentsDir, { withFileTypes: true });
5165
5165
  } catch (err) {
5166
5166
  if (err.code === "ENOENT") return [];
5167
5167
  throw err;
@@ -8294,7 +8294,7 @@ async function runWithConcurrency(tasks, limit) {
8294
8294
  //#region src/media-understanding/echo-transcript.ts
8295
8295
  let deliverRuntimePromise$2 = null;
8296
8296
  function loadDeliverRuntime$2() {
8297
- deliverRuntimePromise$2 ??= import("./deliver-runtime-Co5o7uv0.js");
8297
+ deliverRuntimePromise$2 ??= import("./deliver-runtime-DJsAB9LW.js");
8298
8298
  return deliverRuntimePromise$2;
8299
8299
  }
8300
8300
  const DEFAULT_ECHO_TRANSCRIPT_FORMAT = "📝 \"{transcript}\"";
@@ -13131,7 +13131,7 @@ async function resolveSandboxWorkdir(params) {
13131
13131
  cwd: process.cwd(),
13132
13132
  root: params.sandbox.workspaceDir
13133
13133
  });
13134
- if (!(await fsPromises.stat(resolved.resolved)).isDirectory()) throw new Error("workdir is not a directory");
13134
+ if (!(await fs$1.stat(resolved.resolved)).isDirectory()) throw new Error("workdir is not a directory");
13135
13135
  const relative = resolved.relative ? resolved.relative.split(path.sep).join(path.posix.sep) : "";
13136
13136
  const containerWorkdir = relative ? path.posix.join(params.sandbox.containerWorkdir, relative) : params.sandbox.containerWorkdir;
13137
13137
  return {
@@ -14375,13 +14375,13 @@ async function validateScriptFileForShellBleed(params) {
14375
14375
  cwd: params.workdir,
14376
14376
  root: params.workdir
14377
14377
  });
14378
- stat = await fsPromises.stat(absPath);
14378
+ stat = await fs$1.stat(absPath);
14379
14379
  } catch {
14380
14380
  return;
14381
14381
  }
14382
14382
  if (!stat.isFile()) return;
14383
14383
  if (stat.size > 512 * 1024) return;
14384
- const content = await fsPromises.readFile(absPath, "utf-8");
14384
+ const content = await fs$1.readFile(absPath, "utf-8");
14385
14385
  const first = /\$[A-Z_][A-Z0-9_]{1,}/g.exec(content);
14386
14386
  if (first) {
14387
14387
  const idx = first.index;
@@ -23825,7 +23825,7 @@ function normalizeReplyPayload(payload, opts = {}) {
23825
23825
  */
23826
23826
  let deliverRuntimePromise$1 = null;
23827
23827
  function loadDeliverRuntime$1() {
23828
- deliverRuntimePromise$1 ??= import("./deliver-runtime-Co5o7uv0.js");
23828
+ deliverRuntimePromise$1 ??= import("./deliver-runtime-DJsAB9LW.js");
23829
23829
  return deliverRuntimePromise$1;
23830
23830
  }
23831
23831
  /**
@@ -23949,7 +23949,7 @@ async function emitResetCommandHooks(params) {
23949
23949
  try {
23950
23950
  const messages = [];
23951
23951
  if (sessionFile) {
23952
- const content = await fsPromises.readFile(sessionFile, "utf-8");
23952
+ const content = await fs$1.readFile(sessionFile, "utf-8");
23953
23953
  for (const line of content.split("\n")) {
23954
23954
  if (!line.trim()) continue;
23955
23955
  try {
@@ -24778,7 +24778,7 @@ async function createModelSelectionState(params) {
24778
24778
  }
24779
24779
  }
24780
24780
  if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
24781
- const { ensureAuthProfileStore } = await import("./auth-profiles-CmoHF97e.js").then((n) => n.t);
24781
+ const { ensureAuthProfileStore } = await import("./auth-profiles-DF0cLC20.js").then((n) => n.t);
24782
24782
  const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
24783
24783
  const providerKey = normalizeProviderId(provider);
24784
24784
  if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
@@ -28375,7 +28375,7 @@ async function readJsonlFromPath(jsonlPath) {
28375
28375
  if (shouldLogVerbose()) logVerbose(`Blocked canvas jsonlPath outside allowed roots: ${resolved}`);
28376
28376
  throw new Error("jsonlPath outside allowed roots");
28377
28377
  }
28378
- const canonical = await fsPromises.realpath(resolved).catch(() => resolved);
28378
+ const canonical = await fs$1.realpath(resolved).catch(() => resolved);
28379
28379
  if (!isInboundPathAllowed({
28380
28380
  filePath: canonical,
28381
28381
  roots
@@ -28383,7 +28383,7 @@ async function readJsonlFromPath(jsonlPath) {
28383
28383
  if (shouldLogVerbose()) logVerbose(`Blocked canvas jsonlPath outside allowed roots: ${canonical}`);
28384
28384
  throw new Error("jsonlPath outside allowed roots");
28385
28385
  }
28386
- return await fsPromises.readFile(canonical, "utf8");
28386
+ return await fs$1.readFile(canonical, "utf8");
28387
28387
  }
28388
28388
  const CanvasToolSchema = Type.Object({
28389
28389
  action: stringEnum(CANVAS_ACTIONS),
@@ -29198,27 +29198,27 @@ function resolveRestartSentinelPath(env = process.env) {
29198
29198
  }
29199
29199
  async function writeRestartSentinel(payload, env = process.env) {
29200
29200
  const filePath = resolveRestartSentinelPath(env);
29201
- await fsPromises.mkdir(path.dirname(filePath), { recursive: true });
29201
+ await fs$1.mkdir(path.dirname(filePath), { recursive: true });
29202
29202
  const data = {
29203
29203
  version: 1,
29204
29204
  payload
29205
29205
  };
29206
- await fsPromises.writeFile(filePath, `${JSON.stringify(data, null, 2)}\n`, "utf-8");
29206
+ await fs$1.writeFile(filePath, `${JSON.stringify(data, null, 2)}\n`, "utf-8");
29207
29207
  return filePath;
29208
29208
  }
29209
29209
  async function readRestartSentinel(env = process.env) {
29210
29210
  const filePath = resolveRestartSentinelPath(env);
29211
29211
  try {
29212
- const raw = await fsPromises.readFile(filePath, "utf-8");
29212
+ const raw = await fs$1.readFile(filePath, "utf-8");
29213
29213
  let parsed;
29214
29214
  try {
29215
29215
  parsed = JSON.parse(raw);
29216
29216
  } catch {
29217
- await fsPromises.unlink(filePath).catch(() => {});
29217
+ await fs$1.unlink(filePath).catch(() => {});
29218
29218
  return null;
29219
29219
  }
29220
29220
  if (!parsed || parsed.version !== 1 || !parsed.payload) {
29221
- await fsPromises.unlink(filePath).catch(() => {});
29221
+ await fs$1.unlink(filePath).catch(() => {});
29222
29222
  return null;
29223
29223
  }
29224
29224
  return parsed;
@@ -29230,7 +29230,7 @@ async function consumeRestartSentinel(env = process.env) {
29230
29230
  const filePath = resolveRestartSentinelPath(env);
29231
29231
  const parsed = await readRestartSentinel(env);
29232
29232
  if (!parsed) return null;
29233
- await fsPromises.unlink(filePath).catch(() => {});
29233
+ await fs$1.unlink(filePath).catch(() => {});
29234
29234
  return parsed;
29235
29235
  }
29236
29236
  function formatRestartSentinelMessage(payload) {
@@ -41633,18 +41633,18 @@ function appendImagePathsToPrompt(prompt, paths) {
41633
41633
  return `${trimmed}${trimmed ? "\n\n" : ""}${paths.join("\n")}`;
41634
41634
  }
41635
41635
  async function writeCliImages(images) {
41636
- const tempDir = await fsPromises.mkdtemp(path.join(os.tmpdir(), "winclaw-cli-images-"));
41636
+ const tempDir = await fs$1.mkdtemp(path.join(os.tmpdir(), "winclaw-cli-images-"));
41637
41637
  const paths = [];
41638
41638
  for (let i = 0; i < images.length; i += 1) {
41639
41639
  const image = images[i];
41640
41640
  const ext = resolveImageExtension(image.mimeType);
41641
41641
  const filePath = path.join(tempDir, `image-${i + 1}.${ext}`);
41642
41642
  const buffer = Buffer.from(image.data, "base64");
41643
- await fsPromises.writeFile(filePath, buffer, { mode: 384 });
41643
+ await fs$1.writeFile(filePath, buffer, { mode: 384 });
41644
41644
  paths.push(filePath);
41645
41645
  }
41646
41646
  const cleanup = async () => {
41647
- await fsPromises.rm(tempDir, {
41647
+ await fs$1.rm(tempDir, {
41648
41648
  recursive: true,
41649
41649
  force: true
41650
41650
  });
@@ -45615,7 +45615,7 @@ const warnedContexts = /* @__PURE__ */ new Map();
45615
45615
  const log$9 = createSubsystemLogger("session-maintenance-warning");
45616
45616
  let deliverRuntimePromise = null;
45617
45617
  function loadDeliverRuntime() {
45618
- deliverRuntimePromise ??= import("./deliver-runtime-Co5o7uv0.js");
45618
+ deliverRuntimePromise ??= import("./deliver-runtime-DJsAB9LW.js");
45619
45619
  return deliverRuntimePromise;
45620
45620
  }
45621
45621
  function shouldSendWarning() {
@@ -46196,7 +46196,7 @@ async function stageSandboxMedia(params) {
46196
46196
  const remoteMediaCacheDir = ctx.MediaRemoteHost ? path.join(CONFIG_DIR, "media", "remote-cache", sessionKey) : null;
46197
46197
  const effectiveWorkspaceDir = sandbox?.workspaceDir ?? remoteMediaCacheDir;
46198
46198
  if (!effectiveWorkspaceDir) return;
46199
- await fsPromises.mkdir(effectiveWorkspaceDir, { recursive: true });
46199
+ await fs$1.mkdir(effectiveWorkspaceDir, { recursive: true });
46200
46200
  const remoteAttachmentRoots = resolveIMessageRemoteAttachmentRoots({
46201
46201
  cfg,
46202
46202
  accountId: ctx.AccountId
@@ -46255,8 +46255,8 @@ async function stageLocalFileIntoRoot(params) {
46255
46255
  }
46256
46256
  async function stageRemoteFileIntoRoot(params) {
46257
46257
  const tmpRoot = resolvePreferredWinClawTmpDir();
46258
- await fsPromises.mkdir(tmpRoot, { recursive: true });
46259
- const tmpDir = await fsPromises.mkdtemp(path.join(tmpRoot, "stage-sandbox-media-"));
46258
+ await fs$1.mkdir(tmpRoot, { recursive: true });
46259
+ const tmpDir = await fs$1.mkdtemp(path.join(tmpRoot, "stage-sandbox-media-"));
46260
46260
  const tmpPath = path.join(tmpDir, "download");
46261
46261
  try {
46262
46262
  await scpFile(params.remoteHost, params.remotePath, tmpPath);
@@ -46267,7 +46267,7 @@ async function stageRemoteFileIntoRoot(params) {
46267
46267
  maxBytes: params.maxBytes
46268
46268
  });
46269
46269
  } finally {
46270
- await fsPromises.rm(tmpDir, {
46270
+ await fs$1.rm(tmpDir, {
46271
46271
  recursive: true,
46272
46272
  force: true
46273
46273
  }).catch(() => {});
@@ -50575,7 +50575,7 @@ const VISION_PROVIDERS = [
50575
50575
  ];
50576
50576
  let imageRuntimePromise = null;
50577
50577
  function loadImageRuntime() {
50578
- imageRuntimePromise ??= import("./image-runtime-CGAobfgI.js");
50578
+ imageRuntimePromise ??= import("./image-runtime-HfAsK5X3.js");
50579
50579
  return imageRuntimePromise;
50580
50580
  }
50581
50581
  /**
@@ -50641,7 +50641,7 @@ async function describeStickerImage(params) {
50641
50641
  const { provider, model } = resolved;
50642
50642
  logVerbose(`telegram: describing sticker with ${provider}/${model}`);
50643
50643
  try {
50644
- const buffer = await fsPromises.readFile(imagePath);
50644
+ const buffer = await fs$1.readFile(imagePath);
50645
50645
  const { describeImageWithModel } = await loadImageRuntime();
50646
50646
  return (await describeImageWithModel({
50647
50647
  buffer,
@@ -52471,7 +52471,7 @@ async function resolveDiscordPreflightAudioMentionContext(params) {
52471
52471
  hasTypedText
52472
52472
  };
52473
52473
  try {
52474
- const { transcribeFirstAudio } = await import("./audio-preflight-CdgtLVh2.js");
52474
+ const { transcribeFirstAudio } = await import("./audio-preflight-D7UvXGlQ.js");
52475
52475
  if (params.abortSignal?.aborted) return {
52476
52476
  hasAudioAttachment,
52477
52477
  hasTypedText
@@ -57427,27 +57427,27 @@ let slackSenderRuntimePromise = null;
57427
57427
  let signalSenderRuntimePromise = null;
57428
57428
  let imessageSenderRuntimePromise = null;
57429
57429
  function loadWhatsAppSenderRuntime() {
57430
- whatsappSenderRuntimePromise ??= import("./deps-send-whatsapp.runtime-Dflrvnq-.js");
57430
+ whatsappSenderRuntimePromise ??= import("./deps-send-whatsapp.runtime-Cie2nrT8.js");
57431
57431
  return whatsappSenderRuntimePromise;
57432
57432
  }
57433
57433
  function loadTelegramSenderRuntime() {
57434
- telegramSenderRuntimePromise ??= import("./deps-send-telegram.runtime-C9bLOnbt.js");
57434
+ telegramSenderRuntimePromise ??= import("./deps-send-telegram.runtime-K5LxxPog.js");
57435
57435
  return telegramSenderRuntimePromise;
57436
57436
  }
57437
57437
  function loadDiscordSenderRuntime() {
57438
- discordSenderRuntimePromise ??= import("./deps-send-discord.runtime-D0BtA9iO.js");
57438
+ discordSenderRuntimePromise ??= import("./deps-send-discord.runtime-M8Cl0fms.js");
57439
57439
  return discordSenderRuntimePromise;
57440
57440
  }
57441
57441
  function loadSlackSenderRuntime() {
57442
- slackSenderRuntimePromise ??= import("./deps-send-slack.runtime-DiA-Ieod.js");
57442
+ slackSenderRuntimePromise ??= import("./deps-send-slack.runtime-DeKWrOdA.js");
57443
57443
  return slackSenderRuntimePromise;
57444
57444
  }
57445
57445
  function loadSignalSenderRuntime() {
57446
- signalSenderRuntimePromise ??= import("./deps-send-signal.runtime-BA3mNq_v.js");
57446
+ signalSenderRuntimePromise ??= import("./deps-send-signal.runtime-CEnhoskG.js");
57447
57447
  return signalSenderRuntimePromise;
57448
57448
  }
57449
57449
  function loadIMessageSenderRuntime() {
57450
- imessageSenderRuntimePromise ??= import("./deps-send-imessage.runtime-89fweiea.js");
57450
+ imessageSenderRuntimePromise ??= import("./deps-send-imessage.runtime-Bing_Bvm.js");
57451
57451
  return imessageSenderRuntimePromise;
57452
57452
  }
57453
57453
  function createDefaultDeps() {
@@ -58620,10 +58620,10 @@ function estimateDurationSeconds(pcm) {
58620
58620
  return pcm.length / (bytesPerSample * SAMPLE_RATE);
58621
58621
  }
58622
58622
  async function writeWavFile(pcm) {
58623
- const tempDir = await fsPromises.mkdtemp(path.join(resolvePreferredWinClawTmpDir(), "discord-voice-"));
58623
+ const tempDir = await fs$1.mkdtemp(path.join(resolvePreferredWinClawTmpDir(), "discord-voice-"));
58624
58624
  const filePath = path.join(tempDir, `segment-${randomUUID()}.wav`);
58625
58625
  const wav = buildWavBuffer(pcm);
58626
- await fsPromises.writeFile(filePath, wav);
58626
+ await fs$1.writeFile(filePath, wav);
58627
58627
  scheduleTempCleanup(tempDir);
58628
58628
  return {
58629
58629
  path: filePath,
@@ -58632,7 +58632,7 @@ async function writeWavFile(pcm) {
58632
58632
  }
58633
58633
  function scheduleTempCleanup(tempDir, delayMs = 1800 * 1e3) {
58634
58634
  setTimeout(() => {
58635
- fsPromises.rm(tempDir, {
58635
+ fs$1.rm(tempDir, {
58636
58636
  recursive: true,
58637
58637
  force: true
58638
58638
  }).catch((err) => {
@@ -63260,7 +63260,7 @@ function normalizeAllowList$1(list) {
63260
63260
  async function detectRemoteHostFromCliPath(cliPath) {
63261
63261
  try {
63262
63262
  const expanded = cliPath.startsWith("~") ? cliPath.replace(/^~/, process.env.HOME ?? "") : cliPath;
63263
- const content = await fsPromises.readFile(expanded, "utf8");
63263
+ const content = await fs$1.readFile(expanded, "utf8");
63264
63264
  const userHostMatch = content.match(/\bssh\b[^\n]*?\s+([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+)/);
63265
63265
  if (userHostMatch) return userHostMatch[1];
63266
63266
  return content.match(/\bssh\b[^\n]*?\s+([a-zA-Z][a-zA-Z0-9._-]*)\s+\S*\bimsg\b/)?.[1];
@@ -70248,15 +70248,15 @@ let slashCommandsRuntimePromise = null;
70248
70248
  let slashDispatchRuntimePromise = null;
70249
70249
  let slashSkillCommandsRuntimePromise = null;
70250
70250
  function loadSlashCommandsRuntime() {
70251
- slashCommandsRuntimePromise ??= import("./slash-commands.runtime-CU--cvcd.js");
70251
+ slashCommandsRuntimePromise ??= import("./slash-commands.runtime-CTVGYo20.js");
70252
70252
  return slashCommandsRuntimePromise;
70253
70253
  }
70254
70254
  function loadSlashDispatchRuntime() {
70255
- slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime-D5Cl7j1v.js");
70255
+ slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime-yKnwVCI5.js");
70256
70256
  return slashDispatchRuntimePromise;
70257
70257
  }
70258
70258
  function loadSlashSkillCommandsRuntime() {
70259
- slashSkillCommandsRuntimePromise ??= import("./slash-skill-commands.runtime-DnvHGcVS.js");
70259
+ slashSkillCommandsRuntimePromise ??= import("./slash-skill-commands.runtime-BCG9eUm1.js");
70260
70260
  return slashSkillCommandsRuntimePromise;
70261
70261
  }
70262
70262
  const slackExternalArgMenuStore = createSlackExternalArgMenuStore();
@@ -73621,7 +73621,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
73621
73621
  const disableAudioPreflight = firstDefined$1(topicConfig?.disableAudioPreflight, groupConfig?.disableAudioPreflight) === true;
73622
73622
  let preflightTranscript;
73623
73623
  if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0 && !disableAudioPreflight) try {
73624
- const { transcribeFirstAudio } = await import("./audio-preflight-CdgtLVh2.js");
73624
+ const { transcribeFirstAudio } = await import("./audio-preflight-D7UvXGlQ.js");
73625
73625
  preflightTranscript = await transcribeFirstAudio({
73626
73626
  ctx: {
73627
73627
  MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
@@ -75118,7 +75118,7 @@ function resolveCommandHashPath(accountId, botIdentity) {
75118
75118
  }
75119
75119
  async function readCachedCommandHash(accountId, botIdentity) {
75120
75120
  try {
75121
- return (await fsPromises.readFile(resolveCommandHashPath(accountId, botIdentity), "utf-8")).trim();
75121
+ return (await fs$1.readFile(resolveCommandHashPath(accountId, botIdentity), "utf-8")).trim();
75122
75122
  } catch {
75123
75123
  return null;
75124
75124
  }
@@ -75126,8 +75126,8 @@ async function readCachedCommandHash(accountId, botIdentity) {
75126
75126
  async function writeCachedCommandHash(accountId, botIdentity, hash) {
75127
75127
  const filePath = resolveCommandHashPath(accountId, botIdentity);
75128
75128
  try {
75129
- await fsPromises.mkdir(path.dirname(filePath), { recursive: true });
75130
- await fsPromises.writeFile(filePath, hash, "utf-8");
75129
+ await fs$1.mkdir(path.dirname(filePath), { recursive: true });
75130
+ await fs$1.writeFile(filePath, hash, "utf-8");
75131
75131
  } catch {}
75132
75132
  }
75133
75133
  function syncTelegramMenuCommands(params) {
@@ -75971,7 +75971,7 @@ function safeParseState(raw) {
75971
75971
  async function readTelegramUpdateOffset(params) {
75972
75972
  const filePath = resolveTelegramUpdateOffsetPath(params.accountId, params.env);
75973
75973
  try {
75974
- const parsed = safeParseState(await fsPromises.readFile(filePath, "utf-8"));
75974
+ const parsed = safeParseState(await fs$1.readFile(filePath, "utf-8"));
75975
75975
  const expectedBotId = extractBotIdFromToken(params.botToken);
75976
75976
  if (expectedBotId && parsed?.botId && parsed.botId !== expectedBotId) return null;
75977
75977
  if (expectedBotId && parsed?.botId === null) return null;
@@ -75995,7 +75995,7 @@ async function writeTelegramUpdateOffset(params) {
75995
75995
  async function deleteTelegramUpdateOffset(params) {
75996
75996
  const filePath = resolveTelegramUpdateOffsetPath(params.accountId, params.env);
75997
75997
  try {
75998
- await fsPromises.unlink(filePath);
75998
+ await fs$1.unlink(filePath);
75999
75999
  } catch (err) {
76000
76000
  if (err.code === "ENOENT") return;
76001
76001
  throw err;
@@ -76469,7 +76469,7 @@ function createWhatsAppLoginTool() {
76469
76469
  force: Type.Optional(Type.Boolean())
76470
76470
  }),
76471
76471
  execute: async (_toolCallId, args) => {
76472
- const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-CMgMlRCI.js");
76472
+ const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-Ci3FVgS9.js");
76473
76473
  if ((args?.action ?? "start") === "wait") {
76474
76474
  const result = await waitForWebLogin({ timeoutMs: typeof args.timeoutMs === "number" ? args.timeoutMs : void 0 });
76475
76475
  return {
@@ -76544,23 +76544,23 @@ let webOutboundPromise = null;
76544
76544
  let webLoginPromise = null;
76545
76545
  let whatsappActionsPromise = null;
76546
76546
  function loadWebOutbound() {
76547
- webOutboundPromise ??= import("./runtime-whatsapp-outbound.runtime-CNnM5MdE.js");
76547
+ webOutboundPromise ??= import("./runtime-whatsapp-outbound.runtime-DOHkvY0R.js");
76548
76548
  return webOutboundPromise;
76549
76549
  }
76550
76550
  function loadWebLogin() {
76551
- webLoginPromise ??= import("./runtime-whatsapp-login.runtime-DOTrH3Wz.js");
76551
+ webLoginPromise ??= import("./runtime-whatsapp-login.runtime-CrytFUOh.js");
76552
76552
  return webLoginPromise;
76553
76553
  }
76554
76554
  function loadWebLoginQr() {
76555
- webLoginQrPromise ??= import("./login-qr-CMgMlRCI.js");
76555
+ webLoginQrPromise ??= import("./login-qr-Ci3FVgS9.js");
76556
76556
  return webLoginQrPromise;
76557
76557
  }
76558
76558
  function loadWebChannel() {
76559
- webChannelPromise ??= import("./web-DxHq9RWt.js");
76559
+ webChannelPromise ??= import("./web-20qjCzeI.js");
76560
76560
  return webChannelPromise;
76561
76561
  }
76562
76562
  function loadWhatsAppActions() {
76563
- whatsappActionsPromise ??= import("./whatsapp-actions-By2rV868.js");
76563
+ whatsappActionsPromise ??= import("./whatsapp-actions-X768ziyc.js");
76564
76564
  return whatsappActionsPromise;
76565
76565
  }
76566
76566
  function createRuntimeWhatsApp() {
@@ -77872,7 +77872,7 @@ function resolvePluginTools(params) {
77872
77872
  //#endregion
77873
77873
  //#region src/agents/apply-patch-update.ts
77874
77874
  async function defaultReadFile(filePath) {
77875
- return fsPromises.readFile(filePath, "utf8");
77875
+ return fs$1.readFile(filePath, "utf8");
77876
77876
  }
77877
77877
  async function applyUpdateHunk(filePath, chunks, options) {
77878
77878
  const originalLines = (await (options?.readFile ?? defaultReadFile)(filePath).catch((err) => {
@@ -78193,7 +78193,7 @@ function resolvePatchFileOps(options) {
78193
78193
  const workspaceOnly = options.workspaceOnly !== false;
78194
78194
  return {
78195
78195
  readFile: async (filePath) => {
78196
- if (!workspaceOnly) return await fsPromises.readFile(filePath, "utf8");
78196
+ if (!workspaceOnly) return await fs$1.readFile(filePath, "utf8");
78197
78197
  const opened = await openBoundaryFile({
78198
78198
  absolutePath: filePath,
78199
78199
  rootPath: options.cwd,
@@ -78208,7 +78208,7 @@ function resolvePatchFileOps(options) {
78208
78208
  },
78209
78209
  writeFile: async (filePath, content) => {
78210
78210
  if (!workspaceOnly) {
78211
- await fsPromises.writeFile(filePath, content, "utf8");
78211
+ await fs$1.writeFile(filePath, content, "utf8");
78212
78212
  return;
78213
78213
  }
78214
78214
  const relative = toRelativeSandboxPath(options.cwd, filePath);
@@ -78219,8 +78219,8 @@ function resolvePatchFileOps(options) {
78219
78219
  encoding: "utf8"
78220
78220
  });
78221
78221
  },
78222
- remove: (filePath) => fsPromises.rm(filePath),
78223
- mkdirp: (dir) => fsPromises.mkdir(dir, { recursive: true }).then(() => {})
78222
+ remove: (filePath) => fs$1.rm(filePath),
78223
+ mkdirp: (dir) => fs$1.mkdir(dir, { recursive: true }).then(() => {})
78224
78224
  };
78225
78225
  }
78226
78226
  async function ensureDir(filePath, ops) {
@@ -78482,7 +78482,7 @@ const LOOP_WARNING_BUCKET_SIZE = 10;
78482
78482
  const MAX_LOOP_WARNING_KEYS = 256;
78483
78483
  let beforeToolCallRuntimePromise = null;
78484
78484
  function loadBeforeToolCallRuntime() {
78485
- beforeToolCallRuntimePromise ??= import("./pi-tools.before-tool-call.runtime-D6h4CmLs.js");
78485
+ beforeToolCallRuntimePromise ??= import("./pi-tools.before-tool-call.runtime-CPnt06zM.js");
78486
78486
  return beforeToolCallRuntimePromise;
78487
78487
  }
78488
78488
  function buildAdjustedParamsKey(params) {
@@ -78720,7 +78720,7 @@ function wrapHostEditToolWithPostWriteRecovery(base, root) {
78720
78720
  if (!pathParam || !newText) throw err;
78721
78721
  try {
78722
78722
  const absolutePath = resolveHostEditPath(root, pathParam);
78723
- const content = await fsPromises.readFile(absolutePath, "utf-8");
78723
+ const content = await fs$1.readFile(absolutePath, "utf-8");
78724
78724
  const hasNew = content.includes(newText);
78725
78725
  const stillHasOld = oldText !== void 0 && oldText.length > 0 && content.includes(oldText);
78726
78726
  if (hasNew && !stillHasOld) return {
@@ -79202,14 +79202,14 @@ function createSandboxEditOperations(params) {
79202
79202
  }
79203
79203
  async function writeHostFile(absolutePath, content) {
79204
79204
  const resolved = path.resolve(absolutePath);
79205
- await fsPromises.mkdir(path.dirname(resolved), { recursive: true });
79206
- await fsPromises.writeFile(resolved, content, "utf-8");
79205
+ await fs$1.mkdir(path.dirname(resolved), { recursive: true });
79206
+ await fs$1.writeFile(resolved, content, "utf-8");
79207
79207
  }
79208
79208
  function createHostWriteOperations(root, options) {
79209
79209
  if (!(options?.workspaceOnly ?? false)) return {
79210
79210
  mkdir: async (dir) => {
79211
79211
  const resolved = path.resolve(dir);
79212
- await fsPromises.mkdir(resolved, { recursive: true });
79212
+ await fs$1.mkdir(resolved, { recursive: true });
79213
79213
  },
79214
79214
  writeFile: writeHostFile
79215
79215
  };
@@ -79222,7 +79222,7 @@ function createHostWriteOperations(root, options) {
79222
79222
  cwd: root,
79223
79223
  root
79224
79224
  });
79225
- await fsPromises.mkdir(resolved, { recursive: true });
79225
+ await fs$1.mkdir(resolved, { recursive: true });
79226
79226
  },
79227
79227
  writeFile: async (absolutePath, content) => {
79228
79228
  await writeFileWithinRoot({
@@ -79238,12 +79238,12 @@ function createHostEditOperations(root, options) {
79238
79238
  if (!(options?.workspaceOnly ?? false)) return {
79239
79239
  readFile: async (absolutePath) => {
79240
79240
  const resolved = path.resolve(absolutePath);
79241
- return await fsPromises.readFile(resolved);
79241
+ return await fs$1.readFile(resolved);
79242
79242
  },
79243
79243
  writeFile: writeHostFile,
79244
79244
  access: async (absolutePath) => {
79245
79245
  const resolved = path.resolve(absolutePath);
79246
- await fsPromises.access(resolved);
79246
+ await fs$1.access(resolved);
79247
79247
  }
79248
79248
  };
79249
79249
  return {
@@ -80083,7 +80083,7 @@ async function repairSessionFileIfNeeded(params) {
80083
80083
  };
80084
80084
  let content;
80085
80085
  try {
80086
- content = await fsPromises.readFile(sessionFile, "utf-8");
80086
+ content = await fs$1.readFile(sessionFile, "utf-8");
80087
80087
  } catch (err) {
80088
80088
  if (err?.code === "ENOENT") return {
80089
80089
  repaired: false,
@@ -80131,15 +80131,15 @@ async function repairSessionFileIfNeeded(params) {
80131
80131
  const backupPath = `${sessionFile}.bak-${process.pid}-${Date.now()}`;
80132
80132
  const tmpPath = `${sessionFile}.repair-${process.pid}-${Date.now()}.tmp`;
80133
80133
  try {
80134
- const stat = await fsPromises.stat(sessionFile).catch(() => null);
80135
- await fsPromises.writeFile(backupPath, content, "utf-8");
80136
- if (stat) await fsPromises.chmod(backupPath, stat.mode);
80137
- await fsPromises.writeFile(tmpPath, cleaned, "utf-8");
80138
- if (stat) await fsPromises.chmod(tmpPath, stat.mode);
80139
- await fsPromises.rename(tmpPath, sessionFile);
80134
+ const stat = await fs$1.stat(sessionFile).catch(() => null);
80135
+ await fs$1.writeFile(backupPath, content, "utf-8");
80136
+ if (stat) await fs$1.chmod(backupPath, stat.mode);
80137
+ await fs$1.writeFile(tmpPath, cleaned, "utf-8");
80138
+ if (stat) await fs$1.chmod(tmpPath, stat.mode);
80139
+ await fs$1.rename(tmpPath, sessionFile);
80140
80140
  } catch (err) {
80141
80141
  try {
80142
- await fsPromises.unlink(tmpPath);
80142
+ await fs$1.unlink(tmpPath);
80143
80143
  } catch (cleanupErr) {
80144
80144
  params.warn?.(`session file repair cleanup failed: ${cleanupErr instanceof Error ? cleanupErr.message : "unknown error"} (${path.basename(tmpPath)})`);
80145
80145
  }
@@ -81997,7 +81997,7 @@ async function prewarmSessionFile(sessionFile) {
81997
81997
  if (!isSessionManagerCacheEnabled()) return;
81998
81998
  if (isSessionManagerCached(sessionFile)) return;
81999
81999
  try {
82000
- const handle = await fsPromises.open(sessionFile, "r");
82000
+ const handle = await fs$1.open(sessionFile, "r");
82001
82001
  try {
82002
82002
  const buffer = Buffer$1.alloc(4096);
82003
82003
  await handle.read(buffer, 0, buffer.length, 0);
@@ -82364,7 +82364,7 @@ async function compactEmbeddedPiSessionDirect(params) {
82364
82364
  } catch (err) {
82365
82365
  return fail(describeUnknownError(err));
82366
82366
  }
82367
- await fsPromises.mkdir(resolvedWorkspace, { recursive: true });
82367
+ await fs$1.mkdir(resolvedWorkspace, { recursive: true });
82368
82368
  const sandboxSessionKey = params.sessionKey?.trim() || params.sessionId;
82369
82369
  const sandbox = await resolveSandboxContext({
82370
82370
  config: params.config,
@@ -82372,7 +82372,7 @@ async function compactEmbeddedPiSessionDirect(params) {
82372
82372
  workspaceDir: resolvedWorkspace
82373
82373
  });
82374
82374
  const effectiveWorkspace = sandbox?.enabled ? sandbox.workspaceAccess === "rw" ? resolvedWorkspace : sandbox.workspaceDir : resolvedWorkspace;
82375
- await fsPromises.mkdir(effectiveWorkspace, { recursive: true });
82375
+ await fs$1.mkdir(effectiveWorkspace, { recursive: true });
82376
82376
  await ensureSessionHeader({
82377
82377
  sessionFile: params.sessionFile,
82378
82378
  sessionId: params.sessionId,
@@ -83257,12 +83257,12 @@ function getQueuedFileWriter(writers, filePath) {
83257
83257
  const existing = writers.get(filePath);
83258
83258
  if (existing) return existing;
83259
83259
  const dir = path.dirname(filePath);
83260
- const ready = fsPromises.mkdir(dir, { recursive: true }).catch(() => void 0);
83260
+ const ready = fs$1.mkdir(dir, { recursive: true }).catch(() => void 0);
83261
83261
  let queue = Promise.resolve();
83262
83262
  const writer = {
83263
83263
  filePath,
83264
83264
  write: (line) => {
83265
- queue = queue.then(() => ready).then(() => fsPromises.appendFile(filePath, line, "utf8")).catch(() => void 0);
83265
+ queue = queue.then(() => ready).then(() => fs$1.appendFile(filePath, line, "utf8")).catch(() => void 0);
83266
83266
  }
83267
83267
  };
83268
83268
  writers.set(filePath, writer);
@@ -86180,7 +86180,7 @@ async function prepareSessionManagerForRun(params) {
86180
86180
  return;
86181
86181
  }
86182
86182
  if (params.hadSessionFile && header && !hasAssistant) {
86183
- await fsPromises.writeFile(params.sessionFile, "", "utf-8");
86183
+ await fs$1.writeFile(params.sessionFile, "", "utf-8");
86184
86184
  sm.fileEntries = [header];
86185
86185
  sm.byId?.clear?.();
86186
86186
  sm.labelsById?.clear?.();
@@ -86966,7 +86966,7 @@ async function runEmbeddedAttempt(params) {
86966
86966
  const prevCwd = process.cwd();
86967
86967
  const runAbortController = new AbortController();
86968
86968
  log$3.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"}`);
86969
- await fsPromises.mkdir(resolvedWorkspace, { recursive: true });
86969
+ await fs$1.mkdir(resolvedWorkspace, { recursive: true });
86970
86970
  const sandboxSessionKey = params.sessionKey?.trim() || params.sessionId;
86971
86971
  const sandbox = await resolveSandboxContext({
86972
86972
  config: params.config,
@@ -86974,7 +86974,7 @@ async function runEmbeddedAttempt(params) {
86974
86974
  workspaceDir: resolvedWorkspace
86975
86975
  });
86976
86976
  const effectiveWorkspace = sandbox?.enabled ? sandbox.workspaceAccess === "rw" ? resolvedWorkspace : sandbox.workspaceDir : resolvedWorkspace;
86977
- await fsPromises.mkdir(effectiveWorkspace, { recursive: true });
86977
+ await fs$1.mkdir(effectiveWorkspace, { recursive: true });
86978
86978
  let restoreSkillEnv;
86979
86979
  process.chdir(effectiveWorkspace);
86980
86980
  try {
@@ -87244,7 +87244,7 @@ async function runEmbeddedAttempt(params) {
87244
87244
  sessionFile: params.sessionFile,
87245
87245
  warn: (message) => log$3.warn(message)
87246
87246
  });
87247
- const hadSessionFile = await fsPromises.stat(params.sessionFile).then(() => true).catch(() => false);
87247
+ const hadSessionFile = await fs$1.stat(params.sessionFile).then(() => true).catch(() => false);
87248
87248
  const transcriptPolicy = resolveTranscriptPolicy({
87249
87249
  modelApi: params.model?.api,
87250
87250
  provider: params.provider,
@@ -88398,7 +88398,7 @@ async function runEmbeddedPiAgent(params) {
88398
88398
  const copilotAuthRetry = authRetryPending;
88399
88399
  authRetryPending = false;
88400
88400
  attemptedThinking.add(thinkLevel);
88401
- await fsPromises.mkdir(resolvedWorkspace, { recursive: true });
88401
+ await fs$1.mkdir(resolvedWorkspace, { recursive: true });
88402
88402
  const prompt = provider === "anthropic" ? scrubAnthropicRefusalMagic(params.prompt) : params.prompt;
88403
88403
  const attempt = await runEmbeddedAttempt({
88404
88404
  sessionId: params.sessionId,
@@ -89215,7 +89215,7 @@ const DEFAULT_SUBAGENT_ANNOUNCE_TIMEOUT_MS = 6e4;
89215
89215
  const MAX_TIMER_SAFE_TIMEOUT_MS = 2147e6;
89216
89216
  let subagentRegistryRuntimePromise = null;
89217
89217
  function loadSubagentRegistryRuntime() {
89218
- subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-LH0OBaWN.js");
89218
+ subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-DE-5902Y.js");
89219
89219
  return subagentRegistryRuntimePromise;
89220
89220
  }
89221
89221
  const DIRECT_ANNOUNCE_TRANSIENT_RETRY_DELAYS_MS = FAST_TEST_MODE ? [