#!/usr/bin/env bash
#
# cleanup-reports.sh — delete published HTML reports older than N days.
# Run via cron daily.
#
set -euo pipefail

REPORTS_DIR="/Users/eugene/agents/_shared/reports"
RETENTION_DAYS=30

# Only delete .html files in reports root (preserve _assets/)
find "$REPORTS_DIR" -maxdepth 1 -name "*.html" -mtime +$RETENTION_DAYS -delete -print
