@vui-design/openclaw-plugin-feishu-progress 0.2.4 → 0.2.5

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/package.json +1 -1
  2. package/src/index.ts +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vui-design/openclaw-plugin-feishu-progress",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "飞书任务进度卡片插件 — 在 AI 执行复杂多步骤任务时,实时更新飞书进度卡片",
5
5
  "keywords": [
6
6
  "openclaw-plugin",
package/src/index.ts CHANGED
@@ -51,9 +51,13 @@ export default {
51
51
  api.logger.info(`[feishu-progress][DEBUG] message_received: channelId=${ctx.channelId} accountId=${ctx.accountId} conversationId=${ctx.conversationId}`);
52
52
  if (ctx.channelId !== 'feishu') return;
53
53
  if (!ctx.conversationId) return;
54
+ // OpenClaw 内部格式为 "user:ou_xxx" / "group:oc_xxx",需剥离前缀取裸 Feishu ID
55
+ const rawId = ctx.conversationId.includes(':')
56
+ ? ctx.conversationId.split(':').pop()!
57
+ : ctx.conversationId;
54
58
  const key = ctx.accountId ?? 'default';
55
- sessionChatMap.set(key, ctx.conversationId);
56
- api.logger.info(`[feishu-progress][DEBUG] stored: key=${key} chatId=${ctx.conversationId}`);
59
+ sessionChatMap.set(key, rawId);
60
+ api.logger.info(`[feishu-progress][DEBUG] stored: key=${key} rawId=${rawId} (original=${ctx.conversationId})`);
57
61
  });
58
62
 
59
63
  // ── 2. 每次工具调用前,自动推送进度到飞书 ──────────────────────────────