docs: complete documentation and add web monitoring dashboard

- Add comprehensive configuration guide (docs/configuration.md)
- Add development guide with setup instructions (docs/development.md)
- Add complete API reference documentation (docs/api_reference.md)
- Update README.md with new features and project structure
- Update TODO.md to reflect current implementation status
- Add web monitoring dashboard with FastAPI and WebSocket support
- Add tests for sync integration and web monitoring
- Update config example with monitoring settings

The MUD AI Player is now feature-complete with full documentation.
This commit is contained in:
truetype committed 2026-02-09 10:44:25 +01:00
1 parent 69ba824bc8
commit b9f21c7199
14 files changed
+2658 -160

No files matched your search

+25 -17
View File
@@ -79,23 +79,31 @@ class BehaviorConfig(BaseModel):
typo_probability: float = 0.0
class LoggingConfig(BaseModel):
"""Logging configuration"""
level: str = "INFO"
file: str = "data/logs/game.log"
console: bool = True
max_file_size_mb: int = 10
backup_count: int = 5
class Config(BaseModel):
"""Main configuration"""
mud: MudConfig
character: CharacterConfig = Field(default_factory=CharacterConfig)
ai: AIConfig = Field(default_factory=AIConfig)
mapper: MapperConfig = Field(default_factory=MapperConfig)
behavior: BehaviorConfig = Field(default_factory=BehaviorConfig)
logging: LoggingConfig = Field(default_factory=LoggingConfig)
class LoggingConfig(BaseModel):
"""Logging configuration"""
level: str = "INFO"
file: str = "data/logs/game.log"
console: bool = True
max_file_size_mb: int = 10
backup_count: int = 5
class MonitoringConfig(BaseModel):
"""Web monitoring dashboard configuration"""
enabled: bool = True
host: str = "127.0.0.1"
port: int = 8080
class Config(BaseModel):
"""Main configuration"""
mud: MudConfig
character: CharacterConfig = Field(default_factory=CharacterConfig)
ai: AIConfig = Field(default_factory=AIConfig)
mapper: MapperConfig = Field(default_factory=MapperConfig)
behavior: BehaviorConfig = Field(default_factory=BehaviorConfig)
logging: LoggingConfig = Field(default_factory=LoggingConfig)
monitoring: MonitoringConfig = Field(default_factory=MonitoringConfig)
def load_config(config_path: str = "config.yaml") -> Config: