Skip to content

Commit

Permalink
Merge pull request #626 from the-draupnir-project/gnuxie/config-messi…
Browse files Browse the repository at this point in the history
…ng-about

Remove old protection settings config from all protections. This is a change in matrix-protection-suite 2.0 where replace protection settings have been replaced by the new `ConfigDescription`.

We've also added a protections show command which will show a summary of the protection's config and configured capability providers. 

the-draupnir-project/planning#35

![Screenshot_20241126_135802](https://github.com/user-attachments/assets/b856f190-6c84-4a11-a28f-48edc39afa3d)
  • Loading branch information
Gnuxie authored Nov 28, 2024
2 parents c2786e2 + e53d178 commit 47c2d5a
Show file tree
Hide file tree
Showing 20 changed files with 430 additions and 235 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
"jsdom": "^24.0.0",
"matrix-appservice-bridge": "^10.3.1",
"matrix-bot-sdk": "npm:@vector-im/matrix-bot-sdk",
"matrix-protection-suite": "npm:@gnuxie/matrix-protection-suite@1.7.0",
"matrix-protection-suite-for-matrix-bot-sdk": "npm:@gnuxie/matrix-protection-suite-for-matrix-bot-sdk@1.7.0",
"matrix-protection-suite": "npm:@gnuxie/matrix-protection-suite@2.0.0",
"matrix-protection-suite-for-matrix-bot-sdk": "npm:@gnuxie/matrix-protection-suite-for-matrix-bot-sdk@2.0.0",
"parse-duration": "^1.0.2",
"pg": "^8.8.0",
"shell-quote": "^1.7.3",
Expand Down
2 changes: 2 additions & 0 deletions src/commands/DraupnirCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import {
} from "./WatchUnwatchCommand";
import { DraupnirTopLevelCommands } from "./DraupnirCommandTable";
import { DraupnirSafeModeCommand } from "./SafeModeCommand";
import { DraupnirProtectionsShowCommand } from "./ProtectionsShowCommand";

// TODO: These commands should all be moved to subdirectories tbh and this
// should be split like an index file for each subdirectory.
Expand Down Expand Up @@ -83,6 +84,7 @@ const DraupnirCommands = new StandardCommandTable("draupnir")
"config",
"set",
])
.internCommand(DraupnirProtectionsShowCommand, ["protections", "show"])
.internCommand(DraupnirRedactCommand, ["redact"])
.internCommand(DraupnirResolveAliasCommand, ["resolve"])
.internCommand(DraupnirListProtectedRoomsCommand, ["rooms"])
Expand Down
Loading

0 comments on commit 47c2d5a

Please sign in to comment.