验证通用渠道协议把 direct、group、thread 都纳入 ChannelCapabilities,并确认 ChannelRegistry 会拒绝渠道未声明支持的会话形态。同步确认微信渠道当前按已验证私聊能力运行,不把未验证群聊/thread 暴露给 Bridge Core。
- 日期:2026-05-15 20:54:12 CST
- Node.js 版本:v24.13.1
- 操作系统:macOS
- 渠道:mock / terminal / weixin adapter 单元与集成测试
npm test
node --test dist/tests/unit/app-server-codex-adapter.test.js
npm test
git diff --check- 为
ChannelCapabilities增加thread能力声明。 - 更新 mock、terminal、weixin adapter 的能力返回值。
- 更新
ChannelRegistry,对direct、group、thread都按 capability 校验。 - 新增单测覆盖不支持
group、thread的渠道会拒绝对应入站消息。 - 运行完整测试。
- 第一次
npm test:编译通过,新增ChannelRegistry rejects unsupported conversation kinds通过;AppServerCodexAdapter sends collaboration mode on turn start单项失败。 - 单独复跑
node --test dist/tests/unit/app-server-codex-adapter.test.js:17 项全部通过。 - 第二次
npm test:130 项全部通过。 git diff --check:通过。
通过。渠道能力声明与 Registry 校验已覆盖 direct、group、thread,微信当前能力收紧为 direct: true, group: false, thread: false。
- 真实微信群聊链路未验证,保持关闭。
- 飞书私聊、群聊、thread 需要在真实 adapter 落地时按同一能力契约补测试。