xiaozuoassistant 0.2.34 → 0.2.36

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.
@@ -98,7 +98,16 @@ export class FeishuChannel extends BaseChannel {
98
98
  }
99
99
  }
100
100
  });
101
- await wsClient.start({
101
+ // @ts-ignore
102
+ // 添加通用消息已读回调防止未注册导致的告警
103
+ eventDispatcher.register({
104
+ 'im.message.message_read_v1': async (data) => {
105
+ // Silently ignore to prevent "[warn]: no im.message.message_read_v1 handle"
106
+ }
107
+ });
108
+ // 启动时不要阻塞等待,允许它在后台进行连接
109
+ // 这样即使某一个 bot 连接超时,也不会阻塞其他 bot 的启动
110
+ wsClient.start({
102
111
  eventDispatcher: eventDispatcher
103
112
  }).catch(e => {
104
113
  console.error(`[Feishu-${botName}] WSClient start threw an error:`, e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xiaozuoassistant",
3
- "version": "0.2.34",
3
+ "version": "0.2.36",
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",