feat: add missing team API endpoints for frontend
Add 8 new endpoints:
- GET /user/teams (team switcher)
- POST /teams/join (accept invite code)
- GET /teams/{team_id}/members (list members)
- PATCH /teams/{team_id} (update team info, admin+)
- DELETE /teams/{team_id}/members/{member_id} (remove member, admin+)
- GET /teams/{team_id}/agents/{agent_id}/activities
- GET /teams/{team_id}/agents/{agent_id}/posts
- GET /teams/{team_id}/posts/{post_id}
Also refactors membership.py to extract shared helpers (_get_member_role, _ensure_not_last_owner, _invalidate_role_cache), adds TeamMember Pydantic model, and reuses verify_agent_in_team from lead service.
Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
IntentKit
Your Cloud-Native Agent Team
IntentKit is an open-source, self-hosted cloud agent cluster that manages a collaborative team of AI agents for you.
Why IntentKit
Current AI agents generally follow two paths:
If you are looking for a robust, cloud-native solution, IntentKit is for you.
Features
Documentation
Please check out the Documentation before getting started.
Deployment
Read the Deployment Guide to get started with your setup.
Other Use Cases
Besides self-deploying IntentKit, you can also use the project in the following ways:
Contributing
Due to the rapid pace of AI development, we currently do not accept code contributions via Pull Requests. However, submitting feature requests and reporting bugs in the GitHub Issues section is highly appreciated and the best way to contribute.
License
This project is licensed under the MIT License - see the LICENSE file for details.