@meet-im/meet 3.2.3 → 3.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.
package/dist/src/bot.js
CHANGED
|
@@ -239,9 +239,23 @@ export async function handleMeetMessage(params) {
|
|
|
239
239
|
const mentionsContext = ctx.mentions && ctx.mentions.length > 0
|
|
240
240
|
? `\n\nMentioned users: ${ctx.mentions.map((m) => `${m.name} (${m.userId})`).join(", ")}`
|
|
241
241
|
: "";
|
|
242
|
-
const
|
|
243
|
-
?
|
|
244
|
-
|
|
242
|
+
const quoteContext = ctx.replyContext?.content?.trim()
|
|
243
|
+
? [
|
|
244
|
+
"Reply target of current user message (untrusted, for context):",
|
|
245
|
+
"```json",
|
|
246
|
+
JSON.stringify({
|
|
247
|
+
body: ctx.replyContext.content.trim(),
|
|
248
|
+
sender: ctx.replyContext.senderId,
|
|
249
|
+
message_id: ctx.replyContext.messageId,
|
|
250
|
+
}, null, 2),
|
|
251
|
+
"```",
|
|
252
|
+
"",
|
|
253
|
+
].join("\n")
|
|
254
|
+
: "";
|
|
255
|
+
const userBody = ctx.content.trim()
|
|
256
|
+
? ctx.content.trim()
|
|
257
|
+
: (ctx.placeholder || "");
|
|
258
|
+
const finalContent = `${quoteContext}${userBody}${mentionsContext}${mediaContext}`;
|
|
245
259
|
// Discord 做法:跳过空内容消息
|
|
246
260
|
if (!finalContent.trim() && mediaPaths.length === 0) {
|
|
247
261
|
log(`[${accountId}]: skip message ${ctx.messageId} (empty content)`);
|
|
@@ -378,6 +392,7 @@ export async function handleMeetMessage(params) {
|
|
|
378
392
|
botUserId,
|
|
379
393
|
mediaLocalRoots,
|
|
380
394
|
});
|
|
395
|
+
log(`[${accountId}]: dispatch ctx replyToId=${inboundCtx.ReplyToId ?? "undefined"} replyToBody=${JSON.stringify(inboundCtx.ReplyToBody ?? "")} rawBody=${JSON.stringify(inboundCtx.RawBody ?? "")} commandBody=${JSON.stringify(inboundCtx.CommandBody ?? "")} bodyForAgent=${JSON.stringify(inboundCtx.BodyForAgent ?? "")}`);
|
|
381
396
|
log(`[${accountId}]: dispatching to AI agent=${route.agentId} session=${route.sessionKey} history=${inboundHistory?.length ?? 0}`);
|
|
382
397
|
const dispatchResult = await core.channel.reply.dispatchReplyFromConfig({
|
|
383
398
|
ctx: inboundCtx,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const MEET_PLUGIN_VERSION = "3.2.
|
|
1
|
+
export declare const MEET_PLUGIN_VERSION = "3.2.5";
|
|
2
2
|
export declare const MEET_OPENCLAW_VERSION = "2026.5.18";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const MEET_PLUGIN_VERSION = "3.2.
|
|
1
|
+
export const MEET_PLUGIN_VERSION = "3.2.5";
|
|
2
2
|
export const MEET_OPENCLAW_VERSION = "2026.5.18";
|
package/dist/src/monitor.js
CHANGED
|
@@ -77,7 +77,7 @@ async function monitorSingleAccount(params) {
|
|
|
77
77
|
const mapKeys = Object.keys(quoteMsgMap);
|
|
78
78
|
const found = quoteMsgMap[computedKey] ? 'FOUND' : 'NOT_FOUND';
|
|
79
79
|
const replyCtx = ctx.replyContext;
|
|
80
|
-
log(`[${accountId}]: quoteSeqID=${quoteSeqID}, computedKey=${computedKey}, mapKeys=${mapKeys.length > 0 ? mapKeys.join(',') : 'empty'}, result=${found}, replyContent=${replyCtx?.content ? replyCtx.content.slice(0, 50) + '...' : 'undefined'}`);
|
|
80
|
+
log(`[${accountId}]: sessionType=${message.sessionInfo.sessionType}, quoteSeqID=${quoteSeqID}, computedKey=${computedKey}, mapKeys=${mapKeys.length > 0 ? mapKeys.join(',') : 'empty'}, result=${found}, replyContext=${replyCtx ? 'present' : 'undefined'}, replyContent=${replyCtx?.content ? replyCtx.content.slice(0, 50) + '...' : 'undefined'}`);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
catch (err) {
|