@termix-it/cryptoclaw 1.0.0
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 +1615 -0
- package/LICENSE +21 -0
- package/README-header.png +0 -0
- package/README.md +331 -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/cryptoclaw.mjs +14 -0
- package/dist/accounts-BPjR5SyC.js +251 -0
- package/dist/accounts-CIGHxE7R.js +251 -0
- package/dist/acp-cli-DBWmJpUJ.js +924 -0
- package/dist/acp-cli-DG9nygBk.js +926 -0
- package/dist/agent-3MZVCC-N.js +702 -0
- package/dist/agent-IDE9krld.js +702 -0
- package/dist/agent-scope-DBl1We79.js +370 -0
- package/dist/agent-scope-DLfFOxP6.js +370 -0
- package/dist/agent-scope-e_oNRhGi.js +606 -0
- package/dist/archive-Dy3Ezb-5.js +85 -0
- package/dist/archive-iT9wNsml.js +85 -0
- package/dist/audit-Bj_dxNaD.js +1853 -0
- package/dist/audit-jaTyyQX1.js +1853 -0
- package/dist/auth-RTEHx2eI.js +192 -0
- package/dist/auth-health-BlspzqyF.js +149 -0
- package/dist/auth-health-CCM6Z3vK.js +149 -0
- package/dist/auth-phxCaFNX.js +192 -0
- package/dist/auth-profiles-DoD7YxsD.js +2939 -0
- package/dist/boolean-BsqeuxE6.js +30 -0
- package/dist/brew-CAcErcKz.js +46 -0
- package/dist/brew-CqnNFIkD.js +46 -0
- package/dist/build-info.json +5 -0
- package/dist/call-D2DXG0AC.js +278 -0
- package/dist/call-DqxlETxE.js +278 -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-BHpXOBuP.js +32 -0
- package/dist/channel-options-DUkxROTo.js +62 -0
- package/dist/channel-selection-BdigfMZZ.js +51 -0
- package/dist/channel-selection-D7jFTFec.js +51 -0
- package/dist/channel-summary-CobMoKN6.js +1120 -0
- package/dist/channel-summary-DS0kcHm2.js +1120 -0
- package/dist/channels-cli-D7ZNRrq7.js +1414 -0
- package/dist/channels-cli-DBwffwqw.js +1413 -0
- package/dist/channels-status-issues-C2UGSPvH.js +18 -0
- package/dist/channels-status-issues-Dxmd7zYk.js +18 -0
- package/dist/chrome-CwbWzmh4.js +1973 -0
- package/dist/chrome-SVqOMFxA.js +1953 -0
- package/dist/clack-prompter-k_egRADS.js +92 -0
- package/dist/clack-prompter-nSmn5cZ2.js +92 -0
- package/dist/cli/daemon-cli.js +2 -0
- package/dist/cli-C9xiWnx9.js +86 -0
- package/dist/cli-D6C9z94O.js +88 -0
- package/dist/cli-utils-B7iQwCY5.js +43 -0
- package/dist/cli-utils-CgOu3WAB.js +43 -0
- package/dist/client-BaTYzXOU.js +1617 -0
- package/dist/client-N6zH1neq.js +1617 -0
- package/dist/command-format-9IsYy-9N.js +52 -0
- package/dist/command-format-B0bnyrEA.js +38 -0
- package/dist/command-format-n_udBm8l.js +52 -0
- package/dist/command-options-DL1PhuUF.js +33 -0
- package/dist/commands-Dpeoos11.js +230 -0
- package/dist/completion-cli-B5nR7jt8.js +434 -0
- package/dist/completion-cli-CZ8zPqPs.js +773 -0
- package/dist/config-DSpb2aMV.js +4916 -0
- package/dist/config-IwiWafT3.js +5657 -0
- package/dist/config-dQK4rbfx.js +4916 -0
- package/dist/config-guard-DwIb5Y-v.js +5719 -0
- package/dist/configure-7M9mLC4o.js +896 -0
- package/dist/configure-CivCcvkA.js +896 -0
- package/dist/constants-C2T4hQIk.js +65 -0
- package/dist/constants-DBvu3LzZ.js +65 -0
- package/dist/control-service-BXC31sNw.js +61 -0
- package/dist/control-service-lVzEzp9f.js +61 -0
- package/dist/control-ui/apple-touch-icon.png +0 -0
- package/dist/control-ui/assets/index-DQ-7PWhX.js +7553 -0
- package/dist/control-ui/assets/index-DQ-7PWhX.js.map +1 -0
- package/dist/control-ui/assets/index-nlpH70Eh.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-DS8ytfYQ.js +455 -0
- package/dist/cron-cli-Djb3HUdz.js +457 -0
- package/dist/daemon-cli-KoaJ2nJX.js +758 -0
- package/dist/daemon-cli-ZQIKLvAO.js +758 -0
- package/dist/daemon-runtime-CHWbAfKs.js +517 -0
- package/dist/daemon-runtime-DEjUQVjL.js +517 -0
- package/dist/deliver-DVRzRmNN.js +2557 -0
- package/dist/deliver-OfX6bSYR.js +2587 -0
- package/dist/deliver-sPBfRlXT.js +2587 -0
- package/dist/deps-BSdWD2wF.js +27 -0
- package/dist/deps-CZOfeWEp.js +27 -0
- package/dist/devices-cli-DHSpDnCS.js +207 -0
- package/dist/devices-cli-b9iF_uOi.js +205 -0
- package/dist/directory-cli-D0dTuAem.js +247 -0
- package/dist/directory-cli-qniSxsHo.js +245 -0
- package/dist/dispatcher-DA3u3CwV.js +160 -0
- package/dist/dns-cli-C0JUNb9O.js +201 -0
- package/dist/dns-cli-DwwMpMuN.js +199 -0
- package/dist/docs-cli-BlFHCHDz.js +161 -0
- package/dist/docs-cli-BpSPrY3Y.js +160 -0
- package/dist/doctor-Da1XgFcW.js +2584 -0
- package/dist/doctor-qrtookj-.js +2585 -0
- package/dist/entry.js +1156 -0
- package/dist/env-B2Cd_6IS.js +32 -0
- package/dist/errors--S5IAxQx.js +1952 -0
- package/dist/exec-CLQSz0CI.js +246 -0
- package/dist/exec-CW_QjkBi.js +246 -0
- package/dist/exec-D7I5LU33.js +1099 -0
- package/dist/exec-approvals-CuXem6Li.js +1043 -0
- package/dist/exec-approvals-P7vwSw4O.js +1043 -0
- package/dist/exec-approvals-cli-Csgqkksl.js +386 -0
- package/dist/exec-approvals-cli-Dk4yHE2L.js +388 -0
- package/dist/extensionAPI.js +64497 -0
- package/dist/format-B7OjpGnt.js +34 -0
- package/dist/format-Dv1wz41T.js +34 -0
- package/dist/gateway-cli-CJ7H2DgV.js +17352 -0
- package/dist/gateway-cli-CrKl-bIH.js +17352 -0
- package/dist/gateway-rpc--CH0NWWR.js +28 -0
- package/dist/gateway-rpc-BPfCU2Vi.js +28 -0
- package/dist/github-copilot-auth-CcPEEb3Q.js +1190 -0
- package/dist/github-copilot-auth-h3beCc_l.js +1190 -0
- package/dist/github-copilot-token-C1sArkX4.js +103 -0
- package/dist/github-copilot-token-DL6Pou2p.js +103 -0
- package/dist/github-copilot-token-hMl1wyZp.js +103 -0
- package/dist/gmail-setup-utils-CnVYPhaQ.js +428 -0
- package/dist/gmail-setup-utils-pZ9NnOvB.js +428 -0
- package/dist/health-format-BcsR5dtU.js +1211 -0
- package/dist/health-format-Pl8qK65t.js +1212 -0
- package/dist/help-format-BzWwbeSF.js +17 -0
- package/dist/help-format-CUnac_bT.js +17 -0
- package/dist/helpers-5yebzF4C.js +25 -0
- package/dist/helpers-CQI-5xS9.js +25 -0
- package/dist/helpers-CzQjTUbz.js +10 -0
- package/dist/helpers-OUt4hxkS.js +10 -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-BKHTdsn4.js +1058 -0
- package/dist/hooks-cli-zkLY25DX.js +1060 -0
- package/dist/hooks-status-BETsyuUR.js +443 -0
- package/dist/hooks-status-nPgxLL-x.js +443 -0
- package/dist/image-BFNcQzKp.js +629 -0
- package/dist/image-CC_YKDB-.js +1421 -0
- package/dist/image-DAsWVn7Q.js +629 -0
- package/dist/index.js +5900 -0
- package/dist/installs-Byb3s_8P.js +425 -0
- package/dist/installs-CELeuogN.js +425 -0
- package/dist/is-main-B6kCyqsv.js +25 -0
- package/dist/is-main-CBExsRNQ.js +25 -0
- package/dist/links-Brcj2Oc-.js +15 -0
- package/dist/links-cf9h8BXu.js +15 -0
- package/dist/loader-CU4bkeKe.js +61131 -0
- package/dist/logging-5MtSkLpb.js +1 -0
- package/dist/logging-BJRQDTME.js +15 -0
- package/dist/logging-CD55MXc7.js +15 -0
- package/dist/logging-kuFzZMsG.js +1 -0
- package/dist/login-qr-BCr2GKX6.js +475 -0
- package/dist/login-qr-BMbekoZW.js +478 -0
- package/dist/login-qr-HIPJAnbT.js +478 -0
- package/dist/logs-cli-CM7-XOcZ.js +230 -0
- package/dist/logs-cli-aqjT7oHu.js +228 -0
- package/dist/manager-C5m5qpB0.js +2871 -0
- package/dist/manager-CtGvmGvM.js +2872 -0
- package/dist/manager-DpZlm3gk.js +2870 -0
- package/dist/manifest-registry-BdTzIlta.js +669 -0
- package/dist/manifest-registry-DVQHMj0y.js +669 -0
- package/dist/message-channel-CfYBy4y3.js +110 -0
- package/dist/message-channel-CvHWS3C2.js +110 -0
- package/dist/model-selection-Av0fLq51.js +2940 -0
- package/dist/model-selection-DuI_Ue9Q.js +2691 -0
- package/dist/models-cli-C0JOZ5oP.js +2541 -0
- package/dist/models-cli-gmkzOpbq.js +2543 -0
- package/dist/net-D4G66Xui.js +137 -0
- package/dist/net-YrbuVTd2.js +137 -0
- package/dist/node-cli-BND9LLkM.js +1457 -0
- package/dist/node-cli-DNRB94ib.js +1459 -0
- package/dist/node-service-DTgDFo7M.js +67 -0
- package/dist/node-service-JEBcPQat.js +67 -0
- package/dist/nodes-cli-BCWlqHyR.js +1208 -0
- package/dist/nodes-cli-DWSo5dX7.js +1210 -0
- package/dist/nodes-screen-CMvShBEB.js +157 -0
- package/dist/nodes-screen-Cok3-EJw.js +157 -0
- package/dist/note-C5M2AQOP.js +73 -0
- package/dist/note-DEz9ZK7G.js +73 -0
- package/dist/onboard-channels-B75LjjVZ.js +671 -0
- package/dist/onboard-channels-DJz2TusQ.js +671 -0
- package/dist/onboard-skills-ByHkU9nx.js +3615 -0
- package/dist/onboard-skills-Wknr7pxR.js +3615 -0
- package/dist/onboarding-BejDjkx5.js +3455 -0
- package/dist/openclaw-root-YSGWCNem.js +84 -0
- package/dist/openclaw-root-_zPXSqgo.js +84 -0
- package/dist/pairing-cli-CFqD3IdI.js +122 -0
- package/dist/pairing-cli-Cn5vt4oI.js +120 -0
- package/dist/pairing-store-BHzy16_t.js +391 -0
- package/dist/pairing-store-BOhO49Bi.js +391 -0
- package/dist/parse-BZz5lHzQ.js +23 -0
- package/dist/parse-Bw0oH-rT.js +23 -0
- package/dist/parse-log-line-BxDgv4Uo.js +44 -0
- package/dist/parse-log-line-CUrpqe1w.js +44 -0
- package/dist/parse-timeout-D1XX_zN_.js +16 -0
- package/dist/parse-timeout-Du-wHHNi.js +16 -0
- package/dist/path-env-DQ-mM2ya.js +77 -0
- package/dist/path-env-eQ-HoQtS.js +77 -0
- package/dist/paths-C3yk0MGu.js +43 -0
- package/dist/paths-C90k-Dud.js +166 -0
- package/dist/paths-CGrNQEMk.js +201 -0
- package/dist/paths-D2ytuv-2.js +201 -0
- package/dist/paths-Dlp4VNXa.js +40 -0
- package/dist/paths-KUslkJRs.js +43 -0
- package/dist/pi-embedded-helpers-B7ARjDEK.js +1298 -0
- package/dist/pi-embedded-helpers-CQ9sq3Uu.js +8475 -0
- package/dist/pi-embedded-helpers-FPVRDeKf.js +1298 -0
- package/dist/pi-model-discovery-DWTTaAgY.js +20 -0
- package/dist/pi-model-discovery-EhM2JAQo.js +20 -0
- package/dist/pi-model-discovery-EwKVHlZB.js +20 -0
- package/dist/pi-tools.policy-Du4RZy9R.js +230 -0
- package/dist/plugin-auto-enable-EBxTHjFJ.js +461 -0
- package/dist/plugin-auto-enable-RwRwIUKC.js +461 -0
- package/dist/plugin-sdk/index.d.ts +8453 -0
- package/dist/plugin-sdk/index.js +23445 -0
- package/dist/plugin-sdk/pi-model-discovery-Dw3A6oXH.js +37 -0
- package/dist/plugins-BI-p2ba9.js +495 -0
- package/dist/plugins-Dk4UBZwz.js +496 -0
- package/dist/plugins-cli-CMg0G56J.js +441 -0
- package/dist/plugins-cli-CX7QeUjq.js +443 -0
- package/dist/ports-nXmd4Efh.js +96 -0
- package/dist/program-EAMJAB_2.js +191 -0
- package/dist/progress-D-Oc-KAH.js +133 -0
- package/dist/progress-DTEUicRP.js +133 -0
- package/dist/prompt-style-BBlJlXtd.js +9 -0
- package/dist/prompt-style-BntC_Eoo.js +9 -0
- package/dist/prompts-C2D9_VZC.js +10 -0
- package/dist/prompts-FbZThK8w.js +10 -0
- package/dist/pw-ai-D2jD_dho.js +1651 -0
- package/dist/pw-ai-D6JUaD41.js +1650 -0
- package/dist/pw-ai-ba2bHPGA.js +1649 -0
- package/dist/qmd-manager-B-ijyM7o.js +615 -0
- package/dist/qmd-manager-C_Jah5eo.js +618 -0
- package/dist/qmd-manager-xo4abL0u.js +618 -0
- package/dist/redact-1PNP01B_.js +97 -0
- package/dist/redact-BIMJ3ntQ.js +94 -0
- package/dist/redact-CVRUv382.js +97 -0
- package/dist/register.subclis-CJGimm3-.js +348 -0
- package/dist/reply-DfepuqG0.js +61133 -0
- package/dist/rolldown-runtime-Cbj13DAv.js +20 -0
- package/dist/routes-DkckwrRx.js +2410 -0
- package/dist/routes-Q42qtNl1.js +2410 -0
- package/dist/rpc-B4lvrGrD.js +95 -0
- package/dist/rpc-CbWcXAQK.js +95 -0
- package/dist/run-main-JFY3X4Xh.js +194 -0
- package/dist/sandbox-BGqDfFaH.js +2945 -0
- package/dist/sandbox-D_Tt3WRq.js +2945 -0
- package/dist/sandbox-cli-CaxqKiTq.js +461 -0
- package/dist/sandbox-cli-DA0Cbrzl.js +463 -0
- package/dist/security-cli-BZjA_GAD.js +508 -0
- package/dist/security-cli-Ct-pfF2h.js +506 -0
- package/dist/server-context-B9ez46MY.js +740 -0
- package/dist/server-context-C53lhEx_.js +740 -0
- package/dist/server-node-events-Cb6QOeDH.js +218 -0
- package/dist/server-node-events-DONmQvJg.js +216 -0
- package/dist/service-C0ccl5rU.js +680 -0
- package/dist/service-audit-AsnhO40e.js +542 -0
- package/dist/service-audit-BM-iyLL7.js +542 -0
- package/dist/service-mrQPgOXl.js +680 -0
- package/dist/session-cost-usage-B3HzifR9.js +692 -0
- package/dist/session-cost-usage-DH3c4xJA.js +692 -0
- package/dist/session-key-C-ig2pxJ.js +177 -0
- package/dist/session-key-CYpWeuht.js +177 -0
- package/dist/shared-CBcCIWC0.js +74 -0
- package/dist/shared-CtNMbLRE.js +150 -0
- package/dist/shared-DCh7fkR2.js +150 -0
- package/dist/shared-Na5zjEUc.js +74 -0
- package/dist/skill-scanner-AfOudYI1.js +255 -0
- package/dist/skill-scanner-BoGjHXUZ.js +255 -0
- package/dist/skills-7V483a6m.js +693 -0
- package/dist/skills-CsZRBUj0.js +694 -0
- package/dist/skills-cli-DQaq5LBX.js +290 -0
- package/dist/skills-cli-dVugbaAb.js +288 -0
- package/dist/skills-status-4_4zVBvV.js +187 -0
- package/dist/skills-status-cD4rfMR9.js +187 -0
- package/dist/sqlite-C4DljFNL.js +215 -0
- package/dist/sqlite-CvQzxS7q.js +197 -0
- package/dist/sqlite-Dnmf3LS7.js +215 -0
- package/dist/status-BakhDLuG.js +27 -0
- package/dist/status-BqtiImKF.js +21 -0
- package/dist/status-DHPz4Mg_.js +3364 -0
- package/dist/status-DSoYX3Ep.js +27 -0
- package/dist/status-Drziap9H.js +21 -0
- package/dist/subsystem-Btuh5yZj.js +834 -0
- package/dist/system-cli-CUQswQPX.js +83 -0
- package/dist/system-cli-Cz7in_Xr.js +81 -0
- package/dist/systemd-CFHiVC1D.js +438 -0
- package/dist/systemd-hints-CgQqk98i.js +19 -0
- package/dist/systemd-hints-DKVCFZS3.js +19 -0
- package/dist/systemd-kY3NnWdi.js +438 -0
- package/dist/systemd-linger-CFK5jDdq.js +75 -0
- package/dist/systemd-linger-CxBBzOjC.js +75 -0
- package/dist/table-DAOPkdc_.js +279 -0
- package/dist/table-DDQGlZSe.js +279 -0
- package/dist/tailnet-CZq_ZSNX.js +42 -0
- package/dist/tailnet-D5wOWpOX.js +42 -0
- package/dist/tailscale-BY0igR48.js +252 -0
- package/dist/tailscale-CCLcQalf.js +225 -0
- package/dist/tool-display-B2rS2o6B.js +795 -0
- package/dist/tool-display-Zbh1CRw5.js +795 -0
- package/dist/transcript-events-BOK6eOU8.js +17 -0
- package/dist/transcript-events-D2kT5WSz.js +17 -0
- package/dist/transcript-events-JLH5W4He.js +17 -0
- package/dist/tui-DFVs6pRO.js +2672 -0
- package/dist/tui-cli-CBKZVd1C.js +58 -0
- package/dist/tui-cli-DexeJOgZ.js +56 -0
- package/dist/tui-qPHLsB-x.js +2672 -0
- package/dist/update-B2q3duJD.js +317 -0
- package/dist/update-DNnej3C6.js +317 -0
- package/dist/update-cli-BPUtZjbl.js +1031 -0
- package/dist/update-cli-ehTYbpaU.js +1032 -0
- package/dist/update-runner-BfncKnU6.js +1375 -0
- package/dist/update-runner-DAeygRSU.js +1375 -0
- package/dist/usage-format-C4JfTbSp.js +36 -0
- package/dist/usage-format-DvowRSs-.js +36 -0
- package/dist/utils-7IMqr8vR.js +189 -0
- package/dist/utils-D7jskKIf.js +192 -0
- package/dist/wallet-manager-7KHKMCbT.js +264 -0
- package/dist/wallet-manager-CT1ykq2O.js +264 -0
- package/dist/webhooks-cli-C0CV-1jG.js +310 -0
- package/dist/webhooks-cli-DT16BygW.js +312 -0
- package/dist/widearea-dns-BJZTAyT3.js +127 -0
- package/dist/widearea-dns-Dk82I4Xa.js +127 -0
- package/dist/ws-6_dFpKWQ.js +13 -0
- package/dist/ws-D64QKPe6.js +13 -0
- package/dist/ws-log-BhQmGM0R.js +267 -0
- package/dist/ws-log-DsyLcTqD.js +267 -0
- package/dist/wsl-C24YfxH9.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 +468 -0
- package/docs/automation/cron-vs-heartbeat.md +282 -0
- package/docs/automation/gmail-pubsub.md +256 -0
- package/docs/automation/poll.md +69 -0
- package/docs/automation/webhook.md +163 -0
- package/docs/bedrock.md +176 -0
- package/docs/brave-search.md +41 -0
- package/docs/broadcast-groups.md +442 -0
- package/docs/channels/bluebubbles.md +338 -0
- package/docs/channels/discord.md +476 -0
- package/docs/channels/feishu.md +577 -0
- package/docs/channels/googlechat.md +250 -0
- package/docs/channels/grammy.md +31 -0
- package/docs/channels/imessage.md +299 -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 +233 -0
- package/docs/channels/mattermost.md +138 -0
- package/docs/channels/msteams.md +768 -0
- package/docs/channels/nextcloud-talk.md +136 -0
- package/docs/channels/nostr.md +233 -0
- package/docs/channels/signal.md +202 -0
- package/docs/channels/slack.md +548 -0
- package/docs/channels/telegram.md +769 -0
- package/docs/channels/tlon.md +132 -0
- package/docs/channels/troubleshooting.md +29 -0
- package/docs/channels/twitch.md +379 -0
- package/docs/channels/whatsapp.md +404 -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 +42 -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 +129 -0
- package/docs/concepts/channel-routing.md +114 -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/group-messages.md +84 -0
- package/docs/concepts/groups.md +373 -0
- package/docs/concepts/markdown-formatting.md +130 -0
- package/docs/concepts/memory.md +546 -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 +83 -0
- package/docs/debugging.md +162 -0
- package/docs/diagnostics/flags.md +91 -0
- package/docs/docs.json +1736 -0
- package/docs/environment.md +81 -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 +167 -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 +3411 -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 +362 -0
- package/docs/gateway/index.md +328 -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/formal-verification.md +164 -0
- package/docs/gateway/security/index.md +825 -0
- package/docs/gateway/tailscale.md +127 -0
- package/docs/gateway/tools-invoke-http-api.md +85 -0
- package/docs/gateway/troubleshooting.md +767 -0
- package/docs/help/faq.md +2829 -0
- package/docs/help/index.md +21 -0
- package/docs/help/troubleshooting.md +98 -0
- package/docs/hooks/soul-evil.md +69 -0
- package/docs/hooks.md +913 -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 +503 -0
- package/docs/install/hetzner.md +330 -0
- package/docs/install/index.md +187 -0
- package/docs/install/installer.md +123 -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 +78 -0
- package/docs/install/northflank.mdx +53 -0
- package/docs/install/railway.mdx +99 -0
- package/docs/install/render.mdx +165 -0
- package/docs/install/uninstall.md +128 -0
- package/docs/install/updating.md +228 -0
- package/docs/logging.md +350 -0
- package/docs/multi-agent-sandbox-tools.md +395 -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 +341 -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/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 +148 -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 +102 -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 +44 -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 +41 -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/plugin.md +664 -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/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 +63 -0
- package/docs/providers/minimax.md +208 -0
- package/docs/providers/models.md +51 -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/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 +124 -0
- package/docs/reference/RELEASING.md +120 -0
- package/docs/reference/api-usage-costs.md +137 -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 +27 -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 +22 -0
- package/docs/reference/test.md +50 -0
- package/docs/reference/transcript-hygiene.md +129 -0
- package/docs/reference/wizard.md +268 -0
- package/docs/scripts.md +28 -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/pairing.md +86 -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 +244 -0
- package/docs/start/wizard.md +108 -0
- package/docs/style.css +3 -0
- package/docs/testing.md +368 -0
- package/docs/token-use.md +112 -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 +68 -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/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/tui.md +162 -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/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/poll.md +76 -0
- package/docs/zh-CN/automation/webhook.md +163 -0
- package/docs/zh-CN/bedrock.md +170 -0
- package/docs/zh-CN/brave-search.md +48 -0
- package/docs/zh-CN/broadcast-groups.md +449 -0
- package/docs/zh-CN/channels/bluebubbles.md +271 -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/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/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/channel-routing.md +117 -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/group-messages.md +91 -0
- package/docs/zh-CN/concepts/groups.md +379 -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/debugging.md +160 -0
- package/docs/zh-CN/diagnostics/flags.md +98 -0
- package/docs/zh-CN/environment.md +88 -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/formal-verification.md +169 -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/faq.md +2628 -0
- package/docs/zh-CN/help/index.md +28 -0
- package/docs/zh-CN/help/troubleshooting.md +104 -0
- package/docs/zh-CN/hooks/soul-evil.md +72 -0
- package/docs/zh-CN/hooks.md +919 -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 +85 -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/multi-agent-sandbox-tools.md +401 -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/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/plugin.md +639 -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/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/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 +35 -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/transcript-hygiene.md +109 -0
- package/docs/zh-CN/scripts.md +35 -0
- package/docs/zh-CN/security/formal-verification.md +171 -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/pairing.md +89 -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/testing.md +375 -0
- package/docs/zh-CN/token-use.md +119 -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/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/tui.md +166 -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/webchat.md +56 -0
- package/extensions/blockchain/cryptoclaw.plugin.json +17 -0
- package/extensions/blockchain/index.ts +284 -0
- package/extensions/blockchain/node_modules/.bin/cryptoclaw +21 -0
- package/extensions/blockchain/node_modules/.bin/tsc +21 -0
- package/extensions/blockchain/node_modules/.bin/tsserver +21 -0
- package/extensions/blockchain/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -0
- package/extensions/blockchain/package.json +16 -0
- package/extensions/blockchain/src/evm/chains.ts +150 -0
- package/extensions/blockchain/src/evm/services/abi/erc1155.ts +128 -0
- package/extensions/blockchain/src/evm/services/abi/erc20.ts +96 -0
- package/extensions/blockchain/src/evm/services/abi/erc721.ts +130 -0
- package/extensions/blockchain/src/evm/services/abi/erc8004-identity.ts +158 -0
- package/extensions/blockchain/src/evm/services/abi/erc8004-reputation.ts +120 -0
- package/extensions/blockchain/src/evm/services/abi/router-v2.ts +115 -0
- package/extensions/blockchain/src/evm/services/abi/router-v3.ts +81 -0
- package/extensions/blockchain/src/evm/services/agent-identity-config.test.ts +117 -0
- package/extensions/blockchain/src/evm/services/agent-identity-config.ts +75 -0
- package/extensions/blockchain/src/evm/services/agent-identity-store.ts +37 -0
- package/extensions/blockchain/src/evm/services/agent-identity.ts +262 -0
- package/extensions/blockchain/src/evm/services/balance.ts +76 -0
- package/extensions/blockchain/src/evm/services/blocks.ts +25 -0
- package/extensions/blockchain/src/evm/services/clients.ts +48 -0
- package/extensions/blockchain/src/evm/services/contracts.ts +52 -0
- package/extensions/blockchain/src/evm/services/dex-config.test.ts +145 -0
- package/extensions/blockchain/src/evm/services/dex-config.ts +164 -0
- package/extensions/blockchain/src/evm/services/ens.ts +27 -0
- package/extensions/blockchain/src/evm/services/security.test.ts +127 -0
- package/extensions/blockchain/src/evm/services/security.ts +110 -0
- package/extensions/blockchain/src/evm/services/swap.test.ts +204 -0
- package/extensions/blockchain/src/evm/services/swap.ts +534 -0
- package/extensions/blockchain/src/evm/services/tokens.ts +118 -0
- package/extensions/blockchain/src/evm/services/transactions.ts +54 -0
- package/extensions/blockchain/src/evm/services/transfer.ts +174 -0
- package/extensions/blockchain/src/evm/services/utils.ts +18 -0
- package/extensions/blockchain/src/evm/tools/block-tools.ts +34 -0
- package/extensions/blockchain/src/evm/tools/contract-tools.ts +138 -0
- package/extensions/blockchain/src/evm/tools/identity-tools.ts +305 -0
- package/extensions/blockchain/src/evm/tools/network-tools.ts +58 -0
- package/extensions/blockchain/src/evm/tools/nft-tools.ts +103 -0
- package/extensions/blockchain/src/evm/tools/security-tools.ts +38 -0
- package/extensions/blockchain/src/evm/tools/swap-tools.ts +314 -0
- package/extensions/blockchain/src/evm/tools/token-tools.ts +167 -0
- package/extensions/blockchain/src/evm/tools/tx-tools.ts +73 -0
- package/extensions/blockchain/src/evm/tools/wallet-tools.ts +196 -0
- package/extensions/blockchain/src/tx-gate/confirmation.ts +55 -0
- package/extensions/blockchain/src/tx-gate/spending-limits.ts +94 -0
- package/extensions/blockchain/src/wallet/active-wallet.ts +27 -0
- package/extensions/blockchain/src/wallet/key-guard.test.ts +156 -0
- package/extensions/blockchain/src/wallet/key-guard.ts +80 -0
- package/extensions/blockchain/src/wallet/keystore.ts +88 -0
- package/extensions/blockchain/src/wallet/wallet-manager.test.ts +215 -0
- package/extensions/blockchain/src/wallet/wallet-manager.ts +212 -0
- package/extensions/copilot-proxy/README.md +24 -0
- package/extensions/copilot-proxy/index.ts +149 -0
- package/extensions/copilot-proxy/node_modules/.bin/cryptoclaw +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/cryptoclaw +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 +227 -0
- package/extensions/diagnostics-otel/src/service.ts +635 -0
- package/extensions/discord/index.ts +17 -0
- package/extensions/discord/node_modules/.bin/cryptoclaw +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/imessage/index.ts +17 -0
- package/extensions/imessage/node_modules/.bin/cryptoclaw +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/memory-core/index.ts +38 -0
- package/extensions/memory-core/node_modules/.bin/cryptoclaw +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 +295 -0
- package/extensions/memory-lancedb/index.ts +608 -0
- package/extensions/memory-lancedb/node_modules/.bin/arrow2csv +21 -0
- package/extensions/memory-lancedb/node_modules/.bin/cryptoclaw +21 -0
- package/extensions/memory-lancedb/node_modules/.bin/openai +21 -0
- package/extensions/memory-lancedb/openclaw.plugin.json +60 -0
- package/extensions/memory-lancedb/package.json +19 -0
- package/extensions/nostr/CHANGELOG.md +80 -0
- package/extensions/nostr/README.md +136 -0
- package/extensions/nostr/index.ts +68 -0
- package/extensions/nostr/node_modules/.bin/cryptoclaw +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 +519 -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/signal/index.ts +17 -0
- package/extensions/signal/node_modules/.bin/cryptoclaw +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/cryptoclaw +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/cryptoclaw +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/voice-call/CHANGELOG.md +115 -0
- package/extensions/voice-call/README.md +139 -0
- package/extensions/voice-call/index.ts +493 -0
- package/extensions/voice-call/node_modules/.bin/cryptoclaw +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 +491 -0
- package/extensions/whatsapp/index.ts +17 -0
- package/extensions/whatsapp/node_modules/.bin/cryptoclaw +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/package.json +242 -0
- package/skills/aave-bsc/SKILL.md +55 -0
- package/skills/agent-identity/SKILL.md +48 -0
- package/skills/bird/SKILL.md +224 -0
- package/skills/canvas/SKILL.md +204 -0
- package/skills/coding-agent/SKILL.md +285 -0
- package/skills/coingecko/SKILL.md +114 -0
- package/skills/contract-deployer/SKILL.md +42 -0
- package/skills/debank/SKILL.md +143 -0
- package/skills/defi-dashboard/SKILL.md +49 -0
- package/skills/defillama/SKILL.md +117 -0
- package/skills/discord/SKILL.md +578 -0
- package/skills/dune/SKILL.md +178 -0
- package/skills/etherscan/SKILL.md +117 -0
- package/skills/four-meme/SKILL.md +80 -0
- package/skills/gas-tracker/SKILL.md +43 -0
- package/skills/github/SKILL.md +77 -0
- package/skills/macro-calendar/SKILL.md +132 -0
- package/skills/market-data/SKILL.md +44 -0
- package/skills/nft-manager/SKILL.md +46 -0
- package/skills/portfolio-tracker/SKILL.md +55 -0
- package/skills/security-check/SKILL.md +153 -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/token-swap/SKILL.md +71 -0
- package/skills/wallet-manager/SKILL.md +65 -0
- package/skills/whale-watcher/SKILL.md +43 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { OpenClawPluginApi } from "cryptoclaw/plugin-sdk";
|
|
2
|
+
import type { WalletManager } from "../../wallet/wallet-manager.js";
|
|
3
|
+
import { DEFAULT_CHAIN_ID, resolveChainId } from "../chains.js";
|
|
4
|
+
import { estimateGas, getTransaction, getTransactionReceipt } from "../services/transactions.js";
|
|
5
|
+
import { formatJson } from "../services/utils.js";
|
|
6
|
+
|
|
7
|
+
export function registerTxTools(api: OpenClawPluginApi, _walletManager: WalletManager) {
|
|
8
|
+
api.registerTool({
|
|
9
|
+
name: "get_transaction",
|
|
10
|
+
description: "Get details of a transaction by its hash",
|
|
11
|
+
parameters: {
|
|
12
|
+
type: "object",
|
|
13
|
+
properties: {
|
|
14
|
+
txHash: { type: "string", description: "Transaction hash (0x-prefixed)" },
|
|
15
|
+
network: { type: "string", description: 'Network name or chain ID (default: "bsc")' },
|
|
16
|
+
},
|
|
17
|
+
required: ["txHash"],
|
|
18
|
+
},
|
|
19
|
+
async execute(_toolCallId: string, params: { txHash: string; network?: string }) {
|
|
20
|
+
const chainId = params.network ? resolveChainId(params.network) : DEFAULT_CHAIN_ID;
|
|
21
|
+
const tx = await getTransaction(params.txHash as `0x${string}`, chainId);
|
|
22
|
+
return { content: [{ type: "text", text: formatJson(tx) }] };
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
api.registerTool({
|
|
27
|
+
name: "get_transaction_receipt",
|
|
28
|
+
description: "Get the receipt (status, gas used, logs) of a transaction",
|
|
29
|
+
parameters: {
|
|
30
|
+
type: "object",
|
|
31
|
+
properties: {
|
|
32
|
+
txHash: { type: "string", description: "Transaction hash (0x-prefixed)" },
|
|
33
|
+
network: { type: "string", description: 'Network name or chain ID (default: "bsc")' },
|
|
34
|
+
},
|
|
35
|
+
required: ["txHash"],
|
|
36
|
+
},
|
|
37
|
+
async execute(_toolCallId: string, params: { txHash: string; network?: string }) {
|
|
38
|
+
const chainId = params.network ? resolveChainId(params.network) : DEFAULT_CHAIN_ID;
|
|
39
|
+
const receipt = await getTransactionReceipt(params.txHash as `0x${string}`, chainId);
|
|
40
|
+
return { content: [{ type: "text", text: formatJson(receipt) }] };
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
api.registerTool({
|
|
45
|
+
name: "estimate_gas",
|
|
46
|
+
description: "Estimate gas cost for a transaction",
|
|
47
|
+
parameters: {
|
|
48
|
+
type: "object",
|
|
49
|
+
properties: {
|
|
50
|
+
to: { type: "string", description: "Destination address" },
|
|
51
|
+
value: { type: "string", description: "Value in wei (optional)" },
|
|
52
|
+
data: { type: "string", description: "Transaction data (hex, optional)" },
|
|
53
|
+
network: { type: "string", description: 'Network name or chain ID (default: "bsc")' },
|
|
54
|
+
},
|
|
55
|
+
required: ["to"],
|
|
56
|
+
},
|
|
57
|
+
async execute(
|
|
58
|
+
_toolCallId: string,
|
|
59
|
+
params: { to: string; value?: string; data?: string; network?: string },
|
|
60
|
+
) {
|
|
61
|
+
const chainId = params.network ? resolveChainId(params.network) : DEFAULT_CHAIN_ID;
|
|
62
|
+
const result = await estimateGas(
|
|
63
|
+
{
|
|
64
|
+
to: params.to,
|
|
65
|
+
value: params.value ? BigInt(params.value) : undefined,
|
|
66
|
+
data: params.data as `0x${string}` | undefined,
|
|
67
|
+
},
|
|
68
|
+
chainId,
|
|
69
|
+
);
|
|
70
|
+
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import type { OpenClawPluginApi } from "cryptoclaw/plugin-sdk";
|
|
2
|
+
import type { WalletManager } from "../../wallet/wallet-manager.js";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Register wallet management tools for the agent.
|
|
6
|
+
*
|
|
7
|
+
* Security design:
|
|
8
|
+
* - wallet_export is CLI-only (not registered here) — private keys never enter agent context
|
|
9
|
+
* - wallet_import is CLI-only — private keys should never be pasted in chat
|
|
10
|
+
* - wallet_create / wallet_delete / wallet_unlock accept passphrase as a tool parameter
|
|
11
|
+
* so the agent can ask the user in chat (works across gateway/TUI/messaging channels)
|
|
12
|
+
* - Passphrases are listed in SENSITIVE_PARAM_NAMES and stripped from persisted context
|
|
13
|
+
* - Only safe metadata operations (list, switch) need no passphrase
|
|
14
|
+
*/
|
|
15
|
+
export function registerWalletTools(api: OpenClawPluginApi, walletManager: WalletManager) {
|
|
16
|
+
api.registerTool({
|
|
17
|
+
name: "wallet_create",
|
|
18
|
+
description:
|
|
19
|
+
"Create a new blockchain wallet with a random private key. " +
|
|
20
|
+
"Ask the user for a passphrase in chat, then call this tool with it.",
|
|
21
|
+
parameters: {
|
|
22
|
+
type: "object",
|
|
23
|
+
properties: {
|
|
24
|
+
label: {
|
|
25
|
+
type: "string",
|
|
26
|
+
description: "Human-friendly name for the wallet (e.g. 'Trading', 'Savings')",
|
|
27
|
+
},
|
|
28
|
+
passphrase: {
|
|
29
|
+
type: "string",
|
|
30
|
+
description: "Passphrase to encrypt the wallet (ask the user in chat first)",
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
required: ["label", "passphrase"],
|
|
34
|
+
},
|
|
35
|
+
async execute(_toolCallId: string, params: { label: string; passphrase: string }) {
|
|
36
|
+
try {
|
|
37
|
+
const wallet = await walletManager.createWallet(params.label, params.passphrase);
|
|
38
|
+
return {
|
|
39
|
+
content: [
|
|
40
|
+
{
|
|
41
|
+
type: "text",
|
|
42
|
+
text: JSON.stringify(
|
|
43
|
+
{
|
|
44
|
+
message: "Wallet created successfully",
|
|
45
|
+
label: wallet.label,
|
|
46
|
+
address: wallet.address,
|
|
47
|
+
// Intentionally omit: id, privateKey, passphrase
|
|
48
|
+
},
|
|
49
|
+
null,
|
|
50
|
+
2,
|
|
51
|
+
),
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
};
|
|
55
|
+
} catch (err) {
|
|
56
|
+
const msg = err instanceof Error ? err.message : "Unknown error";
|
|
57
|
+
return {
|
|
58
|
+
content: [{ type: "text", text: `Failed to create wallet: ${msg}` }],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
// wallet_import is NOT registered as an agent tool.
|
|
65
|
+
// Users must use `cryptoclaw wallet import` in the terminal.
|
|
66
|
+
// This prevents private keys from ever flowing through the agent context.
|
|
67
|
+
|
|
68
|
+
api.registerTool({
|
|
69
|
+
name: "wallet_list",
|
|
70
|
+
description: "List all wallets with addresses and labels. Does not expose private keys.",
|
|
71
|
+
parameters: { type: "object", properties: {} },
|
|
72
|
+
async execute(_toolCallId: string) {
|
|
73
|
+
const { wallets, activeWalletId } = walletManager.listWallets();
|
|
74
|
+
return {
|
|
75
|
+
content: [
|
|
76
|
+
{
|
|
77
|
+
type: "text",
|
|
78
|
+
text: JSON.stringify(
|
|
79
|
+
{
|
|
80
|
+
wallets: wallets.map((w) => ({
|
|
81
|
+
label: w.label,
|
|
82
|
+
address: w.address,
|
|
83
|
+
isActive: w.id === activeWalletId,
|
|
84
|
+
createdAt: w.createdAt,
|
|
85
|
+
// Intentionally omit: id (internal detail)
|
|
86
|
+
})),
|
|
87
|
+
total: wallets.length,
|
|
88
|
+
},
|
|
89
|
+
null,
|
|
90
|
+
2,
|
|
91
|
+
),
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
};
|
|
95
|
+
},
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
api.registerTool({
|
|
99
|
+
name: "wallet_switch",
|
|
100
|
+
description: "Switch the active wallet used for blockchain operations",
|
|
101
|
+
parameters: {
|
|
102
|
+
type: "object",
|
|
103
|
+
properties: {
|
|
104
|
+
label: { type: "string", description: "Wallet label to switch to" },
|
|
105
|
+
},
|
|
106
|
+
required: ["label"],
|
|
107
|
+
},
|
|
108
|
+
async execute(_toolCallId: string, params: { label: string }) {
|
|
109
|
+
try {
|
|
110
|
+
const wallet = walletManager.switchWallet(params.label);
|
|
111
|
+
return {
|
|
112
|
+
content: [
|
|
113
|
+
{
|
|
114
|
+
type: "text",
|
|
115
|
+
text: `Switched to wallet "${wallet.label}" (${wallet.address})`,
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
};
|
|
119
|
+
} catch (err) {
|
|
120
|
+
const msg = err instanceof Error ? err.message : "Unknown error";
|
|
121
|
+
return {
|
|
122
|
+
content: [{ type: "text", text: `Failed to switch wallet: ${msg}` }],
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
api.registerTool({
|
|
129
|
+
name: "wallet_delete",
|
|
130
|
+
description:
|
|
131
|
+
"Delete a wallet permanently. Ask the user for their passphrase in chat to confirm, then call this tool with it.",
|
|
132
|
+
parameters: {
|
|
133
|
+
type: "object",
|
|
134
|
+
properties: {
|
|
135
|
+
label: { type: "string", description: "Wallet label to delete" },
|
|
136
|
+
passphrase: {
|
|
137
|
+
type: "string",
|
|
138
|
+
description: "Wallet passphrase to confirm deletion (ask the user in chat first)",
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
required: ["label", "passphrase"],
|
|
142
|
+
},
|
|
143
|
+
async execute(_toolCallId: string, params: { label: string; passphrase: string }) {
|
|
144
|
+
try {
|
|
145
|
+
await walletManager.deleteWallet(params.label, params.passphrase);
|
|
146
|
+
return {
|
|
147
|
+
content: [{ type: "text", text: `Wallet "${params.label}" deleted successfully.` }],
|
|
148
|
+
};
|
|
149
|
+
} catch (err) {
|
|
150
|
+
const msg = err instanceof Error ? err.message : "Unknown error";
|
|
151
|
+
return {
|
|
152
|
+
content: [{ type: "text", text: `Failed to delete wallet: ${msg}` }],
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
api.registerTool({
|
|
159
|
+
name: "wallet_unlock",
|
|
160
|
+
description:
|
|
161
|
+
"Unlock the active wallet. Ask the user for their passphrase in chat, then call this tool with it. " +
|
|
162
|
+
"Call this when a transaction fails with 'Passphrase required to unlock wallet'.",
|
|
163
|
+
parameters: {
|
|
164
|
+
type: "object",
|
|
165
|
+
properties: {
|
|
166
|
+
passphrase: {
|
|
167
|
+
type: "string",
|
|
168
|
+
description: "Wallet passphrase (ask the user in chat first)",
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
required: ["passphrase"],
|
|
172
|
+
},
|
|
173
|
+
async execute(_toolCallId: string, params: { passphrase: string }) {
|
|
174
|
+
try {
|
|
175
|
+
await walletManager.getActivePrivateKey(params.passphrase);
|
|
176
|
+
return {
|
|
177
|
+
content: [
|
|
178
|
+
{
|
|
179
|
+
type: "text",
|
|
180
|
+
text: "Wallet unlocked successfully. You can now proceed with the transaction.",
|
|
181
|
+
},
|
|
182
|
+
],
|
|
183
|
+
};
|
|
184
|
+
} catch (err) {
|
|
185
|
+
const msg = err instanceof Error ? err.message : "Unknown error";
|
|
186
|
+
return {
|
|
187
|
+
content: [{ type: "text", text: `Failed to unlock wallet: ${msg}` }],
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
// wallet_export is NOT registered as an agent tool.
|
|
194
|
+
// Users must use `cryptoclaw wallet export <label>` in the terminal.
|
|
195
|
+
// This is the most critical security boundary — private keys must NEVER enter agent context.
|
|
196
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/** Tool names that require transaction confirmation before execution. */
|
|
2
|
+
export const STATE_CHANGING_TOOLS = new Set([
|
|
3
|
+
"transfer_native_token",
|
|
4
|
+
"transfer_erc20",
|
|
5
|
+
"approve_token_spending",
|
|
6
|
+
"transfer_nft",
|
|
7
|
+
"transfer_erc1155",
|
|
8
|
+
"write_contract",
|
|
9
|
+
"swap_execute",
|
|
10
|
+
"wallet_delete",
|
|
11
|
+
"agent_register",
|
|
12
|
+
"agent_set_wallet",
|
|
13
|
+
// wallet_export is CLI-only — not an agent tool, no confirmation needed here
|
|
14
|
+
]);
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Check if a tool call requires user confirmation.
|
|
18
|
+
* Used in the before_tool_call hook to gate state-changing operations.
|
|
19
|
+
*/
|
|
20
|
+
export function requiresConfirmation(toolName: string): boolean {
|
|
21
|
+
return STATE_CHANGING_TOOLS.has(toolName);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Format a human-readable transaction summary for confirmation.
|
|
26
|
+
*/
|
|
27
|
+
export function formatConfirmationPrompt(
|
|
28
|
+
toolName: string,
|
|
29
|
+
params: Record<string, unknown>,
|
|
30
|
+
): string {
|
|
31
|
+
switch (toolName) {
|
|
32
|
+
case "transfer_native_token":
|
|
33
|
+
return `Transfer ${String(params.amount)} native tokens to ${String(params.to)} on ${String(params.network) || "default network"}`;
|
|
34
|
+
case "transfer_erc20":
|
|
35
|
+
return `Transfer ${String(params.amount)} of token ${String(params.tokenAddress)} to ${String(params.to)} on ${String(params.network) || "default network"}`;
|
|
36
|
+
case "approve_token_spending":
|
|
37
|
+
return `Approve ${String(params.spender)} to spend ${String(params.amount)} of token ${String(params.tokenAddress)}`;
|
|
38
|
+
case "transfer_nft":
|
|
39
|
+
return `Transfer NFT #${String(params.tokenId)} from ${String(params.nftAddress)} to ${String(params.to)}`;
|
|
40
|
+
case "transfer_erc1155":
|
|
41
|
+
return `Transfer ${String(params.amount)} of token #${String(params.tokenId)} from ${String(params.tokenAddress)} to ${String(params.to)}`;
|
|
42
|
+
case "write_contract":
|
|
43
|
+
return `Call ${String(params.functionName)}() on contract ${String(params.contractAddress)}`;
|
|
44
|
+
case "swap_execute":
|
|
45
|
+
return `Swap ${String(params.amountIn)} ${params.tokenIn === "native" ? "native token" : String(params.tokenIn)} → ${params.tokenOut === "native" ? "native token" : String(params.tokenOut)} on ${String(params.network) || "bsc"}`;
|
|
46
|
+
case "wallet_delete":
|
|
47
|
+
return `Delete wallet "${String(params.label)}"`;
|
|
48
|
+
case "agent_register":
|
|
49
|
+
return `Register agent identity on ${String(params.network) || "bsc"} with URI: ${String(params.agentURI)}`;
|
|
50
|
+
case "agent_set_wallet":
|
|
51
|
+
return `Set agent #${String(params.agentId) || "stored"} wallet to ${String(params.walletAddress)} on ${String(params.network) || "bsc"}`;
|
|
52
|
+
default:
|
|
53
|
+
return `Execute ${toolName} with params: ${JSON.stringify(params)}`;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import fs from "node:fs";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
|
|
4
|
+
export type SpendingLimitsConfig = {
|
|
5
|
+
maxTxValueUsd: number;
|
|
6
|
+
dailyLimitUsd: number;
|
|
7
|
+
confirmAll: boolean;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export const DEFAULT_SPENDING_LIMITS: SpendingLimitsConfig = {
|
|
11
|
+
maxTxValueUsd: 1000,
|
|
12
|
+
dailyLimitUsd: 5000,
|
|
13
|
+
confirmAll: true,
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
type SpendingLogEntry = {
|
|
17
|
+
timestamp: string;
|
|
18
|
+
toolName: string;
|
|
19
|
+
valueUsd: number;
|
|
20
|
+
txHash?: string;
|
|
21
|
+
network: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Track daily spending and enforce limits.
|
|
26
|
+
*/
|
|
27
|
+
export class SpendingTracker {
|
|
28
|
+
private readonly logPath: string;
|
|
29
|
+
|
|
30
|
+
constructor(stateDir: string) {
|
|
31
|
+
const walletsDir = path.join(stateDir, "wallets");
|
|
32
|
+
if (!fs.existsSync(walletsDir)) {
|
|
33
|
+
fs.mkdirSync(walletsDir, { recursive: true });
|
|
34
|
+
}
|
|
35
|
+
this.logPath = path.join(walletsDir, "spending-log.jsonl");
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/** Log a spending event. */
|
|
39
|
+
logSpend(entry: SpendingLogEntry): void {
|
|
40
|
+
const line = JSON.stringify(entry) + "\n";
|
|
41
|
+
fs.appendFileSync(this.logPath, line);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** Get total USD spent today. */
|
|
45
|
+
getDailyTotal(): number {
|
|
46
|
+
if (!fs.existsSync(this.logPath)) {
|
|
47
|
+
return 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const todayStart = new Date();
|
|
51
|
+
todayStart.setHours(0, 0, 0, 0);
|
|
52
|
+
const todayMs = todayStart.getTime();
|
|
53
|
+
|
|
54
|
+
const lines = fs.readFileSync(this.logPath, "utf8").trim().split("\n");
|
|
55
|
+
let total = 0;
|
|
56
|
+
for (const line of lines) {
|
|
57
|
+
if (!line) {
|
|
58
|
+
continue;
|
|
59
|
+
}
|
|
60
|
+
try {
|
|
61
|
+
const entry = JSON.parse(line) as SpendingLogEntry;
|
|
62
|
+
if (new Date(entry.timestamp).getTime() >= todayMs) {
|
|
63
|
+
total += entry.valueUsd;
|
|
64
|
+
}
|
|
65
|
+
} catch {
|
|
66
|
+
// Skip malformed lines
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return total;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/** Check if a transaction would exceed spending limits. */
|
|
73
|
+
checkLimits(
|
|
74
|
+
valueUsd: number,
|
|
75
|
+
limits: SpendingLimitsConfig,
|
|
76
|
+
): { allowed: boolean; reason?: string } {
|
|
77
|
+
if (valueUsd > limits.maxTxValueUsd) {
|
|
78
|
+
return {
|
|
79
|
+
allowed: false,
|
|
80
|
+
reason: `Transaction value ($${valueUsd.toFixed(2)}) exceeds per-transaction limit ($${limits.maxTxValueUsd})`,
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
const dailyTotal = this.getDailyTotal();
|
|
85
|
+
if (dailyTotal + valueUsd > limits.dailyLimitUsd) {
|
|
86
|
+
return {
|
|
87
|
+
allowed: false,
|
|
88
|
+
reason: `Transaction would exceed daily limit. Spent today: $${dailyTotal.toFixed(2)}, limit: $${limits.dailyLimitUsd}`,
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return { allowed: true };
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { WalletManager } from "./wallet-manager.js";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Resolve the active wallet's private key for tool operations.
|
|
5
|
+
* This is the bridge between the wallet manager and the EVM tools —
|
|
6
|
+
* tools call this instead of requiring users to paste private keys.
|
|
7
|
+
*/
|
|
8
|
+
export async function resolveActivePrivateKey(
|
|
9
|
+
walletManager: WalletManager,
|
|
10
|
+
): Promise<`0x${string}`> {
|
|
11
|
+
if (!walletManager.hasWallets()) {
|
|
12
|
+
throw new Error(
|
|
13
|
+
"No wallets configured. Use `cryptoclaw wallet create` or `cryptoclaw wallet import` first.",
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const address = walletManager.getActiveAddress();
|
|
18
|
+
if (!address) {
|
|
19
|
+
throw new Error(
|
|
20
|
+
"No active wallet selected. Use `cryptoclaw wallet switch <id>` to select one.",
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Try cached passphrase first, then throw if not available
|
|
25
|
+
const key = await walletManager.getActivePrivateKey();
|
|
26
|
+
return key;
|
|
27
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { describe, expect, it } from "vitest";
|
|
2
|
+
import {
|
|
3
|
+
sanitizeSecrets,
|
|
4
|
+
containsPrivateKey,
|
|
5
|
+
CLI_ONLY_TOOLS,
|
|
6
|
+
SENSITIVE_PARAM_NAMES,
|
|
7
|
+
KEY_GUARD_SYSTEM_PROMPT,
|
|
8
|
+
} from "./key-guard.js";
|
|
9
|
+
|
|
10
|
+
describe("key-guard", () => {
|
|
11
|
+
describe("sanitizeSecrets", () => {
|
|
12
|
+
it("redacts 0x-prefixed 64-char hex private key", () => {
|
|
13
|
+
const key = "0x" + "a".repeat(64);
|
|
14
|
+
const result = sanitizeSecrets(`My key is ${key} done`);
|
|
15
|
+
expect(result).toBe("My key is [REDACTED_PRIVATE_KEY] done");
|
|
16
|
+
expect(result).not.toContain(key);
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
it("redacts bare 64-char hex string", () => {
|
|
20
|
+
const bareKey = "ab".repeat(32);
|
|
21
|
+
const result = sanitizeSecrets(`Key: ${bareKey}`);
|
|
22
|
+
expect(result).toContain("[REDACTED_PRIVATE_KEY]");
|
|
23
|
+
expect(result).not.toContain(bareKey);
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
it("redacts multiple private keys in one string", () => {
|
|
27
|
+
const key1 = "0x" + "1a".repeat(32);
|
|
28
|
+
const key2 = "0x" + "2b".repeat(32);
|
|
29
|
+
const result = sanitizeSecrets(`first: ${key1} second: ${key2}`);
|
|
30
|
+
expect(result).not.toContain(key1);
|
|
31
|
+
expect(result).not.toContain(key2);
|
|
32
|
+
expect(result.match(/\[REDACTED_PRIVATE_KEY\]/g)?.length).toBeGreaterThanOrEqual(2);
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
it("redacts 12-word mnemonic seed phrase", () => {
|
|
36
|
+
const mnemonic =
|
|
37
|
+
"abandon ability able about above absent absorb abstract absurd abuse access accident";
|
|
38
|
+
const result = sanitizeSecrets(`Seed: ${mnemonic}`);
|
|
39
|
+
expect(result).toContain("[REDACTED_SEED_PHRASE]");
|
|
40
|
+
expect(result).not.toContain(mnemonic);
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
it("redacts 24-word mnemonic seed phrase", () => {
|
|
44
|
+
const words =
|
|
45
|
+
"abandon ability able about above absent absorb abstract absurd abuse access accident " +
|
|
46
|
+
"abandon ability able about above absent absorb abstract absurd abuse access accident";
|
|
47
|
+
const result = sanitizeSecrets(`Seed: ${words}`);
|
|
48
|
+
expect(result).toContain("[REDACTED_SEED_PHRASE]");
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
it("preserves normal text without secrets", () => {
|
|
52
|
+
const normal = "Hello, this is a normal message about wallet operations.";
|
|
53
|
+
expect(sanitizeSecrets(normal)).toBe(normal);
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
it("preserves short hex strings (not private keys)", () => {
|
|
57
|
+
const shortHex = "0x1234abcd";
|
|
58
|
+
const result = sanitizeSecrets(`Address: ${shortHex}`);
|
|
59
|
+
expect(result).toContain(shortHex);
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
it("preserves Ethereum addresses (42 chars)", () => {
|
|
63
|
+
const address = "0xdAC17F958D2ee523a2206206994597C13D831ec7";
|
|
64
|
+
const result = sanitizeSecrets(`To: ${address}`);
|
|
65
|
+
expect(result).toContain(address);
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
it("handles empty string", () => {
|
|
69
|
+
expect(sanitizeSecrets("")).toBe("");
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
it("handles string with mixed content", () => {
|
|
73
|
+
const key = "0x" + "ff".repeat(32);
|
|
74
|
+
const result = sanitizeSecrets(
|
|
75
|
+
`Transfer to 0xdAC17F958D2ee523a2206206994597C13D831ec7 using key ${key}`,
|
|
76
|
+
);
|
|
77
|
+
expect(result).toContain("0xdAC17F958D2ee523a2206206994597C13D831ec7");
|
|
78
|
+
expect(result).not.toContain(key);
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
describe("containsPrivateKey", () => {
|
|
83
|
+
it("detects 0x-prefixed private key", () => {
|
|
84
|
+
const key = "0x" + "ab".repeat(32);
|
|
85
|
+
expect(containsPrivateKey(`key: ${key}`)).toBe(true);
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
it("detects bare 64-char hex key", () => {
|
|
89
|
+
const bareKey = "cd".repeat(32);
|
|
90
|
+
expect(containsPrivateKey(bareKey)).toBe(true);
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
it("rejects short hex strings", () => {
|
|
94
|
+
expect(containsPrivateKey("0x1234abcd")).toBe(false);
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
it("rejects normal text", () => {
|
|
98
|
+
expect(containsPrivateKey("Hello world, no keys here")).toBe(false);
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
it("rejects empty string", () => {
|
|
102
|
+
expect(containsPrivateKey("")).toBe(false);
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
describe("CLI_ONLY_TOOLS", () => {
|
|
107
|
+
it("contains wallet_export", () => {
|
|
108
|
+
expect(CLI_ONLY_TOOLS.has("wallet_export")).toBe(true);
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
it("is a Set", () => {
|
|
112
|
+
expect(CLI_ONLY_TOOLS).toBeInstanceOf(Set);
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
describe("SENSITIVE_PARAM_NAMES", () => {
|
|
117
|
+
it("contains privateKey", () => {
|
|
118
|
+
expect(SENSITIVE_PARAM_NAMES.has("privateKey")).toBe(true);
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
it("contains passphrase", () => {
|
|
122
|
+
expect(SENSITIVE_PARAM_NAMES.has("passphrase")).toBe(true);
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
it("contains mnemonic", () => {
|
|
126
|
+
expect(SENSITIVE_PARAM_NAMES.has("mnemonic")).toBe(true);
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
it("contains password", () => {
|
|
130
|
+
expect(SENSITIVE_PARAM_NAMES.has("password")).toBe(true);
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
it("contains seedPhrase", () => {
|
|
134
|
+
expect(SENSITIVE_PARAM_NAMES.has("seedPhrase")).toBe(true);
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
it("contains secret", () => {
|
|
138
|
+
expect(SENSITIVE_PARAM_NAMES.has("secret")).toBe(true);
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
describe("KEY_GUARD_SYSTEM_PROMPT", () => {
|
|
143
|
+
it("is a non-empty string", () => {
|
|
144
|
+
expect(typeof KEY_GUARD_SYSTEM_PROMPT).toBe("string");
|
|
145
|
+
expect(KEY_GUARD_SYSTEM_PROMPT.length).toBeGreaterThan(0);
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
it("mentions private key protection", () => {
|
|
149
|
+
expect(KEY_GUARD_SYSTEM_PROMPT).toContain("PRIVATE KEY");
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
it("mentions CLI-only operations", () => {
|
|
153
|
+
expect(KEY_GUARD_SYSTEM_PROMPT).toContain("wallet_export");
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
});
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Key Guard — multi-layered private key and passphrase leak prevention.
|
|
3
|
+
*
|
|
4
|
+
* Defense layers:
|
|
5
|
+
* 1. Tool design: sensitive ops (export, import) are CLI-only, not agent tools
|
|
6
|
+
* 2. Parameter stripping: passphrase/privateKey never appear as tool parameters
|
|
7
|
+
* 3. Result sanitization: all tool results are scrubbed via tool_result_persist
|
|
8
|
+
* 4. Outbound sanitization: messages to channels are scrubbed via message_sending
|
|
9
|
+
* 5. System prompt: agent is instructed to never output private keys
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/** Pattern: 0x followed by exactly 64 hex characters (Ethereum private key). */
|
|
13
|
+
const PRIVATE_KEY_RE = /0x[a-fA-F0-9]{64}/g;
|
|
14
|
+
|
|
15
|
+
/** Pattern: hex strings of 64 chars without 0x prefix that look like keys. */
|
|
16
|
+
const BARE_HEX_KEY_RE = /(?<![a-fA-F0-9])[a-fA-F0-9]{64}(?![a-fA-F0-9])/g;
|
|
17
|
+
|
|
18
|
+
/** Pattern: common mnemonic seed phrase (12 or 24 lowercase words). */
|
|
19
|
+
const MNEMONIC_RE = /\b([a-z]{3,8}\s+){11,23}[a-z]{3,8}\b/g;
|
|
20
|
+
|
|
21
|
+
const REDACTED = "[REDACTED_PRIVATE_KEY]";
|
|
22
|
+
const REDACTED_MNEMONIC = "[REDACTED_SEED_PHRASE]";
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Scrub private keys and seed phrases from arbitrary text.
|
|
26
|
+
* Safe to call on any string — returns original if nothing found.
|
|
27
|
+
*/
|
|
28
|
+
export function sanitizeSecrets(text: string): string {
|
|
29
|
+
let result = text;
|
|
30
|
+
result = result.replace(PRIVATE_KEY_RE, REDACTED);
|
|
31
|
+
result = result.replace(BARE_HEX_KEY_RE, (_match) => {
|
|
32
|
+
// Avoid false positives: only redact if it doesn't look like a tx hash or address
|
|
33
|
+
// Transaction hashes are 64 hex chars but are typically prefixed by context like "txHash"
|
|
34
|
+
// We redact standalone 64-char hex to be safe
|
|
35
|
+
return REDACTED;
|
|
36
|
+
});
|
|
37
|
+
result = result.replace(MNEMONIC_RE, REDACTED_MNEMONIC);
|
|
38
|
+
return result;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Check if text contains anything that looks like a private key.
|
|
43
|
+
*/
|
|
44
|
+
export function containsPrivateKey(text: string): boolean {
|
|
45
|
+
return PRIVATE_KEY_RE.test(text) || BARE_HEX_KEY_RE.test(text);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* List of tool names that should NEVER be available as agent tools.
|
|
50
|
+
* These operations are restricted to CLI-only access.
|
|
51
|
+
*/
|
|
52
|
+
export const CLI_ONLY_TOOLS = new Set(["wallet_export"]);
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* List of parameter names that should be stripped from tool_result_persist output
|
|
56
|
+
* and never appear in persisted agent context.
|
|
57
|
+
*/
|
|
58
|
+
export const SENSITIVE_PARAM_NAMES = new Set([
|
|
59
|
+
"privateKey",
|
|
60
|
+
"passphrase",
|
|
61
|
+
"password",
|
|
62
|
+
"mnemonic",
|
|
63
|
+
"seedPhrase",
|
|
64
|
+
"secret",
|
|
65
|
+
]);
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* System prompt guard text injected via before_agent_start.
|
|
69
|
+
* Instructs the agent to never handle or output private keys.
|
|
70
|
+
*/
|
|
71
|
+
export const KEY_GUARD_SYSTEM_PROMPT = `
|
|
72
|
+
[SECURITY — PRIVATE KEY PROTECTION]
|
|
73
|
+
CRITICAL RULES — violating these is a security incident:
|
|
74
|
+
1. NEVER output, display, repeat, or include a private key (0x + 64 hex chars) in ANY message
|
|
75
|
+
2. If the wallet is locked (error: "Passphrase required to unlock wallet"), ask the user for their passphrase in chat, then call wallet_unlock with it. After unlocking, retry the original operation. The wallet stays unlocked for subsequent operations — do NOT ask for the passphrase again unless you get another "Passphrase required" error.
|
|
76
|
+
3. If a user pastes a private key in chat, respond ONLY with: "For security, please use \`cryptoclaw wallet import\` in your terminal. Never share private keys in chat."
|
|
77
|
+
4. wallet_export and wallet_import are CLI-only — do NOT attempt to call them
|
|
78
|
+
5. For wallet creation: call wallet_create with a label and passphrase (ask the user for the passphrase in chat first)
|
|
79
|
+
6. If you see a private key in any tool result, do NOT include it in your response
|
|
80
|
+
`.trim();
|