#!/usr/bin/env python3
"""Cron wrapper for JARVIS YAZIO Nutrition Sync v2.

Keeps the existing cron entry stable while delegating to the HealthManager
implementation. Default behavior: today + yesterday, refresh dashboard only if
there are changes, stay silent when unchanged.
"""
from __future__ import annotations

import subprocess
import sys
from pathlib import Path

SCRIPT = Path('/home/agent/.hermes/assets/Gesundheit/scripts/yazio_nutrition_sync.py')

if __name__ == '__main__':
    cmd = [sys.executable, str(SCRIPT), '--dashboard'] + sys.argv[1:]
    raise SystemExit(subprocess.call(cmd))
