[kimi] feat: add agent_state message producer (#669) #698

Merged
kimi merged 1 commits from kimi/issue-669 into main 2026-03-21 13:46:11 +00:00
Collaborator

Fixes #669

Summary

  • Added produce_agent_state(agent_id, presence) to src/infrastructure/presence.py
  • Returns Matrix-compatible dict with type, agent_id, data, and ts (Unix timestamp)
  • data includes: display_name, role, status, mood, energy, bark
  • Status derived from current_focus: thinking/speaking/idle/online
  • Comprehensive tests covering all fields, defaults, and status mapping
  • All 2420 unit tests pass, lint clean
Fixes #669 ## Summary - Added `produce_agent_state(agent_id, presence)` to `src/infrastructure/presence.py` - Returns Matrix-compatible dict with `type`, `agent_id`, `data`, and `ts` (Unix timestamp) - `data` includes: `display_name`, `role`, `status`, `mood`, `energy`, `bark` - Status derived from `current_focus`: thinking/speaking/idle/online - Comprehensive tests covering all fields, defaults, and status mapping - All 2420 unit tests pass, lint clean
kimi added 1 commit 2026-03-21 13:45:49 +00:00
feat: add agent_state message producer for Matrix frontend
Some checks failed
Tests / lint (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
2b883dd35f
Add produce_agent_state() to infrastructure/presence that converts
ADR-023 presence dicts into Matrix-compatible agent_state messages
with type, agent_id, data (display_name, role, status, mood, energy,
bark), and Unix timestamp.

Includes status derivation from current_focus (thinking/speaking/idle/online)
and comprehensive tests covering all fields, defaults, and status mapping.

Fixes #669

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
kimi merged commit 62bde03f9e into main 2026-03-21 13:46:11 +00:00
kimi deleted branch kimi/issue-669 2026-03-21 13:46:11 +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#698