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
1 Commits
Author SHA1 Message Date
JakeHillion c51432291e Add chat abstraction layer to decouple bot from Matrix SDK
CI / nix (push) Successful in 2m31s
- 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.
2026-03-02 00:08:53 +00:00