@guadskill/openclaw-proxy 2026.3.7 → 2026.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{accounts-BAXPpGUT.js → accounts-B_Mf6Ybe.js} +1 -1
- package/dist/{accounts-DDk7Alkl.js → accounts-CGMgxUfN.js} +7 -7
- package/dist/{accounts-DIGnwOCI.js → accounts-NKTm9o4M.js} +1 -1
- package/dist/{acp-cli-CL-bRMaF.js → acp-cli-BKb3AGdK.js} +8 -8
- package/dist/{agent-scope-CT92dyCK.js → agent-scope-Dd2_TNoB.js} +17 -17
- package/dist/{agents-Ux5TCgO6.js → agents-yZG80_Bk.js} +14 -14
- package/dist/{agents.config-7ZBT3aJH.js → agents.config-iby7tWX6.js} +3 -3
- package/dist/{api-key-rotation-D7uyLcCV.js → api-key-rotation-DsHx0Ttu.js} +1 -1
- package/dist/{audio-preflight-CqbpJICd.js → audio-preflight-DbDIZaaN.js} +4 -4
- package/dist/{audio-preflight-B0sj35Ce.js → audio-preflight-Ot_1VrgG.js} +34 -34
- package/dist/{audio-transcription-runner-Cdvz7bpD.js → audio-transcription-runner-Cl9Pu_e3.js} +23 -23
- package/dist/{audio-transcription-runner-EQqd2K8L.js → audio-transcription-runner-DX0Waokh.js} +1 -1
- package/dist/{audit-qqRogHSL.js → audit-DtKtvGnO.js} +29 -29
- package/dist/{auth-DfEti-nH.js → auth-DkciOmKe.js} +1 -1
- package/dist/{auth-choice-BjQ5BF_A.js → auth-choice-CDiDpyjK.js} +12 -12
- package/dist/{auth-choice-C4XhKa87.js → auth-choice-mCitki7b.js} +13 -13
- package/dist/{auth-choice.apply-helpers-BJLWC6EX.js → auth-choice.apply-helpers-DFO2u4vW.js} +1 -1
- package/dist/{auth-profiles-Bh2dHooQ.js → auth-profiles-QXvcpjIT.js} +16 -16
- package/dist/{auth-token-qGutIUyw.js → auth-token-4Y8dUkki.js} +1 -1
- package/dist/{banner-D3w3334V.js → banner-BIxf18aP.js} +2 -2
- package/dist/{bonjour-discovery-Dk22JKmo.js → bonjour-discovery-DBClG9uw.js} +1 -1
- package/dist/{browser-cli-C1NkBy0u.js → browser-cli-B0KE9qxO.js} +12 -12
- package/dist/build-info.json +3 -3
- package/dist/{call-Bl8osGeS.js → call-B56A9tyz.js} +10 -10
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-account-context-Bkq8Tao4.js → channel-account-context-CkpkengK.js} +5 -5
- package/dist/{channel-activity-DFfVKdMC.js → channel-activity-ClJu0F_1.js} +1 -1
- package/dist/{channel-options-Ddq9nbjL.js → channel-options-BGF--IMr.js} +3 -3
- package/dist/{channel-selection-TEB-oKFB.js → channel-selection-DHlVN8Pr.js} +1 -1
- package/dist/{channel-web-BRc8grVl.js → channel-web-CJ_qOhFv.js} +17 -17
- package/dist/{channels-cli-0uHlhl_q.js → channels-cli-CdmEguK_.js} +93 -93
- package/dist/{channels-status-issues-CHYRNB54.js → channels-status-issues-CmDh358n.js} +1 -1
- package/dist/{chrome-BKmthESk.js → chrome-CMibSHuV.js} +8 -8
- package/dist/{chrome-8g2ppizL.js → chrome-CjADilJt.js} +4 -4
- package/dist/{clawbot-cli-C40Lz65o.js → clawbot-cli-CYI_p-Ig.js} +11 -11
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-B4cqtuy2.js → cli-C7HjUgZL.js} +72 -72
- package/dist/{client-IQ7AZ1A-.js → client-DaFloLVI.js} +3 -3
- package/dist/{command-registry-CufWvKi3.js → command-registry-CrsK0cpv.js} +11 -11
- package/dist/{command-secret-targets-B1PuKXnU.js → command-secret-targets-CsIlET0p.js} +4 -4
- package/dist/{commands-DP7Bcuo2.js → commands-C-YxTe08.js} +1 -1
- package/dist/{commands-registry-B5lrLxcS.js → commands-registry-WI8KXlO7.js} +3 -3
- package/dist/{compact-SZ3BDWQp.js → compact-BBdhRYXH.js} +149 -149
- package/dist/compact.runtime-DDxAzGC2.js +110 -0
- package/dist/{compact.runtime-CMZ_UYyk.js → compact.runtime-DdbMKiHW.js} +6 -6
- package/dist/{completion-cli-B0f-xBOC.js → completion-cli-Bg8nShmO.js} +1 -1
- package/dist/{completion-cli-DQ2oZ0Xm.js → completion-cli-D1eUD4z0.js} +13 -13
- package/dist/{config-cli-CC2671nv.js → config-cli-C8aGIdsa.js} +7 -7
- package/dist/{config-cli-C0Z8l_cH.js → config-cli-DfABZZJ1.js} +1 -1
- package/dist/{config-guard-THCtF7SH.js → config-guard-CdbAZXqh.js} +3 -3
- package/dist/{config-validation-BgjGiBwk.js → config-validation-Bn0atyWE.js} +3 -3
- package/dist/{configure-CyhJDi-o.js → configure-PWOO1SWf.js} +19 -19
- package/dist/{configure-CwCN7C4J.js → configure-tNoPV8AJ.js} +1 -1
- package/dist/{control-ui-assets-DIBwwDAL.js → control-ui-assets-B1qVA62q.js} +1 -1
- package/dist/{cron-cli-DEWQQAZg.js → cron-cli-BWWBn58q.js} +11 -11
- package/dist/{daemon-cli-fixQtS_3.js → daemon-cli-Ckhi3S0x.js} +5 -5
- package/dist/{daemon-cli-DDOlXF-y.js → daemon-cli-Di0mFZWs.js} +16 -16
- package/dist/daemon-cli.js +9 -4
- package/dist/{daemon-install-C4AKaLdy.js → daemon-install-B2fT93a3.js} +21 -21
- package/dist/{daemon-install-D0yIgdZW.js → daemon-install-CWpghW8k.js} +1 -1
- package/dist/{daemon-install-helpers-CVfc_ZXM.js → daemon-install-helpers-BWyx8Sx7.js} +12 -12
- package/dist/{deliver-754C3f2C.js → deliver-BSlI6o2D.js} +7 -7
- package/dist/{deliver-D-x487kv.js → deliver-DBsYfyHP.js} +1 -1
- package/dist/deliver-runtime-BjkTIwlL.js +57 -0
- package/dist/{deliver-runtime-gs8PEJHW.js → deliver-runtime-Yz8xsseU.js} +3 -3
- package/dist/deps-send-discord.runtime-COZDJ4kj.js +31 -0
- package/dist/deps-send-imessage.runtime-CrUNGLpB.js +30 -0
- package/dist/deps-send-signal.runtime-BdIsLRiH.js +29 -0
- package/dist/deps-send-slack.runtime-haEMGbWP.js +27 -0
- package/dist/deps-send-telegram.runtime-TdOBj1BE.js +33 -0
- package/dist/deps-send-whatsapp.runtime-Bf8yUhOp.js +115 -0
- package/dist/{deps-send-whatsapp.runtime-D9cBUcGe.js → deps-send-whatsapp.runtime-Mb5nI79S.js} +7 -7
- package/dist/{devices-cli-quvV3Kka.js → devices-cli-D78eahM0.js} +8 -8
- package/dist/{diagnostic-D0TftuxK.js → diagnostic-CFCd8W0m.js} +1 -1
- package/dist/{diagnostics-BrA18SV4.js → diagnostics-CJLP-HQK.js} +5 -5
- package/dist/{diagnostics-CKEVHs7n.js → diagnostics-g4kCl3Wr.js} +1 -1
- package/dist/{directory-cli-CRRwqLtU.js → directory-cli-CchmjuDY.js} +7 -7
- package/dist/{dns-cli-LufK6hHQ.js → dns-cli-C73_Y0ZB.js} +5 -5
- package/dist/{dock-tPqNmtNL.js → dock-wtxEAACu.js} +4 -4
- package/dist/{docs-cli-BJb-cOpV.js → docs-cli-CdYaag66.js} +4 -4
- package/dist/{doctor-completion-DDK1pAvc.js → doctor-completion-B7MotNqQ.js} +1 -1
- package/dist/{doctor-completion-CbB8sBAb.js → doctor-completion-DmWeZX0M.js} +2 -2
- package/dist/{doctor-config-flow-qCvK2k4B.js → doctor-config-flow-CLlEO2jJ.js} +16 -16
- package/dist/{enable-DfvB7o85.js → enable-Dk8s7RC7.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{exec-approvals-allowlist-BKsPjl3W.js → exec-approvals-allowlist-BTePmA7R.js} +1 -1
- package/dist/{exec-approvals-cli-raoktoDD.js → exec-approvals-cli-DzmNRLok.js} +16 -16
- package/dist/{exec-approvals-cli-DKUcKVKU.js → exec-approvals-cli-sNZ1MCrZ.js} +2 -2
- package/dist/{exec-safe-bin-runtime-policy-Cm7TKqpY.js → exec-safe-bin-runtime-policy-B8a4-DkO.js} +2 -2
- package/dist/extensionAPI.js +6 -6
- package/dist/{fetch-OsQusEch.js → fetch-CLpizcRC.js} +3 -3
- package/dist/{fetch-guard-CYvHLcm1.js → fetch-guard-CTJIkmOy.js} +1 -1
- package/dist/{fs-safe-CgWykA_r.js → fs-safe-DZPN9PEp.js} +24 -24
- package/dist/{gateway-cli-FCR2v3fN.js → gateway-cli-B-C_BUeg.js} +158 -158
- package/dist/{gateway-cli-CQfPJGkv.js → gateway-cli-DuJgUJEo.js} +9 -9
- package/dist/{gateway-install-token-DpBkW5NL.js → gateway-install-token-DUJ-X-CS.js} +3 -3
- package/dist/{gateway-rpc-vqmfnd4e.js → gateway-rpc-CZWffg-J.js} +1 -1
- package/dist/{health-CX11t-Su.js → health-CqfjbU3N.js} +11 -11
- package/dist/{hooks-cli-D9dqop-W.js → hooks-cli-CwrgdWfU.js} +80 -80
- package/dist/{hooks-status-wJu8Rm9x.js → hooks-status-41E49JnH.js} +1 -1
- package/dist/{image-gKRn4k2T.js → image-C-OScNLH.js} +5 -5
- package/dist/{image-BH87HyHn.js → image-Nk4Z8dsI.js} +1 -1
- package/dist/{image-ops-Dt4M7xkd.js → image-ops-sooGTpsU.js} +10 -10
- package/dist/image-runtime-CvfZqzwb.js +51 -0
- package/dist/{image-runtime-RUsR--QR.js → image-runtime-koB5Zl5s.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/{inspect-DYLkh7ux.js → inspect-BESssF_o.js} +1 -1
- package/dist/{inspect-Bg11sSfy.js → inspect-BLDaR51z.js} +4 -4
- package/dist/{install-safe-path-Brs51UVy.js → install-safe-path-NpGSerww.js} +25 -25
- package/dist/{installs-XHd3fauV.js → installs-CLaVeEP2.js} +8 -8
- package/dist/{ipv4-s-bz8E7J.js → ipv4-oTVR6LLm.js} +1 -1
- package/dist/{ir-DTl0TSQX.js → ir-MJchm-P0.js} +8 -8
- package/dist/{issue-format-8vbMtP-9.js → issue-format-BhYUpe8G.js} +1 -1
- package/dist/{json-files-Byf92VOl.js → json-files-D-hzuOc8.js} +8 -8
- package/dist/{lifecycle-core-D57bmaEM.js → lifecycle-core-BDRJ-gZl.js} +5 -5
- package/dist/{lifecycle-core-Bh-Jy8dW.js → lifecycle-core-Cuioj9RE.js} +2 -2
- package/dist/{login-BcTfGveb.js → login-BrAq_fE9.js} +3 -3
- package/dist/{login-qr-DxsNtFb-.js → login-qr-w8g9Wssr.js} +6 -6
- package/dist/{logs-cli-C1mQ6jm1.js → logs-cli-Dm95Nvw2.js} +9 -9
- package/dist/{manager-DyZ-LIQS.js → manager-Mu3eMmUj.js} +14 -14
- package/dist/manager-runtime-Cj9Hvway.js +21 -0
- package/dist/{manifest-registry-DjjgwuVC.js → manifest-registry-C_atL4ID.js} +1 -1
- package/dist/{memory-cli-CXFqQMtN.js → memory-cli-DjSgQlDO.js} +12 -12
- package/dist/{model-catalog-CyL_QlZd.js → model-catalog-Crm5h6fz.js} +3 -3
- package/dist/{model-picker-DqYwIby0.js → model-picker-RWaJDIbf.js} +4 -4
- package/dist/{models-BryKzxGG.js → models-Dm0hzS3D.js} +15 -15
- package/dist/{models-cli-BU89hunh.js → models-cli-TrSDz03D.js} +77 -77
- package/dist/{models-config-Do_bkbr3.js → models-config-ioRkhhh4.js} +6 -6
- package/dist/{node-cli-CA1SvH73.js → node-cli-C9unxcj_.js} +33 -33
- package/dist/{node-cli-CfmQ2Qof.js → node-cli-DCokZ5VQ.js} +4 -4
- package/dist/{node-command-policy-Bqp9nIUg.js → node-command-policy-DdF7xJQa.js} +1 -1
- package/dist/{node-service-BirxNntZ.js → node-service-DCfQospz.js} +1 -1
- package/dist/{node-service-BUERUsa_.js → node-service-DhooZn04.js} +1 -1
- package/dist/{nodes-cli-DLtFA23h.js → nodes-cli-ZdvlYwxX.js} +16 -16
- package/dist/{nodes-screen-gvENU0qT.js → nodes-screen-B7eOQ14A.js} +7 -7
- package/dist/{npm-pack-install-2dbksMMb.js → npm-pack-install-Dz4wJtRd.js} +18 -18
- package/dist/{npm-resolution-DafKZYAM.js → npm-resolution-BFE8ihLy.js} +4 -4
- package/dist/{onboard-CpYQ6i29.js → onboard-CI27VpfB.js} +6 -6
- package/dist/{onboard-DCljJSci.js → onboard-DQpNrN8f.js} +2 -2
- package/dist/{onboard-channels-lyZUxSJ-.js → onboard-channels-BBkxHyWU.js} +21 -21
- package/dist/{onboard-custom-BYAJVMrS.js → onboard-custom-CLwjPxwD.js} +4 -4
- package/dist/{onboard-helpers-BqSYoJSO.js → onboard-helpers-BJ2MHcp9.js} +10 -10
- package/dist/{onboard-hooks-B4f4qUvf.js → onboard-hooks-OrZtfoSC.js} +4 -4
- package/dist/{onboard-remote-5YZ2k5qA.js → onboard-remote-wY_bxC1W.js} +4 -4
- package/dist/{onboard-skills-P7WUXQqb.js → onboard-skills-CdhTiJIU.js} +4 -4
- package/dist/{onboarding-C2ZQIZ5e.js → onboarding-BV3dioI3.js} +14 -14
- package/dist/{onboarding-TLgFqsJ0.js → onboarding-bSVnEk-q.js} +1 -1
- package/dist/{onboarding.finalize-C0dSrRMy.js → onboarding.finalize-CthILcfJ.js} +88 -88
- package/dist/{onboarding.finalize-BKLMwDpS.js → onboarding.finalize-V311LPsU.js} +4 -4
- package/dist/{onboarding.gateway-config-DOjylmTf.js → onboarding.gateway-config-DWG9D6GI.js} +19 -19
- package/dist/{onboarding.secret-input-D28tCmCi.js → onboarding.secret-input-yXmtdEMi.js} +1 -1
- package/dist/{openai-codex-model-default-Dh0Anrx7.js → openai-codex-model-default-BnNc6l4d.js} +3 -3
- package/dist/{openai-model-default-JIrv3HNj.js → openai-model-default-PyAlsRPb.js} +2 -2
- package/dist/{openclaw-root-Dh_Sm1l8.js → openclaw-root-Gv7Ob-5V.js} +8 -8
- package/dist/{outbound-attachment-BE3KAIhc.js → outbound-attachment-Bui79r_g.js} +2 -2
- package/dist/{outbound-EIL02rQd.js → outbound-owi6Cvj_.js} +4 -4
- package/dist/{pairing-cli-DYFTC4OI.js → pairing-cli-y8L4PLm3.js} +8 -8
- package/dist/{pairing-labels-c6cTWTzi.js → pairing-labels-DvrRVH1N.js} +1 -1
- package/dist/{pairing-store-gcbFdvn2.js → pairing-store-BsYNiJyH.js} +3 -3
- package/dist/{path-alias-guards-OAUIyvyc.js → path-alias-guards-BndjEKU2.js} +3 -3
- package/dist/{path-safety-h4lG_U1h.js → path-safety-FANXxHHr.js} +1 -1
- package/dist/{paths-C6-x9jb-.js → paths-B-3rcnCY.js} +9 -9
- package/dist/{pi-embedded-NHtVbVqt.js → pi-embedded-DhjXWD5O.js} +25 -25
- package/dist/{pi-embedded-helpers-C1kbyX9C.js → pi-embedded-helpers-BUubsAcJ.js} +6 -6
- package/dist/{pi-embedded-helpers-o22sdqT_.js → pi-embedded-helpers-CSodYzr7.js} +3 -3
- package/dist/{pi-model-discovery-BJyAkuau.js → pi-model-discovery-qGBDJI9t.js} +1 -1
- package/dist/{pi-model-discovery-runtime-D_6fWmk1.js → pi-model-discovery-runtime-B8XjnAyy.js} +5 -5
- package/dist/{pi-tools.before-tool-call.runtime-LDkkLRSe.js → pi-tools.before-tool-call.runtime-CDfXf9XL.js} +5 -5
- package/dist/{pi-tools.policy-dFXahmgF.js → pi-tools.policy-CSPrerKx.js} +6 -6
- package/dist/{plugin-auto-enable-CPLdiF-6.js → plugin-auto-enable-BAHkcVP4.js} +3 -3
- package/dist/{plugin-registry-BA0j17R1.js → plugin-registry-bnANTUyV.js} +3 -3
- package/dist/plugin-sdk/bluebubbles.js +2 -2
- package/dist/plugin-sdk/imessage.js +2 -2
- package/dist/plugin-sdk/slack.js +2 -2
- package/dist/plugin-sdk/telegram.js +2 -2
- package/dist/plugin-sdk/tlon.js +2 -2
- package/dist/plugin-sdk/twitch.js +2 -2
- package/dist/{plugins-BB30X9Wg.js → plugins-Bv9ZfJVO.js} +2 -2
- package/dist/{plugins-cli-Do7-62o7.js → plugins-cli-BnD810PB.js} +82 -82
- package/dist/{ports-CrkPY1HU.js → ports-CFvWMNlt.js} +1 -1
- package/dist/{ports-CRHQM_CU.js → ports-JXKx9QTu.js} +2 -2
- package/dist/{probe-B01qwW3t.js → probe-BSiLGREe.js} +2 -2
- package/dist/{program-DibN7S7t.js → program-DslcDMLC.js} +80 -80
- package/dist/{program-context-QLGv1wVR.js → program-context-BCkMeZ0D.js} +12 -12
- package/dist/{prompt-select-styled-DeQQQ0QA.js → prompt-select-styled-C0PnL2-4.js} +41 -41
- package/dist/{prompt-select-styled-BLaCMb3d.js → prompt-select-styled-DtsNnfFy.js} +5 -5
- package/dist/{provider-auth-helpers-Bu3NP92x.js → provider-auth-helpers-Bo68RFgl.js} +5 -5
- package/dist/{proxy-env-CHINy-_C.js → proxy-env-C4Sv8mbU.js} +1 -1
- package/dist/{push-apns-Dv9W1mnb.js → push-apns-JhqWOAwU.js} +5 -5
- package/dist/{pw-ai-DNjwFfSW.js → pw-ai-BL-cDtw0.js} +18 -18
- package/dist/{pw-ai-MWIrQHO4.js → pw-ai-DZOmcrIm.js} +1 -1
- package/dist/{qmd-manager-BFlQuEU2.js → qmd-manager-CXJXujXb.js} +20 -20
- package/dist/{qr-cli-CDRdlfTz.js → qr-cli-IKWtasYO.js} +2 -2
- package/dist/{redact-snapshot-DfzfKriI.js → redact-snapshot-sxLRRmfh.js} +1 -1
- package/dist/{register.agent-DZcC5FDy.js → register.agent-BhE6O5kz.js} +93 -93
- package/dist/{register.configure-Dmv99pKW.js → register.configure-COPz8XYt.js} +2 -2
- package/dist/register.configure-NmyxXY5V.js +164 -0
- package/dist/{register.maintenance-BNVvn7VP.js → register.maintenance-CEk4B6v4.js} +95 -95
- package/dist/{register.maintenance-By_ZStHt.js → register.maintenance-CyYEm7iS.js} +7 -7
- package/dist/{register.message-DcsEcis4.js → register.message-6oUodJEa.js} +73 -73
- package/dist/{register.onboard-wGV8LHCW.js → register.onboard-2PhRDQTS.js} +18 -18
- package/dist/{register.onboard-rxQ8R21T.js → register.onboard-BP9GuZks.js} +2 -2
- package/dist/{register.setup-DoDh05A7.js → register.setup-CprZSMEV.js} +21 -21
- package/dist/{register.setup-e2gy3YmS.js → register.setup-Ni4737D9.js} +2 -2
- package/dist/{register.status-health-sessions-CFPRa6iq.js → register.status-health-sessions-BpTP5AfU.js} +88 -88
- package/dist/{register.status-health-sessions-BoG2-Twd.js → register.status-health-sessions-HgeTqr9l.js} +4 -4
- package/dist/{register.subclis-Dperszpc.js → register.subclis-CXGjQuPd.js} +31 -31
- package/dist/{resolve-configured-secret-input-string-BdkI2Dl0.js → resolve-configured-secret-input-string-DvKJxAtp.js} +1 -1
- package/dist/{rpc-CM5MI1Km.js → rpc-CQs3IjG7.js} +1 -1
- package/dist/{run-main-BcAftmJ6.js → run-main-CHHrSCWI.js} +91 -91
- package/dist/{runtime-DIn_d_mi.js → runtime-BC8kvHYq.js} +3 -3
- package/dist/{runtime-config-collectors-DVZ-fK7E.js → runtime-config-collectors-DM4YW0m9.js} +1 -1
- package/dist/{runtime-whatsapp-login.runtime-C2Hz6tBD.js → runtime-whatsapp-login.runtime-Dj6jyYEL.js} +7 -7
- package/dist/runtime-whatsapp-outbound.runtime-CboIijG_.js +27 -0
- package/dist/{sandbox-QUwr5BiV.js → sandbox-Ey0spRTA.js} +18 -18
- package/dist/{sandbox-cli-BHPtvNZP.js → sandbox-cli-WnhAHtf7.js} +25 -25
- package/dist/{secrets-cli-BirGeLI0.js → secrets-cli-CxRF1ol0.js} +11 -11
- package/dist/{security-cli-BdtTg2un.js → security-cli-EJK_t_Hu.js} +43 -43
- package/dist/{send-DR8brNFF.js → send-Cms8uhN1.js} +5 -5
- package/dist/{send-DsIy0owU.js → send-DExcQWAf.js} +4 -4
- package/dist/{send-D0TbCIOU.js → send-DgUi3bl8.js} +8 -8
- package/dist/{send-BRb_0Ibb.js → send-Dlp3HAiX.js} +6 -6
- package/dist/{send-CHUBkOx4.js → send-Don_FZgW.js} +11 -11
- package/dist/{server-CsG3vwY6.js → server-DUXr6A6B.js} +20 -20
- package/dist/{server-context-BOMErxlB.js → server-context-DDDYJ1E5.js} +12 -12
- package/dist/{server-lifecycle-Bz_tILpw.js → server-lifecycle-5QwrD-pI.js} +2 -2
- package/dist/{server-middleware-COJNPqNx.js → server-middleware-CUHXrp2x.js} +1 -1
- package/dist/{server-node-events-Bkfa7nls.js → server-node-events-D8EKx-Ef.js} +73 -73
- package/dist/{service-BqHBIJsE.js → service-CkeyjKgU.js} +9 -4
- package/dist/{service-A9LH2cqi.js → service-VB8hrx3m.js} +24 -19
- package/dist/{session-B78ElRuv.js → session-DLkD-iwM.js} +1 -1
- package/dist/{session-utils-HmD-1G9e.js → session-utils-DqcL4tRB.js} +6 -6
- package/dist/{sessions-TCNQfcSW.js → sessions-BJu8U8kz.js} +15 -15
- package/dist/{sessions-CteOs-Xa.js → sessions-DGFe_VH1.js} +4 -4
- package/dist/{shared-0ohfVTdd.js → shared-Bto9UlKB.js} +1 -1
- package/dist/{shared-CiWwdWaM.js → shared-DFIymKVc.js} +1 -1
- package/dist/{skill-commands-BvomqRJm.js → skill-commands-C7_32HvU.js} +5 -5
- package/dist/{skill-scanner-B_VveqAF.js → skill-scanner-CTA9_1Ad.js} +6 -6
- package/dist/{skills-Bme_5_Wh.js → skills-C3DzmT-s.js} +3 -3
- package/dist/{skills-cli-DMOEU-Kf.js → skills-cli-C2MW9QVA.js} +5 -5
- package/dist/{skills-install-jgMttMiG.js → skills-install-xhIs9n_2.js} +6 -6
- package/dist/{skills-status-DDy1p1bH.js → skills-status-n9vgDHer.js} +1 -1
- package/dist/{slash-commands.runtime-kurmXJKo.js → slash-commands.runtime-BrlJHzZ0.js} +11 -11
- package/dist/{slash-dispatch.runtime-Du0T-jw8.js → slash-dispatch.runtime--1geVpWH.js} +6 -6
- package/dist/slash-dispatch.runtime-BPzR4clK.js +110 -0
- package/dist/slash-skill-commands.runtime-C3MY6G1s.js +29 -0
- package/dist/{sqlite-CVpjz_Fn.js → sqlite-B6J7wlgb.js} +12 -12
- package/dist/{status-DGNyj-My.js → status-BvATDhyx.js} +29 -29
- package/dist/{status-CZmvZ4Du.js → status-CzDUyBhZ.js} +1 -1
- package/dist/{status-CcDhfT7z.js → status-gmvLzqWY.js} +3 -3
- package/dist/{status.update-CMY8gTu2.js → status.update-DndHNWm3.js} +2 -2
- package/dist/{store-dO9FxwIh.js → store-BxDf7hdp.js} +15 -15
- package/dist/{subagent-registry-runtime-BX7PeNcG.js → subagent-registry-runtime-BF8LA25p.js} +6 -6
- package/dist/subagent-registry-runtime-CTIJfGw5.js +110 -0
- package/dist/{system-cli-C5W2hXEn.js → system-cli-Be_6EDGU.js} +9 -9
- package/dist/{system-run-command-B6YFaIn3.js → system-run-command-BlvZfJeb.js} +1 -1
- package/dist/{systemd-DunyHHc7.js → systemd-QfmEIyC_.js} +10 -10
- package/dist/{systemd-hints-DNCfudm3.js → systemd-hints-B1wK4V9O.js} +1 -1
- package/dist/{systemd-hints-Cc1WoU1g.js → systemd-hints-C8DMAujY.js} +6 -6
- package/dist/{systemd-linger-C8eA-s3i.js → systemd-linger-D_EygRlf.js} +1 -1
- package/dist/{tables-Ckhi6C4h.js → tables-DVqUjPRa.js} +1 -1
- package/dist/{tailnet-CcjaRS5e.js → tailnet-CoMmrqa1.js} +1 -1
- package/dist/{target-errors-018oJFiB.js → target-errors-N10oAD8K.js} +4 -4
- package/dist/{tool-images-C1FdHV43.js → tool-images-ByGbgP3W.js} +1 -1
- package/dist/{tui-cli-DImVjijU.js → tui-cli-A2qCvBWw.js} +33 -33
- package/dist/{tui-CsIlN_Go.js → tui-o3M_Bbq1.js} +7 -7
- package/dist/{update-CDOtvt7K.js → update-Mc1LqzY6.js} +3 -3
- package/dist/{update-cli-Dq8uIRxF.js → update-cli-BKMUoIZY.js} +105 -105
- package/dist/{update-cli-CazqKKsR.js → update-cli-ByxIfOIf.js} +9 -9
- package/dist/{update-runner-BSMIDJ-p.js → update-runner-CCB_wRmi.js} +16 -16
- package/dist/web-BblTI04D.js +114 -0
- package/dist/{web-CuWkibTO.js → web-DUmwaFF8.js} +6 -6
- package/dist/{webhooks-cli-5lNqCVtQ.js → webhooks-cli-B1O1xKF7.js} +6 -6
- package/dist/{whatsapp-actions-BXDIsy-2.js → whatsapp-actions-P1s1gYIT.js} +17 -17
- package/dist/{with-timeout-xWhqcPuu.js → with-timeout-gotbjCau.js} +3 -3
- package/dist/{workspace-Ct8qaDh3.js → workspace-ST8Op53v.js} +1 -1
- package/dist/{workspace-dirs-Ch8qs0UH.js → workspace-dirs--0e3kMf7.js} +1 -1
- package/dist/{ws-DUfuK8DQ.js → ws-DrZBk8aE.js} +2 -2
- package/dist/{wsl-DLw4LET-.js → wsl-Dd7vjPIH.js} +2 -2
- package/package.json +1 -1
- package/dist/compact.runtime-Cs7M1NjN.js +0 -110
- package/dist/deliver-runtime-BSN3wlW_.js +0 -57
- package/dist/deps-send-discord.runtime-DD-RWrwG.js +0 -31
- package/dist/deps-send-imessage.runtime-gAWYnB6p.js +0 -30
- package/dist/deps-send-signal.runtime-Ry6Voc2R.js +0 -29
- package/dist/deps-send-slack.runtime-CcCvO5a7.js +0 -27
- package/dist/deps-send-telegram.runtime-97vMMh1v.js +0 -33
- package/dist/deps-send-whatsapp.runtime-B8nhC5lk.js +0 -115
- package/dist/image-runtime-3d_07I1J.js +0 -51
- package/dist/manager-runtime-DDmFvXWq.js +0 -21
- package/dist/register.configure-C_xciKz5.js +0 -164
- package/dist/runtime-whatsapp-outbound.runtime-BpuvPdTK.js +0 -27
- package/dist/slash-dispatch.runtime-BDYuFlr9.js +0 -110
- package/dist/slash-skill-commands.runtime-CRatiVfd.js +0 -29
- package/dist/subagent-registry-runtime-CqAEqqbS.js +0 -110
- package/dist/web-CNj08Zq-.js +0 -114
|
@@ -1,114 +1,114 @@
|
|
|
1
1
|
import { _ as defaultRuntime } from "./entry.js";
|
|
2
|
-
import { B as loadConfig } from "./auth-profiles-
|
|
3
|
-
import "./agent-scope-
|
|
2
|
+
import { B as loadConfig } from "./auth-profiles-QXvcpjIT.js";
|
|
3
|
+
import "./agent-scope-Dd2_TNoB.js";
|
|
4
4
|
import { l as normalizeMainKey, p as scopedHeartbeatWakeOptions } from "./session-key-9-yI-GU_.js";
|
|
5
5
|
import "./utils-DanSccFf.js";
|
|
6
|
-
import "./openclaw-root-
|
|
6
|
+
import "./openclaw-root-Gv7Ob-5V.js";
|
|
7
7
|
import "./logger-BcqRk323.js";
|
|
8
8
|
import "./exec-OWC_Lkz4.js";
|
|
9
9
|
import "./github-copilot-token-DHTToceK.js";
|
|
10
10
|
import "./host-env-security-CIiLt2Mi.js";
|
|
11
11
|
import "./version-BKzmSBiX.js";
|
|
12
12
|
import "./registry-CZbmSOj8.js";
|
|
13
|
-
import "./manifest-registry-
|
|
14
|
-
import "./dock-
|
|
13
|
+
import "./manifest-registry-C_atL4ID.js";
|
|
14
|
+
import "./dock-wtxEAACu.js";
|
|
15
15
|
import "./tokens-Df74FoY2.js";
|
|
16
|
-
import { En as requestHeartbeatNow, Sn as enqueueSystemEvent, T as createOutboundSendDeps, fr as buildOutboundSessionContext, lt as resolveOutboundTarget, x as agentCommandFromIngress } from "./compact-
|
|
17
|
-
import "./accounts-
|
|
18
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
16
|
+
import { En as requestHeartbeatNow, Sn as enqueueSystemEvent, T as createOutboundSendDeps, fr as buildOutboundSessionContext, lt as resolveOutboundTarget, x as agentCommandFromIngress } from "./compact-BBdhRYXH.js";
|
|
17
|
+
import "./accounts-CGMgxUfN.js";
|
|
18
|
+
import { r as normalizeChannelId } from "./plugins-Bv9ZfJVO.js";
|
|
19
19
|
import "./logging-BdnOSVPD.js";
|
|
20
|
-
import "./send-
|
|
21
|
-
import "./send-
|
|
22
|
-
import "./with-timeout-
|
|
23
|
-
import { t as deliverOutboundPayloads } from "./deliver-
|
|
24
|
-
import "./diagnostic-
|
|
25
|
-
import "./accounts-
|
|
26
|
-
import "./image-ops-
|
|
27
|
-
import "./send-
|
|
28
|
-
import "./pi-model-discovery-
|
|
20
|
+
import "./send-DExcQWAf.js";
|
|
21
|
+
import "./send-Don_FZgW.js";
|
|
22
|
+
import "./with-timeout-gotbjCau.js";
|
|
23
|
+
import { t as deliverOutboundPayloads } from "./deliver-BSlI6o2D.js";
|
|
24
|
+
import "./diagnostic-CFCd8W0m.js";
|
|
25
|
+
import "./accounts-B_Mf6Ybe.js";
|
|
26
|
+
import "./image-ops-sooGTpsU.js";
|
|
27
|
+
import "./send-DgUi3bl8.js";
|
|
28
|
+
import "./pi-model-discovery-qGBDJI9t.js";
|
|
29
29
|
import "./message-channel-6rkF5KkO.js";
|
|
30
|
-
import "./pi-embedded-helpers-
|
|
31
|
-
import "./sandbox-
|
|
30
|
+
import "./pi-embedded-helpers-BUubsAcJ.js";
|
|
31
|
+
import "./sandbox-Ey0spRTA.js";
|
|
32
32
|
import "./tool-catalog-BCkWN5F6.js";
|
|
33
|
-
import "./chrome-
|
|
33
|
+
import "./chrome-CjADilJt.js";
|
|
34
34
|
import "./tailscale-BRTAbJuN.js";
|
|
35
|
-
import "./tailnet-
|
|
36
|
-
import "./ws-
|
|
37
|
-
import "./auth-
|
|
38
|
-
import "./server-context-
|
|
35
|
+
import "./tailnet-CoMmrqa1.js";
|
|
36
|
+
import "./ws-DrZBk8aE.js";
|
|
37
|
+
import "./auth-DkciOmKe.js";
|
|
38
|
+
import "./server-context-DDDYJ1E5.js";
|
|
39
39
|
import "./frontmatter-ukO4UPgE.js";
|
|
40
40
|
import "./env-overrides-DliONB2B.js";
|
|
41
|
-
import "./path-alias-guards-
|
|
42
|
-
import "./skills-
|
|
43
|
-
import "./paths-
|
|
41
|
+
import "./path-alias-guards-BndjEKU2.js";
|
|
42
|
+
import "./skills-C3DzmT-s.js";
|
|
43
|
+
import "./paths-B-3rcnCY.js";
|
|
44
44
|
import "./redact-BCIqtHJW.js";
|
|
45
45
|
import "./errors-DMBofubI.js";
|
|
46
|
-
import "./fs-safe-
|
|
47
|
-
import "./proxy-env-
|
|
48
|
-
import "./store-
|
|
49
|
-
import "./ports-
|
|
46
|
+
import "./fs-safe-DZPN9PEp.js";
|
|
47
|
+
import "./proxy-env-C4Sv8mbU.js";
|
|
48
|
+
import "./store-BxDf7hdp.js";
|
|
49
|
+
import "./ports-JXKx9QTu.js";
|
|
50
50
|
import "./trash-BvQCk4Sz.js";
|
|
51
|
-
import "./server-middleware-
|
|
52
|
-
import { p as updateSessionStore } from "./sessions-
|
|
53
|
-
import "./accounts-
|
|
51
|
+
import "./server-middleware-CUHXrp2x.js";
|
|
52
|
+
import { p as updateSessionStore } from "./sessions-BJu8U8kz.js";
|
|
53
|
+
import "./accounts-NKTm9o4M.js";
|
|
54
54
|
import "./paths-CA9zLiBI.js";
|
|
55
55
|
import "./chat-envelope-Ccu0M1Es.js";
|
|
56
|
-
import "./tool-images-
|
|
56
|
+
import "./tool-images-ByGbgP3W.js";
|
|
57
57
|
import "./thinking-Bkhiq_gH.js";
|
|
58
|
-
import "./models-config-
|
|
59
|
-
import "./exec-approvals-allowlist-
|
|
60
|
-
import "./exec-safe-bin-runtime-policy-
|
|
61
|
-
import "./model-catalog-
|
|
62
|
-
import "./fetch-
|
|
63
|
-
import "./audio-transcription-runner-
|
|
64
|
-
import "./fetch-guard-
|
|
65
|
-
import "./image-
|
|
58
|
+
import "./models-config-ioRkhhh4.js";
|
|
59
|
+
import "./exec-approvals-allowlist-BTePmA7R.js";
|
|
60
|
+
import "./exec-safe-bin-runtime-policy-B8a4-DkO.js";
|
|
61
|
+
import "./model-catalog-Crm5h6fz.js";
|
|
62
|
+
import "./fetch-CLpizcRC.js";
|
|
63
|
+
import "./audio-transcription-runner-Cl9Pu_e3.js";
|
|
64
|
+
import "./fetch-guard-CTJIkmOy.js";
|
|
65
|
+
import "./image-C-OScNLH.js";
|
|
66
66
|
import "./tool-display-C82F9dil.js";
|
|
67
|
-
import "./api-key-rotation-
|
|
67
|
+
import "./api-key-rotation-DsHx0Ttu.js";
|
|
68
68
|
import "./proxy-fetch-D5sLhh0l.js";
|
|
69
|
-
import "./ir-
|
|
69
|
+
import "./ir-MJchm-P0.js";
|
|
70
70
|
import "./render-CumKrTIx.js";
|
|
71
|
-
import "./target-errors-
|
|
72
|
-
import "./commands-
|
|
73
|
-
import "./commands-registry-
|
|
71
|
+
import "./target-errors-N10oAD8K.js";
|
|
72
|
+
import "./commands-C-YxTe08.js";
|
|
73
|
+
import "./commands-registry-WI8KXlO7.js";
|
|
74
74
|
import "./session-cost-usage-cBObXwSm.js";
|
|
75
|
-
import { c as resolveGatewaySessionStoreTarget, o as loadSessionEntry, s as pruneLegacyStoreKeys } from "./session-utils-
|
|
76
|
-
import "./sqlite-
|
|
77
|
-
import "./client-
|
|
78
|
-
import "./call-
|
|
75
|
+
import { c as resolveGatewaySessionStoreTarget, o as loadSessionEntry, s as pruneLegacyStoreKeys } from "./session-utils-DqcL4tRB.js";
|
|
76
|
+
import "./sqlite-B6J7wlgb.js";
|
|
77
|
+
import "./client-DaFloLVI.js";
|
|
78
|
+
import "./call-B56A9tyz.js";
|
|
79
79
|
import "./pairing-token-fl66UgDc.js";
|
|
80
80
|
import "./fetch-CT-djTs1.js";
|
|
81
|
-
import "./pairing-store-
|
|
81
|
+
import "./pairing-store-BsYNiJyH.js";
|
|
82
82
|
import "./exec-approvals-C9sQPnw_.js";
|
|
83
|
-
import "./nodes-screen-
|
|
84
|
-
import "./system-run-command-
|
|
85
|
-
import "./skill-commands-
|
|
86
|
-
import "./pi-tools.policy-
|
|
87
|
-
import "./workspace-dirs
|
|
88
|
-
import "./channel-activity-
|
|
89
|
-
import "./tables-
|
|
90
|
-
import "./server-lifecycle-
|
|
83
|
+
import "./nodes-screen-B7eOQ14A.js";
|
|
84
|
+
import "./system-run-command-BlvZfJeb.js";
|
|
85
|
+
import "./skill-commands-C7_32HvU.js";
|
|
86
|
+
import "./pi-tools.policy-CSPrerKx.js";
|
|
87
|
+
import "./workspace-dirs--0e3kMf7.js";
|
|
88
|
+
import "./channel-activity-ClJu0F_1.js";
|
|
89
|
+
import "./tables-DVqUjPRa.js";
|
|
90
|
+
import "./server-lifecycle-5QwrD-pI.js";
|
|
91
91
|
import "./stagger-CiDn7D2Z.js";
|
|
92
|
-
import "./channel-selection-
|
|
93
|
-
import "./plugin-auto-enable-
|
|
94
|
-
import "./send-
|
|
95
|
-
import "./outbound-attachment-
|
|
92
|
+
import "./channel-selection-DHlVN8Pr.js";
|
|
93
|
+
import "./plugin-auto-enable-BAHkcVP4.js";
|
|
94
|
+
import "./send-Cms8uhN1.js";
|
|
95
|
+
import "./outbound-attachment-Bui79r_g.js";
|
|
96
96
|
import "./delivery-queue-B_HOp2X3.js";
|
|
97
|
-
import "./send-
|
|
97
|
+
import "./send-Dlp3HAiX.js";
|
|
98
98
|
import "./proxy-CUsDSClP.js";
|
|
99
99
|
import "./timeouts-DEnpCqGd.js";
|
|
100
|
-
import "./runtime-config-collectors-
|
|
101
|
-
import "./command-secret-targets-
|
|
102
|
-
import "./onboard-helpers-
|
|
100
|
+
import "./runtime-config-collectors-DM4YW0m9.js";
|
|
101
|
+
import "./command-secret-targets-CsIlET0p.js";
|
|
102
|
+
import "./onboard-helpers-BJ2MHcp9.js";
|
|
103
103
|
import "./prompt-style-ezqCM_Sr.js";
|
|
104
|
-
import "./pairing-labels-
|
|
105
|
-
import "./memory-cli-
|
|
106
|
-
import "./manager-
|
|
104
|
+
import "./pairing-labels-DvrRVH1N.js";
|
|
105
|
+
import "./memory-cli-DjSgQlDO.js";
|
|
106
|
+
import "./manager-Mu3eMmUj.js";
|
|
107
107
|
import "./links-BUkYLQQF.js";
|
|
108
108
|
import "./cli-utils-CI_KkT8q.js";
|
|
109
109
|
import "./help-format-B08o9IQj.js";
|
|
110
110
|
import "./progress-BNL5DRrQ.js";
|
|
111
|
-
import { c as parseMessageWithAttachments, l as formatForLog, r as registerApnsToken, s as normalizeRpcAttachmentsToChatAttachments } from "./push-apns-
|
|
111
|
+
import { c as parseMessageWithAttachments, l as formatForLog, r as registerApnsToken, s as normalizeRpcAttachmentsToChatAttachments } from "./push-apns-JhqWOAwU.js";
|
|
112
112
|
import { randomUUID } from "node:crypto";
|
|
113
113
|
|
|
114
114
|
//#region src/gateway/server-node-events.ts
|
|
@@ -364,10 +364,15 @@ const formatLine = (label, value) => {
|
|
|
364
364
|
};
|
|
365
365
|
async function execPm2(args, opts) {
|
|
366
366
|
try {
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
367
|
+
let execEnv;
|
|
368
|
+
if (opts?.env) {
|
|
369
|
+
const merged = {
|
|
370
|
+
...process.env,
|
|
371
|
+
...opts.env,
|
|
372
|
+
PATH: process.env.PATH
|
|
373
|
+
};
|
|
374
|
+
execEnv = Object.fromEntries(Object.entries(merged).filter((entry) => entry[1] !== void 0));
|
|
375
|
+
}
|
|
371
376
|
const { stdout, stderr } = await execFileAsync("pm2", args, {
|
|
372
377
|
encoding: "utf8",
|
|
373
378
|
...execEnv ? { env: execEnv } : {}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { M as colorize, N as isRich, P as theme } from "./entry.js";
|
|
2
2
|
import { f as resolveGatewayServiceDescription, h as resolveLegacyGatewayLaunchAgentLabels, m as resolveGatewayWindowsTaskName, n as GATEWAY_LAUNCH_AGENT_LABEL, p as resolveGatewaySystemdServiceName, u as resolveGatewayLaunchAgentLabel } from "./arg-split-BCMOiDRb.js";
|
|
3
3
|
import { a as renderCmdSetAssignment, i as parseCmdSetAssignment, n as quoteCmdScriptArg, r as assertNoCmdLineBreak, t as parseCmdScriptCommandLine } from "./cmd-argv-BNR5GT6J.js";
|
|
4
|
-
import { _ as toPosixPath, a as readSystemdServiceRuntime, c as stopSystemdService, g as formatLine$1, h as resolveHomeDir, i as readSystemdServiceExecStart, m as resolveGatewayStateDir, n as isSystemdServiceEnabled, p as parseKeyValueOutput, r as isSystemdUserServiceAvailable, s as restartSystemdService, t as installSystemdService, u as uninstallSystemdService, v as writeFormattedLines, y as execFileUtf8 } from "./systemd-
|
|
4
|
+
import { _ as toPosixPath, a as readSystemdServiceRuntime, c as stopSystemdService, g as formatLine$1, h as resolveHomeDir, i as readSystemdServiceExecStart, m as resolveGatewayStateDir, n as isSystemdServiceEnabled, p as parseKeyValueOutput, r as isSystemdUserServiceAvailable, s as restartSystemdService, t as installSystemdService, u as uninstallSystemdService, v as writeFormattedLines, y as execFileUtf8 } from "./systemd-QfmEIyC_.js";
|
|
5
5
|
import { execFile } from "node:child_process";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import { promisify } from "node:util";
|
|
8
|
-
import
|
|
8
|
+
import fsPromises from "node:fs/promises";
|
|
9
9
|
|
|
10
10
|
//#region src/daemon/launchd-plist.ts
|
|
11
11
|
const LAUNCH_AGENT_THROTTLE_INTERVAL_SECONDS = 1;
|
|
@@ -20,7 +20,7 @@ const renderEnvDict = (env) => {
|
|
|
20
20
|
};
|
|
21
21
|
async function readLaunchAgentProgramArgumentsFromFile(plistPath) {
|
|
22
22
|
try {
|
|
23
|
-
const plist = await
|
|
23
|
+
const plist = await fsPromises.readFile(plistPath, "utf8");
|
|
24
24
|
const programMatch = plist.match(/<key>ProgramArguments<\/key>\s*<array>([\s\S]*?)<\/array>/i);
|
|
25
25
|
if (!programMatch) return null;
|
|
26
26
|
const args = Array.from(programMatch[1].matchAll(/<string>([\s\S]*?)<\/string>/gi)).map((match) => plistUnescape(match[1] ?? "").trim());
|
|
@@ -134,7 +134,7 @@ async function isLaunchAgentListed(args) {
|
|
|
134
134
|
async function launchAgentPlistExists(env) {
|
|
135
135
|
try {
|
|
136
136
|
const plistPath = resolveLaunchAgentPlistPath(env);
|
|
137
|
-
await
|
|
137
|
+
await fsPromises.access(plistPath);
|
|
138
138
|
return true;
|
|
139
139
|
} catch {
|
|
140
140
|
return false;
|
|
@@ -194,7 +194,7 @@ async function uninstallLaunchAgent({ env, stdout }) {
|
|
|
194
194
|
]);
|
|
195
195
|
await execLaunchctl(["unload", plistPath]);
|
|
196
196
|
try {
|
|
197
|
-
await
|
|
197
|
+
await fsPromises.access(plistPath);
|
|
198
198
|
} catch {
|
|
199
199
|
stdout.write(`LaunchAgent not found at ${plistPath}\n`);
|
|
200
200
|
return;
|
|
@@ -203,8 +203,8 @@ async function uninstallLaunchAgent({ env, stdout }) {
|
|
|
203
203
|
const trashDir = path.join(home, ".Trash");
|
|
204
204
|
const dest = path.join(trashDir, `${label}.plist`);
|
|
205
205
|
try {
|
|
206
|
-
await
|
|
207
|
-
await
|
|
206
|
+
await fsPromises.mkdir(trashDir, { recursive: true });
|
|
207
|
+
await fsPromises.rename(plistPath, dest);
|
|
208
208
|
stdout.write(`${formatLine$1("Moved LaunchAgent to Trash", dest)}\n`);
|
|
209
209
|
} catch {
|
|
210
210
|
stdout.write(`LaunchAgent remains at ${plistPath} (could not move)\n`);
|
|
@@ -248,7 +248,7 @@ async function stopLaunchAgent({ stdout, env }) {
|
|
|
248
248
|
}
|
|
249
249
|
async function installLaunchAgent({ env, stdout, programArguments, workingDirectory, environment, description }) {
|
|
250
250
|
const { logDir, stdoutPath, stderrPath } = resolveGatewayLogPaths(env);
|
|
251
|
-
await
|
|
251
|
+
await fsPromises.mkdir(logDir, { recursive: true });
|
|
252
252
|
const domain = resolveGuiDomain();
|
|
253
253
|
const label = resolveLaunchAgentLabel({ env });
|
|
254
254
|
for (const legacyLabel of resolveLegacyGatewayLaunchAgentLabels(env.OPENCLAW_PROFILE)) {
|
|
@@ -260,11 +260,11 @@ async function installLaunchAgent({ env, stdout, programArguments, workingDirect
|
|
|
260
260
|
]);
|
|
261
261
|
await execLaunchctl(["unload", legacyPlistPath]);
|
|
262
262
|
try {
|
|
263
|
-
await
|
|
263
|
+
await fsPromises.unlink(legacyPlistPath);
|
|
264
264
|
} catch {}
|
|
265
265
|
}
|
|
266
266
|
const plistPath = resolveLaunchAgentPlistPathForLabel(env, label);
|
|
267
|
-
await
|
|
267
|
+
await fsPromises.mkdir(path.dirname(plistPath), { recursive: true });
|
|
268
268
|
const plist = buildLaunchAgentPlist({
|
|
269
269
|
label,
|
|
270
270
|
comment: resolveGatewayServiceDescription({
|
|
@@ -278,7 +278,7 @@ async function installLaunchAgent({ env, stdout, programArguments, workingDirect
|
|
|
278
278
|
stderrPath,
|
|
279
279
|
environment
|
|
280
280
|
});
|
|
281
|
-
await
|
|
281
|
+
await fsPromises.writeFile(plistPath, plist, "utf8");
|
|
282
282
|
await execLaunchctl([
|
|
283
283
|
"bootout",
|
|
284
284
|
domain,
|
|
@@ -364,10 +364,15 @@ const formatLine = (label, value) => {
|
|
|
364
364
|
};
|
|
365
365
|
async function execPm2(args, opts) {
|
|
366
366
|
try {
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
367
|
+
let execEnv;
|
|
368
|
+
if (opts?.env) {
|
|
369
|
+
const merged = {
|
|
370
|
+
...process.env,
|
|
371
|
+
...opts.env,
|
|
372
|
+
PATH: process.env.PATH
|
|
373
|
+
};
|
|
374
|
+
execEnv = Object.fromEntries(Object.entries(merged).filter((entry) => entry[1] !== void 0));
|
|
375
|
+
}
|
|
371
376
|
const { stdout, stderr } = await execFileAsync("pm2", args, {
|
|
372
377
|
encoding: "utf8",
|
|
373
378
|
...execEnv ? { env: execEnv } : {}
|
|
@@ -529,7 +534,7 @@ function resolveTaskUser(env) {
|
|
|
529
534
|
async function readScheduledTaskCommand(env) {
|
|
530
535
|
const scriptPath = resolveTaskScriptPath(env);
|
|
531
536
|
try {
|
|
532
|
-
const content = await
|
|
537
|
+
const content = await fsPromises.readFile(scriptPath, "utf8");
|
|
533
538
|
let workingDirectory = "";
|
|
534
539
|
let commandLine = "";
|
|
535
540
|
const environment = {};
|
|
@@ -619,7 +624,7 @@ async function assertSchtasksAvailable() {
|
|
|
619
624
|
async function installScheduledTask({ env, stdout, programArguments, workingDirectory, environment, description }) {
|
|
620
625
|
await assertSchtasksAvailable();
|
|
621
626
|
const scriptPath = resolveTaskScriptPath(env);
|
|
622
|
-
await
|
|
627
|
+
await fsPromises.mkdir(path.dirname(scriptPath), { recursive: true });
|
|
623
628
|
const script = buildTaskScript({
|
|
624
629
|
description: resolveGatewayServiceDescription({
|
|
625
630
|
env,
|
|
@@ -630,7 +635,7 @@ async function installScheduledTask({ env, stdout, programArguments, workingDire
|
|
|
630
635
|
workingDirectory,
|
|
631
636
|
environment
|
|
632
637
|
});
|
|
633
|
-
await
|
|
638
|
+
await fsPromises.writeFile(scriptPath, script, "utf8");
|
|
634
639
|
const taskName = resolveTaskName(env);
|
|
635
640
|
const baseArgs = [
|
|
636
641
|
"/Create",
|
|
@@ -682,7 +687,7 @@ async function uninstallScheduledTask({ env, stdout }) {
|
|
|
682
687
|
]);
|
|
683
688
|
const scriptPath = resolveTaskScriptPath(env);
|
|
684
689
|
try {
|
|
685
|
-
await
|
|
690
|
+
await fsPromises.unlink(scriptPath);
|
|
686
691
|
stdout.write(`${formatLine$1("Removed task script", scriptPath)}\n`);
|
|
687
692
|
} catch {
|
|
688
693
|
stdout.write(`Task script not found at ${scriptPath}\n`);
|
|
@@ -2,7 +2,7 @@ import { A as success, F as getChildLogger, R as toPinoLikeLogger, S as danger }
|
|
|
2
2
|
import { t as formatCliCommand } from "./command-format-DdHwx_z_.js";
|
|
3
3
|
import { s as ensureDir, v as resolveUserPath } from "./utils-DanSccFf.js";
|
|
4
4
|
import { t as VERSION } from "./version-BKzmSBiX.js";
|
|
5
|
-
import { _ as resolveWebCredsPath, d as maybeRestoreCredsFromBackup, g as resolveWebCredsBackupPath, h as resolveDefaultWebAuthDir, p as readCredsJsonRaw } from "./accounts-
|
|
5
|
+
import { _ as resolveWebCredsPath, d as maybeRestoreCredsFromBackup, g as resolveWebCredsBackupPath, h as resolveDefaultWebAuthDir, p as readCredsJsonRaw } from "./accounts-CGMgxUfN.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import { randomUUID } from "node:crypto";
|
|
8
8
|
import { DisconnectReason, fetchLatestBaileysVersion, makeCacheableSignalKeyStore, makeWASocket, useMultiFileAuthState } from "@whiskeysockets/baileys";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Dt as consumeRootOptionToken, Et as FLAG_TERMINATOR, ot as resolveStateDir } from "./entry.js";
|
|
2
|
-
import { Ar as resolveDefaultModelForAgent, B as loadConfig, Bi as DEFAULT_PROVIDER, Er as parseModelRef, Ft as isPathWithinRoot, Lt as isWorkspaceRelativeAvatarPath, Mt as isAvatarDataUrl, Nt as isAvatarHttpUrl, Ri as DEFAULT_CONTEXT_TOKENS, br as inferUniqueProviderFromConfiguredModels, jt as AVATAR_MAX_BYTES, kr as resolveConfiguredModelRef, ur as resolveOpenClawAgentDir, zi as DEFAULT_MODEL, zt as resolveAvatarMime } from "./auth-profiles-
|
|
3
|
-
import { d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
2
|
+
import { Ar as resolveDefaultModelForAgent, B as loadConfig, Bi as DEFAULT_PROVIDER, Er as parseModelRef, Ft as isPathWithinRoot, Lt as isWorkspaceRelativeAvatarPath, Mt as isAvatarDataUrl, Nt as isAvatarHttpUrl, Ri as DEFAULT_CONTEXT_TOKENS, br as inferUniqueProviderFromConfiguredModels, jt as AVATAR_MAX_BYTES, kr as resolveConfiguredModelRef, ur as resolveOpenClawAgentDir, zi as DEFAULT_MODEL, zt as resolveAvatarMime } from "./auth-profiles-QXvcpjIT.js";
|
|
3
|
+
import { d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-Dd2_TNoB.js";
|
|
4
4
|
import { C as isCronRunSessionKey, E as parseAgentSessionKey, c as normalizeAgentId, l as normalizeMainKey } from "./session-key-9-yI-GU_.js";
|
|
5
|
-
import { a as openBoundaryFileSync } from "./openclaw-root-
|
|
6
|
-
import { N as readSessionTitleFieldsFromTranscript, Q as resolveAgentMainSessionKey, T as normalizeSessionDeliveryFields, Y as resolveFreshSessionTotalTokens, Z as canonicalizeMainSessionAlias, et as resolveMainSessionKey, s as loadSessionStore, st as buildGroupDisplayName } from "./sessions-
|
|
5
|
+
import { a as openBoundaryFileSync } from "./openclaw-root-Gv7Ob-5V.js";
|
|
6
|
+
import { N as readSessionTitleFieldsFromTranscript, Q as resolveAgentMainSessionKey, T as normalizeSessionDeliveryFields, Y as resolveFreshSessionTotalTokens, Z as canonicalizeMainSessionAlias, et as resolveMainSessionKey, s as loadSessionStore, st as buildGroupDisplayName } from "./sessions-BJu8U8kz.js";
|
|
7
7
|
import { c as resolveStorePath } from "./paths-CA9zLiBI.js";
|
|
8
|
-
import { t as ensureOpenClawModelsJson } from "./models-config-
|
|
8
|
+
import { t as ensureOpenClawModelsJson } from "./models-config-ioRkhhh4.js";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import fs from "node:fs";
|
|
11
11
|
import { setTimeout } from "node:timers/promises";
|
|
@@ -113,7 +113,7 @@ function ensureContextWindowCacheLoaded() {
|
|
|
113
113
|
await ensureOpenClawModelsJson(cfg);
|
|
114
114
|
} catch {}
|
|
115
115
|
try {
|
|
116
|
-
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-
|
|
116
|
+
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-qGBDJI9t.js").then((n) => n.r);
|
|
117
117
|
const agentDir = resolveOpenClawAgentDir();
|
|
118
118
|
const modelRegistry = discoverModels(discoverAuthStorage(agentDir), agentDir);
|
|
119
119
|
applyDiscoveredContextWindows({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { mt as resolveRequiredHomeDir, s as createSubsystemLogger } from "./entry.js";
|
|
2
|
-
import { B as loadConfig, fr as resolveProcessScopedMap, ht as parseByteSize, mr as isPidAlive, mt as parseDurationMs, pr as getProcessStartTime } from "./auth-profiles-
|
|
2
|
+
import { B as loadConfig, fr as resolveProcessScopedMap, ht as parseByteSize, mr as isPidAlive, mt as parseDurationMs, pr as getProcessStartTime } from "./auth-profiles-QXvcpjIT.js";
|
|
3
3
|
import { c as normalizeAgentId, l as normalizeMainKey, r as buildAgentMainSessionKey, t as DEFAULT_AGENT_ID, v as normalizeOptionalAccountId } from "./session-key-9-yI-GU_.js";
|
|
4
4
|
import { p as normalizeE164 } from "./utils-DanSccFf.js";
|
|
5
|
-
import { c as normalizeHyphenSlug, t as getChannelDock } from "./dock-
|
|
6
|
-
import { j as normalizeChatType, r as normalizeChannelId } from "./plugins-
|
|
5
|
+
import { c as normalizeHyphenSlug, t as getChannelDock } from "./dock-wtxEAACu.js";
|
|
6
|
+
import { j as normalizeChatType, r as normalizeChannelId } from "./plugins-Bv9ZfJVO.js";
|
|
7
7
|
import { c as listDeliverableMessageChannels, l as normalizeMessageChannel } from "./message-channel-6rkF5KkO.js";
|
|
8
|
-
import { i as writeTextAtomic } from "./json-files-
|
|
8
|
+
import { i as writeTextAtomic } from "./json-files-D-hzuOc8.js";
|
|
9
9
|
import { a as resolveSessionTranscriptPathInDir, c as resolveStorePath, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, t as resolveDefaultSessionStorePath } from "./paths-CA9zLiBI.js";
|
|
10
10
|
import { r as hasInterSessionUserProvenance } from "./input-provenance-CFnw8yhY.js";
|
|
11
11
|
import { n as stripMessageIdHints, o as extractToolCallNames, r as stripInboundMetadata, s as hasToolCall, t as stripEnvelope } from "./chat-envelope-Ccu0M1Es.js";
|
|
@@ -13,7 +13,7 @@ import { t as emitSessionTranscriptUpdate } from "./transcript-events-DRc5u0dS.j
|
|
|
13
13
|
import os from "node:os";
|
|
14
14
|
import path from "node:path";
|
|
15
15
|
import fs from "node:fs";
|
|
16
|
-
import
|
|
16
|
+
import fsPromises from "node:fs/promises";
|
|
17
17
|
import crypto from "node:crypto";
|
|
18
18
|
import { CURRENT_SESSION_VERSION, SessionManager } from "@mariozechner/pi-coding-agent";
|
|
19
19
|
|
|
@@ -82,7 +82,7 @@ async function releaseHeldLock(normalizedSessionFile, held, opts = {}) {
|
|
|
82
82
|
await held.handle.close();
|
|
83
83
|
} catch {}
|
|
84
84
|
try {
|
|
85
|
-
await
|
|
85
|
+
await fsPromises.rm(held.lockPath, { force: true });
|
|
86
86
|
} catch {}
|
|
87
87
|
})();
|
|
88
88
|
try {
|
|
@@ -161,7 +161,7 @@ function registerCleanupHandlers() {
|
|
|
161
161
|
}
|
|
162
162
|
async function readLockPayload(lockPath) {
|
|
163
163
|
try {
|
|
164
|
-
const raw = await
|
|
164
|
+
const raw = await fsPromises.readFile(lockPath, "utf8");
|
|
165
165
|
const parsed = JSON.parse(raw);
|
|
166
166
|
const payload = {};
|
|
167
167
|
if (isValidLockNumber(parsed.pid) && parsed.pid > 0) payload.pid = parsed.pid;
|
|
@@ -205,7 +205,7 @@ async function shouldReclaimContendedLockFile(lockPath, details, staleMs, nowMs)
|
|
|
205
205
|
if (!details.stale) return false;
|
|
206
206
|
if (!lockInspectionNeedsMtimeStaleFallback(details)) return true;
|
|
207
207
|
try {
|
|
208
|
-
const stat = await
|
|
208
|
+
const stat = await fsPromises.stat(lockPath);
|
|
209
209
|
return Math.max(0, nowMs - stat.mtimeMs) > staleMs;
|
|
210
210
|
} catch (error) {
|
|
211
211
|
return error?.code !== "ENOENT";
|
|
@@ -223,7 +223,7 @@ async function cleanStaleLockFiles(params) {
|
|
|
223
223
|
const nowMs = params.nowMs ?? Date.now();
|
|
224
224
|
let entries = [];
|
|
225
225
|
try {
|
|
226
|
-
entries = await
|
|
226
|
+
entries = await fsPromises.readdir(sessionsDir, { withFileTypes: true });
|
|
227
227
|
} catch (err) {
|
|
228
228
|
if (err.code === "ENOENT") return {
|
|
229
229
|
locks: [],
|
|
@@ -242,7 +242,7 @@ async function cleanStaleLockFiles(params) {
|
|
|
242
242
|
removed: false
|
|
243
243
|
};
|
|
244
244
|
if (lockInfo.stale && removeStale) {
|
|
245
|
-
await
|
|
245
|
+
await fsPromises.rm(lockPath, { force: true });
|
|
246
246
|
lockInfo.removed = true;
|
|
247
247
|
cleaned.push(lockInfo);
|
|
248
248
|
params.log?.warn?.(`removed stale session lock: ${lockPath} (${lockInfo.staleReasons.join(", ") || "unknown"})`);
|
|
@@ -261,10 +261,10 @@ async function acquireSessionWriteLock(params) {
|
|
|
261
261
|
const maxHoldMs = resolvePositiveMs(params.maxHoldMs, DEFAULT_MAX_HOLD_MS);
|
|
262
262
|
const sessionFile = path.resolve(params.sessionFile);
|
|
263
263
|
const sessionDir = path.dirname(sessionFile);
|
|
264
|
-
await
|
|
264
|
+
await fsPromises.mkdir(sessionDir, { recursive: true });
|
|
265
265
|
let normalizedDir = sessionDir;
|
|
266
266
|
try {
|
|
267
|
-
normalizedDir = await
|
|
267
|
+
normalizedDir = await fsPromises.realpath(sessionDir);
|
|
268
268
|
} catch {}
|
|
269
269
|
const normalizedSessionFile = path.join(normalizedDir, path.basename(sessionFile));
|
|
270
270
|
const lockPath = `${normalizedSessionFile}.lock`;
|
|
@@ -282,7 +282,7 @@ async function acquireSessionWriteLock(params) {
|
|
|
282
282
|
attempt += 1;
|
|
283
283
|
let handle = null;
|
|
284
284
|
try {
|
|
285
|
-
handle = await
|
|
285
|
+
handle = await fsPromises.open(lockPath, "wx");
|
|
286
286
|
const createdAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
287
287
|
const starttime = getProcessStartTime(process.pid);
|
|
288
288
|
const lockPayload = {
|
|
@@ -308,7 +308,7 @@ async function acquireSessionWriteLock(params) {
|
|
|
308
308
|
await handle.close();
|
|
309
309
|
} catch {}
|
|
310
310
|
try {
|
|
311
|
-
await
|
|
311
|
+
await fsPromises.rm(lockPath, { force: true });
|
|
312
312
|
} catch {}
|
|
313
313
|
}
|
|
314
314
|
if (err.code !== "EEXIST") throw err;
|
|
@@ -323,7 +323,7 @@ async function acquireSessionWriteLock(params) {
|
|
|
323
323
|
stale: true,
|
|
324
324
|
staleReasons: inspected.staleReasons.includes("orphan-self-pid") ? inspected.staleReasons : [...inspected.staleReasons, "orphan-self-pid"]
|
|
325
325
|
} : inspected, staleMs, nowMs)) {
|
|
326
|
-
await
|
|
326
|
+
await fsPromises.rm(lockPath, { force: true });
|
|
327
327
|
continue;
|
|
328
328
|
}
|
|
329
329
|
const delay = Math.min(1e3, 50 * attempt);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { C as info, N as isRich, P as theme } from "./entry.js";
|
|
3
|
-
import { B as loadConfig, Bi as DEFAULT_PROVIDER, Ri as DEFAULT_CONTEXT_TOKENS, kr as resolveConfiguredModelRef, zi as DEFAULT_MODEL } from "./auth-profiles-
|
|
4
|
-
import { d as resolveDefaultAgentId, r as listAgentIds } from "./agent-scope-
|
|
3
|
+
import { B as loadConfig, Bi as DEFAULT_PROVIDER, Ri as DEFAULT_CONTEXT_TOKENS, kr as resolveConfiguredModelRef, zi as DEFAULT_MODEL } from "./auth-profiles-QXvcpjIT.js";
|
|
4
|
+
import { d as resolveDefaultAgentId, r as listAgentIds } from "./agent-scope-Dd2_TNoB.js";
|
|
5
5
|
import { E as parseAgentSessionKey, c as normalizeAgentId } from "./session-key-9-yI-GU_.js";
|
|
6
|
-
import { Y as resolveFreshSessionTotalTokens, s as loadSessionStore } from "./sessions-
|
|
6
|
+
import { Y as resolveFreshSessionTotalTokens, s as loadSessionStore } from "./sessions-BJu8U8kz.js";
|
|
7
7
|
import { c as resolveStorePath } from "./paths-CA9zLiBI.js";
|
|
8
|
-
import { l as resolveSessionModelRef, n as classifySessionKey, u as lookupContextTokens } from "./session-utils-
|
|
8
|
+
import { l as resolveSessionModelRef, n as classifySessionKey, u as lookupContextTokens } from "./session-utils-DqcL4tRB.js";
|
|
9
9
|
import { n as formatTimeAgo } from "./format-relative-DX-rh76l.js";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/session-store-targets.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as defaultRuntime } from "./entry.js";
|
|
2
2
|
import { t as formatCliCommand } from "./command-format-DdHwx_z_.js";
|
|
3
3
|
import { m as resolveGatewayWindowsTaskName, p as resolveGatewaySystemdServiceName, u as resolveGatewayLaunchAgentLabel } from "./arg-split-BCMOiDRb.js";
|
|
4
|
-
import { t as resolveGatewayService } from "./service-
|
|
4
|
+
import { t as resolveGatewayService } from "./service-VB8hrx3m.js";
|
|
5
5
|
|
|
6
6
|
//#region src/cli/gateway-cli/shared.ts
|
|
7
7
|
const toOptionString = (value) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { d as defaultRuntime } from "./subsystem-D5pRlZe-.js";
|
|
2
2
|
import { t as formatCliCommand } from "./command-format-DgBEhw5P.js";
|
|
3
3
|
import { m as resolveGatewayWindowsTaskName, p as resolveGatewaySystemdServiceName, u as resolveGatewayLaunchAgentLabel } from "./arg-split-BFqTUfhW.js";
|
|
4
|
-
import { t as resolveGatewayService } from "./service-
|
|
4
|
+
import { t as resolveGatewayService } from "./service-CkeyjKgU.js";
|
|
5
5
|
|
|
6
6
|
//#region src/cli/gateway-cli/shared.ts
|
|
7
7
|
const toOptionString = (value) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { E as logVerbose, s as createSubsystemLogger } from "./entry.js";
|
|
2
|
-
import { l as resolveAgentSkillsFilter, r as listAgentIds, u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
2
|
+
import { l as resolveAgentSkillsFilter, r as listAgentIds, u as resolveAgentWorkspaceDir } from "./agent-scope-Dd2_TNoB.js";
|
|
3
3
|
import { t as CONFIG_DIR, v as resolveUserPath } from "./utils-DanSccFf.js";
|
|
4
|
-
import { i as loadWorkspaceSkillEntries, n as buildWorkspaceSkillCommandSpecs, s as resolvePluginSkillDirs } from "./skills-
|
|
5
|
-
import { n as readJsonFile, r as writeJsonAtomic, t as createAsyncLock } from "./json-files-
|
|
6
|
-
import { i as listChatCommands } from "./commands-registry-
|
|
4
|
+
import { i as loadWorkspaceSkillEntries, n as buildWorkspaceSkillCommandSpecs, s as resolvePluginSkillDirs } from "./skills-C3DzmT-s.js";
|
|
5
|
+
import { n as readJsonFile, r as writeJsonAtomic, t as createAsyncLock } from "./json-files-D-hzuOc8.js";
|
|
6
|
+
import { i as listChatCommands } from "./commands-registry-WI8KXlO7.js";
|
|
7
7
|
import { a as resolvePairingPaths, i as pruneExpiredPending, n as verifyPairingToken, o as upsertPendingPairingRequest, r as rejectPendingPairingRequest, t as generatePairingToken } from "./pairing-token-fl66UgDc.js";
|
|
8
|
-
import { t as listAgentWorkspaceDirs } from "./workspace-dirs
|
|
8
|
+
import { t as listAgentWorkspaceDirs } from "./workspace-dirs--0e3kMf7.js";
|
|
9
9
|
import os from "node:os";
|
|
10
10
|
import path from "node:path";
|
|
11
11
|
import fs from "node:fs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as isPathInside } from "./scan-paths-CGHjYWQw.js";
|
|
2
2
|
import { a as hasErrnoCode } from "./errors-DMBofubI.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fsPromises from "node:fs/promises";
|
|
5
5
|
|
|
6
6
|
//#region src/security/skill-scanner.ts
|
|
7
7
|
const SCANNABLE_EXTENSIONS = new Set([
|
|
@@ -195,7 +195,7 @@ async function walkDirWithLimit(dirPath, maxFiles) {
|
|
|
195
195
|
async function readDirEntriesWithCache(dirPath) {
|
|
196
196
|
let st = null;
|
|
197
197
|
try {
|
|
198
|
-
st = await
|
|
198
|
+
st = await fsPromises.stat(dirPath);
|
|
199
199
|
} catch (err) {
|
|
200
200
|
if (hasErrnoCode(err, "ENOENT")) return [];
|
|
201
201
|
throw err;
|
|
@@ -203,7 +203,7 @@ async function readDirEntriesWithCache(dirPath) {
|
|
|
203
203
|
if (!st?.isDirectory()) return [];
|
|
204
204
|
const cached = DIR_ENTRY_CACHE.get(dirPath);
|
|
205
205
|
if (cached && cached.mtimeMs === st.mtimeMs) return cached.entries;
|
|
206
|
-
const dirents = await
|
|
206
|
+
const dirents = await fsPromises.readdir(dirPath, { withFileTypes: true });
|
|
207
207
|
const entries = [];
|
|
208
208
|
for (const entry of dirents) if (entry.isDirectory()) entries.push({
|
|
209
209
|
name: entry.name,
|
|
@@ -230,7 +230,7 @@ async function resolveForcedFiles(params) {
|
|
|
230
230
|
if (seen.has(includePath)) continue;
|
|
231
231
|
let st = null;
|
|
232
232
|
try {
|
|
233
|
-
st = await
|
|
233
|
+
st = await fsPromises.stat(includePath);
|
|
234
234
|
} catch (err) {
|
|
235
235
|
if (hasErrnoCode(err, "ENOENT")) continue;
|
|
236
236
|
throw err;
|
|
@@ -263,7 +263,7 @@ async function scanFileWithCache(params) {
|
|
|
263
263
|
const { filePath, maxFileBytes } = params;
|
|
264
264
|
let st = null;
|
|
265
265
|
try {
|
|
266
|
-
st = await
|
|
266
|
+
st = await fsPromises.stat(filePath);
|
|
267
267
|
} catch (err) {
|
|
268
268
|
if (hasErrnoCode(err, "ENOENT")) return {
|
|
269
269
|
scanned: false,
|
|
@@ -300,7 +300,7 @@ async function scanFileWithCache(params) {
|
|
|
300
300
|
}
|
|
301
301
|
let source;
|
|
302
302
|
try {
|
|
303
|
-
source = await
|
|
303
|
+
source = await fsPromises.readFile(filePath, "utf-8");
|
|
304
304
|
} catch (err) {
|
|
305
305
|
if (hasErrnoCode(err, "ENOENT")) return {
|
|
306
306
|
scanned: false,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { s as createSubsystemLogger, st as resolvePreferredOpenClawTmpDir } from "./entry.js";
|
|
2
2
|
import { t as CONFIG_DIR, v as resolveUserPath } from "./utils-DanSccFf.js";
|
|
3
|
-
import { _ as normalizeSkillFilter, n as resolveOpenClawPackageRootSync, p as isPathInside } from "./openclaw-root-
|
|
3
|
+
import { _ as normalizeSkillFilter, n as resolveOpenClawPackageRootSync, p as isPathInside } from "./openclaw-root-Gv7Ob-5V.js";
|
|
4
4
|
import { r as isPathInsideWithRealpath } from "./scan-paths-CGHjYWQw.js";
|
|
5
|
-
import { d as normalizePluginsConfig, f as resolveEffectiveEnableState, n as loadPluginManifestRegistry, p as resolveMemorySlotDecision } from "./manifest-registry-
|
|
5
|
+
import { d as normalizePluginsConfig, f as resolveEffectiveEnableState, n as loadPluginManifestRegistry, p as resolveMemorySlotDecision } from "./manifest-registry-C_atL4ID.js";
|
|
6
6
|
import { d as resolveOpenClawMetadata, f as resolveSkillInvocationPolicy, l as shouldIncludeSkill, u as parseFrontmatter } from "./env-overrides-DliONB2B.js";
|
|
7
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-
|
|
7
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-BndjEKU2.js";
|
|
8
8
|
import { URL, fileURLToPath } from "node:url";
|
|
9
9
|
import os from "node:os";
|
|
10
10
|
import path from "node:path";
|