34 lines
1.1 KiB
Bash
Executable File
34 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
echo "=== NR ==="
|
|
python3 -c "
|
|
import json
|
|
d=json.load(open('/tmp/l99-honest-cache.json'))
|
|
print(f'{d[\"combined\"][\"pass\"]}/{d[\"combined\"][\"total\"]} · {d[\"sigma\"]}')
|
|
print(f'ts: {d[\"ts\"]}')
|
|
"
|
|
echo "=== Git ==="
|
|
cd /var/www/html && echo "dirty: $(git status --short | wc -l) · HEAD: $(git log -1 --format='%h')"
|
|
|
|
echo "=== Blade task v92/v93 status ==="
|
|
for t in task_v92_em_verify_20260420.json task_v93_authed_20260420.json; do
|
|
f=/var/www/html/api/blade-tasks/$t
|
|
if [ -f $f ]; then
|
|
python3 -c "
|
|
import json
|
|
d=json.load(open('$f'))
|
|
print(f'$t: status={d.get(\"status\")} dispatched={d.get(\"dispatched_at\",\"none\")} completed={d.get(\"completed_at\",\"none\")}')
|
|
"
|
|
fi
|
|
done
|
|
|
|
echo "=== Blade heartbeat ==="
|
|
curl -s https://weval-consulting.com/api/blade-heartbeat.json --max-time 5 | python3 -c "
|
|
import sys,json
|
|
d=json.load(sys.stdin)
|
|
print(f'Status: {d.get(\"status\")} · last_heartbeat: {d.get(\"last_heartbeat\")}')
|
|
print(f'tasks_today: {d.get(\"tasks_today\")} · tasks_week: {d.get(\"tasks_week\")}')
|
|
"
|
|
|
|
echo "=== Latest blade screenshots ==="
|
|
ls -lt /var/www/html/api/blade-tasks/*.png 2>/dev/null | head -5
|