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

42
MEMORY-SERVICE-STARTED.md Normal file
View File

@@ -0,0 +1,42 @@
# ✅ Memory Service - Запущено
**Дата:** 2025-01-27
## 🚀 Запуск Memory Service
### Статус:
-**Memory Service:** Запущено на порту 8000
-**Health Check:** Доступний
-**Підключення:** До PostgreSQL
### Команда запуску:
```bash
cd services/memory-service
source venv/bin/activate
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/daarion_memory python -m uvicorn app.main:app --host 0.0.0.0 --port 8000
```
## 📊 Перевірка
### Health Check:
```bash
curl http://localhost:8000/health
```
### Endpoints:
- `POST /api/memory/monitor-events/batch` - Збереження батчу подій
- `POST /api/memory/monitor-events/{node_id}` - Збереження однієї події
- `GET /agents/{agent_id}/memory` - Отримання пам'яті агента
## ✅ Функціональність
Тепер працює:
- ✅ Збереження подій Monitor Agent в Memory Service
- ✅ Батчинг подій для оптимізації
- ✅ Отримання контексту з пам'яті для Monitor Agent
- ✅ Повна функціональність Monitor Agent
---
**Last Updated:** 2025-01-27