@wu529778790/open-im 0.3.5 → 0.3.6

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.
@@ -67,14 +67,15 @@ const USAGE_TIPS = [
67
67
  '⚠️ 上下文较长,建议 /new 开始新会话',
68
68
  ];
69
69
  export function getContextWarning(totalTurns) {
70
- // 第 6 轮开始显示提示
71
- if (totalTurns < 6)
70
+ // 降低阈值,让提示更早开始轮换显示
71
+ if (totalTurns < 2)
72
72
  return null;
73
- // 第 13 轮后一直显示警告
74
- if (totalTurns >= 13) {
73
+ // 第 10 次后一直显示警告
74
+ if (totalTurns >= 10) {
75
75
  return USAGE_TIPS[USAGE_TIPS.length - 1];
76
76
  }
77
- // 根据轮数循环显示提示
78
- const tipIndex = (totalTurns - 6) % USAGE_TIPS.length;
79
- return USAGE_TIPS[tipIndex];
77
+ // 根据轮数循环显示提示(排除最后的警告)
78
+ const regularTips = USAGE_TIPS.slice(0, -1);
79
+ const tipIndex = (totalTurns - 2) % regularTips.length;
80
+ return regularTips[tipIndex];
80
81
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wu529778790/open-im",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "Multi-platform IM bridge for AI CLI tools (Claude, Codex, Cursor)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",