@openclaw/zalouser 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 (401) hide show
  1. package/dist/{accounts.runtime-BOwtZOBd.js → accounts.runtime-BK4FKoae.js} +1 -1
  2. package/dist/{api-WQJ1sj8X.js → api-Ckk_hPfU.js} +15 -23
  3. package/dist/api.js +5 -5
  4. package/dist/{channel-BFn5MZCm.js → channel-C0ARGeer.js} +47 -18
  5. package/dist/channel-plugin-api.js +1 -1
  6. package/dist/{channel.runtime-CmquHp26.js → channel.runtime-DYblgvY5.js} +2 -2
  7. package/dist/{channel.setup-BsYmobJ6.js → channel.setup-Ba0dtXCS.js} +2 -2
  8. package/dist/{monitor-DxOj93Pa.js → monitor-D3DfqQDG.js} +3 -3
  9. package/dist/runtime-api.js +5 -5
  10. package/dist/{send-_7W21n-G.js → send-D1GpX8wV.js} +10 -8
  11. package/dist/setup-plugin-api.js +1 -1
  12. package/dist/{setup-surface-C8VXOMBu.js → setup-surface-BsD-g2tO.js} +2 -2
  13. package/dist/{shared-xBuXIOwv.js → shared-CqSIPdjp.js} +2 -5
  14. package/dist/{zalo-js-C2Eq5K4i.js → zalo-js-CygJB5qD.js} +12 -11
  15. package/node_modules/pako/README.md +9 -31
  16. package/node_modules/pako/dist/pako.es5.js +149 -77
  17. package/node_modules/pako/dist/pako.es5.min.js +2 -2
  18. package/node_modules/pako/dist/pako.esm.mjs +146 -78
  19. package/node_modules/pako/dist/pako.js +146 -78
  20. package/node_modules/pako/dist/pako.min.js +2 -2
  21. package/node_modules/pako/dist/pako_deflate.es5.js +85 -56
  22. package/node_modules/pako/dist/pako_deflate.es5.min.js +2 -2
  23. package/node_modules/pako/dist/pako_deflate.js +83 -55
  24. package/node_modules/pako/dist/pako_deflate.min.js +2 -2
  25. package/node_modules/pako/dist/pako_inflate.es5.js +62 -19
  26. package/node_modules/pako/dist/pako_inflate.es5.min.js +2 -2
  27. package/node_modules/pako/dist/pako_inflate.js +61 -21
  28. package/node_modules/pako/dist/pako_inflate.min.js +2 -2
  29. package/node_modules/pako/lib/deflate.js +16 -9
  30. package/node_modules/pako/lib/inflate.js +51 -14
  31. package/node_modules/pako/lib/utils/strings.js +1 -1
  32. package/node_modules/pako/lib/zlib/README +1 -1
  33. package/node_modules/pako/lib/zlib/deflate.js +65 -44
  34. package/node_modules/pako/lib/zlib/inflate.js +5 -2
  35. package/node_modules/pako/lib/zlib/inftrees.js +1 -1
  36. package/node_modules/pako/package.json +14 -5
  37. package/node_modules/semver/classes/range.js +6 -2
  38. package/node_modules/semver/package.json +1 -1
  39. package/node_modules/typebox/build/compile/validator.d.mts +2 -7
  40. package/node_modules/typebox/build/compile/validator.mjs +6 -36
  41. package/node_modules/typebox/build/error/errors.d.mts +1 -7
  42. package/node_modules/typebox/build/format/_idna.mjs +36 -6
  43. package/node_modules/typebox/build/format/_puny.mjs +4 -1
  44. package/node_modules/typebox/build/format/uuid.d.mts +2 -2
  45. package/node_modules/typebox/build/format/uuid.mjs +3 -3
  46. package/node_modules/typebox/build/guard/emit.d.mts +0 -4
  47. package/node_modules/typebox/build/guard/emit.mjs +0 -8
  48. package/node_modules/typebox/build/guard/guard.d.mts +4 -8
  49. package/node_modules/typebox/build/guard/guard.mjs +5 -13
  50. package/node_modules/typebox/build/schema/engine/boolean.d.mts +3 -3
  51. package/node_modules/typebox/build/schema/engine/boolean.mjs +4 -4
  52. package/node_modules/typebox/build/schema/engine/index.d.mts +0 -1
  53. package/node_modules/typebox/build/schema/engine/index.mjs +0 -1
  54. package/node_modules/typebox/build/schema/engine/schema.mjs +5 -10
  55. package/node_modules/typebox/build/schema/engine/type.mjs +14 -18
  56. package/node_modules/typebox/build/schema/types/dependencies.mjs +1 -1
  57. package/node_modules/typebox/build/schema/types/index.d.mts +0 -1
  58. package/node_modules/typebox/build/schema/types/index.mjs +0 -1
  59. package/node_modules/typebox/build/schema/types/schema.d.mts +1 -1
  60. package/node_modules/typebox/build/schema/types/schema.mjs +2 -2
  61. package/node_modules/typebox/build/system/locale/ar_001.mjs +0 -1
  62. package/node_modules/typebox/build/system/locale/bn_BD.mjs +0 -1
  63. package/node_modules/typebox/build/system/locale/cs_CZ.mjs +0 -1
  64. package/node_modules/typebox/build/system/locale/de_DE.mjs +0 -1
  65. package/node_modules/typebox/build/system/locale/el_GR.mjs +0 -1
  66. package/node_modules/typebox/build/system/locale/en_US.mjs +0 -1
  67. package/node_modules/typebox/build/system/locale/es_419.mjs +0 -1
  68. package/node_modules/typebox/build/system/locale/es_AR.mjs +0 -1
  69. package/node_modules/typebox/build/system/locale/es_ES.mjs +0 -1
  70. package/node_modules/typebox/build/system/locale/es_MX.mjs +0 -1
  71. package/node_modules/typebox/build/system/locale/fa_IR.mjs +0 -1
  72. package/node_modules/typebox/build/system/locale/fil_PH.mjs +0 -1
  73. package/node_modules/typebox/build/system/locale/fr_CA.mjs +0 -1
  74. package/node_modules/typebox/build/system/locale/fr_FR.mjs +0 -1
  75. package/node_modules/typebox/build/system/locale/ha_NG.mjs +0 -1
  76. package/node_modules/typebox/build/system/locale/hi_IN.mjs +0 -1
  77. package/node_modules/typebox/build/system/locale/hu_HU.mjs +0 -1
  78. package/node_modules/typebox/build/system/locale/id_ID.mjs +0 -1
  79. package/node_modules/typebox/build/system/locale/it_IT.mjs +0 -1
  80. package/node_modules/typebox/build/system/locale/ja_JP.mjs +0 -1
  81. package/node_modules/typebox/build/system/locale/ko_KR.mjs +0 -1
  82. package/node_modules/typebox/build/system/locale/ms_MY.mjs +0 -1
  83. package/node_modules/typebox/build/system/locale/nl_NL.mjs +0 -1
  84. package/node_modules/typebox/build/system/locale/pl_PL.mjs +0 -1
  85. package/node_modules/typebox/build/system/locale/pt_BR.mjs +0 -1
  86. package/node_modules/typebox/build/system/locale/pt_PT.mjs +0 -1
  87. package/node_modules/typebox/build/system/locale/ro_RO.mjs +0 -1
  88. package/node_modules/typebox/build/system/locale/ru_RU.mjs +0 -1
  89. package/node_modules/typebox/build/system/locale/sv_SE.mjs +0 -1
  90. package/node_modules/typebox/build/system/locale/sw_TZ.mjs +0 -1
  91. package/node_modules/typebox/build/system/locale/th_TH.mjs +0 -1
  92. package/node_modules/typebox/build/system/locale/tr_TR.mjs +0 -1
  93. package/node_modules/typebox/build/system/locale/uk_UA.mjs +0 -1
  94. package/node_modules/typebox/build/system/locale/ur_PK.mjs +0 -1
  95. package/node_modules/typebox/build/system/locale/vi_VN.mjs +0 -1
  96. package/node_modules/typebox/build/system/locale/yo_NG.mjs +0 -1
  97. package/node_modules/typebox/build/system/locale/zh_Hans.mjs +0 -1
  98. package/node_modules/typebox/build/system/locale/zh_Hant.mjs +0 -1
  99. package/node_modules/typebox/build/system/memory/clone.d.mts +2 -3
  100. package/node_modules/typebox/build/system/memory/clone.mjs +73 -26
  101. package/node_modules/typebox/build/system/settings/settings.d.mts +15 -0
  102. package/node_modules/typebox/build/system/settings/settings.mjs +3 -1
  103. package/node_modules/typebox/build/type/action/_add_immutable.d.mts +11 -0
  104. package/node_modules/typebox/build/type/action/_add_immutable.mjs +11 -0
  105. package/node_modules/typebox/build/type/action/_add_optional.d.mts +11 -0
  106. package/node_modules/typebox/build/type/action/_add_optional.mjs +11 -0
  107. package/node_modules/typebox/build/type/action/_add_readonly.d.mts +11 -0
  108. package/node_modules/typebox/build/type/action/_add_readonly.mjs +11 -0
  109. package/node_modules/typebox/build/type/action/_remove_immutable.d.mts +11 -0
  110. package/node_modules/typebox/build/type/action/_remove_immutable.mjs +11 -0
  111. package/node_modules/typebox/build/type/action/_remove_optional.d.mts +11 -0
  112. package/node_modules/typebox/build/type/action/_remove_optional.mjs +11 -0
  113. package/node_modules/typebox/build/type/action/_remove_readonly.d.mts +11 -0
  114. package/node_modules/typebox/build/type/action/_remove_readonly.mjs +11 -0
  115. package/node_modules/typebox/build/type/action/conditional.d.mts +2 -3
  116. package/node_modules/typebox/build/type/action/conditional.mjs +2 -1
  117. package/node_modules/typebox/build/type/action/index.d.mts +7 -4
  118. package/node_modules/typebox/build/type/action/index.mjs +7 -4
  119. package/node_modules/typebox/build/type/action/mapped.d.mts +2 -3
  120. package/node_modules/typebox/build/type/action/mapped.mjs +2 -1
  121. package/node_modules/typebox/build/type/action/module.d.mts +8 -7
  122. package/node_modules/typebox/build/type/action/module.mjs +7 -6
  123. package/node_modules/typebox/build/type/action/readonly_object.d.mts +0 -5
  124. package/node_modules/typebox/build/type/action/readonly_object.mjs +0 -5
  125. package/node_modules/typebox/build/type/action/with.d.mts +11 -0
  126. package/node_modules/typebox/build/type/action/with.mjs +11 -0
  127. package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +1 -1
  128. package/node_modules/typebox/build/type/engine/call/instantiate.d.mts +1 -3
  129. package/node_modules/typebox/build/type/engine/call/instantiate.mjs +3 -2
  130. package/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +2 -2
  131. package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.d.mts +3 -4
  132. package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +2 -1
  133. package/node_modules/typebox/build/type/engine/cyclic/candidates.d.mts +2 -3
  134. package/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +3 -6
  135. package/node_modules/typebox/build/type/engine/cyclic/check.d.mts +6 -9
  136. package/node_modules/typebox/build/type/engine/cyclic/check.mjs +10 -16
  137. package/node_modules/typebox/build/type/engine/cyclic/dependencies.d.mts +1 -4
  138. package/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +9 -15
  139. package/node_modules/typebox/build/type/engine/cyclic/extends.d.mts +1 -4
  140. package/node_modules/typebox/build/type/engine/cyclic/extends.mjs +8 -14
  141. package/node_modules/typebox/build/type/engine/cyclic/instantiate.d.mts +2 -5
  142. package/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +3 -2
  143. package/node_modules/typebox/build/type/engine/enum/index.d.mts +0 -1
  144. package/node_modules/typebox/build/type/engine/enum/index.mjs +0 -1
  145. package/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts +1 -2
  146. package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +2 -6
  147. package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +10 -6
  148. package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +10 -6
  149. package/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts +2 -1
  150. package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +3 -3
  151. package/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts +17 -5
  152. package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +34 -8
  153. package/node_modules/typebox/build/type/engine/exclude/operation.d.mts +5 -6
  154. package/node_modules/typebox/build/type/engine/exclude/operation.mjs +11 -12
  155. package/node_modules/typebox/build/type/engine/extract/operation.d.mts +5 -6
  156. package/node_modules/typebox/build/type/engine/extract/operation.mjs +11 -12
  157. package/node_modules/typebox/build/type/engine/immutable/instantiate_add.d.mts +10 -0
  158. package/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +14 -0
  159. package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.d.mts +10 -0
  160. package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs +14 -0
  161. package/node_modules/typebox/build/type/engine/index.d.mts +2 -2
  162. package/node_modules/typebox/build/type/engine/index.mjs +2 -2
  163. package/node_modules/typebox/build/type/engine/indexable/from_dependent.d.mts +5 -0
  164. package/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs +8 -0
  165. package/node_modules/typebox/build/type/engine/indexable/from_enum.d.mts +3 -3
  166. package/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +4 -4
  167. package/node_modules/typebox/build/type/engine/indexable/from_template_literal.d.mts +2 -2
  168. package/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +3 -3
  169. package/node_modules/typebox/build/type/engine/indexable/from_type.d.mts +3 -1
  170. package/node_modules/typebox/build/type/engine/indexable/from_type.mjs +9 -6
  171. package/node_modules/typebox/build/type/engine/indexed/instantiate.d.mts +2 -1
  172. package/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +5 -2
  173. package/node_modules/typebox/build/type/engine/instantiate.d.mts +44 -31
  174. package/node_modules/typebox/build/type/engine/instantiate.mjs +82 -83
  175. package/node_modules/typebox/build/type/engine/interface/instantiate.d.mts +3 -6
  176. package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.d.mts +2 -2
  177. package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +3 -3
  178. package/node_modules/typebox/build/type/engine/keyof/instantiate.d.mts +2 -1
  179. package/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +5 -1
  180. package/node_modules/typebox/build/type/engine/mapped/mapped_operation.d.mts +4 -4
  181. package/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +3 -3
  182. package/node_modules/typebox/build/type/engine/mapped/mapped_variants.d.mts +5 -4
  183. package/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +10 -5
  184. package/node_modules/typebox/build/type/engine/module/instantiate.d.mts +7 -9
  185. package/node_modules/typebox/build/type/engine/module/instantiate.mjs +17 -15
  186. package/node_modules/typebox/build/type/engine/object/from_dependent.d.mts +5 -0
  187. package/node_modules/typebox/build/type/engine/object/from_dependent.mjs +8 -0
  188. package/node_modules/typebox/build/type/engine/object/from_type.d.mts +3 -1
  189. package/node_modules/typebox/build/type/engine/object/from_type.mjs +8 -5
  190. package/node_modules/typebox/build/type/engine/object/from_union.mjs +2 -2
  191. package/node_modules/typebox/build/type/engine/optional/instantiate_add.d.mts +10 -0
  192. package/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +14 -0
  193. package/node_modules/typebox/build/type/engine/optional/instantiate_remove.d.mts +10 -0
  194. package/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs +14 -0
  195. package/node_modules/typebox/build/type/engine/parameters/instantiate.d.mts +3 -4
  196. package/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +2 -1
  197. package/node_modules/typebox/build/type/engine/partial/from_dependent.d.mts +5 -0
  198. package/node_modules/typebox/build/type/engine/partial/from_dependent.mjs +8 -0
  199. package/node_modules/typebox/build/type/engine/partial/from_intersect.d.mts +1 -1
  200. package/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +3 -2
  201. package/node_modules/typebox/build/type/engine/partial/from_object.d.mts +2 -2
  202. package/node_modules/typebox/build/type/engine/partial/from_object.mjs +2 -2
  203. package/node_modules/typebox/build/type/engine/partial/from_type.d.mts +3 -1
  204. package/node_modules/typebox/build/type/engine/partial/from_type.mjs +7 -4
  205. package/node_modules/typebox/build/type/engine/priority/index.d.mts +1 -0
  206. package/node_modules/typebox/build/type/engine/priority/index.mjs +1 -0
  207. package/node_modules/typebox/build/type/engine/priority/priority.d.mts +20 -0
  208. package/node_modules/typebox/build/type/engine/priority/priority.mjs +28 -0
  209. package/node_modules/typebox/build/type/engine/readonly/instantiate_add.d.mts +10 -0
  210. package/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +14 -0
  211. package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.d.mts +10 -0
  212. package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs +14 -0
  213. package/node_modules/typebox/build/type/engine/readonly_object/from_array.d.mts +2 -2
  214. package/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +2 -2
  215. package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.d.mts +5 -0
  216. package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs +8 -0
  217. package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.d.mts +1 -1
  218. package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +3 -2
  219. package/node_modules/typebox/build/type/engine/readonly_object/from_object.d.mts +2 -2
  220. package/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +2 -2
  221. package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.d.mts +2 -2
  222. package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +2 -2
  223. package/node_modules/typebox/build/type/engine/readonly_object/from_type.d.mts +3 -1
  224. package/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +8 -5
  225. package/node_modules/typebox/build/type/engine/record/from_key_enum.d.mts +2 -2
  226. package/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +2 -2
  227. package/node_modules/typebox/build/type/engine/record/from_key_template_literal.d.mts +2 -2
  228. package/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +2 -2
  229. package/node_modules/typebox/build/type/engine/ref/instantiate.d.mts +3 -3
  230. package/node_modules/typebox/build/type/engine/ref/instantiate.mjs +6 -6
  231. package/node_modules/typebox/build/type/engine/required/from_dependent.d.mts +5 -0
  232. package/node_modules/typebox/build/type/engine/required/from_dependent.mjs +8 -0
  233. package/node_modules/typebox/build/type/engine/required/from_intersect.d.mts +1 -1
  234. package/node_modules/typebox/build/type/engine/required/from_intersect.mjs +3 -2
  235. package/node_modules/typebox/build/type/engine/required/from_object.d.mts +2 -2
  236. package/node_modules/typebox/build/type/engine/required/from_object.mjs +2 -2
  237. package/node_modules/typebox/build/type/engine/required/from_type.d.mts +3 -1
  238. package/node_modules/typebox/build/type/engine/required/from_type.mjs +7 -4
  239. package/node_modules/typebox/build/type/engine/template_literal/decode.mjs +3 -3
  240. package/node_modules/typebox/build/type/engine/template_literal/encode.d.mts +2 -2
  241. package/node_modules/typebox/build/type/engine/template_literal/encode.mjs +6 -6
  242. package/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +1 -1
  243. package/node_modules/typebox/build/type/engine/template_literal/is_pattern.mjs +1 -0
  244. package/node_modules/typebox/build/type/engine/this/expand_this.d.mts +1 -4
  245. package/node_modules/typebox/build/type/engine/this/expand_this.mjs +7 -13
  246. package/node_modules/typebox/build/type/engine/with/instantiate.d.mts +8 -0
  247. package/node_modules/typebox/build/type/engine/{options → with}/instantiate.mjs +5 -5
  248. package/node_modules/typebox/build/type/extends/dependent.d.mts +6 -0
  249. package/node_modules/typebox/build/type/extends/dependent.mjs +6 -0
  250. package/node_modules/typebox/build/type/extends/enum.d.mts +4 -4
  251. package/node_modules/typebox/build/type/extends/enum.mjs +3 -2
  252. package/node_modules/typebox/build/type/extends/extends_left.d.mts +5 -7
  253. package/node_modules/typebox/build/type/extends/extends_left.mjs +24 -27
  254. package/node_modules/typebox/build/type/extends/extends_right.d.mts +7 -5
  255. package/node_modules/typebox/build/type/extends/extends_right.mjs +20 -15
  256. package/node_modules/typebox/build/type/extends/inference.mjs +1 -1
  257. package/node_modules/typebox/build/type/extends/object.d.mts +8 -1
  258. package/node_modules/typebox/build/type/extends/object.mjs +25 -3
  259. package/node_modules/typebox/build/type/extends/parameters.mjs +2 -2
  260. package/node_modules/typebox/build/type/extends/record.d.mts +13 -0
  261. package/node_modules/typebox/build/type/extends/record.mjs +23 -0
  262. package/node_modules/typebox/build/type/extends/template_literal.d.mts +3 -3
  263. package/node_modules/typebox/build/type/extends/template_literal.mjs +3 -3
  264. package/node_modules/typebox/build/type/extends/tuple.d.mts +3 -6
  265. package/node_modules/typebox/build/type/extends/tuple.mjs +6 -5
  266. package/node_modules/typebox/build/type/extends/union.mjs +2 -2
  267. package/node_modules/typebox/build/type/script/mapping.d.mts +84 -99
  268. package/node_modules/typebox/build/type/script/mapping.mjs +81 -85
  269. package/node_modules/typebox/build/type/script/parser.d.mts +40 -40
  270. package/node_modules/typebox/build/type/script/parser.mjs +22 -22
  271. package/node_modules/typebox/build/type/script/script.d.mts +3 -4
  272. package/node_modules/typebox/build/type/script/script.mjs +3 -2
  273. package/node_modules/typebox/build/type/script/token/internal/guard.d.mts +1 -1
  274. package/node_modules/typebox/build/type/script/token/internal/guard.mjs +1 -1
  275. package/node_modules/typebox/build/type/script/token/internal/take.mjs +1 -1
  276. package/node_modules/typebox/build/type/script/token/until.mjs +2 -2
  277. package/node_modules/typebox/build/type/types/_codec.d.mts +12 -12
  278. package/node_modules/typebox/build/type/types/_codec.mjs +0 -1
  279. package/node_modules/typebox/build/type/types/_immutable.d.mts +2 -9
  280. package/node_modules/typebox/build/type/types/_immutable.mjs +2 -10
  281. package/node_modules/typebox/build/type/types/_optional.d.mts +2 -9
  282. package/node_modules/typebox/build/type/types/_optional.mjs +2 -11
  283. package/node_modules/typebox/build/type/types/_readonly.d.mts +2 -9
  284. package/node_modules/typebox/build/type/types/_readonly.mjs +2 -10
  285. package/node_modules/typebox/build/type/types/_refine.d.mts +8 -10
  286. package/node_modules/typebox/build/type/types/_refine.mjs +1 -2
  287. package/node_modules/typebox/build/type/types/call.d.mts +3 -3
  288. package/node_modules/typebox/build/type/types/call.mjs +3 -2
  289. package/node_modules/typebox/build/type/types/deferred.d.mts +1 -0
  290. package/node_modules/typebox/build/type/types/deferred.mjs +1 -1
  291. package/node_modules/typebox/build/type/types/dependent.d.mts +17 -0
  292. package/node_modules/typebox/build/type/types/dependent.mjs +24 -0
  293. package/node_modules/typebox/build/type/types/enum.d.mts +3 -1
  294. package/node_modules/typebox/build/type/types/enum.mjs +5 -0
  295. package/node_modules/typebox/build/type/types/index.d.mts +1 -4
  296. package/node_modules/typebox/build/type/types/index.mjs +1 -4
  297. package/node_modules/typebox/build/type/types/number.d.mts +1 -1
  298. package/node_modules/typebox/build/type/types/number.mjs +1 -1
  299. package/node_modules/typebox/build/type/types/record.d.mts +13 -7
  300. package/node_modules/typebox/build/type/types/record.mjs +15 -9
  301. package/node_modules/typebox/build/type/types/static.d.mts +2 -5
  302. package/node_modules/typebox/build/typebox.d.mts +4 -8
  303. package/node_modules/typebox/build/typebox.mjs +4 -8
  304. package/node_modules/typebox/build/value/clean/clean.mjs +4 -2
  305. package/node_modules/typebox/build/value/clean/from_intersect.mjs +2 -2
  306. package/node_modules/typebox/build/value/clean/from_type.mjs +8 -10
  307. package/node_modules/typebox/build/value/clean/from_union.d.mts +1 -1
  308. package/node_modules/typebox/build/value/clean/from_union.mjs +1 -2
  309. package/node_modules/typebox/build/value/clone/clone.mjs +2 -73
  310. package/node_modules/typebox/build/value/codec/decode.mjs +4 -2
  311. package/node_modules/typebox/build/value/codec/encode.mjs +4 -2
  312. package/node_modules/typebox/build/value/codec/from_array.mjs +1 -4
  313. package/node_modules/typebox/build/value/codec/from_object.mjs +1 -4
  314. package/node_modules/typebox/build/value/codec/from_record.mjs +2 -7
  315. package/node_modules/typebox/build/value/codec/from_tuple.mjs +1 -4
  316. package/node_modules/typebox/build/value/codec/from_union.mjs +2 -3
  317. package/node_modules/typebox/build/value/convert/from_enum.mjs +3 -4
  318. package/node_modules/typebox/build/value/convert/from_template_literal.d.mts +1 -1
  319. package/node_modules/typebox/build/value/convert/from_template_literal.mjs +2 -3
  320. package/node_modules/typebox/build/value/convert/from_type.mjs +19 -21
  321. package/node_modules/typebox/build/value/create/from_enum.mjs +2 -2
  322. package/node_modules/typebox/build/value/create/from_type.mjs +23 -31
  323. package/node_modules/typebox/build/value/default/from_object.mjs +1 -1
  324. package/node_modules/typebox/build/value/default/from_type.mjs +8 -10
  325. package/node_modules/typebox/build/value/index.d.mts +0 -1
  326. package/node_modules/typebox/build/value/index.mjs +0 -1
  327. package/node_modules/typebox/build/value/repair/from_enum.mjs +2 -3
  328. package/node_modules/typebox/build/value/repair/from_type.mjs +24 -22
  329. package/node_modules/typebox/build/value/shared/union_priority_sort.d.mts +6 -2
  330. package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +62 -26
  331. package/node_modules/typebox/build/value/value.d.mts +0 -1
  332. package/node_modules/typebox/build/value/value.mjs +0 -1
  333. package/node_modules/typebox/package.json +25 -25
  334. package/node_modules/typebox/readme.md +97 -80
  335. package/npm-shrinkwrap.json +23 -13
  336. package/package.json +5 -5
  337. package/node_modules/typebox/build/schema/engine/_guard.d.mts +0 -6
  338. package/node_modules/typebox/build/schema/engine/_guard.mjs +0 -26
  339. package/node_modules/typebox/build/schema/types/_guard.d.mts +0 -10
  340. package/node_modules/typebox/build/schema/types/_guard.mjs +0 -16
  341. package/node_modules/typebox/build/type/action/_optional.d.mts +0 -19
  342. package/node_modules/typebox/build/type/action/_optional.mjs +0 -40
  343. package/node_modules/typebox/build/type/action/_readonly.d.mts +0 -19
  344. package/node_modules/typebox/build/type/action/_readonly.mjs +0 -40
  345. package/node_modules/typebox/build/type/action/awaited.d.mts +0 -15
  346. package/node_modules/typebox/build/type/action/awaited.mjs +0 -15
  347. package/node_modules/typebox/build/type/action/options.d.mts +0 -11
  348. package/node_modules/typebox/build/type/action/options.mjs +0 -11
  349. package/node_modules/typebox/build/type/engine/awaited/instantiate.d.mts +0 -11
  350. package/node_modules/typebox/build/type/engine/awaited/instantiate.mjs +0 -20
  351. package/node_modules/typebox/build/type/engine/enum/enum_to_union.d.mts +0 -14
  352. package/node_modules/typebox/build/type/engine/enum/enum_to_union.mjs +0 -24
  353. package/node_modules/typebox/build/type/engine/options/index.d.mts +0 -1
  354. package/node_modules/typebox/build/type/engine/options/index.mjs +0 -1
  355. package/node_modules/typebox/build/type/engine/options/instantiate.d.mts +0 -8
  356. package/node_modules/typebox/build/type/extends/async_iterator.d.mts +0 -7
  357. package/node_modules/typebox/build/type/extends/async_iterator.mjs +0 -9
  358. package/node_modules/typebox/build/type/extends/iterator.d.mts +0 -7
  359. package/node_modules/typebox/build/type/extends/iterator.mjs +0 -9
  360. package/node_modules/typebox/build/type/extends/promise.d.mts +0 -7
  361. package/node_modules/typebox/build/type/extends/promise.mjs +0 -9
  362. package/node_modules/typebox/build/type/types/async_iterator.d.mts +0 -20
  363. package/node_modules/typebox/build/type/types/async_iterator.mjs +0 -28
  364. package/node_modules/typebox/build/type/types/base.d.mts +0 -50
  365. package/node_modules/typebox/build/type/types/base.mjs +0 -84
  366. package/node_modules/typebox/build/type/types/iterator.d.mts +0 -20
  367. package/node_modules/typebox/build/type/types/iterator.mjs +0 -28
  368. package/node_modules/typebox/build/type/types/promise.d.mts +0 -21
  369. package/node_modules/typebox/build/type/types/promise.mjs +0 -29
  370. package/node_modules/typebox/build/value/clean/from_base.d.mts +0 -2
  371. package/node_modules/typebox/build/value/clean/from_base.mjs +0 -4
  372. package/node_modules/typebox/build/value/convert/from_base.d.mts +0 -2
  373. package/node_modules/typebox/build/value/convert/from_base.mjs +0 -4
  374. package/node_modules/typebox/build/value/create/from_async_iterator.d.mts +0 -2
  375. package/node_modules/typebox/build/value/create/from_async_iterator.mjs +0 -5
  376. package/node_modules/typebox/build/value/create/from_base.d.mts +0 -2
  377. package/node_modules/typebox/build/value/create/from_base.mjs +0 -4
  378. package/node_modules/typebox/build/value/create/from_iterator.d.mts +0 -2
  379. package/node_modules/typebox/build/value/create/from_iterator.mjs +0 -5
  380. package/node_modules/typebox/build/value/create/from_promise.d.mts +0 -2
  381. package/node_modules/typebox/build/value/create/from_promise.mjs +0 -5
  382. package/node_modules/typebox/build/value/default/from_base.d.mts +0 -2
  383. package/node_modules/typebox/build/value/default/from_base.mjs +0 -5
  384. package/node_modules/typebox/build/value/mutate/error.d.mts +0 -3
  385. package/node_modules/typebox/build/value/mutate/error.mjs +0 -6
  386. package/node_modules/typebox/build/value/mutate/from_array.d.mts +0 -2
  387. package/node_modules/typebox/build/value/mutate/from_array.mjs +0 -16
  388. package/node_modules/typebox/build/value/mutate/from_object.d.mts +0 -2
  389. package/node_modules/typebox/build/value/mutate/from_object.mjs +0 -40
  390. package/node_modules/typebox/build/value/mutate/from_unknown.d.mts +0 -2
  391. package/node_modules/typebox/build/value/mutate/from_unknown.mjs +0 -7
  392. package/node_modules/typebox/build/value/mutate/from_value.d.mts +0 -2
  393. package/node_modules/typebox/build/value/mutate/from_value.mjs +0 -12
  394. package/node_modules/typebox/build/value/mutate/index.d.mts +0 -1
  395. package/node_modules/typebox/build/value/mutate/index.mjs +0 -1
  396. package/node_modules/typebox/build/value/mutate/mutate.d.mts +0 -11
  397. package/node_modules/typebox/build/value/mutate/mutate.mjs +0 -41
  398. package/node_modules/typebox/build/value/repair/from_base.d.mts +0 -2
  399. package/node_modules/typebox/build/value/repair/from_base.mjs +0 -8
  400. /package/node_modules/typebox/build/type/engine/{awaited → with}/index.d.mts +0 -0
  401. /package/node_modules/typebox/build/type/engine/{awaited → with}/index.mjs +0 -0
@@ -1,2 +1,2 @@
1
- import { n as getZaloUserInfo, t as checkZaloAuthenticated } from "./zalo-js-C2Eq5K4i.js";
1
+ import { n as getZaloUserInfo, t as checkZaloAuthenticated } from "./zalo-js-CygJB5qD.js";
2
2
  export { checkZaloAuthenticated, getZaloUserInfo };
@@ -1,12 +1,13 @@
1
- import "./setup-surface-C8VXOMBu.js";
2
- import "./shared-xBuXIOwv.js";
3
- import { n as parseZalouserOutboundTarget } from "./channel-BFn5MZCm.js";
1
+ import "./setup-surface-BsD-g2tO.js";
2
+ import "./shared-CqSIPdjp.js";
3
+ import { n as parseZalouserOutboundTarget } from "./channel-C0ARGeer.js";
4
4
  import "./security-audit-DhK2UscX.js";
5
- import { i as listZaloFriendsMatching, n as getZaloUserInfo, s as listZaloGroupsMatching, t as checkZaloAuthenticated } from "./zalo-js-C2Eq5K4i.js";
6
- import "./channel.setup-BsYmobJ6.js";
7
- import { i as sendMessageZalouser, n as sendImageZalouser, r as sendLinkZalouser } from "./send-_7W21n-G.js";
5
+ import { i as listZaloFriendsMatching, n as getZaloUserInfo, s as listZaloGroupsMatching, t as checkZaloAuthenticated } from "./zalo-js-CygJB5qD.js";
6
+ import "./channel.setup-Ba0dtXCS.js";
7
+ import { i as sendMessageZalouser, n as sendImageZalouser, r as sendLinkZalouser } from "./send-D1GpX8wV.js";
8
8
  import { stringEnum } from "openclaw/plugin-sdk/channel-actions";
9
9
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
10
+ import { jsonResult } from "openclaw/plugin-sdk/tool-results";
10
11
  import { Type } from "typebox";
11
12
  //#region extensions/zalouser/src/tool.ts
12
13
  const ACTIONS = [
@@ -27,15 +28,6 @@ const ZalouserToolSchema = Type.Object({
27
28
  query: Type.Optional(Type.String({ description: "Search query" })),
28
29
  url: Type.Optional(Type.String({ description: "URL for media/link" }))
29
30
  }, { additionalProperties: false });
30
- function json(payload) {
31
- return {
32
- content: [{
33
- type: "text",
34
- text: JSON.stringify(payload, null, 2)
35
- }],
36
- details: payload
37
- };
38
- }
39
31
  function resolveAmbientZalouserTarget(context) {
40
32
  const deliveryContext = context?.deliveryContext;
41
33
  const rawTarget = deliveryContext?.to;
@@ -67,7 +59,7 @@ async function executeZalouserTool(_toolCallId, params, _signal, _onUpdate, cont
67
59
  isGroup: target.isGroup
68
60
  });
69
61
  if (!result.ok) throw new Error(result.error || "Failed to send message");
70
- return json({
62
+ return jsonResult({
71
63
  success: true,
72
64
  messageId: result.messageId
73
65
  });
@@ -82,7 +74,7 @@ async function executeZalouserTool(_toolCallId, params, _signal, _onUpdate, cont
82
74
  isGroup: target.isGroup
83
75
  });
84
76
  if (!result.ok) throw new Error(result.error || "Failed to send image");
85
- return json({
77
+ return jsonResult({
86
78
  success: true,
87
79
  messageId: result.messageId
88
80
  });
@@ -96,17 +88,17 @@ async function executeZalouserTool(_toolCallId, params, _signal, _onUpdate, cont
96
88
  isGroup: target.isGroup
97
89
  });
98
90
  if (!result.ok) throw new Error(result.error || "Failed to send link");
99
- return json({
91
+ return jsonResult({
100
92
  success: true,
101
93
  messageId: result.messageId
102
94
  });
103
95
  }
104
- case "friends": return json(await listZaloFriendsMatching(params.profile, params.query));
105
- case "groups": return json(await listZaloGroupsMatching(params.profile, params.query));
106
- case "me": return json(await getZaloUserInfo(params.profile) ?? { error: "Not authenticated" });
96
+ case "friends": return jsonResult(await listZaloFriendsMatching(params.profile, params.query));
97
+ case "groups": return jsonResult(await listZaloGroupsMatching(params.profile, params.query));
98
+ case "me": return jsonResult(await getZaloUserInfo(params.profile) ?? { error: "Not authenticated" });
107
99
  case "status": {
108
100
  const authenticated = await checkZaloAuthenticated(params.profile);
109
- return json({
101
+ return jsonResult({
110
102
  authenticated,
111
103
  output: authenticated ? "authenticated" : "not authenticated"
112
104
  });
@@ -116,7 +108,7 @@ async function executeZalouserTool(_toolCallId, params, _signal, _onUpdate, cont
116
108
  throw new Error(`Unknown action: ${String(params.action)}. Valid actions: send, image, link, friends, groups, me, status`);
117
109
  }
118
110
  } catch (err) {
119
- return json({ error: formatErrorMessage(err) });
111
+ return jsonResult({ error: formatErrorMessage(err) });
120
112
  }
121
113
  }
122
114
  function createZalouserTool(context) {
package/dist/api.js CHANGED
@@ -1,7 +1,7 @@
1
- import { n as zalouserSetupWizard } from "./setup-surface-C8VXOMBu.js";
2
- import { n as createZalouserSetupWizardProxy, r as zalouserSetupAdapter } from "./shared-xBuXIOwv.js";
3
- import { t as zalouserPlugin } from "./channel-BFn5MZCm.js";
1
+ import { n as zalouserSetupWizard } from "./setup-surface-BsD-g2tO.js";
2
+ import { n as createZalouserSetupWizardProxy, r as zalouserSetupAdapter } from "./shared-CqSIPdjp.js";
3
+ import { t as zalouserPlugin } from "./channel-C0ARGeer.js";
4
4
  import { n as isZalouserMutableGroupEntry, t as collectZalouserSecurityAuditFindings } from "./security-audit-DhK2UscX.js";
5
- import { t as zalouserSetupPlugin } from "./channel.setup-BsYmobJ6.js";
6
- import { t as createZalouserTool } from "./api-WQJ1sj8X.js";
5
+ import { t as zalouserSetupPlugin } from "./channel.setup-Ba0dtXCS.js";
6
+ import { t as createZalouserTool } from "./api-Ckk_hPfU.js";
7
7
  export { collectZalouserSecurityAuditFindings, createZalouserSetupWizardProxy, createZalouserTool, isZalouserMutableGroupEntry, zalouserPlugin, zalouserSetupAdapter, zalouserSetupPlugin, zalouserSetupWizard };
@@ -1,4 +1,4 @@
1
- import { a as DEFAULT_ACCOUNT_ID, c as isNumericTargetId, d as checkZcaAuthenticated, f as listZalouserAccountIds, i as writeQrDataUrlToTempFile, l as normalizeAccountId, m as resolveZalouserAccountSync, n as createZalouserSetupWizardProxy, o as chunkTextForOutbound, p as resolveDefaultZalouserAccountId, r as zalouserSetupAdapter, s as isDangerousNameMatchingEnabled, t as createZalouserPluginBase, u as sendPayloadWithChunkedTextAndMedia } from "./shared-xBuXIOwv.js";
1
+ import { a as DEFAULT_ACCOUNT_ID, c as isNumericTargetId, d as checkZcaAuthenticated, f as listZalouserAccountIds, i as writeQrDataUrlToTempFile, l as normalizeAccountId, m as resolveZalouserAccountSync, n as createZalouserSetupWizardProxy, o as chunkTextForOutbound, p as resolveDefaultZalouserAccountId, r as zalouserSetupAdapter, s as isDangerousNameMatchingEnabled, t as createZalouserPluginBase, u as sendPayloadWithChunkedTextAndMedia } from "./shared-CqSIPdjp.js";
2
2
  import { createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
3
3
  import { createAccountStatusSink, defineChannelMessageAdapter } from "openclaw/plugin-sdk/channel-outbound";
4
4
  import { buildPassiveProbedChannelStatusSummary, coerceStatusIssueAccountId, readStatusIssueFields } from "openclaw/plugin-sdk/extension-shared";
@@ -8,7 +8,7 @@ import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString } fro
8
8
  import { buildChannelOutboundSessionRoute } from "openclaw/plugin-sdk/core";
9
9
  import { createScopedDmSecurityResolver } from "openclaw/plugin-sdk/channel-config-helpers";
10
10
  import { createPairingPrefixStripper } from "openclaw/plugin-sdk/channel-pairing";
11
- import { createEmptyChannelResult, createRawChannelSendResultAdapter } from "openclaw/plugin-sdk/channel-send-result";
11
+ import { createEmptyChannelResult } from "openclaw/plugin-sdk/channel-send-result";
12
12
  import { createStaticReplyToModeResolver } from "openclaw/plugin-sdk/conversation-runtime";
13
13
  import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store";
14
14
  //#region extensions/zalouser/src/group-policy.ts
@@ -193,6 +193,7 @@ function resolveZalouserOutboundSessionRoute(params) {
193
193
  agentId: params.agentId,
194
194
  channel: "zalouser",
195
195
  accountId: params.accountId,
196
+ recipientSessionExact: isGroup,
196
197
  peer: {
197
198
  kind: isGroup ? "group" : "direct",
198
199
  id: peerId
@@ -204,7 +205,7 @@ function resolveZalouserOutboundSessionRoute(params) {
204
205
  }
205
206
  //#endregion
206
207
  //#region extensions/zalouser/src/channel.adapters.ts
207
- const loadZalouserChannelRuntime$1 = createLazyRuntimeModule(() => import("./channel.runtime-CmquHp26.js"));
208
+ const loadZalouserChannelRuntime$1 = createLazyRuntimeModule(() => import("./channel.runtime-DYblgvY5.js"));
208
209
  const ZALOUSER_TEXT_CHUNK_LIMIT = 2e3;
209
210
  function resolveZalouserQrProfile(accountId) {
210
211
  const normalized = normalizeAccountId(accountId);
@@ -217,6 +218,12 @@ function resolveZalouserOutboundChunkMode(cfg, accountId) {
217
218
  function resolveZalouserOutboundTextChunkLimit(cfg, accountId) {
218
219
  return getZalouserRuntime().channel.text.resolveTextChunkLimit(cfg, "zalouser", accountId, { fallbackLimit: ZALOUSER_TEXT_CHUNK_LIMIT });
219
220
  }
221
+ function toZalouserMessageSendResult(result) {
222
+ return {
223
+ messageId: result.messageId,
224
+ receipt: result.receipt
225
+ };
226
+ }
220
227
  function resolveZalouserGroupPolicyEntry(params) {
221
228
  const account = resolveZalouserAccountSync({
222
229
  cfg: params.cfg,
@@ -237,29 +244,32 @@ function resolveZalouserRequireMention(params) {
237
244
  if (typeof entry?.requireMention === "boolean") return entry.requireMention;
238
245
  return true;
239
246
  }
240
- async function sendZalouserTextFromContext({ to, text, accountId, cfg }) {
247
+ async function sendZalouserTextFromContext({ to, text, accountId, cfg, onDeliveryResult }) {
241
248
  const { sendMessageZalouser } = await loadZalouserChannelRuntime$1();
242
249
  const account = resolveZalouserAccountSync({
243
250
  cfg,
244
251
  accountId
245
252
  });
246
253
  const target = parseZalouserOutboundTarget(to);
247
- return await sendMessageZalouser(target.threadId, text, {
254
+ return toZalouserMessageSendResult(await sendMessageZalouser(target.threadId, text, {
248
255
  profile: account.profile,
249
256
  isGroup: target.isGroup,
250
257
  textMode: "markdown",
251
258
  textChunkMode: resolveZalouserOutboundChunkMode(cfg, account.accountId),
252
- textChunkLimit: resolveZalouserOutboundTextChunkLimit(cfg, account.accountId)
253
- });
259
+ textChunkLimit: resolveZalouserOutboundTextChunkLimit(cfg, account.accountId),
260
+ onDeliveryResult: async (progress) => {
261
+ await onDeliveryResult?.(toZalouserMessageSendResult(progress));
262
+ }
263
+ }));
254
264
  }
255
- async function sendZalouserMediaFromContext({ to, text, mediaUrl, accountId, cfg, mediaLocalRoots, mediaReadFile }) {
265
+ async function sendZalouserMediaFromContext({ to, text, mediaUrl, accountId, cfg, mediaLocalRoots, mediaReadFile, onDeliveryResult }) {
256
266
  const { sendMessageZalouser } = await loadZalouserChannelRuntime$1();
257
267
  const account = resolveZalouserAccountSync({
258
268
  cfg,
259
269
  accountId
260
270
  });
261
271
  const target = parseZalouserOutboundTarget(to);
262
- return await sendMessageZalouser(target.threadId, text, {
272
+ return toZalouserMessageSendResult(await sendMessageZalouser(target.threadId, text, {
263
273
  profile: account.profile,
264
274
  isGroup: target.isGroup,
265
275
  mediaUrl,
@@ -267,14 +277,33 @@ async function sendZalouserMediaFromContext({ to, text, mediaUrl, accountId, cfg
267
277
  mediaReadFile,
268
278
  textMode: "markdown",
269
279
  textChunkMode: resolveZalouserOutboundChunkMode(cfg, account.accountId),
270
- textChunkLimit: resolveZalouserOutboundTextChunkLimit(cfg, account.accountId)
280
+ textChunkLimit: resolveZalouserOutboundTextChunkLimit(cfg, account.accountId),
281
+ onDeliveryResult: async (progress) => {
282
+ await onDeliveryResult?.(toZalouserMessageSendResult(progress));
283
+ }
284
+ }));
285
+ }
286
+ function adaptZalouserOutboundProgress(onDeliveryResult) {
287
+ return onDeliveryResult ? async (result) => {
288
+ await onDeliveryResult(toZalouserOutboundDeliveryResult(result));
289
+ } : void 0;
290
+ }
291
+ function toZalouserOutboundDeliveryResult(result) {
292
+ return createEmptyChannelResult("zalouser", {
293
+ messageId: result.messageId ?? result.receipt.primaryPlatformMessageId ?? result.receipt.platformMessageIds[0],
294
+ receipt: result.receipt
271
295
  });
272
296
  }
273
- const zalouserRawSendResultAdapter = createRawChannelSendResultAdapter({
274
- channel: "zalouser",
275
- sendText: sendZalouserTextFromContext,
276
- sendMedia: sendZalouserMediaFromContext
277
- });
297
+ const zalouserRawSendResultAdapter = {
298
+ sendText: async ({ onDeliveryResult, ...ctx }) => toZalouserOutboundDeliveryResult(await sendZalouserTextFromContext({
299
+ ...ctx,
300
+ onDeliveryResult: adaptZalouserOutboundProgress(onDeliveryResult)
301
+ })),
302
+ sendMedia: async ({ onDeliveryResult, ...ctx }) => toZalouserOutboundDeliveryResult(await sendZalouserMediaFromContext({
303
+ ...ctx,
304
+ onDeliveryResult: adaptZalouserOutboundProgress(onDeliveryResult)
305
+ }))
306
+ };
278
307
  const zalouserMessageAdapter = defineChannelMessageAdapter({
279
308
  id: "zalouser",
280
309
  durableFinal: { capabilities: {
@@ -535,8 +564,8 @@ function collectZalouserStatusIssues(accounts) {
535
564
  }
536
565
  //#endregion
537
566
  //#region extensions/zalouser/src/channel.ts
538
- const loadZalouserChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-CmquHp26.js"));
539
- const zalouserSetupWizardProxy = createZalouserSetupWizardProxy(async () => (await import("./setup-surface-C8VXOMBu.js").then((n) => n.t)).zalouserSetupWizard);
567
+ const loadZalouserChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-DYblgvY5.js"));
568
+ const zalouserSetupWizardProxy = createZalouserSetupWizardProxy(async () => (await import("./setup-surface-BsD-g2tO.js").then((n) => n.t)).zalouserSetupWizard);
540
569
  function mapUser(params) {
541
570
  return {
542
571
  kind: "user",
@@ -653,7 +682,7 @@ const zalouserPlugin = createChatChannelPlugin({
653
682
  setStatus: ctx.setStatus
654
683
  });
655
684
  ctx.log?.info(`[${account.accountId}] starting zalouser provider${userLabel}`);
656
- const { monitorZalouserProvider } = await import("./monitor-DxOj93Pa.js");
685
+ const { monitorZalouserProvider } = await import("./monitor-D3DfqQDG.js");
657
686
  return monitorZalouserProvider({
658
687
  account,
659
688
  config: ctx.cfg,
@@ -1,2 +1,2 @@
1
- import { t as zalouserPlugin } from "./channel-BFn5MZCm.js";
1
+ import { t as zalouserPlugin } from "./channel-C0ARGeer.js";
2
2
  export { zalouserPlugin };
@@ -1,6 +1,6 @@
1
1
  import { t as collectZalouserSecurityAuditFindings } from "./security-audit-DhK2UscX.js";
2
- import { a as listZaloGroupMembers, b as waitForZaloQrLogin, c as logoutZaloProfile, i as listZaloFriendsMatching, n as getZaloUserInfo, s as listZaloGroupsMatching, y as startZaloQrLogin } from "./zalo-js-C2Eq5K4i.js";
3
- import { a as sendReactionZalouser, i as sendMessageZalouser } from "./send-_7W21n-G.js";
2
+ import { a as listZaloGroupMembers, b as waitForZaloQrLogin, c as logoutZaloProfile, i as listZaloFriendsMatching, n as getZaloUserInfo, s as listZaloGroupsMatching, y as startZaloQrLogin } from "./zalo-js-CygJB5qD.js";
3
+ import { a as sendReactionZalouser, i as sendMessageZalouser } from "./send-D1GpX8wV.js";
4
4
  import { resolveTimerTimeoutMs } from "openclaw/plugin-sdk/number-runtime";
5
5
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
6
6
  //#region extensions/zalouser/src/probe.ts
@@ -1,5 +1,5 @@
1
- import { n as zalouserSetupWizard } from "./setup-surface-C8VXOMBu.js";
2
- import { r as zalouserSetupAdapter, t as createZalouserPluginBase } from "./shared-xBuXIOwv.js";
1
+ import { n as zalouserSetupWizard } from "./setup-surface-BsD-g2tO.js";
2
+ import { r as zalouserSetupAdapter, t as createZalouserPluginBase } from "./shared-CqSIPdjp.js";
3
3
  //#region extensions/zalouser/src/channel.setup.ts
4
4
  const zalouserSetupPlugin = { ...createZalouserPluginBase({
5
5
  setupWizard: zalouserSetupWizard,
@@ -1,6 +1,6 @@
1
- import { a as formatZalouserMessageSidFull, c as findZalouserGroupEntry, l as isZalouserGroupEntryAllowed, o as resolveZalouserMessageSid, r as getZalouserRuntime, s as buildZalouserGroupCandidates } from "./channel-BFn5MZCm.js";
2
- import { o as listZaloGroups, r as listZaloFriends, u as resolveZaloGroupContext, v as startZaloListener } from "./zalo-js-C2Eq5K4i.js";
3
- import { i as sendMessageZalouser, o as sendSeenZalouser, s as sendTypingZalouser, t as sendDeliveredZalouser } from "./send-_7W21n-G.js";
1
+ import { a as formatZalouserMessageSidFull, c as findZalouserGroupEntry, l as isZalouserGroupEntryAllowed, o as resolveZalouserMessageSid, r as getZalouserRuntime, s as buildZalouserGroupCandidates } from "./channel-C0ARGeer.js";
2
+ import { o as listZaloGroups, r as listZaloFriends, u as resolveZaloGroupContext, v as startZaloListener } from "./zalo-js-CygJB5qD.js";
3
+ import { i as sendMessageZalouser, o as sendSeenZalouser, s as sendTypingZalouser, t as sendDeliveredZalouser } from "./send-D1GpX8wV.js";
4
4
  import { createDeferred } from "openclaw/plugin-sdk/extension-shared";
5
5
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
6
6
  import { mergeAllowlist, summarizeMapping } from "openclaw/plugin-sdk/allow-from";
@@ -1,9 +1,9 @@
1
- import { n as zalouserSetupWizard } from "./setup-surface-C8VXOMBu.js";
2
- import { n as createZalouserSetupWizardProxy, r as zalouserSetupAdapter } from "./shared-xBuXIOwv.js";
3
- import { i as setZalouserRuntime, t as zalouserPlugin } from "./channel-BFn5MZCm.js";
1
+ import { n as zalouserSetupWizard } from "./setup-surface-BsD-g2tO.js";
2
+ import { n as createZalouserSetupWizardProxy, r as zalouserSetupAdapter } from "./shared-CqSIPdjp.js";
3
+ import { i as setZalouserRuntime, t as zalouserPlugin } from "./channel-C0ARGeer.js";
4
4
  import { n as isZalouserMutableGroupEntry, t as collectZalouserSecurityAuditFindings } from "./security-audit-DhK2UscX.js";
5
- import { t as zalouserSetupPlugin } from "./channel.setup-BsYmobJ6.js";
6
- import { t as createZalouserTool } from "./api-WQJ1sj8X.js";
5
+ import { t as zalouserSetupPlugin } from "./channel.setup-Ba0dtXCS.js";
6
+ import { t as createZalouserTool } from "./api-Ckk_hPfU.js";
7
7
  import { createChannelMessageReplyPipeline } from "openclaw/plugin-sdk/channel-outbound";
8
8
  import { buildBaseAccountStatusSnapshot } from "openclaw/plugin-sdk/status-helpers";
9
9
  import { formatAllowFromLowercase, mergeAllowlist, summarizeMapping } from "openclaw/plugin-sdk/allow-from";
@@ -1,4 +1,4 @@
1
- import { S as TextStyle, _ as sendZaloTypingEvent, f as sendZaloDeliveredEvent, g as sendZaloTextMessage, h as sendZaloSeenEvent, m as sendZaloReaction, p as sendZaloLink, x as createZalouserSendReceipt } from "./zalo-js-C2Eq5K4i.js";
1
+ import { S as TextStyle, _ as sendZaloTypingEvent, f as sendZaloDeliveredEvent, g as sendZaloTextMessage, h as sendZaloSeenEvent, m as sendZaloReaction, p as sendZaloLink, x as createZalouserSendReceipt } from "./zalo-js-CygJB5qD.js";
2
2
  //#region extensions/zalouser/src/text-styles.ts
3
3
  const ESCAPE_SENTINEL_START = "";
4
4
  const ESCAPE_SENTINEL_END = "";
@@ -394,26 +394,28 @@ function stripCodeFenceIndent(line, indent) {
394
394
  const ZALO_TEXT_LIMIT = 2e3;
395
395
  const DEFAULT_TEXT_CHUNK_MODE = "length";
396
396
  async function sendMessageZalouser(threadId, text, options = {}) {
397
- const prepared = options.textMode === "markdown" ? parseZalouserTextStyles(text) : {
397
+ const { onDeliveryResult, ...transportOptions } = options;
398
+ const prepared = transportOptions.textMode === "markdown" ? parseZalouserTextStyles(text) : {
398
399
  text,
399
- styles: options.textStyles
400
+ styles: transportOptions.textStyles
400
401
  };
401
- const textChunkLimit = options.textChunkLimit ?? ZALO_TEXT_LIMIT;
402
- const chunks = splitStyledText(prepared.text, (prepared.styles?.length ?? 0) > 0 ? prepared.styles : void 0, textChunkLimit, options.textChunkMode);
402
+ const textChunkLimit = transportOptions.textChunkLimit ?? ZALO_TEXT_LIMIT;
403
+ const chunks = splitStyledText(prepared.text, (prepared.styles?.length ?? 0) > 0 ? prepared.styles : void 0, textChunkLimit, transportOptions.textChunkMode);
403
404
  let lastResult = null;
404
405
  for (const [index, chunk] of chunks.entries()) {
405
406
  const chunkOptions = index === 0 ? {
406
- ...options,
407
+ ...transportOptions,
407
408
  textStyles: chunk.styles
408
409
  } : {
409
- ...options,
410
+ ...transportOptions,
410
411
  caption: void 0,
411
412
  mediaLocalRoots: void 0,
412
413
  mediaUrl: void 0,
413
414
  textStyles: chunk.styles
414
415
  };
415
416
  const result = await sendZaloTextMessage(threadId, chunk.text, chunkOptions);
416
- if (!result.ok) return result;
417
+ if (!result.ok) throw new Error(result.error || "Failed to send Zalouser message");
418
+ await onDeliveryResult?.(result);
417
419
  lastResult = result;
418
420
  }
419
421
  return lastResult ?? {
@@ -1,2 +1,2 @@
1
- import { t as zalouserSetupPlugin } from "./channel.setup-BsYmobJ6.js";
1
+ import { t as zalouserSetupPlugin } from "./channel.setup-Ba0dtXCS.js";
2
2
  export { zalouserSetupPlugin };
@@ -1,5 +1,5 @@
1
- import { d as checkZcaAuthenticated, f as listZalouserAccountIds, i as writeQrDataUrlToTempFile, m as resolveZalouserAccountSync, p as resolveDefaultZalouserAccountId } from "./shared-xBuXIOwv.js";
2
- import { b as waitForZaloQrLogin, c as logoutZaloProfile, d as resolveZaloGroupsByEntries, l as resolveZaloAllowFromEntries, y as startZaloQrLogin } from "./zalo-js-C2Eq5K4i.js";
1
+ import { d as checkZcaAuthenticated, f as listZalouserAccountIds, i as writeQrDataUrlToTempFile, m as resolveZalouserAccountSync, p as resolveDefaultZalouserAccountId } from "./shared-CqSIPdjp.js";
2
+ import { b as waitForZaloQrLogin, c as logoutZaloProfile, d as resolveZaloGroupsByEntries, l as resolveZaloAllowFromEntries, y as startZaloQrLogin } from "./zalo-js-CygJB5qD.js";
3
3
  import { normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
4
4
  import { DEFAULT_ACCOUNT_ID, addWildcardAllowFrom, createSetupTranslator, formatCliCommand, formatDocsLink, formatResolvedUnresolvedNote, mergeAllowFromEntries, normalizeAccountId, patchScopedAccountConfig } from "openclaw/plugin-sdk/setup";
5
5
  //#region \0rolldown/runtime.js
@@ -1,5 +1,6 @@
1
1
  import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-mDJdHVKH.js";
2
2
  import { n as isZalouserMutableGroupEntry } from "./security-audit-DhK2UscX.js";
3
+ import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
3
4
  import { DEFAULT_ACCOUNT_ID, createAccountListHelpers, normalizeAccountId, resolveMergedAccountConfig } from "openclaw/plugin-sdk/account-resolution";
4
5
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
5
6
  import { formatAllowFromLowercase } from "openclaw/plugin-sdk/allow-from";
@@ -17,11 +18,7 @@ import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
17
18
  import { z } from "zod";
18
19
  import { createDangerousNameMatchingMutableAllowlistWarningCollector } from "openclaw/plugin-sdk/channel-policy";
19
20
  //#region extensions/zalouser/src/accounts.ts
20
- let zalouserAccountsRuntimePromise;
21
- async function loadZalouserAccountsRuntime() {
22
- zalouserAccountsRuntimePromise ??= import("./accounts.runtime-BOwtZOBd.js");
23
- return await zalouserAccountsRuntimePromise;
24
- }
21
+ const loadZalouserAccountsRuntime = createLazyRuntimeModule(() => import("./accounts.runtime-BK4FKoae.js"));
25
22
  const { listAccountIds: listZalouserAccountIds, resolveDefaultAccountId: resolveDefaultZalouserAccountId } = createAccountListHelpers("zalouser", { implicitDefaultAccount: {
26
23
  channelKeys: ["profile"],
27
24
  envVars: ["ZALOUSER_PROFILE", "ZCA_PROFILE"]
@@ -1,4 +1,5 @@
1
1
  import { createMessageReceiptFromOutboundResults } from "openclaw/plugin-sdk/channel-outbound";
2
+ import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
2
3
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
3
4
  import path from "node:path";
4
5
  import { randomUUID } from "node:crypto";
@@ -9,7 +10,7 @@ import { asDateTimestampMs, asFiniteNumberInRange, isFutureDateTimestampMs, pars
9
10
  import { loadOutboundMediaFromUrl } from "openclaw/plugin-sdk/outbound-media";
10
11
  import { privateFileStoreSync, readRegularFileSync, statRegularFileSync, withTimeout } from "openclaw/plugin-sdk/security-runtime";
11
12
  import { resolveStateDir } from "openclaw/plugin-sdk/state-paths";
12
- import { sleep } from "openclaw/plugin-sdk/text-utility-runtime";
13
+ import { sleep, truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
13
14
  //#region extensions/zalouser/src/zca-constants.ts
14
15
  const ThreadType = {
15
16
  User: 0,
@@ -48,7 +49,7 @@ const TextStyle = {
48
49
  };
49
50
  //#endregion
50
51
  //#region extensions/zalouser/src/reaction.ts
51
- const REACTION_ALIAS_MAP = new Map([
52
+ const REACTION_ALIAS_MAP = /* @__PURE__ */ new Map([
52
53
  ["like", Reactions.LIKE],
53
54
  ["👍", Reactions.LIKE],
54
55
  [":+1:", Reactions.LIKE],
@@ -90,11 +91,7 @@ function createZalouserSendReceipt(params) {
90
91
  }
91
92
  //#endregion
92
93
  //#region extensions/zalouser/src/zca-client.ts
93
- let zcaJsRuntimePromise = null;
94
- async function loadZcaJsRuntime() {
95
- zcaJsRuntimePromise ??= import("zca-js").then((mod) => mod);
96
- return await zcaJsRuntimePromise;
97
- }
94
+ const loadZcaJsRuntime = createLazyRuntimeModule(() => import("zca-js").then((mod) => mod));
98
95
  async function createZalo(options) {
99
96
  const Zalo = (await loadZcaJsRuntime()).Zalo;
100
97
  return new Zalo(options);
@@ -640,6 +637,9 @@ function toInboundMessage(message, ownUserId) {
640
637
  raw: message
641
638
  };
642
639
  }
640
+ function truncatePayloadText(text) {
641
+ return truncateUtf16Safe(text, 2e3);
642
+ }
643
643
  function zalouserSessionExists(profileInput) {
644
644
  return readCredentials(normalizeProfile(profileInput)) !== null;
645
645
  }
@@ -731,7 +731,7 @@ async function listZaloGroupMembers(profileInput, groupId) {
731
731
  avatar: member.avatar || void 0
732
732
  });
733
733
  }
734
- const uniqueIds = Array.from(new Set([
734
+ const uniqueIds = Array.from(/* @__PURE__ */ new Set([
735
735
  ...memberIds,
736
736
  ...memVerIds,
737
737
  ...currentById.keys()
@@ -797,7 +797,7 @@ async function sendZaloTextMessage(threadId, text, options = {}) {
797
797
  contentType: media.contentType,
798
798
  kind: media.kind
799
799
  });
800
- const payloadText = (text || options.caption || "").slice(0, 2e3);
800
+ const payloadText = truncatePayloadText(text || options.caption || "");
801
801
  const textStyles = clampTextStyles(payloadText, options.textStyles);
802
802
  if (media.kind === "audio") {
803
803
  let textMessageId;
@@ -843,7 +843,7 @@ async function sendZaloTextMessage(threadId, text, options = {}) {
843
843
  })
844
844
  };
845
845
  }
846
- const payloadText = text.slice(0, 2e3);
846
+ const payloadText = truncatePayloadText(text);
847
847
  const textStyles = clampTextStyles(payloadText, options.textStyles);
848
848
  const messageId = extractSendMessageId(await api.sendMessage(textStyles ? {
849
849
  msg: payloadText,
@@ -1197,7 +1197,8 @@ async function startZaloListener(params) {
1197
1197
  params.onError(error);
1198
1198
  };
1199
1199
  const onError = (error) => {
1200
- failListener(error instanceof Error ? error : new Error(String(error)));
1200
+ const wrapped = error instanceof Error ? error : new Error(String(error));
1201
+ failListener(wrapped);
1201
1202
  };
1202
1203
  const onClosed = (code, reason) => {
1203
1204
  failListener(/* @__PURE__ */ new Error(`Zalo listener closed (${code}): ${reason || "no reason"}`));
@@ -8,7 +8,7 @@ pako
8
8
 
9
9
  __Why pako is cool:__
10
10
 
11
- - Results are binary equal to well known [zlib](http://www.zlib.net/) (now contains ported zlib v1.2.8).
11
+ - Results are binary equal to well known [zlib](http://www.zlib.net/) (now contains ported zlib v1.3.2).
12
12
  - Almost as fast in modern JS engines as C implementation (see benchmarks).
13
13
  - Works in browsers, you can browserify any separate component.
14
14
 
@@ -19,30 +19,16 @@ develop native C modules for CPU-intensive tasks. Enjoy the result!
19
19
  __Benchmarks:__
20
20
 
21
21
 
22
- node v12.16.3 (zlib 1.2.9), 1mb input sample:
22
+ node v24, 1mb input sample:
23
23
 
24
24
  ```
25
- deflate-imaya x 4.75 ops/sec ±4.93% (15 runs sampled)
26
- deflate-pako x 10.38 ops/sec ±0.37% (29 runs sampled)
27
- deflate-zlib x 17.74 ops/sec ±0.77% (46 runs sampled)
28
- gzip-pako x 8.86 ops/sec ±1.41% (29 runs sampled)
29
- inflate-imaya x 107 ops/sec ±0.69% (77 runs sampled)
30
- inflate-pako x 131 ops/sec ±1.74% (82 runs sampled)
31
- inflate-zlib x 258 ops/sec ±0.66% (88 runs sampled)
32
- ungzip-pako x 115 ops/sec ±1.92% (80 runs sampled)
33
- ```
34
-
35
- node v14.15.0 (google's zlib), 1mb output sample:
36
-
37
- ```
38
- deflate-imaya x 4.93 ops/sec ±3.09% (16 runs sampled)
39
- deflate-pako x 10.22 ops/sec ±0.33% (29 runs sampled)
40
- deflate-zlib x 18.48 ops/sec ±0.24% (48 runs sampled)
41
- gzip-pako x 10.16 ops/sec ±0.25% (28 runs sampled)
42
- inflate-imaya x 110 ops/sec ±0.41% (77 runs sampled)
43
- inflate-pako x 134 ops/sec ±0.66% (83 runs sampled)
44
- inflate-zlib x 402 ops/sec ±0.74% (87 runs sampled)
45
- ungzip-pako x 113 ops/sec ±0.62% (80 runs sampled)
25
+ deflate-pako x 14.27 ops/sec ±3.41% (37 runs sampled)
26
+ deflate-pako-zlib-hash x 10.60 ops/sec ±0.50% (29 runs sampled)
27
+ deflate-zlib x 30.30 ops/sec ±0.61% (51 runs sampled)
28
+ gzip-pako x 13.48 ops/sec ±0.50% (36 runs sampled)
29
+ inflate-pako x 138 ops/sec ±1.26% (75 runs sampled)
30
+ inflate-zlib x 397 ops/sec ±1.37% (81 runs sampled)
31
+ ungzip-pako x 125 ops/sec ±1.46% (73 runs sampled)
46
32
  ```
47
33
 
48
34
  zlib's test is partially affected by marshalling (that make sense for inflate only).
@@ -143,14 +129,6 @@ Pako does not contain some specific zlib functions:
143
129
  modes.
144
130
 
145
131
 
146
- pako for enterprise
147
- -------------------
148
-
149
- Available as part of the Tidelift Subscription
150
-
151
- The maintainers of pako and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-pako?utm_source=npm-pako&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
152
-
153
-
154
132
  Authors
155
133
  -------
156
134