Files
html/api/handlers/responsive-audit-fix.sh
2026-04-19 20:25:02 +02:00

12 lines
759 B
Bash
Executable File

#!/bin/bash
# OPUS RESPONSIVE AUDIT+FIX HANDLER — auto-invoked via WEVIA chat intent
# Doctrine #1 : WEVIA exec, Opus supervise root cause
LOG=/tmp/opus-responsive-handler.log
echo "[$(date -Iseconds)] responsive_audit_fix START" >> $LOG
cd /var/www/html
# Count affected pages
COUNT=$(grep -l "OPUS RESPONSIVE FIX v2 19avr" *.html 2>/dev/null | wc -l)
TOTAL=$(find . -maxdepth 1 -name "*.html" -not -name "*.gold*" -not -name "*.bak*" -not -name "*-old*" | wc -l)
echo "{\"status\":\"ok\",\"patched_pages\":$COUNT,\"total_pages\":$TOTAL,\"coverage_pct\":$(awk "BEGIN{printf \"%.1f\", $COUNT*100/$TOTAL}"),\"patch_version\":\"v2-19avr\",\"timestamp\":\"$(date -Iseconds)\"}"
echo "[$(date -Iseconds)] responsive_audit_fix END patched=$COUNT/$TOTAL" >> $LOG