@wecom/wecom-openclaw-plugin 1.0.7-beta.1 → 1.0.9-beta.0

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/index.esm.js CHANGED
@@ -1118,10 +1118,10 @@ async function processWeComMessage(params) {
1118
1118
  // Step 1: 解析消息内容
1119
1119
  const { textParts, imageUrls, imageAesKeys, fileUrls, fileAesKeys, quoteContent } = parseMessageContent(body);
1120
1120
  let text = textParts.join("\n").trim();
1121
- // 群聊中移除 @机器人 的提及标记
1122
- if (body.chattype === "group") {
1123
- text = text.replace(/@\S+/g, "").trim();
1124
- }
1121
+ // // 群聊中移除 @机器人 的提及标记
1122
+ // if (body.chattype === "group") {
1123
+ // text = text.replace(/@\S+/g, "").trim();
1124
+ // }
1125
1125
  // 如果文本为空但存在引用消息,使用引用消息内容
1126
1126
  if (!text && quoteContent) {
1127
1127
  text = quoteContent;