@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.
|
@@ -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]
|
|
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";
|
package/dist/version.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const dragonChannelPluginVersion = "0.5.19";
|
package/openclaw.plugin.json
CHANGED