@efengx/openclaw-channel-dragon 0.5.15 → 0.5.16
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.
- package/dist/index.js +1 -9
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,7 +2,6 @@ import { defineChannelPluginEntry, createChatChannelPlugin, createChannelPluginB
|
|
|
2
2
|
import { createRawChannelSendResultAdapter } from "openclaw/plugin-sdk/channel-send-result";
|
|
3
3
|
import * as InfraRuntime from "openclaw/plugin-sdk/infra-runtime";
|
|
4
4
|
import { ServiceContainer } from "./core/ServiceContainer.js";
|
|
5
|
-
import { PollingComponent } from "./components/sync/PollingComponent.js";
|
|
6
5
|
import { TelemetryComponent } from "./components/telemetry/TelemetryComponent.js";
|
|
7
6
|
import { HttpComponent } from "./components/http/HttpComponent.js";
|
|
8
7
|
import { ChannelComponent } from "./components/channel/ChannelComponent.js";
|
|
@@ -31,18 +30,11 @@ async function getOrCreateContainer(account, ctx) {
|
|
|
31
30
|
cfg: ctx.cfg,
|
|
32
31
|
logger
|
|
33
32
|
}, telemetry));
|
|
34
|
-
// 3. Sync Infrastructure
|
|
33
|
+
// 3. Sync Infrastructure
|
|
35
34
|
container.register('sse', new SseComponent(http, channel, {
|
|
36
35
|
agentId: account.agentId,
|
|
37
36
|
logger
|
|
38
37
|
}));
|
|
39
|
-
container.register('polling', new PollingComponent(http, channel, {
|
|
40
|
-
agentId: account.agentId,
|
|
41
|
-
accountId: account.accountId,
|
|
42
|
-
channelRuntime: ctx.channelRuntime,
|
|
43
|
-
abortSignal: ctx.abortSignal,
|
|
44
|
-
logger
|
|
45
|
-
}));
|
|
46
38
|
await container.startAll();
|
|
47
39
|
containers.set(key, container);
|
|
48
40
|
return container;
|
package/openclaw.plugin.json
CHANGED