openclaw-xiaoyou 1.4.1 → 1.4.3
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 -2
package/package.json
CHANGED
package/src/channel.ts
CHANGED
|
@@ -301,6 +301,7 @@ export const xiayouPlugin = {
|
|
|
301
301
|
outbound: {
|
|
302
302
|
deliveryMode: "direct" as const,
|
|
303
303
|
textChunkLimit: 2000,
|
|
304
|
+
requiresTarget: false,
|
|
304
305
|
|
|
305
306
|
sendText: async ({ to, text, accountId, replyToId, cfg }: any) => {
|
|
306
307
|
if (!_client || !_client.isConnected()) {
|
|
@@ -316,7 +317,7 @@ export const xiayouPlugin = {
|
|
|
316
317
|
messageId: `xiaoyou-${Date.now()}`,
|
|
317
318
|
replyToMessageId: replyToId,
|
|
318
319
|
senderId: to,
|
|
319
|
-
source: "scheduled_task" as const,
|
|
320
|
+
...(replyToId ? {} : { source: "scheduled_task" as const }),
|
|
320
321
|
text: text,
|
|
321
322
|
timestamp: Date.now(),
|
|
322
323
|
};
|
|
@@ -339,7 +340,7 @@ export const xiayouPlugin = {
|
|
|
339
340
|
messageId: `xiaoyou-${Date.now()}`,
|
|
340
341
|
replyToMessageId: replyToId,
|
|
341
342
|
senderId: to,
|
|
342
|
-
source: "scheduled_task" as const,
|
|
343
|
+
...(replyToId ? {} : { source: "scheduled_task" as const }),
|
|
343
344
|
text: text ?? "",
|
|
344
345
|
mediaUrls: mediaUrl ? [mediaUrl] : [],
|
|
345
346
|
timestamp: Date.now(),
|