activeclaw 2026.4.5 → 2026.4.6
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/{acp-cli-DFNJuSr1.js → acp-cli-DAoO2PiM.js} +9 -9
- package/dist/{acp-cli-CYNmIkev.js → acp-cli-e3Nru-Yh.js} +5 -5
- package/dist/{agent-BLSLlPLk.js → agent-d5Dwm5Vr.js} +8 -8
- package/dist/{agent-CCHm3dnF.js → agent-o_NVopFC.js} +11 -11
- package/dist/{agent-scope-Dv5h0qQE.js → agent-scope-BrJT9Gf9.js} +17 -17
- package/dist/{agents-BxHLH0uE.js → agents-BSbsIbCx.js} +7 -7
- package/dist/{agents.config-CxFlr00u.js → agents.config-63M2f6aF.js} +2 -2
- package/dist/{agents.config-BF0K3aA6.js → agents.config-CLmETqUQ.js} +1 -1
- package/dist/{api-key-rotation-cqcPDbSb.js → api-key-rotation--yH6WXh1.js} +1 -1
- package/dist/{api-key-rotation-BbIb9aas.js → api-key-rotation-BHAUzS3H.js} +2 -2
- package/dist/{api-key-rotation-Cyf-Q4MB.js → api-key-rotation-DeP9Nazr.js} +2 -2
- package/dist/{api-key-rotation-CpK2-BOi.js → api-key-rotation-ysMjkqBD.js} +1 -1
- package/dist/{audio-preflight-L-LZWSbn.js → audio-preflight-Bc4dihum.js} +16 -16
- package/dist/{audio-preflight-DRfaJpBd.js → audio-preflight-DPH8sex1.js} +8 -8
- package/dist/{audio-preflight-ugqpHAQh.js → audio-preflight-Dd3C7mtQ.js} +14 -14
- package/dist/{audio-preflight-BWsuQsJe.js → audio-preflight-DqbhN1m7.js} +4 -4
- package/dist/{audio-transcription-runner-Uz2dTIDx.js → audio-transcription-runner-B02iDYTW.js} +23 -23
- package/dist/{audio-transcription-runner-CovQeJJ8.js → audio-transcription-runner-B8jxT-MB.js} +6 -6
- package/dist/{audio-transcription-runner-BjxrFZhs.js → audio-transcription-runner-DIwGKsNI.js} +4 -4
- package/dist/{audio-transcription-runner-Bt0PplM9.js → audio-transcription-runner-TUBV75w0.js} +11 -11
- package/dist/{audit-CmbdapG_.js → audit-Cg4EdF12.js} +21 -21
- package/dist/{audit-membership-runtime-D-ZeUv63.js → audit-membership-runtime-DK2vsxHN.js} +6 -6
- package/dist/{audit-Dk_eftLe.js → audit-u873Aqoz.js} +7 -7
- package/dist/{auth-CCGOm7j4.js → auth-B7N969mv.js} +1 -1
- package/dist/{auth-Cp-1JzUb.js → auth-Bu24hYWH.js} +1 -1
- package/dist/{auth-choice-DMcjsacO.js → auth-choice-DKqoMQkv.js} +14 -14
- package/dist/{auth-choice-tokGZmzT.js → auth-choice-DPZZulXs.js} +13 -13
- package/dist/{auth-choice-CzIHMC2n.js → auth-choice-DWfkvDEv.js} +18 -18
- package/dist/{auth-choice-BOV3mxdG.js → auth-choice-fWWNZ0CE.js} +12 -12
- package/dist/{auth-choice.apply-helpers-alZH2ST_.js → auth-choice.apply-helpers-CJra1kZX.js} +1 -1
- package/dist/{auth-choice.apply-helpers-C0zKQkgn.js → auth-choice.apply-helpers-D_qbnasd.js} +1 -1
- package/dist/{auth-profiles-B5hyImOM.js → auth-profiles-D9Wn945p.js} +12 -0
- package/dist/{auth-token-BHnzfcUl.js → auth-token-BE6nISKT.js} +1 -1
- package/dist/{auth-token-Bzfws-T-.js → auth-token-DeLPA2C5.js} +1 -1
- package/dist/{banner-MJMqAYlg.js → banner-Ctm-KPnO.js} +1 -1
- package/dist/{bonjour-discovery-B4Fsf8u3.js → bonjour-discovery-CHN01_kY.js} +1 -1
- package/dist/{bonjour-discovery-LLqnJbvr.js → bonjour-discovery-Cak-jClv.js} +1 -1
- package/dist/build-info.json +2 -2
- package/dist/bundled/boot-md/handler.js +27 -27
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-memory/handler.js +26 -26
- package/dist/{call-CKFLqNkw.js → call-7be5mSn_.js} +9 -9
- package/dist/{call-5htJiVxi.js → call-Ce8vjHmH.js} +2 -2
- package/dist/{channel-account-context-BI023AHZ.js → channel-account-context-D9S5HJn4.js} +6 -6
- package/dist/{channel-account-context-CZgEeotA.js → channel-account-context-XxNxKPcm.js} +1 -1
- package/dist/{channel-options-DAKPziI3.js → channel-options-D3pcpSuK.js} +2 -2
- package/dist/{channel-options-DiGuGjgV.js → channel-options-mvX8L4o1.js} +2 -2
- package/dist/{channel-selection-CrnnQqyM.js → channel-selection-Cz7kZ_dd.js} +1 -1
- package/dist/{channel-selection-Dh-j4PE7.js → channel-selection-DMlnEgJc.js} +1 -1
- package/dist/channels/plugins/actions/telegram.js +12 -0
- package/dist/{channels-cli-Lcff68v5.js → channels-cli-CUZNu153.js} +55 -55
- package/dist/{channels-cli-DvKsiDcY.js → channels-cli-D8giagPE.js} +40 -40
- package/dist/{chunk-cNotV828.js → chunk-B0PHAL_m.js} +1 -1
- package/dist/{chunk-DB_LA-72.js → chunk-BSmRwqjw.js} +2 -2
- package/dist/{chunk-I6GfHIkA.js → chunk-D4AO1AEe.js} +1 -1
- package/dist/{cleanup-utils-6oONTdk-.js → cleanup-utils-DuGSE7QL.js} +4 -4
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-Nb2Rv2SE.js → cli-6tWBn9Hf.js} +39 -39
- package/dist/{cli-CX0-e1Do.js → cli-BTBoxnnI.js} +31 -31
- package/dist/{command-registry-B1NKrz1S.js → command-registry-dPZvDdl5.js} +12 -12
- package/dist/{command-secret-targets-DXU9DFeM.js → command-secret-targets-BQ5lbER9.js} +3 -3
- package/dist/{command-secret-targets-CpKxsR1T.js → command-secret-targets-lNjgc0CR.js} +3 -3
- package/dist/{compact-qJ63Ml29.js → compact-DpN1Nt0S.js} +34 -34
- package/dist/{compact.runtime-Cl5rju7L.js → compact.runtime-BFTC4NQ_.js} +9 -9
- package/dist/compact.runtime-BPuV_fJX.js +66 -0
- package/dist/{compact.runtime-B7P5LnIa.js → compact.runtime-BZd2c9ir.js} +31 -31
- package/dist/compact.runtime-Cdc-_-I8.js +28 -0
- package/dist/{completion-cli-DQ5HyrvM.js → completion-cli-BBsE2_OZ.js} +12 -12
- package/dist/{completion-cli-BkGeOB0Y.js → completion-cli-BWNkPwVM.js} +2 -2
- package/dist/{config-cli-BKXR8uQg.js → config-cli-BgEWgmJQ.js} +8 -8
- package/dist/{config-cli-CiLzQLbQ.js → config-cli-tykH1hkE.js} +4 -4
- package/dist/{config-guard-DKS3Bjiu.js → config-guard-DpwVMnwc.js} +3 -3
- package/dist/{config-guard-C5v1W26E.js → config-guard-ahuxxM-z.js} +15 -15
- package/dist/{config-validation-DsiQ4Ig0.js → config-validation-C7b6auM4.js} +2 -2
- package/dist/{config-validation-BKR2V3xN.js → config-validation-CanHLJ8X.js} +2 -2
- package/dist/{configure-JCyEZ5Fd.js → configure-ODmru9jh.js} +17 -17
- package/dist/{configure-B7kIEfSP.js → configure-gLnacCZu.js} +12 -12
- package/dist/{connection-auth-DoyMyMj7.js → connection-auth-Uq6_taV8.js} +1 -1
- package/dist/{connection-auth-_DWNXAV0.js → connection-auth-tv7E7e3R.js} +1 -1
- package/dist/{cron-cli-_jyWnQpP.js → cron-cli-DeTrhoKQ.js} +4 -4
- package/dist/{cron-cli-BS6spxkO.js → cron-cli-gWy7x5uI.js} +8 -8
- package/dist/{daemon-cli-BtKr1oQT.js → daemon-cli-DhF5rs_a.js} +7 -7
- package/dist/{daemon-cli-Be1vZo5e.js → daemon-cli-qKu_98e8.js} +12 -12
- package/dist/daemon-cli.js +12 -0
- package/dist/{daemon-install-DL5tMI7L.js → daemon-install-C3mTkJtr.js} +13 -13
- package/dist/{daemon-install-CAzURxv-.js → daemon-install-DVTKAzGi.js} +6 -6
- package/dist/{deliver-kqa-lgew.js → deliver-BBYhSw-z.js} +4 -4
- package/dist/{deliver-DZveowc3.js → deliver-D2j_qrPV.js} +18 -18
- package/dist/{deliver-CODiAnbo.js → deliver-DIDeQhCe.js} +1 -1
- package/dist/{deliver-C1juSywI.js → deliver-DvOSE6dK.js} +3 -3
- package/dist/deliver-runtime-B_vg9NSW.js +14 -0
- package/dist/{deliver-runtime-C6qB5ZVb.js → deliver-runtime-C0Wbfid0.js} +4 -4
- package/dist/{deliver-runtime-BsHI7dwo.js → deliver-runtime-DT4PMHlo.js} +9 -9
- package/dist/{deliver-runtime-D7Dud7B5.js → deliver-runtime-JgwxHubA.js} +2 -2
- package/dist/{deps-CLLCZe9I.js → deps-Y7mMaM9D.js} +1 -1
- package/dist/{deps-send-telegram.runtime-JtJ6ati5.js → deps-send-telegram.runtime-BIAuW6ip.js} +6 -6
- package/dist/deps-send-telegram.runtime-BMbKZ8Sj.js +19 -0
- package/dist/{deps-send-telegram.runtime-oajdQ06q.js → deps-send-telegram.runtime-C3q7fofC.js} +13 -13
- package/dist/{diagnostic-BXoxaU4W.js → diagnostic-Bbd8nFqt.js} +1 -1
- package/dist/{diagnostic-Booor3n0.js → diagnostic-BgC5_P-R.js} +1 -1
- package/dist/{diagnostic-BpFQ24Me.js → diagnostic-DGCbVfrY.js} +1 -1
- package/dist/{diagnostic-xdfzrdaY.js → diagnostic-G-xDRRdG.js} +2 -2
- package/dist/{diagnostics-DU5X6chC.js → diagnostics-C-VDJRVJ.js} +5 -5
- package/dist/{directory-cli-BuAiyESe.js → directory-cli-C1uCNh_L.js} +2 -2
- package/dist/{directory-cli-CjmZMS9e.js → directory-cli-kNyyepbw.js} +6 -6
- package/dist/{dns-cli-VjcjpJaH.js → dns-cli-Bl34g-49.js} +6 -6
- package/dist/{dns-cli-C3NikSdN.js → dns-cli-C4NOhwp6.js} +2 -2
- package/dist/{docs-cli-Dnr7p-iL.js → docs-cli-Cg3LkXnq.js} +4 -4
- package/dist/{doctor-completion-Cd5Nl3yQ.js → doctor-completion-COnwyNVJ.js} +2 -2
- package/dist/{doctor-completion-Cr_mm4ZQ.js → doctor-completion-Dmg5bIZZ.js} +1 -1
- package/dist/{doctor-config-flow-CACQt_iy.js → doctor-config-flow-BaPH3aqI.js} +6 -6
- package/dist/{doctor-config-flow-Cte0zkRl.js → doctor-config-flow-BcXzOsQs.js} +13 -13
- package/dist/{enable-Cf9rGPag.js → enable-DevEDLTp.js} +1 -1
- package/dist/{enable-DW4lKjBU.js → enable-yZG-yiAJ.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{env-DGWeP3w5.js → env-Bhn5CLil.js} +1 -1
- package/dist/{errors-B27FlGCB.js → errors-Bqf8bSUd.js} +1 -1
- package/dist/{exec-approvals-allowlist-CWZm-Xjt.js → exec-approvals-allowlist-BSEL6MhC.js} +1 -1
- package/dist/{exec-approvals-allowlist-DnjttVeB.js → exec-approvals-allowlist-Be63T3oT.js} +1 -1
- package/dist/{exec-approvals-cli-BHD1xE9Q.js → exec-approvals-cli-BXOXf0aV.js} +5 -5
- package/dist/{exec-approvals-cli-BRCUDW6B.js → exec-approvals-cli-Ckca7X8L.js} +14 -14
- package/dist/{exec-safe-bin-runtime-policy-CObmLqq8.js → exec-safe-bin-runtime-policy-BnTNRx5O.js} +2 -2
- package/dist/{exec-safe-bin-runtime-policy-CjDG3QJD.js → exec-safe-bin-runtime-policy-DbbnAmrV.js} +2 -2
- package/dist/extensionAPI.js +9 -9
- package/dist/{fetch-aXWb4Ao5.js → fetch-BWClp-zV.js} +3 -3
- package/dist/{fetch-C-yIjbz-.js → fetch-DAiV9-bR.js} +1 -1
- package/dist/{fetch-3V1gxxYH.js → fetch-LN1gb6p0.js} +1 -1
- package/dist/{fetch-guard-DDQrBzBv.js → fetch-guard-Bd5oI7xu.js} +3 -3
- package/dist/{fetch-guard-Dsd8UoGA.js → fetch-guard-DGuF8Mhb.js} +1 -1
- package/dist/{fetch-guard-DkMZHPzY.js → fetch-guard-dTCN4rW8.js} +1 -1
- package/dist/{fetch-BXs0KCX9.js → fetch-hiM4UODI.js} +1 -1
- package/dist/{frontmatter-_kVsuvOa.js → frontmatter-CC95HXlE.js} +3 -3
- package/dist/{fs-safe-BLWbfoa6.js → fs-safe-B_UpcQBp.js} +34 -34
- package/dist/{fs-safe-DqIZh4BQ.js → fs-safe-hxxMXweE.js} +4 -4
- package/dist/{gateway-cli-C88jp3Aw.js → gateway-cli-DYQv0bbi.js} +99 -99
- package/dist/{gateway-cli-BOZLG619.js → gateway-cli-bTP1IILL.js} +55 -55
- package/dist/{gateway-install-token-BnQ74gB8.js → gateway-install-token-B7z4nya5.js} +4 -4
- package/dist/{gateway-install-token-qIxBiiV_.js → gateway-install-token-CVO9K6d2.js} +15 -15
- package/dist/{gateway-rpc-D5FI-w_h.js → gateway-rpc-ACgYuynD.js} +2 -2
- package/dist/{gateway-rpc-DZUx1OqN.js → gateway-rpc-DX5S8s8b.js} +2 -2
- package/dist/{github-copilot-token-DJKrUYl0.js → github-copilot-token-CLlAnyEf.js} +7 -7
- package/dist/{health-DhuzyE57.js → health-BPWpRQaJ.js} +4 -4
- package/dist/{health-DKId61cm.js → health-TMNIIFvC.js} +10 -10
- package/dist/{history-cli-BcwU3MKy.js → history-cli-D-sy-eCF.js} +25 -25
- package/dist/{history-cli-DPC2tW70.js → history-cli-HSiD9qOC.js} +11 -11
- package/dist/{hooks-cli-K9Olbeoq.js → hooks-cli-BarLlSI-.js} +46 -46
- package/dist/{hooks-cli-D4EdsaZd.js → hooks-cli-DzToC2dS.js} +32 -32
- package/dist/{hooks-status-DFoUaWp1.js → hooks-status-0HInFKiT.js} +1 -1
- package/dist/{image-xmUgWF9P.js → image-B4HCDVUj.js} +3 -3
- package/dist/{image-DAEA1-oq.js → image-BUEhx-b4.js} +5 -5
- package/dist/{image-B-QmrXyQ.js → image-DHFliGoO.js} +4 -4
- package/dist/{image-Hryb3xjW.js → image-kqy5P4_2.js} +2 -2
- package/dist/{image-runtime-Bq4LW7no.js → image-runtime-8ygTiDaV.js} +3 -3
- package/dist/{image-runtime-EqNC780Y.js → image-runtime-BKnEMJR7.js} +7 -7
- package/dist/{image-runtime-CqQexlZf.js → image-runtime-BtQeLPdH.js} +2 -2
- package/dist/image-runtime-DYqTmna6.js +12 -0
- package/dist/index.js +47 -47
- package/dist/{inspect-3xM6J2Z_.js → inspect-0yj9c1e2.js} +9 -9
- package/dist/{inspect-5BGzxifc.js → inspect-CmvIDefh.js} +1 -1
- package/dist/{installs-Cg8kKBcv.js → installs-DPimnX51.js} +7 -7
- package/dist/{ipv4-DZ8ZOnQk.js → ipv4-DPsEPkzz.js} +1 -1
- package/dist/{ipv4-BllQnUqi.js → ipv4-DkllL_TQ.js} +1 -1
- package/dist/{issue-format-BnnZmmHz.js → issue-format-DbKknWy1.js} +1 -1
- package/dist/{issue-format-Dbw0ZKZU.js → issue-format-hszNX8Io.js} +1 -1
- package/dist/llm-slug-generator.js +26 -26
- package/dist/{local-roots-B0MExwb7.js → local-roots-BZvUgFKO.js} +1 -1
- package/dist/{local-roots-ysSrZ6CP.js → local-roots-CyRw91V8.js} +3 -3
- package/dist/{logger-3NSI7j4D.js → logger-BA9koAaC.js} +6 -6
- package/dist/{logging-CM1xI8yT.js → logging-4UnG2dJ0.js} +1 -1
- package/dist/{logging-B9OKCko2.js → logging-59CroxmQ.js} +2 -2
- package/dist/{logging-C7WfrX3j.js → logging-BHhuGbN8.js} +1 -1
- package/dist/{logs-cli-DogTg6BW.js → logs-cli-B3BYjCxR.js} +8 -8
- package/dist/{logs-cli-DEIVxAcb.js → logs-cli-CZ-nwWSh.js} +4 -4
- package/dist/{manager-CwuAu16U.js → manager-BLYILa5H.js} +14 -14
- package/dist/{manager-D4NBKxDJ.js → manager-BaDp-h4i.js} +23 -23
- package/dist/{manager-BTf5kl5K.js → manager-DF7UBoKp.js} +3 -3
- package/dist/{manager-CxuSPBL7.js → manager-DFiUW_Ha.js} +2 -2
- package/dist/{manager-runtime-BUGnXZoY.js → manager-runtime-BCkunkcv.js} +4 -4
- package/dist/{manager-runtime-DJeYdbHj.js → manager-runtime-CPUoaf4n.js} +3 -3
- package/dist/manager-runtime-DMIUcUdt.js +15 -0
- package/dist/{manager-runtime-CirDe6Yc.js → manager-runtime-DxOKojtv.js} +10 -10
- package/dist/{memory-qo2PyyGc.js → memory-adblmZ7U.js} +5 -5
- package/dist/{memory-cli-B3Wdf8cX.js → memory-cli-BLSGcKsi.js} +3 -3
- package/dist/{memory-cli-DhQM5b25.js → memory-cli-C5dGMHKl.js} +12 -12
- package/dist/{model-catalog-C6EpVMgn.js → model-catalog-BtBiWr2U.js} +3 -3
- package/dist/{model-catalog-C8EYz2dm.js → model-catalog-DlYPcFqP.js} +3 -3
- package/dist/{model-picker-C_xmxZQw.js → model-picker-BZvJOgpa.js} +4 -4
- package/dist/{model-picker-93hk8EPQ.js → model-picker-BdabNhjk.js} +3 -3
- package/dist/{model-selection-BrTh8v9L.js → model-selection-CvKAj7nY.js} +102 -90
- package/dist/{model-selection-CftqhKNS.js → model-selection-DU-DNNW7.js} +63 -51
- package/dist/{model-selection-CS_9NrTE.js → model-selection-PlvJPOJ9.js} +12 -0
- package/dist/{models-Bol0QzVD.js → models-B2oGZOi7.js} +12 -12
- package/dist/{models-cli-kMKsts8T.js → models-cli-BGxdkTHM.js} +38 -38
- package/dist/{models-cli-DrLVOzUK.js → models-cli-Dr7f4M9k.js} +50 -50
- package/dist/{models-config-B9HFg-NI.js → models-config-Cg9vUkxp.js} +1 -1
- package/dist/{models-config-yo6Auh6b.js → models-config-xqqHZFkg.js} +7 -7
- package/dist/{npm-pack-install-BNF-iM37.js → npm-pack-install-BlYIroXs.js} +54 -54
- package/dist/{npm-resolution-Dc-9fZOQ.js → npm-resolution-CPR5hN9l.js} +4 -4
- package/dist/{npm-resolution-BO6SGdLs.js → npm-resolution-rTNTkWiL.js} +2 -2
- package/dist/{ollama-setup-Bhphyk4x.js → ollama-setup-C0EKmICU.js} +2 -2
- package/dist/{ollama-setup-DrJZug5K.js → ollama-setup-bTrV2RqI.js} +2 -2
- package/dist/{onboard-DoZZHyp1.js → onboard-CD3xyxv4.js} +7 -7
- package/dist/{onboard-C88F-Y13.js → onboard-Clal53cK.js} +7 -7
- package/dist/{onboard-channels-CKg0sLah.js → onboard-channels-CIp5xU1C.js} +5 -5
- package/dist/{onboard-channels-D8cEPFj3.js → onboard-channels-DoXdjnDu.js} +9 -9
- package/dist/{onboard-custom-CaacLXtg.js → onboard-custom-C3vRGHsc.js} +4 -4
- package/dist/{onboard-custom-CIE9LcFk.js → onboard-custom-W8wE0yre.js} +4 -4
- package/dist/{onboard-helpers-xbYuvLLu.js → onboard-helpers-C-tI0ORj.js} +8 -8
- package/dist/{onboard-helpers-B1g1N_R7.js → onboard-helpers-Dt3bHndL.js} +3 -3
- package/dist/{onboard-hooks-D2rz49Q8.js → onboard-hooks-BKK6FS_-.js} +4 -4
- package/dist/{onboard-remote-irbTZQ8D.js → onboard-remote-CnGUK4s9.js} +4 -4
- package/dist/{onboard-remote-DR0hiGln.js → onboard-remote-DUkT-5yX.js} +4 -4
- package/dist/{onboarding-CGx-wanB.js → onboarding-BXIBW9kp.js} +15 -15
- package/dist/{onboarding-CuMZLiwZ.js → onboarding-x5l1g4q6.js} +14 -14
- package/dist/{onboarding.finalize-CT3LVJ86.js → onboarding.finalize-B9dNdZ8n.js} +40 -40
- package/dist/{onboarding.finalize-4_qfJYB5.js → onboarding.finalize-CidZPV2S.js} +52 -52
- package/dist/{onboarding.gateway-config-BLn29YYn.js → onboarding.gateway-config-CllJn7mn.js} +11 -11
- package/dist/{onboarding.gateway-config-DBTVHN2e.js → onboarding.gateway-config-JJXnuJ29.js} +7 -7
- package/dist/{onboarding.secret-input-DSFE38xZ.js → onboarding.secret-input-Bmjiy8T4.js} +1 -1
- package/dist/{onboarding.secret-input-BI289pRS.js → onboarding.secret-input-DkAfkFVQ.js} +1 -1
- package/dist/{openai-codex-model-default-CvwSM6Hd.js → openai-codex-model-default-5GXfiA_D.js} +3 -3
- package/dist/{openai-codex-model-default-CNxuNGcG.js → openai-codex-model-default-BYIJH6vZ.js} +2 -2
- package/dist/{openai-model-default-BJAcSXF0.js → openai-model-default-DvF5RAGp.js} +2 -2
- package/dist/{openai-model-default-CHxnrkRk.js → openai-model-default-GgDZhvmV.js} +2 -2
- package/dist/{openclaw-root-B6cGCDGF.js → openclaw-root-DbbVtnL2.js} +8 -8
- package/dist/{outbound-send-deps-BfOiemtW.js → outbound-send-deps-ClezclXA.js} +1 -1
- package/dist/{outbound-send-deps-Ds9befoI.js → outbound-send-deps-DBVk1Se1.js} +1 -1
- package/dist/{pairing-cli-KQ0Gil81.js → pairing-cli-CYBWOxx2.js} +6 -6
- package/dist/{pairing-cli-DopHOckK.js → pairing-cli-rMFQX66I.js} +2 -2
- package/dist/{pairing-store-4ajjzoih.js → pairing-store-BeeSJLPy.js} +1 -1
- package/dist/{pairing-store-CGmLbKax.js → pairing-store-Dr8a_B6n.js} +1 -1
- package/dist/{path-alias-guards-DJQOJx9a.js → path-alias-guards-DBFU_Tqb.js} +3 -3
- package/dist/{path-safety-9zsLqD77.js → path-safety-CfDs7X4h.js} +1 -1
- package/dist/{paths-E3CbCLxE.js → paths-Bg_l6kdG.js} +7 -7
- package/dist/{paths-DHNo4U8q.js → paths-L_hqOE5A.js} +5 -5
- package/dist/{pi-embedded-Lk0-wBVJ.js → pi-embedded-0VIfw7tV.js} +19 -19
- package/dist/{pi-embedded-LWGrAjSd.js → pi-embedded-DbOc1rhk.js} +115 -115
- package/dist/{pi-model-discovery-CocLN2I9.js → pi-model-discovery-7pqY2wzA.js} +1 -1
- package/dist/{pi-model-discovery-BfCU9u9n.js → pi-model-discovery-BOkx-R2x.js} +7 -7
- package/dist/{pi-model-discovery-DmsAxxli.js → pi-model-discovery-DFqVpswz.js} +1 -1
- package/dist/{pi-model-discovery-BHnYQuJe.js → pi-model-discovery-DQwd8eWZ.js} +1 -1
- package/dist/{pi-model-discovery-runtime-BB9O_19w.js → pi-model-discovery-runtime-BKwEjlY0.js} +6 -6
- package/dist/{pi-model-discovery-runtime-BM8W_E1B.js → pi-model-discovery-runtime-C_LjYTlu.js} +2 -2
- package/dist/{pi-model-discovery-runtime-DlSVUM4a.js → pi-model-discovery-runtime-DkNoyqZg.js} +2 -2
- package/dist/pi-model-discovery-runtime-uYSpi8_B.js +12 -0
- package/dist/{pi-tools.before-tool-call.runtime-YTBO0yhV.js → pi-tools.before-tool-call.runtime-CXBOjjBj.js} +2 -2
- package/dist/{pi-tools.before-tool-call.runtime-CbaZrfQj.js → pi-tools.before-tool-call.runtime-DfImcnUe.js} +2 -2
- package/dist/{pi-tools.before-tool-call.runtime-CZVSauJE.js → pi-tools.before-tool-call.runtime-gCJet3xa.js} +10 -10
- package/dist/{pi-tools.before-tool-call.runtime-yg3vl2rw.js → pi-tools.before-tool-call.runtime-mhmSMpSo.js} +6 -6
- package/dist/{pi-tools.policy-B8nfuYT3.js → pi-tools.policy-D6UiE_gG.js} +2 -2
- package/dist/{plugin-auto-enable-POm3kIKs.js → plugin-auto-enable-BYUBkHiG.js} +2 -2
- package/dist/{plugin-auto-enable-DKIdWd3o.js → plugin-auto-enable-fQ-uJndS.js} +1 -1
- package/dist/{plugin-install-plan-BhKQJYE9.js → plugin-install-plan-Dc8oPEOd.js} +1 -1
- package/dist/{plugin-registry-BLdJsHwq.js → plugin-registry-D5bAzbQy.js} +3 -3
- package/dist/{plugin-registry-DMXyfhbZ.js → plugin-registry-FMZRN3Ae.js} +2 -2
- package/dist/plugin-sdk/compat.js +12 -0
- package/dist/plugin-sdk/config/zod-schema.agent-defaults.d.ts +12 -0
- package/dist/plugin-sdk/config/zod-schema.agents.d.ts +12 -0
- package/dist/plugin-sdk/config/zod-schema.d.ts +12 -0
- package/dist/plugin-sdk/index.js +14 -2
- package/dist/plugin-sdk/telegram.js +14 -2
- package/dist/{plugins-cli-Mefrnu70.js → plugins-cli-N0WJ-bcK.js} +33 -33
- package/dist/{plugins-cli-Ckbdtcng.js → plugins-cli-Rgx--0P6.js} +49 -49
- package/dist/{ports-DoRPPhz1.js → ports-BKzkl2Nt.js} +2 -2
- package/dist/{ports-BgVXI3Be.js → ports-C6HO6zSD.js} +2 -2
- package/dist/{probe-auth-ClUveUpg.js → probe-auth-BhN3PhE1.js} +3 -3
- package/dist/{probe-auth-Dzz0uFIe.js → probe-auth-CBWjkGhd.js} +2 -2
- package/dist/{program-D992fHH9.js → program-B8-8_sev.js} +38 -38
- package/dist/{program-context-CKwgiqKA.js → program-context-DFu0VnTR.js} +35 -35
- package/dist/{prompt-select-styled-8JBrpJWx.js → prompt-select-styled-BRbUYwP5.js} +17 -17
- package/dist/{prompt-select-styled-Dj1guzwc.js → prompt-select-styled-CtJff3Gr.js} +28 -28
- package/dist/{provider-auth-helpers-YFTUV89g.js → provider-auth-helpers-BosQdg02.js} +5 -5
- package/dist/{provider-auth-helpers-Bt0HFLar.js → provider-auth-helpers-DOEJVM8b.js} +5 -5
- package/dist/{proxy-fetch-CuFiQFud.js → proxy-fetch-Spr_UMJ3.js} +1 -1
- package/dist/{qmd-manager-oxRfJV8J.js → qmd-manager-D5-UET4f.js} +7 -7
- package/dist/{qmd-manager-nnyEgnFp.js → qmd-manager-ZIMvAkMU.js} +20 -20
- package/dist/{query-expansion-CcJjpvgi.js → query-expansion-Czp8kqRG.js} +4 -4
- package/dist/{read-only-account-inspect-CWAyFOOe.js → read-only-account-inspect-sMyuBIwr.js} +3 -3
- package/dist/{redact-snapshot-CHOdPFBK.js → redact-snapshot-BhnwKwS_.js} +1 -1
- package/dist/{redact-snapshot-D2yDzyhm.js → redact-snapshot-esDYkCHN.js} +1 -1
- package/dist/{register.agent-CDre9OAT.js → register.agent-BLoojMSb.js} +49 -49
- package/dist/{register.agent-DJ14KYnV.js → register.agent-WN58ukFs.js} +65 -65
- package/dist/{register.backup-D0G-W10-.js → register.backup-DQtt76Pg.js} +1 -1
- package/dist/{register.backup-BDdG0ZZu.js → register.backup-DtwFlodN.js} +22 -22
- package/dist/register.configure-DBV1cDMO.js +117 -0
- package/dist/{register.configure-MZ2oMFlt.js → register.configure-iqLpf_vJ.js} +53 -53
- package/dist/{register.maintenance-8vlFCAL5.js → register.maintenance--G4Ezr1u.js} +46 -46
- package/dist/{register.maintenance-CB5u00DB.js → register.maintenance-JmxWnFLm.js} +59 -59
- package/dist/{register.message-B3Iqneie.js → register.message-B2Mo2hx9.js} +42 -42
- package/dist/{register.message-LPqeYXRd.js → register.message-DMa5MRsS.js} +33 -33
- package/dist/{register.onboard-DHr-W74h.js → register.onboard-B89iRFyV.js} +13 -13
- package/dist/{register.onboard-CTTwVj8d.js → register.onboard-iNt0A322.js} +8 -8
- package/dist/{register.setup-Dqfw5uEI.js → register.setup-CBwr4_Ob.js} +8 -8
- package/dist/{register.setup-C3kh_TbN.js → register.setup-DQ-uaQd4.js} +16 -16
- package/dist/{register.status-health-sessions-QpojEQ9d.js → register.status-health-sessions-B-2y3jIc.js} +52 -52
- package/dist/{register.status-health-sessions-DRKMAlro.js → register.status-health-sessions-CrW3NDOK.js} +40 -40
- package/dist/{register.subclis-iSDvGATC.js → register.subclis-DF5yhf7D.js} +23 -23
- package/dist/{reply-Bf21Hr1C.js → reply-OIc7wENR.js} +116 -116
- package/dist/{run-log-BqSHMnAd.js → run-log-D3XR2BLm.js} +13 -13
- package/dist/{run-log-CjYAiVe8.js → run-log-Q89iJgvA.js} +1 -1
- package/dist/{run-main-qumIkFEs.js → run-main-CbzvI1iB.js} +51 -51
- package/dist/{runtime-B8hPSCRB.js → runtime-DpfmBWKQ.js} +2 -2
- package/dist/{runtime-CCYCyl1P.js → runtime-hakwcpul.js} +3 -3
- package/dist/{runtime-web-tools-gpT7ZniL.js → runtime-web-tools-BZcX_oAn.js} +2 -2
- package/dist/{runtime-web-tools-CRJ-iI9c.js → runtime-web-tools-CWlvqBpH.js} +2 -2
- package/dist/{sandbox-cli-cb2ui3Pc.js → sandbox-cli-BLBFMAgV.js} +1 -1
- package/dist/{sandbox-cli-BwX10ANz.js → sandbox-cli-CWgKwadY.js} +5 -5
- package/dist/{search-manager-CjC4g5lJ.js → search-manager-Bj4BRNiF.js} +1 -1
- package/dist/{secret-file-BaxohaZh.js → secret-file-9CYwZJSc.js} +1 -1
- package/dist/{secret-file-DcuJtucq.js → secret-file-BCAZa3Jw.js} +1 -1
- package/dist/{secrets-cli-BSv3yeQa.js → secrets-cli-B-LFbTtv.js} +10 -10
- package/dist/{secrets-cli-CYAGIMSW.js → secrets-cli-DOf7NbbB.js} +6 -6
- package/dist/{security-cli-Dk67sFGR.js → security-cli-B2iw16q9.js} +21 -21
- package/dist/{security-cli-CPjzUYo3.js → security-cli-DbRGAdz_.js} +10 -10
- package/dist/{send-DAr4cmzw.js → send-BeUTtwRC.js} +11 -11
- package/dist/{send-CP84wq9N.js → send-CU6MWFln.js} +28 -28
- package/dist/{send-CeA0VP-c.js → send-TlYsQWZw.js} +4 -4
- package/dist/{service-Cfk6VWeP.js → service-kXk8K3mn.js} +13 -13
- package/dist/{session-utils-G8TPVqDh.js → session-utils-5dTolcMA.js} +3 -3
- package/dist/{sessions-DghMB51-.js → sessions-CNRe8TkE.js} +2 -2
- package/dist/{shared-C6ksnJEO.js → shared-C_hG8rgh.js} +1 -1
- package/dist/{skill-scanner-B8J7JGHG.js → skill-scanner-djTgcKux.js} +7 -7
- package/dist/{skills-Mq1GCIyL.js → skills-D7xInzjY.js} +2 -2
- package/dist/{sqlite-DMwlw8gY.js → sqlite-BXiqNpZr.js} +14 -14
- package/dist/{status-BkoerIVk.js → status-BWvpeDQr.js} +1 -1
- package/dist/{status-C2lZy-Fn.js → status-DlhZNZRA.js} +1 -1
- package/dist/{status-DN1kwt_G.js → status-XHz3g6hB.js} +22 -22
- package/dist/{status-CLNIJHL1.js → status-_r2NL6m9.js} +13 -13
- package/dist/{status.update-CVnOl9T7.js → status.update-BC8_WNUD.js} +1 -1
- package/dist/{status.update-B7WMKBpu.js → status.update-s77gig85.js} +3 -3
- package/dist/subagent-registry-runtime-4Iq7_pTU.js +28 -0
- package/dist/{subagent-registry-runtime-BejBDRIf.js → subagent-registry-runtime-CEms3TqA.js} +9 -9
- package/dist/{subagent-registry-runtime-C2amjBau.js → subagent-registry-runtime-CqZrbR_5.js} +39 -39
- package/dist/{subagent-registry-runtime-sAeDnTD0.js → subagent-registry-runtime-HMP_iPKA.js} +31 -31
- package/dist/{subsystem-Br253I8q.js → subsystem-CDH9S_yW.js} +14 -14
- package/dist/{system-cli-C_xi1PG1.js → system-cli-CJfVDX21.js} +4 -4
- package/dist/{system-cli-CmjCyWeV.js → system-cli-CgYFKf5C.js} +8 -8
- package/dist/{systemd-linger-8q_0YAMa.js → systemd-linger-CQCpuIm8.js} +1 -1
- package/dist/{systemd-B5QGtWUt.js → systemd-lqHMKF03.js} +11 -11
- package/dist/{tailnet-BII1rF_F.js → tailnet-Dd530XEB.js} +1 -1
- package/dist/{tailnet-GA0Saj6K.js → tailnet-lUwvztzP.js} +1 -1
- package/dist/{update-cli-Cta7h1PN.js → update-cli-TBdp8aQn.js} +69 -69
- package/dist/{update-cli-DT51qYuH.js → update-cli-obZZqciv.js} +49 -49
- package/dist/{update-B16VTBdW.js → update-lBwZcNEP.js} +2 -2
- package/dist/{update-runner-Dk9ujIjY.js → update-runner-Dh84Ivzm.js} +16 -16
- package/dist/{update-runner-D0FkcfIv.js → update-runner-DwRQE_g4.js} +4 -4
- package/dist/{webhooks-cli-DUi__sSq.js → webhooks-cli-D5ytuSnf.js} +1 -1
- package/dist/{webhooks-cli-fEwB1QWy.js → webhooks-cli-DGY-qrop.js} +5 -5
- package/dist/{workspace-DaDGuTlc.js → workspace-DY5PSKK1.js} +1 -1
- package/dist/{workspace-DRRA3YH5.js → workspace-DiYGwuGk.js} +20 -20
- package/dist/{writer-CBLUHPFY.js → writer-ChWOWmJt.js} +1 -1
- package/dist/{writer-DW7GwLNb.js → writer-Mpvw_WMM.js} +8 -8
- package/extensions/acpx/node_modules/.bin/acpx +3 -7
- package/extensions/diagnostics-otel/node_modules/.bin/acorn +3 -7
- package/extensions/diffs/node_modules/.bin/playwright-core +3 -7
- package/extensions/googlechat/node_modules/.bin/openclaw +17 -0
- package/extensions/matrix/node_modules/.bin/markdown-it +17 -0
- package/extensions/memory-core/node_modules/.bin/openclaw +17 -0
- package/extensions/memory-core/package.json +11 -0
- package/extensions/memory-lancedb/node_modules/.bin/arrow2csv +3 -7
- package/extensions/memory-lancedb/node_modules/.bin/openai +3 -7
- package/extensions/tlon/node_modules/.bin/tlon +17 -0
- package/package.json +2 -2
- package/dist/compact.runtime-B3XexHCz.js +0 -28
- package/dist/compact.runtime-BTNt86Cy.js +0 -66
- package/dist/deliver-runtime-DP7LMYJz.js +0 -14
- package/dist/deps-send-telegram.runtime-CNQMFHHL.js +0 -19
- package/dist/image-runtime-BKlmPwGz.js +0 -12
- package/dist/manager-runtime-BIERqG19.js +0 -15
- package/dist/pi-model-discovery-runtime-BRBH9-81.js +0 -12
- package/dist/register.configure-B6etuAnH.js +0 -117
- package/dist/subagent-registry-runtime-BBvfeFxp.js +0 -28
- package/extensions/google-antigravity-auth/node_modules/.bin/openclaw +0 -21
- package/extensions/memory-core/node_modules/.bin/nlc +0 -21
- package/extensions/memory-core/node_modules/.bin/node-llama-cpp +0 -21
- package/extensions/memory-core/node_modules/.bin/tsc +0 -21
- package/extensions/memory-core/node_modules/.bin/tsserver +0 -21
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as theme, k as isRich, p as defaultRuntime } from "./subsystem-BEF5zTJO.js";
|
|
2
2
|
import { g as resolveStateDir, m as resolveOAuthDir, o as resolveConfigPath } from "./paths-BfR2LXbA.js";
|
|
3
3
|
import "./boolean-BHdNsbzF.js";
|
|
4
|
-
import { Ai as createConfigIO, Mi as loadConfig } from "./auth-profiles-
|
|
4
|
+
import { Ai as createConfigIO, Mi as loadConfig } from "./auth-profiles-D9Wn945p.js";
|
|
5
5
|
import { i as formatCliCommand } from "./scan-paths-1Ht0wvdC.js";
|
|
6
6
|
import { d as resolveDefaultAgentId } from "./agent-scope-OAwT1oHV.js";
|
|
7
7
|
import { h as DEFAULT_ACCOUNT_ID, s as normalizeAgentId } from "./session-key-9lbhEIb9.js";
|
|
@@ -20,23 +20,23 @@ import "./path-alias-guards-DHv0a8uY.js";
|
|
|
20
20
|
import "./plugins-DRDN4jFP.js";
|
|
21
21
|
import "./paths-B-JdyKTL.js";
|
|
22
22
|
import "./chat-envelope-t_PEbhWC.js";
|
|
23
|
-
import "./exec-approvals-allowlist-
|
|
24
|
-
import "./exec-safe-bin-runtime-policy-
|
|
23
|
+
import "./exec-approvals-allowlist-Be63T3oT.js";
|
|
24
|
+
import "./exec-safe-bin-runtime-policy-BnTNRx5O.js";
|
|
25
25
|
import "./errors-BaSZYLcU.js";
|
|
26
26
|
import "./commands-BWrE-bab.js";
|
|
27
|
-
import "./call-
|
|
28
|
-
import "./tailnet-
|
|
29
|
-
import "./pi-tools.policy-
|
|
30
|
-
import { i as readChannelAllowFromStore } from "./pairing-store-
|
|
27
|
+
import "./call-Ce8vjHmH.js";
|
|
28
|
+
import "./tailnet-Dd530XEB.js";
|
|
29
|
+
import "./pi-tools.policy-D6UiE_gG.js";
|
|
30
|
+
import { i as readChannelAllowFromStore } from "./pairing-store-BeeSJLPy.js";
|
|
31
31
|
import { t as formatDocsLink } from "./links-hlmnhfEU.js";
|
|
32
32
|
import { t as formatHelpExamples } from "./help-format-D89JlW3L.js";
|
|
33
33
|
import "./dangerous-tools-BZDxNIXz.js";
|
|
34
34
|
import "./skill-scanner-owyfHlsM.js";
|
|
35
35
|
import "./prompt-Bz3qtVYy.js";
|
|
36
36
|
import "./tailscale-aoZb27we.js";
|
|
37
|
-
import "./auth-
|
|
38
|
-
import "./probe-auth-
|
|
39
|
-
import { r as collectIncludePathsRecursive, t as runSecurityAudit } from "./audit-
|
|
37
|
+
import "./auth-B7N969mv.js";
|
|
38
|
+
import "./probe-auth-CBWjkGhd.js";
|
|
39
|
+
import { r as collectIncludePathsRecursive, t as runSecurityAudit } from "./audit-u873Aqoz.js";
|
|
40
40
|
import path from "node:path";
|
|
41
41
|
import fs from "node:fs/promises";
|
|
42
42
|
//#region src/security/fix.ts
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { S as logVerbose, T as shouldLogVerbose, t as createSubsystemLogger, v as danger } from "./subsystem-Dk5WUhC2.js";
|
|
2
2
|
import { g as resolveUserPath } from "./utils-CGU7Q77u.js";
|
|
3
|
-
import { $ as resolveRetryConfig, $a as writeConfigFile, Is as resolveTelegramPreviewStreamMode, Jt as resizeToJpeg, Kt as hasAlphaChannel, Wa as loadConfig, Wt as convertHeicToJpeg, Ya as readConfigFileSnapshotForWrite, Zr as resolveTelegramAccount, et as retryAsync, li as resolveAccountEntry, qt as optimizeImageToPng } from "./model-selection-
|
|
3
|
+
import { $ as resolveRetryConfig, $a as writeConfigFile, Is as resolveTelegramPreviewStreamMode, Jt as resizeToJpeg, Kt as hasAlphaChannel, Wa as loadConfig, Wt as convertHeicToJpeg, Ya as readConfigFileSnapshotForWrite, Zr as resolveTelegramAccount, et as retryAsync, li as resolveAccountEntry, qt as optimizeImageToPng } from "./model-selection-DU-DNNW7.js";
|
|
4
4
|
import { g as normalizeAccountId } from "./session-key-VV3RvEri.js";
|
|
5
|
-
import { i as redactSensitiveText } from "./path-alias-guards-
|
|
5
|
+
import { i as redactSensitiveText } from "./path-alias-guards-DBFU_Tqb.js";
|
|
6
6
|
import { r as normalizeChannelId } from "./plugins-Delv1GbW.js";
|
|
7
|
-
import { a as extensionForMime, c as isGifMedia, f as maxBytesForKind, i as detectMime, l as kindFromMime, n as fetchRemoteMedia, o as getFileExtension, u as normalizeMimeType } from "./fetch-
|
|
8
|
-
import { i as formatUncaughtError, n as extractErrorCode, r as formatErrorMessage, s as readErrorName, t as collectErrorGraphCandidates } from "./errors-
|
|
9
|
-
import { n as getDefaultMediaLocalRoots } from "./local-roots-
|
|
7
|
+
import { a as extensionForMime, c as isGifMedia, f as maxBytesForKind, i as detectMime, l as kindFromMime, n as fetchRemoteMedia, o as getFileExtension, u as normalizeMimeType } from "./fetch-DAiV9-bR.js";
|
|
8
|
+
import { i as formatUncaughtError, n as extractErrorCode, r as formatErrorMessage, s as readErrorName, t as collectErrorGraphCandidates } from "./errors-Bqf8bSUd.js";
|
|
9
|
+
import { n as getDefaultMediaLocalRoots } from "./local-roots-BZvUgFKO.js";
|
|
10
10
|
import { n as makeProxyFetch } from "./proxy-fetch-Cbsa1-1O.js";
|
|
11
|
-
import { a as chunkText, f as normalizeTelegramChatId, m as parseTelegramTarget, p as normalizeTelegramLookupTarget } from "./chunk-
|
|
12
|
-
import { c as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-
|
|
13
|
-
import { i as readChannelAllowFromStore } from "./pairing-store-
|
|
11
|
+
import { a as chunkText, f as normalizeTelegramChatId, m as parseTelegramTarget, p as normalizeTelegramLookupTarget } from "./chunk-D4AO1AEe.js";
|
|
12
|
+
import { c as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-B_UpcQBp.js";
|
|
13
|
+
import { i as readChannelAllowFromStore } from "./pairing-store-Dr8a_B6n.js";
|
|
14
14
|
import { n as isSenderIdAllowed, r as mergeDmAllowFromSources, t as firstDefined } from "./allow-from-6PZpjJrk.js";
|
|
15
15
|
import { t as resolveTelegramFetch } from "./fetch-CLE5aXgx.js";
|
|
16
16
|
import { n as resolveCronStorePath, r as saveCronStore, t as loadCronStore } from "./store-BYAXpd4r.js";
|
|
17
17
|
import { fileURLToPath } from "node:url";
|
|
18
18
|
import path from "node:path";
|
|
19
|
-
import
|
|
19
|
+
import fsPromises from "node:fs/promises";
|
|
20
20
|
import { Bot, HttpError, InputFile } from "grammy";
|
|
21
21
|
import "@buape/carbon";
|
|
22
22
|
import MarkdownIt from "markdown-it";
|
|
@@ -87,7 +87,7 @@ async function assertLocalMediaAllowed(mediaPath, localRoots) {
|
|
|
87
87
|
const roots = localRoots ?? getDefaultLocalRoots();
|
|
88
88
|
let resolved;
|
|
89
89
|
try {
|
|
90
|
-
resolved = await
|
|
90
|
+
resolved = await fsPromises.realpath(mediaPath);
|
|
91
91
|
} catch {
|
|
92
92
|
resolved = path.resolve(mediaPath);
|
|
93
93
|
}
|
|
@@ -104,7 +104,7 @@ async function assertLocalMediaAllowed(mediaPath, localRoots) {
|
|
|
104
104
|
for (const root of roots) {
|
|
105
105
|
let resolvedRoot;
|
|
106
106
|
try {
|
|
107
|
-
resolvedRoot = await
|
|
107
|
+
resolvedRoot = await fsPromises.realpath(root);
|
|
108
108
|
} catch {
|
|
109
109
|
resolvedRoot = path.resolve(root);
|
|
110
110
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { _ as redactSensitiveText } from "./paths-
|
|
2
|
-
import { a as resolveOAuthDir, c as expandHomePrefix, s as resolveStateDir, u as resolveRequiredHomeDir } from "./paths-
|
|
3
|
-
import { d as logVerbose, l as danger, m as shouldLogVerbose, t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import { q as normalizeAccountId } from "./workspace-
|
|
5
|
-
import { a as CONFIG_DIR, g as safeParseJson, h as resolveUserPath } from "./logger-
|
|
6
|
-
import { E as retryAsync, Er as writeJsonAtomic, Gn as normalizeChannelId, T as resolveRetryConfig, Un as getChannelPlugin, Wn as listChannelPlugins, Xa as resolveTelegramPreviewStreamMode, do as withFileLock$1, dt as convertHeicToJpeg, fi as readConfigFileSnapshotForWrite, hi as writeConfigFile, ht as resizeToJpeg, li as loadConfig, mt as optimizeImageToPng, pt as hasAlphaChannel, sr as resolveAccountEntry, tr as resolveTelegramAccount } from "./model-selection-
|
|
7
|
-
import { a as chunkText, f as normalizeTelegramChatId, m as parseTelegramTarget, p as normalizeTelegramLookupTarget } from "./chunk-
|
|
8
|
-
import { a as extensionForMime, c as isGifMedia, f as maxBytesForKind, i as detectMime, l as kindFromMime, n as fetchRemoteMedia, o as getFileExtension, u as normalizeMimeType } from "./fetch-
|
|
9
|
-
import { n as getDefaultMediaLocalRoots } from "./local-roots-
|
|
10
|
-
import { c as formatErrorMessage, l as formatUncaughtError, o as collectErrorGraphCandidates, s as extractErrorCode, u as readErrorName } from "./fetch-guard-
|
|
11
|
-
import { n as makeProxyFetch } from "./proxy-fetch-
|
|
12
|
-
import { t as resolveTelegramFetch } from "./fetch-
|
|
13
|
-
import { s as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-
|
|
1
|
+
import { _ as redactSensitiveText } from "./paths-Bg_l6kdG.js";
|
|
2
|
+
import { a as resolveOAuthDir, c as expandHomePrefix, s as resolveStateDir, u as resolveRequiredHomeDir } from "./paths-L_hqOE5A.js";
|
|
3
|
+
import { d as logVerbose, l as danger, m as shouldLogVerbose, t as createSubsystemLogger } from "./subsystem-CDH9S_yW.js";
|
|
4
|
+
import { q as normalizeAccountId } from "./workspace-DiYGwuGk.js";
|
|
5
|
+
import { a as CONFIG_DIR, g as safeParseJson, h as resolveUserPath } from "./logger-BA9koAaC.js";
|
|
6
|
+
import { E as retryAsync, Er as writeJsonAtomic, Gn as normalizeChannelId, T as resolveRetryConfig, Un as getChannelPlugin, Wn as listChannelPlugins, Xa as resolveTelegramPreviewStreamMode, do as withFileLock$1, dt as convertHeicToJpeg, fi as readConfigFileSnapshotForWrite, hi as writeConfigFile, ht as resizeToJpeg, li as loadConfig, mt as optimizeImageToPng, pt as hasAlphaChannel, sr as resolveAccountEntry, tr as resolveTelegramAccount } from "./model-selection-CvKAj7nY.js";
|
|
7
|
+
import { a as chunkText, f as normalizeTelegramChatId, m as parseTelegramTarget, p as normalizeTelegramLookupTarget } from "./chunk-BSmRwqjw.js";
|
|
8
|
+
import { a as extensionForMime, c as isGifMedia, f as maxBytesForKind, i as detectMime, l as kindFromMime, n as fetchRemoteMedia, o as getFileExtension, u as normalizeMimeType } from "./fetch-LN1gb6p0.js";
|
|
9
|
+
import { n as getDefaultMediaLocalRoots } from "./local-roots-CyRw91V8.js";
|
|
10
|
+
import { c as formatErrorMessage, l as formatUncaughtError, o as collectErrorGraphCandidates, s as extractErrorCode, u as readErrorName } from "./fetch-guard-Bd5oI7xu.js";
|
|
11
|
+
import { n as makeProxyFetch } from "./proxy-fetch-Spr_UMJ3.js";
|
|
12
|
+
import { t as resolveTelegramFetch } from "./fetch-BWClp-zV.js";
|
|
13
|
+
import { s as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-hxxMXweE.js";
|
|
14
14
|
import fs from "node:fs/promises";
|
|
15
15
|
import os from "node:os";
|
|
16
16
|
import path from "node:path";
|
|
17
|
-
import
|
|
17
|
+
import fs$1 from "node:fs";
|
|
18
18
|
import JSON5 from "json5";
|
|
19
19
|
import { fileURLToPath } from "node:url";
|
|
20
20
|
import crypto, { randomBytes } from "node:crypto";
|
|
@@ -71,7 +71,7 @@ function getPairingAdapter(channelId) {
|
|
|
71
71
|
//#region src/plugin-sdk/json-store.ts
|
|
72
72
|
async function readJsonFileWithFallback(filePath, fallback) {
|
|
73
73
|
try {
|
|
74
|
-
const parsed = safeParseJson(await
|
|
74
|
+
const parsed = safeParseJson(await fs$1.promises.readFile(filePath, "utf-8"));
|
|
75
75
|
if (parsed == null) return {
|
|
76
76
|
value: fallback,
|
|
77
77
|
exists: true
|
|
@@ -157,7 +157,7 @@ async function readPairingRequests(filePath) {
|
|
|
157
157
|
}
|
|
158
158
|
async function ensureJsonFile(filePath, fallback) {
|
|
159
159
|
try {
|
|
160
|
-
await
|
|
160
|
+
await fs$1.promises.access(filePath);
|
|
161
161
|
} catch {
|
|
162
162
|
await writeJsonFile(filePath, fallback);
|
|
163
163
|
}
|
|
@@ -313,7 +313,7 @@ function resolveAllowFromReadCacheOrMissing(filePath, stat) {
|
|
|
313
313
|
async function readAllowFromStateForPathWithExists(channel, filePath) {
|
|
314
314
|
let stat = null;
|
|
315
315
|
try {
|
|
316
|
-
stat = await
|
|
316
|
+
stat = await fs$1.promises.stat(filePath);
|
|
317
317
|
} catch (err) {
|
|
318
318
|
if (err.code !== "ENOENT") throw err;
|
|
319
319
|
}
|
|
@@ -356,7 +356,7 @@ async function writeAllowFromState(filePath, allowFrom) {
|
|
|
356
356
|
});
|
|
357
357
|
let stat = null;
|
|
358
358
|
try {
|
|
359
|
-
stat = await
|
|
359
|
+
stat = await fs$1.promises.stat(filePath);
|
|
360
360
|
} catch {}
|
|
361
361
|
setAllowFromReadCache(filePath, {
|
|
362
362
|
exists: true,
|
|
@@ -1285,7 +1285,7 @@ function resolveCronStorePath(storePath) {
|
|
|
1285
1285
|
}
|
|
1286
1286
|
async function loadCronStore(storePath) {
|
|
1287
1287
|
try {
|
|
1288
|
-
const raw = await
|
|
1288
|
+
const raw = await fs$1.promises.readFile(storePath, "utf-8");
|
|
1289
1289
|
let parsed;
|
|
1290
1290
|
try {
|
|
1291
1291
|
parsed = JSON5.parse(raw);
|
|
@@ -1311,21 +1311,21 @@ async function loadCronStore(storePath) {
|
|
|
1311
1311
|
}
|
|
1312
1312
|
}
|
|
1313
1313
|
async function setSecureFileMode(filePath) {
|
|
1314
|
-
await
|
|
1314
|
+
await fs$1.promises.chmod(filePath, 384).catch(() => void 0);
|
|
1315
1315
|
}
|
|
1316
1316
|
async function saveCronStore(storePath, store, opts) {
|
|
1317
1317
|
const storeDir = path.dirname(storePath);
|
|
1318
|
-
await
|
|
1318
|
+
await fs$1.promises.mkdir(storeDir, {
|
|
1319
1319
|
recursive: true,
|
|
1320
1320
|
mode: 448
|
|
1321
1321
|
});
|
|
1322
|
-
await
|
|
1322
|
+
await fs$1.promises.chmod(storeDir, 448).catch(() => void 0);
|
|
1323
1323
|
const json = JSON.stringify(store, null, 2);
|
|
1324
1324
|
const cached = serializedStoreCache.get(storePath);
|
|
1325
1325
|
if (cached === json) return;
|
|
1326
1326
|
let previous = cached ?? null;
|
|
1327
1327
|
if (previous === null) try {
|
|
1328
|
-
previous = await
|
|
1328
|
+
previous = await fs$1.promises.readFile(storePath, "utf-8");
|
|
1329
1329
|
} catch (err) {
|
|
1330
1330
|
if (err.code !== "ENOENT") throw err;
|
|
1331
1331
|
}
|
|
@@ -1334,14 +1334,14 @@ async function saveCronStore(storePath, store, opts) {
|
|
|
1334
1334
|
return;
|
|
1335
1335
|
}
|
|
1336
1336
|
const tmp = `${storePath}.${process.pid}.${randomBytes(8).toString("hex")}.tmp`;
|
|
1337
|
-
await
|
|
1337
|
+
await fs$1.promises.writeFile(tmp, json, {
|
|
1338
1338
|
encoding: "utf-8",
|
|
1339
1339
|
mode: 384
|
|
1340
1340
|
});
|
|
1341
1341
|
await setSecureFileMode(tmp);
|
|
1342
1342
|
if (previous !== null && !opts?.skipBackup) try {
|
|
1343
1343
|
const backupPath = `${storePath}.bak`;
|
|
1344
|
-
await
|
|
1344
|
+
await fs$1.promises.copyFile(storePath, backupPath);
|
|
1345
1345
|
await setSecureFileMode(backupPath);
|
|
1346
1346
|
} catch {}
|
|
1347
1347
|
await renameWithRetry(tmp, storePath);
|
|
@@ -1352,7 +1352,7 @@ const RENAME_MAX_RETRIES = 3;
|
|
|
1352
1352
|
const RENAME_BASE_DELAY_MS = 50;
|
|
1353
1353
|
async function renameWithRetry(src, dest) {
|
|
1354
1354
|
for (let attempt = 0; attempt <= RENAME_MAX_RETRIES; attempt++) try {
|
|
1355
|
-
await
|
|
1355
|
+
await fs$1.promises.rename(src, dest);
|
|
1356
1356
|
return;
|
|
1357
1357
|
} catch (err) {
|
|
1358
1358
|
const code = err.code;
|
|
@@ -1361,8 +1361,8 @@ async function renameWithRetry(src, dest) {
|
|
|
1361
1361
|
continue;
|
|
1362
1362
|
}
|
|
1363
1363
|
if (code === "EPERM" || code === "EEXIST") {
|
|
1364
|
-
await
|
|
1365
|
-
await
|
|
1364
|
+
await fs$1.promises.copyFile(src, dest);
|
|
1365
|
+
await fs$1.promises.unlink(src).catch(() => {});
|
|
1366
1366
|
return;
|
|
1367
1367
|
}
|
|
1368
1368
|
throw err;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { S as logVerbose, T as shouldLogVerbose, t as createSubsystemLogger, v as danger } from "./subsystem-BEF5zTJO.js";
|
|
2
|
-
import { $s as resolveRetryConfig, F as hasAlphaChannel, I as optimizeImageToPng, L as resizeToJpeg, Li as readConfigFileSnapshotForWrite, Mi as loadConfig, N as convertHeicToJpeg, So as resolveTelegramPreviewStreamMode, Vi as writeConfigFile, Zn as resolveAccountEntry, ec as retryAsync, zn as resolveTelegramAccount } from "./auth-profiles-
|
|
2
|
+
import { $s as resolveRetryConfig, F as hasAlphaChannel, I as optimizeImageToPng, L as resizeToJpeg, Li as readConfigFileSnapshotForWrite, Mi as loadConfig, N as convertHeicToJpeg, So as resolveTelegramPreviewStreamMode, Vi as writeConfigFile, Zn as resolveAccountEntry, ec as retryAsync, zn as resolveTelegramAccount } from "./auth-profiles-D9Wn945p.js";
|
|
3
3
|
import { g as normalizeAccountId } from "./session-key-9lbhEIb9.js";
|
|
4
4
|
import { h as resolveUserPath } from "./utils-qah6hFG0.js";
|
|
5
5
|
import { n as redactSensitiveText } from "./redact-CxtZhh9L.js";
|
|
6
6
|
import { r as normalizeChannelId } from "./plugins-DRDN4jFP.js";
|
|
7
|
-
import { a as chunkText, f as normalizeTelegramChatId, m as parseTelegramTarget, p as normalizeTelegramLookupTarget } from "./chunk-
|
|
8
|
-
import { a as extensionForMime, c as isGifMedia, f as maxBytesForKind, i as detectMime, l as kindFromMime, n as fetchRemoteMedia, o as getFileExtension, u as normalizeMimeType } from "./fetch-
|
|
7
|
+
import { a as chunkText, f as normalizeTelegramChatId, m as parseTelegramTarget, p as normalizeTelegramLookupTarget } from "./chunk-B0PHAL_m.js";
|
|
8
|
+
import { a as extensionForMime, c as isGifMedia, f as maxBytesForKind, i as detectMime, l as kindFromMime, n as fetchRemoteMedia, o as getFileExtension, u as normalizeMimeType } from "./fetch-hiM4UODI.js";
|
|
9
9
|
import { n as getDefaultMediaLocalRoots } from "./local-roots-CY11yrWR.js";
|
|
10
10
|
import { i as formatUncaughtError, n as extractErrorCode, r as formatErrorMessage, s as readErrorName, t as collectErrorGraphCandidates } from "./errors-BaSZYLcU.js";
|
|
11
11
|
import { n as makeProxyFetch } from "./proxy-fetch-DNrsTLo-.js";
|
|
12
12
|
import { c as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-DOZviZ8W.js";
|
|
13
|
-
import { i as readChannelAllowFromStore } from "./pairing-store-
|
|
13
|
+
import { i as readChannelAllowFromStore } from "./pairing-store-BeeSJLPy.js";
|
|
14
14
|
import { t as resolveTelegramFetch } from "./fetch-Dp611IaP.js";
|
|
15
15
|
import { n as isSenderIdAllowed, r as mergeDmAllowFromSources, t as firstDefined } from "./allow-from-bowAr2Nr.js";
|
|
16
16
|
import { n as resolveCronStorePath, r as saveCronStore, t as loadCronStore } from "./store-Dinmjfnl.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as parseStrictPositiveInteger, n as parseStrictInteger } from "./parse-finite-number-Drzqkcy7.js";
|
|
2
2
|
import { a as resolveGatewayLaunchAgentLabel, l as resolveLegacyGatewayLaunchAgentLabels, s as resolveGatewayServiceDescription, t as GATEWAY_LAUNCH_AGENT_LABEL } from "./constants-BeQGpTEh.js";
|
|
3
|
-
import { _ as resolveHomeDir, a as readSystemdServiceExecStart, b as writeFormattedLines, c as restartSystemdService, d as uninstallSystemdService, g as resolveGatewayStateDir, h as parseKeyValueOutput, l as stopSystemdService, o as readSystemdServiceRuntime, r as isSystemdServiceEnabled, t as installSystemdService, v as formatLine, x as execFileUtf8, y as toPosixPath } from "./systemd-
|
|
3
|
+
import { _ as resolveHomeDir, a as readSystemdServiceExecStart, b as writeFormattedLines, c as restartSystemdService, d as uninstallSystemdService, g as resolveGatewayStateDir, h as parseKeyValueOutput, l as stopSystemdService, o as readSystemdServiceRuntime, r as isSystemdServiceEnabled, t as installSystemdService, v as formatLine, x as execFileUtf8, y as toPosixPath } from "./systemd-lqHMKF03.js";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
import
|
|
5
|
+
import fsPromises from "node:fs/promises";
|
|
6
6
|
const plistEscape = (value) => value.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll("\"", """).replaceAll("'", "'");
|
|
7
7
|
const plistUnescape = (value) => value.replaceAll("'", "'").replaceAll(""", "\"").replaceAll(">", ">").replaceAll("<", "<").replaceAll("&", "&");
|
|
8
8
|
const renderEnvDict = (env) => {
|
|
@@ -13,7 +13,7 @@ const renderEnvDict = (env) => {
|
|
|
13
13
|
};
|
|
14
14
|
async function readLaunchAgentProgramArgumentsFromFile(plistPath) {
|
|
15
15
|
try {
|
|
16
|
-
const plist = await
|
|
16
|
+
const plist = await fsPromises.readFile(plistPath, "utf8");
|
|
17
17
|
const programMatch = plist.match(/<key>ProgramArguments<\/key>\s*<array>([\s\S]*?)<\/array>/i);
|
|
18
18
|
if (!programMatch) return null;
|
|
19
19
|
const args = Array.from(programMatch[1].matchAll(/<string>([\s\S]*?)<\/string>/gi)).map((match) => plistUnescape(match[1] ?? "").trim());
|
|
@@ -98,14 +98,14 @@ function resolveGuiDomain() {
|
|
|
98
98
|
return `gui/${process.getuid()}`;
|
|
99
99
|
}
|
|
100
100
|
async function ensureSecureDirectory(targetPath) {
|
|
101
|
-
await
|
|
101
|
+
await fsPromises.mkdir(targetPath, {
|
|
102
102
|
recursive: true,
|
|
103
103
|
mode: LAUNCH_AGENT_DIR_MODE
|
|
104
104
|
});
|
|
105
105
|
try {
|
|
106
|
-
const mode = (await
|
|
106
|
+
const mode = (await fsPromises.stat(targetPath)).mode & 511;
|
|
107
107
|
const tightenedMode = mode & -19;
|
|
108
|
-
if (tightenedMode !== mode) await
|
|
108
|
+
if (tightenedMode !== mode) await fsPromises.chmod(targetPath, tightenedMode);
|
|
109
109
|
} catch {}
|
|
110
110
|
}
|
|
111
111
|
function parseLaunchctlPrint(output) {
|
|
@@ -139,7 +139,7 @@ async function isLaunchAgentListed(args) {
|
|
|
139
139
|
async function launchAgentPlistExists(env) {
|
|
140
140
|
try {
|
|
141
141
|
const plistPath = resolveLaunchAgentPlistPath(env);
|
|
142
|
-
await
|
|
142
|
+
await fsPromises.access(plistPath);
|
|
143
143
|
return true;
|
|
144
144
|
} catch {
|
|
145
145
|
return false;
|
|
@@ -201,7 +201,7 @@ async function uninstallLaunchAgent({ env, stdout }) {
|
|
|
201
201
|
]);
|
|
202
202
|
await execLaunchctl(["unload", plistPath]);
|
|
203
203
|
try {
|
|
204
|
-
await
|
|
204
|
+
await fsPromises.access(plistPath);
|
|
205
205
|
} catch {
|
|
206
206
|
stdout.write(`LaunchAgent not found at ${plistPath}\n`);
|
|
207
207
|
return;
|
|
@@ -210,8 +210,8 @@ async function uninstallLaunchAgent({ env, stdout }) {
|
|
|
210
210
|
const trashDir = path.posix.join(home, ".Trash");
|
|
211
211
|
const dest = path.join(trashDir, `${label}.plist`);
|
|
212
212
|
try {
|
|
213
|
-
await
|
|
214
|
-
await
|
|
213
|
+
await fsPromises.mkdir(trashDir, { recursive: true });
|
|
214
|
+
await fsPromises.rename(plistPath, dest);
|
|
215
215
|
stdout.write(`${formatLine("Moved LaunchAgent to Trash", dest)}\n`);
|
|
216
216
|
} catch {
|
|
217
217
|
stdout.write(`LaunchAgent remains at ${plistPath} (could not move)\n`);
|
|
@@ -267,7 +267,7 @@ async function installLaunchAgent({ env, stdout, programArguments, workingDirect
|
|
|
267
267
|
]);
|
|
268
268
|
await execLaunchctl(["unload", legacyPlistPath]);
|
|
269
269
|
try {
|
|
270
|
-
await
|
|
270
|
+
await fsPromises.unlink(legacyPlistPath);
|
|
271
271
|
} catch {}
|
|
272
272
|
}
|
|
273
273
|
const plistPath = resolveLaunchAgentPlistPathForLabel(env, label);
|
|
@@ -289,11 +289,11 @@ async function installLaunchAgent({ env, stdout, programArguments, workingDirect
|
|
|
289
289
|
stderrPath,
|
|
290
290
|
environment
|
|
291
291
|
});
|
|
292
|
-
await
|
|
292
|
+
await fsPromises.writeFile(plistPath, plist, {
|
|
293
293
|
encoding: "utf8",
|
|
294
294
|
mode: LAUNCH_AGENT_PLIST_MODE
|
|
295
295
|
});
|
|
296
|
-
await
|
|
296
|
+
await fsPromises.chmod(plistPath, LAUNCH_AGENT_PLIST_MODE).catch(() => void 0);
|
|
297
297
|
await execLaunchctl([
|
|
298
298
|
"bootout",
|
|
299
299
|
domain,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { tt as consumeRootOptionToken } from "./subsystem-BEF5zTJO.js";
|
|
2
2
|
import { g as resolveStateDir } from "./paths-BfR2LXbA.js";
|
|
3
|
-
import { Aa as isAvatarDataUrl, Cn as resolveAgentMainSessionKey, Dc as DEFAULT_PROVIDER, Ec as DEFAULT_MODEL, Fa as isWorkspaceRelativeAvatarPath, Jo as resolveOpenClawAgentDir, Kt as normalizeSessionDeliveryFields, La as resolveAvatarMime, Mi as loadConfig, Na as isPathWithinRoot, Ot as loadSessionStore, Sn as canonicalizeMainSessionAlias, Tn as resolveMainSessionKey, bn as resolveFreshSessionTotalTokens, cs as parseModelRef, ds as resolveConfiguredModelRef, en as readSessionTitleFieldsFromTranscript, fs as resolveDefaultModelForAgent, ir as buildGroupDisplayName, ja as isAvatarHttpUrl, ka as AVATAR_MAX_BYTES, ns as inferUniqueProviderFromConfiguredModels } from "./auth-profiles-
|
|
3
|
+
import { Aa as isAvatarDataUrl, Cn as resolveAgentMainSessionKey, Dc as DEFAULT_PROVIDER, Ec as DEFAULT_MODEL, Fa as isWorkspaceRelativeAvatarPath, Jo as resolveOpenClawAgentDir, Kt as normalizeSessionDeliveryFields, La as resolveAvatarMime, Mi as loadConfig, Na as isPathWithinRoot, Ot as loadSessionStore, Sn as canonicalizeMainSessionAlias, Tn as resolveMainSessionKey, bn as resolveFreshSessionTotalTokens, cs as parseModelRef, ds as resolveConfiguredModelRef, en as readSessionTitleFieldsFromTranscript, fs as resolveDefaultModelForAgent, ir as buildGroupDisplayName, ja as isAvatarHttpUrl, ka as AVATAR_MAX_BYTES, ns as inferUniqueProviderFromConfiguredModels } from "./auth-profiles-D9Wn945p.js";
|
|
4
4
|
import { d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-OAwT1oHV.js";
|
|
5
5
|
import { S as isCronRunSessionKey, T as parseAgentSessionKey, c as normalizeMainKey, s as normalizeAgentId } from "./session-key-9lbhEIb9.js";
|
|
6
6
|
import { r as openBoundaryFileSync } from "./boundary-file-read-BAjRF13y.js";
|
|
7
7
|
import { c as resolveStorePath } from "./paths-B-JdyKTL.js";
|
|
8
|
-
import { t as ensureOpenClawModelsJson } from "./models-config-
|
|
8
|
+
import { t as ensureOpenClawModelsJson } from "./models-config-Cg9vUkxp.js";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import fs from "node:fs";
|
|
11
11
|
import { setTimeout } from "node:timers/promises";
|
|
@@ -111,7 +111,7 @@ function ensureContextWindowCacheLoaded() {
|
|
|
111
111
|
await ensureOpenClawModelsJson(cfg);
|
|
112
112
|
} catch {}
|
|
113
113
|
try {
|
|
114
|
-
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-
|
|
114
|
+
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-DFqVpswz.js").then((n) => n.r);
|
|
115
115
|
const agentDir = resolveOpenClawAgentDir();
|
|
116
116
|
const modelRegistry = discoverModels(discoverAuthStorage(agentDir), agentDir);
|
|
117
117
|
applyDiscoveredContextWindows({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-DUslC3ob.js";
|
|
2
2
|
import { A as theme, k as isRich, y as info } from "./subsystem-BEF5zTJO.js";
|
|
3
|
-
import { Mi as loadConfig, Ot as loadSessionStore, bn as resolveFreshSessionTotalTokens, ds as resolveConfiguredModelRef } from "./auth-profiles-
|
|
3
|
+
import { Mi as loadConfig, Ot as loadSessionStore, bn as resolveFreshSessionTotalTokens, ds as resolveConfiguredModelRef } from "./auth-profiles-D9Wn945p.js";
|
|
4
4
|
import { d as resolveDefaultAgentId, r as listAgentIds } from "./agent-scope-OAwT1oHV.js";
|
|
5
5
|
import { T as parseAgentSessionKey, s as normalizeAgentId } from "./session-key-9lbhEIb9.js";
|
|
6
6
|
import { c as resolveStorePath } from "./paths-B-JdyKTL.js";
|
|
7
|
-
import { l as resolveSessionModelRef, n as classifySessionKey, u as lookupContextTokens } from "./session-utils-
|
|
7
|
+
import { l as resolveSessionModelRef, n as classifySessionKey, u as lookupContextTokens } from "./session-utils-5dTolcMA.js";
|
|
8
8
|
import { t as formatTimeAgo } from "./format-relative-ciFDmLBH.js";
|
|
9
9
|
//#region src/commands/session-store-targets.ts
|
|
10
10
|
function dedupeTargetsByStorePath(targets) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { p as defaultRuntime } from "./subsystem-Dk5WUhC2.js";
|
|
2
2
|
import { i as formatCliCommand } from "./scan-paths-meOkBmZg.js";
|
|
3
3
|
import { a as resolveGatewayLaunchAgentLabel, c as resolveGatewaySystemdServiceName } from "./constants-BeQGpTEh.js";
|
|
4
|
-
import { t as resolveGatewayService } from "./service-
|
|
4
|
+
import { t as resolveGatewayService } from "./service-kXk8K3mn.js";
|
|
5
5
|
//#region src/cli/gateway-cli/shared.ts
|
|
6
6
|
const toOptionString = (value) => {
|
|
7
7
|
if (typeof value === "string") return value;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as isPathInside } from "./scan-paths-meOkBmZg.js";
|
|
2
|
-
import { a as hasErrnoCode } from "./errors-
|
|
2
|
+
import { a as hasErrnoCode } from "./errors-Bqf8bSUd.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fsPromises from "node:fs/promises";
|
|
5
5
|
//#region src/security/skill-scanner.ts
|
|
6
6
|
const SCANNABLE_EXTENSIONS = new Set([
|
|
7
7
|
".js",
|
|
@@ -194,7 +194,7 @@ async function walkDirWithLimit(dirPath, maxFiles) {
|
|
|
194
194
|
async function readDirEntriesWithCache(dirPath) {
|
|
195
195
|
let st = null;
|
|
196
196
|
try {
|
|
197
|
-
st = await
|
|
197
|
+
st = await fsPromises.stat(dirPath);
|
|
198
198
|
} catch (err) {
|
|
199
199
|
if (hasErrnoCode(err, "ENOENT")) return [];
|
|
200
200
|
throw err;
|
|
@@ -202,7 +202,7 @@ async function readDirEntriesWithCache(dirPath) {
|
|
|
202
202
|
if (!st?.isDirectory()) return [];
|
|
203
203
|
const cached = DIR_ENTRY_CACHE.get(dirPath);
|
|
204
204
|
if (cached && cached.mtimeMs === st.mtimeMs) return cached.entries;
|
|
205
|
-
const dirents = await
|
|
205
|
+
const dirents = await fsPromises.readdir(dirPath, { withFileTypes: true });
|
|
206
206
|
const entries = [];
|
|
207
207
|
for (const entry of dirents) if (entry.isDirectory()) entries.push({
|
|
208
208
|
name: entry.name,
|
|
@@ -229,7 +229,7 @@ async function resolveForcedFiles(params) {
|
|
|
229
229
|
if (seen.has(includePath)) continue;
|
|
230
230
|
let st = null;
|
|
231
231
|
try {
|
|
232
|
-
st = await
|
|
232
|
+
st = await fsPromises.stat(includePath);
|
|
233
233
|
} catch (err) {
|
|
234
234
|
if (hasErrnoCode(err, "ENOENT")) continue;
|
|
235
235
|
throw err;
|
|
@@ -262,7 +262,7 @@ async function scanFileWithCache(params) {
|
|
|
262
262
|
const { filePath, maxFileBytes } = params;
|
|
263
263
|
let st = null;
|
|
264
264
|
try {
|
|
265
|
-
st = await
|
|
265
|
+
st = await fsPromises.stat(filePath);
|
|
266
266
|
} catch (err) {
|
|
267
267
|
if (hasErrnoCode(err, "ENOENT")) return {
|
|
268
268
|
scanned: false,
|
|
@@ -299,7 +299,7 @@ async function scanFileWithCache(params) {
|
|
|
299
299
|
}
|
|
300
300
|
let source;
|
|
301
301
|
try {
|
|
302
|
-
source = await
|
|
302
|
+
source = await fsPromises.readFile(filePath, "utf-8");
|
|
303
303
|
} catch (err) {
|
|
304
304
|
if (hasErrnoCode(err, "ENOENT")) return {
|
|
305
305
|
scanned: false,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { V as resolvePreferredOpenClawTmpDir, t as createSubsystemLogger } from "./subsystem-Dk5WUhC2.js";
|
|
2
2
|
import { d as isRecord, g as resolveUserPath, m as resolveConfigDir, t as CONFIG_DIR } from "./utils-CGU7Q77u.js";
|
|
3
|
-
import { a as openBoundaryFileSync, g as normalizeSkillFilter, n as resolveOpenClawPackageRootSync, p as isPathInside$1 } from "./openclaw-root-
|
|
3
|
+
import { a as openBoundaryFileSync, g as normalizeSkillFilter, n as resolveOpenClawPackageRootSync, p as isPathInside$1 } from "./openclaw-root-DbbVtnL2.js";
|
|
4
4
|
import { r as isPathInsideWithRealpath } from "./scan-paths-meOkBmZg.js";
|
|
5
5
|
import { d as resolveOpenClawMetadata, f as resolveSkillInvocationPolicy, l as shouldIncludeSkill, u as parseFrontmatter } from "./env-overrides-CSdE_DWV.js";
|
|
6
6
|
import { M as defaultSlotIdForKey, l as normalizeChatChannelId } from "./registry-BKJyEPHE.js";
|
|
7
7
|
import { m as MANIFEST_KEY } from "./frontmatter-DTFXPyoL.js";
|
|
8
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-
|
|
8
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-DBFU_Tqb.js";
|
|
9
9
|
import { URL, fileURLToPath } from "node:url";
|
|
10
10
|
import fs from "node:fs";
|
|
11
11
|
import os from "node:os";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as createSubsystemLogger } from "./subsystem-Dk5WUhC2.js";
|
|
2
2
|
import { n as isPrimarySessionTranscriptFileName, s as runTasksWithConcurrency } from "./artifacts-BVEmBB-K.js";
|
|
3
|
-
import { i as redactSensitiveText } from "./path-alias-guards-
|
|
3
|
+
import { i as redactSensitiveText } from "./path-alias-guards-DBFU_Tqb.js";
|
|
4
4
|
import { s as resolveSessionTranscriptsDirForAgent } from "./paths-DHrunYJK.js";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
8
|
-
import
|
|
8
|
+
import fsPromises from "node:fs/promises";
|
|
9
9
|
import crypto from "node:crypto";
|
|
10
10
|
//#region src/memory/query-expansion.ts
|
|
11
11
|
/**
|
|
@@ -640,7 +640,7 @@ function isFileMissingError(err) {
|
|
|
640
640
|
async function statRegularFile(absPath) {
|
|
641
641
|
let stat;
|
|
642
642
|
try {
|
|
643
|
-
stat = await
|
|
643
|
+
stat = await fsPromises.lstat(absPath);
|
|
644
644
|
} catch (err) {
|
|
645
645
|
if (isFileMissingError(err)) return { missing: true };
|
|
646
646
|
throw err;
|
|
@@ -752,13 +752,13 @@ function sanitizeIndexedTextContent(content) {
|
|
|
752
752
|
return redactSensitiveText(content, { mode: "tools" });
|
|
753
753
|
}
|
|
754
754
|
async function readIndexedTextContent(absPath) {
|
|
755
|
-
return sanitizeIndexedTextContent(await
|
|
755
|
+
return sanitizeIndexedTextContent(await fsPromises.readFile(absPath, "utf-8"));
|
|
756
756
|
}
|
|
757
757
|
async function shouldIncludeIndexedFile(absPath, excludedPaths) {
|
|
758
758
|
if (isExcludedMemoryPath(absPath, excludedPaths)) return false;
|
|
759
759
|
if (!isIndexedTextPath(absPath)) return false;
|
|
760
760
|
try {
|
|
761
|
-
const stat = await
|
|
761
|
+
const stat = await fsPromises.stat(absPath);
|
|
762
762
|
return stat.isFile() && stat.size <= MAX_INDEX_FILE_BYTES;
|
|
763
763
|
} catch {
|
|
764
764
|
return false;
|
|
@@ -766,7 +766,7 @@ async function shouldIncludeIndexedFile(absPath, excludedPaths) {
|
|
|
766
766
|
}
|
|
767
767
|
async function walkDir(dir, files, excludedPaths) {
|
|
768
768
|
if (isExcludedMemoryPath(dir, excludedPaths)) return;
|
|
769
|
-
const entries = await
|
|
769
|
+
const entries = await fsPromises.readdir(dir, { withFileTypes: true });
|
|
770
770
|
for (const entry of entries) {
|
|
771
771
|
const full = path.join(dir, entry.name);
|
|
772
772
|
if (isExcludedMemoryPath(full, excludedPaths)) continue;
|
|
@@ -790,7 +790,7 @@ async function listMemoryFiles(workspaceDir, extraPaths, excludePaths) {
|
|
|
790
790
|
const addMarkdownFile = async (absPath) => {
|
|
791
791
|
try {
|
|
792
792
|
if (isExcludedMemoryPath(absPath, normalizedExcludedPaths)) return;
|
|
793
|
-
const stat = await
|
|
793
|
+
const stat = await fsPromises.lstat(absPath);
|
|
794
794
|
if (stat.isSymbolicLink() || !stat.isFile()) return;
|
|
795
795
|
if (!isIndexedTextPath(absPath) || stat.size > MAX_INDEX_FILE_BYTES) return;
|
|
796
796
|
result.push(absPath);
|
|
@@ -799,14 +799,14 @@ async function listMemoryFiles(workspaceDir, extraPaths, excludePaths) {
|
|
|
799
799
|
await addMarkdownFile(memoryFile);
|
|
800
800
|
await addMarkdownFile(altMemoryFile);
|
|
801
801
|
try {
|
|
802
|
-
const dirStat = await
|
|
802
|
+
const dirStat = await fsPromises.lstat(memoryDir);
|
|
803
803
|
if (!dirStat.isSymbolicLink() && dirStat.isDirectory()) await walkDir(memoryDir, result, normalizedExcludedPaths);
|
|
804
804
|
} catch {}
|
|
805
805
|
const normalizedExtraPaths = normalizeExtraMemoryPaths(workspaceDir, extraPaths);
|
|
806
806
|
if (normalizedExtraPaths.length > 0) for (const inputPath of normalizedExtraPaths) {
|
|
807
807
|
if (isExcludedMemoryPath(inputPath, normalizedExcludedPaths)) continue;
|
|
808
808
|
try {
|
|
809
|
-
const stat = await
|
|
809
|
+
const stat = await fsPromises.lstat(inputPath);
|
|
810
810
|
if (stat.isSymbolicLink()) continue;
|
|
811
811
|
if (stat.isDirectory()) {
|
|
812
812
|
await walkDir(inputPath, result, normalizedExcludedPaths);
|
|
@@ -821,7 +821,7 @@ async function listMemoryFiles(workspaceDir, extraPaths, excludePaths) {
|
|
|
821
821
|
for (const entry of result) {
|
|
822
822
|
let key = entry;
|
|
823
823
|
try {
|
|
824
|
-
key = await
|
|
824
|
+
key = await fsPromises.realpath(entry);
|
|
825
825
|
} catch {}
|
|
826
826
|
if (seen.has(key)) continue;
|
|
827
827
|
seen.add(key);
|
|
@@ -836,7 +836,7 @@ async function buildFileEntry(absPath, workspaceDir) {
|
|
|
836
836
|
if (!isIndexedTextPath(absPath)) return null;
|
|
837
837
|
let stat;
|
|
838
838
|
try {
|
|
839
|
-
stat = await
|
|
839
|
+
stat = await fsPromises.stat(absPath);
|
|
840
840
|
} catch (err) {
|
|
841
841
|
if (isFileMissingError(err)) return null;
|
|
842
842
|
throw err;
|
|
@@ -977,7 +977,7 @@ const log = createSubsystemLogger("memory");
|
|
|
977
977
|
async function listSessionFilesForAgent(agentId) {
|
|
978
978
|
const dir = resolveSessionTranscriptsDirForAgent(agentId);
|
|
979
979
|
try {
|
|
980
|
-
return (await
|
|
980
|
+
return (await fsPromises.readdir(dir, { withFileTypes: true })).filter((entry) => entry.isFile()).map((entry) => entry.name).filter(isPrimarySessionTranscriptFileName).map((name) => path.join(dir, name));
|
|
981
981
|
} catch {
|
|
982
982
|
return [];
|
|
983
983
|
}
|
|
@@ -1007,8 +1007,8 @@ function extractSessionText(content) {
|
|
|
1007
1007
|
}
|
|
1008
1008
|
async function buildSessionEntry(absPath) {
|
|
1009
1009
|
try {
|
|
1010
|
-
const stat = await
|
|
1011
|
-
const lines = (await
|
|
1010
|
+
const stat = await fsPromises.stat(absPath);
|
|
1011
|
+
const lines = (await fsPromises.readFile(absPath, "utf-8")).split("\n");
|
|
1012
1012
|
const collected = [];
|
|
1013
1013
|
const lineMap = [];
|
|
1014
1014
|
for (let jsonlIdx = 0; jsonlIdx < lines.length; jsonlIdx++) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as projectSafeChannelAccountSnapshotFields, m as inspectReadOnlyChannelAccount } from "./pi-tools.policy-
|
|
1
|
+
import { _ as projectSafeChannelAccountSnapshotFields, m as inspectReadOnlyChannelAccount } from "./pi-tools.policy-D6UiE_gG.js";
|
|
2
2
|
//#region src/channels/plugins/status.ts
|
|
3
3
|
async function buildSnapshotFromAccount(params) {
|
|
4
4
|
if (params.plugin.status?.buildAccountSnapshot) return await params.plugin.status.buildAccountSnapshot({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as projectSafeChannelAccountSnapshotFields, t as inspectReadOnlyChannelAccount } from "./read-only-account-inspect-
|
|
1
|
+
import { i as projectSafeChannelAccountSnapshotFields, t as inspectReadOnlyChannelAccount } from "./read-only-account-inspect-sMyuBIwr.js";
|
|
2
2
|
//#region src/channels/plugins/status.ts
|
|
3
3
|
async function buildSnapshotFromAccount(params) {
|
|
4
4
|
if (params.plugin.status?.buildAccountSnapshot) return await params.plugin.status.buildAccountSnapshot({
|