Feat/lobby api and bots - #3
Open
AryanTD wants to merge 4 commits into
Open
Conversation
- add npm workspaces root with concurrently dev script - add shared @npl-auction/types package with all Socket.io event contracts - add Express + Socket.io server with CORS and graceful shutdown - add full Prisma schema (8 models) and optimised seed script - add npl-2024 and npl-2025 player JSON files (88 players each) - add .gitignore, .env.example, tsconfig, nodemon config
- add POST /lobby/create, POST /lobby/join/:code, GET /lobby/:id - fix race condition in lobby code generation using constraint retry - cache franchise list to avoid repeated DB fetches on lobby creation - add prisma singleton client in src/lib/prisma.ts - add bot personalities config (AGGRESSIVE, CONSERVATIVE, ROLE_HUNTER, BUDGET_SNIPER, BALANCED) with aggression, eagerness, and role weights - add mock claudeBot.ts with heuristic BID/PASS logic and stable interface ready to swap for real Claude API call later - add botManager with AbortSignal cancellation to prevent stale decisions firing after player is sold or phase changes - commit initial DB migration (20260426165922_init) - fix .gitignore to stop ignoring prisma/migrations - update CLAUDE.md build status and add ROADMAP.md task reference
Mark DB migration, lobby API, and bot system as done; remove completed task details from ROADMAP. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.