sync: UI animations, select styling, TLS verify flag via proxy second line, brand spacing

This commit is contained in:
2025-09-27 18:46:52 +03:00
parent 135c393eda
commit 2abfbb4b1a
52 changed files with 8029 additions and 1408 deletions

View File

@@ -1,10 +1,11 @@
#!/usr/bin/env bash
set -euo pipefail
# НадTavern Linux launcher
# НадTavern Linux/macOS launcher with local .venv bootstrap
# Usage:
# chmod +x ./run_agentui.sh
# ./run_agentui.sh
# Optional env: HOST=0.0.0.0 PORT=7860
# Go to repo root (script location)
cd "$(dirname "$0")"
@@ -12,18 +13,28 @@ cd "$(dirname "$0")"
PORT="${PORT:-7860}"
HOST="${HOST:-127.0.0.1}"
echo "Installing dependencies..."
# Pick python
if command -v python3 >/dev/null 2>&1; then
PY=python3
else
PY=python
fi
"$PY" -m pip install --upgrade pip
"$PY" -m pip install -r requirements.txt
# Create venv if missing
if [ ! -f ".venv/bin/python" ]; then
echo "[НадTavern] Creating .venv ..."
"$PY" -m venv .venv
fi
echo "Starting НадTavern on http://$HOST:$PORT/"
VENV_PY=".venv/bin/python"
echo "[НадTavern] Upgrading pip ..."
"$VENV_PY" -m pip install --upgrade pip
echo "[НадTavern] Installing deps from requirements.txt ..."
"$VENV_PY" -m pip install -r requirements.txt
echo "[НадTavern] Starting on http://$HOST:$PORT/"
# Try to open UI editor in default browser (non-fatal if fails)
if command -v xdg-open >/dev/null 2>&1; then
@@ -32,4 +43,4 @@ elif command -v open >/dev/null 2>&1; then
open "http://$HOST:$PORT/ui/editor.html" >/dev/null 2>&1 || true
fi
exec "$PY" -m uvicorn agentui.api.server:app --host "$HOST" --port "$PORT" --log-level info
exec "$VENV_PY" -m uvicorn agentui.api.server:app --host "$HOST" --port "$PORT" --log-level info