Add chat abstraction layer to decouple bot from Matrix SDK #45

Closed
JakeHillion wants to merge 1 commits from feature/bb484d53 into main
pull from: feature/bb484d53
Owner
  • Implement ChatApi trait with management_room() and feature_room() methods
  • Implement Room trait with send_message() method
  • Add ChatEvent channel for decoupled message handling (Message and PollResponse variants)
  • Add MatrixChat implementation that looks up rooms by name pattern
  • Add MatrixRoom wrapper for sending messages via Matrix SDK
  • Add process_chat_events() task that handles messages via ChatApi abstraction
  • Update bot to spawn chat event processor alongside sync loop

This provides a semantic interface (repo names, branch names) instead of
direct Matrix room IDs, allowing the bot logic to be independent of
Matrix SDK specifics.

- Implement ChatApi trait with management_room() and feature_room() methods - Implement Room trait with send_message() method - Add ChatEvent channel for decoupled message handling (Message and PollResponse variants) - Add MatrixChat implementation that looks up rooms by name pattern - Add MatrixRoom wrapper for sending messages via Matrix SDK - Add process_chat_events() task that handles messages via ChatApi abstraction - Update bot to spawn chat event processor alongside sync loop This provides a semantic interface (repo names, branch names) instead of direct Matrix room IDs, allowing the bot logic to be independent of Matrix SDK specifics.
JakeHillion force-pushed feature/bb484d53 from 1ba563bff7 to 3a16700092 2026-02-27 14:59:22 +00:00 Compare
JakeHillion force-pushed feature/bb484d53 from 3a16700092 to e34097a700 2026-02-28 18:31:43 +00:00 Compare
JakeHillion force-pushed feature/bb484d53 from e34097a700 to c51432291e 2026-03-02 00:12:01 +00:00 Compare
JakeHillion closed this pull request 2026-06-05 16:17:51 +01:00

Pull request closed

This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: JakeHillion/async-coder#45