@larksuite/openclaw-lark 2026.4.7-beta.0 → 2026.4.7
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/package.json
CHANGED
|
@@ -237,7 +237,7 @@ async function handleCommentEvent(ctx, data) {
|
|
|
237
237
|
const commentId = parsed.comment_id ?? '';
|
|
238
238
|
const replyId = parsed.reply_id ?? '';
|
|
239
239
|
// Parser has normalized notice_meta fields into canonical top-level fields
|
|
240
|
-
const
|
|
240
|
+
const _senderOpenId = parsed.user_id?.open_id ?? '';
|
|
241
241
|
const isMentioned = parsed.is_mention ?? false;
|
|
242
242
|
const eventTimestamp = parsed.action_time;
|
|
243
243
|
log(`feishu[${accountId}]: drive comment event: ` +
|
|
@@ -245,9 +245,7 @@ async function handleCommentEvent(ctx, data) {
|
|
|
245
245
|
`${replyId ? `, reply=${replyId}` : ''}` +
|
|
246
246
|
`${isMentioned ? ', @bot' : ''}`);
|
|
247
247
|
// Dedup: build a deterministic key from the comment/reply IDs
|
|
248
|
-
const dedupKey = replyId
|
|
249
|
-
? `comment:${commentId}:reply:${replyId}`
|
|
250
|
-
: `comment:${commentId}`;
|
|
248
|
+
const dedupKey = replyId ? `comment:${commentId}:reply:${replyId}` : `comment:${commentId}`;
|
|
251
249
|
if (!ctx.messageDedup.tryRecord(dedupKey, accountId)) {
|
|
252
250
|
log(`feishu[${accountId}]: duplicate comment event ${dedupKey}, skipping`);
|
|
253
251
|
return;
|
|
@@ -397,7 +397,7 @@ async function sendCommentReplyLark(params) {
|
|
|
397
397
|
catch (secondErr) {
|
|
398
398
|
const detail = (0, api_error_1.formatLarkError)(firstErr);
|
|
399
399
|
log.error(`sendCommentReplyLark failed: ${detail}`);
|
|
400
|
-
throw new Error(`Comment reply failed: ${detail}`, { cause:
|
|
400
|
+
throw new Error(`Comment reply failed: ${detail}`, { cause: secondErr });
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
}
|
|
@@ -296,7 +296,7 @@ function registerDocCommentsTool(api) {
|
|
|
296
296
|
data: { content: { elements: sdkElements } },
|
|
297
297
|
}), { as: 'tenant' });
|
|
298
298
|
}
|
|
299
|
-
catch (
|
|
299
|
+
catch (_firstErr) {
|
|
300
300
|
// Fallback: 部分 API 版本使用 reply_elements 格式
|
|
301
301
|
log.info(`doc_comments.reply: first attempt failed, trying reply_elements format`);
|
|
302
302
|
res = await client.invoke('feishu_doc_comments.reply', (sdk) => sdk.request({
|