feat: add Google Chat channel with Pub/Sub pull, Cards V2, Drive upload#196
Open
duhd-vnpay wants to merge 1 commit intonextlevelbuilder:mainfrom
Open
feat: add Google Chat channel with Pub/Sub pull, Cards V2, Drive upload#196duhd-vnpay wants to merge 1 commit intonextlevelbuilder:mainfrom
duhd-vnpay wants to merge 1 commit intonextlevelbuilder:mainfrom
Conversation
Implements Google Chat as a new channel type (google_chat) in GoClaw: - Service Account JWT auth with auto-refresh (no Google client libs) - Pub/Sub REST pull loop for inbound messages with dedup cache - Markdown → Google Chat text format conversion (bold, italic, links) - Cards V2 for tables/structured content - Byte-aware chunking for Vietnamese/CJK (3900-byte safety limit) - Drive upload for long-form responses with retention cleanup - Thread routing for group conversations - Placeholder edit pattern (Thinking... → final response) - Exponential backoff retry on 429/5xx - 28 unit tests, all passing Co-Authored-By: Claude Opus 4.6 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Full Google Chat channel integration using pure HTTP (no Google client libraries):
ChannelFactorypattern for DB-instance hot-reload, config-file fallback registrationNew Files (14)
internal/channels/googlechat/constants.gointernal/channels/googlechat/auth.gointernal/channels/googlechat/auth_test.gointernal/channels/googlechat/format.gointernal/channels/googlechat/format_test.gointernal/channels/googlechat/pubsub.gointernal/channels/googlechat/pubsub_test.gointernal/channels/googlechat/media.gointernal/channels/googlechat/send.gointernal/channels/googlechat/send_test.gointernal/channels/googlechat/googlechat.gointernal/channels/googlechat/factory.gointernal/channels/googlechat/webhook.gointernal/channels/googlechat/stream.goModified Files (4)
internal/channels/channel.goTypeGoogleChat = "google_chat"internal/config/config_channels.goGoogleChatConfigstruct (18 fields)cmd/gateway_channels_setup.gocmd/gateway.goTest Results (28/28 PASS)
Test plan
go build ./...compiles cleanlygo test ./internal/channels/googlechat/...passes (28 tests)🤖 Generated with Claude Code