[kimi] Add /api/matrix/agents endpoint for Matrix visualization (#673) #735

Merged
kimi merged 1 commits from kimi/issue-673 into main 2026-03-21 14:18:47 +00:00

1 Commits

Author SHA1 Message Date
kimi
4c00321957 feat: add /api/matrix/agents endpoint for Matrix visualization
Some checks failed
Tests / lint (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
Adds a new REST endpoint GET /api/matrix/agents that returns the agent
registry in Matrix-compatible format. Agents from agents.yaml are served
with visual properties (color, shape, position) for 3D visualization.

Changes:
- Add matrix_router to world.py with /api/matrix/agents endpoint
- Add _build_matrix_agents_response() to transform agent config
- Add color/shape mappings for known agents with fallbacks
- Add circular position calculation for agent layout
- Register matrix_router in app.py
- Add comprehensive tests for the new endpoint

Fixes #673
2026-03-21 10:17:30 -04:00