sync: doc upd, json parse in setvars node, fix json vars visibility
This commit is contained in:
40
.gitattributes
vendored
Normal file
40
.gitattributes
vendored
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
# Normalize text files by default
|
||||||
|
* text=auto
|
||||||
|
|
||||||
|
# Force LF for source/config
|
||||||
|
*.sh text eol=lf
|
||||||
|
*.py text eol=lf
|
||||||
|
*.js text eol=lf
|
||||||
|
*.ts text eol=lf
|
||||||
|
*.jsx text eol=lf
|
||||||
|
*.tsx text eol=lf
|
||||||
|
*.css text eol=lf
|
||||||
|
*.scss text eol=lf
|
||||||
|
*.html text eol=lf
|
||||||
|
*.json text eol=lf
|
||||||
|
*.md text eol=lf
|
||||||
|
*.yml text eol=lf
|
||||||
|
*.yaml text eol=lf
|
||||||
|
*.toml text eol=lf
|
||||||
|
*.ini text eol=lf
|
||||||
|
*.cfg text eol=lf
|
||||||
|
*.txt text eol=lf
|
||||||
|
|
||||||
|
# Force CRLF for Windows scripts
|
||||||
|
*.bat text eol=crlf
|
||||||
|
*.cmd text eol=crlf
|
||||||
|
*.ps1 text eol=crlf
|
||||||
|
|
||||||
|
# Treat binaries as binary (no EOL conversions)
|
||||||
|
*.png -text
|
||||||
|
*.jpg -text
|
||||||
|
*.jpeg -text
|
||||||
|
*.gif -text
|
||||||
|
*.webp -text
|
||||||
|
*.pdf -text
|
||||||
|
*.ico -text
|
||||||
|
*.woff -text
|
||||||
|
*.woff2 -text
|
||||||
|
*.eot -text
|
||||||
|
*.ttf -text
|
||||||
|
*.otf -text
|
||||||
35
run_agentui.sh
Normal file
35
run_agentui.sh
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
# НадTavern Linux launcher
|
||||||
|
# Usage:
|
||||||
|
# chmod +x ./run_agentui.sh
|
||||||
|
# ./run_agentui.sh
|
||||||
|
|
||||||
|
# Go to repo root (script location)
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
PORT="${PORT:-7860}"
|
||||||
|
HOST="${HOST:-127.0.0.1}"
|
||||||
|
|
||||||
|
echo "Installing dependencies..."
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
echo "Starting НадTavern 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
|
||||||
|
xdg-open "http://$HOST:$PORT/ui/editor.html" >/dev/null 2>&1 || true
|
||||||
|
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
|
||||||
Reference in New Issue
Block a user