@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.
- package/dist/{accounts-DmPvlCpt.js → accounts-1yld8BY0.js} +1 -1
- package/dist/{accounts-UyfWuXKC.js → accounts-Bgjrmxdu.js} +1 -1
- package/dist/{accounts-9Q07LhiR.js → accounts-Bj4Z7jBB.js} +7 -7
- package/dist/{acp-cli-nchqxQfx.js → acp-cli-CmC_BH_F.js} +9 -9
- package/dist/{agent-scope-CaXaKovT.js → agent-scope-B33Scyaw.js} +17 -17
- package/dist/{agents-Bp-on4Ol.js → agents-C1kcu676.js} +14 -14
- package/dist/{agents.config-FcpuK_oH.js → agents.config-bWKr_efI.js} +2 -2
- package/dist/{audio-preflight-HamJvwTU.js → audio-preflight-DrlqJTSX.js} +36 -36
- package/dist/{audio-preflight-O-Z_sN2r.js → audio-preflight-DwqzIQik.js} +4 -4
- package/dist/{audit-BNH972H2.js → audit-BJB-Xpuo.js} +23 -23
- package/dist/{auth-DHBdjHjv.js → auth-D3lXwd01.js} +1 -1
- package/dist/{auth-choice-C9nuVlg2.js → auth-choice-CLaOH6QA.js} +11 -11
- package/dist/{auth-choice-DcdZx6iq.js → auth-choice-DvgigM9u.js} +12 -12
- package/dist/{auth-choice.apply-helpers-CLLeqgyP.js → auth-choice.apply-helpers-DAtOrGrN.js} +1 -1
- package/dist/{auth-profiles-qnck2ozy.js → auth-profiles-D3FyYUSG.js} +16 -16
- package/dist/{auth-token-D7uxXxRA.js → auth-token-5Yewb0K8.js} +1 -1
- package/dist/{banner-KQwBaYzV.js → banner-BBj7LBMv.js} +1 -1
- package/dist/{bindings-vuIL-APZ.js → bindings-CWyuSfs6.js} +1 -1
- package/dist/{bonjour-discovery-BTitpiD_.js → bonjour-discovery-BZKMSZbv.js} +1 -1
- package/dist/{browser-cli-mVm8SiTf.js → browser-cli-Dae28dnV.js} +13 -13
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +6 -6
- package/dist/bundled/session-memory/handler.js +6 -6
- package/dist/{call-C-oZgsJl.js → call-BZSWeS2x.js} +10 -10
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-account-context-BJEFFNm5.js → channel-account-context-CvN7490K.js} +5 -5
- package/dist/{channel-options-C16VfUrO.js → channel-options-C-f-M1qF.js} +3 -3
- package/dist/{channel-selection-D7I4uyOc.js → channel-selection-DYEAZFR_.js} +1 -1
- package/dist/{channel-web-B1GNR2Dq.js → channel-web-DZsn-oXm.js} +18 -18
- package/dist/{channels-cli-CoYoUIpQ.js → channels-cli-D4rNipxg.js} +94 -94
- package/dist/{channels-status-issues-BDFtJFM3.js → channels-status-issues-BU67pzdy.js} +1 -1
- package/dist/{chrome-BO_XI6hR.js → chrome-CmcvtOeC.js} +4 -4
- package/dist/{chrome-C9dZ_OUB.js → chrome-rCogzAbu.js} +9 -9
- package/dist/{clawbot-cli-DvFI6yxU.js → clawbot-cli-z2dtXuJD.js} +5 -5
- package/dist/cli-CRcQGL-0.js +156 -0
- package/dist/{client-BBiFerkj.js → client-CdetOJti.js} +2 -2
- package/dist/{command-registry-CA18iTa1.js → command-registry-DpWSR6vE.js} +11 -11
- package/dist/{commands-CPLAkZQx.js → commands-DvATdC6x.js} +1 -1
- package/dist/{commands-registry-C9Mi0U--.js → commands-registry-CxF5UuEv.js} +3 -3
- package/dist/{completion-cli-f2rJo_UJ.js → completion-cli-8XhBe_hV.js} +13 -13
- package/dist/{config-cli-D3Kk9KK5.js → config-cli-KR_BJlS_.js} +6 -6
- package/dist/{config-guard-DOLjY0Fe.js → config-guard-CCUlwUmY.js} +2 -2
- package/dist/{config-validation-krJ4BOp0.js → config-validation-DM5GZr_k.js} +2 -2
- package/dist/{configure-BJLfFfRf.js → configure-Cijg4qS_.js} +17 -17
- package/dist/{control-ui-assets-DwsjxukL.js → control-ui-assets-D3JoK4hu.js} +1 -1
- package/dist/{cron-cli-C35CLkzi.js → cron-cli-D9M9O2W6.js} +13 -13
- package/dist/{daemon-cli-YUZ4wWO5.js → daemon-cli-CV7F4tGh.js} +14 -14
- package/dist/{daemon-install-CvpZhhVu.js → daemon-install-DoY06atb.js} +4 -4
- package/dist/{daemon-install-helpers-2MdByqYP.js → daemon-install-helpers-BbDloeys.js} +9 -9
- package/dist/{deliver-B7mNw8Vu.js → deliver-CZEKwM5v.js} +7 -7
- package/dist/{deliver-D1fs1S3v.js → deliver-vfoVGjjK.js} +1 -1
- package/dist/{devices-cli-D62t6AOQ.js → devices-cli-DO3kZZY9.js} +9 -9
- package/dist/{diagnostic-CJIq8gp_.js → diagnostic-Bc4KUKvc.js} +1 -1
- package/dist/{diagnostics-B_N_47d8.js → diagnostics-Cwm6yj6S.js} +5 -5
- package/dist/{directory-cli-gpg8jejU.js → directory-cli-CxHr8BB9.js} +8 -8
- package/dist/{dns-cli-AJOUY2RK.js → dns-cli-D4tVpUzw.js} +5 -5
- package/dist/{dock-BYLdmpt5.js → dock-SjEhga7i.js} +4 -4
- package/dist/{docs-cli-B8nNTRqk.js → docs-cli-Dfg5DloZ.js} +4 -4
- package/dist/{doctor-completion-C8_UEBvL.js → doctor-completion-Cx1hTz2p.js} +2 -2
- package/dist/{doctor-config-flow-BoMU70Ko.js → doctor-config-flow-AkAVT_nE.js} +14 -14
- package/dist/{enable-BIW6JnCC.js → enable-D8_8_z2E.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{exec-approvals-allowlist-CklJrJwI.js → exec-approvals-allowlist-CjjR0Lj9.js} +1 -1
- package/dist/{exec-approvals-cli-tXCzQbvW.js → exec-approvals-cli-DzUDeKvk.js} +17 -17
- package/dist/{exec-safe-bin-runtime-policy-BCQlhcV7.js → exec-safe-bin-runtime-policy-BQ4FXdVM.js} +2 -2
- package/dist/{fetch-guard-qBXlHXD_.js → fetch-guard-Cm1MSHHV.js} +1 -1
- package/dist/{fs-safe-Dr8G7a6P.js → fs-safe-CCDIEBbt.js} +16 -16
- package/dist/{gateway-cli-Bl2PLo3y.js → gateway-cli-CZD2FTCR.js} +154 -154
- package/dist/{gateway-rpc-BTAI1-VC.js → gateway-rpc-D_B_ulqD.js} +1 -1
- package/dist/{gemini-auth-DLd8nbvG.js → gemini-auth-i82BVqPg.js} +1 -1
- package/dist/{health-C2cEnW7K.js → health-BayXWmty.js} +13 -13
- package/dist/{hooks-cli-D8BwaEoO.js → hooks-cli-BPDlubbK.js} +90 -90
- package/dist/{hooks-status-Bk97nvaD.js → hooks-status-0v40xw4Q.js} +1 -1
- package/dist/{image-CEFy-HTg.js → image-dzsBaMmN.js} +1 -1
- package/dist/{plugin-sdk/image-ops-CVCbKZRn.js → image-ops-Z3_QkQPj.js} +2 -2
- package/dist/{image-QYMqJ_Cu.js → image-w5Vu5G__.js} +5 -5
- package/dist/{inspect-CmMfTMbw.js → inspect-Br6JEUTm.js} +4 -4
- package/dist/{install-safe-path-DXJW8Vo3.js → install-safe-path-DGYbxO86.js} +19 -19
- package/dist/{installs-Dn2iXOnd.js → installs-Bg1jGMwd.js} +10 -10
- package/dist/{ipv4-CrhBNcyo.js → ipv4-BBc3Sa_a.js} +1 -1
- package/dist/{ir-DYUcUO1t.js → ir-Dhd5EWHO.js} +6 -6
- package/dist/{lifecycle-core-CkOjXGl1.js → lifecycle-core-DrcOD7_e.js} +5 -5
- package/dist/llm-slug-generator.js +6 -6
- package/dist/{local-roots-iKHeLTM9.js → local-roots-Cyat99dT.js} +3 -3
- package/dist/{login-BdEIPD3M.js → login-CbEdSE8o.js} +3 -3
- package/dist/{login-qr-BCrD2_fy.js → login-qr-DK2E0Fk5.js} +6 -6
- package/dist/{logs-cli-BUI8frD6.js → logs-cli-DX5sTx_Z.js} +10 -10
- package/dist/{manager-SsdELHU2.js → manager-DdwvQQ2A.js} +14 -14
- package/dist/{manifest-registry-YC37UceR.js → manifest-registry-DRMtnPEQ.js} +1 -1
- package/dist/{markdown-tables-BvxYO6Nz.js → markdown-tables-DhrZVWff.js} +1 -1
- package/dist/{memory-cli-DPD3Jnkc.js → memory-cli-CdB1ptzd.js} +12 -12
- package/dist/{model-2aL8NZKc.js → model-AKh96s7h.js} +2 -2
- package/dist/{model-catalog-BL39Jul_.js → model-catalog-el1FVV5q.js} +3 -3
- package/dist/{model-picker-wenGgGVr.js → model-picker-BzzwN4eR.js} +4 -4
- package/dist/{models-BGvQqrQE.js → models-CyBxXuv1.js} +17 -17
- package/dist/{models-cli-fQ4IbjQs.js → models-cli-q5yywUVm.js} +80 -80
- package/dist/{models-config-1JCLlVs8.js → models-config-CGGxd1w2.js} +6 -6
- package/dist/{net-CWUwrVfz.js → net-C63UEjlQ.js} +2 -2
- package/dist/{node-cli-DHw9Zenb.js → node-cli-DeauKipI.js} +36 -36
- package/dist/{node-service-sJ_Rmbk7.js → node-service-CVNXtZeJ.js} +1 -1
- package/dist/{nodes-cli-BgDJY7us.js → nodes-cli-QVwX4ULT.js} +15 -15
- package/dist/{nodes-screen-BV63eC7o.js → nodes-screen-CHgcakcH.js} +5 -5
- package/dist/{npm-pack-install-C2E_zBU6.js → npm-pack-install-ChrCCIJD.js} +16 -16
- package/dist/{npm-resolution-B6xDbagk.js → npm-resolution-CvPKK0T0.js} +3 -3
- package/dist/{onboard-BBEWORGd.js → onboard-G39xAbGJ.js} +6 -6
- package/dist/{onboard-channels-DwWwZbhS.js → onboard-channels-BfGGowDI.js} +20 -20
- package/dist/{onboard-custom-CFuF05H2.js → onboard-custom-D_J_UV_B.js} +4 -4
- package/dist/{onboard-helpers-BnUKgDFe.js → onboard-helpers-CzMlu78H.js} +10 -10
- package/dist/{onboard-hooks-Te3_nPpe.js → onboard-hooks-gniWP7px.js} +4 -4
- package/dist/{onboard-remote-BgO_SWWa.js → onboard-remote-BpvvuHBw.js} +3 -3
- package/dist/{onboard-skills-CbTLB4cs.js → onboard-skills-CTY-DPhb.js} +4 -4
- package/dist/{onboarding-1PceVUnc.js → onboarding-BVt6sz-b.js} +13 -13
- package/dist/{onboarding.finalize-B4cr4Txq.js → onboarding.finalize-UFHE8pEj.js} +89 -89
- package/dist/{onboarding.gateway-config-BwYXTzcK.js → onboarding.gateway-config-1awD8XGu.js} +18 -18
- package/dist/{openai-model-default-CUxaHKMh.js → openai-model-default-Dy_e_lUy.js} +2 -2
- package/dist/{openclaw-root-DW-p-saf.js → openclaw-root-Cw_9FXUV.js} +8 -8
- package/dist/{plugin-sdk/outbound-attachment-BXtgutRQ.js → outbound-attachment-DmkmJ2Lc.js} +2 -2
- package/dist/{outbound-DXu6wxmi.js → outbound-m3MjDRvf.js} +4 -4
- package/dist/{pairing-cli-tFQQnCAT.js → pairing-cli-GoI4I4if.js} +9 -9
- package/dist/{pairing-labels-rAuS5aeV.js → pairing-labels-ZYWr_HV3.js} +1 -1
- package/dist/{pairing-store-_x0NQEfq.js → pairing-store-C49WkfCi.js} +2 -2
- package/dist/{pairing-token-PHk3tBUz.js → pairing-token-CtND5y_8.js} +7 -7
- package/dist/{path-alias-guards-z2hGNiIs.js → path-alias-guards-DEakBSGU.js} +3 -3
- package/dist/{path-safety-DBBDWKy1.js → path-safety-DeVxBPre.js} +1 -1
- package/dist/{paths-rIq72jC_.js → paths-BVyklYXR.js} +9 -9
- package/dist/{pi-embedded-fLS3EStS.js → pi-embedded-BCr5zWiT.js} +21 -21
- package/dist/{pi-embedded-helpers-BUce0Iqb.js → pi-embedded-helpers-BYXUXgYn.js} +6 -6
- package/dist/{pi-embedded-helpers-C_cbk2KW.js → pi-embedded-helpers-Dv3HZWfJ.js} +4 -4
- package/dist/{pi-model-discovery-BvGj4Ik8.js → pi-model-discovery-iNwnGd3m.js} +1 -1
- package/dist/{pi-tools.policy-oE4ZdHFF.js → pi-tools.policy-B5HqMPIq.js} +5 -5
- package/dist/{plugin-auto-enable-B2Kx-xH3.js → plugin-auto-enable-gT66Wggm.js} +3 -3
- package/dist/{plugin-registry-Cct_UdcP.js → plugin-registry-w2gqdvm-.js} +3 -3
- package/dist/plugin-sdk/{accounts-DFBfxw6M.js → accounts-DCDKnmrW.js} +1 -1
- package/dist/plugin-sdk/{accounts-WdYXo32T.js → accounts-DcjX_Olt.js} +1 -1
- package/dist/plugin-sdk/{accounts-CK8zoDbM.js → accounts-wG7sdxrI.js} +2 -2
- package/dist/plugin-sdk/{active-listener-PQ_Tmkac.js → active-listener-CZu4-ue_.js} +1 -1
- package/dist/plugin-sdk/{agent-scope-Mc1svPAJ.js → agent-scope-wi2hKUar.js} +1 -1
- package/dist/plugin-sdk/{api-key-rotation-0R4c0BKy.js → api-key-rotation-C50AZ4HQ.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-DeKzW6t7.js → audio-preflight-CWobJe2m.js} +29 -29
- package/dist/plugin-sdk/{bindings-Doyw0dbC.js → bindings-B2InXUgN.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-WTkBRQhD.js → channel-activity-DhlOJslm.js} +3 -3
- package/dist/plugin-sdk/{channel-web-O8qsWnj-.js → channel-web-b5Y6qjaX.js} +21 -21
- package/dist/plugin-sdk/{chrome-DBhifTKw.js → chrome-BE2vPym_.js} +6 -6
- package/dist/plugin-sdk/{chunk-1puCfOZX.js → chunk-BKXLkSr_.js} +1 -1
- package/dist/plugin-sdk/{command-format-Bf4OYMmN.js → command-format-D4smYdZ1.js} +1 -1
- package/dist/plugin-sdk/{commands-registry-Bv5URQN-.js → commands-registry-CRAjZbMZ.js} +4 -4
- package/dist/plugin-sdk/{config-CCVvq2-2.js → config-CuVxnKd5.js} +8 -8
- package/dist/plugin-sdk/{deliver-Du8jMk_2.js → deliver-C-QqkAxt.js} +10 -10
- package/dist/plugin-sdk/{diagnostic-8HfhvtLS.js → diagnostic-DF5kk6Ha.js} +2 -2
- package/dist/plugin-sdk/{dock-1qTnXc22.js → dock-B6o_YOXU.js} +5 -5
- package/dist/plugin-sdk/{errors-D6sYxFmI.js → errors--NHuiZti.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-CfkACfHH.js → fetch-guard-IzK0s4EP.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-DOZJUWUV.js → fs-safe-DCNfFQXN.js} +2 -2
- package/dist/plugin-sdk/{image-p3JhFE-q.js → image-Ckh39rIc.js} +6 -6
- package/dist/{image-ops-toDXWGMw.js → plugin-sdk/image-ops-c8-5iEn1.js} +12 -12
- package/dist/plugin-sdk/index.js +58 -58
- package/dist/plugin-sdk/{ir-EtEIlzCl.js → ir-KJ8B3heg.js} +5 -5
- package/dist/plugin-sdk/{local-roots-DcjujrLt.js → local-roots-oFw9xB3W.js} +4 -4
- package/dist/plugin-sdk/{login-CaiyG7fL.js → login-BpSGWRAn.js} +6 -6
- package/dist/plugin-sdk/{login-qr-qR_0F2uz.js → login-qr-BcEHe2l6.js} +6 -6
- package/dist/plugin-sdk/{manager-DHHJPm4z.js → manager-Mk7Al8tR.js} +9 -9
- package/dist/plugin-sdk/{markdown-tables-DfInfLzW.js → markdown-tables-CgoIgjwH.js} +1 -1
- package/dist/plugin-sdk/{message-channel-CTmZmMGO.js → message-channel-B_avrhM-.js} +1 -1
- package/dist/plugin-sdk/{outbound-Csej8W-L.js → outbound-5ejc0abd.js} +6 -6
- package/dist/{outbound-attachment-Bi7QWVn5.js → plugin-sdk/outbound-attachment-DJZwfefq.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-mPZl8VD3.js → path-alias-guards-dQJhySnm.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-C9JVi9wk.js → pi-embedded-helpers-ChvwOu5y.js} +16 -16
- package/dist/plugin-sdk/{pi-model-discovery-BS3RfvIw.js → pi-model-discovery-DgYhmlNG.js} +1 -1
- package/dist/plugin-sdk/{plugins-kAeBKYoU.js → plugins-43A_vro3.js} +4 -4
- package/dist/plugin-sdk/{pw-ai-DczkhBlG.js → pw-ai-B_Eskool.js} +10 -10
- package/dist/plugin-sdk/{qmd-manager-QzGHpfme.js → qmd-manager-D8hOneSc.js} +4 -4
- package/dist/plugin-sdk/{query-expansion-asHSnsMm.js → query-expansion-Dy2RqhGj.js} +2 -2
- package/dist/plugin-sdk/{redact-Bd2SiHkr.js → redact-C1cyUA71.js} +1 -1
- package/dist/plugin-sdk/{replies-FfnAJgf7.js → replies-CnQaxnV4.js} +3 -3
- package/dist/plugin-sdk/{reply-COGOw5Ek.js → reply-BwE-soc9.js} +86 -86
- package/dist/plugin-sdk/{reply-prefix-CrfFpZVa.js → reply-prefix-DCQtho4T.js} +1 -1
- package/dist/plugin-sdk/{resolve-outbound-target-BVT4EVrH.js → resolve-outbound-target-Dq9I2GaW.js} +2 -2
- package/dist/plugin-sdk/{resolve-route-CXAS6e8J.js → resolve-route-CJvtv5t9.js} +3 -3
- package/dist/plugin-sdk/{retry-9m7s9V95.js → retry-C-lOGVgE.js} +1 -1
- package/dist/plugin-sdk/{runner-C6ylai6Z.js → runner-DsccFtkb.js} +9 -9
- package/dist/plugin-sdk/{send-CxsVHVAX.js → send-2gyvX72Q.js} +12 -12
- package/dist/plugin-sdk/{send-D_ho4big.js → send-BMhePV_4.js} +10 -10
- package/dist/plugin-sdk/{send-alW6jFu1.js → send-BeYIngcm.js} +6 -6
- package/dist/plugin-sdk/{send-BnfdAJbL.js → send-BlEAcyDg.js} +8 -8
- package/dist/plugin-sdk/{send-CSOzYSNF.js → send-DeNtjymi.js} +7 -7
- package/dist/plugin-sdk/{session-Bqv8qF6e.js → session-D2AiJJYy.js} +4 -4
- package/dist/plugin-sdk/{sessions-BuxRaCyw.js → sessions-zmPjX-cD.js} +5 -5
- package/dist/plugin-sdk/{skill-commands-BpaJj_N6.js → skill-commands-BTNdJ6Cr.js} +4 -4
- package/dist/plugin-sdk/{skills-BFujt10E.js → skills-BkGa5_yy.js} +7 -7
- package/dist/plugin-sdk/{ssrf-Q9AqFBuw.js → ssrf-B_Q2k5gm.js} +1 -1
- package/dist/plugin-sdk/{store-BKCEQ-Gy.js → store-DlIx0Ljh.js} +2 -2
- package/dist/plugin-sdk/{subsystem-Dv9ZY_DW.js → subsystem-D7KkLxSJ.js} +2 -2
- package/dist/plugin-sdk/{tables-CiLC1-xu.js → tables-BbXRskgD.js} +1 -1
- package/dist/plugin-sdk/{target-errors-D28xCQm8.js → target-errors-BvPFqIjq.js} +2 -2
- package/dist/plugin-sdk/{tokens-V3CP7Ge2.js → tokens-CVvkQM_V.js} +1 -1
- package/dist/plugin-sdk/{tool-images-Cog7Gmdl.js → tool-images-aK1slaVl.js} +2 -2
- package/dist/plugin-sdk/{tool-loop-detection-DG_vuYxb.js → tool-loop-detection-BP9LIuuY.js} +1 -1
- package/dist/plugin-sdk/web-CH6ZZsT2.js +67 -0
- package/dist/plugin-sdk/{whatsapp-actions-WLB-KfIA.js → whatsapp-actions-ChLODgBj.js} +22 -22
- package/dist/{plugins-CiBXm-v1.js → plugins-Cb8JznN4.js} +2 -2
- package/dist/{plugins-cli-BGpk_mxe.js → plugins-cli-BQAyU_if.js} +86 -86
- package/dist/{ports-Z6QFaVRW.js → ports-4J8-_4SF.js} +2 -2
- package/dist/{ports-DMnEiLQa.js → ports-Ds33lE1B.js} +1 -1
- package/dist/{program-Aj-MXGpl.js → program-D5ThaA_K.js} +84 -84
- package/dist/{prompt-select-styled-g85rM8c_.js → prompt-select-styled-B1xopDJb.js} +39 -39
- package/dist/{provider-auth-helpers-JeXDbyPW.js → provider-auth-helpers-C-Vm3aEA.js} +5 -5
- package/dist/{push-apns-BsK6rZMS.js → push-apns-C0YjpY9N.js} +5 -5
- package/dist/{pw-ai-CoN0pihK.js → pw-ai-DloIDud2.js} +16 -16
- package/dist/{pw-ai-BDzqpsq_.js → pw-ai-PpF146vO.js} +1 -1
- package/dist/{qmd-manager-D8eAzrZY.js → qmd-manager-Du0tEQ-8.js} +19 -19
- package/dist/{qr-cli-ovb8Q1J9.js → qr-cli-DJ6LqChA.js} +1 -1
- package/dist/{query-expansion-B3FVYwN6.js → query-expansion-CwyL4z9j.js} +12 -12
- package/dist/{redact-snapshot-zDjp0HRV.js → redact-snapshot-W7mO-kGu.js} +1 -1
- package/dist/{register.agent-Bcd3jYoI.js → register.agent-CdV5WCcn.js} +96 -96
- package/dist/register.configure-265nQbq2.js +162 -0
- package/dist/{register.maintenance-DE9PWWja.js → register.maintenance-_pksRHI5.js} +97 -97
- package/dist/{register.message-CNcokMYT.js → register.message-BIuzvBK0.js} +77 -77
- package/dist/{register.onboard-lN_aaVOZ.js → register.onboard-DEl8fY1G.js} +19 -19
- package/dist/{register.setup-B6EaaMq4.js → register.setup-Ig_gGvdF.js} +22 -22
- package/dist/{register.status-health-sessions-CboXR8WN.js → register.status-health-sessions-DdHiFiQ8.js} +89 -89
- package/dist/{register.subclis-BkGATlmp.js → register.subclis-FZKDXxxL.js} +31 -31
- package/dist/{replies-COLVQezU.js → replies-BAqKfdVk.js} +1 -1
- package/dist/{reply-prefix-BLgL5eLu.js → reply-prefix-Q23IMgrt.js} +1 -1
- package/dist/{resolve-route-B0u78v_W.js → resolve-route-DvJmdJ7B.js} +2 -2
- package/dist/{rpc-BWpHds0n.js → rpc-u34pBflj.js} +1 -1
- package/dist/{run-main-dqrwXIoU.js → run-main-CAQXzgkK.js} +94 -94
- package/dist/{runner-DcvLsEbZ.js → runner-C9RTcw_0.js} +21 -21
- package/dist/{runner-CsGs9PzD.js → runner-Q4wBIACO.js} +1 -1
- package/dist/{runtime-x5BqK1kr.js → runtime-CnfENRVM.js} +2 -2
- package/dist/{sandbox-B-wAH3en.js → sandbox-BCxHjLQS.js} +22 -22
- package/dist/{sandbox-cli-CegfJFAq.js → sandbox-cli-DnMnYrDy.js} +26 -26
- package/dist/{secrets-cli-CAIsSLya.js → secrets-cli-Bj6VgalW.js} +11 -11
- package/dist/{security-cli-DESlyONm.js → security-cli-DctG0oZz.js} +43 -43
- package/dist/{send-sEXu0p87.js → send-CVj6uOGI.js} +7 -7
- package/dist/{send-CgATYx8D.js → send-DE17gd7F.js} +6 -6
- package/dist/{send-DZ9JXWaZ.js → send-oJraTp-6.js} +6 -6
- package/dist/{send-DY7qzDta.js → send-snKm1H4E.js} +13 -13
- package/dist/{send-OJbtfeWf.js → send-zp5AuaHE.js} +5 -5
- package/dist/{server-C9NDdRkP.js → server-CRa1oZfY.js} +19 -19
- package/dist/{server-context-YevsHXaf.js → server-context-RDkXuB9P.js} +13 -13
- package/dist/{server-lifecycle-BVWplIzw.js → server-lifecycle-CQk8mryT.js} +2 -2
- package/dist/{server-middleware-DJQVLZmo.js → server-middleware-DSIQAJZd.js} +1 -1
- package/dist/{server-node-events-DH8c0jEn.js → server-node-events-DqzBAn3Q.js} +77 -77
- package/dist/{service-oBfCq-qK.js → service-B0CzjIz2.js} +15 -15
- package/dist/{session-C8fYTfkG.js → session-Crum9mSn.js} +1 -1
- package/dist/{session-utils-Bt_Cx0zH.js → session-utils-dd1SrJKT.js} +6 -6
- package/dist/{sessions-DWdz1xc4.js → sessions-9J-stFWk.js} +4 -4
- package/dist/{sessions-IKxRT_G9.js → sessions-aGmwHv0g.js} +14 -14
- package/dist/{shared-Q1aRCgme.js → shared-5VPKZal4.js} +1 -1
- package/dist/{shared-BqFzJLjd.js → shared-CnARKvCa.js} +2 -2
- package/dist/{skill-commands-KdMeqg8g.js → skill-commands-B4-CgHlk.js} +5 -5
- package/dist/{skill-scanner-YaxFgz1o.js → skill-scanner-DW9hSz_J.js} +5 -5
- package/dist/{skills-DjfCNN-j.js → skills-BkqPPXlw.js} +3 -3
- package/dist/{skills-cli-6EDVmjHz.js → skills-cli-DPSjkS2r.js} +5 -5
- package/dist/{skills-install-CdZGnrOv.js → skills-install-m034GRjq.js} +5 -5
- package/dist/{skills-status-DZfbtXdy.js → skills-status--02_4mXJ.js} +1 -1
- package/dist/{ssrf-6Hb9TNxM.js → ssrf-DQPhGAdC.js} +1 -1
- package/dist/{status-CN8vEkdO.js → status-DA7gKGeU.js} +25 -25
- package/dist/{status.update-B0a3iQjj.js → status.update-DEPhS3kj.js} +2 -2
- package/dist/{store-DVxkLZrN.js → store-BnsBHp0V.js} +5 -5
- package/dist/{subagent-registry-CY8NG6Io.js → subagent-registry-CrbLe3Kg.js} +153 -153
- package/dist/{system-cli-CWbpLljA.js → system-cli-DwVWo2kb.js} +10 -10
- package/dist/{system-run-command-h3aZvaIL.js → system-run-command-BD_JuCLP.js} +1 -1
- package/dist/{systemd-DpV5A3Tl.js → systemd-B48mxZjg.js} +9 -9
- package/dist/{systemd-hints-OqRJ_OnZ.js → systemd-hints-CupZgKik.js} +6 -6
- package/dist/{systemd-linger-vRX-cxeO.js → systemd-linger-663aGc_T.js} +1 -1
- package/dist/{tables-CsW7naec.js → tables-CuPXwWh2.js} +1 -1
- package/dist/{tailnet-D3oqrI3q.js → tailnet-DRVktntg.js} +1 -1
- package/dist/{target-errors-yilhMKWi.js → target-errors-D4aLwsCU.js} +4 -4
- package/dist/{tool-images-Bo0IcPMG.js → tool-images-0PIXjd8w.js} +1 -1
- package/dist/{tui-2gCoYUUs.js → tui-14zIh3zr.js} +6 -6
- package/dist/{tui-cli-BNY2WcIM.js → tui-cli-BjHx8K12.js} +34 -34
- package/dist/{update-NahlryOD.js → update-VaL_prKP.js} +3 -3
- package/dist/{update-cli-By_RMYHj.js → update-cli-ZVB5K666.js} +106 -106
- package/dist/{update-runner-BoksUWgy.js → update-runner-sefNoN9G.js} +15 -15
- package/dist/web-BsX8l9H1.js +116 -0
- package/dist/{web-3ZvmLaE3.js → web-Ch0JHP2x.js} +6 -6
- package/dist/{webhooks-cli-C3a8VMoI.js → webhooks-cli-BUVjs-bx.js} +6 -6
- package/dist/{whatsapp-actions-D69bEFbN.js → whatsapp-actions-D-q8r2i5.js} +19 -19
- package/dist/{with-timeout-DOYJYBpu.js → with-timeout-ChQUbgyO.js} +3 -3
- package/dist/{workspace-BhsnAjlE.js → workspace-B-5q5HFZ.js} +1 -1
- package/dist/{workspace-dirs-BC9tU92n.js → workspace-dirs-Mb8gX4pT.js} +1 -1
- package/dist/{wsl-Din03sl7.js → wsl-D9-kubbW.js} +2 -2
- package/package.json +1 -1
- package/dist/cli-BfrcQXmk.js +0 -156
- package/dist/plugin-sdk/web-DPBNX3_v.js +0 -67
- package/dist/register.configure-15nzK_2U.js +0 -162
- 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-
|
|
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-
|
|
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-
|
|
7
|
-
import { Q as canonicalizeMainSessionAlias, p as saveSessionStore } from "./sessions-
|
|
8
|
-
import { d as resolveTelegramAccount, l as listTelegramAccountIds } from "./plugins-
|
|
9
|
-
import { r as resolveMergedSafeBinProfileFixtures, t as listInterpreterLikeSafeBins } from "./exec-safe-bin-runtime-policy-
|
|
10
|
-
import { i as readChannelAllowFromStore } from "./pairing-store-
|
|
11
|
-
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-
|
|
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-
|
|
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
|
|
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
|
|
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
|
|
2119
|
+
await fs$1.access(candidate);
|
|
2120
2120
|
legacyPath = candidate;
|
|
2121
2121
|
break;
|
|
2122
2122
|
} catch {}
|
|
2123
2123
|
if (!legacyPath) return changes;
|
|
2124
|
-
await
|
|
2124
|
+
await fs$1.mkdir(targetDir, { recursive: true });
|
|
2125
2125
|
try {
|
|
2126
|
-
await
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
3
|
-
import "./agent-scope-
|
|
4
|
-
import "./openclaw-root-
|
|
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-
|
|
10
|
+
import "./manifest-registry-DRMtnPEQ.js";
|
|
11
11
|
import "./message-channel-CIQTys4Q.js";
|
|
12
|
-
import "./client-
|
|
13
|
-
import "./call-
|
|
14
|
-
import "./pairing-token-
|
|
15
|
-
import "./net-
|
|
16
|
-
import "./tailnet-
|
|
17
|
-
import "./exec-approvals-allowlist-
|
|
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-
|
|
23
|
-
import "./systemd-
|
|
24
|
-
import "./service-
|
|
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-
|
|
27
|
-
import { i as resolveNodeId, r as nodesCallOpts } from "./rpc-
|
|
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
|
|
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
|
|
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);
|
package/dist/{exec-safe-bin-runtime-policy-BCQlhcV7.js → exec-safe-bin-runtime-policy-BQ4FXdVM.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Bt as listWritableExplicitTrustedSafeBinDirs, Rt as getTrustedSafeBinDirs, Vt as normalizeTrustedSafeBinDirs, dn as resolveSafeBinProfiles, un as normalizeSafeBinProfileFixtures } from "./auth-profiles-
|
|
2
|
-
import { i as resolveSafeBins } from "./exec-approvals-allowlist-
|
|
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-
|
|
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-
|
|
3
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-
|
|
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
|
|
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
|
|
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
|
|
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(),
|
|
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
|
|
44
|
-
const realStat = await
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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(),
|
|
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
|
|
187
|
-
const realStat = await
|
|
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");
|