Files
weval-l99/wevia-intents-pool.sh
2026-04-24 04:38:58 +02:00

30 lines
1.4 KiB
Bash
Executable File

#!/bin/bash
# WEVIA intents_pool diagnostic - 22avr2026
echo "=== WEVIA INTENTS POOL ==="
PI=$(wc -l < /opt/wevia-brain/priority-intents-nl.json 2>/dev/null)
TR=$(jq -r '.tools | length' /opt/wevia-brain/wevia-tool-registry.json 2>/dev/null)
OSS=$(cat /opt/wevia-brain/oss-exec-registry.json 2>/dev/null | python3 -c "import sys,json;d=json.load(sys.stdin);print(len(d) if isinstance(d,(list,dict)) else 0)" 2>/dev/null)
TI=$(ls /opt/weval-ops/top-ia/ 2>/dev/null | wc -l)
PL=$(find /opt/weval-plugins -maxdepth 2 -type d 2>/dev/null | wc -l)
DF=$(find /opt/deer-flow/skills -maxdepth 3 -type d 2>/dev/null | wc -l)
BR=$(find /opt/wevia-brain -maxdepth 2 -name "*.json" 2>/dev/null | wc -l)
DOC=$(ls /var/www/html/wiki/doctrine-*.md 2>/dev/null | wc -l)
CR=$(ls /etc/cron.d/wevia* 2>/dev/null | wc -l)
TOTAL=$((PI + TR + OSS + TI + PL + DF + BR + DOC + CR))
echo "Priority intents NL (active): $PI"
echo "Tool registry (wired): $TR"
echo "OSS exec registry tools: $OSS"
echo "Top-IA scripts: $TI"
echo "Plugins dirs: $PL"
echo "DeerFlow skills: $DF"
echo "Brain knowledge JSONs: $BR"
echo "Doctrines wiki: $DOC"
echo "Active WEVIA crons: $CR"
echo ""
echo "=== POOL TOTAL POTENTIEL: $TOTAL ==="
echo ""
echo "Capacite multi-agent V77: 30 agents en parallele (~256ms vs 3.4s sequential)"
echo "Auto-wire NL on-demand: any new intent peut etre cable via 'cable un intent pour X quand on dit Y. Commande: Z'"
echo "WEVIA Master peut mobiliser: $TOTAL capacites au total"