openclaw-multi-auto 1.6.6 → 1.6.7
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-4vg8osA5.js → accounts-BPt-s1cW.js} +7 -7
- package/dist/{accounts-BgOnManD.js → accounts-CC3alHma.js} +1 -1
- package/dist/{accounts-CXo4Ac3z.js → accounts-CNIODbBr.js} +1 -1
- package/dist/{acp-cli-B2w71bEK.js → acp-cli-DjB0ovMh.js} +8 -8
- package/dist/{agent-scope-BbO_VBbv.js → agent-scope-CNJUPFcR.js} +17 -17
- package/dist/{agents.config-y8kHMoox.js → agents.config-Dh5Lcv4N.js} +2 -2
- package/dist/{api-key-rotation-CzacqD3s.js → api-key-rotation-PzGuOQm_.js} +1 -1
- package/dist/{audio-preflight-CiANHFx-.js → audio-preflight-DOYiMo_d.js} +34 -34
- package/dist/{audio-transcription-runner-B9-J1DUd.js → audio-transcription-runner-sLK1yiya.js} +23 -23
- package/dist/{audit-BBbzzHkv.js → audit-BSvn3dTQ.js} +29 -29
- package/dist/{auth-B_YGaEcP.js → auth-C_LDvTxu.js} +1 -1
- package/dist/{auth-choice-CV87PVB8.js → auth-choice-Bu5kPuhF.js} +11 -11
- package/dist/{auth-choice-gf8aEhcg.js → auth-choice-fpoHu7pV.js} +13 -13
- package/dist/{auth-choice.apply-helpers-IK7zIZHi.js → auth-choice.apply-helpers-RNa-mjTS.js} +1 -1
- package/dist/{auth-token-D2V9CMur.js → auth-token-CktupXSw.js} +1 -1
- package/dist/{bonjour-discovery-BC_XEtg4.js → bonjour-discovery-DvVDs7rm.js} +1 -1
- package/dist/{browser-cli-BEWtuR6r.js → browser-cli-DuYjaYLJ.js} +12 -12
- package/dist/build-info.json +3 -3
- package/dist/{call-YJ9zjeji.js → call-eK-5ynwM.js} +10 -10
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-account-context-CJ_25Q5X.js → channel-account-context-BQD0zpuF.js} +5 -5
- package/dist/{channel-activity-BHb0aL0J.js → channel-activity-w-iWKqZg.js} +1 -1
- package/dist/{channel-options-8OGfdfdc.js → channel-options-o5oDDArl.js} +3 -3
- package/dist/{channel-selection-D21oKnM0.js → channel-selection-HaUsJ3kL.js} +1 -1
- package/dist/{channel-web-BXHQWjc6.js → channel-web-JuhY6j_M.js} +16 -16
- package/dist/{channels-cli-ByTcIaZC.js → channels-cli-aZhDWAhv.js} +92 -92
- package/dist/{channels-status-issues-Cva3QRlu.js → channels-status-issues-Bi69DlUp.js} +1 -1
- package/dist/{chrome-DBMFZ1ho.js → chrome-CQR5U4Oc.js} +4 -4
- package/dist/{clawbot-cli-DpZDxNOd.js → clawbot-cli-DJzN7m49.js} +11 -11
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-bsDX2k8k.js → cli-fGEJw7Bh.js} +72 -72
- package/dist/{client-D9sBKoZI.js → client-BEwDNigg.js} +2 -2
- package/dist/{command-secret-targets-SH5qP5X_.js → command-secret-targets-qpSAI_K2.js} +4 -4
- package/dist/{commands-DUzVNM-Q.js → commands-BaXA2bSJ.js} +1 -1
- package/dist/{commands-registry-C2INbVUe.js → commands-registry-D-nkNP-x.js} +3 -3
- package/dist/{completion-cli-4GVy2WHG.js → completion-cli-D-Vt6klA.js} +12 -12
- package/dist/{config-cli-ByWpkmkG.js → config-cli-D7CkjeZo.js} +7 -7
- package/dist/{config-guard-ofLFxSQh.js → config-guard-B1hrQ4RG.js} +16 -16
- package/dist/{config-validation-9QNDxE74.js → config-validation-CZ59Kb8S.js} +3 -3
- package/dist/{configure-JiVnjIlt.js → configure-BTMq-WnT.js} +17 -17
- package/dist/{control-ui-assets-D7bG2PFs.js → control-ui-assets-DR9xNC3f.js} +1 -1
- package/dist/{cron-cli-DuHdcQFw.js → cron-cli-CvFNRfgv.js} +11 -11
- package/dist/{daemon-cli-Do_4dH0e.js → daemon-cli-Bb7Q2DPz.js} +15 -15
- package/dist/{daemon-install-helpers-Pex1FHrG.js → daemon-install-helpers-BYWgt_7u.js} +11 -11
- package/dist/{daemon-install-C0_0OAHU.js → daemon-install-mDWE60H-.js} +4 -4
- package/dist/{deliver-B05oD9oA.js → deliver-DuqANTNs.js} +7 -7
- package/dist/deliver-runtime-CBjIBIWj.js +61 -0
- package/dist/deps-send-discord.runtime-Ch7m0GFO.js +36 -0
- package/dist/deps-send-imessage.runtime-BBXNUMFu.js +35 -0
- package/dist/deps-send-signal.runtime-DVVQsW-M.js +34 -0
- package/dist/deps-send-slack.runtime-Bm60sFNH.js +32 -0
- package/dist/{deps-send-telegram.runtime-IVPYXaID.js → deps-send-telegram.runtime-TOpNwBFj.js} +16 -16
- package/dist/deps-send-whatsapp.runtime-B2i2JcV5.js +118 -0
- package/dist/{devices-cli-D0SxzElB.js → devices-cli-DVXzYwja.js} +8 -8
- package/dist/{diagnostic-v2TGEcgC.js → diagnostic-CL9h6IXx.js} +1 -1
- package/dist/{diagnostics-CBcbp7BB.js → diagnostics-CwWdfrvB.js} +5 -5
- package/dist/{directory-cli-A0q9Ftjc.js → directory-cli-DL2TKoz1.js} +7 -7
- package/dist/{dns-cli-hyt6Wvvq.js → dns-cli-DOHzu8H-.js} +5 -5
- package/dist/{dock-SpSqP4RS.js → dock-BR4hdehX.js} +4 -4
- package/dist/{docs-cli-CJfXaxzc.js → docs-cli-D1S8CZJy.js} +4 -4
- package/dist/{doctor-completion-CDRZEttH.js → doctor-completion-CkEHCVMO.js} +2 -2
- package/dist/{doctor-config-flow-kZl_wy2A.js → doctor-config-flow-DQNZsEku.js} +15 -15
- package/dist/{enable-B27E5MMW.js → enable-V7r6GCwn.js} +1 -1
- package/dist/{exec-approvals-allowlist-BOUCQu6B.js → exec-approvals-allowlist-CtUT02un.js} +1 -1
- package/dist/{exec-approvals-cli-_cqBqjTA.js → exec-approvals-cli-CsCqi3wl.js} +16 -16
- package/dist/{exec-safe-bin-runtime-policy-CkhpnueN.js → exec-safe-bin-runtime-policy-CSBwsuHS.js} +2 -2
- package/dist/{fetch-guard-NyNh7p-s.js → fetch-guard-Ca0W-yZr.js} +1 -1
- package/dist/{fs-safe-mG29clJ9.js → fs-safe-D_adQJX4.js} +24 -24
- package/dist/{gateway-cli-94YTdTAa.js → gateway-cli-C5cq5Fv9.js} +152 -152
- package/dist/{gateway-rpc-NhXLPpJx.js → gateway-rpc-C32KFHnD.js} +1 -1
- package/dist/{health-B99KJscL.js → health-yuGFUIWJ.js} +11 -11
- package/dist/{hooks-cli-C01QhY4h.js → hooks-cli-CXWcvFYo.js} +80 -80
- package/dist/{hooks-status-CZNGtyrM.js → hooks-status-Bjjm7teR.js} +1 -1
- package/dist/{image-BaqqhHHh.js → image-CDKYPK1-.js} +5 -5
- package/dist/{image-ops-CKnT_r12.js → image-ops-BTwvusXV.js} +10 -10
- package/dist/image-runtime-Csw6M1GE.js +55 -0
- package/dist/index.js +82 -82
- package/dist/{inspect-XHunUBlV.js → inspect-lNlGLW_c.js} +4 -4
- package/dist/{install-safe-path-om__n8TQ.js → install-safe-path-BNRYD-KJ.js} +25 -25
- package/dist/{installs-Z0VR0SY2.js → installs-BB_8nllr.js} +9 -9
- package/dist/{ipv4-NJiClroF.js → ipv4-CPzn5xIX.js} +1 -1
- package/dist/{ir-ChJe1hY6.js → ir-BdjoGJyL.js} +8 -8
- package/dist/{issue-format-G-7IkANX.js → issue-format-D_MHPECu.js} +1 -1
- package/dist/{json-files-D6M304Qd.js → json-files-DIEpaxUj.js} +8 -8
- package/dist/{lifecycle-core-BcIuIPMF.js → lifecycle-core-C2u5W-Xd.js} +5 -5
- package/dist/{local-roots-BCYAjsgu.js → local-roots-_noFNwvo.js} +3 -3
- package/dist/{login-D7cZyPrd.js → login-CbJ7lelX.js} +3 -3
- package/dist/{login-qr-DPVFxhjZ.js → login-qr-9cwofnkY.js} +6 -6
- package/dist/{logs-cli-CtEDxmDk.js → logs-cli-RYm8XZEC.js} +9 -9
- package/dist/{manager-CSnZM2Iw.js → manager-Dbz9CyPw.js} +14 -14
- package/dist/{manager-runtime-aMwRbhZ3.js → manager-runtime-DsniMUxY.js} +9 -9
- package/dist/{manifest-registry-D74D25g7.js → manifest-registry-QfHOpQrg.js} +1 -1
- package/dist/{memory-cli-CCMIlraX.js → memory-cli-CLBPPSow.js} +12 -12
- package/dist/{model-CnHxvu4o.js → model-CfB7nuUK.js} +2 -2
- package/dist/{model-catalog-QXAt20Vy.js → model-catalog-BH55qLYK.js} +3 -3
- package/dist/{model-picker-ByrLHc9_.js → model-picker-D3xDEPDv.js} +4 -4
- package/dist/{model-selection-DqSNdtby.js → model-selection-DZM1M4yx.js} +16 -16
- package/dist/{models-cli-C0mrlgSL.js → models-cli-DlFeSGXD.js} +81 -81
- package/dist/{models-config-5EhgxVMQ.js → models-config-BLJwyO9D.js} +6 -6
- package/dist/{node-cli-DdKfRYhS.js → node-cli-Dcn7Lxvr.js} +33 -33
- package/dist/{node-command-policy-D-hu0n3w.js → node-command-policy-DfcI_g5B.js} +1 -1
- package/dist/{node-service--hFCI8Ok.js → node-service-CIXWfpdM.js} +1 -1
- package/dist/{nodes-cli-BmjFvKQh.js → nodes-cli-CtIY3Wdi.js} +16 -16
- package/dist/{nodes-screen-CCNot0xV.js → nodes-screen-DgLXnfNX.js} +7 -7
- package/dist/{npm-pack-install-DSR8-nhr.js → npm-pack-install-BmT2Qku8.js} +18 -18
- package/dist/{npm-resolution-dr4H2dBm.js → npm-resolution-Ch4kSz-J.js} +4 -4
- package/dist/{onboard-channels-QzPuUsu5.js → onboard-channels-CZMeimvm.js} +21 -21
- package/dist/{onboard-custom-pyXzjp5z.js → onboard-custom-Bk9lP_gS.js} +4 -4
- package/dist/{onboard-helpers-ByC3v1-U.js → onboard-helpers-C51uqagK.js} +10 -10
- package/dist/{onboard-hooks-C2cFv3_-.js → onboard-hooks-B4RFbzBs.js} +4 -4
- package/dist/{onboard-CyDS1PdS.js → onboard-pvZeQwGW.js} +6 -6
- package/dist/{onboard-remote-DHZv5w4W.js → onboard-remote-CmB2v7g1.js} +4 -4
- package/dist/{onboard-skills-D_R383gZ.js → onboard-skills-B52kyElD.js} +4 -4
- package/dist/{onboarding-Df6qbE08.js → onboarding-BQS8Nd_E.js} +14 -14
- package/dist/{onboarding.finalize-DkEbxmLj.js → onboarding.finalize-1BqhSubV.js} +85 -85
- package/dist/{onboarding.gateway-config-DttU83Zb.js → onboarding.gateway-config-BIkI8VxE.js} +18 -18
- package/dist/{onboarding.secret-input-BJILGy22.js → onboarding.secret-input-Dz6lMbgK.js} +1 -1
- package/dist/{openai-model-default-uuDOWnTl.js → openai-model-default-LC7S-YJ9.js} +2 -2
- package/dist/{openclaw-root-DeEQQJyX.js → openclaw-root-DG6I1Pl4.js} +8 -8
- package/dist/{outbound-B0HGMG3V.js → outbound-C2sayF6_.js} +3 -3
- package/dist/{outbound-attachment-Ccf9O8B8.js → outbound-attachment-BMKxLFNL.js} +2 -2
- package/dist/{pairing-cli-L76jWxbm.js → pairing-cli-BiogXen1.js} +8 -8
- package/dist/{pairing-labels-D9vsJ1yc.js → pairing-labels-OxEX3p5e.js} +1 -1
- package/dist/{pairing-store-qlIFCeZB.js → pairing-store-CxcCXceV.js} +3 -3
- package/dist/{path-alias-guards-BzAaCM2k.js → path-alias-guards-CY88Htx_.js} +3 -3
- package/dist/{path-safety-BtMBl7vC.js → path-safety-dy_YlK3a.js} +1 -1
- package/dist/{paths-1ThfklTP.js → paths-C48pWRFv.js} +9 -9
- package/dist/{pi-embedded-helpers-DXrnVbBZ.js → pi-embedded-helpers-CuG0ngBL.js} +6 -6
- package/dist/{pi-model-discovery-BKbDxeIp.js → pi-model-discovery-Drm3mYtt.js} +1 -1
- package/dist/{pi-model-discovery-runtime-CpLmZvoC.js → pi-model-discovery-runtime-CCZ87Xog.js} +5 -5
- package/dist/{pi-tools.before-tool-call.runtime-81kH9GUj.js → pi-tools.before-tool-call.runtime-CxMxsbgT.js} +5 -5
- package/dist/{pi-tools.policy-BC7YGcon.js → pi-tools.policy-DaB-Ff9f.js} +5 -5
- package/dist/{plugin-auto-enable-CIeegxhY.js → plugin-auto-enable-DOlffoVt.js} +3 -3
- package/dist/{plugin-registry-D8JSGXQX.js → plugin-registry-DfKKSRKU.js} +3 -3
- package/dist/plugin-sdk/signal.js +2 -2
- package/dist/{plugins-TLur5wHC.js → plugins-DaN4Jp7R.js} +2 -2
- package/dist/{plugins-cli-e8svgZ6i.js → plugins-cli-540srne6.js} +82 -82
- package/dist/{ports-CfTWPxj9.js → ports-B6f6PDVD.js} +2 -2
- package/dist/{ports-BE9ZTYml.js → ports-DX1Cxj7W.js} +1 -1
- package/dist/{program-context-DNYbQrvx.js → program-context-iEkoyF3D.js} +41 -41
- package/dist/{prompt-select-styled-B7A4T4-F.js → prompt-select-styled-C1MS6ea1.js} +40 -40
- package/dist/{provider-auth-helpers-DolkcfyF.js → provider-auth-helpers-BeZKOpzW.js} +5 -5
- package/dist/{proxy-env-hdF2jCzB.js → proxy-env-R4DbTLy-.js} +1 -1
- package/dist/{push-apns-COJt9ulg.js → push-apns-wRpQOiqI.js} +5 -5
- package/dist/{pw-ai-CICkGw_S.js → pw-ai-DP_aLfwB.js} +18 -18
- package/dist/{qmd-manager-CT6j2ntm.js → qmd-manager-DP6UdQoL.js} +20 -20
- package/dist/{qr-cli-CKPDy5Oq.js → qr-cli-7lXeTSek.js} +2 -2
- package/dist/{query-expansion-DmxOigqX.js → query-expansion-bOaotSTR.js} +12 -12
- package/dist/{redact-snapshot-C6NRnnHx.js → redact-snapshot-D6W9dz8Q.js} +1 -1
- package/dist/{register.agent-D4BrsIbk.js → register.agent-Bjkfci3x.js} +97 -97
- package/dist/register.configure-BEkx9CQc.js +164 -0
- package/dist/{register.maintenance-x2-poSUG.js → register.maintenance-ErXA_uuU.js} +93 -93
- package/dist/{register.message-NeUR5N0O.js → register.message-vHhFsp94.js} +73 -73
- package/dist/{register.onboard-Cdh-N4A9.js → register.onboard-BgvfFczx.js} +18 -18
- package/dist/{register.setup-B3ADFeTG.js → register.setup-Bel3kQD6.js} +21 -21
- package/dist/{register.status-health-sessions-zRCJ2e-L.js → register.status-health-sessions-BEhwEKZV.js} +86 -86
- package/dist/{reply-BFrmGuXU.js → reply-9D8ZuOqr.js} +149 -149
- package/dist/{rpc-DUJUbW2t.js → rpc-BSqhmmbX.js} +1 -1
- package/dist/{runtime-DTxtPm0I.js → runtime-BHbS8ZHw.js} +3 -3
- package/dist/{runtime-config-collectors-BEvlZaJw.js → runtime-config-collectors-CXxR70dG.js} +1 -1
- package/dist/{runtime-whatsapp-login.runtime-DLNWSVqX.js → runtime-whatsapp-login.runtime-BkF8zMbl.js} +7 -7
- package/dist/runtime-whatsapp-outbound.runtime-CdzmGvC6.js +32 -0
- package/dist/{sandbox-C0HLb5d5.js → sandbox-HvaJFfqL.js} +18 -18
- package/dist/{sandbox-cli-CHpGeoro.js → sandbox-cli-Cyu9YZx0.js} +25 -25
- package/dist/{secrets-cli-DgQQmw65.js → secrets-cli-B-aLO0SY.js} +11 -11
- package/dist/{security-cli-W-7xXDn1.js → security-cli-DZTjYQ-D.js} +42 -42
- package/dist/{send-tsYgRPrs.js → send-7ekhdACO.js} +5 -5
- package/dist/{send-CJrrDXqE.js → send-BcAN5-hD.js} +11 -11
- package/dist/{send-BUFnD0eE.js → send-BlhxqBI9.js} +6 -6
- package/dist/{send-Ddtb8gLT.js → send-C9SevGlM.js} +4 -4
- package/dist/{send-D3BV3zCy.js → send-CVzWMFl1.js} +8 -8
- package/dist/{server-Bzgq55gk.js → server-ChrqZt3H.js} +20 -20
- package/dist/{server-context-DCpD_bA8.js → server-context-BhpOEoCB.js} +12 -12
- package/dist/{server-lifecycle-B2SzHMkK.js → server-lifecycle-BYHavdLd.js} +2 -2
- package/dist/{server-middleware-C_u_M_FK.js → server-middleware-BzsDWK_f.js} +1 -1
- package/dist/{server-node-events-BS0Yy6SL.js → server-node-events-CN7o3YoN.js} +73 -73
- package/dist/{service-DhcBUav5.js → service-qQCNqvmY.js} +15 -15
- package/dist/{session-D6FZ4tQ8.js → session-CdQJLohq.js} +1 -1
- package/dist/{sessions-CRTJuMXp.js → sessions-Fm2Lx117.js} +15 -15
- package/dist/{shared-DOUEV_Eq.js → shared-26KZSqMI.js} +1 -1
- package/dist/{shared-BXXG3vT8.js → shared-CWdEWtsZ.js} +3 -3
- package/dist/{skill-commands-BgzZkiJz.js → skill-commands-De4NUpNz.js} +5 -5
- package/dist/{skill-scanner-DcrwF2Fr.js → skill-scanner-BtrQE0gO.js} +6 -6
- package/dist/{skills-4CjDh8J_.js → skills-Sy3onNq_.js} +3 -3
- package/dist/{skills-cli-CRB7e30Z.js → skills-cli-DiN4xbFz.js} +5 -5
- package/dist/{skills-install-DOKJADrz.js → skills-install-DksQkSIq.js} +6 -6
- package/dist/{skills-status-BWqCvt0g.js → skills-status-BZptMdLx.js} +1 -1
- package/dist/{slash-commands.runtime-DSjg6jg8.js → slash-commands.runtime-Becs7mLt.js} +11 -11
- package/dist/slash-dispatch.runtime-BGHMR1xK.js +113 -0
- package/dist/{slash-skill-commands.runtime-DwvIfTev.js → slash-skill-commands.runtime-BqcgqTMM.js} +15 -15
- package/dist/{status-BiX1kbtY.js → status-CaG5OT-N.js} +26 -26
- package/dist/{status.update-QMbtfb38.js → status.update-DR8lt70f.js} +2 -2
- package/dist/{store-s4dlu9ZQ.js → store-B7o63XvV.js} +5 -5
- package/dist/subagent-registry-runtime-0qZtQB7_.js +113 -0
- package/dist/{system-cli-Dz6Xu0cZ.js → system-cli-CpyvQedP.js} +9 -9
- package/dist/{system-run-command-MvTaWm_5.js → system-run-command-B7_IasTx.js} +1 -1
- package/dist/{systemd-V-rr1rHU.js → systemd-DotMzkho.js} +9 -9
- package/dist/{systemd-hints-BanLoKAv.js → systemd-hints-B1n_Cmj7.js} +6 -6
- package/dist/{systemd-linger-CWkk4GBp.js → systemd-linger-la785pXY.js} +1 -1
- package/dist/{tables-D6c57Lrs.js → tables-B3d05drH.js} +1 -1
- package/dist/{tailnet-DuRcvzVE.js → tailnet-CSHZafwU.js} +1 -1
- package/dist/{target-errors-u7pjywIy.js → target-errors-CCgPtzPv.js} +4 -4
- package/dist/{tool-images-6ceVT7-i.js → tool-images-Bhog1Yix.js} +1 -1
- package/dist/{tui-DIVVG-0Y.js → tui-DoROfmXy.js} +6 -6
- package/dist/{tui-cli-DdB0uJii.js → tui-cli-Axgy0FU4.js} +32 -32
- package/dist/{update-cli-B0ekEE4A.js → update-cli-Dudao0uZ.js} +102 -102
- package/dist/{update-runner-gVTOOfSH.js → update-runner-B_J4-cY6.js} +16 -16
- package/dist/{update-C4nonzOq.js → update-xgJWkTh1.js} +3 -3
- package/dist/web-QKn04c6k.js +117 -0
- package/dist/{webhooks-cli-D2omOmfe.js → webhooks-cli-HRhGQtAq.js} +6 -6
- package/dist/{whatsapp-actions-Ds8L0msY.js → whatsapp-actions-s6qkgp-7.js} +17 -17
- package/dist/{with-timeout-DW6XbMi-.js → with-timeout-OltBBBXv.js} +3 -3
- package/dist/{workspace-B7XBLNce.js → workspace-B3uGN7Xe.js} +1 -1
- package/dist/{workspace-dirs-Ds-g-s99.js → workspace-dirs-0V-76Wmq.js} +1 -1
- package/dist/{ws-BNW54x9_.js → ws-BrCPoV7j.js} +2 -2
- package/dist/{wsl-CgxzAzRe.js → wsl-wYxPJ8EO.js} +2 -2
- package/package.json +1 -1
- package/scripts/create-instance.sh +58 -15
- package/dist/deliver-runtime-DGrrnFpY.js +0 -61
- package/dist/deps-send-discord.runtime-DAPWkSXf.js +0 -36
- package/dist/deps-send-imessage.runtime-DWqR6W7h.js +0 -35
- package/dist/deps-send-signal.runtime-Ce60L81Z.js +0 -34
- package/dist/deps-send-slack.runtime-s0pqdhHR.js +0 -32
- package/dist/deps-send-whatsapp.runtime-bRJ5Zed1.js +0 -118
- package/dist/image-runtime-D9iVXh4M.js +0 -55
- package/dist/register.configure-B8qyHllb.js +0 -164
- package/dist/runtime-whatsapp-outbound.runtime-bK_Rub3q.js +0 -32
- package/dist/slash-dispatch.runtime-DcGK4xow.js +0 -113
- package/dist/subagent-registry-runtime-D5KDyK6C.js +0 -113
- package/dist/web-C0Ki9gxL.js +0 -117
package/dist/index.js
CHANGED
|
@@ -3,13 +3,13 @@ import "./paths-BBP4yd-2.js";
|
|
|
3
3
|
import { D as tryParseLogLevel, F as hasHelpOrVersion, I as hasRootVersionAlias, N as getVerboseFlag, P as hasFlag, f as isRich, j as getCommandPathWithRootOptions, p as theme, s as setVerbose, w as ALLOWED_LOG_LEVELS } from "./globals-BawKHR8h.js";
|
|
4
4
|
import { T as toWhatsappJid, l as escapeRegExp, m as normalizeE164, n as assertWebChannel } from "./utils-CokqDAE4.js";
|
|
5
5
|
import "./thinking-44rmAw5o.js";
|
|
6
|
-
import { St as resolveCommitHash, t as getReplyFromConfig, zt as createDefaultDeps } from "./reply-
|
|
7
|
-
import "./agent-scope-
|
|
6
|
+
import { St as resolveCommitHash, t as getReplyFromConfig, zt as createDefaultDeps } from "./reply-9D8ZuOqr.js";
|
|
7
|
+
import "./agent-scope-CNJUPFcR.js";
|
|
8
8
|
import { d as defaultRuntime, l as visibleWidth, r as enableConsoleCapture } from "./subsystem-BiaB_3Ei.js";
|
|
9
|
-
import "./openclaw-root-
|
|
9
|
+
import "./openclaw-root-DG6I1Pl4.js";
|
|
10
10
|
import "./logger-fgPrvtjf.js";
|
|
11
11
|
import { n as runExec, t as runCommandWithTimeout } from "./exec-Cu2obwh9.js";
|
|
12
|
-
import { $t as loadConfig, ci as loadDotEnv } from "./model-selection-
|
|
12
|
+
import { $t as loadConfig, ci as loadDotEnv } from "./model-selection-DZM1M4yx.js";
|
|
13
13
|
import "./registry-CTtrVpZB.js";
|
|
14
14
|
import "./github-copilot-token-b6kJVrW-.js";
|
|
15
15
|
import { n as replaceCliName, r as resolveCliName } from "./command-format-Gp1OUMPH.js";
|
|
@@ -17,111 +17,111 @@ import "./boolean-BsqeuxE6.js";
|
|
|
17
17
|
import { r as normalizeEnv, t as isTruthyEnvValue } from "./env-CNF75H3c.js";
|
|
18
18
|
import "./host-env-security-DkAVVuaw.js";
|
|
19
19
|
import { r as VERSION } from "./env-vars-ausEv-bN.js";
|
|
20
|
-
import "./manifest-registry-
|
|
21
|
-
import "./dock-
|
|
20
|
+
import "./manifest-registry-QfHOpQrg.js";
|
|
21
|
+
import "./dock-BR4hdehX.js";
|
|
22
22
|
import "./message-channel-S2KEwruz.js";
|
|
23
|
-
import "./send-
|
|
24
|
-
import "./plugins-
|
|
25
|
-
import { B as resolveSessionKey, l as saveSessionStore, o as loadSessionStore, z as deriveSessionKey } from "./sessions-
|
|
26
|
-
import { l as installUnhandledRejectionHandler, v as applyTemplate } from "./audio-transcription-runner-
|
|
27
|
-
import "./image-
|
|
28
|
-
import "./models-config-
|
|
29
|
-
import "./pi-embedded-helpers-
|
|
30
|
-
import "./sandbox-
|
|
23
|
+
import "./send-BcAN5-hD.js";
|
|
24
|
+
import "./plugins-DaN4Jp7R.js";
|
|
25
|
+
import { B as resolveSessionKey, l as saveSessionStore, o as loadSessionStore, z as deriveSessionKey } from "./sessions-Fm2Lx117.js";
|
|
26
|
+
import { l as installUnhandledRejectionHandler, v as applyTemplate } from "./audio-transcription-runner-sLK1yiya.js";
|
|
27
|
+
import "./image-CDKYPK1-.js";
|
|
28
|
+
import "./models-config-BLJwyO9D.js";
|
|
29
|
+
import "./pi-embedded-helpers-CuG0ngBL.js";
|
|
30
|
+
import "./sandbox-HvaJFfqL.js";
|
|
31
31
|
import "./tool-catalog-IBWCA-2a.js";
|
|
32
|
-
import "./chrome-
|
|
32
|
+
import "./chrome-CQR5U4Oc.js";
|
|
33
33
|
import { l as ensureBinary, u as promptYesNo } from "./tailscale-OabIsy4o.js";
|
|
34
|
-
import "./tailnet-
|
|
35
|
-
import "./ws-
|
|
36
|
-
import "./auth-
|
|
37
|
-
import "./server-context-
|
|
34
|
+
import "./tailnet-CSHZafwU.js";
|
|
35
|
+
import "./ws-BrCPoV7j.js";
|
|
36
|
+
import "./auth-C_LDvTxu.js";
|
|
37
|
+
import "./server-context-BhpOEoCB.js";
|
|
38
38
|
import "./frontmatter-CPpXT7mj.js";
|
|
39
|
-
import "./skills-
|
|
40
|
-
import "./path-alias-guards-
|
|
41
|
-
import "./paths-
|
|
39
|
+
import "./skills-Sy3onNq_.js";
|
|
40
|
+
import "./path-alias-guards-CY88Htx_.js";
|
|
41
|
+
import "./paths-C48pWRFv.js";
|
|
42
42
|
import "./redact-sDsI6gV3.js";
|
|
43
43
|
import { i as formatUncaughtError } from "./errors-BkPBAjci.js";
|
|
44
|
-
import "./fs-safe-
|
|
45
|
-
import "./proxy-env-
|
|
46
|
-
import "./image-ops-
|
|
47
|
-
import "./store-
|
|
48
|
-
import { i as handlePortError, n as describePortOwner, r as ensurePortAvailable, t as PortInUseError } from "./ports-
|
|
44
|
+
import "./fs-safe-D_adQJX4.js";
|
|
45
|
+
import "./proxy-env-R4DbTLy-.js";
|
|
46
|
+
import "./image-ops-BTwvusXV.js";
|
|
47
|
+
import "./store-B7o63XvV.js";
|
|
48
|
+
import { i as handlePortError, n as describePortOwner, r as ensurePortAvailable, t as PortInUseError } from "./ports-B6f6PDVD.js";
|
|
49
49
|
import "./trash--gw0enoo.js";
|
|
50
|
-
import "./server-middleware-
|
|
51
|
-
import "./accounts-
|
|
52
|
-
import "./accounts-
|
|
50
|
+
import "./server-middleware-BzsDWK_f.js";
|
|
51
|
+
import "./accounts-BPt-s1cW.js";
|
|
52
|
+
import "./accounts-CC3alHma.js";
|
|
53
53
|
import "./logging-D3KTM1pH.js";
|
|
54
|
-
import "./accounts-
|
|
55
|
-
import "./send-
|
|
54
|
+
import "./accounts-CNIODbBr.js";
|
|
55
|
+
import "./send-C9SevGlM.js";
|
|
56
56
|
import { c as resolveStorePath } from "./paths-D24h0XR4.js";
|
|
57
57
|
import "./chat-envelope-DL2R5pK6.js";
|
|
58
|
-
import "./tool-images-
|
|
58
|
+
import "./tool-images-Bhog1Yix.js";
|
|
59
59
|
import "./tool-display-D1uTM_Dm.js";
|
|
60
|
-
import "./fetch-guard-
|
|
61
|
-
import "./api-key-rotation-
|
|
62
|
-
import "./local-roots-
|
|
63
|
-
import "./model-catalog-
|
|
60
|
+
import "./fetch-guard-Ca0W-yZr.js";
|
|
61
|
+
import "./api-key-rotation-PzGuOQm_.js";
|
|
62
|
+
import "./local-roots-_noFNwvo.js";
|
|
63
|
+
import "./model-catalog-BH55qLYK.js";
|
|
64
64
|
import "./proxy-fetch-DVvCU_Cg.js";
|
|
65
65
|
import "./tokens-4XdPiPs_.js";
|
|
66
|
-
import "./deliver-
|
|
67
|
-
import "./commands-
|
|
68
|
-
import "./commands-registry-
|
|
69
|
-
import "./client-
|
|
70
|
-
import "./call-
|
|
66
|
+
import "./deliver-DuqANTNs.js";
|
|
67
|
+
import "./commands-BaXA2bSJ.js";
|
|
68
|
+
import "./commands-registry-D-nkNP-x.js";
|
|
69
|
+
import "./client-BEwDNigg.js";
|
|
70
|
+
import "./call-eK-5ynwM.js";
|
|
71
71
|
import "./pairing-token-9FncM-ur.js";
|
|
72
72
|
import "./fetch-D6Usyaj-.js";
|
|
73
|
-
import "./pairing-store-
|
|
73
|
+
import "./pairing-store-CxcCXceV.js";
|
|
74
74
|
import "./exec-approvals-QfWL5pgV.js";
|
|
75
|
-
import "./exec-approvals-allowlist-
|
|
76
|
-
import "./exec-safe-bin-runtime-policy-
|
|
77
|
-
import "./nodes-screen-
|
|
78
|
-
import "./target-errors-
|
|
79
|
-
import "./system-run-command-
|
|
80
|
-
import "./diagnostic-
|
|
81
|
-
import "./with-timeout-
|
|
82
|
-
import "./send-
|
|
83
|
-
import "./model-
|
|
84
|
-
import "./pi-model-discovery-
|
|
85
|
-
import "./ir-
|
|
75
|
+
import "./exec-approvals-allowlist-CtUT02un.js";
|
|
76
|
+
import "./exec-safe-bin-runtime-policy-CSBwsuHS.js";
|
|
77
|
+
import "./nodes-screen-DgLXnfNX.js";
|
|
78
|
+
import "./target-errors-CCgPtzPv.js";
|
|
79
|
+
import "./system-run-command-B7_IasTx.js";
|
|
80
|
+
import "./diagnostic-CL9h6IXx.js";
|
|
81
|
+
import "./with-timeout-OltBBBXv.js";
|
|
82
|
+
import "./send-CVzWMFl1.js";
|
|
83
|
+
import "./model-CfB7nuUK.js";
|
|
84
|
+
import "./pi-model-discovery-Drm3mYtt.js";
|
|
85
|
+
import "./ir-BdjoGJyL.js";
|
|
86
86
|
import "./render-Bwu_WxwA.js";
|
|
87
|
-
import "./channel-selection-
|
|
88
|
-
import "./plugin-auto-enable-
|
|
89
|
-
import "./send-
|
|
90
|
-
import "./outbound-attachment-
|
|
87
|
+
import "./channel-selection-HaUsJ3kL.js";
|
|
88
|
+
import "./plugin-auto-enable-DOlffoVt.js";
|
|
89
|
+
import "./send-7ekhdACO.js";
|
|
90
|
+
import "./outbound-attachment-BMKxLFNL.js";
|
|
91
91
|
import "./delivery-queue-5cgQEnOW.js";
|
|
92
|
-
import "./send-
|
|
93
|
-
import "./pi-tools.policy-
|
|
94
|
-
import "./channel-activity-
|
|
95
|
-
import "./tables-
|
|
92
|
+
import "./send-BlhxqBI9.js";
|
|
93
|
+
import "./pi-tools.policy-DaB-Ff9f.js";
|
|
94
|
+
import "./channel-activity-w-iWKqZg.js";
|
|
95
|
+
import "./tables-B3d05drH.js";
|
|
96
96
|
import "./proxy-CzncRRd4.js";
|
|
97
|
-
import "./skill-commands-
|
|
98
|
-
import "./workspace-dirs-
|
|
99
|
-
import "./runtime-config-collectors-
|
|
100
|
-
import "./command-secret-targets-
|
|
97
|
+
import "./skill-commands-De4NUpNz.js";
|
|
98
|
+
import "./workspace-dirs-0V-76Wmq.js";
|
|
99
|
+
import "./runtime-config-collectors-CXxR70dG.js";
|
|
100
|
+
import "./command-secret-targets-qpSAI_K2.js";
|
|
101
101
|
import "./session-cost-usage-BY7a_j5T.js";
|
|
102
|
-
import "./onboard-helpers-
|
|
102
|
+
import "./onboard-helpers-C51uqagK.js";
|
|
103
103
|
import "./prompt-style-C7TXsSbx.js";
|
|
104
|
-
import "./pairing-labels-
|
|
105
|
-
import "./memory-cli-
|
|
106
|
-
import "./manager-
|
|
107
|
-
import "./query-expansion-
|
|
104
|
+
import "./pairing-labels-OxEX3p5e.js";
|
|
105
|
+
import "./memory-cli-CLBPPSow.js";
|
|
106
|
+
import "./manager-Dbz9CyPw.js";
|
|
107
|
+
import "./query-expansion-bOaotSTR.js";
|
|
108
108
|
import { t as formatDocsLink } from "./links-3lq_eIAs.js";
|
|
109
109
|
import "./cli-utils-Ca0KE-dW.js";
|
|
110
110
|
import "./help-format-BBTgeZ6Z.js";
|
|
111
111
|
import "./progress-DSt-glE7.js";
|
|
112
|
-
import "./server-lifecycle-
|
|
112
|
+
import "./server-lifecycle-BYHavdLd.js";
|
|
113
113
|
import "./stagger-DL-XRpny.js";
|
|
114
|
-
import { r as waitForever, t as monitorWebChannel } from "./channel-web-
|
|
115
|
-
import "./outbound-
|
|
116
|
-
import "./session-
|
|
117
|
-
import "./login-
|
|
114
|
+
import { r as waitForever, t as monitorWebChannel } from "./channel-web-JuhY6j_M.js";
|
|
115
|
+
import "./outbound-C2sayF6_.js";
|
|
116
|
+
import "./session-CdQJLohq.js";
|
|
117
|
+
import "./login-CbJ7lelX.js";
|
|
118
118
|
import { t as isMainModule } from "./is-main-D5LnS2LP.js";
|
|
119
119
|
import { t as ensureOpenClawCliOnPath } from "./path-env-AnA7c9fb.js";
|
|
120
120
|
import { t as assertSupportedRuntime } from "./runtime-guard-DW_QSy-l.js";
|
|
121
|
-
import "./ports-
|
|
122
|
-
import { i as getCoreCliCommandsWithSubcommands, n as setProgramContext, o as registerProgramCommands, s as getSubCliCommandsWithSubcommands } from "./program-context-
|
|
123
|
-
import "./plugin-registry-
|
|
124
|
-
import { n as resolveCliChannelOptions } from "./channel-options-
|
|
121
|
+
import "./ports-DX1Cxj7W.js";
|
|
122
|
+
import { i as getCoreCliCommandsWithSubcommands, n as setProgramContext, o as registerProgramCommands, s as getSubCliCommandsWithSubcommands } from "./program-context-iEkoyF3D.js";
|
|
123
|
+
import "./plugin-registry-DfKKSRKU.js";
|
|
124
|
+
import { n as resolveCliChannelOptions } from "./channel-options-o5oDDArl.js";
|
|
125
125
|
import process$1 from "node:process";
|
|
126
126
|
import { fileURLToPath } from "node:url";
|
|
127
127
|
import { Command, InvalidArgumentError } from "commander";
|
|
@@ -575,11 +575,11 @@ function shouldBypassConfigGuard(commandPath) {
|
|
|
575
575
|
return false;
|
|
576
576
|
}
|
|
577
577
|
function loadConfigGuardModule() {
|
|
578
|
-
configGuardModulePromise ??= import("./config-guard-
|
|
578
|
+
configGuardModulePromise ??= import("./config-guard-B1hrQ4RG.js");
|
|
579
579
|
return configGuardModulePromise;
|
|
580
580
|
}
|
|
581
581
|
function loadPluginRegistryModule() {
|
|
582
|
-
pluginRegistryModulePromise ??= import("./plugin-registry-
|
|
582
|
+
pluginRegistryModulePromise ??= import("./plugin-registry-DfKKSRKU.js").then((n) => n.n);
|
|
583
583
|
return pluginRegistryModulePromise;
|
|
584
584
|
}
|
|
585
585
|
function getRootCommand(command) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { f as resolveGatewaySystemdServiceName, l as resolveGatewayLaunchAgentLabel, n as GATEWAY_SERVICE_KIND, p as resolveGatewayWindowsTaskName, r as GATEWAY_SERVICE_MARKER } from "./constants-B6D1y3V2.js";
|
|
2
|
-
import { n as execSchtasks } from "./service-
|
|
2
|
+
import { n as execSchtasks } from "./service-qQCNqvmY.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fsPromises from "node:fs/promises";
|
|
5
5
|
|
|
6
6
|
//#region src/daemon/inspect.ts
|
|
7
7
|
const EXTRA_MARKERS = [
|
|
@@ -76,14 +76,14 @@ function isLegacyLabel(label) {
|
|
|
76
76
|
}
|
|
77
77
|
async function readDirEntries(dir) {
|
|
78
78
|
try {
|
|
79
|
-
return await
|
|
79
|
+
return await fsPromises.readdir(dir);
|
|
80
80
|
} catch {
|
|
81
81
|
return [];
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
async function readUtf8File(filePath) {
|
|
85
85
|
try {
|
|
86
|
-
return await
|
|
86
|
+
return await fsPromises.readFile(filePath, "utf8");
|
|
87
87
|
} catch {
|
|
88
88
|
return null;
|
|
89
89
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { f as isNotFoundPathError, p as isPathInside } from "./openclaw-root-
|
|
2
|
-
import { a as openWritableFileWithinRoot, t as SafeOpenError } from "./fs-safe-
|
|
3
|
-
import { n as resolveSafeBaseDir } from "./path-safety-
|
|
1
|
+
import { f as isNotFoundPathError, p as isPathInside } from "./openclaw-root-DG6I1Pl4.js";
|
|
2
|
+
import { a as openWritableFileWithinRoot, t as SafeOpenError } from "./fs-safe-D_adQJX4.js";
|
|
3
|
+
import { n as resolveSafeBaseDir } from "./path-safety-dy_YlK3a.js";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
import
|
|
5
|
+
import fsPromises from "node:fs/promises";
|
|
6
6
|
import { createHash } from "node:crypto";
|
|
7
7
|
import { pipeline } from "node:stream/promises";
|
|
8
8
|
import { Readable, Transform } from "node:stream";
|
|
@@ -78,9 +78,9 @@ function resolveArchiveKind(filePath) {
|
|
|
78
78
|
async function resolvePackedRootDir(extractDir) {
|
|
79
79
|
const direct = path.join(extractDir, "package");
|
|
80
80
|
try {
|
|
81
|
-
if ((await
|
|
81
|
+
if ((await fsPromises.stat(direct)).isDirectory()) return direct;
|
|
82
82
|
} catch {}
|
|
83
|
-
const dirs = (await
|
|
83
|
+
const dirs = (await fsPromises.readdir(extractDir, { withFileTypes: true })).filter((entry) => entry.isDirectory()).map((entry) => entry.name);
|
|
84
84
|
if (dirs.length !== 1) throw new Error(`unexpected archive layout (dirs: ${dirs.join(", ")})`);
|
|
85
85
|
const onlyDir = dirs[0];
|
|
86
86
|
if (!onlyDir) throw new Error("unexpected archive layout (no package dir found)");
|
|
@@ -150,10 +150,10 @@ function symlinkTraversalError(originalPath) {
|
|
|
150
150
|
return new ArchiveSecurityError("destination-symlink-traversal", `${ERROR_ARCHIVE_ENTRY_TRAVERSES_SYMLINK}: ${originalPath}`);
|
|
151
151
|
}
|
|
152
152
|
async function assertDestinationDirReady(destDir) {
|
|
153
|
-
const stat = await
|
|
153
|
+
const stat = await fsPromises.lstat(destDir);
|
|
154
154
|
if (stat.isSymbolicLink()) throw new ArchiveSecurityError("destination-symlink", "archive destination is a symlink");
|
|
155
155
|
if (!stat.isDirectory()) throw new ArchiveSecurityError("destination-not-directory", "archive destination is not a directory");
|
|
156
|
-
return await
|
|
156
|
+
return await fsPromises.realpath(destDir);
|
|
157
157
|
}
|
|
158
158
|
async function assertNoSymlinkTraversal(params) {
|
|
159
159
|
const parts = params.relPath.split("/").filter(Boolean);
|
|
@@ -162,7 +162,7 @@ async function assertNoSymlinkTraversal(params) {
|
|
|
162
162
|
current = path.join(current, part);
|
|
163
163
|
let stat;
|
|
164
164
|
try {
|
|
165
|
-
stat = await
|
|
165
|
+
stat = await fsPromises.lstat(current);
|
|
166
166
|
} catch (err) {
|
|
167
167
|
if (isNotFoundPathError(err)) continue;
|
|
168
168
|
throw err;
|
|
@@ -173,7 +173,7 @@ async function assertNoSymlinkTraversal(params) {
|
|
|
173
173
|
async function assertResolvedInsideDestination(params) {
|
|
174
174
|
let resolved;
|
|
175
175
|
try {
|
|
176
|
-
resolved = await
|
|
176
|
+
resolved = await fsPromises.realpath(params.targetPath);
|
|
177
177
|
} catch (err) {
|
|
178
178
|
if (isNotFoundPathError(err)) return;
|
|
179
179
|
throw err;
|
|
@@ -196,12 +196,12 @@ async function openZipOutputFile(params) {
|
|
|
196
196
|
async function cleanupPartialRegularFile(filePath) {
|
|
197
197
|
let stat;
|
|
198
198
|
try {
|
|
199
|
-
stat = await
|
|
199
|
+
stat = await fsPromises.lstat(filePath);
|
|
200
200
|
} catch (err) {
|
|
201
201
|
if (isNotFoundPathError(err)) return;
|
|
202
202
|
throw err;
|
|
203
203
|
}
|
|
204
|
-
if (stat.isFile()) await
|
|
204
|
+
if (stat.isFile()) await fsPromises.unlink(filePath).catch(() => void 0);
|
|
205
205
|
}
|
|
206
206
|
async function readZipEntryStream(entry) {
|
|
207
207
|
if (typeof entry.nodeStream === "function") return entry.nodeStream();
|
|
@@ -229,7 +229,7 @@ async function prepareZipOutputPath(params) {
|
|
|
229
229
|
originalPath: params.originalPath
|
|
230
230
|
});
|
|
231
231
|
if (params.isDirectory) {
|
|
232
|
-
await
|
|
232
|
+
await fsPromises.mkdir(params.outPath, { recursive: true });
|
|
233
233
|
await assertResolvedInsideDestination({
|
|
234
234
|
destinationRealDir: params.destinationRealDir,
|
|
235
235
|
targetPath: params.outPath,
|
|
@@ -238,7 +238,7 @@ async function prepareZipOutputPath(params) {
|
|
|
238
238
|
return;
|
|
239
239
|
}
|
|
240
240
|
const parentDir = path.dirname(params.outPath);
|
|
241
|
-
await
|
|
241
|
+
await fsPromises.mkdir(parentDir, { recursive: true });
|
|
242
242
|
await assertResolvedInsideDestination({
|
|
243
243
|
destinationRealDir: params.destinationRealDir,
|
|
244
244
|
targetPath: parentDir,
|
|
@@ -261,7 +261,7 @@ async function writeZipFileEntry(params) {
|
|
|
261
261
|
try {
|
|
262
262
|
await pipeline(readable, createExtractBudgetTransform({ onChunkBytes: params.budget.addBytes }), writable);
|
|
263
263
|
} catch (err) {
|
|
264
|
-
if (opened.createdForWrite) await
|
|
264
|
+
if (opened.createdForWrite) await fsPromises.rm(opened.openedRealPath, { force: true }).catch(() => void 0);
|
|
265
265
|
else await cleanupPartialRegularFile(opened.openedRealPath).catch(() => void 0);
|
|
266
266
|
throw err;
|
|
267
267
|
} finally {
|
|
@@ -269,14 +269,14 @@ async function writeZipFileEntry(params) {
|
|
|
269
269
|
}
|
|
270
270
|
if (typeof params.entry.unixPermissions === "number") {
|
|
271
271
|
const mode = params.entry.unixPermissions & 511;
|
|
272
|
-
if (mode !== 0) await
|
|
272
|
+
if (mode !== 0) await fsPromises.chmod(opened.openedRealPath, mode).catch(() => void 0);
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
async function extractZip(params) {
|
|
276
276
|
const limits = resolveExtractLimits(params.limits);
|
|
277
277
|
const destinationRealDir = await assertDestinationDirReady(params.destDir);
|
|
278
|
-
if ((await
|
|
279
|
-
const buffer = await
|
|
278
|
+
if ((await fsPromises.stat(params.archivePath)).size > limits.maxArchiveBytes) throw new Error(ERROR_ARCHIVE_SIZE_EXCEEDS_LIMIT);
|
|
279
|
+
const buffer = await fsPromises.readFile(params.archivePath);
|
|
280
280
|
const zip = await JSZip.loadAsync(buffer);
|
|
281
281
|
const entries = Object.values(zip.files);
|
|
282
282
|
const strip = Math.max(0, Math.floor(params.stripComponents ?? 0));
|
|
@@ -349,7 +349,7 @@ async function extractArchive(params) {
|
|
|
349
349
|
const label = kind === "zip" ? "extract zip" : "extract tar";
|
|
350
350
|
if (kind === "tar") {
|
|
351
351
|
const limits = resolveExtractLimits(params.limits);
|
|
352
|
-
if ((await
|
|
352
|
+
if ((await fsPromises.stat(params.archivePath)).size > limits.maxArchiveBytes) throw new Error(ERROR_ARCHIVE_SIZE_EXCEEDS_LIMIT);
|
|
353
353
|
const checkTarEntrySafety = createTarEntrySafetyChecker({
|
|
354
354
|
rootDir: params.destDir,
|
|
355
355
|
stripComponents: params.stripComponents,
|
|
@@ -382,14 +382,14 @@ async function extractArchive(params) {
|
|
|
382
382
|
}
|
|
383
383
|
async function fileExists(filePath) {
|
|
384
384
|
try {
|
|
385
|
-
await
|
|
385
|
+
await fsPromises.stat(filePath);
|
|
386
386
|
return true;
|
|
387
387
|
} catch {
|
|
388
388
|
return false;
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
391
|
async function readJsonFile(filePath) {
|
|
392
|
-
const raw = await
|
|
392
|
+
const raw = await fsPromises.readFile(filePath, "utf-8");
|
|
393
393
|
return JSON.parse(raw);
|
|
394
394
|
}
|
|
395
395
|
|
|
@@ -433,13 +433,13 @@ async function assertCanonicalPathWithinBase(params) {
|
|
|
433
433
|
const baseDir = path.resolve(params.baseDir);
|
|
434
434
|
const candidatePath = path.resolve(params.candidatePath);
|
|
435
435
|
if (!isPathInside(baseDir, candidatePath)) throw new Error(`Invalid path: must stay within ${params.boundaryLabel}`);
|
|
436
|
-
const baseLstat = await
|
|
436
|
+
const baseLstat = await fsPromises.lstat(baseDir);
|
|
437
437
|
if (!baseLstat.isDirectory() || baseLstat.isSymbolicLink()) throw new Error(`Invalid ${params.boundaryLabel}: base directory must be a real directory`);
|
|
438
|
-
const baseRealPath = await
|
|
438
|
+
const baseRealPath = await fsPromises.realpath(baseDir);
|
|
439
439
|
const validateDirectory = async (dirPath) => {
|
|
440
|
-
const dirLstat = await
|
|
440
|
+
const dirLstat = await fsPromises.lstat(dirPath);
|
|
441
441
|
if (!dirLstat.isDirectory() || dirLstat.isSymbolicLink()) throw new Error(`Invalid path: must stay within ${params.boundaryLabel}`);
|
|
442
|
-
if (!isPathInside(baseRealPath, await
|
|
442
|
+
if (!isPathInside(baseRealPath, await fsPromises.realpath(dirPath))) throw new Error(`Invalid path: must stay within ${params.boundaryLabel}`);
|
|
443
443
|
};
|
|
444
444
|
try {
|
|
445
445
|
await validateDirectory(candidatePath);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as CONFIG_DIR, y as resolveUserPath } from "./utils-CokqDAE4.js";
|
|
2
2
|
import { i as isPathInside, r as extensionUsesSkippedScannerPath } from "./legacy-names-BP9MiXaN.js";
|
|
3
|
-
import { o as loadPluginManifest, s as resolvePackageExtensionEntries } from "./manifest-registry-
|
|
4
|
-
import { S as validateRegistryNpmSpec } from "./skills-
|
|
5
|
-
import { c as writeFileFromPathWithinRoot } from "./fs-safe-
|
|
6
|
-
import { a as unscopedPackageName, c as fileExists, l as readJsonFile, n as resolveSafeInstallDir, r as safeDirName, u as resolveArchiveKind } from "./install-safe-path-
|
|
7
|
-
import { a as installPackageDir, c as resolveTimedInstallModeOptions, d as buildNpmResolutionFields, f as resolveArchiveSourcePath, i as resolveCanonicalInstallTarget, l as resolveExistingInstallPath, n as installFromNpmSpecArchiveWithInstaller, r as ensureInstallTargetAvailable, s as resolveInstallModeOptions, t as finalizeNpmSpecArchiveInstall, u as withExtractedArchiveRoot } from "./npm-pack-install-
|
|
8
|
-
import { t as scanDirectoryWithSummary } from "./skill-scanner-
|
|
3
|
+
import { o as loadPluginManifest, s as resolvePackageExtensionEntries } from "./manifest-registry-QfHOpQrg.js";
|
|
4
|
+
import { S as validateRegistryNpmSpec } from "./skills-Sy3onNq_.js";
|
|
5
|
+
import { c as writeFileFromPathWithinRoot } from "./fs-safe-D_adQJX4.js";
|
|
6
|
+
import { a as unscopedPackageName, c as fileExists, l as readJsonFile, n as resolveSafeInstallDir, r as safeDirName, u as resolveArchiveKind } from "./install-safe-path-BNRYD-KJ.js";
|
|
7
|
+
import { a as installPackageDir, c as resolveTimedInstallModeOptions, d as buildNpmResolutionFields, f as resolveArchiveSourcePath, i as resolveCanonicalInstallTarget, l as resolveExistingInstallPath, n as installFromNpmSpecArchiveWithInstaller, r as ensureInstallTargetAvailable, s as resolveInstallModeOptions, t as finalizeNpmSpecArchiveInstall, u as withExtractedArchiveRoot } from "./npm-pack-install-BmT2Qku8.js";
|
|
8
|
+
import { t as scanDirectoryWithSummary } from "./skill-scanner-BtrQE0gO.js";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
import
|
|
10
|
+
import fsPromises from "node:fs/promises";
|
|
11
11
|
|
|
12
12
|
//#region src/plugins/install.ts
|
|
13
13
|
const MISSING_EXTENSIONS_ERROR = "package.json missing openclaw.extensions; update the plugin package to include openclaw.extensions (for example [\"./dist/index.js\"]). See https://docs.openclaw.ai/help/troubleshooting#plugin-install-fails-with-missing-openclaw-extensions";
|
|
@@ -237,7 +237,7 @@ async function installPluginFromDir(params) {
|
|
|
237
237
|
ok: false,
|
|
238
238
|
error: `directory not found: ${dirPath}`
|
|
239
239
|
};
|
|
240
|
-
if (!(await
|
|
240
|
+
if (!(await fsPromises.stat(dirPath)).isDirectory()) return {
|
|
241
241
|
ok: false,
|
|
242
242
|
error: `not a directory: ${dirPath}`
|
|
243
243
|
};
|
|
@@ -254,7 +254,7 @@ async function installPluginFromFile(params) {
|
|
|
254
254
|
error: `file not found: ${filePath}`
|
|
255
255
|
};
|
|
256
256
|
const extensionsDir = params.extensionsDir ? resolveUserPath(params.extensionsDir) : path.join(CONFIG_DIR, "extensions");
|
|
257
|
-
await
|
|
257
|
+
await fsPromises.mkdir(extensionsDir, { recursive: true });
|
|
258
258
|
const pluginId = path.basename(filePath, path.extname(filePath)) || "plugin";
|
|
259
259
|
const pluginIdError = validatePluginId(pluginId);
|
|
260
260
|
if (pluginIdError) return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Hn as parseCanonicalIpAddress, In as isIpv6Address, Mn as isCanonicalDottedDecimalIPv4 } from "./model-selection-
|
|
1
|
+
import { Hn as parseCanonicalIpAddress, In as isIpv6Address, Mn as isCanonicalDottedDecimalIPv4 } from "./model-selection-DZM1M4yx.js";
|
|
2
2
|
import { o as getTailnetHostname } from "./tailscale-OabIsy4o.js";
|
|
3
3
|
|
|
4
4
|
//#region src/gateway/gateway-config-prompts.shared.ts
|
|
@@ -2,14 +2,14 @@ import { a as logVerbose, c as shouldLogVerbose } from "./globals-BawKHR8h.js";
|
|
|
2
2
|
import { y as resolveUserPath } from "./utils-CokqDAE4.js";
|
|
3
3
|
import { _ as normalizeAccountId } from "./session-key-CIXZm7v4.js";
|
|
4
4
|
import { t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-S2KEwruz.js";
|
|
5
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
6
|
-
import { s as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-
|
|
7
|
-
import { _ as maxBytesForKind, a as hasAlphaChannel, c as detectMime, l as extensionForMime, m as kindFromMime, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg } from "./image-ops-
|
|
8
|
-
import { y as resolveAccountEntry } from "./accounts-
|
|
9
|
-
import { i as fetchRemoteMedia, n as getDefaultMediaLocalRoots } from "./local-roots-
|
|
5
|
+
import { r as normalizeChannelId } from "./plugins-DaN4Jp7R.js";
|
|
6
|
+
import { s as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-D_adQJX4.js";
|
|
7
|
+
import { _ as maxBytesForKind, a as hasAlphaChannel, c as detectMime, l as extensionForMime, m as kindFromMime, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg } from "./image-ops-BTwvusXV.js";
|
|
8
|
+
import { y as resolveAccountEntry } from "./accounts-BPt-s1cW.js";
|
|
9
|
+
import { i as fetchRemoteMedia, n as getDefaultMediaLocalRoots } from "./local-roots-_noFNwvo.js";
|
|
10
10
|
import { fileURLToPath } from "node:url";
|
|
11
11
|
import path from "node:path";
|
|
12
|
-
import
|
|
12
|
+
import fsPromises from "node:fs/promises";
|
|
13
13
|
import MarkdownIt from "markdown-it";
|
|
14
14
|
|
|
15
15
|
//#region src/markdown/fences.ts
|
|
@@ -387,7 +387,7 @@ async function assertLocalMediaAllowed(mediaPath, localRoots) {
|
|
|
387
387
|
const roots = localRoots ?? getDefaultLocalRoots();
|
|
388
388
|
let resolved;
|
|
389
389
|
try {
|
|
390
|
-
resolved = await
|
|
390
|
+
resolved = await fsPromises.realpath(mediaPath);
|
|
391
391
|
} catch {
|
|
392
392
|
resolved = path.resolve(mediaPath);
|
|
393
393
|
}
|
|
@@ -404,7 +404,7 @@ async function assertLocalMediaAllowed(mediaPath, localRoots) {
|
|
|
404
404
|
for (const root of roots) {
|
|
405
405
|
let resolvedRoot;
|
|
406
406
|
try {
|
|
407
|
-
resolvedRoot = await
|
|
407
|
+
resolvedRoot = await fsPromises.realpath(root);
|
|
408
408
|
} catch {
|
|
409
409
|
resolvedRoot = path.resolve(root);
|
|
410
410
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
|
-
import
|
|
2
|
+
import fsPromises from "node:fs/promises";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
|
|
5
5
|
//#region src/infra/json-files.ts
|
|
6
6
|
async function readJsonFile(filePath) {
|
|
7
7
|
try {
|
|
8
|
-
const raw = await
|
|
8
|
+
const raw = await fsPromises.readFile(filePath, "utf8");
|
|
9
9
|
return JSON.parse(raw);
|
|
10
10
|
} catch {
|
|
11
11
|
return null;
|
|
@@ -23,19 +23,19 @@ async function writeTextAtomic(filePath, content, options) {
|
|
|
23
23
|
const payload = options?.appendTrailingNewline && !content.endsWith("\n") ? `${content}\n` : content;
|
|
24
24
|
const mkdirOptions = { recursive: true };
|
|
25
25
|
if (typeof options?.ensureDirMode === "number") mkdirOptions.mode = options.ensureDirMode;
|
|
26
|
-
await
|
|
26
|
+
await fsPromises.mkdir(path.dirname(filePath), mkdirOptions);
|
|
27
27
|
const tmp = `${filePath}.${randomUUID()}.tmp`;
|
|
28
28
|
try {
|
|
29
|
-
await
|
|
29
|
+
await fsPromises.writeFile(tmp, payload, "utf8");
|
|
30
30
|
try {
|
|
31
|
-
await
|
|
31
|
+
await fsPromises.chmod(tmp, mode);
|
|
32
32
|
} catch {}
|
|
33
|
-
await
|
|
33
|
+
await fsPromises.rename(tmp, filePath);
|
|
34
34
|
try {
|
|
35
|
-
await
|
|
35
|
+
await fsPromises.chmod(filePath, mode);
|
|
36
36
|
} catch {}
|
|
37
37
|
} finally {
|
|
38
|
-
await
|
|
38
|
+
await fsPromises.rm(tmp, { force: true }).catch(() => void 0);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
function createAsyncLock() {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { d as resolveIsNixMode } from "./paths-BBP4yd-2.js";
|
|
2
2
|
import { d as colorize, f as isRich, g as getResolvedLoggerSettings, p as theme } from "./globals-BawKHR8h.js";
|
|
3
3
|
import { d as defaultRuntime } from "./subsystem-BiaB_3Ei.js";
|
|
4
|
-
import { $t as loadConfig } from "./model-selection-
|
|
4
|
+
import { $t as loadConfig } from "./model-selection-DZM1M4yx.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-Gp1OUMPH.js";
|
|
6
6
|
import { t as resolveGatewayCredentialsFromConfig } from "./credentials-DWbOUxWG.js";
|
|
7
|
-
import { t as isWSL } from "./wsl-
|
|
7
|
+
import { t as isWSL } from "./wsl-wYxPJ8EO.js";
|
|
8
8
|
import { f as resolveGatewaySystemdServiceName, l as resolveGatewayLaunchAgentLabel, p as resolveGatewayWindowsTaskName } from "./constants-B6D1y3V2.js";
|
|
9
|
-
import { r as isSystemdUserServiceAvailable } from "./systemd-
|
|
10
|
-
import { s as resolveGatewayLogPaths } from "./service-
|
|
11
|
-
import { a as checkTokenDrift, n as renderSystemdUnavailableHints } from "./systemd-hints-
|
|
9
|
+
import { r as isSystemdUserServiceAvailable } from "./systemd-DotMzkho.js";
|
|
10
|
+
import { s as resolveGatewayLogPaths } from "./service-qQCNqvmY.js";
|
|
11
|
+
import { a as checkTokenDrift, n as renderSystemdUnavailableHints } from "./systemd-hints-B1n_Cmj7.js";
|
|
12
12
|
import { t as parsePort } from "./parse-port-OBGBQwYB.js";
|
|
13
13
|
import { Writable } from "node:stream";
|
|
14
14
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { g as resolveStateDir } from "./paths-BBP4yd-2.js";
|
|
2
2
|
import { k as resolvePreferredOpenClawTmpDir } from "./globals-BawKHR8h.js";
|
|
3
|
-
import { u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
4
|
-
import { c as detectMime, l as extensionForMime } from "./image-ops-
|
|
5
|
-
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
3
|
+
import { u as resolveAgentWorkspaceDir } from "./agent-scope-CNJUPFcR.js";
|
|
4
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-BTwvusXV.js";
|
|
5
|
+
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-Ca0W-yZr.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
|
|
8
8
|
//#region src/media/read-response-with-limit.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { l as success, n as info, t as danger } from "./globals-BawKHR8h.js";
|
|
2
2
|
import { d as defaultRuntime } from "./subsystem-BiaB_3Ei.js";
|
|
3
3
|
import { r as logInfo } from "./logger-fgPrvtjf.js";
|
|
4
|
-
import { $t as loadConfig } from "./model-selection-
|
|
4
|
+
import { $t as loadConfig } from "./model-selection-DZM1M4yx.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-Gp1OUMPH.js";
|
|
6
|
-
import { i as resolveWhatsAppAccount, l as logoutWeb } from "./accounts-
|
|
7
|
-
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-
|
|
6
|
+
import { i as resolveWhatsAppAccount, l as logoutWeb } from "./accounts-BPt-s1cW.js";
|
|
7
|
+
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-CdQJLohq.js";
|
|
8
8
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
9
9
|
|
|
10
10
|
//#region src/web/login.ts
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import "./paths-BBP4yd-2.js";
|
|
2
2
|
import { l as success, n as info, t as danger } from "./globals-BawKHR8h.js";
|
|
3
3
|
import "./utils-CokqDAE4.js";
|
|
4
|
-
import "./agent-scope-
|
|
4
|
+
import "./agent-scope-CNJUPFcR.js";
|
|
5
5
|
import { d as defaultRuntime } from "./subsystem-BiaB_3Ei.js";
|
|
6
|
-
import "./openclaw-root-
|
|
6
|
+
import "./openclaw-root-DG6I1Pl4.js";
|
|
7
7
|
import { r as logInfo } from "./logger-fgPrvtjf.js";
|
|
8
8
|
import "./exec-Cu2obwh9.js";
|
|
9
|
-
import { $t as loadConfig } from "./model-selection-
|
|
9
|
+
import { $t as loadConfig } from "./model-selection-DZM1M4yx.js";
|
|
10
10
|
import "./registry-CTtrVpZB.js";
|
|
11
11
|
import "./github-copilot-token-b6kJVrW-.js";
|
|
12
12
|
import "./boolean-BsqeuxE6.js";
|
|
13
13
|
import "./env-CNF75H3c.js";
|
|
14
14
|
import "./host-env-security-DkAVVuaw.js";
|
|
15
15
|
import "./env-vars-ausEv-bN.js";
|
|
16
|
-
import "./manifest-registry-
|
|
17
|
-
import { _ as webAuthExists, i as resolveWhatsAppAccount, l as logoutWeb, p as readWebSelfId } from "./accounts-
|
|
16
|
+
import "./manifest-registry-QfHOpQrg.js";
|
|
17
|
+
import { _ as webAuthExists, i as resolveWhatsAppAccount, l as logoutWeb, p as readWebSelfId } from "./accounts-BPt-s1cW.js";
|
|
18
18
|
import "./logging-D3KTM1pH.js";
|
|
19
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-
|
|
19
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-CdQJLohq.js";
|
|
20
20
|
import { randomUUID } from "node:crypto";
|
|
21
21
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
22
22
|
import QRCodeModule from "qrcode-terminal/vendor/QRCode/index.js";
|