@wu529778790/open-im 1.11.8-beta.25 → 1.11.8-beta.26
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.
- package/dist/shared/ai-task.js +3 -1
- package/package.json +1 -1
package/dist/shared/ai-task.js
CHANGED
|
@@ -295,7 +295,9 @@ export function runAITask(deps, ctx, prompt, toolAdapter, platformAdapter) {
|
|
|
295
295
|
toolLines.push(notification);
|
|
296
296
|
if (toolLines.length > 5)
|
|
297
297
|
toolLines.shift();
|
|
298
|
-
|
|
298
|
+
// 不强制发送(force=false),让节流机制合并短时间内的多次工具调用,
|
|
299
|
+
// 避免突发大量消息触发平台频率限制(如 ClawBot ret=-2)。
|
|
300
|
+
throttledUpdate(taskState.latestContent, false);
|
|
299
301
|
},
|
|
300
302
|
onComplete: async (result) => {
|
|
301
303
|
log.info(`[AITask] onComplete fired: settled=${settled}, success=${result.success}, platform=${ctx.platform}, taskKey=${ctx.taskKey}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wu529778790/open-im",
|
|
3
|
-
"version": "1.11.8-beta.
|
|
3
|
+
"version": "1.11.8-beta.26",
|
|
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",
|