feat: add hourly rate limits for agent triggers
All checks were successful
Lint and Syntax Check / build (pull_request) Successful in 6s

- Add AGENT_HOURLY env var (default: 60 triggers per hour)
- Track hourly usage in SHSF database with key 'agent_{AGENT_USERNAME}_cooldown'
- Check and increment counter before sending notifications
- Add 'clear_limit' route to reset counter hourly via external trigger

Resolves #4
This commit is contained in:
2026-04-04 17:10:19 +02:00
parent 54840def97
commit 6532bd250d
2 changed files with 64 additions and 3 deletions

Binary file not shown.