[kimi] Add matrix config loader utility (#680) #742

Merged
kimi merged 1 commits from kimi/issue-680 into main 2026-03-21 15:05:07 +00:00
Collaborator

Fixes #680

Summary

Added a matrix config loader utility that provides typed configuration for the Matrix frontend.

Changes

  • src/infrastructure/matrix_config.py: New module with:

    • MatrixConfig dataclass with sections: lighting, environment, features, agents
    • load_from_yaml(path) function that loads config/matrix.yaml with sensible defaults
    • Missing keys fall back to defaults (no crashes)
    • Default lighting: warm amber ambient (#FFAA55) + cool blue starfield (Workshop + Matrix blend)
    • Default features: all enabled
  • config/matrix.yaml: Updated with correct lighting defaults (warm amber ambient)

  • tests/unit/test_matrix_config.py: Comprehensive unit tests covering:

    • All dataclass defaults
    • Loading from YAML files
    • Graceful handling of missing/invalid files
    • Round-trip serialization

Testing

  • tox -e unit: 2564 passed
  • tox -e lint: All checks passed
  • tox -e format: Already formatted
Fixes #680 ## Summary Added a matrix config loader utility that provides typed configuration for the Matrix frontend. ## Changes - **src/infrastructure/matrix_config.py**: New module with: - `MatrixConfig` dataclass with sections: lighting, environment, features, agents - `load_from_yaml(path)` function that loads config/matrix.yaml with sensible defaults - Missing keys fall back to defaults (no crashes) - Default lighting: warm amber ambient (#FFAA55) + cool blue starfield (Workshop + Matrix blend) - Default features: all enabled - **config/matrix.yaml**: Updated with correct lighting defaults (warm amber ambient) - **tests/unit/test_matrix_config.py**: Comprehensive unit tests covering: - All dataclass defaults - Loading from YAML files - Graceful handling of missing/invalid files - Round-trip serialization ## Testing - tox -e unit: 2564 passed - tox -e lint: All checks passed - tox -e format: Already formatted
kimi added 1 commit 2026-03-21 15:04:34 +00:00
feat: add matrix config loader utility
Some checks failed
Tests / lint (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
4403f490ba
- Add MatrixConfig dataclass with lighting, environment, features, agents sections
- Implement load_from_yaml() with sensible defaults for missing keys
- Default lighting: warm amber ambient (#FFAA55) + cool blue accents
- Default features: all enabled
- Add comprehensive unit tests

Fixes #680
kimi merged commit 5f4580f98d into main 2026-03-21 15:05:07 +00:00
kimi deleted branch kimi/issue-680 2026-03-21 15:05:07 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#742