feat(cli): add telegram channel adapter, scoped bridge config, and diagnostics#110
Closed
cdenneen wants to merge 28 commits intohappier-dev:devfrom
Closed
feat(cli): add telegram channel adapter, scoped bridge config, and diagnostics#110cdenneen wants to merge 28 commits intohappier-dev:devfrom
cdenneen wants to merge 28 commits intohappier-dev:devfrom
Conversation
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.
This PR is stacked on top of PR1 (channel bridge core).
Please review against base branch:
feat/channel-bridge-core.Summary
This PR adds Telegram support on top of the provider-agnostic channel bridge core, including:
What’s Included
Telegram adapter + runtime wiring
apps/cli/src/channels/telegram/telegramAdapter.tsapps/cli/src/channels/telegram/telegramAdapter.test.tsapps/cli/src/channels/telegram/telegramWebhookRelay.tsapps/cli/src/channels/telegram/telegramWebhookRelay.test.tsapps/cli/src/channels/startChannelBridgeWorker.tsapps/cli/src/channels/startChannelBridgeWorker.test.tsScoped bridge configuration + persistence
apps/cli/src/channels/channelBridgeAccountConfig.tsapps/cli/src/channels/channelBridgeConfig.tsapps/cli/src/channels/channelBridgeServerKv.tsapps/cli/src/channels/channelBridgeServerConfigOverlay.tsapps/cli/src/channels/channelBindingStore.server.tsCLI management
happier bridgecommand group:apps/cli/src/cli/commands/bridge.tsapps/cli/src/cli/commands/bridge.test.tsapps/cli/src/cli/commandRegistry.tsapps/cli/src/cli/dispatch.tsSecurity / Secret Handling
Implemented local-only secret policy for bridge credentials:
botToken/webhookSecretstay local (settings.json/ env)This establishes the same pattern for future adapters (Discord/Slack/WhatsApp/etc).
Doctor Diagnostics Improvements
Updated doctor behavior to surface bridge health as real pass/fail:
✅ Doctor diagnosis complete!only when no critical failures❌ Doctor diagnosis complete!when any critical failure existswebhook.enabled=true:webhook.secretwebhook.hostwebhook.portDocumentation
docs/telegram-channel-bridge.mddocs/channel-bridge-uat.mdREADME.mdScreenshot evidence
Tests
Added/updated focused tests across:
Representative files:
apps/cli/src/channels/channelBridgeAccountConfig.test.tsapps/cli/src/channels/channelBridgeConfig.test.tsapps/cli/src/channels/channelBridgeServerKv.test.tsapps/cli/src/channels/channelBridgeServerConfigOverlay.test.tsapps/cli/src/channels/channelBindingStore.server.test.tsapps/cli/src/channels/startChannelBridgeWorker.test.tsapps/cli/src/channels/telegram/telegramAdapter.test.tsapps/cli/src/channels/telegram/telegramWebhookRelay.test.tsapps/cli/src/cli/commands/bridge.test.tsapps/cli/src/ui/doctor.test.tsSuggestions:
Summary by CodeRabbit
New Features
Documentation
Improvements
Tests