feat(webhook): add webhook integration for team notifications - #665
Conversation
- Add `teamai webhook list|test` commands - Add webhook config in `teamai.yaml` under `sharing.webhooks` - Support Feishu (Lark), WeChat Work (WeCom), and generic JSON formats - Register webhook handler for session-start, stop, skill-use events - Automatic retry with exponential backoff - Optional HMAC-SHA256 signature verification - Unit tests for webhook and formatters Closes Tencent#659
|
Findings
|
|
Thanks for the thoughtful questions! Let me clarify our concrete use cases: 1. Real-time Activity MonitoringWe need a unified dashboard showing real-time team activity across different AI coding tools (Claude, Codex, etc.). While Git events exist, they don't provide:
2. Agent RSI (Resource Sync Index) & Asset AccumulationThis is our key use case - we're designing a system to:
Real-time skill-use events feed directly into this - we need to know WHEN skills are used to correlate with project context and outcomes. 3. Session Lifecycle for ComplianceSession start/stop notifications help us:
RecommendationIf the scope is too broad, I'd suggest starting with:
Push/pull can be deferred since Git already provides that visibility. What do you think? |
|
Please resolve the P1 findings. |
|
All P1 findings have been resolved. Here is a summary of the fixes: P1 Fixes Applied
Testing
PR updated with new branch |
What
Add webhook integration for team notifications (Feishu/WeChat Work).
Closes #659
Why
Teams using Feishu/WeChat Work need real-time notifications when team members push/pull resources or use skills. This feature enables automated notifications to keep the team informed about harness updates and AI tool usage.
Changes
teamai webhook list|testcommandsteamai.yamlundersharing.webhookssession-start,stop,post-tool-use(Skill) eventsP1 Fixes Applied
hook_event_nameinstead ofstdin.eventConfiguration
Testing
npx tsc --noEmitpassesnpm run buildpasses (1.69 MB output)npm testpasses (3508 tests)teamai webhook --helpshows correct usageteamai webhook listshows configured endpointsFiles Changed