claw-subagent-service 0.0.31 → 0.0.33

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.31",
3
+ "version": "0.0.33",
4
4
  "description": "虾说静态服务",
5
5
  "main": "cli.js",
6
6
  "bin": {
@@ -212,7 +212,7 @@ After=network.target
212
212
  [Service]
213
213
  Type=simple
214
214
  User=root
215
- ExecStart=/usr/bin/node ${this.scriptPath}
215
+ ExecStart=${process.execPath} ${this.scriptPath}
216
216
  Restart=always
217
217
  RestartSec=10
218
218
  Environment=NODE_ENV=production
@@ -241,7 +241,7 @@ WantedBy=multi-user.target
241
241
  <string>${this.serviceName}</string>
242
242
  <key>ProgramArguments</key>
243
243
  <array>
244
- <string>/usr/local/bin/node</string>
244
+ <string>${process.execPath}</string>
245
245
  <string>${this.scriptPath}</string>
246
246
  </array>
247
247
  <key>RunAtLoad</key>
@@ -41,17 +41,12 @@ class MessageHandler {
41
41
  return false;
42
42
  }
43
43
 
44
- // claw 控制消息不需要 @mention 过滤
45
- if (msg.messageType === 'claw') {
46
- return true;
47
- }
48
-
49
44
  // 优先从融云 mentionedInfo 提取被@用户列表(用户界面 @昵称,但融云底层存的是 userId)
50
45
  let mentions = [];
51
46
  if (msg.mentionedInfo && Array.isArray(msg.mentionedInfo.userIdList)) {
52
47
  mentions = msg.mentionedInfo.userIdList;
53
48
  if (mentions.length > 0) {
54
- this.log?.info(`[MessageHandler] 融云 mentionedInfo: ${mentions.join(', ')}`);
49
+ this.log?.info(`[MessageHandler] 融云 mentionedInfo: ${mentions.join(', ')},本节点: ${this.nodeId}`);
55
50
  }
56
51
  }
57
52