Conversation
Add a full XMPP channel implementation (crates/xmpp/) using tokio-xmpp v5, with feature parity to the Telegram channel. Refactor the gateway to support multiple channel types via ChannelRegistry instead of hardcoding Telegram. Phase A — Gateway refactoring: - GatewayServices: outbound map is now HashMap<String, Arc<dyn ChannelOutbound>> - LiveChannelService: uses ChannelRegistry instead of TelegramPlugin directly - deliver_channel_replies: dynamic outbound lookup by channel_type - Session labels: use channel name instead of hardcoded "Telegram" - ChannelsConfig: add xmpp field alongside telegram - server.rs: create and wire both plugins via ChannelRegistry Phase B — XMPP crate (crates/xmpp/): - config.rs: XmppAccountConfig with DM/group policies, MUC rooms, per-room overrides (MucRoomConfig), mention modes, allowlists - state.rs: AccountState with mpsc::Sender for outbound stanzas - stanza.rs: helpers for building XMPP stanzas with minidom 0.18 NcName API - plugin.rs: XmppPlugin implementing ChannelPlugin + ChannelStatus - outbound.rs: XmppOutbound implementing ChannelOutbound (text chunking, chat vs groupchat routing, typing indicators, media via OOB) - client.rs: tokio-xmpp event loop with auto-reconnect, MUC auto-join - handlers.rs: inbound stanza routing (message/presence/iq), self-echo filtering, slash command interception, chat session dispatch - access.rs: XMPP access control with per-room config, domain wildcards - XEP modules: MUC (0045), Chat States (0085), OOB (0066), Reactions (0444), HTTP Upload (0363) Phase C — Per-room overrides: - ChannelMessageMeta extended with room_system_prompt and room_skills - XMPP handler populates from MucRoomConfig 61 tests in the XMPP crate, all passing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
# Conflicts: # Cargo.lock # crates/gateway/Cargo.toml
Add docs/src/xmpp.md covering setup, configuration (access control, per-room overrides, media limits), supported XEPs, and troubleshooting. Update SUMMARY.md, configuration.md, and CHANGELOG.md. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
# Conflicts: # CHANGELOG.md # Cargo.lock # crates/gateway/Cargo.toml # crates/gateway/src/channel.rs # crates/gateway/src/chat.rs # crates/gateway/src/services.rs # crates/telegram/src/plugin.rs
- Fix clippy needless_update in prompt.rs test - Biome reformat of biome.json Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
# Conflicts: # CHANGELOG.md # Cargo.lock # Cargo.toml # crates/gateway/Cargo.toml # crates/gateway/src/chat.rs
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
crates/xmpp/) usingtokio-xmppv5, with feature parity to the Telegram channelChannelRegistryGateway refactoring (Phase A)
GatewayServicesoutbound map →HashMap<String, Arc<dyn ChannelOutbound>>LiveChannelService→ usesChannelRegistryinstead ofTelegramPlugindirectlydeliver_channel_replies→ dynamic outbound lookup bychannel_typeChannelsConfiggainsxmppfield alongsidetelegramXMPP crate (Phase B)
plugin.rs:XmppPluginimplementingChannelPlugin+ChannelStatusoutbound.rs: text chunking, chat/groupchat routing, typing, media via OOBclient.rs: tokio-xmpp event loop with auto-reconnect, MUC auto-joinhandlers.rs: inbound stanza routing, self-echo filtering, slash commandsaccess.rs: DM/group policies, per-room config, domain wildcard matchingPer-room overrides (Phase C)
ChannelMessageMetaextended withroom_system_promptandroom_skillsTest plan
cargo +nightly fmt --all— passescargo +nightly clippy --all-targets -- -D warnings— zero warningscargo test— all tests pass (61 new XMPP tests, 936+ total)moltis.toml, connect to ejabberd/Prosody, verify 1:1 and MUC messaging🤖 Generated with Claude Code