activeclaw 2026.2.12 → 2026.2.13
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/CHANGELOG.md +37 -0
- package/dist/{accounts-DbzMEfKN.js → accounts-DCDeFTra.js} +2 -2
- package/dist/{accounts-DimKrt7j.js → accounts-DeqIQjo1.js} +2 -2
- package/dist/{acp-cli-Cs1ai4XO.js → acp-cli-CeYI4XRd.js} +15 -16
- package/dist/{acp-cli-oV2dodPg.js → acp-cli-rNbGXICg.js} +14 -15
- package/dist/{agent-BndgzkUe.js → agent-BvNJF5QL.js} +19 -16
- package/dist/{agent-DZvDwqnd.js → agent-CyMxTyrG.js} +20 -17
- package/dist/{agent-scope-rXQ7WARN.js → agent-scope-BIEhVP4_.js} +1 -1
- package/dist/{agent-scope---6LLHj0.js → agent-scope-CQCus0rI.js} +2 -2
- package/dist/{agent-scope-RCSw6gHy.js → agent-scope-CsRbLH4l.js} +3 -3
- package/dist/{agent-scope-CN8DM4Xb.js → agent-scope-DPIFau3f.js} +1 -1
- package/dist/{audio-preflight-SZRntkxo.js → audio-preflight-BU8W7uxc.js} +10 -10
- package/dist/{audio-preflight-ClVNINDs.js → audio-preflight-CGsumMzb.js} +10 -10
- package/dist/{audio-preflight-txAP3v-C.js → audio-preflight-SLmkJI6-.js} +22 -22
- package/dist/{audio-preflight-BP6s-UPp.js → audio-preflight-jZc5mFCZ.js} +23 -23
- package/dist/{audit-CQzrm61N.js → audit-Dmww_503.js} +70 -18
- package/dist/{audit-DMH3CSXY.js → audit-wPu26VMb.js} +72 -20
- package/dist/{tailscale-DU6DgqVy.js → auth-9x3lqfIY.js} +208 -3
- package/dist/{tailscale-DHfcfRCx.js → auth-CQNl_IaI.js} +190 -3
- package/dist/{auth-health-BB3e3OmN.js → auth-health-C4L4FGBA.js} +1 -1
- package/dist/{auth-health-zZ9dnQGC.js → auth-health-j6epgQbq.js} +1 -1
- package/dist/{auth-profiles-CcJ3hrog.js → auth-profiles-ByNs3eEm.js} +60 -22
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +19 -16
- package/dist/bundled/session-memory/handler.js +16 -15
- package/dist/{call-Yxns4CVq.js → call-DVYCIV8m.js} +5 -5
- package/dist/{call-C9az806y.js → call-SolyGS1r.js} +4 -4
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-options-CjXPwMWu.js → channel-options-BwC2yQcR.js} +4 -4
- package/dist/{channel-options-CX4iYQfR.js → channel-options-Cq9BVDkP.js} +7 -7
- package/dist/{channel-selection-BoQ7GurB.js → channel-selection-D4D6ImhN.js} +2 -2
- package/dist/{channel-selection-C78IwbD-.js → channel-selection-MZAHm4U8.js} +2 -2
- package/dist/{channels-cli-DUHsmX3q.js → channels-cli-9Dsk9Qm7.js} +53 -51
- package/dist/{channels-cli-BXMQPB4x.js → channels-cli-BJUppQll.js} +52 -50
- package/dist/{channels-status-issues-Ca9--azp.js → channels-status-issues-D7GSV1GS.js} +1 -1
- package/dist/{channels-status-issues-CbULFg2X.js → channels-status-issues-DDAWeT-6.js} +1 -1
- package/dist/{chrome-svgmQ8T_.js → chrome-BfB6JdKF.js} +2 -1
- package/dist/{chrome-juQxt0zf.js → chrome-Cvr-57lg.js} +4 -3
- package/dist/{chrome-BCPPeLQ6.js → chrome-DL0avO8n.js} +2 -1
- package/dist/{chrome-yIKmOzCO.js → chrome-foEwx3lN.js} +5 -4
- package/dist/{clack-prompter-Dmvcu3gn.js → clack-prompter-Bz3Mmcl-.js} +5 -5
- package/dist/{clack-prompter-DuBVnTKy.js → clack-prompter-ChCGXfyt.js} +4 -4
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-FdxAcu_y.js → cli-ZR9ugUBX.js} +42 -40
- package/dist/{cli-By331Q9f.js → cli-miPe4Ujz.js} +42 -40
- package/dist/{client-B0_GiCjB.js → client-BrYfyoDK.js} +52 -3
- package/dist/{client-D7wrC1Ug.js → client-CTwXnRl7.js} +53 -4
- package/dist/{command-format-ayFsmwwz.js → command-format-Bxe0mWee.js} +1 -1
- package/dist/{command-options-BSDiKuyX.js → command-options-BvgxzPbK.js} +4 -4
- package/dist/{commands-BG25qku5.js → commands-BX_OIIVR.js} +4 -4
- package/dist/{completion-cli-C4zxjkC1.js → completion-cli-CR77-jyv.js} +3 -3
- package/dist/{completion-cli-DECEgBWR.js → completion-cli-DnjpxAag.js} +29 -29
- package/dist/{config-B7sno9eI.js → config-Bdhomfei.js} +15 -6
- package/dist/{config-BuF7vm-v.js → config-BvMsmctM.js} +13 -4
- package/dist/{config-D50SQVar.js → config-QYrbd7x7.js} +13 -4
- package/dist/{config-DH9TLUNc.js → config-aFQssWKX.js} +15 -6
- package/dist/{config-guard-DPxxY1iw.js → config-guard-CljaSxJd.js} +39 -39
- package/dist/{configure-BZQ9uSVX.js → configure-BXLiucXo.js} +19 -19
- package/dist/{configure-Cg5IKSUy.js → configure-BYPqXzGZ.js} +19 -19
- package/dist/control-auth-8Cf4WXpR.js +54 -0
- package/dist/control-auth-DBCu3qyv.js +54 -0
- package/dist/{control-service-CBlMVTRu.js → control-service-B5KnPqGP.js} +11 -5
- package/dist/{control-service-B2er20Ke.js → control-service-DKnttEus.js} +10 -4
- package/dist/{cron-cli-B2Zwhy_r.js → cron-cli-D7BRjDv2.js} +17 -17
- package/dist/{cron-cli-EaRUVd0p.js → cron-cli-z1zk_FXQ.js} +16 -16
- package/dist/{daemon-cli-CVNzObIF.js → daemon-cli-BDkU2ocb.js} +18 -18
- package/dist/{daemon-cli-DF6Rxjy6.js → daemon-cli-cNSF93-v.js} +19 -19
- package/dist/{daemon-runtime-BHF5NjQ7.js → daemon-runtime-B0tg_LsX.js} +2 -2
- package/dist/{daemon-runtime-B05PME1z.js → daemon-runtime-Bsjeut6m.js} +3 -3
- package/dist/{deliver-DzcxEcza.js → deliver-CIU9Npgs.js} +306 -12
- package/dist/{deliver-COf5XFo_.js → deliver-DYYCo1G7.js} +302 -8
- package/dist/{deliver-B1jsU2r7.js → deliver-LsxKETro.js} +306 -12
- package/dist/{deliver-CLwC284e.js → deliver-xUU3mGHo.js} +302 -8
- package/dist/{deps-Cva7QM_t.js → deps-QSwGcoNZ.js} +2 -2
- package/dist/{deps-B6602Wid.js → deps-lAAA2zYI.js} +2 -2
- package/dist/{devices-cli-DPg_4aW8.js → devices-cli-BG3-2oqt.js} +13 -13
- package/dist/{devices-cli-D8K3hZR5.js → devices-cli-VIQtOvt_.js} +13 -13
- package/dist/{directory-cli-OGBSVKAZ.js → directory-cli-BCJwjVC0.js} +15 -15
- package/dist/{directory-cli-Bn47fFX7.js → directory-cli-jYzZ02gk.js} +14 -14
- package/dist/{dispatcher-BHsNwFe-.js → dispatcher-DY51b-Zc.js} +2 -2
- package/dist/{dns-cli-DmTHXgwU.js → dns-cli-DHIiMJjS.js} +11 -11
- package/dist/{dns-cli-kk2rysJh.js → dns-cli-pZlv87Ib.js} +11 -11
- package/dist/{docs-cli-CB77CeM4.js → docs-cli-2JDiwfzP.js} +7 -7
- package/dist/{docs-cli-DUcyw0X0.js → docs-cli-BhkYqoIQ.js} +6 -6
- package/dist/{doctor-DwqdkfPa.js → doctor-Bf8EhNtA.js} +33 -33
- package/dist/{doctor-BZfxDGUg.js → doctor-sYG5V4Co.js} +32 -32
- package/dist/entry.js +36 -14
- package/dist/{env-DE9xvYOL.js → env-ONzUVAG2.js} +1 -1
- package/dist/{exec-4WHuOniw.js → exec-B8lXct-k.js} +31 -13
- package/dist/{exec-B8JKbXKW.js → exec-CACT5OAW.js} +1 -1
- package/dist/{exec-D12IZYtJ.js → exec-CJFFoM7H.js} +31 -13
- package/dist/{exec-DXtR2fhb.js → exec-YIosokWE.js} +1 -1
- package/dist/{exec-approvals-cli-GizapOX5.js → exec-approvals-cli-7LH0lwhO.js} +19 -19
- package/dist/{exec-approvals-cli-BWO0Rs-a.js → exec-approvals-cli-apGnQbpj.js} +19 -19
- package/dist/extensionAPI.js +1108 -661
- package/dist/{fetch-CqZP8jwB.js → fetch-DmiOpALK.js} +5 -3
- package/dist/{fetch-timeout-B2KlHXi3.js → fetch-timeout-BEtUjM1S.js} +5 -3
- package/dist/{fetch-timeout-ohY5QmsW.js → fetch-timeout-DEoXG_SF.js} +5 -3
- package/dist/{fetch-timeout-4UKsdtE1.js → fetch-timeout-DTK9vxex.js} +5 -3
- package/dist/{gateway-cli-Bbd1Xbsc.js → gateway-cli-DUdYxlZS.js} +315 -103
- package/dist/{gateway-cli-PR1S0BTe.js → gateway-cli-DbvWmE-9.js} +314 -102
- package/dist/{gateway-rpc-8gue7Qjt.js → gateway-rpc-BByb2Snz.js} +3 -3
- package/dist/{gateway-rpc-DjuxyOm-.js → gateway-rpc-wXSCUZXj.js} +3 -3
- package/dist/{github-copilot-auth-B3chCDfc.js → github-copilot-auth-D7ewvpMd.js} +16 -8
- package/dist/{github-copilot-auth-Cm2SB8Qf.js → github-copilot-auth-DDispnyz.js} +16 -8
- package/dist/{github-copilot-token-SLWintYd.js → github-copilot-token-Cfs0Wxr8.js} +1 -1
- package/dist/{gmail-setup-utils-Cgh0ptgA.js → gmail-setup-utils-Cfns8TQx.js} +3 -3
- package/dist/{gmail-setup-utils-WDyf1gTU.js → gmail-setup-utils-DJb-_5kO.js} +4 -4
- package/dist/{health-format-C0C_Apce.js → health-format-KGPokKJH.js} +68 -28
- package/dist/{health-format-gLMfE2wf.js → health-format-LZDxu3rv.js} +67 -27
- package/dist/{help-format-5iAL_46a.js → help-format-C48TXngO.js} +1 -1
- package/dist/{help-format-DUy1KRxq.js → help-format-R5fLToDw.js} +1 -1
- package/dist/{hooks-cli-CEN1h1ya.js → hooks-cli-CT8JCRkH.js} +46 -44
- package/dist/{hooks-cli-DrchIqSi.js → hooks-cli-S1MKumJO.js} +47 -45
- package/dist/{hooks-status-Cgy6AtQk.js → hooks-status-Cw0xD8Lt.js} +3 -3
- package/dist/{hooks-status--xVLpAXz.js → hooks-status-D9MhwHRp.js} +3 -3
- package/dist/{image-Dkawt9Kg.js → image-Brk1sJbw.js} +4 -4
- package/dist/{image-DI9s9eEx.js → image-C4Nn2p3e.js} +5 -5
- package/dist/{image-LxFvu0wL.js → image-DgtfXMcX.js} +5 -5
- package/dist/{image-B4mDPdyz.js → image-RKwc3fsL.js} +4 -4
- package/dist/index.js +83 -83
- package/dist/{installs-NS0VMPN7.js → installs-CrLcWYHe.js} +4 -4
- package/dist/{installs-DA-eSN1B.js → installs-DscWb9b9.js} +5 -5
- package/dist/{links-CV4oki2u.js → links-B8LAzWwg.js} +1 -1
- package/dist/{links-7M-j83As.js → links-Eax1UO3w.js} +1 -1
- package/dist/llm-slug-generator.js +15 -15
- package/dist/{loader-Caow9TPA.js → loader-KjT074JR.js} +1105 -762
- package/dist/{logging-CeHn2itV.js → logging-BAyPwvdH.js} +1 -1
- package/dist/{logging-D0MyqUlV.js → logging-CRq4h04P.js} +2 -2
- package/dist/{login-qr-Xx8yJrSc.js → login-qr-B6ZgAuIf.js} +5 -5
- package/dist/{login-qr-CoskdtvN.js → login-qr-Bua-p0nG.js} +2 -2
- package/dist/{login-qr-CAk9D-FM.js → login-qr-CuvemJj4.js} +6 -6
- package/dist/{login-qr-kUyMWXV1.js → login-qr-Djr1JfIf.js} +2 -2
- package/dist/{logs-cli-B476pzJS.js → logs-cli-9IAV7rWY.js} +15 -15
- package/dist/{logs-cli-BQRUI_PO.js → logs-cli-EiKzUFPa.js} +14 -14
- package/dist/{manager-CBApH7eR.js → manager-BIMh_eSm.js} +5 -5
- package/dist/{manager-CyJH6WMg.js → manager-CwinWQoz.js} +5 -5
- package/dist/{manager-DScY_ZTT.js → manager-DkqF1GiK.js} +7 -7
- package/dist/{manager-DseK7RWj.js → manager-T1XfGchB.js} +8 -8
- package/dist/{manifest-registry-DFckk-L8.js → manifest-registry-CQhdnDBZ.js} +2 -2
- package/dist/{manifest-registry-BTgLN_W2.js → manifest-registry-u0okVSkU.js} +2 -2
- package/dist/{message-channel-0717wOz-.js → message-channel-BLi2a6Yw.js} +1 -1
- package/dist/{message-channel-BlgPSDAh.js → message-channel-C_MmebBt.js} +1 -1
- package/dist/{model-auth-CbqRVYRp.js → model-auth-CabXIF6O.js} +57 -19
- package/dist/{model-selection-unMJyUIE.js → model-selection-BLuqsGVB.js} +59 -21
- package/dist/{model-selection-B9Y7dKQd.js → model-selection-C1GmkTAV.js} +57 -19
- package/dist/{models-cli-B1cLGcRz.js → models-cli-9jmDv-h3.js} +50 -48
- package/dist/{models-cli-D7sChCi6.js → models-cli-zS9rtWz8.js} +48 -46
- package/dist/{node-cli-ic2C1xs2.js → node-cli-CrpTxTTs.js} +26 -24
- package/dist/{node-cli-CS3KwBh1.js → node-cli-wemUMCg-.js} +25 -23
- package/dist/{node-service-D_Cdq1JI.js → node-service-C8DTHTMg.js} +2 -2
- package/dist/{node-service-_vgO5xR-.js → node-service-WQuEKz6W.js} +1 -1
- package/dist/{nodes-cli-CipcvVMc.js → nodes-cli-BaU2SIFw.js} +16 -16
- package/dist/{nodes-cli-B1meaW7S.js → nodes-cli-Dx23D72n.js} +16 -16
- package/dist/{nodes-screen-N-4_0VIu.js → nodes-screen-C0IuBqUL.js} +1 -1
- package/dist/{note-CAM9PbSJ.js → note-BhRSeNeu.js} +2 -2
- package/dist/{note-Ci08TSbV.js → note-hhtubr2j.js} +1 -1
- package/dist/{onboard-channels-DMcOT0dj.js → onboard-channels-C501x8GI.js} +8 -8
- package/dist/{onboard-channels-CsT3E4bT.js → onboard-channels-Dxzroasd.js} +8 -8
- package/dist/{onboard-skills-DoxkpnEU.js → onboard-skills-DV0Qzvjj.js} +19 -19
- package/dist/{onboard-skills-D-BrCoRN.js → onboard-skills-rlBHcu3Q.js} +18 -18
- package/dist/{onboarding-B92952fz.js → onboarding-CN-EDLjd.js} +34 -34
- package/dist/{pairing-cli-BDUJ5VoX.js → pairing-cli-CDHG4xuI.js} +15 -15
- package/dist/{pairing-cli-0wbU1u8d.js → pairing-cli-CQP34Dlx.js} +14 -14
- package/dist/{pairing-labels-3o3QO3Qn.js → pairing-labels-B6CN0SNH.js} +1 -1
- package/dist/{pairing-labels-Bin1K7_f.js → pairing-labels-CgNHnjzT.js} +1 -1
- package/dist/{pairing-store-CL4rJ7m7.js → pairing-store-CmlRVqOz.js} +2 -2
- package/dist/{pairing-store-fIWI3pXG.js → pairing-store-Dp5_JGnG.js} +3 -3
- package/dist/{path-env-CXWUFfFv.js → path-env-CLvYNwtL.js} +1 -1
- package/dist/{path-env-C5FR_Eay.js → path-env-CaYUVIML.js} +2 -2
- package/dist/{paths-DwKNqk_S.js → paths-B0a4ywSO.js} +30 -5
- package/dist/{paths-RITJT4UY.js → paths-B49s6UZQ.js} +30 -5
- package/dist/{paths-CB2fqqbX.js → paths-D0O87MfH.js} +30 -5
- package/dist/{paths-IivnSNkP.js → paths-DLINmNFQ.js} +31 -6
- package/dist/{pi-embedded-DhYItk8O.js → pi-embedded-Ctrt2kz0.js} +1109 -662
- package/dist/{pi-embedded-helpers-CmftU5Zj.js → pi-embedded-helpers-CMKLjW6X.js} +8 -5
- package/dist/{pi-embedded-helpers-CfXnSIFx.js → pi-embedded-helpers-CUzTc1v6.js} +170 -19
- package/dist/{pi-embedded-helpers-Uan-3N1T.js → pi-embedded-helpers-DfwkwPYD.js} +7 -4
- package/dist/{pi-embedded-helpers-Bri9tk9g.js → pi-embedded-helpers-WDwx99UA.js} +170 -19
- package/dist/{pi-tools.policy-CJFi1sny.js → pi-tools.policy-BpsROZbz.js} +4 -4
- package/dist/{plugin-auto-enable-BY4CqJbD.js → plugin-auto-enable-Bqhc3w5n.js} +5 -5
- package/dist/{plugin-auto-enable-DbQrtQjL.js → plugin-auto-enable-PW76g_PJ.js} +5 -5
- package/dist/plugin-sdk/agents/pi-embedded-runner/run/params.d.ts +2 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/run/types.d.ts +2 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/types.d.ts +15 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.handlers.tools.d.ts +1 -1
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.handlers.types.d.ts +2 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.types.d.ts +2 -0
- package/dist/plugin-sdk/agents/session-tool-result-guard-wrapper.d.ts +2 -0
- package/dist/plugin-sdk/agents/session-tool-result-guard.d.ts +4 -0
- package/dist/plugin-sdk/agents/tools/agent-step.d.ts +3 -0
- package/dist/plugin-sdk/agents/usage.d.ts +1 -0
- package/dist/plugin-sdk/auto-reply/reply/reply-reference.d.ts +1 -1
- package/dist/plugin-sdk/auto-reply/reply/session-run-accounting.d.ts +11 -0
- package/dist/plugin-sdk/auto-reply/reply/session-usage.d.ts +8 -0
- package/dist/plugin-sdk/browser/control-auth.d.ts +13 -0
- package/dist/plugin-sdk/channels/plugins/onboarding/signal.d.ts +1 -0
- package/dist/plugin-sdk/cli/prompt.d.ts +1 -0
- package/dist/plugin-sdk/commands/agent/types.d.ts +2 -0
- package/dist/plugin-sdk/config/sessions/paths.d.ts +7 -2
- package/dist/plugin-sdk/config/types.agents.d.ts +2 -0
- package/dist/plugin-sdk/config/types.discord.d.ts +5 -0
- package/dist/plugin-sdk/config/types.gateway.d.ts +15 -0
- package/dist/plugin-sdk/config/types.hooks.d.ts +15 -0
- package/dist/plugin-sdk/config/zod-schema.agents.d.ts +1 -0
- package/dist/plugin-sdk/config/zod-schema.d.ts +11 -0
- package/dist/plugin-sdk/config/zod-schema.providers-core.d.ts +9 -0
- package/dist/plugin-sdk/config/zod-schema.providers.d.ts +4 -0
- package/dist/plugin-sdk/discord/monitor/allow-list.d.ts +15 -0
- package/dist/plugin-sdk/discord/send.types.d.ts +3 -0
- package/dist/plugin-sdk/gateway/auth.d.ts +36 -0
- package/dist/plugin-sdk/gateway/protocol/schema/agent.d.ts +6 -0
- package/dist/plugin-sdk/gateway/session-utils.fs.d.ts +3 -1
- package/dist/plugin-sdk/index.js +295 -99
- package/dist/plugin-sdk/infra/binaries.d.ts +3 -0
- package/dist/plugin-sdk/infra/heartbeat-runner.d.ts +1 -0
- package/dist/plugin-sdk/infra/net/fetch-guard.d.ts +1 -0
- package/dist/plugin-sdk/infra/net/ssrf.d.ts +1 -0
- package/dist/plugin-sdk/infra/tailscale.d.ts +34 -0
- package/dist/plugin-sdk/infra/tmp-openclaw-dir.d.ts +10 -0
- package/dist/plugin-sdk/logging/logger.d.ts +1 -1
- package/dist/plugin-sdk/media/input-files.d.ts +5 -0
- package/dist/plugin-sdk/routing/resolve-route.d.ts +3 -1
- package/dist/plugin-sdk/security/external-content.d.ts +1 -1
- package/dist/plugin-sdk/security/secret-equal.d.ts +1 -0
- package/dist/plugin-sdk/sessions/input-provenance.d.ts +16 -0
- package/dist/plugin-sdk/signal/monitor/event-handler.types.d.ts +8 -0
- package/dist/plugin-sdk/signal/monitor/mentions.d.ts +2 -0
- package/dist/{plugins-3GyCj5KL.js → plugins-4Hqd1WGf.js} +3 -3
- package/dist/{plugins-BL9lIXSA.js → plugins-X7d_tfTE.js} +4 -4
- package/dist/{plugins-cli-Ce7VsvZh.js → plugins-cli-Bgku3EGj.js} +253 -46
- package/dist/{plugins-cli-e9gUebMd.js → plugins-cli-CVToH3if.js} +254 -47
- package/dist/{ports-DupIRXQ0.js → ports-qkt29rdC.js} +2 -2
- package/dist/{program-u22vbFpH.js → program-Cf7lkBur.js} +82 -82
- package/dist/{progress-g9R--HZD.js → progress-C9kngsTD.js} +1 -1
- package/dist/{progress-Da1ehW-x.js → progress-DWqhRakV.js} +1 -1
- package/dist/{prompt-style-Dc0C5HC9.js → prompt-style-BFH5D5LN.js} +1 -1
- package/dist/{prompt-style-lmJDcgtA.js → prompt-style-CIbmaxSa.js} +1 -1
- package/dist/{pw-ai-C43wv1ZF.js → pw-ai-8mdv3h-d.js} +7 -6
- package/dist/{pw-ai-DTZVjndL.js → pw-ai-CM1IsSgZ.js} +5 -5
- package/dist/{pw-ai-zVebjrSG.js → pw-ai-FGoRVblI.js} +3 -3
- package/dist/{pw-ai-CWrnJ98b.js → pw-ai-sS1fRKW_.js} +3 -3
- package/dist/{qmd-manager-NPD5Yh_4.js → qmd-manager-C67Fc8aN.js} +4 -4
- package/dist/{qmd-manager-ozZ933qc.js → qmd-manager-CXVbfg99.js} +7 -7
- package/dist/{qmd-manager-DBCZ1sio.js → qmd-manager-RMRE8Tqt.js} +6 -6
- package/dist/{qmd-manager-a9Bt0405.js → qmd-manager-pyc_MTIe.js} +4 -4
- package/dist/{register.subclis-BpX3ulH1.js → register.subclis-C02e4zuJ.js} +28 -28
- package/dist/{reply-m467_fOC.js → reply-DICXkh_C.js} +911 -568
- package/dist/{routes-82Ywfho6.js → routes-CmOI1hIH.js} +29 -11
- package/dist/{routes-BqxA3ZYr.js → routes-DewK5tq2.js} +29 -12
- package/dist/{rpc-DcGBG-Fp.js → rpc-DHr30euf.js} +3 -3
- package/dist/{rpc-CfdBHlnp.js → rpc-T300F8zI.js} +3 -3
- package/dist/{run-main-aolvSfj3.js → run-main-C5wpthq1.js} +84 -84
- package/dist/{runner-C1G8RFWl.js → runner-CY0nmVme.js} +9 -9
- package/dist/{runner-BCBs8JKA.js → runner-Cfm5nTMc.js} +6 -6
- package/dist/{runner-CInKPsiP.js → runner-D_dujMod.js} +8 -8
- package/dist/{runner-Cwfn-VOM.js → runner-DrGYLH5K.js} +6 -6
- package/dist/{sandbox-B0K9e6Fw.js → sandbox-BKYnhYQH.js} +23 -15
- package/dist/{sandbox-BW8Xnkw1.js → sandbox-Bhjnh1Xg.js} +21 -13
- package/dist/{sandbox-cli-mKCs2J0i.js → sandbox-cli-DBsAjZJN.js} +20 -20
- package/dist/{sandbox-cli-BD5LkZ0B.js → sandbox-cli-rV9LtFeu.js} +19 -19
- package/dist/{security-cli-kgI4soGy.js → security-cli-BIwJM_rs.js} +27 -27
- package/dist/{security-cli-kz8TiyqU.js → security-cli-BRjny8Yu.js} +26 -26
- package/dist/{server-context-fX4xiYRh.js → server-context-BGpGs3qd.js} +7 -7
- package/dist/{server-context-Lb-eUZG_.js → server-context-Cl0U0vE3.js} +5 -5
- package/dist/{server-node-events-Dx18uVrH.js → server-node-events-CBfTbiTA.js} +45 -43
- package/dist/{server-node-events-KqZMN30F.js → server-node-events-QCvh8EgI.js} +45 -43
- package/dist/{service-DZMXgMra.js → service--nPk7DvT.js} +3 -3
- package/dist/{service-DNcIZ5Kp.js → service-99RDXwX4.js} +2 -2
- package/dist/{service-audit-0WLGnoNT.js → service-audit-DnLmRGQt.js} +4 -4
- package/dist/{service-audit-uhZSlxeb.js → service-audit-ckBaRCVC.js} +3 -3
- package/dist/{session-cost-usage-HU4OeRgw.js → session-cost-usage-D7HuoSSD.js} +10 -8
- package/dist/{session-cost-usage-CL8gnHRN.js → session-cost-usage-D9hHANWI.js} +10 -8
- package/dist/{shared-j4Qtr475.js → shared-Bs4vduG4.js} +3 -3
- package/dist/{shared-BBw6F-YC.js → shared-CEY5IkwG.js} +2 -2
- package/dist/{shared-DOZs2SoH.js → shared-DRohONn_.js} +3 -3
- package/dist/{shared-CtP9K-o2.js → shared-ICqOZibV.js} +3 -3
- package/dist/{skill-scanner-C_fQzVDu.js → skill-scanner-rHMtUHtP.js} +1 -1
- package/dist/{skills-BvPUNjxo.js → skills-DRjfSQT3.js} +128 -4
- package/dist/{skills-aFOsriMP.js → skills-DprQj9X2.js} +129 -5
- package/dist/{skills-cli-oWaTJzZd.js → skills-cli-9WO-C55s.js} +12 -12
- package/dist/{skills-cli-E6shXpdd.js → skills-cli-B9eej-EW.js} +13 -13
- package/dist/{skills-status-D4vbIMnz.js → skills-status-5U3P3YfJ.js} +3 -3
- package/dist/{skills-status-DJDaA2Ur.js → skills-status-TDIgVd1K.js} +2 -2
- package/dist/{sqlite-B7FPASCO.js → sqlite-BINzs1U0.js} +2 -2
- package/dist/{sqlite-B4Z1_Ioc.js → sqlite-D4w5TejA.js} +2 -2
- package/dist/{sqlite-BkYnxkQO.js → sqlite-DRRHmlug.js} +2 -2
- package/dist/{sqlite-EuQPVXvn.js → sqlite-F6PGkEm1.js} +2 -2
- package/dist/{status-B2Yr-2J5.js → status-BKGkKC_v.js} +3 -3
- package/dist/{status-DW7m5xUN.js → status-CiHtHdaa.js} +4 -4
- package/dist/{status-CxhnUa5J.js → status-DDWoOpeB.js} +33 -33
- package/dist/{subsystem-Bv7dGhES.js → subsystem-BoExtIHo.js} +32 -13
- package/dist/{system-cli-0JXhJNWm.js → system-cli-B6lr60Io.js} +14 -14
- package/dist/{system-cli-D-0OaMtH.js → system-cli-CprW9G3h.js} +14 -14
- package/dist/{systemd-CNTodvCO.js → systemd-C0VZriGM.js} +2 -2
- package/dist/{systemd-CUJJHgHa.js → systemd-DrmBtJ5T.js} +3 -3
- package/dist/{systemd-hints-cmHtrXUl.js → systemd-hints-DZtXiVHa.js} +1 -1
- package/dist/{systemd-linger-CArPbmvv.js → systemd-linger-NC2kl1SC.js} +2 -2
- package/dist/{systemd-linger-XvT9Y9sb.js → systemd-linger-xdn3BdPh.js} +2 -2
- package/dist/{table-DzBBIqHO.js → table-B8dx3v4v.js} +2 -2
- package/dist/{table-oJQPTUL6.js → table-CwulTLQp.js} +1 -1
- package/dist/{tool-display-Na-EVL83.js → tool-display-CZRIDMRm.js} +1 -1
- package/dist/{tool-display-sHJa3kRs.js → tool-display-ClRud3pg.js} +2 -2
- package/dist/{tui-nGp8ltQK.js → tui-CVTQn-dC.js} +9 -9
- package/dist/{tui-Biw7aqPj.js → tui-Lu8FdrlK.js} +9 -9
- package/dist/{tui-cli-C9FEfG7C.js → tui-cli-BLpTj1X9.js} +25 -25
- package/dist/{tui-cli-Dxnu5JGl.js → tui-cli-BLx5kL2I.js} +25 -25
- package/dist/{tui-formatters-BiNTNGwg.js → tui-formatters-CNySEfJN.js} +5 -5
- package/dist/{tui-formatters-C_baVYUz.js → tui-formatters-DePhZK3J.js} +5 -5
- package/dist/{update-C4rsLj2F.js → update-DHVxMTpQ.js} +3 -3
- package/dist/{update-uwUWrKFu.js → update-DU1geolI.js} +3 -3
- package/dist/{update-cli-cNd_G9E6.js → update-cli-C0hUvJWK.js} +66 -66
- package/dist/{update-cli-CBXp-c4C.js → update-cli-Wb1GB3rL.js} +68 -68
- package/dist/{update-runner-BLsqC24J.js → update-runner--ixK4J3W.js} +10 -10
- package/dist/{update-runner-C_FDpmA3.js → update-runner-7Qa1T9y6.js} +9 -9
- package/dist/{utils-Dk86IbEs.js → utils-BLJAc3ZV.js} +1 -1
- package/dist/{utils-BHPdZE4h.js → utils-Cd9QdCHh.js} +1 -1
- package/dist/{webhooks-cli-BpBKXL7W.js → webhooks-cli-DgcMy7RG.js} +12 -12
- package/dist/{webhooks-cli-wNfhfKqm.js → webhooks-cli-aVzUcJY9.js} +11 -11
- package/dist/{widearea-dns-WVCWJTEb.js → widearea-dns-BaIgNEhY.js} +1 -1
- package/dist/{widearea-dns-BWYPcfby.js → widearea-dns-DzuRdwk5.js} +1 -1
- package/dist/{ws-log-Cafylho7.js → ws-log-CIXbLCka.js} +1 -1
- package/dist/{ws-log-DTUOUVgR.js → ws-log-DcQFZByi.js} +1 -1
- package/dist/{wsl-B-H6Z5wp.js → wsl-BUOkxKJu.js} +2 -2
- package/docs/automation/webhook.md +43 -2
- package/docs/channels/discord.md +29 -1
- package/docs/cli/plugins.md +20 -1
- package/docs/cli/security.md +1 -0
- package/docs/concepts/session-tool.md +1 -0
- package/docs/gateway/configuration-reference.md +11 -0
- package/docs/gateway/configuration.md +3 -0
- package/docs/gateway/openresponses-http-api.md +15 -0
- package/docs/gateway/security/index.md +3 -0
- package/docs/help/faq.md +9 -0
- package/docs/install/installer.md +20 -0
- package/docs/reference/transcript-hygiene.md +18 -0
- package/docs/tools/browser.md +6 -0
- package/extensions/diagnostics-otel/package.json +9 -9
- package/extensions/feishu/package.json +1 -1
- package/extensions/feishu/src/config-schema.ts +6 -0
- package/extensions/feishu/src/reply-dispatcher.test.ts +116 -0
- package/extensions/feishu/src/reply-dispatcher.ts +124 -67
- package/extensions/feishu/src/streaming-card.ts +223 -0
- package/extensions/feishu/src/targets.test.ts +16 -0
- package/extensions/feishu/src/targets.ts +1 -1
- package/extensions/irc/src/client.ts +1 -1
- package/extensions/minimax-portal-auth/index.ts +7 -5
- package/extensions/nostr/package.json +1 -1
- package/package.json +13 -13
- package/dist/auth-BcNHFK-i.js +0 -184
- package/dist/auth-jrfLXze7.js +0 -184
- /package/dist/{archive-DqNr5i8b.js → archive-beaSfAzA.js} +0 -0
- /package/dist/{brew-BIrWdDps.js → brew-BUIxHEkn.js} +0 -0
- /package/dist/{brew-6UyogeLe.js → brew-ROHf0-Xp.js} +0 -0
- /package/dist/{constants-DuoCkWRh.js → constants-BvQ6S8j5.js} +0 -0
- /package/dist/{errors-x4NYs-1P.js → errors-DjZBTJJ3.js} +0 -0
- /package/dist/{helpers-BDvtkJjw.js → helpers-HyeZXsnu.js} +0 -0
- /package/dist/{is-main-CE1eOBYb.js → is-main-BWoXGz7p.js} +0 -0
- /package/dist/{parse-Cjiudy6x.js → parse-Bw0oH-rT.js} +0 -0
- /package/dist/{parse-timeout-DFSPLxpY.js → parse-timeout-D1XX_zN_.js} +0 -0
- /package/dist/{prompts-BOz5176z.js → prompts-Bg96reub.js} +0 -0
- /package/dist/{redact-DuEEf1p1.js → redact-Br9GfacZ.js} +0 -0
- /package/dist/{skill-scanner-CprFkZib.js → skill-scanner-CucvxYhu.js} +0 -0
- /package/dist/{transcript-events-CZ8CG4ht.js → transcript-events-BtNd-j6q.js} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { a as resolveCanonicalConfigPath, c as resolveDefaultConfigCandidates, d as resolveIsNixMode, f as resolveLegacyStateDirs, g as resolveStateDir, h as resolveOAuthPath, i as isNixMode, l as resolveGatewayLockDir, m as resolveOAuthDir, n as DEFAULT_GATEWAY_PORT, o as resolveConfigPath, p as resolveNewStateDir, r as STATE_DIR, s as resolveConfigPathCandidate, t as CONFIG_PATH, u as resolveGatewayPort, y as resolveRequiredHomeDir } from "./paths-DVBShlw6.js";
|
|
3
|
-
import { S as normalizeChatChannelId, p as CHANNEL_IDS } from "./subsystem-
|
|
4
|
-
import { _ as resolveConfigDir, b as resolveUserPath, d as isPlainObject, f as isRecord } from "./utils-
|
|
3
|
+
import { S as normalizeChatChannelId, p as CHANNEL_IDS } from "./subsystem-BoExtIHo.js";
|
|
4
|
+
import { _ as resolveConfigDir, b as resolveUserPath, d as isPlainObject, f as isRecord } from "./utils-Cd9QdCHh.js";
|
|
5
5
|
import { l as normalizeAgentId, n as DEFAULT_AGENT_ID } from "./session-key-BWxPj0z_.js";
|
|
6
|
-
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope
|
|
7
|
-
import { Et as DEFAULT_CONTEXT_TOKENS, J as shouldDeferShellEnvFallback, K as loadShellEnvFallback, Y as shouldEnableShellEnvFallback, c as parseModelRef, q as resolveShellEnvFallbackTimeoutMs } from "./model-selection-
|
|
8
|
-
import { d as resolveMemorySlotDecision, l as normalizePluginsConfig, t as loadPluginManifestRegistry, u as resolveEnableState } from "./manifest-registry-
|
|
6
|
+
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-CQCus0rI.js";
|
|
7
|
+
import { Et as DEFAULT_CONTEXT_TOKENS, J as shouldDeferShellEnvFallback, K as loadShellEnvFallback, Y as shouldEnableShellEnvFallback, c as parseModelRef, q as resolveShellEnvFallbackTimeoutMs } from "./model-selection-BLuqsGVB.js";
|
|
8
|
+
import { d as resolveMemorySlotDecision, l as normalizePluginsConfig, t as loadPluginManifestRegistry, u as resolveEnableState } from "./manifest-registry-CQhdnDBZ.js";
|
|
9
9
|
import { createRequire } from "node:module";
|
|
10
10
|
import fs from "node:fs";
|
|
11
11
|
import os from "node:os";
|
|
@@ -2763,7 +2763,8 @@ const BindingsSchema = z.array(z.object({
|
|
|
2763
2763
|
id: z.string()
|
|
2764
2764
|
}).strict().optional(),
|
|
2765
2765
|
guildId: z.string().optional(),
|
|
2766
|
-
teamId: z.string().optional()
|
|
2766
|
+
teamId: z.string().optional(),
|
|
2767
|
+
roles: z.array(z.string()).optional()
|
|
2767
2768
|
}).strict()
|
|
2768
2769
|
}).strict()).optional();
|
|
2769
2770
|
const BroadcastStrategySchema = z.enum(["parallel", "sequential"]);
|
|
@@ -3149,6 +3150,7 @@ const DiscordGuildChannelSchema = z.object({
|
|
|
3149
3150
|
skills: z.array(z.string()).optional(),
|
|
3150
3151
|
enabled: z.boolean().optional(),
|
|
3151
3152
|
users: z.array(z.union([z.string(), z.number()])).optional(),
|
|
3153
|
+
roles: z.array(z.union([z.string(), z.number()])).optional(),
|
|
3152
3154
|
systemPrompt: z.string().optional(),
|
|
3153
3155
|
includeThreadStarter: z.boolean().optional(),
|
|
3154
3156
|
autoThread: z.boolean().optional()
|
|
@@ -3165,6 +3167,7 @@ const DiscordGuildSchema = z.object({
|
|
|
3165
3167
|
"allowlist"
|
|
3166
3168
|
]).optional(),
|
|
3167
3169
|
users: z.array(z.union([z.string(), z.number()])).optional(),
|
|
3170
|
+
roles: z.array(z.union([z.string(), z.number()])).optional(),
|
|
3168
3171
|
channels: z.record(z.string(), DiscordGuildChannelSchema.optional()).optional()
|
|
3169
3172
|
}).strict();
|
|
3170
3173
|
const DiscordAccountSchema = z.object({
|
|
@@ -4188,6 +4191,9 @@ const OpenClawSchema = z.object({
|
|
|
4188
4191
|
enabled: z.boolean().optional(),
|
|
4189
4192
|
path: z.string().optional(),
|
|
4190
4193
|
token: z.string().optional(),
|
|
4194
|
+
defaultSessionKey: z.string().optional(),
|
|
4195
|
+
allowRequestSessionKey: z.boolean().optional(),
|
|
4196
|
+
allowedSessionKeyPrefixes: z.array(z.string()).optional(),
|
|
4191
4197
|
allowedAgentIds: z.array(z.string()).optional(),
|
|
4192
4198
|
maxBodyBytes: z.number().int().positive().optional(),
|
|
4193
4199
|
presets: z.array(z.string()).optional(),
|
|
@@ -4293,8 +4299,10 @@ const OpenClawSchema = z.object({
|
|
|
4293
4299
|
responses: z.object({
|
|
4294
4300
|
enabled: z.boolean().optional(),
|
|
4295
4301
|
maxBodyBytes: z.number().int().positive().optional(),
|
|
4302
|
+
maxUrlParts: z.number().int().nonnegative().optional(),
|
|
4296
4303
|
files: z.object({
|
|
4297
4304
|
allowUrl: z.boolean().optional(),
|
|
4305
|
+
urlAllowlist: z.array(z.string()).optional(),
|
|
4298
4306
|
allowedMimes: z.array(z.string()).optional(),
|
|
4299
4307
|
maxBytes: z.number().int().positive().optional(),
|
|
4300
4308
|
maxChars: z.number().int().positive().optional(),
|
|
@@ -4308,6 +4316,7 @@ const OpenClawSchema = z.object({
|
|
|
4308
4316
|
}).strict().optional(),
|
|
4309
4317
|
images: z.object({
|
|
4310
4318
|
allowUrl: z.boolean().optional(),
|
|
4319
|
+
urlAllowlist: z.array(z.string()).optional(),
|
|
4311
4320
|
allowedMimes: z.array(z.string()).optional(),
|
|
4312
4321
|
maxBytes: z.number().int().positive().optional(),
|
|
4313
4322
|
maxRedirects: z.number().int().nonnegative().optional(),
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Ct as DEFAULT_CONTEXT_TOKENS, N as resolveConfiguredModelRef, Tt as DEFAULT_PROVIDER, _ as ensureAuthProfileStore, b as resolveAuthStorePath, ft as normalizeOptionalSecretInput, g as upsertAuthProfile, k as normalizeProviderId, n as resolveAuthProfileOrder, pt as normalizeSecretInput, s as resolveApiKeyForProfile, ut as resolveEnvApiKey, wt as DEFAULT_MODEL } from "./auth-profiles-
|
|
3
|
-
import { t as formatCliCommand } from "./command-format-
|
|
1
|
+
import { A as theme, G as resolveGatewayPort, O as colorize, R as STATE_DIR, V as resolveConfigPath, Y as resolveOAuthDir, Z as resolveStateDir, a as parseBooleanValue, ct as normalizeChatChannelId, f as visibleWidth, it as getChatChannelMeta, k as isRich, m as restoreTerminalState, p as defaultRuntime, tt as DEFAULT_CHAT_CHANNEL, v as danger, w as setVerbose, y as info, z as isNixMode } from "./entry.js";
|
|
2
|
+
import { Ct as DEFAULT_CONTEXT_TOKENS, N as resolveConfiguredModelRef, Tt as DEFAULT_PROVIDER, _ as ensureAuthProfileStore, b as resolveAuthStorePath, ft as normalizeOptionalSecretInput, g as upsertAuthProfile, k as normalizeProviderId, n as resolveAuthProfileOrder, pt as normalizeSecretInput, s as resolveApiKeyForProfile, ut as resolveEnvApiKey, wt as DEFAULT_MODEL } from "./auth-profiles-ByNs3eEm.js";
|
|
3
|
+
import { t as formatCliCommand } from "./command-format-Bxe0mWee.js";
|
|
4
4
|
import { l as normalizeAgentId, n as DEFAULT_AGENT_ID, t as DEFAULT_ACCOUNT_ID } from "./session-key-DVvxnFKg.js";
|
|
5
|
-
import { S as shortenHomePath, _ as resolveHomeDir, x as shortenHomeInString, y as resolveUserPath } from "./utils-
|
|
6
|
-
import { t as runCommandWithTimeout } from "./exec-
|
|
7
|
-
import { c as resolveDefaultAgentId, f as DEFAULT_AGENT_WORKSPACE_DIR, h as DEFAULT_IDENTITY_FILENAME, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, w as resolveDefaultAgentWorkspaceDir, x as ensureAgentWorkspace } from "./agent-scope-
|
|
8
|
-
import { c as writeConfigFile, g as parseDurationMs, i as loadConfig, o as readConfigFileSnapshot, r as createConfigIO } from "./config-
|
|
9
|
-
import { n as movePathToTrash } from "./server-context-
|
|
10
|
-
import { i as randomIdempotencyKey, n as callGateway } from "./call-
|
|
11
|
-
import { h as GATEWAY_CLIENT_NAMES, l as normalizeMessageChannel, m as GATEWAY_CLIENT_MODES } from "./message-channel-
|
|
12
|
-
import { t as formatDocsLink } from "./links-
|
|
13
|
-
import { n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin } from "./plugins-
|
|
14
|
-
import { D as runMemoryStatus, E as registerMemoryCli,
|
|
15
|
-
import { n as withProgress } from "./progress-
|
|
16
|
-
import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint } from "./prompt-style-
|
|
5
|
+
import { S as shortenHomePath, _ as resolveHomeDir, x as shortenHomeInString, y as resolveUserPath } from "./utils-BLJAc3ZV.js";
|
|
6
|
+
import { t as runCommandWithTimeout } from "./exec-CACT5OAW.js";
|
|
7
|
+
import { c as resolveDefaultAgentId, f as DEFAULT_AGENT_WORKSPACE_DIR, h as DEFAULT_IDENTITY_FILENAME, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, w as resolveDefaultAgentWorkspaceDir, x as ensureAgentWorkspace } from "./agent-scope-CsRbLH4l.js";
|
|
8
|
+
import { c as writeConfigFile, g as parseDurationMs, i as loadConfig, o as readConfigFileSnapshot, r as createConfigIO } from "./config-Bdhomfei.js";
|
|
9
|
+
import { n as movePathToTrash } from "./server-context-BGpGs3qd.js";
|
|
10
|
+
import { i as randomIdempotencyKey, n as callGateway } from "./call-DVYCIV8m.js";
|
|
11
|
+
import { h as GATEWAY_CLIENT_NAMES, l as normalizeMessageChannel, m as GATEWAY_CLIENT_MODES } from "./message-channel-C_MmebBt.js";
|
|
12
|
+
import { t as formatDocsLink } from "./links-B8LAzWwg.js";
|
|
13
|
+
import { n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin } from "./plugins-4Hqd1WGf.js";
|
|
14
|
+
import { D as runMemoryStatus, E as registerMemoryCli, Gn as CHANNEL_TARGETS_DESCRIPTION, Kn as CHANNEL_TARGET_DESCRIPTION, Sn as CHANNEL_MESSAGE_ACTION_NAMES, _ as randomToken, a as applyWizardMetadata, bn as formatTargetDisplay, c as ensureWorkspaceAndSessions, cn as resolveCommitHash, d as handleReset, f as moveToTrash, fn as runMessageAction, i as DEFAULT_WORKSPACE, l as formatControlUiSshHint, ln as lookupContextTokens, m as openUrl, s as detectBrowserOpenSupport, v as resolveControlUiLinks, x as waitForGatewayReachable } from "./loader-KjT074JR.js";
|
|
15
|
+
import { n as withProgress } from "./progress-DWqhRakV.js";
|
|
16
|
+
import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint } from "./prompt-style-BFH5D5LN.js";
|
|
17
17
|
import { t as WizardCancelledError } from "./prompts-CXLLIBwP.js";
|
|
18
|
-
import { t as createClackPrompter } from "./clack-prompter-
|
|
18
|
+
import { t as createClackPrompter } from "./clack-prompter-ChCGXfyt.js";
|
|
19
19
|
import { t as resolveChannelDefaultAccountId } from "./helpers-DdwqKAAS.js";
|
|
20
|
-
import { n as setupChannels } from "./onboard-channels-
|
|
21
|
-
import { a as
|
|
22
|
-
import { d as loadSessionStore } from "./sandbox-
|
|
20
|
+
import { n as setupChannels } from "./onboard-channels-C501x8GI.js";
|
|
21
|
+
import { a as resolveSessionTranscriptsDir, o as resolveSessionTranscriptsDirForAgent, s as resolveStorePath } from "./paths-DLINmNFQ.js";
|
|
22
|
+
import { d as loadSessionStore } from "./sandbox-BKYnhYQH.js";
|
|
23
23
|
import { n as formatTimeAgo } from "./format-relative-CZOlQ2pA.js";
|
|
24
24
|
import { n as runCommandWithRuntime } from "./cli-utils-LcHOt63h.js";
|
|
25
|
-
import { n as ensurePluginRegistryLoaded, t as hasExplicitOptions } from "./command-options-
|
|
26
|
-
import { l as getVerboseFlag, o as getFlagValue, r as registerSubCliCommands, s as getPositiveIntFlagValue, u as hasFlag } from "./register.subclis-
|
|
25
|
+
import { n as ensurePluginRegistryLoaded, t as hasExplicitOptions } from "./command-options-BvgxzPbK.js";
|
|
26
|
+
import { l as getVerboseFlag, o as getFlagValue, r as registerSubCliCommands, s as getPositiveIntFlagValue, u as hasFlag } from "./register.subclis-C02e4zuJ.js";
|
|
27
27
|
import { n as parsePositiveIntOrUndefined, t as collectOption } from "./helpers-D_jqdWkd.js";
|
|
28
|
-
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-
|
|
29
|
-
import { t as createDefaultDeps } from "./deps-
|
|
30
|
-
import { a as gatewayInstallErrorHint, h as assertSupportedRuntime, i as buildGatewayInstallPlan, r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-
|
|
31
|
-
import { t as resolveGatewayService } from "./service-
|
|
32
|
-
import { r as isSystemdUserServiceAvailable } from "./systemd-
|
|
33
|
-
import { t as renderTable } from "./table-
|
|
34
|
-
import { _ as applyOpenAIConfig, a as applyCustomApiConfig, b as applyGoogleGeminiModelDefault, c as resolveCustomProviderId, g as applyAuthChoice, h as warnIfModelConfigLooksOff, i as CustomApiError, o as parseNonInteractiveCustomApiFlags, v as upsertSharedEnvVar, x as promptAuthChoiceGrouped, y as detectZaiEndpoint } from "./onboard-skills-
|
|
35
|
-
import { l as healthCommand } from "./health-format-
|
|
36
|
-
import { $ as setAnthropicApiKey, C as applyLitellmConfig, E as applyMoonshotConfigCn, Et as validateAnthropicSetupToken, F as applyTogetherConfig, G as applyZaiConfig, L as applyVeniceConfig, N as applySyntheticConfig, T as applyMoonshotConfig, Tt as buildTokenProfileId, U as applyXiaomiConfig, V as applyXaiConfig, at as setMoonshotApiKey, ct as setQianfanApiKey, dt as setVeniceApiKey, et as setCloudflareAiGatewayConfig, f as applyOpencodeZenConfig, ft as setVercelAiGatewayApiKey, g as applyMinimaxConfig, ht as setZaiApiKey, it as setMinimaxApiKey, j as applyQianfanConfig, k as applyOpenrouterConfig, lt as setSyntheticApiKey, m as applyMinimaxApiConfig, mt as setXiaomiApiKey, nt as setKimiCodingApiKey, ot as setOpencodeZenApiKey, pt as setXaiApiKey, rt as setLitellmApiKey, st as setOpenrouterApiKey, tt as setGeminiApiKey, ut as setTogetherApiKey, v as applyAuthProfileConfig, x as applyKimiCodeConfig, y as applyCloudflareAiGatewayConfig, z as applyVercelAiGatewayConfig } from "./github-copilot-auth-
|
|
37
|
-
import { n as logConfigUpdated, t as formatConfigPath } from "./logging-
|
|
38
|
-
import { a as findAgentEntryIndex, c as pruneAgentConfig, d as parseIdentityMarkdown, f as runOnboardingWizard, i as buildAgentSummaries, l as identityHasValues, o as listAgentEntries, r as applyAgentConfig, s as loadAgentIdentity, t as statusCommand } from "./status-
|
|
39
|
-
import { a as createOutboundSendDeps, n as resolveSessionKeyForRequest, t as agentCommand } from "./agent-
|
|
40
|
-
import { t as formatHelpExamples } from "./help-format-
|
|
41
|
-
import { i as CONFIGURE_WIZARD_SECTIONS, n as configureCommand, r as configureCommandWithSections } from "./configure-
|
|
42
|
-
import { n as ensureSystemdUserLingerNonInteractive } from "./systemd-linger-
|
|
43
|
-
import { n as loadAndMaybeMigrateDoctorConfig, t as doctorCommand } from "./doctor-
|
|
28
|
+
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-BByb2Snz.js";
|
|
29
|
+
import { t as createDefaultDeps } from "./deps-QSwGcoNZ.js";
|
|
30
|
+
import { a as gatewayInstallErrorHint, h as assertSupportedRuntime, i as buildGatewayInstallPlan, r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-B0tg_LsX.js";
|
|
31
|
+
import { t as resolveGatewayService } from "./service-99RDXwX4.js";
|
|
32
|
+
import { r as isSystemdUserServiceAvailable } from "./systemd-C0VZriGM.js";
|
|
33
|
+
import { t as renderTable } from "./table-CwulTLQp.js";
|
|
34
|
+
import { _ as applyOpenAIConfig, a as applyCustomApiConfig, b as applyGoogleGeminiModelDefault, c as resolveCustomProviderId, g as applyAuthChoice, h as warnIfModelConfigLooksOff, i as CustomApiError, o as parseNonInteractiveCustomApiFlags, v as upsertSharedEnvVar, x as promptAuthChoiceGrouped, y as detectZaiEndpoint } from "./onboard-skills-DV0Qzvjj.js";
|
|
35
|
+
import { l as healthCommand } from "./health-format-LZDxu3rv.js";
|
|
36
|
+
import { $ as setAnthropicApiKey, C as applyLitellmConfig, E as applyMoonshotConfigCn, Et as validateAnthropicSetupToken, F as applyTogetherConfig, G as applyZaiConfig, L as applyVeniceConfig, N as applySyntheticConfig, T as applyMoonshotConfig, Tt as buildTokenProfileId, U as applyXiaomiConfig, V as applyXaiConfig, at as setMoonshotApiKey, ct as setQianfanApiKey, dt as setVeniceApiKey, et as setCloudflareAiGatewayConfig, f as applyOpencodeZenConfig, ft as setVercelAiGatewayApiKey, g as applyMinimaxConfig, ht as setZaiApiKey, it as setMinimaxApiKey, j as applyQianfanConfig, k as applyOpenrouterConfig, lt as setSyntheticApiKey, m as applyMinimaxApiConfig, mt as setXiaomiApiKey, nt as setKimiCodingApiKey, ot as setOpencodeZenApiKey, pt as setXaiApiKey, rt as setLitellmApiKey, st as setOpenrouterApiKey, tt as setGeminiApiKey, ut as setTogetherApiKey, v as applyAuthProfileConfig, x as applyKimiCodeConfig, y as applyCloudflareAiGatewayConfig, z as applyVercelAiGatewayConfig } from "./github-copilot-auth-DDispnyz.js";
|
|
37
|
+
import { n as logConfigUpdated, t as formatConfigPath } from "./logging-CRq4h04P.js";
|
|
38
|
+
import { a as findAgentEntryIndex, c as pruneAgentConfig, d as parseIdentityMarkdown, f as runOnboardingWizard, i as buildAgentSummaries, l as identityHasValues, o as listAgentEntries, r as applyAgentConfig, s as loadAgentIdentity, t as statusCommand } from "./status-DDWoOpeB.js";
|
|
39
|
+
import { a as createOutboundSendDeps, n as resolveSessionKeyForRequest, t as agentCommand } from "./agent-CyMxTyrG.js";
|
|
40
|
+
import { t as formatHelpExamples } from "./help-format-R5fLToDw.js";
|
|
41
|
+
import { i as CONFIGURE_WIZARD_SECTIONS, n as configureCommand, r as configureCommandWithSections } from "./configure-BXLiucXo.js";
|
|
42
|
+
import { n as ensureSystemdUserLingerNonInteractive } from "./systemd-linger-xdn3BdPh.js";
|
|
43
|
+
import { n as loadAndMaybeMigrateDoctorConfig, t as doctorCommand } from "./doctor-sYG5V4Co.js";
|
|
44
44
|
import path from "node:path";
|
|
45
45
|
import fs from "node:fs";
|
|
46
46
|
import JSON5 from "json5";
|
|
@@ -1234,7 +1234,7 @@ function registerBrowserFilesAndDownloadsCommands(browser, parentOpts) {
|
|
|
1234
1234
|
defaultRuntime.exit(1);
|
|
1235
1235
|
}
|
|
1236
1236
|
});
|
|
1237
|
-
browser.command("waitfordownload").description("Wait for the next download (and save it)").argument("[path]", "Save path (default: /tmp/openclaw/downloads/...)").option("--target-id <id>", "CDP target id (or unique prefix)").option("--timeout-ms <ms>", "How long to wait for the next download (default: 120000)", (v) => Number(v)).action(async (outPath, opts, cmd) => {
|
|
1237
|
+
browser.command("waitfordownload").description("Wait for the next download (and save it)").argument("[path]", "Save path (default: /tmp/openclaw/downloads/...; fallback: os.tmpdir()/openclaw/downloads/...)").option("--target-id <id>", "CDP target id (or unique prefix)").option("--timeout-ms <ms>", "How long to wait for the next download (default: 120000)", (v) => Number(v)).action(async (outPath, opts, cmd) => {
|
|
1238
1238
|
const { parent, profile } = resolveBrowserActionContext(cmd, parentOpts);
|
|
1239
1239
|
try {
|
|
1240
1240
|
const timeoutMs = Number.isFinite(opts.timeoutMs) ? opts.timeoutMs : void 0;
|
|
@@ -2782,7 +2782,7 @@ async function loadValidConfig() {
|
|
|
2782
2782
|
}
|
|
2783
2783
|
function registerConfigCli(program) {
|
|
2784
2784
|
const cmd = program.command("config").description("Config helpers (get/set/unset). Run without subcommand for the wizard.").addHelpText("after", () => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/config", "docs.openclaw.ai/cli/config")}\n`).option("--section <section>", "Configure wizard sections (repeatable). Use with no subcommand.", (value, previous) => [...previous, value], []).action(async (opts) => {
|
|
2785
|
-
const { CONFIGURE_WIZARD_SECTIONS, configureCommand, configureCommandWithSections } = await import("./configure-
|
|
2785
|
+
const { CONFIGURE_WIZARD_SECTIONS, configureCommand, configureCommandWithSections } = await import("./configure-BXLiucXo.js").then((n) => n.t);
|
|
2786
2786
|
const sections = Array.isArray(opts.section) ? opts.section.map((value) => typeof value === "string" ? value.trim() : "").filter(Boolean) : [];
|
|
2787
2787
|
if (sections.length === 0) {
|
|
2788
2788
|
await configureCommand(defaultRuntime);
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import {
|
|
3
|
-
import { _ as ensureAuthProfileStore } from "./auth-profiles-
|
|
4
|
-
import { t as formatCliCommand } from "./command-format-
|
|
5
|
-
import { S as shortenHomePath, y as resolveUserPath } from "./utils-
|
|
6
|
-
import { c as writeConfigFile, i as loadConfig, o as readConfigFileSnapshot } from "./config-
|
|
7
|
-
import {
|
|
8
|
-
import { n as listChannelPlugins, t as getChannelPlugin } from "./plugins-
|
|
9
|
-
import { _ as randomToken, a as applyWizardMetadata, b as summarizeExistingConfig, c as ensureWorkspaceAndSessions, g as probeGatewayReachable, h as printWizardHeader, i as DEFAULT_WORKSPACE, p as normalizeGatewayTokenInput, u as guardCancel, v as resolveControlUiLinks, x as waitForGatewayReachable } from "./loader-
|
|
10
|
-
import { n as withProgress } from "./progress-
|
|
11
|
-
import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint } from "./prompt-style-
|
|
12
|
-
import { t as note$1 } from "./note-
|
|
2
|
+
import { G as resolveGatewayPort, I as CONFIG_PATH, p as defaultRuntime } from "./entry.js";
|
|
3
|
+
import { _ as ensureAuthProfileStore } from "./auth-profiles-ByNs3eEm.js";
|
|
4
|
+
import { t as formatCliCommand } from "./command-format-Bxe0mWee.js";
|
|
5
|
+
import { S as shortenHomePath, y as resolveUserPath } from "./utils-BLJAc3ZV.js";
|
|
6
|
+
import { c as writeConfigFile, i as loadConfig, o as readConfigFileSnapshot } from "./config-Bdhomfei.js";
|
|
7
|
+
import { u as findTailscaleBinary } from "./auth-9x3lqfIY.js";
|
|
8
|
+
import { n as listChannelPlugins, t as getChannelPlugin } from "./plugins-4Hqd1WGf.js";
|
|
9
|
+
import { _ as randomToken, a as applyWizardMetadata, b as summarizeExistingConfig, c as ensureWorkspaceAndSessions, g as probeGatewayReachable, h as printWizardHeader, i as DEFAULT_WORKSPACE, p as normalizeGatewayTokenInput, u as guardCancel, v as resolveControlUiLinks, x as waitForGatewayReachable } from "./loader-KjT074JR.js";
|
|
10
|
+
import { n as withProgress } from "./progress-DWqhRakV.js";
|
|
11
|
+
import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint } from "./prompt-style-BFH5D5LN.js";
|
|
12
|
+
import { t as note$1 } from "./note-hhtubr2j.js";
|
|
13
13
|
import { t as WizardCancelledError } from "./prompts-CXLLIBwP.js";
|
|
14
|
-
import { t as createClackPrompter } from "./clack-prompter-
|
|
15
|
-
import { n as setupChannels, t as noteChannelStatus } from "./onboard-channels-
|
|
16
|
-
import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-
|
|
17
|
-
import { t as resolveGatewayService } from "./service-
|
|
18
|
-
import { d as applyPrimaryModel, f as promptDefaultModel, g as applyAuthChoice, l as applyModelAllowlist, m as resolvePreferredProviderForAuthChoice, p as promptModelAllowlist, r as promptRemoteGatewayConfig, s as promptCustomApiConfig, t as setupSkills, u as applyModelFallbacksFromSelection, x as promptAuthChoiceGrouped } from "./onboard-skills-
|
|
19
|
-
import { l as healthCommand, n as ensureControlUiAssetsBuilt, t as formatHealthCheckFailure } from "./health-format-
|
|
20
|
-
import { n as logConfigUpdated } from "./logging-
|
|
21
|
-
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-
|
|
14
|
+
import { t as createClackPrompter } from "./clack-prompter-ChCGXfyt.js";
|
|
15
|
+
import { n as setupChannels, t as noteChannelStatus } from "./onboard-channels-C501x8GI.js";
|
|
16
|
+
import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-B0tg_LsX.js";
|
|
17
|
+
import { t as resolveGatewayService } from "./service-99RDXwX4.js";
|
|
18
|
+
import { d as applyPrimaryModel, f as promptDefaultModel, g as applyAuthChoice, l as applyModelAllowlist, m as resolvePreferredProviderForAuthChoice, p as promptModelAllowlist, r as promptRemoteGatewayConfig, s as promptCustomApiConfig, t as setupSkills, u as applyModelFallbacksFromSelection, x as promptAuthChoiceGrouped } from "./onboard-skills-DV0Qzvjj.js";
|
|
19
|
+
import { l as healthCommand, n as ensureControlUiAssetsBuilt, t as formatHealthCheckFailure } from "./health-format-LZDxu3rv.js";
|
|
20
|
+
import { n as logConfigUpdated } from "./logging-CRq4h04P.js";
|
|
21
|
+
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-xdn3BdPh.js";
|
|
22
22
|
import { confirm, intro, outro, select, text } from "@clack/prompts";
|
|
23
23
|
|
|
24
24
|
//#region src/commands/configure.shared.ts
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { t as CONFIG_PATH, u as resolveGatewayPort } from "./paths-DVBShlw6.js";
|
|
3
|
-
import { c as defaultRuntime } from "./subsystem-
|
|
4
|
-
import { C as shortenHomePath, b as resolveUserPath } from "./utils-
|
|
5
|
-
import { At as probeGatewayReachable, Dt as normalizeGatewayTokenInput, Ft as waitForGatewayReachable, Mt as resolveControlUiLinks, Pt as summarizeExistingConfig, St as ensureWorkspaceAndSessions, jt as randomToken, kt as printWizardHeader, vt as DEFAULT_WORKSPACE, wt as guardCancel, yt as applyWizardMetadata } from "./reply-
|
|
6
|
-
import { ht as ensureAuthProfileStore } from "./model-selection-
|
|
3
|
+
import { c as defaultRuntime } from "./subsystem-BoExtIHo.js";
|
|
4
|
+
import { C as shortenHomePath, b as resolveUserPath } from "./utils-Cd9QdCHh.js";
|
|
5
|
+
import { At as probeGatewayReachable, Dt as normalizeGatewayTokenInput, Ft as waitForGatewayReachable, Mt as resolveControlUiLinks, Pt as summarizeExistingConfig, St as ensureWorkspaceAndSessions, jt as randomToken, kt as printWizardHeader, vt as DEFAULT_WORKSPACE, wt as guardCancel, yt as applyWizardMetadata } from "./reply-DICXkh_C.js";
|
|
6
|
+
import { ht as ensureAuthProfileStore } from "./model-selection-BLuqsGVB.js";
|
|
7
7
|
import { t as formatCliCommand } from "./command-format-ChfKqObn.js";
|
|
8
|
-
import { c as writeConfigFile, i as loadConfig, o as readConfigFileSnapshot } from "./config-
|
|
9
|
-
import { n as listChannelPlugins, t as getChannelPlugin } from "./plugins-
|
|
10
|
-
import { n as withProgress } from "./progress-
|
|
11
|
-
import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint } from "./prompt-style-
|
|
12
|
-
import {
|
|
13
|
-
import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-
|
|
14
|
-
import { n as logConfigUpdated } from "./logging-
|
|
15
|
-
import { t as note$1 } from "./note-
|
|
16
|
-
import { t as WizardCancelledError } from "./prompts-
|
|
17
|
-
import { t as createClackPrompter } from "./clack-prompter-
|
|
18
|
-
import { S as promptAuthChoiceGrouped, _ as applyAuthChoice, c as promptCustomApiConfig, d as applyModelFallbacksFromSelection, f as applyPrimaryModel, h as resolvePreferredProviderForAuthChoice, m as promptModelAllowlist, p as promptDefaultModel, r as promptRemoteGatewayConfig, t as setupSkills, u as applyModelAllowlist } from "./onboard-skills-
|
|
19
|
-
import { n as setupChannels, t as noteChannelStatus } from "./onboard-channels-
|
|
20
|
-
import { l as healthCommand, n as ensureControlUiAssetsBuilt, t as formatHealthCheckFailure } from "./health-format-
|
|
21
|
-
import { t as resolveGatewayService } from "./service
|
|
22
|
-
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-
|
|
8
|
+
import { c as writeConfigFile, i as loadConfig, o as readConfigFileSnapshot } from "./config-aFQssWKX.js";
|
|
9
|
+
import { n as listChannelPlugins, t as getChannelPlugin } from "./plugins-X7d_tfTE.js";
|
|
10
|
+
import { n as withProgress } from "./progress-C9kngsTD.js";
|
|
11
|
+
import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint } from "./prompt-style-CIbmaxSa.js";
|
|
12
|
+
import { u as findTailscaleBinary } from "./auth-CQNl_IaI.js";
|
|
13
|
+
import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-Bsjeut6m.js";
|
|
14
|
+
import { n as logConfigUpdated } from "./logging-BAyPwvdH.js";
|
|
15
|
+
import { t as note$1 } from "./note-BhRSeNeu.js";
|
|
16
|
+
import { t as WizardCancelledError } from "./prompts-Bg96reub.js";
|
|
17
|
+
import { t as createClackPrompter } from "./clack-prompter-Bz3Mmcl-.js";
|
|
18
|
+
import { S as promptAuthChoiceGrouped, _ as applyAuthChoice, c as promptCustomApiConfig, d as applyModelFallbacksFromSelection, f as applyPrimaryModel, h as resolvePreferredProviderForAuthChoice, m as promptModelAllowlist, p as promptDefaultModel, r as promptRemoteGatewayConfig, t as setupSkills, u as applyModelAllowlist } from "./onboard-skills-rlBHcu3Q.js";
|
|
19
|
+
import { n as setupChannels, t as noteChannelStatus } from "./onboard-channels-Dxzroasd.js";
|
|
20
|
+
import { l as healthCommand, n as ensureControlUiAssetsBuilt, t as formatHealthCheckFailure } from "./health-format-KGPokKJH.js";
|
|
21
|
+
import { t as resolveGatewayService } from "./service--nPk7DvT.js";
|
|
22
|
+
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-NC2kl1SC.js";
|
|
23
23
|
import { confirm, intro, outro, select, text } from "@clack/prompts";
|
|
24
24
|
|
|
25
25
|
//#region src/commands/configure.shared.ts
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { c as writeConfigFile, i as loadConfig } from "./config-Bdhomfei.js";
|
|
2
|
+
import { i as resolveGatewayAuth } from "./auth-9x3lqfIY.js";
|
|
3
|
+
import crypto from "node:crypto";
|
|
4
|
+
|
|
5
|
+
//#region src/browser/control-auth.ts
|
|
6
|
+
function resolveBrowserControlAuth(cfg, env = process.env) {
|
|
7
|
+
const auth = resolveGatewayAuth({
|
|
8
|
+
authConfig: cfg?.gateway?.auth,
|
|
9
|
+
env,
|
|
10
|
+
tailscaleMode: cfg?.gateway?.tailscale?.mode
|
|
11
|
+
});
|
|
12
|
+
const token = typeof auth.token === "string" ? auth.token.trim() : "";
|
|
13
|
+
const password = typeof auth.password === "string" ? auth.password.trim() : "";
|
|
14
|
+
return {
|
|
15
|
+
token: token || void 0,
|
|
16
|
+
password: password || void 0
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function shouldAutoGenerateBrowserAuth(env) {
|
|
20
|
+
if ((env.NODE_ENV ?? "").trim().toLowerCase() === "test") return false;
|
|
21
|
+
const vitest = (env.VITEST ?? "").trim().toLowerCase();
|
|
22
|
+
if (vitest && vitest !== "0" && vitest !== "false" && vitest !== "off") return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
async function ensureBrowserControlAuth(params) {
|
|
26
|
+
const env = params.env ?? process.env;
|
|
27
|
+
const auth = resolveBrowserControlAuth(params.cfg, env);
|
|
28
|
+
if (auth.token || auth.password) return { auth };
|
|
29
|
+
if (!shouldAutoGenerateBrowserAuth(env)) return { auth };
|
|
30
|
+
if (params.cfg.gateway?.auth?.mode === "password") return { auth };
|
|
31
|
+
const latestCfg = loadConfig();
|
|
32
|
+
const latestAuth = resolveBrowserControlAuth(latestCfg, env);
|
|
33
|
+
if (latestAuth.token || latestAuth.password) return { auth: latestAuth };
|
|
34
|
+
if (latestCfg.gateway?.auth?.mode === "password") return { auth: latestAuth };
|
|
35
|
+
const generatedToken = crypto.randomBytes(24).toString("hex");
|
|
36
|
+
await writeConfigFile({
|
|
37
|
+
...latestCfg,
|
|
38
|
+
gateway: {
|
|
39
|
+
...latestCfg.gateway,
|
|
40
|
+
auth: {
|
|
41
|
+
...latestCfg.gateway?.auth,
|
|
42
|
+
mode: "token",
|
|
43
|
+
token: generatedToken
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
return {
|
|
48
|
+
auth: { token: generatedToken },
|
|
49
|
+
generatedToken
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
//#endregion
|
|
54
|
+
export { resolveBrowserControlAuth as n, ensureBrowserControlAuth as t };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { c as writeConfigFile, i as loadConfig } from "./config-aFQssWKX.js";
|
|
2
|
+
import { i as resolveGatewayAuth } from "./auth-CQNl_IaI.js";
|
|
3
|
+
import crypto from "node:crypto";
|
|
4
|
+
|
|
5
|
+
//#region src/browser/control-auth.ts
|
|
6
|
+
function resolveBrowserControlAuth(cfg, env = process.env) {
|
|
7
|
+
const auth = resolveGatewayAuth({
|
|
8
|
+
authConfig: cfg?.gateway?.auth,
|
|
9
|
+
env,
|
|
10
|
+
tailscaleMode: cfg?.gateway?.tailscale?.mode
|
|
11
|
+
});
|
|
12
|
+
const token = typeof auth.token === "string" ? auth.token.trim() : "";
|
|
13
|
+
const password = typeof auth.password === "string" ? auth.password.trim() : "";
|
|
14
|
+
return {
|
|
15
|
+
token: token || void 0,
|
|
16
|
+
password: password || void 0
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function shouldAutoGenerateBrowserAuth(env) {
|
|
20
|
+
if ((env.NODE_ENV ?? "").trim().toLowerCase() === "test") return false;
|
|
21
|
+
const vitest = (env.VITEST ?? "").trim().toLowerCase();
|
|
22
|
+
if (vitest && vitest !== "0" && vitest !== "false" && vitest !== "off") return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
async function ensureBrowserControlAuth(params) {
|
|
26
|
+
const env = params.env ?? process.env;
|
|
27
|
+
const auth = resolveBrowserControlAuth(params.cfg, env);
|
|
28
|
+
if (auth.token || auth.password) return { auth };
|
|
29
|
+
if (!shouldAutoGenerateBrowserAuth(env)) return { auth };
|
|
30
|
+
if (params.cfg.gateway?.auth?.mode === "password") return { auth };
|
|
31
|
+
const latestCfg = loadConfig();
|
|
32
|
+
const latestAuth = resolveBrowserControlAuth(latestCfg, env);
|
|
33
|
+
if (latestAuth.token || latestAuth.password) return { auth: latestAuth };
|
|
34
|
+
if (latestCfg.gateway?.auth?.mode === "password") return { auth: latestAuth };
|
|
35
|
+
const generatedToken = crypto.randomBytes(24).toString("hex");
|
|
36
|
+
await writeConfigFile({
|
|
37
|
+
...latestCfg,
|
|
38
|
+
gateway: {
|
|
39
|
+
...latestCfg.gateway,
|
|
40
|
+
auth: {
|
|
41
|
+
...latestCfg.gateway?.auth,
|
|
42
|
+
mode: "token",
|
|
43
|
+
token: generatedToken
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
return {
|
|
48
|
+
auth: { token: generatedToken },
|
|
49
|
+
generatedToken
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
//#endregion
|
|
54
|
+
export { resolveBrowserControlAuth as n, ensureBrowserControlAuth as t };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
3
|
-
import { i as loadConfig } from "./config-
|
|
4
|
-
import { w as ensureChromeExtensionRelayServer } from "./chrome-
|
|
5
|
-
import { a as resolveProfile, i as resolveBrowserConfig, t as createBrowserRouteContext } from "./server-context-
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-BoExtIHo.js";
|
|
3
|
+
import { i as loadConfig } from "./config-aFQssWKX.js";
|
|
4
|
+
import { w as ensureChromeExtensionRelayServer } from "./chrome-Cvr-57lg.js";
|
|
5
|
+
import { a as resolveProfile, i as resolveBrowserConfig, t as createBrowserRouteContext } from "./server-context-Cl0U0vE3.js";
|
|
6
|
+
import { t as ensureBrowserControlAuth } from "./control-auth-DBCu3qyv.js";
|
|
6
7
|
|
|
7
8
|
//#region src/browser/control-service.ts
|
|
8
9
|
var control_service_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -24,6 +25,11 @@ async function startBrowserControlServiceFromConfig() {
|
|
|
24
25
|
const cfg = loadConfig();
|
|
25
26
|
const resolved = resolveBrowserConfig(cfg.browser, cfg);
|
|
26
27
|
if (!resolved.enabled) return null;
|
|
28
|
+
try {
|
|
29
|
+
if ((await ensureBrowserControlAuth({ cfg })).generatedToken) logService.info("No browser auth configured; generated gateway.auth.token automatically.");
|
|
30
|
+
} catch (err) {
|
|
31
|
+
logService.warn(`failed to auto-configure browser auth: ${String(err)}`);
|
|
32
|
+
}
|
|
27
33
|
state = {
|
|
28
34
|
server: null,
|
|
29
35
|
port: resolved.controlPort,
|
|
@@ -53,7 +59,7 @@ async function stopBrowserControlService() {
|
|
|
53
59
|
}
|
|
54
60
|
state = null;
|
|
55
61
|
try {
|
|
56
|
-
await (await import("./pw-ai-
|
|
62
|
+
await (await import("./pw-ai-CM1IsSgZ.js")).closePlaywrightBrowserConnection();
|
|
57
63
|
} catch {}
|
|
58
64
|
}
|
|
59
65
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { o as createSubsystemLogger } from "./entry.js";
|
|
3
|
-
import { i as loadConfig } from "./config-
|
|
4
|
-
import { a as resolveBrowserConfig, o as resolveProfile, t as createBrowserRouteContext } from "./server-context-
|
|
5
|
-
import { x as ensureChromeExtensionRelayServer } from "./chrome-
|
|
3
|
+
import { i as loadConfig } from "./config-Bdhomfei.js";
|
|
4
|
+
import { a as resolveBrowserConfig, o as resolveProfile, t as createBrowserRouteContext } from "./server-context-BGpGs3qd.js";
|
|
5
|
+
import { x as ensureChromeExtensionRelayServer } from "./chrome-foEwx3lN.js";
|
|
6
|
+
import { t as ensureBrowserControlAuth } from "./control-auth-8Cf4WXpR.js";
|
|
6
7
|
|
|
7
8
|
//#region src/browser/control-service.ts
|
|
8
9
|
var control_service_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -24,6 +25,11 @@ async function startBrowserControlServiceFromConfig() {
|
|
|
24
25
|
const cfg = loadConfig();
|
|
25
26
|
const resolved = resolveBrowserConfig(cfg.browser, cfg);
|
|
26
27
|
if (!resolved.enabled) return null;
|
|
28
|
+
try {
|
|
29
|
+
if ((await ensureBrowserControlAuth({ cfg })).generatedToken) logService.info("No browser auth configured; generated gateway.auth.token automatically.");
|
|
30
|
+
} catch (err) {
|
|
31
|
+
logService.warn(`failed to auto-configure browser auth: ${String(err)}`);
|
|
32
|
+
}
|
|
27
33
|
state = {
|
|
28
34
|
server: null,
|
|
29
35
|
port: resolved.controlPort,
|
|
@@ -53,7 +59,7 @@ async function stopBrowserControlService() {
|
|
|
53
59
|
}
|
|
54
60
|
state = null;
|
|
55
61
|
try {
|
|
56
|
-
await (await import("./pw-ai-
|
|
62
|
+
await (await import("./pw-ai-8mdv3h-d.js")).closePlaywrightBrowserConnection();
|
|
57
63
|
} catch {}
|
|
58
64
|
}
|
|
59
65
|
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import "./paths-DVBShlw6.js";
|
|
2
|
-
import { E as danger, I as colorize, L as isRich, R as theme, c as defaultRuntime } from "./subsystem-
|
|
3
|
-
import "./utils-
|
|
2
|
+
import { E as danger, I as colorize, L as isRich, R as theme, c as defaultRuntime } from "./subsystem-BoExtIHo.js";
|
|
3
|
+
import "./utils-Cd9QdCHh.js";
|
|
4
4
|
import { p as sanitizeAgentId } from "./session-key-BWxPj0z_.js";
|
|
5
|
-
import "./exec-
|
|
6
|
-
import "./agent-scope
|
|
7
|
-
import "./model-selection-
|
|
5
|
+
import "./exec-YIosokWE.js";
|
|
6
|
+
import "./agent-scope-CQCus0rI.js";
|
|
7
|
+
import "./model-selection-BLuqsGVB.js";
|
|
8
8
|
import "./github-copilot-token-BW-SEg7E.js";
|
|
9
9
|
import "./boolean-BgXe2hyu.js";
|
|
10
|
-
import "./env-
|
|
11
|
-
import "./config-
|
|
12
|
-
import "./manifest-registry-
|
|
13
|
-
import { n as listChannelPlugins } from "./plugins-
|
|
14
|
-
import "./message-channel-
|
|
10
|
+
import "./env-ONzUVAG2.js";
|
|
11
|
+
import "./config-aFQssWKX.js";
|
|
12
|
+
import "./manifest-registry-CQhdnDBZ.js";
|
|
13
|
+
import { n as listChannelPlugins } from "./plugins-X7d_tfTE.js";
|
|
14
|
+
import "./message-channel-BLi2a6Yw.js";
|
|
15
15
|
import "./logging-fywhKCmE.js";
|
|
16
|
-
import "./accounts-
|
|
17
|
-
import "./client-
|
|
18
|
-
import "./call-
|
|
16
|
+
import "./accounts-DeqIQjo1.js";
|
|
17
|
+
import "./client-BrYfyoDK.js";
|
|
18
|
+
import "./call-SolyGS1r.js";
|
|
19
19
|
import { n as formatDurationHuman } from "./format-duration-84n6_DgO.js";
|
|
20
|
-
import { t as formatDocsLink } from "./links-
|
|
21
|
-
import "./progress-
|
|
22
|
-
import { t as parseAbsoluteTimeMs } from "./parse-
|
|
23
|
-
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-
|
|
20
|
+
import { t as formatDocsLink } from "./links-Eax1UO3w.js";
|
|
21
|
+
import "./progress-C9kngsTD.js";
|
|
22
|
+
import { t as parseAbsoluteTimeMs } from "./parse-Bw0oH-rT.js";
|
|
23
|
+
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-wXSCUZXj.js";
|
|
24
24
|
import { n as parsePositiveIntOrUndefined } from "./helpers-8O7IVGO-.js";
|
|
25
25
|
|
|
26
26
|
//#region src/cli/cron-cli/shared.ts
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./auth-profiles-
|
|
1
|
+
import { A as theme, O as colorize, k as isRich, p as defaultRuntime, v as danger } from "./entry.js";
|
|
2
|
+
import "./auth-profiles-ByNs3eEm.js";
|
|
3
3
|
import { p as sanitizeAgentId } from "./session-key-DVvxnFKg.js";
|
|
4
|
-
import "./utils-
|
|
5
|
-
import "./exec-
|
|
6
|
-
import "./agent-scope-
|
|
7
|
-
import "./github-copilot-token-
|
|
8
|
-
import "./config-
|
|
9
|
-
import "./manifest-registry-
|
|
10
|
-
import "./client-
|
|
11
|
-
import "./call-
|
|
12
|
-
import "./message-channel-
|
|
13
|
-
import { t as formatDocsLink } from "./links-
|
|
14
|
-
import { n as listChannelPlugins } from "./plugins-
|
|
4
|
+
import "./utils-BLJAc3ZV.js";
|
|
5
|
+
import "./exec-CACT5OAW.js";
|
|
6
|
+
import "./agent-scope-CsRbLH4l.js";
|
|
7
|
+
import "./github-copilot-token-Cfs0Wxr8.js";
|
|
8
|
+
import "./config-Bdhomfei.js";
|
|
9
|
+
import "./manifest-registry-u0okVSkU.js";
|
|
10
|
+
import "./client-CTwXnRl7.js";
|
|
11
|
+
import "./call-DVYCIV8m.js";
|
|
12
|
+
import "./message-channel-C_MmebBt.js";
|
|
13
|
+
import { t as formatDocsLink } from "./links-B8LAzWwg.js";
|
|
14
|
+
import { n as listChannelPlugins } from "./plugins-4Hqd1WGf.js";
|
|
15
15
|
import "./logging-CfEk_PnX.js";
|
|
16
|
-
import "./accounts-
|
|
17
|
-
import "./progress-
|
|
16
|
+
import "./accounts-DCDeFTra.js";
|
|
17
|
+
import "./progress-DWqhRakV.js";
|
|
18
18
|
import { n as formatDurationHuman } from "./format-duration-Bo9zNKwO.js";
|
|
19
19
|
import { t as parseAbsoluteTimeMs } from "./parse-ioZhOtha.js";
|
|
20
20
|
import { n as parsePositiveIntOrUndefined } from "./helpers-D_jqdWkd.js";
|
|
21
|
-
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-
|
|
21
|
+
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-BByb2Snz.js";
|
|
22
22
|
|
|
23
23
|
//#region src/cli/cron-cli/shared.ts
|
|
24
24
|
const getCronChannelOptions = () => ["last", ...listChannelPlugins().map((plugin) => plugin.id)].join("|");
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { d as resolveIsNixMode, g as resolveStateDir, o as resolveConfigPath, u as resolveGatewayPort } from "./paths-DVBShlw6.js";
|
|
3
|
-
import { I as colorize, L as isRich, R as theme, V as getResolvedLoggerSettings, c as defaultRuntime } from "./subsystem-
|
|
4
|
-
import { C as shortenHomePath } from "./utils-
|
|
5
|
-
import { Mt as resolveControlUiLinks, jt as randomToken } from "./reply-
|
|
3
|
+
import { I as colorize, L as isRich, R as theme, V as getResolvedLoggerSettings, c as defaultRuntime } from "./subsystem-BoExtIHo.js";
|
|
4
|
+
import { C as shortenHomePath } from "./utils-Cd9QdCHh.js";
|
|
5
|
+
import { Mt as resolveControlUiLinks, jt as randomToken } from "./reply-DICXkh_C.js";
|
|
6
6
|
import { t as formatCliCommand } from "./command-format-ChfKqObn.js";
|
|
7
|
-
import { c as writeConfigFile, i as loadConfig, o as readConfigFileSnapshot, r as createConfigIO } from "./config-
|
|
8
|
-
import { d as inspectPortUsage, p as formatPortDiagnostics } from "./chrome-
|
|
7
|
+
import { c as writeConfigFile, i as loadConfig, o as readConfigFileSnapshot, r as createConfigIO } from "./config-aFQssWKX.js";
|
|
8
|
+
import { d as inspectPortUsage, p as formatPortDiagnostics } from "./chrome-Cvr-57lg.js";
|
|
9
9
|
import { t as pickPrimaryTailnetIPv4 } from "./tailnet-DATIFSsY.js";
|
|
10
10
|
import { c as resolveGatewayBindHost } from "./ws-CHCQHs0F.js";
|
|
11
|
-
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-
|
|
12
|
-
import { n as isWSL, r as isWSLEnv } from "./dispatcher-
|
|
13
|
-
import { n as callGateway } from "./call-
|
|
14
|
-
import { t as formatDocsLink } from "./links-
|
|
15
|
-
import { n as withProgress } from "./progress-
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { i as
|
|
20
|
-
import { o as resolveGatewayLogPaths, t as resolveGatewayService } from "./service
|
|
21
|
-
import { r as isSystemdUserServiceAvailable } from "./systemd-
|
|
22
|
-
import { a as renderGatewayServiceCleanupHints, i as findExtraGatewayServices, n as auditGatewayServiceConfig, o as readLastGatewayErrorLine } from "./service-audit-
|
|
11
|
+
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-BLi2a6Yw.js";
|
|
12
|
+
import { n as isWSL, r as isWSLEnv } from "./dispatcher-DY51b-Zc.js";
|
|
13
|
+
import { n as callGateway } from "./call-SolyGS1r.js";
|
|
14
|
+
import { t as formatDocsLink } from "./links-Eax1UO3w.js";
|
|
15
|
+
import { n as withProgress } from "./progress-C9kngsTD.js";
|
|
16
|
+
import { i as resolveGatewayAuth } from "./auth-CQNl_IaI.js";
|
|
17
|
+
import { d as resolveGatewaySystemdServiceName, l as resolveGatewayLaunchAgentLabel } from "./constants-BvQ6S8j5.js";
|
|
18
|
+
import { t as createDefaultDeps } from "./deps-lAAA2zYI.js";
|
|
19
|
+
import { i as buildGatewayInstallPlan, r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-Bsjeut6m.js";
|
|
20
|
+
import { o as resolveGatewayLogPaths, t as resolveGatewayService } from "./service--nPk7DvT.js";
|
|
21
|
+
import { r as isSystemdUserServiceAvailable } from "./systemd-DrmBtJ5T.js";
|
|
22
|
+
import { a as renderGatewayServiceCleanupHints, i as findExtraGatewayServices, n as auditGatewayServiceConfig, o as readLastGatewayErrorLine } from "./service-audit-DnLmRGQt.js";
|
|
23
23
|
import { n as renderSystemdUnavailableHints, t as isSystemdUnavailableDetail } from "./systemd-hints-CXNtLw9Q.js";
|
|
24
|
-
import { a as parsePortFromArgs, c as renderRuntimeHints, d as createNullWriter, f as emitDaemonActionJson, i as parsePort, l as safeDaemonEnv, n as formatRuntimeStatus, o as pickProbeHostForBind, r as normalizeListenerAddress, s as renderGatewayServiceStartHints, t as filterDaemonEnv, u as buildDaemonServiceSnapshot } from "./shared-
|
|
24
|
+
import { a as parsePortFromArgs, c as renderRuntimeHints, d as createNullWriter, f as emitDaemonActionJson, i as parsePort, l as safeDaemonEnv, n as formatRuntimeStatus, o as pickProbeHostForBind, r as normalizeListenerAddress, s as renderGatewayServiceStartHints, t as filterDaemonEnv, u as buildDaemonServiceSnapshot } from "./shared-DRohONn_.js";
|
|
25
25
|
|
|
26
26
|
//#region src/cli/daemon-cli/install.ts
|
|
27
27
|
async function runDaemonInstall(opts) {
|