@workclaw/openclaw-workclaw 1.0.202 → 1.0.332
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/README.md +3 -4
- package/dist/_virtual/_commonjsHelpers.js +8 -0
- package/dist/_virtual/ipaddr.js +4 -0
- package/dist/_virtual/jiti.js +4 -0
- package/dist/_virtual/main.js +4 -0
- package/dist/api.d.ts +4 -3
- package/dist/api.d.ts.map +1 -0
- package/dist/api.js +10 -3
- package/dist/index.d.ts +6 -5
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +250 -243
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js +163 -0
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js +32 -0
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js +188 -0
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/browser.js +25 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/account-id-C6v13Xic.js +4 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/auth-profiles-Db4Eg6ht.js +24 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/bash-tools.exec-runtime--1hhz8C_.js +46 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/bash-tools.schemas-BqpDemKo.js +32 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/boolean-DbfRNnYl.js +14 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/boundary-file-read-BymsBHso.js +172 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/bundled-Cuj8sKt6.js +18 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/bundled-dir-Cq5y_NKM.js +109 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/bundled-plugin-metadata-BJMD48hn.js +260 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/channel-entry-contract-BoTfqLnn.js +176 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/cli-name-DPC4W7Fo.js +22 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/command-format-LqDv8ows.js +24 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/command-registration-Dxq1bCXM.js +16 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/commands-registry-normalize-Bk0WYUI0.js +94 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/commands-registry.data-D99VdOlX.js +940 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/config--3Msyf4f.js +20 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/config-schema-C6kUPI7B.js +33 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/config-schema-DB8FqQH8.js +82 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/conversation-binding-C3EIaK9Z.js +19 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/core-DpZtjMWz.js +51 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/dedupe-DM7iBj7C.js +60 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/discovery-Cgp95o2R.js +649 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/dispatch-2DAqwFVE.js +33 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/errors-Dyla6m1G.js +13 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/exec-approvals-CLXc_BYU.js +212 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/exec-defaults-DBnaZeLQ.js +13 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/exec-jRxy02_4.js +9 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/exec-safe-bin-trust-DOmID2EO.js +638 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/exec-safety-C8v0dsfc.js +24 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/facade-loader-B83leEeb.js +10 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/facade-runtime-B04URCVZ.js +14 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/file-identity-sp9axE-E.js +411 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/file-lock-D016H3tC.js +5 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/gateway-control-ui-origins-B-lkqr3D.js +23 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/gateway-request-scope-BEWoJTx4.js +3 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/global-singleton-DhGoboiG.js +14 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/helpers-CI2CkXhU.js +7 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/home-dir-BEqRdfoa.js +67 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/host-env-security-B-Ebh6At.js +334 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/ids-By7Nkc8R.js +76 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/inbound-path-policy-CQkSSeSi.js +26 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/internal-hooks-D52pUqod.js +5 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/io-DDkf_FUu.js +14328 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/ip-CdfoCORt.js +2 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/json-files-DACY7Zw5.js +22 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/legacy-names-C7VUgVdg.js +5 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/links-BlUEqVE8.js +15 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/loader-DYJR63Q1.js +27 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/logger-BMuqDP66.js +26 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/manager-szyCqvou.js +22 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/manifest-CjPIwluH.js +409 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/manifest-registry-CK0zNybm.js +394 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/map-size-DhG4ditB.js +15 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/message-channel-DXsjCySM.js +32 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/mime-BjR-Aw-Q.js +42 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/min-host-version-CmguvhGB.js +49 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/model-auth-markers-YVQDqG1J.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/model-selection-cli-U7l5Ifek.js +14 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/models-config-B-YHRI3g.js +40 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/native-command-session-targets-BW3SPx-T.js +11 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/network-mode-D3yzFBsD.js +15 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/node-require-DvwmVoHm.js +14 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/node-sqlite-FGjwOqiS.js +3 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/openclaw-root-BNWw3cXT.js +69 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/order-6WHL2fZu.js +26 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/parse-duration-amE_QFsj.js +42 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/path-safety-CKqzLERR.js +308 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/paths-LCYGfrV7.js +95 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/process-scoped-map-Cv-PkzaO.js +11 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/profile-utils-Dh8DVvPv.js +17 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/prototype-keys-BKGE_uzN.js +11 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/provider-env-vars-DDfJbkrO.js +150 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/provider-id-B3nZBDJJ.js +15 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/provider-runtime-O-n0cjZo.js +22 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/public-surface-loader-CSDxBey4.js +14 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/redact-D4nea1HF.js +2 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/ref-contract-B1q5N0Lz.js +35 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/registry-DE4nHTjg.js +54 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/registry-loaded-B8D6rQiJ.js +62 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/registry-nEl7QZ30.js +3 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/runtime-Clo2XF6T.js +27 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/runtime-channel-state-Ck2VkX9T.js +20 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/runtime-guard-DqVOvWAZ.js +23 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/runtime-state-Cd3jnHgw.js +4 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/schema-validator-Bo7NeV8w.js +3 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/scp-host-CiFVRWHy.js +38 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/sdk-alias-Bo1huP7M.js +315 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/session-binding-service-D6sb-LrK.js +9 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/session-write-lock-Dk7FbMr_.js +6 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/setup-helpers-ChrkNnYE.js +5 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/setup-registry-BPL6c_Zk.js +16 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/setup-wizard-helpers-DnMkYslk.js +19 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/skills-Djbt9HGh.js +21 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/slots-PynIdqZ_.js +10 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/string-coerce-BUSzWgUA.js +25 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/string-normalization-DIJRAo0o.js +20 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/strip-inbound-meta-WCHWW8is.js +12 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/subsystem-BHv2zSx6.js +15 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/system-events-CfifhXT7.js +3 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/tailscale-status-Ch1LdrMM.js +5 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/task-registry-2LJDZL29.js +15 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/telegram-command-config-TdpOuZ__.js +66 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/terminal-link-B3nCYQJi.js +10 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/theme-CVJvORNs.js +27 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/thinking-_rqwdGD8.js +44 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/thinking.shared-Dginn1He.js +14 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/tmp-openclaw-dir-DrKSsX71.js +103 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/tool-policy-CwZyJfFc.js +300 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/types-BfKfz-lz.js +38 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/types.secrets-C9RpLzA0.js +53 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/utils-DGFSjtQF.js +36 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/version-b06Uhxnq.js +82 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/workspace-oVBetctb.js +20 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/zod-schema-Cpw1qu03.js +1299 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/zod-schema.agent-runtime-D48J52r_.js +620 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/zod-schema.core-BrzjtZhM.js +597 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/zod-schema.providers-core-CX8AFeyJ.js +1354 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/zod-schema.providers-whatsapp-7E9bf9oA.js +130 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/zod-schema.sensitive-BFZ4qze6.js +5 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@mariozechner/pi-ai/dist/models.generated.js +14275 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@mariozechner/pi-ai/dist/models.js +16 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@mariozechner/pi-ai/dist/utils/oauth/anthropic.js +314 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@mariozechner/pi-ai/dist/utils/oauth/github-copilot.js +256 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@mariozechner/pi-ai/dist/utils/oauth/google-antigravity.js +315 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@mariozechner/pi-ai/dist/utils/oauth/google-gemini-cli.js +402 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@mariozechner/pi-ai/dist/utils/oauth/index.js +41 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@mariozechner/pi-ai/dist/utils/oauth/oauth-page.js +103 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@mariozechner/pi-ai/dist/utils/oauth/openai-codex.js +335 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@mariozechner/pi-ai/dist/utils/oauth/pkce.js +20 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/system/policy.js +34 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/any/any.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/argument/argument.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/array/array.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/async-iterator/async-iterator.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/awaited/awaited.js +30 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/bigint/bigint.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/clone/type.js +7 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/clone/value.js +32 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/composite/composite.js +37 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/computed/computed.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/const/const.js +36 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/constructor/constructor.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/constructor-parameters.js +9 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/create/immutable.js +29 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/create/type.js +17 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/date/date.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/discard/discard.js +10 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/enum/enum.js +15 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/error/error.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-mapped-result.js +18 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-template-literal.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude.js +21 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/extends/extends-check.js +265 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-key.js +24 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-result.js +19 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/extends/extends.js +16 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-mapped-result.js +18 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-template-literal.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/extract/extract.js +21 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/function/function.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/guard/kind.js +176 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/guard/type.js +272 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/guard/value.js +62 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-key.js +21 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-result.js +20 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-property-keys.js +21 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed.js +61 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/instance-type/instance-type.js +9 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/instantiate/instantiate.js +86 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/integer/integer.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-create.js +11 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-evaluated.js +31 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect.js +16 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/intrinsic/capitalize.js +7 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic-from-mapped-key.js +25 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic.js +55 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/intrinsic/lowercase.js +7 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uncapitalize.js +7 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uppercase.js +7 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/iterator/iterator.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-from-mapped-result.js +19 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-keys.js +36 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof.js +31 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/literal/literal.js +12 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-result.js +11 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped.js +76 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/module/compute.js +122 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/module/module.js +28 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/never/never.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/not/not.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/null/null.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/number/number.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/object/object.js +15 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-key.js +21 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-result.js +19 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/omit/omit.js +48 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/optional/optional-from-mapped-result.js +18 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/optional/optional.js +21 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/parameters/parameters.js +9 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/partial/partial-from-mapped-result.js +19 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/partial/partial.js +53 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/patterns/patterns.js +16 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-key.js +23 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-result.js +19 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/pick/pick.js +48 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/promise/promise.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly-from-mapped-result.js +18 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly.js +21 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/readonly-optional.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/record/record.js +71 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/recursive/recursive.js +15 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/ref/ref.js +12 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/regexp/regexp.js +10 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/required/required-from-mapped-result.js +18 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/required/required.js +52 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/rest/rest.js +10 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/return-type/return-type.js +9 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/sets/set.js +30 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/string/string.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/symbol/symbol.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/symbols/symbols.js +12 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/template-literal/finite.js +27 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/template-literal/generate.js +38 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/template-literal/parse.js +128 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/template-literal/pattern.js +21 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.js +45 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/template-literal/template-literal.js +12 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/template-literal/union.js +11 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/transform/transform.js +37 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/tuple/tuple.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/type/index.js +5 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/type/type.js +126 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/uint8array/uint8array.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/undefined/undefined.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/union/union-create.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/union/union-evaluated.js +26 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/union/union.js +9 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/unknown/unknown.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/unsafe/unsafe.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/type/void/void.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@sinclair/typebox/build/esm/value/guard/guard.js +18 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/dotenv/lib/main.js +318 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/ipaddr.js/lib/ipaddr.js +805 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/jiti/dist/jiti.js +3869 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/jiti/lib/jiti.js +26 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/json5/dist/index.js +1085 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/doc/anchors.js +12 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/doc/applyReviver.js +45 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/doc/createNode.js +58 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/log.js +8 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/Alias.js +111 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/Collection.js +138 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/Node.js +36 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/Pair.js +35 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/Scalar.js +25 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/YAMLMap.js +139 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +111 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +59 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/identity.js +52 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/toJS.js +25 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/parse/lexer.js +6 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +55 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +50 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +37 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +65 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +131 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/stringify/stringify.js +119 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +146 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/stringify/stringifyComment.js +12 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/stringify/stringifyPair.js +128 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/stringify/stringifyString.js +278 -0
- package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/visit.js +104 -0
- package/dist/packages/plugin/src/accounts.js +200 -0
- package/dist/packages/plugin/src/api/accounts-api.js +133 -0
- package/dist/packages/plugin/src/api/prompts-api.js +105 -0
- package/dist/packages/plugin/src/api/session-api.js +172 -0
- package/dist/packages/plugin/src/api/skills-api.js +61 -0
- package/dist/packages/plugin/src/api/workspace.js +30 -0
- package/dist/packages/plugin/src/channel.js +209 -0
- package/dist/packages/plugin/src/config-schema.js +51 -0
- package/dist/packages/plugin/src/connection/workclaw-client.js +282 -0
- package/dist/packages/plugin/src/gateway/agent-handlers.js +408 -0
- package/dist/packages/plugin/src/gateway/config-writer.js +157 -0
- package/dist/packages/plugin/src/gateway/cron-tasks-handler.js +184 -0
- package/dist/packages/plugin/src/gateway/message-context.js +411 -0
- package/dist/packages/plugin/src/gateway/message-dispatcher.js +519 -0
- package/dist/packages/plugin/src/gateway/reconnect.js +178 -0
- package/dist/packages/plugin/src/gateway/skills-handler.js +511 -0
- package/dist/packages/plugin/src/gateway/skills-list-handler.js +173 -0
- package/dist/packages/plugin/src/gateway/tools-list-handler.js +89 -0
- package/dist/packages/plugin/src/gateway/workclaw-gateway.js +245 -0
- package/dist/packages/plugin/src/logging.js +62 -0
- package/dist/packages/plugin/src/media/upload.js +126 -0
- package/dist/packages/plugin/src/outbound/index.js +89 -0
- package/dist/packages/plugin/src/outbound/workclaw-sender.js +79 -0
- package/dist/packages/plugin/src/setup-core.js +22 -0
- package/dist/packages/plugin/src/setup-surface.js +338 -0
- package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/api/index.js +186 -0
- package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/index.js +30 -0
- package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/add/params.js +147 -0
- package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/add/sync.js +154 -0
- package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/disable/params.js +62 -0
- package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/disable/sync.js +86 -0
- package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/enable/params.js +62 -0
- package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/enable/sync.js +86 -0
- package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/notify/sync.js +103 -0
- package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/remove/params.js +68 -0
- package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/remove/sync.js +86 -0
- package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/update/params.js +141 -0
- package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/update/sync.js +114 -0
- package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/utils/index.js +99 -0
- package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/utils/tool-context.js +29 -0
- package/dist/packages/plugin/src/types/system.js +8 -0
- package/dist/setup-entry.d.ts +2 -1
- package/dist/setup-entry.d.ts.map +1 -0
- package/dist/setup-entry.js +14 -11
- package/dist/src/accounts.d.ts +20 -19
- package/dist/src/accounts.d.ts.map +1 -0
- package/dist/src/api/accounts-api.d.ts +2 -1
- package/dist/src/api/accounts-api.d.ts.map +1 -0
- package/dist/src/api/prompts-api.d.ts +2 -1
- package/dist/src/api/prompts-api.d.ts.map +1 -0
- package/dist/src/api/session-api.d.ts +2 -1
- package/dist/src/api/session-api.d.ts.map +1 -0
- package/dist/src/api/skills-api.d.ts +2 -1
- package/dist/src/api/skills-api.d.ts.map +1 -0
- package/dist/src/api/workspace.d.ts +2 -1
- package/dist/src/api/workspace.d.ts.map +1 -0
- package/dist/src/channel.d.ts +3 -2
- package/dist/src/channel.d.ts.map +1 -0
- package/dist/src/config-schema.d.ts +1 -6
- package/dist/src/config-schema.d.ts.map +1 -0
- package/dist/src/connection/workclaw-client.d.ts +6 -4
- package/dist/src/connection/workclaw-client.d.ts.map +1 -0
- package/dist/src/gateway/agent-handlers.d.ts +4 -3
- package/dist/src/gateway/agent-handlers.d.ts.map +1 -0
- package/dist/src/gateway/config-writer.d.ts +32 -30
- package/dist/src/gateway/config-writer.d.ts.map +1 -0
- package/dist/src/gateway/cron-tasks-handler.d.ts +3 -1
- package/dist/src/gateway/cron-tasks-handler.d.ts.map +1 -0
- package/dist/src/gateway/message-context.d.ts +15 -17
- package/dist/src/gateway/message-context.d.ts.map +1 -0
- package/dist/src/gateway/message-dispatcher.d.ts +3 -4
- package/dist/src/gateway/message-dispatcher.d.ts.map +1 -0
- package/dist/src/gateway/reconnect.d.ts +6 -8
- package/dist/src/gateway/reconnect.d.ts.map +1 -0
- package/dist/src/gateway/skills-handler.d.ts +1 -0
- package/dist/src/gateway/skills-handler.d.ts.map +1 -0
- package/dist/src/gateway/skills-list-handler.d.ts +1 -0
- package/dist/src/gateway/skills-list-handler.d.ts.map +1 -0
- package/dist/src/gateway/tools-list-handler.d.ts +1 -0
- package/dist/src/gateway/tools-list-handler.d.ts.map +1 -0
- package/dist/src/gateway/workclaw-gateway.d.ts +2 -7
- package/dist/src/gateway/workclaw-gateway.d.ts.map +1 -0
- package/dist/src/logging.d.ts +55 -0
- package/dist/src/logging.d.ts.map +1 -0
- package/dist/src/media/upload.d.ts +1 -0
- package/dist/src/media/upload.d.ts.map +1 -0
- package/dist/src/outbound/index.d.ts +9 -6
- package/dist/src/outbound/index.d.ts.map +1 -0
- package/dist/src/outbound/workclaw-sender.d.ts +6 -4
- package/dist/src/outbound/workclaw-sender.d.ts.map +1 -0
- package/dist/src/runtime.d.ts +4 -17
- package/dist/src/runtime.d.ts.map +1 -0
- package/dist/src/runtime.js +324 -365
- package/dist/src/secret-contract-api.d.ts +1 -0
- package/dist/src/secret-contract-api.d.ts.map +1 -0
- package/dist/src/secret-contract-api.js +6 -3
- package/dist/src/send.d.ts +2 -1
- package/dist/src/send.d.ts.map +1 -0
- package/dist/src/setup-api.d.ts +4 -3
- package/dist/src/setup-api.d.ts.map +1 -0
- package/dist/src/setup-core.d.ts +2 -1
- package/dist/src/setup-core.d.ts.map +1 -0
- package/dist/src/setup-surface.d.ts +3 -2
- package/dist/src/setup-surface.d.ts.map +1 -0
- package/dist/src/tools/openclaw-workclaw-cron/api/index.d.ts +3 -4
- package/dist/src/tools/openclaw-workclaw-cron/api/index.d.ts.map +1 -0
- package/dist/src/tools/openclaw-workclaw-cron/index.d.ts +1 -0
- package/dist/src/tools/openclaw-workclaw-cron/index.d.ts.map +1 -0
- package/dist/src/tools/openclaw-workclaw-cron/src/add/params.d.ts +3 -7
- package/dist/src/tools/openclaw-workclaw-cron/src/add/params.d.ts.map +1 -0
- package/dist/src/tools/openclaw-workclaw-cron/src/add/sync.d.ts +3 -7
- package/dist/src/tools/openclaw-workclaw-cron/src/add/sync.d.ts.map +1 -0
- package/dist/src/tools/openclaw-workclaw-cron/src/disable/params.d.ts +2 -7
- package/dist/src/tools/openclaw-workclaw-cron/src/disable/params.d.ts.map +1 -0
- package/dist/src/tools/openclaw-workclaw-cron/src/disable/sync.d.ts +2 -7
- package/dist/src/tools/openclaw-workclaw-cron/src/disable/sync.d.ts.map +1 -0
- package/dist/src/tools/openclaw-workclaw-cron/src/enable/params.d.ts +2 -7
- package/dist/src/tools/openclaw-workclaw-cron/src/enable/params.d.ts.map +1 -0
- package/dist/src/tools/openclaw-workclaw-cron/src/enable/sync.d.ts +2 -7
- package/dist/src/tools/openclaw-workclaw-cron/src/enable/sync.d.ts.map +1 -0
- package/dist/src/tools/openclaw-workclaw-cron/src/notify/sync.d.ts +2 -9
- package/dist/src/tools/openclaw-workclaw-cron/src/notify/sync.d.ts.map +1 -0
- package/dist/src/tools/openclaw-workclaw-cron/src/remove/params.d.ts +2 -7
- package/dist/src/tools/openclaw-workclaw-cron/src/remove/params.d.ts.map +1 -0
- package/dist/src/tools/openclaw-workclaw-cron/src/remove/sync.d.ts +2 -7
- package/dist/src/tools/openclaw-workclaw-cron/src/remove/sync.d.ts.map +1 -0
- package/dist/src/tools/openclaw-workclaw-cron/src/update/params.d.ts +2 -7
- package/dist/src/tools/openclaw-workclaw-cron/src/update/params.d.ts.map +1 -0
- package/dist/src/tools/openclaw-workclaw-cron/src/update/sync.d.ts +2 -7
- package/dist/src/tools/openclaw-workclaw-cron/src/update/sync.d.ts.map +1 -0
- package/dist/src/tools/openclaw-workclaw-cron/types/index.d.ts +2 -1
- package/dist/src/tools/openclaw-workclaw-cron/types/index.d.ts.map +1 -0
- package/dist/src/tools/openclaw-workclaw-cron/utils/index.d.ts +1 -0
- package/dist/src/tools/openclaw-workclaw-cron/utils/index.d.ts.map +1 -0
- package/dist/src/tools/openclaw-workclaw-cron/utils/tool-context.d.ts +10 -0
- package/dist/src/tools/openclaw-workclaw-cron/utils/tool-context.d.ts.map +1 -0
- package/dist/src/tools/openclaw-workclaw-system/index.d.ts +1 -0
- package/dist/src/tools/openclaw-workclaw-system/index.d.ts.map +1 -0
- package/dist/src/tools/openclaw-workclaw-system/src/get/index.d.ts +2 -4
- package/dist/src/tools/openclaw-workclaw-system/src/get/index.d.ts.map +1 -0
- package/dist/src/tools/openclaw-workclaw-system/src/token/index.d.ts +2 -4
- package/dist/src/tools/openclaw-workclaw-system/src/token/index.d.ts.map +1 -0
- package/dist/src/types/account.d.ts +15 -0
- package/dist/src/types/account.d.ts.map +1 -0
- package/dist/src/{types.d.ts → types/config.d.ts} +4 -16
- package/dist/src/types/config.d.ts.map +1 -0
- package/dist/src/types/index.d.ts +4 -0
- package/dist/src/types/index.d.ts.map +1 -0
- package/dist/src/types/system.d.ts +17 -0
- package/dist/src/types/system.d.ts.map +1 -0
- package/dist/src/utils/content.d.ts +6 -5
- package/dist/src/utils/content.d.ts.map +1 -0
- package/openclaw.plugin.json +45 -0
- package/package.json +71 -45
- package/skills/openclaw-workclaw-cron/SKILL.md +6 -3
- package/api.ts +0 -3
- package/dist/src/accounts.js +0 -279
- package/dist/src/api/accounts-api.js +0 -130
- package/dist/src/api/prompts-api.js +0 -103
- package/dist/src/api/session-api.js +0 -207
- package/dist/src/api/skills-api.js +0 -64
- package/dist/src/api/workspace.js +0 -30
- package/dist/src/channel.js +0 -199
- package/dist/src/config-schema.js +0 -56
- package/dist/src/connection/workclaw-client.js +0 -351
- package/dist/src/gateway/agent-handlers.js +0 -433
- package/dist/src/gateway/config-writer.js +0 -302
- package/dist/src/gateway/cron-tasks-handler.js +0 -188
- package/dist/src/gateway/message-context.js +0 -509
- package/dist/src/gateway/message-dispatcher.js +0 -572
- package/dist/src/gateway/reconnect.js +0 -210
- package/dist/src/gateway/skills-handler.js +0 -615
- package/dist/src/gateway/skills-list-handler.js +0 -233
- package/dist/src/gateway/tools-list-handler.js +0 -101
- package/dist/src/gateway/workclaw-gateway.js +0 -237
- package/dist/src/media/upload.js +0 -125
- package/dist/src/outbound/index.js +0 -123
- package/dist/src/outbound/workclaw-sender.js +0 -95
- package/dist/src/send.js +0 -1
- package/dist/src/setup-api.js +0 -3
- package/dist/src/setup-core.js +0 -13
- package/dist/src/setup-surface.js +0 -363
- package/dist/src/tools/openclaw-workclaw-cron/api/index.js +0 -209
- package/dist/src/tools/openclaw-workclaw-cron/index.js +0 -33
- package/dist/src/tools/openclaw-workclaw-cron/src/add/params.js +0 -152
- package/dist/src/tools/openclaw-workclaw-cron/src/add/sync.js +0 -162
- package/dist/src/tools/openclaw-workclaw-cron/src/disable/params.js +0 -80
- package/dist/src/tools/openclaw-workclaw-cron/src/disable/sync.js +0 -107
- package/dist/src/tools/openclaw-workclaw-cron/src/enable/params.js +0 -80
- package/dist/src/tools/openclaw-workclaw-cron/src/enable/sync.js +0 -107
- package/dist/src/tools/openclaw-workclaw-cron/src/notify/sync.js +0 -127
- package/dist/src/tools/openclaw-workclaw-cron/src/remove/params.js +0 -87
- package/dist/src/tools/openclaw-workclaw-cron/src/remove/sync.js +0 -107
- package/dist/src/tools/openclaw-workclaw-cron/src/update/params.js +0 -164
- package/dist/src/tools/openclaw-workclaw-cron/src/update/sync.js +0 -135
- package/dist/src/tools/openclaw-workclaw-cron/types/index.js +0 -4
- package/dist/src/tools/openclaw-workclaw-cron/utils/index.js +0 -122
- package/dist/src/tools/openclaw-workclaw-system/index.js +0 -15
- package/dist/src/tools/openclaw-workclaw-system/src/get/index.js +0 -64
- package/dist/src/tools/openclaw-workclaw-system/src/token/index.js +0 -78
- package/dist/src/types.js +0 -1
- package/dist/src/utils/content.js +0 -38
- package/index.ts +0 -326
- package/setup-entry.ts +0 -13
- package/src/accounts.ts +0 -360
- package/src/api/accounts-api.ts +0 -156
- package/src/api/prompts-api.ts +0 -122
- package/src/api/session-api.ts +0 -246
- package/src/api/skills-api.ts +0 -74
- package/src/api/workspace.ts +0 -45
- package/src/channel.ts +0 -226
- package/src/config-schema.ts +0 -62
- package/src/connection/workclaw-client.ts +0 -618
- package/src/gateway/agent-handlers.ts +0 -551
- package/src/gateway/config-writer.ts +0 -378
- package/src/gateway/cron-tasks-handler.ts +0 -230
- package/src/gateway/message-context.ts +0 -645
- package/src/gateway/message-dispatcher.ts +0 -688
- package/src/gateway/reconnect.ts +0 -260
- package/src/gateway/skills-handler.ts +0 -805
- package/src/gateway/skills-list-handler.ts +0 -332
- package/src/gateway/tools-list-handler.ts +0 -161
- package/src/gateway/workclaw-gateway.ts +0 -305
- package/src/media/upload.ts +0 -168
- package/src/outbound/index.ts +0 -191
- package/src/outbound/workclaw-sender.ts +0 -161
- package/src/runtime.ts +0 -520
- package/src/secret-contract-api.ts +0 -4
- package/src/send.ts +0 -1
- package/src/setup-api.ts +0 -3
- package/src/setup-core.ts +0 -25
- package/src/setup-surface.ts +0 -499
- package/src/tools/openclaw-workclaw-cron/api/index.ts +0 -326
- package/src/tools/openclaw-workclaw-cron/index.ts +0 -39
- package/src/tools/openclaw-workclaw-cron/src/add/params.ts +0 -177
- package/src/tools/openclaw-workclaw-cron/src/add/sync.ts +0 -188
- package/src/tools/openclaw-workclaw-cron/src/disable/params.ts +0 -100
- package/src/tools/openclaw-workclaw-cron/src/disable/sync.ts +0 -127
- package/src/tools/openclaw-workclaw-cron/src/enable/params.ts +0 -100
- package/src/tools/openclaw-workclaw-cron/src/enable/sync.ts +0 -127
- package/src/tools/openclaw-workclaw-cron/src/notify/sync.ts +0 -148
- package/src/tools/openclaw-workclaw-cron/src/remove/params.ts +0 -109
- package/src/tools/openclaw-workclaw-cron/src/remove/sync.ts +0 -127
- package/src/tools/openclaw-workclaw-cron/src/update/params.ts +0 -195
- package/src/tools/openclaw-workclaw-cron/src/update/sync.ts +0 -161
- package/src/tools/openclaw-workclaw-cron/types/index.ts +0 -55
- package/src/tools/openclaw-workclaw-cron/utils/index.ts +0 -141
- package/src/tools/openclaw-workclaw-system/index.ts +0 -17
- package/src/tools/openclaw-workclaw-system/src/get/index.ts +0 -77
- package/src/tools/openclaw-workclaw-system/src/token/index.ts +0 -93
- package/src/types.ts +0 -52
- package/src/utils/content.ts +0 -40
- package/tsconfig.json +0 -34
package/index.ts
DELETED
|
@@ -1,326 +0,0 @@
|
|
|
1
|
-
import type { OpenClawPluginApi } from 'openclaw/plugin-sdk'
|
|
2
|
-
import { mkdir, readFile, writeFile } from 'node:fs/promises'
|
|
3
|
-
import path from 'node:path'
|
|
4
|
-
import { fileURLToPath } from 'node:url'
|
|
5
|
-
import { emptyPluginConfigSchema } from 'openclaw/plugin-sdk'
|
|
6
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
7
|
-
// @ts-ignore - types from openclaw 4.2, local dev uses 3.13
|
|
8
|
-
import { defineChannelPluginEntry } from 'openclaw/plugin-sdk/core'
|
|
9
|
-
|
|
10
|
-
import { createAccountsApiHandler } from './src/api/accounts-api.js'
|
|
11
|
-
import { createPromptsApiHandler } from './src/api/prompts-api.js'
|
|
12
|
-
import { createSessionApiHandler } from './src/api/session-api.js'
|
|
13
|
-
import { createSkillsApiHandler } from './src/api/skills-api.js'
|
|
14
|
-
import { isDefaultWorkspace, resolveWorkspaceDir } from './src/api/workspace.js'
|
|
15
|
-
import { workclawPlugin } from './src/channel.js'
|
|
16
|
-
import { sendMessageWorkclaw } from './src/outbound/index.js'
|
|
17
|
-
import {
|
|
18
|
-
deleteToolContext,
|
|
19
|
-
getToolContext,
|
|
20
|
-
getToolResultHint,
|
|
21
|
-
getWorkclawLogger,
|
|
22
|
-
getWorkclawRuntime,
|
|
23
|
-
setToolCallIdToRunIdMapping,
|
|
24
|
-
setWorkclawRuntime,
|
|
25
|
-
} from './src/runtime.js'
|
|
26
|
-
|
|
27
|
-
import { registerAllOpenclawWorkclawCronTools } from './src/tools/openclaw-workclaw-cron/index.js'
|
|
28
|
-
|
|
29
|
-
// ============================================================================
|
|
30
|
-
// Tool output formatting helpers
|
|
31
|
-
// ============================================================================
|
|
32
|
-
|
|
33
|
-
function formatToolParams(toolName: string | undefined, params: unknown): string {
|
|
34
|
-
if (!params || typeof params !== 'object') {
|
|
35
|
-
return ''
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
const normalizedToolName = (toolName || '').toLowerCase().trim()
|
|
39
|
-
const p = params as Record<string, unknown>
|
|
40
|
-
|
|
41
|
-
try {
|
|
42
|
-
if (normalizedToolName === 'exec' || normalizedToolName === 'bash' || normalizedToolName === 'shell') {
|
|
43
|
-
const cmd = p.command || p.cmd
|
|
44
|
-
if (cmd)
|
|
45
|
-
return `command: ${String(cmd).slice(0, 200)}`
|
|
46
|
-
}
|
|
47
|
-
else if (
|
|
48
|
-
normalizedToolName === 'read'
|
|
49
|
-
|| normalizedToolName === 'file_read'
|
|
50
|
-
|| normalizedToolName === 'view'
|
|
51
|
-
) {
|
|
52
|
-
const p2 = p.path
|
|
53
|
-
if (p2)
|
|
54
|
-
return `path: ${p2}`
|
|
55
|
-
}
|
|
56
|
-
else if (
|
|
57
|
-
normalizedToolName === 'write'
|
|
58
|
-
|| normalizedToolName === 'file_write'
|
|
59
|
-
|| normalizedToolName === 'edit'
|
|
60
|
-
|| normalizedToolName === 'patch'
|
|
61
|
-
) {
|
|
62
|
-
const p2 = p.path
|
|
63
|
-
if (p2)
|
|
64
|
-
return `path: ${p2}`
|
|
65
|
-
}
|
|
66
|
-
else if (
|
|
67
|
-
normalizedToolName === 'web_fetch'
|
|
68
|
-
|| normalizedToolName === 'fetch'
|
|
69
|
-
|| normalizedToolName === 'http_get'
|
|
70
|
-
|| normalizedToolName === 'http_request'
|
|
71
|
-
|| normalizedToolName === 'open_url'
|
|
72
|
-
|| normalizedToolName === 'browser_open'
|
|
73
|
-
|| normalizedToolName === 'open'
|
|
74
|
-
) {
|
|
75
|
-
const u = p.url
|
|
76
|
-
if (u)
|
|
77
|
-
return `url: ${u}`
|
|
78
|
-
}
|
|
79
|
-
else if (
|
|
80
|
-
normalizedToolName === 'search'
|
|
81
|
-
|| normalizedToolName === 'web_search'
|
|
82
|
-
|| normalizedToolName === 'google_search'
|
|
83
|
-
|| normalizedToolName === 'browser_search'
|
|
84
|
-
|| normalizedToolName === 'browser.search'
|
|
85
|
-
) {
|
|
86
|
-
const q = p.query || p.q || p.search
|
|
87
|
-
if (q)
|
|
88
|
-
return `query: ${q}`
|
|
89
|
-
}
|
|
90
|
-
else if (
|
|
91
|
-
normalizedToolName === 'image_generate'
|
|
92
|
-
|| normalizedToolName === 'generate_image'
|
|
93
|
-
|| normalizedToolName === 'dalle'
|
|
94
|
-
|| normalizedToolName === 'text_to_image'
|
|
95
|
-
) {
|
|
96
|
-
const prompt = p.prompt
|
|
97
|
-
if (prompt)
|
|
98
|
-
return `prompt: ${String(prompt).slice(0, 200)}`
|
|
99
|
-
}
|
|
100
|
-
else if (
|
|
101
|
-
normalizedToolName === 'code_interpreter'
|
|
102
|
-
|| normalizedToolName === 'python'
|
|
103
|
-
|| normalizedToolName === 'jupyter'
|
|
104
|
-
) {
|
|
105
|
-
const code = p.code
|
|
106
|
-
if (code)
|
|
107
|
-
return `code: ${String(code).slice(0, 200)}`
|
|
108
|
-
}
|
|
109
|
-
else if (normalizedToolName === 'mcp_deliver' || normalizedToolName === 'deliver') {
|
|
110
|
-
const target = p.target || p.to
|
|
111
|
-
if (target)
|
|
112
|
-
return `target: ${target}`
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
const entries = Object.entries(p)
|
|
116
|
-
if (entries.length > 0) {
|
|
117
|
-
return entries
|
|
118
|
-
.map(([k, v]) => {
|
|
119
|
-
const vStr = typeof v === 'string' ? v : JSON.stringify(v)
|
|
120
|
-
return vStr.length > 100 ? `${k}: ${vStr.slice(0, 100)}...` : `${k}: ${vStr}`
|
|
121
|
-
})
|
|
122
|
-
.join('\n')
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
catch {
|
|
127
|
-
return String(params)
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
return ''
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
function formatToolOutput(toolName: string | undefined, params: unknown, _result: unknown): string {
|
|
134
|
-
return formatToolParams(toolName, params)
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
// ============================================================================
|
|
138
|
-
// Tool hooks
|
|
139
|
-
// ============================================================================
|
|
140
|
-
|
|
141
|
-
function registerToolHooks(api: OpenClawPluginApi) {
|
|
142
|
-
api.on('agent_end', (event: any, ctx: any) => {
|
|
143
|
-
const { runId } = ctx || {}
|
|
144
|
-
if (runId) {
|
|
145
|
-
deleteToolContext(runId)
|
|
146
|
-
api.logger?.info?.(`[ToolHook] agent_end runId=${runId} cleaned up`)
|
|
147
|
-
}
|
|
148
|
-
return event
|
|
149
|
-
})
|
|
150
|
-
|
|
151
|
-
api.on('before_tool_call', (event: any, _ctx: any) => {
|
|
152
|
-
api.logger?.info?.(`[ToolHook] before_tool_call event=${JSON.stringify(event)}`)
|
|
153
|
-
})
|
|
154
|
-
|
|
155
|
-
api.on('after_tool_call', (event: any, _ctx: any) => {
|
|
156
|
-
api.logger?.info?.(`[ToolHook] after_tool_call event=${JSON.stringify(event)}`)
|
|
157
|
-
const { runId, toolCallId, toolName, params, result } = event || {}
|
|
158
|
-
const toolCtx = runId ? getToolContext(runId) : undefined
|
|
159
|
-
|
|
160
|
-
if (toolCtx && result) {
|
|
161
|
-
const content = formatToolOutput(toolName, params, result)
|
|
162
|
-
if (content) {
|
|
163
|
-
try {
|
|
164
|
-
const cfg = getWorkclawRuntime().config.loadConfig()
|
|
165
|
-
const formattedToolOutput = {
|
|
166
|
-
name: getToolResultHint(toolName),
|
|
167
|
-
toolName,
|
|
168
|
-
content,
|
|
169
|
-
state: 'result',
|
|
170
|
-
}
|
|
171
|
-
sendMessageWorkclaw({
|
|
172
|
-
cfg,
|
|
173
|
-
to: toolCtx.target,
|
|
174
|
-
text: JSON.stringify(formattedToolOutput),
|
|
175
|
-
msgType: '26',
|
|
176
|
-
accountId: toolCtx.accountId,
|
|
177
|
-
openConversationId: toolCtx.openConversationId,
|
|
178
|
-
agentId: toolCtx.agentId,
|
|
179
|
-
replyToMessageId: toolCtx.replyToMessageId,
|
|
180
|
-
last: false,
|
|
181
|
-
source: 'after_tool_call',
|
|
182
|
-
}).catch((err) => {
|
|
183
|
-
api.logger?.error?.(`[ToolHook] after_tool_call push failed: ${err}`)
|
|
184
|
-
})
|
|
185
|
-
api.logger?.info?.(`[ToolHook] after_tool_call pushed for toolName=${toolName}`)
|
|
186
|
-
}
|
|
187
|
-
catch (err) {
|
|
188
|
-
api.logger?.error?.(`[ToolHook] after_tool_call push failed: ${err}`)
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
if (runId && toolCallId) {
|
|
194
|
-
setToolCallIdToRunIdMapping(toolCallId, runId)
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
return event
|
|
198
|
-
})
|
|
199
|
-
|
|
200
|
-
api.on('tool_result_persist', (event: any, _ctx: any) => {
|
|
201
|
-
return { message: event.message }
|
|
202
|
-
})
|
|
203
|
-
|
|
204
|
-
api.logger?.info?.(`[ToolHook] Tool execution hooks registered`)
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
// ============================================================================
|
|
208
|
-
// Templates
|
|
209
|
-
// ============================================================================
|
|
210
|
-
|
|
211
|
-
const templateNames = ['SOUL.md', 'IDENTITY.md'] as const
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* 获取插件所在目录,兼容 Windows 下的 file:// URL 问题。
|
|
215
|
-
* 4.2 的插件加载器在 Windows 上可能传入不带协议前缀的路径。
|
|
216
|
-
*/
|
|
217
|
-
function getPluginDir(): string {
|
|
218
|
-
try {
|
|
219
|
-
const url = import.meta.url
|
|
220
|
-
if (!url.startsWith('file://')) {
|
|
221
|
-
// Windows 路径被直接传入(不带 file:// 前缀),直接取目录
|
|
222
|
-
return path.dirname(url)
|
|
223
|
-
}
|
|
224
|
-
return path.dirname(fileURLToPath(url))
|
|
225
|
-
}
|
|
226
|
-
catch {
|
|
227
|
-
return process.cwd()
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
async function writeFileIfMissing(filePath: string, content: string) {
|
|
232
|
-
try {
|
|
233
|
-
await writeFile(filePath, content, { encoding: 'utf-8', flag: 'wx' })
|
|
234
|
-
}
|
|
235
|
-
catch (error) {
|
|
236
|
-
if (
|
|
237
|
-
error
|
|
238
|
-
&& typeof error === 'object'
|
|
239
|
-
&& 'code' in error
|
|
240
|
-
&& (error as NodeJS.ErrnoException).code === 'EEXIST'
|
|
241
|
-
) {
|
|
242
|
-
return
|
|
243
|
-
}
|
|
244
|
-
throw error
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
async function releaseTemplates(api: OpenClawPluginApi) {
|
|
249
|
-
const workspaceDir = resolveWorkspaceDir(api)
|
|
250
|
-
getWorkclawLogger().info(`workspaceDir: ${workspaceDir}`)
|
|
251
|
-
// 模板文件在根目录的 templates/ 中,而不是 dist/templates/
|
|
252
|
-
const currentDir = getPluginDir()
|
|
253
|
-
const templatesDir = path.join(
|
|
254
|
-
currentDir.endsWith('dist') ? path.dirname(currentDir) : currentDir,
|
|
255
|
-
'templates',
|
|
256
|
-
)
|
|
257
|
-
const shouldOverwrite = isDefaultWorkspace(api)
|
|
258
|
-
|
|
259
|
-
await mkdir(workspaceDir, { recursive: true })
|
|
260
|
-
|
|
261
|
-
await Promise.all(
|
|
262
|
-
templateNames.map(async (name) => {
|
|
263
|
-
const sourcePath = path.join(templatesDir, name)
|
|
264
|
-
const targetPath = path.join(workspaceDir, name)
|
|
265
|
-
const content = await readFile(sourcePath, 'utf-8')
|
|
266
|
-
if (shouldOverwrite) {
|
|
267
|
-
await writeFile(targetPath, content, { encoding: 'utf-8' })
|
|
268
|
-
}
|
|
269
|
-
else {
|
|
270
|
-
await writeFileIfMissing(targetPath, content)
|
|
271
|
-
}
|
|
272
|
-
}),
|
|
273
|
-
)
|
|
274
|
-
|
|
275
|
-
api.logger.info(`openclaw-workclaw templates ready: ${workspaceDir}`)
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
// ============================================================================
|
|
279
|
-
// Plugin entry point
|
|
280
|
-
// ============================================================================
|
|
281
|
-
|
|
282
|
-
export default defineChannelPluginEntry({
|
|
283
|
-
id: 'openclaw-workclaw',
|
|
284
|
-
name: 'openclaw-workclaw',
|
|
285
|
-
description: '智小途 channel plugin',
|
|
286
|
-
configSchema: emptyPluginConfigSchema() as any,
|
|
287
|
-
plugin: workclawPlugin,
|
|
288
|
-
registerFull(api) {
|
|
289
|
-
setWorkclawRuntime(api.runtime)
|
|
290
|
-
|
|
291
|
-
registerAllOpenclawWorkclawCronTools(api)
|
|
292
|
-
registerToolHooks(api)
|
|
293
|
-
|
|
294
|
-
api.registerService({
|
|
295
|
-
id: 'openclaw-workclaw-templates',
|
|
296
|
-
start: async () => {
|
|
297
|
-
await releaseTemplates(api)
|
|
298
|
-
},
|
|
299
|
-
})
|
|
300
|
-
|
|
301
|
-
api.registerHttpRoute({
|
|
302
|
-
path: '/openclaw-workclaw/workspace/prompts',
|
|
303
|
-
handler: createPromptsApiHandler(api),
|
|
304
|
-
auth: 'plugin',
|
|
305
|
-
})
|
|
306
|
-
|
|
307
|
-
api.registerHttpRoute({
|
|
308
|
-
path: '/openclaw-workclaw/accounts',
|
|
309
|
-
handler: createAccountsApiHandler(api),
|
|
310
|
-
auth: 'plugin',
|
|
311
|
-
})
|
|
312
|
-
|
|
313
|
-
api.registerHttpRoute({
|
|
314
|
-
path: '/openclaw-workclaw/skills',
|
|
315
|
-
handler: createSkillsApiHandler(api),
|
|
316
|
-
auth: 'plugin',
|
|
317
|
-
})
|
|
318
|
-
|
|
319
|
-
api.registerHttpRoute({
|
|
320
|
-
path: '/openclaw-workclaw/sessions',
|
|
321
|
-
handler: createSessionApiHandler(api),
|
|
322
|
-
auth: 'plugin',
|
|
323
|
-
match: 'prefix',
|
|
324
|
-
})
|
|
325
|
-
},
|
|
326
|
-
})
|
package/setup-entry.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { defineBundledChannelSetupEntry } from 'openclaw/plugin-sdk/channel-entry-contract'
|
|
2
|
-
|
|
3
|
-
export default defineBundledChannelSetupEntry({
|
|
4
|
-
importMetaUrl: import.meta.url,
|
|
5
|
-
plugin: {
|
|
6
|
-
specifier: './api.js',
|
|
7
|
-
exportName: 'workclawPlugin',
|
|
8
|
-
},
|
|
9
|
-
secrets: {
|
|
10
|
-
specifier: './src/secret-contract-api.js',
|
|
11
|
-
exportName: 'channelSecrets',
|
|
12
|
-
},
|
|
13
|
-
})
|
package/src/accounts.ts
DELETED
|
@@ -1,360 +0,0 @@
|
|
|
1
|
-
import type { OpenClawConfig } from 'openclaw/plugin-sdk'
|
|
2
|
-
import type {
|
|
3
|
-
ResolvedWorkclawAccount,
|
|
4
|
-
WorkclawAccountConfig,
|
|
5
|
-
WorkclawConfig,
|
|
6
|
-
} from './types.js'
|
|
7
|
-
import { DEFAULT_ACCOUNT_ID } from 'openclaw/plugin-sdk/account-id'
|
|
8
|
-
import { getWorkclawConnectionConfig, getWorkclawLogger } from './runtime.js'
|
|
9
|
-
|
|
10
|
-
// =============================================================================
|
|
11
|
-
// In-memory lookup cache for (userId, agentId) → workspace-N accountId
|
|
12
|
-
// Problem: OpenClaw doesn't support dashes in account IDs, agentId can be negative
|
|
13
|
-
// Solution: workspace-N naming + in-memory Map for O(1) lookups
|
|
14
|
-
// =============================================================================
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Normalize account ID by trimming whitespace
|
|
18
|
-
*/
|
|
19
|
-
export function normalizeAccountId(accountId: string | null | undefined): string {
|
|
20
|
-
return String(accountId ?? '').trim()
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Key format for the lookup map: "userId|agentId"
|
|
25
|
-
*/
|
|
26
|
-
function makeLookupKey(userId: string, agentId: string): string {
|
|
27
|
-
return `${userId}|${agentId}`
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* In-memory map: lookupKey -> accountId
|
|
32
|
-
*/
|
|
33
|
-
const lookupCache = new Map<string, string>()
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* In-memory map: accountId -> { userId, agentId }
|
|
37
|
-
*/
|
|
38
|
-
const accountIndex = new Map<string, { userId: string, agentId: string }>()
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Next workspace number to allocate
|
|
42
|
-
*/
|
|
43
|
-
let nextWorkspaceNum = 1
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Build the lookup cache from existing accounts in cfg.
|
|
47
|
-
* Called once at gateway startup.
|
|
48
|
-
*/
|
|
49
|
-
export function buildAccountMap(cfg: OpenClawConfig): void {
|
|
50
|
-
lookupCache.clear()
|
|
51
|
-
accountIndex.clear()
|
|
52
|
-
nextWorkspaceNum = 1
|
|
53
|
-
|
|
54
|
-
const _WorkclawConfig = (cfg.channels?.['openclaw-workclaw'] || {}) as WorkclawConfig
|
|
55
|
-
|
|
56
|
-
const accounts = _WorkclawConfig?.accounts
|
|
57
|
-
if (!accounts || typeof accounts !== 'object')
|
|
58
|
-
return
|
|
59
|
-
|
|
60
|
-
for (const [accountId, accountCfg] of Object.entries(accounts)) {
|
|
61
|
-
if (!accountCfg)
|
|
62
|
-
continue
|
|
63
|
-
const userId = accountCfg.userId || _WorkclawConfig.userId
|
|
64
|
-
const agentId = accountCfg.agentId
|
|
65
|
-
if (!agentId)
|
|
66
|
-
continue
|
|
67
|
-
|
|
68
|
-
// userId may not be present for config-defined accounts; only build
|
|
69
|
-
// lookup if userId is available (dynamically created accounts have it)
|
|
70
|
-
if (userId) {
|
|
71
|
-
const key = makeLookupKey(String(userId), String(agentId))
|
|
72
|
-
lookupCache.set(key, accountId)
|
|
73
|
-
}
|
|
74
|
-
accountIndex.set(accountId, { userId: String(userId ?? ''), agentId: String(agentId) })
|
|
75
|
-
|
|
76
|
-
if (accountId.startsWith('workspace-')) {
|
|
77
|
-
const num = Number.parseInt(accountId.slice(accountId.lastIndexOf('-') + 1), 10)
|
|
78
|
-
if (!Number.isNaN(num) && num >= nextWorkspaceNum) {
|
|
79
|
-
nextWorkspaceNum = num + 1
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// 默认账户允许直接使用顶层 userId/agentId,不要求必须存在 accounts.default
|
|
85
|
-
if (!accountIndex.has(DEFAULT_ACCOUNT_ID) && _WorkclawConfig.userId && _WorkclawConfig.agentId) {
|
|
86
|
-
const userId = String(_WorkclawConfig.userId)
|
|
87
|
-
const agentId = String(_WorkclawConfig.agentId)
|
|
88
|
-
const key = makeLookupKey(userId, agentId)
|
|
89
|
-
lookupCache.set(key, DEFAULT_ACCOUNT_ID)
|
|
90
|
-
accountIndex.set(DEFAULT_ACCOUNT_ID, { userId, agentId })
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
getWorkclawLogger().info(`[AccountManager] Built account map with ${lookupCache.size} entries, nextWorkspaceNum=${nextWorkspaceNum}`)
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Resolve accountId by userId + agentId.
|
|
98
|
-
* First checks cache, then falls back to iteration.
|
|
99
|
-
*/
|
|
100
|
-
export function resolveAccountByUserIdAndAgentId(
|
|
101
|
-
cfg: OpenClawConfig,
|
|
102
|
-
userId: string,
|
|
103
|
-
agentId: string,
|
|
104
|
-
): string | null {
|
|
105
|
-
const key = makeLookupKey(userId, agentId)
|
|
106
|
-
|
|
107
|
-
if (lookupCache.has(key)) {
|
|
108
|
-
return lookupCache.get(key)!
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
const _WorkclawConfig = (cfg.channels?.['openclaw-workclaw'] || {}) as WorkclawConfig
|
|
112
|
-
const accounts = _WorkclawConfig?.accounts
|
|
113
|
-
if (accounts && typeof accounts === 'object') {
|
|
114
|
-
for (const [accountId, accountCfg] of Object.entries(accounts)) {
|
|
115
|
-
if (!accountCfg)
|
|
116
|
-
continue
|
|
117
|
-
const accountUserId = accountCfg.userId || _WorkclawConfig.userId
|
|
118
|
-
if (String(accountUserId) === userId && String(accountCfg.agentId) === agentId) {
|
|
119
|
-
lookupCache.set(key, accountId)
|
|
120
|
-
accountIndex.set(accountId, { userId, agentId })
|
|
121
|
-
return accountId
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
// 兼容默认账户直接写在顶层配置中的场景
|
|
127
|
-
if (
|
|
128
|
-
String(_WorkclawConfig.userId ?? '') === userId
|
|
129
|
-
&& String(_WorkclawConfig.agentId ?? '') === agentId
|
|
130
|
-
) {
|
|
131
|
-
lookupCache.set(key, DEFAULT_ACCOUNT_ID)
|
|
132
|
-
accountIndex.set(DEFAULT_ACCOUNT_ID, { userId, agentId })
|
|
133
|
-
return DEFAULT_ACCOUNT_ID
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
return null
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Allocate a new workspace-N accountId and register it in the map.
|
|
141
|
-
*/
|
|
142
|
-
export function allocateWorkerAccountId(
|
|
143
|
-
_cfg: OpenClawConfig,
|
|
144
|
-
userId: string,
|
|
145
|
-
agentId: string,
|
|
146
|
-
): string {
|
|
147
|
-
const accountId = `workspace-${nextWorkspaceNum}`
|
|
148
|
-
nextWorkspaceNum++
|
|
149
|
-
|
|
150
|
-
const key = makeLookupKey(userId, agentId)
|
|
151
|
-
lookupCache.set(key, accountId)
|
|
152
|
-
accountIndex.set(accountId, { userId, agentId })
|
|
153
|
-
|
|
154
|
-
getWorkclawLogger().info(`[AccountManager] Allocated accountId=${accountId} for userId=${userId} agentId=${agentId}`)
|
|
155
|
-
return accountId
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* Refresh the cache when an account's userId or agentId changes.
|
|
160
|
-
*/
|
|
161
|
-
export function refreshAccountCache(cfg: OpenClawConfig): void {
|
|
162
|
-
buildAccountMap(cfg)
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
// =============================================================================
|
|
166
|
-
// Account config resolution (pure functions, no in-memory state)
|
|
167
|
-
// =============================================================================
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* List all configured account IDs from the accounts field.
|
|
171
|
-
*/
|
|
172
|
-
function listConfiguredAccountIds(cfg: OpenClawConfig): string[] {
|
|
173
|
-
const accounts = (cfg.channels?.['openclaw-workclaw'] as WorkclawConfig)?.accounts
|
|
174
|
-
if (!accounts || typeof accounts !== 'object') {
|
|
175
|
-
return []
|
|
176
|
-
}
|
|
177
|
-
return Object.keys(accounts).filter(Boolean)
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* Check if plugin-level workclaw config exists (appKey + appSecret)
|
|
182
|
-
*/
|
|
183
|
-
function hasPluginLevelWorkClawConfig(cfg: OpenClawConfig): boolean {
|
|
184
|
-
const workclawCfg = cfg.channels?.['openclaw-workclaw'] as WorkclawConfig | undefined
|
|
185
|
-
const key = typeof workclawCfg?.appKey === 'string' ? workclawCfg.appKey.trim() : ''
|
|
186
|
-
const secret = typeof workclawCfg?.appSecret === 'string' ? workclawCfg.appSecret.trim() : ''
|
|
187
|
-
return Boolean(key && secret)
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* List all account IDs.
|
|
192
|
-
* If no accounts are configured but plugin has workclaw config, returns [DEFAULT_ACCOUNT_ID].
|
|
193
|
-
*/
|
|
194
|
-
export function listWorkclawAccountIds(cfg: OpenClawConfig): string[] {
|
|
195
|
-
const ids = listConfiguredAccountIds(cfg)
|
|
196
|
-
if (ids.length === 0) {
|
|
197
|
-
// 如果没有配置账户,但插件级别有 workclaw 配置,返回默认账户
|
|
198
|
-
if (hasPluginLevelWorkClawConfig(cfg)) {
|
|
199
|
-
return [DEFAULT_ACCOUNT_ID]
|
|
200
|
-
}
|
|
201
|
-
// Backward compatibility: no accounts configured, use default
|
|
202
|
-
return [DEFAULT_ACCOUNT_ID]
|
|
203
|
-
}
|
|
204
|
-
return [...ids].toSorted((a, b) => a.localeCompare(b))
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* Resolve the default account ID.
|
|
209
|
-
*/
|
|
210
|
-
export function resolveDefaultWorkclawAccountId(cfg: OpenClawConfig): string {
|
|
211
|
-
const ids = listWorkclawAccountIds(cfg)
|
|
212
|
-
if (ids.includes(DEFAULT_ACCOUNT_ID)) {
|
|
213
|
-
return DEFAULT_ACCOUNT_ID
|
|
214
|
-
}
|
|
215
|
-
return ids[0] ?? DEFAULT_ACCOUNT_ID
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* Get the raw account-specific config.
|
|
220
|
-
*/
|
|
221
|
-
function resolveAccountConfig(
|
|
222
|
-
cfg: OpenClawConfig,
|
|
223
|
-
accountId: string,
|
|
224
|
-
): WorkclawAccountConfig | undefined {
|
|
225
|
-
const accounts = (cfg.channels?.['openclaw-workclaw'] as WorkclawConfig)?.accounts
|
|
226
|
-
if (!accounts || typeof accounts !== 'object') {
|
|
227
|
-
return undefined
|
|
228
|
-
}
|
|
229
|
-
return accounts[accountId]
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
function hasWorkClawConfig(config: {
|
|
233
|
-
appKey?: string
|
|
234
|
-
appSecret?: string
|
|
235
|
-
agentId?: string | number
|
|
236
|
-
}): boolean {
|
|
237
|
-
const key = typeof config.appKey === 'string' ? config.appKey.trim() : ''
|
|
238
|
-
const secret
|
|
239
|
-
= typeof config.appSecret === 'string' ? config.appSecret.trim() : ''
|
|
240
|
-
// 只要有 appKey 和 appSecret 就认为配置了 workclaw(agentId 可以动态添加)
|
|
241
|
-
return Boolean(key && secret)
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
export function isWorkclawAccountConfigured(config: {
|
|
245
|
-
appKey?: string
|
|
246
|
-
appSecret?: string
|
|
247
|
-
agentId?: string | number
|
|
248
|
-
}): boolean {
|
|
249
|
-
return hasWorkClawConfig(config)
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
* Merge top-level config with account-specific config.
|
|
254
|
-
* Account-specific fields override top-level fields.
|
|
255
|
-
*/
|
|
256
|
-
function mergeWorkclawAccountConfig(cfg: OpenClawConfig, accountId: string): WorkclawConfig {
|
|
257
|
-
const workclawCfg = cfg.channels?.['openclaw-workclaw'] as WorkclawConfig | undefined
|
|
258
|
-
|
|
259
|
-
// Extract base config (exclude accounts field to avoid recursion)
|
|
260
|
-
const { accounts: _ignored, ...base } = workclawCfg ?? {}
|
|
261
|
-
|
|
262
|
-
// Get account-specific overrides
|
|
263
|
-
const account = resolveAccountConfig(cfg, accountId) ?? {}
|
|
264
|
-
|
|
265
|
-
// Merge: account config overrides base config
|
|
266
|
-
return { ...base, ...account } as WorkclawConfig
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* Resolve a complete account with merged config.
|
|
271
|
-
*/
|
|
272
|
-
export function resolveWorkclawAccount(params: {
|
|
273
|
-
cfg: OpenClawConfig
|
|
274
|
-
accountId?: string | null
|
|
275
|
-
}): ResolvedWorkclawAccount {
|
|
276
|
-
const accountId = normalizeAccountId(params.accountId)
|
|
277
|
-
const workclawCfg = params.cfg.channels?.['openclaw-workclaw'] as WorkclawConfig | undefined
|
|
278
|
-
|
|
279
|
-
// Base enabled state (top-level)
|
|
280
|
-
const baseEnabled = workclawCfg?.enabled !== false
|
|
281
|
-
|
|
282
|
-
// Merge configs
|
|
283
|
-
const merged = mergeWorkclawAccountConfig(params.cfg, accountId)
|
|
284
|
-
|
|
285
|
-
// Account-level enabled state
|
|
286
|
-
const accountEnabled = merged.enabled !== false
|
|
287
|
-
const enabled = baseEnabled && accountEnabled
|
|
288
|
-
|
|
289
|
-
return {
|
|
290
|
-
accountId,
|
|
291
|
-
enabled,
|
|
292
|
-
configured: isWorkclawAccountConfigured(merged),
|
|
293
|
-
name: (merged as WorkclawAccountConfig).name?.trim() || undefined,
|
|
294
|
-
config: merged,
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
/**
|
|
299
|
-
* List all enabled and configured accounts.
|
|
300
|
-
*/
|
|
301
|
-
export function listEnabledWorkclawAccounts(cfg: OpenClawConfig): ResolvedWorkclawAccount[] {
|
|
302
|
-
return listConfiguredAccountIds(cfg)
|
|
303
|
-
.map(accountId => resolveWorkclawAccount({ cfg, accountId }))
|
|
304
|
-
.filter(account => account.enabled && account.configured)
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* Resolve account and apply cached connection config if available.
|
|
309
|
-
* This ensures that appKey/appSecret etc. use the stable values captured at connection time,
|
|
310
|
-
* not potentially mutated values from cfg at resolution time.
|
|
311
|
-
*/
|
|
312
|
-
export function resolveWorkclawAccountWithCache(params: {
|
|
313
|
-
cfg: OpenClawConfig
|
|
314
|
-
accountId?: string | null
|
|
315
|
-
}): ResolvedWorkclawAccount {
|
|
316
|
-
const account = resolveWorkclawAccount(params)
|
|
317
|
-
const cachedConfig = getWorkclawConnectionConfig(account.accountId)
|
|
318
|
-
|
|
319
|
-
if (cachedConfig) {
|
|
320
|
-
// Apply cached values to ensure stability
|
|
321
|
-
account.config.appKey = cachedConfig.appKey || account.config.appKey
|
|
322
|
-
account.config.appSecret = cachedConfig.appSecret || account.config.appSecret
|
|
323
|
-
if (cachedConfig.baseUrl)
|
|
324
|
-
account.config.baseUrl = cachedConfig.baseUrl
|
|
325
|
-
if (cachedConfig.websocketUrl !== undefined)
|
|
326
|
-
account.config.websocketUrl = cachedConfig.websocketUrl
|
|
327
|
-
if (cachedConfig.localIp !== undefined)
|
|
328
|
-
account.config.localIp = cachedConfig.localIp
|
|
329
|
-
if (cachedConfig.allowInsecureTls !== undefined)
|
|
330
|
-
account.config.allowInsecureTls = cachedConfig.allowInsecureTls
|
|
331
|
-
if (cachedConfig.requestTimeout !== undefined)
|
|
332
|
-
account.config.requestTimeout = cachedConfig.requestTimeout
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
return account
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
/**
|
|
339
|
-
* Inspect and probe workclaw credentials.
|
|
340
|
-
* Returns a function that can be called to test the connection.
|
|
341
|
-
*/
|
|
342
|
-
export function inspectWorkclawCredentials(workclawCfg?: WorkclawConfig): (() => Promise<{ ok: boolean, botName?: string }>) | null {
|
|
343
|
-
const appKey = typeof workclawCfg?.appKey === 'string' ? workclawCfg.appKey.trim() : ''
|
|
344
|
-
const appSecret = typeof workclawCfg?.appSecret === 'string' ? workclawCfg.appSecret.trim() : ''
|
|
345
|
-
|
|
346
|
-
if (!appKey || !appSecret) {
|
|
347
|
-
return null
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
return async () => {
|
|
351
|
-
try {
|
|
352
|
-
// 这里可以实现凭证验证逻辑
|
|
353
|
-
// 暂时返回成功,因为实际验证需要连接工作线程
|
|
354
|
-
return { ok: true }
|
|
355
|
-
}
|
|
356
|
-
catch {
|
|
357
|
-
return { ok: false }
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
}
|