@efengx/openclaw-channel-dragon 0.5.12 → 0.5.13

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.
@@ -10,6 +10,7 @@ export class ChannelComponent {
10
10
  async start() { }
11
11
  async stop() { }
12
12
  deliverToOpenClaw = async (content, sessionId = 'default', modelId, attachments, messageId) => {
13
+ const replyMsgId = messageId ? `dragon_msg_${messageId}` : `dragon_msg_${Date.now()}_${Math.random().toString(36).slice(2, 8)}`;
13
14
  if (messageId && this.processedMessageIds.has(messageId))
14
15
  return;
15
16
  if (messageId) {
@@ -52,6 +53,7 @@ export class ChannelComponent {
52
53
  tool_calls: payload?.tool_calls,
53
54
  reasoning_content: payload?.reasoning_content,
54
55
  source: "telemetry_deliver",
56
+ msgId: replyMsgId,
55
57
  });
56
58
  }
57
59
  }
@@ -13,6 +13,7 @@ export declare class TelemetryComponent implements IComponent {
13
13
  tool_calls?: any[];
14
14
  reasoning_content?: string;
15
15
  source?: string;
16
+ msgId?: string;
16
17
  }): Promise<void>;
17
18
  reportEvent(stream: string, data: any, ts: number): Promise<void>;
18
19
  }
@@ -24,7 +24,7 @@ export class TelemetryComponent {
24
24
  }
25
25
  this.lastReplies.set(key, { normalized, timestamp: now });
26
26
  }
27
- const msgId = crypto.randomUUID();
27
+ const msgId = payload.msgId || crypto.randomUUID();
28
28
  await this.http.fetch(`/api/agents/${this.agentId}/messages/reply`, {
29
29
  method: "POST",
30
30
  headers: { "Content-Type": "application/json" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@efengx/openclaw-channel-dragon",
3
- "version": "0.5.12",
3
+ "version": "0.5.13",
4
4
  "description": "Dragon workbench channel for OpenClaw",
5
5
  "author": "feng xiang <ofengx@gmail.com>",
6
6
  "type": "module",