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,3 +1,4 @@
|
|
|
1
|
+
import type { SsrFPolicy } from "../infra/net/ssrf.js";
|
|
1
2
|
export type InputImageContent = {
|
|
2
3
|
type: "image";
|
|
3
4
|
data: string;
|
|
@@ -15,6 +16,7 @@ export type InputPdfLimits = {
|
|
|
15
16
|
};
|
|
16
17
|
export type InputFileLimits = {
|
|
17
18
|
allowUrl: boolean;
|
|
19
|
+
urlAllowlist?: string[];
|
|
18
20
|
allowedMimes: Set<string>;
|
|
19
21
|
maxBytes: number;
|
|
20
22
|
maxChars: number;
|
|
@@ -24,6 +26,7 @@ export type InputFileLimits = {
|
|
|
24
26
|
};
|
|
25
27
|
export type InputImageLimits = {
|
|
26
28
|
allowUrl: boolean;
|
|
29
|
+
urlAllowlist?: string[];
|
|
27
30
|
allowedMimes: Set<string>;
|
|
28
31
|
maxBytes: number;
|
|
29
32
|
maxRedirects: number;
|
|
@@ -68,6 +71,8 @@ export declare function fetchWithGuard(params: {
|
|
|
68
71
|
maxBytes: number;
|
|
69
72
|
timeoutMs: number;
|
|
70
73
|
maxRedirects: number;
|
|
74
|
+
policy?: SsrFPolicy;
|
|
75
|
+
auditContext?: string;
|
|
71
76
|
}): Promise<InputFetchResult>;
|
|
72
77
|
export declare function extractImageContentFromSource(source: InputImageSource, limits: InputImageLimits): Promise<InputImageContent>;
|
|
73
78
|
export declare function extractFileContentFromSource(params: {
|
|
@@ -15,6 +15,8 @@ export type ResolveAgentRouteInput = {
|
|
|
15
15
|
parentPeer?: RoutePeer | null;
|
|
16
16
|
guildId?: string | null;
|
|
17
17
|
teamId?: string | null;
|
|
18
|
+
/** Discord member role IDs — used for role-based agent routing. */
|
|
19
|
+
memberRoleIds?: string[];
|
|
18
20
|
};
|
|
19
21
|
export type ResolvedAgentRoute = {
|
|
20
22
|
agentId: string;
|
|
@@ -25,7 +27,7 @@ export type ResolvedAgentRoute = {
|
|
|
25
27
|
/** Convenience alias for direct-chat collapse. */
|
|
26
28
|
mainSessionKey: string;
|
|
27
29
|
/** Match description for debugging/logging. */
|
|
28
|
-
matchedBy: "binding.peer" | "binding.peer.parent" | "binding.guild" | "binding.team" | "binding.account" | "binding.channel" | "default";
|
|
30
|
+
matchedBy: "binding.peer" | "binding.peer.parent" | "binding.guild+roles" | "binding.guild" | "binding.team" | "binding.account" | "binding.channel" | "default";
|
|
29
31
|
};
|
|
30
32
|
export { DEFAULT_ACCOUNT_ID, DEFAULT_AGENT_ID } from "./session-key.js";
|
|
31
33
|
export declare function buildAgentSessionKey(params: {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* Check if content contains suspicious patterns that may indicate injection.
|
|
12
12
|
*/
|
|
13
13
|
export declare function detectSuspiciousPatterns(content: string): string[];
|
|
14
|
-
export type ExternalContentSource = "email" | "webhook" | "api" | "channel_metadata" | "web_search" | "web_fetch" | "unknown";
|
|
14
|
+
export type ExternalContentSource = "email" | "webhook" | "api" | "browser" | "channel_metadata" | "web_search" | "web_fetch" | "unknown";
|
|
15
15
|
export type WrapExternalContentOptions = {
|
|
16
16
|
/** Source of the external content */
|
|
17
17
|
source: ExternalContentSource;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function safeEqualSecret(provided: string | undefined | null, expected: string | undefined | null): boolean;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { AgentMessage } from "@mariozechner/pi-agent-core";
|
|
2
|
+
export declare const INPUT_PROVENANCE_KIND_VALUES: readonly ["external_user", "inter_session", "internal_system"];
|
|
3
|
+
export type InputProvenanceKind = (typeof INPUT_PROVENANCE_KIND_VALUES)[number];
|
|
4
|
+
export type InputProvenance = {
|
|
5
|
+
kind: InputProvenanceKind;
|
|
6
|
+
sourceSessionKey?: string;
|
|
7
|
+
sourceChannel?: string;
|
|
8
|
+
sourceTool?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare function normalizeInputProvenance(value: unknown): InputProvenance | undefined;
|
|
11
|
+
export declare function applyInputProvenanceToUserMessage(message: AgentMessage, inputProvenance: InputProvenance | undefined): AgentMessage;
|
|
12
|
+
export declare function isInterSessionInputProvenance(value: unknown): boolean;
|
|
13
|
+
export declare function hasInterSessionUserProvenance(message: {
|
|
14
|
+
role?: unknown;
|
|
15
|
+
provenance?: unknown;
|
|
16
|
+
} | undefined): boolean;
|
|
@@ -16,10 +16,18 @@ export type SignalEnvelope = {
|
|
|
16
16
|
syncMessage?: unknown;
|
|
17
17
|
reactionMessage?: SignalReactionMessage | null;
|
|
18
18
|
};
|
|
19
|
+
export type SignalMention = {
|
|
20
|
+
name?: string | null;
|
|
21
|
+
number?: string | null;
|
|
22
|
+
uuid?: string | null;
|
|
23
|
+
start?: number | null;
|
|
24
|
+
length?: number | null;
|
|
25
|
+
};
|
|
19
26
|
export type SignalDataMessage = {
|
|
20
27
|
timestamp?: number;
|
|
21
28
|
message?: string | null;
|
|
22
29
|
attachments?: Array<SignalAttachment>;
|
|
30
|
+
mentions?: Array<SignalMention> | null;
|
|
23
31
|
groupInfo?: {
|
|
24
32
|
groupId?: string | null;
|
|
25
33
|
groupName?: string | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ct as normalizeChatChannelId, et as CHAT_CHANNEL_ORDER, n as isTruthyEnvValue, ot as normalizeAnyChannelId, ut as requireActivePluginRegistry } from "./entry.js";
|
|
2
2
|
import { c as normalizeAccountId, l as normalizeAgentId, t as DEFAULT_ACCOUNT_ID } from "./session-key-DVvxnFKg.js";
|
|
3
|
-
import { m as normalizeE164 } from "./utils-
|
|
4
|
-
import { c as resolveDefaultAgentId } from "./agent-scope-
|
|
3
|
+
import { m as normalizeE164 } from "./utils-BLJAc3ZV.js";
|
|
4
|
+
import { c as resolveDefaultAgentId } from "./agent-scope-CsRbLH4l.js";
|
|
5
5
|
import fs from "node:fs";
|
|
6
6
|
|
|
7
7
|
//#region src/discord/token.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as normalizeChatChannelId, b as normalizeAnyChannelId, m as CHAT_CHANNEL_ORDER, w as requireActivePluginRegistry } from "./subsystem-
|
|
2
|
-
import { h as normalizeE164 } from "./utils-
|
|
1
|
+
import { S as normalizeChatChannelId, b as normalizeAnyChannelId, m as CHAT_CHANNEL_ORDER, w as requireActivePluginRegistry } from "./subsystem-BoExtIHo.js";
|
|
2
|
+
import { h as normalizeE164 } from "./utils-Cd9QdCHh.js";
|
|
3
3
|
import { c as normalizeAccountId, l as normalizeAgentId, t as DEFAULT_ACCOUNT_ID } from "./session-key-BWxPj0z_.js";
|
|
4
|
-
import { c as resolveDefaultAgentId } from "./agent-scope
|
|
5
|
-
import { t as isTruthyEnvValue } from "./env-
|
|
4
|
+
import { c as resolveDefaultAgentId } from "./agent-scope-CQCus0rI.js";
|
|
5
|
+
import { t as isTruthyEnvValue } from "./env-ONzUVAG2.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
|
|
8
8
|
//#region src/channels/chat-type.ts
|
|
@@ -1,54 +1,58 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./auth-profiles-
|
|
3
|
-
import { S as shortenHomePath, g as resolveConfigDir, x as shortenHomeInString, y as resolveUserPath } from "./utils-
|
|
4
|
-
import "./exec-
|
|
5
|
-
import "./agent-scope-
|
|
6
|
-
import "./github-copilot-token-
|
|
1
|
+
import { A as theme, Z as resolveStateDir, p as defaultRuntime } from "./entry.js";
|
|
2
|
+
import "./auth-profiles-ByNs3eEm.js";
|
|
3
|
+
import { S as shortenHomePath, g as resolveConfigDir, x as shortenHomeInString, y as resolveUserPath } from "./utils-BLJAc3ZV.js";
|
|
4
|
+
import "./exec-CACT5OAW.js";
|
|
5
|
+
import "./agent-scope-CsRbLH4l.js";
|
|
6
|
+
import "./github-copilot-token-Cfs0Wxr8.js";
|
|
7
7
|
import "./pi-model-discovery-DzEIEgHL.js";
|
|
8
|
-
import { c as writeConfigFile, i as loadConfig } from "./config-
|
|
9
|
-
import { f as applyExclusiveSlotSelection, o as resolveBundledPluginsDir } from "./manifest-registry-
|
|
10
|
-
import "./server-context-
|
|
11
|
-
import "./chrome-
|
|
12
|
-
import "./
|
|
13
|
-
import "./
|
|
14
|
-
import "./
|
|
15
|
-
import "./
|
|
16
|
-
import
|
|
17
|
-
import "./
|
|
8
|
+
import { c as writeConfigFile, i as loadConfig } from "./config-Bdhomfei.js";
|
|
9
|
+
import { f as applyExclusiveSlotSelection, o as resolveBundledPluginsDir, p as defaultSlotIdForKey } from "./manifest-registry-u0okVSkU.js";
|
|
10
|
+
import "./server-context-BGpGs3qd.js";
|
|
11
|
+
import "./chrome-foEwx3lN.js";
|
|
12
|
+
import { p as promptYesNo } from "./auth-9x3lqfIY.js";
|
|
13
|
+
import "./control-auth-8Cf4WXpR.js";
|
|
14
|
+
import "./control-service-DKnttEus.js";
|
|
15
|
+
import "./client-CTwXnRl7.js";
|
|
16
|
+
import "./call-DVYCIV8m.js";
|
|
17
|
+
import "./message-channel-C_MmebBt.js";
|
|
18
|
+
import { t as formatDocsLink } from "./links-B8LAzWwg.js";
|
|
19
|
+
import "./plugins-4Hqd1WGf.js";
|
|
18
20
|
import "./logging-CfEk_PnX.js";
|
|
19
|
-
import "./accounts-
|
|
20
|
-
import "./loader-
|
|
21
|
-
import "./progress-
|
|
22
|
-
import "./prompt-style-
|
|
21
|
+
import "./accounts-DCDeFTra.js";
|
|
22
|
+
import "./loader-KjT074JR.js";
|
|
23
|
+
import "./progress-DWqhRakV.js";
|
|
24
|
+
import "./prompt-style-BFH5D5LN.js";
|
|
23
25
|
import { i as resolveArchiveKind } from "./archive-D0z3LZDK.js";
|
|
24
|
-
import "./skill-scanner-
|
|
25
|
-
import { n as installPluginFromNpmSpec, r as installPluginFromPath, t as recordPluginInstall } from "./installs-
|
|
26
|
-
import "./
|
|
27
|
-
import "./
|
|
28
|
-
import "./
|
|
29
|
-
import "./
|
|
30
|
-
import "./
|
|
31
|
-
import "./
|
|
32
|
-
import "./
|
|
33
|
-
import "./fetch-timeout-
|
|
34
|
-
import "./sandbox-
|
|
35
|
-
import "./tui-formatters-
|
|
36
|
-
import "./wsl-
|
|
37
|
-
import "./skills-
|
|
38
|
-
import "./image-
|
|
39
|
-
import "./tool-display-
|
|
40
|
-
import "./channel-selection-
|
|
41
|
-
import "./session-cost-usage-
|
|
42
|
-
import "./runner-
|
|
43
|
-
import "./commands-
|
|
44
|
-
import "./pairing-store-
|
|
45
|
-
import "./login-qr-
|
|
46
|
-
import "./pairing-labels-
|
|
47
|
-
import { t as renderTable } from "./table-
|
|
48
|
-
import { t as buildPluginStatusReport } from "./status-
|
|
49
|
-
import { n as updateNpmInstalledPlugins } from "./update-
|
|
26
|
+
import "./skill-scanner-rHMtUHtP.js";
|
|
27
|
+
import { i as resolvePluginInstallDir, n as installPluginFromNpmSpec, r as installPluginFromPath, t as recordPluginInstall } from "./installs-CrLcWYHe.js";
|
|
28
|
+
import "./deliver-CIU9Npgs.js";
|
|
29
|
+
import "./manager-T1XfGchB.js";
|
|
30
|
+
import "./paths-DLINmNFQ.js";
|
|
31
|
+
import "./sqlite-BINzs1U0.js";
|
|
32
|
+
import "./redact-Br9GfacZ.js";
|
|
33
|
+
import "./routes-DewK5tq2.js";
|
|
34
|
+
import "./pi-embedded-helpers-DfwkwPYD.js";
|
|
35
|
+
import "./fetch-timeout-DTK9vxex.js";
|
|
36
|
+
import "./sandbox-BKYnhYQH.js";
|
|
37
|
+
import "./tui-formatters-DePhZK3J.js";
|
|
38
|
+
import "./wsl-BUOkxKJu.js";
|
|
39
|
+
import "./skills-DRjfSQT3.js";
|
|
40
|
+
import "./image-DgtfXMcX.js";
|
|
41
|
+
import "./tool-display-ClRud3pg.js";
|
|
42
|
+
import "./channel-selection-D4D6ImhN.js";
|
|
43
|
+
import "./session-cost-usage-D9hHANWI.js";
|
|
44
|
+
import "./runner-CY0nmVme.js";
|
|
45
|
+
import "./commands-BX_OIIVR.js";
|
|
46
|
+
import "./pairing-store-Dp5_JGnG.js";
|
|
47
|
+
import "./login-qr-CuvemJj4.js";
|
|
48
|
+
import "./pairing-labels-CgNHnjzT.js";
|
|
49
|
+
import { t as renderTable } from "./table-CwulTLQp.js";
|
|
50
|
+
import { t as buildPluginStatusReport } from "./status-BKGkKC_v.js";
|
|
51
|
+
import { n as updateNpmInstalledPlugins } from "./update-DU1geolI.js";
|
|
50
52
|
import path from "node:path";
|
|
53
|
+
import os from "node:os";
|
|
51
54
|
import fs from "node:fs";
|
|
55
|
+
import fs$1 from "node:fs/promises";
|
|
52
56
|
|
|
53
57
|
//#region src/plugins/source-display.ts
|
|
54
58
|
function tryRelative(root, filePath) {
|
|
@@ -92,6 +96,144 @@ function formatPluginSourceForTable(plugin, roots) {
|
|
|
92
96
|
return { value: shortenHomeInString(raw) };
|
|
93
97
|
}
|
|
94
98
|
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region src/plugins/uninstall.ts
|
|
101
|
+
function resolveUninstallDirectoryTarget(params) {
|
|
102
|
+
if (!params.hasInstall) return null;
|
|
103
|
+
if (params.installRecord?.source === "path") return null;
|
|
104
|
+
let defaultPath;
|
|
105
|
+
try {
|
|
106
|
+
defaultPath = resolvePluginInstallDir(params.pluginId, params.extensionsDir);
|
|
107
|
+
} catch {
|
|
108
|
+
return null;
|
|
109
|
+
}
|
|
110
|
+
const configuredPath = params.installRecord?.installPath;
|
|
111
|
+
if (!configuredPath) return defaultPath;
|
|
112
|
+
if (path.resolve(configuredPath) === path.resolve(defaultPath)) return configuredPath;
|
|
113
|
+
return defaultPath;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Remove plugin references from config (pure config mutation).
|
|
117
|
+
* Returns a new config with the plugin removed from entries, installs, allow, load.paths, and slots.
|
|
118
|
+
*/
|
|
119
|
+
function removePluginFromConfig(cfg, pluginId) {
|
|
120
|
+
const actions = {
|
|
121
|
+
entry: false,
|
|
122
|
+
install: false,
|
|
123
|
+
allowlist: false,
|
|
124
|
+
loadPath: false,
|
|
125
|
+
memorySlot: false
|
|
126
|
+
};
|
|
127
|
+
const pluginsConfig = cfg.plugins ?? {};
|
|
128
|
+
let entries = pluginsConfig.entries;
|
|
129
|
+
if (entries && pluginId in entries) {
|
|
130
|
+
const { [pluginId]: _, ...rest } = entries;
|
|
131
|
+
entries = Object.keys(rest).length > 0 ? rest : void 0;
|
|
132
|
+
actions.entry = true;
|
|
133
|
+
}
|
|
134
|
+
let installs = pluginsConfig.installs;
|
|
135
|
+
const installRecord = installs?.[pluginId];
|
|
136
|
+
if (installs && pluginId in installs) {
|
|
137
|
+
const { [pluginId]: _, ...rest } = installs;
|
|
138
|
+
installs = Object.keys(rest).length > 0 ? rest : void 0;
|
|
139
|
+
actions.install = true;
|
|
140
|
+
}
|
|
141
|
+
let allow = pluginsConfig.allow;
|
|
142
|
+
if (Array.isArray(allow) && allow.includes(pluginId)) {
|
|
143
|
+
allow = allow.filter((id) => id !== pluginId);
|
|
144
|
+
if (allow.length === 0) allow = void 0;
|
|
145
|
+
actions.allowlist = true;
|
|
146
|
+
}
|
|
147
|
+
let load = pluginsConfig.load;
|
|
148
|
+
if (installRecord?.source === "path" && installRecord.sourcePath) {
|
|
149
|
+
const sourcePath = installRecord.sourcePath;
|
|
150
|
+
const loadPaths = load?.paths;
|
|
151
|
+
if (Array.isArray(loadPaths) && loadPaths.includes(sourcePath)) {
|
|
152
|
+
const nextLoadPaths = loadPaths.filter((p) => p !== sourcePath);
|
|
153
|
+
load = nextLoadPaths.length > 0 ? {
|
|
154
|
+
...load,
|
|
155
|
+
paths: nextLoadPaths
|
|
156
|
+
} : void 0;
|
|
157
|
+
actions.loadPath = true;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
let slots = pluginsConfig.slots;
|
|
161
|
+
if (slots?.memory === pluginId) {
|
|
162
|
+
slots = {
|
|
163
|
+
...slots,
|
|
164
|
+
memory: defaultSlotIdForKey("memory")
|
|
165
|
+
};
|
|
166
|
+
actions.memorySlot = true;
|
|
167
|
+
}
|
|
168
|
+
if (slots && Object.keys(slots).length === 0) slots = void 0;
|
|
169
|
+
const cleanedPlugins = {
|
|
170
|
+
...pluginsConfig,
|
|
171
|
+
entries,
|
|
172
|
+
installs,
|
|
173
|
+
allow,
|
|
174
|
+
load,
|
|
175
|
+
slots
|
|
176
|
+
};
|
|
177
|
+
if (cleanedPlugins.entries === void 0) delete cleanedPlugins.entries;
|
|
178
|
+
if (cleanedPlugins.installs === void 0) delete cleanedPlugins.installs;
|
|
179
|
+
if (cleanedPlugins.allow === void 0) delete cleanedPlugins.allow;
|
|
180
|
+
if (cleanedPlugins.load === void 0) delete cleanedPlugins.load;
|
|
181
|
+
if (cleanedPlugins.slots === void 0) delete cleanedPlugins.slots;
|
|
182
|
+
return {
|
|
183
|
+
config: {
|
|
184
|
+
...cfg,
|
|
185
|
+
plugins: Object.keys(cleanedPlugins).length > 0 ? cleanedPlugins : void 0
|
|
186
|
+
},
|
|
187
|
+
actions
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Uninstall a plugin by removing it from config and optionally deleting installed files.
|
|
192
|
+
* Linked plugins (source === "path") never have their source directory deleted.
|
|
193
|
+
*/
|
|
194
|
+
async function uninstallPlugin(params) {
|
|
195
|
+
const { config, pluginId, deleteFiles = true, extensionsDir } = params;
|
|
196
|
+
const hasEntry = pluginId in (config.plugins?.entries ?? {});
|
|
197
|
+
const hasInstall = pluginId in (config.plugins?.installs ?? {});
|
|
198
|
+
if (!hasEntry && !hasInstall) return {
|
|
199
|
+
ok: false,
|
|
200
|
+
error: `Plugin not found: ${pluginId}`
|
|
201
|
+
};
|
|
202
|
+
const installRecord = config.plugins?.installs?.[pluginId];
|
|
203
|
+
const isLinked = installRecord?.source === "path";
|
|
204
|
+
const { config: newConfig, actions: configActions } = removePluginFromConfig(config, pluginId);
|
|
205
|
+
const actions = {
|
|
206
|
+
...configActions,
|
|
207
|
+
directory: false
|
|
208
|
+
};
|
|
209
|
+
const warnings = [];
|
|
210
|
+
const deleteTarget = deleteFiles && !isLinked ? resolveUninstallDirectoryTarget({
|
|
211
|
+
pluginId,
|
|
212
|
+
hasInstall,
|
|
213
|
+
installRecord,
|
|
214
|
+
extensionsDir
|
|
215
|
+
}) : null;
|
|
216
|
+
if (deleteTarget) {
|
|
217
|
+
const existed = await fs$1.access(deleteTarget).then(() => true).catch(() => false) ?? false;
|
|
218
|
+
try {
|
|
219
|
+
await fs$1.rm(deleteTarget, {
|
|
220
|
+
recursive: true,
|
|
221
|
+
force: true
|
|
222
|
+
});
|
|
223
|
+
actions.directory = existed;
|
|
224
|
+
} catch (error) {
|
|
225
|
+
warnings.push(`Failed to remove plugin directory ${deleteTarget}: ${error instanceof Error ? error.message : String(error)}`);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
return {
|
|
229
|
+
ok: true,
|
|
230
|
+
config: newConfig,
|
|
231
|
+
pluginId,
|
|
232
|
+
actions,
|
|
233
|
+
warnings
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
|
|
95
237
|
//#endregion
|
|
96
238
|
//#region src/cli/plugins-cli.ts
|
|
97
239
|
function formatPluginLine(plugin, verbose = false) {
|
|
@@ -302,6 +444,71 @@ function registerPluginsCli(program) {
|
|
|
302
444
|
});
|
|
303
445
|
defaultRuntime.log(`Disabled plugin "${id}". Restart the gateway to apply.`);
|
|
304
446
|
});
|
|
447
|
+
plugins.command("uninstall").description("Uninstall a plugin").argument("<id>", "Plugin id").option("--keep-files", "Keep installed files on disk", false).option("--keep-config", "Deprecated alias for --keep-files", false).option("--force", "Skip confirmation prompt", false).option("--dry-run", "Show what would be removed without making changes", false).action(async (id, opts) => {
|
|
448
|
+
const cfg = loadConfig();
|
|
449
|
+
const report = buildPluginStatusReport({ config: cfg });
|
|
450
|
+
const extensionsDir = path.join(resolveStateDir(process.env, os.homedir), "extensions");
|
|
451
|
+
const keepFiles = Boolean(opts.keepFiles || opts.keepConfig);
|
|
452
|
+
if (opts.keepConfig) defaultRuntime.log(theme.warn("`--keep-config` is deprecated, use `--keep-files`."));
|
|
453
|
+
const plugin = report.plugins.find((p) => p.id === id || p.name === id);
|
|
454
|
+
const pluginId = plugin?.id ?? id;
|
|
455
|
+
const hasEntry = pluginId in (cfg.plugins?.entries ?? {});
|
|
456
|
+
const hasInstall = pluginId in (cfg.plugins?.installs ?? {});
|
|
457
|
+
if (!hasEntry && !hasInstall) {
|
|
458
|
+
if (plugin) defaultRuntime.error(`Plugin "${pluginId}" is not managed by plugins config/install records and cannot be uninstalled.`);
|
|
459
|
+
else defaultRuntime.error(`Plugin not found: ${id}`);
|
|
460
|
+
process.exit(1);
|
|
461
|
+
}
|
|
462
|
+
const install = cfg.plugins?.installs?.[pluginId];
|
|
463
|
+
const isLinked = install?.source === "path";
|
|
464
|
+
const preview = [];
|
|
465
|
+
if (hasEntry) preview.push("config entry");
|
|
466
|
+
if (hasInstall) preview.push("install record");
|
|
467
|
+
if (cfg.plugins?.allow?.includes(pluginId)) preview.push("allowlist entry");
|
|
468
|
+
if (isLinked && install?.sourcePath && cfg.plugins?.load?.paths?.includes(install.sourcePath)) preview.push("load path");
|
|
469
|
+
if (cfg.plugins?.slots?.memory === pluginId) preview.push(`memory slot (will reset to "memory-core")`);
|
|
470
|
+
const deleteTarget = !keepFiles ? resolveUninstallDirectoryTarget({
|
|
471
|
+
pluginId,
|
|
472
|
+
hasInstall,
|
|
473
|
+
installRecord: install,
|
|
474
|
+
extensionsDir
|
|
475
|
+
}) : null;
|
|
476
|
+
if (deleteTarget) preview.push(`directory: ${shortenHomePath(deleteTarget)}`);
|
|
477
|
+
const pluginName = plugin?.name || pluginId;
|
|
478
|
+
defaultRuntime.log(`Plugin: ${theme.command(pluginName)}${pluginName !== pluginId ? theme.muted(` (${pluginId})`) : ""}`);
|
|
479
|
+
defaultRuntime.log(`Will remove: ${preview.length > 0 ? preview.join(", ") : "(nothing)"}`);
|
|
480
|
+
if (opts.dryRun) {
|
|
481
|
+
defaultRuntime.log(theme.muted("Dry run, no changes made."));
|
|
482
|
+
return;
|
|
483
|
+
}
|
|
484
|
+
if (!opts.force) {
|
|
485
|
+
if (!await promptYesNo(`Uninstall plugin "${pluginId}"?`)) {
|
|
486
|
+
defaultRuntime.log("Cancelled.");
|
|
487
|
+
return;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
const result = await uninstallPlugin({
|
|
491
|
+
config: cfg,
|
|
492
|
+
pluginId,
|
|
493
|
+
deleteFiles: !keepFiles,
|
|
494
|
+
extensionsDir
|
|
495
|
+
});
|
|
496
|
+
if (!result.ok) {
|
|
497
|
+
defaultRuntime.error(result.error);
|
|
498
|
+
process.exit(1);
|
|
499
|
+
}
|
|
500
|
+
for (const warning of result.warnings) defaultRuntime.log(theme.warn(warning));
|
|
501
|
+
await writeConfigFile(result.config);
|
|
502
|
+
const removed = [];
|
|
503
|
+
if (result.actions.entry) removed.push("config entry");
|
|
504
|
+
if (result.actions.install) removed.push("install record");
|
|
505
|
+
if (result.actions.allowlist) removed.push("allowlist");
|
|
506
|
+
if (result.actions.loadPath) removed.push("load path");
|
|
507
|
+
if (result.actions.memorySlot) removed.push("memory slot");
|
|
508
|
+
if (result.actions.directory) removed.push("directory");
|
|
509
|
+
defaultRuntime.log(`Uninstalled plugin "${pluginId}". Removed: ${removed.length > 0 ? removed.join(", ") : "nothing"}.`);
|
|
510
|
+
defaultRuntime.log("Restart the gateway to apply changes.");
|
|
511
|
+
});
|
|
305
512
|
plugins.command("install").description("Install a plugin (path, archive, or npm spec)").argument("<path-or-spec>", "Path (.ts/.js/.zip/.tgz/.tar.gz) or an npm package spec").option("-l, --link", "Link a local path instead of copying", false).action(async (raw, opts) => {
|
|
306
513
|
const resolved = resolveUserPath(raw);
|
|
307
514
|
const cfg = loadConfig();
|