/**
 * Cron script: check-due-events
 *
 * Platform heartbeat — runs every minute via cron. Finds events whose time
 * has arrived and marks them appropriately:
 *
 * - One-time events: set eventStatus = 'due'
 * - Recurring events: set lastTriggered, advance nextRun, append trigger note
 *   (status stays 'scheduled' to avoid orphaning)
 *
 * If an event carries an action (actionPlugin + actionTool), the corresponding
 * MCP tool is dispatched after the event is updated. Dispatch happens AFTER
 * the nextRun/status update so a failed dispatch never blocks the event.
 *
 * PID lock at $HOME/{configDir}/check-due-events.lock prevents overlapping runs.
 *
 *   PLATFORM_ROOT=... node dist/scripts/check-due-events.js
 */
export {};
//# sourceMappingURL=check-due-events.d.ts.map