"""Sentinel V5.9 release checker."""
from pathlib import Path
root = Path(__file__).resolve().parents[1]
required = [
    root/"templates/operations_console.html",
    root/"static/css/operations-v59.css",
    root/"static/js/operations-v59.js",
    root/"sentinel/api/app.py",
]
missing=[str(x) for x in required if not x.exists()]
if missing:
    raise SystemExit("Missing:\n"+"\n".join(missing))
app=(root/"sentinel/api/app.py").read_text()
for route in ["/equipment-overview","/alarm-blocking","/organization","/users","/audit"]:
    if route not in app: raise SystemExit(f"Missing route {route}")
print("Sentinel V5.9 Operations UI files: OK")
