Initial import: selectel-ml-tui TUI for Selectel AI-router token usage

This commit is contained in:
2026-09-02 16:38:03 +03:00
commit f95223b88b
41 changed files with 6061 additions and 0 deletions
Executable
+23
View File
@@ -0,0 +1,23 @@
#!/usr/bin/env bash
# Запуск selectel-ml-tui с корректным окружением терминала.
# Использование: scripts/run.sh [doctor|run|...]
set -euo pipefail
cd "$(dirname "$0")/.."
# Подстраховка для минималистичных терминалов (tmux/screen, ssh).
if [[ -z "${TERM:-}" ]]; then
export TERM=xterm-256color
fi
if [[ -z "${LANG:-}" ]]; then
export LANG=C.UTF-8
fi
if command -v uv >/dev/null 2>&1; then
exec uv run selectel-ml-tui "$@"
elif command -v selectel-ml-tui >/dev/null 2>&1; then
exec selectel-ml-tui "$@"
else
echo "selectel-ml-tui не найден. Установите через 'pip install .' или 'uv sync'" >&2
exit 1
fi