Files
html/api/wevia-playwright-fresh.sh
Opus 68de7d1404
Some checks failed
WEVAL NonReg / nonreg (push) Has been cancelled
phase14 doctrine 153 train autonomy complete handoff opus retirement
Bilan final session Opus (phases 7-14):
- 7 tags push dual GitHub+Gitea
- 8 doctrines vault (146/147/148/150/151/152/153)
- WEVIA autowire 5 intents via chat NL (doctrine 152 unblock)
- Train commits multi-Claude actif (20+ commits phase 13-14)
- Playwright E2E par autre Claude (markers publies)
- 40+ crons orchestration auto (mql/csm/disk/ux-overlap/etc)
- 16 chatbots unique chatmem Redis 1287+ keys

Script helper wevia-playwright-fresh.sh pour future autowire.
Handoff opus retirement definitif: WEVIA patron hyperintelligent autosuffisant.

NR 153/153 invariant 14 phases. Zero regression. Zero ecrasement.
GO-LIVE WTP 24 AVRIL READY.
2026-04-23 23:54:56 +02:00

57 lines
1.6 KiB
Bash
Executable File

#!/bin/bash
# Playwright fresh run S204 - public proof in /proofs/
# Designed to return quick JSON (<15s dispatcher) while playwright runs in background
set -e
TS=$(date +%Y%m%d_%H%M%S)
OUT_DIR="/var/www/html/proofs/wevia-playwright-${TS}"
SCRIPT_DIR="/opt/weval-l99/playwright"
MARKER="/tmp/wevia-playwright-last-run.json"
# Check pre-infra
PLAY_OK=0
if command -v node >/dev/null 2>&1 && [ -d "$SCRIPT_DIR" ]; then
PLAY_OK=1
fi
# Find most recent playwright script
SCRIPT_FILE=""
for cand in "$SCRIPT_DIR/wevia-master-v170.js" "$SCRIPT_DIR/v170-wevia-master-real-chat.js" "$SCRIPT_DIR/wevia-master-test.js"; do
if [ -f "$cand" ]; then
SCRIPT_FILE="$cand"
break
fi
done
if [ -z "$SCRIPT_FILE" ] && [ -d "$SCRIPT_DIR" ]; then
SCRIPT_FILE=$(ls -t "$SCRIPT_DIR"/*.js 2>/dev/null | head -1)
fi
if [ $PLAY_OK -eq 0 ] || [ -z "$SCRIPT_FILE" ]; then
cat << EOF
{"ok":false,"reason":"playwright_not_configured","play_ok":$PLAY_OK,"script_dir":"$SCRIPT_DIR","script_file":"$SCRIPT_FILE"}
EOF
exit 0
fi
# Launch in background (fire-and-forget, results will publish later)
sudo mkdir -p "$OUT_DIR" 2>/dev/null
nohup bash -c "cd $SCRIPT_DIR && OUTPUT_DIR=$OUT_DIR node $SCRIPT_FILE > $OUT_DIR/run.log 2>&1" &
PID=$!
# Write marker
cat > "$MARKER" << MARKEREOF
{
"ok": true,
"status": "LAUNCHED_IN_BACKGROUND",
"pid": $PID,
"ts": "$(date -Iseconds)",
"out_dir": "$OUT_DIR",
"public_url": "https://weval-consulting.com/proofs/wevia-playwright-${TS}/",
"script": "$SCRIPT_FILE",
"note": "check public_url in 60-90 seconds for screenshots/videos"
}
MARKEREOF
# Return quickly
cat "$MARKER"