4 Commits

Author SHA1 Message Date
ordinarthur
973a1ce431 add ws & simulator 2026-03-27 10:40:24 +01:00
ordinarthur
41a843147c feat: add WebSocket gateway for robot connection
- RobotGateway on /ws/robot namespace (Socket.IO)
- Device JWT auth on connection (rejects invalid/missing tokens)
- Connection tracking (connectedDevices map)
- Event handlers: wake_word_detected, audio_chunk, speech_end, user_interrupt
- Helper methods: sendAudioChunk, sendStatus, sendNotification
- Status feedback: idle, listening, thinking, speaking

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-27 10:04:28 +01:00
ordinarthur
0115669464 feat: add JWT authentication, user registration, and device management
- AuthService with register, login, refresh token flows
- JWT strategy + guard (Passport)
- User, Home, Device services
- REST endpoints: /auth/register, /auth/login, /auth/me, /auth/refresh
- Device registration with long-lived JWT tokens (365d)
- Device listing per home
- bcrypt password hashing (cost 12) and device token hashing
- Fix snake_case column names on all entity date columns

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-27 09:27:13 +01:00
ordinarthur
674109ea22 feat: initial project setup — Phase 0
Monorepo pnpm avec NestJS backend en architecture hexagonale.
- Structure hexagonale complète (ports, adapters, domain entities)
- 9 entities TypeORM (Home, User, Device, Credentials, Session, Message, Memory, Timer)
- Migration initiale SQL avec pgvector support
- Docker Compose (PostgreSQL 16 + pgvector + Redis 7)
- Config partagée (tsconfig, ESLint, Prettier)
- Outbound ports définis (STT, TTS, LLM, Cache, Storage, VectorStore)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-27 09:01:52 +01:00