@workclaw/openclaw-workclaw 1.0.32 → 1.0.33
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/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.js +4 -373
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +89 -1919
- 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 +199 -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 +174 -0
- package/dist/packages/plugin/src/api/skills-api.js +60 -0
- package/dist/packages/plugin/src/api/workspace.js +30 -0
- package/dist/packages/plugin/src/channel.js +214 -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 +407 -0
- package/dist/packages/plugin/src/gateway/config-writer.js +149 -0
- package/dist/{cron-tasks-handler-C-mP3VmV.js → packages/plugin/src/gateway/cron-tasks-handler.js} +75 -6
- package/dist/packages/plugin/src/gateway/message-context.js +408 -0
- package/dist/packages/plugin/src/gateway/message-dispatcher.js +517 -0
- package/dist/packages/plugin/src/gateway/reconnect.js +177 -0
- package/dist/packages/plugin/src/gateway/skills-handler.js +511 -0
- package/dist/packages/plugin/src/gateway/skills-list-handler.js +172 -0
- package/dist/packages/plugin/src/gateway/tools-list-handler.js +88 -0
- package/dist/packages/plugin/src/gateway/workclaw-gateway.js +208 -0
- package/dist/packages/plugin/src/media/upload.js +126 -0
- package/dist/packages/plugin/src/outbound/index.js +88 -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 +184 -0
- package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/index.js +29 -0
- package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/add/params.js +129 -0
- package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/add/sync.js +139 -0
- package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/disable/params.js +61 -0
- package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/disable/sync.js +85 -0
- package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/enable/params.js +61 -0
- package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/enable/sync.js +85 -0
- package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/notify/sync.js +102 -0
- package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/remove/params.js +67 -0
- package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/remove/sync.js +85 -0
- package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/update/params.js +140 -0
- package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/update/sync.js +113 -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 +28 -0
- package/dist/setup-entry.js +1 -168
- package/dist/src/config-schema.d.ts +3 -85
- package/dist/src/config-schema.d.ts.map +1 -1
- package/dist/src/gateway/cron-tasks-handler.d.ts +2 -1
- package/dist/src/gateway/cron-tasks-handler.d.ts.map +1 -1
- package/dist/src/gateway/tools-list-handler.d.ts.map +1 -1
- package/dist/src/tools/openclaw-workclaw-cron/index.d.ts.map +1 -1
- package/dist/src/tools/openclaw-workclaw-cron/src/add/params.d.ts +0 -3
- package/dist/src/tools/openclaw-workclaw-cron/src/add/params.d.ts.map +1 -1
- package/dist/src/tools/openclaw-workclaw-cron/src/add/sync.d.ts +0 -3
- package/dist/src/tools/openclaw-workclaw-cron/src/add/sync.d.ts.map +1 -1
- package/dist/src/tools/openclaw-workclaw-cron/src/disable/params.d.ts +0 -3
- package/dist/src/tools/openclaw-workclaw-cron/src/disable/params.d.ts.map +1 -1
- package/dist/src/tools/openclaw-workclaw-cron/src/disable/sync.d.ts +0 -3
- package/dist/src/tools/openclaw-workclaw-cron/src/disable/sync.d.ts.map +1 -1
- package/dist/src/tools/openclaw-workclaw-cron/src/enable/params.d.ts +0 -3
- package/dist/src/tools/openclaw-workclaw-cron/src/enable/params.d.ts.map +1 -1
- package/dist/src/tools/openclaw-workclaw-cron/src/enable/sync.d.ts +0 -3
- package/dist/src/tools/openclaw-workclaw-cron/src/enable/sync.d.ts.map +1 -1
- package/dist/src/tools/openclaw-workclaw-cron/src/notify/sync.d.ts +0 -3
- package/dist/src/tools/openclaw-workclaw-cron/src/notify/sync.d.ts.map +1 -1
- package/dist/src/tools/openclaw-workclaw-cron/src/remove/params.d.ts +0 -3
- package/dist/src/tools/openclaw-workclaw-cron/src/remove/params.d.ts.map +1 -1
- package/dist/src/tools/openclaw-workclaw-cron/src/remove/sync.d.ts +0 -3
- package/dist/src/tools/openclaw-workclaw-cron/src/remove/sync.d.ts.map +1 -1
- package/dist/src/tools/openclaw-workclaw-cron/src/update/params.d.ts +0 -3
- package/dist/src/tools/openclaw-workclaw-cron/src/update/params.d.ts.map +1 -1
- package/dist/src/tools/openclaw-workclaw-cron/src/update/sync.d.ts +0 -3
- package/dist/src/tools/openclaw-workclaw-cron/src/update/sync.d.ts.map +1 -1
- package/dist/src/tools/openclaw-workclaw-cron/utils/tool-context.d.ts +9 -0
- package/dist/src/tools/openclaw-workclaw-cron/utils/tool-context.d.ts.map +1 -0
- package/openclaw.plugin.json +56 -56
- package/package.json +2 -2
- package/dist/channel-RYqEIK50.js +0 -49793
- package/dist/jiti-4i2h0FGP.js +0 -4814
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import "node:path";
|
|
2
|
+
import "node:fs/promises";
|
|
3
|
+
import "node:crypto";
|
|
4
|
+
function createAsyncLock() {
|
|
5
|
+
let lock = Promise.resolve();
|
|
6
|
+
return async function withLock(fn) {
|
|
7
|
+
const prev = lock;
|
|
8
|
+
let release;
|
|
9
|
+
lock = new Promise((resolve) => {
|
|
10
|
+
release = resolve;
|
|
11
|
+
});
|
|
12
|
+
await prev;
|
|
13
|
+
try {
|
|
14
|
+
return await fn();
|
|
15
|
+
} finally {
|
|
16
|
+
release?.();
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
createAsyncLock as t
|
|
22
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { t as formatTerminalLink } from "./terminal-link-B3nCYQJi.js";
|
|
2
|
+
function resolveDocsRoot() {
|
|
3
|
+
return "https://docs.openclaw.ai";
|
|
4
|
+
}
|
|
5
|
+
function formatDocsLink(path, label, opts) {
|
|
6
|
+
const trimmed = path.trim();
|
|
7
|
+
const docsRoot = resolveDocsRoot();
|
|
8
|
+
const url = trimmed.startsWith("http") ? trimmed : `${docsRoot}${trimmed.startsWith("/") ? trimmed : `/${trimmed}`}`;
|
|
9
|
+
return formatTerminalLink(label, url, {
|
|
10
|
+
fallback: url
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
formatDocsLink as t
|
|
15
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import "./subsystem-BHv2zSx6.js";
|
|
2
|
+
import { n as resolveGlobalSingleton } from "./global-singleton-DhGoboiG.js";
|
|
3
|
+
import "./utils-DGFSjtQF.js";
|
|
4
|
+
import "node:fs";
|
|
5
|
+
import "node:path";
|
|
6
|
+
import "node:os";
|
|
7
|
+
import "node:fs/promises";
|
|
8
|
+
import "./bundled-dir-Cq5y_NKM.js";
|
|
9
|
+
import "./sdk-alias-Bo1huP7M.js";
|
|
10
|
+
import "./ids-By7Nkc8R.js";
|
|
11
|
+
import "./version-b06Uhxnq.js";
|
|
12
|
+
import "node:process";
|
|
13
|
+
import "./bundled-Cuj8sKt6.js";
|
|
14
|
+
import "./schema-validator-Bo7NeV8w.js";
|
|
15
|
+
import "./redact-D4nea1HF.js";
|
|
16
|
+
import "./paths-LCYGfrV7.js";
|
|
17
|
+
import "./workspace-oVBetctb.js";
|
|
18
|
+
import "./command-registration-Dxq1bCXM.js";
|
|
19
|
+
import "./types-BfKfz-lz.js";
|
|
20
|
+
import "./registry-nEl7QZ30.js";
|
|
21
|
+
import "./internal-hooks-D52pUqod.js";
|
|
22
|
+
import "./runtime-Clo2XF6T.js";
|
|
23
|
+
import "./gateway-request-scope-BEWoJTx4.js";
|
|
24
|
+
import "node:crypto";
|
|
25
|
+
import "node:module";
|
|
26
|
+
import "../node_modules/jiti/dist/jiti.js";
|
|
27
|
+
resolveGlobalSingleton(Symbol.for("openclaw.activePluginHookRegistrations"), () => /* @__PURE__ */ new Map());
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { t as resolveNodeRequireFromMeta } from "./node-require-DvwmVoHm.js";
|
|
2
|
+
import { t as POSIX_OPENCLAW_TMP_DIR, n as resolvePreferredOpenClawTmpDir } from "./tmp-openclaw-dir-DrKSsX71.js";
|
|
3
|
+
import "node:fs";
|
|
4
|
+
import path from "node:path";
|
|
5
|
+
resolveNodeRequireFromMeta(import.meta.url);
|
|
6
|
+
function canUseNodeFs() {
|
|
7
|
+
const getBuiltinModule = process.getBuiltinModule;
|
|
8
|
+
if (typeof getBuiltinModule !== "function") return false;
|
|
9
|
+
try {
|
|
10
|
+
return getBuiltinModule("fs") !== void 0;
|
|
11
|
+
} catch {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
function resolveDefaultLogDir() {
|
|
16
|
+
return canUseNodeFs() ? resolvePreferredOpenClawTmpDir() : POSIX_OPENCLAW_TMP_DIR;
|
|
17
|
+
}
|
|
18
|
+
function resolveDefaultLogFile(defaultLogDir) {
|
|
19
|
+
return canUseNodeFs() ? path.join(defaultLogDir, "openclaw.log") : `${POSIX_OPENCLAW_TMP_DIR}/openclaw.log`;
|
|
20
|
+
}
|
|
21
|
+
const DEFAULT_LOG_DIR = resolveDefaultLogDir();
|
|
22
|
+
resolveDefaultLogFile(DEFAULT_LOG_DIR);
|
|
23
|
+
resolveNodeRequireFromMeta(import.meta.url);
|
|
24
|
+
export {
|
|
25
|
+
DEFAULT_LOG_DIR as t
|
|
26
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import "./redact-D4nea1HF.js";
|
|
2
|
+
import { n as resolveGlobalSingleton } from "./global-singleton-DhGoboiG.js";
|
|
3
|
+
import "./logger-BMuqDP66.js";
|
|
4
|
+
import "./theme-CVJvORNs.js";
|
|
5
|
+
import "./subsystem-BHv2zSx6.js";
|
|
6
|
+
import "./task-registry-2LJDZL29.js";
|
|
7
|
+
import "./errors-Dyla6m1G.js";
|
|
8
|
+
import "./io-DDkf_FUu.js";
|
|
9
|
+
import "./paths-LCYGfrV7.js";
|
|
10
|
+
import "./utils-DGFSjtQF.js";
|
|
11
|
+
import "node:path";
|
|
12
|
+
import "node:os";
|
|
13
|
+
import "node:fs";
|
|
14
|
+
import "node:crypto";
|
|
15
|
+
import "./ids-By7Nkc8R.js";
|
|
16
|
+
import "./workspace-oVBetctb.js";
|
|
17
|
+
import "node:fs/promises";
|
|
18
|
+
const ACP_RUNTIME_REGISTRY_STATE_KEY = Symbol.for("openclaw.acpRuntimeRegistryState");
|
|
19
|
+
function resolveAcpRuntimeRegistryGlobalState() {
|
|
20
|
+
return resolveGlobalSingleton(ACP_RUNTIME_REGISTRY_STATE_KEY, () => ({ backendsById: /* @__PURE__ */ new Map() }));
|
|
21
|
+
}
|
|
22
|
+
resolveAcpRuntimeRegistryGlobalState().backendsById;
|
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
import { s as normalizeOptionalString } from "./string-coerce-BUSzWgUA.js";
|
|
2
|
+
import { l as isRecord } from "./utils-DGFSjtQF.js";
|
|
3
|
+
import { i as openBoundaryFileSync, n as matchBoundaryFileOpenFailure } from "./boundary-file-read-BymsBHso.js";
|
|
4
|
+
import { n as MANIFEST_KEY } from "./legacy-names-C7VUgVdg.js";
|
|
5
|
+
import { l as normalizeTrimmedStringList } from "./string-normalization-DIJRAo0o.js";
|
|
6
|
+
import fs from "node:fs";
|
|
7
|
+
import path from "node:path";
|
|
8
|
+
import lib from "../node_modules/json5/dist/index.js";
|
|
9
|
+
function normalizeManifestCommandAliases(value) {
|
|
10
|
+
if (!Array.isArray(value)) return;
|
|
11
|
+
const normalized = [];
|
|
12
|
+
for (const entry of value) {
|
|
13
|
+
if (typeof entry === "string") {
|
|
14
|
+
const name2 = normalizeOptionalString(entry) ?? "";
|
|
15
|
+
if (name2) normalized.push({ name: name2 });
|
|
16
|
+
continue;
|
|
17
|
+
}
|
|
18
|
+
if (!isRecord(entry)) continue;
|
|
19
|
+
const name = normalizeOptionalString(entry.name) ?? "";
|
|
20
|
+
if (!name) continue;
|
|
21
|
+
const kind = entry.kind === "runtime-slash" ? entry.kind : void 0;
|
|
22
|
+
const cliCommand = normalizeOptionalString(entry.cliCommand) ?? "";
|
|
23
|
+
normalized.push({
|
|
24
|
+
name,
|
|
25
|
+
...kind ? { kind } : {},
|
|
26
|
+
...cliCommand ? { cliCommand } : {}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
return normalized.length > 0 ? normalized : void 0;
|
|
30
|
+
}
|
|
31
|
+
const PLUGIN_MANIFEST_FILENAME = "openclaw.plugin.json";
|
|
32
|
+
const PLUGIN_MANIFEST_FILENAMES = [PLUGIN_MANIFEST_FILENAME];
|
|
33
|
+
function normalizeStringListRecord(value) {
|
|
34
|
+
if (!isRecord(value)) return;
|
|
35
|
+
const normalized = {};
|
|
36
|
+
for (const [key, rawValues] of Object.entries(value)) {
|
|
37
|
+
const providerId = normalizeOptionalString(key) ?? "";
|
|
38
|
+
if (!providerId) continue;
|
|
39
|
+
const values = normalizeTrimmedStringList(rawValues);
|
|
40
|
+
if (values.length === 0) continue;
|
|
41
|
+
normalized[providerId] = values;
|
|
42
|
+
}
|
|
43
|
+
return Object.keys(normalized).length > 0 ? normalized : void 0;
|
|
44
|
+
}
|
|
45
|
+
function normalizeStringRecord(value) {
|
|
46
|
+
if (!isRecord(value)) return;
|
|
47
|
+
const normalized = {};
|
|
48
|
+
for (const [rawKey, rawValue] of Object.entries(value)) {
|
|
49
|
+
const key = normalizeOptionalString(rawKey) ?? "";
|
|
50
|
+
const value2 = normalizeOptionalString(rawValue) ?? "";
|
|
51
|
+
if (!key || !value2) continue;
|
|
52
|
+
normalized[key] = value2;
|
|
53
|
+
}
|
|
54
|
+
return Object.keys(normalized).length > 0 ? normalized : void 0;
|
|
55
|
+
}
|
|
56
|
+
function normalizeManifestContracts(value) {
|
|
57
|
+
if (!isRecord(value)) return;
|
|
58
|
+
const memoryEmbeddingProviders = normalizeTrimmedStringList(value.memoryEmbeddingProviders);
|
|
59
|
+
const speechProviders = normalizeTrimmedStringList(value.speechProviders);
|
|
60
|
+
const realtimeTranscriptionProviders = normalizeTrimmedStringList(value.realtimeTranscriptionProviders);
|
|
61
|
+
const realtimeVoiceProviders = normalizeTrimmedStringList(value.realtimeVoiceProviders);
|
|
62
|
+
const mediaUnderstandingProviders = normalizeTrimmedStringList(value.mediaUnderstandingProviders);
|
|
63
|
+
const imageGenerationProviders = normalizeTrimmedStringList(value.imageGenerationProviders);
|
|
64
|
+
const videoGenerationProviders = normalizeTrimmedStringList(value.videoGenerationProviders);
|
|
65
|
+
const musicGenerationProviders = normalizeTrimmedStringList(value.musicGenerationProviders);
|
|
66
|
+
const webFetchProviders = normalizeTrimmedStringList(value.webFetchProviders);
|
|
67
|
+
const webSearchProviders = normalizeTrimmedStringList(value.webSearchProviders);
|
|
68
|
+
const tools = normalizeTrimmedStringList(value.tools);
|
|
69
|
+
const contracts = {
|
|
70
|
+
...memoryEmbeddingProviders.length > 0 ? { memoryEmbeddingProviders } : {},
|
|
71
|
+
...speechProviders.length > 0 ? { speechProviders } : {},
|
|
72
|
+
...realtimeTranscriptionProviders.length > 0 ? { realtimeTranscriptionProviders } : {},
|
|
73
|
+
...realtimeVoiceProviders.length > 0 ? { realtimeVoiceProviders } : {},
|
|
74
|
+
...mediaUnderstandingProviders.length > 0 ? { mediaUnderstandingProviders } : {},
|
|
75
|
+
...imageGenerationProviders.length > 0 ? { imageGenerationProviders } : {},
|
|
76
|
+
...videoGenerationProviders.length > 0 ? { videoGenerationProviders } : {},
|
|
77
|
+
...musicGenerationProviders.length > 0 ? { musicGenerationProviders } : {},
|
|
78
|
+
...webFetchProviders.length > 0 ? { webFetchProviders } : {},
|
|
79
|
+
...webSearchProviders.length > 0 ? { webSearchProviders } : {},
|
|
80
|
+
...tools.length > 0 ? { tools } : {}
|
|
81
|
+
};
|
|
82
|
+
return Object.keys(contracts).length > 0 ? contracts : void 0;
|
|
83
|
+
}
|
|
84
|
+
function isManifestConfigLiteral(value) {
|
|
85
|
+
return value === null || typeof value === "string" || typeof value === "number" || typeof value === "boolean";
|
|
86
|
+
}
|
|
87
|
+
function normalizeManifestDangerousConfigFlags(value) {
|
|
88
|
+
if (!Array.isArray(value)) return;
|
|
89
|
+
const normalized = [];
|
|
90
|
+
for (const entry of value) {
|
|
91
|
+
if (!isRecord(entry)) continue;
|
|
92
|
+
const path2 = normalizeOptionalString(entry.path) ?? "";
|
|
93
|
+
if (!path2 || !isManifestConfigLiteral(entry.equals)) continue;
|
|
94
|
+
normalized.push({
|
|
95
|
+
path: path2,
|
|
96
|
+
equals: entry.equals
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
return normalized.length > 0 ? normalized : void 0;
|
|
100
|
+
}
|
|
101
|
+
function normalizeManifestSecretInputPaths(value) {
|
|
102
|
+
if (!Array.isArray(value)) return;
|
|
103
|
+
const normalized = [];
|
|
104
|
+
for (const entry of value) {
|
|
105
|
+
if (!isRecord(entry)) continue;
|
|
106
|
+
const path2 = normalizeOptionalString(entry.path) ?? "";
|
|
107
|
+
if (!path2) continue;
|
|
108
|
+
const expected = entry.expected === "string" ? entry.expected : void 0;
|
|
109
|
+
normalized.push({
|
|
110
|
+
path: path2,
|
|
111
|
+
...expected ? { expected } : {}
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
return normalized.length > 0 ? normalized : void 0;
|
|
115
|
+
}
|
|
116
|
+
function normalizeManifestConfigContracts(value) {
|
|
117
|
+
if (!isRecord(value)) return;
|
|
118
|
+
const compatibilityMigrationPaths = normalizeTrimmedStringList(value.compatibilityMigrationPaths);
|
|
119
|
+
const compatibilityRuntimePaths = normalizeTrimmedStringList(value.compatibilityRuntimePaths);
|
|
120
|
+
const rawSecretInputs = isRecord(value.secretInputs) ? value.secretInputs : void 0;
|
|
121
|
+
const dangerousFlags = normalizeManifestDangerousConfigFlags(value.dangerousFlags);
|
|
122
|
+
const secretInputPaths = rawSecretInputs ? normalizeManifestSecretInputPaths(rawSecretInputs.paths) : void 0;
|
|
123
|
+
const secretInputs = secretInputPaths && secretInputPaths.length > 0 ? {
|
|
124
|
+
...rawSecretInputs?.bundledDefaultEnabled === true ? { bundledDefaultEnabled: true } : rawSecretInputs?.bundledDefaultEnabled === false ? { bundledDefaultEnabled: false } : {},
|
|
125
|
+
paths: secretInputPaths
|
|
126
|
+
} : void 0;
|
|
127
|
+
const configContracts = {
|
|
128
|
+
...compatibilityMigrationPaths.length > 0 ? { compatibilityMigrationPaths } : {},
|
|
129
|
+
...compatibilityRuntimePaths.length > 0 ? { compatibilityRuntimePaths } : {},
|
|
130
|
+
...dangerousFlags ? { dangerousFlags } : {},
|
|
131
|
+
...secretInputs ? { secretInputs } : {}
|
|
132
|
+
};
|
|
133
|
+
return Object.keys(configContracts).length > 0 ? configContracts : void 0;
|
|
134
|
+
}
|
|
135
|
+
function normalizeManifestModelSupport(value) {
|
|
136
|
+
if (!isRecord(value)) return;
|
|
137
|
+
const modelPrefixes = normalizeTrimmedStringList(value.modelPrefixes);
|
|
138
|
+
const modelPatterns = normalizeTrimmedStringList(value.modelPatterns);
|
|
139
|
+
const modelSupport = {
|
|
140
|
+
...modelPrefixes.length > 0 ? { modelPrefixes } : {},
|
|
141
|
+
...modelPatterns.length > 0 ? { modelPatterns } : {}
|
|
142
|
+
};
|
|
143
|
+
return Object.keys(modelSupport).length > 0 ? modelSupport : void 0;
|
|
144
|
+
}
|
|
145
|
+
function normalizeManifestActivation(value) {
|
|
146
|
+
if (!isRecord(value)) return;
|
|
147
|
+
const onProviders = normalizeTrimmedStringList(value.onProviders);
|
|
148
|
+
const onCommands = normalizeTrimmedStringList(value.onCommands);
|
|
149
|
+
const onChannels = normalizeTrimmedStringList(value.onChannels);
|
|
150
|
+
const onRoutes = normalizeTrimmedStringList(value.onRoutes);
|
|
151
|
+
const onCapabilities = normalizeTrimmedStringList(value.onCapabilities).filter((capability) => capability === "provider" || capability === "channel" || capability === "tool" || capability === "hook");
|
|
152
|
+
const activation = {
|
|
153
|
+
...onProviders.length > 0 ? { onProviders } : {},
|
|
154
|
+
...onCommands.length > 0 ? { onCommands } : {},
|
|
155
|
+
...onChannels.length > 0 ? { onChannels } : {},
|
|
156
|
+
...onRoutes.length > 0 ? { onRoutes } : {},
|
|
157
|
+
...onCapabilities.length > 0 ? { onCapabilities } : {}
|
|
158
|
+
};
|
|
159
|
+
return Object.keys(activation).length > 0 ? activation : void 0;
|
|
160
|
+
}
|
|
161
|
+
function normalizeManifestSetupProviders(value) {
|
|
162
|
+
if (!Array.isArray(value)) return;
|
|
163
|
+
const normalized = [];
|
|
164
|
+
for (const entry of value) {
|
|
165
|
+
if (!isRecord(entry)) continue;
|
|
166
|
+
const id = normalizeOptionalString(entry.id) ?? "";
|
|
167
|
+
if (!id) continue;
|
|
168
|
+
const authMethods = normalizeTrimmedStringList(entry.authMethods);
|
|
169
|
+
const envVars = normalizeTrimmedStringList(entry.envVars);
|
|
170
|
+
normalized.push({
|
|
171
|
+
id,
|
|
172
|
+
...authMethods.length > 0 ? { authMethods } : {},
|
|
173
|
+
...envVars.length > 0 ? { envVars } : {}
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
return normalized.length > 0 ? normalized : void 0;
|
|
177
|
+
}
|
|
178
|
+
function normalizeManifestSetup(value) {
|
|
179
|
+
if (!isRecord(value)) return;
|
|
180
|
+
const providers = normalizeManifestSetupProviders(value.providers);
|
|
181
|
+
const cliBackends = normalizeTrimmedStringList(value.cliBackends);
|
|
182
|
+
const configMigrations = normalizeTrimmedStringList(value.configMigrations);
|
|
183
|
+
const requiresRuntime = typeof value.requiresRuntime === "boolean" ? value.requiresRuntime : void 0;
|
|
184
|
+
const setup = {
|
|
185
|
+
...providers ? { providers } : {},
|
|
186
|
+
...cliBackends.length > 0 ? { cliBackends } : {},
|
|
187
|
+
...configMigrations.length > 0 ? { configMigrations } : {},
|
|
188
|
+
...requiresRuntime !== void 0 ? { requiresRuntime } : {}
|
|
189
|
+
};
|
|
190
|
+
return Object.keys(setup).length > 0 ? setup : void 0;
|
|
191
|
+
}
|
|
192
|
+
function normalizeProviderAuthChoices(value) {
|
|
193
|
+
if (!Array.isArray(value)) return;
|
|
194
|
+
const normalized = [];
|
|
195
|
+
for (const entry of value) {
|
|
196
|
+
if (!isRecord(entry)) continue;
|
|
197
|
+
const provider = normalizeOptionalString(entry.provider) ?? "";
|
|
198
|
+
const method = normalizeOptionalString(entry.method) ?? "";
|
|
199
|
+
const choiceId = normalizeOptionalString(entry.choiceId) ?? "";
|
|
200
|
+
if (!provider || !method || !choiceId) continue;
|
|
201
|
+
const choiceLabel = normalizeOptionalString(entry.choiceLabel) ?? "";
|
|
202
|
+
const choiceHint = normalizeOptionalString(entry.choiceHint) ?? "";
|
|
203
|
+
const assistantPriority = typeof entry.assistantPriority === "number" && Number.isFinite(entry.assistantPriority) ? entry.assistantPriority : void 0;
|
|
204
|
+
const assistantVisibility = entry.assistantVisibility === "manual-only" || entry.assistantVisibility === "visible" ? entry.assistantVisibility : void 0;
|
|
205
|
+
const deprecatedChoiceIds = normalizeTrimmedStringList(entry.deprecatedChoiceIds);
|
|
206
|
+
const groupId = normalizeOptionalString(entry.groupId) ?? "";
|
|
207
|
+
const groupLabel = normalizeOptionalString(entry.groupLabel) ?? "";
|
|
208
|
+
const groupHint = normalizeOptionalString(entry.groupHint) ?? "";
|
|
209
|
+
const optionKey = normalizeOptionalString(entry.optionKey) ?? "";
|
|
210
|
+
const cliFlag = normalizeOptionalString(entry.cliFlag) ?? "";
|
|
211
|
+
const cliOption = normalizeOptionalString(entry.cliOption) ?? "";
|
|
212
|
+
const cliDescription = normalizeOptionalString(entry.cliDescription) ?? "";
|
|
213
|
+
const onboardingScopes = normalizeTrimmedStringList(entry.onboardingScopes).filter((scope) => scope === "text-inference" || scope === "image-generation");
|
|
214
|
+
normalized.push({
|
|
215
|
+
provider,
|
|
216
|
+
method,
|
|
217
|
+
choiceId,
|
|
218
|
+
...choiceLabel ? { choiceLabel } : {},
|
|
219
|
+
...choiceHint ? { choiceHint } : {},
|
|
220
|
+
...assistantPriority !== void 0 ? { assistantPriority } : {},
|
|
221
|
+
...assistantVisibility ? { assistantVisibility } : {},
|
|
222
|
+
...deprecatedChoiceIds.length > 0 ? { deprecatedChoiceIds } : {},
|
|
223
|
+
...groupId ? { groupId } : {},
|
|
224
|
+
...groupLabel ? { groupLabel } : {},
|
|
225
|
+
...groupHint ? { groupHint } : {},
|
|
226
|
+
...optionKey ? { optionKey } : {},
|
|
227
|
+
...cliFlag ? { cliFlag } : {},
|
|
228
|
+
...cliOption ? { cliOption } : {},
|
|
229
|
+
...cliDescription ? { cliDescription } : {},
|
|
230
|
+
...onboardingScopes.length > 0 ? { onboardingScopes } : {}
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
return normalized.length > 0 ? normalized : void 0;
|
|
234
|
+
}
|
|
235
|
+
function normalizeChannelConfigs(value) {
|
|
236
|
+
if (!isRecord(value)) return;
|
|
237
|
+
const normalized = {};
|
|
238
|
+
for (const [key, rawEntry] of Object.entries(value)) {
|
|
239
|
+
const channelId = normalizeOptionalString(key) ?? "";
|
|
240
|
+
if (!channelId || !isRecord(rawEntry)) continue;
|
|
241
|
+
const schema = isRecord(rawEntry.schema) ? rawEntry.schema : null;
|
|
242
|
+
if (!schema) continue;
|
|
243
|
+
const uiHints = isRecord(rawEntry.uiHints) ? rawEntry.uiHints : void 0;
|
|
244
|
+
const runtime = isRecord(rawEntry.runtime) && typeof rawEntry.runtime.safeParse === "function" ? rawEntry.runtime : void 0;
|
|
245
|
+
const label = normalizeOptionalString(rawEntry.label) ?? "";
|
|
246
|
+
const description = normalizeOptionalString(rawEntry.description) ?? "";
|
|
247
|
+
const preferOver = normalizeTrimmedStringList(rawEntry.preferOver);
|
|
248
|
+
normalized[channelId] = {
|
|
249
|
+
schema,
|
|
250
|
+
...uiHints ? { uiHints } : {},
|
|
251
|
+
...runtime ? { runtime } : {},
|
|
252
|
+
...label ? { label } : {},
|
|
253
|
+
...description ? { description } : {},
|
|
254
|
+
...preferOver.length > 0 ? { preferOver } : {}
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
return Object.keys(normalized).length > 0 ? normalized : void 0;
|
|
258
|
+
}
|
|
259
|
+
function resolvePluginManifestPath(rootDir) {
|
|
260
|
+
for (const filename of PLUGIN_MANIFEST_FILENAMES) {
|
|
261
|
+
const candidate = path.join(rootDir, filename);
|
|
262
|
+
if (fs.existsSync(candidate)) return candidate;
|
|
263
|
+
}
|
|
264
|
+
return path.join(rootDir, PLUGIN_MANIFEST_FILENAME);
|
|
265
|
+
}
|
|
266
|
+
function parsePluginKind(raw) {
|
|
267
|
+
if (typeof raw === "string") return raw;
|
|
268
|
+
if (Array.isArray(raw) && raw.length > 0 && raw.every((k) => typeof k === "string")) return raw.length === 1 ? raw[0] : raw;
|
|
269
|
+
}
|
|
270
|
+
function loadPluginManifest(rootDir, rejectHardlinks = true) {
|
|
271
|
+
const manifestPath = resolvePluginManifestPath(rootDir);
|
|
272
|
+
const opened = openBoundaryFileSync({
|
|
273
|
+
absolutePath: manifestPath,
|
|
274
|
+
rootPath: rootDir,
|
|
275
|
+
boundaryLabel: "plugin root",
|
|
276
|
+
rejectHardlinks
|
|
277
|
+
});
|
|
278
|
+
if (!opened.ok) return matchBoundaryFileOpenFailure(opened, {
|
|
279
|
+
path: () => ({
|
|
280
|
+
ok: false,
|
|
281
|
+
error: `plugin manifest not found: ${manifestPath}`,
|
|
282
|
+
manifestPath
|
|
283
|
+
}),
|
|
284
|
+
fallback: (failure) => ({
|
|
285
|
+
ok: false,
|
|
286
|
+
error: `unsafe plugin manifest path: ${manifestPath} (${failure.reason})`,
|
|
287
|
+
manifestPath
|
|
288
|
+
})
|
|
289
|
+
});
|
|
290
|
+
let raw;
|
|
291
|
+
try {
|
|
292
|
+
raw = lib.parse(fs.readFileSync(opened.fd, "utf-8"));
|
|
293
|
+
} catch (err) {
|
|
294
|
+
return {
|
|
295
|
+
ok: false,
|
|
296
|
+
error: `failed to parse plugin manifest: ${String(err)}`,
|
|
297
|
+
manifestPath
|
|
298
|
+
};
|
|
299
|
+
} finally {
|
|
300
|
+
fs.closeSync(opened.fd);
|
|
301
|
+
}
|
|
302
|
+
if (!isRecord(raw)) return {
|
|
303
|
+
ok: false,
|
|
304
|
+
error: "plugin manifest must be an object",
|
|
305
|
+
manifestPath
|
|
306
|
+
};
|
|
307
|
+
const id = normalizeOptionalString(raw.id) ?? "";
|
|
308
|
+
if (!id) return {
|
|
309
|
+
ok: false,
|
|
310
|
+
error: "plugin manifest requires id",
|
|
311
|
+
manifestPath
|
|
312
|
+
};
|
|
313
|
+
const configSchema = isRecord(raw.configSchema) ? raw.configSchema : null;
|
|
314
|
+
if (!configSchema) return {
|
|
315
|
+
ok: false,
|
|
316
|
+
error: "plugin manifest requires configSchema",
|
|
317
|
+
manifestPath
|
|
318
|
+
};
|
|
319
|
+
const kind = parsePluginKind(raw.kind);
|
|
320
|
+
const enabledByDefault = raw.enabledByDefault === true;
|
|
321
|
+
const legacyPluginIds = normalizeTrimmedStringList(raw.legacyPluginIds);
|
|
322
|
+
const autoEnableWhenConfiguredProviders = normalizeTrimmedStringList(raw.autoEnableWhenConfiguredProviders);
|
|
323
|
+
const name = normalizeOptionalString(raw.name);
|
|
324
|
+
const description = normalizeOptionalString(raw.description);
|
|
325
|
+
const version = normalizeOptionalString(raw.version);
|
|
326
|
+
const channels = normalizeTrimmedStringList(raw.channels);
|
|
327
|
+
const providers = normalizeTrimmedStringList(raw.providers);
|
|
328
|
+
const providerDiscoveryEntry = normalizeOptionalString(raw.providerDiscoveryEntry);
|
|
329
|
+
const modelSupport = normalizeManifestModelSupport(raw.modelSupport);
|
|
330
|
+
const cliBackends = normalizeTrimmedStringList(raw.cliBackends);
|
|
331
|
+
const commandAliases = normalizeManifestCommandAliases(raw.commandAliases);
|
|
332
|
+
const providerAuthEnvVars = normalizeStringListRecord(raw.providerAuthEnvVars);
|
|
333
|
+
const providerAuthAliases = normalizeStringRecord(raw.providerAuthAliases);
|
|
334
|
+
const channelEnvVars = normalizeStringListRecord(raw.channelEnvVars);
|
|
335
|
+
const providerAuthChoices = normalizeProviderAuthChoices(raw.providerAuthChoices);
|
|
336
|
+
const activation = normalizeManifestActivation(raw.activation);
|
|
337
|
+
const setup = normalizeManifestSetup(raw.setup);
|
|
338
|
+
const skills = normalizeTrimmedStringList(raw.skills);
|
|
339
|
+
const contracts = normalizeManifestContracts(raw.contracts);
|
|
340
|
+
const configContracts = normalizeManifestConfigContracts(raw.configContracts);
|
|
341
|
+
const channelConfigs = normalizeChannelConfigs(raw.channelConfigs);
|
|
342
|
+
let uiHints;
|
|
343
|
+
if (isRecord(raw.uiHints)) uiHints = raw.uiHints;
|
|
344
|
+
return {
|
|
345
|
+
ok: true,
|
|
346
|
+
manifest: {
|
|
347
|
+
id,
|
|
348
|
+
configSchema,
|
|
349
|
+
...enabledByDefault ? { enabledByDefault } : {},
|
|
350
|
+
...legacyPluginIds.length > 0 ? { legacyPluginIds } : {},
|
|
351
|
+
...autoEnableWhenConfiguredProviders.length > 0 ? { autoEnableWhenConfiguredProviders } : {},
|
|
352
|
+
kind,
|
|
353
|
+
channels,
|
|
354
|
+
providers,
|
|
355
|
+
providerDiscoveryEntry,
|
|
356
|
+
modelSupport,
|
|
357
|
+
cliBackends,
|
|
358
|
+
commandAliases,
|
|
359
|
+
providerAuthEnvVars,
|
|
360
|
+
providerAuthAliases,
|
|
361
|
+
channelEnvVars,
|
|
362
|
+
providerAuthChoices,
|
|
363
|
+
activation,
|
|
364
|
+
setup,
|
|
365
|
+
skills,
|
|
366
|
+
name,
|
|
367
|
+
description,
|
|
368
|
+
version,
|
|
369
|
+
uiHints,
|
|
370
|
+
contracts,
|
|
371
|
+
configContracts,
|
|
372
|
+
channelConfigs
|
|
373
|
+
},
|
|
374
|
+
manifestPath
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
const DEFAULT_PLUGIN_ENTRY_CANDIDATES = [
|
|
378
|
+
"index.ts",
|
|
379
|
+
"index.js",
|
|
380
|
+
"index.mjs",
|
|
381
|
+
"index.cjs"
|
|
382
|
+
];
|
|
383
|
+
function getPackageManifestMetadata(manifest) {
|
|
384
|
+
if (!manifest) return;
|
|
385
|
+
return manifest[MANIFEST_KEY];
|
|
386
|
+
}
|
|
387
|
+
function resolvePackageExtensionEntries(manifest) {
|
|
388
|
+
const raw = getPackageManifestMetadata(manifest)?.extensions;
|
|
389
|
+
if (!Array.isArray(raw)) return {
|
|
390
|
+
status: "missing",
|
|
391
|
+
entries: []
|
|
392
|
+
};
|
|
393
|
+
const entries = raw.map((entry) => normalizeOptionalString(entry) ?? "").filter(Boolean);
|
|
394
|
+
if (entries.length === 0) return {
|
|
395
|
+
status: "empty",
|
|
396
|
+
entries: []
|
|
397
|
+
};
|
|
398
|
+
return {
|
|
399
|
+
status: "ok",
|
|
400
|
+
entries
|
|
401
|
+
};
|
|
402
|
+
}
|
|
403
|
+
export {
|
|
404
|
+
resolvePackageExtensionEntries as a,
|
|
405
|
+
loadPluginManifest as i,
|
|
406
|
+
PLUGIN_MANIFEST_FILENAME as n,
|
|
407
|
+
getPackageManifestMetadata as r,
|
|
408
|
+
DEFAULT_PLUGIN_ENTRY_CANDIDATES as t
|
|
409
|
+
};
|