refactor: Enhance environment configuration and loading mechanism

- Implement flexible environment variable loading strategy
- Add support for environment-specific and local override configuration files
- Create new `loadEnv.ts` module for dynamic environment configuration
- Update configuration loading in multiple config files
- Remove deprecated `.env.development.template`
- Add setup script for environment validation
- Improve WebSocket error handling and client configuration
This commit is contained in:
jango-blockchained
2025-02-06 08:55:23 +01:00
parent e96fa163cd
commit 69e9c7de55
15 changed files with 193 additions and 741 deletions

View File

@@ -4,7 +4,7 @@ HASS_HOST=http://homeassistant.local:8123
# Long-lived access token from Home Assistant
# Generate from Profile -> Long-Lived Access Tokens
HASS_TOKEN=your_home_assistant_token
HASS_TOKEN=your_long_lived_token
# WebSocket URL for real-time updates
HASS_SOCKET_URL=ws://homeassistant.local:8123/api/websocket
@@ -105,7 +105,10 @@ TEST_PORT=3001
# Speech Features Configuration
ENABLE_SPEECH_FEATURES=false
ENABLE_WAKE_WORD=true
ENABLE_SPEECH_TO_TEXT=true
ENABLE_WAKE_WORD=false
ENABLE_SPEECH_TO_TEXT=false
WHISPER_MODEL_PATH=/models
WHISPER_MODEL_TYPE=base
WHISPER_MODEL_TYPE=tiny
# Advanced (Docker)
COMPOSE_PROJECT_NAME=mcp