@openclaw/googlechat 2026.7.2-beta.5 → 2026.7.33
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/.setup/actions-DeT_GgtP.mjs +167 -0
- package/dist/.setup/approval-auth-CQP5ZS_f.mjs +27 -0
- package/dist/{approval-handler.runtime-BJXVLK9y.js → .setup/approval-handler.runtime-DWNRBf9B.mjs} +5 -6
- package/dist/{channel-CehfTiWZ.js → .setup/channel-BPjomke4.mjs} +80 -58
- package/dist/{channel-base-CC85hRUC.js → .setup/channel-base-DJICAvKH.mjs} +80 -148
- package/dist/{channel.adapters-DLatFGZz.js → .setup/channel.adapters-T6wPzrpo.mjs} +164 -379
- package/dist/{channel.runtime-Bz0__ttC.js → .setup/channel.runtime-CpT-qT67.mjs} +241 -458
- package/dist/.setup/doctor-contract-BcEqUZ4j.mjs +151 -0
- package/dist/{runtime-api-Dh0CNVS4.js → .setup/runtime-api-BbVoWRxq.mjs} +7 -3
- package/dist/.setup/secret-contract-api-BGDBptmu.mjs +3 -0
- package/dist/.setup/secret-contract-lCMHqumt.mjs +99 -0
- package/dist/.setup/setup-plugin-api-BgwvQMls.mjs +5 -0
- package/dist/.setup/setup-plugin-api-Ce08GSFO.mjs +2 -0
- package/dist/api.js +2 -2
- package/dist/channel-config-api.js +2 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/directory-contract-api.js +1 -1
- package/dist/doctor-contract-api.js +1 -1
- package/dist/runtime-api.js +2 -3
- package/dist/secret-contract-api.js +1 -1
- package/dist/setup-entry.js +3 -2
- package/dist/setup-plugin-api.js +1 -4
- package/node_modules/gaxios/build/cjs/src/gaxios.js +1 -1
- package/node_modules/gaxios/build/cjs/src/gaxios.js.map +1 -1
- package/node_modules/gaxios/build/cjs/test/test.getch.js +0 -66
- package/node_modules/gaxios/build/cjs/test/test.getch.js.map +1 -1
- package/node_modules/gaxios/build/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/node_modules/gaxios/build/esm/src/gaxios.js +1 -1
- package/node_modules/gaxios/build/esm/src/gaxios.js.map +1 -1
- package/node_modules/gaxios/build/esm/test/test.getch.js +0 -66
- package/node_modules/gaxios/build/esm/test/test.getch.js.map +1 -1
- package/node_modules/gaxios/build/esm/tsconfig.tsbuildinfo +1 -1
- package/node_modules/gaxios/package.json +4 -4
- package/openclaw.plugin.json +488 -416
- package/package.json +24 -81
- package/dist/actions-wnreW-IQ.js +0 -76
- package/dist/approval-auth-G-OFufNc.js +0 -30
- package/dist/config-api-CsD0IFxF.js +0 -3
- package/dist/doctor-contract-BpuSvJro.js +0 -115
- package/dist/secret-contract-BFYyuE0F.js +0 -88
- /package/node_modules/{agent-base → gaxios/node_modules/agent-base}/LICENSE +0 -0
- /package/node_modules/{agent-base → gaxios/node_modules/agent-base}/README.md +0 -0
- /package/node_modules/{agent-base → gaxios/node_modules/agent-base}/dist/helpers.d.ts +0 -0
- /package/node_modules/{agent-base → gaxios/node_modules/agent-base}/dist/helpers.d.ts.map +0 -0
- /package/node_modules/{agent-base → gaxios/node_modules/agent-base}/dist/helpers.js +0 -0
- /package/node_modules/{agent-base → gaxios/node_modules/agent-base}/dist/helpers.js.map +0 -0
- /package/node_modules/{agent-base → gaxios/node_modules/agent-base}/dist/index.d.ts +0 -0
- /package/node_modules/{agent-base → gaxios/node_modules/agent-base}/dist/index.d.ts.map +0 -0
- /package/node_modules/{agent-base → gaxios/node_modules/agent-base}/dist/index.js +0 -0
- /package/node_modules/{agent-base → gaxios/node_modules/agent-base}/dist/index.js.map +0 -0
- /package/node_modules/{agent-base → gaxios/node_modules/agent-base}/package.json +0 -0
- /package/node_modules/{data-uri-to-buffer → gaxios/node_modules/data-uri-to-buffer}/README.md +0 -0
- /package/node_modules/{data-uri-to-buffer → gaxios/node_modules/data-uri-to-buffer}/dist/index.d.ts +0 -0
- /package/node_modules/{data-uri-to-buffer → gaxios/node_modules/data-uri-to-buffer}/dist/index.js +0 -0
- /package/node_modules/{data-uri-to-buffer → gaxios/node_modules/data-uri-to-buffer}/dist/index.js.map +0 -0
- /package/node_modules/{data-uri-to-buffer → gaxios/node_modules/data-uri-to-buffer}/package.json +0 -0
- /package/node_modules/{data-uri-to-buffer → gaxios/node_modules/data-uri-to-buffer}/src/index.ts +0 -0
- /package/node_modules/{debug → gaxios/node_modules/debug}/LICENSE +0 -0
- /package/node_modules/{debug → gaxios/node_modules/debug}/README.md +0 -0
- /package/node_modules/{debug → gaxios/node_modules/debug}/package.json +0 -0
- /package/node_modules/{debug → gaxios/node_modules/debug}/src/browser.js +0 -0
- /package/node_modules/{debug → gaxios/node_modules/debug}/src/common.js +0 -0
- /package/node_modules/{debug → gaxios/node_modules/debug}/src/index.js +0 -0
- /package/node_modules/{debug → gaxios/node_modules/debug}/src/node.js +0 -0
- /package/node_modules/{extend → gaxios/node_modules/extend}/.editorconfig +0 -0
- /package/node_modules/{extend → gaxios/node_modules/extend}/.eslintrc +0 -0
- /package/node_modules/{extend → gaxios/node_modules/extend}/.jscs.json +0 -0
- /package/node_modules/{extend → gaxios/node_modules/extend}/.travis.yml +0 -0
- /package/node_modules/{extend → gaxios/node_modules/extend}/CHANGELOG.md +0 -0
- /package/node_modules/{extend → gaxios/node_modules/extend}/LICENSE +0 -0
- /package/node_modules/{extend → gaxios/node_modules/extend}/README.md +0 -0
- /package/node_modules/{extend → gaxios/node_modules/extend}/component.json +0 -0
- /package/node_modules/{extend → gaxios/node_modules/extend}/index.js +0 -0
- /package/node_modules/{extend → gaxios/node_modules/extend}/package.json +0 -0
- /package/node_modules/{fetch-blob → gaxios/node_modules/fetch-blob}/LICENSE +0 -0
- /package/node_modules/{fetch-blob → gaxios/node_modules/fetch-blob}/README.md +0 -0
- /package/node_modules/{fetch-blob → gaxios/node_modules/fetch-blob}/file.d.ts +0 -0
- /package/node_modules/{fetch-blob → gaxios/node_modules/fetch-blob}/file.js +0 -0
- /package/node_modules/{fetch-blob → gaxios/node_modules/fetch-blob}/from.d.ts +0 -0
- /package/node_modules/{fetch-blob → gaxios/node_modules/fetch-blob}/from.js +0 -0
- /package/node_modules/{fetch-blob → gaxios/node_modules/fetch-blob}/index.d.ts +0 -0
- /package/node_modules/{fetch-blob → gaxios/node_modules/fetch-blob}/index.js +0 -0
- /package/node_modules/{fetch-blob → gaxios/node_modules/fetch-blob}/package.json +0 -0
- /package/node_modules/{fetch-blob → gaxios/node_modules/fetch-blob}/streams.cjs +0 -0
- /package/node_modules/{formdata-polyfill → gaxios/node_modules/formdata-polyfill}/FormData.js +0 -0
- /package/node_modules/{formdata-polyfill → gaxios/node_modules/formdata-polyfill}/LICENSE +0 -0
- /package/node_modules/{formdata-polyfill → gaxios/node_modules/formdata-polyfill}/README.md +0 -0
- /package/node_modules/{formdata-polyfill → gaxios/node_modules/formdata-polyfill}/esm.min.d.ts +0 -0
- /package/node_modules/{formdata-polyfill → gaxios/node_modules/formdata-polyfill}/esm.min.js +0 -0
- /package/node_modules/{formdata-polyfill → gaxios/node_modules/formdata-polyfill}/formdata-to-blob.js +0 -0
- /package/node_modules/{formdata-polyfill → gaxios/node_modules/formdata-polyfill}/formdata.min.js +0 -0
- /package/node_modules/{formdata-polyfill → gaxios/node_modules/formdata-polyfill}/package.json +0 -0
- /package/node_modules/{https-proxy-agent → gaxios/node_modules/https-proxy-agent}/LICENSE +0 -0
- /package/node_modules/{https-proxy-agent → gaxios/node_modules/https-proxy-agent}/README.md +0 -0
- /package/node_modules/{https-proxy-agent → gaxios/node_modules/https-proxy-agent}/dist/index.d.ts +0 -0
- /package/node_modules/{https-proxy-agent → gaxios/node_modules/https-proxy-agent}/dist/index.d.ts.map +0 -0
- /package/node_modules/{https-proxy-agent → gaxios/node_modules/https-proxy-agent}/dist/index.js +0 -0
- /package/node_modules/{https-proxy-agent → gaxios/node_modules/https-proxy-agent}/dist/index.js.map +0 -0
- /package/node_modules/{https-proxy-agent → gaxios/node_modules/https-proxy-agent}/dist/parse-proxy-response.d.ts +0 -0
- /package/node_modules/{https-proxy-agent → gaxios/node_modules/https-proxy-agent}/dist/parse-proxy-response.d.ts.map +0 -0
- /package/node_modules/{https-proxy-agent → gaxios/node_modules/https-proxy-agent}/dist/parse-proxy-response.js +0 -0
- /package/node_modules/{https-proxy-agent → gaxios/node_modules/https-proxy-agent}/dist/parse-proxy-response.js.map +0 -0
- /package/node_modules/{https-proxy-agent → gaxios/node_modules/https-proxy-agent}/package.json +0 -0
- /package/node_modules/{ms → gaxios/node_modules/ms}/index.js +0 -0
- /package/node_modules/{ms → gaxios/node_modules/ms}/license.md +0 -0
- /package/node_modules/{ms → gaxios/node_modules/ms}/package.json +0 -0
- /package/node_modules/{ms → gaxios/node_modules/ms}/readme.md +0 -0
- /package/node_modules/{node-domexception → gaxios/node_modules/node-domexception}/LICENSE +0 -0
- /package/node_modules/{node-domexception → gaxios/node_modules/node-domexception}/index.js +0 -0
- /package/node_modules/{node-domexception → gaxios/node_modules/node-domexception}/package.json +0 -0
- /package/node_modules/{node-fetch → gaxios/node_modules/node-fetch}/@types/index.d.ts +0 -0
- /package/node_modules/{node-fetch → gaxios/node_modules/node-fetch}/LICENSE.md +0 -0
- /package/node_modules/{node-fetch → gaxios/node_modules/node-fetch}/README.md +0 -0
- /package/node_modules/{node-fetch → gaxios/node_modules/node-fetch}/package.json +0 -0
- /package/node_modules/{node-fetch → gaxios/node_modules/node-fetch}/src/body.js +0 -0
- /package/node_modules/{node-fetch → gaxios/node_modules/node-fetch}/src/errors/abort-error.js +0 -0
- /package/node_modules/{node-fetch → gaxios/node_modules/node-fetch}/src/errors/base.js +0 -0
- /package/node_modules/{node-fetch → gaxios/node_modules/node-fetch}/src/errors/fetch-error.js +0 -0
- /package/node_modules/{node-fetch → gaxios/node_modules/node-fetch}/src/headers.js +0 -0
- /package/node_modules/{node-fetch → gaxios/node_modules/node-fetch}/src/index.js +0 -0
- /package/node_modules/{node-fetch → gaxios/node_modules/node-fetch}/src/request.js +0 -0
- /package/node_modules/{node-fetch → gaxios/node_modules/node-fetch}/src/response.js +0 -0
- /package/node_modules/{node-fetch → gaxios/node_modules/node-fetch}/src/utils/get-search.js +0 -0
- /package/node_modules/{node-fetch → gaxios/node_modules/node-fetch}/src/utils/is-redirect.js +0 -0
- /package/node_modules/{node-fetch → gaxios/node_modules/node-fetch}/src/utils/is.js +0 -0
- /package/node_modules/{node-fetch → gaxios/node_modules/node-fetch}/src/utils/multipart-parser.js +0 -0
- /package/node_modules/{node-fetch → gaxios/node_modules/node-fetch}/src/utils/referrer.js +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/LICENSE +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/README.md +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/polyfill.es2018.js +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/polyfill.es2018.js.map +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/polyfill.es2018.min.js +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/polyfill.es2018.min.js.map +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/polyfill.es2018.mjs +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/polyfill.es2018.mjs.map +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/polyfill.es6.js +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/polyfill.es6.js.map +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/polyfill.es6.min.js +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/polyfill.es6.min.js.map +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/polyfill.es6.mjs +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/polyfill.es6.mjs.map +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/polyfill.js +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/polyfill.js.map +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/polyfill.min.js +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/polyfill.min.js.map +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/polyfill.mjs +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/polyfill.mjs.map +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/ponyfill.es2018.js +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/ponyfill.es2018.js.map +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/ponyfill.es2018.mjs +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/ponyfill.es2018.mjs.map +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/ponyfill.es6.js +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/ponyfill.es6.js.map +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/ponyfill.es6.mjs +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/ponyfill.es6.mjs.map +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/ponyfill.js +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/ponyfill.js.map +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/ponyfill.mjs +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/ponyfill.mjs.map +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/types/polyfill.d.ts +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/types/ponyfill.d.ts +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/types/ts3.6/polyfill.d.ts +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/types/ts3.6/ponyfill.d.ts +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/dist/types/tsdoc-metadata.json +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/es2018/package.json +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/es6/package.json +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/package.json +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/ponyfill/es2018/package.json +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/ponyfill/es6/package.json +0 -0
- /package/node_modules/{web-streams-polyfill → gaxios/node_modules/web-streams-polyfill}/ponyfill/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/{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/{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/{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}/LICENSE +0 -0
- /package/node_modules/{google-logging-utils → google-auth-library/node_modules/google-logging-utils}/README.md +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.d.ts +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/{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/{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/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 plugin add @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.
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { l as resolveGoogleChatAccount, o as listEnabledGoogleChatAccounts } from "./channel-base-DJICAvKH.mjs";
|
|
2
|
+
import { S as uploadGoogleChatAttachment, b as sendGoogleChatMessage, g as deleteGoogleChatReaction, m as createGoogleChatReaction, p as resolveGoogleChatOutboundSpace, v as listGoogleChatReactions } from "./channel.adapters-T6wPzrpo.mjs";
|
|
3
|
+
import { P as getGoogleChatRuntime } from "./runtime-api-BbVoWRxq.mjs";
|
|
4
|
+
import { extractToolSend } from "openclaw/plugin-sdk/tool-send";
|
|
5
|
+
import { createActionGate, jsonResult, readPositiveIntegerParam, readReactionParams, readStringParam } from "openclaw/plugin-sdk/channel-actions";
|
|
6
|
+
import { loadOutboundMediaFromUrl } from "openclaw/plugin-sdk/outbound-media";
|
|
7
|
+
//#region extensions/googlechat/src/actions.ts
|
|
8
|
+
const providerId = "googlechat";
|
|
9
|
+
function listEnabledAccounts(cfg) {
|
|
10
|
+
return listEnabledGoogleChatAccounts(cfg).filter((account) => account.enabled && account.credentialSource !== "none");
|
|
11
|
+
}
|
|
12
|
+
function isReactionsEnabled(accounts) {
|
|
13
|
+
for (const account of accounts) if (createActionGate(account.config.actions)("reactions")) return true;
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
function resolveAppUserNames(account) {
|
|
17
|
+
return new Set(["users/app", account.config.botUser?.trim()].filter(Boolean));
|
|
18
|
+
}
|
|
19
|
+
async function loadGoogleChatActionMedia(params) {
|
|
20
|
+
const runtime = getGoogleChatRuntime();
|
|
21
|
+
return /^https?:\/\//i.test(params.mediaUrl) ? await runtime.channel.media.readRemoteMediaBuffer({
|
|
22
|
+
url: params.mediaUrl,
|
|
23
|
+
maxBytes: params.maxBytes
|
|
24
|
+
}) : await loadOutboundMediaFromUrl(params.mediaUrl, {
|
|
25
|
+
maxBytes: params.maxBytes,
|
|
26
|
+
mediaAccess: params.mediaAccess,
|
|
27
|
+
mediaLocalRoots: params.mediaLocalRoots,
|
|
28
|
+
mediaReadFile: params.mediaReadFile
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
const googlechatMessageActions = {
|
|
32
|
+
describeMessageTool: ({ cfg, accountId }) => {
|
|
33
|
+
const accounts = accountId ? [resolveGoogleChatAccount({
|
|
34
|
+
cfg,
|
|
35
|
+
accountId
|
|
36
|
+
})].filter((account) => account.enabled && account.credentialSource !== "none") : listEnabledAccounts(cfg);
|
|
37
|
+
if (accounts.length === 0) return null;
|
|
38
|
+
const actions = /* @__PURE__ */ new Set([]);
|
|
39
|
+
actions.add("send");
|
|
40
|
+
actions.add("upload-file");
|
|
41
|
+
if (isReactionsEnabled(accounts)) {
|
|
42
|
+
actions.add("react");
|
|
43
|
+
actions.add("reactions");
|
|
44
|
+
}
|
|
45
|
+
return { actions: Array.from(actions) };
|
|
46
|
+
},
|
|
47
|
+
extractToolSend: ({ args }) => {
|
|
48
|
+
return extractToolSend(args, "sendMessage");
|
|
49
|
+
},
|
|
50
|
+
handleAction: async ({ action, params, cfg, accountId, mediaAccess, mediaLocalRoots, mediaReadFile }) => {
|
|
51
|
+
const account = resolveGoogleChatAccount({
|
|
52
|
+
cfg,
|
|
53
|
+
accountId
|
|
54
|
+
});
|
|
55
|
+
if (account.credentialSource === "none") throw new Error("Google Chat credentials are missing.");
|
|
56
|
+
if (action === "send" || action === "upload-file") {
|
|
57
|
+
const to = readStringParam(params, "to", { required: true });
|
|
58
|
+
const content = readStringParam(params, "message", {
|
|
59
|
+
required: action === "send",
|
|
60
|
+
allowEmpty: true
|
|
61
|
+
}) ?? readStringParam(params, "initialComment", { allowEmpty: true }) ?? "";
|
|
62
|
+
const mediaUrl = readStringParam(params, "media", { trim: false }) ?? readStringParam(params, "filePath", { trim: false }) ?? readStringParam(params, "path", { trim: false });
|
|
63
|
+
const threadId = readStringParam(params, "threadId") ?? readStringParam(params, "replyTo");
|
|
64
|
+
const space = await resolveGoogleChatOutboundSpace({
|
|
65
|
+
account,
|
|
66
|
+
target: to
|
|
67
|
+
});
|
|
68
|
+
if (mediaUrl) {
|
|
69
|
+
const loaded = await loadGoogleChatActionMedia({
|
|
70
|
+
mediaUrl,
|
|
71
|
+
maxBytes: (account.config.mediaMaxMb ?? 20) * 1024 * 1024,
|
|
72
|
+
mediaAccess,
|
|
73
|
+
mediaLocalRoots,
|
|
74
|
+
mediaReadFile
|
|
75
|
+
});
|
|
76
|
+
const uploadFileName = readStringParam(params, "filename") ?? readStringParam(params, "title") ?? loaded.fileName ?? "attachment";
|
|
77
|
+
const upload = await uploadGoogleChatAttachment({
|
|
78
|
+
account,
|
|
79
|
+
space,
|
|
80
|
+
filename: uploadFileName,
|
|
81
|
+
buffer: loaded.buffer,
|
|
82
|
+
contentType: loaded.contentType
|
|
83
|
+
});
|
|
84
|
+
const sent = await sendGoogleChatMessage({
|
|
85
|
+
account,
|
|
86
|
+
space,
|
|
87
|
+
text: content,
|
|
88
|
+
thread: threadId ?? void 0,
|
|
89
|
+
attachments: upload.attachmentUploadToken ? [{
|
|
90
|
+
attachmentUploadToken: upload.attachmentUploadToken,
|
|
91
|
+
contentName: uploadFileName
|
|
92
|
+
}] : void 0
|
|
93
|
+
});
|
|
94
|
+
return jsonResult({
|
|
95
|
+
ok: true,
|
|
96
|
+
to: space,
|
|
97
|
+
...sent
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
if (action === "upload-file") throw new Error("upload-file requires media, filePath, or path");
|
|
101
|
+
const sent = await sendGoogleChatMessage({
|
|
102
|
+
account,
|
|
103
|
+
space,
|
|
104
|
+
text: content,
|
|
105
|
+
thread: threadId ?? void 0
|
|
106
|
+
});
|
|
107
|
+
return jsonResult({
|
|
108
|
+
ok: true,
|
|
109
|
+
to: space,
|
|
110
|
+
...sent
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
if (action === "react") {
|
|
114
|
+
const messageName = readStringParam(params, "messageId", { required: true });
|
|
115
|
+
const { emoji, remove, isEmpty } = readReactionParams(params, { removeErrorMessage: "Emoji is required to remove a Google Chat reaction." });
|
|
116
|
+
if (remove || isEmpty) {
|
|
117
|
+
const reactions = await listGoogleChatReactions({
|
|
118
|
+
account,
|
|
119
|
+
messageName
|
|
120
|
+
});
|
|
121
|
+
const appUsers = resolveAppUserNames(account);
|
|
122
|
+
const toRemove = reactions.filter((reaction) => {
|
|
123
|
+
const userName = reaction.user?.name?.trim();
|
|
124
|
+
if (appUsers.size > 0 && !appUsers.has(userName ?? "")) return false;
|
|
125
|
+
if (emoji) return reaction.emoji?.unicode === emoji;
|
|
126
|
+
return true;
|
|
127
|
+
});
|
|
128
|
+
for (const reaction of toRemove) {
|
|
129
|
+
if (!reaction.name) continue;
|
|
130
|
+
await deleteGoogleChatReaction({
|
|
131
|
+
account,
|
|
132
|
+
reactionName: reaction.name
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
return jsonResult({
|
|
136
|
+
ok: true,
|
|
137
|
+
removed: toRemove.length
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
const reaction = await createGoogleChatReaction({
|
|
141
|
+
account,
|
|
142
|
+
messageName,
|
|
143
|
+
emoji
|
|
144
|
+
});
|
|
145
|
+
return jsonResult({
|
|
146
|
+
ok: true,
|
|
147
|
+
reaction
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
if (action === "reactions") {
|
|
151
|
+
const messageName = readStringParam(params, "messageId", { required: true });
|
|
152
|
+
const limit = readPositiveIntegerParam(params, "limit");
|
|
153
|
+
const reactions = await listGoogleChatReactions({
|
|
154
|
+
account,
|
|
155
|
+
messageName,
|
|
156
|
+
limit: limit ?? void 0
|
|
157
|
+
});
|
|
158
|
+
return jsonResult({
|
|
159
|
+
ok: true,
|
|
160
|
+
reactions
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
throw new Error(`Action ${action} is not supported for provider ${providerId}.`);
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
//#endregion
|
|
167
|
+
export { googlechatMessageActions };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { l as resolveGoogleChatAccount } from "./channel-base-DJICAvKH.mjs";
|
|
2
|
+
import { d as normalizeGoogleChatTarget, u as isGoogleChatUserTarget } from "./channel.adapters-T6wPzrpo.mjs";
|
|
3
|
+
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
|
+
import { createResolvedApproverActionAuthAdapter, resolveApprovalApprovers } from "openclaw/plugin-sdk/approval-auth-runtime";
|
|
5
|
+
//#region extensions/googlechat/src/approval-auth.ts
|
|
6
|
+
function normalizeGoogleChatApproverId(value) {
|
|
7
|
+
const normalized = normalizeGoogleChatTarget(String(value));
|
|
8
|
+
if (!normalized || !isGoogleChatUserTarget(normalized)) return;
|
|
9
|
+
const suffix = normalizeLowercaseStringOrEmpty(normalized.slice(6));
|
|
10
|
+
if (!suffix || suffix.includes("@")) return;
|
|
11
|
+
return `users/${suffix}`;
|
|
12
|
+
}
|
|
13
|
+
function getGoogleChatApprovalApprovers(params) {
|
|
14
|
+
const account = resolveGoogleChatAccount(params).config;
|
|
15
|
+
return resolveApprovalApprovers({
|
|
16
|
+
allowFrom: account.dm?.allowFrom,
|
|
17
|
+
defaultTo: account.defaultTo,
|
|
18
|
+
normalizeApprover: normalizeGoogleChatApproverId
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
const googleChatApprovalAuth = createResolvedApproverActionAuthAdapter({
|
|
22
|
+
channelLabel: "Google Chat",
|
|
23
|
+
resolveApprovers: getGoogleChatApprovalApprovers,
|
|
24
|
+
normalizeSenderId: (value) => normalizeGoogleChatApproverId(value)
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { googleChatApprovalAuth as n, normalizeGoogleChatApproverId as r, getGoogleChatApprovalApprovers as t };
|
package/dist/{approval-handler.runtime-BJXVLK9y.js → .setup/approval-handler.runtime-DWNRBf9B.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as resolveGoogleChatAccount } from "./channel-base-
|
|
2
|
-
import {
|
|
3
|
-
import { n as isGoogleChatNativeApprovalClientEnabled, r as shouldHandleGoogleChatNativeApprovalRequest } from "./channel-
|
|
1
|
+
import { l as resolveGoogleChatAccount } from "./channel-base-DJICAvKH.mjs";
|
|
2
|
+
import { F as unregisterGoogleChatManualApprovalFollowupSuppression, M as registerGoogleChatManualApprovalFollowupSuppression, O as createGoogleChatApprovalToken, P as unregisterGoogleChatApprovalCardBindings, T as buildGoogleChatApprovalActionParameters, b as sendGoogleChatMessage, j as registerGoogleChatApprovalCardBinding, p as resolveGoogleChatOutboundSpace, w as GOOGLECHAT_APPROVAL_ACTION, x as updateGoogleChatMessage } from "./channel.adapters-T6wPzrpo.mjs";
|
|
3
|
+
import { n as isGoogleChatNativeApprovalClientEnabled, r as shouldHandleGoogleChatNativeApprovalRequest } from "./channel-BPjomke4.mjs";
|
|
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";
|
|
@@ -15,7 +15,7 @@ function resolveHandlerAccount(params) {
|
|
|
15
15
|
cfg: params.cfg,
|
|
16
16
|
accountId: params.accountId
|
|
17
17
|
});
|
|
18
|
-
if (!account.enabled || account.credentialSource === "none"
|
|
18
|
+
if (!account.enabled || account.credentialSource === "none") return null;
|
|
19
19
|
return account;
|
|
20
20
|
}
|
|
21
21
|
function escapeGoogleChatText(text) {
|
|
@@ -155,10 +155,9 @@ const googleChatApprovalNativeRuntime = createChannelApprovalNativeRuntimeAdapte
|
|
|
155
155
|
cfg,
|
|
156
156
|
accountId
|
|
157
157
|
}),
|
|
158
|
-
shouldHandle: ({ cfg, accountId,
|
|
158
|
+
shouldHandle: ({ cfg, accountId, request }) => shouldHandleGoogleChatNativeApprovalRequest({
|
|
159
159
|
cfg,
|
|
160
160
|
accountId,
|
|
161
|
-
approvalKind,
|
|
162
161
|
request
|
|
163
162
|
})
|
|
164
163
|
},
|
|
@@ -1,10 +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
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { n as
|
|
6
|
-
import { n as
|
|
7
|
-
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-BFYyuE0F.js";
|
|
1
|
+
import { c as resolveDefaultGoogleChatAccountId, l as resolveGoogleChatAccount, n as createGoogleChatPluginBase, s as listGoogleChatAccountIds, t as GOOGLECHAT_CHANNEL_ID } from "./channel-base-DJICAvKH.mjs";
|
|
2
|
+
import { a as googlechatPairingTextAdapter, d as normalizeGoogleChatTarget, f as resolveGoogleChatOutboundSessionRoute, i as googlechatOutboundAdapter, l as isGoogleChatSpaceTarget, n as googlechatGroupsAdapter, o as googlechatSecurityAdapter, r as googlechatMessageAdapter, s as googlechatThreadingAdapter, t as googlechatDirectoryAdapter, u as isGoogleChatUserTarget } from "./channel.adapters-T6wPzrpo.mjs";
|
|
3
|
+
import { a as buildChannelConfigSchema, r as GoogleChatConfigSchema, t as DEFAULT_ACCOUNT_ID } from "./runtime-api-BbVoWRxq.mjs";
|
|
4
|
+
import { n as googleChatApprovalAuth, r as normalizeGoogleChatApproverId, t as getGoogleChatApprovalApprovers } from "./approval-auth-CQP5ZS_f.mjs";
|
|
5
|
+
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-BcEqUZ4j.mjs";
|
|
6
|
+
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-lCMHqumt.mjs";
|
|
8
7
|
import { createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
|
|
9
8
|
import { buildPassiveProbedChannelStatusSummary } from "openclaw/plugin-sdk/extension-shared";
|
|
10
9
|
import { createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
|
|
@@ -15,13 +14,13 @@ import { CHANNEL_APPROVAL_NATIVE_RUNTIME_CONTEXT_CAPABILITY, createLazyChannelAp
|
|
|
15
14
|
import { createChannelApproverDmTargetResolver, createChannelNativeOriginTargetResolver, createNativeApprovalChannelRouteGates, shouldSuppressLocalNativeExecApprovalPrompt } from "openclaw/plugin-sdk/approval-native-runtime";
|
|
16
15
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
17
16
|
import { createAccountStatusSink, runPassiveAccountLifecycle } from "openclaw/plugin-sdk/channel-outbound";
|
|
18
|
-
import {
|
|
17
|
+
import { createDangerousNameMatchingMutableAllowlistWarningCollector } from "openclaw/plugin-sdk/channel-policy";
|
|
19
18
|
import { registerChannelRuntimeContext } from "openclaw/plugin-sdk/channel-runtime-context";
|
|
20
19
|
//#region extensions/googlechat/src/approval-native.ts
|
|
21
20
|
const DEFAULT_APPROVAL_FORWARDING_MODE = "session";
|
|
22
21
|
function isGoogleChatAccountConfigured(params) {
|
|
23
22
|
const account = resolveGoogleChatAccount(params);
|
|
24
|
-
return account.enabled && account.credentialSource !== "none"
|
|
23
|
+
return account.enabled && account.credentialSource !== "none";
|
|
25
24
|
}
|
|
26
25
|
function hasGoogleChatWebhookApprovalAuthConfig(params) {
|
|
27
26
|
const account = resolveGoogleChatAccount(params).config;
|
|
@@ -82,12 +81,29 @@ function shouldSuppressLocalGoogleChatExecApprovalPrompt(params) {
|
|
|
82
81
|
isNativeDeliveryEnabled: isGoogleChatNativeApprovalClientEnabled
|
|
83
82
|
});
|
|
84
83
|
}
|
|
84
|
+
const resolveGoogleChatOriginTarget = createChannelNativeOriginTargetResolver({
|
|
85
|
+
channel: "googlechat",
|
|
86
|
+
shouldHandleRequest: shouldHandleGoogleChatNativeApprovalRequest,
|
|
87
|
+
resolveTurnSourceTarget: resolveTurnSourceGoogleChatOriginTarget,
|
|
88
|
+
resolveSessionTarget: resolveSessionGoogleChatOriginTarget
|
|
89
|
+
});
|
|
90
|
+
const resolveGoogleChatApproverDmTargets = createChannelApproverDmTargetResolver({
|
|
91
|
+
shouldHandleRequest: shouldHandleGoogleChatNativeApprovalRequest,
|
|
92
|
+
resolveApprovers: getGoogleChatApprovalApprovers,
|
|
93
|
+
mapApprover: (approver, params) => {
|
|
94
|
+
const to = normalizeGoogleChatApproverId(approver);
|
|
95
|
+
return to ? {
|
|
96
|
+
to,
|
|
97
|
+
accountId: normalizeOptionalString(params.accountId)
|
|
98
|
+
} : null;
|
|
99
|
+
}
|
|
100
|
+
});
|
|
85
101
|
const googleChatApprovalCapability = createApproverRestrictedNativeApprovalCapability({
|
|
86
102
|
channel: "googlechat",
|
|
87
103
|
channelLabel: "Google Chat",
|
|
88
104
|
describeExecApprovalSetup: ({ accountId }) => {
|
|
89
105
|
const prefix = accountId && accountId !== "default" ? `channels.googlechat.accounts.${accountId}` : "channels.googlechat";
|
|
90
|
-
return `Approve it from the Web UI or terminal UI for now. Google Chat supports native approvals for this account when the webhook and service account are configured. Configure \`${prefix}.allowFrom\` or \`${prefix}.defaultTo\` with numeric \`users/{id}\` approvers.`;
|
|
106
|
+
return `Approve it from the Web UI or terminal UI for now. Google Chat supports native approvals for this account when the webhook and service account are configured. Configure \`${prefix}.dm.allowFrom\` or \`${prefix}.defaultTo\` with numeric \`users/{id}\` approvers.`;
|
|
91
107
|
},
|
|
92
108
|
listAccountIds: listGoogleChatAccountIds,
|
|
93
109
|
hasApprovers: ({ cfg, accountId }) => getGoogleChatApprovalApprovers({
|
|
@@ -112,59 +128,62 @@ const googleChatApprovalCapability = createApproverRestrictedNativeApprovalCapab
|
|
|
112
128
|
resolveNativeDeliveryMode: () => "channel",
|
|
113
129
|
requireMatchingTurnSourceChannel: true,
|
|
114
130
|
resolveSuppressionAccountId: ({ target, request }) => normalizeOptionalString(target.accountId) ?? normalizeOptionalString(request.request.turnSourceAccountId),
|
|
115
|
-
resolveOriginTarget:
|
|
116
|
-
|
|
117
|
-
shouldHandleRequest: shouldHandleGoogleChatNativeApprovalRequest,
|
|
118
|
-
resolveTurnSourceTarget: resolveTurnSourceGoogleChatOriginTarget,
|
|
119
|
-
resolveSessionTarget: resolveSessionGoogleChatOriginTarget
|
|
120
|
-
}),
|
|
121
|
-
resolveApproverDmTargets: createChannelApproverDmTargetResolver({
|
|
122
|
-
shouldHandleRequest: shouldHandleGoogleChatNativeApprovalRequest,
|
|
123
|
-
resolveApprovers: getGoogleChatApprovalApprovers,
|
|
124
|
-
mapApprover: (approver, params) => {
|
|
125
|
-
const to = normalizeGoogleChatApproverId(approver);
|
|
126
|
-
return to ? {
|
|
127
|
-
to,
|
|
128
|
-
accountId: normalizeOptionalString(params.accountId)
|
|
129
|
-
} : null;
|
|
130
|
-
}
|
|
131
|
-
}),
|
|
131
|
+
resolveOriginTarget: resolveGoogleChatOriginTarget,
|
|
132
|
+
resolveApproverDmTargets: resolveGoogleChatApproverDmTargets,
|
|
132
133
|
nativeRuntime: createLazyChannelApprovalNativeRuntimeAdapter({
|
|
133
134
|
eventKinds: ["exec", "plugin"],
|
|
134
135
|
isConfigured: ({ cfg, accountId }) => isGoogleChatNativeApprovalClientEnabled({
|
|
135
136
|
cfg,
|
|
136
137
|
accountId
|
|
137
138
|
}),
|
|
138
|
-
shouldHandle: ({ cfg, accountId,
|
|
139
|
+
shouldHandle: ({ cfg, accountId, request }) => shouldHandleGoogleChatNativeApprovalRequest({
|
|
139
140
|
cfg,
|
|
140
141
|
accountId,
|
|
141
|
-
approvalKind,
|
|
142
142
|
request
|
|
143
143
|
}),
|
|
144
|
-
load: async () => (await import("./approval-handler.runtime-
|
|
144
|
+
load: async () => (await import("./approval-handler.runtime-DWNRBf9B.mjs")).googleChatApprovalNativeRuntime
|
|
145
145
|
})
|
|
146
146
|
});
|
|
147
|
+
//#endregion
|
|
148
|
+
//#region extensions/googlechat/src/doctor.ts
|
|
149
|
+
function asObjectRecord(value) {
|
|
150
|
+
return value && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
151
|
+
}
|
|
152
|
+
function isGoogleChatMutableAllowEntry(raw) {
|
|
153
|
+
const text = raw.trim();
|
|
154
|
+
if (!text || text === "*") return false;
|
|
155
|
+
const withoutPrefix = text.replace(/^(googlechat|google-chat|gchat):/i, "").trim();
|
|
156
|
+
if (!withoutPrefix) return false;
|
|
157
|
+
return withoutPrefix.replace(/^users\//i, "").includes("@");
|
|
158
|
+
}
|
|
147
159
|
const collectGoogleChatMutableAllowlistWarnings = createDangerousNameMatchingMutableAllowlistWarningCollector({
|
|
148
160
|
channel: "googlechat",
|
|
149
|
-
detector:
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
161
|
+
detector: isGoogleChatMutableAllowEntry,
|
|
162
|
+
collectLists: (scope) => {
|
|
163
|
+
const lists = [{
|
|
164
|
+
pathLabel: `${scope.prefix}.groupAllowFrom`,
|
|
165
|
+
list: scope.account.groupAllowFrom
|
|
166
|
+
}];
|
|
167
|
+
const dm = asObjectRecord(scope.account.dm);
|
|
168
|
+
if (dm) lists.push({
|
|
169
|
+
pathLabel: `${scope.prefix}.dm.allowFrom`,
|
|
170
|
+
list: dm.allowFrom
|
|
171
|
+
});
|
|
172
|
+
const groups = asObjectRecord(scope.account.groups);
|
|
173
|
+
if (groups) for (const [groupKey, groupRaw] of Object.entries(groups)) {
|
|
174
|
+
const group = asObjectRecord(groupRaw);
|
|
175
|
+
if (!group) continue;
|
|
176
|
+
lists.push({
|
|
177
|
+
pathLabel: `${scope.prefix}.groups.${groupKey}.users`,
|
|
178
|
+
list: group.users
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
return lists;
|
|
182
|
+
}
|
|
164
183
|
});
|
|
165
184
|
//#endregion
|
|
166
185
|
//#region extensions/googlechat/src/gateway.ts
|
|
167
|
-
const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-
|
|
186
|
+
const loadGoogleChatChannelRuntime$1 = createLazyRuntimeNamedExport(() => import("./channel.runtime-CpT-qT67.mjs"), "googleChatChannelRuntime");
|
|
168
187
|
async function startGoogleChatGatewayAccount(ctx) {
|
|
169
188
|
const account = ctx.account;
|
|
170
189
|
const statusSink = createAccountStatusSink({
|
|
@@ -213,7 +232,7 @@ async function startGoogleChatGatewayAccount(ctx) {
|
|
|
213
232
|
statusSink
|
|
214
233
|
}),
|
|
215
234
|
stop: async (unregister) => {
|
|
216
|
-
|
|
235
|
+
unregister?.();
|
|
217
236
|
},
|
|
218
237
|
onStop: async () => {
|
|
219
238
|
markStopped();
|
|
@@ -226,22 +245,27 @@ async function startGoogleChatGatewayAccount(ctx) {
|
|
|
226
245
|
}
|
|
227
246
|
//#endregion
|
|
228
247
|
//#region extensions/googlechat/src/channel.ts
|
|
229
|
-
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-
|
|
248
|
+
const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-CpT-qT67.mjs"), "googleChatChannelRuntime");
|
|
230
249
|
const googlechatActions = {
|
|
231
250
|
describeMessageTool: ({ cfg, accountId }) => {
|
|
232
|
-
|
|
251
|
+
const accounts = accountId ? [resolveGoogleChatAccount({
|
|
233
252
|
cfg,
|
|
234
253
|
accountId
|
|
235
|
-
})].filter((account) => account.enabled && account.credentialSource !== "none"
|
|
254
|
+
})].filter((account) => account.enabled && account.credentialSource !== "none") : listGoogleChatAccountIds(cfg).map((id) => resolveGoogleChatAccount({
|
|
236
255
|
cfg,
|
|
237
256
|
accountId: id
|
|
238
|
-
})).filter((account) => account.enabled && account.credentialSource !== "none"
|
|
239
|
-
|
|
257
|
+
})).filter((account) => account.enabled && account.credentialSource !== "none");
|
|
258
|
+
if (accounts.length === 0) return null;
|
|
259
|
+
const actions = /* @__PURE__ */ new Set(["send", "upload-file"]);
|
|
260
|
+
if (accounts.some((account) => account.config.actions?.reactions !== false)) {
|
|
261
|
+
actions.add("react");
|
|
262
|
+
actions.add("reactions");
|
|
263
|
+
}
|
|
264
|
+
return { actions: Array.from(actions) };
|
|
240
265
|
},
|
|
241
|
-
supportsAction: ({ action }) => action === "send",
|
|
242
266
|
extractToolSend: ({ args }) => extractToolSend(args, "sendMessage"),
|
|
243
267
|
handleAction: async (ctx) => {
|
|
244
|
-
const { googlechatMessageActions } = await import("./actions-
|
|
268
|
+
const { googlechatMessageActions } = await import("./actions-DeT_GgtP.mjs");
|
|
245
269
|
if (!googlechatMessageActions.handleAction) throw new Error("Google Chat actions are not available.");
|
|
246
270
|
return await googlechatMessageActions.handleAction(ctx);
|
|
247
271
|
}
|
|
@@ -261,7 +285,6 @@ const googlechatPlugin = createChatChannelPlugin({
|
|
|
261
285
|
"google-chat",
|
|
262
286
|
"gchat"
|
|
263
287
|
],
|
|
264
|
-
targetIdComparison: "case-sensitive",
|
|
265
288
|
normalizeTarget: normalizeGoogleChatTarget,
|
|
266
289
|
resolveOutboundSessionRoute: (params) => resolveGoogleChatOutboundSessionRoute(params),
|
|
267
290
|
targetResolver: {
|
|
@@ -301,7 +324,7 @@ const googlechatPlugin = createChatChannelPlugin({
|
|
|
301
324
|
} },
|
|
302
325
|
actions: googlechatActions,
|
|
303
326
|
doctor: {
|
|
304
|
-
dmAllowFromMode: "
|
|
327
|
+
dmAllowFromMode: "nestedOnly",
|
|
305
328
|
groupModel: "route",
|
|
306
329
|
groupAllowFromFallbackToAllowFrom: false,
|
|
307
330
|
warnOnEmptyGroupSenderAllowlist: false,
|
|
@@ -348,12 +371,11 @@ const googlechatPlugin = createChatChannelPlugin({
|
|
|
348
371
|
configured: account.credentialSource !== "none",
|
|
349
372
|
extra: {
|
|
350
373
|
credentialSource: account.credentialSource,
|
|
351
|
-
tokenStatus: account.tokenStatus,
|
|
352
374
|
audienceType: account.config.audienceType,
|
|
353
375
|
audience: account.config.audience,
|
|
354
376
|
webhookPath: account.config.webhookPath,
|
|
355
377
|
webhookUrl: account.config.webhookUrl,
|
|
356
|
-
dmPolicy: account.config.
|
|
378
|
+
dmPolicy: account.config.dm?.policy ?? "pairing"
|
|
357
379
|
}
|
|
358
380
|
})
|
|
359
381
|
}),
|