@openclaw/googlechat 2026.9.5 → 2026.9.7

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 (390) hide show
  1. package/assets/icon.png +0 -0
  2. package/dist/.setup/actions-K6_7xusH.mjs +56 -0
  3. package/dist/.setup/{approval-auth-zoG7zr0K.mjs → approval-auth-DXvh9tfx.mjs} +2 -2
  4. package/dist/.setup/approval-card-text-BKg_4mXq.mjs +12 -0
  5. package/dist/.setup/{approval-handler.runtime-q-31CJwF.mjs → approval-handler.runtime-CT2MVoa-.mjs} +42 -81
  6. package/dist/.setup/{channel-CQsHdiW9.mjs → channel-DAUmcC2J.mjs} +34 -82
  7. package/dist/.setup/{channel-base-B3EzcV7X.mjs → channel-base-inLf3HGV.mjs} +15 -36
  8. package/dist/.setup/{channel.adapters-BJt3F2XW.mjs → channel.adapters-DIQot11j.mjs} +85 -172
  9. package/dist/.setup/{channel.runtime-DI6OTwJL.mjs → channel.runtime-C-B60lWL.mjs} +85 -162
  10. package/dist/.setup/doctor-contract-wLrnvLUn.mjs +294 -0
  11. package/dist/.setup/runtime-C5OOOlaP.mjs +8 -0
  12. package/dist/.setup/{secret-contract-DmWM0kwM.mjs → secret-contract-B7H-kkqq.mjs} +4 -11
  13. package/dist/.setup/{secret-contract-api-DHLd5XO3.mjs → secret-contract-api-GavLI-0W.mjs} +1 -1
  14. package/dist/.setup/{setup-plugin-api-C0zTOlHy.mjs → setup-plugin-api-CAzvWHwN.mjs} +1 -1
  15. package/dist/.setup/{setup-plugin-api-DWL3ZytB.mjs → setup-plugin-api-DPYc1usm.mjs} +1 -1
  16. package/dist/api.js +2 -2
  17. package/dist/channel-plugin-api.js +1 -1
  18. package/dist/directory-contract-api.js +1 -1
  19. package/dist/doctor-contract-api.js +1 -1
  20. package/dist/runtime-api.js +2 -3
  21. package/dist/secret-contract-api.js +1 -1
  22. package/dist/setup-entry.js +2 -2
  23. package/dist/setup-plugin-api.js +1 -1
  24. package/node_modules/google-auth-library/node_modules/gcp-metadata/build/src/gcp-residency.d.ts +13 -4
  25. package/node_modules/google-auth-library/node_modules/gcp-metadata/build/src/gcp-residency.js +24 -19
  26. package/node_modules/google-auth-library/node_modules/gcp-metadata/build/src/gcp-residency.js.map +1 -1
  27. package/node_modules/google-auth-library/node_modules/gcp-metadata/build/src/index.js +65 -37
  28. package/node_modules/google-auth-library/node_modules/gcp-metadata/build/src/index.js.map +1 -1
  29. package/node_modules/google-auth-library/node_modules/gcp-metadata/package.json +1 -1
  30. package/node_modules/google-auth-library/package.json +6 -6
  31. package/node_modules/zod/README.md +2 -2
  32. package/node_modules/zod/compile.cjs +19 -0
  33. package/node_modules/zod/index.cjs +19 -0
  34. package/node_modules/zod/locales/index.cjs +19 -0
  35. package/node_modules/zod/mini/index.cjs +19 -0
  36. package/node_modules/zod/package.json +8 -7
  37. package/node_modules/zod/src/v3/helpers/errorUtil.ts +1 -1
  38. package/node_modules/zod/src/v4/classic/external.ts +2 -0
  39. package/node_modules/zod/src/v4/classic/from-json-schema.ts +248 -25
  40. package/node_modules/zod/src/v4/classic/schemas.ts +243 -168
  41. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +60 -9
  42. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +6 -0
  43. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +2 -2
  44. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +265 -0
  45. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +112 -6
  46. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +9 -0
  47. package/node_modules/zod/src/v4/classic/tests/error.test.ts +130 -1
  48. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +157 -0
  49. package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
  50. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +40 -2
  51. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +27 -7
  52. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +88 -56
  53. package/node_modules/zod/src/v4/classic/tests/number.test.ts +39 -0
  54. package/node_modules/zod/src/v4/classic/tests/object.test.ts +56 -0
  55. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +3 -2
  56. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +70 -0
  57. package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
  58. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +46 -1
  59. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +19 -0
  60. package/node_modules/zod/src/v4/classic/tests/string.test.ts +95 -1
  61. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +33 -1
  62. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +234 -38
  63. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +569 -0
  64. package/node_modules/zod/src/v4/core/api.ts +44 -28
  65. package/node_modules/zod/src/v4/core/checks.ts +62 -102
  66. package/node_modules/zod/src/v4/core/compile.ts +218 -93
  67. package/node_modules/zod/src/v4/core/core.ts +1 -3
  68. package/node_modules/zod/src/v4/core/doc.ts +6 -2
  69. package/node_modules/zod/src/v4/core/errors.ts +3 -6
  70. package/node_modules/zod/src/v4/core/json-schema-generator.ts +2 -2
  71. package/node_modules/zod/src/v4/core/json-schema-processors.ts +185 -81
  72. package/node_modules/zod/src/v4/core/memoizer.ts +75 -28
  73. package/node_modules/zod/src/v4/core/parse.ts +37 -16
  74. package/node_modules/zod/src/v4/core/regexes.ts +14 -4
  75. package/node_modules/zod/src/v4/core/schemas.ts +296 -132
  76. package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
  77. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +35 -0
  78. package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
  79. package/node_modules/zod/src/v4/core/tests/compile.test.ts +399 -2
  80. package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
  81. package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
  82. package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
  83. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +118 -16
  84. package/node_modules/zod/src/v4/core/to-json-schema.ts +9 -7
  85. package/node_modules/zod/src/v4/core/util.ts +218 -147
  86. package/node_modules/zod/src/v4/core/versions.ts +2 -2
  87. package/node_modules/zod/src/v4/locales/ar.ts +2 -0
  88. package/node_modules/zod/src/v4/locales/az.ts +2 -0
  89. package/node_modules/zod/src/v4/locales/be.ts +2 -0
  90. package/node_modules/zod/src/v4/locales/bg.ts +2 -0
  91. package/node_modules/zod/src/v4/locales/bn.ts +2 -0
  92. package/node_modules/zod/src/v4/locales/ca.ts +2 -0
  93. package/node_modules/zod/src/v4/locales/ckb.ts +2 -0
  94. package/node_modules/zod/src/v4/locales/cs.ts +2 -0
  95. package/node_modules/zod/src/v4/locales/da.ts +2 -0
  96. package/node_modules/zod/src/v4/locales/de.ts +2 -0
  97. package/node_modules/zod/src/v4/locales/el.ts +2 -0
  98. package/node_modules/zod/src/v4/locales/en.ts +2 -0
  99. package/node_modules/zod/src/v4/locales/eo.ts +2 -0
  100. package/node_modules/zod/src/v4/locales/es.ts +2 -0
  101. package/node_modules/zod/src/v4/locales/fa.ts +2 -0
  102. package/node_modules/zod/src/v4/locales/fi.ts +2 -0
  103. package/node_modules/zod/src/v4/locales/fr-CA.ts +2 -0
  104. package/node_modules/zod/src/v4/locales/fr.ts +2 -0
  105. package/node_modules/zod/src/v4/locales/gu.ts +2 -0
  106. package/node_modules/zod/src/v4/locales/he.ts +2 -0
  107. package/node_modules/zod/src/v4/locales/hi.ts +2 -0
  108. package/node_modules/zod/src/v4/locales/hr.ts +2 -0
  109. package/node_modules/zod/src/v4/locales/hu.ts +2 -0
  110. package/node_modules/zod/src/v4/locales/hy.ts +2 -0
  111. package/node_modules/zod/src/v4/locales/id.ts +2 -0
  112. package/node_modules/zod/src/v4/locales/index.ts +1 -0
  113. package/node_modules/zod/src/v4/locales/is.ts +2 -0
  114. package/node_modules/zod/src/v4/locales/it.ts +2 -0
  115. package/node_modules/zod/src/v4/locales/ja.ts +2 -0
  116. package/node_modules/zod/src/v4/locales/ka.ts +2 -0
  117. package/node_modules/zod/src/v4/locales/km.ts +2 -0
  118. package/node_modules/zod/src/v4/locales/kn.ts +2 -0
  119. package/node_modules/zod/src/v4/locales/ko.ts +2 -0
  120. package/node_modules/zod/src/v4/locales/lt.ts +2 -0
  121. package/node_modules/zod/src/v4/locales/mk.ts +2 -0
  122. package/node_modules/zod/src/v4/locales/ms.ts +2 -0
  123. package/node_modules/zod/src/v4/locales/ne.ts +2 -0
  124. package/node_modules/zod/src/v4/locales/nl.ts +2 -0
  125. package/node_modules/zod/src/v4/locales/nn.ts +2 -0
  126. package/node_modules/zod/src/v4/locales/no.ts +2 -0
  127. package/node_modules/zod/src/v4/locales/ota.ts +2 -0
  128. package/node_modules/zod/src/v4/locales/pl.ts +2 -0
  129. package/node_modules/zod/src/v4/locales/ps.ts +2 -0
  130. package/node_modules/zod/src/v4/locales/pt-BR.ts +2 -0
  131. package/node_modules/zod/src/v4/locales/pt.ts +2 -0
  132. package/node_modules/zod/src/v4/locales/ro.ts +2 -0
  133. package/node_modules/zod/src/v4/locales/ru.ts +2 -0
  134. package/node_modules/zod/src/v4/locales/sk.ts +2 -0
  135. package/node_modules/zod/src/v4/locales/sl.ts +2 -0
  136. package/node_modules/zod/src/v4/locales/sv.ts +2 -0
  137. package/node_modules/zod/src/v4/locales/ta.ts +2 -0
  138. package/node_modules/zod/src/v4/locales/tg.ts +135 -0
  139. package/node_modules/zod/src/v4/locales/th.ts +2 -0
  140. package/node_modules/zod/src/v4/locales/tk.ts +2 -0
  141. package/node_modules/zod/src/v4/locales/tr.ts +2 -0
  142. package/node_modules/zod/src/v4/locales/uk.ts +2 -0
  143. package/node_modules/zod/src/v4/locales/ur.ts +2 -0
  144. package/node_modules/zod/src/v4/locales/uz.ts +2 -0
  145. package/node_modules/zod/src/v4/locales/vi.ts +2 -0
  146. package/node_modules/zod/src/v4/locales/yo.ts +2 -0
  147. package/node_modules/zod/src/v4/locales/zh-CN.ts +2 -0
  148. package/node_modules/zod/src/v4/locales/zh-TW.ts +2 -0
  149. package/node_modules/zod/src/v4/mini/external.ts +2 -0
  150. package/node_modules/zod/src/v4/mini/schemas.ts +32 -7
  151. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +1 -1
  152. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +11 -17
  153. package/node_modules/zod/src/v4/mini/tests/index.test.ts +86 -0
  154. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +16 -0
  155. package/node_modules/zod/src/v4/mini/tests/string.test.ts +23 -0
  156. package/node_modules/zod/v3/ZodError.cjs +19 -0
  157. package/node_modules/zod/v3/errors.cjs +19 -0
  158. package/node_modules/zod/v3/external.cjs +19 -0
  159. package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
  160. package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
  161. package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
  162. package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
  163. package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
  164. package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
  165. package/node_modules/zod/v3/helpers/util.cjs +19 -0
  166. package/node_modules/zod/v3/index.cjs +19 -0
  167. package/node_modules/zod/v3/standard-schema.cjs +19 -0
  168. package/node_modules/zod/v3/types.cjs +19 -0
  169. package/node_modules/zod/v4/classic/checks.cjs +19 -0
  170. package/node_modules/zod/v4/classic/coerce.cjs +19 -0
  171. package/node_modules/zod/v4/classic/compat.cjs +19 -0
  172. package/node_modules/zod/v4/classic/deep-partial.cjs +19 -0
  173. package/node_modules/zod/v4/classic/errors.cjs +19 -0
  174. package/node_modules/zod/v4/classic/external.cjs +22 -1
  175. package/node_modules/zod/v4/classic/external.d.cts +1 -1
  176. package/node_modules/zod/v4/classic/external.d.ts +1 -1
  177. package/node_modules/zod/v4/classic/external.js +1 -1
  178. package/node_modules/zod/v4/classic/from-json-schema.cjs +264 -24
  179. package/node_modules/zod/v4/classic/from-json-schema.js +245 -24
  180. package/node_modules/zod/v4/classic/in-out.cjs +19 -0
  181. package/node_modules/zod/v4/classic/index.cjs +19 -0
  182. package/node_modules/zod/v4/classic/iso.cjs +19 -0
  183. package/node_modules/zod/v4/classic/parse.cjs +19 -0
  184. package/node_modules/zod/v4/classic/schemas.cjs +100 -35
  185. package/node_modules/zod/v4/classic/schemas.d.cts +15 -1
  186. package/node_modules/zod/v4/classic/schemas.d.ts +15 -1
  187. package/node_modules/zod/v4/classic/schemas.js +77 -33
  188. package/node_modules/zod/v4/core/api.cjs +45 -22
  189. package/node_modules/zod/v4/core/api.d.cts +12 -6
  190. package/node_modules/zod/v4/core/api.d.ts +12 -6
  191. package/node_modules/zod/v4/core/api.js +25 -22
  192. package/node_modules/zod/v4/core/checks.cjs +51 -97
  193. package/node_modules/zod/v4/core/checks.d.cts +17 -1
  194. package/node_modules/zod/v4/core/checks.d.ts +17 -1
  195. package/node_modules/zod/v4/core/checks.js +31 -96
  196. package/node_modules/zod/v4/core/compile.cjs +173 -78
  197. package/node_modules/zod/v4/core/compile.d.cts +18 -4
  198. package/node_modules/zod/v4/core/compile.d.ts +18 -4
  199. package/node_modules/zod/v4/core/compile.js +154 -79
  200. package/node_modules/zod/v4/core/core.cjs +20 -1
  201. package/node_modules/zod/v4/core/core.js +1 -1
  202. package/node_modules/zod/v4/core/doc.cjs +26 -2
  203. package/node_modules/zod/v4/core/doc.js +7 -2
  204. package/node_modules/zod/v4/core/errors.cjs +21 -5
  205. package/node_modules/zod/v4/core/errors.js +2 -5
  206. package/node_modules/zod/v4/core/index.cjs +19 -0
  207. package/node_modules/zod/v4/core/json-schema-generator.cjs +20 -1
  208. package/node_modules/zod/v4/core/json-schema-generator.js +2 -2
  209. package/node_modules/zod/v4/core/json-schema-processors.cjs +188 -72
  210. package/node_modules/zod/v4/core/json-schema-processors.d.cts +16 -0
  211. package/node_modules/zod/v4/core/json-schema-processors.d.ts +16 -0
  212. package/node_modules/zod/v4/core/json-schema-processors.js +170 -74
  213. package/node_modules/zod/v4/core/json-schema.cjs +19 -0
  214. package/node_modules/zod/v4/core/memoizer.cjs +111 -23
  215. package/node_modules/zod/v4/core/memoizer.js +69 -23
  216. package/node_modules/zod/v4/core/parse.cjs +56 -16
  217. package/node_modules/zod/v4/core/parse.js +37 -16
  218. package/node_modules/zod/v4/core/regexes.cjs +31 -6
  219. package/node_modules/zod/v4/core/regexes.d.cts +3 -0
  220. package/node_modules/zod/v4/core/regexes.d.ts +3 -0
  221. package/node_modules/zod/v4/core/regexes.js +10 -4
  222. package/node_modules/zod/v4/core/registries.cjs +19 -0
  223. package/node_modules/zod/v4/core/schemas.cjs +302 -114
  224. package/node_modules/zod/v4/core/schemas.d.cts +28 -8
  225. package/node_modules/zod/v4/core/schemas.d.ts +28 -8
  226. package/node_modules/zod/v4/core/schemas.js +279 -113
  227. package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
  228. package/node_modules/zod/v4/core/to-json-schema.cjs +28 -7
  229. package/node_modules/zod/v4/core/to-json-schema.d.cts +4 -3
  230. package/node_modules/zod/v4/core/to-json-schema.d.ts +4 -3
  231. package/node_modules/zod/v4/core/to-json-schema.js +7 -6
  232. package/node_modules/zod/v4/core/util.cjs +177 -143
  233. package/node_modules/zod/v4/core/util.d.cts +25 -4
  234. package/node_modules/zod/v4/core/util.d.ts +25 -4
  235. package/node_modules/zod/v4/core/util.js +156 -143
  236. package/node_modules/zod/v4/core/versions.cjs +21 -2
  237. package/node_modules/zod/v4/core/versions.d.cts +1 -1
  238. package/node_modules/zod/v4/core/versions.d.ts +1 -1
  239. package/node_modules/zod/v4/core/versions.js +2 -2
  240. package/node_modules/zod/v4/core/visit.cjs +19 -0
  241. package/node_modules/zod/v4/index.cjs +19 -0
  242. package/node_modules/zod/v4/locales/ar.cjs +2 -0
  243. package/node_modules/zod/v4/locales/ar.js +2 -0
  244. package/node_modules/zod/v4/locales/az.cjs +2 -0
  245. package/node_modules/zod/v4/locales/az.js +2 -0
  246. package/node_modules/zod/v4/locales/be.cjs +2 -0
  247. package/node_modules/zod/v4/locales/be.js +2 -0
  248. package/node_modules/zod/v4/locales/bg.cjs +2 -0
  249. package/node_modules/zod/v4/locales/bg.js +2 -0
  250. package/node_modules/zod/v4/locales/bn.cjs +2 -0
  251. package/node_modules/zod/v4/locales/bn.js +2 -0
  252. package/node_modules/zod/v4/locales/ca.cjs +2 -0
  253. package/node_modules/zod/v4/locales/ca.js +2 -0
  254. package/node_modules/zod/v4/locales/ckb.cjs +2 -0
  255. package/node_modules/zod/v4/locales/ckb.js +2 -0
  256. package/node_modules/zod/v4/locales/cs.cjs +2 -0
  257. package/node_modules/zod/v4/locales/cs.js +2 -0
  258. package/node_modules/zod/v4/locales/da.cjs +2 -0
  259. package/node_modules/zod/v4/locales/da.js +2 -0
  260. package/node_modules/zod/v4/locales/de.cjs +2 -0
  261. package/node_modules/zod/v4/locales/de.js +2 -0
  262. package/node_modules/zod/v4/locales/el.cjs +2 -0
  263. package/node_modules/zod/v4/locales/el.js +2 -0
  264. package/node_modules/zod/v4/locales/en.cjs +2 -0
  265. package/node_modules/zod/v4/locales/en.js +2 -0
  266. package/node_modules/zod/v4/locales/eo.cjs +2 -0
  267. package/node_modules/zod/v4/locales/eo.js +2 -0
  268. package/node_modules/zod/v4/locales/es.cjs +2 -0
  269. package/node_modules/zod/v4/locales/es.js +2 -0
  270. package/node_modules/zod/v4/locales/fa.cjs +2 -0
  271. package/node_modules/zod/v4/locales/fa.js +2 -0
  272. package/node_modules/zod/v4/locales/fi.cjs +2 -0
  273. package/node_modules/zod/v4/locales/fi.js +2 -0
  274. package/node_modules/zod/v4/locales/fr-CA.cjs +2 -0
  275. package/node_modules/zod/v4/locales/fr-CA.js +2 -0
  276. package/node_modules/zod/v4/locales/fr.cjs +2 -0
  277. package/node_modules/zod/v4/locales/fr.js +2 -0
  278. package/node_modules/zod/v4/locales/gu.cjs +2 -0
  279. package/node_modules/zod/v4/locales/gu.js +2 -0
  280. package/node_modules/zod/v4/locales/he.cjs +2 -0
  281. package/node_modules/zod/v4/locales/he.js +2 -0
  282. package/node_modules/zod/v4/locales/hi.cjs +2 -0
  283. package/node_modules/zod/v4/locales/hi.js +2 -0
  284. package/node_modules/zod/v4/locales/hr.cjs +2 -0
  285. package/node_modules/zod/v4/locales/hr.js +2 -0
  286. package/node_modules/zod/v4/locales/hu.cjs +2 -0
  287. package/node_modules/zod/v4/locales/hu.js +2 -0
  288. package/node_modules/zod/v4/locales/hy.cjs +2 -0
  289. package/node_modules/zod/v4/locales/hy.js +2 -0
  290. package/node_modules/zod/v4/locales/id.cjs +2 -0
  291. package/node_modules/zod/v4/locales/id.js +2 -0
  292. package/node_modules/zod/v4/locales/index.cjs +22 -1
  293. package/node_modules/zod/v4/locales/index.d.cts +1 -0
  294. package/node_modules/zod/v4/locales/index.d.ts +1 -0
  295. package/node_modules/zod/v4/locales/index.js +1 -0
  296. package/node_modules/zod/v4/locales/is.cjs +2 -0
  297. package/node_modules/zod/v4/locales/is.js +2 -0
  298. package/node_modules/zod/v4/locales/it.cjs +2 -0
  299. package/node_modules/zod/v4/locales/it.js +2 -0
  300. package/node_modules/zod/v4/locales/ja.cjs +2 -0
  301. package/node_modules/zod/v4/locales/ja.js +2 -0
  302. package/node_modules/zod/v4/locales/ka.cjs +2 -0
  303. package/node_modules/zod/v4/locales/ka.js +2 -0
  304. package/node_modules/zod/v4/locales/km.cjs +2 -0
  305. package/node_modules/zod/v4/locales/km.js +2 -0
  306. package/node_modules/zod/v4/locales/kn.cjs +2 -0
  307. package/node_modules/zod/v4/locales/kn.js +2 -0
  308. package/node_modules/zod/v4/locales/ko.cjs +2 -0
  309. package/node_modules/zod/v4/locales/ko.js +2 -0
  310. package/node_modules/zod/v4/locales/lt.cjs +2 -0
  311. package/node_modules/zod/v4/locales/lt.js +2 -0
  312. package/node_modules/zod/v4/locales/mk.cjs +2 -0
  313. package/node_modules/zod/v4/locales/mk.js +2 -0
  314. package/node_modules/zod/v4/locales/ms.cjs +2 -0
  315. package/node_modules/zod/v4/locales/ms.js +2 -0
  316. package/node_modules/zod/v4/locales/ne.cjs +2 -0
  317. package/node_modules/zod/v4/locales/ne.js +2 -0
  318. package/node_modules/zod/v4/locales/nl.cjs +2 -0
  319. package/node_modules/zod/v4/locales/nl.js +2 -0
  320. package/node_modules/zod/v4/locales/nn.cjs +2 -0
  321. package/node_modules/zod/v4/locales/nn.js +2 -0
  322. package/node_modules/zod/v4/locales/no.cjs +2 -0
  323. package/node_modules/zod/v4/locales/no.js +2 -0
  324. package/node_modules/zod/v4/locales/ota.cjs +2 -0
  325. package/node_modules/zod/v4/locales/ota.js +2 -0
  326. package/node_modules/zod/v4/locales/pl.cjs +2 -0
  327. package/node_modules/zod/v4/locales/pl.js +2 -0
  328. package/node_modules/zod/v4/locales/ps.cjs +2 -0
  329. package/node_modules/zod/v4/locales/ps.js +2 -0
  330. package/node_modules/zod/v4/locales/pt-BR.cjs +2 -0
  331. package/node_modules/zod/v4/locales/pt-BR.js +2 -0
  332. package/node_modules/zod/v4/locales/pt.cjs +2 -0
  333. package/node_modules/zod/v4/locales/pt.js +2 -0
  334. package/node_modules/zod/v4/locales/ro.cjs +2 -0
  335. package/node_modules/zod/v4/locales/ro.js +2 -0
  336. package/node_modules/zod/v4/locales/ru.cjs +2 -0
  337. package/node_modules/zod/v4/locales/ru.js +2 -0
  338. package/node_modules/zod/v4/locales/sk.cjs +2 -0
  339. package/node_modules/zod/v4/locales/sk.js +2 -0
  340. package/node_modules/zod/v4/locales/sl.cjs +2 -0
  341. package/node_modules/zod/v4/locales/sl.js +2 -0
  342. package/node_modules/zod/v4/locales/sv.cjs +2 -0
  343. package/node_modules/zod/v4/locales/sv.js +2 -0
  344. package/node_modules/zod/v4/locales/ta.cjs +2 -0
  345. package/node_modules/zod/v4/locales/ta.js +2 -0
  346. package/node_modules/zod/v4/locales/tg.cjs +144 -0
  347. package/node_modules/zod/v4/locales/tg.d.cts +5 -0
  348. package/node_modules/zod/v4/locales/tg.d.ts +4 -0
  349. package/node_modules/zod/v4/locales/tg.js +117 -0
  350. package/node_modules/zod/v4/locales/th.cjs +2 -0
  351. package/node_modules/zod/v4/locales/th.js +2 -0
  352. package/node_modules/zod/v4/locales/tk.cjs +2 -0
  353. package/node_modules/zod/v4/locales/tk.js +2 -0
  354. package/node_modules/zod/v4/locales/tr.cjs +2 -0
  355. package/node_modules/zod/v4/locales/tr.js +2 -0
  356. package/node_modules/zod/v4/locales/uk.cjs +2 -0
  357. package/node_modules/zod/v4/locales/uk.js +2 -0
  358. package/node_modules/zod/v4/locales/ur.cjs +2 -0
  359. package/node_modules/zod/v4/locales/ur.js +2 -0
  360. package/node_modules/zod/v4/locales/uz.cjs +2 -0
  361. package/node_modules/zod/v4/locales/uz.js +2 -0
  362. package/node_modules/zod/v4/locales/vi.cjs +2 -0
  363. package/node_modules/zod/v4/locales/vi.js +2 -0
  364. package/node_modules/zod/v4/locales/yo.cjs +2 -0
  365. package/node_modules/zod/v4/locales/yo.js +2 -0
  366. package/node_modules/zod/v4/locales/zh-CN.cjs +2 -0
  367. package/node_modules/zod/v4/locales/zh-CN.js +2 -0
  368. package/node_modules/zod/v4/locales/zh-TW.cjs +2 -0
  369. package/node_modules/zod/v4/locales/zh-TW.js +2 -0
  370. package/node_modules/zod/v4/mini/checks.cjs +19 -0
  371. package/node_modules/zod/v4/mini/coerce.cjs +19 -0
  372. package/node_modules/zod/v4/mini/deep-partial.cjs +19 -0
  373. package/node_modules/zod/v4/mini/external.cjs +22 -1
  374. package/node_modules/zod/v4/mini/external.d.cts +1 -1
  375. package/node_modules/zod/v4/mini/external.d.ts +1 -1
  376. package/node_modules/zod/v4/mini/external.js +1 -1
  377. package/node_modules/zod/v4/mini/in-out.cjs +19 -0
  378. package/node_modules/zod/v4/mini/index.cjs +19 -0
  379. package/node_modules/zod/v4/mini/iso.cjs +19 -0
  380. package/node_modules/zod/v4/mini/parse.cjs +19 -0
  381. package/node_modules/zod/v4/mini/schemas.cjs +44 -8
  382. package/node_modules/zod/v4/mini/schemas.d.cts +6 -1
  383. package/node_modules/zod/v4/mini/schemas.d.ts +6 -1
  384. package/node_modules/zod/v4/mini/schemas.js +21 -6
  385. package/node_modules/zod/v4-mini/index.cjs +19 -0
  386. package/package.json +6 -6
  387. package/dist/.setup/actions-D_u75Cl1.mjs +0 -72
  388. package/dist/.setup/approval-card-text-ChngxXdJ.mjs +0 -6
  389. package/dist/.setup/doctor-contract-BLvSmTXT.mjs +0 -115
  390. package/dist/.setup/runtime-api-Cc5ZuXih.mjs +0 -24
package/assets/icon.png CHANGED
Binary file
@@ -0,0 +1,56 @@
1
+ import { l as resolveGoogleChatAccount } from "./channel-base-inLf3HGV.mjs";
2
+ import { g as resolveGoogleChatOutboundSpace, x as sendGoogleChatMessage } from "./channel.adapters-DIQot11j.mjs";
3
+ import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
4
+ import { jsonResult, readStringArrayParam, readStringParam } from "openclaw/plugin-sdk/channel-actions";
5
+ //#region extensions/googlechat/src/actions.ts
6
+ const OUTBOUND_MEDIA_KEYS = [
7
+ "media",
8
+ "mediaUrl",
9
+ "path",
10
+ "filePath",
11
+ "fileUrl"
12
+ ];
13
+ const STRUCTURED_ATTACHMENT_MEDIA_KEYS = [...OUTBOUND_MEDIA_KEYS, "url"];
14
+ function hasGoogleChatOutboundAttachment(params) {
15
+ if (OUTBOUND_MEDIA_KEYS.some((key) => readStringParam(params, key) !== void 0)) return true;
16
+ if (readStringArrayParam(params, "mediaUrls") !== void 0) return true;
17
+ if (!Array.isArray(params.attachments)) return false;
18
+ return params.attachments.some((attachment) => isRecord(attachment) && STRUCTURED_ATTACHMENT_MEDIA_KEYS.some((key) => readStringParam(attachment, key) !== void 0));
19
+ }
20
+ async function handleGoogleChatAction({ action, params, cfg, accountId, assertDirectAdapterHandoff, onPlatformSendDispatch }) {
21
+ if (action === "upload-file" || action === "send" && hasGoogleChatOutboundAttachment(params)) throw new Error("Google Chat outbound attachments require user OAuth and are not supported by this service-account channel.");
22
+ const account = resolveGoogleChatAccount({
23
+ cfg,
24
+ accountId
25
+ });
26
+ if (account.credentialSource === "none" || account.tokenStatus === "configured_unavailable") throw new Error("Google Chat credentials are missing.");
27
+ if (action === "send") {
28
+ const to = readStringParam(params, "to", { required: true });
29
+ const content = readStringParam(params, "message", {
30
+ required: true,
31
+ allowEmpty: true
32
+ });
33
+ const threadId = readStringParam(params, "threadId") ?? readStringParam(params, "replyTo");
34
+ const space = await resolveGoogleChatOutboundSpace({
35
+ account,
36
+ target: to,
37
+ assertDirectAdapterHandoff
38
+ });
39
+ const sent = await sendGoogleChatMessage({
40
+ account,
41
+ space,
42
+ text: content,
43
+ thread: threadId ?? void 0,
44
+ assertDirectAdapterHandoff,
45
+ onPlatformSendDispatch
46
+ });
47
+ return jsonResult({
48
+ ok: true,
49
+ to: space,
50
+ ...sent
51
+ });
52
+ }
53
+ throw new Error(`Action ${action} is not supported for provider googlechat.`);
54
+ }
55
+ //#endregion
56
+ export { handleGoogleChatAction };
@@ -1,5 +1,5 @@
1
- import { l as resolveGoogleChatAccount } from "./channel-base-B3EzcV7X.mjs";
2
- import { m as normalizeGoogleChatTarget, p as isGoogleChatUserTarget } from "./channel.adapters-BJt3F2XW.mjs";
1
+ import { l as resolveGoogleChatAccount } from "./channel-base-inLf3HGV.mjs";
2
+ import { m as normalizeGoogleChatTarget, p as isGoogleChatUserTarget } from "./channel.adapters-DIQot11j.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
@@ -0,0 +1,12 @@
1
+ import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
2
+ //#region extensions/googlechat/src/approval-card-text.ts
3
+ const MAX_TEXT_PARAGRAPH_CHARS = 1800;
4
+ function escapeGoogleChatApprovalCardText(text) {
5
+ return text.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
6
+ }
7
+ function buildGoogleChatApprovalTextWidget(text, format = "text") {
8
+ const truncated = text.length <= MAX_TEXT_PARAGRAPH_CHARS ? text : `${truncateUtf16Safe(text, 1797)}...`;
9
+ return { textParagraph: { text: format === "html" ? truncated : escapeGoogleChatApprovalCardText(truncated) } };
10
+ }
11
+ //#endregion
12
+ export { escapeGoogleChatApprovalCardText as n, buildGoogleChatApprovalTextWidget as t };
@@ -1,17 +1,15 @@
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";
1
+ import { l as resolveGoogleChatAccount } from "./channel-base-inLf3HGV.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-DIQot11j.mjs";
3
+ import { n as isGoogleChatNativeApprovalClientEnabled, r as shouldHandleGoogleChatNativeApprovalRequest } from "./channel-DAUmcC2J.mjs";
4
+ import { n as escapeGoogleChatApprovalCardText, t as buildGoogleChatApprovalTextWidget } from "./approval-card-text-BKg_4mXq.mjs";
5
5
  import { buildChannelApprovalNativeTargetKey } from "openclaw/plugin-sdk/approval-native-runtime";
6
6
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
7
- import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
8
7
  import { formatChannelApprovalResolvedLabel } from "openclaw/plugin-sdk/approval-runtime";
9
8
  import { createChannelApprovalNativeRuntimeAdapter } from "openclaw/plugin-sdk/approval-handler-runtime";
10
9
  import { createSubsystemLogger } from "openclaw/plugin-sdk/runtime-env";
11
10
  //#region extensions/googlechat/src/approval-handler.runtime.ts
12
11
  const log = createSubsystemLogger("googlechat/approvals");
13
12
  const GOOGLECHAT_APPROVAL_CARD_ID = "openclaw-approval";
14
- const MAX_TEXT_PARAGRAPH_CHARS = 1800;
15
13
  function resolveHandlerAccount(params) {
16
14
  const account = params.context?.account ?? resolveGoogleChatAccount({
17
15
  cfg: params.cfg,
@@ -20,68 +18,51 @@ function resolveHandlerAccount(params) {
20
18
  if (!account.enabled || account.credentialSource === "none" || account.tokenStatus === "configured_unavailable") return null;
21
19
  return account;
22
20
  }
23
- function truncateText(text, maxChars = MAX_TEXT_PARAGRAPH_CHARS) {
24
- return text.length <= maxChars ? text : `${truncateUtf16Safe(text, maxChars - 3)}...`;
25
- }
26
21
  function buildMetadataText(metadata) {
27
22
  return metadata.map((item) => `<b>${escapeGoogleChatApprovalCardText(item.label)}:</b> ${escapeGoogleChatApprovalCardText(item.value)}`).join("<br>");
28
23
  }
29
- function buildMainTextWidget(text) {
30
- return { textParagraph: { text: escapeGoogleChatApprovalCardText(truncateText(text)) } };
31
- }
32
- function buildHtmlTextWidget(text) {
33
- return { textParagraph: { text: truncateText(text) } };
34
- }
35
- function buildExecPendingSections(view) {
36
- if (view.approvalKind !== "exec") return [];
37
- return [{
24
+ function buildPendingSections(view) {
25
+ if (view.approvalKind === "exec") return [{
38
26
  header: "Command",
39
- widgets: [buildMainTextWidget(view.commandText)]
27
+ widgets: [buildGoogleChatApprovalTextWidget(view.commandText)]
40
28
  }, ...view.commandPreview && view.commandPreview !== view.commandText ? [{
41
29
  header: "Preview",
42
- widgets: [buildMainTextWidget(view.commandPreview)]
30
+ widgets: [buildGoogleChatApprovalTextWidget(view.commandPreview)]
43
31
  }] : []];
44
- }
45
- function buildPluginPendingSections(view) {
46
- if (view.approvalKind !== "plugin") return [];
47
- return [{
32
+ if (view.approvalKind === "plugin") return [{
48
33
  header: "Request",
49
- widgets: [buildHtmlTextWidget(`<b>${escapeGoogleChatApprovalCardText(view.title)}</b>${view.description ? `<br>${escapeGoogleChatApprovalCardText(view.description)}` : ""}`)]
34
+ widgets: [buildGoogleChatApprovalTextWidget(`<b>${escapeGoogleChatApprovalCardText(view.title)}</b>${view.description ? `<br>${escapeGoogleChatApprovalCardText(view.description)}` : ""}`, "html")]
50
35
  }];
51
- }
52
- function buildSystemAgentPendingSections(view) {
53
- if (view.approvalKind !== "system-agent") return [];
54
36
  return [{
55
37
  header: "Change",
56
- widgets: [buildMainTextWidget(view.operationSummary)]
38
+ widgets: [buildGoogleChatApprovalTextWidget(view.operationSummary)]
57
39
  }];
58
40
  }
59
41
  function buildMetadataSection(view) {
60
- const metadata = [{
61
- label: "Approval ID",
62
- value: view.approvalId
63
- }, ...view.metadata];
64
- return metadata.length > 0 ? [{
42
+ return {
65
43
  header: "Details",
66
- widgets: [buildHtmlTextWidget(buildMetadataText(metadata))]
67
- }] : [];
44
+ widgets: [buildGoogleChatApprovalTextWidget(buildMetadataText([{
45
+ label: "Approval ID",
46
+ value: view.approvalId
47
+ }, ...view.metadata]), "html")]
48
+ };
68
49
  }
69
50
  function buildActionSection(params) {
70
51
  const { actionFunction, view } = params;
71
- const actionTokens = view.actions.map((action) => ({
72
- token: googleChatApprovalControls.createToken(),
73
- decision: action.decision
74
- }));
52
+ const actionTokens = [];
75
53
  return {
76
54
  actionTokens,
77
- section: { widgets: [{ buttonList: { buttons: view.actions.map((action, index) => {
78
- const actionToken = actionTokens[index];
79
- if (!actionToken) throw new Error("Google Chat approval action token missing.");
55
+ section: { widgets: [{ buttonList: { buttons: view.actions.map((action) => {
56
+ const token = googleChatApprovalControls.createToken();
57
+ actionTokens.push({
58
+ token,
59
+ decision: action.decision
60
+ });
80
61
  return {
81
62
  text: action.label,
82
63
  onClick: { action: {
83
64
  function: actionFunction,
84
- parameters: buildGoogleChatApprovalActionParameters(actionToken.token),
65
+ parameters: buildGoogleChatApprovalActionParameters(token),
85
66
  loadIndicator: "SPINNER"
86
67
  } }
87
68
  };
@@ -104,10 +85,8 @@ function buildPendingPayload(params) {
104
85
  subtitle
105
86
  },
106
87
  sections: [
107
- ...buildExecPendingSections(view),
108
- ...buildPluginPendingSections(view),
109
- ...buildSystemAgentPendingSections(view),
110
- ...buildMetadataSection(view),
88
+ ...buildPendingSections(view),
89
+ buildMetadataSection(view),
111
90
  actionSection
112
91
  ]
113
92
  }
@@ -127,29 +106,16 @@ function resolveApprovalActionFunction(params) {
127
106
  const appPrincipal = normalizeOptionalString(account?.config.appPrincipal);
128
107
  return account?.config.audienceType === "app-url" && audience && appPrincipal ? audience : GOOGLECHAT_APPROVAL_ACTION;
129
108
  }
130
- function buildResolvedPayload(view) {
131
- const resolvedBy = normalizeOptionalString(view.resolvedBy);
132
- const decisionLabel = formatChannelApprovalResolvedLabel(view);
133
- return { cardsV2: [{
134
- cardId: GOOGLECHAT_APPROVAL_CARD_ID,
135
- card: {
136
- header: {
137
- title: `${view.approvalKind === "plugin" ? "Plugin" : view.approvalKind === "system-agent" ? "OpenClaw Change" : "Exec"} Approval: ${decisionLabel}`,
138
- subtitle: resolvedBy ? `Resolved by ${resolvedBy}` : "Resolved"
139
- },
140
- sections: buildMetadataSection(view)
141
- }
142
- }] };
143
- }
144
- function buildExpiredPayload(view) {
109
+ function buildFinalPayload(view, outcome, subtitle) {
110
+ const kindLabel = view.approvalKind === "plugin" ? "Plugin" : view.approvalKind === "system-agent" ? "OpenClaw Change" : "Exec";
145
111
  return { cardsV2: [{
146
112
  cardId: GOOGLECHAT_APPROVAL_CARD_ID,
147
113
  card: {
148
114
  header: {
149
- title: `${view.approvalKind === "plugin" ? "Plugin" : view.approvalKind === "system-agent" ? "OpenClaw Change" : "Exec"} Approval Expired`,
150
- subtitle: "This approval request expired before it was resolved."
115
+ title: `${kindLabel} Approval${outcome}`,
116
+ subtitle
151
117
  },
152
- sections: buildMetadataSection(view)
118
+ sections: [buildMetadataSection(view)]
153
119
  }
154
120
  }] };
155
121
  }
@@ -160,16 +126,8 @@ const googleChatApprovalNativeRuntime = createChannelApprovalNativeRuntimeAdapte
160
126
  "system-agent"
161
127
  ],
162
128
  availability: {
163
- isConfigured: ({ cfg, accountId }) => isGoogleChatNativeApprovalClientEnabled({
164
- cfg,
165
- accountId
166
- }),
167
- shouldHandle: ({ cfg, accountId, approvalKind, request }) => shouldHandleGoogleChatNativeApprovalRequest({
168
- cfg,
169
- accountId,
170
- approvalKind,
171
- request
172
- })
129
+ isConfigured: isGoogleChatNativeApprovalClientEnabled,
130
+ shouldHandle: shouldHandleGoogleChatNativeApprovalRequest
173
131
  },
174
132
  presentation: {
175
133
  buildPendingPayload: ({ cfg, accountId, context, nowMs, view }) => buildPendingPayload({
@@ -181,13 +139,16 @@ const googleChatApprovalNativeRuntime = createChannelApprovalNativeRuntimeAdapte
181
139
  nowMs,
182
140
  view
183
141
  }),
184
- buildResolvedResult: ({ view }) => ({
185
- kind: "update",
186
- payload: buildResolvedPayload(view)
187
- }),
142
+ buildResolvedResult: ({ view }) => {
143
+ const resolvedBy = normalizeOptionalString(view.resolvedBy);
144
+ return {
145
+ kind: "update",
146
+ payload: buildFinalPayload(view, `: ${formatChannelApprovalResolvedLabel(view)}`, resolvedBy ? `Resolved by ${resolvedBy}` : "Resolved")
147
+ };
148
+ },
188
149
  buildExpiredResult: ({ view }) => ({
189
150
  kind: "update",
190
- payload: buildExpiredPayload(view)
151
+ payload: buildFinalPayload(view, " Expired", "This approval request expired before it was resolved.")
191
152
  })
192
153
  },
193
154
  transport: {
@@ -1,15 +1,14 @@
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";
1
+ import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-wLrnvLUn.mjs";
3
2
  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";
3
+ import { c as resolveDefaultGoogleChatAccountId, l as resolveGoogleChatAccount, n as createGoogleChatPluginBase, o as inspectGoogleChatAccount, s as listGoogleChatAccountIds, t as GOOGLECHAT_CHANNEL_ID } from "./channel-base-inLf3HGV.mjs";
4
+ 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-DIQot11j.mjs";
5
+ import { n as googleChatApprovalAuth, r as normalizeGoogleChatApproverId, t as getGoogleChatApprovalApprovers } from "./approval-auth-DXvh9tfx.mjs";
6
+ import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-B7H-kkqq.mjs";
7
+ import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
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";
11
11
  import { createComputedAccountStatusAdapter, createDefaultChannelRuntimeState } from "openclaw/plugin-sdk/status-helpers";
12
- import { extractToolSend } from "openclaw/plugin-sdk/tool-send";
13
12
  import { createApproverRestrictedNativeApprovalCapability } from "openclaw/plugin-sdk/approval-delivery-runtime";
14
13
  import { CHANNEL_APPROVAL_NATIVE_RUNTIME_CONTEXT_CAPABILITY, createLazyChannelApprovalNativeRuntimeAdapter } from "openclaw/plugin-sdk/approval-handler-adapter-runtime";
15
14
  import { createChannelApproverDmTargetResolver, createChannelNativeOriginTargetResolver, createNativeApprovalChannelRouteGates, shouldSuppressLocalNativeExecApprovalPrompt } from "openclaw/plugin-sdk/approval-native-runtime";
@@ -18,20 +17,12 @@ import { createAccountStatusSink, runPassiveAccountLifecycle } from "openclaw/pl
18
17
  import { buildMutableAllowEntryDetector, collectStandardAllowlistLists, createDangerousNameMatchingMutableAllowlistWarningCollector } from "openclaw/plugin-sdk/channel-policy";
19
18
  import { registerChannelRuntimeContext } from "openclaw/plugin-sdk/channel-runtime-context";
20
19
  import { channelBlockedPatch } from "openclaw/plugin-sdk/gateway-runtime";
20
+ import { extractToolSend } from "openclaw/plugin-sdk/tool-send";
21
21
  //#region extensions/googlechat/src/approval-native.ts
22
22
  const DEFAULT_APPROVAL_FORWARDING_MODE = "session";
23
- function isGoogleChatAccountConfigured(params) {
24
- const account = resolveGoogleChatAccount(params);
25
- return account.enabled && account.credentialSource !== "none" && account.tokenStatus !== "configured_unavailable";
26
- }
27
- function hasGoogleChatWebhookApprovalAuthConfig(params) {
28
- const account = resolveGoogleChatAccount(params).config;
29
- if (!normalizeOptionalString(account.audience)) return false;
30
- if (account.audienceType === "project-number") return true;
31
- return account.audienceType === "app-url";
32
- }
33
23
  function isGoogleChatApprovalTransportEnabled(params) {
34
- return isGoogleChatAccountConfigured(params) && hasGoogleChatWebhookApprovalAuthConfig(params);
24
+ const account = resolveGoogleChatAccount(params);
25
+ return account.enabled && account.credentialSource !== "none" && account.tokenStatus !== "configured_unavailable" && Boolean(normalizeOptionalString(account.config.audience)) && (account.config.audienceType === "project-number" || account.config.audienceType === "app-url");
35
26
  }
36
27
  function normalizeGoogleChatForwardTarget(target) {
37
28
  if (normalizeLowercaseStringOrEmpty(target.channel) !== "googlechat") return null;
@@ -105,7 +96,7 @@ const googleChatApprovalCapability = createApproverRestrictedNativeApprovalCapab
105
96
  channelLabel: "Google Chat",
106
97
  describeExecApprovalSetup: ({ accountId }) => {
107
98
  const prefix = accountId && accountId !== "default" ? `channels.googlechat.accounts.${accountId}` : "channels.googlechat";
108
- return `Approve it from the Web UI or terminal UI for now. Google Chat supports native approvals for this account when the webhook and service account are configured. Configure \`${prefix}.allowFrom\` or \`${prefix}.defaultTo\` with numeric \`users/{id}\` approvers.`;
99
+ return `Approve it from the Web UI for now. Google Chat supports native approvals for this account when the webhook and service account are configured. Configure \`${prefix}.allowFrom\` or \`${prefix}.defaultTo\` with numeric \`users/{id}\` approvers.`;
109
100
  },
110
101
  listAccountIds: listGoogleChatAccountIds,
111
102
  hasApprovers: ({ cfg, accountId }) => getGoogleChatApprovalApprovers({
@@ -139,17 +130,9 @@ const googleChatApprovalCapability = createApproverRestrictedNativeApprovalCapab
139
130
  "plugin",
140
131
  "system-agent"
141
132
  ],
142
- isConfigured: ({ cfg, accountId }) => isGoogleChatNativeApprovalClientEnabled({
143
- cfg,
144
- accountId
145
- }),
146
- shouldHandle: ({ cfg, accountId, approvalKind, request }) => shouldHandleGoogleChatNativeApprovalRequest({
147
- cfg,
148
- accountId,
149
- approvalKind,
150
- request
151
- }),
152
- load: async () => (await import("./approval-handler.runtime-q-31CJwF.mjs")).googleChatApprovalNativeRuntime
133
+ isConfigured: isGoogleChatNativeApprovalClientEnabled,
134
+ shouldHandle: shouldHandleGoogleChatNativeApprovalRequest,
135
+ load: async () => (await import("./approval-handler.runtime-CT2MVoa-.mjs")).googleChatApprovalNativeRuntime
153
136
  })
154
137
  });
155
138
  //#endregion
@@ -173,7 +156,7 @@ const collectGoogleChatMutableAllowlistWarnings = createDangerousNameMatchingMut
173
156
  });
174
157
  //#endregion
175
158
  //#region extensions/googlechat/src/gateway.ts
176
- const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-DI6OTwJL.mjs"), "googleChatChannelRuntime");
159
+ const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-C-B60lWL.mjs"), "googleChatChannelRuntime");
177
160
  const UNRESOLVED_WEBHOOK_URL_ERROR = "Invalid webhookUrl: expected an absolute URL such as https://chat.example.com/googlechat. No inbound webhook route was registered.";
178
161
  async function startGoogleChatGatewayAccount(ctx) {
179
162
  const account = ctx.account;
@@ -183,7 +166,7 @@ async function startGoogleChatGatewayAccount(ctx) {
183
166
  });
184
167
  ctx.log?.info?.(`[${account.accountId}] starting Google Chat webhook`);
185
168
  const { resolveGoogleChatWebhookPath, startGoogleChatMonitor } = await loadGoogleChatChannelRuntime$1();
186
- const webhookPath = resolveGoogleChatWebhookPath({ account });
169
+ const webhookPath = resolveGoogleChatWebhookPath(account.config);
187
170
  statusSink({
188
171
  running: true,
189
172
  lastStartAt: Date.now(),
@@ -194,15 +177,6 @@ async function startGoogleChatGatewayAccount(ctx) {
194
177
  audienceType: account.config.audienceType,
195
178
  audience: account.config.audience
196
179
  });
197
- let stopped = false;
198
- const markStopped = () => {
199
- if (stopped) return;
200
- stopped = true;
201
- statusSink({
202
- running: false,
203
- lastStopAt: Date.now()
204
- });
205
- };
206
180
  if (isGoogleChatNativeApprovalClientEnabled({
207
181
  cfg: ctx.cfg,
208
182
  accountId: account.accountId
@@ -228,14 +202,13 @@ async function startGoogleChatGatewayAccount(ctx) {
228
202
  }),
229
203
  stop: async (unregister) => {
230
204
  await unregister?.();
231
- },
232
- onStop: async () => {
233
- markStopped();
234
205
  }
235
206
  });
236
- } catch (error) {
237
- markStopped();
238
- throw error;
207
+ } finally {
208
+ statusSink({
209
+ running: false,
210
+ lastStopAt: Date.now()
211
+ });
239
212
  }
240
213
  }
241
214
  //#endregion
@@ -249,19 +222,15 @@ function describeGoogleChatMessageTool({ cfg, accountId }) {
249
222
  accountId: listedAccountId
250
223
  }))).some((account) => account.enabled && account.credentialSource !== "none" && account.tokenStatus === "available") ? { actions: ["send"] } : null;
251
224
  }
252
- //#endregion
253
- //#region extensions/googlechat/src/channel.ts
254
- const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-DI6OTwJL.mjs"), "googleChatChannelRuntime");
255
- const googlechatActions = {
225
+ const googlechatMessageActions = {
256
226
  describeMessageTool: describeGoogleChatMessageTool,
257
227
  supportsAction: ({ action }) => action === "send",
258
228
  extractToolSend: ({ args }) => extractToolSend(args, "sendMessage"),
259
- handleAction: async (ctx) => {
260
- const { googlechatMessageActions } = await import("./actions-D_u75Cl1.mjs");
261
- if (!googlechatMessageActions.handleAction) throw new Error("Google Chat actions are not available.");
262
- return await googlechatMessageActions.handleAction(ctx);
263
- }
229
+ handleAction: async (ctx) => (await import("./actions-K6_7xusH.mjs")).handleGoogleChatAction(ctx)
264
230
  };
231
+ //#endregion
232
+ //#region extensions/googlechat/src/channel.ts
233
+ const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-C-B60lWL.mjs"), "googleChatChannelRuntime");
265
234
  const googlechatPlugin = createChatChannelPlugin({
266
235
  base: {
267
236
  ...createGoogleChatPluginBase({ configSchema: buildChannelConfigSchema(GoogleChatConfigSchema) }),
@@ -285,7 +254,7 @@ const googlechatPlugin = createChatChannelPlugin({
285
254
  if (isGoogleChatUserTarget(target)) return "direct";
286
255
  return isGoogleChatSpaceTarget(target) ? "group" : void 0;
287
256
  },
288
- resolveOutboundSessionRoute: (params) => resolveGoogleChatOutboundSessionRoute(params),
257
+ resolveOutboundSessionRoute: resolveGoogleChatOutboundSessionRoute,
289
258
  targetResolver: {
290
259
  looksLikeId: (raw, normalized) => {
291
260
  const value = normalized ?? raw.trim();
@@ -321,7 +290,7 @@ const googlechatPlugin = createChatChannelPlugin({
321
290
  };
322
291
  });
323
292
  } },
324
- actions: googlechatActions,
293
+ actions: googlechatMessageActions,
325
294
  doctor: {
326
295
  dmAllowFromMode: "topOnly",
327
296
  groupModel: "route",
@@ -334,26 +303,14 @@ const googlechatPlugin = createChatChannelPlugin({
334
303
  status: createComputedAccountStatusAdapter({
335
304
  defaultRuntime: createDefaultChannelRuntimeState(DEFAULT_ACCOUNT_ID),
336
305
  collectStatusIssues: (accounts) => accounts.flatMap((entry) => {
337
- const accountId = entry.accountId ?? DEFAULT_ACCOUNT_ID;
338
- const enabled = entry.enabled !== false;
339
- const configured = entry.configured === true;
340
- if (!enabled || !configured) return [];
341
- const issues = [];
342
- if (!entry.audience) issues.push({
343
- channel: GOOGLECHAT_CHANNEL_ID,
344
- accountId,
345
- kind: "config",
346
- message: "Google Chat audience is missing (set channels.googlechat.audience).",
347
- fix: "Set channels.googlechat.audienceType and channels.googlechat.audience."
348
- });
349
- if (!entry.audienceType) issues.push({
306
+ if (entry.enabled === false || entry.configured !== true) return [];
307
+ return [!entry.audience && "Google Chat audience is missing (set channels.googlechat.audience).", !entry.audienceType && "Google Chat audienceType is missing (app-url or project-number)."].flatMap((message) => message ? [{
350
308
  channel: GOOGLECHAT_CHANNEL_ID,
351
- accountId,
309
+ accountId: entry.accountId ?? DEFAULT_ACCOUNT_ID,
352
310
  kind: "config",
353
- message: "Google Chat audienceType is missing (app-url or project-number).",
311
+ message,
354
312
  fix: "Set channels.googlechat.audienceType and channels.googlechat.audience."
355
- });
356
- return issues;
313
+ }] : []);
357
314
  }),
358
315
  buildChannelSummary: ({ snapshot }) => buildPassiveProbedChannelStatusSummary(snapshot, {
359
316
  credentialSource: snapshot.credentialSource ?? "none",
@@ -388,14 +345,9 @@ const googlechatPlugin = createChatChannelPlugin({
388
345
  ...googlechatOutboundAdapter,
389
346
  base: {
390
347
  ...googlechatOutboundAdapter.base,
391
- shouldSuppressLocalPayloadPrompt: ({ cfg, accountId, payload, hint }) => shouldSuppressLocalGoogleChatExecApprovalPrompt({
392
- cfg,
393
- accountId,
394
- payload,
395
- hint
396
- })
348
+ shouldSuppressLocalPayloadPrompt: shouldSuppressLocalGoogleChatExecApprovalPrompt
397
349
  }
398
350
  }
399
351
  });
400
352
  //#endregion
401
- export { shouldHandleGoogleChatNativeApprovalRequest as i, describeGoogleChatMessageTool as n, isGoogleChatNativeApprovalClientEnabled as r, googlechatPlugin as t };
353
+ export { isGoogleChatNativeApprovalClientEnabled as n, shouldHandleGoogleChatNativeApprovalRequest as r, googlechatPlugin as t };
@@ -54,6 +54,19 @@ function parseServiceAccount(value) {
54
54
  }
55
55
  return safeParseWithSchema(JsonRecordSchema, value);
56
56
  }
57
+ function resolveCredentialsFile(file, source, configPath) {
58
+ const result = tryReadSecretFileSync(resolveUserPath(file), "Google Chat service account file", {
59
+ maxBytes: MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES,
60
+ rejectHardlinks: false,
61
+ rejectSymlink: false
62
+ }, { configPath });
63
+ return {
64
+ credentialsFile: file,
65
+ source,
66
+ status: result.status,
67
+ ...result.status === "configured_unavailable" ? { diagnostic: result.diagnostic } : {}
68
+ };
69
+ }
57
70
  function resolveCredentialsFromConfig(params) {
58
71
  const { account, accountId } = params;
59
72
  const inline = parseServiceAccount(account.serviceAccount);
@@ -75,24 +88,7 @@ function resolveCredentialsFromConfig(params) {
75
88
  status: "missing"
76
89
  };
77
90
  const file = normalizeOptionalString(account.serviceAccountFile);
78
- if (file) {
79
- const resolvedFile = resolveUserPath(file);
80
- const result = tryReadSecretFileSync(resolvedFile, "Google Chat service account file", {
81
- maxBytes: MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES,
82
- rejectHardlinks: false,
83
- rejectSymlink: false
84
- }, { configPath: `channels.googlechat.accounts.${accountId}.serviceAccountFile` });
85
- return result.status === "available" ? {
86
- credentialsFile: file,
87
- source: "file",
88
- status: "available"
89
- } : {
90
- credentialsFile: file,
91
- source: "file",
92
- status: "configured_unavailable",
93
- diagnostic: result.diagnostic
94
- };
95
- }
91
+ if (file) return resolveCredentialsFile(file, "file", `channels.googlechat.accounts.${accountId}.serviceAccountFile`);
96
92
  if (accountId === DEFAULT_ACCOUNT_ID) {
97
93
  const envJson = process.env[ENV_SERVICE_ACCOUNT$1];
98
94
  const envInline = parseServiceAccount(envJson);
@@ -102,24 +98,7 @@ function resolveCredentialsFromConfig(params) {
102
98
  status: "available"
103
99
  };
104
100
  const envFile = normalizeOptionalString(process.env[ENV_SERVICE_ACCOUNT_FILE$1]);
105
- if (envFile) {
106
- const resolvedEnvFile = resolveUserPath(envFile);
107
- const result = tryReadSecretFileSync(resolvedEnvFile, "Google Chat service account file", {
108
- maxBytes: MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES,
109
- rejectHardlinks: false,
110
- rejectSymlink: false
111
- }, { configPath: `env.${ENV_SERVICE_ACCOUNT_FILE$1}` });
112
- return result.status === "available" ? {
113
- credentialsFile: envFile,
114
- source: "env",
115
- status: "available"
116
- } : {
117
- credentialsFile: envFile,
118
- source: "env",
119
- status: "configured_unavailable",
120
- diagnostic: result.diagnostic
121
- };
122
- }
101
+ if (envFile) return resolveCredentialsFile(envFile, "env", `env.${ENV_SERVICE_ACCOUNT_FILE$1}`);
123
102
  }
124
103
  return {
125
104
  source: "none",