@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
|
@@ -0,0 +1,1299 @@
|
|
|
1
|
+
import { s as normalizeOptionalString, u as normalizeStringifiedOptionalString, i as normalizeLowercaseStringOrEmpty } from "./string-coerce-BUSzWgUA.js";
|
|
2
|
+
import { l as resolveLoaderPackageRoot } from "./sdk-alias-Bo1huP7M.js";
|
|
3
|
+
import { P as TypingModeSchema, d as HumanDelaySchema, n as BlockStreamingCoalesceSchema, t as BlockStreamingChunkSchema, r as CliBackendSchema, k as TranscribeAudioSchema, i as ContextVisibilityModeSchema, l as GroupPolicySchema, L as createAllowDenyChannelRulesSchema, j as TtsConfigSchema, p as InboundDebounceSchema, y as QueueSchema, c as GroupChatSchema, _ as NativeCommandsSettingSchema, C as SecretInputSchema, g as ModelsConfigSchema, E as SecretsConfigSchema, u as HexColorSchema } from "./zod-schema.core-BrzjtZhM.js";
|
|
4
|
+
import { t as sensitive } from "./zod-schema.sensitive-BFZ4qze6.js";
|
|
5
|
+
import { n as listBundledPluginMetadata, a as collectBundledChannelConfigs } from "./bundled-plugin-metadata-BJMD48hn.js";
|
|
6
|
+
import { t as parseDurationMs } from "./parse-duration-amE_QFsj.js";
|
|
7
|
+
import { r as AgentSandboxSchema, a as HeartbeatSchema, o as MemorySearchSchema, t as AgentEmbeddedHarnessSchema, l as AgentModelSchema, n as AgentEntrySchema, i as ElevatedAllowFromSchema, c as ToolsSchema } from "./zod-schema.agent-runtime-D48J52r_.js";
|
|
8
|
+
import { l as ChannelHeartbeatVisibilitySchema } from "./zod-schema.providers-core-CX8AFeyJ.js";
|
|
9
|
+
import "./zod-schema.providers-whatsapp-7E9bf9oA.js";
|
|
10
|
+
import { fileURLToPath } from "node:url";
|
|
11
|
+
import path from "node:path";
|
|
12
|
+
import { z } from "zod";
|
|
13
|
+
const UNIT_MULTIPLIERS = {
|
|
14
|
+
b: 1,
|
|
15
|
+
kb: 1024,
|
|
16
|
+
k: 1024,
|
|
17
|
+
mb: 1024 ** 2,
|
|
18
|
+
m: 1024 ** 2,
|
|
19
|
+
gb: 1024 ** 3,
|
|
20
|
+
g: 1024 ** 3,
|
|
21
|
+
tb: 1024 ** 4,
|
|
22
|
+
t: 1024 ** 4
|
|
23
|
+
};
|
|
24
|
+
function parseByteSize(raw, opts) {
|
|
25
|
+
const trimmed = normalizeLowercaseStringOrEmpty(normalizeOptionalString(raw) ?? "");
|
|
26
|
+
if (!trimmed) throw new Error("invalid byte size (empty)");
|
|
27
|
+
const m = /^(\d+(?:\.\d+)?)([a-z]+)?$/.exec(trimmed);
|
|
28
|
+
if (!m) throw new Error(`invalid byte size: ${raw}`);
|
|
29
|
+
const value = Number(m[1]);
|
|
30
|
+
if (!Number.isFinite(value) || value < 0) throw new Error(`invalid byte size: ${raw}`);
|
|
31
|
+
const multiplier = UNIT_MULTIPLIERS[normalizeLowercaseStringOrEmpty(m[2] ?? opts?.defaultUnit ?? "b")];
|
|
32
|
+
if (!multiplier) throw new Error(`invalid byte size unit: ${raw}`);
|
|
33
|
+
const bytes = Math.round(value * multiplier);
|
|
34
|
+
if (!Number.isFinite(bytes)) throw new Error(`invalid byte size: ${raw}`);
|
|
35
|
+
return bytes;
|
|
36
|
+
}
|
|
37
|
+
function parseNonNegativeByteSize(value) {
|
|
38
|
+
if (typeof value === "number" && Number.isFinite(value)) {
|
|
39
|
+
const int = Math.floor(value);
|
|
40
|
+
return int >= 0 ? int : null;
|
|
41
|
+
}
|
|
42
|
+
if (typeof value === "string") {
|
|
43
|
+
const trimmed = value.trim();
|
|
44
|
+
if (!trimmed) return null;
|
|
45
|
+
try {
|
|
46
|
+
const bytes = parseByteSize(trimmed, { defaultUnit: "b" });
|
|
47
|
+
return bytes >= 0 ? bytes : null;
|
|
48
|
+
} catch {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
function isValidNonNegativeByteSizeString(value) {
|
|
55
|
+
return parseNonNegativeByteSize(value) !== null;
|
|
56
|
+
}
|
|
57
|
+
const AgentDefaultsSchema = z.object({
|
|
58
|
+
params: z.record(z.string(), z.unknown()).optional(),
|
|
59
|
+
embeddedHarness: AgentEmbeddedHarnessSchema,
|
|
60
|
+
model: AgentModelSchema.optional(),
|
|
61
|
+
imageModel: AgentModelSchema.optional(),
|
|
62
|
+
imageGenerationModel: AgentModelSchema.optional(),
|
|
63
|
+
videoGenerationModel: AgentModelSchema.optional(),
|
|
64
|
+
musicGenerationModel: AgentModelSchema.optional(),
|
|
65
|
+
mediaGenerationAutoProviderFallback: z.boolean().optional(),
|
|
66
|
+
pdfModel: AgentModelSchema.optional(),
|
|
67
|
+
pdfMaxBytesMb: z.number().positive().optional(),
|
|
68
|
+
pdfMaxPages: z.number().int().positive().optional(),
|
|
69
|
+
models: z.record(z.string(), z.object({
|
|
70
|
+
alias: z.string().optional(),
|
|
71
|
+
params: z.record(z.string(), z.unknown()).optional(),
|
|
72
|
+
streaming: z.boolean().optional()
|
|
73
|
+
}).strict()).optional(),
|
|
74
|
+
workspace: z.string().optional(),
|
|
75
|
+
skills: z.array(z.string()).optional(),
|
|
76
|
+
repoRoot: z.string().optional(),
|
|
77
|
+
systemPromptOverride: z.string().optional(),
|
|
78
|
+
skipBootstrap: z.boolean().optional(),
|
|
79
|
+
contextInjection: z.union([z.literal("always"), z.literal("continuation-skip")]).optional(),
|
|
80
|
+
bootstrapMaxChars: z.number().int().positive().optional(),
|
|
81
|
+
bootstrapTotalMaxChars: z.number().int().positive().optional(),
|
|
82
|
+
bootstrapPromptTruncationWarning: z.union([
|
|
83
|
+
z.literal("off"),
|
|
84
|
+
z.literal("once"),
|
|
85
|
+
z.literal("always")
|
|
86
|
+
]).optional(),
|
|
87
|
+
userTimezone: z.string().optional(),
|
|
88
|
+
startupContext: z.object({
|
|
89
|
+
enabled: z.boolean().optional(),
|
|
90
|
+
applyOn: z.array(z.union([z.literal("new"), z.literal("reset")])).optional(),
|
|
91
|
+
dailyMemoryDays: z.number().int().min(1).max(14).optional(),
|
|
92
|
+
maxFileBytes: z.number().int().min(1).max(64 * 1024).optional(),
|
|
93
|
+
maxFileChars: z.number().int().min(1).max(1e4).optional(),
|
|
94
|
+
maxTotalChars: z.number().int().min(1).max(5e4).optional()
|
|
95
|
+
}).strict().optional(),
|
|
96
|
+
timeFormat: z.union([
|
|
97
|
+
z.literal("auto"),
|
|
98
|
+
z.literal("12"),
|
|
99
|
+
z.literal("24")
|
|
100
|
+
]).optional(),
|
|
101
|
+
envelopeTimezone: z.string().optional(),
|
|
102
|
+
envelopeTimestamp: z.union([z.literal("on"), z.literal("off")]).optional(),
|
|
103
|
+
envelopeElapsed: z.union([z.literal("on"), z.literal("off")]).optional(),
|
|
104
|
+
contextTokens: z.number().int().positive().optional(),
|
|
105
|
+
cliBackends: z.record(z.string(), CliBackendSchema).optional(),
|
|
106
|
+
memorySearch: MemorySearchSchema,
|
|
107
|
+
contextPruning: z.object({
|
|
108
|
+
mode: z.union([z.literal("off"), z.literal("cache-ttl")]).optional(),
|
|
109
|
+
ttl: z.string().optional(),
|
|
110
|
+
keepLastAssistants: z.number().int().nonnegative().optional(),
|
|
111
|
+
softTrimRatio: z.number().min(0).max(1).optional(),
|
|
112
|
+
hardClearRatio: z.number().min(0).max(1).optional(),
|
|
113
|
+
minPrunableToolChars: z.number().int().nonnegative().optional(),
|
|
114
|
+
tools: z.object({
|
|
115
|
+
allow: z.array(z.string()).optional(),
|
|
116
|
+
deny: z.array(z.string()).optional()
|
|
117
|
+
}).strict().optional(),
|
|
118
|
+
softTrim: z.object({
|
|
119
|
+
maxChars: z.number().int().nonnegative().optional(),
|
|
120
|
+
headChars: z.number().int().nonnegative().optional(),
|
|
121
|
+
tailChars: z.number().int().nonnegative().optional()
|
|
122
|
+
}).strict().optional(),
|
|
123
|
+
hardClear: z.object({
|
|
124
|
+
enabled: z.boolean().optional(),
|
|
125
|
+
placeholder: z.string().optional()
|
|
126
|
+
}).strict().optional()
|
|
127
|
+
}).strict().optional(),
|
|
128
|
+
llm: z.object({ idleTimeoutSeconds: z.number().int().nonnegative().optional().describe(`Idle timeout for LLM streaming responses in seconds. If no token is received within this time, the request is aborted. Set to 0 to disable. Default: 120 seconds.`) }).strict().optional(),
|
|
129
|
+
compaction: z.object({
|
|
130
|
+
mode: z.union([z.literal("default"), z.literal("safeguard")]).optional(),
|
|
131
|
+
provider: z.string().optional(),
|
|
132
|
+
reserveTokens: z.number().int().nonnegative().optional(),
|
|
133
|
+
keepRecentTokens: z.number().int().positive().optional(),
|
|
134
|
+
reserveTokensFloor: z.number().int().nonnegative().optional(),
|
|
135
|
+
maxHistoryShare: z.number().min(0.1).max(0.9).optional(),
|
|
136
|
+
customInstructions: z.string().optional(),
|
|
137
|
+
identifierPolicy: z.union([
|
|
138
|
+
z.literal("strict"),
|
|
139
|
+
z.literal("off"),
|
|
140
|
+
z.literal("custom")
|
|
141
|
+
]).optional(),
|
|
142
|
+
identifierInstructions: z.string().optional(),
|
|
143
|
+
recentTurnsPreserve: z.number().int().min(0).max(12).optional(),
|
|
144
|
+
qualityGuard: z.object({
|
|
145
|
+
enabled: z.boolean().optional(),
|
|
146
|
+
maxRetries: z.number().int().nonnegative().optional()
|
|
147
|
+
}).strict().optional(),
|
|
148
|
+
postIndexSync: z.enum([
|
|
149
|
+
"off",
|
|
150
|
+
"async",
|
|
151
|
+
"await"
|
|
152
|
+
]).optional(),
|
|
153
|
+
postCompactionSections: z.array(z.string()).optional(),
|
|
154
|
+
model: z.string().optional(),
|
|
155
|
+
timeoutSeconds: z.number().int().positive().optional(),
|
|
156
|
+
memoryFlush: z.object({
|
|
157
|
+
enabled: z.boolean().optional(),
|
|
158
|
+
softThresholdTokens: z.number().int().nonnegative().optional(),
|
|
159
|
+
forceFlushTranscriptBytes: z.union([z.number().int().nonnegative(), z.string().refine(isValidNonNegativeByteSizeString, "Expected byte size string like 2mb")]).optional(),
|
|
160
|
+
prompt: z.string().optional(),
|
|
161
|
+
systemPrompt: z.string().optional()
|
|
162
|
+
}).strict().optional(),
|
|
163
|
+
notifyUser: z.boolean().optional()
|
|
164
|
+
}).strict().optional(),
|
|
165
|
+
embeddedPi: z.object({
|
|
166
|
+
projectSettingsPolicy: z.union([
|
|
167
|
+
z.literal("trusted"),
|
|
168
|
+
z.literal("sanitize"),
|
|
169
|
+
z.literal("ignore")
|
|
170
|
+
]).optional(),
|
|
171
|
+
executionContract: z.union([z.literal("default"), z.literal("strict-agentic")]).optional()
|
|
172
|
+
}).strict().optional(),
|
|
173
|
+
thinkingDefault: z.union([
|
|
174
|
+
z.literal("off"),
|
|
175
|
+
z.literal("minimal"),
|
|
176
|
+
z.literal("low"),
|
|
177
|
+
z.literal("medium"),
|
|
178
|
+
z.literal("high"),
|
|
179
|
+
z.literal("xhigh"),
|
|
180
|
+
z.literal("adaptive")
|
|
181
|
+
]).optional(),
|
|
182
|
+
verboseDefault: z.union([
|
|
183
|
+
z.literal("off"),
|
|
184
|
+
z.literal("on"),
|
|
185
|
+
z.literal("full")
|
|
186
|
+
]).optional(),
|
|
187
|
+
elevatedDefault: z.union([
|
|
188
|
+
z.literal("off"),
|
|
189
|
+
z.literal("on"),
|
|
190
|
+
z.literal("ask"),
|
|
191
|
+
z.literal("full")
|
|
192
|
+
]).optional(),
|
|
193
|
+
blockStreamingDefault: z.union([z.literal("off"), z.literal("on")]).optional(),
|
|
194
|
+
blockStreamingBreak: z.union([z.literal("text_end"), z.literal("message_end")]).optional(),
|
|
195
|
+
blockStreamingChunk: BlockStreamingChunkSchema.optional(),
|
|
196
|
+
blockStreamingCoalesce: BlockStreamingCoalesceSchema.optional(),
|
|
197
|
+
humanDelay: HumanDelaySchema.optional(),
|
|
198
|
+
timeoutSeconds: z.number().int().positive().optional(),
|
|
199
|
+
mediaMaxMb: z.number().positive().optional(),
|
|
200
|
+
imageMaxDimensionPx: z.number().int().positive().optional(),
|
|
201
|
+
typingIntervalSeconds: z.number().int().positive().optional(),
|
|
202
|
+
typingMode: TypingModeSchema.optional(),
|
|
203
|
+
heartbeat: HeartbeatSchema,
|
|
204
|
+
maxConcurrent: z.number().int().positive().optional(),
|
|
205
|
+
subagents: z.object({
|
|
206
|
+
allowAgents: z.array(z.string()).optional(),
|
|
207
|
+
maxConcurrent: z.number().int().positive().optional(),
|
|
208
|
+
maxSpawnDepth: z.number().int().min(1).max(5).optional().describe("Maximum nesting depth for sub-agent spawning. 1 = no nesting (default), 2 = sub-agents can spawn sub-sub-agents."),
|
|
209
|
+
maxChildrenPerAgent: z.number().int().min(1).max(20).optional().describe("Maximum number of active children a single agent session can spawn (default: 5)."),
|
|
210
|
+
archiveAfterMinutes: z.number().int().min(0).optional(),
|
|
211
|
+
model: AgentModelSchema.optional(),
|
|
212
|
+
thinking: z.string().optional(),
|
|
213
|
+
runTimeoutSeconds: z.number().int().min(0).optional(),
|
|
214
|
+
announceTimeoutMs: z.number().int().positive().optional(),
|
|
215
|
+
requireAgentId: z.boolean().optional()
|
|
216
|
+
}).strict().optional(),
|
|
217
|
+
sandbox: AgentSandboxSchema
|
|
218
|
+
}).strict().optional();
|
|
219
|
+
const AgentsSchema = z.object({
|
|
220
|
+
defaults: z.lazy(() => AgentDefaultsSchema).optional(),
|
|
221
|
+
list: z.array(AgentEntrySchema).optional()
|
|
222
|
+
}).strict().optional();
|
|
223
|
+
const BindingMatchSchema = z.object({
|
|
224
|
+
channel: z.string(),
|
|
225
|
+
accountId: z.string().optional(),
|
|
226
|
+
peer: z.object({
|
|
227
|
+
kind: z.union([
|
|
228
|
+
z.literal("direct"),
|
|
229
|
+
z.literal("group"),
|
|
230
|
+
z.literal("channel"),
|
|
231
|
+
z.literal("dm")
|
|
232
|
+
]),
|
|
233
|
+
id: z.string()
|
|
234
|
+
}).strict().optional(),
|
|
235
|
+
guildId: z.string().optional(),
|
|
236
|
+
teamId: z.string().optional(),
|
|
237
|
+
roles: z.array(z.string()).optional()
|
|
238
|
+
}).strict();
|
|
239
|
+
const RouteBindingSchema = z.object({
|
|
240
|
+
type: z.literal("route").optional(),
|
|
241
|
+
agentId: z.string(),
|
|
242
|
+
comment: z.string().optional(),
|
|
243
|
+
match: BindingMatchSchema
|
|
244
|
+
}).strict();
|
|
245
|
+
const AcpBindingSchema = z.object({
|
|
246
|
+
type: z.literal("acp"),
|
|
247
|
+
agentId: z.string(),
|
|
248
|
+
comment: z.string().optional(),
|
|
249
|
+
match: BindingMatchSchema,
|
|
250
|
+
acp: z.object({
|
|
251
|
+
mode: z.enum(["persistent", "oneshot"]).optional(),
|
|
252
|
+
label: z.string().optional(),
|
|
253
|
+
cwd: z.string().optional(),
|
|
254
|
+
backend: z.string().optional()
|
|
255
|
+
}).strict().optional()
|
|
256
|
+
}).strict().superRefine((value, ctx) => {
|
|
257
|
+
if (!(normalizeOptionalString(value.match.peer?.id) ?? "")) {
|
|
258
|
+
ctx.addIssue({
|
|
259
|
+
code: z.ZodIssueCode.custom,
|
|
260
|
+
path: ["match", "peer"],
|
|
261
|
+
message: "ACP bindings require match.peer.id to target a concrete conversation."
|
|
262
|
+
});
|
|
263
|
+
return;
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
const BindingsSchema = z.array(z.union([RouteBindingSchema, AcpBindingSchema])).optional();
|
|
267
|
+
const BroadcastStrategySchema = z.enum(["parallel", "sequential"]);
|
|
268
|
+
const BroadcastSchema = z.object({ strategy: BroadcastStrategySchema.optional() }).catchall(z.array(z.string())).optional();
|
|
269
|
+
const AudioSchema = z.object({ transcription: TranscribeAudioSchema }).strict().optional();
|
|
270
|
+
const ExecApprovalForwardTargetSchema = z.object({
|
|
271
|
+
channel: z.string().min(1),
|
|
272
|
+
to: z.string().min(1),
|
|
273
|
+
accountId: z.string().optional(),
|
|
274
|
+
threadId: z.union([z.string(), z.number()]).optional()
|
|
275
|
+
}).strict();
|
|
276
|
+
const ExecApprovalForwardingSchema = z.object({
|
|
277
|
+
enabled: z.boolean().optional(),
|
|
278
|
+
mode: z.union([
|
|
279
|
+
z.literal("session"),
|
|
280
|
+
z.literal("targets"),
|
|
281
|
+
z.literal("both")
|
|
282
|
+
]).optional(),
|
|
283
|
+
agentFilter: z.array(z.string()).optional(),
|
|
284
|
+
sessionFilter: z.array(z.string()).optional(),
|
|
285
|
+
targets: z.array(ExecApprovalForwardTargetSchema).optional()
|
|
286
|
+
}).strict().optional();
|
|
287
|
+
const ApprovalsSchema = z.object({
|
|
288
|
+
exec: ExecApprovalForwardingSchema,
|
|
289
|
+
plugin: ExecApprovalForwardingSchema
|
|
290
|
+
}).strict().optional();
|
|
291
|
+
const InstallSourceSchema = z.union([
|
|
292
|
+
z.literal("npm"),
|
|
293
|
+
z.literal("archive"),
|
|
294
|
+
z.literal("path"),
|
|
295
|
+
z.literal("clawhub")
|
|
296
|
+
]);
|
|
297
|
+
const PluginInstallSourceSchema = z.union([InstallSourceSchema, z.literal("marketplace")]);
|
|
298
|
+
const InstallRecordShape = {
|
|
299
|
+
source: InstallSourceSchema,
|
|
300
|
+
spec: z.string().optional(),
|
|
301
|
+
sourcePath: z.string().optional(),
|
|
302
|
+
installPath: z.string().optional(),
|
|
303
|
+
version: z.string().optional(),
|
|
304
|
+
resolvedName: z.string().optional(),
|
|
305
|
+
resolvedVersion: z.string().optional(),
|
|
306
|
+
resolvedSpec: z.string().optional(),
|
|
307
|
+
integrity: z.string().optional(),
|
|
308
|
+
shasum: z.string().optional(),
|
|
309
|
+
resolvedAt: z.string().optional(),
|
|
310
|
+
installedAt: z.string().optional(),
|
|
311
|
+
clawhubUrl: z.string().optional(),
|
|
312
|
+
clawhubPackage: z.string().optional(),
|
|
313
|
+
clawhubFamily: z.union([z.literal("code-plugin"), z.literal("bundle-plugin")]).optional(),
|
|
314
|
+
clawhubChannel: z.union([
|
|
315
|
+
z.literal("official"),
|
|
316
|
+
z.literal("community"),
|
|
317
|
+
z.literal("private")
|
|
318
|
+
]).optional()
|
|
319
|
+
};
|
|
320
|
+
const PluginInstallRecordShape = {
|
|
321
|
+
...InstallRecordShape,
|
|
322
|
+
source: PluginInstallSourceSchema,
|
|
323
|
+
marketplaceName: z.string().optional(),
|
|
324
|
+
marketplaceSource: z.string().optional(),
|
|
325
|
+
marketplacePlugin: z.string().optional()
|
|
326
|
+
};
|
|
327
|
+
function isSafeRelativeModulePath(raw) {
|
|
328
|
+
const value = raw.trim();
|
|
329
|
+
if (!value) return false;
|
|
330
|
+
if (path.isAbsolute(value)) return false;
|
|
331
|
+
if (value.startsWith("~")) return false;
|
|
332
|
+
if (value.includes(":")) return false;
|
|
333
|
+
if (value.split(/[\\/]+/g).some((part) => part === "..")) return false;
|
|
334
|
+
return true;
|
|
335
|
+
}
|
|
336
|
+
const SafeRelativeModulePathSchema = z.string().refine(isSafeRelativeModulePath, "module must be a safe relative path (no absolute paths)");
|
|
337
|
+
const HookMappingSchema = z.object({
|
|
338
|
+
id: z.string().optional(),
|
|
339
|
+
match: z.object({
|
|
340
|
+
path: z.string().optional(),
|
|
341
|
+
source: z.string().optional()
|
|
342
|
+
}).optional(),
|
|
343
|
+
action: z.union([z.literal("wake"), z.literal("agent")]).optional(),
|
|
344
|
+
wakeMode: z.union([z.literal("now"), z.literal("next-heartbeat")]).optional(),
|
|
345
|
+
name: z.string().optional(),
|
|
346
|
+
agentId: z.string().optional(),
|
|
347
|
+
sessionKey: z.string().optional().register(sensitive),
|
|
348
|
+
messageTemplate: z.string().optional(),
|
|
349
|
+
textTemplate: z.string().optional(),
|
|
350
|
+
deliver: z.boolean().optional(),
|
|
351
|
+
allowUnsafeExternalContent: z.boolean().optional(),
|
|
352
|
+
channel: z.string().trim().min(1).optional(),
|
|
353
|
+
to: z.string().optional(),
|
|
354
|
+
model: z.string().optional(),
|
|
355
|
+
thinking: z.string().optional(),
|
|
356
|
+
timeoutSeconds: z.number().int().positive().optional(),
|
|
357
|
+
transform: z.object({
|
|
358
|
+
module: SafeRelativeModulePathSchema,
|
|
359
|
+
export: z.string().optional()
|
|
360
|
+
}).strict().optional()
|
|
361
|
+
}).strict().optional();
|
|
362
|
+
const InternalHookHandlerSchema = z.object({
|
|
363
|
+
event: z.string(),
|
|
364
|
+
module: SafeRelativeModulePathSchema,
|
|
365
|
+
export: z.string().optional()
|
|
366
|
+
}).strict();
|
|
367
|
+
const HookConfigSchema = z.object({
|
|
368
|
+
enabled: z.boolean().optional(),
|
|
369
|
+
env: z.record(z.string(), z.string()).optional()
|
|
370
|
+
}).passthrough();
|
|
371
|
+
const HookInstallRecordSchema = z.object({
|
|
372
|
+
...InstallRecordShape,
|
|
373
|
+
hooks: z.array(z.string()).optional()
|
|
374
|
+
}).strict();
|
|
375
|
+
const InternalHooksSchema = z.object({
|
|
376
|
+
enabled: z.boolean().optional(),
|
|
377
|
+
handlers: z.array(InternalHookHandlerSchema).optional(),
|
|
378
|
+
entries: z.record(z.string(), HookConfigSchema).optional(),
|
|
379
|
+
load: z.object({ extraDirs: z.array(z.string()).optional() }).strict().optional(),
|
|
380
|
+
installs: z.record(z.string(), HookInstallRecordSchema).optional()
|
|
381
|
+
}).strict().optional();
|
|
382
|
+
const HooksGmailSchema = z.object({
|
|
383
|
+
account: z.string().optional(),
|
|
384
|
+
label: z.string().optional(),
|
|
385
|
+
topic: z.string().optional(),
|
|
386
|
+
subscription: z.string().optional(),
|
|
387
|
+
pushToken: z.string().optional().register(sensitive),
|
|
388
|
+
hookUrl: z.string().optional(),
|
|
389
|
+
includeBody: z.boolean().optional(),
|
|
390
|
+
maxBytes: z.number().int().positive().optional(),
|
|
391
|
+
renewEveryMinutes: z.number().int().positive().optional(),
|
|
392
|
+
allowUnsafeExternalContent: z.boolean().optional(),
|
|
393
|
+
serve: z.object({
|
|
394
|
+
bind: z.string().optional(),
|
|
395
|
+
port: z.number().int().positive().optional(),
|
|
396
|
+
path: z.string().optional()
|
|
397
|
+
}).strict().optional(),
|
|
398
|
+
tailscale: z.object({
|
|
399
|
+
mode: z.union([
|
|
400
|
+
z.literal("off"),
|
|
401
|
+
z.literal("serve"),
|
|
402
|
+
z.literal("funnel")
|
|
403
|
+
]).optional(),
|
|
404
|
+
path: z.string().optional(),
|
|
405
|
+
target: z.string().optional()
|
|
406
|
+
}).strict().optional(),
|
|
407
|
+
model: z.string().optional(),
|
|
408
|
+
thinking: z.union([
|
|
409
|
+
z.literal("off"),
|
|
410
|
+
z.literal("minimal"),
|
|
411
|
+
z.literal("low"),
|
|
412
|
+
z.literal("medium"),
|
|
413
|
+
z.literal("high")
|
|
414
|
+
]).optional()
|
|
415
|
+
}).strict().optional();
|
|
416
|
+
const ChannelModelByChannelSchema = z.record(z.string(), z.record(z.string(), z.string())).optional();
|
|
417
|
+
let directChannelRuntimeSchemasCache;
|
|
418
|
+
const OPENCLAW_PACKAGE_ROOT = resolveLoaderPackageRoot({
|
|
419
|
+
modulePath: fileURLToPath(import.meta.url),
|
|
420
|
+
moduleUrl: import.meta.url
|
|
421
|
+
}) ?? fileURLToPath(new URL("../..", import.meta.url));
|
|
422
|
+
function getDirectChannelRuntimeSchema(channelId) {
|
|
423
|
+
if (!directChannelRuntimeSchemasCache) directChannelRuntimeSchemasCache = /* @__PURE__ */ new Map();
|
|
424
|
+
const cached = directChannelRuntimeSchemasCache.get(channelId);
|
|
425
|
+
if (cached) return cached;
|
|
426
|
+
for (const entry of listBundledPluginMetadata({
|
|
427
|
+
includeChannelConfigs: false,
|
|
428
|
+
includeSyntheticChannelConfigs: false
|
|
429
|
+
})) {
|
|
430
|
+
const manifestRuntime = entry.manifest.channelConfigs?.[channelId]?.runtime;
|
|
431
|
+
if (manifestRuntime) {
|
|
432
|
+
directChannelRuntimeSchemasCache.set(channelId, manifestRuntime);
|
|
433
|
+
return manifestRuntime;
|
|
434
|
+
}
|
|
435
|
+
if (!entry.manifest.channels?.includes(channelId)) continue;
|
|
436
|
+
const collectedRuntime = collectBundledChannelConfigs({
|
|
437
|
+
pluginDir: path.resolve(OPENCLAW_PACKAGE_ROOT, "extensions", entry.dirName),
|
|
438
|
+
manifest: entry.manifest,
|
|
439
|
+
...entry.packageManifest ? { packageManifest: entry.packageManifest } : {}
|
|
440
|
+
})?.[channelId]?.runtime;
|
|
441
|
+
if (collectedRuntime) {
|
|
442
|
+
directChannelRuntimeSchemasCache.set(channelId, collectedRuntime);
|
|
443
|
+
return collectedRuntime;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
function hasPluginOwnedChannelConfig(value) {
|
|
448
|
+
return Object.keys(value).some((key) => key !== "defaults" && key !== "modelByChannel");
|
|
449
|
+
}
|
|
450
|
+
function addLegacyChannelAcpBindingIssues(value, ctx, path2 = []) {
|
|
451
|
+
if (!value || typeof value !== "object") return;
|
|
452
|
+
if (Array.isArray(value)) {
|
|
453
|
+
value.forEach((entry, index) => addLegacyChannelAcpBindingIssues(entry, ctx, [...path2, index]));
|
|
454
|
+
return;
|
|
455
|
+
}
|
|
456
|
+
const record = value;
|
|
457
|
+
const bindings = record.bindings;
|
|
458
|
+
if (bindings && typeof bindings === "object" && !Array.isArray(bindings)) {
|
|
459
|
+
const acp = bindings.acp;
|
|
460
|
+
if (acp && typeof acp === "object") ctx.addIssue({
|
|
461
|
+
code: z.ZodIssueCode.custom,
|
|
462
|
+
path: [
|
|
463
|
+
...path2,
|
|
464
|
+
"bindings",
|
|
465
|
+
"acp"
|
|
466
|
+
],
|
|
467
|
+
message: "Legacy channel-local ACP bindings were removed; use top-level bindings[] entries."
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
for (const [key, entry] of Object.entries(record)) addLegacyChannelAcpBindingIssues(entry, ctx, [...path2, key]);
|
|
471
|
+
}
|
|
472
|
+
function normalizeBundledChannelConfigs(value, ctx) {
|
|
473
|
+
if (!value || !hasPluginOwnedChannelConfig(value)) return value;
|
|
474
|
+
let next;
|
|
475
|
+
for (const channelId of Object.keys(value)) {
|
|
476
|
+
const runtimeSchema = getDirectChannelRuntimeSchema(channelId);
|
|
477
|
+
if (!runtimeSchema) continue;
|
|
478
|
+
if (!Object.prototype.hasOwnProperty.call(value, channelId)) continue;
|
|
479
|
+
const parsed = runtimeSchema.safeParse(value[channelId]);
|
|
480
|
+
if (!parsed.success) {
|
|
481
|
+
for (const issue of parsed.issues) ctx.addIssue({
|
|
482
|
+
code: z.ZodIssueCode.custom,
|
|
483
|
+
message: issue.message ?? `Invalid channels.${channelId} config.`,
|
|
484
|
+
path: [channelId, ...Array.isArray(issue.path) ? issue.path : []]
|
|
485
|
+
});
|
|
486
|
+
continue;
|
|
487
|
+
}
|
|
488
|
+
next ??= { ...value };
|
|
489
|
+
next[channelId] = parsed.data;
|
|
490
|
+
}
|
|
491
|
+
return next ?? value;
|
|
492
|
+
}
|
|
493
|
+
const ChannelsSchema = z.object({
|
|
494
|
+
defaults: z.object({
|
|
495
|
+
groupPolicy: GroupPolicySchema.optional(),
|
|
496
|
+
contextVisibility: ContextVisibilityModeSchema.optional(),
|
|
497
|
+
heartbeat: ChannelHeartbeatVisibilitySchema
|
|
498
|
+
}).strict().optional(),
|
|
499
|
+
modelByChannel: ChannelModelByChannelSchema
|
|
500
|
+
}).passthrough().superRefine((value, ctx) => {
|
|
501
|
+
addLegacyChannelAcpBindingIssues(value, ctx);
|
|
502
|
+
}).transform((value, ctx) => normalizeBundledChannelConfigs(value, ctx)).optional();
|
|
503
|
+
const SessionResetConfigSchema = z.object({
|
|
504
|
+
mode: z.union([z.literal("daily"), z.literal("idle")]).optional(),
|
|
505
|
+
atHour: z.number().int().min(0).max(23).optional(),
|
|
506
|
+
idleMinutes: z.number().int().positive().optional()
|
|
507
|
+
}).strict();
|
|
508
|
+
const SessionSendPolicySchema = createAllowDenyChannelRulesSchema();
|
|
509
|
+
const SessionSchema = z.object({
|
|
510
|
+
scope: z.union([z.literal("per-sender"), z.literal("global")]).optional(),
|
|
511
|
+
dmScope: z.union([
|
|
512
|
+
z.literal("main"),
|
|
513
|
+
z.literal("per-peer"),
|
|
514
|
+
z.literal("per-channel-peer"),
|
|
515
|
+
z.literal("per-account-channel-peer")
|
|
516
|
+
]).optional(),
|
|
517
|
+
identityLinks: z.record(z.string(), z.array(z.string())).optional(),
|
|
518
|
+
resetTriggers: z.array(z.string()).optional(),
|
|
519
|
+
idleMinutes: z.number().int().positive().optional(),
|
|
520
|
+
reset: SessionResetConfigSchema.optional(),
|
|
521
|
+
resetByType: z.object({
|
|
522
|
+
direct: SessionResetConfigSchema.optional(),
|
|
523
|
+
dm: SessionResetConfigSchema.optional(),
|
|
524
|
+
group: SessionResetConfigSchema.optional(),
|
|
525
|
+
thread: SessionResetConfigSchema.optional()
|
|
526
|
+
}).strict().optional(),
|
|
527
|
+
resetByChannel: z.record(z.string(), SessionResetConfigSchema).optional(),
|
|
528
|
+
store: z.string().optional(),
|
|
529
|
+
typingIntervalSeconds: z.number().int().positive().optional(),
|
|
530
|
+
typingMode: TypingModeSchema.optional(),
|
|
531
|
+
parentForkMaxTokens: z.number().int().nonnegative().optional(),
|
|
532
|
+
mainKey: z.string().optional(),
|
|
533
|
+
sendPolicy: SessionSendPolicySchema.optional(),
|
|
534
|
+
agentToAgent: z.object({ maxPingPongTurns: z.number().int().min(0).max(5).optional() }).strict().optional(),
|
|
535
|
+
threadBindings: z.object({
|
|
536
|
+
enabled: z.boolean().optional(),
|
|
537
|
+
idleHours: z.number().nonnegative().optional(),
|
|
538
|
+
maxAgeHours: z.number().nonnegative().optional()
|
|
539
|
+
}).strict().optional(),
|
|
540
|
+
maintenance: z.object({
|
|
541
|
+
mode: z.enum(["enforce", "warn"]).optional(),
|
|
542
|
+
pruneAfter: z.union([z.string(), z.number()]).optional(),
|
|
543
|
+
pruneDays: z.number().int().positive().optional(),
|
|
544
|
+
maxEntries: z.number().int().positive().optional(),
|
|
545
|
+
rotateBytes: z.union([z.string(), z.number()]).optional(),
|
|
546
|
+
resetArchiveRetention: z.union([
|
|
547
|
+
z.string(),
|
|
548
|
+
z.number(),
|
|
549
|
+
z.literal(false)
|
|
550
|
+
]).optional(),
|
|
551
|
+
maxDiskBytes: z.union([z.string(), z.number()]).optional(),
|
|
552
|
+
highWaterBytes: z.union([z.string(), z.number()]).optional()
|
|
553
|
+
}).strict().superRefine((val, ctx) => {
|
|
554
|
+
if (val.pruneAfter !== void 0) try {
|
|
555
|
+
parseDurationMs(normalizeStringifiedOptionalString(val.pruneAfter) ?? "", { defaultUnit: "d" });
|
|
556
|
+
} catch {
|
|
557
|
+
ctx.addIssue({
|
|
558
|
+
code: z.ZodIssueCode.custom,
|
|
559
|
+
path: ["pruneAfter"],
|
|
560
|
+
message: "invalid duration (use ms, s, m, h, d)"
|
|
561
|
+
});
|
|
562
|
+
}
|
|
563
|
+
if (val.rotateBytes !== void 0) try {
|
|
564
|
+
parseByteSize(normalizeStringifiedOptionalString(val.rotateBytes) ?? "", { defaultUnit: "b" });
|
|
565
|
+
} catch {
|
|
566
|
+
ctx.addIssue({
|
|
567
|
+
code: z.ZodIssueCode.custom,
|
|
568
|
+
path: ["rotateBytes"],
|
|
569
|
+
message: "invalid size (use b, kb, mb, gb, tb)"
|
|
570
|
+
});
|
|
571
|
+
}
|
|
572
|
+
if (val.resetArchiveRetention !== void 0 && val.resetArchiveRetention !== false) try {
|
|
573
|
+
parseDurationMs(normalizeStringifiedOptionalString(val.resetArchiveRetention) ?? "", { defaultUnit: "d" });
|
|
574
|
+
} catch {
|
|
575
|
+
ctx.addIssue({
|
|
576
|
+
code: z.ZodIssueCode.custom,
|
|
577
|
+
path: ["resetArchiveRetention"],
|
|
578
|
+
message: "invalid duration (use ms, s, m, h, d)"
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
if (val.maxDiskBytes !== void 0) try {
|
|
582
|
+
parseByteSize(normalizeStringifiedOptionalString(val.maxDiskBytes) ?? "", { defaultUnit: "b" });
|
|
583
|
+
} catch {
|
|
584
|
+
ctx.addIssue({
|
|
585
|
+
code: z.ZodIssueCode.custom,
|
|
586
|
+
path: ["maxDiskBytes"],
|
|
587
|
+
message: "invalid size (use b, kb, mb, gb, tb)"
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
if (val.highWaterBytes !== void 0) try {
|
|
591
|
+
parseByteSize(normalizeStringifiedOptionalString(val.highWaterBytes) ?? "", { defaultUnit: "b" });
|
|
592
|
+
} catch {
|
|
593
|
+
ctx.addIssue({
|
|
594
|
+
code: z.ZodIssueCode.custom,
|
|
595
|
+
path: ["highWaterBytes"],
|
|
596
|
+
message: "invalid size (use b, kb, mb, gb, tb)"
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
}).optional()
|
|
600
|
+
}).strict().optional();
|
|
601
|
+
const MessagesSchema = z.object({
|
|
602
|
+
messagePrefix: z.string().optional(),
|
|
603
|
+
responsePrefix: z.string().optional(),
|
|
604
|
+
groupChat: GroupChatSchema,
|
|
605
|
+
queue: QueueSchema,
|
|
606
|
+
inbound: InboundDebounceSchema,
|
|
607
|
+
ackReaction: z.string().optional(),
|
|
608
|
+
ackReactionScope: z.enum([
|
|
609
|
+
"group-mentions",
|
|
610
|
+
"group-all",
|
|
611
|
+
"direct",
|
|
612
|
+
"all",
|
|
613
|
+
"off",
|
|
614
|
+
"none"
|
|
615
|
+
]).optional(),
|
|
616
|
+
removeAckAfterReply: z.boolean().optional(),
|
|
617
|
+
statusReactions: z.object({
|
|
618
|
+
enabled: z.boolean().optional(),
|
|
619
|
+
emojis: z.object({
|
|
620
|
+
thinking: z.string().optional(),
|
|
621
|
+
tool: z.string().optional(),
|
|
622
|
+
coding: z.string().optional(),
|
|
623
|
+
web: z.string().optional(),
|
|
624
|
+
done: z.string().optional(),
|
|
625
|
+
error: z.string().optional(),
|
|
626
|
+
stallSoft: z.string().optional(),
|
|
627
|
+
stallHard: z.string().optional(),
|
|
628
|
+
compacting: z.string().optional()
|
|
629
|
+
}).strict().optional(),
|
|
630
|
+
timing: z.object({
|
|
631
|
+
debounceMs: z.number().int().min(0).optional(),
|
|
632
|
+
stallSoftMs: z.number().int().min(0).optional(),
|
|
633
|
+
stallHardMs: z.number().int().min(0).optional(),
|
|
634
|
+
doneHoldMs: z.number().int().min(0).optional(),
|
|
635
|
+
errorHoldMs: z.number().int().min(0).optional()
|
|
636
|
+
}).strict().optional()
|
|
637
|
+
}).strict().optional(),
|
|
638
|
+
suppressToolErrors: z.boolean().optional(),
|
|
639
|
+
tts: TtsConfigSchema
|
|
640
|
+
}).strict().optional();
|
|
641
|
+
const CommandsSchema = z.object({
|
|
642
|
+
native: NativeCommandsSettingSchema.optional().default("auto"),
|
|
643
|
+
nativeSkills: NativeCommandsSettingSchema.optional().default("auto"),
|
|
644
|
+
text: z.boolean().optional(),
|
|
645
|
+
bash: z.boolean().optional(),
|
|
646
|
+
bashForegroundMs: z.number().int().min(0).max(3e4).optional(),
|
|
647
|
+
config: z.boolean().optional(),
|
|
648
|
+
mcp: z.boolean().optional(),
|
|
649
|
+
plugins: z.boolean().optional(),
|
|
650
|
+
debug: z.boolean().optional(),
|
|
651
|
+
restart: z.boolean().optional().default(true),
|
|
652
|
+
useAccessGroups: z.boolean().optional(),
|
|
653
|
+
ownerAllowFrom: z.array(z.union([z.string(), z.number()])).optional(),
|
|
654
|
+
ownerDisplay: z.enum(["raw", "hash"]).optional().default("raw"),
|
|
655
|
+
ownerDisplaySecret: z.string().optional().register(sensitive),
|
|
656
|
+
allowFrom: ElevatedAllowFromSchema.optional()
|
|
657
|
+
}).strict().optional().default(() => ({
|
|
658
|
+
native: "auto",
|
|
659
|
+
nativeSkills: "auto",
|
|
660
|
+
restart: true,
|
|
661
|
+
ownerDisplay: "raw"
|
|
662
|
+
}));
|
|
663
|
+
const BrowserSnapshotDefaultsSchema = z.object({ mode: z.literal("efficient").optional() }).strict().optional();
|
|
664
|
+
const NodeHostSchema = z.object({ browserProxy: z.object({
|
|
665
|
+
enabled: z.boolean().optional(),
|
|
666
|
+
allowProfiles: z.array(z.string()).optional()
|
|
667
|
+
}).strict().optional() }).strict().optional();
|
|
668
|
+
const MemoryQmdPathSchema = z.object({
|
|
669
|
+
path: z.string(),
|
|
670
|
+
name: z.string().optional(),
|
|
671
|
+
pattern: z.string().optional()
|
|
672
|
+
}).strict();
|
|
673
|
+
const MemoryQmdSessionSchema = z.object({
|
|
674
|
+
enabled: z.boolean().optional(),
|
|
675
|
+
exportDir: z.string().optional(),
|
|
676
|
+
retentionDays: z.number().int().nonnegative().optional()
|
|
677
|
+
}).strict();
|
|
678
|
+
const MemoryQmdUpdateSchema = z.object({
|
|
679
|
+
interval: z.string().optional(),
|
|
680
|
+
debounceMs: z.number().int().nonnegative().optional(),
|
|
681
|
+
onBoot: z.boolean().optional(),
|
|
682
|
+
waitForBootSync: z.boolean().optional(),
|
|
683
|
+
embedInterval: z.string().optional(),
|
|
684
|
+
commandTimeoutMs: z.number().int().nonnegative().optional(),
|
|
685
|
+
updateTimeoutMs: z.number().int().nonnegative().optional(),
|
|
686
|
+
embedTimeoutMs: z.number().int().nonnegative().optional()
|
|
687
|
+
}).strict();
|
|
688
|
+
const MemoryQmdLimitsSchema = z.object({
|
|
689
|
+
maxResults: z.number().int().positive().optional(),
|
|
690
|
+
maxSnippetChars: z.number().int().positive().optional(),
|
|
691
|
+
maxInjectedChars: z.number().int().positive().optional(),
|
|
692
|
+
timeoutMs: z.number().int().nonnegative().optional()
|
|
693
|
+
}).strict();
|
|
694
|
+
const MemoryQmdMcporterSchema = z.object({
|
|
695
|
+
enabled: z.boolean().optional(),
|
|
696
|
+
serverName: z.string().optional(),
|
|
697
|
+
startDaemon: z.boolean().optional()
|
|
698
|
+
}).strict();
|
|
699
|
+
const LoggingLevelSchema = z.union([
|
|
700
|
+
z.literal("silent"),
|
|
701
|
+
z.literal("fatal"),
|
|
702
|
+
z.literal("error"),
|
|
703
|
+
z.literal("warn"),
|
|
704
|
+
z.literal("info"),
|
|
705
|
+
z.literal("debug"),
|
|
706
|
+
z.literal("trace")
|
|
707
|
+
]);
|
|
708
|
+
const MemoryQmdSchema = z.object({
|
|
709
|
+
command: z.string().optional(),
|
|
710
|
+
mcporter: MemoryQmdMcporterSchema.optional(),
|
|
711
|
+
searchMode: z.union([
|
|
712
|
+
z.literal("query"),
|
|
713
|
+
z.literal("search"),
|
|
714
|
+
z.literal("vsearch")
|
|
715
|
+
]).optional(),
|
|
716
|
+
searchTool: z.string().trim().min(1).optional(),
|
|
717
|
+
includeDefaultMemory: z.boolean().optional(),
|
|
718
|
+
paths: z.array(MemoryQmdPathSchema).optional(),
|
|
719
|
+
sessions: MemoryQmdSessionSchema.optional(),
|
|
720
|
+
update: MemoryQmdUpdateSchema.optional(),
|
|
721
|
+
limits: MemoryQmdLimitsSchema.optional(),
|
|
722
|
+
scope: SessionSendPolicySchema.optional()
|
|
723
|
+
}).strict();
|
|
724
|
+
const MemorySchema = z.object({
|
|
725
|
+
backend: z.union([z.literal("builtin"), z.literal("qmd")]).optional(),
|
|
726
|
+
citations: z.union([
|
|
727
|
+
z.literal("auto"),
|
|
728
|
+
z.literal("on"),
|
|
729
|
+
z.literal("off")
|
|
730
|
+
]).optional(),
|
|
731
|
+
qmd: MemoryQmdSchema.optional()
|
|
732
|
+
}).strict().optional();
|
|
733
|
+
const HttpUrlSchema = z.string().url().refine((value) => {
|
|
734
|
+
const protocol = new URL(value).protocol;
|
|
735
|
+
return protocol === "http:" || protocol === "https:";
|
|
736
|
+
}, "Expected http:// or https:// URL");
|
|
737
|
+
const ResponsesEndpointUrlFetchShape = {
|
|
738
|
+
allowUrl: z.boolean().optional(),
|
|
739
|
+
urlAllowlist: z.array(z.string()).optional(),
|
|
740
|
+
allowedMimes: z.array(z.string()).optional(),
|
|
741
|
+
maxBytes: z.number().int().positive().optional(),
|
|
742
|
+
maxRedirects: z.number().int().nonnegative().optional(),
|
|
743
|
+
timeoutMs: z.number().int().positive().optional()
|
|
744
|
+
};
|
|
745
|
+
const SkillEntrySchema = z.object({
|
|
746
|
+
enabled: z.boolean().optional(),
|
|
747
|
+
apiKey: SecretInputSchema.optional().register(sensitive),
|
|
748
|
+
env: z.record(z.string(), z.string()).optional(),
|
|
749
|
+
config: z.record(z.string(), z.unknown()).optional()
|
|
750
|
+
}).strict();
|
|
751
|
+
const PluginEntrySchema = z.object({
|
|
752
|
+
enabled: z.boolean().optional(),
|
|
753
|
+
hooks: z.object({ allowPromptInjection: z.boolean().optional() }).strict().optional(),
|
|
754
|
+
subagent: z.object({
|
|
755
|
+
allowModelOverride: z.boolean().optional(),
|
|
756
|
+
allowedModels: z.array(z.string()).optional()
|
|
757
|
+
}).strict().optional(),
|
|
758
|
+
config: z.record(z.string(), z.unknown()).optional()
|
|
759
|
+
}).strict();
|
|
760
|
+
const TalkProviderEntrySchema = z.object({ apiKey: SecretInputSchema.optional().register(sensitive) }).catchall(z.unknown());
|
|
761
|
+
const TalkSchema = z.object({
|
|
762
|
+
provider: z.string().optional(),
|
|
763
|
+
providers: z.record(z.string(), TalkProviderEntrySchema).optional(),
|
|
764
|
+
interruptOnSpeech: z.boolean().optional(),
|
|
765
|
+
silenceTimeoutMs: z.number().int().positive().optional()
|
|
766
|
+
}).strict().superRefine((talk, ctx) => {
|
|
767
|
+
const provider = normalizeLowercaseStringOrEmpty(talk.provider ?? "");
|
|
768
|
+
const providers = talk.providers ? Object.keys(talk.providers) : [];
|
|
769
|
+
if (provider && providers.length > 0 && !(provider in talk.providers)) ctx.addIssue({
|
|
770
|
+
code: z.ZodIssueCode.custom,
|
|
771
|
+
path: ["provider"],
|
|
772
|
+
message: `talk.provider must match a key in talk.providers (missing "${provider}")`
|
|
773
|
+
});
|
|
774
|
+
if (!provider && providers.length > 1) ctx.addIssue({
|
|
775
|
+
code: z.ZodIssueCode.custom,
|
|
776
|
+
path: ["provider"],
|
|
777
|
+
message: "talk.provider is required when talk.providers defines multiple providers"
|
|
778
|
+
});
|
|
779
|
+
});
|
|
780
|
+
const McpServerSchema = z.object({
|
|
781
|
+
command: z.string().optional(),
|
|
782
|
+
args: z.array(z.string()).optional(),
|
|
783
|
+
env: z.record(z.string(), z.union([
|
|
784
|
+
z.string(),
|
|
785
|
+
z.number(),
|
|
786
|
+
z.boolean()
|
|
787
|
+
])).optional(),
|
|
788
|
+
cwd: z.string().optional(),
|
|
789
|
+
workingDirectory: z.string().optional(),
|
|
790
|
+
url: HttpUrlSchema.optional(),
|
|
791
|
+
headers: z.record(z.string(), z.union([
|
|
792
|
+
z.string().register(sensitive),
|
|
793
|
+
z.number(),
|
|
794
|
+
z.boolean()
|
|
795
|
+
]).register(sensitive)).optional()
|
|
796
|
+
}).catchall(z.unknown());
|
|
797
|
+
const McpConfigSchema = z.object({ servers: z.record(z.string(), McpServerSchema).optional() }).strict().optional();
|
|
798
|
+
z.object({
|
|
799
|
+
$schema: z.string().optional(),
|
|
800
|
+
meta: z.object({
|
|
801
|
+
lastTouchedVersion: z.string().optional(),
|
|
802
|
+
lastTouchedAt: z.union([z.string(), z.number().transform((n, ctx) => {
|
|
803
|
+
const d = new Date(n);
|
|
804
|
+
if (Number.isNaN(d.getTime())) {
|
|
805
|
+
ctx.addIssue({
|
|
806
|
+
code: z.ZodIssueCode.custom,
|
|
807
|
+
message: "Invalid timestamp"
|
|
808
|
+
});
|
|
809
|
+
return z.NEVER;
|
|
810
|
+
}
|
|
811
|
+
return d.toISOString();
|
|
812
|
+
})]).optional()
|
|
813
|
+
}).strict().optional(),
|
|
814
|
+
env: z.object({
|
|
815
|
+
shellEnv: z.object({
|
|
816
|
+
enabled: z.boolean().optional(),
|
|
817
|
+
timeoutMs: z.number().int().nonnegative().optional()
|
|
818
|
+
}).strict().optional(),
|
|
819
|
+
vars: z.record(z.string(), z.string()).optional()
|
|
820
|
+
}).catchall(z.string()).optional(),
|
|
821
|
+
wizard: z.object({
|
|
822
|
+
lastRunAt: z.string().optional(),
|
|
823
|
+
lastRunVersion: z.string().optional(),
|
|
824
|
+
lastRunCommit: z.string().optional(),
|
|
825
|
+
lastRunCommand: z.string().optional(),
|
|
826
|
+
lastRunMode: z.union([z.literal("local"), z.literal("remote")]).optional()
|
|
827
|
+
}).strict().optional(),
|
|
828
|
+
diagnostics: z.object({
|
|
829
|
+
enabled: z.boolean().optional(),
|
|
830
|
+
flags: z.array(z.string()).optional(),
|
|
831
|
+
stuckSessionWarnMs: z.number().int().positive().optional(),
|
|
832
|
+
otel: z.object({
|
|
833
|
+
enabled: z.boolean().optional(),
|
|
834
|
+
endpoint: z.string().optional(),
|
|
835
|
+
protocol: z.union([z.literal("http/protobuf"), z.literal("grpc")]).optional(),
|
|
836
|
+
headers: z.record(z.string(), z.string()).optional(),
|
|
837
|
+
serviceName: z.string().optional(),
|
|
838
|
+
traces: z.boolean().optional(),
|
|
839
|
+
metrics: z.boolean().optional(),
|
|
840
|
+
logs: z.boolean().optional(),
|
|
841
|
+
sampleRate: z.number().min(0).max(1).optional(),
|
|
842
|
+
flushIntervalMs: z.number().int().nonnegative().optional()
|
|
843
|
+
}).strict().optional(),
|
|
844
|
+
cacheTrace: z.object({
|
|
845
|
+
enabled: z.boolean().optional(),
|
|
846
|
+
filePath: z.string().optional(),
|
|
847
|
+
includeMessages: z.boolean().optional(),
|
|
848
|
+
includePrompt: z.boolean().optional(),
|
|
849
|
+
includeSystem: z.boolean().optional()
|
|
850
|
+
}).strict().optional()
|
|
851
|
+
}).strict().optional(),
|
|
852
|
+
logging: z.object({
|
|
853
|
+
level: LoggingLevelSchema.optional(),
|
|
854
|
+
file: z.string().optional(),
|
|
855
|
+
maxFileBytes: z.number().int().positive().optional(),
|
|
856
|
+
consoleLevel: LoggingLevelSchema.optional(),
|
|
857
|
+
consoleStyle: z.union([
|
|
858
|
+
z.literal("pretty"),
|
|
859
|
+
z.literal("compact"),
|
|
860
|
+
z.literal("json")
|
|
861
|
+
]).optional(),
|
|
862
|
+
redactSensitive: z.union([z.literal("off"), z.literal("tools")]).optional(),
|
|
863
|
+
redactPatterns: z.array(z.string()).optional()
|
|
864
|
+
}).strict().optional(),
|
|
865
|
+
cli: z.object({ banner: z.object({ taglineMode: z.union([
|
|
866
|
+
z.literal("random"),
|
|
867
|
+
z.literal("default"),
|
|
868
|
+
z.literal("off")
|
|
869
|
+
]).optional() }).strict().optional() }).strict().optional(),
|
|
870
|
+
update: z.object({
|
|
871
|
+
channel: z.union([
|
|
872
|
+
z.literal("stable"),
|
|
873
|
+
z.literal("beta"),
|
|
874
|
+
z.literal("dev")
|
|
875
|
+
]).optional(),
|
|
876
|
+
checkOnStart: z.boolean().optional(),
|
|
877
|
+
auto: z.object({
|
|
878
|
+
enabled: z.boolean().optional(),
|
|
879
|
+
stableDelayHours: z.number().nonnegative().max(168).optional(),
|
|
880
|
+
stableJitterHours: z.number().nonnegative().max(168).optional(),
|
|
881
|
+
betaCheckIntervalHours: z.number().positive().max(24).optional()
|
|
882
|
+
}).strict().optional()
|
|
883
|
+
}).strict().optional(),
|
|
884
|
+
browser: z.object({
|
|
885
|
+
enabled: z.boolean().optional(),
|
|
886
|
+
evaluateEnabled: z.boolean().optional(),
|
|
887
|
+
cdpUrl: z.string().optional(),
|
|
888
|
+
remoteCdpTimeoutMs: z.number().int().nonnegative().optional(),
|
|
889
|
+
remoteCdpHandshakeTimeoutMs: z.number().int().nonnegative().optional(),
|
|
890
|
+
color: z.string().optional(),
|
|
891
|
+
executablePath: z.string().optional(),
|
|
892
|
+
headless: z.boolean().optional(),
|
|
893
|
+
noSandbox: z.boolean().optional(),
|
|
894
|
+
attachOnly: z.boolean().optional(),
|
|
895
|
+
cdpPortRangeStart: z.number().int().min(1).max(65535).optional(),
|
|
896
|
+
defaultProfile: z.string().optional(),
|
|
897
|
+
snapshotDefaults: BrowserSnapshotDefaultsSchema,
|
|
898
|
+
ssrfPolicy: z.object({
|
|
899
|
+
dangerouslyAllowPrivateNetwork: z.boolean().optional(),
|
|
900
|
+
allowedHostnames: z.array(z.string()).optional(),
|
|
901
|
+
hostnameAllowlist: z.array(z.string()).optional()
|
|
902
|
+
}).strict().optional(),
|
|
903
|
+
profiles: z.record(z.string().regex(/^[a-z0-9-]+$/, "Profile names must be alphanumeric with hyphens only"), z.object({
|
|
904
|
+
cdpPort: z.number().int().min(1).max(65535).optional(),
|
|
905
|
+
cdpUrl: z.string().optional(),
|
|
906
|
+
userDataDir: z.string().optional(),
|
|
907
|
+
driver: z.union([
|
|
908
|
+
z.literal("openclaw"),
|
|
909
|
+
z.literal("clawd"),
|
|
910
|
+
z.literal("existing-session")
|
|
911
|
+
]).optional(),
|
|
912
|
+
attachOnly: z.boolean().optional(),
|
|
913
|
+
color: HexColorSchema
|
|
914
|
+
}).strict().refine((value) => value.driver === "existing-session" || value.cdpPort || value.cdpUrl, { message: "Profile must set cdpPort or cdpUrl" }).refine((value) => value.driver === "existing-session" || !value.userDataDir, { message: 'Profile userDataDir is only supported with driver="existing-session"' })).optional(),
|
|
915
|
+
extraArgs: z.array(z.string()).optional()
|
|
916
|
+
}).strict().optional(),
|
|
917
|
+
ui: z.object({
|
|
918
|
+
seamColor: HexColorSchema.optional(),
|
|
919
|
+
assistant: z.object({
|
|
920
|
+
name: z.string().max(50).optional(),
|
|
921
|
+
avatar: z.string().max(200).optional()
|
|
922
|
+
}).strict().optional()
|
|
923
|
+
}).strict().optional(),
|
|
924
|
+
secrets: SecretsConfigSchema,
|
|
925
|
+
auth: z.object({
|
|
926
|
+
profiles: z.record(z.string(), z.object({
|
|
927
|
+
provider: z.string(),
|
|
928
|
+
mode: z.union([
|
|
929
|
+
z.literal("api_key"),
|
|
930
|
+
z.literal("oauth"),
|
|
931
|
+
z.literal("token")
|
|
932
|
+
]),
|
|
933
|
+
email: z.string().optional(),
|
|
934
|
+
displayName: z.string().optional()
|
|
935
|
+
}).strict()).optional(),
|
|
936
|
+
order: z.record(z.string(), z.array(z.string())).optional(),
|
|
937
|
+
cooldowns: z.object({
|
|
938
|
+
billingBackoffHours: z.number().positive().optional(),
|
|
939
|
+
billingBackoffHoursByProvider: z.record(z.string(), z.number().positive()).optional(),
|
|
940
|
+
billingMaxHours: z.number().positive().optional(),
|
|
941
|
+
authPermanentBackoffMinutes: z.number().positive().optional(),
|
|
942
|
+
authPermanentMaxMinutes: z.number().positive().optional(),
|
|
943
|
+
failureWindowHours: z.number().positive().optional(),
|
|
944
|
+
overloadedProfileRotations: z.number().int().nonnegative().optional(),
|
|
945
|
+
overloadedBackoffMs: z.number().int().nonnegative().optional(),
|
|
946
|
+
rateLimitedProfileRotations: z.number().int().nonnegative().optional()
|
|
947
|
+
}).strict().optional()
|
|
948
|
+
}).strict().optional(),
|
|
949
|
+
acp: z.object({
|
|
950
|
+
enabled: z.boolean().optional(),
|
|
951
|
+
dispatch: z.object({ enabled: z.boolean().optional() }).strict().optional(),
|
|
952
|
+
backend: z.string().optional(),
|
|
953
|
+
defaultAgent: z.string().optional(),
|
|
954
|
+
allowedAgents: z.array(z.string()).optional(),
|
|
955
|
+
maxConcurrentSessions: z.number().int().positive().optional(),
|
|
956
|
+
stream: z.object({
|
|
957
|
+
coalesceIdleMs: z.number().int().nonnegative().optional(),
|
|
958
|
+
maxChunkChars: z.number().int().positive().optional(),
|
|
959
|
+
repeatSuppression: z.boolean().optional(),
|
|
960
|
+
deliveryMode: z.union([z.literal("live"), z.literal("final_only")]).optional(),
|
|
961
|
+
hiddenBoundarySeparator: z.union([
|
|
962
|
+
z.literal("none"),
|
|
963
|
+
z.literal("space"),
|
|
964
|
+
z.literal("newline"),
|
|
965
|
+
z.literal("paragraph")
|
|
966
|
+
]).optional(),
|
|
967
|
+
maxOutputChars: z.number().int().positive().optional(),
|
|
968
|
+
maxSessionUpdateChars: z.number().int().positive().optional(),
|
|
969
|
+
tagVisibility: z.record(z.string(), z.boolean()).optional()
|
|
970
|
+
}).strict().optional(),
|
|
971
|
+
runtime: z.object({
|
|
972
|
+
ttlMinutes: z.number().int().positive().optional(),
|
|
973
|
+
installCommand: z.string().optional()
|
|
974
|
+
}).strict().optional()
|
|
975
|
+
}).strict().optional(),
|
|
976
|
+
models: ModelsConfigSchema,
|
|
977
|
+
nodeHost: NodeHostSchema,
|
|
978
|
+
agents: AgentsSchema,
|
|
979
|
+
tools: ToolsSchema,
|
|
980
|
+
bindings: BindingsSchema,
|
|
981
|
+
broadcast: BroadcastSchema,
|
|
982
|
+
audio: AudioSchema,
|
|
983
|
+
media: z.object({
|
|
984
|
+
preserveFilenames: z.boolean().optional(),
|
|
985
|
+
ttlHours: z.number().int().min(1).max(168).optional()
|
|
986
|
+
}).strict().optional(),
|
|
987
|
+
messages: MessagesSchema,
|
|
988
|
+
commands: CommandsSchema,
|
|
989
|
+
approvals: ApprovalsSchema,
|
|
990
|
+
session: SessionSchema,
|
|
991
|
+
cron: z.object({
|
|
992
|
+
enabled: z.boolean().optional(),
|
|
993
|
+
store: z.string().optional(),
|
|
994
|
+
maxConcurrentRuns: z.number().int().positive().optional(),
|
|
995
|
+
retry: z.object({
|
|
996
|
+
maxAttempts: z.number().int().min(0).max(10).optional(),
|
|
997
|
+
backoffMs: z.array(z.number().int().nonnegative()).min(1).max(10).optional(),
|
|
998
|
+
retryOn: z.array(z.enum([
|
|
999
|
+
"rate_limit",
|
|
1000
|
+
"overloaded",
|
|
1001
|
+
"network",
|
|
1002
|
+
"timeout",
|
|
1003
|
+
"server_error"
|
|
1004
|
+
])).min(1).optional()
|
|
1005
|
+
}).strict().optional(),
|
|
1006
|
+
webhook: HttpUrlSchema.optional(),
|
|
1007
|
+
webhookToken: SecretInputSchema.optional().register(sensitive),
|
|
1008
|
+
sessionRetention: z.union([z.string(), z.literal(false)]).optional(),
|
|
1009
|
+
runLog: z.object({
|
|
1010
|
+
maxBytes: z.union([z.string(), z.number()]).optional(),
|
|
1011
|
+
keepLines: z.number().int().positive().optional()
|
|
1012
|
+
}).strict().optional(),
|
|
1013
|
+
failureAlert: z.object({
|
|
1014
|
+
enabled: z.boolean().optional(),
|
|
1015
|
+
after: z.number().int().min(1).optional(),
|
|
1016
|
+
cooldownMs: z.number().int().min(0).optional(),
|
|
1017
|
+
mode: z.enum(["announce", "webhook"]).optional(),
|
|
1018
|
+
accountId: z.string().optional()
|
|
1019
|
+
}).strict().optional(),
|
|
1020
|
+
failureDestination: z.object({
|
|
1021
|
+
channel: z.string().optional(),
|
|
1022
|
+
to: z.string().optional(),
|
|
1023
|
+
accountId: z.string().optional(),
|
|
1024
|
+
mode: z.enum(["announce", "webhook"]).optional()
|
|
1025
|
+
}).strict().optional()
|
|
1026
|
+
}).strict().superRefine((val, ctx) => {
|
|
1027
|
+
if (val.sessionRetention !== void 0 && val.sessionRetention !== false) try {
|
|
1028
|
+
parseDurationMs(normalizeStringifiedOptionalString(val.sessionRetention) ?? "", { defaultUnit: "h" });
|
|
1029
|
+
} catch {
|
|
1030
|
+
ctx.addIssue({
|
|
1031
|
+
code: z.ZodIssueCode.custom,
|
|
1032
|
+
path: ["sessionRetention"],
|
|
1033
|
+
message: "invalid duration (use ms, s, m, h, d)"
|
|
1034
|
+
});
|
|
1035
|
+
}
|
|
1036
|
+
if (val.runLog?.maxBytes !== void 0) try {
|
|
1037
|
+
parseByteSize(normalizeStringifiedOptionalString(val.runLog.maxBytes) ?? "", { defaultUnit: "b" });
|
|
1038
|
+
} catch {
|
|
1039
|
+
ctx.addIssue({
|
|
1040
|
+
code: z.ZodIssueCode.custom,
|
|
1041
|
+
path: ["runLog", "maxBytes"],
|
|
1042
|
+
message: "invalid size (use b, kb, mb, gb, tb)"
|
|
1043
|
+
});
|
|
1044
|
+
}
|
|
1045
|
+
}).optional(),
|
|
1046
|
+
hooks: z.object({
|
|
1047
|
+
enabled: z.boolean().optional(),
|
|
1048
|
+
path: z.string().optional(),
|
|
1049
|
+
token: z.string().optional().register(sensitive),
|
|
1050
|
+
defaultSessionKey: z.string().optional(),
|
|
1051
|
+
allowRequestSessionKey: z.boolean().optional(),
|
|
1052
|
+
allowedSessionKeyPrefixes: z.array(z.string()).optional(),
|
|
1053
|
+
allowedAgentIds: z.array(z.string()).optional(),
|
|
1054
|
+
maxBodyBytes: z.number().int().positive().optional(),
|
|
1055
|
+
presets: z.array(z.string()).optional(),
|
|
1056
|
+
transformsDir: z.string().optional(),
|
|
1057
|
+
mappings: z.array(HookMappingSchema).optional(),
|
|
1058
|
+
gmail: HooksGmailSchema,
|
|
1059
|
+
internal: InternalHooksSchema
|
|
1060
|
+
}).strict().optional(),
|
|
1061
|
+
web: z.object({
|
|
1062
|
+
enabled: z.boolean().optional(),
|
|
1063
|
+
heartbeatSeconds: z.number().int().positive().optional(),
|
|
1064
|
+
reconnect: z.object({
|
|
1065
|
+
initialMs: z.number().positive().optional(),
|
|
1066
|
+
maxMs: z.number().positive().optional(),
|
|
1067
|
+
factor: z.number().positive().optional(),
|
|
1068
|
+
jitter: z.number().min(0).max(1).optional(),
|
|
1069
|
+
maxAttempts: z.number().int().min(0).optional()
|
|
1070
|
+
}).strict().optional()
|
|
1071
|
+
}).strict().optional(),
|
|
1072
|
+
channels: ChannelsSchema,
|
|
1073
|
+
discovery: z.object({
|
|
1074
|
+
wideArea: z.object({
|
|
1075
|
+
enabled: z.boolean().optional(),
|
|
1076
|
+
domain: z.string().optional()
|
|
1077
|
+
}).strict().optional(),
|
|
1078
|
+
mdns: z.object({ mode: z.enum([
|
|
1079
|
+
"off",
|
|
1080
|
+
"minimal",
|
|
1081
|
+
"full"
|
|
1082
|
+
]).optional() }).strict().optional()
|
|
1083
|
+
}).strict().optional(),
|
|
1084
|
+
canvasHost: z.object({
|
|
1085
|
+
enabled: z.boolean().optional(),
|
|
1086
|
+
root: z.string().optional(),
|
|
1087
|
+
port: z.number().int().positive().optional(),
|
|
1088
|
+
liveReload: z.boolean().optional()
|
|
1089
|
+
}).strict().optional(),
|
|
1090
|
+
talk: TalkSchema.optional(),
|
|
1091
|
+
gateway: z.object({
|
|
1092
|
+
port: z.number().int().positive().optional(),
|
|
1093
|
+
mode: z.union([z.literal("local"), z.literal("remote")]).optional(),
|
|
1094
|
+
bind: z.union([
|
|
1095
|
+
z.literal("auto"),
|
|
1096
|
+
z.literal("lan"),
|
|
1097
|
+
z.literal("loopback"),
|
|
1098
|
+
z.literal("custom"),
|
|
1099
|
+
z.literal("tailnet")
|
|
1100
|
+
]).optional(),
|
|
1101
|
+
customBindHost: z.string().optional(),
|
|
1102
|
+
controlUi: z.object({
|
|
1103
|
+
enabled: z.boolean().optional(),
|
|
1104
|
+
basePath: z.string().optional(),
|
|
1105
|
+
root: z.string().optional(),
|
|
1106
|
+
embedSandbox: z.union([
|
|
1107
|
+
z.literal("strict"),
|
|
1108
|
+
z.literal("scripts"),
|
|
1109
|
+
z.literal("trusted")
|
|
1110
|
+
]).optional(),
|
|
1111
|
+
allowExternalEmbedUrls: z.boolean().optional(),
|
|
1112
|
+
allowedOrigins: z.array(z.string()).optional(),
|
|
1113
|
+
dangerouslyAllowHostHeaderOriginFallback: z.boolean().optional(),
|
|
1114
|
+
allowInsecureAuth: z.boolean().optional(),
|
|
1115
|
+
dangerouslyDisableDeviceAuth: z.boolean().optional()
|
|
1116
|
+
}).strict().optional(),
|
|
1117
|
+
auth: z.object({
|
|
1118
|
+
mode: z.union([
|
|
1119
|
+
z.literal("none"),
|
|
1120
|
+
z.literal("token"),
|
|
1121
|
+
z.literal("password"),
|
|
1122
|
+
z.literal("trusted-proxy")
|
|
1123
|
+
]).optional(),
|
|
1124
|
+
token: SecretInputSchema.optional().register(sensitive),
|
|
1125
|
+
password: SecretInputSchema.optional().register(sensitive),
|
|
1126
|
+
allowTailscale: z.boolean().optional(),
|
|
1127
|
+
rateLimit: z.object({
|
|
1128
|
+
maxAttempts: z.number().optional(),
|
|
1129
|
+
windowMs: z.number().optional(),
|
|
1130
|
+
lockoutMs: z.number().optional(),
|
|
1131
|
+
exemptLoopback: z.boolean().optional()
|
|
1132
|
+
}).strict().optional(),
|
|
1133
|
+
trustedProxy: z.object({
|
|
1134
|
+
userHeader: z.string().min(1, "userHeader is required for trusted-proxy mode"),
|
|
1135
|
+
requiredHeaders: z.array(z.string()).optional(),
|
|
1136
|
+
allowUsers: z.array(z.string()).optional()
|
|
1137
|
+
}).strict().optional()
|
|
1138
|
+
}).strict().optional(),
|
|
1139
|
+
trustedProxies: z.array(z.string()).optional(),
|
|
1140
|
+
allowRealIpFallback: z.boolean().optional(),
|
|
1141
|
+
tools: z.object({
|
|
1142
|
+
deny: z.array(z.string()).optional(),
|
|
1143
|
+
allow: z.array(z.string()).optional()
|
|
1144
|
+
}).strict().optional(),
|
|
1145
|
+
webchat: z.object({ chatHistoryMaxChars: z.number().int().positive().max(5e5).optional() }).strict().optional(),
|
|
1146
|
+
channelHealthCheckMinutes: z.number().int().min(0).optional(),
|
|
1147
|
+
channelStaleEventThresholdMinutes: z.number().int().min(1).optional(),
|
|
1148
|
+
channelMaxRestartsPerHour: z.number().int().min(1).optional(),
|
|
1149
|
+
tailscale: z.object({
|
|
1150
|
+
mode: z.union([
|
|
1151
|
+
z.literal("off"),
|
|
1152
|
+
z.literal("serve"),
|
|
1153
|
+
z.literal("funnel")
|
|
1154
|
+
]).optional(),
|
|
1155
|
+
resetOnExit: z.boolean().optional()
|
|
1156
|
+
}).strict().optional(),
|
|
1157
|
+
remote: z.object({
|
|
1158
|
+
url: z.string().optional(),
|
|
1159
|
+
transport: z.union([z.literal("ssh"), z.literal("direct")]).optional(),
|
|
1160
|
+
token: SecretInputSchema.optional().register(sensitive),
|
|
1161
|
+
password: SecretInputSchema.optional().register(sensitive),
|
|
1162
|
+
tlsFingerprint: z.string().optional(),
|
|
1163
|
+
sshTarget: z.string().optional(),
|
|
1164
|
+
sshIdentity: z.string().optional()
|
|
1165
|
+
}).strict().optional(),
|
|
1166
|
+
reload: z.object({
|
|
1167
|
+
mode: z.union([
|
|
1168
|
+
z.literal("off"),
|
|
1169
|
+
z.literal("restart"),
|
|
1170
|
+
z.literal("hot"),
|
|
1171
|
+
z.literal("hybrid")
|
|
1172
|
+
]).optional(),
|
|
1173
|
+
debounceMs: z.number().int().min(0).optional(),
|
|
1174
|
+
deferralTimeoutMs: z.number().int().min(0).optional()
|
|
1175
|
+
}).strict().optional(),
|
|
1176
|
+
tls: z.object({
|
|
1177
|
+
enabled: z.boolean().optional(),
|
|
1178
|
+
autoGenerate: z.boolean().optional(),
|
|
1179
|
+
certPath: z.string().optional(),
|
|
1180
|
+
keyPath: z.string().optional(),
|
|
1181
|
+
caPath: z.string().optional()
|
|
1182
|
+
}).optional(),
|
|
1183
|
+
http: z.object({
|
|
1184
|
+
endpoints: z.object({
|
|
1185
|
+
chatCompletions: z.object({
|
|
1186
|
+
enabled: z.boolean().optional(),
|
|
1187
|
+
maxBodyBytes: z.number().int().positive().optional(),
|
|
1188
|
+
maxImageParts: z.number().int().nonnegative().optional(),
|
|
1189
|
+
maxTotalImageBytes: z.number().int().positive().optional(),
|
|
1190
|
+
images: z.object({ ...ResponsesEndpointUrlFetchShape }).strict().optional()
|
|
1191
|
+
}).strict().optional(),
|
|
1192
|
+
responses: z.object({
|
|
1193
|
+
enabled: z.boolean().optional(),
|
|
1194
|
+
maxBodyBytes: z.number().int().positive().optional(),
|
|
1195
|
+
maxUrlParts: z.number().int().nonnegative().optional(),
|
|
1196
|
+
files: z.object({
|
|
1197
|
+
...ResponsesEndpointUrlFetchShape,
|
|
1198
|
+
maxChars: z.number().int().positive().optional(),
|
|
1199
|
+
pdf: z.object({
|
|
1200
|
+
maxPages: z.number().int().positive().optional(),
|
|
1201
|
+
maxPixels: z.number().int().positive().optional(),
|
|
1202
|
+
minTextChars: z.number().int().nonnegative().optional()
|
|
1203
|
+
}).strict().optional()
|
|
1204
|
+
}).strict().optional(),
|
|
1205
|
+
images: z.object({ ...ResponsesEndpointUrlFetchShape }).strict().optional()
|
|
1206
|
+
}).strict().optional()
|
|
1207
|
+
}).strict().optional(),
|
|
1208
|
+
securityHeaders: z.object({ strictTransportSecurity: z.union([z.string(), z.literal(false)]).optional() }).strict().optional()
|
|
1209
|
+
}).strict().optional(),
|
|
1210
|
+
push: z.object({ apns: z.object({ relay: z.object({
|
|
1211
|
+
baseUrl: z.string().optional(),
|
|
1212
|
+
timeoutMs: z.number().int().positive().optional()
|
|
1213
|
+
}).strict().optional() }).strict().optional() }).strict().optional(),
|
|
1214
|
+
nodes: z.object({
|
|
1215
|
+
browser: z.object({
|
|
1216
|
+
mode: z.union([
|
|
1217
|
+
z.literal("auto"),
|
|
1218
|
+
z.literal("manual"),
|
|
1219
|
+
z.literal("off")
|
|
1220
|
+
]).optional(),
|
|
1221
|
+
node: z.string().optional()
|
|
1222
|
+
}).strict().optional(),
|
|
1223
|
+
allowCommands: z.array(z.string()).optional(),
|
|
1224
|
+
denyCommands: z.array(z.string()).optional()
|
|
1225
|
+
}).strict().optional()
|
|
1226
|
+
}).strict().superRefine((gateway, ctx) => {
|
|
1227
|
+
const effectiveHealthCheckMinutes = gateway.channelHealthCheckMinutes ?? 5;
|
|
1228
|
+
if (gateway.channelStaleEventThresholdMinutes != null && effectiveHealthCheckMinutes !== 0 && gateway.channelStaleEventThresholdMinutes < effectiveHealthCheckMinutes) ctx.addIssue({
|
|
1229
|
+
code: z.ZodIssueCode.custom,
|
|
1230
|
+
path: ["channelStaleEventThresholdMinutes"],
|
|
1231
|
+
message: "channelStaleEventThresholdMinutes should be >= channelHealthCheckMinutes to avoid delayed stale detection"
|
|
1232
|
+
});
|
|
1233
|
+
}).optional(),
|
|
1234
|
+
memory: MemorySchema,
|
|
1235
|
+
mcp: McpConfigSchema,
|
|
1236
|
+
skills: z.object({
|
|
1237
|
+
allowBundled: z.array(z.string()).optional(),
|
|
1238
|
+
load: z.object({
|
|
1239
|
+
extraDirs: z.array(z.string()).optional(),
|
|
1240
|
+
watch: z.boolean().optional(),
|
|
1241
|
+
watchDebounceMs: z.number().int().min(0).optional()
|
|
1242
|
+
}).strict().optional(),
|
|
1243
|
+
install: z.object({
|
|
1244
|
+
preferBrew: z.boolean().optional(),
|
|
1245
|
+
nodeManager: z.union([
|
|
1246
|
+
z.literal("npm"),
|
|
1247
|
+
z.literal("pnpm"),
|
|
1248
|
+
z.literal("yarn"),
|
|
1249
|
+
z.literal("bun")
|
|
1250
|
+
]).optional()
|
|
1251
|
+
}).strict().optional(),
|
|
1252
|
+
limits: z.object({
|
|
1253
|
+
maxCandidatesPerRoot: z.number().int().min(1).optional(),
|
|
1254
|
+
maxSkillsLoadedPerSource: z.number().int().min(1).optional(),
|
|
1255
|
+
maxSkillsInPrompt: z.number().int().min(0).optional(),
|
|
1256
|
+
maxSkillsPromptChars: z.number().int().min(0).optional(),
|
|
1257
|
+
maxSkillFileBytes: z.number().int().min(0).optional()
|
|
1258
|
+
}).strict().optional(),
|
|
1259
|
+
entries: z.record(z.string(), SkillEntrySchema).optional()
|
|
1260
|
+
}).strict().optional(),
|
|
1261
|
+
plugins: z.object({
|
|
1262
|
+
enabled: z.boolean().optional(),
|
|
1263
|
+
allow: z.array(z.string()).optional(),
|
|
1264
|
+
deny: z.array(z.string()).optional(),
|
|
1265
|
+
load: z.object({ paths: z.array(z.string()).optional() }).strict().optional(),
|
|
1266
|
+
slots: z.object({
|
|
1267
|
+
memory: z.string().optional(),
|
|
1268
|
+
contextEngine: z.string().optional()
|
|
1269
|
+
}).strict().optional(),
|
|
1270
|
+
entries: z.record(z.string(), PluginEntrySchema).optional(),
|
|
1271
|
+
installs: z.record(z.string(), z.object({ ...PluginInstallRecordShape }).strict()).optional()
|
|
1272
|
+
}).strict().optional()
|
|
1273
|
+
}).strict().superRefine((cfg, ctx) => {
|
|
1274
|
+
const agents = cfg.agents?.list ?? [];
|
|
1275
|
+
if (agents.length === 0) return;
|
|
1276
|
+
const agentIds = new Set(agents.map((agent) => agent.id));
|
|
1277
|
+
const broadcast = cfg.broadcast;
|
|
1278
|
+
if (!broadcast) return;
|
|
1279
|
+
for (const [peerId, ids] of Object.entries(broadcast)) {
|
|
1280
|
+
if (peerId === "strategy") continue;
|
|
1281
|
+
if (!Array.isArray(ids)) continue;
|
|
1282
|
+
for (let idx = 0; idx < ids.length; idx += 1) {
|
|
1283
|
+
const agentId = ids[idx];
|
|
1284
|
+
if (!agentIds.has(agentId)) ctx.addIssue({
|
|
1285
|
+
code: z.ZodIssueCode.custom,
|
|
1286
|
+
path: [
|
|
1287
|
+
"broadcast",
|
|
1288
|
+
peerId,
|
|
1289
|
+
idx
|
|
1290
|
+
],
|
|
1291
|
+
message: `Unknown agent id "${agentId}" (not in agents.list).`
|
|
1292
|
+
});
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
});
|
|
1296
|
+
export {
|
|
1297
|
+
parseNonNegativeByteSize as n,
|
|
1298
|
+
parseByteSize as r
|
|
1299
|
+
};
|