Commit Graph

739 Commits

Author SHA1 Message Date
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
gnuxie 3798883466 Update BanPropagationProtection for updated Rules command. 2024-04-06 20:03:33 +01:00
gnuxie b06dcdc8bd Update protections for new consequence provider descriptions 2024-04-06 20:03:33 +01:00
gnuxie 4110b62a8a Decide we're not going to do status protection command yet. 2024-04-06 20:03:33 +01:00
gnuxie 48351fc3fe Update watch/unwatch commands for MPS. 2024-04-06 20:03:33 +01:00
gnuxie d175f1d7f4 Update Unban command for MPS. 2024-04-06 20:03:33 +01:00
gnuxie 072ee49e31 Update Rules command for MPS. 2024-04-06 20:03:33 +01:00
gnuxie 0d39ab3b99 Update rooms commands to MPS. 2024-04-06 20:03:33 +01:00
gnuxie 2fd2745dc3 Update ManagementRoomOutput for MPS. 2024-04-06 20:03:33 +01:00
gnuxie 87c09d8719 Correctly configure package.json for MPS.
This has taken forever to get working, but now it is.
index.ts is changed because that's how we know
we've overriden the bot-sdk dep correctly.
2024-04-06 20:03:33 +01:00
gnuxie f1d98b579a Port joinOnInvite listener from Mjolnir to Draupnir. 2024-04-06 20:03:33 +01:00
gnuxie fc163edb3e Remove status command from protections for now.
We will replace them with protection specific command tables later.
2024-04-06 20:03:33 +01:00
gnuxie e710f99286 Update BasicFlooding protection for protection settings changes. 2024-04-06 20:03:33 +01:00
gnuxie 03ed39dd69 Refactor TrustedReporters for MPS. 2024-04-06 20:03:33 +01:00
gnuxie 342ef16be6 Consequences are now replaced by MPS consequence providers. 2024-04-06 20:03:33 +01:00
gnuxie 4b415410a9 Remove detect federation lag command.
This is a pretty bold piece of work and it's a shame to remove it for
now.
We would like to bring it back, possibly as a protection.
However, there isn't the time while we move over to the new MPS backend.
2024-04-06 20:03:33 +01:00
gnuxie 11dc0506f2 Remove sync command.
It no longer makes sense to have a sync command since
all synchornisation is done by protections.
So it might come back just not in its current form.
2024-04-06 20:03:33 +01:00
gnuxie 34133f6e8c Remove since command
Much like the joins command, this needs rewriting to use
`SetMembership` from MPS and there isn't the time to do that
right now.
These commands didn't seem to work as intended anyway.
2024-04-06 20:03:33 +01:00
gnuxie a9bde39a0a Remove default banlist command.
In reality this sets a default shortcode,
and for the moment we aren't able to work with shortcodes.

I don't know if it makes sense to bring this command back
in future because we would like to instead have
the ban propagation protection have a setting
for a list to fill client bans directly into.
2024-04-06 20:03:33 +01:00
gnuxie cb942365b3 Remove JoinsCommand.
There isn't the time to make this work at the moment.
It should be brought back later and made to use the `SetMembership`
component from MPS.
2024-04-06 20:03:33 +01:00
gnuxie a370f0f4b4 Begin moving protections over to MPS protections. 2024-04-06 20:03:33 +01:00
gnuxie 89bede86c3 Begin moving most commands to interface-manager and MPS. 2024-04-06 20:03:33 +01:00
gnuxie 67b4c31cce Move resolve command other to interface-manager and MPS. 2024-04-06 20:03:33 +01:00
gnuxie 6fb0584260 Move kick command over to interface-manager and MPS. 2024-04-06 20:03:33 +01:00
gnuxie 4d054f4345 Begin moving all commands over to interface-manager and MPS. 2024-04-06 20:03:33 +01:00
gnuxie 8fbec62df7 Command Context should have MatrixSendClient. 2024-04-06 20:03:33 +01:00
gnuxie f6771b06cf Add MatrixEventReference to presentation types. 2024-04-06 20:03:33 +01:00