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>
This commit is contained in:
Даня Архипов
2026-07-15 16:53:35 +00:00
parent e89c728dd2
commit 985f7c327d
40 changed files with 3358 additions and 453 deletions

35
scripts/demo-health.sh Executable file
View File

@@ -0,0 +1,35 @@
#!/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 ]]