ylib-syim 0.0.40 → 0.0.41

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.
Files changed (2) hide show
  1. package/bridges/main.ts +2 -1
  2. package/package.json +1 -1
package/bridges/main.ts CHANGED
@@ -4074,7 +4074,8 @@ function readRecentBridgeErrorFromLog(
4074
4074
  if (!logFilePath || !fs.existsSync(logFilePath)) return null;
4075
4075
  const text = fs.readFileSync(logFilePath, "utf-8");
4076
4076
  if (!text) return null;
4077
- const lines = text.split("\n").slice(-800).reverse();
4077
+ // 全文件倒序扫描:先定位同平台 error 日志,再匹配账号,避免最后 N 行被其他账号刷掉。
4078
+ const lines = text.split("\n").reverse();
4078
4079
  const matched: string[] = [];
4079
4080
 
4080
4081
  const platformHints =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ylib-syim",
3
- "version": "0.0.40",
3
+ "version": "0.0.41",
4
4
  "description": "多 IM / 多 Agent 的会话路由与上下文管理(支持 /new)",
5
5
  "type": "module",
6
6
  "exports": {