[kimi] Add bark message producer for Matrix bark messages (#671) #732
Reference in New Issue
Block a user
Delete Branch "kimi/issue-671"
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 #671
Summary
Added
produce_bark()function tosrc/infrastructure/presence.pythat formats chat responses as Matrix bark messages for the 3D world.Changes
src/infrastructure/presence.py: Added
produce_bark(agent_id, text, reply_to=None, style="speech")functiontype="bark",agent_id,data={text, reply_to, style}, andtsstyledefaults to "speech", supports "thought", "whisper", "shout"BARK_STYLESconstant for valid style valuestests/unit/test_presence.py: Added comprehensive
TestProduceBarktest classVerification
Adds produce_bark() to src/infrastructure/presence.py that formats chat responses as Matrix bark messages with: - type='bark', agent_id, data={text, reply_to, style}, ts - style defaults to 'speech', supports 'thought', 'whisper', 'shout' - Text truncated to 280 characters - Invalid styles fall back to 'speech' Adds comprehensive tests for all bark functionality. Fixes #671