/** * Dispatcher script: check-due-events * * Heartbeat dispatcher. The installer registers one install-level cron entry * (`# BEGIN CRONS` block, src/cron-registration.ts) that runs this * binary once a minute; it also runs when invoked manually. It scans every * account itself and only acts on operator-created bookings whose time has * come, so the per-minute tick creates no activity of its own. 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