Commit Graph
92 Commits
Author SHA1 Message Date
Hide_D f01a21f2f0 feat: implement user session management with Redis and add game token verification 2025-12-30 01:55:40 +00:00
Hide_D 29523ef22f feat: implement Redis session management and user authentication flow 2025-12-30 01:38:09 +00:00
Hide_D 1688ca0d23 feat: implement game API with TRPC and Redis transport
- Added GameApiConfig interface and configuration resolver from environment variables.
- Created GameApiContext for managing database and transport dependencies.
- Implemented InMemoryTurnDaemonTransport for testing purposes.
- Developed RedisTurnDaemonTransport for command and status handling via Redis streams.
- Defined TurnDaemonStreamKeys for namespacing Redis streams by profile.
- Established TRPC router with endpoints for health check, world state retrieval, and turn daemon commands (run, pause, resume, status).
- Integrated Fastify server with TRPC and Redis transport.
- Added unit tests for router functionality and stream key generation.
- Configured Vitest for testing environment.
2025-12-30 01:04:52 +00:00
Hide_D d6c4a4ae25 docs: update README to clarify npm package version maintenance during initial development 2025-12-30 00:19:15 +00:00
Hide_D a650fc2daa feat: add JosaUtil for Korean grammatical handling in 의병모집 and 인재탐색 actions 2025-12-30 00:11:25 +00:00
Hide_D 30de11797b feat: update typecheck script for incremental compilation and add JosaUtil for Korean postposition handling 2025-12-29 12:50:45 +00:00
Hide_D cd43445e4b feat: add 발령 (Assignment) and 포상 (Award) actions for generals, and implement 휴식 (Rest) action 2025-12-29 12:26:58 +00:00
Hide_D 7f73110621 feat: update typecheck script to use incremental compilation 2025-12-29 12:11:10 +00:00
Hide_D 69be22749d feat: add 휴식 (Rest) action for generals 2025-12-29 12:11:05 +00:00
Hide_D 0e0ae82e03 feat: add 인재탐색 및 의병모집 기능 구현 2025-12-29 11:59:00 +00:00
Hide_D ee719df8fe feat: add 화계 (Fire Attack) action for generals
- Implemented the 화계 action in the general turn actions, allowing generals to perform sabotage on enemy cities.
- Created CommandResolver and ActionResolver classes to handle the logic and resolution of the action.
- Added necessary constraints to ensure valid conditions for executing the action, including checks for city occupation and resource requirements.
- Updated the general action index to include the new 화계 action.
- Introduced evaluation functions for constraints to manage action prerequisites effectively.
- Enhanced logging for successful and failed attempts of the 화계 action, providing detailed feedback on outcomes.
2025-12-29 09:38:32 +00:00
Hide_D 27cc016804 feat: 로그 시스템 구현 및 관련 클래스 추가 2025-12-29 08:40:01 +00:00
Hide_D e0eb768e2e feat: 턴 다이아몬드 CLI 추가 및 상태 관리 개선 2025-12-29 07:50:35 +00:00
Hide_D 86c5d5f111 feat: 턴 처리 및 데이터베이스 연동을 위한 새로운 클래스 및 인터페이스 추가 2025-12-29 07:41:43 +00:00
Hide_D b11a546ffa feat: 게임 엔진 리소스 복사 기능 추가 2025-12-29 06:13:07 +00:00
Hide_D 754089f69f feat: vitest를 사용하여 테스트 환경 설정 2025-12-29 06:08:26 +00:00
Hide_D 7a99fd2450 feat: add @types/pg dependency and update pnpm lockfile 2025-12-29 06:00:50 +00:00
Hide_D 124b070dc9 feat: add initial Pokémon map data and loader
- Introduced a new JSON file `map_pokemon_v1.json` containing detailed city data for the Pokémon map, including attributes like population, agriculture, commerce, and connections.
- Implemented a map loader in `mapLoader.ts` to read and parse map definitions from JSON files, allowing for dynamic loading of map data.
- Created a script `generate-map-data.mjs` to convert legacy PHP map data into the new JSON format, ensuring compatibility with the updated map system.
2025-12-29 05:59:15 +00:00
Hide_D 9fe4c8f96c feat: refactor database connection handling and add legacy map loading functionality
- Updated check-connections.mts to use Prisma with PostgreSQL adapter.
- Introduced databaseUrl.ts for resolving database URLs from environment variables.
- Added legacyMapLoader.ts to load and parse legacy map data.
- Implemented scenarioSeeder.ts to seed scenario data into the database.
- Created tests for scenario seeding in scenarioSeeder.test.ts.
- Configured Prisma datasource in prisma.config.ts to support dynamic database URLs.
2025-12-29 05:49:25 +00:00
Hide_D 7124483001 feat: 상업 투자 관련 로직 및 효과 추가, 엔진에서 더러운 상태 추적 기능 개선 2025-12-28 18:21:47 +00:00
Hide_D b927a30e97 feat: TurnDaemonLifecycle 및 관련 타입 개선, getNextTickTime 추가 2025-12-28 18:07:05 +00:00
Hide_D 87327cb5b5 feat: DomesticCommandLoader 및 GeneralAction 관련 타입 개선 2025-12-28 17:27:49 +00:00
Hide_D bfe28773e9 feat: 엔진 및 턴 스케줄 관련 인터페이스 및 로직 추가 2025-12-28 17:21:58 +00:00
Hide_D 8a2fc4fec5 feat: 일반 역할 및 슬롯 인터페이스 추가, 시나리오 파싱 및 부트스트랩 로직 개선 2025-12-28 17:11:05 +00:00
Hide_D 62c1c0f9c6 feat: vite-tsconfig-paths 추가로 타입 경로 설정 개선 2025-12-28 16:43:33 +00:00
Hide_D 45c238ab38 feat: crewTypeId 및 defaultCrewTypeId 추가로 시나리오 부트스트랩 개선 2025-12-28 16:40:28 +00:00
Hide_D f7d9d423fa feat: tsconfig 및 package.json 수정으로 타입 체크 및 빌드 설정 개선 2025-12-28 16:32:43 +00:00
Hide_D 54252dc6b4 feat: 월드 스냅샷 및 시나리오 부트스트랩 관련 타입 및 로더 구현 2025-12-28 15:26:25 +00:00
Hide_D a4c74b860e feat: 각 패키지에 타입 체크 스크립트 추가 및 빌드 스크립트 수정 2025-12-28 15:03:38 +00:00
Hide_D 66ebf6b76e feat: parseScenarioEnvironment에서 scenarioEffect를 조건부로 추가하도록 수정 2025-12-28 14:59:44 +00:00
Hide_D 174c171e10 feat: zod를 사용하여 외부 JSON 데이터 입력 검증 추가 및 스키마 리팩토링 2025-12-28 14:53:52 +00:00
Hide_D ed9ee671a7 Scenario 복사 2025-12-28 14:48:09 +00:00
Hide_D afe5cadd9f feat(wip): 시나리오 로더 및 파서 구현, 관련 타입 추가 2025-12-28 14:42:23 +00:00
Hide_D fab128943c feat: TurnDaemonLifecycle 테스트 추가 2025-12-28 14:24:30 +00:00
Hide_D 68e8a89c89 feat: runtime 문서에 tsdown 및 Vite 사용 추가 2025-12-28 13:18:09 +00:00
Hide_D e99c7b2c83 feat: update build and dev scripts to use tsdown; add tsdown config file
- Changed build script in packages/logic/package.json to use tsdown instead of tsc.
- Updated dev script in packages/logic/package.json to use tsdown with watch mode.
- Added tsdown as a devDependency in packages/logic/package.json.
- Updated pnpm-lock.yaml to include tsdown and its dependencies across various apps.
- Created a new tsdown.config.ts file to define build configuration for the workspace.
2025-12-28 13:16:07 +00:00
Hide_D 962b6dc15a fix: PrismaClientOptions 타입 참조 수정 및 RedisConnector의 client 타입 변경 2025-12-28 13:01:13 +00:00
Hide_D 4dbbcca9d9 feat: RNG 테스트 파일 추가 및 기존 테스트 파일 삭제 2025-12-28 12:51:57 +00:00
Hide_D cbea41ffbc feat: 게임 엔진에 Clock 인터페이스 및 관련 클래스 추가, 테스트 케이스 작성 2025-12-28 12:48:13 +00:00
Hide_D 4f69d31fb1 feat: 개발 체크리스트 추가 및 TypeScript 타입 검사 방법 명시 2025-12-28 12:40:01 +00:00
Hide_D 4cab4d55c5 feat: tsconfig 설정 개선 및 경로 추가 2025-12-28 12:37:49 +00:00
Hide_D fa22562bb1 refactor: migrate RNG and utility functions to common package
- Removed RNG interface and related utility classes from logic package.
- Added RNG interface and utility classes in common package.
- Implemented various RNG classes (ConstantRNG, MidpointRNG, SineRNG, SequenceRNG) in common package.
- Updated conversion utilities for BytesLike to ArrayBuffer and Uint8Array in common package.
- Adjusted tests to import RNG utilities from the new common package.
- Updated vitest configuration to resolve common package imports.
2025-12-28 12:27:47 +00:00
Hide_D 27b243b121 feat: infra 패키지 추가 및 PostgreSQL, Redis 커넥터 구현 2025-12-28 12:18:42 +00:00
Hide_D 77e5b251ef feat: TypeScript 타입 정의 추가 및 환경 파일 로드 기능 개선 2025-12-28 12:13:50 +00:00
Hide_D 04c250fed5 feat: 데이터베이스 및 Redis 연결 테스트 스크립트 추가 2025-12-28 12:10:39 +00:00
Hide_D 2caba52b7a feat: 환경 설정 파일 추가 및 docker-compose.yml 수정 2025-12-28 11:57:27 +00:00
Hide_D c4904e620b feat: docker-compose.yml에서 PostgreSQL 데이터 볼륨 이름 변경 2025-12-28 11:47:56 +00:00
Hide_D 0ef2b45523 feat: .gitignore에 docker-compose.override.yml 추가 및 .env.example과 docker-compose.yml 파일 생성 2025-12-28 11:34:20 +00:00
Hide_D 6a3578180a feat: .gitignore에 개발용 임시 코드 추가 2025-12-28 11:18:27 +00:00
Hide_D 05d8ebe3d3 feat: ManualClock 및 StepClock 클래스 추가와 관련 테스트 케이스 작성
feat: vitest를 devDependencies에 추가하고 테스트 스크립트 수정
docs: 테스트에서 제어 가능한 시계 사용에 대한 내용 추가
2025-12-28 11:14:34 +00:00