mirror of
https://github.com/AJaySi/ALwrity.git
synced 2026-04-25 08:55:58 +03:00
[PR #367] [MERGED] Add aggregated /api/agents/huddle/feed endpoint with incremental cursors #676
Labels
No labels
AI Content Agents
AI Content Strategy
AI Content planning
AI Marketing Tools
AI SEO
AI personalization
AI writer
ALwrity Copi-lot
Alwrity web search
Anthropic
DeepSeek
Gemini AI
Integration
LLM
OnBoarding
OnBoarding
RAG knowledgebase Memory
bug
documentation
enhancement
good first issue
help wanted
invalid
openai
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ALwrity#676
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/AJaySi/ALwrity/pull/367
Author: @AJaySi
Created: 3/2/2026
Status: ✅ Merged
Merged: 3/3/2026
Merged by: @AJaySi
Base:
main← Head:codex/add-get-/api/agents/huddle/feed-endpoint📝 Commits (1)
92b0255Add aggregated agent huddle feed endpoint📊 Changes
2 files changed (+241 additions, -0 deletions)
View changed files
📝
backend/api/agents_api.py(+33 -0)📝
backend/services/agent_activity_service.py(+208 -0)📄 Description
Motivation
since/cursor) and per-section pagination so the UI can efficiently sync new data.Description
GET /api/agents/huddle/feedinbackend/api/agents_api.pythat acceptssince,cursor, and per-section limit query params and returns one unified feed payload.AgentActivityService.get_huddle_feed(...)inbackend/services/agent_activity_service.pywhich aggregatesstatuses,runs,events,alerts,approvals,unread_alerts,pending_approvals,cursors, andserver_timestamp._parse_datetime,_get_active_statuses(usessqlalchemy.func.maxto pick latest run per agent),_list_*_for_feedforruns/events/alerts/approvals,_next_cursor, section serializers (_serialize_run/_serialize_event/_serialize_alert/_serialize_approval), and count helpers_count_unread_alerts/_count_pending_approvalsto return aggregate counts.sinceandcursorsemantics and per-section limits to enable efficient incremental pagination.Testing
python -m compileall backend/api/agents_api.py backend/services/agent_activity_service.pyand the files compiled successfully.python -m compileall backend/services/agent_activity_service.pyto validate the service file and it also compiled successfully.Codex Task
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.