@openclaw/slack 2026.7.1-beta.1 → 2026.7.1-beta.4

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 (605) hide show
  1. package/dist/{account-inspect-DOtQbKkB.js → account-inspect-Di7ditqZ.js} +1 -1
  2. package/dist/account-inspect-api.js +1 -1
  3. package/dist/{accounts-BPCiCe8y.js → accounts-BOJJiHSr.js} +14 -1
  4. package/dist/accounts.runtime-DWvaCb-X.js +2 -0
  5. package/dist/{action-runtime-BLu039dd.js → action-runtime-DoQGk_8D.js} +37 -40
  6. package/dist/action-runtime.runtime-BABj3aM-.js +2 -0
  7. package/dist/{actions-CqRHPciJ.js → actions-DMpDmKEA.js} +211 -57
  8. package/dist/actions.runtime-C103_BPW.js +2 -0
  9. package/dist/api.js +13 -13
  10. package/dist/{approval-handler.runtime-BqNO_HC_.js → approval-handler.runtime-CIUbOt5T.js} +2 -2
  11. package/dist/{channel-DjNY4ik7.js → channel-CG29WLVd.js} +198 -111
  12. package/dist/channel-plugin-api.js +1 -1
  13. package/dist/{channel.setup-CDOZ8V3p.js → channel.setup-Dq6syTNU.js} +3 -3
  14. package/dist/{client-DG9cyk55.js → client-DGxwSL7f.js} +0 -1
  15. package/dist/{directory-config-DDVHDmrN.js → directory-config-BZuS8141.js} +1 -1
  16. package/dist/directory-contract-api.js +1 -1
  17. package/dist/{directory-live-DC-YA5SQ.js → directory-live-BNsxCgqP.js} +2 -2
  18. package/dist/format-YCNoNkM2.js +107 -0
  19. package/dist/http-routes-api.js +1 -1
  20. package/dist/index.js +1 -1
  21. package/dist/{interactive-replies-D-22gTp3.js → interactive-replies-CXpT-vA_.js} +13 -2
  22. package/dist/interactive-replies-api.js +1 -1
  23. package/dist/{message-tool-api--zYyTqrR.js → message-tool-api-BgWKyu2r.js} +11 -4
  24. package/dist/message-tool-api.js +1 -1
  25. package/dist/{monitor-Cf50drfK.js → monitor-D6Km2CFH.js} +3 -3
  26. package/dist/outbound-adapter-DVoBfBW5.js +272 -0
  27. package/dist/{pipeline.runtime-BKICBY52.js → pipeline.runtime-0wEFX2CS.js} +185 -268
  28. package/dist/{plugin-routes-B9PvcDQJ.js → plugin-routes-CLp4obpN.js} +1 -1
  29. package/dist/{policy-DAE6BTN3.js → policy-Dj-puVPb.js} +10 -4
  30. package/dist/{probe-DFKt9Ute.js → probe-CuwRDE5j.js} +10 -4
  31. package/dist/{provider-DOZHzRWi.js → provider-Cot8h818.js} +199 -154
  32. package/dist/{relay-source-BpBIUaF8.js → relay-source-CU1LhyBj.js} +2 -2
  33. package/dist/{replies-CMZq3Lcb.js → replies-Bbx6pG_B.js} +4 -3
  34. package/dist/{reply-blocks-CfJqf7eq.js → reply-blocks-BGQ6zSqM.js} +184 -36
  35. package/dist/{resolve-channels-eniB45fy.js → resolve-channels-CstkChBE.js} +1 -1
  36. package/dist/{resolve-users-DDKzl37a.js → resolve-users-C3NP2c-Q.js} +1 -1
  37. package/dist/{runtime-api-DHJ8ntLr.js → runtime-api-CEmqYxR-.js} +1 -1
  38. package/dist/runtime-api.js +12 -12
  39. package/dist/{scopes-BdVdJxFf.js → scopes-DCWVD5-8.js} +2 -2
  40. package/dist/{send-Dg6U9K7_.js → send-DKDXoeoV.js} +392 -225
  41. package/dist/send.runtime-GPRa63l1.js +2 -0
  42. package/dist/{setup-core-BCGzyZhx.js → setup-core-fGd6Gquy.js} +4 -3
  43. package/dist/setup-entry.js +1 -1
  44. package/dist/setup-plugin-api.js +1 -1
  45. package/dist/{setup-surface-D7xdZLxB.js → setup-surface-Dv2fIJNB.js} +5 -5
  46. package/dist/{shared-iMaNxOIL.js → shared-CosfcFri.js} +5 -5
  47. package/dist/{slash-dispatch.runtime-C-1pDqWi.js → slash-dispatch.runtime-Ccm3quU1.js} +1 -1
  48. package/node_modules/@slack/web-api/dist/chat-stream.d.ts +6 -0
  49. package/node_modules/@slack/web-api/dist/chat-stream.d.ts.map +1 -1
  50. package/node_modules/@slack/web-api/dist/chat-stream.js +8 -0
  51. package/node_modules/@slack/web-api/dist/chat-stream.js.map +1 -1
  52. package/node_modules/@slack/web-api/dist/types/request/assistant.d.ts +1 -1
  53. package/node_modules/@slack/web-api/dist/types/request/assistant.d.ts.map +1 -1
  54. package/node_modules/@slack/web-api/package.json +1 -1
  55. package/node_modules/@types/node/README.md +1 -1
  56. package/node_modules/@types/node/assert/strict.d.ts +10 -1
  57. package/node_modules/@types/node/assert.d.ts +144 -17
  58. package/node_modules/@types/node/async_hooks.d.ts +9 -9
  59. package/node_modules/@types/node/buffer.d.ts +64 -30
  60. package/node_modules/@types/node/child_process.d.ts +17 -21
  61. package/node_modules/@types/node/cluster.d.ts +13 -13
  62. package/node_modules/@types/node/console.d.ts +1 -1
  63. package/node_modules/@types/node/crypto.d.ts +471 -575
  64. package/node_modules/@types/node/diagnostics_channel.d.ts +274 -32
  65. package/node_modules/@types/node/dns.d.ts +15 -15
  66. package/node_modules/@types/node/events.d.ts +3 -3
  67. package/node_modules/@types/node/ffi.d.ts +486 -0
  68. package/node_modules/@types/node/fs/promises.d.ts +7 -4
  69. package/node_modules/@types/node/fs.d.ts +24 -18
  70. package/node_modules/@types/node/globals.d.ts +4 -4
  71. package/node_modules/@types/node/http.d.ts +30 -5
  72. package/node_modules/@types/node/http2.d.ts +2 -1
  73. package/node_modules/@types/node/index.d.ts +1 -3
  74. package/node_modules/@types/node/inspector.d.ts +1 -1
  75. package/node_modules/@types/node/module.d.ts +16 -45
  76. package/node_modules/@types/node/net.d.ts +1 -1
  77. package/node_modules/@types/node/os.d.ts +2 -2
  78. package/node_modules/@types/node/package.json +4 -4
  79. package/node_modules/@types/node/perf_hooks.d.ts +1 -9
  80. package/node_modules/@types/node/process.d.ts +25 -12
  81. package/node_modules/@types/node/quic.d.ts +92 -11
  82. package/node_modules/@types/node/readline.d.ts +12 -11
  83. package/node_modules/@types/node/repl.d.ts +10 -10
  84. package/node_modules/@types/node/sqlite.d.ts +56 -1
  85. package/node_modules/@types/node/stream/iter.d.ts +150 -0
  86. package/node_modules/@types/node/stream/promises.d.ts +2 -2
  87. package/node_modules/@types/node/stream/web.d.ts +1 -1
  88. package/node_modules/@types/node/stream.d.ts +37 -5
  89. package/node_modules/@types/node/test/reporters.d.ts +1 -1
  90. package/node_modules/@types/node/test.d.ts +120 -10
  91. package/node_modules/@types/node/tls.d.ts +1 -1
  92. package/node_modules/@types/node/ts5.6/index.d.ts +2 -4
  93. package/node_modules/@types/node/ts5.7/index.d.ts +1 -3
  94. package/node_modules/@types/node/url.d.ts +3 -3
  95. package/node_modules/@types/node/util/types.d.ts +1 -1
  96. package/node_modules/@types/node/util.d.ts +22 -22
  97. package/node_modules/@types/node/v8.d.ts +85 -3
  98. package/node_modules/@types/node/vm.d.ts +9 -9
  99. package/node_modules/@types/node/web-globals/domexception.d.ts +15 -0
  100. package/node_modules/@types/node/worker_threads.d.ts +10 -12
  101. package/node_modules/@types/node/zlib.d.ts +3 -3
  102. package/node_modules/body-parser/README.md +16 -1
  103. package/node_modules/body-parser/index.js +4 -20
  104. package/node_modules/body-parser/lib/read.js +17 -17
  105. package/node_modules/body-parser/lib/types/json.js +60 -32
  106. package/node_modules/body-parser/lib/types/raw.js +3 -3
  107. package/node_modules/body-parser/lib/types/text.js +3 -3
  108. package/node_modules/body-parser/lib/types/urlencoded.js +16 -20
  109. package/node_modules/body-parser/lib/utils.js +18 -16
  110. package/node_modules/body-parser/node_modules/content-type/LICENSE +22 -0
  111. package/node_modules/body-parser/node_modules/content-type/README.md +69 -0
  112. package/node_modules/body-parser/node_modules/content-type/dist/index.d.ts +26 -0
  113. package/node_modules/body-parser/node_modules/content-type/dist/index.js +170 -0
  114. package/node_modules/body-parser/node_modules/content-type/dist/index.js.map +1 -0
  115. package/node_modules/body-parser/node_modules/content-type/package.json +52 -0
  116. package/node_modules/body-parser/package.json +23 -10
  117. package/node_modules/range-parser/README.md +13 -12
  118. package/node_modules/range-parser/index.js +27 -8
  119. package/node_modules/range-parser/package.json +12 -8
  120. package/node_modules/semver/classes/range.js +6 -2
  121. package/node_modules/semver/package.json +1 -1
  122. package/node_modules/side-channel/CHANGELOG.md +10 -0
  123. package/node_modules/side-channel/README.md +1 -1
  124. package/node_modules/side-channel/index.js +5 -2
  125. package/node_modules/side-channel/package.json +10 -10
  126. package/node_modules/side-channel/test/index.js +16 -0
  127. package/node_modules/typebox/build/compile/validator.d.mts +2 -7
  128. package/node_modules/typebox/build/compile/validator.mjs +6 -36
  129. package/node_modules/typebox/build/error/errors.d.mts +1 -7
  130. package/node_modules/typebox/build/format/_idna.mjs +36 -6
  131. package/node_modules/typebox/build/format/_puny.mjs +4 -1
  132. package/node_modules/typebox/build/format/uuid.d.mts +2 -2
  133. package/node_modules/typebox/build/format/uuid.mjs +3 -3
  134. package/node_modules/typebox/build/guard/emit.d.mts +0 -4
  135. package/node_modules/typebox/build/guard/emit.mjs +0 -8
  136. package/node_modules/typebox/build/guard/guard.d.mts +4 -8
  137. package/node_modules/typebox/build/guard/guard.mjs +5 -13
  138. package/node_modules/typebox/build/schema/engine/boolean.d.mts +3 -3
  139. package/node_modules/typebox/build/schema/engine/boolean.mjs +4 -4
  140. package/node_modules/typebox/build/schema/engine/index.d.mts +0 -1
  141. package/node_modules/typebox/build/schema/engine/index.mjs +0 -1
  142. package/node_modules/typebox/build/schema/engine/schema.mjs +5 -10
  143. package/node_modules/typebox/build/schema/engine/type.mjs +14 -18
  144. package/node_modules/typebox/build/schema/types/dependencies.mjs +1 -1
  145. package/node_modules/typebox/build/schema/types/index.d.mts +0 -1
  146. package/node_modules/typebox/build/schema/types/index.mjs +0 -1
  147. package/node_modules/typebox/build/schema/types/schema.d.mts +1 -1
  148. package/node_modules/typebox/build/schema/types/schema.mjs +2 -2
  149. package/node_modules/typebox/build/system/locale/ar_001.mjs +0 -1
  150. package/node_modules/typebox/build/system/locale/bn_BD.mjs +0 -1
  151. package/node_modules/typebox/build/system/locale/cs_CZ.mjs +0 -1
  152. package/node_modules/typebox/build/system/locale/de_DE.mjs +0 -1
  153. package/node_modules/typebox/build/system/locale/el_GR.mjs +0 -1
  154. package/node_modules/typebox/build/system/locale/en_US.mjs +0 -1
  155. package/node_modules/typebox/build/system/locale/es_419.mjs +0 -1
  156. package/node_modules/typebox/build/system/locale/es_AR.mjs +0 -1
  157. package/node_modules/typebox/build/system/locale/es_ES.mjs +0 -1
  158. package/node_modules/typebox/build/system/locale/es_MX.mjs +0 -1
  159. package/node_modules/typebox/build/system/locale/fa_IR.mjs +0 -1
  160. package/node_modules/typebox/build/system/locale/fil_PH.mjs +0 -1
  161. package/node_modules/typebox/build/system/locale/fr_CA.mjs +0 -1
  162. package/node_modules/typebox/build/system/locale/fr_FR.mjs +0 -1
  163. package/node_modules/typebox/build/system/locale/ha_NG.mjs +0 -1
  164. package/node_modules/typebox/build/system/locale/hi_IN.mjs +0 -1
  165. package/node_modules/typebox/build/system/locale/hu_HU.mjs +0 -1
  166. package/node_modules/typebox/build/system/locale/id_ID.mjs +0 -1
  167. package/node_modules/typebox/build/system/locale/it_IT.mjs +0 -1
  168. package/node_modules/typebox/build/system/locale/ja_JP.mjs +0 -1
  169. package/node_modules/typebox/build/system/locale/ko_KR.mjs +0 -1
  170. package/node_modules/typebox/build/system/locale/ms_MY.mjs +0 -1
  171. package/node_modules/typebox/build/system/locale/nl_NL.mjs +0 -1
  172. package/node_modules/typebox/build/system/locale/pl_PL.mjs +0 -1
  173. package/node_modules/typebox/build/system/locale/pt_BR.mjs +0 -1
  174. package/node_modules/typebox/build/system/locale/pt_PT.mjs +0 -1
  175. package/node_modules/typebox/build/system/locale/ro_RO.mjs +0 -1
  176. package/node_modules/typebox/build/system/locale/ru_RU.mjs +0 -1
  177. package/node_modules/typebox/build/system/locale/sv_SE.mjs +0 -1
  178. package/node_modules/typebox/build/system/locale/sw_TZ.mjs +0 -1
  179. package/node_modules/typebox/build/system/locale/th_TH.mjs +0 -1
  180. package/node_modules/typebox/build/system/locale/tr_TR.mjs +0 -1
  181. package/node_modules/typebox/build/system/locale/uk_UA.mjs +0 -1
  182. package/node_modules/typebox/build/system/locale/ur_PK.mjs +0 -1
  183. package/node_modules/typebox/build/system/locale/vi_VN.mjs +0 -1
  184. package/node_modules/typebox/build/system/locale/yo_NG.mjs +0 -1
  185. package/node_modules/typebox/build/system/locale/zh_Hans.mjs +0 -1
  186. package/node_modules/typebox/build/system/locale/zh_Hant.mjs +0 -1
  187. package/node_modules/typebox/build/system/memory/clone.d.mts +2 -3
  188. package/node_modules/typebox/build/system/memory/clone.mjs +73 -26
  189. package/node_modules/typebox/build/system/settings/settings.d.mts +15 -0
  190. package/node_modules/typebox/build/system/settings/settings.mjs +3 -1
  191. package/node_modules/typebox/build/type/action/_add_immutable.d.mts +11 -0
  192. package/node_modules/typebox/build/type/action/_add_immutable.mjs +11 -0
  193. package/node_modules/typebox/build/type/action/_add_optional.d.mts +11 -0
  194. package/node_modules/typebox/build/type/action/_add_optional.mjs +11 -0
  195. package/node_modules/typebox/build/type/action/_add_readonly.d.mts +11 -0
  196. package/node_modules/typebox/build/type/action/_add_readonly.mjs +11 -0
  197. package/node_modules/typebox/build/type/action/_remove_immutable.d.mts +11 -0
  198. package/node_modules/typebox/build/type/action/_remove_immutable.mjs +11 -0
  199. package/node_modules/typebox/build/type/action/_remove_optional.d.mts +11 -0
  200. package/node_modules/typebox/build/type/action/_remove_optional.mjs +11 -0
  201. package/node_modules/typebox/build/type/action/_remove_readonly.d.mts +11 -0
  202. package/node_modules/typebox/build/type/action/_remove_readonly.mjs +11 -0
  203. package/node_modules/typebox/build/type/action/conditional.d.mts +2 -3
  204. package/node_modules/typebox/build/type/action/conditional.mjs +2 -1
  205. package/node_modules/typebox/build/type/action/index.d.mts +7 -4
  206. package/node_modules/typebox/build/type/action/index.mjs +7 -4
  207. package/node_modules/typebox/build/type/action/mapped.d.mts +2 -3
  208. package/node_modules/typebox/build/type/action/mapped.mjs +2 -1
  209. package/node_modules/typebox/build/type/action/module.d.mts +8 -7
  210. package/node_modules/typebox/build/type/action/module.mjs +7 -6
  211. package/node_modules/typebox/build/type/action/readonly_object.d.mts +0 -5
  212. package/node_modules/typebox/build/type/action/readonly_object.mjs +0 -5
  213. package/node_modules/typebox/build/type/action/with.d.mts +11 -0
  214. package/node_modules/typebox/build/type/action/with.mjs +11 -0
  215. package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +1 -1
  216. package/node_modules/typebox/build/type/engine/call/instantiate.d.mts +1 -3
  217. package/node_modules/typebox/build/type/engine/call/instantiate.mjs +3 -2
  218. package/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +2 -2
  219. package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.d.mts +3 -4
  220. package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +2 -1
  221. package/node_modules/typebox/build/type/engine/cyclic/candidates.d.mts +2 -3
  222. package/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +3 -6
  223. package/node_modules/typebox/build/type/engine/cyclic/check.d.mts +6 -9
  224. package/node_modules/typebox/build/type/engine/cyclic/check.mjs +10 -16
  225. package/node_modules/typebox/build/type/engine/cyclic/dependencies.d.mts +1 -4
  226. package/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +9 -15
  227. package/node_modules/typebox/build/type/engine/cyclic/extends.d.mts +1 -4
  228. package/node_modules/typebox/build/type/engine/cyclic/extends.mjs +8 -14
  229. package/node_modules/typebox/build/type/engine/cyclic/instantiate.d.mts +2 -5
  230. package/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +3 -2
  231. package/node_modules/typebox/build/type/engine/enum/index.d.mts +0 -1
  232. package/node_modules/typebox/build/type/engine/enum/index.mjs +0 -1
  233. package/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts +1 -2
  234. package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +2 -6
  235. package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +10 -6
  236. package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +10 -6
  237. package/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts +2 -1
  238. package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +3 -3
  239. package/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts +17 -5
  240. package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +34 -8
  241. package/node_modules/typebox/build/type/engine/exclude/operation.d.mts +5 -6
  242. package/node_modules/typebox/build/type/engine/exclude/operation.mjs +11 -12
  243. package/node_modules/typebox/build/type/engine/extract/operation.d.mts +5 -6
  244. package/node_modules/typebox/build/type/engine/extract/operation.mjs +11 -12
  245. package/node_modules/typebox/build/type/engine/immutable/instantiate_add.d.mts +10 -0
  246. package/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +14 -0
  247. package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.d.mts +10 -0
  248. package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs +14 -0
  249. package/node_modules/typebox/build/type/engine/index.d.mts +2 -2
  250. package/node_modules/typebox/build/type/engine/index.mjs +2 -2
  251. package/node_modules/typebox/build/type/engine/indexable/from_dependent.d.mts +5 -0
  252. package/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs +8 -0
  253. package/node_modules/typebox/build/type/engine/indexable/from_enum.d.mts +3 -3
  254. package/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +4 -4
  255. package/node_modules/typebox/build/type/engine/indexable/from_template_literal.d.mts +2 -2
  256. package/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +3 -3
  257. package/node_modules/typebox/build/type/engine/indexable/from_type.d.mts +3 -1
  258. package/node_modules/typebox/build/type/engine/indexable/from_type.mjs +9 -6
  259. package/node_modules/typebox/build/type/engine/indexed/instantiate.d.mts +2 -1
  260. package/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +5 -2
  261. package/node_modules/typebox/build/type/engine/instantiate.d.mts +44 -31
  262. package/node_modules/typebox/build/type/engine/instantiate.mjs +82 -83
  263. package/node_modules/typebox/build/type/engine/interface/instantiate.d.mts +3 -6
  264. package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.d.mts +2 -2
  265. package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +3 -3
  266. package/node_modules/typebox/build/type/engine/keyof/instantiate.d.mts +2 -1
  267. package/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +5 -1
  268. package/node_modules/typebox/build/type/engine/mapped/mapped_operation.d.mts +4 -4
  269. package/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +3 -3
  270. package/node_modules/typebox/build/type/engine/mapped/mapped_variants.d.mts +5 -4
  271. package/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +10 -5
  272. package/node_modules/typebox/build/type/engine/module/instantiate.d.mts +7 -9
  273. package/node_modules/typebox/build/type/engine/module/instantiate.mjs +17 -15
  274. package/node_modules/typebox/build/type/engine/object/from_dependent.d.mts +5 -0
  275. package/node_modules/typebox/build/type/engine/object/from_dependent.mjs +8 -0
  276. package/node_modules/typebox/build/type/engine/object/from_type.d.mts +3 -1
  277. package/node_modules/typebox/build/type/engine/object/from_type.mjs +8 -5
  278. package/node_modules/typebox/build/type/engine/object/from_union.mjs +2 -2
  279. package/node_modules/typebox/build/type/engine/optional/instantiate_add.d.mts +10 -0
  280. package/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +14 -0
  281. package/node_modules/typebox/build/type/engine/optional/instantiate_remove.d.mts +10 -0
  282. package/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs +14 -0
  283. package/node_modules/typebox/build/type/engine/parameters/instantiate.d.mts +3 -4
  284. package/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +2 -1
  285. package/node_modules/typebox/build/type/engine/partial/from_dependent.d.mts +5 -0
  286. package/node_modules/typebox/build/type/engine/partial/from_dependent.mjs +8 -0
  287. package/node_modules/typebox/build/type/engine/partial/from_intersect.d.mts +1 -1
  288. package/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +3 -2
  289. package/node_modules/typebox/build/type/engine/partial/from_object.d.mts +2 -2
  290. package/node_modules/typebox/build/type/engine/partial/from_object.mjs +2 -2
  291. package/node_modules/typebox/build/type/engine/partial/from_type.d.mts +3 -1
  292. package/node_modules/typebox/build/type/engine/partial/from_type.mjs +7 -4
  293. package/node_modules/typebox/build/type/engine/priority/index.d.mts +1 -0
  294. package/node_modules/typebox/build/type/engine/priority/index.mjs +1 -0
  295. package/node_modules/typebox/build/type/engine/priority/priority.d.mts +20 -0
  296. package/node_modules/typebox/build/type/engine/priority/priority.mjs +28 -0
  297. package/node_modules/typebox/build/type/engine/readonly/instantiate_add.d.mts +10 -0
  298. package/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +14 -0
  299. package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.d.mts +10 -0
  300. package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs +14 -0
  301. package/node_modules/typebox/build/type/engine/readonly_object/from_array.d.mts +2 -2
  302. package/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +2 -2
  303. package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.d.mts +5 -0
  304. package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs +8 -0
  305. package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.d.mts +1 -1
  306. package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +3 -2
  307. package/node_modules/typebox/build/type/engine/readonly_object/from_object.d.mts +2 -2
  308. package/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +2 -2
  309. package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.d.mts +2 -2
  310. package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +2 -2
  311. package/node_modules/typebox/build/type/engine/readonly_object/from_type.d.mts +3 -1
  312. package/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +8 -5
  313. package/node_modules/typebox/build/type/engine/record/from_key_enum.d.mts +2 -2
  314. package/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +2 -2
  315. package/node_modules/typebox/build/type/engine/record/from_key_template_literal.d.mts +2 -2
  316. package/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +2 -2
  317. package/node_modules/typebox/build/type/engine/ref/instantiate.d.mts +3 -3
  318. package/node_modules/typebox/build/type/engine/ref/instantiate.mjs +6 -6
  319. package/node_modules/typebox/build/type/engine/required/from_dependent.d.mts +5 -0
  320. package/node_modules/typebox/build/type/engine/required/from_dependent.mjs +8 -0
  321. package/node_modules/typebox/build/type/engine/required/from_intersect.d.mts +1 -1
  322. package/node_modules/typebox/build/type/engine/required/from_intersect.mjs +3 -2
  323. package/node_modules/typebox/build/type/engine/required/from_object.d.mts +2 -2
  324. package/node_modules/typebox/build/type/engine/required/from_object.mjs +2 -2
  325. package/node_modules/typebox/build/type/engine/required/from_type.d.mts +3 -1
  326. package/node_modules/typebox/build/type/engine/required/from_type.mjs +7 -4
  327. package/node_modules/typebox/build/type/engine/template_literal/decode.mjs +3 -3
  328. package/node_modules/typebox/build/type/engine/template_literal/encode.d.mts +2 -2
  329. package/node_modules/typebox/build/type/engine/template_literal/encode.mjs +6 -6
  330. package/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +1 -1
  331. package/node_modules/typebox/build/type/engine/template_literal/is_pattern.mjs +1 -0
  332. package/node_modules/typebox/build/type/engine/this/expand_this.d.mts +1 -4
  333. package/node_modules/typebox/build/type/engine/this/expand_this.mjs +7 -13
  334. package/node_modules/typebox/build/type/engine/with/instantiate.d.mts +8 -0
  335. package/node_modules/typebox/build/type/engine/{options → with}/instantiate.mjs +5 -5
  336. package/node_modules/typebox/build/type/extends/dependent.d.mts +6 -0
  337. package/node_modules/typebox/build/type/extends/dependent.mjs +6 -0
  338. package/node_modules/typebox/build/type/extends/enum.d.mts +4 -4
  339. package/node_modules/typebox/build/type/extends/enum.mjs +3 -2
  340. package/node_modules/typebox/build/type/extends/extends_left.d.mts +5 -7
  341. package/node_modules/typebox/build/type/extends/extends_left.mjs +24 -27
  342. package/node_modules/typebox/build/type/extends/extends_right.d.mts +7 -5
  343. package/node_modules/typebox/build/type/extends/extends_right.mjs +20 -15
  344. package/node_modules/typebox/build/type/extends/inference.mjs +1 -1
  345. package/node_modules/typebox/build/type/extends/object.d.mts +8 -1
  346. package/node_modules/typebox/build/type/extends/object.mjs +25 -3
  347. package/node_modules/typebox/build/type/extends/parameters.mjs +2 -2
  348. package/node_modules/typebox/build/type/extends/record.d.mts +13 -0
  349. package/node_modules/typebox/build/type/extends/record.mjs +23 -0
  350. package/node_modules/typebox/build/type/extends/template_literal.d.mts +3 -3
  351. package/node_modules/typebox/build/type/extends/template_literal.mjs +3 -3
  352. package/node_modules/typebox/build/type/extends/tuple.d.mts +3 -6
  353. package/node_modules/typebox/build/type/extends/tuple.mjs +6 -5
  354. package/node_modules/typebox/build/type/extends/union.mjs +2 -2
  355. package/node_modules/typebox/build/type/script/mapping.d.mts +84 -99
  356. package/node_modules/typebox/build/type/script/mapping.mjs +81 -85
  357. package/node_modules/typebox/build/type/script/parser.d.mts +40 -40
  358. package/node_modules/typebox/build/type/script/parser.mjs +22 -22
  359. package/node_modules/typebox/build/type/script/script.d.mts +3 -4
  360. package/node_modules/typebox/build/type/script/script.mjs +3 -2
  361. package/node_modules/typebox/build/type/script/token/internal/guard.d.mts +1 -1
  362. package/node_modules/typebox/build/type/script/token/internal/guard.mjs +1 -1
  363. package/node_modules/typebox/build/type/script/token/internal/take.mjs +1 -1
  364. package/node_modules/typebox/build/type/script/token/until.mjs +2 -2
  365. package/node_modules/typebox/build/type/types/_codec.d.mts +12 -12
  366. package/node_modules/typebox/build/type/types/_codec.mjs +0 -1
  367. package/node_modules/typebox/build/type/types/_immutable.d.mts +2 -9
  368. package/node_modules/typebox/build/type/types/_immutable.mjs +2 -10
  369. package/node_modules/typebox/build/type/types/_optional.d.mts +2 -9
  370. package/node_modules/typebox/build/type/types/_optional.mjs +2 -11
  371. package/node_modules/typebox/build/type/types/_readonly.d.mts +2 -9
  372. package/node_modules/typebox/build/type/types/_readonly.mjs +2 -10
  373. package/node_modules/typebox/build/type/types/_refine.d.mts +8 -10
  374. package/node_modules/typebox/build/type/types/_refine.mjs +1 -2
  375. package/node_modules/typebox/build/type/types/call.d.mts +3 -3
  376. package/node_modules/typebox/build/type/types/call.mjs +3 -2
  377. package/node_modules/typebox/build/type/types/deferred.d.mts +1 -0
  378. package/node_modules/typebox/build/type/types/deferred.mjs +1 -1
  379. package/node_modules/typebox/build/type/types/dependent.d.mts +17 -0
  380. package/node_modules/typebox/build/type/types/dependent.mjs +24 -0
  381. package/node_modules/typebox/build/type/types/enum.d.mts +3 -1
  382. package/node_modules/typebox/build/type/types/enum.mjs +5 -0
  383. package/node_modules/typebox/build/type/types/index.d.mts +1 -4
  384. package/node_modules/typebox/build/type/types/index.mjs +1 -4
  385. package/node_modules/typebox/build/type/types/number.d.mts +1 -1
  386. package/node_modules/typebox/build/type/types/number.mjs +1 -1
  387. package/node_modules/typebox/build/type/types/record.d.mts +13 -7
  388. package/node_modules/typebox/build/type/types/record.mjs +15 -9
  389. package/node_modules/typebox/build/type/types/static.d.mts +2 -5
  390. package/node_modules/typebox/build/typebox.d.mts +4 -8
  391. package/node_modules/typebox/build/typebox.mjs +4 -8
  392. package/node_modules/typebox/build/value/clean/clean.mjs +4 -2
  393. package/node_modules/typebox/build/value/clean/from_intersect.mjs +2 -2
  394. package/node_modules/typebox/build/value/clean/from_type.mjs +8 -10
  395. package/node_modules/typebox/build/value/clean/from_union.d.mts +1 -1
  396. package/node_modules/typebox/build/value/clean/from_union.mjs +1 -2
  397. package/node_modules/typebox/build/value/clone/clone.mjs +2 -73
  398. package/node_modules/typebox/build/value/codec/decode.mjs +4 -2
  399. package/node_modules/typebox/build/value/codec/encode.mjs +4 -2
  400. package/node_modules/typebox/build/value/codec/from_array.mjs +1 -4
  401. package/node_modules/typebox/build/value/codec/from_object.mjs +1 -4
  402. package/node_modules/typebox/build/value/codec/from_record.mjs +2 -7
  403. package/node_modules/typebox/build/value/codec/from_tuple.mjs +1 -4
  404. package/node_modules/typebox/build/value/codec/from_union.mjs +2 -3
  405. package/node_modules/typebox/build/value/convert/from_enum.mjs +3 -4
  406. package/node_modules/typebox/build/value/convert/from_template_literal.d.mts +1 -1
  407. package/node_modules/typebox/build/value/convert/from_template_literal.mjs +2 -3
  408. package/node_modules/typebox/build/value/convert/from_type.mjs +19 -21
  409. package/node_modules/typebox/build/value/create/from_enum.mjs +2 -2
  410. package/node_modules/typebox/build/value/create/from_type.mjs +23 -31
  411. package/node_modules/typebox/build/value/default/from_object.mjs +1 -1
  412. package/node_modules/typebox/build/value/default/from_type.mjs +8 -10
  413. package/node_modules/typebox/build/value/index.d.mts +0 -1
  414. package/node_modules/typebox/build/value/index.mjs +0 -1
  415. package/node_modules/typebox/build/value/repair/from_enum.mjs +2 -3
  416. package/node_modules/typebox/build/value/repair/from_type.mjs +24 -22
  417. package/node_modules/typebox/build/value/shared/union_priority_sort.d.mts +6 -2
  418. package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +62 -26
  419. package/node_modules/typebox/build/value/value.d.mts +0 -1
  420. package/node_modules/typebox/build/value/value.mjs +0 -1
  421. package/node_modules/typebox/package.json +25 -25
  422. package/node_modules/typebox/readme.md +97 -80
  423. package/node_modules/undici-types/agent.d.ts +0 -2
  424. package/node_modules/undici-types/client.d.ts +25 -19
  425. package/node_modules/undici-types/dispatcher.d.ts +7 -33
  426. package/node_modules/undici-types/dispatcher1-wrapper.d.ts +7 -0
  427. package/node_modules/undici-types/fetch.d.ts +24 -4
  428. package/node_modules/undici-types/h2c-client.d.ts +6 -6
  429. package/node_modules/undici-types/handlers.d.ts +1 -2
  430. package/node_modules/undici-types/header.d.ts +5 -0
  431. package/node_modules/undici-types/index.d.ts +3 -1
  432. package/node_modules/undici-types/interceptors.d.ts +1 -1
  433. package/node_modules/undici-types/package.json +1 -1
  434. package/node_modules/undici-types/pool.d.ts +0 -2
  435. package/node_modules/undici-types/proxy-agent.d.ts +2 -2
  436. package/node_modules/undici-types/round-robin-pool.d.ts +0 -2
  437. package/node_modules/undici-types/snapshot-agent.d.ts +4 -0
  438. package/node_modules/undici-types/socks5-proxy-agent.d.ts +2 -2
  439. package/node_modules/undici-types/webidl.d.ts +0 -1
  440. package/npm-shrinkwrap.json +55 -47
  441. package/openclaw.plugin.json +46 -0
  442. package/package.json +6 -6
  443. package/dist/accounts.runtime-CgWgzjLX.js +0 -2
  444. package/dist/action-runtime.runtime-Pwl_ixsr.js +0 -2
  445. package/dist/actions.runtime-Dl6AfO_g.js +0 -2
  446. package/dist/errors-CZtmv-h0.js +0 -107
  447. package/dist/outbound-adapter-WHn1M1t4.js +0 -191
  448. package/dist/send.runtime-a-O4PP2B.js +0 -2
  449. package/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
  450. package/node_modules/@types/ws/node_modules/@types/node/LICENSE +0 -21
  451. package/node_modules/@types/ws/node_modules/@types/node/README.md +0 -15
  452. package/node_modules/@types/ws/node_modules/@types/node/assert/strict.d.ts +0 -59
  453. package/node_modules/@types/ws/node_modules/@types/node/assert.d.ts +0 -950
  454. package/node_modules/@types/ws/node_modules/@types/node/async_hooks.d.ts +0 -711
  455. package/node_modules/@types/ws/node_modules/@types/node/buffer.buffer.d.ts +0 -466
  456. package/node_modules/@types/ws/node_modules/@types/node/buffer.d.ts +0 -1765
  457. package/node_modules/@types/ws/node_modules/@types/node/child_process.d.ts +0 -1366
  458. package/node_modules/@types/ws/node_modules/@types/node/cluster.d.ts +0 -432
  459. package/node_modules/@types/ws/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
  460. package/node_modules/@types/ws/node_modules/@types/node/console.d.ts +0 -93
  461. package/node_modules/@types/ws/node_modules/@types/node/constants.d.ts +0 -14
  462. package/node_modules/@types/ws/node_modules/@types/node/crypto.d.ts +0 -4058
  463. package/node_modules/@types/ws/node_modules/@types/node/dgram.d.ts +0 -537
  464. package/node_modules/@types/ws/node_modules/@types/node/diagnostics_channel.d.ts +0 -552
  465. package/node_modules/@types/ws/node_modules/@types/node/dns/promises.d.ts +0 -497
  466. package/node_modules/@types/ws/node_modules/@types/node/dns.d.ts +0 -876
  467. package/node_modules/@types/ws/node_modules/@types/node/domain.d.ts +0 -150
  468. package/node_modules/@types/ws/node_modules/@types/node/events.d.ts +0 -1008
  469. package/node_modules/@types/ws/node_modules/@types/node/fs/promises.d.ts +0 -1468
  470. package/node_modules/@types/ws/node_modules/@types/node/fs.d.ts +0 -4780
  471. package/node_modules/@types/ws/node_modules/@types/node/globals.d.ts +0 -150
  472. package/node_modules/@types/ws/node_modules/@types/node/globals.typedarray.d.ts +0 -101
  473. package/node_modules/@types/ws/node_modules/@types/node/http.d.ts +0 -2147
  474. package/node_modules/@types/ws/node_modules/@types/node/http2.d.ts +0 -2485
  475. package/node_modules/@types/ws/node_modules/@types/node/https.d.ts +0 -400
  476. package/node_modules/@types/ws/node_modules/@types/node/index.d.ts +0 -117
  477. package/node_modules/@types/ws/node_modules/@types/node/inspector/promises.d.ts +0 -35
  478. package/node_modules/@types/ws/node_modules/@types/node/inspector.d.ts +0 -264
  479. package/node_modules/@types/ws/node_modules/@types/node/inspector.generated.d.ts +0 -4406
  480. package/node_modules/@types/ws/node_modules/@types/node/module.d.ts +0 -755
  481. package/node_modules/@types/ws/node_modules/@types/node/net.d.ts +0 -970
  482. package/node_modules/@types/ws/node_modules/@types/node/os.d.ts +0 -498
  483. package/node_modules/@types/ws/node_modules/@types/node/package.json +0 -155
  484. package/node_modules/@types/ws/node_modules/@types/node/path/posix.d.ts +0 -8
  485. package/node_modules/@types/ws/node_modules/@types/node/path/win32.d.ts +0 -8
  486. package/node_modules/@types/ws/node_modules/@types/node/path.d.ts +0 -178
  487. package/node_modules/@types/ws/node_modules/@types/node/perf_hooks.d.ts +0 -612
  488. package/node_modules/@types/ws/node_modules/@types/node/process.d.ts +0 -2204
  489. package/node_modules/@types/ws/node_modules/@types/node/punycode.d.ts +0 -89
  490. package/node_modules/@types/ws/node_modules/@types/node/querystring.d.ts +0 -139
  491. package/node_modules/@types/ws/node_modules/@types/node/quic.d.ts +0 -897
  492. package/node_modules/@types/ws/node_modules/@types/node/readline/promises.d.ts +0 -158
  493. package/node_modules/@types/ws/node_modules/@types/node/readline.d.ts +0 -507
  494. package/node_modules/@types/ws/node_modules/@types/node/repl.d.ts +0 -420
  495. package/node_modules/@types/ws/node_modules/@types/node/sea.d.ts +0 -47
  496. package/node_modules/@types/ws/node_modules/@types/node/sqlite.d.ts +0 -1068
  497. package/node_modules/@types/ws/node_modules/@types/node/stream/consumers.d.ts +0 -114
  498. package/node_modules/@types/ws/node_modules/@types/node/stream/iter.d.ts +0 -301
  499. package/node_modules/@types/ws/node_modules/@types/node/stream/promises.d.ts +0 -211
  500. package/node_modules/@types/ws/node_modules/@types/node/stream/web.d.ts +0 -300
  501. package/node_modules/@types/ws/node_modules/@types/node/stream.d.ts +0 -1774
  502. package/node_modules/@types/ws/node_modules/@types/node/string_decoder.d.ts +0 -27
  503. package/node_modules/@types/ws/node_modules/@types/node/test/reporters.d.ts +0 -59
  504. package/node_modules/@types/ws/node_modules/@types/node/test.d.ts +0 -2279
  505. package/node_modules/@types/ws/node_modules/@types/node/timers/promises.d.ts +0 -93
  506. package/node_modules/@types/ws/node_modules/@types/node/timers.d.ts +0 -149
  507. package/node_modules/@types/ws/node_modules/@types/node/tls.d.ts +0 -1193
  508. package/node_modules/@types/ws/node_modules/@types/node/trace_events.d.ts +0 -103
  509. package/node_modules/@types/ws/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -462
  510. package/node_modules/@types/ws/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +0 -71
  511. package/node_modules/@types/ws/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -36
  512. package/node_modules/@types/ws/node_modules/@types/node/ts5.6/index.d.ts +0 -119
  513. package/node_modules/@types/ws/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +0 -72
  514. package/node_modules/@types/ws/node_modules/@types/node/ts5.7/index.d.ts +0 -119
  515. package/node_modules/@types/ws/node_modules/@types/node/tty.d.ts +0 -225
  516. package/node_modules/@types/ws/node_modules/@types/node/url.d.ts +0 -556
  517. package/node_modules/@types/ws/node_modules/@types/node/util/types.d.ts +0 -558
  518. package/node_modules/@types/ws/node_modules/@types/node/util.d.ts +0 -1677
  519. package/node_modules/@types/ws/node_modules/@types/node/v8.d.ts +0 -980
  520. package/node_modules/@types/ws/node_modules/@types/node/vm.d.ts +0 -1136
  521. package/node_modules/@types/ws/node_modules/@types/node/wasi.d.ts +0 -131
  522. package/node_modules/@types/ws/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -59
  523. package/node_modules/@types/ws/node_modules/@types/node/web-globals/blob.d.ts +0 -23
  524. package/node_modules/@types/ws/node_modules/@types/node/web-globals/console.d.ts +0 -9
  525. package/node_modules/@types/ws/node_modules/@types/node/web-globals/crypto.d.ts +0 -39
  526. package/node_modules/@types/ws/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
  527. package/node_modules/@types/ws/node_modules/@types/node/web-globals/encoding.d.ts +0 -11
  528. package/node_modules/@types/ws/node_modules/@types/node/web-globals/events.d.ts +0 -106
  529. package/node_modules/@types/ws/node_modules/@types/node/web-globals/fetch.d.ts +0 -69
  530. package/node_modules/@types/ws/node_modules/@types/node/web-globals/importmeta.d.ts +0 -13
  531. package/node_modules/@types/ws/node_modules/@types/node/web-globals/messaging.d.ts +0 -23
  532. package/node_modules/@types/ws/node_modules/@types/node/web-globals/navigator.d.ts +0 -25
  533. package/node_modules/@types/ws/node_modules/@types/node/web-globals/performance.d.ts +0 -45
  534. package/node_modules/@types/ws/node_modules/@types/node/web-globals/storage.d.ts +0 -24
  535. package/node_modules/@types/ws/node_modules/@types/node/web-globals/streams.d.ts +0 -115
  536. package/node_modules/@types/ws/node_modules/@types/node/web-globals/timers.d.ts +0 -44
  537. package/node_modules/@types/ws/node_modules/@types/node/web-globals/url.d.ts +0 -24
  538. package/node_modules/@types/ws/node_modules/@types/node/worker_threads.d.ts +0 -671
  539. package/node_modules/@types/ws/node_modules/@types/node/zlib/iter.d.ts +0 -131
  540. package/node_modules/@types/ws/node_modules/@types/node/zlib.d.ts +0 -589
  541. package/node_modules/typebox/build/schema/engine/_guard.d.mts +0 -6
  542. package/node_modules/typebox/build/schema/engine/_guard.mjs +0 -26
  543. package/node_modules/typebox/build/schema/types/_guard.d.mts +0 -10
  544. package/node_modules/typebox/build/schema/types/_guard.mjs +0 -16
  545. package/node_modules/typebox/build/type/action/_optional.d.mts +0 -19
  546. package/node_modules/typebox/build/type/action/_optional.mjs +0 -40
  547. package/node_modules/typebox/build/type/action/_readonly.d.mts +0 -19
  548. package/node_modules/typebox/build/type/action/_readonly.mjs +0 -40
  549. package/node_modules/typebox/build/type/action/awaited.d.mts +0 -15
  550. package/node_modules/typebox/build/type/action/awaited.mjs +0 -15
  551. package/node_modules/typebox/build/type/action/options.d.mts +0 -11
  552. package/node_modules/typebox/build/type/action/options.mjs +0 -11
  553. package/node_modules/typebox/build/type/engine/awaited/instantiate.d.mts +0 -11
  554. package/node_modules/typebox/build/type/engine/awaited/instantiate.mjs +0 -20
  555. package/node_modules/typebox/build/type/engine/enum/enum_to_union.d.mts +0 -14
  556. package/node_modules/typebox/build/type/engine/enum/enum_to_union.mjs +0 -24
  557. package/node_modules/typebox/build/type/engine/options/index.d.mts +0 -1
  558. package/node_modules/typebox/build/type/engine/options/index.mjs +0 -1
  559. package/node_modules/typebox/build/type/engine/options/instantiate.d.mts +0 -8
  560. package/node_modules/typebox/build/type/extends/async_iterator.d.mts +0 -7
  561. package/node_modules/typebox/build/type/extends/async_iterator.mjs +0 -9
  562. package/node_modules/typebox/build/type/extends/iterator.d.mts +0 -7
  563. package/node_modules/typebox/build/type/extends/iterator.mjs +0 -9
  564. package/node_modules/typebox/build/type/extends/promise.d.mts +0 -7
  565. package/node_modules/typebox/build/type/extends/promise.mjs +0 -9
  566. package/node_modules/typebox/build/type/types/async_iterator.d.mts +0 -20
  567. package/node_modules/typebox/build/type/types/async_iterator.mjs +0 -28
  568. package/node_modules/typebox/build/type/types/base.d.mts +0 -50
  569. package/node_modules/typebox/build/type/types/base.mjs +0 -84
  570. package/node_modules/typebox/build/type/types/iterator.d.mts +0 -20
  571. package/node_modules/typebox/build/type/types/iterator.mjs +0 -28
  572. package/node_modules/typebox/build/type/types/promise.d.mts +0 -21
  573. package/node_modules/typebox/build/type/types/promise.mjs +0 -29
  574. package/node_modules/typebox/build/value/clean/from_base.d.mts +0 -2
  575. package/node_modules/typebox/build/value/clean/from_base.mjs +0 -4
  576. package/node_modules/typebox/build/value/convert/from_base.d.mts +0 -2
  577. package/node_modules/typebox/build/value/convert/from_base.mjs +0 -4
  578. package/node_modules/typebox/build/value/create/from_async_iterator.d.mts +0 -2
  579. package/node_modules/typebox/build/value/create/from_async_iterator.mjs +0 -5
  580. package/node_modules/typebox/build/value/create/from_base.d.mts +0 -2
  581. package/node_modules/typebox/build/value/create/from_base.mjs +0 -4
  582. package/node_modules/typebox/build/value/create/from_iterator.d.mts +0 -2
  583. package/node_modules/typebox/build/value/create/from_iterator.mjs +0 -5
  584. package/node_modules/typebox/build/value/create/from_promise.d.mts +0 -2
  585. package/node_modules/typebox/build/value/create/from_promise.mjs +0 -5
  586. package/node_modules/typebox/build/value/default/from_base.d.mts +0 -2
  587. package/node_modules/typebox/build/value/default/from_base.mjs +0 -5
  588. package/node_modules/typebox/build/value/mutate/error.d.mts +0 -3
  589. package/node_modules/typebox/build/value/mutate/error.mjs +0 -6
  590. package/node_modules/typebox/build/value/mutate/from_array.d.mts +0 -2
  591. package/node_modules/typebox/build/value/mutate/from_array.mjs +0 -16
  592. package/node_modules/typebox/build/value/mutate/from_object.d.mts +0 -2
  593. package/node_modules/typebox/build/value/mutate/from_object.mjs +0 -40
  594. package/node_modules/typebox/build/value/mutate/from_unknown.d.mts +0 -2
  595. package/node_modules/typebox/build/value/mutate/from_unknown.mjs +0 -7
  596. package/node_modules/typebox/build/value/mutate/from_value.d.mts +0 -2
  597. package/node_modules/typebox/build/value/mutate/from_value.mjs +0 -12
  598. package/node_modules/typebox/build/value/mutate/index.d.mts +0 -1
  599. package/node_modules/typebox/build/value/mutate/index.mjs +0 -1
  600. package/node_modules/typebox/build/value/mutate/mutate.d.mts +0 -11
  601. package/node_modules/typebox/build/value/mutate/mutate.mjs +0 -41
  602. package/node_modules/typebox/build/value/repair/from_base.d.mts +0 -2
  603. package/node_modules/typebox/build/value/repair/from_base.mjs +0 -8
  604. /package/node_modules/typebox/build/type/engine/{awaited → with}/index.d.mts +0 -0
  605. /package/node_modules/typebox/build/type/engine/{awaited → with}/index.mjs +0 -0
@@ -1,5 +1,5 @@
1
- import { E as resolveSlackApprovalKind, L as normalizeSlackApproverId, S as isSlackAnyNativeApprovalClientEnabled, k as shouldHandleSlackNativeApprovalRequest, t as resolveSlackReplyBlocks, v as truncateSlackText } from "./reply-blocks-CfJqf7eq.js";
2
- import { t as sendMessageSlack } from "./send-Dg6U9K7_.js";
1
+ import { D as isSlackAnyNativeApprovalClientEnabled, H as normalizeSlackApproverId, P as shouldHandleSlackNativeApprovalRequest, b as truncateSlackText, j as resolveSlackApprovalKind, t as resolveSlackReplyBlocks } from "./reply-blocks-BGQ6zSqM.js";
2
+ import { r as sendMessageSlack } from "./send-DKDXoeoV.js";
3
3
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
4
4
  import { buildChannelApprovalNativeTargetKey } from "openclaw/plugin-sdk/approval-native-runtime";
5
5
  import { buildApprovalPresentationFromActionDescriptors } from "openclaw/plugin-sdk/approval-reply-runtime";
@@ -1,26 +1,26 @@
1
- import { a as resolveSlackAccount, i as resolveDefaultSlackAccountId, l as resolveSlackReplyToMode, n as listSlackAccountIds, o as resolveSlackAccountAllowFrom } from "./accounts-BPCiCe8y.js";
1
+ import { a as resolveSlackAccount, i as resolveDefaultSlackAccountId, l as resolveSlackOperationToken, n as listSlackAccountIds, o as resolveSlackAccountAllowFrom, u as resolveSlackReplyToMode } from "./accounts-BOJJiHSr.js";
2
2
  import { i as resolveSlackChannelId, n as normalizeSlackMessagingTarget, r as parseSlackTarget, t as looksLikeSlackTargetId } from "./target-parsing-3jYH8LfB.js";
3
3
  import { t as slackContextTargetsMatch } from "./targets-Dll4NJgs.js";
4
- import { A as shouldHandleSlackPluginViaForwardingSession, C as normalizeSlackForwardTarget, D as resolveSlackFallbackOriginTarget, E as resolveSlackApprovalKind, F as isSlackExecApprovalAuthorizedSender, I as isSlackExecApprovalClientEnabled, M as getSlackApprovalApprovers, N as isSlackApprovalAuthorizedSender, O as resolveTurnSourceSlackOriginTarget, P as getSlackExecApprovalApprovers, R as resolveSlackExecApprovalTarget, S as isSlackAnyNativeApprovalClientEnabled, T as resolveSessionSlackOriginTarget, _ as resolveSlackInteractiveBlockOffsets, a as SLACK_TEXT_LIMIT, g as buildSlackPresentationBlocks, h as buildSlackInteractiveBlocks, j as slackTargetsMatch, k as shouldHandleSlackNativeApprovalRequest, o as resolveSlackGroupRequireMention, s as resolveSlackGroupToolPolicy, t as resolveSlackReplyBlocks, u as normalizeAllowListLower, w as normalizeSlackOriginTarget, x as hasSlackPluginApprovers, z as shouldSuppressLocalSlackExecApprovalPrompt } from "./reply-blocks-CfJqf7eq.js";
4
+ import { A as resolveSessionSlackOriginTarget, B as isSlackExecApprovalAuthorizedSender, D as isSlackAnyNativeApprovalClientEnabled, E as hasSlackPluginApprovers, F as shouldHandleSlackPluginViaForwardingSession, I as slackTargetsMatch, L as getSlackApprovalApprovers, M as resolveSlackFallbackOriginTarget, N as resolveTurnSourceSlackOriginTarget, O as normalizeSlackForwardTarget, P as shouldHandleSlackNativeApprovalRequest, R as isSlackApprovalAuthorizedSender, U as resolveSlackExecApprovalTarget, V as isSlackExecApprovalClientEnabled, W as shouldSuppressLocalSlackExecApprovalPrompt, _ as buildSlackPresentationBlocks, a as SLACK_TEXT_LIMIT, c as formatSlackError, d as normalizeAllowListLower, g as buildSlackInteractiveBlocks, j as resolveSlackApprovalKind, k as normalizeSlackOriginTarget, o as resolveSlackGroupRequireMention, s as resolveSlackGroupToolPolicy, t as resolveSlackReplyBlocks, w as SLACK_PRESENTATION_CAPABILITIES, y as resolveSlackInteractiveBlockOffsets, z as getSlackExecApprovalApprovers } from "./reply-blocks-BGQ6zSqM.js";
5
5
  import { t as isSlackPluginAccountConfigured } from "./account-configured-DzC407uv.js";
6
6
  import { n as resolveSlackThreadTsValue, t as normalizeSlackThreadTsCandidate } from "./thread-ts-DUGhaYKq.js";
7
- import { n as extractSlackToolSend, t as describeSlackMessageTool } from "./message-tool-api--zYyTqrR.js";
8
- import { n as isSlackInteractiveRepliesEnabled, t as compileSlackInteractiveReplies } from "./interactive-replies-D-22gTp3.js";
9
- import { d as PAIRING_APPROVED_MESSAGE, m as resolveConfiguredFromRequiredCredentialStatuses, p as projectCredentialSnapshotFields, r as createSlackWebClient, u as DEFAULT_ACCOUNT_ID$1 } from "./client-DG9cyk55.js";
7
+ import { n as extractSlackToolSend, t as describeSlackMessageTool } from "./message-tool-api-BgWKyu2r.js";
8
+ import { n as isSlackInteractiveRepliesEnabled, t as compileSlackInteractiveReplies } from "./interactive-replies-CXpT-vA_.js";
9
+ import { d as PAIRING_APPROVED_MESSAGE, m as resolveConfiguredFromRequiredCredentialStatuses, p as projectCredentialSnapshotFields, r as createSlackWebClient, u as DEFAULT_ACCOUNT_ID$1 } from "./client-DGxwSL7f.js";
10
10
  import { t as getOptionalSlackRuntime } from "./runtime-BOk7xkOl.js";
11
- import { n as slackConfigAdapter, r as slackSecurityAdapter, t as createSlackPluginBase } from "./shared-iMaNxOIL.js";
12
- import { i as SLACK_CHANNEL, n as createSlackSetupWizardProxy, r as slackSetupAdapter } from "./setup-core-BCGzyZhx.js";
11
+ import { n as slackConfigAdapter, r as slackSecurityAdapter, t as createSlackPluginBase } from "./shared-CosfcFri.js";
12
+ import { i as SLACK_CHANNEL, n as createSlackSetupWizardProxy, r as slackSetupAdapter } from "./setup-core-fGd6Gquy.js";
13
13
  import { normalizeAccountId } from "openclaw/plugin-sdk/account-resolution";
14
14
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
15
15
  import { adaptScopedAccountAccessor } from "openclaw/plugin-sdk/channel-config-helpers";
16
16
  import { buildOutboundBaseSessionKey, normalizeMessageChannel } from "openclaw/plugin-sdk/routing";
17
17
  import { buildLegacyDmAccountAllowlistAdapter, createAccountScopedAllowlistNameResolver, createFlatAllowlistOverrideResolver } from "openclaw/plugin-sdk/allowlist-config-edit";
18
18
  import { buildThreadAwareOutboundSessionRoute, createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
19
- import { createChannelMessageAdapterFromOutbound, resolveOutboundSendDep } from "openclaw/plugin-sdk/channel-outbound";
19
+ import { createChannelMessageAdapterFromOutbound, createRuntimeOutboundDelegates, resolveOutboundSendDep } from "openclaw/plugin-sdk/channel-outbound";
20
20
  import { createPairingPrefixStripper } from "openclaw/plugin-sdk/channel-pairing";
21
- import { createAttachedChannelResultAdapter } from "openclaw/plugin-sdk/channel-send-result";
22
21
  import { createChannelDirectoryAdapter, createRuntimeDirectoryLiveAdapter } from "openclaw/plugin-sdk/directory-runtime";
23
22
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
23
+ import { logVerbose } from "openclaw/plugin-sdk/runtime-env";
24
24
  import { createComputedAccountStatusAdapter, createDefaultChannelRuntimeState } from "openclaw/plugin-sdk/status-helpers";
25
25
  import { sanitizeAssistantVisibleText } from "openclaw/plugin-sdk/text-chunking";
26
26
  import { isSingleUseReplyToMode } from "openclaw/plugin-sdk/reply-reference";
@@ -28,8 +28,10 @@ import { createApproverRestrictedNativeApprovalCapability } from "openclaw/plugi
28
28
  import { createLazyChannelApprovalNativeRuntimeAdapter } from "openclaw/plugin-sdk/approval-handler-adapter-runtime";
29
29
  import { createChannelNativeOriginTargetResolver, createNativeApprovalForwardingFallbackSuppressor } from "openclaw/plugin-sdk/approval-native-runtime";
30
30
  import { readBooleanParam } from "openclaw/plugin-sdk/boolean-param";
31
+ import { resolveReactionMessageId } from "openclaw/plugin-sdk/channel-actions";
31
32
  import { normalizeInteractiveReply, normalizeMessagePresentation } from "openclaw/plugin-sdk/interactive-runtime";
32
33
  import { readPositiveIntegerParam, readStringParam } from "openclaw/plugin-sdk/param-readers";
34
+ import { pruneMapToMaxSize } from "openclaw/plugin-sdk/collection-runtime";
33
35
  //#region extensions/slack/src/action-threading.ts
34
36
  function resolveSlackAutoThreadId(params) {
35
37
  const context = params.toolContext;
@@ -135,7 +137,7 @@ const baseSlackApprovalCapability = createApproverRestrictedNativeApprovalCapabi
135
137
  approvalKind: resolveSlackApprovalKind(request),
136
138
  request
137
139
  }),
138
- load: async () => (await import("./approval-handler.runtime-BqNO_HC_.js")).slackApprovalNativeRuntime
140
+ load: async () => (await import("./approval-handler.runtime-CIUbOt5T.js")).slackApprovalNativeRuntime
139
141
  })
140
142
  });
141
143
  const baseSlackNativeAdapter = baseSlackApprovalCapability.native;
@@ -227,7 +229,12 @@ async function handleSlackMessageAction(params) {
227
229
  }, cfg, ctx.toolContext);
228
230
  }
229
231
  if (action === "react") {
230
- const messageId = readStringParam(actionParams, "messageId", { required: true });
232
+ const messageIdRaw = resolveReactionMessageId({
233
+ args: actionParams,
234
+ toolContext: ctx.toolContext
235
+ });
236
+ if (messageIdRaw == null) throw new Error("messageId required. Provide messageId explicitly or react to the current inbound message.");
237
+ const messageId = String(messageIdRaw);
231
238
  const emoji = readStringParam(actionParams, "emoji", { allowEmpty: true });
232
239
  const remove = typeof actionParams.remove === "boolean" ? actionParams.remove : void 0;
233
240
  return await invoke({
@@ -352,8 +359,7 @@ async function handleSlackMessageAction(params) {
352
359
  }
353
360
  //#endregion
354
361
  //#region extensions/slack/src/channel-actions.ts
355
- let slackActionRuntimePromise$1;
356
- const SLACK_TOOL_DELIVERY_ACTIONS = new Set([
362
+ const SLACK_TOOL_DELIVERY_ACTIONS = /* @__PURE__ */ new Set([
357
363
  "deleteMessage",
358
364
  "editMessage",
359
365
  "pinMessage",
@@ -362,10 +368,7 @@ const SLACK_TOOL_DELIVERY_ACTIONS = new Set([
362
368
  "unpinMessage",
363
369
  "uploadFile"
364
370
  ]);
365
- async function loadSlackActionRuntime$1() {
366
- slackActionRuntimePromise$1 ??= import("./action-runtime.runtime-Pwl_ixsr.js");
367
- return await slackActionRuntimePromise$1;
368
- }
371
+ const loadSlackActionRuntime$1 = createLazyRuntimeModule(() => import("./action-runtime.runtime-BABj3aM-.js"));
369
372
  function resolveSlackActionContext(params) {
370
373
  if (!params.toolContext && !params.mediaLocalRoots && !params.mediaReadFile) return;
371
374
  return {
@@ -400,7 +403,21 @@ function createSlackActions(providerId, options) {
400
403
  }
401
404
  //#endregion
402
405
  //#region extensions/slack/src/channel-type.ts
406
+ const SLACK_CONVERSATION_INFO_CACHE_MAX_ENTRIES = 1024;
403
407
  const SLACK_CONVERSATION_INFO_CACHE = /* @__PURE__ */ new Map();
408
+ function getCachedSlackConversationInfo(cacheKey) {
409
+ const cached = SLACK_CONVERSATION_INFO_CACHE.get(cacheKey);
410
+ if (cached) {
411
+ SLACK_CONVERSATION_INFO_CACHE.delete(cacheKey);
412
+ SLACK_CONVERSATION_INFO_CACHE.set(cacheKey, cached);
413
+ }
414
+ return cached;
415
+ }
416
+ function setCachedSlackConversationInfo(cacheKey, conversationInfo) {
417
+ SLACK_CONVERSATION_INFO_CACHE.delete(cacheKey);
418
+ SLACK_CONVERSATION_INFO_CACHE.set(cacheKey, conversationInfo);
419
+ pruneMapToMaxSize(SLACK_CONVERSATION_INFO_CACHE, SLACK_CONVERSATION_INFO_CACHE_MAX_ENTRIES);
420
+ }
404
421
  async function resolveSlackConversationInfo(params) {
405
422
  const channelId = params.channelId.trim();
406
423
  if (!channelId) return { type: "unknown" };
@@ -409,14 +426,14 @@ async function resolveSlackConversationInfo(params) {
409
426
  accountId: params.accountId
410
427
  });
411
428
  const cacheKey = `${account.accountId}:${channelId}`;
412
- const cached = SLACK_CONVERSATION_INFO_CACHE.get(cacheKey);
429
+ const cached = getCachedSlackConversationInfo(cacheKey);
413
430
  if (cached) return cached;
414
431
  const isNativeImChannel = /^D/i.test(channelId);
415
432
  const groupChannels = normalizeAllowListLower(account.dm?.groupChannels);
416
433
  const channelIdLower = normalizeLowercaseStringOrEmpty(channelId);
417
434
  if (!isNativeImChannel && (groupChannels.includes(channelIdLower) || groupChannels.includes(`slack:${channelIdLower}`) || groupChannels.includes(`channel:${channelIdLower}`) || groupChannels.includes(`group:${channelIdLower}`) || groupChannels.includes(`mpim:${channelIdLower}`))) {
418
435
  const result = { type: "group" };
419
- SLACK_CONVERSATION_INFO_CACHE.set(cacheKey, result);
436
+ setCachedSlackConversationInfo(cacheKey, result);
420
437
  return result;
421
438
  }
422
439
  const channelKeys = Object.keys(account.channels ?? {});
@@ -425,13 +442,13 @@ async function resolveSlackConversationInfo(params) {
425
442
  return normalized === channelIdLower || normalized === `channel:${channelIdLower}` || normalized.replace(/^#/, "") === channelIdLower;
426
443
  })) {
427
444
  const result = { type: "channel" };
428
- SLACK_CONVERSATION_INFO_CACHE.set(cacheKey, result);
445
+ setCachedSlackConversationInfo(cacheKey, result);
429
446
  return result;
430
447
  }
431
448
  const token = normalizeOptionalString(account.botToken) ?? normalizeOptionalString(account.config.userToken) ?? "";
432
449
  if (!token) {
433
450
  const result = { type: isNativeImChannel ? "dm" : "unknown" };
434
- if (!isNativeImChannel) SLACK_CONVERSATION_INFO_CACHE.set(cacheKey, result);
451
+ if (!isNativeImChannel) setCachedSlackConversationInfo(cacheKey, result);
435
452
  return result;
436
453
  }
437
454
  try {
@@ -447,16 +464,16 @@ async function resolveSlackConversationInfo(params) {
447
464
  type: "dm",
448
465
  user
449
466
  } : { type: "dm" };
450
- if (user) SLACK_CONVERSATION_INFO_CACHE.set(cacheKey, result);
467
+ if (user) setCachedSlackConversationInfo(cacheKey, result);
451
468
  return result;
452
469
  }
453
470
  const channel = (await client.conversations.info({ channel: channelId })).channel;
454
471
  const result = { type: channel?.is_im ? "dm" : channel?.is_mpim ? "group" : "channel" };
455
- SLACK_CONVERSATION_INFO_CACHE.set(cacheKey, result);
472
+ setCachedSlackConversationInfo(cacheKey, result);
456
473
  return result;
457
474
  } catch {
458
475
  const result = { type: isNativeImChannel ? "dm" : "unknown" };
459
- if (!isNativeImChannel) SLACK_CONVERSATION_INFO_CACHE.set(cacheKey, result);
476
+ if (!isNativeImChannel) setCachedSlackConversationInfo(cacheKey, result);
460
477
  return result;
461
478
  }
462
479
  }
@@ -469,10 +486,11 @@ function resetSlackChannelTypeCacheForTest() {
469
486
  //#endregion
470
487
  //#region extensions/slack/src/threading-tool-context.ts
471
488
  function buildSlackThreadingToolContext(params) {
472
- const configuredReplyToMode = resolveSlackReplyToMode(resolveSlackAccount({
489
+ const account = resolveSlackAccount({
473
490
  cfg: params.cfg,
474
491
  accountId: params.accountId
475
- }), params.context.ChatType);
492
+ });
493
+ const configuredReplyToMode = params.context.ReplyToMode ?? resolveSlackReplyToMode(account, params.context.ChatType);
476
494
  const messageThreadTs = normalizeSlackThreadTsCandidate(params.context.MessageThreadId);
477
495
  const transportThreadTs = normalizeSlackThreadTsCandidate(params.context.TransportThreadId);
478
496
  const replyToThreadTs = normalizeSlackThreadTsCandidate(params.context.ReplyToId);
@@ -496,58 +514,30 @@ const EXTENSION_SHARED_MODULE_ID = "openclaw/plugin-sdk/extension-shared";
496
514
  const TARGET_RESOLVER_RUNTIME_MODULE_ID = "openclaw/plugin-sdk/target-resolver-runtime";
497
515
  const loadExtensionSharedSdk = createLazyRuntimeModule(() => import(EXTENSION_SHARED_MODULE_ID));
498
516
  const loadTargetResolverRuntimeSdk = createLazyRuntimeModule(() => import(TARGET_RESOLVER_RUNTIME_MODULE_ID));
499
- const loadSlackSetupSurfaceModule = createLazyRuntimeModule(() => import("./setup-surface-D7xdZLxB.js"));
500
- const loadSlackScopesModule = createLazyRuntimeModule(() => import("./scopes-BdVdJxFf.js"));
501
- const loadSlackOutboundAdapterModule = createLazyRuntimeModule(() => import("./outbound-adapter-WHn1M1t4.js"));
517
+ const loadSlackSetupSurfaceModule = createLazyRuntimeModule(() => import("./setup-surface-Dv2fIJNB.js"));
518
+ const loadSlackScopesModule = createLazyRuntimeModule(() => import("./scopes-DCWVD5-8.js"));
519
+ const loadSlackOutboundAdapterModule = createLazyRuntimeModule(() => import("./outbound-adapter-DVoBfBW5.js"));
502
520
  async function resolveSlackHandleAction() {
503
521
  return getOptionalSlackRuntime()?.channel?.slack?.handleSlackAction ?? (await loadSlackActionRuntime()).handleSlackAction;
504
522
  }
505
523
  function shouldTreatSlackDeliveredTextAsVisible(params) {
506
524
  return params.kind === "block" && typeof params.text === "string" && params.text.trim().length > 0;
507
525
  }
508
- function getTokenForOperation(account, operation) {
509
- const userToken = normalizeOptionalString(account.userToken);
510
- const botToken = normalizeOptionalString(account.botToken);
511
- const allowUserWrites = account.config.userTokenReadOnly === false;
512
- if (operation === "read") return userToken ?? botToken;
513
- if (!allowUserWrites) return botToken;
514
- return botToken ?? userToken;
515
- }
516
- let slackActionRuntimePromise;
517
- let slackSendRuntimePromise;
518
- let slackProbeModulePromise;
519
- let slackMonitorModulePromise;
520
- let slackDirectoryLiveModulePromise;
521
- const loadSlackDirectoryConfigModule = createLazyRuntimeModule(() => import("./directory-config-DDVHDmrN.js").then((n) => n.t));
522
- const loadSlackResolveChannelsModule = createLazyRuntimeModule(() => import("./resolve-channels-eniB45fy.js").then((n) => n.n));
523
- const loadSlackResolveUsersModule = createLazyRuntimeModule(() => import("./resolve-users-DDKzl37a.js").then((n) => n.n));
524
- async function loadSlackActionRuntime() {
525
- slackActionRuntimePromise ??= import("./action-runtime.runtime-Pwl_ixsr.js");
526
- return await slackActionRuntimePromise;
527
- }
528
- async function loadSlackSendRuntime() {
529
- slackSendRuntimePromise ??= import("./send.runtime-a-O4PP2B.js");
530
- return await slackSendRuntimePromise;
531
- }
532
- async function loadSlackProbeModule() {
533
- slackProbeModulePromise ??= import("./probe-DFKt9Ute.js").then((n) => n.n);
534
- return await slackProbeModulePromise;
535
- }
536
- async function loadSlackMonitorModule() {
537
- slackMonitorModulePromise ??= import("./monitor-Cf50drfK.js").then((n) => n.t);
538
- return await slackMonitorModulePromise;
539
- }
540
- async function loadSlackDirectoryLiveModule() {
541
- slackDirectoryLiveModulePromise ??= import("./directory-live-DC-YA5SQ.js").then((n) => n.t);
542
- return await slackDirectoryLiveModulePromise;
543
- }
526
+ const loadSlackDirectoryConfigModule = createLazyRuntimeModule(() => import("./directory-config-BZuS8141.js").then((n) => n.t));
527
+ const loadSlackResolveChannelsModule = createLazyRuntimeModule(() => import("./resolve-channels-CstkChBE.js").then((n) => n.n));
528
+ const loadSlackResolveUsersModule = createLazyRuntimeModule(() => import("./resolve-users-C3NP2c-Q.js").then((n) => n.n));
529
+ const loadSlackActionRuntime = createLazyRuntimeModule(() => import("./action-runtime.runtime-BABj3aM-.js"));
530
+ const loadSlackSendRuntime = createLazyRuntimeModule(() => import("./send.runtime-GPRa63l1.js"));
531
+ const loadSlackProbeModule = createLazyRuntimeModule(() => import("./probe-CuwRDE5j.js").then((n) => n.n));
532
+ const loadSlackMonitorModule = createLazyRuntimeModule(() => import("./monitor-D6Km2CFH.js").then((n) => n.t));
533
+ const loadSlackDirectoryLiveModule = createLazyRuntimeModule(() => import("./directory-live-BNsxCgqP.js").then((n) => n.t));
544
534
  async function resolveSlackSendContext(params) {
545
535
  const send = resolveOutboundSendDep(params.deps, "slack") ?? (await loadSlackSendRuntime()).sendMessageSlack;
546
536
  const account = resolveSlackAccount({
547
537
  cfg: params.cfg,
548
538
  accountId: params.accountId
549
539
  });
550
- const token = getTokenForOperation(account, "write");
540
+ const token = resolveSlackOperationToken(account, "write");
551
541
  const botToken = account.botToken?.trim();
552
542
  const tokenOverride = token && token !== botToken ? token : void 0;
553
543
  return {
@@ -556,6 +546,45 @@ async function resolveSlackSendContext(params) {
556
546
  tokenOverride
557
547
  };
558
548
  }
549
+ async function setSlackHeartbeatThreadStatus(params) {
550
+ const threadTs = resolveSlackThreadTsValue({ threadId: params.threadId });
551
+ const target = parseSlackTarget(params.to, { defaultKind: "channel" });
552
+ if (!threadTs || !target) return;
553
+ const account = resolveSlackAccount({
554
+ cfg: params.cfg,
555
+ accountId: params.accountId
556
+ });
557
+ const botToken = normalizeOptionalString(account.botToken);
558
+ if (!botToken) return;
559
+ try {
560
+ const client = createSlackWebClient(botToken);
561
+ const channelId = target.kind === "channel" ? target.id : await (await loadSlackSendRuntime()).resolveSlackDmChannelId({
562
+ client,
563
+ userId: target.id,
564
+ accountId: account.accountId,
565
+ token: botToken
566
+ });
567
+ await client.assistant.threads.setStatus({
568
+ token: botToken,
569
+ channel_id: channelId,
570
+ thread_ts: threadTs,
571
+ status: params.status
572
+ });
573
+ } catch (error) {
574
+ logVerbose(`slack heartbeat status update failed: ${formatSlackError(error)}`);
575
+ }
576
+ }
577
+ function withSlackSendOverride(params) {
578
+ return {
579
+ ...params.deps,
580
+ slack: async (to, text, opts) => await params.send(to, text, {
581
+ ...opts,
582
+ ...params.tokenOverride ? { token: params.tokenOverride } : {},
583
+ ...params.deliveryQueueId ? { deliveryQueueId: params.deliveryQueueId } : {},
584
+ ...params.onPlatformSendDispatch ? { onPlatformSendDispatch: params.onPlatformSendDispatch } : {}
585
+ })
586
+ };
587
+ }
559
588
  function resolveSlackRouteTarget(raw) {
560
589
  const target = parseSlackTarget(raw, { defaultKind: "channel" });
561
590
  if (!target) return null;
@@ -601,6 +630,7 @@ async function resolveSlackOutboundSessionRoute(params) {
601
630
  const isDm = parsed.kind === "user";
602
631
  let peerKind = isDm ? "direct" : "channel";
603
632
  let peerId = parsed.id;
633
+ let recipientSessionExact = isDm ? /^[UW][A-Z0-9]{8,}$/i.test(parsed.id) : /^C[A-Z0-9]{8,}$/i.test(parsed.id);
604
634
  if (!isDm && /^D/i.test(parsed.id)) {
605
635
  const conversation = await resolveSlackConversationInfo({
606
636
  cfg: params.cfg,
@@ -610,6 +640,7 @@ async function resolveSlackOutboundSessionRoute(params) {
610
640
  if (conversation.type !== "dm" || !conversation.user) return null;
611
641
  peerKind = "direct";
612
642
  peerId = conversation.user;
643
+ recipientSessionExact = true;
613
644
  } else if (!isDm && /^G/i.test(parsed.id)) {
614
645
  const channelType = await resolveSlackChannelType({
615
646
  cfg: params.cfg,
@@ -618,6 +649,7 @@ async function resolveSlackOutboundSessionRoute(params) {
618
649
  });
619
650
  if (channelType === "group") peerKind = "group";
620
651
  if (channelType === "dm") peerKind = "direct";
652
+ recipientSessionExact = channelType !== "unknown";
621
653
  }
622
654
  const peer = {
623
655
  kind: peerKind,
@@ -633,6 +665,7 @@ async function resolveSlackOutboundSessionRoute(params) {
633
665
  route: {
634
666
  sessionKey: baseSessionKey,
635
667
  baseSessionKey,
668
+ recipientSessionExact,
636
669
  peer,
637
670
  chatType: peerKind === "direct" ? "direct" : "channel",
638
671
  from: peerKind === "direct" ? `slack:${peerId}` : peerKind === "group" ? `slack:group:${peerId}` : `slack:channel:${peerId}`,
@@ -692,6 +725,14 @@ const slackChannelOutbound = {
692
725
  accountId,
693
726
  payload
694
727
  }),
728
+ presentationCapabilities: SLACK_PRESENTATION_CAPABILITIES,
729
+ ...createRuntimeOutboundDelegates({
730
+ getRuntime: loadSlackOutboundAdapterModule,
731
+ renderPresentation: {
732
+ resolve: ({ slackOutbound }) => slackOutbound.renderPresentation,
733
+ unavailableMessage: "Slack outbound presentation rendering is unavailable"
734
+ }
735
+ }),
695
736
  sendPayload: async (ctx) => {
696
737
  const { send, threadTsValue, tokenOverride } = await resolveSlackSendContext({
697
738
  cfg: ctx.cfg,
@@ -705,52 +746,63 @@ const slackChannelOutbound = {
705
746
  ...ctx,
706
747
  replyToId: threadTsValue,
707
748
  threadId: null,
708
- deps: {
709
- ...ctx.deps,
710
- slack: async (to, text, opts) => await send(to, text, {
711
- ...opts,
712
- ...tokenOverride ? { token: tokenOverride } : {}
713
- })
714
- }
749
+ deliveryQueueId: void 0,
750
+ onPlatformSendDispatch: void 0,
751
+ deps: withSlackSendOverride({
752
+ deps: ctx.deps,
753
+ send,
754
+ tokenOverride
755
+ })
715
756
  });
716
757
  },
717
- ...createAttachedChannelResultAdapter({
718
- channel: "slack",
719
- sendText: async ({ to, text, accountId, deps, replyToId, threadId, cfg }) => {
720
- const { send, threadTsValue, tokenOverride } = await resolveSlackSendContext({
721
- cfg,
722
- accountId: accountId ?? void 0,
723
- deps,
724
- replyToId,
725
- threadId
726
- });
727
- return await send(to, text, {
728
- cfg,
729
- threadTs: threadTsValue,
730
- accountId: accountId ?? void 0,
731
- ...tokenOverride ? { token: tokenOverride } : {}
732
- });
733
- },
734
- sendMedia: async ({ to, text, mediaUrl, mediaLocalRoots, accountId, deps, replyToId, threadId, cfg }) => {
735
- const { send, threadTsValue, tokenOverride } = await resolveSlackSendContext({
736
- cfg,
737
- accountId: accountId ?? void 0,
738
- deps,
739
- replyToId,
740
- threadId
741
- });
742
- return await send(to, text, {
743
- cfg,
744
- mediaUrl,
745
- mediaLocalRoots,
746
- threadTs: threadTsValue,
747
- accountId: accountId ?? void 0,
748
- ...tokenOverride ? { token: tokenOverride } : {}
749
- });
750
- }
751
- })
758
+ sendText: async (ctx) => {
759
+ const { send, threadTsValue, tokenOverride } = await resolveSlackSendContext({
760
+ cfg: ctx.cfg,
761
+ accountId: ctx.accountId ?? void 0,
762
+ deps: ctx.deps,
763
+ replyToId: ctx.replyToId,
764
+ threadId: ctx.threadId
765
+ });
766
+ const { slackOutbound } = await loadSlackOutboundAdapterModule();
767
+ return await slackOutbound.sendText({
768
+ ...ctx,
769
+ replyToId: threadTsValue,
770
+ threadId: null,
771
+ deliveryQueueId: void 0,
772
+ onPlatformSendDispatch: void 0,
773
+ deps: withSlackSendOverride({
774
+ deps: ctx.deps,
775
+ send,
776
+ tokenOverride,
777
+ deliveryQueueId: ctx.deliveryQueueId,
778
+ onPlatformSendDispatch: ctx.onPlatformSendDispatch
779
+ })
780
+ });
781
+ },
782
+ sendMedia: async (ctx) => {
783
+ const { send, threadTsValue, tokenOverride } = await resolveSlackSendContext({
784
+ cfg: ctx.cfg,
785
+ accountId: ctx.accountId ?? void 0,
786
+ deps: ctx.deps,
787
+ replyToId: ctx.replyToId,
788
+ threadId: ctx.threadId
789
+ });
790
+ const { slackOutbound } = await loadSlackOutboundAdapterModule();
791
+ return await slackOutbound.sendMedia({
792
+ ...ctx,
793
+ replyToId: threadTsValue,
794
+ threadId: null,
795
+ deliveryQueueId: void 0,
796
+ onPlatformSendDispatch: void 0,
797
+ deps: withSlackSendOverride({
798
+ deps: ctx.deps,
799
+ send,
800
+ tokenOverride
801
+ })
802
+ });
803
+ }
752
804
  };
753
- const slackMessageAdapter = createChannelMessageAdapterFromOutbound({
805
+ const slackMessageAdapterBase = createChannelMessageAdapterFromOutbound({
754
806
  id: "slack",
755
807
  outbound: slackChannelOutbound,
756
808
  live: {
@@ -767,6 +819,17 @@ const slackMessageAdapter = createChannelMessageAdapterFromOutbound({
767
819
  } }
768
820
  }
769
821
  });
822
+ const slackMessageAdapter = {
823
+ ...slackMessageAdapterBase,
824
+ durableFinal: {
825
+ capabilities: {
826
+ ...slackMessageAdapterBase.durableFinal?.capabilities,
827
+ reconcileUnknownSend: true
828
+ },
829
+ reconcileUnknownSendKinds: { text: true },
830
+ reconcileUnknownSend: async (ctx) => await (await loadSlackSendRuntime()).reconcileSlackUnknownSend(ctx)
831
+ }
832
+ };
770
833
  const slackPlugin = createChatChannelPlugin({
771
834
  base: {
772
835
  ...createSlackPluginBase({
@@ -893,6 +956,26 @@ const slackPlugin = createChatChannelPlugin({
893
956
  } },
894
957
  actions: createSlackActions(SLACK_CHANNEL, { invoke: async (action, cfg, toolContext) => await (await resolveSlackHandleAction())(action, cfg, toolContext) }),
895
958
  message: slackMessageAdapter,
959
+ heartbeat: {
960
+ sendTyping: async ({ cfg, to, accountId, threadId }) => {
961
+ await setSlackHeartbeatThreadStatus({
962
+ cfg,
963
+ to,
964
+ accountId,
965
+ threadId,
966
+ status: "is typing..."
967
+ });
968
+ },
969
+ clearTyping: async ({ cfg, to, accountId, threadId }) => {
970
+ await setSlackHeartbeatThreadStatus({
971
+ cfg,
972
+ to,
973
+ accountId,
974
+ threadId,
975
+ status: ""
976
+ });
977
+ }
978
+ },
896
979
  status: createComputedAccountStatusAdapter({
897
980
  defaultRuntime: createDefaultChannelRuntimeState(DEFAULT_ACCOUNT_ID$1),
898
981
  buildChannelSummary: async ({ snapshot }) => {
@@ -908,11 +991,15 @@ const slackPlugin = createChatChannelPlugin({
908
991
  ok: false,
909
992
  error: "missing token"
910
993
  };
911
- return await (await loadSlackProbeModule()).probeSlack(token, timeoutMs);
994
+ return await (await loadSlackProbeModule()).probeSlack(token, timeoutMs, { accountId: account.accountId });
912
995
  },
913
996
  formatCapabilitiesProbe: ({ probe }) => {
914
997
  const slackProbe = probe;
915
998
  const lines = [];
999
+ if (slackProbe?.warning) lines.push({
1000
+ text: `Warning: ${slackProbe.warning}`,
1001
+ tone: "warn"
1002
+ });
916
1003
  if (slackProbe?.bot?.name) lines.push({ text: `Bot: @${slackProbe.bot.name}` });
917
1004
  if (slackProbe?.team?.name || slackProbe?.team?.id) {
918
1005
  const id = slackProbe.team?.id ? ` (${slackProbe.team.id})` : "";
@@ -991,7 +1078,7 @@ const slackPlugin = createChatChannelPlugin({
991
1078
  accountId: resolveDefaultSlackAccountId(cfg)
992
1079
  });
993
1080
  const { sendMessageSlack } = await loadSlackSendRuntime();
994
- const token = getTokenForOperation(account, "write");
1081
+ const token = resolveSlackOperationToken(account, "write");
995
1082
  await sendMessageSlack(`user:${id}`, message, {
996
1083
  cfg,
997
1084
  accountId: account.accountId,
@@ -1,2 +1,2 @@
1
- import { t as slackPlugin } from "./channel-DjNY4ik7.js";
1
+ import { t as slackPlugin } from "./channel-CG29WLVd.js";
2
2
  export { slackPlugin };
@@ -1,10 +1,10 @@
1
- import { a as resolveSlackAccount, c as resolveSlackConfigAccessorAccount, i as resolveDefaultSlackAccountId, n as listSlackAccountIds } from "./accounts-BPCiCe8y.js";
2
- import { a as describeSlackSetupAccount, i as SLACK_CHANNEL, n as createSlackSetupWizardProxy, o as isSlackSetupAccountConfigured, r as slackSetupAdapter } from "./setup-core-BCGzyZhx.js";
1
+ import { a as resolveSlackAccount, c as resolveSlackConfigAccessorAccount, i as resolveDefaultSlackAccountId, n as listSlackAccountIds } from "./accounts-BOJJiHSr.js";
2
+ import { a as describeSlackSetupAccount, i as SLACK_CHANNEL, n as createSlackSetupWizardProxy, o as isSlackSetupAccountConfigured, r as slackSetupAdapter } from "./setup-core-fGd6Gquy.js";
3
3
  import { t as SlackChannelConfigSchema } from "./config-schema-BzqzFW__.js";
4
4
  import { adaptScopedAccountAccessor, createScopedChannelConfigAdapter } from "openclaw/plugin-sdk/channel-config-helpers";
5
5
  import { formatAllowFromLowercase } from "openclaw/plugin-sdk/allow-from";
6
6
  //#region extensions/slack/src/channel.setup.ts
7
- const slackSetupWizard = createSlackSetupWizardProxy(async () => ({ slackSetupWizard: (await import("./setup-surface-D7xdZLxB.js")).slackSetupWizard }));
7
+ const slackSetupWizard = createSlackSetupWizardProxy(async () => ({ slackSetupWizard: (await import("./setup-surface-Dv2fIJNB.js")).slackSetupWizard }));
8
8
  const slackSetupConfigAdapter = createScopedChannelConfigAdapter({
9
9
  sectionKey: SLACK_CHANNEL,
10
10
  listAccountIds: listSlackAccountIds,
@@ -73,7 +73,6 @@ function resolveSlackWriteClientOptions(options = {}) {
73
73
  const resolved = Object.assign({}, options);
74
74
  applySlackApiUrlAndProxyOptions(resolved);
75
75
  resolved.retryConfig ??= SLACK_WRITE_RETRY_OPTIONS;
76
- resolved.maxRequestConcurrency ??= 1;
77
76
  return resolved;
78
77
  }
79
78
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
2
- import { i as resolveDefaultSlackAccountId, o as resolveSlackAccountAllowFrom, r as mergeSlackAccountConfig } from "./accounts-BPCiCe8y.js";
2
+ import { i as resolveDefaultSlackAccountId, o as resolveSlackAccountAllowFrom, r as mergeSlackAccountConfig } from "./accounts-BOJJiHSr.js";
3
3
  import { r as parseSlackTarget } from "./target-parsing-3jYH8LfB.js";
4
4
  import "./targets-Dll4NJgs.js";
5
5
  import { normalizeAccountId } from "openclaw/plugin-sdk/account-resolution";
@@ -1,2 +1,2 @@
1
- import { n as listSlackDirectoryGroupsFromConfig, r as listSlackDirectoryPeersFromConfig } from "./directory-config-DDVHDmrN.js";
1
+ import { n as listSlackDirectoryGroupsFromConfig, r as listSlackDirectoryPeersFromConfig } from "./directory-config-BZuS8141.js";
2
2
  export { listSlackDirectoryGroupsFromConfig, listSlackDirectoryPeersFromConfig };
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
2
- import { a as resolveSlackAccount } from "./accounts-BPCiCe8y.js";
3
- import { r as createSlackWebClient } from "./client-DG9cyk55.js";
2
+ import { a as resolveSlackAccount } from "./accounts-BOJJiHSr.js";
3
+ import { r as createSlackWebClient } from "./client-DGxwSL7f.js";
4
4
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
5
5
  //#region extensions/slack/src/directory-live.ts
6
6
  var directory_live_exports = /* @__PURE__ */ __exportAll({