[kimi] Add system_status message producer (#681) #743
Reference in New Issue
Block a user
Delete Branch "kimi/issue-681"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #681
Summary
Implements
produce_system_status()insrc/infrastructure/presence.pythat generates system_status messages for the Matrix frontend.Changes
produce_system_status()function that returns a dict with:type: "system_status"data: Object containing system health metricsagents_online: Count of agents with status != offlinevisitors: Count from WebSocket clients (_ws_clients)uptime_seconds: Time since APP_START_TIMEthinking_active: Bool from thinking engine state and settingsmemory_count: Total memories from get_memory_stats()ts: Unix timestampDesign Decisions
Tests
Added comprehensive test class
TestProduceSystemStatusintests/unit/test_presence.pycovering:Verification