undef-engine
2026-01-10
Undef Dice game, NPC handler framework, and D1 storage backends
86 files · 5,763+ · 3,971-
NPC handler framework
11 files changed
__init__.pyCreated NPC handlers packagebase.pyAdded base NPC handlerframework.pyAdded NPC handler frameworkprotocols.pyAdded NPC handler protocolsbluffalo.pyAdded Bluffalo NPC handlersubmission.pyAdded CAW submission handlerwinner_pick.pyAdded CAW winner pick handlerdebate_club.pyAdded Debate Club NPC handlerhive_mind.pyAdded Hive Mind NPC handlersick_day.pyAdded Sick Day NPC handlerterrible_psychiatrist.pyAdded Terrible Psychiatrist NPC handler
- Created NPC handler framework with base handler, protocols, and game-specific implementations
instantiate
behavioral
3 files
base.pyframework.pyprotocols.py
- Added NPC handlers for Bluffalo, CAW, Debate Club, Dial In, Hive Mind, Peer Review, Sick Day, and Terrible Psychiatrist
instantiate
internal
4 files
bluffalo.pydebate_club.pyhive_mind.pysick_day.py
Cloudflare D1 storage backends
6 files changed
__init__.pyCreated D1 storage backendauth.pyD1 auth storagechat.pyD1 chat storagecontent.pyD1 content storagesessions.pyD1 session storagefactory.pyUpdated storage factory for D1
- Added D1 storage backends for auth, chat, content, and sessions
instantiate
internal
4 files
auth.pychat.pycontent.pysessions.py
- Updated storage factory to support D1 backend selection
decouple
internal
1 file
factory.py
Test coverage improvements
5 files changed
test_handler.pyAdded CAW handler teststest_hooks.pyAdded CAW hooks teststest_chat_integration.pyAdded chat integration teststest_websocket_race_conditions.pyAdded WebSocket race condition teststest_room_privacy.pyAdded room privacy tests