@wu529778790/open-im 1.11.8-beta.1 → 1.11.8-beta.2

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.
@@ -135,7 +135,8 @@ export function runAITask(deps, ctx, prompt, toolAdapter, platformAdapter) {
135
135
  clearTimeout(pendingUpdate);
136
136
  pendingUpdate = null;
137
137
  }
138
- const toolNote = toolLines.length > 0 ? toolLines.slice(-3).join('\n') : undefined;
138
+ // 只在 force=true(工具调用)时传 toolNote,普通文本更新不传
139
+ const toolNote = force && toolLines.length > 0 ? toolLines.slice(-3).join('\n') : undefined;
139
140
  platformAdapter.streamUpdate(content, toolNote);
140
141
  }
141
142
  else if (!pendingUpdate) {
@@ -143,8 +144,7 @@ export function runAITask(deps, ctx, prompt, toolAdapter, platformAdapter) {
143
144
  pendingUpdate = null;
144
145
  lastUpdateTime = Date.now();
145
146
  lastSentContentLength = taskState.latestContent.length;
146
- const toolNote = toolLines.length > 0 ? toolLines.slice(-3).join('\n') : undefined;
147
- platformAdapter.streamUpdate(taskState.latestContent, toolNote);
147
+ platformAdapter.streamUpdate(taskState.latestContent, undefined);
148
148
  }, platformAdapter.throttleMs - elapsed);
149
149
  }
150
150
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wu529778790/open-im",
3
- "version": "1.11.8-beta.1",
3
+ "version": "1.11.8-beta.2",
4
4
  "description": "Your AI coding assistant, in every chat app. Multi-platform IM bridge for Claude Code, Codex, and CodeBuddy.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",