openclaw-xiaoyou 1.2.4 → 1.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/package.json +1 -1
- package/src/channel.ts +3 -1
- package/src/types.ts +2 -0
package/package.json
CHANGED
package/src/channel.ts
CHANGED
|
@@ -136,6 +136,7 @@ export const xiayouPlugin = {
|
|
|
136
136
|
const senderId = msg.senderId;
|
|
137
137
|
const senderName = msg.senderName ?? msg.senderId;
|
|
138
138
|
const conversationId = msg.conversationId;
|
|
139
|
+
const inboundMessageId = msg.messageId;
|
|
139
140
|
const text = msg.text ?? "";
|
|
140
141
|
const accountId = account?.accountId || "default";
|
|
141
142
|
|
|
@@ -193,10 +194,11 @@ export const xiayouPlugin = {
|
|
|
193
194
|
type: "reply",
|
|
194
195
|
conversationId,
|
|
195
196
|
messageId: `xiaoyou-${Date.now()}`,
|
|
197
|
+
replyToMessageId: inboundMessageId,
|
|
196
198
|
text: textToSend,
|
|
197
199
|
timestamp: Date.now(),
|
|
198
200
|
});
|
|
199
|
-
logger.info(`[xiaoyou] reply sent to ${conversationId}`);
|
|
201
|
+
logger.info(`[xiaoyou] reply sent to ${conversationId}${inboundMessageId ? ` (replyTo=${inboundMessageId})` : ""}`);
|
|
200
202
|
}
|
|
201
203
|
},
|
|
202
204
|
},
|
package/src/types.ts
CHANGED
|
@@ -32,6 +32,7 @@ export type InboundMessage = {
|
|
|
32
32
|
conversationId: string;
|
|
33
33
|
senderId: string;
|
|
34
34
|
senderName?: string;
|
|
35
|
+
messageId?: string;
|
|
35
36
|
text?: string;
|
|
36
37
|
attachments?: Attachment[];
|
|
37
38
|
metadata?: Record<string, unknown>;
|
|
@@ -50,6 +51,7 @@ export type OutboundReply = {
|
|
|
50
51
|
type: "reply";
|
|
51
52
|
conversationId: string;
|
|
52
53
|
messageId: string;
|
|
54
|
+
replyToMessageId?: string;
|
|
53
55
|
text: string;
|
|
54
56
|
mediaUrls?: string[];
|
|
55
57
|
agentId?: string;
|