@vrs-soft/wecom-aibot-mcp 3.4.5 → 3.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/channel-server.js +3 -6
- package/package.json +1 -1
package/dist/channel-server.js
CHANGED
|
@@ -604,12 +604,9 @@ function registerChannelTools(server) {
|
|
|
604
604
|
target_user: z.string().optional().describe('目标用户/群 ID(可选)'),
|
|
605
605
|
cc_id: z.string().describe('CC 唯一标识(enter_headless_mode 返回的 ccId)'),
|
|
606
606
|
}, async ({ content, target_user, cc_id }) => {
|
|
607
|
-
//
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
return {
|
|
611
|
-
content: [{ type: 'text', text: '✅ 消息已发送' }],
|
|
612
|
-
};
|
|
607
|
+
// v3.4.6: 不再硬编码 ✅,直接返回 daemon 端真实结果(含 ✅ 或错误信息)
|
|
608
|
+
// 防止 send 失败时骗 agent,也让 LiuYang 之前遇到的"骗人 UX bug"消失
|
|
609
|
+
return await forwardToHttpMcp('send_message', { content, target_user, cc_id });
|
|
613
610
|
});
|
|
614
611
|
// ============================================
|
|
615
612
|
// 工具 2: 心跳检查(HTTP 模式)
|