@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.
Files changed (359) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +8 -0
  2. package/dist/_virtual/ipaddr.js +4 -0
  3. package/dist/_virtual/jiti.js +4 -0
  4. package/dist/_virtual/main.js +4 -0
  5. package/dist/api.js +4 -373
  6. package/dist/index.d.ts +1 -1
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +89 -1919
  9. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js +163 -0
  10. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js +32 -0
  11. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js +188 -0
  12. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/browser.js +25 -0
  13. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/account-id-C6v13Xic.js +4 -0
  14. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/auth-profiles-Db4Eg6ht.js +24 -0
  15. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/bash-tools.exec-runtime--1hhz8C_.js +46 -0
  16. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/bash-tools.schemas-BqpDemKo.js +32 -0
  17. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/boolean-DbfRNnYl.js +14 -0
  18. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/boundary-file-read-BymsBHso.js +172 -0
  19. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/bundled-Cuj8sKt6.js +18 -0
  20. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/bundled-dir-Cq5y_NKM.js +109 -0
  21. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/bundled-plugin-metadata-BJMD48hn.js +260 -0
  22. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/channel-entry-contract-BoTfqLnn.js +176 -0
  23. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/cli-name-DPC4W7Fo.js +22 -0
  24. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/command-format-LqDv8ows.js +24 -0
  25. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/command-registration-Dxq1bCXM.js +16 -0
  26. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/commands-registry-normalize-Bk0WYUI0.js +94 -0
  27. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/commands-registry.data-D99VdOlX.js +940 -0
  28. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/config--3Msyf4f.js +20 -0
  29. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/config-schema-C6kUPI7B.js +33 -0
  30. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/config-schema-DB8FqQH8.js +82 -0
  31. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/conversation-binding-C3EIaK9Z.js +19 -0
  32. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/core-DpZtjMWz.js +51 -0
  33. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/dedupe-DM7iBj7C.js +60 -0
  34. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/discovery-Cgp95o2R.js +649 -0
  35. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/dispatch-2DAqwFVE.js +33 -0
  36. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/errors-Dyla6m1G.js +13 -0
  37. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/exec-approvals-CLXc_BYU.js +212 -0
  38. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/exec-defaults-DBnaZeLQ.js +13 -0
  39. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/exec-jRxy02_4.js +9 -0
  40. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/exec-safe-bin-trust-DOmID2EO.js +638 -0
  41. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/exec-safety-C8v0dsfc.js +24 -0
  42. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/facade-loader-B83leEeb.js +10 -0
  43. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/facade-runtime-B04URCVZ.js +14 -0
  44. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/file-identity-sp9axE-E.js +411 -0
  45. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/file-lock-D016H3tC.js +5 -0
  46. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/gateway-control-ui-origins-B-lkqr3D.js +23 -0
  47. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/gateway-request-scope-BEWoJTx4.js +3 -0
  48. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/global-singleton-DhGoboiG.js +14 -0
  49. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/helpers-CI2CkXhU.js +7 -0
  50. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/home-dir-BEqRdfoa.js +67 -0
  51. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/host-env-security-B-Ebh6At.js +334 -0
  52. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/ids-By7Nkc8R.js +76 -0
  53. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/inbound-path-policy-CQkSSeSi.js +26 -0
  54. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/internal-hooks-D52pUqod.js +5 -0
  55. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/io-DDkf_FUu.js +14328 -0
  56. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/ip-CdfoCORt.js +2 -0
  57. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/json-files-DACY7Zw5.js +22 -0
  58. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/legacy-names-C7VUgVdg.js +5 -0
  59. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/links-BlUEqVE8.js +15 -0
  60. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/loader-DYJR63Q1.js +27 -0
  61. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/logger-BMuqDP66.js +26 -0
  62. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/manager-szyCqvou.js +22 -0
  63. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/manifest-CjPIwluH.js +409 -0
  64. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/manifest-registry-CK0zNybm.js +394 -0
  65. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/map-size-DhG4ditB.js +15 -0
  66. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/message-channel-DXsjCySM.js +32 -0
  67. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/mime-BjR-Aw-Q.js +42 -0
  68. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/min-host-version-CmguvhGB.js +49 -0
  69. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/model-auth-markers-YVQDqG1J.js +8 -0
  70. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/model-selection-cli-U7l5Ifek.js +14 -0
  71. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/models-config-B-YHRI3g.js +40 -0
  72. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/native-command-session-targets-BW3SPx-T.js +11 -0
  73. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/network-mode-D3yzFBsD.js +15 -0
  74. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/node-require-DvwmVoHm.js +14 -0
  75. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/node-sqlite-FGjwOqiS.js +3 -0
  76. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/openclaw-root-BNWw3cXT.js +69 -0
  77. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/order-6WHL2fZu.js +26 -0
  78. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/parse-duration-amE_QFsj.js +42 -0
  79. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/path-safety-CKqzLERR.js +308 -0
  80. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/paths-LCYGfrV7.js +95 -0
  81. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/process-scoped-map-Cv-PkzaO.js +11 -0
  82. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/profile-utils-Dh8DVvPv.js +17 -0
  83. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/prototype-keys-BKGE_uzN.js +11 -0
  84. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/provider-env-vars-DDfJbkrO.js +150 -0
  85. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/provider-id-B3nZBDJJ.js +15 -0
  86. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/provider-runtime-O-n0cjZo.js +22 -0
  87. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/public-surface-loader-CSDxBey4.js +14 -0
  88. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/redact-D4nea1HF.js +2 -0
  89. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/ref-contract-B1q5N0Lz.js +35 -0
  90. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/registry-DE4nHTjg.js +54 -0
  91. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/registry-loaded-B8D6rQiJ.js +62 -0
  92. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/registry-nEl7QZ30.js +3 -0
  93. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/runtime-Clo2XF6T.js +27 -0
  94. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/runtime-channel-state-Ck2VkX9T.js +20 -0
  95. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/runtime-guard-DqVOvWAZ.js +23 -0
  96. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/runtime-state-Cd3jnHgw.js +4 -0
  97. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/schema-validator-Bo7NeV8w.js +3 -0
  98. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/scp-host-CiFVRWHy.js +38 -0
  99. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/sdk-alias-Bo1huP7M.js +315 -0
  100. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/session-binding-service-D6sb-LrK.js +9 -0
  101. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/session-write-lock-Dk7FbMr_.js +6 -0
  102. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/setup-helpers-ChrkNnYE.js +5 -0
  103. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/setup-registry-BPL6c_Zk.js +16 -0
  104. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/setup-wizard-helpers-DnMkYslk.js +19 -0
  105. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/skills-Djbt9HGh.js +21 -0
  106. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/slots-PynIdqZ_.js +10 -0
  107. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/string-coerce-BUSzWgUA.js +25 -0
  108. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/string-normalization-DIJRAo0o.js +20 -0
  109. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/strip-inbound-meta-WCHWW8is.js +12 -0
  110. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/subsystem-BHv2zSx6.js +15 -0
  111. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/system-events-CfifhXT7.js +3 -0
  112. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/tailscale-status-Ch1LdrMM.js +5 -0
  113. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/task-registry-2LJDZL29.js +15 -0
  114. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/telegram-command-config-TdpOuZ__.js +66 -0
  115. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/terminal-link-B3nCYQJi.js +10 -0
  116. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/theme-CVJvORNs.js +27 -0
  117. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/thinking-_rqwdGD8.js +44 -0
  118. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/thinking.shared-Dginn1He.js +14 -0
  119. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/tmp-openclaw-dir-DrKSsX71.js +103 -0
  120. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/tool-policy-CwZyJfFc.js +300 -0
  121. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/types-BfKfz-lz.js +38 -0
  122. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/types.secrets-C9RpLzA0.js +53 -0
  123. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/utils-DGFSjtQF.js +36 -0
  124. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/version-b06Uhxnq.js +82 -0
  125. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/workspace-oVBetctb.js +20 -0
  126. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/zod-schema-Cpw1qu03.js +1299 -0
  127. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/zod-schema.agent-runtime-D48J52r_.js +620 -0
  128. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/zod-schema.core-BrzjtZhM.js +597 -0
  129. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/zod-schema.providers-core-CX8AFeyJ.js +1354 -0
  130. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/zod-schema.providers-whatsapp-7E9bf9oA.js +130 -0
  131. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/zod-schema.sensitive-BFZ4qze6.js +5 -0
  132. 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
  133. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@mariozechner/pi-ai/dist/models.js +16 -0
  134. 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
  135. 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
  136. 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
  137. 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
  138. 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
  139. 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
  140. 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
  141. 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
  142. 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
  143. 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
  144. 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
  145. 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
  146. 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
  147. 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
  148. 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
  149. 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
  150. 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
  151. 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
  152. 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
  153. 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
  154. 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
  155. 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
  156. 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
  157. 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
  158. 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
  159. 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
  160. 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
  161. 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
  162. 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
  163. 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
  164. 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
  165. 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
  166. 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
  167. 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
  168. 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
  169. 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
  170. 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
  171. 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
  172. 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
  173. 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
  174. 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
  175. 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
  176. 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
  177. 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
  178. 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
  179. 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
  180. 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
  181. 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
  182. 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
  183. 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
  184. 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
  185. 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
  186. 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
  187. 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
  188. 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
  189. 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
  190. 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
  191. 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
  192. 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
  193. 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
  194. 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
  195. 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
  196. 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
  197. 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
  198. 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
  199. 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
  200. 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
  201. 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
  202. 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
  203. 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
  204. 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
  205. 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
  206. 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
  207. 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
  208. 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
  209. 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
  210. 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
  211. 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
  212. 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
  213. 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
  214. 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
  215. 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
  216. 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
  217. 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
  218. 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
  219. 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
  220. 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
  221. 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
  222. 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
  223. 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
  224. 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
  225. 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
  226. 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
  227. 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
  228. 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
  229. 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
  230. 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
  231. 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
  232. 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
  233. 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
  234. 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
  235. 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
  236. 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
  237. 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
  238. 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
  239. 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
  240. 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
  241. 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
  242. 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
  243. 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
  244. 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
  245. 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
  246. 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
  247. 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
  248. 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
  249. 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
  250. 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
  251. 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
  252. 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
  253. 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
  254. 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
  255. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/dotenv/lib/main.js +318 -0
  256. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/ipaddr.js/lib/ipaddr.js +805 -0
  257. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/jiti/dist/jiti.js +3869 -0
  258. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/jiti/lib/jiti.js +26 -0
  259. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/json5/dist/index.js +1085 -0
  260. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/doc/anchors.js +12 -0
  261. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/doc/applyReviver.js +45 -0
  262. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/doc/createNode.js +58 -0
  263. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/log.js +8 -0
  264. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/Alias.js +111 -0
  265. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/Collection.js +138 -0
  266. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/Node.js +36 -0
  267. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/Pair.js +35 -0
  268. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/Scalar.js +25 -0
  269. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/YAMLMap.js +139 -0
  270. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +111 -0
  271. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +59 -0
  272. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/identity.js +52 -0
  273. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/toJS.js +25 -0
  274. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/parse/lexer.js +6 -0
  275. 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
  276. 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
  277. 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
  278. 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
  279. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +131 -0
  280. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/stringify/stringify.js +119 -0
  281. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +146 -0
  282. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/stringify/stringifyComment.js +12 -0
  283. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/stringify/stringifyPair.js +128 -0
  284. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/stringify/stringifyString.js +278 -0
  285. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/visit.js +104 -0
  286. package/dist/packages/plugin/src/accounts.js +199 -0
  287. package/dist/packages/plugin/src/api/accounts-api.js +133 -0
  288. package/dist/packages/plugin/src/api/prompts-api.js +105 -0
  289. package/dist/packages/plugin/src/api/session-api.js +174 -0
  290. package/dist/packages/plugin/src/api/skills-api.js +60 -0
  291. package/dist/packages/plugin/src/api/workspace.js +30 -0
  292. package/dist/packages/plugin/src/channel.js +214 -0
  293. package/dist/packages/plugin/src/config-schema.js +51 -0
  294. package/dist/packages/plugin/src/connection/workclaw-client.js +282 -0
  295. package/dist/packages/plugin/src/gateway/agent-handlers.js +407 -0
  296. package/dist/packages/plugin/src/gateway/config-writer.js +149 -0
  297. package/dist/{cron-tasks-handler-C-mP3VmV.js → packages/plugin/src/gateway/cron-tasks-handler.js} +75 -6
  298. package/dist/packages/plugin/src/gateway/message-context.js +408 -0
  299. package/dist/packages/plugin/src/gateway/message-dispatcher.js +517 -0
  300. package/dist/packages/plugin/src/gateway/reconnect.js +177 -0
  301. package/dist/packages/plugin/src/gateway/skills-handler.js +511 -0
  302. package/dist/packages/plugin/src/gateway/skills-list-handler.js +172 -0
  303. package/dist/packages/plugin/src/gateway/tools-list-handler.js +88 -0
  304. package/dist/packages/plugin/src/gateway/workclaw-gateway.js +208 -0
  305. package/dist/packages/plugin/src/media/upload.js +126 -0
  306. package/dist/packages/plugin/src/outbound/index.js +88 -0
  307. package/dist/packages/plugin/src/outbound/workclaw-sender.js +79 -0
  308. package/dist/packages/plugin/src/setup-core.js +22 -0
  309. package/dist/packages/plugin/src/setup-surface.js +338 -0
  310. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/api/index.js +184 -0
  311. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/index.js +29 -0
  312. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/add/params.js +129 -0
  313. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/add/sync.js +139 -0
  314. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/disable/params.js +61 -0
  315. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/disable/sync.js +85 -0
  316. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/enable/params.js +61 -0
  317. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/enable/sync.js +85 -0
  318. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/notify/sync.js +102 -0
  319. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/remove/params.js +67 -0
  320. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/remove/sync.js +85 -0
  321. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/update/params.js +140 -0
  322. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/update/sync.js +113 -0
  323. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/utils/index.js +99 -0
  324. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/utils/tool-context.js +28 -0
  325. package/dist/setup-entry.js +1 -168
  326. package/dist/src/config-schema.d.ts +3 -85
  327. package/dist/src/config-schema.d.ts.map +1 -1
  328. package/dist/src/gateway/cron-tasks-handler.d.ts +2 -1
  329. package/dist/src/gateway/cron-tasks-handler.d.ts.map +1 -1
  330. package/dist/src/gateway/tools-list-handler.d.ts.map +1 -1
  331. package/dist/src/tools/openclaw-workclaw-cron/index.d.ts.map +1 -1
  332. package/dist/src/tools/openclaw-workclaw-cron/src/add/params.d.ts +0 -3
  333. package/dist/src/tools/openclaw-workclaw-cron/src/add/params.d.ts.map +1 -1
  334. package/dist/src/tools/openclaw-workclaw-cron/src/add/sync.d.ts +0 -3
  335. package/dist/src/tools/openclaw-workclaw-cron/src/add/sync.d.ts.map +1 -1
  336. package/dist/src/tools/openclaw-workclaw-cron/src/disable/params.d.ts +0 -3
  337. package/dist/src/tools/openclaw-workclaw-cron/src/disable/params.d.ts.map +1 -1
  338. package/dist/src/tools/openclaw-workclaw-cron/src/disable/sync.d.ts +0 -3
  339. package/dist/src/tools/openclaw-workclaw-cron/src/disable/sync.d.ts.map +1 -1
  340. package/dist/src/tools/openclaw-workclaw-cron/src/enable/params.d.ts +0 -3
  341. package/dist/src/tools/openclaw-workclaw-cron/src/enable/params.d.ts.map +1 -1
  342. package/dist/src/tools/openclaw-workclaw-cron/src/enable/sync.d.ts +0 -3
  343. package/dist/src/tools/openclaw-workclaw-cron/src/enable/sync.d.ts.map +1 -1
  344. package/dist/src/tools/openclaw-workclaw-cron/src/notify/sync.d.ts +0 -3
  345. package/dist/src/tools/openclaw-workclaw-cron/src/notify/sync.d.ts.map +1 -1
  346. package/dist/src/tools/openclaw-workclaw-cron/src/remove/params.d.ts +0 -3
  347. package/dist/src/tools/openclaw-workclaw-cron/src/remove/params.d.ts.map +1 -1
  348. package/dist/src/tools/openclaw-workclaw-cron/src/remove/sync.d.ts +0 -3
  349. package/dist/src/tools/openclaw-workclaw-cron/src/remove/sync.d.ts.map +1 -1
  350. package/dist/src/tools/openclaw-workclaw-cron/src/update/params.d.ts +0 -3
  351. package/dist/src/tools/openclaw-workclaw-cron/src/update/params.d.ts.map +1 -1
  352. package/dist/src/tools/openclaw-workclaw-cron/src/update/sync.d.ts +0 -3
  353. package/dist/src/tools/openclaw-workclaw-cron/src/update/sync.d.ts.map +1 -1
  354. package/dist/src/tools/openclaw-workclaw-cron/utils/tool-context.d.ts +9 -0
  355. package/dist/src/tools/openclaw-workclaw-cron/utils/tool-context.d.ts.map +1 -0
  356. package/openclaw.plugin.json +56 -56
  357. package/package.json +2 -2
  358. package/dist/channel-RYqEIK50.js +0 -49793
  359. package/dist/jiti-4i2h0FGP.js +0 -4814
@@ -0,0 +1,88 @@
1
+ import { readFile } from "node:fs/promises";
2
+ import { homedir } from "node:os";
3
+ import path from "node:path";
4
+ import { fetch } from "undici";
5
+ const WORKCLAW_CRON_TOOLS = [
6
+ { typeStr: "function", name: "openclaw-workclaw-cron-add-params", description: "Generate the first-step cron parameters for creating a Workclaw reminder." },
7
+ { typeStr: "function", name: "openclaw-workclaw-cron-add-sync", description: "Sync a newly created reminder job back to the Workclaw backend." },
8
+ { typeStr: "function", name: "openclaw-workclaw-cron-update-params", description: "Generate the first-step cron parameters for updating a Workclaw reminder." },
9
+ { typeStr: "function", name: "openclaw-workclaw-cron-update-sync", description: "Sync an updated reminder job back to the Workclaw backend." },
10
+ { typeStr: "function", name: "openclaw-workclaw-cron-remove-params", description: "Generate the first-step parameters for removing a Workclaw reminder." },
11
+ { typeStr: "function", name: "openclaw-workclaw-cron-remove-sync", description: "Sync a removed reminder job back to the Workclaw backend." },
12
+ { typeStr: "function", name: "openclaw-workclaw-cron-enable-params", description: "Generate the first-step parameters for enabling a Workclaw reminder." },
13
+ { typeStr: "function", name: "openclaw-workclaw-cron-enable-sync", description: "Sync an enabled reminder job back to the Workclaw backend." },
14
+ { typeStr: "function", name: "openclaw-workclaw-cron-disable-params", description: "Generate the first-step parameters for disabling a Workclaw reminder." },
15
+ { typeStr: "function", name: "openclaw-workclaw-cron-disable-sync", description: "Sync a disabled reminder job back to the Workclaw backend." },
16
+ { typeStr: "function", name: "openclaw-workclaw-cron-notify-sync", description: "Sync reminder trigger notifications back to the Workclaw backend." }
17
+ ];
18
+ async function handleToolsListEvent(event, baseUrl, token, log) {
19
+ const agentId = Number(event.agentId);
20
+ const userId = Number(event.userId);
21
+ log?.info?.(`ToolsList: Handling TOOLS_LIST event for agentId: ${agentId}, userId: ${userId}`);
22
+ try {
23
+ const tools = await fetchToolsFromOpenClaw(agentId, userId, log);
24
+ const callbackPayload = {
25
+ userId,
26
+ agentId,
27
+ dataList: tools
28
+ };
29
+ const callbackUrl = `${baseUrl.replace(/\/$/, "")}/open-apis/v1/claw/push/tools`;
30
+ await sendToolsListCallback(callbackUrl, callbackPayload, token, log);
31
+ log?.info?.(`ToolsList: Successfully processed TOOLS_LIST event, sent ${tools.length} tools`);
32
+ } catch (error) {
33
+ log?.error?.(`ToolsList: Failed to handle TOOLS_LIST event: ${String(error)}`);
34
+ throw error;
35
+ }
36
+ }
37
+ async function fetchToolsFromOpenClaw(agentId, userId, log) {
38
+ log?.info?.(`ToolsList: Fetching tools from OpenClaw for agentId: ${agentId}`);
39
+ const allTools = [
40
+ { typeStr: "function", name: "web_search", description: "Search the web for information using Brave Search API." },
41
+ { typeStr: "function", name: "web_fetch", description: "Fetch and read content from a URL." },
42
+ { typeStr: "function", name: "sessions_list", description: "List all active agent sessions." },
43
+ { typeStr: "function", name: "sessions_history", description: "Get the history of a specific session." },
44
+ { typeStr: "function", name: "memory_search", description: "Search memory for past conversations and information." },
45
+ { typeStr: "function", name: "memory_get", description: "Get specific memory by ID." },
46
+ { typeStr: "function", name: "gateway", description: "Gateway control operations." },
47
+ { typeStr: "function", name: "exec", description: "Execute shell commands." },
48
+ ...WORKCLAW_CRON_TOOLS
49
+ ];
50
+ try {
51
+ const configPath = path.join(homedir(), ".openclaw", "openclaw.json");
52
+ const configContent = await readFile(configPath, "utf-8");
53
+ const config = JSON.parse(configContent);
54
+ const agentConfig = config.agents?.list?.find(
55
+ (agent) => String(agent.id) === String(agentId) || agent.id === `openclaw-workclaw-${agentId}`
56
+ );
57
+ const allowTools = agentConfig?.tools?.allow;
58
+ if (!allowTools || allowTools.length === 0 || allowTools.includes("*")) {
59
+ log?.info?.(`ToolsList: Agent has no allow restriction or allow=[*], returning all ${allTools.length} tools`);
60
+ return allTools;
61
+ }
62
+ const filteredTools = allTools.filter((tool) => allowTools.includes(tool.name));
63
+ log?.info?.(`ToolsList: Agent allow=${JSON.stringify(allowTools)}, returning ${filteredTools.length} tools`);
64
+ return filteredTools;
65
+ } catch (error) {
66
+ log?.error?.(`ToolsList: Error reading agent config: ${String(error)}, returning all tools`);
67
+ return allTools;
68
+ }
69
+ }
70
+ async function sendToolsListCallback(callbackUrl, payload, token, log) {
71
+ log?.info?.(`ToolsList: Sending callback to ${callbackUrl}`);
72
+ const response = await fetch(callbackUrl, {
73
+ method: "POST",
74
+ headers: {
75
+ "Content-Type": "application/json",
76
+ "Authorization": `Bearer ${token}`
77
+ },
78
+ body: JSON.stringify(payload)
79
+ });
80
+ if (!response.ok) {
81
+ const errorText = await response.text();
82
+ throw new Error(`Callback failed: ${response.status} ${response.statusText} - ${errorText}`);
83
+ }
84
+ log?.info?.(`ToolsList: Callback sent successfully: ${response.status}`);
85
+ }
86
+ export {
87
+ handleToolsListEvent
88
+ };
@@ -0,0 +1,208 @@
1
+ import { buildAccountMap, resolveAccountByUserIdAndAgentId } from "../accounts.js";
2
+ import { getAppKeyByAccountId, unregisterAccountContext, getAllDispatchersByAppKey, getWorkclawWsConnection, clearWorkclawWsConnection, getReconnectScheduler, clearReconnectScheduler, clearWorkclawConnectionConfig, createLogger, registerAccountContext, tryStartConnecting, setReconnectScheduler, finishConnecting, setWorkclawConnectionConfig, setWorkclawLoggerFromContext, getDispatcherByAppKeyAndAccountId } from "../../../../src/runtime.js";
3
+ import { parseWorkClawMessage } from "./message-context.js";
4
+ import { dispatchWorkclawMessage } from "./message-dispatcher.js";
5
+ import { createReconnectScheduler } from "./reconnect.js";
6
+ async function startWorkclawGateway(options) {
7
+ const { log } = options;
8
+ const logger = createLogger("", log);
9
+ setWorkclawLoggerFromContext(logger);
10
+ await startSharedWebSocket(options);
11
+ }
12
+ async function startSharedWebSocket(options) {
13
+ const { accountId, account, cfg, log } = options;
14
+ const logger = createLogger("", log);
15
+ const rawConfig = account.config;
16
+ const baseConfig = {
17
+ baseUrl: rawConfig.baseUrl,
18
+ websocketUrl: rawConfig.websocketUrl,
19
+ appKey: rawConfig.appKey,
20
+ appSecret: rawConfig.appSecret,
21
+ localIp: rawConfig.localIp,
22
+ allowInsecureTls: rawConfig.allowInsecureTls,
23
+ requestTimeout: rawConfig.requestTimeout
24
+ };
25
+ const accountConfig = {
26
+ agentId: rawConfig.agentId,
27
+ userId: rawConfig.userId,
28
+ openConversationId: rawConfig.openConversationId
29
+ };
30
+ const appKey = baseConfig.appKey || accountId;
31
+ const appKeyRaw = baseConfig.appKey ?? "";
32
+ buildAccountMap(cfg);
33
+ logger.info(
34
+ `Gateway start accountId=${accountId} appKey=${appKeyRaw ? `${appKeyRaw.slice(0, 8)}...` : "missing"} baseUrl=${baseConfig.baseUrl ?? ""} websocketUrl=${baseConfig.websocketUrl ?? ""}`
35
+ );
36
+ const ctx = {
37
+ accountId,
38
+ account,
39
+ cfg,
40
+ baseConfig,
41
+ accountConfig,
42
+ log: logger,
43
+ scheduleReconnect: () => {
44
+ const scheduler2 = getReconnectScheduler(appKey);
45
+ scheduler2?.scheduleReconnect();
46
+ }
47
+ };
48
+ registerAccountContext(appKey, accountId, ctx);
49
+ const existingWs = getWorkclawWsConnection(appKey);
50
+ if (existingWs) {
51
+ logger.info(`Gateway using existing WebSocket for appKey=${appKey}`);
52
+ return;
53
+ }
54
+ const startResult = tryStartConnecting(appKey);
55
+ if (!startResult.isConnector) {
56
+ logger.info(`Gateway another account is connecting, waiting... appKey=${appKey}`);
57
+ const resultWs = await startResult.connectingPromise;
58
+ if (resultWs) {
59
+ logger.info(`Gateway connection established by another account, using it appKey=${appKey}`);
60
+ return;
61
+ }
62
+ logger.warn(`Gateway connection attempt failed, will create own connection appKey=${appKey}`);
63
+ } else {
64
+ logger.info(`Gateway acquired connector lock, creating connection appKey=${appKey}`);
65
+ }
66
+ const scheduler = createReconnectScheduler({
67
+ key: appKey,
68
+ config: baseConfig,
69
+ log: logger,
70
+ onMessage: (data) => {
71
+ handleSharedMessage(appKey, data, cfg, logger);
72
+ },
73
+ onClose: () => {
74
+ scheduler.scheduleReconnect();
75
+ },
76
+ // 旧代码在 setWorkclawWsConnection 后、ws.onopen 前就调用 finishConnecting,
77
+ // 这个回调模拟同样的时机:ws 已存入 runtime,通知所有等待者
78
+ onConnectingStarted: (ws) => {
79
+ finishConnecting(appKey, ws);
80
+ }
81
+ });
82
+ setReconnectScheduler(appKey, scheduler);
83
+ try {
84
+ await scheduler.connect();
85
+ } catch (err) {
86
+ finishConnecting(appKey);
87
+ throw err;
88
+ }
89
+ setWorkclawConnectionConfig(accountId, {
90
+ appKey: baseConfig.appKey ?? "",
91
+ appSecret: baseConfig.appSecret ?? "",
92
+ baseUrl: baseConfig.baseUrl,
93
+ websocketUrl: baseConfig.websocketUrl,
94
+ localIp: baseConfig.localIp,
95
+ allowInsecureTls: baseConfig.allowInsecureTls,
96
+ requestTimeout: baseConfig.requestTimeout
97
+ });
98
+ }
99
+ function handleSharedMessage(appKey, data, cfg, logger) {
100
+ const parsed = parseWorkClawMessage(data, logger);
101
+ logger.info?.(`Gateway received message: ${JSON.stringify(parsed)}`);
102
+ if (!parsed) {
103
+ logger.warn?.(`Gateway failed to parse message`);
104
+ return;
105
+ }
106
+ if (parsed.type === "ping") {
107
+ const ws = getWorkclawWsConnection(appKey);
108
+ if (ws && ws.readyState === 1) {
109
+ const pongResponse = {
110
+ code: 200,
111
+ message: "pong",
112
+ metadata: { contentType: "application/json" },
113
+ data: JSON.stringify(parsed.pongData)
114
+ };
115
+ ws.send(JSON.stringify(pongResponse));
116
+ }
117
+ return;
118
+ }
119
+ if (parsed.type === "disconnect") {
120
+ const ws = getWorkclawWsConnection(appKey);
121
+ ws?.close();
122
+ return;
123
+ }
124
+ let userId = "";
125
+ let agentId = "";
126
+ if (parsed.type === "agent_message" && parsed.message) {
127
+ userId = String(parsed.message.userId || "");
128
+ agentId = String(parsed.message.agentId || "");
129
+ } else if (parsed.type === "agent_created") {
130
+ const allDispatchers = getAllDispatchersByAppKey(appKey);
131
+ if (allDispatchers && allDispatchers.size > 0) {
132
+ const firstDispatcher = allDispatchers.values().next().value;
133
+ if (firstDispatcher) {
134
+ dispatchWorkclawMessage(data, firstDispatcher.ctx).catch((err) => {
135
+ logger.error?.(`Dispatch error: ${String(err)}`);
136
+ });
137
+ }
138
+ }
139
+ return;
140
+ } else if (parsed.type === "agent_updated" || parsed.type === "agent_deleted") {
141
+ userId = String(parsed.eventData?.futureId || parsed.eventData?.userId || "");
142
+ agentId = String(parsed.eventData?.id || parsed.eventData?.agentId || "");
143
+ } else if (parsed.type === "tools_list") {
144
+ userId = String(parsed.eventData?.userId || "");
145
+ agentId = String(parsed.eventData?.agentId || "");
146
+ } else if (parsed.type === "skills_list" || parsed.type === "skills_event") {
147
+ userId = String(parsed.eventData?.data?.userId || parsed.eventData?.userId || "");
148
+ agentId = String(parsed.eventData?.data?.agentIds?.[0] || parsed.eventData?.data?.agentId || parsed.eventData?.agentId || "");
149
+ } else if (parsed.type === "init_agent") {
150
+ userId = String(parsed.eventData?.futureId || parsed.eventData?.userId || "");
151
+ agentId = String(parsed.eventData?.id || parsed.eventData?.agentId || "");
152
+ const accountId2 = "default";
153
+ const dispatcher2 = getDispatcherByAppKeyAndAccountId(appKey, accountId2);
154
+ if (dispatcher2) {
155
+ dispatchWorkclawMessage(data, dispatcher2.ctx).catch((err) => {
156
+ logger.error?.(`Dispatch error: ${String(err)}`);
157
+ });
158
+ } else {
159
+ logger.warn?.(`Gateway no dispatcher for accountId=${accountId2}`);
160
+ }
161
+ return;
162
+ } else if (parsed.type === "cron_task_event") {
163
+ const accountId2 = "default";
164
+ const dispatcher2 = getDispatcherByAppKeyAndAccountId(appKey, accountId2);
165
+ if (dispatcher2) {
166
+ dispatchWorkclawMessage(data, dispatcher2.ctx).catch((err) => {
167
+ logger.error?.(`Dispatch error: ${String(err)}`);
168
+ });
169
+ } else {
170
+ logger.warn?.(`Gateway (per-appKey) no dispatcher for accountId=${accountId2}`);
171
+ }
172
+ return;
173
+ } else {
174
+ return;
175
+ }
176
+ const accountId = resolveAccountByUserIdAndAgentId(cfg, userId, agentId);
177
+ if (!accountId) {
178
+ logger.warn?.(`Gateway no account found for userId=${userId} agentId=${agentId}`);
179
+ return;
180
+ }
181
+ const dispatcher = getDispatcherByAppKeyAndAccountId(appKey, accountId);
182
+ if (dispatcher) {
183
+ dispatchWorkclawMessage(data, dispatcher.ctx).catch((err) => {
184
+ logger.error?.(`Dispatch error: ${String(err)}`);
185
+ });
186
+ } else {
187
+ logger.warn?.(`Gateway no dispatcher for accountId=${accountId}`);
188
+ }
189
+ }
190
+ function stopWorkclawGateway(accountId) {
191
+ const appKey = getAppKeyByAccountId(accountId);
192
+ if (!appKey)
193
+ return;
194
+ unregisterAccountContext(appKey, accountId);
195
+ if (getAllDispatchersByAppKey(appKey)?.size === 0) {
196
+ const ws = getWorkclawWsConnection(appKey);
197
+ ws?.close();
198
+ clearWorkclawWsConnection(appKey);
199
+ const scheduler = getReconnectScheduler(appKey);
200
+ scheduler?.stopReconnect();
201
+ clearReconnectScheduler(appKey);
202
+ }
203
+ clearWorkclawConnectionConfig(accountId);
204
+ }
205
+ export {
206
+ startWorkclawGateway,
207
+ stopWorkclawGateway
208
+ };
@@ -0,0 +1,126 @@
1
+ import { stat, readFile } from "node:fs/promises";
2
+ import os from "node:os";
3
+ import path from "node:path";
4
+ import { fileURLToPath } from "node:url";
5
+ import { Agent, fetch } from "undici";
6
+ function isLocalMediaSource(value) {
7
+ const trimmed = value.trim();
8
+ return trimmed.startsWith("/") || trimmed.startsWith("./") || trimmed.startsWith("../") || trimmed.startsWith("~") || trimmed.startsWith("file://");
9
+ }
10
+ function resolveLocalPath(input) {
11
+ if (input.startsWith("file://")) {
12
+ return fileURLToPath(input);
13
+ }
14
+ if (input.startsWith("~")) {
15
+ return path.join(os.homedir(), input.slice(1));
16
+ }
17
+ return path.resolve(input);
18
+ }
19
+ function readResponseUrlPath(data, pathValue) {
20
+ if (!pathValue)
21
+ return void 0;
22
+ const parts = pathValue.split(".").filter(Boolean);
23
+ let current = data;
24
+ for (const part of parts) {
25
+ if (!current || typeof current !== "object")
26
+ return void 0;
27
+ current = current[part];
28
+ }
29
+ return typeof current === "string" ? current : void 0;
30
+ }
31
+ function extractUploadedUrl(responseText, responseData, pathValue) {
32
+ const fromPath = readResponseUrlPath(responseData, pathValue);
33
+ if (fromPath)
34
+ return fromPath;
35
+ const direct = responseData.url ?? responseData.mediaUrl;
36
+ if (typeof direct === "string" && direct.trim())
37
+ return direct;
38
+ const dataObj = responseData.data;
39
+ if (dataObj && typeof dataObj === "object") {
40
+ const dataUrl = dataObj.url;
41
+ const dataMedia = dataObj.mediaUrl;
42
+ if (typeof dataUrl === "string" && dataUrl.trim())
43
+ return dataUrl;
44
+ if (typeof dataMedia === "string" && dataMedia.trim())
45
+ return dataMedia;
46
+ }
47
+ const resultObj = responseData.result;
48
+ if (resultObj && typeof resultObj === "object") {
49
+ const resultUrl = resultObj.url;
50
+ const resultMedia = resultObj.mediaUrl;
51
+ if (typeof resultUrl === "string" && resultUrl.trim())
52
+ return resultUrl;
53
+ if (typeof resultMedia === "string" && resultMedia.trim())
54
+ return resultMedia;
55
+ }
56
+ if (responseText.trim() && /^https?:\/\//i.test(responseText.trim())) {
57
+ return responseText.trim();
58
+ }
59
+ return void 0;
60
+ }
61
+ async function uploadLocalMedia(params) {
62
+ const stats = await stat(params.filePath);
63
+ if (!stats.isFile()) {
64
+ throw new Error(`mediaUrl is not a file: ${params.filePath}`);
65
+ }
66
+ const content = await readFile(params.filePath);
67
+ const form = new FormData();
68
+ const fieldName = params.uploadFieldName?.trim() || "file";
69
+ const fileName = path.basename(params.filePath);
70
+ form.set(fieldName, new Blob([content], { type: "application/octet-stream" }), fileName);
71
+ if (params.uploadFormFields) {
72
+ for (const [key, value] of Object.entries(params.uploadFormFields)) {
73
+ form.set(key, String(value));
74
+ }
75
+ }
76
+ const controller = new AbortController();
77
+ const timeoutId = setTimeout(() => controller.abort(), params.requestTimeout);
78
+ let dispatcher;
79
+ let doFetch = globalThis.fetch.bind(globalThis);
80
+ if (params.allowInsecureTls) {
81
+ try {
82
+ dispatcher = new Agent({ connect: { rejectUnauthorized: false } });
83
+ doFetch = fetch;
84
+ } catch (error) {
85
+ const message = error instanceof Error ? error.message : String(error);
86
+ throw new Error(`allowInsecureTls requires undici. ${message}`);
87
+ }
88
+ }
89
+ try {
90
+ const response = await doFetch(params.uploadUrl, {
91
+ method: "POST",
92
+ headers: params.uploadHeaders ?? {},
93
+ body: form,
94
+ signal: controller.signal,
95
+ ...dispatcher ? { dispatcher } : {}
96
+ });
97
+ const responseText = await response.text().catch(() => "");
98
+ if (!response.ok) {
99
+ throw new Error(`Upload failed: ${response.status} ${responseText}`);
100
+ }
101
+ let data = {};
102
+ if (responseText) {
103
+ try {
104
+ data = JSON.parse(responseText);
105
+ } catch {
106
+ data = {};
107
+ }
108
+ }
109
+ const uploadedUrl = extractUploadedUrl(
110
+ responseText,
111
+ data,
112
+ params.uploadResponseUrlPath
113
+ );
114
+ if (!uploadedUrl) {
115
+ throw new Error("Upload response missing file URL");
116
+ }
117
+ return uploadedUrl;
118
+ } finally {
119
+ clearTimeout(timeoutId);
120
+ }
121
+ }
122
+ export {
123
+ isLocalMediaSource,
124
+ resolveLocalPath,
125
+ uploadLocalMedia
126
+ };
@@ -0,0 +1,88 @@
1
+ import { stat } from "node:fs/promises";
2
+ import { resolveWorkclawAccountWithCache, resolveAccountByUserIdAndAgentId } from "../accounts.js";
3
+ import { loadOpenConversationId } from "../gateway/config-writer.js";
4
+ import { isLocalMediaSource, resolveLocalPath, uploadLocalMedia } from "../media/upload.js";
5
+ import { getWorkclawLogger, setLastOutboundAt } from "../../../../src/runtime.js";
6
+ import { sendWorkclawOutboundMessage } from "./workclaw-sender.js";
7
+ function findAccountIdByTarget(cfg, target, agentId) {
8
+ if (agentId !== void 0 && agentId !== null) {
9
+ return resolveAccountByUserIdAndAgentId(cfg, target, String(agentId)) ?? void 0;
10
+ }
11
+ return void 0;
12
+ }
13
+ async function resolveMediaUrl(mediaUrl, config) {
14
+ if (!mediaUrl)
15
+ return void 0;
16
+ if (!isLocalMediaSource(mediaUrl))
17
+ return mediaUrl;
18
+ const uploadUrl = config.uploadUrl;
19
+ if (!uploadUrl) {
20
+ throw new Error("uploadUrl not configured for local mediaUrl");
21
+ }
22
+ const filePath = resolveLocalPath(mediaUrl);
23
+ if (typeof config.mediaMaxMb === "number" && config.mediaMaxMb > 0) {
24
+ const stats = await stat(filePath);
25
+ const maxBytes = config.mediaMaxMb * 1024 * 1024;
26
+ if (stats.size > maxBytes) {
27
+ throw new Error(`mediaUrl exceeds limit (${config.mediaMaxMb} MB)`);
28
+ }
29
+ }
30
+ return uploadLocalMedia({
31
+ uploadUrl,
32
+ filePath,
33
+ uploadFieldName: config.uploadFieldName,
34
+ uploadHeaders: config.uploadHeaders,
35
+ uploadFormFields: config.uploadFormFields,
36
+ uploadResponseUrlPath: config.uploadResponseUrlPath,
37
+ requestTimeout: config.requestTimeout ?? 3e4,
38
+ allowInsecureTls: config.allowInsecureTls
39
+ });
40
+ }
41
+ async function sendMessageWorkclaw(params) {
42
+ const { cfg, to, text, mediaUrl, replyToMessageId, accountId, openConversationId, agentId, messageType, msgType, last } = params;
43
+ const resolvedMessageType = messageType ?? (replyToMessageId ? "reply" : "push");
44
+ let resolvedAccountId = accountId;
45
+ if (!resolvedAccountId) {
46
+ const foundAccountId = findAccountIdByTarget(cfg, to, agentId);
47
+ if (foundAccountId) {
48
+ resolvedAccountId = foundAccountId;
49
+ }
50
+ }
51
+ const account = resolveWorkclawAccountWithCache({ cfg, accountId: resolvedAccountId });
52
+ if (!account.configured) {
53
+ throw new Error(`Workclaw account "${account.accountId}" not configured`);
54
+ }
55
+ const resolvedMediaUrl = await resolveMediaUrl(mediaUrl, account.config);
56
+ const cfgChannel = cfg.channels?.["openclaw-workclaw"] ?? {};
57
+ const cfgAccounts = cfgChannel.accounts ?? {};
58
+ const cfgAccount = resolvedAccountId ? cfgAccounts[resolvedAccountId] ?? {} : {};
59
+ const cfgOpenConversationId = cfgAccount?.openConversationId ?? cfgChannel?.openConversationId;
60
+ const stateOpenConversationId = resolvedAccountId ? loadOpenConversationId(resolvedAccountId, to) : void 0;
61
+ const effectiveOpenConversationId = openConversationId ?? cfgOpenConversationId ?? stateOpenConversationId;
62
+ getWorkclawLogger().info(`[SEND] source=${params.source || "?"} type=${resolvedMessageType} conv=${effectiveOpenConversationId || "(none)"} replyTo=${replyToMessageId}`);
63
+ const tokenCacheKey = account.config.appKey || account.accountId;
64
+ const result = await sendWorkclawOutboundMessage({
65
+ cacheKey: tokenCacheKey,
66
+ to,
67
+ text,
68
+ msgType,
69
+ mediaUrl: resolvedMediaUrl,
70
+ replyToMessageId,
71
+ openConversationId: effectiveOpenConversationId,
72
+ agentId,
73
+ config: account.config,
74
+ messageType: resolvedMessageType,
75
+ last,
76
+ source: params.source
77
+ });
78
+ if (resolvedAccountId) {
79
+ setLastOutboundAt(resolvedAccountId, Date.now());
80
+ }
81
+ return {
82
+ messageId: result.messageId,
83
+ chatId: to
84
+ };
85
+ }
86
+ export {
87
+ sendMessageWorkclaw
88
+ };
@@ -0,0 +1,79 @@
1
+ import { resolveWorkclawMessage, sendWorkclawReplyMessage, sendWorkclawMessage } from "../connection/workclaw-client.js";
2
+ import { getWorkclawLogger } from "../../../../src/runtime.js";
3
+ async function sendWorkclawOutboundMessage(params) {
4
+ const {
5
+ cacheKey,
6
+ to,
7
+ mediaUrl,
8
+ replyToMessageId,
9
+ openConversationId,
10
+ agentId,
11
+ config,
12
+ messageType = "reply",
13
+ last,
14
+ source
15
+ } = params;
16
+ let msgType = params.msgType;
17
+ let content = params.text;
18
+ const resolvedAgentId = agentId ?? config.agentId;
19
+ if (resolvedAgentId === void 0 || resolvedAgentId === null || String(resolvedAgentId).trim() === "") {
20
+ throw new Error(
21
+ "agentId is required for sending messages. Please create an account via cloud platform command or configure accounts in openclaw.json"
22
+ );
23
+ }
24
+ if (!msgType) {
25
+ ({ msgType, content } = resolveWorkclawMessage(content, mediaUrl));
26
+ }
27
+ const messageTypeCode = msgType === "text" ? "1" : msgType;
28
+ const workclawConfig = {
29
+ baseUrl: config.baseUrl ?? "",
30
+ appKey: config.appKey ?? "",
31
+ appSecret: config.appSecret ?? "",
32
+ localIp: config.localIp,
33
+ allowInsecureTls: config.allowInsecureTls,
34
+ requestTimeout: config.requestTimeout
35
+ };
36
+ const receiveId = config.userId ?? to;
37
+ const replyEndpoint = "/open-apis/im/v1/messages/{messageId}/reply";
38
+ const pushEndpoint = "/open-apis/im/v1/messages";
39
+ if (messageType === "reply") {
40
+ if (!replyToMessageId) {
41
+ throw new Error("replyToMessageId is required for reply message");
42
+ }
43
+ const resolvedOpenConversationId = openConversationId ?? config.openConversationId;
44
+ const msgId = await sendWorkclawReplyMessage({
45
+ cacheKey,
46
+ config: workclawConfig,
47
+ agentId: resolvedAgentId,
48
+ receiveId,
49
+ msgType: messageTypeCode,
50
+ content,
51
+ messageId: replyToMessageId,
52
+ openConversationId: resolvedOpenConversationId,
53
+ endpoint: replyEndpoint.replace("{messageId}", String(replyToMessageId)),
54
+ last,
55
+ source
56
+ });
57
+ return { messageId: msgId };
58
+ } else {
59
+ getWorkclawLogger().info(` Sending proactive message`);
60
+ const resolvedOpenConversationId = openConversationId ?? config.openConversationId;
61
+ getWorkclawLogger().info(` Resolved openConversationId: ${resolvedOpenConversationId}`);
62
+ getWorkclawLogger().info(` Config openConversationId: ${config.openConversationId}`);
63
+ const msgId = await sendWorkclawMessage({
64
+ cacheKey,
65
+ config: workclawConfig,
66
+ agentId: resolvedAgentId,
67
+ receiveId,
68
+ msgType: messageTypeCode,
69
+ content,
70
+ openConversationId: resolvedOpenConversationId,
71
+ endpoint: pushEndpoint,
72
+ last
73
+ });
74
+ return { messageId: msgId };
75
+ }
76
+ }
77
+ export {
78
+ sendWorkclawOutboundMessage
79
+ };
@@ -0,0 +1,22 @@
1
+ import "node:path";
2
+ import "../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/utils-DGFSjtQF.js";
3
+ import { t as DEFAULT_ACCOUNT_ID } from "../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/account-id-C6v13Xic.js";
4
+ import "../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/setup-helpers-ChrkNnYE.js";
5
+ import "../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/exec-jRxy02_4.js";
6
+ import "node:fs/promises";
7
+ import { resolveDefaultWorkclawAccountId } from "./accounts.js";
8
+ import { patchWorkclawConfig } from "./setup-surface.js";
9
+ function setWorkclawNamedAccountEnabled(cfg, accountId, enabled) {
10
+ return patchWorkclawConfig(cfg, accountId, { enabled });
11
+ }
12
+ const workclawSetupAdapter = {
13
+ resolveAccountId: ({ cfg, accountId }) => accountId?.trim() || resolveDefaultWorkclawAccountId(cfg),
14
+ applyAccountConfig: ({ cfg, accountId }) => {
15
+ const isDefault = !accountId || accountId === DEFAULT_ACCOUNT_ID;
16
+ return patchWorkclawConfig(cfg, isDefault ? DEFAULT_ACCOUNT_ID : accountId, { enabled: true });
17
+ }
18
+ };
19
+ export {
20
+ setWorkclawNamedAccountEnabled,
21
+ workclawSetupAdapter
22
+ };