# Natiris Admin Befehle ## Port für Webchat: **8080** ## Status abrufen: ```bash cat ~/natiris/core/core_state.json cat ~/natiris/core/natiris_full_state.json cat ~/natiris/core/expression_bias.json lsof -i:8080 ``` ## Webchat neu starten: ```bash pkill -f "streamlit run.*webui_chat.py" nohup streamlit run ~/natiris/core/webui_chat.py --server.port 8080 --server.headless true > ~/natiris/test_logs/webui_8080.log 2>&1 & sleep 2 lsof -i:8080 -t > ~/natiris/core/webui_port_8080.pid ``` ## Core-Module ausführen: ```bash cd ~/natiris/core && python3 LogicValidator.py cd ~/natiris/core && python3 OrchestratorAll.py ``` ## PsychologyEngine testen: ```bash cd ~/natiris/core && python3 PsychologyEngine.py ``` ## Trust-Level testen (ohne Webchat): ```bash cd ~/natiris/core && python3 -c " state = {'loneliness': 1, 'mood': 7, 'anxiety': 0, 'arousal_level': 2, 'trust': 1.0, 'bonded_to': 'user_primary', 'has_pets': True} exec(open('PsychologyEngine.py').read().replace('def main():', 'def test_main():').replace('if __name__ == \"__main__\":', 'if False:')) resp = generate_response('Guten Morgen', state) print(resp) " ``` ## Logs anzeigen: ```bash tail -f ~/natiris/test_logs/webui_8080.log cat ~/natiris/core/psychology_response.json ``` ## Persona anpassen: ```bash nano ~/natiris/data/persona.txt ``` ## Core State resetten (nur für debugging): ```bash echo '{"loneliness": 1, "mood": 7, "anxiety": 0, "arousal_level": 2, "trust": 9.8, "bonded_to": "user_primary", "has_pets": true, "current_age": 22, "bond_started_at": "now"}' > ~/natiris/core/core_state.json ``` ## Expression Modul manuell ausführen: ```bash cd ~/natiris/core && python3 ExpressionEngine.py ``` ## InnerLifeWorker manuell ausführen: ```bash cd ~/natiris/core && python3 InnerLifeWorker.py ``` ## Bond Engine manuell ausführen: ```bash cd ~/natiris/core && python3 BondEngine.py ``` ## Maturity Engine manuell ausführen: ```bash cd ~/natiris/core && python3 MaturityEngine.py ``` ## Emotion Engine manuell ausführen: ```bash cd ~/natiris/core && python3 EmotionEngine.py ``` ## Ollama health check: ```bash curl -s http://localhost:11434/api/tags ``` ## ComfyUI health check: ```bash curl -s http://10.90.20.153:42006/ ```