#!/usr/bin/env bash
echo "===== JOBS RUNNING ====="; pgrep -af "mirror/scripts|nudenet|detector_640" 2>/dev/null | grep -vE "bash -lc|status.sh|pgrep" | grep -oE "0[0-9b]+_[a-z]+|nudenet" | sort -u || echo none
echo "===== MODELS ====="; for d in qwen3-8b-instruct qwen3guard qwen3-vl-8b-instruct qwen3-14b-instruct-awq qwen3-asr-1.7b; do printf "%-26s %s\n" "$d" "$(du -sh --exclude=.cache /srv/mirror/models/$d 2>/dev/null | cut -f1)"; done
echo "===== TRITON SMALL ====="; find /srv/mirror/models/triton -type f ! -name .files -printf "%10s  %P\n" 2>/dev/null | sort -k2
echo "===== CHARTS ====="; ls /srv/mirror/charts/*.tgz 2>/dev/null | wc -l
echo "===== INSTALLERS ====="; ls /srv/mirror/installers 2>/dev/null | wc -l
echo "===== IMAGES ====="; ls -lh /srv/mirror/images/*.tar.zst 2>/dev/null | awk '{print $5, $9}'; echo "  last: $(tail -2 /srv/mirror/scripts/logs/04_images.log 2>/dev/null | tr '\r' '\n' | grep -iE '\[img\]|saved|FAIL' | tail -1)"
echo "===== PIP ====="; ls /srv/mirror/pip/*.whl 2>/dev/null | wc -l
echo "===== DISK ====="; df -h / | tail -1
