- Implement all Mod API endpoints (buildings, research, geysers, alerts, critters, deconstruct, prioritize, research, schedule, wardrobe) - Enhance Python tools with comprehensive CLI, analysis (O2/food/power/temp/water), and 7 blueprints (SPOM, toilet, ranch, farm, cooling, bedroom) - Add utility scripts: auto_repair, auto_analyze, watch mode, setup - Write Agent-Mod integration constraints and development guide - Create skills directory with ONI agent skill definition
29 lines
835 B
Bash
Executable File
29 lines
835 B
Bash
Executable File
#!/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"
|