tw2002
2026-02-07
TW2002
2448 files · 293,265+ · 53,202-
Feature: Web Terminal and Browser-Based Gameplay
- Added xterm.js web terminal (
terminal.html,terminal.js) for browser-based gameplay instantiate internal - Full 80x24 terminal emulation with ANSI color support and auto-reconnect instantiate internal
- Redesigned login page with terminal as primary option, web UI as Beta decouple architectural
- Added Logout button to game pages instantiate internal
- Fixed terminal redirect URL to absolute path remediate internal
- Fixed protocol auto-detection: JSON commands route to CommandEngine, terminal input routes to game_loop remediate internal
Feature: Cloudflare Workers Production Deployment (5 Phases)
- Phase 1: Worker automation and static bundling with complete deployment pipeline decouple internal
- Phase 2: Dual-mode WebSocket protocol support and full game_loop integration interface internal
- Phase 3: Structured logging and circuit breakers decouple behavioral
- Phase 4: Load testing and benchmark suite (comprehensive 5-level proof suite, 38/38 tests) streamline internal
- Phase 5: Architecture documentation for POC decouple internal
- Added Shared Backend Service architecture and Tier 2 backend integration instantiate internal
- Added AI Agent REST API interface behavioral
- Added telnet-to-WebSocket proxy for CF Workers DO interface internal
Feature: ANSI Art Display System
- Implemented ANSI art display with proper bundling and CP437 encoding decouple behavioral
- Wired all ANSI screens to telnet commands for classic BBS experience decouple internal
- Added ANSI art display for help menu and generic trading ports instantiate behavioral
- Fixed ANSI screens data file location and import path remediate internal
- Regenerated ANSI screens bundle with improved port trading ANSI logic decouple internal
Feature: Monitoring Dashboard
- Implemented comprehensive game monitoring dashboard (Phases 1-3) decouple behavioral
- Added advanced analytics and alerting (Phases 4-5) instantiate internal
- Added Chart.js trends, maintenance monitoring, and local/CF dev setup instantiate internal
- Added monitoring stub modules for dashboard API endpoints qualify behavioral
- Fixed MetricsCalculator stub initialization to prevent 404s qualify internal
Feature: Alien NPC System Integration
Feature: Player Creation and Game Seeding
- Implemented player creation API with random sector spawn and 10k starting credits interface behavioral
- Added
/admin/seedendpoint routing and/admin/resetendpoint interface behavioral - Auto-seed default universe and fix sector IndexError in CF Workers remediate behavioral
- Enabled R2 bucket binding for universe snapshots in production interface internal
- Fixed auto-focus and trigger message handling in terminal.js remediate behavioral
Refactor: Codebase Reorganization
- Reorganized codebase into 4-layer architecture decouple internal
- Flattened commands/ double nesting, cleaned up session imports decouple internal
- Fixed code quality issues (ruff, mypy type errors in server/api and server/engine) specify behavioral
- Switched from anyio to pytest-asyncio for async tests qualify internal
- Added comprehensive unit tests with 100% pass rate qualify internal
- Removed legacy commented code and obsolete worker bundle duplicates decouple internal
Bugfix: WebSocket and Routing Fixes
- Fixed static file path handling for
/uiendpoint remediate behavioral - Fixed terminal protocol to work like telnet BBS remediate internal
- Added missing
get_port()and computed properties to CF Workers game wrapper instantiate internal - Corrected static file path handling, removed rich/pydantic dependencies from CF Workers bundle remediate internal
- Used
repr()for proper Python string escaping in static bundle decouple internal - Fixed atomic batch seed and robust path parsing in DO worker remediate internal