@workclaw/openclaw-workclaw 1.0.202 → 1.0.332

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (541) hide show
  1. package/README.md +3 -4
  2. package/dist/_virtual/_commonjsHelpers.js +8 -0
  3. package/dist/_virtual/ipaddr.js +4 -0
  4. package/dist/_virtual/jiti.js +4 -0
  5. package/dist/_virtual/main.js +4 -0
  6. package/dist/api.d.ts +4 -3
  7. package/dist/api.d.ts.map +1 -0
  8. package/dist/api.js +10 -3
  9. package/dist/index.d.ts +6 -5
  10. package/dist/index.d.ts.map +1 -0
  11. package/dist/index.js +250 -243
  12. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js +163 -0
  13. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js +32 -0
  14. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js +188 -0
  15. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/browser.js +25 -0
  16. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/account-id-C6v13Xic.js +4 -0
  17. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/auth-profiles-Db4Eg6ht.js +24 -0
  18. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/bash-tools.exec-runtime--1hhz8C_.js +46 -0
  19. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/bash-tools.schemas-BqpDemKo.js +32 -0
  20. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/boolean-DbfRNnYl.js +14 -0
  21. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/boundary-file-read-BymsBHso.js +172 -0
  22. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/bundled-Cuj8sKt6.js +18 -0
  23. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/bundled-dir-Cq5y_NKM.js +109 -0
  24. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/bundled-plugin-metadata-BJMD48hn.js +260 -0
  25. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/channel-entry-contract-BoTfqLnn.js +176 -0
  26. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/cli-name-DPC4W7Fo.js +22 -0
  27. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/command-format-LqDv8ows.js +24 -0
  28. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/command-registration-Dxq1bCXM.js +16 -0
  29. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/commands-registry-normalize-Bk0WYUI0.js +94 -0
  30. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/commands-registry.data-D99VdOlX.js +940 -0
  31. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/config--3Msyf4f.js +20 -0
  32. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/config-schema-C6kUPI7B.js +33 -0
  33. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/config-schema-DB8FqQH8.js +82 -0
  34. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/conversation-binding-C3EIaK9Z.js +19 -0
  35. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/core-DpZtjMWz.js +51 -0
  36. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/dedupe-DM7iBj7C.js +60 -0
  37. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/discovery-Cgp95o2R.js +649 -0
  38. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/dispatch-2DAqwFVE.js +33 -0
  39. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/errors-Dyla6m1G.js +13 -0
  40. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/exec-approvals-CLXc_BYU.js +212 -0
  41. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/exec-defaults-DBnaZeLQ.js +13 -0
  42. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/exec-jRxy02_4.js +9 -0
  43. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/exec-safe-bin-trust-DOmID2EO.js +638 -0
  44. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/exec-safety-C8v0dsfc.js +24 -0
  45. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/facade-loader-B83leEeb.js +10 -0
  46. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/facade-runtime-B04URCVZ.js +14 -0
  47. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/file-identity-sp9axE-E.js +411 -0
  48. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/file-lock-D016H3tC.js +5 -0
  49. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/gateway-control-ui-origins-B-lkqr3D.js +23 -0
  50. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/gateway-request-scope-BEWoJTx4.js +3 -0
  51. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/global-singleton-DhGoboiG.js +14 -0
  52. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/helpers-CI2CkXhU.js +7 -0
  53. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/home-dir-BEqRdfoa.js +67 -0
  54. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/host-env-security-B-Ebh6At.js +334 -0
  55. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/ids-By7Nkc8R.js +76 -0
  56. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/inbound-path-policy-CQkSSeSi.js +26 -0
  57. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/internal-hooks-D52pUqod.js +5 -0
  58. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/io-DDkf_FUu.js +14328 -0
  59. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/ip-CdfoCORt.js +2 -0
  60. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/json-files-DACY7Zw5.js +22 -0
  61. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/legacy-names-C7VUgVdg.js +5 -0
  62. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/links-BlUEqVE8.js +15 -0
  63. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/loader-DYJR63Q1.js +27 -0
  64. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/logger-BMuqDP66.js +26 -0
  65. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/manager-szyCqvou.js +22 -0
  66. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/manifest-CjPIwluH.js +409 -0
  67. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/manifest-registry-CK0zNybm.js +394 -0
  68. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/map-size-DhG4ditB.js +15 -0
  69. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/message-channel-DXsjCySM.js +32 -0
  70. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/mime-BjR-Aw-Q.js +42 -0
  71. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/min-host-version-CmguvhGB.js +49 -0
  72. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/model-auth-markers-YVQDqG1J.js +8 -0
  73. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/model-selection-cli-U7l5Ifek.js +14 -0
  74. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/models-config-B-YHRI3g.js +40 -0
  75. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/native-command-session-targets-BW3SPx-T.js +11 -0
  76. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/network-mode-D3yzFBsD.js +15 -0
  77. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/node-require-DvwmVoHm.js +14 -0
  78. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/node-sqlite-FGjwOqiS.js +3 -0
  79. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/openclaw-root-BNWw3cXT.js +69 -0
  80. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/order-6WHL2fZu.js +26 -0
  81. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/parse-duration-amE_QFsj.js +42 -0
  82. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/path-safety-CKqzLERR.js +308 -0
  83. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/paths-LCYGfrV7.js +95 -0
  84. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/process-scoped-map-Cv-PkzaO.js +11 -0
  85. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/profile-utils-Dh8DVvPv.js +17 -0
  86. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/prototype-keys-BKGE_uzN.js +11 -0
  87. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/provider-env-vars-DDfJbkrO.js +150 -0
  88. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/provider-id-B3nZBDJJ.js +15 -0
  89. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/provider-runtime-O-n0cjZo.js +22 -0
  90. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/public-surface-loader-CSDxBey4.js +14 -0
  91. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/redact-D4nea1HF.js +2 -0
  92. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/ref-contract-B1q5N0Lz.js +35 -0
  93. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/registry-DE4nHTjg.js +54 -0
  94. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/registry-loaded-B8D6rQiJ.js +62 -0
  95. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/registry-nEl7QZ30.js +3 -0
  96. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/runtime-Clo2XF6T.js +27 -0
  97. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/runtime-channel-state-Ck2VkX9T.js +20 -0
  98. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/runtime-guard-DqVOvWAZ.js +23 -0
  99. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/runtime-state-Cd3jnHgw.js +4 -0
  100. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/schema-validator-Bo7NeV8w.js +3 -0
  101. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/scp-host-CiFVRWHy.js +38 -0
  102. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/sdk-alias-Bo1huP7M.js +315 -0
  103. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/session-binding-service-D6sb-LrK.js +9 -0
  104. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/session-write-lock-Dk7FbMr_.js +6 -0
  105. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/setup-helpers-ChrkNnYE.js +5 -0
  106. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/setup-registry-BPL6c_Zk.js +16 -0
  107. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/setup-wizard-helpers-DnMkYslk.js +19 -0
  108. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/skills-Djbt9HGh.js +21 -0
  109. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/slots-PynIdqZ_.js +10 -0
  110. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/string-coerce-BUSzWgUA.js +25 -0
  111. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/string-normalization-DIJRAo0o.js +20 -0
  112. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/strip-inbound-meta-WCHWW8is.js +12 -0
  113. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/subsystem-BHv2zSx6.js +15 -0
  114. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/system-events-CfifhXT7.js +3 -0
  115. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/tailscale-status-Ch1LdrMM.js +5 -0
  116. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/task-registry-2LJDZL29.js +15 -0
  117. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/telegram-command-config-TdpOuZ__.js +66 -0
  118. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/terminal-link-B3nCYQJi.js +10 -0
  119. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/theme-CVJvORNs.js +27 -0
  120. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/thinking-_rqwdGD8.js +44 -0
  121. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/thinking.shared-Dginn1He.js +14 -0
  122. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/tmp-openclaw-dir-DrKSsX71.js +103 -0
  123. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/tool-policy-CwZyJfFc.js +300 -0
  124. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/types-BfKfz-lz.js +38 -0
  125. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/types.secrets-C9RpLzA0.js +53 -0
  126. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/utils-DGFSjtQF.js +36 -0
  127. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/version-b06Uhxnq.js +82 -0
  128. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/workspace-oVBetctb.js +20 -0
  129. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/zod-schema-Cpw1qu03.js +1299 -0
  130. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/zod-schema.agent-runtime-D48J52r_.js +620 -0
  131. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/zod-schema.core-BrzjtZhM.js +597 -0
  132. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/zod-schema.providers-core-CX8AFeyJ.js +1354 -0
  133. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/zod-schema.providers-whatsapp-7E9bf9oA.js +130 -0
  134. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/dist/zod-schema.sensitive-BFZ4qze6.js +5 -0
  135. 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
  136. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/@mariozechner/pi-ai/dist/models.js +16 -0
  137. 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
  138. 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
  139. 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
  140. 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
  141. 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
  142. 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
  143. 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
  144. 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
  145. 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
  146. 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
  147. 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
  148. 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
  149. 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
  150. 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
  151. 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
  152. 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
  153. 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
  154. 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
  155. 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
  156. 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
  157. 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
  158. 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
  159. 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
  160. 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
  161. 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
  162. 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
  163. 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
  164. 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
  165. 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
  166. 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
  167. 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
  168. 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
  169. 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
  170. 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
  171. 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
  172. 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
  173. 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
  174. 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
  175. 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
  176. 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
  177. 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
  178. 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
  179. 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
  180. 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
  181. 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
  182. 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
  183. 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
  184. 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
  185. 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
  186. 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
  187. 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
  188. 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
  189. 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
  190. 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
  191. 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
  192. 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
  193. 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
  194. 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
  195. 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
  196. 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
  197. 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
  198. 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
  199. 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
  200. 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
  201. 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
  202. 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
  203. 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
  204. 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
  205. 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
  206. 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
  207. 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
  208. 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
  209. 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
  210. 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
  211. 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
  212. 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
  213. 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
  214. 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
  215. 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
  216. 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
  217. 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
  218. 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
  219. 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
  220. 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
  221. 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
  222. 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
  223. 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
  224. 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
  225. 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
  226. 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
  227. 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
  228. 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
  229. 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
  230. 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
  231. 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
  232. 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
  233. 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
  234. 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
  235. 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
  236. 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
  237. 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
  238. 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
  239. 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
  240. 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
  241. 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
  242. 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
  243. 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
  244. 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
  245. 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
  246. 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
  247. 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
  248. 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
  249. 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
  250. 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
  251. 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
  252. 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
  253. 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
  254. 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
  255. 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
  256. 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
  257. 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
  258. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/dotenv/lib/main.js +318 -0
  259. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/ipaddr.js/lib/ipaddr.js +805 -0
  260. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/jiti/dist/jiti.js +3869 -0
  261. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/jiti/lib/jiti.js +26 -0
  262. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/json5/dist/index.js +1085 -0
  263. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/doc/anchors.js +12 -0
  264. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/doc/applyReviver.js +45 -0
  265. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/doc/createNode.js +58 -0
  266. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/log.js +8 -0
  267. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/Alias.js +111 -0
  268. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/Collection.js +138 -0
  269. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/Node.js +36 -0
  270. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/Pair.js +35 -0
  271. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/Scalar.js +25 -0
  272. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/YAMLMap.js +139 -0
  273. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +111 -0
  274. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +59 -0
  275. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/identity.js +52 -0
  276. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/nodes/toJS.js +25 -0
  277. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/parse/lexer.js +6 -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/merge.js +55 -0
  279. 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
  280. 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
  281. 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
  282. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +131 -0
  283. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/stringify/stringify.js +119 -0
  284. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +146 -0
  285. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/stringify/stringifyComment.js +12 -0
  286. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/stringify/stringifyPair.js +128 -0
  287. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/stringify/stringifyString.js +278 -0
  288. package/dist/node_modules/.pnpm/openclaw@2026.4.14_@emnapi__48b26e3018d2f6ac73290fb8288ef325/node_modules/openclaw/node_modules/yaml/browser/dist/visit.js +104 -0
  289. package/dist/packages/plugin/src/accounts.js +200 -0
  290. package/dist/packages/plugin/src/api/accounts-api.js +133 -0
  291. package/dist/packages/plugin/src/api/prompts-api.js +105 -0
  292. package/dist/packages/plugin/src/api/session-api.js +172 -0
  293. package/dist/packages/plugin/src/api/skills-api.js +61 -0
  294. package/dist/packages/plugin/src/api/workspace.js +30 -0
  295. package/dist/packages/plugin/src/channel.js +209 -0
  296. package/dist/packages/plugin/src/config-schema.js +51 -0
  297. package/dist/packages/plugin/src/connection/workclaw-client.js +282 -0
  298. package/dist/packages/plugin/src/gateway/agent-handlers.js +408 -0
  299. package/dist/packages/plugin/src/gateway/config-writer.js +157 -0
  300. package/dist/packages/plugin/src/gateway/cron-tasks-handler.js +184 -0
  301. package/dist/packages/plugin/src/gateway/message-context.js +411 -0
  302. package/dist/packages/plugin/src/gateway/message-dispatcher.js +519 -0
  303. package/dist/packages/plugin/src/gateway/reconnect.js +178 -0
  304. package/dist/packages/plugin/src/gateway/skills-handler.js +511 -0
  305. package/dist/packages/plugin/src/gateway/skills-list-handler.js +173 -0
  306. package/dist/packages/plugin/src/gateway/tools-list-handler.js +89 -0
  307. package/dist/packages/plugin/src/gateway/workclaw-gateway.js +245 -0
  308. package/dist/packages/plugin/src/logging.js +62 -0
  309. package/dist/packages/plugin/src/media/upload.js +126 -0
  310. package/dist/packages/plugin/src/outbound/index.js +89 -0
  311. package/dist/packages/plugin/src/outbound/workclaw-sender.js +79 -0
  312. package/dist/packages/plugin/src/setup-core.js +22 -0
  313. package/dist/packages/plugin/src/setup-surface.js +338 -0
  314. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/api/index.js +186 -0
  315. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/index.js +30 -0
  316. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/add/params.js +147 -0
  317. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/add/sync.js +154 -0
  318. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/disable/params.js +62 -0
  319. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/disable/sync.js +86 -0
  320. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/enable/params.js +62 -0
  321. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/enable/sync.js +86 -0
  322. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/notify/sync.js +103 -0
  323. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/remove/params.js +68 -0
  324. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/remove/sync.js +86 -0
  325. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/update/params.js +141 -0
  326. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/src/update/sync.js +114 -0
  327. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/utils/index.js +99 -0
  328. package/dist/packages/plugin/src/tools/openclaw-workclaw-cron/utils/tool-context.js +29 -0
  329. package/dist/packages/plugin/src/types/system.js +8 -0
  330. package/dist/setup-entry.d.ts +2 -1
  331. package/dist/setup-entry.d.ts.map +1 -0
  332. package/dist/setup-entry.js +14 -11
  333. package/dist/src/accounts.d.ts +20 -19
  334. package/dist/src/accounts.d.ts.map +1 -0
  335. package/dist/src/api/accounts-api.d.ts +2 -1
  336. package/dist/src/api/accounts-api.d.ts.map +1 -0
  337. package/dist/src/api/prompts-api.d.ts +2 -1
  338. package/dist/src/api/prompts-api.d.ts.map +1 -0
  339. package/dist/src/api/session-api.d.ts +2 -1
  340. package/dist/src/api/session-api.d.ts.map +1 -0
  341. package/dist/src/api/skills-api.d.ts +2 -1
  342. package/dist/src/api/skills-api.d.ts.map +1 -0
  343. package/dist/src/api/workspace.d.ts +2 -1
  344. package/dist/src/api/workspace.d.ts.map +1 -0
  345. package/dist/src/channel.d.ts +3 -2
  346. package/dist/src/channel.d.ts.map +1 -0
  347. package/dist/src/config-schema.d.ts +1 -6
  348. package/dist/src/config-schema.d.ts.map +1 -0
  349. package/dist/src/connection/workclaw-client.d.ts +6 -4
  350. package/dist/src/connection/workclaw-client.d.ts.map +1 -0
  351. package/dist/src/gateway/agent-handlers.d.ts +4 -3
  352. package/dist/src/gateway/agent-handlers.d.ts.map +1 -0
  353. package/dist/src/gateway/config-writer.d.ts +32 -30
  354. package/dist/src/gateway/config-writer.d.ts.map +1 -0
  355. package/dist/src/gateway/cron-tasks-handler.d.ts +3 -1
  356. package/dist/src/gateway/cron-tasks-handler.d.ts.map +1 -0
  357. package/dist/src/gateway/message-context.d.ts +15 -17
  358. package/dist/src/gateway/message-context.d.ts.map +1 -0
  359. package/dist/src/gateway/message-dispatcher.d.ts +3 -4
  360. package/dist/src/gateway/message-dispatcher.d.ts.map +1 -0
  361. package/dist/src/gateway/reconnect.d.ts +6 -8
  362. package/dist/src/gateway/reconnect.d.ts.map +1 -0
  363. package/dist/src/gateway/skills-handler.d.ts +1 -0
  364. package/dist/src/gateway/skills-handler.d.ts.map +1 -0
  365. package/dist/src/gateway/skills-list-handler.d.ts +1 -0
  366. package/dist/src/gateway/skills-list-handler.d.ts.map +1 -0
  367. package/dist/src/gateway/tools-list-handler.d.ts +1 -0
  368. package/dist/src/gateway/tools-list-handler.d.ts.map +1 -0
  369. package/dist/src/gateway/workclaw-gateway.d.ts +2 -7
  370. package/dist/src/gateway/workclaw-gateway.d.ts.map +1 -0
  371. package/dist/src/logging.d.ts +55 -0
  372. package/dist/src/logging.d.ts.map +1 -0
  373. package/dist/src/media/upload.d.ts +1 -0
  374. package/dist/src/media/upload.d.ts.map +1 -0
  375. package/dist/src/outbound/index.d.ts +9 -6
  376. package/dist/src/outbound/index.d.ts.map +1 -0
  377. package/dist/src/outbound/workclaw-sender.d.ts +6 -4
  378. package/dist/src/outbound/workclaw-sender.d.ts.map +1 -0
  379. package/dist/src/runtime.d.ts +4 -17
  380. package/dist/src/runtime.d.ts.map +1 -0
  381. package/dist/src/runtime.js +324 -365
  382. package/dist/src/secret-contract-api.d.ts +1 -0
  383. package/dist/src/secret-contract-api.d.ts.map +1 -0
  384. package/dist/src/secret-contract-api.js +6 -3
  385. package/dist/src/send.d.ts +2 -1
  386. package/dist/src/send.d.ts.map +1 -0
  387. package/dist/src/setup-api.d.ts +4 -3
  388. package/dist/src/setup-api.d.ts.map +1 -0
  389. package/dist/src/setup-core.d.ts +2 -1
  390. package/dist/src/setup-core.d.ts.map +1 -0
  391. package/dist/src/setup-surface.d.ts +3 -2
  392. package/dist/src/setup-surface.d.ts.map +1 -0
  393. package/dist/src/tools/openclaw-workclaw-cron/api/index.d.ts +3 -4
  394. package/dist/src/tools/openclaw-workclaw-cron/api/index.d.ts.map +1 -0
  395. package/dist/src/tools/openclaw-workclaw-cron/index.d.ts +1 -0
  396. package/dist/src/tools/openclaw-workclaw-cron/index.d.ts.map +1 -0
  397. package/dist/src/tools/openclaw-workclaw-cron/src/add/params.d.ts +3 -7
  398. package/dist/src/tools/openclaw-workclaw-cron/src/add/params.d.ts.map +1 -0
  399. package/dist/src/tools/openclaw-workclaw-cron/src/add/sync.d.ts +3 -7
  400. package/dist/src/tools/openclaw-workclaw-cron/src/add/sync.d.ts.map +1 -0
  401. package/dist/src/tools/openclaw-workclaw-cron/src/disable/params.d.ts +2 -7
  402. package/dist/src/tools/openclaw-workclaw-cron/src/disable/params.d.ts.map +1 -0
  403. package/dist/src/tools/openclaw-workclaw-cron/src/disable/sync.d.ts +2 -7
  404. package/dist/src/tools/openclaw-workclaw-cron/src/disable/sync.d.ts.map +1 -0
  405. package/dist/src/tools/openclaw-workclaw-cron/src/enable/params.d.ts +2 -7
  406. package/dist/src/tools/openclaw-workclaw-cron/src/enable/params.d.ts.map +1 -0
  407. package/dist/src/tools/openclaw-workclaw-cron/src/enable/sync.d.ts +2 -7
  408. package/dist/src/tools/openclaw-workclaw-cron/src/enable/sync.d.ts.map +1 -0
  409. package/dist/src/tools/openclaw-workclaw-cron/src/notify/sync.d.ts +2 -9
  410. package/dist/src/tools/openclaw-workclaw-cron/src/notify/sync.d.ts.map +1 -0
  411. package/dist/src/tools/openclaw-workclaw-cron/src/remove/params.d.ts +2 -7
  412. package/dist/src/tools/openclaw-workclaw-cron/src/remove/params.d.ts.map +1 -0
  413. package/dist/src/tools/openclaw-workclaw-cron/src/remove/sync.d.ts +2 -7
  414. package/dist/src/tools/openclaw-workclaw-cron/src/remove/sync.d.ts.map +1 -0
  415. package/dist/src/tools/openclaw-workclaw-cron/src/update/params.d.ts +2 -7
  416. package/dist/src/tools/openclaw-workclaw-cron/src/update/params.d.ts.map +1 -0
  417. package/dist/src/tools/openclaw-workclaw-cron/src/update/sync.d.ts +2 -7
  418. package/dist/src/tools/openclaw-workclaw-cron/src/update/sync.d.ts.map +1 -0
  419. package/dist/src/tools/openclaw-workclaw-cron/types/index.d.ts +2 -1
  420. package/dist/src/tools/openclaw-workclaw-cron/types/index.d.ts.map +1 -0
  421. package/dist/src/tools/openclaw-workclaw-cron/utils/index.d.ts +1 -0
  422. package/dist/src/tools/openclaw-workclaw-cron/utils/index.d.ts.map +1 -0
  423. package/dist/src/tools/openclaw-workclaw-cron/utils/tool-context.d.ts +10 -0
  424. package/dist/src/tools/openclaw-workclaw-cron/utils/tool-context.d.ts.map +1 -0
  425. package/dist/src/tools/openclaw-workclaw-system/index.d.ts +1 -0
  426. package/dist/src/tools/openclaw-workclaw-system/index.d.ts.map +1 -0
  427. package/dist/src/tools/openclaw-workclaw-system/src/get/index.d.ts +2 -4
  428. package/dist/src/tools/openclaw-workclaw-system/src/get/index.d.ts.map +1 -0
  429. package/dist/src/tools/openclaw-workclaw-system/src/token/index.d.ts +2 -4
  430. package/dist/src/tools/openclaw-workclaw-system/src/token/index.d.ts.map +1 -0
  431. package/dist/src/types/account.d.ts +15 -0
  432. package/dist/src/types/account.d.ts.map +1 -0
  433. package/dist/src/{types.d.ts → types/config.d.ts} +4 -16
  434. package/dist/src/types/config.d.ts.map +1 -0
  435. package/dist/src/types/index.d.ts +4 -0
  436. package/dist/src/types/index.d.ts.map +1 -0
  437. package/dist/src/types/system.d.ts +17 -0
  438. package/dist/src/types/system.d.ts.map +1 -0
  439. package/dist/src/utils/content.d.ts +6 -5
  440. package/dist/src/utils/content.d.ts.map +1 -0
  441. package/openclaw.plugin.json +45 -0
  442. package/package.json +71 -45
  443. package/skills/openclaw-workclaw-cron/SKILL.md +6 -3
  444. package/api.ts +0 -3
  445. package/dist/src/accounts.js +0 -279
  446. package/dist/src/api/accounts-api.js +0 -130
  447. package/dist/src/api/prompts-api.js +0 -103
  448. package/dist/src/api/session-api.js +0 -207
  449. package/dist/src/api/skills-api.js +0 -64
  450. package/dist/src/api/workspace.js +0 -30
  451. package/dist/src/channel.js +0 -199
  452. package/dist/src/config-schema.js +0 -56
  453. package/dist/src/connection/workclaw-client.js +0 -351
  454. package/dist/src/gateway/agent-handlers.js +0 -433
  455. package/dist/src/gateway/config-writer.js +0 -302
  456. package/dist/src/gateway/cron-tasks-handler.js +0 -188
  457. package/dist/src/gateway/message-context.js +0 -509
  458. package/dist/src/gateway/message-dispatcher.js +0 -572
  459. package/dist/src/gateway/reconnect.js +0 -210
  460. package/dist/src/gateway/skills-handler.js +0 -615
  461. package/dist/src/gateway/skills-list-handler.js +0 -233
  462. package/dist/src/gateway/tools-list-handler.js +0 -101
  463. package/dist/src/gateway/workclaw-gateway.js +0 -237
  464. package/dist/src/media/upload.js +0 -125
  465. package/dist/src/outbound/index.js +0 -123
  466. package/dist/src/outbound/workclaw-sender.js +0 -95
  467. package/dist/src/send.js +0 -1
  468. package/dist/src/setup-api.js +0 -3
  469. package/dist/src/setup-core.js +0 -13
  470. package/dist/src/setup-surface.js +0 -363
  471. package/dist/src/tools/openclaw-workclaw-cron/api/index.js +0 -209
  472. package/dist/src/tools/openclaw-workclaw-cron/index.js +0 -33
  473. package/dist/src/tools/openclaw-workclaw-cron/src/add/params.js +0 -152
  474. package/dist/src/tools/openclaw-workclaw-cron/src/add/sync.js +0 -162
  475. package/dist/src/tools/openclaw-workclaw-cron/src/disable/params.js +0 -80
  476. package/dist/src/tools/openclaw-workclaw-cron/src/disable/sync.js +0 -107
  477. package/dist/src/tools/openclaw-workclaw-cron/src/enable/params.js +0 -80
  478. package/dist/src/tools/openclaw-workclaw-cron/src/enable/sync.js +0 -107
  479. package/dist/src/tools/openclaw-workclaw-cron/src/notify/sync.js +0 -127
  480. package/dist/src/tools/openclaw-workclaw-cron/src/remove/params.js +0 -87
  481. package/dist/src/tools/openclaw-workclaw-cron/src/remove/sync.js +0 -107
  482. package/dist/src/tools/openclaw-workclaw-cron/src/update/params.js +0 -164
  483. package/dist/src/tools/openclaw-workclaw-cron/src/update/sync.js +0 -135
  484. package/dist/src/tools/openclaw-workclaw-cron/types/index.js +0 -4
  485. package/dist/src/tools/openclaw-workclaw-cron/utils/index.js +0 -122
  486. package/dist/src/tools/openclaw-workclaw-system/index.js +0 -15
  487. package/dist/src/tools/openclaw-workclaw-system/src/get/index.js +0 -64
  488. package/dist/src/tools/openclaw-workclaw-system/src/token/index.js +0 -78
  489. package/dist/src/types.js +0 -1
  490. package/dist/src/utils/content.js +0 -38
  491. package/index.ts +0 -326
  492. package/setup-entry.ts +0 -13
  493. package/src/accounts.ts +0 -360
  494. package/src/api/accounts-api.ts +0 -156
  495. package/src/api/prompts-api.ts +0 -122
  496. package/src/api/session-api.ts +0 -246
  497. package/src/api/skills-api.ts +0 -74
  498. package/src/api/workspace.ts +0 -45
  499. package/src/channel.ts +0 -226
  500. package/src/config-schema.ts +0 -62
  501. package/src/connection/workclaw-client.ts +0 -618
  502. package/src/gateway/agent-handlers.ts +0 -551
  503. package/src/gateway/config-writer.ts +0 -378
  504. package/src/gateway/cron-tasks-handler.ts +0 -230
  505. package/src/gateway/message-context.ts +0 -645
  506. package/src/gateway/message-dispatcher.ts +0 -688
  507. package/src/gateway/reconnect.ts +0 -260
  508. package/src/gateway/skills-handler.ts +0 -805
  509. package/src/gateway/skills-list-handler.ts +0 -332
  510. package/src/gateway/tools-list-handler.ts +0 -161
  511. package/src/gateway/workclaw-gateway.ts +0 -305
  512. package/src/media/upload.ts +0 -168
  513. package/src/outbound/index.ts +0 -191
  514. package/src/outbound/workclaw-sender.ts +0 -161
  515. package/src/runtime.ts +0 -520
  516. package/src/secret-contract-api.ts +0 -4
  517. package/src/send.ts +0 -1
  518. package/src/setup-api.ts +0 -3
  519. package/src/setup-core.ts +0 -25
  520. package/src/setup-surface.ts +0 -499
  521. package/src/tools/openclaw-workclaw-cron/api/index.ts +0 -326
  522. package/src/tools/openclaw-workclaw-cron/index.ts +0 -39
  523. package/src/tools/openclaw-workclaw-cron/src/add/params.ts +0 -177
  524. package/src/tools/openclaw-workclaw-cron/src/add/sync.ts +0 -188
  525. package/src/tools/openclaw-workclaw-cron/src/disable/params.ts +0 -100
  526. package/src/tools/openclaw-workclaw-cron/src/disable/sync.ts +0 -127
  527. package/src/tools/openclaw-workclaw-cron/src/enable/params.ts +0 -100
  528. package/src/tools/openclaw-workclaw-cron/src/enable/sync.ts +0 -127
  529. package/src/tools/openclaw-workclaw-cron/src/notify/sync.ts +0 -148
  530. package/src/tools/openclaw-workclaw-cron/src/remove/params.ts +0 -109
  531. package/src/tools/openclaw-workclaw-cron/src/remove/sync.ts +0 -127
  532. package/src/tools/openclaw-workclaw-cron/src/update/params.ts +0 -195
  533. package/src/tools/openclaw-workclaw-cron/src/update/sync.ts +0 -161
  534. package/src/tools/openclaw-workclaw-cron/types/index.ts +0 -55
  535. package/src/tools/openclaw-workclaw-cron/utils/index.ts +0 -141
  536. package/src/tools/openclaw-workclaw-system/index.ts +0 -17
  537. package/src/tools/openclaw-workclaw-system/src/get/index.ts +0 -77
  538. package/src/tools/openclaw-workclaw-system/src/token/index.ts +0 -93
  539. package/src/types.ts +0 -52
  540. package/src/utils/content.ts +0 -40
  541. package/tsconfig.json +0 -34
@@ -0,0 +1,519 @@
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 logger from "../logging.js";
48
+ import { handleAgentDeleted, handleAgentUpdated, handleAgentCreated } from "./agent-handlers.js";
49
+ import { saveOpenConversationId, initWorkclawAgent } from "./config-writer.js";
50
+ import { parseWorkClawMessage, buildInboundContext } from "./message-context.js";
51
+ import { handleSkillsEvent } from "./skills-handler.js";
52
+ import { handleSkillsListEvent as handleSkillsListEvent$1 } from "./skills-list-handler.js";
53
+ import { handleToolsListEvent as handleToolsListEvent$1 } from "./tools-list-handler.js";
54
+ function logError(log, context, err) {
55
+ const errAny = err;
56
+ const stack = typeof errAny?.stack === "string" ? `
57
+ 堆栈: ${errAny.stack}` : "";
58
+ logger.error(`调度器 ${context}: ${String(err)}${stack}`);
59
+ }
60
+ async function handlePing(ctx, result) {
61
+ const { accountId, log } = ctx;
62
+ const ws = getWorkclawWsConnection(accountId);
63
+ if (!ws)
64
+ return;
65
+ try {
66
+ const pongResponse = {
67
+ code: 200,
68
+ message: "pong",
69
+ metadata: { contentType: "application/json" },
70
+ data: JSON.stringify(result.pongData)
71
+ };
72
+ ws.send(JSON.stringify(pongResponse));
73
+ logger.info(`收到心跳,回复 pong`);
74
+ } catch (err) {
75
+ logError(log, "发送 pong 失败", err);
76
+ }
77
+ }
78
+ async function handleDisconnect(ctx) {
79
+ const { accountId, log, scheduleReconnect } = ctx;
80
+ const ws = getWorkclawWsConnection(accountId);
81
+ if (ws) {
82
+ try {
83
+ ws.close();
84
+ logger.info(`因断开连接命令关闭 WebSocket`);
85
+ } catch (err) {
86
+ logError(log, "关闭 WebSocket 失败", err);
87
+ }
88
+ } else {
89
+ logger.info(`WebSocket 已清除,触发重连...`);
90
+ scheduleReconnect();
91
+ }
92
+ }
93
+ async function handleAgentEvent(ctx, result) {
94
+ const { cfg, log, baseConfig, accountId } = ctx;
95
+ const eventData = result.eventData;
96
+ if (!eventData) {
97
+ logger.warn(`收到 ${result.type} 事件但无数据`);
98
+ return;
99
+ }
100
+ const agentId = String(eventData.id || "");
101
+ const userId = String(eventData.futureId || "");
102
+ if (!agentId) {
103
+ logger.warn(`收到 ${result.type} 事件但缺少智能体 ID`);
104
+ return;
105
+ }
106
+ logger.info(`处理 ${result.type} 事件: 智能体 ${agentId}, 用户ID: ${userId}`);
107
+ const accountData = {
108
+ agentId,
109
+ userId,
110
+ nickName: eventData.nickName,
111
+ phone: eventData.phone,
112
+ status: eventData.status,
113
+ introduction: eventData.introduction,
114
+ name: eventData.name,
115
+ tip: eventData.tip,
116
+ characterSettings: eventData.characterSettings,
117
+ personFeatures: eventData.personFeatures,
118
+ workFeatures: eventData.workFeatures,
119
+ learningFeatures: eventData.learningFeatures,
120
+ socializeFeatures: eventData.socializeFeatures,
121
+ job: eventData.job,
122
+ city: eventData.city
123
+ };
124
+ switch (result.type) {
125
+ case "agent_created":
126
+ await handleAgentCreated(accountData, cfg, log);
127
+ handleAgentCreatedMessage(baseConfig, agentId, accountId);
128
+ break;
129
+ case "agent_updated":
130
+ await handleAgentUpdated(accountData, cfg, log);
131
+ break;
132
+ case "agent_deleted":
133
+ await handleAgentDeleted(accountData, cfg, log);
134
+ break;
135
+ }
136
+ }
137
+ async function handleSkillsProcessingEvent(ctx, result) {
138
+ const { accountId, baseConfig, log } = ctx;
139
+ if (!result.eventData)
140
+ return;
141
+ try {
142
+ const connConfig = {
143
+ baseUrl: baseConfig.baseUrl || "",
144
+ websocketUrl: baseConfig.websocketUrl,
145
+ appKey: baseConfig.appKey,
146
+ appSecret: baseConfig.appSecret,
147
+ localIp: baseConfig.localIp,
148
+ allowInsecureTls: baseConfig.allowInsecureTls,
149
+ requestTimeout: baseConfig.requestTimeout
150
+ };
151
+ const tokenCacheKey = baseConfig.appKey || accountId;
152
+ const token = await getWorkclawAccessToken(tokenCacheKey, connConfig);
153
+ await handleSkillsEvent(result.eventData, token, connConfig.baseUrl, connConfig.appKey || accountId, log);
154
+ } catch (err) {
155
+ logError(log, "handleSkillsEvent failed", err);
156
+ }
157
+ }
158
+ async function handleToolsListEvent(ctx, result) {
159
+ const { accountId, baseConfig, log } = ctx;
160
+ if (!result.eventData)
161
+ return;
162
+ try {
163
+ const connConfig = {
164
+ baseUrl: baseConfig.baseUrl || "",
165
+ websocketUrl: baseConfig.websocketUrl,
166
+ appKey: baseConfig.appKey,
167
+ appSecret: baseConfig.appSecret,
168
+ localIp: baseConfig.localIp,
169
+ allowInsecureTls: baseConfig.allowInsecureTls,
170
+ requestTimeout: baseConfig.requestTimeout
171
+ };
172
+ const tokenCacheKey = baseConfig.appKey || accountId;
173
+ const token = await getWorkclawAccessToken(tokenCacheKey, connConfig);
174
+ await handleToolsListEvent$1(result.eventData, connConfig.baseUrl, token, log);
175
+ } catch (err) {
176
+ logError(log, "handleToolsListEvent failed", err);
177
+ }
178
+ }
179
+ async function handleSkillsListEvent(ctx, result) {
180
+ const { accountId, baseConfig, log } = ctx;
181
+ if (!result.eventData)
182
+ return;
183
+ try {
184
+ const connConfig = {
185
+ baseUrl: baseConfig.baseUrl || "",
186
+ websocketUrl: baseConfig.websocketUrl,
187
+ appKey: baseConfig.appKey,
188
+ appSecret: baseConfig.appSecret,
189
+ localIp: baseConfig.localIp,
190
+ allowInsecureTls: baseConfig.allowInsecureTls,
191
+ requestTimeout: baseConfig.requestTimeout
192
+ };
193
+ const tokenCacheKey = baseConfig.appKey || accountId;
194
+ const token = await getWorkclawAccessToken(tokenCacheKey, connConfig);
195
+ await handleSkillsListEvent$1(result.eventData, connConfig.baseUrl, token, log);
196
+ } catch (err) {
197
+ logError(log, "handleSkillsListEvent failed", err);
198
+ }
199
+ }
200
+ async function handleInitAgentEvent(ctx, result) {
201
+ const { accountId, cfg, baseConfig, log } = ctx;
202
+ const initStartedAt = Date.now();
203
+ const eventData = result.eventData;
204
+ if (!eventData) {
205
+ logger.warn(`收到 init_agent 但无数据`);
206
+ return;
207
+ }
208
+ logger.info(
209
+ `初始化智能体: 账户ID=${accountId}, 数据类型=${typeof eventData}, 预览=${JSON.stringify(eventData).slice(0, 200)}`
210
+ );
211
+ const connConfig = {
212
+ baseUrl: baseConfig.baseUrl || "",
213
+ websocketUrl: baseConfig.websocketUrl,
214
+ appKey: baseConfig.appKey,
215
+ appSecret: baseConfig.appSecret,
216
+ localIp: baseConfig.localIp,
217
+ allowInsecureTls: baseConfig.allowInsecureTls,
218
+ requestTimeout: baseConfig.requestTimeout
219
+ };
220
+ try {
221
+ const tokenCacheKey = baseConfig.appKey || accountId;
222
+ const { baseUrl, apiKey } = await getWorkclawModelConfigByAppKey(tokenCacheKey, connConfig);
223
+ const maskedKey = apiKey ? `${String(apiKey).slice(0, 6)}...(${String(apiKey).length})` : "缺失";
224
+ logger.info(`初始化智能体: 模型配置获取成功 baseUrl=${baseUrl} apiKey=${maskedKey}`);
225
+ const agentId = String(eventData?.id || eventData?.agentId || "");
226
+ const userId = String(eventData?.futureId || eventData?.userId || "");
227
+ await initWorkclawAgent({ baseUrl, apiKey, agentId, userId, accountId: "default" }, cfg, log);
228
+ logger.info(`初始化智能体: 配置已保存, 耗时=${Date.now() - initStartedAt}ms`);
229
+ } catch (err) {
230
+ logError(log, "初始化智能体失败", err);
231
+ }
232
+ logger.info(`初始化智能体: 处理完成, 耗时=${Date.now() - initStartedAt}ms`);
233
+ }
234
+ async function handleCronTaskEvent(ctx, result) {
235
+ const { accountId, baseConfig, log } = ctx;
236
+ if (!result.eventData)
237
+ return;
238
+ try {
239
+ const { handleCronTaskEvent: handleCronTaskEvent2 } = await import("./cron-tasks-handler.js");
240
+ const connConfig = {
241
+ baseUrl: baseConfig.baseUrl || "",
242
+ websocketUrl: baseConfig.websocketUrl,
243
+ appKey: baseConfig.appKey,
244
+ appSecret: baseConfig.appSecret,
245
+ localIp: baseConfig.localIp,
246
+ allowInsecureTls: baseConfig.allowInsecureTls,
247
+ requestTimeout: baseConfig.requestTimeout
248
+ };
249
+ const tokenCacheKey = baseConfig.appKey || accountId;
250
+ const token = await getWorkclawAccessToken(tokenCacheKey, connConfig);
251
+ await handleCronTaskEvent2(result.eventData, token, connConfig.baseUrl, connConfig.appKey || accountId, log);
252
+ } catch (err) {
253
+ logError(log, "handleCronTaskEvent failed", err);
254
+ }
255
+ }
256
+ async function handleAgentMessage(ctx, data, result) {
257
+ const { accountId, account, cfg, accountConfig, log } = ctx;
258
+ const { message } = result;
259
+ if (!message)
260
+ return;
261
+ const { text, userId, openConversationId, messageId: parsedMessageId, taskId, agentId: msgAgentId } = message;
262
+ let messageAccountId = accountId;
263
+ let messageAccount = account;
264
+ if (userId && msgAgentId) {
265
+ const resolvedAccountId = resolveAccountByUserIdAndAgentId(cfg, String(userId), String(msgAgentId));
266
+ if (resolvedAccountId) {
267
+ const resolved = resolveWorkclawAccountWithCache({ cfg, accountId: resolvedAccountId });
268
+ messageAccountId = resolvedAccountId;
269
+ messageAccount = resolved;
270
+ logger.info(`从消息中解析账户 ${resolvedAccountId} (userId=${userId}, agentId=${msgAgentId})`);
271
+ } else if (String(msgAgentId) !== String(accountConfig.agentId)) {
272
+ logger.warn(`未找到账户: userId=${userId}, agentId=${msgAgentId}, 忽略`);
273
+ return;
274
+ }
275
+ }
276
+ const resolvedAccountConfig = messageAccount.config;
277
+ const msgAgentIdResolved = msgAgentId ?? accountConfig.agentId;
278
+ if (openConversationId && openConversationId !== resolvedAccountConfig.openConversationId) {
279
+ try {
280
+ await saveOpenConversationId(messageAccountId, userId, openConversationId, cfg, log);
281
+ logger.info(`已保存 openConversationId ${openConversationId} 到账户 ${messageAccountId}`);
282
+ } catch (err) {
283
+ logError(log, "保存 openConversationId 失败", err);
284
+ }
285
+ }
286
+ const resolvedOpenConversationId = openConversationId || resolvedAccountConfig.openConversationId || "";
287
+ const to = userId;
288
+ const bodyText = text || data;
289
+ if (!bodyText) {
290
+ logger.warn(`消息体为空,忽略`);
291
+ return;
292
+ }
293
+ const bindings = cfg?.bindings ?? [];
294
+ let targetAgentId = "default";
295
+ const matchedBinding = bindings.find((binding) => {
296
+ const match = binding?.match;
297
+ if (!match || match.channel !== "openclaw-workclaw")
298
+ return false;
299
+ return match.accountId === messageAccountId || match.accountId === "*";
300
+ });
301
+ if (matchedBinding) {
302
+ targetAgentId = matchedBinding.agentId;
303
+ logger.info(`通过绑定路由到智能体 ${targetAgentId} (账户: ${messageAccountId})`);
304
+ }
305
+ if (!targetAgentId) {
306
+ logger.warn(`缺少目标,忽略`);
307
+ return;
308
+ }
309
+ const attachments = message.attachments;
310
+ const inboundMessage = {
311
+ text: bodyText,
312
+ to,
313
+ from: userId,
314
+ chatType: "dm",
315
+ messageId: parsedMessageId,
316
+ rawPayload: data,
317
+ timestamp: Date.now(),
318
+ attachments
319
+ };
320
+ logger.info(`处理智能体消息: 文本=${bodyText?.substring(0, 50)}, 附件=${attachments?.length || 0}, 原始数据=${data.substring(0, 300)}`);
321
+ const pluginRuntime = getWorkclawRuntime();
322
+ const textForCommandCheck = bodyText?.replace(/^\[引用[^\]]*\]\s*/, "").trim() || "";
323
+ const resolvedCommand = maybeResolveTextAlias(textForCommandCheck, messageAccount.config);
324
+ const isFrameworkCommand = resolvedCommand !== null;
325
+ if (isFrameworkCommand) {
326
+ logger.info(`[投递] 检测到框架命令: ${bodyText}, 将设置 CommandSource=native`);
327
+ }
328
+ const finalized = await buildInboundContext(
329
+ inboundMessage,
330
+ messageAccountId,
331
+ messageAccount.config,
332
+ targetAgentId,
333
+ pluginRuntime,
334
+ true
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
+ logger.info(`[投递] 已设置 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
+ taskId
364
+ });
365
+ logger.info(`[智能体] 智能体运行开始: runId=${runId} target=${targetAgentId}`);
366
+ }
367
+ },
368
+ dispatcherOptions: {
369
+ deliver: async (payload, info) => {
370
+ const resolvedReplyToId = payload?.replyToId || parsedMessageId;
371
+ const textOut = String(payload.text ?? payload.body ?? "");
372
+ const target = to || String(payload.to ?? "");
373
+ const kind = info?.kind;
374
+ if (!target) {
375
+ logger.warn(`[投递] 跳过: 无目标`);
376
+ return;
377
+ }
378
+ if (kind === "tool") {
379
+ return;
380
+ }
381
+ if (!textOut.trim()) {
382
+ logger.warn(`[投递] 跳过: 文本为空 (kind=${kind})`);
383
+ return;
384
+ }
385
+ try {
386
+ const result2 = await sendMessageWorkclaw({
387
+ cfg,
388
+ to: target,
389
+ text: textOut,
390
+ accountId: messageAccountId,
391
+ openConversationId: resolvedOpenConversationId,
392
+ agentId: msgAgentIdResolved,
393
+ replyToMessageId: resolvedReplyToId,
394
+ last: false,
395
+ source: "deliver"
396
+ });
397
+ textDelivered = true;
398
+ logger.info(`[投递] 已发送 "${textOut.substring(0, 80)}" (last=false) kind=${kind} msgId=${result2.messageId}`);
399
+ } catch (err) {
400
+ logError(log, "回复发送失败", err);
401
+ throw err;
402
+ }
403
+ }
404
+ }
405
+ });
406
+ if (!textDelivered && bodyText?.startsWith("/")) {
407
+ logger.info(`[投递] 命令 ${bodyText} 执行成功但无文本回复,发送确认`);
408
+ try {
409
+ await sendMessageWorkclaw({
410
+ cfg,
411
+ to: to || String(userId || ""),
412
+ text: `${bodyText} 已执行`,
413
+ accountId: messageAccountId,
414
+ openConversationId: resolvedOpenConversationId,
415
+ agentId: msgAgentIdResolved,
416
+ replyToMessageId: parsedMessageId,
417
+ last: false,
418
+ source: "deliver"
419
+ });
420
+ } catch (err) {
421
+ logError(log, "命令确认发送失败", err);
422
+ }
423
+ }
424
+ logger.info(`[投递] 发送 last=true 结束信号`);
425
+ try {
426
+ await sendMessageWorkclaw({
427
+ cfg,
428
+ to: to || String(userId || ""),
429
+ text: "",
430
+ accountId: messageAccountId,
431
+ openConversationId: resolvedOpenConversationId,
432
+ agentId: msgAgentIdResolved,
433
+ replyToMessageId: parsedMessageId,
434
+ last: true,
435
+ source: "deliver"
436
+ });
437
+ } catch (err) {
438
+ const errStr = String(err);
439
+ if (errStr.includes("content can't be empty")) {
440
+ logger.info(`[投递] last=true 已跳过(不支持空内容)`);
441
+ } else {
442
+ logError(log, "发送 last=true 信号失败", err);
443
+ }
444
+ }
445
+ }
446
+ async function dispatchWorkclawMessage(data, ctx) {
447
+ const { log } = ctx;
448
+ const result = parseWorkClawMessage(data);
449
+ if (!result) {
450
+ logger.warn(`解析消息失败`);
451
+ return;
452
+ }
453
+ logger.info(`消息类型=${result.type}`);
454
+ switch (result.type) {
455
+ case "ping":
456
+ await handlePing(ctx, result);
457
+ return;
458
+ case "disconnect":
459
+ await handleDisconnect(ctx);
460
+ return;
461
+ case "agent_created":
462
+ case "agent_updated":
463
+ case "agent_deleted":
464
+ await handleAgentEvent(ctx, result);
465
+ return;
466
+ case "skills_event":
467
+ await handleSkillsProcessingEvent(ctx, result);
468
+ return;
469
+ case "tools_list":
470
+ await handleToolsListEvent(ctx, result);
471
+ return;
472
+ case "skills_list":
473
+ await handleSkillsListEvent(ctx, result);
474
+ return;
475
+ case "init_agent":
476
+ await handleInitAgentEvent(ctx, result);
477
+ return;
478
+ case "cron_task_event":
479
+ await handleAgentMessage(ctx, data, result);
480
+ await handleCronTaskEvent(ctx, result);
481
+ return;
482
+ case "ignored":
483
+ logger.info(`忽略消息: 类型=${result.type}`);
484
+ return;
485
+ case "agent_message":
486
+ await handleAgentMessage(ctx, data, result);
487
+ return;
488
+ default:
489
+ logger.info(`未知消息类型: ${result.type}, 忽略`);
490
+ }
491
+ }
492
+ async function handleAgentCreatedMessage(baseConfig, agentId, accountId, log) {
493
+ try {
494
+ const base = (baseConfig.baseUrl || "").replace(/\/$/, "");
495
+ const callbackUrl = `${base}/open-apis/instance/agent-created/status`;
496
+ const tokenCacheKey = baseConfig.appKey || accountId;
497
+ const callbackData = {
498
+ agentId,
499
+ success: true
500
+ };
501
+ logger.info(`[智能体创建] 调用回调 API: ${callbackUrl}`);
502
+ const token = await getWorkclawAccessToken(tokenCacheKey, baseConfig);
503
+ const response = await request(callbackUrl, {
504
+ method: "POST",
505
+ headers: {
506
+ "Content-Type": "application/json",
507
+ "Authorization": `Bearer ${token}`
508
+ },
509
+ body: JSON.stringify(callbackData)
510
+ });
511
+ const responseBody = await response.body.text();
512
+ logger.info(`[智能体创建] 回调 API 响应: 状态=${response.statusCode}, 响应体=${responseBody}`);
513
+ } catch (callbackErr) {
514
+ logger.error(`[智能体创建] 回调 API 失败: ${String(callbackErr)}`);
515
+ }
516
+ }
517
+ export {
518
+ dispatchWorkclawMessage
519
+ };