picoclaw/pkg/channels/wecom
ZHANG RUI 9a25fad20a
Implement the latest long-connection mode for the WeCom AI Bot. (#1295)
* feat(wecom): add WebSocket long-connection support for WeCom AI Bot

- Introduced WeComAIBotWSChannel to handle WebSocket connections.
- Updated NewWeComAIBotChannel to prioritize WebSocket mode when BotID and Secret are provided.
- Enhanced WeComAIBotConfig to include BotID and Secret for WebSocket mode.
- Implemented message handling for text, image, voice, and mixed messages in WebSocket mode.
- Added tests for WebSocket mode functionality and ensured backward compatibility with webhook mode.
- Refactored existing code to improve clarity and maintainability.

* feat(wecom): implement periodic processing hints and enforce WeCom stream deadline

* feat(wecom): update WeCom AI Bot setup instructions and configuration parameters

* feat(wecom): enhance WeCom AI Bot with image handling and media support

* feat(wecom): refactor WeCom AI Bot task management to use req_id for concurrent message handling

* feat(wecom): refactor WeCom AI Bot to manage request states and late replies

* feat(wecom): add response timeout handling and improve WebSocket command acknowledgment

* fix(wecom): improve error handling for late reply proactive push delivery

* refactor(wecom): reorganize WeCom AI Bot configuration fields for improved readability

* fix(wecom): update error message for websocket delivery failure in late reply proactive push

* feat(wecom): implement shared HTTP clients for WeCom image handling and response URL posting

* refactor(wecom): simplify image download and storage process in storeWSImage

* fix(wecom): improve error logging for WebSocket message handling and proactive push delivery

* fix(wecom): enhance WebSocket connection stability and task cancellation handling

* fix(wecom): improve WS image message handling by ensuring proper error response and initializing mediaRefs

* feat(wecom): enhance WeCom AIBot WebSocket handling with message deduplication and support for file and video messages

* refactor(wecom): rename image handling functions to media handling and enhance media type support

* feat(wecom): implement byte-aware content splitting for WeCom AI Bot stream messages

* refactor(wecom): remove max message length constraint from WeCom AIBot WS channel
2026-03-19 20:06:51 +08:00
..
aibot.go Implement the latest long-connection mode for the WeCom AI Bot. (#1295) 2026-03-19 20:06:51 +08:00
aibot_test.go Implement the latest long-connection mode for the WeCom AI Bot. (#1295) 2026-03-19 20:06:51 +08:00
aibot_ws.go Implement the latest long-connection mode for the WeCom AI Bot. (#1295) 2026-03-19 20:06:51 +08:00
aibot_ws_test.go Implement the latest long-connection mode for the WeCom AI Bot. (#1295) 2026-03-19 20:06:51 +08:00
app.go fix: resolve merge conflicts in wecom error handling 2026-03-05 22:01:32 +09:00
app_test.go fix(security): harden unauthenticated tool-exec paths (#1360) 2026-03-11 19:22:20 +08:00
bot.go fix: resolve merge conflicts in wecom error handling 2026-03-05 22:01:32 +09:00
bot_test.go fix(security): harden unauthenticated tool-exec paths (#1360) 2026-03-11 19:22:20 +08:00
common.go fix(security): harden unauthenticated tool-exec paths (#1360) 2026-03-11 19:22:20 +08:00
dedupe.go fix(wecom): replace dedupe map rotation with circular queue 2026-03-02 18:50:51 +03:00
dedupe_test.go fix(wecom): resolve upstream rebase conflicts after channel refactor 2026-03-02 18:54:11 +03:00
init.go Add WeCom AIBot channel implementation and tests 2026-03-02 17:42:42 +08:00