feat(agent-office): /activity 통합 피드에 필터 추가 (agent_id/type/status/days)

오버사이트 UI용. get_activity_feed가 브랜치별 WHERE로 필터, total도 동일 반영. status는 task 전용(주면 log 제외). 값은 ? 바인딩, type은 브랜치 선택만이라 injection 안전. 신규 5 테스트.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-11 08:25:19 +09:00
parent c62e3e70b9
commit 2c2828c8f0
4 changed files with 128 additions and 25 deletions

View File

@@ -198,8 +198,9 @@ def conversation_stats(days: int = 7):
return get_conversation_stats(days)
@app.get("/api/agent-office/activity")
def activity_feed(limit: int = 50, offset: int = 0):
return get_activity_feed(limit, offset)
def activity_feed(limit: int = 50, offset: int = 0, agent_id: str | None = None,
type: str | None = None, status: str | None = None, days: int | None = None):
return get_activity_feed(limit, offset, agent_id=agent_id, type=type, status=status, days=days)
# --- Realestate Agent Push Endpoint ---