Commit Graph

14 Commits

Author SHA1 Message Date
kimi
6739ec0da8 feat: Add produce_system_status() for Matrix system health messages
Some checks failed
Tests / lint (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
Implements produce_system_status() in src/infrastructure/presence.py that
generates system_status messages for the Matrix frontend.

Features:
- agents_online: Count of agents with status != offline
- visitors: Count from WebSocket clients (_ws_clients)
- uptime_seconds: Time since APP_START_TIME
- thinking_active: Bool from thinking engine state and settings
- memory_count: Total memories from get_memory_stats()

All data collection uses graceful degradation (try/except blocks)
to ensure the function never crashes even when dependencies fail.

Includes comprehensive tests in tests/unit/test_presence.py covering:
- Message structure validation
- Data field types and non-negativity
- Graceful degradation on errors
- Timestamp format

Fixes #681
2026-03-21 11:10:39 -04:00
5f4580f98d [kimi] Add matrix config loader utility (#680) (#742)
Some checks failed
Tests / lint (push) Has been cancelled
Tests / test (push) Has been cancelled
2026-03-21 15:05:06 +00:00
ada0774ca6 [kimi] Add Pip familiar state to agent_state messages (#676) (#738)
Some checks failed
Tests / lint (push) Has been cancelled
Tests / test (push) Has been cancelled
2026-03-21 14:37:39 +00:00
646eaefa3e [kimi] Add produce_thought() to stream thinking to Matrix (#672) (#734)
Some checks failed
Tests / lint (push) Has been cancelled
Tests / test (push) Has been cancelled
2026-03-21 14:09:19 +00:00
2fa5b23c0c [kimi] Add bark message producer for Matrix bark messages (#671) (#732)
Some checks failed
Tests / lint (push) Has been cancelled
Tests / test (push) Has been cancelled
2026-03-21 14:01:42 +00:00
62bde03f9e [kimi] feat: add agent_state message producer (#669) (#698)
Some checks failed
Tests / lint (push) Has been cancelled
Tests / test (push) Has been cancelled
2026-03-21 13:46:10 +00:00
3474eeb4eb [kimi] refactor: extract presence state serializer from workshop heartbeat (#668) (#697)
Some checks failed
Tests / lint (push) Has been cancelled
Tests / test (push) Has been cancelled
2026-03-21 13:41:42 +00:00
e92e151dc3 [kimi] refactor: extract WebSocket message types into shared protocol module (#667) (#696)
Some checks failed
Tests / lint (push) Has been cancelled
Tests / test (push) Has been cancelled
2026-03-21 13:37:28 +00:00
4ba8d25749 feat: Lightning Network integration for tool usage (#610)
All checks were successful
Tests / lint (push) Successful in 3s
Tests / test (push) Successful in 1m16s
Co-authored-by: Kimi Agent <kimi@timmy.local>
Co-committed-by: Kimi Agent <kimi@timmy.local>
2026-03-20 13:07:02 -04:00
12582ab593 fix: stabilize flaky test_uses_model_when_available (#456)
All checks were successful
Tests / lint (push) Successful in 3s
Tests / test (push) Successful in 1m25s
Co-authored-by: Kimi Agent <kimi@timmy.local>
Co-committed-by: Kimi Agent <kimi@timmy.local>
2026-03-19 14:39:33 -04:00
de089cec7f [loop-cycle-524] fix: remove numpy test dependency in test_memory_embeddings (#451)
All checks were successful
Tests / lint (push) Successful in 2s
Tests / test (push) Successful in 1m38s
2026-03-19 14:22:13 -04:00
2161c32ae8 fix: add unit tests for agentic_loop.py (#421) (#447)
Some checks failed
Tests / lint (push) Successful in 2s
Tests / test (push) Failing after 1m12s
Co-authored-by: Kimi Agent <kimi@timmy.local>
Co-committed-by: Kimi Agent <kimi@timmy.local>
2026-03-19 14:13:50 -04:00
1d79a36bd8 fix: add unit tests for memory/embeddings.py (#437)
Some checks failed
Tests / lint (push) Successful in 3s
Tests / test (push) Failing after 1m5s
Co-authored-by: Kimi Agent <kimi@timmy.local>
Co-committed-by: Kimi Agent <kimi@timmy.local>
2026-03-19 11:12:46 -04:00
db7220db5a test: add unit tests for memory/unified.py (#353)
Some checks failed
Tests / lint (push) Successful in 4s
Tests / test (push) Has been cancelled
Co-authored-by: Kimi Agent <kimi@timmy.local>
Co-committed-by: Kimi Agent <kimi@timmy.local>
2026-03-18 21:23:03 -04:00