@openclaw/googlechat 2026.9.3 → 2026.9.5

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 (512) hide show
  1. package/assets/activity.svg +40 -0
  2. package/assets/icon.png +0 -0
  3. package/dist/{actions-MrZw34qF.js → .setup/actions-D_u75Cl1.mjs} +9 -6
  4. package/dist/{approval-auth-B3UhTpE1.js → .setup/approval-auth-zoG7zr0K.mjs} +2 -2
  5. package/dist/{approval-handler.runtime-BcfsJERr.js → .setup/approval-handler.runtime-q-31CJwF.mjs} +4 -4
  6. package/dist/{channel-C-lifj0n.js → .setup/channel-CQsHdiW9.mjs} +12 -11
  7. package/dist/{channel.adapters-BjvJ28vf.js → .setup/channel.adapters-BJt3F2XW.mjs} +26 -12
  8. package/dist/{channel.runtime-tG5WjXlo.js → .setup/channel.runtime-DI6OTwJL.mjs} +4 -4
  9. package/dist/{runtime-api-Dh0CNVS4.js → .setup/runtime-api-Cc5ZuXih.mjs} +1 -1
  10. package/dist/.setup/secret-contract-api-DHLd5XO3.mjs +3 -0
  11. package/dist/.setup/setup-plugin-api-C0zTOlHy.mjs +5 -0
  12. package/dist/.setup/setup-plugin-api-DWL3ZytB.mjs +2 -0
  13. package/dist/api.js +2 -2
  14. package/dist/channel-config-api.js +1 -1
  15. package/dist/channel-plugin-api.js +1 -1
  16. package/dist/directory-contract-api.js +1 -1
  17. package/dist/doctor-contract-api.js +1 -1
  18. package/dist/runtime-api.js +2 -2
  19. package/dist/secret-contract-api.js +1 -1
  20. package/dist/setup-entry.js +3 -2
  21. package/dist/setup-plugin-api.js +1 -4
  22. package/node_modules/zod/README.md +27 -0
  23. package/node_modules/zod/compile.cjs +77 -0
  24. package/node_modules/zod/compile.d.cts +1 -0
  25. package/node_modules/zod/compile.d.ts +1 -0
  26. package/node_modules/zod/compile.js +52 -0
  27. package/node_modules/zod/index.cjs +2 -2
  28. package/node_modules/zod/index.d.cts +1 -2
  29. package/node_modules/zod/index.d.ts +1 -2
  30. package/node_modules/zod/index.js +5 -2
  31. package/node_modules/zod/package.json +13 -2
  32. package/node_modules/zod/src/compile.ts +56 -0
  33. package/node_modules/zod/src/index.ts +5 -2
  34. package/node_modules/zod/src/v3/ZodError.ts +22 -12
  35. package/node_modules/zod/src/v3/tests/error.test.ts +35 -0
  36. package/node_modules/zod/src/v3/tests/intersection.test.ts +18 -0
  37. package/node_modules/zod/src/v3/tests/language-server.test.ts +1 -2
  38. package/node_modules/zod/src/v3/tests/object.test.ts +3 -6
  39. package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -80
  40. package/node_modules/zod/src/v3/tests/string.test.ts +6 -0
  41. package/node_modules/zod/src/v3/types.ts +5 -5
  42. package/node_modules/zod/src/v4/classic/checks.ts +1 -0
  43. package/node_modules/zod/src/v4/classic/compat.ts +26 -18
  44. package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
  45. package/node_modules/zod/src/v4/classic/errors.ts +59 -44
  46. package/node_modules/zod/src/v4/classic/external.ts +12 -9
  47. package/node_modules/zod/src/v4/classic/from-json-schema.ts +140 -78
  48. package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
  49. package/node_modules/zod/src/v4/classic/index.ts +2 -2
  50. package/node_modules/zod/src/v4/classic/iso.ts +2 -72
  51. package/node_modules/zod/src/v4/classic/parse.ts +10 -4
  52. package/node_modules/zod/src/v4/classic/schemas.ts +452 -262
  53. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +27 -0
  54. package/node_modules/zod/src/v4/classic/tests/array.test.ts +2 -2
  55. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +135 -0
  56. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +30 -1
  57. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +278 -0
  58. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +1 -2
  59. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +2 -1
  60. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +2 -2
  61. package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
  62. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +720 -0
  63. package/node_modules/zod/src/v4/classic/tests/date.test.ts +30 -0
  64. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +32 -18
  65. package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
  66. package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
  67. package/node_modules/zod/src/v4/classic/tests/default.test.ts +46 -0
  68. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +31 -7
  69. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +155 -13
  70. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +11 -0
  71. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +112 -2
  72. package/node_modules/zod/src/v4/classic/tests/error.test.ts +274 -6
  73. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +425 -10
  74. package/node_modules/zod/src/v4/classic/tests/function.test.ts +31 -0
  75. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +2 -9
  76. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +1 -2
  77. package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
  78. package/node_modules/zod/src/v4/classic/tests/index.test.ts +21 -2
  79. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +281 -0
  80. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +47 -0
  81. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +136 -0
  82. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +183 -0
  83. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +3 -10
  84. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +36 -1
  85. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +12 -1
  86. package/node_modules/zod/src/v4/classic/tests/map.test.ts +12 -0
  87. package/node_modules/zod/src/v4/classic/tests/number.test.ts +46 -9
  88. package/node_modules/zod/src/v4/classic/tests/object.test.ts +245 -12
  89. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +234 -0
  90. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +49 -16
  91. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +51 -4
  92. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +20 -2
  93. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -68
  94. package/node_modules/zod/src/v4/classic/tests/record.test.ts +186 -18
  95. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +33 -2
  96. package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
  97. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +60 -0
  98. package/node_modules/zod/src/v4/classic/tests/set.test.ts +9 -0
  99. package/node_modules/zod/src/v4/classic/tests/string.test.ts +127 -5
  100. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +18 -0
  101. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +11 -2
  102. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +1585 -173
  103. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +45 -30
  104. package/node_modules/zod/src/v4/classic/tests/union.test.ts +39 -2
  105. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +76 -0
  106. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +2 -2
  107. package/node_modules/zod/src/v4/core/api.ts +48 -12
  108. package/node_modules/zod/src/v4/core/checks.ts +57 -44
  109. package/node_modules/zod/src/v4/core/compile.ts +2188 -0
  110. package/node_modules/zod/src/v4/core/core.ts +98 -19
  111. package/node_modules/zod/src/v4/core/doc.ts +11 -7
  112. package/node_modules/zod/src/v4/core/errors.ts +115 -24
  113. package/node_modules/zod/src/v4/core/index.ts +3 -0
  114. package/node_modules/zod/src/v4/core/json-schema-generator.ts +6 -1
  115. package/node_modules/zod/src/v4/core/json-schema-processors.ts +257 -93
  116. package/node_modules/zod/src/v4/core/json-schema.ts +2 -1
  117. package/node_modules/zod/src/v4/core/memoizer.ts +284 -0
  118. package/node_modules/zod/src/v4/core/parse.ts +131 -38
  119. package/node_modules/zod/src/v4/core/regexes.ts +30 -13
  120. package/node_modules/zod/src/v4/core/registries.ts +2 -2
  121. package/node_modules/zod/src/v4/core/schemas.ts +759 -461
  122. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +969 -0
  123. package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
  124. package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
  125. package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
  126. package/node_modules/zod/src/v4/core/tests/compile.test.ts +1639 -0
  127. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +1 -2
  128. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +1 -2
  129. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +3 -3
  130. package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
  131. package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
  132. package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
  133. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +31 -0
  134. package/node_modules/zod/src/v4/core/to-json-schema.ts +275 -42
  135. package/node_modules/zod/src/v4/core/util.ts +268 -42
  136. package/node_modules/zod/src/v4/core/versions.ts +2 -2
  137. package/node_modules/zod/src/v4/core/visit.ts +193 -0
  138. package/node_modules/zod/src/v4/index.ts +3 -3
  139. package/node_modules/zod/src/v4/locales/ar.ts +3 -0
  140. package/node_modules/zod/src/v4/locales/az.ts +3 -0
  141. package/node_modules/zod/src/v4/locales/be.ts +10 -0
  142. package/node_modules/zod/src/v4/locales/bg.ts +3 -0
  143. package/node_modules/zod/src/v4/locales/bn.ts +121 -0
  144. package/node_modules/zod/src/v4/locales/ca.ts +3 -0
  145. package/node_modules/zod/src/v4/locales/ckb.ts +138 -0
  146. package/node_modules/zod/src/v4/locales/cs.ts +3 -0
  147. package/node_modules/zod/src/v4/locales/da.ts +5 -2
  148. package/node_modules/zod/src/v4/locales/de.ts +3 -0
  149. package/node_modules/zod/src/v4/locales/el.ts +1 -0
  150. package/node_modules/zod/src/v4/locales/en.ts +15 -4
  151. package/node_modules/zod/src/v4/locales/eo.ts +3 -0
  152. package/node_modules/zod/src/v4/locales/es.ts +2 -0
  153. package/node_modules/zod/src/v4/locales/fa.ts +3 -0
  154. package/node_modules/zod/src/v4/locales/fi.ts +3 -0
  155. package/node_modules/zod/src/v4/locales/fr-CA.ts +3 -0
  156. package/node_modules/zod/src/v4/locales/fr.ts +19 -14
  157. package/node_modules/zod/src/v4/locales/gu.ts +121 -0
  158. package/node_modules/zod/src/v4/locales/he.ts +6 -1
  159. package/node_modules/zod/src/v4/locales/hi.ts +124 -0
  160. package/node_modules/zod/src/v4/locales/hr.ts +2 -0
  161. package/node_modules/zod/src/v4/locales/hu.ts +3 -0
  162. package/node_modules/zod/src/v4/locales/hy.ts +9 -0
  163. package/node_modules/zod/src/v4/locales/id.ts +3 -0
  164. package/node_modules/zod/src/v4/locales/index.ts +10 -0
  165. package/node_modules/zod/src/v4/locales/is.ts +3 -0
  166. package/node_modules/zod/src/v4/locales/it.ts +3 -0
  167. package/node_modules/zod/src/v4/locales/ja.ts +3 -0
  168. package/node_modules/zod/src/v4/locales/ka.ts +3 -0
  169. package/node_modules/zod/src/v4/locales/km.ts +3 -0
  170. package/node_modules/zod/src/v4/locales/kn.ts +124 -0
  171. package/node_modules/zod/src/v4/locales/ko.ts +3 -0
  172. package/node_modules/zod/src/v4/locales/lt.ts +2 -0
  173. package/node_modules/zod/src/v4/locales/mk.ts +3 -0
  174. package/node_modules/zod/src/v4/locales/ms.ts +3 -0
  175. package/node_modules/zod/src/v4/locales/ne.ts +126 -0
  176. package/node_modules/zod/src/v4/locales/nl.ts +3 -0
  177. package/node_modules/zod/src/v4/locales/nn.ts +119 -0
  178. package/node_modules/zod/src/v4/locales/no.ts +5 -2
  179. package/node_modules/zod/src/v4/locales/ota.ts +3 -0
  180. package/node_modules/zod/src/v4/locales/pl.ts +3 -0
  181. package/node_modules/zod/src/v4/locales/ps.ts +3 -0
  182. package/node_modules/zod/src/v4/locales/pt-BR.ts +159 -0
  183. package/node_modules/zod/src/v4/locales/pt.ts +99 -58
  184. package/node_modules/zod/src/v4/locales/ro.ts +1 -0
  185. package/node_modules/zod/src/v4/locales/ru.ts +10 -0
  186. package/node_modules/zod/src/v4/locales/sk.ts +121 -0
  187. package/node_modules/zod/src/v4/locales/sl.ts +3 -0
  188. package/node_modules/zod/src/v4/locales/sv.ts +5 -2
  189. package/node_modules/zod/src/v4/locales/ta.ts +3 -0
  190. package/node_modules/zod/src/v4/locales/th.ts +3 -0
  191. package/node_modules/zod/src/v4/locales/tk.ts +111 -0
  192. package/node_modules/zod/src/v4/locales/tr.ts +3 -0
  193. package/node_modules/zod/src/v4/locales/uk.ts +3 -0
  194. package/node_modules/zod/src/v4/locales/ur.ts +3 -0
  195. package/node_modules/zod/src/v4/locales/uz.ts +1 -0
  196. package/node_modules/zod/src/v4/locales/vi.ts +3 -0
  197. package/node_modules/zod/src/v4/locales/yo.ts +3 -0
  198. package/node_modules/zod/src/v4/locales/zh-CN.ts +3 -0
  199. package/node_modules/zod/src/v4/locales/zh-TW.ts +3 -0
  200. package/node_modules/zod/src/v4/mini/checks.ts +1 -0
  201. package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
  202. package/node_modules/zod/src/v4/mini/external.ts +10 -1
  203. package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
  204. package/node_modules/zod/src/v4/mini/parse.ts +2 -0
  205. package/node_modules/zod/src/v4/mini/schemas.ts +135 -56
  206. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +33 -0
  207. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +62 -1
  208. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +14 -0
  209. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +35 -1
  210. package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
  211. package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
  212. package/node_modules/zod/src/v4/mini/tests/error.test.ts +23 -4
  213. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +9 -0
  214. package/node_modules/zod/src/v4/mini/tests/index.test.ts +72 -5
  215. package/node_modules/zod/src/v4/mini/tests/number.test.ts +14 -0
  216. package/node_modules/zod/src/v4/mini/tests/object.test.ts +65 -0
  217. package/node_modules/zod/src/v4/mini/tests/string.test.ts +21 -0
  218. package/node_modules/zod/v3/ZodError.cjs +22 -12
  219. package/node_modules/zod/v3/ZodError.d.cts +1 -1
  220. package/node_modules/zod/v3/ZodError.d.ts +1 -1
  221. package/node_modules/zod/v3/ZodError.js +22 -12
  222. package/node_modules/zod/v3/types.cjs +7 -5
  223. package/node_modules/zod/v3/types.js +7 -5
  224. package/node_modules/zod/v4/classic/checks.cjs +2 -1
  225. package/node_modules/zod/v4/classic/checks.d.cts +1 -1
  226. package/node_modules/zod/v4/classic/checks.d.ts +1 -1
  227. package/node_modules/zod/v4/classic/checks.js +1 -1
  228. package/node_modules/zod/v4/classic/compat.d.cts +9 -11
  229. package/node_modules/zod/v4/classic/compat.d.ts +9 -11
  230. package/node_modules/zod/v4/classic/deep-partial.cjs +39 -0
  231. package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
  232. package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
  233. package/node_modules/zod/v4/classic/deep-partial.js +13 -0
  234. package/node_modules/zod/v4/classic/errors.cjs +43 -34
  235. package/node_modules/zod/v4/classic/errors.d.cts +3 -4
  236. package/node_modules/zod/v4/classic/errors.d.ts +3 -4
  237. package/node_modules/zod/v4/classic/errors.js +43 -34
  238. package/node_modules/zod/v4/classic/external.cjs +30 -27
  239. package/node_modules/zod/v4/classic/external.d.cts +5 -2
  240. package/node_modules/zod/v4/classic/external.d.ts +5 -2
  241. package/node_modules/zod/v4/classic/external.js +5 -8
  242. package/node_modules/zod/v4/classic/from-json-schema.cjs +136 -75
  243. package/node_modules/zod/v4/classic/from-json-schema.js +136 -75
  244. package/node_modules/zod/v4/classic/in-out.cjs +63 -0
  245. package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
  246. package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
  247. package/node_modules/zod/v4/classic/in-out.js +36 -0
  248. package/node_modules/zod/v4/classic/index.cjs +2 -2
  249. package/node_modules/zod/v4/classic/index.d.cts +1 -2
  250. package/node_modules/zod/v4/classic/index.d.ts +1 -2
  251. package/node_modules/zod/v4/classic/index.js +2 -2
  252. package/node_modules/zod/v4/classic/iso.cjs +11 -22
  253. package/node_modules/zod/v4/classic/iso.d.cts +2 -17
  254. package/node_modules/zod/v4/classic/iso.d.ts +2 -17
  255. package/node_modules/zod/v4/classic/iso.js +2 -17
  256. package/node_modules/zod/v4/classic/parse.cjs +4 -1
  257. package/node_modules/zod/v4/classic/parse.d.cts +17 -4
  258. package/node_modules/zod/v4/classic/parse.d.ts +17 -4
  259. package/node_modules/zod/v4/classic/parse.js +1 -0
  260. package/node_modules/zod/v4/classic/schemas.cjs +498 -398
  261. package/node_modules/zod/v4/classic/schemas.d.cts +53 -18
  262. package/node_modules/zod/v4/classic/schemas.d.ts +53 -18
  263. package/node_modules/zod/v4/classic/schemas.js +492 -396
  264. package/node_modules/zod/v4/core/api.cjs +23 -4
  265. package/node_modules/zod/v4/core/api.d.cts +13 -9
  266. package/node_modules/zod/v4/core/api.d.ts +13 -9
  267. package/node_modules/zod/v4/core/api.js +21 -4
  268. package/node_modules/zod/v4/core/checks.cjs +37 -31
  269. package/node_modules/zod/v4/core/checks.d.cts +13 -13
  270. package/node_modules/zod/v4/core/checks.d.ts +13 -13
  271. package/node_modules/zod/v4/core/checks.js +37 -31
  272. package/node_modules/zod/v4/core/compile.cjs +1813 -0
  273. package/node_modules/zod/v4/core/compile.d.cts +51 -0
  274. package/node_modules/zod/v4/core/compile.d.ts +51 -0
  275. package/node_modules/zod/v4/core/compile.js +1783 -0
  276. package/node_modules/zod/v4/core/core.cjs +81 -18
  277. package/node_modules/zod/v4/core/core.d.cts +16 -4
  278. package/node_modules/zod/v4/core/core.d.ts +16 -4
  279. package/node_modules/zod/v4/core/core.js +82 -19
  280. package/node_modules/zod/v4/core/doc.cjs +5 -7
  281. package/node_modules/zod/v4/core/doc.d.cts +3 -1
  282. package/node_modules/zod/v4/core/doc.d.ts +3 -1
  283. package/node_modules/zod/v4/core/doc.js +5 -7
  284. package/node_modules/zod/v4/core/errors.cjs +110 -25
  285. package/node_modules/zod/v4/core/errors.d.cts +4 -0
  286. package/node_modules/zod/v4/core/errors.d.ts +4 -0
  287. package/node_modules/zod/v4/core/errors.js +110 -25
  288. package/node_modules/zod/v4/core/index.cjs +5 -1
  289. package/node_modules/zod/v4/core/index.d.cts +3 -0
  290. package/node_modules/zod/v4/core/index.d.ts +3 -0
  291. package/node_modules/zod/v4/core/index.js +3 -0
  292. package/node_modules/zod/v4/core/json-schema-generator.cjs +4 -0
  293. package/node_modules/zod/v4/core/json-schema-generator.d.cts +2 -2
  294. package/node_modules/zod/v4/core/json-schema-generator.d.ts +2 -2
  295. package/node_modules/zod/v4/core/json-schema-generator.js +4 -0
  296. package/node_modules/zod/v4/core/json-schema-processors.cjs +264 -95
  297. package/node_modules/zod/v4/core/json-schema-processors.js +243 -97
  298. package/node_modules/zod/v4/core/json-schema.d.cts +2 -1
  299. package/node_modules/zod/v4/core/json-schema.d.ts +2 -1
  300. package/node_modules/zod/v4/core/memoizer.cjs +272 -0
  301. package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
  302. package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
  303. package/node_modules/zod/v4/core/memoizer.js +265 -0
  304. package/node_modules/zod/v4/core/parse.cjs +96 -34
  305. package/node_modules/zod/v4/core/parse.d.cts +14 -11
  306. package/node_modules/zod/v4/core/parse.d.ts +14 -11
  307. package/node_modules/zod/v4/core/parse.js +94 -33
  308. package/node_modules/zod/v4/core/regexes.cjs +27 -15
  309. package/node_modules/zod/v4/core/regexes.d.cts +2 -0
  310. package/node_modules/zod/v4/core/regexes.d.ts +2 -0
  311. package/node_modules/zod/v4/core/regexes.js +24 -13
  312. package/node_modules/zod/v4/core/registries.js +2 -2
  313. package/node_modules/zod/v4/core/schemas.cjs +537 -326
  314. package/node_modules/zod/v4/core/schemas.d.cts +100 -31
  315. package/node_modules/zod/v4/core/schemas.d.ts +100 -31
  316. package/node_modules/zod/v4/core/schemas.js +526 -325
  317. package/node_modules/zod/v4/core/to-json-schema.cjs +242 -39
  318. package/node_modules/zod/v4/core/to-json-schema.d.cts +42 -3
  319. package/node_modules/zod/v4/core/to-json-schema.d.ts +42 -3
  320. package/node_modules/zod/v4/core/to-json-schema.js +241 -39
  321. package/node_modules/zod/v4/core/util.cjs +212 -31
  322. package/node_modules/zod/v4/core/util.d.cts +58 -1
  323. package/node_modules/zod/v4/core/util.d.ts +58 -1
  324. package/node_modules/zod/v4/core/util.js +202 -30
  325. package/node_modules/zod/v4/core/versions.cjs +2 -2
  326. package/node_modules/zod/v4/core/versions.d.cts +1 -1
  327. package/node_modules/zod/v4/core/versions.d.ts +1 -1
  328. package/node_modules/zod/v4/core/versions.js +2 -2
  329. package/node_modules/zod/v4/core/visit.cjs +195 -0
  330. package/node_modules/zod/v4/core/visit.d.cts +30 -0
  331. package/node_modules/zod/v4/core/visit.d.ts +30 -0
  332. package/node_modules/zod/v4/core/visit.js +169 -0
  333. package/node_modules/zod/v4/index.cjs +15 -5
  334. package/node_modules/zod/v4/index.d.cts +2 -2
  335. package/node_modules/zod/v4/index.d.ts +2 -2
  336. package/node_modules/zod/v4/index.js +3 -2
  337. package/node_modules/zod/v4/locales/ar.cjs +3 -0
  338. package/node_modules/zod/v4/locales/ar.js +3 -0
  339. package/node_modules/zod/v4/locales/az.cjs +3 -0
  340. package/node_modules/zod/v4/locales/az.js +3 -0
  341. package/node_modules/zod/v4/locales/be.cjs +10 -0
  342. package/node_modules/zod/v4/locales/be.js +10 -0
  343. package/node_modules/zod/v4/locales/bg.cjs +3 -0
  344. package/node_modules/zod/v4/locales/bg.js +3 -0
  345. package/node_modules/zod/v4/locales/bn.cjs +138 -0
  346. package/node_modules/zod/v4/locales/bn.d.cts +5 -0
  347. package/node_modules/zod/v4/locales/bn.d.ts +4 -0
  348. package/node_modules/zod/v4/locales/bn.js +111 -0
  349. package/node_modules/zod/v4/locales/ca.cjs +3 -0
  350. package/node_modules/zod/v4/locales/ca.js +3 -0
  351. package/node_modules/zod/v4/locales/ckb.cjs +158 -0
  352. package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
  353. package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
  354. package/node_modules/zod/v4/locales/ckb.js +131 -0
  355. package/node_modules/zod/v4/locales/cs.cjs +3 -0
  356. package/node_modules/zod/v4/locales/cs.js +3 -0
  357. package/node_modules/zod/v4/locales/da.cjs +5 -2
  358. package/node_modules/zod/v4/locales/da.js +5 -2
  359. package/node_modules/zod/v4/locales/de.cjs +3 -0
  360. package/node_modules/zod/v4/locales/de.js +3 -0
  361. package/node_modules/zod/v4/locales/el.cjs +1 -0
  362. package/node_modules/zod/v4/locales/el.js +1 -0
  363. package/node_modules/zod/v4/locales/en.cjs +14 -4
  364. package/node_modules/zod/v4/locales/en.js +14 -4
  365. package/node_modules/zod/v4/locales/eo.cjs +3 -0
  366. package/node_modules/zod/v4/locales/eo.js +3 -0
  367. package/node_modules/zod/v4/locales/es.cjs +2 -0
  368. package/node_modules/zod/v4/locales/es.js +2 -0
  369. package/node_modules/zod/v4/locales/fa.cjs +3 -0
  370. package/node_modules/zod/v4/locales/fa.js +3 -0
  371. package/node_modules/zod/v4/locales/fi.cjs +3 -0
  372. package/node_modules/zod/v4/locales/fi.js +3 -0
  373. package/node_modules/zod/v4/locales/fr-CA.cjs +3 -0
  374. package/node_modules/zod/v4/locales/fr-CA.js +3 -0
  375. package/node_modules/zod/v4/locales/fr.cjs +16 -14
  376. package/node_modules/zod/v4/locales/fr.js +16 -14
  377. package/node_modules/zod/v4/locales/gu.cjs +138 -0
  378. package/node_modules/zod/v4/locales/gu.d.cts +5 -0
  379. package/node_modules/zod/v4/locales/gu.d.ts +4 -0
  380. package/node_modules/zod/v4/locales/gu.js +111 -0
  381. package/node_modules/zod/v4/locales/he.cjs +5 -0
  382. package/node_modules/zod/v4/locales/he.js +5 -0
  383. package/node_modules/zod/v4/locales/hi.cjs +136 -0
  384. package/node_modules/zod/v4/locales/hi.d.cts +5 -0
  385. package/node_modules/zod/v4/locales/hi.d.ts +4 -0
  386. package/node_modules/zod/v4/locales/hi.js +109 -0
  387. package/node_modules/zod/v4/locales/hr.cjs +2 -0
  388. package/node_modules/zod/v4/locales/hr.js +2 -0
  389. package/node_modules/zod/v4/locales/hu.cjs +3 -0
  390. package/node_modules/zod/v4/locales/hu.js +3 -0
  391. package/node_modules/zod/v4/locales/hy.cjs +9 -0
  392. package/node_modules/zod/v4/locales/hy.js +9 -0
  393. package/node_modules/zod/v4/locales/id.cjs +3 -0
  394. package/node_modules/zod/v4/locales/id.js +3 -0
  395. package/node_modules/zod/v4/locales/index.cjs +22 -2
  396. package/node_modules/zod/v4/locales/index.d.cts +10 -0
  397. package/node_modules/zod/v4/locales/index.d.ts +10 -0
  398. package/node_modules/zod/v4/locales/index.js +10 -0
  399. package/node_modules/zod/v4/locales/is.cjs +3 -0
  400. package/node_modules/zod/v4/locales/is.js +3 -0
  401. package/node_modules/zod/v4/locales/it.cjs +3 -0
  402. package/node_modules/zod/v4/locales/it.js +3 -0
  403. package/node_modules/zod/v4/locales/ja.cjs +3 -0
  404. package/node_modules/zod/v4/locales/ja.js +3 -0
  405. package/node_modules/zod/v4/locales/ka.cjs +3 -0
  406. package/node_modules/zod/v4/locales/ka.js +3 -0
  407. package/node_modules/zod/v4/locales/km.cjs +3 -0
  408. package/node_modules/zod/v4/locales/km.js +3 -0
  409. package/node_modules/zod/v4/locales/kn.cjs +141 -0
  410. package/node_modules/zod/v4/locales/kn.d.cts +5 -0
  411. package/node_modules/zod/v4/locales/kn.d.ts +4 -0
  412. package/node_modules/zod/v4/locales/kn.js +114 -0
  413. package/node_modules/zod/v4/locales/ko.cjs +3 -0
  414. package/node_modules/zod/v4/locales/ko.js +3 -0
  415. package/node_modules/zod/v4/locales/lt.cjs +2 -0
  416. package/node_modules/zod/v4/locales/lt.js +2 -0
  417. package/node_modules/zod/v4/locales/mk.cjs +3 -0
  418. package/node_modules/zod/v4/locales/mk.js +3 -0
  419. package/node_modules/zod/v4/locales/ms.cjs +3 -0
  420. package/node_modules/zod/v4/locales/ms.js +3 -0
  421. package/node_modules/zod/v4/locales/ne.cjs +136 -0
  422. package/node_modules/zod/v4/locales/ne.d.cts +5 -0
  423. package/node_modules/zod/v4/locales/ne.d.ts +4 -0
  424. package/node_modules/zod/v4/locales/ne.js +109 -0
  425. package/node_modules/zod/v4/locales/nl.cjs +3 -0
  426. package/node_modules/zod/v4/locales/nl.js +3 -0
  427. package/node_modules/zod/v4/locales/nn.cjs +138 -0
  428. package/node_modules/zod/v4/locales/nn.d.cts +5 -0
  429. package/node_modules/zod/v4/locales/nn.d.ts +4 -0
  430. package/node_modules/zod/v4/locales/nn.js +111 -0
  431. package/node_modules/zod/v4/locales/no.cjs +5 -2
  432. package/node_modules/zod/v4/locales/no.js +5 -2
  433. package/node_modules/zod/v4/locales/ota.cjs +3 -0
  434. package/node_modules/zod/v4/locales/ota.js +3 -0
  435. package/node_modules/zod/v4/locales/pl.cjs +3 -0
  436. package/node_modules/zod/v4/locales/pl.js +3 -0
  437. package/node_modules/zod/v4/locales/ps.cjs +3 -0
  438. package/node_modules/zod/v4/locales/ps.js +3 -0
  439. package/node_modules/zod/v4/locales/pt-BR.cjs +168 -0
  440. package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
  441. package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
  442. package/node_modules/zod/v4/locales/pt-BR.js +141 -0
  443. package/node_modules/zod/v4/locales/pt.cjs +87 -55
  444. package/node_modules/zod/v4/locales/pt.js +87 -55
  445. package/node_modules/zod/v4/locales/ro.cjs +1 -0
  446. package/node_modules/zod/v4/locales/ro.js +1 -0
  447. package/node_modules/zod/v4/locales/ru.cjs +10 -0
  448. package/node_modules/zod/v4/locales/ru.js +10 -0
  449. package/node_modules/zod/v4/locales/sk.cjs +141 -0
  450. package/node_modules/zod/v4/locales/sk.d.cts +5 -0
  451. package/node_modules/zod/v4/locales/sk.d.ts +4 -0
  452. package/node_modules/zod/v4/locales/sk.js +114 -0
  453. package/node_modules/zod/v4/locales/sl.cjs +3 -0
  454. package/node_modules/zod/v4/locales/sl.js +3 -0
  455. package/node_modules/zod/v4/locales/sv.cjs +5 -2
  456. package/node_modules/zod/v4/locales/sv.js +5 -2
  457. package/node_modules/zod/v4/locales/ta.cjs +3 -0
  458. package/node_modules/zod/v4/locales/ta.js +3 -0
  459. package/node_modules/zod/v4/locales/th.cjs +3 -0
  460. package/node_modules/zod/v4/locales/th.js +3 -0
  461. package/node_modules/zod/v4/locales/tk.cjs +132 -0
  462. package/node_modules/zod/v4/locales/tk.d.cts +5 -0
  463. package/node_modules/zod/v4/locales/tk.d.ts +4 -0
  464. package/node_modules/zod/v4/locales/tk.js +105 -0
  465. package/node_modules/zod/v4/locales/tr.cjs +3 -0
  466. package/node_modules/zod/v4/locales/tr.js +3 -0
  467. package/node_modules/zod/v4/locales/uk.cjs +3 -0
  468. package/node_modules/zod/v4/locales/uk.js +3 -0
  469. package/node_modules/zod/v4/locales/ur.cjs +3 -0
  470. package/node_modules/zod/v4/locales/ur.js +3 -0
  471. package/node_modules/zod/v4/locales/uz.cjs +1 -0
  472. package/node_modules/zod/v4/locales/uz.js +1 -0
  473. package/node_modules/zod/v4/locales/vi.cjs +3 -0
  474. package/node_modules/zod/v4/locales/vi.js +3 -0
  475. package/node_modules/zod/v4/locales/yo.cjs +3 -0
  476. package/node_modules/zod/v4/locales/yo.js +3 -0
  477. package/node_modules/zod/v4/locales/zh-CN.cjs +3 -0
  478. package/node_modules/zod/v4/locales/zh-CN.js +3 -0
  479. package/node_modules/zod/v4/locales/zh-TW.cjs +3 -0
  480. package/node_modules/zod/v4/locales/zh-TW.js +3 -0
  481. package/node_modules/zod/v4/mini/checks.cjs +2 -1
  482. package/node_modules/zod/v4/mini/checks.d.cts +1 -1
  483. package/node_modules/zod/v4/mini/checks.d.ts +1 -1
  484. package/node_modules/zod/v4/mini/checks.js +1 -1
  485. package/node_modules/zod/v4/mini/deep-partial.cjs +39 -0
  486. package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
  487. package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
  488. package/node_modules/zod/v4/mini/deep-partial.js +13 -0
  489. package/node_modules/zod/v4/mini/external.cjs +12 -1
  490. package/node_modules/zod/v4/mini/external.d.cts +5 -2
  491. package/node_modules/zod/v4/mini/external.d.ts +5 -2
  492. package/node_modules/zod/v4/mini/external.js +3 -1
  493. package/node_modules/zod/v4/mini/in-out.cjs +63 -0
  494. package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
  495. package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
  496. package/node_modules/zod/v4/mini/in-out.js +36 -0
  497. package/node_modules/zod/v4/mini/parse.cjs +3 -1
  498. package/node_modules/zod/v4/mini/parse.d.cts +1 -1
  499. package/node_modules/zod/v4/mini/parse.d.ts +1 -1
  500. package/node_modules/zod/v4/mini/parse.js +1 -1
  501. package/node_modules/zod/v4/mini/schemas.cjs +75 -47
  502. package/node_modules/zod/v4/mini/schemas.d.cts +43 -13
  503. package/node_modules/zod/v4/mini/schemas.d.ts +43 -13
  504. package/node_modules/zod/v4/mini/schemas.js +71 -45
  505. package/openclaw.plugin.json +21 -42
  506. package/package.json +9 -6
  507. package/node_modules/zod/src/v4/core/config.ts +0 -15
  508. /package/dist/{approval-card-text-ChngxXdJ.js → .setup/approval-card-text-ChngxXdJ.mjs} +0 -0
  509. /package/dist/{channel-base-B3EzcV7X.js → .setup/channel-base-B3EzcV7X.mjs} +0 -0
  510. /package/dist/{config-api-CsD0IFxF.js → .setup/config-api-CsD0IFxF.mjs} +0 -0
  511. /package/dist/{doctor-contract-BLvSmTXT.js → .setup/doctor-contract-BLvSmTXT.mjs} +0 -0
  512. /package/dist/{secret-contract-DmWM0kwM.js → .setup/secret-contract-DmWM0kwM.mjs} +0 -0
@@ -0,0 +1,40 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
+ <!--
3
+ Source: simple-icons@16.31.0, icons/googlechat.svg
4
+ https://www.npmjs.com/package/simple-icons/v/16.31.0
5
+ https://github.com/simple-icons/simple-icons
6
+
7
+ # CC0 1.0 Universal
8
+
9
+ ## Statement of Purpose
10
+
11
+ The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an “owner”) of an original work of authorship and/or a database (each, a “Work”).
12
+
13
+ Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works (“Commons”) that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others.
14
+
15
+ For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the “Affirmer”), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights.
16
+
17
+ 1. Copyright and Related Rights. A Work made available under CC0 may be protected by copyright and related or neighboring rights (“Copyright and Related Rights”). Copyright and Related Rights include, but are not limited to, the following:
18
+ 1. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work;
19
+ 2. moral rights retained by the original author(s) and/or performer(s);
20
+ 3. publicity and privacy rights pertaining to a person’s image or likeness depicted in a Work;
21
+ 4. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(i), below;
22
+ 5. rights protecting the extraction, dissemination, use and reuse of data in a Work;
23
+ 6. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and
24
+ 7. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof.
25
+
26
+ 2. Waiver. To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer’s Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the “Waiver”). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer’s heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer’s express Statement of Purpose.
27
+
28
+ 3. Public License Fallback. Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer’s express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer’s Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the “License”). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer’s express Statement of Purpose.
29
+
30
+ 4. Limitations and Disclaimers.
31
+ 1. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document.
32
+ 2. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law.
33
+ 3. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person’s Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work.
34
+ 4. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work.
35
+
36
+ For more information, please see <https://creativecommons.org/publicdomain/zero/1.0>.
37
+ Names and marks remain the property of their respective owners.
38
+ -->
39
+ <path fill="currentColor" stroke="none" d="M1.637 0C.733 0 0 .733 0 1.637v16.5c0 .904.733 1.636 1.637 1.636h3.955v3.323c0 .804.97 1.207 1.539.638l3.963-3.96h11.27c.903 0 1.636-.733 1.636-1.637V5.592L18.408 0Zm3.955 5.592h12.816v8.59H8.455l-2.863 2.863Z" />
40
+ </svg>
Binary file
@@ -1,6 +1,6 @@
1
- import { l as resolveGoogleChatAccount } from "./channel-base-B3EzcV7X.js";
2
- import { g as resolveGoogleChatOutboundSpace, x as sendGoogleChatMessage } from "./channel.adapters-BjvJ28vf.js";
3
- import { n as describeGoogleChatMessageTool } from "./channel-C-lifj0n.js";
1
+ import { l as resolveGoogleChatAccount } from "./channel-base-B3EzcV7X.mjs";
2
+ import { g as resolveGoogleChatOutboundSpace, x as sendGoogleChatMessage } from "./channel.adapters-BJt3F2XW.mjs";
3
+ import { n as describeGoogleChatMessageTool } from "./channel-CQsHdiW9.mjs";
4
4
  import { extractToolSend } from "openclaw/plugin-sdk/tool-send";
5
5
  import { jsonResult, readStringArrayParam, readStringParam } from "openclaw/plugin-sdk/channel-actions";
6
6
  //#region extensions/googlechat/src/actions.ts
@@ -29,7 +29,7 @@ const googlechatMessageActions = {
29
29
  extractToolSend: ({ args }) => {
30
30
  return extractToolSend(args, "sendMessage");
31
31
  },
32
- handleAction: async ({ action, params, cfg, accountId }) => {
32
+ handleAction: async ({ action, params, cfg, accountId, assertDirectAdapterHandoff, onPlatformSendDispatch }) => {
33
33
  if (action === "upload-file") throw new Error("Google Chat outbound attachments require user OAuth and are not supported by this service-account channel.");
34
34
  if (action === "send") {
35
35
  if (hasGoogleChatOutboundAttachment(params)) throw new Error("Google Chat outbound attachments require user OAuth and are not supported by this service-account channel.");
@@ -48,13 +48,16 @@ const googlechatMessageActions = {
48
48
  const threadId = readStringParam(params, "threadId") ?? readStringParam(params, "replyTo");
49
49
  const space = await resolveGoogleChatOutboundSpace({
50
50
  account,
51
- target: to
51
+ target: to,
52
+ assertDirectAdapterHandoff
52
53
  });
53
54
  const sent = await sendGoogleChatMessage({
54
55
  account,
55
56
  space,
56
57
  text: content,
57
- thread: threadId ?? void 0
58
+ thread: threadId ?? void 0,
59
+ assertDirectAdapterHandoff,
60
+ onPlatformSendDispatch
58
61
  });
59
62
  return jsonResult({
60
63
  ok: true,
@@ -1,5 +1,5 @@
1
- import { l as resolveGoogleChatAccount } from "./channel-base-B3EzcV7X.js";
2
- import { m as normalizeGoogleChatTarget, p as isGoogleChatUserTarget } from "./channel.adapters-BjvJ28vf.js";
1
+ import { l as resolveGoogleChatAccount } from "./channel-base-B3EzcV7X.mjs";
2
+ import { m as normalizeGoogleChatTarget, p as isGoogleChatUserTarget } from "./channel.adapters-BJt3F2XW.mjs";
3
3
  import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
4
4
  import { createChannelApprovalAuth } from "openclaw/plugin-sdk/approval-auth-runtime";
5
5
  //#region extensions/googlechat/src/approval-auth.ts
@@ -1,7 +1,7 @@
1
- import { l as resolveGoogleChatAccount } from "./channel-base-B3EzcV7X.js";
2
- import { A as unregisterGoogleChatManualApprovalFollowupSuppression, E as googleChatApprovalControls, O as registerGoogleChatApprovalCardBinding, S as updateGoogleChatMessage, T as buildGoogleChatApprovalActionParameters, g as resolveGoogleChatOutboundSpace, k as registerGoogleChatManualApprovalFollowupSuppression, w as GOOGLECHAT_APPROVAL_ACTION, x as sendGoogleChatMessage } from "./channel.adapters-BjvJ28vf.js";
3
- import { i as shouldHandleGoogleChatNativeApprovalRequest, r as isGoogleChatNativeApprovalClientEnabled } from "./channel-C-lifj0n.js";
4
- import { t as escapeGoogleChatApprovalCardText } from "./approval-card-text-ChngxXdJ.js";
1
+ import { l as resolveGoogleChatAccount } from "./channel-base-B3EzcV7X.mjs";
2
+ import { A as unregisterGoogleChatManualApprovalFollowupSuppression, E as googleChatApprovalControls, O as registerGoogleChatApprovalCardBinding, S as updateGoogleChatMessage, T as buildGoogleChatApprovalActionParameters, g as resolveGoogleChatOutboundSpace, k as registerGoogleChatManualApprovalFollowupSuppression, w as GOOGLECHAT_APPROVAL_ACTION, x as sendGoogleChatMessage } from "./channel.adapters-BJt3F2XW.mjs";
3
+ import { i as shouldHandleGoogleChatNativeApprovalRequest, r as isGoogleChatNativeApprovalClientEnabled } from "./channel-CQsHdiW9.mjs";
4
+ import { t as escapeGoogleChatApprovalCardText } from "./approval-card-text-ChngxXdJ.mjs";
5
5
  import { buildChannelApprovalNativeTargetKey } from "openclaw/plugin-sdk/approval-native-runtime";
6
6
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
7
7
  import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
@@ -1,10 +1,10 @@
1
- import { c as resolveDefaultGoogleChatAccountId, l as resolveGoogleChatAccount, n as createGoogleChatPluginBase, o as inspectGoogleChatAccount, s as listGoogleChatAccountIds, t as GOOGLECHAT_CHANNEL_ID } from "./channel-base-B3EzcV7X.js";
2
- import { a as googlechatPairingTextAdapter, f as isGoogleChatSpaceTarget, h as resolveGoogleChatOutboundSessionRoute, i as googlechatOutboundAdapter, m as normalizeGoogleChatTarget, n as googlechatGroupsAdapter, o as googlechatSecurityAdapter, p as isGoogleChatUserTarget, r as googlechatMessageAdapter, s as googlechatThreadingAdapter, t as googlechatDirectoryAdapter } from "./channel.adapters-BjvJ28vf.js";
3
- import { n as buildChannelConfigSchema, t as GoogleChatConfigSchema } from "./config-api-CsD0IFxF.js";
4
- import { t as DEFAULT_ACCOUNT_ID } from "./runtime-api-Dh0CNVS4.js";
5
- import { n as googleChatApprovalAuth, r as normalizeGoogleChatApproverId, t as getGoogleChatApprovalApprovers } from "./approval-auth-B3UhTpE1.js";
6
- import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-BLvSmTXT.js";
7
- import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-DmWM0kwM.js";
1
+ import { c as resolveDefaultGoogleChatAccountId, l as resolveGoogleChatAccount, n as createGoogleChatPluginBase, o as inspectGoogleChatAccount, s as listGoogleChatAccountIds, t as GOOGLECHAT_CHANNEL_ID } from "./channel-base-B3EzcV7X.mjs";
2
+ import { a as googlechatPairingTextAdapter, f as isGoogleChatSpaceTarget, h as resolveGoogleChatOutboundSessionRoute, i as googlechatOutboundAdapter, m as normalizeGoogleChatTarget, n as googlechatGroupsAdapter, o as googlechatSecurityAdapter, p as isGoogleChatUserTarget, r as googlechatMessageAdapter, s as googlechatThreadingAdapter, t as googlechatDirectoryAdapter } from "./channel.adapters-BJt3F2XW.mjs";
3
+ import { n as buildChannelConfigSchema, t as GoogleChatConfigSchema } from "./config-api-CsD0IFxF.mjs";
4
+ import { t as DEFAULT_ACCOUNT_ID } from "./runtime-api-Cc5ZuXih.mjs";
5
+ import { n as googleChatApprovalAuth, r as normalizeGoogleChatApproverId, t as getGoogleChatApprovalApprovers } from "./approval-auth-zoG7zr0K.mjs";
6
+ import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-BLvSmTXT.mjs";
7
+ import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-DmWM0kwM.mjs";
8
8
  import { createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
9
9
  import { buildPassiveProbedChannelStatusSummary } from "openclaw/plugin-sdk/extension-shared";
10
10
  import { createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
@@ -133,6 +133,7 @@ const googleChatApprovalCapability = createApproverRestrictedNativeApprovalCapab
133
133
  resolveOriginTarget: resolveGoogleChatOriginTarget,
134
134
  resolveApproverDmTargets: resolveGoogleChatApproverDmTargets,
135
135
  nativeRuntime: createLazyChannelApprovalNativeRuntimeAdapter({
136
+ capabilityBoundary: true,
136
137
  eventKinds: [
137
138
  "exec",
138
139
  "plugin",
@@ -148,7 +149,7 @@ const googleChatApprovalCapability = createApproverRestrictedNativeApprovalCapab
148
149
  approvalKind,
149
150
  request
150
151
  }),
151
- load: async () => (await import("./approval-handler.runtime-BcfsJERr.js")).googleChatApprovalNativeRuntime
152
+ load: async () => (await import("./approval-handler.runtime-q-31CJwF.mjs")).googleChatApprovalNativeRuntime
152
153
  })
153
154
  });
154
155
  //#endregion
@@ -172,7 +173,7 @@ const collectGoogleChatMutableAllowlistWarnings = createDangerousNameMatchingMut
172
173
  });
173
174
  //#endregion
174
175
  //#region extensions/googlechat/src/gateway.ts
175
- const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-tG5WjXlo.js"), "googleChatChannelRuntime");
176
+ const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-DI6OTwJL.mjs"), "googleChatChannelRuntime");
176
177
  const UNRESOLVED_WEBHOOK_URL_ERROR = "Invalid webhookUrl: expected an absolute URL such as https://chat.example.com/googlechat. No inbound webhook route was registered.";
177
178
  async function startGoogleChatGatewayAccount(ctx) {
178
179
  const account = ctx.account;
@@ -250,13 +251,13 @@ function describeGoogleChatMessageTool({ cfg, accountId }) {
250
251
  }
251
252
  //#endregion
252
253
  //#region extensions/googlechat/src/channel.ts
253
- const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-tG5WjXlo.js"), "googleChatChannelRuntime");
254
+ const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-DI6OTwJL.mjs"), "googleChatChannelRuntime");
254
255
  const googlechatActions = {
255
256
  describeMessageTool: describeGoogleChatMessageTool,
256
257
  supportsAction: ({ action }) => action === "send",
257
258
  extractToolSend: ({ args }) => extractToolSend(args, "sendMessage"),
258
259
  handleAction: async (ctx) => {
259
- const { googlechatMessageActions } = await import("./actions-MrZw34qF.js");
260
+ const { googlechatMessageActions } = await import("./actions-D_u75Cl1.mjs");
260
261
  if (!googlechatMessageActions.handleAction) throw new Error("Google Chat actions are not available.");
261
262
  return await googlechatMessageActions.handleAction(ctx);
262
263
  }
@@ -1,5 +1,5 @@
1
- import { l as resolveGoogleChatAccount, r as formatGoogleChatAllowFromEntry, u as MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES } from "./channel-base-B3EzcV7X.js";
2
- import { d as fetchWithSsrFGuard$1, m as missingTargetError, r as PAIRING_APPROVED_MESSAGE } from "./runtime-api-Dh0CNVS4.js";
1
+ import { l as resolveGoogleChatAccount, r as formatGoogleChatAllowFromEntry, u as MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES } from "./channel-base-B3EzcV7X.mjs";
2
+ import { d as fetchWithSsrFGuard$1, m as missingTargetError, r as PAIRING_APPROVED_MESSAGE } from "./runtime-api-Cc5ZuXih.mjs";
3
3
  import { buildChannelOutboundSessionRoute } from "openclaw/plugin-sdk/channel-core";
4
4
  import { createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
5
5
  import { asNullableObjectRecord, normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -600,8 +600,13 @@ async function readGoogleChatErrorResponse(response, label) {
600
600
  }
601
601
  const headersToObject = (headers) => headers instanceof Headers ? Object.fromEntries(headers.entries()) : Array.isArray(headers) ? Object.fromEntries(headers) : headers || {};
602
602
  async function withGoogleChatResponse(params) {
603
- const { account, url, init, auditContext, errorPrefix = "Google Chat API", timeoutMs = GOOGLECHAT_API_TIMEOUT_MS, handleResponse } = params;
603
+ const { account, url, init, auditContext, errorPrefix = "Google Chat API", timeoutMs = GOOGLECHAT_API_TIMEOUT_MS, handleResponse, assertDirectAdapterHandoff, onPlatformSendDispatch } = params;
604
+ assertDirectAdapterHandoff?.();
604
605
  const token = await getGoogleChatAccessToken(account);
606
+ if (onPlatformSendDispatch) {
607
+ assertDirectAdapterHandoff?.();
608
+ await onPlatformSendDispatch();
609
+ }
605
610
  const { response, release } = await fetchWithSsrFGuard({
606
611
  url,
607
612
  init: {
@@ -612,7 +617,8 @@ async function withGoogleChatResponse(params) {
612
617
  }
613
618
  },
614
619
  auditContext,
615
- timeoutMs
620
+ timeoutMs,
621
+ beforeRequest: assertDirectAdapterHandoff
616
622
  });
617
623
  try {
618
624
  if (!response.ok) {
@@ -625,8 +631,9 @@ async function withGoogleChatResponse(params) {
625
631
  await release();
626
632
  }
627
633
  }
628
- async function fetchJson(account, url, init) {
634
+ async function fetchJson(account, url, init, hooks) {
629
635
  return await withGoogleChatResponse({
636
+ ...hooks,
630
637
  account,
631
638
  url,
632
639
  init: {
@@ -698,6 +705,9 @@ async function sendGoogleChatMessage(params) {
698
705
  const result = await fetchJson(account, urlObj.toString(), {
699
706
  method: "POST",
700
707
  body: JSON.stringify(body)
708
+ }, {
709
+ assertDirectAdapterHandoff: params.assertDirectAdapterHandoff,
710
+ onPlatformSendDispatch: params.onPlatformSendDispatch
701
711
  });
702
712
  return result ? {
703
713
  messageName: result.name,
@@ -729,7 +739,7 @@ async function findGoogleChatDirectMessage(params) {
729
739
  const { account, userName } = params;
730
740
  const url = new URL(`${CHAT_API_BASE}/spaces:findDirectMessage`);
731
741
  url.searchParams.set("name", userName);
732
- return await fetchJson(account, url.toString(), { method: "GET" });
742
+ return await fetchJson(account, url.toString(), { method: "GET" }, { assertDirectAdapterHandoff: params.assertDirectAdapterHandoff });
733
743
  }
734
744
  async function getGoogleChatSpace(params) {
735
745
  return await fetchJson(params.account, `${CHAT_API_BASE}/${params.spaceName}`, { method: "GET" });
@@ -790,7 +800,8 @@ async function resolveGoogleChatOutboundSpaceDetails(params) {
790
800
  if (isGoogleChatUserTarget(base)) {
791
801
  const dm = await findGoogleChatDirectMessage({
792
802
  account: params.account,
793
- userName: base
803
+ userName: base,
804
+ assertDirectAdapterHandoff: params.assertDirectAdapterHandoff
794
805
  });
795
806
  if (!dm?.name) throw new Error(`No Google Chat DM found for ${base}`);
796
807
  return {
@@ -1173,7 +1184,7 @@ const googleChatIngressIdentity = defineStableChannelIngressIdentity({
1173
1184
  });
1174
1185
  //#endregion
1175
1186
  //#region extensions/googlechat/src/channel.adapters.ts
1176
- const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-tG5WjXlo.js"), "googleChatChannelRuntime");
1187
+ const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-DI6OTwJL.mjs"), "googleChatChannelRuntime");
1177
1188
  function createGoogleChatSendReceipt(params) {
1178
1189
  const messageId = params.messageId?.trim();
1179
1190
  return createMessageReceiptFromOutboundResults({
@@ -1199,7 +1210,7 @@ const collectGoogleChatGroupPolicyWarnings = createAllowlistProviderOpenWarningC
1199
1210
  const collectGoogleChatOpenGroupFindings = createConditionalWarningCollector.findings({
1200
1211
  collectWarnings: collectGoogleChatGroupPolicyWarnings,
1201
1212
  checkId: "channels.googlechat.groups.open",
1202
- severity: "critical",
1213
+ severity: "warn",
1203
1214
  title: "Google Chat security warning"
1204
1215
  });
1205
1216
  const collectGoogleChatSecurityWarnings = (params) => [...collectGoogleChatOpenGroupFindings(params), ...params.account.config.dmPolicy === "open" ? ["- Google Chat DMs are open to anyone. Set channels.googlechat.dmPolicy=\"pairing\" or \"allowlist\"."] : []];
@@ -1304,14 +1315,15 @@ const googlechatOutboundAdapter = {
1304
1315
  },
1305
1316
  attachedResults: {
1306
1317
  channel: "googlechat",
1307
- sendText: async ({ cfg, to, text, accountId, replyToId, threadId }) => {
1318
+ sendText: async ({ cfg, to, text, accountId, replyToId, threadId, assertDirectAdapterHandoff, onPlatformSendDispatch }) => {
1308
1319
  const account = resolveGoogleChatAccount({
1309
1320
  cfg,
1310
1321
  accountId
1311
1322
  });
1312
1323
  const space = await resolveGoogleChatOutboundSpace({
1313
1324
  account,
1314
- target: to
1325
+ target: to,
1326
+ assertDirectAdapterHandoff
1315
1327
  });
1316
1328
  const thread = typeof threadId === "number" ? String(threadId) : threadId ?? replyToId ?? void 0;
1317
1329
  const { sendGoogleChatMessage } = await loadGoogleChatChannelRuntime();
@@ -1319,7 +1331,9 @@ const googlechatOutboundAdapter = {
1319
1331
  account,
1320
1332
  space,
1321
1333
  text,
1322
- thread
1334
+ thread,
1335
+ assertDirectAdapterHandoff,
1336
+ onPlatformSendDispatch
1323
1337
  });
1324
1338
  const messageId = result?.messageName ?? "";
1325
1339
  return {
@@ -1,7 +1,7 @@
1
- import { C as verifyGoogleChatRequest, D as readGoogleChatApprovalActionToken, E as googleChatApprovalControls, S as updateGoogleChatMessage, _ as GoogleChatApiError, b as probeGoogleChat, c as googleChatIngressIdentity, d as isGoogleChatGroupSpace, l as normalizeGoogleChatUserId, u as buildGoogleChatGroupPolicyScope, v as deleteGoogleChatMessage, x as sendGoogleChatMessage, y as downloadGoogleChatMedia } from "./channel.adapters-BjvJ28vf.js";
2
- import { C as resolveWebhookPath, E as warnMissingProviderGroupPolicyFallbackOnce, O as getGoogleChatRuntime, b as resolveAllowlistProviderRuntimeGroupPolicy, c as createChannelPairingController, f as isDangerousNameMatchingEnabled, n as GROUP_POLICY_BLOCKED_LABEL, x as resolveDefaultGroupPolicy } from "./runtime-api-Dh0CNVS4.js";
3
- import { n as googleChatApprovalAuth } from "./approval-auth-B3UhTpE1.js";
4
- import { t as escapeGoogleChatApprovalCardText } from "./approval-card-text-ChngxXdJ.js";
1
+ import { C as verifyGoogleChatRequest, D as readGoogleChatApprovalActionToken, E as googleChatApprovalControls, S as updateGoogleChatMessage, _ as GoogleChatApiError, b as probeGoogleChat, c as googleChatIngressIdentity, d as isGoogleChatGroupSpace, l as normalizeGoogleChatUserId, u as buildGoogleChatGroupPolicyScope, v as deleteGoogleChatMessage, x as sendGoogleChatMessage, y as downloadGoogleChatMedia } from "./channel.adapters-BJt3F2XW.mjs";
2
+ import { C as resolveWebhookPath, E as warnMissingProviderGroupPolicyFallbackOnce, O as getGoogleChatRuntime, b as resolveAllowlistProviderRuntimeGroupPolicy, c as createChannelPairingController, f as isDangerousNameMatchingEnabled, n as GROUP_POLICY_BLOCKED_LABEL, x as resolveDefaultGroupPolicy } from "./runtime-api-Cc5ZuXih.mjs";
3
+ import { n as googleChatApprovalAuth } from "./approval-auth-zoG7zr0K.mjs";
4
+ import { t as escapeGoogleChatApprovalCardText } from "./approval-card-text-ChngxXdJ.mjs";
5
5
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeOptionalString, normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
6
6
  import { mergePairLoopGuardConfig } from "openclaw/plugin-sdk/pair-loop-guard-runtime";
7
7
  import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
@@ -1,4 +1,4 @@
1
- import "./config-api-CsD0IFxF.js";
1
+ import "./config-api-CsD0IFxF.mjs";
2
2
  import { extractToolSend as extractToolSend$1 } from "openclaw/plugin-sdk/tool-send";
3
3
  import { fetchWithSsrFGuard as fetchWithSsrFGuard$1 } from "openclaw/plugin-sdk/ssrf-runtime";
4
4
  import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
@@ -0,0 +1,3 @@
1
+ import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries, t as channelSecrets } from "./secret-contract-DmWM0kwM.mjs";
2
+ import "../secret-contract-api.js";
3
+ export { channelSecrets, collectRuntimeConfigAssignments, secretTargetRegistryEntries };
@@ -0,0 +1,5 @@
1
+ import { n as createGoogleChatPluginBase } from "./channel-base-B3EzcV7X.mjs";
2
+ //#region extensions/googlechat/src/channel.setup.ts
3
+ const googlechatSetupPlugin = createGoogleChatPluginBase();
4
+ //#endregion
5
+ export { googlechatSetupPlugin as t };
@@ -0,0 +1,2 @@
1
+ import { t as googlechatSetupPlugin } from "./setup-plugin-api-C0zTOlHy.mjs";
2
+ export { googlechatSetupPlugin };
package/dist/api.js CHANGED
@@ -1,3 +1,3 @@
1
- import { a as googlechatSetupAdapter, i as googlechatSetupWizard } from "./channel-base-B3EzcV7X.js";
2
- import { t as googlechatPlugin } from "./channel-C-lifj0n.js";
1
+ import { a as googlechatSetupAdapter, i as googlechatSetupWizard } from "./.setup/channel-base-B3EzcV7X.mjs";
2
+ import { t as googlechatPlugin } from "./.setup/channel-CQsHdiW9.mjs";
3
3
  export { googlechatPlugin, googlechatSetupAdapter, googlechatSetupWizard };
@@ -1,4 +1,4 @@
1
- import { n as buildChannelConfigSchema, t as GoogleChatConfigSchema } from "./config-api-CsD0IFxF.js";
1
+ import { n as buildChannelConfigSchema, t as GoogleChatConfigSchema } from "./.setup/config-api-CsD0IFxF.mjs";
2
2
  //#region extensions/googlechat/src/config-schema.ts
3
3
  const GoogleChatChannelConfigSchema = buildChannelConfigSchema(GoogleChatConfigSchema);
4
4
  //#endregion
@@ -1,2 +1,2 @@
1
- import { t as googlechatPlugin } from "./channel-C-lifj0n.js";
1
+ import { t as googlechatPlugin } from "./.setup/channel-CQsHdiW9.mjs";
2
2
  export { googlechatPlugin };
@@ -1,4 +1,4 @@
1
- import { t as googlechatDirectoryAdapter } from "./channel.adapters-BjvJ28vf.js";
1
+ import { t as googlechatDirectoryAdapter } from "./.setup/channel.adapters-BJt3F2XW.mjs";
2
2
  //#region extensions/googlechat/directory-contract-api.ts
3
3
  const googlechatDirectoryContractPlugin = {
4
4
  id: "googlechat",
@@ -1,2 +1,2 @@
1
- import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-BLvSmTXT.js";
1
+ import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./.setup/doctor-contract-BLvSmTXT.mjs";
2
2
  export { legacyConfigRules, normalizeCompatibilityConfig };
@@ -1,3 +1,3 @@
1
- import { n as buildChannelConfigSchema, t as GoogleChatConfigSchema } from "./config-api-CsD0IFxF.js";
2
- import { C as resolveWebhookPath, D as withResolvedWebhookRequestPipeline, E as warnMissingProviderGroupPolicyFallbackOnce, S as resolveInboundMentionDecision, T as runPassiveAccountLifecycle, _ as readReactionParams, a as createAccountStatusSink, b as resolveAllowlistProviderRuntimeGroupPolicy, c as createChannelPairingController, d as fetchWithSsrFGuard, f as isDangerousNameMatchingEnabled, g as readNumberParam, h as readJsonWebhookBodyOrReject, i as chunkTextForOutbound, k as setGoogleChatRuntime, l as createWebhookInFlightLimiter, m as missingTargetError, n as GROUP_POLICY_BLOCKED_LABEL, o as createActionGate, p as jsonResult, r as PAIRING_APPROVED_MESSAGE, s as createChannelMessageReplyPipeline, t as DEFAULT_ACCOUNT_ID, u as extractToolSend, v as readStringParam, w as resolveWebhookTargetWithAuthOrReject, x as resolveDefaultGroupPolicy, y as registerWebhookTargetWithPluginRoute } from "./runtime-api-Dh0CNVS4.js";
1
+ import { n as buildChannelConfigSchema, t as GoogleChatConfigSchema } from "./.setup/config-api-CsD0IFxF.mjs";
2
+ import { C as resolveWebhookPath, D as withResolvedWebhookRequestPipeline, E as warnMissingProviderGroupPolicyFallbackOnce, S as resolveInboundMentionDecision, T as runPassiveAccountLifecycle, _ as readReactionParams, a as createAccountStatusSink, b as resolveAllowlistProviderRuntimeGroupPolicy, c as createChannelPairingController, d as fetchWithSsrFGuard, f as isDangerousNameMatchingEnabled, g as readNumberParam, h as readJsonWebhookBodyOrReject, i as chunkTextForOutbound, k as setGoogleChatRuntime, l as createWebhookInFlightLimiter, m as missingTargetError, n as GROUP_POLICY_BLOCKED_LABEL, o as createActionGate, p as jsonResult, r as PAIRING_APPROVED_MESSAGE, s as createChannelMessageReplyPipeline, t as DEFAULT_ACCOUNT_ID, u as extractToolSend, v as readStringParam, w as resolveWebhookTargetWithAuthOrReject, x as resolveDefaultGroupPolicy, y as registerWebhookTargetWithPluginRoute } from "./.setup/runtime-api-Cc5ZuXih.mjs";
3
3
  export { DEFAULT_ACCOUNT_ID, GROUP_POLICY_BLOCKED_LABEL, GoogleChatConfigSchema, PAIRING_APPROVED_MESSAGE, buildChannelConfigSchema, chunkTextForOutbound, createAccountStatusSink, createActionGate, createChannelMessageReplyPipeline, createChannelPairingController, createWebhookInFlightLimiter, extractToolSend, fetchWithSsrFGuard, isDangerousNameMatchingEnabled, jsonResult, missingTargetError, readJsonWebhookBodyOrReject, readNumberParam, readReactionParams, readStringParam, registerWebhookTargetWithPluginRoute, resolveAllowlistProviderRuntimeGroupPolicy, resolveDefaultGroupPolicy, resolveInboundMentionDecision, resolveWebhookPath, resolveWebhookTargetWithAuthOrReject, runPassiveAccountLifecycle, setGoogleChatRuntime, warnMissingProviderGroupPolicyFallbackOnce, withResolvedWebhookRequestPipeline };
@@ -1,2 +1,2 @@
1
- import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries, t as channelSecrets } from "./secret-contract-DmWM0kwM.js";
1
+ import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries, t as channelSecrets } from "./.setup/secret-contract-DmWM0kwM.mjs";
2
2
  export { channelSecrets, collectRuntimeConfigAssignments, secretTargetRegistryEntries };
@@ -1,13 +1,14 @@
1
1
  import { defineBundledChannelSetupEntry } from "openclaw/plugin-sdk/channel-entry-contract";
2
+ import { fileURLToPath } from "node:url";
2
3
  //#region extensions/googlechat/setup-entry.ts
3
4
  var setup_entry_default = defineBundledChannelSetupEntry({
4
5
  importMetaUrl: import.meta.url,
5
6
  plugin: {
6
- specifier: "./setup-plugin-api.js",
7
+ specifier: fileURLToPath(new URL(".setup/setup-plugin-api-DWL3ZytB.mjs", import.meta.url).href),
7
8
  exportName: "googlechatSetupPlugin"
8
9
  },
9
10
  secrets: {
10
- specifier: "./secret-contract-api.js",
11
+ specifier: fileURLToPath(new URL(".setup/secret-contract-api-DHLd5XO3.mjs", import.meta.url).href),
11
12
  exportName: "channelSecrets"
12
13
  }
13
14
  });
@@ -1,5 +1,2 @@
1
- import { n as createGoogleChatPluginBase } from "./channel-base-B3EzcV7X.js";
2
- //#region extensions/googlechat/src/channel.setup.ts
3
- const googlechatSetupPlugin = createGoogleChatPluginBase();
4
- //#endregion
1
+ import { t as googlechatSetupPlugin } from "./.setup/setup-plugin-api-C0zTOlHy.mjs";
5
2
  export { googlechatSetupPlugin };
@@ -113,6 +113,33 @@ await schema.parseAsync("hello");
113
113
  // => "hello"
114
114
  ```
115
115
 
116
+ ### AOT compilation
117
+
118
+ For hot validation paths, `z.compile(schema)` returns a schema clone with an ahead-of-time compiled fast path. Valid inputs take the compiled path; invalid inputs fall back to the regular parser so error reporting stays identical.
119
+
120
+ Across a 55-schema benchmark the median speedup is **2.4x**, and it scales with how much work the schema does per parse: a large array of objects is ~9x, a 20-key object ~9x, a nested object ~4.5x, while a bare `z.string()` gains nothing — compilation removes per-node dispatch and allocation, and a single `typeof` has none to remove.
121
+
122
+ ```ts
123
+ const CompiledPlayer = z.compile(Player);
124
+
125
+ CompiledPlayer.parse({ username: "billie", xp: 100 });
126
+ ```
127
+
128
+ To enable compilation globally for schemas constructed after import:
129
+
130
+ ```ts
131
+ import "zod/compile"; // place before modules that define schemas
132
+ ```
133
+
134
+ Things to know:
135
+
136
+ - Compilation uses `new Function`. Global mode is automatically disabled when `z.config({ jitless: true })` is set (e.g. CSP environments); calling `z.compile()` directly is an explicit opt-in.
137
+ - Schemas with async refinements or transforms can't be compiled, and neither can a few other constructs. That is not an error: `z.compile()` hands the schema back unchanged and it keeps using the regular parser, exactly as global mode leaves it. Pass `{ strict: true }` to throw `ZodCompileAsyncError` / `ZodCompileUnsupportedError` instead.
138
+ - On invalid input, refinements and transforms may run twice (fast path, then fallback).
139
+ - Deriving a new schema from a compiled one (`.refine()`, `.extend()`, etc.) returns an uncompiled schema — compile the final schema.
140
+
141
+ See [`compile` docs](https://zod.dev/compile) for details.
142
+
116
143
  ### Handling errors
117
144
 
118
145
  When validation fails, the `.parse()` method will throw a `ZodError` instance with granular information about the validation issues.
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ // Side-effect-only: installs the post-processor on `globalConfig`. Listed in `package.json`'s `sideEffects`, and nothing else references it, so apps that never import it drop the compiler.
3
+ //
4
+ // Usage:
5
+ //
6
+ // import "zod/compile";
7
+ // import * as z from "zod";
8
+ // // every schema constructed below this is compiled on first parse
9
+ //
10
+ // Module evaluation order matters: schemas constructed in modules that evaluate before this import will not be compiled. Place this import in the app entry point, before any module that constructs schemas at top level.
11
+ //
12
+ // Failure handling: if the compiler refuses a schema (async refinement, unsupported feature, etc.) the shim permanently restores the runtime `_zod.run` for that schema. The schema continues to work via the regular runtime parser — no observable difference to the caller.
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ const compile_js_1 = require("./v4/core/compile.cjs");
38
+ const core = __importStar(require("./v4/core/index.cjs"));
39
+ let compiling = false;
40
+ core.globalConfig.postProcessor = (inst) => {
41
+ if (compiling)
42
+ return;
43
+ const originalRun = inst._zod?.run;
44
+ if (typeof originalRun !== "function")
45
+ return;
46
+ const shim = (payload, ctx) => {
47
+ // Bypass the fast path for any non-forward / non-sync / check-skipping call. The runtime owns those contracts.
48
+ if (ctx?.async || ctx?.direction === "backward" || ctx?.skipChecks) {
49
+ return originalRun(payload, ctx);
50
+ }
51
+ compiling = true;
52
+ try {
53
+ // Respect the jitless config: it exists precisely so CSP/no-eval environments never reach `new Function`. Global mode must not bypass it (explicit z.compile calls remain an explicit opt-in).
54
+ if (core.globalConfig.jitless) {
55
+ inst._zod.run = originalRun;
56
+ return originalRun(payload, ctx);
57
+ }
58
+ // Strict: the shim owns its own fallback below, and a non-strict compile would hand back `inst` — whose run is this shim — and reinstall it on itself.
59
+ const compiled = (0, compile_js_1.compile)(inst, { strict: true });
60
+ // Only the run wrapper. Copying the compiled parse/safeParse closures would make their fallback re-enter this instance and run user callbacks a third time.
61
+ inst._zod.run = compiled._zod.run;
62
+ inst._zod.bag.fallbackRun = compiled._zod.bag.fallbackRun;
63
+ inst._zod.bag.validator = compiled._zod.bag.validator;
64
+ }
65
+ catch {
66
+ // Permanent fallback for unsupported schemas.
67
+ inst._zod.run = originalRun;
68
+ }
69
+ finally {
70
+ compiling = false;
71
+ }
72
+ return inst._zod.run(payload, ctx);
73
+ };
74
+ // Expose the pre-shim runtime so `compile()` invoked elsewhere can unwrap past the shim and capture the source-of-truth runtime. Without this, a user calling `z.compile(s)` after global mode is enabled would capture the shim itself, which would feed the wrapper into itself on fallback.
75
+ shim.__originalRun = originalRun;
76
+ inst._zod.run = shim;
77
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,52 @@
1
+ // Side-effect-only: installs the post-processor on `globalConfig`. Listed in `package.json`'s `sideEffects`, and nothing else references it, so apps that never import it drop the compiler.
2
+ //
3
+ // Usage:
4
+ //
5
+ // import "zod/compile";
6
+ // import * as z from "zod";
7
+ // // every schema constructed below this is compiled on first parse
8
+ //
9
+ // Module evaluation order matters: schemas constructed in modules that evaluate before this import will not be compiled. Place this import in the app entry point, before any module that constructs schemas at top level.
10
+ //
11
+ // Failure handling: if the compiler refuses a schema (async refinement, unsupported feature, etc.) the shim permanently restores the runtime `_zod.run` for that schema. The schema continues to work via the regular runtime parser — no observable difference to the caller.
12
+ import { compile } from "./v4/core/compile.js";
13
+ import * as core from "./v4/core/index.js";
14
+ let compiling = false;
15
+ core.globalConfig.postProcessor = (inst) => {
16
+ if (compiling)
17
+ return;
18
+ const originalRun = inst._zod?.run;
19
+ if (typeof originalRun !== "function")
20
+ return;
21
+ const shim = (payload, ctx) => {
22
+ // Bypass the fast path for any non-forward / non-sync / check-skipping call. The runtime owns those contracts.
23
+ if (ctx?.async || ctx?.direction === "backward" || ctx?.skipChecks) {
24
+ return originalRun(payload, ctx);
25
+ }
26
+ compiling = true;
27
+ try {
28
+ // Respect the jitless config: it exists precisely so CSP/no-eval environments never reach `new Function`. Global mode must not bypass it (explicit z.compile calls remain an explicit opt-in).
29
+ if (core.globalConfig.jitless) {
30
+ inst._zod.run = originalRun;
31
+ return originalRun(payload, ctx);
32
+ }
33
+ // Strict: the shim owns its own fallback below, and a non-strict compile would hand back `inst` — whose run is this shim — and reinstall it on itself.
34
+ const compiled = compile(inst, { strict: true });
35
+ // Only the run wrapper. Copying the compiled parse/safeParse closures would make their fallback re-enter this instance and run user callbacks a third time.
36
+ inst._zod.run = compiled._zod.run;
37
+ inst._zod.bag.fallbackRun = compiled._zod.bag.fallbackRun;
38
+ inst._zod.bag.validator = compiled._zod.bag.validator;
39
+ }
40
+ catch {
41
+ // Permanent fallback for unsupported schemas.
42
+ inst._zod.run = originalRun;
43
+ }
44
+ finally {
45
+ compiling = false;
46
+ }
47
+ return inst._zod.run(payload, ctx);
48
+ };
49
+ // Expose the pre-shim runtime so `compile()` invoked elsewhere can unwrap past the shim and capture the source-of-truth runtime. Without this, a user calling `z.compile(s)` after global mode is enabled would capture the shim itself, which would feed the wrapper into itself on fallback.
50
+ shim.__originalRun = originalRun;
51
+ inst._zod.run = shim;
52
+ };
@@ -26,8 +26,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.z = void 0;
29
+ exports.default = exports.z = void 0;
30
30
  const z = __importStar(require("./v4/classic/external.cjs"));
31
31
  exports.z = z;
32
- __exportStar(require("./v4/classic/external.cjs"), exports);
33
32
  exports.default = z;
33
+ __exportStar(require("./v4/classic/external.cjs"), exports);
@@ -1,4 +1,3 @@
1
1
  import * as z from "./v4/classic/external.cjs";
2
2
  export * from "./v4/classic/external.cjs";
3
- export { z };
4
- export default z;
3
+ export { z, z as default };
@@ -1,4 +1,3 @@
1
1
  import * as z from "./v4/classic/external.js";
2
2
  export * from "./v4/classic/external.js";
3
- export { z };
4
- export default z;
3
+ export { z, z as default };
@@ -1,4 +1,7 @@
1
1
  import * as z from "./v4/classic/external.js";
2
2
  export * from "./v4/classic/external.js";
3
- export { z };
4
- export default z;
3
+ // Aliasing the binding, instead of `export default z`, keeps the default export a
4
+ // re-export of `z` rather than a fresh namespace value. Rollup and Webpack can then
5
+ // shake `import z from "zod"` as they already shake `import { z } from "zod"` — without
6
+ // this they pull in every locale. See #6050.
7
+ export { z, z as default };