Implemented Phase 2.4 (Dependency Injection Pattern): - Added new dependencies module with DI container and runtime context - RuntimeContainer for injectable factories - RuntimeContext for resolved runtime objects - create_service_manager() factory - build_runtime_context() composition root - Refactored main.py to use dependency container wiring - Main orchestration now resolves runtime via DI factories - Reduced direct constructor coupling in entrypoint - Added unit tests for DI behavior with mocked dependencies - Verifies factory injection for service manager creation - Verifies runtime composition uses injected callables - Updated optimization plan checkboxes for Phase 2.4 Validation: - py_compile passed for new/changed files - tests/unit/test_dependencies.py passed - regression test test_event_queue::test_enqueue passed Notes: - Keeps existing runtime behavior unchanged - Establishes clear composition root for future testability improvements |
||
|---|---|---|
| .github/workflows | ||
| extra-addons/open_workshop/open_workshop_mqtt | ||
| iot_bridge | ||
| odoo@fd43f0445a | ||
| .gitignore | ||
| .readthedocs.yaml | ||
| DEPLOYMENT.md | ||
| DOCUMENTATION_STRATEGY.md | ||
| FEATURE_REQUEST_DEVICE_STATUS.md | ||
| FEATURE_REQUEST_OPEN_WORKSHOP_MQTT_IoT.md | ||
| IMPLEMENTATION_PLAN_DEVICE_STATUS.md | ||
| IMPLEMENTATION_PLAN.md | ||