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
package/dist/index.js
CHANGED
|
@@ -1,101 +1,101 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { g as resolveStateDir, i as isNixMode, m as resolveOAuthDir, o as resolveConfigPath, r as STATE_DIR, u as resolveGatewayPort } from "./paths-DVBShlw6.js";
|
|
3
|
-
import { D as info, E as danger, I as colorize, L as isRich, M as setVerbose, R as theme, S as normalizeChatChannelId, c as defaultRuntime, h as DEFAULT_CHAT_CHANNEL, l as restoreTerminalState, r as enableConsoleCapture, s as visibleWidth, v as getChatChannelMeta } from "./subsystem-
|
|
4
|
-
import { C as shortenHomePath, E as toWhatsappJid, S as shortenHomeInString, b as resolveUserPath, h as normalizeE164, n as assertWebChannel, v as resolveHomeDir } from "./utils-
|
|
5
|
-
import "./pi-embedded-helpers-
|
|
6
|
-
import { Ct as formatControlUiSshHint, D as runMessageAction, Et as moveToTrash, Ft as waitForGatewayReachable, I as CHANNEL_MESSAGE_ACTION_NAMES, Mt as resolveControlUiLinks, Ot as openUrl, P as formatTargetDisplay, St as ensureWorkspaceAndSessions, Tt as handleReset, Wr as applyTemplate, an as registerMemoryCli, at as CHANNEL_TARGETS_DESCRIPTION, br as lookupContextTokens, ht as resolveCommitHash, jt as randomToken, kr as installUnhandledRejectionHandler, on as runMemoryStatus, ot as CHANNEL_TARGET_DESCRIPTION, sn as monitorWebChannel, t as getReplyFromConfig, un as waitForever, vt as DEFAULT_WORKSPACE, xt as detectBrowserOpenSupport, yt as applyWizardMetadata } from "./reply-
|
|
3
|
+
import { D as info, E as danger, I as colorize, L as isRich, M as setVerbose, R as theme, S as normalizeChatChannelId, c as defaultRuntime, h as DEFAULT_CHAT_CHANNEL, l as restoreTerminalState, r as enableConsoleCapture, s as visibleWidth, v as getChatChannelMeta } from "./subsystem-BbfPHMjH.js";
|
|
4
|
+
import { C as shortenHomePath, E as toWhatsappJid, S as shortenHomeInString, b as resolveUserPath, h as normalizeE164, n as assertWebChannel, v as resolveHomeDir } from "./utils-l-o5S4c-.js";
|
|
5
|
+
import "./pi-embedded-helpers-WA1Uq3tV.js";
|
|
6
|
+
import { Ct as formatControlUiSshHint, D as runMessageAction, Et as moveToTrash, Ft as waitForGatewayReachable, I as CHANNEL_MESSAGE_ACTION_NAMES, Mt as resolveControlUiLinks, Ot as openUrl, P as formatTargetDisplay, St as ensureWorkspaceAndSessions, Tt as handleReset, Wr as applyTemplate, an as registerMemoryCli, at as CHANNEL_TARGETS_DESCRIPTION, br as lookupContextTokens, ht as resolveCommitHash, jt as randomToken, kr as installUnhandledRejectionHandler, on as runMemoryStatus, ot as CHANNEL_TARGET_DESCRIPTION, sn as monitorWebChannel, t as getReplyFromConfig, un as waitForever, vt as DEFAULT_WORKSPACE, xt as detectBrowserOpenSupport, yt as applyWizardMetadata } from "./reply-swCg9iXH.js";
|
|
7
7
|
import { l as normalizeAgentId, n as DEFAULT_AGENT_ID, t as DEFAULT_ACCOUNT_ID } from "./session-key-BWxPj0z_.js";
|
|
8
|
-
import { n as runExec, t as runCommandWithTimeout } from "./exec-
|
|
9
|
-
import { c as resolveDefaultAgentId, f as DEFAULT_AGENT_WORKSPACE_DIR, h as DEFAULT_IDENTITY_FILENAME, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, w as resolveDefaultAgentWorkspaceDir, x as ensureAgentWorkspace } from "./agent-scope-
|
|
10
|
-
import { Dt as DEFAULT_MODEL, Et as DEFAULT_CONTEXT_TOKENS, H as resolveEnvApiKey, Ot as DEFAULT_PROVIDER, St as normalizeSecretInput, at as resolveApiKeyForProfile, d as resolveConfiguredModelRef, et as resolveAuthProfileOrder, ht as ensureAuthProfileStore, mt as upsertAuthProfile, s as normalizeProviderId, vt as resolveAuthStorePath, xt as normalizeOptionalSecretInput } from "./model-selection-
|
|
8
|
+
import { n as runExec, t as runCommandWithTimeout } from "./exec-BSMwiIMp.js";
|
|
9
|
+
import { c as resolveDefaultAgentId, f as DEFAULT_AGENT_WORKSPACE_DIR, h as DEFAULT_IDENTITY_FILENAME, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, w as resolveDefaultAgentWorkspaceDir, x as ensureAgentWorkspace } from "./agent-scope-CPiO6Aw7.js";
|
|
10
|
+
import { Dt as DEFAULT_MODEL, Et as DEFAULT_CONTEXT_TOKENS, H as resolveEnvApiKey, Ot as DEFAULT_PROVIDER, St as normalizeSecretInput, at as resolveApiKeyForProfile, d as resolveConfiguredModelRef, et as resolveAuthProfileOrder, ht as ensureAuthProfileStore, mt as upsertAuthProfile, s as normalizeProviderId, vt as resolveAuthStorePath, xt as normalizeOptionalSecretInput } from "./model-selection-lT7g9ysC.js";
|
|
11
11
|
import "./github-copilot-token-BW-SEg7E.js";
|
|
12
12
|
import { n as replaceCliName, r as resolveCliName, t as formatCliCommand } from "./command-format-ChfKqObn.js";
|
|
13
13
|
import { t as parseBooleanValue } from "./boolean-BgXe2hyu.js";
|
|
14
|
-
import { r as normalizeEnv, t as isTruthyEnvValue } from "./env-
|
|
15
|
-
import { M as VERSION, N as loadDotEnv, c as writeConfigFile, g as parseDurationMs, i as loadConfig, o as readConfigFileSnapshot, r as createConfigIO } from "./config-
|
|
16
|
-
import "./manifest-registry-
|
|
17
|
-
import { n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin } from "./plugins-
|
|
18
|
-
import { D as resolveSessionKey, E as deriveSessionKey, d as loadSessionStore, m as saveSessionStore } from "./sandbox-
|
|
19
|
-
import "./image-
|
|
14
|
+
import { r as normalizeEnv, t as isTruthyEnvValue } from "./env-DqiOM57_.js";
|
|
15
|
+
import { M as VERSION, N as loadDotEnv, c as writeConfigFile, g as parseDurationMs, i as loadConfig, o as readConfigFileSnapshot, r as createConfigIO } from "./config-DiNnQcwe.js";
|
|
16
|
+
import "./manifest-registry-C0ApY9d8.js";
|
|
17
|
+
import { n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin } from "./plugins-5W5E71Ut.js";
|
|
18
|
+
import { D as resolveSessionKey, E as deriveSessionKey, d as loadSessionStore, m as saveSessionStore } from "./sandbox-DxAKZfZd.js";
|
|
19
|
+
import "./image-DxmrpIUn.js";
|
|
20
20
|
import "./pi-model-discovery-CV2V1HHz.js";
|
|
21
|
-
import { c as describePortOwner, l as ensurePortAvailable, s as PortInUseError, u as handlePortError } from "./chrome-
|
|
22
|
-
import "./skills-
|
|
23
|
-
import "./routes-
|
|
21
|
+
import { c as describePortOwner, l as ensurePortAvailable, s as PortInUseError, u as handlePortError } from "./chrome-XHJ9uNgs.js";
|
|
22
|
+
import "./skills-pqbmJf1e.js";
|
|
23
|
+
import "./routes-BqZyywjQ.js";
|
|
24
24
|
import { r as formatUncaughtError } from "./errors-B0eT3jVv.js";
|
|
25
|
-
import { n as movePathToTrash } from "./server-context-
|
|
26
|
-
import { h as GATEWAY_CLIENT_NAMES, l as normalizeMessageChannel, m as GATEWAY_CLIENT_MODES } from "./message-channel-
|
|
25
|
+
import { n as movePathToTrash } from "./server-context-DT3SRl5J.js";
|
|
26
|
+
import { h as GATEWAY_CLIENT_NAMES, l as normalizeMessageChannel, m as GATEWAY_CLIENT_MODES } from "./message-channel-DIvXZ2w4.js";
|
|
27
27
|
import "./logging-BzvBIA3Y.js";
|
|
28
|
-
import "./accounts-
|
|
28
|
+
import "./accounts-xJh3pJei.js";
|
|
29
29
|
import { a as resolveSessionTranscriptsDirForAgent, i as resolveSessionTranscriptsDir, o as resolveStorePath } from "./paths-Bkhd_qY8.js";
|
|
30
30
|
import "./redact-DAKeu7PA.js";
|
|
31
|
-
import "./tool-display-
|
|
32
|
-
import "./deliver-
|
|
33
|
-
import "./dispatcher-
|
|
34
|
-
import "./manager-
|
|
35
|
-
import "./sqlite-
|
|
36
|
-
import "./tui-formatters-
|
|
37
|
-
import "./client-
|
|
38
|
-
import { i as randomIdempotencyKey, n as callGateway } from "./call-
|
|
31
|
+
import "./tool-display-DwOJbBjC.js";
|
|
32
|
+
import "./deliver-B-MU3Szq.js";
|
|
33
|
+
import "./dispatcher-Rf7W2dBd.js";
|
|
34
|
+
import "./manager-DOqexxfO.js";
|
|
35
|
+
import "./sqlite-CDfAET9Y.js";
|
|
36
|
+
import "./tui-formatters-C-dAVvRi.js";
|
|
37
|
+
import "./client-Cam-Cwyu.js";
|
|
38
|
+
import { i as randomIdempotencyKey, n as callGateway } from "./call-Ccyb4kQR.js";
|
|
39
39
|
import { n as formatTimeAgo } from "./format-relative-Db7eqEu8.js";
|
|
40
|
-
import "./login-qr-
|
|
41
|
-
import "./pairing-store-
|
|
42
|
-
import { t as formatDocsLink } from "./links-
|
|
40
|
+
import "./login-qr-DXiuhBc8.js";
|
|
41
|
+
import "./pairing-store-C6EhvkMA.js";
|
|
42
|
+
import { t as formatDocsLink } from "./links-D6CUlrWZ.js";
|
|
43
43
|
import { n as runCommandWithRuntime } from "./cli-utils-R-ECs5cY.js";
|
|
44
|
-
import { n as withProgress } from "./progress-
|
|
45
|
-
import "./pi-tools.policy-
|
|
46
|
-
import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint } from "./prompt-style-
|
|
47
|
-
import "./pairing-labels-
|
|
44
|
+
import { n as withProgress } from "./progress-COZ_ycun.js";
|
|
45
|
+
import "./pi-tools.policy-CCQVTuZw.js";
|
|
46
|
+
import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint } from "./prompt-style-CghhrkxS.js";
|
|
47
|
+
import "./pairing-labels-K_6MMQA_.js";
|
|
48
48
|
import "./session-cost-usage-PvyVZz-g.js";
|
|
49
|
-
import "./control-service-
|
|
50
|
-
import "./channel-selection-
|
|
51
|
-
import { t as createDefaultDeps } from "./deps-
|
|
52
|
-
import { l as ensureBinary, u as promptYesNo } from "./tailscale-
|
|
49
|
+
import "./control-service-CAXvnE0u.js";
|
|
50
|
+
import "./channel-selection-La1tQIxQ.js";
|
|
51
|
+
import { t as createDefaultDeps } from "./deps-CaDXl7AZ.js";
|
|
52
|
+
import { l as ensureBinary, u as promptYesNo } from "./tailscale-WFi900xf.js";
|
|
53
53
|
import { t as isMainModule } from "./is-main-WWuz28Ip.js";
|
|
54
|
-
import { t as ensureOpenClawCliOnPath } from "./path-env-
|
|
55
|
-
import { a as gatewayInstallErrorHint, g as assertSupportedRuntime, i as buildGatewayInstallPlan, r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-
|
|
56
|
-
import { a as buildAgentSummaries, c as loadAgentIdentity, f as parseIdentityMarkdown, i as applyAgentConfig, l as pruneAgentConfig, n as statusCommand, o as findAgentEntryIndex, s as listAgentEntries, t as runOnboardingWizard, u as identityHasValues } from "./onboarding-
|
|
54
|
+
import { t as ensureOpenClawCliOnPath } from "./path-env-CvL55Ntz.js";
|
|
55
|
+
import { a as gatewayInstallErrorHint, g as assertSupportedRuntime, i as buildGatewayInstallPlan, r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-CVte5WIX.js";
|
|
56
|
+
import { a as buildAgentSummaries, c as loadAgentIdentity, f as parseIdentityMarkdown, i as applyAgentConfig, l as pruneAgentConfig, n as statusCommand, o as findAgentEntryIndex, s as listAgentEntries, t as runOnboardingWizard, u as identityHasValues } from "./onboarding-DzjDuLJ0.js";
|
|
57
57
|
import { t as resolveChannelDefaultAccountId } from "./helpers-C89IG08W.js";
|
|
58
|
-
import { n as logConfigUpdated, t as formatConfigPath } from "./logging-
|
|
59
|
-
import "./note-
|
|
58
|
+
import { n as logConfigUpdated, t as formatConfigPath } from "./logging-BhXRnaAc.js";
|
|
59
|
+
import "./note-B5QlVszL.js";
|
|
60
60
|
import { t as WizardCancelledError } from "./prompts--d-6l5Ln.js";
|
|
61
|
-
import { t as createClackPrompter } from "./clack-prompter-
|
|
62
|
-
import { _ as promptAuthChoiceGrouped, f as warnIfModelConfigLooksOff, g as applyGoogleGeminiModelDefault, h as upsertSharedEnvVar, m as applyOpenAIConfig, p as applyAuthChoice } from "./onboard-skills-
|
|
63
|
-
import { $ as setMinimaxApiKey, C as applyMoonshotConfig, D as applyOpenrouterConfig, F as applyVeniceConfig, L as applyVercelAiGatewayConfig, N as applyTogetherConfig, Q as setKimiCodingApiKey, U as applyZaiConfig, V as applyXiaomiConfig, X as setCloudflareAiGatewayConfig, Y as setAnthropicApiKey, Z as setGeminiApiKey, _t as validateAnthropicSetupToken, at as setTogetherApiKey, ct as setXaiApiKey, et as setMoonshotApiKey, f as applyOpencodeZenConfig, g as applyMinimaxConfig, gt as buildTokenProfileId, it as setSyntheticApiKey, j as applySyntheticConfig, k as applyQianfanConfig, lt as setXiaomiApiKey, m as applyMinimaxApiConfig, nt as setOpenrouterApiKey, ot as setVeniceApiKey, rt as setQianfanApiKey, st as setVercelAiGatewayApiKey, tt as setOpencodeZenApiKey, ut as setZaiApiKey, v as applyAuthProfileConfig, w as applyMoonshotConfigCn, x as applyKimiCodeConfig, y as applyCloudflareAiGatewayConfig, z as applyXaiConfig } from "./github-copilot-auth-
|
|
64
|
-
import { n as setupChannels } from "./onboard-channels-
|
|
65
|
-
import "./plugin-auto-enable-
|
|
66
|
-
import "./archive-
|
|
67
|
-
import "./skill-scanner-
|
|
68
|
-
import "./installs-
|
|
69
|
-
import { l as healthCommand } from "./health-format-
|
|
70
|
-
import "./update-runner-
|
|
71
|
-
import "./auth-
|
|
72
|
-
import "./audit-
|
|
73
|
-
import { t as renderTable } from "./table-
|
|
74
|
-
import "./skills-status-
|
|
75
|
-
import { t as resolveGatewayService } from "./service-
|
|
76
|
-
import { r as isSystemdUserServiceAvailable } from "./systemd-
|
|
77
|
-
import "./service-audit-
|
|
78
|
-
import "./node-service-
|
|
79
|
-
import "./channels-status-issues-
|
|
80
|
-
import { c as registerSubCliCommands, d as getPositiveIntFlagValue, f as getVerboseFlag, l as getCommandPath, m as hasHelpOrVersion, p as hasFlag, u as getFlagValue } from "./completion-cli-
|
|
81
|
-
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-
|
|
82
|
-
import { t as formatHelpExamples } from "./help-format-
|
|
83
|
-
import { a as createOutboundSendDeps, n as resolveSessionKeyForRequest, t as agentCommand } from "./agent-
|
|
84
|
-
import { i as hasExplicitOptions, n as resolveCliChannelOptions, r as ensurePluginRegistryLoaded } from "./channel-options-
|
|
61
|
+
import { t as createClackPrompter } from "./clack-prompter-IfLZ3uDJ.js";
|
|
62
|
+
import { _ as promptAuthChoiceGrouped, f as warnIfModelConfigLooksOff, g as applyGoogleGeminiModelDefault, h as upsertSharedEnvVar, m as applyOpenAIConfig, p as applyAuthChoice } from "./onboard-skills-Djn43Fx2.js";
|
|
63
|
+
import { $ as setMinimaxApiKey, C as applyMoonshotConfig, D as applyOpenrouterConfig, F as applyVeniceConfig, L as applyVercelAiGatewayConfig, N as applyTogetherConfig, Q as setKimiCodingApiKey, U as applyZaiConfig, V as applyXiaomiConfig, X as setCloudflareAiGatewayConfig, Y as setAnthropicApiKey, Z as setGeminiApiKey, _t as validateAnthropicSetupToken, at as setTogetherApiKey, ct as setXaiApiKey, et as setMoonshotApiKey, f as applyOpencodeZenConfig, g as applyMinimaxConfig, gt as buildTokenProfileId, it as setSyntheticApiKey, j as applySyntheticConfig, k as applyQianfanConfig, lt as setXiaomiApiKey, m as applyMinimaxApiConfig, nt as setOpenrouterApiKey, ot as setVeniceApiKey, rt as setQianfanApiKey, st as setVercelAiGatewayApiKey, tt as setOpencodeZenApiKey, ut as setZaiApiKey, v as applyAuthProfileConfig, w as applyMoonshotConfigCn, x as applyKimiCodeConfig, y as applyCloudflareAiGatewayConfig, z as applyXaiConfig } from "./github-copilot-auth-BJOEuPdX.js";
|
|
64
|
+
import { n as setupChannels } from "./onboard-channels-DNlBXz4a.js";
|
|
65
|
+
import "./plugin-auto-enable-BvBr0yMV.js";
|
|
66
|
+
import "./archive-BixfOVSf.js";
|
|
67
|
+
import "./skill-scanner-zYmZ2Coy.js";
|
|
68
|
+
import "./installs-C9WW834H.js";
|
|
69
|
+
import { l as healthCommand } from "./health-format-I_hcV0x3.js";
|
|
70
|
+
import "./update-runner-BiHI3sto.js";
|
|
71
|
+
import "./auth-D_PS9etv.js";
|
|
72
|
+
import "./audit-CGlFTiEB.js";
|
|
73
|
+
import { t as renderTable } from "./table-DTm1PXe-.js";
|
|
74
|
+
import "./skills-status-d-tVLIaC.js";
|
|
75
|
+
import { t as resolveGatewayService } from "./service-DPsnpYzk.js";
|
|
76
|
+
import { r as isSystemdUserServiceAvailable } from "./systemd-Dd6y2wnN.js";
|
|
77
|
+
import "./service-audit-DWlZlYl6.js";
|
|
78
|
+
import "./node-service-OjXvN5Ee.js";
|
|
79
|
+
import "./channels-status-issues-DmIFbKRs.js";
|
|
80
|
+
import { c as registerSubCliCommands, d as getPositiveIntFlagValue, f as getVerboseFlag, l as getCommandPath, m as hasHelpOrVersion, p as hasFlag, u as getFlagValue } from "./completion-cli-DZlpcsto.js";
|
|
81
|
+
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-sLO5Psk7.js";
|
|
82
|
+
import { t as formatHelpExamples } from "./help-format-rtF4QeRM.js";
|
|
83
|
+
import { a as createOutboundSendDeps, n as resolveSessionKeyForRequest, t as agentCommand } from "./agent-DkZpDQJb.js";
|
|
84
|
+
import { i as hasExplicitOptions, n as resolveCliChannelOptions, r as ensurePluginRegistryLoaded } from "./channel-options-DwA7SVbf.js";
|
|
85
85
|
import { n as parsePositiveIntOrUndefined, t as collectOption } from "./helpers-CRzoyyXS.js";
|
|
86
|
-
import { i as CONFIGURE_WIZARD_SECTIONS, n as configureCommand, r as configureCommandWithSections } from "./configure-
|
|
87
|
-
import { n as ensureSystemdUserLingerNonInteractive } from "./systemd-linger-
|
|
88
|
-
import "./widearea-dns-
|
|
89
|
-
import "./auth-health-
|
|
90
|
-
import { n as loadAndMaybeMigrateDoctorConfig, t as doctorCommand } from "./doctor-
|
|
91
|
-
import "./hooks-status-
|
|
92
|
-
import "./tui-
|
|
86
|
+
import { i as CONFIGURE_WIZARD_SECTIONS, n as configureCommand, r as configureCommandWithSections } from "./configure-89VjxHbW.js";
|
|
87
|
+
import { n as ensureSystemdUserLingerNonInteractive } from "./systemd-linger-CblmG_UI.js";
|
|
88
|
+
import "./widearea-dns-mquEd9kr.js";
|
|
89
|
+
import "./auth-health-BGd7tGq0.js";
|
|
90
|
+
import { n as loadAndMaybeMigrateDoctorConfig, t as doctorCommand } from "./doctor-BkGTzeZj.js";
|
|
91
|
+
import "./hooks-status-B3y3_Ypf.js";
|
|
92
|
+
import "./tui-CJPKiYWz.js";
|
|
93
93
|
import process$1 from "node:process";
|
|
94
94
|
import { fileURLToPath } from "node:url";
|
|
95
95
|
import fs from "node:fs";
|
|
96
96
|
import path from "node:path";
|
|
97
|
-
import
|
|
98
|
-
import
|
|
97
|
+
import json5 from "json5";
|
|
98
|
+
import fsPromises from "node:fs/promises";
|
|
99
99
|
import { cancel, confirm, isCancel, multiselect, select } from "@clack/prompts";
|
|
100
100
|
import { Command } from "commander";
|
|
101
101
|
|
|
@@ -246,7 +246,7 @@ async function requireValidConfig(runtime) {
|
|
|
246
246
|
//#region src/commands/agents.commands.add.ts
|
|
247
247
|
async function fileExists(pathname) {
|
|
248
248
|
try {
|
|
249
|
-
await
|
|
249
|
+
await fsPromises.stat(pathname);
|
|
250
250
|
return true;
|
|
251
251
|
} catch {
|
|
252
252
|
return false;
|
|
@@ -386,8 +386,8 @@ async function agentsAddCommand(opts, runtime = defaultRuntime, params) {
|
|
|
386
386
|
message: `Copy auth profiles from "${defaultAgentId}"?`,
|
|
387
387
|
initialValue: false
|
|
388
388
|
})) {
|
|
389
|
-
await
|
|
390
|
-
await
|
|
389
|
+
await fsPromises.mkdir(path.dirname(destAuthPath), { recursive: true });
|
|
390
|
+
await fsPromises.copyFile(sourceAuthPath, destAuthPath);
|
|
391
391
|
await prompter.note(`Copied auth profiles from "${defaultAgentId}".`, "Auth profiles");
|
|
392
392
|
}
|
|
393
393
|
}
|
|
@@ -535,7 +535,7 @@ const coerceTrimmed = (value) => {
|
|
|
535
535
|
};
|
|
536
536
|
async function loadIdentityFromFile(filePath) {
|
|
537
537
|
try {
|
|
538
|
-
const parsed = parseIdentityMarkdown(await
|
|
538
|
+
const parsed = parseIdentityMarkdown(await fsPromises.readFile(filePath, "utf-8"));
|
|
539
539
|
if (!identityHasValues(parsed)) return null;
|
|
540
540
|
return parsed;
|
|
541
541
|
} catch {
|
|
@@ -2732,12 +2732,12 @@ function parsePath(raw) {
|
|
|
2732
2732
|
function parseValue(raw, opts) {
|
|
2733
2733
|
const trimmed = raw.trim();
|
|
2734
2734
|
if (opts.json) try {
|
|
2735
|
-
return
|
|
2735
|
+
return json5.parse(trimmed);
|
|
2736
2736
|
} catch (err) {
|
|
2737
2737
|
throw new Error(`Failed to parse JSON5 value: ${String(err)}`, { cause: err });
|
|
2738
2738
|
}
|
|
2739
2739
|
try {
|
|
2740
|
-
return
|
|
2740
|
+
return json5.parse(trimmed);
|
|
2741
2741
|
} catch {
|
|
2742
2742
|
return raw;
|
|
2743
2743
|
}
|
|
@@ -2833,7 +2833,7 @@ async function loadValidConfig() {
|
|
|
2833
2833
|
}
|
|
2834
2834
|
function registerConfigCli(program) {
|
|
2835
2835
|
const cmd = program.command("config").description("Config helpers (get/set/unset). Run without subcommand for the wizard.").addHelpText("after", () => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/config", "docs.openclaw.ai/cli/config")}\n`).option("--section <section>", "Configure wizard sections (repeatable). Use with no subcommand.", (value, previous) => [...previous, value], []).action(async (opts) => {
|
|
2836
|
-
const { CONFIGURE_WIZARD_SECTIONS, configureCommand, configureCommandWithSections } = await import("./configure-
|
|
2836
|
+
const { CONFIGURE_WIZARD_SECTIONS, configureCommand, configureCommandWithSections } = await import("./configure-89VjxHbW.js").then((n) => n.t);
|
|
2837
2837
|
const sections = Array.isArray(opts.section) ? opts.section.map((value) => typeof value === "string" ? value.trim() : "").filter(Boolean) : [];
|
|
2838
2838
|
if (sections.length === 0) {
|
|
2839
2839
|
await configureCommand(defaultRuntime);
|
|
@@ -3189,7 +3189,7 @@ async function removePath(target, runtime, opts) {
|
|
|
3189
3189
|
};
|
|
3190
3190
|
}
|
|
3191
3191
|
try {
|
|
3192
|
-
await
|
|
3192
|
+
await fsPromises.rm(resolved, {
|
|
3193
3193
|
recursive: true,
|
|
3194
3194
|
force: true
|
|
3195
3195
|
});
|
|
@@ -3203,7 +3203,7 @@ async function removePath(target, runtime, opts) {
|
|
|
3203
3203
|
async function listAgentSessionDirs(stateDir) {
|
|
3204
3204
|
const root = path.join(stateDir, "agents");
|
|
3205
3205
|
try {
|
|
3206
|
-
return (await
|
|
3206
|
+
return (await fsPromises.readdir(root, { withFileTypes: true })).filter((entry) => entry.isDirectory()).map((entry) => path.join(root, entry.name, "sessions"));
|
|
3207
3207
|
} catch {
|
|
3208
3208
|
return [];
|
|
3209
3209
|
}
|
|
@@ -5188,8 +5188,8 @@ function registerOnboardCommand(program) {
|
|
|
5188
5188
|
//#region src/commands/setup.ts
|
|
5189
5189
|
async function readConfigFileRaw(configPath) {
|
|
5190
5190
|
try {
|
|
5191
|
-
const raw = await
|
|
5192
|
-
const parsed =
|
|
5191
|
+
const raw = await fsPromises.readFile(configPath, "utf-8");
|
|
5192
|
+
const parsed = json5.parse(raw);
|
|
5193
5193
|
if (parsed && typeof parsed === "object") return {
|
|
5194
5194
|
exists: true,
|
|
5195
5195
|
parsed
|
|
@@ -5236,7 +5236,7 @@ async function setupCommand(opts, runtime = defaultRuntime) {
|
|
|
5236
5236
|
});
|
|
5237
5237
|
runtime.log(`Workspace OK: ${shortenHomePath(ws.dir)}`);
|
|
5238
5238
|
const sessionsDir = resolveSessionTranscriptsDir();
|
|
5239
|
-
await
|
|
5239
|
+
await fsPromises.mkdir(sessionsDir, { recursive: true });
|
|
5240
5240
|
runtime.log(`Sessions OK: ${shortenHomePath(sessionsDir)}`);
|
|
5241
5241
|
}
|
|
5242
5242
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as resolveUserPath, t as CONFIG_DIR } from "./utils-
|
|
2
|
-
import { t as runCommandWithTimeout } from "./exec-
|
|
3
|
-
import { a as MANIFEST_KEY } from "./manifest-registry-
|
|
4
|
-
import { a as resolvePackedRootDir, i as resolveArchiveKind, n as fileExists, r as readJsonFile, t as extractArchive } from "./archive-
|
|
5
|
-
import { t as scanDirectoryWithSummary } from "./skill-scanner-
|
|
1
|
+
import { b as resolveUserPath, t as CONFIG_DIR } from "./utils-l-o5S4c-.js";
|
|
2
|
+
import { t as runCommandWithTimeout } from "./exec-BSMwiIMp.js";
|
|
3
|
+
import { a as MANIFEST_KEY } from "./manifest-registry-C0ApY9d8.js";
|
|
4
|
+
import { a as resolvePackedRootDir, i as resolveArchiveKind, n as fileExists, r as readJsonFile, t as extractArchive } from "./archive-BixfOVSf.js";
|
|
5
|
+
import { t as scanDirectoryWithSummary } from "./skill-scanner-zYmZ2Coy.js";
|
|
6
6
|
import os from "node:os";
|
|
7
7
|
import path from "node:path";
|
|
8
|
-
import
|
|
8
|
+
import fsPromises from "node:fs/promises";
|
|
9
9
|
|
|
10
10
|
//#region src/plugins/install.ts
|
|
11
11
|
const defaultLogger = {};
|
|
@@ -126,7 +126,7 @@ async function installPluginFromPackageDir(params) {
|
|
|
126
126
|
logger.warn?.(`Plugin "${pluginId}" code safety scan failed (${String(err)}). Installation continues; run "openclaw security audit --deep" after install.`);
|
|
127
127
|
}
|
|
128
128
|
const extensionsDir = params.extensionsDir ? resolveUserPath(params.extensionsDir) : path.join(CONFIG_DIR, "extensions");
|
|
129
|
-
await
|
|
129
|
+
await fsPromises.mkdir(extensionsDir, { recursive: true });
|
|
130
130
|
const targetDirResult = resolveSafeInstallDir(extensionsDir, pluginId);
|
|
131
131
|
if (!targetDirResult.ok) return {
|
|
132
132
|
ok: false,
|
|
@@ -149,17 +149,17 @@ async function installPluginFromPackageDir(params) {
|
|
|
149
149
|
let backupDir = null;
|
|
150
150
|
if (mode === "update" && await fileExists(targetDir)) {
|
|
151
151
|
backupDir = `${targetDir}.backup-${Date.now()}`;
|
|
152
|
-
await
|
|
152
|
+
await fsPromises.rename(targetDir, backupDir);
|
|
153
153
|
}
|
|
154
154
|
try {
|
|
155
|
-
await
|
|
155
|
+
await fsPromises.cp(params.packageDir, targetDir, { recursive: true });
|
|
156
156
|
} catch (err) {
|
|
157
157
|
if (backupDir) {
|
|
158
|
-
await
|
|
158
|
+
await fsPromises.rm(targetDir, {
|
|
159
159
|
recursive: true,
|
|
160
160
|
force: true
|
|
161
161
|
}).catch(() => void 0);
|
|
162
|
-
await
|
|
162
|
+
await fsPromises.rename(backupDir, targetDir).catch(() => void 0);
|
|
163
163
|
}
|
|
164
164
|
return {
|
|
165
165
|
ok: false,
|
|
@@ -188,11 +188,11 @@ async function installPluginFromPackageDir(params) {
|
|
|
188
188
|
});
|
|
189
189
|
if (npmRes.code !== 0) {
|
|
190
190
|
if (backupDir) {
|
|
191
|
-
await
|
|
191
|
+
await fsPromises.rm(targetDir, {
|
|
192
192
|
recursive: true,
|
|
193
193
|
force: true
|
|
194
194
|
}).catch(() => void 0);
|
|
195
|
-
await
|
|
195
|
+
await fsPromises.rename(backupDir, targetDir).catch(() => void 0);
|
|
196
196
|
}
|
|
197
197
|
return {
|
|
198
198
|
ok: false,
|
|
@@ -200,7 +200,7 @@ async function installPluginFromPackageDir(params) {
|
|
|
200
200
|
};
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
if (backupDir) await
|
|
203
|
+
if (backupDir) await fsPromises.rm(backupDir, {
|
|
204
204
|
recursive: true,
|
|
205
205
|
force: true
|
|
206
206
|
}).catch(() => void 0);
|
|
@@ -226,9 +226,9 @@ async function installPluginFromArchive(params) {
|
|
|
226
226
|
ok: false,
|
|
227
227
|
error: `unsupported archive: ${archivePath}`
|
|
228
228
|
};
|
|
229
|
-
const tmpDir = await
|
|
229
|
+
const tmpDir = await fsPromises.mkdtemp(path.join(os.tmpdir(), "openclaw-plugin-"));
|
|
230
230
|
const extractDir = path.join(tmpDir, "extract");
|
|
231
|
-
await
|
|
231
|
+
await fsPromises.mkdir(extractDir, { recursive: true });
|
|
232
232
|
logger.info?.(`Extracting ${archivePath}…`);
|
|
233
233
|
try {
|
|
234
234
|
await extractArchive({
|
|
@@ -268,7 +268,7 @@ async function installPluginFromDir(params) {
|
|
|
268
268
|
ok: false,
|
|
269
269
|
error: `directory not found: ${dirPath}`
|
|
270
270
|
};
|
|
271
|
-
if (!(await
|
|
271
|
+
if (!(await fsPromises.stat(dirPath)).isDirectory()) return {
|
|
272
272
|
ok: false,
|
|
273
273
|
error: `not a directory: ${dirPath}`
|
|
274
274
|
};
|
|
@@ -292,7 +292,7 @@ async function installPluginFromFile(params) {
|
|
|
292
292
|
error: `file not found: ${filePath}`
|
|
293
293
|
};
|
|
294
294
|
const extensionsDir = params.extensionsDir ? resolveUserPath(params.extensionsDir) : path.join(CONFIG_DIR, "extensions");
|
|
295
|
-
await
|
|
295
|
+
await fsPromises.mkdir(extensionsDir, { recursive: true });
|
|
296
296
|
const pluginId = path.basename(filePath, path.extname(filePath)) || "plugin";
|
|
297
297
|
const pluginIdError = validatePluginId(pluginId);
|
|
298
298
|
if (pluginIdError) return {
|
|
@@ -313,7 +313,7 @@ async function installPluginFromFile(params) {
|
|
|
313
313
|
extensions: [path.basename(targetFile)]
|
|
314
314
|
};
|
|
315
315
|
logger.info?.(`Installing to ${targetFile}…`);
|
|
316
|
-
await
|
|
316
|
+
await fsPromises.copyFile(filePath, targetFile);
|
|
317
317
|
return {
|
|
318
318
|
ok: true,
|
|
319
319
|
pluginId,
|
|
@@ -334,7 +334,7 @@ async function installPluginFromNpmSpec(params) {
|
|
|
334
334
|
ok: false,
|
|
335
335
|
error: "missing npm spec"
|
|
336
336
|
};
|
|
337
|
-
const tmpDir = await
|
|
337
|
+
const tmpDir = await fsPromises.mkdtemp(path.join(os.tmpdir(), "openclaw-npm-pack-"));
|
|
338
338
|
logger.info?.(`Downloading ${spec}…`);
|
|
339
339
|
const res = await runCommandWithTimeout([
|
|
340
340
|
"npm",
|
|
@@ -370,7 +370,7 @@ async function installPluginFromPath(params) {
|
|
|
370
370
|
ok: false,
|
|
371
371
|
error: `path not found: ${resolved}`
|
|
372
372
|
};
|
|
373
|
-
if ((await
|
|
373
|
+
if ((await fsPromises.stat(resolved)).isDirectory()) return await installPluginFromDir({
|
|
374
374
|
dirPath: resolved,
|
|
375
375
|
extensionsDir: params.extensionsDir,
|
|
376
376
|
timeoutMs: params.timeoutMs,
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import "./paths-BZtyHNCi.js";
|
|
2
2
|
import "./utils-dp_OM900.js";
|
|
3
3
|
import "./exec-CijMSZd9.js";
|
|
4
|
-
import { c as resolveDefaultAgentId, r as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
5
|
-
import "./deliver-
|
|
6
|
-
import { t as runEmbeddedPiAgent } from "./pi-embedded-
|
|
7
|
-
import "./pi-embedded-helpers-
|
|
4
|
+
import { c as resolveDefaultAgentId, r as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-D8miw9q_.js";
|
|
5
|
+
import "./deliver-CT6KiDqO.js";
|
|
6
|
+
import { t as runEmbeddedPiAgent } from "./pi-embedded-BtNK8X-L.js";
|
|
7
|
+
import "./pi-embedded-helpers-BbWRSUnc.js";
|
|
8
8
|
import "./boolean-M-esQJt6.js";
|
|
9
|
-
import "./model-auth-
|
|
10
|
-
import "./config-
|
|
9
|
+
import "./model-auth-ioeR_zLX.js";
|
|
10
|
+
import "./config-XBdA0ciN.js";
|
|
11
11
|
import "./github-copilot-token-C9IJh2Pn.js";
|
|
12
12
|
import "./pi-model-discovery-DzFOAbQt.js";
|
|
13
|
-
import "./chrome-
|
|
13
|
+
import "./chrome-Db7w64LF.js";
|
|
14
14
|
import "./frontmatter-xwTm0734.js";
|
|
15
15
|
import "./paths-MnZaxqPw.js";
|
|
16
|
-
import "./image-
|
|
17
|
-
import "./manager-
|
|
16
|
+
import "./image-rOFfK3PJ.js";
|
|
17
|
+
import "./manager-DYo4PlVM.js";
|
|
18
18
|
import "./sqlite-BrQ9tw8B.js";
|
|
19
19
|
import "./redact-BOIof271.js";
|
|
20
|
-
import "./login-qr-
|
|
20
|
+
import "./login-qr-CPEsT6dN.js";
|
|
21
21
|
import fs from "node:fs/promises";
|
|
22
22
|
import os from "node:os";
|
|
23
23
|
import path from "node:path";
|