Commit Graph
20 Commits
Author SHA1 Message Date
Hide_D 5fda95b25a chore: trace reserved turn refresh boundaries 2026-08-05 02:15:33 +00:00
Hide_D f765fe610f fix: refresh general turns at every execution boundary 2026-08-05 02:05:07 +00:00
Hide_D 5932ab9386 fix: recover stale in-memory reserved turn leases 2026-08-05 01:46:01 +00:00
Hide_D bd62197655 fix: refresh reserved turns at execution lease boundary 2026-08-05 01:37:25 +00:00
Hide_D a26031dc3f feat: add logical game clock 2026-08-04 02:51:27 +00:00
Hide_D 58b9a230a7 fix: match scenario 2601 monthly seed progression 2026-08-03 18:56:23 +00:00
Hide_D 19a80127c6 refactor engine state transactions 2026-07-28 01:53:48 +00:00
Hide_D 8f1fe73bad fix reserved turn daemon api serialization 2026-07-26 19:23:25 +00:00
Hide_D 3cd1ad3b7f fix reserved turn queue concurrency 2026-07-26 18:32:52 +00:00
Hide_D 7818b52d04 feat: port monthly invader lifecycle 2026-07-25 19:19:31 +00:00
Hide_D 90d195e721 feat(game-engine): implement CreateManyNPC monthly action 2026-07-25 18:15:52 +00:00
Hide_D 41d70a475c Implement monthly nation level updates 2026-07-25 17:19:44 +00:00
Hide_D 5040691d7c feat: implement input event system with durable command handling
- Introduced InputEvent model with status tracking (PENDING, PROCESSING, SUCCEEDED, FAILED) and unique request IDs.
- Added DatabaseTurnDaemonTransport for sending commands and handling idempotency.
- Implemented executeInputEvent function to manage input event lifecycle and error handling.
- Created DatabaseTurnDaemonCommandQueue for managing command processing and lease recovery.
- Enhanced turn daemon lifecycle to support atomic command execution and error recovery.
- Added tests for input event atomicity, command queuing, and error handling scenarios.
2026-07-25 05:36:34 +00:00
Hide_D 07ea17dacf feat: refactor utility functions for improved consistency and usability; consolidate parsing logic 2026-01-17 12:36:58 +00:00
Hide_D 550910811c feat(ai): add autorun policies for general and nation management
- Introduced `policies.ts` to define AI policies for generals and nations, including priority actions and flags.
- Implemented `AutorunGeneralPolicy` class to manage general-specific actions based on AI options and server/nation policies.
- Implemented `AutorunNationPolicy` class to handle nation-specific actions, including resource requirements and combat strategies.
- Added types for AI context and world view in `types.ts` to facilitate interaction with game state and entities.
2026-01-11 14:49:42 +00:00
Hide_D c965b1120f feat: eslint 적용 및 관련 코드 일괄 수정 2026-01-05 15:46:47 +00:00
Hide_D 1861cbc9c6 feat: Zod를 사용한 월드 상태 구성 및 메타 타입 추가, 사용자 ID 처리 개선 2026-01-05 14:49:19 +00:00
Hide_D a9609dcc19 feat: add database schema support for gateway and game profiles
- Introduced `dbSchema` configuration option in GatewayApiConfig and GatewayOrchestratorConfig.
- Implemented schema resolution logic in environment configuration functions.
- Updated context and orchestrator factory to use GatewayPrismaClient instead of PrismaClient.
- Refactored orchestrator server and profile repository to accommodate new database schema handling.
- Created separate Prisma schemas for game and gateway in the infra package.
- Enhanced Postgres connector to support schema overrides in database URLs.
- Updated documentation to reflect changes in database schema handling.
- Added new Prisma generation and database push scripts for game and gateway schemas.
2026-01-03 14:47:28 +00:00
Hide_D cc78319948 feat: refactor database client types and update related logic across game engine modules 2025-12-30 12:40:55 +00:00
Hide_D 6fe6d54432 feat: add GeneralTurn and NationTurn models with CRUD operations
- Introduced GeneralTurn and NationTurn models in Prisma schema.
- Implemented reserved turns management in the game API, including loading, setting, and shifting turns for generals and nations.
- Created unit tests for reserved turns functionality to ensure correctness.
- Developed reserved turn handler to process actions based on reserved turns.
- Established in-memory storage for reserved turns with persistence to the database.
2025-12-30 04:45:07 +00:00