@openclaw/feishu 2026.7.2-beta.7 → 2026.7.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1330) hide show
  1. package/README.md +1 -1
  2. package/dist/.setup/accounts-CfuPSCip.mjs +516 -0
  3. package/dist/.setup/app-registration-D18iu_PK.mjs +204 -0
  4. package/dist/.setup/channel-CiFS4inh.mjs +2661 -0
  5. package/dist/.setup/channel.runtime-B9LCBnp3.mjs +641 -0
  6. package/dist/.setup/client-DLqNWY5r.mjs +161 -0
  7. package/dist/.setup/conversation-id-CdLdoot3.mjs +143 -0
  8. package/dist/.setup/drive-Cy1tmfSn.mjs +934 -0
  9. package/dist/.setup/json-response-DXajw_FU.mjs +9 -0
  10. package/dist/.setup/legacy-state-migrations-api-CVW3tHfw.mjs +73 -0
  11. package/dist/.setup/legacy-state-migrations-api-jN6Z0iq0.mjs +2 -0
  12. package/dist/.setup/monitor-C4sFALTA.mjs +232 -0
  13. package/dist/.setup/monitor.account-Do7egFpi.mjs +5853 -0
  14. package/dist/.setup/probe-DbUBx0Px.mjs +162 -0
  15. package/dist/.setup/runtime-setter-api-CG-RC4_r.mjs +3 -0
  16. package/dist/.setup/secret-contract-DLaBl9m4.mjs +137 -0
  17. package/dist/.setup/secret-contract-api-ZtO0BWHd.mjs +3 -0
  18. package/dist/.setup/security-audit-Duuj2PkP.mjs +11 -0
  19. package/dist/.setup/security-audit-shared-BIHeF-S_.mjs +38 -0
  20. package/dist/.setup/send-DkB3ifwO.mjs +1264 -0
  21. package/dist/.setup/send-result-COI_ANtb.mjs +287 -0
  22. package/dist/.setup/session-conversation-CWBrUzmY.mjs +27 -0
  23. package/dist/.setup/setup-api-DY9H9ISg.mjs +3 -0
  24. package/dist/.setup/subagent-hooks-BQhuBlyy.mjs +235 -0
  25. package/dist/.setup/thread-bindings-V0bwk0A1.mjs +222 -0
  26. package/dist/api.js +256 -431
  27. package/dist/channel-plugin-api.js +1 -1
  28. package/dist/contract-api.js +3 -3
  29. package/dist/legacy-state-migrations-api.js +2 -0
  30. package/dist/runtime-api.js +3 -2
  31. package/dist/runtime-setter-api.js +1 -1
  32. package/dist/secret-contract-api.js +1 -1
  33. package/dist/security-contract-api.js +1 -1
  34. package/dist/session-binding-contract-api.js +1 -1
  35. package/dist/session-key-api.js +1 -1
  36. package/dist/setup-api.js +1 -1
  37. package/dist/setup-entry.js +9 -3
  38. package/dist/subagent-hooks-api.js +1 -1
  39. package/node_modules/@larksuiteoapi/node-sdk/README.md +0 -13
  40. package/node_modules/@larksuiteoapi/node-sdk/README.zh.md +0 -12
  41. package/node_modules/@larksuiteoapi/node-sdk/es/index.js +3084 -8950
  42. package/node_modules/@larksuiteoapi/node-sdk/lib/index.js +3083 -8951
  43. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/aspromise/LICENSE +26 -0
  44. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/aspromise/README.md +13 -0
  45. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/aspromise/index.d.ts +13 -0
  46. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/aspromise/index.js +52 -0
  47. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/aspromise/package.json +21 -0
  48. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/aspromise/tests/index.js +130 -0
  49. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/base64/LICENSE +26 -0
  50. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/base64/README.md +19 -0
  51. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/base64/index.d.ts +32 -0
  52. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/base64/index.js +139 -0
  53. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/base64/package.json +21 -0
  54. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/base64/tests/index.js +46 -0
  55. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/codegen/LICENSE +26 -0
  56. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/codegen/README.md +49 -0
  57. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/codegen/index.d.ts +31 -0
  58. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/codegen/index.js +112 -0
  59. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/codegen/package.json +13 -0
  60. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/codegen/tests/index.js +13 -0
  61. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/eventemitter/CHANGELOG.md +8 -0
  62. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/eventemitter/LICENSE +26 -0
  63. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/eventemitter/README.md +22 -0
  64. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/eventemitter/index.d.ts +45 -0
  65. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/eventemitter/index.js +86 -0
  66. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/eventemitter/package.json +21 -0
  67. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/eventemitter/tests/index.js +83 -0
  68. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/fetch/CHANGELOG.md +8 -0
  69. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/fetch/LICENSE +26 -0
  70. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/fetch/README.md +13 -0
  71. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/fetch/index.d.ts +56 -0
  72. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/fetch/index.js +112 -0
  73. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/fetch/package.json +27 -0
  74. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/fetch/tests/data/file.txt +1 -0
  75. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/fetch/tests/index.js +158 -0
  76. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/fetch/util/fs.js +11 -0
  77. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/float/LICENSE +26 -0
  78. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/float/README.md +102 -0
  79. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/float/bench/index.js +87 -0
  80. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/float/bench/suite.js +46 -0
  81. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/float/index.js +335 -0
  82. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/float/package.json +26 -0
  83. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/float/tests/index.js +100 -0
  84. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/CHANGELOG.md +8 -0
  85. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/LICENSE +26 -0
  86. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/README.md +13 -0
  87. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/index.d.ts +10 -0
  88. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/index.js +38 -0
  89. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/package.json +21 -0
  90. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/tests/data/array.js +1 -0
  91. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/tests/data/emptyArray.js +1 -0
  92. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/tests/data/emptyObject.js +1 -0
  93. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/tests/data/object.js +1 -0
  94. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/tests/index.js +20 -0
  95. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/path/LICENSE +26 -0
  96. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/path/README.md +19 -0
  97. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/path/index.d.ts +22 -0
  98. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/path/index.js +65 -0
  99. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/path/package.json +21 -0
  100. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/path/tests/index.js +60 -0
  101. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/pool/.npmignore +3 -0
  102. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/pool/LICENSE +26 -0
  103. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/pool/README.md +13 -0
  104. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/pool/index.d.ts +32 -0
  105. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/pool/index.js +48 -0
  106. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/pool/package.json +21 -0
  107. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/pool/tests/index.js +33 -0
  108. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/utf8/LICENSE +26 -0
  109. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/utf8/README.md +20 -0
  110. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/utf8/index.d.ts +24 -0
  111. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/utf8/index.js +104 -0
  112. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/utf8/package.json +21 -0
  113. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/utf8/tests/data/surrogate_pair_bug.txt +207 -0
  114. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/utf8/tests/data/utf8.txt +216 -0
  115. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/utf8/tests/index.js +74 -0
  116. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/README.md +15 -0
  117. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/assert/strict.d.ts +68 -0
  118. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/assert.d.ts +1077 -0
  119. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/async_hooks.d.ts +711 -0
  120. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/buffer.buffer.d.ts +466 -0
  121. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/buffer.d.ts +1799 -0
  122. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/child_process.d.ts +1362 -0
  123. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/cluster.d.ts +432 -0
  124. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/console.d.ts +93 -0
  125. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/constants.d.ts +14 -0
  126. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/crypto.d.ts +3954 -0
  127. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/dgram.d.ts +537 -0
  128. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/diagnostics_channel.d.ts +794 -0
  129. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/dns/promises.d.ts +497 -0
  130. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/dns.d.ts +876 -0
  131. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/domain.d.ts +150 -0
  132. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/events.d.ts +1008 -0
  133. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/ffi.d.ts +486 -0
  134. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/fs/promises.d.ts +1471 -0
  135. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/fs.d.ts +4786 -0
  136. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/globals.d.ts +150 -0
  137. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/globals.typedarray.d.ts +101 -0
  138. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/http.d.ts +2172 -0
  139. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/http2.d.ts +2489 -0
  140. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/https.d.ts +400 -0
  141. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/index.d.ts +115 -0
  142. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/inspector/promises.d.ts +35 -0
  143. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/inspector.d.ts +264 -0
  144. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/inspector.generated.d.ts +4406 -0
  145. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/module.d.ts +726 -0
  146. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/net.d.ts +970 -0
  147. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/os.d.ts +498 -0
  148. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/package.json +155 -0
  149. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/path/posix.d.ts +8 -0
  150. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/path/win32.d.ts +8 -0
  151. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/path.d.ts +178 -0
  152. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/perf_hooks.d.ts +604 -0
  153. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/process.d.ts +2217 -0
  154. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/punycode.d.ts +89 -0
  155. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/querystring.d.ts +139 -0
  156. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/quic.d.ts +978 -0
  157. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/readline/promises.d.ts +158 -0
  158. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/readline.d.ts +508 -0
  159. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/repl.d.ts +420 -0
  160. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/sea.d.ts +47 -0
  161. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/sqlite.d.ts +1123 -0
  162. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/stream/consumers.d.ts +114 -0
  163. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/stream/iter.d.ts +451 -0
  164. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/stream/promises.d.ts +211 -0
  165. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/stream/web.d.ts +300 -0
  166. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/stream.d.ts +1806 -0
  167. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/string_decoder.d.ts +27 -0
  168. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/test/reporters.d.ts +59 -0
  169. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/test.d.ts +2389 -0
  170. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/timers/promises.d.ts +93 -0
  171. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/timers.d.ts +149 -0
  172. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/tls.d.ts +1193 -0
  173. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/trace_events.d.ts +103 -0
  174. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +462 -0
  175. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  176. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
  177. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/ts5.6/index.d.ts +117 -0
  178. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  179. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/ts5.7/index.d.ts +117 -0
  180. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/tty.d.ts +225 -0
  181. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/url.d.ts +556 -0
  182. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/util/types.d.ts +558 -0
  183. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/util.d.ts +1677 -0
  184. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/v8.d.ts +1062 -0
  185. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/vm.d.ts +1136 -0
  186. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/wasi.d.ts +131 -0
  187. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/abortcontroller.d.ts +59 -0
  188. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/blob.d.ts +23 -0
  189. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/console.d.ts +9 -0
  190. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
  191. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/domexception.d.ts +83 -0
  192. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
  193. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/events.d.ts +106 -0
  194. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/fetch.d.ts +69 -0
  195. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
  196. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
  197. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
  198. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/performance.d.ts +45 -0
  199. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  200. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/streams.d.ts +115 -0
  201. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/timers.d.ts +44 -0
  202. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/url.d.ts +24 -0
  203. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/worker_threads.d.ts +669 -0
  204. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/zlib/iter.d.ts +131 -0
  205. package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/zlib.d.ts +589 -0
  206. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/CHANGELOG.md +62 -0
  207. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/README.md +297 -5
  208. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/axios.js +728 -170
  209. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/axios.min.js +3 -3
  210. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/axios.min.js.map +1 -1
  211. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/browser/axios.cjs +871 -188
  212. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/esm/axios.js +871 -188
  213. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/esm/axios.min.js +2 -2
  214. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  215. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/node/axios.cjs +1037 -225
  216. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/index.d.cts +102 -74
  217. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/index.d.ts +100 -68
  218. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/adapters/fetch.js +64 -11
  219. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/adapters/http.js +140 -67
  220. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/adapters/xhr.js +52 -3
  221. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/Axios.js +43 -20
  222. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/AxiosError.js +33 -2
  223. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/AxiosHeaders.js +124 -1
  224. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/InterceptorManager.js +107 -8
  225. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/buildFullPath.js +41 -15
  226. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/dispatchRequest.js +8 -2
  227. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/mergeConfig.js +19 -4
  228. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/methodList.js +17 -0
  229. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/setFormDataHeaders.js +27 -0
  230. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/defaults/index.js +2 -1
  231. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/env/data.js +1 -1
  232. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/Http2Sessions.js +2 -0
  233. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/HttpStatusCode.js +12 -1
  234. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/combineURLs.js +11 -3
  235. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/composeSignals.js +12 -1
  236. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +115 -54
  237. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/formDataToJSON.js +11 -5
  238. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/fromDataURI.js +5 -4
  239. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js +24 -0
  240. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/parseHeaders.js +5 -3
  241. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/progressEventReducer.js +4 -4
  242. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/resolveConfig.js +5 -17
  243. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/shouldBypassProxy.js +300 -5
  244. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/throttle.js +3 -2
  245. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/toFormData.js +17 -23
  246. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/platform/node/classes/Buffer.js +11 -0
  247. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/utils.js +151 -18
  248. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/package.json +21 -19
  249. package/node_modules/@larksuiteoapi/node-sdk/node_modules/form-data/CHANGELOG.md +1 -18
  250. package/node_modules/@larksuiteoapi/node-sdk/node_modules/form-data/README.md +41 -46
  251. package/node_modules/@larksuiteoapi/node-sdk/node_modules/form-data/index.d.ts +2 -13
  252. package/node_modules/@larksuiteoapi/node-sdk/node_modules/form-data/lib/form_data.js +83 -75
  253. package/node_modules/@larksuiteoapi/node-sdk/node_modules/form-data/lib/populate.js +1 -1
  254. package/node_modules/@larksuiteoapi/node-sdk/node_modules/form-data/package.json +7 -6
  255. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/README.md +553 -266
  256. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/light/protobuf.js +1985 -3177
  257. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
  258. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
  259. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
  260. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/minimal/protobuf.js +1244 -1966
  261. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
  262. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/minimal/protobuf.min.js +3 -3
  263. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
  264. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/protobuf.js +2005 -3330
  265. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/protobuf.js.map +1 -1
  266. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/protobuf.min.js +3 -3
  267. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
  268. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/descriptor/README.md +70 -3
  269. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/descriptor/index.d.ts +193 -0
  270. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/descriptor/index.js +1185 -1
  271. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/descriptor/test.js +54 -0
  272. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/google/api/annotations.json +1 -3
  273. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/google/api/http.json +1 -2
  274. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/google/protobuf/api.json +6 -12
  275. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/google/protobuf/descriptor.json +87 -170
  276. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/google/protobuf/descriptor.proto +8 -0
  277. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/google/protobuf/source_context.json +1 -2
  278. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/google/protobuf/type.json +7 -14
  279. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/index.d.ts +703 -1066
  280. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/package.json +52 -25
  281. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/scripts/postinstall.js +32 -0
  282. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/common.js +8 -14
  283. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/converter.js +51 -85
  284. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/decoder.js +61 -205
  285. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/encoder.js +7 -27
  286. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/enum.js +5 -18
  287. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/field.js +19 -71
  288. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/index-light.js +29 -29
  289. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/index-minimal.js +13 -12
  290. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/index.js +6 -6
  291. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/mapfield.js +8 -26
  292. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/message.js +11 -5
  293. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/method.js +7 -30
  294. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/namespace.js +10 -26
  295. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/object.js +31 -41
  296. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/oneof.js +1 -12
  297. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/parse.js +47 -169
  298. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/reader.js +50 -412
  299. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/reader_buffer.js +5 -31
  300. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/root.js +4 -16
  301. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/rpc/service.js +5 -18
  302. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/service.js +2 -15
  303. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/tokenize.js +1 -6
  304. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/type.js +36 -80
  305. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/typescript.jsdoc +15 -0
  306. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/longbits.js +6 -10
  307. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/minimal.js +54 -71
  308. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util.js +17 -51
  309. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/verifier.js +14 -19
  310. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/wrappers.js +3 -2
  311. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/writer.js +191 -424
  312. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/writer_buffer.js +26 -41
  313. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/tsconfig.json +5 -3
  314. package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/CHANGELOG.md +0 -11
  315. package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/dist/qs.js +17 -17
  316. package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/lib/parse.js +8 -19
  317. package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/lib/utils.js +8 -47
  318. package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/package.json +5 -6
  319. package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/test/parse.js +0 -230
  320. package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/test/utils.js +0 -194
  321. package/node_modules/@larksuiteoapi/node-sdk/node_modules/safe-buffer/LICENSE +21 -0
  322. package/node_modules/@larksuiteoapi/node-sdk/node_modules/safe-buffer/README.md +584 -0
  323. package/node_modules/@larksuiteoapi/node-sdk/node_modules/safe-buffer/index.d.ts +187 -0
  324. package/node_modules/@larksuiteoapi/node-sdk/node_modules/safe-buffer/index.js +65 -0
  325. package/node_modules/@larksuiteoapi/node-sdk/node_modules/safe-buffer/package.json +51 -0
  326. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/LICENSE +21 -0
  327. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/README.md +6 -0
  328. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/agent.d.ts +30 -0
  329. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/api.d.ts +43 -0
  330. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/balanced-pool.d.ts +30 -0
  331. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/cache-interceptor.d.ts +179 -0
  332. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/cache.d.ts +36 -0
  333. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/client-stats.d.ts +15 -0
  334. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/client.d.ts +129 -0
  335. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/connector.d.ts +36 -0
  336. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/content-type.d.ts +21 -0
  337. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/cookies.d.ts +30 -0
  338. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
  339. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/dispatcher.d.ts +253 -0
  340. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/dispatcher1-wrapper.d.ts +7 -0
  341. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
  342. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/errors.d.ts +177 -0
  343. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/eventsource.d.ts +66 -0
  344. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/fetch.d.ts +231 -0
  345. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/formdata.d.ts +108 -0
  346. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  347. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/global-origin.d.ts +7 -0
  348. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/h2c-client.d.ts +73 -0
  349. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/handlers.d.ts +14 -0
  350. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/header.d.ts +165 -0
  351. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/index.d.ts +93 -0
  352. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/interceptors.d.ts +80 -0
  353. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/mock-agent.d.ts +68 -0
  354. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/mock-call-history.d.ts +111 -0
  355. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/mock-client.d.ts +27 -0
  356. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/mock-errors.d.ts +12 -0
  357. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/mock-interceptor.d.ts +94 -0
  358. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/mock-pool.d.ts +27 -0
  359. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/package.json +55 -0
  360. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/patch.d.ts +29 -0
  361. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/pool-stats.d.ts +19 -0
  362. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/pool.d.ts +39 -0
  363. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/proxy-agent.d.ts +29 -0
  364. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/readable.d.ts +68 -0
  365. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/retry-agent.d.ts +8 -0
  366. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/retry-handler.d.ts +125 -0
  367. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/round-robin-pool.d.ts +39 -0
  368. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/snapshot-agent.d.ts +113 -0
  369. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/socks5-proxy-agent.d.ts +25 -0
  370. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/util.d.ts +18 -0
  371. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/utility.d.ts +7 -0
  372. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/webidl.d.ts +346 -0
  373. package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/websocket.d.ts +188 -0
  374. package/node_modules/@larksuiteoapi/node-sdk/node_modules/ws/lib/permessage-deflate.js +3 -1
  375. package/node_modules/@larksuiteoapi/node-sdk/node_modules/ws/package.json +1 -1
  376. package/node_modules/@larksuiteoapi/node-sdk/package.json +1 -1
  377. package/node_modules/@larksuiteoapi/node-sdk/types/index.d.ts +698 -12522
  378. package/node_modules/typebox/build/compile/validator.d.mts +4 -1
  379. package/node_modules/typebox/build/guard/guard.d.mts +1 -1
  380. package/node_modules/typebox/build/guard/guard.mjs +2 -5
  381. package/node_modules/typebox/build/guard/string.mjs +4 -16
  382. package/node_modules/typebox/build/schema/engine/_functions.mjs +15 -34
  383. package/node_modules/typebox/build/type/action/readonly_object.d.mts +0 -5
  384. package/node_modules/typebox/build/type/action/readonly_object.mjs +0 -8
  385. package/node_modules/typebox/build/typebox.d.mts +1 -1
  386. package/node_modules/typebox/build/typebox.mjs +1 -1
  387. package/node_modules/typebox/package.json +1 -1
  388. package/node_modules/typebox/readme.md +32 -29
  389. package/openclaw.plugin.json +105 -190
  390. package/package.json +10 -26
  391. package/skills/feishu-doc/SKILL.md +0 -4
  392. package/skills/feishu-drive/SKILL.md +2 -5
  393. package/dist/accounts-u9X5Wsan.js +0 -469
  394. package/dist/app-registration-cN1bVV6s.js +0 -201
  395. package/dist/channel-CScE82zY.js +0 -2795
  396. package/dist/channel.runtime-B21e1E0r.js +0 -889
  397. package/dist/client-Dcbs6vml.js +0 -248
  398. package/dist/conversation-id-BeJL-wq7.js +0 -146
  399. package/dist/doctor-contract-BiD9tyIv.js +0 -102
  400. package/dist/doctor-contract-api.js +0 -2
  401. package/dist/drive-hSi_Utp0.js +0 -1075
  402. package/dist/json-response-CheljwGr.js +0 -9
  403. package/dist/media-CEUraFOR.js +0 -1348
  404. package/dist/monitor-DngbaA6a.js +0 -62
  405. package/dist/monitor.account-BnTWCw55.js +0 -7153
  406. package/dist/monitor.startup-CqH2tiJq.js +0 -143
  407. package/dist/probe-p3POS2RN.js +0 -219
  408. package/dist/secret-contract-BCpDLdg9.js +0 -73
  409. package/dist/security-audit-D7WK_BHh.js +0 -11
  410. package/dist/security-audit-shared-BgpY7AiJ.js +0 -33
  411. package/dist/send-result-B9_BpUPx.js +0 -770
  412. package/dist/session-conversation-BksWrfzm.js +0 -27
  413. package/dist/subagent-hooks-Cx1cX7rW.js +0 -239
  414. package/dist/thread-bindings-N3wkgkIN.js +0 -220
  415. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/README.md +0 -70
  416. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/descriptor.d.ts +0 -87
  417. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/descriptor.generated.d.ts +0 -417
  418. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/descriptor.js +0 -1356
  419. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/protojson.LICENSE +0 -201
  420. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/protojson.d.ts +0 -20
  421. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/protojson.generated.d.ts +0 -49
  422. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/protojson.js +0 -951
  423. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/textformat.d.ts +0 -19
  424. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/textformat.generated.d.ts +0 -33
  425. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/textformat.js +0 -1276
  426. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/google/protobuf/compiler/plugin.json +0 -126
  427. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/google/protobuf/compiler/plugin.proto +0 -47
  428. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/typescript.js +0 -25
  429. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/aspromise.d.ts +0 -13
  430. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/aspromise.js +0 -52
  431. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/base64.d.ts +0 -32
  432. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/base64.js +0 -146
  433. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/codegen.d.ts +0 -31
  434. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/codegen.js +0 -118
  435. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/eventemitter.d.ts +0 -45
  436. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/eventemitter.js +0 -86
  437. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/fetch.d.ts +0 -56
  438. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/fetch.js +0 -112
  439. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/float.js +0 -335
  440. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/path.d.ts +0 -22
  441. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/path.js +0 -100
  442. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/pool.d.ts +0 -32
  443. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/pool.js +0 -48
  444. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/utf8.d.ts +0 -24
  445. package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/utf8.js +0 -190
  446. package/node_modules/mdast-util-from-markdown/dev/index.d.ts +0 -23
  447. package/node_modules/mdast-util-from-markdown/dev/index.js +0 -2
  448. package/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts +0 -53
  449. package/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts.map +0 -1
  450. package/node_modules/mdast-util-from-markdown/dev/lib/index.js +0 -1348
  451. package/node_modules/mdast-util-from-markdown/dev/lib/types.d.ts +0 -295
  452. package/node_modules/mdast-util-from-markdown/dev/lib/types.js +0 -2
  453. package/node_modules/mdast-util-from-markdown/index.d.ts +0 -23
  454. package/node_modules/mdast-util-from-markdown/index.js +0 -2
  455. package/node_modules/mdast-util-from-markdown/lib/index.d.ts +0 -53
  456. package/node_modules/mdast-util-from-markdown/lib/index.d.ts.map +0 -1
  457. package/node_modules/mdast-util-from-markdown/lib/index.js +0 -1177
  458. package/node_modules/mdast-util-from-markdown/lib/types.d.ts +0 -295
  459. package/node_modules/mdast-util-from-markdown/lib/types.js +0 -2
  460. package/node_modules/mdast-util-from-markdown/license +0 -22
  461. package/node_modules/mdast-util-from-markdown/node_modules/@types/debug/README.md +0 -69
  462. package/node_modules/mdast-util-from-markdown/node_modules/@types/debug/index.d.ts +0 -50
  463. package/node_modules/mdast-util-from-markdown/node_modules/@types/debug/package.json +0 -58
  464. package/node_modules/mdast-util-from-markdown/node_modules/@types/mdast/LICENSE +0 -21
  465. package/node_modules/mdast-util-from-markdown/node_modules/@types/mdast/README.md +0 -15
  466. package/node_modules/mdast-util-from-markdown/node_modules/@types/mdast/index.d.ts +0 -1123
  467. package/node_modules/mdast-util-from-markdown/node_modules/@types/mdast/package.json +0 -47
  468. package/node_modules/mdast-util-from-markdown/node_modules/@types/ms/LICENSE +0 -21
  469. package/node_modules/mdast-util-from-markdown/node_modules/@types/ms/README.md +0 -82
  470. package/node_modules/mdast-util-from-markdown/node_modules/@types/ms/index.d.ts +0 -63
  471. package/node_modules/mdast-util-from-markdown/node_modules/@types/ms/package.json +0 -26
  472. package/node_modules/mdast-util-from-markdown/node_modules/@types/unist/LICENSE +0 -21
  473. package/node_modules/mdast-util-from-markdown/node_modules/@types/unist/README.md +0 -15
  474. package/node_modules/mdast-util-from-markdown/node_modules/@types/unist/index.d.ts +0 -119
  475. package/node_modules/mdast-util-from-markdown/node_modules/@types/unist/package.json +0 -60
  476. package/node_modules/mdast-util-from-markdown/node_modules/character-entities/index.d.ts +0 -6
  477. package/node_modules/mdast-util-from-markdown/node_modules/character-entities/index.js +0 -2132
  478. package/node_modules/mdast-util-from-markdown/node_modules/character-entities/license +0 -22
  479. package/node_modules/mdast-util-from-markdown/node_modules/character-entities/package.json +0 -78
  480. package/node_modules/mdast-util-from-markdown/node_modules/character-entities/readme.md +0 -152
  481. package/node_modules/mdast-util-from-markdown/node_modules/debug/LICENSE +0 -20
  482. package/node_modules/mdast-util-from-markdown/node_modules/debug/README.md +0 -481
  483. package/node_modules/mdast-util-from-markdown/node_modules/debug/package.json +0 -64
  484. package/node_modules/mdast-util-from-markdown/node_modules/debug/src/browser.js +0 -272
  485. package/node_modules/mdast-util-from-markdown/node_modules/debug/src/common.js +0 -292
  486. package/node_modules/mdast-util-from-markdown/node_modules/debug/src/index.js +0 -10
  487. package/node_modules/mdast-util-from-markdown/node_modules/debug/src/node.js +0 -263
  488. package/node_modules/mdast-util-from-markdown/node_modules/decode-named-character-reference/index.d.ts +0 -13
  489. package/node_modules/mdast-util-from-markdown/node_modules/decode-named-character-reference/index.d.ts.map +0 -1
  490. package/node_modules/mdast-util-from-markdown/node_modules/decode-named-character-reference/index.dom.d.ts +0 -6
  491. package/node_modules/mdast-util-from-markdown/node_modules/decode-named-character-reference/index.dom.d.ts.map +0 -1
  492. package/node_modules/mdast-util-from-markdown/node_modules/decode-named-character-reference/index.dom.js +0 -32
  493. package/node_modules/mdast-util-from-markdown/node_modules/decode-named-character-reference/index.js +0 -19
  494. package/node_modules/mdast-util-from-markdown/node_modules/decode-named-character-reference/license +0 -22
  495. package/node_modules/mdast-util-from-markdown/node_modules/decode-named-character-reference/package.json +0 -90
  496. package/node_modules/mdast-util-from-markdown/node_modules/decode-named-character-reference/readme.md +0 -136
  497. package/node_modules/mdast-util-from-markdown/node_modules/dequal/dist/index.js +0 -86
  498. package/node_modules/mdast-util-from-markdown/node_modules/dequal/dist/index.min.js +0 -1
  499. package/node_modules/mdast-util-from-markdown/node_modules/dequal/dist/index.mjs +0 -84
  500. package/node_modules/mdast-util-from-markdown/node_modules/dequal/index.d.ts +0 -1
  501. package/node_modules/mdast-util-from-markdown/node_modules/dequal/license +0 -21
  502. package/node_modules/mdast-util-from-markdown/node_modules/dequal/lite/index.d.ts +0 -1
  503. package/node_modules/mdast-util-from-markdown/node_modules/dequal/lite/index.js +0 -31
  504. package/node_modules/mdast-util-from-markdown/node_modules/dequal/lite/index.min.js +0 -1
  505. package/node_modules/mdast-util-from-markdown/node_modules/dequal/lite/index.mjs +0 -29
  506. package/node_modules/mdast-util-from-markdown/node_modules/dequal/package.json +0 -57
  507. package/node_modules/mdast-util-from-markdown/node_modules/dequal/readme.md +0 -112
  508. package/node_modules/mdast-util-from-markdown/node_modules/devlop/lib/default.js +0 -9
  509. package/node_modules/mdast-util-from-markdown/node_modules/devlop/lib/development.d.ts +0 -84
  510. package/node_modules/mdast-util-from-markdown/node_modules/devlop/lib/development.js +0 -238
  511. package/node_modules/mdast-util-from-markdown/node_modules/devlop/license +0 -22
  512. package/node_modules/mdast-util-from-markdown/node_modules/devlop/package.json +0 -80
  513. package/node_modules/mdast-util-from-markdown/node_modules/devlop/readme.md +0 -360
  514. package/node_modules/mdast-util-from-markdown/node_modules/mdast-util-to-string/index.d.ts +0 -2
  515. package/node_modules/mdast-util-from-markdown/node_modules/mdast-util-to-string/index.js +0 -5
  516. package/node_modules/mdast-util-from-markdown/node_modules/mdast-util-to-string/lib/index.d.ts +0 -31
  517. package/node_modules/mdast-util-from-markdown/node_modules/mdast-util-to-string/lib/index.js +0 -108
  518. package/node_modules/mdast-util-from-markdown/node_modules/mdast-util-to-string/license +0 -22
  519. package/node_modules/mdast-util-from-markdown/node_modules/mdast-util-to-string/package.json +0 -78
  520. package/node_modules/mdast-util-from-markdown/node_modules/mdast-util-to-string/readme.md +0 -218
  521. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/index.d.ts +0 -82
  522. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/index.d.ts.map +0 -1
  523. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/index.js +0 -68
  524. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/compile.d.ts +0 -16
  525. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/compile.d.ts.map +0 -1
  526. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/compile.js +0 -1152
  527. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/constructs.d.ts +0 -73
  528. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/constructs.d.ts.map +0 -1
  529. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/constructs.js +0 -101
  530. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/create-tokenizer.d.ts +0 -46
  531. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/create-tokenizer.d.ts.map +0 -1
  532. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/create-tokenizer.js +0 -717
  533. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/content.d.ts +0 -4
  534. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/content.d.ts.map +0 -1
  535. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/content.js +0 -99
  536. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/document.d.ts +0 -10
  537. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/document.d.ts.map +0 -1
  538. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/document.js +0 -445
  539. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/flow.d.ts +0 -4
  540. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/flow.d.ts.map +0 -1
  541. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/flow.js +0 -86
  542. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/text.d.ts +0 -8
  543. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/text.d.ts.map +0 -1
  544. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/text.js +0 -244
  545. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/parse.d.ts +0 -10
  546. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/parse.d.ts.map +0 -1
  547. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/parse.js +0 -58
  548. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/postprocess.d.ts +0 -9
  549. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/postprocess.d.ts.map +0 -1
  550. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/postprocess.js +0 -19
  551. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/preprocess.d.ts +0 -13
  552. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/preprocess.d.ts.map +0 -1
  553. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/preprocess.js +0 -141
  554. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/stream.d.ts +0 -35
  555. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/stream.d.ts.map +0 -1
  556. package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/stream.js +0 -270
  557. package/node_modules/mdast-util-from-markdown/node_modules/micromark/index.d.ts +0 -82
  558. package/node_modules/mdast-util-from-markdown/node_modules/micromark/index.d.ts.map +0 -1
  559. package/node_modules/mdast-util-from-markdown/node_modules/micromark/index.js +0 -60
  560. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/compile.d.ts +0 -16
  561. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/compile.d.ts.map +0 -1
  562. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/compile.js +0 -1060
  563. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/constructs.d.ts +0 -73
  564. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/constructs.d.ts.map +0 -1
  565. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/constructs.js +0 -85
  566. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/create-tokenizer.d.ts +0 -46
  567. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/create-tokenizer.d.ts.map +0 -1
  568. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/create-tokenizer.js +0 -611
  569. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/content.d.ts +0 -4
  570. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/content.d.ts.map +0 -1
  571. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/content.js +0 -79
  572. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/document.d.ts +0 -10
  573. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/document.d.ts.map +0 -1
  574. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/document.js +0 -362
  575. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/flow.d.ts +0 -4
  576. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/flow.d.ts.map +0 -1
  577. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/flow.js +0 -58
  578. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/text.d.ts +0 -8
  579. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/text.d.ts.map +0 -1
  580. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/text.js +0 -212
  581. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/parse.d.ts +0 -10
  582. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/parse.d.ts.map +0 -1
  583. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/parse.js +0 -56
  584. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/postprocess.d.ts +0 -9
  585. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/postprocess.d.ts.map +0 -1
  586. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/postprocess.js +0 -18
  587. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/preprocess.d.ts +0 -13
  588. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/preprocess.d.ts.map +0 -1
  589. package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/preprocess.js +0 -115
  590. package/node_modules/mdast-util-from-markdown/node_modules/micromark/license +0 -22
  591. package/node_modules/mdast-util-from-markdown/node_modules/micromark/package.json +0 -100
  592. package/node_modules/mdast-util-from-markdown/node_modules/micromark/readme.md +0 -488
  593. package/node_modules/mdast-util-from-markdown/node_modules/micromark/stream.d.ts +0 -35
  594. package/node_modules/mdast-util-from-markdown/node_modules/micromark/stream.d.ts.map +0 -1
  595. package/node_modules/mdast-util-from-markdown/node_modules/micromark/stream.js +0 -256
  596. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/index.d.ts +0 -23
  597. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/index.d.ts.map +0 -1
  598. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/index.js +0 -22
  599. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts +0 -4
  600. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts.map +0 -1
  601. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/attention.js +0 -300
  602. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts +0 -4
  603. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts.map +0 -1
  604. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/autolink.js +0 -269
  605. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts +0 -4
  606. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts.map +0 -1
  607. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/blank-line.js +0 -62
  608. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts +0 -4
  609. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts.map +0 -1
  610. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/block-quote.js +0 -162
  611. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts +0 -4
  612. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts.map +0 -1
  613. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/character-escape.js +0 -69
  614. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts +0 -4
  615. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts.map +0 -1
  616. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/character-reference.js +0 -166
  617. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts +0 -4
  618. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts.map +0 -1
  619. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/code-fenced.js +0 -514
  620. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts +0 -4
  621. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts.map +0 -1
  622. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/code-indented.js +0 -202
  623. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts +0 -4
  624. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts.map +0 -1
  625. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/code-text.js +0 -257
  626. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/content.d.ts +0 -7
  627. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/content.d.ts.map +0 -1
  628. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/content.js +0 -185
  629. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts +0 -4
  630. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts.map +0 -1
  631. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/definition.js +0 -295
  632. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts +0 -4
  633. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts.map +0 -1
  634. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.js +0 -65
  635. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts +0 -4
  636. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts.map +0 -1
  637. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/heading-atx.js +0 -233
  638. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts +0 -4
  639. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts.map +0 -1
  640. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/html-flow.js +0 -989
  641. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts +0 -4
  642. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts.map +0 -1
  643. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/html-text.js +0 -783
  644. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts +0 -4
  645. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts.map +0 -1
  646. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/label-end.js +0 -656
  647. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts +0 -4
  648. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts.map +0 -1
  649. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/label-start-image.js +0 -110
  650. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts +0 -4
  651. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts.map +0 -1
  652. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/label-start-link.js +0 -62
  653. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts +0 -4
  654. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts.map +0 -1
  655. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/line-ending.js +0 -34
  656. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/list.d.ts +0 -4
  657. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/list.d.ts.map +0 -1
  658. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/list.js +0 -306
  659. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts +0 -4
  660. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts.map +0 -1
  661. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/setext-underline.js +0 -210
  662. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts +0 -4
  663. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts.map +0 -1
  664. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/thematic-break.js +0 -120
  665. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/index.d.ts +0 -23
  666. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/index.d.ts.map +0 -1
  667. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/index.js +0 -22
  668. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/attention.d.ts +0 -4
  669. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/attention.d.ts.map +0 -1
  670. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/attention.js +0 -241
  671. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/autolink.d.ts +0 -4
  672. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/autolink.d.ts.map +0 -1
  673. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/autolink.js +0 -233
  674. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/blank-line.d.ts +0 -4
  675. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/blank-line.d.ts.map +0 -1
  676. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/blank-line.js +0 -61
  677. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/block-quote.d.ts +0 -4
  678. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/block-quote.d.ts.map +0 -1
  679. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/block-quote.js +0 -143
  680. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/character-escape.d.ts +0 -4
  681. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/character-escape.d.ts.map +0 -1
  682. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/character-escape.js +0 -64
  683. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/character-reference.d.ts +0 -4
  684. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/character-reference.d.ts.map +0 -1
  685. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/character-reference.js +0 -149
  686. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts +0 -4
  687. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts.map +0 -1
  688. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/code-fenced.js +0 -460
  689. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/code-indented.d.ts +0 -4
  690. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/code-indented.d.ts.map +0 -1
  691. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/code-indented.js +0 -177
  692. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/code-text.d.ts +0 -4
  693. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/code-text.d.ts.map +0 -1
  694. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/code-text.js +0 -225
  695. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/content.d.ts +0 -7
  696. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/content.d.ts.map +0 -1
  697. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/content.js +0 -163
  698. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/definition.d.ts +0 -4
  699. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/definition.d.ts.map +0 -1
  700. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/definition.js +0 -254
  701. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts +0 -4
  702. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts.map +0 -1
  703. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +0 -60
  704. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts +0 -4
  705. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts.map +0 -1
  706. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/heading-atx.js +0 -195
  707. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/html-flow.d.ts +0 -4
  708. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/html-flow.d.ts.map +0 -1
  709. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/html-flow.js +0 -876
  710. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/html-text.d.ts +0 -4
  711. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/html-text.d.ts.map +0 -1
  712. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/html-text.js +0 -678
  713. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/label-end.d.ts +0 -4
  714. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/label-end.d.ts.map +0 -1
  715. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/label-end.js +0 -560
  716. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts +0 -4
  717. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts.map +0 -1
  718. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/label-start-image.js +0 -102
  719. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts +0 -4
  720. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts.map +0 -1
  721. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/label-start-link.js +0 -55
  722. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/line-ending.d.ts +0 -4
  723. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/line-ending.d.ts.map +0 -1
  724. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/line-ending.js +0 -33
  725. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/list.d.ts +0 -4
  726. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/list.d.ts.map +0 -1
  727. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/list.js +0 -213
  728. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts +0 -4
  729. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts.map +0 -1
  730. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/setext-underline.js +0 -185
  731. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts +0 -4
  732. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts.map +0 -1
  733. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/thematic-break.js +0 -102
  734. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/license +0 -22
  735. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/package.json +0 -74
  736. package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/readme.md +0 -171
  737. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-destination/dev/index.d.ts +0 -42
  738. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-destination/dev/index.d.ts.map +0 -1
  739. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-destination/dev/index.js +0 -255
  740. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-destination/index.d.ts +0 -42
  741. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-destination/index.d.ts.map +0 -1
  742. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-destination/index.js +0 -206
  743. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-destination/license +0 -22
  744. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-destination/package.json +0 -57
  745. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-destination/readme.md +0 -234
  746. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-label/dev/index.d.ts +0 -37
  747. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-label/dev/index.d.ts.map +0 -1
  748. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-label/dev/index.js +0 -172
  749. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-label/index.d.ts +0 -37
  750. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-label/index.d.ts.map +0 -1
  751. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-label/index.js +0 -148
  752. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-label/license +0 -22
  753. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-label/package.json +0 -60
  754. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-label/readme.md +0 -224
  755. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-space/dev/index.d.ts +0 -37
  756. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-space/dev/index.d.ts.map +0 -1
  757. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-space/dev/index.js +0 -67
  758. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-space/index.d.ts +0 -37
  759. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-space/index.d.ts.map +0 -1
  760. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-space/index.js +0 -64
  761. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-space/license +0 -22
  762. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-space/package.json +0 -55
  763. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-space/readme.md +0 -225
  764. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-title/dev/index.d.ts +0 -36
  765. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-title/dev/index.d.ts.map +0 -1
  766. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-title/dev/index.js +0 -169
  767. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-title/index.d.ts +0 -36
  768. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-title/index.d.ts.map +0 -1
  769. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-title/index.js +0 -158
  770. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-title/license +0 -22
  771. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-title/package.json +0 -58
  772. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-title/readme.md +0 -229
  773. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-whitespace/dev/index.d.ts +0 -22
  774. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-whitespace/dev/index.d.ts.map +0 -1
  775. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-whitespace/dev/index.js +0 -53
  776. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-whitespace/index.d.ts +0 -22
  777. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-whitespace/index.d.ts.map +0 -1
  778. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-whitespace/index.js +0 -44
  779. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-whitespace/license +0 -22
  780. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-whitespace/package.json +0 -57
  781. package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-whitespace/readme.md +0 -205
  782. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-character/dev/index.d.ts +0 -195
  783. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-character/dev/index.d.ts.map +0 -1
  784. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-character/dev/index.js +0 -252
  785. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-character/index.d.ts +0 -195
  786. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-character/index.d.ts.map +0 -1
  787. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-character/index.js +0 -246
  788. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-character/license +0 -22
  789. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-character/package.json +0 -57
  790. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-character/readme.md +0 -446
  791. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-chunked/dev/index.d.ts +0 -41
  792. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-chunked/dev/index.d.ts.map +0 -1
  793. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-chunked/dev/index.js +0 -89
  794. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-chunked/index.d.ts +0 -41
  795. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-chunked/index.d.ts.map +0 -1
  796. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-chunked/index.js +0 -81
  797. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-chunked/license +0 -22
  798. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-chunked/package.json +0 -57
  799. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-chunked/readme.md +0 -219
  800. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-classify-character/dev/index.d.ts +0 -18
  801. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-classify-character/dev/index.d.ts.map +0 -1
  802. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-classify-character/dev/index.js +0 -38
  803. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-classify-character/index.d.ts +0 -18
  804. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-classify-character/index.d.ts.map +0 -1
  805. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-classify-character/index.js +0 -27
  806. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-classify-character/license +0 -22
  807. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-classify-character/package.json +0 -59
  808. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-classify-character/readme.md +0 -205
  809. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-combine-extensions/index.d.ts +0 -22
  810. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-combine-extensions/index.d.ts.map +0 -1
  811. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-combine-extensions/index.js +0 -143
  812. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-combine-extensions/license +0 -22
  813. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-combine-extensions/package.json +0 -52
  814. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-combine-extensions/readme.md +0 -201
  815. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts +0 -16
  816. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts.map +0 -1
  817. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference/dev/index.js +0 -42
  818. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts +0 -16
  819. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts.map +0 -1
  820. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -32
  821. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference/license +0 -22
  822. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference/package.json +0 -59
  823. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference/readme.md +0 -184
  824. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-string/dev/index.d.ts +0 -14
  825. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-string/dev/index.d.ts.map +0 -1
  826. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-string/dev/index.js +0 -53
  827. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-string/index.d.ts +0 -14
  828. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-string/index.d.ts.map +0 -1
  829. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-string/index.js +0 -45
  830. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-string/license +0 -22
  831. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-string/package.json +0 -63
  832. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-string/readme.md +0 -179
  833. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-encode/index.d.ts +0 -14
  834. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-encode/index.d.ts.map +0 -1
  835. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-encode/index.js +0 -33
  836. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-encode/license +0 -22
  837. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-encode/package.json +0 -47
  838. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-encode/readme.md +0 -176
  839. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-html-tag-name/index.d.ts +0 -30
  840. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-html-tag-name/index.d.ts.map +0 -1
  841. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-html-tag-name/index.js +0 -93
  842. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-html-tag-name/license +0 -22
  843. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-html-tag-name/package.json +0 -47
  844. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-html-tag-name/readme.md +0 -193
  845. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier/dev/index.d.ts +0 -21
  846. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier/dev/index.d.ts.map +0 -1
  847. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier/dev/index.js +0 -38
  848. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier/index.d.ts +0 -21
  849. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier/index.d.ts.map +0 -1
  850. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier/index.js +0 -33
  851. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier/license +0 -22
  852. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier/package.json +0 -58
  853. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier/readme.md +0 -187
  854. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-resolve-all/index.d.ts +0 -22
  855. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-resolve-all/index.d.ts.map +0 -1
  856. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-resolve-all/index.js +0 -32
  857. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-resolve-all/license +0 -22
  858. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-resolve-all/package.json +0 -48
  859. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-resolve-all/readme.md +0 -238
  860. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri/dev/index.d.ts +0 -36
  861. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri/dev/index.d.ts.map +0 -1
  862. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri/dev/index.js +0 -124
  863. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri/index.d.ts +0 -36
  864. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri/index.d.ts.map +0 -1
  865. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri/index.js +0 -107
  866. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri/license +0 -22
  867. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri/package.json +0 -59
  868. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri/readme.md +0 -214
  869. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/dev/index.d.ts +0 -12
  870. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/dev/index.d.ts.map +0 -1
  871. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/dev/index.js +0 -284
  872. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts +0 -161
  873. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts.map +0 -1
  874. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.js +0 -288
  875. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/index.d.ts +0 -12
  876. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/index.d.ts.map +0 -1
  877. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/index.js +0 -228
  878. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts +0 -161
  879. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts.map +0 -1
  880. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +0 -251
  881. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/license +0 -22
  882. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/package.json +0 -60
  883. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/readme.md +0 -181
  884. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/codes.d.ts +0 -139
  885. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/codes.d.ts.map +0 -1
  886. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/codes.js +0 -158
  887. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/constants.d.ts +0 -37
  888. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/constants.d.ts.map +0 -1
  889. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/constants.js +0 -44
  890. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/default.d.ts +0 -5
  891. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/default.d.ts.map +0 -1
  892. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/default.js +0 -4
  893. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/types.d.ts +0 -106
  894. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/types.d.ts.map +0 -1
  895. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/types.js +0 -453
  896. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/values.d.ts +0 -102
  897. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/values.d.ts.map +0 -1
  898. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/values.js +0 -109
  899. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/license +0 -22
  900. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/package.json +0 -43
  901. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/readme.md +0 -168
  902. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-types/index.d.ts +0 -1312
  903. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-types/index.js +0 -2
  904. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-types/license +0 -22
  905. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-types/package.json +0 -71
  906. package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-types/readme.md +0 -151
  907. package/node_modules/mdast-util-from-markdown/node_modules/ms/index.js +0 -162
  908. package/node_modules/mdast-util-from-markdown/node_modules/ms/license.md +0 -21
  909. package/node_modules/mdast-util-from-markdown/node_modules/ms/package.json +0 -38
  910. package/node_modules/mdast-util-from-markdown/node_modules/ms/readme.md +0 -59
  911. package/node_modules/mdast-util-from-markdown/node_modules/unist-util-stringify-position/index.d.ts +0 -1
  912. package/node_modules/mdast-util-from-markdown/node_modules/unist-util-stringify-position/index.js +0 -1
  913. package/node_modules/mdast-util-from-markdown/node_modules/unist-util-stringify-position/lib/index.d.ts +0 -61
  914. package/node_modules/mdast-util-from-markdown/node_modules/unist-util-stringify-position/lib/index.js +0 -84
  915. package/node_modules/mdast-util-from-markdown/node_modules/unist-util-stringify-position/license +0 -22
  916. package/node_modules/mdast-util-from-markdown/node_modules/unist-util-stringify-position/package.json +0 -80
  917. package/node_modules/mdast-util-from-markdown/node_modules/unist-util-stringify-position/readme.md +0 -206
  918. package/node_modules/mdast-util-from-markdown/package.json +0 -99
  919. package/node_modules/mdast-util-from-markdown/readme.md +0 -535
  920. package/node_modules/mdast-util-gfm-table/index.d.ts +0 -54
  921. package/node_modules/mdast-util-gfm-table/index.js +0 -2
  922. package/node_modules/mdast-util-gfm-table/lib/index.d.ts +0 -51
  923. package/node_modules/mdast-util-gfm-table/lib/index.js +0 -300
  924. package/node_modules/mdast-util-gfm-table/license +0 -22
  925. package/node_modules/mdast-util-gfm-table/node_modules/@types/mdast/LICENSE +0 -21
  926. package/node_modules/mdast-util-gfm-table/node_modules/@types/mdast/README.md +0 -15
  927. package/node_modules/mdast-util-gfm-table/node_modules/@types/mdast/index.d.ts +0 -1123
  928. package/node_modules/mdast-util-gfm-table/node_modules/@types/mdast/package.json +0 -47
  929. package/node_modules/mdast-util-gfm-table/node_modules/@types/unist/LICENSE +0 -21
  930. package/node_modules/mdast-util-gfm-table/node_modules/@types/unist/README.md +0 -15
  931. package/node_modules/mdast-util-gfm-table/node_modules/@types/unist/index.d.ts +0 -119
  932. package/node_modules/mdast-util-gfm-table/node_modules/@types/unist/package.json +0 -60
  933. package/node_modules/mdast-util-gfm-table/node_modules/character-entities/index.d.ts +0 -6
  934. package/node_modules/mdast-util-gfm-table/node_modules/character-entities/index.js +0 -2132
  935. package/node_modules/mdast-util-gfm-table/node_modules/character-entities/license +0 -22
  936. package/node_modules/mdast-util-gfm-table/node_modules/character-entities/package.json +0 -78
  937. package/node_modules/mdast-util-gfm-table/node_modules/character-entities/readme.md +0 -152
  938. package/node_modules/mdast-util-gfm-table/node_modules/decode-named-character-reference/index.d.ts +0 -13
  939. package/node_modules/mdast-util-gfm-table/node_modules/decode-named-character-reference/index.d.ts.map +0 -1
  940. package/node_modules/mdast-util-gfm-table/node_modules/decode-named-character-reference/index.dom.d.ts +0 -6
  941. package/node_modules/mdast-util-gfm-table/node_modules/decode-named-character-reference/index.dom.d.ts.map +0 -1
  942. package/node_modules/mdast-util-gfm-table/node_modules/decode-named-character-reference/index.dom.js +0 -32
  943. package/node_modules/mdast-util-gfm-table/node_modules/decode-named-character-reference/index.js +0 -19
  944. package/node_modules/mdast-util-gfm-table/node_modules/decode-named-character-reference/license +0 -22
  945. package/node_modules/mdast-util-gfm-table/node_modules/decode-named-character-reference/package.json +0 -90
  946. package/node_modules/mdast-util-gfm-table/node_modules/decode-named-character-reference/readme.md +0 -136
  947. package/node_modules/mdast-util-gfm-table/node_modules/dequal/dist/index.js +0 -86
  948. package/node_modules/mdast-util-gfm-table/node_modules/dequal/dist/index.min.js +0 -1
  949. package/node_modules/mdast-util-gfm-table/node_modules/dequal/dist/index.mjs +0 -84
  950. package/node_modules/mdast-util-gfm-table/node_modules/dequal/index.d.ts +0 -1
  951. package/node_modules/mdast-util-gfm-table/node_modules/dequal/license +0 -21
  952. package/node_modules/mdast-util-gfm-table/node_modules/dequal/lite/index.d.ts +0 -1
  953. package/node_modules/mdast-util-gfm-table/node_modules/dequal/lite/index.js +0 -31
  954. package/node_modules/mdast-util-gfm-table/node_modules/dequal/lite/index.min.js +0 -1
  955. package/node_modules/mdast-util-gfm-table/node_modules/dequal/lite/index.mjs +0 -29
  956. package/node_modules/mdast-util-gfm-table/node_modules/dequal/package.json +0 -57
  957. package/node_modules/mdast-util-gfm-table/node_modules/dequal/readme.md +0 -112
  958. package/node_modules/mdast-util-gfm-table/node_modules/devlop/lib/default.js +0 -9
  959. package/node_modules/mdast-util-gfm-table/node_modules/devlop/lib/development.d.ts +0 -84
  960. package/node_modules/mdast-util-gfm-table/node_modules/devlop/lib/development.js +0 -238
  961. package/node_modules/mdast-util-gfm-table/node_modules/devlop/license +0 -22
  962. package/node_modules/mdast-util-gfm-table/node_modules/devlop/package.json +0 -80
  963. package/node_modules/mdast-util-gfm-table/node_modules/devlop/readme.md +0 -360
  964. package/node_modules/mdast-util-gfm-table/node_modules/longest-streak/index.d.ts +0 -11
  965. package/node_modules/mdast-util-gfm-table/node_modules/longest-streak/index.js +0 -36
  966. package/node_modules/mdast-util-gfm-table/node_modules/longest-streak/license +0 -22
  967. package/node_modules/mdast-util-gfm-table/node_modules/longest-streak/package.json +0 -73
  968. package/node_modules/mdast-util-gfm-table/node_modules/longest-streak/readme.md +0 -150
  969. package/node_modules/mdast-util-gfm-table/node_modules/markdown-table/index.d.ts +0 -171
  970. package/node_modules/mdast-util-gfm-table/node_modules/markdown-table/index.d.ts.map +0 -1
  971. package/node_modules/mdast-util-gfm-table/node_modules/markdown-table/index.js +0 -393
  972. package/node_modules/mdast-util-gfm-table/node_modules/markdown-table/license +0 -22
  973. package/node_modules/mdast-util-gfm-table/node_modules/markdown-table/package.json +0 -77
  974. package/node_modules/mdast-util-gfm-table/node_modules/markdown-table/readme.md +0 -344
  975. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-phrasing/index.d.ts +0 -1
  976. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-phrasing/index.js +0 -1
  977. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-phrasing/lib/index.d.ts +0 -3
  978. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-phrasing/lib/index.js +0 -45
  979. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-phrasing/license +0 -23
  980. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-phrasing/package.json +0 -78
  981. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-phrasing/readme.md +0 -200
  982. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/index.d.ts +0 -16
  983. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/index.js +0 -3
  984. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/configure.d.ts +0 -9
  985. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/configure.d.ts.map +0 -1
  986. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/configure.js +0 -79
  987. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/blockquote.d.ts +0 -17
  988. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/blockquote.d.ts.map +0 -1
  989. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +0 -29
  990. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/break.d.ts +0 -13
  991. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/break.d.ts.map +0 -1
  992. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/break.js +0 -30
  993. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/code.d.ts +0 -13
  994. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/code.d.ts.map +0 -1
  995. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/code.js +0 -75
  996. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/definition.d.ts +0 -13
  997. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/definition.d.ts.map +0 -1
  998. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/definition.js +0 -76
  999. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/emphasis.d.ts +0 -24
  1000. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/emphasis.d.ts.map +0 -1
  1001. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +0 -69
  1002. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/heading.d.ts +0 -13
  1003. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/heading.d.ts.map +0 -1
  1004. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/heading.js +0 -75
  1005. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/html.d.ts +0 -15
  1006. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/html.d.ts.map +0 -1
  1007. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/html.js +0 -20
  1008. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/image-reference.d.ts +0 -21
  1009. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/image-reference.d.ts.map +0 -1
  1010. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +0 -63
  1011. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts +0 -21
  1012. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts.map +0 -1
  1013. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/image.js +0 -82
  1014. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/index.d.ts +0 -42
  1015. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/index.d.ts.map +0 -1
  1016. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/index.js +0 -45
  1017. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts +0 -19
  1018. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts.map +0 -1
  1019. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +0 -76
  1020. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts +0 -21
  1021. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts.map +0 -1
  1022. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +0 -63
  1023. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts +0 -24
  1024. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts.map +0 -1
  1025. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/link.js +0 -114
  1026. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts +0 -13
  1027. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts.map +0 -1
  1028. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +0 -62
  1029. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts +0 -13
  1030. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts.map +0 -1
  1031. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/list.js +0 -100
  1032. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts +0 -17
  1033. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts.map +0 -1
  1034. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +0 -20
  1035. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts +0 -13
  1036. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts.map +0 -1
  1037. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/root.js +0 -23
  1038. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts +0 -24
  1039. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts.map +0 -1
  1040. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/strong.js +0 -69
  1041. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts +0 -17
  1042. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts.map +0 -1
  1043. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/text.js +0 -15
  1044. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts +0 -11
  1045. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts.map +0 -1
  1046. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +0 -21
  1047. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/index.d.ts +0 -14
  1048. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/index.d.ts.map +0 -1
  1049. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/index.js +0 -187
  1050. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/join.d.ts +0 -4
  1051. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/join.d.ts.map +0 -1
  1052. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/join.js +0 -39
  1053. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/types.d.ts +0 -965
  1054. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/types.js +0 -2
  1055. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/unsafe.d.ts +0 -4
  1056. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/unsafe.d.ts.map +0 -1
  1057. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/unsafe.js +0 -146
  1058. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/association.d.ts +0 -2
  1059. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/association.d.ts.map +0 -1
  1060. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/association.js +0 -33
  1061. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts +0 -11
  1062. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts.map +0 -1
  1063. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +0 -21
  1064. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts +0 -8
  1065. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts.map +0 -1
  1066. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +0 -38
  1067. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts +0 -11
  1068. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts.map +0 -1
  1069. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +0 -21
  1070. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts +0 -11
  1071. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts.map +0 -1
  1072. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +0 -21
  1073. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts +0 -11
  1074. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts.map +0 -1
  1075. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +0 -21
  1076. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts +0 -11
  1077. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts.map +0 -1
  1078. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +0 -21
  1079. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts +0 -11
  1080. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts.map +0 -1
  1081. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +0 -21
  1082. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts +0 -11
  1083. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts.map +0 -1
  1084. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +0 -21
  1085. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts +0 -11
  1086. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts.map +0 -1
  1087. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +0 -21
  1088. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts +0 -11
  1089. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts.map +0 -1
  1090. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +0 -21
  1091. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.d.ts +0 -2
  1092. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.d.ts.map +0 -1
  1093. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.js +0 -24
  1094. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts +0 -19
  1095. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts.map +0 -1
  1096. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/container-flow.js +0 -84
  1097. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts +0 -19
  1098. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts.map +0 -1
  1099. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js +0 -125
  1100. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/emphasis-strong-marker.d.ts +0 -7
  1101. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/emphasis-strong-marker.d.ts.map +0 -1
  1102. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.d.ts +0 -10
  1103. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.d.ts.map +0 -1
  1104. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +0 -11
  1105. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts +0 -33
  1106. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts.map +0 -1
  1107. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +0 -82
  1108. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts +0 -13
  1109. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts.map +0 -1
  1110. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +0 -22
  1111. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts +0 -9
  1112. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts.map +0 -1
  1113. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +0 -34
  1114. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts +0 -9
  1115. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts.map +0 -1
  1116. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +0 -34
  1117. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/indent-lines.d.ts +0 -2
  1118. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/indent-lines.d.ts.map +0 -1
  1119. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js +0 -35
  1120. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts +0 -12
  1121. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts.map +0 -1
  1122. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +0 -41
  1123. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts +0 -29
  1124. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts.map +0 -1
  1125. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/safe.js +0 -174
  1126. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/track.d.ts +0 -2
  1127. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/track.d.ts.map +0 -1
  1128. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/track.js +0 -55
  1129. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/license +0 -22
  1130. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/package.json +0 -132
  1131. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/readme.md +0 -750
  1132. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-string/index.d.ts +0 -2
  1133. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-string/index.js +0 -5
  1134. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-string/lib/index.d.ts +0 -31
  1135. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-string/lib/index.js +0 -108
  1136. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-string/license +0 -22
  1137. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-string/package.json +0 -78
  1138. package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-string/readme.md +0 -218
  1139. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-character/dev/index.d.ts +0 -195
  1140. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-character/dev/index.d.ts.map +0 -1
  1141. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-character/dev/index.js +0 -252
  1142. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-character/index.d.ts +0 -195
  1143. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-character/index.d.ts.map +0 -1
  1144. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-character/index.js +0 -246
  1145. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-character/license +0 -22
  1146. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-character/package.json +0 -57
  1147. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-character/readme.md +0 -446
  1148. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-classify-character/dev/index.d.ts +0 -18
  1149. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-classify-character/dev/index.d.ts.map +0 -1
  1150. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-classify-character/dev/index.js +0 -38
  1151. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-classify-character/index.d.ts +0 -18
  1152. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-classify-character/index.d.ts.map +0 -1
  1153. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-classify-character/index.js +0 -27
  1154. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-classify-character/license +0 -22
  1155. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-classify-character/package.json +0 -59
  1156. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-classify-character/readme.md +0 -205
  1157. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts +0 -16
  1158. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts.map +0 -1
  1159. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-numeric-character-reference/dev/index.js +0 -42
  1160. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts +0 -16
  1161. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts.map +0 -1
  1162. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -32
  1163. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-numeric-character-reference/license +0 -22
  1164. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-numeric-character-reference/package.json +0 -59
  1165. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-numeric-character-reference/readme.md +0 -184
  1166. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-string/dev/index.d.ts +0 -14
  1167. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-string/dev/index.d.ts.map +0 -1
  1168. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-string/dev/index.js +0 -53
  1169. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-string/index.d.ts +0 -14
  1170. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-string/index.d.ts.map +0 -1
  1171. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-string/index.js +0 -45
  1172. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-string/license +0 -22
  1173. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-string/package.json +0 -63
  1174. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-string/readme.md +0 -179
  1175. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/codes.d.ts +0 -139
  1176. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/codes.d.ts.map +0 -1
  1177. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/codes.js +0 -158
  1178. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/constants.d.ts +0 -37
  1179. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/constants.d.ts.map +0 -1
  1180. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/constants.js +0 -44
  1181. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/default.d.ts +0 -5
  1182. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/default.d.ts.map +0 -1
  1183. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/default.js +0 -4
  1184. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/types.d.ts +0 -106
  1185. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/types.d.ts.map +0 -1
  1186. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/types.js +0 -453
  1187. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/values.d.ts +0 -102
  1188. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/values.d.ts.map +0 -1
  1189. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/values.js +0 -109
  1190. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/license +0 -22
  1191. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/package.json +0 -43
  1192. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/readme.md +0 -168
  1193. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-types/index.d.ts +0 -1312
  1194. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-types/index.js +0 -2
  1195. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-types/license +0 -22
  1196. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-types/package.json +0 -71
  1197. package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-types/readme.md +0 -151
  1198. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-is/index.d.ts +0 -5
  1199. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-is/index.d.ts.map +0 -1
  1200. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-is/index.js +0 -7
  1201. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-is/lib/index.d.ts +0 -111
  1202. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-is/lib/index.d.ts.map +0 -1
  1203. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-is/lib/index.js +0 -296
  1204. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-is/license +0 -22
  1205. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-is/package.json +0 -103
  1206. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-is/readme.md +0 -351
  1207. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit/index.d.ts +0 -9
  1208. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit/index.js +0 -2
  1209. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit/lib/index.d.ts +0 -195
  1210. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit/lib/index.d.ts.map +0 -1
  1211. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit/lib/index.js +0 -312
  1212. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit/license +0 -22
  1213. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit/package.json +0 -108
  1214. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit/readme.md +0 -313
  1215. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/index.d.ts +0 -14
  1216. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/index.js +0 -2
  1217. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/lib/color.d.ts +0 -6
  1218. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/lib/color.d.ts.map +0 -1
  1219. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/lib/color.js +0 -7
  1220. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/lib/color.node.d.ts +0 -6
  1221. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/lib/color.node.d.ts.map +0 -1
  1222. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/lib/color.node.js +0 -7
  1223. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/lib/index.d.ts +0 -219
  1224. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/lib/index.d.ts.map +0 -1
  1225. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/lib/index.js +0 -399
  1226. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/license +0 -22
  1227. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/package.json +0 -106
  1228. package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/readme.md +0 -388
  1229. package/node_modules/mdast-util-gfm-table/node_modules/zwitch/index.d.ts +0 -67
  1230. package/node_modules/mdast-util-gfm-table/node_modules/zwitch/index.js +0 -118
  1231. package/node_modules/mdast-util-gfm-table/node_modules/zwitch/license +0 -22
  1232. package/node_modules/mdast-util-gfm-table/node_modules/zwitch/package.json +0 -72
  1233. package/node_modules/mdast-util-gfm-table/node_modules/zwitch/readme.md +0 -226
  1234. package/node_modules/mdast-util-gfm-table/package.json +0 -101
  1235. package/node_modules/mdast-util-gfm-table/readme.md +0 -605
  1236. package/node_modules/micromark-extension-gfm-table/dev/index.d.ts +0 -55
  1237. package/node_modules/micromark-extension-gfm-table/dev/index.js +0 -2
  1238. package/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.d.ts +0 -38
  1239. package/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.d.ts.map +0 -1
  1240. package/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.js +0 -212
  1241. package/node_modules/micromark-extension-gfm-table/dev/lib/html.d.ts +0 -11
  1242. package/node_modules/micromark-extension-gfm-table/dev/lib/html.d.ts.map +0 -1
  1243. package/node_modules/micromark-extension-gfm-table/dev/lib/html.js +0 -148
  1244. package/node_modules/micromark-extension-gfm-table/dev/lib/infer.d.ts +0 -14
  1245. package/node_modules/micromark-extension-gfm-table/dev/lib/infer.d.ts.map +0 -1
  1246. package/node_modules/micromark-extension-gfm-table/dev/lib/infer.js +0 -64
  1247. package/node_modules/micromark-extension-gfm-table/dev/lib/syntax.d.ts +0 -18
  1248. package/node_modules/micromark-extension-gfm-table/dev/lib/syntax.d.ts.map +0 -1
  1249. package/node_modules/micromark-extension-gfm-table/dev/lib/syntax.js +0 -941
  1250. package/node_modules/micromark-extension-gfm-table/index.d.ts +0 -55
  1251. package/node_modules/micromark-extension-gfm-table/index.js +0 -2
  1252. package/node_modules/micromark-extension-gfm-table/lib/edit-map.d.ts +0 -38
  1253. package/node_modules/micromark-extension-gfm-table/lib/edit-map.d.ts.map +0 -1
  1254. package/node_modules/micromark-extension-gfm-table/lib/edit-map.js +0 -202
  1255. package/node_modules/micromark-extension-gfm-table/lib/html.d.ts +0 -11
  1256. package/node_modules/micromark-extension-gfm-table/lib/html.d.ts.map +0 -1
  1257. package/node_modules/micromark-extension-gfm-table/lib/html.js +0 -130
  1258. package/node_modules/micromark-extension-gfm-table/lib/infer.d.ts +0 -14
  1259. package/node_modules/micromark-extension-gfm-table/lib/infer.d.ts.map +0 -1
  1260. package/node_modules/micromark-extension-gfm-table/lib/infer.js +0 -52
  1261. package/node_modules/micromark-extension-gfm-table/lib/syntax.d.ts +0 -18
  1262. package/node_modules/micromark-extension-gfm-table/lib/syntax.d.ts.map +0 -1
  1263. package/node_modules/micromark-extension-gfm-table/lib/syntax.js +0 -819
  1264. package/node_modules/micromark-extension-gfm-table/license +0 -22
  1265. package/node_modules/micromark-extension-gfm-table/node_modules/dequal/dist/index.js +0 -86
  1266. package/node_modules/micromark-extension-gfm-table/node_modules/dequal/dist/index.min.js +0 -1
  1267. package/node_modules/micromark-extension-gfm-table/node_modules/dequal/dist/index.mjs +0 -84
  1268. package/node_modules/micromark-extension-gfm-table/node_modules/dequal/index.d.ts +0 -1
  1269. package/node_modules/micromark-extension-gfm-table/node_modules/dequal/license +0 -21
  1270. package/node_modules/micromark-extension-gfm-table/node_modules/dequal/lite/index.d.ts +0 -1
  1271. package/node_modules/micromark-extension-gfm-table/node_modules/dequal/lite/index.js +0 -31
  1272. package/node_modules/micromark-extension-gfm-table/node_modules/dequal/lite/index.min.js +0 -1
  1273. package/node_modules/micromark-extension-gfm-table/node_modules/dequal/lite/index.mjs +0 -29
  1274. package/node_modules/micromark-extension-gfm-table/node_modules/dequal/package.json +0 -57
  1275. package/node_modules/micromark-extension-gfm-table/node_modules/dequal/readme.md +0 -112
  1276. package/node_modules/micromark-extension-gfm-table/node_modules/devlop/lib/default.js +0 -9
  1277. package/node_modules/micromark-extension-gfm-table/node_modules/devlop/lib/development.d.ts +0 -84
  1278. package/node_modules/micromark-extension-gfm-table/node_modules/devlop/lib/development.js +0 -238
  1279. package/node_modules/micromark-extension-gfm-table/node_modules/devlop/license +0 -22
  1280. package/node_modules/micromark-extension-gfm-table/node_modules/devlop/package.json +0 -80
  1281. package/node_modules/micromark-extension-gfm-table/node_modules/devlop/readme.md +0 -360
  1282. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-factory-space/dev/index.d.ts +0 -37
  1283. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-factory-space/dev/index.d.ts.map +0 -1
  1284. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-factory-space/dev/index.js +0 -67
  1285. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-factory-space/index.d.ts +0 -37
  1286. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-factory-space/index.d.ts.map +0 -1
  1287. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-factory-space/index.js +0 -64
  1288. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-factory-space/license +0 -22
  1289. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-factory-space/package.json +0 -55
  1290. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-factory-space/readme.md +0 -225
  1291. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/dev/index.d.ts +0 -195
  1292. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/dev/index.d.ts.map +0 -1
  1293. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/dev/index.js +0 -252
  1294. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/index.d.ts +0 -195
  1295. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/index.d.ts.map +0 -1
  1296. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/index.js +0 -246
  1297. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/license +0 -22
  1298. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/package.json +0 -57
  1299. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/readme.md +0 -446
  1300. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/codes.d.ts +0 -139
  1301. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/codes.d.ts.map +0 -1
  1302. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/codes.js +0 -158
  1303. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/constants.d.ts +0 -37
  1304. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/constants.d.ts.map +0 -1
  1305. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/constants.js +0 -44
  1306. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/default.d.ts +0 -5
  1307. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/default.d.ts.map +0 -1
  1308. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/default.js +0 -4
  1309. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/types.d.ts +0 -106
  1310. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/types.d.ts.map +0 -1
  1311. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/types.js +0 -453
  1312. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/values.d.ts +0 -102
  1313. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/values.d.ts.map +0 -1
  1314. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/values.js +0 -109
  1315. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/license +0 -22
  1316. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/package.json +0 -43
  1317. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/readme.md +0 -168
  1318. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-types/index.d.ts +0 -1312
  1319. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-types/index.js +0 -2
  1320. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-types/license +0 -22
  1321. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-types/package.json +0 -71
  1322. package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-types/readme.md +0 -151
  1323. package/node_modules/micromark-extension-gfm-table/package.json +0 -128
  1324. package/node_modules/micromark-extension-gfm-table/readme.md +0 -515
  1325. /package/dist/{audio-preflight.runtime-BBfC9elv.js → .setup/audio-preflight.runtime-BBfC9elv.mjs} +0 -0
  1326. /package/dist/{rolldown-runtime-8H4AJuhK.js → .setup/rolldown-runtime-8H4AJuhK.mjs} +0 -0
  1327. /package/dist/{runtime-C5JxBWZp.js → .setup/runtime-C5JxBWZp.mjs} +0 -0
  1328. /package/dist/{targets-BUjQ1TcA.js → .setup/targets-BUjQ1TcA.mjs} +0 -0
  1329. /package/node_modules/@larksuiteoapi/node-sdk/node_modules/{protobufjs/src/util/float.d.ts → @protobufjs/float/index.d.ts} +0 -0
  1330. /package/node_modules/{mdast-util-from-markdown/node_modules/@types/debug → @larksuiteoapi/node-sdk/node_modules/@types/node}/LICENSE +0 -0
@@ -0,0 +1,2661 @@
1
+ import { a as resolveDefaultFeishuAccountId, d as isRecord$1, i as listFeishuAccountIds, n as inspectFeishuCredentials, o as resolveFeishuAccount, r as listEnabledFeishuAccounts, s as resolveFeishuRuntimeAccount } from "./accounts-CfuPSCip.mjs";
2
+ import { i as resolveReceiveIdType, n as looksLikeFeishuId, r as normalizeFeishuTarget, t as detectIdType } from "./targets-BUjQ1TcA.mjs";
3
+ import { a as readNativeFeishuCardJson, n as createFeishuSendReceipt, u as createFeishuCardInteractionEnvelope } from "./send-result-COI_ANtb.mjs";
4
+ import { a as parseFeishuTargetId, i as parseFeishuDirectConversationId, n as buildFeishuModelOverrideParentCandidates, o as resolveConfiguredFeishuGroupSessionScope, r as parseFeishuConversationId, t as buildFeishuConversationId } from "./conversation-id-CdLdoot3.mjs";
5
+ import { t as messageActionTargetAliases } from "./security-audit-Duuj2PkP.mjs";
6
+ import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-DLaBl9m4.mjs";
7
+ import { t as collectFeishuSecurityAuditFindings } from "./security-audit-shared-BIHeF-S_.mjs";
8
+ import { t as resolveFeishuSessionConversation } from "./session-conversation-CWBrUzmY.mjs";
9
+ import { createLazyRuntimeModule, createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
10
+ import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
11
+ import { formatAllowFromLowercase } from "openclaw/plugin-sdk/allow-from";
12
+ import { adaptScopedAccountAccessor, createHybridChannelConfigAdapter } from "openclaw/plugin-sdk/channel-config-helpers";
13
+ import { buildChannelOutboundSessionRoute, createChatChannelPlugin, stripChannelTargetPrefix } from "openclaw/plugin-sdk/channel-core";
14
+ import { createAccountStatusSink, createRuntimeOutboundDelegates, defineChannelMessageAdapter } from "openclaw/plugin-sdk/channel-outbound";
15
+ import { createPairingPrefixStripper } from "openclaw/plugin-sdk/channel-pairing";
16
+ import { createAllowlistProviderGroupPolicyWarningCollector, projectConfigAccountIdWarningCollector } from "openclaw/plugin-sdk/channel-policy";
17
+ import { getSessionBindingService } from "openclaw/plugin-sdk/conversation-runtime";
18
+ import { createChannelDirectoryAdapter, createRuntimeDirectoryLiveAdapter, listDirectoryGroupEntriesFromMapKeysAndAllowFrom, listDirectoryUserEntriesFromAllowFromAndMapKeys } from "openclaw/plugin-sdk/directory-runtime";
19
+ import { interactiveReplyToPresentation, normalizeInteractiveReply, normalizeMessagePresentation, renderMessagePresentationFallbackText, resolveInteractiveTextFallback } from "openclaw/plugin-sdk/interactive-runtime";
20
+ import { parseStrictPositiveInteger } from "openclaw/plugin-sdk/number-runtime";
21
+ import { buildProbeChannelStatusSummary, createComputedAccountStatusAdapter, createDefaultChannelRuntimeState } from "openclaw/plugin-sdk/status-helpers";
22
+ import { isRecord, normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
23
+ import { chunkTextForOutbound, sanitizeAssistantVisibleText } from "openclaw/plugin-sdk/text-chunking";
24
+ import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$2, normalizeAccountId, resolveMergedAccountConfig } from "openclaw/plugin-sdk/account-resolution";
25
+ import { createResolvedApproverActionAuthAdapter, resolveApprovalApprovers } from "openclaw/plugin-sdk/approval-auth-runtime";
26
+ import { createActionGate } from "openclaw/plugin-sdk/channel-actions";
27
+ import { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-primitives";
28
+ import { PAIRING_APPROVED_MESSAGE } from "openclaw/plugin-sdk/channel-status";
29
+ import { normalizeAccountId as normalizeAccountId$1 } from "openclaw/plugin-sdk/account-id";
30
+ import { z } from "zod";
31
+ import { buildSecretInputSchema, hasConfiguredSecretInput as hasConfiguredSecretInput$2 } from "openclaw/plugin-sdk/secret-input";
32
+ import fs from "node:fs";
33
+ import os from "node:os";
34
+ import path from "node:path";
35
+ import { normalizeAgentId } from "openclaw/plugin-sdk/routing";
36
+ import { loadSessionStore, resolveSessionFilePath, resolveStorePath, updateSessionStore } from "openclaw/plugin-sdk/session-store-runtime";
37
+ import { resolveStateDir } from "openclaw/plugin-sdk/state-paths";
38
+ import { createChannelIngressResolver, defineStableChannelIngressIdentity } from "openclaw/plugin-sdk/channel-ingress-runtime";
39
+ import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1, createSetupTranslator, formatDocsLink, hasConfiguredSecretInput as hasConfiguredSecretInput$1, mergeAllowFromEntries, patchTopLevelChannelConfigSection, promptSingleChannelSecretInput, splitSetupEntries } from "openclaw/plugin-sdk/setup";
40
+ //#region extensions/feishu/src/approval-auth.ts
41
+ function normalizeFeishuApproverId(value) {
42
+ const normalized = normalizeFeishuTarget(String(value));
43
+ const trimmed = normalizeOptionalLowercaseString(normalized);
44
+ return trimmed?.startsWith("ou_") ? trimmed : void 0;
45
+ }
46
+ const feishuApprovalAuth = createResolvedApproverActionAuthAdapter({
47
+ channelLabel: "Feishu",
48
+ resolveApprovers: ({ cfg, accountId }) => {
49
+ const account = resolveFeishuAccount({
50
+ cfg,
51
+ accountId
52
+ }).config;
53
+ return resolveApprovalApprovers({
54
+ allowFrom: account.allowFrom,
55
+ normalizeApprover: normalizeFeishuApproverId
56
+ });
57
+ },
58
+ normalizeSenderId: (value) => normalizeFeishuApproverId(value)
59
+ });
60
+ //#endregion
61
+ //#region extensions/feishu/src/config-schema.ts
62
+ const ChannelActionsSchema = z.object({ reactions: z.boolean().optional() }).strict().optional();
63
+ const DmPolicySchema = z.enum([
64
+ "open",
65
+ "pairing",
66
+ "allowlist"
67
+ ]);
68
+ const GroupPolicySchema = z.union([z.enum([
69
+ "open",
70
+ "allowlist",
71
+ "disabled"
72
+ ]), z.literal("allowall").transform(() => "open")]);
73
+ const FeishuDomainSchema = z.union([z.enum(["feishu", "lark"]), z.string().url().startsWith("https://")]);
74
+ const FeishuConnectionModeSchema = z.enum(["websocket", "webhook"]);
75
+ const TtsOverrideSchema = z.object({
76
+ auto: z.enum([
77
+ "off",
78
+ "always",
79
+ "inbound",
80
+ "tagged"
81
+ ]).optional(),
82
+ enabled: z.boolean().optional(),
83
+ mode: z.enum(["final", "all"]).optional(),
84
+ provider: z.string().optional(),
85
+ persona: z.string().optional(),
86
+ personas: z.record(z.string(), z.record(z.string(), z.unknown())).optional(),
87
+ summaryModel: z.string().optional(),
88
+ modelOverrides: z.record(z.string(), z.unknown()).optional(),
89
+ providers: z.record(z.string(), z.record(z.string(), z.unknown())).optional(),
90
+ prefsPath: z.string().optional(),
91
+ maxTextLength: z.number().int().min(1).optional(),
92
+ timeoutMs: z.number().int().min(1e3).max(12e4).optional()
93
+ }).strict().optional();
94
+ const ToolPolicySchema = z.object({
95
+ allow: z.array(z.string()).optional(),
96
+ deny: z.array(z.string()).optional()
97
+ }).strict().optional();
98
+ const DmConfigSchema = z.object({
99
+ enabled: z.boolean().optional(),
100
+ systemPrompt: z.string().optional()
101
+ }).strict().optional();
102
+ const MarkdownConfigSchema = z.object({
103
+ mode: z.enum([
104
+ "native",
105
+ "escape",
106
+ "strip"
107
+ ]).optional(),
108
+ tableMode: z.enum([
109
+ "native",
110
+ "ascii",
111
+ "simple"
112
+ ]).optional()
113
+ }).strict().optional();
114
+ const RenderModeSchema = z.enum([
115
+ "auto",
116
+ "raw",
117
+ "card"
118
+ ]).optional();
119
+ const StreamingModeSchema = z.boolean().optional();
120
+ const BlockStreamingSchema = z.boolean().optional();
121
+ const BlockStreamingCoalesceSchema = z.object({
122
+ enabled: z.boolean().optional(),
123
+ minDelayMs: z.number().int().positive().optional(),
124
+ maxDelayMs: z.number().int().positive().optional()
125
+ }).strict().optional();
126
+ const ChannelHeartbeatVisibilitySchema = z.object({
127
+ visibility: z.enum(["visible", "hidden"]).optional(),
128
+ intervalMs: z.number().int().positive().optional()
129
+ }).strict().optional();
130
+ /**
131
+ * Dynamic agent creation configuration.
132
+ * When enabled, a new agent is created for each unique DM user.
133
+ */
134
+ const DynamicAgentCreationSchema = z.object({
135
+ enabled: z.boolean().optional(),
136
+ workspaceTemplate: z.string().optional(),
137
+ agentDirTemplate: z.string().optional(),
138
+ maxAgents: z.number().int().positive().optional()
139
+ }).strict().optional();
140
+ /**
141
+ * Feishu tools configuration.
142
+ * Controls which tool categories are enabled.
143
+ *
144
+ * Dependencies:
145
+ * - wiki requires doc (wiki content is edited via doc tools)
146
+ * - perm can work independently but is typically used with drive
147
+ */
148
+ const FeishuToolsConfigSchema = z.object({
149
+ doc: z.boolean().optional(),
150
+ chat: z.boolean().optional(),
151
+ wiki: z.boolean().optional(),
152
+ drive: z.boolean().optional(),
153
+ perm: z.boolean().optional(),
154
+ scopes: z.boolean().optional(),
155
+ bitable: z.boolean().optional(),
156
+ base: z.boolean().optional()
157
+ }).strict().optional();
158
+ /**
159
+ * Group session scope for routing Feishu group messages.
160
+ * - "group" (default): one session per group chat
161
+ * - "group_sender": one session per (group + sender)
162
+ * - "group_topic": one session per group topic thread (falls back to group if no topic)
163
+ * - "group_topic_sender": one session per (group + topic thread + sender),
164
+ * falls back to (group + sender) if no topic
165
+ */
166
+ const GroupSessionScopeSchema = z.enum([
167
+ "group",
168
+ "group_sender",
169
+ "group_topic",
170
+ "group_topic_sender"
171
+ ]).optional();
172
+ /**
173
+ * @deprecated Use groupSessionScope instead.
174
+ *
175
+ * Topic session isolation mode for group chats.
176
+ * - "disabled" (default): All messages in a group share one session
177
+ * - "enabled": Messages in different topics get separate sessions
178
+ *
179
+ * Topic routing uses Feishu topic-group `thread_id` when the event identifies a
180
+ * native topic group, and keeps `root_id` precedence for normal groups so
181
+ * reply-created threads stay on the initiating message session.
182
+ */
183
+ const TopicSessionModeSchema = z.enum(["disabled", "enabled"]).optional();
184
+ const ReactionNotificationModeSchema = z.enum([
185
+ "off",
186
+ "own",
187
+ "all"
188
+ ]).optional();
189
+ /**
190
+ * Reply-in-thread mode for group chats.
191
+ * - "disabled" (default): Bot replies are normal inline replies
192
+ * - "enabled": Bot replies create or continue a Feishu topic thread
193
+ *
194
+ * When enabled, the Feishu reply API is called with `reply_in_thread: true`,
195
+ * causing the reply to appear as a topic (话题) under the original message.
196
+ */
197
+ const ReplyInThreadSchema = z.enum(["disabled", "enabled"]).optional();
198
+ const FeishuGroupSchema = z.object({
199
+ requireMention: z.boolean().optional(),
200
+ tools: ToolPolicySchema,
201
+ skills: z.array(z.string()).optional(),
202
+ enabled: z.boolean().optional(),
203
+ allowFrom: z.array(z.union([z.string(), z.number()])).optional(),
204
+ systemPrompt: z.string().optional(),
205
+ groupSessionScope: GroupSessionScopeSchema,
206
+ topicSessionMode: TopicSessionModeSchema,
207
+ replyInThread: ReplyInThreadSchema
208
+ }).strict();
209
+ const FeishuSharedConfigShape = {
210
+ webhookHost: z.string().optional(),
211
+ webhookPort: z.number().int().positive().optional(),
212
+ capabilities: z.array(z.string()).optional(),
213
+ markdown: MarkdownConfigSchema,
214
+ configWrites: z.boolean().optional(),
215
+ dmPolicy: DmPolicySchema.optional(),
216
+ allowFrom: z.array(z.union([z.string(), z.number()])).optional(),
217
+ groupPolicy: GroupPolicySchema.optional(),
218
+ groupAllowFrom: z.array(z.union([z.string(), z.number()])).optional(),
219
+ groupSenderAllowFrom: z.array(z.union([z.string(), z.number()])).optional(),
220
+ requireMention: z.boolean().optional(),
221
+ groups: z.record(z.string(), FeishuGroupSchema.optional()).optional(),
222
+ historyLimit: z.number().int().min(0).optional(),
223
+ dmHistoryLimit: z.number().int().min(0).optional(),
224
+ dms: z.record(z.string(), DmConfigSchema).optional(),
225
+ textChunkLimit: z.number().int().positive().optional(),
226
+ chunkMode: z.enum(["length", "newline"]).optional(),
227
+ blockStreaming: BlockStreamingSchema,
228
+ blockStreamingCoalesce: BlockStreamingCoalesceSchema,
229
+ mediaMaxMb: z.number().positive().optional(),
230
+ httpTimeoutMs: z.number().int().positive().max(3e5).optional(),
231
+ heartbeat: ChannelHeartbeatVisibilitySchema,
232
+ renderMode: RenderModeSchema,
233
+ streaming: StreamingModeSchema,
234
+ tools: FeishuToolsConfigSchema,
235
+ actions: ChannelActionsSchema,
236
+ replyInThread: ReplyInThreadSchema,
237
+ reactionNotifications: ReactionNotificationModeSchema,
238
+ typingIndicator: z.boolean().optional(),
239
+ resolveSenderNames: z.boolean().optional(),
240
+ tts: TtsOverrideSchema
241
+ };
242
+ /**
243
+ * Per-account configuration.
244
+ * All fields are optional - missing fields inherit from top-level config.
245
+ */
246
+ const FeishuAccountConfigSchema = z.object({
247
+ enabled: z.boolean().optional(),
248
+ name: z.string().optional(),
249
+ appId: z.string().optional(),
250
+ appSecret: buildSecretInputSchema().optional(),
251
+ encryptKey: buildSecretInputSchema().optional(),
252
+ verificationToken: buildSecretInputSchema().optional(),
253
+ domain: FeishuDomainSchema.optional(),
254
+ connectionMode: FeishuConnectionModeSchema.optional(),
255
+ webhookPath: z.string().optional(),
256
+ ...FeishuSharedConfigShape,
257
+ groupSessionScope: GroupSessionScopeSchema,
258
+ topicSessionMode: TopicSessionModeSchema
259
+ }).strict();
260
+ const FeishuConfigSchema = z.object({
261
+ enabled: z.boolean().optional(),
262
+ defaultAccount: z.string().optional(),
263
+ appId: z.string().optional(),
264
+ appSecret: buildSecretInputSchema().optional(),
265
+ encryptKey: buildSecretInputSchema().optional(),
266
+ verificationToken: buildSecretInputSchema().optional(),
267
+ domain: FeishuDomainSchema.optional().default("feishu"),
268
+ connectionMode: FeishuConnectionModeSchema.optional().default("websocket"),
269
+ webhookPath: z.string().optional().default("/feishu/events"),
270
+ ...FeishuSharedConfigShape,
271
+ dmPolicy: DmPolicySchema.optional().default("pairing"),
272
+ reactionNotifications: ReactionNotificationModeSchema.optional().default("own"),
273
+ groupPolicy: GroupPolicySchema.optional().default("allowlist"),
274
+ requireMention: z.boolean().optional(),
275
+ groupSessionScope: GroupSessionScopeSchema,
276
+ topicSessionMode: TopicSessionModeSchema,
277
+ dynamicAgentCreation: DynamicAgentCreationSchema,
278
+ typingIndicator: z.boolean().optional().default(true),
279
+ resolveSenderNames: z.boolean().optional().default(true),
280
+ accounts: z.record(z.string(), FeishuAccountConfigSchema.optional()).optional()
281
+ }).strict().superRefine((value, ctx) => {
282
+ const defaultAccount = value.defaultAccount?.trim();
283
+ if (defaultAccount && value.accounts && Object.keys(value.accounts).length > 0) {
284
+ const normalizedDefaultAccount = normalizeAccountId$1(defaultAccount);
285
+ if (!Object.hasOwn(value.accounts, normalizedDefaultAccount)) ctx.addIssue({
286
+ code: z.ZodIssueCode.custom,
287
+ path: ["defaultAccount"],
288
+ message: `channels.feishu.defaultAccount="${defaultAccount}" does not match a configured account key`
289
+ });
290
+ }
291
+ const defaultConnectionMode = value.connectionMode ?? "websocket";
292
+ const defaultVerificationTokenConfigured = hasConfiguredSecretInput$2(value.verificationToken);
293
+ const defaultEncryptKeyConfigured = hasConfiguredSecretInput$2(value.encryptKey);
294
+ if (defaultConnectionMode === "webhook") {
295
+ if (!defaultVerificationTokenConfigured) ctx.addIssue({
296
+ code: z.ZodIssueCode.custom,
297
+ path: ["verificationToken"],
298
+ message: "channels.feishu.connectionMode=\"webhook\" requires channels.feishu.verificationToken"
299
+ });
300
+ if (!defaultEncryptKeyConfigured) ctx.addIssue({
301
+ code: z.ZodIssueCode.custom,
302
+ path: ["encryptKey"],
303
+ message: "channels.feishu.connectionMode=\"webhook\" requires channels.feishu.encryptKey"
304
+ });
305
+ }
306
+ for (const [accountId, account] of Object.entries(value.accounts ?? {})) {
307
+ if (!account) continue;
308
+ if ((account.connectionMode ?? defaultConnectionMode) !== "webhook") continue;
309
+ const accountVerificationTokenConfigured = hasConfiguredSecretInput$2(account.verificationToken) || defaultVerificationTokenConfigured;
310
+ const accountEncryptKeyConfigured = hasConfiguredSecretInput$2(account.encryptKey) || defaultEncryptKeyConfigured;
311
+ if (!accountVerificationTokenConfigured) ctx.addIssue({
312
+ code: z.ZodIssueCode.custom,
313
+ path: [
314
+ "accounts",
315
+ accountId,
316
+ "verificationToken"
317
+ ],
318
+ message: `channels.feishu.accounts.${accountId}.connectionMode="webhook" requires a verificationToken (account-level or top-level)`
319
+ });
320
+ if (!accountEncryptKeyConfigured) ctx.addIssue({
321
+ code: z.ZodIssueCode.custom,
322
+ path: [
323
+ "accounts",
324
+ accountId,
325
+ "encryptKey"
326
+ ],
327
+ message: `channels.feishu.accounts.${accountId}.connectionMode="webhook" requires an encryptKey (account-level or top-level)`
328
+ });
329
+ }
330
+ if (value.dmPolicy === "open") {
331
+ if (!(value.allowFrom ?? []).some((entry) => String(entry).trim() === "*")) ctx.addIssue({
332
+ code: z.ZodIssueCode.custom,
333
+ path: ["allowFrom"],
334
+ message: "channels.feishu.dmPolicy=\"open\" requires channels.feishu.allowFrom to include \"*\""
335
+ });
336
+ }
337
+ });
338
+ //#endregion
339
+ //#region extensions/feishu/src/directory.static.ts
340
+ function toFeishuDirectoryPeers(ids) {
341
+ return ids.map((id) => ({
342
+ kind: "user",
343
+ id
344
+ }));
345
+ }
346
+ function toFeishuDirectoryGroups(ids) {
347
+ return ids.map((id) => ({
348
+ kind: "group",
349
+ id
350
+ }));
351
+ }
352
+ async function listFeishuDirectoryPeers(params) {
353
+ const account = resolveFeishuAccount({
354
+ cfg: params.cfg,
355
+ accountId: params.accountId
356
+ });
357
+ return toFeishuDirectoryPeers(listDirectoryUserEntriesFromAllowFromAndMapKeys({
358
+ allowFrom: account.config.allowFrom,
359
+ map: account.config.dms,
360
+ query: params.query,
361
+ limit: params.limit,
362
+ normalizeAllowFromId: (entry) => normalizeFeishuTarget(entry) ?? entry,
363
+ normalizeMapKeyId: (entry) => normalizeFeishuTarget(entry) ?? entry
364
+ }).map((entry) => entry.id));
365
+ }
366
+ async function listFeishuDirectoryGroups(params) {
367
+ const account = resolveFeishuAccount({
368
+ cfg: params.cfg,
369
+ accountId: params.accountId
370
+ });
371
+ return toFeishuDirectoryGroups(listDirectoryGroupEntriesFromMapKeysAndAllowFrom({
372
+ groups: account.config.groups,
373
+ allowFrom: account.config.groupAllowFrom,
374
+ query: params.query,
375
+ limit: params.limit
376
+ }).map((entry) => entry.id));
377
+ }
378
+ //#endregion
379
+ //#region extensions/feishu/src/doctor.ts
380
+ const FEISHU_STATE_DIR = "feishu";
381
+ const BACKUP_PREFIX = "feishu-state-repair";
382
+ const BLANK_USER_MESSAGE_REPAIR_THRESHOLD = 3;
383
+ const SESSION_FILE_INSPECTION_MAX_BYTES = 16777216;
384
+ function timestampForPath(now = /* @__PURE__ */ new Date()) {
385
+ return now.toISOString().replaceAll(":", "-");
386
+ }
387
+ function toFeishuSessionEntry(value) {
388
+ if (!isRecord(value)) return {};
389
+ return {
390
+ sessionId: value.sessionId,
391
+ sessionFile: value.sessionFile
392
+ };
393
+ }
394
+ function countLabel(count, singular, plural = `${singular}s`) {
395
+ return `${count} ${count === 1 ? singular : plural}`;
396
+ }
397
+ function existsDir(dir) {
398
+ try {
399
+ return fs.statSync(dir).isDirectory();
400
+ } catch {
401
+ return false;
402
+ }
403
+ }
404
+ function existsFile(filePath) {
405
+ try {
406
+ return fs.statSync(filePath).isFile();
407
+ } catch {
408
+ return false;
409
+ }
410
+ }
411
+ function safeReadDir(dir) {
412
+ try {
413
+ return fs.readdirSync(dir, { withFileTypes: true });
414
+ } catch {
415
+ return [];
416
+ }
417
+ }
418
+ function isPathWithinRoot(targetPath, rootPath) {
419
+ const resolvedTarget = path.resolve(targetPath);
420
+ const resolvedRoot = path.resolve(rootPath);
421
+ const relative = path.relative(resolvedRoot, resolvedTarget);
422
+ return relative !== "" && !relative.startsWith("..") && !path.isAbsolute(relative);
423
+ }
424
+ function formatDisplayPath(filePath) {
425
+ const home = os.homedir();
426
+ const resolved = path.resolve(filePath);
427
+ return resolved === home || resolved.startsWith(`${home}${path.sep}`) ? `~${resolved.slice(home.length)}` : resolved;
428
+ }
429
+ function formatFinding(finding) {
430
+ switch (finding.kind) {
431
+ case "corrupt-state-json": return `- Feishu local JSON state is corrupt: ${formatDisplayPath(finding.path)}`;
432
+ case "missing-session-transcript": return `- Feishu session ${finding.sessionKey} points to a missing transcript in ${formatDisplayPath(finding.storePath)}`;
433
+ case "invalid-session-transcript": return `- Feishu session ${finding.sessionKey} has an invalid transcript (${finding.reason}): ${formatDisplayPath(finding.path)}`;
434
+ case "blank-user-message-run": return `- Feishu session ${finding.sessionKey} contains ${finding.count} blank user messages: ${formatDisplayPath(finding.path)}`;
435
+ }
436
+ return finding;
437
+ }
438
+ function isFeishuSessionStoreKey(key) {
439
+ const normalized = key.trim().toLowerCase();
440
+ return /^agent:[^:]+:feishu(?::|$)/.test(normalized) || /^feishu(?::|$)/.test(normalized);
441
+ }
442
+ function isFeishuAcpBindingSessionKey(key) {
443
+ return /^agent:[^:]+:acp:binding:feishu(?::|$)/.test(key.trim().toLowerCase());
444
+ }
445
+ function normalizeMetadataString(value) {
446
+ return typeof value === "string" ? value.trim().toLowerCase() : "";
447
+ }
448
+ function isFeishuSessionEntry(key, value) {
449
+ if (isFeishuAcpBindingSessionKey(key)) return false;
450
+ if (isFeishuSessionStoreKey(key)) return true;
451
+ if (!isRecord(value)) return false;
452
+ if (normalizeMetadataString(value.channel) === "feishu" || normalizeMetadataString(value.lastChannel) === "feishu") return true;
453
+ if (normalizeMetadataString((isRecord(value.route) ? value.route : null)?.channel) === "feishu") return true;
454
+ if (normalizeMetadataString((isRecord(value.deliveryContext) ? value.deliveryContext : null)?.channel) === "feishu") return true;
455
+ if (normalizeMetadataString((isRecord(value.pendingFinalDeliveryContext) ? value.pendingFinalDeliveryContext : null)?.channel) === "feishu") return true;
456
+ const origin = isRecord(value.origin) ? value.origin : null;
457
+ const originProvider = normalizeMetadataString(origin?.provider);
458
+ const originSurface = normalizeMetadataString(origin?.surface);
459
+ const originFrom = normalizeMetadataString(origin?.from);
460
+ return originProvider === "feishu" || originSurface.startsWith("feishu") || originFrom.startsWith("feishu:");
461
+ }
462
+ function collectConfiguredAgentIds(cfg) {
463
+ const ids = /* @__PURE__ */ new Set();
464
+ ids.add(resolveConfiguredDefaultAgentId(cfg));
465
+ for (const agent of cfg.agents?.list ?? []) if (typeof agent.id === "string" && agent.id.trim()) ids.add(normalizeAgentId(agent.id));
466
+ return [...ids].toSorted();
467
+ }
468
+ function resolveConfiguredDefaultAgentId(cfg) {
469
+ const agents = cfg.agents?.list ?? [];
470
+ const chosen = agents.find((agent) => agent?.default) ?? agents[0];
471
+ return normalizeAgentId(typeof chosen?.id === "string" && chosen.id.trim() ? chosen.id : "main");
472
+ }
473
+ function collectFeishuSessionTargets(params) {
474
+ const byStorePath = /* @__PURE__ */ new Map();
475
+ const addTarget = (target) => {
476
+ byStorePath.set(path.resolve(target.storePath), {
477
+ ...target,
478
+ storePath: path.resolve(target.storePath)
479
+ });
480
+ };
481
+ for (const agentId of collectConfiguredAgentIds(params.cfg)) addTarget({
482
+ agentId,
483
+ storePath: resolveStorePath(params.cfg.session?.store, {
484
+ agentId,
485
+ env: params.env
486
+ })
487
+ });
488
+ const agentsDir = path.join(params.stateDir, "agents");
489
+ for (const agentDir of safeReadDir(agentsDir)) {
490
+ if (!agentDir.isDirectory()) continue;
491
+ const agentId = normalizeAgentId(agentDir.name);
492
+ const storePath = path.join(agentsDir, agentDir.name, "sessions", "sessions.json");
493
+ if (existsFile(storePath)) addTarget({
494
+ agentId,
495
+ storePath
496
+ });
497
+ }
498
+ return [...byStorePath.values()].toSorted((left, right) => left.storePath.localeCompare(right.storePath));
499
+ }
500
+ function collectJsonFiles(rootDir, limit = 200) {
501
+ const files = [];
502
+ const visit = (dir) => {
503
+ if (files.length >= limit) return;
504
+ for (const entry of safeReadDir(dir).toSorted((left, right) => left.name.localeCompare(right.name))) {
505
+ const fullPath = path.join(dir, entry.name);
506
+ if (entry.isDirectory()) {
507
+ visit(fullPath);
508
+ continue;
509
+ }
510
+ if (entry.isFile() && entry.name.endsWith(".json")) files.push(fullPath);
511
+ if (files.length >= limit) return;
512
+ }
513
+ };
514
+ if (existsDir(rootDir)) visit(rootDir);
515
+ return files;
516
+ }
517
+ function collectCorruptFeishuStateJsonFindings(feishuStateDir) {
518
+ const findings = [];
519
+ for (const filePath of collectJsonFiles(feishuStateDir)) try {
520
+ JSON.parse(fs.readFileSync(filePath, "utf-8"));
521
+ } catch {
522
+ findings.push({
523
+ kind: "corrupt-state-json",
524
+ path: filePath
525
+ });
526
+ }
527
+ return findings;
528
+ }
529
+ function resolveSessionTranscriptCandidates(params) {
530
+ const candidates = /* @__PURE__ */ new Set();
531
+ const sessionsDir = path.dirname(params.storePath);
532
+ const addSafeCandidate = (candidate) => {
533
+ const resolved = path.isAbsolute(candidate) ? path.resolve(candidate) : path.resolve(sessionsDir, candidate);
534
+ if (resolved === sessionsDir || !isPathWithinRoot(resolved, sessionsDir)) return;
535
+ candidates.add(resolved);
536
+ };
537
+ if (typeof params.entry.sessionId === "string" && /^[a-z0-9][a-z0-9._-]{0,127}$/i.test(params.entry.sessionId)) {
538
+ candidates.add(resolveSessionFilePath(params.entry.sessionId, typeof params.entry.sessionFile === "string" ? { sessionFile: params.entry.sessionFile } : void 0, {
539
+ agentId: params.agentId,
540
+ sessionsDir
541
+ }));
542
+ return [...candidates].toSorted();
543
+ }
544
+ if (typeof params.entry.sessionFile === "string" && params.entry.sessionFile.trim()) addSafeCandidate(params.entry.sessionFile.trim());
545
+ return [...candidates].toSorted();
546
+ }
547
+ function isSessionHeader(value) {
548
+ return isRecord(value) && value.type === "session" && typeof value.id === "string";
549
+ }
550
+ function isBlankUserMessage(value) {
551
+ if (!isRecord(value) || value.type !== "message" || !isRecord(value.message)) return false;
552
+ if (value.message.role !== "user") return false;
553
+ const content = value.message.content;
554
+ if (typeof content === "string") return content.trim().length === 0;
555
+ return Array.isArray(content) && content.length === 0;
556
+ }
557
+ function isUserMessage(value) {
558
+ return isRecord(value) && value.type === "message" && isRecord(value.message) && value.message.role === "user";
559
+ }
560
+ function inspectSessionTranscript(params) {
561
+ let stat;
562
+ try {
563
+ stat = fs.statSync(params.transcriptPath);
564
+ } catch {
565
+ return null;
566
+ }
567
+ if (!stat.isFile()) return {
568
+ kind: "invalid-session-transcript",
569
+ sessionKey: params.sessionKey,
570
+ storePath: params.storePath,
571
+ path: params.transcriptPath,
572
+ reason: "not a file"
573
+ };
574
+ if (stat.size > SESSION_FILE_INSPECTION_MAX_BYTES) return null;
575
+ let raw;
576
+ try {
577
+ raw = fs.readFileSync(params.transcriptPath, "utf-8");
578
+ } catch {
579
+ return {
580
+ kind: "invalid-session-transcript",
581
+ sessionKey: params.sessionKey,
582
+ storePath: params.storePath,
583
+ path: params.transcriptPath,
584
+ reason: "unreadable"
585
+ };
586
+ }
587
+ const entries = [];
588
+ let malformedLines = 0;
589
+ let blankUserMessageRun = 0;
590
+ let maxBlankUserMessageRun = 0;
591
+ for (const line of raw.split(/\r?\n/)) {
592
+ if (!line.trim()) continue;
593
+ try {
594
+ const entry = JSON.parse(line);
595
+ entries.push(entry);
596
+ if (isBlankUserMessage(entry)) {
597
+ blankUserMessageRun += 1;
598
+ maxBlankUserMessageRun = Math.max(maxBlankUserMessageRun, blankUserMessageRun);
599
+ } else if (isUserMessage(entry)) blankUserMessageRun = 0;
600
+ } catch {
601
+ malformedLines += 1;
602
+ }
603
+ }
604
+ if (entries.length === 0) return {
605
+ kind: "invalid-session-transcript",
606
+ sessionKey: params.sessionKey,
607
+ storePath: params.storePath,
608
+ path: params.transcriptPath,
609
+ reason: "empty transcript"
610
+ };
611
+ if (!isSessionHeader(entries[0])) return {
612
+ kind: "invalid-session-transcript",
613
+ sessionKey: params.sessionKey,
614
+ storePath: params.storePath,
615
+ path: params.transcriptPath,
616
+ reason: "invalid session header"
617
+ };
618
+ if (malformedLines > 0) return {
619
+ kind: "invalid-session-transcript",
620
+ sessionKey: params.sessionKey,
621
+ storePath: params.storePath,
622
+ path: params.transcriptPath,
623
+ reason: `${malformedLines} malformed JSONL line(s)`
624
+ };
625
+ if (maxBlankUserMessageRun >= BLANK_USER_MESSAGE_REPAIR_THRESHOLD) return {
626
+ kind: "blank-user-message-run",
627
+ sessionKey: params.sessionKey,
628
+ storePath: params.storePath,
629
+ path: params.transcriptPath,
630
+ count: maxBlankUserMessageRun
631
+ };
632
+ return null;
633
+ }
634
+ function collectFeishuSessionFindings(params) {
635
+ const transcriptCandidates = resolveSessionTranscriptCandidates(params);
636
+ const existing = transcriptCandidates.filter(existsFile);
637
+ if (transcriptCandidates.length > 0 && existing.length === 0) return [{
638
+ kind: "missing-session-transcript",
639
+ sessionKey: params.sessionKey,
640
+ storePath: params.storePath
641
+ }];
642
+ const findings = [];
643
+ for (const transcriptPath of existing) {
644
+ const finding = inspectSessionTranscript({
645
+ sessionKey: params.sessionKey,
646
+ storePath: params.storePath,
647
+ transcriptPath
648
+ });
649
+ if (finding) findings.push(finding);
650
+ }
651
+ return findings;
652
+ }
653
+ function hasCorruptFeishuStateJsonFinding(inspection) {
654
+ return inspection.findings.some((finding) => finding.kind === "corrupt-state-json");
655
+ }
656
+ function sessionEntryId(storePath, key) {
657
+ return `${path.resolve(storePath)}\0${key}`;
658
+ }
659
+ function collectRepairSessionEntries(inspection) {
660
+ const entriesById = /* @__PURE__ */ new Map();
661
+ for (const entry of inspection.sessionEntries) entriesById.set(sessionEntryId(entry.storePath, entry.key), entry);
662
+ const repairEntries = [];
663
+ const seen = /* @__PURE__ */ new Set();
664
+ for (const finding of inspection.findings) {
665
+ if (finding.kind === "corrupt-state-json") continue;
666
+ const id = sessionEntryId(finding.storePath, finding.sessionKey);
667
+ if (seen.has(id)) continue;
668
+ const entry = entriesById.get(id);
669
+ if (entry) {
670
+ repairEntries.push(entry);
671
+ seen.add(id);
672
+ }
673
+ }
674
+ return repairEntries.toSorted((left, right) => left.storePath.localeCompare(right.storePath) || left.key.localeCompare(right.key));
675
+ }
676
+ function inspectFeishuDoctorState(params) {
677
+ const env = params.env ?? process.env;
678
+ const stateDir = resolveStateDir(env, os.homedir);
679
+ const feishuStateDir = path.join(stateDir, FEISHU_STATE_DIR);
680
+ const findings = collectCorruptFeishuStateJsonFindings(feishuStateDir);
681
+ const sessionEntries = [];
682
+ for (const target of collectFeishuSessionTargets({
683
+ cfg: params.cfg,
684
+ env,
685
+ stateDir
686
+ })) {
687
+ const store = loadSessionStore(target.storePath, { skipCache: true });
688
+ for (const [key, entry] of Object.entries(store).toSorted(([left], [right]) => left.localeCompare(right))) {
689
+ if (!isFeishuSessionEntry(key, entry)) continue;
690
+ const sessionEntry = toFeishuSessionEntry(entry);
691
+ sessionEntries.push({
692
+ key,
693
+ storePath: target.storePath,
694
+ agentId: target.agentId,
695
+ entry: sessionEntry
696
+ });
697
+ findings.push(...collectFeishuSessionFindings({
698
+ sessionKey: key,
699
+ storePath: target.storePath,
700
+ agentId: target.agentId,
701
+ entry: sessionEntry
702
+ }));
703
+ }
704
+ }
705
+ return {
706
+ stateDir,
707
+ feishuStateDir,
708
+ findings,
709
+ sessionEntries
710
+ };
711
+ }
712
+ function ensureBackupDir(stateDir, now) {
713
+ const backupDir = path.join(stateDir, "backups", `${BACKUP_PREFIX}-${timestampForPath(now)}`);
714
+ fs.mkdirSync(backupDir, {
715
+ recursive: true,
716
+ mode: 448
717
+ });
718
+ return backupDir;
719
+ }
720
+ function resolveUniquePath(candidate) {
721
+ if (!fs.existsSync(candidate)) return candidate;
722
+ for (let index = 1; index < 1e3; index += 1) {
723
+ const next = `${candidate}.${index}`;
724
+ if (!fs.existsSync(next)) return next;
725
+ }
726
+ throw new Error(`Unable to resolve unique path for ${candidate}`);
727
+ }
728
+ function movePathToBackup(params) {
729
+ if (!fs.existsSync(params.sourcePath)) return false;
730
+ const targetPath = resolveUniquePath(path.join(params.backupDir, params.relativeTarget));
731
+ fs.mkdirSync(path.dirname(targetPath), {
732
+ recursive: true,
733
+ mode: 448
734
+ });
735
+ fs.renameSync(params.sourcePath, targetPath);
736
+ return true;
737
+ }
738
+ function copyStoreBackup(params) {
739
+ if (!existsFile(params.storePath)) return;
740
+ const targetPath = path.join(params.backupDir, "session-stores", params.agentId, path.basename(params.storePath));
741
+ fs.mkdirSync(path.dirname(targetPath), {
742
+ recursive: true,
743
+ mode: 448
744
+ });
745
+ fs.copyFileSync(params.storePath, resolveUniquePath(targetPath));
746
+ }
747
+ function collectSessionArtifactPaths(params) {
748
+ const artifacts = /* @__PURE__ */ new Set();
749
+ for (const transcriptPath of resolveSessionTranscriptCandidates(params)) {
750
+ artifacts.add(transcriptPath);
751
+ if (transcriptPath.endsWith(".jsonl")) {
752
+ const base = transcriptPath.slice(0, -6);
753
+ artifacts.add(`${base}.trajectory.jsonl`);
754
+ artifacts.add(`${base}.trajectory-path.json`);
755
+ }
756
+ }
757
+ return [...artifacts].toSorted();
758
+ }
759
+ function archiveSessionArtifacts(params) {
760
+ const seen = /* @__PURE__ */ new Set();
761
+ let archived = 0;
762
+ for (const entry of params.entries) for (const artifactPath of collectSessionArtifactPaths({
763
+ storePath: params.storePath,
764
+ agentId: entry.agentId,
765
+ entry: entry.entry
766
+ })) {
767
+ if (seen.has(artifactPath) || !existsFile(artifactPath)) continue;
768
+ seen.add(artifactPath);
769
+ const archivedPath = resolveUniquePath(`${artifactPath}.deleted.${params.archiveTimestamp}`);
770
+ fs.renameSync(artifactPath, archivedPath);
771
+ archived += 1;
772
+ }
773
+ return archived;
774
+ }
775
+ async function repairFeishuDoctorState(params) {
776
+ const env = params.env ?? process.env;
777
+ const now = params.now ?? /* @__PURE__ */ new Date();
778
+ const inspection = params.inspection ?? inspectFeishuDoctorState({
779
+ cfg: params.cfg,
780
+ env
781
+ });
782
+ const backupDir = ensureBackupDir(inspection.stateDir, now);
783
+ const archiveTimestamp = timestampForPath(now);
784
+ const warnings = [];
785
+ const stateDirRepairAttempted = hasCorruptFeishuStateJsonFinding(inspection);
786
+ let rebuiltStateDir = false;
787
+ if (stateDirRepairAttempted) try {
788
+ rebuiltStateDir = movePathToBackup({
789
+ sourcePath: inspection.feishuStateDir,
790
+ backupDir,
791
+ relativeTarget: FEISHU_STATE_DIR
792
+ });
793
+ fs.mkdirSync(inspection.feishuStateDir, {
794
+ recursive: true,
795
+ mode: 448
796
+ });
797
+ } catch (error) {
798
+ warnings.push(`- Failed to rebuild Feishu local state: ${String(error)}`);
799
+ }
800
+ const entriesByStore = /* @__PURE__ */ new Map();
801
+ for (const entry of collectRepairSessionEntries(inspection)) {
802
+ const existing = entriesByStore.get(entry.storePath);
803
+ if (existing) existing.entries.push({
804
+ key: entry.key,
805
+ entry: entry.entry
806
+ });
807
+ else entriesByStore.set(entry.storePath, {
808
+ agentId: entry.agentId,
809
+ entries: [{
810
+ key: entry.key,
811
+ entry: entry.entry
812
+ }]
813
+ });
814
+ }
815
+ let removedSessionEntries = 0;
816
+ let touchedSessionStores = 0;
817
+ let archivedSessionArtifacts = 0;
818
+ for (const [storePath, group] of [...entriesByStore.entries()].toSorted(([left], [right]) => left.localeCompare(right))) try {
819
+ copyStoreBackup({
820
+ storePath,
821
+ backupDir,
822
+ agentId: group.agentId
823
+ });
824
+ const keys = new Set(group.entries.map((entry) => entry.key));
825
+ const removedEntries = await updateSessionStore(storePath, (store) => {
826
+ const removed = [];
827
+ for (const key of keys) if (Object.hasOwn(store, key)) {
828
+ delete store[key];
829
+ const entry = group.entries.find((candidate) => candidate.key === key);
830
+ if (entry) removed.push(entry);
831
+ }
832
+ return removed;
833
+ }, { skipMaintenance: true });
834
+ const removed = removedEntries.length;
835
+ removedSessionEntries += removed;
836
+ if (removed > 0) {
837
+ touchedSessionStores += 1;
838
+ archivedSessionArtifacts += archiveSessionArtifacts({
839
+ storePath,
840
+ entries: removedEntries.map((entry) => ({
841
+ agentId: group.agentId,
842
+ entry: entry.entry
843
+ })),
844
+ archiveTimestamp
845
+ });
846
+ }
847
+ } catch (error) {
848
+ warnings.push(`- Failed to archive Feishu sessions in ${formatDisplayPath(storePath)}: ${String(error)}`);
849
+ }
850
+ return {
851
+ backupDir,
852
+ stateDirRepairAttempted,
853
+ rebuiltStateDir,
854
+ removedSessionEntries,
855
+ touchedSessionStores,
856
+ archivedSessionArtifacts,
857
+ warnings
858
+ };
859
+ }
860
+ function formatPreviewWarning(inspection) {
861
+ const previewFindings = inspection.findings.slice(0, 5).map(formatFinding);
862
+ const remaining = inspection.findings.length - previewFindings.length;
863
+ const repairActions = [];
864
+ if (hasCorruptFeishuStateJsonFinding(inspection)) repairActions.push(`archive ${formatDisplayPath(inspection.feishuStateDir)}`);
865
+ const repairSessionEntries = collectRepairSessionEntries(inspection);
866
+ if (repairSessionEntries.length > 0) repairActions.push(`archive artifacts and remove ${countLabel(repairSessionEntries.length, "flagged Feishu-scoped session entry", "flagged Feishu-scoped session entries")}`);
867
+ const repairSummary = repairActions.length > 0 ? repairActions.join(" and ") : "apply targeted Feishu state cleanup";
868
+ return [
869
+ "- Feishu local channel state may need repair.",
870
+ ...previewFindings,
871
+ ...remaining > 0 ? [`- ...and ${remaining} more Feishu state finding(s).`] : [],
872
+ `- Repair will ${repairSummary}, while preserving Feishu App ID/secret config and healthy session entries.`,
873
+ "- Run \"openclaw doctor --fix\" to rebuild Feishu local state."
874
+ ].join("\n");
875
+ }
876
+ function formatRepairChange(report) {
877
+ const stateRepairStatus = report.stateDirRepairAttempted ? report.rebuiltStateDir ? "yes" : "no existing state" : "not needed";
878
+ return [
879
+ "Feishu local state repaired.",
880
+ `- Backup dir: ${formatDisplayPath(report.backupDir)}`,
881
+ `- Rebuilt Feishu runtime state: ${stateRepairStatus}`,
882
+ `- Removed ${countLabel(report.removedSessionEntries, "Feishu-scoped session entry", "Feishu-scoped session entries")} from ${countLabel(report.touchedSessionStores, "session store")}.`,
883
+ `- Archived ${countLabel(report.archivedSessionArtifacts, "session artifact file")}.`,
884
+ "- Preserved Feishu App ID/secret config."
885
+ ].join("\n");
886
+ }
887
+ function hasConfiguredFeishuChannel(cfg) {
888
+ return Boolean(cfg.channels?.feishu);
889
+ }
890
+ async function runFeishuDoctorSequence(params) {
891
+ if (!hasConfiguredFeishuChannel(params.cfg)) return {
892
+ changeNotes: [],
893
+ warningNotes: []
894
+ };
895
+ const inspection = inspectFeishuDoctorState({
896
+ cfg: params.cfg,
897
+ env: params.env
898
+ });
899
+ if (inspection.findings.length === 0) return {
900
+ changeNotes: [],
901
+ warningNotes: []
902
+ };
903
+ if (!params.shouldRepair) return {
904
+ changeNotes: [],
905
+ warningNotes: [formatPreviewWarning(inspection)]
906
+ };
907
+ const report = await repairFeishuDoctorState({
908
+ cfg: params.cfg,
909
+ env: params.env,
910
+ inspection
911
+ });
912
+ return {
913
+ changeNotes: [formatRepairChange(report)],
914
+ warningNotes: report.warnings
915
+ };
916
+ }
917
+ const feishuDoctor = { runConfigSequence: async ({ cfg, env, shouldRepair }) => await runFeishuDoctorSequence({
918
+ cfg,
919
+ env,
920
+ shouldRepair
921
+ }) };
922
+ //#endregion
923
+ //#region extensions/feishu/src/policy.ts
924
+ const FEISHU_PROVIDER_PREFIX_RE = /^(feishu|lark):/i;
925
+ const FEISHU_TYPED_PREFIX_RE = /^(chat|group|channel|user|dm|open_id):/i;
926
+ const FEISHU_ID_KIND = "plugin:feishu-id";
927
+ const feishuIngressIdentity = defineStableChannelIngressIdentity({
928
+ key: "feishu-id",
929
+ kind: FEISHU_ID_KIND,
930
+ normalize: normalizeFeishuAllowEntry,
931
+ sensitivity: "pii",
932
+ aliases: [{
933
+ key: "feishu-alt-id",
934
+ kind: FEISHU_ID_KIND,
935
+ normalizeEntry: () => null,
936
+ normalizeSubject: normalizeFeishuAllowEntry,
937
+ sensitivity: "pii"
938
+ }],
939
+ isWildcardEntry: (entry) => normalizeFeishuAllowEntry(entry) === "*",
940
+ resolveEntryId: ({ entryIndex }) => `feishu-entry-${entryIndex + 1}`
941
+ });
942
+ function normalizeFeishuAllowEntry(raw) {
943
+ const trimmed = raw.trim();
944
+ if (!trimmed) return "";
945
+ if (trimmed === "*") return "*";
946
+ let withoutProviderPrefix = trimmed;
947
+ while (FEISHU_PROVIDER_PREFIX_RE.test(withoutProviderPrefix)) withoutProviderPrefix = withoutProviderPrefix.replace(FEISHU_PROVIDER_PREFIX_RE, "").trim();
948
+ if (withoutProviderPrefix === "*") return "*";
949
+ const lowered = normalizeOptionalLowercaseString(withoutProviderPrefix) ?? "";
950
+ if (!lowered) return "";
951
+ const prefixed = lowered.match(FEISHU_TYPED_PREFIX_RE);
952
+ if (prefixed?.[1]) {
953
+ const kind = [
954
+ "chat",
955
+ "group",
956
+ "channel"
957
+ ].includes(prefixed[1]) ? "chat" : "user";
958
+ const value = withoutProviderPrefix.slice(prefixed[0].length).trim();
959
+ return value === "*" ? "*" : value ? `${kind}:${value}` : "";
960
+ }
961
+ const detectedType = detectIdType(withoutProviderPrefix);
962
+ if (detectedType === "chat_id") return `chat:${withoutProviderPrefix}`;
963
+ if (detectedType === "open_id" || detectedType === "user_id") return `user:${withoutProviderPrefix}`;
964
+ return "";
965
+ }
966
+ function normalizeFeishuDmPolicy(policy) {
967
+ return policy === "open" || policy === "pairing" || policy === "allowlist" || policy === "disabled" ? policy : "pairing";
968
+ }
969
+ function normalizeFeishuGroupPolicy(policy) {
970
+ return policy === "allowall" ? "open" : policy;
971
+ }
972
+ function createFeishuIngressSubject(params) {
973
+ const ids = [params.primaryId, ...params.alternateIds ?? []].map((value) => value?.trim()).filter((value) => Boolean(value));
974
+ return {
975
+ stableId: ids[0],
976
+ aliases: { "feishu-alt-id": ids[1] }
977
+ };
978
+ }
979
+ function createFeishuIngressResolver(params) {
980
+ return createChannelIngressResolver({
981
+ channelId: "feishu",
982
+ accountId: normalizeAccountId(params.accountId) ?? "default",
983
+ identity: feishuIngressIdentity,
984
+ cfg: params.cfg,
985
+ ...params.readAllowFromStore ? { readStoreAllowFrom: params.readAllowFromStore } : {}
986
+ });
987
+ }
988
+ async function resolveFeishuDmIngressAccess(params) {
989
+ return await createFeishuIngressResolver({
990
+ cfg: params.cfg,
991
+ accountId: params.accountId,
992
+ readAllowFromStore: params.readAllowFromStore
993
+ }).message({
994
+ subject: createFeishuIngressSubject({
995
+ primaryId: params.senderOpenId,
996
+ alternateIds: [params.senderUserId]
997
+ }),
998
+ conversation: {
999
+ kind: "direct",
1000
+ id: params.conversationId
1001
+ },
1002
+ event: { mayPair: params.mayPair },
1003
+ dmPolicy: normalizeFeishuDmPolicy(params.dmPolicy),
1004
+ groupPolicy: "disabled",
1005
+ allowFrom: params.allowFrom ?? [],
1006
+ ...params.command ? { command: params.command } : {}
1007
+ });
1008
+ }
1009
+ async function resolveFeishuGroupConversationIngressAccess(params) {
1010
+ const groupPolicy = normalizeFeishuGroupPolicy(params.groupPolicy);
1011
+ const groupAllowFrom = groupPolicy === "allowlist" && params.groupExplicitlyConfigured ? [...params.groupAllowFrom ?? [], params.chatId] : params.groupAllowFrom ?? [];
1012
+ return await createFeishuIngressResolver({
1013
+ cfg: params.cfg,
1014
+ accountId: params.accountId
1015
+ }).message({
1016
+ subject: createFeishuIngressSubject({ primaryId: params.chatId }),
1017
+ conversation: {
1018
+ kind: "group",
1019
+ id: params.chatId
1020
+ },
1021
+ dmPolicy: "disabled",
1022
+ groupPolicy,
1023
+ groupAllowFrom
1024
+ });
1025
+ }
1026
+ async function resolveFeishuGroupSenderActivationIngressAccess(params) {
1027
+ const groupAllowFrom = params.allowFrom ?? [];
1028
+ return await createFeishuIngressResolver({
1029
+ cfg: params.cfg,
1030
+ accountId: params.accountId
1031
+ }).message({
1032
+ subject: createFeishuIngressSubject({
1033
+ primaryId: params.senderOpenId,
1034
+ alternateIds: [params.senderUserId]
1035
+ }),
1036
+ conversation: {
1037
+ kind: "group",
1038
+ id: params.chatId
1039
+ },
1040
+ dmPolicy: "disabled",
1041
+ groupPolicy: groupAllowFrom.length > 0 ? "allowlist" : "open",
1042
+ groupAllowFrom,
1043
+ mentionFacts: {
1044
+ canDetectMention: true,
1045
+ wasMentioned: params.mentionedBot
1046
+ },
1047
+ policy: { activation: {
1048
+ requireMention: params.requireMention,
1049
+ allowTextCommands: false
1050
+ } },
1051
+ ...params.command ? { command: params.command } : {}
1052
+ });
1053
+ }
1054
+ function resolveFeishuGroupConfig(params) {
1055
+ const groups = params.cfg?.groups ?? {};
1056
+ const wildcard = groups["*"];
1057
+ const groupId = params.groupId?.trim();
1058
+ if (!groupId) return;
1059
+ const direct = groups[groupId];
1060
+ if (direct) return direct;
1061
+ const lowered = normalizeOptionalLowercaseString(groupId) ?? "";
1062
+ const matchKey = Object.keys(groups).find((key) => normalizeOptionalLowercaseString(key) === lowered);
1063
+ if (matchKey) return groups[matchKey];
1064
+ return wildcard;
1065
+ }
1066
+ function hasExplicitFeishuGroupConfig(params) {
1067
+ const groups = params.cfg?.groups ?? {};
1068
+ const groupId = params.groupId?.trim();
1069
+ if (!groupId) return false;
1070
+ if (Object.hasOwn(groups, groupId) && groupId !== "*") return true;
1071
+ const lowered = normalizeOptionalLowercaseString(groupId) ?? "";
1072
+ return Object.keys(groups).some((key) => key !== "*" && normalizeOptionalLowercaseString(key) === lowered);
1073
+ }
1074
+ function resolveFeishuGroupToolPolicy(params) {
1075
+ const cfg = params.cfg.channels?.feishu;
1076
+ if (!cfg) return;
1077
+ return resolveFeishuGroupConfig({
1078
+ cfg,
1079
+ groupId: params.groupId
1080
+ })?.tools;
1081
+ }
1082
+ function resolveFeishuReplyPolicy(params) {
1083
+ if (params.isDirectMessage) return { requireMention: false };
1084
+ const feishuCfg = params.cfg.channels?.feishu;
1085
+ const resolvedCfg = resolveMergedAccountConfig({
1086
+ channelConfig: feishuCfg,
1087
+ accounts: feishuCfg?.accounts,
1088
+ accountId: normalizeAccountId(params.accountId),
1089
+ normalizeAccountId,
1090
+ omitKeys: ["defaultAccount"]
1091
+ });
1092
+ const groupRequireMention = resolveFeishuGroupConfig({
1093
+ cfg: resolvedCfg,
1094
+ groupId: params.groupId
1095
+ })?.requireMention;
1096
+ return { requireMention: typeof groupRequireMention === "boolean" ? groupRequireMention : typeof resolvedCfg.requireMention === "boolean" ? resolvedCfg.requireMention : params.groupPolicy !== "open" };
1097
+ }
1098
+ //#endregion
1099
+ //#region extensions/feishu/src/presentation-card.ts
1100
+ function escapeFeishuCardMarkdownText(text) {
1101
+ return text.replace(/[&<>]/g, (char) => {
1102
+ switch (char) {
1103
+ case "&": return "&amp;";
1104
+ case "<": return "&lt;";
1105
+ case ">": return "&gt;";
1106
+ default: return char;
1107
+ }
1108
+ });
1109
+ }
1110
+ function resolveSafeFeishuButtonUrl(url) {
1111
+ const trimmed = url?.trim();
1112
+ if (!trimmed) return;
1113
+ try {
1114
+ const parsed = new URL(trimmed);
1115
+ return parsed.protocol === "https:" || parsed.protocol === "http:" ? trimmed : void 0;
1116
+ } catch {
1117
+ return;
1118
+ }
1119
+ }
1120
+ function resolveFeishuButtonUrl(button) {
1121
+ return button.url ?? button.webApp?.url ?? button.web_app?.url;
1122
+ }
1123
+ function resolveFeishuCommandButtonValue(button) {
1124
+ if (button.action?.type === "callback") return;
1125
+ if (button.action?.type === "command") return button.action.command;
1126
+ return button.value;
1127
+ }
1128
+ function mapFeishuButtonType(style) {
1129
+ if (style === "primary" || style === "success") return "primary";
1130
+ if (style === "danger") return "danger";
1131
+ return "default";
1132
+ }
1133
+ function buildFeishuPayloadButton(button) {
1134
+ const behaviors = [];
1135
+ const rendered = {
1136
+ tag: "button",
1137
+ text: {
1138
+ tag: "plain_text",
1139
+ content: button.label
1140
+ },
1141
+ type: mapFeishuButtonType(button.style)
1142
+ };
1143
+ const url = resolveFeishuButtonUrl(button);
1144
+ if (url) {
1145
+ const safeUrl = resolveSafeFeishuButtonUrl(url);
1146
+ if (safeUrl) behaviors.push({
1147
+ type: "open_url",
1148
+ default_url: safeUrl
1149
+ });
1150
+ }
1151
+ const value = resolveFeishuCommandButtonValue(button);
1152
+ if (value) behaviors.push({
1153
+ type: "callback",
1154
+ value: createFeishuCardInteractionEnvelope({
1155
+ k: "quick",
1156
+ a: "feishu.payload.button",
1157
+ q: value
1158
+ })
1159
+ });
1160
+ if (behaviors.length === 0) return;
1161
+ rendered.behaviors = behaviors;
1162
+ return rendered;
1163
+ }
1164
+ function buildFeishuCardElementsForBlock(block) {
1165
+ if (block.type === "text") return [{
1166
+ tag: "markdown",
1167
+ content: escapeFeishuCardMarkdownText(block.text)
1168
+ }];
1169
+ if (block.type === "context") return [{
1170
+ tag: "markdown",
1171
+ content: `<font color='grey'>${escapeFeishuCardMarkdownText(block.text)}</font>`
1172
+ }];
1173
+ if (block.type === "divider") return [{ tag: "hr" }];
1174
+ if (block.type === "buttons") return block.buttons.map((button) => buildFeishuPayloadButton(button)).filter((button) => Boolean(button));
1175
+ const labels = block.options.map((option) => `- ${option.label}`).join("\n");
1176
+ return [{
1177
+ tag: "markdown",
1178
+ content: `${escapeFeishuCardMarkdownText(block.placeholder?.trim() || "Options")}:\n${escapeFeishuCardMarkdownText(labels)}`
1179
+ }];
1180
+ }
1181
+ function resolvePresentationHeaderTemplate(tone) {
1182
+ if (tone === "danger") return "red";
1183
+ if (tone === "warning") return "orange";
1184
+ if (tone === "success") return "green";
1185
+ return "blue";
1186
+ }
1187
+ function buildFeishuPresentationCardElements(params) {
1188
+ const elements = [];
1189
+ const fallbackText = params.fallbackText?.trim();
1190
+ if (fallbackText) elements.push({
1191
+ tag: "markdown",
1192
+ content: escapeFeishuCardMarkdownText(fallbackText)
1193
+ });
1194
+ for (const block of params.presentation.blocks) for (const element of buildFeishuCardElementsForBlock(block)) elements.push(element);
1195
+ if (elements.length > 0) return elements;
1196
+ return [{
1197
+ tag: "markdown",
1198
+ content: renderMessagePresentationFallbackText({
1199
+ text: params.fallbackText,
1200
+ presentation: params.presentation.title ? {
1201
+ ...params.presentation.tone ? { tone: params.presentation.tone } : {},
1202
+ blocks: params.presentation.blocks
1203
+ } : params.presentation
1204
+ })
1205
+ }];
1206
+ }
1207
+ function buildFeishuPresentationCard(params) {
1208
+ return {
1209
+ schema: "2.0",
1210
+ config: { width_mode: "fill" },
1211
+ ...params.presentation.title ? { header: {
1212
+ title: {
1213
+ tag: "plain_text",
1214
+ content: params.presentation.title
1215
+ },
1216
+ template: resolvePresentationHeaderTemplate(params.presentation.tone)
1217
+ } } : {},
1218
+ body: { elements: buildFeishuPresentationCardElements(params) }
1219
+ };
1220
+ }
1221
+ //#endregion
1222
+ //#region extensions/feishu/src/session-route.ts
1223
+ function resolveFeishuOutboundSessionRoute(params) {
1224
+ const rawTarget = stripChannelTargetPrefix(params.target, "feishu", "lark");
1225
+ const target = normalizeFeishuTarget(rawTarget);
1226
+ if (!target) return null;
1227
+ const isGroup = resolveReceiveIdType(rawTarget) === "chat_id";
1228
+ const account = resolveFeishuAccount({
1229
+ cfg: params.cfg,
1230
+ accountId: params.accountId
1231
+ });
1232
+ const groupSessionScope = isGroup ? resolveConfiguredFeishuGroupSessionScope({
1233
+ groupConfig: resolveFeishuGroupConfig({
1234
+ cfg: account.config,
1235
+ groupId: target
1236
+ }),
1237
+ feishuCfg: account.config
1238
+ }) : void 0;
1239
+ const recipientSessionExact = isGroup ? target.startsWith("oc_") && groupSessionScope === "group" : target.startsWith("ou_");
1240
+ return buildChannelOutboundSessionRoute({
1241
+ cfg: params.cfg,
1242
+ agentId: params.agentId,
1243
+ channel: "feishu",
1244
+ accountId: params.accountId,
1245
+ recipientSessionExact,
1246
+ peer: {
1247
+ kind: isGroup ? "group" : "direct",
1248
+ id: target
1249
+ },
1250
+ chatType: isGroup ? "group" : "direct",
1251
+ from: isGroup ? `feishu:group:${target}` : `feishu:${target}`,
1252
+ to: target
1253
+ });
1254
+ }
1255
+ //#endregion
1256
+ //#region extensions/feishu/src/setup-core.ts
1257
+ function setFeishuNamedAccountEnabled$1(cfg, accountId, enabled) {
1258
+ const feishuCfg = cfg.channels?.feishu;
1259
+ return {
1260
+ ...cfg,
1261
+ channels: {
1262
+ ...cfg.channels,
1263
+ feishu: {
1264
+ ...feishuCfg,
1265
+ accounts: {
1266
+ ...feishuCfg?.accounts,
1267
+ [accountId]: {
1268
+ ...feishuCfg?.accounts?.[accountId],
1269
+ enabled
1270
+ }
1271
+ }
1272
+ }
1273
+ }
1274
+ };
1275
+ }
1276
+ const feishuSetupAdapter = {
1277
+ resolveAccountId: ({ cfg, accountId }) => accountId?.trim() || resolveDefaultFeishuAccountId(cfg),
1278
+ applyAccountConfig: ({ cfg, accountId }) => {
1279
+ if (!accountId || accountId === DEFAULT_ACCOUNT_ID$1) return {
1280
+ ...cfg,
1281
+ channels: {
1282
+ ...cfg.channels,
1283
+ feishu: {
1284
+ ...cfg.channels?.feishu,
1285
+ enabled: true
1286
+ }
1287
+ }
1288
+ };
1289
+ return setFeishuNamedAccountEnabled$1(cfg, accountId, true);
1290
+ }
1291
+ };
1292
+ //#endregion
1293
+ //#region extensions/feishu/src/setup-surface.ts
1294
+ const t = createSetupTranslator();
1295
+ const channel = "feishu";
1296
+ const SCAN_TO_CREATE_TP = "ob_cli_app";
1297
+ const FEISHU_SETUP_FLOW_KEY = "_flow";
1298
+ function isFeishuConfigured(cfg) {
1299
+ const feishuCfg = cfg.channels?.feishu;
1300
+ const isAppIdConfigured = (value) => {
1301
+ if (normalizeOptionalString(value)) return true;
1302
+ if (!value || typeof value !== "object") return false;
1303
+ const rec = value;
1304
+ const source = normalizeOptionalString(rec.source)?.toLowerCase();
1305
+ const id = normalizeOptionalString(rec.id);
1306
+ if (source === "env" && id) return Boolean(normalizeOptionalString(process.env[id]));
1307
+ return hasConfiguredSecretInput$1(value);
1308
+ };
1309
+ const topLevelConfigured = isAppIdConfigured(feishuCfg?.appId) && hasConfiguredSecretInput$1(feishuCfg?.appSecret);
1310
+ const accountConfigured = Object.values(feishuCfg?.accounts ?? {}).some((account) => {
1311
+ if (!account || typeof account !== "object") return false;
1312
+ const hasOwnAppId = Object.hasOwn(account, "appId");
1313
+ const hasOwnAppSecret = Object.hasOwn(account, "appSecret");
1314
+ const accountAppIdConfigured = hasOwnAppId ? isAppIdConfigured(account.appId) : isAppIdConfigured(feishuCfg?.appId);
1315
+ const accountSecretConfigured = hasOwnAppSecret ? hasConfiguredSecretInput$1(account.appSecret) : hasConfiguredSecretInput$1(feishuCfg?.appSecret);
1316
+ return accountAppIdConfigured && accountSecretConfigured;
1317
+ });
1318
+ return topLevelConfigured || accountConfigured;
1319
+ }
1320
+ function formatFeishuStatusLine(status) {
1321
+ if (status === "needs-credentials") return `Feishu: ${t("wizard.channels.statusNeedsAppCredentials")}`;
1322
+ return `Feishu: ${t("wizard.channels.statusConfiguredConnectionNotVerified")}`;
1323
+ }
1324
+ /**
1325
+ * Patch feishu config at the correct location based on accountId.
1326
+ * - DEFAULT_ACCOUNT_ID → writes to top-level channels.feishu
1327
+ * - named account → writes to channels.feishu.accounts[accountId]
1328
+ */
1329
+ function patchFeishuConfig(cfg, accountId, patch) {
1330
+ const feishuCfg = cfg.channels?.feishu;
1331
+ if (accountId === DEFAULT_ACCOUNT_ID$1) return patchTopLevelChannelConfigSection({
1332
+ cfg,
1333
+ channel,
1334
+ enabled: true,
1335
+ patch
1336
+ });
1337
+ const nextAccountPatch = {
1338
+ ...feishuCfg?.accounts?.[accountId],
1339
+ enabled: true,
1340
+ ...patch
1341
+ };
1342
+ return patchTopLevelChannelConfigSection({
1343
+ cfg,
1344
+ channel,
1345
+ enabled: true,
1346
+ patch: { accounts: {
1347
+ ...feishuCfg?.accounts,
1348
+ [accountId]: nextAccountPatch
1349
+ } }
1350
+ });
1351
+ }
1352
+ async function promptFeishuAllowFrom(params) {
1353
+ const feishuCfg = params.cfg.channels?.feishu;
1354
+ const resolvedAccountId = params.accountId ?? resolveDefaultFeishuAccountId(params.cfg);
1355
+ const existingAllowFrom = (resolvedAccountId !== DEFAULT_ACCOUNT_ID$1 ? feishuCfg?.accounts?.[resolvedAccountId] : void 0)?.allowFrom ?? feishuCfg?.allowFrom ?? [];
1356
+ await params.prompter.note([
1357
+ t("wizard.feishu.allowlistIntro"),
1358
+ t("wizard.feishu.allowlistFindUser"),
1359
+ t("wizard.feishu.examples"),
1360
+ "- ou_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
1361
+ "- on_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
1362
+ ].join("\n"), t("wizard.feishu.allowlistTitle"));
1363
+ const entry = await params.prompter.text({
1364
+ message: t("wizard.feishu.allowFromPrompt"),
1365
+ placeholder: "ou_xxxxx, ou_yyyyy",
1366
+ initialValue: existingAllowFrom.length > 0 ? existingAllowFrom.map(String).join(", ") : void 0
1367
+ });
1368
+ const mergedAllowFrom = mergeAllowFromEntries(existingAllowFrom, splitSetupEntries(entry));
1369
+ return patchFeishuConfig(params.cfg, resolvedAccountId, { allowFrom: mergedAllowFrom });
1370
+ }
1371
+ async function noteFeishuCredentialHelp(prompter) {
1372
+ await prompter.note([
1373
+ t("wizard.feishu.credentialsStepOpenPlatform"),
1374
+ t("wizard.feishu.credentialsStepCreateApp"),
1375
+ t("wizard.feishu.credentialsStepGetCredentials"),
1376
+ t("wizard.feishu.credentialsStepPermissions"),
1377
+ t("wizard.feishu.credentialsStepPublish"),
1378
+ t("wizard.feishu.credentialsEnvTip"),
1379
+ t("wizard.channels.docs", { link: formatDocsLink("/channels/feishu", "feishu") })
1380
+ ].join("\n"), t("wizard.feishu.credentialsTitle"));
1381
+ }
1382
+ async function promptFeishuAppId(params) {
1383
+ return (await params.prompter.text({
1384
+ message: t("wizard.feishu.appIdPrompt"),
1385
+ initialValue: params.initialValue,
1386
+ validate: (value) => value?.trim() ? void 0 : t("common.required")
1387
+ })).trim();
1388
+ }
1389
+ const feishuDmPolicy = {
1390
+ label: "Feishu",
1391
+ channel,
1392
+ policyKey: "channels.feishu.dmPolicy",
1393
+ allowFromKey: "channels.feishu.allowFrom",
1394
+ resolveConfigKeys: (_cfg, accountId) => {
1395
+ const resolvedAccountId = accountId ?? resolveDefaultFeishuAccountId(_cfg);
1396
+ return resolvedAccountId !== DEFAULT_ACCOUNT_ID$1 ? {
1397
+ policyKey: `channels.feishu.accounts.${resolvedAccountId}.dmPolicy`,
1398
+ allowFromKey: `channels.feishu.accounts.${resolvedAccountId}.allowFrom`
1399
+ } : {
1400
+ policyKey: "channels.feishu.dmPolicy",
1401
+ allowFromKey: "channels.feishu.allowFrom"
1402
+ };
1403
+ },
1404
+ getCurrent: (cfg, accountId) => {
1405
+ const feishuCfg = cfg.channels?.feishu;
1406
+ const resolvedAccountId = accountId ?? resolveDefaultFeishuAccountId(cfg);
1407
+ if (resolvedAccountId !== DEFAULT_ACCOUNT_ID$1) {
1408
+ const account = feishuCfg?.accounts?.[resolvedAccountId];
1409
+ if (account?.dmPolicy) return account.dmPolicy;
1410
+ }
1411
+ return feishuCfg?.dmPolicy ?? "pairing";
1412
+ },
1413
+ setPolicy: (cfg, policy, accountId) => {
1414
+ return patchFeishuConfig(cfg, accountId ?? resolveDefaultFeishuAccountId(cfg), {
1415
+ dmPolicy: policy,
1416
+ ...policy === "open" ? { allowFrom: mergeAllowFromEntries([], ["*"]) } : {}
1417
+ });
1418
+ },
1419
+ promptAllowFrom: promptFeishuAllowFrom
1420
+ };
1421
+ function applyNewAppSecurityPolicy(cfg, accountId, openId, groupPolicy) {
1422
+ let next = cfg;
1423
+ if (openId) next = patchFeishuConfig(next, accountId, {
1424
+ dmPolicy: "allowlist",
1425
+ allowFrom: [openId]
1426
+ });
1427
+ const groupPatch = { groupPolicy };
1428
+ if (groupPolicy === "open") groupPatch.requireMention = true;
1429
+ next = patchFeishuConfig(next, accountId, groupPatch);
1430
+ return next;
1431
+ }
1432
+ const loadAppRegistrationModule = createLazyRuntimeModule(() => import("./app-registration-D18iu_PK.mjs"));
1433
+ async function promptFeishuDomain(params) {
1434
+ return await params.prompter.select({
1435
+ message: t("wizard.feishu.domainPrompt"),
1436
+ options: [{
1437
+ value: "feishu",
1438
+ label: t("wizard.feishu.domainFeishu")
1439
+ }, {
1440
+ value: "lark",
1441
+ label: t("wizard.feishu.domainLark")
1442
+ }],
1443
+ initialValue: params.initialValue ?? "feishu"
1444
+ });
1445
+ }
1446
+ async function promptFeishuSetupMethod(prompter) {
1447
+ return await prompter.select({
1448
+ message: t("wizard.feishu.setupMethodPrompt"),
1449
+ options: [{
1450
+ value: "manual",
1451
+ label: t("wizard.feishu.setupMethodManual")
1452
+ }, {
1453
+ value: "scan",
1454
+ label: t("wizard.feishu.setupMethodScan")
1455
+ }],
1456
+ initialValue: "manual"
1457
+ });
1458
+ }
1459
+ async function runScanToCreate(prompter, domain) {
1460
+ const { beginAppRegistration, initAppRegistration, pollAppRegistration, printQrCode } = await loadAppRegistrationModule();
1461
+ try {
1462
+ await initAppRegistration(domain);
1463
+ } catch {
1464
+ await prompter.note(t("wizard.feishu.scanUnavailable"), t("wizard.feishu.setupTitle"));
1465
+ return null;
1466
+ }
1467
+ const begin = await beginAppRegistration(domain);
1468
+ await prompter.note(t("wizard.feishu.scanQr"), t("wizard.feishu.scanTitle"));
1469
+ await printQrCode(begin.qrUrl);
1470
+ const progress = prompter.progress(t("wizard.feishu.fetchingConfig"));
1471
+ const outcome = await pollAppRegistration({
1472
+ deviceCode: begin.deviceCode,
1473
+ interval: begin.interval,
1474
+ expireIn: begin.expireIn,
1475
+ initialDomain: domain,
1476
+ tp: SCAN_TO_CREATE_TP
1477
+ });
1478
+ switch (outcome.status) {
1479
+ case "success":
1480
+ progress.stop(t("wizard.feishu.scanCompleted"));
1481
+ return outcome.result;
1482
+ case "access_denied":
1483
+ progress.stop(t("wizard.feishu.scanDenied"));
1484
+ return null;
1485
+ case "expired":
1486
+ progress.stop(t("wizard.feishu.scanExpired"));
1487
+ return null;
1488
+ case "timeout":
1489
+ progress.stop(t("wizard.feishu.scanTimedOut"));
1490
+ return null;
1491
+ case "error":
1492
+ progress.stop(t("wizard.feishu.scanError", { error: outcome.message }));
1493
+ return null;
1494
+ }
1495
+ return null;
1496
+ }
1497
+ async function runNewAppFlow(params) {
1498
+ const { prompter, options } = params;
1499
+ let next = params.cfg;
1500
+ const targetAccountId = resolveDefaultFeishuAccountId(next);
1501
+ let appId;
1502
+ let appSecret = null;
1503
+ let appSecretProbeValue = null;
1504
+ let scanDomain;
1505
+ let scanOpenId;
1506
+ const currentDomain = (next.channels?.feishu)?.domain ?? "feishu";
1507
+ const setupMethod = await promptFeishuSetupMethod(prompter);
1508
+ const selectedDomain = await promptFeishuDomain({
1509
+ prompter,
1510
+ initialValue: currentDomain
1511
+ });
1512
+ scanDomain = selectedDomain;
1513
+ const scanResult = setupMethod === "scan" ? await runScanToCreate(prompter, selectedDomain) : null;
1514
+ if (scanResult) {
1515
+ appId = scanResult.appId;
1516
+ appSecret = scanResult.appSecret;
1517
+ scanDomain = scanResult.domain;
1518
+ scanOpenId = scanResult.openId;
1519
+ } else {
1520
+ await noteFeishuCredentialHelp(prompter);
1521
+ appId = await promptFeishuAppId({
1522
+ prompter,
1523
+ initialValue: normalizeOptionalString(process.env.FEISHU_APP_ID)
1524
+ });
1525
+ const appSecretResult = await promptSingleChannelSecretInput({
1526
+ cfg: next,
1527
+ prompter,
1528
+ providerHint: "feishu",
1529
+ credentialLabel: "App Secret",
1530
+ secretInputMode: options?.secretInputMode,
1531
+ accountConfigured: false,
1532
+ canUseEnv: false,
1533
+ hasConfigToken: false,
1534
+ envPrompt: "",
1535
+ keepPrompt: t("wizard.feishu.appSecretKeep"),
1536
+ inputPrompt: t("wizard.feishu.appSecretPrompt"),
1537
+ preferredEnvVar: "FEISHU_APP_SECRET"
1538
+ });
1539
+ if (appSecretResult.action === "set") {
1540
+ appSecret = appSecretResult.value;
1541
+ appSecretProbeValue = appSecretResult.resolvedValue;
1542
+ }
1543
+ if (appId && appSecretProbeValue) {
1544
+ const { getAppOwnerOpenId } = await loadAppRegistrationModule();
1545
+ scanOpenId = await getAppOwnerOpenId({
1546
+ appId,
1547
+ appSecret: appSecretProbeValue,
1548
+ domain: selectedDomain
1549
+ });
1550
+ }
1551
+ }
1552
+ const groupPolicy = await prompter.select({
1553
+ message: t("wizard.feishu.groupPolicyPrompt"),
1554
+ options: [
1555
+ {
1556
+ value: "allowlist",
1557
+ label: t("wizard.feishu.groupPolicyAllowlist")
1558
+ },
1559
+ {
1560
+ value: "open",
1561
+ label: t("wizard.feishu.groupPolicyOpen")
1562
+ },
1563
+ {
1564
+ value: "disabled",
1565
+ label: t("wizard.feishu.groupPolicyDisabled")
1566
+ }
1567
+ ],
1568
+ initialValue: "allowlist"
1569
+ });
1570
+ const configProgress = prompter.progress(t("wizard.feishu.configuring"));
1571
+ await new Promise((resolve) => {
1572
+ setTimeout(resolve, 50);
1573
+ });
1574
+ if (appId && appSecret) next = patchFeishuConfig(next, targetAccountId, {
1575
+ appId,
1576
+ appSecret,
1577
+ connectionMode: "websocket",
1578
+ ...scanDomain ? { domain: scanDomain } : {}
1579
+ });
1580
+ else if (scanDomain) next = patchFeishuConfig(next, targetAccountId, { domain: scanDomain });
1581
+ next = applyNewAppSecurityPolicy(next, targetAccountId, scanOpenId, groupPolicy);
1582
+ configProgress.stop(t("wizard.feishu.botConfigured"));
1583
+ return { cfg: next };
1584
+ }
1585
+ async function runEditFlow(params) {
1586
+ const { prompter, options } = params;
1587
+ const next = params.cfg;
1588
+ const feishuCfg = next.channels?.feishu;
1589
+ const resolveAppIdLabel = (value) => {
1590
+ const asString = normalizeOptionalString(value);
1591
+ if (asString) return asString;
1592
+ if (value && typeof value === "object") {
1593
+ const rec = value;
1594
+ if (normalizeOptionalString(rec.source) && normalizeOptionalString(rec.id)) return normalizeOptionalString(process.env[rec.id]) ?? `env:${String(rec.id)}`;
1595
+ if (hasConfiguredSecretInput$1(value)) return "(configured)";
1596
+ }
1597
+ };
1598
+ const existingAppId = resolveAppIdLabel(feishuCfg?.appId) ?? Object.values(feishuCfg?.accounts ?? {}).reduce((found, account) => {
1599
+ if (found) return found;
1600
+ if (account && typeof account === "object") return resolveAppIdLabel(account.appId);
1601
+ }, void 0);
1602
+ if (existingAppId) {
1603
+ if (!await prompter.confirm({
1604
+ message: t("wizard.feishu.existingBotPrompt", { appId: existingAppId }),
1605
+ initialValue: true
1606
+ })) return runNewAppFlow({
1607
+ cfg: next,
1608
+ prompter,
1609
+ options
1610
+ });
1611
+ } else return runNewAppFlow({
1612
+ cfg: next,
1613
+ prompter,
1614
+ options
1615
+ });
1616
+ await prompter.note(t("wizard.feishu.botConfigured"), "");
1617
+ return { cfg: next };
1618
+ }
1619
+ async function runFeishuLogin(params) {
1620
+ const { cfg, prompter } = params;
1621
+ const options = {};
1622
+ if (isFeishuConfigured(cfg)) {
1623
+ const result = await runEditFlow({
1624
+ cfg,
1625
+ prompter,
1626
+ options
1627
+ });
1628
+ if (result === null) return cfg;
1629
+ return result.cfg;
1630
+ }
1631
+ return (await runNewAppFlow({
1632
+ cfg,
1633
+ prompter,
1634
+ options
1635
+ })).cfg;
1636
+ }
1637
+ const feishuSetupWizard = {
1638
+ channel,
1639
+ resolveAccountIdForConfigure: ({ accountOverride, defaultAccountId, cfg }) => (typeof accountOverride === "string" && accountOverride.trim() ? accountOverride.trim() : void 0) ?? resolveDefaultFeishuAccountId(cfg) ?? defaultAccountId,
1640
+ resolveShouldPromptAccountIds: () => false,
1641
+ status: {
1642
+ configuredLabel: t("wizard.channels.statusConfigured"),
1643
+ unconfiguredLabel: t("wizard.channels.statusNeedsAppCredentials"),
1644
+ configuredHint: t("wizard.channels.statusConfigured"),
1645
+ unconfiguredHint: t("wizard.channels.statusNeedsAppCreds"),
1646
+ configuredScore: 2,
1647
+ unconfiguredScore: 0,
1648
+ resolveConfigured: ({ cfg }) => isFeishuConfigured(cfg),
1649
+ resolveStatusLines: async ({ cfg, accountId, configured }) => {
1650
+ const account = resolveFeishuAccount({
1651
+ cfg,
1652
+ accountId
1653
+ });
1654
+ let probeResult = null;
1655
+ if (configured && account.configured) try {
1656
+ const { probeFeishu } = await import("./probe-DbUBx0Px.mjs").then((n) => n.n);
1657
+ probeResult = await probeFeishu(account);
1658
+ } catch {}
1659
+ if (!configured) return [formatFeishuStatusLine("needs-credentials")];
1660
+ if (probeResult?.ok) return [`Feishu: ${t("wizard.channels.statusConnectedAs", { name: probeResult.botName ?? probeResult.botOpenId ?? "bot" })}`];
1661
+ return [formatFeishuStatusLine("configured-unverified")];
1662
+ }
1663
+ },
1664
+ prepare: async ({ cfg, credentialValues }) => {
1665
+ if (isFeishuConfigured(cfg)) return { credentialValues: {
1666
+ ...credentialValues,
1667
+ [FEISHU_SETUP_FLOW_KEY]: "edit"
1668
+ } };
1669
+ return { credentialValues: {
1670
+ ...credentialValues,
1671
+ [FEISHU_SETUP_FLOW_KEY]: "new"
1672
+ } };
1673
+ },
1674
+ credentials: [],
1675
+ finalize: async ({ cfg, prompter, options, credentialValues }) => {
1676
+ if ((credentialValues[FEISHU_SETUP_FLOW_KEY] ?? "new") === "edit") {
1677
+ const result = await runEditFlow({
1678
+ cfg,
1679
+ prompter,
1680
+ options
1681
+ });
1682
+ if (result === null) return { cfg };
1683
+ return result;
1684
+ }
1685
+ return runNewAppFlow({
1686
+ cfg,
1687
+ prompter,
1688
+ options
1689
+ });
1690
+ },
1691
+ dmPolicy: feishuDmPolicy,
1692
+ disable: (cfg) => patchTopLevelChannelConfigSection({
1693
+ cfg,
1694
+ channel,
1695
+ patch: { enabled: false }
1696
+ })
1697
+ };
1698
+ //#endregion
1699
+ //#region extensions/feishu/src/channel.ts
1700
+ function readFeishuMediaParam(params) {
1701
+ const media = params.media;
1702
+ if (typeof media !== "string") return;
1703
+ return media.trim() ? media : void 0;
1704
+ }
1705
+ function readBooleanParam(params, keys) {
1706
+ for (const key of keys) {
1707
+ const value = params[key];
1708
+ if (typeof value === "boolean") return value;
1709
+ }
1710
+ }
1711
+ function hasLegacyFeishuCardCommandValue(actionValue) {
1712
+ return isRecord$1(actionValue) && actionValue.oc !== "ocf1" && (Boolean(typeof actionValue.command === "string" && actionValue.command.trim()) || Boolean(typeof actionValue.text === "string" && actionValue.text.trim()));
1713
+ }
1714
+ function containsLegacyFeishuCardCommandValue(node) {
1715
+ if (Array.isArray(node)) return node.some((item) => containsLegacyFeishuCardCommandValue(item));
1716
+ if (!isRecord$1(node)) return false;
1717
+ if (node.tag === "button" && hasLegacyFeishuCardCommandValue(node.value)) return true;
1718
+ if (node.tag === "button" && Array.isArray(node.behaviors) && node.behaviors.some((behavior) => isRecord$1(behavior) && hasLegacyFeishuCardCommandValue(behavior.value))) return true;
1719
+ return Object.values(node).some((value) => containsLegacyFeishuCardCommandValue(value));
1720
+ }
1721
+ const meta = {
1722
+ id: "feishu",
1723
+ label: "Feishu",
1724
+ selectionLabel: "Feishu/Lark (飞书)",
1725
+ docsPath: "/channels/feishu",
1726
+ docsLabel: "feishu",
1727
+ blurb: "飞书/Lark enterprise messaging.",
1728
+ aliases: ["lark"],
1729
+ order: 70,
1730
+ preferSessionLookupForAnnounceTarget: true
1731
+ };
1732
+ const loadFeishuChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-B9LCBnp3.mjs"), "feishuChannelRuntime");
1733
+ function toFeishuMessageSendResult(result, kind) {
1734
+ const receipt = result.receipt ?? createFeishuSendReceipt({
1735
+ messageId: result.messageId,
1736
+ chatId: result.chatId ?? "",
1737
+ kind
1738
+ });
1739
+ return {
1740
+ messageId: result.messageId || receipt.primaryPlatformMessageId,
1741
+ receipt
1742
+ };
1743
+ }
1744
+ const feishuMessageAdapter = defineChannelMessageAdapter({
1745
+ id: "feishu",
1746
+ durableFinal: { capabilities: {
1747
+ text: true,
1748
+ media: true
1749
+ } },
1750
+ send: {
1751
+ text: async (ctx) => {
1752
+ const sendText = (await loadFeishuChannelRuntime()).feishuOutbound.sendText;
1753
+ if (!sendText) throw new Error("Feishu text sending is not available.");
1754
+ const { onDeliveryResult, ...outboundCtx } = ctx;
1755
+ return toFeishuMessageSendResult(await sendText({
1756
+ ...outboundCtx,
1757
+ ...onDeliveryResult ? { onDeliveryResult: async (progress) => {
1758
+ await onDeliveryResult(toFeishuMessageSendResult(progress, "text"));
1759
+ } } : {}
1760
+ }), "text");
1761
+ },
1762
+ media: async (ctx) => {
1763
+ const sendMedia = (await loadFeishuChannelRuntime()).feishuOutbound.sendMedia;
1764
+ if (!sendMedia) throw new Error("Feishu media sending is not available.");
1765
+ const { onDeliveryResult, ...outboundCtx } = ctx;
1766
+ return toFeishuMessageSendResult(await sendMedia({
1767
+ ...outboundCtx,
1768
+ ...onDeliveryResult ? { onDeliveryResult: async (progress) => {
1769
+ await onDeliveryResult(toFeishuMessageSendResult(progress, "media"));
1770
+ } } : {}
1771
+ }), "media");
1772
+ }
1773
+ }
1774
+ });
1775
+ async function createFeishuActionClient(account) {
1776
+ const { createFeishuClient } = await import("./client-DLqNWY5r.mjs").then((n) => n.t);
1777
+ return createFeishuClient(account);
1778
+ }
1779
+ const collectFeishuSecurityWarnings = createAllowlistProviderGroupPolicyWarningCollector({
1780
+ providerConfigPresent: (cfg) => cfg.channels?.feishu !== void 0,
1781
+ resolveGroupPolicy: ({ cfg, accountId }) => resolveFeishuAccount({
1782
+ cfg,
1783
+ accountId
1784
+ }).config?.groupPolicy,
1785
+ collect: ({ cfg, accountId, groupPolicy }) => {
1786
+ if (groupPolicy !== "open") return [];
1787
+ return [`- Feishu[${resolveFeishuAccount({
1788
+ cfg,
1789
+ accountId
1790
+ }).accountId}] groups: groupPolicy="open" allows any member to trigger (mention-gated). Set channels.feishu.groupPolicy="allowlist" + channels.feishu.groupAllowFrom to restrict senders.`];
1791
+ }
1792
+ });
1793
+ function describeFeishuMessageTool({ cfg, accountId }) {
1794
+ const enabledAccounts = accountId ? [resolveFeishuAccount({
1795
+ cfg,
1796
+ accountId
1797
+ })].filter((account) => account.enabled && account.configured) : listEnabledFeishuAccounts(cfg);
1798
+ const enabled = enabledAccounts.length > 0 || !accountId && cfg.channels?.feishu?.enabled !== false && Boolean(inspectFeishuCredentials(cfg.channels?.feishu));
1799
+ if (enabledAccounts.length === 0) return {
1800
+ actions: [],
1801
+ capabilities: enabled ? ["presentation"] : []
1802
+ };
1803
+ const actions = /* @__PURE__ */ new Set([
1804
+ "send",
1805
+ "read",
1806
+ "edit",
1807
+ "thread-reply",
1808
+ "pin",
1809
+ "list-pins",
1810
+ "unpin",
1811
+ "member-info",
1812
+ "channel-info",
1813
+ "channel-list"
1814
+ ]);
1815
+ if (accountId ? enabledAccounts.some((account) => isFeishuReactionsActionEnabled({
1816
+ cfg,
1817
+ account
1818
+ })) : areAnyFeishuReactionActionsEnabled(cfg)) {
1819
+ actions.add("react");
1820
+ actions.add("reactions");
1821
+ }
1822
+ return {
1823
+ actions: Array.from(actions),
1824
+ capabilities: enabled ? ["presentation"] : []
1825
+ };
1826
+ }
1827
+ function setFeishuNamedAccountEnabled(cfg, accountId, enabled) {
1828
+ const feishuCfg = cfg.channels?.feishu;
1829
+ return {
1830
+ ...cfg,
1831
+ channels: {
1832
+ ...cfg.channels,
1833
+ feishu: {
1834
+ ...feishuCfg,
1835
+ accounts: {
1836
+ ...feishuCfg?.accounts,
1837
+ [accountId]: {
1838
+ ...feishuCfg?.accounts?.[accountId],
1839
+ enabled
1840
+ }
1841
+ }
1842
+ }
1843
+ }
1844
+ };
1845
+ }
1846
+ const feishuConfigAdapter = createHybridChannelConfigAdapter({
1847
+ sectionKey: "feishu",
1848
+ listAccountIds: listFeishuAccountIds,
1849
+ resolveAccount: adaptScopedAccountAccessor(resolveFeishuAccount),
1850
+ defaultAccountId: resolveDefaultFeishuAccountId,
1851
+ clearBaseFields: [],
1852
+ resolveAllowFrom: (account) => account.config.allowFrom,
1853
+ formatAllowFrom: (allowFrom) => formatAllowFromLowercase({ allowFrom })
1854
+ });
1855
+ function isFeishuReactionsActionEnabled(params) {
1856
+ if (!params.account.enabled || !params.account.configured) return false;
1857
+ return createActionGate(params.account.config.actions ?? (params.cfg.channels?.feishu)?.actions)("reactions");
1858
+ }
1859
+ function areAnyFeishuReactionActionsEnabled(cfg) {
1860
+ for (const account of listEnabledFeishuAccounts(cfg)) if (isFeishuReactionsActionEnabled({
1861
+ cfg,
1862
+ account
1863
+ })) return true;
1864
+ return false;
1865
+ }
1866
+ function isFeishuGroupTopicSessionKey(sessionKey) {
1867
+ if (typeof sessionKey !== "string" || !sessionKey) return false;
1868
+ const parsed = parseFeishuConversationId({ conversationId: sessionKey });
1869
+ return parsed?.scope === "group_topic" || parsed?.scope === "group_topic_sender";
1870
+ }
1871
+ function resolveFeishuTopicAutoThreadAnchor(ctx) {
1872
+ if (ctx.action !== "send") return;
1873
+ if (!isFeishuGroupTopicSessionKey(ctx.sessionKey)) return;
1874
+ const inbound = ctx.toolContext?.currentMessageId;
1875
+ return typeof inbound === "string" && inbound.length > 0 ? inbound : void 0;
1876
+ }
1877
+ function buildFeishuSendReplyAnchor(ctx) {
1878
+ if (ctx.action === "thread-reply") return {
1879
+ replyToMessageId: resolveFeishuMessageId(ctx.params),
1880
+ replyInThread: true
1881
+ };
1882
+ const autoThreadId = resolveFeishuTopicAutoThreadAnchor(ctx);
1883
+ return {
1884
+ replyToMessageId: autoThreadId,
1885
+ replyInThread: autoThreadId !== void 0
1886
+ };
1887
+ }
1888
+ function isSupportedFeishuDirectConversationId(conversationId) {
1889
+ const trimmed = conversationId.trim();
1890
+ if (!trimmed || trimmed.includes(":")) return false;
1891
+ if (trimmed.startsWith("oc_") || trimmed.startsWith("on_")) return false;
1892
+ return true;
1893
+ }
1894
+ function normalizeFeishuAcpConversationId(conversationId) {
1895
+ const parsed = parseFeishuConversationId({ conversationId });
1896
+ if (!parsed || parsed.scope !== "group_topic" && parsed.scope !== "group_topic_sender" && !isSupportedFeishuDirectConversationId(parsed.canonicalConversationId)) return null;
1897
+ return {
1898
+ conversationId: parsed.canonicalConversationId,
1899
+ parentConversationId: parsed.scope === "group_topic" || parsed.scope === "group_topic_sender" ? parsed.chatId : void 0
1900
+ };
1901
+ }
1902
+ function matchFeishuAcpConversation(params) {
1903
+ const binding = normalizeFeishuAcpConversationId(params.bindingConversationId);
1904
+ if (!binding) return null;
1905
+ const incoming = parseFeishuConversationId({
1906
+ conversationId: params.conversationId,
1907
+ parentConversationId: params.parentConversationId
1908
+ });
1909
+ if (!incoming || incoming.scope !== "group_topic" && incoming.scope !== "group_topic_sender" && !isSupportedFeishuDirectConversationId(incoming.canonicalConversationId)) return null;
1910
+ const matchesCanonicalConversation = binding.conversationId === incoming.canonicalConversationId;
1911
+ const matchesParentTopicForSenderScopedConversation = incoming.scope === "group_topic_sender" && binding.parentConversationId === incoming.chatId && binding.conversationId === `${incoming.chatId}:topic:${incoming.topicId}`;
1912
+ if (!matchesCanonicalConversation && !matchesParentTopicForSenderScopedConversation) return null;
1913
+ return {
1914
+ conversationId: matchesParentTopicForSenderScopedConversation ? binding.conversationId : incoming.canonicalConversationId,
1915
+ parentConversationId: incoming.scope === "group_topic" || incoming.scope === "group_topic_sender" ? incoming.chatId : void 0,
1916
+ matchPriority: matchesCanonicalConversation ? 2 : 1
1917
+ };
1918
+ }
1919
+ function resolveFeishuSenderScopedCommandConversation(params) {
1920
+ const parentConversationId = params.parentConversationId?.trim();
1921
+ const threadId = params.threadId?.trim();
1922
+ const senderId = params.senderId?.trim();
1923
+ if (!parentConversationId || !threadId || !senderId) return;
1924
+ const expectedScopePrefix = `feishu:group:${normalizeLowercaseStringOrEmpty(parentConversationId)}:topic:${normalizeLowercaseStringOrEmpty(threadId)}:sender:`;
1925
+ const isSenderScopedSession = [params.sessionKey, params.parentSessionKey].some((candidate) => {
1926
+ const normalized = normalizeLowercaseStringOrEmpty(candidate ?? "");
1927
+ if (!normalized) return false;
1928
+ return normalized.replace(/^agent:[^:]+:/, "").startsWith(expectedScopePrefix);
1929
+ });
1930
+ const senderScopedConversationId = buildFeishuConversationId({
1931
+ chatId: parentConversationId,
1932
+ scope: "group_topic_sender",
1933
+ topicId: threadId,
1934
+ senderOpenId: senderId
1935
+ });
1936
+ if (isSenderScopedSession) return senderScopedConversationId;
1937
+ if (!params.sessionKey?.trim()) return;
1938
+ return getSessionBindingService().listBySession(params.sessionKey).find((binding) => {
1939
+ if (binding.conversation.channel !== "feishu" || binding.conversation.accountId !== params.accountId) return false;
1940
+ return binding.conversation.conversationId === senderScopedConversationId;
1941
+ })?.conversation.conversationId;
1942
+ }
1943
+ function resolveFeishuCommandConversation(params) {
1944
+ if (params.threadId) {
1945
+ const parentConversationId = parseFeishuTargetId(params.originatingTo) ?? parseFeishuTargetId(params.commandTo) ?? parseFeishuTargetId(params.fallbackTo);
1946
+ if (!parentConversationId) return null;
1947
+ return {
1948
+ conversationId: resolveFeishuSenderScopedCommandConversation({
1949
+ accountId: params.accountId,
1950
+ parentConversationId,
1951
+ threadId: params.threadId,
1952
+ senderId: params.senderId,
1953
+ sessionKey: params.sessionKey,
1954
+ parentSessionKey: params.parentSessionKey
1955
+ }) ?? buildFeishuConversationId({
1956
+ chatId: parentConversationId,
1957
+ scope: "group_topic",
1958
+ topicId: params.threadId
1959
+ }),
1960
+ parentConversationId
1961
+ };
1962
+ }
1963
+ const conversationId = parseFeishuDirectConversationId(params.originatingTo) ?? parseFeishuDirectConversationId(params.commandTo) ?? parseFeishuDirectConversationId(params.fallbackTo);
1964
+ return conversationId ? { conversationId } : null;
1965
+ }
1966
+ function jsonActionResult(details) {
1967
+ return {
1968
+ content: [{
1969
+ type: "text",
1970
+ text: JSON.stringify(details)
1971
+ }],
1972
+ details
1973
+ };
1974
+ }
1975
+ function readFirstString(params, keys, fallback) {
1976
+ for (const key of keys) {
1977
+ const value = params[key];
1978
+ if (typeof value === "string" && value.trim()) return value.trim();
1979
+ }
1980
+ if (typeof fallback === "string" && fallback.trim()) return fallback.trim();
1981
+ }
1982
+ const UNRESOLVED_RESPONSE_PREFIX_VAR_PATTERN = /\{[a-zA-Z][a-zA-Z0-9.]*\}/;
1983
+ function resolveFeishuMessageActionResponsePrefix(ctx) {
1984
+ const configured = ctx.cfg.messages?.responsePrefix;
1985
+ if (!configured) return;
1986
+ const agentId = (ctx.agentId?.trim() || "main").toLowerCase();
1987
+ const identityName = ctx.cfg.agents?.list?.find((agent) => agent.id.trim().toLowerCase() === agentId)?.identity?.name?.trim();
1988
+ const resolved = configured === "auto" ? identityName ? `[${identityName}]` : void 0 : configured.replace(/\{(?:identity\.name|identityname)\}/gi, identityName ?? "$&");
1989
+ return resolved && !UNRESOLVED_RESPONSE_PREFIX_VAR_PATTERN.test(resolved) ? resolved : void 0;
1990
+ }
1991
+ function readOptionalPositiveInteger(params, keys) {
1992
+ for (const key of keys) {
1993
+ const parsed = parseStrictPositiveInteger(params[key]);
1994
+ if (parsed !== void 0) return parsed;
1995
+ }
1996
+ }
1997
+ function resolveFeishuActionTarget(ctx) {
1998
+ return readFirstString(ctx.params, ["to", "target"], ctx.toolContext?.currentChannelId);
1999
+ }
2000
+ function resolveFeishuChatId(ctx) {
2001
+ const raw = readFirstString(ctx.params, [
2002
+ "chatId",
2003
+ "chat_id",
2004
+ "channelId",
2005
+ "channel_id",
2006
+ "to",
2007
+ "target"
2008
+ ], ctx.toolContext?.currentChannelId);
2009
+ if (!raw) return;
2010
+ if (/^(user|dm|open_id):/i.test(raw)) return;
2011
+ if (/^(chat|group|channel):/i.test(raw)) return normalizeFeishuTarget(raw) ?? void 0;
2012
+ return raw;
2013
+ }
2014
+ function resolveFeishuMessageId(params) {
2015
+ return readFirstString(params, [
2016
+ "messageId",
2017
+ "message_id",
2018
+ "replyTo",
2019
+ "reply_to"
2020
+ ]);
2021
+ }
2022
+ function resolveFeishuMemberId(params) {
2023
+ return readFirstString(params, [
2024
+ "memberId",
2025
+ "member_id",
2026
+ "userId",
2027
+ "user_id",
2028
+ "openId",
2029
+ "open_id",
2030
+ "unionId",
2031
+ "union_id"
2032
+ ]);
2033
+ }
2034
+ function resolveFeishuMemberIdType(params) {
2035
+ const raw = readFirstString(params, [
2036
+ "memberIdType",
2037
+ "member_id_type",
2038
+ "userIdType",
2039
+ "user_id_type"
2040
+ ]);
2041
+ if (raw === "open_id" || raw === "user_id" || raw === "union_id") return raw;
2042
+ if (readFirstString(params, ["userId", "user_id"]) && !readFirstString(params, [
2043
+ "openId",
2044
+ "open_id",
2045
+ "unionId",
2046
+ "union_id"
2047
+ ])) return "user_id";
2048
+ if (readFirstString(params, ["unionId", "union_id"]) && !readFirstString(params, ["openId", "open_id"])) return "union_id";
2049
+ return "open_id";
2050
+ }
2051
+ const feishuPlugin = createChatChannelPlugin({
2052
+ base: {
2053
+ id: "feishu",
2054
+ meta: { ...meta },
2055
+ capabilities: {
2056
+ chatTypes: ["direct", "channel"],
2057
+ polls: false,
2058
+ threads: true,
2059
+ media: true,
2060
+ tts: { voice: {
2061
+ synthesisTarget: "voice-note",
2062
+ transcodesAudio: true
2063
+ } },
2064
+ reactions: true,
2065
+ edit: true,
2066
+ reply: true
2067
+ },
2068
+ agentPrompt: { messageToolHints: () => [
2069
+ "- Feishu targeting: omit `target` to reply to the current conversation (auto-inferred). Explicit targets: `user:open_id` or `chat:chat_id`.",
2070
+ "- Feishu supports interactive cards plus native image, file, audio, and video/media delivery.",
2071
+ "- Feishu supports `send`, `read`, `edit`, `thread-reply`, pins, and channel/member lookup, plus reactions when enabled."
2072
+ ] },
2073
+ groups: { resolveToolPolicy: resolveFeishuGroupToolPolicy },
2074
+ conversationBindings: {
2075
+ defaultTopLevelPlacement: "current",
2076
+ buildModelOverrideParentCandidates: ({ parentConversationId }) => buildFeishuModelOverrideParentCandidates(parentConversationId)
2077
+ },
2078
+ mentions: { stripPatterns: () => ["<at user_id=\"[^\"]*\">[^<]*</at>"] },
2079
+ reload: { configPrefixes: ["channels.feishu"] },
2080
+ doctor: feishuDoctor,
2081
+ configSchema: buildChannelConfigSchema(FeishuConfigSchema),
2082
+ config: {
2083
+ ...feishuConfigAdapter,
2084
+ setAccountEnabled: ({ cfg, accountId, enabled }) => {
2085
+ if (accountId === DEFAULT_ACCOUNT_ID$2) return {
2086
+ ...cfg,
2087
+ channels: {
2088
+ ...cfg.channels,
2089
+ feishu: {
2090
+ ...cfg.channels?.feishu,
2091
+ enabled
2092
+ }
2093
+ }
2094
+ };
2095
+ return setFeishuNamedAccountEnabled(cfg, accountId, enabled);
2096
+ },
2097
+ deleteAccount: ({ cfg, accountId }) => {
2098
+ if (accountId === DEFAULT_ACCOUNT_ID$2) {
2099
+ const next = { ...cfg };
2100
+ const nextChannels = { ...cfg.channels };
2101
+ delete nextChannels.feishu;
2102
+ if (Object.keys(nextChannels).length > 0) next.channels = nextChannels;
2103
+ else delete next.channels;
2104
+ return next;
2105
+ }
2106
+ const feishuCfg = cfg.channels?.feishu;
2107
+ const accounts = { ...feishuCfg?.accounts };
2108
+ delete accounts[accountId];
2109
+ return {
2110
+ ...cfg,
2111
+ channels: {
2112
+ ...cfg.channels,
2113
+ feishu: {
2114
+ ...feishuCfg,
2115
+ accounts: Object.keys(accounts).length > 0 ? accounts : void 0
2116
+ }
2117
+ }
2118
+ };
2119
+ },
2120
+ isConfigured: (account) => account.configured,
2121
+ describeAccount: (account) => describeAccountSnapshot({
2122
+ account,
2123
+ configured: account.configured,
2124
+ extra: {
2125
+ appId: account.appId,
2126
+ domain: account.domain
2127
+ }
2128
+ })
2129
+ },
2130
+ approvalCapability: feishuApprovalAuth,
2131
+ secrets: {
2132
+ secretTargetRegistryEntries,
2133
+ collectRuntimeConfigAssignments
2134
+ },
2135
+ actions: {
2136
+ messageActionTargetAliases,
2137
+ describeMessageTool: describeFeishuMessageTool,
2138
+ handleAction: async (ctx) => {
2139
+ const account = resolveFeishuAccount({
2140
+ cfg: ctx.cfg,
2141
+ accountId: ctx.accountId ?? void 0
2142
+ });
2143
+ if ((ctx.action === "react" || ctx.action === "reactions") && !isFeishuReactionsActionEnabled({
2144
+ cfg: ctx.cfg,
2145
+ account
2146
+ })) throw new Error("Feishu reactions are disabled via actions.reactions.");
2147
+ if (ctx.action === "send" || ctx.action === "thread-reply") {
2148
+ const to = resolveFeishuActionTarget(ctx);
2149
+ if (!to) throw new Error(`Feishu ${ctx.action} requires a target (to).`);
2150
+ const { replyToMessageId, replyInThread } = buildFeishuSendReplyAnchor(ctx);
2151
+ if (ctx.action === "thread-reply" && !replyToMessageId) throw new Error("Feishu thread-reply requires messageId.");
2152
+ const text = readFirstString(ctx.params, ["text", "message"]);
2153
+ const textCard = readNativeFeishuCardJson(text, { responsePrefix: resolveFeishuMessageActionResponsePrefix(ctx) });
2154
+ const interactive = normalizeInteractiveReply(ctx.params.interactive);
2155
+ const presentation = normalizeMessagePresentation(ctx.params.presentation) ?? (interactive ? interactiveReplyToPresentation(interactive) : void 0);
2156
+ const mediaUrl = readFeishuMediaParam(ctx.params);
2157
+ const audioAsVoice = readBooleanParam(ctx.params, ["asVoice", "audioAsVoice"]);
2158
+ const card = presentation ? buildFeishuPresentationCard({
2159
+ presentation,
2160
+ fallbackText: textCard ? void 0 : resolveInteractiveTextFallback({
2161
+ text,
2162
+ interactive
2163
+ })
2164
+ }) : textCard;
2165
+ if (card && mediaUrl) throw new Error(`Feishu ${ctx.action} does not support card with media.`);
2166
+ if (!card && !text && !mediaUrl) throw new Error(`Feishu ${ctx.action} requires text/message, media, or card.`);
2167
+ const runtime = await loadFeishuChannelRuntime();
2168
+ const maybeSendMedia = runtime.feishuOutbound.sendMedia;
2169
+ if (mediaUrl && !maybeSendMedia) throw new Error("Feishu media sending is not available.");
2170
+ const sendMedia = maybeSendMedia;
2171
+ let result;
2172
+ if (card) {
2173
+ if (containsLegacyFeishuCardCommandValue(card)) throw new Error("Feishu card buttons that trigger text or commands must use structured interaction envelopes.");
2174
+ result = await runtime.sendCardFeishu({
2175
+ cfg: ctx.cfg,
2176
+ to,
2177
+ card,
2178
+ accountId: ctx.accountId ?? void 0,
2179
+ replyToMessageId,
2180
+ replyInThread
2181
+ });
2182
+ } else if (mediaUrl) result = await sendMedia({
2183
+ cfg: ctx.cfg,
2184
+ to,
2185
+ text: text ?? "",
2186
+ mediaUrl,
2187
+ accountId: ctx.accountId ?? void 0,
2188
+ mediaLocalRoots: ctx.mediaLocalRoots,
2189
+ ...replyInThread ? { threadId: replyToMessageId } : { replyToId: replyToMessageId },
2190
+ ...audioAsVoice === true ? { audioAsVoice: true } : {}
2191
+ });
2192
+ else result = await runtime.sendMessageFeishu({
2193
+ cfg: ctx.cfg,
2194
+ to,
2195
+ text,
2196
+ accountId: ctx.accountId ?? void 0,
2197
+ replyToMessageId,
2198
+ replyInThread
2199
+ });
2200
+ return jsonActionResult({
2201
+ ok: true,
2202
+ channel: "feishu",
2203
+ action: ctx.action,
2204
+ ...result
2205
+ });
2206
+ }
2207
+ if (ctx.action === "read") {
2208
+ const messageId = resolveFeishuMessageId(ctx.params);
2209
+ if (!messageId) throw new Error("Feishu read requires messageId.");
2210
+ const { getMessageFeishu } = await loadFeishuChannelRuntime();
2211
+ const message = await getMessageFeishu({
2212
+ cfg: ctx.cfg,
2213
+ messageId,
2214
+ accountId: ctx.accountId ?? void 0
2215
+ });
2216
+ if (!message) return {
2217
+ isError: true,
2218
+ content: [{
2219
+ type: "text",
2220
+ text: JSON.stringify({ error: `Feishu read failed or message not found: ${messageId}` })
2221
+ }],
2222
+ details: { error: `Feishu read failed or message not found: ${messageId}` }
2223
+ };
2224
+ return jsonActionResult({
2225
+ ok: true,
2226
+ channel: "feishu",
2227
+ action: "read",
2228
+ message
2229
+ });
2230
+ }
2231
+ if (ctx.action === "edit") {
2232
+ const messageId = resolveFeishuMessageId(ctx.params);
2233
+ if (!messageId) throw new Error("Feishu edit requires messageId.");
2234
+ const text = readFirstString(ctx.params, ["text", "message"]);
2235
+ const card = ctx.params.card && typeof ctx.params.card === "object" ? ctx.params.card : void 0;
2236
+ const { editMessageFeishu } = await loadFeishuChannelRuntime();
2237
+ return jsonActionResult({
2238
+ ok: true,
2239
+ channel: "feishu",
2240
+ action: "edit",
2241
+ ...await editMessageFeishu({
2242
+ cfg: ctx.cfg,
2243
+ messageId,
2244
+ text,
2245
+ card,
2246
+ accountId: ctx.accountId ?? void 0
2247
+ })
2248
+ });
2249
+ }
2250
+ if (ctx.action === "pin") {
2251
+ const messageId = resolveFeishuMessageId(ctx.params);
2252
+ if (!messageId) throw new Error("Feishu pin requires messageId.");
2253
+ const { createPinFeishu } = await loadFeishuChannelRuntime();
2254
+ return jsonActionResult({
2255
+ ok: true,
2256
+ channel: "feishu",
2257
+ action: "pin",
2258
+ pin: await createPinFeishu({
2259
+ cfg: ctx.cfg,
2260
+ messageId,
2261
+ accountId: ctx.accountId ?? void 0
2262
+ })
2263
+ });
2264
+ }
2265
+ if (ctx.action === "unpin") {
2266
+ const messageId = resolveFeishuMessageId(ctx.params);
2267
+ if (!messageId) throw new Error("Feishu unpin requires messageId.");
2268
+ const { removePinFeishu } = await loadFeishuChannelRuntime();
2269
+ await removePinFeishu({
2270
+ cfg: ctx.cfg,
2271
+ messageId,
2272
+ accountId: ctx.accountId ?? void 0
2273
+ });
2274
+ return jsonActionResult({
2275
+ ok: true,
2276
+ channel: "feishu",
2277
+ action: "unpin",
2278
+ messageId
2279
+ });
2280
+ }
2281
+ if (ctx.action === "list-pins") {
2282
+ const chatId = resolveFeishuChatId(ctx);
2283
+ if (!chatId) throw new Error("Feishu list-pins requires chatId or channelId.");
2284
+ const { listPinsFeishu } = await loadFeishuChannelRuntime();
2285
+ return jsonActionResult({
2286
+ ok: true,
2287
+ channel: "feishu",
2288
+ action: "list-pins",
2289
+ ...await listPinsFeishu({
2290
+ cfg: ctx.cfg,
2291
+ chatId,
2292
+ startTime: readFirstString(ctx.params, ["startTime", "start_time"]),
2293
+ endTime: readFirstString(ctx.params, ["endTime", "end_time"]),
2294
+ pageSize: readOptionalPositiveInteger(ctx.params, ["pageSize", "page_size"]),
2295
+ pageToken: readFirstString(ctx.params, ["pageToken", "page_token"]),
2296
+ accountId: ctx.accountId ?? void 0
2297
+ })
2298
+ });
2299
+ }
2300
+ if (ctx.action === "channel-info") {
2301
+ const chatId = resolveFeishuChatId(ctx);
2302
+ if (!chatId) throw new Error("Feishu channel-info requires chatId or channelId.");
2303
+ const runtime = await loadFeishuChannelRuntime();
2304
+ const client = await createFeishuActionClient(account);
2305
+ const channel = await runtime.getChatInfo(client, chatId);
2306
+ if (!(ctx.params.includeMembers === true || ctx.params.members === true)) return jsonActionResult({
2307
+ ok: true,
2308
+ provider: "feishu",
2309
+ action: "channel-info",
2310
+ channel
2311
+ });
2312
+ return jsonActionResult({
2313
+ ok: true,
2314
+ provider: "feishu",
2315
+ action: "channel-info",
2316
+ channel,
2317
+ members: await runtime.getChatMembers(client, chatId, readOptionalPositiveInteger(ctx.params, ["pageSize", "page_size"]), readFirstString(ctx.params, ["pageToken", "page_token"]), resolveFeishuMemberIdType(ctx.params))
2318
+ });
2319
+ }
2320
+ if (ctx.action === "member-info") {
2321
+ const runtime = await loadFeishuChannelRuntime();
2322
+ const client = await createFeishuActionClient(account);
2323
+ const memberId = resolveFeishuMemberId(ctx.params);
2324
+ if (memberId) return jsonActionResult({
2325
+ ok: true,
2326
+ channel: "feishu",
2327
+ action: "member-info",
2328
+ member: await runtime.getFeishuMemberInfo(client, memberId, resolveFeishuMemberIdType(ctx.params))
2329
+ });
2330
+ const chatId = resolveFeishuChatId(ctx);
2331
+ if (!chatId) throw new Error("Feishu member-info requires memberId or chatId/channelId.");
2332
+ return jsonActionResult({
2333
+ ok: true,
2334
+ channel: "feishu",
2335
+ action: "member-info",
2336
+ ...await runtime.getChatMembers(client, chatId, readOptionalPositiveInteger(ctx.params, ["pageSize", "page_size"]), readFirstString(ctx.params, ["pageToken", "page_token"]), resolveFeishuMemberIdType(ctx.params))
2337
+ });
2338
+ }
2339
+ if (ctx.action === "channel-list") {
2340
+ const runtime = await loadFeishuChannelRuntime();
2341
+ const query = readFirstString(ctx.params, ["query"]);
2342
+ const limit = readOptionalPositiveInteger(ctx.params, ["limit"]);
2343
+ const scope = readFirstString(ctx.params, ["scope", "kind"]) ?? "all";
2344
+ if (scope === "groups" || scope === "group" || scope === "channels" || scope === "channel") return jsonActionResult({
2345
+ ok: true,
2346
+ channel: "feishu",
2347
+ action: "channel-list",
2348
+ groups: await runtime.listFeishuDirectoryGroupsLive({
2349
+ cfg: ctx.cfg,
2350
+ query,
2351
+ limit,
2352
+ fallbackToStatic: false,
2353
+ accountId: ctx.accountId ?? void 0
2354
+ })
2355
+ });
2356
+ if (scope === "peers" || scope === "peer" || scope === "members" || scope === "member" || scope === "users" || scope === "user") return jsonActionResult({
2357
+ ok: true,
2358
+ channel: "feishu",
2359
+ action: "channel-list",
2360
+ peers: await runtime.listFeishuDirectoryPeersLive({
2361
+ cfg: ctx.cfg,
2362
+ query,
2363
+ limit,
2364
+ fallbackToStatic: false,
2365
+ accountId: ctx.accountId ?? void 0
2366
+ })
2367
+ });
2368
+ const [groups, peers] = await Promise.all([runtime.listFeishuDirectoryGroupsLive({
2369
+ cfg: ctx.cfg,
2370
+ query,
2371
+ limit,
2372
+ fallbackToStatic: false,
2373
+ accountId: ctx.accountId ?? void 0
2374
+ }), runtime.listFeishuDirectoryPeersLive({
2375
+ cfg: ctx.cfg,
2376
+ query,
2377
+ limit,
2378
+ fallbackToStatic: false,
2379
+ accountId: ctx.accountId ?? void 0
2380
+ })]);
2381
+ return jsonActionResult({
2382
+ ok: true,
2383
+ channel: "feishu",
2384
+ action: "channel-list",
2385
+ groups,
2386
+ peers
2387
+ });
2388
+ }
2389
+ if (ctx.action === "react") {
2390
+ const messageId = resolveFeishuMessageId(ctx.params);
2391
+ if (!messageId) throw new Error("Feishu reaction requires messageId.");
2392
+ const emoji = typeof ctx.params.emoji === "string" ? ctx.params.emoji.trim() : "";
2393
+ const remove = ctx.params.remove === true;
2394
+ const clearAll = ctx.params.clearAll === true;
2395
+ if (remove) {
2396
+ if (!emoji) throw new Error("Emoji is required to remove a Feishu reaction.");
2397
+ const { listReactionsFeishu, removeReactionFeishu } = await loadFeishuChannelRuntime();
2398
+ const ownReaction = (await listReactionsFeishu({
2399
+ cfg: ctx.cfg,
2400
+ messageId,
2401
+ emojiType: emoji,
2402
+ accountId: ctx.accountId ?? void 0
2403
+ })).find((entry) => entry.operatorType === "app");
2404
+ if (!ownReaction) return jsonActionResult({
2405
+ ok: true,
2406
+ removed: null
2407
+ });
2408
+ await removeReactionFeishu({
2409
+ cfg: ctx.cfg,
2410
+ messageId,
2411
+ reactionId: ownReaction.reactionId,
2412
+ accountId: ctx.accountId ?? void 0
2413
+ });
2414
+ return jsonActionResult({
2415
+ ok: true,
2416
+ removed: emoji
2417
+ });
2418
+ }
2419
+ if (!emoji) {
2420
+ if (!clearAll) throw new Error("Emoji is required to add a Feishu reaction. Set clearAll=true to remove all bot reactions.");
2421
+ const { listReactionsFeishu, removeReactionFeishu } = await loadFeishuChannelRuntime();
2422
+ const reactions = await listReactionsFeishu({
2423
+ cfg: ctx.cfg,
2424
+ messageId,
2425
+ accountId: ctx.accountId ?? void 0
2426
+ });
2427
+ let removed = 0;
2428
+ for (const reaction of reactions.filter((entry) => entry.operatorType === "app")) {
2429
+ await removeReactionFeishu({
2430
+ cfg: ctx.cfg,
2431
+ messageId,
2432
+ reactionId: reaction.reactionId,
2433
+ accountId: ctx.accountId ?? void 0
2434
+ });
2435
+ removed += 1;
2436
+ }
2437
+ return jsonActionResult({
2438
+ ok: true,
2439
+ removed
2440
+ });
2441
+ }
2442
+ const { addReactionFeishu } = await loadFeishuChannelRuntime();
2443
+ await addReactionFeishu({
2444
+ cfg: ctx.cfg,
2445
+ messageId,
2446
+ emojiType: emoji,
2447
+ accountId: ctx.accountId ?? void 0
2448
+ });
2449
+ return jsonActionResult({
2450
+ ok: true,
2451
+ added: emoji
2452
+ });
2453
+ }
2454
+ if (ctx.action === "reactions") {
2455
+ const messageId = resolveFeishuMessageId(ctx.params);
2456
+ if (!messageId) throw new Error("Feishu reactions lookup requires messageId.");
2457
+ const { listReactionsFeishu } = await loadFeishuChannelRuntime();
2458
+ return jsonActionResult({
2459
+ ok: true,
2460
+ reactions: await listReactionsFeishu({
2461
+ cfg: ctx.cfg,
2462
+ messageId,
2463
+ accountId: ctx.accountId ?? void 0
2464
+ })
2465
+ });
2466
+ }
2467
+ throw new Error(`Unsupported Feishu action: "${ctx.action}"`);
2468
+ }
2469
+ },
2470
+ bindings: {
2471
+ compileConfiguredBinding: ({ conversationId }) => normalizeFeishuAcpConversationId(conversationId),
2472
+ matchInboundConversation: ({ compiledBinding, conversationId, parentConversationId }) => matchFeishuAcpConversation({
2473
+ bindingConversationId: compiledBinding.conversationId,
2474
+ conversationId,
2475
+ parentConversationId
2476
+ }),
2477
+ resolveCommandConversation: ({ accountId, threadId, senderId, sessionKey, parentSessionKey, originatingTo, commandTo, fallbackTo }) => resolveFeishuCommandConversation({
2478
+ accountId,
2479
+ threadId,
2480
+ senderId,
2481
+ sessionKey,
2482
+ parentSessionKey,
2483
+ originatingTo,
2484
+ commandTo,
2485
+ fallbackTo
2486
+ })
2487
+ },
2488
+ auth: { login: async ({ cfg }) => {
2489
+ const { createClackPrompter } = await import("openclaw/plugin-sdk/setup-runtime");
2490
+ const { replaceConfigFile } = await import("openclaw/plugin-sdk/config-mutation");
2491
+ const nextCfg = await runFeishuLogin({
2492
+ cfg,
2493
+ prompter: createClackPrompter()
2494
+ });
2495
+ if (nextCfg !== cfg) await replaceConfigFile({
2496
+ nextConfig: nextCfg,
2497
+ afterWrite: { mode: "auto" }
2498
+ });
2499
+ } },
2500
+ setup: feishuSetupAdapter,
2501
+ setupWizard: feishuSetupWizard,
2502
+ messaging: {
2503
+ targetPrefixes: ["feishu", "lark"],
2504
+ normalizeTarget: (raw) => normalizeFeishuTarget(raw) ?? void 0,
2505
+ resolveDeliveryTarget: ({ conversationId, parentConversationId }) => {
2506
+ const directId = parseFeishuDirectConversationId(conversationId);
2507
+ if (directId) return { to: `user:${directId}` };
2508
+ const parsed = parseFeishuConversationId({
2509
+ conversationId,
2510
+ parentConversationId
2511
+ });
2512
+ if (parsed?.topicId) return {
2513
+ to: `chat:${parentConversationId?.trim() || parsed.chatId}`,
2514
+ threadId: parsed.topicId
2515
+ };
2516
+ return { to: `chat:${parsed?.chatId ?? conversationId.trim()}` };
2517
+ },
2518
+ resolveSessionConversation: ({ kind, rawId }) => resolveFeishuSessionConversation({
2519
+ kind,
2520
+ rawId
2521
+ }),
2522
+ resolveOutboundSessionRoute: (params) => resolveFeishuOutboundSessionRoute(params),
2523
+ targetResolver: {
2524
+ looksLikeId: looksLikeFeishuId,
2525
+ hint: "<chatId|user:openId|chat:chatId>"
2526
+ }
2527
+ },
2528
+ directory: createChannelDirectoryAdapter({
2529
+ listPeers: async ({ cfg, query, limit, accountId }) => listFeishuDirectoryPeers({
2530
+ cfg,
2531
+ query: query ?? void 0,
2532
+ limit: limit ?? void 0,
2533
+ accountId: accountId ?? void 0
2534
+ }),
2535
+ listGroups: async ({ cfg, query, limit, accountId }) => listFeishuDirectoryGroups({
2536
+ cfg,
2537
+ query: query ?? void 0,
2538
+ limit: limit ?? void 0,
2539
+ accountId: accountId ?? void 0
2540
+ }),
2541
+ ...createRuntimeDirectoryLiveAdapter({
2542
+ getRuntime: loadFeishuChannelRuntime,
2543
+ listPeersLive: (runtime) => async ({ cfg, query, limit, accountId }) => await runtime.listFeishuDirectoryPeersLive({
2544
+ cfg,
2545
+ query: query ?? void 0,
2546
+ limit: limit ?? void 0,
2547
+ accountId: accountId ?? void 0
2548
+ }),
2549
+ listGroupsLive: (runtime) => async ({ cfg, query, limit, accountId }) => await runtime.listFeishuDirectoryGroupsLive({
2550
+ cfg,
2551
+ query: query ?? void 0,
2552
+ limit: limit ?? void 0,
2553
+ accountId: accountId ?? void 0
2554
+ })
2555
+ })
2556
+ }),
2557
+ status: createComputedAccountStatusAdapter({
2558
+ defaultRuntime: createDefaultChannelRuntimeState(DEFAULT_ACCOUNT_ID$2, { port: null }),
2559
+ buildChannelSummary: ({ snapshot }) => buildProbeChannelStatusSummary(snapshot, { port: snapshot.port ?? null }),
2560
+ probeAccount: async ({ account }) => await (await loadFeishuChannelRuntime()).probeFeishu(account),
2561
+ resolveAccountSnapshot: ({ account, runtime }) => ({
2562
+ accountId: account.accountId,
2563
+ enabled: account.enabled,
2564
+ configured: account.configured,
2565
+ name: account.name,
2566
+ extra: {
2567
+ appId: account.appId,
2568
+ domain: account.domain,
2569
+ port: runtime?.port ?? null
2570
+ }
2571
+ })
2572
+ }),
2573
+ gateway: { startAccount: async (ctx) => {
2574
+ const { monitorFeishuProvider } = await import("./monitor-C4sFALTA.mjs");
2575
+ const account = resolveFeishuRuntimeAccount({
2576
+ cfg: ctx.cfg,
2577
+ accountId: ctx.accountId
2578
+ }, { requireEventSecrets: true });
2579
+ const port = account.config?.webhookPort ?? null;
2580
+ ctx.setStatus({
2581
+ accountId: ctx.accountId,
2582
+ port
2583
+ });
2584
+ ctx.log?.info(`starting feishu[${ctx.accountId}] (mode: ${account.config?.connectionMode ?? "websocket"})`);
2585
+ const statusSink = createAccountStatusSink({
2586
+ accountId: ctx.accountId,
2587
+ setStatus: ctx.setStatus
2588
+ });
2589
+ return monitorFeishuProvider({
2590
+ config: ctx.cfg,
2591
+ runtime: ctx.runtime,
2592
+ channelRuntime: ctx.channelRuntime,
2593
+ abortSignal: ctx.abortSignal,
2594
+ accountId: ctx.accountId,
2595
+ statusSink
2596
+ });
2597
+ } },
2598
+ message: feishuMessageAdapter
2599
+ },
2600
+ security: {
2601
+ collectWarnings: projectConfigAccountIdWarningCollector(collectFeishuSecurityWarnings),
2602
+ collectAuditFindings: ({ cfg }) => collectFeishuSecurityAuditFindings({ cfg })
2603
+ },
2604
+ pairing: { text: {
2605
+ idLabel: "feishuUserId",
2606
+ message: PAIRING_APPROVED_MESSAGE,
2607
+ normalizeAllowEntry: createPairingPrefixStripper(/^(feishu|user|open_id):/i),
2608
+ notify: async ({ cfg, id, message, accountId }) => {
2609
+ const { sendMessageFeishu } = await loadFeishuChannelRuntime();
2610
+ await sendMessageFeishu({
2611
+ cfg,
2612
+ to: id,
2613
+ text: message,
2614
+ accountId
2615
+ });
2616
+ }
2617
+ } },
2618
+ outbound: {
2619
+ deliveryMode: "direct",
2620
+ chunker: chunkTextForOutbound,
2621
+ chunkerMode: "markdown",
2622
+ textChunkLimit: 4e3,
2623
+ sanitizeText: ({ text }) => sanitizeAssistantVisibleText(text),
2624
+ presentationCapabilities: {
2625
+ supported: true,
2626
+ buttons: true,
2627
+ selects: false,
2628
+ context: true,
2629
+ divider: true,
2630
+ limits: {
2631
+ actions: {
2632
+ maxActions: 20,
2633
+ maxActionsPerRow: 5,
2634
+ maxLabelLength: 40,
2635
+ maxValueBytes: 1024
2636
+ },
2637
+ text: {
2638
+ maxLength: 4e3,
2639
+ encoding: "characters",
2640
+ markdownDialect: "markdown"
2641
+ }
2642
+ }
2643
+ },
2644
+ renderPresentation: async (ctx) => {
2645
+ const renderPresentation = (await loadFeishuChannelRuntime()).feishuOutbound.renderPresentation;
2646
+ return renderPresentation ? await renderPresentation(ctx) : null;
2647
+ },
2648
+ sendPayload: async (ctx) => {
2649
+ const sendPayload = (await loadFeishuChannelRuntime()).feishuOutbound.sendPayload;
2650
+ if (!sendPayload) throw new Error("Feishu payload sending is not available.");
2651
+ return await sendPayload(ctx);
2652
+ },
2653
+ ...createRuntimeOutboundDelegates({
2654
+ getRuntime: loadFeishuChannelRuntime,
2655
+ sendText: { resolve: (runtime) => runtime.feishuOutbound.sendText },
2656
+ sendMedia: { resolve: (runtime) => runtime.feishuOutbound.sendMedia }
2657
+ })
2658
+ }
2659
+ });
2660
+ //#endregion
2661
+ export { setFeishuNamedAccountEnabled$1 as a, normalizeFeishuAllowEntry as c, resolveFeishuGroupConversationIngressAccess as d, resolveFeishuGroupSenderActivationIngressAccess as f, listFeishuDirectoryPeers as h, feishuSetupAdapter as i, resolveFeishuDmIngressAccess as l, listFeishuDirectoryGroups as m, feishuSetupWizard as n, buildFeishuPresentationCardElements as o, resolveFeishuReplyPolicy as p, runFeishuLogin as r, hasExplicitFeishuGroupConfig as s, feishuPlugin as t, resolveFeishuGroupConfig as u };