@termix-it/cryptoclaw 1.1.8 → 1.1.10
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-yWl6UnE5.js → accounts-BkK7T7q3.js} +7 -7
- package/dist/{accounts-BE0b9CWs.js → accounts-Du96Wx8V.js} +1 -1
- package/dist/{accounts-BcrjW3D1.js → accounts-LGj1Il6r.js} +1 -1
- package/dist/{acp-cli-BkRJvbhG.js → acp-cli-BVLYN9b6.js} +8 -8
- package/dist/{agent-scope-CRf0l_Gq.js → agent-scope-DnGYstsz.js} +17 -17
- package/dist/{agents-DF9-Gawd.js → agents-DmV9pcSX.js} +14 -14
- package/dist/{agents.config-D-kz_GD7.js → agents.config-BlbII3kh.js} +2 -2
- package/dist/{api-key-rotation-C20s2VP6.js → api-key-rotation-bH-pRnX0.js} +1 -1
- package/dist/{audio-preflight-Det_pb9p.js → audio-preflight-BxFoXiPf.js} +34 -34
- package/dist/{audio-transcription-runner-DKJsRpdc.js → audio-transcription-runner-D1MyUZ7c.js} +23 -23
- package/dist/{audit-B-SXg-Xk.js → audit-B5zuu-5Z.js} +29 -29
- package/dist/{auth-XpPQf9A8.js → auth-22wVQqM3.js} +1 -1
- package/dist/{auth-choice-DGDwkTV6.js → auth-choice-CEgBDcRt.js} +13 -13
- package/dist/{auth-choice-CLs5WpL3.js → auth-choice-MPAsBFfw.js} +11 -11
- package/dist/{auth-choice.apply-helpers-lwbv0OFA.js → auth-choice.apply-helpers-DXntDnow.js} +1 -1
- package/dist/{auth-profiles-Dhb7Y6H5.js → auth-profiles-O2Q8_o0a.js} +16 -16
- package/dist/{auth-token-B8r2bVLN.js → auth-token-Jtjowoeg.js} +1 -1
- package/dist/{banner-CxQq-XAy.js → banner-CjhJhSHE.js} +2 -2
- package/dist/{bonjour-discovery-BG6bPBFk.js → bonjour-discovery-BrgT_UZ5.js} +1 -1
- package/dist/{browser-cli-Bs9Jn2SN.js → browser-cli-DhGYbRc3.js} +12 -12
- package/dist/build-info.json +3 -3
- package/dist/{call-d1gA727i.js → call-DUvxsaBy.js} +10 -10
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-account-context-Crd0PQwN.js → channel-account-context-1e3thcpb.js} +5 -5
- package/dist/{channel-activity-I7fJP8eL.js → channel-activity-BdjzKjf6.js} +1 -1
- package/dist/{channel-options-COkismPi.js → channel-options-uHVlMBJK.js} +3 -3
- package/dist/{channel-selection-BgyyrS1w.js → channel-selection-H4NMMvR3.js} +1 -1
- package/dist/{channel-web-DZGV2k-s.js → channel-web-v-nG1mnb.js} +17 -17
- package/dist/{channels-cli-DIC4XXvf.js → channels-cli-CaRBsVKj.js} +93 -93
- package/dist/{channels-status-issues-e73oAXc5.js → channels-status-issues-CUJB3e53.js} +1 -1
- package/dist/{chrome-dfA2MJQH.js → chrome-CYBD3o7s.js} +4 -4
- package/dist/{clawbot-cli-B--Pll5v.js → clawbot-cli-DQDZpHp6.js} +11 -11
- package/dist/{cli-Df4l1wtv.js → cli-CnYD8U_2.js} +73 -73
- package/dist/{client-BEF5fXj0.js → client-DPmb6CIu.js} +2 -2
- package/dist/{command-registry-CBfNNhgy.js → command-registry-an_9Jv_7.js} +11 -11
- package/dist/{command-secret-targets-CnULpcUz.js → command-secret-targets-DjEo9W7_.js} +4 -4
- package/dist/{commands-NJXpIW-o.js → commands-CUPc3v8D.js} +1 -1
- package/dist/{commands-registry-leOuyQey.js → commands-registry-BLcZaG1W.js} +3 -3
- package/dist/{completion-cli-FP9HAEQ3.js → completion-cli-BAafGAvW.js} +13 -13
- package/dist/{completion-cli-Bai3pUlw.js → completion-cli-DLP9B9zs.js} +1 -1
- package/dist/{config-cli-9yew-sxg.js → config-cli-BGy3uFX6.js} +7 -7
- package/dist/{config-guard-QxrUunD8.js → config-guard-CiLylaoa.js} +3 -3
- package/dist/{config-validation-XC8HKQ95.js → config-validation-CmNLlf8O.js} +3 -3
- package/dist/{configure-DeAtHK8r.js → configure-Dcjc_rvn.js} +17 -17
- package/dist/{control-ui-assets-C08JRwwL.js → control-ui-assets-DsgdrhIz.js} +1 -1
- package/dist/{cron-cli-TmXvhnuy.js → cron-cli-C0KJ0GIR.js} +11 -11
- package/dist/{daemon-cli-CxdLAg0T.js → daemon-cli-DVxXbSSo.js} +15 -15
- package/dist/{daemon-install-Z0aYOW9C.js → daemon-install-Cwmezi6s.js} +4 -4
- package/dist/{daemon-install-helpers-DoeVkj6M.js → daemon-install-helpers-BAt1F-Sd.js} +11 -11
- package/dist/{deliver-KC6M1Po5.js → deliver-g75DXZ54.js} +7 -7
- package/dist/deliver-runtime-FL5_bhMe.js +62 -0
- package/dist/{deps-send-discord.runtime-C2JzTkWt.js → deps-send-discord.runtime-BpCYDmRD.js} +16 -16
- package/dist/deps-send-imessage.runtime-Hx8SNVrk.js +36 -0
- package/dist/deps-send-signal.runtime-5-zcMae_.js +35 -0
- package/dist/{deps-send-slack.runtime-Ucy4geO1.js → deps-send-slack.runtime-CESru84F.js} +14 -14
- package/dist/{deps-send-telegram.runtime-DHzRQJe0.js → deps-send-telegram.runtime-BJGQ2OvJ.js} +16 -16
- package/dist/deps-send-whatsapp.runtime-CtO9Pt8F.js +120 -0
- package/dist/{devices-cli-Cez-Kjzm.js → devices-cli-wlLcQp00.js} +8 -8
- package/dist/{diagnostic-DlgnWiS3.js → diagnostic-DUVtQcqK.js} +1 -1
- package/dist/{diagnostics-B9N9Gclp.js → diagnostics-CKx5Fdba.js} +5 -5
- package/dist/{directory-cli-DElz98Vj.js → directory-cli-DKKgOcpZ.js} +7 -7
- package/dist/{dns-cli-NR3uBIKu.js → dns-cli-D1chgoht.js} +5 -5
- package/dist/{dock-DhwktiRh.js → dock-BApnjSMS.js} +4 -4
- package/dist/{docs-cli-DL6UVBO7.js → docs-cli-BvOheJtP.js} +4 -4
- package/dist/{doctor-completion-CCNHTpp9.js → doctor-completion-D7PF7iP7.js} +2 -2
- package/dist/{doctor-completion-BQBZQyQq.js → doctor-completion-DyHABS_W.js} +1 -1
- package/dist/{doctor-config-flow-CN_hFkSO.js → doctor-config-flow-CoBBtWrG.js} +15 -15
- package/dist/{enable-DTsxqYdj.js → enable-D4na731V.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{exec-approvals-allowlist-BMnVDBPF.js → exec-approvals-allowlist-CyY44YOj.js} +1 -1
- package/dist/{exec-approvals-cli-OEgUH8zR.js → exec-approvals-cli-mrJDJoMt.js} +16 -16
- package/dist/{exec-safe-bin-runtime-policy-DH8C1i7S.js → exec-safe-bin-runtime-policy-BP-hoGyD.js} +2 -2
- package/dist/{fetch-CZCJhSwX.js → fetch-DpZmzITI.js} +3 -3
- package/dist/{fetch-guard-B5ANJDou.js → fetch-guard-CLZ6u2jq.js} +1 -1
- package/dist/{fs-safe-B5PDQs4d.js → fs-safe-CnDw0p6S.js} +24 -24
- package/dist/{gateway-cli-CyeZq5AC.js → gateway-cli-D5DEa_Z1.js} +1 -1
- package/dist/{gateway-cli-DLWVlNsd.js → gateway-cli-R1jPVrV-.js} +153 -153
- package/dist/{gateway-rpc-Cs0KliQu.js → gateway-rpc-sfxU7DjV.js} +1 -1
- package/dist/{health-DD6PJgN8.js → health-ysQviffW.js} +11 -11
- package/dist/{hooks-cli-BeB2OkD-.js → hooks-cli-DHi_8Dym.js} +81 -81
- package/dist/{hooks-status-DyvZhQMV.js → hooks-status-DBxEspfP.js} +1 -1
- package/dist/{image-Cb-G2N6H.js → image-DqLDeq0S.js} +5 -5
- package/dist/{image-ops-CX39q-u7.js → image-ops-DQnLLCmy.js} +10 -10
- package/dist/image-runtime-Dny90w7z.js +56 -0
- package/dist/index.js +1 -1
- package/dist/{inspect-DCCTTM2p.js → inspect-DmEOlMyu.js} +4 -4
- package/dist/{install-safe-path-B-vV6gg0.js → install-safe-path-lYB1n1zs.js} +25 -25
- package/dist/{installs-D2BwpBpI.js → installs-BqdehfDe.js} +9 -9
- package/dist/{ipv4-B7QK2crX.js → ipv4-Dw7o7EN4.js} +1 -1
- package/dist/{ir-BJoTxOuZ.js → ir-BFLOrX1v.js} +8 -8
- package/dist/{issue-format-D_dmhPpa.js → issue-format-B3rjIDp2.js} +1 -1
- package/dist/{json-files-DKBWexTJ.js → json-files-Gs9H0Aq3.js} +8 -8
- package/dist/{lifecycle-core-BdCUsFAO.js → lifecycle-core-f8bB01eE.js} +5 -5
- package/dist/{login-ByMSGK1J.js → login-Yxw0ePBs.js} +3 -3
- package/dist/{login-qr-CDwnwe9P.js → login-qr-BJCPbTFZ.js} +6 -6
- package/dist/{logs-cli-skIcVW3V.js → logs-cli-D5fWLF2F.js} +9 -9
- package/dist/{manager-CJIx-nFA.js → manager-CLRUN9PX.js} +14 -14
- package/dist/{manager-runtime-C21y6GjQ.js → manager-runtime-BxaiDdDE.js} +9 -9
- package/dist/{manifest-registry-B-2nrmVS.js → manifest-registry-ZTwWlNy8.js} +1 -1
- package/dist/{memory-cli-BKJMqEje.js → memory-cli-1oaIDOW8.js} +12 -12
- package/dist/{model-BF-E_mpk.js → model-4MYhtwmk.js} +2 -2
- package/dist/{model-catalog-C2xpcL9w.js → model-catalog-Bq8ljVOk.js} +3 -3
- package/dist/{model-picker-B_jBkcxo.js → model-picker-MNBPQ3J0.js} +4 -4
- package/dist/{models-kMN-tUPU.js → models-DT64zDal.js} +17 -17
- package/dist/{models-cli-QTm186Iq.js → models-cli-CDfSk6DT.js} +78 -78
- package/dist/{models-config-Bzcv6yHw.js → models-config-rHYOUx9N.js} +6 -6
- package/dist/{net-B4T9jJmY.js → net-WImcDVCL.js} +2 -2
- package/dist/{node-cli-pYAcollM.js → node-cli-0d0U2A1N.js} +33 -33
- package/dist/{node-command-policy-CEkzpJ-E.js → node-command-policy-BsxOgSi5.js} +1 -1
- package/dist/{node-service-DoeR9Tg_.js → node-service-BvafMFan.js} +1 -1
- package/dist/{nodes-cli-Bx2ytnbF.js → nodes-cli-b8Ghnuxt.js} +16 -16
- package/dist/{nodes-screen-D4GSrs9P.js → nodes-screen-ChMr3Xvv.js} +7 -7
- package/dist/{npm-pack-install-CR0ksmYd.js → npm-pack-install-Cq3pNk7b.js} +18 -18
- package/dist/{npm-resolution-BkWQgNIO.js → npm-resolution-MRSgQLVD.js} +4 -4
- package/dist/{onboard-BCnqRDky.js → onboard-axkpT0wk.js} +2 -2
- package/dist/{onboard-channels-B2GvfCnG.js → onboard-channels-puO2LD6g.js} +21 -21
- package/dist/{onboard-config-DWnlWcjI.js → onboard-config-C06y4K2b.js} +1 -1
- package/dist/{onboard-config-oUKoFfFB.js → onboard-config-DzpTyHer.js} +1 -1
- package/dist/{onboard-custom-DygXBNvm.js → onboard-custom-Cpf2aU9S.js} +4 -4
- package/dist/{onboard-CQ-YoTSl.js → onboard-glePi2Vw.js} +7 -7
- package/dist/{onboard-helpers-DBgIqxpx.js → onboard-helpers-CEIyWqFt.js} +10 -10
- package/dist/{onboard-hooks-CKJoEftC.js → onboard-hooks-cPtbvxIQ.js} +4 -4
- package/dist/{onboard-remote-eycsmUSY.js → onboard-remote-BWxqa7D6.js} +4 -4
- package/dist/{onboard-skills-qZsTdEYi.js → onboard-skills-BjGs7gMo.js} +4 -4
- package/dist/{onboarding-BY3YZMkn.js → onboarding-BtT09n3z.js} +15 -15
- package/dist/{onboarding-DR-2kdRy.js → onboarding-zs-UwrpV.js} +2 -2
- package/dist/{onboarding.finalize-CEgugO0l.js → onboarding.finalize-9y17HMBX.js} +3 -3
- package/dist/{onboarding.finalize-B_gI9SXJ.js → onboarding.finalize-Bs4z1MKJ.js} +87 -87
- package/dist/{onboarding.gateway-config-D0IdOPlC.js → onboarding.gateway-config-CkT0qEDp.js} +18 -18
- package/dist/{onboarding.secret-input-B92nv1e5.js → onboarding.secret-input-C7qPkRfU.js} +1 -1
- package/dist/{openai-model-default-hj3S7o-G.js → openai-model-default-C4ZEdxRm.js} +2 -2
- package/dist/{openclaw-root-CcI1kSyI.js → openclaw-root-3A_8MzYe.js} +8 -8
- package/dist/{outbound-ev7SVuPh.js → outbound-ChrgPoxb.js} +3 -3
- package/dist/{outbound-attachment-DFjyJ3Np.js → outbound-attachment-BV-XqIuc.js} +2 -2
- package/dist/{pairing-cli-BEwqqs3y.js → pairing-cli-DAiiAM8B.js} +8 -8
- package/dist/{pairing-labels-CAXv-Bhv.js → pairing-labels-CGVQ42A3.js} +1 -1
- package/dist/{pairing-store-Cw7fg9R2.js → pairing-store-W5camsG4.js} +3 -3
- package/dist/{path-alias-guards-C74pGxcZ.js → path-alias-guards-CQsCVlSQ.js} +3 -3
- package/dist/{path-safety-Ck76OVAf.js → path-safety-BrZp6wHv.js} +1 -1
- package/dist/{paths-A42qSVaB.js → paths-DvmtmdGA.js} +9 -9
- package/dist/{pi-embedded-helpers-CU3j5zQw.js → pi-embedded-helpers-66TKj98I.js} +6 -6
- package/dist/{pi-model-discovery-Ci3qWkfz.js → pi-model-discovery-Bs768Cx7.js} +1 -1
- package/dist/{pi-model-discovery-runtime-CQWul9Vg.js → pi-model-discovery-runtime-DEV-guE_.js} +5 -5
- package/dist/{pi-tools.before-tool-call.runtime-C3GLLjEH.js → pi-tools.before-tool-call.runtime-gtwRqfD1.js} +5 -5
- package/dist/{pi-tools.policy-DwQdI7Kl.js → pi-tools.policy-CQSaeIZr.js} +5 -5
- package/dist/{plugin-auto-enable-apzoyUq4.js → plugin-auto-enable-z-6f3_56.js} +3 -3
- package/dist/{plugin-registry-B8gsdjW8.js → plugin-registry-DvUq6zds.js} +3 -3
- package/dist/plugin-sdk/{accounts-C1Yf8rUO.js → accounts-BypsQT27.js} +2 -2
- package/dist/plugin-sdk/{accounts-BOVsvZ69.js → accounts-C4br4nlZ.js} +3 -3
- package/dist/plugin-sdk/{accounts-BkuioOq8.js → accounts-DTNnTWpJ.js} +2 -2
- package/dist/plugin-sdk/{active-listener-CYvTJUbv.js → active-listener-B5t82gRU.js} +2 -2
- package/dist/plugin-sdk/{api-key-rotation-CLAvYiCX.js → api-key-rotation-BFNdrCf9.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-B1iVdt7A.js → audio-preflight-B7ivxhvF.js} +26 -26
- package/dist/plugin-sdk/{audio-transcription-runner-6TQq2i9u.js → audio-transcription-runner-B8OUiy7P.js} +11 -11
- package/dist/plugin-sdk/{audit-membership-runtime-DS34hPU6.js → audit-membership-runtime-Re50ULXH.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-BcVbdzzf.js → channel-activity-Dx1jbA3a.js} +3 -3
- package/dist/plugin-sdk/{channel-web-CXMt7BY7.js → channel-web-BiTTQ4xr.js} +18 -18
- package/dist/plugin-sdk/{chrome-DifgiNQb.js → chrome-wTqnW5U7.js} +6 -6
- package/dist/plugin-sdk/{commands-registry-BwfAoL8g.js → commands-registry-BWv4oM2P.js} +4 -4
- package/dist/plugin-sdk/{config-DdConC4M.js → config-cWsVJMRn.js} +7 -7
- package/dist/plugin-sdk/{deliver-30LL_FDf.js → deliver-Ba8ti0Um.js} +10 -10
- package/dist/plugin-sdk/deliver-runtime-Qmy3w63D.js +32 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-Db6_7ZAc.js +23 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-C_EYS_sH.js +22 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-DK121Bh0.js +21 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-AaWSr7fe.js +19 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-Dylx-xTp.js +24 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-81uWD-yI.js +57 -0
- package/dist/plugin-sdk/{diagnostic-BiLQ5uMU.js → diagnostic-DJkCYiHJ.js} +2 -2
- package/dist/plugin-sdk/{errors-C-TFeu_U.js → errors-x0EvNKYN.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-su5BIIz5.js → fetch-guard-B4oIrtQU.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-B0eWdlGT.js → fs-safe-BGLuaVDw.js} +3 -3
- package/dist/plugin-sdk/{image-BHgCDBaW.js → image-D9cX-W4_.js} +6 -6
- package/dist/plugin-sdk/{image-ops-D5EPN96N.js → image-ops-N60pMFiM.js} +2 -2
- package/dist/plugin-sdk/image-runtime-BBiuMz7E.js +25 -0
- package/dist/plugin-sdk/index.js +50 -50
- package/dist/plugin-sdk/{ir-BVqIWdpl.js → ir-DvNCG3HQ.js} +7 -7
- package/dist/plugin-sdk/{local-roots-CCfvGuoX.js → local-roots-DJr1PN3z.js} +4 -4
- package/dist/plugin-sdk/{logger-z1vqlUc1.js → logger-COmHOvdm.js} +2 -2
- package/dist/plugin-sdk/{login-1hsZj0g8.js → login-CoU-pP8D.js} +4 -4
- package/dist/plugin-sdk/{login-qr-mIn4oSE6.js → login-qr-wRFAAkU1.js} +5 -5
- package/dist/plugin-sdk/{manager-CKCJdSeL.js → manager-BlnM_iwm.js} +8 -8
- package/dist/plugin-sdk/manager-runtime-Ccj_7Z0c.js +15 -0
- package/dist/plugin-sdk/{outbound-DVpHFwMf.js → outbound-Cw6160wa.js} +5 -5
- package/dist/plugin-sdk/{outbound-attachment-DXCuJPzV.js → outbound-attachment-DWhUVfia.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-Ddj-jk91.js → path-alias-guards-Ck7kqOtM.js} +1 -1
- package/dist/plugin-sdk/{paths-MqZfQzk4.js → paths-C_3UIAbs.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-De-tYNO5.js → pi-embedded-helpers-3l1dRoEY.js} +16 -16
- package/dist/plugin-sdk/{pi-model-discovery-CmWdgrld.js → pi-model-discovery-Bi4ewLKb.js} +1 -1
- package/dist/plugin-sdk/pi-model-discovery-runtime-jmgr21i6.js +8 -0
- package/dist/plugin-sdk/{pi-tools.before-tool-call.runtime-DZs_C8RL.js → pi-tools.before-tool-call.runtime-DJbnwybV.js} +4 -4
- package/dist/plugin-sdk/{plugins-Df9rHggh.js → plugins-Bm4rp8IX.js} +4 -4
- package/dist/plugin-sdk/{proxy-fetch-DxlXp4Yi.js → proxy-fetch-BZAtM2fT.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-BcFVaXMO.js → pw-ai-CslJ6u1B.js} +9 -9
- package/dist/plugin-sdk/{qmd-manager-CgAY74JQ.js → qmd-manager-BV37X-4s.js} +7 -7
- package/dist/plugin-sdk/{query-expansion-X3iK3wW4.js → query-expansion-B7JBWi3Y.js} +4 -4
- package/dist/plugin-sdk/{redact-DIGZ7dEc.js → redact-DZTeCKgA.js} +1 -1
- package/dist/plugin-sdk/{reply-CPlMOjnY.js → reply-SL3TFM_1.js} +73 -73
- package/dist/plugin-sdk/{resolve-outbound-target--JkNiVR3.js → resolve-outbound-target-8WMGshxA.js} +2 -2
- package/dist/plugin-sdk/{run-with-concurrency-CAg6hblr.js → run-with-concurrency-CbyBbGss.js} +1 -1
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-_T4-3_NI.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-DDvDCva6.js +19 -0
- package/dist/plugin-sdk/{send-BfMo4yKi.js → send-CnZwc5Xm.js} +13 -13
- package/dist/plugin-sdk/{send-BR0ocVRg.js → send-DAZltiIW.js} +8 -8
- package/dist/plugin-sdk/{send-BosYVCS8.js → send-DGJpvm7n.js} +5 -5
- package/dist/plugin-sdk/{send-C1N0kX50.js → send-DbUkzyXv.js} +7 -7
- package/dist/plugin-sdk/{send-DyAZa1y0.js → send-DbhdUm2I.js} +6 -6
- package/dist/plugin-sdk/{session-xR2DLzse.js → session-Cpth1H2A.js} +3 -3
- package/dist/plugin-sdk/{skill-commands-DHOHDbOQ.js → skill-commands-X5gpohJ1.js} +4 -4
- package/dist/plugin-sdk/{skills-LpJmo0DO.js → skills-s-HEpPkh.js} +6 -6
- package/dist/plugin-sdk/slash-commands.runtime-BoVuWmR3.js +13 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-eYhiYLqH.js +52 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-CyuOIQN-.js +16 -0
- package/dist/plugin-sdk/{ssrf-Ctw5peX0.js → ssrf-BlFOb1TL.js} +1 -1
- package/dist/plugin-sdk/{store-BECFHajU.js → store-DuNHlb8J.js} +2 -2
- package/dist/plugin-sdk/subagent-registry-runtime-BQN30Vt4.js +52 -0
- package/dist/plugin-sdk/{tables-BGPXRfUo.js → tables-DBVdEzq2.js} +1 -1
- package/dist/plugin-sdk/{target-errors-EppfnloD.js → target-errors-CX2np2l6.js} +2 -2
- package/dist/plugin-sdk/{thinking-DwXFSbD_.js → thinking-B9UJvomD.js} +7 -7
- package/dist/plugin-sdk/{tokens-DuRErjk3.js → tokens-XT-8y62w.js} +1 -1
- package/dist/plugin-sdk/{tool-images-6BfTarJB.js → tool-images-CJ10KuSq.js} +2 -2
- package/dist/plugin-sdk/web-ZPe2mrXE.js +56 -0
- package/dist/plugin-sdk/{whatsapp-actions-k9k_HQg1.js → whatsapp-actions-CgqENBb8.js} +17 -17
- package/dist/{plugins-DPzGpZa7.js → plugins-BPdE2epV.js} +2 -2
- package/dist/{plugins-cli-DzdzJs7b.js → plugins-cli-D_HZ8IcN.js} +83 -83
- package/dist/{ports-tNwRP0LA.js → ports-DGlQBAf1.js} +1 -1
- package/dist/{ports-jMaAsRpr.js → ports-DfNdy6Sc.js} +2 -2
- package/dist/{program-context-BfnHzkXT.js → program-context-Bo0I4EhU.js} +6 -6
- package/dist/{program-Rna_eew4.js → program-qFtKaO8C.js} +81 -81
- package/dist/{prompt-select-styled-1nWCPZKF.js → prompt-select-styled-BaS1yOmO.js} +40 -40
- package/dist/{prompt-select-styled-BDi5UBUn.js → prompt-select-styled-HTcuT580.js} +1 -1
- package/dist/{provider-auth-helpers-DlZjYqHx.js → provider-auth-helpers-CrGaU-6B.js} +5 -5
- package/dist/{proxy-env-CKsbj01c.js → proxy-env--152Piqf.js} +1 -1
- package/dist/{push-apns-BNZHhyJh.js → push-apns-BcgP-1tO.js} +5 -5
- package/dist/{pw-ai-DYmnLtI5.js → pw-ai-lyRZ2lRj.js} +18 -18
- package/dist/{qmd-manager-CtnM6lKC.js → qmd-manager-Q-iay5w2.js} +20 -20
- package/dist/{qr-cli-CiaeVLGo.js → qr-cli-M55o9uQ3.js} +2 -2
- package/dist/{query-expansion-CGww5_oH.js → query-expansion-QQ7-fKJN.js} +12 -12
- package/dist/{redact-snapshot-Bg3sMcIL.js → redact-snapshot-DtttUfNB.js} +1 -1
- package/dist/{register.agent-zhueqr8n.js → register.agent-Cb82_m36.js} +94 -94
- package/dist/register.configure-BWs4EgtE.js +166 -0
- package/dist/{register.maintenance-RJM2wCjj.js → register.maintenance-CsTacSHr.js} +95 -95
- package/dist/{register.maintenance-BoigTo1u.js → register.maintenance-J9W7v4aX.js} +4 -4
- package/dist/{register.message-CnEQThm-.js → register.message-BPMXTFeN.js} +74 -74
- package/dist/{register.onboard--1jxOBJy.js → register.onboard-BGLiQ6un.js} +2 -2
- package/dist/{register.onboard-BtBM_7Qe.js → register.onboard-cffJmoWf.js} +18 -18
- package/dist/{register.setup-o2PFpqW-.js → register.setup-BclTPsuN.js} +21 -21
- package/dist/{register.setup-B_O283DR.js → register.setup-CAO8cRvw.js} +2 -2
- package/dist/{register.status-health-sessions-CVjLnoAQ.js → register.status-health-sessions-Cr554peJ.js} +88 -88
- package/dist/{register.subclis-Cm8zQPce.js → register.subclis-BFRjp1Wi.js} +31 -31
- package/dist/{rpc-B2top5G1.js → rpc-C3fo7Fc4.js} +1 -1
- package/dist/{run-main-Bcwtj17t.js → run-main-DWCFqeRi.js} +92 -92
- package/dist/{runtime-Bwd93vnw.js → runtime-aCMkJumC.js} +3 -3
- package/dist/{runtime-config-collectors-CrW6OjTr.js → runtime-config-collectors-BArtbEg9.js} +1 -1
- package/dist/{runtime-whatsapp-login.runtime-D08ghHWe.js → runtime-whatsapp-login.runtime-BoLTF-OO.js} +7 -7
- package/dist/{runtime-whatsapp-outbound.runtime-B3NjGGpU.js → runtime-whatsapp-outbound.runtime-CQSrwbqD.js} +15 -15
- package/dist/{sandbox-BvR_Auee.js → sandbox-CswRLZuX.js} +18 -18
- package/dist/{sandbox-cli-myJWqWAa.js → sandbox-cli-CvsjCdCm.js} +25 -25
- package/dist/{secrets-cli-1xQw45fy.js → secrets-cli-6shNNxcY.js} +11 -11
- package/dist/{security-cli-o0C0Tcn_.js → security-cli-aM0KmhSS.js} +42 -42
- package/dist/{send-CzH87tPi.js → send-Br8GGwD9.js} +6 -6
- package/dist/{send-CgUKGlTT.js → send-BsLP4ooQ.js} +4 -4
- package/dist/{send-CkTGqTX7.js → send-CFJQjYMY.js} +11 -11
- package/dist/{send-Dtf_Rspz.js → send-DaH87GbQ.js} +8 -8
- package/dist/{send-BXBEWheN.js → send-DhC9fy39.js} +5 -5
- package/dist/{server-context-jBMc5KL9.js → server-context-Chb0NTKM.js} +12 -12
- package/dist/{server-lifecycle-B5N_h0YG.js → server-lifecycle-B2vW1X8l.js} +2 -2
- package/dist/{server-middleware-Bt0-4Zx7.js → server-middleware-BwS1-Xql.js} +1 -1
- package/dist/{server-node-events-8TZ5uZ7a.js → server-node-events-DKjcwxsN.js} +74 -74
- package/dist/{server-BtfPMtk8.js → server-pG33jNj1.js} +20 -20
- package/dist/{service-CC8D6AOn.js → service-ByGIhP5D.js} +15 -15
- package/dist/{session-1PuqW42w.js → session-C-semPd7.js} +1 -1
- package/dist/{session-utils-B61AjjG6.js → session-utils-DQdPC90P.js} +6 -6
- package/dist/{sessions-eRTHXGkn.js → sessions-ColhCohs.js} +4 -4
- package/dist/{sessions-D1iVO-At.js → sessions-_J4_CA-P.js} +15 -15
- package/dist/{shared-D0de8v-p.js → shared-ZPmPfnoa.js} +1 -1
- package/dist/{shared-3WRMPSAF.js → shared-hHKmh3AF.js} +3 -3
- package/dist/{skill-commands-C6S5sumb.js → skill-commands-H-0YJw4z.js} +5 -5
- package/dist/{skill-scanner-CC_bdAdQ.js → skill-scanner-C04nRvTZ.js} +6 -6
- package/dist/{skills-EgqBDxQ-.js → skills-BJsPKAnb.js} +3 -3
- package/dist/{skills-cli-B62v0B8Y.js → skills-cli-Dlle8Jal.js} +5 -5
- package/dist/{skills-install-DNWnoHCI.js → skills-install-Y62tfBpX.js} +6 -6
- package/dist/{skills-status-Bnyg73Jn.js → skills-status-Ck_Xn7qD.js} +1 -1
- package/dist/{slash-commands.runtime-DZBOZGXG.js → slash-commands.runtime-Chf-kE5X.js} +11 -11
- package/dist/slash-dispatch.runtime-ByKS2u9M.js +115 -0
- package/dist/{slash-skill-commands.runtime-B4sqth9E.js → slash-skill-commands.runtime-BJJnGhEx.js} +15 -15
- package/dist/{status-CKWYXIIT.js → status-DX3J1HLf.js} +27 -27
- package/dist/{status.update-CO_hSO5b.js → status.update-Bt1iuijX.js} +2 -2
- package/dist/{store-ihYI8Jc3.js → store-DFGXphHz.js} +5 -5
- package/dist/{subagent-registry-0UHaPcka.js → subagent-registry-D15JW57h.js} +149 -149
- package/dist/subagent-registry-runtime-B12EGepi.js +115 -0
- package/dist/{system-cli-CAm_NHpc.js → system-cli-C-E7OxVj.js} +9 -9
- package/dist/{system-run-command-Brwa-hul.js → system-run-command-B4X3kEB0.js} +1 -1
- package/dist/{systemd-CULbJju8.js → systemd-Z2v3LHpX.js} +9 -9
- package/dist/{systemd-hints-D9XaooZC.js → systemd-hints-DhbLId9K.js} +6 -6
- package/dist/{systemd-linger-SLVqtYjz.js → systemd-linger-B6KsEYH6.js} +1 -1
- package/dist/{tables-Devzuq-q.js → tables-3AsJttWw.js} +1 -1
- package/dist/{tailnet-KUL9QhBk.js → tailnet-CrF4jOdB.js} +1 -1
- package/dist/{target-errors-D5MoCoCl.js → target-errors-DXOQGMiV.js} +4 -4
- package/dist/{tool-images-CEFl9wsx.js → tool-images-BOfCiGuh.js} +1 -1
- package/dist/{tui-CRYLJSVD.js → tui-CkQCGUpD.js} +6 -6
- package/dist/{tui-cli-DB82w6p8.js → tui-cli-BpyTGK67.js} +32 -32
- package/dist/{update-B1gR_Fep.js → update-BB9JebC9.js} +3 -3
- package/dist/{update-cli-C1DALvzD.js → update-cli-DR5UbjaD.js} +104 -104
- package/dist/{update-cli-BDOF9xoT.js → update-cli-DfVrqXfg.js} +4 -4
- package/dist/{update-runner-Bw1MljLh.js → update-runner-Dq6iBeiC.js} +16 -16
- package/dist/web-BA84rOuO.js +119 -0
- package/dist/{webhooks-cli-B3iWJR9P.js → webhooks-cli-BY1niEMR.js} +6 -6
- package/dist/{whatsapp-actions-B53LlFl5.js → whatsapp-actions-BuO3DPPZ.js} +17 -17
- package/dist/{with-timeout-B5BHCMsa.js → with-timeout-a_kBhS5N.js} +3 -3
- package/dist/{workspace-D8DzE384.js → workspace-CiGqHbhA.js} +1 -1
- package/dist/{workspace-dirs-_RQ0G-Vf.js → workspace-dirs-C9jwceid.js} +1 -1
- package/dist/{wsl-CzuO5aHB.js → wsl-DCEQRUtE.js} +2 -2
- package/extensions/blockchain/package.json +1 -3
- package/package.json +1 -1
- package/dist/deliver-runtime-C5J_x4jO.js +0 -62
- package/dist/deps-send-imessage.runtime-BFk4Fvrd.js +0 -36
- package/dist/deps-send-signal.runtime-Lw_dTkGz.js +0 -35
- package/dist/deps-send-whatsapp.runtime-CvFgs4NK.js +0 -120
- package/dist/image-runtime-7mmAmEoX.js +0 -56
- package/dist/plugin-sdk/deliver-runtime-BzekNyDR.js +0 -32
- package/dist/plugin-sdk/deps-send-discord.runtime-DAQdyr0A.js +0 -23
- package/dist/plugin-sdk/deps-send-imessage.runtime-DeN3xqBZ.js +0 -22
- package/dist/plugin-sdk/deps-send-signal.runtime-BzOTNsH2.js +0 -21
- package/dist/plugin-sdk/deps-send-slack.runtime-RJ6do6c_.js +0 -19
- package/dist/plugin-sdk/deps-send-telegram.runtime-CT8fXkjj.js +0 -24
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-B3vpd-GR.js +0 -57
- package/dist/plugin-sdk/image-runtime-usFQghD_.js +0 -25
- package/dist/plugin-sdk/manager-runtime-C8E7uQRc.js +0 -15
- package/dist/plugin-sdk/pi-model-discovery-runtime-BInvqyx7.js +0 -8
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-VulSN6Vo.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-KEv7zH3k.js +0 -19
- package/dist/plugin-sdk/slash-commands.runtime-Bh4gVuZZ.js +0 -13
- package/dist/plugin-sdk/slash-dispatch.runtime-BrC7vdR-.js +0 -52
- package/dist/plugin-sdk/slash-skill-commands.runtime-ztQcIAHF.js +0 -16
- package/dist/plugin-sdk/subagent-registry-runtime-S1tiTKcN.js +0 -52
- package/dist/plugin-sdk/web-B9un2u9S.js +0 -56
- package/dist/register.configure-Bi9KnPuo.js +0 -166
- package/dist/slash-dispatch.runtime-DwWpNqdA.js +0 -115
- package/dist/subagent-registry-runtime-CeHVZoXv.js +0 -115
- package/dist/web-BVIL9iG1.js +0 -119
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { f as isNotFoundPathError, p as isPathInside } from "./openclaw-root-
|
|
2
|
-
import { a as openWritableFileWithinRoot, t as SafeOpenError } from "./fs-safe-
|
|
3
|
-
import { n as resolveSafeBaseDir } from "./path-safety-
|
|
1
|
+
import { f as isNotFoundPathError, p as isPathInside } from "./openclaw-root-3A_8MzYe.js";
|
|
2
|
+
import { a as openWritableFileWithinRoot, t as SafeOpenError } from "./fs-safe-CnDw0p6S.js";
|
|
3
|
+
import { n as resolveSafeBaseDir } from "./path-safety-BrZp6wHv.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
|
-
import
|
|
6
|
+
import fs from "node:fs/promises";
|
|
7
7
|
import { pipeline } from "node:stream/promises";
|
|
8
8
|
import { Readable, Transform } from "node:stream";
|
|
9
9
|
import JSZip from "jszip";
|
|
@@ -78,9 +78,9 @@ function resolveArchiveKind(filePath) {
|
|
|
78
78
|
async function resolvePackedRootDir(extractDir) {
|
|
79
79
|
const direct = path.join(extractDir, "package");
|
|
80
80
|
try {
|
|
81
|
-
if ((await
|
|
81
|
+
if ((await fs.stat(direct)).isDirectory()) return direct;
|
|
82
82
|
} catch {}
|
|
83
|
-
const dirs = (await
|
|
83
|
+
const dirs = (await fs.readdir(extractDir, { withFileTypes: true })).filter((entry) => entry.isDirectory()).map((entry) => entry.name);
|
|
84
84
|
if (dirs.length !== 1) throw new Error(`unexpected archive layout (dirs: ${dirs.join(", ")})`);
|
|
85
85
|
const onlyDir = dirs[0];
|
|
86
86
|
if (!onlyDir) throw new Error("unexpected archive layout (no package dir found)");
|
|
@@ -150,10 +150,10 @@ function symlinkTraversalError(originalPath) {
|
|
|
150
150
|
return new ArchiveSecurityError("destination-symlink-traversal", `${ERROR_ARCHIVE_ENTRY_TRAVERSES_SYMLINK}: ${originalPath}`);
|
|
151
151
|
}
|
|
152
152
|
async function assertDestinationDirReady(destDir) {
|
|
153
|
-
const stat = await
|
|
153
|
+
const stat = await fs.lstat(destDir);
|
|
154
154
|
if (stat.isSymbolicLink()) throw new ArchiveSecurityError("destination-symlink", "archive destination is a symlink");
|
|
155
155
|
if (!stat.isDirectory()) throw new ArchiveSecurityError("destination-not-directory", "archive destination is not a directory");
|
|
156
|
-
return await
|
|
156
|
+
return await fs.realpath(destDir);
|
|
157
157
|
}
|
|
158
158
|
async function assertNoSymlinkTraversal(params) {
|
|
159
159
|
const parts = params.relPath.split("/").filter(Boolean);
|
|
@@ -162,7 +162,7 @@ async function assertNoSymlinkTraversal(params) {
|
|
|
162
162
|
current = path.join(current, part);
|
|
163
163
|
let stat;
|
|
164
164
|
try {
|
|
165
|
-
stat = await
|
|
165
|
+
stat = await fs.lstat(current);
|
|
166
166
|
} catch (err) {
|
|
167
167
|
if (isNotFoundPathError(err)) continue;
|
|
168
168
|
throw err;
|
|
@@ -173,7 +173,7 @@ async function assertNoSymlinkTraversal(params) {
|
|
|
173
173
|
async function assertResolvedInsideDestination(params) {
|
|
174
174
|
let resolved;
|
|
175
175
|
try {
|
|
176
|
-
resolved = await
|
|
176
|
+
resolved = await fs.realpath(params.targetPath);
|
|
177
177
|
} catch (err) {
|
|
178
178
|
if (isNotFoundPathError(err)) return;
|
|
179
179
|
throw err;
|
|
@@ -196,12 +196,12 @@ async function openZipOutputFile(params) {
|
|
|
196
196
|
async function cleanupPartialRegularFile(filePath) {
|
|
197
197
|
let stat;
|
|
198
198
|
try {
|
|
199
|
-
stat = await
|
|
199
|
+
stat = await fs.lstat(filePath);
|
|
200
200
|
} catch (err) {
|
|
201
201
|
if (isNotFoundPathError(err)) return;
|
|
202
202
|
throw err;
|
|
203
203
|
}
|
|
204
|
-
if (stat.isFile()) await
|
|
204
|
+
if (stat.isFile()) await fs.unlink(filePath).catch(() => void 0);
|
|
205
205
|
}
|
|
206
206
|
async function readZipEntryStream(entry) {
|
|
207
207
|
if (typeof entry.nodeStream === "function") return entry.nodeStream();
|
|
@@ -229,7 +229,7 @@ async function prepareZipOutputPath(params) {
|
|
|
229
229
|
originalPath: params.originalPath
|
|
230
230
|
});
|
|
231
231
|
if (params.isDirectory) {
|
|
232
|
-
await
|
|
232
|
+
await fs.mkdir(params.outPath, { recursive: true });
|
|
233
233
|
await assertResolvedInsideDestination({
|
|
234
234
|
destinationRealDir: params.destinationRealDir,
|
|
235
235
|
targetPath: params.outPath,
|
|
@@ -238,7 +238,7 @@ async function prepareZipOutputPath(params) {
|
|
|
238
238
|
return;
|
|
239
239
|
}
|
|
240
240
|
const parentDir = path.dirname(params.outPath);
|
|
241
|
-
await
|
|
241
|
+
await fs.mkdir(parentDir, { recursive: true });
|
|
242
242
|
await assertResolvedInsideDestination({
|
|
243
243
|
destinationRealDir: params.destinationRealDir,
|
|
244
244
|
targetPath: parentDir,
|
|
@@ -261,7 +261,7 @@ async function writeZipFileEntry(params) {
|
|
|
261
261
|
try {
|
|
262
262
|
await pipeline(readable, createExtractBudgetTransform({ onChunkBytes: params.budget.addBytes }), writable);
|
|
263
263
|
} catch (err) {
|
|
264
|
-
if (opened.createdForWrite) await
|
|
264
|
+
if (opened.createdForWrite) await fs.rm(opened.openedRealPath, { force: true }).catch(() => void 0);
|
|
265
265
|
else await cleanupPartialRegularFile(opened.openedRealPath).catch(() => void 0);
|
|
266
266
|
throw err;
|
|
267
267
|
} finally {
|
|
@@ -269,14 +269,14 @@ async function writeZipFileEntry(params) {
|
|
|
269
269
|
}
|
|
270
270
|
if (typeof params.entry.unixPermissions === "number") {
|
|
271
271
|
const mode = params.entry.unixPermissions & 511;
|
|
272
|
-
if (mode !== 0) await
|
|
272
|
+
if (mode !== 0) await fs.chmod(opened.openedRealPath, mode).catch(() => void 0);
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
async function extractZip(params) {
|
|
276
276
|
const limits = resolveExtractLimits(params.limits);
|
|
277
277
|
const destinationRealDir = await assertDestinationDirReady(params.destDir);
|
|
278
|
-
if ((await
|
|
279
|
-
const buffer = await
|
|
278
|
+
if ((await fs.stat(params.archivePath)).size > limits.maxArchiveBytes) throw new Error(ERROR_ARCHIVE_SIZE_EXCEEDS_LIMIT);
|
|
279
|
+
const buffer = await fs.readFile(params.archivePath);
|
|
280
280
|
const zip = await JSZip.loadAsync(buffer);
|
|
281
281
|
const entries = Object.values(zip.files);
|
|
282
282
|
const strip = Math.max(0, Math.floor(params.stripComponents ?? 0));
|
|
@@ -349,7 +349,7 @@ async function extractArchive(params) {
|
|
|
349
349
|
const label = kind === "zip" ? "extract zip" : "extract tar";
|
|
350
350
|
if (kind === "tar") {
|
|
351
351
|
const limits = resolveExtractLimits(params.limits);
|
|
352
|
-
if ((await
|
|
352
|
+
if ((await fs.stat(params.archivePath)).size > limits.maxArchiveBytes) throw new Error(ERROR_ARCHIVE_SIZE_EXCEEDS_LIMIT);
|
|
353
353
|
const checkTarEntrySafety = createTarEntrySafetyChecker({
|
|
354
354
|
rootDir: params.destDir,
|
|
355
355
|
stripComponents: params.stripComponents,
|
|
@@ -382,14 +382,14 @@ async function extractArchive(params) {
|
|
|
382
382
|
}
|
|
383
383
|
async function fileExists(filePath) {
|
|
384
384
|
try {
|
|
385
|
-
await
|
|
385
|
+
await fs.stat(filePath);
|
|
386
386
|
return true;
|
|
387
387
|
} catch {
|
|
388
388
|
return false;
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
391
|
async function readJsonFile(filePath) {
|
|
392
|
-
const raw = await
|
|
392
|
+
const raw = await fs.readFile(filePath, "utf-8");
|
|
393
393
|
return JSON.parse(raw);
|
|
394
394
|
}
|
|
395
395
|
|
|
@@ -433,13 +433,13 @@ async function assertCanonicalPathWithinBase(params) {
|
|
|
433
433
|
const baseDir = path.resolve(params.baseDir);
|
|
434
434
|
const candidatePath = path.resolve(params.candidatePath);
|
|
435
435
|
if (!isPathInside(baseDir, candidatePath)) throw new Error(`Invalid path: must stay within ${params.boundaryLabel}`);
|
|
436
|
-
const baseLstat = await
|
|
436
|
+
const baseLstat = await fs.lstat(baseDir);
|
|
437
437
|
if (!baseLstat.isDirectory() || baseLstat.isSymbolicLink()) throw new Error(`Invalid ${params.boundaryLabel}: base directory must be a real directory`);
|
|
438
|
-
const baseRealPath = await
|
|
438
|
+
const baseRealPath = await fs.realpath(baseDir);
|
|
439
439
|
const validateDirectory = async (dirPath) => {
|
|
440
|
-
const dirLstat = await
|
|
440
|
+
const dirLstat = await fs.lstat(dirPath);
|
|
441
441
|
if (!dirLstat.isDirectory() || dirLstat.isSymbolicLink()) throw new Error(`Invalid path: must stay within ${params.boundaryLabel}`);
|
|
442
|
-
if (!isPathInside(baseRealPath, await
|
|
442
|
+
if (!isPathInside(baseRealPath, await fs.realpath(dirPath))) throw new Error(`Invalid path: must stay within ${params.boundaryLabel}`);
|
|
443
443
|
};
|
|
444
444
|
try {
|
|
445
445
|
await validateDirectory(candidatePath);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as CONFIG_DIR, v as resolveUserPath } from "./utils-BnC3HGtm.js";
|
|
2
2
|
import { i as isPathInside, r as extensionUsesSkippedScannerPath } from "./legacy-names-DV-6rguu.js";
|
|
3
|
-
import { o as loadPluginManifest, s as resolvePackageExtensionEntries } from "./manifest-registry-
|
|
4
|
-
import { S as validateRegistryNpmSpec } from "./skills-
|
|
5
|
-
import { c as writeFileFromPathWithinRoot } from "./fs-safe-
|
|
6
|
-
import { a as unscopedPackageName, c as fileExists, l as readJsonFile, n as resolveSafeInstallDir, r as safeDirName, u as resolveArchiveKind } from "./install-safe-path-
|
|
7
|
-
import { a as installPackageDir, c as resolveTimedInstallModeOptions, d as buildNpmResolutionFields, f as resolveArchiveSourcePath, i as resolveCanonicalInstallTarget, l as resolveExistingInstallPath, n as installFromNpmSpecArchiveWithInstaller, r as ensureInstallTargetAvailable, s as resolveInstallModeOptions, t as finalizeNpmSpecArchiveInstall, u as withExtractedArchiveRoot } from "./npm-pack-install-
|
|
8
|
-
import { t as scanDirectoryWithSummary } from "./skill-scanner-
|
|
3
|
+
import { o as loadPluginManifest, s as resolvePackageExtensionEntries } from "./manifest-registry-ZTwWlNy8.js";
|
|
4
|
+
import { S as validateRegistryNpmSpec } from "./skills-BJsPKAnb.js";
|
|
5
|
+
import { c as writeFileFromPathWithinRoot } from "./fs-safe-CnDw0p6S.js";
|
|
6
|
+
import { a as unscopedPackageName, c as fileExists, l as readJsonFile, n as resolveSafeInstallDir, r as safeDirName, u as resolveArchiveKind } from "./install-safe-path-lYB1n1zs.js";
|
|
7
|
+
import { a as installPackageDir, c as resolveTimedInstallModeOptions, d as buildNpmResolutionFields, f as resolveArchiveSourcePath, i as resolveCanonicalInstallTarget, l as resolveExistingInstallPath, n as installFromNpmSpecArchiveWithInstaller, r as ensureInstallTargetAvailable, s as resolveInstallModeOptions, t as finalizeNpmSpecArchiveInstall, u as withExtractedArchiveRoot } from "./npm-pack-install-Cq3pNk7b.js";
|
|
8
|
+
import { t as scanDirectoryWithSummary } from "./skill-scanner-C04nRvTZ.js";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
import
|
|
10
|
+
import fs from "node:fs/promises";
|
|
11
11
|
|
|
12
12
|
//#region src/plugins/install.ts
|
|
13
13
|
const MISSING_EXTENSIONS_ERROR = "package.json missing openclaw.extensions; update the plugin package to include openclaw.extensions (for example [\"./dist/index.js\"]). See https://docs.openclaw.ai/help/troubleshooting#plugin-install-fails-with-missing-openclaw-extensions";
|
|
@@ -237,7 +237,7 @@ async function installPluginFromDir(params) {
|
|
|
237
237
|
ok: false,
|
|
238
238
|
error: `directory not found: ${dirPath}`
|
|
239
239
|
};
|
|
240
|
-
if (!(await
|
|
240
|
+
if (!(await fs.stat(dirPath)).isDirectory()) return {
|
|
241
241
|
ok: false,
|
|
242
242
|
error: `not a directory: ${dirPath}`
|
|
243
243
|
};
|
|
@@ -254,7 +254,7 @@ async function installPluginFromFile(params) {
|
|
|
254
254
|
error: `file not found: ${filePath}`
|
|
255
255
|
};
|
|
256
256
|
const extensionsDir = params.extensionsDir ? resolveUserPath(params.extensionsDir) : path.join(CONFIG_DIR, "extensions");
|
|
257
|
-
await
|
|
257
|
+
await fs.mkdir(extensionsDir, { recursive: true });
|
|
258
258
|
const pluginId = path.basename(filePath, path.extname(filePath)) || "plugin";
|
|
259
259
|
const pluginIdError = validatePluginId(pluginId);
|
|
260
260
|
if (pluginIdError) return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ot as parseCanonicalIpAddress, St as isIpv6Address, vt as isCanonicalDottedDecimalIPv4 } from "./auth-profiles-
|
|
1
|
+
import { Ot as parseCanonicalIpAddress, St as isIpv6Address, vt as isCanonicalDottedDecimalIPv4 } from "./auth-profiles-O2Q8_o0a.js";
|
|
2
2
|
import { o as getTailnetHostname } from "./tailscale-DEC99Hks.js";
|
|
3
3
|
|
|
4
4
|
//#region src/gateway/gateway-config-prompts.shared.ts
|
|
@@ -2,14 +2,14 @@ import { a as logVerbose, c as shouldLogVerbose } from "./globals-d3aR1MYC.js";
|
|
|
2
2
|
import { _ as normalizeAccountId } from "./session-key-CC77ya0a.js";
|
|
3
3
|
import { v as resolveUserPath } from "./utils-BnC3HGtm.js";
|
|
4
4
|
import { t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-DOGMhglv.js";
|
|
5
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
6
|
-
import { y as resolveAccountEntry } from "./accounts-
|
|
7
|
-
import { _ as maxBytesForKind, a as hasAlphaChannel, c as detectMime, l as extensionForMime, m as kindFromMime, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg } from "./image-ops-
|
|
8
|
-
import { s as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-
|
|
9
|
-
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia } from "./fetch-
|
|
5
|
+
import { r as normalizeChannelId } from "./plugins-BPdE2epV.js";
|
|
6
|
+
import { y as resolveAccountEntry } from "./accounts-BkK7T7q3.js";
|
|
7
|
+
import { _ as maxBytesForKind, a as hasAlphaChannel, c as detectMime, l as extensionForMime, m as kindFromMime, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg } from "./image-ops-DQnLLCmy.js";
|
|
8
|
+
import { s as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-CnDw0p6S.js";
|
|
9
|
+
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia } from "./fetch-DpZmzITI.js";
|
|
10
10
|
import { fileURLToPath } from "node:url";
|
|
11
11
|
import path from "node:path";
|
|
12
|
-
import
|
|
12
|
+
import fs from "node:fs/promises";
|
|
13
13
|
import MarkdownIt from "markdown-it";
|
|
14
14
|
|
|
15
15
|
//#region src/markdown/fences.ts
|
|
@@ -387,7 +387,7 @@ async function assertLocalMediaAllowed(mediaPath, localRoots) {
|
|
|
387
387
|
const roots = localRoots ?? getDefaultLocalRoots();
|
|
388
388
|
let resolved;
|
|
389
389
|
try {
|
|
390
|
-
resolved = await
|
|
390
|
+
resolved = await fs.realpath(mediaPath);
|
|
391
391
|
} catch {
|
|
392
392
|
resolved = path.resolve(mediaPath);
|
|
393
393
|
}
|
|
@@ -404,7 +404,7 @@ async function assertLocalMediaAllowed(mediaPath, localRoots) {
|
|
|
404
404
|
for (const root of roots) {
|
|
405
405
|
let resolvedRoot;
|
|
406
406
|
try {
|
|
407
|
-
resolvedRoot = await
|
|
407
|
+
resolvedRoot = await fs.realpath(root);
|
|
408
408
|
} catch {
|
|
409
409
|
resolvedRoot = path.resolve(root);
|
|
410
410
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
|
-
import
|
|
3
|
+
import fs from "node:fs/promises";
|
|
4
4
|
|
|
5
5
|
//#region src/infra/json-files.ts
|
|
6
6
|
async function readJsonFile(filePath) {
|
|
7
7
|
try {
|
|
8
|
-
const raw = await
|
|
8
|
+
const raw = await fs.readFile(filePath, "utf8");
|
|
9
9
|
return JSON.parse(raw);
|
|
10
10
|
} catch {
|
|
11
11
|
return null;
|
|
@@ -23,19 +23,19 @@ async function writeTextAtomic(filePath, content, options) {
|
|
|
23
23
|
const payload = options?.appendTrailingNewline && !content.endsWith("\n") ? `${content}\n` : content;
|
|
24
24
|
const mkdirOptions = { recursive: true };
|
|
25
25
|
if (typeof options?.ensureDirMode === "number") mkdirOptions.mode = options.ensureDirMode;
|
|
26
|
-
await
|
|
26
|
+
await fs.mkdir(path.dirname(filePath), mkdirOptions);
|
|
27
27
|
const tmp = `${filePath}.${randomUUID()}.tmp`;
|
|
28
28
|
try {
|
|
29
|
-
await
|
|
29
|
+
await fs.writeFile(tmp, payload, "utf8");
|
|
30
30
|
try {
|
|
31
|
-
await
|
|
31
|
+
await fs.chmod(tmp, mode);
|
|
32
32
|
} catch {}
|
|
33
|
-
await
|
|
33
|
+
await fs.rename(tmp, filePath);
|
|
34
34
|
try {
|
|
35
|
-
await
|
|
35
|
+
await fs.chmod(filePath, mode);
|
|
36
36
|
} catch {}
|
|
37
37
|
} finally {
|
|
38
|
-
await
|
|
38
|
+
await fs.rm(tmp, { force: true }).catch(() => void 0);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
function createAsyncLock() {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { d as colorize, f as isRich, g as getResolvedLoggerSettings, p as theme } from "./globals-d3aR1MYC.js";
|
|
2
2
|
import { d as resolveIsNixMode } from "./paths-BMo6kTge.js";
|
|
3
3
|
import { i as defaultRuntime } from "./ansi-D8xB67JW.js";
|
|
4
|
-
import { z as loadConfig } from "./auth-profiles-
|
|
4
|
+
import { z as loadConfig } from "./auth-profiles-O2Q8_o0a.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-MESnUO9S.js";
|
|
6
6
|
import { t as resolveGatewayCredentialsFromConfig } from "./credentials-CZ0gzXYo.js";
|
|
7
7
|
import { f as resolveGatewaySystemdServiceName, l as resolveGatewayLaunchAgentLabel, p as resolveGatewayWindowsTaskName } from "./constants-94o94Cc7.js";
|
|
8
|
-
import { t as isWSL } from "./wsl-
|
|
9
|
-
import { r as isSystemdUserServiceAvailable } from "./systemd-
|
|
10
|
-
import { s as resolveGatewayLogPaths } from "./service-
|
|
11
|
-
import { a as checkTokenDrift, n as renderSystemdUnavailableHints } from "./systemd-hints-
|
|
8
|
+
import { t as isWSL } from "./wsl-DCEQRUtE.js";
|
|
9
|
+
import { r as isSystemdUserServiceAvailable } from "./systemd-Z2v3LHpX.js";
|
|
10
|
+
import { s as resolveGatewayLogPaths } from "./service-ByGIhP5D.js";
|
|
11
|
+
import { a as checkTokenDrift, n as renderSystemdUnavailableHints } from "./systemd-hints-DhbLId9K.js";
|
|
12
12
|
import { t as parsePort } from "./parse-port-B2PrGhHs.js";
|
|
13
13
|
import { Writable } from "node:stream";
|
|
14
14
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { l as success, n as info, t as danger } from "./globals-d3aR1MYC.js";
|
|
2
2
|
import { i as defaultRuntime } from "./ansi-D8xB67JW.js";
|
|
3
|
-
import { z as loadConfig } from "./auth-profiles-
|
|
3
|
+
import { z as loadConfig } from "./auth-profiles-O2Q8_o0a.js";
|
|
4
4
|
import { t as formatCliCommand } from "./command-format-MESnUO9S.js";
|
|
5
5
|
import { r as logInfo } from "./logger-BX552_3d.js";
|
|
6
|
-
import { i as resolveWhatsAppAccount, l as logoutWeb } from "./accounts-
|
|
7
|
-
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-
|
|
6
|
+
import { i as resolveWhatsAppAccount, l as logoutWeb } from "./accounts-BkK7T7q3.js";
|
|
7
|
+
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-C-semPd7.js";
|
|
8
8
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
9
9
|
|
|
10
10
|
//#region src/web/login.ts
|
|
@@ -3,10 +3,10 @@ import "./paths-BMo6kTge.js";
|
|
|
3
3
|
import { i as defaultRuntime } from "./ansi-D8xB67JW.js";
|
|
4
4
|
import "./subsystem-sfEQP4fF.js";
|
|
5
5
|
import "./boolean-ydSOedIP.js";
|
|
6
|
-
import { z as loadConfig } from "./auth-profiles-
|
|
7
|
-
import "./agent-scope-
|
|
6
|
+
import { z as loadConfig } from "./auth-profiles-O2Q8_o0a.js";
|
|
7
|
+
import "./agent-scope-DnGYstsz.js";
|
|
8
8
|
import "./utils-BnC3HGtm.js";
|
|
9
|
-
import "./openclaw-root-
|
|
9
|
+
import "./openclaw-root-3A_8MzYe.js";
|
|
10
10
|
import { r as logInfo } from "./logger-BX552_3d.js";
|
|
11
11
|
import "./exec-DQcHcbQy.js";
|
|
12
12
|
import "./registry-CwKS6RIg.js";
|
|
@@ -14,10 +14,10 @@ import "./github-copilot-token-DS1iTsaA.js";
|
|
|
14
14
|
import "./host-env-security-DkAVVuaw.js";
|
|
15
15
|
import "./version-5hWIVAVM.js";
|
|
16
16
|
import "./env-vars-QSsEkFDU.js";
|
|
17
|
-
import "./manifest-registry-
|
|
18
|
-
import { _ as webAuthExists, i as resolveWhatsAppAccount, l as logoutWeb, p as readWebSelfId } from "./accounts-
|
|
17
|
+
import "./manifest-registry-ZTwWlNy8.js";
|
|
18
|
+
import { _ as webAuthExists, i as resolveWhatsAppAccount, l as logoutWeb, p as readWebSelfId } from "./accounts-BkK7T7q3.js";
|
|
19
19
|
import "./logging-CFvkxgcX.js";
|
|
20
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-
|
|
20
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-C-semPd7.js";
|
|
21
21
|
import { randomUUID } from "node:crypto";
|
|
22
22
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
23
23
|
import QRCodeModule from "qrcode-terminal/vendor/QRCode/index.js";
|
|
@@ -3,11 +3,11 @@ import "./paths-BMo6kTge.js";
|
|
|
3
3
|
import { o as clearActiveProgressLine } from "./ansi-D8xB67JW.js";
|
|
4
4
|
import "./subsystem-sfEQP4fF.js";
|
|
5
5
|
import "./boolean-ydSOedIP.js";
|
|
6
|
-
import "./auth-profiles-
|
|
6
|
+
import "./auth-profiles-O2Q8_o0a.js";
|
|
7
7
|
import { t as formatCliCommand } from "./command-format-MESnUO9S.js";
|
|
8
|
-
import "./agent-scope-
|
|
8
|
+
import "./agent-scope-DnGYstsz.js";
|
|
9
9
|
import "./utils-BnC3HGtm.js";
|
|
10
|
-
import "./openclaw-root-
|
|
10
|
+
import "./openclaw-root-3A_8MzYe.js";
|
|
11
11
|
import "./logger-BX552_3d.js";
|
|
12
12
|
import "./exec-DQcHcbQy.js";
|
|
13
13
|
import "./registry-CwKS6RIg.js";
|
|
@@ -15,16 +15,16 @@ import "./github-copilot-token-DS1iTsaA.js";
|
|
|
15
15
|
import "./host-env-security-DkAVVuaw.js";
|
|
16
16
|
import "./version-5hWIVAVM.js";
|
|
17
17
|
import "./env-vars-QSsEkFDU.js";
|
|
18
|
-
import "./manifest-registry-
|
|
18
|
+
import "./manifest-registry-ZTwWlNy8.js";
|
|
19
19
|
import "./message-channel-DOGMhglv.js";
|
|
20
|
-
import "./client-
|
|
21
|
-
import { t as buildGatewayConnectionDetails } from "./call-
|
|
20
|
+
import "./client-DPmb6CIu.js";
|
|
21
|
+
import { t as buildGatewayConnectionDetails } from "./call-DUvxsaBy.js";
|
|
22
22
|
import "./pairing-token-B9orO--h.js";
|
|
23
|
-
import "./net-
|
|
24
|
-
import "./tailnet-
|
|
23
|
+
import "./net-WImcDVCL.js";
|
|
24
|
+
import "./tailnet-CrF4jOdB.js";
|
|
25
25
|
import { t as formatDocsLink } from "./links-DBJiRgR0.js";
|
|
26
26
|
import "./progress-BdIQDPeC.js";
|
|
27
|
-
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-
|
|
27
|
+
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-sfxU7DjV.js";
|
|
28
28
|
import { t as parseLogLine } from "./parse-log-line-Vp8N7lak.js";
|
|
29
29
|
import { setTimeout } from "node:timers/promises";
|
|
30
30
|
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { g as resolveStateDir } from "./paths-BMo6kTge.js";
|
|
2
2
|
import { t as createSubsystemLogger } from "./subsystem-sfEQP4fF.js";
|
|
3
3
|
import { r as isTruthyEnvValue } from "./entry.js";
|
|
4
|
-
import { Ai as normalizeOptionalSecretInput, Zr as retryAsync, gi as resolveEnvApiKey, mi as resolveApiKeyForProvider, pi as requireApiKey } from "./auth-profiles-
|
|
5
|
-
import { a as resolveAgentDir, i as resolveAgentConfig, u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
4
|
+
import { Ai as normalizeOptionalSecretInput, Zr as retryAsync, gi as resolveEnvApiKey, mi as resolveApiKeyForProvider, pi as requireApiKey } from "./auth-profiles-O2Q8_o0a.js";
|
|
5
|
+
import { a as resolveAgentDir, i as resolveAgentConfig, u as resolveAgentWorkspaceDir } from "./agent-scope-DnGYstsz.js";
|
|
6
6
|
import { T as truncateUtf16Safe, i as clampNumber, r as clampInt, v as resolveUserPath } from "./utils-BnC3HGtm.js";
|
|
7
7
|
import { M as normalizeResolvedSecretInputString } from "./registry-CwKS6RIg.js";
|
|
8
8
|
import { s as resolveSessionTranscriptsDirForAgent } from "./paths-0JI_ndQl.js";
|
|
9
9
|
import { n as onSessionTranscriptUpdate } from "./transcript-events-Cso7-m1w.js";
|
|
10
10
|
import { r as formatErrorMessage } from "./errors-By-4EgM8.js";
|
|
11
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
12
|
-
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-
|
|
13
|
-
import { _ as isFileMissingError, a as sessionPathForFile, c as cosineSimilarity, d as isMemoryPath, f as listMemoryFiles, g as runWithConcurrency, h as remapChunkLines, i as listSessionFilesForAgent, l as ensureDir, m as parseEmbedding, n as requireNodeSqlite, o as buildFileEntry, p as normalizeExtraMemoryPaths, r as buildSessionEntry, s as chunkMarkdown, t as extractKeywords, u as hashText, v as statRegularFile } from "./query-expansion-
|
|
11
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-CLZ6u2jq.js";
|
|
12
|
+
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-bH-pRnX0.js";
|
|
13
|
+
import { _ as isFileMissingError, a as sessionPathForFile, c as cosineSimilarity, d as isMemoryPath, f as listMemoryFiles, g as runWithConcurrency, h as remapChunkLines, i as listSessionFilesForAgent, l as ensureDir, m as parseEmbedding, n as requireNodeSqlite, o as buildFileEntry, p as normalizeExtraMemoryPaths, r as buildSessionEntry, s as chunkMarkdown, t as extractKeywords, u as hashText, v as statRegularFile } from "./query-expansion-QQ7-fKJN.js";
|
|
14
14
|
import os from "node:os";
|
|
15
15
|
import path from "node:path";
|
|
16
16
|
import fs from "node:fs";
|
|
17
17
|
import { randomUUID } from "node:crypto";
|
|
18
|
-
import
|
|
18
|
+
import fs$1 from "node:fs/promises";
|
|
19
19
|
import chokidar from "chokidar";
|
|
20
20
|
import { createInterface } from "node:readline";
|
|
21
21
|
import { Readable } from "node:stream";
|
|
@@ -1049,7 +1049,7 @@ async function extractTimestamp(params) {
|
|
|
1049
1049
|
if (!params.workspaceDir) return null;
|
|
1050
1050
|
const absolutePath = path.isAbsolute(params.filePath) ? params.filePath : path.resolve(params.workspaceDir, params.filePath);
|
|
1051
1051
|
try {
|
|
1052
|
-
const stat = await
|
|
1052
|
+
const stat = await fs$1.stat(absolutePath);
|
|
1053
1053
|
if (!Number.isFinite(stat.mtimeMs)) return null;
|
|
1054
1054
|
return new Date(stat.mtimeMs);
|
|
1055
1055
|
} catch {
|
|
@@ -2210,7 +2210,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2210
2210
|
const source = `${sourceBase}${suffix}`;
|
|
2211
2211
|
const target = `${targetBase}${suffix}`;
|
|
2212
2212
|
try {
|
|
2213
|
-
await
|
|
2213
|
+
await fs$1.rename(source, target);
|
|
2214
2214
|
} catch (err) {
|
|
2215
2215
|
if (err.code !== "ENOENT") throw err;
|
|
2216
2216
|
}
|
|
@@ -2221,7 +2221,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2221
2221
|
"",
|
|
2222
2222
|
"-wal",
|
|
2223
2223
|
"-shm"
|
|
2224
|
-
].map((suffix) =>
|
|
2224
|
+
].map((suffix) => fs$1.rm(`${basePath}${suffix}`, { force: true })));
|
|
2225
2225
|
}
|
|
2226
2226
|
ensureSchema() {
|
|
2227
2227
|
const result = ensureMemoryIndexSchema({
|
|
@@ -2316,7 +2316,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2316
2316
|
if (!thresholds) return null;
|
|
2317
2317
|
let stat;
|
|
2318
2318
|
try {
|
|
2319
|
-
stat = await
|
|
2319
|
+
stat = await fs$1.stat(sessionFile);
|
|
2320
2320
|
} catch {
|
|
2321
2321
|
return null;
|
|
2322
2322
|
}
|
|
@@ -2358,7 +2358,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2358
2358
|
if (end <= start) return 0;
|
|
2359
2359
|
let handle;
|
|
2360
2360
|
try {
|
|
2361
|
-
handle = await
|
|
2361
|
+
handle = await fs$1.open(absPath, "r");
|
|
2362
2362
|
} catch (err) {
|
|
2363
2363
|
if (isFileMissingError(err)) return 0;
|
|
2364
2364
|
throw err;
|
|
@@ -3301,7 +3301,7 @@ var MemoryManagerEmbeddingOps = class extends MemoryManagerSyncOps {
|
|
|
3301
3301
|
});
|
|
3302
3302
|
return;
|
|
3303
3303
|
}
|
|
3304
|
-
const content = options.content ?? await
|
|
3304
|
+
const content = options.content ?? await fs$1.readFile(entry.absPath, "utf-8");
|
|
3305
3305
|
const chunks = enforceEmbeddingMaxInputTokens(this.provider, chunkMarkdown(content, this.settings.chunking).filter((chunk) => chunk.text.trim().length > 0), EMBEDDING_BATCH_MAX_TOKENS);
|
|
3306
3306
|
if (options.source === "sessions" && "lineMap" in entry) remapChunkLines(chunks, entry.lineMap);
|
|
3307
3307
|
const embeddings = this.batch.enabled ? await this.embedChunksWithBatch(chunks, entry, options.source) : await this.embedChunksInBatches(chunks);
|
|
@@ -3719,7 +3719,7 @@ var MemoryIndexManager = class MemoryIndexManager extends MemoryManagerEmbedding
|
|
|
3719
3719
|
if (!allowedWorkspace && this.settings.extraPaths.length > 0) {
|
|
3720
3720
|
const additionalPaths = normalizeExtraMemoryPaths(this.workspaceDir, this.settings.extraPaths);
|
|
3721
3721
|
for (const additionalPath of additionalPaths) try {
|
|
3722
|
-
const stat = await
|
|
3722
|
+
const stat = await fs$1.lstat(additionalPath);
|
|
3723
3723
|
if (stat.isSymbolicLink()) continue;
|
|
3724
3724
|
if (stat.isDirectory()) {
|
|
3725
3725
|
if (absPath === additionalPath || absPath.startsWith(`${additionalPath}${path.sep}`)) {
|
|
@@ -3744,7 +3744,7 @@ var MemoryIndexManager = class MemoryIndexManager extends MemoryManagerEmbedding
|
|
|
3744
3744
|
};
|
|
3745
3745
|
let content;
|
|
3746
3746
|
try {
|
|
3747
|
-
content = await
|
|
3747
|
+
content = await fs$1.readFile(absPath, "utf-8");
|
|
3748
3748
|
} catch (err) {
|
|
3749
3749
|
if (isFileMissingError(err)) return {
|
|
3750
3750
|
text: "",
|
|
@@ -3,10 +3,10 @@ import "./paths-BMo6kTge.js";
|
|
|
3
3
|
import "./ansi-D8xB67JW.js";
|
|
4
4
|
import "./subsystem-sfEQP4fF.js";
|
|
5
5
|
import "./boolean-ydSOedIP.js";
|
|
6
|
-
import "./auth-profiles-
|
|
7
|
-
import "./agent-scope-
|
|
6
|
+
import "./auth-profiles-O2Q8_o0a.js";
|
|
7
|
+
import "./agent-scope-DnGYstsz.js";
|
|
8
8
|
import "./utils-BnC3HGtm.js";
|
|
9
|
-
import "./openclaw-root-
|
|
9
|
+
import "./openclaw-root-3A_8MzYe.js";
|
|
10
10
|
import "./logger-BX552_3d.js";
|
|
11
11
|
import "./exec-DQcHcbQy.js";
|
|
12
12
|
import "./registry-CwKS6RIg.js";
|
|
@@ -14,14 +14,14 @@ import "./github-copilot-token-DS1iTsaA.js";
|
|
|
14
14
|
import "./host-env-security-DkAVVuaw.js";
|
|
15
15
|
import "./version-5hWIVAVM.js";
|
|
16
16
|
import "./env-vars-QSsEkFDU.js";
|
|
17
|
-
import "./manifest-registry-
|
|
17
|
+
import "./manifest-registry-ZTwWlNy8.js";
|
|
18
18
|
import "./paths-0JI_ndQl.js";
|
|
19
19
|
import "./redact-BWh_1W9T.js";
|
|
20
20
|
import "./errors-By-4EgM8.js";
|
|
21
|
-
import "./proxy-env
|
|
22
|
-
import "./fetch-guard-
|
|
23
|
-
import "./api-key-rotation-
|
|
24
|
-
import { t as MemoryIndexManager } from "./manager-
|
|
25
|
-
import "./query-expansion-
|
|
21
|
+
import "./proxy-env--152Piqf.js";
|
|
22
|
+
import "./fetch-guard-CLZ6u2jq.js";
|
|
23
|
+
import "./api-key-rotation-bH-pRnX0.js";
|
|
24
|
+
import { t as MemoryIndexManager } from "./manager-CLRUN9PX.js";
|
|
25
|
+
import "./query-expansion-QQ7-fKJN.js";
|
|
26
26
|
|
|
27
27
|
export { MemoryIndexManager };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as resolveConfigDir, u as isRecord, v as resolveUserPath } from "./utils-BnC3HGtm.js";
|
|
2
|
-
import { a as openBoundaryFileSync, p as isPathInside$1 } from "./openclaw-root-
|
|
2
|
+
import { a as openBoundaryFileSync, p as isPathInside$1 } from "./openclaw-root-3A_8MzYe.js";
|
|
3
3
|
import { l as normalizeChatChannelId } from "./registry-CwKS6RIg.js";
|
|
4
4
|
import { n as MANIFEST_KEY } from "./legacy-names-DV-6rguu.js";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
@@ -3,13 +3,13 @@ import { d as colorize, f as isRich, p as theme, s as setVerbose } from "./globa
|
|
|
3
3
|
import { g as resolveStateDir } from "./paths-BMo6kTge.js";
|
|
4
4
|
import { i as defaultRuntime } from "./ansi-D8xB67JW.js";
|
|
5
5
|
import { t as createSubsystemLogger } from "./subsystem-sfEQP4fF.js";
|
|
6
|
-
import { Cn as splitShellArgs, pt as parseDurationMs, z as loadConfig } from "./auth-profiles-
|
|
7
|
-
import { d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
6
|
+
import { Cn as splitShellArgs, pt as parseDurationMs, z as loadConfig } from "./auth-profiles-O2Q8_o0a.js";
|
|
7
|
+
import { d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-DnGYstsz.js";
|
|
8
8
|
import { b as shortenHomeInString, v as resolveUserPath, x as shortenHomePath } from "./utils-BnC3HGtm.js";
|
|
9
9
|
import { s as resolveSessionTranscriptsDirForAgent } from "./paths-0JI_ndQl.js";
|
|
10
10
|
import { r as formatErrorMessage } from "./errors-By-4EgM8.js";
|
|
11
|
-
import { r as getMemoryCommandSecretTargetIds, s as resolveCommandSecretRefsViaGateway } from "./command-secret-targets-
|
|
12
|
-
import { f as listMemoryFiles, p as normalizeExtraMemoryPaths } from "./query-expansion-
|
|
11
|
+
import { r as getMemoryCommandSecretTargetIds, s as resolveCommandSecretRefsViaGateway } from "./command-secret-targets-DjEo9W7_.js";
|
|
12
|
+
import { f as listMemoryFiles, p as normalizeExtraMemoryPaths } from "./query-expansion-QQ7-fKJN.js";
|
|
13
13
|
import { t as formatDocsLink } from "./links-DBJiRgR0.js";
|
|
14
14
|
import { r as withManager } from "./cli-utils-BAoBKJmP.js";
|
|
15
15
|
import { t as formatHelpExamples } from "./help-format-B7MhJztF.js";
|
|
@@ -17,7 +17,7 @@ import { n as withProgress, r as withProgressTotals } from "./progress-BdIQDPeC.
|
|
|
17
17
|
import os from "node:os";
|
|
18
18
|
import path from "node:path";
|
|
19
19
|
import fs from "node:fs";
|
|
20
|
-
import
|
|
20
|
+
import fs$1 from "node:fs/promises";
|
|
21
21
|
|
|
22
22
|
//#region src/memory/backend-config.ts
|
|
23
23
|
const DEFAULT_BACKEND = "builtin";
|
|
@@ -221,7 +221,7 @@ const log = createSubsystemLogger("memory");
|
|
|
221
221
|
const QMD_MANAGER_CACHE = /* @__PURE__ */ new Map();
|
|
222
222
|
let managerRuntimePromise = null;
|
|
223
223
|
function loadManagerRuntime() {
|
|
224
|
-
managerRuntimePromise ??= import("./manager-runtime-
|
|
224
|
+
managerRuntimePromise ??= import("./manager-runtime-BxaiDdDE.js");
|
|
225
225
|
return managerRuntimePromise;
|
|
226
226
|
}
|
|
227
227
|
async function getMemorySearchManager(params) {
|
|
@@ -235,7 +235,7 @@ async function getMemorySearchManager(params) {
|
|
|
235
235
|
if (cached) return { manager: cached };
|
|
236
236
|
}
|
|
237
237
|
try {
|
|
238
|
-
const { QmdMemoryManager } = await import("./qmd-manager-
|
|
238
|
+
const { QmdMemoryManager } = await import("./qmd-manager-Q-iay5w2.js");
|
|
239
239
|
const primary = await QmdMemoryManager.create({
|
|
240
240
|
cfg: params.cfg,
|
|
241
241
|
agentId: params.agentId,
|
|
@@ -453,7 +453,7 @@ async function withMemoryManagerForAgent(params) {
|
|
|
453
453
|
}
|
|
454
454
|
async function checkReadableFile(pathname) {
|
|
455
455
|
try {
|
|
456
|
-
await
|
|
456
|
+
await fs$1.access(pathname, fs.constants.R_OK);
|
|
457
457
|
return { exists: true };
|
|
458
458
|
} catch (err) {
|
|
459
459
|
const code = err.code;
|
|
@@ -470,7 +470,7 @@ async function scanSessionFiles(agentId) {
|
|
|
470
470
|
try {
|
|
471
471
|
return {
|
|
472
472
|
source: "sessions",
|
|
473
|
-
totalFiles: (await
|
|
473
|
+
totalFiles: (await fs$1.readdir(sessionsDir, { withFileTypes: true })).filter((entry) => entry.isFile() && entry.name.endsWith(".jsonl")).length,
|
|
474
474
|
issues
|
|
475
475
|
};
|
|
476
476
|
} catch (err) {
|
|
@@ -502,7 +502,7 @@ async function scanMemoryFiles(workspaceDir, extraPaths = []) {
|
|
|
502
502
|
if (alt.issue) issues.push(alt.issue);
|
|
503
503
|
const resolvedExtraPaths = normalizeExtraMemoryPaths(workspaceDir, extraPaths);
|
|
504
504
|
for (const extraPath of resolvedExtraPaths) try {
|
|
505
|
-
if ((await
|
|
505
|
+
if ((await fs$1.lstat(extraPath)).isSymbolicLink()) continue;
|
|
506
506
|
const extraCheck = await checkReadableFile(extraPath);
|
|
507
507
|
if (extraCheck.issue) issues.push(extraCheck.issue);
|
|
508
508
|
} catch (err) {
|
|
@@ -512,7 +512,7 @@ async function scanMemoryFiles(workspaceDir, extraPaths = []) {
|
|
|
512
512
|
}
|
|
513
513
|
let dirReadable = null;
|
|
514
514
|
try {
|
|
515
|
-
await
|
|
515
|
+
await fs$1.access(memoryDir, fs.constants.R_OK);
|
|
516
516
|
dirReadable = true;
|
|
517
517
|
} catch (err) {
|
|
518
518
|
const code = err.code;
|
|
@@ -560,7 +560,7 @@ async function summarizeQmdIndexArtifact(manager) {
|
|
|
560
560
|
if (!dbPath) return null;
|
|
561
561
|
let stat;
|
|
562
562
|
try {
|
|
563
|
-
stat = await
|
|
563
|
+
stat = await fs$1.stat(dbPath);
|
|
564
564
|
} catch (err) {
|
|
565
565
|
const code = err.code;
|
|
566
566
|
if (code === "ENOENT") throw new Error(`QMD index file not found: ${shortenHomePath(dbPath)}`, { cause: err });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { Fi as DEFAULT_CONTEXT_TOKENS, Sr as normalizeProviderId, sr as resolveOpenClawAgentDir } from "./auth-profiles-
|
|
3
|
-
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-
|
|
2
|
+
import { Fi as DEFAULT_CONTEXT_TOKENS, Sr as normalizeProviderId, sr as resolveOpenClawAgentDir } from "./auth-profiles-O2Q8_o0a.js";
|
|
3
|
+
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-Bs768Cx7.js";
|
|
4
4
|
|
|
5
5
|
//#region src/agents/model-alias-lines.ts
|
|
6
6
|
function buildModelAliasLines(cfg) {
|