@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,517 @@
1
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/command-registration-Dxq1bCXM.js";
2
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/utils-DGFSjtQF.js";
3
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/ids-By7Nkc8R.js";
4
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/registry-DE4nHTjg.js";
5
+ import { n as maybeResolveTextAlias } from "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/commands-registry-normalize-Bk0WYUI0.js";
6
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/strip-inbound-meta-WCHWW8is.js";
7
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/bundled-Cuj8sKt6.js";
8
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/subsystem-BHv2zSx6.js";
9
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/paths-LCYGfrV7.js";
10
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/workspace-oVBetctb.js";
11
+ import "node:fs";
12
+ import "node:path";
13
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/model-selection-cli-U7l5Ifek.js";
14
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/message-channel-DXsjCySM.js";
15
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/facade-runtime-B04URCVZ.js";
16
+ import "node:os";
17
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/file-lock-D016H3tC.js";
18
+ import "node:fs/promises";
19
+ import "node:crypto";
20
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/logger-BMuqDP66.js";
21
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/theme-CVJvORNs.js";
22
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/runtime-Clo2XF6T.js";
23
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/conversation-binding-C3EIaK9Z.js";
24
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/dispatch-2DAqwFVE.js";
25
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/exec-defaults-DBnaZeLQ.js";
26
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/skills-Djbt9HGh.js";
27
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/io-DDkf_FUu.js";
28
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/models-config-B-YHRI3g.js";
29
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/redact-D4nea1HF.js";
30
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/provider-runtime-O-n0cjZo.js";
31
+ import "node:child_process";
32
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/host-env-security-B-Ebh6At.js";
33
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/provider-env-vars-DDfJbkrO.js";
34
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/setup-registry-BPL6c_Zk.js";
35
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/model-auth-markers-YVQDqG1J.js";
36
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/auth-profiles-Db4Eg6ht.js";
37
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/order-6WHL2fZu.js";
38
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/version-b06Uhxnq.js";
39
+ import "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/bundled-dir-Cq5y_NKM.js";
40
+ import "node:process";
41
+ import { t as resolveNativeCommandSessionTargets } from "../../../../node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/native-command-session-targets-BW3SPx-T.js";
42
+ import { request } from "undici";
43
+ import { resolveAccountByUserIdAndAgentId, resolveWorkclawAccountWithCache } from "../accounts.js";
44
+ import { getWorkclawAccessToken, getWorkclawModelConfigByAppKey } from "../connection/workclaw-client.js";
45
+ import { sendMessageWorkclaw } from "../outbound/index.js";
46
+ import { getWorkclawRuntime, setToolContext, getWorkclawWsConnection } from "../../../../src/runtime.js";
47
+ import { handleAgentDeleted, handleAgentUpdated, handleAgentCreated } from "./agent-handlers.js";
48
+ import { saveOpenConversationId, initWorkclawAgent } from "./config-writer.js";
49
+ import { parseWorkClawMessage, buildInboundContext } from "./message-context.js";
50
+ import { handleSkillsEvent } from "./skills-handler.js";
51
+ import { handleSkillsListEvent as handleSkillsListEvent$1 } from "./skills-list-handler.js";
52
+ import { handleToolsListEvent as handleToolsListEvent$1 } from "./tools-list-handler.js";
53
+ function logError(log, context, err) {
54
+ const errAny = err;
55
+ const stack = typeof errAny?.stack === "string" ? `
56
+ Stack: ${errAny.stack}` : "";
57
+ log?.error?.(`Dispatcher ${context}: ${String(err)}${stack}`);
58
+ }
59
+ async function handlePing(ctx, result) {
60
+ const { accountId, log } = ctx;
61
+ const ws = getWorkclawWsConnection(accountId);
62
+ if (!ws)
63
+ return;
64
+ try {
65
+ const pongResponse = {
66
+ code: 200,
67
+ message: "pong",
68
+ metadata: { contentType: "application/json" },
69
+ data: JSON.stringify(result.pongData)
70
+ };
71
+ ws.send(JSON.stringify(pongResponse));
72
+ log?.debug?.(`pong`);
73
+ } catch (err) {
74
+ logError(log, "Failed to send pong", err);
75
+ }
76
+ }
77
+ async function handleDisconnect(ctx) {
78
+ const { accountId, log, scheduleReconnect } = ctx;
79
+ const ws = getWorkclawWsConnection(accountId);
80
+ if (ws) {
81
+ try {
82
+ ws.close();
83
+ log?.info?.(`Closed WebSocket due to disconnect command`);
84
+ } catch (err) {
85
+ logError(log, "Failed to close WebSocket", err);
86
+ }
87
+ } else {
88
+ log?.info?.(`WebSocket already cleared, triggering reconnect...`);
89
+ scheduleReconnect();
90
+ }
91
+ }
92
+ async function handleAgentEvent(ctx, result) {
93
+ const { cfg, log, baseConfig, accountId } = ctx;
94
+ const eventData = result.eventData;
95
+ if (!eventData) {
96
+ log?.warn?.(`Received ${result.type} event but no data`);
97
+ return;
98
+ }
99
+ const agentId = String(eventData.id || "");
100
+ const userId = String(eventData.futureId || "");
101
+ if (!agentId) {
102
+ log?.warn?.(`Received ${result.type} event but missing agent id`);
103
+ return;
104
+ }
105
+ log?.info?.(`Processing ${result.type} event for agent ${agentId}, userId: ${userId}`);
106
+ const accountData = {
107
+ agentId,
108
+ userId,
109
+ nickName: eventData.nickName,
110
+ phone: eventData.phone,
111
+ status: eventData.status,
112
+ introduction: eventData.introduction,
113
+ name: eventData.name,
114
+ tip: eventData.tip,
115
+ characterSettings: eventData.characterSettings,
116
+ personFeatures: eventData.personFeatures,
117
+ workFeatures: eventData.workFeatures,
118
+ learningFeatures: eventData.learningFeatures,
119
+ socializeFeatures: eventData.socializeFeatures,
120
+ job: eventData.job,
121
+ city: eventData.city
122
+ };
123
+ switch (result.type) {
124
+ case "agent_created":
125
+ await handleAgentCreated(accountData, cfg, log);
126
+ handleAgentCreatedMessage(baseConfig, agentId, accountId, log);
127
+ break;
128
+ case "agent_updated":
129
+ await handleAgentUpdated(accountData, cfg, log);
130
+ break;
131
+ case "agent_deleted":
132
+ await handleAgentDeleted(accountData, cfg, log);
133
+ break;
134
+ }
135
+ }
136
+ async function handleSkillsProcessingEvent(ctx, result) {
137
+ const { accountId, baseConfig, log } = ctx;
138
+ if (!result.eventData)
139
+ return;
140
+ try {
141
+ const connConfig = {
142
+ baseUrl: baseConfig.baseUrl || "",
143
+ websocketUrl: baseConfig.websocketUrl,
144
+ appKey: baseConfig.appKey,
145
+ appSecret: baseConfig.appSecret,
146
+ localIp: baseConfig.localIp,
147
+ allowInsecureTls: baseConfig.allowInsecureTls,
148
+ requestTimeout: baseConfig.requestTimeout
149
+ };
150
+ const tokenCacheKey = baseConfig.appKey || accountId;
151
+ const token = await getWorkclawAccessToken(tokenCacheKey, connConfig);
152
+ await handleSkillsEvent(result.eventData, token, connConfig.baseUrl, connConfig.appKey || accountId, log);
153
+ } catch (err) {
154
+ logError(log, "handleSkillsEvent failed", err);
155
+ }
156
+ }
157
+ async function handleToolsListEvent(ctx, result) {
158
+ const { accountId, baseConfig, log } = ctx;
159
+ if (!result.eventData)
160
+ return;
161
+ try {
162
+ const connConfig = {
163
+ baseUrl: baseConfig.baseUrl || "",
164
+ websocketUrl: baseConfig.websocketUrl,
165
+ appKey: baseConfig.appKey,
166
+ appSecret: baseConfig.appSecret,
167
+ localIp: baseConfig.localIp,
168
+ allowInsecureTls: baseConfig.allowInsecureTls,
169
+ requestTimeout: baseConfig.requestTimeout
170
+ };
171
+ const tokenCacheKey = baseConfig.appKey || accountId;
172
+ const token = await getWorkclawAccessToken(tokenCacheKey, connConfig);
173
+ await handleToolsListEvent$1(result.eventData, connConfig.baseUrl, token, log);
174
+ } catch (err) {
175
+ logError(log, "handleToolsListEvent failed", err);
176
+ }
177
+ }
178
+ async function handleSkillsListEvent(ctx, result) {
179
+ const { accountId, baseConfig, log } = ctx;
180
+ if (!result.eventData)
181
+ return;
182
+ try {
183
+ const connConfig = {
184
+ baseUrl: baseConfig.baseUrl || "",
185
+ websocketUrl: baseConfig.websocketUrl,
186
+ appKey: baseConfig.appKey,
187
+ appSecret: baseConfig.appSecret,
188
+ localIp: baseConfig.localIp,
189
+ allowInsecureTls: baseConfig.allowInsecureTls,
190
+ requestTimeout: baseConfig.requestTimeout
191
+ };
192
+ const tokenCacheKey = baseConfig.appKey || accountId;
193
+ const token = await getWorkclawAccessToken(tokenCacheKey, connConfig);
194
+ await handleSkillsListEvent$1(result.eventData, connConfig.baseUrl, token, log);
195
+ } catch (err) {
196
+ logError(log, "handleSkillsListEvent failed", err);
197
+ }
198
+ }
199
+ async function handleInitAgentEvent(ctx, result) {
200
+ const { accountId, cfg, baseConfig, log } = ctx;
201
+ const initStartedAt = Date.now();
202
+ const eventData = result.eventData;
203
+ if (!eventData) {
204
+ log?.warn?.(`init_agent received but no data`);
205
+ return;
206
+ }
207
+ log?.info?.(
208
+ `init_agent accountId=${accountId} eventDataType=${typeof eventData} preview=${JSON.stringify(eventData).slice(0, 200)}`
209
+ );
210
+ const connConfig = {
211
+ baseUrl: baseConfig.baseUrl || "",
212
+ websocketUrl: baseConfig.websocketUrl,
213
+ appKey: baseConfig.appKey,
214
+ appSecret: baseConfig.appSecret,
215
+ localIp: baseConfig.localIp,
216
+ allowInsecureTls: baseConfig.allowInsecureTls,
217
+ requestTimeout: baseConfig.requestTimeout
218
+ };
219
+ try {
220
+ const tokenCacheKey = baseConfig.appKey || accountId;
221
+ const { baseUrl: modelBaseUrl, apiKey } = await getWorkclawModelConfigByAppKey(tokenCacheKey, connConfig);
222
+ const maskedKey = apiKey ? `${String(apiKey).slice(0, 6)}...(${String(apiKey).length})` : "missing";
223
+ log?.info?.(`init_agent model fetched baseUrl=${modelBaseUrl} apiKey=${maskedKey}`);
224
+ const agentId = String(eventData?.id || eventData?.agentId || "");
225
+ const userId = String(eventData?.futureId || eventData?.userId || "");
226
+ await initWorkclawAgent({ apiKey, agentId, userId, accountId: "default" }, cfg, log);
227
+ log?.info?.(`init_agent config saved elapsedMs=${Date.now() - initStartedAt}`);
228
+ } catch (err) {
229
+ logError(log, "init_agent failed", err);
230
+ }
231
+ log?.info?.(`init_agent handled elapsedMs=${Date.now() - initStartedAt}`);
232
+ }
233
+ async function handleCronTaskEvent(ctx, result) {
234
+ const { accountId, baseConfig, log } = ctx;
235
+ if (!result.cronTaskEvent)
236
+ return;
237
+ try {
238
+ const { handleCronTaskEvent: handleCronTaskEvent2 } = await import("./cron-tasks-handler.js");
239
+ const connConfig = {
240
+ baseUrl: baseConfig.baseUrl || "",
241
+ websocketUrl: baseConfig.websocketUrl,
242
+ appKey: baseConfig.appKey,
243
+ appSecret: baseConfig.appSecret,
244
+ localIp: baseConfig.localIp,
245
+ allowInsecureTls: baseConfig.allowInsecureTls,
246
+ requestTimeout: baseConfig.requestTimeout
247
+ };
248
+ const tokenCacheKey = baseConfig.appKey || accountId;
249
+ const token = await getWorkclawAccessToken(tokenCacheKey, connConfig);
250
+ await handleCronTaskEvent2(result.cronTaskEvent, token, connConfig.baseUrl, connConfig.appKey || accountId, log);
251
+ } catch (err) {
252
+ logError(log, "handleCronTaskEvent failed", err);
253
+ }
254
+ }
255
+ async function handleAgentMessage(ctx, data, result) {
256
+ const { accountId, account, cfg, accountConfig, log } = ctx;
257
+ const { message } = result;
258
+ if (!message)
259
+ return;
260
+ const { text, userId, openConversationId, messageId: parsedMessageId, agentId: msgAgentId } = message;
261
+ let messageAccountId = accountId;
262
+ let messageAccount = account;
263
+ if (userId && msgAgentId) {
264
+ const resolvedAccountId = resolveAccountByUserIdAndAgentId(cfg, String(userId), String(msgAgentId));
265
+ if (resolvedAccountId) {
266
+ const resolved = resolveWorkclawAccountWithCache({ cfg, accountId: resolvedAccountId });
267
+ messageAccountId = resolvedAccountId;
268
+ messageAccount = resolved;
269
+ log?.info?.(`Resolved account ${resolvedAccountId} from message (userId=${userId}, agentId=${msgAgentId})`);
270
+ } else if (String(msgAgentId) !== String(accountConfig.agentId)) {
271
+ log?.warn?.(`Account not found for userId=${userId}, agentId=${msgAgentId}, ignoring`);
272
+ return;
273
+ }
274
+ }
275
+ const resolvedAccountConfig = messageAccount.config;
276
+ const msgAgentIdResolved = msgAgentId ?? accountConfig.agentId;
277
+ if (openConversationId && openConversationId !== resolvedAccountConfig.openConversationId) {
278
+ try {
279
+ await saveOpenConversationId(messageAccountId, userId, openConversationId, cfg, log);
280
+ log?.info?.(`Saved openConversationId ${openConversationId} to account ${messageAccountId}`);
281
+ } catch (err) {
282
+ logError(log, "saveOpenConversationId failed", err);
283
+ }
284
+ }
285
+ const resolvedOpenConversationId = openConversationId || resolvedAccountConfig.openConversationId || "";
286
+ const to = userId;
287
+ const bodyText = text || data;
288
+ if (!bodyText) {
289
+ log?.warn?.(`Empty body, ignoring`);
290
+ return;
291
+ }
292
+ const bindings = cfg?.bindings ?? [];
293
+ let targetAgentId = "default";
294
+ const matchedBinding = bindings.find((binding) => {
295
+ const match = binding?.match;
296
+ if (!match || match.channel !== "openclaw-workclaw")
297
+ return false;
298
+ return match.accountId === messageAccountId || match.accountId === "*";
299
+ });
300
+ if (matchedBinding) {
301
+ targetAgentId = matchedBinding.agentId;
302
+ log?.info?.(`Routing to agent ${targetAgentId} via binding (account: ${messageAccountId})`);
303
+ }
304
+ if (!targetAgentId) {
305
+ log?.warn?.(`Missing target, ignoring`);
306
+ return;
307
+ }
308
+ const attachments = message.attachments;
309
+ const inboundMessage = {
310
+ text: bodyText,
311
+ to,
312
+ from: userId,
313
+ chatType: "dm",
314
+ messageId: parsedMessageId,
315
+ rawPayload: data,
316
+ timestamp: Date.now(),
317
+ attachments
318
+ };
319
+ log?.info?.(`handleAgentMessage: text=${bodyText?.substring(0, 50)}, attachments=${attachments?.length || 0}, rawPayload=${data.substring(0, 300)}`);
320
+ const pluginRuntime = getWorkclawRuntime();
321
+ const textForCommandCheck = bodyText?.replace(/^\[引用[^\]]*\]\s*/, "").trim() || "";
322
+ const resolvedCommand = maybeResolveTextAlias(textForCommandCheck, messageAccount.config);
323
+ const isFrameworkCommand = resolvedCommand !== null;
324
+ if (isFrameworkCommand) {
325
+ log?.info?.(`[DELIVER] Framework command detected: ${bodyText}, will set CommandSource=native`);
326
+ }
327
+ const finalized = await buildInboundContext(
328
+ inboundMessage,
329
+ messageAccountId,
330
+ messageAccount.config,
331
+ targetAgentId,
332
+ pluginRuntime,
333
+ true,
334
+ log
335
+ );
336
+ if (isFrameworkCommand) {
337
+ const targetSessionKey = finalized.SessionKey;
338
+ const { sessionKey: commandSessionKey, commandTargetSessionKey } = resolveNativeCommandSessionTargets({
339
+ agentId: targetAgentId,
340
+ sessionPrefix: "openclaw-workclaw:new",
341
+ userId: String(userId ?? ""),
342
+ targetSessionKey
343
+ });
344
+ finalized.SessionKey = commandSessionKey;
345
+ finalized.CommandTargetSessionKey = commandTargetSessionKey;
346
+ finalized.CommandSource = "native";
347
+ finalized.CommandAuthorized = true;
348
+ log?.info?.(`[DELIVER] Set CommandSource=native, commandSessionKey=${commandSessionKey}, targetSessionKey=${targetSessionKey}`);
349
+ }
350
+ let textDelivered = false;
351
+ await pluginRuntime.channel.reply.dispatchReplyWithBufferedBlockDispatcher({
352
+ ctx: finalized,
353
+ cfg,
354
+ replyOptions: {
355
+ onAgentRunStart(runId) {
356
+ setToolContext(runId, {
357
+ target: targetAgentId,
358
+ replyToMessageId: parsedMessageId,
359
+ openConversationId: resolvedOpenConversationId,
360
+ accountId: messageAccountId,
361
+ agentId: String(msgAgentIdResolved),
362
+ sessionKey: finalized.SessionKey || ""
363
+ });
364
+ log?.info?.(`[AGENT] onAgentRunStart: runId=${runId} target=${targetAgentId}`);
365
+ }
366
+ },
367
+ dispatcherOptions: {
368
+ deliver: async (payload, info) => {
369
+ const resolvedReplyToId = payload?.replyToId || parsedMessageId;
370
+ const textOut = String(payload.text ?? payload.body ?? "");
371
+ const target = to || String(payload.to ?? "");
372
+ const kind = info?.kind;
373
+ if (!target) {
374
+ log?.warn?.(`[DELIVER] skip: no target`);
375
+ return;
376
+ }
377
+ if (kind === "tool") {
378
+ return;
379
+ }
380
+ if (!textOut.trim()) {
381
+ log?.warn?.(`[DELIVER] skip: empty text (kind=${kind})`);
382
+ return;
383
+ }
384
+ try {
385
+ const result2 = await sendMessageWorkclaw({
386
+ cfg,
387
+ to: target,
388
+ text: textOut,
389
+ accountId: messageAccountId,
390
+ openConversationId: resolvedOpenConversationId,
391
+ agentId: msgAgentIdResolved,
392
+ replyToMessageId: resolvedReplyToId,
393
+ last: false,
394
+ source: "deliver"
395
+ });
396
+ textDelivered = true;
397
+ log?.info?.(`[DELIVER] sent "${textOut.substring(0, 80)}" (last=false) kind=${kind} msgId=${result2.messageId}`);
398
+ } catch (err) {
399
+ logError(log, "Reply send failed", err);
400
+ throw err;
401
+ }
402
+ }
403
+ }
404
+ });
405
+ if (!textDelivered && bodyText?.startsWith("/")) {
406
+ log?.info?.(`[DELIVER] command ${bodyText} executed with no text reply, sending confirmation`);
407
+ try {
408
+ await sendMessageWorkclaw({
409
+ cfg,
410
+ to: to || String(userId || ""),
411
+ text: `${bodyText} 已执行`,
412
+ accountId: messageAccountId,
413
+ openConversationId: resolvedOpenConversationId,
414
+ agentId: msgAgentIdResolved,
415
+ replyToMessageId: parsedMessageId,
416
+ last: false,
417
+ source: "deliver"
418
+ });
419
+ } catch (err) {
420
+ logError(log, "Command confirmation send failed", err);
421
+ }
422
+ }
423
+ log?.info?.(`[DELIVER] sending last=true end signal`);
424
+ try {
425
+ await sendMessageWorkclaw({
426
+ cfg,
427
+ to: to || String(userId || ""),
428
+ text: "",
429
+ accountId: messageAccountId,
430
+ openConversationId: resolvedOpenConversationId,
431
+ agentId: msgAgentIdResolved,
432
+ replyToMessageId: parsedMessageId,
433
+ last: true,
434
+ source: "deliver"
435
+ });
436
+ } catch (err) {
437
+ const errStr = String(err);
438
+ if (errStr.includes("content can't be empty")) {
439
+ log?.info?.(`[DELIVER] last=true skipped (empty content not supported)`);
440
+ } else {
441
+ logError(log, "last=true signal send failed", err);
442
+ }
443
+ }
444
+ }
445
+ async function dispatchWorkclawMessage(data, ctx) {
446
+ const { log } = ctx;
447
+ const result = parseWorkClawMessage(data, log);
448
+ if (!result) {
449
+ log?.warn?.(`Failed to parse message`);
450
+ return;
451
+ }
452
+ log?.info?.(`Message type=${result.type}`);
453
+ switch (result.type) {
454
+ case "ping":
455
+ await handlePing(ctx, result);
456
+ return;
457
+ case "disconnect":
458
+ await handleDisconnect(ctx);
459
+ return;
460
+ case "agent_created":
461
+ case "agent_updated":
462
+ case "agent_deleted":
463
+ await handleAgentEvent(ctx, result);
464
+ return;
465
+ case "skills_event":
466
+ await handleSkillsProcessingEvent(ctx, result);
467
+ return;
468
+ case "tools_list":
469
+ await handleToolsListEvent(ctx, result);
470
+ return;
471
+ case "skills_list":
472
+ await handleSkillsListEvent(ctx, result);
473
+ return;
474
+ case "init_agent":
475
+ await handleInitAgentEvent(ctx, result);
476
+ return;
477
+ case "cron_task_event":
478
+ await handleCronTaskEvent(ctx, result);
479
+ return;
480
+ case "ignored":
481
+ log?.info?.(`Ignoring message type=${result.type}`);
482
+ return;
483
+ case "agent_message":
484
+ await handleAgentMessage(ctx, data, result);
485
+ return;
486
+ default:
487
+ log?.info?.(`Unknown message type: ${result.type}, ignoring`);
488
+ }
489
+ }
490
+ async function handleAgentCreatedMessage(baseConfig, agentId, accountId, log) {
491
+ try {
492
+ const base = (baseConfig.baseUrl || "").replace(/\/$/, "");
493
+ const callbackUrl = `${base}/open-apis/instance/agent-created/status`;
494
+ const tokenCacheKey = baseConfig.appKey || accountId;
495
+ const callbackData = {
496
+ agentId,
497
+ success: true
498
+ };
499
+ log?.info?.(`[AgentCreated] Calling callback API: ${callbackUrl}`);
500
+ const token = await getWorkclawAccessToken(tokenCacheKey, baseConfig);
501
+ const response = await request(callbackUrl, {
502
+ method: "POST",
503
+ headers: {
504
+ "Content-Type": "application/json",
505
+ "Authorization": `Bearer ${token}`
506
+ },
507
+ body: JSON.stringify(callbackData)
508
+ });
509
+ const responseBody = await response.body.text();
510
+ log?.info?.(`[AgentCreated] Callback API response: status=${response.statusCode}, body=${responseBody}`);
511
+ } catch (callbackErr) {
512
+ log?.error?.(`[AgentCreated] Callback API failed: ${String(callbackErr)}`);
513
+ }
514
+ }
515
+ export {
516
+ dispatchWorkclawMessage
517
+ };
@@ -0,0 +1,177 @@
1
+ import { Agent, WebSocket } from "undici";
2
+ import { clearWorkclawTokenCache, openWorkclawConnection } from "../connection/workclaw-client.js";
3
+ import { setWorkclawWsConnection, clearWorkclawWsConnection } from "../../../../src/runtime.js";
4
+ function createReconnectScheduler(options) {
5
+ const { key, config, log, onMessage, onReconnectSuccess, onClose, onConnectingStarted } = options;
6
+ let reconnectBackoff = 5e3;
7
+ let shouldStopReconnect = false;
8
+ let pendingReconnectTimer = null;
9
+ let pendingDoConnectPromise = null;
10
+ async function doConnect() {
11
+ if (pendingDoConnectPromise !== null) {
12
+ return pendingDoConnectPromise;
13
+ }
14
+ let resolveThis;
15
+ let rejectThis;
16
+ const p = new Promise((resolve, reject) => {
17
+ resolveThis = resolve;
18
+ rejectThis = reject;
19
+ });
20
+ pendingDoConnectPromise = p;
21
+ const tokenCacheKey = config.appKey || key;
22
+ clearWorkclawTokenCache(tokenCacheKey);
23
+ const connConfig = {
24
+ baseUrl: config.baseUrl || "",
25
+ websocketUrl: config.websocketUrl,
26
+ appKey: config.appKey,
27
+ appSecret: config.appSecret,
28
+ localIp: config.localIp,
29
+ allowInsecureTls: config.allowInsecureTls,
30
+ requestTimeout: config.requestTimeout
31
+ };
32
+ let endpoint;
33
+ let ticket;
34
+ try {
35
+ const result = await openWorkclawConnection(tokenCacheKey, connConfig);
36
+ endpoint = result.endpoint;
37
+ ticket = result.ticket;
38
+ } catch (err) {
39
+ const willRetry = handleConnectError(String(err));
40
+ if (!willRetry) {
41
+ pendingDoConnectPromise = null;
42
+ rejectThis(err);
43
+ }
44
+ throw err;
45
+ }
46
+ const url = `${endpoint}?ticket=${encodeURIComponent(ticket)}`;
47
+ const dispatcher = connConfig.allowInsecureTls ? new Agent({ connect: { rejectUnauthorized: false } }) : void 0;
48
+ const wsOptions = dispatcher ? { dispatcher } : void 0;
49
+ const ws = new WebSocket(url, wsOptions);
50
+ setWorkclawWsConnection(key, ws);
51
+ onConnectingStarted?.(ws);
52
+ ws.onopen = () => {
53
+ log?.info?.(`Gateway WebSocket connected endpoint=${endpoint}`);
54
+ reconnectBackoff = 5e3;
55
+ onReconnectSuccess?.();
56
+ resolveThis();
57
+ };
58
+ ws.onerror = (event) => {
59
+ log?.error?.(`Gateway WebSocket error: ${String(event?.message ?? event)}`);
60
+ rejectThis(new Error(String(event?.message ?? event)));
61
+ };
62
+ ws.onclose = (event) => {
63
+ const code = String(event?.code ?? "");
64
+ const reason = String(event?.reason ?? "");
65
+ log?.warn?.(`Gateway WebSocket closed code=${code} reason=${reason}`);
66
+ clearWorkclawWsConnection(key);
67
+ if (onClose) {
68
+ onClose();
69
+ } else {
70
+ scheduleReconnect();
71
+ }
72
+ rejectThis(new Error(`WebSocket closed code=${code} reason=${reason}`));
73
+ };
74
+ ws.onmessage = (event) => {
75
+ const data = typeof event.data === "string" ? event.data : String(event.data ?? "");
76
+ log?.debug?.(`Gateway WebSocket message received bytes=${data.length}`);
77
+ onMessage(data);
78
+ };
79
+ await new Promise((resolve, reject) => {
80
+ const timeout = setTimeout(() => reject(new Error("websocket connection timeout")), 3e4);
81
+ ws.addEventListener("open", () => {
82
+ clearTimeout(timeout);
83
+ resolve();
84
+ }, { once: true });
85
+ ws.addEventListener("error", (event) => {
86
+ clearTimeout(timeout);
87
+ reject(new Error(String(event?.message ?? event)));
88
+ }, { once: true });
89
+ ws.addEventListener("close", (event) => {
90
+ clearTimeout(timeout);
91
+ reject(new Error(`websocket closed before ready code=${event?.code ?? ""} reason=${event?.reason ?? ""}`));
92
+ }, { once: true });
93
+ });
94
+ }
95
+ const scheduleReconnect = () => {
96
+ if (shouldStopReconnect) {
97
+ log?.info?.(`Reconnect: Stopped due to previous auth failure`);
98
+ return;
99
+ }
100
+ if (pendingReconnectTimer !== null) {
101
+ log?.info?.(`Reconnect: Already scheduled, skipping duplicate`);
102
+ return;
103
+ }
104
+ const jitter = Math.floor(Math.random() * 3e3);
105
+ const delayMs = reconnectBackoff + jitter;
106
+ log?.info?.(`Reconnect: Scheduling in ${delayMs}ms (base=${reconnectBackoff} + jitter=${jitter}) key=${key}`);
107
+ pendingReconnectTimer = setTimeout(async () => {
108
+ pendingReconnectTimer = null;
109
+ pendingDoConnectPromise = null;
110
+ try {
111
+ log?.info?.(`Reconnect: Attempting... key=${key}`);
112
+ await doConnect();
113
+ log?.info?.(`Reconnect: Success`);
114
+ } catch (err) {
115
+ const errorStr = String(err);
116
+ log?.error?.(`Reconnect: Failed: ${errorStr}`);
117
+ const willRetry = handleConnectError(errorStr);
118
+ if (!willRetry) {
119
+ pendingDoConnectPromise = null;
120
+ } else {
121
+ scheduleReconnect();
122
+ }
123
+ }
124
+ }, delayMs);
125
+ };
126
+ function handleConnectError(errorStr) {
127
+ if (errorStr.includes("访问过于频繁")) {
128
+ log?.warn?.(`Reconnect: Rate limited, retrying with minimal backoff`);
129
+ if (pendingReconnectTimer !== null) {
130
+ clearTimeout(pendingReconnectTimer);
131
+ pendingReconnectTimer = null;
132
+ }
133
+ reconnectBackoff = 1e3;
134
+ scheduleReconnect();
135
+ return true;
136
+ }
137
+ const isAuthError = errorStr.includes('"errCode":2001') || errorStr.includes('"code":2001') || errorStr.includes("鉴权失败") || errorStr.includes("invalid credentials") || errorStr.includes("unauthorized");
138
+ if (isAuthError) {
139
+ log?.error?.(`Reconnect: Authentication failed, stopping`);
140
+ shouldStopReconnect = true;
141
+ if (pendingReconnectTimer !== null) {
142
+ clearTimeout(pendingReconnectTimer);
143
+ pendingReconnectTimer = null;
144
+ }
145
+ return false;
146
+ }
147
+ return true;
148
+ }
149
+ async function connect() {
150
+ if (pendingDoConnectPromise !== null) {
151
+ return pendingDoConnectPromise;
152
+ }
153
+ try {
154
+ return await doConnect();
155
+ } catch (err) {
156
+ const errorStr = String(err);
157
+ log?.error?.(`Gateway connect failed: ${errorStr}`);
158
+ const willRetry = handleConnectError(errorStr);
159
+ if (!willRetry) {
160
+ pendingDoConnectPromise = null;
161
+ throw err;
162
+ }
163
+ scheduleReconnect();
164
+ }
165
+ }
166
+ const stopReconnect = () => {
167
+ shouldStopReconnect = true;
168
+ if (pendingReconnectTimer !== null) {
169
+ clearTimeout(pendingReconnectTimer);
170
+ pendingReconnectTimer = null;
171
+ }
172
+ };
173
+ return { connect, scheduleReconnect, stopReconnect };
174
+ }
175
+ export {
176
+ createReconnectScheduler
177
+ };