Phase 1: Communications Module - Complete

Backend infrastructure:
- PostgreSQL models (users, channels, messages, DMs, files, artifacts)
- JWT authentication with password hashing
- Auth API (register, login, logout, get user)
- Channels API (create, list, join, leave)
- Messages API with @grimlock mention detection
- AI responds automatically when @mentioned
- Background task processing for AI responses

Database:
- SQLAlchemy ORM models
- Alembic ready for migrations
- PostgreSQL + Redis in docker-compose

Features working:
- User registration and login
- Create/join public channels
- Send messages in channels
- @grimlock triggers AI response with channel context
- Real-time ready (WebSocket next)

Next: WebSocket for real-time updates, frontend interface
This commit is contained in:
JA
2026-02-12 21:26:16 +00:00
parent 437336a1e4
commit 9f094b7a5d
10 changed files with 912 additions and 5 deletions

View File

@@ -8,6 +8,12 @@ HOST=0.0.0.0
PORT=8000
DEBUG=true
# Database
DATABASE_URL=postgresql://grimlock:grimlock@localhost:5432/grimlock
# Security
SECRET_KEY=your-secret-key-change-in-production-use-openssl-rand-hex-32
# Context Configuration
CONTEXT_PATH=/app/context
REPOS_PATH=/app/repos