activeclaw 2026.2.12 → 2026.2.13

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 (364) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/{accounts-DbzMEfKN.js → accounts-DCDeFTra.js} +2 -2
  3. package/dist/{accounts-DimKrt7j.js → accounts-DeqIQjo1.js} +2 -2
  4. package/dist/{acp-cli-Cs1ai4XO.js → acp-cli-CeYI4XRd.js} +15 -16
  5. package/dist/{acp-cli-oV2dodPg.js → acp-cli-rNbGXICg.js} +14 -15
  6. package/dist/{agent-BndgzkUe.js → agent-BvNJF5QL.js} +19 -16
  7. package/dist/{agent-DZvDwqnd.js → agent-CyMxTyrG.js} +20 -17
  8. package/dist/{agent-scope-rXQ7WARN.js → agent-scope-BIEhVP4_.js} +1 -1
  9. package/dist/{agent-scope---6LLHj0.js → agent-scope-CQCus0rI.js} +2 -2
  10. package/dist/{agent-scope-RCSw6gHy.js → agent-scope-CsRbLH4l.js} +3 -3
  11. package/dist/{agent-scope-CN8DM4Xb.js → agent-scope-DPIFau3f.js} +1 -1
  12. package/dist/{audio-preflight-SZRntkxo.js → audio-preflight-BU8W7uxc.js} +10 -10
  13. package/dist/{audio-preflight-ClVNINDs.js → audio-preflight-CGsumMzb.js} +10 -10
  14. package/dist/{audio-preflight-txAP3v-C.js → audio-preflight-SLmkJI6-.js} +22 -22
  15. package/dist/{audio-preflight-BP6s-UPp.js → audio-preflight-jZc5mFCZ.js} +23 -23
  16. package/dist/{audit-CQzrm61N.js → audit-Dmww_503.js} +70 -18
  17. package/dist/{audit-DMH3CSXY.js → audit-wPu26VMb.js} +72 -20
  18. package/dist/{tailscale-DU6DgqVy.js → auth-9x3lqfIY.js} +208 -3
  19. package/dist/{tailscale-DHfcfRCx.js → auth-CQNl_IaI.js} +190 -3
  20. package/dist/{auth-health-BB3e3OmN.js → auth-health-C4L4FGBA.js} +1 -1
  21. package/dist/{auth-health-zZ9dnQGC.js → auth-health-j6epgQbq.js} +1 -1
  22. package/dist/{auth-profiles-CcJ3hrog.js → auth-profiles-ByNs3eEm.js} +60 -22
  23. package/dist/build-info.json +3 -3
  24. package/dist/bundled/boot-md/handler.js +19 -16
  25. package/dist/bundled/session-memory/handler.js +16 -15
  26. package/dist/{call-Yxns4CVq.js → call-DVYCIV8m.js} +5 -5
  27. package/dist/{call-C9az806y.js → call-SolyGS1r.js} +4 -4
  28. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  29. package/dist/{channel-options-CjXPwMWu.js → channel-options-BwC2yQcR.js} +4 -4
  30. package/dist/{channel-options-CX4iYQfR.js → channel-options-Cq9BVDkP.js} +7 -7
  31. package/dist/{channel-selection-BoQ7GurB.js → channel-selection-D4D6ImhN.js} +2 -2
  32. package/dist/{channel-selection-C78IwbD-.js → channel-selection-MZAHm4U8.js} +2 -2
  33. package/dist/{channels-cli-DUHsmX3q.js → channels-cli-9Dsk9Qm7.js} +53 -51
  34. package/dist/{channels-cli-BXMQPB4x.js → channels-cli-BJUppQll.js} +52 -50
  35. package/dist/{channels-status-issues-Ca9--azp.js → channels-status-issues-D7GSV1GS.js} +1 -1
  36. package/dist/{channels-status-issues-CbULFg2X.js → channels-status-issues-DDAWeT-6.js} +1 -1
  37. package/dist/{chrome-svgmQ8T_.js → chrome-BfB6JdKF.js} +2 -1
  38. package/dist/{chrome-juQxt0zf.js → chrome-Cvr-57lg.js} +4 -3
  39. package/dist/{chrome-BCPPeLQ6.js → chrome-DL0avO8n.js} +2 -1
  40. package/dist/{chrome-yIKmOzCO.js → chrome-foEwx3lN.js} +5 -4
  41. package/dist/{clack-prompter-Dmvcu3gn.js → clack-prompter-Bz3Mmcl-.js} +5 -5
  42. package/dist/{clack-prompter-DuBVnTKy.js → clack-prompter-ChCGXfyt.js} +4 -4
  43. package/dist/cli/daemon-cli.js +1 -1
  44. package/dist/{cli-FdxAcu_y.js → cli-ZR9ugUBX.js} +42 -40
  45. package/dist/{cli-By331Q9f.js → cli-miPe4Ujz.js} +42 -40
  46. package/dist/{client-B0_GiCjB.js → client-BrYfyoDK.js} +52 -3
  47. package/dist/{client-D7wrC1Ug.js → client-CTwXnRl7.js} +53 -4
  48. package/dist/{command-format-ayFsmwwz.js → command-format-Bxe0mWee.js} +1 -1
  49. package/dist/{command-options-BSDiKuyX.js → command-options-BvgxzPbK.js} +4 -4
  50. package/dist/{commands-BG25qku5.js → commands-BX_OIIVR.js} +4 -4
  51. package/dist/{completion-cli-C4zxjkC1.js → completion-cli-CR77-jyv.js} +3 -3
  52. package/dist/{completion-cli-DECEgBWR.js → completion-cli-DnjpxAag.js} +29 -29
  53. package/dist/{config-B7sno9eI.js → config-Bdhomfei.js} +15 -6
  54. package/dist/{config-BuF7vm-v.js → config-BvMsmctM.js} +13 -4
  55. package/dist/{config-D50SQVar.js → config-QYrbd7x7.js} +13 -4
  56. package/dist/{config-DH9TLUNc.js → config-aFQssWKX.js} +15 -6
  57. package/dist/{config-guard-DPxxY1iw.js → config-guard-CljaSxJd.js} +39 -39
  58. package/dist/{configure-BZQ9uSVX.js → configure-BXLiucXo.js} +19 -19
  59. package/dist/{configure-Cg5IKSUy.js → configure-BYPqXzGZ.js} +19 -19
  60. package/dist/control-auth-8Cf4WXpR.js +54 -0
  61. package/dist/control-auth-DBCu3qyv.js +54 -0
  62. package/dist/{control-service-CBlMVTRu.js → control-service-B5KnPqGP.js} +11 -5
  63. package/dist/{control-service-B2er20Ke.js → control-service-DKnttEus.js} +10 -4
  64. package/dist/{cron-cli-B2Zwhy_r.js → cron-cli-D7BRjDv2.js} +17 -17
  65. package/dist/{cron-cli-EaRUVd0p.js → cron-cli-z1zk_FXQ.js} +16 -16
  66. package/dist/{daemon-cli-CVNzObIF.js → daemon-cli-BDkU2ocb.js} +18 -18
  67. package/dist/{daemon-cli-DF6Rxjy6.js → daemon-cli-cNSF93-v.js} +19 -19
  68. package/dist/{daemon-runtime-BHF5NjQ7.js → daemon-runtime-B0tg_LsX.js} +2 -2
  69. package/dist/{daemon-runtime-B05PME1z.js → daemon-runtime-Bsjeut6m.js} +3 -3
  70. package/dist/{deliver-DzcxEcza.js → deliver-CIU9Npgs.js} +306 -12
  71. package/dist/{deliver-COf5XFo_.js → deliver-DYYCo1G7.js} +302 -8
  72. package/dist/{deliver-B1jsU2r7.js → deliver-LsxKETro.js} +306 -12
  73. package/dist/{deliver-CLwC284e.js → deliver-xUU3mGHo.js} +302 -8
  74. package/dist/{deps-Cva7QM_t.js → deps-QSwGcoNZ.js} +2 -2
  75. package/dist/{deps-B6602Wid.js → deps-lAAA2zYI.js} +2 -2
  76. package/dist/{devices-cli-DPg_4aW8.js → devices-cli-BG3-2oqt.js} +13 -13
  77. package/dist/{devices-cli-D8K3hZR5.js → devices-cli-VIQtOvt_.js} +13 -13
  78. package/dist/{directory-cli-OGBSVKAZ.js → directory-cli-BCJwjVC0.js} +15 -15
  79. package/dist/{directory-cli-Bn47fFX7.js → directory-cli-jYzZ02gk.js} +14 -14
  80. package/dist/{dispatcher-BHsNwFe-.js → dispatcher-DY51b-Zc.js} +2 -2
  81. package/dist/{dns-cli-DmTHXgwU.js → dns-cli-DHIiMJjS.js} +11 -11
  82. package/dist/{dns-cli-kk2rysJh.js → dns-cli-pZlv87Ib.js} +11 -11
  83. package/dist/{docs-cli-CB77CeM4.js → docs-cli-2JDiwfzP.js} +7 -7
  84. package/dist/{docs-cli-DUcyw0X0.js → docs-cli-BhkYqoIQ.js} +6 -6
  85. package/dist/{doctor-DwqdkfPa.js → doctor-Bf8EhNtA.js} +33 -33
  86. package/dist/{doctor-BZfxDGUg.js → doctor-sYG5V4Co.js} +32 -32
  87. package/dist/entry.js +36 -14
  88. package/dist/{env-DE9xvYOL.js → env-ONzUVAG2.js} +1 -1
  89. package/dist/{exec-4WHuOniw.js → exec-B8lXct-k.js} +31 -13
  90. package/dist/{exec-B8JKbXKW.js → exec-CACT5OAW.js} +1 -1
  91. package/dist/{exec-D12IZYtJ.js → exec-CJFFoM7H.js} +31 -13
  92. package/dist/{exec-DXtR2fhb.js → exec-YIosokWE.js} +1 -1
  93. package/dist/{exec-approvals-cli-GizapOX5.js → exec-approvals-cli-7LH0lwhO.js} +19 -19
  94. package/dist/{exec-approvals-cli-BWO0Rs-a.js → exec-approvals-cli-apGnQbpj.js} +19 -19
  95. package/dist/extensionAPI.js +1108 -661
  96. package/dist/{fetch-CqZP8jwB.js → fetch-DmiOpALK.js} +5 -3
  97. package/dist/{fetch-timeout-B2KlHXi3.js → fetch-timeout-BEtUjM1S.js} +5 -3
  98. package/dist/{fetch-timeout-ohY5QmsW.js → fetch-timeout-DEoXG_SF.js} +5 -3
  99. package/dist/{fetch-timeout-4UKsdtE1.js → fetch-timeout-DTK9vxex.js} +5 -3
  100. package/dist/{gateway-cli-Bbd1Xbsc.js → gateway-cli-DUdYxlZS.js} +315 -103
  101. package/dist/{gateway-cli-PR1S0BTe.js → gateway-cli-DbvWmE-9.js} +314 -102
  102. package/dist/{gateway-rpc-8gue7Qjt.js → gateway-rpc-BByb2Snz.js} +3 -3
  103. package/dist/{gateway-rpc-DjuxyOm-.js → gateway-rpc-wXSCUZXj.js} +3 -3
  104. package/dist/{github-copilot-auth-B3chCDfc.js → github-copilot-auth-D7ewvpMd.js} +16 -8
  105. package/dist/{github-copilot-auth-Cm2SB8Qf.js → github-copilot-auth-DDispnyz.js} +16 -8
  106. package/dist/{github-copilot-token-SLWintYd.js → github-copilot-token-Cfs0Wxr8.js} +1 -1
  107. package/dist/{gmail-setup-utils-Cgh0ptgA.js → gmail-setup-utils-Cfns8TQx.js} +3 -3
  108. package/dist/{gmail-setup-utils-WDyf1gTU.js → gmail-setup-utils-DJb-_5kO.js} +4 -4
  109. package/dist/{health-format-C0C_Apce.js → health-format-KGPokKJH.js} +68 -28
  110. package/dist/{health-format-gLMfE2wf.js → health-format-LZDxu3rv.js} +67 -27
  111. package/dist/{help-format-5iAL_46a.js → help-format-C48TXngO.js} +1 -1
  112. package/dist/{help-format-DUy1KRxq.js → help-format-R5fLToDw.js} +1 -1
  113. package/dist/{hooks-cli-CEN1h1ya.js → hooks-cli-CT8JCRkH.js} +46 -44
  114. package/dist/{hooks-cli-DrchIqSi.js → hooks-cli-S1MKumJO.js} +47 -45
  115. package/dist/{hooks-status-Cgy6AtQk.js → hooks-status-Cw0xD8Lt.js} +3 -3
  116. package/dist/{hooks-status--xVLpAXz.js → hooks-status-D9MhwHRp.js} +3 -3
  117. package/dist/{image-Dkawt9Kg.js → image-Brk1sJbw.js} +4 -4
  118. package/dist/{image-DI9s9eEx.js → image-C4Nn2p3e.js} +5 -5
  119. package/dist/{image-LxFvu0wL.js → image-DgtfXMcX.js} +5 -5
  120. package/dist/{image-B4mDPdyz.js → image-RKwc3fsL.js} +4 -4
  121. package/dist/index.js +83 -83
  122. package/dist/{installs-NS0VMPN7.js → installs-CrLcWYHe.js} +4 -4
  123. package/dist/{installs-DA-eSN1B.js → installs-DscWb9b9.js} +5 -5
  124. package/dist/{links-CV4oki2u.js → links-B8LAzWwg.js} +1 -1
  125. package/dist/{links-7M-j83As.js → links-Eax1UO3w.js} +1 -1
  126. package/dist/llm-slug-generator.js +15 -15
  127. package/dist/{loader-Caow9TPA.js → loader-KjT074JR.js} +1105 -762
  128. package/dist/{logging-CeHn2itV.js → logging-BAyPwvdH.js} +1 -1
  129. package/dist/{logging-D0MyqUlV.js → logging-CRq4h04P.js} +2 -2
  130. package/dist/{login-qr-Xx8yJrSc.js → login-qr-B6ZgAuIf.js} +5 -5
  131. package/dist/{login-qr-CoskdtvN.js → login-qr-Bua-p0nG.js} +2 -2
  132. package/dist/{login-qr-CAk9D-FM.js → login-qr-CuvemJj4.js} +6 -6
  133. package/dist/{login-qr-kUyMWXV1.js → login-qr-Djr1JfIf.js} +2 -2
  134. package/dist/{logs-cli-B476pzJS.js → logs-cli-9IAV7rWY.js} +15 -15
  135. package/dist/{logs-cli-BQRUI_PO.js → logs-cli-EiKzUFPa.js} +14 -14
  136. package/dist/{manager-CBApH7eR.js → manager-BIMh_eSm.js} +5 -5
  137. package/dist/{manager-CyJH6WMg.js → manager-CwinWQoz.js} +5 -5
  138. package/dist/{manager-DScY_ZTT.js → manager-DkqF1GiK.js} +7 -7
  139. package/dist/{manager-DseK7RWj.js → manager-T1XfGchB.js} +8 -8
  140. package/dist/{manifest-registry-DFckk-L8.js → manifest-registry-CQhdnDBZ.js} +2 -2
  141. package/dist/{manifest-registry-BTgLN_W2.js → manifest-registry-u0okVSkU.js} +2 -2
  142. package/dist/{message-channel-0717wOz-.js → message-channel-BLi2a6Yw.js} +1 -1
  143. package/dist/{message-channel-BlgPSDAh.js → message-channel-C_MmebBt.js} +1 -1
  144. package/dist/{model-auth-CbqRVYRp.js → model-auth-CabXIF6O.js} +57 -19
  145. package/dist/{model-selection-unMJyUIE.js → model-selection-BLuqsGVB.js} +59 -21
  146. package/dist/{model-selection-B9Y7dKQd.js → model-selection-C1GmkTAV.js} +57 -19
  147. package/dist/{models-cli-B1cLGcRz.js → models-cli-9jmDv-h3.js} +50 -48
  148. package/dist/{models-cli-D7sChCi6.js → models-cli-zS9rtWz8.js} +48 -46
  149. package/dist/{node-cli-ic2C1xs2.js → node-cli-CrpTxTTs.js} +26 -24
  150. package/dist/{node-cli-CS3KwBh1.js → node-cli-wemUMCg-.js} +25 -23
  151. package/dist/{node-service-D_Cdq1JI.js → node-service-C8DTHTMg.js} +2 -2
  152. package/dist/{node-service-_vgO5xR-.js → node-service-WQuEKz6W.js} +1 -1
  153. package/dist/{nodes-cli-CipcvVMc.js → nodes-cli-BaU2SIFw.js} +16 -16
  154. package/dist/{nodes-cli-B1meaW7S.js → nodes-cli-Dx23D72n.js} +16 -16
  155. package/dist/{nodes-screen-N-4_0VIu.js → nodes-screen-C0IuBqUL.js} +1 -1
  156. package/dist/{note-CAM9PbSJ.js → note-BhRSeNeu.js} +2 -2
  157. package/dist/{note-Ci08TSbV.js → note-hhtubr2j.js} +1 -1
  158. package/dist/{onboard-channels-DMcOT0dj.js → onboard-channels-C501x8GI.js} +8 -8
  159. package/dist/{onboard-channels-CsT3E4bT.js → onboard-channels-Dxzroasd.js} +8 -8
  160. package/dist/{onboard-skills-DoxkpnEU.js → onboard-skills-DV0Qzvjj.js} +19 -19
  161. package/dist/{onboard-skills-D-BrCoRN.js → onboard-skills-rlBHcu3Q.js} +18 -18
  162. package/dist/{onboarding-B92952fz.js → onboarding-CN-EDLjd.js} +34 -34
  163. package/dist/{pairing-cli-BDUJ5VoX.js → pairing-cli-CDHG4xuI.js} +15 -15
  164. package/dist/{pairing-cli-0wbU1u8d.js → pairing-cli-CQP34Dlx.js} +14 -14
  165. package/dist/{pairing-labels-3o3QO3Qn.js → pairing-labels-B6CN0SNH.js} +1 -1
  166. package/dist/{pairing-labels-Bin1K7_f.js → pairing-labels-CgNHnjzT.js} +1 -1
  167. package/dist/{pairing-store-CL4rJ7m7.js → pairing-store-CmlRVqOz.js} +2 -2
  168. package/dist/{pairing-store-fIWI3pXG.js → pairing-store-Dp5_JGnG.js} +3 -3
  169. package/dist/{path-env-CXWUFfFv.js → path-env-CLvYNwtL.js} +1 -1
  170. package/dist/{path-env-C5FR_Eay.js → path-env-CaYUVIML.js} +2 -2
  171. package/dist/{paths-DwKNqk_S.js → paths-B0a4ywSO.js} +30 -5
  172. package/dist/{paths-RITJT4UY.js → paths-B49s6UZQ.js} +30 -5
  173. package/dist/{paths-CB2fqqbX.js → paths-D0O87MfH.js} +30 -5
  174. package/dist/{paths-IivnSNkP.js → paths-DLINmNFQ.js} +31 -6
  175. package/dist/{pi-embedded-DhYItk8O.js → pi-embedded-Ctrt2kz0.js} +1109 -662
  176. package/dist/{pi-embedded-helpers-CmftU5Zj.js → pi-embedded-helpers-CMKLjW6X.js} +8 -5
  177. package/dist/{pi-embedded-helpers-CfXnSIFx.js → pi-embedded-helpers-CUzTc1v6.js} +170 -19
  178. package/dist/{pi-embedded-helpers-Uan-3N1T.js → pi-embedded-helpers-DfwkwPYD.js} +7 -4
  179. package/dist/{pi-embedded-helpers-Bri9tk9g.js → pi-embedded-helpers-WDwx99UA.js} +170 -19
  180. package/dist/{pi-tools.policy-CJFi1sny.js → pi-tools.policy-BpsROZbz.js} +4 -4
  181. package/dist/{plugin-auto-enable-BY4CqJbD.js → plugin-auto-enable-Bqhc3w5n.js} +5 -5
  182. package/dist/{plugin-auto-enable-DbQrtQjL.js → plugin-auto-enable-PW76g_PJ.js} +5 -5
  183. package/dist/plugin-sdk/agents/pi-embedded-runner/run/params.d.ts +2 -0
  184. package/dist/plugin-sdk/agents/pi-embedded-runner/run/types.d.ts +2 -0
  185. package/dist/plugin-sdk/agents/pi-embedded-runner/types.d.ts +15 -0
  186. package/dist/plugin-sdk/agents/pi-embedded-subscribe.handlers.tools.d.ts +1 -1
  187. package/dist/plugin-sdk/agents/pi-embedded-subscribe.handlers.types.d.ts +2 -0
  188. package/dist/plugin-sdk/agents/pi-embedded-subscribe.types.d.ts +2 -0
  189. package/dist/plugin-sdk/agents/session-tool-result-guard-wrapper.d.ts +2 -0
  190. package/dist/plugin-sdk/agents/session-tool-result-guard.d.ts +4 -0
  191. package/dist/plugin-sdk/agents/tools/agent-step.d.ts +3 -0
  192. package/dist/plugin-sdk/agents/usage.d.ts +1 -0
  193. package/dist/plugin-sdk/auto-reply/reply/reply-reference.d.ts +1 -1
  194. package/dist/plugin-sdk/auto-reply/reply/session-run-accounting.d.ts +11 -0
  195. package/dist/plugin-sdk/auto-reply/reply/session-usage.d.ts +8 -0
  196. package/dist/plugin-sdk/browser/control-auth.d.ts +13 -0
  197. package/dist/plugin-sdk/channels/plugins/onboarding/signal.d.ts +1 -0
  198. package/dist/plugin-sdk/cli/prompt.d.ts +1 -0
  199. package/dist/plugin-sdk/commands/agent/types.d.ts +2 -0
  200. package/dist/plugin-sdk/config/sessions/paths.d.ts +7 -2
  201. package/dist/plugin-sdk/config/types.agents.d.ts +2 -0
  202. package/dist/plugin-sdk/config/types.discord.d.ts +5 -0
  203. package/dist/plugin-sdk/config/types.gateway.d.ts +15 -0
  204. package/dist/plugin-sdk/config/types.hooks.d.ts +15 -0
  205. package/dist/plugin-sdk/config/zod-schema.agents.d.ts +1 -0
  206. package/dist/plugin-sdk/config/zod-schema.d.ts +11 -0
  207. package/dist/plugin-sdk/config/zod-schema.providers-core.d.ts +9 -0
  208. package/dist/plugin-sdk/config/zod-schema.providers.d.ts +4 -0
  209. package/dist/plugin-sdk/discord/monitor/allow-list.d.ts +15 -0
  210. package/dist/plugin-sdk/discord/send.types.d.ts +3 -0
  211. package/dist/plugin-sdk/gateway/auth.d.ts +36 -0
  212. package/dist/plugin-sdk/gateway/protocol/schema/agent.d.ts +6 -0
  213. package/dist/plugin-sdk/gateway/session-utils.fs.d.ts +3 -1
  214. package/dist/plugin-sdk/index.js +295 -99
  215. package/dist/plugin-sdk/infra/binaries.d.ts +3 -0
  216. package/dist/plugin-sdk/infra/heartbeat-runner.d.ts +1 -0
  217. package/dist/plugin-sdk/infra/net/fetch-guard.d.ts +1 -0
  218. package/dist/plugin-sdk/infra/net/ssrf.d.ts +1 -0
  219. package/dist/plugin-sdk/infra/tailscale.d.ts +34 -0
  220. package/dist/plugin-sdk/infra/tmp-openclaw-dir.d.ts +10 -0
  221. package/dist/plugin-sdk/logging/logger.d.ts +1 -1
  222. package/dist/plugin-sdk/media/input-files.d.ts +5 -0
  223. package/dist/plugin-sdk/routing/resolve-route.d.ts +3 -1
  224. package/dist/plugin-sdk/security/external-content.d.ts +1 -1
  225. package/dist/plugin-sdk/security/secret-equal.d.ts +1 -0
  226. package/dist/plugin-sdk/sessions/input-provenance.d.ts +16 -0
  227. package/dist/plugin-sdk/signal/monitor/event-handler.types.d.ts +8 -0
  228. package/dist/plugin-sdk/signal/monitor/mentions.d.ts +2 -0
  229. package/dist/{plugins-3GyCj5KL.js → plugins-4Hqd1WGf.js} +3 -3
  230. package/dist/{plugins-BL9lIXSA.js → plugins-X7d_tfTE.js} +4 -4
  231. package/dist/{plugins-cli-Ce7VsvZh.js → plugins-cli-Bgku3EGj.js} +253 -46
  232. package/dist/{plugins-cli-e9gUebMd.js → plugins-cli-CVToH3if.js} +254 -47
  233. package/dist/{ports-DupIRXQ0.js → ports-qkt29rdC.js} +2 -2
  234. package/dist/{program-u22vbFpH.js → program-Cf7lkBur.js} +82 -82
  235. package/dist/{progress-g9R--HZD.js → progress-C9kngsTD.js} +1 -1
  236. package/dist/{progress-Da1ehW-x.js → progress-DWqhRakV.js} +1 -1
  237. package/dist/{prompt-style-Dc0C5HC9.js → prompt-style-BFH5D5LN.js} +1 -1
  238. package/dist/{prompt-style-lmJDcgtA.js → prompt-style-CIbmaxSa.js} +1 -1
  239. package/dist/{pw-ai-C43wv1ZF.js → pw-ai-8mdv3h-d.js} +7 -6
  240. package/dist/{pw-ai-DTZVjndL.js → pw-ai-CM1IsSgZ.js} +5 -5
  241. package/dist/{pw-ai-zVebjrSG.js → pw-ai-FGoRVblI.js} +3 -3
  242. package/dist/{pw-ai-CWrnJ98b.js → pw-ai-sS1fRKW_.js} +3 -3
  243. package/dist/{qmd-manager-NPD5Yh_4.js → qmd-manager-C67Fc8aN.js} +4 -4
  244. package/dist/{qmd-manager-ozZ933qc.js → qmd-manager-CXVbfg99.js} +7 -7
  245. package/dist/{qmd-manager-DBCZ1sio.js → qmd-manager-RMRE8Tqt.js} +6 -6
  246. package/dist/{qmd-manager-a9Bt0405.js → qmd-manager-pyc_MTIe.js} +4 -4
  247. package/dist/{register.subclis-BpX3ulH1.js → register.subclis-C02e4zuJ.js} +28 -28
  248. package/dist/{reply-m467_fOC.js → reply-DICXkh_C.js} +911 -568
  249. package/dist/{routes-82Ywfho6.js → routes-CmOI1hIH.js} +29 -11
  250. package/dist/{routes-BqxA3ZYr.js → routes-DewK5tq2.js} +29 -12
  251. package/dist/{rpc-DcGBG-Fp.js → rpc-DHr30euf.js} +3 -3
  252. package/dist/{rpc-CfdBHlnp.js → rpc-T300F8zI.js} +3 -3
  253. package/dist/{run-main-aolvSfj3.js → run-main-C5wpthq1.js} +84 -84
  254. package/dist/{runner-C1G8RFWl.js → runner-CY0nmVme.js} +9 -9
  255. package/dist/{runner-BCBs8JKA.js → runner-Cfm5nTMc.js} +6 -6
  256. package/dist/{runner-CInKPsiP.js → runner-D_dujMod.js} +8 -8
  257. package/dist/{runner-Cwfn-VOM.js → runner-DrGYLH5K.js} +6 -6
  258. package/dist/{sandbox-B0K9e6Fw.js → sandbox-BKYnhYQH.js} +23 -15
  259. package/dist/{sandbox-BW8Xnkw1.js → sandbox-Bhjnh1Xg.js} +21 -13
  260. package/dist/{sandbox-cli-mKCs2J0i.js → sandbox-cli-DBsAjZJN.js} +20 -20
  261. package/dist/{sandbox-cli-BD5LkZ0B.js → sandbox-cli-rV9LtFeu.js} +19 -19
  262. package/dist/{security-cli-kgI4soGy.js → security-cli-BIwJM_rs.js} +27 -27
  263. package/dist/{security-cli-kz8TiyqU.js → security-cli-BRjny8Yu.js} +26 -26
  264. package/dist/{server-context-fX4xiYRh.js → server-context-BGpGs3qd.js} +7 -7
  265. package/dist/{server-context-Lb-eUZG_.js → server-context-Cl0U0vE3.js} +5 -5
  266. package/dist/{server-node-events-Dx18uVrH.js → server-node-events-CBfTbiTA.js} +45 -43
  267. package/dist/{server-node-events-KqZMN30F.js → server-node-events-QCvh8EgI.js} +45 -43
  268. package/dist/{service-DZMXgMra.js → service--nPk7DvT.js} +3 -3
  269. package/dist/{service-DNcIZ5Kp.js → service-99RDXwX4.js} +2 -2
  270. package/dist/{service-audit-0WLGnoNT.js → service-audit-DnLmRGQt.js} +4 -4
  271. package/dist/{service-audit-uhZSlxeb.js → service-audit-ckBaRCVC.js} +3 -3
  272. package/dist/{session-cost-usage-HU4OeRgw.js → session-cost-usage-D7HuoSSD.js} +10 -8
  273. package/dist/{session-cost-usage-CL8gnHRN.js → session-cost-usage-D9hHANWI.js} +10 -8
  274. package/dist/{shared-j4Qtr475.js → shared-Bs4vduG4.js} +3 -3
  275. package/dist/{shared-BBw6F-YC.js → shared-CEY5IkwG.js} +2 -2
  276. package/dist/{shared-DOZs2SoH.js → shared-DRohONn_.js} +3 -3
  277. package/dist/{shared-CtP9K-o2.js → shared-ICqOZibV.js} +3 -3
  278. package/dist/{skill-scanner-C_fQzVDu.js → skill-scanner-rHMtUHtP.js} +1 -1
  279. package/dist/{skills-BvPUNjxo.js → skills-DRjfSQT3.js} +128 -4
  280. package/dist/{skills-aFOsriMP.js → skills-DprQj9X2.js} +129 -5
  281. package/dist/{skills-cli-oWaTJzZd.js → skills-cli-9WO-C55s.js} +12 -12
  282. package/dist/{skills-cli-E6shXpdd.js → skills-cli-B9eej-EW.js} +13 -13
  283. package/dist/{skills-status-D4vbIMnz.js → skills-status-5U3P3YfJ.js} +3 -3
  284. package/dist/{skills-status-DJDaA2Ur.js → skills-status-TDIgVd1K.js} +2 -2
  285. package/dist/{sqlite-B7FPASCO.js → sqlite-BINzs1U0.js} +2 -2
  286. package/dist/{sqlite-B4Z1_Ioc.js → sqlite-D4w5TejA.js} +2 -2
  287. package/dist/{sqlite-BkYnxkQO.js → sqlite-DRRHmlug.js} +2 -2
  288. package/dist/{sqlite-EuQPVXvn.js → sqlite-F6PGkEm1.js} +2 -2
  289. package/dist/{status-B2Yr-2J5.js → status-BKGkKC_v.js} +3 -3
  290. package/dist/{status-DW7m5xUN.js → status-CiHtHdaa.js} +4 -4
  291. package/dist/{status-CxhnUa5J.js → status-DDWoOpeB.js} +33 -33
  292. package/dist/{subsystem-Bv7dGhES.js → subsystem-BoExtIHo.js} +32 -13
  293. package/dist/{system-cli-0JXhJNWm.js → system-cli-B6lr60Io.js} +14 -14
  294. package/dist/{system-cli-D-0OaMtH.js → system-cli-CprW9G3h.js} +14 -14
  295. package/dist/{systemd-CNTodvCO.js → systemd-C0VZriGM.js} +2 -2
  296. package/dist/{systemd-CUJJHgHa.js → systemd-DrmBtJ5T.js} +3 -3
  297. package/dist/{systemd-hints-cmHtrXUl.js → systemd-hints-DZtXiVHa.js} +1 -1
  298. package/dist/{systemd-linger-CArPbmvv.js → systemd-linger-NC2kl1SC.js} +2 -2
  299. package/dist/{systemd-linger-XvT9Y9sb.js → systemd-linger-xdn3BdPh.js} +2 -2
  300. package/dist/{table-DzBBIqHO.js → table-B8dx3v4v.js} +2 -2
  301. package/dist/{table-oJQPTUL6.js → table-CwulTLQp.js} +1 -1
  302. package/dist/{tool-display-Na-EVL83.js → tool-display-CZRIDMRm.js} +1 -1
  303. package/dist/{tool-display-sHJa3kRs.js → tool-display-ClRud3pg.js} +2 -2
  304. package/dist/{tui-nGp8ltQK.js → tui-CVTQn-dC.js} +9 -9
  305. package/dist/{tui-Biw7aqPj.js → tui-Lu8FdrlK.js} +9 -9
  306. package/dist/{tui-cli-C9FEfG7C.js → tui-cli-BLpTj1X9.js} +25 -25
  307. package/dist/{tui-cli-Dxnu5JGl.js → tui-cli-BLx5kL2I.js} +25 -25
  308. package/dist/{tui-formatters-BiNTNGwg.js → tui-formatters-CNySEfJN.js} +5 -5
  309. package/dist/{tui-formatters-C_baVYUz.js → tui-formatters-DePhZK3J.js} +5 -5
  310. package/dist/{update-C4rsLj2F.js → update-DHVxMTpQ.js} +3 -3
  311. package/dist/{update-uwUWrKFu.js → update-DU1geolI.js} +3 -3
  312. package/dist/{update-cli-cNd_G9E6.js → update-cli-C0hUvJWK.js} +66 -66
  313. package/dist/{update-cli-CBXp-c4C.js → update-cli-Wb1GB3rL.js} +68 -68
  314. package/dist/{update-runner-BLsqC24J.js → update-runner--ixK4J3W.js} +10 -10
  315. package/dist/{update-runner-C_FDpmA3.js → update-runner-7Qa1T9y6.js} +9 -9
  316. package/dist/{utils-Dk86IbEs.js → utils-BLJAc3ZV.js} +1 -1
  317. package/dist/{utils-BHPdZE4h.js → utils-Cd9QdCHh.js} +1 -1
  318. package/dist/{webhooks-cli-BpBKXL7W.js → webhooks-cli-DgcMy7RG.js} +12 -12
  319. package/dist/{webhooks-cli-wNfhfKqm.js → webhooks-cli-aVzUcJY9.js} +11 -11
  320. package/dist/{widearea-dns-WVCWJTEb.js → widearea-dns-BaIgNEhY.js} +1 -1
  321. package/dist/{widearea-dns-BWYPcfby.js → widearea-dns-DzuRdwk5.js} +1 -1
  322. package/dist/{ws-log-Cafylho7.js → ws-log-CIXbLCka.js} +1 -1
  323. package/dist/{ws-log-DTUOUVgR.js → ws-log-DcQFZByi.js} +1 -1
  324. package/dist/{wsl-B-H6Z5wp.js → wsl-BUOkxKJu.js} +2 -2
  325. package/docs/automation/webhook.md +43 -2
  326. package/docs/channels/discord.md +29 -1
  327. package/docs/cli/plugins.md +20 -1
  328. package/docs/cli/security.md +1 -0
  329. package/docs/concepts/session-tool.md +1 -0
  330. package/docs/gateway/configuration-reference.md +11 -0
  331. package/docs/gateway/configuration.md +3 -0
  332. package/docs/gateway/openresponses-http-api.md +15 -0
  333. package/docs/gateway/security/index.md +3 -0
  334. package/docs/help/faq.md +9 -0
  335. package/docs/install/installer.md +20 -0
  336. package/docs/reference/transcript-hygiene.md +18 -0
  337. package/docs/tools/browser.md +6 -0
  338. package/extensions/diagnostics-otel/package.json +9 -9
  339. package/extensions/feishu/package.json +1 -1
  340. package/extensions/feishu/src/config-schema.ts +6 -0
  341. package/extensions/feishu/src/reply-dispatcher.test.ts +116 -0
  342. package/extensions/feishu/src/reply-dispatcher.ts +124 -67
  343. package/extensions/feishu/src/streaming-card.ts +223 -0
  344. package/extensions/feishu/src/targets.test.ts +16 -0
  345. package/extensions/feishu/src/targets.ts +1 -1
  346. package/extensions/irc/src/client.ts +1 -1
  347. package/extensions/minimax-portal-auth/index.ts +7 -5
  348. package/extensions/nostr/package.json +1 -1
  349. package/package.json +13 -13
  350. package/dist/auth-BcNHFK-i.js +0 -184
  351. package/dist/auth-jrfLXze7.js +0 -184
  352. /package/dist/{archive-DqNr5i8b.js → archive-beaSfAzA.js} +0 -0
  353. /package/dist/{brew-BIrWdDps.js → brew-BUIxHEkn.js} +0 -0
  354. /package/dist/{brew-6UyogeLe.js → brew-ROHf0-Xp.js} +0 -0
  355. /package/dist/{constants-DuoCkWRh.js → constants-BvQ6S8j5.js} +0 -0
  356. /package/dist/{errors-x4NYs-1P.js → errors-DjZBTJJ3.js} +0 -0
  357. /package/dist/{helpers-BDvtkJjw.js → helpers-HyeZXsnu.js} +0 -0
  358. /package/dist/{is-main-CE1eOBYb.js → is-main-BWoXGz7p.js} +0 -0
  359. /package/dist/{parse-Cjiudy6x.js → parse-Bw0oH-rT.js} +0 -0
  360. /package/dist/{parse-timeout-DFSPLxpY.js → parse-timeout-D1XX_zN_.js} +0 -0
  361. /package/dist/{prompts-BOz5176z.js → prompts-Bg96reub.js} +0 -0
  362. /package/dist/{redact-DuEEf1p1.js → redact-Br9GfacZ.js} +0 -0
  363. /package/dist/{skill-scanner-CprFkZib.js → skill-scanner-CucvxYhu.js} +0 -0
  364. /package/dist/{transcript-events-CZ8CG4ht.js → transcript-events-BtNd-j6q.js} +0 -0
@@ -1,41 +1,41 @@
1
1
  import { d as resolveIsNixMode, f as resolveLegacyStateDirs, g as resolveStateDir, m as resolveOAuthDir, p as resolveNewStateDir, t as CONFIG_PATH, u as resolveGatewayPort, y as resolveRequiredHomeDir } from "./paths-DVBShlw6.js";
2
- import { V as getResolvedLoggerSettings, c as defaultRuntime } from "./subsystem-Bv7dGhES.js";
3
- import { C as shortenHomePath, f as isRecord, v as resolveHomeDir$1, w as sleep } from "./utils-BHPdZE4h.js";
4
- import { jt as randomToken, kt as printWizardHeader, ut as loadOpenClawPlugins, wt as guardCancel, yt as applyWizardMetadata } from "./reply-m467_fOC.js";
2
+ import { V as getResolvedLoggerSettings, c as defaultRuntime } from "./subsystem-BoExtIHo.js";
3
+ import { C as shortenHomePath, f as isRecord, v as resolveHomeDir$1, w as sleep } from "./utils-Cd9QdCHh.js";
4
+ import { jt as randomToken, kt as printWizardHeader, ut as loadOpenClawPlugins, wt as guardCancel, yt as applyWizardMetadata } from "./reply-DICXkh_C.js";
5
5
  import { i as buildAgentMainSessionKey, l as normalizeAgentId, r as DEFAULT_MAIN_KEY, t as DEFAULT_ACCOUNT_ID } from "./session-key-BWxPj0z_.js";
6
- import { n as runExec, t as runCommandWithTimeout } from "./exec-DXtR2fhb.js";
6
+ import { n as runExec, t as runCommandWithTimeout } from "./exec-YIosokWE.js";
7
7
  import { t as resolveOpenClawPackageRoot } from "./openclaw-root-1VeFrph_.js";
8
- import { c as resolveDefaultAgentId, d as DEFAULT_AGENTS_FILENAME, s as resolveAgentWorkspaceDir } from "./agent-scope---6LLHj0.js";
9
- import { Dt as DEFAULT_MODEL, Ot as DEFAULT_PROVIDER, Tt as CODEX_CLI_PROFILE_ID, _t as updateAuthProfileStoreWithLock, at as resolveApiKeyForProfile, d as resolveConfiguredModelRef, ht as ensureAuthProfileStore, i as getModelRefStatus, it as resolveProfileUnusableUntilForDisplay, p as resolveHooksGmailModel, ut as repairOAuthProfileIdMismatch, wt as CLAUDE_CLI_PROFILE_ID } from "./model-selection-unMJyUIE.js";
8
+ import { c as resolveDefaultAgentId, d as DEFAULT_AGENTS_FILENAME, s as resolveAgentWorkspaceDir } from "./agent-scope-CQCus0rI.js";
9
+ import { Dt as DEFAULT_MODEL, Ot as DEFAULT_PROVIDER, Tt as CODEX_CLI_PROFILE_ID, _t as updateAuthProfileStoreWithLock, at as resolveApiKeyForProfile, d as resolveConfiguredModelRef, ht as ensureAuthProfileStore, i as getModelRefStatus, it as resolveProfileUnusableUntilForDisplay, p as resolveHooksGmailModel, ut as repairOAuthProfileIdMismatch, wt as CLAUDE_CLI_PROFILE_ID } from "./model-selection-BLuqsGVB.js";
10
10
  import { t as formatCliCommand } from "./command-format-ChfKqObn.js";
11
- import { t as isTruthyEnvValue } from "./env-DE9xvYOL.js";
12
- import { c as writeConfigFile, n as migrateLegacyConfig, o as readConfigFileSnapshot, u as OpenClawSchema } from "./config-DH9TLUNc.js";
13
- import { n as listChannelPlugins } from "./plugins-BL9lIXSA.js";
14
- import { L as resolveMainSessionKey, P as canonicalizeMainSessionAlias, Q as resolveSandboxScope, ct as DEFAULT_SANDBOX_BROWSER_IMAGE, d as loadSessionStore, lt as DEFAULT_SANDBOX_COMMON_IMAGE, m as saveSessionStore, ut as DEFAULT_SANDBOX_IMAGE } from "./sandbox-BW8Xnkw1.js";
15
- import { s as loadModelCatalog } from "./runner-CInKPsiP.js";
16
- import { d as inspectPortUsage, p as formatPortDiagnostics } from "./chrome-juQxt0zf.js";
11
+ import { t as isTruthyEnvValue } from "./env-ONzUVAG2.js";
12
+ import { c as writeConfigFile, n as migrateLegacyConfig, o as readConfigFileSnapshot, u as OpenClawSchema } from "./config-aFQssWKX.js";
13
+ import { n as listChannelPlugins } from "./plugins-X7d_tfTE.js";
14
+ import { L as resolveMainSessionKey, P as canonicalizeMainSessionAlias, Q as resolveSandboxScope, ct as DEFAULT_SANDBOX_BROWSER_IMAGE, d as loadSessionStore, lt as DEFAULT_SANDBOX_COMMON_IMAGE, m as saveSessionStore, ut as DEFAULT_SANDBOX_IMAGE } from "./sandbox-Bhjnh1Xg.js";
15
+ import { s as loadModelCatalog } from "./runner-D_dujMod.js";
16
+ import { d as inspectPortUsage, p as formatPortDiagnostics } from "./chrome-Cvr-57lg.js";
17
17
  import { c as resolveGatewayBindHost, r as isLoopbackHost } from "./ws-CHCQHs0F.js";
18
- import { a as resolveSessionTranscriptsDirForAgent, n as resolveSessionFilePath, o as resolveStorePath } from "./paths-RITJT4UY.js";
19
- import { n as isWSL, r as isWSLEnv } from "./dispatcher-BHsNwFe-.js";
20
- import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-C9az806y.js";
21
- import { i as readChannelAllowFromStore } from "./pairing-store-CL4rJ7m7.js";
22
- import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint } from "./prompt-style-lmJDcgtA.js";
23
- import { d as resolveGatewaySystemdServiceName, f as resolveGatewayWindowsTaskName, l as resolveGatewayLaunchAgentLabel, m as resolveNodeLaunchAgentLabel } from "./constants-DuoCkWRh.js";
24
- import { a as gatewayInstallErrorHint, d as renderSystemNodeWarning, i as buildGatewayInstallPlan, n as GATEWAY_DAEMON_RUNTIME_OPTIONS, p as resolveSystemNodeInfo, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-B05PME1z.js";
25
- import { t as resolveChannelDefaultAccountId } from "./helpers-BDvtkJjw.js";
26
- import { n as logConfigUpdated } from "./logging-CeHn2itV.js";
27
- import { t as note$1 } from "./note-CAM9PbSJ.js";
28
- import { t as applyPluginAutoEnable } from "./plugin-auto-enable-DbQrtQjL.js";
29
- import { i as resolveControlUiDistIndexPathForRoot, l as healthCommand, r as resolveControlUiDistIndexHealth, t as formatHealthCheckFailure } from "./health-format-C0C_Apce.js";
30
- import { c as doctorShellCompletion, t as runGatewayUpdate } from "./update-runner-C_FDpmA3.js";
31
- import { i as resolveGatewayAuth } from "./auth-jrfLXze7.js";
32
- import { t as buildWorkspaceSkillStatus } from "./skills-status-D4vbIMnz.js";
33
- import { a as repairLaunchAgentBootstrap, i as launchAgentPlistExists, n as isLaunchAgentListed, o as resolveGatewayLogPaths, r as isLaunchAgentLoaded, t as resolveGatewayService } from "./service-DZMXgMra.js";
34
- import { r as isSystemdUserServiceAvailable } from "./systemd-CUJJHgHa.js";
35
- import { a as renderGatewayServiceCleanupHints, i as findExtraGatewayServices, n as auditGatewayServiceConfig, o as readLastGatewayErrorLine, r as needsNodeRuntimeMigration, t as SERVICE_AUDIT_CODES } from "./service-audit-0WLGnoNT.js";
36
- import { t as collectChannelStatusIssues } from "./channels-status-issues-CbULFg2X.js";
37
- import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-XvT9Y9sb.js";
38
- import { n as buildAuthHealthSummary, r as formatRemainingShort, t as DEFAULT_OAUTH_WARN_MS } from "./auth-health-BB3e3OmN.js";
18
+ import { n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, s as resolveStorePath } from "./paths-B49s6UZQ.js";
19
+ import { n as isWSL, r as isWSLEnv } from "./dispatcher-DY51b-Zc.js";
20
+ import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-SolyGS1r.js";
21
+ import { i as readChannelAllowFromStore } from "./pairing-store-CmlRVqOz.js";
22
+ import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint } from "./prompt-style-CIbmaxSa.js";
23
+ import { i as resolveGatewayAuth } from "./auth-CQNl_IaI.js";
24
+ import { d as resolveGatewaySystemdServiceName, f as resolveGatewayWindowsTaskName, l as resolveGatewayLaunchAgentLabel, m as resolveNodeLaunchAgentLabel } from "./constants-BvQ6S8j5.js";
25
+ import { a as gatewayInstallErrorHint, d as renderSystemNodeWarning, i as buildGatewayInstallPlan, n as GATEWAY_DAEMON_RUNTIME_OPTIONS, p as resolveSystemNodeInfo, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-Bsjeut6m.js";
26
+ import { t as resolveChannelDefaultAccountId } from "./helpers-HyeZXsnu.js";
27
+ import { n as logConfigUpdated } from "./logging-BAyPwvdH.js";
28
+ import { t as note$1 } from "./note-BhRSeNeu.js";
29
+ import { t as applyPluginAutoEnable } from "./plugin-auto-enable-PW76g_PJ.js";
30
+ import { i as resolveControlUiDistIndexPathForRoot, l as healthCommand, r as resolveControlUiDistIndexHealth, t as formatHealthCheckFailure } from "./health-format-KGPokKJH.js";
31
+ import { c as doctorShellCompletion, t as runGatewayUpdate } from "./update-runner-7Qa1T9y6.js";
32
+ import { t as buildWorkspaceSkillStatus } from "./skills-status-5U3P3YfJ.js";
33
+ import { a as repairLaunchAgentBootstrap, i as launchAgentPlistExists, n as isLaunchAgentListed, o as resolveGatewayLogPaths, r as isLaunchAgentLoaded, t as resolveGatewayService } from "./service--nPk7DvT.js";
34
+ import { r as isSystemdUserServiceAvailable } from "./systemd-DrmBtJ5T.js";
35
+ import { a as renderGatewayServiceCleanupHints, i as findExtraGatewayServices, n as auditGatewayServiceConfig, o as readLastGatewayErrorLine, r as needsNodeRuntimeMigration, t as SERVICE_AUDIT_CODES } from "./service-audit-DnLmRGQt.js";
36
+ import { t as collectChannelStatusIssues } from "./channels-status-issues-DDAWeT-6.js";
37
+ import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-NC2kl1SC.js";
38
+ import { n as buildAuthHealthSummary, r as formatRemainingShort, t as DEFAULT_OAUTH_WARN_MS } from "./auth-health-C4L4FGBA.js";
39
39
  import { n as renderSystemdUnavailableHints, t as isSystemdUnavailableDetail } from "./systemd-hints-CXNtLw9Q.js";
40
40
  import fs from "node:fs";
41
41
  import os from "node:os";
@@ -1,40 +1,40 @@
1
- import { F as CONFIG_PATH, G as resolveIsNixMode, J as resolveOAuthDir, K as resolveLegacyStateDirs, M as getResolvedLoggerSettings, W as resolveGatewayPort, X as resolveStateDir, n as isTruthyEnvValue, p as defaultRuntime, pt as resolveRequiredHomeDir, q as resolveNewStateDir } from "./entry.js";
2
- import { Dt as CLAUDE_CLI_PROFILE_ID, E as getModelRefStatus, F as resolveHooksGmailModel, N as resolveConfiguredModelRef, Ot as CODEX_CLI_PROFILE_ID, Tt as DEFAULT_PROVIDER, _ as ensureAuthProfileStore, f as repairOAuthProfileIdMismatch, o as resolveProfileUnusableUntilForDisplay, s as resolveApiKeyForProfile, wt as DEFAULT_MODEL, y as updateAuthProfileStoreWithLock } from "./auth-profiles-CcJ3hrog.js";
3
- import { t as formatCliCommand } from "./command-format-ayFsmwwz.js";
1
+ import { G as resolveGatewayPort, I as CONFIG_PATH, J as resolveNewStateDir, K as resolveIsNixMode, N as getResolvedLoggerSettings, Y as resolveOAuthDir, Z as resolveStateDir, ht as resolveRequiredHomeDir, n as isTruthyEnvValue, p as defaultRuntime, q as resolveLegacyStateDirs } from "./entry.js";
2
+ import { Dt as CLAUDE_CLI_PROFILE_ID, E as getModelRefStatus, F as resolveHooksGmailModel, N as resolveConfiguredModelRef, Ot as CODEX_CLI_PROFILE_ID, Tt as DEFAULT_PROVIDER, _ as ensureAuthProfileStore, f as repairOAuthProfileIdMismatch, o as resolveProfileUnusableUntilForDisplay, s as resolveApiKeyForProfile, wt as DEFAULT_MODEL, y as updateAuthProfileStoreWithLock } from "./auth-profiles-ByNs3eEm.js";
3
+ import { t as formatCliCommand } from "./command-format-Bxe0mWee.js";
4
4
  import { i as buildAgentMainSessionKey, l as normalizeAgentId, r as DEFAULT_MAIN_KEY, t as DEFAULT_ACCOUNT_ID } from "./session-key-DVvxnFKg.js";
5
- import { C as sleep, S as shortenHomePath, _ as resolveHomeDir$1, d as isRecord } from "./utils-Dk86IbEs.js";
6
- import { n as runExec, t as runCommandWithTimeout } from "./exec-B8JKbXKW.js";
5
+ import { C as sleep, S as shortenHomePath, _ as resolveHomeDir$1, d as isRecord } from "./utils-BLJAc3ZV.js";
6
+ import { n as runExec, t as runCommandWithTimeout } from "./exec-CACT5OAW.js";
7
7
  import { t as resolveOpenClawPackageRoot } from "./openclaw-root-BNlEap4i.js";
8
- import { c as resolveDefaultAgentId, d as DEFAULT_AGENTS_FILENAME, s as resolveAgentWorkspaceDir } from "./agent-scope-RCSw6gHy.js";
9
- import { c as writeConfigFile, n as migrateLegacyConfig, o as readConfigFileSnapshot, u as OpenClawSchema } from "./config-B7sno9eI.js";
8
+ import { c as resolveDefaultAgentId, d as DEFAULT_AGENTS_FILENAME, s as resolveAgentWorkspaceDir } from "./agent-scope-CsRbLH4l.js";
9
+ import { c as writeConfigFile, n as migrateLegacyConfig, o as readConfigFileSnapshot, u as OpenClawSchema } from "./config-Bdhomfei.js";
10
10
  import { c as resolveGatewayBindHost, r as isLoopbackHost } from "./ws-C0k_dhCP.js";
11
- import { d as formatPortDiagnostics, l as inspectPortUsage } from "./chrome-yIKmOzCO.js";
12
- import { i as resolveGatewayAuth } from "./auth-BcNHFK-i.js";
13
- import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-Yxns4CVq.js";
14
- import { t as applyPluginAutoEnable } from "./plugin-auto-enable-BY4CqJbD.js";
15
- import { n as listChannelPlugins } from "./plugins-3GyCj5KL.js";
16
- import { _ as randomToken, a as applyWizardMetadata, h as printWizardHeader, t as loadOpenClawPlugins, u as guardCancel } from "./loader-Caow9TPA.js";
17
- import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint } from "./prompt-style-Dc0C5HC9.js";
18
- import { t as note$1 } from "./note-Ci08TSbV.js";
11
+ import { d as formatPortDiagnostics, l as inspectPortUsage } from "./chrome-foEwx3lN.js";
12
+ import { i as resolveGatewayAuth } from "./auth-9x3lqfIY.js";
13
+ import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-DVYCIV8m.js";
14
+ import { t as applyPluginAutoEnable } from "./plugin-auto-enable-Bqhc3w5n.js";
15
+ import { n as listChannelPlugins } from "./plugins-4Hqd1WGf.js";
16
+ import { _ as randomToken, a as applyWizardMetadata, h as printWizardHeader, t as loadOpenClawPlugins, u as guardCancel } from "./loader-KjT074JR.js";
17
+ import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint } from "./prompt-style-BFH5D5LN.js";
18
+ import { t as note$1 } from "./note-hhtubr2j.js";
19
19
  import { t as resolveChannelDefaultAccountId } from "./helpers-DdwqKAAS.js";
20
- import { a as resolveSessionTranscriptsDirForAgent, n as resolveSessionFilePath, o as resolveStorePath } from "./paths-IivnSNkP.js";
21
- import { I as resolveMainSessionKey, N as canonicalizeMainSessionAlias, W as resolveSandboxScope, d as loadSessionStore, et as DEFAULT_SANDBOX_BROWSER_IMAGE, m as saveSessionStore, nt as DEFAULT_SANDBOX_IMAGE, tt as DEFAULT_SANDBOX_COMMON_IMAGE } from "./sandbox-B0K9e6Fw.js";
22
- import { n as isWSLEnv, t as isWSL } from "./wsl-B-H6Z5wp.js";
20
+ import { n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, s as resolveStorePath } from "./paths-DLINmNFQ.js";
21
+ import { I as resolveMainSessionKey, N as canonicalizeMainSessionAlias, W as resolveSandboxScope, d as loadSessionStore, et as DEFAULT_SANDBOX_BROWSER_IMAGE, m as saveSessionStore, nt as DEFAULT_SANDBOX_IMAGE, tt as DEFAULT_SANDBOX_COMMON_IMAGE } from "./sandbox-BKYnhYQH.js";
22
+ import { n as isWSLEnv, t as isWSL } from "./wsl-BUOkxKJu.js";
23
23
  import { d as resolveGatewaySystemdServiceName, f as resolveGatewayWindowsTaskName, l as resolveGatewayLaunchAgentLabel, m as resolveNodeLaunchAgentLabel } from "./constants-JPeoOZnw.js";
24
- import { _ as loadModelCatalog } from "./runner-C1G8RFWl.js";
25
- import { i as readChannelAllowFromStore } from "./pairing-store-fIWI3pXG.js";
26
- import { t as collectChannelStatusIssues } from "./channels-status-issues-Ca9--azp.js";
27
- import { a as gatewayInstallErrorHint, d as renderSystemNodeWarning, i as buildGatewayInstallPlan, n as GATEWAY_DAEMON_RUNTIME_OPTIONS, p as resolveSystemNodeInfo, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-BHF5NjQ7.js";
28
- import { a as repairLaunchAgentBootstrap, i as launchAgentPlistExists, n as isLaunchAgentListed, o as resolveGatewayLogPaths, r as isLaunchAgentLoaded, t as resolveGatewayService } from "./service-DNcIZ5Kp.js";
29
- import { r as isSystemdUserServiceAvailable } from "./systemd-CNTodvCO.js";
30
- import { n as renderSystemdUnavailableHints, t as isSystemdUnavailableDetail } from "./systemd-hints-cmHtrXUl.js";
31
- import { a as renderGatewayServiceCleanupHints, i as findExtraGatewayServices, n as auditGatewayServiceConfig, o as readLastGatewayErrorLine, r as needsNodeRuntimeMigration, t as SERVICE_AUDIT_CODES } from "./service-audit-uhZSlxeb.js";
32
- import { i as resolveControlUiDistIndexPathForRoot, l as healthCommand, r as resolveControlUiDistIndexHealth, t as formatHealthCheckFailure } from "./health-format-gLMfE2wf.js";
33
- import { f as doctorShellCompletion, t as runGatewayUpdate } from "./update-runner-BLsqC24J.js";
34
- import { n as logConfigUpdated } from "./logging-D0MyqUlV.js";
35
- import { t as buildWorkspaceSkillStatus } from "./skills-status-DJDaA2Ur.js";
36
- import { n as buildAuthHealthSummary, r as formatRemainingShort, t as DEFAULT_OAUTH_WARN_MS } from "./auth-health-zZ9dnQGC.js";
37
- import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-CArPbmvv.js";
24
+ import { _ as loadModelCatalog } from "./runner-CY0nmVme.js";
25
+ import { i as readChannelAllowFromStore } from "./pairing-store-Dp5_JGnG.js";
26
+ import { t as collectChannelStatusIssues } from "./channels-status-issues-D7GSV1GS.js";
27
+ import { a as gatewayInstallErrorHint, d as renderSystemNodeWarning, i as buildGatewayInstallPlan, n as GATEWAY_DAEMON_RUNTIME_OPTIONS, p as resolveSystemNodeInfo, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-B0tg_LsX.js";
28
+ import { a as repairLaunchAgentBootstrap, i as launchAgentPlistExists, n as isLaunchAgentListed, o as resolveGatewayLogPaths, r as isLaunchAgentLoaded, t as resolveGatewayService } from "./service-99RDXwX4.js";
29
+ import { r as isSystemdUserServiceAvailable } from "./systemd-C0VZriGM.js";
30
+ import { n as renderSystemdUnavailableHints, t as isSystemdUnavailableDetail } from "./systemd-hints-DZtXiVHa.js";
31
+ import { a as renderGatewayServiceCleanupHints, i as findExtraGatewayServices, n as auditGatewayServiceConfig, o as readLastGatewayErrorLine, r as needsNodeRuntimeMigration, t as SERVICE_AUDIT_CODES } from "./service-audit-ckBaRCVC.js";
32
+ import { i as resolveControlUiDistIndexPathForRoot, l as healthCommand, r as resolveControlUiDistIndexHealth, t as formatHealthCheckFailure } from "./health-format-LZDxu3rv.js";
33
+ import { f as doctorShellCompletion, t as runGatewayUpdate } from "./update-runner--ixK4J3W.js";
34
+ import { n as logConfigUpdated } from "./logging-CRq4h04P.js";
35
+ import { t as buildWorkspaceSkillStatus } from "./skills-status-TDIgVd1K.js";
36
+ import { n as buildAuthHealthSummary, r as formatRemainingShort, t as DEFAULT_OAUTH_WARN_MS } from "./auth-health-j6epgQbq.js";
37
+ import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-xdn3BdPh.js";
38
38
  import { execFile } from "node:child_process";
39
39
  import path from "node:path";
40
40
  import os from "node:os";
package/dist/entry.js CHANGED
@@ -338,6 +338,31 @@ function formatChannelSelectionLine(meta, docsLink) {
338
338
  return `${meta.label} — ${meta.blurb} ${docsPrefix ? `${docsPrefix} ` : ""}${docs}${extras ? ` ${extras}` : ""}`;
339
339
  }
340
340
 
341
+ //#endregion
342
+ //#region src/infra/tmp-openclaw-dir.ts
343
+ const POSIX_OPENCLAW_TMP_DIR = "/tmp/openclaw";
344
+ function isNodeErrorWithCode(err, code) {
345
+ return typeof err === "object" && err !== null && "code" in err && err.code === code;
346
+ }
347
+ function resolvePreferredOpenClawTmpDir(options = {}) {
348
+ const accessSync = options.accessSync ?? fs.accessSync;
349
+ const statSync = options.statSync ?? fs.statSync;
350
+ const tmpdir = options.tmpdir ?? os.tmpdir;
351
+ try {
352
+ if (!statSync(POSIX_OPENCLAW_TMP_DIR).isDirectory()) return path.join(tmpdir(), "openclaw");
353
+ accessSync(POSIX_OPENCLAW_TMP_DIR, fs.constants.W_OK | fs.constants.X_OK);
354
+ return POSIX_OPENCLAW_TMP_DIR;
355
+ } catch (err) {
356
+ if (!isNodeErrorWithCode(err, "ENOENT")) return path.join(tmpdir(), "openclaw");
357
+ }
358
+ try {
359
+ accessSync("/tmp", fs.constants.W_OK | fs.constants.X_OK);
360
+ return POSIX_OPENCLAW_TMP_DIR;
361
+ } catch {
362
+ return path.join(tmpdir(), "openclaw");
363
+ }
364
+ }
365
+
341
366
  //#endregion
342
367
  //#region src/config/paths.ts
343
368
  /**
@@ -586,7 +611,7 @@ const loggingState = {
586
611
 
587
612
  //#endregion
588
613
  //#region src/logging/logger.ts
589
- const DEFAULT_LOG_DIR = "/tmp/openclaw";
614
+ const DEFAULT_LOG_DIR = resolvePreferredOpenClawTmpDir();
590
615
  const DEFAULT_LOG_FILE = path.join(DEFAULT_LOG_DIR, "openclaw.log");
591
616
  const LOG_PREFIX = "openclaw";
592
617
  const LOG_SUFFIX = ".log";
@@ -743,6 +768,7 @@ const colorize = (rich, color, value) => rich ? color(value) : value;
743
768
  //#endregion
744
769
  //#region src/globals.ts
745
770
  let globalVerbose = false;
771
+ let globalYes = false;
746
772
  function setVerbose(v) {
747
773
  globalVerbose = v;
748
774
  }
@@ -764,6 +790,9 @@ function logVerboseConsole(message) {
764
790
  if (!globalVerbose) return;
765
791
  console.log(theme.muted(message));
766
792
  }
793
+ function isYes() {
794
+ return globalYes;
795
+ }
767
796
  const success = theme.success;
768
797
  const warn = theme.warn;
769
798
  const info = theme.info;
@@ -805,17 +834,10 @@ function restoreTerminalState(reason) {
805
834
  reportRestoreFailure("progress line", err, reason);
806
835
  }
807
836
  const stdin = process.stdin;
808
- if (stdin.isTTY && typeof stdin.setRawMode === "function") {
809
- try {
810
- stdin.setRawMode(false);
811
- } catch (err) {
812
- reportRestoreFailure("raw mode", err, reason);
813
- }
814
- if (typeof stdin.isPaused === "function" && stdin.isPaused()) try {
815
- stdin.resume();
816
- } catch (err) {
817
- reportRestoreFailure("stdin resume", err, reason);
818
- }
837
+ if (stdin.isTTY && typeof stdin.setRawMode === "function") try {
838
+ stdin.setRawMode(false);
839
+ } catch (err) {
840
+ reportRestoreFailure("raw mode", err, reason);
819
841
  }
820
842
  if (process.stdout.isTTY) try {
821
843
  process.stdout.write(RESET_SEQUENCE);
@@ -1432,11 +1454,11 @@ if (!ensureExperimentalWarningSuppressed()) {
1432
1454
  applyCliProfileEnv({ profile: parsed.profile });
1433
1455
  process$1.argv = parsed.argv;
1434
1456
  }
1435
- import("./run-main-aolvSfj3.js").then(({ runCli }) => runCli(process$1.argv)).catch((error) => {
1457
+ import("./run-main-C5wpthq1.js").then(({ runCli }) => runCli(process$1.argv)).catch((error) => {
1436
1458
  console.error("[openclaw] Failed to start CLI:", error instanceof Error ? error.stack ?? error.message : error);
1437
1459
  process$1.exitCode = 1;
1438
1460
  });
1439
1461
  }
1440
1462
 
1441
1463
  //#endregion
1442
- export { DEFAULT_CHAT_CHANNEL as $, getChildLogger as A, resolveConfigPath as B, setVerbose as C, colorize as D, warn as E, CONFIG_PATH as F, resolveIsNixMode as G, resolveDefaultConfigCandidates as H, DEFAULT_GATEWAY_PORT as I, resolveOAuthDir as J, resolveLegacyStateDirs as K, STATE_DIR as L, getResolvedLoggerSettings as M, toPinoLikeLogger as N, isRich as O, normalizeLogLevel as P, CHAT_CHANNEL_ORDER as Q, isNixMode as R, logVerboseConsole as S, success as T, resolveGatewayLockDir as U, resolveConfigPathCandidate as V, resolveGatewayPort as W, resolveStateDir as X, resolveOAuthPath as Y, CHANNEL_IDS as Z, unregisterActiveProgressLine as _, parseBooleanValue as a, normalizeChannelId as at, isVerbose as b, enableConsoleCapture as c, requireActivePluginRegistry as ct, shouldLogSubsystemToConsole as d, expandHomePrefix as dt, formatChannelPrimerLine as et, visibleWidth as f, resolveEffectiveHomeDir as ft, registerActiveProgressLine as g, clearActiveProgressLine as h, normalizeEnv as i, normalizeAnyChannelId as it, getLogger as j, theme as k, setConsoleSubsystemFilter as l, setActivePluginRegistry as lt, restoreTerminalState as m, isTruthyEnvValue as n, getChatChannelMeta as nt, createSubsystemLogger as o, normalizeChatChannelId as ot, defaultRuntime as p, resolveRequiredHomeDir as pt, resolveNewStateDir as q, logAcceptedEnvOption as r, listChatChannels as rt, runtimeForLogger as s, getActivePluginRegistry as st, installProcessWarningFilter as t, formatChannelSelectionLine as tt, setConsoleTimestampPrefix as u, normalizeProfileName as ut, danger as v, shouldLogVerbose as w, logVerbose as x, info as y, resolveCanonicalConfigPath as z };
1464
+ export { CHANNEL_IDS as $, theme as A, resolveCanonicalConfigPath as B, logVerboseConsole as C, warn as D, success as E, normalizeLogLevel as F, resolveGatewayPort as G, resolveConfigPathCandidate as H, CONFIG_PATH as I, resolveNewStateDir as J, resolveIsNixMode as K, DEFAULT_GATEWAY_PORT as L, getLogger as M, getResolvedLoggerSettings as N, colorize as O, toPinoLikeLogger as P, resolvePreferredOpenClawTmpDir as Q, STATE_DIR as R, logVerbose as S, shouldLogVerbose as T, resolveDefaultConfigCandidates as U, resolveConfigPath as V, resolveGatewayLockDir as W, resolveOAuthPath as X, resolveOAuthDir as Y, resolveStateDir as Z, unregisterActiveProgressLine as _, parseBooleanValue as a, listChatChannels as at, isVerbose as b, enableConsoleCapture as c, normalizeChatChannelId as ct, shouldLogSubsystemToConsole as d, setActivePluginRegistry as dt, CHAT_CHANNEL_ORDER as et, visibleWidth as f, normalizeProfileName as ft, registerActiveProgressLine as g, clearActiveProgressLine as h, resolveRequiredHomeDir as ht, normalizeEnv as i, getChatChannelMeta as it, getChildLogger as j, isRich as k, setConsoleSubsystemFilter as l, getActivePluginRegistry as lt, restoreTerminalState as m, resolveEffectiveHomeDir as mt, isTruthyEnvValue as n, formatChannelPrimerLine as nt, createSubsystemLogger as o, normalizeAnyChannelId as ot, defaultRuntime as p, expandHomePrefix as pt, resolveLegacyStateDirs as q, logAcceptedEnvOption as r, formatChannelSelectionLine as rt, runtimeForLogger as s, normalizeChannelId as st, installProcessWarningFilter as t, DEFAULT_CHAT_CHANNEL as tt, setConsoleTimestampPrefix as u, requireActivePluginRegistry as ut, danger as v, setVerbose as w, isYes as x, info as y, isNixMode as z };
@@ -1,4 +1,4 @@
1
- import { t as createSubsystemLogger } from "./subsystem-Bv7dGhES.js";
1
+ import { t as createSubsystemLogger } from "./subsystem-BoExtIHo.js";
2
2
  import { t as parseBooleanValue } from "./boolean-BgXe2hyu.js";
3
3
 
4
4
  //#region src/infra/env.ts
@@ -9,6 +9,31 @@ import chalk, { Chalk } from "chalk";
9
9
  import { execFile, spawn } from "node:child_process";
10
10
  import { promisify } from "node:util";
11
11
 
12
+ //#region src/infra/tmp-openclaw-dir.ts
13
+ const POSIX_OPENCLAW_TMP_DIR = "/tmp/openclaw";
14
+ function isNodeErrorWithCode(err, code) {
15
+ return typeof err === "object" && err !== null && "code" in err && err.code === code;
16
+ }
17
+ function resolvePreferredOpenClawTmpDir(options = {}) {
18
+ const accessSync = options.accessSync ?? fs.accessSync;
19
+ const statSync = options.statSync ?? fs.statSync;
20
+ const tmpdir = options.tmpdir ?? os.tmpdir;
21
+ try {
22
+ if (!statSync(POSIX_OPENCLAW_TMP_DIR).isDirectory()) return path.join(tmpdir(), "openclaw");
23
+ accessSync(POSIX_OPENCLAW_TMP_DIR, fs.constants.W_OK | fs.constants.X_OK);
24
+ return POSIX_OPENCLAW_TMP_DIR;
25
+ } catch (err) {
26
+ if (!isNodeErrorWithCode(err, "ENOENT")) return path.join(tmpdir(), "openclaw");
27
+ }
28
+ try {
29
+ accessSync("/tmp", fs.constants.W_OK | fs.constants.X_OK);
30
+ return POSIX_OPENCLAW_TMP_DIR;
31
+ } catch {
32
+ return path.join(tmpdir(), "openclaw");
33
+ }
34
+ }
35
+
36
+ //#endregion
12
37
  //#region src/logging/config.ts
13
38
  function readLoggingConfig() {
14
39
  const configPath = resolveConfigPath();
@@ -68,7 +93,7 @@ const loggingState = {
68
93
 
69
94
  //#endregion
70
95
  //#region src/logging/logger.ts
71
- const DEFAULT_LOG_DIR = "/tmp/openclaw";
96
+ const DEFAULT_LOG_DIR = resolvePreferredOpenClawTmpDir();
72
97
  const DEFAULT_LOG_FILE = path.join(DEFAULT_LOG_DIR, "openclaw.log");
73
98
  const LOG_PREFIX = "openclaw";
74
99
  const LOG_SUFFIX = ".log";
@@ -679,17 +704,10 @@ function restoreTerminalState(reason) {
679
704
  reportRestoreFailure("progress line", err, reason);
680
705
  }
681
706
  const stdin = process.stdin;
682
- if (stdin.isTTY && typeof stdin.setRawMode === "function") {
683
- try {
684
- stdin.setRawMode(false);
685
- } catch (err) {
686
- reportRestoreFailure("raw mode", err, reason);
687
- }
688
- if (typeof stdin.isPaused === "function" && stdin.isPaused()) try {
689
- stdin.resume();
690
- } catch (err) {
691
- reportRestoreFailure("stdin resume", err, reason);
692
- }
707
+ if (stdin.isTTY && typeof stdin.setRawMode === "function") try {
708
+ stdin.setRawMode(false);
709
+ } catch (err) {
710
+ reportRestoreFailure("raw mode", err, reason);
693
711
  }
694
712
  if (process.stdout.isTTY) try {
695
713
  process.stdout.write(RESET_SEQUENCE);
@@ -1161,4 +1179,4 @@ async function runCommandWithTimeout(argv, optionsOrTimeout) {
1161
1179
  }
1162
1180
 
1163
1181
  //#endregion
1164
- export { warn as $, formatTerminalLink as A, safeParseJson as B, setActivePluginRegistry as C, clampNumber as D, clampInt as E, normalizeE164 as F, toWhatsappJid as G, shortenHomePath as H, pathExists as I, info as J, truncateUtf16Safe as K, resolveConfigDir as L, isRecord as M, isSelfChatMode as N, ensureDir as O, jidToE164 as P, success as Q, resolveJidToE164 as R, requireActivePluginRegistry as S, clamp as T, sleep as U, shortenHomeInString as V, sliceUtf16Safe as W, setVerbose as X, logVerbose as Y, shouldLogVerbose as Z, getChatChannelMeta as _, logDebug as a, normalizeLogLevel as at, normalizeChatChannelId as b, logWarn as c, clearActiveProgressLine as d, colorize as et, registerActiveProgressLine as f, DEFAULT_CHAT_CHANNEL as g, CHAT_CHANNEL_ORDER as h, spawnWithFallback as i, toPinoLikeLogger as it, isPlainObject as j, escapeRegExp as k, createSubsystemLogger as l, CHANNEL_IDS as m, runExec as n, theme as nt, logError as o, unregisterActiveProgressLine as p, danger as q, formatSpawnError as r, getChildLogger as rt, logInfo as s, runCommandWithTimeout as t, isRich as tt, defaultRuntime as u, normalizeAnyChannelId as v, CONFIG_DIR as w, getActivePluginRegistry as x, normalizeChannelId as y, resolveUserPath as z };
1182
+ export { warn as $, formatTerminalLink as A, safeParseJson as B, setActivePluginRegistry as C, clampNumber as D, clampInt as E, normalizeE164 as F, toWhatsappJid as G, shortenHomePath as H, pathExists as I, info as J, truncateUtf16Safe as K, resolveConfigDir as L, isRecord as M, isSelfChatMode as N, ensureDir as O, jidToE164 as P, success as Q, resolveJidToE164 as R, requireActivePluginRegistry as S, clamp as T, sleep as U, shortenHomeInString as V, sliceUtf16Safe as W, setVerbose as X, logVerbose as Y, shouldLogVerbose as Z, getChatChannelMeta as _, logDebug as a, normalizeLogLevel as at, normalizeChatChannelId as b, logWarn as c, clearActiveProgressLine as d, colorize as et, registerActiveProgressLine as f, DEFAULT_CHAT_CHANNEL as g, CHAT_CHANNEL_ORDER as h, spawnWithFallback as i, toPinoLikeLogger as it, isPlainObject as j, escapeRegExp as k, createSubsystemLogger as l, CHANNEL_IDS as m, runExec as n, theme as nt, logError as o, resolvePreferredOpenClawTmpDir as ot, unregisterActiveProgressLine as p, danger as q, formatSpawnError as r, getChildLogger as rt, logInfo as s, runCommandWithTimeout as t, isRich as tt, defaultRuntime as u, normalizeAnyChannelId as v, CONFIG_DIR as w, getActivePluginRegistry as x, normalizeChannelId as y, resolveUserPath as z };
@@ -1,4 +1,4 @@
1
- import { E as warn, S as logVerboseConsole, j as getLogger, o as createSubsystemLogger, p as defaultRuntime, v as danger, w as shouldLogVerbose, y as info } from "./entry.js";
1
+ import { C as logVerboseConsole, D as warn, M as getLogger, T as shouldLogVerbose, o as createSubsystemLogger, p as defaultRuntime, v as danger, y as info } from "./entry.js";
2
2
  import { execFile, spawn } from "node:child_process";
3
3
  import path from "node:path";
4
4
  import { promisify } from "node:util";
@@ -9,6 +9,31 @@ import chalk, { Chalk } from "chalk";
9
9
  import { execFile, spawn } from "node:child_process";
10
10
  import { promisify } from "node:util";
11
11
 
12
+ //#region src/infra/tmp-openclaw-dir.ts
13
+ const POSIX_OPENCLAW_TMP_DIR = "/tmp/openclaw";
14
+ function isNodeErrorWithCode(err, code) {
15
+ return typeof err === "object" && err !== null && "code" in err && err.code === code;
16
+ }
17
+ function resolvePreferredOpenClawTmpDir(options = {}) {
18
+ const accessSync = options.accessSync ?? fs.accessSync;
19
+ const statSync = options.statSync ?? fs.statSync;
20
+ const tmpdir = options.tmpdir ?? os.tmpdir;
21
+ try {
22
+ if (!statSync(POSIX_OPENCLAW_TMP_DIR).isDirectory()) return path.join(tmpdir(), "openclaw");
23
+ accessSync(POSIX_OPENCLAW_TMP_DIR, fs.constants.W_OK | fs.constants.X_OK);
24
+ return POSIX_OPENCLAW_TMP_DIR;
25
+ } catch (err) {
26
+ if (!isNodeErrorWithCode(err, "ENOENT")) return path.join(tmpdir(), "openclaw");
27
+ }
28
+ try {
29
+ accessSync("/tmp", fs.constants.W_OK | fs.constants.X_OK);
30
+ return POSIX_OPENCLAW_TMP_DIR;
31
+ } catch {
32
+ return path.join(tmpdir(), "openclaw");
33
+ }
34
+ }
35
+
36
+ //#endregion
12
37
  //#region src/logging/config.ts
13
38
  function readLoggingConfig() {
14
39
  const configPath = resolveConfigPath();
@@ -68,7 +93,7 @@ const loggingState = {
68
93
 
69
94
  //#endregion
70
95
  //#region src/logging/logger.ts
71
- const DEFAULT_LOG_DIR = "/tmp/openclaw";
96
+ const DEFAULT_LOG_DIR = resolvePreferredOpenClawTmpDir();
72
97
  const DEFAULT_LOG_FILE = path.join(DEFAULT_LOG_DIR, "openclaw.log");
73
98
  const LOG_PREFIX = "openclaw";
74
99
  const LOG_SUFFIX = ".log";
@@ -678,17 +703,10 @@ function restoreTerminalState(reason) {
678
703
  reportRestoreFailure("progress line", err, reason);
679
704
  }
680
705
  const stdin = process.stdin;
681
- if (stdin.isTTY && typeof stdin.setRawMode === "function") {
682
- try {
683
- stdin.setRawMode(false);
684
- } catch (err) {
685
- reportRestoreFailure("raw mode", err, reason);
686
- }
687
- if (typeof stdin.isPaused === "function" && stdin.isPaused()) try {
688
- stdin.resume();
689
- } catch (err) {
690
- reportRestoreFailure("stdin resume", err, reason);
691
- }
706
+ if (stdin.isTTY && typeof stdin.setRawMode === "function") try {
707
+ stdin.setRawMode(false);
708
+ } catch (err) {
709
+ reportRestoreFailure("raw mode", err, reason);
692
710
  }
693
711
  if (process.stdout.isTTY) try {
694
712
  process.stdout.write(RESET_SEQUENCE);
@@ -1160,4 +1178,4 @@ async function runCommandWithTimeout(argv, optionsOrTimeout) {
1160
1178
  }
1161
1179
 
1162
1180
  //#endregion
1163
- export { colorize as $, isPlainObject as A, shortenHomeInString as B, CONFIG_DIR as C, ensureDir as D, clampNumber as E, pathExists as F, truncateUtf16Safe as G, sleep as H, resolveConfigDir as I, logVerbose as J, danger as K, resolveJidToE164 as L, isSelfChatMode as M, jidToE164 as N, escapeRegExp as O, normalizeE164 as P, warn as Q, resolveUserPath as R, setActivePluginRegistry as S, clampInt as T, sliceUtf16Safe as U, shortenHomePath as V, toWhatsappJid as W, shouldLogVerbose as X, setVerbose as Y, success as Z, normalizeAnyChannelId as _, logDebug as a, getActivePluginRegistry as b, logWarn as c, clearActiveProgressLine as d, isRich as et, registerActiveProgressLine as f, getChatChannelMeta as g, CHAT_CHANNEL_ORDER as h, spawnWithFallback as i, normalizeLogLevel as it, isRecord as j, formatTerminalLink as k, createSubsystemLogger as l, CHANNEL_IDS as m, runExec as n, getChildLogger as nt, logError as o, unregisterActiveProgressLine as p, info as q, formatSpawnError as r, toPinoLikeLogger as rt, logInfo as s, runCommandWithTimeout as t, theme as tt, defaultRuntime as u, normalizeChannelId as v, clamp as w, requireActivePluginRegistry as x, normalizeChatChannelId as y, safeParseJson as z };
1181
+ export { colorize as $, isPlainObject as A, shortenHomeInString as B, CONFIG_DIR as C, ensureDir as D, clampNumber as E, pathExists as F, truncateUtf16Safe as G, sleep as H, resolveConfigDir as I, logVerbose as J, danger as K, resolveJidToE164 as L, isSelfChatMode as M, jidToE164 as N, escapeRegExp as O, normalizeE164 as P, warn as Q, resolveUserPath as R, setActivePluginRegistry as S, clampInt as T, sliceUtf16Safe as U, shortenHomePath as V, toWhatsappJid as W, shouldLogVerbose as X, setVerbose as Y, success as Z, normalizeAnyChannelId as _, logDebug as a, resolvePreferredOpenClawTmpDir as at, getActivePluginRegistry as b, logWarn as c, clearActiveProgressLine as d, isRich as et, registerActiveProgressLine as f, getChatChannelMeta as g, CHAT_CHANNEL_ORDER as h, spawnWithFallback as i, normalizeLogLevel as it, isRecord as j, formatTerminalLink as k, createSubsystemLogger as l, CHANNEL_IDS as m, runExec as n, getChildLogger as nt, logError as o, unregisterActiveProgressLine as p, info as q, formatSpawnError as r, toPinoLikeLogger as rt, logInfo as s, runCommandWithTimeout as t, theme as tt, defaultRuntime as u, normalizeChannelId as v, clamp as w, requireActivePluginRegistry as x, normalizeChatChannelId as y, safeParseJson as z };
@@ -1,4 +1,4 @@
1
- import { B as getLogger, D as info, E as danger, F as warn, N as shouldLogVerbose, c as defaultRuntime, j as logVerboseConsole, t as createSubsystemLogger } from "./subsystem-Bv7dGhES.js";
1
+ import { B as getLogger, D as info, E as danger, F as warn, N as shouldLogVerbose, c as defaultRuntime, j as logVerboseConsole, t as createSubsystemLogger } from "./subsystem-BoExtIHo.js";
2
2
  import path from "node:path";
3
3
  import { execFile, spawn } from "node:child_process";
4
4
  import { promisify } from "node:util";
@@ -1,27 +1,27 @@
1
1
  import "./paths-DVBShlw6.js";
2
- import { L as isRich, R as theme, c as defaultRuntime } from "./subsystem-Bv7dGhES.js";
3
- import "./utils-BHPdZE4h.js";
4
- import "./exec-DXtR2fhb.js";
5
- import "./agent-scope---6LLHj0.js";
6
- import "./model-selection-unMJyUIE.js";
2
+ import { L as isRich, R as theme, c as defaultRuntime } from "./subsystem-BoExtIHo.js";
3
+ import "./utils-Cd9QdCHh.js";
4
+ import "./exec-YIosokWE.js";
5
+ import "./agent-scope-CQCus0rI.js";
6
+ import "./model-selection-BLuqsGVB.js";
7
7
  import "./github-copilot-token-BW-SEg7E.js";
8
8
  import "./boolean-BgXe2hyu.js";
9
- import "./env-DE9xvYOL.js";
10
- import "./config-DH9TLUNc.js";
11
- import "./manifest-registry-DFckk-L8.js";
12
- import "./message-channel-0717wOz-.js";
13
- import "./client-B0_GiCjB.js";
14
- import "./call-C9az806y.js";
9
+ import "./env-ONzUVAG2.js";
10
+ import "./config-aFQssWKX.js";
11
+ import "./manifest-registry-CQhdnDBZ.js";
12
+ import "./message-channel-BLi2a6Yw.js";
13
+ import "./client-BrYfyoDK.js";
14
+ import "./call-SolyGS1r.js";
15
15
  import { n as formatTimeAgo } from "./format-relative-cegC_FF5.js";
16
- import { t as formatDocsLink } from "./links-CV4oki2u.js";
17
- import "./progress-g9R--HZD.js";
16
+ import { t as formatDocsLink } from "./links-Eax1UO3w.js";
17
+ import "./progress-C9kngsTD.js";
18
18
  import { g as saveExecApprovals, l as readExecApprovalsSnapshot } from "./exec-approvals-Cb4ZLukq.js";
19
- import { t as renderTable } from "./table-DzBBIqHO.js";
20
- import "./service-DZMXgMra.js";
21
- import "./systemd-CUJJHgHa.js";
22
- import { n as callGatewayFromCli } from "./gateway-rpc-DjuxyOm-.js";
23
- import { t as describeUnknownError } from "./shared-j4Qtr475.js";
24
- import { n as nodesCallOpts, r as resolveNodeId } from "./rpc-CfdBHlnp.js";
19
+ import { t as renderTable } from "./table-B8dx3v4v.js";
20
+ import "./service--nPk7DvT.js";
21
+ import "./systemd-DrmBtJ5T.js";
22
+ import { n as callGatewayFromCli } from "./gateway-rpc-wXSCUZXj.js";
23
+ import { t as describeUnknownError } from "./shared-Bs4vduG4.js";
24
+ import { n as nodesCallOpts, r as resolveNodeId } from "./rpc-T300F8zI.js";
25
25
  import JSON5 from "json5";
26
26
  import fs from "node:fs/promises";
27
27
 
@@ -1,24 +1,24 @@
1
- import { O as isRich, k as theme, p as defaultRuntime } from "./entry.js";
2
- import "./auth-profiles-CcJ3hrog.js";
3
- import "./utils-Dk86IbEs.js";
4
- import "./exec-B8JKbXKW.js";
5
- import "./agent-scope-RCSw6gHy.js";
6
- import "./github-copilot-token-SLWintYd.js";
7
- import "./config-B7sno9eI.js";
8
- import "./manifest-registry-BTgLN_W2.js";
9
- import "./client-D7wrC1Ug.js";
10
- import "./call-Yxns4CVq.js";
11
- import "./message-channel-BlgPSDAh.js";
12
- import { t as formatDocsLink } from "./links-7M-j83As.js";
13
- import "./progress-Da1ehW-x.js";
1
+ import { A as theme, k as isRich, p as defaultRuntime } from "./entry.js";
2
+ import "./auth-profiles-ByNs3eEm.js";
3
+ import "./utils-BLJAc3ZV.js";
4
+ import "./exec-CACT5OAW.js";
5
+ import "./agent-scope-CsRbLH4l.js";
6
+ import "./github-copilot-token-Cfs0Wxr8.js";
7
+ import "./config-Bdhomfei.js";
8
+ import "./manifest-registry-u0okVSkU.js";
9
+ import "./client-CTwXnRl7.js";
10
+ import "./call-DVYCIV8m.js";
11
+ import "./message-channel-C_MmebBt.js";
12
+ import { t as formatDocsLink } from "./links-B8LAzWwg.js";
13
+ import "./progress-DWqhRakV.js";
14
14
  import { g as saveExecApprovals, l as readExecApprovalsSnapshot } from "./exec-approvals-DQ8TVVmj.js";
15
15
  import { n as formatTimeAgo } from "./format-relative-CZOlQ2pA.js";
16
- import { n as callGatewayFromCli } from "./gateway-rpc-8gue7Qjt.js";
17
- import "./service-DNcIZ5Kp.js";
18
- import "./systemd-CNTodvCO.js";
19
- import { t as renderTable } from "./table-oJQPTUL6.js";
20
- import { t as describeUnknownError } from "./shared-BBw6F-YC.js";
21
- import { n as nodesCallOpts, r as resolveNodeId } from "./rpc-DcGBG-Fp.js";
16
+ import { n as callGatewayFromCli } from "./gateway-rpc-BByb2Snz.js";
17
+ import "./service-99RDXwX4.js";
18
+ import "./systemd-C0VZriGM.js";
19
+ import { t as renderTable } from "./table-CwulTLQp.js";
20
+ import { t as describeUnknownError } from "./shared-CEY5IkwG.js";
21
+ import { n as nodesCallOpts, r as resolveNodeId } from "./rpc-DHr30euf.js";
22
22
  import JSON5 from "json5";
23
23
  import fs from "node:fs/promises";
24
24