hanmolabiqiu
d22380b252
v1.5: debounce (5s coalesce) + AI retry (exp backoff)
2026-06-05 12:28:09 +08:00
Chatwoot AI Agent Dev
d0b20a0e14
v1.4: 多租户开通 + 安全性重构 + 数据脱敏
...
新增:
- provision_server.py HTTP API 服务 (Bottle, 端口 5566)
- 状态持久化 (JSON, 每30秒保存, 1小时内可恢复)
- 会议室模式 (开发团队 Inbox 多 AI 路由)
- supervisor 托管, SIGTERM 优雅退出
- PUBSUB_TOKEN 三级 fallback
修复:
- 所有硬编码凭证清除 (CW_EMAIL/CW_PASSWORD 无 fallback)
- 双重 WebSocket 重连
- 内存泄漏 (无界 Set 清理)
- INBOX_CONFIG 兜底 (skip+log 不崩溃)
- PID 文件竞争, Metrics 热路径优化
- 幂等性正确实现 (存真实响应含 HTTP 状态码)
安全:
- 完整数据脱敏 (无 URL/邮箱/密码/token 硬编码)
- .env.example / chatwoot_auth.example.json / inboxes.example.json
2026-06-04 12:56:11 +00:00
hanmolabiqiu
504b9b2e40
feat: meeting room support — forward to QWEN + OpenCode, [SKIP] filtering
...
- MEETING_ROOM_INBOX_ID = 22 (开发团队)
- handle_meeting_message(): all messages → both AI agents
- [SKIP] replies filtered out, rest sent with [QWEN]/[OpenCode] prefix
- Routing in _on_message_created for inbox 22
2026-06-03 15:14:56 +08:00
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