openclaw-multi-auto 1.1.8 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{accounts-4vg8osA5.js → accounts-BPt-s1cW.js} +7 -7
- package/dist/{accounts-C_lW3Ag9.js → accounts-C03uCDCo.js} +2 -2
- package/dist/{accounts-BgOnManD.js → accounts-CC3alHma.js} +1 -1
- package/dist/{accounts-CXo4Ac3z.js → accounts-CNIODbBr.js} +1 -1
- package/dist/{accounts-Tgelvk0C.js → accounts-DBSLesVQ.js} +4 -4
- package/dist/{accounts-C9HcPI9h.js → accounts-WYUGa5U3.js} +2 -2
- package/dist/{acp-cli-B2w71bEK.js → acp-cli-DjB0ovMh.js} +8 -8
- package/dist/{active-listener-BEdprTkn.js → active-listener-DafnLqHP.js} +2 -2
- package/dist/{agent-scope-BbO_VBbv.js → agent-scope-CNJUPFcR.js} +17 -17
- package/dist/{agents.config-y8kHMoox.js → agents.config-Dh5Lcv4N.js} +2 -2
- package/dist/{api-key-rotation-BJpKWXy0.js → api-key-rotation-CIliF_q2.js} +2 -2
- package/dist/{api-key-rotation-CzacqD3s.js → api-key-rotation-PzGuOQm_.js} +1 -1
- package/dist/{audio-preflight-BMvgEQ5j.js → audio-preflight-DL2ArR_k.js} +30 -30
- package/dist/{audio-preflight-CiANHFx-.js → audio-preflight-DOYiMo_d.js} +34 -34
- package/dist/{audio-transcription-runner-gLFfz8fr.js → audio-transcription-runner-CY9DQOHn.js} +12 -12
- package/dist/{audio-transcription-runner-B9-J1DUd.js → audio-transcription-runner-sLK1yiya.js} +23 -23
- package/dist/{audit-BBbzzHkv.js → audit-BSvn3dTQ.js} +29 -29
- package/dist/{audit-membership-runtime-Dntemq07.js → audit-membership-runtime-bKhgYy9Y.js} +3 -3
- package/dist/{auth-B_YGaEcP.js → auth-C_LDvTxu.js} +1 -1
- package/dist/{auth-choice-CV87PVB8.js → auth-choice-Bu5kPuhF.js} +11 -11
- package/dist/{auth-choice-gf8aEhcg.js → auth-choice-fpoHu7pV.js} +13 -13
- package/dist/{auth-choice.apply-helpers-IK7zIZHi.js → auth-choice.apply-helpers-RNa-mjTS.js} +1 -1
- package/dist/{auth-token-D2V9CMur.js → auth-token-CktupXSw.js} +1 -1
- package/dist/{bonjour-discovery-BC_XEtg4.js → bonjour-discovery-DvVDs7rm.js} +1 -1
- package/dist/{browser-cli-BEWtuR6r.js → browser-cli-DuYjaYLJ.js} +12 -12
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +49 -49
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/command-logger/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +49 -49
- package/dist/{call-YJ9zjeji.js → call-eK-5ynwM.js} +10 -10
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-account-context-CJ_25Q5X.js → channel-account-context-BQD0zpuF.js} +5 -5
- package/dist/{channel-activity-BDnjYF7B.js → channel-activity-CWRymH2r.js} +3 -3
- package/dist/{channel-activity-BHb0aL0J.js → channel-activity-w-iWKqZg.js} +1 -1
- package/dist/{channel-options-8OGfdfdc.js → channel-options-o5oDDArl.js} +3 -3
- package/dist/{channel-selection-D21oKnM0.js → channel-selection-HaUsJ3kL.js} +1 -1
- package/dist/{channel-web-BXHQWjc6.js → channel-web-JuhY6j_M.js} +16 -16
- package/dist/{channels-cli-ByTcIaZC.js → channels-cli-aZhDWAhv.js} +92 -92
- package/dist/{channels-status-issues-Cva3QRlu.js → channels-status-issues-Bi69DlUp.js} +1 -1
- package/dist/{chrome-DxxEKrY7.js → chrome-BLiGH0cb.js} +7 -7
- package/dist/{chrome-DBMFZ1ho.js → chrome-CQR5U4Oc.js} +4 -4
- package/dist/{clawbot-cli-DpZDxNOd.js → clawbot-cli-DJzN7m49.js} +11 -11
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-bsDX2k8k.js → cli-fGEJw7Bh.js} +72 -72
- package/dist/{client-D9sBKoZI.js → client-BEwDNigg.js} +2 -2
- package/dist/{command-secret-targets-SH5qP5X_.js → command-secret-targets-qpSAI_K2.js} +4 -4
- package/dist/{commands-DUzVNM-Q.js → commands-BaXA2bSJ.js} +1 -1
- package/dist/{commands-registry-D5qXbFJn.js → commands-registry-BmtB7goJ.js} +4 -4
- package/dist/{commands-registry-C2INbVUe.js → commands-registry-D-nkNP-x.js} +3 -3
- package/dist/{completion-cli-4GVy2WHG.js → completion-cli-D-Vt6klA.js} +12 -12
- package/dist/{config-cli-ByWpkmkG.js → config-cli-D7CkjeZo.js} +7 -7
- package/dist/{config-guard-ofLFxSQh.js → config-guard-B1hrQ4RG.js} +16 -16
- package/dist/{config-validation-9QNDxE74.js → config-validation-CZ59Kb8S.js} +3 -3
- package/dist/{configure-JiVnjIlt.js → configure-BTMq-WnT.js} +17 -17
- package/dist/{control-ui-assets-D7bG2PFs.js → control-ui-assets-DR9xNC3f.js} +1 -1
- package/dist/{cron-cli-DuHdcQFw.js → cron-cli-CvFNRfgv.js} +11 -11
- package/dist/{daemon-cli-Do_4dH0e.js → daemon-cli-Bb7Q2DPz.js} +15 -15
- package/dist/{daemon-install-helpers-Pex1FHrG.js → daemon-install-helpers-BYWgt_7u.js} +11 -11
- package/dist/{daemon-install-C0_0OAHU.js → daemon-install-mDWE60H-.js} +4 -4
- package/dist/{deliver-B05oD9oA.js → deliver-DuqANTNs.js} +7 -7
- package/dist/{deliver-DbdywYJE.js → deliver-DzFUFJ74.js} +11 -11
- package/dist/deliver-runtime-CBjIBIWj.js +61 -0
- package/dist/deliver-runtime-CmtGDm4w.js +36 -0
- package/dist/deps-send-discord.runtime-AqQ8O6SJ.js +26 -0
- package/dist/deps-send-discord.runtime-Ch7m0GFO.js +36 -0
- package/dist/deps-send-imessage.runtime-BBXNUMFu.js +35 -0
- package/dist/deps-send-imessage.runtime-kW8EvIyy.js +25 -0
- package/dist/deps-send-signal.runtime-CRNrFFtX.js +24 -0
- package/dist/deps-send-signal.runtime-DVVQsW-M.js +34 -0
- package/dist/deps-send-slack.runtime-Bm60sFNH.js +32 -0
- package/dist/deps-send-slack.runtime-f6y3iZTa.js +22 -0
- package/dist/deps-send-telegram.runtime-C4GJ2Yg8.js +27 -0
- package/dist/{deps-send-telegram.runtime-IVPYXaID.js → deps-send-telegram.runtime-TOpNwBFj.js} +16 -16
- package/dist/deps-send-whatsapp.runtime-B2i2JcV5.js +118 -0
- package/dist/deps-send-whatsapp.runtime-DBSp1PIH.js +60 -0
- package/dist/{devices-cli-D0SxzElB.js → devices-cli-DVXzYwja.js} +8 -8
- package/dist/{diagnostic-v2TGEcgC.js → diagnostic-CL9h6IXx.js} +1 -1
- package/dist/{diagnostic-Co6Kghr-.js → diagnostic-D-gHwpRW.js} +2 -2
- package/dist/{diagnostics-CBcbp7BB.js → diagnostics-CwWdfrvB.js} +5 -5
- package/dist/{directory-cli-A0q9Ftjc.js → directory-cli-DL2TKoz1.js} +7 -7
- package/dist/{dns-cli-hyt6Wvvq.js → dns-cli-DOHzu8H-.js} +5 -5
- package/dist/{dock-SpSqP4RS.js → dock-BR4hdehX.js} +4 -4
- package/dist/{docs-cli-CJfXaxzc.js → docs-cli-D1S8CZJy.js} +4 -4
- package/dist/{doctor-completion-CDRZEttH.js → doctor-completion-CkEHCVMO.js} +2 -2
- package/dist/{doctor-config-flow-kZl_wy2A.js → doctor-config-flow-DQNZsEku.js} +15 -15
- package/dist/{enable-B27E5MMW.js → enable-V7r6GCwn.js} +1 -1
- package/dist/{errors-xt401nuk.js → errors-Bzq31uR7.js} +1 -1
- package/dist/{exec-approvals-allowlist-BOUCQu6B.js → exec-approvals-allowlist-CtUT02un.js} +1 -1
- package/dist/{exec-approvals-cli-_cqBqjTA.js → exec-approvals-cli-CsCqi3wl.js} +16 -16
- package/dist/{exec-safe-bin-runtime-policy-CkhpnueN.js → exec-safe-bin-runtime-policy-CSBwsuHS.js} +2 -2
- package/dist/{fetch-DuraYswo.js → fetch-DLMnQENe.js} +4 -4
- package/dist/{fetch-guard-DWr0d00H.js → fetch-guard-CTpL4P0R.js} +2 -2
- package/dist/{fetch-guard-NyNh7p-s.js → fetch-guard-Ca0W-yZr.js} +1 -1
- package/dist/{frontmatter-BkTfEZ93.js → frontmatter-Cg87VA6v.js} +3 -3
- package/dist/{fs-safe-CTYUrIgQ.js → fs-safe-BJHz1v5g.js} +3 -3
- package/dist/{fs-safe-mG29clJ9.js → fs-safe-D_adQJX4.js} +24 -24
- package/dist/{gateway-cli-94YTdTAa.js → gateway-cli-C5cq5Fv9.js} +152 -152
- package/dist/{gateway-rpc-NhXLPpJx.js → gateway-rpc-C32KFHnD.js} +1 -1
- package/dist/{health-B99KJscL.js → health-yuGFUIWJ.js} +11 -11
- package/dist/{hooks-cli-C01QhY4h.js → hooks-cli-CXWcvFYo.js} +80 -80
- package/dist/{hooks-status-CZNGtyrM.js → hooks-status-Bjjm7teR.js} +1 -1
- package/dist/{image-BaqqhHHh.js → image-CDKYPK1-.js} +5 -5
- package/dist/{image-eT7Y-nP5.js → image-Dvpe9X28.js} +6 -6
- package/dist/{image-ops-CKnT_r12.js → image-ops-BTwvusXV.js} +10 -10
- package/dist/{image-ops-BuUnEOE0.js → image-ops-NlRpKwDZ.js} +2 -2
- package/dist/image-runtime-Chwb3woD.js +29 -0
- package/dist/image-runtime-Csw6M1GE.js +55 -0
- package/dist/index.js +82 -82
- package/dist/{inspect-XHunUBlV.js → inspect-lNlGLW_c.js} +4 -4
- package/dist/{install-safe-path-om__n8TQ.js → install-safe-path-BNRYD-KJ.js} +25 -25
- package/dist/{installs-Z0VR0SY2.js → installs-BB_8nllr.js} +9 -9
- package/dist/{ipv4-NJiClroF.js → ipv4-CPzn5xIX.js} +1 -1
- package/dist/{ir-ChJe1hY6.js → ir-BdjoGJyL.js} +8 -8
- package/dist/{ir-B83looB-.js → ir-Opratif6.js} +8 -8
- package/dist/{issue-format-G-7IkANX.js → issue-format-D_MHPECu.js} +1 -1
- package/dist/{json-files-D6M304Qd.js → json-files-DIEpaxUj.js} +8 -8
- package/dist/{legacy-names-DOC03BkU.js → legacy-names-DHL97DjK.js} +1 -1
- package/dist/{lifecycle-core-BcIuIPMF.js → lifecycle-core-C2u5W-Xd.js} +5 -5
- package/dist/llm-slug-generator.js +49 -49
- package/dist/{local-roots-BCYAjsgu.js → local-roots-_noFNwvo.js} +3 -3
- package/dist/{logger-BfjWMCSD.js → logger-BmVht969.js} +1 -1
- package/dist/{login-CrIwcrVI.js → login-CQNGOn4D.js} +5 -5
- package/dist/{login-D7cZyPrd.js → login-CbJ7lelX.js} +3 -3
- package/dist/{login-qr-DPVFxhjZ.js → login-qr-9cwofnkY.js} +6 -6
- package/dist/{login-qr-BpPDZdl_.js → login-qr-CSD7H2AN.js} +8 -8
- package/dist/{logs-cli-CtEDxmDk.js → logs-cli-RYm8XZEC.js} +9 -9
- package/dist/{manager-CSnZM2Iw.js → manager-Dbz9CyPw.js} +14 -14
- package/dist/{manager-1bvuGrNR.js → manager-fachT9P-.js} +9 -9
- package/dist/manager-runtime-C2UUPOqK.js +18 -0
- package/dist/{manager-runtime-aMwRbhZ3.js → manager-runtime-DsniMUxY.js} +9 -9
- package/dist/{manifest-registry-D74D25g7.js → manifest-registry-QfHOpQrg.js} +1 -1
- package/dist/{memory-cli-CCMIlraX.js → memory-cli-CLBPPSow.js} +12 -12
- package/dist/{model-CnHxvu4o.js → model-CfB7nuUK.js} +2 -2
- package/dist/{model-catalog-QXAt20Vy.js → model-catalog-BH55qLYK.js} +3 -3
- package/dist/{model-picker-ByrLHc9_.js → model-picker-D3xDEPDv.js} +4 -4
- package/dist/{model-selection-Dna0Gz1k.js → model-selection-DXZ1P6pQ.js} +10 -10
- package/dist/{model-selection-DqSNdtby.js → model-selection-DZM1M4yx.js} +16 -16
- package/dist/{models-cli-C0mrlgSL.js → models-cli-DlFeSGXD.js} +81 -81
- package/dist/{models-config-5EhgxVMQ.js → models-config-BLJwyO9D.js} +6 -6
- package/dist/{node-cli-DdKfRYhS.js → node-cli-Dcn7Lxvr.js} +33 -33
- package/dist/{node-command-policy-D-hu0n3w.js → node-command-policy-DfcI_g5B.js} +1 -1
- package/dist/{node-service--hFCI8Ok.js → node-service-CIXWfpdM.js} +1 -1
- package/dist/{nodes-cli-BmjFvKQh.js → nodes-cli-CtIY3Wdi.js} +16 -16
- package/dist/{nodes-screen-CCNot0xV.js → nodes-screen-DgLXnfNX.js} +7 -7
- package/dist/{npm-pack-install-DSR8-nhr.js → npm-pack-install-BmT2Qku8.js} +18 -18
- package/dist/{npm-resolution-dr4H2dBm.js → npm-resolution-Ch4kSz-J.js} +4 -4
- package/dist/{onboard-channels-QzPuUsu5.js → onboard-channels-CZMeimvm.js} +21 -21
- package/dist/{onboard-custom-pyXzjp5z.js → onboard-custom-Bk9lP_gS.js} +4 -4
- package/dist/{onboard-helpers-ByC3v1-U.js → onboard-helpers-C51uqagK.js} +10 -10
- package/dist/{onboard-hooks-C2cFv3_-.js → onboard-hooks-B4RFbzBs.js} +4 -4
- package/dist/{onboard-CyDS1PdS.js → onboard-pvZeQwGW.js} +6 -6
- package/dist/{onboard-remote-DHZv5w4W.js → onboard-remote-CmB2v7g1.js} +4 -4
- package/dist/{onboard-skills-D_R383gZ.js → onboard-skills-B52kyElD.js} +4 -4
- package/dist/{onboarding-Df6qbE08.js → onboarding-BQS8Nd_E.js} +14 -14
- package/dist/{onboarding.finalize-DkEbxmLj.js → onboarding.finalize-1BqhSubV.js} +85 -85
- package/dist/{onboarding.gateway-config-DttU83Zb.js → onboarding.gateway-config-BIkI8VxE.js} +18 -18
- package/dist/{onboarding.secret-input-BJILGy22.js → onboarding.secret-input-Dz6lMbgK.js} +1 -1
- package/dist/{openai-model-default-uuDOWnTl.js → openai-model-default-LC7S-YJ9.js} +2 -2
- package/dist/{openclaw-root-DeEQQJyX.js → openclaw-root-DG6I1Pl4.js} +8 -8
- package/dist/{outbound-ChDjtuD6.js → outbound-C1xuM_dO.js} +6 -6
- package/dist/{outbound-B0HGMG3V.js → outbound-C2sayF6_.js} +3 -3
- package/dist/{outbound-attachment-Ccf9O8B8.js → outbound-attachment-BMKxLFNL.js} +2 -2
- package/dist/{outbound-attachment-DqHlD21U.js → outbound-attachment-BxKnNYBT.js} +2 -2
- package/dist/{pairing-cli-L76jWxbm.js → pairing-cli-BiogXen1.js} +8 -8
- package/dist/{pairing-labels-D9vsJ1yc.js → pairing-labels-OxEX3p5e.js} +1 -1
- package/dist/{pairing-store-qlIFCeZB.js → pairing-store-CxcCXceV.js} +3 -3
- package/dist/{path-alias-guards-BzAaCM2k.js → path-alias-guards-CY88Htx_.js} +3 -3
- package/dist/{path-alias-guards-BzvdLvTI.js → path-alias-guards-DLRk35Au.js} +1 -1
- package/dist/{path-safety-BtMBl7vC.js → path-safety-dy_YlK3a.js} +1 -1
- package/dist/{paths-1ThfklTP.js → paths-C48pWRFv.js} +9 -9
- package/dist/{paths-Bkr-BCxW.js → paths-C6U18E3c.js} +1 -1
- package/dist/{pi-embedded-BQQa91aA.js → pi-embedded-DoXa9mcl.js} +76 -76
- package/dist/{pi-embedded-helpers-DXrnVbBZ.js → pi-embedded-helpers-CuG0ngBL.js} +6 -6
- package/dist/{pi-embedded-helpers-CLXm10bV.js → pi-embedded-helpers-Dq_3Nroj.js} +19 -19
- package/dist/{pi-model-discovery-Dymwdjt0.js → pi-model-discovery-DUCVKN7C.js} +1 -1
- package/dist/{pi-model-discovery-BKbDxeIp.js → pi-model-discovery-Drm3mYtt.js} +1 -1
- package/dist/{pi-model-discovery-runtime-CpLmZvoC.js → pi-model-discovery-runtime-CCZ87Xog.js} +5 -5
- package/dist/pi-model-discovery-runtime-yc8d-oDv.js +11 -0
- package/dist/{pi-tools.before-tool-call.runtime-Cwab_5W1.js → pi-tools.before-tool-call.runtime-CEYIYvBz.js} +7 -7
- package/dist/{pi-tools.before-tool-call.runtime-81kH9GUj.js → pi-tools.before-tool-call.runtime-CxMxsbgT.js} +5 -5
- package/dist/{pi-tools.policy-BC7YGcon.js → pi-tools.policy-DaB-Ff9f.js} +5 -5
- package/dist/{plugin-auto-enable-CIeegxhY.js → plugin-auto-enable-DOlffoVt.js} +3 -3
- package/dist/{plugin-registry-D8JSGXQX.js → plugin-registry-DfKKSRKU.js} +3 -3
- package/dist/plugin-sdk/signal.js +2 -2
- package/dist/{plugins-TLur5wHC.js → plugins-DaN4Jp7R.js} +2 -2
- package/dist/{plugins-4Rj4OjLY.js → plugins-Db7ietWI.js} +6 -6
- package/dist/{plugins-cli-e8svgZ6i.js → plugins-cli-540srne6.js} +82 -82
- package/dist/{ports-CfTWPxj9.js → ports-B6f6PDVD.js} +2 -2
- package/dist/{ports-BE9ZTYml.js → ports-DX1Cxj7W.js} +1 -1
- package/dist/{program-context-DNYbQrvx.js → program-context-iEkoyF3D.js} +41 -41
- package/dist/{prompt-select-styled-B7A4T4-F.js → prompt-select-styled-C1MS6ea1.js} +40 -40
- package/dist/{provider-auth-helpers-DolkcfyF.js → provider-auth-helpers-BeZKOpzW.js} +5 -5
- package/dist/{proxy-env-DlmzDx8x.js → proxy-env-BsvKbW0s.js} +1 -1
- package/dist/{proxy-env-hdF2jCzB.js → proxy-env-R4DbTLy-.js} +1 -1
- package/dist/{proxy-fetch-B2pEfjbR.js → proxy-fetch-NaitUPpM.js} +1 -1
- package/dist/{push-apns-COJt9ulg.js → push-apns-wRpQOiqI.js} +5 -5
- package/dist/{pw-ai-DNMjFMqH.js → pw-ai-8q0CBRVs.js} +12 -12
- package/dist/{pw-ai-CICkGw_S.js → pw-ai-DP_aLfwB.js} +18 -18
- package/dist/{qmd-manager-BtIKUaO9.js → qmd-manager-CPCa-ir7.js} +9 -9
- package/dist/{qmd-manager-CT6j2ntm.js → qmd-manager-DP6UdQoL.js} +20 -20
- package/dist/{qr-cli-CKPDy5Oq.js → qr-cli-7lXeTSek.js} +2 -2
- package/dist/{query-expansion-CX-1fS52.js → query-expansion-DudnoboQ.js} +4 -4
- package/dist/{query-expansion-DmxOigqX.js → query-expansion-bOaotSTR.js} +12 -12
- package/dist/{redact-COik8ET1.js → redact-dr1R5JOp.js} +1 -1
- package/dist/{redact-snapshot-C6NRnnHx.js → redact-snapshot-D6W9dz8Q.js} +1 -1
- package/dist/{register.agent-D4BrsIbk.js → register.agent-Bjkfci3x.js} +97 -97
- package/dist/register.configure-BEkx9CQc.js +164 -0
- package/dist/{register.maintenance-x2-poSUG.js → register.maintenance-ErXA_uuU.js} +93 -93
- package/dist/{register.message-NeUR5N0O.js → register.message-vHhFsp94.js} +73 -73
- package/dist/{register.onboard-Cdh-N4A9.js → register.onboard-BgvfFczx.js} +18 -18
- package/dist/{register.setup-B3ADFeTG.js → register.setup-Bel3kQD6.js} +21 -21
- package/dist/{register.status-health-sessions-zRCJ2e-L.js → register.status-health-sessions-BEhwEKZV.js} +86 -86
- package/dist/{reply-BFrmGuXU.js → reply-9D8ZuOqr.js} +149 -149
- package/dist/{rpc-DUJUbW2t.js → rpc-BSqhmmbX.js} +1 -1
- package/dist/{run-with-concurrency-BgYfgkXT.js → run-with-concurrency-BCZ7R9BC.js} +3 -3
- package/dist/{runtime-DTxtPm0I.js → runtime-BHbS8ZHw.js} +3 -3
- package/dist/{runtime-config-collectors-BEvlZaJw.js → runtime-config-collectors-CXxR70dG.js} +1 -1
- package/dist/{runtime-whatsapp-login.runtime-DLNWSVqX.js → runtime-whatsapp-login.runtime-BkF8zMbl.js} +7 -7
- package/dist/runtime-whatsapp-login.runtime-aIlzOHlT.js +13 -0
- package/dist/runtime-whatsapp-outbound.runtime-CGu5VedV.js +22 -0
- package/dist/runtime-whatsapp-outbound.runtime-CdzmGvC6.js +32 -0
- package/dist/{sandbox-C0HLb5d5.js → sandbox-HvaJFfqL.js} +18 -18
- package/dist/{sandbox-cli-CHpGeoro.js → sandbox-cli-Cyu9YZx0.js} +25 -25
- package/dist/{secrets-cli-DgQQmw65.js → secrets-cli-B-aLO0SY.js} +11 -11
- package/dist/{security-cli-W-7xXDn1.js → security-cli-DZTjYQ-D.js} +42 -42
- package/dist/{send-tsYgRPrs.js → send-7ekhdACO.js} +5 -5
- package/dist/{send-6lz6rNVP.js → send-B8-kMQAU.js} +6 -6
- package/dist/{send-L7gRiwyd.js → send-Bbp-J8Kj.js} +7 -7
- package/dist/{send-CJrrDXqE.js → send-BcAN5-hD.js} +11 -11
- package/dist/{send-BUFnD0eE.js → send-BlhxqBI9.js} +6 -6
- package/dist/{send-Ddtb8gLT.js → send-C9SevGlM.js} +4 -4
- package/dist/{send-D3BV3zCy.js → send-CVzWMFl1.js} +8 -8
- package/dist/{send-dfu6_rgf.js → send-CYiHbTKT.js} +5 -5
- package/dist/{send-PE6cwoTe.js → send-CgBEye2u.js} +8 -8
- package/dist/{send-BHTiZcH3.js → send-DtePZoqc.js} +14 -14
- package/dist/{server-Bzgq55gk.js → server-ChrqZt3H.js} +20 -20
- package/dist/{server-context-DCpD_bA8.js → server-context-BhpOEoCB.js} +12 -12
- package/dist/{server-lifecycle-B2SzHMkK.js → server-lifecycle-BYHavdLd.js} +2 -2
- package/dist/{server-middleware-C_u_M_FK.js → server-middleware-BzsDWK_f.js} +1 -1
- package/dist/{server-node-events-BS0Yy6SL.js → server-node-events-CN7o3YoN.js} +73 -73
- package/dist/{service-DhcBUav5.js → service-qQCNqvmY.js} +15 -15
- package/dist/{session-D6FZ4tQ8.js → session-CdQJLohq.js} +1 -1
- package/dist/{session-D8ImowSs.js → session-iX48XFNm.js} +4 -4
- package/dist/{sessions-CRTJuMXp.js → sessions-Fm2Lx117.js} +15 -15
- package/dist/{shared-DOUEV_Eq.js → shared-26KZSqMI.js} +1 -1
- package/dist/{shared-BXXG3vT8.js → shared-CWdEWtsZ.js} +3 -3
- package/dist/{skill-commands-DNqJ-kwn.js → skill-commands-Cz2a7ACn.js} +5 -5
- package/dist/{skill-commands-BgzZkiJz.js → skill-commands-De4NUpNz.js} +5 -5
- package/dist/{skill-scanner-DcrwF2Fr.js → skill-scanner-BtrQE0gO.js} +6 -6
- package/dist/{skills-7ODkHQYp.js → skills-BMm1WxE4.js} +7 -7
- package/dist/{skills-4CjDh8J_.js → skills-Sy3onNq_.js} +3 -3
- package/dist/{skills-cli-CRB7e30Z.js → skills-cli-DiN4xbFz.js} +5 -5
- package/dist/{skills-install-DOKJADrz.js → skills-install-DksQkSIq.js} +6 -6
- package/dist/{skills-status-BWqCvt0g.js → skills-status-BZptMdLx.js} +1 -1
- package/dist/{slash-commands.runtime-DSjg6jg8.js → slash-commands.runtime-Becs7mLt.js} +11 -11
- package/dist/slash-commands.runtime-CJKEsgMq.js +16 -0
- package/dist/slash-dispatch.runtime-BGHMR1xK.js +113 -0
- package/dist/slash-dispatch.runtime-CtNSwxD_.js +56 -0
- package/dist/{slash-skill-commands.runtime-DwvIfTev.js → slash-skill-commands.runtime-BqcgqTMM.js} +15 -15
- package/dist/slash-skill-commands.runtime-CyWB-fxa.js +20 -0
- package/dist/{status-BiX1kbtY.js → status-CaG5OT-N.js} +26 -26
- package/dist/{status.update-QMbtfb38.js → status.update-DR8lt70f.js} +2 -2
- package/dist/{store-s4dlu9ZQ.js → store-B7o63XvV.js} +5 -5
- package/dist/{store-D89wDcz9.js → store-C4KN_vyB.js} +2 -2
- package/dist/subagent-registry-runtime-0qZtQB7_.js +113 -0
- package/dist/subagent-registry-runtime-B-eWhjuJ.js +56 -0
- package/dist/{subsystem-B45WV3qB.js → subsystem-CfiBhK1x.js} +2 -2
- package/dist/{system-cli-Dz6Xu0cZ.js → system-cli-CpyvQedP.js} +9 -9
- package/dist/{system-run-command-MvTaWm_5.js → system-run-command-B7_IasTx.js} +1 -1
- package/dist/{systemd-V-rr1rHU.js → systemd-DotMzkho.js} +9 -9
- package/dist/{systemd-hints-BanLoKAv.js → systemd-hints-B1n_Cmj7.js} +6 -6
- package/dist/{systemd-linger-CWkk4GBp.js → systemd-linger-la785pXY.js} +1 -1
- package/dist/{tables-D6c57Lrs.js → tables-B3d05drH.js} +1 -1
- package/dist/{tables-mE4cJBN2.js → tables-CigNhQQb.js} +1 -1
- package/dist/{tailnet-DuRcvzVE.js → tailnet-CSHZafwU.js} +1 -1
- package/dist/{target-errors-mnlwhAjP.js → target-errors-BKqS1xYB.js} +2 -2
- package/dist/{target-errors-u7pjywIy.js → target-errors-CCgPtzPv.js} +4 -4
- package/dist/{thinking-BeGmb5k6.js → thinking-Aiu2E6zQ.js} +7 -7
- package/dist/{tokens-q32vI39c.js → tokens-Bv4xwkJq.js} +1 -1
- package/dist/{tool-images-6ceVT7-i.js → tool-images-Bhog1Yix.js} +1 -1
- package/dist/{tool-images-RZdHiZcG.js → tool-images-DDZQXj1u.js} +2 -2
- package/dist/{tui-DIVVG-0Y.js → tui-DoROfmXy.js} +6 -6
- package/dist/{tui-cli-DdB0uJii.js → tui-cli-Axgy0FU4.js} +32 -32
- package/dist/{update-cli-B0ekEE4A.js → update-cli-Dudao0uZ.js} +102 -102
- package/dist/{update-runner-gVTOOfSH.js → update-runner-B_J4-cY6.js} +16 -16
- package/dist/{update-C4nonzOq.js → update-xgJWkTh1.js} +3 -3
- package/dist/web-QKn04c6k.js +117 -0
- package/dist/{web-Btj-e8kN.js → web-oDnarJOu.js} +53 -53
- package/dist/{webhooks-cli-D2omOmfe.js → webhooks-cli-HRhGQtAq.js} +6 -6
- package/dist/{whatsapp-actions-BHbJJyqw.js → whatsapp-actions-CMWnciED.js} +19 -19
- package/dist/{whatsapp-actions-Ds8L0msY.js → whatsapp-actions-s6qkgp-7.js} +17 -17
- package/dist/{with-timeout-DW6XbMi-.js → with-timeout-OltBBBXv.js} +3 -3
- package/dist/{workspace-B7XBLNce.js → workspace-B3uGN7Xe.js} +1 -1
- package/dist/{workspace-U-DyR64O.js → workspace-DShAPs4g.js} +2 -2
- package/dist/{workspace-dirs-Ds-g-s99.js → workspace-dirs-0V-76Wmq.js} +1 -1
- package/dist/{ws-BNW54x9_.js → ws-BrCPoV7j.js} +2 -2
- package/dist/{wsl-CgxzAzRe.js → wsl-wYxPJ8EO.js} +2 -2
- package/package.json +5 -2
- package/src/canvas-host/a2ui/a2ui.bundle.js +13193 -0
- package/dist/deliver-runtime-BFs7iAZF.js +0 -36
- package/dist/deliver-runtime-DGrrnFpY.js +0 -61
- package/dist/deps-send-discord.runtime-DAPWkSXf.js +0 -36
- package/dist/deps-send-discord.runtime-DZUccI6Z.js +0 -26
- package/dist/deps-send-imessage.runtime-CF3OpoqY.js +0 -25
- package/dist/deps-send-imessage.runtime-DWqR6W7h.js +0 -35
- package/dist/deps-send-signal.runtime-Ce60L81Z.js +0 -34
- package/dist/deps-send-signal.runtime-Cw4-ozeO.js +0 -24
- package/dist/deps-send-slack.runtime-BDsDhS1P.js +0 -22
- package/dist/deps-send-slack.runtime-s0pqdhHR.js +0 -32
- package/dist/deps-send-telegram.runtime-D_4xVasO.js +0 -27
- package/dist/deps-send-whatsapp.runtime-DK8jqd14.js +0 -60
- package/dist/deps-send-whatsapp.runtime-bRJ5Zed1.js +0 -118
- package/dist/image-runtime-BcAK3n8a.js +0 -29
- package/dist/image-runtime-D9iVXh4M.js +0 -55
- package/dist/manager-runtime-FO1Sx3W8.js +0 -18
- package/dist/pi-model-discovery-runtime-BeY4EUPp.js +0 -11
- package/dist/register.configure-B8qyHllb.js +0 -164
- package/dist/runtime-whatsapp-login.runtime-DUb55byQ.js +0 -13
- package/dist/runtime-whatsapp-outbound.runtime-Bii_xSfI.js +0 -22
- package/dist/runtime-whatsapp-outbound.runtime-bK_Rub3q.js +0 -32
- package/dist/slash-commands.runtime-CVw6566g.js +0 -16
- package/dist/slash-dispatch.runtime-B9Ygtzi4.js +0 -56
- package/dist/slash-dispatch.runtime-DcGK4xow.js +0 -113
- package/dist/slash-skill-commands.runtime-DxZ4z5h6.js +0 -20
- package/dist/subagent-registry-runtime-D5KDyK6C.js +0 -113
- package/dist/subagent-registry-runtime-DL1Wv7nA.js +0 -56
- package/dist/web-C0Ki9gxL.js +0 -117
|
@@ -6,7 +6,7 @@ import { _ as normalizeAccountId, g as DEFAULT_ACCOUNT_ID, v as normalizeOptiona
|
|
|
6
6
|
import { t as formatCliCommand } from "./command-format-Gp1OUMPH.js";
|
|
7
7
|
import fs from "node:fs";
|
|
8
8
|
import path from "node:path";
|
|
9
|
-
import
|
|
9
|
+
import fsPromises 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 fsPromises.access(resolvedAuthDir);
|
|
109
109
|
} catch {
|
|
110
110
|
return false;
|
|
111
111
|
}
|
|
112
112
|
try {
|
|
113
|
-
const stats = await
|
|
113
|
+
const stats = await fsPromises.stat(credsPath);
|
|
114
114
|
if (!stats.isFile() || stats.size <= 1) return false;
|
|
115
|
-
const raw = await
|
|
115
|
+
const raw = await fsPromises.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 fsPromises.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 fsPromises.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 fsPromises.rm(resolvedAuthDir, {
|
|
145
145
|
recursive: true,
|
|
146
146
|
force: true
|
|
147
147
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { G as normalizeAccountId } from "./workspace-
|
|
2
|
-
import { g as createAccountListHelpers, h as resolveAccountEntry } from "./accounts-
|
|
1
|
+
import { G as normalizeAccountId } from "./workspace-DShAPs4g.js";
|
|
2
|
+
import { g as createAccountListHelpers, h as resolveAccountEntry } from "./accounts-DBSLesVQ.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-CIXZm7v4.js";
|
|
2
|
-
import { v as createAccountListHelpers, y as resolveAccountEntry } from "./accounts-
|
|
2
|
+
import { v as createAccountListHelpers, y as resolveAccountEntry } from "./accounts-BPt-s1cW.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-CIXZm7v4.js";
|
|
2
|
-
import { v as createAccountListHelpers, y as resolveAccountEntry } from "./accounts-
|
|
2
|
+
import { v as createAccountListHelpers, y as resolveAccountEntry } from "./accounts-BPt-s1cW.js";
|
|
3
3
|
|
|
4
4
|
//#region src/signal/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("signal");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { o as resolveOAuthDir } from "./paths-Cvc9EM8Y.js";
|
|
2
|
-
import { i as defaultRuntime, l as info, m as success, y as getChildLogger } from "./subsystem-
|
|
3
|
-
import { G as normalizeAccountId, K as normalizeOptionalAccountId, W as DEFAULT_ACCOUNT_ID } from "./workspace-
|
|
4
|
-
import { m as jidToE164, y as resolveUserPath } from "./logger-
|
|
5
|
-
import { lr as formatCliCommand } from "./model-selection-
|
|
2
|
+
import { i as defaultRuntime, l as info, m as success, y as getChildLogger } from "./subsystem-CfiBhK1x.js";
|
|
3
|
+
import { G as normalizeAccountId, K as normalizeOptionalAccountId, W as DEFAULT_ACCOUNT_ID } from "./workspace-DShAPs4g.js";
|
|
4
|
+
import { m as jidToE164, y as resolveUserPath } from "./logger-BmVht969.js";
|
|
5
|
+
import { lr as formatCliCommand } from "./model-selection-DXZ1P6pQ.js";
|
|
6
6
|
import fs from "node:fs/promises";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import fs$1 from "node:fs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { G as normalizeAccountId } from "./workspace-
|
|
2
|
-
import { g as createAccountListHelpers, h as resolveAccountEntry } from "./accounts-
|
|
1
|
+
import { G as normalizeAccountId } from "./workspace-DShAPs4g.js";
|
|
2
|
+
import { g as createAccountListHelpers, h as resolveAccountEntry } from "./accounts-DBSLesVQ.js";
|
|
3
3
|
|
|
4
4
|
//#region src/signal/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("signal");
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import "./paths-BBP4yd-2.js";
|
|
2
2
|
import { p as theme } from "./globals-BawKHR8h.js";
|
|
3
3
|
import { S as shortenHomePath, y as resolveUserPath } from "./utils-CokqDAE4.js";
|
|
4
|
-
import "./agent-scope-
|
|
4
|
+
import "./agent-scope-CNJUPFcR.js";
|
|
5
5
|
import { d as defaultRuntime } from "./subsystem-BiaB_3Ei.js";
|
|
6
|
-
import "./openclaw-root-
|
|
6
|
+
import "./openclaw-root-DG6I1Pl4.js";
|
|
7
7
|
import "./logger-fgPrvtjf.js";
|
|
8
8
|
import "./exec-Cu2obwh9.js";
|
|
9
|
-
import { $t as loadConfig } from "./model-selection-
|
|
9
|
+
import { $t as loadConfig } from "./model-selection-DZM1M4yx.js";
|
|
10
10
|
import "./registry-CTtrVpZB.js";
|
|
11
11
|
import "./github-copilot-token-b6kJVrW-.js";
|
|
12
12
|
import "./boolean-BsqeuxE6.js";
|
|
13
13
|
import "./env-CNF75H3c.js";
|
|
14
14
|
import "./host-env-security-DkAVVuaw.js";
|
|
15
15
|
import { r as VERSION } from "./env-vars-ausEv-bN.js";
|
|
16
|
-
import "./manifest-registry-
|
|
16
|
+
import "./manifest-registry-QfHOpQrg.js";
|
|
17
17
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-S2KEwruz.js";
|
|
18
18
|
import { r as isKnownCoreToolId } from "./tool-catalog-IBWCA-2a.js";
|
|
19
|
-
import "./tailnet-
|
|
20
|
-
import "./ws-
|
|
19
|
+
import "./tailnet-CSHZafwU.js";
|
|
20
|
+
import "./ws-BrCPoV7j.js";
|
|
21
21
|
import { n as resolveWindowsSpawnProgram, t as materializeWindowsSpawnProgram } from "./windows-spawn-Bo-pPi83.js";
|
|
22
|
-
import { t as GatewayClient } from "./client-
|
|
23
|
-
import { s as resolveGatewayCredentialsWithSecretInputs, t as buildGatewayConnectionDetails } from "./call-
|
|
22
|
+
import { t as GatewayClient } from "./client-BEwDNigg.js";
|
|
23
|
+
import { s as resolveGatewayCredentialsWithSecretInputs, t as buildGatewayConnectionDetails } from "./call-eK-5ynwM.js";
|
|
24
24
|
import "./pairing-token-9FncM-ur.js";
|
|
25
25
|
import { t as formatDocsLink } from "./links-3lq_eIAs.js";
|
|
26
26
|
import { t as isMainModule } from "./is-main-D5LnS2LP.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as DEFAULT_ACCOUNT_ID } from "./workspace-
|
|
2
|
-
import { lr as formatCliCommand } from "./model-selection-
|
|
1
|
+
import { W as DEFAULT_ACCOUNT_ID } from "./workspace-DShAPs4g.js";
|
|
2
|
+
import { lr as formatCliCommand } from "./model-selection-DXZ1P6pQ.js";
|
|
3
3
|
import crypto from "node:crypto";
|
|
4
4
|
|
|
5
5
|
//#region src/logging/redact-identifier.ts
|
|
@@ -2,13 +2,13 @@ import { g as resolveStateDir, y as resolveRequiredHomeDir } from "./paths-BBP4y
|
|
|
2
2
|
import { h as pathExists, y as resolveUserPath } from "./utils-CokqDAE4.js";
|
|
3
3
|
import { t as createSubsystemLogger } from "./subsystem-BiaB_3Ei.js";
|
|
4
4
|
import { E as parseAgentSessionKey, T as isSubagentSessionKey, c as normalizeAgentId, t as DEFAULT_AGENT_ID, u as resolveAgentIdFromSessionKey, w as isCronSessionKey } from "./session-key-CIXZm7v4.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-DG6I1Pl4.js";
|
|
6
6
|
import { t as runCommandWithTimeout } from "./exec-Cu2obwh9.js";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
8
8
|
import fs from "node:fs";
|
|
9
9
|
import os from "node:os";
|
|
10
10
|
import path from "node:path";
|
|
11
|
-
import
|
|
11
|
+
import fsPromises 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 fsPromises.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 fsPromises.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 fsPromises.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 fsPromises.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 fsPromises.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 fsPromises.writeFile(tmpPath, payload, { encoding: "utf-8" });
|
|
223
|
+
await fsPromises.rename(tmpPath, statePath);
|
|
224
224
|
} catch (err) {
|
|
225
|
-
await
|
|
225
|
+
await fsPromises.unlink(tmpPath).catch(() => {});
|
|
226
226
|
throw err;
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
async function hasGitRepo(dir) {
|
|
230
230
|
try {
|
|
231
|
-
await
|
|
231
|
+
await fsPromises.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 fsPromises.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 fsPromises.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([fsPromises.readFile(identityPath, "utf-8"), fsPromises.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 fsPromises.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 fsPromises.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 fsPromises.realpath(entry.filePath);
|
|
374
374
|
} catch {}
|
|
375
375
|
if (seen.has(key)) continue;
|
|
376
376
|
seen.add(key);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { nn as identityHasValues, rn as loadAgentIdentityFromWorkspace } from "./reply-
|
|
2
|
-
import { a as resolveAgentDir, d as resolveDefaultAgentId, n as listAgentEntries, u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
1
|
+
import { nn as identityHasValues, rn as loadAgentIdentityFromWorkspace } from "./reply-9D8ZuOqr.js";
|
|
2
|
+
import { a as resolveAgentDir, d as resolveDefaultAgentId, n as listAgentEntries, u as resolveAgentWorkspaceDir } from "./agent-scope-CNJUPFcR.js";
|
|
3
3
|
import { c as normalizeAgentId } from "./session-key-CIXZm7v4.js";
|
|
4
4
|
|
|
5
5
|
//#region src/commands/agents.config.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as normalizeProviderId } from "./model-selection-
|
|
2
|
-
import { r as formatErrorMessage } from "./errors-
|
|
1
|
+
import { c as normalizeProviderId } from "./model-selection-DXZ1P6pQ.js";
|
|
2
|
+
import { r as formatErrorMessage } from "./errors-Bzq31uR7.js";
|
|
3
3
|
|
|
4
4
|
//#region src/infra/gemini-auth.ts
|
|
5
5
|
/**
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import "./run-with-concurrency-
|
|
1
|
+
import "./run-with-concurrency-BCZ7R9BC.js";
|
|
2
2
|
import "./paths-Cvc9EM8Y.js";
|
|
3
|
-
import { p as shouldLogVerbose, u as logVerbose } from "./subsystem-
|
|
4
|
-
import "./workspace-
|
|
5
|
-
import "./logger-
|
|
6
|
-
import "./model-selection-
|
|
3
|
+
import { p as shouldLogVerbose, u as logVerbose } from "./subsystem-CfiBhK1x.js";
|
|
4
|
+
import "./workspace-DShAPs4g.js";
|
|
5
|
+
import "./logger-BmVht969.js";
|
|
6
|
+
import "./model-selection-DXZ1P6pQ.js";
|
|
7
7
|
import "./github-copilot-token-BDioPmd6.js";
|
|
8
|
-
import "./legacy-names-
|
|
9
|
-
import "./thinking-
|
|
10
|
-
import "./plugins-
|
|
11
|
-
import "./accounts-
|
|
12
|
-
import "./accounts-
|
|
13
|
-
import "./image-ops-
|
|
14
|
-
import "./pi-embedded-helpers-
|
|
15
|
-
import "./chrome-
|
|
16
|
-
import "./frontmatter-
|
|
17
|
-
import "./skills-
|
|
18
|
-
import "./path-alias-guards-
|
|
19
|
-
import "./redact-
|
|
20
|
-
import "./errors-
|
|
21
|
-
import "./fs-safe-
|
|
22
|
-
import "./proxy-env-
|
|
23
|
-
import "./store-
|
|
24
|
-
import "./accounts-
|
|
25
|
-
import "./paths-
|
|
26
|
-
import "./tool-images-
|
|
27
|
-
import "./image-
|
|
28
|
-
import { g as isAudioAttachment, i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, t as runAudioTranscription } from "./audio-transcription-runner-
|
|
29
|
-
import "./fetch-
|
|
30
|
-
import "./fetch-guard-
|
|
31
|
-
import "./api-key-rotation-
|
|
32
|
-
import "./proxy-fetch-
|
|
8
|
+
import "./legacy-names-DHL97DjK.js";
|
|
9
|
+
import "./thinking-Aiu2E6zQ.js";
|
|
10
|
+
import "./plugins-Db7ietWI.js";
|
|
11
|
+
import "./accounts-DBSLesVQ.js";
|
|
12
|
+
import "./accounts-WYUGa5U3.js";
|
|
13
|
+
import "./image-ops-NlRpKwDZ.js";
|
|
14
|
+
import "./pi-embedded-helpers-Dq_3Nroj.js";
|
|
15
|
+
import "./chrome-BLiGH0cb.js";
|
|
16
|
+
import "./frontmatter-Cg87VA6v.js";
|
|
17
|
+
import "./skills-BMm1WxE4.js";
|
|
18
|
+
import "./path-alias-guards-DLRk35Au.js";
|
|
19
|
+
import "./redact-dr1R5JOp.js";
|
|
20
|
+
import "./errors-Bzq31uR7.js";
|
|
21
|
+
import "./fs-safe-BJHz1v5g.js";
|
|
22
|
+
import "./proxy-env-BsvKbW0s.js";
|
|
23
|
+
import "./store-C4KN_vyB.js";
|
|
24
|
+
import "./accounts-C03uCDCo.js";
|
|
25
|
+
import "./paths-C6U18E3c.js";
|
|
26
|
+
import "./tool-images-DDZQXj1u.js";
|
|
27
|
+
import "./image-Dvpe9X28.js";
|
|
28
|
+
import { g as isAudioAttachment, i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, t as runAudioTranscription } from "./audio-transcription-runner-CY9DQOHn.js";
|
|
29
|
+
import "./fetch-DLMnQENe.js";
|
|
30
|
+
import "./fetch-guard-CTpL4P0R.js";
|
|
31
|
+
import "./api-key-rotation-CIliF_q2.js";
|
|
32
|
+
import "./proxy-fetch-NaitUPpM.js";
|
|
33
33
|
|
|
34
34
|
//#region src/media-understanding/audio-preflight.ts
|
|
35
35
|
/**
|
|
@@ -2,60 +2,60 @@ import "./paths-BBP4yd-2.js";
|
|
|
2
2
|
import { a as logVerbose, c as shouldLogVerbose } from "./globals-BawKHR8h.js";
|
|
3
3
|
import "./utils-CokqDAE4.js";
|
|
4
4
|
import "./thinking-44rmAw5o.js";
|
|
5
|
-
import "./agent-scope-
|
|
5
|
+
import "./agent-scope-CNJUPFcR.js";
|
|
6
6
|
import "./subsystem-BiaB_3Ei.js";
|
|
7
|
-
import "./openclaw-root-
|
|
7
|
+
import "./openclaw-root-DG6I1Pl4.js";
|
|
8
8
|
import "./logger-fgPrvtjf.js";
|
|
9
9
|
import "./exec-Cu2obwh9.js";
|
|
10
|
-
import "./model-selection-
|
|
10
|
+
import "./model-selection-DZM1M4yx.js";
|
|
11
11
|
import "./registry-CTtrVpZB.js";
|
|
12
12
|
import "./github-copilot-token-b6kJVrW-.js";
|
|
13
13
|
import "./boolean-BsqeuxE6.js";
|
|
14
14
|
import "./env-CNF75H3c.js";
|
|
15
15
|
import "./host-env-security-DkAVVuaw.js";
|
|
16
16
|
import "./env-vars-ausEv-bN.js";
|
|
17
|
-
import "./manifest-registry-
|
|
18
|
-
import "./dock-
|
|
17
|
+
import "./manifest-registry-QfHOpQrg.js";
|
|
18
|
+
import "./dock-BR4hdehX.js";
|
|
19
19
|
import "./message-channel-S2KEwruz.js";
|
|
20
|
-
import "./plugins-
|
|
21
|
-
import "./sessions-
|
|
22
|
-
import { d as isAudioAttachment, i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, t as runAudioTranscription } from "./audio-transcription-runner-
|
|
23
|
-
import "./image-
|
|
24
|
-
import "./models-config-
|
|
25
|
-
import "./pi-embedded-helpers-
|
|
26
|
-
import "./sandbox-
|
|
20
|
+
import "./plugins-DaN4Jp7R.js";
|
|
21
|
+
import "./sessions-Fm2Lx117.js";
|
|
22
|
+
import { d as isAudioAttachment, i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, t as runAudioTranscription } from "./audio-transcription-runner-sLK1yiya.js";
|
|
23
|
+
import "./image-CDKYPK1-.js";
|
|
24
|
+
import "./models-config-BLJwyO9D.js";
|
|
25
|
+
import "./pi-embedded-helpers-CuG0ngBL.js";
|
|
26
|
+
import "./sandbox-HvaJFfqL.js";
|
|
27
27
|
import "./tool-catalog-IBWCA-2a.js";
|
|
28
|
-
import "./chrome-
|
|
28
|
+
import "./chrome-CQR5U4Oc.js";
|
|
29
29
|
import "./tailscale-OabIsy4o.js";
|
|
30
|
-
import "./tailnet-
|
|
31
|
-
import "./ws-
|
|
32
|
-
import "./auth-
|
|
33
|
-
import "./server-context-
|
|
30
|
+
import "./tailnet-CSHZafwU.js";
|
|
31
|
+
import "./ws-BrCPoV7j.js";
|
|
32
|
+
import "./auth-C_LDvTxu.js";
|
|
33
|
+
import "./server-context-BhpOEoCB.js";
|
|
34
34
|
import "./frontmatter-CPpXT7mj.js";
|
|
35
|
-
import "./skills-
|
|
36
|
-
import "./path-alias-guards-
|
|
37
|
-
import "./paths-
|
|
35
|
+
import "./skills-Sy3onNq_.js";
|
|
36
|
+
import "./path-alias-guards-CY88Htx_.js";
|
|
37
|
+
import "./paths-C48pWRFv.js";
|
|
38
38
|
import "./redact-sDsI6gV3.js";
|
|
39
39
|
import "./errors-BkPBAjci.js";
|
|
40
|
-
import "./fs-safe-
|
|
41
|
-
import "./proxy-env-
|
|
42
|
-
import "./image-ops-
|
|
43
|
-
import "./store-
|
|
44
|
-
import "./ports-
|
|
40
|
+
import "./fs-safe-D_adQJX4.js";
|
|
41
|
+
import "./proxy-env-R4DbTLy-.js";
|
|
42
|
+
import "./image-ops-BTwvusXV.js";
|
|
43
|
+
import "./store-B7o63XvV.js";
|
|
44
|
+
import "./ports-B6f6PDVD.js";
|
|
45
45
|
import "./trash--gw0enoo.js";
|
|
46
|
-
import "./server-middleware-
|
|
47
|
-
import "./accounts-
|
|
48
|
-
import "./accounts-
|
|
46
|
+
import "./server-middleware-BzsDWK_f.js";
|
|
47
|
+
import "./accounts-BPt-s1cW.js";
|
|
48
|
+
import "./accounts-CC3alHma.js";
|
|
49
49
|
import "./logging-D3KTM1pH.js";
|
|
50
|
-
import "./accounts-
|
|
50
|
+
import "./accounts-CNIODbBr.js";
|
|
51
51
|
import "./paths-D24h0XR4.js";
|
|
52
52
|
import "./chat-envelope-DL2R5pK6.js";
|
|
53
|
-
import "./tool-images-
|
|
53
|
+
import "./tool-images-Bhog1Yix.js";
|
|
54
54
|
import "./tool-display-D1uTM_Dm.js";
|
|
55
|
-
import "./fetch-guard-
|
|
56
|
-
import "./api-key-rotation-
|
|
57
|
-
import "./local-roots-
|
|
58
|
-
import "./model-catalog-
|
|
55
|
+
import "./fetch-guard-Ca0W-yZr.js";
|
|
56
|
+
import "./api-key-rotation-PzGuOQm_.js";
|
|
57
|
+
import "./local-roots-_noFNwvo.js";
|
|
58
|
+
import "./model-catalog-BH55qLYK.js";
|
|
59
59
|
import "./proxy-fetch-DVvCU_Cg.js";
|
|
60
60
|
|
|
61
61
|
//#region src/media-understanding/audio-preflight.ts
|
package/dist/{audio-transcription-runner-gLFfz8fr.js → audio-transcription-runner-CY9DQOHn.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { g as resolveAgentModelPrimaryValue, h as resolveAgentModelFallbackValues } from "./run-with-concurrency-
|
|
2
|
-
import { p as shouldLogVerbose, t as createSubsystemLogger, u as logVerbose, w as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
3
|
-
import { _ as runExec } from "./workspace-
|
|
4
|
-
import { M as resolveApiKeyForProvider, X as loadConfig, at as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, c as normalizeProviderId, ct as resolveIMessageAttachmentRoots, g as normalizeGoogleModelId, ir as resolveOpenClawAgentDir, j as requireApiKey, ot as isInboundPathAllowed, st as mergeInboundPathRoots } from "./model-selection-
|
|
5
|
-
import { _ as normalizeChatType } from "./plugins-
|
|
6
|
-
import { E as kindFromMime, S as getFileExtension, b as detectMime, w as isAudioFileName } from "./image-ops-
|
|
7
|
-
import { t as describeImageWithModel, w as ensureOpenClawModelsJson } from "./image-
|
|
8
|
-
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia, t as MediaFetchError } from "./fetch-
|
|
1
|
+
import { g as resolveAgentModelPrimaryValue, h as resolveAgentModelFallbackValues } from "./run-with-concurrency-BCZ7R9BC.js";
|
|
2
|
+
import { p as shouldLogVerbose, t as createSubsystemLogger, u as logVerbose, w as resolvePreferredOpenClawTmpDir } from "./subsystem-CfiBhK1x.js";
|
|
3
|
+
import { _ as runExec } from "./workspace-DShAPs4g.js";
|
|
4
|
+
import { M as resolveApiKeyForProvider, X as loadConfig, at as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, c as normalizeProviderId, ct as resolveIMessageAttachmentRoots, g as normalizeGoogleModelId, ir as resolveOpenClawAgentDir, j as requireApiKey, ot as isInboundPathAllowed, st as mergeInboundPathRoots } from "./model-selection-DXZ1P6pQ.js";
|
|
5
|
+
import { _ as normalizeChatType } from "./plugins-Db7ietWI.js";
|
|
6
|
+
import { E as kindFromMime, S as getFileExtension, b as detectMime, w as isAudioFileName } from "./image-ops-NlRpKwDZ.js";
|
|
7
|
+
import { t as describeImageWithModel, w as ensureOpenClawModelsJson } from "./image-Dvpe9X28.js";
|
|
8
|
+
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia, t as MediaFetchError } from "./fetch-DLMnQENe.js";
|
|
9
9
|
import { n as fetchWithTimeout } from "./fetch-timeout-Wgx3OXYj.js";
|
|
10
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
11
|
-
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-
|
|
12
|
-
import { n as resolveProxyFetchFromEnv } from "./proxy-fetch-
|
|
10
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-CTpL4P0R.js";
|
|
11
|
+
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-CIliF_q2.js";
|
|
12
|
+
import { n as resolveProxyFetchFromEnv } from "./proxy-fetch-NaitUPpM.js";
|
|
13
13
|
import fs from "node:fs/promises";
|
|
14
14
|
import os from "node:os";
|
|
15
15
|
import path from "node:path";
|
|
@@ -22,7 +22,7 @@ import crypto from "node:crypto";
|
|
|
22
22
|
const log = createSubsystemLogger("model-catalog");
|
|
23
23
|
let modelCatalogPromise = null;
|
|
24
24
|
let hasLoggedModelCatalogError = false;
|
|
25
|
-
const defaultImportPiSdk = () => import("./pi-model-discovery-
|
|
25
|
+
const defaultImportPiSdk = () => import("./pi-model-discovery-DUCVKN7C.js").then((n) => n.r);
|
|
26
26
|
let importPiSdk = defaultImportPiSdk;
|
|
27
27
|
const CODEX_PROVIDER = "openai-codex";
|
|
28
28
|
const OPENAI_CODEX_GPT53_MODEL_ID = "gpt-5.3-codex";
|
package/dist/{audio-transcription-runner-B9-J1DUd.js → audio-transcription-runner-sLK1yiya.js}
RENAMED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { a as logVerbose, c as shouldLogVerbose, k as resolvePreferredOpenClawTmpDir } from "./globals-BawKHR8h.js";
|
|
2
|
-
import { M as resolveAgentModelFallbackValues, N as resolveAgentModelPrimaryValue } from "./agent-scope-
|
|
2
|
+
import { M as resolveAgentModelFallbackValues, N as resolveAgentModelPrimaryValue } from "./agent-scope-CNJUPFcR.js";
|
|
3
3
|
import { n as runExec } from "./exec-Cu2obwh9.js";
|
|
4
|
-
import { A as normalizeGoogleModelId, d as normalizeProviderId, dn as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, fn as isInboundPathAllowed, mn as resolveIMessageAttachmentRoots, nt as requireApiKey, pn as mergeInboundPathRoots, rt as resolveApiKeyForProvider } from "./model-selection-
|
|
5
|
-
import { j as normalizeChatType } from "./plugins-
|
|
6
|
-
import { t as describeImageWithModel } from "./image-
|
|
4
|
+
import { A as normalizeGoogleModelId, d as normalizeProviderId, dn as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, fn as isInboundPathAllowed, mn as resolveIMessageAttachmentRoots, nt as requireApiKey, pn as mergeInboundPathRoots, rt as resolveApiKeyForProvider } from "./model-selection-DZM1M4yx.js";
|
|
5
|
+
import { j as normalizeChatType } from "./plugins-DaN4Jp7R.js";
|
|
6
|
+
import { t as describeImageWithModel } from "./image-CDKYPK1-.js";
|
|
7
7
|
import { i as formatUncaughtError, n as extractErrorCode, s as readErrorName, t as collectErrorGraphCandidates } from "./errors-BkPBAjci.js";
|
|
8
|
-
import { c as detectMime, f as isAudioFileName, m as kindFromMime, u as getFileExtension } from "./image-ops-
|
|
8
|
+
import { c as detectMime, f as isAudioFileName, m as kindFromMime, u as getFileExtension } from "./image-ops-BTwvusXV.js";
|
|
9
9
|
import { n as fetchWithTimeout } from "./fetch-timeout-BTot-we4.js";
|
|
10
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
11
|
-
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-
|
|
12
|
-
import { i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, r as MediaFetchError } from "./local-roots-
|
|
13
|
-
import { n as loadModelCatalog, r as modelSupportsVision, t as findModelInCatalog } from "./model-catalog-
|
|
10
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-Ca0W-yZr.js";
|
|
11
|
+
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-PzGuOQm_.js";
|
|
12
|
+
import { i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, r as MediaFetchError } from "./local-roots-_noFNwvo.js";
|
|
13
|
+
import { n as loadModelCatalog, r as modelSupportsVision, t as findModelInCatalog } from "./model-catalog-BH55qLYK.js";
|
|
14
14
|
import { n as resolveProxyFetchFromEnv } from "./proxy-fetch-DVvCU_Cg.js";
|
|
15
15
|
import process$1 from "node:process";
|
|
16
16
|
import { fileURLToPath } from "node:url";
|
|
17
17
|
import { constants } from "node:fs";
|
|
18
18
|
import os from "node:os";
|
|
19
19
|
import path from "node:path";
|
|
20
|
-
import
|
|
20
|
+
import fsPromises from "node:fs/promises";
|
|
21
21
|
import crypto from "node:crypto";
|
|
22
22
|
|
|
23
23
|
//#region src/auto-reply/templating.ts
|
|
@@ -971,7 +971,7 @@ var MediaAttachmentCache = class {
|
|
|
971
971
|
const size = await this.ensureLocalStat(entry);
|
|
972
972
|
if (entry.resolvedPath) {
|
|
973
973
|
if (size !== void 0 && size > params.maxBytes) throw new MediaUnderstandingSkipError("maxBytes", `Attachment ${params.attachmentIndex + 1} exceeds maxBytes ${params.maxBytes}`);
|
|
974
|
-
const buffer = await
|
|
974
|
+
const buffer = await fsPromises.readFile(entry.resolvedPath);
|
|
975
975
|
entry.buffer = buffer;
|
|
976
976
|
entry.bufferMime = entry.bufferMime ?? entry.attachment.mime ?? await detectMime({
|
|
977
977
|
buffer,
|
|
@@ -1041,10 +1041,10 @@ var MediaAttachmentCache = class {
|
|
|
1041
1041
|
prefix: "openclaw-media",
|
|
1042
1042
|
extension: path.extname(bufferResult.fileName || "") || ""
|
|
1043
1043
|
});
|
|
1044
|
-
await
|
|
1044
|
+
await fsPromises.writeFile(tmpPath, bufferResult.buffer);
|
|
1045
1045
|
entry.tempPath = tmpPath;
|
|
1046
1046
|
entry.tempCleanup = async () => {
|
|
1047
|
-
await
|
|
1047
|
+
await fsPromises.unlink(tmpPath).catch(() => {});
|
|
1048
1048
|
};
|
|
1049
1049
|
return {
|
|
1050
1050
|
path: tmpPath,
|
|
@@ -1091,12 +1091,12 @@ var MediaAttachmentCache = class {
|
|
|
1091
1091
|
if (entry.statSize !== void 0) return entry.statSize;
|
|
1092
1092
|
try {
|
|
1093
1093
|
const currentPath = entry.resolvedPath;
|
|
1094
|
-
const stat = await
|
|
1094
|
+
const stat = await fsPromises.stat(currentPath);
|
|
1095
1095
|
if (!stat.isFile()) {
|
|
1096
1096
|
entry.resolvedPath = void 0;
|
|
1097
1097
|
return;
|
|
1098
1098
|
}
|
|
1099
|
-
const canonicalPath = await
|
|
1099
|
+
const canonicalPath = await fsPromises.realpath(currentPath).catch(() => currentPath);
|
|
1100
1100
|
if (!isInboundPathAllowed({
|
|
1101
1101
|
filePath: canonicalPath,
|
|
1102
1102
|
roots: await this.getCanonicalLocalPathRoots()
|
|
@@ -1118,7 +1118,7 @@ var MediaAttachmentCache = class {
|
|
|
1118
1118
|
if (this.canonicalLocalPathRoots) return await this.canonicalLocalPathRoots;
|
|
1119
1119
|
this.canonicalLocalPathRoots = (async () => mergeInboundPathRoots(this.localPathRoots, await Promise.all(this.localPathRoots.map(async (root) => {
|
|
1120
1120
|
if (root.includes("*")) return root;
|
|
1121
|
-
return await
|
|
1121
|
+
return await fsPromises.realpath(root).catch(() => root);
|
|
1122
1122
|
}))))();
|
|
1123
1123
|
return await this.canonicalLocalPathRoots;
|
|
1124
1124
|
}
|
|
@@ -1129,7 +1129,7 @@ var MediaAttachmentCache = class {
|
|
|
1129
1129
|
async function fileExists(filePath) {
|
|
1130
1130
|
if (!filePath) return false;
|
|
1131
1131
|
try {
|
|
1132
|
-
await
|
|
1132
|
+
await fsPromises.stat(filePath);
|
|
1133
1133
|
return true;
|
|
1134
1134
|
} catch {
|
|
1135
1135
|
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 fsPromises.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 fsPromises.stat(pathResult.path)).size,
|
|
1550
1550
|
attachmentIndex: params.attachmentIndex
|
|
1551
1551
|
});
|
|
1552
|
-
const outputDir = await
|
|
1552
|
+
const outputDir = await fsPromises.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 fsPromises.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 fsPromises.stat(filePath)).isFile()) return false;
|
|
1631
1631
|
if (process.platform === "win32") return true;
|
|
1632
|
-
await
|
|
1632
|
+
await fsPromises.access(filePath, constants.X_OK);
|
|
1633
1633
|
return true;
|
|
1634
1634
|
} catch {
|
|
1635
1635
|
return false;
|