claw-subagent-service 0.0.82 → 0.0.84

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claw-subagent-service",
3
- "version": "0.0.82",
3
+ "version": "0.0.84",
4
4
  "description": "虾说智能助手",
5
5
  "main": "cli.js",
6
6
  "bin": {
@@ -169,7 +169,12 @@ class RongCloudClient {
169
169
  // 自定义消息 content 可能是对象,提取文本内容并保留 mentionedInfo
170
170
  if (rawContent && typeof rawContent === 'object') {
171
171
  mentionedInfo = mentionedInfo || rawContent.mentionedInfo || null;
172
- rawContent = rawContent.content || rawContent.text || JSON.stringify(rawContent);
172
+ // system_service 等结构化消息保留完整 JSON(上层需要 msg_type 等字段)
173
+ if (message.messageType === 'system_service' || rawContent.msg_type) {
174
+ rawContent = JSON.stringify(rawContent);
175
+ } else {
176
+ rawContent = rawContent.content || rawContent.text || JSON.stringify(rawContent);
177
+ }
173
178
  }
174
179
 
175
180
  const content = rawContent || '';