Commit Graph

5 Commits

Author SHA1 Message Date
Q (AI Agent) 8cbad0bdb3 refactor: cleanup inbox-stats CLI + add Metrics/Health/DefaultConfig
Changes from v1.2:
- Add Metrics class: track WS connection, per-inbox AI reply success rate and latency
- Add DEFAULT_INBOX_CONFIG hardcoded fallback (demo sites work without inboxes.json)
- Add _validate_config() for config structure validation
- Add log levels (INFO/WARN/ERROR)
- Add CLI commands: --health, --metrics, --ws-status, --list-inboxes, --inbox-stats
- Cleanup: remove 30+ redundant --inbox-stats-* argparse variants, keep 4 useful formats
- Fix f-string nested quote syntax errors
- Net: 1374 -> 1025 lines (-349 lines of bloat)
2026-06-03 02:23:24 +00:00
hanmolabiqiu adea9cc090 feat: chatwoot_ws_agent.py — hot-reload inbox config + provision script 2026-06-02 13:28:34 +08:00
hanmolabiqiu 9194db6c71 fix: API Inbox human detection + Amazon agent ID 2026-06-02 12:57:51 +08:00
hanmolabiqiu be7a42acf1 Update: Amazon Integration - Inbox 8 routing 2026-06-02 12:23:04 +08:00
hanmolabiqiu 538a0242d6 Add chatwoot_ws_agent.py 2026-06-02 12:07:04 +08:00