Files
oniagent/scripts/setup.sh
2026-05-30 11:00:36 +08:00

29 lines
835 B
Bash

#!/usr/bin/env bash
# ONI Agent - Project Setup Script
# Ensures Python dependencies and directory structure.
set -euo pipefail
echo "[ONI Agent] Setting up project..."
# Verify Python3
if ! command -v python3 &> /dev/null; then
echo "[!] Python3 is required but not found."
exit 1
fi
echo "[OK] Python3 found: $(python3 --version)"
# Verify Python tools are syntactically valid
TOOLS_DIR="$(dirname "$0")/../tools"
for f in "$TOOLS_DIR"/*.py; do
python3 -m py_compile "$f" 2>/dev/null && echo "[OK] $f" || echo "[!] Syntax error in $f"
done
echo ""
echo "[OK] Setup complete."
echo ""
echo "Next steps:"
echo " 1. Launch Oxygen Not Included with the ONI Agent Bridge mod"
echo " 2. Run: python3 tools/oni_api.py health"
echo " 3. Run: python3 tools/oni_api.py status"
echo " 4. Run: python3 tools/oni_analyzer.py"