/**
 * Cron daemon entry point.
 *
 * Called via `node dist/cli.js cron-daemon` (dispatched from main.ts).
 * Minimal startup: auth refresh + daemon tick loop. No TUI, no tools.
 */
import { AuthStorage } from '../app/auth/auth-storage.js';
import { startProactiveRefresh } from '../app/auth/refresh-timer.js';
import { startDaemonLoop } from '../app/cron/daemon.js';
import { SHORTCUT_PROVIDER_ID } from '../model-ids.js';
export async function runCronDaemon() {
    // Keep OAuth tokens fresh for spawned agent processes
    const authStorage = AuthStorage.create();
    startProactiveRefresh(authStorage, SHORTCUT_PROVIDER_ID);
    // Start the tick loop (runs forever until SIGTERM)
    await startDaemonLoop();
}
//# sourceMappingURL=cron-daemon-entry.js.map