Skip to content

Feat/lobby api and bots - #3

Open
AryanTD wants to merge 4 commits into
mainfrom
feat/lobby-api-and-bots
Open

Feat/lobby api and bots#3
AryanTD wants to merge 4 commits into
mainfrom
feat/lobby-api-and-bots

Conversation

@AryanTD

@AryanTD AryanTD commented Apr 27, 2026

Copy link
Copy Markdown
Owner

No description provided.

AryanTD and others added 4 commits April 26, 2026 12:19
- 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant