@agent-our/openclaw 2026.2.6-3
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 +1596 -0
- package/LICENSE +21 -0
- package/README-header.png +0 -0
- package/README.md +545 -0
- package/assets/avatar-placeholder.svg +19 -0
- package/assets/chrome-extension/README.md +22 -0
- package/assets/chrome-extension/background.js +438 -0
- package/assets/chrome-extension/icons/icon128.png +0 -0
- package/assets/chrome-extension/icons/icon16.png +0 -0
- package/assets/chrome-extension/icons/icon32.png +0 -0
- package/assets/chrome-extension/icons/icon48.png +0 -0
- package/assets/chrome-extension/manifest.json +25 -0
- package/assets/chrome-extension/options.html +196 -0
- package/assets/chrome-extension/options.js +59 -0
- package/assets/dmg-background-small.png +0 -0
- package/assets/dmg-background.png +0 -0
- package/dist/accounts-B9umzy_R.js +250 -0
- package/dist/accounts-DkUtJa-O.js +251 -0
- package/dist/acp-cli-BBglTQii.js +923 -0
- package/dist/acp-cli-DrYibaVx.js +926 -0
- package/dist/agent-CbM7AbvV.js +704 -0
- package/dist/agent-DlzdY95q.js +704 -0
- package/dist/agent-scope-CB4YNu1h.js +613 -0
- package/dist/agent-scope-jAWKj2TP.js +371 -0
- package/dist/agent-scope-sKVRNONG.js +371 -0
- package/dist/archive-Dy3Ezb-5.js +85 -0
- package/dist/archive-ccN9aDgq.js +85 -0
- package/dist/audit-B2D3VRh8.js +1853 -0
- package/dist/audit-BdNhDEyo.js +1853 -0
- package/dist/auth-CMKwNo-f.js +192 -0
- package/dist/auth-DuZNzAAH.js +192 -0
- package/dist/auth-health-BNW1lZ8k.js +149 -0
- package/dist/auth-health-C3HJKHJi.js +149 -0
- package/dist/auth-profiles-DYdLc1cj.js +2981 -0
- package/dist/boolean-BgXe2hyu.js +30 -0
- package/dist/brew-CAcErcKz.js +46 -0
- package/dist/brew-CcZV0dSS.js +46 -0
- package/dist/build-info.json +5 -0
- package/dist/call-YdaudqMl.js +280 -0
- package/dist/call-wfwuMJe-.js +280 -0
- package/dist/canvas-host/a2ui/.bundle.hash +1 -0
- package/dist/canvas-host/a2ui/a2ui.bundle.js +17765 -0
- package/dist/canvas-host/a2ui/index.html +307 -0
- package/dist/channel-options-B-G7tzkB.js +32 -0
- package/dist/channel-options-jfcr7ChQ.js +62 -0
- package/dist/channel-selection-C5KQyVUF.js +51 -0
- package/dist/channel-selection-DXVHNo3U.js +51 -0
- package/dist/channel-summary-CFZImIiG.js +1120 -0
- package/dist/channel-summary-CoLmo1EU.js +1120 -0
- package/dist/channels-cli-Cc3MY52X.js +1413 -0
- package/dist/channels-cli-D2lTE59V.js +1415 -0
- package/dist/channels-status-issues-Dln8njuR.js +18 -0
- package/dist/channels-status-issues-ptsVdM7G.js +18 -0
- package/dist/chrome-B3IuUad-.js +1953 -0
- package/dist/chrome-BNSd7Bie.js +1973 -0
- package/dist/clack-prompter-B9yLhyOm.js +92 -0
- package/dist/clack-prompter-CEKDd_Vg.js +92 -0
- package/dist/cli/daemon-cli.js +2 -0
- package/dist/cli-Fq054ApO.js +89 -0
- package/dist/cli-rd9P_S1u.js +86 -0
- package/dist/cli-utils-BkRQdAoC.js +43 -0
- package/dist/cli-utils-DzrdzskQ.js +43 -0
- package/dist/client-DvWPgCi6.js +1815 -0
- package/dist/command-format-CFzL448l.js +52 -0
- package/dist/command-format-ChfKqObn.js +52 -0
- package/dist/command-format-ayFsmwwz.js +38 -0
- package/dist/command-options-qBrt237S.js +33 -0
- package/dist/commands-CQNsJDTA.js +230 -0
- package/dist/completion-cli-C5BH1XDk.js +773 -0
- package/dist/completion-cli-CNKrO4o0.js +434 -0
- package/dist/config-BEUgkMYH.js +4922 -0
- package/dist/config-BM_g3TBU.js +4921 -0
- package/dist/config-Ct91v0JZ.js +5662 -0
- package/dist/config-guard-C-ACw81n.js +5774 -0
- package/dist/configure-CcXcdOUM.js +896 -0
- package/dist/configure-DWMokcXD.js +895 -0
- package/dist/constants-CNTiY-ZN.js +65 -0
- package/dist/constants-HPrOsATF.js +65 -0
- package/dist/control-service-B3g4oucx.js +61 -0
- package/dist/control-service-Dh4DKu3S.js +61 -0
- package/dist/control-ui/apple-touch-icon.png +0 -0
- package/dist/control-ui/assets/index-Dm8pMa9P.js +11534 -0
- package/dist/control-ui/assets/index-Dm8pMa9P.js.map +1 -0
- package/dist/control-ui/assets/index-eofFRbdc.css +1 -0
- package/dist/control-ui/favicon-32.png +0 -0
- package/dist/control-ui/favicon.ico +0 -0
- package/dist/control-ui/favicon.svg +22 -0
- package/dist/control-ui/index.html +17 -0
- package/dist/cron-cli-Bx6joqjI.js +454 -0
- package/dist/cron-cli-C5k_pz71.js +457 -0
- package/dist/daemon-cli-D-Gm28gZ.js +758 -0
- package/dist/daemon-cli-DQ5dlrIR.js +757 -0
- package/dist/daemon-runtime-C648Lhju.js +517 -0
- package/dist/daemon-runtime-Chcfufn1.js +517 -0
- package/dist/deliver-DBiz1Usy.js +2557 -0
- package/dist/deliver-DmpRwa2w.js +2587 -0
- package/dist/deliver-X5yjr56P.js +2587 -0
- package/dist/deps-DlFoECb7.js +27 -0
- package/dist/deps-UZ0CMWoo.js +27 -0
- package/dist/devices-cli-CpGSCere.js +207 -0
- package/dist/devices-cli-DIZJXWIY.js +204 -0
- package/dist/directory-cli-DhC1uA2S.js +247 -0
- package/dist/directory-cli-ZDXb1dmk.js +244 -0
- package/dist/dispatcher-DLhpc7HC.js +160 -0
- package/dist/dns-cli-B7Xi-izZ.js +198 -0
- package/dist/dns-cli-BsvKw0iq.js +201 -0
- package/dist/docs-cli-Bi5BtLfY.js +161 -0
- package/dist/docs-cli-CkczsV22.js +159 -0
- package/dist/doctor-CN9WxbwV.js +2586 -0
- package/dist/doctor-ClCw8y0M.js +2588 -0
- package/dist/entry.js +1330 -0
- package/dist/env-0_mKbEWW.js +32 -0
- package/dist/errors-CZ9opC6L.js +1952 -0
- package/dist/exec-B8JKbXKW.js +246 -0
- package/dist/exec-BMnoMcZW.js +1099 -0
- package/dist/exec-HEWTMJ7j.js +246 -0
- package/dist/exec-approvals-D4ny1TmX.js +1043 -0
- package/dist/exec-approvals-DmzWB9Zy.js +1043 -0
- package/dist/exec-approvals-cli-DPD2Z2Cg.js +385 -0
- package/dist/exec-approvals-cli-Dl4Y4IqE.js +388 -0
- package/dist/extensionAPI.js +68146 -0
- package/dist/format-8citvr_1.js +34 -0
- package/dist/format-tlvh4-cQ.js +34 -0
- package/dist/gateway-cli-B_lqsPIR.js +18017 -0
- package/dist/gateway-cli-D1Jvi6Ab.js +18016 -0
- package/dist/gateway-rpc-CYPgf43u.js +28 -0
- package/dist/gateway-rpc-CzWTXOHS.js +28 -0
- package/dist/github-copilot-auth-BcnJgC7r.js +1256 -0
- package/dist/github-copilot-auth-OEOMPahq.js +1256 -0
- package/dist/github-copilot-token-B3SA95yo.js +103 -0
- package/dist/github-copilot-token-SLWintYd.js +103 -0
- package/dist/github-copilot-token-pGSmVaW-.js +103 -0
- package/dist/gmail-setup-utils-CwS9GsIM.js +428 -0
- package/dist/gmail-setup-utils-D3Wa2Tx_.js +428 -0
- package/dist/health-format-CbDB25L0.js +1388 -0
- package/dist/health-format-DIJjpCDL.js +1389 -0
- package/dist/help-format-BlaVZH29.js +17 -0
- package/dist/help-format-DuMTLWZ-.js +17 -0
- package/dist/helpers-BiyEksaK.js +25 -0
- package/dist/helpers-CSZtxHTa.js +10 -0
- package/dist/helpers-CxHtCvId.js +10 -0
- package/dist/helpers-azbX_hrI.js +25 -0
- package/dist/hooks/bundled/boot-md/HOOK.md +19 -0
- package/dist/hooks/bundled/command-logger/HOOK.md +122 -0
- package/dist/hooks/bundled/session-memory/HOOK.md +109 -0
- package/dist/hooks/bundled/soul-evil/HOOK.md +71 -0
- package/dist/hooks-cli-BuNzxQ-L.js +1058 -0
- package/dist/hooks-cli-D-QCmmC9.js +1061 -0
- package/dist/hooks-status-BvbcN-ho.js +443 -0
- package/dist/hooks-status-CH1ZdZs5.js +443 -0
- package/dist/image-BP1mAJzN.js +1421 -0
- package/dist/image-DMNGdVWb.js +629 -0
- package/dist/image-E_i8K6Vq.js +629 -0
- package/dist/index.js +5957 -0
- package/dist/installs-BcBaI60O.js +425 -0
- package/dist/installs-BhEjOqPy.js +425 -0
- package/dist/is-main-B6kCyqsv.js +25 -0
- package/dist/is-main-PYGa3tDA.js +25 -0
- package/dist/links-B4nk2iDf.js +15 -0
- package/dist/links-B5pRdmo1.js +15 -0
- package/dist/loader-DqiCudFO.js +64754 -0
- package/dist/logging-6zx7VGt-.js +15 -0
- package/dist/logging-BWRYHvLp.js +1 -0
- package/dist/logging-TXWhN8jG.js +15 -0
- package/dist/logging-pqyrk15z.js +1 -0
- package/dist/login-qr-Bo7zzLWd.js +478 -0
- package/dist/login-qr-CFw3hF2h.js +478 -0
- package/dist/login-qr-UmMP2m6M.js +475 -0
- package/dist/logs-cli-BBPaaFhF.js +230 -0
- package/dist/logs-cli-DTo-7DxM.js +227 -0
- package/dist/manager-B365Xcjg.js +3218 -0
- package/dist/manager-BtFI9Zdc.js +3216 -0
- package/dist/manager-Bwpep10z.js +3216 -0
- package/dist/manifest-registry-C69Z-I4v.js +668 -0
- package/dist/manifest-registry-DHaa1SJb.js +668 -0
- package/dist/message-channel-Bpfe5l5f.js +110 -0
- package/dist/message-channel-CQ6DgRUw.js +110 -0
- package/dist/model-selection-BXhwukLK.js +2734 -0
- package/dist/model-selection-CjiXwYEH.js +2983 -0
- package/dist/models-cli-DQKO_tWR.js +2542 -0
- package/dist/models-cli-k41kE3Yo.js +2545 -0
- package/dist/net-5DEH6AJK.js +1815 -0
- package/dist/node-cli-BXYXe5FE.js +1456 -0
- package/dist/node-cli-D7W69MZm.js +1459 -0
- package/dist/node-service-BTKxbzYo.js +67 -0
- package/dist/node-service-BoC2MKaK.js +67 -0
- package/dist/nodes-cli-MDb6jux3.js +1210 -0
- package/dist/nodes-cli-q-rHzVBz.js +1207 -0
- package/dist/nodes-screen-DT5HvhJV.js +157 -0
- package/dist/nodes-screen-DtXuFQdk.js +157 -0
- package/dist/note-B5HnoeZX.js +73 -0
- package/dist/note-_C44YfAQ.js +73 -0
- package/dist/onboard-channels-CKzF9fxT.js +671 -0
- package/dist/onboard-channels-Dr4FB1Sm.js +671 -0
- package/dist/onboard-skills-F6Kw1jrV.js +3452 -0
- package/dist/onboard-skills-aY4SkANg.js +3452 -0
- package/dist/onboarding-Do6ghpyS.js +3269 -0
- package/dist/openclaw-root-9ILYSmJ9.js +84 -0
- package/dist/openclaw-root-Cvotktkd.js +84 -0
- package/dist/pairing-cli-BUGQkncg.js +114 -0
- package/dist/pairing-cli-C63BXADO.js +117 -0
- package/dist/pairing-labels-DERlP-Wr.js +9 -0
- package/dist/pairing-labels-DhY2DQey.js +9 -0
- package/dist/pairing-store-D9vodPRR.js +391 -0
- package/dist/pairing-store-DWX2hYou.js +391 -0
- package/dist/parse-BZz5lHzQ.js +23 -0
- package/dist/parse-DqAvJRIf.js +23 -0
- package/dist/parse-log-line-BnB7770k.js +44 -0
- package/dist/parse-log-line-DSvJi17i.js +44 -0
- package/dist/parse-timeout-DV8NQQWk.js +16 -0
- package/dist/parse-timeout-Du-wHHNi.js +16 -0
- package/dist/path-env-DP3DsVge.js +77 -0
- package/dist/path-env-h3xp5PqO.js +77 -0
- package/dist/paths-B1kfl4h5.js +164 -0
- package/dist/paths-BT8VDsrj.js +43 -0
- package/dist/paths-BveE45t9.js +40 -0
- package/dist/paths-CR6bsrfc.js +43 -0
- package/dist/paths-scjhy7N2.js +180 -0
- package/dist/pi-embedded-helpers-BBIlv_VS.js +1303 -0
- package/dist/pi-embedded-helpers-CgGWSZV9.js +8480 -0
- package/dist/pi-embedded-helpers-CvujKXfr.js +1303 -0
- package/dist/pi-model-discovery-CV2V1HHz.js +20 -0
- package/dist/pi-model-discovery-DzEIEgHL.js +20 -0
- package/dist/pi-model-discovery-EhM2JAQo.js +20 -0
- package/dist/pi-tools.policy-JNsnW6cw.js +230 -0
- package/dist/plugin-auto-enable-CKBWhy8V.js +460 -0
- package/dist/plugin-auto-enable-D7FGzrWo.js +460 -0
- package/dist/plugin-sdk/agents/agent-paths.d.ts +2 -0
- package/dist/plugin-sdk/agents/agent-scope.d.ts +37 -0
- package/dist/plugin-sdk/agents/anthropic-payload-log.d.ts +16 -0
- package/dist/plugin-sdk/agents/apply-patch-update.d.ts +8 -0
- package/dist/plugin-sdk/agents/apply-patch.d.ts +24 -0
- package/dist/plugin-sdk/agents/auth-profiles/constants.d.ts +20 -0
- package/dist/plugin-sdk/agents/auth-profiles/display.d.ts +7 -0
- package/dist/plugin-sdk/agents/auth-profiles/doctor.d.ts +8 -0
- package/dist/plugin-sdk/agents/auth-profiles/external-cli-sync.d.ts +7 -0
- package/dist/plugin-sdk/agents/auth-profiles/oauth.d.ts +12 -0
- package/dist/plugin-sdk/agents/auth-profiles/order.d.ts +8 -0
- package/dist/plugin-sdk/agents/auth-profiles/paths.d.ts +4 -0
- package/dist/plugin-sdk/agents/auth-profiles/profiles.d.ts +18 -0
- package/dist/plugin-sdk/agents/auth-profiles/repair.d.ts +14 -0
- package/dist/plugin-sdk/agents/auth-profiles/session-override.d.ts +18 -0
- package/dist/plugin-sdk/agents/auth-profiles/store.d.ts +10 -0
- package/dist/plugin-sdk/agents/auth-profiles/types.d.ts +60 -0
- package/dist/plugin-sdk/agents/auth-profiles/usage.d.ts +47 -0
- package/dist/plugin-sdk/agents/auth-profiles.d.ts +11 -0
- package/dist/plugin-sdk/agents/bash-process-registry.d.ts +68 -0
- package/dist/plugin-sdk/agents/bash-tools.d.ts +4 -0
- package/dist/plugin-sdk/agents/bash-tools.exec.d.ts +54 -0
- package/dist/plugin-sdk/agents/bash-tools.process.d.ts +7 -0
- package/dist/plugin-sdk/agents/bash-tools.shared.d.ts +46 -0
- package/dist/plugin-sdk/agents/bedrock-discovery.d.ts +9 -0
- package/dist/plugin-sdk/agents/bootstrap-files.d.ts +25 -0
- package/dist/plugin-sdk/agents/bootstrap-hooks.d.ts +10 -0
- package/dist/plugin-sdk/agents/cache-trace.d.ts +51 -0
- package/dist/plugin-sdk/agents/channel-tools.d.ts +27 -0
- package/dist/plugin-sdk/agents/chutes-oauth.d.ts +46 -0
- package/dist/plugin-sdk/agents/cli-backends.d.ts +8 -0
- package/dist/plugin-sdk/agents/cli-credentials.d.ts +82 -0
- package/dist/plugin-sdk/agents/cli-runner/helpers.d.ts +76 -0
- package/dist/plugin-sdk/agents/cli-runner.d.ts +41 -0
- package/dist/plugin-sdk/agents/cli-session.d.ts +3 -0
- package/dist/plugin-sdk/agents/cloudflare-ai-gateway.d.ts +22 -0
- package/dist/plugin-sdk/agents/context-window-guard.d.ts +24 -0
- package/dist/plugin-sdk/agents/context.d.ts +1 -0
- package/dist/plugin-sdk/agents/date-time.d.ts +13 -0
- package/dist/plugin-sdk/agents/defaults.d.ts +3 -0
- package/dist/plugin-sdk/agents/docs-path.d.ts +6 -0
- package/dist/plugin-sdk/agents/failover-error.d.ts +33 -0
- package/dist/plugin-sdk/agents/identity.d.ts +25 -0
- package/dist/plugin-sdk/agents/lanes.d.ts +3 -0
- package/dist/plugin-sdk/agents/memory-search.d.ts +66 -0
- package/dist/plugin-sdk/agents/minimax-vlm.d.ts +7 -0
- package/dist/plugin-sdk/agents/model-auth.d.ts +36 -0
- package/dist/plugin-sdk/agents/model-catalog.d.ts +25 -0
- package/dist/plugin-sdk/agents/model-compat.d.ts +2 -0
- package/dist/plugin-sdk/agents/model-fallback.d.ts +49 -0
- package/dist/plugin-sdk/agents/model-selection.d.ts +93 -0
- package/dist/plugin-sdk/agents/models-config.d.ts +5 -0
- package/dist/plugin-sdk/agents/models-config.providers.d.ts +26 -0
- package/dist/plugin-sdk/agents/openclaw-tools.d.ts +44 -0
- package/dist/plugin-sdk/agents/pi-embedded-block-chunker.d.ts +19 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers/bootstrap.d.ts +28 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers/errors.d.ts +47 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers/google.d.ts +8 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers/images.d.ts +20 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers/messaging-dedupe.d.ts +10 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers/openai.d.ts +9 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers/thinking.d.ts +5 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers/turns.d.ts +20 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers/types.d.ts +5 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers.d.ts +11 -0
- package/dist/plugin-sdk/agents/pi-embedded-messaging.d.ts +8 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/abort.d.ts +1 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/cache-ttl.d.ts +9 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/compact.d.ts +50 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/extensions.d.ts +12 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/extra-params.d.ts +22 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/google.d.ts +39 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/history.d.ts +12 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/lanes.d.ts +3 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/logger.d.ts +1 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/model.d.ts +22 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/run/attempt.d.ts +5 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/run/images.d.ts +83 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/run/params.d.ts +116 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/run/payloads.d.ts +34 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/run/types.d.ts +133 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/run.d.ts +3 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/runs.d.ts +14 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/sandbox-info.d.ts +4 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/session-manager-cache.d.ts +2 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/session-manager-init.d.ts +17 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/system-prompt.d.ts +51 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/tool-result-truncation.d.ts +65 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/tool-split.d.ts +11 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/types.d.ts +70 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/utils.d.ts +8 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner.d.ts +12 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.d.ts +20 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.handlers.d.ts +2 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.handlers.lifecycle.d.ts +8 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.handlers.messages.d.ts +12 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.handlers.tools.d.ts +18 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.handlers.types.d.ts +108 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.raw-stream.d.ts +1 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.tools.d.ts +6 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.types.d.ts +44 -0
- package/dist/plugin-sdk/agents/pi-embedded-utils.d.ts +38 -0
- package/dist/plugin-sdk/agents/pi-embedded.d.ts +2 -0
- package/dist/plugin-sdk/agents/pi-extensions/compaction-safeguard-runtime.d.ts +6 -0
- package/dist/plugin-sdk/agents/pi-extensions/context-pruning/runtime.d.ts +9 -0
- package/dist/plugin-sdk/agents/pi-extensions/context-pruning/settings.d.ts +44 -0
- package/dist/plugin-sdk/agents/pi-extensions/context-pruning/tools.d.ts +2 -0
- package/dist/plugin-sdk/agents/pi-model-discovery.d.ts +4 -0
- package/dist/plugin-sdk/agents/pi-settings.d.ts +19 -0
- package/dist/plugin-sdk/agents/pi-tool-definition-adapter.d.ts +10 -0
- package/dist/plugin-sdk/agents/pi-tools.abort.d.ts +2 -0
- package/dist/plugin-sdk/agents/pi-tools.before-tool-call.d.ts +25 -0
- package/dist/plugin-sdk/agents/pi-tools.d.ts +69 -0
- package/dist/plugin-sdk/agents/pi-tools.policy.d.ts +37 -0
- package/dist/plugin-sdk/agents/pi-tools.read.d.ts +35 -0
- package/dist/plugin-sdk/agents/pi-tools.schema.d.ts +3 -0
- package/dist/plugin-sdk/agents/pi-tools.types.d.ts +2 -0
- package/dist/plugin-sdk/agents/pty-dsr.d.ts +5 -0
- package/dist/plugin-sdk/agents/pty-keys.d.ts +13 -0
- package/dist/plugin-sdk/agents/sandbox/browser-bridges.d.ts +5 -0
- package/dist/plugin-sdk/agents/sandbox/browser.d.ts +8 -0
- package/dist/plugin-sdk/agents/sandbox/config-hash.d.ts +9 -0
- package/dist/plugin-sdk/agents/sandbox/config.d.ts +22 -0
- package/dist/plugin-sdk/agents/sandbox/constants.d.ts +19 -0
- package/dist/plugin-sdk/agents/sandbox/context.d.ts +12 -0
- package/dist/plugin-sdk/agents/sandbox/docker.d.ts +28 -0
- package/dist/plugin-sdk/agents/sandbox/manage.d.ts +13 -0
- package/dist/plugin-sdk/agents/sandbox/prune.d.ts +3 -0
- package/dist/plugin-sdk/agents/sandbox/registry.d.ts +30 -0
- package/dist/plugin-sdk/agents/sandbox/runtime-status.d.ts +18 -0
- package/dist/plugin-sdk/agents/sandbox/shared.d.ts +4 -0
- package/dist/plugin-sdk/agents/sandbox/tool-policy.d.ts +4 -0
- package/dist/plugin-sdk/agents/sandbox/types.d.ts +73 -0
- package/dist/plugin-sdk/agents/sandbox/types.docker.d.ts +25 -0
- package/dist/plugin-sdk/agents/sandbox/workspace.d.ts +1 -0
- package/dist/plugin-sdk/agents/sandbox-paths.d.ts +21 -0
- package/dist/plugin-sdk/agents/sandbox.d.ts +8 -0
- package/dist/plugin-sdk/agents/schema/clean-for-gemini.d.ts +2 -0
- package/dist/plugin-sdk/agents/schema/typebox.d.ts +14 -0
- package/dist/plugin-sdk/agents/session-file-repair.d.ts +11 -0
- package/dist/plugin-sdk/agents/session-slug.d.ts +1 -0
- package/dist/plugin-sdk/agents/session-tool-result-guard-wrapper.d.ts +14 -0
- package/dist/plugin-sdk/agents/session-tool-result-guard.d.ts +21 -0
- package/dist/plugin-sdk/agents/session-transcript-repair.d.ts +26 -0
- package/dist/plugin-sdk/agents/session-write-lock.d.ts +21 -0
- package/dist/plugin-sdk/agents/shell-utils.d.ts +7 -0
- package/dist/plugin-sdk/agents/skills/bundled-dir.d.ts +7 -0
- package/dist/plugin-sdk/agents/skills/config.d.ts +14 -0
- package/dist/plugin-sdk/agents/skills/env-overrides.d.ts +10 -0
- package/dist/plugin-sdk/agents/skills/frontmatter.d.ts +6 -0
- package/dist/plugin-sdk/agents/skills/plugin-skills.d.ts +5 -0
- package/dist/plugin-sdk/agents/skills/refresh.d.ts +19 -0
- package/dist/plugin-sdk/agents/skills/serialize.d.ts +1 -0
- package/dist/plugin-sdk/agents/skills/types.d.ts +80 -0
- package/dist/plugin-sdk/agents/skills/workspace.d.ts +49 -0
- package/dist/plugin-sdk/agents/skills.d.ts +7 -0
- package/dist/plugin-sdk/agents/subagent-announce-queue.d.ts +22 -0
- package/dist/plugin-sdk/agents/subagent-announce.d.ts +30 -0
- package/dist/plugin-sdk/agents/subagent-registry.d.ts +35 -0
- package/dist/plugin-sdk/agents/subagent-registry.store.d.ts +5 -0
- package/dist/plugin-sdk/agents/synthetic-models.d.ts +153 -0
- package/dist/plugin-sdk/agents/system-prompt-params.d.ts +30 -0
- package/dist/plugin-sdk/agents/system-prompt-report.d.ts +20 -0
- package/dist/plugin-sdk/agents/system-prompt.d.ts +77 -0
- package/dist/plugin-sdk/agents/timeout.d.ts +8 -0
- package/dist/plugin-sdk/agents/tool-call-id.d.ts +17 -0
- package/dist/plugin-sdk/agents/tool-display.d.ts +15 -0
- package/dist/plugin-sdk/agents/tool-images.d.ts +19 -0
- package/dist/plugin-sdk/agents/tool-policy.d.ts +39 -0
- package/dist/plugin-sdk/agents/tool-summaries.d.ts +2 -0
- package/dist/plugin-sdk/agents/tools/agent-step.d.ts +12 -0
- package/dist/plugin-sdk/agents/tools/agents-list-tool.d.ts +6 -0
- package/dist/plugin-sdk/agents/tools/browser-tool.d.ts +5 -0
- package/dist/plugin-sdk/agents/tools/browser-tool.schema.d.ts +50 -0
- package/dist/plugin-sdk/agents/tools/canvas-tool.d.ts +2 -0
- package/dist/plugin-sdk/agents/tools/common.d.ts +52 -0
- package/dist/plugin-sdk/agents/tools/cron-tool.d.ts +6 -0
- package/dist/plugin-sdk/agents/tools/discord-actions-guild.d.ts +4 -0
- package/dist/plugin-sdk/agents/tools/discord-actions-messaging.d.ts +4 -0
- package/dist/plugin-sdk/agents/tools/discord-actions-moderation.d.ts +4 -0
- package/dist/plugin-sdk/agents/tools/discord-actions-presence.d.ts +4 -0
- package/dist/plugin-sdk/agents/tools/discord-actions.d.ts +3 -0
- package/dist/plugin-sdk/agents/tools/gateway-tool.d.ts +6 -0
- package/dist/plugin-sdk/agents/tools/gateway.d.ts +14 -0
- package/dist/plugin-sdk/agents/tools/image-tool.d.ts +26 -0
- package/dist/plugin-sdk/agents/tools/image-tool.helpers.d.ts +21 -0
- package/dist/plugin-sdk/agents/tools/memory-tool.d.ts +10 -0
- package/dist/plugin-sdk/agents/tools/message-tool.d.ts +18 -0
- package/dist/plugin-sdk/agents/tools/nodes-tool.d.ts +6 -0
- package/dist/plugin-sdk/agents/tools/nodes-utils.d.ts +20 -0
- package/dist/plugin-sdk/agents/tools/session-status-tool.d.ts +6 -0
- package/dist/plugin-sdk/agents/tools/sessions-announce-target.d.ts +5 -0
- package/dist/plugin-sdk/agents/tools/sessions-helpers.d.ts +90 -0
- package/dist/plugin-sdk/agents/tools/sessions-history-tool.d.ts +5 -0
- package/dist/plugin-sdk/agents/tools/sessions-list-tool.d.ts +5 -0
- package/dist/plugin-sdk/agents/tools/sessions-send-helpers.d.ts +34 -0
- package/dist/plugin-sdk/agents/tools/sessions-send-tool.a2a.d.ts +12 -0
- package/dist/plugin-sdk/agents/tools/sessions-send-tool.d.ts +7 -0
- package/dist/plugin-sdk/agents/tools/sessions-spawn-tool.d.ts +15 -0
- package/dist/plugin-sdk/agents/tools/slack-actions.d.ts +15 -0
- package/dist/plugin-sdk/agents/tools/telegram-actions.d.ts +9 -0
- package/dist/plugin-sdk/agents/tools/tts-tool.d.ts +7 -0
- package/dist/plugin-sdk/agents/tools/web-fetch-utils.d.ts +18 -0
- package/dist/plugin-sdk/agents/tools/web-fetch.d.ts +25 -0
- package/dist/plugin-sdk/agents/tools/web-search.d.ts +22 -0
- package/dist/plugin-sdk/agents/tools/web-shared.d.ts +17 -0
- package/dist/plugin-sdk/agents/tools/web-tools.d.ts +2 -0
- package/dist/plugin-sdk/agents/tools/whatsapp-actions.d.ts +3 -0
- package/dist/plugin-sdk/agents/transcript-policy.d.ts +23 -0
- package/dist/plugin-sdk/agents/usage.d.ts +35 -0
- package/dist/plugin-sdk/agents/venice-models.d.ts +238 -0
- package/dist/plugin-sdk/agents/workspace-run.d.ts +18 -0
- package/dist/plugin-sdk/agents/workspace-templates.d.ts +6 -0
- package/dist/plugin-sdk/agents/workspace.d.ts +33 -0
- package/dist/plugin-sdk/auto-reply/chunk.d.ts +45 -0
- package/dist/plugin-sdk/auto-reply/command-auth.d.ts +17 -0
- package/dist/plugin-sdk/auto-reply/command-detection.d.ts +13 -0
- package/dist/plugin-sdk/auto-reply/commands-args.d.ts +3 -0
- package/dist/plugin-sdk/auto-reply/commands-registry.d.ts +54 -0
- package/dist/plugin-sdk/auto-reply/commands-registry.data.d.ts +3 -0
- package/dist/plugin-sdk/auto-reply/commands-registry.types.d.ts +66 -0
- package/dist/plugin-sdk/auto-reply/dispatch.d.ts +27 -0
- package/dist/plugin-sdk/auto-reply/envelope.d.ts +59 -0
- package/dist/plugin-sdk/auto-reply/group-activation.d.ts +6 -0
- package/dist/plugin-sdk/auto-reply/heartbeat.d.ts +26 -0
- package/dist/plugin-sdk/auto-reply/inbound-debounce.d.ts +16 -0
- package/dist/plugin-sdk/auto-reply/media-note.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/model.d.ts +8 -0
- package/dist/plugin-sdk/auto-reply/reply/abort.d.ts +20 -0
- package/dist/plugin-sdk/auto-reply/reply/agent-runner-execution.d.ts +49 -0
- package/dist/plugin-sdk/auto-reply/reply/agent-runner-helpers.d.ts +17 -0
- package/dist/plugin-sdk/auto-reply/reply/agent-runner-memory.d.ts +20 -0
- package/dist/plugin-sdk/auto-reply/reply/agent-runner-payloads.d.ts +25 -0
- package/dist/plugin-sdk/auto-reply/reply/agent-runner-utils.d.ts +30 -0
- package/dist/plugin-sdk/auto-reply/reply/agent-runner.d.ts +38 -0
- package/dist/plugin-sdk/auto-reply/reply/bash-command.d.ts +19 -0
- package/dist/plugin-sdk/auto-reply/reply/block-reply-coalescer.d.ts +15 -0
- package/dist/plugin-sdk/auto-reply/reply/block-reply-pipeline.d.ts +31 -0
- package/dist/plugin-sdk/auto-reply/reply/block-streaming.d.ts +22 -0
- package/dist/plugin-sdk/auto-reply/reply/body.d.ts +11 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-allowlist.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-approve.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-bash.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-compact.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-config.d.ts +3 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-context-report.d.ts +3 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-context.d.ts +12 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-core.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-info.d.ts +10 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-models.d.ts +23 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-plugin.d.ts +13 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-session.d.ts +7 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-status.d.ts +24 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-subagents.d.ts +13 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-tts.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-types.d.ts +60 -0
- package/dist/plugin-sdk/auto-reply/reply/commands.d.ts +4 -0
- package/dist/plugin-sdk/auto-reply/reply/config-commands.d.ts +15 -0
- package/dist/plugin-sdk/auto-reply/reply/config-value.d.ts +4 -0
- package/dist/plugin-sdk/auto-reply/reply/debug-commands.d.ts +16 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.auth.d.ts +19 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.d.ts +6 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.fast-lane.d.ts +47 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.impl.d.ts +36 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.model-picker.d.ts +13 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.model.d.ts +42 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.parse.d.ts +62 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.persist.d.ts +37 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.queue-validation.d.ts +10 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.shared.d.ts +16 -0
- package/dist/plugin-sdk/auto-reply/reply/directives.d.ts +38 -0
- package/dist/plugin-sdk/auto-reply/reply/dispatch-from-config.d.ts +16 -0
- package/dist/plugin-sdk/auto-reply/reply/exec/directive.d.ts +20 -0
- package/dist/plugin-sdk/auto-reply/reply/exec.d.ts +1 -0
- package/dist/plugin-sdk/auto-reply/reply/followup-runner.d.ts +16 -0
- package/dist/plugin-sdk/auto-reply/reply/get-reply-directives-apply.d.ts +64 -0
- package/dist/plugin-sdk/auto-reply/reply/get-reply-directives-utils.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/reply/get-reply-directives.d.ts +91 -0
- package/dist/plugin-sdk/auto-reply/reply/get-reply-inline-actions.d.ts +59 -0
- package/dist/plugin-sdk/auto-reply/reply/get-reply-run.d.ts +69 -0
- package/dist/plugin-sdk/auto-reply/reply/get-reply.d.ts +4 -0
- package/dist/plugin-sdk/auto-reply/reply/groups.d.ts +16 -0
- package/dist/plugin-sdk/auto-reply/reply/history.d.ts +72 -0
- package/dist/plugin-sdk/auto-reply/reply/inbound-context.d.ts +8 -0
- package/dist/plugin-sdk/auto-reply/reply/inbound-dedupe.d.ts +8 -0
- package/dist/plugin-sdk/auto-reply/reply/inbound-sender-meta.d.ts +5 -0
- package/dist/plugin-sdk/auto-reply/reply/inbound-text.d.ts +1 -0
- package/dist/plugin-sdk/auto-reply/reply/line-directives.d.ts +22 -0
- package/dist/plugin-sdk/auto-reply/reply/memory-flush.d.ts +23 -0
- package/dist/plugin-sdk/auto-reply/reply/mentions.d.ts +18 -0
- package/dist/plugin-sdk/auto-reply/reply/model-selection.d.ts +61 -0
- package/dist/plugin-sdk/auto-reply/reply/normalize-reply.d.ts +13 -0
- package/dist/plugin-sdk/auto-reply/reply/provider-dispatcher.d.ts +19 -0
- package/dist/plugin-sdk/auto-reply/reply/queue/cleanup.d.ts +6 -0
- package/dist/plugin-sdk/auto-reply/reply/queue/directive.d.ts +15 -0
- package/dist/plugin-sdk/auto-reply/reply/queue/drain.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/reply/queue/enqueue.d.ts +3 -0
- package/dist/plugin-sdk/auto-reply/reply/queue/normalize.d.ts +3 -0
- package/dist/plugin-sdk/auto-reply/reply/queue/settings.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/reply/queue/state.d.ts +19 -0
- package/dist/plugin-sdk/auto-reply/reply/queue/types.d.ts +84 -0
- package/dist/plugin-sdk/auto-reply/reply/queue.d.ts +8 -0
- package/dist/plugin-sdk/auto-reply/reply/reply-directives.d.ts +14 -0
- package/dist/plugin-sdk/auto-reply/reply/reply-dispatcher.d.ts +51 -0
- package/dist/plugin-sdk/auto-reply/reply/reply-elevated.d.ts +23 -0
- package/dist/plugin-sdk/auto-reply/reply/reply-inline.d.ts +8 -0
- package/dist/plugin-sdk/auto-reply/reply/reply-payloads.d.ts +22 -0
- package/dist/plugin-sdk/auto-reply/reply/reply-reference.d.ts +20 -0
- package/dist/plugin-sdk/auto-reply/reply/reply-tags.d.ts +6 -0
- package/dist/plugin-sdk/auto-reply/reply/reply-threading.d.ts +9 -0
- package/dist/plugin-sdk/auto-reply/reply/response-prefix-template.d.ts +51 -0
- package/dist/plugin-sdk/auto-reply/reply/route-reply.d.ts +56 -0
- package/dist/plugin-sdk/auto-reply/reply/session-reset-model.d.ts +24 -0
- package/dist/plugin-sdk/auto-reply/reply/session-updates.d.ts +34 -0
- package/dist/plugin-sdk/auto-reply/reply/session-usage.d.ts +13 -0
- package/dist/plugin-sdk/auto-reply/reply/session.d.ts +26 -0
- package/dist/plugin-sdk/auto-reply/reply/stage-sandbox-media.d.ts +9 -0
- package/dist/plugin-sdk/auto-reply/reply/streaming-directives.d.ts +10 -0
- package/dist/plugin-sdk/auto-reply/reply/subagents-utils.d.ts +9 -0
- package/dist/plugin-sdk/auto-reply/reply/typing-mode.d.ts +27 -0
- package/dist/plugin-sdk/auto-reply/reply/typing.d.ts +18 -0
- package/dist/plugin-sdk/auto-reply/reply/untrusted-context.d.ts +1 -0
- package/dist/plugin-sdk/auto-reply/reply.d.ts +6 -0
- package/dist/plugin-sdk/auto-reply/send-policy.d.ts +6 -0
- package/dist/plugin-sdk/auto-reply/skill-commands.d.ts +18 -0
- package/dist/plugin-sdk/auto-reply/status.d.ts +53 -0
- package/dist/plugin-sdk/auto-reply/templating.d.ts +140 -0
- package/dist/plugin-sdk/auto-reply/thinking.d.ts +22 -0
- package/dist/plugin-sdk/auto-reply/tokens.d.ts +3 -0
- package/dist/plugin-sdk/auto-reply/tool-meta.d.ts +8 -0
- package/dist/plugin-sdk/auto-reply/types.d.ts +57 -0
- package/dist/plugin-sdk/browser/bridge-server.d.ts +17 -0
- package/dist/plugin-sdk/browser/cdp.d.ts +123 -0
- package/dist/plugin-sdk/browser/cdp.helpers.d.ts +11 -0
- package/dist/plugin-sdk/browser/chrome.d.ts +20 -0
- package/dist/plugin-sdk/browser/chrome.executables.d.ts +9 -0
- package/dist/plugin-sdk/browser/chrome.profile-decoration.d.ts +10 -0
- package/dist/plugin-sdk/browser/client-actions-core.d.ts +143 -0
- package/dist/plugin-sdk/browser/client-actions-observe.d.ts +68 -0
- package/dist/plugin-sdk/browser/client-actions-state.d.ts +90 -0
- package/dist/plugin-sdk/browser/client-actions-types.d.ts +18 -0
- package/dist/plugin-sdk/browser/client-actions.d.ts +4 -0
- package/dist/plugin-sdk/browser/client-fetch.d.ts +3 -0
- package/dist/plugin-sdk/browser/client.d.ts +147 -0
- package/dist/plugin-sdk/browser/config.d.ts +39 -0
- package/dist/plugin-sdk/browser/constants.d.ts +8 -0
- package/dist/plugin-sdk/browser/control-service.d.ts +5 -0
- package/dist/plugin-sdk/browser/extension-relay.d.ts +15 -0
- package/dist/plugin-sdk/browser/profiles-service.d.ts +25 -0
- package/dist/plugin-sdk/browser/profiles.d.ts +30 -0
- package/dist/plugin-sdk/browser/pw-ai-module.d.ts +6 -0
- package/dist/plugin-sdk/browser/pw-ai.d.ts +2 -0
- package/dist/plugin-sdk/browser/pw-role-snapshot.d.ts +35 -0
- package/dist/plugin-sdk/browser/pw-session.d.ts +135 -0
- package/dist/plugin-sdk/browser/pw-tools-core.activity.d.ts +21 -0
- package/dist/plugin-sdk/browser/pw-tools-core.d.ts +8 -0
- package/dist/plugin-sdk/browser/pw-tools-core.downloads.d.ts +34 -0
- package/dist/plugin-sdk/browser/pw-tools-core.interactions.d.ts +112 -0
- package/dist/plugin-sdk/browser/pw-tools-core.responses.d.ts +13 -0
- package/dist/plugin-sdk/browser/pw-tools-core.shared.d.ts +6 -0
- package/dist/plugin-sdk/browser/pw-tools-core.snapshot.d.ts +64 -0
- package/dist/plugin-sdk/browser/pw-tools-core.state.d.ts +46 -0
- package/dist/plugin-sdk/browser/pw-tools-core.storage.d.ts +47 -0
- package/dist/plugin-sdk/browser/pw-tools-core.trace.d.ts +12 -0
- package/dist/plugin-sdk/browser/routes/agent.act.d.ts +3 -0
- package/dist/plugin-sdk/browser/routes/agent.act.shared.d.ts +10 -0
- package/dist/plugin-sdk/browser/routes/agent.d.ts +3 -0
- package/dist/plugin-sdk/browser/routes/agent.debug.d.ts +3 -0
- package/dist/plugin-sdk/browser/routes/agent.shared.d.ts +9 -0
- package/dist/plugin-sdk/browser/routes/agent.snapshot.d.ts +3 -0
- package/dist/plugin-sdk/browser/routes/agent.storage.d.ts +3 -0
- package/dist/plugin-sdk/browser/routes/basic.d.ts +3 -0
- package/dist/plugin-sdk/browser/routes/dispatcher.d.ts +15 -0
- package/dist/plugin-sdk/browser/routes/index.d.ts +3 -0
- package/dist/plugin-sdk/browser/routes/tabs.d.ts +3 -0
- package/dist/plugin-sdk/browser/routes/types.d.ts +15 -0
- package/dist/plugin-sdk/browser/routes/utils.d.ts +15 -0
- package/dist/plugin-sdk/browser/screenshot.d.ts +9 -0
- package/dist/plugin-sdk/browser/server-context.d.ts +3 -0
- package/dist/plugin-sdk/browser/server-context.types.d.ts +78 -0
- package/dist/plugin-sdk/browser/target-id.d.ts +11 -0
- package/dist/plugin-sdk/browser/trash.d.ts +1 -0
- package/dist/plugin-sdk/channel-web.d.ts +6 -0
- package/dist/plugin-sdk/channels/ack-reactions.d.ts +29 -0
- package/dist/plugin-sdk/channels/allowlist-match.d.ts +10 -0
- package/dist/plugin-sdk/channels/allowlists/resolve-utils.d.ts +6 -0
- package/dist/plugin-sdk/channels/channel-config.d.ts +39 -0
- package/dist/plugin-sdk/channels/chat-type.d.ts +2 -0
- package/dist/plugin-sdk/channels/command-gating.d.ts +20 -0
- package/dist/plugin-sdk/channels/conversation-label.d.ts +2 -0
- package/dist/plugin-sdk/channels/dock.d.ts +36 -0
- package/dist/plugin-sdk/channels/location.d.ts +21 -0
- package/dist/plugin-sdk/channels/logging.d.ts +20 -0
- package/dist/plugin-sdk/channels/mention-gating.d.ts +27 -0
- package/dist/plugin-sdk/channels/plugins/actions/discord/handle-action.d.ts +3 -0
- package/dist/plugin-sdk/channels/plugins/actions/discord/handle-action.guild-admin.d.ts +9 -0
- package/dist/plugin-sdk/channels/plugins/actions/discord.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/actions/signal.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/actions/telegram.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/agent-tools/whatsapp-login.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/allowlist-match.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/bluebubbles-actions.d.ts +48 -0
- package/dist/plugin-sdk/channels/plugins/channel-config.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/config-helpers.d.ts +14 -0
- package/dist/plugin-sdk/channels/plugins/config-schema.d.ts +3 -0
- package/dist/plugin-sdk/channels/plugins/config-writes.d.ts +7 -0
- package/dist/plugin-sdk/channels/plugins/directory-config.d.ts +16 -0
- package/dist/plugin-sdk/channels/plugins/group-mentions.d.ts +28 -0
- package/dist/plugin-sdk/channels/plugins/helpers.d.ts +8 -0
- package/dist/plugin-sdk/channels/plugins/index.d.ts +8 -0
- package/dist/plugin-sdk/channels/plugins/media-limits.d.ts +9 -0
- package/dist/plugin-sdk/channels/plugins/message-action-names.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/message-actions.d.ts +7 -0
- package/dist/plugin-sdk/channels/plugins/normalize/discord.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/normalize/imessage.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/normalize/signal.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/normalize/slack.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/normalize/telegram.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/normalize/whatsapp.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/onboarding/channel-access.d.ts +31 -0
- package/dist/plugin-sdk/channels/plugins/onboarding/discord.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/onboarding/helpers.d.ts +3 -0
- package/dist/plugin-sdk/channels/plugins/onboarding/imessage.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/onboarding/signal.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/onboarding/slack.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/onboarding/telegram.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/onboarding/whatsapp.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/onboarding-types.d.ts +77 -0
- package/dist/plugin-sdk/channels/plugins/outbound/load.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/pairing-message.d.ts +1 -0
- package/dist/plugin-sdk/channels/plugins/pairing.d.ts +16 -0
- package/dist/plugin-sdk/channels/plugins/setup-helpers.d.ts +13 -0
- package/dist/plugin-sdk/channels/plugins/status-issues/bluebubbles.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/status-issues/discord.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/status-issues/shared.d.ts +10 -0
- package/dist/plugin-sdk/channels/plugins/status-issues/telegram.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/status-issues/whatsapp.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/types.adapters.d.ts +294 -0
- package/dist/plugin-sdk/channels/plugins/types.core.d.ts +311 -0
- package/dist/plugin-sdk/channels/plugins/types.d.ts +6 -0
- package/dist/plugin-sdk/channels/plugins/types.plugin.d.ts +53 -0
- package/dist/plugin-sdk/channels/plugins/whatsapp-heartbeat.d.ts +11 -0
- package/dist/plugin-sdk/channels/registry.d.ts +16 -0
- package/dist/plugin-sdk/channels/reply-prefix.d.ts +24 -0
- package/dist/plugin-sdk/channels/sender-label.d.ts +9 -0
- package/dist/plugin-sdk/channels/session.d.ts +18 -0
- package/dist/plugin-sdk/channels/targets.d.ts +25 -0
- package/dist/plugin-sdk/channels/typing.d.ts +12 -0
- package/dist/plugin-sdk/channels/web/index.d.ts +1 -0
- package/dist/plugin-sdk/cli/cli-name.d.ts +3 -0
- package/dist/plugin-sdk/cli/cli-utils.d.ts +18 -0
- package/dist/plugin-sdk/cli/command-format.d.ts +1 -0
- package/dist/plugin-sdk/cli/deps.d.ts +18 -0
- package/dist/plugin-sdk/cli/memory-cli.d.ts +12 -0
- package/dist/plugin-sdk/cli/nodes-camera.d.ts +26 -0
- package/dist/plugin-sdk/cli/nodes-canvas.d.ts +10 -0
- package/dist/plugin-sdk/cli/nodes-run.d.ts +3 -0
- package/dist/plugin-sdk/cli/nodes-screen.d.ts +18 -0
- package/dist/plugin-sdk/cli/parse-duration.d.ts +4 -0
- package/dist/plugin-sdk/cli/parse-timeout.d.ts +1 -0
- package/dist/plugin-sdk/cli/profile-utils.d.ts +2 -0
- package/dist/plugin-sdk/cli/progress.d.ts +24 -0
- package/dist/plugin-sdk/cli/wait.d.ts +1 -0
- package/dist/plugin-sdk/commands/agent/types.d.ts +75 -0
- package/dist/plugin-sdk/commands/daemon-runtime.d.ts +8 -0
- package/dist/plugin-sdk/commands/health.d.ts +63 -0
- package/dist/plugin-sdk/commands/oauth-flow.d.ts +21 -0
- package/dist/plugin-sdk/commands/onboard-helpers.d.ts +81 -0
- package/dist/plugin-sdk/commands/onboard-types.d.ts +67 -0
- package/dist/plugin-sdk/commands/signal-install.d.ts +8 -0
- package/dist/plugin-sdk/compat/legacy-names.d.ts +8 -0
- package/dist/plugin-sdk/config/agent-dirs.d.ts +14 -0
- package/dist/plugin-sdk/config/agent-limits.d.ts +5 -0
- package/dist/plugin-sdk/config/cache-utils.d.ts +6 -0
- package/dist/plugin-sdk/config/channel-capabilities.d.ts +6 -0
- package/dist/plugin-sdk/config/commands.d.ts +16 -0
- package/dist/plugin-sdk/config/config-paths.d.ts +10 -0
- package/dist/plugin-sdk/config/config.d.ts +7 -0
- package/dist/plugin-sdk/config/defaults.d.ts +18 -0
- package/dist/plugin-sdk/config/env-substitution.d.ts +35 -0
- package/dist/plugin-sdk/config/env-vars.d.ts +2 -0
- package/dist/plugin-sdk/config/group-policy.d.ts +44 -0
- package/dist/plugin-sdk/config/includes.d.ts +32 -0
- package/dist/plugin-sdk/config/io.d.ts +36 -0
- package/dist/plugin-sdk/config/legacy-migrate.d.ts +5 -0
- package/dist/plugin-sdk/config/legacy.d.ts +6 -0
- package/dist/plugin-sdk/config/legacy.migrations.d.ts +1 -0
- package/dist/plugin-sdk/config/legacy.migrations.part-1.d.ts +2 -0
- package/dist/plugin-sdk/config/legacy.migrations.part-2.d.ts +2 -0
- package/dist/plugin-sdk/config/legacy.migrations.part-3.d.ts +2 -0
- package/dist/plugin-sdk/config/legacy.rules.d.ts +2 -0
- package/dist/plugin-sdk/config/legacy.shared.d.ts +18 -0
- package/dist/plugin-sdk/config/markdown-tables.d.ts +7 -0
- package/dist/plugin-sdk/config/merge-config.d.ts +7 -0
- package/dist/plugin-sdk/config/normalize-paths.d.ts +8 -0
- package/dist/plugin-sdk/config/paths.d.ts +57 -0
- package/dist/plugin-sdk/config/port-defaults.d.ts +13 -0
- package/dist/plugin-sdk/config/runtime-overrides.d.ts +15 -0
- package/dist/plugin-sdk/config/sessions/group.d.ts +11 -0
- package/dist/plugin-sdk/config/sessions/main-session.d.ts +43 -0
- package/dist/plugin-sdk/config/sessions/metadata.d.ts +16 -0
- package/dist/plugin-sdk/config/sessions/paths.d.ts +11 -0
- package/dist/plugin-sdk/config/sessions/reset.d.ts +43 -0
- package/dist/plugin-sdk/config/sessions/session-key.d.ts +8 -0
- package/dist/plugin-sdk/config/sessions/store.d.ts +38 -0
- package/dist/plugin-sdk/config/sessions/transcript.d.ts +18 -0
- package/dist/plugin-sdk/config/sessions/types.d.ts +146 -0
- package/dist/plugin-sdk/config/sessions.d.ts +9 -0
- package/dist/plugin-sdk/config/talk.d.ts +11 -0
- package/dist/plugin-sdk/config/telegram-custom-commands.d.ts +24 -0
- package/dist/plugin-sdk/config/types.agent-defaults.d.ts +254 -0
- package/dist/plugin-sdk/config/types.agents.d.ts +77 -0
- package/dist/plugin-sdk/config/types.approvals.d.ts +26 -0
- package/dist/plugin-sdk/config/types.auth.d.ts +28 -0
- package/dist/plugin-sdk/config/types.base.d.ts +149 -0
- package/dist/plugin-sdk/config/types.browser.d.ts +41 -0
- package/dist/plugin-sdk/config/types.channels.d.ts +34 -0
- package/dist/plugin-sdk/config/types.cron.d.ts +5 -0
- package/dist/plugin-sdk/config/types.d.ts +29 -0
- package/dist/plugin-sdk/config/types.discord.d.ts +151 -0
- package/dist/plugin-sdk/config/types.gateway.d.ts +224 -0
- package/dist/plugin-sdk/config/types.googlechat.d.ts +100 -0
- package/dist/plugin-sdk/config/types.hooks.d.ts +106 -0
- package/dist/plugin-sdk/config/types.imessage.d.ts +71 -0
- package/dist/plugin-sdk/config/types.memory.d.ts +43 -0
- package/dist/plugin-sdk/config/types.messages.d.ts +106 -0
- package/dist/plugin-sdk/config/types.models.d.ts +47 -0
- package/dist/plugin-sdk/config/types.msteams.d.ts +101 -0
- package/dist/plugin-sdk/config/types.node-host.d.ts +10 -0
- package/dist/plugin-sdk/config/types.openclaw.d.ts +108 -0
- package/dist/plugin-sdk/config/types.plugins.d.ts +32 -0
- package/dist/plugin-sdk/config/types.queue.d.ts +13 -0
- package/dist/plugin-sdk/config/types.sandbox.d.ts +76 -0
- package/dist/plugin-sdk/config/types.signal.d.ts +86 -0
- package/dist/plugin-sdk/config/types.skills.d.ts +28 -0
- package/dist/plugin-sdk/config/types.slack.d.ts +138 -0
- package/dist/plugin-sdk/config/types.telegram.d.ts +160 -0
- package/dist/plugin-sdk/config/types.tools.d.ts +437 -0
- package/dist/plugin-sdk/config/types.tts.d.ts +78 -0
- package/dist/plugin-sdk/config/types.whatsapp.d.ts +157 -0
- package/dist/plugin-sdk/config/validation.d.ts +17 -0
- package/dist/plugin-sdk/config/version.d.ts +8 -0
- package/dist/plugin-sdk/config/zod-schema.agent-defaults.d.ts +245 -0
- package/dist/plugin-sdk/config/zod-schema.agent-runtime.d.ts +819 -0
- package/dist/plugin-sdk/config/zod-schema.agents.d.ts +493 -0
- package/dist/plugin-sdk/config/zod-schema.approvals.d.ts +15 -0
- package/dist/plugin-sdk/config/zod-schema.channels.d.ts +6 -0
- package/dist/plugin-sdk/config/zod-schema.core.d.ts +647 -0
- package/dist/plugin-sdk/config/zod-schema.d.ts +3085 -0
- package/dist/plugin-sdk/config/zod-schema.hooks.d.ts +78 -0
- package/dist/plugin-sdk/config/zod-schema.providers-core.d.ts +2761 -0
- package/dist/plugin-sdk/config/zod-schema.providers-whatsapp.d.ts +231 -0
- package/dist/plugin-sdk/config/zod-schema.providers.d.ts +1662 -0
- package/dist/plugin-sdk/config/zod-schema.session.d.ts +183 -0
- package/dist/plugin-sdk/cron/delivery.d.ts +9 -0
- package/dist/plugin-sdk/cron/normalize.d.ts +9 -0
- package/dist/plugin-sdk/cron/parse.d.ts +1 -0
- package/dist/plugin-sdk/cron/payload-migration.d.ts +3 -0
- package/dist/plugin-sdk/cron/schedule.d.ts +2 -0
- package/dist/plugin-sdk/cron/service/jobs.d.ts +13 -0
- package/dist/plugin-sdk/cron/service/locked.d.ts +2 -0
- package/dist/plugin-sdk/cron/service/normalize.d.ts +17 -0
- package/dist/plugin-sdk/cron/service/ops.d.ts +43 -0
- package/dist/plugin-sdk/cron/service/state.d.ts +96 -0
- package/dist/plugin-sdk/cron/service/store.d.ts +9 -0
- package/dist/plugin-sdk/cron/service/timer.d.ts +23 -0
- package/dist/plugin-sdk/cron/service.d.ts +48 -0
- package/dist/plugin-sdk/cron/store.d.ts +6 -0
- package/dist/plugin-sdk/cron/types.d.ts +93 -0
- package/dist/plugin-sdk/daemon/constants.d.ts +30 -0
- package/dist/plugin-sdk/discord/accounts.d.ts +17 -0
- package/dist/plugin-sdk/discord/api.d.ts +11 -0
- package/dist/plugin-sdk/discord/audit.d.ts +29 -0
- package/dist/plugin-sdk/discord/chunk.d.ts +20 -0
- package/dist/plugin-sdk/discord/directory-live.d.ts +4 -0
- package/dist/plugin-sdk/discord/gateway-logging.d.ts +8 -0
- package/dist/plugin-sdk/discord/monitor/allow-list.d.ts +137 -0
- package/dist/plugin-sdk/discord/monitor/exec-approvals.d.ts +70 -0
- package/dist/plugin-sdk/discord/monitor/format.d.ts +13 -0
- package/dist/plugin-sdk/discord/monitor/gateway-registry.d.ts +9 -0
- package/dist/plugin-sdk/discord/monitor/listeners.d.ts +49 -0
- package/dist/plugin-sdk/discord/monitor/message-handler.d.ts +26 -0
- package/dist/plugin-sdk/discord/monitor/message-handler.preflight.d.ts +3 -0
- package/dist/plugin-sdk/discord/monitor/message-handler.preflight.types.d.ts +86 -0
- package/dist/plugin-sdk/discord/monitor/message-handler.process.d.ts +2 -0
- package/dist/plugin-sdk/discord/monitor/message-utils.d.ts +31 -0
- package/dist/plugin-sdk/discord/monitor/native-command.d.ts +20 -0
- package/dist/plugin-sdk/discord/monitor/presence-cache.d.ts +9 -0
- package/dist/plugin-sdk/discord/monitor/provider.d.ts +13 -0
- package/dist/plugin-sdk/discord/monitor/reply-context.d.ts +13 -0
- package/dist/plugin-sdk/discord/monitor/reply-delivery.d.ts +18 -0
- package/dist/plugin-sdk/discord/monitor/sender-identity.d.ts +31 -0
- package/dist/plugin-sdk/discord/monitor/system-events.d.ts +2 -0
- package/dist/plugin-sdk/discord/monitor/threading.d.ts +101 -0
- package/dist/plugin-sdk/discord/monitor/typing.d.ts +5 -0
- package/dist/plugin-sdk/discord/monitor.d.ts +10 -0
- package/dist/plugin-sdk/discord/monitor.gateway.d.ts +12 -0
- package/dist/plugin-sdk/discord/pluralkit.d.ts +26 -0
- package/dist/plugin-sdk/discord/probe.d.ts +29 -0
- package/dist/plugin-sdk/discord/resolve-channels.d.ts +15 -0
- package/dist/plugin-sdk/discord/resolve-users.d.ts +14 -0
- package/dist/plugin-sdk/discord/send.channels.d.ts +17 -0
- package/dist/plugin-sdk/discord/send.d.ts +8 -0
- package/dist/plugin-sdk/discord/send.emojis-stickers.d.ts +4 -0
- package/dist/plugin-sdk/discord/send.guild.d.ts +24 -0
- package/dist/plugin-sdk/discord/send.messages.d.ts +18 -0
- package/dist/plugin-sdk/discord/send.outbound.d.ts +22 -0
- package/dist/plugin-sdk/discord/send.permissions.d.ts +4 -0
- package/dist/plugin-sdk/discord/send.reactions.d.ts +15 -0
- package/dist/plugin-sdk/discord/send.shared.d.ts +69 -0
- package/dist/plugin-sdk/discord/send.types.d.ts +130 -0
- package/dist/plugin-sdk/discord/targets.d.ts +18 -0
- package/dist/plugin-sdk/discord/token.d.ts +11 -0
- package/dist/plugin-sdk/gateway/call.d.ts +51 -0
- package/dist/plugin-sdk/gateway/chat-abort.d.ts +44 -0
- package/dist/plugin-sdk/gateway/chat-sanitize.d.ts +3 -0
- package/dist/plugin-sdk/gateway/client.d.ts +61 -0
- package/dist/plugin-sdk/gateway/control-ui-shared.d.ts +9 -0
- package/dist/plugin-sdk/gateway/device-auth.d.ts +12 -0
- package/dist/plugin-sdk/gateway/net.d.ts +40 -0
- package/dist/plugin-sdk/gateway/node-registry.d.ts +60 -0
- package/dist/plugin-sdk/gateway/protocol/client-info.d.ts +58 -0
- package/dist/plugin-sdk/gateway/protocol/index.d.ts +654 -0
- package/dist/plugin-sdk/gateway/protocol/schema/agent.d.ts +72 -0
- package/dist/plugin-sdk/gateway/protocol/schema/agents-models-skills.d.ts +152 -0
- package/dist/plugin-sdk/gateway/protocol/schema/channels.d.ts +105 -0
- package/dist/plugin-sdk/gateway/protocol/schema/config.d.ts +51 -0
- package/dist/plugin-sdk/gateway/protocol/schema/cron.d.ts +353 -0
- package/dist/plugin-sdk/gateway/protocol/schema/devices.d.ts +38 -0
- package/dist/plugin-sdk/gateway/protocol/schema/error-codes.d.ts +14 -0
- package/dist/plugin-sdk/gateway/protocol/schema/exec-approvals.d.ts +162 -0
- package/dist/plugin-sdk/gateway/protocol/schema/frames.d.ts +163 -0
- package/dist/plugin-sdk/gateway/protocol/schema/logs-chat.d.ts +45 -0
- package/dist/plugin-sdk/gateway/protocol/schema/nodes.d.ts +64 -0
- package/dist/plugin-sdk/gateway/protocol/schema/primitives.d.ts +4 -0
- package/dist/plugin-sdk/gateway/protocol/schema/protocol-schemas.d.ts +3 -0
- package/dist/plugin-sdk/gateway/protocol/schema/sessions.d.ts +74 -0
- package/dist/plugin-sdk/gateway/protocol/schema/snapshot.d.ts +63 -0
- package/dist/plugin-sdk/gateway/protocol/schema/types.d.ts +122 -0
- package/dist/plugin-sdk/gateway/protocol/schema/wizard.d.ts +86 -0
- package/dist/plugin-sdk/gateway/protocol/schema.d.ts +16 -0
- package/dist/plugin-sdk/gateway/server/ws-types.d.ts +9 -0
- package/dist/plugin-sdk/gateway/server-channels.d.ts +24 -0
- package/dist/plugin-sdk/gateway/server-methods/types.d.ts +96 -0
- package/dist/plugin-sdk/gateway/server-shared.d.ts +7 -0
- package/dist/plugin-sdk/gateway/session-utils.d.ts +53 -0
- package/dist/plugin-sdk/gateway/session-utils.fs.d.ts +11 -0
- package/dist/plugin-sdk/gateway/session-utils.types.d.ts +83 -0
- package/dist/plugin-sdk/globals.d.ts +11 -0
- package/dist/plugin-sdk/hooks/internal-hooks.d.ts +95 -0
- package/dist/plugin-sdk/hooks/types.d.ts +62 -0
- package/dist/plugin-sdk/imessage/accounts.d.ts +16 -0
- package/dist/plugin-sdk/imessage/client.d.ts +46 -0
- package/dist/plugin-sdk/imessage/constants.d.ts +2 -0
- package/dist/plugin-sdk/imessage/monitor/deliver.d.ts +17 -0
- package/dist/plugin-sdk/imessage/monitor/monitor-provider.d.ts +2 -0
- package/dist/plugin-sdk/imessage/monitor/runtime.d.ts +4 -0
- package/dist/plugin-sdk/imessage/monitor/types.d.ts +37 -0
- package/dist/plugin-sdk/imessage/monitor.d.ts +2 -0
- package/dist/plugin-sdk/imessage/probe.d.ts +18 -0
- package/dist/plugin-sdk/imessage/send.d.ts +18 -0
- package/dist/plugin-sdk/imessage/targets.d.ts +39 -0
- package/dist/plugin-sdk/index.d.ts +1 -0
- package/dist/plugin-sdk/index.js +24446 -0
- package/dist/plugin-sdk/infra/agent-events.d.ts +21 -0
- package/dist/plugin-sdk/infra/backoff.d.ts +8 -0
- package/dist/plugin-sdk/infra/channel-activity.d.ts +18 -0
- package/dist/plugin-sdk/infra/channel-summary.d.ts +7 -0
- package/dist/plugin-sdk/infra/dedupe.d.ts +11 -0
- package/dist/plugin-sdk/infra/device-auth-store.d.ts +23 -0
- package/dist/plugin-sdk/infra/device-identity.d.ts +11 -0
- package/dist/plugin-sdk/infra/diagnostic-events.d.ts +121 -0
- package/dist/plugin-sdk/infra/diagnostic-flags.d.ts +4 -0
- package/dist/plugin-sdk/infra/env.d.ts +11 -0
- package/dist/plugin-sdk/infra/errors.d.ts +3 -0
- package/dist/plugin-sdk/infra/exec-approvals.d.ts +155 -0
- package/dist/plugin-sdk/infra/exec-safety.d.ts +1 -0
- package/dist/plugin-sdk/infra/fetch.d.ts +2 -0
- package/dist/plugin-sdk/infra/format-duration.d.ts +10 -0
- package/dist/plugin-sdk/infra/git-commit.d.ts +4 -0
- package/dist/plugin-sdk/infra/heartbeat-events.d.ts +21 -0
- package/dist/plugin-sdk/infra/heartbeat-runner.d.ts +44 -0
- package/dist/plugin-sdk/infra/heartbeat-visibility.d.ts +17 -0
- package/dist/plugin-sdk/infra/heartbeat-wake.d.ts +20 -0
- package/dist/plugin-sdk/infra/json-file.d.ts +2 -0
- package/dist/plugin-sdk/infra/machine-name.d.ts +1 -0
- package/dist/plugin-sdk/infra/net/fetch-guard.d.ts +20 -0
- package/dist/plugin-sdk/infra/net/ssrf.d.ts +31 -0
- package/dist/plugin-sdk/infra/node-pairing.d.ts +62 -0
- package/dist/plugin-sdk/infra/node-shell.d.ts +1 -0
- package/dist/plugin-sdk/infra/openclaw-root.d.ts +10 -0
- package/dist/plugin-sdk/infra/outbound/channel-adapters.d.ts +6 -0
- package/dist/plugin-sdk/infra/outbound/channel-selection.d.ts +11 -0
- package/dist/plugin-sdk/infra/outbound/channel-target.d.ts +6 -0
- package/dist/plugin-sdk/infra/outbound/deliver.d.ts +69 -0
- package/dist/plugin-sdk/infra/outbound/directory-cache.d.ts +21 -0
- package/dist/plugin-sdk/infra/outbound/message-action-runner.d.ts +74 -0
- package/dist/plugin-sdk/infra/outbound/message-action-spec.d.ts +5 -0
- package/dist/plugin-sdk/infra/outbound/message.d.ts +76 -0
- package/dist/plugin-sdk/infra/outbound/outbound-policy.d.ts +31 -0
- package/dist/plugin-sdk/infra/outbound/outbound-send-service.d.ts +58 -0
- package/dist/plugin-sdk/infra/outbound/outbound-session.d.ts +31 -0
- package/dist/plugin-sdk/infra/outbound/payloads.d.ts +16 -0
- package/dist/plugin-sdk/infra/outbound/target-errors.d.ts +6 -0
- package/dist/plugin-sdk/infra/outbound/target-normalization.d.ts +4 -0
- package/dist/plugin-sdk/infra/outbound/target-resolver.d.ts +53 -0
- package/dist/plugin-sdk/infra/outbound/targets.d.ts +65 -0
- package/dist/plugin-sdk/infra/ports-format.d.ts +5 -0
- package/dist/plugin-sdk/infra/ports-inspect.d.ts +2 -0
- package/dist/plugin-sdk/infra/ports-lsof.d.ts +2 -0
- package/dist/plugin-sdk/infra/ports-types.d.ts +17 -0
- package/dist/plugin-sdk/infra/ports.d.ts +14 -0
- package/dist/plugin-sdk/infra/provider-usage.auth.d.ts +11 -0
- package/dist/plugin-sdk/infra/provider-usage.d.ts +4 -0
- package/dist/plugin-sdk/infra/provider-usage.fetch.antigravity.d.ts +2 -0
- package/dist/plugin-sdk/infra/provider-usage.fetch.claude.d.ts +2 -0
- package/dist/plugin-sdk/infra/provider-usage.fetch.codex.d.ts +2 -0
- package/dist/plugin-sdk/infra/provider-usage.fetch.copilot.d.ts +2 -0
- package/dist/plugin-sdk/infra/provider-usage.fetch.d.ts +7 -0
- package/dist/plugin-sdk/infra/provider-usage.fetch.gemini.d.ts +2 -0
- package/dist/plugin-sdk/infra/provider-usage.fetch.minimax.d.ts +2 -0
- package/dist/plugin-sdk/infra/provider-usage.fetch.shared.d.ts +1 -0
- package/dist/plugin-sdk/infra/provider-usage.fetch.zai.d.ts +2 -0
- package/dist/plugin-sdk/infra/provider-usage.format.d.ts +13 -0
- package/dist/plugin-sdk/infra/provider-usage.load.d.ts +12 -0
- package/dist/plugin-sdk/infra/provider-usage.shared.d.ts +8 -0
- package/dist/plugin-sdk/infra/provider-usage.types.d.ts +17 -0
- package/dist/plugin-sdk/infra/restart-sentinel.d.ts +50 -0
- package/dist/plugin-sdk/infra/restart.d.ts +28 -0
- package/dist/plugin-sdk/infra/retry-policy.d.ts +25 -0
- package/dist/plugin-sdk/infra/retry.d.ts +21 -0
- package/dist/plugin-sdk/infra/session-cost-usage.d.ts +160 -0
- package/dist/plugin-sdk/infra/shell-env.d.ts +33 -0
- package/dist/plugin-sdk/infra/skills-remote.d.ts +24 -0
- package/dist/plugin-sdk/infra/system-events.d.ts +16 -0
- package/dist/plugin-sdk/infra/tailnet.d.ts +7 -0
- package/dist/plugin-sdk/infra/tls/fingerprint.d.ts +1 -0
- package/dist/plugin-sdk/infra/tls/gateway.d.ts +16 -0
- package/dist/plugin-sdk/infra/transport-ready.d.ts +16 -0
- package/dist/plugin-sdk/infra/unhandled-rejections.d.ts +15 -0
- package/dist/plugin-sdk/infra/warnings.d.ts +1 -0
- package/dist/plugin-sdk/infra/ws.d.ts +2 -0
- package/dist/plugin-sdk/infra/wsl.d.ts +2 -0
- package/dist/plugin-sdk/line/accounts.d.ts +10 -0
- package/dist/plugin-sdk/line/auto-reply-delivery.d.ts +49 -0
- package/dist/plugin-sdk/line/bot-access.d.ts +15 -0
- package/dist/plugin-sdk/line/bot-handlers.d.ts +13 -0
- package/dist/plugin-sdk/line/bot-message-context.d.ts +102 -0
- package/dist/plugin-sdk/line/bot.d.ts +24 -0
- package/dist/plugin-sdk/line/config-schema.d.ts +64 -0
- package/dist/plugin-sdk/line/download.d.ts +7 -0
- package/dist/plugin-sdk/line/flex-templates.d.ts +195 -0
- package/dist/plugin-sdk/line/markdown-to-line.d.ts +72 -0
- package/dist/plugin-sdk/line/monitor.d.ts +28 -0
- package/dist/plugin-sdk/line/probe.d.ts +2 -0
- package/dist/plugin-sdk/line/reply-chunks.d.ts +24 -0
- package/dist/plugin-sdk/line/send.d.ts +118 -0
- package/dist/plugin-sdk/line/signature.d.ts +1 -0
- package/dist/plugin-sdk/line/template-messages.d.ts +119 -0
- package/dist/plugin-sdk/line/types.d.ts +125 -0
- package/dist/plugin-sdk/line/webhook.d.ts +19 -0
- package/dist/plugin-sdk/link-understanding/apply.d.ts +10 -0
- package/dist/plugin-sdk/link-understanding/defaults.d.ts +2 -0
- package/dist/plugin-sdk/link-understanding/detect.d.ts +3 -0
- package/dist/plugin-sdk/link-understanding/format.d.ts +4 -0
- package/dist/plugin-sdk/link-understanding/runner.d.ts +11 -0
- package/dist/plugin-sdk/logger.d.ts +6 -0
- package/dist/plugin-sdk/logging/config.d.ts +4 -0
- package/dist/plugin-sdk/logging/console.d.ts +19 -0
- package/dist/plugin-sdk/logging/diagnostic.d.ts +58 -0
- package/dist/plugin-sdk/logging/levels.d.ts +4 -0
- package/dist/plugin-sdk/logging/logger.d.ts +42 -0
- package/dist/plugin-sdk/logging/redact-identifier.d.ts +4 -0
- package/dist/plugin-sdk/logging/redact.d.ts +9 -0
- package/dist/plugin-sdk/logging/state.d.ts +17 -0
- package/dist/plugin-sdk/logging/subsystem.d.ts +16 -0
- package/dist/plugin-sdk/logging.d.ts +10 -0
- package/dist/plugin-sdk/markdown/code-spans.d.ts +10 -0
- package/dist/plugin-sdk/markdown/fences.d.ts +10 -0
- package/dist/plugin-sdk/markdown/frontmatter.d.ts +2 -0
- package/dist/plugin-sdk/markdown/ir.d.ts +32 -0
- package/dist/plugin-sdk/markdown/render.d.ts +18 -0
- package/dist/plugin-sdk/markdown/tables.d.ts +2 -0
- package/dist/plugin-sdk/media/audio-tags.d.ts +10 -0
- package/dist/plugin-sdk/media/audio.d.ts +4 -0
- package/dist/plugin-sdk/media/constants.d.ts +7 -0
- package/dist/plugin-sdk/media/fetch.d.ts +23 -0
- package/dist/plugin-sdk/media/image-ops.d.ts +39 -0
- package/dist/plugin-sdk/media/input-files.d.ts +76 -0
- package/dist/plugin-sdk/media/mime.d.ts +15 -0
- package/dist/plugin-sdk/media/parse.d.ts +8 -0
- package/dist/plugin-sdk/media/store.d.ts +18 -0
- package/dist/plugin-sdk/media-understanding/apply.d.ts +19 -0
- package/dist/plugin-sdk/media-understanding/attachments.d.ts +43 -0
- package/dist/plugin-sdk/media-understanding/concurrency.d.ts +1 -0
- package/dist/plugin-sdk/media-understanding/defaults.d.ts +10 -0
- package/dist/plugin-sdk/media-understanding/errors.d.ts +6 -0
- package/dist/plugin-sdk/media-understanding/format.d.ts +7 -0
- package/dist/plugin-sdk/media-understanding/providers/anthropic/index.d.ts +2 -0
- package/dist/plugin-sdk/media-understanding/providers/deepgram/audio.d.ts +4 -0
- package/dist/plugin-sdk/media-understanding/providers/deepgram/index.d.ts +2 -0
- package/dist/plugin-sdk/media-understanding/providers/google/audio.d.ts +3 -0
- package/dist/plugin-sdk/media-understanding/providers/google/index.d.ts +2 -0
- package/dist/plugin-sdk/media-understanding/providers/google/video.d.ts +3 -0
- package/dist/plugin-sdk/media-understanding/providers/groq/index.d.ts +2 -0
- package/dist/plugin-sdk/media-understanding/providers/image.d.ts +2 -0
- package/dist/plugin-sdk/media-understanding/providers/index.d.ts +4 -0
- package/dist/plugin-sdk/media-understanding/providers/minimax/index.d.ts +2 -0
- package/dist/plugin-sdk/media-understanding/providers/openai/audio.d.ts +3 -0
- package/dist/plugin-sdk/media-understanding/providers/openai/index.d.ts +2 -0
- package/dist/plugin-sdk/media-understanding/providers/shared.d.ts +10 -0
- package/dist/plugin-sdk/media-understanding/resolve.d.ts +44 -0
- package/dist/plugin-sdk/media-understanding/runner.d.ts +34 -0
- package/dist/plugin-sdk/media-understanding/scope.d.ts +9 -0
- package/dist/plugin-sdk/media-understanding/types.d.ts +92 -0
- package/dist/plugin-sdk/media-understanding/video.d.ts +2 -0
- package/dist/plugin-sdk/memory/backend-config.d.ts +48 -0
- package/dist/plugin-sdk/memory/batch-gemini.d.ts +55 -0
- package/dist/plugin-sdk/memory/batch-openai.d.ts +45 -0
- package/dist/plugin-sdk/memory/batch-voyage.d.ts +46 -0
- package/dist/plugin-sdk/memory/embeddings-gemini.d.ts +13 -0
- package/dist/plugin-sdk/memory/embeddings-openai.d.ts +13 -0
- package/dist/plugin-sdk/memory/embeddings-voyage.d.ts +13 -0
- package/dist/plugin-sdk/memory/embeddings.d.ts +39 -0
- package/dist/plugin-sdk/memory/hybrid.d.ts +34 -0
- package/dist/plugin-sdk/memory/index.d.ts +3 -0
- package/dist/plugin-sdk/memory/internal.d.ts +27 -0
- package/dist/plugin-sdk/memory/manager-search.d.ts +60 -0
- package/dist/plugin-sdk/memory/manager.d.ts +136 -0
- package/dist/plugin-sdk/memory/memory-schema.d.ts +10 -0
- package/dist/plugin-sdk/memory/node-llama.d.ts +8 -0
- package/dist/plugin-sdk/memory/qmd-manager.d.ts +85 -0
- package/dist/plugin-sdk/memory/search-manager.d.ts +10 -0
- package/dist/plugin-sdk/memory/session-files.d.ts +12 -0
- package/dist/plugin-sdk/memory/sqlite-vec.d.ts +9 -0
- package/dist/plugin-sdk/memory/sqlite.d.ts +1 -0
- package/dist/plugin-sdk/memory/types.d.ts +94 -0
- package/dist/plugin-sdk/pairing/pairing-labels.d.ts +2 -0
- package/dist/plugin-sdk/pairing/pairing-messages.d.ts +6 -0
- package/dist/plugin-sdk/pairing/pairing-store.d.ts +46 -0
- package/dist/plugin-sdk/pi-model-discovery-Dw3A6oXH.js +37 -0
- package/dist/plugin-sdk/plugin-sdk/index.d.ts +100 -0
- package/dist/plugin-sdk/plugins/bundled-dir.d.ts +1 -0
- package/dist/plugin-sdk/plugins/commands.d.ts +78 -0
- package/dist/plugin-sdk/plugins/config-schema.d.ts +2 -0
- package/dist/plugin-sdk/plugins/config-state.d.ts +33 -0
- package/dist/plugin-sdk/plugins/discovery.d.ts +22 -0
- package/dist/plugin-sdk/plugins/hook-runner-global.d.ts +31 -0
- package/dist/plugin-sdk/plugins/hooks.d.ts +41 -0
- package/dist/plugin-sdk/plugins/http-path.d.ts +1 -0
- package/dist/plugin-sdk/plugins/http-registry.d.ts +13 -0
- package/dist/plugin-sdk/plugins/loader.d.ts +14 -0
- package/dist/plugin-sdk/plugins/manifest-registry.d.ts +33 -0
- package/dist/plugin-sdk/plugins/manifest.d.ts +64 -0
- package/dist/plugin-sdk/plugins/registry.d.ts +130 -0
- package/dist/plugin-sdk/plugins/runtime/index.d.ts +3 -0
- package/dist/plugin-sdk/plugins/runtime/native-deps.d.ts +8 -0
- package/dist/plugin-sdk/plugins/runtime/types.d.ts +314 -0
- package/dist/plugin-sdk/plugins/runtime.d.ts +5 -0
- package/dist/plugin-sdk/plugins/schema-validator.d.ts +10 -0
- package/dist/plugin-sdk/plugins/slots.d.ts +24 -0
- package/dist/plugin-sdk/plugins/tools.d.ts +13 -0
- package/dist/plugin-sdk/plugins/types.d.ts +381 -0
- package/dist/plugin-sdk/polls.d.ts +21 -0
- package/dist/plugin-sdk/process/command-queue.d.ts +12 -0
- package/dist/plugin-sdk/process/exec.d.ts +22 -0
- package/dist/plugin-sdk/process/lanes.d.ts +6 -0
- package/dist/plugin-sdk/process/spawn-utils.d.ts +26 -0
- package/dist/plugin-sdk/providers/github-copilot-token.d.ts +19 -0
- package/dist/plugin-sdk/providers/qwen-portal-oauth.d.ts +2 -0
- package/dist/plugin-sdk/routing/bindings.d.ts +11 -0
- package/dist/plugin-sdk/routing/resolve-route.d.ts +38 -0
- package/dist/plugin-sdk/routing/session-key.d.ts +47 -0
- package/dist/plugin-sdk/runtime.d.ts +6 -0
- package/dist/plugin-sdk/security/channel-metadata.d.ts +6 -0
- package/dist/plugin-sdk/security/external-content.d.ts +67 -0
- package/dist/plugin-sdk/sessions/level-overrides.d.ts +10 -0
- package/dist/plugin-sdk/sessions/model-overrides.d.ts +14 -0
- package/dist/plugin-sdk/sessions/send-policy.d.ts +11 -0
- package/dist/plugin-sdk/sessions/session-key-utils.d.ts +8 -0
- package/dist/plugin-sdk/sessions/session-label.d.ts +9 -0
- package/dist/plugin-sdk/sessions/transcript-events.d.ts +7 -0
- package/dist/plugin-sdk/shared/text/reasoning-tags.d.ts +6 -0
- package/dist/plugin-sdk/signal/accounts.d.ts +17 -0
- package/dist/plugin-sdk/signal/client.d.ts +32 -0
- package/dist/plugin-sdk/signal/daemon.d.ts +18 -0
- package/dist/plugin-sdk/signal/format.d.ts +17 -0
- package/dist/plugin-sdk/signal/identity.d.ts +23 -0
- package/dist/plugin-sdk/signal/index.d.ts +5 -0
- package/dist/plugin-sdk/signal/monitor/event-handler.d.ts +5 -0
- package/dist/plugin-sdk/signal/monitor/event-handler.types.d.ts +117 -0
- package/dist/plugin-sdk/signal/monitor.d.ts +23 -0
- package/dist/plugin-sdk/signal/probe.d.ts +8 -0
- package/dist/plugin-sdk/signal/reaction-level.d.ts +24 -0
- package/dist/plugin-sdk/signal/send-reactions.d.ts +32 -0
- package/dist/plugin-sdk/signal/send.d.ts +24 -0
- package/dist/plugin-sdk/signal/sse-reconnect.d.ts +13 -0
- package/dist/plugin-sdk/slack/accounts.d.ts +32 -0
- package/dist/plugin-sdk/slack/actions.d.ts +53 -0
- package/dist/plugin-sdk/slack/channel-migration.d.ts +20 -0
- package/dist/plugin-sdk/slack/client.d.ts +4 -0
- package/dist/plugin-sdk/slack/directory-live.d.ts +4 -0
- package/dist/plugin-sdk/slack/format.d.ts +7 -0
- package/dist/plugin-sdk/slack/http/index.d.ts +1 -0
- package/dist/plugin-sdk/slack/http/registry.d.ts +12 -0
- package/dist/plugin-sdk/slack/index.d.ts +6 -0
- package/dist/plugin-sdk/slack/monitor/allow-list.d.ts +20 -0
- package/dist/plugin-sdk/slack/monitor/auth.d.ts +10 -0
- package/dist/plugin-sdk/slack/monitor/channel-config.d.ts +40 -0
- package/dist/plugin-sdk/slack/monitor/commands.d.ts +4 -0
- package/dist/plugin-sdk/slack/monitor/context.d.ts +109 -0
- package/dist/plugin-sdk/slack/monitor/events/channels.d.ts +4 -0
- package/dist/plugin-sdk/slack/monitor/events/members.d.ts +4 -0
- package/dist/plugin-sdk/slack/monitor/events/messages.d.ts +6 -0
- package/dist/plugin-sdk/slack/monitor/events/pins.d.ts +4 -0
- package/dist/plugin-sdk/slack/monitor/events/reactions.d.ts +4 -0
- package/dist/plugin-sdk/slack/monitor/events.d.ts +8 -0
- package/dist/plugin-sdk/slack/monitor/media.d.ts +29 -0
- package/dist/plugin-sdk/slack/monitor/message-handler/dispatch.d.ts +2 -0
- package/dist/plugin-sdk/slack/monitor/message-handler/prepare.d.ts +13 -0
- package/dist/plugin-sdk/slack/monitor/message-handler/types.d.ts +22 -0
- package/dist/plugin-sdk/slack/monitor/message-handler.d.ts +11 -0
- package/dist/plugin-sdk/slack/monitor/policy.d.ts +5 -0
- package/dist/plugin-sdk/slack/monitor/provider.d.ts +2 -0
- package/dist/plugin-sdk/slack/monitor/replies.d.ts +50 -0
- package/dist/plugin-sdk/slack/monitor/slash.d.ts +6 -0
- package/dist/plugin-sdk/slack/monitor/thread-resolution.d.ts +12 -0
- package/dist/plugin-sdk/slack/monitor/types.d.ts +97 -0
- package/dist/plugin-sdk/slack/monitor.d.ts +5 -0
- package/dist/plugin-sdk/slack/probe.d.ts +15 -0
- package/dist/plugin-sdk/slack/resolve-channels.d.ts +19 -0
- package/dist/plugin-sdk/slack/resolve-users.d.ts +26 -0
- package/dist/plugin-sdk/slack/send.d.ts +14 -0
- package/dist/plugin-sdk/slack/targets.d.ts +7 -0
- package/dist/plugin-sdk/slack/threading-tool-context.d.ts +10 -0
- package/dist/plugin-sdk/slack/threading.d.ts +20 -0
- package/dist/plugin-sdk/slack/token.d.ts +3 -0
- package/dist/plugin-sdk/slack/types.d.ts +36 -0
- package/dist/plugin-sdk/telegram/accounts.d.ts +17 -0
- package/dist/plugin-sdk/telegram/allowed-updates.d.ts +4 -0
- package/dist/plugin-sdk/telegram/api-logging.d.ts +11 -0
- package/dist/plugin-sdk/telegram/audit.d.ts +29 -0
- package/dist/plugin-sdk/telegram/bot/delivery.d.ts +34 -0
- package/dist/plugin-sdk/telegram/bot/helpers.d.ts +93 -0
- package/dist/plugin-sdk/telegram/bot/types.d.ts +28 -0
- package/dist/plugin-sdk/telegram/bot-access.d.ts +24 -0
- package/dist/plugin-sdk/telegram/bot-handlers.d.ts +2 -0
- package/dist/plugin-sdk/telegram/bot-message-context.d.ts +130 -0
- package/dist/plugin-sdk/telegram/bot-message-dispatch.d.ts +21 -0
- package/dist/plugin-sdk/telegram/bot-message.d.ts +21 -0
- package/dist/plugin-sdk/telegram/bot-native-commands.d.ts +59 -0
- package/dist/plugin-sdk/telegram/bot-updates.d.ts +27 -0
- package/dist/plugin-sdk/telegram/bot.d.ts +54 -0
- package/dist/plugin-sdk/telegram/caption.d.ts +5 -0
- package/dist/plugin-sdk/telegram/draft-chunking.d.ts +6 -0
- package/dist/plugin-sdk/telegram/draft-stream.d.ts +17 -0
- package/dist/plugin-sdk/telegram/fetch.d.ts +4 -0
- package/dist/plugin-sdk/telegram/format.d.ts +16 -0
- package/dist/plugin-sdk/telegram/group-migration.d.ts +20 -0
- package/dist/plugin-sdk/telegram/inline-buttons.d.ts +11 -0
- package/dist/plugin-sdk/telegram/model-buttons.d.ts +63 -0
- package/dist/plugin-sdk/telegram/monitor.d.ts +18 -0
- package/dist/plugin-sdk/telegram/network-config.d.ts +12 -0
- package/dist/plugin-sdk/telegram/network-errors.d.ts +5 -0
- package/dist/plugin-sdk/telegram/probe.d.ts +18 -0
- package/dist/plugin-sdk/telegram/proxy.d.ts +1 -0
- package/dist/plugin-sdk/telegram/reaction-level.d.ts +18 -0
- package/dist/plugin-sdk/telegram/send.d.ts +96 -0
- package/dist/plugin-sdk/telegram/sent-message-cache.d.ts +16 -0
- package/dist/plugin-sdk/telegram/sticker-cache.d.ts +46 -0
- package/dist/plugin-sdk/telegram/targets.d.ts +14 -0
- package/dist/plugin-sdk/telegram/token.d.ts +13 -0
- package/dist/plugin-sdk/telegram/update-offset-store.d.ts +9 -0
- package/dist/plugin-sdk/telegram/voice.d.ts +20 -0
- package/dist/plugin-sdk/telegram/webhook.d.ts +20 -0
- package/dist/plugin-sdk/terminal/ansi.d.ts +2 -0
- package/dist/plugin-sdk/terminal/links.d.ts +6 -0
- package/dist/plugin-sdk/terminal/palette.d.ts +10 -0
- package/dist/plugin-sdk/terminal/progress-line.d.ts +3 -0
- package/dist/plugin-sdk/terminal/prompt-style.d.ts +3 -0
- package/dist/plugin-sdk/terminal/restore.d.ts +1 -0
- package/dist/plugin-sdk/terminal/theme.d.ts +15 -0
- package/dist/plugin-sdk/tts/tts.d.ts +198 -0
- package/dist/plugin-sdk/tui/tui-formatters.d.ts +31 -0
- package/dist/plugin-sdk/utils/account-id.d.ts +1 -0
- package/dist/plugin-sdk/utils/boolean.d.ts +5 -0
- package/dist/plugin-sdk/utils/delivery-context.d.ts +29 -0
- package/dist/plugin-sdk/utils/directive-tags.d.ts +16 -0
- package/dist/plugin-sdk/utils/message-channel.d.ts +27 -0
- package/dist/plugin-sdk/utils/provider-utils.d.ts +9 -0
- package/dist/plugin-sdk/utils/queue-helpers.d.ts +41 -0
- package/dist/plugin-sdk/utils/shell-argv.d.ts +1 -0
- package/dist/plugin-sdk/utils/transcript-tools.d.ts +8 -0
- package/dist/plugin-sdk/utils/usage-format.d.ts +26 -0
- package/dist/plugin-sdk/utils.d.ts +43 -0
- package/dist/plugin-sdk/version.d.ts +4 -0
- package/dist/plugin-sdk/web/accounts.d.ts +39 -0
- package/dist/plugin-sdk/web/active-listener.d.ts +24 -0
- package/dist/plugin-sdk/web/auth-store.d.ts +25 -0
- package/dist/plugin-sdk/web/auto-reply/constants.d.ts +1 -0
- package/dist/plugin-sdk/web/auto-reply/deliver-reply.d.ts +18 -0
- package/dist/plugin-sdk/web/auto-reply/heartbeat-runner.d.ts +20 -0
- package/dist/plugin-sdk/web/auto-reply/loggers.d.ts +4 -0
- package/dist/plugin-sdk/web/auto-reply/mentions.d.ts +19 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/ack-reaction.d.ts +13 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/broadcast.d.ts +16 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/commands.d.ts +2 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/echo.d.ts +17 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/group-activation.d.ts +9 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/group-gating.d.ts +29 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/group-members.d.ts +6 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/last-route.d.ts +15 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/message-line.d.ts +11 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/on-message.d.ts +24 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/peer.d.ts +2 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/process-message.d.ts +40 -0
- package/dist/plugin-sdk/web/auto-reply/monitor.d.ts +5 -0
- package/dist/plugin-sdk/web/auto-reply/session-snapshot.d.ts +17 -0
- package/dist/plugin-sdk/web/auto-reply/types.d.ts +28 -0
- package/dist/plugin-sdk/web/auto-reply/util.d.ts +2 -0
- package/dist/plugin-sdk/web/auto-reply.d.ts +1 -0
- package/dist/plugin-sdk/web/auto-reply.impl.d.ts +6 -0
- package/dist/plugin-sdk/web/inbound/access-control.d.ts +24 -0
- package/dist/plugin-sdk/web/inbound/dedupe.d.ts +2 -0
- package/dist/plugin-sdk/web/inbound/extract.d.ts +13 -0
- package/dist/plugin-sdk/web/inbound/media.d.ts +6 -0
- package/dist/plugin-sdk/web/inbound/monitor.d.ts +30 -0
- package/dist/plugin-sdk/web/inbound/send-api.d.ts +22 -0
- package/dist/plugin-sdk/web/inbound/types.d.ts +40 -0
- package/dist/plugin-sdk/web/inbound.d.ts +4 -0
- package/dist/plugin-sdk/web/login-qr.d.ts +19 -0
- package/dist/plugin-sdk/web/login.d.ts +3 -0
- package/dist/plugin-sdk/web/media.d.ts +25 -0
- package/dist/plugin-sdk/web/outbound.d.ts +23 -0
- package/dist/plugin-sdk/web/qr-image.d.ts +4 -0
- package/dist/plugin-sdk/web/reconnect.d.ts +12 -0
- package/dist/plugin-sdk/web/session.d.ts +14 -0
- package/dist/plugin-sdk/web/vcard.d.ts +6 -0
- package/dist/plugin-sdk/whatsapp/normalize.d.ts +6 -0
- package/dist/plugin-sdk/wizard/prompts.d.ts +42 -0
- package/dist/plugin-sdk/wizard/session.d.ts +42 -0
- package/dist/plugins-DWuabtET.js +495 -0
- package/dist/plugins-DrjfSaQw.js +496 -0
- package/dist/plugins-cli-BEi_3gUD.js +444 -0
- package/dist/plugins-cli-DOE3sFNh.js +441 -0
- package/dist/ports-LFe1-ds4.js +96 -0
- package/dist/program-Mm9gwxgw.js +191 -0
- package/dist/progress-Bcjniu7m.js +133 -0
- package/dist/progress-xpLtQsNY.js +133 -0
- package/dist/prompt-style-CFsleyxV.js +9 -0
- package/dist/prompt-style-vzh0MGHs.js +9 -0
- package/dist/prompts-CudpZgTI.js +10 -0
- package/dist/prompts-FbZThK8w.js +10 -0
- package/dist/pw-ai-B7Fvw8DW.js +1649 -0
- package/dist/pw-ai-BpFK57Lc.js +1651 -0
- package/dist/pw-ai-tNPuRNn3.js +1649 -0
- package/dist/qmd-manager-CazydCuO.js +676 -0
- package/dist/qmd-manager-D13fgvkg.js +677 -0
- package/dist/qmd-manager-QixCK9Sh.js +674 -0
- package/dist/redact-BIMJ3ntQ.js +94 -0
- package/dist/redact-Bt-krp_b.js +97 -0
- package/dist/redact-DJCFY628.js +97 -0
- package/dist/register.subclis-DpdKOrqR.js +348 -0
- package/dist/reply-Nagr9G73.js +64757 -0
- package/dist/rolldown-runtime-Cbj13DAv.js +20 -0
- package/dist/routes-B5LAoQFO.js +2411 -0
- package/dist/routes-B9mYGJET.js +2411 -0
- package/dist/rpc-70nwvcmj.js +95 -0
- package/dist/rpc-zvkrerfj.js +95 -0
- package/dist/run-main-Y7DVYcUu.js +194 -0
- package/dist/sandbox-BwaFbMul.js +2943 -0
- package/dist/sandbox-CFJ-0soL.js +2942 -0
- package/dist/sandbox-cli-35JWqRj-.js +460 -0
- package/dist/sandbox-cli-DcGwU3Oa.js +463 -0
- package/dist/security-cli-D-EgVOaA.js +505 -0
- package/dist/security-cli-VON7qTOf.js +508 -0
- package/dist/server-context-C8xKLc0L.js +740 -0
- package/dist/server-context-yKyxyxOJ.js +740 -0
- package/dist/server-node-events-CK-3iTzR.js +219 -0
- package/dist/server-node-events-D0VSL_HV.js +216 -0
- package/dist/service-DMUKaGTV.js +680 -0
- package/dist/service-W6pWyB7g.js +680 -0
- package/dist/service-audit-BTHjbAs2.js +542 -0
- package/dist/service-audit-GvE18NCt.js +542 -0
- package/dist/session-cost-usage-C5MMXOZi.js +692 -0
- package/dist/session-cost-usage-CTuGqn7n.js +692 -0
- package/dist/session-key-Dk6vSAOv.js +183 -0
- package/dist/session-key-ezJ78bLC.js +183 -0
- package/dist/shared-BG2E-mTe.js +74 -0
- package/dist/shared-Boip_I0l.js +152 -0
- package/dist/shared-C-yRLI1r.js +74 -0
- package/dist/shared-CF5YSjfr.js +152 -0
- package/dist/skill-scanner-BoGjHXUZ.js +255 -0
- package/dist/skill-scanner-COatt01v.js +255 -0
- package/dist/skills-B7bCWSck.js +693 -0
- package/dist/skills-D5JDj3TR.js +694 -0
- package/dist/skills-cli-D8i8lW-Y.js +290 -0
- package/dist/skills-cli-OwKnGglX.js +287 -0
- package/dist/skills-status-D83jBWaq.js +187 -0
- package/dist/skills-status-DPwsDMVS.js +187 -0
- package/dist/sqlite-BW8p11HW.js +239 -0
- package/dist/sqlite-BjhYBODp.js +221 -0
- package/dist/sqlite-D1XZ7Oej.js +239 -0
- package/dist/status-BF8IVV7c.js +21 -0
- package/dist/status-CWDof7Cn.js +21 -0
- package/dist/status-CgdwqWHT.js +3177 -0
- package/dist/status-DqF0Asv5.js +27 -0
- package/dist/status-Dqs6r0p6.js +27 -0
- package/dist/subsystem-CAq3uyo7.js +834 -0
- package/dist/system-cli-Bv347a4x.js +83 -0
- package/dist/system-cli-CV1yMDPJ.js +80 -0
- package/dist/systemd-D5s01yMo.js +438 -0
- package/dist/systemd-LmtH96vm.js +438 -0
- package/dist/systemd-hints-3-E4ndGf.js +19 -0
- package/dist/systemd-hints-D3nZ6-tA.js +19 -0
- package/dist/systemd-linger-D4Z0ePWs.js +75 -0
- package/dist/systemd-linger-DFHJcGck.js +75 -0
- package/dist/table-BGYjbJbA.js +279 -0
- package/dist/table-CM9lV0GA.js +279 -0
- package/dist/tailnet-Byp3obcc.js +42 -0
- package/dist/tailnet-DLDGNuH2.js +42 -0
- package/dist/tailscale-9MusRvOi.js +225 -0
- package/dist/tailscale-BVGD9gSD.js +252 -0
- package/dist/tool-display-BxZG0o1b.js +795 -0
- package/dist/tool-display-PgbqPY5M.js +795 -0
- package/dist/transcript-events-Bv_eRVym.js +17 -0
- package/dist/transcript-events-ChU6IQwp.js +17 -0
- package/dist/transcript-events-JLH5W4He.js +17 -0
- package/dist/tui-CSu3OIP_.js +2671 -0
- package/dist/tui-DhzN4YmH.js +2672 -0
- package/dist/tui-cli-Do9zFynn.js +55 -0
- package/dist/tui-cli-awwGCxKR.js +58 -0
- package/dist/update-DBMfgR7g.js +317 -0
- package/dist/update-Nc1UGXeU.js +317 -0
- package/dist/update-cli-DKJswr-w.js +1035 -0
- package/dist/update-cli-LmAKEOiJ.js +1033 -0
- package/dist/update-runner-DQwdSxkJ.js +1458 -0
- package/dist/update-runner-kfvB4_XO.js +1458 -0
- package/dist/usage-format-BcU1flOY.js +36 -0
- package/dist/usage-format-DvowRSs-.js +36 -0
- package/dist/utils-CKSrBNwq.js +192 -0
- package/dist/utils-DX85MiPR.js +188 -0
- package/dist/webhooks-cli--t1jf_uP.js +309 -0
- package/dist/webhooks-cli-DAMZGMPC.js +312 -0
- package/dist/widearea-dns-Bf5ongWC.js +127 -0
- package/dist/widearea-dns-DDNQMGyz.js +127 -0
- package/dist/ws-CEcdsnN9.js +13 -0
- package/dist/ws-D091yo4M.js +13 -0
- package/dist/ws-log-B0dVho23.js +267 -0
- package/dist/ws-log-CBrAJIdp.js +267 -0
- package/dist/wsl-D4fz-38s.js +160 -0
- package/docs/.i18n/README.md +31 -0
- package/docs/.i18n/glossary.zh-CN.json +210 -0
- package/docs/.i18n/zh-CN.tm.jsonl +1329 -0
- package/docs/CNAME +1 -0
- package/docs/assets/macos-onboarding/01-macos-warning.jpeg +0 -0
- package/docs/assets/macos-onboarding/02-local-networks.jpeg +0 -0
- package/docs/assets/macos-onboarding/03-security-notice.png +0 -0
- package/docs/assets/macos-onboarding/04-choose-gateway.png +0 -0
- package/docs/assets/macos-onboarding/05-permissions.png +0 -0
- package/docs/assets/openclaw-logo-text-dark.png +0 -0
- package/docs/assets/openclaw-logo-text.png +0 -0
- package/docs/assets/pixel-lobster.svg +60 -0
- package/docs/assets/showcase/agents-ui.jpg +0 -0
- package/docs/assets/showcase/bambu-cli.png +0 -0
- package/docs/assets/showcase/codexmonitor.png +0 -0
- package/docs/assets/showcase/gohome-grafana.png +0 -0
- package/docs/assets/showcase/ios-testflight.jpg +0 -0
- package/docs/assets/showcase/oura-health.png +0 -0
- package/docs/assets/showcase/padel-cli.svg +11 -0
- package/docs/assets/showcase/padel-screenshot.jpg +0 -0
- package/docs/assets/showcase/papla-tts.jpg +0 -0
- package/docs/assets/showcase/pr-review-telegram.jpg +0 -0
- package/docs/assets/showcase/roborock-screenshot.jpg +0 -0
- package/docs/assets/showcase/roborock-status.svg +13 -0
- package/docs/assets/showcase/roof-camera-sky.jpg +0 -0
- package/docs/assets/showcase/snag.png +0 -0
- package/docs/assets/showcase/tesco-shop.jpg +0 -0
- package/docs/assets/showcase/wienerlinien.png +0 -0
- package/docs/assets/showcase/wine-cellar-skill.jpg +0 -0
- package/docs/assets/showcase/winix-air-purifier.jpg +0 -0
- package/docs/assets/showcase/xuezh-pronunciation.jpeg +0 -0
- package/docs/automation/auth-monitoring.md +44 -0
- package/docs/automation/cron-jobs.md +478 -0
- package/docs/automation/cron-vs-heartbeat.md +282 -0
- package/docs/automation/gmail-pubsub.md +256 -0
- package/docs/automation/hooks.md +916 -0
- package/docs/automation/poll.md +69 -0
- package/docs/automation/troubleshooting.md +122 -0
- package/docs/automation/webhook.md +163 -0
- package/docs/brave-search.md +41 -0
- package/docs/channels/bluebubbles.md +340 -0
- package/docs/channels/broadcast-groups.md +442 -0
- package/docs/channels/channel-routing.md +114 -0
- package/docs/channels/discord.md +476 -0
- package/docs/channels/feishu.md +579 -0
- package/docs/channels/googlechat.md +252 -0
- package/docs/channels/grammy.md +31 -0
- package/docs/channels/group-messages.md +84 -0
- package/docs/channels/groups.md +374 -0
- package/docs/channels/imessage.md +321 -0
- package/docs/channels/index.md +46 -0
- package/docs/channels/line.md +186 -0
- package/docs/channels/location.md +56 -0
- package/docs/channels/matrix.md +259 -0
- package/docs/channels/mattermost.md +138 -0
- package/docs/channels/msteams.md +769 -0
- package/docs/channels/nextcloud-talk.md +138 -0
- package/docs/channels/nostr.md +233 -0
- package/docs/channels/pairing.md +86 -0
- package/docs/channels/signal.md +228 -0
- package/docs/channels/slack.md +574 -0
- package/docs/channels/telegram.md +770 -0
- package/docs/channels/tlon.md +132 -0
- package/docs/channels/troubleshooting.md +116 -0
- package/docs/channels/twitch.md +379 -0
- package/docs/channels/whatsapp.md +406 -0
- package/docs/channels/zalo.md +189 -0
- package/docs/channels/zalouser.md +140 -0
- package/docs/cli/acp.md +170 -0
- package/docs/cli/agent.md +24 -0
- package/docs/cli/agents.md +75 -0
- package/docs/cli/approvals.md +50 -0
- package/docs/cli/browser.md +107 -0
- package/docs/cli/channels.md +79 -0
- package/docs/cli/config.md +50 -0
- package/docs/cli/configure.md +33 -0
- package/docs/cli/cron.md +44 -0
- package/docs/cli/dashboard.md +16 -0
- package/docs/cli/devices.md +70 -0
- package/docs/cli/directory.md +63 -0
- package/docs/cli/dns.md +23 -0
- package/docs/cli/docs.md +15 -0
- package/docs/cli/doctor.md +41 -0
- package/docs/cli/gateway.md +202 -0
- package/docs/cli/health.md +21 -0
- package/docs/cli/hooks.md +304 -0
- package/docs/cli/index.md +1031 -0
- package/docs/cli/logs.md +24 -0
- package/docs/cli/memory.md +45 -0
- package/docs/cli/message.md +239 -0
- package/docs/cli/models.md +79 -0
- package/docs/cli/node.md +112 -0
- package/docs/cli/nodes.md +73 -0
- package/docs/cli/onboard.md +43 -0
- package/docs/cli/pairing.md +21 -0
- package/docs/cli/plugins.md +62 -0
- package/docs/cli/reset.md +17 -0
- package/docs/cli/sandbox.md +152 -0
- package/docs/cli/security.md +26 -0
- package/docs/cli/sessions.md +16 -0
- package/docs/cli/setup.md +29 -0
- package/docs/cli/skills.md +26 -0
- package/docs/cli/status.md +26 -0
- package/docs/cli/system.md +60 -0
- package/docs/cli/tui.md +23 -0
- package/docs/cli/uninstall.md +17 -0
- package/docs/cli/update.md +98 -0
- package/docs/cli/voicecall.md +34 -0
- package/docs/cli/webhooks.md +25 -0
- package/docs/concepts/agent-loop.md +146 -0
- package/docs/concepts/agent-workspace.md +233 -0
- package/docs/concepts/agent.md +123 -0
- package/docs/concepts/architecture.md +131 -0
- package/docs/concepts/compaction.md +61 -0
- package/docs/concepts/context.md +161 -0
- package/docs/concepts/features.md +53 -0
- package/docs/concepts/markdown-formatting.md +130 -0
- package/docs/concepts/memory.md +556 -0
- package/docs/concepts/messages.md +154 -0
- package/docs/concepts/model-failover.md +149 -0
- package/docs/concepts/model-providers.md +316 -0
- package/docs/concepts/models.md +208 -0
- package/docs/concepts/multi-agent.md +376 -0
- package/docs/concepts/oauth.md +145 -0
- package/docs/concepts/presence.md +102 -0
- package/docs/concepts/queue.md +89 -0
- package/docs/concepts/retry.md +69 -0
- package/docs/concepts/session-pruning.md +122 -0
- package/docs/concepts/session-tool.md +193 -0
- package/docs/concepts/session.md +204 -0
- package/docs/concepts/sessions.md +10 -0
- package/docs/concepts/streaming.md +135 -0
- package/docs/concepts/system-prompt.md +115 -0
- package/docs/concepts/timezone.md +91 -0
- package/docs/concepts/typebox.md +289 -0
- package/docs/concepts/typing-indicators.md +68 -0
- package/docs/concepts/usage-tracking.md +35 -0
- package/docs/date-time.md +128 -0
- package/docs/debug/node-issue.md +85 -0
- package/docs/diagnostics/flags.md +91 -0
- package/docs/docs.json +1802 -0
- package/docs/experiments/onboarding-config-protocol.md +40 -0
- package/docs/experiments/plans/cron-add-hardening.md +63 -0
- package/docs/experiments/plans/group-policy-hardening.md +40 -0
- package/docs/experiments/plans/openresponses-gateway.md +123 -0
- package/docs/experiments/proposals/model-config.md +36 -0
- package/docs/experiments/research/memory.md +228 -0
- package/docs/gateway/authentication.md +145 -0
- package/docs/gateway/background-process.md +93 -0
- package/docs/gateway/bonjour.md +170 -0
- package/docs/gateway/bridge-protocol.md +89 -0
- package/docs/gateway/cli-backends.md +225 -0
- package/docs/gateway/configuration-examples.md +606 -0
- package/docs/gateway/configuration.md +3416 -0
- package/docs/gateway/discovery.md +116 -0
- package/docs/gateway/doctor.md +282 -0
- package/docs/gateway/gateway-lock.md +34 -0
- package/docs/gateway/health.md +35 -0
- package/docs/gateway/heartbeat.md +364 -0
- package/docs/gateway/index.md +330 -0
- package/docs/gateway/local-models.md +150 -0
- package/docs/gateway/logging.md +113 -0
- package/docs/gateway/multiple-gateways.md +112 -0
- package/docs/gateway/network-model.md +17 -0
- package/docs/gateway/openai-http-api.md +118 -0
- package/docs/gateway/openresponses-http-api.md +317 -0
- package/docs/gateway/pairing.md +99 -0
- package/docs/gateway/protocol.md +221 -0
- package/docs/gateway/remote-gateway-readme.md +157 -0
- package/docs/gateway/remote.md +129 -0
- package/docs/gateway/sandbox-vs-tool-policy-vs-elevated.md +128 -0
- package/docs/gateway/sandboxing.md +193 -0
- package/docs/gateway/security/index.md +829 -0
- package/docs/gateway/tailscale.md +127 -0
- package/docs/gateway/tools-invoke-http-api.md +85 -0
- package/docs/gateway/troubleshooting.md +318 -0
- package/docs/help/debugging.md +162 -0
- package/docs/help/environment.md +81 -0
- package/docs/help/faq.md +2848 -0
- package/docs/help/index.md +21 -0
- package/docs/help/scripts.md +28 -0
- package/docs/help/submitting-a-pr.md +398 -0
- package/docs/help/submitting-an-issue.md +152 -0
- package/docs/help/testing.md +368 -0
- package/docs/help/troubleshooting.md +265 -0
- package/docs/hooks/soul-evil.md +69 -0
- package/docs/images/feishu-step2-create-app.png +0 -0
- package/docs/images/feishu-step3-credentials.png +0 -0
- package/docs/images/feishu-step4-permissions.png +0 -0
- package/docs/images/feishu-step5-bot-capability.png +0 -0
- package/docs/images/feishu-step6-event-subscription.png +0 -0
- package/docs/images/groups-flow.svg +52 -0
- package/docs/images/mobile-ui-screenshot.png +0 -0
- package/docs/index.md +192 -0
- package/docs/install/ansible.md +208 -0
- package/docs/install/bun.md +59 -0
- package/docs/install/development-channels.md +75 -0
- package/docs/install/docker.md +567 -0
- package/docs/install/exe-dev.md +126 -0
- package/docs/install/fly.md +486 -0
- package/docs/install/gcp.md +504 -0
- package/docs/install/hetzner.md +330 -0
- package/docs/install/index.md +203 -0
- package/docs/install/installer.md +385 -0
- package/docs/install/macos-vm.md +281 -0
- package/docs/install/migrating.md +192 -0
- package/docs/install/nix.md +96 -0
- package/docs/install/node.md +138 -0
- package/docs/install/northflank.mdx +53 -0
- package/docs/install/railway.mdx +99 -0
- package/docs/install/render.mdx +159 -0
- package/docs/install/uninstall.md +128 -0
- package/docs/install/updating.md +231 -0
- package/docs/logging.md +350 -0
- package/docs/network.md +54 -0
- package/docs/nodes/audio.md +114 -0
- package/docs/nodes/camera.md +156 -0
- package/docs/nodes/images.md +72 -0
- package/docs/nodes/index.md +342 -0
- package/docs/nodes/location-command.md +113 -0
- package/docs/nodes/media-understanding.md +379 -0
- package/docs/nodes/talk.md +90 -0
- package/docs/nodes/troubleshooting.md +112 -0
- package/docs/nodes/voicewake.md +65 -0
- package/docs/perplexity.md +80 -0
- package/docs/pi-dev.md +70 -0
- package/docs/pi.md +612 -0
- package/docs/platforms/android.md +151 -0
- package/docs/platforms/digitalocean.md +262 -0
- package/docs/platforms/index.md +53 -0
- package/docs/platforms/ios.md +107 -0
- package/docs/platforms/linux.md +94 -0
- package/docs/platforms/mac/bundled-gateway.md +73 -0
- package/docs/platforms/mac/canvas.md +125 -0
- package/docs/platforms/mac/child-process.md +69 -0
- package/docs/platforms/mac/dev-setup.md +104 -0
- package/docs/platforms/mac/health.md +34 -0
- package/docs/platforms/mac/icon.md +31 -0
- package/docs/platforms/mac/logging.md +57 -0
- package/docs/platforms/mac/menu-bar.md +81 -0
- package/docs/platforms/mac/peekaboo.md +65 -0
- package/docs/platforms/mac/permissions.md +50 -0
- package/docs/platforms/mac/release.md +85 -0
- package/docs/platforms/mac/remote.md +83 -0
- package/docs/platforms/mac/signing.md +47 -0
- package/docs/platforms/mac/skills.md +33 -0
- package/docs/platforms/mac/voice-overlay.md +60 -0
- package/docs/platforms/mac/voicewake.md +67 -0
- package/docs/platforms/mac/webchat.md +43 -0
- package/docs/platforms/mac/xpc.md +61 -0
- package/docs/platforms/macos.md +203 -0
- package/docs/platforms/oracle.md +303 -0
- package/docs/platforms/raspberry-pi.md +358 -0
- package/docs/platforms/windows.md +159 -0
- package/docs/plugins/agent-tools.md +99 -0
- package/docs/plugins/manifest.md +71 -0
- package/docs/plugins/voice-call.md +284 -0
- package/docs/plugins/zalouser.md +81 -0
- package/docs/prose.md +134 -0
- package/docs/providers/anthropic.md +152 -0
- package/docs/providers/bedrock.md +176 -0
- package/docs/providers/claude-max-api-proxy.md +148 -0
- package/docs/providers/cloudflare-ai-gateway.md +71 -0
- package/docs/providers/deepgram.md +93 -0
- package/docs/providers/github-copilot.md +72 -0
- package/docs/providers/glm.md +33 -0
- package/docs/providers/index.md +64 -0
- package/docs/providers/minimax.md +208 -0
- package/docs/providers/models.md +52 -0
- package/docs/providers/moonshot.md +142 -0
- package/docs/providers/ollama.md +277 -0
- package/docs/providers/openai.md +62 -0
- package/docs/providers/opencode.md +36 -0
- package/docs/providers/openrouter.md +37 -0
- package/docs/providers/qianfan.md +38 -0
- package/docs/providers/qwen.md +53 -0
- package/docs/providers/synthetic.md +99 -0
- package/docs/providers/venice.md +267 -0
- package/docs/providers/vercel-ai-gateway.md +50 -0
- package/docs/providers/xiaomi.md +64 -0
- package/docs/providers/zai.md +36 -0
- package/docs/refactor/clawnet.md +417 -0
- package/docs/refactor/exec-host.md +316 -0
- package/docs/refactor/outbound-session-mirroring.md +85 -0
- package/docs/refactor/plugin-sdk.md +214 -0
- package/docs/refactor/strict-config.md +93 -0
- package/docs/reference/AGENTS.default.md +123 -0
- package/docs/reference/RELEASING.md +120 -0
- package/docs/reference/api-usage-costs.md +138 -0
- package/docs/reference/credits.md +27 -0
- package/docs/reference/device-models.md +47 -0
- package/docs/reference/rpc.md +43 -0
- package/docs/reference/session-management-compaction.md +285 -0
- package/docs/reference/templates/AGENTS.dev.md +83 -0
- package/docs/reference/templates/AGENTS.md +218 -0
- package/docs/reference/templates/BOOT.md +10 -0
- package/docs/reference/templates/BOOTSTRAP.md +61 -0
- package/docs/reference/templates/HEARTBEAT.md +11 -0
- package/docs/reference/templates/IDENTITY.dev.md +47 -0
- package/docs/reference/templates/IDENTITY.md +29 -0
- package/docs/reference/templates/SOUL.dev.md +76 -0
- package/docs/reference/templates/SOUL.md +42 -0
- package/docs/reference/templates/TOOLS.dev.md +24 -0
- package/docs/reference/templates/TOOLS.md +46 -0
- package/docs/reference/templates/USER.dev.md +18 -0
- package/docs/reference/templates/USER.md +23 -0
- package/docs/reference/test.md +50 -0
- package/docs/reference/token-use.md +112 -0
- package/docs/reference/transcript-hygiene.md +129 -0
- package/docs/reference/wizard.md +269 -0
- package/docs/security/formal-verification.md +164 -0
- package/docs/start/bootstrapping.md +41 -0
- package/docs/start/docs-directory.md +64 -0
- package/docs/start/getting-started.md +120 -0
- package/docs/start/hubs.md +197 -0
- package/docs/start/lore.md +219 -0
- package/docs/start/onboarding.md +80 -0
- package/docs/start/openclaw.md +224 -0
- package/docs/start/quickstart.md +22 -0
- package/docs/start/setup.md +162 -0
- package/docs/start/showcase.md +416 -0
- package/docs/start/wizard-cli-automation.md +141 -0
- package/docs/start/wizard-cli-reference.md +247 -0
- package/docs/start/wizard.md +108 -0
- package/docs/style.css +3 -0
- package/docs/tools/agent-send.md +53 -0
- package/docs/tools/apply-patch.md +50 -0
- package/docs/tools/browser-linux-troubleshooting.md +139 -0
- package/docs/tools/browser-login.md +67 -0
- package/docs/tools/browser.md +576 -0
- package/docs/tools/chrome-extension.md +178 -0
- package/docs/tools/clawhub.md +257 -0
- package/docs/tools/creating-skills.md +54 -0
- package/docs/tools/elevated.md +57 -0
- package/docs/tools/exec-approvals.md +246 -0
- package/docs/tools/exec.md +179 -0
- package/docs/tools/firecrawl.md +61 -0
- package/docs/tools/index.md +512 -0
- package/docs/tools/llm-task.md +115 -0
- package/docs/tools/lobster.md +342 -0
- package/docs/tools/multi-agent-sandbox-tools.md +396 -0
- package/docs/tools/plugin.md +664 -0
- package/docs/tools/reactions.md +22 -0
- package/docs/tools/skills-config.md +76 -0
- package/docs/tools/skills.md +300 -0
- package/docs/tools/slash-commands.md +198 -0
- package/docs/tools/subagents.md +151 -0
- package/docs/tools/thinking.md +74 -0
- package/docs/tools/web.md +261 -0
- package/docs/tts.md +396 -0
- package/docs/vps.md +43 -0
- package/docs/web/control-ui.md +223 -0
- package/docs/web/dashboard.md +46 -0
- package/docs/web/index.md +116 -0
- package/docs/web/tui.md +162 -0
- package/docs/web/webchat.md +49 -0
- package/docs/whatsapp-openclaw-ai-zh.jpg +0 -0
- package/docs/whatsapp-openclaw.jpg +0 -0
- package/docs/zh-CN/AGENTS.md +59 -0
- package/docs/zh-CN/automation/auth-monitoring.md +47 -0
- package/docs/zh-CN/automation/cron-jobs.md +424 -0
- package/docs/zh-CN/automation/cron-vs-heartbeat.md +286 -0
- package/docs/zh-CN/automation/gmail-pubsub.md +249 -0
- package/docs/zh-CN/automation/hooks.md +919 -0
- package/docs/zh-CN/automation/poll.md +76 -0
- package/docs/zh-CN/automation/troubleshooting.md +8 -0
- package/docs/zh-CN/automation/webhook.md +163 -0
- package/docs/zh-CN/brave-search.md +48 -0
- package/docs/zh-CN/channels/bluebubbles.md +271 -0
- package/docs/zh-CN/channels/broadcast-groups.md +449 -0
- package/docs/zh-CN/channels/channel-routing.md +117 -0
- package/docs/zh-CN/channels/discord.md +468 -0
- package/docs/zh-CN/channels/feishu.md +629 -0
- package/docs/zh-CN/channels/googlechat.md +257 -0
- package/docs/zh-CN/channels/grammy.md +38 -0
- package/docs/zh-CN/channels/group-messages.md +91 -0
- package/docs/zh-CN/channels/groups.md +379 -0
- package/docs/zh-CN/channels/imessage.md +302 -0
- package/docs/zh-CN/channels/index.md +53 -0
- package/docs/zh-CN/channels/line.md +180 -0
- package/docs/zh-CN/channels/location.md +63 -0
- package/docs/zh-CN/channels/matrix.md +221 -0
- package/docs/zh-CN/channels/mattermost.md +144 -0
- package/docs/zh-CN/channels/msteams.md +775 -0
- package/docs/zh-CN/channels/nextcloud-talk.md +142 -0
- package/docs/zh-CN/channels/nostr.md +240 -0
- package/docs/zh-CN/channels/pairing.md +89 -0
- package/docs/zh-CN/channels/signal.md +209 -0
- package/docs/zh-CN/channels/slack.md +531 -0
- package/docs/zh-CN/channels/telegram.md +751 -0
- package/docs/zh-CN/channels/tlon.md +136 -0
- package/docs/zh-CN/channels/troubleshooting.md +36 -0
- package/docs/zh-CN/channels/twitch.md +385 -0
- package/docs/zh-CN/channels/whatsapp.md +411 -0
- package/docs/zh-CN/channels/zalo.md +196 -0
- package/docs/zh-CN/channels/zalouser.md +147 -0
- package/docs/zh-CN/cli/acp.md +173 -0
- package/docs/zh-CN/cli/agent.md +30 -0
- package/docs/zh-CN/cli/agents.md +82 -0
- package/docs/zh-CN/cli/approvals.md +57 -0
- package/docs/zh-CN/cli/browser.md +114 -0
- package/docs/zh-CN/cli/channels.md +86 -0
- package/docs/zh-CN/cli/config.md +57 -0
- package/docs/zh-CN/cli/configure.md +38 -0
- package/docs/zh-CN/cli/cron.md +43 -0
- package/docs/zh-CN/cli/dashboard.md +23 -0
- package/docs/zh-CN/cli/devices.md +74 -0
- package/docs/zh-CN/cli/directory.md +70 -0
- package/docs/zh-CN/cli/dns.md +30 -0
- package/docs/zh-CN/cli/docs.md +22 -0
- package/docs/zh-CN/cli/doctor.md +48 -0
- package/docs/zh-CN/cli/gateway.md +206 -0
- package/docs/zh-CN/cli/health.md +28 -0
- package/docs/zh-CN/cli/hooks.md +311 -0
- package/docs/zh-CN/cli/index.md +1032 -0
- package/docs/zh-CN/cli/logs.md +31 -0
- package/docs/zh-CN/cli/memory.md +52 -0
- package/docs/zh-CN/cli/message.md +246 -0
- package/docs/zh-CN/cli/models.md +85 -0
- package/docs/zh-CN/cli/node.md +115 -0
- package/docs/zh-CN/cli/nodes.md +80 -0
- package/docs/zh-CN/cli/onboard.md +36 -0
- package/docs/zh-CN/cli/pairing.md +28 -0
- package/docs/zh-CN/cli/plugins.md +66 -0
- package/docs/zh-CN/cli/reset.md +24 -0
- package/docs/zh-CN/cli/sandbox.md +158 -0
- package/docs/zh-CN/cli/security.md +33 -0
- package/docs/zh-CN/cli/sessions.md +23 -0
- package/docs/zh-CN/cli/setup.md +36 -0
- package/docs/zh-CN/cli/skills.md +33 -0
- package/docs/zh-CN/cli/status.md +33 -0
- package/docs/zh-CN/cli/system.md +63 -0
- package/docs/zh-CN/cli/tui.md +30 -0
- package/docs/zh-CN/cli/uninstall.md +24 -0
- package/docs/zh-CN/cli/update.md +101 -0
- package/docs/zh-CN/cli/voicecall.md +41 -0
- package/docs/zh-CN/cli/webhooks.md +32 -0
- package/docs/zh-CN/concepts/agent-loop.md +146 -0
- package/docs/zh-CN/concepts/agent-workspace.md +219 -0
- package/docs/zh-CN/concepts/agent.md +115 -0
- package/docs/zh-CN/concepts/architecture.md +123 -0
- package/docs/zh-CN/concepts/compaction.md +67 -0
- package/docs/zh-CN/concepts/context.md +168 -0
- package/docs/zh-CN/concepts/features.md +59 -0
- package/docs/zh-CN/concepts/markdown-formatting.md +117 -0
- package/docs/zh-CN/concepts/memory.md +412 -0
- package/docs/zh-CN/concepts/messages.md +141 -0
- package/docs/zh-CN/concepts/model-failover.md +145 -0
- package/docs/zh-CN/concepts/model-providers.md +320 -0
- package/docs/zh-CN/concepts/models.md +196 -0
- package/docs/zh-CN/concepts/multi-agent.md +372 -0
- package/docs/zh-CN/concepts/oauth.md +151 -0
- package/docs/zh-CN/concepts/presence.md +99 -0
- package/docs/zh-CN/concepts/queue.md +94 -0
- package/docs/zh-CN/concepts/retry.md +76 -0
- package/docs/zh-CN/concepts/session-pruning.md +129 -0
- package/docs/zh-CN/concepts/session-tool.md +200 -0
- package/docs/zh-CN/concepts/session.md +166 -0
- package/docs/zh-CN/concepts/sessions.md +17 -0
- package/docs/zh-CN/concepts/streaming.md +133 -0
- package/docs/zh-CN/concepts/system-prompt.md +101 -0
- package/docs/zh-CN/concepts/timezone.md +96 -0
- package/docs/zh-CN/concepts/typebox.md +284 -0
- package/docs/zh-CN/concepts/typing-indicators.md +74 -0
- package/docs/zh-CN/concepts/usage-tracking.md +42 -0
- package/docs/zh-CN/date-time.md +129 -0
- package/docs/zh-CN/debug/node-issue.md +90 -0
- package/docs/zh-CN/diagnostics/flags.md +98 -0
- package/docs/zh-CN/experiments/onboarding-config-protocol.md +47 -0
- package/docs/zh-CN/experiments/plans/cron-add-hardening.md +70 -0
- package/docs/zh-CN/experiments/plans/group-policy-hardening.md +45 -0
- package/docs/zh-CN/experiments/plans/openresponses-gateway.md +121 -0
- package/docs/zh-CN/experiments/proposals/model-config.md +42 -0
- package/docs/zh-CN/experiments/research/memory.md +235 -0
- package/docs/zh-CN/gateway/authentication.md +142 -0
- package/docs/zh-CN/gateway/background-process.md +100 -0
- package/docs/zh-CN/gateway/bonjour.md +174 -0
- package/docs/zh-CN/gateway/bridge-protocol.md +86 -0
- package/docs/zh-CN/gateway/cli-backends.md +213 -0
- package/docs/zh-CN/gateway/configuration-examples.md +587 -0
- package/docs/zh-CN/gateway/configuration.md +3332 -0
- package/docs/zh-CN/gateway/discovery.md +123 -0
- package/docs/zh-CN/gateway/doctor.md +238 -0
- package/docs/zh-CN/gateway/gateway-lock.md +41 -0
- package/docs/zh-CN/gateway/health.md +42 -0
- package/docs/zh-CN/gateway/heartbeat.md +274 -0
- package/docs/zh-CN/gateway/index.md +335 -0
- package/docs/zh-CN/gateway/local-models.md +157 -0
- package/docs/zh-CN/gateway/logging.md +114 -0
- package/docs/zh-CN/gateway/multiple-gateways.md +119 -0
- package/docs/zh-CN/gateway/network-model.md +23 -0
- package/docs/zh-CN/gateway/openai-http-api.md +125 -0
- package/docs/zh-CN/gateway/openresponses-http-api.md +317 -0
- package/docs/zh-CN/gateway/pairing.md +99 -0
- package/docs/zh-CN/gateway/protocol.md +220 -0
- package/docs/zh-CN/gateway/remote-gateway-readme.md +164 -0
- package/docs/zh-CN/gateway/remote.md +133 -0
- package/docs/zh-CN/gateway/sandbox-vs-tool-policy-vs-elevated.md +135 -0
- package/docs/zh-CN/gateway/sandboxing.md +188 -0
- package/docs/zh-CN/gateway/security/index.md +777 -0
- package/docs/zh-CN/gateway/tailscale.md +124 -0
- package/docs/zh-CN/gateway/tools-invoke-http-api.md +92 -0
- package/docs/zh-CN/gateway/troubleshooting.md +771 -0
- package/docs/zh-CN/help/debugging.md +160 -0
- package/docs/zh-CN/help/environment.md +88 -0
- package/docs/zh-CN/help/faq.md +2628 -0
- package/docs/zh-CN/help/index.md +28 -0
- package/docs/zh-CN/help/scripts.md +35 -0
- package/docs/zh-CN/help/submitting-a-pr.md +8 -0
- package/docs/zh-CN/help/submitting-an-issue.md +8 -0
- package/docs/zh-CN/help/testing.md +375 -0
- package/docs/zh-CN/help/troubleshooting.md +104 -0
- package/docs/zh-CN/hooks/soul-evil.md +72 -0
- package/docs/zh-CN/index.md +186 -0
- package/docs/zh-CN/install/ansible.md +215 -0
- package/docs/zh-CN/install/bun.md +65 -0
- package/docs/zh-CN/install/development-channels.md +81 -0
- package/docs/zh-CN/install/docker.md +532 -0
- package/docs/zh-CN/install/exe-dev.md +127 -0
- package/docs/zh-CN/install/fly.md +490 -0
- package/docs/zh-CN/install/gcp.md +510 -0
- package/docs/zh-CN/install/hetzner.md +337 -0
- package/docs/zh-CN/install/index.md +193 -0
- package/docs/zh-CN/install/installer.md +128 -0
- package/docs/zh-CN/install/macos-vm.md +288 -0
- package/docs/zh-CN/install/migrating.md +199 -0
- package/docs/zh-CN/install/nix.md +99 -0
- package/docs/zh-CN/install/node.md +8 -0
- package/docs/zh-CN/install/northflank.mdx +60 -0
- package/docs/zh-CN/install/railway.mdx +106 -0
- package/docs/zh-CN/install/render.mdx +169 -0
- package/docs/zh-CN/install/uninstall.md +135 -0
- package/docs/zh-CN/install/updating.md +233 -0
- package/docs/zh-CN/logging.md +329 -0
- package/docs/zh-CN/network.md +59 -0
- package/docs/zh-CN/nodes/audio.md +120 -0
- package/docs/zh-CN/nodes/camera.md +162 -0
- package/docs/zh-CN/nodes/images.md +79 -0
- package/docs/zh-CN/nodes/index.md +348 -0
- package/docs/zh-CN/nodes/location-command.md +120 -0
- package/docs/zh-CN/nodes/media-understanding.md +380 -0
- package/docs/zh-CN/nodes/talk.md +97 -0
- package/docs/zh-CN/nodes/troubleshooting.md +8 -0
- package/docs/zh-CN/nodes/voicewake.md +72 -0
- package/docs/zh-CN/perplexity.md +84 -0
- package/docs/zh-CN/pi-dev.md +77 -0
- package/docs/zh-CN/pi.md +619 -0
- package/docs/zh-CN/platforms/android.md +155 -0
- package/docs/zh-CN/platforms/digitalocean.md +269 -0
- package/docs/zh-CN/platforms/index.md +60 -0
- package/docs/zh-CN/platforms/ios.md +114 -0
- package/docs/zh-CN/platforms/linux.md +101 -0
- package/docs/zh-CN/platforms/mac/bundled-gateway.md +75 -0
- package/docs/zh-CN/platforms/mac/canvas.md +128 -0
- package/docs/zh-CN/platforms/mac/child-process.md +73 -0
- package/docs/zh-CN/platforms/mac/dev-setup.md +109 -0
- package/docs/zh-CN/platforms/mac/health.md +41 -0
- package/docs/zh-CN/platforms/mac/icon.md +38 -0
- package/docs/zh-CN/platforms/mac/logging.md +64 -0
- package/docs/zh-CN/platforms/mac/menu-bar.md +88 -0
- package/docs/zh-CN/platforms/mac/peekaboo.md +62 -0
- package/docs/zh-CN/platforms/mac/permissions.md +46 -0
- package/docs/zh-CN/platforms/mac/release.md +92 -0
- package/docs/zh-CN/platforms/mac/remote.md +90 -0
- package/docs/zh-CN/platforms/mac/signing.md +54 -0
- package/docs/zh-CN/platforms/mac/skills.md +40 -0
- package/docs/zh-CN/platforms/mac/voice-overlay.md +67 -0
- package/docs/zh-CN/platforms/mac/voicewake.md +74 -0
- package/docs/zh-CN/platforms/mac/webchat.md +43 -0
- package/docs/zh-CN/platforms/mac/xpc.md +68 -0
- package/docs/zh-CN/platforms/macos.md +193 -0
- package/docs/zh-CN/platforms/oracle.md +310 -0
- package/docs/zh-CN/platforms/raspberry-pi.md +365 -0
- package/docs/zh-CN/platforms/windows.md +156 -0
- package/docs/zh-CN/plugins/agent-tools.md +99 -0
- package/docs/zh-CN/plugins/manifest.md +68 -0
- package/docs/zh-CN/plugins/voice-call.md +250 -0
- package/docs/zh-CN/plugins/zalouser.md +88 -0
- package/docs/zh-CN/prose.md +141 -0
- package/docs/zh-CN/providers/anthropic.md +159 -0
- package/docs/zh-CN/providers/bedrock.md +170 -0
- package/docs/zh-CN/providers/claude-max-api-proxy.md +155 -0
- package/docs/zh-CN/providers/deepgram.md +97 -0
- package/docs/zh-CN/providers/github-copilot.md +67 -0
- package/docs/zh-CN/providers/glm.md +39 -0
- package/docs/zh-CN/providers/index.md +68 -0
- package/docs/zh-CN/providers/minimax.md +206 -0
- package/docs/zh-CN/providers/models.md +55 -0
- package/docs/zh-CN/providers/moonshot.md +145 -0
- package/docs/zh-CN/providers/ollama.md +230 -0
- package/docs/zh-CN/providers/openai.md +68 -0
- package/docs/zh-CN/providers/opencode.md +41 -0
- package/docs/zh-CN/providers/openrouter.md +43 -0
- package/docs/zh-CN/providers/qianfan.md +8 -0
- package/docs/zh-CN/providers/qwen.md +55 -0
- package/docs/zh-CN/providers/synthetic.md +102 -0
- package/docs/zh-CN/providers/venice.md +274 -0
- package/docs/zh-CN/providers/vercel-ai-gateway.md +57 -0
- package/docs/zh-CN/providers/xiaomi.md +68 -0
- package/docs/zh-CN/providers/zai.md +41 -0
- package/docs/zh-CN/refactor/clawnet.md +424 -0
- package/docs/zh-CN/refactor/exec-host.md +323 -0
- package/docs/zh-CN/refactor/outbound-session-mirroring.md +92 -0
- package/docs/zh-CN/refactor/plugin-sdk.md +221 -0
- package/docs/zh-CN/refactor/strict-config.md +100 -0
- package/docs/zh-CN/reference/AGENTS.default.md +131 -0
- package/docs/zh-CN/reference/RELEASING.md +123 -0
- package/docs/zh-CN/reference/api-usage-costs.md +136 -0
- package/docs/zh-CN/reference/credits.md +34 -0
- package/docs/zh-CN/reference/device-models.md +54 -0
- package/docs/zh-CN/reference/rpc.md +48 -0
- package/docs/zh-CN/reference/session-management-compaction.md +287 -0
- package/docs/zh-CN/reference/templates/AGENTS.dev.md +89 -0
- package/docs/zh-CN/reference/templates/AGENTS.md +225 -0
- package/docs/zh-CN/reference/templates/BOOT.md +17 -0
- package/docs/zh-CN/reference/templates/BOOTSTRAP.md +68 -0
- package/docs/zh-CN/reference/templates/HEARTBEAT.md +18 -0
- package/docs/zh-CN/reference/templates/IDENTITY.dev.md +54 -0
- package/docs/zh-CN/reference/templates/IDENTITY.md +36 -0
- package/docs/zh-CN/reference/templates/SOUL.dev.md +83 -0
- package/docs/zh-CN/reference/templates/SOUL.md +49 -0
- package/docs/zh-CN/reference/templates/TOOLS.dev.md +31 -0
- package/docs/zh-CN/reference/templates/TOOLS.md +53 -0
- package/docs/zh-CN/reference/templates/USER.dev.md +25 -0
- package/docs/zh-CN/reference/templates/USER.md +30 -0
- package/docs/zh-CN/reference/test.md +57 -0
- package/docs/zh-CN/reference/token-use.md +119 -0
- package/docs/zh-CN/reference/transcript-hygiene.md +109 -0
- package/docs/zh-CN/reference/wizard.md +9 -0
- package/docs/zh-CN/security/formal-verification.md +171 -0
- package/docs/zh-CN/start/bootstrapping.md +9 -0
- package/docs/zh-CN/start/docs-directory.md +70 -0
- package/docs/zh-CN/start/getting-started.md +206 -0
- package/docs/zh-CN/start/hubs.md +200 -0
- package/docs/zh-CN/start/lore.md +226 -0
- package/docs/zh-CN/start/onboarding.md +105 -0
- package/docs/zh-CN/start/openclaw.md +248 -0
- package/docs/zh-CN/start/quickstart.md +88 -0
- package/docs/zh-CN/start/setup.md +153 -0
- package/docs/zh-CN/start/showcase.md +423 -0
- package/docs/zh-CN/start/wizard.md +331 -0
- package/docs/zh-CN/tools/agent-send.md +59 -0
- package/docs/zh-CN/tools/apply-patch.md +57 -0
- package/docs/zh-CN/tools/browser-linux-troubleshooting.md +144 -0
- package/docs/zh-CN/tools/browser-login.md +75 -0
- package/docs/zh-CN/tools/browser.md +553 -0
- package/docs/zh-CN/tools/chrome-extension.md +183 -0
- package/docs/zh-CN/tools/clawhub.md +209 -0
- package/docs/zh-CN/tools/creating-skills.md +61 -0
- package/docs/zh-CN/tools/elevated.md +64 -0
- package/docs/zh-CN/tools/exec-approvals.md +234 -0
- package/docs/zh-CN/tools/exec.md +169 -0
- package/docs/zh-CN/tools/firecrawl.md +68 -0
- package/docs/zh-CN/tools/index.md +515 -0
- package/docs/zh-CN/tools/llm-task.md +117 -0
- package/docs/zh-CN/tools/lobster.md +349 -0
- package/docs/zh-CN/tools/multi-agent-sandbox-tools.md +401 -0
- package/docs/zh-CN/tools/plugin.md +639 -0
- package/docs/zh-CN/tools/reactions.md +29 -0
- package/docs/zh-CN/tools/skills-config.md +78 -0
- package/docs/zh-CN/tools/skills.md +279 -0
- package/docs/zh-CN/tools/slash-commands.md +205 -0
- package/docs/zh-CN/tools/subagents.md +156 -0
- package/docs/zh-CN/tools/thinking.md +80 -0
- package/docs/zh-CN/tools/web.md +257 -0
- package/docs/zh-CN/tts.md +375 -0
- package/docs/zh-CN/vps.md +47 -0
- package/docs/zh-CN/web/control-ui.md +191 -0
- package/docs/zh-CN/web/dashboard.md +53 -0
- package/docs/zh-CN/web/index.md +118 -0
- package/docs/zh-CN/web/tui.md +166 -0
- package/docs/zh-CN/web/webchat.md +56 -0
- package/extensions/bluebubbles/README.md +45 -0
- package/extensions/bluebubbles/index.ts +19 -0
- package/extensions/bluebubbles/node_modules/.bin/openclaw +21 -0
- package/extensions/bluebubbles/openclaw.plugin.json +9 -0
- package/extensions/bluebubbles/package.json +36 -0
- package/extensions/bluebubbles/src/accounts.ts +88 -0
- package/extensions/bluebubbles/src/actions.test.ts +650 -0
- package/extensions/bluebubbles/src/actions.ts +438 -0
- package/extensions/bluebubbles/src/attachments.test.ts +345 -0
- package/extensions/bluebubbles/src/attachments.ts +302 -0
- package/extensions/bluebubbles/src/channel.ts +414 -0
- package/extensions/bluebubbles/src/chat.test.ts +461 -0
- package/extensions/bluebubbles/src/chat.ts +382 -0
- package/extensions/bluebubbles/src/config-schema.ts +51 -0
- package/extensions/bluebubbles/src/media-send.ts +174 -0
- package/extensions/bluebubbles/src/monitor.test.ts +2384 -0
- package/extensions/bluebubbles/src/monitor.ts +2517 -0
- package/extensions/bluebubbles/src/onboarding.ts +352 -0
- package/extensions/bluebubbles/src/probe.ts +144 -0
- package/extensions/bluebubbles/src/reactions.test.ts +392 -0
- package/extensions/bluebubbles/src/reactions.ts +188 -0
- package/extensions/bluebubbles/src/runtime.ts +14 -0
- package/extensions/bluebubbles/src/send.test.ts +889 -0
- package/extensions/bluebubbles/src/send.ts +474 -0
- package/extensions/bluebubbles/src/targets.test.ts +183 -0
- package/extensions/bluebubbles/src/targets.ts +422 -0
- package/extensions/bluebubbles/src/types.ts +127 -0
- package/extensions/copilot-proxy/README.md +24 -0
- package/extensions/copilot-proxy/index.ts +149 -0
- package/extensions/copilot-proxy/node_modules/.bin/openclaw +21 -0
- package/extensions/copilot-proxy/openclaw.plugin.json +9 -0
- package/extensions/copilot-proxy/package.json +14 -0
- package/extensions/diagnostics-otel/index.ts +15 -0
- package/extensions/diagnostics-otel/node_modules/.bin/acorn +21 -0
- package/extensions/diagnostics-otel/node_modules/.bin/openclaw +21 -0
- package/extensions/diagnostics-otel/openclaw.plugin.json +8 -0
- package/extensions/diagnostics-otel/package.json +27 -0
- package/extensions/diagnostics-otel/src/service.test.ts +226 -0
- package/extensions/diagnostics-otel/src/service.ts +635 -0
- package/extensions/discord/index.ts +17 -0
- package/extensions/discord/node_modules/.bin/openclaw +21 -0
- package/extensions/discord/openclaw.plugin.json +9 -0
- package/extensions/discord/package.json +14 -0
- package/extensions/discord/src/channel.ts +422 -0
- package/extensions/discord/src/runtime.ts +14 -0
- package/extensions/feishu/index.ts +63 -0
- package/extensions/feishu/node_modules/.bin/openclaw +21 -0
- package/extensions/feishu/openclaw.plugin.json +10 -0
- package/extensions/feishu/package.json +37 -0
- package/extensions/feishu/skills/feishu-doc/SKILL.md +105 -0
- package/extensions/feishu/skills/feishu-doc/references/block-types.md +103 -0
- package/extensions/feishu/skills/feishu-drive/SKILL.md +97 -0
- package/extensions/feishu/skills/feishu-perm/SKILL.md +119 -0
- package/extensions/feishu/skills/feishu-wiki/SKILL.md +111 -0
- package/extensions/feishu/src/accounts.ts +144 -0
- package/extensions/feishu/src/bitable.ts +459 -0
- package/extensions/feishu/src/bot.ts +871 -0
- package/extensions/feishu/src/channel.ts +341 -0
- package/extensions/feishu/src/client.ts +118 -0
- package/extensions/feishu/src/config-schema.ts +172 -0
- package/extensions/feishu/src/directory.ts +177 -0
- package/extensions/feishu/src/doc-schema.ts +47 -0
- package/extensions/feishu/src/docx.ts +521 -0
- package/extensions/feishu/src/drive-schema.ts +46 -0
- package/extensions/feishu/src/drive.ts +227 -0
- package/extensions/feishu/src/media.ts +527 -0
- package/extensions/feishu/src/mention.ts +126 -0
- package/extensions/feishu/src/monitor.ts +190 -0
- package/extensions/feishu/src/onboarding.ts +356 -0
- package/extensions/feishu/src/outbound.ts +40 -0
- package/extensions/feishu/src/perm-schema.ts +52 -0
- package/extensions/feishu/src/perm.ts +173 -0
- package/extensions/feishu/src/policy.ts +104 -0
- package/extensions/feishu/src/probe.ts +44 -0
- package/extensions/feishu/src/reactions.ts +160 -0
- package/extensions/feishu/src/reply-dispatcher.ts +184 -0
- package/extensions/feishu/src/runtime.ts +14 -0
- package/extensions/feishu/src/send.ts +358 -0
- package/extensions/feishu/src/targets.ts +78 -0
- package/extensions/feishu/src/tools-config.ts +21 -0
- package/extensions/feishu/src/types.ts +75 -0
- package/extensions/feishu/src/typing.ts +80 -0
- package/extensions/feishu/src/wiki-schema.ts +55 -0
- package/extensions/feishu/src/wiki.ts +232 -0
- package/extensions/google-antigravity-auth/README.md +24 -0
- package/extensions/google-antigravity-auth/index.ts +461 -0
- package/extensions/google-antigravity-auth/node_modules/.bin/openclaw +21 -0
- package/extensions/google-antigravity-auth/openclaw.plugin.json +9 -0
- package/extensions/google-antigravity-auth/package.json +14 -0
- package/extensions/google-gemini-cli-auth/README.md +35 -0
- package/extensions/google-gemini-cli-auth/index.ts +88 -0
- package/extensions/google-gemini-cli-auth/node_modules/.bin/openclaw +21 -0
- package/extensions/google-gemini-cli-auth/oauth.test.ts +240 -0
- package/extensions/google-gemini-cli-auth/oauth.ts +662 -0
- package/extensions/google-gemini-cli-auth/openclaw.plugin.json +9 -0
- package/extensions/google-gemini-cli-auth/package.json +14 -0
- package/extensions/googlechat/index.ts +19 -0
- package/extensions/googlechat/node_modules/.bin/openclaw +21 -0
- package/extensions/googlechat/openclaw.plugin.json +9 -0
- package/extensions/googlechat/package.json +39 -0
- package/extensions/googlechat/src/accounts.ts +147 -0
- package/extensions/googlechat/src/actions.ts +181 -0
- package/extensions/googlechat/src/api.test.ts +61 -0
- package/extensions/googlechat/src/api.ts +282 -0
- package/extensions/googlechat/src/auth.ts +137 -0
- package/extensions/googlechat/src/channel.ts +583 -0
- package/extensions/googlechat/src/monitor.test.ts +22 -0
- package/extensions/googlechat/src/monitor.ts +960 -0
- package/extensions/googlechat/src/onboarding.ts +269 -0
- package/extensions/googlechat/src/runtime.ts +14 -0
- package/extensions/googlechat/src/targets.test.ts +32 -0
- package/extensions/googlechat/src/targets.ts +65 -0
- package/extensions/googlechat/src/types.config.ts +3 -0
- package/extensions/googlechat/src/types.ts +73 -0
- package/extensions/imessage/index.ts +17 -0
- package/extensions/imessage/node_modules/.bin/openclaw +21 -0
- package/extensions/imessage/openclaw.plugin.json +9 -0
- package/extensions/imessage/package.json +14 -0
- package/extensions/imessage/src/channel.ts +294 -0
- package/extensions/imessage/src/runtime.ts +14 -0
- package/extensions/line/index.ts +19 -0
- package/extensions/line/node_modules/.bin/openclaw +21 -0
- package/extensions/line/openclaw.plugin.json +9 -0
- package/extensions/line/package.json +29 -0
- package/extensions/line/src/card-command.ts +344 -0
- package/extensions/line/src/channel.logout.test.ts +99 -0
- package/extensions/line/src/channel.sendPayload.test.ts +306 -0
- package/extensions/line/src/channel.ts +780 -0
- package/extensions/line/src/runtime.ts +14 -0
- package/extensions/llm-task/README.md +97 -0
- package/extensions/llm-task/index.ts +6 -0
- package/extensions/llm-task/node_modules/.bin/openclaw +21 -0
- package/extensions/llm-task/openclaw.plugin.json +21 -0
- package/extensions/llm-task/package.json +14 -0
- package/extensions/llm-task/src/llm-task-tool.test.ts +138 -0
- package/extensions/llm-task/src/llm-task-tool.ts +245 -0
- package/extensions/lobster/README.md +75 -0
- package/extensions/lobster/SKILL.md +97 -0
- package/extensions/lobster/index.ts +14 -0
- package/extensions/lobster/node_modules/.bin/openclaw +21 -0
- package/extensions/lobster/openclaw.plugin.json +10 -0
- package/extensions/lobster/package.json +14 -0
- package/extensions/lobster/src/lobster-tool.test.ts +247 -0
- package/extensions/lobster/src/lobster-tool.ts +328 -0
- package/extensions/matrix/CHANGELOG.md +111 -0
- package/extensions/matrix/index.ts +17 -0
- package/extensions/matrix/node_modules/.bin/markdown-it +21 -0
- package/extensions/matrix/node_modules/.bin/openclaw +21 -0
- package/extensions/matrix/openclaw.plugin.json +9 -0
- package/extensions/matrix/package.json +36 -0
- package/extensions/matrix/src/actions.ts +195 -0
- package/extensions/matrix/src/channel.directory.test.ts +64 -0
- package/extensions/matrix/src/channel.ts +439 -0
- package/extensions/matrix/src/config-schema.ts +63 -0
- package/extensions/matrix/src/directory-live.ts +188 -0
- package/extensions/matrix/src/group-mentions.ts +66 -0
- package/extensions/matrix/src/matrix/accounts.test.ts +82 -0
- package/extensions/matrix/src/matrix/accounts.ts +65 -0
- package/extensions/matrix/src/matrix/actions/client.ts +57 -0
- package/extensions/matrix/src/matrix/actions/messages.ts +128 -0
- package/extensions/matrix/src/matrix/actions/pins.ts +76 -0
- package/extensions/matrix/src/matrix/actions/reactions.ts +96 -0
- package/extensions/matrix/src/matrix/actions/room.ts +85 -0
- package/extensions/matrix/src/matrix/actions/summary.ts +75 -0
- package/extensions/matrix/src/matrix/actions/types.ts +84 -0
- package/extensions/matrix/src/matrix/actions.ts +15 -0
- package/extensions/matrix/src/matrix/active-client.ts +11 -0
- package/extensions/matrix/src/matrix/client/config.ts +160 -0
- package/extensions/matrix/src/matrix/client/create-client.ts +123 -0
- package/extensions/matrix/src/matrix/client/logging.ts +36 -0
- package/extensions/matrix/src/matrix/client/runtime.ts +4 -0
- package/extensions/matrix/src/matrix/client/shared.ts +170 -0
- package/extensions/matrix/src/matrix/client/storage.ts +131 -0
- package/extensions/matrix/src/matrix/client/types.ts +34 -0
- package/extensions/matrix/src/matrix/client.test.ts +56 -0
- package/extensions/matrix/src/matrix/client.ts +5 -0
- package/extensions/matrix/src/matrix/credentials.ts +105 -0
- package/extensions/matrix/src/matrix/deps.ts +60 -0
- package/extensions/matrix/src/matrix/format.test.ts +33 -0
- package/extensions/matrix/src/matrix/format.ts +22 -0
- package/extensions/matrix/src/matrix/index.ts +11 -0
- package/extensions/matrix/src/matrix/monitor/allowlist.test.ts +45 -0
- package/extensions/matrix/src/matrix/monitor/allowlist.ts +103 -0
- package/extensions/matrix/src/matrix/monitor/auto-join.ts +71 -0
- package/extensions/matrix/src/matrix/monitor/direct.ts +104 -0
- package/extensions/matrix/src/matrix/monitor/events.ts +101 -0
- package/extensions/matrix/src/matrix/monitor/handler.ts +665 -0
- package/extensions/matrix/src/matrix/monitor/index.ts +338 -0
- package/extensions/matrix/src/matrix/monitor/location.ts +100 -0
- package/extensions/matrix/src/matrix/monitor/media.test.ts +102 -0
- package/extensions/matrix/src/matrix/monitor/media.ts +113 -0
- package/extensions/matrix/src/matrix/monitor/mentions.ts +31 -0
- package/extensions/matrix/src/matrix/monitor/replies.ts +97 -0
- package/extensions/matrix/src/matrix/monitor/room-info.ts +55 -0
- package/extensions/matrix/src/matrix/monitor/rooms.test.ts +39 -0
- package/extensions/matrix/src/matrix/monitor/rooms.ts +47 -0
- package/extensions/matrix/src/matrix/monitor/threads.ts +68 -0
- package/extensions/matrix/src/matrix/monitor/types.ts +39 -0
- package/extensions/matrix/src/matrix/poll-types.test.ts +21 -0
- package/extensions/matrix/src/matrix/poll-types.ts +166 -0
- package/extensions/matrix/src/matrix/probe.ts +70 -0
- package/extensions/matrix/src/matrix/send/client.ts +66 -0
- package/extensions/matrix/src/matrix/send/formatting.ts +89 -0
- package/extensions/matrix/src/matrix/send/media.ts +229 -0
- package/extensions/matrix/src/matrix/send/targets.test.ts +98 -0
- package/extensions/matrix/src/matrix/send/targets.ts +147 -0
- package/extensions/matrix/src/matrix/send/types.ts +109 -0
- package/extensions/matrix/src/matrix/send.test.ts +171 -0
- package/extensions/matrix/src/matrix/send.ts +260 -0
- package/extensions/matrix/src/onboarding.ts +449 -0
- package/extensions/matrix/src/outbound.ts +52 -0
- package/extensions/matrix/src/resolve-targets.test.ts +48 -0
- package/extensions/matrix/src/resolve-targets.ts +135 -0
- package/extensions/matrix/src/runtime.ts +14 -0
- package/extensions/matrix/src/tool-actions.ts +164 -0
- package/extensions/matrix/src/types.ts +97 -0
- package/extensions/mattermost/index.ts +17 -0
- package/extensions/mattermost/node_modules/.bin/openclaw +21 -0
- package/extensions/mattermost/openclaw.plugin.json +9 -0
- package/extensions/mattermost/package.json +28 -0
- package/extensions/mattermost/src/channel.test.ts +72 -0
- package/extensions/mattermost/src/channel.ts +337 -0
- package/extensions/mattermost/src/config-schema.ts +56 -0
- package/extensions/mattermost/src/group-mentions.ts +15 -0
- package/extensions/mattermost/src/mattermost/accounts.ts +128 -0
- package/extensions/mattermost/src/mattermost/client.ts +220 -0
- package/extensions/mattermost/src/mattermost/index.ts +9 -0
- package/extensions/mattermost/src/mattermost/monitor-helpers.ts +166 -0
- package/extensions/mattermost/src/mattermost/monitor.ts +991 -0
- package/extensions/mattermost/src/mattermost/probe.ts +74 -0
- package/extensions/mattermost/src/mattermost/send.ts +231 -0
- package/extensions/mattermost/src/normalize.ts +46 -0
- package/extensions/mattermost/src/onboarding-helpers.ts +44 -0
- package/extensions/mattermost/src/onboarding.ts +186 -0
- package/extensions/mattermost/src/runtime.ts +14 -0
- package/extensions/mattermost/src/types.ts +52 -0
- package/extensions/memory-core/index.ts +38 -0
- package/extensions/memory-core/node_modules/.bin/openclaw +21 -0
- package/extensions/memory-core/openclaw.plugin.json +9 -0
- package/extensions/memory-core/package.json +17 -0
- package/extensions/memory-lancedb/config.ts +139 -0
- package/extensions/memory-lancedb/index.test.ts +253 -0
- package/extensions/memory-lancedb/index.ts +622 -0
- package/extensions/memory-lancedb/node_modules/.bin/arrow2csv +21 -0
- package/extensions/memory-lancedb/node_modules/.bin/openai +21 -0
- package/extensions/memory-lancedb/node_modules/.bin/openclaw +21 -0
- package/extensions/memory-lancedb/openclaw.plugin.json +60 -0
- package/extensions/memory-lancedb/package.json +19 -0
- package/extensions/minimax-portal-auth/README.md +33 -0
- package/extensions/minimax-portal-auth/index.ts +155 -0
- package/extensions/minimax-portal-auth/node_modules/.bin/openclaw +21 -0
- package/extensions/minimax-portal-auth/oauth.ts +247 -0
- package/extensions/minimax-portal-auth/openclaw.plugin.json +9 -0
- package/extensions/minimax-portal-auth/package.json +14 -0
- package/extensions/msteams/CHANGELOG.md +107 -0
- package/extensions/msteams/index.ts +17 -0
- package/extensions/msteams/node_modules/.bin/openclaw +21 -0
- package/extensions/msteams/openclaw.plugin.json +9 -0
- package/extensions/msteams/package.json +39 -0
- package/extensions/msteams/src/attachments/download.ts +283 -0
- package/extensions/msteams/src/attachments/graph.ts +353 -0
- package/extensions/msteams/src/attachments/html.ts +90 -0
- package/extensions/msteams/src/attachments/payload.ts +22 -0
- package/extensions/msteams/src/attachments/shared.ts +291 -0
- package/extensions/msteams/src/attachments/types.ts +37 -0
- package/extensions/msteams/src/attachments.test.ts +459 -0
- package/extensions/msteams/src/attachments.ts +18 -0
- package/extensions/msteams/src/channel.directory.test.ts +48 -0
- package/extensions/msteams/src/channel.ts +459 -0
- package/extensions/msteams/src/conversation-store-fs.test.ts +88 -0
- package/extensions/msteams/src/conversation-store-fs.ts +165 -0
- package/extensions/msteams/src/conversation-store-memory.ts +47 -0
- package/extensions/msteams/src/conversation-store.ts +41 -0
- package/extensions/msteams/src/directory-live.ts +205 -0
- package/extensions/msteams/src/errors.test.ts +45 -0
- package/extensions/msteams/src/errors.ts +190 -0
- package/extensions/msteams/src/file-consent-helpers.test.ts +243 -0
- package/extensions/msteams/src/file-consent-helpers.ts +73 -0
- package/extensions/msteams/src/file-consent.ts +126 -0
- package/extensions/msteams/src/graph-chat.ts +53 -0
- package/extensions/msteams/src/graph-upload.ts +453 -0
- package/extensions/msteams/src/inbound.test.ts +66 -0
- package/extensions/msteams/src/inbound.ts +48 -0
- package/extensions/msteams/src/index.ts +4 -0
- package/extensions/msteams/src/media-helpers.test.ts +189 -0
- package/extensions/msteams/src/media-helpers.ts +86 -0
- package/extensions/msteams/src/messenger.test.ts +248 -0
- package/extensions/msteams/src/messenger.ts +495 -0
- package/extensions/msteams/src/monitor-handler/inbound-media.ts +128 -0
- package/extensions/msteams/src/monitor-handler/message-handler.ts +641 -0
- package/extensions/msteams/src/monitor-handler.ts +162 -0
- package/extensions/msteams/src/monitor-types.ts +5 -0
- package/extensions/msteams/src/monitor.ts +295 -0
- package/extensions/msteams/src/onboarding.ts +431 -0
- package/extensions/msteams/src/outbound.ts +46 -0
- package/extensions/msteams/src/pending-uploads.ts +89 -0
- package/extensions/msteams/src/policy.test.ts +209 -0
- package/extensions/msteams/src/policy.ts +273 -0
- package/extensions/msteams/src/polls-store-memory.ts +32 -0
- package/extensions/msteams/src/polls-store.test.ts +38 -0
- package/extensions/msteams/src/polls.test.ts +72 -0
- package/extensions/msteams/src/polls.ts +315 -0
- package/extensions/msteams/src/probe.test.ts +58 -0
- package/extensions/msteams/src/probe.ts +107 -0
- package/extensions/msteams/src/reply-dispatcher.ts +132 -0
- package/extensions/msteams/src/resolve-allowlist.ts +297 -0
- package/extensions/msteams/src/runtime.ts +14 -0
- package/extensions/msteams/src/sdk-types.ts +19 -0
- package/extensions/msteams/src/sdk.ts +33 -0
- package/extensions/msteams/src/send-context.ts +164 -0
- package/extensions/msteams/src/send.ts +519 -0
- package/extensions/msteams/src/sent-message-cache.test.ts +15 -0
- package/extensions/msteams/src/sent-message-cache.ts +47 -0
- package/extensions/msteams/src/storage.ts +25 -0
- package/extensions/msteams/src/store-fs.ts +83 -0
- package/extensions/msteams/src/token.ts +19 -0
- package/extensions/nextcloud-talk/index.ts +17 -0
- package/extensions/nextcloud-talk/node_modules/.bin/openclaw +21 -0
- package/extensions/nextcloud-talk/openclaw.plugin.json +9 -0
- package/extensions/nextcloud-talk/package.json +33 -0
- package/extensions/nextcloud-talk/src/accounts.ts +174 -0
- package/extensions/nextcloud-talk/src/channel.ts +409 -0
- package/extensions/nextcloud-talk/src/config-schema.ts +79 -0
- package/extensions/nextcloud-talk/src/format.ts +79 -0
- package/extensions/nextcloud-talk/src/inbound.ts +327 -0
- package/extensions/nextcloud-talk/src/monitor.ts +246 -0
- package/extensions/nextcloud-talk/src/normalize.ts +39 -0
- package/extensions/nextcloud-talk/src/onboarding.ts +343 -0
- package/extensions/nextcloud-talk/src/policy.test.ts +33 -0
- package/extensions/nextcloud-talk/src/policy.ts +180 -0
- package/extensions/nextcloud-talk/src/room-info.ts +125 -0
- package/extensions/nextcloud-talk/src/runtime.ts +14 -0
- package/extensions/nextcloud-talk/src/send.ts +215 -0
- package/extensions/nextcloud-talk/src/signature.ts +72 -0
- package/extensions/nextcloud-talk/src/types.ts +181 -0
- package/extensions/nostr/CHANGELOG.md +98 -0
- package/extensions/nostr/README.md +136 -0
- package/extensions/nostr/index.ts +68 -0
- package/extensions/nostr/node_modules/.bin/openclaw +21 -0
- package/extensions/nostr/node_modules/.bin/tsc +21 -0
- package/extensions/nostr/node_modules/.bin/tsserver +21 -0
- package/extensions/nostr/openclaw.plugin.json +9 -0
- package/extensions/nostr/package.json +34 -0
- package/extensions/nostr/src/channel.test.ts +151 -0
- package/extensions/nostr/src/channel.ts +353 -0
- package/extensions/nostr/src/config-schema.ts +90 -0
- package/extensions/nostr/src/metrics.ts +478 -0
- package/extensions/nostr/src/nostr-bus.fuzz.test.ts +533 -0
- package/extensions/nostr/src/nostr-bus.integration.test.ts +448 -0
- package/extensions/nostr/src/nostr-bus.test.ts +199 -0
- package/extensions/nostr/src/nostr-bus.ts +715 -0
- package/extensions/nostr/src/nostr-profile-http.test.ts +378 -0
- package/extensions/nostr/src/nostr-profile-http.ts +546 -0
- package/extensions/nostr/src/nostr-profile-import.test.ts +119 -0
- package/extensions/nostr/src/nostr-profile-import.ts +262 -0
- package/extensions/nostr/src/nostr-profile.fuzz.test.ts +477 -0
- package/extensions/nostr/src/nostr-profile.test.ts +410 -0
- package/extensions/nostr/src/nostr-profile.ts +277 -0
- package/extensions/nostr/src/nostr-state-store.test.ts +131 -0
- package/extensions/nostr/src/nostr-state-store.ts +226 -0
- package/extensions/nostr/src/runtime.ts +14 -0
- package/extensions/nostr/src/seen-tracker.ts +303 -0
- package/extensions/nostr/src/types.test.ts +157 -0
- package/extensions/nostr/src/types.ts +101 -0
- package/extensions/nostr/test/setup.ts +5 -0
- package/extensions/open-prose/README.md +25 -0
- package/extensions/open-prose/index.ts +5 -0
- package/extensions/open-prose/node_modules/.bin/openclaw +21 -0
- package/extensions/open-prose/openclaw.plugin.json +11 -0
- package/extensions/open-prose/package.json +14 -0
- package/extensions/open-prose/skills/prose/LICENSE +21 -0
- package/extensions/open-prose/skills/prose/SKILL.md +323 -0
- package/extensions/open-prose/skills/prose/alt-borges.md +141 -0
- package/extensions/open-prose/skills/prose/alts/arabian-nights.md +358 -0
- package/extensions/open-prose/skills/prose/alts/borges.md +360 -0
- package/extensions/open-prose/skills/prose/alts/folk.md +322 -0
- package/extensions/open-prose/skills/prose/alts/homer.md +346 -0
- package/extensions/open-prose/skills/prose/alts/kafka.md +373 -0
- package/extensions/open-prose/skills/prose/compiler.md +2971 -0
- package/extensions/open-prose/skills/prose/examples/01-hello-world.prose +4 -0
- package/extensions/open-prose/skills/prose/examples/02-research-and-summarize.prose +6 -0
- package/extensions/open-prose/skills/prose/examples/03-code-review.prose +17 -0
- package/extensions/open-prose/skills/prose/examples/04-write-and-refine.prose +14 -0
- package/extensions/open-prose/skills/prose/examples/05-debug-issue.prose +20 -0
- package/extensions/open-prose/skills/prose/examples/06-explain-codebase.prose +17 -0
- package/extensions/open-prose/skills/prose/examples/07-refactor.prose +20 -0
- package/extensions/open-prose/skills/prose/examples/08-blog-post.prose +20 -0
- package/extensions/open-prose/skills/prose/examples/09-research-with-agents.prose +25 -0
- package/extensions/open-prose/skills/prose/examples/10-code-review-agents.prose +32 -0
- package/extensions/open-prose/skills/prose/examples/11-skills-and-imports.prose +27 -0
- package/extensions/open-prose/skills/prose/examples/12-secure-agent-permissions.prose +43 -0
- package/extensions/open-prose/skills/prose/examples/13-variables-and-context.prose +51 -0
- package/extensions/open-prose/skills/prose/examples/14-composition-blocks.prose +48 -0
- package/extensions/open-prose/skills/prose/examples/15-inline-sequences.prose +23 -0
- package/extensions/open-prose/skills/prose/examples/16-parallel-reviews.prose +19 -0
- package/extensions/open-prose/skills/prose/examples/17-parallel-research.prose +19 -0
- package/extensions/open-prose/skills/prose/examples/18-mixed-parallel-sequential.prose +36 -0
- package/extensions/open-prose/skills/prose/examples/19-advanced-parallel.prose +71 -0
- package/extensions/open-prose/skills/prose/examples/20-fixed-loops.prose +20 -0
- package/extensions/open-prose/skills/prose/examples/21-pipeline-operations.prose +35 -0
- package/extensions/open-prose/skills/prose/examples/22-error-handling.prose +51 -0
- package/extensions/open-prose/skills/prose/examples/23-retry-with-backoff.prose +63 -0
- package/extensions/open-prose/skills/prose/examples/24-choice-blocks.prose +86 -0
- package/extensions/open-prose/skills/prose/examples/25-conditionals.prose +114 -0
- package/extensions/open-prose/skills/prose/examples/26-parameterized-blocks.prose +100 -0
- package/extensions/open-prose/skills/prose/examples/27-string-interpolation.prose +105 -0
- package/extensions/open-prose/skills/prose/examples/28-automated-pr-review.prose +37 -0
- package/extensions/open-prose/skills/prose/examples/28-gas-town.prose +1572 -0
- package/extensions/open-prose/skills/prose/examples/29-captains-chair.prose +218 -0
- package/extensions/open-prose/skills/prose/examples/30-captains-chair-simple.prose +42 -0
- package/extensions/open-prose/skills/prose/examples/31-captains-chair-with-memory.prose +145 -0
- package/extensions/open-prose/skills/prose/examples/33-pr-review-autofix.prose +168 -0
- package/extensions/open-prose/skills/prose/examples/34-content-pipeline.prose +204 -0
- package/extensions/open-prose/skills/prose/examples/35-feature-factory.prose +296 -0
- package/extensions/open-prose/skills/prose/examples/36-bug-hunter.prose +237 -0
- package/extensions/open-prose/skills/prose/examples/37-the-forge.prose +1474 -0
- package/extensions/open-prose/skills/prose/examples/38-skill-scan.prose +455 -0
- package/extensions/open-prose/skills/prose/examples/39-architect-by-simulation.prose +277 -0
- package/extensions/open-prose/skills/prose/examples/40-rlm-self-refine.prose +32 -0
- package/extensions/open-prose/skills/prose/examples/41-rlm-divide-conquer.prose +38 -0
- package/extensions/open-prose/skills/prose/examples/42-rlm-filter-recurse.prose +46 -0
- package/extensions/open-prose/skills/prose/examples/43-rlm-pairwise.prose +50 -0
- package/extensions/open-prose/skills/prose/examples/44-run-endpoint-ux-test.prose +261 -0
- package/extensions/open-prose/skills/prose/examples/45-plugin-release.prose +159 -0
- package/extensions/open-prose/skills/prose/examples/45-run-endpoint-ux-test-with-remediation.prose +637 -0
- package/extensions/open-prose/skills/prose/examples/46-run-endpoint-ux-test-fast.prose +148 -0
- package/extensions/open-prose/skills/prose/examples/46-workflow-crystallizer.prose +225 -0
- package/extensions/open-prose/skills/prose/examples/47-language-self-improvement.prose +356 -0
- package/extensions/open-prose/skills/prose/examples/48-habit-miner.prose +445 -0
- package/extensions/open-prose/skills/prose/examples/49-prose-run-retrospective.prose +210 -0
- package/extensions/open-prose/skills/prose/examples/README.md +391 -0
- package/extensions/open-prose/skills/prose/examples/roadmap/README.md +22 -0
- package/extensions/open-prose/skills/prose/examples/roadmap/iterative-refinement.prose +20 -0
- package/extensions/open-prose/skills/prose/examples/roadmap/parallel-review.prose +18 -0
- package/extensions/open-prose/skills/prose/examples/roadmap/simple-pipeline.prose +17 -0
- package/extensions/open-prose/skills/prose/examples/roadmap/syntax/open-prose-syntax.prose +223 -0
- package/extensions/open-prose/skills/prose/guidance/antipatterns.md +951 -0
- package/extensions/open-prose/skills/prose/guidance/patterns.md +700 -0
- package/extensions/open-prose/skills/prose/guidance/system-prompt.md +180 -0
- package/extensions/open-prose/skills/prose/help.md +144 -0
- package/extensions/open-prose/skills/prose/lib/README.md +108 -0
- package/extensions/open-prose/skills/prose/lib/calibrator.prose +215 -0
- package/extensions/open-prose/skills/prose/lib/cost-analyzer.prose +174 -0
- package/extensions/open-prose/skills/prose/lib/error-forensics.prose +250 -0
- package/extensions/open-prose/skills/prose/lib/inspector.prose +196 -0
- package/extensions/open-prose/skills/prose/lib/profiler.prose +460 -0
- package/extensions/open-prose/skills/prose/lib/program-improver.prose +275 -0
- package/extensions/open-prose/skills/prose/lib/project-memory.prose +118 -0
- package/extensions/open-prose/skills/prose/lib/user-memory.prose +93 -0
- package/extensions/open-prose/skills/prose/lib/vm-improver.prose +243 -0
- package/extensions/open-prose/skills/prose/primitives/session.md +593 -0
- package/extensions/open-prose/skills/prose/prose.md +1237 -0
- package/extensions/open-prose/skills/prose/state/filesystem.md +498 -0
- package/extensions/open-prose/skills/prose/state/in-context.md +384 -0
- package/extensions/open-prose/skills/prose/state/postgres.md +880 -0
- package/extensions/open-prose/skills/prose/state/sqlite.md +574 -0
- package/extensions/qwen-portal-auth/README.md +24 -0
- package/extensions/qwen-portal-auth/index.ts +130 -0
- package/extensions/qwen-portal-auth/oauth.ts +190 -0
- package/extensions/qwen-portal-auth/openclaw.plugin.json +9 -0
- package/extensions/signal/index.ts +17 -0
- package/extensions/signal/node_modules/.bin/openclaw +21 -0
- package/extensions/signal/openclaw.plugin.json +9 -0
- package/extensions/signal/package.json +14 -0
- package/extensions/signal/src/channel.ts +315 -0
- package/extensions/signal/src/runtime.ts +14 -0
- package/extensions/slack/index.ts +17 -0
- package/extensions/slack/node_modules/.bin/openclaw +21 -0
- package/extensions/slack/openclaw.plugin.json +9 -0
- package/extensions/slack/package.json +14 -0
- package/extensions/slack/src/channel.ts +604 -0
- package/extensions/slack/src/runtime.ts +14 -0
- package/extensions/telegram/index.ts +17 -0
- package/extensions/telegram/node_modules/.bin/openclaw +21 -0
- package/extensions/telegram/openclaw.plugin.json +9 -0
- package/extensions/telegram/package.json +14 -0
- package/extensions/telegram/src/channel.ts +482 -0
- package/extensions/telegram/src/runtime.ts +14 -0
- package/extensions/tlon/README.md +5 -0
- package/extensions/tlon/index.ts +17 -0
- package/extensions/tlon/node_modules/.bin/openclaw +21 -0
- package/extensions/tlon/openclaw.plugin.json +9 -0
- package/extensions/tlon/package.json +33 -0
- package/extensions/tlon/src/channel.ts +392 -0
- package/extensions/tlon/src/config-schema.test.ts +31 -0
- package/extensions/tlon/src/config-schema.ts +45 -0
- package/extensions/tlon/src/monitor/discovery.ts +76 -0
- package/extensions/tlon/src/monitor/history.ts +90 -0
- package/extensions/tlon/src/monitor/index.ts +580 -0
- package/extensions/tlon/src/monitor/processed-messages.test.ts +23 -0
- package/extensions/tlon/src/monitor/processed-messages.ts +46 -0
- package/extensions/tlon/src/monitor/utils.ts +106 -0
- package/extensions/tlon/src/onboarding.ts +214 -0
- package/extensions/tlon/src/runtime.ts +14 -0
- package/extensions/tlon/src/targets.ts +89 -0
- package/extensions/tlon/src/types.ts +92 -0
- package/extensions/tlon/src/urbit/auth.ts +18 -0
- package/extensions/tlon/src/urbit/http-api.ts +38 -0
- package/extensions/tlon/src/urbit/send.test.ts +38 -0
- package/extensions/tlon/src/urbit/send.ts +131 -0
- package/extensions/tlon/src/urbit/sse-client.test.ts +40 -0
- package/extensions/tlon/src/urbit/sse-client.ts +395 -0
- package/extensions/twitch/CHANGELOG.md +69 -0
- package/extensions/twitch/README.md +89 -0
- package/extensions/twitch/index.ts +20 -0
- package/extensions/twitch/node_modules/.bin/openclaw +21 -0
- package/extensions/twitch/openclaw.plugin.json +9 -0
- package/extensions/twitch/package.json +20 -0
- package/extensions/twitch/src/access-control.test.ts +489 -0
- package/extensions/twitch/src/access-control.ts +166 -0
- package/extensions/twitch/src/actions.ts +173 -0
- package/extensions/twitch/src/client-manager-registry.ts +115 -0
- package/extensions/twitch/src/config-schema.ts +84 -0
- package/extensions/twitch/src/config.test.ts +87 -0
- package/extensions/twitch/src/config.ts +116 -0
- package/extensions/twitch/src/monitor.ts +272 -0
- package/extensions/twitch/src/onboarding.test.ts +311 -0
- package/extensions/twitch/src/onboarding.ts +417 -0
- package/extensions/twitch/src/outbound.test.ts +373 -0
- package/extensions/twitch/src/outbound.ts +184 -0
- package/extensions/twitch/src/plugin.test.ts +39 -0
- package/extensions/twitch/src/plugin.ts +274 -0
- package/extensions/twitch/src/probe.test.ts +195 -0
- package/extensions/twitch/src/probe.ts +120 -0
- package/extensions/twitch/src/resolver.ts +137 -0
- package/extensions/twitch/src/runtime.ts +14 -0
- package/extensions/twitch/src/send.test.ts +289 -0
- package/extensions/twitch/src/send.ts +136 -0
- package/extensions/twitch/src/status.test.ts +270 -0
- package/extensions/twitch/src/status.ts +178 -0
- package/extensions/twitch/src/token.test.ts +171 -0
- package/extensions/twitch/src/token.ts +91 -0
- package/extensions/twitch/src/twitch-client.test.ts +589 -0
- package/extensions/twitch/src/twitch-client.ts +277 -0
- package/extensions/twitch/src/types.ts +143 -0
- package/extensions/twitch/src/utils/markdown.ts +98 -0
- package/extensions/twitch/src/utils/twitch.ts +78 -0
- package/extensions/twitch/test/setup.ts +7 -0
- package/extensions/voice-call/CHANGELOG.md +133 -0
- package/extensions/voice-call/README.md +139 -0
- package/extensions/voice-call/index.ts +493 -0
- package/extensions/voice-call/node_modules/.bin/openclaw +21 -0
- package/extensions/voice-call/openclaw.plugin.json +559 -0
- package/extensions/voice-call/package.json +19 -0
- package/extensions/voice-call/src/allowlist.ts +19 -0
- package/extensions/voice-call/src/cli.ts +279 -0
- package/extensions/voice-call/src/config.test.ts +234 -0
- package/extensions/voice-call/src/config.ts +523 -0
- package/extensions/voice-call/src/core-bridge.ts +159 -0
- package/extensions/voice-call/src/manager/context.ts +21 -0
- package/extensions/voice-call/src/manager/events.ts +188 -0
- package/extensions/voice-call/src/manager/lookup.ts +35 -0
- package/extensions/voice-call/src/manager/outbound.ts +275 -0
- package/extensions/voice-call/src/manager/state.ts +48 -0
- package/extensions/voice-call/src/manager/store.ts +91 -0
- package/extensions/voice-call/src/manager/timers.ts +89 -0
- package/extensions/voice-call/src/manager/twiml.ts +9 -0
- package/extensions/voice-call/src/manager.test.ts +224 -0
- package/extensions/voice-call/src/manager.ts +887 -0
- package/extensions/voice-call/src/media-stream.test.ts +96 -0
- package/extensions/voice-call/src/media-stream.ts +411 -0
- package/extensions/voice-call/src/providers/base.ts +67 -0
- package/extensions/voice-call/src/providers/index.ts +10 -0
- package/extensions/voice-call/src/providers/mock.ts +165 -0
- package/extensions/voice-call/src/providers/plivo.test.ts +27 -0
- package/extensions/voice-call/src/providers/plivo.ts +515 -0
- package/extensions/voice-call/src/providers/stt-openai-realtime.ts +311 -0
- package/extensions/voice-call/src/providers/telnyx.ts +371 -0
- package/extensions/voice-call/src/providers/tts-openai.ts +259 -0
- package/extensions/voice-call/src/providers/twilio/api.ts +42 -0
- package/extensions/voice-call/src/providers/twilio/webhook.ts +32 -0
- package/extensions/voice-call/src/providers/twilio.test.ts +60 -0
- package/extensions/voice-call/src/providers/twilio.ts +626 -0
- package/extensions/voice-call/src/response-generator.ts +158 -0
- package/extensions/voice-call/src/runtime.ts +212 -0
- package/extensions/voice-call/src/telephony-audio.ts +90 -0
- package/extensions/voice-call/src/telephony-tts.ts +104 -0
- package/extensions/voice-call/src/tunnel.ts +314 -0
- package/extensions/voice-call/src/types.ts +272 -0
- package/extensions/voice-call/src/utils.ts +14 -0
- package/extensions/voice-call/src/voice-mapping.ts +67 -0
- package/extensions/voice-call/src/webhook-security.test.ts +377 -0
- package/extensions/voice-call/src/webhook-security.ts +689 -0
- package/extensions/voice-call/src/webhook.ts +516 -0
- package/extensions/whatsapp/index.ts +17 -0
- package/extensions/whatsapp/node_modules/.bin/openclaw +21 -0
- package/extensions/whatsapp/openclaw.plugin.json +9 -0
- package/extensions/whatsapp/package.json +14 -0
- package/extensions/whatsapp/src/channel.ts +508 -0
- package/extensions/whatsapp/src/runtime.ts +14 -0
- package/extensions/zalo/CHANGELOG.md +113 -0
- package/extensions/zalo/README.md +50 -0
- package/extensions/zalo/index.ts +19 -0
- package/extensions/zalo/node_modules/.bin/openclaw +21 -0
- package/extensions/zalo/openclaw.plugin.json +9 -0
- package/extensions/zalo/package.json +36 -0
- package/extensions/zalo/src/accounts.ts +80 -0
- package/extensions/zalo/src/actions.ts +67 -0
- package/extensions/zalo/src/api.ts +208 -0
- package/extensions/zalo/src/channel.directory.test.ts +43 -0
- package/extensions/zalo/src/channel.ts +414 -0
- package/extensions/zalo/src/config-schema.ts +25 -0
- package/extensions/zalo/src/monitor.ts +764 -0
- package/extensions/zalo/src/monitor.webhook.test.ts +73 -0
- package/extensions/zalo/src/onboarding.ts +401 -0
- package/extensions/zalo/src/probe.ts +46 -0
- package/extensions/zalo/src/proxy.ts +21 -0
- package/extensions/zalo/src/runtime.ts +14 -0
- package/extensions/zalo/src/send.ts +124 -0
- package/extensions/zalo/src/status-issues.ts +53 -0
- package/extensions/zalo/src/token.ts +63 -0
- package/extensions/zalo/src/types.ts +44 -0
- package/extensions/zalouser/CHANGELOG.md +85 -0
- package/extensions/zalouser/README.md +225 -0
- package/extensions/zalouser/index.ts +31 -0
- package/extensions/zalouser/node_modules/.bin/openclaw +21 -0
- package/extensions/zalouser/openclaw.plugin.json +9 -0
- package/extensions/zalouser/package.json +36 -0
- package/extensions/zalouser/src/accounts.ts +135 -0
- package/extensions/zalouser/src/channel.test.ts +18 -0
- package/extensions/zalouser/src/channel.ts +686 -0
- package/extensions/zalouser/src/config-schema.ts +28 -0
- package/extensions/zalouser/src/monitor.ts +601 -0
- package/extensions/zalouser/src/onboarding.ts +504 -0
- package/extensions/zalouser/src/probe.ts +28 -0
- package/extensions/zalouser/src/runtime.ts +14 -0
- package/extensions/zalouser/src/send.ts +160 -0
- package/extensions/zalouser/src/status-issues.test.ts +57 -0
- package/extensions/zalouser/src/status-issues.ts +89 -0
- package/extensions/zalouser/src/tool.ts +164 -0
- package/extensions/zalouser/src/types.ts +110 -0
- package/extensions/zalouser/src/zca.ts +202 -0
- package/openclaw.mjs +33 -0
- package/package.json +234 -0
- package/skills/1password/SKILL.md +70 -0
- package/skills/1password/references/cli-examples.md +29 -0
- package/skills/1password/references/get-started.md +17 -0
- package/skills/apple-notes/SKILL.md +77 -0
- package/skills/apple-reminders/SKILL.md +96 -0
- package/skills/bear-notes/SKILL.md +107 -0
- package/skills/blogwatcher/SKILL.md +69 -0
- package/skills/blucli/SKILL.md +47 -0
- package/skills/bluebubbles/SKILL.md +131 -0
- package/skills/camsnap/SKILL.md +45 -0
- package/skills/canvas/SKILL.md +198 -0
- package/skills/clawhub/SKILL.md +77 -0
- package/skills/coding-agent/SKILL.md +284 -0
- package/skills/discord/SKILL.md +578 -0
- package/skills/eightctl/SKILL.md +50 -0
- package/skills/food-order/SKILL.md +48 -0
- package/skills/gemini/SKILL.md +43 -0
- package/skills/gifgrep/SKILL.md +79 -0
- package/skills/github/SKILL.md +77 -0
- package/skills/gog/SKILL.md +116 -0
- package/skills/goplaces/SKILL.md +52 -0
- package/skills/healthcheck/SKILL.md +245 -0
- package/skills/himalaya/SKILL.md +257 -0
- package/skills/himalaya/references/configuration.md +184 -0
- package/skills/himalaya/references/message-composition.md +199 -0
- package/skills/imsg/SKILL.md +74 -0
- package/skills/local-places/SERVER_README.md +101 -0
- package/skills/local-places/SKILL.md +102 -0
- package/skills/local-places/pyproject.toml +21 -0
- package/skills/local-places/src/local_places/__init__.py +2 -0
- package/skills/local-places/src/local_places/google_places.py +314 -0
- package/skills/local-places/src/local_places/main.py +65 -0
- package/skills/local-places/src/local_places/schemas.py +107 -0
- package/skills/mcporter/SKILL.md +61 -0
- package/skills/model-usage/SKILL.md +69 -0
- package/skills/model-usage/references/codexbar-cli.md +33 -0
- package/skills/model-usage/scripts/model_usage.py +310 -0
- package/skills/nano-banana-pro/SKILL.md +58 -0
- package/skills/nano-banana-pro/scripts/generate_image.py +184 -0
- package/skills/nano-pdf/SKILL.md +38 -0
- package/skills/notion/SKILL.md +172 -0
- package/skills/obsidian/SKILL.md +81 -0
- package/skills/openai-image-gen/SKILL.md +89 -0
- package/skills/openai-image-gen/scripts/gen.py +240 -0
- package/skills/openai-whisper/SKILL.md +38 -0
- package/skills/openai-whisper-api/SKILL.md +52 -0
- package/skills/openai-whisper-api/scripts/transcribe.sh +85 -0
- package/skills/openhue/SKILL.md +51 -0
- package/skills/oracle/SKILL.md +125 -0
- package/skills/ordercli/SKILL.md +78 -0
- package/skills/peekaboo/SKILL.md +190 -0
- package/skills/sag/SKILL.md +87 -0
- package/skills/session-logs/SKILL.md +115 -0
- package/skills/sherpa-onnx-tts/SKILL.md +103 -0
- package/skills/sherpa-onnx-tts/bin/sherpa-onnx-tts +178 -0
- package/skills/skill-creator/SKILL.md +370 -0
- package/skills/skill-creator/license.txt +202 -0
- package/skills/skill-creator/scripts/init_skill.py +378 -0
- package/skills/skill-creator/scripts/package_skill.py +111 -0
- package/skills/skill-creator/scripts/quick_validate.py +101 -0
- package/skills/slack/SKILL.md +144 -0
- package/skills/songsee/SKILL.md +49 -0
- package/skills/sonoscli/SKILL.md +46 -0
- package/skills/spotify-player/SKILL.md +64 -0
- package/skills/summarize/SKILL.md +87 -0
- package/skills/things-mac/SKILL.md +86 -0
- package/skills/tmux/SKILL.md +135 -0
- package/skills/tmux/scripts/find-sessions.sh +112 -0
- package/skills/tmux/scripts/wait-for-text.sh +83 -0
- package/skills/trello/SKILL.md +95 -0
- package/skills/video-frames/SKILL.md +46 -0
- package/skills/video-frames/scripts/frame.sh +81 -0
- package/skills/voice-call/SKILL.md +45 -0
- package/skills/wacli/SKILL.md +72 -0
- package/skills/weather/SKILL.md +54 -0
|
@@ -0,0 +1,1853 @@
|
|
|
1
|
+
import { g as resolveStateDir, m as resolveOAuthDir, o as resolveConfigPath } from "./paths-scjhy7N2.js";
|
|
2
|
+
import { l as normalizeAgentId } from "./session-key-ezJ78bLC.js";
|
|
3
|
+
import { n as runExec } from "./exec-HEWTMJ7j.js";
|
|
4
|
+
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-sKVRNONG.js";
|
|
5
|
+
import { t as formatCliCommand } from "./command-format-ChfKqObn.js";
|
|
6
|
+
import { D as MAX_INCLUDE_DEPTH, E as INCLUDE_KEY, r as createConfigIO } from "./config-BEUgkMYH.js";
|
|
7
|
+
import { a as MANIFEST_KEY } from "./manifest-registry-DHaa1SJb.js";
|
|
8
|
+
import { n as listChannelPlugins } from "./plugins-DrjfSaQw.js";
|
|
9
|
+
import { $ as resolveSandboxToolPolicyForAgent, Z as resolveSandboxConfigForAgent, ot as resolveToolProfilePolicy } from "./sandbox-BwaFbMul.js";
|
|
10
|
+
import { i as loadWorkspaceSkillEntries } from "./skills-D5JDj3TR.js";
|
|
11
|
+
import { a as resolveProfile, i as resolveBrowserConfig } from "./server-context-C8xKLc0L.js";
|
|
12
|
+
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-Bpfe5l5f.js";
|
|
13
|
+
import { l as GatewayClient } from "./net-5DEH6AJK.js";
|
|
14
|
+
import { t as buildGatewayConnectionDetails } from "./call-YdaudqMl.js";
|
|
15
|
+
import { i as readChannelAllowFromStore } from "./pairing-store-D9vodPRR.js";
|
|
16
|
+
import { c as resolveNativeSkillsEnabled, n as isToolAllowedByPolicies, s as resolveNativeCommandsEnabled } from "./pi-tools.policy-JNsnW6cw.js";
|
|
17
|
+
import { t as resolveChannelDefaultAccountId } from "./helpers-CSZtxHTa.js";
|
|
18
|
+
import { t as scanDirectoryWithSummary } from "./skill-scanner-BoGjHXUZ.js";
|
|
19
|
+
import { i as resolveGatewayAuth } from "./auth-CMKwNo-f.js";
|
|
20
|
+
import os from "node:os";
|
|
21
|
+
import path from "node:path";
|
|
22
|
+
import JSON5 from "json5";
|
|
23
|
+
import fs from "node:fs/promises";
|
|
24
|
+
import { randomUUID } from "node:crypto";
|
|
25
|
+
|
|
26
|
+
//#region src/gateway/probe.ts
|
|
27
|
+
function formatError(err) {
|
|
28
|
+
if (err instanceof Error) return err.message;
|
|
29
|
+
return String(err);
|
|
30
|
+
}
|
|
31
|
+
async function probeGateway(opts) {
|
|
32
|
+
const startedAt = Date.now();
|
|
33
|
+
const instanceId = randomUUID();
|
|
34
|
+
let connectLatencyMs = null;
|
|
35
|
+
let connectError = null;
|
|
36
|
+
let close = null;
|
|
37
|
+
return await new Promise((resolve) => {
|
|
38
|
+
let settled = false;
|
|
39
|
+
const settle = (result) => {
|
|
40
|
+
if (settled) return;
|
|
41
|
+
settled = true;
|
|
42
|
+
clearTimeout(timer);
|
|
43
|
+
client.stop();
|
|
44
|
+
resolve({
|
|
45
|
+
url: opts.url,
|
|
46
|
+
...result
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
const client = new GatewayClient({
|
|
50
|
+
url: opts.url,
|
|
51
|
+
token: opts.auth?.token,
|
|
52
|
+
password: opts.auth?.password,
|
|
53
|
+
clientName: GATEWAY_CLIENT_NAMES.CLI,
|
|
54
|
+
clientVersion: "dev",
|
|
55
|
+
mode: GATEWAY_CLIENT_MODES.PROBE,
|
|
56
|
+
instanceId,
|
|
57
|
+
onConnectError: (err) => {
|
|
58
|
+
connectError = formatError(err);
|
|
59
|
+
},
|
|
60
|
+
onClose: (code, reason) => {
|
|
61
|
+
close = {
|
|
62
|
+
code,
|
|
63
|
+
reason
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
onHelloOk: async () => {
|
|
67
|
+
connectLatencyMs = Date.now() - startedAt;
|
|
68
|
+
try {
|
|
69
|
+
const [health, status, presence, configSnapshot] = await Promise.all([
|
|
70
|
+
client.request("health"),
|
|
71
|
+
client.request("status"),
|
|
72
|
+
client.request("system-presence"),
|
|
73
|
+
client.request("config.get", {})
|
|
74
|
+
]);
|
|
75
|
+
settle({
|
|
76
|
+
ok: true,
|
|
77
|
+
connectLatencyMs,
|
|
78
|
+
error: null,
|
|
79
|
+
close,
|
|
80
|
+
health,
|
|
81
|
+
status,
|
|
82
|
+
presence: Array.isArray(presence) ? presence : null,
|
|
83
|
+
configSnapshot
|
|
84
|
+
});
|
|
85
|
+
} catch (err) {
|
|
86
|
+
settle({
|
|
87
|
+
ok: false,
|
|
88
|
+
connectLatencyMs,
|
|
89
|
+
error: formatError(err),
|
|
90
|
+
close,
|
|
91
|
+
health: null,
|
|
92
|
+
status: null,
|
|
93
|
+
presence: null,
|
|
94
|
+
configSnapshot: null
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
const timer = setTimeout(() => {
|
|
100
|
+
settle({
|
|
101
|
+
ok: false,
|
|
102
|
+
connectLatencyMs,
|
|
103
|
+
error: connectError ? `connect failed: ${connectError}` : "timeout",
|
|
104
|
+
close,
|
|
105
|
+
health: null,
|
|
106
|
+
status: null,
|
|
107
|
+
presence: null,
|
|
108
|
+
configSnapshot: null
|
|
109
|
+
});
|
|
110
|
+
}, Math.max(250, opts.timeoutMs));
|
|
111
|
+
client.start();
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
//#endregion
|
|
116
|
+
//#region src/security/windows-acl.ts
|
|
117
|
+
const INHERIT_FLAGS = new Set([
|
|
118
|
+
"I",
|
|
119
|
+
"OI",
|
|
120
|
+
"CI",
|
|
121
|
+
"IO",
|
|
122
|
+
"NP"
|
|
123
|
+
]);
|
|
124
|
+
const WORLD_PRINCIPALS = new Set([
|
|
125
|
+
"everyone",
|
|
126
|
+
"users",
|
|
127
|
+
"builtin\\users",
|
|
128
|
+
"authenticated users",
|
|
129
|
+
"nt authority\\authenticated users"
|
|
130
|
+
]);
|
|
131
|
+
const TRUSTED_BASE = new Set([
|
|
132
|
+
"nt authority\\system",
|
|
133
|
+
"system",
|
|
134
|
+
"builtin\\administrators",
|
|
135
|
+
"creator owner"
|
|
136
|
+
]);
|
|
137
|
+
const WORLD_SUFFIXES = ["\\users", "\\authenticated users"];
|
|
138
|
+
const TRUSTED_SUFFIXES = ["\\administrators", "\\system"];
|
|
139
|
+
const normalize = (value) => value.trim().toLowerCase();
|
|
140
|
+
function resolveWindowsUserPrincipal(env) {
|
|
141
|
+
const username = env?.USERNAME?.trim() || os.userInfo().username?.trim();
|
|
142
|
+
if (!username) return null;
|
|
143
|
+
const domain = env?.USERDOMAIN?.trim();
|
|
144
|
+
return domain ? `${domain}\\${username}` : username;
|
|
145
|
+
}
|
|
146
|
+
function buildTrustedPrincipals(env) {
|
|
147
|
+
const trusted = new Set(TRUSTED_BASE);
|
|
148
|
+
const principal = resolveWindowsUserPrincipal(env);
|
|
149
|
+
if (principal) {
|
|
150
|
+
trusted.add(normalize(principal));
|
|
151
|
+
const userOnly = principal.split("\\").at(-1);
|
|
152
|
+
if (userOnly) trusted.add(normalize(userOnly));
|
|
153
|
+
}
|
|
154
|
+
return trusted;
|
|
155
|
+
}
|
|
156
|
+
function classifyPrincipal(principal, env) {
|
|
157
|
+
const normalized = normalize(principal);
|
|
158
|
+
if (buildTrustedPrincipals(env).has(normalized) || TRUSTED_SUFFIXES.some((s) => normalized.endsWith(s))) return "trusted";
|
|
159
|
+
if (WORLD_PRINCIPALS.has(normalized) || WORLD_SUFFIXES.some((s) => normalized.endsWith(s))) return "world";
|
|
160
|
+
return "group";
|
|
161
|
+
}
|
|
162
|
+
function rightsFromTokens(tokens) {
|
|
163
|
+
const upper = tokens.join("").toUpperCase();
|
|
164
|
+
const canWrite = upper.includes("F") || upper.includes("M") || upper.includes("W") || upper.includes("D");
|
|
165
|
+
return {
|
|
166
|
+
canRead: upper.includes("F") || upper.includes("M") || upper.includes("R"),
|
|
167
|
+
canWrite
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
function parseIcaclsOutput(output, targetPath) {
|
|
171
|
+
const entries = [];
|
|
172
|
+
const normalizedTarget = targetPath.trim();
|
|
173
|
+
const lowerTarget = normalizedTarget.toLowerCase();
|
|
174
|
+
const quotedTarget = `"${normalizedTarget}"`;
|
|
175
|
+
const quotedLower = quotedTarget.toLowerCase();
|
|
176
|
+
for (const rawLine of output.split(/\r?\n/)) {
|
|
177
|
+
const line = rawLine.trimEnd();
|
|
178
|
+
if (!line.trim()) continue;
|
|
179
|
+
const trimmed = line.trim();
|
|
180
|
+
const lower = trimmed.toLowerCase();
|
|
181
|
+
if (lower.startsWith("successfully processed") || lower.startsWith("processed") || lower.startsWith("failed processing") || lower.startsWith("no mapping between account names")) continue;
|
|
182
|
+
let entry = trimmed;
|
|
183
|
+
if (lower.startsWith(lowerTarget)) entry = trimmed.slice(normalizedTarget.length).trim();
|
|
184
|
+
else if (lower.startsWith(quotedLower)) entry = trimmed.slice(quotedTarget.length).trim();
|
|
185
|
+
if (!entry) continue;
|
|
186
|
+
const idx = entry.indexOf(":");
|
|
187
|
+
if (idx === -1) continue;
|
|
188
|
+
const principal = entry.slice(0, idx).trim();
|
|
189
|
+
const rawRights = entry.slice(idx + 1).trim();
|
|
190
|
+
const tokens = rawRights.match(/\(([^)]+)\)/g)?.map((token) => token.slice(1, -1).trim()).filter(Boolean) ?? [];
|
|
191
|
+
if (tokens.some((token) => token.toUpperCase() === "DENY")) continue;
|
|
192
|
+
const rights = tokens.filter((token) => !INHERIT_FLAGS.has(token.toUpperCase()));
|
|
193
|
+
if (rights.length === 0) continue;
|
|
194
|
+
const { canRead, canWrite } = rightsFromTokens(rights);
|
|
195
|
+
entries.push({
|
|
196
|
+
principal,
|
|
197
|
+
rights,
|
|
198
|
+
rawRights,
|
|
199
|
+
canRead,
|
|
200
|
+
canWrite
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
return entries;
|
|
204
|
+
}
|
|
205
|
+
function summarizeWindowsAcl(entries, env) {
|
|
206
|
+
const trusted = [];
|
|
207
|
+
const untrustedWorld = [];
|
|
208
|
+
const untrustedGroup = [];
|
|
209
|
+
for (const entry of entries) {
|
|
210
|
+
const classification = classifyPrincipal(entry.principal, env);
|
|
211
|
+
if (classification === "trusted") trusted.push(entry);
|
|
212
|
+
else if (classification === "world") untrustedWorld.push(entry);
|
|
213
|
+
else untrustedGroup.push(entry);
|
|
214
|
+
}
|
|
215
|
+
return {
|
|
216
|
+
trusted,
|
|
217
|
+
untrustedWorld,
|
|
218
|
+
untrustedGroup
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
async function inspectWindowsAcl(targetPath, opts) {
|
|
222
|
+
const exec = opts?.exec ?? runExec;
|
|
223
|
+
try {
|
|
224
|
+
const { stdout, stderr } = await exec("icacls", [targetPath]);
|
|
225
|
+
const entries = parseIcaclsOutput(`${stdout}\n${stderr}`.trim(), targetPath);
|
|
226
|
+
const { trusted, untrustedWorld, untrustedGroup } = summarizeWindowsAcl(entries, opts?.env);
|
|
227
|
+
return {
|
|
228
|
+
ok: true,
|
|
229
|
+
entries,
|
|
230
|
+
trusted,
|
|
231
|
+
untrustedWorld,
|
|
232
|
+
untrustedGroup
|
|
233
|
+
};
|
|
234
|
+
} catch (err) {
|
|
235
|
+
return {
|
|
236
|
+
ok: false,
|
|
237
|
+
entries: [],
|
|
238
|
+
trusted: [],
|
|
239
|
+
untrustedWorld: [],
|
|
240
|
+
untrustedGroup: [],
|
|
241
|
+
error: String(err)
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
function formatWindowsAclSummary(summary) {
|
|
246
|
+
if (!summary.ok) return "unknown";
|
|
247
|
+
const untrusted = [...summary.untrustedWorld, ...summary.untrustedGroup];
|
|
248
|
+
if (untrusted.length === 0) return "trusted-only";
|
|
249
|
+
return untrusted.map((entry) => `${entry.principal}:${entry.rawRights}`).join(", ");
|
|
250
|
+
}
|
|
251
|
+
function formatIcaclsResetCommand(targetPath, opts) {
|
|
252
|
+
const user = resolveWindowsUserPrincipal(opts.env) ?? "%USERNAME%";
|
|
253
|
+
const grant = opts.isDir ? "(OI)(CI)F" : "F";
|
|
254
|
+
return `icacls "${targetPath}" /inheritance:r /grant:r "${user}:${grant}" /grant:r "SYSTEM:${grant}"`;
|
|
255
|
+
}
|
|
256
|
+
function createIcaclsResetCommand(targetPath, opts) {
|
|
257
|
+
const user = resolveWindowsUserPrincipal(opts.env);
|
|
258
|
+
if (!user) return null;
|
|
259
|
+
const grant = opts.isDir ? "(OI)(CI)F" : "F";
|
|
260
|
+
return {
|
|
261
|
+
command: "icacls",
|
|
262
|
+
args: [
|
|
263
|
+
targetPath,
|
|
264
|
+
"/inheritance:r",
|
|
265
|
+
"/grant:r",
|
|
266
|
+
`${user}:${grant}`,
|
|
267
|
+
"/grant:r",
|
|
268
|
+
`SYSTEM:${grant}`
|
|
269
|
+
],
|
|
270
|
+
display: formatIcaclsResetCommand(targetPath, opts)
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
//#endregion
|
|
275
|
+
//#region src/security/audit-fs.ts
|
|
276
|
+
async function safeStat(targetPath) {
|
|
277
|
+
try {
|
|
278
|
+
const lst = await fs.lstat(targetPath);
|
|
279
|
+
return {
|
|
280
|
+
ok: true,
|
|
281
|
+
isSymlink: lst.isSymbolicLink(),
|
|
282
|
+
isDir: lst.isDirectory(),
|
|
283
|
+
mode: typeof lst.mode === "number" ? lst.mode : null,
|
|
284
|
+
uid: typeof lst.uid === "number" ? lst.uid : null,
|
|
285
|
+
gid: typeof lst.gid === "number" ? lst.gid : null
|
|
286
|
+
};
|
|
287
|
+
} catch (err) {
|
|
288
|
+
return {
|
|
289
|
+
ok: false,
|
|
290
|
+
isSymlink: false,
|
|
291
|
+
isDir: false,
|
|
292
|
+
mode: null,
|
|
293
|
+
uid: null,
|
|
294
|
+
gid: null,
|
|
295
|
+
error: String(err)
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
async function inspectPathPermissions(targetPath, opts) {
|
|
300
|
+
const st = await safeStat(targetPath);
|
|
301
|
+
if (!st.ok) return {
|
|
302
|
+
ok: false,
|
|
303
|
+
isSymlink: false,
|
|
304
|
+
isDir: false,
|
|
305
|
+
mode: null,
|
|
306
|
+
bits: null,
|
|
307
|
+
source: "unknown",
|
|
308
|
+
worldWritable: false,
|
|
309
|
+
groupWritable: false,
|
|
310
|
+
worldReadable: false,
|
|
311
|
+
groupReadable: false,
|
|
312
|
+
error: st.error
|
|
313
|
+
};
|
|
314
|
+
const bits = modeBits(st.mode);
|
|
315
|
+
if ((opts?.platform ?? process.platform) === "win32") {
|
|
316
|
+
const acl = await inspectWindowsAcl(targetPath, {
|
|
317
|
+
env: opts?.env,
|
|
318
|
+
exec: opts?.exec
|
|
319
|
+
});
|
|
320
|
+
if (!acl.ok) return {
|
|
321
|
+
ok: true,
|
|
322
|
+
isSymlink: st.isSymlink,
|
|
323
|
+
isDir: st.isDir,
|
|
324
|
+
mode: st.mode,
|
|
325
|
+
bits,
|
|
326
|
+
source: "unknown",
|
|
327
|
+
worldWritable: false,
|
|
328
|
+
groupWritable: false,
|
|
329
|
+
worldReadable: false,
|
|
330
|
+
groupReadable: false,
|
|
331
|
+
error: acl.error
|
|
332
|
+
};
|
|
333
|
+
return {
|
|
334
|
+
ok: true,
|
|
335
|
+
isSymlink: st.isSymlink,
|
|
336
|
+
isDir: st.isDir,
|
|
337
|
+
mode: st.mode,
|
|
338
|
+
bits,
|
|
339
|
+
source: "windows-acl",
|
|
340
|
+
worldWritable: acl.untrustedWorld.some((entry) => entry.canWrite),
|
|
341
|
+
groupWritable: acl.untrustedGroup.some((entry) => entry.canWrite),
|
|
342
|
+
worldReadable: acl.untrustedWorld.some((entry) => entry.canRead),
|
|
343
|
+
groupReadable: acl.untrustedGroup.some((entry) => entry.canRead),
|
|
344
|
+
aclSummary: formatWindowsAclSummary(acl)
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
return {
|
|
348
|
+
ok: true,
|
|
349
|
+
isSymlink: st.isSymlink,
|
|
350
|
+
isDir: st.isDir,
|
|
351
|
+
mode: st.mode,
|
|
352
|
+
bits,
|
|
353
|
+
source: "posix",
|
|
354
|
+
worldWritable: isWorldWritable(bits),
|
|
355
|
+
groupWritable: isGroupWritable(bits),
|
|
356
|
+
worldReadable: isWorldReadable(bits),
|
|
357
|
+
groupReadable: isGroupReadable(bits)
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
function formatPermissionDetail(targetPath, perms) {
|
|
361
|
+
if (perms.source === "windows-acl") return `${targetPath} acl=${perms.aclSummary ?? "unknown"}`;
|
|
362
|
+
return `${targetPath} mode=${formatOctal(perms.bits)}`;
|
|
363
|
+
}
|
|
364
|
+
function formatPermissionRemediation(params) {
|
|
365
|
+
if (params.perms.source === "windows-acl") return formatIcaclsResetCommand(params.targetPath, {
|
|
366
|
+
isDir: params.isDir,
|
|
367
|
+
env: params.env
|
|
368
|
+
});
|
|
369
|
+
return `chmod ${params.posixMode.toString(8).padStart(3, "0")} ${params.targetPath}`;
|
|
370
|
+
}
|
|
371
|
+
function modeBits(mode) {
|
|
372
|
+
if (mode == null) return null;
|
|
373
|
+
return mode & 511;
|
|
374
|
+
}
|
|
375
|
+
function formatOctal(bits) {
|
|
376
|
+
if (bits == null) return "unknown";
|
|
377
|
+
return bits.toString(8).padStart(3, "0");
|
|
378
|
+
}
|
|
379
|
+
function isWorldWritable(bits) {
|
|
380
|
+
if (bits == null) return false;
|
|
381
|
+
return (bits & 2) !== 0;
|
|
382
|
+
}
|
|
383
|
+
function isGroupWritable(bits) {
|
|
384
|
+
if (bits == null) return false;
|
|
385
|
+
return (bits & 16) !== 0;
|
|
386
|
+
}
|
|
387
|
+
function isWorldReadable(bits) {
|
|
388
|
+
if (bits == null) return false;
|
|
389
|
+
return (bits & 4) !== 0;
|
|
390
|
+
}
|
|
391
|
+
function isGroupReadable(bits) {
|
|
392
|
+
if (bits == null) return false;
|
|
393
|
+
return (bits & 32) !== 0;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
//#endregion
|
|
397
|
+
//#region src/security/audit-extra.ts
|
|
398
|
+
const SMALL_MODEL_PARAM_B_MAX = 300;
|
|
399
|
+
function expandTilde(p, env) {
|
|
400
|
+
if (!p.startsWith("~")) return p;
|
|
401
|
+
const home = typeof env.HOME === "string" && env.HOME.trim() ? env.HOME.trim() : null;
|
|
402
|
+
if (!home) return null;
|
|
403
|
+
if (p === "~") return home;
|
|
404
|
+
if (p.startsWith("~/") || p.startsWith("~\\")) return path.join(home, p.slice(2));
|
|
405
|
+
return null;
|
|
406
|
+
}
|
|
407
|
+
function summarizeGroupPolicy(cfg) {
|
|
408
|
+
const channels = cfg.channels;
|
|
409
|
+
if (!channels || typeof channels !== "object") return {
|
|
410
|
+
open: 0,
|
|
411
|
+
allowlist: 0,
|
|
412
|
+
other: 0
|
|
413
|
+
};
|
|
414
|
+
let open = 0;
|
|
415
|
+
let allowlist = 0;
|
|
416
|
+
let other = 0;
|
|
417
|
+
for (const value of Object.values(channels)) {
|
|
418
|
+
if (!value || typeof value !== "object") continue;
|
|
419
|
+
const policy = value.groupPolicy;
|
|
420
|
+
if (policy === "open") open += 1;
|
|
421
|
+
else if (policy === "allowlist") allowlist += 1;
|
|
422
|
+
else other += 1;
|
|
423
|
+
}
|
|
424
|
+
return {
|
|
425
|
+
open,
|
|
426
|
+
allowlist,
|
|
427
|
+
other
|
|
428
|
+
};
|
|
429
|
+
}
|
|
430
|
+
function collectAttackSurfaceSummaryFindings(cfg) {
|
|
431
|
+
const group = summarizeGroupPolicy(cfg);
|
|
432
|
+
const elevated = cfg.tools?.elevated?.enabled !== false;
|
|
433
|
+
const hooksEnabled = cfg.hooks?.enabled === true;
|
|
434
|
+
const browserEnabled = cfg.browser?.enabled ?? true;
|
|
435
|
+
return [{
|
|
436
|
+
checkId: "summary.attack_surface",
|
|
437
|
+
severity: "info",
|
|
438
|
+
title: "Attack surface summary",
|
|
439
|
+
detail: `groups: open=${group.open}, allowlist=${group.allowlist}\ntools.elevated: ${elevated ? "enabled" : "disabled"}\nhooks: ${hooksEnabled ? "enabled" : "disabled"}\nbrowser control: ${browserEnabled ? "enabled" : "disabled"}`
|
|
440
|
+
}];
|
|
441
|
+
}
|
|
442
|
+
function isProbablySyncedPath(p) {
|
|
443
|
+
const s = p.toLowerCase();
|
|
444
|
+
return s.includes("icloud") || s.includes("dropbox") || s.includes("google drive") || s.includes("googledrive") || s.includes("onedrive");
|
|
445
|
+
}
|
|
446
|
+
function collectSyncedFolderFindings(params) {
|
|
447
|
+
const findings = [];
|
|
448
|
+
if (isProbablySyncedPath(params.stateDir) || isProbablySyncedPath(params.configPath)) findings.push({
|
|
449
|
+
checkId: "fs.synced_dir",
|
|
450
|
+
severity: "warn",
|
|
451
|
+
title: "State/config path looks like a synced folder",
|
|
452
|
+
detail: `stateDir=${params.stateDir}, configPath=${params.configPath}. Synced folders (iCloud/Dropbox/OneDrive/Google Drive) can leak tokens and transcripts onto other devices.`,
|
|
453
|
+
remediation: `Keep OPENCLAW_STATE_DIR on a local-only volume and re-run "${formatCliCommand("openclaw security audit --fix")}".`
|
|
454
|
+
});
|
|
455
|
+
return findings;
|
|
456
|
+
}
|
|
457
|
+
function looksLikeEnvRef(value) {
|
|
458
|
+
const v = value.trim();
|
|
459
|
+
return v.startsWith("${") && v.endsWith("}");
|
|
460
|
+
}
|
|
461
|
+
function collectSecretsInConfigFindings(cfg) {
|
|
462
|
+
const findings = [];
|
|
463
|
+
const password = typeof cfg.gateway?.auth?.password === "string" ? cfg.gateway.auth.password.trim() : "";
|
|
464
|
+
if (password && !looksLikeEnvRef(password)) findings.push({
|
|
465
|
+
checkId: "config.secrets.gateway_password_in_config",
|
|
466
|
+
severity: "warn",
|
|
467
|
+
title: "Gateway password is stored in config",
|
|
468
|
+
detail: "gateway.auth.password is set in the config file; prefer environment variables for secrets when possible.",
|
|
469
|
+
remediation: "Prefer OPENCLAW_GATEWAY_PASSWORD (env) and remove gateway.auth.password from disk."
|
|
470
|
+
});
|
|
471
|
+
const hooksToken = typeof cfg.hooks?.token === "string" ? cfg.hooks.token.trim() : "";
|
|
472
|
+
if (cfg.hooks?.enabled === true && hooksToken && !looksLikeEnvRef(hooksToken)) findings.push({
|
|
473
|
+
checkId: "config.secrets.hooks_token_in_config",
|
|
474
|
+
severity: "info",
|
|
475
|
+
title: "Hooks token is stored in config",
|
|
476
|
+
detail: "hooks.token is set in the config file; keep config perms tight and treat it like an API secret."
|
|
477
|
+
});
|
|
478
|
+
return findings;
|
|
479
|
+
}
|
|
480
|
+
function collectHooksHardeningFindings(cfg) {
|
|
481
|
+
const findings = [];
|
|
482
|
+
if (cfg.hooks?.enabled !== true) return findings;
|
|
483
|
+
const token = typeof cfg.hooks?.token === "string" ? cfg.hooks.token.trim() : "";
|
|
484
|
+
if (token && token.length < 24) findings.push({
|
|
485
|
+
checkId: "hooks.token_too_short",
|
|
486
|
+
severity: "warn",
|
|
487
|
+
title: "Hooks token looks short",
|
|
488
|
+
detail: `hooks.token is ${token.length} chars; prefer a long random token.`
|
|
489
|
+
});
|
|
490
|
+
const gatewayAuth = resolveGatewayAuth({
|
|
491
|
+
authConfig: cfg.gateway?.auth,
|
|
492
|
+
tailscaleMode: cfg.gateway?.tailscale?.mode ?? "off"
|
|
493
|
+
});
|
|
494
|
+
const gatewayToken = gatewayAuth.mode === "token" && typeof gatewayAuth.token === "string" && gatewayAuth.token.trim() ? gatewayAuth.token.trim() : null;
|
|
495
|
+
if (token && gatewayToken && token === gatewayToken) findings.push({
|
|
496
|
+
checkId: "hooks.token_reuse_gateway_token",
|
|
497
|
+
severity: "warn",
|
|
498
|
+
title: "Hooks token reuses the Gateway token",
|
|
499
|
+
detail: "hooks.token matches gateway.auth token; compromise of hooks expands blast radius to the Gateway API.",
|
|
500
|
+
remediation: "Use a separate hooks.token dedicated to hook ingress."
|
|
501
|
+
});
|
|
502
|
+
if ((typeof cfg.hooks?.path === "string" ? cfg.hooks.path.trim() : "") === "/") findings.push({
|
|
503
|
+
checkId: "hooks.path_root",
|
|
504
|
+
severity: "critical",
|
|
505
|
+
title: "Hooks base path is '/'",
|
|
506
|
+
detail: "hooks.path='/' would shadow other HTTP endpoints and is unsafe.",
|
|
507
|
+
remediation: "Use a dedicated path like '/hooks'."
|
|
508
|
+
});
|
|
509
|
+
return findings;
|
|
510
|
+
}
|
|
511
|
+
function addModel(models, raw, source) {
|
|
512
|
+
if (typeof raw !== "string") return;
|
|
513
|
+
const id = raw.trim();
|
|
514
|
+
if (!id) return;
|
|
515
|
+
models.push({
|
|
516
|
+
id,
|
|
517
|
+
source
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
function collectModels(cfg) {
|
|
521
|
+
const out = [];
|
|
522
|
+
addModel(out, cfg.agents?.defaults?.model?.primary, "agents.defaults.model.primary");
|
|
523
|
+
for (const f of cfg.agents?.defaults?.model?.fallbacks ?? []) addModel(out, f, "agents.defaults.model.fallbacks");
|
|
524
|
+
addModel(out, cfg.agents?.defaults?.imageModel?.primary, "agents.defaults.imageModel.primary");
|
|
525
|
+
for (const f of cfg.agents?.defaults?.imageModel?.fallbacks ?? []) addModel(out, f, "agents.defaults.imageModel.fallbacks");
|
|
526
|
+
const list = Array.isArray(cfg.agents?.list) ? cfg.agents?.list : [];
|
|
527
|
+
for (const agent of list ?? []) {
|
|
528
|
+
if (!agent || typeof agent !== "object") continue;
|
|
529
|
+
const id = typeof agent.id === "string" ? agent.id : "";
|
|
530
|
+
const model = agent.model;
|
|
531
|
+
if (typeof model === "string") addModel(out, model, `agents.list.${id}.model`);
|
|
532
|
+
else if (model && typeof model === "object") {
|
|
533
|
+
addModel(out, model.primary, `agents.list.${id}.model.primary`);
|
|
534
|
+
const fallbacks = model.fallbacks;
|
|
535
|
+
if (Array.isArray(fallbacks)) for (const f of fallbacks) addModel(out, f, `agents.list.${id}.model.fallbacks`);
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
return out;
|
|
539
|
+
}
|
|
540
|
+
const LEGACY_MODEL_PATTERNS = [
|
|
541
|
+
{
|
|
542
|
+
id: "openai.gpt35",
|
|
543
|
+
re: /\bgpt-3\.5\b/i,
|
|
544
|
+
label: "GPT-3.5 family"
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
id: "anthropic.claude2",
|
|
548
|
+
re: /\bclaude-(instant|2)\b/i,
|
|
549
|
+
label: "Claude 2/Instant family"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
id: "openai.gpt4_legacy",
|
|
553
|
+
re: /\bgpt-4-(0314|0613)\b/i,
|
|
554
|
+
label: "Legacy GPT-4 snapshots"
|
|
555
|
+
}
|
|
556
|
+
];
|
|
557
|
+
const WEAK_TIER_MODEL_PATTERNS = [{
|
|
558
|
+
id: "anthropic.haiku",
|
|
559
|
+
re: /\bhaiku\b/i,
|
|
560
|
+
label: "Haiku tier (smaller model)"
|
|
561
|
+
}];
|
|
562
|
+
function inferParamBFromIdOrName(text) {
|
|
563
|
+
const matches = text.toLowerCase().matchAll(/(?:^|[^a-z0-9])[a-z]?(\d+(?:\.\d+)?)b(?:[^a-z0-9]|$)/g);
|
|
564
|
+
let best = null;
|
|
565
|
+
for (const match of matches) {
|
|
566
|
+
const numRaw = match[1];
|
|
567
|
+
if (!numRaw) continue;
|
|
568
|
+
const value = Number(numRaw);
|
|
569
|
+
if (!Number.isFinite(value) || value <= 0) continue;
|
|
570
|
+
if (best === null || value > best) best = value;
|
|
571
|
+
}
|
|
572
|
+
return best;
|
|
573
|
+
}
|
|
574
|
+
function isGptModel(id) {
|
|
575
|
+
return /\bgpt-/i.test(id);
|
|
576
|
+
}
|
|
577
|
+
function isGpt5OrHigher(id) {
|
|
578
|
+
return /\bgpt-5(?:\b|[.-])/i.test(id);
|
|
579
|
+
}
|
|
580
|
+
function isClaudeModel(id) {
|
|
581
|
+
return /\bclaude-/i.test(id);
|
|
582
|
+
}
|
|
583
|
+
function isClaude45OrHigher(id) {
|
|
584
|
+
return /\bclaude-[^\s/]*?(?:-4-?(?:[5-9]|[1-9]\d)\b|4\.(?:[5-9]|[1-9]\d)\b|-[5-9](?:\b|[.-]))/i.test(id);
|
|
585
|
+
}
|
|
586
|
+
function collectModelHygieneFindings(cfg) {
|
|
587
|
+
const findings = [];
|
|
588
|
+
const models = collectModels(cfg);
|
|
589
|
+
if (models.length === 0) return findings;
|
|
590
|
+
const weakMatches = /* @__PURE__ */ new Map();
|
|
591
|
+
const addWeakMatch = (model, source, reason) => {
|
|
592
|
+
const key = `${model}@@${source}`;
|
|
593
|
+
const existing = weakMatches.get(key);
|
|
594
|
+
if (!existing) {
|
|
595
|
+
weakMatches.set(key, {
|
|
596
|
+
model,
|
|
597
|
+
source,
|
|
598
|
+
reasons: [reason]
|
|
599
|
+
});
|
|
600
|
+
return;
|
|
601
|
+
}
|
|
602
|
+
if (!existing.reasons.includes(reason)) existing.reasons.push(reason);
|
|
603
|
+
};
|
|
604
|
+
for (const entry of models) {
|
|
605
|
+
for (const pat of WEAK_TIER_MODEL_PATTERNS) if (pat.re.test(entry.id)) {
|
|
606
|
+
addWeakMatch(entry.id, entry.source, pat.label);
|
|
607
|
+
break;
|
|
608
|
+
}
|
|
609
|
+
if (isGptModel(entry.id) && !isGpt5OrHigher(entry.id)) addWeakMatch(entry.id, entry.source, "Below GPT-5 family");
|
|
610
|
+
if (isClaudeModel(entry.id) && !isClaude45OrHigher(entry.id)) addWeakMatch(entry.id, entry.source, "Below Claude 4.5");
|
|
611
|
+
}
|
|
612
|
+
const matches = [];
|
|
613
|
+
for (const entry of models) for (const pat of LEGACY_MODEL_PATTERNS) if (pat.re.test(entry.id)) {
|
|
614
|
+
matches.push({
|
|
615
|
+
model: entry.id,
|
|
616
|
+
source: entry.source,
|
|
617
|
+
reason: pat.label
|
|
618
|
+
});
|
|
619
|
+
break;
|
|
620
|
+
}
|
|
621
|
+
if (matches.length > 0) {
|
|
622
|
+
const lines = matches.slice(0, 12).map((m) => `- ${m.model} (${m.reason}) @ ${m.source}`).join("\n");
|
|
623
|
+
const more = matches.length > 12 ? `\n…${matches.length - 12} more` : "";
|
|
624
|
+
findings.push({
|
|
625
|
+
checkId: "models.legacy",
|
|
626
|
+
severity: "warn",
|
|
627
|
+
title: "Some configured models look legacy",
|
|
628
|
+
detail: "Older/legacy models can be less robust against prompt injection and tool misuse.\n" + lines + more,
|
|
629
|
+
remediation: "Prefer modern, instruction-hardened models for any bot that can run tools."
|
|
630
|
+
});
|
|
631
|
+
}
|
|
632
|
+
if (weakMatches.size > 0) {
|
|
633
|
+
const lines = Array.from(weakMatches.values()).slice(0, 12).map((m) => `- ${m.model} (${m.reasons.join("; ")}) @ ${m.source}`).join("\n");
|
|
634
|
+
const more = weakMatches.size > 12 ? `\n…${weakMatches.size - 12} more` : "";
|
|
635
|
+
findings.push({
|
|
636
|
+
checkId: "models.weak_tier",
|
|
637
|
+
severity: "warn",
|
|
638
|
+
title: "Some configured models are below recommended tiers",
|
|
639
|
+
detail: "Smaller/older models are generally more susceptible to prompt injection and tool misuse.\n" + lines + more,
|
|
640
|
+
remediation: "Use the latest, top-tier model for any bot with tools or untrusted inboxes. Avoid Haiku tiers; prefer GPT-5+ and Claude 4.5+."
|
|
641
|
+
});
|
|
642
|
+
}
|
|
643
|
+
return findings;
|
|
644
|
+
}
|
|
645
|
+
function extractAgentIdFromSource(source) {
|
|
646
|
+
return source.match(/^agents\.list\.([^.]*)\./)?.[1] ?? null;
|
|
647
|
+
}
|
|
648
|
+
function pickToolPolicy(config) {
|
|
649
|
+
if (!config) return null;
|
|
650
|
+
const allow = Array.isArray(config.allow) ? config.allow : void 0;
|
|
651
|
+
const deny = Array.isArray(config.deny) ? config.deny : void 0;
|
|
652
|
+
if (!allow && !deny) return null;
|
|
653
|
+
return {
|
|
654
|
+
allow,
|
|
655
|
+
deny
|
|
656
|
+
};
|
|
657
|
+
}
|
|
658
|
+
function resolveToolPolicies(params) {
|
|
659
|
+
const policies = [];
|
|
660
|
+
const profilePolicy = resolveToolProfilePolicy(params.agentTools?.profile ?? params.cfg.tools?.profile);
|
|
661
|
+
if (profilePolicy) policies.push(profilePolicy);
|
|
662
|
+
const globalPolicy = pickToolPolicy(params.cfg.tools ?? void 0);
|
|
663
|
+
if (globalPolicy) policies.push(globalPolicy);
|
|
664
|
+
const agentPolicy = pickToolPolicy(params.agentTools);
|
|
665
|
+
if (agentPolicy) policies.push(agentPolicy);
|
|
666
|
+
if (params.sandboxMode === "all") {
|
|
667
|
+
const sandboxPolicy = resolveSandboxToolPolicyForAgent(params.cfg, params.agentId ?? void 0);
|
|
668
|
+
policies.push(sandboxPolicy);
|
|
669
|
+
}
|
|
670
|
+
return policies;
|
|
671
|
+
}
|
|
672
|
+
function hasWebSearchKey(cfg, env) {
|
|
673
|
+
const search = cfg.tools?.web?.search;
|
|
674
|
+
return Boolean(search?.apiKey || search?.perplexity?.apiKey || env.BRAVE_API_KEY || env.PERPLEXITY_API_KEY || env.OPENROUTER_API_KEY);
|
|
675
|
+
}
|
|
676
|
+
function isWebSearchEnabled(cfg, env) {
|
|
677
|
+
const enabled = cfg.tools?.web?.search?.enabled;
|
|
678
|
+
if (enabled === false) return false;
|
|
679
|
+
if (enabled === true) return true;
|
|
680
|
+
return hasWebSearchKey(cfg, env);
|
|
681
|
+
}
|
|
682
|
+
function isWebFetchEnabled(cfg) {
|
|
683
|
+
if (cfg.tools?.web?.fetch?.enabled === false) return false;
|
|
684
|
+
return true;
|
|
685
|
+
}
|
|
686
|
+
function isBrowserEnabled(cfg) {
|
|
687
|
+
try {
|
|
688
|
+
return resolveBrowserConfig(cfg.browser, cfg).enabled;
|
|
689
|
+
} catch {
|
|
690
|
+
return true;
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
function collectSmallModelRiskFindings(params) {
|
|
694
|
+
const findings = [];
|
|
695
|
+
const models = collectModels(params.cfg).filter((entry) => !entry.source.includes("imageModel"));
|
|
696
|
+
if (models.length === 0) return findings;
|
|
697
|
+
const smallModels = models.map((entry) => {
|
|
698
|
+
const paramB = inferParamBFromIdOrName(entry.id);
|
|
699
|
+
if (!paramB || paramB > SMALL_MODEL_PARAM_B_MAX) return null;
|
|
700
|
+
return {
|
|
701
|
+
...entry,
|
|
702
|
+
paramB
|
|
703
|
+
};
|
|
704
|
+
}).filter((entry) => Boolean(entry));
|
|
705
|
+
if (smallModels.length === 0) return findings;
|
|
706
|
+
let hasUnsafe = false;
|
|
707
|
+
const modelLines = [];
|
|
708
|
+
const exposureSet = /* @__PURE__ */ new Set();
|
|
709
|
+
for (const entry of smallModels) {
|
|
710
|
+
const agentId = extractAgentIdFromSource(entry.source);
|
|
711
|
+
const sandboxMode = resolveSandboxConfigForAgent(params.cfg, agentId ?? void 0).mode;
|
|
712
|
+
const agentTools = agentId && params.cfg.agents?.list ? params.cfg.agents.list.find((agent) => agent?.id === agentId)?.tools : void 0;
|
|
713
|
+
const policies = resolveToolPolicies({
|
|
714
|
+
cfg: params.cfg,
|
|
715
|
+
agentTools,
|
|
716
|
+
sandboxMode,
|
|
717
|
+
agentId
|
|
718
|
+
});
|
|
719
|
+
const exposed = [];
|
|
720
|
+
if (isWebSearchEnabled(params.cfg, params.env)) {
|
|
721
|
+
if (isToolAllowedByPolicies("web_search", policies)) exposed.push("web_search");
|
|
722
|
+
}
|
|
723
|
+
if (isWebFetchEnabled(params.cfg)) {
|
|
724
|
+
if (isToolAllowedByPolicies("web_fetch", policies)) exposed.push("web_fetch");
|
|
725
|
+
}
|
|
726
|
+
if (isBrowserEnabled(params.cfg)) {
|
|
727
|
+
if (isToolAllowedByPolicies("browser", policies)) exposed.push("browser");
|
|
728
|
+
}
|
|
729
|
+
for (const tool of exposed) exposureSet.add(tool);
|
|
730
|
+
const sandboxLabel = sandboxMode === "all" ? "sandbox=all" : `sandbox=${sandboxMode}`;
|
|
731
|
+
const exposureLabel = exposed.length > 0 ? ` web=[${exposed.join(", ")}]` : " web=[off]";
|
|
732
|
+
const safe = sandboxMode === "all" && exposed.length === 0;
|
|
733
|
+
if (!safe) hasUnsafe = true;
|
|
734
|
+
const statusLabel = safe ? "ok" : "unsafe";
|
|
735
|
+
modelLines.push(`- ${entry.id} (${entry.paramB}B) @ ${entry.source} (${statusLabel}; ${sandboxLabel};${exposureLabel})`);
|
|
736
|
+
}
|
|
737
|
+
const exposureList = Array.from(exposureSet);
|
|
738
|
+
const exposureDetail = exposureList.length > 0 ? `Uncontrolled input tools allowed: ${exposureList.join(", ")}.` : "No web/browser tools detected for these models.";
|
|
739
|
+
findings.push({
|
|
740
|
+
checkId: "models.small_params",
|
|
741
|
+
severity: hasUnsafe ? "critical" : "info",
|
|
742
|
+
title: "Small models require sandboxing and web tools disabled",
|
|
743
|
+
detail: `Small models (<=${SMALL_MODEL_PARAM_B_MAX}B params) detected:\n` + modelLines.join("\n") + `\n` + exposureDetail + "\nSmall models are not recommended for untrusted inputs.",
|
|
744
|
+
remediation: "If you must use small models, enable sandboxing for all sessions (agents.defaults.sandbox.mode=\"all\") and disable web_search/web_fetch/browser (tools.deny=[\"group:web\",\"browser\"])."
|
|
745
|
+
});
|
|
746
|
+
return findings;
|
|
747
|
+
}
|
|
748
|
+
async function collectPluginsTrustFindings(params) {
|
|
749
|
+
const findings = [];
|
|
750
|
+
const extensionsDir = path.join(params.stateDir, "extensions");
|
|
751
|
+
const st = await safeStat(extensionsDir);
|
|
752
|
+
if (!st.ok || !st.isDir) return findings;
|
|
753
|
+
const pluginDirs = (await fs.readdir(extensionsDir, { withFileTypes: true }).catch(() => [])).filter((e) => e.isDirectory()).map((e) => e.name).filter(Boolean);
|
|
754
|
+
if (pluginDirs.length === 0) return findings;
|
|
755
|
+
const allow = params.cfg.plugins?.allow;
|
|
756
|
+
if (!(Array.isArray(allow) && allow.length > 0)) {
|
|
757
|
+
const hasString = (value) => typeof value === "string" && value.trim().length > 0;
|
|
758
|
+
const hasAccountStringKey = (account, key) => Boolean(account && typeof account === "object" && hasString(account[key]));
|
|
759
|
+
const discordConfigured = hasString(params.cfg.channels?.discord?.token) || Boolean(params.cfg.channels?.discord?.accounts && Object.values(params.cfg.channels.discord.accounts).some((a) => hasAccountStringKey(a, "token"))) || hasString(process.env.DISCORD_BOT_TOKEN);
|
|
760
|
+
const telegramConfigured = hasString(params.cfg.channels?.telegram?.botToken) || hasString(params.cfg.channels?.telegram?.tokenFile) || Boolean(params.cfg.channels?.telegram?.accounts && Object.values(params.cfg.channels.telegram.accounts).some((a) => hasAccountStringKey(a, "botToken") || hasAccountStringKey(a, "tokenFile"))) || hasString(process.env.TELEGRAM_BOT_TOKEN);
|
|
761
|
+
const slackConfigured = hasString(params.cfg.channels?.slack?.botToken) || hasString(params.cfg.channels?.slack?.appToken) || Boolean(params.cfg.channels?.slack?.accounts && Object.values(params.cfg.channels.slack.accounts).some((a) => hasAccountStringKey(a, "botToken") || hasAccountStringKey(a, "appToken"))) || hasString(process.env.SLACK_BOT_TOKEN) || hasString(process.env.SLACK_APP_TOKEN);
|
|
762
|
+
const skillCommandsLikelyExposed = discordConfigured && resolveNativeSkillsEnabled({
|
|
763
|
+
providerId: "discord",
|
|
764
|
+
providerSetting: params.cfg.channels?.discord?.commands?.nativeSkills,
|
|
765
|
+
globalSetting: params.cfg.commands?.nativeSkills
|
|
766
|
+
}) || telegramConfigured && resolveNativeSkillsEnabled({
|
|
767
|
+
providerId: "telegram",
|
|
768
|
+
providerSetting: params.cfg.channels?.telegram?.commands?.nativeSkills,
|
|
769
|
+
globalSetting: params.cfg.commands?.nativeSkills
|
|
770
|
+
}) || slackConfigured && resolveNativeSkillsEnabled({
|
|
771
|
+
providerId: "slack",
|
|
772
|
+
providerSetting: params.cfg.channels?.slack?.commands?.nativeSkills,
|
|
773
|
+
globalSetting: params.cfg.commands?.nativeSkills
|
|
774
|
+
});
|
|
775
|
+
findings.push({
|
|
776
|
+
checkId: "plugins.extensions_no_allowlist",
|
|
777
|
+
severity: skillCommandsLikelyExposed ? "critical" : "warn",
|
|
778
|
+
title: "Extensions exist but plugins.allow is not set",
|
|
779
|
+
detail: `Found ${pluginDirs.length} extension(s) under ${extensionsDir}. Without plugins.allow, any discovered plugin id may load (depending on config and plugin behavior).` + (skillCommandsLikelyExposed ? "\nNative skill commands are enabled on at least one configured chat surface; treat unpinned/unallowlisted extensions as high risk." : ""),
|
|
780
|
+
remediation: "Set plugins.allow to an explicit list of plugin ids you trust."
|
|
781
|
+
});
|
|
782
|
+
}
|
|
783
|
+
return findings;
|
|
784
|
+
}
|
|
785
|
+
function resolveIncludePath(baseConfigPath, includePath) {
|
|
786
|
+
return path.normalize(path.isAbsolute(includePath) ? includePath : path.resolve(path.dirname(baseConfigPath), includePath));
|
|
787
|
+
}
|
|
788
|
+
function listDirectIncludes(parsed) {
|
|
789
|
+
const out = [];
|
|
790
|
+
const visit = (value) => {
|
|
791
|
+
if (!value) return;
|
|
792
|
+
if (Array.isArray(value)) {
|
|
793
|
+
for (const item of value) visit(item);
|
|
794
|
+
return;
|
|
795
|
+
}
|
|
796
|
+
if (typeof value !== "object") return;
|
|
797
|
+
const rec = value;
|
|
798
|
+
const includeVal = rec[INCLUDE_KEY];
|
|
799
|
+
if (typeof includeVal === "string") out.push(includeVal);
|
|
800
|
+
else if (Array.isArray(includeVal)) {
|
|
801
|
+
for (const item of includeVal) if (typeof item === "string") out.push(item);
|
|
802
|
+
}
|
|
803
|
+
for (const v of Object.values(rec)) visit(v);
|
|
804
|
+
};
|
|
805
|
+
visit(parsed);
|
|
806
|
+
return out;
|
|
807
|
+
}
|
|
808
|
+
async function collectIncludePathsRecursive(params) {
|
|
809
|
+
const visited = /* @__PURE__ */ new Set();
|
|
810
|
+
const result = [];
|
|
811
|
+
const walk = async (basePath, parsed, depth) => {
|
|
812
|
+
if (depth > MAX_INCLUDE_DEPTH) return;
|
|
813
|
+
for (const raw of listDirectIncludes(parsed)) {
|
|
814
|
+
const resolved = resolveIncludePath(basePath, raw);
|
|
815
|
+
if (visited.has(resolved)) continue;
|
|
816
|
+
visited.add(resolved);
|
|
817
|
+
result.push(resolved);
|
|
818
|
+
const rawText = await fs.readFile(resolved, "utf-8").catch(() => null);
|
|
819
|
+
if (!rawText) continue;
|
|
820
|
+
const nestedParsed = (() => {
|
|
821
|
+
try {
|
|
822
|
+
return JSON5.parse(rawText);
|
|
823
|
+
} catch {
|
|
824
|
+
return null;
|
|
825
|
+
}
|
|
826
|
+
})();
|
|
827
|
+
if (nestedParsed) await walk(resolved, nestedParsed, depth + 1);
|
|
828
|
+
}
|
|
829
|
+
};
|
|
830
|
+
await walk(params.configPath, params.parsed, 0);
|
|
831
|
+
return result;
|
|
832
|
+
}
|
|
833
|
+
async function collectIncludeFilePermFindings(params) {
|
|
834
|
+
const findings = [];
|
|
835
|
+
if (!params.configSnapshot.exists) return findings;
|
|
836
|
+
const configPath = params.configSnapshot.path;
|
|
837
|
+
const includePaths = await collectIncludePathsRecursive({
|
|
838
|
+
configPath,
|
|
839
|
+
parsed: params.configSnapshot.parsed
|
|
840
|
+
});
|
|
841
|
+
if (includePaths.length === 0) return findings;
|
|
842
|
+
for (const p of includePaths) {
|
|
843
|
+
const perms = await inspectPathPermissions(p, {
|
|
844
|
+
env: params.env,
|
|
845
|
+
platform: params.platform,
|
|
846
|
+
exec: params.execIcacls
|
|
847
|
+
});
|
|
848
|
+
if (!perms.ok) continue;
|
|
849
|
+
if (perms.worldWritable || perms.groupWritable) findings.push({
|
|
850
|
+
checkId: "fs.config_include.perms_writable",
|
|
851
|
+
severity: "critical",
|
|
852
|
+
title: "Config include file is writable by others",
|
|
853
|
+
detail: `${formatPermissionDetail(p, perms)}; another user could influence your effective config.`,
|
|
854
|
+
remediation: formatPermissionRemediation({
|
|
855
|
+
targetPath: p,
|
|
856
|
+
perms,
|
|
857
|
+
isDir: false,
|
|
858
|
+
posixMode: 384,
|
|
859
|
+
env: params.env
|
|
860
|
+
})
|
|
861
|
+
});
|
|
862
|
+
else if (perms.worldReadable) findings.push({
|
|
863
|
+
checkId: "fs.config_include.perms_world_readable",
|
|
864
|
+
severity: "critical",
|
|
865
|
+
title: "Config include file is world-readable",
|
|
866
|
+
detail: `${formatPermissionDetail(p, perms)}; include files can contain tokens and private settings.`,
|
|
867
|
+
remediation: formatPermissionRemediation({
|
|
868
|
+
targetPath: p,
|
|
869
|
+
perms,
|
|
870
|
+
isDir: false,
|
|
871
|
+
posixMode: 384,
|
|
872
|
+
env: params.env
|
|
873
|
+
})
|
|
874
|
+
});
|
|
875
|
+
else if (perms.groupReadable) findings.push({
|
|
876
|
+
checkId: "fs.config_include.perms_group_readable",
|
|
877
|
+
severity: "warn",
|
|
878
|
+
title: "Config include file is group-readable",
|
|
879
|
+
detail: `${formatPermissionDetail(p, perms)}; include files can contain tokens and private settings.`,
|
|
880
|
+
remediation: formatPermissionRemediation({
|
|
881
|
+
targetPath: p,
|
|
882
|
+
perms,
|
|
883
|
+
isDir: false,
|
|
884
|
+
posixMode: 384,
|
|
885
|
+
env: params.env
|
|
886
|
+
})
|
|
887
|
+
});
|
|
888
|
+
}
|
|
889
|
+
return findings;
|
|
890
|
+
}
|
|
891
|
+
async function collectStateDeepFilesystemFindings(params) {
|
|
892
|
+
const findings = [];
|
|
893
|
+
const oauthDir = resolveOAuthDir(params.env, params.stateDir);
|
|
894
|
+
const oauthPerms = await inspectPathPermissions(oauthDir, {
|
|
895
|
+
env: params.env,
|
|
896
|
+
platform: params.platform,
|
|
897
|
+
exec: params.execIcacls
|
|
898
|
+
});
|
|
899
|
+
if (oauthPerms.ok && oauthPerms.isDir) {
|
|
900
|
+
if (oauthPerms.worldWritable || oauthPerms.groupWritable) findings.push({
|
|
901
|
+
checkId: "fs.credentials_dir.perms_writable",
|
|
902
|
+
severity: "critical",
|
|
903
|
+
title: "Credentials dir is writable by others",
|
|
904
|
+
detail: `${formatPermissionDetail(oauthDir, oauthPerms)}; another user could drop/modify credential files.`,
|
|
905
|
+
remediation: formatPermissionRemediation({
|
|
906
|
+
targetPath: oauthDir,
|
|
907
|
+
perms: oauthPerms,
|
|
908
|
+
isDir: true,
|
|
909
|
+
posixMode: 448,
|
|
910
|
+
env: params.env
|
|
911
|
+
})
|
|
912
|
+
});
|
|
913
|
+
else if (oauthPerms.groupReadable || oauthPerms.worldReadable) findings.push({
|
|
914
|
+
checkId: "fs.credentials_dir.perms_readable",
|
|
915
|
+
severity: "warn",
|
|
916
|
+
title: "Credentials dir is readable by others",
|
|
917
|
+
detail: `${formatPermissionDetail(oauthDir, oauthPerms)}; credentials and allowlists can be sensitive.`,
|
|
918
|
+
remediation: formatPermissionRemediation({
|
|
919
|
+
targetPath: oauthDir,
|
|
920
|
+
perms: oauthPerms,
|
|
921
|
+
isDir: true,
|
|
922
|
+
posixMode: 448,
|
|
923
|
+
env: params.env
|
|
924
|
+
})
|
|
925
|
+
});
|
|
926
|
+
}
|
|
927
|
+
const agentIds = Array.isArray(params.cfg.agents?.list) ? params.cfg.agents?.list.map((a) => a && typeof a === "object" && typeof a.id === "string" ? a.id.trim() : "").filter(Boolean) : [];
|
|
928
|
+
const defaultAgentId = resolveDefaultAgentId(params.cfg);
|
|
929
|
+
const ids = Array.from(new Set([defaultAgentId, ...agentIds])).map((id) => normalizeAgentId(id));
|
|
930
|
+
for (const agentId of ids) {
|
|
931
|
+
const agentDir = path.join(params.stateDir, "agents", agentId, "agent");
|
|
932
|
+
const authPath = path.join(agentDir, "auth-profiles.json");
|
|
933
|
+
const authPerms = await inspectPathPermissions(authPath, {
|
|
934
|
+
env: params.env,
|
|
935
|
+
platform: params.platform,
|
|
936
|
+
exec: params.execIcacls
|
|
937
|
+
});
|
|
938
|
+
if (authPerms.ok) {
|
|
939
|
+
if (authPerms.worldWritable || authPerms.groupWritable) findings.push({
|
|
940
|
+
checkId: "fs.auth_profiles.perms_writable",
|
|
941
|
+
severity: "critical",
|
|
942
|
+
title: "auth-profiles.json is writable by others",
|
|
943
|
+
detail: `${formatPermissionDetail(authPath, authPerms)}; another user could inject credentials.`,
|
|
944
|
+
remediation: formatPermissionRemediation({
|
|
945
|
+
targetPath: authPath,
|
|
946
|
+
perms: authPerms,
|
|
947
|
+
isDir: false,
|
|
948
|
+
posixMode: 384,
|
|
949
|
+
env: params.env
|
|
950
|
+
})
|
|
951
|
+
});
|
|
952
|
+
else if (authPerms.worldReadable || authPerms.groupReadable) findings.push({
|
|
953
|
+
checkId: "fs.auth_profiles.perms_readable",
|
|
954
|
+
severity: "warn",
|
|
955
|
+
title: "auth-profiles.json is readable by others",
|
|
956
|
+
detail: `${formatPermissionDetail(authPath, authPerms)}; auth-profiles.json contains API keys and OAuth tokens.`,
|
|
957
|
+
remediation: formatPermissionRemediation({
|
|
958
|
+
targetPath: authPath,
|
|
959
|
+
perms: authPerms,
|
|
960
|
+
isDir: false,
|
|
961
|
+
posixMode: 384,
|
|
962
|
+
env: params.env
|
|
963
|
+
})
|
|
964
|
+
});
|
|
965
|
+
}
|
|
966
|
+
const storePath = path.join(params.stateDir, "agents", agentId, "sessions", "sessions.json");
|
|
967
|
+
const storePerms = await inspectPathPermissions(storePath, {
|
|
968
|
+
env: params.env,
|
|
969
|
+
platform: params.platform,
|
|
970
|
+
exec: params.execIcacls
|
|
971
|
+
});
|
|
972
|
+
if (storePerms.ok) {
|
|
973
|
+
if (storePerms.worldReadable || storePerms.groupReadable) findings.push({
|
|
974
|
+
checkId: "fs.sessions_store.perms_readable",
|
|
975
|
+
severity: "warn",
|
|
976
|
+
title: "sessions.json is readable by others",
|
|
977
|
+
detail: `${formatPermissionDetail(storePath, storePerms)}; routing and transcript metadata can be sensitive.`,
|
|
978
|
+
remediation: formatPermissionRemediation({
|
|
979
|
+
targetPath: storePath,
|
|
980
|
+
perms: storePerms,
|
|
981
|
+
isDir: false,
|
|
982
|
+
posixMode: 384,
|
|
983
|
+
env: params.env
|
|
984
|
+
})
|
|
985
|
+
});
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
const logFile = typeof params.cfg.logging?.file === "string" ? params.cfg.logging.file.trim() : "";
|
|
989
|
+
if (logFile) {
|
|
990
|
+
const expanded = logFile.startsWith("~") ? expandTilde(logFile, params.env) : logFile;
|
|
991
|
+
if (expanded) {
|
|
992
|
+
const logPath = path.resolve(expanded);
|
|
993
|
+
const logPerms = await inspectPathPermissions(logPath, {
|
|
994
|
+
env: params.env,
|
|
995
|
+
platform: params.platform,
|
|
996
|
+
exec: params.execIcacls
|
|
997
|
+
});
|
|
998
|
+
if (logPerms.ok) {
|
|
999
|
+
if (logPerms.worldReadable || logPerms.groupReadable) findings.push({
|
|
1000
|
+
checkId: "fs.log_file.perms_readable",
|
|
1001
|
+
severity: "warn",
|
|
1002
|
+
title: "Log file is readable by others",
|
|
1003
|
+
detail: `${formatPermissionDetail(logPath, logPerms)}; logs can contain private messages and tool output.`,
|
|
1004
|
+
remediation: formatPermissionRemediation({
|
|
1005
|
+
targetPath: logPath,
|
|
1006
|
+
perms: logPerms,
|
|
1007
|
+
isDir: false,
|
|
1008
|
+
posixMode: 384,
|
|
1009
|
+
env: params.env
|
|
1010
|
+
})
|
|
1011
|
+
});
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
return findings;
|
|
1016
|
+
}
|
|
1017
|
+
function listGroupPolicyOpen(cfg) {
|
|
1018
|
+
const out = [];
|
|
1019
|
+
const channels = cfg.channels;
|
|
1020
|
+
if (!channels || typeof channels !== "object") return out;
|
|
1021
|
+
for (const [channelId, value] of Object.entries(channels)) {
|
|
1022
|
+
if (!value || typeof value !== "object") continue;
|
|
1023
|
+
const section = value;
|
|
1024
|
+
if (section.groupPolicy === "open") out.push(`channels.${channelId}.groupPolicy`);
|
|
1025
|
+
const accounts = section.accounts;
|
|
1026
|
+
if (accounts && typeof accounts === "object") for (const [accountId, accountVal] of Object.entries(accounts)) {
|
|
1027
|
+
if (!accountVal || typeof accountVal !== "object") continue;
|
|
1028
|
+
if (accountVal.groupPolicy === "open") out.push(`channels.${channelId}.accounts.${accountId}.groupPolicy`);
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
return out;
|
|
1032
|
+
}
|
|
1033
|
+
function collectExposureMatrixFindings(cfg) {
|
|
1034
|
+
const findings = [];
|
|
1035
|
+
const openGroups = listGroupPolicyOpen(cfg);
|
|
1036
|
+
if (openGroups.length === 0) return findings;
|
|
1037
|
+
if (cfg.tools?.elevated?.enabled !== false) findings.push({
|
|
1038
|
+
checkId: "security.exposure.open_groups_with_elevated",
|
|
1039
|
+
severity: "critical",
|
|
1040
|
+
title: "Open groupPolicy with elevated tools enabled",
|
|
1041
|
+
detail: `Found groupPolicy="open" at:\n${openGroups.map((p) => `- ${p}`).join("\n")}\nWith tools.elevated enabled, a prompt injection in those rooms can become a high-impact incident.`,
|
|
1042
|
+
remediation: `Set groupPolicy="allowlist" and keep elevated allowlists extremely tight.`
|
|
1043
|
+
});
|
|
1044
|
+
return findings;
|
|
1045
|
+
}
|
|
1046
|
+
async function readConfigSnapshotForAudit(params) {
|
|
1047
|
+
return await createConfigIO({
|
|
1048
|
+
env: params.env,
|
|
1049
|
+
configPath: params.configPath
|
|
1050
|
+
}).readConfigFileSnapshot();
|
|
1051
|
+
}
|
|
1052
|
+
function isPathInside(basePath, candidatePath) {
|
|
1053
|
+
const base = path.resolve(basePath);
|
|
1054
|
+
const candidate = path.resolve(candidatePath);
|
|
1055
|
+
const rel = path.relative(base, candidate);
|
|
1056
|
+
return rel === "" || !rel.startsWith(`..${path.sep}`) && rel !== ".." && !path.isAbsolute(rel);
|
|
1057
|
+
}
|
|
1058
|
+
function extensionUsesSkippedScannerPath(entry) {
|
|
1059
|
+
return entry.split(/[\\/]+/).filter(Boolean).some((segment) => segment === "node_modules" || segment.startsWith(".") && segment !== "." && segment !== "..");
|
|
1060
|
+
}
|
|
1061
|
+
async function readPluginManifestExtensions(pluginPath) {
|
|
1062
|
+
const manifestPath = path.join(pluginPath, "package.json");
|
|
1063
|
+
const raw = await fs.readFile(manifestPath, "utf-8").catch(() => "");
|
|
1064
|
+
if (!raw.trim()) return [];
|
|
1065
|
+
const extensions = JSON.parse(raw)?.[MANIFEST_KEY]?.extensions;
|
|
1066
|
+
if (!Array.isArray(extensions)) return [];
|
|
1067
|
+
return extensions.map((entry) => typeof entry === "string" ? entry.trim() : "").filter(Boolean);
|
|
1068
|
+
}
|
|
1069
|
+
function listWorkspaceDirs(cfg) {
|
|
1070
|
+
const dirs = /* @__PURE__ */ new Set();
|
|
1071
|
+
const list = cfg.agents?.list;
|
|
1072
|
+
if (Array.isArray(list)) {
|
|
1073
|
+
for (const entry of list) if (entry && typeof entry === "object" && typeof entry.id === "string") dirs.add(resolveAgentWorkspaceDir(cfg, entry.id));
|
|
1074
|
+
}
|
|
1075
|
+
dirs.add(resolveAgentWorkspaceDir(cfg, resolveDefaultAgentId(cfg)));
|
|
1076
|
+
return [...dirs];
|
|
1077
|
+
}
|
|
1078
|
+
function formatCodeSafetyDetails(findings, rootDir) {
|
|
1079
|
+
return findings.map((finding) => {
|
|
1080
|
+
const relPath = path.relative(rootDir, finding.file);
|
|
1081
|
+
const normalizedPath = (relPath && relPath !== "." && !relPath.startsWith("..") ? relPath : path.basename(finding.file)).replaceAll("\\", "/");
|
|
1082
|
+
return ` - [${finding.ruleId}] ${finding.message} (${normalizedPath}:${finding.line})`;
|
|
1083
|
+
}).join("\n");
|
|
1084
|
+
}
|
|
1085
|
+
async function collectPluginsCodeSafetyFindings(params) {
|
|
1086
|
+
const findings = [];
|
|
1087
|
+
const extensionsDir = path.join(params.stateDir, "extensions");
|
|
1088
|
+
const st = await safeStat(extensionsDir);
|
|
1089
|
+
if (!st.ok || !st.isDir) return findings;
|
|
1090
|
+
const pluginDirs = (await fs.readdir(extensionsDir, { withFileTypes: true }).catch((err) => {
|
|
1091
|
+
findings.push({
|
|
1092
|
+
checkId: "plugins.code_safety.scan_failed",
|
|
1093
|
+
severity: "warn",
|
|
1094
|
+
title: "Plugin extensions directory scan failed",
|
|
1095
|
+
detail: `Static code scan could not list extensions directory: ${String(err)}`,
|
|
1096
|
+
remediation: "Check file permissions and plugin layout, then rerun `openclaw security audit --deep`."
|
|
1097
|
+
});
|
|
1098
|
+
return [];
|
|
1099
|
+
})).filter((e) => e.isDirectory()).map((e) => e.name);
|
|
1100
|
+
for (const pluginName of pluginDirs) {
|
|
1101
|
+
const pluginPath = path.join(extensionsDir, pluginName);
|
|
1102
|
+
const extensionEntries = await readPluginManifestExtensions(pluginPath).catch(() => []);
|
|
1103
|
+
const forcedScanEntries = [];
|
|
1104
|
+
const escapedEntries = [];
|
|
1105
|
+
for (const entry of extensionEntries) {
|
|
1106
|
+
const resolvedEntry = path.resolve(pluginPath, entry);
|
|
1107
|
+
if (!isPathInside(pluginPath, resolvedEntry)) {
|
|
1108
|
+
escapedEntries.push(entry);
|
|
1109
|
+
continue;
|
|
1110
|
+
}
|
|
1111
|
+
if (extensionUsesSkippedScannerPath(entry)) findings.push({
|
|
1112
|
+
checkId: "plugins.code_safety.entry_path",
|
|
1113
|
+
severity: "warn",
|
|
1114
|
+
title: `Plugin "${pluginName}" entry path is hidden or node_modules`,
|
|
1115
|
+
detail: `Extension entry "${entry}" points to a hidden or node_modules path. Deep code scan will cover this entry explicitly, but review this path choice carefully.`,
|
|
1116
|
+
remediation: "Prefer extension entrypoints under normal source paths like dist/ or src/."
|
|
1117
|
+
});
|
|
1118
|
+
forcedScanEntries.push(resolvedEntry);
|
|
1119
|
+
}
|
|
1120
|
+
if (escapedEntries.length > 0) findings.push({
|
|
1121
|
+
checkId: "plugins.code_safety.entry_escape",
|
|
1122
|
+
severity: "critical",
|
|
1123
|
+
title: `Plugin "${pluginName}" has extension entry path traversal`,
|
|
1124
|
+
detail: `Found extension entries that escape the plugin directory:\n${escapedEntries.map((entry) => ` - ${entry}`).join("\n")}`,
|
|
1125
|
+
remediation: "Update the plugin manifest so all openclaw.extensions entries stay inside the plugin directory."
|
|
1126
|
+
});
|
|
1127
|
+
const summary = await scanDirectoryWithSummary(pluginPath, { includeFiles: forcedScanEntries }).catch((err) => {
|
|
1128
|
+
findings.push({
|
|
1129
|
+
checkId: "plugins.code_safety.scan_failed",
|
|
1130
|
+
severity: "warn",
|
|
1131
|
+
title: `Plugin "${pluginName}" code scan failed`,
|
|
1132
|
+
detail: `Static code scan could not complete: ${String(err)}`,
|
|
1133
|
+
remediation: "Check file permissions and plugin layout, then rerun `openclaw security audit --deep`."
|
|
1134
|
+
});
|
|
1135
|
+
return null;
|
|
1136
|
+
});
|
|
1137
|
+
if (!summary) continue;
|
|
1138
|
+
if (summary.critical > 0) {
|
|
1139
|
+
const details = formatCodeSafetyDetails(summary.findings.filter((f) => f.severity === "critical"), pluginPath);
|
|
1140
|
+
findings.push({
|
|
1141
|
+
checkId: "plugins.code_safety",
|
|
1142
|
+
severity: "critical",
|
|
1143
|
+
title: `Plugin "${pluginName}" contains dangerous code patterns`,
|
|
1144
|
+
detail: `Found ${summary.critical} critical issue(s) in ${summary.scannedFiles} scanned file(s):\n${details}`,
|
|
1145
|
+
remediation: "Review the plugin source code carefully before use. If untrusted, remove the plugin from your OpenClaw extensions state directory."
|
|
1146
|
+
});
|
|
1147
|
+
} else if (summary.warn > 0) {
|
|
1148
|
+
const details = formatCodeSafetyDetails(summary.findings.filter((f) => f.severity === "warn"), pluginPath);
|
|
1149
|
+
findings.push({
|
|
1150
|
+
checkId: "plugins.code_safety",
|
|
1151
|
+
severity: "warn",
|
|
1152
|
+
title: `Plugin "${pluginName}" contains suspicious code patterns`,
|
|
1153
|
+
detail: `Found ${summary.warn} warning(s) in ${summary.scannedFiles} scanned file(s):\n${details}`,
|
|
1154
|
+
remediation: `Review the flagged code to ensure it is intentional and safe.`
|
|
1155
|
+
});
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
return findings;
|
|
1159
|
+
}
|
|
1160
|
+
async function collectInstalledSkillsCodeSafetyFindings(params) {
|
|
1161
|
+
const findings = [];
|
|
1162
|
+
const pluginExtensionsDir = path.join(params.stateDir, "extensions");
|
|
1163
|
+
const scannedSkillDirs = /* @__PURE__ */ new Set();
|
|
1164
|
+
const workspaceDirs = listWorkspaceDirs(params.cfg);
|
|
1165
|
+
for (const workspaceDir of workspaceDirs) {
|
|
1166
|
+
const entries = loadWorkspaceSkillEntries(workspaceDir, { config: params.cfg });
|
|
1167
|
+
for (const entry of entries) {
|
|
1168
|
+
if (entry.skill.source === "openclaw-bundled") continue;
|
|
1169
|
+
const skillDir = path.resolve(entry.skill.baseDir);
|
|
1170
|
+
if (isPathInside(pluginExtensionsDir, skillDir)) continue;
|
|
1171
|
+
if (scannedSkillDirs.has(skillDir)) continue;
|
|
1172
|
+
scannedSkillDirs.add(skillDir);
|
|
1173
|
+
const skillName = entry.skill.name;
|
|
1174
|
+
const summary = await scanDirectoryWithSummary(skillDir).catch((err) => {
|
|
1175
|
+
findings.push({
|
|
1176
|
+
checkId: "skills.code_safety.scan_failed",
|
|
1177
|
+
severity: "warn",
|
|
1178
|
+
title: `Skill "${skillName}" code scan failed`,
|
|
1179
|
+
detail: `Static code scan could not complete for ${skillDir}: ${String(err)}`,
|
|
1180
|
+
remediation: "Check file permissions and skill layout, then rerun `openclaw security audit --deep`."
|
|
1181
|
+
});
|
|
1182
|
+
return null;
|
|
1183
|
+
});
|
|
1184
|
+
if (!summary) continue;
|
|
1185
|
+
if (summary.critical > 0) {
|
|
1186
|
+
const details = formatCodeSafetyDetails(summary.findings.filter((finding) => finding.severity === "critical"), skillDir);
|
|
1187
|
+
findings.push({
|
|
1188
|
+
checkId: "skills.code_safety",
|
|
1189
|
+
severity: "critical",
|
|
1190
|
+
title: `Skill "${skillName}" contains dangerous code patterns`,
|
|
1191
|
+
detail: `Found ${summary.critical} critical issue(s) in ${summary.scannedFiles} scanned file(s) under ${skillDir}:\n${details}`,
|
|
1192
|
+
remediation: `Review the skill source code before use. If untrusted, remove "${skillDir}".`
|
|
1193
|
+
});
|
|
1194
|
+
} else if (summary.warn > 0) {
|
|
1195
|
+
const details = formatCodeSafetyDetails(summary.findings.filter((finding) => finding.severity === "warn"), skillDir);
|
|
1196
|
+
findings.push({
|
|
1197
|
+
checkId: "skills.code_safety",
|
|
1198
|
+
severity: "warn",
|
|
1199
|
+
title: `Skill "${skillName}" contains suspicious code patterns`,
|
|
1200
|
+
detail: `Found ${summary.warn} warning(s) in ${summary.scannedFiles} scanned file(s) under ${skillDir}:\n${details}`,
|
|
1201
|
+
remediation: "Review flagged lines to ensure the behavior is intentional and safe."
|
|
1202
|
+
});
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
return findings;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
//#endregion
|
|
1210
|
+
//#region src/security/audit.ts
|
|
1211
|
+
function countBySeverity(findings) {
|
|
1212
|
+
let critical = 0;
|
|
1213
|
+
let warn = 0;
|
|
1214
|
+
let info = 0;
|
|
1215
|
+
for (const f of findings) if (f.severity === "critical") critical += 1;
|
|
1216
|
+
else if (f.severity === "warn") warn += 1;
|
|
1217
|
+
else info += 1;
|
|
1218
|
+
return {
|
|
1219
|
+
critical,
|
|
1220
|
+
warn,
|
|
1221
|
+
info
|
|
1222
|
+
};
|
|
1223
|
+
}
|
|
1224
|
+
function normalizeAllowFromList(list) {
|
|
1225
|
+
if (!Array.isArray(list)) return [];
|
|
1226
|
+
return list.map((v) => String(v).trim()).filter(Boolean);
|
|
1227
|
+
}
|
|
1228
|
+
function classifyChannelWarningSeverity(message) {
|
|
1229
|
+
const s = message.toLowerCase();
|
|
1230
|
+
if (s.includes("dms: open") || s.includes("grouppolicy=\"open\"") || s.includes("dmpolicy=\"open\"")) return "critical";
|
|
1231
|
+
if (s.includes("allows any") || s.includes("anyone can dm") || s.includes("public")) return "critical";
|
|
1232
|
+
if (s.includes("locked") || s.includes("disabled")) return "info";
|
|
1233
|
+
return "warn";
|
|
1234
|
+
}
|
|
1235
|
+
async function collectFilesystemFindings(params) {
|
|
1236
|
+
const findings = [];
|
|
1237
|
+
const stateDirPerms = await inspectPathPermissions(params.stateDir, {
|
|
1238
|
+
env: params.env,
|
|
1239
|
+
platform: params.platform,
|
|
1240
|
+
exec: params.execIcacls
|
|
1241
|
+
});
|
|
1242
|
+
if (stateDirPerms.ok) {
|
|
1243
|
+
if (stateDirPerms.isSymlink) findings.push({
|
|
1244
|
+
checkId: "fs.state_dir.symlink",
|
|
1245
|
+
severity: "warn",
|
|
1246
|
+
title: "State dir is a symlink",
|
|
1247
|
+
detail: `${params.stateDir} is a symlink; treat this as an extra trust boundary.`
|
|
1248
|
+
});
|
|
1249
|
+
if (stateDirPerms.worldWritable) findings.push({
|
|
1250
|
+
checkId: "fs.state_dir.perms_world_writable",
|
|
1251
|
+
severity: "critical",
|
|
1252
|
+
title: "State dir is world-writable",
|
|
1253
|
+
detail: `${formatPermissionDetail(params.stateDir, stateDirPerms)}; other users can write into your OpenClaw state.`,
|
|
1254
|
+
remediation: formatPermissionRemediation({
|
|
1255
|
+
targetPath: params.stateDir,
|
|
1256
|
+
perms: stateDirPerms,
|
|
1257
|
+
isDir: true,
|
|
1258
|
+
posixMode: 448,
|
|
1259
|
+
env: params.env
|
|
1260
|
+
})
|
|
1261
|
+
});
|
|
1262
|
+
else if (stateDirPerms.groupWritable) findings.push({
|
|
1263
|
+
checkId: "fs.state_dir.perms_group_writable",
|
|
1264
|
+
severity: "warn",
|
|
1265
|
+
title: "State dir is group-writable",
|
|
1266
|
+
detail: `${formatPermissionDetail(params.stateDir, stateDirPerms)}; group users can write into your OpenClaw state.`,
|
|
1267
|
+
remediation: formatPermissionRemediation({
|
|
1268
|
+
targetPath: params.stateDir,
|
|
1269
|
+
perms: stateDirPerms,
|
|
1270
|
+
isDir: true,
|
|
1271
|
+
posixMode: 448,
|
|
1272
|
+
env: params.env
|
|
1273
|
+
})
|
|
1274
|
+
});
|
|
1275
|
+
else if (stateDirPerms.groupReadable || stateDirPerms.worldReadable) findings.push({
|
|
1276
|
+
checkId: "fs.state_dir.perms_readable",
|
|
1277
|
+
severity: "warn",
|
|
1278
|
+
title: "State dir is readable by others",
|
|
1279
|
+
detail: `${formatPermissionDetail(params.stateDir, stateDirPerms)}; consider restricting to 700.`,
|
|
1280
|
+
remediation: formatPermissionRemediation({
|
|
1281
|
+
targetPath: params.stateDir,
|
|
1282
|
+
perms: stateDirPerms,
|
|
1283
|
+
isDir: true,
|
|
1284
|
+
posixMode: 448,
|
|
1285
|
+
env: params.env
|
|
1286
|
+
})
|
|
1287
|
+
});
|
|
1288
|
+
}
|
|
1289
|
+
const configPerms = await inspectPathPermissions(params.configPath, {
|
|
1290
|
+
env: params.env,
|
|
1291
|
+
platform: params.platform,
|
|
1292
|
+
exec: params.execIcacls
|
|
1293
|
+
});
|
|
1294
|
+
if (configPerms.ok) {
|
|
1295
|
+
if (configPerms.isSymlink) findings.push({
|
|
1296
|
+
checkId: "fs.config.symlink",
|
|
1297
|
+
severity: "warn",
|
|
1298
|
+
title: "Config file is a symlink",
|
|
1299
|
+
detail: `${params.configPath} is a symlink; make sure you trust its target.`
|
|
1300
|
+
});
|
|
1301
|
+
if (configPerms.worldWritable || configPerms.groupWritable) findings.push({
|
|
1302
|
+
checkId: "fs.config.perms_writable",
|
|
1303
|
+
severity: "critical",
|
|
1304
|
+
title: "Config file is writable by others",
|
|
1305
|
+
detail: `${formatPermissionDetail(params.configPath, configPerms)}; another user could change gateway/auth/tool policies.`,
|
|
1306
|
+
remediation: formatPermissionRemediation({
|
|
1307
|
+
targetPath: params.configPath,
|
|
1308
|
+
perms: configPerms,
|
|
1309
|
+
isDir: false,
|
|
1310
|
+
posixMode: 384,
|
|
1311
|
+
env: params.env
|
|
1312
|
+
})
|
|
1313
|
+
});
|
|
1314
|
+
else if (configPerms.worldReadable) findings.push({
|
|
1315
|
+
checkId: "fs.config.perms_world_readable",
|
|
1316
|
+
severity: "critical",
|
|
1317
|
+
title: "Config file is world-readable",
|
|
1318
|
+
detail: `${formatPermissionDetail(params.configPath, configPerms)}; config can contain tokens and private settings.`,
|
|
1319
|
+
remediation: formatPermissionRemediation({
|
|
1320
|
+
targetPath: params.configPath,
|
|
1321
|
+
perms: configPerms,
|
|
1322
|
+
isDir: false,
|
|
1323
|
+
posixMode: 384,
|
|
1324
|
+
env: params.env
|
|
1325
|
+
})
|
|
1326
|
+
});
|
|
1327
|
+
else if (configPerms.groupReadable) findings.push({
|
|
1328
|
+
checkId: "fs.config.perms_group_readable",
|
|
1329
|
+
severity: "warn",
|
|
1330
|
+
title: "Config file is group-readable",
|
|
1331
|
+
detail: `${formatPermissionDetail(params.configPath, configPerms)}; config can contain tokens and private settings.`,
|
|
1332
|
+
remediation: formatPermissionRemediation({
|
|
1333
|
+
targetPath: params.configPath,
|
|
1334
|
+
perms: configPerms,
|
|
1335
|
+
isDir: false,
|
|
1336
|
+
posixMode: 384,
|
|
1337
|
+
env: params.env
|
|
1338
|
+
})
|
|
1339
|
+
});
|
|
1340
|
+
}
|
|
1341
|
+
return findings;
|
|
1342
|
+
}
|
|
1343
|
+
function collectGatewayConfigFindings(cfg, env) {
|
|
1344
|
+
const findings = [];
|
|
1345
|
+
const bind = typeof cfg.gateway?.bind === "string" ? cfg.gateway.bind : "loopback";
|
|
1346
|
+
const tailscaleMode = cfg.gateway?.tailscale?.mode ?? "off";
|
|
1347
|
+
const auth = resolveGatewayAuth({
|
|
1348
|
+
authConfig: cfg.gateway?.auth,
|
|
1349
|
+
tailscaleMode,
|
|
1350
|
+
env
|
|
1351
|
+
});
|
|
1352
|
+
const controlUiEnabled = cfg.gateway?.controlUi?.enabled !== false;
|
|
1353
|
+
const trustedProxies = Array.isArray(cfg.gateway?.trustedProxies) ? cfg.gateway.trustedProxies : [];
|
|
1354
|
+
const hasToken = typeof auth.token === "string" && auth.token.trim().length > 0;
|
|
1355
|
+
const hasPassword = typeof auth.password === "string" && auth.password.trim().length > 0;
|
|
1356
|
+
const hasSharedSecret = auth.mode === "token" && hasToken || auth.mode === "password" && hasPassword;
|
|
1357
|
+
const hasTailscaleAuth = auth.allowTailscale && tailscaleMode === "serve";
|
|
1358
|
+
const hasGatewayAuth = hasSharedSecret || hasTailscaleAuth;
|
|
1359
|
+
if (bind !== "loopback" && !hasSharedSecret) findings.push({
|
|
1360
|
+
checkId: "gateway.bind_no_auth",
|
|
1361
|
+
severity: "critical",
|
|
1362
|
+
title: "Gateway binds beyond loopback without auth",
|
|
1363
|
+
detail: `gateway.bind="${bind}" but no gateway.auth token/password is configured.`,
|
|
1364
|
+
remediation: `Set gateway.auth (token recommended) or bind to loopback.`
|
|
1365
|
+
});
|
|
1366
|
+
if (bind === "loopback" && controlUiEnabled && trustedProxies.length === 0) findings.push({
|
|
1367
|
+
checkId: "gateway.trusted_proxies_missing",
|
|
1368
|
+
severity: "warn",
|
|
1369
|
+
title: "Reverse proxy headers are not trusted",
|
|
1370
|
+
detail: "gateway.bind is loopback and gateway.trustedProxies is empty. If you expose the Control UI through a reverse proxy, configure trusted proxies so local-client checks cannot be spoofed.",
|
|
1371
|
+
remediation: "Set gateway.trustedProxies to your proxy IPs or keep the Control UI local-only."
|
|
1372
|
+
});
|
|
1373
|
+
if (bind === "loopback" && controlUiEnabled && !hasGatewayAuth) findings.push({
|
|
1374
|
+
checkId: "gateway.loopback_no_auth",
|
|
1375
|
+
severity: "critical",
|
|
1376
|
+
title: "Gateway auth missing on loopback",
|
|
1377
|
+
detail: "gateway.bind is loopback but no gateway auth secret is configured. If the Control UI is exposed through a reverse proxy, unauthenticated access is possible.",
|
|
1378
|
+
remediation: "Set gateway.auth (token recommended) or keep the Control UI local-only."
|
|
1379
|
+
});
|
|
1380
|
+
if (tailscaleMode === "funnel") findings.push({
|
|
1381
|
+
checkId: "gateway.tailscale_funnel",
|
|
1382
|
+
severity: "critical",
|
|
1383
|
+
title: "Tailscale Funnel exposure enabled",
|
|
1384
|
+
detail: `gateway.tailscale.mode="funnel" exposes the Gateway publicly; keep auth strict and treat it as internet-facing.`,
|
|
1385
|
+
remediation: `Prefer tailscale.mode="serve" (tailnet-only) or set tailscale.mode="off".`
|
|
1386
|
+
});
|
|
1387
|
+
else if (tailscaleMode === "serve") findings.push({
|
|
1388
|
+
checkId: "gateway.tailscale_serve",
|
|
1389
|
+
severity: "info",
|
|
1390
|
+
title: "Tailscale Serve exposure enabled",
|
|
1391
|
+
detail: `gateway.tailscale.mode="serve" exposes the Gateway to your tailnet (loopback behind Tailscale).`
|
|
1392
|
+
});
|
|
1393
|
+
if (cfg.gateway?.controlUi?.allowInsecureAuth === true) findings.push({
|
|
1394
|
+
checkId: "gateway.control_ui.insecure_auth",
|
|
1395
|
+
severity: "critical",
|
|
1396
|
+
title: "Control UI allows insecure HTTP auth",
|
|
1397
|
+
detail: "gateway.controlUi.allowInsecureAuth=true allows token-only auth over HTTP and skips device identity.",
|
|
1398
|
+
remediation: "Disable it or switch to HTTPS (Tailscale Serve) or localhost."
|
|
1399
|
+
});
|
|
1400
|
+
if (cfg.gateway?.controlUi?.dangerouslyDisableDeviceAuth === true) findings.push({
|
|
1401
|
+
checkId: "gateway.control_ui.device_auth_disabled",
|
|
1402
|
+
severity: "critical",
|
|
1403
|
+
title: "DANGEROUS: Control UI device auth disabled",
|
|
1404
|
+
detail: "gateway.controlUi.dangerouslyDisableDeviceAuth=true disables device identity checks for the Control UI.",
|
|
1405
|
+
remediation: "Disable it unless you are in a short-lived break-glass scenario."
|
|
1406
|
+
});
|
|
1407
|
+
const token = typeof auth.token === "string" && auth.token.trim().length > 0 ? auth.token.trim() : null;
|
|
1408
|
+
if (auth.mode === "token" && token && token.length < 24) findings.push({
|
|
1409
|
+
checkId: "gateway.token_too_short",
|
|
1410
|
+
severity: "warn",
|
|
1411
|
+
title: "Gateway token looks short",
|
|
1412
|
+
detail: `gateway auth token is ${token.length} chars; prefer a long random token.`
|
|
1413
|
+
});
|
|
1414
|
+
return findings;
|
|
1415
|
+
}
|
|
1416
|
+
function collectBrowserControlFindings(cfg) {
|
|
1417
|
+
const findings = [];
|
|
1418
|
+
let resolved;
|
|
1419
|
+
try {
|
|
1420
|
+
resolved = resolveBrowserConfig(cfg.browser, cfg);
|
|
1421
|
+
} catch (err) {
|
|
1422
|
+
findings.push({
|
|
1423
|
+
checkId: "browser.control_invalid_config",
|
|
1424
|
+
severity: "warn",
|
|
1425
|
+
title: "Browser control config looks invalid",
|
|
1426
|
+
detail: String(err),
|
|
1427
|
+
remediation: `Fix browser.cdpUrl in ${resolveConfigPath()} and re-run "${formatCliCommand("openclaw security audit --deep")}".`
|
|
1428
|
+
});
|
|
1429
|
+
return findings;
|
|
1430
|
+
}
|
|
1431
|
+
if (!resolved.enabled) return findings;
|
|
1432
|
+
for (const name of Object.keys(resolved.profiles)) {
|
|
1433
|
+
const profile = resolveProfile(resolved, name);
|
|
1434
|
+
if (!profile || profile.cdpIsLoopback) continue;
|
|
1435
|
+
let url;
|
|
1436
|
+
try {
|
|
1437
|
+
url = new URL(profile.cdpUrl);
|
|
1438
|
+
} catch {
|
|
1439
|
+
continue;
|
|
1440
|
+
}
|
|
1441
|
+
if (url.protocol === "http:") findings.push({
|
|
1442
|
+
checkId: "browser.remote_cdp_http",
|
|
1443
|
+
severity: "warn",
|
|
1444
|
+
title: "Remote CDP uses HTTP",
|
|
1445
|
+
detail: `browser profile "${name}" uses http CDP (${profile.cdpUrl}); this is OK only if it's tailnet-only or behind an encrypted tunnel.`,
|
|
1446
|
+
remediation: `Prefer HTTPS/TLS or a tailnet-only endpoint for remote CDP.`
|
|
1447
|
+
});
|
|
1448
|
+
}
|
|
1449
|
+
return findings;
|
|
1450
|
+
}
|
|
1451
|
+
function collectLoggingFindings(cfg) {
|
|
1452
|
+
if (cfg.logging?.redactSensitive !== "off") return [];
|
|
1453
|
+
return [{
|
|
1454
|
+
checkId: "logging.redact_off",
|
|
1455
|
+
severity: "warn",
|
|
1456
|
+
title: "Tool summary redaction is disabled",
|
|
1457
|
+
detail: `logging.redactSensitive="off" can leak secrets into logs and status output.`,
|
|
1458
|
+
remediation: `Set logging.redactSensitive="tools".`
|
|
1459
|
+
}];
|
|
1460
|
+
}
|
|
1461
|
+
function collectElevatedFindings(cfg) {
|
|
1462
|
+
const findings = [];
|
|
1463
|
+
const enabled = cfg.tools?.elevated?.enabled;
|
|
1464
|
+
const allowFrom = cfg.tools?.elevated?.allowFrom ?? {};
|
|
1465
|
+
const anyAllowFromKeys = Object.keys(allowFrom).length > 0;
|
|
1466
|
+
if (enabled === false) return findings;
|
|
1467
|
+
if (!anyAllowFromKeys) return findings;
|
|
1468
|
+
for (const [provider, list] of Object.entries(allowFrom)) {
|
|
1469
|
+
const normalized = normalizeAllowFromList(list);
|
|
1470
|
+
if (normalized.includes("*")) findings.push({
|
|
1471
|
+
checkId: `tools.elevated.allowFrom.${provider}.wildcard`,
|
|
1472
|
+
severity: "critical",
|
|
1473
|
+
title: "Elevated exec allowlist contains wildcard",
|
|
1474
|
+
detail: `tools.elevated.allowFrom.${provider} includes "*" which effectively approves everyone on that channel for elevated mode.`
|
|
1475
|
+
});
|
|
1476
|
+
else if (normalized.length > 25) findings.push({
|
|
1477
|
+
checkId: `tools.elevated.allowFrom.${provider}.large`,
|
|
1478
|
+
severity: "warn",
|
|
1479
|
+
title: "Elevated exec allowlist is large",
|
|
1480
|
+
detail: `tools.elevated.allowFrom.${provider} has ${normalized.length} entries; consider tightening elevated access.`
|
|
1481
|
+
});
|
|
1482
|
+
}
|
|
1483
|
+
return findings;
|
|
1484
|
+
}
|
|
1485
|
+
async function collectChannelSecurityFindings(params) {
|
|
1486
|
+
const findings = [];
|
|
1487
|
+
const coerceNativeSetting = (value) => {
|
|
1488
|
+
if (value === true) return true;
|
|
1489
|
+
if (value === false) return false;
|
|
1490
|
+
if (value === "auto") return "auto";
|
|
1491
|
+
};
|
|
1492
|
+
const warnDmPolicy = async (input) => {
|
|
1493
|
+
const policyPath = input.policyPath ?? `${input.allowFromPath}policy`;
|
|
1494
|
+
const configAllowFrom = normalizeAllowFromList(input.allowFrom);
|
|
1495
|
+
const hasWildcard = configAllowFrom.includes("*");
|
|
1496
|
+
const dmScope = params.cfg.session?.dmScope ?? "main";
|
|
1497
|
+
const storeAllowFrom = await readChannelAllowFromStore(input.provider).catch(() => []);
|
|
1498
|
+
const normalizeEntry = input.normalizeEntry ?? ((value) => value);
|
|
1499
|
+
const normalizedCfg = configAllowFrom.filter((value) => value !== "*").map((value) => normalizeEntry(value)).map((value) => value.trim()).filter(Boolean);
|
|
1500
|
+
const normalizedStore = storeAllowFrom.map((value) => normalizeEntry(value)).map((value) => value.trim()).filter(Boolean);
|
|
1501
|
+
const allowCount = Array.from(new Set([...normalizedCfg, ...normalizedStore])).length;
|
|
1502
|
+
const isMultiUserDm = hasWildcard || allowCount > 1;
|
|
1503
|
+
if (input.dmPolicy === "open") {
|
|
1504
|
+
const allowFromKey = `${input.allowFromPath}allowFrom`;
|
|
1505
|
+
findings.push({
|
|
1506
|
+
checkId: `channels.${input.provider}.dm.open`,
|
|
1507
|
+
severity: "critical",
|
|
1508
|
+
title: `${input.label} DMs are open`,
|
|
1509
|
+
detail: `${policyPath}="open" allows anyone to DM the bot.`,
|
|
1510
|
+
remediation: `Use pairing/allowlist; if you really need open DMs, ensure ${allowFromKey} includes "*".`
|
|
1511
|
+
});
|
|
1512
|
+
if (!hasWildcard) findings.push({
|
|
1513
|
+
checkId: `channels.${input.provider}.dm.open_invalid`,
|
|
1514
|
+
severity: "warn",
|
|
1515
|
+
title: `${input.label} DM config looks inconsistent`,
|
|
1516
|
+
detail: `"open" requires ${allowFromKey} to include "*".`
|
|
1517
|
+
});
|
|
1518
|
+
}
|
|
1519
|
+
if (input.dmPolicy === "disabled") {
|
|
1520
|
+
findings.push({
|
|
1521
|
+
checkId: `channels.${input.provider}.dm.disabled`,
|
|
1522
|
+
severity: "info",
|
|
1523
|
+
title: `${input.label} DMs are disabled`,
|
|
1524
|
+
detail: `${policyPath}="disabled" ignores inbound DMs.`
|
|
1525
|
+
});
|
|
1526
|
+
return;
|
|
1527
|
+
}
|
|
1528
|
+
if (dmScope === "main" && isMultiUserDm) findings.push({
|
|
1529
|
+
checkId: `channels.${input.provider}.dm.scope_main_multiuser`,
|
|
1530
|
+
severity: "warn",
|
|
1531
|
+
title: `${input.label} DMs share the main session`,
|
|
1532
|
+
detail: "Multiple DM senders currently share the main session, which can leak context across users.",
|
|
1533
|
+
remediation: "Set session.dmScope=\"per-channel-peer\" (or \"per-account-channel-peer\" for multi-account channels) to isolate DM sessions per sender."
|
|
1534
|
+
});
|
|
1535
|
+
};
|
|
1536
|
+
for (const plugin of params.plugins) {
|
|
1537
|
+
if (!plugin.security) continue;
|
|
1538
|
+
const accountIds = plugin.config.listAccountIds(params.cfg);
|
|
1539
|
+
const defaultAccountId = resolveChannelDefaultAccountId({
|
|
1540
|
+
plugin,
|
|
1541
|
+
cfg: params.cfg,
|
|
1542
|
+
accountIds
|
|
1543
|
+
});
|
|
1544
|
+
const account = plugin.config.resolveAccount(params.cfg, defaultAccountId);
|
|
1545
|
+
if (!(plugin.config.isEnabled ? plugin.config.isEnabled(account, params.cfg) : true)) continue;
|
|
1546
|
+
if (!(plugin.config.isConfigured ? await plugin.config.isConfigured(account, params.cfg) : true)) continue;
|
|
1547
|
+
if (plugin.id === "discord") {
|
|
1548
|
+
const discordCfg = account?.config ?? {};
|
|
1549
|
+
const nativeEnabled = resolveNativeCommandsEnabled({
|
|
1550
|
+
providerId: "discord",
|
|
1551
|
+
providerSetting: coerceNativeSetting(discordCfg.commands?.native),
|
|
1552
|
+
globalSetting: params.cfg.commands?.native
|
|
1553
|
+
});
|
|
1554
|
+
const nativeSkillsEnabled = resolveNativeSkillsEnabled({
|
|
1555
|
+
providerId: "discord",
|
|
1556
|
+
providerSetting: coerceNativeSetting(discordCfg.commands?.nativeSkills),
|
|
1557
|
+
globalSetting: params.cfg.commands?.nativeSkills
|
|
1558
|
+
});
|
|
1559
|
+
if (nativeEnabled || nativeSkillsEnabled) {
|
|
1560
|
+
const defaultGroupPolicy = params.cfg.channels?.defaults?.groupPolicy;
|
|
1561
|
+
const groupPolicy = discordCfg.groupPolicy ?? defaultGroupPolicy ?? "allowlist";
|
|
1562
|
+
const guildEntries = discordCfg.guilds ?? {};
|
|
1563
|
+
const guildsConfigured = Object.keys(guildEntries).length > 0;
|
|
1564
|
+
const hasAnyUserAllowlist = Object.values(guildEntries).some((guild) => {
|
|
1565
|
+
if (!guild || typeof guild !== "object") return false;
|
|
1566
|
+
const g = guild;
|
|
1567
|
+
if (Array.isArray(g.users) && g.users.length > 0) return true;
|
|
1568
|
+
const channels = g.channels;
|
|
1569
|
+
if (!channels || typeof channels !== "object") return false;
|
|
1570
|
+
return Object.values(channels).some((channel) => {
|
|
1571
|
+
if (!channel || typeof channel !== "object") return false;
|
|
1572
|
+
const c = channel;
|
|
1573
|
+
return Array.isArray(c.users) && c.users.length > 0;
|
|
1574
|
+
});
|
|
1575
|
+
});
|
|
1576
|
+
const dmAllowFromRaw = discordCfg.dm?.allowFrom;
|
|
1577
|
+
const dmAllowFrom = Array.isArray(dmAllowFromRaw) ? dmAllowFromRaw : [];
|
|
1578
|
+
const storeAllowFrom = await readChannelAllowFromStore("discord").catch(() => []);
|
|
1579
|
+
const ownerAllowFromConfigured = normalizeAllowFromList([...dmAllowFrom, ...storeAllowFrom]).length > 0;
|
|
1580
|
+
const useAccessGroups = params.cfg.commands?.useAccessGroups !== false;
|
|
1581
|
+
if (!useAccessGroups && groupPolicy !== "disabled" && guildsConfigured && !hasAnyUserAllowlist) findings.push({
|
|
1582
|
+
checkId: "channels.discord.commands.native.unrestricted",
|
|
1583
|
+
severity: "critical",
|
|
1584
|
+
title: "Discord slash commands are unrestricted",
|
|
1585
|
+
detail: "commands.useAccessGroups=false disables sender allowlists for Discord slash commands unless a per-guild/channel users allowlist is configured; with no users allowlist, any user in allowed guild channels can invoke /… commands.",
|
|
1586
|
+
remediation: "Set commands.useAccessGroups=true (recommended), or configure channels.discord.guilds.<id>.users (or channels.discord.guilds.<id>.channels.<channel>.users)."
|
|
1587
|
+
});
|
|
1588
|
+
else if (useAccessGroups && groupPolicy !== "disabled" && guildsConfigured && !ownerAllowFromConfigured && !hasAnyUserAllowlist) findings.push({
|
|
1589
|
+
checkId: "channels.discord.commands.native.no_allowlists",
|
|
1590
|
+
severity: "warn",
|
|
1591
|
+
title: "Discord slash commands have no allowlists",
|
|
1592
|
+
detail: "Discord slash commands are enabled, but neither an owner allowFrom list nor any per-guild/channel users allowlist is configured; /… commands will be rejected for everyone.",
|
|
1593
|
+
remediation: "Add your user id to channels.discord.dm.allowFrom (or approve yourself via pairing), or configure channels.discord.guilds.<id>.users."
|
|
1594
|
+
});
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
if (plugin.id === "slack") {
|
|
1598
|
+
const slackCfg = account?.config ?? {};
|
|
1599
|
+
const nativeEnabled = resolveNativeCommandsEnabled({
|
|
1600
|
+
providerId: "slack",
|
|
1601
|
+
providerSetting: coerceNativeSetting(slackCfg.commands?.native),
|
|
1602
|
+
globalSetting: params.cfg.commands?.native
|
|
1603
|
+
});
|
|
1604
|
+
const nativeSkillsEnabled = resolveNativeSkillsEnabled({
|
|
1605
|
+
providerId: "slack",
|
|
1606
|
+
providerSetting: coerceNativeSetting(slackCfg.commands?.nativeSkills),
|
|
1607
|
+
globalSetting: params.cfg.commands?.nativeSkills
|
|
1608
|
+
});
|
|
1609
|
+
if (nativeEnabled || nativeSkillsEnabled || slackCfg.slashCommand?.enabled === true) if (!(params.cfg.commands?.useAccessGroups !== false)) findings.push({
|
|
1610
|
+
checkId: "channels.slack.commands.slash.useAccessGroups_off",
|
|
1611
|
+
severity: "critical",
|
|
1612
|
+
title: "Slack slash commands bypass access groups",
|
|
1613
|
+
detail: "Slack slash/native commands are enabled while commands.useAccessGroups=false; this can allow unrestricted /… command execution from channels/users you didn't explicitly authorize.",
|
|
1614
|
+
remediation: "Set commands.useAccessGroups=true (recommended)."
|
|
1615
|
+
});
|
|
1616
|
+
else {
|
|
1617
|
+
const dmAllowFromRaw = account?.dm?.allowFrom;
|
|
1618
|
+
const dmAllowFrom = Array.isArray(dmAllowFromRaw) ? dmAllowFromRaw : [];
|
|
1619
|
+
const storeAllowFrom = await readChannelAllowFromStore("slack").catch(() => []);
|
|
1620
|
+
const ownerAllowFromConfigured = normalizeAllowFromList([...dmAllowFrom, ...storeAllowFrom]).length > 0;
|
|
1621
|
+
const channels = slackCfg.channels ?? {};
|
|
1622
|
+
const hasAnyChannelUsersAllowlist = Object.values(channels).some((value) => {
|
|
1623
|
+
if (!value || typeof value !== "object") return false;
|
|
1624
|
+
const channel = value;
|
|
1625
|
+
return Array.isArray(channel.users) && channel.users.length > 0;
|
|
1626
|
+
});
|
|
1627
|
+
if (!ownerAllowFromConfigured && !hasAnyChannelUsersAllowlist) findings.push({
|
|
1628
|
+
checkId: "channels.slack.commands.slash.no_allowlists",
|
|
1629
|
+
severity: "warn",
|
|
1630
|
+
title: "Slack slash commands have no allowlists",
|
|
1631
|
+
detail: "Slack slash/native commands are enabled, but neither an owner allowFrom list nor any channels.<id>.users allowlist is configured; /… commands will be rejected for everyone.",
|
|
1632
|
+
remediation: "Approve yourself via pairing (recommended), or set channels.slack.dm.allowFrom and/or channels.slack.channels.<id>.users."
|
|
1633
|
+
});
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
const dmPolicy = plugin.security.resolveDmPolicy?.({
|
|
1637
|
+
cfg: params.cfg,
|
|
1638
|
+
accountId: defaultAccountId,
|
|
1639
|
+
account
|
|
1640
|
+
});
|
|
1641
|
+
if (dmPolicy) await warnDmPolicy({
|
|
1642
|
+
label: plugin.meta.label ?? plugin.id,
|
|
1643
|
+
provider: plugin.id,
|
|
1644
|
+
dmPolicy: dmPolicy.policy,
|
|
1645
|
+
allowFrom: dmPolicy.allowFrom,
|
|
1646
|
+
policyPath: dmPolicy.policyPath,
|
|
1647
|
+
allowFromPath: dmPolicy.allowFromPath,
|
|
1648
|
+
normalizeEntry: dmPolicy.normalizeEntry
|
|
1649
|
+
});
|
|
1650
|
+
if (plugin.security.collectWarnings) {
|
|
1651
|
+
const warnings = await plugin.security.collectWarnings({
|
|
1652
|
+
cfg: params.cfg,
|
|
1653
|
+
accountId: defaultAccountId,
|
|
1654
|
+
account
|
|
1655
|
+
});
|
|
1656
|
+
for (const message of warnings ?? []) {
|
|
1657
|
+
const trimmed = String(message).trim();
|
|
1658
|
+
if (!trimmed) continue;
|
|
1659
|
+
findings.push({
|
|
1660
|
+
checkId: `channels.${plugin.id}.warning.${findings.length + 1}`,
|
|
1661
|
+
severity: classifyChannelWarningSeverity(trimmed),
|
|
1662
|
+
title: `${plugin.meta.label ?? plugin.id} security warning`,
|
|
1663
|
+
detail: trimmed.replace(/^-\s*/, "")
|
|
1664
|
+
});
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
if (plugin.id === "telegram") {
|
|
1668
|
+
if (!(params.cfg.commands?.text !== false)) continue;
|
|
1669
|
+
const telegramCfg = account?.config ?? {};
|
|
1670
|
+
const defaultGroupPolicy = params.cfg.channels?.defaults?.groupPolicy;
|
|
1671
|
+
const groupPolicy = telegramCfg.groupPolicy ?? defaultGroupPolicy ?? "allowlist";
|
|
1672
|
+
const groups = telegramCfg.groups;
|
|
1673
|
+
const groupsConfigured = Boolean(groups) && Object.keys(groups ?? {}).length > 0;
|
|
1674
|
+
if (!(groupPolicy === "open" || groupPolicy === "allowlist" && groupsConfigured)) continue;
|
|
1675
|
+
const storeAllowFrom = await readChannelAllowFromStore("telegram").catch(() => []);
|
|
1676
|
+
const storeHasWildcard = storeAllowFrom.some((v) => String(v).trim() === "*");
|
|
1677
|
+
const groupAllowFrom = Array.isArray(telegramCfg.groupAllowFrom) ? telegramCfg.groupAllowFrom : [];
|
|
1678
|
+
const groupAllowFromHasWildcard = groupAllowFrom.some((v) => String(v).trim() === "*");
|
|
1679
|
+
const anyGroupOverride = Boolean(groups && Object.values(groups).some((value) => {
|
|
1680
|
+
if (!value || typeof value !== "object") return false;
|
|
1681
|
+
const group = value;
|
|
1682
|
+
if ((Array.isArray(group.allowFrom) ? group.allowFrom : []).length > 0) return true;
|
|
1683
|
+
const topics = group.topics;
|
|
1684
|
+
if (!topics || typeof topics !== "object") return false;
|
|
1685
|
+
return Object.values(topics).some((topicValue) => {
|
|
1686
|
+
if (!topicValue || typeof topicValue !== "object") return false;
|
|
1687
|
+
const topic = topicValue;
|
|
1688
|
+
return (Array.isArray(topic.allowFrom) ? topic.allowFrom : []).length > 0;
|
|
1689
|
+
});
|
|
1690
|
+
}));
|
|
1691
|
+
const hasAnySenderAllowlist = storeAllowFrom.length > 0 || groupAllowFrom.length > 0 || anyGroupOverride;
|
|
1692
|
+
if (storeHasWildcard || groupAllowFromHasWildcard) {
|
|
1693
|
+
findings.push({
|
|
1694
|
+
checkId: "channels.telegram.groups.allowFrom.wildcard",
|
|
1695
|
+
severity: "critical",
|
|
1696
|
+
title: "Telegram group allowlist contains wildcard",
|
|
1697
|
+
detail: "Telegram group sender allowlist contains \"*\", which allows any group member to run /… commands and control directives.",
|
|
1698
|
+
remediation: "Remove \"*\" from channels.telegram.groupAllowFrom and pairing store; prefer explicit user ids/usernames."
|
|
1699
|
+
});
|
|
1700
|
+
continue;
|
|
1701
|
+
}
|
|
1702
|
+
if (!hasAnySenderAllowlist) {
|
|
1703
|
+
const providerSetting = telegramCfg.commands?.nativeSkills;
|
|
1704
|
+
const skillsEnabled = resolveNativeSkillsEnabled({
|
|
1705
|
+
providerId: "telegram",
|
|
1706
|
+
providerSetting,
|
|
1707
|
+
globalSetting: params.cfg.commands?.nativeSkills
|
|
1708
|
+
});
|
|
1709
|
+
findings.push({
|
|
1710
|
+
checkId: "channels.telegram.groups.allowFrom.missing",
|
|
1711
|
+
severity: "critical",
|
|
1712
|
+
title: "Telegram group commands have no sender allowlist",
|
|
1713
|
+
detail: `Telegram group access is enabled but no sender allowlist is configured; this allows any group member to invoke /… commands` + (skillsEnabled ? " (including skill commands)." : "."),
|
|
1714
|
+
remediation: "Approve yourself via pairing (recommended), or set channels.telegram.groupAllowFrom (or per-group groups.<id>.allowFrom)."
|
|
1715
|
+
});
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
}
|
|
1719
|
+
return findings;
|
|
1720
|
+
}
|
|
1721
|
+
async function maybeProbeGateway(params) {
|
|
1722
|
+
const url = buildGatewayConnectionDetails({ config: params.cfg }).url;
|
|
1723
|
+
const isRemoteMode = params.cfg.gateway?.mode === "remote";
|
|
1724
|
+
const remoteUrlRaw = typeof params.cfg.gateway?.remote?.url === "string" ? params.cfg.gateway.remote.url.trim() : "";
|
|
1725
|
+
const remoteUrlMissing = isRemoteMode && !remoteUrlRaw;
|
|
1726
|
+
const resolveAuth = (mode) => {
|
|
1727
|
+
const authToken = params.cfg.gateway?.auth?.token;
|
|
1728
|
+
const authPassword = params.cfg.gateway?.auth?.password;
|
|
1729
|
+
const remote = params.cfg.gateway?.remote;
|
|
1730
|
+
return {
|
|
1731
|
+
token: mode === "remote" ? typeof remote?.token === "string" && remote.token.trim() ? remote.token.trim() : void 0 : process.env.OPENCLAW_GATEWAY_TOKEN?.trim() || (typeof authToken === "string" && authToken.trim() ? authToken.trim() : void 0),
|
|
1732
|
+
password: process.env.OPENCLAW_GATEWAY_PASSWORD?.trim() || (mode === "remote" ? typeof remote?.password === "string" && remote.password.trim() ? remote.password.trim() : void 0 : typeof authPassword === "string" && authPassword.trim() ? authPassword.trim() : void 0)
|
|
1733
|
+
};
|
|
1734
|
+
};
|
|
1735
|
+
const auth = !isRemoteMode || remoteUrlMissing ? resolveAuth("local") : resolveAuth("remote");
|
|
1736
|
+
const res = await params.probe({
|
|
1737
|
+
url,
|
|
1738
|
+
auth,
|
|
1739
|
+
timeoutMs: params.timeoutMs
|
|
1740
|
+
}).catch((err) => ({
|
|
1741
|
+
ok: false,
|
|
1742
|
+
url,
|
|
1743
|
+
connectLatencyMs: null,
|
|
1744
|
+
error: String(err),
|
|
1745
|
+
close: null,
|
|
1746
|
+
health: null,
|
|
1747
|
+
status: null,
|
|
1748
|
+
presence: null,
|
|
1749
|
+
configSnapshot: null
|
|
1750
|
+
}));
|
|
1751
|
+
return { gateway: {
|
|
1752
|
+
attempted: true,
|
|
1753
|
+
url,
|
|
1754
|
+
ok: res.ok,
|
|
1755
|
+
error: res.ok ? null : res.error,
|
|
1756
|
+
close: res.close ? {
|
|
1757
|
+
code: res.close.code,
|
|
1758
|
+
reason: res.close.reason
|
|
1759
|
+
} : null
|
|
1760
|
+
} };
|
|
1761
|
+
}
|
|
1762
|
+
async function runSecurityAudit(opts) {
|
|
1763
|
+
const findings = [];
|
|
1764
|
+
const cfg = opts.config;
|
|
1765
|
+
const env = opts.env ?? process.env;
|
|
1766
|
+
const platform = opts.platform ?? process.platform;
|
|
1767
|
+
const execIcacls = opts.execIcacls;
|
|
1768
|
+
const stateDir = opts.stateDir ?? resolveStateDir(env);
|
|
1769
|
+
const configPath = opts.configPath ?? resolveConfigPath(env, stateDir);
|
|
1770
|
+
findings.push(...collectAttackSurfaceSummaryFindings(cfg));
|
|
1771
|
+
findings.push(...collectSyncedFolderFindings({
|
|
1772
|
+
stateDir,
|
|
1773
|
+
configPath
|
|
1774
|
+
}));
|
|
1775
|
+
findings.push(...collectGatewayConfigFindings(cfg, env));
|
|
1776
|
+
findings.push(...collectBrowserControlFindings(cfg));
|
|
1777
|
+
findings.push(...collectLoggingFindings(cfg));
|
|
1778
|
+
findings.push(...collectElevatedFindings(cfg));
|
|
1779
|
+
findings.push(...collectHooksHardeningFindings(cfg));
|
|
1780
|
+
findings.push(...collectSecretsInConfigFindings(cfg));
|
|
1781
|
+
findings.push(...collectModelHygieneFindings(cfg));
|
|
1782
|
+
findings.push(...collectSmallModelRiskFindings({
|
|
1783
|
+
cfg,
|
|
1784
|
+
env
|
|
1785
|
+
}));
|
|
1786
|
+
findings.push(...collectExposureMatrixFindings(cfg));
|
|
1787
|
+
const configSnapshot = opts.includeFilesystem !== false ? await readConfigSnapshotForAudit({
|
|
1788
|
+
env,
|
|
1789
|
+
configPath
|
|
1790
|
+
}).catch(() => null) : null;
|
|
1791
|
+
if (opts.includeFilesystem !== false) {
|
|
1792
|
+
findings.push(...await collectFilesystemFindings({
|
|
1793
|
+
stateDir,
|
|
1794
|
+
configPath,
|
|
1795
|
+
env,
|
|
1796
|
+
platform,
|
|
1797
|
+
execIcacls
|
|
1798
|
+
}));
|
|
1799
|
+
if (configSnapshot) findings.push(...await collectIncludeFilePermFindings({
|
|
1800
|
+
configSnapshot,
|
|
1801
|
+
env,
|
|
1802
|
+
platform,
|
|
1803
|
+
execIcacls
|
|
1804
|
+
}));
|
|
1805
|
+
findings.push(...await collectStateDeepFilesystemFindings({
|
|
1806
|
+
cfg,
|
|
1807
|
+
env,
|
|
1808
|
+
stateDir,
|
|
1809
|
+
platform,
|
|
1810
|
+
execIcacls
|
|
1811
|
+
}));
|
|
1812
|
+
findings.push(...await collectPluginsTrustFindings({
|
|
1813
|
+
cfg,
|
|
1814
|
+
stateDir
|
|
1815
|
+
}));
|
|
1816
|
+
if (opts.deep === true) {
|
|
1817
|
+
findings.push(...await collectPluginsCodeSafetyFindings({ stateDir }));
|
|
1818
|
+
findings.push(...await collectInstalledSkillsCodeSafetyFindings({
|
|
1819
|
+
cfg,
|
|
1820
|
+
stateDir
|
|
1821
|
+
}));
|
|
1822
|
+
}
|
|
1823
|
+
}
|
|
1824
|
+
if (opts.includeChannelSecurity !== false) {
|
|
1825
|
+
const plugins = opts.plugins ?? listChannelPlugins();
|
|
1826
|
+
findings.push(...await collectChannelSecurityFindings({
|
|
1827
|
+
cfg,
|
|
1828
|
+
plugins
|
|
1829
|
+
}));
|
|
1830
|
+
}
|
|
1831
|
+
const deep = opts.deep === true ? await maybeProbeGateway({
|
|
1832
|
+
cfg,
|
|
1833
|
+
timeoutMs: Math.max(250, opts.deepTimeoutMs ?? 5e3),
|
|
1834
|
+
probe: opts.probeGatewayFn ?? probeGateway
|
|
1835
|
+
}) : void 0;
|
|
1836
|
+
if (deep?.gateway?.attempted && !deep.gateway.ok) findings.push({
|
|
1837
|
+
checkId: "gateway.probe_failed",
|
|
1838
|
+
severity: "warn",
|
|
1839
|
+
title: "Gateway probe failed (deep)",
|
|
1840
|
+
detail: deep.gateway.error ?? "gateway unreachable",
|
|
1841
|
+
remediation: `Run "${formatCliCommand("openclaw status --all")}" to debug connectivity/auth, then re-run "${formatCliCommand("openclaw security audit --deep")}".`
|
|
1842
|
+
});
|
|
1843
|
+
const summary = countBySeverity(findings);
|
|
1844
|
+
return {
|
|
1845
|
+
ts: Date.now(),
|
|
1846
|
+
summary,
|
|
1847
|
+
findings,
|
|
1848
|
+
deep
|
|
1849
|
+
};
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
//#endregion
|
|
1853
|
+
export { probeGateway as i, createIcaclsResetCommand as n, formatIcaclsResetCommand as r, runSecurityAudit as t };
|