@wu529778790/open-im 1.11.2-beta.16 → 1.11.2-beta.18

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/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  > 你的 AI 编程助手,在每个聊天 App 里。
6
6
 
7
- open-im 把 Claude Code、Codex、CodeBuddy 接入 Telegram、飞书、企业微信、钉钉、QQ、微信(WorkBuddy)、微信(ClawBot)。手机发条消息,服务器上就写好代码。
7
+ open-im 把 Claude Code、Codex、CodeBuddy 接入 Telegram、飞书、企业微信、钉钉、QQ、微信(WorkBuddy)、微信(ClawBot)。手机发条消息,电脑上就写好代码。
8
8
 
9
9
  ## 架构
10
10
 
@@ -23,8 +23,10 @@ export function setupClawbotHandlers(config, sessionManager) {
23
23
  });
24
24
  const stopTaskCleanup = startTaskCleanup(ctx.runningTasks);
25
25
  const platformSender = {
26
- sendThinkingMessage: async (_chatId, _replyToMessageId, _toolId) => {
27
- return 'clawbot_no_thinking';
26
+ sendThinkingMessage: async (chatId, _replyToMessageId, _toolId) => {
27
+ // ClawBot 不支持 typing indicator,先发一条"思考中"消息给用户反馈
28
+ await sendTextReply(chatId, '🤔 正在处理...');
29
+ return 'clawbot_thinking';
28
30
  },
29
31
  sendTextReply: async (chatId, text) => {
30
32
  await sendTextReply(chatId, text);
@@ -24,17 +24,17 @@ export function setupWorkBuddyHandlers(config, sessionManager) {
24
24
  });
25
25
  // Start task cleanup
26
26
  const stopTaskCleanup = startTaskCleanup(ctx.runningTasks);
27
- // WorkBuddy-specific sender callbacks (no thinking message needed)
27
+ // WorkBuddy-specific sender callbacks
28
28
  const platformSender = {
29
- sendThinkingMessage: async (_chatId, _replyToMessageId, _toolId) => {
30
- // WorkBuddy uses incoming msgId directly; no separate thinking message
31
- return 'workbuddy_no_thinking';
29
+ sendThinkingMessage: async (chatId, _replyToMessageId, _toolId) => {
30
+ // WorkBuddy 不支持 typing indicator,先发一条"思考中"消息给用户反馈
31
+ await sendTextReply(null, chatId, '🤔 正在处理...', '');
32
+ return 'workbuddy_thinking';
32
33
  },
33
34
  sendTextReply: async (chatId, text) => {
34
35
  await sendTextReply(null, chatId, text, '');
35
36
  },
36
37
  startTyping: (_chatId) => {
37
- // WorkBuddy doesn't support typing indicators
38
38
  return () => { };
39
39
  },
40
40
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wu529778790/open-im",
3
- "version": "1.11.2-beta.16",
3
+ "version": "1.11.2-beta.18",
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",