Commit Graph
765 Commits
Author SHA1 Message Date
gnuxie b1dbfbba22 use MPS ClientPlatform to use preemptive joiner in Rooms commands. 2024-04-06 20:03:35 +01:00
gnuxie 426879fb68 Give commands access to MPS ClientPlatform. 2024-04-06 20:03:35 +01:00
gnuxie 4366a6df46 MPS ActionError['addContext'] got renamed to elaborate. 2024-04-06 20:03:35 +01:00
gnuxie 7aca44167f Fix: wrong event type was being given for watched policy lists data. 2024-04-06 20:03:35 +01:00
gnuxie b8606ce073 Make CreateBanListCommand consistent with Mjolnir again.
This was changed during MPS work, it won't work like this anyways,
since we need the alias name, not the fully qualified alias.
2024-04-06 20:03:35 +01:00
gnuxie bf6f27e079 Fix StatusCommand accidentally returning a promise. 2024-04-06 20:03:35 +01:00
gnuxie 73f2910b8e Stop stripping prefixes in CommandHandler, they're already stripped. 2024-04-06 20:03:35 +01:00
gnuxie ac4c447637 Start client in manual launch script.
Not doing this would just cause draupnir to exit.
2024-04-06 20:03:35 +01:00
gnuxie 9658f39769 Add <span> to DeadDocument. 2024-04-06 20:03:35 +01:00
gnuxie 34114353a8 Update for MPS ProtectionFailedToStartCB changing.
We added the protectionName to the callback.
2024-04-06 20:03:35 +01:00
gnuxie 5c61bc2626 Make errors more obvious at Draupnir MPS startup. 2024-04-06 20:03:35 +01:00
gnuxie 1d94599c68 Ensure sure we join the management room at startup. 2024-04-06 20:03:35 +01:00
gnuxie 7128e3f10c Update for changes to Mjolnir AccountData in MPS. 2024-04-06 20:03:35 +01:00
gnuxie fdc396c386 Fix missing designators in protections and power level commands. 2024-04-06 20:03:35 +01:00
gnuxie 8dadea7532 Fix inverted boolean expression for validating managementRoomID. 2024-04-06 20:03:35 +01:00
gnuxie c6f198303d Start fixes to dev environment 2024-04-06 20:03:35 +01:00
gnuxie 1a37134459 Ensure the enabled BanPropagationProtection by default (MPS).
We needed to add support that enabled this into MPS.
the `MatrixDataManager` has been removed because it is
redundant with the `SchemedDataManager` from MPS.
2024-04-06 20:03:35 +01:00
gnuxie a21f2682d3 Update for MPS's removal of StateTrackingMeta. 2024-04-06 20:03:35 +01:00
gnuxie 46ae7c24c6 Update DefaultTrackingMeta switching packages in MPS. 2024-04-06 20:03:35 +01:00
gnuxie ea4cdd0dda Web API's use MPS event and room IDs.
Still need to figure out the plumbing of starting this and the report poller
in integration tests and from index without being started from Draupnir's class.
2024-04-06 20:03:34 +01:00
gnuxie 3050fc6f22 Remove event emitter from ReportManager. 2024-04-06 20:03:34 +01:00
gnuxie 069dec2b9d Update for MPS 0.9.1. 2024-04-06 20:03:34 +01:00
gnuxie 1884e1b456 Hook the appservice bot into the reaction handler for prompts. 2024-04-06 20:03:34 +01:00
gnuxie fb8f76906b PromptForAccept refactor.
We had to change the old prompt for accept since it depended on the matrix emitter.
In order to remove the dependence on the event emitter, then we had to get
rid of the entire continuation which waits for the prompt and make it entirely
event driven instead.

Changes made while here were also emoji for numbres and no longer having timeout
for prompt arguments.
2024-04-06 20:03:34 +01:00
gnuxie 40f3ad4742 Try fixing prompt for accept TBC...
We need to make commands that need a prompt to fail with an error
and then we can create a prompt which basically invokes
the command again + the new argument.
2024-04-06 20:03:34 +01:00
gnuxie 8d8cb0fe40 Update commands for removal of MPS managerManager. 2024-04-06 20:03:34 +01:00
gnuxie fa499a49c3 AppService commands should use draupnir manager. 2024-04-06 20:03:34 +01:00
gnuxie e72f3d1521 Update AppService command handler. 2024-04-06 20:03:34 +01:00
gnuxie 887e6f6772 AppService: resolve config.adminRoom correctly.
There should really be a dedicated config parser for both appservice
and bot config.
2024-04-06 20:03:34 +01:00
gnuxie 4957793773 AppService: eslint. 2024-04-06 20:03:34 +01:00
gnuxie 207be66977 AppService: Inform ClientsInRoomMap and RoomStateManagerFactory of events. 2024-04-06 20:03:34 +01:00
gnuxie 468f1846b0 bot mode: ClientsInRoomMap and RoomStateManager are given events. 2024-04-06 20:03:34 +01:00
gnuxie eecb074ac8 introduce draupnir factory and manager.
These are used to create draupnirs and then inform draupnirs of
new events. The draupnir manager is also used to start/stop draupnirs
for the appservice
2024-04-06 20:03:34 +01:00
gnuxie e46e355050 Update to MPS 0.9.0. 2024-04-06 20:03:34 +01:00
gnuxie aeb0aedc02 Draupnir has complete ClientRooms before instantiation. 2024-04-06 20:03:34 +01:00
gnuxie e62735be0c Still messing with ClientRooms. 2024-04-06 20:03:34 +01:00
gnuxie 0a4b50634b Attempting to create DraupnirFactory. 2024-04-06 20:03:34 +01:00
gnuxie 7ccfbadd5e Update DraupnirBotMode for new MPS SetRoomState. 2024-04-06 20:03:34 +01:00
gnuxie ab25f08048 AppService: update list command for MPS. 2024-04-06 20:03:34 +01:00
gnuxie 719bde9e94 AppService: update AppserviceCommandHandler for MPS. 2024-04-06 20:03:34 +01:00
gnuxie 9d4f140295 Update AppserviceBotEmitter for MPS. 2024-04-06 20:03:34 +01:00
gnuxie 0526093ce3 AppService: Update AccessControl commands for MPS.
And the updated AccessControl class which now also uses MPS.
2024-04-06 20:03:34 +01:00
gnuxie 32778d91b3 AppService: Update AccessControl for MPS. 2024-04-06 20:03:34 +01:00
gnuxie 2225a9580f Update Queues for MPS.
It's unclear if these are fit for purpose, plugged into
the new Draupnir class or working. Needs investigating in a follow up.
2024-04-06 20:03:34 +01:00
gnuxie d3618ea814 fix utils.ts for MPS. 2024-04-06 20:03:34 +01:00
gnuxie 6885b7bbaf cleanup unused imports in MatrixInterfaceAdaptar. 2024-04-06 20:03:34 +01:00
gnuxie 11839e346b Remove Mjolnir's ProtectionManager (MPS has made it redundant). 2024-04-06 20:03:34 +01:00
gnuxie a17625ac8f Update CommandHandler and Help for migrated commands. 2024-04-06 20:03:34 +01:00
gnuxie 9b48a48c44 UNFINISHED: start moving permission check command to MPS. 2024-04-06 20:03:34 +01:00
gnuxie a6b2179b01 Update Protections Commands for MPS.
Values will not be parsed as JSON yet, needs fixing.
2024-04-06 20:03:34 +01:00