@workclaw/openclaw-workclaw 1.0.201 → 1.0.331

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 (482) 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 +158 -0
  300. package/dist/packages/plugin/src/gateway/cron-tasks-handler.js +184 -0
  301. package/dist/packages/plugin/src/gateway/message-context.js +410 -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 +244 -0
  308. package/dist/packages/plugin/src/logging.js +68 -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/setup-entry.d.ts +2 -1
  330. package/dist/setup-entry.d.ts.map +1 -0
  331. package/dist/setup-entry.js +14 -11
  332. package/dist/src/accounts.d.ts +20 -19
  333. package/dist/src/accounts.d.ts.map +1 -0
  334. package/dist/src/api/accounts-api.d.ts +2 -1
  335. package/dist/src/api/accounts-api.d.ts.map +1 -0
  336. package/dist/src/api/prompts-api.d.ts +2 -1
  337. package/dist/src/api/prompts-api.d.ts.map +1 -0
  338. package/dist/src/api/session-api.d.ts +2 -1
  339. package/dist/src/api/session-api.d.ts.map +1 -0
  340. package/dist/src/api/skills-api.d.ts +2 -1
  341. package/dist/src/api/skills-api.d.ts.map +1 -0
  342. package/dist/src/api/workspace.d.ts +2 -1
  343. package/dist/src/api/workspace.d.ts.map +1 -0
  344. package/dist/src/channel.d.ts +3 -2
  345. package/dist/src/channel.d.ts.map +1 -0
  346. package/dist/src/config-schema.d.ts +1 -6
  347. package/dist/src/config-schema.d.ts.map +1 -0
  348. package/dist/src/connection/workclaw-client.d.ts +6 -4
  349. package/dist/src/connection/workclaw-client.d.ts.map +1 -0
  350. package/dist/src/gateway/agent-handlers.d.ts +4 -3
  351. package/dist/src/gateway/agent-handlers.d.ts.map +1 -0
  352. package/dist/src/gateway/config-writer.d.ts +32 -30
  353. package/dist/src/gateway/config-writer.d.ts.map +1 -0
  354. package/dist/src/gateway/cron-tasks-handler.d.ts +3 -1
  355. package/dist/src/gateway/cron-tasks-handler.d.ts.map +1 -0
  356. package/dist/src/gateway/message-context.d.ts +15 -17
  357. package/dist/src/gateway/message-context.d.ts.map +1 -0
  358. package/dist/src/gateway/message-dispatcher.d.ts +3 -4
  359. package/dist/src/gateway/message-dispatcher.d.ts.map +1 -0
  360. package/dist/src/gateway/reconnect.d.ts +6 -8
  361. package/dist/src/gateway/reconnect.d.ts.map +1 -0
  362. package/dist/src/gateway/skills-handler.d.ts +1 -0
  363. package/dist/src/gateway/skills-handler.d.ts.map +1 -0
  364. package/dist/src/gateway/skills-list-handler.d.ts +1 -0
  365. package/dist/src/gateway/skills-list-handler.d.ts.map +1 -0
  366. package/dist/src/gateway/tools-list-handler.d.ts +1 -0
  367. package/dist/src/gateway/tools-list-handler.d.ts.map +1 -0
  368. package/dist/src/gateway/workclaw-gateway.d.ts +2 -7
  369. package/dist/src/gateway/workclaw-gateway.d.ts.map +1 -0
  370. package/dist/src/logging.d.ts +55 -0
  371. package/dist/src/logging.d.ts.map +1 -0
  372. package/dist/src/media/upload.d.ts +1 -0
  373. package/dist/src/media/upload.d.ts.map +1 -0
  374. package/dist/src/outbound/index.d.ts +9 -6
  375. package/dist/src/outbound/index.d.ts.map +1 -0
  376. package/dist/src/outbound/workclaw-sender.d.ts +6 -4
  377. package/dist/src/outbound/workclaw-sender.d.ts.map +1 -0
  378. package/dist/src/runtime.d.ts +4 -17
  379. package/dist/src/runtime.d.ts.map +1 -0
  380. package/dist/src/runtime.js +324 -365
  381. package/dist/src/secret-contract-api.d.ts +1 -0
  382. package/dist/src/secret-contract-api.d.ts.map +1 -0
  383. package/dist/src/secret-contract-api.js +6 -3
  384. package/dist/src/send.d.ts +2 -1
  385. package/dist/src/send.d.ts.map +1 -0
  386. package/dist/src/setup-api.d.ts +4 -3
  387. package/dist/src/setup-api.d.ts.map +1 -0
  388. package/dist/src/setup-core.d.ts +2 -1
  389. package/dist/src/setup-core.d.ts.map +1 -0
  390. package/dist/src/setup-surface.d.ts +3 -2
  391. package/dist/src/setup-surface.d.ts.map +1 -0
  392. package/dist/src/tools/openclaw-workclaw-cron/api/index.d.ts +3 -4
  393. package/dist/src/tools/openclaw-workclaw-cron/api/index.d.ts.map +1 -0
  394. package/dist/src/tools/openclaw-workclaw-cron/index.d.ts +1 -0
  395. package/dist/src/tools/openclaw-workclaw-cron/index.d.ts.map +1 -0
  396. package/dist/src/tools/openclaw-workclaw-cron/src/add/params.d.ts +3 -7
  397. package/dist/src/tools/openclaw-workclaw-cron/src/add/params.d.ts.map +1 -0
  398. package/dist/src/tools/openclaw-workclaw-cron/src/add/sync.d.ts +3 -7
  399. package/dist/src/tools/openclaw-workclaw-cron/src/add/sync.d.ts.map +1 -0
  400. package/dist/src/tools/openclaw-workclaw-cron/src/disable/params.d.ts +2 -7
  401. package/dist/src/tools/openclaw-workclaw-cron/src/disable/params.d.ts.map +1 -0
  402. package/dist/src/tools/openclaw-workclaw-cron/src/disable/sync.d.ts +2 -7
  403. package/dist/src/tools/openclaw-workclaw-cron/src/disable/sync.d.ts.map +1 -0
  404. package/dist/src/tools/openclaw-workclaw-cron/src/enable/params.d.ts +2 -7
  405. package/dist/src/tools/openclaw-workclaw-cron/src/enable/params.d.ts.map +1 -0
  406. package/dist/src/tools/openclaw-workclaw-cron/src/enable/sync.d.ts +2 -7
  407. package/dist/src/tools/openclaw-workclaw-cron/src/enable/sync.d.ts.map +1 -0
  408. package/dist/src/tools/openclaw-workclaw-cron/src/notify/sync.d.ts +2 -9
  409. package/dist/src/tools/openclaw-workclaw-cron/src/notify/sync.d.ts.map +1 -0
  410. package/dist/src/tools/openclaw-workclaw-cron/src/remove/params.d.ts +2 -7
  411. package/dist/src/tools/openclaw-workclaw-cron/src/remove/params.d.ts.map +1 -0
  412. package/dist/src/tools/openclaw-workclaw-cron/src/remove/sync.d.ts +2 -7
  413. package/dist/src/tools/openclaw-workclaw-cron/src/remove/sync.d.ts.map +1 -0
  414. package/dist/src/tools/openclaw-workclaw-cron/src/update/params.d.ts +2 -7
  415. package/dist/src/tools/openclaw-workclaw-cron/src/update/params.d.ts.map +1 -0
  416. package/dist/src/tools/openclaw-workclaw-cron/src/update/sync.d.ts +2 -7
  417. package/dist/src/tools/openclaw-workclaw-cron/src/update/sync.d.ts.map +1 -0
  418. package/dist/src/tools/openclaw-workclaw-cron/types/index.d.ts +2 -1
  419. package/dist/src/tools/openclaw-workclaw-cron/types/index.d.ts.map +1 -0
  420. package/dist/src/tools/openclaw-workclaw-cron/utils/index.d.ts +1 -0
  421. package/dist/src/tools/openclaw-workclaw-cron/utils/index.d.ts.map +1 -0
  422. package/dist/src/tools/openclaw-workclaw-cron/utils/tool-context.d.ts +10 -0
  423. package/dist/src/tools/openclaw-workclaw-cron/utils/tool-context.d.ts.map +1 -0
  424. package/dist/src/tools/openclaw-workclaw-system/index.d.ts +1 -0
  425. package/dist/src/tools/openclaw-workclaw-system/index.d.ts.map +1 -0
  426. package/dist/src/tools/openclaw-workclaw-system/src/get/index.d.ts +2 -4
  427. package/dist/src/tools/openclaw-workclaw-system/src/get/index.d.ts.map +1 -0
  428. package/dist/src/tools/openclaw-workclaw-system/src/token/index.d.ts +2 -4
  429. package/dist/src/tools/openclaw-workclaw-system/src/token/index.d.ts.map +1 -0
  430. package/dist/src/types.d.ts +7 -7
  431. package/dist/src/types.d.ts.map +1 -0
  432. package/dist/src/utils/content.d.ts +6 -5
  433. package/dist/src/utils/content.d.ts.map +1 -0
  434. package/openclaw.plugin.json +45 -0
  435. package/package.json +71 -53
  436. package/skills/openclaw-workclaw-cron/SKILL.md +6 -3
  437. package/dist/src/accounts.js +0 -279
  438. package/dist/src/api/accounts-api.js +0 -130
  439. package/dist/src/api/prompts-api.js +0 -103
  440. package/dist/src/api/session-api.js +0 -207
  441. package/dist/src/api/skills-api.js +0 -64
  442. package/dist/src/api/workspace.js +0 -30
  443. package/dist/src/channel.js +0 -199
  444. package/dist/src/config-schema.js +0 -56
  445. package/dist/src/connection/workclaw-client.js +0 -351
  446. package/dist/src/gateway/agent-handlers.js +0 -433
  447. package/dist/src/gateway/config-writer.js +0 -302
  448. package/dist/src/gateway/cron-tasks-handler.js +0 -188
  449. package/dist/src/gateway/message-context.js +0 -509
  450. package/dist/src/gateway/message-dispatcher.js +0 -572
  451. package/dist/src/gateway/reconnect.js +0 -210
  452. package/dist/src/gateway/skills-handler.js +0 -615
  453. package/dist/src/gateway/skills-list-handler.js +0 -233
  454. package/dist/src/gateway/tools-list-handler.js +0 -101
  455. package/dist/src/gateway/workclaw-gateway.js +0 -237
  456. package/dist/src/media/upload.js +0 -125
  457. package/dist/src/outbound/index.js +0 -123
  458. package/dist/src/outbound/workclaw-sender.js +0 -95
  459. package/dist/src/send.js +0 -1
  460. package/dist/src/setup-api.js +0 -3
  461. package/dist/src/setup-core.js +0 -13
  462. package/dist/src/setup-surface.js +0 -363
  463. package/dist/src/tools/openclaw-workclaw-cron/api/index.js +0 -209
  464. package/dist/src/tools/openclaw-workclaw-cron/index.js +0 -33
  465. package/dist/src/tools/openclaw-workclaw-cron/src/add/params.js +0 -152
  466. package/dist/src/tools/openclaw-workclaw-cron/src/add/sync.js +0 -162
  467. package/dist/src/tools/openclaw-workclaw-cron/src/disable/params.js +0 -80
  468. package/dist/src/tools/openclaw-workclaw-cron/src/disable/sync.js +0 -107
  469. package/dist/src/tools/openclaw-workclaw-cron/src/enable/params.js +0 -80
  470. package/dist/src/tools/openclaw-workclaw-cron/src/enable/sync.js +0 -107
  471. package/dist/src/tools/openclaw-workclaw-cron/src/notify/sync.js +0 -127
  472. package/dist/src/tools/openclaw-workclaw-cron/src/remove/params.js +0 -87
  473. package/dist/src/tools/openclaw-workclaw-cron/src/remove/sync.js +0 -107
  474. package/dist/src/tools/openclaw-workclaw-cron/src/update/params.js +0 -164
  475. package/dist/src/tools/openclaw-workclaw-cron/src/update/sync.js +0 -135
  476. package/dist/src/tools/openclaw-workclaw-cron/types/index.js +0 -4
  477. package/dist/src/tools/openclaw-workclaw-cron/utils/index.js +0 -122
  478. package/dist/src/tools/openclaw-workclaw-system/index.js +0 -15
  479. package/dist/src/tools/openclaw-workclaw-system/src/get/index.js +0 -64
  480. package/dist/src/tools/openclaw-workclaw-system/src/token/index.js +0 -78
  481. package/dist/src/types.js +0 -1
  482. package/dist/src/utils/content.js +0 -38
package/package.json CHANGED
@@ -1,53 +1,71 @@
1
- {
2
- "name": "@workclaw/openclaw-workclaw",
3
- "type": "module",
4
- "version": "1.0.201",
5
- "description": "openclaw-workclaw channel plugin",
6
- "main": "./dist/index.js",
7
- "types": "./dist/index.d.ts",
8
- "publishConfig": {
9
- "access": "public"
10
- },
11
- "files": [
12
- "dist",
13
- "openclaw.plugin.json",
14
- "skills",
15
- "templates"
16
- ],
17
- "scripts": {
18
- "build": "tsc"
19
- },
20
- "dependencies": {
21
- "undici": "^7.16.0",
22
- "ws": "^8.19.0",
23
- "zod": "^4.3.6"
24
- },
25
- "openclaw": {
26
- "extensions": [
27
- "./dist/index.js"
28
- ],
29
- "setupEntry": "./dist/setup-entry.js",
30
- "channel": {
31
- "id": "openclaw-workclaw",
32
- "label": "openclaw-workclaw",
33
- "selectionLabel": "智小途",
34
- "docsPath": "/channels/openclaw-workclaw",
35
- "docsLabel": "openclaw-workclaw",
36
- "blurb": "智小途 企业通讯平台集成",
37
- "aliases": [
38
- "openclaw-workclaw"
39
- ],
40
- "order": 35,
41
- "quickstartAllowFrom": true
42
- },
43
- "compat": {
44
- "pluginApi": "2026.4.14",
45
- "minGatewayVersion": "2026.4.14"
46
- },
47
- "install": {
48
- "npmSpec": "@workclaw/openclaw-workclaw",
49
- "localPath": "extensions/openclaw-workclaw",
50
- "defaultChoice": "npm"
51
- }
52
- }
53
- }
1
+ {
2
+ "name": "@workclaw/openclaw-workclaw",
3
+ "type": "module",
4
+ "version": "1.0.331",
5
+ "description": "智小途企业通讯平台 OpenClaw 渠道插件",
6
+ "license": "MIT",
7
+ "keywords": [
8
+ "workclaw",
9
+ "openclaw",
10
+ "plugin",
11
+ "channel",
12
+ "智小途"
13
+ ],
14
+ "publishConfig": {
15
+ "access": "public"
16
+ },
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.js"
21
+ },
22
+ "./setup": {
23
+ "types": "./dist/setup-entry.d.ts",
24
+ "import": "./dist/setup-entry.js"
25
+ },
26
+ "./api": {
27
+ "types": "./dist/api.d.ts",
28
+ "import": "./dist/api.js"
29
+ }
30
+ },
31
+ "main": "./dist/index.js",
32
+ "types": "./dist/index.d.ts",
33
+ "files": [
34
+ "dist",
35
+ "openclaw.plugin.json",
36
+ "skills",
37
+ "templates"
38
+ ],
39
+ "engines": {
40
+ "node": ">=18.0.0"
41
+ },
42
+ "scripts": {
43
+ "build": "npm run typecheck && npm run lint && vite build",
44
+ "typecheck": "tsc --noEmit",
45
+ "lint": "eslint"
46
+ },
47
+ "dependencies": {
48
+ "undici": "^7.16.0",
49
+ "ws": "^8.19.0",
50
+ "zod": "^4.0.0"
51
+ },
52
+ "openclaw": {
53
+ "extensions": [
54
+ "./dist/index.js"
55
+ ],
56
+ "setupEntry": "./dist/setup-entry.js",
57
+ "compat": {
58
+ "pluginApi": "2026.5.6",
59
+ "minGatewayVersion": "2026.5.6"
60
+ },
61
+ "build": {
62
+ "openclawVersion": "2026.5.6",
63
+ "pluginSdkVersion": "2026.5.6"
64
+ },
65
+ "install": {
66
+ "npmSpec": "@workclaw/openclaw-workclaw",
67
+ "localPath": "extensions/openclaw-workclaw",
68
+ "defaultChoice": "npm"
69
+ }
70
+ }
71
+ }
@@ -39,7 +39,7 @@ always: true
39
39
 
40
40
  | 工具 | 说明 | 必填参数 |
41
41
  | -------------------------------------- | -------- | -------------------------- |
42
- | `openclaw-workclaw-cron-add-params` | 生成创建提醒参数 | `time`, `name`, `message` |
42
+ | `openclaw-workclaw-cron-add-params` | 生成创建提醒参数 | `time`, `name`, `message`, `taskId` |
43
43
  | `openclaw-workclaw-cron-remove-params`| 生成删除提醒参数 | `jobId` |
44
44
  | `openclaw-workclaw-cron-update-params`| 生成修改提醒参数 | `jobId`, `time`, `name`, `message` |
45
45
  | `openclaw-workclaw-cron-enable-params`| 生成启用提醒参数 | `jobId` |
@@ -49,7 +49,7 @@ always: true
49
49
 
50
50
  | 工具 | 说明 | 必填参数 |
51
51
  | ------------------------------------- | --------- | --------------------------------- |
52
- | `openclaw-workclaw-cron-add-sync` | 同步创建提醒到后端 | `jobId`, `name`, `kind`, `message` |
52
+ | `openclaw-workclaw-cron-add-sync` | 同步创建提醒到后端 | `jobId`, `name`, `kind`, `message`, `taskId` |
53
53
  | `openclaw-workclaw-cron-remove-sync` | 同步删除提醒到后端 | `jobId` |
54
54
  | `openclaw-workclaw-cron-update-sync` | 同步修改提醒到后端 | `jobId`, `name`, `kind`, `message` |
55
55
  | `openclaw-workclaw-cron-enable-sync` | 同步启用提醒到后端 | `jobId` |
@@ -79,6 +79,7 @@ always: true
79
79
  | `time` | ⏰ **时间(核心!)**,支持相对时间和 cron 表达式,工具会自动统一转换为 cron 表达式 | `"5m"` / `"0 8 * * *"` |
80
80
  | `name` | 任务名称 | `"喝水提醒"` |
81
81
  | `message` | 提醒内容 | `"该喝水了"` |
82
+ | `taskId` | 后端已建任务的标识 | `"12918841455332741"` |
82
83
 
83
84
  ### ⏰ 时间格式说明
84
85
 
@@ -129,7 +130,7 @@ always: true
129
130
  用户:"5分钟后提醒我喝水"
130
131
 
131
132
  步骤1:调用 add-params
132
- 调用:openclaw-workclaw-cron-add-params({ time: "5m", name: "喝水提醒", message: "该喝水了" })
133
+ 调用:openclaw-workclaw-cron-add-params({ time: "5m", name: "喝水提醒", message: "该喝水了", taskId: "12918841455332741" })
133
134
  返回:
134
135
  {
135
136
  cronParams: {
@@ -146,6 +147,7 @@ always: true
146
147
  },
147
148
  meta: {
148
149
  accountId: "<accountId>",
150
+ taskId: "12918841455332741",
149
151
  name: "喝水提醒",
150
152
  kind: "cron",
151
153
  expr: "2026-03-31T15:48:56.000+08:00",
@@ -161,6 +163,7 @@ always: true
161
163
  步骤3:从命令返回值中提取 jobId,调用后端同步
162
164
  调用:openclaw-workclaw-cron-add-sync({
163
165
  jobId: "7382945612345", // ← 从上一步返回值中提取 jobId 字段
166
+ taskId: meta.taskId,
164
167
  name: meta.name,
165
168
  kind: meta.kind,
166
169
  expr: meta.expr,
@@ -1,279 +0,0 @@
1
- import { DEFAULT_ACCOUNT_ID } from 'openclaw/plugin-sdk/account-id';
2
- import { getWorkclawLogger, getWorkclawConnectionConfig } from './runtime.js';
3
- // =============================================================================
4
- // In-memory lookup cache for (userId, agentId) → workspace-N accountId
5
- // Problem: OpenClaw doesn't support dashes in account IDs, agentId can be negative
6
- // Solution: workspace-N naming + in-memory Map for O(1) lookups
7
- // =============================================================================
8
- /**
9
- * Normalize account ID by trimming whitespace
10
- */
11
- export function normalizeAccountId(accountId) {
12
- return String(accountId ?? '').trim();
13
- }
14
- /**
15
- * Key format for the lookup map: "userId|agentId"
16
- */
17
- function makeLookupKey(userId, agentId) {
18
- return `${userId}|${agentId}`;
19
- }
20
- /**
21
- * In-memory map: lookupKey -> accountId
22
- */
23
- const lookupCache = new Map();
24
- /**
25
- * In-memory map: accountId -> { userId, agentId }
26
- */
27
- const accountIndex = new Map();
28
- /**
29
- * Next workspace number to allocate
30
- */
31
- let nextWorkspaceNum = 1;
32
- /**
33
- * Build the lookup cache from existing accounts in cfg.
34
- * Called once at gateway startup.
35
- */
36
- export function buildAccountMap(cfg) {
37
- lookupCache.clear();
38
- accountIndex.clear();
39
- nextWorkspaceNum = 1;
40
- const _WorkclawConfig = (cfg.channels?.['openclaw-workclaw'] || {});
41
- const accounts = _WorkclawConfig?.accounts;
42
- if (!accounts || typeof accounts !== 'object')
43
- return;
44
- for (const [accountId, accountCfg] of Object.entries(accounts)) {
45
- if (!accountCfg)
46
- continue;
47
- const userId = accountCfg.userId || _WorkclawConfig.userId;
48
- const agentId = accountCfg.agentId;
49
- if (!agentId)
50
- continue;
51
- // userId may not be present for config-defined accounts; only build
52
- // lookup if userId is available (dynamically created accounts have it)
53
- if (userId) {
54
- const key = makeLookupKey(String(userId), String(agentId));
55
- lookupCache.set(key, accountId);
56
- }
57
- accountIndex.set(accountId, { userId: String(userId ?? ''), agentId: String(agentId) });
58
- if (accountId.startsWith('workspace-')) {
59
- const num = Number.parseInt(accountId.slice(accountId.lastIndexOf('-') + 1), 10);
60
- if (!Number.isNaN(num) && num >= nextWorkspaceNum) {
61
- nextWorkspaceNum = num + 1;
62
- }
63
- }
64
- }
65
- // 默认账户允许直接使用顶层 userId/agentId,不要求必须存在 accounts.default
66
- if (!accountIndex.has(DEFAULT_ACCOUNT_ID) && _WorkclawConfig.userId && _WorkclawConfig.agentId) {
67
- const userId = String(_WorkclawConfig.userId);
68
- const agentId = String(_WorkclawConfig.agentId);
69
- const key = makeLookupKey(userId, agentId);
70
- lookupCache.set(key, DEFAULT_ACCOUNT_ID);
71
- accountIndex.set(DEFAULT_ACCOUNT_ID, { userId, agentId });
72
- }
73
- getWorkclawLogger().info(`[AccountManager] Built account map with ${lookupCache.size} entries, nextWorkspaceNum=${nextWorkspaceNum}`);
74
- }
75
- /**
76
- * Resolve accountId by userId + agentId.
77
- * First checks cache, then falls back to iteration.
78
- */
79
- export function resolveAccountByUserIdAndAgentId(cfg, userId, agentId) {
80
- const key = makeLookupKey(userId, agentId);
81
- if (lookupCache.has(key)) {
82
- return lookupCache.get(key);
83
- }
84
- const _WorkclawConfig = (cfg.channels?.['openclaw-workclaw'] || {});
85
- const accounts = _WorkclawConfig?.accounts;
86
- if (accounts && typeof accounts === 'object') {
87
- for (const [accountId, accountCfg] of Object.entries(accounts)) {
88
- if (!accountCfg)
89
- continue;
90
- const accountUserId = accountCfg.userId || _WorkclawConfig.userId;
91
- if (String(accountUserId) === userId && String(accountCfg.agentId) === agentId) {
92
- lookupCache.set(key, accountId);
93
- accountIndex.set(accountId, { userId, agentId });
94
- return accountId;
95
- }
96
- }
97
- }
98
- // 兼容默认账户直接写在顶层配置中的场景
99
- if (String(_WorkclawConfig.userId ?? '') === userId
100
- && String(_WorkclawConfig.agentId ?? '') === agentId) {
101
- lookupCache.set(key, DEFAULT_ACCOUNT_ID);
102
- accountIndex.set(DEFAULT_ACCOUNT_ID, { userId, agentId });
103
- return DEFAULT_ACCOUNT_ID;
104
- }
105
- return null;
106
- }
107
- /**
108
- * Allocate a new workspace-N accountId and register it in the map.
109
- */
110
- export function allocateWorkerAccountId(_cfg, userId, agentId) {
111
- const accountId = `workspace-${nextWorkspaceNum}`;
112
- nextWorkspaceNum++;
113
- const key = makeLookupKey(userId, agentId);
114
- lookupCache.set(key, accountId);
115
- accountIndex.set(accountId, { userId, agentId });
116
- getWorkclawLogger().info(`[AccountManager] Allocated accountId=${accountId} for userId=${userId} agentId=${agentId}`);
117
- return accountId;
118
- }
119
- /**
120
- * Refresh the cache when an account's userId or agentId changes.
121
- */
122
- export function refreshAccountCache(cfg) {
123
- buildAccountMap(cfg);
124
- }
125
- // =============================================================================
126
- // Account config resolution (pure functions, no in-memory state)
127
- // =============================================================================
128
- /**
129
- * List all configured account IDs from the accounts field.
130
- */
131
- function listConfiguredAccountIds(cfg) {
132
- const accounts = cfg.channels?.['openclaw-workclaw']?.accounts;
133
- if (!accounts || typeof accounts !== 'object') {
134
- return [];
135
- }
136
- return Object.keys(accounts).filter(Boolean);
137
- }
138
- /**
139
- * Check if plugin-level workclaw config exists (appKey + appSecret)
140
- */
141
- function hasPluginLevelWorkClawConfig(cfg) {
142
- const workclawCfg = cfg.channels?.['openclaw-workclaw'];
143
- const key = typeof workclawCfg?.appKey === 'string' ? workclawCfg.appKey.trim() : '';
144
- const secret = typeof workclawCfg?.appSecret === 'string' ? workclawCfg.appSecret.trim() : '';
145
- return Boolean(key && secret);
146
- }
147
- /**
148
- * List all account IDs.
149
- * If no accounts are configured but plugin has workclaw config, returns [DEFAULT_ACCOUNT_ID].
150
- */
151
- export function listWorkclawAccountIds(cfg) {
152
- const ids = listConfiguredAccountIds(cfg);
153
- if (ids.length === 0) {
154
- // 如果没有配置账户,但插件级别有 workclaw 配置,返回默认账户
155
- if (hasPluginLevelWorkClawConfig(cfg)) {
156
- return [DEFAULT_ACCOUNT_ID];
157
- }
158
- // Backward compatibility: no accounts configured, use default
159
- return [DEFAULT_ACCOUNT_ID];
160
- }
161
- return [...ids].toSorted((a, b) => a.localeCompare(b));
162
- }
163
- /**
164
- * Resolve the default account ID.
165
- */
166
- export function resolveDefaultWorkclawAccountId(cfg) {
167
- const ids = listWorkclawAccountIds(cfg);
168
- if (ids.includes(DEFAULT_ACCOUNT_ID)) {
169
- return DEFAULT_ACCOUNT_ID;
170
- }
171
- return ids[0] ?? DEFAULT_ACCOUNT_ID;
172
- }
173
- /**
174
- * Get the raw account-specific config.
175
- */
176
- function resolveAccountConfig(cfg, accountId) {
177
- const accounts = cfg.channels?.['openclaw-workclaw']?.accounts;
178
- if (!accounts || typeof accounts !== 'object') {
179
- return undefined;
180
- }
181
- return accounts[accountId];
182
- }
183
- function hasWorkClawConfig(config) {
184
- const key = typeof config.appKey === 'string' ? config.appKey.trim() : '';
185
- const secret = typeof config.appSecret === 'string' ? config.appSecret.trim() : '';
186
- // 只要有 appKey 和 appSecret 就认为配置了 workclaw(agentId 可以动态添加)
187
- return Boolean(key && secret);
188
- }
189
- export function isWorkclawAccountConfigured(config) {
190
- return hasWorkClawConfig(config);
191
- }
192
- /**
193
- * Merge top-level config with account-specific config.
194
- * Account-specific fields override top-level fields.
195
- */
196
- function mergeWorkclawAccountConfig(cfg, accountId) {
197
- const workclawCfg = cfg.channels?.['openclaw-workclaw'];
198
- // Extract base config (exclude accounts field to avoid recursion)
199
- const { accounts: _ignored, ...base } = workclawCfg ?? {};
200
- // Get account-specific overrides
201
- const account = resolveAccountConfig(cfg, accountId) ?? {};
202
- // Merge: account config overrides base config
203
- return { ...base, ...account };
204
- }
205
- /**
206
- * Resolve a complete account with merged config.
207
- */
208
- export function resolveWorkclawAccount(params) {
209
- const accountId = normalizeAccountId(params.accountId);
210
- const workclawCfg = params.cfg.channels?.['openclaw-workclaw'];
211
- // Base enabled state (top-level)
212
- const baseEnabled = workclawCfg?.enabled !== false;
213
- // Merge configs
214
- const merged = mergeWorkclawAccountConfig(params.cfg, accountId);
215
- // Account-level enabled state
216
- const accountEnabled = merged.enabled !== false;
217
- const enabled = baseEnabled && accountEnabled;
218
- return {
219
- accountId,
220
- enabled,
221
- configured: isWorkclawAccountConfigured(merged),
222
- name: merged.name?.trim() || undefined,
223
- config: merged,
224
- };
225
- }
226
- /**
227
- * List all enabled and configured accounts.
228
- */
229
- export function listEnabledWorkclawAccounts(cfg) {
230
- return listConfiguredAccountIds(cfg)
231
- .map(accountId => resolveWorkclawAccount({ cfg, accountId }))
232
- .filter(account => account.enabled && account.configured);
233
- }
234
- /**
235
- * Resolve account and apply cached connection config if available.
236
- * This ensures that appKey/appSecret etc. use the stable values captured at connection time,
237
- * not potentially mutated values from cfg at resolution time.
238
- */
239
- export function resolveWorkclawAccountWithCache(params) {
240
- const account = resolveWorkclawAccount(params);
241
- const cachedConfig = getWorkclawConnectionConfig(account.accountId);
242
- if (cachedConfig) {
243
- // Apply cached values to ensure stability
244
- account.config.appKey = cachedConfig.appKey || account.config.appKey;
245
- account.config.appSecret = cachedConfig.appSecret || account.config.appSecret;
246
- if (cachedConfig.baseUrl)
247
- account.config.baseUrl = cachedConfig.baseUrl;
248
- if (cachedConfig.websocketUrl !== undefined)
249
- account.config.websocketUrl = cachedConfig.websocketUrl;
250
- if (cachedConfig.localIp !== undefined)
251
- account.config.localIp = cachedConfig.localIp;
252
- if (cachedConfig.allowInsecureTls !== undefined)
253
- account.config.allowInsecureTls = cachedConfig.allowInsecureTls;
254
- if (cachedConfig.requestTimeout !== undefined)
255
- account.config.requestTimeout = cachedConfig.requestTimeout;
256
- }
257
- return account;
258
- }
259
- /**
260
- * Inspect and probe workclaw credentials.
261
- * Returns a function that can be called to test the connection.
262
- */
263
- export function inspectWorkclawCredentials(workclawCfg) {
264
- const appKey = typeof workclawCfg?.appKey === 'string' ? workclawCfg.appKey.trim() : '';
265
- const appSecret = typeof workclawCfg?.appSecret === 'string' ? workclawCfg.appSecret.trim() : '';
266
- if (!appKey || !appSecret) {
267
- return null;
268
- }
269
- return async () => {
270
- try {
271
- // 这里可以实现凭证验证逻辑
272
- // 暂时返回成功,因为实际验证需要连接工作线程
273
- return { ok: true };
274
- }
275
- catch {
276
- return { ok: false };
277
- }
278
- };
279
- }
@@ -1,130 +0,0 @@
1
- import { normalizeAccountId } from "../accounts.js";
2
- function sendJson(res, statusCode, payload) {
3
- res.statusCode = statusCode;
4
- res.setHeader("Content-Type", "application/json");
5
- res.end(JSON.stringify(payload));
6
- }
7
- async function readRequestBody(req) {
8
- const chunks = [];
9
- await new Promise((resolve, reject) => {
10
- req.on("data", (chunk) => {
11
- chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk));
12
- });
13
- req.on("end", () => resolve());
14
- req.on("error", (err) => reject(err));
15
- });
16
- return Buffer.concat(chunks).toString("utf-8");
17
- }
18
- async function loadRuntimeConfig(api) {
19
- const runtimeConfig = api.runtime?.config;
20
- if (runtimeConfig?.loadConfig) {
21
- return runtimeConfig.loadConfig();
22
- }
23
- return api.config;
24
- }
25
- async function writeRuntimeConfig(api, config) {
26
- const runtimeConfig = api.runtime?.config;
27
- if (runtimeConfig?.writeConfigFile) {
28
- await runtimeConfig.writeConfigFile(config);
29
- return;
30
- }
31
- throw new Error("Config write not supported");
32
- }
33
- function getAccountMap(config) {
34
- const channels = config?.channels && typeof config.channels === "object" ? config.channels : {};
35
- const openclawWorkclaw = channels['openclaw-workclaw'] && typeof channels['openclaw-workclaw'] === "object" ? channels['openclaw-workclaw'] : {};
36
- const accounts = openclawWorkclaw.accounts && typeof openclawWorkclaw.accounts === "object" ? openclawWorkclaw.accounts : {};
37
- return { ...accounts };
38
- }
39
- function withAccounts(config, accounts) {
40
- const channels = config?.channels && typeof config.channels === "object" ? config.channels : {};
41
- const openclawWorkclaw = channels['openclaw-workclaw'] && typeof channels['openclaw-workclaw'] === "object" ? channels['openclaw-workclaw'] : {};
42
- return {
43
- ...config,
44
- channels: {
45
- ...channels,
46
- 'openclaw-workclaw': {
47
- ...openclawWorkclaw,
48
- accounts,
49
- },
50
- },
51
- };
52
- }
53
- export function createAccountsApiHandler(api) {
54
- return async (req, res) => {
55
- const method = String(req.method ?? "GET").toUpperCase();
56
- const url = new URL(req.url ?? "", "http://localhost");
57
- const idRaw = url.searchParams.get("id") ?? url.searchParams.get("accountId");
58
- const accountId = idRaw ? normalizeAccountId(idRaw) : null;
59
- if (method === "GET") {
60
- const cfg = await loadRuntimeConfig(api);
61
- const accounts = getAccountMap(cfg);
62
- if (accountId) {
63
- const account = accounts[accountId];
64
- if (!account) {
65
- sendJson(res, 404, { ok: false, error: "Not Found" });
66
- return;
67
- }
68
- sendJson(res, 200, { ok: true, accountId, config: account });
69
- return;
70
- }
71
- const entries = Object.entries(accounts).map(([id, config]) => ({
72
- accountId: id,
73
- config,
74
- }));
75
- sendJson(res, 200, { ok: true, accounts: entries });
76
- return;
77
- }
78
- if (method === "POST" || method === "PUT") {
79
- const raw = await readRequestBody(req);
80
- let input = {};
81
- try {
82
- input = raw ? JSON.parse(raw) : {};
83
- }
84
- catch {
85
- sendJson(res, 400, { ok: false, error: "Invalid JSON" });
86
- return;
87
- }
88
- const inputId = input?.accountId ?? input?.id;
89
- const normalizedId = inputId ? normalizeAccountId(String(inputId)) : "";
90
- const patch = input?.config;
91
- if (!normalizedId || !patch || typeof patch !== "object") {
92
- sendJson(res, 400, { ok: false, error: "Missing accountId or config" });
93
- return;
94
- }
95
- const cfg = await loadRuntimeConfig(api);
96
- const accounts = getAccountMap(cfg);
97
- if (method === "POST" && accounts[normalizedId]) {
98
- sendJson(res, 409, { ok: false, error: "Account already exists" });
99
- return;
100
- }
101
- if (method === "PUT" && !accounts[normalizedId]) {
102
- sendJson(res, 404, { ok: false, error: "Not Found" });
103
- return;
104
- }
105
- const next = method === "PUT" ? { ...accounts[normalizedId], ...patch } : patch;
106
- const updated = withAccounts(cfg, { ...accounts, [normalizedId]: next });
107
- await writeRuntimeConfig(api, updated);
108
- sendJson(res, 200, { ok: true, accountId: normalizedId });
109
- return;
110
- }
111
- if (method === "DELETE") {
112
- if (!accountId) {
113
- sendJson(res, 400, { ok: false, error: "Missing accountId" });
114
- return;
115
- }
116
- const cfg = await loadRuntimeConfig(api);
117
- const accounts = getAccountMap(cfg);
118
- if (!accounts[accountId]) {
119
- sendJson(res, 404, { ok: false, error: "Not Found" });
120
- return;
121
- }
122
- const { [accountId]: _ignored, ...rest } = accounts;
123
- const updated = withAccounts(cfg, rest);
124
- await writeRuntimeConfig(api, updated);
125
- sendJson(res, 200, { ok: true, accountId, deleted: true });
126
- return;
127
- }
128
- sendJson(res, 405, { ok: false, error: "Method Not Allowed" });
129
- };
130
- }