#!/usr/bin/env bash # ONI Agent - Quick analysis report # Runs health check, then pulls full game state and analyzes it. set -euo pipefail SCRIPT_DIR="$(dirname "$0")" TOOLS_DIR="$SCRIPT_DIR/../tools" echo "========================================" echo " ONI Agent - Quick Analysis" echo "========================================" # Step 1: Health check echo "[1/3] Checking Mod connection..." python3 "$TOOLS_DIR/oni_api.py" health 2>/dev/null || { echo "[!] Game not connected. Run auto_repair.sh first." exit 1 } # Step 2: Full status dump echo "[2/3] Fetching game state..." python3 "$TOOLS_DIR/oni_api.py" status # Step 3: Analysis report echo "" echo "[3/3] Running analysis..." python3 "$TOOLS_DIR/oni_analyzer.py" echo "" echo "Done."