@openclaw/googlechat 2026.7.2-beta.5 → 2026.7.2-beta.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 (322) hide show
  1. package/dist/{actions-wnreW-IQ.js → actions-D81dCtkC.js} +4 -12
  2. package/dist/api.js +2 -2
  3. package/dist/{approval-auth-G-OFufNc.js → approval-auth-ykO6i_ub.js} +2 -2
  4. package/dist/{approval-handler.runtime-BJXVLK9y.js → approval-handler.runtime-CBeHrXtL.js} +3 -3
  5. package/dist/{channel-base-CC85hRUC.js → channel-base-hw9ErEr5.js} +35 -12
  6. package/dist/{channel-CehfTiWZ.js → channel-kouqKs2x.js} +20 -18
  7. package/dist/channel-plugin-api.js +1 -1
  8. package/dist/{channel.adapters-DLatFGZz.js → channel.adapters-DaipaeYt.js} +6 -8
  9. package/dist/{channel.runtime-Bz0__ttC.js → channel.runtime-BbwE9vOC.js} +48 -66
  10. package/dist/directory-contract-api.js +1 -1
  11. package/dist/setup-plugin-api.js +1 -1
  12. package/node_modules/google-auth-library/build/src/auth/googleauth.js +24 -19
  13. package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/tsconfig.cjs.tsbuildinfo +1 -0
  14. package/node_modules/google-auth-library/node_modules/gaxios/build/esm/tsconfig.tsbuildinfo +1 -0
  15. package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/package.json +1 -1
  16. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/colours.d.ts +1 -0
  17. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/colours.js +81 -0
  18. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/colours.js.map +1 -0
  19. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/index.d.ts +2 -0
  20. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/index.js +31 -0
  21. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/index.js.map +1 -0
  22. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/logging-utils.d.ts +89 -0
  23. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/logging-utils.js +414 -0
  24. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/logging-utils.js.map +1 -0
  25. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/temporal.js +68 -0
  26. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/temporal.js.map +1 -0
  27. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/types.d.ts +78 -0
  28. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/types.js +16 -0
  29. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/types.js.map +1 -0
  30. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/package.json +47 -0
  31. package/node_modules/google-auth-library/node_modules/google-logging-utils/LICENSE +202 -0
  32. package/node_modules/google-auth-library/node_modules/google-logging-utils/README.md +73 -0
  33. package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/temporal.d.ts +45 -0
  34. package/node_modules/google-auth-library/package.json +1 -1
  35. package/package.json +5 -5
  36. package/node_modules/gaxios/build/cjs/tsconfig.cjs.tsbuildinfo +0 -1
  37. package/node_modules/gaxios/build/esm/tsconfig.tsbuildinfo +0 -1
  38. /package/node_modules/{agent-base → google-auth-library/node_modules/agent-base}/LICENSE +0 -0
  39. /package/node_modules/{agent-base → google-auth-library/node_modules/agent-base}/README.md +0 -0
  40. /package/node_modules/{agent-base → google-auth-library/node_modules/agent-base}/dist/helpers.d.ts +0 -0
  41. /package/node_modules/{agent-base → google-auth-library/node_modules/agent-base}/dist/helpers.d.ts.map +0 -0
  42. /package/node_modules/{agent-base → google-auth-library/node_modules/agent-base}/dist/helpers.js +0 -0
  43. /package/node_modules/{agent-base → google-auth-library/node_modules/agent-base}/dist/helpers.js.map +0 -0
  44. /package/node_modules/{agent-base → google-auth-library/node_modules/agent-base}/dist/index.d.ts +0 -0
  45. /package/node_modules/{agent-base → google-auth-library/node_modules/agent-base}/dist/index.d.ts.map +0 -0
  46. /package/node_modules/{agent-base → google-auth-library/node_modules/agent-base}/dist/index.js +0 -0
  47. /package/node_modules/{agent-base → google-auth-library/node_modules/agent-base}/dist/index.js.map +0 -0
  48. /package/node_modules/{agent-base → google-auth-library/node_modules/agent-base}/package.json +0 -0
  49. /package/node_modules/{base64-js → google-auth-library/node_modules/base64-js}/LICENSE +0 -0
  50. /package/node_modules/{base64-js → google-auth-library/node_modules/base64-js}/README.md +0 -0
  51. /package/node_modules/{base64-js → google-auth-library/node_modules/base64-js}/base64js.min.js +0 -0
  52. /package/node_modules/{base64-js → google-auth-library/node_modules/base64-js}/index.d.ts +0 -0
  53. /package/node_modules/{base64-js → google-auth-library/node_modules/base64-js}/index.js +0 -0
  54. /package/node_modules/{base64-js → google-auth-library/node_modules/base64-js}/package.json +0 -0
  55. /package/node_modules/{bignumber.js → google-auth-library/node_modules/bignumber.js}/CHANGELOG.md +0 -0
  56. /package/node_modules/{bignumber.js → google-auth-library/node_modules/bignumber.js}/LICENCE.md +0 -0
  57. /package/node_modules/{bignumber.js → google-auth-library/node_modules/bignumber.js}/README.md +0 -0
  58. /package/node_modules/{bignumber.js → google-auth-library/node_modules/bignumber.js}/bignumber.d.mts +0 -0
  59. /package/node_modules/{bignumber.js → google-auth-library/node_modules/bignumber.js}/bignumber.d.ts +0 -0
  60. /package/node_modules/{bignumber.js → google-auth-library/node_modules/bignumber.js}/bignumber.js +0 -0
  61. /package/node_modules/{bignumber.js → google-auth-library/node_modules/bignumber.js}/bignumber.mjs +0 -0
  62. /package/node_modules/{bignumber.js → google-auth-library/node_modules/bignumber.js}/doc/API.html +0 -0
  63. /package/node_modules/{bignumber.js → google-auth-library/node_modules/bignumber.js}/package.json +0 -0
  64. /package/node_modules/{bignumber.js → google-auth-library/node_modules/bignumber.js}/types.d.ts +0 -0
  65. /package/node_modules/{buffer-equal-constant-time → google-auth-library/node_modules/buffer-equal-constant-time}/.npmignore +0 -0
  66. /package/node_modules/{buffer-equal-constant-time → google-auth-library/node_modules/buffer-equal-constant-time}/.travis.yml +0 -0
  67. /package/node_modules/{buffer-equal-constant-time → google-auth-library/node_modules/buffer-equal-constant-time}/LICENSE.txt +0 -0
  68. /package/node_modules/{buffer-equal-constant-time → google-auth-library/node_modules/buffer-equal-constant-time}/README.md +0 -0
  69. /package/node_modules/{buffer-equal-constant-time → google-auth-library/node_modules/buffer-equal-constant-time}/index.js +0 -0
  70. /package/node_modules/{buffer-equal-constant-time → google-auth-library/node_modules/buffer-equal-constant-time}/package.json +0 -0
  71. /package/node_modules/{buffer-equal-constant-time → google-auth-library/node_modules/buffer-equal-constant-time}/test.js +0 -0
  72. /package/node_modules/{data-uri-to-buffer → google-auth-library/node_modules/data-uri-to-buffer}/README.md +0 -0
  73. /package/node_modules/{data-uri-to-buffer → google-auth-library/node_modules/data-uri-to-buffer}/dist/index.d.ts +0 -0
  74. /package/node_modules/{data-uri-to-buffer → google-auth-library/node_modules/data-uri-to-buffer}/dist/index.js +0 -0
  75. /package/node_modules/{data-uri-to-buffer → google-auth-library/node_modules/data-uri-to-buffer}/dist/index.js.map +0 -0
  76. /package/node_modules/{data-uri-to-buffer → google-auth-library/node_modules/data-uri-to-buffer}/package.json +0 -0
  77. /package/node_modules/{data-uri-to-buffer → google-auth-library/node_modules/data-uri-to-buffer}/src/index.ts +0 -0
  78. /package/node_modules/{debug → google-auth-library/node_modules/debug}/LICENSE +0 -0
  79. /package/node_modules/{debug → google-auth-library/node_modules/debug}/README.md +0 -0
  80. /package/node_modules/{debug → google-auth-library/node_modules/debug}/package.json +0 -0
  81. /package/node_modules/{debug → google-auth-library/node_modules/debug}/src/browser.js +0 -0
  82. /package/node_modules/{debug → google-auth-library/node_modules/debug}/src/common.js +0 -0
  83. /package/node_modules/{debug → google-auth-library/node_modules/debug}/src/index.js +0 -0
  84. /package/node_modules/{debug → google-auth-library/node_modules/debug}/src/node.js +0 -0
  85. /package/node_modules/{ecdsa-sig-formatter → google-auth-library/node_modules/ecdsa-sig-formatter}/CODEOWNERS +0 -0
  86. /package/node_modules/{ecdsa-sig-formatter → google-auth-library/node_modules/ecdsa-sig-formatter}/LICENSE +0 -0
  87. /package/node_modules/{ecdsa-sig-formatter → google-auth-library/node_modules/ecdsa-sig-formatter}/README.md +0 -0
  88. /package/node_modules/{ecdsa-sig-formatter → google-auth-library/node_modules/ecdsa-sig-formatter}/package.json +0 -0
  89. /package/node_modules/{ecdsa-sig-formatter → google-auth-library/node_modules/ecdsa-sig-formatter}/src/ecdsa-sig-formatter.d.ts +0 -0
  90. /package/node_modules/{ecdsa-sig-formatter → google-auth-library/node_modules/ecdsa-sig-formatter}/src/ecdsa-sig-formatter.js +0 -0
  91. /package/node_modules/{ecdsa-sig-formatter → google-auth-library/node_modules/ecdsa-sig-formatter}/src/param-bytes-for-alg.js +0 -0
  92. /package/node_modules/{extend → google-auth-library/node_modules/extend}/.editorconfig +0 -0
  93. /package/node_modules/{extend → google-auth-library/node_modules/extend}/.eslintrc +0 -0
  94. /package/node_modules/{extend → google-auth-library/node_modules/extend}/.jscs.json +0 -0
  95. /package/node_modules/{extend → google-auth-library/node_modules/extend}/.travis.yml +0 -0
  96. /package/node_modules/{extend → google-auth-library/node_modules/extend}/CHANGELOG.md +0 -0
  97. /package/node_modules/{extend → google-auth-library/node_modules/extend}/LICENSE +0 -0
  98. /package/node_modules/{extend → google-auth-library/node_modules/extend}/README.md +0 -0
  99. /package/node_modules/{extend → google-auth-library/node_modules/extend}/component.json +0 -0
  100. /package/node_modules/{extend → google-auth-library/node_modules/extend}/index.js +0 -0
  101. /package/node_modules/{extend → google-auth-library/node_modules/extend}/package.json +0 -0
  102. /package/node_modules/{fetch-blob → google-auth-library/node_modules/fetch-blob}/LICENSE +0 -0
  103. /package/node_modules/{fetch-blob → google-auth-library/node_modules/fetch-blob}/README.md +0 -0
  104. /package/node_modules/{fetch-blob → google-auth-library/node_modules/fetch-blob}/file.d.ts +0 -0
  105. /package/node_modules/{fetch-blob → google-auth-library/node_modules/fetch-blob}/file.js +0 -0
  106. /package/node_modules/{fetch-blob → google-auth-library/node_modules/fetch-blob}/from.d.ts +0 -0
  107. /package/node_modules/{fetch-blob → google-auth-library/node_modules/fetch-blob}/from.js +0 -0
  108. /package/node_modules/{fetch-blob → google-auth-library/node_modules/fetch-blob}/index.d.ts +0 -0
  109. /package/node_modules/{fetch-blob → google-auth-library/node_modules/fetch-blob}/index.js +0 -0
  110. /package/node_modules/{fetch-blob → google-auth-library/node_modules/fetch-blob}/package.json +0 -0
  111. /package/node_modules/{fetch-blob → google-auth-library/node_modules/fetch-blob}/streams.cjs +0 -0
  112. /package/node_modules/{formdata-polyfill → google-auth-library/node_modules/formdata-polyfill}/FormData.js +0 -0
  113. /package/node_modules/{formdata-polyfill → google-auth-library/node_modules/formdata-polyfill}/LICENSE +0 -0
  114. /package/node_modules/{formdata-polyfill → google-auth-library/node_modules/formdata-polyfill}/README.md +0 -0
  115. /package/node_modules/{formdata-polyfill → google-auth-library/node_modules/formdata-polyfill}/esm.min.d.ts +0 -0
  116. /package/node_modules/{formdata-polyfill → google-auth-library/node_modules/formdata-polyfill}/esm.min.js +0 -0
  117. /package/node_modules/{formdata-polyfill → google-auth-library/node_modules/formdata-polyfill}/formdata-to-blob.js +0 -0
  118. /package/node_modules/{formdata-polyfill → google-auth-library/node_modules/formdata-polyfill}/formdata.min.js +0 -0
  119. /package/node_modules/{formdata-polyfill → google-auth-library/node_modules/formdata-polyfill}/package.json +0 -0
  120. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/LICENSE +0 -0
  121. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/README.md +0 -0
  122. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/browser-test/browser-test-runner.d.ts +0 -0
  123. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/browser-test/browser-test-runner.js +0 -0
  124. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/browser-test/browser-test-runner.js.map +0 -0
  125. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/browser-test/test.browser.d.ts +0 -0
  126. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/browser-test/test.browser.js +0 -0
  127. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/browser-test/test.browser.js.map +0 -0
  128. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/common.d.ts +0 -0
  129. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/common.js +0 -0
  130. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/common.js.map +0 -0
  131. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/gaxios.d.ts +0 -0
  132. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/gaxios.js +0 -0
  133. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/gaxios.js.map +0 -0
  134. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/index.d.ts +0 -0
  135. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/index.js +0 -0
  136. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/index.js.map +0 -0
  137. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/interceptor.d.ts +0 -0
  138. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/interceptor.js +0 -0
  139. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/interceptor.js.map +0 -0
  140. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/retry.d.ts +0 -0
  141. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/retry.js +0 -0
  142. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/retry.js.map +0 -0
  143. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/util.cjs +0 -0
  144. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/util.cjs.map +0 -0
  145. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/util.d.cts +0 -0
  146. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/system-test/test.install.d.ts +0 -0
  147. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/system-test/test.install.js +0 -0
  148. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/system-test/test.install.js.map +0 -0
  149. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/test/test.getch.d.ts +0 -0
  150. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/test/test.getch.js +0 -0
  151. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/test/test.getch.js.map +0 -0
  152. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/test/test.index.d.ts +0 -0
  153. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/test/test.index.js +0 -0
  154. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/test/test.index.js.map +0 -0
  155. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/test/test.retry.d.ts +0 -0
  156. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/test/test.retry.js +0 -0
  157. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/test/test.retry.js.map +0 -0
  158. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/browser-test/browser-test-runner.d.ts +0 -0
  159. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/browser-test/browser-test-runner.js +0 -0
  160. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/browser-test/browser-test-runner.js.map +0 -0
  161. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/browser-test/test.browser.d.ts +0 -0
  162. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/browser-test/test.browser.js +0 -0
  163. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/browser-test/test.browser.js.map +0 -0
  164. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/package.json +0 -0
  165. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/common.d.ts +0 -0
  166. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/common.js +0 -0
  167. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/common.js.map +0 -0
  168. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/gaxios.d.ts +0 -0
  169. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/gaxios.js +0 -0
  170. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/gaxios.js.map +0 -0
  171. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/index.d.ts +0 -0
  172. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/index.js +0 -0
  173. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/index.js.map +0 -0
  174. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/interceptor.d.ts +0 -0
  175. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/interceptor.js +0 -0
  176. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/interceptor.js.map +0 -0
  177. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/retry.d.ts +0 -0
  178. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/retry.js +0 -0
  179. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/retry.js.map +0 -0
  180. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/util.cjs +0 -0
  181. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/util.cjs.map +0 -0
  182. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/util.d.cts +0 -0
  183. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/system-test/test.install.d.ts +0 -0
  184. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/system-test/test.install.js +0 -0
  185. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/system-test/test.install.js.map +0 -0
  186. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/test/test.getch.d.ts +0 -0
  187. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/test/test.getch.js +0 -0
  188. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/test/test.getch.js.map +0 -0
  189. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/test/test.index.d.ts +0 -0
  190. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/test/test.index.js +0 -0
  191. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/test/test.index.js.map +0 -0
  192. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/test/test.retry.d.ts +0 -0
  193. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/test/test.retry.js +0 -0
  194. /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/test/test.retry.js.map +0 -0
  195. /package/node_modules/{gcp-metadata → google-auth-library/node_modules/gcp-metadata}/LICENSE +0 -0
  196. /package/node_modules/{gcp-metadata → google-auth-library/node_modules/gcp-metadata}/README.md +0 -0
  197. /package/node_modules/{gcp-metadata → google-auth-library/node_modules/gcp-metadata}/build/src/gcp-residency.d.ts +0 -0
  198. /package/node_modules/{gcp-metadata → google-auth-library/node_modules/gcp-metadata}/build/src/gcp-residency.js +0 -0
  199. /package/node_modules/{gcp-metadata → google-auth-library/node_modules/gcp-metadata}/build/src/gcp-residency.js.map +0 -0
  200. /package/node_modules/{gcp-metadata → google-auth-library/node_modules/gcp-metadata}/build/src/index.d.ts +0 -0
  201. /package/node_modules/{gcp-metadata → google-auth-library/node_modules/gcp-metadata}/build/src/index.js +0 -0
  202. /package/node_modules/{gcp-metadata → google-auth-library/node_modules/gcp-metadata}/build/src/index.js.map +0 -0
  203. /package/node_modules/{google-logging-utils → google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils}/LICENSE +0 -0
  204. /package/node_modules/{google-logging-utils → google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils}/README.md +0 -0
  205. /package/node_modules/{google-logging-utils → google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils}/build/src/temporal.d.ts +0 -0
  206. /package/node_modules/{gcp-metadata → google-auth-library/node_modules/gcp-metadata}/package.json +0 -0
  207. /package/node_modules/{google-logging-utils → google-auth-library/node_modules/google-logging-utils}/build/src/colours.d.ts +0 -0
  208. /package/node_modules/{google-logging-utils → google-auth-library/node_modules/google-logging-utils}/build/src/colours.js +0 -0
  209. /package/node_modules/{google-logging-utils → google-auth-library/node_modules/google-logging-utils}/build/src/colours.js.map +0 -0
  210. /package/node_modules/{google-logging-utils → google-auth-library/node_modules/google-logging-utils}/build/src/index.d.ts +0 -0
  211. /package/node_modules/{google-logging-utils → google-auth-library/node_modules/google-logging-utils}/build/src/index.js +0 -0
  212. /package/node_modules/{google-logging-utils → google-auth-library/node_modules/google-logging-utils}/build/src/index.js.map +0 -0
  213. /package/node_modules/{google-logging-utils → google-auth-library/node_modules/google-logging-utils}/build/src/logging-utils.d.ts +0 -0
  214. /package/node_modules/{google-logging-utils → google-auth-library/node_modules/google-logging-utils}/build/src/logging-utils.js +0 -0
  215. /package/node_modules/{google-logging-utils → google-auth-library/node_modules/google-logging-utils}/build/src/logging-utils.js.map +0 -0
  216. /package/node_modules/{google-logging-utils → google-auth-library/node_modules/google-logging-utils}/build/src/temporal.js +0 -0
  217. /package/node_modules/{google-logging-utils → google-auth-library/node_modules/google-logging-utils}/build/src/temporal.js.map +0 -0
  218. /package/node_modules/{google-logging-utils → google-auth-library/node_modules/google-logging-utils}/package.json +0 -0
  219. /package/node_modules/{https-proxy-agent → google-auth-library/node_modules/https-proxy-agent}/LICENSE +0 -0
  220. /package/node_modules/{https-proxy-agent → google-auth-library/node_modules/https-proxy-agent}/README.md +0 -0
  221. /package/node_modules/{https-proxy-agent → google-auth-library/node_modules/https-proxy-agent}/dist/index.d.ts +0 -0
  222. /package/node_modules/{https-proxy-agent → google-auth-library/node_modules/https-proxy-agent}/dist/index.d.ts.map +0 -0
  223. /package/node_modules/{https-proxy-agent → google-auth-library/node_modules/https-proxy-agent}/dist/index.js +0 -0
  224. /package/node_modules/{https-proxy-agent → google-auth-library/node_modules/https-proxy-agent}/dist/index.js.map +0 -0
  225. /package/node_modules/{https-proxy-agent → google-auth-library/node_modules/https-proxy-agent}/dist/parse-proxy-response.d.ts +0 -0
  226. /package/node_modules/{https-proxy-agent → google-auth-library/node_modules/https-proxy-agent}/dist/parse-proxy-response.d.ts.map +0 -0
  227. /package/node_modules/{https-proxy-agent → google-auth-library/node_modules/https-proxy-agent}/dist/parse-proxy-response.js +0 -0
  228. /package/node_modules/{https-proxy-agent → google-auth-library/node_modules/https-proxy-agent}/dist/parse-proxy-response.js.map +0 -0
  229. /package/node_modules/{https-proxy-agent → google-auth-library/node_modules/https-proxy-agent}/package.json +0 -0
  230. /package/node_modules/{json-bigint → google-auth-library/node_modules/json-bigint}/LICENSE +0 -0
  231. /package/node_modules/{json-bigint → google-auth-library/node_modules/json-bigint}/README.md +0 -0
  232. /package/node_modules/{json-bigint → google-auth-library/node_modules/json-bigint}/index.js +0 -0
  233. /package/node_modules/{json-bigint → google-auth-library/node_modules/json-bigint}/lib/parse.js +0 -0
  234. /package/node_modules/{json-bigint → google-auth-library/node_modules/json-bigint}/lib/stringify.js +0 -0
  235. /package/node_modules/{json-bigint → google-auth-library/node_modules/json-bigint}/package.json +0 -0
  236. /package/node_modules/{jwa → google-auth-library/node_modules/jwa}/LICENSE +0 -0
  237. /package/node_modules/{jwa → google-auth-library/node_modules/jwa}/README.md +0 -0
  238. /package/node_modules/{jwa → google-auth-library/node_modules/jwa}/index.js +0 -0
  239. /package/node_modules/{jwa → google-auth-library/node_modules/jwa}/opslevel.yml +0 -0
  240. /package/node_modules/{jwa → google-auth-library/node_modules/jwa}/package.json +0 -0
  241. /package/node_modules/{jws → google-auth-library/node_modules/jws}/CHANGELOG.md +0 -0
  242. /package/node_modules/{jws → google-auth-library/node_modules/jws}/LICENSE +0 -0
  243. /package/node_modules/{jws → google-auth-library/node_modules/jws}/index.js +0 -0
  244. /package/node_modules/{jws → google-auth-library/node_modules/jws}/lib/data-stream.js +0 -0
  245. /package/node_modules/{jws → google-auth-library/node_modules/jws}/lib/sign-stream.js +0 -0
  246. /package/node_modules/{jws → google-auth-library/node_modules/jws}/lib/tostring.js +0 -0
  247. /package/node_modules/{jws → google-auth-library/node_modules/jws}/lib/verify-stream.js +0 -0
  248. /package/node_modules/{jws → google-auth-library/node_modules/jws}/opslevel.yml +0 -0
  249. /package/node_modules/{jws → google-auth-library/node_modules/jws}/package.json +0 -0
  250. /package/node_modules/{jws → google-auth-library/node_modules/jws}/readme.md +0 -0
  251. /package/node_modules/{ms → google-auth-library/node_modules/ms}/index.js +0 -0
  252. /package/node_modules/{ms → google-auth-library/node_modules/ms}/license.md +0 -0
  253. /package/node_modules/{ms → google-auth-library/node_modules/ms}/package.json +0 -0
  254. /package/node_modules/{ms → google-auth-library/node_modules/ms}/readme.md +0 -0
  255. /package/node_modules/{node-domexception → google-auth-library/node_modules/node-domexception}/LICENSE +0 -0
  256. /package/node_modules/{node-domexception → google-auth-library/node_modules/node-domexception}/index.js +0 -0
  257. /package/node_modules/{node-domexception → google-auth-library/node_modules/node-domexception}/package.json +0 -0
  258. /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/@types/index.d.ts +0 -0
  259. /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/LICENSE.md +0 -0
  260. /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/README.md +0 -0
  261. /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/package.json +0 -0
  262. /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/src/body.js +0 -0
  263. /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/src/errors/abort-error.js +0 -0
  264. /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/src/errors/base.js +0 -0
  265. /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/src/errors/fetch-error.js +0 -0
  266. /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/src/headers.js +0 -0
  267. /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/src/index.js +0 -0
  268. /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/src/request.js +0 -0
  269. /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/src/response.js +0 -0
  270. /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/src/utils/get-search.js +0 -0
  271. /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/src/utils/is-redirect.js +0 -0
  272. /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/src/utils/is.js +0 -0
  273. /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/src/utils/multipart-parser.js +0 -0
  274. /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/src/utils/referrer.js +0 -0
  275. /package/node_modules/{safe-buffer → google-auth-library/node_modules/safe-buffer}/LICENSE +0 -0
  276. /package/node_modules/{safe-buffer → google-auth-library/node_modules/safe-buffer}/README.md +0 -0
  277. /package/node_modules/{safe-buffer → google-auth-library/node_modules/safe-buffer}/index.d.ts +0 -0
  278. /package/node_modules/{safe-buffer → google-auth-library/node_modules/safe-buffer}/index.js +0 -0
  279. /package/node_modules/{safe-buffer → google-auth-library/node_modules/safe-buffer}/package.json +0 -0
  280. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/LICENSE +0 -0
  281. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/README.md +0 -0
  282. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.es2018.js +0 -0
  283. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.es2018.js.map +0 -0
  284. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.es2018.min.js +0 -0
  285. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.es2018.min.js.map +0 -0
  286. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.es2018.mjs +0 -0
  287. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.es2018.mjs.map +0 -0
  288. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.es6.js +0 -0
  289. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.es6.js.map +0 -0
  290. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.es6.min.js +0 -0
  291. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.es6.min.js.map +0 -0
  292. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.es6.mjs +0 -0
  293. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.es6.mjs.map +0 -0
  294. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.js +0 -0
  295. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.js.map +0 -0
  296. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.min.js +0 -0
  297. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.min.js.map +0 -0
  298. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.mjs +0 -0
  299. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.mjs.map +0 -0
  300. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/ponyfill.es2018.js +0 -0
  301. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/ponyfill.es2018.js.map +0 -0
  302. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/ponyfill.es2018.mjs +0 -0
  303. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/ponyfill.es2018.mjs.map +0 -0
  304. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/ponyfill.es6.js +0 -0
  305. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/ponyfill.es6.js.map +0 -0
  306. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/ponyfill.es6.mjs +0 -0
  307. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/ponyfill.es6.mjs.map +0 -0
  308. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/ponyfill.js +0 -0
  309. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/ponyfill.js.map +0 -0
  310. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/ponyfill.mjs +0 -0
  311. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/ponyfill.mjs.map +0 -0
  312. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/types/polyfill.d.ts +0 -0
  313. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/types/ponyfill.d.ts +0 -0
  314. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/types/ts3.6/polyfill.d.ts +0 -0
  315. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/types/ts3.6/ponyfill.d.ts +0 -0
  316. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/types/tsdoc-metadata.json +0 -0
  317. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/es2018/package.json +0 -0
  318. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/es6/package.json +0 -0
  319. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/package.json +0 -0
  320. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/ponyfill/es2018/package.json +0 -0
  321. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/ponyfill/es6/package.json +0 -0
  322. /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/ponyfill/package.json +0 -0
@@ -1,12 +1,10 @@
1
- import { l as resolveGoogleChatAccount, o as listEnabledGoogleChatAccounts } from "./channel-base-CC85hRUC.js";
2
- import { m as resolveGoogleChatOutboundSpace, v as sendGoogleChatMessage } from "./channel.adapters-DLatFGZz.js";
1
+ import { l as resolveGoogleChatAccount } from "./channel-base-hw9ErEr5.js";
2
+ import { m as resolveGoogleChatOutboundSpace, v as sendGoogleChatMessage } from "./channel.adapters-DaipaeYt.js";
3
+ import { n as describeGoogleChatMessageTool } from "./channel-kouqKs2x.js";
3
4
  import { extractToolSend } from "openclaw/plugin-sdk/tool-send";
4
5
  import { jsonResult, readStringArrayParam, readStringParam } from "openclaw/plugin-sdk/channel-actions";
5
6
  //#region extensions/googlechat/src/actions.ts
6
7
  const providerId = "googlechat";
7
- function listEnabledAccounts(cfg) {
8
- return listEnabledGoogleChatAccounts(cfg).filter((account) => account.enabled && account.credentialSource !== "none" && account.tokenStatus !== "configured_unavailable");
9
- }
10
8
  const OUTBOUND_MEDIA_KEYS = [
11
9
  "media",
12
10
  "mediaUrl",
@@ -26,13 +24,7 @@ function hasGoogleChatOutboundAttachment(params) {
26
24
  });
27
25
  }
28
26
  const googlechatMessageActions = {
29
- describeMessageTool: ({ cfg, accountId }) => {
30
- if ((accountId ? [resolveGoogleChatAccount({
31
- cfg,
32
- accountId
33
- })].filter((account) => account.enabled && account.credentialSource !== "none" && account.tokenStatus !== "configured_unavailable") : listEnabledAccounts(cfg)).length === 0) return null;
34
- return { actions: ["send"] };
35
- },
27
+ describeMessageTool: describeGoogleChatMessageTool,
36
28
  supportsAction: ({ action }) => action === "send",
37
29
  extractToolSend: ({ args }) => {
38
30
  return extractToolSend(args, "sendMessage");
package/dist/api.js CHANGED
@@ -1,3 +1,3 @@
1
- import { a as googlechatSetupAdapter, i as googlechatSetupWizard } from "./channel-base-CC85hRUC.js";
2
- import { t as googlechatPlugin } from "./channel-CehfTiWZ.js";
1
+ import { a as googlechatSetupAdapter, i as googlechatSetupWizard } from "./channel-base-hw9ErEr5.js";
2
+ import { t as googlechatPlugin } from "./channel-kouqKs2x.js";
3
3
  export { googlechatPlugin, googlechatSetupAdapter, googlechatSetupWizard };
@@ -1,5 +1,5 @@
1
- import { l as resolveGoogleChatAccount } from "./channel-base-CC85hRUC.js";
2
- import { d as isGoogleChatUserTarget, f as normalizeGoogleChatTarget } from "./channel.adapters-DLatFGZz.js";
1
+ import { l as resolveGoogleChatAccount } from "./channel-base-hw9ErEr5.js";
2
+ import { d as isGoogleChatUserTarget, f as normalizeGoogleChatTarget } from "./channel.adapters-DaipaeYt.js";
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,6 +1,6 @@
1
- import { l as resolveGoogleChatAccount } from "./channel-base-CC85hRUC.js";
2
- import { M as unregisterGoogleChatManualApprovalFollowupSuppression, O as registerGoogleChatApprovalCardBinding, S as buildGoogleChatApprovalActionParameters, T as createGoogleChatApprovalToken, j as unregisterGoogleChatApprovalCardBindings, k as registerGoogleChatManualApprovalFollowupSuppression, m as resolveGoogleChatOutboundSpace, v as sendGoogleChatMessage, x as GOOGLECHAT_APPROVAL_ACTION, y as updateGoogleChatMessage } from "./channel.adapters-DLatFGZz.js";
3
- import { n as isGoogleChatNativeApprovalClientEnabled, r as shouldHandleGoogleChatNativeApprovalRequest } from "./channel-CehfTiWZ.js";
1
+ import { l as resolveGoogleChatAccount } from "./channel-base-hw9ErEr5.js";
2
+ import { M as unregisterGoogleChatManualApprovalFollowupSuppression, O as registerGoogleChatApprovalCardBinding, S as buildGoogleChatApprovalActionParameters, T as createGoogleChatApprovalToken, j as unregisterGoogleChatApprovalCardBindings, k as registerGoogleChatManualApprovalFollowupSuppression, m as resolveGoogleChatOutboundSpace, v as sendGoogleChatMessage, x as GOOGLECHAT_APPROVAL_ACTION, y as updateGoogleChatMessage } from "./channel.adapters-DaipaeYt.js";
3
+ import { i as shouldHandleGoogleChatNativeApprovalRequest, r as isGoogleChatNativeApprovalClientEnabled } from "./channel-kouqKs2x.js";
4
4
  import { buildChannelApprovalNativeTargetKey } from "openclaw/plugin-sdk/approval-native-runtime";
5
5
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
6
6
  import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
@@ -4,7 +4,7 @@ import { createAccountListHelpers, describeAccountSnapshot } from "openclaw/plug
4
4
  import { DEFAULT_ACCOUNT_ID, normalizeAccountId, resolveAccountEntry } from "openclaw/plugin-sdk/account-resolution";
5
5
  import { mergePairLoopGuardConfig } from "openclaw/plugin-sdk/pair-loop-guard-runtime";
6
6
  import { tryReadSecretFileSync } from "openclaw/plugin-sdk/secret-file-runtime";
7
- import { isSecretRef } from "openclaw/plugin-sdk/secret-input";
7
+ import { coerceSecretRef, isSecretRef, resolveSecretInputString } from "openclaw/plugin-sdk/secret-input";
8
8
  import { resolveUserPath } from "openclaw/plugin-sdk/text-utility-runtime";
9
9
  import { z } from "zod";
10
10
  import { formatNormalizedAllowFromEntries } from "openclaw/plugin-sdk/allow-from";
@@ -62,7 +62,18 @@ function resolveCredentialsFromConfig(params) {
62
62
  source: "inline",
63
63
  status: "available"
64
64
  };
65
- if (isSecretRef(account.serviceAccount)) throw new Error(`channels.googlechat.accounts.${accountId}.serviceAccount: unresolved SecretRef "${account.serviceAccount.source}:${account.serviceAccount.provider}:${account.serviceAccount.id}". Resolve this command against an active gateway runtime snapshot before reading it.`);
65
+ if (coerceSecretRef(account.serviceAccount, params.cfg.secrets?.defaults)) return resolveSecretInputString({
66
+ value: account.serviceAccount,
67
+ defaults: params.cfg.secrets?.defaults,
68
+ path: `channels.googlechat.accounts.${accountId}.serviceAccount`,
69
+ mode: params.mode
70
+ }).status === "configured_unavailable" ? {
71
+ source: "none",
72
+ status: "configured_unavailable"
73
+ } : {
74
+ source: "none",
75
+ status: "missing"
76
+ };
66
77
  const file = normalizeOptionalString(account.serviceAccountFile);
67
78
  if (file) {
68
79
  const result = tryReadSecretFileSync(resolveUserPath(file), "Google Chat service account file", {
@@ -113,15 +124,17 @@ function resolveCredentialsFromConfig(params) {
113
124
  status: "missing"
114
125
  };
115
126
  }
116
- function resolveGoogleChatAccount(params) {
127
+ function resolveGoogleChatAccountWithMode(params) {
117
128
  const accountId = normalizeAccountId(params.accountId ?? params.cfg.channels?.["googlechat"]?.defaultAccount);
118
129
  const baseEnabled = params.cfg.channels?.["googlechat"]?.enabled !== false;
119
130
  const merged = mergeGoogleChatAccountConfig(params.cfg, accountId);
120
131
  const accountEnabled = merged.enabled !== false;
121
132
  const enabled = baseEnabled && accountEnabled;
122
133
  const credentials = resolveCredentialsFromConfig({
134
+ cfg: params.cfg,
123
135
  accountId,
124
- account: merged
136
+ account: merged,
137
+ mode: params.mode
125
138
  });
126
139
  return {
127
140
  accountId,
@@ -135,11 +148,17 @@ function resolveGoogleChatAccount(params) {
135
148
  ...credentials.diagnostic ? { credentialDiagnostics: [credentials.diagnostic] } : {}
136
149
  };
137
150
  }
138
- function listEnabledGoogleChatAccounts(cfg) {
139
- return listGoogleChatAccountIds(cfg).map((accountId) => resolveGoogleChatAccount({
140
- cfg,
141
- accountId
142
- })).filter((account) => account.enabled);
151
+ function resolveGoogleChatAccount(params) {
152
+ return resolveGoogleChatAccountWithMode({
153
+ ...params,
154
+ mode: "strict"
155
+ });
156
+ }
157
+ function inspectGoogleChatAccount(params) {
158
+ return resolveGoogleChatAccountWithMode({
159
+ ...params,
160
+ mode: "inspect"
161
+ });
143
162
  }
144
163
  const googlechatSetupAdapter = createPatchedAccountSetupAdapter({
145
164
  channelKey: "googlechat",
@@ -426,6 +445,9 @@ const googleChatConfigAdapter = createScopedChannelConfigAdapter({
426
445
  }),
427
446
  resolveDefaultTo: (account) => account.config.defaultTo
428
447
  });
448
+ function isGoogleChatAccountConfigured(account) {
449
+ return account.tokenStatus ? account.tokenStatus !== "missing" : account.credentialSource !== "none";
450
+ }
429
451
  function createGoogleChatPluginBase(params = {}) {
430
452
  return {
431
453
  id: GOOGLECHAT_CHANNEL_ID,
@@ -452,10 +474,11 @@ function createGoogleChatPluginBase(params = {}) {
452
474
  ...params.configSchema ? { configSchema: params.configSchema } : {},
453
475
  config: {
454
476
  ...googleChatConfigAdapter,
455
- isConfigured: (account) => account.credentialSource !== "none",
477
+ inspectAccount: adaptScopedAccountAccessor(inspectGoogleChatAccount),
478
+ isConfigured: isGoogleChatAccountConfigured,
456
479
  describeAccount: (account) => describeAccountSnapshot({
457
480
  account,
458
- configured: account.credentialSource !== "none",
481
+ configured: isGoogleChatAccountConfigured(account),
459
482
  extra: {
460
483
  credentialSource: account.credentialSource,
461
484
  tokenStatus: account.tokenStatus
@@ -465,4 +488,4 @@ function createGoogleChatPluginBase(params = {}) {
465
488
  };
466
489
  }
467
490
  //#endregion
468
- export { googlechatSetupAdapter as a, resolveDefaultGoogleChatAccountId as c, googlechatSetupWizard as i, resolveGoogleChatAccount as l, createGoogleChatPluginBase as n, listEnabledGoogleChatAccounts as o, formatGoogleChatAllowFromEntry as r, listGoogleChatAccountIds as s, GOOGLECHAT_CHANNEL_ID as t, MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES as u };
491
+ export { googlechatSetupAdapter as a, resolveDefaultGoogleChatAccountId as c, googlechatSetupWizard as i, resolveGoogleChatAccount as l, createGoogleChatPluginBase as n, inspectGoogleChatAccount as o, formatGoogleChatAllowFromEntry as r, listGoogleChatAccountIds as s, GOOGLECHAT_CHANNEL_ID as t, MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES as u };
@@ -1,8 +1,8 @@
1
- import { c as resolveDefaultGoogleChatAccountId, l as resolveGoogleChatAccount, n as createGoogleChatPluginBase, s as listGoogleChatAccountIds, t as GOOGLECHAT_CHANNEL_ID } from "./channel-base-CC85hRUC.js";
2
- import { a as googlechatPairingTextAdapter, d as isGoogleChatUserTarget, f as normalizeGoogleChatTarget, i as googlechatOutboundAdapter, n as googlechatGroupsAdapter, o as googlechatSecurityAdapter, p as resolveGoogleChatOutboundSessionRoute, r as googlechatMessageAdapter, s as googlechatThreadingAdapter, t as googlechatDirectoryAdapter, u as isGoogleChatSpaceTarget } from "./channel.adapters-DLatFGZz.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-hw9ErEr5.js";
2
+ import { a as googlechatPairingTextAdapter, d as isGoogleChatUserTarget, f as normalizeGoogleChatTarget, i as googlechatOutboundAdapter, n as googlechatGroupsAdapter, o as googlechatSecurityAdapter, p as resolveGoogleChatOutboundSessionRoute, r as googlechatMessageAdapter, s as googlechatThreadingAdapter, t as googlechatDirectoryAdapter, u as isGoogleChatSpaceTarget } from "./channel.adapters-DaipaeYt.js";
3
3
  import { n as buildChannelConfigSchema, t as GoogleChatConfigSchema } from "./config-api-CsD0IFxF.js";
4
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-G-OFufNc.js";
5
+ import { n as googleChatApprovalAuth, r as normalizeGoogleChatApproverId, t as getGoogleChatApprovalApprovers } from "./approval-auth-ykO6i_ub.js";
6
6
  import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-BpuSvJro.js";
7
7
  import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-BFYyuE0F.js";
8
8
  import { createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
@@ -141,7 +141,7 @@ const googleChatApprovalCapability = createApproverRestrictedNativeApprovalCapab
141
141
  approvalKind,
142
142
  request
143
143
  }),
144
- load: async () => (await import("./approval-handler.runtime-BJXVLK9y.js")).googleChatApprovalNativeRuntime
144
+ load: async () => (await import("./approval-handler.runtime-CBeHrXtL.js")).googleChatApprovalNativeRuntime
145
145
  })
146
146
  });
147
147
  const collectGoogleChatMutableAllowlistWarnings = createDangerousNameMatchingMutableAllowlistWarningCollector({
@@ -164,7 +164,7 @@ const collectGoogleChatMutableAllowlistWarnings = createDangerousNameMatchingMut
164
164
  });
165
165
  //#endregion
166
166
  //#region extensions/googlechat/src/gateway.ts
167
- const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-Bz0__ttC.js"), "googleChatChannelRuntime");
167
+ const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-BbwE9vOC.js"), "googleChatChannelRuntime");
168
168
  async function startGoogleChatGatewayAccount(ctx) {
169
169
  const account = ctx.account;
170
170
  const statusSink = createAccountStatusSink({
@@ -225,23 +225,25 @@ async function startGoogleChatGatewayAccount(ctx) {
225
225
  }
226
226
  }
227
227
  //#endregion
228
+ //#region extensions/googlechat/src/message-tool-api.ts
229
+ function describeGoogleChatMessageTool({ cfg, accountId }) {
230
+ return (accountId ? [inspectGoogleChatAccount({
231
+ cfg,
232
+ accountId
233
+ })] : listGoogleChatAccountIds(cfg).map((listedAccountId) => inspectGoogleChatAccount({
234
+ cfg,
235
+ accountId: listedAccountId
236
+ }))).some((account) => account.enabled && account.credentialSource !== "none" && account.tokenStatus === "available") ? { actions: ["send"] } : null;
237
+ }
238
+ //#endregion
228
239
  //#region extensions/googlechat/src/channel.ts
229
- const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-Bz0__ttC.js"), "googleChatChannelRuntime");
240
+ const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-BbwE9vOC.js"), "googleChatChannelRuntime");
230
241
  const googlechatActions = {
231
- describeMessageTool: ({ cfg, accountId }) => {
232
- if ((accountId ? [resolveGoogleChatAccount({
233
- cfg,
234
- accountId
235
- })].filter((account) => account.enabled && account.credentialSource !== "none" && account.tokenStatus !== "configured_unavailable") : listGoogleChatAccountIds(cfg).map((id) => resolveGoogleChatAccount({
236
- cfg,
237
- accountId: id
238
- })).filter((account) => account.enabled && account.credentialSource !== "none" && account.tokenStatus !== "configured_unavailable")).length === 0) return null;
239
- return { actions: ["send"] };
240
- },
242
+ describeMessageTool: describeGoogleChatMessageTool,
241
243
  supportsAction: ({ action }) => action === "send",
242
244
  extractToolSend: ({ args }) => extractToolSend(args, "sendMessage"),
243
245
  handleAction: async (ctx) => {
244
- const { googlechatMessageActions } = await import("./actions-wnreW-IQ.js");
246
+ const { googlechatMessageActions } = await import("./actions-D81dCtkC.js");
245
247
  if (!googlechatMessageActions.handleAction) throw new Error("Google Chat actions are not available.");
246
248
  return await googlechatMessageActions.handleAction(ctx);
247
249
  }
@@ -376,4 +378,4 @@ const googlechatPlugin = createChatChannelPlugin({
376
378
  }
377
379
  });
378
380
  //#endregion
379
- export { isGoogleChatNativeApprovalClientEnabled as n, shouldHandleGoogleChatNativeApprovalRequest as r, googlechatPlugin as t };
381
+ export { shouldHandleGoogleChatNativeApprovalRequest as i, describeGoogleChatMessageTool as n, isGoogleChatNativeApprovalClientEnabled as r, googlechatPlugin as t };
@@ -1,2 +1,2 @@
1
- import { t as googlechatPlugin } from "./channel-CehfTiWZ.js";
1
+ import { t as googlechatPlugin } from "./channel-kouqKs2x.js";
2
2
  export { googlechatPlugin };
@@ -1,4 +1,4 @@
1
- import { l as resolveGoogleChatAccount, r as formatGoogleChatAllowFromEntry, u as MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES } from "./channel-base-CC85hRUC.js";
1
+ import { l as resolveGoogleChatAccount, r as formatGoogleChatAllowFromEntry, u as MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES } from "./channel-base-hw9ErEr5.js";
2
2
  import { d as fetchWithSsrFGuard$1, m as missingTargetError, r as PAIRING_APPROVED_MESSAGE } from "./runtime-api-Dh0CNVS4.js";
3
3
  import { buildChannelOutboundSessionRoute } from "openclaw/plugin-sdk/channel-core";
4
4
  import { createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
@@ -616,6 +616,7 @@ const GOOGLECHAT_MEDIA_MAX_TIMEOUT_MS = 15 * 6e4;
616
616
  const GOOGLECHAT_RESPONSE_READ_IDLE_TIMEOUT_MS = 3e4;
617
617
  const GOOGLECHAT_JSON_RESPONSE_MAX_BYTES = 16 * 1024 * 1024;
618
618
  const GOOGLECHAT_ERROR_BODY_MAX_BYTES = 16 * 1024;
619
+ const GOOGLE_CHAT_MEDIA_RESPONSE_MAX_BYTES = 20 * 1024 * 1024;
619
620
  function resolveGoogleChatMediaTimeoutMs(maxBytes) {
620
621
  if (!maxBytes) return GOOGLECHAT_MEDIA_MAX_TIMEOUT_MS;
621
622
  const transferMs = Math.ceil(maxBytes / GOOGLECHAT_MEDIA_MIN_BYTES_PER_SECOND * 1e3);
@@ -664,6 +665,7 @@ async function withGoogleChatResponse(params) {
664
665
  }
665
666
  return await handleResponse(response);
666
667
  } finally {
668
+ if (!response.bodyUsed) response.body?.cancel().catch(() => void 0);
667
669
  await release();
668
670
  }
669
671
  }
@@ -699,16 +701,12 @@ async function fetchBuffer(account, url, init, options) {
699
701
  auditContext: "googlechat.api.buffer",
700
702
  timeoutMs: resolveGoogleChatMediaTimeoutMs(options?.maxBytes),
701
703
  handleResponse: async (res) => {
702
- const maxBytes = options?.maxBytes;
704
+ const maxBytes = options?.maxBytes ?? GOOGLE_CHAT_MEDIA_RESPONSE_MAX_BYTES;
703
705
  const lengthHeader = res.headers.get("content-length");
704
- if (maxBytes && lengthHeader) {
706
+ if (lengthHeader) {
705
707
  const length = parseMediaContentLength(lengthHeader);
706
708
  if (length !== null && length > maxBytes) throw new Error(`Google Chat media exceeds max bytes (${maxBytes})`);
707
709
  }
708
- if (!maxBytes) return {
709
- buffer: Buffer.from(await res.arrayBuffer()),
710
- contentType: res.headers.get("content-type") ?? void 0
711
- };
712
710
  return {
713
711
  buffer: await readResponseWithLimit(res, maxBytes, {
714
712
  chunkTimeoutMs: GOOGLECHAT_RESPONSE_READ_IDLE_TIMEOUT_MS,
@@ -1161,7 +1159,7 @@ function resolveGoogleChatGroupRequireMention(params) {
1161
1159
  }
1162
1160
  //#endregion
1163
1161
  //#region extensions/googlechat/src/channel.adapters.ts
1164
- const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-Bz0__ttC.js"), "googleChatChannelRuntime");
1162
+ const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-BbwE9vOC.js"), "googleChatChannelRuntime");
1165
1163
  function createGoogleChatSendReceipt(params) {
1166
1164
  const messageId = params.messageId?.trim();
1167
1165
  return createMessageReceiptFromOutboundResults({
@@ -1,15 +1,16 @@
1
- import { A as releaseGoogleChatApprovalCardBinding, C as claimGoogleChatApprovalCardBinding, D as readGoogleChatApprovalActionToken, E as getGoogleChatApprovalCardBinding, _ as probeGoogleChat, b as verifyGoogleChatRequest, c as buildGoogleChatGroupPolicyScope, g as downloadGoogleChatMedia, h as deleteGoogleChatMessage, l as isGoogleChatGroupSpace, v as sendGoogleChatMessage, w as completeGoogleChatApprovalCardBinding, y as updateGoogleChatMessage } from "./channel.adapters-DLatFGZz.js";
1
+ import { A as releaseGoogleChatApprovalCardBinding, C as claimGoogleChatApprovalCardBinding, D as readGoogleChatApprovalActionToken, E as getGoogleChatApprovalCardBinding, _ as probeGoogleChat, b as verifyGoogleChatRequest, c as buildGoogleChatGroupPolicyScope, g as downloadGoogleChatMedia, h as deleteGoogleChatMessage, l as isGoogleChatGroupSpace, v as sendGoogleChatMessage, w as completeGoogleChatApprovalCardBinding, y as updateGoogleChatMessage } from "./channel.adapters-DaipaeYt.js";
2
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-G-OFufNc.js";
3
+ import { n as googleChatApprovalAuth } from "./approval-auth-ykO6i_ub.js";
4
4
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeOptionalString, normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
5
5
  import { mergePairLoopGuardConfig } from "openclaw/plugin-sdk/pair-loop-guard-runtime";
6
6
  import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
7
7
  import { collectErrorGraphCandidates, formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
8
- import { createChannelIngressMonitor } from "openclaw/plugin-sdk/channel-outbound";
9
- import { recordChannelBotPairLoopAndCheckSuppression, resolveChannelInboundRouteEnvelope, toInboundMediaFacts } from "openclaw/plugin-sdk/channel-inbound";
8
+ import { createChannelIngressError, createChannelIngressMonitor } from "openclaw/plugin-sdk/channel-outbound";
9
+ import { recordChannelBotPairLoopAndCheckSuppression, resolveChannelInboundRouteEnvelope, toInboundMediaFactsWithMetadata } from "openclaw/plugin-sdk/channel-inbound";
10
10
  import { WEBHOOK_RATE_LIMIT_DEFAULTS, createFixedWindowRateLimiter, normalizeWebhookPath, resolveRequestClientIp } from "openclaw/plugin-sdk/webhook-ingress";
11
11
  import { registerWebhookTargetWithPluginRoute, resolveWebhookTargetWithAuthOrReject, withResolvedWebhookRequestPipeline } from "openclaw/plugin-sdk/webhook-targets";
12
12
  import { createWebhookInFlightLimiter, readJsonWebhookBodyOrReject, runDetachedWebhookWork } from "openclaw/plugin-sdk/webhook-request-guards";
13
+ import { isRecord } from "openclaw/plugin-sdk/channel-secret-basic-runtime";
13
14
  import { resolveApprovalOverGateway } from "openclaw/plugin-sdk/approval-gateway-runtime";
14
15
  import { channelIngressRoutes, createChannelIngressResolver, defineStableChannelIngressIdentity } from "openclaw/plugin-sdk/channel-ingress-runtime";
15
16
  import { resolveSendableOutboundReplyParts } from "openclaw/plugin-sdk/reply-payload";
@@ -452,9 +453,6 @@ var GoogleChatEventPayloadError = class extends Error {
452
453
  this.name = "GoogleChatEventPayloadError";
453
454
  }
454
455
  };
455
- function isRecord$2(value) {
456
- return typeof value === "object" && value !== null && !Array.isArray(value);
457
- }
458
456
  function recordParamsToActionParameters(params) {
459
457
  if (!params) return;
460
458
  const entries = Object.entries(params).filter((entry) => typeof entry[1] === "string").map(([key, value]) => ({
@@ -465,7 +463,7 @@ function recordParamsToActionParameters(params) {
465
463
  }
466
464
  /** Normalize only at authenticated dispatch; durable admission stores the untouched envelope. */
467
465
  function parseGoogleChatInboundPayload(raw) {
468
- if (!isRecord$2(raw)) throw new GoogleChatEventPayloadError();
466
+ if (!isRecord(raw)) throw new GoogleChatEventPayloadError();
469
467
  let eventPayload = raw;
470
468
  let addOnBearerToken = "";
471
469
  const rawObj = raw;
@@ -504,10 +502,10 @@ function parseGoogleChatInboundPayload(raw) {
504
502
  }
505
503
  const event = eventPayload;
506
504
  const eventType = event.type ?? event.eventType;
507
- if (typeof eventType !== "string" || !isRecord$2(event.space)) throw new GoogleChatEventPayloadError();
505
+ if (typeof eventType !== "string" || !isRecord(event.space)) throw new GoogleChatEventPayloadError();
508
506
  if (eventType === "MESSAGE") {
509
- if (!isRecord$2(event.message) || !event.space?.name?.trim() || !event.message?.name?.trim()) throw new GoogleChatEventPayloadError();
510
- } else if (eventType === "CARD_CLICKED" && !isRecord$2(event.user)) throw new GoogleChatEventPayloadError();
507
+ if (!isRecord(event.message) || !event.space?.name?.trim() || !event.message?.name?.trim()) throw new GoogleChatEventPayloadError();
508
+ } else if (eventType === "CARD_CLICKED" && !isRecord(event.user)) throw new GoogleChatEventPayloadError();
511
509
  return {
512
510
  event,
513
511
  addOnBearerToken
@@ -517,40 +515,26 @@ function parseGoogleChatInboundPayload(raw) {
517
515
  //#region extensions/googlechat/src/monitor-ingress.ts
518
516
  const GOOGLECHAT_INGRESS_PAYLOAD_VERSION = 1;
519
517
  const GOOGLECHAT_INGRESS_POLL_INTERVAL_MS = 500;
520
- const GOOGLECHAT_INGRESS_PRUNE_INTERVAL_MS = 3600 * 1e3;
521
518
  const GOOGLECHAT_INGRESS_MAX_CONCURRENT_DELIVERIES = 8;
522
- const GOOGLECHAT_INGRESS_COMPLETED_TTL_MS = 720 * 60 * 60 * 1e3;
523
- const GOOGLECHAT_INGRESS_COMPLETED_MAX_ENTRIES = 2e4;
524
- const GOOGLECHAT_INGRESS_FAILED_TTL_MS = 720 * 60 * 60 * 1e3;
525
- const GOOGLECHAT_INGRESS_FAILED_MAX_ENTRIES = 2e4;
526
- var GoogleChatIngressPermanentError = class extends Error {
527
- constructor(reason, message, options) {
528
- super(message, options);
529
- this.reason = reason;
530
- this.name = "GoogleChatIngressPermanentError";
531
- }
532
- };
533
- function isRecord$1(value) {
534
- return typeof value === "object" && value !== null && !Array.isArray(value);
535
- }
519
+ const GoogleChatIngressPermanentError = createChannelIngressError("GoogleChatIngressPermanentError", { withReason: true });
536
520
  function requiredString(value, field) {
537
521
  if (typeof value === "string" && value.trim()) return value.trim();
538
522
  throw new GoogleChatIngressPermanentError("invalid-event", `Google Chat MESSAGE event is missing ${field}.`);
539
523
  }
540
524
  function inspectGoogleChatIngressEvent(raw) {
541
- if (!isRecord$1(raw)) throw new GoogleChatIngressPermanentError("invalid-event", "Google Chat webhook envelope must be an object.");
542
- const commonEventObject = isRecord$1(raw.commonEventObject) ? raw.commonEventObject : null;
543
- const chat = isRecord$1(raw.chat) ? raw.chat : null;
525
+ if (!isRecord(raw)) throw new GoogleChatIngressPermanentError("invalid-event", "Google Chat webhook envelope must be an object.");
526
+ const commonEventObject = isRecord(raw.commonEventObject) ? raw.commonEventObject : null;
527
+ const chat = isRecord(raw.chat) ? raw.chat : null;
544
528
  const isAddOn = commonEventObject?.hostApp === "CHAT";
545
529
  let eventType = raw.type ?? raw.eventType;
546
- let space = isRecord$1(raw.space) ? raw.space : null;
547
- let message = isRecord$1(raw.message) ? raw.message : null;
530
+ let space = isRecord(raw.space) ? raw.space : null;
531
+ let message = isRecord(raw.message) ? raw.message : null;
548
532
  if (isAddOn) {
549
- const messagePayload = isRecord$1(chat?.messagePayload) ? chat.messagePayload : null;
533
+ const messagePayload = isRecord(chat?.messagePayload) ? chat.messagePayload : null;
550
534
  if (!messagePayload) return null;
551
535
  eventType = "MESSAGE";
552
- space = isRecord$1(messagePayload.space) ? messagePayload.space : null;
553
- message = isRecord$1(messagePayload.message) ? messagePayload.message : null;
536
+ space = isRecord(messagePayload.space) ? messagePayload.space : null;
537
+ message = isRecord(messagePayload.message) ? messagePayload.message : null;
554
538
  }
555
539
  if (eventType !== "MESSAGE") return null;
556
540
  const spaceName = requiredString(space?.name, "space.name");
@@ -593,7 +577,7 @@ function resolveGoogleChatIngressNonRetryableFailure(error) {
593
577
  }
594
578
  function createGoogleChatIngressMonitor(options) {
595
579
  const serializeForIngress = (rawEvent) => {
596
- if (!isRecord$1(rawEvent)) throw new GoogleChatIngressPermanentError("invalid-event", "Google Chat webhook envelope must be an object.");
580
+ if (!isRecord(rawEvent)) throw new GoogleChatIngressPermanentError("invalid-event", "Google Chat webhook envelope must be an object.");
597
581
  const durableEvent = { ...rawEvent };
598
582
  delete durableEvent.authorizationEventObject;
599
583
  const serialized = JSON.stringify(durableEvent);
@@ -612,13 +596,7 @@ function createGoogleChatIngressMonitor(options) {
612
596
  },
613
597
  deliver: (rawEvent, lifecycle, claim) => options.dispatch(normalizeClaimedGoogleChatEvent(rawEvent, claim.id), lifecycle),
614
598
  pollIntervalMs: options.pollIntervalMs ?? GOOGLECHAT_INGRESS_POLL_INTERVAL_MS,
615
- retention: {
616
- pruneIntervalMs: GOOGLECHAT_INGRESS_PRUNE_INTERVAL_MS,
617
- completedTtlMs: GOOGLECHAT_INGRESS_COMPLETED_TTL_MS,
618
- completedMaxEntries: GOOGLECHAT_INGRESS_COMPLETED_MAX_ENTRIES,
619
- failedTtlMs: GOOGLECHAT_INGRESS_FAILED_TTL_MS,
620
- failedMaxEntries: GOOGLECHAT_INGRESS_FAILED_MAX_ENTRIES
621
- },
599
+ retention: "standard",
622
600
  drain: {
623
601
  resolveNonRetryableFailure: resolveGoogleChatIngressNonRetryableFailure,
624
602
  startLimit: GOOGLECHAT_INGRESS_MAX_CONCURRENT_DELIVERIES,
@@ -687,6 +665,13 @@ async function deliverGoogleChatReply(params) {
687
665
  }
688
666
  const chunkLimit = account.config.textChunkLimit ?? 4e3;
689
667
  const chunkMode = core.channel.text.resolveChunkMode(config, "googlechat", account.accountId);
668
+ const recordOutboundStatus = () => {
669
+ try {
670
+ statusSink?.({ lastOutboundAt: Date.now() });
671
+ } catch (err) {
672
+ runtime.error?.(`Google Chat outbound status update failed: ${String(err)}`);
673
+ }
674
+ };
690
675
  const sendTextMessage = async (chunk) => {
691
676
  await sendGoogleChatMessage({
692
677
  account,
@@ -698,29 +683,26 @@ async function deliverGoogleChatReply(params) {
698
683
  const chunks = core.channel.text.chunkMarkdownTextWithMode(text, chunkLimit, chunkMode);
699
684
  for (const chunk of chunks) {
700
685
  if (!chunk) continue;
701
- try {
702
- if (firstTextChunk && typingMessage) await updateGoogleChatMessage({
703
- account,
704
- messageName: typingMessage.name,
705
- text: chunk
706
- });
707
- else await sendTextMessage(chunk);
708
- firstTextChunk = false;
709
- statusSink?.({ lastOutboundAt: Date.now() });
710
- } catch (err) {
711
- runtime.error?.(`Google Chat message send failed: ${String(err)}`);
712
- if (firstTextChunk && typingMessage) {
686
+ if (firstTextChunk && typingMessage) {
687
+ try {
688
+ await updateGoogleChatMessage({
689
+ account,
690
+ messageName: typingMessage.name,
691
+ text: chunk
692
+ });
693
+ } catch (err) {
694
+ runtime.error?.(`Google Chat message send failed: ${String(err)}`);
713
695
  typingMessage = void 0;
714
- try {
715
- await sendTextMessage(chunk);
716
- statusSink?.({ lastOutboundAt: Date.now() });
717
- } catch (fallbackErr) {
718
- runtime.error?.(`Google Chat message fallback send failed: ${String(fallbackErr)}`);
719
- } finally {
720
- firstTextChunk = false;
721
- }
696
+ }
697
+ if (typingMessage) {
698
+ firstTextChunk = false;
699
+ recordOutboundStatus();
700
+ continue;
722
701
  }
723
702
  }
703
+ await sendTextMessage(chunk);
704
+ firstTextChunk = false;
705
+ recordOutboundStatus();
724
706
  }
725
707
  }
726
708
  //#endregion
@@ -731,9 +713,8 @@ function extractBearerToken(header) {
731
713
  }
732
714
  const ADD_ON_PREAUTH_MAX_BYTES = 16 * 1024;
733
715
  const ADD_ON_PREAUTH_TIMEOUT_MS = 3e3;
734
- function isRecord(value) {
735
- return typeof value === "object" && value !== null && !Array.isArray(value);
736
- }
716
+ const GOOGLECHAT_WEBHOOK_ACCEPTED_HEADER = "x-openclaw-delivery-accepted";
717
+ const GOOGLECHAT_WEBHOOK_ACCEPTED_VALUE = "durable";
737
718
  function parseGoogleChatInboundPayloadOrReject(raw, res) {
738
719
  if (!isRecord(raw)) {
739
720
  res.statusCode = 400;
@@ -885,6 +866,7 @@ function createGoogleChatWebhookRequestHandler(params) {
885
866
  dispatchTarget.runtime.error?.(`[${dispatchTarget.account.accountId}] Google Chat webhook failed: ${String(err)}`);
886
867
  });
887
868
  }
869
+ if (admission.kind === "durable") res.setHeader(GOOGLECHAT_WEBHOOK_ACCEPTED_HEADER, GOOGLECHAT_WEBHOOK_ACCEPTED_VALUE);
888
870
  } catch (error) {
889
871
  dispatchTarget.runtime.error?.(`[${dispatchTarget.account.accountId}] Google Chat durable admission failed: ${String(error)}`);
890
872
  res.statusCode = 503;
@@ -1099,7 +1081,7 @@ async function processMessageWithPipeline(params) {
1099
1081
  contentType: attachmentData.contentType ?? first.contentType
1100
1082
  };
1101
1083
  }
1102
- const media = toInboundMediaFacts(mediaInputs);
1084
+ const media = await toInboundMediaFactsWithMetadata(mediaInputs);
1103
1085
  const fromLabel = isGroup ? space.displayName || `space:${spaceId}` : senderName || `user:${senderId}`;
1104
1086
  const timestampMs = resolveGoogleChatTimestampMs(event.eventTime);
1105
1087
  const body = buildEnvelope({
@@ -1,4 +1,4 @@
1
- import { t as googlechatDirectoryAdapter } from "./channel.adapters-DLatFGZz.js";
1
+ import { t as googlechatDirectoryAdapter } from "./channel.adapters-DaipaeYt.js";
2
2
  //#region extensions/googlechat/directory-contract-api.ts
3
3
  const googlechatDirectoryContractPlugin = {
4
4
  id: "googlechat",
@@ -1,4 +1,4 @@
1
- import { n as createGoogleChatPluginBase } from "./channel-base-CC85hRUC.js";
1
+ import { n as createGoogleChatPluginBase } from "./channel-base-hw9ErEr5.js";
2
2
  //#region extensions/googlechat/src/channel.setup.ts
3
3
  const googlechatSetupPlugin = createGoogleChatPluginBase();
4
4
  //#endregion
@@ -319,7 +319,7 @@ class GoogleAuth {
319
319
  return null;
320
320
  }
321
321
  try {
322
- return this._getApplicationCredentialsFromFilePath(credentialsPath, options);
322
+ return await this._getApplicationCredentialsFromFilePath(credentialsPath, options);
323
323
  }
324
324
  catch (e) {
325
325
  if (e instanceof Error) {
@@ -334,28 +334,33 @@ class GoogleAuth {
334
334
  * @api private
335
335
  */
336
336
  async _tryGetApplicationCredentialsFromWellKnownFile(options) {
337
- // First, figure out the location of the file, depending upon the OS type.
338
- let location = null;
339
- if (this._isWindows()) {
340
- // Windows
341
- location = process.env['APPDATA'];
342
- }
343
- else {
344
- // Linux or Mac
345
- const home = process.env['HOME'];
346
- if (home) {
347
- location = path.join(home, '.config');
337
+ // First, figure out the location of the Cloud SDK config directory. The
338
+ // `CLOUDSDK_CONFIG` environment variable overrides the platform-specific
339
+ // default location; when it is set, `gcloud` stores the application default
340
+ // credentials file there, so it takes precedence.
341
+ let configDir = process.env['CLOUDSDK_CONFIG'];
342
+ if (!configDir) {
343
+ if (this._isWindows()) {
344
+ // Windows
345
+ if (process.env['APPDATA']) {
346
+ configDir = path.join(process.env['APPDATA'], 'gcloud');
347
+ }
348
348
  }
349
- }
350
- // If we found the root path, expand it.
351
- if (location) {
352
- location = path.join(location, 'gcloud', 'application_default_credentials.json');
353
- if (!fs.existsSync(location)) {
354
- location = null;
349
+ else {
350
+ // Linux or Mac
351
+ const home = process.env['HOME'];
352
+ if (home) {
353
+ configDir = path.join(home, '.config', 'gcloud');
354
+ }
355
355
  }
356
356
  }
357
+ // The config directory could not be determined.
358
+ if (!configDir) {
359
+ return null;
360
+ }
361
+ const location = path.join(configDir, 'application_default_credentials.json');
357
362
  // The file does not exist.
358
- if (!location) {
363
+ if (!fs.existsSync(location)) {
359
364
  return null;
360
365
  }
361
366
  // The file seems to exist. Try to use it.