@efengx/openclaw-channel-dragon 0.5.20 → 0.5.21
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { dragonChannelPluginVersion } from "../../version.js";
|
|
1
2
|
const channelId = "dragon";
|
|
2
3
|
export class ChannelComponent {
|
|
3
4
|
options;
|
|
@@ -69,7 +70,7 @@ export class ChannelComponent {
|
|
|
69
70
|
const current = previous
|
|
70
71
|
.catch(() => { })
|
|
71
72
|
.then(async () => {
|
|
72
|
-
logger?.info?.(`[Dragon Plugin] Sending to OpenClaw: "${content.substring(0, 50)}${content.length > 50 ? '...' : ''}" [WorkbenchSession: ${sessionId}] [OpenClawSessionKey: ${sessionKey}]`);
|
|
73
|
+
logger?.info?.(`[Dragon Plugin] v${dragonChannelPluginVersion} Sending to OpenClaw: "${content.substring(0, 50)}${content.length > 50 ? '...' : ''}" [WorkbenchSession: ${sessionId}] [OpenClawSessionKey: ${sessionKey}]`);
|
|
73
74
|
const progress = (payload) => this.telemetry.reportProgress({
|
|
74
75
|
sessionId,
|
|
75
76
|
msgId: replyMsgId,
|
|
@@ -89,7 +89,7 @@ export class SseComponent {
|
|
|
89
89
|
// 2. Handle specific types
|
|
90
90
|
if (data.type === 'WORKBENCH_MESSAGE') {
|
|
91
91
|
const { content, sessionId, attachments, id, msgId } = data.payload || {};
|
|
92
|
-
logger?.info?.(`[Dragon Plugin] [SSE] Received from Workbench: "${content?.substring(0, 50)}${content?.length > 50 ? '...' : ''}" [Session: ${sessionId}]`);
|
|
92
|
+
logger?.info?.(`[Dragon Plugin] v${this.options.version} [SSE] Received from Workbench: "${content?.substring(0, 50)}${content?.length > 50 ? '...' : ''}" [Session: ${sessionId}]`);
|
|
93
93
|
await this.channel.deliverToOpenClaw(content, sessionId, undefined, attachments, msgId || id);
|
|
94
94
|
}
|
|
95
95
|
else if (data.type === 'FETCH_HISTORY') {
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const dragonChannelPluginVersion = "0.5.
|
|
1
|
+
export declare const dragonChannelPluginVersion = "0.5.21";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const dragonChannelPluginVersion = "0.5.
|
|
1
|
+
export const dragonChannelPluginVersion = "0.5.21";
|