import { logStats } from "./tasks/logStats.ts"; import { logTasks } from "./tasks/logTasks.ts"; import { msFrom, msRandomOffset, msUntilDailyWindow } from "./utils/time.ts"; import { sendSleepMessage } from "./tasks/sendSleepMessage.ts"; import { sendWakeMessage } from "./tasks/sendWakeMessage.ts"; import { agentContext } from "./utils/agentContext.ts"; import { runReflection } from "./tasks/runReflection.ts"; import { checkBluesky } from "./tasks/checkBluesky.ts"; import { checkNotifications } from "./tasks/checkNotifications.ts"; setTimeout(logStats, msFrom.minutes(30)); setTimeout( logTasks, msFrom.minutes(100), ); setTimeout( sendSleepMessage, msUntilDailyWindow(agentContext.sleepTime, 0, msFrom.minutes(30)), ); setTimeout( sendWakeMessage, msUntilDailyWindow(agentContext.wakeTime, 0, msFrom.minutes(30)), ); setTimeout( runReflection, msRandomOffset(msFrom.minutes(120), msFrom.minutes(240)), ); setTimeout( checkBluesky, msRandomOffset(msFrom.minutes(45), msFrom.minutes(90)), ); await checkNotifications();