- Reset master to upstream/main (16,697 commits) - Overlay 2,271 local-only files (skills, tools, workspace, configs, apps) - Restore IDENTITY.md and USER.md templates - Build verified, gateway running, Discord working Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
#!/bin/bash
|
|
# Daily Summary - COMPLETELY SILENT unless real critical issues
|
|
|
|
CRITICAL_LOG="/home/alex/clawd/logs/jarvis-critical.log"
|
|
SILENT_LOG="/home/alex/clawd/logs/jarvis-silent-fixes.log"
|
|
PENDING_LOG="/home/alex/clawd/logs/jarvis-pending-tomorrow.log"
|
|
STATE_DIR="/home/alex/clawd/.jarvis-state"
|
|
|
|
TODAY=$(date +%Y-%m-%d)
|
|
|
|
# Count today's REAL issues (exclude test entries)
|
|
CRITICAL_TODAY=$(grep "$TODAY" "$CRITICAL_LOG" 2>/dev/null | grep -v "Test\|test\|TESTING" | wc -l)
|
|
DEFERRED_TODAY=$(grep "$TODAY" "$PENDING_LOG" 2>/dev/null | grep -v "Test\|test\|TESTING" | wc -l)
|
|
|
|
# Only notify if REAL critical issues exist
|
|
if [[ $CRITICAL_TODAY -gt 0 ]]; then
|
|
echo "🚨 JARVIS CRITICAL ALERT - $TODAY 🚨"
|
|
echo ""
|
|
echo "Critical issues (requires manual intervention):"
|
|
grep "$TODAY" "$CRITICAL_LOG" 2>/dev/null | grep -v "Test\|test\|TESTING" | tail -5
|
|
echo ""
|
|
|
|
# Clean up logs
|
|
> "$PENDING_LOG"
|
|
find "$STATE_DIR" -type f -mtime +7 -delete 2>/dev/null
|
|
|
|
exit 1
|
|
fi
|
|
|
|
# Silent success - clean up anyway
|
|
> "$PENDING_LOG"
|
|
find "$STATE_DIR" -type f -mtime +7 -delete 2>/dev/null
|
|
|
|
# NO OUTPUT = no spam
|
|
exit 0
|