@wu529778790/open-im 1.11.7-beta.0 → 1.11.7-beta.1
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.
|
@@ -52,7 +52,12 @@ export function setupClawbotHandlers(config, sessionManager) {
|
|
|
52
52
|
runningTasks: ctx.runningTasks,
|
|
53
53
|
taskKeyBuilder: (userId, _msgId) => `${userId}:${msgId}`,
|
|
54
54
|
taskCallbacksFactory: ({ chatId: c }) => ({
|
|
55
|
-
streamUpdate: async () => {
|
|
55
|
+
streamUpdate: async (content, toolNote) => {
|
|
56
|
+
// 有工具调用时,发送工具调用通知
|
|
57
|
+
if (toolNote) {
|
|
58
|
+
await sendTextReply(c, `⚙️ ${toolNote}`);
|
|
59
|
+
}
|
|
60
|
+
},
|
|
56
61
|
sendComplete: async (content) => {
|
|
57
62
|
await sendTextReply(c, content);
|
|
58
63
|
},
|
|
@@ -58,8 +58,11 @@ export function setupWorkBuddyHandlers(config, sessionManager) {
|
|
|
58
58
|
runningTasks: ctx.runningTasks,
|
|
59
59
|
taskKeyBuilder: (userId, _msgId) => `${userId}:${msgId}`,
|
|
60
60
|
taskCallbacksFactory: ({ chatId: c }) => ({
|
|
61
|
-
streamUpdate: async () => {
|
|
62
|
-
//
|
|
61
|
+
streamUpdate: async (content, toolNote) => {
|
|
62
|
+
// 有工具调用时,发送工具调用通知
|
|
63
|
+
if (toolNote) {
|
|
64
|
+
await sendTextReply(null, c, `⚙️ ${toolNote}`, msgId);
|
|
65
|
+
}
|
|
63
66
|
},
|
|
64
67
|
sendComplete: async (content) => {
|
|
65
68
|
await sendTextReply(null, c, content, msgId);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wu529778790/open-im",
|
|
3
|
-
"version": "1.11.7-beta.
|
|
3
|
+
"version": "1.11.7-beta.1",
|
|
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",
|