feat(channels): add mock channel package for E2E testing

- Add @qwen-code/channel-mock package with MockPluginChannel
- Add createMockServer for programmatic test control via WebSocket
- Refactor integration test to use real WebSocket E2E flow

This enables testing the full channel pipeline (WebSocket → ChannelBase → AcpBridge → agent)
instead of the previous in-process loopback approach.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
tanzhenxin 2026-03-26 14:30:33 +00:00
parent 2b10a2dc54
commit 0f9e4409df
9 changed files with 526 additions and 174 deletions

View file

@ -10,7 +10,8 @@
"packages/channels/base",
"packages/channels/telegram",
"packages/channels/weixin",
"packages/channels/dingtalk"
"packages/channels/dingtalk",
"packages/channels/mock"
],
"repository": {
"type": "git",