refactor(agent_hub): eliminate hardcoded 'main', DB-driven config
- Add _find_steward_agent()/_find_steward_key() for dynamic steward lookup - Replace all hardcoded 'main' with is_steward-based checks - Simplify prompt building (no more .format() placeholder substitution) - Remove account_mapping from hooks, bot_id from request only - Delete self.agent_to_account / self.account_to_agent - Add REVIEW_GUIDE module constant - API endpoint uses is_steward instead of 'main' check Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Showing
2 changed files
with
65 additions
and
71 deletions
-
Please register or sign in to post a comment