@efengx/openclaw-channel-dragon 0.5.18 → 0.5.19

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 declare class SseComponent implements IComponent {
10
10
  private reconnectTimer;
11
11
  constructor(http: HttpComponent, channel: ChannelComponent, options: {
12
12
  agentId: string;
13
+ version: string;
13
14
  logger?: any;
14
15
  });
15
16
  start(): Promise<void>;
@@ -24,7 +24,7 @@ export class SseComponent {
24
24
  return;
25
25
  const { agentId, logger } = this.options;
26
26
  const url = `${this.http.options.baseURL}/api/agents/events`;
27
- logger?.info?.(`[Dragon Plugin] Connecting to Orchestrator SSE: ${url}`);
27
+ logger?.info?.(`[Dragon Plugin] v${this.options.version} connecting to Orchestrator SSE: ${url} (agent=${agentId})`);
28
28
  try {
29
29
  // In Node 22, we might need a fetch-based SSE or a library,
30
30
  // but for simplicity we'll use the same pattern as Bridge if possible.
package/dist/index.js CHANGED
@@ -6,6 +6,7 @@ import { TelemetryComponent } from "./components/telemetry/TelemetryComponent.js
6
6
  import { HttpComponent } from "./components/http/HttpComponent.js";
7
7
  import { ChannelComponent } from "./components/channel/ChannelComponent.js";
8
8
  import { SseComponent } from "./components/sync/SseComponent.js";
9
+ import { dragonChannelPluginVersion } from "./version.js";
9
10
  const channelId = "dragon";
10
11
  let cachedRuntime;
11
12
  const containers = new Map();
@@ -15,6 +16,7 @@ async function getOrCreateContainer(account, ctx) {
15
16
  return containers.get(key);
16
17
  const logger = ctx?.logger ?? ctx?.log ?? cachedRuntime?.logger ?? cachedRuntime?.log;
17
18
  const container = new ServiceContainer();
19
+ logger?.info?.(`[Dragon Plugin] Starting channel plugin v${dragonChannelPluginVersion} for agent=${account.agentId}, account=${account.accountId}, orchestrator=${account.orchestratorUrl}`);
18
20
  // 1. Core Infrastructure
19
21
  const http = container.register('http', new HttpComponent({
20
22
  baseURL: account.orchestratorUrl,
@@ -33,6 +35,7 @@ async function getOrCreateContainer(account, ctx) {
33
35
  // 3. Sync Infrastructure
34
36
  container.register('sse', new SseComponent(http, channel, {
35
37
  agentId: account.agentId,
38
+ version: dragonChannelPluginVersion,
36
39
  logger
37
40
  }));
38
41
  await container.startAll();
@@ -0,0 +1 @@
1
+ export declare const dragonChannelPluginVersion = "0.5.19";
@@ -0,0 +1 @@
1
+ export const dragonChannelPluginVersion = "0.5.19";
@@ -2,7 +2,7 @@
2
2
  "id": "dragon",
3
3
  "name": "Dragon Workbench Channel",
4
4
  "description": "Connect OpenClaw to the Dragon agent-client workbench chat.",
5
- "version": "0.5.18",
5
+ "version": "0.5.19",
6
6
  "enabledByDefault": true,
7
7
  "activation": {
8
8
  "onCapabilities": ["hook"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@efengx/openclaw-channel-dragon",
3
- "version": "0.5.18",
3
+ "version": "0.5.19",
4
4
  "description": "Dragon workbench channel for OpenClaw",
5
5
  "author": "feng xiang <ofengx@gmail.com>",
6
6
  "type": "module",