@guadskill/openclaw-proxy 2026.2.9 → 2026.2.11
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-x7cMEV1E.js → accounts-Dx4aJi3x.js} +7 -7
- package/dist/{acp-cli-0GGdXLLK.js → acp-cli-B0GEswoT.js} +4 -4
- package/dist/{acp-cli-D1H6dacV.js → acp-cli-OHiTwyKP.js} +4 -4
- package/dist/{agent-2SW8ZCfI.js → agent-CVUy1Thi.js} +10 -10
- package/dist/{agent-DU-T91C5.js → agent-D-ZY5Ay1.js} +10 -10
- package/dist/{agent-scope-DiPc4_Q2.js → agent-scope-Bxl1Ieu_.js} +1 -1
- package/dist/{agent-scope-BUn6DjX7.js → agent-scope-C7vPz4km.js} +1 -1
- package/dist/{agent-scope-CjgJmjE6.js → agent-scope-DUR7NPNo.js} +1 -1
- package/dist/{agent-scope--25ynMc2.js → agent-scope-QnsNO5IK.js} +11 -11
- package/dist/{archive-D0z3LZDK.js → archive-1r-XD_by.js} +9 -9
- package/dist/{audit-CqsOSGgc.js → audit-DJRS7Nza.js} +8 -8
- package/dist/{audit-CLbFGfQc.js → audit-Dnyfbisl.js} +16 -16
- package/dist/{auth-health-6CQOjiY2.js → auth-health-CE7uy9mo.js} +1 -1
- package/dist/{auth-health-BA7lqVxs.js → auth-health-ov3toXHm.js} +1 -1
- package/dist/{auth-profiles-Dg1lg7TZ.js → auth-profiles-kZZY0kCW.js} +1 -1
- package/dist/build-info.json +2 -2
- package/dist/bundled/boot-md/handler.js +9 -9
- package/dist/bundled/session-memory/handler.js +9 -9
- package/dist/{call-DfFtEDcF.js → call-BUcaYa5a.js} +8 -8
- package/dist/{call-BRBaanei.js → call-D_Z9T8iV.js} +1 -1
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-options-DxeLpgAW.js → channel-options-P2xeFf1J.js} +5 -5
- package/dist/{channel-options-lyL-8lwT.js → channel-options-oOUobhHQ.js} +3 -3
- package/dist/{channel-selection-KB-Du2K8.js → channel-selection-CmhD8GeJ.js} +1 -1
- package/dist/{channel-selection-Cm-kszg3.js → channel-selection-Dc2O9U87.js} +1 -1
- package/dist/{channels-cli-CwCvT3wp.js → channels-cli-BYZOMEVn.js} +25 -25
- package/dist/{channels-cli-D8NQgCvh.js → channels-cli-C-TQm_--.js} +36 -36
- package/dist/{channels-status-issues-CtDHK5Hb.js → channels-status-issues-CZVE---T.js} +1 -1
- package/dist/{channels-status-issues-D4zjQ5gR.js → channels-status-issues-CftEAWF4.js} +1 -1
- package/dist/{chrome-y0SuEptk.js → chrome-No6wyyAY.js} +2 -2
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-BhOaKx0R.js → cli-98b8BoLE.js} +25 -25
- package/dist/{cli-BdLB0dU9.js → cli-9Gs7jI45.js} +21 -21
- package/dist/{command-options-BsaSCNbW.js → command-options-DFbsypaU.js} +3 -3
- package/dist/{commands-D1Vz_pbj.js → commands-DoVIOYAz.js} +3 -3
- package/dist/{completion-cli-B8UeXoAi.js → completion-cli-BkcNcF2W.js} +27 -27
- package/dist/{completion-cli-DSp3IYfG.js → completion-cli-DzFGiqKN.js} +13 -13
- package/dist/{config-BiUz0L4n.js → config-C_ZMbYir.js} +2 -2
- package/dist/{config-DBR-pg8M.js → config-DFgdMueL.js} +2 -2
- package/dist/{config-Cq5jWpQW.js → config-NtjUezp5.js} +2 -2
- package/dist/{config-guard-BIEzm1Di.js → config-guard-GXJBeXgt.js} +34 -34
- package/dist/{config-JotyqXJB.js → config-yg3MNzIZ.js} +2 -2
- package/dist/{configure-CupQ7QSD.js → configure-Cn-9vqSs.js} +10 -10
- package/dist/{configure-Cec4HsdK.js → configure-Mwbu9bfG.js} +8 -8
- package/dist/{control-service-CH6Bbr0T.js → control-service-CzkpRVn7.js} +4 -4
- package/dist/{control-service-YHi9oKDx.js → control-service-_2M8iCv6.js} +1 -1
- package/dist/{cron-cli-DQ37nGTc.js → cron-cli-Bkwkuduu.js} +7 -7
- package/dist/{cron-cli-BPtSqQjc.js → cron-cli-sBpc08kN.js} +6 -6
- package/dist/{daemon-cli-BwvNtNCH.js → daemon-cli-BQFZUZXG.js} +7 -7
- package/dist/{daemon-cli-ByQDMi6B.js → daemon-cli-D7bFcRv4.js} +11 -11
- package/dist/{daemon-runtime-Dg88Ac7J.js → daemon-runtime-DLtjWz00.js} +10 -10
- package/dist/{daemon-runtime-LePuvITk.js → daemon-runtime-q4XITAGg.js} +1 -1
- package/dist/{deliver-BpcYe8zG.js → deliver-BFZRT50l.js} +7 -7
- package/dist/{deliver-Dpg3LSwN.js → deliver-BRCyIScz.js} +5 -5
- package/dist/{deliver-D4rMk52D.js → deliver-CR0uQwr7.js} +3 -3
- package/dist/{deliver-C9Vwdw7k.js → deliver-D_PB5CG5.js} +2 -2
- package/dist/{deps-DWlD7Lyt.js → deps-BBw98Cve.js} +2 -2
- package/dist/{deps-qtgH7RGM.js → deps-Dlhl7sML.js} +2 -2
- package/dist/{devices-cli-CcGB1MVD.js → devices-cli-3aLFbDvW.js} +4 -4
- package/dist/{devices-cli-p9SUggMY.js → devices-cli-Dn5X9lnL.js} +4 -4
- package/dist/{directory-cli-CixpfARf.js → directory-cli-Cc06wNL1.js} +5 -5
- package/dist/{directory-cli-CgKDzRjU.js → directory-cli-Dj48rao9.js} +6 -6
- package/dist/{dispatcher-DsTwmVoy.js → dispatcher-DLLOC08H.js} +1 -1
- package/dist/{dns-cli-y3RAyaeD.js → dns-cli-CugZCOE9.js} +3 -3
- package/dist/{dns-cli--ew6Hcon.js → dns-cli-kXKz4kmo.js} +3 -3
- package/dist/{docs-cli-BPPPY68C.js → docs-cli-BUeU34DD.js} +1 -1
- package/dist/{docs-cli-B8ZWuZdG.js → docs-cli-DPM7sbYQ.js} +1 -1
- package/dist/{doctor-CqYHOc7o.js → doctor-D_er5eUz.js} +18 -18
- package/dist/{doctor--sUBhPRM.js → doctor-iSnCqUEi.js} +33 -33
- package/dist/entry.js +1 -1
- package/dist/{exec-approvals-cli-AoKQ4upV.js → exec-approvals-cli-DTdAAPIs.js} +11 -11
- package/dist/{exec-approvals-cli-C2XQFrdV.js → exec-approvals-cli-DyvEEBBB.js} +6 -6
- package/dist/extensionAPI.js +16 -16
- package/dist/{gateway-cli-FFlyXx90.js → gateway-cli-BUHCHKE6.js} +116 -116
- package/dist/{gateway-cli-x9uFfaiq.js → gateway-cli-DfFbLb7d.js} +43 -43
- package/dist/{gateway-rpc-CpSS8vbu.js → gateway-rpc-CUNihWum.js} +1 -1
- package/dist/{gateway-rpc-BUee5Dv6.js → gateway-rpc-ftABAYn5.js} +1 -1
- package/dist/{github-copilot-auth-C9U7LmQC.js → github-copilot-auth-DbUZnSyk.js} +5 -5
- package/dist/{github-copilot-auth-DhRqdPvp.js → github-copilot-auth-TxtjXx5m.js} +5 -5
- package/dist/{gmail-setup-utils-DwjED-x8.js → gmail-setup-utils-CBKE602c.js} +1 -1
- package/dist/{gmail-setup-utils-BElJpBPG.js → gmail-setup-utils-DFeZNixL.js} +1 -1
- package/dist/{health-format-xY8AE8iJ.js → health-format-BSrJdaJW.js} +10 -9
- package/dist/{health-format-BB0NTRxV.js → health-format-fowslicT.js} +12 -11
- package/dist/{hooks-cli-LD-Df2Bi.js → hooks-cli-BoczEJfK.js} +23 -23
- package/dist/{hooks-cli-D0QnfArE.js → hooks-cli-DoLBB8PN.js} +49 -49
- package/dist/{hooks-status-DzV884al.js → hooks-status-Dbj4IlQS.js} +1 -1
- package/dist/{hooks-status-B-1h3DT9.js → hooks-status-Dr9j7oSo.js} +1 -1
- package/dist/{image-C19aQZmj.js → image-BNNazXqI.js} +3 -3
- package/dist/{image-zzNMmsKZ.js → image-CE9CeS1j.js} +3 -3
- package/dist/{image-D1s2KO45.js → image-CY3Qb62D.js} +8 -8
- package/dist/{image-A6XShsr8.js → image-Crv76CGv.js} +3 -3
- package/dist/index.js +44 -44
- package/dist/{installs-lwst-G4F.js → installs-CJqCIvn4.js} +18 -18
- package/dist/llm-slug-generator.js +9 -9
- package/dist/{loader-t5G-bNh2.js → loader-BNGc0TMW.js} +115 -115
- package/dist/{login-qr-dW3zLPde.js → login-qr-BJHBXw2B.js} +1 -1
- package/dist/{login-qr-fi3WTytg.js → login-qr-BoEpQD7W.js} +2 -2
- package/dist/{login-qr-zHjaf-a-.js → login-qr-CojPlIrx.js} +1 -1
- package/dist/{login-qr-zBlKORpc.js → login-qr-O0Sg-Lht.js} +1 -1
- package/dist/{logs-cli-CNG1ybOs.js → logs-cli-BkQZaLP1.js} +5 -5
- package/dist/{logs-cli-BrwNjHyP.js → logs-cli-DbqvSWfV.js} +5 -5
- package/dist/{manager-BG8ogneZ.js → manager-BLQprOme.js} +3 -3
- package/dist/{manager-D1OOirj8.js → manager-DBEZGESO.js} +2 -2
- package/dist/{manager-CdFcVnZR.js → manager-DLK8bAAA.js} +15 -15
- package/dist/{manager-Bctrvc9j.js → manager-DQXILjKz.js} +2 -2
- package/dist/{model-auth-DisTMlNO.js → model-auth-B3m7mkvr.js} +1 -1
- package/dist/{model-selection-GZFHUD7x.js → model-selection-9N1nn0U_.js} +1 -1
- package/dist/{model-selection-Dcc6YSVW.js → model-selection-BqJ7D4pt.js} +1 -1
- package/dist/{models-cli-B2zLu81b.js → models-cli-DKJ429Km.js} +23 -23
- package/dist/{models-cli-DAT-ArET.js → models-cli-tBSLfpEB.js} +30 -30
- package/dist/{node-cli-ClBB_NxA.js → node-cli-az-8UhFP.js} +20 -20
- package/dist/{node-cli-etrHRm1x.js → node-cli-xTfEqY2t.js} +7 -7
- package/dist/{node-service-BDoNNRp-.js → node-service-CkPOvRv0.js} +1 -1
- package/dist/{nodes-cli-BaBGaJqV.js → nodes-cli-DfTrE8mE.js} +8 -8
- package/dist/{nodes-cli-CGt1ECiI.js → nodes-cli-U9s_odmo.js} +5 -5
- package/dist/{nodes-screen-DGlNPbk4.js → nodes-screen-DufGlxX3.js} +2 -2
- package/dist/{onboard-channels-CCcLnNq7.js → onboard-channels-B12vl_Fz.js} +5 -5
- package/dist/{onboard-channels-BTsEmF84.js → onboard-channels-Bi5gN7Cg.js} +4 -4
- package/dist/{onboard-skills-DTqkozry.js → onboard-skills-Cli5aapW.js} +9 -9
- package/dist/{onboard-skills-COOhVMtI.js → onboard-skills-bQdrzd5W.js} +8 -8
- package/dist/{onboarding-B_hfq1-Z.js → onboarding-KdG_ApLH.js} +20 -20
- package/dist/{openclaw-root-93W6UrUK.js → openclaw-root-BTW4x2Wd.js} +1 -1
- package/dist/{openclaw-root-9ILYSmJ9.js → openclaw-root-zKi4apQH.js} +3 -3
- package/dist/{pairing-cli-IMM6zTxT.js → pairing-cli-ByfGNmaZ.js} +7 -7
- package/dist/{pairing-cli-A-97MaNg.js → pairing-cli-C_IQMrN0.js} +6 -6
- package/dist/{pairing-labels-Bb4yiJHg.js → pairing-labels-B6MQ_Hha.js} +1 -1
- package/dist/{pairing-labels-DP5H8gf6.js → pairing-labels-B6ViJi8r.js} +1 -1
- package/dist/{pairing-store-DnhpK1SH.js → pairing-store-Cc67v-m7.js} +1 -1
- package/dist/{pairing-store-DiCaUGXP.js → pairing-store-DKhgYwjg.js} +1 -1
- package/dist/{paths-fJtAVDc0.js → paths-BifbScbU.js} +1 -1
- package/dist/{pi-embedded-DQydpubI.js → pi-embedded-DPQwlpO6.js} +15 -15
- package/dist/{pi-embedded-helpers-BJ-cu3iK.js → pi-embedded-helpers-DBsbz1Wq.js} +4 -4
- package/dist/{pi-embedded-helpers-4Lpm0TfW.js → pi-embedded-helpers-DwhRDCwp.js} +2 -2
- package/dist/{pi-embedded-helpers-B8LSSkHe.js → pi-embedded-helpers-Z2gqd4I2.js} +3 -3
- package/dist/{pi-embedded-helpers-DadKWPQE.js → pi-embedded-helpers-n7o6YJmY.js} +6 -6
- package/dist/{pi-tools.policy-DLLm-j7M.js → pi-tools.policy-CiKYFXrw.js} +3 -3
- package/dist/{plugin-auto-enable-B78nMu3L.js → plugin-auto-enable-CTA5rOU5.js} +1 -1
- package/dist/{plugin-auto-enable-Arz-7wiT.js → plugin-auto-enable-CrzdP1Nz.js} +2 -2
- package/dist/{plugins-CRUvG4uT.js → plugins-CO1rgH0r.js} +1 -1
- package/dist/{plugins-cli-CjpTlFhI.js → plugins-cli-BKilQedx.js} +22 -22
- package/dist/{plugins-cli-DrQ1Deuw.js → plugins-cli-CkZgCEVA.js} +30 -30
- package/dist/{plugins-U0QQZWlW.js → plugins-ia9SOGpI.js} +1 -1
- package/dist/{ports-BcNVanDX.js → ports-DbnuiZZO.js} +1 -1
- package/dist/{program-CDSRl7eR.js → program-CFqsq13P.js} +58 -58
- package/dist/{pw-ai-Bpd-iaBB.js → pw-ai-BOyUF0Kj.js} +4 -4
- package/dist/{qmd-manager-DZhFcVTt.js → qmd-manager-BM5DP4s8.js} +1 -1
- package/dist/{qmd-manager-CjTG-nW_.js → qmd-manager-BRXyEw0a.js} +19 -19
- package/dist/{qmd-manager-qe1SLQy3.js → qmd-manager-CWFe938c.js} +1 -1
- package/dist/{qmd-manager-D4W1VfWC.js → qmd-manager-h50GTfkl.js} +2 -2
- package/dist/{register.subclis-COUZSGkI.js → register.subclis-CYsvBF5c.js} +28 -28
- package/dist/{reply-CcYZSt6t.js → reply-CH7VZ1jT.js} +28 -28
- package/dist/{routes-CnhRELg3.js → routes-BUDqG0bE.js} +17 -17
- package/dist/{routes-Sj0W9JUC.js → routes-dtswuSI-.js} +1 -1
- package/dist/{rpc-wf5KzhJ_.js → rpc-BeN1YXM7.js} +1 -1
- package/dist/{rpc-BlzExEft.js → rpc-CUy4VHNF.js} +1 -1
- package/dist/{run-main-CadL0LaU.js → run-main-Couc_fdJ.js} +60 -60
- package/dist/{sandbox-CXXC0AOA.js → sandbox-D889a-F8.js} +21 -21
- package/dist/{sandbox-cli-B-c6pLqW.js → sandbox-cli-BNvoe8W3.js} +10 -10
- package/dist/{sandbox-cli-CEQpi4Wb.js → sandbox-cli-DACJb2g8.js} +7 -7
- package/dist/{sandbox-BR9JVXBT.js → sandbox-nFkFFEb7.js} +5 -5
- package/dist/{security-cli-MV9q0KXT.js → security-cli-DvqT9LWk.js} +11 -11
- package/dist/{security-cli-CxnkY7T2.js → security-cli-m_PAeVLY.js} +21 -21
- package/dist/{server-context-B0LbMz_e.js → server-context-qxpb5Ln6.js} +4 -4
- package/dist/{server-node-events-ClBp_ky8.js → server-node-events-Cb6KgBy9.js} +23 -23
- package/dist/{server-node-events-DZQVhZjc.js → server-node-events-Cz7z8PCq.js} +27 -27
- package/dist/{service-DQwKxszE.js → service-CJ_9zG2c.js} +15 -15
- package/dist/{service-audit-D6Jk8jFU.js → service-audit-CURwIRFh.js} +13 -13
- package/dist/{service-audit-JR0RZ8xC.js → service-audit-DtmRGU4O.js} +1 -1
- package/dist/{shared-C_dY3J1K.js → shared-BFnl2Cjh.js} +1 -1
- package/dist/{shared-DN6M8u_S.js → shared-CXK7Zt_F.js} +1 -1
- package/dist/{skill-scanner-C_fQzVDu.js → skill-scanner-BT7PBklM.js} +5 -5
- package/dist/{skills-C1QRKLvh.js → skills-Cgy3X3tK.js} +1 -1
- package/dist/{skills-cli-DDTkkerI.js → skills-cli-B2zxU_2n.js} +5 -5
- package/dist/{skills-cli-DbqgzF80.js → skills-cli-Bg8bkl9E.js} +5 -5
- package/dist/{skills-status-GulhEBnV.js → skills-status-8m5p33dD.js} +1 -1
- package/dist/{skills-status-C_QDsl6j.js → skills-status-BA2DOmHk.js} +1 -1
- package/dist/{skills-CwXLq-nk.js → skills-w-kwwPb2.js} +1 -1
- package/dist/{sqlite-DODNHWJb.js → sqlite-DmufeXxk.js} +8 -8
- package/dist/{status-Y2KMsWuk.js → status-BX5HXftW.js} +3 -3
- package/dist/{status-CErwIaup.js → status-CHFPyXak.js} +31 -31
- package/dist/{status-CtFS7XRr.js → status-CTMeUEYd.js} +3 -3
- package/dist/{system-cli-C0JWELUD.js → system-cli-BzCBKn-l.js} +5 -5
- package/dist/{system-cli-BVweBOhJ.js → system-cli-C886Ufmu.js} +5 -5
- package/dist/{systemd-aL_mEluy.js → systemd-D8TmVYdf.js} +5 -5
- package/dist/{systemd-linger-CEPF4JN6.js → systemd-linger-C57Dz7hA.js} +1 -1
- package/dist/{tui-B9ggfGhy.js → tui-B8ryM4-q.js} +5 -5
- package/dist/{tui-C_gTxPke.js → tui-DMtfTPeq.js} +5 -5
- package/dist/{tui-cli-Zj_x6Bvj.js → tui-cli-BBTZ6Uea.js} +14 -14
- package/dist/{tui-cli-CYc8ZHxI.js → tui-cli-CainEme8.js} +11 -11
- package/dist/{tui-formatters-C1oQXn1l.js → tui-formatters-6nR_zzUg.js} +3 -3
- package/dist/{tui-formatters-CCOWLfCX.js → tui-formatters-Cmrdmcx8.js} +3 -3
- package/dist/{update-C-9KsS1m.js → update-DkJ6rvG7.js} +3 -3
- package/dist/{update-cli-ClAzvLLE.js → update-cli-C72mF9AM.js} +34 -34
- package/dist/{update-cli-Cyh2BgJf.js → update-cli-MVVbpgcz.js} +53 -53
- package/dist/{update-runner-BT3WGHmf.js → update-runner-CsWAyRQf.js} +6 -6
- package/dist/{update-runner-Br_pa9Xw.js → update-runner-CztlHuQ9.js} +25 -25
- package/dist/{webhooks-cli-Ch9h1RT2.js → webhooks-cli-BH_Y2RXv.js} +5 -5
- package/dist/{webhooks-cli-DBWL77uP.js → webhooks-cli-DZaS4YoE.js} +5 -5
- package/dist/{wsl-CtSDIi51.js → wsl-C-eVEqs4.js} +3 -3
- package/package.json +1 -1
- package/dist/control-ui/apple-touch-icon.png +0 -0
- package/dist/control-ui/assets/index-BeKTXH1m.js +0 -7601
- package/dist/control-ui/assets/index-BeKTXH1m.js.map +0 -1
- package/dist/control-ui/assets/index-DWhx-9JL.css +0 -1
- package/dist/control-ui/favicon-32.png +0 -0
- package/dist/control-ui/favicon.ico +0 -0
- package/dist/control-ui/favicon.svg +0 -22
- package/dist/control-ui/index.html +0 -17
|
@@ -2,7 +2,7 @@ import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
|
2
2
|
import { A as success, C as danger, F as getChildLogger, L as toPinoLikeLogger, a as ensureDir, h as resolveUserPath, w as info } from "./utils-BXXjCjKW.js";
|
|
3
3
|
import { s as logInfo, u as defaultRuntime } from "./exec-WGnq0Jte.js";
|
|
4
4
|
import { t as formatCliCommand } from "./command-format-BUxhT1xL.js";
|
|
5
|
-
import { A as maybeRestoreCredsFromBackup, E as resolveWhatsAppAccount, F as webAuthExists, M as resolveDefaultWebAuthDir, N as resolveWebCredsBackupPath, P as resolveWebCredsPath, T as VERSION, j as readWebSelfId, k as logoutWeb, t as loadConfig } from "./config-
|
|
5
|
+
import { A as maybeRestoreCredsFromBackup, E as resolveWhatsAppAccount, F as webAuthExists, M as resolveDefaultWebAuthDir, N as resolveWebCredsBackupPath, P as resolveWebCredsPath, T as VERSION, j as readWebSelfId, k as logoutWeb, t as loadConfig } from "./config-C_ZMbYir.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import { randomUUID } from "node:crypto";
|
|
8
8
|
import { DisconnectReason, fetchLatestBaileysVersion, makeCacheableSignalKeyStore, makeWASocket, useMultiFileAuthState } from "@whiskeysockets/baileys";
|
|
@@ -3,8 +3,8 @@ import { A as getChildLogger, N as toPinoLikeLogger, T as success, p as defaultR
|
|
|
3
3
|
import { t as formatCliCommand } from "./command-format-ayFsmwwz.js";
|
|
4
4
|
import { s as ensureDir, v as resolveUserPath } from "./utils-Bx1WKTCk.js";
|
|
5
5
|
import { s as logInfo } from "./exec-B8JKbXKW.js";
|
|
6
|
-
import { i as loadConfig, j as VERSION } from "./config-
|
|
7
|
-
import { a as logoutWeb, c as resolveDefaultWebAuthDir, d as webAuthExists, l as resolveWebCredsBackupPath, n as resolveWhatsAppAccount, o as maybeRestoreCredsFromBackup, s as readWebSelfId, u as resolveWebCredsPath } from "./accounts-
|
|
6
|
+
import { i as loadConfig, j as VERSION } from "./config-DFgdMueL.js";
|
|
7
|
+
import { a as logoutWeb, c as resolveDefaultWebAuthDir, d as webAuthExists, l as resolveWebCredsBackupPath, n as resolveWhatsAppAccount, o as maybeRestoreCredsFromBackup, s as readWebSelfId, u as resolveWebCredsPath } from "./accounts-Dx4aJi3x.js";
|
|
8
8
|
import fs from "node:fs";
|
|
9
9
|
import { randomUUID } from "node:crypto";
|
|
10
10
|
import { DisconnectReason, fetchLatestBaileysVersion, makeCacheableSignalKeyStore, makeWASocket, useMultiFileAuthState } from "@whiskeysockets/baileys";
|
|
@@ -3,7 +3,7 @@ import { D as info, E as danger, H as toPinoLikeLogger, P as success, c as defau
|
|
|
3
3
|
import { c as ensureDir, y as resolveUserPath } from "./utils-DMuwyz_q.js";
|
|
4
4
|
import { s as logInfo } from "./exec-DFOtZbI0.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-ChfKqObn.js";
|
|
6
|
-
import { i as loadConfig, j as VERSION } from "./config-
|
|
6
|
+
import { i as loadConfig, j as VERSION } from "./config-yg3MNzIZ.js";
|
|
7
7
|
import { a as logoutWeb, c as resolveDefaultWebAuthDir, d as webAuthExists, l as resolveWebCredsBackupPath, n as resolveWhatsAppAccount, o as maybeRestoreCredsFromBackup, s as readWebSelfId, u as resolveWebCredsPath } from "./accounts-DJIm5oPq.js";
|
|
8
8
|
import fs from "node:fs";
|
|
9
9
|
import { randomUUID } from "node:crypto";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { D as ensureDir, G as danger, K as info, L as resolveUserPath, X as success, nt as toPinoLikeLogger, s as logInfo, tt as getChildLogger, u as defaultRuntime } from "./exec-BfU1Ka_V.js";
|
|
3
3
|
import { t as formatCliCommand } from "./command-format-CFzL448l.js";
|
|
4
|
-
import { F as resolveDefaultWebAuthDir, I as resolveWebCredsBackupPath, L as resolveWebCredsPath, M as logoutWeb, N as maybeRestoreCredsFromBackup, O as VERSION, P as readWebSelfId, R as webAuthExists, k as resolveWhatsAppAccount, t as loadConfig } from "./config-
|
|
4
|
+
import { F as resolveDefaultWebAuthDir, I as resolveWebCredsBackupPath, L as resolveWebCredsPath, M as logoutWeb, N as maybeRestoreCredsFromBackup, O as VERSION, P as readWebSelfId, R as webAuthExists, k as resolveWhatsAppAccount, t as loadConfig } from "./config-NtjUezp5.js";
|
|
5
5
|
import fs from "node:fs";
|
|
6
6
|
import { randomUUID } from "node:crypto";
|
|
7
7
|
import { DisconnectReason, fetchLatestBaileysVersion, makeCacheableSignalKeyStore, makeWASocket, useMultiFileAuthState } from "@whiskeysockets/baileys";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { D as colorize, O as isRich, h as clearActiveProgressLine, k as theme } from "./entry.js";
|
|
2
|
-
import "./auth-profiles-
|
|
2
|
+
import "./auth-profiles-kZZY0kCW.js";
|
|
3
3
|
import { t as formatCliCommand } from "./command-format-ayFsmwwz.js";
|
|
4
4
|
import "./utils-Bx1WKTCk.js";
|
|
5
5
|
import "./exec-B8JKbXKW.js";
|
|
6
|
-
import "./agent-scope
|
|
6
|
+
import "./agent-scope-QnsNO5IK.js";
|
|
7
7
|
import "./github-copilot-token-SLWintYd.js";
|
|
8
|
-
import "./config-
|
|
8
|
+
import "./config-DFgdMueL.js";
|
|
9
9
|
import "./manifest-registry-C_FL6H2P.js";
|
|
10
10
|
import "./client-BCOZgvlo.js";
|
|
11
|
-
import { t as buildGatewayConnectionDetails } from "./call-
|
|
11
|
+
import { t as buildGatewayConnectionDetails } from "./call-BUcaYa5a.js";
|
|
12
12
|
import "./message-channel-BlgPSDAh.js";
|
|
13
13
|
import { t as formatDocsLink } from "./links-CSYf2PwL.js";
|
|
14
14
|
import "./progress-Da1ehW-x.js";
|
|
15
15
|
import { t as parseLogLine } from "./parse-log-line-kPFC6K9m.js";
|
|
16
|
-
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-
|
|
16
|
+
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-CUNihWum.js";
|
|
17
17
|
import { setTimeout } from "node:timers/promises";
|
|
18
18
|
|
|
19
19
|
//#region src/terminal/stream-writer.ts
|
|
@@ -2,20 +2,20 @@ import "./paths-DVBShlw6.js";
|
|
|
2
2
|
import { I as colorize, L as isRich, R as theme, u as clearActiveProgressLine } from "./subsystem-DPnkvS73.js";
|
|
3
3
|
import "./utils-DMuwyz_q.js";
|
|
4
4
|
import "./exec-DFOtZbI0.js";
|
|
5
|
-
import "./agent-scope-
|
|
6
|
-
import "./model-selection-
|
|
5
|
+
import "./agent-scope-C7vPz4km.js";
|
|
6
|
+
import "./model-selection-9N1nn0U_.js";
|
|
7
7
|
import "./github-copilot-token-BW-SEg7E.js";
|
|
8
8
|
import { t as formatCliCommand } from "./command-format-ChfKqObn.js";
|
|
9
9
|
import "./boolean-BgXe2hyu.js";
|
|
10
10
|
import "./env-B5YXooWp.js";
|
|
11
|
-
import "./config-
|
|
11
|
+
import "./config-yg3MNzIZ.js";
|
|
12
12
|
import "./manifest-registry-BMwHTztn.js";
|
|
13
13
|
import "./message-channel-CHRYQtAM.js";
|
|
14
14
|
import "./client-56cv8SiG.js";
|
|
15
|
-
import { t as buildGatewayConnectionDetails } from "./call-
|
|
15
|
+
import { t as buildGatewayConnectionDetails } from "./call-D_Z9T8iV.js";
|
|
16
16
|
import { t as formatDocsLink } from "./links-BPnP7NBH.js";
|
|
17
17
|
import "./progress-L0AJ2h6x.js";
|
|
18
|
-
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-
|
|
18
|
+
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-ftABAYn5.js";
|
|
19
19
|
import { t as parseLogLine } from "./parse-log-line-DPdpOB29.js";
|
|
20
20
|
import { setTimeout } from "node:timers/promises";
|
|
21
21
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { s as resolveStateDir } from "./paths-rb94mUrR.js";
|
|
3
|
-
import { n as resolveAgentConfig, r as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
3
|
+
import { n as resolveAgentConfig, r as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-Bxl1Ieu_.js";
|
|
4
4
|
import { E as clampNumber$1, L as resolveUserPath, T as clampInt, V as sleep, W as truncateUtf16Safe, l as createSubsystemLogger } from "./exec-BfU1Ka_V.js";
|
|
5
|
-
import { O as isTruthyEnvValue, b as resolveApiKeyForProvider, y as requireApiKey } from "./model-selection-
|
|
5
|
+
import { O as isTruthyEnvValue, b as resolveApiKeyForProvider, y as requireApiKey } from "./model-selection-BqJ7D4pt.js";
|
|
6
6
|
import { n as formatErrorMessage } from "./errors-dpUbQseI.js";
|
|
7
|
-
import { i as resolveSessionTranscriptsDirForAgent } from "./paths-
|
|
7
|
+
import { i as resolveSessionTranscriptsDirForAgent } from "./paths-BifbScbU.js";
|
|
8
8
|
import { n as onSessionTranscriptUpdate } from "./transcript-events-BrkSiEN9.js";
|
|
9
9
|
import { a as ensureDir, c as listMemoryFiles, d as runWithConcurrency$2, i as cosineSimilarity, l as normalizeExtraMemoryPaths, n as buildFileEntry, o as hashText, r as chunkMarkdown, s as isMemoryPath, t as requireNodeSqlite, u as parseEmbedding } from "./sqlite-CpqIbY4-.js";
|
|
10
10
|
import path from "node:path";
|
|
@@ -2,8 +2,8 @@ import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
|
2
2
|
import { s as resolveStateDir } from "./paths-BZtyHNCi.js";
|
|
3
3
|
import { S as truncateUtf16Safe, h as resolveUserPath, i as clampNumber$1, r as clampInt, y as sleep } from "./utils-BXXjCjKW.js";
|
|
4
4
|
import { l as createSubsystemLogger } from "./exec-WGnq0Jte.js";
|
|
5
|
-
import { n as resolveAgentConfig, r as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
6
|
-
import { W as isTruthyEnvValue, i as resolveApiKeyForProvider, r as requireApiKey } from "./model-auth-
|
|
5
|
+
import { n as resolveAgentConfig, r as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-DUR7NPNo.js";
|
|
6
|
+
import { W as isTruthyEnvValue, i as resolveApiKeyForProvider, r as requireApiKey } from "./model-auth-B3m7mkvr.js";
|
|
7
7
|
import { n as formatErrorMessage } from "./errors-D3tYRJWG.js";
|
|
8
8
|
import { i as resolveSessionTranscriptsDirForAgent } from "./paths-MnZaxqPw.js";
|
|
9
9
|
import { n as onSessionTranscriptUpdate } from "./transcript-events-BlIONGVn.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { X as resolveStateDir, n as isTruthyEnvValue, o as createSubsystemLogger } from "./entry.js";
|
|
3
|
-
import { ct as resolveApiKeyForProvider, st as requireApiKey } from "./auth-profiles-
|
|
3
|
+
import { ct as resolveApiKeyForProvider, st as requireApiKey } from "./auth-profiles-kZZY0kCW.js";
|
|
4
4
|
import { S as sleep, T as truncateUtf16Safe, i as clampNumber$1, r as clampInt, v as resolveUserPath } from "./utils-Bx1WKTCk.js";
|
|
5
|
-
import { n as resolveAgentConfig, r as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope
|
|
5
|
+
import { n as resolveAgentConfig, r as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-QnsNO5IK.js";
|
|
6
6
|
import { n as formatErrorMessage } from "./errors-x4NYs-1P.js";
|
|
7
7
|
import { a as resolveSessionTranscriptsDirForAgent } from "./paths-C27OFaz1.js";
|
|
8
8
|
import { n as onSessionTranscriptUpdate } from "./transcript-events-CZ8CG4ht.js";
|
|
9
|
-
import { a as ensureDir, c as listMemoryFiles, d as runWithConcurrency$2, i as cosineSimilarity, l as normalizeExtraMemoryPaths, n as buildFileEntry, o as hashText, r as chunkMarkdown, s as isMemoryPath, t as requireNodeSqlite, u as parseEmbedding } from "./sqlite-
|
|
9
|
+
import { a as ensureDir, c as listMemoryFiles, d as runWithConcurrency$2, i as cosineSimilarity, l as normalizeExtraMemoryPaths, n as buildFileEntry, o as hashText, r as chunkMarkdown, s as isMemoryPath, t as requireNodeSqlite, u as parseEmbedding } from "./sqlite-DmufeXxk.js";
|
|
10
10
|
import path from "node:path";
|
|
11
11
|
import os from "node:os";
|
|
12
12
|
import fs from "node:fs";
|
|
13
|
-
import
|
|
13
|
+
import fsPromises from "node:fs/promises";
|
|
14
14
|
import { randomUUID } from "node:crypto";
|
|
15
15
|
import { createInterface } from "node:readline";
|
|
16
16
|
import { Readable } from "node:stream";
|
|
@@ -1805,7 +1805,7 @@ var MemoryIndexManager = class MemoryIndexManager {
|
|
|
1805
1805
|
if (!allowedWorkspace && this.settings.extraPaths.length > 0) {
|
|
1806
1806
|
const additionalPaths = normalizeExtraMemoryPaths(this.workspaceDir, this.settings.extraPaths);
|
|
1807
1807
|
for (const additionalPath of additionalPaths) try {
|
|
1808
|
-
const stat = await
|
|
1808
|
+
const stat = await fsPromises.lstat(additionalPath);
|
|
1809
1809
|
if (stat.isSymbolicLink()) continue;
|
|
1810
1810
|
if (stat.isDirectory()) {
|
|
1811
1811
|
if (absPath === additionalPath || absPath.startsWith(`${additionalPath}${path.sep}`)) {
|
|
@@ -1824,9 +1824,9 @@ var MemoryIndexManager = class MemoryIndexManager {
|
|
|
1824
1824
|
}
|
|
1825
1825
|
if (!allowedWorkspace && !allowedAdditional) throw new Error("path required");
|
|
1826
1826
|
if (!absPath.endsWith(".md")) throw new Error("path required");
|
|
1827
|
-
const stat = await
|
|
1827
|
+
const stat = await fsPromises.lstat(absPath);
|
|
1828
1828
|
if (stat.isSymbolicLink() || !stat.isFile()) throw new Error("path required");
|
|
1829
|
-
const content = await
|
|
1829
|
+
const content = await fsPromises.readFile(absPath, "utf-8");
|
|
1830
1830
|
if (!params.from && !params.lines) return {
|
|
1831
1831
|
text: content,
|
|
1832
1832
|
path: relPath
|
|
@@ -2078,7 +2078,7 @@ var MemoryIndexManager = class MemoryIndexManager {
|
|
|
2078
2078
|
const source = `${sourceBase}${suffix}`;
|
|
2079
2079
|
const target = `${targetBase}${suffix}`;
|
|
2080
2080
|
try {
|
|
2081
|
-
await
|
|
2081
|
+
await fsPromises.rename(source, target);
|
|
2082
2082
|
} catch (err) {
|
|
2083
2083
|
if (err.code !== "ENOENT") throw err;
|
|
2084
2084
|
}
|
|
@@ -2089,7 +2089,7 @@ var MemoryIndexManager = class MemoryIndexManager {
|
|
|
2089
2089
|
"",
|
|
2090
2090
|
"-wal",
|
|
2091
2091
|
"-shm"
|
|
2092
|
-
].map((suffix) =>
|
|
2092
|
+
].map((suffix) => fsPromises.rm(`${basePath}${suffix}`, { force: true })));
|
|
2093
2093
|
}
|
|
2094
2094
|
ensureSchema() {
|
|
2095
2095
|
const result = ensureMemoryIndexSchema({
|
|
@@ -2181,7 +2181,7 @@ var MemoryIndexManager = class MemoryIndexManager {
|
|
|
2181
2181
|
if (!thresholds) return null;
|
|
2182
2182
|
let stat;
|
|
2183
2183
|
try {
|
|
2184
|
-
stat = await
|
|
2184
|
+
stat = await fsPromises.stat(sessionFile);
|
|
2185
2185
|
} catch {
|
|
2186
2186
|
return null;
|
|
2187
2187
|
}
|
|
@@ -2221,7 +2221,7 @@ var MemoryIndexManager = class MemoryIndexManager {
|
|
|
2221
2221
|
}
|
|
2222
2222
|
async countNewlines(absPath, start, end) {
|
|
2223
2223
|
if (end <= start) return 0;
|
|
2224
|
-
const handle = await
|
|
2224
|
+
const handle = await fsPromises.open(absPath, "r");
|
|
2225
2225
|
try {
|
|
2226
2226
|
let offset = start;
|
|
2227
2227
|
let count = 0;
|
|
@@ -2628,7 +2628,7 @@ var MemoryIndexManager = class MemoryIndexManager {
|
|
|
2628
2628
|
async listSessionFiles() {
|
|
2629
2629
|
const dir = resolveSessionTranscriptsDirForAgent(this.agentId);
|
|
2630
2630
|
try {
|
|
2631
|
-
return (await
|
|
2631
|
+
return (await fsPromises.readdir(dir, { withFileTypes: true })).filter((entry) => entry.isFile()).map((entry) => entry.name).filter((name) => name.endsWith(".jsonl")).map((name) => path.join(dir, name));
|
|
2632
2632
|
} catch {
|
|
2633
2633
|
return [];
|
|
2634
2634
|
}
|
|
@@ -2658,8 +2658,8 @@ var MemoryIndexManager = class MemoryIndexManager {
|
|
|
2658
2658
|
}
|
|
2659
2659
|
async buildSessionEntry(absPath) {
|
|
2660
2660
|
try {
|
|
2661
|
-
const stat = await
|
|
2662
|
-
const lines = (await
|
|
2661
|
+
const stat = await fsPromises.stat(absPath);
|
|
2662
|
+
const lines = (await fsPromises.readFile(absPath, "utf-8")).split("\n");
|
|
2663
2663
|
const collected = [];
|
|
2664
2664
|
for (const line of lines) {
|
|
2665
2665
|
if (!line.trim()) continue;
|
|
@@ -3168,7 +3168,7 @@ var MemoryIndexManager = class MemoryIndexManager {
|
|
|
3168
3168
|
return this.batch.enabled ? this.batch.concurrency : EMBEDDING_INDEX_CONCURRENCY;
|
|
3169
3169
|
}
|
|
3170
3170
|
async indexFile(entry, options) {
|
|
3171
|
-
const chunks = chunkMarkdown(options.content ?? await
|
|
3171
|
+
const chunks = chunkMarkdown(options.content ?? await fsPromises.readFile(entry.absPath, "utf-8"), this.settings.chunking).filter((chunk) => chunk.text.trim().length > 0);
|
|
3172
3172
|
const embeddings = this.batch.enabled ? await this.embedChunksWithBatch(chunks, entry, options.source) : await this.embedChunksInBatches(chunks);
|
|
3173
3173
|
const sample = embeddings.find((embedding) => embedding.length > 0);
|
|
3174
3174
|
const vectorReady = sample ? await this.ensureVectorReady(sample.length) : false;
|
|
@@ -2,8 +2,8 @@ import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
|
2
2
|
import { g as resolveStateDir } from "./paths-DVBShlw6.js";
|
|
3
3
|
import { t as createSubsystemLogger } from "./subsystem-DPnkvS73.js";
|
|
4
4
|
import { C as sleep, E as truncateUtf16Safe, a as clampNumber$1, i as clampInt, y as resolveUserPath } from "./utils-DMuwyz_q.js";
|
|
5
|
-
import { n as resolveAgentConfig, r as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
6
|
-
import { B as resolveApiKeyForProvider, z as requireApiKey } from "./model-selection-
|
|
5
|
+
import { n as resolveAgentConfig, r as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-C7vPz4km.js";
|
|
6
|
+
import { B as resolveApiKeyForProvider, z as requireApiKey } from "./model-selection-9N1nn0U_.js";
|
|
7
7
|
import { t as isTruthyEnvValue } from "./env-B5YXooWp.js";
|
|
8
8
|
import { n as formatErrorMessage } from "./errors-B0eT3jVv.js";
|
|
9
9
|
import { a as resolveSessionTranscriptsDirForAgent } from "./paths-CLkhFRsq.js";
|
|
@@ -3,7 +3,7 @@ import { o as resolveOAuthPath, s as resolveStateDir } from "./paths-BZtyHNCi.js
|
|
|
3
3
|
import { n as DEFAULT_AGENT_ID } from "./session-key-nXYQSv-a.js";
|
|
4
4
|
import { h as resolveUserPath } from "./utils-BXXjCjKW.js";
|
|
5
5
|
import { l as createSubsystemLogger } from "./exec-WGnq0Jte.js";
|
|
6
|
-
import { a as resolveAgentModelPrimary } from "./agent-scope-
|
|
6
|
+
import { a as resolveAgentModelPrimary } from "./agent-scope-DUR7NPNo.js";
|
|
7
7
|
import { t as parseBooleanValue } from "./boolean-M-esQJt6.js";
|
|
8
8
|
import { t as formatCliCommand } from "./command-format-BUxhT1xL.js";
|
|
9
9
|
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-C9IJh2Pn.js";
|
|
@@ -3,7 +3,7 @@ import { g as resolveStateDir, h as resolveOAuthPath } from "./paths-DVBShlw6.js
|
|
|
3
3
|
import { t as createSubsystemLogger } from "./subsystem-DPnkvS73.js";
|
|
4
4
|
import { y as resolveUserPath } from "./utils-DMuwyz_q.js";
|
|
5
5
|
import { n as DEFAULT_AGENT_ID } from "./session-key-CUWZSMYQ.js";
|
|
6
|
-
import { a as resolveAgentModelPrimary } from "./agent-scope-
|
|
6
|
+
import { a as resolveAgentModelPrimary } from "./agent-scope-C7vPz4km.js";
|
|
7
7
|
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-BW-SEg7E.js";
|
|
8
8
|
import { t as formatCliCommand } from "./command-format-ChfKqObn.js";
|
|
9
9
|
import { t as isTruthyEnvValue } from "./env-B5YXooWp.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { o as resolveOAuthPath, s as resolveStateDir } from "./paths-rb94mUrR.js";
|
|
3
|
-
import { T as DEFAULT_AGENT_ID, a as resolveAgentModelPrimary } from "./agent-scope-
|
|
3
|
+
import { T as DEFAULT_AGENT_ID, a as resolveAgentModelPrimary } from "./agent-scope-Bxl1Ieu_.js";
|
|
4
4
|
import { L as resolveUserPath, l as createSubsystemLogger } from "./exec-BfU1Ka_V.js";
|
|
5
5
|
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-wCk9Fg_E.js";
|
|
6
6
|
import { t as formatCliCommand } from "./command-format-CFzL448l.js";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { t as CONFIG_PATH } from "./paths-DVBShlw6.js";
|
|
2
2
|
import { I as colorize, L as isRich$1, R as theme, c as defaultRuntime } from "./subsystem-DPnkvS73.js";
|
|
3
3
|
import { S as shortenHomePath } from "./utils-DMuwyz_q.js";
|
|
4
|
-
import "./pi-embedded-helpers-
|
|
5
|
-
import { Ot as openUrl, R as describeFailoverError, dt as loadProviderUsageSummary, kr as loadModelCatalog, l as runEmbeddedPiAgent, mt as resolveUsageProviderId, pt as formatUsageWindowSummary } from "./reply-
|
|
4
|
+
import "./pi-embedded-helpers-DwhRDCwp.js";
|
|
5
|
+
import { Ot as openUrl, R as describeFailoverError, dt as loadProviderUsageSummary, kr as loadModelCatalog, l as runEmbeddedPiAgent, mt as resolveUsageProviderId, pt as formatUsageWindowSummary } from "./reply-CH7VZ1jT.js";
|
|
6
6
|
import "./exec-DFOtZbI0.js";
|
|
7
|
-
import { a as resolveAgentModelPrimary, c as resolveDefaultAgentId, i as resolveAgentModelFallbacksOverride, r as resolveAgentDir, s as resolveAgentWorkspaceDir, w as resolveDefaultAgentWorkspaceDir } from "./agent-scope-
|
|
8
|
-
import { B as resolveApiKeyForProvider, Ct as resolveAuthProfileDisplayLabel, Dt as DEFAULT_MODEL, H as resolveEnvApiKey, Ot as DEFAULT_PROVIDER, R as getCustomProviderApiKey, V as resolveAwsSdkEnvVarName, W as getShellEnvAppliedKeys, Y as shouldEnableShellEnvFallback, bt as resolveOpenClawAgentDir, c as parseModelRef, d as resolveConfiguredModelRef, dt as listProfilesForProvider, et as resolveAuthProfileOrder, f as resolveDefaultModelForAgent, ht as ensureAuthProfileStore, it as resolveProfileUnusableUntilForDisplay, m as resolveModelRefFromString, mt as upsertAuthProfile, o as modelKey, pt as setAuthProfileOrder, r as buildModelAliasIndex, s as normalizeProviderId, yt as resolveAuthStorePathForDisplay } from "./model-selection-
|
|
7
|
+
import { a as resolveAgentModelPrimary, c as resolveDefaultAgentId, i as resolveAgentModelFallbacksOverride, r as resolveAgentDir, s as resolveAgentWorkspaceDir, w as resolveDefaultAgentWorkspaceDir } from "./agent-scope-C7vPz4km.js";
|
|
8
|
+
import { B as resolveApiKeyForProvider, Ct as resolveAuthProfileDisplayLabel, Dt as DEFAULT_MODEL, H as resolveEnvApiKey, Ot as DEFAULT_PROVIDER, R as getCustomProviderApiKey, V as resolveAwsSdkEnvVarName, W as getShellEnvAppliedKeys, Y as shouldEnableShellEnvFallback, bt as resolveOpenClawAgentDir, c as parseModelRef, d as resolveConfiguredModelRef, dt as listProfilesForProvider, et as resolveAuthProfileOrder, f as resolveDefaultModelForAgent, ht as ensureAuthProfileStore, it as resolveProfileUnusableUntilForDisplay, m as resolveModelRefFromString, mt as upsertAuthProfile, o as modelKey, pt as setAuthProfileOrder, r as buildModelAliasIndex, s as normalizeProviderId, yt as resolveAuthStorePathForDisplay } from "./model-selection-9N1nn0U_.js";
|
|
9
9
|
import "./github-copilot-token-BW-SEg7E.js";
|
|
10
10
|
import { t as formatCliCommand } from "./command-format-ChfKqObn.js";
|
|
11
11
|
import "./boolean-BgXe2hyu.js";
|
|
12
12
|
import "./env-B5YXooWp.js";
|
|
13
|
-
import { h as parseDurationMs, i as loadConfig, o as readConfigFileSnapshot } from "./config-
|
|
13
|
+
import { h as parseDurationMs, i as loadConfig, o as readConfigFileSnapshot } from "./config-yg3MNzIZ.js";
|
|
14
14
|
import "./manifest-registry-BMwHTztn.js";
|
|
15
|
-
import "./plugins-
|
|
16
|
-
import "./sandbox-
|
|
17
|
-
import { _ as ensureOpenClawModelsJson } from "./image-
|
|
15
|
+
import "./plugins-ia9SOGpI.js";
|
|
16
|
+
import "./sandbox-nFkFFEb7.js";
|
|
17
|
+
import { _ as ensureOpenClawModelsJson } from "./image-CE9CeS1j.js";
|
|
18
18
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-CV2V1HHz.js";
|
|
19
19
|
import "./chrome-BKkyn8EY.js";
|
|
20
|
-
import "./skills-
|
|
21
|
-
import "./routes-
|
|
20
|
+
import "./skills-Cgy3X3tK.js";
|
|
21
|
+
import "./routes-dtswuSI-.js";
|
|
22
22
|
import "./server-context-DBGqh1ik.js";
|
|
23
23
|
import "./message-channel-CHRYQtAM.js";
|
|
24
24
|
import "./logging-BzvBIA3Y.js";
|
|
@@ -26,31 +26,31 @@ import "./accounts-DJIm5oPq.js";
|
|
|
26
26
|
import { a as resolveSessionTranscriptsDirForAgent, r as resolveSessionTranscriptPath } from "./paths-CLkhFRsq.js";
|
|
27
27
|
import "./redact-DAKeu7PA.js";
|
|
28
28
|
import "./tool-display-BZ1-Xio6.js";
|
|
29
|
-
import "./deliver-
|
|
30
|
-
import "./dispatcher-
|
|
31
|
-
import "./manager-
|
|
29
|
+
import "./deliver-BRCyIScz.js";
|
|
30
|
+
import "./dispatcher-DLLOC08H.js";
|
|
31
|
+
import "./manager-DQXILjKz.js";
|
|
32
32
|
import "./sqlite-cSdsHVEw.js";
|
|
33
|
-
import "./tui-formatters-
|
|
33
|
+
import "./tui-formatters-6nR_zzUg.js";
|
|
34
34
|
import "./client-56cv8SiG.js";
|
|
35
|
-
import "./call-
|
|
36
|
-
import "./login-qr-
|
|
37
|
-
import "./pairing-store-
|
|
35
|
+
import "./call-D_Z9T8iV.js";
|
|
36
|
+
import "./login-qr-CojPlIrx.js";
|
|
37
|
+
import "./pairing-store-Cc67v-m7.js";
|
|
38
38
|
import { t as formatDocsLink } from "./links-BPnP7NBH.js";
|
|
39
39
|
import { n as runCommandWithRuntime, t as resolveOptionFromCommand } from "./cli-utils-BrEIqBi3.js";
|
|
40
40
|
import { r as withProgressTotals } from "./progress-L0AJ2h6x.js";
|
|
41
|
-
import "./pi-tools.policy-
|
|
41
|
+
import "./pi-tools.policy-CiKYFXrw.js";
|
|
42
42
|
import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint } from "./prompt-style-CHcfaV8X.js";
|
|
43
|
-
import "./pairing-labels-
|
|
43
|
+
import "./pairing-labels-B6MQ_Hha.js";
|
|
44
44
|
import "./session-cost-usage-j9RNOPvV.js";
|
|
45
|
-
import "./control-service-
|
|
46
|
-
import "./channel-selection-
|
|
45
|
+
import "./control-service-_2M8iCv6.js";
|
|
46
|
+
import "./channel-selection-CmhD8GeJ.js";
|
|
47
47
|
import { n as logConfigUpdated } from "./logging-CXcMKWSI.js";
|
|
48
48
|
import "./note-CNcI64MY.js";
|
|
49
49
|
import { t as createClackPrompter } from "./clack-prompter-S0qXMAox.js";
|
|
50
|
-
import { _t as validateAnthropicSetupToken, a as normalizeAlias, c as updateConfig, d as resolvePluginProviders, i as formatTokenK, l as createVpsAwareOAuthHandlers, n as ensureFlagCompatibility, o as resolveKnownAgentId, r as formatMs, s as resolveModelTarget, t as githubCopilotLoginCommand, u as isRemoteEnvironment, v as applyAuthProfileConfig } from "./github-copilot-auth-
|
|
50
|
+
import { _t as validateAnthropicSetupToken, a as normalizeAlias, c as updateConfig, d as resolvePluginProviders, i as formatTokenK, l as createVpsAwareOAuthHandlers, n as ensureFlagCompatibility, o as resolveKnownAgentId, r as formatMs, s as resolveModelTarget, t as githubCopilotLoginCommand, u as isRemoteEnvironment, v as applyAuthProfileConfig } from "./github-copilot-auth-DbUZnSyk.js";
|
|
51
51
|
import { t as renderTable } from "./table-BwcmzWVS.js";
|
|
52
52
|
import { n as redactSecrets } from "./format-3UVGDXoH.js";
|
|
53
|
-
import { n as buildAuthHealthSummary, r as formatRemainingShort, t as DEFAULT_OAUTH_WARN_MS } from "./auth-health-
|
|
53
|
+
import { n as buildAuthHealthSummary, r as formatRemainingShort, t as DEFAULT_OAUTH_WARN_MS } from "./auth-health-CE7uy9mo.js";
|
|
54
54
|
import path from "node:path";
|
|
55
55
|
import fs from "node:fs/promises";
|
|
56
56
|
import crypto from "node:crypto";
|
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
import { D as colorize, F as CONFIG_PATH, O as isRich$1, k as theme, p as defaultRuntime } from "./entry.js";
|
|
2
|
-
import { A as parseModelRef, Et as resolveAuthProfileDisplayLabel, I as resolveModelRefFromString, N as resolveConfiguredModelRef, O as modelKey, P as resolveDefaultModelForAgent, S as resolveOpenClawAgentDir, T as buildModelAliasIndex, Tt as DEFAULT_PROVIDER, _ as ensureAuthProfileStore, ct as resolveApiKeyForProvider, g as upsertAuthProfile, h as setAuthProfileOrder, k as normalizeProviderId, lt as resolveAwsSdkEnvVarName, mt as getShellEnvAppliedKeys, n as resolveAuthProfileOrder, o as resolveProfileUnusableUntilForDisplay, ot as getCustomProviderApiKey, p as listProfilesForProvider, ut as resolveEnvApiKey, wt as DEFAULT_MODEL, x as resolveAuthStorePathForDisplay, yt as shouldEnableShellEnvFallback } from "./auth-profiles-
|
|
2
|
+
import { A as parseModelRef, Et as resolveAuthProfileDisplayLabel, I as resolveModelRefFromString, N as resolveConfiguredModelRef, O as modelKey, P as resolveDefaultModelForAgent, S as resolveOpenClawAgentDir, T as buildModelAliasIndex, Tt as DEFAULT_PROVIDER, _ as ensureAuthProfileStore, ct as resolveApiKeyForProvider, g as upsertAuthProfile, h as setAuthProfileOrder, k as normalizeProviderId, lt as resolveAwsSdkEnvVarName, mt as getShellEnvAppliedKeys, n as resolveAuthProfileOrder, o as resolveProfileUnusableUntilForDisplay, ot as getCustomProviderApiKey, p as listProfilesForProvider, ut as resolveEnvApiKey, wt as DEFAULT_MODEL, x as resolveAuthStorePathForDisplay, yt as shouldEnableShellEnvFallback } from "./auth-profiles-kZZY0kCW.js";
|
|
3
3
|
import { t as formatCliCommand } from "./command-format-ayFsmwwz.js";
|
|
4
4
|
import { x as shortenHomePath } from "./utils-Bx1WKTCk.js";
|
|
5
5
|
import "./exec-B8JKbXKW.js";
|
|
6
|
-
import { a as resolveAgentModelPrimary, c as resolveDefaultAgentId, i as resolveAgentModelFallbacksOverride, r as resolveAgentDir, s as resolveAgentWorkspaceDir, w as resolveDefaultAgentWorkspaceDir } from "./agent-scope
|
|
6
|
+
import { a as resolveAgentModelPrimary, c as resolveDefaultAgentId, i as resolveAgentModelFallbacksOverride, r as resolveAgentDir, s as resolveAgentWorkspaceDir, w as resolveDefaultAgentWorkspaceDir } from "./agent-scope-QnsNO5IK.js";
|
|
7
7
|
import "./github-copilot-token-SLWintYd.js";
|
|
8
8
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-DzEIEgHL.js";
|
|
9
|
-
import { h as parseDurationMs, i as loadConfig, o as readConfigFileSnapshot } from "./config-
|
|
9
|
+
import { h as parseDurationMs, i as loadConfig, o as readConfigFileSnapshot } from "./config-DFgdMueL.js";
|
|
10
10
|
import "./manifest-registry-C_FL6H2P.js";
|
|
11
|
-
import "./server-context-
|
|
12
|
-
import "./chrome-
|
|
13
|
-
import "./control-service-
|
|
11
|
+
import "./server-context-qxpb5Ln6.js";
|
|
12
|
+
import "./chrome-No6wyyAY.js";
|
|
13
|
+
import "./control-service-CzkpRVn7.js";
|
|
14
14
|
import "./client-BCOZgvlo.js";
|
|
15
|
-
import "./call-
|
|
15
|
+
import "./call-BUcaYa5a.js";
|
|
16
16
|
import "./message-channel-BlgPSDAh.js";
|
|
17
17
|
import { t as formatDocsLink } from "./links-CSYf2PwL.js";
|
|
18
|
-
import "./plugins-
|
|
18
|
+
import "./plugins-CO1rgH0r.js";
|
|
19
19
|
import "./logging-CfEk_PnX.js";
|
|
20
|
-
import "./accounts-
|
|
21
|
-
import { $t as formatUsageWindowSummary, Ot as runEmbeddedPiAgent, Yt as loadModelCatalog, Zt as loadProviderUsageSummary, en as resolveUsageProviderId, kn as describeFailoverError, m as openUrl } from "./loader-
|
|
20
|
+
import "./accounts-Dx4aJi3x.js";
|
|
21
|
+
import { $t as formatUsageWindowSummary, Ot as runEmbeddedPiAgent, Yt as loadModelCatalog, Zt as loadProviderUsageSummary, en as resolveUsageProviderId, kn as describeFailoverError, m as openUrl } from "./loader-BNGc0TMW.js";
|
|
22
22
|
import { r as withProgressTotals } from "./progress-Da1ehW-x.js";
|
|
23
23
|
import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint } from "./prompt-style-Dc0C5HC9.js";
|
|
24
24
|
import "./note-Ci08TSbV.js";
|
|
25
25
|
import { t as createClackPrompter } from "./clack-prompter-DuBVnTKy.js";
|
|
26
|
-
import "./manager-
|
|
26
|
+
import "./manager-DLK8bAAA.js";
|
|
27
27
|
import { a as resolveSessionTranscriptsDirForAgent, r as resolveSessionTranscriptPath } from "./paths-C27OFaz1.js";
|
|
28
|
-
import "./sqlite-
|
|
29
|
-
import "./routes-
|
|
30
|
-
import "./pi-embedded-helpers-
|
|
31
|
-
import "./deliver-
|
|
32
|
-
import "./sandbox-
|
|
33
|
-
import "./tui-formatters-
|
|
34
|
-
import "./wsl-
|
|
35
|
-
import "./skills-
|
|
36
|
-
import { v as ensureOpenClawModelsJson } from "./image-
|
|
28
|
+
import "./sqlite-DmufeXxk.js";
|
|
29
|
+
import "./routes-BUDqG0bE.js";
|
|
30
|
+
import "./pi-embedded-helpers-n7o6YJmY.js";
|
|
31
|
+
import "./deliver-BFZRT50l.js";
|
|
32
|
+
import "./sandbox-D889a-F8.js";
|
|
33
|
+
import "./tui-formatters-Cmrdmcx8.js";
|
|
34
|
+
import "./wsl-C-eVEqs4.js";
|
|
35
|
+
import "./skills-w-kwwPb2.js";
|
|
36
|
+
import { v as ensureOpenClawModelsJson } from "./image-CY3Qb62D.js";
|
|
37
37
|
import "./redact-BHmk44DI.js";
|
|
38
38
|
import "./tool-display-Ds0HgmMB.js";
|
|
39
|
-
import "./channel-selection-
|
|
39
|
+
import "./channel-selection-Dc2O9U87.js";
|
|
40
40
|
import "./session-cost-usage-LOtSLoh7.js";
|
|
41
|
-
import "./commands-
|
|
42
|
-
import "./pairing-store-
|
|
43
|
-
import "./login-qr-
|
|
41
|
+
import "./commands-DoVIOYAz.js";
|
|
42
|
+
import "./pairing-store-DKhgYwjg.js";
|
|
43
|
+
import "./login-qr-BoEpQD7W.js";
|
|
44
44
|
import { n as runCommandWithRuntime, t as resolveOptionFromCommand } from "./cli-utils-DKF-leO3.js";
|
|
45
|
-
import "./pairing-labels-
|
|
45
|
+
import "./pairing-labels-B6ViJi8r.js";
|
|
46
46
|
import { t as renderTable } from "./table--JAk2fhT.js";
|
|
47
|
-
import { _t as validateAnthropicSetupToken, a as normalizeAlias, c as updateConfig, d as resolvePluginProviders, i as formatTokenK, l as createVpsAwareOAuthHandlers, n as ensureFlagCompatibility, o as resolveKnownAgentId, r as formatMs, s as resolveModelTarget, t as githubCopilotLoginCommand, u as isRemoteEnvironment, v as applyAuthProfileConfig } from "./github-copilot-auth-
|
|
47
|
+
import { _t as validateAnthropicSetupToken, a as normalizeAlias, c as updateConfig, d as resolvePluginProviders, i as formatTokenK, l as createVpsAwareOAuthHandlers, n as ensureFlagCompatibility, o as resolveKnownAgentId, r as formatMs, s as resolveModelTarget, t as githubCopilotLoginCommand, u as isRemoteEnvironment, v as applyAuthProfileConfig } from "./github-copilot-auth-TxtjXx5m.js";
|
|
48
48
|
import { n as logConfigUpdated } from "./logging-BENMfvo0.js";
|
|
49
49
|
import { n as redactSecrets } from "./format-DmV1ee2a.js";
|
|
50
|
-
import { n as buildAuthHealthSummary, r as formatRemainingShort, t as DEFAULT_OAUTH_WARN_MS } from "./auth-health-
|
|
50
|
+
import { n as buildAuthHealthSummary, r as formatRemainingShort, t as DEFAULT_OAUTH_WARN_MS } from "./auth-health-ov3toXHm.js";
|
|
51
51
|
import path from "node:path";
|
|
52
|
-
import
|
|
52
|
+
import fsPromises from "node:fs/promises";
|
|
53
53
|
import { complete, getEnvApiKey, getModel } from "@mariozechner/pi-ai";
|
|
54
54
|
import crypto from "node:crypto";
|
|
55
55
|
import { Type } from "@sinclair/typebox";
|
|
@@ -1249,7 +1249,7 @@ async function probeTarget(params) {
|
|
|
1249
1249
|
};
|
|
1250
1250
|
const sessionId = `probe-${target.provider}-${crypto.randomUUID()}`;
|
|
1251
1251
|
const sessionFile = resolveSessionTranscriptPath(sessionId, agentId);
|
|
1252
|
-
await
|
|
1252
|
+
await fsPromises.mkdir(sessionDir, { recursive: true });
|
|
1253
1253
|
const start = Date.now();
|
|
1254
1254
|
try {
|
|
1255
1255
|
await runEmbeddedPiAgent({
|
|
@@ -1304,7 +1304,7 @@ async function runTargetsWithConcurrency(params) {
|
|
|
1304
1304
|
const agentDir = resolveOpenClawAgentDir();
|
|
1305
1305
|
const workspaceDir = resolveAgentWorkspaceDir(cfg, agentId) ?? resolveDefaultAgentWorkspaceDir();
|
|
1306
1306
|
const sessionDir = resolveSessionTranscriptsDirForAgent(agentId);
|
|
1307
|
-
await
|
|
1307
|
+
await fsPromises.mkdir(workspaceDir, { recursive: true });
|
|
1308
1308
|
let completed = 0;
|
|
1309
1309
|
const results = Array.from({ length: targets.length });
|
|
1310
1310
|
let cursor = 0;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { D as colorize, G as resolveIsNixMode, O as isRich, X as resolveStateDir, k as theme, p as defaultRuntime } from "./entry.js";
|
|
2
|
-
import "./auth-profiles-
|
|
2
|
+
import "./auth-profiles-kZZY0kCW.js";
|
|
3
3
|
import { t as formatCliCommand } from "./command-format-ayFsmwwz.js";
|
|
4
4
|
import "./utils-Bx1WKTCk.js";
|
|
5
5
|
import "./exec-B8JKbXKW.js";
|
|
6
|
-
import { n as resolveAgentConfig } from "./agent-scope
|
|
6
|
+
import { n as resolveAgentConfig } from "./agent-scope-QnsNO5IK.js";
|
|
7
7
|
import "./github-copilot-token-SLWintYd.js";
|
|
8
|
-
import { i as loadConfig, j as VERSION } from "./config-
|
|
8
|
+
import { i as loadConfig, j as VERSION } from "./config-DFgdMueL.js";
|
|
9
9
|
import "./manifest-registry-C_FL6H2P.js";
|
|
10
|
-
import { a as resolveBrowserConfig } from "./server-context-
|
|
11
|
-
import "./chrome-
|
|
12
|
-
import { n as createBrowserControlContext, r as startBrowserControlServiceFromConfig } from "./control-service-
|
|
10
|
+
import { a as resolveBrowserConfig } from "./server-context-qxpb5Ln6.js";
|
|
11
|
+
import "./chrome-No6wyyAY.js";
|
|
12
|
+
import { n as createBrowserControlContext, r as startBrowserControlServiceFromConfig } from "./control-service-CzkpRVn7.js";
|
|
13
13
|
import { t as ensureOpenClawCliOnPath } from "./path-env-CXWUFfFv.js";
|
|
14
14
|
import { Pt as loadOrCreateDeviceIdentity, t as GatewayClient } from "./client-BCOZgvlo.js";
|
|
15
15
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-BlgPSDAh.js";
|
|
16
16
|
import { t as formatDocsLink } from "./links-CSYf2PwL.js";
|
|
17
17
|
import "./logging-CfEk_PnX.js";
|
|
18
|
-
import { m as detectMime } from "./routes-
|
|
19
|
-
import { i as getMachineDisplayName, r as createBrowserRouteDispatcher, t as isWSL } from "./wsl-
|
|
18
|
+
import { m as detectMime } from "./routes-BUDqG0bE.js";
|
|
19
|
+
import { i as getMachineDisplayName, r as createBrowserRouteDispatcher, t as isWSL } from "./wsl-C-eVEqs4.js";
|
|
20
20
|
import { a as evaluateShellAllowlist, c as normalizeExecApprovals, d as requiresExecApproval, f as resolveExecApprovals, g as saveExecApprovals, h as resolveSafeBins, i as evaluateExecAllowlist, l as readExecApprovalsSnapshot, m as resolveExecApprovalsSocketPath, n as analyzeArgvCommand, r as ensureExecApprovals, t as addAllowlistEntry, u as recordAllowlistUse } from "./exec-approvals-BrCstKZw.js";
|
|
21
21
|
import { c as formatNodeServiceDescription, g as resolveNodeWindowsTaskName, h as resolveNodeSystemdServiceName, m as resolveNodeLaunchAgentLabel } from "./constants-DuoCkWRh.js";
|
|
22
|
-
import { _ as resolveNodeProgramArguments, d as renderSystemNodeWarning, f as resolvePreferredNodePath, o as resolveGatewayDevMode, p as resolveSystemNodeInfo, r as isGatewayDaemonRuntime, s as buildNodeServiceEnvironment, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-
|
|
23
|
-
import { s as resolveGatewayLogPaths } from "./service-
|
|
24
|
-
import { r as isSystemdUserServiceAvailable } from "./systemd-
|
|
25
|
-
import { d as createNullWriter, f as emitDaemonActionJson, i as parsePort, n as formatRuntimeStatus, u as buildDaemonServiceSnapshot } from "./shared-
|
|
22
|
+
import { _ as resolveNodeProgramArguments, d as renderSystemNodeWarning, f as resolvePreferredNodePath, o as resolveGatewayDevMode, p as resolveSystemNodeInfo, r as isGatewayDaemonRuntime, s as buildNodeServiceEnvironment, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-DLtjWz00.js";
|
|
23
|
+
import { s as resolveGatewayLogPaths } from "./service-CJ_9zG2c.js";
|
|
24
|
+
import { r as isSystemdUserServiceAvailable } from "./systemd-D8TmVYdf.js";
|
|
25
|
+
import { d as createNullWriter, f as emitDaemonActionJson, i as parsePort, n as formatRuntimeStatus, u as buildDaemonServiceSnapshot } from "./shared-BFnl2Cjh.js";
|
|
26
26
|
import { n as renderSystemdUnavailableHints } from "./systemd-hints-9qpENznv.js";
|
|
27
|
-
import { t as resolveNodeService } from "./node-service-
|
|
27
|
+
import { t as resolveNodeService } from "./node-service-CkPOvRv0.js";
|
|
28
28
|
import { spawn } from "node:child_process";
|
|
29
29
|
import path from "node:path";
|
|
30
30
|
import fs from "node:fs";
|
|
31
|
-
import
|
|
31
|
+
import fsPromises from "node:fs/promises";
|
|
32
32
|
import crypto from "node:crypto";
|
|
33
33
|
import net from "node:net";
|
|
34
34
|
|
|
@@ -52,7 +52,7 @@ function normalizeConfig(config) {
|
|
|
52
52
|
async function loadNodeHostConfig() {
|
|
53
53
|
const filePath = resolveNodeHostConfigPath();
|
|
54
54
|
try {
|
|
55
|
-
const raw = await
|
|
55
|
+
const raw = await fsPromises.readFile(filePath, "utf8");
|
|
56
56
|
return normalizeConfig(JSON.parse(raw));
|
|
57
57
|
} catch {
|
|
58
58
|
return null;
|
|
@@ -60,11 +60,11 @@ async function loadNodeHostConfig() {
|
|
|
60
60
|
}
|
|
61
61
|
async function saveNodeHostConfig(config) {
|
|
62
62
|
const filePath = resolveNodeHostConfigPath();
|
|
63
|
-
await
|
|
63
|
+
await fsPromises.mkdir(path.dirname(filePath), { recursive: true });
|
|
64
64
|
const payload = JSON.stringify(config, null, 2);
|
|
65
|
-
await
|
|
65
|
+
await fsPromises.writeFile(filePath, `${payload}\n`, { mode: 384 });
|
|
66
66
|
try {
|
|
67
|
-
await
|
|
67
|
+
await fsPromises.chmod(filePath, 384);
|
|
68
68
|
} catch {}
|
|
69
69
|
}
|
|
70
70
|
async function ensureNodeHostConfig() {
|
|
@@ -274,10 +274,10 @@ function collectBrowserProxyPaths(payload) {
|
|
|
274
274
|
return [...paths];
|
|
275
275
|
}
|
|
276
276
|
async function readBrowserProxyFile(filePath) {
|
|
277
|
-
const stat = await
|
|
277
|
+
const stat = await fsPromises.stat(filePath).catch(() => null);
|
|
278
278
|
if (!stat || !stat.isFile()) return null;
|
|
279
279
|
if (stat.size > BROWSER_PROXY_MAX_FILE_BYTES) throw new Error(`browser proxy file exceeds ${Math.round(BROWSER_PROXY_MAX_FILE_BYTES / (1024 * 1024))}MB`);
|
|
280
|
-
const buffer = await
|
|
280
|
+
const buffer = await fsPromises.readFile(filePath);
|
|
281
281
|
const mimeType = await detectMime({
|
|
282
282
|
buffer,
|
|
283
283
|
filePath
|
|
@@ -2,27 +2,27 @@ import { d as resolveIsNixMode, g as resolveStateDir } from "./paths-DVBShlw6.js
|
|
|
2
2
|
import { I as colorize, L as isRich, R as theme, c as defaultRuntime } from "./subsystem-DPnkvS73.js";
|
|
3
3
|
import "./utils-DMuwyz_q.js";
|
|
4
4
|
import "./exec-DFOtZbI0.js";
|
|
5
|
-
import { n as resolveAgentConfig } from "./agent-scope-
|
|
6
|
-
import "./model-selection-
|
|
5
|
+
import { n as resolveAgentConfig } from "./agent-scope-C7vPz4km.js";
|
|
6
|
+
import "./model-selection-9N1nn0U_.js";
|
|
7
7
|
import "./github-copilot-token-BW-SEg7E.js";
|
|
8
8
|
import { t as formatCliCommand } from "./command-format-ChfKqObn.js";
|
|
9
9
|
import "./boolean-BgXe2hyu.js";
|
|
10
10
|
import "./env-B5YXooWp.js";
|
|
11
|
-
import { i as loadConfig, j as VERSION } from "./config-
|
|
11
|
+
import { i as loadConfig, j as VERSION } from "./config-yg3MNzIZ.js";
|
|
12
12
|
import "./manifest-registry-BMwHTztn.js";
|
|
13
13
|
import "./chrome-BKkyn8EY.js";
|
|
14
|
-
import { l as detectMime } from "./routes-
|
|
14
|
+
import { l as detectMime } from "./routes-dtswuSI-.js";
|
|
15
15
|
import { i as resolveBrowserConfig } from "./server-context-DBGqh1ik.js";
|
|
16
16
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-CHRYQtAM.js";
|
|
17
17
|
import "./logging-BzvBIA3Y.js";
|
|
18
|
-
import { i as getMachineDisplayName, n as isWSL, t as createBrowserRouteDispatcher } from "./dispatcher-
|
|
18
|
+
import { i as getMachineDisplayName, n as isWSL, t as createBrowserRouteDispatcher } from "./dispatcher-DLLOC08H.js";
|
|
19
19
|
import { Pt as loadOrCreateDeviceIdentity, t as GatewayClient } from "./client-56cv8SiG.js";
|
|
20
20
|
import { t as formatDocsLink } from "./links-BPnP7NBH.js";
|
|
21
21
|
import { a as evaluateShellAllowlist, c as normalizeExecApprovals, d as requiresExecApproval, f as resolveExecApprovals, g as saveExecApprovals, h as resolveSafeBins, i as evaluateExecAllowlist, l as readExecApprovalsSnapshot, m as resolveExecApprovalsSocketPath, n as analyzeArgvCommand, r as ensureExecApprovals, t as addAllowlistEntry, u as recordAllowlistUse } from "./exec-approvals-BYIyMQfG.js";
|
|
22
|
-
import { n as createBrowserControlContext, r as startBrowserControlServiceFromConfig } from "./control-service-
|
|
22
|
+
import { n as createBrowserControlContext, r as startBrowserControlServiceFromConfig } from "./control-service-_2M8iCv6.js";
|
|
23
23
|
import { c as formatNodeServiceDescription, g as resolveNodeWindowsTaskName, h as resolveNodeSystemdServiceName, m as resolveNodeLaunchAgentLabel } from "./constants-D1op9uGI.js";
|
|
24
24
|
import { t as ensureOpenClawCliOnPath } from "./path-env-IQpWNtKc.js";
|
|
25
|
-
import { d as renderSystemNodeWarning, f as resolvePreferredNodePath, h as resolveNodeProgramArguments, o as resolveGatewayDevMode, p as resolveSystemNodeInfo, r as isGatewayDaemonRuntime, s as buildNodeServiceEnvironment, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-
|
|
25
|
+
import { d as renderSystemNodeWarning, f as resolvePreferredNodePath, h as resolveNodeProgramArguments, o as resolveGatewayDevMode, p as resolveSystemNodeInfo, r as isGatewayDaemonRuntime, s as buildNodeServiceEnvironment, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-q4XITAGg.js";
|
|
26
26
|
import { s as resolveGatewayLogPaths } from "./service-gVhgRoT3.js";
|
|
27
27
|
import { r as isSystemdUserServiceAvailable } from "./systemd-BBNP9bBm.js";
|
|
28
28
|
import { t as resolveNodeService } from "./node-service-D-Vn9yxc.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as NODE_SERVICE_MARKER, g as resolveNodeWindowsTaskName, h as resolveNodeSystemdServiceName, i as NODE_SERVICE_KIND, m as resolveNodeLaunchAgentLabel, o as NODE_WINDOWS_TASK_SCRIPT_NAME } from "./constants-DuoCkWRh.js";
|
|
2
|
-
import { t as resolveGatewayService } from "./service-
|
|
2
|
+
import { t as resolveGatewayService } from "./service-CJ_9zG2c.js";
|
|
3
3
|
|
|
4
4
|
//#region src/daemon/node-service.ts
|
|
5
5
|
function withNodeServiceEnv(env) {
|