1.8 KiB
1.8 KiB
Google Chat Channel Adapter Checklist
Date: 2026-02-16 Status: completed
Scope
- Add a first-class Google Chat channel adapter.
- Support inbound event handling and outbound message replies through Google Chat REST API.
Completed
- Added
GoogleChatAdapterinsrc/channels/googleChat/adapter.ts:- inbound webhook handling for
POST /google-chat/events - optional webhook token validation (
google_chat.webhook_token) - mention-aware room message gating with DM bypass
- optional space allowlist (
allowed_space_names) - outbound send to
chat.googleapis.comusing service-account OAuth token flow - reply routing via encoded
metadata.replyPeerId
- inbound webhook handling for
- Registered channel exports:
src/channels/googleChat/index.tssrc/channels/index.ts
- Added config schema support in
src/config/schema.ts:google_chat.service_account_key_filegoogle_chat.service_account_jsongoogle_chat.webhook_tokengoogle_chat.allowed_space_namesgoogle_chat.require_mention
- Wired daemon + gateway integration:
- registration in
src/daemon/channels.ts - gateway Google Chat route handling in
src/gateway/server.ts(POST /google-chat/events)
- registration in
- Updated service discovery + docs:
src/gateway/handlers/services.tsREADME.mdconfig/default.yamldocs/api/PROTOCOL.md- redaction coverage for
service_account_jsoninsrc/cli/shared.ts
- Added tests:
src/channels/googleChat/adapter.test.tssrc/config/schema.test.ts(google_chat schema coverage)src/gateway/handlers/services.test.ts(google_chat service status)src/cli/shared.test.ts(service_account_json redaction)
Verification
pnpm test:run src/channels/googleChat/adapter.test.ts src/config/schema.test.ts src/gateway/handlers/services.test.ts src/cli/shared.test.tspnpm typecheck