Matrix command handling — receive and dispatch @mosaic commands #381
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Wire MatrixService to receive messages from Matrix rooms, parse commands via the shared CommandParser, and dispatch to StitcherService — identical flow to Discord bridge.
Implementation
Message Reception
MatrixService sync loop receives
m.room.messageevents. Filter for:!mosaic)Command Flow
Command Prefix
@mosaic(mention-based)@mosaic:homeserver(mention) and!mosaic(text prefix)Thread Handling
Matrix supports threads (MSC3440, stable since Synapse 1.67). When a job is created:
createThread()/sendThreadMessage()in IChatProviderAcceptance Criteria
!mosaic helpreturns command listRefs
apps/api/src/bridge/parser/command-parser.service.tsapps/api/src/bridge/discord/discord.service.ts(line 59+)Completed in commit
ad24720on branch feature/m12-matrix-bridge.