claw-subagent-service 0.0.121 → 0.0.122
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/package.json
CHANGED
|
@@ -202,8 +202,11 @@ class RongCloudClient {
|
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
+
// 对于媒体消息,保留完整的 JSON 字符串,不要提取 content 字段
|
|
205
206
|
const userContent = parsed && !parsed.msg_type
|
|
206
|
-
? (
|
|
207
|
+
? (['RC:ImgMsg', 'RC:SightMsg', 'RC:FileMsg', 'RC:HQVCMsg'].includes(msgType)
|
|
208
|
+
? JSON.stringify(parsed)
|
|
209
|
+
: (parsed.content || parsed.text || JSON.stringify(parsed)))
|
|
207
210
|
: content;
|
|
208
211
|
|
|
209
212
|
if (!userContent || !userContent.trim || !userContent.trim()) {
|