activeclaw 2026.2.9 → 2026.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{accounts-C2elk6PC.js → accounts-xJh3pJei.js} +9 -9
- package/dist/{acp-cli-BHTkhOOK.js → acp-cli-BpJwIyLl.js} +4 -4
- package/dist/{acp-cli-BOqmKps_.js → acp-cli-D_40K9Gr.js} +15 -15
- package/dist/{agent-CVe9csik.js → agent-DkZpDQJb.js} +12 -12
- package/dist/{agent-DplJM2iA.js → agent-FTQXFOHA.js} +10 -10
- package/dist/{agent-scope-GWSAY_lJ.js → agent-scope-BEf5crnU.js} +1 -1
- package/dist/{agent-scope-bNHJh30H.js → agent-scope-CPiO6Aw7.js} +12 -12
- package/dist/{agent-scope-3Vx285VQ.js → agent-scope-D8miw9q_.js} +1 -1
- package/dist/{agent-scope-D3me2AZa.js → agent-scope-DQuy3dwI.js} +1 -1
- package/dist/{archive-CXhvR9nU.js → archive-BixfOVSf.js} +9 -9
- package/dist/{audit-VCa9vZUY.js → audit-CGlFTiEB.js} +23 -23
- package/dist/{audit-DZUtH-Nt.js → audit-CY-yopxa.js} +8 -8
- package/dist/{auth-BvIPpm7G.js → auth-D_PS9etv.js} +1 -1
- package/dist/{auth-health-CToniips.js → auth-health-BGd7tGq0.js} +1 -1
- package/dist/{auth-health-Cx5exPMV.js → auth-health-d7BMZlWG.js} +1 -1
- package/dist/{auth-profiles-FJ3VY25a.js → auth-profiles-Bv1AEm-Y.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +10 -10
- package/dist/bundled/session-memory/handler.js +10 -10
- package/dist/{call-BLDHRggD.js → call-7yrB6v4I.js} +1 -1
- package/dist/{call-LDoK5_Jv.js → call-Ccyb4kQR.js} +11 -11
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-options-_MKOfqan.js → channel-options-DwA7SVbf.js} +7 -7
- package/dist/{channel-options-ByiQNOTJ.js → channel-options-DwTe763m.js} +3 -3
- package/dist/{channel-selection-DqqM1jFv.js → channel-selection-La1tQIxQ.js} +2 -2
- package/dist/{channel-selection-DAHCVAX4.js → channel-selection-RZimme3j.js} +1 -1
- package/dist/{channels-cli-Cc7g9t97.js → channels-cli-CsLF44Xf.js} +26 -26
- package/dist/{channels-cli-dHm4C9tg.js → channels-cli-ENsD3dK4.js} +48 -48
- package/dist/{channels-status-issues-CIvi5Dko.js → channels-status-issues-B3KkflfR.js} +1 -1
- package/dist/{channels-status-issues-DFhI_u0p.js → channels-status-issues-DmIFbKRs.js} +1 -1
- package/dist/{chrome-CF16STk9.js → chrome-BN9o1yns.js} +7 -7
- package/dist/{chrome-UrBfjc6F.js → chrome-Db7w64LF.js} +7 -7
- package/dist/{chrome-Dm-EgOjJ.js → chrome-XHJ9uNgs.js} +5 -5
- package/dist/{clack-prompter-BCiBkJVr.js → clack-prompter-IfLZ3uDJ.js} +4 -4
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-BXVQxcpm.js → cli-CBL6jLH_.js} +21 -21
- package/dist/{cli-ChBVn7aR.js → cli-Dxi8xMCj.js} +36 -36
- package/dist/{client-6xKrRC-1.js → client-Cam-Cwyu.js} +2 -2
- package/dist/{command-options-Zeat4Qbm.js → command-options-_12DJE1t.js} +3 -3
- package/dist/{commands-BFfaY2r9.js → commands-CjEGXOZ_.js} +3 -3
- package/dist/{completion-cli-BYQOTb3_.js → completion-cli-DZlpcsto.js} +40 -40
- package/dist/{completion-cli-DyCmQ6EC.js → completion-cli-DeeDoOCJ.js} +1 -1
- package/dist/{config-DuOV0jZh.js → config-B00lvFac.js} +2 -2
- package/dist/{config-C6Od01-b.js → config-BqGVMf1y.js} +2 -2
- package/dist/{config-5nrp_Vu5.js → config-DiNnQcwe.js} +10 -10
- package/dist/{config-DssMzgXt.js → config-XBdA0ciN.js} +2 -2
- package/dist/{config-guard-DJuKG5j3.js → config-guard-CmgZJTGV.js} +21 -21
- package/dist/{configure-BsYuK_Kc.js → configure-89VjxHbW.js} +18 -18
- package/dist/{configure-DAraHgDw.js → configure-DB_qIT8D.js} +8 -8
- package/dist/{control-service-BNpv08hT.js → control-service-CAXvnE0u.js} +5 -5
- package/dist/{control-service-BL9NP7JP.js → control-service-IRAmbcbN.js} +1 -1
- package/dist/{cron-cli-E_r-cKMN.js → cron-cli-DKp-JxRS.js} +16 -16
- package/dist/{cron-cli-CyYUj-LH.js → cron-cli-DhUWcYdk.js} +6 -6
- package/dist/{daemon-cli-DZDIZ0M-.js → daemon-cli-Ctp4o7qg.js} +16 -16
- package/dist/{daemon-cli-MGPsiBcm.js → daemon-cli-DfLos4-7.js} +7 -7
- package/dist/{daemon-runtime-DJzKTLqv.js → daemon-runtime-CVte5WIX.js} +11 -11
- package/dist/{daemon-runtime-CxQ1vIcj.js → daemon-runtime-c0uXH4Dl.js} +1 -1
- package/dist/{deliver-DD8Syx3t.js → deliver-B-MU3Szq.js} +10 -10
- package/dist/{deliver-ClNVlrrz.js → deliver-BXVnDeja.js} +3 -3
- package/dist/{deliver-DRy_Piku.js → deliver-CT6KiDqO.js} +2 -2
- package/dist/{deliver-CUzkySCA.js → deliver-hf-WKyWd.js} +5 -5
- package/dist/{deps-CMw5TIE3.js → deps-BoJcAXaY.js} +2 -2
- package/dist/{deps-C0FUEdGv.js → deps-CaDXl7AZ.js} +2 -2
- package/dist/{devices-cli-B343ESvy.js → devices-cli-Cm7U1py9.js} +4 -4
- package/dist/{devices-cli-Dlpp2Bpf.js → devices-cli-DQJuKnqz.js} +13 -13
- package/dist/{directory-cli-DgdU5RWy.js → directory-cli-67kzd4I5.js} +5 -5
- package/dist/{directory-cli-DStVmSxy.js → directory-cli-BqVg6pQq.js} +14 -14
- package/dist/{dispatcher-BMY38O6j.js → dispatcher-Rf7W2dBd.js} +4 -4
- package/dist/{dns-cli-C1-d9JM_.js → dns-cli-BXAWgd6S.js} +11 -11
- package/dist/{dns-cli-edebp5SN.js → dns-cli-Dqj7O6Q_.js} +3 -3
- package/dist/{docs-cli-BxHh0OdP.js → docs-cli-CamBqzb5.js} +1 -1
- package/dist/{docs-cli-krgDVS3d.js → docs-cli-NONeCqqB.js} +6 -6
- package/dist/{doctor-B5xT9CV4.js → doctor-BkGTzeZj.js} +43 -43
- package/dist/{doctor-DuML_miY.js → doctor-Bytc7n21.js} +18 -18
- package/dist/entry.js +1 -1
- package/dist/{env-BxRc6wWv.js → env-DqiOM57_.js} +1 -1
- package/dist/{exec-Cv_Ofd1m.js → exec-BSMwiIMp.js} +1 -1
- package/dist/{exec-approvals-cli-QKMXtfNU.js → exec-approvals-cli-Bn-YY4Vi.js} +23 -23
- package/dist/{exec-approvals-cli-CmXG5_Q5.js → exec-approvals-cli-DhXj3hQX.js} +6 -6
- package/dist/extensionAPI.js +22 -22
- package/dist/{gateway-cli-V_dvW_hJ.js → gateway-cli-DRJQ8rTD.js} +135 -135
- package/dist/{gateway-cli-BpaPqRTM.js → gateway-cli-KkK4A0D8.js} +44 -44
- package/dist/{gateway-rpc-BHAE9xXJ.js → gateway-rpc-3B5y445n.js} +1 -1
- package/dist/{gateway-rpc-B4Wurkir.js → gateway-rpc-sLO5Psk7.js} +3 -3
- package/dist/{github-copilot-auth-CmgVG7Gb.js → github-copilot-auth-BJOEuPdX.js} +8 -8
- package/dist/{github-copilot-auth-BenHcDDG.js → github-copilot-auth-BtMu5l0m.js} +5 -5
- package/dist/{gmail-setup-utils-DSktB6l0.js → gmail-setup-utils-CHcssBOA.js} +1 -1
- package/dist/{gmail-setup-utils-TwmZ8mMs.js → gmail-setup-utils-CTDfMXTW.js} +3 -3
- package/dist/{health-format-DFhzeh1b.js → health-format-D6ogrdc9.js} +8 -8
- package/dist/{health-format-D151p64n.js → health-format-I_hcV0x3.js} +14 -14
- package/dist/{help-format-DAj7l5uV.js → help-format-rtF4QeRM.js} +1 -1
- package/dist/{hooks-cli-mEq9e_de.js → hooks-cli-BbeYZaya.js} +23 -23
- package/dist/{hooks-cli-CUjjzKcp.js → hooks-cli-rwazn-4_.js} +61 -61
- package/dist/{hooks-status-U2JQ8wza.js → hooks-status-B3y3_Ypf.js} +5 -5
- package/dist/{hooks-status-BrIvQK2p.js → hooks-status-Br-2bK2G.js} +1 -1
- package/dist/{image-BGhlwUcs.js → image-BVLNmAgW.js} +3 -3
- package/dist/{image-BByTK3t0.js → image-Ds4NLGPR.js} +3 -3
- package/dist/{image-k4cY_IKa.js → image-DxmrpIUn.js} +10 -10
- package/dist/{image-CHRalJF2.js → image-rOFfK3PJ.js} +3 -3
- package/dist/index.js +88 -88
- package/dist/{installs-CRSjQxbR.js → installs-C9WW834H.js} +21 -21
- package/dist/{links-C591fM9M.js → links-D6CUlrWZ.js} +1 -1
- package/dist/llm-slug-generator.js +10 -10
- package/dist/{loader-BTR4VGE9.js → loader-CZRfriRQ.js} +29 -29
- package/dist/{logging-MMRGFxGI.js → logging-BhXRnaAc.js} +1 -1
- package/dist/{login-qr-CYGosTZf.js → login-qr-CGEu5TU-.js} +1 -1
- package/dist/{login-qr-DxwM3Wcw.js → login-qr-CPEsT6dN.js} +1 -1
- package/dist/{login-qr-C2zCFC0_.js → login-qr-DH150tTp.js} +1 -1
- package/dist/{login-qr-CQLEtsFG.js → login-qr-DXiuhBc8.js} +5 -5
- package/dist/{logs-cli-D065Q9Ej.js → logs-cli-ClgkHnfT.js} +5 -5
- package/dist/{logs-cli-BJm2UpZ1.js → logs-cli-CoWZ_Lzs.js} +14 -14
- package/dist/{manager-CMTN4ZRM.js → manager-CcVYv0N5.js} +2 -2
- package/dist/{manager-C6GZI3No.js → manager-D6EbxDV4.js} +4 -4
- package/dist/{manager-BHbv6kNQ.js → manager-DOqexxfO.js} +15 -15
- package/dist/{manager-DM_QdSUV.js → manager-DYo4PlVM.js} +2 -2
- package/dist/{manifest-registry-3It8Z8yN.js → manifest-registry-C0ApY9d8.js} +1 -1
- package/dist/{message-channel-Cu61-7H6.js → message-channel-DIvXZ2w4.js} +1 -1
- package/dist/{model-auth-SZQ9GSFA.js → model-auth-ioeR_zLX.js} +1 -1
- package/dist/{model-selection-DSXkS3Uu.js → model-selection-CezC36lH.js} +1 -1
- package/dist/{model-selection-NPMD6wNp.js → model-selection-lT7g9ysC.js} +4 -4
- package/dist/{models-cli-BtWKT0MB.js → models-cli-C0_ekrlc.js} +45 -45
- package/dist/{models-cli-DcuyUIwv.js → models-cli-CwqJkYET.js} +23 -23
- package/dist/{node-cli-CO2WOpKq.js → node-cli-BxBGSuPE.js} +7 -7
- package/dist/{node-cli-CTm9wM4m.js → node-cli-SEsdX8-y.js} +29 -29
- package/dist/{node-service-CM5vkdIo.js → node-service-OjXvN5Ee.js} +1 -1
- package/dist/{nodes-cli-CCcFmR_s.js → nodes-cli-By6yeCTB.js} +5 -5
- package/dist/{nodes-cli-C8Lamzfr.js → nodes-cli-jihJL52P.js} +18 -18
- package/dist/{nodes-screen-lykd2cny.js → nodes-screen-A8K8mlHX.js} +2 -2
- package/dist/{note-5WqioBRA.js → note-B5QlVszL.js} +2 -2
- package/dist/{onboard-channels-B_k5nbDK.js → onboard-channels-DNlBXz4a.js} +7 -7
- package/dist/{onboard-channels-B_nZbDqG.js → onboard-channels-DYUwMESI.js} +4 -4
- package/dist/{onboard-skills-BeyUY0aV.js → onboard-skills-Djn43Fx2.js} +12 -12
- package/dist/{onboard-skills-BXZ4QIB4.js → onboard-skills-DwIf2ayU.js} +8 -8
- package/dist/{onboarding-C0eU8uVL.js → onboarding-DzjDuLJ0.js} +37 -37
- package/dist/{openclaw-root-9ILYSmJ9.js → openclaw-root-CBSq79BF.js} +5 -5
- package/dist/{openclaw-root-93W6UrUK.js → openclaw-root-Dw6gumSU.js} +3 -3
- package/dist/{pairing-cli-j81iKxmQ.js → pairing-cli-CRQDpj8f.js} +6 -6
- package/dist/{pairing-cli-CV3Fi8Ul.js → pairing-cli-XrcX3iD7.js} +14 -14
- package/dist/{pairing-labels-C1gYNpBx.js → pairing-labels-CWFEtSc3.js} +1 -1
- package/dist/{pairing-labels-CHxlh3tT.js → pairing-labels-K_6MMQA_.js} +1 -1
- package/dist/{pairing-store-C5bI2uOn.js → pairing-store-C6EhvkMA.js} +2 -2
- package/dist/{pairing-store-CO6umWFP.js → pairing-store-CgXR3ZWJ.js} +1 -1
- package/dist/{path-env-BgLvMbz_.js → path-env-CvL55Ntz.js} +1 -1
- package/dist/{paths-BIFtPbjx.js → paths-DL6EIRTw.js} +1 -1
- package/dist/{pi-embedded-CLZcbynY.js → pi-embedded-BtNK8X-L.js} +20 -20
- package/dist/{pi-embedded-helpers-DswdoKvB.js → pi-embedded-helpers-BbWRSUnc.js} +7 -7
- package/dist/{pi-embedded-helpers-aRE0ahwI.js → pi-embedded-helpers-Bkpd4fTr.js} +2 -2
- package/dist/{pi-embedded-helpers-C-Q-0H33.js → pi-embedded-helpers-Dx2dOx7N.js} +8 -8
- package/dist/{pi-embedded-helpers-DDVMJlkH.js → pi-embedded-helpers-WA1Uq3tV.js} +7 -7
- package/dist/{pi-tools.policy-B5XNSHCf.js → pi-tools.policy-CCQVTuZw.js} +4 -4
- package/dist/{plugin-auto-enable-DOx-bCgl.js → plugin-auto-enable-BvBr0yMV.js} +5 -5
- package/dist/{plugin-auto-enable-DwytyoHT.js → plugin-auto-enable-lZwe2yX5.js} +1 -1
- package/dist/{plugins-CXDOnert.js → plugins-5W5E71Ut.js} +4 -4
- package/dist/{plugins-B7F0Ly9G.js → plugins-Db5BiELK.js} +1 -1
- package/dist/{plugins-cli-CjittBBs.js → plugins-cli-l1TkWMZx.js} +42 -42
- package/dist/{plugins-cli-trxh13-k.js → plugins-cli-mSMFtuzL.js} +22 -22
- package/dist/{program-c0kZz_nN.js → program-CaHfkQ0p.js} +46 -46
- package/dist/{progress-DIQJt9Va.js → progress-COZ_ycun.js} +1 -1
- package/dist/{prompt-style-CjQRlDx4.js → prompt-style-CghhrkxS.js} +1 -1
- package/dist/{pw-ai-COWYvUfG.js → pw-ai-BtArcIEo.js} +7 -7
- package/dist/{pw-ai-C9e4lsYZ.js → pw-ai-BxJ-KCIy.js} +1 -1
- package/dist/{pw-ai-CsvaObGM.js → pw-ai-DMeydD_d.js} +1 -1
- package/dist/{qmd-manager-CAXjRwd6.js → qmd-manager-2PsT4eTr.js} +19 -19
- package/dist/{qmd-manager-BQh8e-46.js → qmd-manager-BzY2LQTT.js} +3 -3
- package/dist/{qmd-manager-BM-1x46_.js → qmd-manager-C9YWFeG6.js} +1 -1
- package/dist/{qmd-manager-Bs18wYIN.js → qmd-manager-CpsjQyaZ.js} +1 -1
- package/dist/{register.subclis-CFcnR7W8.js → register.subclis-C0SIOLju.js} +28 -28
- package/dist/{reply-BUHI5pXf.js → reply-swCg9iXH.js} +127 -127
- package/dist/{routes-CSlSTRsY.js → routes-B4QQiFju.js} +1 -1
- package/dist/{routes-CserrUab.js → routes-BqZyywjQ.js} +19 -19
- package/dist/{rpc-Bag0Uule.js → rpc-Blt6MJ4F.js} +1 -1
- package/dist/{rpc-C3XyDrXa.js → rpc-D_Pp8HB_.js} +3 -3
- package/dist/{run-main-DN34y3WG.js → run-main-D9PO9-U8.js} +49 -49
- package/dist/{sandbox-CTZxQzEn.js → sandbox-Aks-9EcZ.js} +5 -5
- package/dist/{sandbox-CGlEY-RT.js → sandbox-DxAKZfZd.js} +26 -26
- package/dist/{sandbox-cli-BzGe2cWN.js → sandbox-cli-149xhJPJ.js} +18 -18
- package/dist/{sandbox-cli-Cb18XBXE.js → sandbox-cli-C99Thxi8.js} +7 -7
- package/dist/{security-cli-BUg11RRK.js → security-cli-BclMtAZ6.js} +33 -33
- package/dist/{security-cli-CXyvz9Fo.js → security-cli-iqYLMOz3.js} +11 -11
- package/dist/{server-context-8Qt35QdF.js → server-context-DT3SRl5J.js} +5 -5
- package/dist/{server-node-events-BNw4w95N.js → server-node-events-BbWvPZe5.js} +23 -23
- package/dist/{server-node-events-D5itxoZj.js → server-node-events-CUQHYPok.js} +39 -39
- package/dist/{service-Cd4BxKuo.js → service-DPsnpYzk.js} +16 -16
- package/dist/{service-audit-BRMQq36C.js → service-audit-DWlZlYl6.js} +13 -13
- package/dist/{service-audit-BpQrn5Ks.js → service-audit-x6jCN-6a.js} +1 -1
- package/dist/{shared-ILguacOr.js → shared-DQO8Xdjp.js} +2 -2
- package/dist/{shared-gOyV38rM.js → shared-DvAp_MsR.js} +2 -2
- package/dist/{skill-scanner-DrVEHfC6.js → skill-scanner-zYmZ2Coy.js} +5 -5
- package/dist/{skills-C_rNI0Jc.js → skills-D5UZZZSY.js} +1 -1
- package/dist/{skills-cli-DHghbc62.js → skills-cli-3PxJU4R0.js} +12 -12
- package/dist/{skills-cli-vaRLo4cS.js → skills-cli-ggyLBtAY.js} +5 -5
- package/dist/{skills-Bau1zXIA.js → skills-pqbmJf1e.js} +6 -6
- package/dist/{skills-status-CJMt5NLm.js → skills-status-DjtPPMnY.js} +1 -1
- package/dist/{skills-status-BkAjWh29.js → skills-status-d-tVLIaC.js} +3 -3
- package/dist/{sqlite-Btrgi7-j.js → sqlite-CDfAET9Y.js} +12 -12
- package/dist/{sqlite-BSGTqtyx.js → sqlite-HepBVDoX.js} +1 -1
- package/dist/{status-DZ9rJ3dY.js → status-BoK_Exgh.js} +20 -20
- package/dist/{status-BjRAcHpu.js → status-DADQEBbg.js} +3 -3
- package/dist/{status-BiwDwls4.js → status-DJYrqIJa.js} +4 -4
- package/dist/{subsystem-Bh1Y_6Uv.js → subsystem-BbfPHMjH.js} +2 -2
- package/dist/{system-cli-CdXY44WQ.js → system-cli-Clqsx8U5.js} +5 -5
- package/dist/{system-cli-DVES5fvn.js → system-cli-JNECg6i0.js} +14 -14
- package/dist/{systemd-D6wTPnHi.js → systemd-Dd6y2wnN.js} +7 -7
- package/dist/{systemd-linger-BxjTrgoH.js → systemd-linger-CblmG_UI.js} +2 -2
- package/dist/{table-DEnmtvl5.js → table-DTm1PXe-.js} +2 -2
- package/dist/{tailscale-Cu-2HNvU.js → tailscale-WFi900xf.js} +2 -2
- package/dist/{tool-display-DskiU8Kt.js → tool-display-DwOJbBjC.js} +1 -1
- package/dist/{tui-Dvvu-l5k.js → tui-BdJWZdto.js} +5 -5
- package/dist/{tui-_kotMBV7.js → tui-CJPKiYWz.js} +9 -9
- package/dist/{tui-cli-Cr_Ne_S0.js → tui-cli-D3n-O9zB.js} +11 -11
- package/dist/{tui-cli-BenxYvT_.js → tui-cli-DuNJ1OqY.js} +23 -23
- package/dist/{tui-formatters-B4pCnF0N.js → tui-formatters-C-dAVvRi.js} +4 -4
- package/dist/{tui-formatters-BxM6uwtn.js → tui-formatters-C3NarH24.js} +3 -3
- package/dist/{update-JB16aPIY.js → update-DymgbepH.js} +5 -5
- package/dist/{update-cli-C-TWZbOn.js → update-cli-AcMtIZbG.js} +69 -69
- package/dist/{update-cli-BHKdzY2U.js → update-cli-B-3XbteQ.js} +36 -36
- package/dist/{update-runner-7YSPb3A4.js → update-runner-B7twibOm.js} +8 -8
- package/dist/{update-runner-D0k9HftN.js → update-runner-BiHI3sto.js} +29 -29
- package/dist/{utils-es4ygvQ-.js → utils-l-o5S4c-.js} +1 -1
- package/dist/{webhooks-cli-BvkUb4ZO.js → webhooks-cli-CVIE9TtX.js} +5 -5
- package/dist/{webhooks-cli-CZKnZxrS.js → webhooks-cli-DjdfcB16.js} +11 -11
- package/dist/{widearea-dns-2ah0bkAj.js → widearea-dns-mquEd9kr.js} +1 -1
- package/dist/{ws-log-D7MkvKhg.js → ws-log-B2H596h5.js} +1 -1
- package/dist/{wsl-uqfIGnkl.js → wsl-Cwo7X0Un.js} +1 -1
- package/package.json +1 -1
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import { g as resolveStateDir, m as resolveOAuthDir, o as resolveConfigPath } from "./paths-DVBShlw6.js";
|
|
2
|
-
import { L as isRich, R as theme, c as defaultRuntime } from "./subsystem-
|
|
3
|
-
import { C as shortenHomePath, S as shortenHomeInString } from "./utils-
|
|
2
|
+
import { L as isRich, R as theme, c as defaultRuntime } from "./subsystem-BbfPHMjH.js";
|
|
3
|
+
import { C as shortenHomePath, S as shortenHomeInString } from "./utils-l-o5S4c-.js";
|
|
4
4
|
import { l as normalizeAgentId } from "./session-key-BWxPj0z_.js";
|
|
5
|
-
import { n as runExec } from "./exec-
|
|
6
|
-
import { c as resolveDefaultAgentId } from "./agent-scope-
|
|
7
|
-
import "./model-selection-
|
|
5
|
+
import { n as runExec } from "./exec-BSMwiIMp.js";
|
|
6
|
+
import { c as resolveDefaultAgentId } from "./agent-scope-CPiO6Aw7.js";
|
|
7
|
+
import "./model-selection-lT7g9ysC.js";
|
|
8
8
|
import "./github-copilot-token-BW-SEg7E.js";
|
|
9
9
|
import { t as formatCliCommand } from "./command-format-ChfKqObn.js";
|
|
10
10
|
import "./boolean-BgXe2hyu.js";
|
|
11
|
-
import "./env-
|
|
12
|
-
import { D as INCLUDE_KEY, O as MAX_INCLUDE_DEPTH, i as loadConfig, r as createConfigIO } from "./config-
|
|
13
|
-
import "./manifest-registry-
|
|
14
|
-
import "./plugins-
|
|
15
|
-
import "./sandbox-
|
|
16
|
-
import "./chrome-
|
|
17
|
-
import "./skills-
|
|
18
|
-
import "./routes-
|
|
19
|
-
import "./server-context-
|
|
20
|
-
import "./message-channel-
|
|
11
|
+
import "./env-DqiOM57_.js";
|
|
12
|
+
import { D as INCLUDE_KEY, O as MAX_INCLUDE_DEPTH, i as loadConfig, r as createConfigIO } from "./config-DiNnQcwe.js";
|
|
13
|
+
import "./manifest-registry-C0ApY9d8.js";
|
|
14
|
+
import "./plugins-5W5E71Ut.js";
|
|
15
|
+
import "./sandbox-DxAKZfZd.js";
|
|
16
|
+
import "./chrome-XHJ9uNgs.js";
|
|
17
|
+
import "./skills-pqbmJf1e.js";
|
|
18
|
+
import "./routes-BqZyywjQ.js";
|
|
19
|
+
import "./server-context-DT3SRl5J.js";
|
|
20
|
+
import "./message-channel-DIvXZ2w4.js";
|
|
21
21
|
import "./logging-BzvBIA3Y.js";
|
|
22
|
-
import "./accounts-
|
|
22
|
+
import "./accounts-xJh3pJei.js";
|
|
23
23
|
import "./paths-Bkhd_qY8.js";
|
|
24
|
-
import "./client-
|
|
25
|
-
import "./call-
|
|
26
|
-
import { i as readChannelAllowFromStore } from "./pairing-store-
|
|
27
|
-
import { t as formatDocsLink } from "./links-
|
|
28
|
-
import "./pi-tools.policy-
|
|
29
|
-
import "./tailscale-
|
|
30
|
-
import "./skill-scanner-
|
|
31
|
-
import "./auth-
|
|
32
|
-
import { n as createIcaclsResetCommand, r as formatIcaclsResetCommand, t as runSecurityAudit } from "./audit-
|
|
24
|
+
import "./client-Cam-Cwyu.js";
|
|
25
|
+
import "./call-Ccyb4kQR.js";
|
|
26
|
+
import { i as readChannelAllowFromStore } from "./pairing-store-C6EhvkMA.js";
|
|
27
|
+
import { t as formatDocsLink } from "./links-D6CUlrWZ.js";
|
|
28
|
+
import "./pi-tools.policy-CCQVTuZw.js";
|
|
29
|
+
import "./tailscale-WFi900xf.js";
|
|
30
|
+
import "./skill-scanner-zYmZ2Coy.js";
|
|
31
|
+
import "./auth-D_PS9etv.js";
|
|
32
|
+
import { n as createIcaclsResetCommand, r as formatIcaclsResetCommand, t as runSecurityAudit } from "./audit-CGlFTiEB.js";
|
|
33
33
|
import path from "node:path";
|
|
34
|
-
import
|
|
35
|
-
import
|
|
34
|
+
import json5 from "json5";
|
|
35
|
+
import fsPromises from "node:fs/promises";
|
|
36
36
|
|
|
37
37
|
//#region src/security/fix.ts
|
|
38
38
|
async function safeChmod(params) {
|
|
39
39
|
try {
|
|
40
|
-
const st = await
|
|
40
|
+
const st = await fsPromises.lstat(params.path);
|
|
41
41
|
if (st.isSymbolicLink()) return {
|
|
42
42
|
kind: "chmod",
|
|
43
43
|
path: params.path,
|
|
@@ -66,7 +66,7 @@ async function safeChmod(params) {
|
|
|
66
66
|
ok: false,
|
|
67
67
|
skipped: "already"
|
|
68
68
|
};
|
|
69
|
-
await
|
|
69
|
+
await fsPromises.chmod(params.path, params.mode);
|
|
70
70
|
return {
|
|
71
71
|
kind: "chmod",
|
|
72
72
|
path: params.path,
|
|
@@ -96,7 +96,7 @@ async function safeAclReset(params) {
|
|
|
96
96
|
env: params.env
|
|
97
97
|
});
|
|
98
98
|
try {
|
|
99
|
-
const st = await
|
|
99
|
+
const st = await fsPromises.lstat(params.path);
|
|
100
100
|
if (st.isSymbolicLink()) return {
|
|
101
101
|
kind: "icacls",
|
|
102
102
|
path: params.path,
|
|
@@ -261,11 +261,11 @@ async function collectIncludePathsRecursive(params) {
|
|
|
261
261
|
if (visited.has(resolved)) continue;
|
|
262
262
|
visited.add(resolved);
|
|
263
263
|
result.push(resolved);
|
|
264
|
-
const rawText = await
|
|
264
|
+
const rawText = await fsPromises.readFile(resolved, "utf-8").catch(() => null);
|
|
265
265
|
if (!rawText) continue;
|
|
266
266
|
const nestedParsed = (() => {
|
|
267
267
|
try {
|
|
268
|
-
return
|
|
268
|
+
return json5.parse(rawText);
|
|
269
269
|
} catch {
|
|
270
270
|
return null;
|
|
271
271
|
}
|
|
@@ -283,7 +283,7 @@ async function chmodCredentialsAndAgentState(params) {
|
|
|
283
283
|
mode: 448,
|
|
284
284
|
require: "dir"
|
|
285
285
|
}));
|
|
286
|
-
const credsEntries = await
|
|
286
|
+
const credsEntries = await fsPromises.readdir(credsDir, { withFileTypes: true }).catch(() => []);
|
|
287
287
|
for (const entry of credsEntries) {
|
|
288
288
|
if (!entry.isFile()) continue;
|
|
289
289
|
if (!entry.name.endsWith(".json")) continue;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { B as resolveConfigPath, J as resolveOAuthDir, O as isRich, X as resolveStateDir, k as theme, p as defaultRuntime } from "./entry.js";
|
|
2
|
-
import "./auth-profiles-
|
|
2
|
+
import "./auth-profiles-Bv1AEm-Y.js";
|
|
3
3
|
import { t as formatCliCommand } from "./command-format-ayFsmwwz.js";
|
|
4
4
|
import { l as normalizeAgentId } from "./session-key-DVvxnFKg.js";
|
|
5
5
|
import { S as shortenHomePath, x as shortenHomeInString } from "./utils-Dk86IbEs.js";
|
|
6
6
|
import { n as runExec } from "./exec-B8JKbXKW.js";
|
|
7
|
-
import { c as resolveDefaultAgentId } from "./agent-scope-
|
|
7
|
+
import { c as resolveDefaultAgentId } from "./agent-scope-DQuy3dwI.js";
|
|
8
8
|
import "./github-copilot-token-SLWintYd.js";
|
|
9
|
-
import { D as INCLUDE_KEY, O as MAX_INCLUDE_DEPTH, i as loadConfig, r as createConfigIO } from "./config-
|
|
9
|
+
import { D as INCLUDE_KEY, O as MAX_INCLUDE_DEPTH, i as loadConfig, r as createConfigIO } from "./config-B00lvFac.js";
|
|
10
10
|
import "./manifest-registry-D5SiA3xq.js";
|
|
11
11
|
import "./server-context-fX4xiYRh.js";
|
|
12
12
|
import "./chrome-yIKmOzCO.js";
|
|
13
13
|
import "./tailscale-DU6DgqVy.js";
|
|
14
14
|
import "./auth-BcNHFK-i.js";
|
|
15
15
|
import "./client-DMloFP_O.js";
|
|
16
|
-
import "./call-
|
|
16
|
+
import "./call-7yrB6v4I.js";
|
|
17
17
|
import "./message-channel-BlgPSDAh.js";
|
|
18
18
|
import { t as formatDocsLink } from "./links-7M-j83As.js";
|
|
19
|
-
import "./plugins-
|
|
19
|
+
import "./plugins-Db5BiELK.js";
|
|
20
20
|
import "./logging-CfEk_PnX.js";
|
|
21
21
|
import "./accounts-DbzMEfKN.js";
|
|
22
22
|
import "./skill-scanner-C_fQzVDu.js";
|
|
23
23
|
import "./paths-IivnSNkP.js";
|
|
24
|
-
import "./routes-
|
|
25
|
-
import "./sandbox-
|
|
26
|
-
import "./skills-
|
|
27
|
-
import "./commands-
|
|
28
|
-
import { i as readChannelAllowFromStore } from "./pairing-store-
|
|
29
|
-
import { n as createIcaclsResetCommand, r as formatIcaclsResetCommand, t as runSecurityAudit } from "./audit-
|
|
24
|
+
import "./routes-B4QQiFju.js";
|
|
25
|
+
import "./sandbox-Aks-9EcZ.js";
|
|
26
|
+
import "./skills-D5UZZZSY.js";
|
|
27
|
+
import "./commands-CjEGXOZ_.js";
|
|
28
|
+
import { i as readChannelAllowFromStore } from "./pairing-store-CgXR3ZWJ.js";
|
|
29
|
+
import { n as createIcaclsResetCommand, r as formatIcaclsResetCommand, t as runSecurityAudit } from "./audit-CY-yopxa.js";
|
|
30
30
|
import path from "node:path";
|
|
31
31
|
import JSON5 from "json5";
|
|
32
32
|
import fs from "node:fs/promises";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { u as resolveGatewayPort } from "./paths-DVBShlw6.js";
|
|
2
|
-
import { n as runExec } from "./exec-
|
|
3
|
-
import { A as DEFAULT_BROWSER_EVALUATE_ENABLED, M as DEFAULT_OPENCLAW_BROWSER_ENABLED, N as DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME, S as getHeadersWithAuth, T as stopChromeExtensionRelayServer, a as resolveOpenClawUserDataDir, b as appendCdpPath, g as createTargetViaCdp, i as launchOpenClawChrome, j as DEFAULT_OPENCLAW_BROWSER_COLOR, k as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, n as isChromeCdpReady, o as stopOpenClawChrome, r as isChromeReachable, v as normalizeCdpWsUrl, w as ensureChromeExtensionRelayServer } from "./chrome-
|
|
2
|
+
import { n as runExec } from "./exec-BSMwiIMp.js";
|
|
3
|
+
import { A as DEFAULT_BROWSER_EVALUATE_ENABLED, M as DEFAULT_OPENCLAW_BROWSER_ENABLED, N as DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME, S as getHeadersWithAuth, T as stopChromeExtensionRelayServer, a as resolveOpenClawUserDataDir, b as appendCdpPath, g as createTargetViaCdp, i as launchOpenClawChrome, j as DEFAULT_OPENCLAW_BROWSER_COLOR, k as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, n as isChromeCdpReady, o as stopOpenClawChrome, r as isChromeReachable, v as normalizeCdpWsUrl, w as ensureChromeExtensionRelayServer } from "./chrome-XHJ9uNgs.js";
|
|
4
4
|
import { n as formatErrorMessage, t as extractErrorCode } from "./errors-B0eT3jVv.js";
|
|
5
5
|
import { r as isLoopbackHost } from "./ws-DtDKpbLR.js";
|
|
6
6
|
import fs from "node:fs";
|
|
@@ -17,7 +17,7 @@ function isModuleNotFoundError(err) {
|
|
|
17
17
|
}
|
|
18
18
|
async function loadPwAiModule(mode) {
|
|
19
19
|
try {
|
|
20
|
-
return await import("./pw-ai-
|
|
20
|
+
return await import("./pw-ai-BtArcIEo.js");
|
|
21
21
|
} catch (err) {
|
|
22
22
|
if (mode === "soft") return null;
|
|
23
23
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -620,11 +620,11 @@ function createProfileContext(opts, profile) {
|
|
|
620
620
|
const userDataDir = resolveOpenClawUserDataDir(profile.name);
|
|
621
621
|
const profileState = getProfileState();
|
|
622
622
|
if (await isHttpReachable(300) && !profileState.running) try {
|
|
623
|
-
await (await import("./pw-ai-
|
|
623
|
+
await (await import("./pw-ai-BtArcIEo.js")).closePlaywrightBrowserConnection();
|
|
624
624
|
} catch {}
|
|
625
625
|
if (profileState.running) await stopRunningBrowser();
|
|
626
626
|
try {
|
|
627
|
-
await (await import("./pw-ai-
|
|
627
|
+
await (await import("./pw-ai-BtArcIEo.js")).closePlaywrightBrowserConnection();
|
|
628
628
|
} catch {}
|
|
629
629
|
if (!fs.existsSync(userDataDir)) return {
|
|
630
630
|
moved: false,
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import { p as defaultRuntime } from "./entry.js";
|
|
2
|
-
import "./auth-profiles-
|
|
2
|
+
import "./auth-profiles-Bv1AEm-Y.js";
|
|
3
3
|
import { u as normalizeMainKey } from "./session-key-DVvxnFKg.js";
|
|
4
4
|
import "./utils-Dk86IbEs.js";
|
|
5
5
|
import "./exec-B8JKbXKW.js";
|
|
6
|
-
import "./agent-scope-
|
|
6
|
+
import "./agent-scope-DQuy3dwI.js";
|
|
7
7
|
import "./github-copilot-token-SLWintYd.js";
|
|
8
8
|
import "./pi-model-discovery-DzEIEgHL.js";
|
|
9
|
-
import { i as loadConfig } from "./config-
|
|
9
|
+
import { i as loadConfig } from "./config-B00lvFac.js";
|
|
10
10
|
import "./manifest-registry-D5SiA3xq.js";
|
|
11
11
|
import "./server-context-fX4xiYRh.js";
|
|
12
12
|
import "./chrome-yIKmOzCO.js";
|
|
13
|
-
import "./control-service-
|
|
13
|
+
import "./control-service-IRAmbcbN.js";
|
|
14
14
|
import "./client-DMloFP_O.js";
|
|
15
|
-
import "./call-
|
|
15
|
+
import "./call-7yrB6v4I.js";
|
|
16
16
|
import "./message-channel-BlgPSDAh.js";
|
|
17
17
|
import "./links-7M-j83As.js";
|
|
18
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
18
|
+
import { r as normalizeChannelId } from "./plugins-Db5BiELK.js";
|
|
19
19
|
import "./logging-CfEk_PnX.js";
|
|
20
20
|
import "./accounts-DbzMEfKN.js";
|
|
21
|
-
import { er as enqueueSystemEvent, on as loadSessionEntry, rr as requestHeartbeatNow } from "./loader-
|
|
21
|
+
import { er as enqueueSystemEvent, on as loadSessionEntry, rr as requestHeartbeatNow } from "./loader-CZRfriRQ.js";
|
|
22
22
|
import "./progress-Da1ehW-x.js";
|
|
23
23
|
import "./prompt-style-Dc0C5HC9.js";
|
|
24
|
-
import "./manager-
|
|
24
|
+
import "./manager-CcVYv0N5.js";
|
|
25
25
|
import "./paths-IivnSNkP.js";
|
|
26
26
|
import "./sqlite-B7FPASCO.js";
|
|
27
27
|
import "./redact-DuEEf1p1.js";
|
|
28
|
-
import "./routes-
|
|
29
|
-
import "./pi-embedded-helpers-
|
|
30
|
-
import "./deliver-
|
|
31
|
-
import { g as updateSessionStore } from "./sandbox-
|
|
32
|
-
import "./tui-formatters-
|
|
33
|
-
import "./wsl-
|
|
34
|
-
import "./skills-
|
|
35
|
-
import "./image-
|
|
28
|
+
import "./routes-B4QQiFju.js";
|
|
29
|
+
import "./pi-embedded-helpers-Bkpd4fTr.js";
|
|
30
|
+
import "./deliver-hf-WKyWd.js";
|
|
31
|
+
import { g as updateSessionStore } from "./sandbox-Aks-9EcZ.js";
|
|
32
|
+
import "./tui-formatters-C3NarH24.js";
|
|
33
|
+
import "./wsl-Cwo7X0Un.js";
|
|
34
|
+
import "./skills-D5UZZZSY.js";
|
|
35
|
+
import "./image-Ds4NLGPR.js";
|
|
36
36
|
import "./tool-display-o-dDAlqF.js";
|
|
37
|
-
import "./channel-selection-
|
|
37
|
+
import "./channel-selection-RZimme3j.js";
|
|
38
38
|
import "./session-cost-usage-CcCEQNuc.js";
|
|
39
|
-
import "./commands-
|
|
40
|
-
import "./pairing-store-
|
|
41
|
-
import "./login-qr-
|
|
42
|
-
import "./pairing-labels-
|
|
43
|
-
import "./deps-
|
|
39
|
+
import "./commands-CjEGXOZ_.js";
|
|
40
|
+
import "./pairing-store-CgXR3ZWJ.js";
|
|
41
|
+
import "./login-qr-CGEu5TU-.js";
|
|
42
|
+
import "./pairing-labels-CWFEtSc3.js";
|
|
43
|
+
import "./deps-BoJcAXaY.js";
|
|
44
44
|
import { t as formatForLog } from "./ws-log-BP3z_g6Z.js";
|
|
45
|
-
import { t as agentCommand } from "./agent-
|
|
45
|
+
import { t as agentCommand } from "./agent-FTQXFOHA.js";
|
|
46
46
|
import { randomUUID } from "node:crypto";
|
|
47
47
|
|
|
48
48
|
//#region src/gateway/server-node-events.ts
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import "./paths-DVBShlw6.js";
|
|
2
|
-
import { c as defaultRuntime } from "./subsystem-
|
|
3
|
-
import "./utils-
|
|
4
|
-
import "./pi-embedded-helpers-
|
|
5
|
-
import { Tr as enqueueSystemEvent, st as requestHeartbeatNow, v as loadSessionEntry } from "./reply-
|
|
2
|
+
import { c as defaultRuntime } from "./subsystem-BbfPHMjH.js";
|
|
3
|
+
import "./utils-l-o5S4c-.js";
|
|
4
|
+
import "./pi-embedded-helpers-WA1Uq3tV.js";
|
|
5
|
+
import { Tr as enqueueSystemEvent, st as requestHeartbeatNow, v as loadSessionEntry } from "./reply-swCg9iXH.js";
|
|
6
6
|
import { u as normalizeMainKey } from "./session-key-BWxPj0z_.js";
|
|
7
|
-
import "./exec-
|
|
8
|
-
import "./agent-scope-
|
|
9
|
-
import "./model-selection-
|
|
7
|
+
import "./exec-BSMwiIMp.js";
|
|
8
|
+
import "./agent-scope-CPiO6Aw7.js";
|
|
9
|
+
import "./model-selection-lT7g9ysC.js";
|
|
10
10
|
import "./github-copilot-token-BW-SEg7E.js";
|
|
11
11
|
import "./boolean-BgXe2hyu.js";
|
|
12
|
-
import "./env-
|
|
13
|
-
import { i as loadConfig } from "./config-
|
|
14
|
-
import "./manifest-registry-
|
|
15
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
16
|
-
import { g as updateSessionStore } from "./sandbox-
|
|
17
|
-
import "./image-
|
|
12
|
+
import "./env-DqiOM57_.js";
|
|
13
|
+
import { i as loadConfig } from "./config-DiNnQcwe.js";
|
|
14
|
+
import "./manifest-registry-C0ApY9d8.js";
|
|
15
|
+
import { r as normalizeChannelId } from "./plugins-5W5E71Ut.js";
|
|
16
|
+
import { g as updateSessionStore } from "./sandbox-DxAKZfZd.js";
|
|
17
|
+
import "./image-DxmrpIUn.js";
|
|
18
18
|
import "./pi-model-discovery-CV2V1HHz.js";
|
|
19
|
-
import "./chrome-
|
|
20
|
-
import "./skills-
|
|
21
|
-
import "./routes-
|
|
22
|
-
import "./server-context-
|
|
23
|
-
import "./message-channel-
|
|
19
|
+
import "./chrome-XHJ9uNgs.js";
|
|
20
|
+
import "./skills-pqbmJf1e.js";
|
|
21
|
+
import "./routes-BqZyywjQ.js";
|
|
22
|
+
import "./server-context-DT3SRl5J.js";
|
|
23
|
+
import "./message-channel-DIvXZ2w4.js";
|
|
24
24
|
import "./logging-BzvBIA3Y.js";
|
|
25
|
-
import "./accounts-
|
|
25
|
+
import "./accounts-xJh3pJei.js";
|
|
26
26
|
import "./paths-Bkhd_qY8.js";
|
|
27
27
|
import "./redact-DAKeu7PA.js";
|
|
28
|
-
import "./tool-display-
|
|
29
|
-
import "./deliver-
|
|
30
|
-
import "./dispatcher-
|
|
31
|
-
import "./manager-
|
|
32
|
-
import "./sqlite-
|
|
33
|
-
import "./tui-formatters-
|
|
34
|
-
import "./client-
|
|
35
|
-
import "./call-
|
|
36
|
-
import "./login-qr-
|
|
37
|
-
import "./pairing-store-
|
|
38
|
-
import "./links-
|
|
39
|
-
import "./progress-
|
|
40
|
-
import "./pi-tools.policy-
|
|
41
|
-
import "./prompt-style-
|
|
42
|
-
import "./pairing-labels-
|
|
28
|
+
import "./tool-display-DwOJbBjC.js";
|
|
29
|
+
import "./deliver-B-MU3Szq.js";
|
|
30
|
+
import "./dispatcher-Rf7W2dBd.js";
|
|
31
|
+
import "./manager-DOqexxfO.js";
|
|
32
|
+
import "./sqlite-CDfAET9Y.js";
|
|
33
|
+
import "./tui-formatters-C-dAVvRi.js";
|
|
34
|
+
import "./client-Cam-Cwyu.js";
|
|
35
|
+
import "./call-Ccyb4kQR.js";
|
|
36
|
+
import "./login-qr-DXiuhBc8.js";
|
|
37
|
+
import "./pairing-store-C6EhvkMA.js";
|
|
38
|
+
import "./links-D6CUlrWZ.js";
|
|
39
|
+
import "./progress-COZ_ycun.js";
|
|
40
|
+
import "./pi-tools.policy-CCQVTuZw.js";
|
|
41
|
+
import "./prompt-style-CghhrkxS.js";
|
|
42
|
+
import "./pairing-labels-K_6MMQA_.js";
|
|
43
43
|
import "./session-cost-usage-PvyVZz-g.js";
|
|
44
|
-
import "./control-service-
|
|
45
|
-
import "./channel-selection-
|
|
46
|
-
import "./deps-
|
|
47
|
-
import { t as agentCommand } from "./agent-
|
|
48
|
-
import { t as formatForLog } from "./ws-log-
|
|
44
|
+
import "./control-service-CAXvnE0u.js";
|
|
45
|
+
import "./channel-selection-La1tQIxQ.js";
|
|
46
|
+
import "./deps-CaDXl7AZ.js";
|
|
47
|
+
import { t as agentCommand } from "./agent-DkZpDQJb.js";
|
|
48
|
+
import { t as formatForLog } from "./ws-log-B2H596h5.js";
|
|
49
49
|
import { randomUUID } from "node:crypto";
|
|
50
50
|
|
|
51
51
|
//#region src/gateway/server-node-events.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { I as colorize, L as isRich, R as theme } from "./subsystem-
|
|
1
|
+
import { I as colorize, L as isRich, R as theme } from "./subsystem-BbfPHMjH.js";
|
|
2
2
|
import { f as resolveGatewayWindowsTaskName, l as resolveGatewayLaunchAgentLabel, p as resolveLegacyGatewayLaunchAgentLabels, s as formatGatewayServiceDescription, t as GATEWAY_LAUNCH_AGENT_LABEL } from "./constants-CNTiY-ZN.js";
|
|
3
|
-
import { a as readSystemdServiceRuntime, c as stopSystemdService, f as parseKeyValueOutput, i as readSystemdServiceExecStart, l as uninstallSystemdService, m as resolveHomeDir, n as isSystemdServiceEnabled, p as resolveGatewayStateDir, s as restartSystemdService, t as installSystemdService } from "./systemd-
|
|
3
|
+
import { a as readSystemdServiceRuntime, c as stopSystemdService, f as parseKeyValueOutput, i as readSystemdServiceExecStart, l as uninstallSystemdService, m as resolveHomeDir, n as isSystemdServiceEnabled, p as resolveGatewayStateDir, s as restartSystemdService, t as installSystemdService } from "./systemd-Dd6y2wnN.js";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
import
|
|
5
|
+
import fsPromises from "node:fs/promises";
|
|
6
6
|
import { execFile } from "node:child_process";
|
|
7
7
|
import { promisify } from "node:util";
|
|
8
8
|
|
|
@@ -17,7 +17,7 @@ const renderEnvDict = (env) => {
|
|
|
17
17
|
};
|
|
18
18
|
async function readLaunchAgentProgramArgumentsFromFile(plistPath) {
|
|
19
19
|
try {
|
|
20
|
-
const plist = await
|
|
20
|
+
const plist = await fsPromises.readFile(plistPath, "utf8");
|
|
21
21
|
const programMatch = plist.match(/<key>ProgramArguments<\/key>\s*<array>([\s\S]*?)<\/array>/i);
|
|
22
22
|
if (!programMatch) return null;
|
|
23
23
|
const args = Array.from(programMatch[1].matchAll(/<string>([\s\S]*?)<\/string>/gi)).map((match) => plistUnescape(match[1] ?? "").trim());
|
|
@@ -147,7 +147,7 @@ async function isLaunchAgentListed(args) {
|
|
|
147
147
|
async function launchAgentPlistExists(env) {
|
|
148
148
|
try {
|
|
149
149
|
const plistPath = resolveLaunchAgentPlistPath(env);
|
|
150
|
-
await
|
|
150
|
+
await fsPromises.access(plistPath);
|
|
151
151
|
return true;
|
|
152
152
|
} catch {
|
|
153
153
|
return false;
|
|
@@ -207,7 +207,7 @@ async function uninstallLaunchAgent({ env, stdout }) {
|
|
|
207
207
|
]);
|
|
208
208
|
await execLaunchctl(["unload", plistPath]);
|
|
209
209
|
try {
|
|
210
|
-
await
|
|
210
|
+
await fsPromises.access(plistPath);
|
|
211
211
|
} catch {
|
|
212
212
|
stdout.write(`LaunchAgent not found at ${plistPath}\n`);
|
|
213
213
|
return;
|
|
@@ -216,8 +216,8 @@ async function uninstallLaunchAgent({ env, stdout }) {
|
|
|
216
216
|
const trashDir = path.join(home, ".Trash");
|
|
217
217
|
const dest = path.join(trashDir, `${label}.plist`);
|
|
218
218
|
try {
|
|
219
|
-
await
|
|
220
|
-
await
|
|
219
|
+
await fsPromises.mkdir(trashDir, { recursive: true });
|
|
220
|
+
await fsPromises.rename(plistPath, dest);
|
|
221
221
|
stdout.write(`${formatLine$1("Moved LaunchAgent to Trash", dest)}\n`);
|
|
222
222
|
} catch {
|
|
223
223
|
stdout.write(`LaunchAgent remains at ${plistPath} (could not move)\n`);
|
|
@@ -236,7 +236,7 @@ async function stopLaunchAgent({ stdout, env }) {
|
|
|
236
236
|
}
|
|
237
237
|
async function installLaunchAgent({ env, stdout, programArguments, workingDirectory, environment, description }) {
|
|
238
238
|
const { logDir, stdoutPath, stderrPath } = resolveGatewayLogPaths(env);
|
|
239
|
-
await
|
|
239
|
+
await fsPromises.mkdir(logDir, { recursive: true });
|
|
240
240
|
const domain = resolveGuiDomain();
|
|
241
241
|
const label = resolveLaunchAgentLabel({ env });
|
|
242
242
|
for (const legacyLabel of resolveLegacyGatewayLaunchAgentLabels(env.OPENCLAW_PROFILE)) {
|
|
@@ -248,11 +248,11 @@ async function installLaunchAgent({ env, stdout, programArguments, workingDirect
|
|
|
248
248
|
]);
|
|
249
249
|
await execLaunchctl(["unload", legacyPlistPath]);
|
|
250
250
|
try {
|
|
251
|
-
await
|
|
251
|
+
await fsPromises.unlink(legacyPlistPath);
|
|
252
252
|
} catch {}
|
|
253
253
|
}
|
|
254
254
|
const plistPath = resolveLaunchAgentPlistPathForLabel(env, label);
|
|
255
|
-
await
|
|
255
|
+
await fsPromises.mkdir(path.dirname(plistPath), { recursive: true });
|
|
256
256
|
const plist = buildLaunchAgentPlist({
|
|
257
257
|
label,
|
|
258
258
|
comment: description ?? formatGatewayServiceDescription({
|
|
@@ -265,7 +265,7 @@ async function installLaunchAgent({ env, stdout, programArguments, workingDirect
|
|
|
265
265
|
stderrPath,
|
|
266
266
|
environment
|
|
267
267
|
});
|
|
268
|
-
await
|
|
268
|
+
await fsPromises.writeFile(plistPath, plist, "utf8");
|
|
269
269
|
await execLaunchctl([
|
|
270
270
|
"bootout",
|
|
271
271
|
domain,
|
|
@@ -366,7 +366,7 @@ function parseCommandLine(value) {
|
|
|
366
366
|
async function readScheduledTaskCommand(env) {
|
|
367
367
|
const scriptPath = resolveTaskScriptPath(env);
|
|
368
368
|
try {
|
|
369
|
-
const content = await
|
|
369
|
+
const content = await fsPromises.readFile(scriptPath, "utf8");
|
|
370
370
|
let workingDirectory = "";
|
|
371
371
|
let commandLine = "";
|
|
372
372
|
const environment = {};
|
|
@@ -454,7 +454,7 @@ async function assertSchtasksAvailable() {
|
|
|
454
454
|
async function installScheduledTask({ env, stdout, programArguments, workingDirectory, environment, description }) {
|
|
455
455
|
await assertSchtasksAvailable();
|
|
456
456
|
const scriptPath = resolveTaskScriptPath(env);
|
|
457
|
-
await
|
|
457
|
+
await fsPromises.mkdir(path.dirname(scriptPath), { recursive: true });
|
|
458
458
|
const script = buildTaskScript({
|
|
459
459
|
description: description ?? formatGatewayServiceDescription({
|
|
460
460
|
profile: env.OPENCLAW_PROFILE,
|
|
@@ -464,7 +464,7 @@ async function installScheduledTask({ env, stdout, programArguments, workingDire
|
|
|
464
464
|
workingDirectory,
|
|
465
465
|
environment
|
|
466
466
|
});
|
|
467
|
-
await
|
|
467
|
+
await fsPromises.writeFile(scriptPath, script, "utf8");
|
|
468
468
|
const taskName = resolveTaskName(env);
|
|
469
469
|
const baseArgs = [
|
|
470
470
|
"/Create",
|
|
@@ -512,7 +512,7 @@ async function uninstallScheduledTask({ env, stdout }) {
|
|
|
512
512
|
]);
|
|
513
513
|
const scriptPath = resolveTaskScriptPath(env);
|
|
514
514
|
try {
|
|
515
|
-
await
|
|
515
|
+
await fsPromises.unlink(scriptPath);
|
|
516
516
|
stdout.write(`${formatLine("Removed task script", scriptPath)}\n`);
|
|
517
517
|
} catch {
|
|
518
518
|
stdout.write(`Task script not found at ${scriptPath}\n`);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { d as resolveGatewaySystemdServiceName, f as resolveGatewayWindowsTaskName, l as resolveGatewayLaunchAgentLabel, n as GATEWAY_SERVICE_KIND, r as GATEWAY_SERVICE_MARKER } from "./constants-CNTiY-ZN.js";
|
|
2
|
-
import { c as getMinimalServicePathPartsFromEnv, l as isSystemNodePath, m as resolveSystemNodePath, u as isVersionManagedNodePath } from "./daemon-runtime-
|
|
3
|
-
import { o as resolveGatewayLogPaths, s as resolveLaunchAgentPlistPath } from "./service-
|
|
4
|
-
import { o as resolveSystemdUserUnitPath } from "./systemd-
|
|
2
|
+
import { c as getMinimalServicePathPartsFromEnv, l as isSystemNodePath, m as resolveSystemNodePath, u as isVersionManagedNodePath } from "./daemon-runtime-CVte5WIX.js";
|
|
3
|
+
import { o as resolveGatewayLogPaths, s as resolveLaunchAgentPlistPath } from "./service-DPsnpYzk.js";
|
|
4
|
+
import { o as resolveSystemdUserUnitPath } from "./systemd-Dd6y2wnN.js";
|
|
5
5
|
import path from "node:path";
|
|
6
|
-
import
|
|
6
|
+
import fsPromises from "node:fs/promises";
|
|
7
7
|
import { execFile } from "node:child_process";
|
|
8
8
|
import { promisify } from "node:util";
|
|
9
9
|
|
|
@@ -17,7 +17,7 @@ const GATEWAY_LOG_ERROR_PATTERNS = [
|
|
|
17
17
|
];
|
|
18
18
|
async function readLastLogLine(filePath) {
|
|
19
19
|
try {
|
|
20
|
-
const lines = (await
|
|
20
|
+
const lines = (await fsPromises.readFile(filePath, "utf8")).split(/\r?\n/).map((line) => line.trim());
|
|
21
21
|
for (let i = lines.length - 1; i >= 0; i -= 1) if (lines[i]) return lines[i];
|
|
22
22
|
return null;
|
|
23
23
|
} catch {
|
|
@@ -26,8 +26,8 @@ async function readLastLogLine(filePath) {
|
|
|
26
26
|
}
|
|
27
27
|
async function readLastGatewayErrorLine(env) {
|
|
28
28
|
const { stdoutPath, stderrPath } = resolveGatewayLogPaths(env);
|
|
29
|
-
const stderrRaw = await
|
|
30
|
-
const stdoutRaw = await
|
|
29
|
+
const stderrRaw = await fsPromises.readFile(stderrPath, "utf8").catch(() => "");
|
|
30
|
+
const stdoutRaw = await fsPromises.readFile(stdoutPath, "utf8").catch(() => "");
|
|
31
31
|
const lines = [...stderrRaw.split(/\r?\n/), ...stdoutRaw.split(/\r?\n/)].map((line) => line.trim());
|
|
32
32
|
for (let i = lines.length - 1; i >= 0; i -= 1) {
|
|
33
33
|
const line = lines[i];
|
|
@@ -114,7 +114,7 @@ async function scanLaunchdDir(params) {
|
|
|
114
114
|
const results = [];
|
|
115
115
|
let entries = [];
|
|
116
116
|
try {
|
|
117
|
-
entries = await
|
|
117
|
+
entries = await fsPromises.readdir(params.dir);
|
|
118
118
|
} catch {
|
|
119
119
|
return results;
|
|
120
120
|
}
|
|
@@ -125,7 +125,7 @@ async function scanLaunchdDir(params) {
|
|
|
125
125
|
const fullPath = path.join(params.dir, entry);
|
|
126
126
|
let contents = "";
|
|
127
127
|
try {
|
|
128
|
-
contents = await
|
|
128
|
+
contents = await fsPromises.readFile(fullPath, "utf8");
|
|
129
129
|
} catch {
|
|
130
130
|
continue;
|
|
131
131
|
}
|
|
@@ -160,7 +160,7 @@ async function scanSystemdDir(params) {
|
|
|
160
160
|
const results = [];
|
|
161
161
|
let entries = [];
|
|
162
162
|
try {
|
|
163
|
-
entries = await
|
|
163
|
+
entries = await fsPromises.readdir(params.dir);
|
|
164
164
|
} catch {
|
|
165
165
|
return results;
|
|
166
166
|
}
|
|
@@ -171,7 +171,7 @@ async function scanSystemdDir(params) {
|
|
|
171
171
|
const fullPath = path.join(params.dir, entry);
|
|
172
172
|
let contents = "";
|
|
173
173
|
try {
|
|
174
|
-
contents = await
|
|
174
|
+
contents = await fsPromises.readFile(fullPath, "utf8");
|
|
175
175
|
} catch {
|
|
176
176
|
continue;
|
|
177
177
|
}
|
|
@@ -385,7 +385,7 @@ async function auditSystemdUnit(env, issues) {
|
|
|
385
385
|
const unitPath = resolveSystemdUserUnitPath(env);
|
|
386
386
|
let content = "";
|
|
387
387
|
try {
|
|
388
|
-
content = await
|
|
388
|
+
content = await fsPromises.readFile(unitPath, "utf8");
|
|
389
389
|
} catch {
|
|
390
390
|
return;
|
|
391
391
|
}
|
|
@@ -413,7 +413,7 @@ async function auditLaunchdPlist(env, issues) {
|
|
|
413
413
|
const plistPath = resolveLaunchAgentPlistPath(env);
|
|
414
414
|
let content = "";
|
|
415
415
|
try {
|
|
416
|
-
content = await
|
|
416
|
+
content = await fsPromises.readFile(plistPath, "utf8");
|
|
417
417
|
} catch {
|
|
418
418
|
return;
|
|
419
419
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as resolveGatewaySystemdServiceName, f as resolveGatewayWindowsTaskName, l as resolveGatewayLaunchAgentLabel, n as GATEWAY_SERVICE_KIND, r as GATEWAY_SERVICE_MARKER } from "./constants-DuoCkWRh.js";
|
|
2
|
-
import { c as getMinimalServicePathPartsFromEnv, l as isSystemNodePath, m as resolveSystemNodePath, u as isVersionManagedNodePath } from "./daemon-runtime-
|
|
2
|
+
import { c as getMinimalServicePathPartsFromEnv, l as isSystemNodePath, m as resolveSystemNodePath, u as isVersionManagedNodePath } from "./daemon-runtime-c0uXH4Dl.js";
|
|
3
3
|
import { o as resolveGatewayLogPaths, s as resolveLaunchAgentPlistPath } from "./service-DDPRbf8a.js";
|
|
4
4
|
import { o as resolveSystemdUserUnitPath } from "./systemd-BEWwfwn0.js";
|
|
5
5
|
import { execFile } from "node:child_process";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as defaultRuntime } from "./subsystem-
|
|
1
|
+
import { c as defaultRuntime } from "./subsystem-BbfPHMjH.js";
|
|
2
2
|
import { t as formatCliCommand } from "./command-format-ChfKqObn.js";
|
|
3
3
|
import { d as resolveGatewaySystemdServiceName, f as resolveGatewayWindowsTaskName, l as resolveGatewayLaunchAgentLabel } from "./constants-CNTiY-ZN.js";
|
|
4
|
-
import { t as resolveGatewayService } from "./service-
|
|
4
|
+
import { t as resolveGatewayService } from "./service-DPsnpYzk.js";
|
|
5
5
|
|
|
6
6
|
//#region src/cli/gateway-cli/shared.ts
|
|
7
7
|
function parsePort(raw) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { V as getResolvedLoggerSettings, c as defaultRuntime } from "./subsystem-
|
|
1
|
+
import { V as getResolvedLoggerSettings, c as defaultRuntime } from "./subsystem-BbfPHMjH.js";
|
|
2
2
|
import { t as formatCliCommand } from "./command-format-ChfKqObn.js";
|
|
3
3
|
import { s as pickPrimaryLanIPv4 } from "./ws-DtDKpbLR.js";
|
|
4
4
|
import { d as resolveGatewaySystemdServiceName, f as resolveGatewayWindowsTaskName, l as resolveGatewayLaunchAgentLabel } from "./constants-CNTiY-ZN.js";
|
|
5
|
-
import { o as resolveGatewayLogPaths } from "./service-
|
|
5
|
+
import { o as resolveGatewayLogPaths } from "./service-DPsnpYzk.js";
|
|
6
6
|
import { Writable } from "node:stream";
|
|
7
7
|
|
|
8
8
|
//#region src/cli/daemon-cli/response.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as hasErrnoCode } from "./errors-B0eT3jVv.js";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import
|
|
3
|
+
import fsPromises from "node:fs/promises";
|
|
4
4
|
|
|
5
5
|
//#region src/security/skill-scanner.ts
|
|
6
6
|
const SCANNABLE_EXTENSIONS = new Set([
|
|
@@ -159,7 +159,7 @@ async function walkDirWithLimit(dirPath, maxFiles) {
|
|
|
159
159
|
while (stack.length > 0 && files.length < maxFiles) {
|
|
160
160
|
const currentDir = stack.pop();
|
|
161
161
|
if (!currentDir) break;
|
|
162
|
-
const entries = await
|
|
162
|
+
const entries = await fsPromises.readdir(currentDir, { withFileTypes: true });
|
|
163
163
|
for (const entry of entries) {
|
|
164
164
|
if (files.length >= maxFiles) break;
|
|
165
165
|
if (entry.name.startsWith(".") || entry.name === "node_modules") continue;
|
|
@@ -181,7 +181,7 @@ async function resolveForcedFiles(params) {
|
|
|
181
181
|
if (seen.has(includePath)) continue;
|
|
182
182
|
let st = null;
|
|
183
183
|
try {
|
|
184
|
-
st = await
|
|
184
|
+
st = await fsPromises.stat(includePath);
|
|
185
185
|
} catch (err) {
|
|
186
186
|
if (hasErrnoCode(err, "ENOENT")) continue;
|
|
187
187
|
throw err;
|
|
@@ -213,14 +213,14 @@ async function collectScannableFiles(dirPath, opts) {
|
|
|
213
213
|
async function readScannableSource(filePath, maxFileBytes) {
|
|
214
214
|
let st = null;
|
|
215
215
|
try {
|
|
216
|
-
st = await
|
|
216
|
+
st = await fsPromises.stat(filePath);
|
|
217
217
|
} catch (err) {
|
|
218
218
|
if (hasErrnoCode(err, "ENOENT")) return null;
|
|
219
219
|
throw err;
|
|
220
220
|
}
|
|
221
221
|
if (!st?.isFile() || st.size > maxFileBytes) return null;
|
|
222
222
|
try {
|
|
223
|
-
return await
|
|
223
|
+
return await fsPromises.readFile(filePath, "utf-8");
|
|
224
224
|
} catch (err) {
|
|
225
225
|
if (hasErrnoCode(err, "ENOENT")) return null;
|
|
226
226
|
throw err;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as parseBooleanValue, o as createSubsystemLogger } from "./entry.js";
|
|
2
2
|
import { t as CONFIG_DIR, y as resolveUserPath } from "./utils-Dk86IbEs.js";
|
|
3
|
-
import { n as resolveOpenClawPackageRootSync } from "./openclaw-root-
|
|
3
|
+
import { n as resolveOpenClawPackageRootSync } from "./openclaw-root-Dw6gumSU.js";
|
|
4
4
|
import { a as MANIFEST_KEY, c as normalizePluginsConfig, i as LEGACY_MANIFEST_KEYS, l as resolveEnableState, t as loadPluginManifestRegistry, u as resolveMemorySlotDecision } from "./manifest-registry-D5SiA3xq.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import fs from "node:fs";
|