feat: add codex review failover and suppress output hardening

This commit is contained in:
Eyejoker
2026-03-28 05:40:38 +09:00
parent d1c693fb17
commit ba9f6871b6
49 changed files with 3884 additions and 1763 deletions

View File

@@ -92,3 +92,15 @@ export function findChannel(
): Channel | undefined {
return channels.find((c) => c.ownsJid(jid));
}
/**
* Normalize message text for deduplication comparison.
* - Trim leading/trailing whitespace
* - Collapse consecutive whitespace/newlines into single space
*/
export function normalizeMessageForDedupe(text: string): string {
return text
.trim()
.replace(/\s+/g, ' ')
.toLowerCase();
}