refactor!: rename chat providers to channels

This commit is contained in:
Peter Steinberger
2026-01-13 06:16:43 +00:00
parent 0cd632ba84
commit 90342a4f3a
393 changed files with 8004 additions and 6737 deletions

View File

@@ -21,7 +21,7 @@ describe("resolveSendPolicy", () => {
expect(resolveSendPolicy({ cfg, entry })).toBe("deny");
});
it("rule match by provider + chatType", () => {
it("rule match by channel + chatType", () => {
const cfg = {
session: {
sendPolicy: {
@@ -29,7 +29,7 @@ describe("resolveSendPolicy", () => {
rules: [
{
action: "deny",
match: { provider: "discord", chatType: "group" },
match: { channel: "discord", chatType: "group" },
},
],
},
@@ -38,7 +38,7 @@ describe("resolveSendPolicy", () => {
const entry: SessionEntry = {
sessionId: "s",
updatedAt: 0,
provider: "discord",
channel: "discord",
chatType: "group",
};
expect(