@yuf1011/openclaw 2026.3.1 → 2026.3.2
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-DmPvlCpt.js → accounts-1yld8BY0.js} +1 -1
- package/dist/{accounts-UyfWuXKC.js → accounts-Bgjrmxdu.js} +1 -1
- package/dist/{accounts-9Q07LhiR.js → accounts-Bj4Z7jBB.js} +7 -7
- package/dist/{acp-cli-nchqxQfx.js → acp-cli-CmC_BH_F.js} +9 -9
- package/dist/{agent-scope-CaXaKovT.js → agent-scope-B33Scyaw.js} +17 -17
- package/dist/{agents-Bp-on4Ol.js → agents-C1kcu676.js} +14 -14
- package/dist/{agents.config-FcpuK_oH.js → agents.config-bWKr_efI.js} +2 -2
- package/dist/{audio-preflight-HamJvwTU.js → audio-preflight-DrlqJTSX.js} +36 -36
- package/dist/{audio-preflight-O-Z_sN2r.js → audio-preflight-DwqzIQik.js} +4 -4
- package/dist/{audit-BNH972H2.js → audit-BJB-Xpuo.js} +23 -23
- package/dist/{auth-DHBdjHjv.js → auth-D3lXwd01.js} +1 -1
- package/dist/{auth-choice-C9nuVlg2.js → auth-choice-CLaOH6QA.js} +11 -11
- package/dist/{auth-choice-DcdZx6iq.js → auth-choice-DvgigM9u.js} +12 -12
- package/dist/{auth-choice.apply-helpers-CLLeqgyP.js → auth-choice.apply-helpers-DAtOrGrN.js} +1 -1
- package/dist/{auth-profiles-qnck2ozy.js → auth-profiles-D3FyYUSG.js} +16 -16
- package/dist/{auth-token-D7uxXxRA.js → auth-token-5Yewb0K8.js} +1 -1
- package/dist/{banner-KQwBaYzV.js → banner-BBj7LBMv.js} +1 -1
- package/dist/{bindings-vuIL-APZ.js → bindings-CWyuSfs6.js} +1 -1
- package/dist/{bonjour-discovery-BTitpiD_.js → bonjour-discovery-BZKMSZbv.js} +1 -1
- package/dist/{browser-cli-mVm8SiTf.js → browser-cli-Dae28dnV.js} +13 -13
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +6 -6
- package/dist/bundled/session-memory/handler.js +6 -6
- package/dist/{call-C-oZgsJl.js → call-BZSWeS2x.js} +10 -10
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-account-context-BJEFFNm5.js → channel-account-context-CvN7490K.js} +5 -5
- package/dist/{channel-options-C16VfUrO.js → channel-options-C-f-M1qF.js} +3 -3
- package/dist/{channel-selection-D7I4uyOc.js → channel-selection-DYEAZFR_.js} +1 -1
- package/dist/{channel-web-B1GNR2Dq.js → channel-web-DZsn-oXm.js} +18 -18
- package/dist/{channels-cli-CoYoUIpQ.js → channels-cli-D4rNipxg.js} +94 -94
- package/dist/{channels-status-issues-BDFtJFM3.js → channels-status-issues-BU67pzdy.js} +1 -1
- package/dist/{chrome-BO_XI6hR.js → chrome-CmcvtOeC.js} +4 -4
- package/dist/{chrome-C9dZ_OUB.js → chrome-rCogzAbu.js} +9 -9
- package/dist/{clawbot-cli-DvFI6yxU.js → clawbot-cli-z2dtXuJD.js} +5 -5
- package/dist/cli-CRcQGL-0.js +156 -0
- package/dist/{client-BBiFerkj.js → client-CdetOJti.js} +2 -2
- package/dist/{command-registry-CA18iTa1.js → command-registry-DpWSR6vE.js} +11 -11
- package/dist/{commands-CPLAkZQx.js → commands-DvATdC6x.js} +1 -1
- package/dist/{commands-registry-C9Mi0U--.js → commands-registry-CxF5UuEv.js} +3 -3
- package/dist/{completion-cli-f2rJo_UJ.js → completion-cli-8XhBe_hV.js} +13 -13
- package/dist/{config-cli-D3Kk9KK5.js → config-cli-KR_BJlS_.js} +6 -6
- package/dist/{config-guard-DOLjY0Fe.js → config-guard-CCUlwUmY.js} +2 -2
- package/dist/{config-validation-krJ4BOp0.js → config-validation-DM5GZr_k.js} +2 -2
- package/dist/{configure-BJLfFfRf.js → configure-Cijg4qS_.js} +17 -17
- package/dist/{control-ui-assets-DwsjxukL.js → control-ui-assets-D3JoK4hu.js} +1 -1
- package/dist/{cron-cli-C35CLkzi.js → cron-cli-D9M9O2W6.js} +13 -13
- package/dist/{daemon-cli-YUZ4wWO5.js → daemon-cli-CV7F4tGh.js} +14 -14
- package/dist/{daemon-install-CvpZhhVu.js → daemon-install-DoY06atb.js} +4 -4
- package/dist/{daemon-install-helpers-2MdByqYP.js → daemon-install-helpers-BbDloeys.js} +9 -9
- package/dist/{deliver-B7mNw8Vu.js → deliver-CZEKwM5v.js} +7 -7
- package/dist/{deliver-D1fs1S3v.js → deliver-vfoVGjjK.js} +1 -1
- package/dist/{devices-cli-D62t6AOQ.js → devices-cli-DO3kZZY9.js} +9 -9
- package/dist/{diagnostic-CJIq8gp_.js → diagnostic-Bc4KUKvc.js} +1 -1
- package/dist/{diagnostics-B_N_47d8.js → diagnostics-Cwm6yj6S.js} +5 -5
- package/dist/{directory-cli-gpg8jejU.js → directory-cli-CxHr8BB9.js} +8 -8
- package/dist/{dns-cli-AJOUY2RK.js → dns-cli-D4tVpUzw.js} +5 -5
- package/dist/{dock-BYLdmpt5.js → dock-SjEhga7i.js} +4 -4
- package/dist/{docs-cli-B8nNTRqk.js → docs-cli-Dfg5DloZ.js} +4 -4
- package/dist/{doctor-completion-C8_UEBvL.js → doctor-completion-Cx1hTz2p.js} +2 -2
- package/dist/{doctor-config-flow-BoMU70Ko.js → doctor-config-flow-AkAVT_nE.js} +14 -14
- package/dist/{enable-BIW6JnCC.js → enable-D8_8_z2E.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{exec-approvals-allowlist-CklJrJwI.js → exec-approvals-allowlist-CjjR0Lj9.js} +1 -1
- package/dist/{exec-approvals-cli-tXCzQbvW.js → exec-approvals-cli-DzUDeKvk.js} +17 -17
- package/dist/{exec-safe-bin-runtime-policy-BCQlhcV7.js → exec-safe-bin-runtime-policy-BQ4FXdVM.js} +2 -2
- package/dist/{fetch-guard-qBXlHXD_.js → fetch-guard-Cm1MSHHV.js} +1 -1
- package/dist/{fs-safe-Dr8G7a6P.js → fs-safe-CCDIEBbt.js} +16 -16
- package/dist/{gateway-cli-Bl2PLo3y.js → gateway-cli-CZD2FTCR.js} +154 -154
- package/dist/{gateway-rpc-BTAI1-VC.js → gateway-rpc-D_B_ulqD.js} +1 -1
- package/dist/{gemini-auth-DLd8nbvG.js → gemini-auth-i82BVqPg.js} +1 -1
- package/dist/{health-C2cEnW7K.js → health-BayXWmty.js} +13 -13
- package/dist/{hooks-cli-D8BwaEoO.js → hooks-cli-BPDlubbK.js} +90 -90
- package/dist/{hooks-status-Bk97nvaD.js → hooks-status-0v40xw4Q.js} +1 -1
- package/dist/{image-CEFy-HTg.js → image-dzsBaMmN.js} +1 -1
- package/dist/{plugin-sdk/image-ops-CVCbKZRn.js → image-ops-Z3_QkQPj.js} +2 -2
- package/dist/{image-QYMqJ_Cu.js → image-w5Vu5G__.js} +5 -5
- package/dist/{inspect-CmMfTMbw.js → inspect-Br6JEUTm.js} +4 -4
- package/dist/{install-safe-path-DXJW8Vo3.js → install-safe-path-DGYbxO86.js} +19 -19
- package/dist/{installs-Dn2iXOnd.js → installs-Bg1jGMwd.js} +10 -10
- package/dist/{ipv4-CrhBNcyo.js → ipv4-BBc3Sa_a.js} +1 -1
- package/dist/{ir-DYUcUO1t.js → ir-Dhd5EWHO.js} +6 -6
- package/dist/{lifecycle-core-CkOjXGl1.js → lifecycle-core-DrcOD7_e.js} +5 -5
- package/dist/llm-slug-generator.js +6 -6
- package/dist/{local-roots-iKHeLTM9.js → local-roots-Cyat99dT.js} +3 -3
- package/dist/{login-BdEIPD3M.js → login-CbEdSE8o.js} +3 -3
- package/dist/{login-qr-BCrD2_fy.js → login-qr-DK2E0Fk5.js} +6 -6
- package/dist/{logs-cli-BUI8frD6.js → logs-cli-DX5sTx_Z.js} +10 -10
- package/dist/{manager-SsdELHU2.js → manager-DdwvQQ2A.js} +14 -14
- package/dist/{manifest-registry-YC37UceR.js → manifest-registry-DRMtnPEQ.js} +1 -1
- package/dist/{markdown-tables-BvxYO6Nz.js → markdown-tables-DhrZVWff.js} +1 -1
- package/dist/{memory-cli-DPD3Jnkc.js → memory-cli-CdB1ptzd.js} +12 -12
- package/dist/{model-2aL8NZKc.js → model-AKh96s7h.js} +2 -2
- package/dist/{model-catalog-BL39Jul_.js → model-catalog-el1FVV5q.js} +3 -3
- package/dist/{model-picker-wenGgGVr.js → model-picker-BzzwN4eR.js} +4 -4
- package/dist/{models-BGvQqrQE.js → models-CyBxXuv1.js} +17 -17
- package/dist/{models-cli-fQ4IbjQs.js → models-cli-q5yywUVm.js} +80 -80
- package/dist/{models-config-1JCLlVs8.js → models-config-CGGxd1w2.js} +6 -6
- package/dist/{net-CWUwrVfz.js → net-C63UEjlQ.js} +2 -2
- package/dist/{node-cli-DHw9Zenb.js → node-cli-DeauKipI.js} +36 -36
- package/dist/{node-service-sJ_Rmbk7.js → node-service-CVNXtZeJ.js} +1 -1
- package/dist/{nodes-cli-BgDJY7us.js → nodes-cli-QVwX4ULT.js} +15 -15
- package/dist/{nodes-screen-BV63eC7o.js → nodes-screen-CHgcakcH.js} +5 -5
- package/dist/{npm-pack-install-C2E_zBU6.js → npm-pack-install-ChrCCIJD.js} +16 -16
- package/dist/{npm-resolution-B6xDbagk.js → npm-resolution-CvPKK0T0.js} +3 -3
- package/dist/{onboard-BBEWORGd.js → onboard-G39xAbGJ.js} +6 -6
- package/dist/{onboard-channels-DwWwZbhS.js → onboard-channels-BfGGowDI.js} +20 -20
- package/dist/{onboard-custom-CFuF05H2.js → onboard-custom-D_J_UV_B.js} +4 -4
- package/dist/{onboard-helpers-BnUKgDFe.js → onboard-helpers-CzMlu78H.js} +10 -10
- package/dist/{onboard-hooks-Te3_nPpe.js → onboard-hooks-gniWP7px.js} +4 -4
- package/dist/{onboard-remote-BgO_SWWa.js → onboard-remote-BpvvuHBw.js} +3 -3
- package/dist/{onboard-skills-CbTLB4cs.js → onboard-skills-CTY-DPhb.js} +4 -4
- package/dist/{onboarding-1PceVUnc.js → onboarding-BVt6sz-b.js} +13 -13
- package/dist/{onboarding.finalize-B4cr4Txq.js → onboarding.finalize-UFHE8pEj.js} +89 -89
- package/dist/{onboarding.gateway-config-BwYXTzcK.js → onboarding.gateway-config-1awD8XGu.js} +18 -18
- package/dist/{openai-model-default-CUxaHKMh.js → openai-model-default-Dy_e_lUy.js} +2 -2
- package/dist/{openclaw-root-DW-p-saf.js → openclaw-root-Cw_9FXUV.js} +8 -8
- package/dist/{plugin-sdk/outbound-attachment-BXtgutRQ.js → outbound-attachment-DmkmJ2Lc.js} +2 -2
- package/dist/{outbound-DXu6wxmi.js → outbound-m3MjDRvf.js} +4 -4
- package/dist/{pairing-cli-tFQQnCAT.js → pairing-cli-GoI4I4if.js} +9 -9
- package/dist/{pairing-labels-rAuS5aeV.js → pairing-labels-ZYWr_HV3.js} +1 -1
- package/dist/{pairing-store-_x0NQEfq.js → pairing-store-C49WkfCi.js} +2 -2
- package/dist/{pairing-token-PHk3tBUz.js → pairing-token-CtND5y_8.js} +7 -7
- package/dist/{path-alias-guards-z2hGNiIs.js → path-alias-guards-DEakBSGU.js} +3 -3
- package/dist/{path-safety-DBBDWKy1.js → path-safety-DeVxBPre.js} +1 -1
- package/dist/{paths-rIq72jC_.js → paths-BVyklYXR.js} +9 -9
- package/dist/{pi-embedded-fLS3EStS.js → pi-embedded-BCr5zWiT.js} +21 -21
- package/dist/{pi-embedded-helpers-BUce0Iqb.js → pi-embedded-helpers-BYXUXgYn.js} +6 -6
- package/dist/{pi-embedded-helpers-C_cbk2KW.js → pi-embedded-helpers-Dv3HZWfJ.js} +4 -4
- package/dist/{pi-model-discovery-BvGj4Ik8.js → pi-model-discovery-iNwnGd3m.js} +1 -1
- package/dist/{pi-tools.policy-oE4ZdHFF.js → pi-tools.policy-B5HqMPIq.js} +5 -5
- package/dist/{plugin-auto-enable-B2Kx-xH3.js → plugin-auto-enable-gT66Wggm.js} +3 -3
- package/dist/{plugin-registry-Cct_UdcP.js → plugin-registry-w2gqdvm-.js} +3 -3
- package/dist/plugin-sdk/{accounts-DFBfxw6M.js → accounts-DCDKnmrW.js} +1 -1
- package/dist/plugin-sdk/{accounts-WdYXo32T.js → accounts-DcjX_Olt.js} +1 -1
- package/dist/plugin-sdk/{accounts-CK8zoDbM.js → accounts-wG7sdxrI.js} +2 -2
- package/dist/plugin-sdk/{active-listener-PQ_Tmkac.js → active-listener-CZu4-ue_.js} +1 -1
- package/dist/plugin-sdk/{agent-scope-Mc1svPAJ.js → agent-scope-wi2hKUar.js} +1 -1
- package/dist/plugin-sdk/{api-key-rotation-0R4c0BKy.js → api-key-rotation-C50AZ4HQ.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-DeKzW6t7.js → audio-preflight-CWobJe2m.js} +29 -29
- package/dist/plugin-sdk/{bindings-Doyw0dbC.js → bindings-B2InXUgN.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-WTkBRQhD.js → channel-activity-DhlOJslm.js} +3 -3
- package/dist/plugin-sdk/{channel-web-O8qsWnj-.js → channel-web-b5Y6qjaX.js} +21 -21
- package/dist/plugin-sdk/{chrome-DBhifTKw.js → chrome-BE2vPym_.js} +6 -6
- package/dist/plugin-sdk/{chunk-1puCfOZX.js → chunk-BKXLkSr_.js} +1 -1
- package/dist/plugin-sdk/{command-format-Bf4OYMmN.js → command-format-D4smYdZ1.js} +1 -1
- package/dist/plugin-sdk/{commands-registry-Bv5URQN-.js → commands-registry-CRAjZbMZ.js} +4 -4
- package/dist/plugin-sdk/{config-CCVvq2-2.js → config-CuVxnKd5.js} +8 -8
- package/dist/plugin-sdk/{deliver-Du8jMk_2.js → deliver-C-QqkAxt.js} +10 -10
- package/dist/plugin-sdk/{diagnostic-8HfhvtLS.js → diagnostic-DF5kk6Ha.js} +2 -2
- package/dist/plugin-sdk/{dock-1qTnXc22.js → dock-B6o_YOXU.js} +5 -5
- package/dist/plugin-sdk/{errors-D6sYxFmI.js → errors--NHuiZti.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-CfkACfHH.js → fetch-guard-IzK0s4EP.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-DOZJUWUV.js → fs-safe-DCNfFQXN.js} +2 -2
- package/dist/plugin-sdk/{image-p3JhFE-q.js → image-Ckh39rIc.js} +6 -6
- package/dist/{image-ops-toDXWGMw.js → plugin-sdk/image-ops-c8-5iEn1.js} +12 -12
- package/dist/plugin-sdk/index.js +58 -58
- package/dist/plugin-sdk/{ir-EtEIlzCl.js → ir-KJ8B3heg.js} +5 -5
- package/dist/plugin-sdk/{local-roots-DcjujrLt.js → local-roots-oFw9xB3W.js} +4 -4
- package/dist/plugin-sdk/{login-CaiyG7fL.js → login-BpSGWRAn.js} +6 -6
- package/dist/plugin-sdk/{login-qr-qR_0F2uz.js → login-qr-BcEHe2l6.js} +6 -6
- package/dist/plugin-sdk/{manager-DHHJPm4z.js → manager-Mk7Al8tR.js} +9 -9
- package/dist/plugin-sdk/{markdown-tables-DfInfLzW.js → markdown-tables-CgoIgjwH.js} +1 -1
- package/dist/plugin-sdk/{message-channel-CTmZmMGO.js → message-channel-B_avrhM-.js} +1 -1
- package/dist/plugin-sdk/{outbound-Csej8W-L.js → outbound-5ejc0abd.js} +6 -6
- package/dist/{outbound-attachment-Bi7QWVn5.js → plugin-sdk/outbound-attachment-DJZwfefq.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-mPZl8VD3.js → path-alias-guards-dQJhySnm.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-C9JVi9wk.js → pi-embedded-helpers-ChvwOu5y.js} +16 -16
- package/dist/plugin-sdk/{pi-model-discovery-BS3RfvIw.js → pi-model-discovery-DgYhmlNG.js} +1 -1
- package/dist/plugin-sdk/{plugins-kAeBKYoU.js → plugins-43A_vro3.js} +4 -4
- package/dist/plugin-sdk/{pw-ai-DczkhBlG.js → pw-ai-B_Eskool.js} +10 -10
- package/dist/plugin-sdk/{qmd-manager-QzGHpfme.js → qmd-manager-D8hOneSc.js} +4 -4
- package/dist/plugin-sdk/{query-expansion-asHSnsMm.js → query-expansion-Dy2RqhGj.js} +2 -2
- package/dist/plugin-sdk/{redact-Bd2SiHkr.js → redact-C1cyUA71.js} +1 -1
- package/dist/plugin-sdk/{replies-FfnAJgf7.js → replies-CnQaxnV4.js} +3 -3
- package/dist/plugin-sdk/{reply-COGOw5Ek.js → reply-BwE-soc9.js} +86 -86
- package/dist/plugin-sdk/{reply-prefix-CrfFpZVa.js → reply-prefix-DCQtho4T.js} +1 -1
- package/dist/plugin-sdk/{resolve-outbound-target-BVT4EVrH.js → resolve-outbound-target-Dq9I2GaW.js} +2 -2
- package/dist/plugin-sdk/{resolve-route-CXAS6e8J.js → resolve-route-CJvtv5t9.js} +3 -3
- package/dist/plugin-sdk/{retry-9m7s9V95.js → retry-C-lOGVgE.js} +1 -1
- package/dist/plugin-sdk/{runner-C6ylai6Z.js → runner-DsccFtkb.js} +9 -9
- package/dist/plugin-sdk/{send-CxsVHVAX.js → send-2gyvX72Q.js} +12 -12
- package/dist/plugin-sdk/{send-D_ho4big.js → send-BMhePV_4.js} +10 -10
- package/dist/plugin-sdk/{send-alW6jFu1.js → send-BeYIngcm.js} +6 -6
- package/dist/plugin-sdk/{send-BnfdAJbL.js → send-BlEAcyDg.js} +8 -8
- package/dist/plugin-sdk/{send-CSOzYSNF.js → send-DeNtjymi.js} +7 -7
- package/dist/plugin-sdk/{session-Bqv8qF6e.js → session-D2AiJJYy.js} +4 -4
- package/dist/plugin-sdk/{sessions-BuxRaCyw.js → sessions-zmPjX-cD.js} +5 -5
- package/dist/plugin-sdk/{skill-commands-BpaJj_N6.js → skill-commands-BTNdJ6Cr.js} +4 -4
- package/dist/plugin-sdk/{skills-BFujt10E.js → skills-BkGa5_yy.js} +7 -7
- package/dist/plugin-sdk/{ssrf-Q9AqFBuw.js → ssrf-B_Q2k5gm.js} +1 -1
- package/dist/plugin-sdk/{store-BKCEQ-Gy.js → store-DlIx0Ljh.js} +2 -2
- package/dist/plugin-sdk/{subsystem-Dv9ZY_DW.js → subsystem-D7KkLxSJ.js} +2 -2
- package/dist/plugin-sdk/{tables-CiLC1-xu.js → tables-BbXRskgD.js} +1 -1
- package/dist/plugin-sdk/{target-errors-D28xCQm8.js → target-errors-BvPFqIjq.js} +2 -2
- package/dist/plugin-sdk/{tokens-V3CP7Ge2.js → tokens-CVvkQM_V.js} +1 -1
- package/dist/plugin-sdk/{tool-images-Cog7Gmdl.js → tool-images-aK1slaVl.js} +2 -2
- package/dist/plugin-sdk/{tool-loop-detection-DG_vuYxb.js → tool-loop-detection-BP9LIuuY.js} +1 -1
- package/dist/plugin-sdk/web-CH6ZZsT2.js +67 -0
- package/dist/plugin-sdk/{whatsapp-actions-WLB-KfIA.js → whatsapp-actions-ChLODgBj.js} +22 -22
- package/dist/{plugins-CiBXm-v1.js → plugins-Cb8JznN4.js} +2 -2
- package/dist/{plugins-cli-BGpk_mxe.js → plugins-cli-BQAyU_if.js} +86 -86
- package/dist/{ports-Z6QFaVRW.js → ports-4J8-_4SF.js} +2 -2
- package/dist/{ports-DMnEiLQa.js → ports-Ds33lE1B.js} +1 -1
- package/dist/{program-Aj-MXGpl.js → program-D5ThaA_K.js} +84 -84
- package/dist/{prompt-select-styled-g85rM8c_.js → prompt-select-styled-B1xopDJb.js} +39 -39
- package/dist/{provider-auth-helpers-JeXDbyPW.js → provider-auth-helpers-C-Vm3aEA.js} +5 -5
- package/dist/{push-apns-BsK6rZMS.js → push-apns-C0YjpY9N.js} +5 -5
- package/dist/{pw-ai-CoN0pihK.js → pw-ai-DloIDud2.js} +16 -16
- package/dist/{pw-ai-BDzqpsq_.js → pw-ai-PpF146vO.js} +1 -1
- package/dist/{qmd-manager-D8eAzrZY.js → qmd-manager-Du0tEQ-8.js} +19 -19
- package/dist/{qr-cli-ovb8Q1J9.js → qr-cli-DJ6LqChA.js} +1 -1
- package/dist/{query-expansion-B3FVYwN6.js → query-expansion-CwyL4z9j.js} +12 -12
- package/dist/{redact-snapshot-zDjp0HRV.js → redact-snapshot-W7mO-kGu.js} +1 -1
- package/dist/{register.agent-Bcd3jYoI.js → register.agent-CdV5WCcn.js} +96 -96
- package/dist/register.configure-265nQbq2.js +162 -0
- package/dist/{register.maintenance-DE9PWWja.js → register.maintenance-_pksRHI5.js} +97 -97
- package/dist/{register.message-CNcokMYT.js → register.message-BIuzvBK0.js} +77 -77
- package/dist/{register.onboard-lN_aaVOZ.js → register.onboard-DEl8fY1G.js} +19 -19
- package/dist/{register.setup-B6EaaMq4.js → register.setup-Ig_gGvdF.js} +22 -22
- package/dist/{register.status-health-sessions-CboXR8WN.js → register.status-health-sessions-DdHiFiQ8.js} +89 -89
- package/dist/{register.subclis-BkGATlmp.js → register.subclis-FZKDXxxL.js} +31 -31
- package/dist/{replies-COLVQezU.js → replies-BAqKfdVk.js} +1 -1
- package/dist/{reply-prefix-BLgL5eLu.js → reply-prefix-Q23IMgrt.js} +1 -1
- package/dist/{resolve-route-B0u78v_W.js → resolve-route-DvJmdJ7B.js} +2 -2
- package/dist/{rpc-BWpHds0n.js → rpc-u34pBflj.js} +1 -1
- package/dist/{run-main-dqrwXIoU.js → run-main-CAQXzgkK.js} +94 -94
- package/dist/{runner-DcvLsEbZ.js → runner-C9RTcw_0.js} +21 -21
- package/dist/{runner-CsGs9PzD.js → runner-Q4wBIACO.js} +1 -1
- package/dist/{runtime-x5BqK1kr.js → runtime-CnfENRVM.js} +2 -2
- package/dist/{sandbox-B-wAH3en.js → sandbox-BCxHjLQS.js} +22 -22
- package/dist/{sandbox-cli-CegfJFAq.js → sandbox-cli-DnMnYrDy.js} +26 -26
- package/dist/{secrets-cli-CAIsSLya.js → secrets-cli-Bj6VgalW.js} +11 -11
- package/dist/{security-cli-DESlyONm.js → security-cli-DctG0oZz.js} +43 -43
- package/dist/{send-sEXu0p87.js → send-CVj6uOGI.js} +7 -7
- package/dist/{send-CgATYx8D.js → send-DE17gd7F.js} +6 -6
- package/dist/{send-DZ9JXWaZ.js → send-oJraTp-6.js} +6 -6
- package/dist/{send-DY7qzDta.js → send-snKm1H4E.js} +13 -13
- package/dist/{send-OJbtfeWf.js → send-zp5AuaHE.js} +5 -5
- package/dist/{server-C9NDdRkP.js → server-CRa1oZfY.js} +19 -19
- package/dist/{server-context-YevsHXaf.js → server-context-RDkXuB9P.js} +13 -13
- package/dist/{server-lifecycle-BVWplIzw.js → server-lifecycle-CQk8mryT.js} +2 -2
- package/dist/{server-middleware-DJQVLZmo.js → server-middleware-DSIQAJZd.js} +1 -1
- package/dist/{server-node-events-DH8c0jEn.js → server-node-events-DqzBAn3Q.js} +77 -77
- package/dist/{service-oBfCq-qK.js → service-B0CzjIz2.js} +15 -15
- package/dist/{session-C8fYTfkG.js → session-Crum9mSn.js} +1 -1
- package/dist/{session-utils-Bt_Cx0zH.js → session-utils-dd1SrJKT.js} +6 -6
- package/dist/{sessions-DWdz1xc4.js → sessions-9J-stFWk.js} +4 -4
- package/dist/{sessions-IKxRT_G9.js → sessions-aGmwHv0g.js} +14 -14
- package/dist/{shared-Q1aRCgme.js → shared-5VPKZal4.js} +1 -1
- package/dist/{shared-BqFzJLjd.js → shared-CnARKvCa.js} +2 -2
- package/dist/{skill-commands-KdMeqg8g.js → skill-commands-B4-CgHlk.js} +5 -5
- package/dist/{skill-scanner-YaxFgz1o.js → skill-scanner-DW9hSz_J.js} +5 -5
- package/dist/{skills-DjfCNN-j.js → skills-BkqPPXlw.js} +3 -3
- package/dist/{skills-cli-6EDVmjHz.js → skills-cli-DPSjkS2r.js} +5 -5
- package/dist/{skills-install-CdZGnrOv.js → skills-install-m034GRjq.js} +5 -5
- package/dist/{skills-status-DZfbtXdy.js → skills-status--02_4mXJ.js} +1 -1
- package/dist/{ssrf-6Hb9TNxM.js → ssrf-DQPhGAdC.js} +1 -1
- package/dist/{status-CN8vEkdO.js → status-DA7gKGeU.js} +25 -25
- package/dist/{status.update-B0a3iQjj.js → status.update-DEPhS3kj.js} +2 -2
- package/dist/{store-DVxkLZrN.js → store-BnsBHp0V.js} +5 -5
- package/dist/{subagent-registry-CY8NG6Io.js → subagent-registry-CrbLe3Kg.js} +153 -153
- package/dist/{system-cli-CWbpLljA.js → system-cli-DwVWo2kb.js} +10 -10
- package/dist/{system-run-command-h3aZvaIL.js → system-run-command-BD_JuCLP.js} +1 -1
- package/dist/{systemd-DpV5A3Tl.js → systemd-B48mxZjg.js} +9 -9
- package/dist/{systemd-hints-OqRJ_OnZ.js → systemd-hints-CupZgKik.js} +6 -6
- package/dist/{systemd-linger-vRX-cxeO.js → systemd-linger-663aGc_T.js} +1 -1
- package/dist/{tables-CsW7naec.js → tables-CuPXwWh2.js} +1 -1
- package/dist/{tailnet-D3oqrI3q.js → tailnet-DRVktntg.js} +1 -1
- package/dist/{target-errors-yilhMKWi.js → target-errors-D4aLwsCU.js} +4 -4
- package/dist/{tool-images-Bo0IcPMG.js → tool-images-0PIXjd8w.js} +1 -1
- package/dist/{tui-2gCoYUUs.js → tui-14zIh3zr.js} +6 -6
- package/dist/{tui-cli-BNY2WcIM.js → tui-cli-BjHx8K12.js} +34 -34
- package/dist/{update-NahlryOD.js → update-VaL_prKP.js} +3 -3
- package/dist/{update-cli-By_RMYHj.js → update-cli-ZVB5K666.js} +106 -106
- package/dist/{update-runner-BoksUWgy.js → update-runner-sefNoN9G.js} +15 -15
- package/dist/web-BsX8l9H1.js +116 -0
- package/dist/{web-3ZvmLaE3.js → web-Ch0JHP2x.js} +6 -6
- package/dist/{webhooks-cli-C3a8VMoI.js → webhooks-cli-BUVjs-bx.js} +6 -6
- package/dist/{whatsapp-actions-D69bEFbN.js → whatsapp-actions-D-q8r2i5.js} +19 -19
- package/dist/{with-timeout-DOYJYBpu.js → with-timeout-ChQUbgyO.js} +3 -3
- package/dist/{workspace-BhsnAjlE.js → workspace-B-5q5HFZ.js} +1 -1
- package/dist/{workspace-dirs-BC9tU92n.js → workspace-dirs-Mb8gX4pT.js} +1 -1
- package/dist/{wsl-Din03sl7.js → wsl-D9-kubbW.js} +2 -2
- package/package.json +1 -1
- package/dist/cli-BfrcQXmk.js +0 -156
- package/dist/plugin-sdk/web-DPBNX3_v.js +0 -67
- package/dist/register.configure-15nzK_2U.js +0 -162
- package/dist/web-BTc3UuX6.js +0 -116
|
@@ -1,122 +1,122 @@
|
|
|
1
1
|
import { Dt as isRich, It as tryParseLogLevel, Ot as theme, Pt as ALLOWED_LOG_LEVELS, St as setVerbose, Z as escapeRegExp, gn as hasRootVersionAlias, hn as hasHelpOrVersion, ln as getCommandPath, mn as hasFlag, pn as getVerboseFlag, r as isTruthyEnvValue, v as defaultRuntime } from "./entry.js";
|
|
2
|
-
import "./auth-profiles-
|
|
2
|
+
import "./auth-profiles-D3FyYUSG.js";
|
|
3
3
|
import { n as replaceCliName, r as resolveCliName } from "./command-format-BYm_a0tW.js";
|
|
4
|
-
import "./agent-scope-
|
|
5
|
-
import "./openclaw-root-
|
|
4
|
+
import "./agent-scope-B33Scyaw.js";
|
|
5
|
+
import "./openclaw-root-Cw_9FXUV.js";
|
|
6
6
|
import "./exec-BhaMholX.js";
|
|
7
7
|
import "./github-copilot-token-DKRiM6oj.js";
|
|
8
8
|
import "./host-env-security-BM8ktVlo.js";
|
|
9
9
|
import { t as VERSION } from "./version-CFqP9tDG.js";
|
|
10
10
|
import "./env-vars-kURZgejA.js";
|
|
11
|
-
import "./manifest-registry-
|
|
12
|
-
import "./dock-
|
|
13
|
-
import "./model-
|
|
14
|
-
import "./pi-model-discovery-
|
|
11
|
+
import "./manifest-registry-DRMtnPEQ.js";
|
|
12
|
+
import "./dock-SjEhga7i.js";
|
|
13
|
+
import "./model-AKh96s7h.js";
|
|
14
|
+
import "./pi-model-discovery-iNwnGd3m.js";
|
|
15
15
|
import "./frontmatter-CA3PbX1f.js";
|
|
16
|
-
import "./skills-
|
|
17
|
-
import "./path-alias-guards-
|
|
16
|
+
import "./skills-BkqPPXlw.js";
|
|
17
|
+
import "./path-alias-guards-DEakBSGU.js";
|
|
18
18
|
import "./message-channel-CIQTys4Q.js";
|
|
19
|
-
import "./sessions-
|
|
20
|
-
import "./plugins-
|
|
21
|
-
import "./accounts-
|
|
22
|
-
import "./accounts-
|
|
23
|
-
import "./accounts-
|
|
24
|
-
import "./bindings-
|
|
19
|
+
import "./sessions-aGmwHv0g.js";
|
|
20
|
+
import "./plugins-Cb8JznN4.js";
|
|
21
|
+
import "./accounts-Bj4Z7jBB.js";
|
|
22
|
+
import "./accounts-Bgjrmxdu.js";
|
|
23
|
+
import "./accounts-1yld8BY0.js";
|
|
24
|
+
import "./bindings-CWyuSfs6.js";
|
|
25
25
|
import "./logging-CFvkxgcX.js";
|
|
26
|
-
import "./send-
|
|
27
|
-
import "./send-
|
|
28
|
-
import "./subagent-registry-
|
|
26
|
+
import "./send-zp5AuaHE.js";
|
|
27
|
+
import "./send-snKm1H4E.js";
|
|
28
|
+
import "./subagent-registry-CrbLe3Kg.js";
|
|
29
29
|
import "./paths-4nKmwJd-.js";
|
|
30
30
|
import "./chat-envelope-BHg8VU61.js";
|
|
31
|
-
import "./client-
|
|
32
|
-
import "./call-
|
|
33
|
-
import "./pairing-token-
|
|
34
|
-
import "./net-
|
|
35
|
-
import "./tailnet-
|
|
31
|
+
import "./client-CdetOJti.js";
|
|
32
|
+
import "./call-BZSWeS2x.js";
|
|
33
|
+
import "./pairing-token-CtND5y_8.js";
|
|
34
|
+
import "./net-C63UEjlQ.js";
|
|
35
|
+
import "./tailnet-DRVktntg.js";
|
|
36
36
|
import "./tokens-DytUXmpb.js";
|
|
37
|
-
import "./with-timeout-
|
|
38
|
-
import "./deliver-
|
|
39
|
-
import "./diagnostic-
|
|
37
|
+
import "./with-timeout-ChQUbgyO.js";
|
|
38
|
+
import "./deliver-CZEKwM5v.js";
|
|
39
|
+
import "./diagnostic-Bc4KUKvc.js";
|
|
40
40
|
import "./diagnostic-session-state-Cw3EMvZy.js";
|
|
41
|
-
import "./send-
|
|
42
|
-
import "./image-ops-
|
|
43
|
-
import "./pi-embedded-helpers-
|
|
44
|
-
import "./sandbox-
|
|
41
|
+
import "./send-CVj6uOGI.js";
|
|
42
|
+
import "./image-ops-Z3_QkQPj.js";
|
|
43
|
+
import "./pi-embedded-helpers-BYXUXgYn.js";
|
|
44
|
+
import "./sandbox-BCxHjLQS.js";
|
|
45
45
|
import "./tool-catalog-DABanDxl.js";
|
|
46
|
-
import "./chrome-
|
|
46
|
+
import "./chrome-CmcvtOeC.js";
|
|
47
47
|
import "./tailscale-Cz0j5H8x.js";
|
|
48
|
-
import "./auth-
|
|
49
|
-
import "./server-context-
|
|
50
|
-
import "./paths-
|
|
48
|
+
import "./auth-D3lXwd01.js";
|
|
49
|
+
import "./server-context-RDkXuB9P.js";
|
|
50
|
+
import "./paths-BVyklYXR.js";
|
|
51
51
|
import "./redact-Dcypez3H.js";
|
|
52
52
|
import "./errors-Cu3BYw29.js";
|
|
53
|
-
import "./fs-safe-
|
|
54
|
-
import "./ssrf-
|
|
55
|
-
import "./store-
|
|
56
|
-
import "./ports-
|
|
53
|
+
import "./fs-safe-CCDIEBbt.js";
|
|
54
|
+
import "./ssrf-DQPhGAdC.js";
|
|
55
|
+
import "./store-BnsBHp0V.js";
|
|
56
|
+
import "./ports-4J8-_4SF.js";
|
|
57
57
|
import "./trash-C8oZT55U.js";
|
|
58
|
-
import "./server-middleware-
|
|
59
|
-
import "./tool-images-
|
|
58
|
+
import "./server-middleware-DSIQAJZd.js";
|
|
59
|
+
import "./tool-images-0PIXjd8w.js";
|
|
60
60
|
import "./thinking-DW6CKWyf.js";
|
|
61
|
-
import "./models-config-
|
|
62
|
-
import "./exec-approvals-allowlist-
|
|
63
|
-
import "./exec-safe-bin-runtime-policy-
|
|
64
|
-
import "./reply-prefix-
|
|
65
|
-
import "./memory-cli-
|
|
66
|
-
import "./manager-
|
|
67
|
-
import "./gemini-auth-
|
|
68
|
-
import "./fetch-guard-
|
|
69
|
-
import "./query-expansion-
|
|
61
|
+
import "./models-config-CGGxd1w2.js";
|
|
62
|
+
import "./exec-approvals-allowlist-CjjR0Lj9.js";
|
|
63
|
+
import "./exec-safe-bin-runtime-policy-BQ4FXdVM.js";
|
|
64
|
+
import "./reply-prefix-Q23IMgrt.js";
|
|
65
|
+
import "./memory-cli-CdB1ptzd.js";
|
|
66
|
+
import "./manager-DdwvQQ2A.js";
|
|
67
|
+
import "./gemini-auth-i82BVqPg.js";
|
|
68
|
+
import "./fetch-guard-Cm1MSHHV.js";
|
|
69
|
+
import "./query-expansion-CwyL4z9j.js";
|
|
70
70
|
import "./retry-DRMxSLyf.js";
|
|
71
|
-
import "./target-errors-
|
|
72
|
-
import "./local-roots-
|
|
71
|
+
import "./target-errors-D4aLwsCU.js";
|
|
72
|
+
import "./local-roots-Cyat99dT.js";
|
|
73
73
|
import "./chunk-C1ApS_WL.js";
|
|
74
|
-
import "./markdown-tables-
|
|
75
|
-
import "./ir-
|
|
74
|
+
import "./markdown-tables-DhrZVWff.js";
|
|
75
|
+
import "./ir-Dhd5EWHO.js";
|
|
76
76
|
import "./render-C1H8wE-4.js";
|
|
77
|
-
import "./commands-
|
|
78
|
-
import "./commands-registry-
|
|
79
|
-
import "./image-
|
|
77
|
+
import "./commands-DvATdC6x.js";
|
|
78
|
+
import "./commands-registry-CxF5UuEv.js";
|
|
79
|
+
import "./image-w5Vu5G__.js";
|
|
80
80
|
import "./tool-display-DvjkoW7B.js";
|
|
81
|
-
import "./runner-
|
|
82
|
-
import "./model-catalog-
|
|
81
|
+
import "./runner-C9RTcw_0.js";
|
|
82
|
+
import "./model-catalog-el1FVV5q.js";
|
|
83
83
|
import "./fetch-CgA7FwwB.js";
|
|
84
|
-
import "./pairing-store-
|
|
84
|
+
import "./pairing-store-C49WkfCi.js";
|
|
85
85
|
import "./exec-approvals-DJC4eXS0.js";
|
|
86
|
-
import "./nodes-screen-
|
|
87
|
-
import "./system-run-command-
|
|
88
|
-
import "./session-utils-
|
|
86
|
+
import "./nodes-screen-CHgcakcH.js";
|
|
87
|
+
import "./system-run-command-BD_JuCLP.js";
|
|
88
|
+
import "./session-utils-dd1SrJKT.js";
|
|
89
89
|
import "./session-cost-usage-D-OIYYal.js";
|
|
90
|
-
import "./skill-commands-
|
|
91
|
-
import "./workspace-dirs-
|
|
90
|
+
import "./skill-commands-B4-CgHlk.js";
|
|
91
|
+
import "./workspace-dirs-Mb8gX4pT.js";
|
|
92
92
|
import "./channel-activity-CmnAG-Z9.js";
|
|
93
|
-
import "./tables-
|
|
94
|
-
import "./server-lifecycle-
|
|
93
|
+
import "./tables-CuPXwWh2.js";
|
|
94
|
+
import "./server-lifecycle-CQk8mryT.js";
|
|
95
95
|
import "./stagger-wClkZ9EC.js";
|
|
96
|
-
import "./channel-selection-
|
|
97
|
-
import "./plugin-auto-enable-
|
|
98
|
-
import "./send-
|
|
99
|
-
import "./outbound-attachment-
|
|
96
|
+
import "./channel-selection-DYEAZFR_.js";
|
|
97
|
+
import "./plugin-auto-enable-gT66Wggm.js";
|
|
98
|
+
import "./send-DE17gd7F.js";
|
|
99
|
+
import "./outbound-attachment-DmkmJ2Lc.js";
|
|
100
100
|
import "./delivery-queue-CpA_Z7vE.js";
|
|
101
|
-
import "./send-
|
|
102
|
-
import "./resolve-route-
|
|
103
|
-
import "./pi-tools.policy-
|
|
101
|
+
import "./send-oJraTp-6.js";
|
|
102
|
+
import "./resolve-route-DvJmdJ7B.js";
|
|
103
|
+
import "./pi-tools.policy-B5HqMPIq.js";
|
|
104
104
|
import "./proxy-C-FYeH9g.js";
|
|
105
105
|
import { t as formatDocsLink } from "./links-yQMT2QcX.js";
|
|
106
106
|
import "./cli-utils-CKDCmKAq.js";
|
|
107
107
|
import "./help-format-Du-bXlH0.js";
|
|
108
108
|
import "./progress-bvyZjsUc.js";
|
|
109
|
-
import "./replies-
|
|
110
|
-
import "./onboard-helpers-
|
|
109
|
+
import "./replies-BAqKfdVk.js";
|
|
110
|
+
import "./onboard-helpers-CzMlu78H.js";
|
|
111
111
|
import "./prompt-style-wsroINzm.js";
|
|
112
|
-
import "./pairing-labels-
|
|
113
|
-
import "./plugin-registry-
|
|
114
|
-
import { n as resolveCliChannelOptions } from "./channel-options-
|
|
115
|
-
import { t as getSubCliCommandsWithSubcommands } from "./register.subclis-
|
|
116
|
-
import { a as registerProgramCommands, r as getCoreCliCommandsWithSubcommands } from "./command-registry-
|
|
112
|
+
import "./pairing-labels-ZYWr_HV3.js";
|
|
113
|
+
import "./plugin-registry-w2gqdvm-.js";
|
|
114
|
+
import { n as resolveCliChannelOptions } from "./channel-options-C-f-M1qF.js";
|
|
115
|
+
import { t as getSubCliCommandsWithSubcommands } from "./register.subclis-FZKDXxxL.js";
|
|
116
|
+
import { a as registerProgramCommands, r as getCoreCliCommandsWithSubcommands } from "./command-registry-DpWSR6vE.js";
|
|
117
117
|
import { r as setProgramContext } from "./program-context-1ShjEUzz.js";
|
|
118
|
-
import { t as forceFreePort } from "./ports-
|
|
119
|
-
import { n as formatCliBannerLine, r as hasEmittedCliBanner, t as emitCliBanner } from "./banner-
|
|
118
|
+
import { t as forceFreePort } from "./ports-Ds33lE1B.js";
|
|
119
|
+
import { n as formatCliBannerLine, r as hasEmittedCliBanner, t as emitCliBanner } from "./banner-BBj7LBMv.js";
|
|
120
120
|
import { Command, InvalidArgumentError } from "commander";
|
|
121
121
|
|
|
122
122
|
//#region src/cli/program/context.ts
|
|
@@ -259,13 +259,13 @@ function registerPreActionHooks(program, programVersion) {
|
|
|
259
259
|
if (cliLogLevel) process.env.OPENCLAW_LOG_LEVEL = cliLogLevel;
|
|
260
260
|
if (!verbose) process.env.NODE_NO_WARNINGS ??= "1";
|
|
261
261
|
if (CONFIG_GUARD_BYPASS_COMMANDS.has(commandPath[0])) return;
|
|
262
|
-
const { ensureConfigReady } = await import("./config-guard-
|
|
262
|
+
const { ensureConfigReady } = await import("./config-guard-CCUlwUmY.js").then((n) => n.t);
|
|
263
263
|
await ensureConfigReady({
|
|
264
264
|
runtime: defaultRuntime,
|
|
265
265
|
commandPath
|
|
266
266
|
});
|
|
267
267
|
if (PLUGIN_REQUIRED_COMMANDS.has(commandPath[0])) {
|
|
268
|
-
const { ensurePluginRegistryLoaded } = await import("./plugin-registry-
|
|
268
|
+
const { ensurePluginRegistryLoaded } = await import("./plugin-registry-w2gqdvm-.js").then((n) => n.n);
|
|
269
269
|
ensurePluginRegistryLoaded();
|
|
270
270
|
}
|
|
271
271
|
});
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import { $t as resolveStateDir, Jt as resolveIsNixMode, Rt as CONFIG_PATH, Zt as resolveOAuthDir, dt as sleep, jt as getResolvedLoggerSettings, qt as resolveGatewayPort, r as isTruthyEnvValue$1, sn as resolveRequiredHomeDir, st as resolveUserPath, ut as shortenHomePath, v as defaultRuntime } from "./entry.js";
|
|
2
|
-
import { L as writeConfigFile, Ln as ensureAuthProfileStore, N as readConfigFileSnapshot, Qn as getModelRefStatus, Vn as updateAuthProfileStoreWithLock, Wr as resolveApiKeyForProvider, cr as resolveConfiguredModelRef, gi as DEFAULT_PROVIDER, hi as DEFAULT_MODEL, kn as repairOAuthProfileIdMismatch, l as resolveApiKeyForProfile, s as resolveProfileUnusableUntilForDisplay, ur as resolveHooksGmailModel, vi as CLAUDE_CLI_PROFILE_ID, yi as CODEX_CLI_PROFILE_ID } from "./auth-profiles-
|
|
2
|
+
import { L as writeConfigFile, Ln as ensureAuthProfileStore, N as readConfigFileSnapshot, Qn as getModelRefStatus, Vn as updateAuthProfileStoreWithLock, Wr as resolveApiKeyForProvider, cr as resolveConfiguredModelRef, gi as DEFAULT_PROVIDER, hi as DEFAULT_MODEL, kn as repairOAuthProfileIdMismatch, l as resolveApiKeyForProfile, s as resolveProfileUnusableUntilForDisplay, ur as resolveHooksGmailModel, vi as CLAUDE_CLI_PROFILE_ID, yi as CODEX_CLI_PROFILE_ID } from "./auth-profiles-D3FyYUSG.js";
|
|
3
3
|
import { t as formatCliCommand } from "./command-format-BYm_a0tW.js";
|
|
4
|
-
import { a as resolveAgentDir, d as resolveDefaultAgentId, g as DEFAULT_AGENTS_FILENAME, u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
4
|
+
import { a as resolveAgentDir, d as resolveDefaultAgentId, g as DEFAULT_AGENTS_FILENAME, u as resolveAgentWorkspaceDir } from "./agent-scope-B33Scyaw.js";
|
|
5
5
|
import { w as parseAgentSessionKey } from "./session-key-qmb11-mH.js";
|
|
6
|
-
import { t as resolveOpenClawPackageRoot } from "./openclaw-root-
|
|
6
|
+
import { t as resolveOpenClawPackageRoot } from "./openclaw-root-Cw_9FXUV.js";
|
|
7
7
|
import { n as runExec, t as runCommandWithTimeout } from "./exec-BhaMholX.js";
|
|
8
|
-
import { t as buildWorkspaceSkillStatus } from "./skills-status
|
|
9
|
-
import { B as cleanStaleLockFiles, at as formatSessionArchiveTimestamp, c as loadSessionStore, ot as isPrimarySessionTranscriptFileName, tt as resolveMainSessionKey } from "./sessions-
|
|
10
|
-
import { n as listChannelPlugins } from "./plugins-
|
|
11
|
-
import { _ as loadOpenClawPlugins, ir as resolveAgentSessionDirs, nn as buildAuthHealthSummary, rn as formatRemainingShort, tn as DEFAULT_OAUTH_WARN_MS } from "./subagent-registry-
|
|
8
|
+
import { t as buildWorkspaceSkillStatus } from "./skills-status--02_4mXJ.js";
|
|
9
|
+
import { B as cleanStaleLockFiles, at as formatSessionArchiveTimestamp, c as loadSessionStore, ot as isPrimarySessionTranscriptFileName, tt as resolveMainSessionKey } from "./sessions-aGmwHv0g.js";
|
|
10
|
+
import { n as listChannelPlugins } from "./plugins-Cb8JznN4.js";
|
|
11
|
+
import { _ as loadOpenClawPlugins, ir as resolveAgentSessionDirs, nn as buildAuthHealthSummary, rn as formatRemainingShort, tn as DEFAULT_OAUTH_WARN_MS } from "./subagent-registry-CrbLe3Kg.js";
|
|
12
12
|
import { c as resolveSessionTranscriptsDirForAgent, i as resolveSessionFilePathOptions, l as resolveStorePath, r as resolveSessionFilePath } from "./paths-4nKmwJd-.js";
|
|
13
|
-
import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-
|
|
14
|
-
import { r as isLoopbackHost, u as resolveGatewayBindHost } from "./net-
|
|
15
|
-
import { D as DEFAULT_SANDBOX_COMMON_IMAGE, E as DEFAULT_SANDBOX_BROWSER_IMAGE, O as DEFAULT_SANDBOX_IMAGE, p as resolveSandboxScope } from "./sandbox-
|
|
16
|
-
import { a as resolveGatewayAuth } from "./auth-
|
|
17
|
-
import { n as inspectPortUsage, o as formatPortDiagnostics } from "./ports-
|
|
18
|
-
import { i as resolveMemoryBackendConfig } from "./memory-cli-
|
|
19
|
-
import { n as resolveMemorySearchConfig } from "./manager-
|
|
20
|
-
import { n as loadModelCatalog } from "./model-catalog-
|
|
13
|
+
import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-BZSWeS2x.js";
|
|
14
|
+
import { r as isLoopbackHost, u as resolveGatewayBindHost } from "./net-C63UEjlQ.js";
|
|
15
|
+
import { D as DEFAULT_SANDBOX_COMMON_IMAGE, E as DEFAULT_SANDBOX_BROWSER_IMAGE, O as DEFAULT_SANDBOX_IMAGE, p as resolveSandboxScope } from "./sandbox-BCxHjLQS.js";
|
|
16
|
+
import { a as resolveGatewayAuth } from "./auth-D3lXwd01.js";
|
|
17
|
+
import { n as inspectPortUsage, o as formatPortDiagnostics } from "./ports-4J8-_4SF.js";
|
|
18
|
+
import { i as resolveMemoryBackendConfig } from "./memory-cli-CdB1ptzd.js";
|
|
19
|
+
import { n as resolveMemorySearchConfig } from "./manager-DdwvQQ2A.js";
|
|
20
|
+
import { n as loadModelCatalog } from "./model-catalog-el1FVV5q.js";
|
|
21
21
|
import { f as resolveGatewaySystemdServiceName, h as resolveNodeLaunchAgentLabel, l as resolveGatewayLaunchAgentLabel, p as resolveGatewayWindowsTaskName } from "./constants-B6D1y3V2.js";
|
|
22
|
-
import { l as resolveDmAllowState } from "./pi-tools.policy-
|
|
23
|
-
import { r as isWSLEnv, t as isWSL } from "./wsl-
|
|
24
|
-
import { h as randomToken, n as applyWizardMetadata, p as printWizardHeader, s as guardCancel } from "./onboard-helpers-
|
|
22
|
+
import { l as resolveDmAllowState } from "./pi-tools.policy-B5HqMPIq.js";
|
|
23
|
+
import { r as isWSLEnv, t as isWSL } from "./wsl-D9-kubbW.js";
|
|
24
|
+
import { h as randomToken, n as applyWizardMetadata, p as printWizardHeader, s as guardCancel } from "./onboard-helpers-CzMlu78H.js";
|
|
25
25
|
import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint } from "./prompt-style-wsroINzm.js";
|
|
26
26
|
import { t as note$1 } from "./note-DQ26Rw8p.js";
|
|
27
|
-
import { t as collectChannelStatusIssues } from "./channels-status-issues-
|
|
28
|
-
import { d as resolveSystemNodeInfo, l as renderSystemNodeWarning, n as gatewayInstallErrorHint, t as buildGatewayInstallPlan } from "./daemon-install-helpers-
|
|
27
|
+
import { t as collectChannelStatusIssues } from "./channels-status-issues-BU67pzdy.js";
|
|
28
|
+
import { d as resolveSystemNodeInfo, l as renderSystemNodeWarning, n as gatewayInstallErrorHint, t as buildGatewayInstallPlan } from "./daemon-install-helpers-BbDloeys.js";
|
|
29
29
|
import { n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-CeI4hRxg.js";
|
|
30
|
-
import { l as uninstallLegacySystemdUnits, r as isSystemdUserServiceAvailable } from "./systemd-
|
|
31
|
-
import { a as launchAgentPlistExists, i as isLaunchAgentLoaded, o as repairLaunchAgentBootstrap, r as isLaunchAgentListed, s as resolveGatewayLogPaths, t as resolveGatewayService } from "./service-
|
|
32
|
-
import { i as auditGatewayServiceConfig, n as renderSystemdUnavailableHints, o as needsNodeRuntimeMigration, r as SERVICE_AUDIT_CODES, s as formatRuntimeStatus, t as isSystemdUnavailableDetail } from "./systemd-hints-
|
|
33
|
-
import { t as readLastGatewayErrorLine } from "./diagnostics-
|
|
34
|
-
import { n as renderGatewayServiceCleanupHints, t as findExtraGatewayServices } from "./inspect-
|
|
35
|
-
import { r as healthCommand } from "./health-
|
|
36
|
-
import { n as resolveControlUiDistIndexHealth, r as resolveControlUiDistIndexPathForRoot } from "./control-ui-assets-
|
|
37
|
-
import { t as resolveDefaultChannelAccountContext } from "./channel-account-context-
|
|
38
|
-
import { t as runGatewayUpdate } from "./update-runner-
|
|
30
|
+
import { l as uninstallLegacySystemdUnits, r as isSystemdUserServiceAvailable } from "./systemd-B48mxZjg.js";
|
|
31
|
+
import { a as launchAgentPlistExists, i as isLaunchAgentLoaded, o as repairLaunchAgentBootstrap, r as isLaunchAgentListed, s as resolveGatewayLogPaths, t as resolveGatewayService } from "./service-B0CzjIz2.js";
|
|
32
|
+
import { i as auditGatewayServiceConfig, n as renderSystemdUnavailableHints, o as needsNodeRuntimeMigration, r as SERVICE_AUDIT_CODES, s as formatRuntimeStatus, t as isSystemdUnavailableDetail } from "./systemd-hints-CupZgKik.js";
|
|
33
|
+
import { t as readLastGatewayErrorLine } from "./diagnostics-Cwm6yj6S.js";
|
|
34
|
+
import { n as renderGatewayServiceCleanupHints, t as findExtraGatewayServices } from "./inspect-Br6JEUTm.js";
|
|
35
|
+
import { r as healthCommand } from "./health-BayXWmty.js";
|
|
36
|
+
import { n as resolveControlUiDistIndexHealth, r as resolveControlUiDistIndexPathForRoot } from "./control-ui-assets-D3JoK4hu.js";
|
|
37
|
+
import { t as resolveDefaultChannelAccountContext } from "./channel-account-context-CvN7490K.js";
|
|
38
|
+
import { t as runGatewayUpdate } from "./update-runner-sefNoN9G.js";
|
|
39
39
|
import { n as logConfigUpdated } from "./logging-DY1J23zp.js";
|
|
40
|
-
import { n as detectLegacyStateMigrations, r as runLegacyStateMigrations, t as loadAndMaybeMigrateDoctorConfig } from "./doctor-config-flow-
|
|
41
|
-
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-
|
|
40
|
+
import { n as detectLegacyStateMigrations, r as runLegacyStateMigrations, t as loadAndMaybeMigrateDoctorConfig } from "./doctor-config-flow-AkAVT_nE.js";
|
|
41
|
+
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-663aGc_T.js";
|
|
42
42
|
import { t as formatHealthCheckFailure } from "./health-format-CEoJgD_R.js";
|
|
43
|
-
import { n as doctorShellCompletion } from "./doctor-completion-
|
|
43
|
+
import { n as doctorShellCompletion } from "./doctor-completion-Cx1hTz2p.js";
|
|
44
44
|
import { execFile } from "node:child_process";
|
|
45
45
|
import os from "node:os";
|
|
46
46
|
import path from "node:path";
|
|
47
47
|
import fs from "node:fs";
|
|
48
48
|
import { promisify } from "node:util";
|
|
49
|
-
import
|
|
49
|
+
import fs$1 from "node:fs/promises";
|
|
50
50
|
import { confirm, intro, outro, select } from "@clack/prompts";
|
|
51
51
|
|
|
52
52
|
//#region src/commands/doctor-auth.ts
|
|
@@ -543,16 +543,16 @@ async function cleanupLegacyLaunchdService(params) {
|
|
|
543
543
|
await execFileAsync$1("launchctl", ["unload", params.plistPath]).catch(() => void 0);
|
|
544
544
|
const trashDir = path.join(os.homedir(), ".Trash");
|
|
545
545
|
try {
|
|
546
|
-
await
|
|
546
|
+
await fs$1.mkdir(trashDir, { recursive: true });
|
|
547
547
|
} catch {}
|
|
548
548
|
try {
|
|
549
|
-
await
|
|
549
|
+
await fs$1.access(params.plistPath);
|
|
550
550
|
} catch {
|
|
551
551
|
return null;
|
|
552
552
|
}
|
|
553
553
|
const dest = path.join(trashDir, `${params.label}-${Date.now()}.plist`);
|
|
554
554
|
try {
|
|
555
|
-
await
|
|
555
|
+
await fs$1.rename(params.plistPath, dest);
|
|
556
556
|
return dest;
|
|
557
557
|
} catch {
|
|
558
558
|
return null;
|
|
@@ -1859,11 +1859,11 @@ async function maybeRepairUiProtocolFreshness(_runtime, prompter) {
|
|
|
1859
1859
|
argv1: process.argv[1]
|
|
1860
1860
|
})).indexPath ?? resolveControlUiDistIndexPathForRoot(root);
|
|
1861
1861
|
try {
|
|
1862
|
-
const [schemaStats, uiStats] = await Promise.all([
|
|
1862
|
+
const [schemaStats, uiStats] = await Promise.all([fs$1.stat(schemaPath).catch(() => null), fs$1.stat(uiIndexPath).catch(() => null)]);
|
|
1863
1863
|
if (schemaStats && !uiStats) {
|
|
1864
1864
|
note$1(["- Control UI assets are missing.", "- Run: pnpm ui:build"].join("\n"), "UI");
|
|
1865
1865
|
const uiSourcesPath = path.join(root, "ui/package.json");
|
|
1866
|
-
if (!await
|
|
1866
|
+
if (!await fs$1.stat(uiSourcesPath).catch(() => null)) {
|
|
1867
1867
|
note$1("Skipping UI build: ui/ sources not present.", "UI");
|
|
1868
1868
|
return;
|
|
1869
1869
|
}
|
|
@@ -1908,7 +1908,7 @@ async function maybeRepairUiProtocolFreshness(_runtime, prompter) {
|
|
|
1908
1908
|
initialValue: true
|
|
1909
1909
|
})) {
|
|
1910
1910
|
const uiSourcesPath = path.join(root, "ui/package.json");
|
|
1911
|
-
if (!await
|
|
1911
|
+
if (!await fs$1.stat(uiSourcesPath).catch(() => null)) {
|
|
1912
1912
|
note$1("Skipping UI rebuild: ui/ sources not present.", "UI");
|
|
1913
1913
|
return;
|
|
1914
1914
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { s as createSubsystemLogger } from "./entry.js";
|
|
2
|
-
import { Ln as ensureAuthProfileStore, Pn as upsertAuthProfile, ir as normalizeProviderId } from "./auth-profiles-
|
|
3
|
-
import { _ as loadOpenClawPlugins, g as createPluginLoaderLogger } from "./subagent-registry-
|
|
4
|
-
import { r as isWSLEnv } from "./wsl-
|
|
2
|
+
import { Ln as ensureAuthProfileStore, Pn as upsertAuthProfile, ir as normalizeProviderId } from "./auth-profiles-D3FyYUSG.js";
|
|
3
|
+
import { _ as loadOpenClawPlugins, g as createPluginLoaderLogger } from "./subagent-registry-CrbLe3Kg.js";
|
|
4
|
+
import { r as isWSLEnv } from "./wsl-D9-kubbW.js";
|
|
5
5
|
import { r as stylePromptTitle } from "./prompt-style-wsroINzm.js";
|
|
6
|
-
import { f as updateConfig } from "./shared-
|
|
7
|
-
import { d as applyAuthProfileConfig } from "./auth-token-
|
|
6
|
+
import { f as updateConfig } from "./shared-CnARKvCa.js";
|
|
7
|
+
import { d as applyAuthProfileConfig } from "./auth-token-5Yewb0K8.js";
|
|
8
8
|
import { n as logConfigUpdated } from "./logging-DY1J23zp.js";
|
|
9
9
|
import { intro, note, outro, spinner } from "@clack/prompts";
|
|
10
10
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { $t as resolveStateDir, p as shouldLogSubsystemToConsole, s as createSubsystemLogger, vt as isVerbose } from "./entry.js";
|
|
2
2
|
import { w as parseAgentSessionKey } from "./session-key-qmb11-mH.js";
|
|
3
|
-
import { p as sniffMimeFromBase64 } from "./subagent-registry-
|
|
4
|
-
import { c as readJsonFile, l as writeJsonAtomic, s as createAsyncLock } from "./pairing-token-
|
|
3
|
+
import { p as sniffMimeFromBase64 } from "./subagent-registry-CrbLe3Kg.js";
|
|
4
|
+
import { c as readJsonFile, l as writeJsonAtomic, s as createAsyncLock } from "./pairing-token-CtND5y_8.js";
|
|
5
5
|
import { n as redactSensitiveText, t as getDefaultRedactPatterns } from "./redact-Dcypez3H.js";
|
|
6
|
-
import { o as estimateBase64DecodedBytes } from "./tool-images-
|
|
6
|
+
import { o as estimateBase64DecodedBytes } from "./tool-images-0PIXjd8w.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import chalk from "chalk";
|
|
9
|
-
import
|
|
9
|
+
import fs from "node:fs/promises";
|
|
10
10
|
import { createHash, createPrivateKey, sign } from "node:crypto";
|
|
11
11
|
import http2 from "node:http2";
|
|
12
12
|
|
|
@@ -524,7 +524,7 @@ async function resolveApnsAuthConfigFromEnv(env = process.env) {
|
|
|
524
524
|
value: {
|
|
525
525
|
teamId,
|
|
526
526
|
keyId,
|
|
527
|
-
privateKey: normalizePrivateKey(await
|
|
527
|
+
privateKey: normalizePrivateKey(await fs.readFile(keyPath, "utf8"))
|
|
528
528
|
}
|
|
529
529
|
};
|
|
530
530
|
} catch (err) {
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { Lt as resolvePreferredOpenClawTmpDir } from "./entry.js";
|
|
2
|
-
import "./auth-profiles-
|
|
2
|
+
import "./auth-profiles-D3FyYUSG.js";
|
|
3
3
|
import { t as formatCliCommand } from "./command-format-BYm_a0tW.js";
|
|
4
|
-
import "./agent-scope-
|
|
5
|
-
import "./openclaw-root-
|
|
4
|
+
import "./agent-scope-B33Scyaw.js";
|
|
5
|
+
import "./openclaw-root-Cw_9FXUV.js";
|
|
6
6
|
import "./exec-BhaMholX.js";
|
|
7
7
|
import "./github-copilot-token-DKRiM6oj.js";
|
|
8
8
|
import "./host-env-security-BM8ktVlo.js";
|
|
9
9
|
import "./version-CFqP9tDG.js";
|
|
10
10
|
import "./env-vars-kURZgejA.js";
|
|
11
|
-
import "./manifest-registry-
|
|
12
|
-
import "./path-alias-guards-
|
|
13
|
-
import "./net-
|
|
14
|
-
import "./tailnet-
|
|
15
|
-
import { _ as appendCdpPath, b as getHeadersWithAuth, d as normalizeCdpWsUrl, g as withBrowserNavigationPolicy, h as assertBrowserNavigationResultAllowed, m as assertBrowserNavigationAllowed, t as getChromeWebSocketUrl, u as formatAriaSnapshot, v as fetchJson, x as withCdpSocket } from "./chrome-
|
|
16
|
-
import { a as resolveStrictExistingPathsWithinRoot, r as DEFAULT_UPLOAD_DIR, s as DEFAULT_FILL_FIELD_TYPE } from "./paths-
|
|
11
|
+
import "./manifest-registry-DRMtnPEQ.js";
|
|
12
|
+
import "./path-alias-guards-DEakBSGU.js";
|
|
13
|
+
import "./net-C63UEjlQ.js";
|
|
14
|
+
import "./tailnet-DRVktntg.js";
|
|
15
|
+
import { _ as appendCdpPath, b as getHeadersWithAuth, d as normalizeCdpWsUrl, g as withBrowserNavigationPolicy, h as assertBrowserNavigationResultAllowed, m as assertBrowserNavigationAllowed, t as getChromeWebSocketUrl, u as formatAriaSnapshot, v as fetchJson, x as withCdpSocket } from "./chrome-CmcvtOeC.js";
|
|
16
|
+
import { a as resolveStrictExistingPathsWithinRoot, r as DEFAULT_UPLOAD_DIR, s as DEFAULT_FILL_FIELD_TYPE } from "./paths-BVyklYXR.js";
|
|
17
17
|
import "./redact-Dcypez3H.js";
|
|
18
18
|
import { n as formatErrorMessage } from "./errors-Cu3BYw29.js";
|
|
19
|
-
import "./fs-safe-
|
|
20
|
-
import "./ssrf-
|
|
21
|
-
import "./ports-
|
|
19
|
+
import "./fs-safe-CCDIEBbt.js";
|
|
20
|
+
import "./ssrf-DQPhGAdC.js";
|
|
21
|
+
import "./ports-4J8-_4SF.js";
|
|
22
22
|
import { n as markPwAiLoaded } from "./tool-loop-detection-BpwyXfYY.js";
|
|
23
23
|
import path from "node:path";
|
|
24
|
-
import
|
|
24
|
+
import fs from "node:fs/promises";
|
|
25
25
|
import crypto from "node:crypto";
|
|
26
26
|
import { chromium, devices } from "playwright-core";
|
|
27
27
|
|
|
@@ -542,10 +542,10 @@ async function writeViaSiblingTempPath(params) {
|
|
|
542
542
|
let renameSucceeded = false;
|
|
543
543
|
try {
|
|
544
544
|
await params.writeTemp(tempPath);
|
|
545
|
-
await
|
|
545
|
+
await fs.rename(tempPath, targetPath);
|
|
546
546
|
renameSucceeded = true;
|
|
547
547
|
} finally {
|
|
548
|
-
if (!renameSucceeded) await
|
|
548
|
+
if (!renameSucceeded) await fs.rm(tempPath, { force: true }).catch(() => {});
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
551
|
|
|
@@ -952,7 +952,7 @@ async function saveDownloadPayload(download, outPath) {
|
|
|
952
952
|
const suggested = download.suggestedFilename?.() || "download.bin";
|
|
953
953
|
const requestedPath = outPath?.trim();
|
|
954
954
|
const resolvedOutPath = path.resolve(requestedPath || buildTempDownloadPath(suggested));
|
|
955
|
-
await
|
|
955
|
+
await fs.mkdir(path.dirname(resolvedOutPath), { recursive: true });
|
|
956
956
|
if (!requestedPath) await download.saveAs?.(resolvedOutPath);
|
|
957
957
|
else await writeViaSiblingTempPath({
|
|
958
958
|
targetPath: resolvedOutPath,
|
|
@@ -6,7 +6,7 @@ import "./model-selection-DQGp0FRf.js";
|
|
|
6
6
|
import "./github-copilot-token-CWLBOI2T.js";
|
|
7
7
|
import { n as formatCliCommand } from "./env-Dmb9NI10.js";
|
|
8
8
|
import "./boolean-Ce2-qkSB.js";
|
|
9
|
-
import { A as resolveStrictExistingPathsWithinRoot, M as DEFAULT_FILL_FIELD_TYPE, O as DEFAULT_UPLOAD_DIR, S as withCdpSocket, _ as withBrowserNavigationPolicy, d as formatAriaSnapshot, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, t as getChromeWebSocketUrl, v as appendCdpPath, x as getHeadersWithAuth, y as fetchJson } from "./chrome-
|
|
9
|
+
import { A as resolveStrictExistingPathsWithinRoot, M as DEFAULT_FILL_FIELD_TYPE, O as DEFAULT_UPLOAD_DIR, S as withCdpSocket, _ as withBrowserNavigationPolicy, d as formatAriaSnapshot, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, t as getChromeWebSocketUrl, v as appendCdpPath, x as getHeadersWithAuth, y as fetchJson } from "./chrome-rCogzAbu.js";
|
|
10
10
|
import "./path-alias-guards-C5qernCC.js";
|
|
11
11
|
import "./redact-CCJhkLdQ.js";
|
|
12
12
|
import { n as formatErrorMessage } from "./errors-Q-5Tp91z.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { $t as resolveStateDir, s as createSubsystemLogger } from "./entry.js";
|
|
2
|
-
import { u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
2
|
+
import { u as resolveAgentWorkspaceDir } from "./agent-scope-B33Scyaw.js";
|
|
3
3
|
import { w as parseAgentSessionKey } from "./session-key-qmb11-mH.js";
|
|
4
|
-
import "./openclaw-root-
|
|
4
|
+
import "./openclaw-root-Cw_9FXUV.js";
|
|
5
5
|
import "./exec-BhaMholX.js";
|
|
6
6
|
import "./paths-4nKmwJd-.js";
|
|
7
7
|
import "./redact-Dcypez3H.js";
|
|
8
|
-
import { _ as isFileMissingError, i as listSessionFilesForAgent, n as requireNodeSqlite, r as buildSessionEntry, t as extractKeywords, v as statRegularFile } from "./query-expansion-
|
|
8
|
+
import { _ as isFileMissingError, i as listSessionFilesForAgent, n as requireNodeSqlite, r as buildSessionEntry, t as extractKeywords, v as statRegularFile } from "./query-expansion-CwyL4z9j.js";
|
|
9
9
|
import { spawn } from "node:child_process";
|
|
10
10
|
import os from "node:os";
|
|
11
11
|
import path from "node:path";
|
|
12
|
-
import
|
|
12
|
+
import fs from "node:fs/promises";
|
|
13
13
|
import readline from "node:readline";
|
|
14
14
|
|
|
15
15
|
//#region src/memory/qmd-scope.ts
|
|
@@ -273,10 +273,10 @@ var QmdMemoryManager = class QmdMemoryManager {
|
|
|
273
273
|
async initialize(mode) {
|
|
274
274
|
this.bootstrapCollections();
|
|
275
275
|
if (mode === "status") return;
|
|
276
|
-
await
|
|
277
|
-
await
|
|
278
|
-
await
|
|
279
|
-
if (this.sessionExporter) await
|
|
276
|
+
await fs.mkdir(this.xdgConfigHome, { recursive: true });
|
|
277
|
+
await fs.mkdir(this.xdgCacheHome, { recursive: true });
|
|
278
|
+
await fs.mkdir(path.dirname(this.indexPath), { recursive: true });
|
|
279
|
+
if (this.sessionExporter) await fs.mkdir(this.sessionExporter.dir, { recursive: true });
|
|
280
280
|
await this.symlinkSharedModels();
|
|
281
281
|
await this.ensureCollections();
|
|
282
282
|
if (this.qmd.update.onBoot) {
|
|
@@ -369,7 +369,7 @@ var QmdMemoryManager = class QmdMemoryManager {
|
|
|
369
369
|
}
|
|
370
370
|
async ensureCollectionPath(collection) {
|
|
371
371
|
if (!this.isDirectoryGlobPattern(collection.pattern)) return;
|
|
372
|
-
await
|
|
372
|
+
await fs.mkdir(collection.path, { recursive: true });
|
|
373
373
|
}
|
|
374
374
|
isDirectoryGlobPattern(pattern) {
|
|
375
375
|
return pattern.includes("*") || pattern.includes("?") || pattern.includes("[");
|
|
@@ -813,19 +813,19 @@ var QmdMemoryManager = class QmdMemoryManager {
|
|
|
813
813
|
const defaultModelsDir = path.join(defaultCacheHome, "qmd", "models");
|
|
814
814
|
const targetModelsDir = path.join(this.xdgCacheHome, "qmd", "models");
|
|
815
815
|
try {
|
|
816
|
-
if (!(await
|
|
816
|
+
if (!(await fs.stat(defaultModelsDir).catch((err) => {
|
|
817
817
|
if (err.code === "ENOENT") return null;
|
|
818
818
|
throw err;
|
|
819
819
|
}))?.isDirectory()) return;
|
|
820
820
|
try {
|
|
821
|
-
await
|
|
821
|
+
await fs.lstat(targetModelsDir);
|
|
822
822
|
return;
|
|
823
823
|
} catch {}
|
|
824
824
|
try {
|
|
825
|
-
await
|
|
825
|
+
await fs.symlink(defaultModelsDir, targetModelsDir, "dir");
|
|
826
826
|
} catch (symlinkErr) {
|
|
827
827
|
const code = symlinkErr.code;
|
|
828
|
-
if (process.platform === "win32" && (code === "EPERM" || code === "ENOTSUP")) await
|
|
828
|
+
if (process.platform === "win32" && (code === "EPERM" || code === "ENOTSUP")) await fs.symlink(defaultModelsDir, targetModelsDir, "junction");
|
|
829
829
|
else throw symlinkErr;
|
|
830
830
|
}
|
|
831
831
|
log.debug(`symlinked qmd models: ${defaultModelsDir} → ${targetModelsDir}`);
|
|
@@ -985,7 +985,7 @@ var QmdMemoryManager = class QmdMemoryManager {
|
|
|
985
985
|
const count = Math.max(1, lines ?? Number.POSITIVE_INFINITY);
|
|
986
986
|
let handle;
|
|
987
987
|
try {
|
|
988
|
-
handle = await
|
|
988
|
+
handle = await fs.open(absPath);
|
|
989
989
|
} catch (err) {
|
|
990
990
|
if (isFileMissingError(err)) return { missing: true };
|
|
991
991
|
throw err;
|
|
@@ -1017,7 +1017,7 @@ var QmdMemoryManager = class QmdMemoryManager {
|
|
|
1017
1017
|
try {
|
|
1018
1018
|
return {
|
|
1019
1019
|
missing: false,
|
|
1020
|
-
text: await
|
|
1020
|
+
text: await fs.readFile(absPath, "utf-8")
|
|
1021
1021
|
};
|
|
1022
1022
|
} catch (err) {
|
|
1023
1023
|
if (isFileMissingError(err)) return { missing: true };
|
|
@@ -1034,7 +1034,7 @@ var QmdMemoryManager = class QmdMemoryManager {
|
|
|
1034
1034
|
async exportSessions() {
|
|
1035
1035
|
if (!this.sessionExporter) return;
|
|
1036
1036
|
const exportDir = this.sessionExporter.dir;
|
|
1037
|
-
await
|
|
1037
|
+
await fs.mkdir(exportDir, { recursive: true });
|
|
1038
1038
|
const files = await listSessionFilesForAgent(this.agentId);
|
|
1039
1039
|
const keep = /* @__PURE__ */ new Set();
|
|
1040
1040
|
const tracked = /* @__PURE__ */ new Set();
|
|
@@ -1046,7 +1046,7 @@ var QmdMemoryManager = class QmdMemoryManager {
|
|
|
1046
1046
|
const target = path.join(exportDir, `${path.basename(sessionFile, ".jsonl")}.md`);
|
|
1047
1047
|
tracked.add(sessionFile);
|
|
1048
1048
|
const state = this.exportedSessionState.get(sessionFile);
|
|
1049
|
-
if (!state || state.hash !== entry.hash || state.mtimeMs !== entry.mtimeMs) await
|
|
1049
|
+
if (!state || state.hash !== entry.hash || state.mtimeMs !== entry.mtimeMs) await fs.writeFile(target, this.renderSessionMarkdown(entry), "utf-8");
|
|
1050
1050
|
this.exportedSessionState.set(sessionFile, {
|
|
1051
1051
|
hash: entry.hash,
|
|
1052
1052
|
mtimeMs: entry.mtimeMs,
|
|
@@ -1054,11 +1054,11 @@ var QmdMemoryManager = class QmdMemoryManager {
|
|
|
1054
1054
|
});
|
|
1055
1055
|
keep.add(target);
|
|
1056
1056
|
}
|
|
1057
|
-
const exported = await
|
|
1057
|
+
const exported = await fs.readdir(exportDir).catch(() => []);
|
|
1058
1058
|
for (const name of exported) {
|
|
1059
1059
|
if (!name.endsWith(".md")) continue;
|
|
1060
1060
|
const full = path.join(exportDir, name);
|
|
1061
|
-
if (!keep.has(full)) await
|
|
1061
|
+
if (!keep.has(full)) await fs.rm(full, { force: true });
|
|
1062
1062
|
}
|
|
1063
1063
|
for (const [sessionFile, state] of this.exportedSessionState) if (!tracked.has(sessionFile) || !state.target.startsWith(exportDir + path.sep)) this.exportedSessionState.delete(sessionFile);
|
|
1064
1064
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { Ot as theme, v as defaultRuntime } from "./entry.js";
|
|
3
|
-
import { gt as isRfc1918Ipv4Address, j as loadConfig, ut as isCarrierGradeNatIpv4Address } from "./auth-profiles-
|
|
3
|
+
import { gt as isRfc1918Ipv4Address, j as loadConfig, ut as isCarrierGradeNatIpv4Address } from "./auth-profiles-D3FyYUSG.js";
|
|
4
4
|
import { t as runCommandWithTimeout } from "./exec-BhaMholX.js";
|
|
5
5
|
import { t as formatDocsLink } from "./links-yQMT2QcX.js";
|
|
6
6
|
import os from "node:os";
|