@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.
- package/dist/{actions-wnreW-IQ.js → actions-D81dCtkC.js} +4 -12
- package/dist/api.js +2 -2
- package/dist/{approval-auth-G-OFufNc.js → approval-auth-ykO6i_ub.js} +2 -2
- package/dist/{approval-handler.runtime-BJXVLK9y.js → approval-handler.runtime-CBeHrXtL.js} +3 -3
- package/dist/{channel-base-CC85hRUC.js → channel-base-hw9ErEr5.js} +35 -12
- package/dist/{channel-CehfTiWZ.js → channel-kouqKs2x.js} +20 -18
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.adapters-DLatFGZz.js → channel.adapters-DaipaeYt.js} +6 -8
- package/dist/{channel.runtime-Bz0__ttC.js → channel.runtime-BbwE9vOC.js} +48 -66
- package/dist/directory-contract-api.js +1 -1
- package/dist/setup-plugin-api.js +1 -1
- package/node_modules/google-auth-library/build/src/auth/googleauth.js +24 -19
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/tsconfig.cjs.tsbuildinfo +1 -0
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/tsconfig.tsbuildinfo +1 -0
- package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/package.json +1 -1
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/colours.d.ts +1 -0
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/colours.js +81 -0
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/colours.js.map +1 -0
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/index.d.ts +2 -0
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/index.js +31 -0
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/index.js.map +1 -0
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/logging-utils.d.ts +89 -0
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/logging-utils.js +414 -0
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/logging-utils.js.map +1 -0
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/temporal.js +68 -0
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/temporal.js.map +1 -0
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/types.d.ts +78 -0
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/types.js +16 -0
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/types.js.map +1 -0
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/package.json +47 -0
- package/node_modules/google-auth-library/node_modules/google-logging-utils/LICENSE +202 -0
- package/node_modules/google-auth-library/node_modules/google-logging-utils/README.md +73 -0
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/temporal.d.ts +45 -0
- package/node_modules/google-auth-library/package.json +1 -1
- package/package.json +5 -5
- package/node_modules/gaxios/build/cjs/tsconfig.cjs.tsbuildinfo +0 -1
- package/node_modules/gaxios/build/esm/tsconfig.tsbuildinfo +0 -1
- /package/node_modules/{agent-base → google-auth-library/node_modules/agent-base}/LICENSE +0 -0
- /package/node_modules/{agent-base → google-auth-library/node_modules/agent-base}/README.md +0 -0
- /package/node_modules/{agent-base → google-auth-library/node_modules/agent-base}/dist/helpers.d.ts +0 -0
- /package/node_modules/{agent-base → google-auth-library/node_modules/agent-base}/dist/helpers.d.ts.map +0 -0
- /package/node_modules/{agent-base → google-auth-library/node_modules/agent-base}/dist/helpers.js +0 -0
- /package/node_modules/{agent-base → google-auth-library/node_modules/agent-base}/dist/helpers.js.map +0 -0
- /package/node_modules/{agent-base → google-auth-library/node_modules/agent-base}/dist/index.d.ts +0 -0
- /package/node_modules/{agent-base → google-auth-library/node_modules/agent-base}/dist/index.d.ts.map +0 -0
- /package/node_modules/{agent-base → google-auth-library/node_modules/agent-base}/dist/index.js +0 -0
- /package/node_modules/{agent-base → google-auth-library/node_modules/agent-base}/dist/index.js.map +0 -0
- /package/node_modules/{agent-base → google-auth-library/node_modules/agent-base}/package.json +0 -0
- /package/node_modules/{base64-js → google-auth-library/node_modules/base64-js}/LICENSE +0 -0
- /package/node_modules/{base64-js → google-auth-library/node_modules/base64-js}/README.md +0 -0
- /package/node_modules/{base64-js → google-auth-library/node_modules/base64-js}/base64js.min.js +0 -0
- /package/node_modules/{base64-js → google-auth-library/node_modules/base64-js}/index.d.ts +0 -0
- /package/node_modules/{base64-js → google-auth-library/node_modules/base64-js}/index.js +0 -0
- /package/node_modules/{base64-js → google-auth-library/node_modules/base64-js}/package.json +0 -0
- /package/node_modules/{bignumber.js → google-auth-library/node_modules/bignumber.js}/CHANGELOG.md +0 -0
- /package/node_modules/{bignumber.js → google-auth-library/node_modules/bignumber.js}/LICENCE.md +0 -0
- /package/node_modules/{bignumber.js → google-auth-library/node_modules/bignumber.js}/README.md +0 -0
- /package/node_modules/{bignumber.js → google-auth-library/node_modules/bignumber.js}/bignumber.d.mts +0 -0
- /package/node_modules/{bignumber.js → google-auth-library/node_modules/bignumber.js}/bignumber.d.ts +0 -0
- /package/node_modules/{bignumber.js → google-auth-library/node_modules/bignumber.js}/bignumber.js +0 -0
- /package/node_modules/{bignumber.js → google-auth-library/node_modules/bignumber.js}/bignumber.mjs +0 -0
- /package/node_modules/{bignumber.js → google-auth-library/node_modules/bignumber.js}/doc/API.html +0 -0
- /package/node_modules/{bignumber.js → google-auth-library/node_modules/bignumber.js}/package.json +0 -0
- /package/node_modules/{bignumber.js → google-auth-library/node_modules/bignumber.js}/types.d.ts +0 -0
- /package/node_modules/{buffer-equal-constant-time → google-auth-library/node_modules/buffer-equal-constant-time}/.npmignore +0 -0
- /package/node_modules/{buffer-equal-constant-time → google-auth-library/node_modules/buffer-equal-constant-time}/.travis.yml +0 -0
- /package/node_modules/{buffer-equal-constant-time → google-auth-library/node_modules/buffer-equal-constant-time}/LICENSE.txt +0 -0
- /package/node_modules/{buffer-equal-constant-time → google-auth-library/node_modules/buffer-equal-constant-time}/README.md +0 -0
- /package/node_modules/{buffer-equal-constant-time → google-auth-library/node_modules/buffer-equal-constant-time}/index.js +0 -0
- /package/node_modules/{buffer-equal-constant-time → google-auth-library/node_modules/buffer-equal-constant-time}/package.json +0 -0
- /package/node_modules/{buffer-equal-constant-time → google-auth-library/node_modules/buffer-equal-constant-time}/test.js +0 -0
- /package/node_modules/{data-uri-to-buffer → google-auth-library/node_modules/data-uri-to-buffer}/README.md +0 -0
- /package/node_modules/{data-uri-to-buffer → google-auth-library/node_modules/data-uri-to-buffer}/dist/index.d.ts +0 -0
- /package/node_modules/{data-uri-to-buffer → google-auth-library/node_modules/data-uri-to-buffer}/dist/index.js +0 -0
- /package/node_modules/{data-uri-to-buffer → google-auth-library/node_modules/data-uri-to-buffer}/dist/index.js.map +0 -0
- /package/node_modules/{data-uri-to-buffer → google-auth-library/node_modules/data-uri-to-buffer}/package.json +0 -0
- /package/node_modules/{data-uri-to-buffer → google-auth-library/node_modules/data-uri-to-buffer}/src/index.ts +0 -0
- /package/node_modules/{debug → google-auth-library/node_modules/debug}/LICENSE +0 -0
- /package/node_modules/{debug → google-auth-library/node_modules/debug}/README.md +0 -0
- /package/node_modules/{debug → google-auth-library/node_modules/debug}/package.json +0 -0
- /package/node_modules/{debug → google-auth-library/node_modules/debug}/src/browser.js +0 -0
- /package/node_modules/{debug → google-auth-library/node_modules/debug}/src/common.js +0 -0
- /package/node_modules/{debug → google-auth-library/node_modules/debug}/src/index.js +0 -0
- /package/node_modules/{debug → google-auth-library/node_modules/debug}/src/node.js +0 -0
- /package/node_modules/{ecdsa-sig-formatter → google-auth-library/node_modules/ecdsa-sig-formatter}/CODEOWNERS +0 -0
- /package/node_modules/{ecdsa-sig-formatter → google-auth-library/node_modules/ecdsa-sig-formatter}/LICENSE +0 -0
- /package/node_modules/{ecdsa-sig-formatter → google-auth-library/node_modules/ecdsa-sig-formatter}/README.md +0 -0
- /package/node_modules/{ecdsa-sig-formatter → google-auth-library/node_modules/ecdsa-sig-formatter}/package.json +0 -0
- /package/node_modules/{ecdsa-sig-formatter → google-auth-library/node_modules/ecdsa-sig-formatter}/src/ecdsa-sig-formatter.d.ts +0 -0
- /package/node_modules/{ecdsa-sig-formatter → google-auth-library/node_modules/ecdsa-sig-formatter}/src/ecdsa-sig-formatter.js +0 -0
- /package/node_modules/{ecdsa-sig-formatter → google-auth-library/node_modules/ecdsa-sig-formatter}/src/param-bytes-for-alg.js +0 -0
- /package/node_modules/{extend → google-auth-library/node_modules/extend}/.editorconfig +0 -0
- /package/node_modules/{extend → google-auth-library/node_modules/extend}/.eslintrc +0 -0
- /package/node_modules/{extend → google-auth-library/node_modules/extend}/.jscs.json +0 -0
- /package/node_modules/{extend → google-auth-library/node_modules/extend}/.travis.yml +0 -0
- /package/node_modules/{extend → google-auth-library/node_modules/extend}/CHANGELOG.md +0 -0
- /package/node_modules/{extend → google-auth-library/node_modules/extend}/LICENSE +0 -0
- /package/node_modules/{extend → google-auth-library/node_modules/extend}/README.md +0 -0
- /package/node_modules/{extend → google-auth-library/node_modules/extend}/component.json +0 -0
- /package/node_modules/{extend → google-auth-library/node_modules/extend}/index.js +0 -0
- /package/node_modules/{extend → google-auth-library/node_modules/extend}/package.json +0 -0
- /package/node_modules/{fetch-blob → google-auth-library/node_modules/fetch-blob}/LICENSE +0 -0
- /package/node_modules/{fetch-blob → google-auth-library/node_modules/fetch-blob}/README.md +0 -0
- /package/node_modules/{fetch-blob → google-auth-library/node_modules/fetch-blob}/file.d.ts +0 -0
- /package/node_modules/{fetch-blob → google-auth-library/node_modules/fetch-blob}/file.js +0 -0
- /package/node_modules/{fetch-blob → google-auth-library/node_modules/fetch-blob}/from.d.ts +0 -0
- /package/node_modules/{fetch-blob → google-auth-library/node_modules/fetch-blob}/from.js +0 -0
- /package/node_modules/{fetch-blob → google-auth-library/node_modules/fetch-blob}/index.d.ts +0 -0
- /package/node_modules/{fetch-blob → google-auth-library/node_modules/fetch-blob}/index.js +0 -0
- /package/node_modules/{fetch-blob → google-auth-library/node_modules/fetch-blob}/package.json +0 -0
- /package/node_modules/{fetch-blob → google-auth-library/node_modules/fetch-blob}/streams.cjs +0 -0
- /package/node_modules/{formdata-polyfill → google-auth-library/node_modules/formdata-polyfill}/FormData.js +0 -0
- /package/node_modules/{formdata-polyfill → google-auth-library/node_modules/formdata-polyfill}/LICENSE +0 -0
- /package/node_modules/{formdata-polyfill → google-auth-library/node_modules/formdata-polyfill}/README.md +0 -0
- /package/node_modules/{formdata-polyfill → google-auth-library/node_modules/formdata-polyfill}/esm.min.d.ts +0 -0
- /package/node_modules/{formdata-polyfill → google-auth-library/node_modules/formdata-polyfill}/esm.min.js +0 -0
- /package/node_modules/{formdata-polyfill → google-auth-library/node_modules/formdata-polyfill}/formdata-to-blob.js +0 -0
- /package/node_modules/{formdata-polyfill → google-auth-library/node_modules/formdata-polyfill}/formdata.min.js +0 -0
- /package/node_modules/{formdata-polyfill → google-auth-library/node_modules/formdata-polyfill}/package.json +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/LICENSE +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/README.md +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/browser-test/browser-test-runner.d.ts +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/browser-test/browser-test-runner.js +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/browser-test/browser-test-runner.js.map +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/browser-test/test.browser.d.ts +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/browser-test/test.browser.js +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/browser-test/test.browser.js.map +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/common.d.ts +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/common.js +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/common.js.map +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/gaxios.d.ts +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/gaxios.js +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/gaxios.js.map +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/index.d.ts +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/index.js +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/index.js.map +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/interceptor.d.ts +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/interceptor.js +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/interceptor.js.map +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/retry.d.ts +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/retry.js +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/retry.js.map +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/util.cjs +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/util.cjs.map +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/src/util.d.cts +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/system-test/test.install.d.ts +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/system-test/test.install.js +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/system-test/test.install.js.map +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/test/test.getch.d.ts +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/test/test.getch.js +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/test/test.getch.js.map +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/test/test.index.d.ts +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/test/test.index.js +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/test/test.index.js.map +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/test/test.retry.d.ts +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/test/test.retry.js +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/cjs/test/test.retry.js.map +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/browser-test/browser-test-runner.d.ts +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/browser-test/browser-test-runner.js +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/browser-test/browser-test-runner.js.map +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/browser-test/test.browser.d.ts +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/browser-test/test.browser.js +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/browser-test/test.browser.js.map +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/package.json +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/common.d.ts +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/common.js +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/common.js.map +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/gaxios.d.ts +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/gaxios.js +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/gaxios.js.map +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/index.d.ts +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/index.js +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/index.js.map +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/interceptor.d.ts +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/interceptor.js +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/interceptor.js.map +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/retry.d.ts +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/retry.js +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/retry.js.map +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/util.cjs +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/util.cjs.map +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/src/util.d.cts +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/system-test/test.install.d.ts +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/system-test/test.install.js +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/system-test/test.install.js.map +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/test/test.getch.d.ts +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/test/test.getch.js +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/test/test.getch.js.map +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/test/test.index.d.ts +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/test/test.index.js +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/test/test.index.js.map +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/test/test.retry.d.ts +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/test/test.retry.js +0 -0
- /package/node_modules/{gaxios → google-auth-library/node_modules/gaxios}/build/esm/test/test.retry.js.map +0 -0
- /package/node_modules/{gcp-metadata → google-auth-library/node_modules/gcp-metadata}/LICENSE +0 -0
- /package/node_modules/{gcp-metadata → google-auth-library/node_modules/gcp-metadata}/README.md +0 -0
- /package/node_modules/{gcp-metadata → google-auth-library/node_modules/gcp-metadata}/build/src/gcp-residency.d.ts +0 -0
- /package/node_modules/{gcp-metadata → google-auth-library/node_modules/gcp-metadata}/build/src/gcp-residency.js +0 -0
- /package/node_modules/{gcp-metadata → google-auth-library/node_modules/gcp-metadata}/build/src/gcp-residency.js.map +0 -0
- /package/node_modules/{gcp-metadata → google-auth-library/node_modules/gcp-metadata}/build/src/index.d.ts +0 -0
- /package/node_modules/{gcp-metadata → google-auth-library/node_modules/gcp-metadata}/build/src/index.js +0 -0
- /package/node_modules/{gcp-metadata → google-auth-library/node_modules/gcp-metadata}/build/src/index.js.map +0 -0
- /package/node_modules/{google-logging-utils → google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils}/LICENSE +0 -0
- /package/node_modules/{google-logging-utils → google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils}/README.md +0 -0
- /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
- /package/node_modules/{gcp-metadata → google-auth-library/node_modules/gcp-metadata}/package.json +0 -0
- /package/node_modules/{google-logging-utils → google-auth-library/node_modules/google-logging-utils}/build/src/colours.d.ts +0 -0
- /package/node_modules/{google-logging-utils → google-auth-library/node_modules/google-logging-utils}/build/src/colours.js +0 -0
- /package/node_modules/{google-logging-utils → google-auth-library/node_modules/google-logging-utils}/build/src/colours.js.map +0 -0
- /package/node_modules/{google-logging-utils → google-auth-library/node_modules/google-logging-utils}/build/src/index.d.ts +0 -0
- /package/node_modules/{google-logging-utils → google-auth-library/node_modules/google-logging-utils}/build/src/index.js +0 -0
- /package/node_modules/{google-logging-utils → google-auth-library/node_modules/google-logging-utils}/build/src/index.js.map +0 -0
- /package/node_modules/{google-logging-utils → google-auth-library/node_modules/google-logging-utils}/build/src/logging-utils.d.ts +0 -0
- /package/node_modules/{google-logging-utils → google-auth-library/node_modules/google-logging-utils}/build/src/logging-utils.js +0 -0
- /package/node_modules/{google-logging-utils → google-auth-library/node_modules/google-logging-utils}/build/src/logging-utils.js.map +0 -0
- /package/node_modules/{google-logging-utils → google-auth-library/node_modules/google-logging-utils}/build/src/temporal.js +0 -0
- /package/node_modules/{google-logging-utils → google-auth-library/node_modules/google-logging-utils}/build/src/temporal.js.map +0 -0
- /package/node_modules/{google-logging-utils → google-auth-library/node_modules/google-logging-utils}/package.json +0 -0
- /package/node_modules/{https-proxy-agent → google-auth-library/node_modules/https-proxy-agent}/LICENSE +0 -0
- /package/node_modules/{https-proxy-agent → google-auth-library/node_modules/https-proxy-agent}/README.md +0 -0
- /package/node_modules/{https-proxy-agent → google-auth-library/node_modules/https-proxy-agent}/dist/index.d.ts +0 -0
- /package/node_modules/{https-proxy-agent → google-auth-library/node_modules/https-proxy-agent}/dist/index.d.ts.map +0 -0
- /package/node_modules/{https-proxy-agent → google-auth-library/node_modules/https-proxy-agent}/dist/index.js +0 -0
- /package/node_modules/{https-proxy-agent → google-auth-library/node_modules/https-proxy-agent}/dist/index.js.map +0 -0
- /package/node_modules/{https-proxy-agent → google-auth-library/node_modules/https-proxy-agent}/dist/parse-proxy-response.d.ts +0 -0
- /package/node_modules/{https-proxy-agent → google-auth-library/node_modules/https-proxy-agent}/dist/parse-proxy-response.d.ts.map +0 -0
- /package/node_modules/{https-proxy-agent → google-auth-library/node_modules/https-proxy-agent}/dist/parse-proxy-response.js +0 -0
- /package/node_modules/{https-proxy-agent → google-auth-library/node_modules/https-proxy-agent}/dist/parse-proxy-response.js.map +0 -0
- /package/node_modules/{https-proxy-agent → google-auth-library/node_modules/https-proxy-agent}/package.json +0 -0
- /package/node_modules/{json-bigint → google-auth-library/node_modules/json-bigint}/LICENSE +0 -0
- /package/node_modules/{json-bigint → google-auth-library/node_modules/json-bigint}/README.md +0 -0
- /package/node_modules/{json-bigint → google-auth-library/node_modules/json-bigint}/index.js +0 -0
- /package/node_modules/{json-bigint → google-auth-library/node_modules/json-bigint}/lib/parse.js +0 -0
- /package/node_modules/{json-bigint → google-auth-library/node_modules/json-bigint}/lib/stringify.js +0 -0
- /package/node_modules/{json-bigint → google-auth-library/node_modules/json-bigint}/package.json +0 -0
- /package/node_modules/{jwa → google-auth-library/node_modules/jwa}/LICENSE +0 -0
- /package/node_modules/{jwa → google-auth-library/node_modules/jwa}/README.md +0 -0
- /package/node_modules/{jwa → google-auth-library/node_modules/jwa}/index.js +0 -0
- /package/node_modules/{jwa → google-auth-library/node_modules/jwa}/opslevel.yml +0 -0
- /package/node_modules/{jwa → google-auth-library/node_modules/jwa}/package.json +0 -0
- /package/node_modules/{jws → google-auth-library/node_modules/jws}/CHANGELOG.md +0 -0
- /package/node_modules/{jws → google-auth-library/node_modules/jws}/LICENSE +0 -0
- /package/node_modules/{jws → google-auth-library/node_modules/jws}/index.js +0 -0
- /package/node_modules/{jws → google-auth-library/node_modules/jws}/lib/data-stream.js +0 -0
- /package/node_modules/{jws → google-auth-library/node_modules/jws}/lib/sign-stream.js +0 -0
- /package/node_modules/{jws → google-auth-library/node_modules/jws}/lib/tostring.js +0 -0
- /package/node_modules/{jws → google-auth-library/node_modules/jws}/lib/verify-stream.js +0 -0
- /package/node_modules/{jws → google-auth-library/node_modules/jws}/opslevel.yml +0 -0
- /package/node_modules/{jws → google-auth-library/node_modules/jws}/package.json +0 -0
- /package/node_modules/{jws → google-auth-library/node_modules/jws}/readme.md +0 -0
- /package/node_modules/{ms → google-auth-library/node_modules/ms}/index.js +0 -0
- /package/node_modules/{ms → google-auth-library/node_modules/ms}/license.md +0 -0
- /package/node_modules/{ms → google-auth-library/node_modules/ms}/package.json +0 -0
- /package/node_modules/{ms → google-auth-library/node_modules/ms}/readme.md +0 -0
- /package/node_modules/{node-domexception → google-auth-library/node_modules/node-domexception}/LICENSE +0 -0
- /package/node_modules/{node-domexception → google-auth-library/node_modules/node-domexception}/index.js +0 -0
- /package/node_modules/{node-domexception → google-auth-library/node_modules/node-domexception}/package.json +0 -0
- /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/@types/index.d.ts +0 -0
- /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/LICENSE.md +0 -0
- /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/README.md +0 -0
- /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/package.json +0 -0
- /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/src/body.js +0 -0
- /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/src/errors/abort-error.js +0 -0
- /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/src/errors/base.js +0 -0
- /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/src/errors/fetch-error.js +0 -0
- /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/src/headers.js +0 -0
- /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/src/index.js +0 -0
- /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/src/request.js +0 -0
- /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/src/response.js +0 -0
- /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/src/utils/get-search.js +0 -0
- /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/src/utils/is-redirect.js +0 -0
- /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/src/utils/is.js +0 -0
- /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/src/utils/multipart-parser.js +0 -0
- /package/node_modules/{node-fetch → google-auth-library/node_modules/node-fetch}/src/utils/referrer.js +0 -0
- /package/node_modules/{safe-buffer → google-auth-library/node_modules/safe-buffer}/LICENSE +0 -0
- /package/node_modules/{safe-buffer → google-auth-library/node_modules/safe-buffer}/README.md +0 -0
- /package/node_modules/{safe-buffer → google-auth-library/node_modules/safe-buffer}/index.d.ts +0 -0
- /package/node_modules/{safe-buffer → google-auth-library/node_modules/safe-buffer}/index.js +0 -0
- /package/node_modules/{safe-buffer → google-auth-library/node_modules/safe-buffer}/package.json +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/LICENSE +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/README.md +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.es2018.js +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.es2018.js.map +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.es2018.min.js +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.es2018.min.js.map +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.es2018.mjs +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.es2018.mjs.map +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.es6.js +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.es6.js.map +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.es6.min.js +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.es6.min.js.map +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.es6.mjs +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.es6.mjs.map +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.js +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.js.map +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.min.js +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.min.js.map +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.mjs +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/polyfill.mjs.map +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/ponyfill.es2018.js +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/ponyfill.es2018.js.map +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/ponyfill.es2018.mjs +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/ponyfill.es2018.mjs.map +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/ponyfill.es6.js +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/ponyfill.es6.js.map +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/ponyfill.es6.mjs +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/ponyfill.es6.mjs.map +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/ponyfill.js +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/ponyfill.js.map +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/ponyfill.mjs +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/ponyfill.mjs.map +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/types/polyfill.d.ts +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/types/ponyfill.d.ts +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/types/ts3.6/polyfill.d.ts +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/types/ts3.6/ponyfill.d.ts +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/dist/types/tsdoc-metadata.json +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/es2018/package.json +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/es6/package.json +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/package.json +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/ponyfill/es2018/package.json +0 -0
- /package/node_modules/{web-streams-polyfill → google-auth-library/node_modules/web-streams-polyfill}/ponyfill/es6/package.json +0 -0
- /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
|
|
2
|
-
import { m as resolveGoogleChatOutboundSpace, v as sendGoogleChatMessage } from "./channel.adapters-
|
|
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:
|
|
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-
|
|
2
|
-
import { t as googlechatPlugin } from "./channel-
|
|
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-
|
|
2
|
-
import { d as isGoogleChatUserTarget, f as normalizeGoogleChatTarget } from "./channel.adapters-
|
|
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-
|
|
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-
|
|
3
|
-
import {
|
|
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 (
|
|
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
|
|
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
|
|
139
|
-
return
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
})
|
|
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
|
-
|
|
477
|
+
inspectAccount: adaptScopedAccountAccessor(inspectGoogleChatAccount),
|
|
478
|
+
isConfigured: isGoogleChatAccountConfigured,
|
|
456
479
|
describeAccount: (account) => describeAccountSnapshot({
|
|
457
480
|
account,
|
|
458
|
-
configured: account
|
|
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,
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
240
|
+
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-BbwE9vOC.js"), "googleChatChannelRuntime");
|
|
230
241
|
const googlechatActions = {
|
|
231
|
-
describeMessageTool:
|
|
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-
|
|
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 {
|
|
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-
|
|
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-
|
|
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 (
|
|
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-
|
|
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-
|
|
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-
|
|
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,
|
|
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
|
|
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
|
|
505
|
+
if (typeof eventType !== "string" || !isRecord(event.space)) throw new GoogleChatEventPayloadError();
|
|
508
506
|
if (eventType === "MESSAGE") {
|
|
509
|
-
if (!isRecord
|
|
510
|
-
} else if (eventType === "CARD_CLICKED" && !isRecord
|
|
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
|
|
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
|
|
542
|
-
const commonEventObject = isRecord
|
|
543
|
-
const chat = isRecord
|
|
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
|
|
547
|
-
let message = isRecord
|
|
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
|
|
533
|
+
const messagePayload = isRecord(chat?.messagePayload) ? chat.messagePayload : null;
|
|
550
534
|
if (!messagePayload) return null;
|
|
551
535
|
eventType = "MESSAGE";
|
|
552
|
-
space = isRecord
|
|
553
|
-
message = isRecord
|
|
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
|
|
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
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
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
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
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
|
-
|
|
735
|
-
|
|
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 =
|
|
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-
|
|
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",
|
package/dist/setup-plugin-api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as createGoogleChatPluginBase } from "./channel-base-
|
|
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
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
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
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
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.
|