@openclaw/feishu 2026.6.8 → 2026.6.9

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 (284) hide show
  1. package/dist/api.js +79 -24
  2. package/dist/{channel-DwygSth-.js → channel-DF8jqwhL.js} +4 -4
  3. package/dist/channel-plugin-api.js +1 -1
  4. package/dist/{channel.runtime-CrqKcXaU.js → channel.runtime-C4eAoxAR.js} +5 -5
  5. package/dist/{client-BhMNZBJD.js → client-BwgAJuvo.js} +14 -9
  6. package/dist/{drive-8o3Omlnd.js → drive-djUl8IRC.js} +16 -3
  7. package/dist/{monitor-_1eNsUVp.js → monitor-UZJ1bdoG.js} +2 -2
  8. package/dist/{monitor.account-BhoLA1Y0.js → monitor.account-Bc_8o_b6.js} +95 -51
  9. package/dist/{monitor.state-QV66eUNA.js → monitor.state-CGL1occz.js} +1 -1
  10. package/dist/{probe-BjKRV7em.js → probe-EyeJQb3C.js} +1 -1
  11. package/dist/{send-B3kteMF8.js → send-CMyK8JGr.js} +33 -25
  12. package/dist/setup-api.js +1 -1
  13. package/node_modules/@protobufjs/aspromise/LICENSE +26 -0
  14. package/node_modules/@protobufjs/aspromise/README.md +13 -0
  15. package/node_modules/{protobufjs/src/util/aspromise.d.ts → @protobufjs/aspromise/index.d.ts} +13 -13
  16. package/node_modules/{protobufjs/src/util/aspromise.js → @protobufjs/aspromise/index.js} +52 -52
  17. package/node_modules/@protobufjs/aspromise/package.json +21 -0
  18. package/node_modules/@protobufjs/aspromise/tests/index.js +130 -0
  19. package/node_modules/@protobufjs/base64/LICENSE +26 -0
  20. package/node_modules/@protobufjs/base64/README.md +19 -0
  21. package/node_modules/{protobufjs/src/util/base64.d.ts → @protobufjs/base64/index.d.ts} +32 -32
  22. package/node_modules/{protobufjs/src/util/base64.js → @protobufjs/base64/index.js} +139 -146
  23. package/node_modules/@protobufjs/base64/package.json +21 -0
  24. package/node_modules/@protobufjs/base64/tests/index.js +46 -0
  25. package/node_modules/@protobufjs/codegen/LICENSE +26 -0
  26. package/node_modules/@protobufjs/codegen/README.md +49 -0
  27. package/node_modules/{protobufjs/src/util/codegen.d.ts → @protobufjs/codegen/index.d.ts} +31 -31
  28. package/node_modules/{protobufjs/src/util/codegen.js → @protobufjs/codegen/index.js} +112 -113
  29. package/node_modules/@protobufjs/codegen/package.json +13 -0
  30. package/node_modules/@protobufjs/codegen/tests/index.js +13 -0
  31. package/node_modules/@protobufjs/eventemitter/CHANGELOG.md +8 -0
  32. package/node_modules/@protobufjs/eventemitter/LICENSE +26 -0
  33. package/node_modules/@protobufjs/eventemitter/README.md +22 -0
  34. package/node_modules/{protobufjs/src/util/eventemitter.d.ts → @protobufjs/eventemitter/index.d.ts} +45 -45
  35. package/node_modules/{protobufjs/src/util/eventemitter.js → @protobufjs/eventemitter/index.js} +86 -86
  36. package/node_modules/@protobufjs/eventemitter/package.json +21 -0
  37. package/node_modules/@protobufjs/eventemitter/tests/index.js +83 -0
  38. package/node_modules/@protobufjs/fetch/CHANGELOG.md +8 -0
  39. package/node_modules/@protobufjs/fetch/LICENSE +26 -0
  40. package/node_modules/@protobufjs/fetch/README.md +13 -0
  41. package/node_modules/{protobufjs/src/util/fetch.d.ts → @protobufjs/fetch/index.d.ts} +56 -56
  42. package/node_modules/{protobufjs/src/util/fetch.js → @protobufjs/fetch/index.js} +112 -112
  43. package/node_modules/@protobufjs/fetch/package.json +27 -0
  44. package/node_modules/@protobufjs/fetch/tests/data/file.txt +1 -0
  45. package/node_modules/@protobufjs/fetch/tests/index.js +158 -0
  46. package/node_modules/@protobufjs/fetch/util/fs.js +11 -0
  47. package/node_modules/@protobufjs/float/LICENSE +26 -0
  48. package/node_modules/@protobufjs/float/README.md +102 -0
  49. package/node_modules/@protobufjs/float/bench/index.js +87 -0
  50. package/node_modules/@protobufjs/float/bench/suite.js +46 -0
  51. package/node_modules/{protobufjs/src/util/float.js → @protobufjs/float/index.js} +335 -335
  52. package/node_modules/@protobufjs/float/package.json +26 -0
  53. package/node_modules/@protobufjs/float/tests/index.js +100 -0
  54. package/node_modules/@protobufjs/inquire/CHANGELOG.md +8 -0
  55. package/node_modules/@protobufjs/inquire/LICENSE +26 -0
  56. package/node_modules/@protobufjs/inquire/README.md +13 -0
  57. package/node_modules/{protobufjs/src/util/inquire.d.ts → @protobufjs/inquire/index.d.ts} +10 -10
  58. package/node_modules/{protobufjs/src/util/inquire.js → @protobufjs/inquire/index.js} +38 -38
  59. package/node_modules/@protobufjs/inquire/package.json +21 -0
  60. package/node_modules/@protobufjs/inquire/tests/data/array.js +1 -0
  61. package/node_modules/@protobufjs/inquire/tests/data/emptyArray.js +1 -0
  62. package/node_modules/@protobufjs/inquire/tests/data/emptyObject.js +1 -0
  63. package/node_modules/@protobufjs/inquire/tests/data/object.js +1 -0
  64. package/node_modules/@protobufjs/inquire/tests/index.js +20 -0
  65. package/node_modules/@protobufjs/path/LICENSE +26 -0
  66. package/node_modules/@protobufjs/path/README.md +19 -0
  67. package/node_modules/{protobufjs/src/util/path.d.ts → @protobufjs/path/index.d.ts} +22 -22
  68. package/node_modules/{protobufjs/src/util/path.js → @protobufjs/path/index.js} +65 -72
  69. package/node_modules/@protobufjs/path/package.json +21 -0
  70. package/node_modules/@protobufjs/path/tests/index.js +60 -0
  71. package/node_modules/@protobufjs/pool/.npmignore +3 -0
  72. package/node_modules/@protobufjs/pool/LICENSE +26 -0
  73. package/node_modules/@protobufjs/pool/README.md +13 -0
  74. package/node_modules/{protobufjs/src/util/pool.d.ts → @protobufjs/pool/index.d.ts} +32 -32
  75. package/node_modules/{protobufjs/src/util/pool.js → @protobufjs/pool/index.js} +48 -48
  76. package/node_modules/@protobufjs/pool/package.json +21 -0
  77. package/node_modules/@protobufjs/pool/tests/index.js +33 -0
  78. package/node_modules/@protobufjs/utf8/LICENSE +26 -0
  79. package/node_modules/@protobufjs/utf8/README.md +20 -0
  80. package/node_modules/{protobufjs/src/util/utf8.d.ts → @protobufjs/utf8/index.d.ts} +24 -24
  81. package/node_modules/{protobufjs/src/util/utf8.js → @protobufjs/utf8/index.js} +104 -130
  82. package/node_modules/@protobufjs/utf8/package.json +21 -0
  83. package/node_modules/@protobufjs/utf8/tests/data/surrogate_pair_bug.txt +207 -0
  84. package/node_modules/@protobufjs/utf8/tests/data/utf8.txt +216 -0
  85. package/node_modules/@protobufjs/utf8/tests/index.js +74 -0
  86. package/node_modules/@types/node/LICENSE +21 -0
  87. package/node_modules/@types/node/README.md +15 -0
  88. package/node_modules/@types/node/assert/strict.d.ts +59 -0
  89. package/node_modules/@types/node/assert.d.ts +950 -0
  90. package/node_modules/@types/node/async_hooks.d.ts +711 -0
  91. package/node_modules/@types/node/buffer.buffer.d.ts +466 -0
  92. package/node_modules/@types/node/buffer.d.ts +1765 -0
  93. package/node_modules/@types/node/child_process.d.ts +1366 -0
  94. package/node_modules/@types/node/cluster.d.ts +432 -0
  95. package/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  96. package/node_modules/@types/node/console.d.ts +93 -0
  97. package/node_modules/@types/node/constants.d.ts +14 -0
  98. package/node_modules/@types/node/crypto.d.ts +4058 -0
  99. package/node_modules/@types/node/dgram.d.ts +537 -0
  100. package/node_modules/@types/node/diagnostics_channel.d.ts +552 -0
  101. package/node_modules/@types/node/dns/promises.d.ts +497 -0
  102. package/node_modules/@types/node/dns.d.ts +876 -0
  103. package/node_modules/@types/node/domain.d.ts +150 -0
  104. package/node_modules/@types/node/events.d.ts +1008 -0
  105. package/node_modules/@types/node/fs/promises.d.ts +1468 -0
  106. package/node_modules/@types/node/fs.d.ts +4780 -0
  107. package/node_modules/@types/node/globals.d.ts +150 -0
  108. package/node_modules/@types/node/globals.typedarray.d.ts +101 -0
  109. package/node_modules/@types/node/http.d.ts +2147 -0
  110. package/node_modules/@types/node/http2.d.ts +2485 -0
  111. package/node_modules/@types/node/https.d.ts +400 -0
  112. package/node_modules/@types/node/index.d.ts +117 -0
  113. package/node_modules/@types/node/inspector/promises.d.ts +35 -0
  114. package/node_modules/@types/node/inspector.d.ts +264 -0
  115. package/node_modules/@types/node/inspector.generated.d.ts +4406 -0
  116. package/node_modules/@types/node/module.d.ts +755 -0
  117. package/node_modules/@types/node/net.d.ts +970 -0
  118. package/node_modules/@types/node/os.d.ts +498 -0
  119. package/node_modules/@types/node/package.json +155 -0
  120. package/node_modules/@types/node/path/posix.d.ts +8 -0
  121. package/node_modules/@types/node/path/win32.d.ts +8 -0
  122. package/node_modules/@types/node/path.d.ts +178 -0
  123. package/node_modules/@types/node/perf_hooks.d.ts +612 -0
  124. package/node_modules/@types/node/process.d.ts +2204 -0
  125. package/node_modules/@types/node/punycode.d.ts +89 -0
  126. package/node_modules/@types/node/querystring.d.ts +139 -0
  127. package/node_modules/@types/node/quic.d.ts +897 -0
  128. package/node_modules/@types/node/readline/promises.d.ts +158 -0
  129. package/node_modules/@types/node/readline.d.ts +507 -0
  130. package/node_modules/@types/node/repl.d.ts +420 -0
  131. package/node_modules/@types/node/sea.d.ts +47 -0
  132. package/node_modules/@types/node/sqlite.d.ts +1068 -0
  133. package/node_modules/@types/node/stream/consumers.d.ts +114 -0
  134. package/node_modules/@types/node/stream/iter.d.ts +301 -0
  135. package/node_modules/@types/node/stream/promises.d.ts +211 -0
  136. package/node_modules/@types/node/stream/web.d.ts +300 -0
  137. package/node_modules/@types/node/stream.d.ts +1774 -0
  138. package/node_modules/@types/node/string_decoder.d.ts +27 -0
  139. package/node_modules/@types/node/test/reporters.d.ts +59 -0
  140. package/node_modules/@types/node/test.d.ts +2279 -0
  141. package/node_modules/@types/node/timers/promises.d.ts +93 -0
  142. package/node_modules/@types/node/timers.d.ts +149 -0
  143. package/node_modules/@types/node/tls.d.ts +1193 -0
  144. package/node_modules/@types/node/trace_events.d.ts +103 -0
  145. package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +462 -0
  146. package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  147. package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
  148. package/node_modules/@types/node/ts5.6/index.d.ts +119 -0
  149. package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  150. package/node_modules/@types/node/ts5.7/index.d.ts +119 -0
  151. package/node_modules/@types/node/tty.d.ts +225 -0
  152. package/node_modules/@types/node/url.d.ts +556 -0
  153. package/node_modules/@types/node/util/types.d.ts +558 -0
  154. package/node_modules/@types/node/util.d.ts +1677 -0
  155. package/node_modules/@types/node/v8.d.ts +980 -0
  156. package/node_modules/@types/node/vm.d.ts +1136 -0
  157. package/node_modules/@types/node/wasi.d.ts +131 -0
  158. package/node_modules/@types/node/web-globals/abortcontroller.d.ts +59 -0
  159. package/node_modules/@types/node/web-globals/blob.d.ts +23 -0
  160. package/node_modules/@types/node/web-globals/console.d.ts +9 -0
  161. package/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
  162. package/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  163. package/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
  164. package/node_modules/@types/node/web-globals/events.d.ts +106 -0
  165. package/node_modules/@types/node/web-globals/fetch.d.ts +69 -0
  166. package/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
  167. package/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
  168. package/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
  169. package/node_modules/@types/node/web-globals/performance.d.ts +45 -0
  170. package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  171. package/node_modules/@types/node/web-globals/streams.d.ts +115 -0
  172. package/node_modules/@types/node/web-globals/timers.d.ts +44 -0
  173. package/node_modules/@types/node/web-globals/url.d.ts +24 -0
  174. package/node_modules/@types/node/worker_threads.d.ts +671 -0
  175. package/node_modules/@types/node/zlib/iter.d.ts +131 -0
  176. package/node_modules/@types/node/zlib.d.ts +589 -0
  177. package/node_modules/protobufjs/README.md +556 -263
  178. package/node_modules/protobufjs/dist/light/protobuf.js +1569 -1919
  179. package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
  180. package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
  181. package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
  182. package/node_modules/protobufjs/dist/minimal/protobuf.js +906 -1132
  183. package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
  184. package/node_modules/protobufjs/dist/minimal/protobuf.min.js +3 -3
  185. package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
  186. package/node_modules/protobufjs/dist/protobuf.js +1576 -1993
  187. package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
  188. package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
  189. package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
  190. package/node_modules/protobufjs/ext/descriptor/README.md +70 -3
  191. package/node_modules/protobufjs/ext/descriptor/index.d.ts +193 -0
  192. package/node_modules/protobufjs/ext/descriptor/index.js +1185 -1
  193. package/node_modules/protobufjs/ext/descriptor/test.js +54 -0
  194. package/node_modules/protobufjs/index.d.ts +720 -834
  195. package/node_modules/protobufjs/package.json +44 -20
  196. package/node_modules/protobufjs/src/converter.js +36 -60
  197. package/node_modules/protobufjs/src/decoder.js +53 -124
  198. package/node_modules/protobufjs/src/encoder.js +2 -10
  199. package/node_modules/protobufjs/src/enum.js +3 -8
  200. package/node_modules/protobufjs/src/field.js +11 -13
  201. package/node_modules/protobufjs/src/index-light.js +1 -1
  202. package/node_modules/protobufjs/src/mapfield.js +0 -1
  203. package/node_modules/protobufjs/src/message.js +11 -5
  204. package/node_modules/protobufjs/src/method.js +4 -5
  205. package/node_modules/protobufjs/src/namespace.js +3 -10
  206. package/node_modules/protobufjs/src/object.js +20 -20
  207. package/node_modules/protobufjs/src/oneof.js +0 -3
  208. package/node_modules/protobufjs/src/parse.js +16 -78
  209. package/node_modules/protobufjs/src/reader.js +31 -136
  210. package/node_modules/protobufjs/src/reader_buffer.js +3 -24
  211. package/node_modules/protobufjs/src/root.js +3 -7
  212. package/node_modules/protobufjs/src/roots.js +1 -1
  213. package/node_modules/protobufjs/src/service.js +6 -13
  214. package/node_modules/protobufjs/src/tokenize.js +1 -6
  215. package/node_modules/protobufjs/src/type.js +30 -44
  216. package/node_modules/protobufjs/src/typescript.jsdoc +15 -0
  217. package/node_modules/protobufjs/src/util/minimal.js +12 -36
  218. package/node_modules/protobufjs/src/util.js +17 -6
  219. package/node_modules/protobufjs/src/verifier.js +6 -6
  220. package/node_modules/protobufjs/src/wrappers.js +1 -0
  221. package/node_modules/protobufjs/src/writer.js +16 -42
  222. package/node_modules/protobufjs/src/writer_buffer.js +1 -18
  223. package/node_modules/protobufjs/tsconfig.json +5 -3
  224. package/node_modules/undici-types/LICENSE +21 -0
  225. package/node_modules/undici-types/README.md +6 -0
  226. package/node_modules/undici-types/agent.d.ts +32 -0
  227. package/node_modules/undici-types/api.d.ts +43 -0
  228. package/node_modules/undici-types/balanced-pool.d.ts +30 -0
  229. package/node_modules/undici-types/cache-interceptor.d.ts +179 -0
  230. package/node_modules/undici-types/cache.d.ts +36 -0
  231. package/node_modules/undici-types/client-stats.d.ts +15 -0
  232. package/node_modules/undici-types/client.d.ts +123 -0
  233. package/node_modules/undici-types/connector.d.ts +36 -0
  234. package/node_modules/undici-types/content-type.d.ts +21 -0
  235. package/node_modules/undici-types/cookies.d.ts +30 -0
  236. package/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
  237. package/node_modules/undici-types/dispatcher.d.ts +279 -0
  238. package/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
  239. package/node_modules/undici-types/errors.d.ts +177 -0
  240. package/node_modules/undici-types/eventsource.d.ts +66 -0
  241. package/node_modules/undici-types/fetch.d.ts +211 -0
  242. package/node_modules/undici-types/formdata.d.ts +108 -0
  243. package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  244. package/node_modules/undici-types/global-origin.d.ts +7 -0
  245. package/node_modules/undici-types/h2c-client.d.ts +73 -0
  246. package/node_modules/undici-types/handlers.d.ts +15 -0
  247. package/node_modules/undici-types/header.d.ts +160 -0
  248. package/node_modules/undici-types/index.d.ts +91 -0
  249. package/node_modules/undici-types/interceptors.d.ts +80 -0
  250. package/node_modules/undici-types/mock-agent.d.ts +68 -0
  251. package/node_modules/undici-types/mock-call-history.d.ts +111 -0
  252. package/node_modules/undici-types/mock-client.d.ts +27 -0
  253. package/node_modules/undici-types/mock-errors.d.ts +12 -0
  254. package/node_modules/undici-types/mock-interceptor.d.ts +94 -0
  255. package/node_modules/undici-types/mock-pool.d.ts +27 -0
  256. package/node_modules/undici-types/package.json +55 -0
  257. package/node_modules/undici-types/patch.d.ts +29 -0
  258. package/node_modules/undici-types/pool-stats.d.ts +19 -0
  259. package/node_modules/undici-types/pool.d.ts +41 -0
  260. package/node_modules/undici-types/proxy-agent.d.ts +29 -0
  261. package/node_modules/undici-types/readable.d.ts +68 -0
  262. package/node_modules/undici-types/retry-agent.d.ts +8 -0
  263. package/node_modules/undici-types/retry-handler.d.ts +125 -0
  264. package/node_modules/undici-types/round-robin-pool.d.ts +41 -0
  265. package/node_modules/undici-types/snapshot-agent.d.ts +109 -0
  266. package/node_modules/undici-types/socks5-proxy-agent.d.ts +25 -0
  267. package/node_modules/undici-types/util.d.ts +18 -0
  268. package/node_modules/undici-types/utility.d.ts +7 -0
  269. package/node_modules/undici-types/webidl.d.ts +347 -0
  270. package/node_modules/undici-types/websocket.d.ts +188 -0
  271. package/npm-shrinkwrap.json +95 -6
  272. package/package.json +4 -4
  273. package/skills/feishu-wiki/SKILL.md +10 -1
  274. package/node_modules/protobufjs/ext/README.md +0 -81
  275. package/node_modules/protobufjs/ext/descriptor.d.ts +0 -86
  276. package/node_modules/protobufjs/ext/descriptor.generated.d.ts +0 -409
  277. package/node_modules/protobufjs/ext/descriptor.js +0 -1266
  278. package/node_modules/protobufjs/ext/textformat.d.ts +0 -19
  279. package/node_modules/protobufjs/ext/textformat.generated.d.ts +0 -11
  280. package/node_modules/protobufjs/ext/textformat.js +0 -1235
  281. package/node_modules/protobufjs/google/protobuf/compiler/plugin.json +0 -126
  282. package/node_modules/protobufjs/google/protobuf/compiler/plugin.proto +0 -47
  283. package/node_modules/protobufjs/src/typescript.js +0 -25
  284. /package/node_modules/{protobufjs/src/util/float.d.ts → @protobufjs/float/index.d.ts} +0 -0
package/dist/api.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { r as listEnabledFeishuAccounts } from "./accounts-Cfzht2Hc.js";
2
- import { a as setFeishuNamedAccountEnabled, i as feishuSetupAdapter, n as feishuSetupWizard, r as runFeishuLogin, t as feishuPlugin } from "./channel-DwygSth-.js";
2
+ import { a as setFeishuNamedAccountEnabled, i as feishuSetupAdapter, n as feishuSetupWizard, r as runFeishuLogin, t as feishuPlugin } from "./channel-DF8jqwhL.js";
3
3
  import { a as parseFeishuTargetId, i as parseFeishuDirectConversationId, n as buildFeishuModelOverrideParentCandidates, r as parseFeishuConversationId, t as buildFeishuConversationId } from "./conversation-id-DuL575sn.js";
4
4
  import { t as getFeishuRuntime } from "./runtime-C5JxBWZp.js";
5
- import { r as createFeishuClient } from "./client-BhMNZBJD.js";
6
- import { a as jsonToolResult, d as registerFeishuChatTools, f as createFeishuToolClient, h as resolveToolsConfig, m as resolveFeishuToolAccount, n as registerFeishuDriveTools, o as toolExecutionErrorResult, p as resolveAnyEnabledFeishuToolsConfig, s as unknownToolActionResult } from "./drive-8o3Omlnd.js";
5
+ import { r as createFeishuClient } from "./client-BwgAJuvo.js";
6
+ import { a as jsonToolResult, d as registerFeishuChatTools, f as createFeishuToolClient, h as resolveToolsConfig, m as resolveFeishuToolAccount, n as registerFeishuDriveTools, o as toolExecutionErrorResult, p as resolveAnyEnabledFeishuToolsConfig, s as unknownToolActionResult } from "./drive-djUl8IRC.js";
7
7
  import { n as getFeishuThreadBindingManager, r as testing, t as createFeishuThreadBindingManager } from "./thread-bindings-V0bwk0A1.js";
8
8
  import { n as handleFeishuSubagentEnded, r as handleFeishuSubagentSpawning, t as handleFeishuSubagentDeliveryTarget } from "./subagent-hooks-1pqt5tAA.js";
9
9
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, readStringValue, uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -1398,12 +1398,20 @@ function registerFeishuDocTools(api) {
1398
1398
  const getClient = (params, defaultAccountId) => createFeishuToolClient({
1399
1399
  api,
1400
1400
  executeParams: params,
1401
- defaultAccountId
1401
+ defaultAccountId,
1402
+ requiredTool: {
1403
+ family: "doc",
1404
+ label: "Doc"
1405
+ }
1402
1406
  });
1403
1407
  const getMediaMaxBytes = (params, defaultAccountId) => (resolveFeishuToolAccount({
1404
1408
  api,
1405
1409
  executeParams: params,
1406
- defaultAccountId
1410
+ defaultAccountId,
1411
+ requiredTool: {
1412
+ family: "doc",
1413
+ label: "Doc"
1414
+ }
1407
1415
  }).config?.mediaMaxMb ?? 30) * 1024 * 1024;
1408
1416
  if (toolsCfg.doc) {
1409
1417
  api.registerTool((ctx) => {
@@ -1461,7 +1469,14 @@ function registerFeishuDocTools(api) {
1461
1469
  parameters: Type.Object({}),
1462
1470
  async execute() {
1463
1471
  try {
1464
- return json$1(await listAppScopes(getClient(void 0, ctx.agentAccountId)));
1472
+ return json$1(await listAppScopes(createFeishuToolClient({
1473
+ api,
1474
+ defaultAccountId: ctx.agentAccountId,
1475
+ requiredTool: {
1476
+ family: "scopes",
1477
+ label: "App Scopes"
1478
+ }
1479
+ })));
1465
1480
  } catch (err) {
1466
1481
  return json$1({ error: formatErrorMessage(err) });
1467
1482
  }
@@ -1474,11 +1489,23 @@ function registerFeishuDocTools(api) {
1474
1489
  //#region extensions/feishu/src/wiki-schema.ts
1475
1490
  const WIKI_SPACE_ID_DESCRIPTION = "Knowledge space ID. Treat as an opaque string and keep it quoted; never pass numeric-looking IDs as numbers.";
1476
1491
  const FeishuWikiSchema = Type.Union([
1477
- Type.Object({ action: Type.Literal("spaces") }),
1492
+ Type.Object({
1493
+ action: Type.Literal("spaces"),
1494
+ page_size: optionalPositiveIntegerSchema({
1495
+ maximum: 50,
1496
+ description: "Page size (1-50, default 50)"
1497
+ }),
1498
+ page_token: Type.Optional(Type.String({ description: "Pagination token" }))
1499
+ }),
1478
1500
  Type.Object({
1479
1501
  action: Type.Literal("nodes"),
1480
1502
  space_id: Type.String({ description: WIKI_SPACE_ID_DESCRIPTION }),
1481
- parent_node_token: Type.Optional(Type.String({ description: "Parent node token (optional, omit for root)" }))
1503
+ parent_node_token: Type.Optional(Type.String({ description: "Parent node token (optional, omit for root)" })),
1504
+ page_size: optionalPositiveIntegerSchema({
1505
+ maximum: 50,
1506
+ description: "Page size (1-50, default 50)"
1507
+ }),
1508
+ page_token: Type.Optional(Type.String({ description: "Pagination token" }))
1482
1509
  }),
1483
1510
  Type.Object({
1484
1511
  action: Type.Literal("get"),
@@ -1516,6 +1543,7 @@ const FeishuWikiSchema = Type.Union([
1516
1543
  ]);
1517
1544
  //#endregion
1518
1545
  //#region extensions/feishu/src/wiki.ts
1546
+ const WIKI_PAGE_SIZE = 50;
1519
1547
  const WIKI_ACCESS_HINT = "To grant wiki access: Open wiki space → Settings → Members → Add the bot. See: https://open.feishu.cn/document/server-docs/docs/wiki-v2/wiki-qa#a40ad4ca";
1520
1548
  function requireWikiSpaceId(value, fieldName) {
1521
1549
  if (typeof value !== "string") throw new Error(`${fieldName} must be a string. Feishu wiki space IDs are opaque identifiers; pass them quoted to avoid JavaScript number precision loss.`);
@@ -1527,8 +1555,17 @@ function optionalWikiSpaceId(value, fieldName) {
1527
1555
  if (value === void 0 || value === null || value === "") return;
1528
1556
  return requireWikiSpaceId(value, fieldName);
1529
1557
  }
1530
- async function listSpaces(client) {
1531
- const res = await client.wiki.space.list({});
1558
+ function readWikiPageSize(params) {
1559
+ return readPositiveIntegerParam(params, "page_size", {
1560
+ max: WIKI_PAGE_SIZE,
1561
+ message: "page_size must be a positive integer between 1 and 50"
1562
+ }) ?? WIKI_PAGE_SIZE;
1563
+ }
1564
+ async function listSpaces(client, pageSize, pageToken) {
1565
+ const res = await client.wiki.space.list({ params: {
1566
+ page_size: pageSize,
1567
+ page_token: pageToken
1568
+ } });
1532
1569
  if (res.code !== 0) throw new Error(res.msg);
1533
1570
  const spaces = res.data?.items?.map((s) => ({
1534
1571
  space_id: s.space_id,
@@ -1538,22 +1575,32 @@ async function listSpaces(client) {
1538
1575
  })) ?? [];
1539
1576
  return {
1540
1577
  spaces,
1541
- ...spaces.length === 0 && { hint: WIKI_ACCESS_HINT }
1578
+ has_more: res.data?.has_more ?? false,
1579
+ page_token: res.data?.page_token,
1580
+ ...spaces.length === 0 && pageToken === void 0 && res.data?.has_more !== true && { hint: WIKI_ACCESS_HINT }
1542
1581
  };
1543
1582
  }
1544
- async function listNodes(client, spaceId, parentNodeToken) {
1583
+ async function listNodes(client, spaceId, parentNodeToken, pageSize, pageToken) {
1545
1584
  const res = await client.wiki.spaceNode.list({
1546
1585
  path: { space_id: spaceId },
1547
- params: { parent_node_token: parentNodeToken }
1586
+ params: {
1587
+ parent_node_token: parentNodeToken,
1588
+ page_size: pageSize,
1589
+ page_token: pageToken
1590
+ }
1548
1591
  });
1549
1592
  if (res.code !== 0) throw new Error(res.msg);
1550
- return { nodes: res.data?.items?.map((n) => ({
1551
- node_token: n.node_token,
1552
- obj_token: n.obj_token,
1553
- obj_type: n.obj_type,
1554
- title: n.title,
1555
- has_child: n.has_child
1556
- })) ?? [] };
1593
+ return {
1594
+ nodes: res.data?.items?.map((n) => ({
1595
+ node_token: n.node_token,
1596
+ obj_token: n.obj_token,
1597
+ obj_type: n.obj_type,
1598
+ title: n.title,
1599
+ has_child: n.has_child
1600
+ })) ?? [],
1601
+ has_more: res.data?.has_more ?? false,
1602
+ page_token: res.data?.page_token
1603
+ };
1557
1604
  }
1558
1605
  async function getNode(client, token) {
1559
1606
  const res = await client.wiki.space.getNode({ params: { token } });
@@ -1640,13 +1687,17 @@ function registerFeishuWikiTools(api) {
1640
1687
  const createClient = () => createFeishuToolClient({
1641
1688
  api,
1642
1689
  executeParams: p,
1643
- defaultAccountId
1690
+ defaultAccountId,
1691
+ requiredTool: {
1692
+ family: "wiki",
1693
+ label: "Wiki"
1694
+ }
1644
1695
  });
1645
1696
  switch (p.action) {
1646
- case "spaces": return jsonToolResult(await listSpaces(createClient()));
1697
+ case "spaces": return jsonToolResult(await listSpaces(createClient(), readWikiPageSize(p), p.page_token));
1647
1698
  case "nodes": {
1648
1699
  const spaceId = requireWikiSpaceId(p.space_id, "space_id");
1649
- return jsonToolResult(await listNodes(createClient(), spaceId, p.parent_node_token));
1700
+ return jsonToolResult(await listNodes(createClient(), spaceId, p.parent_node_token, readWikiPageSize(p), p.page_token));
1650
1701
  }
1651
1702
  case "get": return jsonToolResult(await getNode(createClient(), p.token));
1652
1703
  case "search":
@@ -1787,7 +1838,11 @@ function registerFeishuPermTools(api) {
1787
1838
  const client = createFeishuToolClient({
1788
1839
  api,
1789
1840
  executeParams: p,
1790
- defaultAccountId
1841
+ defaultAccountId,
1842
+ requiredTool: {
1843
+ family: "perm",
1844
+ label: "Perm"
1845
+ }
1791
1846
  });
1792
1847
  switch (p.action) {
1793
1848
  case "list": return jsonToolResult(await listMembers(client, p.token, p.type));
@@ -1659,7 +1659,7 @@ const feishuSetupWizard = {
1659
1659
  });
1660
1660
  let probeResult = null;
1661
1661
  if (configured && account.configured) try {
1662
- const { probeFeishu } = await import("./probe-BjKRV7em.js").then((n) => n.n);
1662
+ const { probeFeishu } = await import("./probe-EyeJQb3C.js").then((n) => n.n);
1663
1663
  probeResult = await probeFeishu(account);
1664
1664
  } catch {}
1665
1665
  if (!configured) return [formatFeishuStatusLine("needs-credentials")];
@@ -1735,7 +1735,7 @@ const meta = {
1735
1735
  order: 70,
1736
1736
  preferSessionLookupForAnnounceTarget: true
1737
1737
  };
1738
- const loadFeishuChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-CrqKcXaU.js"), "feishuChannelRuntime");
1738
+ const loadFeishuChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-C4eAoxAR.js"), "feishuChannelRuntime");
1739
1739
  function toFeishuMessageSendResult(result, kind) {
1740
1740
  const receipt = result.receipt ?? createFeishuSendReceipt({
1741
1741
  messageId: result.messageId,
@@ -1767,7 +1767,7 @@ const feishuMessageAdapter = defineChannelMessageAdapter({
1767
1767
  }
1768
1768
  });
1769
1769
  async function createFeishuActionClient(account) {
1770
- const { createFeishuClient } = await import("./client-BhMNZBJD.js").then((n) => n.t);
1770
+ const { createFeishuClient } = await import("./client-BwgAJuvo.js").then((n) => n.t);
1771
1771
  return createFeishuClient(account);
1772
1772
  }
1773
1773
  const collectFeishuSecurityWarnings = createAllowlistProviderGroupPolicyWarningCollector({
@@ -2551,7 +2551,7 @@ const feishuPlugin = createChatChannelPlugin({
2551
2551
  })
2552
2552
  }),
2553
2553
  gateway: { startAccount: async (ctx) => {
2554
- const { monitorFeishuProvider } = await import("./monitor-_1eNsUVp.js");
2554
+ const { monitorFeishuProvider } = await import("./monitor-UZJ1bdoG.js");
2555
2555
  const account = resolveFeishuRuntimeAccount({
2556
2556
  cfg: ctx.cfg,
2557
2557
  accountId: ctx.accountId
@@ -1,2 +1,2 @@
1
- import { t as feishuPlugin } from "./channel-DwygSth-.js";
1
+ import { t as feishuPlugin } from "./channel-DF8jqwhL.js";
2
2
  export { feishuPlugin };
@@ -1,10 +1,10 @@
1
1
  import { o as resolveFeishuAccount, s as resolveFeishuRuntimeAccount, v as parseFeishuCommentTarget } from "./accounts-Cfzht2Hc.js";
2
- import { h as listFeishuDirectoryPeers, m as listFeishuDirectoryGroups, o as buildFeishuPresentationCardElements } from "./channel-DwygSth-.js";
3
- import { r as createFeishuClient } from "./client-BhMNZBJD.js";
4
- import { c as getChatInfo, l as getChatMembers, r as cleanupAmbientCommentTypingReaction, t as deliverCommentThreadText, u as getFeishuMemberInfo } from "./drive-8o3Omlnd.js";
2
+ import { h as listFeishuDirectoryPeers, m as listFeishuDirectoryGroups, o as buildFeishuPresentationCardElements } from "./channel-DF8jqwhL.js";
3
+ import { r as createFeishuClient } from "./client-BwgAJuvo.js";
4
+ import { c as getChatInfo, l as getChatMembers, r as cleanupAmbientCommentTypingReaction, t as deliverCommentThreadText, u as getFeishuMemberInfo } from "./drive-djUl8IRC.js";
5
5
  import { chunkTextForOutbound } from "./runtime-api.js";
6
- import { a as sendCardFeishu, c as sendStructuredCardFeishu, g as shouldSuppressFeishuTextForVoiceMedia, h as sendMediaFeishu, i as resolveFeishuCardTemplate, n as getMessageFeishu, o as sendMarkdownCardFeishu, s as sendMessageFeishu, t as editMessageFeishu } from "./send-B3kteMF8.js";
7
- import { t as probeFeishu } from "./probe-BjKRV7em.js";
6
+ import { a as sendCardFeishu, c as sendStructuredCardFeishu, g as shouldSuppressFeishuTextForVoiceMedia, h as sendMediaFeishu, i as resolveFeishuCardTemplate, n as getMessageFeishu, o as sendMarkdownCardFeishu, s as sendMessageFeishu, t as editMessageFeishu } from "./send-CMyK8JGr.js";
7
+ import { t as probeFeishu } from "./probe-EyeJQb3C.js";
8
8
  import { interactiveReplyToPresentation, normalizeInteractiveReply, normalizeMessagePresentation, renderMessagePresentationFallbackText, resolveInteractiveTextFallback } from "openclaw/plugin-sdk/interactive-runtime";
9
9
  import { isRecord, normalizeLowercaseStringOrEmpty, normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
10
10
  import path from "node:path";
@@ -55,17 +55,22 @@ let feishuClientSdk = {
55
55
  LoggerLevel: Lark.LoggerLevel,
56
56
  WSClient: Lark.WSClient
57
57
  };
58
- {
59
- const inst = Lark.defaultHttpInstance;
60
- if (inst.interceptors?.request) {
61
- inst.interceptors.request.handlers = [];
62
- inst.interceptors.request.use((req) => {
63
- const r = req;
64
- if (r.headers) r.headers["User-Agent"] = getFeishuUserAgent();
65
- return req;
66
- });
58
+ function setRequestUserAgent(req) {
59
+ const request = req;
60
+ const headers = request.headers;
61
+ if (!headers) {
62
+ request.headers = { "User-Agent": getFeishuUserAgent() };
63
+ return req;
67
64
  }
65
+ const maybeAxiosHeaders = headers;
66
+ if (typeof maybeAxiosHeaders.set === "function") {
67
+ maybeAxiosHeaders.set("User-Agent", getFeishuUserAgent());
68
+ return req;
69
+ }
70
+ headers["User-Agent"] = getFeishuUserAgent();
71
+ return req;
68
72
  }
73
+ Lark.defaultHttpInstance.interceptors?.request?.use(setRequestUserAgent);
69
74
  async function getWsProxyAgent() {
70
75
  return resolveAmbientNodeProxyAgent();
71
76
  }
@@ -1,5 +1,5 @@
1
1
  import { c as encodeQuery, d as isRecord$1, i as listFeishuAccountIds, l as extractReplyText, m as readString, o as resolveFeishuAccount, r as listEnabledFeishuAccounts, s as resolveFeishuRuntimeAccount, u as formatFeishuApiError, v as parseFeishuCommentTarget } from "./accounts-Cfzht2Hc.js";
2
- import { r as createFeishuClient } from "./client-BhMNZBJD.js";
2
+ import { r as createFeishuClient } from "./client-BwgAJuvo.js";
3
3
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
4
4
  import { optionalPositiveIntegerSchema } from "openclaw/plugin-sdk/channel-actions";
5
5
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
@@ -50,13 +50,22 @@ function resolveImplicitToolAccountId(params) {
50
50
  }
51
51
  const configuredDefaultAccountId = normalizeOptionalString((params.api.config?.channels?.feishu)?.defaultAccount);
52
52
  if (configuredDefaultAccountId) return configuredDefaultAccountId;
53
+ if (params.requiredTool && params.api.config) for (const accountId of listFeishuAccountIds(params.api.config)) {
54
+ const account = resolveFeishuAccount({
55
+ cfg: params.api.config,
56
+ accountId
57
+ });
58
+ if (account.enabled && account.configured && resolveToolsConfig(account.config.tools)[params.requiredTool.family]) return accountId;
59
+ }
53
60
  }
54
61
  function resolveFeishuToolAccount(params) {
55
62
  if (!params.api.config) throw new Error("Feishu config unavailable");
56
- return resolveFeishuRuntimeAccount({
63
+ const account = resolveFeishuRuntimeAccount({
57
64
  cfg: params.api.config,
58
65
  accountId: resolveImplicitToolAccountId(params)
59
66
  });
67
+ if (params.requiredTool && !resolveToolsConfig(account.config.tools)[params.requiredTool.family]) throw new Error(`Feishu ${params.requiredTool.label} tools are disabled for account "${account.accountId}"`);
68
+ return account;
60
69
  }
61
70
  function createFeishuToolClient(params) {
62
71
  return createFeishuClient(resolveFeishuToolAccount(params));
@@ -862,7 +871,11 @@ function registerFeishuDriveTools(api) {
862
871
  const client = createFeishuToolClient({
863
872
  api,
864
873
  executeParams: p,
865
- defaultAccountId
874
+ defaultAccountId,
875
+ requiredTool: {
876
+ family: "drive",
877
+ label: "Drive"
878
+ }
866
879
  });
867
880
  switch (p.action) {
868
881
  case "list": return jsonToolResult(await listFolder(client, p.folder_token));
@@ -1,9 +1,9 @@
1
1
  import { r as listEnabledFeishuAccounts, s as resolveFeishuRuntimeAccount } from "./accounts-Cfzht2Hc.js";
2
- import { f as fetchBotIdentityForMonitor } from "./monitor.state-QV66eUNA.js";
2
+ import { f as fetchBotIdentityForMonitor } from "./monitor.state-CGL1occz.js";
3
3
  //#region extensions/feishu/src/monitor.ts
4
4
  let monitorAccountRuntimePromise;
5
5
  async function loadMonitorAccountRuntime() {
6
- monitorAccountRuntimePromise ??= import("./monitor.account-BhoLA1Y0.js");
6
+ monitorAccountRuntimePromise ??= import("./monitor.account-Bc_8o_b6.js");
7
7
  return await monitorAccountRuntimePromise;
8
8
  }
9
9
  async function monitorFeishuProvider(opts = {}) {