diff --git a/cheddahbot/api.py b/cheddahbot/api.py index c3bbd98..190206a 100644 --- a/cheddahbot/api.py +++ b/cheddahbot/api.py @@ -562,6 +562,15 @@ async def force_loop_run(): return {"status": "ok", "message": "Force pulse sent to heartbeat and poll loops"} +@router.post("/system/briefing/force") +async def force_briefing(): + """Force the morning briefing to send now (won't block tomorrow's).""" + if not _scheduler: + return {"status": "error", "message": "Scheduler not available"} + _scheduler.force_briefing() + return {"status": "ok", "message": "Briefing force-triggered"} + + @router.post("/cache/clear") async def clear_cache(): """Clear the ClickUp data cache."""