()
| 13 | const ALERT_THRESHOLD = 100; |
| 14 | |
| 15 | async function ensureLogDirectory(): Promise<void> { |
| 16 | if (!existsSync(LOG_DIR)) { |
| 17 | await mkdir(LOG_DIR, { recursive: true }); |
| 18 | console.log(`📁 Created log directory: ${LOG_DIR}`); |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | async function playAlertSound(): Promise<void> { |
| 23 | try { |