tw2002
2026-02-12
TW2002
625 files · 18,887+ · 4,596-
Refactor: Rename telnet -> terminal Module
- Renamed
src/twerk/server/telnet/tosrc/twerk/server/terminal/decouple internal - Created
transports/subdirectory for protocol adapters (telnet.pymoved totransports/telnet.py) decouple internal - Updated 128 internal imports across 51 files within the terminal module decouple internal
- Updated 11 external import files (session, npc, frontend, engine, api, server modules) interface behavioral
- Synced terminal refactoring to worker directory (157 files copied, 62 deleted) decouple internal
- Updated all documentation references decouple internal
- BREAKING: All imports from
twerk.server.telnetmust update totwerk.server.terminaldecouple internal
Feature: 3D Galaxy Visualization
- Created morphing galaxy visualization with distinct 3D shapes per sector type (spheres for planets, cubes for ports, octahedrons for stardocks, tetrahedrons for normal) decouple internal
- Interactive morph slider from flat hex grid to 3D torus layout decouple internal
- Hover highlighting, click-to-zoom with centered camera positioning decouple internal
- Color-coded sectors (magenta=planets, yellow=ports, green=stardocks, blue=normal) decouple internal
- Added slow rotation to individual sectors instantiate internal
- Persistent warp lines on sector click, dark gray warp connections decouple internal
- Shuffle sectors for even visual distribution in hex grid decouple internal
- Fixed torus position calculation (use shuffled index, not sector ID) remediate internal
- Added Galaxy Map button to main UI, ANSI screen viewer with dropdown selector instantiate behavioral
- Integrated with worker via static bundle decouple internal
Feature: Galaxy JSON Export API
- Created
handlers/galaxy.pywithcalculate_torus_position()using golden angle spiral decouple internal enrich_sector_data()adds ports/planets/players/aliens per sector instantiate internal- Registered
GET /api/galaxy/exportendpoint with CORS headers interface behavioral - Created design document and implementation plan decouple internal
Feature: Centralized Input Validation (Phases 1-5)
- Created
input_utils.pycentralized validation utilities module decouple internal - Phase 2: Initial migration of validation patterns instantiate internal
- Phase 3: Migrated corporation, weapons, hardware, shipyard, planet ships, uwarp, mail, navigation, probes modules decouple internal
- Phase 4: Migrated underground, landing, diplomacy modules decouple internal
- Phase 5: Migrated deploy and admin modules decouple internal
- Added input sanitization for player/character names instantiate internal
- Property-based tests for input validation qualify internal
Feature: Critical Gold Features
Feature: SQLiteGameStore with Dirty Tracking
- Added
SQLiteGameStorefor local server per-command persistence instantiate behavioral - Extracted DRY
BaseGameStorewith dirty tracking and batch commits decouple internal - Consolidation of 50+ game constants into central location (
constants.py) decouple internal
Feature: Login Flow Redesign
- Streamlined login to direct Commander name prompt (removed extra menu step) decouple behavioral
- Modern web UX with clear numbered menu, color-coded prompts, visual separators decouple behavioral
- Progressive steps: Name -> Password -> Ship selection decouple internal
- Added exit/cancel support during character creation instantiate internal
- Fixed f-string syntax errors in character creation remediate internal
Feature: Smart Defaults for Serve Commands
data_dirnow optional in all serve commands decouple internal- Try multiple default locations:
~/.twerk/default,../data/games/GameB,./datadecouple behavioral
Config: Project Setup
Docs: Comprehensive Documentation
- Galaxy visualization user guide decouple internal
- Torus galaxy integration design document decouple internal
- Galaxy JSON export implementation plan interface internal
- Gold features limitations analysis and testing guide qualify internal
- Comprehensive implementation guide for three features decouple internal
- Telnet-to-terminal refactoring plan decouple internal