@echo off
echo === AgentsMeeting Windows Services ===

echo [0/3] Cleaning...
taskkill /f /im python.exe 2>nul
taskkill /f /im easytier-core.exe 2>nul
timeout /t 3 /nobreak >nul

echo [1/3] Article Processor...
start /b "" "C:\Users\hmo\AppData\Local\Programs\Python\Python310\python.exe" "D:\F\NewI\opencode\daily-workspace\projects\self-growing-knowledge\scripts\article_processor.py"
timeout /t 3 /nobreak >nul

echo [2/3] xxm Bot...
start /b "" /D "D:\F\NewI\opencode\daily-workspace\projects\AgentsMeeting" "C:\Users\hmo\AppData\Local\Programs\Python\Python310\python.exe" xmpp_agent_core.py --agent xxm
timeout /t 10 /nobreak >nul

echo [3/3] EasyTier...
curl -s -X POST http://127.0.0.1:5802/easytier -H "Content-Type: application/json" -d "{\"action\":\"start\"}" >nul

echo === Done ===