Files
oniagent/scripts/auto_analyze.sh
root 0e17e8a6ac feat: complete ONI Agent project with full Mod API, Python toolchain, and development guide
- 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
2026-05-22 08:44:56 +08:00

31 lines
759 B
Bash
Executable File

#!/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."