@openclaw/googlechat 2026.7.2-beta.4 → 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/README.md +1 -1
- package/dist/{actions-DBF3ImbA.js → actions-D81dCtkC.js} +4 -12
- package/dist/api.js +2 -2
- package/dist/{approval-auth-BztBRceh.js → approval-auth-ykO6i_ub.js} +2 -2
- package/dist/{approval-handler.runtime-CWoYapMp.js → approval-handler.runtime-CBeHrXtL.js} +3 -3
- package/dist/{channel-base-BOLIr2sb.js → channel-base-hw9ErEr5.js} +58 -55
- package/dist/{channel-DMP6V9MO.js → channel-kouqKs2x.js} +21 -19
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.adapters-X7Hlcajj.js → channel.adapters-DaipaeYt.js} +9 -19
- package/dist/{channel.runtime-rGazhnxA.js → channel.runtime-BbwE9vOC.js} +48 -66
- package/dist/directory-contract-api.js +1 -1
- package/dist/{doctor-contract-CWlBAcKf.js → doctor-contract-BpuSvJro.js} +14 -43
- package/dist/doctor-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/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/colours.d.ts +29 -0
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/colours.js +81 -0
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/colours.js.map +1 -0
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/index.d.ts +1 -0
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/index.js +31 -0
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/index.js.map +1 -0
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/logging-utils.d.ts +222 -0
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/logging-utils.js +437 -0
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/logging-utils.js.map +1 -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/node_modules/google-logging-utils/build/src/temporal.js +68 -0
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/temporal.js.map +1 -0
- package/node_modules/{google-logging-utils → google-auth-library/node_modules/google-logging-utils}/package.json +9 -11
- package/node_modules/google-auth-library/package.json +1 -1
- package/package.json +5 -6
- package/node_modules/gaxios/build/cjs/tsconfig.cjs.tsbuildinfo +0 -1
- package/node_modules/gaxios/build/esm/tsconfig.tsbuildinfo +0 -1
- package/npm-shrinkwrap.json +0 -313
- /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/colours.d.ts +0 -0
- /package/node_modules/{google-logging-utils → google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils}/build/src/colours.js +0 -0
- /package/node_modules/{google-logging-utils → google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils}/build/src/colours.js.map +0 -0
- /package/node_modules/{google-logging-utils → google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils}/build/src/index.d.ts +0 -0
- /package/node_modules/{google-logging-utils → google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils}/build/src/index.js +0 -0
- /package/node_modules/{google-logging-utils → google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils}/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}/build/src/logging-utils.d.ts +0 -0
- /package/node_modules/{google-logging-utils → google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils}/build/src/logging-utils.js +0 -0
- /package/node_modules/{google-logging-utils → google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils}/build/src/logging-utils.js.map +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/{google-logging-utils → google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils}/build/src/temporal.js +0 -0
- /package/node_modules/{google-logging-utils → google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils}/build/src/temporal.js.map +0 -0
- /package/node_modules/{google-logging-utils → google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils}/build/src/types.d.ts +0 -0
- /package/node_modules/{google-logging-utils → google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils}/build/src/types.js +0 -0
- /package/node_modules/{google-logging-utils → google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils}/build/src/types.js.map +0 -0
- /package/node_modules/{gcp-metadata → google-auth-library/node_modules/gcp-metadata}/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
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Official OpenClaw channel plugin for Google Chat spaces and direct messages.
|
|
|
5
5
|
Install from OpenClaw:
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
openclaw
|
|
8
|
+
openclaw plugins install @openclaw/googlechat
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
Configure the Google Chat app credentials and allowed spaces in OpenClaw. The plugin lets agents receive Google Chat events and reply through the configured app.
|
|
@@ -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";
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { safeParseJsonWithSchema, safeParseWithSchema } from "openclaw/plugin-sdk/extension-shared";
|
|
2
2
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeStringifiedOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { createAccountListHelpers, describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
|
|
4
|
+
import { DEFAULT_ACCOUNT_ID, normalizeAccountId, resolveAccountEntry } from "openclaw/plugin-sdk/account-resolution";
|
|
4
5
|
import { mergePairLoopGuardConfig } from "openclaw/plugin-sdk/pair-loop-guard-runtime";
|
|
5
6
|
import { tryReadSecretFileSync } from "openclaw/plugin-sdk/secret-file-runtime";
|
|
6
|
-
import { isSecretRef } from "openclaw/plugin-sdk/secret-input";
|
|
7
|
+
import { coerceSecretRef, isSecretRef, resolveSecretInputString } from "openclaw/plugin-sdk/secret-input";
|
|
7
8
|
import { resolveUserPath } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
8
9
|
import { z } from "zod";
|
|
9
|
-
import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
|
|
10
10
|
import { formatNormalizedAllowFromEntries } from "openclaw/plugin-sdk/allow-from";
|
|
11
11
|
import { adaptScopedAccountAccessor, createScopedChannelConfigAdapter } from "openclaw/plugin-sdk/channel-config-helpers";
|
|
12
12
|
import { defineChannelSetupContract } from "openclaw/plugin-sdk/channel-setup";
|
|
13
13
|
import { createPatchedAccountSetupAdapter, createSetupInputPresenceValidator } from "openclaw/plugin-sdk/setup-runtime";
|
|
14
|
-
import {
|
|
14
|
+
import { createChannelDmPolicy } from "openclaw/plugin-sdk/channel-dm-policy";
|
|
15
|
+
import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1, applySetupAccountConfigPatch, createPromptParsedAllowFromForAccount, createSetupTranslator, createStandardChannelSetupStatus, formatDocsLink, mergeAllowFromEntries, migrateBaseNameToDefaultAccount, splitSetupEntries } from "openclaw/plugin-sdk/setup";
|
|
15
16
|
//#region extensions/googlechat/src/google-auth-limits.ts
|
|
16
17
|
const MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES = 64 * 1024;
|
|
17
18
|
//#endregion
|
|
@@ -19,19 +20,17 @@ const MAX_GOOGLE_CHAT_SERVICE_ACCOUNT_FILE_BYTES = 64 * 1024;
|
|
|
19
20
|
const ENV_SERVICE_ACCOUNT$1 = "GOOGLE_CHAT_SERVICE_ACCOUNT";
|
|
20
21
|
const ENV_SERVICE_ACCOUNT_FILE$1 = "GOOGLE_CHAT_SERVICE_ACCOUNT_FILE";
|
|
21
22
|
const JsonRecordSchema = z.record(z.string(), z.unknown());
|
|
22
|
-
const { listAccountIds: listGoogleChatAccountIds, resolveDefaultAccountId: resolveDefaultGoogleChatAccountId } = createAccountListHelpers("googlechat", {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
const { listAccountIds: listGoogleChatAccountIds, resolveDefaultAccountId: resolveDefaultGoogleChatAccountId, resolveAccountConfig: resolveMergedGoogleChatAccountConfig } = createAccountListHelpers("googlechat", {
|
|
24
|
+
implicitDefaultAccount: {
|
|
25
|
+
channelKeys: ["serviceAccount", "serviceAccountFile"],
|
|
26
|
+
envVars: [ENV_SERVICE_ACCOUNT$1, ENV_SERVICE_ACCOUNT_FILE$1]
|
|
27
|
+
},
|
|
28
|
+
omitKeys: ["defaultAccount"],
|
|
29
|
+
nestedObjectKeys: ["botLoopProtection"]
|
|
30
|
+
});
|
|
26
31
|
function mergeGoogleChatAccountConfig(cfg, accountId) {
|
|
27
32
|
const raw = cfg.channels?.["googlechat"] ?? {};
|
|
28
|
-
const base =
|
|
29
|
-
channelConfig: raw,
|
|
30
|
-
accounts: raw.accounts,
|
|
31
|
-
accountId,
|
|
32
|
-
omitKeys: ["defaultAccount"],
|
|
33
|
-
nestedObjectKeys: ["botLoopProtection"]
|
|
34
|
-
});
|
|
33
|
+
const base = resolveMergedGoogleChatAccountConfig(cfg, accountId);
|
|
35
34
|
const defaultAccountConfig = resolveAccountEntry(raw.accounts, DEFAULT_ACCOUNT_ID) ?? {};
|
|
36
35
|
if (accountId === DEFAULT_ACCOUNT_ID) return base;
|
|
37
36
|
const { enabled: _ignoredEnabled, dangerouslyAllowNameMatching: _ignoredDangerouslyAllowNameMatching, serviceAccount: _ignoredServiceAccount, serviceAccountFile: _ignoredServiceAccountFile, ...defaultAccountShared } = defaultAccountConfig;
|
|
@@ -63,7 +62,18 @@ function resolveCredentialsFromConfig(params) {
|
|
|
63
62
|
source: "inline",
|
|
64
63
|
status: "available"
|
|
65
64
|
};
|
|
66
|
-
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
|
+
};
|
|
67
77
|
const file = normalizeOptionalString(account.serviceAccountFile);
|
|
68
78
|
if (file) {
|
|
69
79
|
const result = tryReadSecretFileSync(resolveUserPath(file), "Google Chat service account file", {
|
|
@@ -114,15 +124,17 @@ function resolveCredentialsFromConfig(params) {
|
|
|
114
124
|
status: "missing"
|
|
115
125
|
};
|
|
116
126
|
}
|
|
117
|
-
function
|
|
127
|
+
function resolveGoogleChatAccountWithMode(params) {
|
|
118
128
|
const accountId = normalizeAccountId(params.accountId ?? params.cfg.channels?.["googlechat"]?.defaultAccount);
|
|
119
129
|
const baseEnabled = params.cfg.channels?.["googlechat"]?.enabled !== false;
|
|
120
130
|
const merged = mergeGoogleChatAccountConfig(params.cfg, accountId);
|
|
121
131
|
const accountEnabled = merged.enabled !== false;
|
|
122
132
|
const enabled = baseEnabled && accountEnabled;
|
|
123
133
|
const credentials = resolveCredentialsFromConfig({
|
|
134
|
+
cfg: params.cfg,
|
|
124
135
|
accountId,
|
|
125
|
-
account: merged
|
|
136
|
+
account: merged,
|
|
137
|
+
mode: params.mode
|
|
126
138
|
});
|
|
127
139
|
return {
|
|
128
140
|
accountId,
|
|
@@ -136,11 +148,17 @@ function resolveGoogleChatAccount(params) {
|
|
|
136
148
|
...credentials.diagnostic ? { credentialDiagnostics: [credentials.diagnostic] } : {}
|
|
137
149
|
};
|
|
138
150
|
}
|
|
139
|
-
function
|
|
140
|
-
return
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
})
|
|
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
|
+
});
|
|
144
162
|
}
|
|
145
163
|
const googlechatSetupAdapter = createPatchedAccountSetupAdapter({
|
|
146
164
|
channelKey: "googlechat",
|
|
@@ -232,38 +250,19 @@ const ENV_SERVICE_ACCOUNT = "GOOGLE_CHAT_SERVICE_ACCOUNT";
|
|
|
232
250
|
const ENV_SERVICE_ACCOUNT_FILE = "GOOGLE_CHAT_SERVICE_ACCOUNT_FILE";
|
|
233
251
|
const USE_ENV_FLAG = "__googlechatUseEnv";
|
|
234
252
|
const AUTH_METHOD_FLAG = "__googlechatAuthMethod";
|
|
235
|
-
const googlechatDmPolicy = {
|
|
253
|
+
const googlechatDmPolicy = createChannelDmPolicy({
|
|
236
254
|
label: "Google Chat",
|
|
237
255
|
channel,
|
|
238
|
-
|
|
239
|
-
allowFromKey: "channels.googlechat.allowFrom",
|
|
240
|
-
resolveConfigKeys: (cfg, accountId) => (accountId ?? resolveDefaultGoogleChatAccountId(cfg)) !== DEFAULT_ACCOUNT_ID$1 ? {
|
|
241
|
-
policyKey: `channels.googlechat.accounts.${accountId ?? resolveDefaultGoogleChatAccountId(cfg)}.dmPolicy`,
|
|
242
|
-
allowFromKey: `channels.googlechat.accounts.${accountId ?? resolveDefaultGoogleChatAccountId(cfg)}.allowFrom`
|
|
243
|
-
} : {
|
|
244
|
-
policyKey: "channels.googlechat.dmPolicy",
|
|
245
|
-
allowFromKey: "channels.googlechat.allowFrom"
|
|
246
|
-
},
|
|
247
|
-
getCurrent: (cfg, accountId) => resolveGoogleChatAccount({
|
|
256
|
+
resolveAccount: (cfg, accountId) => resolveGoogleChatAccount({
|
|
248
257
|
cfg,
|
|
249
258
|
accountId: accountId ?? resolveDefaultGoogleChatAccountId(cfg)
|
|
250
|
-
})
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
return applySetupAccountConfigPatch({
|
|
258
|
-
cfg,
|
|
259
|
-
channelKey: channel,
|
|
260
|
-
accountId: resolvedAccountId,
|
|
261
|
-
patch: {
|
|
262
|
-
dmPolicy: policy,
|
|
263
|
-
...policy === "open" ? { allowFrom: addWildcardAllowFrom(current.allowFrom) } : {}
|
|
264
|
-
}
|
|
265
|
-
});
|
|
266
|
-
},
|
|
259
|
+
}),
|
|
260
|
+
applyPatch: ({ cfg, account, patch }) => applySetupAccountConfigPatch({
|
|
261
|
+
cfg,
|
|
262
|
+
channelKey: channel,
|
|
263
|
+
accountId: account.accountId,
|
|
264
|
+
patch
|
|
265
|
+
}),
|
|
267
266
|
promptAllowFrom: createPromptParsedAllowFromForAccount({
|
|
268
267
|
defaultAccountId: resolveDefaultGoogleChatAccountId,
|
|
269
268
|
message: t("wizard.googlechat.allowFromPrompt"),
|
|
@@ -280,7 +279,7 @@ const googlechatDmPolicy = {
|
|
|
280
279
|
patch: { allowFrom }
|
|
281
280
|
})
|
|
282
281
|
})
|
|
283
|
-
};
|
|
282
|
+
});
|
|
284
283
|
function createServiceAccountTextInput(params) {
|
|
285
284
|
return {
|
|
286
285
|
inputKey: params.inputKey,
|
|
@@ -446,6 +445,9 @@ const googleChatConfigAdapter = createScopedChannelConfigAdapter({
|
|
|
446
445
|
}),
|
|
447
446
|
resolveDefaultTo: (account) => account.config.defaultTo
|
|
448
447
|
});
|
|
448
|
+
function isGoogleChatAccountConfigured(account) {
|
|
449
|
+
return account.tokenStatus ? account.tokenStatus !== "missing" : account.credentialSource !== "none";
|
|
450
|
+
}
|
|
449
451
|
function createGoogleChatPluginBase(params = {}) {
|
|
450
452
|
return {
|
|
451
453
|
id: GOOGLECHAT_CHANNEL_ID,
|
|
@@ -472,10 +474,11 @@ function createGoogleChatPluginBase(params = {}) {
|
|
|
472
474
|
...params.configSchema ? { configSchema: params.configSchema } : {},
|
|
473
475
|
config: {
|
|
474
476
|
...googleChatConfigAdapter,
|
|
475
|
-
|
|
477
|
+
inspectAccount: adaptScopedAccountAccessor(inspectGoogleChatAccount),
|
|
478
|
+
isConfigured: isGoogleChatAccountConfigured,
|
|
476
479
|
describeAccount: (account) => describeAccountSnapshot({
|
|
477
480
|
account,
|
|
478
|
-
configured: account
|
|
481
|
+
configured: isGoogleChatAccountConfigured(account),
|
|
479
482
|
extra: {
|
|
480
483
|
credentialSource: account.credentialSource,
|
|
481
484
|
tokenStatus: account.tokenStatus
|
|
@@ -485,4 +488,4 @@ function createGoogleChatPluginBase(params = {}) {
|
|
|
485
488
|
};
|
|
486
489
|
}
|
|
487
490
|
//#endregion
|
|
488
|
-
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,9 +1,9 @@
|
|
|
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-
|
|
6
|
-
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-
|
|
5
|
+
import { n as googleChatApprovalAuth, r as normalizeGoogleChatApproverId, t as getGoogleChatApprovalApprovers } from "./approval-auth-ykO6i_ub.js";
|
|
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";
|
|
9
9
|
import { buildPassiveProbedChannelStatusSummary } from "openclaw/plugin-sdk/extension-shared";
|
|
@@ -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";
|
|
@@ -12,7 +12,7 @@ import crypto from "node:crypto";
|
|
|
12
12
|
import { pruneMapToMaxSize } from "openclaw/plugin-sdk/collection-runtime";
|
|
13
13
|
import { readProviderJsonResponse } from "openclaw/plugin-sdk/provider-http";
|
|
14
14
|
import { createMessageReceiptFromOutboundResults, defineChannelMessageAdapter, sanitizeForPlainText } from "openclaw/plugin-sdk/channel-outbound";
|
|
15
|
-
import { markdownToIR, renderMarkdownIRChunksWithinLimit, renderMarkdownWithMarkers, sanitizeAssistantVisibleText } from "openclaw/plugin-sdk/text-chunking";
|
|
15
|
+
import { FormatCapabilityProfile, markdownToIR, renderMarkdownIRChunksWithinLimit, renderMarkdownWithMarkers, sanitizeAssistantVisibleText } from "openclaw/plugin-sdk/text-chunking";
|
|
16
16
|
import fs from "node:fs/promises";
|
|
17
17
|
import { adaptScopedAccountAccessor } from "openclaw/plugin-sdk/channel-config-helpers";
|
|
18
18
|
import { buildChannelGroupsScopeTree, composeAccountWarningCollectors, createAllowlistProviderOpenWarningCollector, resolveScopeRequireMention } from "openclaw/plugin-sdk/channel-policy";
|
|
@@ -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,
|
|
@@ -868,24 +866,16 @@ async function resolveGoogleChatOutboundSessionRoute(params) {
|
|
|
868
866
|
}
|
|
869
867
|
//#endregion
|
|
870
868
|
//#region extensions/googlechat/src/format.ts
|
|
871
|
-
const GOOGLE_CHAT_FORMAT_PROFILE = {
|
|
869
|
+
const GOOGLE_CHAT_FORMAT_PROFILE = FormatCapabilityProfile.define({
|
|
872
870
|
mechanism: "markdown",
|
|
873
871
|
constructs: {
|
|
874
|
-
bold: "native",
|
|
875
|
-
italic: "native",
|
|
876
872
|
underline: "fallback",
|
|
877
|
-
strikethrough: "native",
|
|
878
873
|
spoiler: "fallback",
|
|
879
|
-
codeInline: "native",
|
|
880
|
-
codeBlock: "native",
|
|
881
874
|
codeLanguage: "fallback",
|
|
882
|
-
linkLabel: "native",
|
|
883
875
|
heading: "fallback",
|
|
884
|
-
bulletList: "native",
|
|
885
876
|
orderedList: "fallback",
|
|
886
877
|
taskList: "fallback",
|
|
887
878
|
table: "fallback",
|
|
888
|
-
blockquote: "native",
|
|
889
879
|
image: "fallback",
|
|
890
880
|
mention: "strip"
|
|
891
881
|
},
|
|
@@ -893,7 +883,7 @@ const GOOGLE_CHAT_FORMAT_PROFILE = {
|
|
|
893
883
|
limit: 32e3,
|
|
894
884
|
unit: "bytes"
|
|
895
885
|
}
|
|
896
|
-
};
|
|
886
|
+
});
|
|
897
887
|
const GOOGLE_CHAT_LITERAL_FALLBACKS = /* @__PURE__ */ new Map([
|
|
898
888
|
["*", "*"],
|
|
899
889
|
["_", "_"],
|
|
@@ -1169,7 +1159,7 @@ function resolveGoogleChatGroupRequireMention(params) {
|
|
|
1169
1159
|
}
|
|
1170
1160
|
//#endregion
|
|
1171
1161
|
//#region extensions/googlechat/src/channel.adapters.ts
|
|
1172
|
-
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-
|
|
1162
|
+
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-BbwE9vOC.js"), "googleChatChannelRuntime");
|
|
1173
1163
|
function createGoogleChatSendReceipt(params) {
|
|
1174
1164
|
const messageId = params.messageId?.trim();
|
|
1175
1165
|
return createMessageReceiptFromOutboundResults({
|