/** * Global Task Scheduler * * Checks for due tasks across all projects at session start. * Processes due tasks: reports them, advances recurring intervals. * * Architecture: * - Tasks with `due` dates are mirrored in global.db/scheduled_tasks * - On every aidex_session call, this module scans for due tasks * - Recurring tasks get their `due` advanced by `interval` * - One-shot tasks get `due` cleared after trigger */ import type { TaskRow } from '../../db/queries.js'; export interface DueTask { projectPath: string; projectName: string; task: TaskRow; autoGo: boolean; } export interface SchedulerResult { active: boolean; dueTasks: DueTask[]; processed: number; errors: string[]; } /** * Check for due scheduled tasks across all projects. * Called from session.ts at every session start/continue. */ export declare function checkScheduledTasks(): SchedulerResult; //# sourceMappingURL=global-scheduler.d.ts.map