openclaw-multi-auto 1.3.2 → 1.3.3
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-DUtdCXjJ.js → audio-preflight-Yg1vzPE1.js} +34 -34
- 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/{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/{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-runtime-DixuU_uB.js +61 -0
- 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-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-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/{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/{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-helpers-DC2OtKrl.js → pi-embedded-helpers-oXDyXTD8.js} +6 -6
- 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-DyFCXtHv.js → accounts-BslAlVYS.js} +2 -2
- package/dist/plugin-sdk/{accounts-BJAXxY46.js → accounts-C3m65--E.js} +2 -2
- package/dist/plugin-sdk/{accounts-C1j7HSL0.js → accounts-CNCCkdEF.js} +3 -3
- package/dist/plugin-sdk/{active-listener-CftX5jLD.js → active-listener-CkPnMUkB.js} +2 -2
- package/dist/plugin-sdk/{api-key-rotation-8nyyt1kx.js → api-key-rotation-BXnNsojA.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-C_aSAPR1.js → audio-preflight-CtO4fFvp.js} +26 -26
- package/dist/plugin-sdk/{audio-transcription-runner-CB53F7_7.js → audio-transcription-runner-DnxvOS1-.js} +11 -11
- package/dist/plugin-sdk/{audit-membership-runtime-BXndI4LG.js → audit-membership-runtime-BpfoSk8M.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-C5y8AgAV.js → channel-activity-WJYxcJ3S.js} +3 -3
- package/dist/plugin-sdk/{channel-web-DBTRO03V.js → channel-web-dO5k3ubM.js} +18 -18
- package/dist/plugin-sdk/{chrome-f00sZkDX.js → chrome-CjNTuJML.js} +6 -6
- package/dist/plugin-sdk/{commands-registry-BJ_NxG2F.js → commands-registry-CdYjoI0i.js} +4 -4
- package/dist/plugin-sdk/{common-Cf27Jwxu.js → common-oYc5vPFl.js} +2 -2
- package/dist/plugin-sdk/{config-CHQrpx-Q.js → config-B1z-UxQ3.js} +7 -7
- package/dist/plugin-sdk/{deliver-DNEuetST.js → deliver-D5_6T567.js} +10 -10
- package/dist/plugin-sdk/deliver-runtime-C5dgvvga.js +32 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-Dg4N7PHJ.js +23 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-0OEwzMQm.js +22 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-BM1jRt3G.js +21 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-1E3BYRdF.js +19 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-DNCxIflA.js +24 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-OLwr-9c8.js +57 -0
- package/dist/plugin-sdk/{diagnostic-LYUUmjJ5.js → diagnostic-Bxxu0ig-.js} +2 -2
- package/dist/plugin-sdk/discord.js +6 -6
- package/dist/plugin-sdk/{errors-CtMWwS2Z.js → errors-B3cHyZZA.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-CxYB5Kg6.js → fetch-guard-Dcgod0tg.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-DtfhxbrI.js → fs-safe-BaKqI3G4.js} +3 -3
- package/dist/plugin-sdk/{image-BwjYjRHx.js → image-B2mQW9Rb.js} +6 -6
- package/dist/plugin-sdk/{image-ops-BnZKcbd6.js → image-ops-Cbzr4U9l.js} +2 -2
- package/dist/plugin-sdk/image-runtime-BFm45j49.js +25 -0
- package/dist/plugin-sdk/{ir-Z4hX67TJ.js → ir-ZEmrTr4J.js} +7 -7
- package/dist/plugin-sdk/{local-roots-KhjQw04O.js → local-roots-CIPRxA-4.js} +4 -4
- package/dist/plugin-sdk/{logger-DHIIvMxj.js → logger-CvPFVOgT.js} +2 -2
- package/dist/plugin-sdk/{login-C31642Ld.js → login-CCTew9bt.js} +4 -4
- package/dist/plugin-sdk/{login-qr--y2SG_Ue.js → login-qr-BI3Vi_wJ.js} +5 -5
- package/dist/plugin-sdk/{manager-2UZBMCc7.js → manager-BEoYPn7R.js} +8 -8
- package/dist/plugin-sdk/manager-runtime-DxclHQ4U.js +15 -0
- package/dist/plugin-sdk/mattermost.js +3 -3
- package/dist/plugin-sdk/{outbound-Ba0QUI5h.js → outbound-ByOw1K6W.js} +5 -5
- package/dist/plugin-sdk/{outbound-attachment-B1Laso-8.js → outbound-attachment-BzVhxRRw.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-C7Vm5DZ1.js → path-alias-guards-sWayacde.js} +1 -1
- package/dist/plugin-sdk/{paths-DopV9PQG.js → paths-Dpg3qxcl.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-DnA_OCzP.js → pi-embedded-helpers-DIxXkGJf.js} +16 -16
- package/dist/plugin-sdk/{pi-model-discovery-DdPqXk8f.js → pi-model-discovery-DM_2uFtj.js} +1 -1
- package/dist/plugin-sdk/pi-model-discovery-runtime-BuzvkvNR.js +8 -0
- package/dist/plugin-sdk/{pi-tools.before-tool-call.runtime-DxFHiLUE.js → pi-tools.before-tool-call.runtime-w1dqL_ty.js} +4 -4
- package/dist/plugin-sdk/{plugins-CbCt4osF.js → plugins-C4USiH29.js} +4 -4
- package/dist/plugin-sdk/{proxy-env-C63mMdas.js → proxy-env-ET-rp8eg.js} +1 -1
- package/dist/plugin-sdk/{proxy-fetch-Ch95c_Y2.js → proxy-fetch-uDXGKG3Z.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-DpJk62D4.js → pw-ai-CyOt3RDA.js} +9 -9
- package/dist/plugin-sdk/{qmd-manager-Ca-iSfEE.js → qmd-manager-BySdoVR7.js} +7 -7
- package/dist/plugin-sdk/{query-expansion-B_Xe41Ab.js → query-expansion-C6uS-7lj.js} +4 -4
- package/dist/plugin-sdk/{redact-hp9TOulW.js → redact-Bvxt1T_Q.js} +1 -1
- package/dist/plugin-sdk/{reply-CovBlFea.js → reply-CTCSeQqW.js} +73 -73
- package/dist/plugin-sdk/{resolve-outbound-target-BbrHgyUk.js → resolve-outbound-target-Bw8YNANu.js} +2 -2
- package/dist/plugin-sdk/{run-with-concurrency-BR1DXa8T.js → run-with-concurrency-C_KCHwvf.js} +1 -1
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-BxgRDkhc.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-elOqrkfg.js +19 -0
- package/dist/plugin-sdk/{send-BvAtLLPl.js → send-BZ6nYFZr.js} +5 -5
- package/dist/plugin-sdk/{send-BTztm3D2.js → send-C0w6xP2x.js} +6 -6
- package/dist/plugin-sdk/{send-CWJUuG0i.js → send-CFf-1V89.js} +8 -8
- package/dist/plugin-sdk/{send-EcglC4cG.js → send-CY-Qfwia.js} +7 -7
- package/dist/plugin-sdk/{send-BXpXBwM_.js → send-qPyNGSe4.js} +13 -13
- package/dist/plugin-sdk/{session-k256LJZT.js → session-COrvpvUQ.js} +3 -3
- package/dist/plugin-sdk/{skill-commands-DoRqLzxm.js → skill-commands-DZqhtmiv.js} +4 -4
- package/dist/plugin-sdk/{skills-QudILG6e.js → skills-Cw_vXEJb.js} +6 -6
- package/dist/plugin-sdk/slash-commands.runtime-D67JLweo.js +13 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-DvcpvCJ0.js +52 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-BM1x3azR.js +16 -0
- package/dist/plugin-sdk/{store-BbDQw3g6.js → store-CMHj6IIw.js} +2 -2
- package/dist/plugin-sdk/subagent-registry-runtime-1lbDyRzz.js +52 -0
- package/dist/plugin-sdk/{tables-BhvloMKN.js → tables-CSqrHsKL.js} +1 -1
- package/dist/plugin-sdk/{thinking-URzkT-3p.js → thinking-DOnsR_A8.js} +7 -7
- package/dist/plugin-sdk/{tokens-B1PW5Ayy.js → tokens-BDr0Z9o3.js} +1 -1
- package/dist/plugin-sdk/{tool-images-xpqbP6RR.js → tool-images-eEfOVkzf.js} +2 -2
- package/dist/plugin-sdk/web-BLyT64pW.js +56 -0
- package/dist/plugin-sdk/{whatsapp-actions-RcZ6vp61.js → whatsapp-actions-xcleMoMv.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-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-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/{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-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/extensions/googlechat/node_modules/.bin/openclaw +2 -2
- package/extensions/memory-core/node_modules/.bin/openclaw +2 -2
- package/package.json +4 -6
- package/scripts/npm_publish.sh +23 -22
- package/vendor/libsignal-node/node_modules/.bin/acorn +21 -0
- package/vendor/libsignal-node/node_modules/.bin/eslint +21 -0
- package/vendor/libsignal-node/node_modules/.bin/pbjs +21 -0
- package/vendor/libsignal-node/node_modules/.bin/pbts +21 -0
- 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-BFdqklJM.js +0 -32
- package/dist/plugin-sdk/deps-send-discord.runtime-DuqpYwU0.js +0 -23
- package/dist/plugin-sdk/deps-send-imessage.runtime-CZ2rS8Lb.js +0 -22
- package/dist/plugin-sdk/deps-send-signal.runtime-BdqiWhIh.js +0 -21
- package/dist/plugin-sdk/deps-send-slack.runtime-04s36qiC.js +0 -19
- package/dist/plugin-sdk/deps-send-telegram.runtime-LE5tkPvr.js +0 -24
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-Bz57lobC.js +0 -57
- package/dist/plugin-sdk/image-runtime-B8twoubs.js +0 -25
- package/dist/plugin-sdk/manager-runtime-CMeLwose.js +0 -15
- package/dist/plugin-sdk/pi-model-discovery-runtime-D8CJhtJY.js +0 -8
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-SkO91TZH.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-B0VWK5hm.js +0 -19
- package/dist/plugin-sdk/slash-commands.runtime-DS6vCNSL.js +0 -13
- package/dist/plugin-sdk/slash-dispatch.runtime-BXrxb2wd.js +0 -52
- package/dist/plugin-sdk/slash-skill-commands.runtime-Bd6qQ2oT.js +0 -16
- package/dist/plugin-sdk/subagent-registry-runtime-1uwQbuXj.js +0 -52
- package/dist/plugin-sdk/web-B74yhL2N.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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as normalizeAccountId } from "./session-key-k6urs9r-.js";
|
|
2
|
-
import { v as createAccountListHelpers, y as resolveAccountEntry } from "./accounts-
|
|
2
|
+
import { v as createAccountListHelpers, y as resolveAccountEntry } from "./accounts-DJaYqD2E.js";
|
|
3
3
|
|
|
4
4
|
//#region src/imessage/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("imessage");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as normalizeAccountId } from "./session-key-k6urs9r-.js";
|
|
2
|
-
import { v as createAccountListHelpers, y as resolveAccountEntry } from "./accounts-
|
|
2
|
+
import { v as createAccountListHelpers, y as resolveAccountEntry } from "./accounts-DJaYqD2E.js";
|
|
3
3
|
|
|
4
4
|
//#region src/signal/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("signal");
|
|
@@ -6,7 +6,7 @@ import { _ as normalizeAccountId, g as DEFAULT_ACCOUNT_ID, v as normalizeOptiona
|
|
|
6
6
|
import { f as jidToE164, v as resolveUserPath } from "./utils-6WlODK5w.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import fs from "node:fs";
|
|
9
|
-
import
|
|
9
|
+
import fs$1 from "node:fs/promises";
|
|
10
10
|
|
|
11
11
|
//#region src/routing/account-lookup.ts
|
|
12
12
|
function resolveAccountEntry(accounts, accountId) {
|
|
@@ -105,14 +105,14 @@ async function webAuthExists(authDir = resolveDefaultWebAuthDir()) {
|
|
|
105
105
|
maybeRestoreCredsFromBackup(resolvedAuthDir);
|
|
106
106
|
const credsPath = resolveWebCredsPath(resolvedAuthDir);
|
|
107
107
|
try {
|
|
108
|
-
await
|
|
108
|
+
await fs$1.access(resolvedAuthDir);
|
|
109
109
|
} catch {
|
|
110
110
|
return false;
|
|
111
111
|
}
|
|
112
112
|
try {
|
|
113
|
-
const stats = await
|
|
113
|
+
const stats = await fs$1.stat(credsPath);
|
|
114
114
|
if (!stats.isFile() || stats.size <= 1) return false;
|
|
115
|
-
const raw = await
|
|
115
|
+
const raw = await fs$1.readFile(credsPath, "utf-8");
|
|
116
116
|
JSON.parse(raw);
|
|
117
117
|
return true;
|
|
118
118
|
} catch {
|
|
@@ -120,7 +120,7 @@ async function webAuthExists(authDir = resolveDefaultWebAuthDir()) {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
async function clearLegacyBaileysAuthState(authDir) {
|
|
123
|
-
const entries = await
|
|
123
|
+
const entries = await fs$1.readdir(authDir, { withFileTypes: true });
|
|
124
124
|
const shouldDelete = (name) => {
|
|
125
125
|
if (name === "oauth.json") return false;
|
|
126
126
|
if (name === "creds.json" || name === "creds.json.bak") return true;
|
|
@@ -130,7 +130,7 @@ async function clearLegacyBaileysAuthState(authDir) {
|
|
|
130
130
|
await Promise.all(entries.map(async (entry) => {
|
|
131
131
|
if (!entry.isFile()) return;
|
|
132
132
|
if (!shouldDelete(entry.name)) return;
|
|
133
|
-
await
|
|
133
|
+
await fs$1.rm(path.join(authDir, entry.name), { force: true });
|
|
134
134
|
}));
|
|
135
135
|
}
|
|
136
136
|
async function logoutWeb(params) {
|
|
@@ -141,7 +141,7 @@ async function logoutWeb(params) {
|
|
|
141
141
|
return false;
|
|
142
142
|
}
|
|
143
143
|
if (params.isLegacyAuthDir) await clearLegacyBaileysAuthState(resolvedAuthDir);
|
|
144
|
-
else await
|
|
144
|
+
else await fs$1.rm(resolvedAuthDir, {
|
|
145
145
|
recursive: true,
|
|
146
146
|
force: true
|
|
147
147
|
});
|
|
@@ -3,10 +3,10 @@ import "./paths-BMo6kTge.js";
|
|
|
3
3
|
import { d as defaultRuntime } from "./subsystem-BmoaLBy-.js";
|
|
4
4
|
import "./boolean-DtWR5bt3.js";
|
|
5
5
|
import { n as isMainModule } from "./entry.js";
|
|
6
|
-
import { z as loadConfig } from "./auth-profiles-
|
|
7
|
-
import "./agent-scope-
|
|
6
|
+
import { z as loadConfig } from "./auth-profiles-CdLTlJLc.js";
|
|
7
|
+
import "./agent-scope-BRElciAf.js";
|
|
8
8
|
import { v as resolveUserPath, x as shortenHomePath } from "./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,13 +14,13 @@ import "./github-copilot-token-Byc_YVYE.js";
|
|
|
14
14
|
import "./host-env-security-lcjXF83D.js";
|
|
15
15
|
import { t as VERSION } from "./version-DdJhsIqk.js";
|
|
16
16
|
import "./env-vars-mSSOl7Rv.js";
|
|
17
|
-
import "./manifest-registry-
|
|
17
|
+
import "./manifest-registry-DVviqWVY.js";
|
|
18
18
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-CIqYyQ36.js";
|
|
19
|
-
import { t as GatewayClient } from "./client-
|
|
20
|
-
import { s as resolveGatewayCredentialsWithSecretInputs, t as buildGatewayConnectionDetails } from "./call-
|
|
19
|
+
import { t as GatewayClient } from "./client-C-wA75vx.js";
|
|
20
|
+
import { s as resolveGatewayCredentialsWithSecretInputs, 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 { r as isKnownCoreToolId } from "./tool-catalog-C04U7H3F.js";
|
|
25
25
|
import { n as resolveWindowsSpawnProgram, t as materializeWindowsSpawnProgram } from "./windows-spawn-BTikdM3p.js";
|
|
26
26
|
import { t as formatDocsLink } from "./links-D_JFKt7M.js";
|
|
@@ -2,13 +2,13 @@ import { g as resolveStateDir, y as resolveRequiredHomeDir } from "./paths-BMo6k
|
|
|
2
2
|
import { t as createSubsystemLogger } from "./subsystem-BmoaLBy-.js";
|
|
3
3
|
import { E as parseAgentSessionKey, T as isSubagentSessionKey, c as normalizeAgentId, t as DEFAULT_AGENT_ID, u as resolveAgentIdFromSessionKey, w as isCronSessionKey } from "./session-key-k6urs9r-.js";
|
|
4
4
|
import { m as pathExists, v as resolveUserPath } from "./utils-6WlODK5w.js";
|
|
5
|
-
import { _ as normalizeSkillFilter, i as openBoundaryFile, t as resolveOpenClawPackageRoot } from "./openclaw-root-
|
|
5
|
+
import { _ as normalizeSkillFilter, i as openBoundaryFile, t as resolveOpenClawPackageRoot } from "./openclaw-root-BFfBQ6FD.js";
|
|
6
6
|
import { t as runCommandWithTimeout } from "./exec-GR2kPVc1.js";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import fs from "node:fs";
|
|
11
|
-
import
|
|
11
|
+
import fs$1 from "node:fs/promises";
|
|
12
12
|
|
|
13
13
|
//#region src/config/model-input.ts
|
|
14
14
|
function resolveAgentModelPrimaryValue(model) {
|
|
@@ -150,7 +150,7 @@ async function loadTemplate(name) {
|
|
|
150
150
|
const templateDir = await resolveWorkspaceTemplateDir();
|
|
151
151
|
const templatePath = path.join(templateDir, name);
|
|
152
152
|
try {
|
|
153
|
-
return stripFrontMatter(await
|
|
153
|
+
return stripFrontMatter(await fs$1.readFile(templatePath, "utf-8"));
|
|
154
154
|
} catch {
|
|
155
155
|
throw new Error(`Missing workspace template: ${name} (${templatePath}). Ensure docs/reference/templates are packaged.`);
|
|
156
156
|
}
|
|
@@ -165,7 +165,7 @@ async function loadTemplate(name) {
|
|
|
165
165
|
}
|
|
166
166
|
async function writeFileIfMissing(filePath, content) {
|
|
167
167
|
try {
|
|
168
|
-
await
|
|
168
|
+
await fs$1.writeFile(filePath, content, {
|
|
169
169
|
encoding: "utf-8",
|
|
170
170
|
flag: "wx"
|
|
171
171
|
});
|
|
@@ -177,7 +177,7 @@ async function writeFileIfMissing(filePath, content) {
|
|
|
177
177
|
}
|
|
178
178
|
async function fileExists(filePath) {
|
|
179
179
|
try {
|
|
180
|
-
await
|
|
180
|
+
await fs$1.access(filePath);
|
|
181
181
|
return true;
|
|
182
182
|
} catch {
|
|
183
183
|
return false;
|
|
@@ -201,7 +201,7 @@ function parseWorkspaceOnboardingState(raw) {
|
|
|
201
201
|
}
|
|
202
202
|
async function readWorkspaceOnboardingState(statePath) {
|
|
203
203
|
try {
|
|
204
|
-
return parseWorkspaceOnboardingState(await
|
|
204
|
+
return parseWorkspaceOnboardingState(await fs$1.readFile(statePath, "utf-8")) ?? { version: WORKSPACE_STATE_VERSION };
|
|
205
205
|
} catch (err) {
|
|
206
206
|
if (err.code !== "ENOENT") throw err;
|
|
207
207
|
return { version: WORKSPACE_STATE_VERSION };
|
|
@@ -215,20 +215,20 @@ async function isWorkspaceOnboardingCompleted(dir) {
|
|
|
215
215
|
return typeof state.onboardingCompletedAt === "string" && state.onboardingCompletedAt.trim().length > 0;
|
|
216
216
|
}
|
|
217
217
|
async function writeWorkspaceOnboardingState(statePath, state) {
|
|
218
|
-
await
|
|
218
|
+
await fs$1.mkdir(path.dirname(statePath), { recursive: true });
|
|
219
219
|
const payload = `${JSON.stringify(state, null, 2)}\n`;
|
|
220
220
|
const tmpPath = `${statePath}.tmp-${process.pid}-${Date.now().toString(36)}`;
|
|
221
221
|
try {
|
|
222
|
-
await
|
|
223
|
-
await
|
|
222
|
+
await fs$1.writeFile(tmpPath, payload, { encoding: "utf-8" });
|
|
223
|
+
await fs$1.rename(tmpPath, statePath);
|
|
224
224
|
} catch (err) {
|
|
225
|
-
await
|
|
225
|
+
await fs$1.unlink(tmpPath).catch(() => {});
|
|
226
226
|
throw err;
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
async function hasGitRepo(dir) {
|
|
230
230
|
try {
|
|
231
|
-
await
|
|
231
|
+
await fs$1.stat(path.join(dir, ".git"));
|
|
232
232
|
return true;
|
|
233
233
|
} catch {
|
|
234
234
|
return false;
|
|
@@ -258,7 +258,7 @@ async function ensureGitRepo(dir, isBrandNewWorkspace) {
|
|
|
258
258
|
}
|
|
259
259
|
async function ensureAgentWorkspace(params) {
|
|
260
260
|
const dir = resolveUserPath(params?.dir?.trim() ? params.dir.trim() : DEFAULT_AGENT_WORKSPACE_DIR);
|
|
261
|
-
await
|
|
261
|
+
await fs$1.mkdir(dir, { recursive: true });
|
|
262
262
|
if (!params?.ensureBootstrapFiles) return { dir };
|
|
263
263
|
const agentsPath = path.join(dir, DEFAULT_AGENTS_FILENAME);
|
|
264
264
|
const soulPath = path.join(dir, DEFAULT_SOUL_FILENAME);
|
|
@@ -285,7 +285,7 @@ async function ensureAgentWorkspace(params) {
|
|
|
285
285
|
const paths = [...templatePaths, ...userContentPaths];
|
|
286
286
|
return (await Promise.all(paths.map(async (p) => {
|
|
287
287
|
try {
|
|
288
|
-
await
|
|
288
|
+
await fs$1.access(p);
|
|
289
289
|
return true;
|
|
290
290
|
} catch {
|
|
291
291
|
return false;
|
|
@@ -318,7 +318,7 @@ async function ensureAgentWorkspace(params) {
|
|
|
318
318
|
if (!state.bootstrapSeededAt && bootstrapExists) markState({ bootstrapSeededAt: nowIso() });
|
|
319
319
|
if (!state.onboardingCompletedAt && state.bootstrapSeededAt && !bootstrapExists) markState({ onboardingCompletedAt: nowIso() });
|
|
320
320
|
if (!state.bootstrapSeededAt && !state.onboardingCompletedAt && !bootstrapExists) {
|
|
321
|
-
const [identityContent, userContent] = await Promise.all([
|
|
321
|
+
const [identityContent, userContent] = await Promise.all([fs$1.readFile(identityPath, "utf-8"), fs$1.readFile(userPath, "utf-8")]);
|
|
322
322
|
const hasUserContent = await (async () => {
|
|
323
323
|
const indicators = [
|
|
324
324
|
path.join(dir, "memory"),
|
|
@@ -326,7 +326,7 @@ async function ensureAgentWorkspace(params) {
|
|
|
326
326
|
path.join(dir, ".git")
|
|
327
327
|
];
|
|
328
328
|
for (const indicator of indicators) try {
|
|
329
|
-
await
|
|
329
|
+
await fs$1.access(indicator);
|
|
330
330
|
return true;
|
|
331
331
|
} catch {}
|
|
332
332
|
return false;
|
|
@@ -357,7 +357,7 @@ async function resolveMemoryBootstrapEntries(resolvedDir) {
|
|
|
357
357
|
for (const name of candidates) {
|
|
358
358
|
const filePath = path.join(resolvedDir, name);
|
|
359
359
|
try {
|
|
360
|
-
await
|
|
360
|
+
await fs$1.access(filePath);
|
|
361
361
|
entries.push({
|
|
362
362
|
name,
|
|
363
363
|
filePath
|
|
@@ -370,7 +370,7 @@ async function resolveMemoryBootstrapEntries(resolvedDir) {
|
|
|
370
370
|
for (const entry of entries) {
|
|
371
371
|
let key = entry.filePath;
|
|
372
372
|
try {
|
|
373
|
-
key = await
|
|
373
|
+
key = await fs$1.realpath(entry.filePath);
|
|
374
374
|
} catch {}
|
|
375
375
|
if (seen.has(key)) continue;
|
|
376
376
|
seen.add(key);
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { d as defaultRuntime } from "./subsystem-BmoaLBy-.js";
|
|
3
|
-
import { G as writeConfigFile, ar as resolveAuthStorePath, er as ensureAuthProfileStore } from "./auth-profiles-
|
|
3
|
+
import { G as writeConfigFile, ar as resolveAuthStorePath, er as ensureAuthProfileStore } from "./auth-profiles-CdLTlJLc.js";
|
|
4
4
|
import { t as formatCliCommand } from "./command-format-CLEQe4bk.js";
|
|
5
|
-
import { a as resolveAgentDir, b as DEFAULT_IDENTITY_FILENAME, d as resolveDefaultAgentId, n as listAgentEntries, u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
5
|
+
import { a as resolveAgentDir, b as DEFAULT_IDENTITY_FILENAME, d as resolveDefaultAgentId, n as listAgentEntries, u as resolveAgentWorkspaceDir } from "./agent-scope-BRElciAf.js";
|
|
6
6
|
import { c as normalizeAgentId, g as DEFAULT_ACCOUNT_ID, t as DEFAULT_AGENT_ID } from "./session-key-k6urs9r-.js";
|
|
7
7
|
import { v as resolveUserPath, x as shortenHomePath } from "./utils-6WlODK5w.js";
|
|
8
|
-
import { n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin } from "./plugins-
|
|
9
|
-
import { U as parseIdentityMarkdown, V as identityHasValues } from "./subagent-registry-
|
|
8
|
+
import { n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin } from "./plugins-VAZrrfgw.js";
|
|
9
|
+
import { U as parseIdentityMarkdown, V as identityHasValues } from "./subagent-registry-CPxHbyN5.js";
|
|
10
10
|
import { s as resolveSessionTranscriptsDirForAgent } from "./paths-DvFmz0MB.js";
|
|
11
|
-
import { a as ensureWorkspaceAndSessions, l as moveToTrash } from "./onboard-helpers-
|
|
11
|
+
import { a as ensureWorkspaceAndSessions, l as moveToTrash } from "./onboard-helpers-DO7u2ZOy.js";
|
|
12
12
|
import { t as WizardCancelledError } from "./prompts-l_pUOv42.js";
|
|
13
13
|
import { t as createClackPrompter } from "./clack-prompter-t5d11SiL.js";
|
|
14
14
|
import { t as resolveChannelDefaultAccountId } from "./helpers-D7MilaX-.js";
|
|
15
|
-
import { a as parseBindingSpecs, i as describeBinding, n as applyAgentBindings, o as removeAgentBindings, r as buildChannelBindings, t as requireValidConfigSnapshot } from "./config-validation-
|
|
16
|
-
import { a as pruneAgentConfig, i as loadAgentIdentity, n as buildAgentSummaries, r as findAgentEntryIndex, t as applyAgentConfig } from "./agents.config-
|
|
17
|
-
import { r as setupChannels } from "./onboard-channels-
|
|
15
|
+
import { a as parseBindingSpecs, i as describeBinding, n as applyAgentBindings, o as removeAgentBindings, r as buildChannelBindings, t as requireValidConfigSnapshot } from "./config-validation-iOxszdEd.js";
|
|
16
|
+
import { a as pruneAgentConfig, i as loadAgentIdentity, n as buildAgentSummaries, r as findAgentEntryIndex, t as applyAgentConfig } from "./agents.config-C42STger.js";
|
|
17
|
+
import { r as setupChannels } from "./onboard-channels-Di4MjWDY.js";
|
|
18
18
|
import { n as logConfigUpdated } from "./logging-DBqQTcKD.js";
|
|
19
19
|
import { n as promptAuthChoiceGrouped } from "./auth-choice-prompt-4mupmvzh.js";
|
|
20
|
-
import { i as applyAuthChoice, r as warnIfModelConfigLooksOff } from "./auth-choice-
|
|
20
|
+
import { i as applyAuthChoice, r as warnIfModelConfigLooksOff } from "./auth-choice-CGHVedXa.js";
|
|
21
21
|
import path from "node:path";
|
|
22
|
-
import
|
|
22
|
+
import fs from "node:fs/promises";
|
|
23
23
|
|
|
24
24
|
//#region src/commands/agents.command-shared.ts
|
|
25
25
|
function createQuietRuntime(runtime) {
|
|
@@ -266,7 +266,7 @@ async function agentsUnbindCommand(opts, runtime = defaultRuntime) {
|
|
|
266
266
|
//#region src/commands/agents.commands.add.ts
|
|
267
267
|
async function fileExists(pathname) {
|
|
268
268
|
try {
|
|
269
|
-
await
|
|
269
|
+
await fs.stat(pathname);
|
|
270
270
|
return true;
|
|
271
271
|
} catch {
|
|
272
272
|
return false;
|
|
@@ -408,8 +408,8 @@ async function agentsAddCommand(opts, runtime = defaultRuntime, params) {
|
|
|
408
408
|
message: `Copy auth profiles from "${defaultAgentId}"?`,
|
|
409
409
|
initialValue: false
|
|
410
410
|
})) {
|
|
411
|
-
await
|
|
412
|
-
await
|
|
411
|
+
await fs.mkdir(path.dirname(destAuthPath), { recursive: true });
|
|
412
|
+
await fs.copyFile(sourceAuthPath, destAuthPath);
|
|
413
413
|
await prompter.note(`Copied auth profiles from "${defaultAgentId}".`, "Auth profiles");
|
|
414
414
|
}
|
|
415
415
|
}
|
|
@@ -557,7 +557,7 @@ const coerceTrimmed = (value) => {
|
|
|
557
557
|
};
|
|
558
558
|
async function loadIdentityFromFile(filePath) {
|
|
559
559
|
try {
|
|
560
|
-
const parsed = parseIdentityMarkdown(await
|
|
560
|
+
const parsed = parseIdentityMarkdown(await fs.readFile(filePath, "utf-8"));
|
|
561
561
|
if (!identityHasValues(parsed)) return null;
|
|
562
562
|
return parsed;
|
|
563
563
|
} catch {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as resolveAgentDir, d as resolveDefaultAgentId, n as listAgentEntries, u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
1
|
+
import { a as resolveAgentDir, d as resolveDefaultAgentId, n as listAgentEntries, u as resolveAgentWorkspaceDir } from "./agent-scope-BRElciAf.js";
|
|
2
2
|
import { c as normalizeAgentId } from "./session-key-k6urs9r-.js";
|
|
3
|
-
import { H as loadAgentIdentityFromWorkspace, V as identityHasValues } from "./subagent-registry-
|
|
3
|
+
import { H as loadAgentIdentityFromWorkspace, V as identityHasValues } from "./subagent-registry-CPxHbyN5.js";
|
|
4
4
|
|
|
5
5
|
//#region src/commands/agents.config.ts
|
|
6
6
|
function findAgentEntryIndex(list, agentId) {
|
|
@@ -2,10 +2,10 @@ import { a as logVerbose, c as shouldLogVerbose } from "./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,49 +13,49 @@ 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 "./dock-
|
|
16
|
+
import "./manifest-registry-DVviqWVY.js";
|
|
17
|
+
import "./dock-BbUkruOF.js";
|
|
18
18
|
import "./frontmatter-D2o8_Jfu.js";
|
|
19
|
-
import "./skills-
|
|
20
|
-
import "./path-alias-guards-
|
|
19
|
+
import "./skills-DR-vacol.js";
|
|
20
|
+
import "./path-alias-guards-DbNvNQar.js";
|
|
21
21
|
import "./message-channel-CIqYyQ36.js";
|
|
22
|
-
import "./sessions-
|
|
23
|
-
import "./plugins-
|
|
24
|
-
import "./accounts-
|
|
25
|
-
import "./accounts-
|
|
22
|
+
import "./sessions-BOWPuhe5.js";
|
|
23
|
+
import "./plugins-VAZrrfgw.js";
|
|
24
|
+
import "./accounts-DJaYqD2E.js";
|
|
25
|
+
import "./accounts-BU-CeDai.js";
|
|
26
26
|
import "./logging-CcxUDNcI.js";
|
|
27
|
-
import "./accounts-
|
|
27
|
+
import "./accounts-BVgYdU9W.js";
|
|
28
28
|
import "./paths-DvFmz0MB.js";
|
|
29
29
|
import "./chat-envelope-D3RSz140.js";
|
|
30
|
-
import "./net-
|
|
31
|
-
import "./tailnet-
|
|
32
|
-
import "./image-ops-
|
|
33
|
-
import "./pi-embedded-helpers-
|
|
34
|
-
import "./sandbox-
|
|
30
|
+
import "./net-D5fSREu4.js";
|
|
31
|
+
import "./tailnet-0_FsdHP-.js";
|
|
32
|
+
import "./image-ops-pjs5W0CZ.js";
|
|
33
|
+
import "./pi-embedded-helpers-oXDyXTD8.js";
|
|
34
|
+
import "./sandbox-Ct-_lzi1.js";
|
|
35
35
|
import "./tool-catalog-C04U7H3F.js";
|
|
36
|
-
import "./chrome-
|
|
36
|
+
import "./chrome-CyM61Cn2.js";
|
|
37
37
|
import "./tailscale-aXobtl7f.js";
|
|
38
|
-
import "./auth-
|
|
39
|
-
import "./server-context-
|
|
40
|
-
import "./paths-
|
|
38
|
+
import "./auth-Mj21c_GN.js";
|
|
39
|
+
import "./server-context-8pDe2iyd.js";
|
|
40
|
+
import "./paths-BB_1ZWOj.js";
|
|
41
41
|
import "./redact-TY4yJzrg.js";
|
|
42
42
|
import "./errors-BbXSsOtF.js";
|
|
43
|
-
import "./fs-safe-
|
|
44
|
-
import "./proxy-env-
|
|
45
|
-
import "./store-
|
|
46
|
-
import "./ports-
|
|
43
|
+
import "./fs-safe-jMDpsYew.js";
|
|
44
|
+
import "./proxy-env-wKO3g8Yv.js";
|
|
45
|
+
import "./store-DDkqo1sO.js";
|
|
46
|
+
import "./ports-DogAV7pa.js";
|
|
47
47
|
import "./trash-C6zcuM95.js";
|
|
48
|
-
import "./server-middleware-
|
|
49
|
-
import "./tool-images-
|
|
48
|
+
import "./server-middleware-DMiFT9xU.js";
|
|
49
|
+
import "./tool-images-CNPfeCmU.js";
|
|
50
50
|
import "./thinking-CrcT589P.js";
|
|
51
|
-
import "./models-config-
|
|
52
|
-
import "./model-catalog-
|
|
53
|
-
import "./fetch-
|
|
54
|
-
import { _ as isAudioAttachment, i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, t as runAudioTranscription } from "./audio-transcription-runner-
|
|
55
|
-
import "./fetch-guard-
|
|
56
|
-
import "./image-
|
|
51
|
+
import "./models-config-DNcDbV_G.js";
|
|
52
|
+
import "./model-catalog-DTcBkUlX.js";
|
|
53
|
+
import "./fetch-D-SiVqBm.js";
|
|
54
|
+
import { _ as isAudioAttachment, i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, t as runAudioTranscription } from "./audio-transcription-runner-D1cvrZ6s.js";
|
|
55
|
+
import "./fetch-guard-CKYBfJ66.js";
|
|
56
|
+
import "./image-CyHTO86Q.js";
|
|
57
57
|
import "./tool-display-CvlNC8XD.js";
|
|
58
|
-
import "./api-key-rotation-
|
|
58
|
+
import "./api-key-rotation-BbuLHl0_.js";
|
|
59
59
|
import "./proxy-fetch-DezNPSn_.js";
|
|
60
60
|
|
|
61
61
|
//#region src/media-understanding/audio-preflight.ts
|
package/dist/{audio-transcription-runner-DYKvqK54.js → audio-transcription-runner-D1cvrZ6s.js}
RENAMED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { a as logVerbose, c as shouldLogVerbose, k as resolvePreferredOpenClawTmpDir } from "./globals-ENg_AXRt.js";
|
|
2
|
-
import { $ as mergeInboundPathRoots, Q as isInboundPathAllowed, Sr as normalizeProviderId, Vr as normalizeGoogleModelId, Z as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, et as resolveIMessageAttachmentRoots, mi as resolveApiKeyForProvider, pi as requireApiKey } from "./auth-profiles-
|
|
3
|
-
import { M as resolveAgentModelFallbackValues, N as resolveAgentModelPrimaryValue } from "./agent-scope-
|
|
2
|
+
import { $ as mergeInboundPathRoots, Q as isInboundPathAllowed, Sr as normalizeProviderId, Vr as normalizeGoogleModelId, Z as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, et as resolveIMessageAttachmentRoots, mi as resolveApiKeyForProvider, pi as requireApiKey } from "./auth-profiles-CdLTlJLc.js";
|
|
3
|
+
import { M as resolveAgentModelFallbackValues, N as resolveAgentModelPrimaryValue } from "./agent-scope-BRElciAf.js";
|
|
4
4
|
import { n as runExec } from "./exec-GR2kPVc1.js";
|
|
5
|
-
import { j as normalizeChatType } from "./plugins-
|
|
6
|
-
import { c as detectMime, f as isAudioFileName, m as kindFromMime, u as getFileExtension } from "./image-ops-
|
|
5
|
+
import { j as normalizeChatType } from "./plugins-VAZrrfgw.js";
|
|
6
|
+
import { c as detectMime, f as isAudioFileName, m as kindFromMime, u as getFileExtension } from "./image-ops-pjs5W0CZ.js";
|
|
7
7
|
import { i as formatUncaughtError, n as extractErrorCode, s as readErrorName, t as collectErrorGraphCandidates } from "./errors-BbXSsOtF.js";
|
|
8
|
-
import { n as loadModelCatalog, r as modelSupportsVision, t as findModelInCatalog } from "./model-catalog-
|
|
9
|
-
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia, t as MediaFetchError } from "./fetch-
|
|
8
|
+
import { n as loadModelCatalog, r as modelSupportsVision, t as findModelInCatalog } from "./model-catalog-DTcBkUlX.js";
|
|
9
|
+
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia, t as MediaFetchError } from "./fetch-D-SiVqBm.js";
|
|
10
10
|
import { n as fetchWithTimeout } from "./fetch-timeout-Mawkd1Br.js";
|
|
11
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
12
|
-
import { t as describeImageWithModel } from "./image-
|
|
13
|
-
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-
|
|
11
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-CKYBfJ66.js";
|
|
12
|
+
import { t as describeImageWithModel } from "./image-CyHTO86Q.js";
|
|
13
|
+
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-BbuLHl0_.js";
|
|
14
14
|
import { n as resolveProxyFetchFromEnv } from "./proxy-fetch-DezNPSn_.js";
|
|
15
15
|
import process$1 from "node:process";
|
|
16
16
|
import { fileURLToPath } from "node:url";
|
|
17
17
|
import os from "node:os";
|
|
18
18
|
import path from "node:path";
|
|
19
19
|
import { constants } from "node:fs";
|
|
20
|
-
import
|
|
20
|
+
import fs$1 from "node:fs/promises";
|
|
21
21
|
import crypto from "node:crypto";
|
|
22
22
|
|
|
23
23
|
//#region src/media-understanding/attachments.normalize.ts
|
|
@@ -426,7 +426,7 @@ var MediaAttachmentCache = class {
|
|
|
426
426
|
const size = await this.ensureLocalStat(entry);
|
|
427
427
|
if (entry.resolvedPath) {
|
|
428
428
|
if (size !== void 0 && size > params.maxBytes) throw new MediaUnderstandingSkipError("maxBytes", `Attachment ${params.attachmentIndex + 1} exceeds maxBytes ${params.maxBytes}`);
|
|
429
|
-
const buffer = await
|
|
429
|
+
const buffer = await fs$1.readFile(entry.resolvedPath);
|
|
430
430
|
entry.buffer = buffer;
|
|
431
431
|
entry.bufferMime = entry.bufferMime ?? entry.attachment.mime ?? await detectMime({
|
|
432
432
|
buffer,
|
|
@@ -496,10 +496,10 @@ var MediaAttachmentCache = class {
|
|
|
496
496
|
prefix: "openclaw-media",
|
|
497
497
|
extension: path.extname(bufferResult.fileName || "") || ""
|
|
498
498
|
});
|
|
499
|
-
await
|
|
499
|
+
await fs$1.writeFile(tmpPath, bufferResult.buffer);
|
|
500
500
|
entry.tempPath = tmpPath;
|
|
501
501
|
entry.tempCleanup = async () => {
|
|
502
|
-
await
|
|
502
|
+
await fs$1.unlink(tmpPath).catch(() => {});
|
|
503
503
|
};
|
|
504
504
|
return {
|
|
505
505
|
path: tmpPath,
|
|
@@ -546,12 +546,12 @@ var MediaAttachmentCache = class {
|
|
|
546
546
|
if (entry.statSize !== void 0) return entry.statSize;
|
|
547
547
|
try {
|
|
548
548
|
const currentPath = entry.resolvedPath;
|
|
549
|
-
const stat = await
|
|
549
|
+
const stat = await fs$1.stat(currentPath);
|
|
550
550
|
if (!stat.isFile()) {
|
|
551
551
|
entry.resolvedPath = void 0;
|
|
552
552
|
return;
|
|
553
553
|
}
|
|
554
|
-
const canonicalPath = await
|
|
554
|
+
const canonicalPath = await fs$1.realpath(currentPath).catch(() => currentPath);
|
|
555
555
|
if (!isInboundPathAllowed({
|
|
556
556
|
filePath: canonicalPath,
|
|
557
557
|
roots: await this.getCanonicalLocalPathRoots()
|
|
@@ -573,7 +573,7 @@ var MediaAttachmentCache = class {
|
|
|
573
573
|
if (this.canonicalLocalPathRoots) return await this.canonicalLocalPathRoots;
|
|
574
574
|
this.canonicalLocalPathRoots = (async () => mergeInboundPathRoots(this.localPathRoots, await Promise.all(this.localPathRoots.map(async (root) => {
|
|
575
575
|
if (root.includes("*")) return root;
|
|
576
|
-
return await
|
|
576
|
+
return await fs$1.realpath(root).catch(() => root);
|
|
577
577
|
}))))();
|
|
578
578
|
return await this.canonicalLocalPathRoots;
|
|
579
579
|
}
|
|
@@ -646,7 +646,7 @@ const MIN_AUDIO_FILE_BYTES = 1024;
|
|
|
646
646
|
async function fileExists(filePath) {
|
|
647
647
|
if (!filePath) return false;
|
|
648
648
|
try {
|
|
649
|
-
await
|
|
649
|
+
await fs$1.stat(filePath);
|
|
650
650
|
return true;
|
|
651
651
|
} catch {
|
|
652
652
|
return false;
|
|
@@ -1237,7 +1237,7 @@ async function resolveCliOutput(params) {
|
|
|
1237
1237
|
const commandId = commandBase(params.command);
|
|
1238
1238
|
const fileOutput = commandId === "whisper-cli" ? resolveWhisperCppOutputPath(params.args) : commandId === "whisper" ? resolveWhisperOutputPath(params.args, params.mediaPath) : commandId === "parakeet-mlx" ? resolveParakeetOutputPath(params.args, params.mediaPath) : null;
|
|
1239
1239
|
if (fileOutput && await fileExists(fileOutput)) try {
|
|
1240
|
-
const content = await
|
|
1240
|
+
const content = await fs$1.readFile(fileOutput, "utf8");
|
|
1241
1241
|
if (content.trim()) return content.trim();
|
|
1242
1242
|
} catch {}
|
|
1243
1243
|
if (commandId === "gemini") {
|
|
@@ -1546,10 +1546,10 @@ async function runCliEntry(params) {
|
|
|
1546
1546
|
timeoutMs
|
|
1547
1547
|
});
|
|
1548
1548
|
if (capability === "audio") assertMinAudioSize({
|
|
1549
|
-
size: (await
|
|
1549
|
+
size: (await fs$1.stat(pathResult.path)).size,
|
|
1550
1550
|
attachmentIndex: params.attachmentIndex
|
|
1551
1551
|
});
|
|
1552
|
-
const outputDir = await
|
|
1552
|
+
const outputDir = await fs$1.mkdtemp(path.join(resolvePreferredOpenClawTmpDir(), "openclaw-media-cli-"));
|
|
1553
1553
|
const mediaPath = pathResult.path;
|
|
1554
1554
|
const outputBase = path.join(outputDir, path.parse(mediaPath).name);
|
|
1555
1555
|
const templCtx = {
|
|
@@ -1583,7 +1583,7 @@ async function runCliEntry(params) {
|
|
|
1583
1583
|
model: command
|
|
1584
1584
|
};
|
|
1585
1585
|
} finally {
|
|
1586
|
-
await
|
|
1586
|
+
await fs$1.rm(outputDir, {
|
|
1587
1587
|
recursive: true,
|
|
1588
1588
|
force: true
|
|
1589
1589
|
}).catch(() => {});
|
|
@@ -1627,9 +1627,9 @@ function candidateBinaryNames(name) {
|
|
|
1627
1627
|
}
|
|
1628
1628
|
async function isExecutable(filePath) {
|
|
1629
1629
|
try {
|
|
1630
|
-
if (!(await
|
|
1630
|
+
if (!(await fs$1.stat(filePath)).isFile()) return false;
|
|
1631
1631
|
if (process.platform === "win32") return true;
|
|
1632
|
-
await
|
|
1632
|
+
await fs$1.access(filePath, constants.X_OK);
|
|
1633
1633
|
return true;
|
|
1634
1634
|
} catch {
|
|
1635
1635
|
return false;
|