show running process in process viewer and add limiting to the notification system

This commit is contained in:
KingKDot
2026-05-16 23:19:46 -05:00
parent e2ef4a375f
commit d691c5b804
11 changed files with 207 additions and 3 deletions
+18
View File
@@ -41,6 +41,9 @@ export interface Config {
telegramBotToken: string;
telegramChatId: string;
clipboardEnabled: boolean;
antiSpamMaxHits: number;
antiSpamWindowMs: number;
antiSpamCooldownMs: number;
};
security: {
sessionTtlHours: number;
@@ -117,6 +120,9 @@ const DEFAULT_CONFIG: Config = {
telegramBotToken: "",
telegramChatId: "",
clipboardEnabled: false,
antiSpamMaxHits: 15,
antiSpamWindowMs: 600000,
antiSpamCooldownMs: 600000,
},
security: {
sessionTtlHours: 168,
@@ -438,6 +444,18 @@ export function loadConfig(): Config {
String(process.env.OVERLORD_NOTIFICATION_CLIPBOARD_ENABLED || "").toLowerCase() === "true" ||
fileConfig.notifications?.clipboardEnabled ||
DEFAULT_CONFIG.notifications.clipboardEnabled,
antiSpamMaxHits:
Number(process.env.OVERLORD_NOTIFICATION_ANTISPAM_MAX_HITS) ||
fileConfig.notifications?.antiSpamMaxHits ||
DEFAULT_CONFIG.notifications.antiSpamMaxHits,
antiSpamWindowMs:
Number(process.env.OVERLORD_NOTIFICATION_ANTISPAM_WINDOW_MS) ||
fileConfig.notifications?.antiSpamWindowMs ||
DEFAULT_CONFIG.notifications.antiSpamWindowMs,
antiSpamCooldownMs:
Number(process.env.OVERLORD_NOTIFICATION_ANTISPAM_COOLDOWN_MS) ||
fileConfig.notifications?.antiSpamCooldownMs ||
DEFAULT_CONFIG.notifications.antiSpamCooldownMs,
},
security: {
sessionTtlHours: