Files
html/api/v76-scripts/autonomy-score.sh
2026-04-19 16:00:02 +02:00

16 lines
470 B
Bash
Executable File

#!/bin/bash
TR=/var/www/html/api/wevia-truth-registry.json
if [ -f "$TR" ]; then
python3 << 'PY'
import json
d = json.load(open('/var/www/html/api/wevia-truth-registry.json'))
a = d.get('agents', {}).get('count_unique', 0)
doc = d.get('doctrines', {}).get('count', 0)
dash = d.get('dashboards', {}).get('count', 0)
br = d.get('brains', {}).get('count', 0)
print(f"agents:{a} doctrines:{doc} dashboards:{dash} brains:{br}")
PY
else
echo "truth_registry:NOT_BUILT"
fi