@efengx/openclaw-channel-dragon 0.5.0 → 0.5.1
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.
|
@@ -27,6 +27,7 @@ export class ChannelComponent {
|
|
|
27
27
|
return;
|
|
28
28
|
const { accountId, agentId, cfg, logger } = this.options;
|
|
29
29
|
const sessionKey = `dragon:${agentId}:direct:${sessionId}`;
|
|
30
|
+
logger?.info?.(`[Dragon Plugin] Sending to OpenClaw: "${content.substring(0, 50)}${content.length > 50 ? '...' : ''}" [Session: ${sessionId}]`);
|
|
30
31
|
await replyDispatcher({
|
|
31
32
|
ctx: {
|
|
32
33
|
Body: content,
|
|
@@ -69,7 +70,8 @@ export class ChannelComponent {
|
|
|
69
70
|
};
|
|
70
71
|
handleOutboundText = async (ctx) => {
|
|
71
72
|
const text = ctx?.text || "";
|
|
72
|
-
const { accountId, agentId } = this.options;
|
|
73
|
+
const { accountId, agentId, logger } = this.options;
|
|
74
|
+
logger?.info?.(`[Dragon Plugin] Outbound Text (Action): "${text.substring(0, 50)}${text.length > 50 ? '...' : ''}"`);
|
|
73
75
|
if (this.bridge.client) {
|
|
74
76
|
this.bridge.client.sendJson({
|
|
75
77
|
type: "outbound_text",
|
|
@@ -87,7 +87,7 @@ export class SseComponent {
|
|
|
87
87
|
// 2. Handle specific types
|
|
88
88
|
if (data.type === 'WORKBENCH_MESSAGE') {
|
|
89
89
|
const { content, sessionId, attachments, id } = data.payload || {};
|
|
90
|
-
logger?.info?.(`[Dragon Plugin] Received Workbench
|
|
90
|
+
logger?.info?.(`[Dragon Plugin] [SSE] Received from Workbench: "${content?.substring(0, 50)}${content?.length > 50 ? '...' : ''}" [Session: ${sessionId}]`);
|
|
91
91
|
this.channel.deliverToOpenClaw(content, sessionId, undefined, attachments, id);
|
|
92
92
|
}
|
|
93
93
|
else if (data.type === 'FETCH_HISTORY') {
|
package/openclaw.plugin.json
CHANGED