#!/bin/bash
# FFG State Check - Quick reality snapshot
# Run: ./ffg-state.sh

echo "═══════════════════════════════════════════════"
echo "FFG STATE CHECK - $(date '+%Y-%m-%d %H:%M:%S %Z')"
echo "═══════════════════════════════════════════════"

echo ""
echo "=== RECENT COMMITS ==="
git log --oneline -n 5

echo ""
echo "=== WORKING TREE ==="
git status -s
if [ -z "$(git status -s)" ]; then
    echo "(clean)"
fi

echo ""
echo "=== NEXT IMMEDIATE ACTION ==="
grep -A 2 "Next Immediate Action\|Next Session Priorities\|NEXT SESSION" SESSION-HANDOFF-NEXT.md 2>/dev/null | head -5 || echo "(not found in handoff)"

echo ""
echo "═══════════════════════════════════════════════"
