xiaozuoassistant 0.1.88 → 0.1.89

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.
@@ -3,6 +3,10 @@ export class BaseChannel {
3
3
  this.messageHandler = null;
4
4
  }
5
5
  sendEvent(sessionId, event, payload) {
6
+ // 过滤掉内部状态事件,避免发送无效消息到外部渠道(如飞书、微信等)
7
+ if (['run_ack', 'run_status'].includes(event)) {
8
+ return;
9
+ }
6
10
  const text = event === 'message'
7
11
  ? String(payload?.content ?? '')
8
12
  : `[${event}] ${typeof payload === 'string' ? payload : JSON.stringify(payload)}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xiaozuoassistant",
3
- "version": "0.1.88",
3
+ "version": "0.1.89",
4
4
  "description": "A local-first personal AI assistant with multi-channel support and enhanced memory.",
5
5
  "author": "mantle.lau",
6
6
  "license": "MIT",