Chatwoot AI Agent Dev
3e3768fc69
fix: resolve merge conflict, keep full README
2026-06-26 01:22:05 +00:00
admin
8f86761083
Initial commit
2026-06-26 08:50:32 +08:00
Chatwoot AI Agent Dev
74f57a1a43
refactor(ws_agent): use shared chatwoot_client + inboxes_io modules
...
- Replace 5 duplicate auth functions with chatwoot_client delegation
- Replace _validate_config with inboxes_io.validate_entry
- Replace requests.post with chatwoot_client._call_cw (4 call sites)
- Remove import requests dependency
- Clean up unused CW_EMAIL/CW_PASSWORD/RENEW_THRESHOLD vars
- Add _api_path() helper for clean API path construction
2026-06-06 03:56:08 +00:00
Chatwoot AI Agent Dev
980c090873
refactor: extract shared modules chatwoot_client.py + inboxes_io.py (v1.8)
...
- chatwoot_client.py (364 lines): unified Chatwoot session auth + API calls
- inboxes_io.py (122 lines): unified inboxes.json read/write/validate
- provision_server.py: deleted 9 duplicate functions (-188 lines)
- ws_agent: deleted 5 duplicate auth functions, removed import requests
- All imports use sys.path.insert for cross-directory access
- Zero behavior changes, pure DRY refactor
2026-06-06 03:56:08 +00:00
GreatQiu
91104e58cf
v1.8: FastAdmin chathub-addon — register/plan/payment/member-center + 5 channel bindings
...
- New fastadmin/chathub/ (11 files, 204K): user-facing FastAdmin ThinkPHP 5 addon
- _markOrderPaid() now calls _provisionAsync() on empty embed_code (closes 'paid but no code' gap)
- New reprovision() action — user-initiated resource rebuild
- payReturn() smart redirect: 3 branches (just_paid / provisioning / pending / fallback)
- status badge updated with 'provisioning' state (blue)
- _initialize() whitelist expanded: reprovision (user) + payNotify/payReturn (public webhook)
- 5 chathub_* tables (tenant/log/order/channel_account/gateway_log) + MIGRATIONS.md
Bugfixes during E2E:
- payNotify HTTP 500: tenant.status ENUM missing 'provisioning' value (DBA migration)
- payNotify HTTP 500: chathub_log.status='received' (not in ENUM) — changed to 'success'
- TP5 method signature: function reprovision(\$ids) does not read query string — use \$this->request->param('ids')
2026-06-05 14:20:00 +08:00
Chatwoot AI Agent Dev
1d620ede9b
license: full AGPL v3 text from gnu.org
2026-06-05 05:43:22 +00:00
Chatwoot AI Agent Dev
bdf3537c19
license: AGPL v3 (was MIT)
2026-06-05 05:42:16 +00:00
Chatwoot AI Agent Dev
e608d6ba1c
v1.7: session-id mapping + conversation summary + contact profiling + exponential backoff reconnect
2026-06-05 05:16:36 +00:00
Chatwoot AI Agent Dev
3b321c9c75
docs: README — add Platform Gateway section, architecture diagram, env vars
2026-06-05 04:31:42 +00:00
Chatwoot AI Agent Dev
989e21d1f6
v1.6: Platform Gateway — Amazon/JD/Taobao/PDD/TikTok 5平台API集成 + start_provision_v2.sh
2026-06-05 04:30:48 +00:00
Chatwoot AI Agent Dev
351c9b82fb
v1.5: debounce (5s coalesce) + AI retry (exp backoff)
2026-06-05 04:30:48 +00:00
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)
ad8243d9d7
docs: CHANGELOG v1.3 — metrics monitoring + code cleanup
2026-06-03 02:42:30 +00:00
Q (AI Agent)
c7dbbb0404
docs: update README to v1.3 — full feature set, file structure, CLI docs
2026-06-03 02:36:47 +00: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
73dd1b2a77
docs: CHANGELOG v1.2 — hot-reload + provision
2026-06-02 13:29:38 +08:00
hanmolabiqiu
449aba667b
feat: provision.py — hot-reload inbox config + provision script
2026-06-02 13:28:40 +08:00
hanmolabiqiu
de672ba3ec
feat: inboxes.json — hot-reload inbox config + provision script
2026-06-02 13:28:37 +08:00
hanmolabiqiu
adea9cc090
feat: chatwoot_ws_agent.py — hot-reload inbox config + provision script
2026-06-02 13:28:34 +08:00
hanmolabiqiu
21e0f07ad7
Add CHANGELOG.md with v1.0 and v1.1 release notes
2026-06-02 13:02:33 +08:00
hanmolabiqiu
9194db6c71
fix: API Inbox human detection + Amazon agent ID
2026-06-02 12:57:51 +08:00
hanmolabiqiu
bf051c7450
Add Amazon Integration - Inbox 8 routing + amazon-agent
2026-06-02 12:23:07 +08:00
hanmolabiqiu
e1bd6dc193
Add Amazon Integration - Inbox 8 routing + amazon-agent
2026-06-02 12:23:06 +08:00
hanmolabiqiu
be7a42acf1
Update: Amazon Integration - Inbox 8 routing
2026-06-02 12:23:04 +08:00
hanmolabiqiu
d6ec087d0f
Add .gitignore
2026-06-02 12:07:14 +08:00
hanmolabiqiu
44d1209bdb
Add requirements.txt
2026-06-02 12:07:12 +08:00
hanmolabiqiu
2890aeda36
Add .env.example
2026-06-02 12:07:11 +08:00
hanmolabiqiu
28a2917f3f
Add SOUL-halo-blog-agent.md
2026-06-02 12:07:07 +08:00
hanmolabiqiu
56ba80cb30
Add knowledge-base.md
2026-06-02 12:07:05 +08:00
hanmolabiqiu
538a0242d6
Add chatwoot_ws_agent.py
2026-06-02 12:07:04 +08:00
hanmolabiqiu
fc0d4648e7
Add README.md
2026-06-02 12:07:03 +08:00