@ycodium-ai/plugin-im 0.2.2106 → 0.2.2147

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.
Files changed (2) hide show
  1. package/dist/index.js +15 -7
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -126778,12 +126778,19 @@ var runWecomClient = (input) => {
126778
126778
  if (pendingAcks.delete(requestId)) resolve();
126779
126779
  }, SEND_ACK_TIMEOUT_MS);
126780
126780
  });
126781
- await send({
126782
- cmd: "aibot_send_msg",
126783
- headers: { req_id: requestId },
126784
- body: { chatid: chatId, msgtype: "markdown", markdown: { content } }
126785
- });
126786
- await ack;
126781
+ try {
126782
+ await Promise.all([
126783
+ send({
126784
+ cmd: "aibot_send_msg",
126785
+ headers: { req_id: requestId },
126786
+ body: { chatid: chatId, msgtype: "markdown", markdown: { content } }
126787
+ }),
126788
+ ack
126789
+ ]);
126790
+ } catch (error) {
126791
+ pendingAcks.delete(requestId);
126792
+ throw error;
126793
+ }
126787
126794
  }
126788
126795
  };
126789
126796
  return {
@@ -126795,7 +126802,8 @@ var runWecomClient = (input) => {
126795
126802
  closed = true;
126796
126803
  clearInterval(heartbeat);
126797
126804
  void input.socket.close();
126798
- }
126805
+ },
126806
+ pendingAckCountForTests: () => pendingAcks.size
126799
126807
  };
126800
126808
  };
126801
126809
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/plugin-im",
3
- "version": "0.2.2106",
3
+ "version": "0.2.2147",
4
4
  "description": "Talk to your agents from Telegram, WeCom or Lark.",
5
5
  "keywords": [
6
6
  "im",
@@ -24,7 +24,7 @@
24
24
  "effect": "4.0.0-beta.103",
25
25
  "esbuild": "0.28.1",
26
26
  "vite-plus": "0.2.2",
27
- "@ycodium-ai/plugin-api": "0.2.2106"
27
+ "@ycodium-ai/plugin-api": "0.2.0"
28
28
  },
29
29
  "ycodium": {
30
30
  "plugin": "./dist/index.js",