tw2002
2026-02-08
TW2002
897 files · 31,916+ · 37,850-
Bugfix: Admin Command Registration and Session Stability
- Fixed admin
@command not being registered in production CF Workers environment remediate behavioral - Progressed through 5 iterations: explicit import, failsafe registration, direct import, removing decorator interface internal
- Added comprehensive error handling to admin menu to prevent disconnections remediate internal
- Added error handling to post-command operations (tick_npcs, mercenary expiration, transport, limpet damage) to prevent silent disconnections remediate behavioral
- Fixed help command (
?) disconnect caused by missingmercenary_expire_turnfield in SQL schema remediate behavioral - Added auto-migration to ALTER existing tables with missing columns instantiate internal
- Improved error logging for command module imports (replaced
contextlib.suppress) decouple behavioral
Feature: UWARP Admin System
- Added UWARP admin character 0 system for streamlined testing qualify internal
- Auto-creation of UWARP admin character during production seeding decouple internal
- Fixed password for auto-created Uwarp character remediate internal
- Added
AliasChoicesforuwarp_adminto support both env var and parameter baseline internal - Fixed
PlayerRecordattribute names in UWARP system remediate internal - Added standalone UWARP server demonstration and comprehensive test scripts qualify internal
- Renamed worker to ‘warp’ and added custom domain
warp.undef.todecouple internal - Added
UWARP_ADMINto default environment configuration baseline behavioral
Feature: Gold Gameplay Mechanics
- Implemented limpet attach-on-contact mechanic decouple internal
- Added limpet mine damage over time (B3) instantiate internal
- Wired photon wave persistence decouple internal
- Added TransWarp Type 1 tow enforcement instantiate internal
- Completed Gold features audit (all HIGH/MEDIUM gaps fixed) remediate internal
Feature: Corporate System Completion
- Wired corporate war/alliance system into corporation menu decouple internal
- Updated feature completeness: Corporate System now 100% decouple behavioral
Feature: Monitoring Dashboard and API
- Added comprehensive game monitoring dashboard (Phases 1-3) instantiate behavioral
- Added advanced analytics and alerting (Phases 4-5) instantiate internal
- Added Chart.js trends and maintenance monitoring instantiate internal
- Routed
/api/*endpoints to game DO and synced monitoring module interface behavioral - Fixed MetricsCalculator stub to prevent 404s on metrics endpoints qualify internal
Feature: Additional Gameplay Features
- Added ISS, space pirates, and alien trader encounters instantiate internal
- Added corp planet transfer command instantiate behavioral
- Added Federal Commission trading benefits instantiate internal
- Added planet-to-planet colonist transport scheduling with SQLite-backed persistence instantiate internal
- Added 4 enhanced underground services instantiate internal
- Added planet types C and U to genesis instantiate internal
- Added fake ID alias persistence to player records instantiate internal
- Added mercenary expiration tracking with dedicated manager instantiate internal
Bugfix: Frontend and Deployment Fixes
- Fixed ANSI art on initial login, line clearing, dashboard fields, and prompt colors remediate behavioral
- Used CP437 encoding for ANSI art screens instead of UTF-8 decouple internal
- Fixed character port spawning with correct
sector_idattribute remediate internal - Fixed dashboard bundling and ANSI screen JSON escaping remediate behavioral
- Cleaned up static frontend, added invite gate and admin auth harden internal
- Randomized starting sector for new players instantiate internal
- Routed WebSocket to correct DO instance (default) to fix login remediate behavioral
Test: Production and Integration Tests
- Added comprehensive UWARP system test scripts qualify internal
- Updated BigBang integration tests for 1-indexed lists qualify internal
- Updated port generator tests for 1-indexed list with dummy qualify internal
- Fixed missing json import and updated test imports/signatures qualify internal
- Added production admin menu tests (418 lines) qualify internal
- Removed OpenAPI contract test (obsolete) qualify internal
Docs: Handoff and Testing Documentation
- Added comprehensive Phase 1-2 implementation handoff document instantiate internal
- Added PATH-C combat and encounters test path (20 steps) qualify internal
- Added comparison testing prompt and deployment guide qualify behavioral
- Documented UWARP admin system implementation and test fixes qualify internal
- Added ANSI art implementation details to HANDOFF instantiate internal