Initialize environment configuration and enhance API logging
- Added a new .env file for environment variables including database and Redis configurations. - Updated CLAUDE.md with hard rules for development practices. - Enhanced package.json with new scripts for development and infrastructure management. - Integrated Pino for structured logging in the API, replacing the default NestJS logger. - Implemented OpenTelemetry for tracing and monitoring in the API. - Added durationMinutes field to the Mission model in Prisma schema and created corresponding migration. - Updated missions controller and service to handle mission duration and abandonment logic. - Introduced new logger module for consistent logging across the application.
This commit is contained in:
@@ -38,11 +38,14 @@ This is a Twitch Video Overlay extension implementing an autonomous tick-based Z
|
||||
|
||||
## Hard rules
|
||||
|
||||
- Don’t assume. Don’t hide confusion. Surface tradeoffs.
|
||||
- Minimum code that solves the problem. Nothing speculative.
|
||||
- Touch only what you must. Clean up only your own mess.
|
||||
- Define success criteria. Loop until verified.
|
||||
- Do not use `Math.random()` anywhere in game logic.
|
||||
- Do not skip `nextTickAt` jitter — synchronised global ticks will thunder-herd Postgres.
|
||||
- Do not assume Twitch PubSub message delivery; treat as a hint to refresh, reconcile from REST.
|
||||
- Do not add inline scripts or inline event handlers to the overlay HTML — Twitch CSP forbids them.
|
||||
- Do not reproduce Dead by Daylight assets, character names, or trademarked terms in encounter content. The aesthetic is *inspired by* the genre, not a clone.
|
||||
|
||||
## Twitch extension specifics
|
||||
|
||||
|
||||
Reference in New Issue
Block a user