Commit Graph

6 Commits

Author SHA1 Message Date
Alexander Whitestone
6c0f7017a1 test: add 8 new tests for whisper and inventory commands
- whisper: delivery, privacy (no third-party leak), cross-room, nonexistent target, self-rejection, missing message
- inventory: stub output, short alias 'i'
2026-04-13 16:18:46 -04:00
Alexander Whitestone
623e397d68 test: add 11 new tests for stats, go, and emote commands
- TestStatsEndpoint: empty bridge stats, stats after activity
- TestGoCommand: room change, occupant tracking, old-room notification,
  same-room rejection, missing room argument
- TestEmoteCommand: room broadcast, first-person response, no self-echo,
  /me alias support
- Also fix bare 'go'/'move' (no argument) to show usage hint
2026-04-13 15:09:52 -04:00
Alexander Whitestone
b3f2a8b091 test: add rate limiter unit tests and HTTP integration tests
- Unit tests for RateLimiter: token refill, per-user isolation, reset
- HTTP tests: 429 response, X-RateLimit headers, per-user enforcement
- Uses rate_limited_client fixture with limit=3 for easy testing
2026-04-13 04:05:42 -04:00
Alexander Whitestone
548288d2db test: add /bridge/rooms endpoint tests — room listing, occupant counts, empty state 2026-04-13 04:05:42 -04:00
Alexander Whitestone
b8a31e07f2 feat: room broadcast — say command delivers to all occupants in room
- say <message> now queues room_broadcast events on other sessions
- New GET /bridge/room_events/{user_id} endpoint (drain-on-read)
- WS connections receive real-time room broadcasts
- 5 new tests: broadcast, no-echo, room isolation, drain, 404
- Total tests: 27 (all passing)
2026-04-13 00:34:33 -04:00
Alexander Whitestone
e47939cb8d test: 22 tests for multi-user bridge — isolation, crisis, HTTP endpoints
- Session isolation: independent history, reuse, room transitions, eviction
- Crisis detection: multi-turn 988 delivery, reset on normal, window expiry
- HTTP endpoints: health, chat, sessions, room occupants, crisis flag
2026-04-12 20:37:26 -04:00