PRODUCTAGENTharrisonhjohnson/productagent · /harnesses/todo/bot/run_hyrule.sh
000%

run_hyrule.sh

view on github ↗38 lines · bash
#!/bin/bash
#
# HYRULE Server Startup Script
# Launches the FastAPI server and opens HYRULE in the browser
#

set -e

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"

echo "========================================"
echo "  HYRULE Server"
echo "========================================"
echo ""

# Check if uvicorn is available
if ! python3 -c "import uvicorn" 2>/dev/null; then
    echo "Installing required packages..."
    pip3 install fastapi uvicorn
fi

# Check if server is already running
if curl -s http://localhost:8765/api/health > /dev/null 2>&1; then
    echo "Server already running at http://localhost:8765"
    echo "Opening HYRULE in browser..."
    open "http://localhost:8765"
    exit 0
fi

echo "Starting HYRULE server on port 8765..."
echo ""

# Open browser after a short delay (in background)
(sleep 2 && open "http://localhost:8765") &

# Start the server
python3 hyrule_server.py
flow-designglobal
SKILL.md74 lines
SKILL.md162 lines
pm-strategistglobal
pm-strategist.md51 lines
todosystem
bot31 items
agent_executor.py344 lines
behavior_state.py106 lines
BOT.md175 lines
config.py76 lines
git_sync.py87 lines
hyrule_server.py284 lines
manage_bot.sh47 lines
mcp_server.py324 lines
mobile_mode.py229 lines
navi_tab.py95 lines
prework_engine.py426 lines
run_bot.sh18 lines
run_hyrule.sh38 lines
scheduler.py958 lines
session.py264 lines
telegram_bot.py3328 lines
todo_manager.py1130 lines
ventures_signal.py314 lines
voice_handler.py203 lines
VOICE_SETUP.md112 lines
warroom_manager.py1004 lines
README.md44 lines
night-orderssystem
README.md84 lines
loops-spec.md212 lines
settings.json116 lines
README.md59 lines