add regex support and clipboard support to notification center

This commit is contained in:
KingKDot
2026-03-18 23:46:44 -05:00
parent a73707c930
commit 6c7a71533c
15 changed files with 295 additions and 31 deletions
+6
View File
@@ -39,6 +39,7 @@ export interface Config {
telegramEnabled: boolean;
telegramBotToken: string;
telegramChatId: string;
clipboardEnabled: boolean;
};
security: {
sessionTtlHours: number;
@@ -88,6 +89,7 @@ const DEFAULT_CONFIG: Config = {
telegramEnabled: false,
telegramBotToken: "",
telegramChatId: "",
clipboardEnabled: false,
},
security: {
sessionTtlHours: 168,
@@ -366,6 +368,10 @@ export function loadConfig(): Config {
process.env.OVERLORD_NOTIFICATION_TELEGRAM_CHAT_ID ||
fileConfig.notifications?.telegramChatId ||
DEFAULT_CONFIG.notifications.telegramChatId,
clipboardEnabled:
String(process.env.OVERLORD_NOTIFICATION_CLIPBOARD_ENABLED || "").toLowerCase() === "true" ||
fileConfig.notifications?.clipboardEnabled ||
DEFAULT_CONFIG.notifications.clipboardEnabled,
},
security: {
sessionTtlHours: