42 lines
1.4 KiB
Bash
Executable File
42 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
CK=/tmp/wv-sim.txt
|
|
rm -f $CK
|
|
LOG=/tmp/wevia-simulation.log
|
|
echo "=== SIMULATION SESSION 9AVR ===" > $LOG
|
|
|
|
# Login
|
|
curl -sf -c $CK -b $CK -X POST "https://weval-consulting.com/login" -d "user=yacine&pass=Weval@2026" -o /dev/null -k --max-time 5
|
|
echo "LOGIN OK" >> $LOG
|
|
|
|
# Simulate ALL key questions from today
|
|
QUESTIONS=(
|
|
"analyse des problemes detectes sur le systeme"
|
|
"reconcilie les travaux des autres Claude en cours"
|
|
"scan complet de toute l architecture"
|
|
"verifie que tous les providers IA fonctionnent"
|
|
"statut qdrant et autolearn"
|
|
"lance un diagnostic docker complet"
|
|
"verifie la nonreg 153 tests"
|
|
"scan les brain modules 167"
|
|
)
|
|
|
|
i=0
|
|
for Q in "${QUESTIONS[@]}"; do
|
|
i=$((i+1))
|
|
echo "=== Q$i: $Q ===" >> $LOG
|
|
R=$(curl -sf -b $CK -X POST "https://weval-consulting.com/api/wevia-autonomous.php" \
|
|
-H "Content-Type: application/json" \
|
|
-d "{\"message\":\"$Q\",\"history\":[]}" \
|
|
-k --max-time 25 2>/dev/null)
|
|
LEN=${#R}
|
|
AUTH=$(echo "$R" | grep -ci "uthentik")
|
|
EXEC=$(echo "$R" | grep -c "action_done")
|
|
# Extract LLM text response
|
|
RESP=$(echo "$R" | grep '"type":"text"' | tail -1 | python3 -c "import sys,json;[print(json.loads(l[5:]).get('content','')[:200]) for l in sys.stdin if l.strip()]" 2>/dev/null)
|
|
echo " len=$LEN exec=$EXEC auth=$AUTH" >> $LOG
|
|
echo " response: $RESP" >> $LOG
|
|
echo "Q$i $Q → len=$LEN exec=$EXEC auth=$AUTH"
|
|
done
|
|
|
|
echo "=== DONE ===" >> $LOG
|