@yuf1011/openclaw 2026.3.1 → 2026.3.2

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 (288) hide show
  1. package/dist/{accounts-DmPvlCpt.js → accounts-1yld8BY0.js} +1 -1
  2. package/dist/{accounts-UyfWuXKC.js → accounts-Bgjrmxdu.js} +1 -1
  3. package/dist/{accounts-9Q07LhiR.js → accounts-Bj4Z7jBB.js} +7 -7
  4. package/dist/{acp-cli-nchqxQfx.js → acp-cli-CmC_BH_F.js} +9 -9
  5. package/dist/{agent-scope-CaXaKovT.js → agent-scope-B33Scyaw.js} +17 -17
  6. package/dist/{agents-Bp-on4Ol.js → agents-C1kcu676.js} +14 -14
  7. package/dist/{agents.config-FcpuK_oH.js → agents.config-bWKr_efI.js} +2 -2
  8. package/dist/{audio-preflight-HamJvwTU.js → audio-preflight-DrlqJTSX.js} +36 -36
  9. package/dist/{audio-preflight-O-Z_sN2r.js → audio-preflight-DwqzIQik.js} +4 -4
  10. package/dist/{audit-BNH972H2.js → audit-BJB-Xpuo.js} +23 -23
  11. package/dist/{auth-DHBdjHjv.js → auth-D3lXwd01.js} +1 -1
  12. package/dist/{auth-choice-C9nuVlg2.js → auth-choice-CLaOH6QA.js} +11 -11
  13. package/dist/{auth-choice-DcdZx6iq.js → auth-choice-DvgigM9u.js} +12 -12
  14. package/dist/{auth-choice.apply-helpers-CLLeqgyP.js → auth-choice.apply-helpers-DAtOrGrN.js} +1 -1
  15. package/dist/{auth-profiles-qnck2ozy.js → auth-profiles-D3FyYUSG.js} +16 -16
  16. package/dist/{auth-token-D7uxXxRA.js → auth-token-5Yewb0K8.js} +1 -1
  17. package/dist/{banner-KQwBaYzV.js → banner-BBj7LBMv.js} +1 -1
  18. package/dist/{bindings-vuIL-APZ.js → bindings-CWyuSfs6.js} +1 -1
  19. package/dist/{bonjour-discovery-BTitpiD_.js → bonjour-discovery-BZKMSZbv.js} +1 -1
  20. package/dist/{browser-cli-mVm8SiTf.js → browser-cli-Dae28dnV.js} +13 -13
  21. package/dist/build-info.json +3 -3
  22. package/dist/bundled/boot-md/handler.js +6 -6
  23. package/dist/bundled/session-memory/handler.js +6 -6
  24. package/dist/{call-C-oZgsJl.js → call-BZSWeS2x.js} +10 -10
  25. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  26. package/dist/{channel-account-context-BJEFFNm5.js → channel-account-context-CvN7490K.js} +5 -5
  27. package/dist/{channel-options-C16VfUrO.js → channel-options-C-f-M1qF.js} +3 -3
  28. package/dist/{channel-selection-D7I4uyOc.js → channel-selection-DYEAZFR_.js} +1 -1
  29. package/dist/{channel-web-B1GNR2Dq.js → channel-web-DZsn-oXm.js} +18 -18
  30. package/dist/{channels-cli-CoYoUIpQ.js → channels-cli-D4rNipxg.js} +94 -94
  31. package/dist/{channels-status-issues-BDFtJFM3.js → channels-status-issues-BU67pzdy.js} +1 -1
  32. package/dist/{chrome-BO_XI6hR.js → chrome-CmcvtOeC.js} +4 -4
  33. package/dist/{chrome-C9dZ_OUB.js → chrome-rCogzAbu.js} +9 -9
  34. package/dist/{clawbot-cli-DvFI6yxU.js → clawbot-cli-z2dtXuJD.js} +5 -5
  35. package/dist/cli-CRcQGL-0.js +156 -0
  36. package/dist/{client-BBiFerkj.js → client-CdetOJti.js} +2 -2
  37. package/dist/{command-registry-CA18iTa1.js → command-registry-DpWSR6vE.js} +11 -11
  38. package/dist/{commands-CPLAkZQx.js → commands-DvATdC6x.js} +1 -1
  39. package/dist/{commands-registry-C9Mi0U--.js → commands-registry-CxF5UuEv.js} +3 -3
  40. package/dist/{completion-cli-f2rJo_UJ.js → completion-cli-8XhBe_hV.js} +13 -13
  41. package/dist/{config-cli-D3Kk9KK5.js → config-cli-KR_BJlS_.js} +6 -6
  42. package/dist/{config-guard-DOLjY0Fe.js → config-guard-CCUlwUmY.js} +2 -2
  43. package/dist/{config-validation-krJ4BOp0.js → config-validation-DM5GZr_k.js} +2 -2
  44. package/dist/{configure-BJLfFfRf.js → configure-Cijg4qS_.js} +17 -17
  45. package/dist/{control-ui-assets-DwsjxukL.js → control-ui-assets-D3JoK4hu.js} +1 -1
  46. package/dist/{cron-cli-C35CLkzi.js → cron-cli-D9M9O2W6.js} +13 -13
  47. package/dist/{daemon-cli-YUZ4wWO5.js → daemon-cli-CV7F4tGh.js} +14 -14
  48. package/dist/{daemon-install-CvpZhhVu.js → daemon-install-DoY06atb.js} +4 -4
  49. package/dist/{daemon-install-helpers-2MdByqYP.js → daemon-install-helpers-BbDloeys.js} +9 -9
  50. package/dist/{deliver-B7mNw8Vu.js → deliver-CZEKwM5v.js} +7 -7
  51. package/dist/{deliver-D1fs1S3v.js → deliver-vfoVGjjK.js} +1 -1
  52. package/dist/{devices-cli-D62t6AOQ.js → devices-cli-DO3kZZY9.js} +9 -9
  53. package/dist/{diagnostic-CJIq8gp_.js → diagnostic-Bc4KUKvc.js} +1 -1
  54. package/dist/{diagnostics-B_N_47d8.js → diagnostics-Cwm6yj6S.js} +5 -5
  55. package/dist/{directory-cli-gpg8jejU.js → directory-cli-CxHr8BB9.js} +8 -8
  56. package/dist/{dns-cli-AJOUY2RK.js → dns-cli-D4tVpUzw.js} +5 -5
  57. package/dist/{dock-BYLdmpt5.js → dock-SjEhga7i.js} +4 -4
  58. package/dist/{docs-cli-B8nNTRqk.js → docs-cli-Dfg5DloZ.js} +4 -4
  59. package/dist/{doctor-completion-C8_UEBvL.js → doctor-completion-Cx1hTz2p.js} +2 -2
  60. package/dist/{doctor-config-flow-BoMU70Ko.js → doctor-config-flow-AkAVT_nE.js} +14 -14
  61. package/dist/{enable-BIW6JnCC.js → enable-D8_8_z2E.js} +1 -1
  62. package/dist/entry.js +2 -2
  63. package/dist/{exec-approvals-allowlist-CklJrJwI.js → exec-approvals-allowlist-CjjR0Lj9.js} +1 -1
  64. package/dist/{exec-approvals-cli-tXCzQbvW.js → exec-approvals-cli-DzUDeKvk.js} +17 -17
  65. package/dist/{exec-safe-bin-runtime-policy-BCQlhcV7.js → exec-safe-bin-runtime-policy-BQ4FXdVM.js} +2 -2
  66. package/dist/{fetch-guard-qBXlHXD_.js → fetch-guard-Cm1MSHHV.js} +1 -1
  67. package/dist/{fs-safe-Dr8G7a6P.js → fs-safe-CCDIEBbt.js} +16 -16
  68. package/dist/{gateway-cli-Bl2PLo3y.js → gateway-cli-CZD2FTCR.js} +154 -154
  69. package/dist/{gateway-rpc-BTAI1-VC.js → gateway-rpc-D_B_ulqD.js} +1 -1
  70. package/dist/{gemini-auth-DLd8nbvG.js → gemini-auth-i82BVqPg.js} +1 -1
  71. package/dist/{health-C2cEnW7K.js → health-BayXWmty.js} +13 -13
  72. package/dist/{hooks-cli-D8BwaEoO.js → hooks-cli-BPDlubbK.js} +90 -90
  73. package/dist/{hooks-status-Bk97nvaD.js → hooks-status-0v40xw4Q.js} +1 -1
  74. package/dist/{image-CEFy-HTg.js → image-dzsBaMmN.js} +1 -1
  75. package/dist/{plugin-sdk/image-ops-CVCbKZRn.js → image-ops-Z3_QkQPj.js} +2 -2
  76. package/dist/{image-QYMqJ_Cu.js → image-w5Vu5G__.js} +5 -5
  77. package/dist/{inspect-CmMfTMbw.js → inspect-Br6JEUTm.js} +4 -4
  78. package/dist/{install-safe-path-DXJW8Vo3.js → install-safe-path-DGYbxO86.js} +19 -19
  79. package/dist/{installs-Dn2iXOnd.js → installs-Bg1jGMwd.js} +10 -10
  80. package/dist/{ipv4-CrhBNcyo.js → ipv4-BBc3Sa_a.js} +1 -1
  81. package/dist/{ir-DYUcUO1t.js → ir-Dhd5EWHO.js} +6 -6
  82. package/dist/{lifecycle-core-CkOjXGl1.js → lifecycle-core-DrcOD7_e.js} +5 -5
  83. package/dist/llm-slug-generator.js +6 -6
  84. package/dist/{local-roots-iKHeLTM9.js → local-roots-Cyat99dT.js} +3 -3
  85. package/dist/{login-BdEIPD3M.js → login-CbEdSE8o.js} +3 -3
  86. package/dist/{login-qr-BCrD2_fy.js → login-qr-DK2E0Fk5.js} +6 -6
  87. package/dist/{logs-cli-BUI8frD6.js → logs-cli-DX5sTx_Z.js} +10 -10
  88. package/dist/{manager-SsdELHU2.js → manager-DdwvQQ2A.js} +14 -14
  89. package/dist/{manifest-registry-YC37UceR.js → manifest-registry-DRMtnPEQ.js} +1 -1
  90. package/dist/{markdown-tables-BvxYO6Nz.js → markdown-tables-DhrZVWff.js} +1 -1
  91. package/dist/{memory-cli-DPD3Jnkc.js → memory-cli-CdB1ptzd.js} +12 -12
  92. package/dist/{model-2aL8NZKc.js → model-AKh96s7h.js} +2 -2
  93. package/dist/{model-catalog-BL39Jul_.js → model-catalog-el1FVV5q.js} +3 -3
  94. package/dist/{model-picker-wenGgGVr.js → model-picker-BzzwN4eR.js} +4 -4
  95. package/dist/{models-BGvQqrQE.js → models-CyBxXuv1.js} +17 -17
  96. package/dist/{models-cli-fQ4IbjQs.js → models-cli-q5yywUVm.js} +80 -80
  97. package/dist/{models-config-1JCLlVs8.js → models-config-CGGxd1w2.js} +6 -6
  98. package/dist/{net-CWUwrVfz.js → net-C63UEjlQ.js} +2 -2
  99. package/dist/{node-cli-DHw9Zenb.js → node-cli-DeauKipI.js} +36 -36
  100. package/dist/{node-service-sJ_Rmbk7.js → node-service-CVNXtZeJ.js} +1 -1
  101. package/dist/{nodes-cli-BgDJY7us.js → nodes-cli-QVwX4ULT.js} +15 -15
  102. package/dist/{nodes-screen-BV63eC7o.js → nodes-screen-CHgcakcH.js} +5 -5
  103. package/dist/{npm-pack-install-C2E_zBU6.js → npm-pack-install-ChrCCIJD.js} +16 -16
  104. package/dist/{npm-resolution-B6xDbagk.js → npm-resolution-CvPKK0T0.js} +3 -3
  105. package/dist/{onboard-BBEWORGd.js → onboard-G39xAbGJ.js} +6 -6
  106. package/dist/{onboard-channels-DwWwZbhS.js → onboard-channels-BfGGowDI.js} +20 -20
  107. package/dist/{onboard-custom-CFuF05H2.js → onboard-custom-D_J_UV_B.js} +4 -4
  108. package/dist/{onboard-helpers-BnUKgDFe.js → onboard-helpers-CzMlu78H.js} +10 -10
  109. package/dist/{onboard-hooks-Te3_nPpe.js → onboard-hooks-gniWP7px.js} +4 -4
  110. package/dist/{onboard-remote-BgO_SWWa.js → onboard-remote-BpvvuHBw.js} +3 -3
  111. package/dist/{onboard-skills-CbTLB4cs.js → onboard-skills-CTY-DPhb.js} +4 -4
  112. package/dist/{onboarding-1PceVUnc.js → onboarding-BVt6sz-b.js} +13 -13
  113. package/dist/{onboarding.finalize-B4cr4Txq.js → onboarding.finalize-UFHE8pEj.js} +89 -89
  114. package/dist/{onboarding.gateway-config-BwYXTzcK.js → onboarding.gateway-config-1awD8XGu.js} +18 -18
  115. package/dist/{openai-model-default-CUxaHKMh.js → openai-model-default-Dy_e_lUy.js} +2 -2
  116. package/dist/{openclaw-root-DW-p-saf.js → openclaw-root-Cw_9FXUV.js} +8 -8
  117. package/dist/{plugin-sdk/outbound-attachment-BXtgutRQ.js → outbound-attachment-DmkmJ2Lc.js} +2 -2
  118. package/dist/{outbound-DXu6wxmi.js → outbound-m3MjDRvf.js} +4 -4
  119. package/dist/{pairing-cli-tFQQnCAT.js → pairing-cli-GoI4I4if.js} +9 -9
  120. package/dist/{pairing-labels-rAuS5aeV.js → pairing-labels-ZYWr_HV3.js} +1 -1
  121. package/dist/{pairing-store-_x0NQEfq.js → pairing-store-C49WkfCi.js} +2 -2
  122. package/dist/{pairing-token-PHk3tBUz.js → pairing-token-CtND5y_8.js} +7 -7
  123. package/dist/{path-alias-guards-z2hGNiIs.js → path-alias-guards-DEakBSGU.js} +3 -3
  124. package/dist/{path-safety-DBBDWKy1.js → path-safety-DeVxBPre.js} +1 -1
  125. package/dist/{paths-rIq72jC_.js → paths-BVyklYXR.js} +9 -9
  126. package/dist/{pi-embedded-fLS3EStS.js → pi-embedded-BCr5zWiT.js} +21 -21
  127. package/dist/{pi-embedded-helpers-BUce0Iqb.js → pi-embedded-helpers-BYXUXgYn.js} +6 -6
  128. package/dist/{pi-embedded-helpers-C_cbk2KW.js → pi-embedded-helpers-Dv3HZWfJ.js} +4 -4
  129. package/dist/{pi-model-discovery-BvGj4Ik8.js → pi-model-discovery-iNwnGd3m.js} +1 -1
  130. package/dist/{pi-tools.policy-oE4ZdHFF.js → pi-tools.policy-B5HqMPIq.js} +5 -5
  131. package/dist/{plugin-auto-enable-B2Kx-xH3.js → plugin-auto-enable-gT66Wggm.js} +3 -3
  132. package/dist/{plugin-registry-Cct_UdcP.js → plugin-registry-w2gqdvm-.js} +3 -3
  133. package/dist/plugin-sdk/{accounts-DFBfxw6M.js → accounts-DCDKnmrW.js} +1 -1
  134. package/dist/plugin-sdk/{accounts-WdYXo32T.js → accounts-DcjX_Olt.js} +1 -1
  135. package/dist/plugin-sdk/{accounts-CK8zoDbM.js → accounts-wG7sdxrI.js} +2 -2
  136. package/dist/plugin-sdk/{active-listener-PQ_Tmkac.js → active-listener-CZu4-ue_.js} +1 -1
  137. package/dist/plugin-sdk/{agent-scope-Mc1svPAJ.js → agent-scope-wi2hKUar.js} +1 -1
  138. package/dist/plugin-sdk/{api-key-rotation-0R4c0BKy.js → api-key-rotation-C50AZ4HQ.js} +2 -2
  139. package/dist/plugin-sdk/{audio-preflight-DeKzW6t7.js → audio-preflight-CWobJe2m.js} +29 -29
  140. package/dist/plugin-sdk/{bindings-Doyw0dbC.js → bindings-B2InXUgN.js} +2 -2
  141. package/dist/plugin-sdk/{channel-activity-WTkBRQhD.js → channel-activity-DhlOJslm.js} +3 -3
  142. package/dist/plugin-sdk/{channel-web-O8qsWnj-.js → channel-web-b5Y6qjaX.js} +21 -21
  143. package/dist/plugin-sdk/{chrome-DBhifTKw.js → chrome-BE2vPym_.js} +6 -6
  144. package/dist/plugin-sdk/{chunk-1puCfOZX.js → chunk-BKXLkSr_.js} +1 -1
  145. package/dist/plugin-sdk/{command-format-Bf4OYMmN.js → command-format-D4smYdZ1.js} +1 -1
  146. package/dist/plugin-sdk/{commands-registry-Bv5URQN-.js → commands-registry-CRAjZbMZ.js} +4 -4
  147. package/dist/plugin-sdk/{config-CCVvq2-2.js → config-CuVxnKd5.js} +8 -8
  148. package/dist/plugin-sdk/{deliver-Du8jMk_2.js → deliver-C-QqkAxt.js} +10 -10
  149. package/dist/plugin-sdk/{diagnostic-8HfhvtLS.js → diagnostic-DF5kk6Ha.js} +2 -2
  150. package/dist/plugin-sdk/{dock-1qTnXc22.js → dock-B6o_YOXU.js} +5 -5
  151. package/dist/plugin-sdk/{errors-D6sYxFmI.js → errors--NHuiZti.js} +1 -1
  152. package/dist/plugin-sdk/{fetch-guard-CfkACfHH.js → fetch-guard-IzK0s4EP.js} +2 -2
  153. package/dist/plugin-sdk/{fs-safe-DOZJUWUV.js → fs-safe-DCNfFQXN.js} +2 -2
  154. package/dist/plugin-sdk/{image-p3JhFE-q.js → image-Ckh39rIc.js} +6 -6
  155. package/dist/{image-ops-toDXWGMw.js → plugin-sdk/image-ops-c8-5iEn1.js} +12 -12
  156. package/dist/plugin-sdk/index.js +58 -58
  157. package/dist/plugin-sdk/{ir-EtEIlzCl.js → ir-KJ8B3heg.js} +5 -5
  158. package/dist/plugin-sdk/{local-roots-DcjujrLt.js → local-roots-oFw9xB3W.js} +4 -4
  159. package/dist/plugin-sdk/{login-CaiyG7fL.js → login-BpSGWRAn.js} +6 -6
  160. package/dist/plugin-sdk/{login-qr-qR_0F2uz.js → login-qr-BcEHe2l6.js} +6 -6
  161. package/dist/plugin-sdk/{manager-DHHJPm4z.js → manager-Mk7Al8tR.js} +9 -9
  162. package/dist/plugin-sdk/{markdown-tables-DfInfLzW.js → markdown-tables-CgoIgjwH.js} +1 -1
  163. package/dist/plugin-sdk/{message-channel-CTmZmMGO.js → message-channel-B_avrhM-.js} +1 -1
  164. package/dist/plugin-sdk/{outbound-Csej8W-L.js → outbound-5ejc0abd.js} +6 -6
  165. package/dist/{outbound-attachment-Bi7QWVn5.js → plugin-sdk/outbound-attachment-DJZwfefq.js} +2 -2
  166. package/dist/plugin-sdk/{path-alias-guards-mPZl8VD3.js → path-alias-guards-dQJhySnm.js} +1 -1
  167. package/dist/plugin-sdk/{pi-embedded-helpers-C9JVi9wk.js → pi-embedded-helpers-ChvwOu5y.js} +16 -16
  168. package/dist/plugin-sdk/{pi-model-discovery-BS3RfvIw.js → pi-model-discovery-DgYhmlNG.js} +1 -1
  169. package/dist/plugin-sdk/{plugins-kAeBKYoU.js → plugins-43A_vro3.js} +4 -4
  170. package/dist/plugin-sdk/{pw-ai-DczkhBlG.js → pw-ai-B_Eskool.js} +10 -10
  171. package/dist/plugin-sdk/{qmd-manager-QzGHpfme.js → qmd-manager-D8hOneSc.js} +4 -4
  172. package/dist/plugin-sdk/{query-expansion-asHSnsMm.js → query-expansion-Dy2RqhGj.js} +2 -2
  173. package/dist/plugin-sdk/{redact-Bd2SiHkr.js → redact-C1cyUA71.js} +1 -1
  174. package/dist/plugin-sdk/{replies-FfnAJgf7.js → replies-CnQaxnV4.js} +3 -3
  175. package/dist/plugin-sdk/{reply-COGOw5Ek.js → reply-BwE-soc9.js} +86 -86
  176. package/dist/plugin-sdk/{reply-prefix-CrfFpZVa.js → reply-prefix-DCQtho4T.js} +1 -1
  177. package/dist/plugin-sdk/{resolve-outbound-target-BVT4EVrH.js → resolve-outbound-target-Dq9I2GaW.js} +2 -2
  178. package/dist/plugin-sdk/{resolve-route-CXAS6e8J.js → resolve-route-CJvtv5t9.js} +3 -3
  179. package/dist/plugin-sdk/{retry-9m7s9V95.js → retry-C-lOGVgE.js} +1 -1
  180. package/dist/plugin-sdk/{runner-C6ylai6Z.js → runner-DsccFtkb.js} +9 -9
  181. package/dist/plugin-sdk/{send-CxsVHVAX.js → send-2gyvX72Q.js} +12 -12
  182. package/dist/plugin-sdk/{send-D_ho4big.js → send-BMhePV_4.js} +10 -10
  183. package/dist/plugin-sdk/{send-alW6jFu1.js → send-BeYIngcm.js} +6 -6
  184. package/dist/plugin-sdk/{send-BnfdAJbL.js → send-BlEAcyDg.js} +8 -8
  185. package/dist/plugin-sdk/{send-CSOzYSNF.js → send-DeNtjymi.js} +7 -7
  186. package/dist/plugin-sdk/{session-Bqv8qF6e.js → session-D2AiJJYy.js} +4 -4
  187. package/dist/plugin-sdk/{sessions-BuxRaCyw.js → sessions-zmPjX-cD.js} +5 -5
  188. package/dist/plugin-sdk/{skill-commands-BpaJj_N6.js → skill-commands-BTNdJ6Cr.js} +4 -4
  189. package/dist/plugin-sdk/{skills-BFujt10E.js → skills-BkGa5_yy.js} +7 -7
  190. package/dist/plugin-sdk/{ssrf-Q9AqFBuw.js → ssrf-B_Q2k5gm.js} +1 -1
  191. package/dist/plugin-sdk/{store-BKCEQ-Gy.js → store-DlIx0Ljh.js} +2 -2
  192. package/dist/plugin-sdk/{subsystem-Dv9ZY_DW.js → subsystem-D7KkLxSJ.js} +2 -2
  193. package/dist/plugin-sdk/{tables-CiLC1-xu.js → tables-BbXRskgD.js} +1 -1
  194. package/dist/plugin-sdk/{target-errors-D28xCQm8.js → target-errors-BvPFqIjq.js} +2 -2
  195. package/dist/plugin-sdk/{tokens-V3CP7Ge2.js → tokens-CVvkQM_V.js} +1 -1
  196. package/dist/plugin-sdk/{tool-images-Cog7Gmdl.js → tool-images-aK1slaVl.js} +2 -2
  197. package/dist/plugin-sdk/{tool-loop-detection-DG_vuYxb.js → tool-loop-detection-BP9LIuuY.js} +1 -1
  198. package/dist/plugin-sdk/web-CH6ZZsT2.js +67 -0
  199. package/dist/plugin-sdk/{whatsapp-actions-WLB-KfIA.js → whatsapp-actions-ChLODgBj.js} +22 -22
  200. package/dist/{plugins-CiBXm-v1.js → plugins-Cb8JznN4.js} +2 -2
  201. package/dist/{plugins-cli-BGpk_mxe.js → plugins-cli-BQAyU_if.js} +86 -86
  202. package/dist/{ports-Z6QFaVRW.js → ports-4J8-_4SF.js} +2 -2
  203. package/dist/{ports-DMnEiLQa.js → ports-Ds33lE1B.js} +1 -1
  204. package/dist/{program-Aj-MXGpl.js → program-D5ThaA_K.js} +84 -84
  205. package/dist/{prompt-select-styled-g85rM8c_.js → prompt-select-styled-B1xopDJb.js} +39 -39
  206. package/dist/{provider-auth-helpers-JeXDbyPW.js → provider-auth-helpers-C-Vm3aEA.js} +5 -5
  207. package/dist/{push-apns-BsK6rZMS.js → push-apns-C0YjpY9N.js} +5 -5
  208. package/dist/{pw-ai-CoN0pihK.js → pw-ai-DloIDud2.js} +16 -16
  209. package/dist/{pw-ai-BDzqpsq_.js → pw-ai-PpF146vO.js} +1 -1
  210. package/dist/{qmd-manager-D8eAzrZY.js → qmd-manager-Du0tEQ-8.js} +19 -19
  211. package/dist/{qr-cli-ovb8Q1J9.js → qr-cli-DJ6LqChA.js} +1 -1
  212. package/dist/{query-expansion-B3FVYwN6.js → query-expansion-CwyL4z9j.js} +12 -12
  213. package/dist/{redact-snapshot-zDjp0HRV.js → redact-snapshot-W7mO-kGu.js} +1 -1
  214. package/dist/{register.agent-Bcd3jYoI.js → register.agent-CdV5WCcn.js} +96 -96
  215. package/dist/register.configure-265nQbq2.js +162 -0
  216. package/dist/{register.maintenance-DE9PWWja.js → register.maintenance-_pksRHI5.js} +97 -97
  217. package/dist/{register.message-CNcokMYT.js → register.message-BIuzvBK0.js} +77 -77
  218. package/dist/{register.onboard-lN_aaVOZ.js → register.onboard-DEl8fY1G.js} +19 -19
  219. package/dist/{register.setup-B6EaaMq4.js → register.setup-Ig_gGvdF.js} +22 -22
  220. package/dist/{register.status-health-sessions-CboXR8WN.js → register.status-health-sessions-DdHiFiQ8.js} +89 -89
  221. package/dist/{register.subclis-BkGATlmp.js → register.subclis-FZKDXxxL.js} +31 -31
  222. package/dist/{replies-COLVQezU.js → replies-BAqKfdVk.js} +1 -1
  223. package/dist/{reply-prefix-BLgL5eLu.js → reply-prefix-Q23IMgrt.js} +1 -1
  224. package/dist/{resolve-route-B0u78v_W.js → resolve-route-DvJmdJ7B.js} +2 -2
  225. package/dist/{rpc-BWpHds0n.js → rpc-u34pBflj.js} +1 -1
  226. package/dist/{run-main-dqrwXIoU.js → run-main-CAQXzgkK.js} +94 -94
  227. package/dist/{runner-DcvLsEbZ.js → runner-C9RTcw_0.js} +21 -21
  228. package/dist/{runner-CsGs9PzD.js → runner-Q4wBIACO.js} +1 -1
  229. package/dist/{runtime-x5BqK1kr.js → runtime-CnfENRVM.js} +2 -2
  230. package/dist/{sandbox-B-wAH3en.js → sandbox-BCxHjLQS.js} +22 -22
  231. package/dist/{sandbox-cli-CegfJFAq.js → sandbox-cli-DnMnYrDy.js} +26 -26
  232. package/dist/{secrets-cli-CAIsSLya.js → secrets-cli-Bj6VgalW.js} +11 -11
  233. package/dist/{security-cli-DESlyONm.js → security-cli-DctG0oZz.js} +43 -43
  234. package/dist/{send-sEXu0p87.js → send-CVj6uOGI.js} +7 -7
  235. package/dist/{send-CgATYx8D.js → send-DE17gd7F.js} +6 -6
  236. package/dist/{send-DZ9JXWaZ.js → send-oJraTp-6.js} +6 -6
  237. package/dist/{send-DY7qzDta.js → send-snKm1H4E.js} +13 -13
  238. package/dist/{send-OJbtfeWf.js → send-zp5AuaHE.js} +5 -5
  239. package/dist/{server-C9NDdRkP.js → server-CRa1oZfY.js} +19 -19
  240. package/dist/{server-context-YevsHXaf.js → server-context-RDkXuB9P.js} +13 -13
  241. package/dist/{server-lifecycle-BVWplIzw.js → server-lifecycle-CQk8mryT.js} +2 -2
  242. package/dist/{server-middleware-DJQVLZmo.js → server-middleware-DSIQAJZd.js} +1 -1
  243. package/dist/{server-node-events-DH8c0jEn.js → server-node-events-DqzBAn3Q.js} +77 -77
  244. package/dist/{service-oBfCq-qK.js → service-B0CzjIz2.js} +15 -15
  245. package/dist/{session-C8fYTfkG.js → session-Crum9mSn.js} +1 -1
  246. package/dist/{session-utils-Bt_Cx0zH.js → session-utils-dd1SrJKT.js} +6 -6
  247. package/dist/{sessions-DWdz1xc4.js → sessions-9J-stFWk.js} +4 -4
  248. package/dist/{sessions-IKxRT_G9.js → sessions-aGmwHv0g.js} +14 -14
  249. package/dist/{shared-Q1aRCgme.js → shared-5VPKZal4.js} +1 -1
  250. package/dist/{shared-BqFzJLjd.js → shared-CnARKvCa.js} +2 -2
  251. package/dist/{skill-commands-KdMeqg8g.js → skill-commands-B4-CgHlk.js} +5 -5
  252. package/dist/{skill-scanner-YaxFgz1o.js → skill-scanner-DW9hSz_J.js} +5 -5
  253. package/dist/{skills-DjfCNN-j.js → skills-BkqPPXlw.js} +3 -3
  254. package/dist/{skills-cli-6EDVmjHz.js → skills-cli-DPSjkS2r.js} +5 -5
  255. package/dist/{skills-install-CdZGnrOv.js → skills-install-m034GRjq.js} +5 -5
  256. package/dist/{skills-status-DZfbtXdy.js → skills-status--02_4mXJ.js} +1 -1
  257. package/dist/{ssrf-6Hb9TNxM.js → ssrf-DQPhGAdC.js} +1 -1
  258. package/dist/{status-CN8vEkdO.js → status-DA7gKGeU.js} +25 -25
  259. package/dist/{status.update-B0a3iQjj.js → status.update-DEPhS3kj.js} +2 -2
  260. package/dist/{store-DVxkLZrN.js → store-BnsBHp0V.js} +5 -5
  261. package/dist/{subagent-registry-CY8NG6Io.js → subagent-registry-CrbLe3Kg.js} +153 -153
  262. package/dist/{system-cli-CWbpLljA.js → system-cli-DwVWo2kb.js} +10 -10
  263. package/dist/{system-run-command-h3aZvaIL.js → system-run-command-BD_JuCLP.js} +1 -1
  264. package/dist/{systemd-DpV5A3Tl.js → systemd-B48mxZjg.js} +9 -9
  265. package/dist/{systemd-hints-OqRJ_OnZ.js → systemd-hints-CupZgKik.js} +6 -6
  266. package/dist/{systemd-linger-vRX-cxeO.js → systemd-linger-663aGc_T.js} +1 -1
  267. package/dist/{tables-CsW7naec.js → tables-CuPXwWh2.js} +1 -1
  268. package/dist/{tailnet-D3oqrI3q.js → tailnet-DRVktntg.js} +1 -1
  269. package/dist/{target-errors-yilhMKWi.js → target-errors-D4aLwsCU.js} +4 -4
  270. package/dist/{tool-images-Bo0IcPMG.js → tool-images-0PIXjd8w.js} +1 -1
  271. package/dist/{tui-2gCoYUUs.js → tui-14zIh3zr.js} +6 -6
  272. package/dist/{tui-cli-BNY2WcIM.js → tui-cli-BjHx8K12.js} +34 -34
  273. package/dist/{update-NahlryOD.js → update-VaL_prKP.js} +3 -3
  274. package/dist/{update-cli-By_RMYHj.js → update-cli-ZVB5K666.js} +106 -106
  275. package/dist/{update-runner-BoksUWgy.js → update-runner-sefNoN9G.js} +15 -15
  276. package/dist/web-BsX8l9H1.js +116 -0
  277. package/dist/{web-3ZvmLaE3.js → web-Ch0JHP2x.js} +6 -6
  278. package/dist/{webhooks-cli-C3a8VMoI.js → webhooks-cli-BUVjs-bx.js} +6 -6
  279. package/dist/{whatsapp-actions-D69bEFbN.js → whatsapp-actions-D-q8r2i5.js} +19 -19
  280. package/dist/{with-timeout-DOYJYBpu.js → with-timeout-ChQUbgyO.js} +3 -3
  281. package/dist/{workspace-BhsnAjlE.js → workspace-B-5q5HFZ.js} +1 -1
  282. package/dist/{workspace-dirs-BC9tU92n.js → workspace-dirs-Mb8gX4pT.js} +1 -1
  283. package/dist/{wsl-Din03sl7.js → wsl-D9-kubbW.js} +2 -2
  284. package/package.json +1 -1
  285. package/dist/cli-BfrcQXmk.js +0 -156
  286. package/dist/plugin-sdk/web-DPBNX3_v.js +0 -67
  287. package/dist/register.configure-15nzK_2U.js +0 -162
  288. package/dist/web-BTc3UuX6.js +0 -116
@@ -1,24 +1,24 @@
1
1
  import { $ as isRecord, $t as resolveStateDir, Rt as CONFIG_PATH, Xt as resolveNewStateDir, Yt as resolveLegacyStateDirs, Zt as resolveOAuthDir, at as resolveHomeDir, j as normalizeChatChannelId } from "./entry.js";
2
- import { N as readConfigFileSnapshot, O as migrateLegacyConfig, Qt as resolveCommandResolutionFromArgv, Rt as getTrustedSafeBinDirs, Vt as normalizeTrustedSafeBinDirs, _n as resolveDiscordPreviewStreamMode, bn as resolveTelegramPreviewStreamMode, vn as resolveSlackNativeStreaming, yn as resolveSlackStreamingMode, z as OpenClawSchema, zt as isTrustedSafeBinPath } from "./auth-profiles-qnck2ozy.js";
2
+ import { N as readConfigFileSnapshot, O as migrateLegacyConfig, Qt as resolveCommandResolutionFromArgv, Rt as getTrustedSafeBinDirs, Vt as normalizeTrustedSafeBinDirs, _n as resolveDiscordPreviewStreamMode, bn as resolveTelegramPreviewStreamMode, vn as resolveSlackNativeStreaming, yn as resolveSlackStreamingMode, z as OpenClawSchema, zt as isTrustedSafeBinPath } from "./auth-profiles-D3FyYUSG.js";
3
3
  import { t as formatCliCommand } from "./command-format-BYm_a0tW.js";
4
- import { d as resolveDefaultAgentId } from "./agent-scope-CaXaKovT.js";
4
+ import { d as resolveDefaultAgentId } from "./agent-scope-B33Scyaw.js";
5
5
  import { h as normalizeAccountId, m as DEFAULT_ACCOUNT_ID, n as DEFAULT_MAIN_KEY, r as buildAgentMainSessionKey, s as normalizeAgentId } from "./session-key-qmb11-mH.js";
6
- import { f as parseToolsBySenderTypedKey } from "./dock-BYLdmpt5.js";
7
- import { Q as canonicalizeMainSessionAlias, p as saveSessionStore } from "./sessions-IKxRT_G9.js";
8
- import { d as resolveTelegramAccount, l as listTelegramAccountIds } from "./plugins-CiBXm-v1.js";
9
- import { r as resolveMergedSafeBinProfileFixtures, t as listInterpreterLikeSafeBins } from "./exec-safe-bin-runtime-policy-BCQlhcV7.js";
10
- import { i as readChannelAllowFromStore } from "./pairing-store-_x0NQEfq.js";
11
- import { t as applyPluginAutoEnable } from "./plugin-auto-enable-B2Kx-xH3.js";
6
+ import { f as parseToolsBySenderTypedKey } from "./dock-SjEhga7i.js";
7
+ import { Q as canonicalizeMainSessionAlias, p as saveSessionStore } from "./sessions-aGmwHv0g.js";
8
+ import { d as resolveTelegramAccount, l as listTelegramAccountIds } from "./plugins-Cb8JznN4.js";
9
+ import { r as resolveMergedSafeBinProfileFixtures, t as listInterpreterLikeSafeBins } from "./exec-safe-bin-runtime-policy-BQ4FXdVM.js";
10
+ import { i as readChannelAllowFromStore } from "./pairing-store-C49WkfCi.js";
11
+ import { t as applyPluginAutoEnable } from "./plugin-auto-enable-gT66Wggm.js";
12
12
  import { t as collectProviderDangerousNameMatchingScopes } from "./dangerous-name-matching-C2i9AEgf.js";
13
13
  import { r as shouldMoveSingleAccountChannelKey, t as fetchTelegramChatId } from "./api-DaLeB0gD.js";
14
14
  import { t as note } from "./note-DQ26Rw8p.js";
15
- import { t as isWithinDir } from "./path-safety-DBBDWKy1.js";
15
+ import { t as isWithinDir } from "./path-safety-DeVxBPre.js";
16
16
  import { a as isMattermostMutableAllowEntry, c as normalizeTelegramAllowFromEntry, i as isMSTeamsMutableAllowEntry, n as isGoogleChatMutableAllowEntry, o as isSlackMutableAllowEntry, r as isIrcMutableAllowEntry, s as isNumericTelegramUserId, t as isDiscordMutableAllowEntry } from "./mutable-allowlist-detectors-COMtneie.js";
17
17
  import os from "node:os";
18
18
  import path from "node:path";
19
19
  import fs from "node:fs";
20
20
  import JSON5 from "json5";
21
- import fsPromises from "node:fs/promises";
21
+ import fs$1 from "node:fs/promises";
22
22
 
23
23
  //#region src/commands/doctor-legacy-config.ts
24
24
  function normalizeCompatibilityConfigValues(cfg) {
@@ -2106,7 +2106,7 @@ async function maybeMigrateLegacyConfig() {
2106
2106
  const targetDir = path.join(home, ".openclaw");
2107
2107
  const targetPath = path.join(targetDir, "openclaw.json");
2108
2108
  try {
2109
- await fsPromises.access(targetPath);
2109
+ await fs$1.access(targetPath);
2110
2110
  return changes;
2111
2111
  } catch {}
2112
2112
  const legacyCandidates = [
@@ -2116,14 +2116,14 @@ async function maybeMigrateLegacyConfig() {
2116
2116
  ];
2117
2117
  let legacyPath = null;
2118
2118
  for (const candidate of legacyCandidates) try {
2119
- await fsPromises.access(candidate);
2119
+ await fs$1.access(candidate);
2120
2120
  legacyPath = candidate;
2121
2121
  break;
2122
2122
  } catch {}
2123
2123
  if (!legacyPath) return changes;
2124
- await fsPromises.mkdir(targetDir, { recursive: true });
2124
+ await fs$1.mkdir(targetDir, { recursive: true });
2125
2125
  try {
2126
- await fsPromises.copyFile(legacyPath, targetPath, fsPromises.constants.COPYFILE_EXCL);
2126
+ await fs$1.copyFile(legacyPath, targetPath, fs$1.constants.COPYFILE_EXCL);
2127
2127
  changes.push(`Migrated legacy config: ${legacyPath} -> ${targetPath}`);
2128
2128
  } catch {}
2129
2129
  return changes;
@@ -1,5 +1,5 @@
1
1
  import { j as normalizeChatChannelId } from "./entry.js";
2
- import { r as ensurePluginAllowlisted } from "./plugin-auto-enable-B2Kx-xH3.js";
2
+ import { r as ensurePluginAllowlisted } from "./plugin-auto-enable-gT66Wggm.js";
3
3
 
4
4
  //#region src/plugins/toggle-config.ts
5
5
  function setPluginEnabledInConfig(config, pluginId, enabled) {
package/dist/entry.js CHANGED
@@ -2716,7 +2716,7 @@ if (!isMainModule({
2716
2716
  }
2717
2717
  function tryHandleRootHelpFastPath(argv) {
2718
2718
  if (!isRootHelpInvocation(argv)) return false;
2719
- import("./program-Aj-MXGpl.js").then(({ buildProgram }) => {
2719
+ import("./program-D5ThaA_K.js").then(({ buildProgram }) => {
2720
2720
  buildProgram().outputHelp();
2721
2721
  }).catch((error) => {
2722
2722
  console.error("[openclaw] Failed to display help:", error instanceof Error ? error.stack ?? error.message : error);
@@ -2735,7 +2735,7 @@ if (!isMainModule({
2735
2735
  applyCliProfileEnv({ profile: parsed.profile });
2736
2736
  process$1.argv = parsed.argv;
2737
2737
  }
2738
- if (!tryHandleRootVersionFastPath(process$1.argv) && !tryHandleRootHelpFastPath(process$1.argv)) import("./run-main-dqrwXIoU.js").then(({ runCli }) => runCli(process$1.argv)).catch((error) => {
2738
+ if (!tryHandleRootVersionFastPath(process$1.argv) && !tryHandleRootHelpFastPath(process$1.argv)) import("./run-main-CAQXzgkK.js").then(({ runCli }) => runCli(process$1.argv)).catch((error) => {
2739
2739
  console.error("[openclaw] Failed to start CLI:", error instanceof Error ? error.stack ?? error.message : error);
2740
2740
  process$1.exitCode = 1;
2741
2741
  });
@@ -1,4 +1,4 @@
1
- import { Ht as validateSafeBinArgv, Jt as splitCommandChain, Kt as isWindowsPlatform, Qt as resolveCommandResolutionFromArgv, Wt as analyzeShellCommand, Xt as matchAllowlist, Yt as DEFAULT_SAFE_BINS, Zt as resolveAllowlistCandidatePath, en as extractShellWrapperInlineCommand, ln as SAFE_BIN_PROFILES, nn as isDispatchWrapperExecutable, on as unwrapKnownDispatchWrapperInvocation, rn as isShellWrapperExecutable, sn as unwrapKnownShellMultiplexerInvocation, zt as isTrustedSafeBinPath } from "./auth-profiles-qnck2ozy.js";
1
+ import { Ht as validateSafeBinArgv, Jt as splitCommandChain, Kt as isWindowsPlatform, Qt as resolveCommandResolutionFromArgv, Wt as analyzeShellCommand, Xt as matchAllowlist, Yt as DEFAULT_SAFE_BINS, Zt as resolveAllowlistCandidatePath, en as extractShellWrapperInlineCommand, ln as SAFE_BIN_PROFILES, nn as isDispatchWrapperExecutable, on as unwrapKnownDispatchWrapperInvocation, rn as isShellWrapperExecutable, sn as unwrapKnownShellMultiplexerInvocation, zt as isTrustedSafeBinPath } from "./auth-profiles-D3FyYUSG.js";
2
2
  import path from "node:path";
3
3
 
4
4
  //#region src/infra/exec-approvals-allowlist.ts
@@ -1,32 +1,32 @@
1
1
  import { Dt as isRich, Ot as theme, v as defaultRuntime } from "./entry.js";
2
- import "./auth-profiles-qnck2ozy.js";
3
- import "./agent-scope-CaXaKovT.js";
4
- import "./openclaw-root-DW-p-saf.js";
2
+ import "./auth-profiles-D3FyYUSG.js";
3
+ import "./agent-scope-B33Scyaw.js";
4
+ import "./openclaw-root-Cw_9FXUV.js";
5
5
  import "./exec-BhaMholX.js";
6
6
  import "./github-copilot-token-DKRiM6oj.js";
7
7
  import "./host-env-security-BM8ktVlo.js";
8
8
  import "./version-CFqP9tDG.js";
9
9
  import "./env-vars-kURZgejA.js";
10
- import "./manifest-registry-YC37UceR.js";
10
+ import "./manifest-registry-DRMtnPEQ.js";
11
11
  import "./message-channel-CIQTys4Q.js";
12
- import "./client-BBiFerkj.js";
13
- import "./call-C-oZgsJl.js";
14
- import "./pairing-token-PHk3tBUz.js";
15
- import "./net-CWUwrVfz.js";
16
- import "./tailnet-D3oqrI3q.js";
17
- import "./exec-approvals-allowlist-CklJrJwI.js";
12
+ import "./client-CdetOJti.js";
13
+ import "./call-BZSWeS2x.js";
14
+ import "./pairing-token-CtND5y_8.js";
15
+ import "./net-C63UEjlQ.js";
16
+ import "./tailnet-DRVktntg.js";
17
+ import "./exec-approvals-allowlist-CjjR0Lj9.js";
18
18
  import { n as formatTimeAgo } from "./format-relative-CLDwoKCS.js";
19
19
  import { c as readExecApprovalsSnapshot, p as saveExecApprovals } from "./exec-approvals-DJC4eXS0.js";
20
20
  import { t as formatDocsLink } from "./links-yQMT2QcX.js";
21
21
  import "./progress-bvyZjsUc.js";
22
- import { n as callGatewayFromCli } from "./gateway-rpc-BTAI1-VC.js";
23
- import "./systemd-DpV5A3Tl.js";
24
- import "./service-oBfCq-qK.js";
22
+ import { n as callGatewayFromCli } from "./gateway-rpc-D_B_ulqD.js";
23
+ import "./systemd-B48mxZjg.js";
24
+ import "./service-B0CzjIz2.js";
25
25
  import { t as renderTable } from "./table-D7QRfQ5S.js";
26
- import { t as describeUnknownError } from "./shared-Q1aRCgme.js";
27
- import { i as resolveNodeId, r as nodesCallOpts } from "./rpc-BWpHds0n.js";
26
+ import { t as describeUnknownError } from "./shared-5VPKZal4.js";
27
+ import { i as resolveNodeId, r as nodesCallOpts } from "./rpc-u34pBflj.js";
28
28
  import JSON5 from "json5";
29
- import fsPromises from "node:fs/promises";
29
+ import fs from "node:fs/promises";
30
30
 
31
31
  //#region src/cli/exec-approvals-cli.ts
32
32
  async function readStdin() {
@@ -323,7 +323,7 @@ function registerExecApprovalsCli(program) {
323
323
  if (!opts.file && !opts.stdin) exitWithError("Provide --file or --stdin.");
324
324
  if (opts.file && opts.stdin) exitWithError("Use either --file or --stdin (not both).");
325
325
  const { source, nodeId, targetLabel, baseHash } = await loadWritableSnapshotTarget(opts);
326
- const raw = opts.stdin ? await readStdin() : await fsPromises.readFile(String(opts.file), "utf8");
326
+ const raw = opts.stdin ? await readStdin() : await fs.readFile(String(opts.file), "utf8");
327
327
  let file;
328
328
  try {
329
329
  file = JSON5.parse(raw);
@@ -1,5 +1,5 @@
1
- import { Bt as listWritableExplicitTrustedSafeBinDirs, Rt as getTrustedSafeBinDirs, Vt as normalizeTrustedSafeBinDirs, dn as resolveSafeBinProfiles, un as normalizeSafeBinProfileFixtures } from "./auth-profiles-qnck2ozy.js";
2
- import { i as resolveSafeBins } from "./exec-approvals-allowlist-CklJrJwI.js";
1
+ import { Bt as listWritableExplicitTrustedSafeBinDirs, Rt as getTrustedSafeBinDirs, Vt as normalizeTrustedSafeBinDirs, dn as resolveSafeBinProfiles, un as normalizeSafeBinProfileFixtures } from "./auth-profiles-D3FyYUSG.js";
2
+ import { i as resolveSafeBins } from "./exec-approvals-allowlist-CjjR0Lj9.js";
3
3
 
4
4
  //#region src/infra/exec-safe-bin-runtime-policy.ts
5
5
  const INTERPRETER_LIKE_SAFE_BINS = new Set([
@@ -1,5 +1,5 @@
1
1
  import { s as logWarn } from "./exec-BhaMholX.js";
2
- import { a as resolvePinnedHostnameWithPolicy, n as closeDispatcher, r as createPinnedDispatcher, t as SsrFBlockedError } from "./ssrf-6Hb9TNxM.js";
2
+ import { a as resolvePinnedHostnameWithPolicy, n as closeDispatcher, r as createPinnedDispatcher, t as SsrFBlockedError } from "./ssrf-DQPhGAdC.js";
3
3
  import { t as bindAbortRelay } from "./fetch-timeout-Meg2TxSF.js";
4
4
  import { EnvHttpProxyAgent } from "undici";
5
5
 
@@ -1,10 +1,10 @@
1
1
  import { on as expandHomePrefix } from "./entry.js";
2
- import { d as isNotFoundPathError, f as isPathInside, p as isSymlinkOpenError, s as sameFileIdentity } from "./openclaw-root-DW-p-saf.js";
3
- import { n as assertNoPathAliasEscape } from "./path-alias-guards-z2hGNiIs.js";
2
+ import { d as isNotFoundPathError, f as isPathInside, p as isSymlinkOpenError, s as sameFileIdentity } from "./openclaw-root-Cw_9FXUV.js";
3
+ import { n as assertNoPathAliasEscape } from "./path-alias-guards-DEakBSGU.js";
4
4
  import os from "node:os";
5
5
  import path from "node:path";
6
6
  import { constants } from "node:fs";
7
- import fsPromises from "node:fs/promises";
7
+ import fs$1 from "node:fs/promises";
8
8
 
9
9
  //#region src/infra/fs-safe.ts
10
10
  var SafeOpenError = class extends Error {
@@ -21,27 +21,27 @@ const ensureTrailingSep = (value) => value.endsWith(path.sep) ? value : value +
21
21
  async function expandRelativePathWithHome(relativePath) {
22
22
  let home = process.env.HOME || process.env.USERPROFILE || os.homedir();
23
23
  try {
24
- home = await fsPromises.realpath(home);
24
+ home = await fs$1.realpath(home);
25
25
  } catch {}
26
26
  return expandHomePrefix(relativePath, { home });
27
27
  }
28
28
  async function openVerifiedLocalFile(filePath, options) {
29
29
  let handle;
30
30
  try {
31
- handle = await fsPromises.open(filePath, OPEN_READ_FLAGS);
31
+ handle = await fs$1.open(filePath, OPEN_READ_FLAGS);
32
32
  } catch (err) {
33
33
  if (isNotFoundPathError(err)) throw new SafeOpenError("not-found", "file not found");
34
34
  if (isSymlinkOpenError(err)) throw new SafeOpenError("symlink", "symlink open blocked", { cause: err });
35
35
  throw err;
36
36
  }
37
37
  try {
38
- const [stat, lstat] = await Promise.all([handle.stat(), fsPromises.lstat(filePath)]);
38
+ const [stat, lstat] = await Promise.all([handle.stat(), fs$1.lstat(filePath)]);
39
39
  if (lstat.isSymbolicLink()) throw new SafeOpenError("symlink", "symlink not allowed");
40
40
  if (!stat.isFile()) throw new SafeOpenError("not-file", "not a file");
41
41
  if (options?.rejectHardlinks && stat.nlink > 1) throw new SafeOpenError("invalid-path", "hardlinked path not allowed");
42
42
  if (!sameFileIdentity(stat, lstat)) throw new SafeOpenError("path-mismatch", "path changed during read");
43
- const realPath = await fsPromises.realpath(filePath);
44
- const realStat = await fsPromises.stat(realPath);
43
+ const realPath = await fs$1.realpath(filePath);
44
+ const realStat = await fs$1.stat(realPath);
45
45
  if (options?.rejectHardlinks && realStat.nlink > 1) throw new SafeOpenError("invalid-path", "hardlinked path not allowed");
46
46
  if (!sameFileIdentity(stat, realStat)) throw new SafeOpenError("path-mismatch", "path mismatch");
47
47
  return {
@@ -59,7 +59,7 @@ async function openVerifiedLocalFile(filePath, options) {
59
59
  async function openFileWithinRoot(params) {
60
60
  let rootReal;
61
61
  try {
62
- rootReal = await fsPromises.realpath(params.rootDir);
62
+ rootReal = await fs$1.realpath(params.rootDir);
63
63
  } catch (err) {
64
64
  if (isNotFoundPathError(err)) throw new SafeOpenError("not-found", "root dir not found");
65
65
  throw err;
@@ -142,7 +142,7 @@ async function readLocalFileSafely(params) {
142
142
  async function writeFileWithinRoot(params) {
143
143
  let rootReal;
144
144
  try {
145
- rootReal = await fsPromises.realpath(params.rootDir);
145
+ rootReal = await fs$1.realpath(params.rootDir);
146
146
  } catch (err) {
147
147
  if (isNotFoundPathError(err)) throw new SafeOpenError("not-found", "root dir not found");
148
148
  throw err;
@@ -160,10 +160,10 @@ async function writeFileWithinRoot(params) {
160
160
  } catch (err) {
161
161
  throw new SafeOpenError("invalid-path", "path alias escape blocked", { cause: err });
162
162
  }
163
- if (params.mkdir !== false) await fsPromises.mkdir(path.dirname(resolved), { recursive: true });
163
+ if (params.mkdir !== false) await fs$1.mkdir(path.dirname(resolved), { recursive: true });
164
164
  let ioPath = resolved;
165
165
  try {
166
- const resolvedRealPath = await fsPromises.realpath(resolved);
166
+ const resolvedRealPath = await fs$1.realpath(resolved);
167
167
  if (!isPathInside(rootWithSep, resolvedRealPath)) throw new SafeOpenError("outside-workspace", "file is outside workspace root");
168
168
  ioPath = resolvedRealPath;
169
169
  } catch (err) {
@@ -172,19 +172,19 @@ async function writeFileWithinRoot(params) {
172
172
  }
173
173
  let handle;
174
174
  try {
175
- handle = await fsPromises.open(ioPath, OPEN_WRITE_FLAGS, 384);
175
+ handle = await fs$1.open(ioPath, OPEN_WRITE_FLAGS, 384);
176
176
  } catch (err) {
177
177
  if (isNotFoundPathError(err)) throw new SafeOpenError("not-found", "file not found");
178
178
  if (isSymlinkOpenError(err)) throw new SafeOpenError("invalid-path", "symlink open blocked", { cause: err });
179
179
  throw err;
180
180
  }
181
181
  try {
182
- const [stat, lstat] = await Promise.all([handle.stat(), fsPromises.lstat(ioPath)]);
182
+ const [stat, lstat] = await Promise.all([handle.stat(), fs$1.lstat(ioPath)]);
183
183
  if (lstat.isSymbolicLink() || !stat.isFile()) throw new SafeOpenError("invalid-path", "path is not a regular file under root");
184
184
  if (stat.nlink > 1) throw new SafeOpenError("invalid-path", "hardlinked path not allowed");
185
185
  if (!sameFileIdentity(stat, lstat)) throw new SafeOpenError("path-mismatch", "path changed during write");
186
- const realPath = await fsPromises.realpath(ioPath);
187
- const realStat = await fsPromises.stat(realPath);
186
+ const realPath = await fs$1.realpath(ioPath);
187
+ const realStat = await fs$1.stat(realPath);
188
188
  if (!sameFileIdentity(stat, realStat)) throw new SafeOpenError("path-mismatch", "path mismatch");
189
189
  if (realStat.nlink > 1) throw new SafeOpenError("invalid-path", "hardlinked path not allowed");
190
190
  if (!isPathInside(rootWithSep, realPath)) throw new SafeOpenError("outside-workspace", "file is outside workspace root");