@ycodium-ai/plugin-im 0.2.3024 → 0.2.3034

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 +4 -6
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -127178,7 +127178,8 @@ var makeApprovals = (core, anchors) => {
127178
127178
  return {
127179
127179
  requestId: approval.requestId,
127180
127180
  title: approval.appName ?? "Ycodium",
127181
- body: approval.detail ?? event.summary,
127181
+ // 正文用这道题自己的说明;事件的 summary 只是宿主拼的「哪条会话在等批准」,最后才用。
127182
+ body: approval.detail ?? approval.summary ?? event.summary,
127182
127183
  buttons: buttons.map(({ label, token }) => ({ label, token }))
127183
127184
  };
127184
127185
  }
@@ -139119,7 +139120,7 @@ var makeModelPlan = (core, deps) => {
139119
139120
  };
139120
139121
 
139121
139122
  // src/notifications.ts
139122
- import { threadOrNull as threadOrNull4 } from "@ycodium-ai/plugin-api";
139123
+ import { readThreadFailed, threadOrNull as threadOrNull4 } from "@ycodium-ai/plugin-api";
139123
139124
 
139124
139125
  // src/notificationTargets.ts
139125
139126
  var notificationChatKeys = (state, threadId, projectId) => {
@@ -139276,10 +139277,7 @@ ${final.text}`;
139276
139277
  (binding) => !(streamsTo(binding, threadId) && turnCards.covers(threadId))
139277
139278
  );
139278
139279
  const drawingTurn = turnCards.drawingTurn(threadId);
139279
- const notice = textTargets.length > 0 || drawingTurn !== null ? failures.forFailure(
139280
- threadId,
139281
- (await threadOrNull4(host.threads, threadId).catch(() => null))?.session?.lastError
139282
- ) : null;
139280
+ const notice = textTargets.length > 0 || drawingTurn !== null ? failures.forFailure(threadId, readThreadFailed(event)?.detail) : null;
139283
139281
  if (notice !== null && drawingTurn !== null)
139284
139282
  failures.holdForCard(threadId, drawingTurn, notice);
139285
139283
  for (const binding of targets) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/plugin-im",
3
- "version": "0.2.3024",
3
+ "version": "0.2.3034",
4
4
  "description": "Talk to your agents from Telegram, WeCom, Lark, or WeChat (experimental).",
5
5
  "keywords": [
6
6
  "im",
@@ -32,7 +32,7 @@
32
32
  "markdown-it": "^15.0.2",
33
33
  "react": "19.2.6",
34
34
  "vite-plus": "0.2.2",
35
- "@ycodium-ai/plugin-api": "0.2.3024"
35
+ "@ycodium-ai/plugin-api": "0.2.3034"
36
36
  },
37
37
  "ycodium": {
38
38
  "plugin": "./dist/index.js",