Files
ozone-tech_owl_prime/scripts/demo-health.sh
Даня Архипов 985f7c327d feat: maximize sorter demo realism and add safe agent MVP
Wire live classifyItem into continuous playback, add jam/E-stop cases,
presenter controls (seek/speed/hotkeys), quality modes, demo scripts,
audit docs, and a verify-only autonomous agent CLI with hard safety limits.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-15 16:53:35 +00:00

36 lines
828 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
cd "$ROOT"
ok=0
fail=0
check() {
local name="$1"
local url="$2"
if curl -sf -o /dev/null -w "%{http_code}" "$url" | grep -qE '200|304'; then
echo "[ok] $name ($url)"
ok=$((ok + 1))
else
echo "[fail] $name ($url)"
fail=$((fail + 1))
fi
}
echo "[demo-health] checking endpoints..."
check "prod-loopback" "http://127.0.0.1:3100/" || true
check "preview" "http://127.0.0.1:3101/" || true
check "public" "https://arhipovdan.ru/" || true
echo "[demo-health] running unit tests..."
if npm test >/tmp/demo-health-tests.log 2>&1; then
echo "[ok] vitest"
ok=$((ok + 1))
else
echo "[fail] vitest — see /tmp/demo-health-tests.log"
fail=$((fail + 1))
fi
echo "[demo-health] summary: ok=$ok fail=$fail"
[[ "$fail" -eq 0 ]]