openclaw-multi-auto 1.3.0 → 1.3.1
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-CUYZBSKh.js → accounts-BU-CeDai.js} +1 -1
- package/dist/{accounts-BtEMxtPK.js → accounts-BVgYdU9W.js} +1 -1
- package/dist/{accounts-khXX75l1.js → accounts-DJaYqD2E.js} +7 -7
- package/dist/{acp-cli-CA2oCCEA.js → acp-cli-oWFHnS7i.js} +8 -8
- package/dist/{agent-scope-NQ9CtXYN.js → agent-scope-BRElciAf.js} +17 -17
- package/dist/{agents-BWVlofyv.js → agents-CujsWz9d.js} +14 -14
- package/dist/{agents.config-QVfqc4C-.js → agents.config-C42STger.js} +2 -2
- package/dist/{api-key-rotation-Vix80AUw.js → api-key-rotation-BbuLHl0_.js} +1 -1
- package/dist/{audio-preflight-DoPfNXDz.js → audio-preflight-DpxQCpsA.js} +4 -4
- package/dist/{audio-preflight-DUtdCXjJ.js → audio-preflight-Yg1vzPE1.js} +34 -34
- package/dist/{audio-transcription-runner-CzjuH3uL.js → audio-transcription-runner-28fcRNNi.js} +1 -1
- package/dist/{audio-transcription-runner-DYKvqK54.js → audio-transcription-runner-D1cvrZ6s.js} +23 -23
- package/dist/{audit-oC--RZy0.js → audit-DtlAv66L.js} +29 -29
- package/dist/{auth-YB6m93-M.js → auth-Mj21c_GN.js} +1 -1
- package/dist/{auth-choice-CsSQLEkP.js → auth-choice-CEycltU4.js} +13 -13
- package/dist/{auth-choice-gp-h1aBd.js → auth-choice-CGHVedXa.js} +11 -11
- package/dist/{auth-choice.apply-helpers-CPpuynsT.js → auth-choice.apply-helpers-D4YQXYfc.js} +1 -1
- package/dist/{auth-profiles-15pq9j9V.js → auth-profiles-CdLTlJLc.js} +16 -16
- package/dist/{auth-token-Bwn8N6KA.js → auth-token-7kzDLVhb.js} +1 -1
- package/dist/{banner-hcZ0XNXv.js → banner-CpzKVd4-.js} +2 -2
- package/dist/{bonjour-discovery-2btw06uD.js → bonjour-discovery-BuS9wF_p.js} +1 -1
- package/dist/{browser-cli-C4PdLYHy.js → browser-cli-BVtbvQ3Z.js} +12 -12
- 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-CZgRbVYm.js → call-Dp9SDkqK.js} +10 -10
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-account-context-BYiOuxnf.js → channel-account-context-ESLVGdUf.js} +5 -5
- package/dist/{channel-activity-D9K6yeu8.js → channel-activity-LfmEkdDN.js} +1 -1
- package/dist/{channel-options-DJkf_8wi.js → channel-options-CsYaFB_4.js} +3 -3
- package/dist/{channel-selection-BpIsCVV5.js → channel-selection-DFJsYFPo.js} +1 -1
- package/dist/{channel-web-wb1My1Yi.js → channel-web-DzRsJEE4.js} +17 -17
- package/dist/{channels-cli-DlQONtY9.js → channels-cli-CpfeOXtJ.js} +93 -93
- package/dist/{channels-status-issues-Hj-GOSVm.js → channels-status-issues-6V9ktlZD.js} +1 -1
- package/dist/{chrome-L_icBVLq.js → chrome-CyM61Cn2.js} +4 -4
- package/dist/{chrome-DlhJHqj8.js → chrome-DwizpzOC.js} +8 -8
- package/dist/{clawbot-cli-CyTZUVIJ.js → clawbot-cli-COtnakIJ.js} +11 -11
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-CNTrB-ni.js → cli-jnT1hYPO.js} +73 -73
- package/dist/{client-g0366Z73.js → client-C-wA75vx.js} +2 -2
- package/dist/{command-registry-VOmumlmD.js → command-registry-g5tDqdAU.js} +11 -11
- package/dist/{command-secret-targets-CIMuIdbL.js → command-secret-targets-u3eWn-W3.js} +4 -4
- package/dist/{commands-DU7At3rY.js → commands-C8pWcFs_.js} +1 -1
- package/dist/{commands-registry-B_WUa9KB.js → commands-registry-J6nVL3BQ.js} +3 -3
- package/dist/{completion-cli-pqdmKVTo.js → completion-cli-DQsyli3B.js} +13 -13
- package/dist/{config-cli-BqznmzlM.js → config-cli-DUycVHoC.js} +7 -7
- package/dist/{config-guard-D8jiLjr7.js → config-guard--Obk2MGi.js} +3 -3
- package/dist/{config-validation-BngLiGoq.js → config-validation-iOxszdEd.js} +3 -3
- package/dist/{configure-B--Umf_O.js → configure-Al_pz_5z.js} +17 -17
- package/dist/{control-ui-assets-C9ewbI8z.js → control-ui-assets-DpjfNcTC.js} +1 -1
- package/dist/{cron-cli-DCRPpI1m.js → cron-cli-CQ5EZw_b.js} +11 -11
- package/dist/{daemon-cli-DtBzKM_d.js → daemon-cli-Bb80Mzv5.js} +15 -15
- package/dist/{daemon-install-ckPBUAjJ.js → daemon-install-B09ifLcJ.js} +4 -4
- package/dist/{daemon-install-helpers-BWf-PrgA.js → daemon-install-helpers-CYpECiEx.js} +11 -11
- package/dist/{deliver-b93aBgie.js → deliver-CxF9h9PE.js} +7 -7
- package/dist/{deliver-CApVJA_l.js → deliver-D4o6VIur.js} +1 -1
- package/dist/deliver-runtime-DixuU_uB.js +61 -0
- package/dist/{deliver-runtime-D1z-h5eg.js → deliver-runtime-P-G3bPjW.js} +3 -3
- package/dist/deps-send-discord.runtime-CDcLcDSt.js +36 -0
- package/dist/deps-send-imessage.runtime-BGPUVMIE.js +35 -0
- package/dist/deps-send-signal.runtime-DQDD44_O.js +34 -0
- package/dist/deps-send-slack.runtime-Cpy77gBG.js +32 -0
- package/dist/{deps-send-telegram.runtime-C--B69CN.js → deps-send-telegram.runtime-B6wp3kx8.js} +16 -16
- package/dist/{deps-send-whatsapp.runtime-Dz_4fi2D.js → deps-send-whatsapp.runtime-CJkTHkah.js} +7 -7
- package/dist/deps-send-whatsapp.runtime-D2sVAclS.js +119 -0
- package/dist/{devices-cli-D6V059Dh.js → devices-cli-C0dUbeL4.js} +8 -8
- package/dist/{diagnostic-BpP9UBCE.js → diagnostic-BfiudAAN.js} +1 -1
- package/dist/{diagnostics---0c2_jo.js → diagnostics-DCWM_8Ur.js} +5 -5
- package/dist/{directory-cli-RYC34-EU.js → directory-cli-Dlws13Di.js} +7 -7
- package/dist/{dns-cli-CElNoV5S.js → dns-cli-But7QdAw.js} +5 -5
- package/dist/{dock-nA2DVPCV.js → dock-BbUkruOF.js} +4 -4
- package/dist/{docs-cli-Bv7ltPvi.js → docs-cli-Ck2IKAtw.js} +4 -4
- package/dist/{doctor-completion-CQIiN7rY.js → doctor-completion-Nat1HXE1.js} +2 -2
- package/dist/{doctor-config-flow-BOAryh5P.js → doctor-config-flow-WCCoUXeB.js} +15 -15
- package/dist/{enable-688HYBNS.js → enable-C3H8BtN4.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{exec-approvals-allowlist-C0Eya3rT.js → exec-approvals-allowlist-ySf2Yo5n.js} +1 -1
- package/dist/{exec-approvals-cli-BYYerKp8.js → exec-approvals-cli-DhLLOys6.js} +16 -16
- package/dist/{exec-safe-bin-runtime-policy-BmJmfDRo.js → exec-safe-bin-runtime-policy-DnXViOlF.js} +2 -2
- package/dist/{fetch-BhAHVdwx.js → fetch-D-SiVqBm.js} +3 -3
- package/dist/{fetch-guard-BbBdhWz_.js → fetch-guard-CKYBfJ66.js} +1 -1
- package/dist/{fs-safe-CFLs-j60.js → fs-safe-jMDpsYew.js} +24 -24
- package/dist/{gateway-cli-DOYWSRqa.js → gateway-cli--atF6LYo.js} +153 -153
- package/dist/{gateway-rpc-w6t8Eq_1.js → gateway-rpc-DYyQQ1z9.js} +1 -1
- package/dist/{health-C1EstYHd.js → health-BDJ72U4Z.js} +11 -11
- package/dist/{hooks-cli-BFMve5sG.js → hooks-cli-r0UX8B9a.js} +81 -81
- package/dist/{hooks-status-DBnEWOEP.js → hooks-status-CxBdpBry.js} +1 -1
- package/dist/{image-B3Mz7N5I.js → image-Bbn53mzj.js} +1 -1
- package/dist/{image-Bw71y73Q.js → image-CyHTO86Q.js} +5 -5
- package/dist/{image-ops-AJL9tN3_.js → image-ops-pjs5W0CZ.js} +10 -10
- package/dist/image-runtime-B2qh5seQ.js +55 -0
- package/dist/{image-runtime-DWjhow2W.js → image-runtime-CVv2ra9J.js} +3 -3
- package/dist/{inspect-CUxeDA8c.js → inspect-BeU4yMp2.js} +4 -4
- package/dist/{install-safe-path-BX58wFBl.js → install-safe-path-BiL8OJvK.js} +25 -25
- package/dist/{installs-B-xr0Fzq.js → installs-BwKmG0Uy.js} +9 -9
- package/dist/{ipv4-C4Yt-xid.js → ipv4-BoGwfnEw.js} +1 -1
- package/dist/{ir-otKVkb4a.js → ir-Da7Ahsqc.js} +8 -8
- package/dist/{issue-format-DSksfKiV.js → issue-format-CJ89_-9v.js} +1 -1
- package/dist/{json-files-rR19q30D.js → json-files-CuJjdF_0.js} +8 -8
- package/dist/{lifecycle-core-DVwen0ks.js → lifecycle-core-BzuWBBm8.js} +5 -5
- package/dist/llm-slug-generator.js +6 -6
- package/dist/{login-BcRaGQb6.js → login-VkQ9MW3d.js} +3 -3
- package/dist/{login-qr-C9D47WEZ.js → login-qr-BVMQ-xQz.js} +6 -6
- package/dist/{logs-cli-B3TG2lp8.js → logs-cli-DWHhSnWs.js} +9 -9
- package/dist/{manager-iwcRf3Xc.js → manager-BUBwl6M6.js} +14 -14
- package/dist/{manager-runtime-D3KqpRT7.js → manager-runtime-H9iQnw64.js} +9 -9
- package/dist/{manifest-registry-CJb8odRF.js → manifest-registry-DVviqWVY.js} +1 -1
- package/dist/{memory-cli-DGsJx7YM.js → memory-cli-DarWCbU6.js} +12 -12
- package/dist/{model-B792l3Cn.js → model-BLV8y_N-.js} +2 -2
- package/dist/{model-catalog-DZ6kl2Ko.js → model-catalog-DTcBkUlX.js} +3 -3
- package/dist/{model-picker-6fHys0wK.js → model-picker-D-fTOOzb.js} +4 -4
- package/dist/{models-DerrMmwF.js → models-CmjutMmh.js} +17 -17
- package/dist/{models-cli-BkTZg_4v.js → models-cli-BZFQX22p.js} +78 -78
- package/dist/{models-config-Dabs9Kdv.js → models-config-DNcDbV_G.js} +6 -6
- package/dist/{net-BAIqYNz0.js → net-D5fSREu4.js} +2 -2
- package/dist/{node-cli-DoEq4zeG.js → node-cli-Cnq-PJTp.js} +33 -33
- package/dist/{node-command-policy-DRhSc90G.js → node-command-policy-B5BMBBJP.js} +1 -1
- package/dist/{node-service-CcgtNIeT.js → node-service-BpYZAvpl.js} +1 -1
- package/dist/{nodes-cli--d9RiCnK.js → nodes-cli-CkrDOWpv.js} +16 -16
- package/dist/{nodes-screen-BTND5VDq.js → nodes-screen-DfsQohWd.js} +7 -7
- package/dist/{npm-pack-install-CGUDOSKz.js → npm-pack-install-E-mkrZ55.js} +18 -18
- package/dist/{npm-resolution-CAoULCWM.js → npm-resolution-BUUmg5ON.js} +4 -4
- package/dist/{onboard-CMZRkPVc.js → onboard-DINGSS9R.js} +6 -6
- package/dist/{onboard-channels-SlJu6XWJ.js → onboard-channels-Di4MjWDY.js} +21 -21
- package/dist/{onboard-custom-EzfL89yz.js → onboard-custom-DITBQuWQ.js} +4 -4
- package/dist/{onboard-helpers-lGpaVp03.js → onboard-helpers-DO7u2ZOy.js} +10 -10
- package/dist/{onboard-hooks-B7TMiJoY.js → onboard-hooks-K02_ZWDq.js} +4 -4
- package/dist/{onboard-remote-nvWS7on7.js → onboard-remote-5-ugiSN2.js} +4 -4
- package/dist/{onboard-skills-hz91W03u.js → onboard-skills-CSzbC2KZ.js} +4 -4
- package/dist/{onboarding-CTPuMVQI.js → onboarding-BM4dvUK6.js} +14 -14
- package/dist/{onboarding.finalize-DLzl5ZOg.js → onboarding.finalize-p_RDh7ET.js} +87 -87
- package/dist/{onboarding.gateway-config-C4MoTr60.js → onboarding.gateway-config-DldlRfms.js} +18 -18
- package/dist/{onboarding.secret-input-BFD0OW4X.js → onboarding.secret-input-BIRIJiCU.js} +1 -1
- package/dist/{openai-model-default-h4LbSR7f.js → openai-model-default-CY2Nk4cn.js} +2 -2
- package/dist/{openclaw-root-BU3lu8pM.js → openclaw-root-BFfBQ6FD.js} +8 -8
- package/dist/{outbound-kbHYt1JW.js → outbound-DPdJe7e1.js} +3 -3
- package/dist/{outbound-attachment-CAJBGcna.js → outbound-attachment-DfWsfe2N.js} +2 -2
- package/dist/{pairing-cli-CXbmkz7Z.js → pairing-cli-D2VZxWg3.js} +8 -8
- package/dist/{pairing-labels-CaPLIhlh.js → pairing-labels-D4rnJ5pJ.js} +1 -1
- package/dist/{pairing-store-Brs9aNn_.js → pairing-store-BXArq4hn.js} +3 -3
- package/dist/{path-alias-guards-DhIwq92y.js → path-alias-guards-DbNvNQar.js} +3 -3
- package/dist/{path-safety-BjIM4N4t.js → path-safety-ClQO4BB6.js} +1 -1
- package/dist/{paths-Cv63xST_.js → paths-BB_1ZWOj.js} +9 -9
- package/dist/{pi-embedded-bcjMe3wj.js → pi-embedded-BaGj07T0.js} +24 -24
- package/dist/{pi-embedded-helpers-DC2OtKrl.js → pi-embedded-helpers-oXDyXTD8.js} +6 -6
- package/dist/{pi-embedded-helpers-D5yyGEvA.js → pi-embedded-helpers-wy0DZvx1.js} +3 -3
- package/dist/{pi-model-discovery-DOb5RTev.js → pi-model-discovery-CECkJMCt.js} +1 -1
- package/dist/{pi-model-discovery-runtime-DShjmiiF.js → pi-model-discovery-runtime-g7UP-SFR.js} +5 -5
- package/dist/{pi-tools.before-tool-call.runtime-B079pVah.js → pi-tools.before-tool-call.runtime-Df7B-ggW.js} +5 -5
- package/dist/{pi-tools.policy-DZ-X86Va.js → pi-tools.policy-CydUEzFi.js} +5 -5
- package/dist/{plugin-auto-enable-BCMqEDjQ.js → plugin-auto-enable-BE4ZVjAL.js} +3 -3
- package/dist/{plugin-registry-BPlCWMur.js → plugin-registry-DXW3eyib.js} +3 -3
- package/dist/plugin-sdk/{accounts-C3m65--E.js → accounts-BJAXxY46.js} +2 -2
- package/dist/plugin-sdk/{accounts-CNCCkdEF.js → accounts-C1j7HSL0.js} +3 -3
- package/dist/plugin-sdk/{accounts-BslAlVYS.js → accounts-DyFCXtHv.js} +2 -2
- package/dist/plugin-sdk/{active-listener-CkPnMUkB.js → active-listener-CftX5jLD.js} +2 -2
- package/dist/plugin-sdk/{api-key-rotation-BXnNsojA.js → api-key-rotation-8nyyt1kx.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-CtO4fFvp.js → audio-preflight-C_aSAPR1.js} +26 -26
- package/dist/plugin-sdk/{audio-transcription-runner-DnxvOS1-.js → audio-transcription-runner-CB53F7_7.js} +11 -11
- package/dist/plugin-sdk/{audit-membership-runtime-BpfoSk8M.js → audit-membership-runtime-BXndI4LG.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-WJYxcJ3S.js → channel-activity-C5y8AgAV.js} +3 -3
- package/dist/plugin-sdk/{channel-web-dO5k3ubM.js → channel-web-DBTRO03V.js} +18 -18
- package/dist/plugin-sdk/{chrome-CjNTuJML.js → chrome-f00sZkDX.js} +6 -6
- package/dist/plugin-sdk/{commands-registry-CdYjoI0i.js → commands-registry-BJ_NxG2F.js} +4 -4
- package/dist/plugin-sdk/{common-oYc5vPFl.js → common-Cf27Jwxu.js} +2 -2
- package/dist/plugin-sdk/{config-B1z-UxQ3.js → config-CHQrpx-Q.js} +7 -7
- package/dist/plugin-sdk/{deliver-D5_6T567.js → deliver-DNEuetST.js} +10 -10
- package/dist/plugin-sdk/deliver-runtime-BFdqklJM.js +32 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-DuqpYwU0.js +23 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-CZ2rS8Lb.js +22 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-BdqiWhIh.js +21 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-04s36qiC.js +19 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-LE5tkPvr.js +24 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-Bz57lobC.js +57 -0
- package/dist/plugin-sdk/{diagnostic-Bxxu0ig-.js → diagnostic-LYUUmjJ5.js} +2 -2
- package/dist/plugin-sdk/{errors-B3cHyZZA.js → errors-CtMWwS2Z.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-Dcgod0tg.js → fetch-guard-CxYB5Kg6.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-BaKqI3G4.js → fs-safe-DtfhxbrI.js} +3 -3
- package/dist/plugin-sdk/{image-B2mQW9Rb.js → image-BwjYjRHx.js} +6 -6
- package/dist/plugin-sdk/{image-ops-Cbzr4U9l.js → image-ops-BnZKcbd6.js} +2 -2
- package/dist/plugin-sdk/image-runtime-B8twoubs.js +25 -0
- package/dist/plugin-sdk/{ir-ZEmrTr4J.js → ir-Z4hX67TJ.js} +7 -7
- package/dist/plugin-sdk/{local-roots-CIPRxA-4.js → local-roots-KhjQw04O.js} +4 -4
- package/dist/plugin-sdk/{logger-CvPFVOgT.js → logger-DHIIvMxj.js} +2 -2
- package/dist/plugin-sdk/{login-CCTew9bt.js → login-C31642Ld.js} +4 -4
- package/dist/plugin-sdk/{login-qr-BI3Vi_wJ.js → login-qr--y2SG_Ue.js} +5 -5
- package/dist/plugin-sdk/{manager-BEoYPn7R.js → manager-2UZBMCc7.js} +8 -8
- package/dist/plugin-sdk/manager-runtime-CMeLwose.js +15 -0
- package/dist/plugin-sdk/{outbound-ByOw1K6W.js → outbound-Ba0QUI5h.js} +5 -5
- package/dist/plugin-sdk/{outbound-attachment-BzVhxRRw.js → outbound-attachment-B1Laso-8.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-sWayacde.js → path-alias-guards-C7Vm5DZ1.js} +1 -1
- package/dist/plugin-sdk/{paths-Dpg3qxcl.js → paths-DopV9PQG.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-DIxXkGJf.js → pi-embedded-helpers-DnA_OCzP.js} +16 -16
- package/dist/plugin-sdk/{pi-model-discovery-DM_2uFtj.js → pi-model-discovery-DdPqXk8f.js} +1 -1
- package/dist/plugin-sdk/pi-model-discovery-runtime-D8CJhtJY.js +8 -0
- package/dist/plugin-sdk/{pi-tools.before-tool-call.runtime-w1dqL_ty.js → pi-tools.before-tool-call.runtime-DxFHiLUE.js} +4 -4
- package/dist/plugin-sdk/{plugins-C4USiH29.js → plugins-CbCt4osF.js} +4 -4
- package/dist/plugin-sdk/{proxy-env-ET-rp8eg.js → proxy-env-C63mMdas.js} +1 -1
- package/dist/plugin-sdk/{proxy-fetch-uDXGKG3Z.js → proxy-fetch-Ch95c_Y2.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-CyOt3RDA.js → pw-ai-DpJk62D4.js} +9 -9
- package/dist/plugin-sdk/{qmd-manager-BySdoVR7.js → qmd-manager-Ca-iSfEE.js} +7 -7
- package/dist/plugin-sdk/{query-expansion-C6uS-7lj.js → query-expansion-B_Xe41Ab.js} +4 -4
- package/dist/plugin-sdk/{redact-Bvxt1T_Q.js → redact-hp9TOulW.js} +1 -1
- package/dist/plugin-sdk/{reply-CTCSeQqW.js → reply-CovBlFea.js} +73 -73
- package/dist/plugin-sdk/{resolve-outbound-target-Bw8YNANu.js → resolve-outbound-target-BbrHgyUk.js} +2 -2
- package/dist/plugin-sdk/{run-with-concurrency-C_KCHwvf.js → run-with-concurrency-BR1DXa8T.js} +1 -1
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-SkO91TZH.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-B0VWK5hm.js +19 -0
- package/dist/plugin-sdk/{send-C0w6xP2x.js → send-BTztm3D2.js} +6 -6
- package/dist/plugin-sdk/{send-qPyNGSe4.js → send-BXpXBwM_.js} +13 -13
- package/dist/plugin-sdk/{send-BZ6nYFZr.js → send-BvAtLLPl.js} +5 -5
- package/dist/plugin-sdk/{send-CFf-1V89.js → send-CWJUuG0i.js} +8 -8
- package/dist/plugin-sdk/{send-CY-Qfwia.js → send-EcglC4cG.js} +7 -7
- package/dist/plugin-sdk/{session-COrvpvUQ.js → session-k256LJZT.js} +3 -3
- package/dist/plugin-sdk/{skill-commands-DZqhtmiv.js → skill-commands-DoRqLzxm.js} +4 -4
- package/dist/plugin-sdk/{skills-Cw_vXEJb.js → skills-QudILG6e.js} +6 -6
- package/dist/plugin-sdk/slash-commands.runtime-DS6vCNSL.js +13 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-BXrxb2wd.js +52 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-Bd6qQ2oT.js +16 -0
- package/dist/plugin-sdk/{store-CMHj6IIw.js → store-BbDQw3g6.js} +2 -2
- package/dist/plugin-sdk/subagent-registry-runtime-1uwQbuXj.js +52 -0
- package/dist/plugin-sdk/{tables-CSqrHsKL.js → tables-BhvloMKN.js} +1 -1
- package/dist/plugin-sdk/{thinking-DOnsR_A8.js → thinking-URzkT-3p.js} +7 -7
- package/dist/plugin-sdk/{tokens-BDr0Z9o3.js → tokens-B1PW5Ayy.js} +1 -1
- package/dist/plugin-sdk/{tool-images-eEfOVkzf.js → tool-images-xpqbP6RR.js} +2 -2
- package/dist/plugin-sdk/web-B74yhL2N.js +56 -0
- package/dist/plugin-sdk/{whatsapp-actions-xcleMoMv.js → whatsapp-actions-RcZ6vp61.js} +17 -17
- package/dist/plugin-sdk/whatsapp.js +50 -50
- package/dist/{plugins-DCxT-37x.js → plugins-VAZrrfgw.js} +2 -2
- package/dist/{plugins-cli-D9ILEfyb.js → plugins-cli-BQJOOVMx.js} +83 -83
- package/dist/{ports-BlCLhwbc.js → ports-DMkRSlnH.js} +1 -1
- package/dist/{ports-CER5YPnN.js → ports-DogAV7pa.js} +2 -2
- package/dist/{program-CV56xn7w.js → program-BA11qFx1.js} +81 -81
- package/dist/{prompt-select-styled-BOa5I_PU.js → prompt-select-styled-B0GS28ia.js} +40 -40
- package/dist/{provider-auth-helpers-c6mNCUXO.js → provider-auth-helpers-CrGL-jik.js} +5 -5
- package/dist/{proxy-env-BMrSVckF.js → proxy-env-wKO3g8Yv.js} +1 -1
- package/dist/{push-apns-FOkPD05E.js → push-apns-BEwBjZ0a.js} +5 -5
- package/dist/{pw-ai-CDQDCfUa.js → pw-ai-Cl1Lc7RC.js} +1 -1
- package/dist/{pw-ai-CxBU3aK5.js → pw-ai-CnbxziFP.js} +18 -18
- package/dist/{qmd-manager-DEJMqoGd.js → qmd-manager-Dp6PJ8zQ.js} +20 -20
- package/dist/{qr-cli-BD2jK4fg.js → qr-cli-CFz9kS5X.js} +2 -2
- package/dist/{query-expansion-1UTIWjP6.js → query-expansion-BrSWVbaE.js} +12 -12
- package/dist/{redact-snapshot-D_qQD4A-.js → redact-snapshot-Bs4goggz.js} +1 -1
- package/dist/{register.agent-tbPA5YAy.js → register.agent-D641ju8B.js} +94 -94
- package/dist/register.configure-BrDOSLIq.js +165 -0
- package/dist/{register.maintenance-DrqDlV5b.js → register.maintenance-BFkk8MEH.js} +95 -95
- package/dist/{register.message-CoKXNaU0.js → register.message-D5uE_Hop.js} +74 -74
- package/dist/{register.onboard-CSWOSL9O.js → register.onboard-zHFvSwFr.js} +18 -18
- package/dist/{register.setup-DBx5JX6h.js → register.setup-uTbv3_P1.js} +21 -21
- package/dist/{register.status-health-sessions-D1bPtfep.js → register.status-health-sessions-CB7t-JQx.js} +88 -88
- package/dist/{register.subclis-QGJNmjss.js → register.subclis-MEiNmuy5.js} +31 -31
- package/dist/{rpc-DkMrTUww.js → rpc-DVfuVmy9.js} +1 -1
- package/dist/{run-main-CPftxqTe.js → run-main-mrvunzuy.js} +92 -92
- package/dist/{runtime-MAH2Oph4.js → runtime-C87FQrrv.js} +3 -3
- package/dist/{runtime-config-collectors-BJMV6Mt1.js → runtime-config-collectors-BQaC477D.js} +1 -1
- package/dist/{runtime-whatsapp-login.runtime-CGYWl9eB.js → runtime-whatsapp-login.runtime-DjdgScUI.js} +7 -7
- package/dist/{runtime-whatsapp-outbound.runtime-hZEfYaRM.js → runtime-whatsapp-outbound.runtime-B74K7opl.js} +15 -15
- package/dist/{sandbox-0TbzPJaS.js → sandbox-Ct-_lzi1.js} +18 -18
- package/dist/{sandbox-cli-NLaxffXl.js → sandbox-cli-C3RoXFRE.js} +25 -25
- package/dist/{secrets-cli-KLGbYet6.js → secrets-cli-B3hqCxvs.js} +11 -11
- package/dist/{security-cli-EIEkcYVb.js → security-cli-DcHIyXr7.js} +42 -42
- package/dist/{send-BtZAqquW.js → send-2zKwf9NW.js} +11 -11
- package/dist/{send-DAMtu9kK.js → send-5o2p_xjn.js} +4 -4
- package/dist/{send-BW-ZtYG3.js → send-CnRP4P-G.js} +5 -5
- package/dist/{send-CxgWxXZc.js → send-DAQAKa9Z.js} +6 -6
- package/dist/{send-sC6ka831.js → send-u1Bo4CSn.js} +8 -8
- package/dist/{server-kUElNhlY.js → server-Ci4xtuR9.js} +20 -20
- package/dist/{server-context-HJVwPQYn.js → server-context-8pDe2iyd.js} +12 -12
- package/dist/{server-lifecycle-BE32unpZ.js → server-lifecycle-k5daSrde.js} +2 -2
- package/dist/{server-middleware-AS2VOYkK.js → server-middleware-DMiFT9xU.js} +1 -1
- package/dist/{server-node-events-DkbZzI6P.js → server-node-events-BmnPjNXE.js} +74 -74
- package/dist/{service-CyStNr3d.js → service-BhOFtHSw.js} +15 -15
- package/dist/{session-CaCx4rPH.js → session-DkOjpX3_.js} +1 -1
- package/dist/{session-utils-CGqb1oeq.js → session-utils-DKRmXD2l.js} +6 -6
- package/dist/{sessions-BmVDW-7q.js → sessions-BOWPuhe5.js} +15 -15
- package/dist/{sessions-BV6HNW4h.js → sessions-svLGrv0Z.js} +4 -4
- package/dist/{shared-JW74idb0.js → shared-CbAkLNrg.js} +1 -1
- package/dist/{shared-DUQavBtY.js → shared-CjuadLFV.js} +3 -3
- package/dist/{skill-commands-WtIJG0CI.js → skill-commands-TpUsdjev.js} +5 -5
- package/dist/{skill-scanner-DIFsGcqE.js → skill-scanner-BZvvItef.js} +6 -6
- package/dist/{skills-7T9PwwL6.js → skills-DR-vacol.js} +3 -3
- package/dist/{skills-cli-DPavvthL.js → skills-cli-oay0tY8Z.js} +5 -5
- package/dist/{skills-install-BoLfaoWv.js → skills-install-Vmi7xYfa.js} +6 -6
- package/dist/{skills-status-CK5Gnf6i.js → skills-status-BmN697ff.js} +1 -1
- package/dist/{slash-commands.runtime-CMGx2xHy.js → slash-commands.runtime-BfaheruW.js} +11 -11
- package/dist/slash-dispatch.runtime-D0xInkf3.js +114 -0
- package/dist/{slash-dispatch.runtime-CWbpp23S.js → slash-dispatch.runtime-DoBAQBU5.js} +6 -6
- package/dist/{slash-skill-commands.runtime-ChU2tck2.js → slash-skill-commands.runtime-D34BKAN-.js} +15 -15
- package/dist/{status-Bp-K1BEf.js → status-BcQchPaC.js} +27 -27
- package/dist/{status.update-ZYUSggzS.js → status.update-B20UBTDq.js} +2 -2
- package/dist/{store-DeASfYEV.js → store-DDkqo1sO.js} +5 -5
- package/dist/{subagent-registry-8qHIVhRq.js → subagent-registry-CPxHbyN5.js} +149 -149
- package/dist/subagent-registry-runtime-SkB2tTaE.js +114 -0
- package/dist/{subagent-registry-runtime-DEVpAaAP.js → subagent-registry-runtime-ppWS3tVu.js} +6 -6
- package/dist/{system-cli-C2xNfuQM.js → system-cli-D2yIJoKU.js} +9 -9
- package/dist/{system-run-command-BPWZk7KI.js → system-run-command-BmhbnLTE.js} +1 -1
- package/dist/{systemd-Cf-0XKYu.js → systemd-DjWVSbAG.js} +9 -9
- package/dist/{systemd-hints-CYllYKO0.js → systemd-hints-Do-aQ9jw.js} +6 -6
- package/dist/{systemd-linger-zllO90bD.js → systemd-linger-DpmnYgKU.js} +1 -1
- package/dist/{tables-CV7Afb0h.js → tables-BxyIF0w4.js} +1 -1
- package/dist/{tailnet-DJFUq7_R.js → tailnet-0_FsdHP-.js} +1 -1
- package/dist/{target-errors-iVxliVqA.js → target-errors-KOHiT_JA.js} +4 -4
- package/dist/{tool-images-Bn6dB14u.js → tool-images-CNPfeCmU.js} +1 -1
- package/dist/{tui-DTVy-YhN.js → tui-DL6NZZEa.js} +6 -6
- package/dist/{tui-cli-CexRLJ3a.js → tui-cli-BNAYhvpu.js} +32 -32
- package/dist/{update-DijPxK0g.js → update-DlS-d52F.js} +3 -3
- package/dist/{update-cli-9NslG4yR.js → update-cli-D8-DqIs2.js} +104 -104
- package/dist/{update-runner-B6_UqreW.js → update-runner-CzTQ7BJT.js} +16 -16
- package/dist/{web-NWKn8ABz.js → web-CzWRVmFt.js} +6 -6
- package/dist/web-DWiOofzq.js +118 -0
- package/dist/{webhooks-cli-B4ZcXTtw.js → webhooks-cli-QdaQhvbT.js} +6 -6
- package/dist/{whatsapp-actions-Jm4VW1Ve.js → whatsapp-actions-Bp8F0cOF.js} +17 -17
- package/dist/{with-timeout-C8-tY12i.js → with-timeout-BMMWHlH3.js} +3 -3
- package/dist/{workspace-dirs-D4SMysgC.js → workspace-dirs-Cz_Zgtg2.js} +1 -1
- package/dist/{workspace-CIGzK2_w.js → workspace-v76gFdZu.js} +1 -1
- package/dist/{wsl-CsGe5QCP.js → wsl-CvQfS6aU.js} +2 -2
- package/package.json +1 -1
- package/scripts/npm_publish.sh +50 -38
- package/dist/deliver-runtime-CdWd-JQI.js +0 -61
- package/dist/deps-send-discord.runtime-BltWu9GW.js +0 -36
- package/dist/deps-send-imessage.runtime-CdCif3t7.js +0 -35
- package/dist/deps-send-signal.runtime-fHqkSmMW.js +0 -34
- package/dist/deps-send-slack.runtime-CkyZO7ln.js +0 -32
- package/dist/deps-send-whatsapp.runtime-BkoMLlCM.js +0 -119
- package/dist/image-runtime-6jhrqcle.js +0 -55
- package/dist/plugin-sdk/deliver-runtime-C5dgvvga.js +0 -32
- package/dist/plugin-sdk/deps-send-discord.runtime-Dg4N7PHJ.js +0 -23
- package/dist/plugin-sdk/deps-send-imessage.runtime-0OEwzMQm.js +0 -22
- package/dist/plugin-sdk/deps-send-signal.runtime-BM1jRt3G.js +0 -21
- package/dist/plugin-sdk/deps-send-slack.runtime-1E3BYRdF.js +0 -19
- package/dist/plugin-sdk/deps-send-telegram.runtime-DNCxIflA.js +0 -24
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-OLwr-9c8.js +0 -57
- package/dist/plugin-sdk/image-runtime-BFm45j49.js +0 -25
- package/dist/plugin-sdk/manager-runtime-DxclHQ4U.js +0 -15
- package/dist/plugin-sdk/pi-model-discovery-runtime-BuzvkvNR.js +0 -8
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-BxgRDkhc.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-elOqrkfg.js +0 -19
- package/dist/plugin-sdk/slash-commands.runtime-D67JLweo.js +0 -13
- package/dist/plugin-sdk/slash-dispatch.runtime-DvcpvCJ0.js +0 -52
- package/dist/plugin-sdk/slash-skill-commands.runtime-BM1x3azR.js +0 -16
- package/dist/plugin-sdk/subagent-registry-runtime-1lbDyRzz.js +0 -52
- package/dist/plugin-sdk/web-BLyT64pW.js +0 -56
- package/dist/register.configure-DuwRrXc2.js +0 -165
- package/dist/slash-dispatch.runtime-BAeJXa56.js +0 -114
- package/dist/subagent-registry-runtime-DVomlbm6.js +0 -114
- package/dist/web-DGoa03ue.js +0 -118
- package/vendor/libsignal-node/yarn.lock +0 -893
|
@@ -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-BFfBQ6FD.js";
|
|
2
|
+
import { a as openWritableFileWithinRoot, t as SafeOpenError } from "./fs-safe-jMDpsYew.js";
|
|
3
|
+
import { n as resolveSafeBaseDir } from "./path-safety-ClQO4BB6.js";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
import
|
|
5
|
+
import fs 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 fs.stat(direct)).isDirectory()) return direct;
|
|
82
82
|
} catch {}
|
|
83
|
-
const dirs = (await
|
|
83
|
+
const dirs = (await fs.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 fs.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 fs.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 fs.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 fs.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 fs.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 fs.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 fs.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 fs.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 fs.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 fs.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 fs.stat(params.archivePath)).size > limits.maxArchiveBytes) throw new Error(ERROR_ARCHIVE_SIZE_EXCEEDS_LIMIT);
|
|
279
|
+
const buffer = await fs.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 fs.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 fs.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 fs.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 fs.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 fs.realpath(baseDir);
|
|
439
439
|
const validateDirectory = async (dirPath) => {
|
|
440
|
-
const dirLstat = await
|
|
440
|
+
const dirLstat = await fs.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 fs.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, v as resolveUserPath } from "./utils-6WlODK5w.js";
|
|
2
2
|
import { i as isPathInside, r as extensionUsesSkippedScannerPath } from "./legacy-names-DswREgBV.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-DVviqWVY.js";
|
|
4
|
+
import { S as validateRegistryNpmSpec } from "./skills-DR-vacol.js";
|
|
5
|
+
import { c as writeFileFromPathWithinRoot } from "./fs-safe-jMDpsYew.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-BiL8OJvK.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-E-mkrZ55.js";
|
|
8
|
+
import { t as scanDirectoryWithSummary } from "./skill-scanner-BZvvItef.js";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
import
|
|
10
|
+
import fs 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 fs.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 fs.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 { Ot as parseCanonicalIpAddress, St as isIpv6Address, vt as isCanonicalDottedDecimalIPv4 } from "./auth-profiles-
|
|
1
|
+
import { Ot as parseCanonicalIpAddress, St as isIpv6Address, vt as isCanonicalDottedDecimalIPv4 } from "./auth-profiles-CdLTlJLc.js";
|
|
2
2
|
import { o as getTailnetHostname } from "./tailscale-aXobtl7f.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-ENg_AXRt.js";
|
|
|
2
2
|
import { _ as normalizeAccountId } from "./session-key-k6urs9r-.js";
|
|
3
3
|
import { v as resolveUserPath } from "./utils-6WlODK5w.js";
|
|
4
4
|
import { t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-CIqYyQ36.js";
|
|
5
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
6
|
-
import { y as resolveAccountEntry } from "./accounts-
|
|
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 { s as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-
|
|
9
|
-
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia } from "./fetch-
|
|
5
|
+
import { r as normalizeChannelId } from "./plugins-VAZrrfgw.js";
|
|
6
|
+
import { y as resolveAccountEntry } from "./accounts-DJaYqD2E.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-pjs5W0CZ.js";
|
|
8
|
+
import { s as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-jMDpsYew.js";
|
|
9
|
+
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia } from "./fetch-D-SiVqBm.js";
|
|
10
10
|
import { fileURLToPath } from "node:url";
|
|
11
11
|
import path from "node:path";
|
|
12
|
-
import
|
|
12
|
+
import fs 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 fs.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 fs.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 fs 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 fs.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 fs.mkdir(path.dirname(filePath), mkdirOptions);
|
|
27
27
|
const tmp = `${filePath}.${randomUUID()}.tmp`;
|
|
28
28
|
try {
|
|
29
|
-
await
|
|
29
|
+
await fs.writeFile(tmp, payload, "utf8");
|
|
30
30
|
try {
|
|
31
|
-
await
|
|
31
|
+
await fs.chmod(tmp, mode);
|
|
32
32
|
} catch {}
|
|
33
|
-
await
|
|
33
|
+
await fs.rename(tmp, filePath);
|
|
34
34
|
try {
|
|
35
|
-
await
|
|
35
|
+
await fs.chmod(filePath, mode);
|
|
36
36
|
} catch {}
|
|
37
37
|
} finally {
|
|
38
|
-
await
|
|
38
|
+
await fs.rm(tmp, { force: true }).catch(() => void 0);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
function createAsyncLock() {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { d as colorize, f as isRich, g as getResolvedLoggerSettings, p as theme } from "./globals-ENg_AXRt.js";
|
|
2
2
|
import { d as resolveIsNixMode } from "./paths-BMo6kTge.js";
|
|
3
3
|
import { d as defaultRuntime } from "./subsystem-BmoaLBy-.js";
|
|
4
|
-
import { z as loadConfig } from "./auth-profiles-
|
|
4
|
+
import { z as loadConfig } from "./auth-profiles-CdLTlJLc.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-CLEQe4bk.js";
|
|
6
6
|
import { t as resolveGatewayCredentialsFromConfig } from "./credentials-CUTymVVV.js";
|
|
7
7
|
import { f as resolveGatewaySystemdServiceName, l as resolveGatewayLaunchAgentLabel, p as resolveGatewayWindowsTaskName } from "./constants-C8Mfdyag.js";
|
|
8
|
-
import { t as isWSL } from "./wsl-
|
|
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-
|
|
8
|
+
import { t as isWSL } from "./wsl-CvQfS6aU.js";
|
|
9
|
+
import { r as isSystemdUserServiceAvailable } from "./systemd-DjWVSbAG.js";
|
|
10
|
+
import { s as resolveGatewayLogPaths } from "./service-BhOFtHSw.js";
|
|
11
|
+
import { a as checkTokenDrift, n as renderSystemdUnavailableHints } from "./systemd-hints-Do-aQ9jw.js";
|
|
12
12
|
import { t as parsePort } from "./parse-port-CboE2EQm.js";
|
|
13
13
|
import { Writable } from "node:stream";
|
|
14
14
|
|
|
@@ -8,19 +8,19 @@ import "./github-copilot-token-D13V9YBz.js";
|
|
|
8
8
|
import "./legacy-names-TyzbVqa_.js";
|
|
9
9
|
import "./thinking-DXYisHiZ.js";
|
|
10
10
|
import "./tokens-DxnY9ui_.js";
|
|
11
|
-
import { t as runEmbeddedPiAgent } from "./pi-embedded-
|
|
11
|
+
import { t as runEmbeddedPiAgent } from "./pi-embedded-BaGj07T0.js";
|
|
12
12
|
import "./plugins-CWkRQYDj.js";
|
|
13
13
|
import "./accounts-yfBeCZtS.js";
|
|
14
14
|
import "./send-Dx2RkUOZ.js";
|
|
15
15
|
import "./send-DcxmcFi_.js";
|
|
16
|
-
import "./deliver-
|
|
16
|
+
import "./deliver-D4o6VIur.js";
|
|
17
17
|
import "./diagnostic-Bn4PZjMZ.js";
|
|
18
18
|
import "./accounts-L9ByEpnP.js";
|
|
19
19
|
import "./image-ops-CehkHxmW.js";
|
|
20
20
|
import "./send-vmONuVgL.js";
|
|
21
21
|
import "./pi-model-discovery-BGgOlX8N.js";
|
|
22
|
-
import "./pi-embedded-helpers-
|
|
23
|
-
import "./chrome-
|
|
22
|
+
import "./pi-embedded-helpers-wy0DZvx1.js";
|
|
23
|
+
import "./chrome-DwizpzOC.js";
|
|
24
24
|
import "./frontmatter-CvaMP376.js";
|
|
25
25
|
import "./skills-CE_iqvM5.js";
|
|
26
26
|
import "./path-alias-guards-DqXRZmsL.js";
|
|
@@ -32,8 +32,8 @@ import "./store--eR1R_UX.js";
|
|
|
32
32
|
import "./accounts-BOzyfwW4.js";
|
|
33
33
|
import "./paths-CCxysrzL.js";
|
|
34
34
|
import "./tool-images-2cBx1W8h.js";
|
|
35
|
-
import "./image-
|
|
36
|
-
import "./audio-transcription-runner-
|
|
35
|
+
import "./image-Bbn53mzj.js";
|
|
36
|
+
import "./audio-transcription-runner-28fcRNNi.js";
|
|
37
37
|
import "./fetch-BlJWzEP6.js";
|
|
38
38
|
import "./fetch-guard-ChYBwfiy.js";
|
|
39
39
|
import "./api-key-rotation-DtsNS2Nb.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { l as success, n as info, t as danger } from "./globals-ENg_AXRt.js";
|
|
2
2
|
import { d as defaultRuntime } from "./subsystem-BmoaLBy-.js";
|
|
3
|
-
import { z as loadConfig } from "./auth-profiles-
|
|
3
|
+
import { z as loadConfig } from "./auth-profiles-CdLTlJLc.js";
|
|
4
4
|
import { t as formatCliCommand } from "./command-format-CLEQe4bk.js";
|
|
5
5
|
import { r as logInfo } from "./logger-9wCpWqHD.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-DJaYqD2E.js";
|
|
7
|
+
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-DkOjpX3_.js";
|
|
8
8
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
9
9
|
|
|
10
10
|
//#region src/web/login.ts
|
|
@@ -2,10 +2,10 @@ import { l as success, n as info, t as danger } from "./globals-ENg_AXRt.js";
|
|
|
2
2
|
import "./paths-BMo6kTge.js";
|
|
3
3
|
import { d as defaultRuntime } from "./subsystem-BmoaLBy-.js";
|
|
4
4
|
import "./boolean-DtWR5bt3.js";
|
|
5
|
-
import { z as loadConfig } from "./auth-profiles-
|
|
6
|
-
import "./agent-scope-
|
|
5
|
+
import { z as loadConfig } from "./auth-profiles-CdLTlJLc.js";
|
|
6
|
+
import "./agent-scope-BRElciAf.js";
|
|
7
7
|
import "./utils-6WlODK5w.js";
|
|
8
|
-
import "./openclaw-root-
|
|
8
|
+
import "./openclaw-root-BFfBQ6FD.js";
|
|
9
9
|
import { r as logInfo } from "./logger-9wCpWqHD.js";
|
|
10
10
|
import "./exec-GR2kPVc1.js";
|
|
11
11
|
import "./registry-C3qkO1RG.js";
|
|
@@ -13,10 +13,10 @@ import "./github-copilot-token-Byc_YVYE.js";
|
|
|
13
13
|
import "./host-env-security-lcjXF83D.js";
|
|
14
14
|
import "./version-DdJhsIqk.js";
|
|
15
15
|
import "./env-vars-mSSOl7Rv.js";
|
|
16
|
-
import "./manifest-registry-
|
|
17
|
-
import { _ as webAuthExists, i as resolveWhatsAppAccount, l as logoutWeb, p as readWebSelfId } from "./accounts-
|
|
16
|
+
import "./manifest-registry-DVviqWVY.js";
|
|
17
|
+
import { _ as webAuthExists, i as resolveWhatsAppAccount, l as logoutWeb, p as readWebSelfId } from "./accounts-DJaYqD2E.js";
|
|
18
18
|
import "./logging-CcxUDNcI.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-DkOjpX3_.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";
|
|
@@ -2,11 +2,11 @@ import { b as isValidTimeZone, d as colorize, f as isRich, p as theme, y as form
|
|
|
2
2
|
import "./paths-BMo6kTge.js";
|
|
3
3
|
import { p as clearActiveProgressLine } from "./subsystem-BmoaLBy-.js";
|
|
4
4
|
import "./boolean-DtWR5bt3.js";
|
|
5
|
-
import "./auth-profiles-
|
|
5
|
+
import "./auth-profiles-CdLTlJLc.js";
|
|
6
6
|
import { t as formatCliCommand } from "./command-format-CLEQe4bk.js";
|
|
7
|
-
import "./agent-scope-
|
|
7
|
+
import "./agent-scope-BRElciAf.js";
|
|
8
8
|
import "./utils-6WlODK5w.js";
|
|
9
|
-
import "./openclaw-root-
|
|
9
|
+
import "./openclaw-root-BFfBQ6FD.js";
|
|
10
10
|
import "./logger-9wCpWqHD.js";
|
|
11
11
|
import "./exec-GR2kPVc1.js";
|
|
12
12
|
import "./registry-C3qkO1RG.js";
|
|
@@ -14,16 +14,16 @@ import "./github-copilot-token-Byc_YVYE.js";
|
|
|
14
14
|
import "./host-env-security-lcjXF83D.js";
|
|
15
15
|
import "./version-DdJhsIqk.js";
|
|
16
16
|
import "./env-vars-mSSOl7Rv.js";
|
|
17
|
-
import "./manifest-registry-
|
|
17
|
+
import "./manifest-registry-DVviqWVY.js";
|
|
18
18
|
import "./message-channel-CIqYyQ36.js";
|
|
19
|
-
import "./client-
|
|
20
|
-
import { t as buildGatewayConnectionDetails } from "./call-
|
|
19
|
+
import "./client-C-wA75vx.js";
|
|
20
|
+
import { t as buildGatewayConnectionDetails } from "./call-Dp9SDkqK.js";
|
|
21
21
|
import "./pairing-token-BXrId5bQ.js";
|
|
22
|
-
import "./net-
|
|
23
|
-
import "./tailnet-
|
|
22
|
+
import "./net-D5fSREu4.js";
|
|
23
|
+
import "./tailnet-0_FsdHP-.js";
|
|
24
24
|
import { t as formatDocsLink } from "./links-D_JFKt7M.js";
|
|
25
25
|
import "./progress-BJ1VMw-T.js";
|
|
26
|
-
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-
|
|
26
|
+
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-DYyQQ1z9.js";
|
|
27
27
|
import { t as parseLogLine } from "./parse-log-line-Cg7e_EO6.js";
|
|
28
28
|
import { setTimeout } from "node:timers/promises";
|
|
29
29
|
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { g as resolveStateDir } from "./paths-BMo6kTge.js";
|
|
2
2
|
import { t as createSubsystemLogger } from "./subsystem-BmoaLBy-.js";
|
|
3
3
|
import { r as isTruthyEnvValue } from "./entry.js";
|
|
4
|
-
import { Ai as normalizeOptionalSecretInput, Zr as retryAsync, gi as resolveEnvApiKey, mi as resolveApiKeyForProvider, pi as requireApiKey } from "./auth-profiles-
|
|
5
|
-
import { a as resolveAgentDir, i as resolveAgentConfig, u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
4
|
+
import { Ai as normalizeOptionalSecretInput, Zr as retryAsync, gi as resolveEnvApiKey, mi as resolveApiKeyForProvider, pi as requireApiKey } from "./auth-profiles-CdLTlJLc.js";
|
|
5
|
+
import { a as resolveAgentDir, i as resolveAgentConfig, u as resolveAgentWorkspaceDir } from "./agent-scope-BRElciAf.js";
|
|
6
6
|
import { T as truncateUtf16Safe, i as clampNumber, r as clampInt, v as resolveUserPath } from "./utils-6WlODK5w.js";
|
|
7
7
|
import { M as normalizeResolvedSecretInputString } from "./registry-C3qkO1RG.js";
|
|
8
8
|
import { s as resolveSessionTranscriptsDirForAgent } from "./paths-DvFmz0MB.js";
|
|
9
9
|
import { n as onSessionTranscriptUpdate } from "./transcript-events-DgzPL8Hc.js";
|
|
10
10
|
import { r as formatErrorMessage } from "./errors-BbXSsOtF.js";
|
|
11
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
12
|
-
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-
|
|
13
|
-
import { _ as isFileMissingError, a as sessionPathForFile, c as cosineSimilarity, d as isMemoryPath, f as listMemoryFiles, g as runWithConcurrency, h as remapChunkLines, i as listSessionFilesForAgent, l as ensureDir, m as parseEmbedding, n as requireNodeSqlite, o as buildFileEntry, p as normalizeExtraMemoryPaths, r as buildSessionEntry, s as chunkMarkdown, t as extractKeywords, u as hashText, v as statRegularFile } from "./query-expansion-
|
|
11
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-CKYBfJ66.js";
|
|
12
|
+
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-BbuLHl0_.js";
|
|
13
|
+
import { _ as isFileMissingError, a as sessionPathForFile, c as cosineSimilarity, d as isMemoryPath, f as listMemoryFiles, g as runWithConcurrency, h as remapChunkLines, i as listSessionFilesForAgent, l as ensureDir, m as parseEmbedding, n as requireNodeSqlite, o as buildFileEntry, p as normalizeExtraMemoryPaths, r as buildSessionEntry, s as chunkMarkdown, t as extractKeywords, u as hashText, v as statRegularFile } from "./query-expansion-BrSWVbaE.js";
|
|
14
14
|
import os from "node:os";
|
|
15
15
|
import path from "node:path";
|
|
16
16
|
import fs from "node:fs";
|
|
17
|
-
import
|
|
17
|
+
import fs$1 from "node:fs/promises";
|
|
18
18
|
import { randomUUID } from "node:crypto";
|
|
19
19
|
import chokidar from "chokidar";
|
|
20
20
|
import { createInterface } from "node:readline";
|
|
@@ -1049,7 +1049,7 @@ async function extractTimestamp(params) {
|
|
|
1049
1049
|
if (!params.workspaceDir) return null;
|
|
1050
1050
|
const absolutePath = path.isAbsolute(params.filePath) ? params.filePath : path.resolve(params.workspaceDir, params.filePath);
|
|
1051
1051
|
try {
|
|
1052
|
-
const stat = await
|
|
1052
|
+
const stat = await fs$1.stat(absolutePath);
|
|
1053
1053
|
if (!Number.isFinite(stat.mtimeMs)) return null;
|
|
1054
1054
|
return new Date(stat.mtimeMs);
|
|
1055
1055
|
} catch {
|
|
@@ -2210,7 +2210,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2210
2210
|
const source = `${sourceBase}${suffix}`;
|
|
2211
2211
|
const target = `${targetBase}${suffix}`;
|
|
2212
2212
|
try {
|
|
2213
|
-
await
|
|
2213
|
+
await fs$1.rename(source, target);
|
|
2214
2214
|
} catch (err) {
|
|
2215
2215
|
if (err.code !== "ENOENT") throw err;
|
|
2216
2216
|
}
|
|
@@ -2221,7 +2221,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2221
2221
|
"",
|
|
2222
2222
|
"-wal",
|
|
2223
2223
|
"-shm"
|
|
2224
|
-
].map((suffix) =>
|
|
2224
|
+
].map((suffix) => fs$1.rm(`${basePath}${suffix}`, { force: true })));
|
|
2225
2225
|
}
|
|
2226
2226
|
ensureSchema() {
|
|
2227
2227
|
const result = ensureMemoryIndexSchema({
|
|
@@ -2316,7 +2316,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2316
2316
|
if (!thresholds) return null;
|
|
2317
2317
|
let stat;
|
|
2318
2318
|
try {
|
|
2319
|
-
stat = await
|
|
2319
|
+
stat = await fs$1.stat(sessionFile);
|
|
2320
2320
|
} catch {
|
|
2321
2321
|
return null;
|
|
2322
2322
|
}
|
|
@@ -2358,7 +2358,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2358
2358
|
if (end <= start) return 0;
|
|
2359
2359
|
let handle;
|
|
2360
2360
|
try {
|
|
2361
|
-
handle = await
|
|
2361
|
+
handle = await fs$1.open(absPath, "r");
|
|
2362
2362
|
} catch (err) {
|
|
2363
2363
|
if (isFileMissingError(err)) return 0;
|
|
2364
2364
|
throw err;
|
|
@@ -3301,7 +3301,7 @@ var MemoryManagerEmbeddingOps = class extends MemoryManagerSyncOps {
|
|
|
3301
3301
|
});
|
|
3302
3302
|
return;
|
|
3303
3303
|
}
|
|
3304
|
-
const content = options.content ?? await
|
|
3304
|
+
const content = options.content ?? await fs$1.readFile(entry.absPath, "utf-8");
|
|
3305
3305
|
const chunks = enforceEmbeddingMaxInputTokens(this.provider, chunkMarkdown(content, this.settings.chunking).filter((chunk) => chunk.text.trim().length > 0), EMBEDDING_BATCH_MAX_TOKENS);
|
|
3306
3306
|
if (options.source === "sessions" && "lineMap" in entry) remapChunkLines(chunks, entry.lineMap);
|
|
3307
3307
|
const embeddings = this.batch.enabled ? await this.embedChunksWithBatch(chunks, entry, options.source) : await this.embedChunksInBatches(chunks);
|
|
@@ -3719,7 +3719,7 @@ var MemoryIndexManager = class MemoryIndexManager extends MemoryManagerEmbedding
|
|
|
3719
3719
|
if (!allowedWorkspace && this.settings.extraPaths.length > 0) {
|
|
3720
3720
|
const additionalPaths = normalizeExtraMemoryPaths(this.workspaceDir, this.settings.extraPaths);
|
|
3721
3721
|
for (const additionalPath of additionalPaths) try {
|
|
3722
|
-
const stat = await
|
|
3722
|
+
const stat = await fs$1.lstat(additionalPath);
|
|
3723
3723
|
if (stat.isSymbolicLink()) continue;
|
|
3724
3724
|
if (stat.isDirectory()) {
|
|
3725
3725
|
if (absPath === additionalPath || absPath.startsWith(`${additionalPath}${path.sep}`)) {
|
|
@@ -3744,7 +3744,7 @@ var MemoryIndexManager = class MemoryIndexManager extends MemoryManagerEmbedding
|
|
|
3744
3744
|
};
|
|
3745
3745
|
let content;
|
|
3746
3746
|
try {
|
|
3747
|
-
content = await
|
|
3747
|
+
content = await fs$1.readFile(absPath, "utf-8");
|
|
3748
3748
|
} catch (err) {
|
|
3749
3749
|
if (isFileMissingError(err)) return {
|
|
3750
3750
|
text: "",
|
|
@@ -2,10 +2,10 @@ import "./globals-ENg_AXRt.js";
|
|
|
2
2
|
import "./paths-BMo6kTge.js";
|
|
3
3
|
import "./subsystem-BmoaLBy-.js";
|
|
4
4
|
import "./boolean-DtWR5bt3.js";
|
|
5
|
-
import "./auth-profiles-
|
|
6
|
-
import "./agent-scope-
|
|
5
|
+
import "./auth-profiles-CdLTlJLc.js";
|
|
6
|
+
import "./agent-scope-BRElciAf.js";
|
|
7
7
|
import "./utils-6WlODK5w.js";
|
|
8
|
-
import "./openclaw-root-
|
|
8
|
+
import "./openclaw-root-BFfBQ6FD.js";
|
|
9
9
|
import "./logger-9wCpWqHD.js";
|
|
10
10
|
import "./exec-GR2kPVc1.js";
|
|
11
11
|
import "./registry-C3qkO1RG.js";
|
|
@@ -13,14 +13,14 @@ import "./github-copilot-token-Byc_YVYE.js";
|
|
|
13
13
|
import "./host-env-security-lcjXF83D.js";
|
|
14
14
|
import "./version-DdJhsIqk.js";
|
|
15
15
|
import "./env-vars-mSSOl7Rv.js";
|
|
16
|
-
import "./manifest-registry-
|
|
16
|
+
import "./manifest-registry-DVviqWVY.js";
|
|
17
17
|
import "./paths-DvFmz0MB.js";
|
|
18
18
|
import "./redact-TY4yJzrg.js";
|
|
19
19
|
import "./errors-BbXSsOtF.js";
|
|
20
|
-
import "./proxy-env-
|
|
21
|
-
import "./fetch-guard-
|
|
22
|
-
import "./api-key-rotation-
|
|
23
|
-
import { t as MemoryIndexManager } from "./manager-
|
|
24
|
-
import "./query-expansion-
|
|
20
|
+
import "./proxy-env-wKO3g8Yv.js";
|
|
21
|
+
import "./fetch-guard-CKYBfJ66.js";
|
|
22
|
+
import "./api-key-rotation-BbuLHl0_.js";
|
|
23
|
+
import { t as MemoryIndexManager } from "./manager-BUBwl6M6.js";
|
|
24
|
+
import "./query-expansion-BrSWVbaE.js";
|
|
25
25
|
|
|
26
26
|
export { MemoryIndexManager };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as resolveConfigDir, u as isRecord, v as resolveUserPath } from "./utils-6WlODK5w.js";
|
|
2
|
-
import { a as openBoundaryFileSync, p as isPathInside$1 } from "./openclaw-root-
|
|
2
|
+
import { a as openBoundaryFileSync, p as isPathInside$1 } from "./openclaw-root-BFfBQ6FD.js";
|
|
3
3
|
import { l as normalizeChatChannelId } from "./registry-C3qkO1RG.js";
|
|
4
4
|
import { n as MANIFEST_KEY } from "./legacy-names-DswREgBV.js";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|