feat: Add presence heartbeat for Matrix online status

- matrix-gateway: POST /internal/matrix/presence/online endpoint
- usePresenceHeartbeat hook with activity tracking
- Auto away after 5 min inactivity
- Offline on page close/visibility change
- Integrated in MatrixChatRoom component
This commit is contained in:
Apple
2025-11-27 00:19:40 -08:00
parent 5bed515852
commit 3de3c8cb36
6371 changed files with 1317450 additions and 932 deletions

76
ALL-SERVICES-RUNNING.md Normal file
View File

@@ -0,0 +1,76 @@
# ✅ Всі сервіси запущені та працюють!
**Дата:** 2025-01-27
## 🎉 Статус
### ✅ Працюють:
1. **Frontend (http://localhost:8899)**
- ✅ Працює та опубліковано
-Всі сторінки доступні
- ✅ MonitorChat компонент на всіх сторінках
2. **Monitor Agent Service (http://localhost:9500)**
- ✅ Запущено та працює
- ✅ Health Check: `{"status":"ok","service":"monitor-agent-service"}`
- ✅ Підключено до Ollama на НОДА2 (mistral:7b)
3. **Memory Service (http://localhost:8000)**
- ✅ Запущено та працює
- ✅ База даних: SQLite (memory.db)
- ✅ Endpoints доступні
## 🎯 Повна функціональність
Тепер працює:
1.**Frontend інтерфейс**
- Всі сторінки доступні
- MonitorChat на всіх сторінках
- NodeMonitorChat в кабінетах НОД
- MicroDaoMonitorChat в кабінетах мікроДАО
- DaarionMonitorChat в кабінеті DAARION
2.**Monitor Agent Service**
- Реальні відповіді через Mistral на НОДА2
- Підключення до Memory Service
- Отримання контексту з пам'яті
3.**Memory Service**
- Збереження подій Monitor Agent
- Батчинг для оптимізації
- Отримання пам'яті для Monitor Agent
4.**Повна інтеграція**
- Події автоматично зберігаються в пам'ять
- Monitor Agent може відповідати на питання про метрики та історію
- Реальні відповіді з контекстом з пам'яті
## 📊 Перевірка
```bash
# Frontend
curl http://localhost:8899
# Monitor Agent Service
curl http://localhost:9500/health
# Memory Service
curl http://localhost:8000/health
```
## 🎯 Результат
**ВСЕ ПРАЦЮЄ ТА ОПУБЛІКОВАНО!**
- Frontend: http://localhost:8899 ✅
- Monitor Agent Service: http://localhost:9500 ✅
- Memory Service: http://localhost:8000 ✅
**Повна функціональність доступна!**
---
**Last Updated:** 2025-01-27